CanvasAnvil is an open source AI diagram maker and flowchart generator - an infinite-canvas diagram editor and self-hosted drawio alternative that writes editable .drawio files. Text to diagram, then fix nodes, layout and labels in place. Also AI presentations, interior design CAD/BOM, posters and infographics.
TypeScript ai-agentsai-diagramai-presentationbomcadcanvasdiagramdiagram-generatordrawioflowchartinfographicspptppt-generatorpresentation-generatorreactsvgedittext-to-diagramtypescriptworkflow
docs: document 2.1.0 deployment and online access updates
codingFeng101efef0a1f6022
diff --git a/.tmp-online-main.js b/.tmp-online-main.jsdeleted file mode 100644index 724255a..0000000--- a/.tmp-online-main.js+++ /dev/null@@ -1,3003 +0,0 @@-var bJ=Object.defineProperty;var $5=e=>{throw TypeError(e)};var AJ=(e,t,n)=>t in e?bJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Y5=(e,t,n)=>AJ(e,typeof t!="symbol"?t+"":t,n),J5=(e,t,n)=>t.has(e)||$5("Cannot "+n);var cm=(e,t,n)=>(J5(e,t,"read from private field"),n?n.call(e):t.get(e)),Q5=(e,t,n)=>t.has(e)?$5("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),eP=(e,t,n,r)=>(J5(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function wJ(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var zu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function SJ(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var OS={exports:{}},um={},jS={exports:{}},jr={};/**- * @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 tP;function kJ(){if(tP)return jr;tP=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.iterator;function h(ee){return ee===null||typeof ee!="object"?null:(ee=d&&ee[d]||ee["@@iterator"],typeof ee=="function"?ee:null)}var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function v(ee,le,G){this.props=ee,this.context=le,this.refs=y,this.updater=G||f}v.prototype.isReactComponent={},v.prototype.setState=function(ee,le){if(typeof ee!="object"&&typeof ee!="function"&&ee!=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,ee,le,"setState")},v.prototype.forceUpdate=function(ee){this.updater.enqueueForceUpdate(this,ee,"forceUpdate")};function A(){}A.prototype=v.prototype;function w(ee,le,G){this.props=ee,this.context=le,this.refs=y,this.updater=G||f}var S=w.prototype=new A;S.constructor=w,g(S,v.prototype),S.isPureReactComponent=!0;var _=Array.isArray,E=Object.prototype.hasOwnProperty,T={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function I(ee,le,G){var xe,ge={},ue=null,ce=null;if(le!=null)for(xe in le.ref!==void 0&&(ce=le.ref),le.key!==void 0&&(ue=""+le.key),le)E.call(le,xe)&&!D.hasOwnProperty(xe)&&(ge[xe]=le[xe]);var ye=arguments.length-2;if(ye===1)ge.children=G;else if(1<ye){for(var Fe=Array(ye),Oe=0;Oe<ye;Oe++)Fe[Oe]=arguments[Oe+2];ge.children=Fe}if(ee&&ee.defaultProps)for(xe in ye=ee.defaultProps,ye)ge[xe]===void 0&&(ge[xe]=ye[xe]);return{$$typeof:e,type:ee,key:ue,ref:ce,props:ge,_owner:T.current}}function j(ee,le){return{$$typeof:e,type:ee.type,key:le,ref:ee.ref,props:ee.props,_owner:ee._owner}}function R(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===e}function z(ee){var le={"=":"=0",":":"=2"};return"$"+ee.replace(/[=:]/g,function(G){return le[G]})}var B=/\/+/g;function W(ee,le){return typeof ee=="object"&&ee!==null&&ee.key!=null?z(""+ee.key):le.toString(36)}function P(ee,le,G,xe,ge){var ue=typeof ee;(ue==="undefined"||ue==="boolean")&&(ee=null);var ce=!1;if(ee===null)ce=!0;else switch(ue){case"string":case"number":ce=!0;break;case"object":switch(ee.$$typeof){case e:case t:ce=!0}}if(ce)return ce=ee,ge=ge(ce),ee=xe===""?"."+W(ce,0):xe,_(ge)?(G="",ee!=null&&(G=ee.replace(B,"$&/")+"/"),P(ge,le,G,"",function(Oe){return Oe})):ge!=null&&(R(ge)&&(ge=j(ge,G+(!ge.key||ce&&ce.key===ge.key?"":(""+ge.key).replace(B,"$&/")+"/")+ee)),le.push(ge)),1;if(ce=0,xe=xe===""?".":xe+":",_(ee))for(var ye=0;ye<ee.length;ye++){ue=ee[ye];var Fe=xe+W(ue,ye);ce+=P(ue,le,G,Fe,ge)}else if(Fe=h(ee),typeof Fe=="function")for(ee=Fe.call(ee),ye=0;!(ue=ee.next()).done;)ue=ue.value,Fe=xe+W(ue,ye++),ce+=P(ue,le,G,Fe,ge);else if(ue==="object")throw le=String(ee),Error("Objects are not valid as a React child (found: "+(le==="[object Object]"?"object with keys {"+Object.keys(ee).join(", ")+"}":le)+"). If you meant to render a collection of children, use an array instead.");return ce}function Z(ee,le,G){if(ee==null)return ee;var xe=[],ge=0;return P(ee,xe,"","",function(ue){return le.call(G,ue,ge++)}),xe}function Q(ee){if(ee._status===-1){var le=ee._result;le=le(),le.then(function(G){(ee._status===0||ee._status===-1)&&(ee._status=1,ee._result=G)},function(G){(ee._status===0||ee._status===-1)&&(ee._status=2,ee._result=G)}),ee._status===-1&&(ee._status=0,ee._result=le)}if(ee._status===1)return ee._result.default;throw ee._result}var X={current:null},q={transition:null},te={ReactCurrentDispatcher:X,ReactCurrentBatchConfig:q,ReactCurrentOwner:T};function J(){throw Error("act(...) is not supported in production builds of React.")}return jr.Children={map:Z,forEach:function(ee,le,G){Z(ee,function(){le.apply(this,arguments)},G)},count:function(ee){var le=0;return Z(ee,function(){le++}),le},toArray:function(ee){return Z(ee,function(le){return le})||[]},only:function(ee){if(!R(ee))throw Error("React.Children.only expected to receive a single React element child.");return ee}},jr.Component=v,jr.Fragment=n,jr.Profiler=i,jr.PureComponent=w,jr.StrictMode=r,jr.Suspense=l,jr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,jr.act=J,jr.cloneElement=function(ee,le,G){if(ee==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+ee+".");var xe=g({},ee.props),ge=ee.key,ue=ee.ref,ce=ee._owner;if(le!=null){if(le.ref!==void 0&&(ue=le.ref,ce=T.current),le.key!==void 0&&(ge=""+le.key),ee.type&&ee.type.defaultProps)var ye=ee.type.defaultProps;for(Fe in le)E.call(le,Fe)&&!D.hasOwnProperty(Fe)&&(xe[Fe]=le[Fe]===void 0&&ye!==void 0?ye[Fe]:le[Fe])}var Fe=arguments.length-2;if(Fe===1)xe.children=G;else if(1<Fe){ye=Array(Fe);for(var Oe=0;Oe<Fe;Oe++)ye[Oe]=arguments[Oe+2];xe.children=ye}return{$$typeof:e,type:ee.type,key:ge,ref:ue,props:xe,_owner:ce}},jr.createContext=function(ee){return ee={$$typeof:o,_currentValue:ee,_currentValue2:ee,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},ee.Provider={$$typeof:a,_context:ee},ee.Consumer=ee},jr.createElement=I,jr.createFactory=function(ee){var le=I.bind(null,ee);return le.type=ee,le},jr.createRef=function(){return{current:null}},jr.forwardRef=function(ee){return{$$typeof:s,render:ee}},jr.isValidElement=R,jr.lazy=function(ee){return{$$typeof:u,_payload:{_status:-1,_result:ee},_init:Q}},jr.memo=function(ee,le){return{$$typeof:c,type:ee,compare:le===void 0?null:le}},jr.startTransition=function(ee){var le=q.transition;q.transition={};try{ee()}finally{q.transition=le}},jr.unstable_act=J,jr.useCallback=function(ee,le){return X.current.useCallback(ee,le)},jr.useContext=function(ee){return X.current.useContext(ee)},jr.useDebugValue=function(){},jr.useDeferredValue=function(ee){return X.current.useDeferredValue(ee)},jr.useEffect=function(ee,le){return X.current.useEffect(ee,le)},jr.useId=function(){return X.current.useId()},jr.useImperativeHandle=function(ee,le,G){return X.current.useImperativeHandle(ee,le,G)},jr.useInsertionEffect=function(ee,le){return X.current.useInsertionEffect(ee,le)},jr.useLayoutEffect=function(ee,le){return X.current.useLayoutEffect(ee,le)},jr.useMemo=function(ee,le){return X.current.useMemo(ee,le)},jr.useReducer=function(ee,le,G){return X.current.useReducer(ee,le,G)},jr.useRef=function(ee){return X.current.useRef(ee)},jr.useState=function(ee){return X.current.useState(ee)},jr.useSyncExternalStore=function(ee,le,G){return X.current.useSyncExternalStore(ee,le,G)},jr.useTransition=function(){return X.current.useTransition()},jr.version="18.3.1",jr}var nP;function uE(){return nP||(nP=1,jS.exports=kJ()),jS.exports}/**- * @license React- * react-jsx-runtime.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 rP;function DJ(){if(rP)return um;rP=1;var e=uE(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(s,l,c){var u,d={},h=null,f=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(f=l.ref);for(u in l)r.call(l,u)&&!a.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:h,ref:f,props:d,_owner:i.current}}return um.Fragment=n,um.jsx=o,um.jsxs=o,um}var iP;function CJ(){return iP||(iP=1,OS.exports=DJ()),OS.exports}var m=CJ(),N=uE();const Dt=Qc(N),wA=wJ({__proto__:null,default:Dt},[N]);var Xv={},BS={exports:{}},Uo={},zS={exports:{}},WS={};/**- * @license React- * scheduler.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 aP;function TJ(){return aP||(aP=1,(function(e){function t(q,te){var J=q.length;q.push(te);e:for(;0<J;){var ee=J-1>>>1,le=q[ee];if(0<i(le,te))q[ee]=te,q[J]=le,J=ee;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var te=q[0],J=q.pop();if(J!==te){q[0]=J;e:for(var ee=0,le=q.length,G=le>>>1;ee<G;){var xe=2*(ee+1)-1,ge=q[xe],ue=xe+1,ce=q[ue];if(0>i(ge,J))ue<le&&0>i(ce,ge)?(q[ee]=ce,q[ue]=J,ee=ue):(q[ee]=ge,q[xe]=J,ee=xe);else if(ue<le&&0>i(ce,J))q[ee]=ce,q[ue]=J,ee=ue;else break e}}return te}function i(q,te){var J=q.sortIndex-te.sortIndex;return J!==0?J:q.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,d=null,h=3,f=!1,g=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(q){for(var te=n(c);te!==null;){if(te.callback===null)r(c);else if(te.startTime<=q)r(c),te.sortIndex=te.expirationTime,t(l,te);else break;te=n(c)}}function _(q){if(y=!1,S(q),!g)if(n(l)!==null)g=!0,Q(E);else{var te=n(c);te!==null&&X(_,te.startTime-q)}}function E(q,te){g=!1,y&&(y=!1,A(I),I=-1),f=!0;var J=h;try{for(S(te),d=n(l);d!==null&&(!(d.expirationTime>te)||q&&!z());){var ee=d.callback;if(typeof ee=="function"){d.callback=null,h=d.priorityLevel;var le=ee(d.expirationTime<=te);te=e.unstable_now(),typeof le=="function"?d.callback=le:d===n(l)&&r(l),S(te)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var xe=n(c);xe!==null&&X(_,xe.startTime-te),G=!1}return G}finally{d=null,h=J,f=!1}}var T=!1,D=null,I=-1,j=5,R=-1;function z(){return!(e.unstable_now()-R<j)}function B(){if(D!==null){var q=e.unstable_now();R=q;var te=!0;try{te=D(!0,q)}finally{te?W():(T=!1,D=null)}}else T=!1}var W;if(typeof w=="function")W=function(){w(B)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,Z=P.port2;P.port1.onmessage=B,W=function(){Z.postMessage(null)}}else W=function(){v(B,0)};function Q(q){D=q,T||(T=!0,W())}function X(q,te){I=v(function(){q(e.unstable_now())},te)}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(){g||f||(g=!0,Q(E))},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(q){switch(h){case 1:case 2:case 3:var te=3;break;default:te=h}var J=h;h=te;try{return q()}finally{h=J}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(q,te){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var J=h;h=q;try{return te()}finally{h=J}},e.unstable_scheduleCallback=function(q,te,J){var ee=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ee+J:ee):J=ee,q){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=J+le,q={id:u++,callback:te,priorityLevel:q,startTime:J,expirationTime:le,sortIndex:-1},J>ee?(q.sortIndex=J,t(c,q),n(l)===null&&q===n(c)&&(y?(A(I),I=-1):y=!0,X(_,J-ee))):(q.sortIndex=le,t(l,q),g||f||(g=!0,Q(E))),q},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(q){var te=h;return function(){var J=h;h=te;try{return q.apply(this,arguments)}finally{h=J}}}})(WS)),WS}var oP;function _J(){return oP||(oP=1,zS.exports=TJ()),zS.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 sP;function EJ(){if(sP)return Uo;sP=1;var e=uE(),t=_J();function n(p){for(var x="https://reactjs.org/docs/error-decoder.html?invariant="+p,C=1;C<arguments.length;C++)x+="&args[]="+encodeURIComponent(arguments[C]);return"Minified React error #"+p+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function a(p,x){o(p,x),o(p+"Capture",x)}function o(p,x){for(i[p]=x,p=0;p<x.length;p++)r.add(x[p])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,c=/^[: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]*$/,u={},d={};function h(p){return l.call(d,p)?!0:l.call(u,p)?!1:c.test(p)?d[p]=!0:(u[p]=!0,!1)}function f(p,x,C,L){if(C!==null&&C.type===0)return!1;switch(typeof x){case"function":case"symbol":return!0;case"boolean":return L?!1:C!==null?!C.acceptsBooleans:(p=p.toLowerCase().slice(0,5),p!=="data-"&&p!=="aria-");default:return!1}}function g(p,x,C,L){if(x===null||typeof x>"u"||f(p,x,C,L))return!0;if(L)return!1;if(C!==null)switch(C.type){case 3:return!x;case 4:return x===!1;case 5:return isNaN(x);case 6:return isNaN(x)||1>x}return!1}function y(p,x,C,L,K,ie,we){this.acceptsBooleans=x===2||x===3||x===4,this.attributeName=L,this.attributeNamespace=K,this.mustUseProperty=C,this.propertyName=p,this.type=x,this.sanitizeURL=ie,this.removeEmptyString=we}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(p){v[p]=new y(p,0,!1,p,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var x=p[0];v[x]=new y(x,1,!1,p[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){v[p]=new y(p,2,!1,p.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){v[p]=new y(p,2,!1,p,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(p){v[p]=new y(p,3,!1,p.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(p){v[p]=new y(p,3,!0,p,null,!1,!1)}),["capture","download"].forEach(function(p){v[p]=new y(p,4,!1,p,null,!1,!1)}),["cols","rows","size","span"].forEach(function(p){v[p]=new y(p,6,!1,p,null,!1,!1)}),["rowSpan","start"].forEach(function(p){v[p]=new y(p,5,!1,p.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function w(p){return p[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(p){var x=p.replace(A,w);v[x]=new y(x,1,!1,p,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(p){var x=p.replace(A,w);v[x]=new y(x,1,!1,p,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var x=p.replace(A,w);v[x]=new y(x,1,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(p){v[p]=new y(p,1,!1,p.toLowerCase(),null,!1,!1)}),v.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(p){v[p]=new y(p,1,!1,p.toLowerCase(),null,!0,!0)});function S(p,x,C,L){var K=v.hasOwnProperty(x)?v[x]:null;(K!==null?K.type!==0:L||!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N")&&(g(x,C,K,L)&&(C=null),L||K===null?h(x)&&(C===null?p.removeAttribute(x):p.setAttribute(x,""+C)):K.mustUseProperty?p[K.propertyName]=C===null?K.type===3?!1:"":C:(x=K.attributeName,L=K.attributeNamespace,C===null?p.removeAttribute(x):(K=K.type,C=K===3||K===4&&C===!0?"":""+C,L?p.setAttributeNS(L,x,C):p.setAttribute(x,C))))}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),T=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),z=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),X=Symbol.for("react.offscreen"),q=Symbol.iterator;function te(p){return p===null||typeof p!="object"?null:(p=q&&p[q]||p["@@iterator"],typeof p=="function"?p:null)}var J=Object.assign,ee;function le(p){if(ee===void 0)try{throw Error()}catch(C){var x=C.stack.trim().match(/\n( *(at )?)/);ee=x&&x[1]||""}return`-`+ee+p}var G=!1;function xe(p,x){if(!p||G)return"";G=!0;var C=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(x)if(x=function(){throw Error()},Object.defineProperty(x.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(x,[])}catch(ot){var L=ot}Reflect.construct(p,[],x)}else{try{x.call()}catch(ot){L=ot}p.call(x.prototype)}else{try{throw Error()}catch(ot){L=ot}p()}}catch(ot){if(ot&&L&&typeof ot.stack=="string"){for(var K=ot.stack.split(`-`),ie=L.stack.split(`-`),we=K.length-1,Ge=ie.length-1;1<=we&&0<=Ge&&K[we]!==ie[Ge];)Ge--;for(;1<=we&&0<=Ge;we--,Ge--)if(K[we]!==ie[Ge]){if(we!==1||Ge!==1)do if(we--,Ge--,0>Ge||K[we]!==ie[Ge]){var Ke=`-`+K[we].replace(" at new "," at ");return p.displayName&&Ke.includes("<anonymous>")&&(Ke=Ke.replace("<anonymous>",p.displayName)),Ke}while(1<=we&&0<=Ge);break}}}finally{G=!1,Error.prepareStackTrace=C}return(p=p?p.displayName||p.name:"")?le(p):""}function ge(p){switch(p.tag){case 5:return le(p.type);case 16:return le("Lazy");case 13:return le("Suspense");case 19:return le("SuspenseList");case 0:case 2:case 15:return p=xe(p.type,!1),p;case 11:return p=xe(p.type.render,!1),p;case 1:return p=xe(p.type,!0),p;default:return""}}function ue(p){if(p==null)return null;if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case D:return"Fragment";case T:return"Portal";case j:return"Profiler";case I:return"StrictMode";case W:return"Suspense";case P:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case z:return(p.displayName||"Context")+".Consumer";case R:return(p._context.displayName||"Context")+".Provider";case B:var x=p.render;return p=p.displayName,p||(p=x.displayName||x.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case Z:return x=p.displayName||null,x!==null?x:ue(p.type)||"Memo";case Q:x=p._payload,p=p._init;try{return ue(p(x))}catch{}}return null}function ce(p){var x=p.type;switch(p.tag){case 24:return"Cache";case 9:return(x.displayName||"Context")+".Consumer";case 10:return(x._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return p=x.render,p=p.displayName||p.name||"",x.displayName||(p!==""?"ForwardRef("+p+")":"ForwardRef");case 7:return"Fragment";case 5:return x;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ue(x);case 8:return x===I?"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 x=="function")return x.displayName||x.name||null;if(typeof x=="string")return x}return null}function ye(p){switch(typeof p){case"boolean":case"number":case"string":case"undefined":return p;case"object":return p;default:return""}}function Fe(p){var x=p.type;return(p=p.nodeName)&&p.toLowerCase()==="input"&&(x==="checkbox"||x==="radio")}function Oe(p){var x=Fe(p)?"checked":"value",C=Object.getOwnPropertyDescriptor(p.constructor.prototype,x),L=""+p[x];if(!p.hasOwnProperty(x)&&typeof C<"u"&&typeof C.get=="function"&&typeof C.set=="function"){var K=C.get,ie=C.set;return Object.defineProperty(p,x,{configurable:!0,get:function(){return K.call(this)},set:function(we){L=""+we,ie.call(this,we)}}),Object.defineProperty(p,x,{enumerable:C.enumerable}),{getValue:function(){return L},setValue:function(we){L=""+we},stopTracking:function(){p._valueTracker=null,delete p[x]}}}}function Le(p){p._valueTracker||(p._valueTracker=Oe(p))}function Re(p){if(!p)return!1;var x=p._valueTracker;if(!x)return!0;var C=x.getValue(),L="";return p&&(L=Fe(p)?p.checked?"true":"false":p.value),p=L,p!==C?(x.setValue(p),!0):!1}function We(p){if(p=p||(typeof document<"u"?document:void 0),typeof p>"u")return null;try{return p.activeElement||p.body}catch{return p.body}}function V(p,x){var C=x.checked;return J({},x,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:C??p._wrapperState.initialChecked})}function ve(p,x){var C=x.defaultValue==null?"":x.defaultValue,L=x.checked!=null?x.checked:x.defaultChecked;C=ye(x.value!=null?x.value:C),p._wrapperState={initialChecked:L,initialValue:C,controlled:x.type==="checkbox"||x.type==="radio"?x.checked!=null:x.value!=null}}function oe(p,x){x=x.checked,x!=null&&S(p,"checked",x,!1)}function re(p,x){oe(p,x);var C=ye(x.value),L=x.type;if(C!=null)L==="number"?(C===0&&p.value===""||p.value!=C)&&(p.value=""+C):p.value!==""+C&&(p.value=""+C);else if(L==="submit"||L==="reset"){p.removeAttribute("value");return}x.hasOwnProperty("value")?be(p,x.type,C):x.hasOwnProperty("defaultValue")&&be(p,x.type,ye(x.defaultValue)),x.checked==null&&x.defaultChecked!=null&&(p.defaultChecked=!!x.defaultChecked)}function ne(p,x,C){if(x.hasOwnProperty("value")||x.hasOwnProperty("defaultValue")){var L=x.type;if(!(L!=="submit"&&L!=="reset"||x.value!==void 0&&x.value!==null))return;x=""+p._wrapperState.initialValue,C||x===p.value||(p.value=x),p.defaultValue=x}C=p.name,C!==""&&(p.name=""),p.defaultChecked=!!p._wrapperState.initialChecked,C!==""&&(p.name=C)}function be(p,x,C){(x!=="number"||We(p.ownerDocument)!==p)&&(C==null?p.defaultValue=""+p._wrapperState.initialValue:p.defaultValue!==""+C&&(p.defaultValue=""+C))}var Ue=Array.isArray;function Me(p,x,C,L){if(p=p.options,x){x={};for(var K=0;K<C.length;K++)x["$"+C[K]]=!0;for(C=0;C<p.length;C++)K=x.hasOwnProperty("$"+p[C].value),p[C].selected!==K&&(p[C].selected=K),K&&L&&(p[C].defaultSelected=!0)}else{for(C=""+ye(C),x=null,K=0;K<p.length;K++){if(p[K].value===C){p[K].selected=!0,L&&(p[K].defaultSelected=!0);return}x!==null||p[K].disabled||(x=p[K])}x!==null&&(x.selected=!0)}}function Ee(p,x){if(x.dangerouslySetInnerHTML!=null)throw Error(n(91));return J({},x,{value:void 0,defaultValue:void 0,children:""+p._wrapperState.initialValue})}function Se(p,x){var C=x.value;if(C==null){if(C=x.children,x=x.defaultValue,C!=null){if(x!=null)throw Error(n(92));if(Ue(C)){if(1<C.length)throw Error(n(93));C=C[0]}x=C}x==null&&(x=""),C=x}p._wrapperState={initialValue:ye(C)}}function Ce(p,x){var C=ye(x.value),L=ye(x.defaultValue);C!=null&&(C=""+C,C!==p.value&&(p.value=C),x.defaultValue==null&&p.defaultValue!==C&&(p.defaultValue=C)),L!=null&&(p.defaultValue=""+L)}function pe(p){var x=p.textContent;x===p._wrapperState.initialValue&&x!==""&&x!==null&&(p.value=x)}function ke(p){switch(p){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ve(p,x){return p==null||p==="http://www.w3.org/1999/xhtml"?ke(x):p==="http://www.w3.org/2000/svg"&&x==="foreignObject"?"http://www.w3.org/1999/xhtml":p}var Xe,it=(function(p){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(x,C,L,K){MSApp.execUnsafeLocalFunction(function(){return p(x,C,L,K)})}:p})(function(p,x){if(p.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in p)p.innerHTML=x;else{for(Xe=Xe||document.createElement("div"),Xe.innerHTML="<svg>"+x.valueOf().toString()+"</svg>",x=Xe.firstChild;p.firstChild;)p.removeChild(p.firstChild);for(;x.firstChild;)p.appendChild(x.firstChild)}});function et(p,x){if(x){var C=p.firstChild;if(C&&C===p.lastChild&&C.nodeType===3){C.nodeValue=x;return}}p.textContent=x}var U={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},Ae=["Webkit","ms","Moz","O"];Object.keys(U).forEach(function(p){Ae.forEach(function(x){x=x+p.charAt(0).toUpperCase()+p.substring(1),U[x]=U[p]})});function se(p,x,C){return x==null||typeof x=="boolean"||x===""?"":C||typeof x!="number"||x===0||U.hasOwnProperty(p)&&U[p]?(""+x).trim():x+"px"}function Te(p,x){p=p.style;for(var C in x)if(x.hasOwnProperty(C)){var L=C.indexOf("--")===0,K=se(C,x[C],L);C==="float"&&(C="cssFloat"),L?p.setProperty(C,K):p[C]=K}}var $=J({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 de(p,x){if(x){if($[p]&&(x.children!=null||x.dangerouslySetInnerHTML!=null))throw Error(n(137,p));if(x.dangerouslySetInnerHTML!=null){if(x.children!=null)throw Error(n(60));if(typeof x.dangerouslySetInnerHTML!="object"||!("__html"in x.dangerouslySetInnerHTML))throw Error(n(61))}if(x.style!=null&&typeof x.style!="object")throw Error(n(62))}}function F(p,x){if(p.indexOf("-")===-1)return typeof x.is=="string";switch(p){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 De=null;function He(p){return p=p.target||p.srcElement||window,p.correspondingUseElement&&(p=p.correspondingUseElement),p.nodeType===3?p.parentNode:p}var b=null,ae=null,M=null;function k(p){if(p=ia(p)){if(typeof b!="function")throw Error(n(280));var x=p.stateNode;x&&(x=jd(x),b(p.stateNode,p.type,x))}}function O(p){ae?M?M.push(p):M=[p]:ae=p}function H(){if(ae){var p=ae,x=M;if(M=ae=null,k(p),x)for(p=0;p<x.length;p++)k(x[p])}}function Ne(p,x){return p(x)}function _e(){}var Pe=!1;function Ze(p,x,C){if(Pe)return p(x,C);Pe=!0;try{return Ne(p,x,C)}finally{Pe=!1,(ae!==null||M!==null)&&(_e(),H())}}function ut(p,x){var C=p.stateNode;if(C===null)return null;var L=jd(C);if(L===null)return null;C=L[x];e:switch(x){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(L=!L.disabled)||(p=p.type,L=!(p==="button"||p==="input"||p==="select"||p==="textarea")),p=!L;break e;default:p=!1}if(p)return null;if(C&&typeof C!="function")throw Error(n(231,x,typeof C));return C}var st=!1;if(s)try{var Je={};Object.defineProperty(Je,"passive",{get:function(){st=!0}}),window.addEventListener("test",Je,Je),window.removeEventListener("test",Je,Je)}catch{st=!1}function pt(p,x,C,L,K,ie,we,Ge,Ke){var ot=Array.prototype.slice.call(arguments,3);try{x.apply(C,ot)}catch(Tt){this.onError(Tt)}}var xt=!1,dt=null,rn=!1,Yn=null,Lt={onError:function(p){xt=!0,dt=p}};function Xt(p,x,C,L,K,ie,we,Ge,Ke){xt=!1,dt=null,pt.apply(Lt,arguments)}function qt(p,x,C,L,K,ie,we,Ge,Ke){if(Xt.apply(this,arguments),xt){if(xt){var ot=dt;xt=!1,dt=null}else throw Error(n(198));rn||(rn=!0,Yn=ot)}}function Tn(p){var x=p,C=p;if(p.alternate)for(;x.return;)x=x.return;else{p=x;do x=p,(x.flags&4098)!==0&&(C=x.return),p=x.return;while(p)}return x.tag===3?C:null}function Ye(p){if(p.tag===13){var x=p.memoizedState;if(x===null&&(p=p.alternate,p!==null&&(x=p.memoizedState)),x!==null)return x.dehydrated}return null}function ct(p){if(Tn(p)!==p)throw Error(n(188))}function vt(p){var x=p.alternate;if(!x){if(x=Tn(p),x===null)throw Error(n(188));return x!==p?null:p}for(var C=p,L=x;;){var K=C.return;if(K===null)break;var ie=K.alternate;if(ie===null){if(L=K.return,L!==null){C=L;continue}break}if(K.child===ie.child){for(ie=K.child;ie;){if(ie===C)return ct(K),p;if(ie===L)return ct(K),x;ie=ie.sibling}throw Error(n(188))}if(C.return!==L.return)C=K,L=ie;else{for(var we=!1,Ge=K.child;Ge;){if(Ge===C){we=!0,C=K,L=ie;break}if(Ge===L){we=!0,L=K,C=ie;break}Ge=Ge.sibling}if(!we){for(Ge=ie.child;Ge;){if(Ge===C){we=!0,C=ie,L=K;break}if(Ge===L){we=!0,L=ie,C=K;break}Ge=Ge.sibling}if(!we)throw Error(n(189))}}if(C.alternate!==L)throw Error(n(190))}if(C.tag!==3)throw Error(n(188));return C.stateNode.current===C?p:x}function At(p){return p=vt(p),p!==null?Gt(p):null}function Gt(p){if(p.tag===5||p.tag===6)return p;for(p=p.child;p!==null;){var x=Gt(p);if(x!==null)return x;p=p.sibling}return null}var jt=t.unstable_scheduleCallback,Et=t.unstable_cancelCallback,Rt=t.unstable_shouldYield,Bt=t.unstable_requestPaint,Kt=t.unstable_now,ln=t.unstable_getCurrentPriorityLevel,fr=t.unstable_ImmediatePriority,yi=t.unstable_UserBlockingPriority,bt=t.unstable_NormalPriority,tn=t.unstable_LowPriority,cn=t.unstable_IdlePriority,Yt=null,Pr=null;function On(p){if(Pr&&typeof Pr.onCommitFiberRoot=="function")try{Pr.onCommitFiberRoot(Yt,p,void 0,(p.current.flags&128)===128)}catch{}}var _n=Math.clz32?Math.clz32:ma,ai=Math.log,na=Math.LN2;function ma(p){return p>>>=0,p===0?32:31-(ai(p)/na|0)|0}var Cr=64,Nn=4194304;function mr(p){switch(p&-p){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 p&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return p&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return p}}function Tr(p,x){var C=p.pendingLanes;if(C===0)return 0;var L=0,K=p.suspendedLanes,ie=p.pingedLanes,we=C&268435455;if(we!==0){var Ge=we&~K;Ge!==0?L=mr(Ge):(ie&=we,ie!==0&&(L=mr(ie)))}else we=C&~K,we!==0?L=mr(we):ie!==0&&(L=mr(ie));if(L===0)return 0;if(x!==0&&x!==L&&(x&K)===0&&(K=L&-L,ie=x&-x,K>=ie||K===16&&(ie&4194240)!==0))return x;if((L&4)!==0&&(L|=C&16),x=p.entangledLanes,x!==0)for(p=p.entanglements,x&=L;0<x;)C=31-_n(x),K=1<<C,L|=p[C],x&=~K;return L}function ur(p,x){switch(p){case 1:case 2:case 4:return x+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return x+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wt(p,x){for(var C=p.suspendedLanes,L=p.pingedLanes,K=p.expirationTimes,ie=p.pendingLanes;0<ie;){var we=31-_n(ie),Ge=1<<we,Ke=K[we];Ke===-1?((Ge&C)===0||(Ge&L)!==0)&&(K[we]=ur(Ge,x)):Ke<=x&&(p.expiredLanes|=Ge),ie&=~Ge}}function Wt(p){return p=p.pendingLanes&-1073741825,p!==0?p:p&1073741824?1073741824:0}function yt(){var p=Cr;return Cr<<=1,(Cr&4194240)===0&&(Cr=64),p}function Ot(p){for(var x=[],C=0;31>C;C++)x.push(p);return x}function Fn(p,x,C){p.pendingLanes|=x,x!==536870912&&(p.suspendedLanes=0,p.pingedLanes=0),p=p.eventTimes,x=31-_n(x),p[x]=C}function yr(p,x){var C=p.pendingLanes&~x;p.pendingLanes=x,p.suspendedLanes=0,p.pingedLanes=0,p.expiredLanes&=x,p.mutableReadLanes&=x,p.entangledLanes&=x,x=p.entanglements;var L=p.eventTimes;for(p=p.expirationTimes;0<C;){var K=31-_n(C),ie=1<<K;x[K]=0,L[K]=-1,p[K]=-1,C&=~ie}}function hr(p,x){var C=p.entangledLanes|=x;for(p=p.entanglements;C;){var L=31-_n(C),K=1<<L;K&x|p[L]&x&&(p[L]|=x),C&=~K}}var Pn=0;function _i(p){return p&=-p,1<p?4<p?(p&268435455)!==0?16:536870912:4:1}var Ei,Zt,jn,kn,Un,Hn=!1,Vt=[],Qt=null,St=null,Ht=null,Jt=new Map,In=new Map,pi=[],ca="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Wi(p,x){switch(p){case"focusin":case"focusout":Qt=null;break;case"dragenter":case"dragleave":St=null;break;case"mouseover":case"mouseout":Ht=null;break;case"pointerover":case"pointerout":Jt.delete(x.pointerId);break;case"gotpointercapture":case"lostpointercapture":In.delete(x.pointerId)}}function Fr(p,x,C,L,K,ie){return p===null||p.nativeEvent!==ie?(p={blockedOn:x,domEventName:C,eventSystemFlags:L,nativeEvent:ie,targetContainers:[K]},x!==null&&(x=ia(x),x!==null&&Zt(x)),p):(p.eventSystemFlags|=L,x=p.targetContainers,K!==null&&x.indexOf(K)===-1&&x.push(K),p)}function pr(p,x,C,L,K){switch(x){case"focusin":return Qt=Fr(Qt,p,x,C,L,K),!0;case"dragenter":return St=Fr(St,p,x,C,L,K),!0;case"mouseover":return Ht=Fr(Ht,p,x,C,L,K),!0;case"pointerover":var ie=K.pointerId;return Jt.set(ie,Fr(Jt.get(ie)||null,p,x,C,L,K)),!0;case"gotpointercapture":return ie=K.pointerId,In.set(ie,Fr(In.get(ie)||null,p,x,C,L,K)),!0}return!1}function _r(p){var x=dr(p.target);if(x!==null){var C=Tn(x);if(C!==null){if(x=C.tag,x===13){if(x=Ye(C),x!==null){p.blockedOn=x,Un(p.priority,function(){jn(C)});return}}else if(x===3&&C.stateNode.current.memoizedState.isDehydrated){p.blockedOn=C.tag===3?C.stateNode.containerInfo:null;return}}}p.blockedOn=null}function wn(p){if(p.blockedOn!==null)return!1;for(var x=p.targetContainers;0<x.length;){var C=Ai(p.domEventName,p.eventSystemFlags,x[0],p.nativeEvent);if(C===null){C=p.nativeEvent;var L=new C.constructor(C.type,C);De=L,C.target.dispatchEvent(L),De=null}else return x=ia(C),x!==null&&Zt(x),p.blockedOn=C,!1;x.shift()}return!0}function vr(p,x,C){wn(p)&&C.delete(x)}function Rn(){Hn=!1,Qt!==null&&wn(Qt)&&(Qt=null),St!==null&&wn(St)&&(St=null),Ht!==null&&wn(Ht)&&(Ht=null),Jt.forEach(vr),In.forEach(vr)}function Ir(p,x){p.blockedOn===x&&(p.blockedOn=null,Hn||(Hn=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rn)))}function mn(p){function x(K){return Ir(K,p)}if(0<Vt.length){Ir(Vt[0],p);for(var C=1;C<Vt.length;C++){var L=Vt[C];L.blockedOn===p&&(L.blockedOn=null)}}for(Qt!==null&&Ir(Qt,p),St!==null&&Ir(St,p),Ht!==null&&Ir(Ht,p),Jt.forEach(x),In.forEach(x),C=0;C<pi.length;C++)L=pi[C],L.blockedOn===p&&(L.blockedOn=null);for(;0<pi.length&&(C=pi[0],C.blockedOn===null);)_r(C),C.blockedOn===null&&pi.shift()}var xn=_.ReactCurrentBatchConfig,ei=!0;function yn(p,x,C,L){var K=Pn,ie=xn.transition;xn.transition=null;try{Pn=1,vi(p,x,C,L)}finally{Pn=K,xn.transition=ie}}function Jn(p,x,C,L){var K=Pn,ie=xn.transition;xn.transition=null;try{Pn=4,vi(p,x,C,L)}finally{Pn=K,xn.transition=ie}}function vi(p,x,C,L){if(ei){var K=Ai(p,x,C,L);if(K===null)lt(p,x,L,Zr,C),Wi(p,L);else if(pr(K,p,x,C,L))L.stopPropagation();else if(Wi(p,L),x&4&&-1<ca.indexOf(p)){for(;K!==null;){var ie=ia(K);if(ie!==null&&Ei(ie),ie=Ai(p,x,C,L),ie===null&<(p,x,L,Zr,C),ie===K)break;K=ie}K!==null&&L.stopPropagation()}else lt(p,x,L,null,C)}}var Zr=null;function Ai(p,x,C,L){if(Zr=null,p=He(L),p=dr(p),p!==null)if(x=Tn(p),x===null)p=null;else if(C=x.tag,C===13){if(p=Ye(x),p!==null)return p;p=null}else if(C===3){if(x.stateNode.current.memoizedState.isDehydrated)return x.tag===3?x.stateNode.containerInfo:null;p=null}else x!==p&&(p=null);return Zr=p,null}function Mi(p){switch(p){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ln()){case fr:return 1;case yi:return 4;case bt:case tn:return 16;case cn:return 536870912;default:return 16}default:return 16}}var Ni=null,gi=null,or=null;function xr(){if(or)return or;var p,x=gi,C=x.length,L,K="value"in Ni?Ni.value:Ni.textContent,ie=K.length;for(p=0;p<C&&x[p]===K[p];p++);var we=C-p;for(L=1;L<=we&&x[C-L]===K[ie-L];L++);return or=K.slice(p,1<L?1-L:void 0)}function sr(p){var x=p.keyCode;return"charCode"in p?(p=p.charCode,p===0&&x===13&&(p=13)):p=x,p===10&&(p=13),32<=p||p===13?p:0}function Di(){return!0}function Wr(){return!1}function wi(p){function x(C,L,K,ie,we){this._reactName=C,this._targetInst=K,this.type=L,this.nativeEvent=ie,this.target=we,this.currentTarget=null;for(var Ge in p)p.hasOwnProperty(Ge)&&(C=p[Ge],this[Ge]=C?C(ie):ie[Ge]);return this.isDefaultPrevented=(ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue===!1)?Di:Wr,this.isPropagationStopped=Wr,this}return J(x.prototype,{preventDefault:function(){this.defaultPrevented=!0;var C=this.nativeEvent;C&&(C.preventDefault?C.preventDefault():typeof C.returnValue!="unknown"&&(C.returnValue=!1),this.isDefaultPrevented=Di)},stopPropagation:function(){var C=this.nativeEvent;C&&(C.stopPropagation?C.stopPropagation():typeof C.cancelBubble!="unknown"&&(C.cancelBubble=!0),this.isPropagationStopped=Di)},persist:function(){},isPersistent:Di}),x}var En={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(p){return p.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Er=wi(En),ra=J({},En,{view:0,detail:0}),ua=wi(ra),ks,ho,Eo,iu=J({},ra,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cs,button:0,buttons:0,relatedTarget:function(p){return p.relatedTarget===void 0?p.fromElement===p.srcElement?p.toElement:p.fromElement:p.relatedTarget},movementX:function(p){return"movementX"in p?p.movementX:(p!==Eo&&(Eo&&p.type==="mousemove"?(ks=p.screenX-Eo.screenX,ho=p.screenY-Eo.screenY):ho=ks=0,Eo=p),ks)},movementY:function(p){return"movementY"in p?p.movementY:ho}}),Ed=wi(iu),xi=J({},iu,{dataTransfer:0}),ti=wi(xi),eo=J({},ra,{relatedTarget:0}),da=wi(eo),Ds=J({},En,{animationName:0,elapsedTime:0,pseudoElement:0}),uh=wi(Ds),By=J({},En,{clipboardData:function(p){return"clipboardData"in p?p.clipboardData:window.clipboardData}}),C2=wi(By),Sn=J({},En,{data:0}),gc=wi(Sn),dh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Or={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wy(p){var x=this.nativeEvent;return x.getModifierState?x.getModifierState(p):(p=Or[p])?!!x[p]:!1}function Cs(){return Wy}var fh=J({},ra,{key:function(p){if(p.key){var x=dh[p.key]||p.key;if(x!=="Unidentified")return x}return p.type==="keypress"?(p=sr(p),p===13?"Enter":String.fromCharCode(p)):p.type==="keydown"||p.type==="keyup"?zy[p.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cs,charCode:function(p){return p.type==="keypress"?sr(p):0},keyCode:function(p){return p.type==="keydown"||p.type==="keyup"?p.keyCode:0},which:function(p){return p.type==="keypress"?sr(p):p.type==="keydown"||p.type==="keyup"?p.keyCode:0}}),hh=wi(fh),Vy=J({},iu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gy=wi(Vy),T2=J({},ra,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cs}),au=wi(T2),Ig=J({},En,{propertyName:0,elapsedTime:0,pseudoElement:0}),qy=wi(Ig),Hy=J({},iu,{deltaX:function(p){return"deltaX"in p?p.deltaX:"wheelDeltaX"in p?-p.wheelDeltaX:0},deltaY:function(p){return"deltaY"in p?p.deltaY:"wheelDeltaY"in p?-p.wheelDeltaY:"wheelDelta"in p?-p.wheelDelta:0},deltaZ:0,deltaMode:0}),Xy=wi(Hy),Mg=[9,13,27,32],Nd=s&&"CompositionEvent"in window,ou=null;s&&"documentMode"in document&&(ou=document.documentMode);var Fd=s&&"TextEvent"in window&&!ou,Zy=s&&(!Nd||ou&&8<ou&&11>=ou),Ky=" ",Ug=!1;function Rd(p,x){switch(p){case"keyup":return Mg.indexOf(x.keyCode)!==-1;case"keydown":return x.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ts(p){return p=p.detail,typeof p=="object"&&"data"in p?p.data:null}var su=!1;function ph(p,x){switch(p){case"compositionend":return Ts(x);case"keypress":return x.which!==32?null:(Ug=!0,Ky);case"textInput":return p=x.data,p===Ky&&Ug?null:p;default:return null}}function _2(p,x){if(su)return p==="compositionend"||!Nd&&Rd(p,x)?(p=xr(),or=gi=Ni=null,su=!1,p):null;switch(p){case"paste":return null;case"keypress":if(!(x.ctrlKey||x.altKey||x.metaKey)||x.ctrlKey&&x.altKey){if(x.char&&1<x.char.length)return x.char;if(x.which)return String.fromCharCode(x.which)}return null;case"compositionend":return Zy&&x.locale!=="ko"?null:x.data;default:return null}}var E2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Lg(p){var x=p&&p.nodeName&&p.nodeName.toLowerCase();return x==="input"?!!E2[p.type]:x==="textarea"}function $y(p,x,C,L){O(L),x=zt(x,"onChange"),0<x.length&&(C=new Er("onChange","change",null,C,L),p.push({event:C,listeners:x}))}var lu=null,Pd=null;function Yy(p){fe(p,0)}function gh(p){var x=No(p);if(Re(x))return p}function N2(p,x){if(p==="change")return x}var Og=!1;if(s){var mc;if(s){var mh="oninput"in document;if(!mh){var Jy=document.createElement("div");Jy.setAttribute("oninput","return;"),mh=typeof Jy.oninput=="function"}mc=mh}else mc=!1;Og=mc&&(!document.documentMode||9<document.documentMode)}function Qy(){lu&&(lu.detachEvent("onpropertychange",jg),Pd=lu=null)}function jg(p){if(p.propertyName==="value"&&gh(Pd)){var x=[];$y(x,Pd,p,He(p)),Ze(Yy,x)}}function cu(p,x,C){p==="focusin"?(Qy(),lu=x,Pd=C,lu.attachEvent("onpropertychange",jg)):p==="focusout"&&Qy()}function cl(p){if(p==="selectionchange"||p==="keyup"||p==="keydown")return gh(Pd)}function ev(p,x){if(p==="click")return gh(x)}function F2(p,x){if(p==="input"||p==="change")return gh(x)}function tv(p,x){return p===x&&(p!==0||1/p===1/x)||p!==p&&x!==x}var Yo=typeof Object.is=="function"?Object.is:tv;function Id(p,x){if(Yo(p,x))return!0;if(typeof p!="object"||p===null||typeof x!="object"||x===null)return!1;var C=Object.keys(p),L=Object.keys(x);if(C.length!==L.length)return!1;for(L=0;L<C.length;L++){var K=C[L];if(!l.call(x,K)||!Yo(p[K],x[K]))return!1}return!0}function nv(p){for(;p&&p.firstChild;)p=p.firstChild;return p}function Bg(p,x){var C=nv(p);p=0;for(var L;C;){if(C.nodeType===3){if(L=p+C.textContent.length,p<=x&&L>=x)return{node:C,offset:x-p};p=L}e:{for(;C;){if(C.nextSibling){C=C.nextSibling;break e}C=C.parentNode}C=void 0}C=nv(C)}}function rv(p,x){return p&&x?p===x?!0:p&&p.nodeType===3?!1:x&&x.nodeType===3?rv(p,x.parentNode):"contains"in p?p.contains(x):p.compareDocumentPosition?!!(p.compareDocumentPosition(x)&16):!1:!1}function zg(){for(var p=window,x=We();x instanceof p.HTMLIFrameElement;){try{var C=typeof x.contentWindow.location.href=="string"}catch{C=!1}if(C)p=x.contentWindow;else break;x=We(p.document)}return x}function zl(p){var x=p&&p.nodeName&&p.nodeName.toLowerCase();return x&&(x==="input"&&(p.type==="text"||p.type==="search"||p.type==="tel"||p.type==="url"||p.type==="password")||x==="textarea"||p.contentEditable==="true")}function R2(p){var x=zg(),C=p.focusedElem,L=p.selectionRange;if(x!==C&&C&&C.ownerDocument&&rv(C.ownerDocument.documentElement,C)){if(L!==null&&zl(C)){if(x=L.start,p=L.end,p===void 0&&(p=x),"selectionStart"in C)C.selectionStart=x,C.selectionEnd=Math.min(p,C.value.length);else if(p=(x=C.ownerDocument||document)&&x.defaultView||window,p.getSelection){p=p.getSelection();var K=C.textContent.length,ie=Math.min(L.start,K);L=L.end===void 0?ie:Math.min(L.end,K),!p.extend&&ie>L&&(K=L,L=ie,ie=K),K=Bg(C,ie);var we=Bg(C,L);K&&we&&(p.rangeCount!==1||p.anchorNode!==K.node||p.anchorOffset!==K.offset||p.focusNode!==we.node||p.focusOffset!==we.offset)&&(x=x.createRange(),x.setStart(K.node,K.offset),p.removeAllRanges(),ie>L?(p.addRange(x),p.extend(we.node,we.offset)):(x.setEnd(we.node,we.offset),p.addRange(x)))}}for(x=[],p=C;p=p.parentNode;)p.nodeType===1&&x.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<x.length;C++)p=x[C],p.element.scrollLeft=p.left,p.element.scrollTop=p.top}}var P2=s&&"documentMode"in document&&11>=document.documentMode,yc=null,Wg=null,Md=null,Vg=!1;function iv(p,x,C){var L=C.window===C?C.document:C.nodeType===9?C:C.ownerDocument;Vg||yc==null||yc!==We(L)||(L=yc,"selectionStart"in L&&zl(L)?L={start:L.selectionStart,end:L.selectionEnd}:(L=(L.ownerDocument&&L.ownerDocument.defaultView||window).getSelection(),L={anchorNode:L.anchorNode,anchorOffset:L.anchorOffset,focusNode:L.focusNode,focusOffset:L.focusOffset}),Md&&Id(Md,L)||(Md=L,L=zt(Wg,"onSelect"),0<L.length&&(x=new Er("onSelect","select",null,x,C),p.push({event:x,listeners:L}),x.target=yc)))}function yh(p,x){var C={};return C[p.toLowerCase()]=x.toLowerCase(),C["Webkit"+p]="webkit"+x,C["Moz"+p]="moz"+x,C}var uu={animationend:yh("Animation","AnimationEnd"),animationiteration:yh("Animation","AnimationIteration"),animationstart:yh("Animation","AnimationStart"),transitionend:yh("Transition","TransitionEnd")},vh={},av={};s&&(av=document.createElement("div").style,"AnimationEvent"in window||(delete uu.animationend.animation,delete uu.animationiteration.animation,delete uu.animationstart.animation),"TransitionEvent"in window||delete uu.transitionend.transition);function Ud(p){if(vh[p])return vh[p];if(!uu[p])return p;var x=uu[p],C;for(C in x)if(x.hasOwnProperty(C)&&C in av)return vh[p]=x[C];return p}var Ld=Ud("animationend"),ov=Ud("animationiteration"),sv=Ud("animationstart"),lv=Ud("transitionend"),Gg=new Map,qg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ul(p,x){Gg.set(p,x),a(x,[p])}for(var Hg=0;Hg<qg.length;Hg++){var Xg=qg[Hg],I2=Xg.toLowerCase(),M2=Xg[0].toUpperCase()+Xg.slice(1);ul(I2,"on"+M2)}ul(Ld,"onAnimationEnd"),ul(ov,"onAnimationIteration"),ul(sv,"onAnimationStart"),ul("dblclick","onDoubleClick"),ul("focusin","onFocus"),ul("focusout","onBlur"),ul(lv,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Od="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Y=new Set("cancel close invalid load scroll toggle".split(" ").concat(Od));function he(p,x,C){var L=p.type||"unknown-event";p.currentTarget=C,qt(L,x,void 0,p),p.currentTarget=null}function fe(p,x){x=(x&4)!==0;for(var C=0;C<p.length;C++){var L=p[C],K=L.event;L=L.listeners;e:{var ie=void 0;if(x)for(var we=L.length-1;0<=we;we--){var Ge=L[we],Ke=Ge.instance,ot=Ge.currentTarget;if(Ge=Ge.listener,Ke!==ie&&K.isPropagationStopped())break e;he(K,Ge,ot),ie=Ke}else for(we=0;we<L.length;we++){if(Ge=L[we],Ke=Ge.instance,ot=Ge.currentTarget,Ge=Ge.listener,Ke!==ie&&K.isPropagationStopped())break e;he(K,Ge,ot),ie=Ke}}}if(rn)throw p=Yn,rn=!1,Yn=null,p}function me(p,x){var C=x[Mr];C===void 0&&(C=x[Mr]=new Set);var L=p+"__bubble";C.has(L)||(nt(x,p,2,!1),C.add(L))}function Ie(p,x,C){var L=0;x&&(L|=4),nt(C,p,L,x)}var qe="_reactListening"+Math.random().toString(36).slice(2);function Be(p){if(!p[qe]){p[qe]=!0,r.forEach(function(C){C!=="selectionchange"&&(Y.has(C)||Ie(C,!1,p),Ie(C,!0,p))});var x=p.nodeType===9?p:p.ownerDocument;x===null||x[qe]||(x[qe]=!0,Ie("selectionchange",!1,x))}}function nt(p,x,C,L){switch(Mi(x)){case 1:var K=yn;break;case 4:K=Jn;break;default:K=vi}C=K.bind(null,x,C,p),K=void 0,!st||x!=="touchstart"&&x!=="touchmove"&&x!=="wheel"||(K=!0),L?K!==void 0?p.addEventListener(x,C,{capture:!0,passive:K}):p.addEventListener(x,C,!0):K!==void 0?p.addEventListener(x,C,{passive:K}):p.addEventListener(x,C,!1)}function lt(p,x,C,L,K){var ie=L;if((x&1)===0&&(x&2)===0&&L!==null)e:for(;;){if(L===null)return;var we=L.tag;if(we===3||we===4){var Ge=L.stateNode.containerInfo;if(Ge===K||Ge.nodeType===8&&Ge.parentNode===K)break;if(we===4)for(we=L.return;we!==null;){var Ke=we.tag;if((Ke===3||Ke===4)&&(Ke=we.stateNode.containerInfo,Ke===K||Ke.nodeType===8&&Ke.parentNode===K))return;we=we.return}for(;Ge!==null;){if(we=dr(Ge),we===null)return;if(Ke=we.tag,Ke===5||Ke===6){L=ie=we;continue e}Ge=Ge.parentNode}}L=L.return}Ze(function(){var ot=ie,Tt=He(C),Ft=[];e:{var kt=Gg.get(p);if(kt!==void 0){var nn=Er,un=p;switch(p){case"keypress":if(sr(C)===0)break e;case"keydown":case"keyup":nn=hh;break;case"focusin":un="focus",nn=da;break;case"focusout":un="blur",nn=da;break;case"beforeblur":case"afterblur":nn=da;break;case"click":if(C.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":nn=Ed;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":nn=ti;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":nn=au;break;case Ld:case ov:case sv:nn=uh;break;case lv:nn=qy;break;case"scroll":nn=ua;break;case"wheel":nn=Xy;break;case"copy":case"cut":case"paste":nn=C2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":nn=Gy}var gn=(x&4)!==0,fa=!gn&&p==="scroll",tt=gn?kt!==null?kt+"Capture":null:kt;gn=[];for(var $e=ot,rt;$e!==null;){rt=$e;var Ut=rt.stateNode;if(rt.tag===5&&Ut!==null&&(rt=Ut,tt!==null&&(Ut=ut($e,tt),Ut!=null&&gn.push(ft($e,Ut,rt)))),fa)break;$e=$e.return}0<gn.length&&(kt=new nn(kt,un,null,C,Tt),Ft.push({event:kt,listeners:gn}))}}if((x&7)===0){e:{if(kt=p==="mouseover"||p==="pointerover",nn=p==="mouseout"||p==="pointerout",kt&&C!==De&&(un=C.relatedTarget||C.fromElement)&&(dr(un)||un[es]))break e;if((nn||kt)&&(kt=Tt.window===Tt?Tt:(kt=Tt.ownerDocument)?kt.defaultView||kt.parentWindow:window,nn?(un=C.relatedTarget||C.toElement,nn=ot,un=un?dr(un):null,un!==null&&(fa=Tn(un),un!==fa||un.tag!==5&&un.tag!==6)&&(un=null)):(nn=null,un=ot),nn!==un)){if(gn=Ed,Ut="onMouseLeave",tt="onMouseEnter",$e="mouse",(p==="pointerout"||p==="pointerover")&&(gn=Gy,Ut="onPointerLeave",tt="onPointerEnter",$e="pointer"),fa=nn==null?kt:No(nn),rt=un==null?kt:No(un),kt=new gn(Ut,$e+"leave",nn,C,Tt),kt.target=fa,kt.relatedTarget=rt,Ut=null,dr(Tt)===ot&&(gn=new gn(tt,$e+"enter",un,C,Tt),gn.target=rt,gn.relatedTarget=fa,Ut=gn),fa=Ut,nn&&un)t:{for(gn=nn,tt=un,$e=0,rt=gn;rt;rt=_t(rt))$e++;for(rt=0,Ut=tt;Ut;Ut=_t(Ut))rt++;for(;0<$e-rt;)gn=_t(gn),$e--;for(;0<rt-$e;)tt=_t(tt),rt--;for(;$e--;){if(gn===tt||tt!==null&&gn===tt.alternate)break t;gn=_t(gn),tt=_t(tt)}gn=null}else gn=null;nn!==null&&$t(Ft,kt,nn,gn,!1),un!==null&&fa!==null&&$t(Ft,fa,un,gn,!0)}}e:{if(kt=ot?No(ot):window,nn=kt.nodeName&&kt.nodeName.toLowerCase(),nn==="select"||nn==="input"&&kt.type==="file")var An=N2;else if(Lg(kt))if(Og)An=F2;else{An=cl;var Bn=cu}else(nn=kt.nodeName)&&nn.toLowerCase()==="input"&&(kt.type==="checkbox"||kt.type==="radio")&&(An=ev);if(An&&(An=An(p,ot))){$y(Ft,An,C,Tt);break e}Bn&&Bn(p,kt,ot),p==="focusout"&&(Bn=kt._wrapperState)&&Bn.controlled&&kt.type==="number"&&be(kt,"number",kt.value)}switch(Bn=ot?No(ot):window,p){case"focusin":(Lg(Bn)||Bn.contentEditable==="true")&&(yc=Bn,Wg=ot,Md=null);break;case"focusout":Md=Wg=yc=null;break;case"mousedown":Vg=!0;break;case"contextmenu":case"mouseup":case"dragend":Vg=!1,iv(Ft,C,Tt);break;case"selectionchange":if(P2)break;case"keydown":case"keyup":iv(Ft,C,Tt)}var zn;if(Nd)e:{switch(p){case"compositionstart":var ir="onCompositionStart";break e;case"compositionend":ir="onCompositionEnd";break e;case"compositionupdate":ir="onCompositionUpdate";break e}ir=void 0}else su?Rd(p,C)&&(ir="onCompositionEnd"):p==="keydown"&&C.keyCode===229&&(ir="onCompositionStart");ir&&(Zy&&C.locale!=="ko"&&(su||ir!=="onCompositionStart"?ir==="onCompositionEnd"&&su&&(zn=xr()):(Ni=Tt,gi="value"in Ni?Ni.value:Ni.textContent,su=!0)),Bn=zt(ot,ir),0<Bn.length&&(ir=new gc(ir,p,null,C,Tt),Ft.push({event:ir,listeners:Bn}),zn?ir.data=zn:(zn=Ts(C),zn!==null&&(ir.data=zn)))),(zn=Fd?ph(p,C):_2(p,C))&&(ot=zt(ot,"onBeforeInput"),0<ot.length&&(Tt=new gc("onBeforeInput","beforeinput",null,C,Tt),Ft.push({event:Tt,listeners:ot}),Tt.data=zn))}fe(Ft,x)})}function ft(p,x,C){return{instance:p,listener:x,currentTarget:C}}function zt(p,x){for(var C=x+"Capture",L=[];p!==null;){var K=p,ie=K.stateNode;K.tag===5&&ie!==null&&(K=ie,ie=ut(p,C),ie!=null&&L.unshift(ft(p,ie,K)),ie=ut(p,x),ie!=null&&L.push(ft(p,ie,K))),p=p.return}return L}function _t(p){if(p===null)return null;do p=p.return;while(p&&p.tag!==5);return p||null}function $t(p,x,C,L,K){for(var ie=x._reactName,we=[];C!==null&&C!==L;){var Ge=C,Ke=Ge.alternate,ot=Ge.stateNode;if(Ke!==null&&Ke===L)break;Ge.tag===5&&ot!==null&&(Ge=ot,K?(Ke=ut(C,ie),Ke!=null&&we.unshift(ft(C,Ke,Ge))):K||(Ke=ut(C,ie),Ke!=null&&we.push(ft(C,Ke,Ge)))),C=C.return}we.length!==0&&p.push({event:x,listeners:we})}var Gn=/\r\n?/g,Qn=/\u0000|\uFFFD/g;function Xn(p){return(typeof p=="string"?p:""+p).replace(Gn,`-`).replace(Qn,"")}function at(p,x,C){if(x=Xn(x),Xn(p)!==x&&C)throw Error(n(425))}function bn(){}var on=null,er=null;function Vr(p,x){return p==="textarea"||p==="noscript"||typeof x.children=="string"||typeof x.children=="number"||typeof x.dangerouslySetInnerHTML=="object"&&x.dangerouslySetInnerHTML!==null&&x.dangerouslySetInnerHTML.__html!=null}var Vi=typeof setTimeout=="function"?setTimeout:void 0,vc=typeof clearTimeout=="function"?clearTimeout:void 0,xh=typeof Promise=="function"?Promise:void 0,bh=typeof queueMicrotask=="function"?queueMicrotask:typeof xh<"u"?function(p){return xh.resolve(null).then(p).catch(Zg)}:Vi;function Zg(p){setTimeout(function(){throw p})}function Wl(p,x){var C=x,L=0;do{var K=C.nextSibling;if(p.removeChild(C),K&&K.nodeType===8)if(C=K.data,C==="/$"){if(L===0){p.removeChild(K),mn(x);return}L--}else C!=="$"&&C!=="$?"&&C!=="$!"||L++;C=K}while(C);mn(x)}function Ia(p){for(;p!=null;p=p.nextSibling){var x=p.nodeType;if(x===1||x===3)break;if(x===8){if(x=p.data,x==="$"||x==="$!"||x==="$?")break;if(x==="/$")return null}}return p}function Jo(p){p=p.previousSibling;for(var x=0;p;){if(p.nodeType===8){var C=p.data;if(C==="$"||C==="$!"||C==="$?"){if(x===0)return p;x--}else C==="/$"&&x++}p=p.previousSibling}return null}var Ui=Math.random().toString(36).slice(2),ya="__reactFiber$"+Ui,Qo="__reactProps$"+Ui,es="__reactContainer$"+Ui,Mr="__reactEvents$"+Ui,wa="__reactListeners$"+Ui,ts="__reactHandles$"+Ui;function dr(p){var x=p[ya];if(x)return x;for(var C=p.parentNode;C;){if(x=C[es]||C[ya]){if(C=x.alternate,x.child!==null||C!==null&&C.child!==null)for(p=Jo(p);p!==null;){if(C=p[ya])return C;p=Jo(p)}return x}p=C,C=p.parentNode}return null}function ia(p){return p=p[ya]||p[es],!p||p.tag!==5&&p.tag!==6&&p.tag!==13&&p.tag!==3?null:p}function No(p){if(p.tag===5||p.tag===6)return p.stateNode;throw Error(n(33))}function jd(p){return p[Qo]||null}var Ah=[],xc=-1;function ns(p){return{current:p}}function Si(p){0>xc||(p.current=Ah[xc],Ah[xc]=null,xc--)}function Fi(p,x){xc++,Ah[xc]=p.current,p.current=x}var du={},to=ns(du),Fo=ns(!1),Bd=du;function wh(p,x){var C=p.type.contextTypes;if(!C)return du;var L=p.stateNode;if(L&&L.__reactInternalMemoizedUnmaskedChildContext===x)return L.__reactInternalMemoizedMaskedChildContext;var K={},ie;for(ie in C)K[ie]=x[ie];return L&&(p=p.stateNode,p.__reactInternalMemoizedUnmaskedChildContext=x,p.__reactInternalMemoizedMaskedChildContext=K),K}function Ro(p){return p=p.childContextTypes,p!=null}function cv(){Si(Fo),Si(to)}function vR(p,x,C){if(to.current!==du)throw Error(n(168));Fi(to,x),Fi(Fo,C)}function xR(p,x,C){var L=p.stateNode;if(x=x.childContextTypes,typeof L.getChildContext!="function")return C;L=L.getChildContext();for(var K in L)if(!(K in x))throw Error(n(108,ce(p)||"Unknown",K));return J({},C,L)}function uv(p){return p=(p=p.stateNode)&&p.__reactInternalMemoizedMergedChildContext||du,Bd=to.current,Fi(to,p),Fi(Fo,Fo.current),!0}function bR(p,x,C){var L=p.stateNode;if(!L)throw Error(n(169));C?(p=xR(p,x,Bd),L.__reactInternalMemoizedMergedChildContext=p,Si(Fo),Si(to),Fi(to,p)):Si(Fo),Fi(Fo,C)}var bc=null,dv=!1,U2=!1;function AR(p){bc===null?bc=[p]:bc.push(p)}function jY(p){dv=!0,AR(p)}function fu(){if(!U2&&bc!==null){U2=!0;var p=0,x=Pn;try{var C=bc;for(Pn=1;p<C.length;p++){var L=C[p];do L=L(!0);while(L!==null)}bc=null,dv=!1}catch(K){throw bc!==null&&(bc=bc.slice(p+1)),jt(fr,fu),K}finally{Pn=x,U2=!1}}return null}var Sh=[],kh=0,fv=null,hv=0,_s=[],Es=0,zd=null,Ac=1,wc="";function Wd(p,x){Sh[kh++]=hv,Sh[kh++]=fv,fv=p,hv=x}function wR(p,x,C){_s[Es++]=Ac,_s[Es++]=wc,_s[Es++]=zd,zd=p;var L=Ac;p=wc;var K=32-_n(L)-1;L&=~(1<<K),C+=1;var ie=32-_n(x)+K;if(30<ie){var we=K-K%5;ie=(L&(1<<we)-1).toString(32),L>>=we,K-=we,Ac=1<<32-_n(x)+K|C<<K|L,wc=ie+p}else Ac=1<<ie|C<<K|L,wc=p}function L2(p){p.return!==null&&(Wd(p,1),wR(p,1,0))}function O2(p){for(;p===fv;)fv=Sh[--kh],Sh[kh]=null,hv=Sh[--kh],Sh[kh]=null;for(;p===zd;)zd=_s[--Es],_s[Es]=null,wc=_s[--Es],_s[Es]=null,Ac=_s[--Es],_s[Es]=null}var rs=null,is=null,Gi=!1,dl=null;function SR(p,x){var C=Ps(5,null,null,0);C.elementType="DELETED",C.stateNode=x,C.return=p,x=p.deletions,x===null?(p.deletions=[C],p.flags|=16):x.push(C)}function kR(p,x){switch(p.tag){case 5:var C=p.type;return x=x.nodeType!==1||C.toLowerCase()!==x.nodeName.toLowerCase()?null:x,x!==null?(p.stateNode=x,rs=p,is=Ia(x.firstChild),!0):!1;case 6:return x=p.pendingProps===""||x.nodeType!==3?null:x,x!==null?(p.stateNode=x,rs=p,is=null,!0):!1;case 13:return x=x.nodeType!==8?null:x,x!==null?(C=zd!==null?{id:Ac,overflow:wc}:null,p.memoizedState={dehydrated:x,treeContext:C,retryLane:1073741824},C=Ps(18,null,null,0),C.stateNode=x,C.return=p,p.child=C,rs=p,is=null,!0):!1;default:return!1}}function j2(p){return(p.mode&1)!==0&&(p.flags&128)===0}function B2(p){if(Gi){var x=is;if(x){var C=x;if(!kR(p,x)){if(j2(p))throw Error(n(418));x=Ia(C.nextSibling);var L=rs;x&&kR(p,x)?SR(L,C):(p.flags=p.flags&-4097|2,Gi=!1,rs=p)}}else{if(j2(p))throw Error(n(418));p.flags=p.flags&-4097|2,Gi=!1,rs=p}}}function DR(p){for(p=p.return;p!==null&&p.tag!==5&&p.tag!==3&&p.tag!==13;)p=p.return;rs=p}function pv(p){if(p!==rs)return!1;if(!Gi)return DR(p),Gi=!0,!1;var x;if((x=p.tag!==3)&&!(x=p.tag!==5)&&(x=p.type,x=x!=="head"&&x!=="body"&&!Vr(p.type,p.memoizedProps)),x&&(x=is)){if(j2(p))throw CR(),Error(n(418));for(;x;)SR(p,x),x=Ia(x.nextSibling)}if(DR(p),p.tag===13){if(p=p.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(n(317));e:{for(p=p.nextSibling,x=0;p;){if(p.nodeType===8){var C=p.data;if(C==="/$"){if(x===0){is=Ia(p.nextSibling);break e}x--}else C!=="$"&&C!=="$!"&&C!=="$?"||x++}p=p.nextSibling}is=null}}else is=rs?Ia(p.stateNode.nextSibling):null;return!0}function CR(){for(var p=is;p;)p=Ia(p.nextSibling)}function Dh(){is=rs=null,Gi=!1}function z2(p){dl===null?dl=[p]:dl.push(p)}var BY=_.ReactCurrentBatchConfig;function Kg(p,x,C){if(p=C.ref,p!==null&&typeof p!="function"&&typeof p!="object"){if(C._owner){if(C=C._owner,C){if(C.tag!==1)throw Error(n(309));var L=C.stateNode}if(!L)throw Error(n(147,p));var K=L,ie=""+p;return x!==null&&x.ref!==null&&typeof x.ref=="function"&&x.ref._stringRef===ie?x.ref:(x=function(we){var Ge=K.refs;we===null?delete Ge[ie]:Ge[ie]=we},x._stringRef=ie,x)}if(typeof p!="string")throw Error(n(284));if(!C._owner)throw Error(n(290,p))}return p}function gv(p,x){throw p=Object.prototype.toString.call(x),Error(n(31,p==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":p))}function TR(p){var x=p._init;return x(p._payload)}function _R(p){function x(tt,$e){if(p){var rt=tt.deletions;rt===null?(tt.deletions=[$e],tt.flags|=16):rt.push($e)}}function C(tt,$e){if(!p)return null;for(;$e!==null;)x(tt,$e),$e=$e.sibling;return null}function L(tt,$e){for(tt=new Map;$e!==null;)$e.key!==null?tt.set($e.key,$e):tt.set($e.index,$e),$e=$e.sibling;return tt}function K(tt,$e){return tt=bu(tt,$e),tt.index=0,tt.sibling=null,tt}function ie(tt,$e,rt){return tt.index=rt,p?(rt=tt.alternate,rt!==null?(rt=rt.index,rt<$e?(tt.flags|=2,$e):rt):(tt.flags|=2,$e)):(tt.flags|=1048576,$e)}function we(tt){return p&&tt.alternate===null&&(tt.flags|=2),tt}function Ge(tt,$e,rt,Ut){return $e===null||$e.tag!==6?($e=RS(rt,tt.mode,Ut),$e.return=tt,$e):($e=K($e,rt),$e.return=tt,$e)}function Ke(tt,$e,rt,Ut){var An=rt.type;return An===D?Tt(tt,$e,rt.props.children,Ut,rt.key):$e!==null&&($e.elementType===An||typeof An=="object"&&An!==null&&An.$$typeof===Q&&TR(An)===$e.type)?(Ut=K($e,rt.props),Ut.ref=Kg(tt,$e,rt),Ut.return=tt,Ut):(Ut=jv(rt.type,rt.key,rt.props,null,tt.mode,Ut),Ut.ref=Kg(tt,$e,rt),Ut.return=tt,Ut)}function ot(tt,$e,rt,Ut){return $e===null||$e.tag!==4||$e.stateNode.containerInfo!==rt.containerInfo||$e.stateNode.implementation!==rt.implementation?($e=PS(rt,tt.mode,Ut),$e.return=tt,$e):($e=K($e,rt.children||[]),$e.return=tt,$e)}function Tt(tt,$e,rt,Ut,An){return $e===null||$e.tag!==7?($e=$d(rt,tt.mode,Ut,An),$e.return=tt,$e):($e=K($e,rt),$e.return=tt,$e)}function Ft(tt,$e,rt){if(typeof $e=="string"&&$e!==""||typeof $e=="number")return $e=RS(""+$e,tt.mode,rt),$e.return=tt,$e;if(typeof $e=="object"&&$e!==null){switch($e.$$typeof){case E:return rt=jv($e.type,$e.key,$e.props,null,tt.mode,rt),rt.ref=Kg(tt,null,$e),rt.return=tt,rt;case T:return $e=PS($e,tt.mode,rt),$e.return=tt,$e;case Q:var Ut=$e._init;return Ft(tt,Ut($e._payload),rt)}if(Ue($e)||te($e))return $e=$d($e,tt.mode,rt,null),$e.return=tt,$e;gv(tt,$e)}return null}function kt(tt,$e,rt,Ut){var An=$e!==null?$e.key:null;if(typeof rt=="string"&&rt!==""||typeof rt=="number")return An!==null?null:Ge(tt,$e,""+rt,Ut);if(typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case E:return rt.key===An?Ke(tt,$e,rt,Ut):null;case T:return rt.key===An?ot(tt,$e,rt,Ut):null;case Q:return An=rt._init,kt(tt,$e,An(rt._payload),Ut)}if(Ue(rt)||te(rt))return An!==null?null:Tt(tt,$e,rt,Ut,null);gv(tt,rt)}return null}function nn(tt,$e,rt,Ut,An){if(typeof Ut=="string"&&Ut!==""||typeof Ut=="number")return tt=tt.get(rt)||null,Ge($e,tt,""+Ut,An);if(typeof Ut=="object"&&Ut!==null){switch(Ut.$$typeof){case E:return tt=tt.get(Ut.key===null?rt:Ut.key)||null,Ke($e,tt,Ut,An);case T:return tt=tt.get(Ut.key===null?rt:Ut.key)||null,ot($e,tt,Ut,An);case Q:var Bn=Ut._init;return nn(tt,$e,rt,Bn(Ut._payload),An)}if(Ue(Ut)||te(Ut))return tt=tt.get(rt)||null,Tt($e,tt,Ut,An,null);gv($e,Ut)}return null}function un(tt,$e,rt,Ut){for(var An=null,Bn=null,zn=$e,ir=$e=0,La=null;zn!==null&&ir<rt.length;ir++){zn.index>ir?(La=zn,zn=null):La=zn.sibling;var oi=kt(tt,zn,rt[ir],Ut);if(oi===null){zn===null&&(zn=La);break}p&&zn&&oi.alternate===null&&x(tt,zn),$e=ie(oi,$e,ir),Bn===null?An=oi:Bn.sibling=oi,Bn=oi,zn=La}if(ir===rt.length)return C(tt,zn),Gi&&Wd(tt,ir),An;if(zn===null){for(;ir<rt.length;ir++)zn=Ft(tt,rt[ir],Ut),zn!==null&&($e=ie(zn,$e,ir),Bn===null?An=zn:Bn.sibling=zn,Bn=zn);return Gi&&Wd(tt,ir),An}for(zn=L(tt,zn);ir<rt.length;ir++)La=nn(zn,tt,ir,rt[ir],Ut),La!==null&&(p&&La.alternate!==null&&zn.delete(La.key===null?ir:La.key),$e=ie(La,$e,ir),Bn===null?An=La:Bn.sibling=La,Bn=La);return p&&zn.forEach(function(Au){return x(tt,Au)}),Gi&&Wd(tt,ir),An}function gn(tt,$e,rt,Ut){var An=te(rt);if(typeof An!="function")throw Error(n(150));if(rt=An.call(rt),rt==null)throw Error(n(151));for(var Bn=An=null,zn=$e,ir=$e=0,La=null,oi=rt.next();zn!==null&&!oi.done;ir++,oi=rt.next()){zn.index>ir?(La=zn,zn=null):La=zn.sibling;var Au=kt(tt,zn,oi.value,Ut);if(Au===null){zn===null&&(zn=La);break}p&&zn&&Au.alternate===null&&x(tt,zn),$e=ie(Au,$e,ir),Bn===null?An=Au:Bn.sibling=Au,Bn=Au,zn=La}if(oi.done)return C(tt,zn),Gi&&Wd(tt,ir),An;if(zn===null){for(;!oi.done;ir++,oi=rt.next())oi=Ft(tt,oi.value,Ut),oi!==null&&($e=ie(oi,$e,ir),Bn===null?An=oi:Bn.sibling=oi,Bn=oi);return Gi&&Wd(tt,ir),An}for(zn=L(tt,zn);!oi.done;ir++,oi=rt.next())oi=nn(zn,tt,ir,oi.value,Ut),oi!==null&&(p&&oi.alternate!==null&&zn.delete(oi.key===null?ir:oi.key),$e=ie(oi,$e,ir),Bn===null?An=oi:Bn.sibling=oi,Bn=oi);return p&&zn.forEach(function(xJ){return x(tt,xJ)}),Gi&&Wd(tt,ir),An}function fa(tt,$e,rt,Ut){if(typeof rt=="object"&&rt!==null&&rt.type===D&&rt.key===null&&(rt=rt.props.children),typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case E:e:{for(var An=rt.key,Bn=$e;Bn!==null;){if(Bn.key===An){if(An=rt.type,An===D){if(Bn.tag===7){C(tt,Bn.sibling),$e=K(Bn,rt.props.children),$e.return=tt,tt=$e;break e}}else if(Bn.elementType===An||typeof An=="object"&&An!==null&&An.$$typeof===Q&&TR(An)===Bn.type){C(tt,Bn.sibling),$e=K(Bn,rt.props),$e.ref=Kg(tt,Bn,rt),$e.return=tt,tt=$e;break e}C(tt,Bn);break}else x(tt,Bn);Bn=Bn.sibling}rt.type===D?($e=$d(rt.props.children,tt.mode,Ut,rt.key),$e.return=tt,tt=$e):(Ut=jv(rt.type,rt.key,rt.props,null,tt.mode,Ut),Ut.ref=Kg(tt,$e,rt),Ut.return=tt,tt=Ut)}return we(tt);case T:e:{for(Bn=rt.key;$e!==null;){if($e.key===Bn)if($e.tag===4&&$e.stateNode.containerInfo===rt.containerInfo&&$e.stateNode.implementation===rt.implementation){C(tt,$e.sibling),$e=K($e,rt.children||[]),$e.return=tt,tt=$e;break e}else{C(tt,$e);break}else x(tt,$e);$e=$e.sibling}$e=PS(rt,tt.mode,Ut),$e.return=tt,tt=$e}return we(tt);case Q:return Bn=rt._init,fa(tt,$e,Bn(rt._payload),Ut)}if(Ue(rt))return un(tt,$e,rt,Ut);if(te(rt))return gn(tt,$e,rt,Ut);gv(tt,rt)}return typeof rt=="string"&&rt!==""||typeof rt=="number"?(rt=""+rt,$e!==null&&$e.tag===6?(C(tt,$e.sibling),$e=K($e,rt),$e.return=tt,tt=$e):(C(tt,$e),$e=RS(rt,tt.mode,Ut),$e.return=tt,tt=$e),we(tt)):C(tt,$e)}return fa}var Ch=_R(!0),ER=_R(!1),mv=ns(null),yv=null,Th=null,W2=null;function V2(){W2=Th=yv=null}function G2(p){var x=mv.current;Si(mv),p._currentValue=x}function q2(p,x,C){for(;p!==null;){var L=p.alternate;if((p.childLanes&x)!==x?(p.childLanes|=x,L!==null&&(L.childLanes|=x)):L!==null&&(L.childLanes&x)!==x&&(L.childLanes|=x),p===C)break;p=p.return}}function _h(p,x){yv=p,W2=Th=null,p=p.dependencies,p!==null&&p.firstContext!==null&&((p.lanes&x)!==0&&(Po=!0),p.firstContext=null)}function Ns(p){var x=p._currentValue;if(W2!==p)if(p={context:p,memoizedValue:x,next:null},Th===null){if(yv===null)throw Error(n(308));Th=p,yv.dependencies={lanes:0,firstContext:p}}else Th=Th.next=p;return x}var Vd=null;function H2(p){Vd===null?Vd=[p]:Vd.push(p)}function NR(p,x,C,L){var K=x.interleaved;return K===null?(C.next=C,H2(x)):(C.next=K.next,K.next=C),x.interleaved=C,Sc(p,L)}function Sc(p,x){p.lanes|=x;var C=p.alternate;for(C!==null&&(C.lanes|=x),C=p,p=p.return;p!==null;)p.childLanes|=x,C=p.alternate,C!==null&&(C.childLanes|=x),C=p,p=p.return;return C.tag===3?C.stateNode:null}var hu=!1;function X2(p){p.updateQueue={baseState:p.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function FR(p,x){p=p.updateQueue,x.updateQueue===p&&(x.updateQueue={baseState:p.baseState,firstBaseUpdate:p.firstBaseUpdate,lastBaseUpdate:p.lastBaseUpdate,shared:p.shared,effects:p.effects})}function kc(p,x){return{eventTime:p,lane:x,tag:0,payload:null,callback:null,next:null}}function pu(p,x,C){var L=p.updateQueue;if(L===null)return null;if(L=L.shared,(ni&2)!==0){var K=L.pending;return K===null?x.next=x:(x.next=K.next,K.next=x),L.pending=x,Sc(p,C)}return K=L.interleaved,K===null?(x.next=x,H2(L)):(x.next=K.next,K.next=x),L.interleaved=x,Sc(p,C)}function vv(p,x,C){if(x=x.updateQueue,x!==null&&(x=x.shared,(C&4194240)!==0)){var L=x.lanes;L&=p.pendingLanes,C|=L,x.lanes=C,hr(p,C)}}function RR(p,x){var C=p.updateQueue,L=p.alternate;if(L!==null&&(L=L.updateQueue,C===L)){var K=null,ie=null;if(C=C.firstBaseUpdate,C!==null){do{var we={eventTime:C.eventTime,lane:C.lane,tag:C.tag,payload:C.payload,callback:C.callback,next:null};ie===null?K=ie=we:ie=ie.next=we,C=C.next}while(C!==null);ie===null?K=ie=x:ie=ie.next=x}else K=ie=x;C={baseState:L.baseState,firstBaseUpdate:K,lastBaseUpdate:ie,shared:L.shared,effects:L.effects},p.updateQueue=C;return}p=C.lastBaseUpdate,p===null?C.firstBaseUpdate=x:p.next=x,C.lastBaseUpdate=x}function xv(p,x,C,L){var K=p.updateQueue;hu=!1;var ie=K.firstBaseUpdate,we=K.lastBaseUpdate,Ge=K.shared.pending;if(Ge!==null){K.shared.pending=null;var Ke=Ge,ot=Ke.next;Ke.next=null,we===null?ie=ot:we.next=ot,we=Ke;var Tt=p.alternate;Tt!==null&&(Tt=Tt.updateQueue,Ge=Tt.lastBaseUpdate,Ge!==we&&(Ge===null?Tt.firstBaseUpdate=ot:Ge.next=ot,Tt.lastBaseUpdate=Ke))}if(ie!==null){var Ft=K.baseState;we=0,Tt=ot=Ke=null,Ge=ie;do{var kt=Ge.lane,nn=Ge.eventTime;if((L&kt)===kt){Tt!==null&&(Tt=Tt.next={eventTime:nn,lane:0,tag:Ge.tag,payload:Ge.payload,callback:Ge.callback,next:null});e:{var un=p,gn=Ge;switch(kt=x,nn=C,gn.tag){case 1:if(un=gn.payload,typeof un=="function"){Ft=un.call(nn,Ft,kt);break e}Ft=un;break e;case 3:un.flags=un.flags&-65537|128;case 0:if(un=gn.payload,kt=typeof un=="function"?un.call(nn,Ft,kt):un,kt==null)break e;Ft=J({},Ft,kt);break e;case 2:hu=!0}}Ge.callback!==null&&Ge.lane!==0&&(p.flags|=64,kt=K.effects,kt===null?K.effects=[Ge]:kt.push(Ge))}else nn={eventTime:nn,lane:kt,tag:Ge.tag,payload:Ge.payload,callback:Ge.callback,next:null},Tt===null?(ot=Tt=nn,Ke=Ft):Tt=Tt.next=nn,we|=kt;if(Ge=Ge.next,Ge===null){if(Ge=K.shared.pending,Ge===null)break;kt=Ge,Ge=kt.next,kt.next=null,K.lastBaseUpdate=kt,K.shared.pending=null}}while(!0);if(Tt===null&&(Ke=Ft),K.baseState=Ke,K.firstBaseUpdate=ot,K.lastBaseUpdate=Tt,x=K.shared.interleaved,x!==null){K=x;do we|=K.lane,K=K.next;while(K!==x)}else ie===null&&(K.shared.lanes=0);Hd|=we,p.lanes=we,p.memoizedState=Ft}}function PR(p,x,C){if(p=x.effects,x.effects=null,p!==null)for(x=0;x<p.length;x++){var L=p[x],K=L.callback;if(K!==null){if(L.callback=null,L=C,typeof K!="function")throw Error(n(191,K));K.call(L)}}}var $g={},Vl=ns($g),Yg=ns($g),Jg=ns($g);function Gd(p){if(p===$g)throw Error(n(174));return p}function Z2(p,x){switch(Fi(Jg,x),Fi(Yg,p),Fi(Vl,$g),p=x.nodeType,p){case 9:case 11:x=(x=x.documentElement)?x.namespaceURI:Ve(null,"");break;default:p=p===8?x.parentNode:x,x=p.namespaceURI||null,p=p.tagName,x=Ve(x,p)}Si(Vl),Fi(Vl,x)}function Eh(){Si(Vl),Si(Yg),Si(Jg)}function IR(p){Gd(Jg.current);var x=Gd(Vl.current),C=Ve(x,p.type);x!==C&&(Fi(Yg,p),Fi(Vl,C))}function K2(p){Yg.current===p&&(Si(Vl),Si(Yg))}var $i=ns(0);function bv(p){for(var x=p;x!==null;){if(x.tag===13){var C=x.memoizedState;if(C!==null&&(C=C.dehydrated,C===null||C.data==="$?"||C.data==="$!"))return x}else if(x.tag===19&&x.memoizedProps.revealOrder!==void 0){if((x.flags&128)!==0)return x}else if(x.child!==null){x.child.return=x,x=x.child;continue}if(x===p)break;for(;x.sibling===null;){if(x.return===null||x.return===p)return null;x=x.return}x.sibling.return=x.return,x=x.sibling}return null}var $2=[];function Y2(){for(var p=0;p<$2.length;p++)$2[p]._workInProgressVersionPrimary=null;$2.length=0}var Av=_.ReactCurrentDispatcher,J2=_.ReactCurrentBatchConfig,qd=0,Yi=null,Sa=null,Ma=null,wv=!1,Qg=!1,em=0,zY=0;function no(){throw Error(n(321))}function Q2(p,x){if(x===null)return!1;for(var C=0;C<x.length&&C<p.length;C++)if(!Yo(p[C],x[C]))return!1;return!0}function eS(p,x,C,L,K,ie){if(qd=ie,Yi=x,x.memoizedState=null,x.updateQueue=null,x.lanes=0,Av.current=p===null||p.memoizedState===null?qY:HY,p=C(L,K),Qg){ie=0;do{if(Qg=!1,em=0,25<=ie)throw Error(n(301));ie+=1,Ma=Sa=null,x.updateQueue=null,Av.current=XY,p=C(L,K)}while(Qg)}if(Av.current=Dv,x=Sa!==null&&Sa.next!==null,qd=0,Ma=Sa=Yi=null,wv=!1,x)throw Error(n(300));return p}function tS(){var p=em!==0;return em=0,p}function Gl(){var p={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ma===null?Yi.memoizedState=Ma=p:Ma=Ma.next=p,Ma}function Fs(){if(Sa===null){var p=Yi.alternate;p=p!==null?p.memoizedState:null}else p=Sa.next;var x=Ma===null?Yi.memoizedState:Ma.next;if(x!==null)Ma=x,Sa=p;else{if(p===null)throw Error(n(310));Sa=p,p={memoizedState:Sa.memoizedState,baseState:Sa.baseState,baseQueue:Sa.baseQueue,queue:Sa.queue,next:null},Ma===null?Yi.memoizedState=Ma=p:Ma=Ma.next=p}return Ma}function tm(p,x){return typeof x=="function"?x(p):x}function nS(p){var x=Fs(),C=x.queue;if(C===null)throw Error(n(311));C.lastRenderedReducer=p;var L=Sa,K=L.baseQueue,ie=C.pending;if(ie!==null){if(K!==null){var we=K.next;K.next=ie.next,ie.next=we}L.baseQueue=K=ie,C.pending=null}if(K!==null){ie=K.next,L=L.baseState;var Ge=we=null,Ke=null,ot=ie;do{var Tt=ot.lane;if((qd&Tt)===Tt)Ke!==null&&(Ke=Ke.next={lane:0,action:ot.action,hasEagerState:ot.hasEagerState,eagerState:ot.eagerState,next:null}),L=ot.hasEagerState?ot.eagerState:p(L,ot.action);else{var Ft={lane:Tt,action:ot.action,hasEagerState:ot.hasEagerState,eagerState:ot.eagerState,next:null};Ke===null?(Ge=Ke=Ft,we=L):Ke=Ke.next=Ft,Yi.lanes|=Tt,Hd|=Tt}ot=ot.next}while(ot!==null&&ot!==ie);Ke===null?we=L:Ke.next=Ge,Yo(L,x.memoizedState)||(Po=!0),x.memoizedState=L,x.baseState=we,x.baseQueue=Ke,C.lastRenderedState=L}if(p=C.interleaved,p!==null){K=p;do ie=K.lane,Yi.lanes|=ie,Hd|=ie,K=K.next;while(K!==p)}else K===null&&(C.lanes=0);return[x.memoizedState,C.dispatch]}function rS(p){var x=Fs(),C=x.queue;if(C===null)throw Error(n(311));C.lastRenderedReducer=p;var L=C.dispatch,K=C.pending,ie=x.memoizedState;if(K!==null){C.pending=null;var we=K=K.next;do ie=p(ie,we.action),we=we.next;while(we!==K);Yo(ie,x.memoizedState)||(Po=!0),x.memoizedState=ie,x.baseQueue===null&&(x.baseState=ie),C.lastRenderedState=ie}return[ie,L]}function MR(){}function UR(p,x){var C=Yi,L=Fs(),K=x(),ie=!Yo(L.memoizedState,K);if(ie&&(L.memoizedState=K,Po=!0),L=L.queue,iS(jR.bind(null,C,L,p),[p]),L.getSnapshot!==x||ie||Ma!==null&&Ma.memoizedState.tag&1){if(C.flags|=2048,nm(9,OR.bind(null,C,L,K,x),void 0,null),Ua===null)throw Error(n(349));(qd&30)!==0||LR(C,x,K)}return K}function LR(p,x,C){p.flags|=16384,p={getSnapshot:x,value:C},x=Yi.updateQueue,x===null?(x={lastEffect:null,stores:null},Yi.updateQueue=x,x.stores=[p]):(C=x.stores,C===null?x.stores=[p]:C.push(p))}function OR(p,x,C,L){x.value=C,x.getSnapshot=L,BR(x)&&zR(p)}function jR(p,x,C){return C(function(){BR(x)&&zR(p)})}function BR(p){var x=p.getSnapshot;p=p.value;try{var C=x();return!Yo(p,C)}catch{return!0}}function zR(p){var x=Sc(p,1);x!==null&&gl(x,p,1,-1)}function WR(p){var x=Gl();return typeof p=="function"&&(p=p()),x.memoizedState=x.baseState=p,p={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:tm,lastRenderedState:p},x.queue=p,p=p.dispatch=GY.bind(null,Yi,p),[x.memoizedState,p]}function nm(p,x,C,L){return p={tag:p,create:x,destroy:C,deps:L,next:null},x=Yi.updateQueue,x===null?(x={lastEffect:null,stores:null},Yi.updateQueue=x,x.lastEffect=p.next=p):(C=x.lastEffect,C===null?x.lastEffect=p.next=p:(L=C.next,C.next=p,p.next=L,x.lastEffect=p)),p}function VR(){return Fs().memoizedState}function Sv(p,x,C,L){var K=Gl();Yi.flags|=p,K.memoizedState=nm(1|x,C,void 0,L===void 0?null:L)}function kv(p,x,C,L){var K=Fs();L=L===void 0?null:L;var ie=void 0;if(Sa!==null){var we=Sa.memoizedState;if(ie=we.destroy,L!==null&&Q2(L,we.deps)){K.memoizedState=nm(x,C,ie,L);return}}Yi.flags|=p,K.memoizedState=nm(1|x,C,ie,L)}function GR(p,x){return Sv(8390656,8,p,x)}function iS(p,x){return kv(2048,8,p,x)}function qR(p,x){return kv(4,2,p,x)}function HR(p,x){return kv(4,4,p,x)}function XR(p,x){if(typeof x=="function")return p=p(),x(p),function(){x(null)};if(x!=null)return p=p(),x.current=p,function(){x.current=null}}function ZR(p,x,C){return C=C!=null?C.concat([p]):null,kv(4,4,XR.bind(null,x,p),C)}function aS(){}function KR(p,x){var C=Fs();x=x===void 0?null:x;var L=C.memoizedState;return L!==null&&x!==null&&Q2(x,L[1])?L[0]:(C.memoizedState=[p,x],p)}function $R(p,x){var C=Fs();x=x===void 0?null:x;var L=C.memoizedState;return L!==null&&x!==null&&Q2(x,L[1])?L[0]:(p=p(),C.memoizedState=[p,x],p)}function YR(p,x,C){return(qd&21)===0?(p.baseState&&(p.baseState=!1,Po=!0),p.memoizedState=C):(Yo(C,x)||(C=yt(),Yi.lanes|=C,Hd|=C,p.baseState=!0),x)}function WY(p,x){var C=Pn;Pn=C!==0&&4>C?C:4,p(!0);var L=J2.transition;J2.transition={};try{p(!1),x()}finally{Pn=C,J2.transition=L}}function JR(){return Fs().memoizedState}function VY(p,x,C){var L=vu(p);if(C={lane:L,action:C,hasEagerState:!1,eagerState:null,next:null},QR(p))e5(x,C);else if(C=NR(p,x,C,L),C!==null){var K=go();gl(C,p,L,K),t5(C,x,L)}}function GY(p,x,C){var L=vu(p),K={lane:L,action:C,hasEagerState:!1,eagerState:null,next:null};if(QR(p))e5(x,K);else{var ie=p.alternate;if(p.lanes===0&&(ie===null||ie.lanes===0)&&(ie=x.lastRenderedReducer,ie!==null))try{var we=x.lastRenderedState,Ge=ie(we,C);if(K.hasEagerState=!0,K.eagerState=Ge,Yo(Ge,we)){var Ke=x.interleaved;Ke===null?(K.next=K,H2(x)):(K.next=Ke.next,Ke.next=K),x.interleaved=K;return}}catch{}finally{}C=NR(p,x,K,L),C!==null&&(K=go(),gl(C,p,L,K),t5(C,x,L))}}function QR(p){var x=p.alternate;return p===Yi||x!==null&&x===Yi}function e5(p,x){Qg=wv=!0;var C=p.pending;C===null?x.next=x:(x.next=C.next,C.next=x),p.pending=x}function t5(p,x,C){if((C&4194240)!==0){var L=x.lanes;L&=p.pendingLanes,C|=L,x.lanes=C,hr(p,C)}}var Dv={readContext:Ns,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useInsertionEffect:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useSyncExternalStore:no,useId:no,unstable_isNewReconciler:!1},qY={readContext:Ns,useCallback:function(p,x){return Gl().memoizedState=[p,x===void 0?null:x],p},useContext:Ns,useEffect:GR,useImperativeHandle:function(p,x,C){return C=C!=null?C.concat([p]):null,Sv(4194308,4,XR.bind(null,x,p),C)},useLayoutEffect:function(p,x){return Sv(4194308,4,p,x)},useInsertionEffect:function(p,x){return Sv(4,2,p,x)},useMemo:function(p,x){var C=Gl();return x=x===void 0?null:x,p=p(),C.memoizedState=[p,x],p},useReducer:function(p,x,C){var L=Gl();return x=C!==void 0?C(x):x,L.memoizedState=L.baseState=x,p={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:p,lastRenderedState:x},L.queue=p,p=p.dispatch=VY.bind(null,Yi,p),[L.memoizedState,p]},useRef:function(p){var x=Gl();return p={current:p},x.memoizedState=p},useState:WR,useDebugValue:aS,useDeferredValue:function(p){return Gl().memoizedState=p},useTransition:function(){var p=WR(!1),x=p[0];return p=WY.bind(null,p[1]),Gl().memoizedState=p,[x,p]},useMutableSource:function(){},useSyncExternalStore:function(p,x,C){var L=Yi,K=Gl();if(Gi){if(C===void 0)throw Error(n(407));C=C()}else{if(C=x(),Ua===null)throw Error(n(349));(qd&30)!==0||LR(L,x,C)}K.memoizedState=C;var ie={value:C,getSnapshot:x};return K.queue=ie,GR(jR.bind(null,L,ie,p),[p]),L.flags|=2048,nm(9,OR.bind(null,L,ie,C,x),void 0,null),C},useId:function(){var p=Gl(),x=Ua.identifierPrefix;if(Gi){var C=wc,L=Ac;C=(L&~(1<<32-_n(L)-1)).toString(32)+C,x=":"+x+"R"+C,C=em++,0<C&&(x+="H"+C.toString(32)),x+=":"}else C=zY++,x=":"+x+"r"+C.toString(32)+":";return p.memoizedState=x},unstable_isNewReconciler:!1},HY={readContext:Ns,useCallback:KR,useContext:Ns,useEffect:iS,useImperativeHandle:ZR,useInsertionEffect:qR,useLayoutEffect:HR,useMemo:$R,useReducer:nS,useRef:VR,useState:function(){return nS(tm)},useDebugValue:aS,useDeferredValue:function(p){var x=Fs();return YR(x,Sa.memoizedState,p)},useTransition:function(){var p=nS(tm)[0],x=Fs().memoizedState;return[p,x]},useMutableSource:MR,useSyncExternalStore:UR,useId:JR,unstable_isNewReconciler:!1},XY={readContext:Ns,useCallback:KR,useContext:Ns,useEffect:iS,useImperativeHandle:ZR,useInsertionEffect:qR,useLayoutEffect:HR,useMemo:$R,useReducer:rS,useRef:VR,useState:function(){return rS(tm)},useDebugValue:aS,useDeferredValue:function(p){var x=Fs();return Sa===null?x.memoizedState=p:YR(x,Sa.memoizedState,p)},useTransition:function(){var p=rS(tm)[0],x=Fs().memoizedState;return[p,x]},useMutableSource:MR,useSyncExternalStore:UR,useId:JR,unstable_isNewReconciler:!1};function fl(p,x){if(p&&p.defaultProps){x=J({},x),p=p.defaultProps;for(var C in p)x[C]===void 0&&(x[C]=p[C]);return x}return x}function oS(p,x,C,L){x=p.memoizedState,C=C(L,x),C=C==null?x:J({},x,C),p.memoizedState=C,p.lanes===0&&(p.updateQueue.baseState=C)}var Cv={isMounted:function(p){return(p=p._reactInternals)?Tn(p)===p:!1},enqueueSetState:function(p,x,C){p=p._reactInternals;var L=go(),K=vu(p),ie=kc(L,K);ie.payload=x,C!=null&&(ie.callback=C),x=pu(p,ie,K),x!==null&&(gl(x,p,K,L),vv(x,p,K))},enqueueReplaceState:function(p,x,C){p=p._reactInternals;var L=go(),K=vu(p),ie=kc(L,K);ie.tag=1,ie.payload=x,C!=null&&(ie.callback=C),x=pu(p,ie,K),x!==null&&(gl(x,p,K,L),vv(x,p,K))},enqueueForceUpdate:function(p,x){p=p._reactInternals;var C=go(),L=vu(p),K=kc(C,L);K.tag=2,x!=null&&(K.callback=x),x=pu(p,K,L),x!==null&&(gl(x,p,L,C),vv(x,p,L))}};function n5(p,x,C,L,K,ie,we){return p=p.stateNode,typeof p.shouldComponentUpdate=="function"?p.shouldComponentUpdate(L,ie,we):x.prototype&&x.prototype.isPureReactComponent?!Id(C,L)||!Id(K,ie):!0}function r5(p,x,C){var L=!1,K=du,ie=x.contextType;return typeof ie=="object"&&ie!==null?ie=Ns(ie):(K=Ro(x)?Bd:to.current,L=x.contextTypes,ie=(L=L!=null)?wh(p,K):du),x=new x(C,ie),p.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=Cv,p.stateNode=x,x._reactInternals=p,L&&(p=p.stateNode,p.__reactInternalMemoizedUnmaskedChildContext=K,p.__reactInternalMemoizedMaskedChildContext=ie),x}function i5(p,x,C,L){p=x.state,typeof x.componentWillReceiveProps=="function"&&x.componentWillReceiveProps(C,L),typeof x.UNSAFE_componentWillReceiveProps=="function"&&x.UNSAFE_componentWillReceiveProps(C,L),x.state!==p&&Cv.enqueueReplaceState(x,x.state,null)}function sS(p,x,C,L){var K=p.stateNode;K.props=C,K.state=p.memoizedState,K.refs={},X2(p);var ie=x.contextType;typeof ie=="object"&&ie!==null?K.context=Ns(ie):(ie=Ro(x)?Bd:to.current,K.context=wh(p,ie)),K.state=p.memoizedState,ie=x.getDerivedStateFromProps,typeof ie=="function"&&(oS(p,x,ie,C),K.state=p.memoizedState),typeof x.getDerivedStateFromProps=="function"||typeof K.getSnapshotBeforeUpdate=="function"||typeof K.UNSAFE_componentWillMount!="function"&&typeof K.componentWillMount!="function"||(x=K.state,typeof K.componentWillMount=="function"&&K.componentWillMount(),typeof K.UNSAFE_componentWillMount=="function"&&K.UNSAFE_componentWillMount(),x!==K.state&&Cv.enqueueReplaceState(K,K.state,null),xv(p,C,K,L),K.state=p.memoizedState),typeof K.componentDidMount=="function"&&(p.flags|=4194308)}function Nh(p,x){try{var C="",L=x;do C+=ge(L),L=L.return;while(L);var K=C}catch(ie){K=`-Error generating stack: `+ie.message+`-`+ie.stack}return{value:p,source:x,stack:K,digest:null}}function lS(p,x,C){return{value:p,source:null,stack:C??null,digest:x??null}}function cS(p,x){try{console.error(x.value)}catch(C){setTimeout(function(){throw C})}}var ZY=typeof WeakMap=="function"?WeakMap:Map;function a5(p,x,C){C=kc(-1,C),C.tag=3,C.payload={element:null};var L=x.value;return C.callback=function(){Pv||(Pv=!0,kS=L),cS(p,x)},C}function o5(p,x,C){C=kc(-1,C),C.tag=3;var L=p.type.getDerivedStateFromError;if(typeof L=="function"){var K=x.value;C.payload=function(){return L(K)},C.callback=function(){cS(p,x)}}var ie=p.stateNode;return ie!==null&&typeof ie.componentDidCatch=="function"&&(C.callback=function(){cS(p,x),typeof L!="function"&&(mu===null?mu=new Set([this]):mu.add(this));var we=x.stack;this.componentDidCatch(x.value,{componentStack:we!==null?we:""})}),C}function s5(p,x,C){var L=p.pingCache;if(L===null){L=p.pingCache=new ZY;var K=new Set;L.set(x,K)}else K=L.get(x),K===void 0&&(K=new Set,L.set(x,K));K.has(C)||(K.add(C),p=lJ.bind(null,p,x,C),x.then(p,p))}function l5(p){do{var x;if((x=p.tag===13)&&(x=p.memoizedState,x=x!==null?x.dehydrated!==null:!0),x)return p;p=p.return}while(p!==null);return null}function c5(p,x,C,L,K){return(p.mode&1)===0?(p===x?p.flags|=65536:(p.flags|=128,C.flags|=131072,C.flags&=-52805,C.tag===1&&(C.alternate===null?C.tag=17:(x=kc(-1,1),x.tag=2,pu(C,x,1))),C.lanes|=1),p):(p.flags|=65536,p.lanes=K,p)}var KY=_.ReactCurrentOwner,Po=!1;function po(p,x,C,L){x.child=p===null?ER(x,null,C,L):Ch(x,p.child,C,L)}function u5(p,x,C,L,K){C=C.render;var ie=x.ref;return _h(x,K),L=eS(p,x,C,L,ie,K),C=tS(),p!==null&&!Po?(x.updateQueue=p.updateQueue,x.flags&=-2053,p.lanes&=~K,Dc(p,x,K)):(Gi&&C&&L2(x),x.flags|=1,po(p,x,L,K),x.child)}function d5(p,x,C,L,K){if(p===null){var ie=C.type;return typeof ie=="function"&&!FS(ie)&&ie.defaultProps===void 0&&C.compare===null&&C.defaultProps===void 0?(x.tag=15,x.type=ie,f5(p,x,ie,L,K)):(p=jv(C.type,null,L,x,x.mode,K),p.ref=x.ref,p.return=x,x.child=p)}if(ie=p.child,(p.lanes&K)===0){var we=ie.memoizedProps;if(C=C.compare,C=C!==null?C:Id,C(we,L)&&p.ref===x.ref)return Dc(p,x,K)}return x.flags|=1,p=bu(ie,L),p.ref=x.ref,p.return=x,x.child=p}function f5(p,x,C,L,K){if(p!==null){var ie=p.memoizedProps;if(Id(ie,L)&&p.ref===x.ref)if(Po=!1,x.pendingProps=L=ie,(p.lanes&K)!==0)(p.flags&131072)!==0&&(Po=!0);else return x.lanes=p.lanes,Dc(p,x,K)}return uS(p,x,C,L,K)}function h5(p,x,C){var L=x.pendingProps,K=L.children,ie=p!==null?p.memoizedState:null;if(L.mode==="hidden")if((x.mode&1)===0)x.memoizedState={baseLanes:0,cachePool:null,transitions:null},Fi(Rh,as),as|=C;else{if((C&1073741824)===0)return p=ie!==null?ie.baseLanes|C:C,x.lanes=x.childLanes=1073741824,x.memoizedState={baseLanes:p,cachePool:null,transitions:null},x.updateQueue=null,Fi(Rh,as),as|=p,null;x.memoizedState={baseLanes:0,cachePool:null,transitions:null},L=ie!==null?ie.baseLanes:C,Fi(Rh,as),as|=L}else ie!==null?(L=ie.baseLanes|C,x.memoizedState=null):L=C,Fi(Rh,as),as|=L;return po(p,x,K,C),x.child}function p5(p,x){var C=x.ref;(p===null&&C!==null||p!==null&&p.ref!==C)&&(x.flags|=512,x.flags|=2097152)}function uS(p,x,C,L,K){var ie=Ro(C)?Bd:to.current;return ie=wh(x,ie),_h(x,K),C=eS(p,x,C,L,ie,K),L=tS(),p!==null&&!Po?(x.updateQueue=p.updateQueue,x.flags&=-2053,p.lanes&=~K,Dc(p,x,K)):(Gi&&L&&L2(x),x.flags|=1,po(p,x,C,K),x.child)}function g5(p,x,C,L,K){if(Ro(C)){var ie=!0;uv(x)}else ie=!1;if(_h(x,K),x.stateNode===null)_v(p,x),r5(x,C,L),sS(x,C,L,K),L=!0;else if(p===null){var we=x.stateNode,Ge=x.memoizedProps;we.props=Ge;var Ke=we.context,ot=C.contextType;typeof ot=="object"&&ot!==null?ot=Ns(ot):(ot=Ro(C)?Bd:to.current,ot=wh(x,ot));var Tt=C.getDerivedStateFromProps,Ft=typeof Tt=="function"||typeof we.getSnapshotBeforeUpdate=="function";Ft||typeof we.UNSAFE_componentWillReceiveProps!="function"&&typeof we.componentWillReceiveProps!="function"||(Ge!==L||Ke!==ot)&&i5(x,we,L,ot),hu=!1;var kt=x.memoizedState;we.state=kt,xv(x,L,we,K),Ke=x.memoizedState,Ge!==L||kt!==Ke||Fo.current||hu?(typeof Tt=="function"&&(oS(x,C,Tt,L),Ke=x.memoizedState),(Ge=hu||n5(x,C,Ge,L,kt,Ke,ot))?(Ft||typeof we.UNSAFE_componentWillMount!="function"&&typeof we.componentWillMount!="function"||(typeof we.componentWillMount=="function"&&we.componentWillMount(),typeof we.UNSAFE_componentWillMount=="function"&&we.UNSAFE_componentWillMount()),typeof we.componentDidMount=="function"&&(x.flags|=4194308)):(typeof we.componentDidMount=="function"&&(x.flags|=4194308),x.memoizedProps=L,x.memoizedState=Ke),we.props=L,we.state=Ke,we.context=ot,L=Ge):(typeof we.componentDidMount=="function"&&(x.flags|=4194308),L=!1)}else{we=x.stateNode,FR(p,x),Ge=x.memoizedProps,ot=x.type===x.elementType?Ge:fl(x.type,Ge),we.props=ot,Ft=x.pendingProps,kt=we.context,Ke=C.contextType,typeof Ke=="object"&&Ke!==null?Ke=Ns(Ke):(Ke=Ro(C)?Bd:to.current,Ke=wh(x,Ke));var nn=C.getDerivedStateFromProps;(Tt=typeof nn=="function"||typeof we.getSnapshotBeforeUpdate=="function")||typeof we.UNSAFE_componentWillReceiveProps!="function"&&typeof we.componentWillReceiveProps!="function"||(Ge!==Ft||kt!==Ke)&&i5(x,we,L,Ke),hu=!1,kt=x.memoizedState,we.state=kt,xv(x,L,we,K);var un=x.memoizedState;Ge!==Ft||kt!==un||Fo.current||hu?(typeof nn=="function"&&(oS(x,C,nn,L),un=x.memoizedState),(ot=hu||n5(x,C,ot,L,kt,un,Ke)||!1)?(Tt||typeof we.UNSAFE_componentWillUpdate!="function"&&typeof we.componentWillUpdate!="function"||(typeof we.componentWillUpdate=="function"&&we.componentWillUpdate(L,un,Ke),typeof we.UNSAFE_componentWillUpdate=="function"&&we.UNSAFE_componentWillUpdate(L,un,Ke)),typeof we.componentDidUpdate=="function"&&(x.flags|=4),typeof we.getSnapshotBeforeUpdate=="function"&&(x.flags|=1024)):(typeof we.componentDidUpdate!="function"||Ge===p.memoizedProps&&kt===p.memoizedState||(x.flags|=4),typeof we.getSnapshotBeforeUpdate!="function"||Ge===p.memoizedProps&&kt===p.memoizedState||(x.flags|=1024),x.memoizedProps=L,x.memoizedState=un),we.props=L,we.state=un,we.context=Ke,L=ot):(typeof we.componentDidUpdate!="function"||Ge===p.memoizedProps&&kt===p.memoizedState||(x.flags|=4),typeof we.getSnapshotBeforeUpdate!="function"||Ge===p.memoizedProps&&kt===p.memoizedState||(x.flags|=1024),L=!1)}return dS(p,x,C,L,ie,K)}function dS(p,x,C,L,K,ie){p5(p,x);var we=(x.flags&128)!==0;if(!L&&!we)return K&&bR(x,C,!1),Dc(p,x,ie);L=x.stateNode,KY.current=x;var Ge=we&&typeof C.getDerivedStateFromError!="function"?null:L.render();return x.flags|=1,p!==null&&we?(x.child=Ch(x,p.child,null,ie),x.child=Ch(x,null,Ge,ie)):po(p,x,Ge,ie),x.memoizedState=L.state,K&&bR(x,C,!0),x.child}function m5(p){var x=p.stateNode;x.pendingContext?vR(p,x.pendingContext,x.pendingContext!==x.context):x.context&&vR(p,x.context,!1),Z2(p,x.containerInfo)}function y5(p,x,C,L,K){return Dh(),z2(K),x.flags|=256,po(p,x,C,L),x.child}var fS={dehydrated:null,treeContext:null,retryLane:0};function hS(p){return{baseLanes:p,cachePool:null,transitions:null}}function v5(p,x,C){var L=x.pendingProps,K=$i.current,ie=!1,we=(x.flags&128)!==0,Ge;if((Ge=we)||(Ge=p!==null&&p.memoizedState===null?!1:(K&2)!==0),Ge?(ie=!0,x.flags&=-129):(p===null||p.memoizedState!==null)&&(K|=1),Fi($i,K&1),p===null)return B2(x),p=x.memoizedState,p!==null&&(p=p.dehydrated,p!==null)?((x.mode&1)===0?x.lanes=1:p.data==="$!"?x.lanes=8:x.lanes=1073741824,null):(we=L.children,p=L.fallback,ie?(L=x.mode,ie=x.child,we={mode:"hidden",children:we},(L&1)===0&&ie!==null?(ie.childLanes=0,ie.pendingProps=we):ie=Bv(we,L,0,null),p=$d(p,L,C,null),ie.return=x,p.return=x,ie.sibling=p,x.child=ie,x.child.memoizedState=hS(C),x.memoizedState=fS,p):pS(x,we));if(K=p.memoizedState,K!==null&&(Ge=K.dehydrated,Ge!==null))return $Y(p,x,we,L,Ge,K,C);if(ie){ie=L.fallback,we=x.mode,K=p.child,Ge=K.sibling;var Ke={mode:"hidden",children:L.children};return(we&1)===0&&x.child!==K?(L=x.child,L.childLanes=0,L.pendingProps=Ke,x.deletions=null):(L=bu(K,Ke),L.subtreeFlags=K.subtreeFlags&14680064),Ge!==null?ie=bu(Ge,ie):(ie=$d(ie,we,C,null),ie.flags|=2),ie.return=x,L.return=x,L.sibling=ie,x.child=L,L=ie,ie=x.child,we=p.child.memoizedState,we=we===null?hS(C):{baseLanes:we.baseLanes|C,cachePool:null,transitions:we.transitions},ie.memoizedState=we,ie.childLanes=p.childLanes&~C,x.memoizedState=fS,L}return ie=p.child,p=ie.sibling,L=bu(ie,{mode:"visible",children:L.children}),(x.mode&1)===0&&(L.lanes=C),L.return=x,L.sibling=null,p!==null&&(C=x.deletions,C===null?(x.deletions=[p],x.flags|=16):C.push(p)),x.child=L,x.memoizedState=null,L}function pS(p,x){return x=Bv({mode:"visible",children:x},p.mode,0,null),x.return=p,p.child=x}function Tv(p,x,C,L){return L!==null&&z2(L),Ch(x,p.child,null,C),p=pS(x,x.pendingProps.children),p.flags|=2,x.memoizedState=null,p}function $Y(p,x,C,L,K,ie,we){if(C)return x.flags&256?(x.flags&=-257,L=lS(Error(n(422))),Tv(p,x,we,L)):x.memoizedState!==null?(x.child=p.child,x.flags|=128,null):(ie=L.fallback,K=x.mode,L=Bv({mode:"visible",children:L.children},K,0,null),ie=$d(ie,K,we,null),ie.flags|=2,L.return=x,ie.return=x,L.sibling=ie,x.child=L,(x.mode&1)!==0&&Ch(x,p.child,null,we),x.child.memoizedState=hS(we),x.memoizedState=fS,ie);if((x.mode&1)===0)return Tv(p,x,we,null);if(K.data==="$!"){if(L=K.nextSibling&&K.nextSibling.dataset,L)var Ge=L.dgst;return L=Ge,ie=Error(n(419)),L=lS(ie,L,void 0),Tv(p,x,we,L)}if(Ge=(we&p.childLanes)!==0,Po||Ge){if(L=Ua,L!==null){switch(we&-we){case 4:K=2;break;case 16:K=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:K=32;break;case 536870912:K=268435456;break;default:K=0}K=(K&(L.suspendedLanes|we))!==0?0:K,K!==0&&K!==ie.retryLane&&(ie.retryLane=K,Sc(p,K),gl(L,p,K,-1))}return NS(),L=lS(Error(n(421))),Tv(p,x,we,L)}return K.data==="$?"?(x.flags|=128,x.child=p.child,x=cJ.bind(null,p),K._reactRetry=x,null):(p=ie.treeContext,is=Ia(K.nextSibling),rs=x,Gi=!0,dl=null,p!==null&&(_s[Es++]=Ac,_s[Es++]=wc,_s[Es++]=zd,Ac=p.id,wc=p.overflow,zd=x),x=pS(x,L.children),x.flags|=4096,x)}function x5(p,x,C){p.lanes|=x;var L=p.alternate;L!==null&&(L.lanes|=x),q2(p.return,x,C)}function gS(p,x,C,L,K){var ie=p.memoizedState;ie===null?p.memoizedState={isBackwards:x,rendering:null,renderingStartTime:0,last:L,tail:C,tailMode:K}:(ie.isBackwards=x,ie.rendering=null,ie.renderingStartTime=0,ie.last=L,ie.tail=C,ie.tailMode=K)}function b5(p,x,C){var L=x.pendingProps,K=L.revealOrder,ie=L.tail;if(po(p,x,L.children,C),L=$i.current,(L&2)!==0)L=L&1|2,x.flags|=128;else{if(p!==null&&(p.flags&128)!==0)e:for(p=x.child;p!==null;){if(p.tag===13)p.memoizedState!==null&&x5(p,C,x);else if(p.tag===19)x5(p,C,x);else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===x)break e;for(;p.sibling===null;){if(p.return===null||p.return===x)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}L&=1}if(Fi($i,L),(x.mode&1)===0)x.memoizedState=null;else switch(K){case"forwards":for(C=x.child,K=null;C!==null;)p=C.alternate,p!==null&&bv(p)===null&&(K=C),C=C.sibling;C=K,C===null?(K=x.child,x.child=null):(K=C.sibling,C.sibling=null),gS(x,!1,K,C,ie);break;case"backwards":for(C=null,K=x.child,x.child=null;K!==null;){if(p=K.alternate,p!==null&&bv(p)===null){x.child=K;break}p=K.sibling,K.sibling=C,C=K,K=p}gS(x,!0,C,null,ie);break;case"together":gS(x,!1,null,null,void 0);break;default:x.memoizedState=null}return x.child}function _v(p,x){(x.mode&1)===0&&p!==null&&(p.alternate=null,x.alternate=null,x.flags|=2)}function Dc(p,x,C){if(p!==null&&(x.dependencies=p.dependencies),Hd|=x.lanes,(C&x.childLanes)===0)return null;if(p!==null&&x.child!==p.child)throw Error(n(153));if(x.child!==null){for(p=x.child,C=bu(p,p.pendingProps),x.child=C,C.return=x;p.sibling!==null;)p=p.sibling,C=C.sibling=bu(p,p.pendingProps),C.return=x;C.sibling=null}return x.child}function YY(p,x,C){switch(x.tag){case 3:m5(x),Dh();break;case 5:IR(x);break;case 1:Ro(x.type)&&uv(x);break;case 4:Z2(x,x.stateNode.containerInfo);break;case 10:var L=x.type._context,K=x.memoizedProps.value;Fi(mv,L._currentValue),L._currentValue=K;break;case 13:if(L=x.memoizedState,L!==null)return L.dehydrated!==null?(Fi($i,$i.current&1),x.flags|=128,null):(C&x.child.childLanes)!==0?v5(p,x,C):(Fi($i,$i.current&1),p=Dc(p,x,C),p!==null?p.sibling:null);Fi($i,$i.current&1);break;case 19:if(L=(C&x.childLanes)!==0,(p.flags&128)!==0){if(L)return b5(p,x,C);x.flags|=128}if(K=x.memoizedState,K!==null&&(K.rendering=null,K.tail=null,K.lastEffect=null),Fi($i,$i.current),L)break;return null;case 22:case 23:return x.lanes=0,h5(p,x,C)}return Dc(p,x,C)}var A5,mS,w5,S5;A5=function(p,x){for(var C=x.child;C!==null;){if(C.tag===5||C.tag===6)p.appendChild(C.stateNode);else if(C.tag!==4&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===x)break;for(;C.sibling===null;){if(C.return===null||C.return===x)return;C=C.return}C.sibling.return=C.return,C=C.sibling}},mS=function(){},w5=function(p,x,C,L){var K=p.memoizedProps;if(K!==L){p=x.stateNode,Gd(Vl.current);var ie=null;switch(C){case"input":K=V(p,K),L=V(p,L),ie=[];break;case"select":K=J({},K,{value:void 0}),L=J({},L,{value:void 0}),ie=[];break;case"textarea":K=Ee(p,K),L=Ee(p,L),ie=[];break;default:typeof K.onClick!="function"&&typeof L.onClick=="function"&&(p.onclick=bn)}de(C,L);var we;C=null;for(ot in K)if(!L.hasOwnProperty(ot)&&K.hasOwnProperty(ot)&&K[ot]!=null)if(ot==="style"){var Ge=K[ot];for(we in Ge)Ge.hasOwnProperty(we)&&(C||(C={}),C[we]="")}else ot!=="dangerouslySetInnerHTML"&&ot!=="children"&&ot!=="suppressContentEditableWarning"&&ot!=="suppressHydrationWarning"&&ot!=="autoFocus"&&(i.hasOwnProperty(ot)?ie||(ie=[]):(ie=ie||[]).push(ot,null));for(ot in L){var Ke=L[ot];if(Ge=K!=null?K[ot]:void 0,L.hasOwnProperty(ot)&&Ke!==Ge&&(Ke!=null||Ge!=null))if(ot==="style")if(Ge){for(we in Ge)!Ge.hasOwnProperty(we)||Ke&&Ke.hasOwnProperty(we)||(C||(C={}),C[we]="");for(we in Ke)Ke.hasOwnProperty(we)&&Ge[we]!==Ke[we]&&(C||(C={}),C[we]=Ke[we])}else C||(ie||(ie=[]),ie.push(ot,C)),C=Ke;else ot==="dangerouslySetInnerHTML"?(Ke=Ke?Ke.__html:void 0,Ge=Ge?Ge.__html:void 0,Ke!=null&&Ge!==Ke&&(ie=ie||[]).push(ot,Ke)):ot==="children"?typeof Ke!="string"&&typeof Ke!="number"||(ie=ie||[]).push(ot,""+Ke):ot!=="suppressContentEditableWarning"&&ot!=="suppressHydrationWarning"&&(i.hasOwnProperty(ot)?(Ke!=null&&ot==="onScroll"&&me("scroll",p),ie||Ge===Ke||(ie=[])):(ie=ie||[]).push(ot,Ke))}C&&(ie=ie||[]).push("style",C);var ot=ie;(x.updateQueue=ot)&&(x.flags|=4)}},S5=function(p,x,C,L){C!==L&&(x.flags|=4)};function rm(p,x){if(!Gi)switch(p.tailMode){case"hidden":x=p.tail;for(var C=null;x!==null;)x.alternate!==null&&(C=x),x=x.sibling;C===null?p.tail=null:C.sibling=null;break;case"collapsed":C=p.tail;for(var L=null;C!==null;)C.alternate!==null&&(L=C),C=C.sibling;L===null?x||p.tail===null?p.tail=null:p.tail.sibling=null:L.sibling=null}}function ro(p){var x=p.alternate!==null&&p.alternate.child===p.child,C=0,L=0;if(x)for(var K=p.child;K!==null;)C|=K.lanes|K.childLanes,L|=K.subtreeFlags&14680064,L|=K.flags&14680064,K.return=p,K=K.sibling;else for(K=p.child;K!==null;)C|=K.lanes|K.childLanes,L|=K.subtreeFlags,L|=K.flags,K.return=p,K=K.sibling;return p.subtreeFlags|=L,p.childLanes=C,x}function JY(p,x,C){var L=x.pendingProps;switch(O2(x),x.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ro(x),null;case 1:return Ro(x.type)&&cv(),ro(x),null;case 3:return L=x.stateNode,Eh(),Si(Fo),Si(to),Y2(),L.pendingContext&&(L.context=L.pendingContext,L.pendingContext=null),(p===null||p.child===null)&&(pv(x)?x.flags|=4:p===null||p.memoizedState.isDehydrated&&(x.flags&256)===0||(x.flags|=1024,dl!==null&&(TS(dl),dl=null))),mS(p,x),ro(x),null;case 5:K2(x);var K=Gd(Jg.current);if(C=x.type,p!==null&&x.stateNode!=null)w5(p,x,C,L,K),p.ref!==x.ref&&(x.flags|=512,x.flags|=2097152);else{if(!L){if(x.stateNode===null)throw Error(n(166));return ro(x),null}if(p=Gd(Vl.current),pv(x)){L=x.stateNode,C=x.type;var ie=x.memoizedProps;switch(L[ya]=x,L[Qo]=ie,p=(x.mode&1)!==0,C){case"dialog":me("cancel",L),me("close",L);break;case"iframe":case"object":case"embed":me("load",L);break;case"video":case"audio":for(K=0;K<Od.length;K++)me(Od[K],L);break;case"source":me("error",L);break;case"img":case"image":case"link":me("error",L),me("load",L);break;case"details":me("toggle",L);break;case"input":ve(L,ie),me("invalid",L);break;case"select":L._wrapperState={wasMultiple:!!ie.multiple},me("invalid",L);break;case"textarea":Se(L,ie),me("invalid",L)}de(C,ie),K=null;for(var we in ie)if(ie.hasOwnProperty(we)){var Ge=ie[we];we==="children"?typeof Ge=="string"?L.textContent!==Ge&&(ie.suppressHydrationWarning!==!0&&at(L.textContent,Ge,p),K=["children",Ge]):typeof Ge=="number"&&L.textContent!==""+Ge&&(ie.suppressHydrationWarning!==!0&&at(L.textContent,Ge,p),K=["children",""+Ge]):i.hasOwnProperty(we)&&Ge!=null&&we==="onScroll"&&me("scroll",L)}switch(C){case"input":Le(L),ne(L,ie,!0);break;case"textarea":Le(L),pe(L);break;case"select":case"option":break;default:typeof ie.onClick=="function"&&(L.onclick=bn)}L=K,x.updateQueue=L,L!==null&&(x.flags|=4)}else{we=K.nodeType===9?K:K.ownerDocument,p==="http://www.w3.org/1999/xhtml"&&(p=ke(C)),p==="http://www.w3.org/1999/xhtml"?C==="script"?(p=we.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild)):typeof L.is=="string"?p=we.createElement(C,{is:L.is}):(p=we.createElement(C),C==="select"&&(we=p,L.multiple?we.multiple=!0:L.size&&(we.size=L.size))):p=we.createElementNS(p,C),p[ya]=x,p[Qo]=L,A5(p,x,!1,!1),x.stateNode=p;e:{switch(we=F(C,L),C){case"dialog":me("cancel",p),me("close",p),K=L;break;case"iframe":case"object":case"embed":me("load",p),K=L;break;case"video":case"audio":for(K=0;K<Od.length;K++)me(Od[K],p);K=L;break;case"source":me("error",p),K=L;break;case"img":case"image":case"link":me("error",p),me("load",p),K=L;break;case"details":me("toggle",p),K=L;break;case"input":ve(p,L),K=V(p,L),me("invalid",p);break;case"option":K=L;break;case"select":p._wrapperState={wasMultiple:!!L.multiple},K=J({},L,{value:void 0}),me("invalid",p);break;case"textarea":Se(p,L),K=Ee(p,L),me("invalid",p);break;default:K=L}de(C,K),Ge=K;for(ie in Ge)if(Ge.hasOwnProperty(ie)){var Ke=Ge[ie];ie==="style"?Te(p,Ke):ie==="dangerouslySetInnerHTML"?(Ke=Ke?Ke.__html:void 0,Ke!=null&&it(p,Ke)):ie==="children"?typeof Ke=="string"?(C!=="textarea"||Ke!=="")&&et(p,Ke):typeof Ke=="number"&&et(p,""+Ke):ie!=="suppressContentEditableWarning"&&ie!=="suppressHydrationWarning"&&ie!=="autoFocus"&&(i.hasOwnProperty(ie)?Ke!=null&&ie==="onScroll"&&me("scroll",p):Ke!=null&&S(p,ie,Ke,we))}switch(C){case"input":Le(p),ne(p,L,!1);break;case"textarea":Le(p),pe(p);break;case"option":L.value!=null&&p.setAttribute("value",""+ye(L.value));break;case"select":p.multiple=!!L.multiple,ie=L.value,ie!=null?Me(p,!!L.multiple,ie,!1):L.defaultValue!=null&&Me(p,!!L.multiple,L.defaultValue,!0);break;default:typeof K.onClick=="function"&&(p.onclick=bn)}switch(C){case"button":case"input":case"select":case"textarea":L=!!L.autoFocus;break e;case"img":L=!0;break e;default:L=!1}}L&&(x.flags|=4)}x.ref!==null&&(x.flags|=512,x.flags|=2097152)}return ro(x),null;case 6:if(p&&x.stateNode!=null)S5(p,x,p.memoizedProps,L);else{if(typeof L!="string"&&x.stateNode===null)throw Error(n(166));if(C=Gd(Jg.current),Gd(Vl.current),pv(x)){if(L=x.stateNode,C=x.memoizedProps,L[ya]=x,(ie=L.nodeValue!==C)&&(p=rs,p!==null))switch(p.tag){case 3:at(L.nodeValue,C,(p.mode&1)!==0);break;case 5:p.memoizedProps.suppressHydrationWarning!==!0&&at(L.nodeValue,C,(p.mode&1)!==0)}ie&&(x.flags|=4)}else L=(C.nodeType===9?C:C.ownerDocument).createTextNode(L),L[ya]=x,x.stateNode=L}return ro(x),null;case 13:if(Si($i),L=x.memoizedState,p===null||p.memoizedState!==null&&p.memoizedState.dehydrated!==null){if(Gi&&is!==null&&(x.mode&1)!==0&&(x.flags&128)===0)CR(),Dh(),x.flags|=98560,ie=!1;else if(ie=pv(x),L!==null&&L.dehydrated!==null){if(p===null){if(!ie)throw Error(n(318));if(ie=x.memoizedState,ie=ie!==null?ie.dehydrated:null,!ie)throw Error(n(317));ie[ya]=x}else Dh(),(x.flags&128)===0&&(x.memoizedState=null),x.flags|=4;ro(x),ie=!1}else dl!==null&&(TS(dl),dl=null),ie=!0;if(!ie)return x.flags&65536?x:null}return(x.flags&128)!==0?(x.lanes=C,x):(L=L!==null,L!==(p!==null&&p.memoizedState!==null)&&L&&(x.child.flags|=8192,(x.mode&1)!==0&&(p===null||($i.current&1)!==0?ka===0&&(ka=3):NS())),x.updateQueue!==null&&(x.flags|=4),ro(x),null);case 4:return Eh(),mS(p,x),p===null&&Be(x.stateNode.containerInfo),ro(x),null;case 10:return G2(x.type._context),ro(x),null;case 17:return Ro(x.type)&&cv(),ro(x),null;case 19:if(Si($i),ie=x.memoizedState,ie===null)return ro(x),null;if(L=(x.flags&128)!==0,we=ie.rendering,we===null)if(L)rm(ie,!1);else{if(ka!==0||p!==null&&(p.flags&128)!==0)for(p=x.child;p!==null;){if(we=bv(p),we!==null){for(x.flags|=128,rm(ie,!1),L=we.updateQueue,L!==null&&(x.updateQueue=L,x.flags|=4),x.subtreeFlags=0,L=C,C=x.child;C!==null;)ie=C,p=L,ie.flags&=14680066,we=ie.alternate,we===null?(ie.childLanes=0,ie.lanes=p,ie.child=null,ie.subtreeFlags=0,ie.memoizedProps=null,ie.memoizedState=null,ie.updateQueue=null,ie.dependencies=null,ie.stateNode=null):(ie.childLanes=we.childLanes,ie.lanes=we.lanes,ie.child=we.child,ie.subtreeFlags=0,ie.deletions=null,ie.memoizedProps=we.memoizedProps,ie.memoizedState=we.memoizedState,ie.updateQueue=we.updateQueue,ie.type=we.type,p=we.dependencies,ie.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext}),C=C.sibling;return Fi($i,$i.current&1|2),x.child}p=p.sibling}ie.tail!==null&&Kt()>Ph&&(x.flags|=128,L=!0,rm(ie,!1),x.lanes=4194304)}else{if(!L)if(p=bv(we),p!==null){if(x.flags|=128,L=!0,C=p.updateQueue,C!==null&&(x.updateQueue=C,x.flags|=4),rm(ie,!0),ie.tail===null&&ie.tailMode==="hidden"&&!we.alternate&&!Gi)return ro(x),null}else 2*Kt()-ie.renderingStartTime>Ph&&C!==1073741824&&(x.flags|=128,L=!0,rm(ie,!1),x.lanes=4194304);ie.isBackwards?(we.sibling=x.child,x.child=we):(C=ie.last,C!==null?C.sibling=we:x.child=we,ie.last=we)}return ie.tail!==null?(x=ie.tail,ie.rendering=x,ie.tail=x.sibling,ie.renderingStartTime=Kt(),x.sibling=null,C=$i.current,Fi($i,L?C&1|2:C&1),x):(ro(x),null);case 22:case 23:return ES(),L=x.memoizedState!==null,p!==null&&p.memoizedState!==null!==L&&(x.flags|=8192),L&&(x.mode&1)!==0?(as&1073741824)!==0&&(ro(x),x.subtreeFlags&6&&(x.flags|=8192)):ro(x),null;case 24:return null;case 25:return null}throw Error(n(156,x.tag))}function QY(p,x){switch(O2(x),x.tag){case 1:return Ro(x.type)&&cv(),p=x.flags,p&65536?(x.flags=p&-65537|128,x):null;case 3:return Eh(),Si(Fo),Si(to),Y2(),p=x.flags,(p&65536)!==0&&(p&128)===0?(x.flags=p&-65537|128,x):null;case 5:return K2(x),null;case 13:if(Si($i),p=x.memoizedState,p!==null&&p.dehydrated!==null){if(x.alternate===null)throw Error(n(340));Dh()}return p=x.flags,p&65536?(x.flags=p&-65537|128,x):null;case 19:return Si($i),null;case 4:return Eh(),null;case 10:return G2(x.type._context),null;case 22:case 23:return ES(),null;case 24:return null;default:return null}}var Ev=!1,io=!1,eJ=typeof WeakSet=="function"?WeakSet:Set,sn=null;function Fh(p,x){var C=p.ref;if(C!==null)if(typeof C=="function")try{C(null)}catch(L){aa(p,x,L)}else C.current=null}function yS(p,x,C){try{C()}catch(L){aa(p,x,L)}}var k5=!1;function tJ(p,x){if(on=ei,p=zg(),zl(p)){if("selectionStart"in p)var C={start:p.selectionStart,end:p.selectionEnd};else e:{C=(C=p.ownerDocument)&&C.defaultView||window;var L=C.getSelection&&C.getSelection();if(L&&L.rangeCount!==0){C=L.anchorNode;var K=L.anchorOffset,ie=L.focusNode;L=L.focusOffset;try{C.nodeType,ie.nodeType}catch{C=null;break e}var we=0,Ge=-1,Ke=-1,ot=0,Tt=0,Ft=p,kt=null;t:for(;;){for(var nn;Ft!==C||K!==0&&Ft.nodeType!==3||(Ge=we+K),Ft!==ie||L!==0&&Ft.nodeType!==3||(Ke=we+L),Ft.nodeType===3&&(we+=Ft.nodeValue.length),(nn=Ft.firstChild)!==null;)kt=Ft,Ft=nn;for(;;){if(Ft===p)break t;if(kt===C&&++ot===K&&(Ge=we),kt===ie&&++Tt===L&&(Ke=we),(nn=Ft.nextSibling)!==null)break;Ft=kt,kt=Ft.parentNode}Ft=nn}C=Ge===-1||Ke===-1?null:{start:Ge,end:Ke}}else C=null}C=C||{start:0,end:0}}else C=null;for(er={focusedElem:p,selectionRange:C},ei=!1,sn=x;sn!==null;)if(x=sn,p=x.child,(x.subtreeFlags&1028)!==0&&p!==null)p.return=x,sn=p;else for(;sn!==null;){x=sn;try{var un=x.alternate;if((x.flags&1024)!==0)switch(x.tag){case 0:case 11:case 15:break;case 1:if(un!==null){var gn=un.memoizedProps,fa=un.memoizedState,tt=x.stateNode,$e=tt.getSnapshotBeforeUpdate(x.elementType===x.type?gn:fl(x.type,gn),fa);tt.__reactInternalSnapshotBeforeUpdate=$e}break;case 3:var rt=x.stateNode.containerInfo;rt.nodeType===1?rt.textContent="":rt.nodeType===9&&rt.documentElement&&rt.removeChild(rt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Ut){aa(x,x.return,Ut)}if(p=x.sibling,p!==null){p.return=x.return,sn=p;break}sn=x.return}return un=k5,k5=!1,un}function im(p,x,C){var L=x.updateQueue;if(L=L!==null?L.lastEffect:null,L!==null){var K=L=L.next;do{if((K.tag&p)===p){var ie=K.destroy;K.destroy=void 0,ie!==void 0&&yS(x,C,ie)}K=K.next}while(K!==L)}}function Nv(p,x){if(x=x.updateQueue,x=x!==null?x.lastEffect:null,x!==null){var C=x=x.next;do{if((C.tag&p)===p){var L=C.create;C.destroy=L()}C=C.next}while(C!==x)}}function vS(p){var x=p.ref;if(x!==null){var C=p.stateNode;switch(p.tag){case 5:p=C;break;default:p=C}typeof x=="function"?x(p):x.current=p}}function D5(p){var x=p.alternate;x!==null&&(p.alternate=null,D5(x)),p.child=null,p.deletions=null,p.sibling=null,p.tag===5&&(x=p.stateNode,x!==null&&(delete x[ya],delete x[Qo],delete x[Mr],delete x[wa],delete x[ts])),p.stateNode=null,p.return=null,p.dependencies=null,p.memoizedProps=null,p.memoizedState=null,p.pendingProps=null,p.stateNode=null,p.updateQueue=null}function C5(p){return p.tag===5||p.tag===3||p.tag===4}function T5(p){e:for(;;){for(;p.sibling===null;){if(p.return===null||C5(p.return))return null;p=p.return}for(p.sibling.return=p.return,p=p.sibling;p.tag!==5&&p.tag!==6&&p.tag!==18;){if(p.flags&2||p.child===null||p.tag===4)continue e;p.child.return=p,p=p.child}if(!(p.flags&2))return p.stateNode}}function xS(p,x,C){var L=p.tag;if(L===5||L===6)p=p.stateNode,x?C.nodeType===8?C.parentNode.insertBefore(p,x):C.insertBefore(p,x):(C.nodeType===8?(x=C.parentNode,x.insertBefore(p,C)):(x=C,x.appendChild(p)),C=C._reactRootContainer,C!=null||x.onclick!==null||(x.onclick=bn));else if(L!==4&&(p=p.child,p!==null))for(xS(p,x,C),p=p.sibling;p!==null;)xS(p,x,C),p=p.sibling}function bS(p,x,C){var L=p.tag;if(L===5||L===6)p=p.stateNode,x?C.insertBefore(p,x):C.appendChild(p);else if(L!==4&&(p=p.child,p!==null))for(bS(p,x,C),p=p.sibling;p!==null;)bS(p,x,C),p=p.sibling}var qa=null,hl=!1;function gu(p,x,C){for(C=C.child;C!==null;)_5(p,x,C),C=C.sibling}function _5(p,x,C){if(Pr&&typeof Pr.onCommitFiberUnmount=="function")try{Pr.onCommitFiberUnmount(Yt,C)}catch{}switch(C.tag){case 5:io||Fh(C,x);case 6:var L=qa,K=hl;qa=null,gu(p,x,C),qa=L,hl=K,qa!==null&&(hl?(p=qa,C=C.stateNode,p.nodeType===8?p.parentNode.removeChild(C):p.removeChild(C)):qa.removeChild(C.stateNode));break;case 18:qa!==null&&(hl?(p=qa,C=C.stateNode,p.nodeType===8?Wl(p.parentNode,C):p.nodeType===1&&Wl(p,C),mn(p)):Wl(qa,C.stateNode));break;case 4:L=qa,K=hl,qa=C.stateNode.containerInfo,hl=!0,gu(p,x,C),qa=L,hl=K;break;case 0:case 11:case 14:case 15:if(!io&&(L=C.updateQueue,L!==null&&(L=L.lastEffect,L!==null))){K=L=L.next;do{var ie=K,we=ie.destroy;ie=ie.tag,we!==void 0&&((ie&2)!==0||(ie&4)!==0)&&yS(C,x,we),K=K.next}while(K!==L)}gu(p,x,C);break;case 1:if(!io&&(Fh(C,x),L=C.stateNode,typeof L.componentWillUnmount=="function"))try{L.props=C.memoizedProps,L.state=C.memoizedState,L.componentWillUnmount()}catch(Ge){aa(C,x,Ge)}gu(p,x,C);break;case 21:gu(p,x,C);break;case 22:C.mode&1?(io=(L=io)||C.memoizedState!==null,gu(p,x,C),io=L):gu(p,x,C);break;default:gu(p,x,C)}}function E5(p){var x=p.updateQueue;if(x!==null){p.updateQueue=null;var C=p.stateNode;C===null&&(C=p.stateNode=new eJ),x.forEach(function(L){var K=uJ.bind(null,p,L);C.has(L)||(C.add(L),L.then(K,K))})}}function pl(p,x){var C=x.deletions;if(C!==null)for(var L=0;L<C.length;L++){var K=C[L];try{var ie=p,we=x,Ge=we;e:for(;Ge!==null;){switch(Ge.tag){case 5:qa=Ge.stateNode,hl=!1;break e;case 3:qa=Ge.stateNode.containerInfo,hl=!0;break e;case 4:qa=Ge.stateNode.containerInfo,hl=!0;break e}Ge=Ge.return}if(qa===null)throw Error(n(160));_5(ie,we,K),qa=null,hl=!1;var Ke=K.alternate;Ke!==null&&(Ke.return=null),K.return=null}catch(ot){aa(K,x,ot)}}if(x.subtreeFlags&12854)for(x=x.child;x!==null;)N5(x,p),x=x.sibling}function N5(p,x){var C=p.alternate,L=p.flags;switch(p.tag){case 0:case 11:case 14:case 15:if(pl(x,p),ql(p),L&4){try{im(3,p,p.return),Nv(3,p)}catch(gn){aa(p,p.return,gn)}try{im(5,p,p.return)}catch(gn){aa(p,p.return,gn)}}break;case 1:pl(x,p),ql(p),L&512&&C!==null&&Fh(C,C.return);break;case 5:if(pl(x,p),ql(p),L&512&&C!==null&&Fh(C,C.return),p.flags&32){var K=p.stateNode;try{et(K,"")}catch(gn){aa(p,p.return,gn)}}if(L&4&&(K=p.stateNode,K!=null)){var ie=p.memoizedProps,we=C!==null?C.memoizedProps:ie,Ge=p.type,Ke=p.updateQueue;if(p.updateQueue=null,Ke!==null)try{Ge==="input"&&ie.type==="radio"&&ie.name!=null&&oe(K,ie),F(Ge,we);var ot=F(Ge,ie);for(we=0;we<Ke.length;we+=2){var Tt=Ke[we],Ft=Ke[we+1];Tt==="style"?Te(K,Ft):Tt==="dangerouslySetInnerHTML"?it(K,Ft):Tt==="children"?et(K,Ft):S(K,Tt,Ft,ot)}switch(Ge){case"input":re(K,ie);break;case"textarea":Ce(K,ie);break;case"select":var kt=K._wrapperState.wasMultiple;K._wrapperState.wasMultiple=!!ie.multiple;var nn=ie.value;nn!=null?Me(K,!!ie.multiple,nn,!1):kt!==!!ie.multiple&&(ie.defaultValue!=null?Me(K,!!ie.multiple,ie.defaultValue,!0):Me(K,!!ie.multiple,ie.multiple?[]:"",!1))}K[Qo]=ie}catch(gn){aa(p,p.return,gn)}}break;case 6:if(pl(x,p),ql(p),L&4){if(p.stateNode===null)throw Error(n(162));K=p.stateNode,ie=p.memoizedProps;try{K.nodeValue=ie}catch(gn){aa(p,p.return,gn)}}break;case 3:if(pl(x,p),ql(p),L&4&&C!==null&&C.memoizedState.isDehydrated)try{mn(x.containerInfo)}catch(gn){aa(p,p.return,gn)}break;case 4:pl(x,p),ql(p);break;case 13:pl(x,p),ql(p),K=p.child,K.flags&8192&&(ie=K.memoizedState!==null,K.stateNode.isHidden=ie,!ie||K.alternate!==null&&K.alternate.memoizedState!==null||(SS=Kt())),L&4&&E5(p);break;case 22:if(Tt=C!==null&&C.memoizedState!==null,p.mode&1?(io=(ot=io)||Tt,pl(x,p),io=ot):pl(x,p),ql(p),L&8192){if(ot=p.memoizedState!==null,(p.stateNode.isHidden=ot)&&!Tt&&(p.mode&1)!==0)for(sn=p,Tt=p.child;Tt!==null;){for(Ft=sn=Tt;sn!==null;){switch(kt=sn,nn=kt.child,kt.tag){case 0:case 11:case 14:case 15:im(4,kt,kt.return);break;case 1:Fh(kt,kt.return);var un=kt.stateNode;if(typeof un.componentWillUnmount=="function"){L=kt,C=kt.return;try{x=L,un.props=x.memoizedProps,un.state=x.memoizedState,un.componentWillUnmount()}catch(gn){aa(L,C,gn)}}break;case 5:Fh(kt,kt.return);break;case 22:if(kt.memoizedState!==null){P5(Ft);continue}}nn!==null?(nn.return=kt,sn=nn):P5(Ft)}Tt=Tt.sibling}e:for(Tt=null,Ft=p;;){if(Ft.tag===5){if(Tt===null){Tt=Ft;try{K=Ft.stateNode,ot?(ie=K.style,typeof ie.setProperty=="function"?ie.setProperty("display","none","important"):ie.display="none"):(Ge=Ft.stateNode,Ke=Ft.memoizedProps.style,we=Ke!=null&&Ke.hasOwnProperty("display")?Ke.display:null,Ge.style.display=se("display",we))}catch(gn){aa(p,p.return,gn)}}}else if(Ft.tag===6){if(Tt===null)try{Ft.stateNode.nodeValue=ot?"":Ft.memoizedProps}catch(gn){aa(p,p.return,gn)}}else if((Ft.tag!==22&&Ft.tag!==23||Ft.memoizedState===null||Ft===p)&&Ft.child!==null){Ft.child.return=Ft,Ft=Ft.child;continue}if(Ft===p)break e;for(;Ft.sibling===null;){if(Ft.return===null||Ft.return===p)break e;Tt===Ft&&(Tt=null),Ft=Ft.return}Tt===Ft&&(Tt=null),Ft.sibling.return=Ft.return,Ft=Ft.sibling}}break;case 19:pl(x,p),ql(p),L&4&&E5(p);break;case 21:break;default:pl(x,p),ql(p)}}function ql(p){var x=p.flags;if(x&2){try{e:{for(var C=p.return;C!==null;){if(C5(C)){var L=C;break e}C=C.return}throw Error(n(160))}switch(L.tag){case 5:var K=L.stateNode;L.flags&32&&(et(K,""),L.flags&=-33);var ie=T5(p);bS(p,ie,K);break;case 3:case 4:var we=L.stateNode.containerInfo,Ge=T5(p);xS(p,Ge,we);break;default:throw Error(n(161))}}catch(Ke){aa(p,p.return,Ke)}p.flags&=-3}x&4096&&(p.flags&=-4097)}function nJ(p,x,C){sn=p,F5(p)}function F5(p,x,C){for(var L=(p.mode&1)!==0;sn!==null;){var K=sn,ie=K.child;if(K.tag===22&&L){var we=K.memoizedState!==null||Ev;if(!we){var Ge=K.alternate,Ke=Ge!==null&&Ge.memoizedState!==null||io;Ge=Ev;var ot=io;if(Ev=we,(io=Ke)&&!ot)for(sn=K;sn!==null;)we=sn,Ke=we.child,we.tag===22&&we.memoizedState!==null?I5(K):Ke!==null?(Ke.return=we,sn=Ke):I5(K);for(;ie!==null;)sn=ie,F5(ie),ie=ie.sibling;sn=K,Ev=Ge,io=ot}R5(p)}else(K.subtreeFlags&8772)!==0&&ie!==null?(ie.return=K,sn=ie):R5(p)}}function R5(p){for(;sn!==null;){var x=sn;if((x.flags&8772)!==0){var C=x.alternate;try{if((x.flags&8772)!==0)switch(x.tag){case 0:case 11:case 15:io||Nv(5,x);break;case 1:var L=x.stateNode;if(x.flags&4&&!io)if(C===null)L.componentDidMount();else{var K=x.elementType===x.type?C.memoizedProps:fl(x.type,C.memoizedProps);L.componentDidUpdate(K,C.memoizedState,L.__reactInternalSnapshotBeforeUpdate)}var ie=x.updateQueue;ie!==null&&PR(x,ie,L);break;case 3:var we=x.updateQueue;if(we!==null){if(C=null,x.child!==null)switch(x.child.tag){case 5:C=x.child.stateNode;break;case 1:C=x.child.stateNode}PR(x,we,C)}break;case 5:var Ge=x.stateNode;if(C===null&&x.flags&4){C=Ge;var Ke=x.memoizedProps;switch(x.type){case"button":case"input":case"select":case"textarea":Ke.autoFocus&&C.focus();break;case"img":Ke.src&&(C.src=Ke.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(x.memoizedState===null){var ot=x.alternate;if(ot!==null){var Tt=ot.memoizedState;if(Tt!==null){var Ft=Tt.dehydrated;Ft!==null&&mn(Ft)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}io||x.flags&512&&vS(x)}catch(kt){aa(x,x.return,kt)}}if(x===p){sn=null;break}if(C=x.sibling,C!==null){C.return=x.return,sn=C;break}sn=x.return}}function P5(p){for(;sn!==null;){var x=sn;if(x===p){sn=null;break}var C=x.sibling;if(C!==null){C.return=x.return,sn=C;break}sn=x.return}}function I5(p){for(;sn!==null;){var x=sn;try{switch(x.tag){case 0:case 11:case 15:var C=x.return;try{Nv(4,x)}catch(Ke){aa(x,C,Ke)}break;case 1:var L=x.stateNode;if(typeof L.componentDidMount=="function"){var K=x.return;try{L.componentDidMount()}catch(Ke){aa(x,K,Ke)}}var ie=x.return;try{vS(x)}catch(Ke){aa(x,ie,Ke)}break;case 5:var we=x.return;try{vS(x)}catch(Ke){aa(x,we,Ke)}}}catch(Ke){aa(x,x.return,Ke)}if(x===p){sn=null;break}var Ge=x.sibling;if(Ge!==null){Ge.return=x.return,sn=Ge;break}sn=x.return}}var rJ=Math.ceil,Fv=_.ReactCurrentDispatcher,AS=_.ReactCurrentOwner,Rs=_.ReactCurrentBatchConfig,ni=0,Ua=null,va=null,Ha=0,as=0,Rh=ns(0),ka=0,am=null,Hd=0,Rv=0,wS=0,om=null,Io=null,SS=0,Ph=1/0,Cc=null,Pv=!1,kS=null,mu=null,Iv=!1,yu=null,Mv=0,sm=0,DS=null,Uv=-1,Lv=0;function go(){return(ni&6)!==0?Kt():Uv!==-1?Uv:Uv=Kt()}function vu(p){return(p.mode&1)===0?1:(ni&2)!==0&&Ha!==0?Ha&-Ha:BY.transition!==null?(Lv===0&&(Lv=yt()),Lv):(p=Pn,p!==0||(p=window.event,p=p===void 0?16:Mi(p.type)),p)}function gl(p,x,C,L){if(50<sm)throw sm=0,DS=null,Error(n(185));Fn(p,C,L),((ni&2)===0||p!==Ua)&&(p===Ua&&((ni&2)===0&&(Rv|=C),ka===4&&xu(p,Ha)),Mo(p,L),C===1&&ni===0&&(x.mode&1)===0&&(Ph=Kt()+500,dv&&fu()))}function Mo(p,x){var C=p.callbackNode;wt(p,x);var L=Tr(p,p===Ua?Ha:0);if(L===0)C!==null&&Et(C),p.callbackNode=null,p.callbackPriority=0;else if(x=L&-L,p.callbackPriority!==x){if(C!=null&&Et(C),x===1)p.tag===0?jY(U5.bind(null,p)):AR(U5.bind(null,p)),bh(function(){(ni&6)===0&&fu()}),C=null;else{switch(_i(L)){case 1:C=fr;break;case 4:C=yi;break;case 16:C=bt;break;case 536870912:C=cn;break;default:C=bt}C=G5(C,M5.bind(null,p))}p.callbackPriority=x,p.callbackNode=C}}function M5(p,x){if(Uv=-1,Lv=0,(ni&6)!==0)throw Error(n(327));var C=p.callbackNode;if(Ih()&&p.callbackNode!==C)return null;var L=Tr(p,p===Ua?Ha:0);if(L===0)return null;if((L&30)!==0||(L&p.expiredLanes)!==0||x)x=Ov(p,L);else{x=L;var K=ni;ni|=2;var ie=O5();(Ua!==p||Ha!==x)&&(Cc=null,Ph=Kt()+500,Zd(p,x));do try{oJ();break}catch(Ge){L5(p,Ge)}while(!0);V2(),Fv.current=ie,ni=K,va!==null?x=0:(Ua=null,Ha=0,x=ka)}if(x!==0){if(x===2&&(K=Wt(p),K!==0&&(L=K,x=CS(p,K))),x===1)throw C=am,Zd(p,0),xu(p,L),Mo(p,Kt()),C;if(x===6)xu(p,L);else{if(K=p.current.alternate,(L&30)===0&&!iJ(K)&&(x=Ov(p,L),x===2&&(ie=Wt(p),ie!==0&&(L=ie,x=CS(p,ie))),x===1))throw C=am,Zd(p,0),xu(p,L),Mo(p,Kt()),C;switch(p.finishedWork=K,p.finishedLanes=L,x){case 0:case 1:throw Error(n(345));case 2:Kd(p,Io,Cc);break;case 3:if(xu(p,L),(L&130023424)===L&&(x=SS+500-Kt(),10<x)){if(Tr(p,0)!==0)break;if(K=p.suspendedLanes,(K&L)!==L){go(),p.pingedLanes|=p.suspendedLanes&K;break}p.timeoutHandle=Vi(Kd.bind(null,p,Io,Cc),x);break}Kd(p,Io,Cc);break;case 4:if(xu(p,L),(L&4194240)===L)break;for(x=p.eventTimes,K=-1;0<L;){var we=31-_n(L);ie=1<<we,we=x[we],we>K&&(K=we),L&=~ie}if(L=K,L=Kt()-L,L=(120>L?120:480>L?480:1080>L?1080:1920>L?1920:3e3>L?3e3:4320>L?4320:1960*rJ(L/1960))-L,10<L){p.timeoutHandle=Vi(Kd.bind(null,p,Io,Cc),L);break}Kd(p,Io,Cc);break;case 5:Kd(p,Io,Cc);break;default:throw Error(n(329))}}}return Mo(p,Kt()),p.callbackNode===C?M5.bind(null,p):null}function CS(p,x){var C=om;return p.current.memoizedState.isDehydrated&&(Zd(p,x).flags|=256),p=Ov(p,x),p!==2&&(x=Io,Io=C,x!==null&&TS(x)),p}function TS(p){Io===null?Io=p:Io.push.apply(Io,p)}function iJ(p){for(var x=p;;){if(x.flags&16384){var C=x.updateQueue;if(C!==null&&(C=C.stores,C!==null))for(var L=0;L<C.length;L++){var K=C[L],ie=K.getSnapshot;K=K.value;try{if(!Yo(ie(),K))return!1}catch{return!1}}}if(C=x.child,x.subtreeFlags&16384&&C!==null)C.return=x,x=C;else{if(x===p)break;for(;x.sibling===null;){if(x.return===null||x.return===p)return!0;x=x.return}x.sibling.return=x.return,x=x.sibling}}return!0}function xu(p,x){for(x&=~wS,x&=~Rv,p.suspendedLanes|=x,p.pingedLanes&=~x,p=p.expirationTimes;0<x;){var C=31-_n(x),L=1<<C;p[C]=-1,x&=~L}}function U5(p){if((ni&6)!==0)throw Error(n(327));Ih();var x=Tr(p,0);if((x&1)===0)return Mo(p,Kt()),null;var C=Ov(p,x);if(p.tag!==0&&C===2){var L=Wt(p);L!==0&&(x=L,C=CS(p,L))}if(C===1)throw C=am,Zd(p,0),xu(p,x),Mo(p,Kt()),C;if(C===6)throw Error(n(345));return p.finishedWork=p.current.alternate,p.finishedLanes=x,Kd(p,Io,Cc),Mo(p,Kt()),null}function _S(p,x){var C=ni;ni|=1;try{return p(x)}finally{ni=C,ni===0&&(Ph=Kt()+500,dv&&fu())}}function Xd(p){yu!==null&&yu.tag===0&&(ni&6)===0&&Ih();var x=ni;ni|=1;var C=Rs.transition,L=Pn;try{if(Rs.transition=null,Pn=1,p)return p()}finally{Pn=L,Rs.transition=C,ni=x,(ni&6)===0&&fu()}}function ES(){as=Rh.current,Si(Rh)}function Zd(p,x){p.finishedWork=null,p.finishedLanes=0;var C=p.timeoutHandle;if(C!==-1&&(p.timeoutHandle=-1,vc(C)),va!==null)for(C=va.return;C!==null;){var L=C;switch(O2(L),L.tag){case 1:L=L.type.childContextTypes,L!=null&&cv();break;case 3:Eh(),Si(Fo),Si(to),Y2();break;case 5:K2(L);break;case 4:Eh();break;case 13:Si($i);break;case 19:Si($i);break;case 10:G2(L.type._context);break;case 22:case 23:ES()}C=C.return}if(Ua=p,va=p=bu(p.current,null),Ha=as=x,ka=0,am=null,wS=Rv=Hd=0,Io=om=null,Vd!==null){for(x=0;x<Vd.length;x++)if(C=Vd[x],L=C.interleaved,L!==null){C.interleaved=null;var K=L.next,ie=C.pending;if(ie!==null){var we=ie.next;ie.next=K,L.next=we}C.pending=L}Vd=null}return p}function L5(p,x){do{var C=va;try{if(V2(),Av.current=Dv,wv){for(var L=Yi.memoizedState;L!==null;){var K=L.queue;K!==null&&(K.pending=null),L=L.next}wv=!1}if(qd=0,Ma=Sa=Yi=null,Qg=!1,em=0,AS.current=null,C===null||C.return===null){ka=1,am=x,va=null;break}e:{var ie=p,we=C.return,Ge=C,Ke=x;if(x=Ha,Ge.flags|=32768,Ke!==null&&typeof Ke=="object"&&typeof Ke.then=="function"){var ot=Ke,Tt=Ge,Ft=Tt.tag;if((Tt.mode&1)===0&&(Ft===0||Ft===11||Ft===15)){var kt=Tt.alternate;kt?(Tt.updateQueue=kt.updateQueue,Tt.memoizedState=kt.memoizedState,Tt.lanes=kt.lanes):(Tt.updateQueue=null,Tt.memoizedState=null)}var nn=l5(we);if(nn!==null){nn.flags&=-257,c5(nn,we,Ge,ie,x),nn.mode&1&&s5(ie,ot,x),x=nn,Ke=ot;var un=x.updateQueue;if(un===null){var gn=new Set;gn.add(Ke),x.updateQueue=gn}else un.add(Ke);break e}else{if((x&1)===0){s5(ie,ot,x),NS();break e}Ke=Error(n(426))}}else if(Gi&&Ge.mode&1){var fa=l5(we);if(fa!==null){(fa.flags&65536)===0&&(fa.flags|=256),c5(fa,we,Ge,ie,x),z2(Nh(Ke,Ge));break e}}ie=Ke=Nh(Ke,Ge),ka!==4&&(ka=2),om===null?om=[ie]:om.push(ie),ie=we;do{switch(ie.tag){case 3:ie.flags|=65536,x&=-x,ie.lanes|=x;var tt=a5(ie,Ke,x);RR(ie,tt);break e;case 1:Ge=Ke;var $e=ie.type,rt=ie.stateNode;if((ie.flags&128)===0&&(typeof $e.getDerivedStateFromError=="function"||rt!==null&&typeof rt.componentDidCatch=="function"&&(mu===null||!mu.has(rt)))){ie.flags|=65536,x&=-x,ie.lanes|=x;var Ut=o5(ie,Ge,x);RR(ie,Ut);break e}}ie=ie.return}while(ie!==null)}B5(C)}catch(An){x=An,va===C&&C!==null&&(va=C=C.return);continue}break}while(!0)}function O5(){var p=Fv.current;return Fv.current=Dv,p===null?Dv:p}function NS(){(ka===0||ka===3||ka===2)&&(ka=4),Ua===null||(Hd&268435455)===0&&(Rv&268435455)===0||xu(Ua,Ha)}function Ov(p,x){var C=ni;ni|=2;var L=O5();(Ua!==p||Ha!==x)&&(Cc=null,Zd(p,x));do try{aJ();break}catch(K){L5(p,K)}while(!0);if(V2(),ni=C,Fv.current=L,va!==null)throw Error(n(261));return Ua=null,Ha=0,ka}function aJ(){for(;va!==null;)j5(va)}function oJ(){for(;va!==null&&!Rt();)j5(va)}function j5(p){var x=V5(p.alternate,p,as);p.memoizedProps=p.pendingProps,x===null?B5(p):va=x,AS.current=null}function B5(p){var x=p;do{var C=x.alternate;if(p=x.return,(x.flags&32768)===0){if(C=JY(C,x,as),C!==null){va=C;return}}else{if(C=QY(C,x),C!==null){C.flags&=32767,va=C;return}if(p!==null)p.flags|=32768,p.subtreeFlags=0,p.deletions=null;else{ka=6,va=null;return}}if(x=x.sibling,x!==null){va=x;return}va=x=p}while(x!==null);ka===0&&(ka=5)}function Kd(p,x,C){var L=Pn,K=Rs.transition;try{Rs.transition=null,Pn=1,sJ(p,x,C,L)}finally{Rs.transition=K,Pn=L}return null}function sJ(p,x,C,L){do Ih();while(yu!==null);if((ni&6)!==0)throw Error(n(327));C=p.finishedWork;var K=p.finishedLanes;if(C===null)return null;if(p.finishedWork=null,p.finishedLanes=0,C===p.current)throw Error(n(177));p.callbackNode=null,p.callbackPriority=0;var ie=C.lanes|C.childLanes;if(yr(p,ie),p===Ua&&(va=Ua=null,Ha=0),(C.subtreeFlags&2064)===0&&(C.flags&2064)===0||Iv||(Iv=!0,G5(bt,function(){return Ih(),null})),ie=(C.flags&15990)!==0,(C.subtreeFlags&15990)!==0||ie){ie=Rs.transition,Rs.transition=null;var we=Pn;Pn=1;var Ge=ni;ni|=4,AS.current=null,tJ(p,C),N5(C,p),R2(er),ei=!!on,er=on=null,p.current=C,nJ(C),Bt(),ni=Ge,Pn=we,Rs.transition=ie}else p.current=C;if(Iv&&(Iv=!1,yu=p,Mv=K),ie=p.pendingLanes,ie===0&&(mu=null),On(C.stateNode),Mo(p,Kt()),x!==null)for(L=p.onRecoverableError,C=0;C<x.length;C++)K=x[C],L(K.value,{componentStack:K.stack,digest:K.digest});if(Pv)throw Pv=!1,p=kS,kS=null,p;return(Mv&1)!==0&&p.tag!==0&&Ih(),ie=p.pendingLanes,(ie&1)!==0?p===DS?sm++:(sm=0,DS=p):sm=0,fu(),null}function Ih(){if(yu!==null){var p=_i(Mv),x=Rs.transition,C=Pn;try{if(Rs.transition=null,Pn=16>p?16:p,yu===null)var L=!1;else{if(p=yu,yu=null,Mv=0,(ni&6)!==0)throw Error(n(331));var K=ni;for(ni|=4,sn=p.current;sn!==null;){var ie=sn,we=ie.child;if((sn.flags&16)!==0){var Ge=ie.deletions;if(Ge!==null){for(var Ke=0;Ke<Ge.length;Ke++){var ot=Ge[Ke];for(sn=ot;sn!==null;){var Tt=sn;switch(Tt.tag){case 0:case 11:case 15:im(8,Tt,ie)}var Ft=Tt.child;if(Ft!==null)Ft.return=Tt,sn=Ft;else for(;sn!==null;){Tt=sn;var kt=Tt.sibling,nn=Tt.return;if(D5(Tt),Tt===ot){sn=null;break}if(kt!==null){kt.return=nn,sn=kt;break}sn=nn}}}var un=ie.alternate;if(un!==null){var gn=un.child;if(gn!==null){un.child=null;do{var fa=gn.sibling;gn.sibling=null,gn=fa}while(gn!==null)}}sn=ie}}if((ie.subtreeFlags&2064)!==0&&we!==null)we.return=ie,sn=we;else e:for(;sn!==null;){if(ie=sn,(ie.flags&2048)!==0)switch(ie.tag){case 0:case 11:case 15:im(9,ie,ie.return)}var tt=ie.sibling;if(tt!==null){tt.return=ie.return,sn=tt;break e}sn=ie.return}}var $e=p.current;for(sn=$e;sn!==null;){we=sn;var rt=we.child;if((we.subtreeFlags&2064)!==0&&rt!==null)rt.return=we,sn=rt;else e:for(we=$e;sn!==null;){if(Ge=sn,(Ge.flags&2048)!==0)try{switch(Ge.tag){case 0:case 11:case 15:Nv(9,Ge)}}catch(An){aa(Ge,Ge.return,An)}if(Ge===we){sn=null;break e}var Ut=Ge.sibling;if(Ut!==null){Ut.return=Ge.return,sn=Ut;break e}sn=Ge.return}}if(ni=K,fu(),Pr&&typeof Pr.onPostCommitFiberRoot=="function")try{Pr.onPostCommitFiberRoot(Yt,p)}catch{}L=!0}return L}finally{Pn=C,Rs.transition=x}}return!1}function z5(p,x,C){x=Nh(C,x),x=a5(p,x,1),p=pu(p,x,1),x=go(),p!==null&&(Fn(p,1,x),Mo(p,x))}function aa(p,x,C){if(p.tag===3)z5(p,p,C);else for(;x!==null;){if(x.tag===3){z5(x,p,C);break}else if(x.tag===1){var L=x.stateNode;if(typeof x.type.getDerivedStateFromError=="function"||typeof L.componentDidCatch=="function"&&(mu===null||!mu.has(L))){p=Nh(C,p),p=o5(x,p,1),x=pu(x,p,1),p=go(),x!==null&&(Fn(x,1,p),Mo(x,p));break}}x=x.return}}function lJ(p,x,C){var L=p.pingCache;L!==null&&L.delete(x),x=go(),p.pingedLanes|=p.suspendedLanes&C,Ua===p&&(Ha&C)===C&&(ka===4||ka===3&&(Ha&130023424)===Ha&&500>Kt()-SS?Zd(p,0):wS|=C),Mo(p,x)}function W5(p,x){x===0&&((p.mode&1)===0?x=1:(x=Nn,Nn<<=1,(Nn&130023424)===0&&(Nn=4194304)));var C=go();p=Sc(p,x),p!==null&&(Fn(p,x,C),Mo(p,C))}function cJ(p){var x=p.memoizedState,C=0;x!==null&&(C=x.retryLane),W5(p,C)}function uJ(p,x){var C=0;switch(p.tag){case 13:var L=p.stateNode,K=p.memoizedState;K!==null&&(C=K.retryLane);break;case 19:L=p.stateNode;break;default:throw Error(n(314))}L!==null&&L.delete(x),W5(p,C)}var V5;V5=function(p,x,C){if(p!==null)if(p.memoizedProps!==x.pendingProps||Fo.current)Po=!0;else{if((p.lanes&C)===0&&(x.flags&128)===0)return Po=!1,YY(p,x,C);Po=(p.flags&131072)!==0}else Po=!1,Gi&&(x.flags&1048576)!==0&&wR(x,hv,x.index);switch(x.lanes=0,x.tag){case 2:var L=x.type;_v(p,x),p=x.pendingProps;var K=wh(x,to.current);_h(x,C),K=eS(null,x,L,p,K,C);var ie=tS();return x.flags|=1,typeof K=="object"&&K!==null&&typeof K.render=="function"&&K.$$typeof===void 0?(x.tag=1,x.memoizedState=null,x.updateQueue=null,Ro(L)?(ie=!0,uv(x)):ie=!1,x.memoizedState=K.state!==null&&K.state!==void 0?K.state:null,X2(x),K.updater=Cv,x.stateNode=K,K._reactInternals=x,sS(x,L,p,C),x=dS(null,x,L,!0,ie,C)):(x.tag=0,Gi&&ie&&L2(x),po(null,x,K,C),x=x.child),x;case 16:L=x.elementType;e:{switch(_v(p,x),p=x.pendingProps,K=L._init,L=K(L._payload),x.type=L,K=x.tag=fJ(L),p=fl(L,p),K){case 0:x=uS(null,x,L,p,C);break e;case 1:x=g5(null,x,L,p,C);break e;case 11:x=u5(null,x,L,p,C);break e;case 14:x=d5(null,x,L,fl(L.type,p),C);break e}throw Error(n(306,L,""))}return x;case 0:return L=x.type,K=x.pendingProps,K=x.elementType===L?K:fl(L,K),uS(p,x,L,K,C);case 1:return L=x.type,K=x.pendingProps,K=x.elementType===L?K:fl(L,K),g5(p,x,L,K,C);case 3:e:{if(m5(x),p===null)throw Error(n(387));L=x.pendingProps,ie=x.memoizedState,K=ie.element,FR(p,x),xv(x,L,null,C);var we=x.memoizedState;if(L=we.element,ie.isDehydrated)if(ie={element:L,isDehydrated:!1,cache:we.cache,pendingSuspenseBoundaries:we.pendingSuspenseBoundaries,transitions:we.transitions},x.updateQueue.baseState=ie,x.memoizedState=ie,x.flags&256){K=Nh(Error(n(423)),x),x=y5(p,x,L,C,K);break e}else if(L!==K){K=Nh(Error(n(424)),x),x=y5(p,x,L,C,K);break e}else for(is=Ia(x.stateNode.containerInfo.firstChild),rs=x,Gi=!0,dl=null,C=ER(x,null,L,C),x.child=C;C;)C.flags=C.flags&-3|4096,C=C.sibling;else{if(Dh(),L===K){x=Dc(p,x,C);break e}po(p,x,L,C)}x=x.child}return x;case 5:return IR(x),p===null&&B2(x),L=x.type,K=x.pendingProps,ie=p!==null?p.memoizedProps:null,we=K.children,Vr(L,K)?we=null:ie!==null&&Vr(L,ie)&&(x.flags|=32),p5(p,x),po(p,x,we,C),x.child;case 6:return p===null&&B2(x),null;case 13:return v5(p,x,C);case 4:return Z2(x,x.stateNode.containerInfo),L=x.pendingProps,p===null?x.child=Ch(x,null,L,C):po(p,x,L,C),x.child;case 11:return L=x.type,K=x.pendingProps,K=x.elementType===L?K:fl(L,K),u5(p,x,L,K,C);case 7:return po(p,x,x.pendingProps,C),x.child;case 8:return po(p,x,x.pendingProps.children,C),x.child;case 12:return po(p,x,x.pendingProps.children,C),x.child;case 10:e:{if(L=x.type._context,K=x.pendingProps,ie=x.memoizedProps,we=K.value,Fi(mv,L._currentValue),L._currentValue=we,ie!==null)if(Yo(ie.value,we)){if(ie.children===K.children&&!Fo.current){x=Dc(p,x,C);break e}}else for(ie=x.child,ie!==null&&(ie.return=x);ie!==null;){var Ge=ie.dependencies;if(Ge!==null){we=ie.child;for(var Ke=Ge.firstContext;Ke!==null;){if(Ke.context===L){if(ie.tag===1){Ke=kc(-1,C&-C),Ke.tag=2;var ot=ie.updateQueue;if(ot!==null){ot=ot.shared;var Tt=ot.pending;Tt===null?Ke.next=Ke:(Ke.next=Tt.next,Tt.next=Ke),ot.pending=Ke}}ie.lanes|=C,Ke=ie.alternate,Ke!==null&&(Ke.lanes|=C),q2(ie.return,C,x),Ge.lanes|=C;break}Ke=Ke.next}}else if(ie.tag===10)we=ie.type===x.type?null:ie.child;else if(ie.tag===18){if(we=ie.return,we===null)throw Error(n(341));we.lanes|=C,Ge=we.alternate,Ge!==null&&(Ge.lanes|=C),q2(we,C,x),we=ie.sibling}else we=ie.child;if(we!==null)we.return=ie;else for(we=ie;we!==null;){if(we===x){we=null;break}if(ie=we.sibling,ie!==null){ie.return=we.return,we=ie;break}we=we.return}ie=we}po(p,x,K.children,C),x=x.child}return x;case 9:return K=x.type,L=x.pendingProps.children,_h(x,C),K=Ns(K),L=L(K),x.flags|=1,po(p,x,L,C),x.child;case 14:return L=x.type,K=fl(L,x.pendingProps),K=fl(L.type,K),d5(p,x,L,K,C);case 15:return f5(p,x,x.type,x.pendingProps,C);case 17:return L=x.type,K=x.pendingProps,K=x.elementType===L?K:fl(L,K),_v(p,x),x.tag=1,Ro(L)?(p=!0,uv(x)):p=!1,_h(x,C),r5(x,L,K),sS(x,L,K,C),dS(null,x,L,!0,p,C);case 19:return b5(p,x,C);case 22:return h5(p,x,C)}throw Error(n(156,x.tag))};function G5(p,x){return jt(p,x)}function dJ(p,x,C,L){this.tag=p,this.key=C,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=x,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=L,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ps(p,x,C,L){return new dJ(p,x,C,L)}function FS(p){return p=p.prototype,!(!p||!p.isReactComponent)}function fJ(p){if(typeof p=="function")return FS(p)?1:0;if(p!=null){if(p=p.$$typeof,p===B)return 11;if(p===Z)return 14}return 2}function bu(p,x){var C=p.alternate;return C===null?(C=Ps(p.tag,x,p.key,p.mode),C.elementType=p.elementType,C.type=p.type,C.stateNode=p.stateNode,C.alternate=p,p.alternate=C):(C.pendingProps=x,C.type=p.type,C.flags=0,C.subtreeFlags=0,C.deletions=null),C.flags=p.flags&14680064,C.childLanes=p.childLanes,C.lanes=p.lanes,C.child=p.child,C.memoizedProps=p.memoizedProps,C.memoizedState=p.memoizedState,C.updateQueue=p.updateQueue,x=p.dependencies,C.dependencies=x===null?null:{lanes:x.lanes,firstContext:x.firstContext},C.sibling=p.sibling,C.index=p.index,C.ref=p.ref,C}function jv(p,x,C,L,K,ie){var we=2;if(L=p,typeof p=="function")FS(p)&&(we=1);else if(typeof p=="string")we=5;else e:switch(p){case D:return $d(C.children,K,ie,x);case I:we=8,K|=8;break;case j:return p=Ps(12,C,x,K|2),p.elementType=j,p.lanes=ie,p;case W:return p=Ps(13,C,x,K),p.elementType=W,p.lanes=ie,p;case P:return p=Ps(19,C,x,K),p.elementType=P,p.lanes=ie,p;case X:return Bv(C,K,ie,x);default:if(typeof p=="object"&&p!==null)switch(p.$$typeof){case R:we=10;break e;case z:we=9;break e;case B:we=11;break e;case Z:we=14;break e;case Q:we=16,L=null;break e}throw Error(n(130,p==null?p:typeof p,""))}return x=Ps(we,C,x,K),x.elementType=p,x.type=L,x.lanes=ie,x}function $d(p,x,C,L){return p=Ps(7,p,L,x),p.lanes=C,p}function Bv(p,x,C,L){return p=Ps(22,p,L,x),p.elementType=X,p.lanes=C,p.stateNode={isHidden:!1},p}function RS(p,x,C){return p=Ps(6,p,null,x),p.lanes=C,p}function PS(p,x,C){return x=Ps(4,p.children!==null?p.children:[],p.key,x),x.lanes=C,x.stateNode={containerInfo:p.containerInfo,pendingChildren:null,implementation:p.implementation},x}function hJ(p,x,C,L,K){this.tag=x,this.containerInfo=p,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ot(0),this.expirationTimes=Ot(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ot(0),this.identifierPrefix=L,this.onRecoverableError=K,this.mutableSourceEagerHydrationData=null}function IS(p,x,C,L,K,ie,we,Ge,Ke){return p=new hJ(p,x,C,Ge,Ke),x===1?(x=1,ie===!0&&(x|=8)):x=0,ie=Ps(3,null,null,x),p.current=ie,ie.stateNode=p,ie.memoizedState={element:L,isDehydrated:C,cache:null,transitions:null,pendingSuspenseBoundaries:null},X2(ie),p}function pJ(p,x,C){var L=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:L==null?null:""+L,children:p,containerInfo:x,implementation:C}}function q5(p){if(!p)return du;p=p._reactInternals;e:{if(Tn(p)!==p||p.tag!==1)throw Error(n(170));var x=p;do{switch(x.tag){case 3:x=x.stateNode.context;break e;case 1:if(Ro(x.type)){x=x.stateNode.__reactInternalMemoizedMergedChildContext;break e}}x=x.return}while(x!==null);throw Error(n(171))}if(p.tag===1){var C=p.type;if(Ro(C))return xR(p,C,x)}return x}function H5(p,x,C,L,K,ie,we,Ge,Ke){return p=IS(C,L,!0,p,K,ie,we,Ge,Ke),p.context=q5(null),C=p.current,L=go(),K=vu(C),ie=kc(L,K),ie.callback=x??null,pu(C,ie,K),p.current.lanes=K,Fn(p,K,L),Mo(p,L),p}function zv(p,x,C,L){var K=x.current,ie=go(),we=vu(K);return C=q5(C),x.context===null?x.context=C:x.pendingContext=C,x=kc(ie,we),x.payload={element:p},L=L===void 0?null:L,L!==null&&(x.callback=L),p=pu(K,x,we),p!==null&&(gl(p,K,we,ie),vv(p,K,we)),we}function Wv(p){if(p=p.current,!p.child)return null;switch(p.child.tag){case 5:return p.child.stateNode;default:return p.child.stateNode}}function X5(p,x){if(p=p.memoizedState,p!==null&&p.dehydrated!==null){var C=p.retryLane;p.retryLane=C!==0&&C<x?C:x}}function MS(p,x){X5(p,x),(p=p.alternate)&&X5(p,x)}function gJ(){return null}var Z5=typeof reportError=="function"?reportError:function(p){console.error(p)};function US(p){this._internalRoot=p}Vv.prototype.render=US.prototype.render=function(p){var x=this._internalRoot;if(x===null)throw Error(n(409));zv(p,x,null,null)},Vv.prototype.unmount=US.prototype.unmount=function(){var p=this._internalRoot;if(p!==null){this._internalRoot=null;var x=p.containerInfo;Xd(function(){zv(null,p,null,null)}),x[es]=null}};function Vv(p){this._internalRoot=p}Vv.prototype.unstable_scheduleHydration=function(p){if(p){var x=kn();p={blockedOn:null,target:p,priority:x};for(var C=0;C<pi.length&&x!==0&&x<pi[C].priority;C++);pi.splice(C,0,p),C===0&&_r(p)}};function LS(p){return!(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)}function Gv(p){return!(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11&&(p.nodeType!==8||p.nodeValue!==" react-mount-point-unstable "))}function K5(){}function mJ(p,x,C,L,K){if(K){if(typeof L=="function"){var ie=L;L=function(){var ot=Wv(we);ie.call(ot)}}var we=H5(x,L,p,0,null,!1,!1,"",K5);return p._reactRootContainer=we,p[es]=we.current,Be(p.nodeType===8?p.parentNode:p),Xd(),we}for(;K=p.lastChild;)p.removeChild(K);if(typeof L=="function"){var Ge=L;L=function(){var ot=Wv(Ke);Ge.call(ot)}}var Ke=IS(p,0,!1,null,null,!1,!1,"",K5);return p._reactRootContainer=Ke,p[es]=Ke.current,Be(p.nodeType===8?p.parentNode:p),Xd(function(){zv(x,Ke,C,L)}),Ke}function qv(p,x,C,L,K){var ie=C._reactRootContainer;if(ie){var we=ie;if(typeof K=="function"){var Ge=K;K=function(){var Ke=Wv(we);Ge.call(Ke)}}zv(x,we,p,K)}else we=mJ(C,x,p,K,L);return Wv(we)}Ei=function(p){switch(p.tag){case 3:var x=p.stateNode;if(x.current.memoizedState.isDehydrated){var C=mr(x.pendingLanes);C!==0&&(hr(x,C|1),Mo(x,Kt()),(ni&6)===0&&(Ph=Kt()+500,fu()))}break;case 13:Xd(function(){var L=Sc(p,1);if(L!==null){var K=go();gl(L,p,1,K)}}),MS(p,1)}},Zt=function(p){if(p.tag===13){var x=Sc(p,134217728);if(x!==null){var C=go();gl(x,p,134217728,C)}MS(p,134217728)}},jn=function(p){if(p.tag===13){var x=vu(p),C=Sc(p,x);if(C!==null){var L=go();gl(C,p,x,L)}MS(p,x)}},kn=function(){return Pn},Un=function(p,x){var C=Pn;try{return Pn=p,x()}finally{Pn=C}},b=function(p,x,C){switch(x){case"input":if(re(p,C),x=C.name,C.type==="radio"&&x!=null){for(C=p;C.parentNode;)C=C.parentNode;for(C=C.querySelectorAll("input[name="+JSON.stringify(""+x)+'][type="radio"]'),x=0;x<C.length;x++){var L=C[x];if(L!==p&&L.form===p.form){var K=jd(L);if(!K)throw Error(n(90));Re(L),re(L,K)}}}break;case"textarea":Ce(p,C);break;case"select":x=C.value,x!=null&&Me(p,!!C.multiple,x,!1)}},Ne=_S,_e=Xd;var yJ={usingClientEntryPoint:!1,Events:[ia,No,jd,O,H,_S]},lm={findFiberByHostInstance:dr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},vJ={bundleType:lm.bundleType,version:lm.version,rendererPackageName:lm.rendererPackageName,rendererConfig:lm.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(p){return p=At(p),p===null?null:p.stateNode},findFiberByHostInstance:lm.findFiberByHostInstance||gJ,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hv.isDisabled&&Hv.supportsFiber)try{Yt=Hv.inject(vJ),Pr=Hv}catch{}}return Uo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yJ,Uo.createPortal=function(p,x){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!LS(x))throw Error(n(200));return pJ(p,x,null,C)},Uo.createRoot=function(p,x){if(!LS(p))throw Error(n(299));var C=!1,L="",K=Z5;return x!=null&&(x.unstable_strictMode===!0&&(C=!0),x.identifierPrefix!==void 0&&(L=x.identifierPrefix),x.onRecoverableError!==void 0&&(K=x.onRecoverableError)),x=IS(p,1,!1,null,null,C,!1,L,K),p[es]=x.current,Be(p.nodeType===8?p.parentNode:p),new US(x)},Uo.findDOMNode=function(p){if(p==null)return null;if(p.nodeType===1)return p;var x=p._reactInternals;if(x===void 0)throw typeof p.render=="function"?Error(n(188)):(p=Object.keys(p).join(","),Error(n(268,p)));return p=At(x),p=p===null?null:p.stateNode,p},Uo.flushSync=function(p){return Xd(p)},Uo.hydrate=function(p,x,C){if(!Gv(x))throw Error(n(200));return qv(null,p,x,!0,C)},Uo.hydrateRoot=function(p,x,C){if(!LS(p))throw Error(n(405));var L=C!=null&&C.hydratedSources||null,K=!1,ie="",we=Z5;if(C!=null&&(C.unstable_strictMode===!0&&(K=!0),C.identifierPrefix!==void 0&&(ie=C.identifierPrefix),C.onRecoverableError!==void 0&&(we=C.onRecoverableError)),x=H5(x,null,p,1,C??null,K,!1,ie,we),p[es]=x.current,Be(p),L)for(p=0;p<L.length;p++)C=L[p],K=C._getVersion,K=K(C._source),x.mutableSourceEagerHydrationData==null?x.mutableSourceEagerHydrationData=[C,K]:x.mutableSourceEagerHydrationData.push(C,K);return new Vv(x)},Uo.render=function(p,x,C){if(!Gv(x))throw Error(n(200));return qv(null,p,x,!1,C)},Uo.unmountComponentAtNode=function(p){if(!Gv(p))throw Error(n(40));return p._reactRootContainer?(Xd(function(){qv(null,null,p,!1,function(){p._reactRootContainer=null,p[es]=null})}),!0):!1},Uo.unstable_batchedUpdates=_S,Uo.unstable_renderSubtreeIntoContainer=function(p,x,C,L){if(!Gv(C))throw Error(n(200));if(p==null||p._reactInternals===void 0)throw Error(n(38));return qv(p,x,C,!1,L)},Uo.version="18.3.1-next-f1338f8080-20240426",Uo}var lP;function yB(){if(lP)return BS.exports;lP=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),BS.exports=EJ(),BS.exports}var cP;function NJ(){if(cP)return Xv;cP=1;var e=yB();return Xv.createRoot=e.createRoot,Xv.hydrateRoot=e.hydrateRoot,Xv}var FJ=NJ(),dg=yB();const vB=Qc(dg);function RJ(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const PJ=e=>{switch(e){case"success":return UJ;case"info":return OJ;case"warning":return LJ;case"error":return jJ;default:return null}},IJ=Array(12).fill(0),MJ=({visible:e,className:t})=>Dt.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Dt.createElement("div",{className:"sonner-spinner"},IJ.map((n,r)=>Dt.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),UJ=Dt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Dt.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),LJ=Dt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Dt.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),OJ=Dt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Dt.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),jJ=Dt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Dt.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),BJ=Dt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Dt.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Dt.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),zJ=()=>{const[e,t]=Dt.useState(document.hidden);return Dt.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let mT=1;class WJ{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,a=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:mT++,o=this.toasts.find(l=>l.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),o?this.toasts=this.toasts.map(l=>l.id===a?(this.publish({...l,...t,id:a,title:r}),{...l,...t,id:a,dismissible:s,title:r}):l):this.addToast({title:r,...i,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let a=r!==void 0,o;const s=i.then(async c=>{if(o=["resolve",c],Dt.isValidElement(c))a=!1,this.create({id:r,type:"default",message:c});else if(GJ(c)&&!c.ok){a=!1;const d=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,g=typeof d=="object"&&!Dt.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:h,...g})}else if(c instanceof Error){a=!1;const d=typeof n.error=="function"?await n.error(c):n.error,h=typeof n.description=="function"?await n.description(c):n.description,g=typeof d=="object"&&!Dt.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:h,...g})}else if(n.success!==void 0){a=!1;const d=typeof n.success=="function"?await n.success(c):n.success,h=typeof n.description=="function"?await n.description(c):n.description,g=typeof d=="object"&&!Dt.isValidElement(d)?d:{message:d};this.create({id:r,type:"success",description:h,...g})}}).catch(async c=>{if(o=["reject",c],n.error!==void 0){a=!1;const u=typeof n.error=="function"?await n.error(c):n.error,d=typeof n.description=="function"?await n.description(c):n.description,f=typeof u=="object"&&!Dt.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:d,...f})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((c,u)=>s.then(()=>o[0]==="reject"?u(o[1]):c(o[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||mT++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const jo=new WJ,VJ=(e,t)=>{const n=(t==null?void 0:t.id)||mT++;return jo.addToast({title:e,...t,id:n}),n},GJ=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",qJ=VJ,HJ=()=>jo.toasts,XJ=()=>jo.getActiveToasts(),Ln=Object.assign(qJ,{success:jo.success,info:jo.info,warning:jo.warning,error:jo.error,custom:jo.custom,message:jo.message,promise:jo.promise,dismiss:jo.dismiss,loading:jo.loading},{getHistory:HJ,getToasts:XJ});RJ("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Zv(e){return e.label!==void 0}const ZJ=3,KJ="24px",$J="16px",uP=4e3,YJ=356,JJ=14,QJ=45,eQ=200;function Hl(...e){return e.filter(Boolean).join(" ")}function tQ(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const nQ=e=>{var t,n,r,i,a,o,s,l,c;const{invert:u,toast:d,unstyled:h,interacting:f,setHeights:g,visibleToasts:y,heights:v,index:A,toasts:w,expanded:S,removeToast:_,defaultRichColors:E,closeButton:T,style:D,cancelButtonStyle:I,actionButtonStyle:j,className:R="",descriptionClassName:z="",duration:B,position:W,gap:P,expandByDefault:Z,classNames:Q,icons:X,closeButtonAriaLabel:q="Close toast"}=e,[te,J]=Dt.useState(null),[ee,le]=Dt.useState(null),[G,xe]=Dt.useState(!1),[ge,ue]=Dt.useState(!1),[ce,ye]=Dt.useState(!1),[Fe,Oe]=Dt.useState(!1),[Le,Re]=Dt.useState(!1),[We,V]=Dt.useState(0),[ve,oe]=Dt.useState(0),re=Dt.useRef(d.duration||B||uP),ne=Dt.useRef(null),be=Dt.useRef(null),Ue=A===0,Me=A+1<=y,Ee=d.type,Se=d.dismissible!==!1,Ce=d.className||"",pe=d.descriptionClassName||"",ke=Dt.useMemo(()=>v.findIndex(O=>O.toastId===d.id)||0,[v,d.id]),Ve=Dt.useMemo(()=>{var O;return(O=d.closeButton)!=null?O:T},[d.closeButton,T]),Xe=Dt.useMemo(()=>d.duration||B||uP,[d.duration,B]),it=Dt.useRef(0),et=Dt.useRef(0),U=Dt.useRef(0),Ae=Dt.useRef(null),[se,Te]=W.split("-"),$=Dt.useMemo(()=>v.reduce((O,H,Ne)=>Ne>=ke?O:O+H.height,0),[v,ke]),de=zJ(),F=d.invert||u,De=Ee==="loading";et.current=Dt.useMemo(()=>ke*P+$,[ke,$]),Dt.useEffect(()=>{re.current=Xe},[Xe]),Dt.useEffect(()=>{xe(!0)},[]),Dt.useEffect(()=>{const O=be.current;if(O){const H=O.getBoundingClientRect().height;return oe(H),g(Ne=>[{toastId:d.id,height:H,position:d.position},...Ne]),()=>g(Ne=>Ne.filter(_e=>_e.toastId!==d.id))}},[g,d.id]),Dt.useLayoutEffect(()=>{if(!G)return;const O=be.current,H=O.style.height;O.style.height="auto";const Ne=O.getBoundingClientRect().height;O.style.height=H,oe(Ne),g(_e=>_e.find(Ze=>Ze.toastId===d.id)?_e.map(Ze=>Ze.toastId===d.id?{...Ze,height:Ne}:Ze):[{toastId:d.id,height:Ne,position:d.position},..._e])},[G,d.title,d.description,g,d.id,d.jsx,d.action,d.cancel]);const He=Dt.useCallback(()=>{ue(!0),V(et.current),g(O=>O.filter(H=>H.toastId!==d.id)),setTimeout(()=>{_(d)},eQ)},[d,_,g,et]);Dt.useEffect(()=>{if(d.promise&&Ee==="loading"||d.duration===1/0||d.type==="loading")return;let O;return S||f||de?(()=>{if(U.current<it.current){const _e=new Date().getTime()-it.current;re.current=re.current-_e}U.current=new Date().getTime()})():(()=>{re.current!==1/0&&(it.current=new Date().getTime(),O=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),He()},re.current))})(),()=>clearTimeout(O)},[S,f,d,Ee,de,He]),Dt.useEffect(()=>{d.delete&&(He(),d.onDismiss==null||d.onDismiss.call(d,d))},[He,d.delete]);function b(){var O;if(X!=null&&X.loading){var H;return Dt.createElement("div",{className:Hl(Q==null?void 0:Q.loader,d==null||(H=d.classNames)==null?void 0:H.loader,"sonner-loader"),"data-visible":Ee==="loading"},X.loading)}return Dt.createElement(MJ,{className:Hl(Q==null?void 0:Q.loader,d==null||(O=d.classNames)==null?void 0:O.loader),visible:Ee==="loading"})}const ae=d.icon||(X==null?void 0:X[Ee])||PJ(Ee);var M,k;return Dt.createElement("li",{tabIndex:0,ref:be,className:Hl(R,Ce,Q==null?void 0:Q.toast,d==null||(t=d.classNames)==null?void 0:t.toast,Q==null?void 0:Q.default,Q==null?void 0:Q[Ee],d==null||(n=d.classNames)==null?void 0:n[Ee]),"data-sonner-toast":"","data-rich-colors":(M=d.richColors)!=null?M:E,"data-styled":!(d.jsx||d.unstyled||h),"data-mounted":G,"data-promise":!!d.promise,"data-swiped":Le,"data-removed":ge,"data-visible":Me,"data-y-position":se,"data-x-position":Te,"data-index":A,"data-front":Ue,"data-swiping":ce,"data-dismissible":Se,"data-type":Ee,"data-invert":F,"data-swipe-out":Fe,"data-swipe-direction":ee,"data-expanded":!!(S||Z&&G),"data-testid":d.testId,style:{"--index":A,"--toasts-before":A,"--z-index":w.length-A,"--offset":`${ge?We:et.current}px`,"--initial-height":Z?"auto":`${ve}px`,...D,...d.style},onDragEnd:()=>{ye(!1),J(null),Ae.current=null},onPointerDown:O=>{O.button!==2&&(De||!Se||(ne.current=new Date,V(et.current),O.target.setPointerCapture(O.pointerId),O.target.tagName!=="BUTTON"&&(ye(!0),Ae.current={x:O.clientX,y:O.clientY})))},onPointerUp:()=>{var O,H,Ne;if(Fe||!Se)return;Ae.current=null;const _e=Number(((O=be.current)==null?void 0:O.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Pe=Number(((H=be.current)==null?void 0:H.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ze=new Date().getTime()-((Ne=ne.current)==null?void 0:Ne.getTime()),ut=te==="x"?_e:Pe,st=Math.abs(ut)/Ze;if(Math.abs(ut)>=QJ||st>.11){V(et.current),d.onDismiss==null||d.onDismiss.call(d,d),le(te==="x"?_e>0?"right":"left":Pe>0?"down":"up"),He(),Oe(!0);return}else{var Je,pt;(Je=be.current)==null||Je.style.setProperty("--swipe-amount-x","0px"),(pt=be.current)==null||pt.style.setProperty("--swipe-amount-y","0px")}Re(!1),ye(!1),J(null)},onPointerMove:O=>{var H,Ne,_e;if(!Ae.current||!Se||((H=window.getSelection())==null?void 0:H.toString().length)>0)return;const Ze=O.clientY-Ae.current.y,ut=O.clientX-Ae.current.x;var st;const Je=(st=e.swipeDirections)!=null?st:tQ(W);!te&&(Math.abs(ut)>1||Math.abs(Ze)>1)&&J(Math.abs(ut)>Math.abs(Ze)?"x":"y");let pt={x:0,y:0};const xt=dt=>1/(1.5+Math.abs(dt)/20);if(te==="y"){if(Je.includes("top")||Je.includes("bottom"))if(Je.includes("top")&&Ze<0||Je.includes("bottom")&&Ze>0)pt.y=Ze;else{const dt=Ze*xt(Ze);pt.y=Math.abs(dt)<Math.abs(Ze)?dt:Ze}}else if(te==="x"&&(Je.includes("left")||Je.includes("right")))if(Je.includes("left")&&ut<0||Je.includes("right")&&ut>0)pt.x=ut;else{const dt=ut*xt(ut);pt.x=Math.abs(dt)<Math.abs(ut)?dt:ut}(Math.abs(pt.x)>0||Math.abs(pt.y)>0)&&Re(!0),(Ne=be.current)==null||Ne.style.setProperty("--swipe-amount-x",`${pt.x}px`),(_e=be.current)==null||_e.style.setProperty("--swipe-amount-y",`${pt.y}px`)}},Ve&&!d.jsx&&Ee!=="loading"?Dt.createElement("button",{"aria-label":q,"data-disabled":De,"data-close-button":!0,onClick:De||!Se?()=>{}:()=>{He(),d.onDismiss==null||d.onDismiss.call(d,d)},className:Hl(Q==null?void 0:Q.closeButton,d==null||(r=d.classNames)==null?void 0:r.closeButton)},(k=X==null?void 0:X.close)!=null?k:BJ):null,(Ee||d.icon||d.promise)&&d.icon!==null&&((X==null?void 0:X[Ee])!==null||d.icon)?Dt.createElement("div",{"data-icon":"",className:Hl(Q==null?void 0:Q.icon,d==null||(i=d.classNames)==null?void 0:i.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||b():null,d.type!=="loading"?ae:null):null,Dt.createElement("div",{"data-content":"",className:Hl(Q==null?void 0:Q.content,d==null||(a=d.classNames)==null?void 0:a.content)},Dt.createElement("div",{"data-title":"",className:Hl(Q==null?void 0:Q.title,d==null||(o=d.classNames)==null?void 0:o.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?Dt.createElement("div",{"data-description":"",className:Hl(z,pe,Q==null?void 0:Q.description,d==null||(s=d.classNames)==null?void 0:s.description)},typeof d.description=="function"?d.description():d.description):null),Dt.isValidElement(d.cancel)?d.cancel:d.cancel&&Zv(d.cancel)?Dt.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||I,onClick:O=>{Zv(d.cancel)&&Se&&(d.cancel.onClick==null||d.cancel.onClick.call(d.cancel,O),He())},className:Hl(Q==null?void 0:Q.cancelButton,d==null||(l=d.classNames)==null?void 0:l.cancelButton)},d.cancel.label):null,Dt.isValidElement(d.action)?d.action:d.action&&Zv(d.action)?Dt.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||j,onClick:O=>{Zv(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,O),!O.defaultPrevented&&He())},className:Hl(Q==null?void 0:Q.actionButton,d==null||(c=d.classNames)==null?void 0:c.actionButton)},d.action.label):null)};function dP(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function rQ(e,t){const n={};return[e,t].forEach((r,i)=>{const a=i===1,o=a?"--mobile-offset":"--offset",s=a?$J:KJ;function l(c){["top","right","bottom","left"].forEach(u=>{n[`${o}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${o}-${c}`]=s:n[`${o}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(s)}),n}const xB=Dt.forwardRef(function(t,n){const{id:r,invert:i,position:a="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:l,className:c,offset:u,mobileOffset:d,theme:h="light",richColors:f,duration:g,style:y,visibleToasts:v=ZJ,toastOptions:A,dir:w=dP(),gap:S=JJ,icons:_,containerAriaLabel:E="Notifications"}=t,[T,D]=Dt.useState([]),I=Dt.useMemo(()=>r?T.filter(G=>G.toasterId===r):T.filter(G=>!G.toasterId),[T,r]),j=Dt.useMemo(()=>Array.from(new Set([a].concat(I.filter(G=>G.position).map(G=>G.position)))),[I,a]),[R,z]=Dt.useState([]),[B,W]=Dt.useState(!1),[P,Z]=Dt.useState(!1),[Q,X]=Dt.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),q=Dt.useRef(null),te=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),J=Dt.useRef(null),ee=Dt.useRef(!1),le=Dt.useCallback(G=>{D(xe=>{var ge;return(ge=xe.find(ue=>ue.id===G.id))!=null&&ge.delete||jo.dismiss(G.id),xe.filter(({id:ue})=>ue!==G.id)})},[]);return Dt.useEffect(()=>jo.subscribe(G=>{if(G.dismiss){requestAnimationFrame(()=>{D(xe=>xe.map(ge=>ge.id===G.id?{...ge,delete:!0}:ge))});return}setTimeout(()=>{vB.flushSync(()=>{D(xe=>{const ge=xe.findIndex(ue=>ue.id===G.id);return ge!==-1?[...xe.slice(0,ge),{...xe[ge],...G},...xe.slice(ge+1)]:[G,...xe]})})})}),[T]),Dt.useEffect(()=>{if(h!=="system"){X(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?X("dark"):X("light")),typeof window>"u")return;const G=window.matchMedia("(prefers-color-scheme: dark)");try{G.addEventListener("change",({matches:xe})=>{X(xe?"dark":"light")})}catch{G.addListener(({matches:ge})=>{try{X(ge?"dark":"light")}catch(ue){console.error(ue)}})}},[h]),Dt.useEffect(()=>{T.length<=1&&W(!1)},[T]),Dt.useEffect(()=>{const G=xe=>{var ge;if(o.every(ye=>xe[ye]||xe.code===ye)){var ce;W(!0),(ce=q.current)==null||ce.focus()}xe.code==="Escape"&&(document.activeElement===q.current||(ge=q.current)!=null&&ge.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",G),()=>document.removeEventListener("keydown",G)},[o]),Dt.useEffect(()=>{if(q.current)return()=>{J.current&&(J.current.focus({preventScroll:!0}),J.current=null,ee.current=!1)}},[q.current]),Dt.createElement("section",{ref:n,"aria-label":`${E} ${te}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((G,xe)=>{var ge;const[ue,ce]=G.split("-");return I.length?Dt.createElement("ol",{key:G,dir:w==="auto"?dP():w,tabIndex:-1,ref:q,className:c,"data-sonner-toaster":!0,"data-sonner-theme":Q,"data-y-position":ue,"data-x-position":ce,style:{"--front-toast-height":`${((ge=R[0])==null?void 0:ge.height)||0}px`,"--width":`${YJ}px`,"--gap":`${S}px`,...y,...rQ(u,d)},onBlur:ye=>{ee.current&&!ye.currentTarget.contains(ye.relatedTarget)&&(ee.current=!1,J.current&&(J.current.focus({preventScroll:!0}),J.current=null))},onFocus:ye=>{ye.target instanceof HTMLElement&&ye.target.dataset.dismissible==="false"||ee.current||(ee.current=!0,J.current=ye.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{P||W(!1)},onDragEnd:()=>W(!1),onPointerDown:ye=>{ye.target instanceof HTMLElement&&ye.target.dataset.dismissible==="false"||Z(!0)},onPointerUp:()=>Z(!1)},I.filter(ye=>!ye.position&&xe===0||ye.position===G).map((ye,Fe)=>{var Oe,Le;return Dt.createElement(nQ,{key:ye.id,icons:_,index:Fe,toast:ye,defaultRichColors:f,duration:(Oe=A==null?void 0:A.duration)!=null?Oe:g,className:A==null?void 0:A.className,descriptionClassName:A==null?void 0:A.descriptionClassName,invert:i,visibleToasts:v,closeButton:(Le=A==null?void 0:A.closeButton)!=null?Le:l,interacting:P,position:G,style:A==null?void 0:A.style,unstyled:A==null?void 0:A.unstyled,classNames:A==null?void 0:A.classNames,cancelButtonStyle:A==null?void 0:A.cancelButtonStyle,actionButtonStyle:A==null?void 0:A.actionButtonStyle,closeButtonAriaLabel:A==null?void 0:A.closeButtonAriaLabel,removeToast:le,toasts:I.filter(Re=>Re.position==ye.position),heights:R.filter(Re=>Re.position==ye.position),setHeights:z,expandByDefault:s,gap:S,expanded:B,swipeDirections:t.swipeDirections})})):null}))});/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const iQ=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),aQ=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),fP=e=>{const t=aQ(e);return t.charAt(0).toUpperCase()+t.slice(1)},bB=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),oQ=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */var sQ={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.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const lQ=N.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:o,...s},l)=>N.createElement("svg",{ref:l,...sQ,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:bB("lucide",i),...!a&&!oQ(s)&&{"aria-hidden":"true"},...s},[...o.map(([c,u])=>N.createElement(c,u)),...Array.isArray(a)?a:[a]]));/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const pn=(e,t)=>{const n=N.forwardRef(({className:r,...i},a)=>N.createElement(lQ,{ref:a,iconNode:t,className:bB(`lucide-${iQ(fP(e))}`,`lucide-${e}`,r),...i}));return n.displayName=fP(e),n};/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const cQ=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],VS=pn("arrow-left",cQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const uQ=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],dQ=pn("arrow-right",uQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const fQ=[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]],hQ=pn("audio-lines",fQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const pQ=[["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3",key:"1fpvtg"}]],Ef=pn("blocks",pQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const gQ=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],mQ=pn("box",gQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const yQ=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],SA=pn("brain",yQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const vQ=[["path",{d:"M12 16v5",key:"zza2cw"}],["path",{d:"M16 14v7",key:"1g90b9"}],["path",{d:"M20 10v11",key:"1iqoj0"}],["path",{d:"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15",key:"1fw8x9"}],["path",{d:"M4 18v3",key:"1yp0dc"}],["path",{d:"M8 14v7",key:"n3cwzv"}]],Zp=pn("chart-no-axes-combined",vQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const xQ=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],qo=pn("check",xQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const bQ=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Wo=pn("chevron-down",bQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const AQ=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],dE=pn("chevron-right",AQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const wQ=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],qu=pn("chevron-up",wQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const SQ=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],kQ=pn("circle-check",SQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const DQ=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]],hP=pn("circle-play",DQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const CQ=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],AB=pn("circle",CQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const TQ=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Kp=pn("clock",TQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const _Q=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],wB=pn("code-xml",_Q);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const EQ=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ku=pn("copy",EQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const NQ=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],fE=pn("cpu",NQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const FQ=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],tc=pn("download",FQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const RQ=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],PQ=pn("external-link",RQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const IQ=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],MQ=pn("eye-off",IQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const UQ=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],SB=pn("eye",UQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const LQ=[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]],eu=pn("file-code",LQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const OQ=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],jQ=pn("file-image",OQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const BQ=[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]],zQ=pn("file-search",BQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const WQ=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Oi=pn("file-text",WQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const VQ=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],kB=pn("github",VQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const GQ=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],hE=pn("grip-vertical",GQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const qQ=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],pE=pn("history",qQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const HQ=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],gE=pn("house",HQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const XQ=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],pP=pn("image-plus",XQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const ZQ=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ao=pn("image",ZQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const KQ=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],mE=pn("layers",KQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const $Q=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],YQ=pn("lightbulb",$Q);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const JQ=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],sa=pn("loader-circle",JQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const QQ=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],eee=pn("mail",QQ);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const tee=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],nee=pn("maximize-2",tee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const ree=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 10h6",key:"9gxzsh"}]],gb=pn("message-square-plus",ree);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const iee=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],aee=pn("minimize-2",iee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const oee=[["path",{d:"M5 12h14",key:"1ays0h"}]],see=pn("minus",oee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const lee=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],kA=pn("package",lee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const cee=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],yE=pn("panel-right-close",cee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const uee=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]],vE=pn("panel-right-open",uee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const dee=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Fl=pn("pencil",dee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const fee=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],cy=pn("play",fee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const hee=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],DB=pn("plus",hee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const pee=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],Nf=pn("presentation",pee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const gee=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],CB=pn("refresh-ccw",gee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const mee=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],fg=pn("rotate-ccw",mee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const yee=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],vee=pn("save",yee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const xee=[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]],bee=pn("scale",xee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const Aee=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],xE=pn("scroll-text",Aee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const wee=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],bE=pn("send",wee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const See=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],kee=pn("settings",See);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const Dee=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Mp=pn("share-2",Dee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const Cee=[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]],Tee=pn("sigma",Cee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const _ee=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],yf=pn("sparkles",_ee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const Eee=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],AE=pn("square",Eee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const Nee=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],Fee=pn("table-2",Nee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const Ree=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Zf=pn("trash-2",Ree);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const Pee=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Ya=pn("upload",Pee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const Iee=[["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.72",key:"ul74o6"}],["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"}]],Up=pn("wand-sparkles",Iee);/**- * @license lucide-react v0.511.0 - ISC- *- * This source code is licensed under the ISC license.- * See the LICENSE file in the root directory of this source tree.- */const Mee=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Va=pn("x",Mee);function gP(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fd(...e){return t=>{let n=!1;const r=e.map(i=>{const a=gP(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():gP(e[i],null)}}}}function Hr(...e){return N.useCallback(fd(...e),e)}var Uee=Symbol.for("react.lazy"),c1=wA[" use ".trim().toString()];function Lee(e){return typeof e=="object"&&e!==null&&"then"in e}function TB(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Uee&&"_payload"in e&&Lee(e._payload)}function Oee(e){const t=jee(e),n=N.forwardRef((r,i)=>{let{children:a,...o}=r;TB(a)&&typeof c1=="function"&&(a=c1(a._payload));const s=N.Children.toArray(a),l=s.find(zee);if(l){const c=l.props.children,u=s.map(d=>d===l?N.Children.count(c)>1?N.Children.only(null):N.isValidElement(c)?c.props.children:null:d);return m.jsx(t,{...o,ref:i,children:N.isValidElement(c)?N.cloneElement(c,void 0,u):null})}return m.jsx(t,{...o,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}var DA=Oee("Slot");function jee(e){const t=N.forwardRef((n,r)=>{let{children:i,...a}=n;if(TB(i)&&typeof c1=="function"&&(i=c1(i._payload)),N.isValidElement(i)){const o=Vee(i),s=Wee(a,i.props);return i.type!==N.Fragment&&(s.ref=r?fd(r,o):o),N.cloneElement(i,s)}return N.Children.count(i)>1?N.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Bee=Symbol("radix.slottable");function zee(e){return N.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bee}function Wee(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function Vee(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function _B(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=_B(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function uy(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=_B(e))&&(r&&(r+=" "),r+=t);return r}const mP=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,yP=uy,CA=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return yP(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(c=>{const u=n==null?void 0:n[c],d=a==null?void 0:a[c];if(u===null)return null;const h=mP(u)||mP(d);return i[c][h]}),s=n&&Object.entries(n).reduce((c,u)=>{let[d,h]=u;return h===void 0||(c[d]=h),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:h,...f}=u;return Object.entries(f).every(g=>{let[y,v]=g;return Array.isArray(v)?v.includes({...a,...s}[y]):{...a,...s}[y]===v})?[...c,d,h]:c},[]);return yP(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},Gee=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},qee=(e,t)=>({classGroupId:e,validator:t}),EB=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),u1="-",vP=[],Hee="arbitrary..",Xee=e=>{const t=Kee(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return Zee(o);const s=o.split(u1),l=s[0]===""&&s.length>1?1:0;return NB(s,l,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=r[o],c=n[o];return l?c?Gee(c,l):l:c||vP}return n[o]||vP}}},NB=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const c=NB(e,t+1,a);if(c)return c}const o=n.validators;if(o===null)return;const s=t===0?e.join(u1):e.slice(t).join(u1),l=o.length;for(let c=0;c<l;c++){const u=o[c];if(u.validator(s))return u.classGroupId}},Zee=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Hee+r:void 0})(),Kee=e=>{const{theme:t,classGroups:n}=e;return $ee(n,t)},$ee=(e,t)=>{const n=EB();for(const r in e){const i=e[r];wE(i,n,r,t)}return n},wE=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const o=e[a];Yee(o,t,n,r)}},Yee=(e,t,n,r)=>{if(typeof e=="string"){Jee(e,t,n);return}if(typeof e=="function"){Qee(e,t,n,r);return}ete(e,t,n,r)},Jee=(e,t,n)=>{const r=e===""?t:FB(t,e);r.classGroupId=n},Qee=(e,t,n,r)=>{if(tte(e)){wE(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(qee(n,e))},ete=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let o=0;o<a;o++){const[s,l]=i[o];wE(l,FB(t,s),n,r)}},FB=(e,t)=>{let n=e;const r=t.split(u1),i=r.length;for(let a=0;a<i;a++){const o=r[a];let s=n.nextPart.get(o);s||(s=EB(),n.nextPart.set(o,s)),n=s}return n},tte=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,nte=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,o)=>{n[a]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let o=n[a];if(o!==void 0)return o;if((o=r[a])!==void 0)return i(a,o),o},set(a,o){a in n?n[a]=o:i(a,o)}}},yT="!",xP=":",rte=[],bP=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),ite=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let o=0,s=0,l=0,c;const u=i.length;for(let y=0;y<u;y++){const v=i[y];if(o===0&&s===0){if(v===xP){a.push(i.slice(l,y)),l=y+1;continue}if(v==="/"){c=y;continue}}v==="["?o++:v==="]"?o--:v==="("?s++:v===")"&&s--}const d=a.length===0?i:i.slice(l);let h=d,f=!1;d.endsWith(yT)?(h=d.slice(0,-1),f=!0):d.startsWith(yT)&&(h=d.slice(1),f=!0);const g=c&&c>l?c-l:void 0;return bP(a,f,h,g)};if(t){const i=t+xP,a=r;r=o=>o.startsWith(i)?a(o.slice(i.length)):bP(rte,!1,o,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},ate=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const o=n[a],s=o[0]==="[",l=t.has(o);s||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},ote=e=>({cache:nte(e.cacheSize),parseClassName:ite(e),sortModifiers:ate(e),...Xee(e)}),ste=/\s+/,lte=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(ste);let l="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:d,modifiers:h,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:y}=n(u);if(d){l=u+(l.length>0?" "+l:l);continue}let v=!!y,A=r(v?g.substring(0,y):g);if(!A){if(!v){l=u+(l.length>0?" "+l:l);continue}if(A=r(g),!A){l=u+(l.length>0?" "+l:l);continue}v=!1}const w=h.length===0?"":h.length===1?h[0]:a(h).join(":"),S=f?w+yT:w,_=S+A;if(o.indexOf(_)>-1)continue;o.push(_);const E=i(A,v);for(let T=0;T<E.length;++T){const D=E[T];o.push(S+D)}l=u+(l.length>0?" "+l:l)}return l},cte=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=RB(n))&&(i&&(i+=" "),i+=r);return i},RB=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=RB(e[r]))&&(n&&(n+=" "),n+=t);return n},ute=(e,...t)=>{let n,r,i,a;const o=l=>{const c=t.reduce((u,d)=>d(u),e());return n=ote(c),r=n.cache.get,i=n.cache.set,a=s,s(l)},s=l=>{const c=r(l);if(c)return c;const u=lte(l,n);return i(l,u),u};return a=o,(...l)=>a(cte(...l))},dte=[],Da=e=>{const t=n=>n[e]||dte;return t.isThemeGetter=!0,t},PB=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,IB=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fte=/^\d+\/\d+$/,hte=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pte=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gte=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mte=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yte=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mh=e=>fte.test(e),Ur=e=>!!e&&!Number.isNaN(Number(e)),wu=e=>!!e&&Number.isInteger(Number(e)),GS=e=>e.endsWith("%")&&Ur(e.slice(0,-1)),Tc=e=>hte.test(e),vte=()=>!0,xte=e=>pte.test(e)&&!gte.test(e),MB=()=>!1,bte=e=>mte.test(e),Ate=e=>yte.test(e),wte=e=>!dn(e)&&!fn(e),Ste=e=>hg(e,OB,MB),dn=e=>PB.test(e),Yd=e=>hg(e,jB,xte),qS=e=>hg(e,_te,Ur),AP=e=>hg(e,UB,MB),kte=e=>hg(e,LB,Ate),Kv=e=>hg(e,BB,bte),fn=e=>IB.test(e),dm=e=>pg(e,jB),Dte=e=>pg(e,Ete),wP=e=>pg(e,UB),Cte=e=>pg(e,OB),Tte=e=>pg(e,LB),$v=e=>pg(e,BB,!0),hg=(e,t,n)=>{const r=PB.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},pg=(e,t,n=!1)=>{const r=IB.exec(e);return r?r[1]?t(r[1]):n:!1},UB=e=>e==="position"||e==="percentage",LB=e=>e==="image"||e==="url",OB=e=>e==="length"||e==="size"||e==="bg-size",jB=e=>e==="length",_te=e=>e==="number",Ete=e=>e==="family-name",BB=e=>e==="shadow",Nte=()=>{const e=Da("color"),t=Da("font"),n=Da("text"),r=Da("font-weight"),i=Da("tracking"),a=Da("leading"),o=Da("breakpoint"),s=Da("container"),l=Da("spacing"),c=Da("radius"),u=Da("shadow"),d=Da("inset-shadow"),h=Da("text-shadow"),f=Da("drop-shadow"),g=Da("blur"),y=Da("perspective"),v=Da("aspect"),A=Da("ease"),w=Da("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[..._(),fn,dn],T=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],I=()=>[fn,dn,l],j=()=>[Mh,"full","auto",...I()],R=()=>[wu,"none","subgrid",fn,dn],z=()=>["auto",{span:["full",wu,fn,dn]},wu,fn,dn],B=()=>[wu,"auto",fn,dn],W=()=>["auto","min","max","fr",fn,dn],P=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...I()],X=()=>[Mh,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],q=()=>[e,fn,dn],te=()=>[..._(),wP,AP,{position:[fn,dn]}],J=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",Cte,Ste,{size:[fn,dn]}],le=()=>[GS,dm,Yd],G=()=>["","none","full",c,fn,dn],xe=()=>["",Ur,dm,Yd],ge=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[Ur,GS,wP,AP],ye=()=>["","none",g,fn,dn],Fe=()=>["none",Ur,fn,dn],Oe=()=>["none",Ur,fn,dn],Le=()=>[Ur,fn,dn],Re=()=>[Mh,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Tc],breakpoint:[Tc],color:[vte],container:[Tc],"drop-shadow":[Tc],ease:["in","out","in-out"],font:[wte],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Tc],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Tc],shadow:[Tc],spacing:["px",Ur],text:[Tc],"text-shadow":[Tc],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Mh,dn,fn,v]}],container:["container"],columns:[{columns:[Ur,dn,fn,s]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{start:j()}],end:[{end:j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[wu,"auto",fn,dn]}],basis:[{basis:[Mh,"full","auto",s,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ur,Mh,"auto","initial","none",dn]}],grow:[{grow:["",Ur,fn,dn]}],shrink:[{shrink:["",Ur,fn,dn]}],order:[{order:[wu,"first","last","none",fn,dn]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...P(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...P()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":P()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[s,"screen",...X()]}],"min-w":[{"min-w":[s,"screen","none",...X()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,dm,Yd]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,fn,qS]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",GS,dn]}],"font-family":[{font:[Dte,dn,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,fn,dn]}],"line-clamp":[{"line-clamp":[Ur,"none",fn,qS]}],leading:[{leading:[a,...I()]}],"list-image":[{"list-image":["none",fn,dn]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",fn,dn]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ur,"from-font","auto",fn,Yd]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[Ur,"auto",fn,dn]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fn,dn]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fn,dn]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:J()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},wu,fn,dn],radial:["",fn,dn],conic:[wu,fn,dn]},Tte,kte]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:xe()}],"border-w-x":[{"border-x":xe()}],"border-w-y":[{"border-y":xe()}],"border-w-s":[{"border-s":xe()}],"border-w-e":[{"border-e":xe()}],"border-w-t":[{"border-t":xe()}],"border-w-r":[{"border-r":xe()}],"border-w-b":[{"border-b":xe()}],"border-w-l":[{"border-l":xe()}],"divide-x":[{"divide-x":xe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":xe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ur,fn,dn]}],"outline-w":[{outline:["",Ur,dm,Yd]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",u,$v,Kv]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",d,$v,Kv]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:xe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[Ur,Yd]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":xe()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",h,$v,Kv]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[Ur,fn,dn]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ur]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[fn,dn]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[Ur]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:J()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",fn,dn]}],filter:[{filter:["","none",fn,dn]}],blur:[{blur:ye()}],brightness:[{brightness:[Ur,fn,dn]}],contrast:[{contrast:[Ur,fn,dn]}],"drop-shadow":[{"drop-shadow":["","none",f,$v,Kv]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",Ur,fn,dn]}],"hue-rotate":[{"hue-rotate":[Ur,fn,dn]}],invert:[{invert:["",Ur,fn,dn]}],saturate:[{saturate:[Ur,fn,dn]}],sepia:[{sepia:["",Ur,fn,dn]}],"backdrop-filter":[{"backdrop-filter":["","none",fn,dn]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[Ur,fn,dn]}],"backdrop-contrast":[{"backdrop-contrast":[Ur,fn,dn]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ur,fn,dn]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ur,fn,dn]}],"backdrop-invert":[{"backdrop-invert":["",Ur,fn,dn]}],"backdrop-opacity":[{"backdrop-opacity":[Ur,fn,dn]}],"backdrop-saturate":[{"backdrop-saturate":[Ur,fn,dn]}],"backdrop-sepia":[{"backdrop-sepia":["",Ur,fn,dn]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",fn,dn]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ur,"initial",fn,dn]}],ease:[{ease:["linear","initial",A,fn,dn]}],delay:[{delay:[Ur,fn,dn]}],animate:[{animate:["none",w,fn,dn]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,fn,dn]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:Fe()}],"rotate-x":[{"rotate-x":Fe()}],"rotate-y":[{"rotate-y":Fe()}],"rotate-z":[{"rotate-z":Fe()}],scale:[{scale:Oe()}],"scale-x":[{"scale-x":Oe()}],"scale-y":[{"scale-y":Oe()}],"scale-z":[{"scale-z":Oe()}],"scale-3d":["scale-3d"],skew:[{skew:Le()}],"skew-x":[{"skew-x":Le()}],"skew-y":[{"skew-y":Le()}],transform:[{transform:[fn,dn,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Re()}],"translate-x":[{"translate-x":Re()}],"translate-y":[{"translate-y":Re()}],"translate-z":[{"translate-z":Re()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",fn,dn]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",fn,dn]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[Ur,dm,Yd,qS]}],stroke:[{stroke:["none",...q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},zB=ute(Nte);function gt(...e){return zB(uy(e))}const Fte=CA("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),bo=N.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{const o=r?DA:"button";return m.jsx(o,{className:gt(Fte({variant:t,size:n,className:e})),ref:a,...i})});bo.displayName="Button";const WB="CanvasAnvil-ui-lang-v1";function bs(){if(typeof window>"u")return"zh";const e=String(localStorage.getItem(WB)||"").trim().toLowerCase();return e==="en"?"en":"zh"}function d1(e){if(!(typeof window>"u")){localStorage.setItem(WB,e);try{document.documentElement.setAttribute("lang",e==="zh"?"zh-CN":"en")}catch{}try{window.dispatchEvent(new Event("ui-language-changed"))}catch{}}}const Rte={"app.refresh":{zh:"刷新页面",en:"Refresh"},"app.tryContinue":{zh:"尝试继续",en:"Try to continue"},"chat.hello":{zh:"你好!我是你的 AI 助手。请告诉我你的需求。",en:"Hi! I'm your AI assistant. Tell me what you need."},"chat.newChat":{zh:"你好!新对话已开始。请告诉我你的需求。",en:"Hi! New chat started. Tell me what you need."},"chat.cleared":{zh:"你好!对话记录已清空。",en:"Hi! Chat history has been cleared."},"common.cancel":{zh:"取消",en:"Cancel"},"common.save":{zh:"保存",en:"Save"},"common.clear":{zh:"清空",en:"Clear"},"settings.title":{zh:"配置设置",en:"Settings"},"settings.subtitle":{zh:"配置 AI 模型参数与 API 密钥",en:"Configure model parameters and API keys"},"settings.language":{zh:"界面语言",en:"Language"},"settings.language.zh":{zh:"中文",en:"Chinese"},"settings.language.en":{zh:"英文",en:"English"},"settings.buttonTitle":{zh:"设置",en:"Settings"},"settings.chatModel":{zh:"对话模型 (Chat Model)",en:"Chat Model"},"settings.imageModel":{zh:"绘图模型 (Image Model)",en:"Image Model"},"reset.title":{zh:"清空对话",en:"Clear Chat"},"reset.desc":{zh:"清空对话将同时清空当前工作台内容。此操作无法撤销。PPT 工作台会回到开始页面。",en:"Clearing chat will also clear the current workspace content. This action cannot be undone. The PPT workspace will return to the start page."},"workspace.flow.title":{zh:"流程图助手",en:"Flow Assistant"},"workspace.flow.placeholder":{zh:"描述流程…",en:"Describe the flow…"},"workspace.cad.title":{zh:"CAD 助手",en:"CAD Assistant"},"workspace.cad.placeholder":{zh:"描述 CAD…",en:"Describe the CAD…"},"workspace.ppt.title":{zh:"PPT 助手",en:"PPT Assistant"},"workspace.ppt.placeholder":{zh:"描述 PPT…",en:"Describe the PPT…"},"workspace.default.title":{zh:"AI 助手",en:"AI Assistant"},"chat.stop":{zh:"暂停",en:"Pause"},"chat.send":{zh:"发送",en:"Send"},"chat.uploadFile":{zh:"上传文件",en:"Upload file"},"chat.uploadImage":{zh:"上传图片",en:"Upload image"},"chat.rules":{zh:"规则",en:"Rules"},"chat.expand":{zh:"展开聊天",en:"Expand chat"},"chat.globalConstraints":{zh:"全局约束",en:"Global constraints"},"chat.newChatTitle":{zh:"新开对话",en:"New chat"},"chat.historyTitle":{zh:"版本历史",en:"History"},"chat.clearChatTitle":{zh:"清空对话",en:"Clear chat"},"chat.collapseLocked":{zh:"PPT 生成完成前不能收起聊天",en:"Chat cannot be collapsed while PPT is generating"},"chat.collapse":{zh:"收起聊天",en:"Collapse chat"},"nav.flow":{zh:"流程绘制",en:"Flow"},"nav.cad":{zh:"室内设计",en:"CAD"},"nav.ppt":{zh:"PPT演示",en:"PPT"},"nav.poster":{zh:"海报",en:"Poster"},"nav.infographic":{zh:"信息图",en:"Infographic"},"nav.product":{zh:"产品介绍",en:"Product"},"flow.addToChat":{zh:"添加到对话",en:"Add to chat"},"flow.addToChat.tooltip":{zh:"将当前图表添加到对话",en:"Add current diagram to chat"},"flow.saving":{zh:"保存中...",en:"Saving..."},"flow.updatingChat":{zh:"更新对话中...",en:"Updating chat..."},"flow.editorTitle":{zh:"流程图编辑器",en:"Flowchart Editor"},"history.title":{zh:"版本历史",en:"Version History"},"history.clear":{zh:"清空",en:"Clear"},"history.empty":{zh:"暂无历史记录",en:"No history yet"},"history.restore":{zh:"恢复",en:"Restore"},"history.chars":{zh:"{{n}} 字符",en:"{{n}} chars"},"constraints.title":{zh:"全局规则约束",en:"Global Constraints"},"constraints.desc":{zh:"设置适用于当前工作区的全局系统提示词。",en:"Set global system instructions for the current workspace."},"constraints.placeholder":{zh:"例如:始终使用中文回答,代码注释必须详细...",en:"e.g. Always respond in English. Code comments must be detailed..."},"saveDialog.title":{zh:"保存图表",en:"Save Diagram"},"saveDialog.filename":{zh:"文件名",en:"Filename"},"saveDialog.format":{zh:"格式",en:"Format"},"saveDialog.chooseFormat":{zh:"选择格式",en:"Choose format"},"error.missingApiKey":{zh:"请先在设置中配置 API Key",en:"Please configure an API key in Settings first."}};function an(e,t,n){const r=Rte[t],i=r?r[e]:t;if(!n)return i;let a=i;for(const[o,s]of Object.entries(n))a=a.split(`{{${o}}}`).join(String(s));return a}const VB=[{id:"openai",label:"OpenAI",defaultBaseUrl:"https://api.openai.com/v1"},{id:"ollama",label:"Ollama",defaultBaseUrl:"http://localhost:11434/v1"},{id:"deepseek",label:"DeepSeek",defaultBaseUrl:"https://api.deepseek.com/v1"},{id:"kimi",label:"Kimi",defaultBaseUrl:"https://api.moonshot.cn/v1"},{id:"aliyun",label:"Alibaba Bailian"},{id:"tencent",label:"Tencent Hunyuan"},{id:"bytedance",label:"Bytedance Ark"},{id:"zhipu",label:"Zhipu"},{id:"baidu",label:"Baidu Qianfan"},{id:"minimax",label:"MiniMax"},{id:"xai",label:"xAI"},{id:"google",label:"Google"},{id:"anthropic",label:"Anthropic"}],GB=[{id:"openai",label:"OpenAI",defaultBaseUrl:"https://api.openai.com/v1"},{id:"aliyun",label:"Alibaba Wanx"},{id:"tencent",label:"Tencent Hunyuan Image"},{id:"bytedance",label:"Bytedance Seedream"},{id:"zhipu",label:"Zhipu"},{id:"google",label:"Google Imagen"},{id:"xai",label:"xAI"},{id:"bfl",label:"Black Forest Labs"},{id:"adobe",label:"Adobe Firefly"}];function C0(e,t){var r;return((r=(t==="text"?VB:GB).find(i=>i.id===e))==null?void 0:r.defaultBaseUrl)||""}function SE(e){return{provider:String(e.textProvider||"openai"),apiKey:String(e.textApiKey||e.apiKey||"").trim(),baseUrl:String(e.textBaseUrl||e.baseUrl||C0(String(e.textProvider||"openai"),"text")||"").trim(),model:String(e.textModel||e.chatModel||"").trim(),customMapping:String(e.textCustomMapping||"").trim()}}function Pte(e){return{provider:String(e.imageProvider||"openai"),apiKey:String(e.imageApiKey||e.apiKey||"").trim(),baseUrl:String(e.imageBaseUrl||e.baseUrl||C0(String(e.imageProvider||"openai"),"image")||"").trim(),model:String(e.imageModel||e.imageModelLegacy||"").trim(),customMapping:String(e.imageCustomMapping||"").trim()}}function Af(e){const t=e||{},n=String(t.textProvider||"openai").trim()||"openai",r=String(t.imageProvider||"openai").trim()||"openai",i=n==="custom"?"openai":n,a=r==="custom"?"openai":r,o=String(t.textApiKey||t.apiKey||"").trim(),s=String(t.imageApiKey||t.apiKey||"").trim(),l=String(t.textBaseUrl||t.baseUrl||C0(i,"text")||"").trim(),c=String(t.imageBaseUrl||t.baseUrl||C0(a,"image")||"").trim(),u=String(t.textModel||t.chatModel||"").trim(),d=String(t.imageModel||t.imageModelLegacy||"").trim();return{textProvider:i,textApiKey:o,textBaseUrl:l,textModel:u,textCustomMapping:"",imageProvider:a,imageApiKey:s,imageBaseUrl:c,imageModel:d,imageCustomMapping:"",fileParserApiToken:String(t.fileParserApiToken||"").trim(),systemPrompt:String(t.systemPrompt||"").trim(),apiKey:o,baseUrl:l,chatModel:u,imageModelLegacy:d}}const Yv={textProvider:"openai",textApiKey:"",textBaseUrl:"https://api.openai.com/v1",textModel:"gpt-4o-mini",textCustomMapping:"",imageProvider:"openai",imageApiKey:"",imageBaseUrl:"https://api.openai.com/v1",imageModel:"gpt-image-1",imageCustomMapping:"",fileParserApiToken:"",systemPrompt:"",apiKey:"",baseUrl:"https://api.openai.com/v1",chatModel:"gpt-4o-mini",imageModelLegacy:"gpt-image-1"},vT="unified_ai_workspace_config",Ite=30,qB=3,SP=1536,Mte=18e5,Ute=.86;function Lte(e){let t=0;const n=[],r=()=>{var i;for(;t<e&&n.length>0;){const a=n.shift();if((i=a.signal)!=null&&i.aborted){a.reject(Object.assign(new Error("Aborted"),{name:"AbortError"}));continue}t+=1,a.signal&&a.onAbort&&(a.signal.removeEventListener("abort",a.onAbort),a.onAbort=void 0);let o=!1,s=null;const l=()=>{o||(o=!0,a.signal&&s&&a.signal.removeEventListener("abort",s),t-=1,r())};a.signal&&(s=()=>{const c=Object.assign(new Error("Aborted"),{name:"AbortError"});a.reject(c),l()},a.signal.addEventListener("abort",s,{once:!0})),a.run().then(c=>{a.resolve(c),l()},c=>{a.reject(c),l()})}};return function(a,o){return o!=null&&o.aborted?Promise.reject(Object.assign(new Error("Aborted"),{name:"AbortError"})):new Promise((s,l)=>{const c={run:a,resolve:s,reject:l,signal:o};if(o){const u=()=>{const d=n.indexOf(c);d>=0&&n.splice(d,1),l(Object.assign(new Error("Aborted"),{name:"AbortError"}))};c.onAbort=u,o.addEventListener("abort",u,{once:!0})}n.push(c),r()})}}const kE=Lte(Ite);function Go(){if(typeof window>"u")return Yv;const e=localStorage.getItem(vT);if(e)try{return Af({...Yv,...JSON.parse(e)})}catch{try{localStorage.removeItem(vT)}catch{}return Yv}return Yv}function Ote(e){localStorage.setItem(vT,JSON.stringify(Af(e)))}const xT="UI_LANG_POLICY:";function jte(){return bs()==="en"?{role:"system",content:`${xT} uiLang=en-All assistant outputs must be in English.-- Do not output Chinese characters.-- If an agent must output code/JSON/XML only, keep the required format and keep any fixed identifiers/schema keys; write any human-readable strings in English unless the schema mandates otherwise.`}:{role:"system",content:`${xT} uiLang=zh-All assistant outputs must be in Simplified Chinese.-- Do not output English unless required for code, identifiers, proper nouns, or file paths.-- If an agent must output code/JSON/XML only, keep the required format and keep any fixed identifiers/schema keys; write any human-readable strings in Chinese unless the schema mandates otherwise.`}}function Bte(e){const t=(e||[]).filter(n=>!(n.role==="system"&&String(n.content||"").startsWith(xT)));return[jte(),...t]}async function Xi(e,t,n,r){const i=await ja(e,n,{signal:r});return t(i),i}async function zte(e){return await XB(e,qB)}async function ja(e,t,n){const r=typeof(n==null?void 0:n.timeoutMs)=="number"&&n.timeoutMs>0?n.timeoutMs:0,i=n==null?void 0:n.signal,a=typeof AbortController<"u"?new AbortController:null,o=(a==null?void 0:a.signal)||i;let s=null;a&&i&&(i.aborted?a.abort():i.addEventListener("abort",()=>a.abort(),{once:!0})),a&&r>0&&(s=setTimeout(()=>a.abort(),r));try{return await kE(async()=>{const l=Go(),c=SE(l);if(!c.apiKey)throw new Error(an(bs(),"error.missingApiKey"));try{const u=await TA({kind:"chat",aiConfig:l,messages:Bte(e),model:t||c.model},o||void 0);return String((u==null?void 0:u.content)||"")}catch(u){throw(u==null?void 0:u.name)==="AbortError"||(u==null?void 0:u.name)==="APIUserAbortError"||console.error("Chat Error:",u),u}},o)}finally{s&&clearTimeout(s)}}async function kP(e,t,n){const r=Go(),i=SE(r);if(!i.apiKey)throw new Error(an(bs(),"error.missingApiKey"));const a=await TA({kind:"chat",aiConfig:r,messages:e,model:t||i.model},n==null?void 0:n.signal);return String((a==null?void 0:a.content)||"")}async function DP(e,t,n,r,i){const a=i==null?void 0:i.signal,o=typeof AbortController<"u"?new AbortController:null,s=(o==null?void 0:o.signal)||a;try{return await kE(async()=>{const l=Go(),c=SE(l);if(!c.apiKey)throw new Error(an(bs(),"error.missingApiKey"));const u=await zte(n),d=[{type:"text",text:t}];for(const h of u)d.push({type:"image_url",image_url:{url:h}});try{const h=await TA({kind:"chat",aiConfig:l,messages:[{role:"system",content:e},{role:"user",content:d}],model:r||c.model},s||void 0);return String((h==null?void 0:h.content)||"")}catch(h){throw(h==null?void 0:h.name)==="AbortError"||(h==null?void 0:h.name)==="APIUserAbortError"||console.error("Vision Chat Error:",h),h}},s)}finally{}}async function TA(e,t){const n=await fetch("/api/ppt-ai",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),signal:t}),r=await n.text().catch(()=>"");let i=null;try{i=r?JSON.parse(r):null}catch{i=null}if(!n.ok){const a=String((i==null?void 0:i.error)||r||"").trim();throw new Error(a||`Proxy request failed with status ${n.status}`)}return i}function HB(e){return e&&(e.startsWith("http")||e.startsWith("data:image"))?e:null}async function Wte(e){if(typeof window>"u"||!e||!e.startsWith("blob:"))return null;try{const n=await(await fetch(e)).blob();return await new Promise(r=>{const i=new FileReader;i.onerror=()=>r(null),i.onloadend=()=>{const a=i.result;r(typeof a=="string"?a:null)},i.readAsDataURL(n)})}catch{return null}}function Vte(e){var n;const t=String(e||"").match(/^data:(image\/[a-zA-Z0-9.+-]+);base64,/i);return((n=t==null?void 0:t[1])==null?void 0:n.toLowerCase())||"image/png"}async function CP(e){return typeof window>"u"||typeof document>"u"||!String(e||"").startsWith("data:image")?e:await new Promise(t=>{const n=new Image;n.onload=()=>{try{const r=Number(n.naturalWidth||n.width||0),i=Number(n.naturalHeight||n.height||0);if(!r||!i){t(e);return}const a=Math.max(r,i),o=a>SP,s=e.length>Mte;if(!o&&!s){t(e);return}const l=o?SP/a:1,c=Math.max(1,Math.round(r*l)),u=Math.max(1,Math.round(i*l)),d=document.createElement("canvas");d.width=c,d.height=u;const h=d.getContext("2d");if(!h){t(e);return}h.imageSmoothingEnabled=!0,h.imageSmoothingQuality="high",h.drawImage(n,0,0,c,u);const f=Vte(e),g=f==="image/jpeg"||f==="image/jpg"||s?"image/jpeg":f,y=g==="image/jpeg"?d.toDataURL(g,Ute):d.toDataURL(g);t(y.length<e.length?y:e)}catch{t(e)}},n.onerror=()=>t(e),n.src=e})}async function bT(e){const t=String(e||"").trim();if(!t)return null;if(t.startsWith("blob:")){const n=await Wte(t);return n?await CP(n):null}return t.startsWith("data:image")?await CP(t):HB(t)}async function XB(e,t){const n=[];for(const r of e){if(n.length>=t)break;const i=await bT(r);!i||n.includes(i)||n.push(i)}return n}async function Bc(e,t){return await kE(async()=>{const n=Go(),r=Pte(n);if(!r.apiKey)throw new Error(an(bs(),"error.missingApiKey"));const i=e.referenceImageUrl?await bT(e.referenceImageUrl):null,a=e.maskImageUrl?await bT(e.maskImageUrl):null,o=await XB(Array.isArray(e.additionalReferenceImageUrls)?e.additionalReferenceImageUrls:[],Math.max(0,qB-(i?1:0)));try{const s=await TA({kind:"image",aiConfig:n,prompt:e.prompt,referenceImageUrl:i||void 0,additionalReferenceImageUrls:o,maskImageUrl:a||void 0,model:r.model},t);return HB(String((s==null?void 0:s.url)||""))}catch(s){throw console.error("Image Gen Error:",s),s}},t)}function AT(e,[t,n]){return Math.min(n,Math.max(t,e))}function en(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Gte(e,t){const n=N.createContext(t),r=a=>{const{children:o,...s}=a,l=N.useMemo(()=>s,Object.values(s));return m.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function i(a){const o=N.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,i]}function dc(e,t=[]){let n=[];function r(a,o){const s=N.createContext(o),l=n.length;n=[...n,o];const c=d=>{var A;const{scope:h,children:f,...g}=d,y=((A=h==null?void 0:h[e])==null?void 0:A[l])||s,v=N.useMemo(()=>g,Object.values(g));return m.jsx(y.Provider,{value:v,children:f})};c.displayName=a+"Provider";function u(d,h){var y;const f=((y=h==null?void 0:h[e])==null?void 0:y[l])||s,g=N.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[c,u]}const i=()=>{const a=n.map(o=>N.createContext(o));return function(s){const l=(s==null?void 0:s[e])||a;return N.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[r,qte(i,...t)]}function qte(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...s,...d}},{});return N.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function TP(e){const t=Hte(e),n=N.forwardRef((r,i)=>{const{children:a,...o}=r,s=N.Children.toArray(a),l=s.find(Zte);if(l){const c=l.props.children,u=s.map(d=>d===l?N.Children.count(c)>1?N.Children.only(null):N.isValidElement(c)?c.props.children:null:d);return m.jsx(t,{...o,ref:i,children:N.isValidElement(c)?N.cloneElement(c,void 0,u):null})}return m.jsx(t,{...o,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function Hte(e){const t=N.forwardRef((n,r)=>{const{children:i,...a}=n;if(N.isValidElement(i)){const o=$te(i),s=Kte(a,i.props);return i.type!==N.Fragment&&(s.ref=r?fd(r,o):o),N.cloneElement(i,s)}return N.Children.count(i)>1?N.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xte=Symbol("radix.slottable");function Zte(e){return N.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xte}function Kte(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function $te(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function DE(e){const t=e+"CollectionProvider",[n,r]=dc(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=y=>{const{scope:v,children:A}=y,w=Dt.useRef(null),S=Dt.useRef(new Map).current;return m.jsx(i,{scope:v,itemMap:S,collectionRef:w,children:A})};o.displayName=t;const s=e+"CollectionSlot",l=TP(s),c=Dt.forwardRef((y,v)=>{const{scope:A,children:w}=y,S=a(s,A),_=Hr(v,S.collectionRef);return m.jsx(l,{ref:_,children:w})});c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=TP(u),f=Dt.forwardRef((y,v)=>{const{scope:A,children:w,...S}=y,_=Dt.useRef(null),E=Hr(v,_),T=a(u,A);return Dt.useEffect(()=>(T.itemMap.set(_,{ref:_,...S}),()=>void T.itemMap.delete(_))),m.jsx(h,{[d]:"",ref:E,children:w})});f.displayName=u;function g(y){const v=a(e+"CollectionConsumer",y);return Dt.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const S=Array.from(w.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((T,D)=>S.indexOf(T.ref.current)-S.indexOf(D.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},g,r]}var Yte=N.createContext(void 0);function _A(e){const t=N.useContext(Yte);return e||t||"ltr"}function Jte(e){const t=Qte(e),n=N.forwardRef((r,i)=>{const{children:a,...o}=r,s=N.Children.toArray(a),l=s.find(tne);if(l){const c=l.props.children,u=s.map(d=>d===l?N.Children.count(c)>1?N.Children.only(null):N.isValidElement(c)?c.props.children:null:d);return m.jsx(t,{...o,ref:i,children:N.isValidElement(c)?N.cloneElement(c,void 0,u):null})}return m.jsx(t,{...o,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function Qte(e){const t=N.forwardRef((n,r)=>{const{children:i,...a}=n;if(N.isValidElement(i)){const o=rne(i),s=nne(a,i.props);return i.type!==N.Fragment&&(s.ref=r?fd(r,o):o),N.cloneElement(i,s)}return N.Children.count(i)>1?N.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ene=Symbol("radix.slottable");function tne(e){return N.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ene}function nne(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function rne(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ine=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Dr=ine.reduce((e,t)=>{const n=Jte(`Primitive.${t}`),r=N.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ZB(e,t){e&&dg.flushSync(()=>e.dispatchEvent(t))}function za(e){const t=N.useRef(e);return N.useEffect(()=>{t.current=e}),N.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function ane(e,t=globalThis==null?void 0:globalThis.document){const n=za(e);N.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var one="DismissableLayer",wT="dismissableLayer.update",sne="dismissableLayer.pointerDownOutside",lne="dismissableLayer.focusOutside",_P,KB=N.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dy=N.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...l}=e,c=N.useContext(KB),[u,d]=N.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=N.useState({}),g=Hr(t,D=>d(D)),y=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),A=y.indexOf(v),w=u?y.indexOf(u):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,_=w>=A,E=dne(D=>{const I=D.target,j=[...c.branches].some(R=>R.contains(I));!_||j||(i==null||i(D),o==null||o(D),D.defaultPrevented||s==null||s())},h),T=fne(D=>{const I=D.target;[...c.branches].some(R=>R.contains(I))||(a==null||a(D),o==null||o(D),D.defaultPrevented||s==null||s())},h);return ane(D=>{w===c.layers.size-1&&(r==null||r(D),!D.defaultPrevented&&s&&(D.preventDefault(),s()))},h),N.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(_P=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),EP(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=_P)}},[u,h,n,c]),N.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),EP())},[u,c]),N.useEffect(()=>{const D=()=>f({});return document.addEventListener(wT,D),()=>document.removeEventListener(wT,D)},[]),m.jsx(Dr.div,{...l,ref:g,style:{pointerEvents:S?_?"auto":"none":void 0,...e.style},onFocusCapture:en(e.onFocusCapture,T.onFocusCapture),onBlurCapture:en(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:en(e.onPointerDownCapture,E.onPointerDownCapture)})});dy.displayName=one;var cne="DismissableLayerBranch",une=N.forwardRef((e,t)=>{const n=N.useContext(KB),r=N.useRef(null),i=Hr(t,r);return N.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),m.jsx(Dr.div,{...e,ref:i})});une.displayName=cne;function dne(e,t=globalThis==null?void 0:globalThis.document){const n=za(e),r=N.useRef(!1),i=N.useRef(()=>{});return N.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let l=function(){$B(sne,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function fne(e,t=globalThis==null?void 0:globalThis.document){const n=za(e),r=N.useRef(!1);return N.useEffect(()=>{const i=a=>{a.target&&!r.current&&$B(lne,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function EP(){const e=new CustomEvent(wT);document.dispatchEvent(e)}function $B(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ZB(i,a):i.dispatchEvent(a)}var HS=0;function CE(){N.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??NP()),document.body.insertAdjacentElement("beforeend",e[1]??NP()),HS++,()=>{HS===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),HS--}},[])}function NP(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var XS="focusScope.autoFocusOnMount",ZS="focusScope.autoFocusOnUnmount",FP={bubbles:!1,cancelable:!0},hne="FocusScope",EA=N.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,l]=N.useState(null),c=za(i),u=za(a),d=N.useRef(null),h=Hr(t,y=>l(y)),f=N.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;N.useEffect(()=>{if(r){let y=function(S){if(f.paused||!s)return;const _=S.target;s.contains(_)?d.current=_:_u(d.current,{select:!0})},v=function(S){if(f.paused||!s)return;const _=S.relatedTarget;_!==null&&(s.contains(_)||_u(d.current,{select:!0}))},A=function(S){if(document.activeElement===document.body)for(const E of S)E.removedNodes.length>0&&_u(s)};document.addEventListener("focusin",y),document.addEventListener("focusout",v);const w=new MutationObserver(A);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),w.disconnect()}}},[r,s,f.paused]),N.useEffect(()=>{if(s){PP.add(f);const y=document.activeElement;if(!s.contains(y)){const A=new CustomEvent(XS,FP);s.addEventListener(XS,c),s.dispatchEvent(A),A.defaultPrevented||(pne(xne(YB(s)),{select:!0}),document.activeElement===y&&_u(s))}return()=>{s.removeEventListener(XS,c),setTimeout(()=>{const A=new CustomEvent(ZS,FP);s.addEventListener(ZS,u),s.dispatchEvent(A),A.defaultPrevented||_u(y??document.body,{select:!0}),s.removeEventListener(ZS,u),PP.remove(f)},0)}}},[s,c,u,f]);const g=N.useCallback(y=>{if(!n&&!r||f.paused)return;const v=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,A=document.activeElement;if(v&&A){const w=y.currentTarget,[S,_]=gne(w);S&&_?!y.shiftKey&&A===_?(y.preventDefault(),n&&_u(S,{select:!0})):y.shiftKey&&A===S&&(y.preventDefault(),n&&_u(_,{select:!0})):A===w&&y.preventDefault()}},[n,r,f.paused]);return m.jsx(Dr.div,{tabIndex:-1,...o,ref:h,onKeyDown:g})});EA.displayName=hne;function pne(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(_u(r,{select:t}),document.activeElement!==n)return}function gne(e){const t=YB(e),n=RP(t,e),r=RP(t.reverse(),e);return[n,r]}function YB(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function RP(e,t){for(const n of e)if(!mne(n,{upTo:t}))return n}function mne(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function yne(e){return e instanceof HTMLInputElement&&"select"in e}function _u(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&yne(e)&&t&&e.select()}}var PP=vne();function vne(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=IP(e,t),e.unshift(t)},remove(t){var n;e=IP(e,t),(n=e[0])==null||n.resume()}}}function IP(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function xne(e){return e.filter(t=>t.tagName!=="A")}var Ga=globalThis!=null&&globalThis.document?N.useLayoutEffect:()=>{},bne=wA[" useId ".trim().toString()]||(()=>{}),Ane=0;function zc(e){const[t,n]=N.useState(bne());return Ga(()=>{n(r=>r??String(Ane++))},[e]),e||(t?`radix-${t}`:"")}const wne=["top","right","bottom","left"],$u=Math.min,hs=Math.max,f1=Math.round,Jv=Math.floor,ac=e=>({x:e,y:e}),Sne={left:"right",right:"left",bottom:"top",top:"bottom"},kne={start:"end",end:"start"};function ST(e,t,n){return hs(e,$u(t,n))}function Hc(e,t){return typeof e=="function"?e(t):e}function Xc(e){return e.split("-")[0]}function gg(e){return e.split("-")[1]}function TE(e){return e==="x"?"y":"x"}function _E(e){return e==="y"?"height":"width"}const Dne=new Set(["top","bottom"]);function ic(e){return Dne.has(Xc(e))?"y":"x"}function EE(e){return TE(ic(e))}function Cne(e,t,n){n===void 0&&(n=!1);const r=gg(e),i=EE(e),a=_E(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=h1(o)),[o,h1(o)]}function Tne(e){const t=h1(e);return[kT(e),t,kT(t)]}function kT(e){return e.replace(/start|end/g,t=>kne[t])}const MP=["left","right"],UP=["right","left"],_ne=["top","bottom"],Ene=["bottom","top"];function Nne(e,t,n){switch(e){case"top":case"bottom":return n?t?UP:MP:t?MP:UP;case"left":case"right":return t?_ne:Ene;default:return[]}}function Fne(e,t,n,r){const i=gg(e);let a=Nne(Xc(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(kT)))),a}function h1(e){return e.replace(/left|right|bottom|top/g,t=>Sne[t])}function Rne(e){return{top:0,right:0,bottom:0,left:0,...e}}function JB(e){return typeof e!="number"?Rne(e):{top:e,right:e,bottom:e,left:e}}function p1(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function LP(e,t,n){let{reference:r,floating:i}=e;const a=ic(t),o=EE(t),s=_E(o),l=Xc(t),c=a==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-i.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch(gg(t)){case"start":f[o]-=h*(n&&c?-1:1);break;case"end":f[o]+=h*(n&&c?-1:1);break}return f}const Pne=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=LP(c,r,l),h=r,f={},g=0;for(let y=0;y<s.length;y++){const{name:v,fn:A}=s[y],{x:w,y:S,data:_,reset:E}=await A({x:u,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:c,platform:o,elements:{reference:e,floating:t}});u=w??u,d=S??d,f={...f,[v]:{...f[v],..._}},E&&g<=50&&(g++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(c=E.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:u,y:d}=LP(c,h,l)),y=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:f}};async function T0(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=Hc(t,e),g=JB(f),v=s[h?d==="floating"?"reference":"floating":d],A=p1(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),w=d==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),_=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},E=p1(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:S,strategy:l}):w);return{top:(A.top-E.top+g.top)/_.y,bottom:(E.bottom-A.bottom+g.bottom)/_.y,left:(A.left-E.left+g.left)/_.x,right:(E.right-A.right+g.right)/_.x}}const Ine=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Hc(e,t)||{};if(c==null)return{};const d=JB(u),h={x:n,y:r},f=EE(i),g=_E(f),y=await o.getDimensions(c),v=f==="y",A=v?"top":"left",w=v?"bottom":"right",S=v?"clientHeight":"clientWidth",_=a.reference[g]+a.reference[f]-h[f]-a.floating[g],E=h[f]-a.reference[f],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let D=T?T[S]:0;(!D||!await(o.isElement==null?void 0:o.isElement(T)))&&(D=s.floating[S]||a.floating[g]);const I=_/2-E/2,j=D/2-y[g]/2-1,R=$u(d[A],j),z=$u(d[w],j),B=R,W=D-y[g]-z,P=D/2-y[g]/2+I,Z=ST(B,P,W),Q=!l.arrow&&gg(i)!=null&&P!==Z&&a.reference[g]/2-(P<B?R:z)-y[g]/2<0,X=Q?P<B?P-B:P-W:0;return{[f]:h[f]+X,data:{[f]:Z,centerOffset:P-Z-X,...Q&&{alignmentOffset:X}},reset:Q}}}),Mne=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...v}=Hc(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const A=Xc(i),w=ic(s),S=Xc(s)===s,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=h||(S||!y?[h1(s)]:Tne(s)),T=g!=="none";!h&&T&&E.push(...Fne(s,y,g,_));const D=[s,...E],I=await T0(t,v),j=[];let R=((r=a.flip)==null?void 0:r.overflows)||[];if(u&&j.push(I[A]),d){const P=Cne(i,o,_);j.push(I[P[0]],I[P[1]])}if(R=[...R,{placement:i,overflows:j}],!j.every(P=>P<=0)){var z,B;const P=(((z=a.flip)==null?void 0:z.index)||0)+1,Z=D[P];if(Z&&(!(d==="alignment"?w!==ic(Z):!1)||R.every(q=>ic(q.placement)===w?q.overflows[0]>0:!0)))return{data:{index:P,overflows:R},reset:{placement:Z}};let Q=(B=R.filter(X=>X.overflows[0]<=0).sort((X,q)=>X.overflows[1]-q.overflows[1])[0])==null?void 0:B.placement;if(!Q)switch(f){case"bestFit":{var W;const X=(W=R.filter(q=>{if(T){const te=ic(q.placement);return te===w||te==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(te=>te>0).reduce((te,J)=>te+J,0)]).sort((q,te)=>q[1]-te[1])[0])==null?void 0:W[0];X&&(Q=X);break}case"initialPlacement":Q=s;break}if(i!==Q)return{reset:{placement:Q}}}return{}}}};function OP(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jP(e){return wne.some(t=>e[t]>=0)}const Une=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Hc(e,t);switch(r){case"referenceHidden":{const a=await T0(t,{...i,elementContext:"reference"}),o=OP(a,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:jP(o)}}}case"escaped":{const a=await T0(t,{...i,altBoundary:!0}),o=OP(a,n.floating);return{data:{escapedOffsets:o,escaped:jP(o)}}}default:return{}}}}},QB=new Set(["left","top"]);async function Lne(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Xc(n),s=gg(n),l=ic(n)==="y",c=QB.has(o)?-1:1,u=a&&l?-1:1,d=Hc(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(f=s==="end"?g*-1:g),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}const One=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await Lne(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},jne=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:v=>{let{x:A,y:w}=v;return{x:A,y:w}}},...l}=Hc(e,t),c={x:n,y:r},u=await T0(t,l),d=ic(Xc(i)),h=TE(d);let f=c[h],g=c[d];if(a){const v=h==="y"?"top":"left",A=h==="y"?"bottom":"right",w=f+u[v],S=f-u[A];f=ST(w,f,S)}if(o){const v=d==="y"?"top":"left",A=d==="y"?"bottom":"right",w=g+u[v],S=g-u[A];g=ST(w,g,S)}const y=s.fn({...t,[h]:f,[d]:g});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[h]:a,[d]:o}}}}}},Bne=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Hc(e,t),u={x:n,y:r},d=ic(i),h=TE(d);let f=u[h],g=u[d];const y=Hc(s,t),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const S=h==="y"?"height":"width",_=a.reference[h]-a.floating[S]+v.mainAxis,E=a.reference[h]+a.reference[S]-v.mainAxis;f<_?f=_:f>E&&(f=E)}if(c){var A,w;const S=h==="y"?"width":"height",_=QB.has(Xc(i)),E=a.reference[d]-a.floating[S]+(_&&((A=o.offset)==null?void 0:A[d])||0)+(_?0:v.crossAxis),T=a.reference[d]+a.reference[S]+(_?0:((w=o.offset)==null?void 0:w[d])||0)-(_?v.crossAxis:0);g<E?g=E:g>T&&(g=T)}return{[h]:f,[d]:g}}}},zne=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:o,elements:s}=t,{apply:l=()=>{},...c}=Hc(e,t),u=await T0(t,c),d=Xc(i),h=gg(i),f=ic(i)==="y",{width:g,height:y}=a.floating;let v,A;d==="top"||d==="bottom"?(v=d,A=h===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(A=d,v=h==="end"?"top":"bottom");const w=y-u.top-u.bottom,S=g-u.left-u.right,_=$u(y-u[v],w),E=$u(g-u[A],S),T=!t.middlewareData.shift;let D=_,I=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=w),T&&!h){const R=hs(u.left,0),z=hs(u.right,0),B=hs(u.top,0),W=hs(u.bottom,0);f?I=g-2*(R!==0||z!==0?R+z:hs(u.left,u.right)):D=y-2*(B!==0||W!==0?B+W:hs(u.top,u.bottom))}await l({...t,availableWidth:I,availableHeight:D});const j=await o.getDimensions(s.floating);return g!==j.width||y!==j.height?{reset:{rects:!0}}:{}}}};function NA(){return typeof window<"u"}function mg(e){return ez(e)?(e.nodeName||"").toLowerCase():"#document"}function ys(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fc(e){var t;return(t=(ez(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ez(e){return NA()?e instanceof Node||e instanceof ys(e).Node:!1}function Ll(e){return NA()?e instanceof Element||e instanceof ys(e).Element:!1}function lc(e){return NA()?e instanceof HTMLElement||e instanceof ys(e).HTMLElement:!1}function BP(e){return!NA()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ys(e).ShadowRoot}const Wne=new Set(["inline","contents"]);function fy(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ol(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Wne.has(i)}const Vne=new Set(["table","td","th"]);function Gne(e){return Vne.has(mg(e))}const qne=[":popover-open",":modal"];function FA(e){return qne.some(t=>{try{return e.matches(t)}catch{return!1}})}const Hne=["transform","translate","scale","rotate","perspective"],Xne=["transform","translate","scale","rotate","perspective","filter"],Zne=["paint","layout","strict","content"];function NE(e){const t=FE(),n=Ll(e)?Ol(e):e;return Hne.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Xne.some(r=>(n.willChange||"").includes(r))||Zne.some(r=>(n.contain||"").includes(r))}function Kne(e){let t=Yu(e);for(;lc(t)&&!$p(t);){if(NE(t))return t;if(FA(t))return null;t=Yu(t)}return null}function FE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const $ne=new Set(["html","body","#document"]);function $p(e){return $ne.has(mg(e))}function Ol(e){return ys(e).getComputedStyle(e)}function RA(e){return Ll(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yu(e){if(mg(e)==="html")return e;const t=e.assignedSlot||e.parentNode||BP(e)&&e.host||fc(e);return BP(t)?t.host:t}function tz(e){const t=Yu(e);return $p(t)?e.ownerDocument?e.ownerDocument.body:e.body:lc(t)&&fy(t)?t:tz(t)}function _0(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=tz(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=ys(i);if(a){const s=DT(o);return t.concat(o,o.visualViewport||[],fy(i)?i:[],s&&n?_0(s):[])}return t.concat(i,_0(i,[],n))}function DT(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nz(e){const t=Ol(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=lc(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=f1(n)!==a||f1(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function RE(e){return Ll(e)?e:e.contextElement}function Lp(e){const t=RE(e);if(!lc(t))return ac(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=nz(t);let o=(a?f1(n.width):n.width)/r,s=(a?f1(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Yne=ac(0);function rz(e){const t=ys(e);return!FE()||!t.visualViewport?Yne:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jne(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ys(e)?!1:t}function Uf(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=RE(e);let o=ac(1);t&&(r?Ll(r)&&(o=Lp(r)):o=Lp(e));const s=Jne(a,n,r)?rz(a):ac(0);let l=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){const h=ys(a),f=r&&Ll(r)?ys(r):r;let g=h,y=DT(g);for(;y&&r&&f!==g;){const v=Lp(y),A=y.getBoundingClientRect(),w=Ol(y),S=A.left+(y.clientLeft+parseFloat(w.paddingLeft))*v.x,_=A.top+(y.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=S,c+=_,g=ys(y),y=DT(g)}}return p1({width:u,height:d,x:l,y:c})}function PA(e,t){const n=RA(e).scrollLeft;return t?t.left+n:Uf(fc(e)).left+n}function iz(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-PA(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Qne(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=fc(r),s=t?FA(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=ac(1);const u=ac(0),d=lc(r);if((d||!d&&!a)&&((mg(r)!=="body"||fy(o))&&(l=RA(r)),lc(r))){const f=Uf(r);c=Lp(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}const h=o&&!d&&!a?iz(o,l):ac(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function ere(e){return Array.from(e.getClientRects())}function tre(e){const t=fc(e),n=RA(e),r=e.ownerDocument.body,i=hs(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=hs(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+PA(e);const s=-n.scrollTop;return Ol(r).direction==="rtl"&&(o+=hs(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}const zP=25;function nre(e,t){const n=ys(e),r=fc(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const u=FE();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const c=PA(r);if(c<=0){const u=r.ownerDocument,d=u.body,h=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-f);g<=zP&&(a-=g)}else c<=zP&&(a+=c);return{width:a,height:o,x:s,y:l}}const rre=new Set(["absolute","fixed"]);function ire(e,t){const n=Uf(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=lc(e)?Lp(e):ac(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,c=r*a.y;return{width:o,height:s,x:l,y:c}}function WP(e,t,n){let r;if(t==="viewport")r=nre(e,n);else if(t==="document")r=tre(fc(e));else if(Ll(t))r=ire(t,n);else{const i=rz(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return p1(r)}function az(e,t){const n=Yu(e);return n===t||!Ll(n)||$p(n)?!1:Ol(n).position==="fixed"||az(n,t)}function are(e,t){const n=t.get(e);if(n)return n;let r=_0(e,[],!1).filter(s=>Ll(s)&&mg(s)!=="body"),i=null;const a=Ol(e).position==="fixed";let o=a?Yu(e):e;for(;Ll(o)&&!$p(o);){const s=Ol(o),l=NE(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&rre.has(i.position)||fy(o)&&!l&&az(e,o))?r=r.filter(u=>u!==o):i=s,o=Yu(o)}return t.set(e,r),r}function ore(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?FA(t)?[]:are(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((c,u)=>{const d=WP(t,u,i);return c.top=hs(d.top,c.top),c.right=$u(d.right,c.right),c.bottom=$u(d.bottom,c.bottom),c.left=hs(d.left,c.left),c},WP(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function sre(e){const{width:t,height:n}=nz(e);return{width:t,height:n}}function lre(e,t,n){const r=lc(t),i=fc(t),a=n==="fixed",o=Uf(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=ac(0);function c(){l.x=PA(i)}if(r||!r&&!a)if((mg(t)!=="body"||fy(i))&&(s=RA(t)),r){const f=Uf(t,!0,a,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&c();a&&!r&&i&&c();const u=i&&!r&&!a?iz(i,s):ac(0),d=o.left+s.scrollLeft-l.x-u.x,h=o.top+s.scrollTop-l.y-u.y;return{x:d,y:h,width:o.width,height:o.height}}function KS(e){return Ol(e).position==="static"}function VP(e,t){if(!lc(e)||Ol(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fc(e)===n&&(n=n.ownerDocument.body),n}function oz(e,t){const n=ys(e);if(FA(e))return n;if(!lc(e)){let i=Yu(e);for(;i&&!$p(i);){if(Ll(i)&&!KS(i))return i;i=Yu(i)}return n}let r=VP(e,t);for(;r&&Gne(r)&&KS(r);)r=VP(r,t);return r&&$p(r)&&KS(r)&&!NE(r)?n:r||Kne(e)||n}const cre=async function(e){const t=this.getOffsetParent||oz,n=this.getDimensions,r=await n(e.floating);return{reference:lre(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ure(e){return Ol(e).direction==="rtl"}const dre={convertOffsetParentRelativeRectToViewportRelativeRect:Qne,getDocumentElement:fc,getClippingRect:ore,getOffsetParent:oz,getElementRects:cre,getClientRects:ere,getDimensions:sre,getScale:Lp,isElement:Ll,isRTL:ure};function sz(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fre(e,t){let n=null,r;const i=fc(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:f}=c;if(s||t(),!h||!f)return;const g=Jv(d),y=Jv(i.clientWidth-(u+h)),v=Jv(i.clientHeight-(d+f)),A=Jv(u),S={rootMargin:-g+"px "+-y+"px "+-v+"px "+-A+"px",threshold:hs(0,$u(1,l))||1};let _=!0;function E(T){const D=T[0].intersectionRatio;if(D!==l){if(!_)return o();D?o(!1,D):r=setTimeout(()=>{o(!1,1e-7)},1e3)}D===1&&!sz(c,e.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(E,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,S)}n.observe(e)}return o(!0),a}function hre(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=RE(e),u=i||a?[...c?_0(c):[],..._0(t)]:[];u.forEach(A=>{i&&A.addEventListener("scroll",n,{passive:!0}),a&&A.addEventListener("resize",n)});const d=c&&s?fre(c,n):null;let h=-1,f=null;o&&(f=new ResizeObserver(A=>{let[w]=A;w&&w.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var S;(S=f)==null||S.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let g,y=l?Uf(e):null;l&&v();function v(){const A=Uf(e);y&&!sz(y,A)&&n(),y=A,g=requestAnimationFrame(v)}return n(),()=>{var A;u.forEach(w=>{i&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),d==null||d(),(A=f)==null||A.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const pre=One,gre=jne,mre=Mne,yre=zne,vre=Une,GP=Ine,xre=Bne,bre=(e,t,n)=>{const r=new Map,i={platform:dre,...n},a={...i.platform,_c:r};return Pne(e,t,{...i,platform:a})};var Are=typeof document<"u",wre=function(){},mb=Are?N.useLayoutEffect:wre;function g1(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!g1(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!g1(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function lz(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qP(e,t){const n=lz(e);return Math.round(t*n)/n}function $S(e){const t=N.useRef(e);return mb(()=>{t.current=e}),t}function Sre(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=N.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=N.useState(r);g1(h,r)||f(r);const[g,y]=N.useState(null),[v,A]=N.useState(null),w=N.useCallback(q=>{q!==T.current&&(T.current=q,y(q))},[]),S=N.useCallback(q=>{q!==D.current&&(D.current=q,A(q))},[]),_=a||g,E=o||v,T=N.useRef(null),D=N.useRef(null),I=N.useRef(u),j=l!=null,R=$S(l),z=$S(i),B=$S(c),W=N.useCallback(()=>{if(!T.current||!D.current)return;const q={placement:t,strategy:n,middleware:h};z.current&&(q.platform=z.current),bre(T.current,D.current,q).then(te=>{const J={...te,isPositioned:B.current!==!1};P.current&&!g1(I.current,J)&&(I.current=J,dg.flushSync(()=>{d(J)}))})},[h,t,n,z,B]);mb(()=>{c===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,d(q=>({...q,isPositioned:!1})))},[c]);const P=N.useRef(!1);mb(()=>(P.current=!0,()=>{P.current=!1}),[]),mb(()=>{if(_&&(T.current=_),E&&(D.current=E),_&&E){if(R.current)return R.current(_,E,W);W()}},[_,E,W,R,j]);const Z=N.useMemo(()=>({reference:T,floating:D,setReference:w,setFloating:S}),[w,S]),Q=N.useMemo(()=>({reference:_,floating:E}),[_,E]),X=N.useMemo(()=>{const q={position:n,left:0,top:0};if(!Q.floating)return q;const te=qP(Q.floating,u.x),J=qP(Q.floating,u.y);return s?{...q,transform:"translate("+te+"px, "+J+"px)",...lz(Q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:J}},[n,s,Q.floating,u.x,u.y]);return N.useMemo(()=>({...u,update:W,refs:Z,elements:Q,floatingStyles:X}),[u,W,Z,Q,X])}const kre=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?GP({element:r.current,padding:i}).fn(n):{}:r?GP({element:r,padding:i}).fn(n):{}}}},Dre=(e,t)=>({...pre(e),options:[e,t]}),Cre=(e,t)=>({...gre(e),options:[e,t]}),Tre=(e,t)=>({...xre(e),options:[e,t]}),_re=(e,t)=>({...mre(e),options:[e,t]}),Ere=(e,t)=>({...yre(e),options:[e,t]}),Nre=(e,t)=>({...vre(e),options:[e,t]}),Fre=(e,t)=>({...kre(e),options:[e,t]});var Rre="Arrow",cz=N.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...a}=e;return m.jsx(Dr.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});cz.displayName=Rre;var Pre=cz;function Ire(e){const[t,n]=N.useState(void 0);return Ga(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,s=c.blockSize}else o=e.offsetWidth,s=e.offsetHeight;n({width:o,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var PE="Popper",[uz,yg]=dc(PE),[Mre,dz]=uz(PE),fz=e=>{const{__scopePopper:t,children:n}=e,[r,i]=N.useState(null);return m.jsx(Mre,{scope:t,anchor:r,onAnchorChange:i,children:n})};fz.displayName=PE;var hz="PopperAnchor",pz=N.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=dz(hz,n),o=N.useRef(null),s=Hr(t,o),l=N.useRef(null);return N.useEffect(()=>{const c=l.current;l.current=(r==null?void 0:r.current)||o.current,c!==l.current&&a.onAnchorChange(l.current)}),r?null:m.jsx(Dr.div,{...i,ref:s})});pz.displayName=hz;var IE="PopperContent",[Ure,Lre]=uz(IE),gz=N.forwardRef((e,t)=>{var ce,ye,Fe,Oe,Le,Re;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:f="optimized",onPlaced:g,...y}=e,v=dz(IE,n),[A,w]=N.useState(null),S=Hr(t,We=>w(We)),[_,E]=N.useState(null),T=Ire(_),D=(T==null?void 0:T.width)??0,I=(T==null?void 0:T.height)??0,j=r+(a!=="center"?"-"+a:""),R=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},z=Array.isArray(c)?c:[c],B=z.length>0,W={padding:R,boundary:z.filter(jre),altBoundary:B},{refs:P,floatingStyles:Z,placement:Q,isPositioned:X,middlewareData:q}=Sre({strategy:"fixed",placement:j,whileElementsMounted:(...We)=>hre(...We,{animationFrame:f==="always"}),elements:{reference:v.anchor},middleware:[Dre({mainAxis:i+I,alignmentAxis:o}),l&&Cre({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Tre():void 0,...W}),l&&_re({...W}),Ere({...W,apply:({elements:We,rects:V,availableWidth:ve,availableHeight:oe})=>{const{width:re,height:ne}=V.reference,be=We.floating.style;be.setProperty("--radix-popper-available-width",`${ve}px`),be.setProperty("--radix-popper-available-height",`${oe}px`),be.setProperty("--radix-popper-anchor-width",`${re}px`),be.setProperty("--radix-popper-anchor-height",`${ne}px`)}}),_&&Fre({element:_,padding:s}),Bre({arrowWidth:D,arrowHeight:I}),h&&Nre({strategy:"referenceHidden",...W})]}),[te,J]=vz(Q),ee=za(g);Ga(()=>{X&&(ee==null||ee())},[X,ee]);const le=(ce=q.arrow)==null?void 0:ce.x,G=(ye=q.arrow)==null?void 0:ye.y,xe=((Fe=q.arrow)==null?void 0:Fe.centerOffset)!==0,[ge,ue]=N.useState();return Ga(()=>{A&&ue(window.getComputedStyle(A).zIndex)},[A]),m.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:X?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(Oe=q.transformOrigin)==null?void 0:Oe.x,(Le=q.transformOrigin)==null?void 0:Le.y].join(" "),...((Re=q.hide)==null?void 0:Re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(Ure,{scope:n,placedSide:te,onArrowChange:E,arrowX:le,arrowY:G,shouldHideArrow:xe,children:m.jsx(Dr.div,{"data-side":te,"data-align":J,...y,ref:S,style:{...y.style,animation:X?void 0:"none"}})})})});gz.displayName=IE;var mz="PopperArrow",Ore={top:"bottom",right:"left",bottom:"top",left:"right"},yz=N.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,a=Lre(mz,r),o=Ore[a.placedSide];return m.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:m.jsx(Pre,{...i,ref:n,style:{...i.style,display:"block"}})})});yz.displayName=mz;function jre(e){return e!==null}var Bre=e=>({name:"transformOrigin",options:e,fn(t){var v,A,w;const{placement:n,rects:r,middlewareData:i}=t,o=((v=i.arrow)==null?void 0:v.centerOffset)!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=vz(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(((A=i.arrow)==null?void 0:A.x)??0)+s/2,f=(((w=i.arrow)==null?void 0:w.y)??0)+l/2;let g="",y="";return c==="bottom"?(g=o?d:`${h}px`,y=`${-l}px`):c==="top"?(g=o?d:`${h}px`,y=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,y=o?d:`${f}px`):c==="left"&&(g=`${r.floating.width+l}px`,y=o?d:`${f}px`),{data:{x:g,y}}}});function vz(e){const[t,n="center"]=e.split("-");return[t,n]}var ME=fz,UE=pz,LE=gz,OE=yz,zre="Portal",hy=N.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[i,a]=N.useState(!1);Ga(()=>a(!0),[]);const o=n||i&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return o?vB.createPortal(m.jsx(Dr.div,{...r,ref:t}),o):null});hy.displayName=zre;function Wre(e){const t=Vre(e),n=N.forwardRef((r,i)=>{const{children:a,...o}=r,s=N.Children.toArray(a),l=s.find(qre);if(l){const c=l.props.children,u=s.map(d=>d===l?N.Children.count(c)>1?N.Children.only(null):N.isValidElement(c)?c.props.children:null:d);return m.jsx(t,{...o,ref:i,children:N.isValidElement(c)?N.cloneElement(c,void 0,u):null})}return m.jsx(t,{...o,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function Vre(e){const t=N.forwardRef((n,r)=>{const{children:i,...a}=n;if(N.isValidElement(i)){const o=Xre(i),s=Hre(a,i.props);return i.type!==N.Fragment&&(s.ref=r?fd(r,o):o),N.cloneElement(i,s)}return N.Children.count(i)>1?N.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gre=Symbol("radix.slottable");function qre(e){return N.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Gre}function Hre(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function Xre(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Zre=wA[" useInsertionEffect ".trim().toString()]||Ga;function tl({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,a,o]=Kre({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:i;{const u=N.useRef(e!==void 0);N.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,r])}const c=N.useCallback(u=>{var d;if(s){const h=$re(u)?u(e):u;h!==e&&((d=o.current)==null||d.call(o,h))}else a(u)},[s,e,a,o]);return[l,c]}function Kre({defaultProp:e,onChange:t}){const[n,r]=N.useState(e),i=N.useRef(n),a=N.useRef(t);return Zre(()=>{a.current=t},[t]),N.useEffect(()=>{var o;i.current!==n&&((o=a.current)==null||o.call(a,n),i.current=n)},[n,i]),[n,r,a]}function $re(e){return typeof e=="function"}function Yre(e){const t=N.useRef({value:e,previous:e});return N.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var xz=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Jre="VisuallyHidden",bz=N.forwardRef((e,t)=>m.jsx(Dr.span,{...e,ref:t,style:{...xz,...e.style}}));bz.displayName=Jre;var Qre=bz,eie=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Uh=new WeakMap,Qv=new WeakMap,ex={},YS=0,Az=function(e){return e&&(e.host||Az(e.parentNode))},tie=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Az(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},nie=function(e,t,n,r){var i=tie(t,Array.isArray(e)?e:[e]);ex[n]||(ex[n]=new WeakMap);var a=ex[n],o=[],s=new Set,l=new Set(i),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};i.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(s.has(h))u(h);else try{var f=h.getAttribute(r),g=f!==null&&f!=="false",y=(Uh.get(h)||0)+1,v=(a.get(h)||0)+1;Uh.set(h,y),a.set(h,v),o.push(h),y===1&&g&&Qv.set(h,!0),v===1&&h.setAttribute(n,"true"),g||h.setAttribute(r,"true")}catch(A){console.error("aria-hidden: cannot operate on ",h,A)}})};return u(t),s.clear(),YS++,function(){o.forEach(function(d){var h=Uh.get(d)-1,f=a.get(d)-1;Uh.set(d,h),a.set(d,f),h||(Qv.has(d)||d.removeAttribute(r),Qv.delete(d)),f||d.removeAttribute(n)}),YS--,YS||(Uh=new WeakMap,Uh=new WeakMap,Qv=new WeakMap,ex={})}},jE=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=eie(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),nie(r,i,n,"aria-hidden")):function(){return null}},rc=function(){return rc=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},rc.apply(this,arguments)};function wz(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function rie(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var yb="right-scroll-bar-position",vb="width-before-scroll-bar",iie="with-scroll-bars-hidden",aie="--removed-body-scroll-bar-size";function JS(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function oie(e,t){var n=N.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var sie=typeof window<"u"?N.useLayoutEffect:N.useEffect,HP=new WeakMap;function lie(e,t){var n=oie(null,function(r){return e.forEach(function(i){return JS(i,r)})});return sie(function(){var r=HP.get(n);if(r){var i=new Set(r),a=new Set(e),o=n.current;i.forEach(function(s){a.has(s)||JS(s,null)}),a.forEach(function(s){i.has(s)||JS(s,o)})}HP.set(n,e)},[e]),n}function cie(e){return e}function uie(e,t){t===void 0&&(t=cie);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var o=t(a,r);return n.push(o),function(){n=n.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(r=!0;n.length;){var o=n;n=[],o.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var o=[];if(n.length){var s=n;n=[],s.forEach(a),o=n}var l=function(){var u=o;o=[],u.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),n}}}};return i}function die(e){e===void 0&&(e={});var t=uie(null);return t.options=rc({async:!0,ssr:!1},e),t}var Sz=function(e){var t=e.sideCar,n=wz(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return N.createElement(r,rc({},n))};Sz.isSideCarExport=!0;function fie(e,t){return e.useMedium(t),Sz}var kz=die(),QS=function(){},IA=N.forwardRef(function(e,t){var n=N.useRef(null),r=N.useState({onScrollCapture:QS,onWheelCapture:QS,onTouchMoveCapture:QS}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,f=e.noRelative,g=e.noIsolation,y=e.inert,v=e.allowPinchZoom,A=e.as,w=A===void 0?"div":A,S=e.gapMode,_=wz(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,T=lie([n,t]),D=rc(rc({},_),i);return N.createElement(N.Fragment,null,u&&N.createElement(E,{sideCar:kz,removeScrollBar:c,shards:d,noRelative:f,noIsolation:g,inert:y,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:S}),o?N.cloneElement(N.Children.only(s),rc(rc({},D),{ref:T})):N.createElement(w,rc({},D,{className:l,ref:T}),s))});IA.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};IA.classNames={fullWidth:vb,zeroRight:yb};var hie=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pie(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=hie();return t&&e.setAttribute("nonce",t),e}function gie(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function mie(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var yie=function(){var e=0,t=null;return{add:function(n){e==0&&(t=pie())&&(gie(t,n),mie(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vie=function(){var e=yie();return function(t,n){N.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Dz=function(){var e=vie(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},xie={left:0,top:0,right:0,gap:0},ek=function(e){return parseInt(e||"",10)||0},bie=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[ek(n),ek(r),ek(i)]},Aie=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xie;var t=bie(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},wie=Dz(),Op="data-scroll-locked",Sie=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n="margin"),`- .`.concat(iie,` {- overflow: hidden `).concat(r,`;- padding-right: `).concat(s,"px ").concat(r,`;- }- body[`).concat(Op,`] {- overflow: hidden `).concat(r,`;- overscroll-behavior: contain;- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`- padding-left: `.concat(i,`px;- padding-top: `).concat(a,`px;- padding-right: `).concat(o,`px;- margin-left:0;- margin-top:0;- margin-right: `).concat(s,"px ").concat(r,`;- `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`- }-- .`).concat(yb,` {- right: `).concat(s,"px ").concat(r,`;- }-- .`).concat(vb,` {- margin-right: `).concat(s,"px ").concat(r,`;- }-- .`).concat(yb," .").concat(yb,` {- right: 0 `).concat(r,`;- }-- .`).concat(vb," .").concat(vb,` {- margin-right: 0 `).concat(r,`;- }-- body[`).concat(Op,`] {- `).concat(aie,": ").concat(s,`px;- }-`)},XP=function(){var e=parseInt(document.body.getAttribute(Op)||"0",10);return isFinite(e)?e:0},kie=function(){N.useEffect(function(){return document.body.setAttribute(Op,(XP()+1).toString()),function(){var e=XP()-1;e<=0?document.body.removeAttribute(Op):document.body.setAttribute(Op,e.toString())}},[])},Die=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;kie();var a=N.useMemo(function(){return Aie(i)},[i]);return N.createElement(wie,{styles:Sie(a,!t,i,n?"":"!important")})},CT=!1;if(typeof window<"u")try{var tx=Object.defineProperty({},"passive",{get:function(){return CT=!0,!0}});window.addEventListener("test",tx,tx),window.removeEventListener("test",tx,tx)}catch{CT=!1}var Lh=CT?{passive:!1}:!1,Cie=function(e){return e.tagName==="TEXTAREA"},Cz=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Cie(e)&&n[t]==="visible")},Tie=function(e){return Cz(e,"overflowY")},_ie=function(e){return Cz(e,"overflowX")},ZP=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Tz(e,r);if(i){var a=_z(e,r),o=a[1],s=a[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Eie=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Nie=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Tz=function(e,t){return e==="v"?Tie(t):_ie(t)},_z=function(e,t){return e==="v"?Eie(t):Nie(t)},Fie=function(e,t){return e==="h"&&t==="rtl"?-1:1},Rie=function(e,t,n,r,i){var a=Fie(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,l=t.contains(s),c=!1,u=o>0,d=0,h=0;do{if(!s)break;var f=_z(e,s),g=f[0],y=f[1],v=f[2],A=y-v-a*g;(g||A)&&Tz(e,s)&&(d+=A,h+=g);var w=s.parentNode;s=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&Math.abs(d)<1||!u&&Math.abs(h)<1)&&(c=!0),c},nx=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},KP=function(e){return[e.deltaX,e.deltaY]},$P=function(e){return e&&"current"in e?e.current:e},Pie=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Iie=function(e){return`- .block-interactivity-`.concat(e,` {pointer-events: none;}- .allow-interactivity-`).concat(e,` {pointer-events: all;}-`)},Mie=0,Oh=[];function Uie(e){var t=N.useRef([]),n=N.useRef([0,0]),r=N.useRef(),i=N.useState(Mie++)[0],a=N.useState(Dz)[0],o=N.useRef(e);N.useEffect(function(){o.current=e},[e]),N.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var y=rie([e.lockRef.current],(e.shards||[]).map($P),!0).filter(Boolean);return y.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),y.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=N.useCallback(function(y,v){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!o.current.allowPinchZoom;var A=nx(y),w=n.current,S="deltaX"in y?y.deltaX:w[0]-A[0],_="deltaY"in y?y.deltaY:w[1]-A[1],E,T=y.target,D=Math.abs(S)>Math.abs(_)?"h":"v";if("touches"in y&&D==="h"&&T.type==="range")return!1;var I=window.getSelection(),j=I&&I.anchorNode,R=j?j===T||j.contains(T):!1;if(R)return!1;var z=ZP(D,T);if(!z)return!0;if(z?E=D:(E=D==="v"?"h":"v",z=ZP(D,T)),!z)return!1;if(!r.current&&"changedTouches"in y&&(S||_)&&(r.current=E),!E)return!0;var B=r.current||E;return Rie(B,v,y,B==="h"?S:_)},[]),l=N.useCallback(function(y){var v=y;if(!(!Oh.length||Oh[Oh.length-1]!==a)){var A="deltaY"in v?KP(v):nx(v),w=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&Pie(E.delta,A)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var S=(o.current.shards||[]).map($P).filter(Boolean).filter(function(E){return E.contains(v.target)}),_=S.length>0?s(v,S[0]):!o.current.noIsolation;_&&v.cancelable&&v.preventDefault()}}},[]),c=N.useCallback(function(y,v,A,w){var S={name:y,delta:v,target:A,should:w,shadowParent:Lie(A)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(_){return _!==S})},1)},[]),u=N.useCallback(function(y){n.current=nx(y),r.current=void 0},[]),d=N.useCallback(function(y){c(y.type,KP(y),y.target,s(y,e.lockRef.current))},[]),h=N.useCallback(function(y){c(y.type,nx(y),y.target,s(y,e.lockRef.current))},[]);N.useEffect(function(){return Oh.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Lh),document.addEventListener("touchmove",l,Lh),document.addEventListener("touchstart",u,Lh),function(){Oh=Oh.filter(function(y){return y!==a}),document.removeEventListener("wheel",l,Lh),document.removeEventListener("touchmove",l,Lh),document.removeEventListener("touchstart",u,Lh)}},[]);var f=e.removeScrollBar,g=e.inert;return N.createElement(N.Fragment,null,g?N.createElement(a,{styles:Iie(i)}):null,f?N.createElement(Die,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Lie(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Oie=fie(kz,Uie);var MA=N.forwardRef(function(e,t){return N.createElement(IA,rc({},e,{ref:t,sideCar:Oie}))});MA.classNames=IA.classNames;var jie=[" ","Enter","ArrowUp","ArrowDown"],Bie=[" ","Enter"],Lf="Select",[UA,LA,zie]=DE(Lf),[vg]=dc(Lf,[zie,yg]),OA=yg(),[Wie,hd]=vg(Lf),[Vie,Gie]=vg(Lf),Ez=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:h,required:f,form:g}=e,y=OA(t),[v,A]=N.useState(null),[w,S]=N.useState(null),[_,E]=N.useState(!1),T=_A(c),[D,I]=tl({prop:r,defaultProp:i??!1,onChange:a,caller:Lf}),[j,R]=tl({prop:o,defaultProp:s,onChange:l,caller:Lf}),z=N.useRef(null),B=v?g||!!v.closest("form"):!0,[W,P]=N.useState(new Set),Z=Array.from(W).map(Q=>Q.props.value).join(";");return m.jsx(ME,{...y,children:m.jsxs(Wie,{required:f,scope:t,trigger:v,onTriggerChange:A,valueNode:w,onValueNodeChange:S,valueNodeHasChildren:_,onValueNodeHasChildrenChange:E,contentId:zc(),value:j,onValueChange:R,open:D,onOpenChange:I,dir:T,triggerPointerDownPosRef:z,disabled:h,children:[m.jsx(UA.Provider,{scope:t,children:m.jsx(Vie,{scope:e.__scopeSelect,onNativeOptionAdd:N.useCallback(Q=>{P(X=>new Set(X).add(Q))},[]),onNativeOptionRemove:N.useCallback(Q=>{P(X=>{const q=new Set(X);return q.delete(Q),q})},[]),children:n})}),B?m.jsxs(Yz,{"aria-hidden":!0,required:f,tabIndex:-1,name:u,autoComplete:d,value:j,onChange:Q=>R(Q.target.value),disabled:h,form:g,children:[j===void 0?m.jsx("option",{value:""}):null,Array.from(W)]},Z):null]})})};Ez.displayName=Lf;var Nz="SelectTrigger",Fz=N.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,a=OA(n),o=hd(Nz,n),s=o.disabled||r,l=Hr(t,o.onTriggerChange),c=LA(n),u=N.useRef("touch"),[d,h,f]=Qz(y=>{const v=c().filter(S=>!S.disabled),A=v.find(S=>S.value===o.value),w=e9(v,y,A);w!==void 0&&o.onValueChange(w.value)}),g=y=>{s||(o.onOpenChange(!0),f()),y&&(o.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return m.jsx(UE,{asChild:!0,...a,children:m.jsx(Dr.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Jz(o.value)?"":void 0,...i,ref:l,onClick:en(i.onClick,y=>{y.currentTarget.focus(),u.current!=="mouse"&&g(y)}),onPointerDown:en(i.onPointerDown,y=>{u.current=y.pointerType;const v=y.target;v.hasPointerCapture(y.pointerId)&&v.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(g(y),y.preventDefault())}),onKeyDown:en(i.onKeyDown,y=>{const v=d.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&h(y.key),!(v&&y.key===" ")&&jie.includes(y.key)&&(g(),y.preventDefault())})})})});Fz.displayName=Nz;var Rz="SelectValue",Pz=N.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:a,placeholder:o="",...s}=e,l=hd(Rz,n),{onValueNodeHasChildrenChange:c}=l,u=a!==void 0,d=Hr(t,l.onValueNodeChange);return Ga(()=>{c(u)},[c,u]),m.jsx(Dr.span,{...s,ref:d,style:{pointerEvents:"none"},children:Jz(l.value)?m.jsx(m.Fragment,{children:o}):a})});Pz.displayName=Rz;var qie="SelectIcon",Iz=N.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return m.jsx(Dr.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});Iz.displayName=qie;var Hie="SelectPortal",Mz=e=>m.jsx(hy,{asChild:!0,...e});Mz.displayName=Hie;var Of="SelectContent",Uz=N.forwardRef((e,t)=>{const n=hd(Of,e.__scopeSelect),[r,i]=N.useState();if(Ga(()=>{i(new DocumentFragment)},[]),!n.open){const a=r;return a?dg.createPortal(m.jsx(Lz,{scope:e.__scopeSelect,children:m.jsx(UA.Slot,{scope:e.__scopeSelect,children:m.jsx("div",{children:e.children})})}),a):null}return m.jsx(Oz,{...e,ref:t})});Uz.displayName=Of;var Tl=10,[Lz,pd]=vg(Of),Xie="SelectContentImpl",Zie=Wre("SelectContent.RemoveScroll"),Oz=N.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:h,collisionPadding:f,sticky:g,hideWhenDetached:y,avoidCollisions:v,...A}=e,w=hd(Of,n),[S,_]=N.useState(null),[E,T]=N.useState(null),D=Hr(t,ce=>_(ce)),[I,j]=N.useState(null),[R,z]=N.useState(null),B=LA(n),[W,P]=N.useState(!1),Z=N.useRef(!1);N.useEffect(()=>{if(S)return jE(S)},[S]),CE();const Q=N.useCallback(ce=>{const[ye,...Fe]=B().map(Re=>Re.ref.current),[Oe]=Fe.slice(-1),Le=document.activeElement;for(const Re of ce)if(Re===Le||(Re==null||Re.scrollIntoView({block:"nearest"}),Re===ye&&E&&(E.scrollTop=0),Re===Oe&&E&&(E.scrollTop=E.scrollHeight),Re==null||Re.focus(),document.activeElement!==Le))return},[B,E]),X=N.useCallback(()=>Q([I,S]),[Q,I,S]);N.useEffect(()=>{W&&X()},[W,X]);const{onOpenChange:q,triggerPointerDownPosRef:te}=w;N.useEffect(()=>{if(S){let ce={x:0,y:0};const ye=Oe=>{var Le,Re;ce={x:Math.abs(Math.round(Oe.pageX)-(((Le=te.current)==null?void 0:Le.x)??0)),y:Math.abs(Math.round(Oe.pageY)-(((Re=te.current)==null?void 0:Re.y)??0))}},Fe=Oe=>{ce.x<=10&&ce.y<=10?Oe.preventDefault():S.contains(Oe.target)||q(!1),document.removeEventListener("pointermove",ye),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",ye),document.addEventListener("pointerup",Fe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ye),document.removeEventListener("pointerup",Fe,{capture:!0})}}},[S,q,te]),N.useEffect(()=>{const ce=()=>q(!1);return window.addEventListener("blur",ce),window.addEventListener("resize",ce),()=>{window.removeEventListener("blur",ce),window.removeEventListener("resize",ce)}},[q]);const[J,ee]=Qz(ce=>{const ye=B().filter(Le=>!Le.disabled),Fe=ye.find(Le=>Le.ref.current===document.activeElement),Oe=e9(ye,ce,Fe);Oe&&setTimeout(()=>Oe.ref.current.focus())}),le=N.useCallback((ce,ye,Fe)=>{const Oe=!Z.current&&!Fe;(w.value!==void 0&&w.value===ye||Oe)&&(j(ce),Oe&&(Z.current=!0))},[w.value]),G=N.useCallback(()=>S==null?void 0:S.focus(),[S]),xe=N.useCallback((ce,ye,Fe)=>{const Oe=!Z.current&&!Fe;(w.value!==void 0&&w.value===ye||Oe)&&z(ce)},[w.value]),ge=r==="popper"?TT:jz,ue=ge===TT?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:h,collisionPadding:f,sticky:g,hideWhenDetached:y,avoidCollisions:v}:{};return m.jsx(Lz,{scope:n,content:S,viewport:E,onViewportChange:T,itemRefCallback:le,selectedItem:I,onItemLeave:G,itemTextRefCallback:xe,focusSelectedItem:X,selectedItemText:R,position:r,isPositioned:W,searchRef:J,children:m.jsx(MA,{as:Zie,allowPinchZoom:!0,children:m.jsx(EA,{asChild:!0,trapped:w.open,onMountAutoFocus:ce=>{ce.preventDefault()},onUnmountAutoFocus:en(i,ce=>{var ye;(ye=w.trigger)==null||ye.focus({preventScroll:!0}),ce.preventDefault()}),children:m.jsx(dy,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:ce=>ce.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:m.jsx(ge,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:ce=>ce.preventDefault(),...A,...ue,onPlaced:()=>P(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:en(A.onKeyDown,ce=>{const ye=ce.ctrlKey||ce.altKey||ce.metaKey;if(ce.key==="Tab"&&ce.preventDefault(),!ye&&ce.key.length===1&&ee(ce.key),["ArrowUp","ArrowDown","Home","End"].includes(ce.key)){let Oe=B().filter(Le=>!Le.disabled).map(Le=>Le.ref.current);if(["ArrowUp","End"].includes(ce.key)&&(Oe=Oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(ce.key)){const Le=ce.target,Re=Oe.indexOf(Le);Oe=Oe.slice(Re+1)}setTimeout(()=>Q(Oe)),ce.preventDefault()}})})})})})})});Oz.displayName=Xie;var Kie="SelectItemAlignedPosition",jz=N.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,a=hd(Of,n),o=pd(Of,n),[s,l]=N.useState(null),[c,u]=N.useState(null),d=Hr(t,D=>u(D)),h=LA(n),f=N.useRef(!1),g=N.useRef(!0),{viewport:y,selectedItem:v,selectedItemText:A,focusSelectedItem:w}=o,S=N.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&c&&y&&v&&A){const D=a.trigger.getBoundingClientRect(),I=c.getBoundingClientRect(),j=a.valueNode.getBoundingClientRect(),R=A.getBoundingClientRect();if(a.dir!=="rtl"){const Le=R.left-I.left,Re=j.left-Le,We=D.left-Re,V=D.width+We,ve=Math.max(V,I.width),oe=window.innerWidth-Tl,re=AT(Re,[Tl,Math.max(Tl,oe-ve)]);s.style.minWidth=V+"px",s.style.left=re+"px"}else{const Le=I.right-R.right,Re=window.innerWidth-j.right-Le,We=window.innerWidth-D.right-Re,V=D.width+We,ve=Math.max(V,I.width),oe=window.innerWidth-Tl,re=AT(Re,[Tl,Math.max(Tl,oe-ve)]);s.style.minWidth=V+"px",s.style.right=re+"px"}const z=h(),B=window.innerHeight-Tl*2,W=y.scrollHeight,P=window.getComputedStyle(c),Z=parseInt(P.borderTopWidth,10),Q=parseInt(P.paddingTop,10),X=parseInt(P.borderBottomWidth,10),q=parseInt(P.paddingBottom,10),te=Z+Q+W+q+X,J=Math.min(v.offsetHeight*5,te),ee=window.getComputedStyle(y),le=parseInt(ee.paddingTop,10),G=parseInt(ee.paddingBottom,10),xe=D.top+D.height/2-Tl,ge=B-xe,ue=v.offsetHeight/2,ce=v.offsetTop+ue,ye=Z+Q+ce,Fe=te-ye;if(ye<=xe){const Le=z.length>0&&v===z[z.length-1].ref.current;s.style.bottom="0px";const Re=c.clientHeight-y.offsetTop-y.offsetHeight,We=Math.max(ge,ue+(Le?G:0)+Re+X),V=ye+We;s.style.height=V+"px"}else{const Le=z.length>0&&v===z[0].ref.current;s.style.top="0px";const We=Math.max(xe,Z+y.offsetTop+(Le?le:0)+ue)+Fe;s.style.height=We+"px",y.scrollTop=ye-xe+y.offsetTop}s.style.margin=`${Tl}px 0`,s.style.minHeight=J+"px",s.style.maxHeight=B+"px",r==null||r(),requestAnimationFrame(()=>f.current=!0)}},[h,a.trigger,a.valueNode,s,c,y,v,A,a.dir,r]);Ga(()=>S(),[S]);const[_,E]=N.useState();Ga(()=>{c&&E(window.getComputedStyle(c).zIndex)},[c]);const T=N.useCallback(D=>{D&&g.current===!0&&(S(),w==null||w(),g.current=!1)},[S,w]);return m.jsx(Yie,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:f,onScrollButtonChange:T,children:m.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:m.jsx(Dr.div,{...i,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});jz.displayName=Kie;var $ie="SelectPopperPosition",TT=N.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Tl,...a}=e,o=OA(n);return m.jsx(LE,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});TT.displayName=$ie;var[Yie,BE]=vg(Of,{}),_T="SelectViewport",Bz=N.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,a=pd(_T,n),o=BE(_T,n),s=Hr(t,a.onViewportChange),l=N.useRef(0);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),m.jsx(UA.Slot,{scope:n,children:m.jsx(Dr.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:en(i.onScroll,c=>{const u=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:h}=o;if(h!=null&&h.current&&d){const f=Math.abs(l.current-u.scrollTop);if(f>0){const g=window.innerHeight-Tl*2,y=parseFloat(d.style.minHeight),v=parseFloat(d.style.height),A=Math.max(y,v);if(A<g){const w=A+f,S=Math.min(g,w),_=w-S;d.style.height=S+"px",d.style.bottom==="0px"&&(u.scrollTop=_>0?_:0,d.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});Bz.displayName=_T;var zz="SelectGroup",[Jie,Qie]=vg(zz),eae=N.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=zc();return m.jsx(Jie,{scope:n,id:i,children:m.jsx(Dr.div,{role:"group","aria-labelledby":i,...r,ref:t})})});eae.displayName=zz;var Wz="SelectLabel",tae=N.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Qie(Wz,n);return m.jsx(Dr.div,{id:i.id,...r,ref:t})});tae.displayName=Wz;var m1="SelectItem",[nae,Vz]=vg(m1),Gz=N.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=hd(m1,n),l=pd(m1,n),c=s.value===r,[u,d]=N.useState(a??""),[h,f]=N.useState(!1),g=Hr(t,w=>{var S;return(S=l.itemRefCallback)==null?void 0:S.call(l,w,r,i)}),y=zc(),v=N.useRef("touch"),A=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return m.jsx(nae,{scope:n,value:r,disabled:i,textId:y,isSelected:c,onItemTextChange:N.useCallback(w=>{d(S=>S||((w==null?void 0:w.textContent)??"").trim())},[]),children:m.jsx(UA.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:m.jsx(Dr.div,{role:"option","aria-labelledby":y,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...o,ref:g,onFocus:en(o.onFocus,()=>f(!0)),onBlur:en(o.onBlur,()=>f(!1)),onClick:en(o.onClick,()=>{v.current!=="mouse"&&A()}),onPointerUp:en(o.onPointerUp,()=>{v.current==="mouse"&&A()}),onPointerDown:en(o.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:en(o.onPointerMove,w=>{var S;v.current=w.pointerType,i?(S=l.onItemLeave)==null||S.call(l):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:en(o.onPointerLeave,w=>{var S;w.currentTarget===document.activeElement&&((S=l.onItemLeave)==null||S.call(l))}),onKeyDown:en(o.onKeyDown,w=>{var _;((_=l.searchRef)==null?void 0:_.current)!==""&&w.key===" "||(Bie.includes(w.key)&&A(),w.key===" "&&w.preventDefault())})})})})});Gz.displayName=m1;var Mm="SelectItemText",qz=N.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...a}=e,o=hd(Mm,n),s=pd(Mm,n),l=Vz(Mm,n),c=Gie(Mm,n),[u,d]=N.useState(null),h=Hr(t,A=>d(A),l.onItemTextChange,A=>{var w;return(w=s.itemTextRefCallback)==null?void 0:w.call(s,A,l.value,l.disabled)}),f=u==null?void 0:u.textContent,g=N.useMemo(()=>m.jsx("option",{value:l.value,disabled:l.disabled,children:f},l.value),[l.disabled,l.value,f]),{onNativeOptionAdd:y,onNativeOptionRemove:v}=c;return Ga(()=>(y(g),()=>v(g)),[y,v,g]),m.jsxs(m.Fragment,{children:[m.jsx(Dr.span,{id:l.textId,...a,ref:h}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?dg.createPortal(a.children,o.valueNode):null]})});qz.displayName=Mm;var Hz="SelectItemIndicator",Xz=N.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Vz(Hz,n).isSelected?m.jsx(Dr.span,{"aria-hidden":!0,...r,ref:t}):null});Xz.displayName=Hz;var ET="SelectScrollUpButton",Zz=N.forwardRef((e,t)=>{const n=pd(ET,e.__scopeSelect),r=BE(ET,e.__scopeSelect),[i,a]=N.useState(!1),o=Hr(t,r.onScrollButtonChange);return Ga(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollTop>0;a(c)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),i?m.jsx($z,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});Zz.displayName=ET;var NT="SelectScrollDownButton",Kz=N.forwardRef((e,t)=>{const n=pd(NT,e.__scopeSelect),r=BE(NT,e.__scopeSelect),[i,a]=N.useState(!1),o=Hr(t,r.onScrollButtonChange);return Ga(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;a(u)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),i?m.jsx($z,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});Kz.displayName=NT;var $z=N.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,a=pd("SelectScrollButton",n),o=N.useRef(null),s=LA(n),l=N.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return N.useEffect(()=>()=>l(),[l]),Ga(()=>{var u;const c=s().find(d=>d.ref.current===document.activeElement);(u=c==null?void 0:c.ref.current)==null||u.scrollIntoView({block:"nearest"})},[s]),m.jsx(Dr.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:en(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:en(i.onPointerMove,()=>{var c;(c=a.onItemLeave)==null||c.call(a),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:en(i.onPointerLeave,()=>{l()})})}),rae="SelectSeparator",iae=N.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return m.jsx(Dr.div,{"aria-hidden":!0,...r,ref:t})});iae.displayName=rae;var FT="SelectArrow",aae=N.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=OA(n),a=hd(FT,n),o=pd(FT,n);return a.open&&o.position==="popper"?m.jsx(OE,{...i,...r,ref:t}):null});aae.displayName=FT;var oae="SelectBubbleInput",Yz=N.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=N.useRef(null),a=Hr(r,i),o=Yre(t);return N.useEffect(()=>{const s=i.current;if(!s)return;const l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==t&&u){const d=new Event("change",{bubbles:!0});u.call(s,t),s.dispatchEvent(d)}},[o,t]),m.jsx(Dr.select,{...n,style:{...xz,...n.style},ref:a,defaultValue:t})});Yz.displayName=oae;function Jz(e){return e===""||e===void 0}function Qz(e){const t=za(e),n=N.useRef(""),r=N.useRef(0),i=N.useCallback(o=>{const s=n.current+o;t(s),(function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(s)},[t]),a=N.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return N.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function e9(e,t,n){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let o=sae(e,Math.max(a,0));i.length===1&&(o=o.filter(c=>c!==n));const l=o.find(c=>c.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function sae(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var lae=Ez,cae=Fz,uae=Pz,dae=Iz,fae=Mz,hae=Uz,pae=Bz,gae=Gz,mae=qz,yae=Xz,vae=Zz,xae=Kz;function xg(e){let t=e.length;for(;--t>=0;)e[t]=0}const bae=3,Aae=258,t9=29,wae=256,Sae=wae+1+t9,n9=30,kae=512,Dae=new Array((Sae+2)*2);xg(Dae);const Cae=new Array(n9*2);xg(Cae);const Tae=new Array(kae);xg(Tae);const _ae=new Array(Aae-bae+1);xg(_ae);const Eae=new Array(t9);xg(Eae);const Nae=new Array(n9);xg(Nae);const Fae=(e,t,n,r)=>{let i=e&65535|0,a=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0};var RT=Fae;const Rae=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},Pae=new Uint32Array(Rae()),Iae=(e,t,n,r)=>{const i=Pae,a=r+n;e^=-1;for(let o=r;o<a;o++)e=e>>>8^i[(e^t[o])&255];return e^-1};var Xl=Iae,PT={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"},r9={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 Mae=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Uae=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)Mae(n,r)&&(e[r]=n[r])}}return e},Lae=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,a=e.length;r<a;r++){let o=e[r];n.set(o,i),i+=o.length}return n},i9={assign:Uae,flattenChunks:Lae};let a9=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a9=!1}const E0=new Uint8Array(256);for(let e=0;e<256;e++)E0[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;E0[254]=E0[254]=1;var Oae=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|n&63):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|n&63):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|n&63);return t};const jae=(e,t)=>{if(t<65534&&e.subarray&&a9)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var Bae=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i;const a=new Array(n*2);for(i=0,r=0;r<n;){let o=e[r++];if(o<128){a[i++]=o;continue}let s=E0[o];if(s>4){a[i++]=65533,r+=s-1;continue}for(o&=s===2?31:s===3?15:7;s>1&&r<n;)o=o<<6|e[r++]&63,s--;if(s>1){a[i++]=65533;continue}o<65536?a[i++]=o:(o-=65536,a[i++]=55296|o>>10&1023,a[i++]=56320|o&1023)}return jae(a,i)},zae=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+E0[e[n]]>t?n:t},IT={string2buf:Oae,buf2string:Bae,utf8border:zae};function Wae(){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 Vae=Wae;const rx=16209,Gae=16191;var qae=function(t,n){let r,i,a,o,s,l,c,u,d,h,f,g,y,v,A,w,S,_,E,T,D,I,j,R;const z=t.state;r=t.next_in,j=t.input,i=r+(t.avail_in-5),a=t.next_out,R=t.output,o=a-(n-t.avail_out),s=a+(t.avail_out-257),l=z.dmax,c=z.wsize,u=z.whave,d=z.wnext,h=z.window,f=z.hold,g=z.bits,y=z.lencode,v=z.distcode,A=(1<<z.lenbits)-1,w=(1<<z.distbits)-1;e:do{g<15&&(f+=j[r++]<<g,g+=8,f+=j[r++]<<g,g+=8),S=y[f&A];t:for(;;){if(_=S>>>24,f>>>=_,g-=_,_=S>>>16&255,_===0)R[a++]=S&65535;else if(_&16){E=S&65535,_&=15,_&&(g<_&&(f+=j[r++]<<g,g+=8),E+=f&(1<<_)-1,f>>>=_,g-=_),g<15&&(f+=j[r++]<<g,g+=8,f+=j[r++]<<g,g+=8),S=v[f&w];n:for(;;){if(_=S>>>24,f>>>=_,g-=_,_=S>>>16&255,_&16){if(T=S&65535,_&=15,g<_&&(f+=j[r++]<<g,g+=8,g<_&&(f+=j[r++]<<g,g+=8)),T+=f&(1<<_)-1,T>l){t.msg="invalid distance too far back",z.mode=rx;break e}if(f>>>=_,g-=_,_=a-o,T>_){if(_=T-_,_>u&&z.sane){t.msg="invalid distance too far back",z.mode=rx;break e}if(D=0,I=h,d===0){if(D+=c-_,_<E){E-=_;do R[a++]=h[D++];while(--_);D=a-T,I=R}}else if(d<_){if(D+=c+d-_,_-=d,_<E){E-=_;do R[a++]=h[D++];while(--_);if(D=0,d<E){_=d,E-=_;do R[a++]=h[D++];while(--_);D=a-T,I=R}}}else if(D+=d-_,_<E){E-=_;do R[a++]=h[D++];while(--_);D=a-T,I=R}for(;E>2;)R[a++]=I[D++],R[a++]=I[D++],R[a++]=I[D++],E-=3;E&&(R[a++]=I[D++],E>1&&(R[a++]=I[D++]))}else{D=a-T;do R[a++]=R[D++],R[a++]=R[D++],R[a++]=R[D++],E-=3;while(E>2);E&&(R[a++]=R[D++],E>1&&(R[a++]=R[D++]))}}else if((_&64)===0){S=v[(S&65535)+(f&(1<<_)-1)];continue n}else{t.msg="invalid distance code",z.mode=rx;break e}break}}else if((_&64)===0){S=y[(S&65535)+(f&(1<<_)-1)];continue t}else if(_&32){z.mode=Gae;break e}else{t.msg="invalid literal/length code",z.mode=rx;break e}break}}while(r<i&&a<s);E=g>>3,r-=E,g-=E<<3,f&=(1<<g)-1,t.next_in=r,t.next_out=a,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=a<s?257+(s-a):257-(a-s),z.hold=f,z.bits=g};const jh=15,YP=852,JP=592,QP=0,tk=1,eI=2,Hae=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Xae=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Zae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Kae=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),$ae=(e,t,n,r,i,a,o,s)=>{const l=s.bits;let c=0,u=0,d=0,h=0,f=0,g=0,y=0,v=0,A=0,w=0,S,_,E,T,D,I=null,j;const R=new Uint16Array(jh+1),z=new Uint16Array(jh+1);let B=null,W,P,Z;for(c=0;c<=jh;c++)R[c]=0;for(u=0;u<r;u++)R[t[n+u]]++;for(f=l,h=jh;h>=1&&R[h]===0;h--);if(f>h&&(f=h),h===0)return i[a++]=1<<24|64<<16|0,i[a++]=1<<24|64<<16|0,s.bits=1,0;for(d=1;d<h&&R[d]===0;d++);for(f<d&&(f=d),v=1,c=1;c<=jh;c++)if(v<<=1,v-=R[c],v<0)return-1;if(v>0&&(e===QP||h!==1))return-1;for(z[1]=0,c=1;c<jh;c++)z[c+1]=z[c]+R[c];for(u=0;u<r;u++)t[n+u]!==0&&(o[z[t[n+u]]++]=u);if(e===QP?(I=B=o,j=20):e===tk?(I=Hae,B=Xae,j=257):(I=Zae,B=Kae,j=0),w=0,u=0,c=d,D=a,g=f,y=0,E=-1,A=1<<f,T=A-1,e===tk&&A>YP||e===eI&&A>JP)return 1;for(;;){W=c-y,o[u]+1<j?(P=0,Z=o[u]):o[u]>=j?(P=B[o[u]-j],Z=I[o[u]-j]):(P=96,Z=0),S=1<<c-y,_=1<<g,d=_;do _-=S,i[D+(w>>y)+_]=W<<24|P<<16|Z|0;while(_!==0);for(S=1<<c-1;w&S;)S>>=1;if(S!==0?(w&=S-1,w+=S):w=0,u++,--R[c]===0){if(c===h)break;c=t[n+o[u]]}if(c>f&&(w&T)!==E){for(y===0&&(y=f),D+=d,g=c-y,v=1<<g;g+y<h&&(v-=R[g+y],!(v<=0));)g++,v<<=1;if(A+=1<<g,e===tk&&A>YP||e===eI&&A>JP)return 1;E=w&T,i[E]=f<<24|g<<16|D-a|0}}return w!==0&&(i[D+w]=c-y<<24|64<<16|0),s.bits=f,0};var e0=$ae;const Yae=0,o9=1,s9=2,{Z_FINISH:tI,Z_BLOCK:Jae,Z_TREES:ix,Z_OK:jf,Z_STREAM_END:Qae,Z_NEED_DICT:eoe,Z_STREAM_ERROR:nl,Z_DATA_ERROR:l9,Z_MEM_ERROR:c9,Z_BUF_ERROR:toe,Z_DEFLATED:nI}=r9,jA=16180,rI=16181,iI=16182,aI=16183,oI=16184,sI=16185,lI=16186,cI=16187,uI=16188,dI=16189,y1=16190,_c=16191,nk=16192,fI=16193,rk=16194,hI=16195,pI=16196,gI=16197,mI=16198,ax=16199,ox=16200,yI=16201,vI=16202,xI=16203,bI=16204,AI=16205,ik=16206,wI=16207,SI=16208,qi=16209,u9=16210,d9=16211,noe=852,roe=592,ioe=15,aoe=ioe,kI=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function ooe(){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 Kf=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<jA||t.mode>d9?1:0},f9=e=>{if(Kf(e))return nl;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=jA,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(noe),t.distcode=t.distdyn=new Int32Array(roe),t.sane=1,t.back=-1,jf},h9=e=>{if(Kf(e))return nl;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,f9(e)},p9=(e,t)=>{let n;if(Kf(e))return nl;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?nl:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,h9(e))},g9=(e,t)=>{if(!e)return nl;const n=new ooe;e.state=n,n.strm=e,n.window=null,n.mode=jA;const r=p9(e,t);return r!==jf&&(e.state=null),r},soe=e=>g9(e,aoe);let DI=!0,ak,ok;const loe=e=>{if(DI){ak=new Int32Array(512),ok=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(e0(o9,e.lens,0,288,ak,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;e0(s9,e.lens,0,32,ok,0,e.work,{bits:5}),DI=!1}e.lencode=ak,e.lenbits=9,e.distcode=ok,e.distbits=5},m9=(e,t,n,r)=>{let i;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),r-=i,r?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},coe=(e,t)=>{let n,r,i,a,o,s,l,c,u,d,h,f,g,y,v=0,A,w,S,_,E,T,D,I;const j=new Uint8Array(4);let R,z;const B=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Kf(e)||!e.output||!e.input&&e.avail_in!==0)return nl;n=e.state,n.mode===_c&&(n.mode=nk),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,d=s,h=l,I=jf;e:for(;;)switch(n.mode){case jA:if(n.wrap===0){n.mode=nk;break}for(;u<16;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if(n.wrap&2&&c===35615){n.wbits===0&&(n.wbits=15),n.check=0,j[0]=c&255,j[1]=c>>>8&255,n.check=Xl(n.check,j,2,0),c=0,u=0,n.mode=rI;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=qi;break}if((c&15)!==nI){e.msg="unknown compression method",n.mode=qi;break}if(c>>>=4,u-=4,D=(c&15)+8,n.wbits===0&&(n.wbits=D),D>15||D>n.wbits){e.msg="invalid window size",n.mode=qi;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=c&512?dI:_c,c=0,u=0;break;case rI:for(;u<16;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if(n.flags=c,(n.flags&255)!==nI){e.msg="unknown compression method",n.mode=qi;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=qi;break}n.head&&(n.head.text=c>>8&1),n.flags&512&&n.wrap&4&&(j[0]=c&255,j[1]=c>>>8&255,n.check=Xl(n.check,j,2,0)),c=0,u=0,n.mode=iI;case iI:for(;u<32;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}n.head&&(n.head.time=c),n.flags&512&&n.wrap&4&&(j[0]=c&255,j[1]=c>>>8&255,j[2]=c>>>16&255,j[3]=c>>>24&255,n.check=Xl(n.check,j,4,0)),c=0,u=0,n.mode=aI;case aI:for(;u<16;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}n.head&&(n.head.xflags=c&255,n.head.os=c>>8),n.flags&512&&n.wrap&4&&(j[0]=c&255,j[1]=c>>>8&255,n.check=Xl(n.check,j,2,0)),c=0,u=0,n.mode=oI;case oI:if(n.flags&1024){for(;u<16;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),n.flags&512&&n.wrap&4&&(j[0]=c&255,j[1]=c>>>8&255,n.check=Xl(n.check,j,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=sI;case sI:if(n.flags&1024&&(f=n.length,f>s&&(f=s),f&&(n.head&&(D=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+f),D)),n.flags&512&&n.wrap&4&&(n.check=Xl(n.check,r,f,a)),s-=f,a+=f,n.length-=f),n.length))break e;n.length=0,n.mode=lI;case lI:if(n.flags&2048){if(s===0)break e;f=0;do D=r[a+f++],n.head&&D&&n.length<65536&&(n.head.name+=String.fromCharCode(D));while(D&&f<s);if(n.flags&512&&n.wrap&4&&(n.check=Xl(n.check,r,f,a)),s-=f,a+=f,D)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=cI;case cI:if(n.flags&4096){if(s===0)break e;f=0;do D=r[a+f++],n.head&&D&&n.length<65536&&(n.head.comment+=String.fromCharCode(D));while(D&&f<s);if(n.flags&512&&n.wrap&4&&(n.check=Xl(n.check,r,f,a)),s-=f,a+=f,D)break e}else n.head&&(n.head.comment=null);n.mode=uI;case uI:if(n.flags&512){for(;u<16;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if(n.wrap&4&&c!==(n.check&65535)){e.msg="header crc mismatch",n.mode=qi;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=_c;break;case dI:for(;u<32;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}e.adler=n.check=kI(c),c=0,u=0,n.mode=y1;case y1:if(n.havedict===0)return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=c,n.bits=u,eoe;e.adler=n.check=1,n.mode=_c;case _c:if(t===Jae||t===ix)break e;case nk:if(n.last){c>>>=u&7,u-=u&7,n.mode=ik;break}for(;u<3;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}switch(n.last=c&1,c>>>=1,u-=1,c&3){case 0:n.mode=fI;break;case 1:if(loe(n),n.mode=ax,t===ix){c>>>=2,u-=2;break e}break;case 2:n.mode=pI;break;case 3:e.msg="invalid block type",n.mode=qi}c>>>=2,u-=2;break;case fI:for(c>>>=u&7,u-=u&7;u<32;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if((c&65535)!==(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=qi;break}if(n.length=c&65535,c=0,u=0,n.mode=rk,t===ix)break e;case rk:n.mode=hI;case hI:if(f=n.length,f){if(f>s&&(f=s),f>l&&(f=l),f===0)break e;i.set(r.subarray(a,a+f),o),s-=f,a+=f,l-=f,o+=f,n.length-=f;break}n.mode=_c;break;case pI:for(;u<14;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if(n.nlen=(c&31)+257,c>>>=5,u-=5,n.ndist=(c&31)+1,c>>>=5,u-=5,n.ncode=(c&15)+4,c>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=qi;break}n.have=0,n.mode=gI;case gI:for(;n.have<n.ncode;){for(;u<3;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}n.lens[B[n.have++]]=c&7,c>>>=3,u-=3}for(;n.have<19;)n.lens[B[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R={bits:n.lenbits},I=e0(Yae,n.lens,0,19,n.lencode,0,n.work,R),n.lenbits=R.bits,I){e.msg="invalid code lengths set",n.mode=qi;break}n.have=0,n.mode=mI;case mI:for(;n.have<n.nlen+n.ndist;){for(;v=n.lencode[c&(1<<n.lenbits)-1],A=v>>>24,w=v>>>16&255,S=v&65535,!(A<=u);){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if(S<16)c>>>=A,u-=A,n.lens[n.have++]=S;else{if(S===16){for(z=A+2;u<z;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if(c>>>=A,u-=A,n.have===0){e.msg="invalid bit length repeat",n.mode=qi;break}D=n.lens[n.have-1],f=3+(c&3),c>>>=2,u-=2}else if(S===17){for(z=A+3;u<z;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}c>>>=A,u-=A,D=0,f=3+(c&7),c>>>=3,u-=3}else{for(z=A+7;u<z;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}c>>>=A,u-=A,D=0,f=11+(c&127),c>>>=7,u-=7}if(n.have+f>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=qi;break}for(;f--;)n.lens[n.have++]=D}}if(n.mode===qi)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=qi;break}if(n.lenbits=9,R={bits:n.lenbits},I=e0(o9,n.lens,0,n.nlen,n.lencode,0,n.work,R),n.lenbits=R.bits,I){e.msg="invalid literal/lengths set",n.mode=qi;break}if(n.distbits=6,n.distcode=n.distdyn,R={bits:n.distbits},I=e0(s9,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,R),n.distbits=R.bits,I){e.msg="invalid distances set",n.mode=qi;break}if(n.mode=ax,t===ix)break e;case ax:n.mode=ox;case ox:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=c,n.bits=u,qae(e,h),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,n.mode===_c&&(n.back=-1);break}for(n.back=0;v=n.lencode[c&(1<<n.lenbits)-1],A=v>>>24,w=v>>>16&255,S=v&65535,!(A<=u);){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if(w&&(w&240)===0){for(_=A,E=w,T=S;v=n.lencode[T+((c&(1<<_+E)-1)>>_)],A=v>>>24,w=v>>>16&255,S=v&65535,!(_+A<=u);){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}c>>>=_,u-=_,n.back+=_}if(c>>>=A,u-=A,n.back+=A,n.length=S,w===0){n.mode=AI;break}if(w&32){n.back=-1,n.mode=_c;break}if(w&64){e.msg="invalid literal/length code",n.mode=qi;break}n.extra=w&15,n.mode=yI;case yI:if(n.extra){for(z=n.extra;u<z;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=vI;case vI:for(;v=n.distcode[c&(1<<n.distbits)-1],A=v>>>24,w=v>>>16&255,S=v&65535,!(A<=u);){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if((w&240)===0){for(_=A,E=w,T=S;v=n.distcode[T+((c&(1<<_+E)-1)>>_)],A=v>>>24,w=v>>>16&255,S=v&65535,!(_+A<=u);){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}c>>>=_,u-=_,n.back+=_}if(c>>>=A,u-=A,n.back+=A,w&64){e.msg="invalid distance code",n.mode=qi;break}n.offset=S,n.extra=w&15,n.mode=xI;case xI:if(n.extra){for(z=n.extra;u<z;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=qi;break}n.mode=bI;case bI:if(l===0)break e;if(f=h-l,n.offset>f){if(f=n.offset-f,f>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=qi;break}f>n.wnext?(f-=n.wnext,g=n.wsize-f):g=n.wnext-f,f>n.length&&(f=n.length),y=n.window}else y=i,g=o-n.offset,f=n.length;f>l&&(f=l),l-=f,n.length-=f;do i[o++]=y[g++];while(--f);n.length===0&&(n.mode=ox);break;case AI:if(l===0)break e;i[o++]=n.length,l--,n.mode=ox;break;case ik:if(n.wrap){for(;u<32;){if(s===0)break e;s--,c|=r[a++]<<u,u+=8}if(h-=l,e.total_out+=h,n.total+=h,n.wrap&4&&h&&(e.adler=n.check=n.flags?Xl(n.check,i,h,o-h):RT(n.check,i,h,o-h)),h=l,n.wrap&4&&(n.flags?c:kI(c))!==n.check){e.msg="incorrect data check",n.mode=qi;break}c=0,u=0}n.mode=wI;case wI:if(n.wrap&&n.flags){for(;u<32;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if(n.wrap&4&&c!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=qi;break}c=0,u=0}n.mode=SI;case SI:I=Qae;break e;case qi:I=l9;break e;case u9:return c9;case d9:default:return nl}return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=c,n.bits=u,(n.wsize||h!==e.avail_out&&n.mode<qi&&(n.mode<ik||t!==tI))&&m9(e,e.output,e.next_out,h-e.avail_out),d-=e.avail_in,h-=e.avail_out,e.total_in+=d,e.total_out+=h,n.total+=h,n.wrap&4&&h&&(e.adler=n.check=n.flags?Xl(n.check,i,h,e.next_out-h):RT(n.check,i,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===_c?128:0)+(n.mode===ax||n.mode===rk?256:0),(d===0&&h===0||t===tI)&&I===jf&&(I=toe),I},uoe=e=>{if(Kf(e))return nl;let t=e.state;return t.window&&(t.window=null),e.state=null,jf},doe=(e,t)=>{if(Kf(e))return nl;const n=e.state;return(n.wrap&2)===0?nl:(n.head=t,t.done=!1,jf)},foe=(e,t)=>{const n=t.length;let r,i,a;return Kf(e)||(r=e.state,r.wrap!==0&&r.mode!==y1)?nl:r.mode===y1&&(i=1,i=RT(i,t,n,0),i!==r.check)?l9:(a=m9(e,t,n,n),a?(r.mode=u9,c9):(r.havedict=1,jf))};var hoe=h9,poe=p9,goe=f9,moe=soe,yoe=g9,voe=coe,xoe=uoe,boe=doe,Aoe=foe,woe="pako inflate (from Nodeca project)",Ic={inflateReset:hoe,inflateReset2:poe,inflateResetKeep:goe,inflateInit:moe,inflateInit2:yoe,inflate:voe,inflateEnd:xoe,inflateGetHeader:boe,inflateSetDictionary:Aoe,inflateInfo:woe};function Soe(){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 koe=Soe;const y9=Object.prototype.toString,{Z_NO_FLUSH:Doe,Z_FINISH:Coe,Z_OK:N0,Z_STREAM_END:sk,Z_NEED_DICT:lk,Z_STREAM_ERROR:Toe,Z_DATA_ERROR:CI,Z_MEM_ERROR:_oe}=r9;function BA(e){this.options=i9.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)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Vae,this.strm.avail_out=0;let n=Ic.inflateInit2(this.strm,t.windowBits);if(n!==N0)throw new Error(PT[n]);if(this.header=new koe,Ic.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=IT.string2buf(t.dictionary):y9.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Ic.inflateSetDictionary(this.strm,t.dictionary),n!==N0)))throw new Error(PT[n])}BA.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let a,o,s;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?Coe:Doe,y9.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),a=Ic.inflate(n,o),a===lk&&i&&(a=Ic.inflateSetDictionary(n,i),a===N0?a=Ic.inflate(n,o):a===CI&&(a=lk));n.avail_in>0&&a===sk&&n.state.wrap>0&&e[n.next_in]!==0;)Ic.inflateReset(n),a=Ic.inflate(n,o);switch(a){case Toe:case CI:case lk:case _oe:return this.onEnd(a),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||a===sk))if(this.options.to==="string"){let l=IT.utf8border(n.output,n.next_out),c=n.next_out-l,u=IT.buf2string(n.output,l);n.next_out=c,n.avail_out=r-c,c&&n.output.set(n.output.subarray(l,l+c),0),this.onData(u)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(a===N0&&s===0)){if(a===sk)return a=Ic.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};BA.prototype.onData=function(e){this.chunks.push(e)};BA.prototype.onEnd=function(e){e===N0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i9.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function v9(e,t){const n=new BA(t);if(n.push(e),n.err)throw n.msg||PT[n.err];return n.result}var Eoe=v9,Noe=v9,Foe={inflate:Eoe,ungzip:Noe};const{inflate:Roe,ungzip:Poe}=Foe;var Ioe=Roe,x9=Poe;function Zi(...e){return zB(uy(e))}const TI=1e6,Moe=["edge","parent","source","target","vertex","connectable"],Uoe=new Set(["lt","gt","amp","quot","apos"]);function Loe(e){const t=[];let n=0;for(;n<e.length;){const r=e.indexOf("<",n);if(r===-1)break;let i=r+1,a=!1,o="";for(;i<e.length;){const c=e[i];if(a)c===o&&(a=!1);else if(c==='"'||c==="'")a=!0,o=c;else if(c===">")break;i++}if(i>=e.length)break;const s=e.slice(r,i+1),l=/^<(\/?)([a-zA-Z][a-zA-Z0-9:_-]*)/.exec(s);l&&t.push({tagName:l[2],isClosing:l[1]==="/",isSelfClosing:s.endsWith("/>")}),n=i+1}return t}function Ooe(e){const t=/<[^>]+>/g;let n;for(;(n=t.exec(e))!==null;){const r=n[0],i=/\s([a-zA-Z_:][a-zA-Z0-9_:.-]*)\s*=/g,a=new Map;let o;for(;(o=i.exec(r))!==null;){const l=o[1];a.set(l,(a.get(l)||0)+1)}const s=Array.from(a.entries()).filter(([l,c])=>c>1&&Moe.includes(l)).map(([l])=>l);if(s.length>0)return`Invalid XML: Duplicate structural attribute(s): ${s.join(", ")}.`}return null}function joe(e){const t=Loe(e.replace(/<!--[\s\S]*?-->/g,"")),n=[];for(const r of t)if(r.isClosing){const i=n.pop();if(!i)return`Invalid XML: Closing tag </${r.tagName}> without matching opening tag.`;if(i.toLowerCase()!==r.tagName.toLowerCase())return`Invalid XML: Expected closing tag </${i}> but found </${r.tagName}>.`}else r.isSelfClosing||n.push(r.tagName);return n.length>0?`Invalid XML: Document has unclosed tag(s): ${n.join(", ")}.`:null}function Boe(e){if(/&(?!(?:lt|gt|amp|quot|apos|#))/g.test(e))return"Invalid XML: Found unescaped & character(s). Replace & with &.";const t=/&([a-zA-Z][a-zA-Z0-9]*);/g;let n;for(;(n=t.exec(e))!==null;)if(!Uoe.has(n[1]))return`Invalid XML: Invalid entity reference: &${n[1]};`;return null}function zoe(e,t=" "){let n="",r=0;e=e.replace(/>\s*</g,"><").trim();const i=e.split(new RegExp("(?=<)|(?<=>)","g")).filter(Boolean);return i.forEach(a=>{if(a.match(/^<\/\w/))r=Math.max(0,r-1),n+=t.repeat(r)+a+`-`;else if(a.match(/^<\w[^>]*[^/]>.*$/)){n+=t.repeat(r)+a;const o=i.indexOf(a)+1;o<i.length&&i[o].startsWith("<")&&(n+=`-`,a.match(/^<\w[^>]*\/>$/)||r++)}else a.match(/^<\w[^>]*\/>$/)||a.startsWith("<")?n+=t.repeat(r)+a+`-`:n+=a}),n.trim()}function _I(e){const t=/<mxCell\b[^>]*(?:\/>|>([\s\S]*?)<\/mxCell>)/g;let n,r=`<root>-`;for(;(n=t.exec(e))!==null;){let i=n[0];/<Array\s+as="points">/.test(i)||(i=i.replace(/<mxPoint\b[^>]*\/>/g,s=>/\sas=/.test(s)?s:""));const o=i.split(`-`).map(s=>" "+s.trim()).filter(s=>s.trim()).join(`-`);r+=o+`-`}return r+="</root>",r}function sx(e){const t='<mxCell id="0"/><mxCell id="1" parent="0"/>';if(!e)return`<mxfile><diagram name="Page-1" id="page-1"><mxGraphModel><root>${t}</root></mxGraphModel></diagram></mxfile>`;if(e.includes("<mxfile"))return e;if(e.includes("<mxGraphModel"))return`<mxfile><diagram name="Page-1" id="page-1">${e}</diagram></mxfile>`;let n=e.replace(/<\/?root>/g,"").trim();const r=n.lastIndexOf("/>"),i=n.lastIndexOf("</mxCell>"),a=Math.max(r,i);if(a!==-1){const o=i>r?9:2,s=n.slice(a+o);/^(\s*<\/[^>]+>)*\s*$/.test(s)&&(n=n.slice(0,a+o))}return n=n.replace(/<mxCell[^>]*\bid=["']0["'][^>]*(?:\/>|><\/mxCell>)/g,"").replace(/<mxCell[^>]*\bid=["']1["'][^>]*(?:\/>|><\/mxCell>)/g,"").trim(),`<mxfile><diagram name="Page-1" id="page-1"><mxGraphModel><root>${t}${n}</root></mxGraphModel></diagram></mxfile>`}function EI(e,t){if(!e||!t)throw new Error("Both currentXML and nodes must be provided");try{const n=new DOMParser,r=n.parseFromString(e,"text/xml");let i=t;t.includes("<root>")||(i=`<root>${t}</root>`);const a=n.parseFromString(i,"text/xml");let o=r.querySelector("mxGraphModel > root");if(!o){const d=r.querySelector("mxGraphModel")||r.createElement("mxGraphModel");r.contains(d)||r.appendChild(d),o=r.createElement("root"),d.appendChild(o)}const s=a.querySelector("root");if(!s)throw new Error("Invalid nodes: Could not find or create <root> element");for(;o.firstChild;)o.removeChild(o.firstChild);const l=Array.from(s.childNodes).some(d=>d.nodeName==="mxCell"&&d.getAttribute("id")==="0"),c=Array.from(s.childNodes).some(d=>d.nodeName==="mxCell"&&d.getAttribute("id")==="1");if(Array.from(s.childNodes).forEach(d=>{const h=r.importNode(d,!0);o.appendChild(h)}),!l){const d=r.createElement("mxCell");d.setAttribute("id","0"),o.insertBefore(d,o.firstChild)}if(!c){const d=r.createElement("mxCell");d.setAttribute("id","1"),d.setAttribute("parent","0");const h=o.querySelector('mxCell[id="0"]');h!=null&&h.nextSibling?o.insertBefore(d,h.nextSibling):o.appendChild(d)}return new XMLSerializer().serializeToString(r)}catch(n){throw new Error(`Error replacing nodes: ${n}`)}}function v1(e){e.length>TI&&console.warn(`[validateMxCellStructure] XML size (${e.length}) exceeds ${TI} bytes.`);const t=Ooe(e);if(t)return t;const n=joe(e);if(n)return n;const r=Boe(e);if(r)return r;const a=new DOMParser().parseFromString(e,"text/xml");if(a.querySelector("parsererror"))return'Invalid XML: The XML contains syntax errors (likely unescaped special characters like <, >, & in attribute values). Please escape special characters: use < for <, > for >, & for &, " for ". Regenerate the diagram with properly escaped values.';const s=a.querySelectorAll("mxCell"),l=new Set,c=[],u=[],d=[],h=[],f=[];if(s.forEach(w=>{var T;const S=w.getAttribute("id"),_=w.getAttribute("parent"),E=w.getAttribute("edge")==="1";S&&(l.has(S)?c.push(S):l.add(S)),((T=w.parentElement)==null?void 0:T.tagName)==="mxCell"&&u.push(S||"unknown"),S!=="0"&&(_?h.push({id:S||"unknown",parent:_}):S&&d.push(S)),E&&f.push({id:S||"unknown",source:w.getAttribute("source"),target:w.getAttribute("target")})}),u.length>0)return`Invalid XML: Found nested mxCell elements (IDs: ${u.slice(0,3).join(", ")}). All mxCell elements must be direct children of <root>, never nested inside other mxCell elements. Please regenerate the diagram with correct structure.`;if(c.length>0)return`Invalid XML: Found duplicate cell IDs (${c.slice(0,3).join(", ")}). Each mxCell must have a unique ID. Please regenerate the diagram with unique IDs for all elements.`;if(d.length>0)return`Invalid XML: Found cells without parent attribute (IDs: ${d.slice(0,3).join(", ")}). All mxCell elements (except id="0") must have a parent attribute. Please regenerate the diagram with proper parent references.`;const g=h.filter(w=>!l.has(w.parent));if(g.length>0)return`Invalid XML: Found cells with invalid parent references (${g.slice(0,3).map(S=>`${S.id} (parent: ${S.parent})`).join(", ")}). Parent IDs must reference existing cells. Please regenerate the diagram with valid parent references.`;const y=[];if(f.forEach(w=>{w.source&&!l.has(w.source)&&y.push(`${w.id} (source: ${w.source})`),w.target&&!l.has(w.target)&&y.push(`${w.id} (target: ${w.target})`)}),y.length>0)return`Invalid XML: Found edges with invalid source/target references (${y.slice(0,3).join(", ")}). Edge source and target must reference existing cell IDs. Please regenerate the diagram with valid edge connections.`;const v=a.querySelectorAll("mxPoint"),A=[];return v.forEach(w=>{var E,T;const S=w.hasAttribute("as"),_=((E=w.parentElement)==null?void 0:E.tagName)==="Array"&&((T=w.parentElement)==null?void 0:T.getAttribute("as"))==="points";if(!S&&!_){let D=w.parentElement;for(;D&&D.tagName!=="mxCell";)D=D.parentElement;const I=(D==null?void 0:D.getAttribute("id"))||"unknown";A.includes(I)||A.push(I)}}),A.length>0?`Invalid XML: Found orphaned mxPoint elements in cells (${A.slice(0,3).join(", ")}). mxPoint elements must either have an 'as' attribute (e.g., as="sourcePoint") or be inside <Array as="points">. For edge waypoints, use: <Array as="points"><mxPoint x="..." y="..."/></Array>. Please fix the mxPoint structure.`:null}function Woe(e){let t=String(e||"");const n=[];return/=\\"/.test(t)&&(t=t.replace(/\\"/g,'"').replace(/\\n/g,`-`),n.push("Fixed JSON-escaped XML")),/^\s*<!\[CDATA\[/.test(t)&&(t=t.replace(/^\s*<!\[CDATA\[/,"").replace(/\]\]>\s*$/,""),n.push("Removed CDATA wrapper")),/&(?!(?:lt|gt|amp|quot|apos|#[0-9]+|#x[0-9a-fA-F]+);)/g.test(t)&&(t=t.replace(/&(?!(?:lt|gt|amp|quot|apos|#[0-9]+|#x[0-9a-fA-F]+);)/g,"&"),n.push("Escaped unescaped & characters")),t=t.replace(/<Cell(\s|>)/g,"<mxCell$1"),t=t.replace(/<\/Cell>/g,"</mxCell>"),t=t.replace(/<\/mxcell>/g,"</mxCell>"),t=t.replace(/<\/mxgeometry>/g,"</mxGeometry>"),t=t.replace(/<\/mxpoint>/g,"</mxPoint>"),t=t.replace(/<mxPoint\b([^>]*)\/>/g,(r,i)=>/(\s|^)as=/.test(i)?r:""),t=t.replace(/<mxCell([^>]*)\sid\s*=\s*["']\s*["']([^>]*)>/g,(r,i,a)=>`<mxCell${i} id="cell_${Date.now()}_${Math.random().toString(36).slice(2,8)}"${a}>`),t=t.replace(/\s([a-zA-Z_:][a-zA-Z0-9_:.-]*)=\=/g," $1="),t=t.replace(/\bparent==/g,"parent="),t=t.replace(/\bstyle==/g,"style="),t=t.replace(/\bhtml==/g,"html="),t=t.replace(/\brounded==/g,"rounded="),t=t.replace(/=\s*"([^"]*)"/g,(r,i)=>`="${String(i).replace(/&(?!lt;|gt;|amp;|quot;|apos;|#\d+;|#x[0-9a-fA-F]+;)/g,"&").replace(/</g,"<").replace(/>/g,">")}"`),!t.includes("<mxGraphModel")&&!t.includes("<mxfile")&&(t=t.replace(/<mxCell[^>]*\bid=["']0["'][^>]*(?:\/>|><\/mxCell>)/g,"").replace(/<mxCell[^>]*\bid=["']1["'][^>]*(?:\/>|><\/mxCell>)/g,"").trim()),t!==e&&n.length===0&&n.push("Applied XML normalization"),{fixed:t,fixes:n}}function NI(e){if(!v1(e))return{valid:!0,error:null,fixed:null,fixes:[]};const{fixed:n,fixes:r}=Woe(e),i=v1(n);return i?{valid:!1,error:i,fixed:r.length>0?n:null,fixes:r}:{valid:!0,error:null,fixed:n,fixes:r}}function FI(e){try{let t=function(w){const S=document.createElement("textarea");return S.innerHTML=w,S.value};const n=atob(e.slice(26)),r=new DOMParser,a=r.parseFromString(n,"image/svg+xml").querySelector("svg");if(!a)throw new Error("No SVG element found in the input string.");const o=a.getAttribute("content");if(!o)throw new Error("SVG element does not have a 'content' attribute.");const s=t(o),c=r.parseFromString(s,"text/xml").querySelector("diagram");if(!c)throw new Error("No diagram element found");const u=c.textContent;if(!u)throw new Error("No encoded data found in the diagram element");const d=atob(u),h=d.length,f=new Uint8Array(h);for(let w=0;w<h;w++)f[w]=d.charCodeAt(w);const g=Ioe(f,{windowBits:-15}),v=new TextDecoder("utf-8").decode(g);return decodeURIComponent(v)}catch(t){throw console.error("Error extracting diagram XML:",t),t}}function t0({...e}){return m.jsx(lae,{"data-slot":"select",...e})}function n0({...e}){return m.jsx(uae,{"data-slot":"select-value",...e})}function r0({className:e,size:t="default",children:n,...r}){return m.jsxs(cae,{"data-slot":"select-trigger","data-size":t,className:Zi("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,m.jsx(dae,{asChild:!0,children:m.jsx(Wo,{className:"size-4 opacity-50"})})]})}function i0({className:e,children:t,position:n="popper",align:r="center",...i}){return m.jsx(fae,{children:m.jsxs(hae,{"data-slot":"select-content",className:Zi("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-[140] max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:r,...i,children:[m.jsx(Voe,{}),m.jsx(pae,{className:Zi("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),m.jsx(Goe,{})]})})}function a0({className:e,children:t,...n}){return m.jsxs(gae,{"data-slot":"select-item",className:Zi("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[m.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:m.jsx(yae,{children:m.jsx(qo,{className:"size-4"})})}),m.jsx(mae,{children:t})]})}function Voe({className:e,...t}){return m.jsx(vae,{"data-slot":"select-scroll-up-button",className:Zi("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(qu,{className:"size-4"})})}function Goe({className:e,...t}){return m.jsx(xae,{"data-slot":"select-scroll-down-button",className:Zi("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(Wo,{className:"size-4"})})}const qoe={openai:"https://platform.openai.com/api-keys",ollama:"https://ollama.com/download",deepseek:"https://platform.deepseek.com/api_keys",kimi:"https://platform.moonshot.cn/console/api-keys",aliyun:"https://bailian.console.aliyun.com/?tab=model#/api-key",tencent:"https://console.cloud.tencent.com/hunyuan/api-key",bytedance:"https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey",zhipu:"https://open.bigmodel.cn/usercenter/apikeys",baidu:"https://console.bce.baidu.com/qianfan/ais/console/applicationConsole/application",minimax:"https://platform.minimaxi.com/user-center/basic-information/interface-key",xai:"https://console.x.ai/",google:"https://aistudio.google.com/app/apikey",anthropic:"https://console.anthropic.com/settings/keys"},Hoe={openai:"https://platform.openai.com/api-keys",aliyun:"https://bailian.console.aliyun.com/?tab=model#/api-key",tencent:"https://console.cloud.tencent.com/hunyuan/api-key",bytedance:"https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey",zhipu:"https://open.bigmodel.cn/usercenter/apikeys",google:"https://console.cloud.google.com/vertex-ai/publishers/google/model-garden/imagen",xai:"https://console.x.ai/",bfl:"https://docs.bfl.ai/",adobe:"https://developer.adobe.com/console"},Xoe="https://mineru.net/";function lx({title:e,description:t,actions:n,children:r}){return m.jsxs("section",{className:"space-y-4 rounded-xl border border-border/60 bg-muted/10 p-4 md:p-5",children:[m.jsxs("div",{className:"flex items-start justify-between gap-4",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsx("h3",{className:"text-sm font-semibold text-foreground",children:e}),m.jsx("p",{className:"text-xs leading-5 text-muted-foreground",children:t})]}),n]}),r]})}function b9({href:e,uiLang:t}){return e?m.jsxs("a",{href:e,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-xs text-primary hover:underline",children:[t==="zh"?"获取 Key":"Get Key",m.jsx(PQ,{className:"h-3.5 w-3.5"})]}):null}function RI({label:e,value:t,onChange:n,options:r,docsUrl:i,uiLang:a}){return m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"flex items-center justify-between gap-3",children:[m.jsx("label",{className:"text-sm font-medium text-foreground",children:e}),m.jsx(b9,{href:i,uiLang:a})]}),m.jsxs(t0,{value:t,onValueChange:o=>n(o),children:[m.jsx(r0,{className:"h-10 w-full rounded-xl border-border/70 bg-background shadow-sm transition-colors hover:border-border hover:bg-muted/20",children:m.jsx(n0,{placeholder:"Select provider"})}),m.jsx(i0,{className:"max-h-[260px] overflow-y-auto rounded-xl border-border/70 bg-background/95 p-1 shadow-xl backdrop-blur",children:r.map(o=>m.jsx(a0,{value:o.id,className:"rounded-lg py-2 text-sm data-[highlighted]:bg-muted data-[highlighted]:text-foreground",children:o.label},o.id))})]})]})}function ck({label:e,value:t,onChange:n,placeholder:r,visible:i,onToggle:a,docsUrl:o,uiLang:s}){return m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"flex items-center justify-between gap-3",children:[m.jsx("label",{className:"text-sm font-medium text-foreground",children:e}),m.jsx(b9,{href:o,uiLang:s})]}),m.jsxs("div",{className:"relative",children:[m.jsx("input",{type:i?"text":"password",value:t,onChange:l=>n(l.target.value),className:"flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 pr-10 text-sm shadow-sm transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",placeholder:r}),m.jsx("button",{type:"button",onClick:a,className:"absolute inset-y-0 right-0 flex w-10 items-center justify-center text-muted-foreground transition-colors hover:text-foreground","aria-label":i?"Hide secret":"Show secret",children:i?m.jsx(MQ,{className:"h-4 w-4"}):m.jsx(SB,{className:"h-4 w-4"})})]})]})}function PI({label:e,state:t,onClick:n}){const r=t==="testing";return m.jsxs(bo,{type:"button",variant:"outline",className:"h-9 rounded-lg",onClick:n,disabled:r,children:[r?m.jsx(sa,{className:"h-4 w-4 animate-spin"}):null,e]})}function Zoe(){const[e,t]=N.useState(!1),[n,r]=N.useState(Af(Go())),[i,a]=N.useState(()=>bs()),[o,s]=N.useState(!1),[l,c]=N.useState(!1),[u,d]=N.useState(!1),[h,f]=N.useState("idle"),[g,y]=N.useState("idle");N.useEffect(()=>{e&&(r(Af(Go())),a(bs()),s(!1),c(!1),d(!1),f("idle"),y("idle"))},[e]),N.useEffect(()=>{e&&d1(i)},[i,e]);const v=i==="zh",A=N.useMemo(()=>qoe[n.textProvider],[n.textProvider]),w=N.useMemo(()=>Hoe[n.imageProvider],[n.imageProvider]),S=(D,I)=>{const j=Af(n),R=C0(I,D);if(D==="text"){r({...j,textProvider:I,textBaseUrl:R||j.textBaseUrl});return}r({...j,imageProvider:I,imageBaseUrl:R||j.imageBaseUrl})},_=()=>{Ote(n),d1(i),t(!1),Ln.success(v?"配置已保存":"Settings saved")},E=async()=>{const D=Af(n);if(!D.textApiKey||!D.textBaseUrl||!D.textModel){Ln.error(v?"请先填写文本模型的 Key、Base URL 和 Model":"Please fill text API key, base URL, and model first");return}try{f("testing");const I=await fetch("/api/ppt-ai",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({kind:"chat",aiConfig:D,messages:[{role:"user",content:"Reply with OK only."}]})}),j=await I.json().catch(()=>({}));if(!I.ok)throw new Error(String((j==null?void 0:j.error)||"Text model test failed"));Ln.success(v?"文本模型可用":"Text model is working")}catch(I){Ln.error(I instanceof Error?I.message:v?"文本模型测试失败":"Text model test failed")}finally{f("idle")}},T=async()=>{const D=Af(n);if(!D.imageApiKey||!D.imageBaseUrl||!D.imageModel){Ln.error(v?"请先填写生图模型的 Key、Base URL 和 Model":"Please fill image API key, base URL, and model first");return}try{y("testing");const I=await fetch("/api/ppt-ai",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({kind:"image",aiConfig:D,prompt:"A simple blue square icon on white background."})}),j=await I.json().catch(()=>({}));if(!I.ok||!(j!=null&&j.url))throw new Error(String((j==null?void 0:j.error)||"Image model test failed"));Ln.success(v?"生图模型可用":"Image model is working")}catch(I){Ln.error(I instanceof Error?I.message:v?"生图模型测试失败":"Image model test failed")}finally{y("idle")}};return m.jsxs(m.Fragment,{children:[m.jsx(bo,{variant:"ghost",size:"icon",onClick:()=>t(!0),className:"text-muted-foreground hover:text-foreground",title:an(i,"settings.buttonTitle"),children:m.jsx(kee,{className:"h-5 w-5"})}),e&&dg.createPortal(m.jsx("div",{className:"animate-in fade-in fixed inset-0 z-[100] flex items-center justify-center bg-black/40 p-4 duration-200 backdrop-blur-sm",children:m.jsxs("div",{className:"animate-in zoom-in-95 flex max-h-[90vh] w-full max-w-4xl flex-col overflow-hidden rounded-xl border border-border/50 bg-background shadow-2xl duration-200",children:[m.jsxs("div",{className:"flex items-center justify-between border-b border-border/50 bg-muted/10 p-6",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-lg font-semibold tracking-tight text-foreground",children:an(i,"settings.title")}),m.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:an(i,"settings.subtitle")})]}),m.jsx(bo,{variant:"ghost",size:"icon",onClick:()=>t(!1),className:"h-8 w-8 rounded-full hover:bg-muted/50",children:m.jsx(Va,{className:"h-4 w-4"})})]}),m.jsxs("div",{className:"space-y-5 overflow-y-auto p-6",children:[m.jsx(lx,{title:v?"界面语言":"Language",description:v?"切换界面显示语言。":"Switch the interface language.",children:m.jsxs("div",{className:"flex w-fit items-center rounded-lg border border-border/60 bg-muted/10 p-1",children:[m.jsx(bo,{variant:i==="zh"?"secondary":"ghost",className:"h-8 rounded-md px-3",onClick:()=>a("zh"),children:an(i,"settings.language.zh")}),m.jsx(bo,{variant:i==="en"?"secondary":"ghost",className:"h-8 rounded-md px-3",onClick:()=>a("en"),children:an(i,"settings.language.en")})]})}),m.jsx(lx,{title:v?"文本模型":"Text Model",description:v?"用于聊天、文本生成和图片理解。上传图片时会直接交给模型处理,由模型真实返回是否支持。":"Used for chat, text generation, and image understanding. Image uploads are sent directly to the model, which decides whether they are supported.",actions:m.jsx(PI,{label:v?"测试文本模型":"Test Text Model",state:h,onClick:E}),children:m.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[m.jsx(RI,{label:"Provider",value:n.textProvider,onChange:D=>S("text",D),options:VB,docsUrl:A,uiLang:i}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{className:"text-sm font-medium text-foreground",children:"Model"}),m.jsx("input",{type:"text",value:n.textModel,onChange:D=>r({...n,textModel:D.target.value}),className:"flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm shadow-sm transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",placeholder:"gpt-4o-mini"})]}),m.jsx(ck,{label:"API Key",value:n.textApiKey,onChange:D=>r({...n,textApiKey:D}),placeholder:"sk-...",visible:o,onToggle:()=>s(D=>!D),docsUrl:A,uiLang:i}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{className:"text-sm font-medium text-foreground",children:"Base URL"}),m.jsx("input",{type:"text",value:n.textBaseUrl,onChange:D=>r({...n,textBaseUrl:D.target.value}),className:"flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm shadow-sm transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",placeholder:"https://api.example.com/v1"})]})]})}),m.jsx(lx,{title:v?"生图模型":"Image Model",description:v?"仅用于图片生成,与文本模型完全独立。":"Used only for image generation and fully separate from the text model.",actions:m.jsx(PI,{label:v?"测试生图模型":"Test Image Model",state:g,onClick:T}),children:m.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[m.jsx(RI,{label:"Provider",value:n.imageProvider,onChange:D=>S("image",D),options:GB,docsUrl:w,uiLang:i}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{className:"text-sm font-medium text-foreground",children:"Model"}),m.jsx("input",{type:"text",value:n.imageModel,onChange:D=>r({...n,imageModel:D.target.value}),className:"flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm shadow-sm transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",placeholder:"gpt-image-1"})]}),m.jsx(ck,{label:"API Key",value:n.imageApiKey,onChange:D=>r({...n,imageApiKey:D}),placeholder:"sk-...",visible:l,onToggle:()=>c(D=>!D),docsUrl:w,uiLang:i}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{className:"text-sm font-medium text-foreground",children:"Base URL"}),m.jsx("input",{type:"text",value:n.imageBaseUrl,onChange:D=>r({...n,imageBaseUrl:D.target.value}),className:"flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm shadow-sm transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",placeholder:"https://api.example.com/v1"})]})]})}),m.jsx(lx,{title:v?"其他":"Other",description:v?"文件解析等辅助配置。":"Auxiliary settings such as file parsing.",children:m.jsx(ck,{label:"MinerU Token",value:n.fileParserApiToken||"",onChange:D=>r({...n,fileParserApiToken:D}),placeholder:v?"留空则使用本地解析":"Leave empty to use local extraction",visible:u,onToggle:()=>d(D=>!D),docsUrl:Xoe,uiLang:i})})]}),m.jsxs("div",{className:"flex justify-end gap-3 border-t border-border/50 bg-muted/5 p-4 px-6",children:[m.jsx(bo,{variant:"outline",onClick:()=>t(!1),className:"rounded-lg hover:bg-muted",children:an(i,"common.cancel")}),m.jsxs(bo,{onClick:_,className:"gap-2 rounded-lg shadow-sm",children:[m.jsx(vee,{className:"h-4 w-4"}),an(i,"common.save")]})]})]})}),document.body)]})}const zE=N.createContext({});function WE(e){const t=N.useRef(null);return t.current===null&&(t.current=e()),t.current}const A9=typeof window<"u",w9=A9?N.useLayoutEffect:N.useEffect,zA=N.createContext(null);function VE(e,t){e.indexOf(t)===-1&&e.push(t)}function GE(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const cc=(e,t,n)=>n>t?t:n<e?e:n;let qE=()=>{};const Zc={},S9=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function k9(e){return typeof e=="object"&&e!==null}const D9=e=>/^0[^.\s]+$/u.test(e);function HE(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ys=e=>e,Koe=(e,t)=>n=>t(e(n)),py=(...e)=>e.reduce(Koe),F0=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class XE{constructor(){this.subscriptions=[]}add(t){return VE(this.subscriptions,t),()=>GE(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Wc=e=>e*1e3,Zs=e=>e/1e3;function C9(e,t){return t?e*(1e3/t):0}const T9=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$oe=1e-7,Yoe=12;function Joe(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=T9(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>$oe&&++s<Yoe);return o}function gy(e,t,n,r){if(e===t&&n===r)return Ys;const i=a=>Joe(a,0,1,e,n);return a=>a===0||a===1?a:T9(i(a),t,r)}const _9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,E9=e=>t=>1-e(1-t),N9=gy(.33,1.53,.69,.99),ZE=E9(N9),F9=_9(ZE),R9=e=>(e*=2)<1?.5*ZE(e):.5*(2-Math.pow(2,-10*(e-1))),KE=e=>1-Math.sin(Math.acos(e)),P9=E9(KE),I9=_9(KE),Qoe=gy(.42,0,1,1),ese=gy(0,0,.58,1),M9=gy(.42,0,.58,1),tse=e=>Array.isArray(e)&&typeof e[0]!="number",U9=e=>Array.isArray(e)&&typeof e[0]=="number",nse={linear:Ys,easeIn:Qoe,easeInOut:M9,easeOut:ese,circIn:KE,circInOut:I9,circOut:P9,backIn:ZE,backInOut:F9,backOut:N9,anticipate:R9},rse=e=>typeof e=="string",II=e=>{if(U9(e)){qE(e.length===4);const[t,n,r,i]=e;return gy(t,n,r,i)}else if(rse(e))return nse[e];return e},cx=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ise(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),e()),u(s)}const c={schedule:(u,d=!1,h=!1)=>{const g=h&&i?n:r;return d&&o.add(u),g.has(u)||g.add(u),u},cancel:u=>{r.delete(u),o.delete(u)},process:u=>{if(s=u,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,c.process(u))}};return c}const ase=40;function L9(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=cx.reduce((S,_)=>(S[_]=ise(a),S),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:f,postRender:g}=o,y=()=>{const S=Zc.useManualTiming?i.timestamp:performance.now();n=!1,Zc.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,ase),1)),i.timestamp=S,i.isProcessing=!0,s.process(i),l.process(i),c.process(i),u.process(i),d.process(i),h.process(i),f.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},v=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:cx.reduce((S,_)=>{const E=o[_];return S[_]=(T,D=!1,I=!1)=>(n||v(),E.schedule(T,D,I)),S},{}),cancel:S=>{for(let _=0;_<cx.length;_++)o[cx[_]].cancel(S)},state:i,steps:o}}const{schedule:ji,cancel:Ju,state:Za,steps:uk}=L9(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ys,!0);let xb;function ose(){xb=void 0}const wo={now:()=>(xb===void 0&&wo.set(Za.isProcessing||Zc.useManualTiming?Za.timestamp:performance.now()),xb),set:e=>{xb=e,queueMicrotask(ose)}},O9=e=>t=>typeof t=="string"&&t.startsWith(e),j9=O9("--"),sse=O9("var(--"),$E=e=>sse(e)?lse.test(e.split("/*")[0].trim()):!1,lse=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function MI(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const bg={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},R0={...bg,transform:e=>cc(0,1,e)},ux={...bg,default:1},o0=e=>Math.round(e*1e5)/1e5,YE=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function cse(e){return e==null}const use=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,JE=(e,t)=>n=>!!(typeof n=="string"&&use.test(n)&&n.startsWith(e)||t&&!cse(n)&&Object.prototype.hasOwnProperty.call(n,t)),B9=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,s]=r.match(YE);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},dse=e=>cc(0,255,e),dk={...bg,transform:e=>Math.round(dse(e))},kf={test:JE("rgb","red"),parse:B9("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+dk.transform(e)+", "+dk.transform(t)+", "+dk.transform(n)+", "+o0(R0.transform(r))+")"};function fse(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const MT={test:JE("#"),parse:fse,transform:kf.transform},my=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Eu=my("deg"),oc=my("%"),hn=my("px"),hse=my("vh"),pse=my("vw"),UI={...oc,parse:e=>oc.parse(e)/100,transform:e=>oc.transform(e*100)},xp={test:JE("hsl","hue"),parse:B9("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+oc.transform(o0(t))+", "+oc.transform(o0(n))+", "+o0(R0.transform(r))+")"},ba={test:e=>kf.test(e)||MT.test(e)||xp.test(e),parse:e=>kf.test(e)?kf.parse(e):xp.test(e)?xp.parse(e):MT.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?kf.transform(e):xp.transform(e),getAnimatableNone:e=>{const t=ba.parse(e);return t.alpha=0,ba.transform(t)}},gse=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function mse(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(YE))==null?void 0:t.length)||0)+(((n=e.match(gse))==null?void 0:n.length)||0)>0}const z9="number",W9="color",yse="var",vse="var(",LI="${}",xse=/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 P0(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(xse,l=>(ba.test(l)?(r.color.push(a),i.push(W9),n.push(ba.parse(l))):l.startsWith(vse)?(r.var.push(a),i.push(yse),n.push(l)):(r.number.push(a),i.push(z9),n.push(parseFloat(l))),++a,LI)).split(LI);return{values:n,split:s,indexes:r,types:i}}function V9(e){return P0(e).values}function G9(e){const{split:t,types:n}=P0(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const s=n[o];s===z9?a+=o0(i[o]):s===W9?a+=ba.transform(i[o]):a+=i[o]}return a}}const bse=e=>typeof e=="number"?0:ba.test(e)?ba.getAnimatableNone(e):e;function Ase(e){const t=V9(e);return G9(e)(t.map(bse))}const Qu={test:mse,parse:V9,createTransformer:G9,getAnimatableNone:Ase};function fk(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function wse({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=fk(l,s,e+1/3),a=fk(l,s,e),o=fk(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function x1(e,t){return n=>n>0?t:e}const ea=(e,t,n)=>e+(t-e)*n,hk=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Sse=[MT,kf,xp],kse=e=>Sse.find(t=>t.test(e));function OI(e){const t=kse(e);if(!t)return!1;let n=t.parse(e);return t===xp&&(n=wse(n)),n}const jI=(e,t)=>{const n=OI(e),r=OI(t);if(!n||!r)return x1(e,t);const i={...n};return a=>(i.red=hk(n.red,r.red,a),i.green=hk(n.green,r.green,a),i.blue=hk(n.blue,r.blue,a),i.alpha=ea(n.alpha,r.alpha,a),kf.transform(i))},UT=new Set(["none","hidden"]);function Dse(e,t){return UT.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Cse(e,t){return n=>ea(e,t,n)}function QE(e){return typeof e=="number"?Cse:typeof e=="string"?$E(e)?x1:ba.test(e)?jI:Ese:Array.isArray(e)?q9:typeof e=="object"?ba.test(e)?jI:Tse:x1}function q9(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>QE(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function Tse(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=QE(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function _se(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const Ese=(e,t)=>{const n=Qu.createTransformer(t),r=P0(e),i=P0(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?UT.has(e)&&!i.values.length||UT.has(t)&&!r.values.length?Dse(e,t):py(q9(_se(r,i),i.values),n):x1(e,t)};function H9(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ea(e,t,n):QE(e)(e,t)}const Nse=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ji.update(t,n),stop:()=>Ju(t),now:()=>Za.isProcessing?Za.timestamp:wo.now()}},X9=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},b1=2e4;function eN(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<b1;)t+=n,r=e.next(t);return t>=b1?1/0:t}function Fse(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(eN(r),b1);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Zs(i)}}const Rse=5;function Z9(e,t,n){const r=Math.max(t-Rse,0);return C9(n-e(r),t-r)}const oa={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},pk=.001;function Pse({duration:e=oa.duration,bounce:t=oa.bounce,velocity:n=oa.velocity,mass:r=oa.mass}){let i,a,o=1-t;o=cc(oa.minDamping,oa.maxDamping,o),e=cc(oa.minDuration,oa.maxDuration,Zs(e)),o<1?(i=c=>{const u=c*o,d=u*e,h=u-n,f=LT(c,o),g=Math.exp(-d);return pk-h/f*g},a=c=>{const d=c*o*e,h=d*n+n,f=Math.pow(o,2)*Math.pow(c,2)*e,g=Math.exp(-d),y=LT(Math.pow(c,2),o);return(-i(c)+pk>0?-1:1)*((h-f)*g)/y}):(i=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-pk+u*d},a=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const s=5/e,l=Mse(i,a,s);if(e=Wc(e),isNaN(l))return{stiffness:oa.stiffness,damping:oa.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Ise=12;function Mse(e,t,n){let r=n;for(let i=1;i<Ise;i++)r=r-e(r)/t(r);return r}function LT(e,t){return e*Math.sqrt(1-t*t)}const Use=["duration","bounce"],Lse=["stiffness","damping","mass"];function BI(e,t){return t.some(n=>e[n]!==void 0)}function Ose(e){let t={velocity:oa.velocity,stiffness:oa.stiffness,damping:oa.damping,mass:oa.mass,isResolvedFromDuration:!1,...e};if(!BI(e,Lse)&&BI(e,Use))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*cc(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:oa.mass,stiffness:i,damping:a}}else{const n=Pse(e);t={...t,...n,mass:oa.mass},t.isResolvedFromDuration=!0}return t}function A1(e=oa.visualDuration,t=oa.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:f}=Ose({...n,velocity:-Zs(n.velocity||0)}),g=h||0,y=c/(2*Math.sqrt(l*u)),v=o-a,A=Zs(Math.sqrt(l/u)),w=Math.abs(v)<5;r||(r=w?oa.restSpeed.granular:oa.restSpeed.default),i||(i=w?oa.restDelta.granular:oa.restDelta.default);let S;if(y<1){const E=LT(A,y);S=T=>{const D=Math.exp(-y*A*T);return o-D*((g+y*A*v)/E*Math.sin(E*T)+v*Math.cos(E*T))}}else if(y===1)S=E=>o-Math.exp(-A*E)*(v+(g+A*v)*E);else{const E=A*Math.sqrt(y*y-1);S=T=>{const D=Math.exp(-y*A*T),I=Math.min(E*T,300);return o-D*((g+y*A*v)*Math.sinh(I)+E*v*Math.cosh(I))/E}}const _={calculatedDuration:f&&d||null,next:E=>{const T=S(E);if(f)s.done=E>=d;else{let D=E===0?g:0;y<1&&(D=E===0?Wc(g):Z9(S,E,T));const I=Math.abs(D)<=r,j=Math.abs(o-T)<=i;s.done=I&&j}return s.value=s.done?o:T,s},toString:()=>{const E=Math.min(eN(_),b1),T=X9(D=>_.next(E*D).value,E,30);return E+"ms "+T},toTransition:()=>{}};return _}A1.applyToOptions=e=>{const t=Fse(e,100,A1);return e.ease=t.ease,e.duration=Wc(t.duration),e.type="keyframes",e};function OT({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},f=I=>s!==void 0&&I<s||l!==void 0&&I>l,g=I=>s===void 0?l:l===void 0||Math.abs(s-I)<Math.abs(l-I)?s:l;let y=n*t;const v=d+y,A=o===void 0?v:o(v);A!==v&&(y=A-d);const w=I=>-y*Math.exp(-I/r),S=I=>A+w(I),_=I=>{const j=w(I),R=S(I);h.done=Math.abs(j)<=c,h.value=h.done?A:R};let E,T;const D=I=>{f(h.value)&&(E=I,T=A1({keyframes:[h.value,g(h.value)],velocity:Z9(S,I,h.value),damping:i,stiffness:a,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:I=>{let j=!1;return!T&&E===void 0&&(j=!0,_(I),D(I)),E!==void 0&&I>=E?T.next(I-E):(!j&&_(I),h)}}}function jse(e,t,n){const r=[],i=n||Zc.mix||H9,a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Ys:t;s=py(l,s)}r.push(s)}return r}function Bse(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(qE(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=jse(t,r,i),l=s.length,c=u=>{if(o&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const h=F0(e[d],e[d+1],u);return s[d](h)};return n?u=>c(cc(e[0],e[a-1],u)):c}function zse(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=F0(0,t,r);e.push(ea(n,1,i))}}function Wse(e){const t=[0];return zse(t,e.length-1),t}function Vse(e,t){return e.map(n=>n*t)}function Gse(e,t){return e.map(()=>t||M9).splice(0,e.length-1)}function s0({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=tse(r)?r.map(II):II(r),a={done:!1,value:t[0]},o=Vse(n&&n.length===t.length?n:Wse(t),e),s=Bse(o,t,{ease:Array.isArray(i)?i:Gse(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}const qse=e=>e!==null;function tN(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(qse),s=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!s||r===void 0?a[s]:r}const Hse={decay:OT,inertia:OT,tween:s0,keyframes:s0,spring:A1};function K9(e){typeof e.type=="string"&&(e.type=Hse[e.type])}class nN{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Xse=e=>e/100;class rN extends nN{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==wo.now()&&this.tick(wo.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;K9(t);const{type:n=s0,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=t;let{keyframes:s}=t;const l=n||s0;l!==s0&&typeof s[0]!="number"&&(this.mixKeyframes=py(Xse,H9(s[0],s[1])),s=[0,100]);const c=l({...t,keyframes:s});a==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=eN(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:f,type:g,onUpdate:y,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const A=this.currentTime-c*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?A<0:A>i;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,_=r;if(d){const I=Math.min(this.currentTime,i)/s;let j=Math.floor(I),R=I%1;!R&&I>=1&&(R=1),R===1&&j--,j=Math.min(j,d+1),!!(j%2)&&(h==="reverse"?(R=1-R,f&&(R-=f/s)):h==="mirror"&&(_=o)),S=cc(0,1,R)*s}const E=w?{done:!1,value:u[0]}:_.next(S);a&&(E.value=a(E.value));let{done:T}=E;!w&&l!==null&&(T=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return D&&g!==OT&&(E.value=tN(u,this.options,v,this.speed)),y&&y(E.value),D&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return Zs(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Zs(t)}get time(){return Zs(this.currentTime)}set time(t){var n;t=Wc(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(wo.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Zs(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=Nse,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(a=(i=this.options).onPlay)==null||a.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(wo.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Zse(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Df=e=>e*180/Math.PI,jT=e=>{const t=Df(Math.atan2(e[1],e[0]));return BT(t)},Kse={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:jT,rotateZ:jT,skewX:e=>Df(Math.atan(e[1])),skewY:e=>Df(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},BT=e=>(e=e%360,e<0&&(e+=360),e),zI=jT,WI=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),VI=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),$se={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:WI,scaleY:VI,scale:e=>(WI(e)+VI(e))/2,rotateX:e=>BT(Df(Math.atan2(e[6],e[5]))),rotateY:e=>BT(Df(Math.atan2(-e[2],e[0]))),rotateZ:zI,rotate:zI,skewX:e=>Df(Math.atan(e[4])),skewY:e=>Df(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function zT(e){return e.includes("scale")?1:0}function WT(e,t){if(!e||e==="none")return zT(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=$se,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Kse,i=s}if(!i)return zT(t);const a=r[t],o=i[1].split(",").map(Jse);return typeof a=="function"?a(o):o[a]}const Yse=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return WT(n,t)};function Jse(e){return parseFloat(e.trim())}const Ag=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wg=new Set(Ag),GI=e=>e===bg||e===hn,Qse=new Set(["x","y","z"]),ele=Ag.filter(e=>!Qse.has(e));function tle(e){const t=[];return ele.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Wu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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:(e,{transform:t})=>WT(t,"x"),y:(e,{transform:t})=>WT(t,"y")};Wu.translateX=Wu.x;Wu.translateY=Wu.y;const Ff=new Set;let VT=!1,GT=!1,qT=!1;function $9(){if(GT){const e=Array.from(Ff).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=tle(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,o])=>{var s;(s=r.getValue(a))==null||s.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}GT=!1,VT=!1,Ff.forEach(e=>e.complete(qT)),Ff.clear()}function Y9(){Ff.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(GT=!0)})}function nle(){qT=!0,Y9(),$9(),qT=!1}class iN{constructor(t,n,r,i,a,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Ff.add(this),VT||(VT=!0,ji.read(Y9),ji.resolveKeyframes($9))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),o=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const s=r.readValue(n,o);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=o),i&&a===void 0&&i.set(t[0])}Zse(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ff.delete(this)}cancel(){this.state==="scheduled"&&(Ff.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const rle=e=>e.startsWith("--");function ile(e,t,n){rle(t)?e.style.setProperty(t,n):e.style[t]=n}const ale=HE(()=>window.ScrollTimeline!==void 0),ole={};function sle(e,t){const n=HE(e);return()=>ole[t]??n()}const J9=sle(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Um=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,qI={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Um([0,.65,.55,1]),circOut:Um([.55,0,1,.45]),backIn:Um([.31,.01,.66,-.59]),backOut:Um([.33,1.53,.69,.99])};function Q9(e,t){if(e)return typeof e=="function"?J9()?X9(e,t):"ease-out":U9(e)?Um(e):Array.isArray(e)?e.map(n=>Q9(n,t)||qI.easeOut):qI[e]}function lle(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=Q9(s,i);Array.isArray(d)&&(u.easing=d);const h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(u,h)}function e7(e){return typeof e=="function"&&"applyToOptions"in e}function cle({type:e,...t}){return e7(e)&&J9()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class ule extends nN{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=t,qE(typeof t.type!="string");const c=cle(t);this.animation=lle(n,r,i,c,a),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const u=tN(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(u):ile(n,r,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Zs(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Zs(t)}get time(){return Zs(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Wc(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&ale()?(this.animation.timeline=t,Ys):n(this)}}const t7={anticipate:R9,backInOut:F9,circInOut:I9};function dle(e){return e in t7}function fle(e){typeof e.ease=="string"&&dle(e.ease)&&(e.ease=t7[e.ease])}const gk=10;class hle extends ule{constructor(t){fle(t),K9(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const s=new rN({...o,autoplay:!1}),l=Math.max(gk,wo.now()-this.startTime),c=cc(0,gk,l-gk);n.setWithVelocity(s.sample(Math.max(0,l-c)).value,s.sample(l).value,c),s.stop()}}const HI=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qu.test(e)||e==="0")&&!e.startsWith("url("));function ple(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function gle(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=HI(i,t),s=HI(a,t);return!o||!s?!1:ple(e)||(n==="spring"||e7(n))&&r}function HT(e){e.duration=0,e.type="keyframes"}const mle=new Set(["opacity","clipPath","filter","transform"]),yle=HE(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function vle(e){var u;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return yle()&&n&&mle.has(n)&&(n!=="transform"||!c)&&!l&&!r&&i!=="mirror"&&a!==0&&o!=="inertia"}const xle=40;class ble extends nN{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",keyframes:s,name:l,motionValue:c,element:u,...d}){var g;super(),this.stop=()=>{var y,v;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=wo.now();const h={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,name:l,motionValue:c,element:u,...d},f=(u==null?void 0:u.KeyframeResolver)||iN;this.keyframeResolver=new f(s,(y,v,A)=>this.onKeyframesResolved(y,v,h,!A),l,c,u),(g=this.keyframeResolver)==null||g.scheduleResolve()}onKeyframesResolved(t,n,r,i){var v,A;this.keyframeResolver=void 0;const{name:a,type:o,velocity:s,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=wo.now(),gle(t,a,o,s)||((Zc.instantAnimations||!l)&&(u==null||u(tN(t,r,n))),t[0]=t[t.length-1],HT(r),r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>xle?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},f=!c&&vle(h),g=(A=(v=h.motionValue)==null?void 0:v.owner)==null?void 0:A.current,y=f?new hle({...h,element:g}):new rN(h);y.finished.then(()=>{this.notifyFinished()}).catch(Ys),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),nle()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function n7(e,t,n,r=0,i=1){const a=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n=="function"?n(a,o):i===1?a*r:s-a*r}const Ale=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wle(e){const t=Ale.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function r7(e,t,n=1){const[r,i]=wle(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return S9(o)?parseFloat(o):o}return $E(i)?r7(i,t,n+1):i}const Sle={type:"spring",stiffness:500,damping:25,restSpeed:10},kle=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Dle={type:"keyframes",duration:.8},Cle={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tle=(e,{keyframes:t})=>t.length>2?Dle:wg.has(e)?e.startsWith("scale")?kle(t[1]):Sle:Cle,_le=e=>e!==null;function Ele(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(_le),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}function aN(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}function Nle({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const oN=(e,t,n,r={},i,a)=>o=>{const s=aN(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Wc(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:h=>{t.set(h),s.onUpdate&&s.onUpdate(h)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Nle(s)||Object.assign(u,Tle(e,u)),u.duration&&(u.duration=Wc(u.duration)),u.repeatDelay&&(u.repeatDelay=Wc(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(HT(u),u.delay===0&&(d=!0)),(Zc.instantAnimations||Zc.skipAnimations)&&(d=!0,HT(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){const h=Ele(u.keyframes,s);if(h!==void 0){ji.update(()=>{u.onUpdate(h),u.onComplete()});return}}return s.isSync?new rN(u):new ble(u)};function XI(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function sN(e,t,n,r){if(typeof t=="function"){const[i,a]=XI(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=XI(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function jp(e,t,n){const r=e.getProps();return sN(r,t,n!==void 0?n:r.custom,e)}const i7=new Set(["width","height","top","left","right","bottom",...Ag]),ZI=30,Fle=e=>!isNaN(parseFloat(e));class Rle{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const i=wo.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=wo.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Fle(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new XE);const r=this.events[t].add(n);return t==="change"?()=>{r(),ji.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=wo.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ZI)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ZI);return C9(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Yp(e,t){return new Rle(e,t)}const XT=e=>Array.isArray(e);function Ple(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Yp(n))}function Ile(e){return XT(e)?e[e.length-1]||0:e}function Mle(e,t){const n=jp(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const s=Ile(a[o]);Ple(e,o,s)}}const oo=e=>!!(e&&e.getVelocity);function Ule(e){return!!(oo(e)&&e.add)}function ZT(e,t){const n=e.getValue("willChange");if(Ule(n))return n.add(t);if(!n&&Zc.WillChange){const r=new Zc.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function lN(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Lle="framerAppearId",a7="data-"+lN(Lle);function o7(e){return e.props[a7]}function Ole({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function s7(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const u in s){const d=e.getValue(u,e.latestValues[u]??null),h=s[u];if(h===void 0||c&&Ole(c,u))continue;const f={delay:n,...aN(a||{},u)},g=d.get();if(g!==void 0&&!d.isAnimating&&!Array.isArray(h)&&h===g&&!f.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const A=o7(e);if(A){const w=window.MotionHandoffAnimation(A,u,ji);w!==null&&(f.startTime=w,y=!0)}}ZT(e,u),d.start(oN(u,d,h,e.shouldReduceMotion&&i7.has(u)?{type:!1}:f,e,y));const v=d.animation;v&&l.push(v)}return o&&Promise.all(l).then(()=>{ji.update(()=>{o&&Mle(e,o)})}),l}function KT(e,t,n={}){var l;const r=jp(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(s7(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=i;return jle(e,t,c,u,d,h,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[c,u]=s==="beforeChildren"?[a,o]:[o,a];return c().then(()=>u())}else return Promise.all([a(),o(n.delay)])}function jle(e,t,n=0,r=0,i=0,a=1,o){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(KT(l,t,{...o,delay:n+(typeof r=="function"?0:r)+n7(e.variantChildren,l,r,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function Ble(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>KT(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=KT(e,t,n);else{const i=typeof t=="function"?jp(e,t,n.custom):t;r=Promise.all(s7(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const zle={test:e=>e==="auto",parse:e=>e},l7=e=>t=>t.test(e),c7=[bg,hn,oc,Eu,pse,hse,zle],KI=e=>c7.find(l7(e));function Wle(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||D9(e):!0}const Vle=new Set(["brightness","contrast","saturate","opacity"]);function Gle(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(YE)||[];if(!r)return e;const i=n.replace(r,"");let a=Vle.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const qle=/\b([a-z-]*)\(.*?\)/gu,$T={...Qu,getAnimatableNone:e=>{const t=e.match(qle);return t?t.map(Gle).join(" "):e}},$I={...bg,transform:Math.round},Hle={rotate:Eu,rotateX:Eu,rotateY:Eu,rotateZ:Eu,scale:ux,scaleX:ux,scaleY:ux,scaleZ:ux,skew:Eu,skewX:Eu,skewY:Eu,distance:hn,translateX:hn,translateY:hn,translateZ:hn,x:hn,y:hn,z:hn,perspective:hn,transformPerspective:hn,opacity:R0,originX:UI,originY:UI,originZ:hn},cN={borderWidth:hn,borderTopWidth:hn,borderRightWidth:hn,borderBottomWidth:hn,borderLeftWidth:hn,borderRadius:hn,radius:hn,borderTopLeftRadius:hn,borderTopRightRadius:hn,borderBottomRightRadius:hn,borderBottomLeftRadius:hn,width:hn,maxWidth:hn,height:hn,maxHeight:hn,top:hn,right:hn,bottom:hn,left:hn,inset:hn,insetBlock:hn,insetBlockStart:hn,insetBlockEnd:hn,insetInline:hn,insetInlineStart:hn,insetInlineEnd:hn,padding:hn,paddingTop:hn,paddingRight:hn,paddingBottom:hn,paddingLeft:hn,paddingBlock:hn,paddingBlockStart:hn,paddingBlockEnd:hn,paddingInline:hn,paddingInlineStart:hn,paddingInlineEnd:hn,margin:hn,marginTop:hn,marginRight:hn,marginBottom:hn,marginLeft:hn,marginBlock:hn,marginBlockStart:hn,marginBlockEnd:hn,marginInline:hn,marginInlineStart:hn,marginInlineEnd:hn,backgroundPositionX:hn,backgroundPositionY:hn,...Hle,zIndex:$I,fillOpacity:R0,strokeOpacity:R0,numOctaves:$I},Xle={...cN,color:ba,backgroundColor:ba,outlineColor:ba,fill:ba,stroke:ba,borderColor:ba,borderTopColor:ba,borderRightColor:ba,borderBottomColor:ba,borderLeftColor:ba,filter:$T,WebkitFilter:$T},u7=e=>Xle[e];function d7(e,t){let n=u7(e);return n!==$T&&(n=Qu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Zle=new Set(["auto","none","0"]);function Kle(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!Zle.has(a)&&P0(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=d7(n,i)}class $le extends iN{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),$E(d))){const h=r7(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!i7.has(r)||t.length!==2)return;const[i,a]=t,o=KI(i),s=KI(a),l=MI(i),c=MI(a);if(l!==c&&Wu[r]){this.needsMeasurement=!0;return}if(o!==s)if(GI(o)&&GI(s))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else Wu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Wle(t[i]))&&r.push(i);r.length&&Kle(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Wu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var s;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,o=r[a];r[a]=Wu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Yle(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const f7=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function YT(e){return k9(e)&&"offsetHeight"in e}const{schedule:uN}=L9(queueMicrotask,!1),_l={x:!1,y:!1};function h7(){return _l.x||_l.y}function Jle(e){return e==="x"||e==="y"?_l[e]?null:(_l[e]=!0,()=>{_l[e]=!1}):_l.x||_l.y?null:(_l.x=_l.y=!0,()=>{_l.x=_l.y=!1})}function p7(e,t){const n=Yle(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function YI(e){return!(e.pointerType==="touch"||h7())}function Qle(e,t,n={}){const[r,i,a]=p7(e,n),o=s=>{if(!YI(s))return;const{target:l}=s,c=t(l,s);if(typeof c!="function"||!l)return;const u=d=>{YI(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return r.forEach(s=>{s.addEventListener("pointerenter",o,i)}),a}const g7=(e,t)=>t?e===t?!0:g7(e,t.parentElement):!1,dN=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ece=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function m7(e){return ece.has(e.tagName)||e.isContentEditable===!0}const bb=new WeakSet;function JI(e){return t=>{t.key==="Enter"&&e(t)}}function mk(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const tce=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=JI(()=>{if(bb.has(n))return;mk(n,"down");const i=JI(()=>{mk(n,"up")}),a=()=>mk(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function QI(e){return dN(e)&&!h7()}function nce(e,t,n={}){const[r,i,a]=p7(e,n),o=s=>{const l=s.currentTarget;if(!QI(s))return;bb.add(l);const c=t(l,s),u=(f,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),bb.has(l)&&bb.delete(l),QI(f)&&typeof c=="function"&&c(f,{success:g})},d=f=>{u(f,l===window||l===document||n.useGlobalTarget||g7(l,f.target))},h=f=>{u(f,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",h,i)};return r.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",o,i),YT(s)&&(s.addEventListener("focus",c=>tce(c,i)),!m7(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function y7(e){return k9(e)&&"ownerSVGElement"in e}function rce(e){return y7(e)&&e.tagName==="svg"}const ice=[...c7,ba,Qu],ace=e=>ice.find(l7(e)),e8=()=>({translate:0,scale:1,origin:0,originPoint:0}),bp=()=>({x:e8(),y:e8()}),t8=()=>({min:0,max:0}),Ca=()=>({x:t8(),y:t8()}),JT={current:null},v7={current:!1},oce=typeof window<"u";function sce(){if(v7.current=!0,!!oce)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>JT.current=e.matches;e.addEventListener("change",t),t()}else JT.current=!1}const lce=new WeakMap;function WA(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function I0(e){return typeof e=="string"||Array.isArray(e)}const fN=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hN=["initial",...fN];function VA(e){return WA(e.animate)||hN.some(t=>I0(e[t]))}function x7(e){return!!(VA(e)||e.variants)}function cce(e,t,n){for(const r in t){const i=t[r],a=n[r];if(oo(i))e.addValue(r,i);else if(oo(a))e.addValue(r,Yp(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Yp(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const n8=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let w1={};function b7(e){w1=e}function uce(){return w1}class dce{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=iN,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=wo.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ji.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=VA(n),this.isVariantNode=x7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const f=d[h];l[h]!==void 0&&oo(f)&&f.set(l[h])}}mount(t){var n;this.current=t,lce.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(v7.current||sce(),this.shouldReduceMotion=JT.current),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ju(this.notifyUpdate),Ju(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=wg.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&ji.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;typeof window<"u"&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.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 w1){const n=w1[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ca()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<n8.length;r++){const i=n8[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=cce(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Yp(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(S9(r)||D9(r))?r=parseFloat(r):!ace(r)&&Qu.test(n)&&(r=d7(t,n)),this.setBaseTarget(t,oo(r)?r.get():r)),oo(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=sN(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!oo(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new XE),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){uN.render(this.render)}}class A7 extends dce{constructor(){super(...arguments),this.KeyframeResolver=$le}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;oo(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class gd{constructor(t){this.isMounted=!1,this.node=t}update(){}}function w7({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function fce({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function hce(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function yk(e){return e===void 0||e===1}function QT({scale:e,scaleX:t,scaleY:n}){return!yk(e)||!yk(t)||!yk(n)}function vf(e){return QT(e)||S7(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function S7(e){return r8(e.x)||r8(e.y)}function r8(e){return e&&e!=="0%"}function S1(e,t,n){const r=e-n,i=t*r;return n+i}function i8(e,t,n,r,i){return i!==void 0&&(e=S1(e,i,r)),S1(e,n,r)+t}function e_(e,t=0,n=1,r,i){e.min=i8(e.min,t,n,r,i),e.max=i8(e.max,t,n,r,i)}function k7(e,{x:t,y:n}){e_(e.x,t.translate,t.scale,t.originPoint),e_(e.y,n.translate,n.scale,n.originPoint)}const a8=.999999999999,o8=1.0000000000001;function pce(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&wp(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,k7(e,o)),r&&vf(a.latestValues)&&wp(e,a.latestValues))}t.x<o8&&t.x>a8&&(t.x=1),t.y<o8&&t.y>a8&&(t.y=1)}function Ap(e,t){e.min=e.min+t,e.max=e.max+t}function s8(e,t,n,r,i=.5){const a=ea(e.min,e.max,i);e_(e,t,n,a,r)}function wp(e,t){s8(e.x,t.x,t.scaleX,t.scale,t.originX),s8(e.y,t.y,t.scaleY,t.scale,t.originY)}function D7(e,t){return w7(hce(e.getBoundingClientRect(),t))}function gce(e,t,n){const r=D7(e,n),{scroll:i}=t;return i&&(Ap(r.x,i.offset.x),Ap(r.y,i.offset.y)),r}const mce={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yce=Ag.length;function vce(e,t,n){let r="",i=!0;for(let a=0;a<yce;a++){const o=Ag[a],s=e[o];if(s===void 0)continue;let l=!0;if(typeof s=="number")l=s===(o.startsWith("scale")?1:0);else{const c=parseFloat(s);l=o.startsWith("scale")?c===1:c===0}if(!l||n){const c=f7(s,cN[o]);if(!l){i=!1;const u=mce[o]||o;r+=`${u}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function pN(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const l in t){const c=t[l];if(wg.has(l)){o=!0;continue}else if(j9(l)){i[l]=c;continue}else{const u=f7(c,cN[l]);l.startsWith("origin")?(s=!0,a[l]=u):r[l]=u}}if(t.transform||(o||n?r.transform=vce(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:c="50%",originZ:u=0}=a;r.transformOrigin=`${l} ${c} ${u}`}}function C7(e,{style:t,vars:n},r,i){const a=e.style;let o;for(o in t)a[o]=t[o];i==null||i.applyProjectionStyles(a,r);for(o in n)a.setProperty(o,n[o])}function l8(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fm={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(hn.test(e))e=parseFloat(e);else return e;const n=l8(e,t.target.x),r=l8(e,t.target.y);return`${n}% ${r}%`}},xce={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Qu.parse(e);if(i.length>5)return r;const a=Qu.createTransformer(e),o=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=l;const c=ea(s,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),a(i)}},t_={borderRadius:{...fm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fm,borderTopRightRadius:fm,borderBottomLeftRadius:fm,borderBottomRightRadius:fm,boxShadow:xce};function T7(e,{layout:t,layoutId:n}){return wg.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!t_[e]||e==="opacity")}function gN(e,t,n){var o;const r=e.style,i=t==null?void 0:t.style,a={};if(!r)return a;for(const s in r)(oo(r[s])||i&&oo(i[s])||T7(s,e)||((o=n==null?void 0:n.getValue(s))==null?void 0:o.liveStyle)!==void 0)&&(a[s]=r[s]);return a}function bce(e){return window.getComputedStyle(e)}class Ace extends A7{constructor(){super(...arguments),this.type="html",this.renderInstance=C7}readValueFromInstance(t,n){var r;if(wg.has(n))return(r=this.projection)!=null&&r.isProjecting?zT(n):Yse(t,n);{const i=bce(t),a=(j9(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return D7(t,n)}build(t,n,r){pN(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return gN(t,n,r)}}const wce={offset:"stroke-dashoffset",array:"stroke-dasharray"},Sce={offset:"strokeDashoffset",array:"strokeDasharray"};function kce(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?wce:Sce;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}const Dce=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function _7(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,c,u){if(pN(e,s,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const f of Dce)d[f]!==void 0&&(h[f]=d[f],delete d[f]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&kce(d,i,a,o,!1)}const E7=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"]),N7=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Cce(e,t,n,r){C7(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(E7.has(i)?i:lN(i),t.attrs[i])}function F7(e,t,n){const r=gN(e,t,n);for(const i in e)if(oo(e[i])||oo(t[i])){const a=Ag.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}class Tce extends A7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ca}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(wg.has(n)){const r=u7(n);return r&&r.default||0}return n=E7.has(n)?n:lN(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return F7(t,n,r)}build(t,n,r){_7(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Cce(t,n,r,i)}mount(t){this.isSVGTag=N7(t.tagName),super.mount(t)}}const _ce=hN.length;function R7(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?R7(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<_ce;n++){const r=hN[n],i=e.props[r];(I0(i)||i===!1)&&(t[r]=i)}return t}function P7(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Ece=[...fN].reverse(),Nce=fN.length;function Fce(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Ble(e,n,r)))}function Rce(e){let t=Fce(e),n=c8(),r=!0;const i=l=>(c,u)=>{var h;const d=jp(e,u,l==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(d){const{transition:f,transitionEnd:g,...y}=d;c={...c,...y,...g}}return c};function a(l){t=l(e)}function o(l){const{props:c}=e,u=R7(e.parent)||{},d=[],h=new Set;let f={},g=1/0;for(let v=0;v<Nce;v++){const A=Ece[v],w=n[A],S=c[A]!==void 0?c[A]:u[A],_=I0(S),E=A===l?w.isActive:null;E===!1&&(g=v);let T=S===u[A]&&S!==c[A]&&_;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),w.protectedKeys={...f},!w.isActive&&E===null||!S&&!w.prevProp||WA(S)||typeof S=="boolean")continue;const D=Pce(w.prevProp,S);let I=D||A===l&&w.isActive&&!T&&_||v>g&&_,j=!1;const R=Array.isArray(S)?S:[S];let z=R.reduce(i(A),{});E===!1&&(z={});const{prevResolvedValues:B={}}=w,W={...B,...z},P=X=>{I=!0,h.has(X)&&(j=!0,h.delete(X)),w.needsAnimating[X]=!0;const q=e.getValue(X);q&&(q.liveStyle=!1)};for(const X in W){const q=z[X],te=B[X];if(f.hasOwnProperty(X))continue;let J=!1;XT(q)&&XT(te)?J=!P7(q,te):J=q!==te,J?q!=null?P(X):h.add(X):q!==void 0&&h.has(X)?P(X):w.protectedKeys[X]=!0}w.prevProp=S,w.prevResolvedValues=z,w.isActive&&(f={...f,...z}),r&&e.blockInitialAnimation&&(I=!1);const Z=T&&D;I&&(!Z||j)&&d.push(...R.map(X=>{const q={type:A};if(typeof X=="string"&&r&&!Z&&e.manuallyAnimateOnMount&&e.parent){const{parent:te}=e,J=jp(te,X);if(te.enteringChildren&&J){const{delayChildren:ee}=J.transition||{};q.delay=n7(te.enteringChildren,e,ee)}}return{animation:X,options:q}}))}if(h.size){const v={};if(typeof c.initial!="boolean"){const A=jp(e,Array.isArray(c.initial)?c.initial[0]:c.initial);A&&A.transition&&(v.transition=A.transition)}h.forEach(A=>{const w=e.getBaseTarget(A),S=e.getValue(A);S&&(S.liveStyle=!0),v[A]=w??null}),d.push({animation:v})}let y=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function s(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(h=>{var f;return(f=h.animationState)==null?void 0:f.setActive(l,c)}),n[l].isActive=c;const u=o(l);for(const h in n)n[h].protectedKeys={};return u}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=c8()}}}function Pce(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!P7(t,e):!1}function Jd(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function c8(){return{animate:Jd(!0),whileInView:Jd(),whileHover:Jd(),whileTap:Jd(),whileDrag:Jd(),whileFocus:Jd(),exit:Jd()}}function u8(e,t){e.min=t.min,e.max=t.max}function ml(e,t){u8(e.x,t.x),u8(e.y,t.y)}function d8(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const I7=1e-4,Ice=1-I7,Mce=1+I7,M7=.01,Uce=0-M7,Lce=0+M7;function So(e){return e.max-e.min}function Oce(e,t,n){return Math.abs(e-t)<=n}function f8(e,t,n,r=.5){e.origin=r,e.originPoint=ea(t.min,t.max,e.origin),e.scale=So(n)/So(t),e.translate=ea(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ice&&e.scale<=Mce||isNaN(e.scale))&&(e.scale=1),(e.translate>=Uce&&e.translate<=Lce||isNaN(e.translate))&&(e.translate=0)}function l0(e,t,n,r){f8(e.x,t.x,n.x,r?r.originX:void 0),f8(e.y,t.y,n.y,r?r.originY:void 0)}function h8(e,t,n){e.min=n.min+t.min,e.max=e.min+So(t)}function jce(e,t,n){h8(e.x,t.x,n.x),h8(e.y,t.y,n.y)}function p8(e,t,n){e.min=t.min-n.min,e.max=e.min+So(t)}function k1(e,t,n){p8(e.x,t.x,n.x),p8(e.y,t.y,n.y)}function g8(e,t,n,r,i){return e-=t,e=S1(e,1/n,r),i!==void 0&&(e=S1(e,1/i,r)),e}function Bce(e,t=0,n=1,r=.5,i,a=e,o=e){if(oc.test(t)&&(t=parseFloat(t),t=ea(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=ea(a.min,a.max,r);e===a&&(s-=t),e.min=g8(e.min,t,n,s,i),e.max=g8(e.max,t,n,s,i)}function m8(e,t,[n,r,i],a,o){Bce(e,t[n],t[r],t[i],t.scale,a,o)}const zce=["x","scaleX","originX"],Wce=["y","scaleY","originY"];function y8(e,t,n,r){m8(e.x,t,zce,n?n.x:void 0,r?r.x:void 0),m8(e.y,t,Wce,n?n.y:void 0,r?r.y:void 0)}function v8(e){return e.translate===0&&e.scale===1}function U7(e){return v8(e.x)&&v8(e.y)}function x8(e,t){return e.min===t.min&&e.max===t.max}function Vce(e,t){return x8(e.x,t.x)&&x8(e.y,t.y)}function b8(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function L7(e,t){return b8(e.x,t.x)&&b8(e.y,t.y)}function A8(e){return So(e.x)/So(e.y)}function w8(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ws(e){return[e("x"),e("y")]}function Gce(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:h,skewX:f,skewY:g}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),f&&(r+=`skewX(${f}deg) `),g&&(r+=`skewY(${g}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const O7=["TopLeft","TopRight","BottomLeft","BottomRight"],qce=O7.length,S8=e=>typeof e=="string"?parseFloat(e):e,k8=e=>typeof e=="number"||hn.test(e);function Hce(e,t,n,r,i,a){i?(e.opacity=ea(0,n.opacity??1,Xce(r)),e.opacityExit=ea(t.opacity??1,0,Zce(r))):a&&(e.opacity=ea(t.opacity??1,n.opacity??1,r));for(let o=0;o<qce;o++){const s=`border${O7[o]}Radius`;let l=D8(t,s),c=D8(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||k8(l)===k8(c)?(e[s]=Math.max(ea(S8(l),S8(c),r),0),(oc.test(c)||oc.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=ea(t.rotate||0,n.rotate||0,r))}function D8(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Xce=j7(0,.5,P9),Zce=j7(.5,.95,Ys);function j7(e,t,n){return r=>r<e?0:r>t?1:n(F0(e,t,r))}function Kce(e,t,n){const r=oo(e)?e:Yp(e);return r.start(oN("",r,t,n)),r.animation}function M0(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const $ce=(e,t)=>e.depth-t.depth;class Yce{constructor(){this.children=[],this.isDirty=!1}add(t){VE(this.children,t),this.isDirty=!0}remove(t){GE(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort($ce),this.isDirty=!1,this.children.forEach(t)}}function Jce(e,t){const n=wo.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Ju(r),e(a-t))};return ji.setup(r,!0),()=>Ju(r)}function Ab(e){return oo(e)?e.get():e}class Qce{constructor(){this.members=[]}add(t){VE(this.members,t),t.scheduleRender()}remove(t){if(GE(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){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,n&&(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:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.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)}}const wb={hasAnimatedSinceResize:!0,hasEverUpdated:!1},vk=["","X","Y","Z"],eue=1e3;let tue=0;function xk(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function B7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=o7(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ji,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&B7(r)}function z7({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=tue++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(iue),this.nodes.forEach(lue),this.nodes.forEach(cue),this.nodes.forEach(aue)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yce)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new XE),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const l=this.eventHandlers.get(o);l&&l.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=y7(o)&&!rce(o),this.instance=o;const{layoutId:s,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let u,d=0;const h=()=>this.root.updateBlockedByResize=!1;ji.read(()=>{d=window.innerWidth}),e(o,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,u&&u(),u=Jce(h,250),wb.hasAnimatedSinceResize&&(wb.hasAnimatedSinceResize=!1,this.nodes.forEach(_8)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&c&&(s||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||pue,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=c.getProps(),A=!this.targetLayout||!L7(this.targetLayout,f),w=!d&&h;if(this.options.layoutRoot||this.resumeFrom||w||d&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...aN(g,"layout"),onPlay:y,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(u,w)}else d||_8(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ju(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(uue),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&B7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(C8);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(T8);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sue),this.nodes.forEach(nue),this.nodes.forEach(rue)):this.nodes.forEach(T8),this.clearAllSnapshots();const s=wo.now();Za.delta=cc(0,1e3/60,s-Za.timestamp),Za.timestamp=s,Za.isProcessing=!0,uk.update.process(Za),uk.preRender.process(Za),uk.render.process(Za),Za.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,uN.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(oue),this.sharedNodes.forEach(due)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ji.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ji.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!So(this.snapshot.measuredBox.x)&&!So(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ca(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!U7(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(s||vf(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return o&&(l=this.removeTransform(l)),gue(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return Ca();const s=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(mue))){const{scroll:u}=this.root;u&&(Ap(s.x,u.offset.x),Ap(s.y,u.offset.y))}return s}removeElementScroll(o){var l;const s=Ca();if(ml(s,o),(l=this.scroll)!=null&&l.wasRoot)return s;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:h}=u;u!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&ml(s,o),Ap(s.x,d.offset.x),Ap(s.y,d.offset.y))}return s}applyTransform(o,s=!1){const l=Ca();ml(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&wp(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),vf(u.latestValues)&&wp(l,u.latestValues)}return vf(this.latestValues)&&wp(l,this.latestValues),l}removeTransform(o){const s=Ca();ml(s,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!vf(c.latestValues))continue;QT(c.latestValues)&&c.updateSnapshot();const u=Ca(),d=c.measurePageBox();ml(u,d),y8(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return vf(this.latestValues)&&y8(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Za.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var f;const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=Za.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ca(),this.targetWithTransforms=Ca()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),jce(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ml(this.target,this.layout.layoutBox),k7(this.target,this.targetDelta)):ml(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||QT(this.parent.latestValues)||S7(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,s,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ca(),this.relativeTargetOrigin=Ca(),k1(this.relativeTargetOrigin,s,l),ml(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var g;const o=this.getLead(),s=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Za.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;ml(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;pce(this.layoutCorrected,this.treeScale,this.path,s),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Ca());const{target:f}=o;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(d8(this.prevProjectionDelta.x,this.projectionDelta.x),d8(this.prevProjectionDelta.y,this.projectionDelta.y)),l0(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!w8(this.projectionDelta.x,this.prevProjectionDelta.x)||!w8(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var s;if((s=this.options.visualElement)==null||s.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=bp(),this.projectionDelta=bp(),this.projectionDeltaWithTransform=bp()}setAnimationOrigin(o,s=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=bp();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const h=Ca(),f=l?l.source:void 0,g=this.layout?this.layout.source:void 0,y=f!==g,v=this.getStack(),A=!v||v.members.length<=1,w=!!(y&&!A&&this.options.crossfade===!0&&!this.path.some(hue));this.animationProgress=0;let S;this.mixTargetDelta=_=>{const E=_/1e3;E8(d.x,o.x,E),E8(d.y,o.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(k1(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),fue(this.relativeTarget,this.relativeTargetOrigin,h,E),S&&Vce(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Ca()),ml(S,this.relativeTarget)),y&&(this.animationValues=u,Hce(u,c,this.latestValues,E,w,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var s,l,c;this.notifyListeners("animationStart"),(s=this.currentAnimation)==null||s.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(Ju(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ji.update(()=>{wb.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Yp(0)),this.currentAnimation=Kce(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(eue),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:u}=o;if(!(!s||!l||!c)){if(this!==o&&this.layout&&c&&W7(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ca();const d=So(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=So(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}ml(s,l),wp(s,u),l0(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Qce),this.sharedNodes.get(o).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())==null?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())==null?void 0:s.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const c={};l.z&&xk("z",o,c,this.animationValues);for(let u=0;u<vk.length;u++)xk(`rotate${vk[u]}`,o,c,this.animationValues),xk(`skew${vk[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Ab(s==null?void 0:s.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Ab(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!vf(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=Gce(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),o.transform=d;const{x:h,y:f}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${f.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in t_){if(u[g]===void 0)continue;const{correct:y,applyTo:v,isCSSVariable:A}=t_[g],w=d==="none"?u[g]:y(u[g],c);if(v){const S=v.length;for(let _=0;_<S;_++)o[v[_]]=w}else A?this.options.visualElement.renderState.vars[g]=w:o[g]=w}this.options.layoutId&&(o.pointerEvents=c===this?Ab(s==null?void 0:s.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var s;return(s=o.currentAnimation)==null?void 0:s.stop()}),this.root.nodes.forEach(C8),this.root.sharedNodes.clear()}}}function nue(e){e.updateLayout()}function rue(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=t.source!==e.layout.source;a==="size"?Ws(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],f=So(h);h.min=r[d].min,h.max=h.min+f}):W7(a,t.layoutBox,r)&&Ws(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],f=So(r[d]);h.max=h.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+f)});const s=bp();l0(s,r,t.layoutBox);const l=bp();o?l0(l,e.applyTransform(i,!0),t.measuredBox):l0(l,r,t.layoutBox);const c=!U7(s);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:f}=d;if(h&&f){const g=Ca();k1(g,t.layoutBox,h.layoutBox);const y=Ca();k1(y,r,f.layoutBox),L7(g,y)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function iue(e){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 aue(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function oue(e){e.clearSnapshot()}function C8(e){e.clearMeasurements()}function T8(e){e.isLayoutDirty=!1}function sue(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function _8(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function lue(e){e.resolveTargetDelta()}function cue(e){e.calcProjection()}function uue(e){e.resetSkewAndRotation()}function due(e){e.removeLeadSnapshot()}function E8(e,t,n){e.translate=ea(t.translate,0,n),e.scale=ea(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function N8(e,t,n,r){e.min=ea(t.min,n.min,r),e.max=ea(t.max,n.max,r)}function fue(e,t,n,r){N8(e.x,t.x,n.x,r),N8(e.y,t.y,n.y,r)}function hue(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pue={duration:.45,ease:[.4,0,.1,1]},F8=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),R8=F8("applewebkit/")&&!F8("chrome/")?Math.round:Ys;function P8(e){e.min=R8(e.min),e.max=R8(e.max)}function gue(e){P8(e.x),P8(e.y)}function W7(e,t,n){return e==="position"||e==="preserve-aspect"&&!Oce(A8(t),A8(n),.2)}function mue(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const yue=z7({attachResizeListener:(e,t)=>M0(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),bk={current:void 0},V7=z7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!bk.current){const e=new yue({});e.mount(window),e.setOptions({layoutScroll:!0}),bk.current=e}return bk.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),mN=N.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function I8(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vue(...e){return t=>{let n=!1;const r=e.map(i=>{const a=I8(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():I8(e[i],null)}}}}function xue(...e){return N.useCallback(vue(...e),e)}class bue extends N.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=YT(r)&&r.offsetWidth||0,a=YT(r)&&r.offsetHeight||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left,o.bottom=a-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Aue({children:e,isPresent:t,anchorX:n,anchorY:r,root:i}){var d;const a=N.useId(),o=N.useRef(null),s=N.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=N.useContext(mN),c=((d=e.props)==null?void 0:d.ref)??(e==null?void 0:e.ref),u=xue(o,c);return N.useInsertionEffect(()=>{const{width:h,height:f,top:g,left:y,right:v,bottom:A}=s.current;if(t||!o.current||!h||!f)return;const w=n==="left"?`left: ${y}`:`right: ${v}`,S=r==="bottom"?`bottom: ${A}`:`top: ${g}`;o.current.dataset.motionPopId=a;const _=document.createElement("style");l&&(_.nonce=l);const E=i??document.head;return E.appendChild(_),_.sheet&&_.sheet.insertRule(`- [data-motion-pop-id="${a}"] {- position: absolute !important;- width: ${h}px !important;- height: ${f}px !important;- ${w}px !important;- ${S}px !important;- }- `),()=>{E.contains(_)&&E.removeChild(_)}},[t]),m.jsx(bue,{isPresent:t,childRef:o,sizeRef:s,children:N.cloneElement(e,{ref:u})})}const wue=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:l,root:c})=>{const u=WE(Sue),d=N.useId();let h=!0,f=N.useMemo(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:g=>{u.set(g,!0);for(const y of u.values())if(!y)return;r&&r()},register:g=>(u.set(g,!1),()=>u.delete(g))}),[n,u,r]);return a&&h&&(f={...f}),N.useMemo(()=>{u.forEach((g,y)=>u.set(y,!1))},[n]),N.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=m.jsx(Aue,{isPresent:n,anchorX:s,anchorY:l,root:c,children:e})),m.jsx(zA.Provider,{value:f,children:e})};function Sue(){return new Map}function G7(e=!0){const t=N.useContext(zA);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=N.useId();N.useEffect(()=>{if(e)return i(a)},[e]);const o=N.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const dx=e=>e.key||"";function M8(e){const t=[];return N.Children.forEach(e,n=>{N.isValidElement(n)&&t.push(n)}),t}const U8=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:o=!1,anchorX:s="left",anchorY:l="top",root:c})=>{const[u,d]=G7(o),h=N.useMemo(()=>M8(e),[e]),f=o&&!u?[]:h.map(dx),g=N.useRef(!0),y=N.useRef(h),v=WE(()=>new Map),A=N.useRef(new Set),[w,S]=N.useState(h),[_,E]=N.useState(h);w9(()=>{g.current=!1,y.current=h;for(let I=0;I<_.length;I++){const j=dx(_[I]);f.includes(j)?(v.delete(j),A.current.delete(j)):v.get(j)!==!0&&v.set(j,!1)}},[_,f.length,f.join("-")]);const T=[];if(h!==w){let I=[...h];for(let j=0;j<_.length;j++){const R=_[j],z=dx(R);f.includes(z)||(I.splice(j,0,R),T.push(R))}return a==="wait"&&T.length&&(I=T),E(M8(I)),S(h),null}const{forceRender:D}=N.useContext(zE);return m.jsx(m.Fragment,{children:_.map(I=>{const j=dx(I),R=o&&!u?!1:h===_||f.includes(j),z=()=>{if(A.current.has(j))return;if(A.current.add(j),v.has(j))v.set(j,!0);else return;let B=!0;v.forEach(W=>{W||(B=!1)}),B&&(D==null||D(),E(y.current),o&&(d==null||d()),r&&r())};return m.jsx(wue,{isPresent:R,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:c,onExitComplete:R?void 0:z,anchorX:s,anchorY:l,children:I},j)})})},q7=N.createContext({strict:!1}),L8={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let O8=!1;function kue(){if(O8)return;const e={};for(const t in L8)e[t]={isEnabled:n=>L8[t].some(r=>!!n[r])};b7(e),O8=!0}function H7(){return kue(),uce()}function Due(e){const t=H7();for(const n in e)t[n]={...t[n],...e[n]};b7(t)}const Cue=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 D1(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Cue.has(e)}let X7=e=>!D1(e);function Tue(e){typeof e=="function"&&(X7=t=>t.startsWith("on")?!D1(t):e(t))}try{Tue(require("@emotion/is-prop-valid").default)}catch{}function _ue(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(X7(i)||n===!0&&D1(i)||!t&&!D1(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const GA=N.createContext({});function Eue(e,t){if(VA(e)){const{initial:n,animate:r}=e;return{initial:n===!1||I0(n)?n:void 0,animate:I0(r)?r:void 0}}return e.inherit!==!1?t:{}}function Nue(e){const{initial:t,animate:n}=Eue(e,N.useContext(GA));return N.useMemo(()=>({initial:t,animate:n}),[j8(t),j8(n)])}function j8(e){return Array.isArray(e)?e.join(" "):e}const yN=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Z7(e,t,n){for(const r in t)!oo(t[r])&&!T7(r,n)&&(e[r]=t[r])}function Fue({transformTemplate:e},t){return N.useMemo(()=>{const n=yN();return pN(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Rue(e,t){const n=e.style||{},r={};return Z7(r,n,e),Object.assign(r,Fue(e,t)),r}function Pue(e,t){const n={},r=Rue(e,t);return e.drag&&e.dragListener!==!1&&(n.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)&&(n.tabIndex=0),n.style=r,n}const K7=()=>({...yN(),attrs:{}});function Iue(e,t,n,r){const i=N.useMemo(()=>{const a=K7();return _7(a,t,N7(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Z7(a,e.style,e),i.style={...a,...i.style}}return i}const Mue=["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 vN(e){return typeof e!="string"||e.includes("-")?!1:!!(Mue.indexOf(e)>-1||/[A-Z]/u.test(e))}function Uue(e,t,n,{latestValues:r},i,a=!1,o){const l=(o??vN(e)?Iue:Pue)(t,r,i,e),c=_ue(t,typeof e=="string",a),u=e!==N.Fragment?{...c,...l,ref:n}:{},{children:d}=t,h=N.useMemo(()=>oo(d)?d.get():d,[d]);return N.createElement(e,{...u,children:h})}function Lue({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Oue(n,r,i,e),renderState:t()}}function Oue(e,t,n,r){const i={},a=r(e,{});for(const h in a)i[h]=Ab(a[h]);let{initial:o,animate:s}=e;const l=VA(e),c=x7(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?s:o;if(d&&typeof d!="boolean"&&!WA(d)){const h=Array.isArray(d)?d:[d];for(let f=0;f<h.length;f++){const g=sN(e,h[f]);if(g){const{transitionEnd:y,transition:v,...A}=g;for(const w in A){let S=A[w];if(Array.isArray(S)){const _=u?S.length-1:0;S=S[_]}S!==null&&(i[w]=S)}for(const w in y)i[w]=y[w]}}}return i}const $7=e=>(t,n)=>{const r=N.useContext(GA),i=N.useContext(zA),a=()=>Lue(e,t,r,i);return n?a():WE(a)},jue=$7({scrapeMotionValuesFromProps:gN,createRenderState:yN}),Bue=$7({scrapeMotionValuesFromProps:F7,createRenderState:K7}),zue=Symbol.for("motionComponentSymbol");function Wue(e,t,n){const r=N.useRef(n);N.useInsertionEffect(()=>{r.current=n});const i=N.useRef(null);return N.useCallback(a=>{var s;a&&((s=e.onMount)==null||s.call(e,a)),t&&(a?t.mount(a):t.unmount());const o=r.current;if(typeof o=="function")if(a){const l=o(a);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):o(a);else o&&(o.current=a)},[t])}const Y7=N.createContext({});function Lm(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Vue(e,t,n,r,i,a){var v,A;const{visualElement:o}=N.useContext(GA),s=N.useContext(q7),l=N.useContext(zA),c=N.useContext(mN).reducedMotion,u=N.useRef(null);r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,isSVG:a}));const d=u.current,h=N.useContext(Y7);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&Gue(u.current,n,i,h);const f=N.useRef(!1);N.useInsertionEffect(()=>{d&&f.current&&d.update(n,l)});const g=n[a7],y=N.useRef(!!g&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,g))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,g)));return w9(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),y.current&&d.animationState&&d.animationState.animateChanges())}),N.useEffect(()=>{d&&(!y.current&&d.animationState&&d.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)==null||w.call(window,g)}),y.current=!1),d.enteringChildren=void 0)}),d}function Gue(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:J7(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Lm(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}function J7(e){if(e)return e.options.allowProjection!==!1?e.projection:J7(e.parent)}function Ak(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Due(r);const a=n?n==="svg":vN(e),o=a?Bue:jue;function s(c,u){let d;const h={...N.useContext(mN),...c,layoutId:que(c)},{isStatic:f}=h,g=Nue(c),y=o(c,f);if(!f&&A9){Hue();const v=Xue(h);d=v.MeasureLayout,g.visualElement=Vue(e,y,h,i,v.ProjectionNode,a)}return m.jsxs(GA.Provider,{value:g,children:[d&&g.visualElement?m.jsx(d,{visualElement:g.visualElement,...h}):null,Uue(e,c,Wue(y,g.visualElement,u),y,f,t,a)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=N.forwardRef(s);return l[zue]=e,l}function que({layoutId:e}){const t=N.useContext(zE).id;return t&&e!==void 0?t+"-"+e:e}function Hue(e,t){N.useContext(q7).strict}function Xue(e){const t=H7(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Zue(e,t){if(typeof Proxy>"u")return Ak;const n=new Map,r=(a,o)=>Ak(a,o,e,t),i=(a,o)=>r(a,o);return new Proxy(i,{get:(a,o)=>o==="create"?r:(n.has(o)||n.set(o,Ak(o,void 0,e,t)),n.get(o))})}const Kue=(e,t)=>t.isSVG??vN(e)?new Tce(t):new Ace(t,{allowProjection:e!==N.Fragment});class $ue extends gd{constructor(t){super(t),t.animationState||(t.animationState=Rce(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();WA(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Yue=0;class Jue extends gd{constructor(){super(...arguments),this.id=Yue++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Que={animation:{Feature:$ue},exit:{Feature:Jue}};function yy(e){return{point:{x:e.pageX,y:e.pageY}}}const ede=e=>t=>dN(t)&&e(t,yy(t));function c0(e,t,n,r){return M0(e,t,ede(n),r)}const Q7=({current:e})=>e?e.ownerDocument.defaultView:null,B8=(e,t)=>Math.abs(e-t);function tde(e,t){const n=B8(e.x,t.x),r=B8(e.y,t.y);return Math.sqrt(n**2+r**2)}const z8=new Set(["auto","scroll"]);class eW{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Sk(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=tde(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!y)return;const{point:v}=f,{timestamp:A}=Za;this.history.push({...v,timestamp:A});const{onStart:w,onMove:S}=this.handlers;g||(w&&w(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,f)},this.handlePointerMove=(f,g)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=wk(g,this.transformPagePoint),ji.update(this.updatePoint,!0)},this.handlePointerUp=(f,g)=>{this.end();const{onEnd:y,onSessionEnd:v,resumeAnimation:A}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Sk(f.type==="pointercancel"?this.lastMoveEventInfo:wk(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(f,w),v&&v(f,w)},!dN(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const l=yy(t),c=wk(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=Za;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,Sk(c,this.history)),this.removeListeners=py(c0(this.contextWindow,"pointermove",this.handlePointerMove),c0(this.contextWindow,"pointerup",this.handlePointerUp),c0(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(z8.has(r.overflowX)||z8.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},a={x:i.x-n.x,y:i.y-n.y};a.x===0&&a.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(t,i),ji.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ju(this.updatePoint)}}function wk(e,t){return t?{point:t(e.point)}:e}function W8(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Sk({point:e},t){return{point:e,delta:W8(e,tW(t)),offset:W8(e,nde(t)),velocity:rde(t,.1)}}function nde(e){return e[0]}function tW(e){return e[e.length-1]}function rde(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=tW(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Wc(t)));)n--;if(!r)return{x:0,y:0};const a=Zs(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function ide(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ea(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ea(n,e,r.max):Math.min(e,n)),e}function V8(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ade(e,{top:t,left:n,bottom:r,right:i}){return{x:V8(e.x,n,i),y:V8(e.y,t,r)}}function G8(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ode(e,t){return{x:G8(e.x,t.x),y:G8(e.y,t.y)}}function sde(e,t){let n=.5;const r=So(e),i=So(t);return i>r?n=F0(t.min,t.max-r,e.min):r>i&&(n=F0(e.min,e.max-i,t.min)),cc(0,1,n)}function lde(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const n_=.35;function cde(e=n_){return e===!1?e=0:e===!0&&(e=n_),{x:q8(e,"left","right"),y:q8(e,"top","bottom")}}function q8(e,t,n){return{min:H8(e,t),max:H8(e,n)}}function H8(e,t){return typeof e=="number"?e:e[t]||0}const ude=new WeakMap;class dde{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=Ca(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=d=>{n?(this.stopAnimation(),this.snapToCursor(yy(d).point)):this.pauseAnimation()},o=(d,h)=>{this.stopAnimation();const{drag:f,dragPropagation:g,onDragStart:y}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Jle(f),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ws(A=>{let w=this.getAxisMotionValue(A).get()||0;if(oc.test(w)){const{projection:S}=this.visualElement;if(S&&S.layout){const _=S.layout.layoutBox[A];_&&(w=So(_)*(parseFloat(w)/100))}}this.originPoint[A]=w}),y&&ji.postRender(()=>y(d,h)),ZT(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:f,dragDirectionLock:g,onDirectionLock:y,onDrag:v}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:A}=h;if(g&&this.currentDirection===null){this.currentDirection=fde(A),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,A),this.updateAxis("y",h.point,A),this.visualElement.render(),v&&v(d,h)},l=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Ws(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)==null?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new eW(t,{onSessionStart:a,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Q7(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&ji.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!fx(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=ide(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,i=this.constraints;t&&Lm(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=ade(r.layoutBox,t):this.constraints=!1,this.elastic=cde(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ws(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=lde(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Lm(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=gce(r,i.root,this.visualElement.getTransformPagePoint());let o=ode(i.layout.layoutBox,a);if(n){const s=n(fce(o));this.hasMutatedConstraints=!!s,s&&(o=w7(s))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=Ws(u=>{if(!fx(u,n,this.currentDirection))return;let d=l&&l[u]||{};o&&(d={min:0,max:0});const h=i?200:1e6,f=i?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ZT(this.visualElement,t),r.start(oN(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ws(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ws(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ws(n=>{const{drag:r}=this.getProps();if(!fx(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[n],l=a.get()||0;a.set(t[n]-ea(o,s,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Lm(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ws(o=>{const s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){const l=s.get();i[o]=sde({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ws(o=>{if(!fx(o,t,null))return;const s=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];s.set(ea(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;ude.set(this.visualElement,this);const t=this.visualElement.current,n=c0(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps(),d=l.target,h=d!==t&&m7(d);c&&u&&!h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Lm(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ji.read(r);const o=M0(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Ws(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())}));return()=>{o(),n(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=n_,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function fx(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function fde(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class hde extends gd{constructor(t){super(t),this.removeGroupControls=Ys,this.removeListeners=Ys,this.controls=new dde(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ys}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.endPanSession()}}const X8=e=>(t,n)=>{e&&ji.postRender(()=>e(t,n))};class pde extends gd{constructor(){super(...arguments),this.removePointerDownListener=Ys}onPointerDown(t){this.session=new eW(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Q7(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:X8(t),onStart:X8(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&ji.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=c0(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let kk=!1;class gde extends N.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),kk&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),wb.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,kk=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||ji.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),uN.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;kk=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nW(e){const[t,n]=G7(),r=N.useContext(zE);return m.jsx(gde,{...e,layoutGroup:r,switchLayoutGroup:N.useContext(Y7),isPresent:t,safeToRemove:n})}const mde={pan:{Feature:pde},drag:{Feature:hde,ProjectionNode:V7,MeasureLayout:nW}};function Z8(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&ji.postRender(()=>a(t,yy(t)))}class yde extends gd{mount(){const{current:t}=this.node;t&&(this.unmount=Qle(t,(n,r)=>(Z8(this.node,r,"Start"),i=>Z8(this.node,i,"End"))))}unmount(){}}class vde extends gd{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=py(M0(this.node.current,"focus",()=>this.onFocus()),M0(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function K8(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&ji.postRender(()=>a(t,yy(t)))}class xde extends gd{mount(){const{current:t}=this.node;t&&(this.unmount=nce(t,(n,r)=>(K8(this.node,r,"Start"),(i,{success:a})=>K8(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const r_=new WeakMap,Dk=new WeakMap,bde=e=>{const t=r_.get(e.target);t&&t(e)},Ade=e=>{e.forEach(bde)};function wde({root:e,...t}){const n=e||document;Dk.has(n)||Dk.set(n,{});const r=Dk.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ade,{root:e,...t})),r[i]}function Sde(e,t,n){const r=wde(t);return r_.set(e,n),r.observe(e),()=>{r_.delete(e),r.unobserve(e)}}const kde={some:0,all:1};class Dde extends gd{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:kde[i]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};return Sde(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Cde(t,n))&&this.startObserver()}unmount(){}}function Cde({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Tde={inView:{Feature:Dde},tap:{Feature:xde},focus:{Feature:vde},hover:{Feature:yde}},_de={layout:{ProjectionNode:V7,MeasureLayout:nW}},Ede={...Que,...Tde,...mde,..._de},Rl=Zue(Ede,Kue);function pa(){const[e,t]=N.useState(()=>bs());return N.useEffect(()=>{const n=()=>t(bs());return window.addEventListener("ui-language-changed",n),()=>window.removeEventListener("ui-language-changed",n)},[]),e}const Sb=[{id:"flow",zhTitle:"流程画布",enTitle:"Flow Canvas",zhSummary:"结构化流程图与节点级局部修改",enSummary:"Structured flow diagrams with node-level edits",image:"/examples/flow/01.png",angle:-90,accent:"#236CFF"},{id:"cad",zhTitle:"室内设计画布",enTitle:"Interior Canvas",zhSummary:"平面方案、效果图与材料清单联动",enSummary:"Layouts, renders, and material lists in one flow",image:"/examples/cad/01.png",angle:-30,accent:"#8B5CF6"},{id:"ppt",zhTitle:"PPT画布",enTitle:"PPT Canvas",zhSummary:"先大纲后视觉,导出可编辑稿、PDF 和图片版",enSummary:"Outline-first decks with editable, PDF, and image exports",image:"/examples/ppt/ppt1/01.png",angle:30,accent:"#1F63F3"},{id:"poster",zhTitle:"海报画布",enTitle:"Poster Canvas",zhSummary:"快速生成风格统一的宣传海报",enSummary:"Fast campaign posters with consistent art direction",image:"/examples/poster/01.png",angle:90,accent:"#FF6B2C"},{id:"infographic",zhTitle:"信息图画布",enTitle:"Infographic Canvas",zhSummary:"数据表达、版式编排与视觉摘要",enSummary:"Data storytelling with layout and visual summaries",image:"/examples/infographic/01.png",angle:150,accent:"#10A37F"},{id:"product",zhTitle:"产品介绍画布",enTitle:"Product Canvas",zhSummary:"卖点拆解、页面物料与展示稿联动",enSummary:"Product highlights, page assets, and presentation linkage",image:"/examples/product/01.png",angle:210,accent:"#2A89FF"}],$8='url("/icons/brush-calligraphy.svg?v=2") 11 43, auto',Nde=250;function u0(e){typeof document>"u"||document.dispatchEvent(new CustomEvent("portal:navigate",{detail:e}))}function rW(e,t){const n=e*Math.PI/180;return{x:Math.cos(n)*t,y:Math.sin(n)*t}}function Y8({angle:e,radius:t,delay:n}){const r=rW(e,t);return m.jsxs("g",{style:{animation:`portal-node-pulse 3.2s ease-in-out ${n}s infinite`},children:[m.jsx("circle",{cx:360+r.x,cy:360+r.y,r:"17",fill:"rgba(35,108,255,0.12)"}),m.jsx("circle",{cx:360+r.x,cy:360+r.y,r:"8",fill:"#236CFF"}),m.jsx("circle",{cx:360+r.x,cy:360+r.y,r:"3",fill:"#FFFFFF"})]})}function iW({className:e}){return m.jsx("span",{className:gt("inline-flex h-11 w-11 shrink-0 items-center justify-center",e),children:m.jsxs("svg",{viewBox:"0 0 48 48",role:"img","aria-label":"CanvasAnvil",className:"h-full w-full drop-shadow-[0_8px_18px_rgba(35,108,255,0.22)]",children:[m.jsx("path",{d:"M24 3.8 42 12.8 24 21.8 6 12.8 24 3.8Z",fill:"#236CFF"}),m.jsx("path",{d:"M24 8.6 32.4 12.8 24 17 15.6 12.8 24 8.6Z",fill:"#8EC1FF"}),m.jsx("path",{d:"M8.8 17.5 24 25.1l15.2-7.6v5.7L24 30.8 8.8 23.2v-5.7Z",fill:"#0B77F4"}),m.jsx("path",{d:"M16.5 29.3h15l-2.7 4.4h-9.6l-2.7-4.4Z",fill:"#053EA8"}),m.jsx("path",{d:"M18.8 33.1h10.4v5.1H18.8v-5.1Z",fill:"#236CFF"}),m.jsx("path",{d:"M13.2 38.1h21.6l3 5.4H10.2l3-5.4Z",fill:"#0758D8"}),m.jsx("path",{d:"M19.5 39.4h9",stroke:"#A9D0FF",strokeWidth:"2",strokeLinecap:"round"})]})})}const aW={flow:Ef,cad:gE,ppt:Nf,poster:xE,infographic:Zp,product:kA},xf={flow:{title:"流程画布",subtitle:"一句需求,快速生成结构化流程图",intro:"流程画布让你用自然语言描述流程,自动生成可编辑的流程图。支持节点与连线编辑、局部修改,并可导出 draw.io XML。",tags:["结构化生成","局部修改","draw.io XML"],bullets:["智能解析需求,自动抽取流程节点与关系","支持节点与连线编辑,拖拽即改","局部修改,快速微调复杂流程","导出 draw.io XML,便于复用与协作"],previews:[{title:"学术研究框架图",image:"/examples/readme-previews/flow/01.png"},{title:"智能问答系统架构",image:"/examples/readme-previews/flow/02.png"},{title:"项目实施路线图",image:"/examples/readme-previews/flow/03.png"},{title:"课程设计思维导图",image:"/examples/readme-previews/flow/04.png"}],steps:[{title:"输入需求",text:"用自然语言描述流程目标与约束。",icon:Oi},{title:"结构化解析",text:"AI 抽取节点、关系与方向。",icon:Mp},{title:"生成 XML",text:"转换为 draw.io 兼容的流程图数据。",icon:wB},{title:"预览与校验",text:"检查节点与连线是否符合预期。",icon:Zp},{title:"局部修改",text:"对节点或连线进行精细调整。",icon:Fl},{title:"导出复用",text:"导出 draw.io XML,用于协作与复用。",icon:Ya}],cta:"开始绘制",slogan:"让流程图像画布一样自由创作"},cad:{title:"室内设计画布",subtitle:"从空间需求到成套图纸与渲染",intro:"室内设计画布将空间需求转化为完整的设计方案,自动生成平面布局、立面与详图,输出渲染及材料清单。",tags:["空间规划","2D SVG","渲染 / 材料清单"],bullets:["户型解析与功能分区,快速确定空间布局","多图纸联动生成,平面、立面、详图一体化","效果图与材料参考,呈现真实空间效果","材料清单与图纸导出,支持施工交付"],previews:[{title:"装修平面布置图",image:"/examples/cad/01.png"},{title:"地面铺装图",image:"/examples/cad/02.png"},{title:"顶面布置图",image:"/examples/cad/03.png"},{title:"节点详图",image:"/examples/cad/07.png"}],steps:[{title:"输入空间需求",text:"输入户型信息与需求清单。",icon:Oi},{title:"空间分析",text:"分析功能分区与动线。",icon:kA},{title:"生成平面",text:"生成平面布置与尺寸标注。",icon:gE},{title:"联动图纸",text:"联动立面、天花和节点图。",icon:mE},{title:"渲染校验",text:"生成效果图并校验材质。",icon:ao},{title:"导出图纸",text:"导出 CAD/PDF/SVG 与材料清单。",icon:Ya}],cta:"开始绘制",slogan:"让室内设计像画布一样自由创作"},ppt:{title:"PPT画布",subtitle:"从主题到演示文稿,按页面持续迭代",intro:"PPT画布将主题结构化为可演示的逻辑内容,自动生成演示文稿大纲并拆分页面类型,支持页面生成与局部迭代。",tags:["结构化生成","页面级编辑","模板对齐"],bullets:["主题转大纲,构建清晰的演示逻辑","自动拆分页面类型,匹配最佳表达方式","支持局部续写与改写,精细调整每一页","导出可编辑演示稿,自由调整与复用"],previews:[{title:"AI内容创作流程",image:"/examples/readme-previews/ppt/ppt1.png"},{title:"智能协作增长",image:"/examples/readme-previews/ppt/ppt2.png"},{title:"商业创新演示",image:"/examples/readme-previews/ppt/ppt3.png"},{title:"低碳校园转型",image:"/examples/readme-previews/ppt/ppt4.png"}],steps:[{title:"输入主题",text:"输入演示主题与目标受众。",icon:Oi},{title:"生成大纲",text:"基于主题生成章节与逻辑结构。",icon:Mp},{title:"拆分页面",text:"自动识别封面、目录、图表、结论等结构。",icon:Ef},{title:"页面生成",text:"按大纲和页面类型生成内容。",icon:Nf},{title:"局部迭代",text:"支持页面续写、改写与调整。",icon:Fl},{title:"导出 PPT",text:"导出可编辑的 PPT 格式。",icon:Ya}],cta:"开始绘制",slogan:"让演示创作像画布一样自由流畅"},poster:{title:"海报画布",subtitle:"多风格主视觉与文案排版,一页完成",intro:"海报画布为品牌宣传、活动营销与展览演出提供主视觉与文案排版能力,支持多种风格与尺寸。",tags:["风格驱动","主视觉生成","文案排版"],bullets:["支持横版/竖版尺寸,适配多种平台与印刷需求","多风格快速切换,满足不同活动与品牌调性","海报文案自动编排,层级清晰","支持局部替换与微调,优化每一处细节"],previews:[{title:"青年设计论坛",image:"/examples/poster/01.png"},{title:"江南国潮文化节",image:"/examples/poster/02.png"},{title:"城市夏日音乐节",image:"/examples/poster/03.png"},{title:"未来智能科技峰会",image:"/examples/poster/04.png"}],steps:[{title:"输入主题",text:"输入活动、产品或品牌主题。",icon:Oi},{title:"设定风格",text:"选择色调、版式与风格偏好。",icon:Up},{title:"生成主视觉",text:"生成图像、配色和核心元素。",icon:ao},{title:"编排文案",text:"自动编排标题、正文和信息。",icon:Oi},{title:"局部微调",text:"调整图片、字体、色彩和细节。",icon:Fl},{title:"导出海报",text:"导出清晰海报,支持多种尺寸。",icon:Ya}],cta:"开始绘制",slogan:"让海报创意更快落地"},infographic:{title:"信息图画布",subtitle:"把信息结构化,再变成清晰好看的可视化页面",intro:"信息图画布将数据、观点或主题内容快速转化为一页式信息图,自动拆解信息、匹配图表与版式。",tags:["信息拆解","图表组合","版式生成"],bullets:["主题与数据输入,支持文字、表格等来源","自动图表与模块组合,选择合适表达方式","一页式信息表达,让复杂信息一目了然","支持局部改写与调整,灵活优化内容与样式"],previews:[{title:"AI算力增长趋势",image:"/examples/infographic/01.png"},{title:"智能汽车用户关注点",image:"/examples/infographic/02.png"},{title:"健康生活指南",image:"/examples/infographic/03.png"},{title:"低碳生活",image:"/examples/infographic/04.png"}],steps:[{title:"输入主题/数据",text:"输入主题、要点或数据来源。",icon:Oi},{title:"信息拆解",text:"拆解关键信息与关系结构。",icon:Mp},{title:"选择图表",text:"推荐适合的图表与可视化模块。",icon:Zp},{title:"信息排版",text:"组合模块并生成版式。",icon:Ef},{title:"视觉润色",text:"统一配色、字体和图标。",icon:Up},{title:"导出信息图",text:"导出 PNG、PDF、SVG 等格式。",icon:Ya}],cta:"开始绘制",slogan:"让信息可视化,决策更高效"},product:{title:"产品介绍画布",subtitle:"突出卖点、参数与主视觉,快速做出产品展示页",intro:"产品介绍画布帮助你快速生成产品介绍图或产品说明页,聚焦核心卖点、主视觉和参数信息。",tags:["卖点提炼","主视觉生成","参数布局"],bullets:["输入产品图与描述,自动整理核心卖点","生成高质量主视觉,突出产品质感","支持参数/亮点模块编排","适合展示图与产品说明页"],previews:[{title:"无线降噪耳机",image:"/examples/product/01.png"},{title:"旗舰游戏本",image:"/examples/product/02.png"},{title:"亮肤精华",image:"/examples/product/03.png"},{title:"智能电动 SUV",image:"/examples/product/04.png"}],steps:[{title:"输入产品信息",text:"上传产品图并填写名称、功能和参数。",icon:Oi},{title:"提炼卖点",text:"分析产品信息,提炼核心卖点。",icon:Up},{title:"生成主视觉",text:"根据产品特征生成高质量主觉。",icon:ao},{title:"布局参数模块",text:"智能编排参数与亮点模块。",icon:Ef},{title:"局部优化",text:"对文案、配色和排版做细节调整。",icon:Fl},{title:"导出介绍图",text:"导出清晰产品介绍图。",icon:Ya}],cta:"开始绘制",slogan:"让产品介绍更清晰、更有吸引力"}},Fde={flow:{title:"Flow Canvas",subtitle:"Turn a short requirement into a structured flowchart",intro:"Flow Canvas converts natural-language process descriptions into editable diagrams. It supports node and connector edits, local revisions, and draw.io XML export.",tags:["Structured diagrams","Local edits","draw.io XML"],bullets:["Parse requirements into nodes and relationships","Edit nodes and connectors directly","Revise selected parts without regenerating the whole diagram","Export draw.io XML for collaboration and reuse"],previews:xf.flow.previews,steps:[{title:"Describe",text:"Enter goals, process details, and constraints.",icon:Oi},{title:"Analyze",text:"AI extracts nodes, relationships, and directions.",icon:Mp},{title:"Generate XML",text:"Convert the structure into draw.io-compatible data.",icon:wB},{title:"Review",text:"Check whether nodes and links match your intent.",icon:Zp},{title:"Revise",text:"Fine-tune selected nodes or connectors.",icon:Fl},{title:"Export",text:"Export XML for reuse and collaboration.",icon:Ya}],cta:"Start Drawing",slogan:"Create flowcharts with the freedom of a canvas"},cad:{title:"Interior Design Canvas",subtitle:"From spatial requirements to drawings, renders, and material lists",intro:"Interior Design Canvas turns room requirements into design packages, including layouts, elevations, details, render references, and material lists.",tags:["Space planning","2D SVG","Renders / Materials"],bullets:["Analyze floor plans and functional zones","Generate linked plan, elevation, ceiling, and detail drawings","Use render references and material cues to present the space","Export drawings and material lists for delivery"],previews:xf.cad.previews,steps:[{title:"Input Brief",text:"Provide room information and design needs.",icon:Oi},{title:"Plan Space",text:"Analyze zoning and circulation.",icon:kA},{title:"Create Plan",text:"Generate layout drawings and dimensions.",icon:gE},{title:"Link Drawings",text:"Connect elevations, ceilings, and details.",icon:mE},{title:"Render Check",text:"Generate render references and review materials.",icon:ao},{title:"Export",text:"Export drawings and material lists.",icon:Ya}],cta:"Start Drawing",slogan:"Make interior design feel as fluid as a canvas"},ppt:{title:"PPT Canvas",subtitle:"From topic to deck, with page-level iteration",intro:"PPT Canvas structures your topic into a presentation outline, splits it into slide types, and supports slide generation, review, and local revision.",tags:["Outline first","Slide editing","Template aligned"],bullets:["Turn a topic into a clear deck outline","Split content into cover, agenda, chart, and conclusion slides","Revise or extend individual slides","Export editable presentation files"],previews:xf.ppt.previews,steps:[{title:"Input Topic",text:"Enter the topic and target audience.",icon:Oi},{title:"Build Outline",text:"Generate chapters and narrative structure.",icon:Mp},{title:"Split Slides",text:"Identify cover, agenda, chart, and summary pages.",icon:Ef},{title:"Generate",text:"Create slides from the outline and page types.",icon:Nf},{title:"Iterate",text:"Rewrite, extend, or adjust selected pages.",icon:Fl},{title:"Export PPT",text:"Export an editable PPT file.",icon:Ya}],cta:"Start Drawing",slogan:"Make presentation creation smooth and visual"},poster:{title:"Poster Canvas",subtitle:"Campaign visuals and copy layout in one page",intro:"Poster Canvas creates key visuals and typographic layouts for brand campaigns, events, exhibitions, and social media assets across styles and sizes.",tags:["Style driven","Key visual","Copy layout"],bullets:["Support portrait and landscape sizes","Switch styles for different brands and events","Arrange poster copy with clear hierarchy","Revise images, type, colors, and details locally"],previews:xf.poster.previews,steps:[{title:"Input Theme",text:"Enter the campaign, product, or brand topic.",icon:Oi},{title:"Set Style",text:"Choose color, layout, and visual direction.",icon:Up},{title:"Create Visual",text:"Generate image, palette, and key elements.",icon:ao},{title:"Layout Copy",text:"Arrange title, body, and event information.",icon:Oi},{title:"Refine",text:"Tune images, fonts, colors, and details.",icon:Fl},{title:"Export",text:"Export the finished poster.",icon:Ya}],cta:"Start Drawing",slogan:"Turn poster ideas into finished visuals faster"},infographic:{title:"Infographic Canvas",subtitle:"Structure information, then make it visual",intro:"Infographic Canvas transforms data, viewpoints, or topic notes into a one-page visual explanation with modules, charts, and clear hierarchy.",tags:["Information structure","Chart modules","Generated layout"],bullets:["Accept topic notes, text, and data sources","Recommend suitable chart and module combinations","Communicate complex information at a glance","Revise content and visual style locally"],previews:xf.infographic.previews,steps:[{title:"Input Data",text:"Enter topic notes, key points, or data.",icon:Oi},{title:"Structure",text:"Break information into clear relationships.",icon:Mp},{title:"Choose Charts",text:"Suggest charts and visual modules.",icon:Zp},{title:"Layout",text:"Assemble modules into a page.",icon:Ef},{title:"Polish",text:"Unify color, typography, and icon style.",icon:Up},{title:"Export",text:"Export PNG, PDF, SVG, or other formats.",icon:Ya}],cta:"Start Drawing",slogan:"Make information visual and decisions clearer"},product:{title:"Product Intro Canvas",subtitle:"Highlight selling points, specs, and key visuals",intro:"Product Intro Canvas helps create product introduction images and product pages focused on core selling points, visuals, and specification modules.",tags:["Selling points","Key visual","Spec layout"],bullets:["Input product images and descriptions","Extract core selling points automatically","Generate high-quality product visuals","Arrange highlights and specification modules"],previews:xf.product.previews,steps:[{title:"Input Product",text:"Upload product images and enter details.",icon:Oi},{title:"Extract Points",text:"Analyze and summarize core value.",icon:Up},{title:"Create Visual",text:"Generate a product-focused key visual.",icon:ao},{title:"Layout Specs",text:"Arrange parameters and highlight modules.",icon:Ef},{title:"Refine",text:"Tune copy, color, and layout details.",icon:Fl},{title:"Export",text:"Export the product introduction image.",icon:Ya}],cta:"Start Drawing",slogan:"Make product stories clearer and more compelling"}};function Rde(e,t){return t==="zh"?xf[e]:Fde[e]}function Pde({item:e,uiLang:t,active:n,paused:r,onActive:i,onClick:a}){const o=rW(e.angle,Nde),s=aW[e.id];return m.jsx("div",{className:"absolute left-1/2 top-1/2",style:{transform:`translate(${o.x}px, ${o.y}px)`},children:m.jsx("div",{className:"absolute left-0 top-0",style:{animation:"portal-card-counter 38s linear infinite",animationPlayState:r?"paused":"running"},children:m.jsxs(Rl.button,{whileHover:{y:-5,scale:1.02},transition:{type:"spring",stiffness:280,damping:22},className:gt("group w-[160px] overflow-hidden rounded-2xl border bg-white p-2.5 text-left shadow-[0_16px_36px_rgba(19,55,120,0.13)]",n?"border-[#8CB3FF] shadow-[0_24px_54px_rgba(35,108,255,0.22)]":"border-[#E7EEFB]"),onMouseEnter:i,onFocus:i,onClick:a,children:[m.jsxs("div",{className:"mb-2 flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[m.jsx("span",{className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-[#EEF4FF] text-[#236CFF]",children:m.jsx(s,{className:"h-4 w-4"})}),m.jsx("div",{className:"line-clamp-2 text-[13px] font-bold leading-4 text-slate-900",children:t==="zh"?e.zhTitle:e.enTitle})]}),m.jsx("span",{className:"h-2.5 w-2.5 shrink-0 rounded-full",style:{backgroundColor:e.accent}})]}),m.jsx("div",{className:"overflow-hidden rounded-xl border border-[#EEF3FE] bg-[#F7FAFF]",children:m.jsx("img",{src:e.image,alt:t==="zh"?e.zhTitle:e.enTitle,className:"h-[96px] w-full object-cover object-top transition duration-500 group-hover:scale-[1.04]"})})]})})})}function Ide({uiLang:e,copy:t,activeCanvas:n,activeSection:r,setActiveSection:i,setActiveCanvas:a,setUiLang:o}){const s=e==="zh";return m.jsx("header",{className:"rounded-2xl border border-white bg-white/94 px-4 py-2.5 shadow-[0_14px_38px_rgba(34,76,150,0.09)] backdrop-blur-xl lg:px-6",children:m.jsxs("div",{className:"flex flex-col gap-3 xl:grid xl:grid-cols-[220px_minmax(0,1fr)_132px] xl:items-center",children:[m.jsxs("button",{className:"flex items-center gap-4 text-left",onClick:()=>{i("home"),a("flow"),u0("home")},children:[m.jsx(iW,{className:"h-10 w-10"}),m.jsx("span",{className:"text-[22px] font-black text-slate-950",children:"CanvasAnvil"})]}),m.jsx("nav",{className:"overflow-x-auto",children:m.jsxs("div",{className:"flex min-w-max items-center justify-center gap-3 2xl:gap-5",children:[m.jsx("button",{className:gt("border-b-3 px-2 py-2 font-bold leading-tight transition",s?"text-[16px] 2xl:text-[17px]":"text-[14px] 2xl:text-[15px]",r==="home"?"border-[#236CFF] text-[#236CFF]":"border-transparent text-slate-800 hover:text-[#236CFF]"),onClick:()=>{i("home"),u0("home")},children:t.home}),Sb.map(l=>m.jsx("button",{className:gt("whitespace-normal border-b-3 px-1 py-2 text-center font-bold leading-tight transition 2xl:max-w-none",s?"max-w-[118px] text-[16px] 2xl:text-[17px]":"max-w-[112px] text-[13px] 2xl:text-[15px]",r===l.id?"border-[#236CFF] text-[#236CFF]":"border-transparent text-slate-800 hover:text-[#236CFF]"),onMouseEnter:()=>a(l.id),onFocus:()=>a(l.id),onClick:()=>{a(l.id),i(l.id),u0(l.id)},children:e==="zh"?l.zhTitle:l.enTitle},l.id))]})}),m.jsxs("div",{className:"flex justify-end gap-2",children:[m.jsx(bo,{variant:"outline",className:"h-9 rounded-full border-[#D7E5FF] bg-white px-4 text-slate-700",onClick:()=>o(l=>l==="zh"?"en":"zh"),children:e==="zh"?"EN":"中文"}),m.jsx(bo,{asChild:!0,className:"h-9 rounded-full bg-[#236CFF] px-4 text-white shadow-[0_10px_26px_rgba(35,108,255,0.24)] hover:bg-[#1857D8]",children:m.jsx("a",{href:"https://github.com/CodingFeng101/CanvasAnvil",target:"_blank",rel:"noreferrer","aria-label":t.openRepo,children:m.jsx(kB,{className:"h-4 w-4"})})})]})]})})}function Mde({copy:e}){return m.jsx("footer",{className:"min-h-12 rounded-t-[22px] border border-b-0 border-white/80 bg-white/78 shadow-[0_-14px_42px_rgba(34,76,150,0.08),inset_0_1px_0_rgba(255,255,255,0.9)] backdrop-blur-xl",children:m.jsxs("div",{className:"mx-auto flex min-h-12 max-w-[1180px] flex-wrap items-center justify-center gap-x-4 gap-y-1 px-4 py-1.5 text-xs font-semibold text-slate-500",children:[m.jsxs("a",{href:"https://github.com/CodingFeng101/CanvasAnvil",target:"_blank",rel:"noreferrer",className:"flex items-center gap-2 rounded-full px-2.5 py-1.5 transition hover:bg-[#EEF4FF] hover:text-[#236CFF]",children:[m.jsx(kB,{className:"h-4 w-4"}),"GitHub"]}),m.jsx("span",{className:"h-4 w-px bg-[#DDE8FA]"}),m.jsxs("span",{className:"flex items-center gap-2 rounded-full px-2.5 py-1.5",children:[m.jsx(bee,{className:"h-4 w-4"}),e.footerLicense]}),m.jsx("span",{className:"h-4 w-px bg-[#DDE8FA]"}),m.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2 rounded-full px-2.5 py-1.5 transition hover:bg-[#EEF4FF] hover:text-[#236CFF]",children:[m.jsx(eee,{className:"h-4 w-4"}),e.footerContact,": [email protected]"]})]})})}function Ude({canvas:e,onEnterWorkspace:t,onPreviewImage:n}){const r=pa(),i=Rde(e,r),a=aW[e],o=r==="en";return m.jsx("section",{id:`portal-${e}`,className:gt("flex h-full items-center overflow-hidden",o?"py-3":"py-4"),children:m.jsxs("div",{className:gt("grid w-full rounded-[30px] border border-[#D6E7FF]/70 bg-white/32 shadow-[inset_0_0_0_1px_rgba(255,255,255,0.62),0_24px_70px_rgba(34,76,150,0.08)] xl:grid-cols-[0.78fr_1.22fr]",o?"gap-6 p-6 2xl:gap-8 2xl:p-8":"gap-7 p-7 2xl:gap-9 2xl:p-9"),children:[m.jsxs("div",{className:"self-center",children:[m.jsx("h1",{className:gt("font-black text-slate-950",o?"text-[clamp(34px,3.5vw,50px)] leading-[1.03]":"text-[clamp(42px,4.7vw,68px)] leading-[1.04]"),children:i.title}),m.jsx("h2",{className:gt("font-black leading-tight text-[#236CFF]",o?"mt-2 text-[clamp(18px,1.75vw,23px)]":"mt-2.5 text-[clamp(23px,2.35vw,32px)]"),children:i.subtitle}),m.jsx("p",{className:gt("max-w-[620px] text-slate-600",o?"mt-4 text-[clamp(15px,1.2vw,16px)] leading-7":"mt-5 text-[18px] leading-8"),children:i.intro}),m.jsx("div",{className:gt("flex flex-wrap",o?"mt-5 gap-2.5":"mt-6 gap-3"),children:i.tags.map(s=>m.jsxs("span",{className:gt("inline-flex max-w-full items-center gap-2 rounded-full border border-[#E6EEFC] bg-white font-bold leading-tight text-slate-700 shadow-[0_12px_28px_rgba(34,76,150,0.08)] transition duration-300 ease-out hover:-translate-y-1 hover:scale-[1.03] hover:border-[#BFD6FF] hover:shadow-[0_16px_34px_rgba(35,108,255,0.14)]",o?"px-4 py-2.5 text-[14px]":"px-5 py-3 text-[16px]"),children:[m.jsx(a,{className:"h-4 w-4 text-[#236CFF]"}),m.jsx("span",{className:"whitespace-normal",children:s})]},s))}),m.jsx("div",{className:gt(o?"mt-5 space-y-2.5":"mt-6 space-y-3"),children:i.bullets.map(s=>m.jsxs("div",{className:gt("flex items-start gap-3 text-slate-600",o?"text-[15px] leading-6":"text-[18px] leading-7"),children:[m.jsx(kQ,{className:"mt-1 h-5 w-5 shrink-0 text-[#236CFF]"}),m.jsx("span",{children:s})]},s))}),m.jsxs("div",{className:gt(o?"mt-6":"mt-7"),children:[m.jsx("div",{className:gt("max-w-[540px] font-semibold tracking-[0.03em] text-[#236CFF]",o?"mb-1.5 text-[16px] leading-6":"mb-2 text-[20px] leading-7"),children:i.slogan}),m.jsxs("button",{className:gt("group relative max-w-full overflow-visible px-12 font-black tracking-[0.08em] text-white transition duration-300 hover:-translate-y-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#236CFF]/40",o?"h-[64px] min-w-[340px] text-[clamp(19px,2vw,24px)]":"h-[72px] min-w-[380px] text-[clamp(26px,2.55vw,32px)]"),onClick:()=>t(e),children:[m.jsxs("svg",{viewBox:"0 0 380 84",preserveAspectRatio:"none",className:"absolute inset-0 h-full w-full overflow-visible drop-shadow-[0_22px_34px_rgba(35,108,255,0.30)] transition duration-300 group-hover:scale-[1.035]","aria-hidden":"true",children:[m.jsx("path",{d:"M12 44 C42 17 96 19 150 26 C203 33 244 17 300 23 C342 27 370 39 374 48 C346 65 294 62 241 65 C181 69 127 73 72 64 C34 58 17 51 12 44Z",fill:"#0758D8"}),m.jsx("path",{d:"M32 47 C86 31 142 37 191 36 C250 34 304 31 356 46 C307 59 250 57 192 62 C130 67 71 60 32 47Z",fill:"#236CFF"}),m.jsx("path",{d:"M50 31 C105 21 161 29 211 26 C260 23 302 22 342 32",fill:"none",stroke:"#A9D0FF",strokeWidth:"5",strokeLinecap:"round",opacity:"0.72"}),m.jsx("path",{d:"M7 46 C26 52 41 59 56 72",fill:"none",stroke:"#0B77F4",strokeWidth:"3.6",strokeLinecap:"round",opacity:"0.65"}),m.jsx("path",{d:"M331 64 C350 60 367 55 379 47",fill:"none",stroke:"#8EC1FF",strokeWidth:"3.6",strokeLinecap:"round",opacity:"0.78"})]}),m.jsx("span",{className:"relative z-10 drop-shadow-[0_2px_4px_rgba(5,62,168,0.45)]",children:i.cta})]})]})]}),m.jsx("div",{className:gt("grid content-center md:grid-cols-2",o?"gap-x-5 gap-y-3":"gap-x-7 gap-y-5"),children:i.previews.map((s,l)=>m.jsxs("div",{children:[m.jsx("div",{className:gt("pl-2 font-black leading-tight text-slate-900",o?"mb-1.5 text-[15px]":"mb-2 text-[18px]"),children:s.title}),m.jsxs("button",{className:gt("relative block w-full rounded-[18px] border border-[#DDE8FA] bg-white/94 text-left shadow-[0_16px_40px_rgba(34,76,150,0.12)] transition duration-300 hover:-translate-y-1 hover:shadow-[0_22px_52px_rgba(34,76,150,0.16)]",o?"p-3":"p-4"),onClick:()=>n(s),children:[m.jsx("span",{className:"absolute -left-2 -top-2 h-5 w-5 rounded-full bg-[#236CFF] shadow-[0_6px_16px_rgba(35,108,255,0.35)]"}),m.jsx("span",{className:gt("absolute -top-4 h-8 w-20 rotate-6 bg-[#C9E0F8]/70 shadow-sm",l%2===0?"right-14":"right-24")}),m.jsx("span",{className:"absolute right-3 top-3 h-8 w-8 rounded-bl-2xl border-b border-l border-[#DDE8FA] bg-gradient-to-br from-white/20 to-[#EEF4FF]"}),m.jsx("span",{className:"block overflow-hidden rounded-xl border border-[#EEF3FE] bg-[#F7FAFF]",children:m.jsx("img",{src:s.image,alt:s.title,className:gt("w-full object-contain",o?"h-[150px] 2xl:h-[168px]":"h-[170px] 2xl:h-[204px]")})})]})]},s.title))})]})})}function Lde({onEnterWorkspace:e}){const[t,n]=N.useState(()=>bs()),[r,i]=N.useState("flow"),[a,o]=N.useState("home"),[s,l]=N.useState(null),[c,u]=N.useState(!1),d=N.useRef(!1),h=["home",...Sb.map(v=>v.id)],f=v=>{o(v),v!=="home"&&i(v)},g=v=>{if(d.current)return;const A=h.indexOf(a),w=Math.min(Math.max(A+v,0),h.length-1);w!==A&&(d.current=!0,f(h[w]),window.setTimeout(()=>{d.current=!1},780))};N.useEffect(()=>{d1(t)},[t]),N.useEffect(()=>{const v=A=>{f(A.detail)};return document.addEventListener("portal:navigate",v),()=>document.removeEventListener("portal:navigate",v)},[]);const y=t==="zh"?{home:"首页",titleA:"面向多画布",titleB:"创作的",titleAccent:"智能工作台",intro:"CanvasAnvil 支持六种画布:流程画布、室内设计画布、PPT画布、海报画布、信息图画布、产品介绍画布。提供结构化生成与本地局部修改能力,帮助你高效、可控地完成各类可视化创作。",tagA:"六种画布",tagB:"结构化生成",tagC:"局部修改",openRepo:"GitHub",footerLicense:"开源协议:AGPL-3.0",footerContact:"联系方式",hub:"CanvasAnvil",hubSub:"多画布工作台",mobileHint:"点击卡片进入对应画布"}:{home:"Home",titleA:"An open-source project",titleB:"for multi-canvas",titleAccent:"creation",intro:"CanvasAnvil supports six canvases: flow, interior, PPT, poster, infographic, and product. It combines structured generation with local Patch / Replace editing so visual creation stays fast and controllable.",tagA:"Six Canvases",tagB:"Structured Output",tagC:"Patch and Replace",openRepo:"GitHub",footerLicense:"License: AGPL-3.0",footerContact:"Contact",hub:"CanvasAnvil",hubSub:"Multi-canvas workspace",mobileHint:"Tap a card to enter its workspace"};return m.jsxs("div",{className:"h-screen overflow-hidden bg-[#F6FAFF] text-slate-950",style:{cursor:$8},children:[m.jsx("style",{children:`- .portal-brush-cursor,- .portal-brush-cursor * {- cursor: ${$8} !important;- }- @keyframes portal-card-orbit {- from { transform: translate(-50%, -50%) rotate(0deg); }- to { transform: translate(-50%, -50%) rotate(360deg); }- }- @keyframes portal-card-counter {- from { transform: translate(-50%, -50%) rotate(0deg); }- to { transform: translate(-50%, -50%) rotate(-360deg); }- }- @keyframes portal-node-pulse {- 0%, 100% { opacity: 0.72; transform: scale(1); }- 50% { opacity: 1; transform: scale(1.16); }- }- @keyframes portal-ring-breathe {- 0%, 100% { opacity: 0.72; }- 50% { opacity: 1; }- }- `}),m.jsxs("div",{className:"pointer-events-none fixed inset-0",children:[m.jsx("div",{className:"absolute inset-0 opacity-70",style:{backgroundImage:"linear-gradient(rgba(35,108,255,0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(35,108,255,0.10) 1px, transparent 1px), radial-gradient(circle at 1px 1px, rgba(35,108,255,0.14) 1px, transparent 0)",backgroundSize:"96px 96px, 96px 96px, 22px 22px"}}),m.jsx("div",{className:"absolute left-8 right-8 top-6 h-px bg-[#236CFF]/20"}),m.jsx("div",{className:"absolute bottom-8 left-8 right-8 h-px bg-[#236CFF]/16"}),m.jsx("div",{className:"absolute bottom-8 left-8 top-6 w-px bg-[#236CFF]/18"}),m.jsx("div",{className:"absolute bottom-8 right-8 top-6 w-px bg-[#236CFF]/14"}),m.jsx("div",{className:"absolute left-16 top-[170px] h-28 w-80 -rotate-12 rounded-full border-t-[18px] border-[#236CFF]/12"}),m.jsx("div",{className:"absolute bottom-16 left-20 h-20 w-64 rotate-[-18deg] border-b-2 border-l-2 border-[#236CFF]/18"}),m.jsx("div",{className:"absolute right-20 top-36 h-20 w-64 rotate-[-8deg] border-t-2 border-[#236CFF]/18"}),m.jsxs("svg",{className:"absolute inset-0 h-full w-full opacity-45",viewBox:"0 0 1500 980",preserveAspectRatio:"none",children:[m.jsx("path",{d:"M44 861 C151 783 224 766 305 690",fill:"none",stroke:"#236CFF",strokeWidth:"2",strokeOpacity:"0.18",strokeDasharray:"8 12"}),m.jsx("path",{d:"M1240 146 C1300 134 1360 142 1416 118",fill:"none",stroke:"#236CFF",strokeWidth:"2",strokeOpacity:"0.16"}),m.jsx("path",{d:"M80 150 h62 v62 h-62z",fill:"none",stroke:"#236CFF",strokeWidth:"2",strokeOpacity:"0.12",strokeDasharray:"6 8"}),m.jsx("path",{d:"M1426 706 l-16 28 -16 -28",fill:"none",stroke:"#236CFF",strokeWidth:"2",strokeOpacity:"0.18"}),m.jsx("path",{d:"M556 308 l14 23 23 14 -23 14 -14 23 -14 -23 -23 -14 23 -14 14 -23z",fill:"#236CFF",fillOpacity:"0.18"})]}),m.jsx("div",{className:"absolute inset-x-0 top-0 h-72 bg-gradient-to-b from-[#EAF2FF] to-transparent"})]}),m.jsxs("div",{className:"portal-brush-cursor relative h-screen overflow-hidden",onWheel:v=>{Math.abs(v.deltaY)<18||g(v.deltaY>0?1:-1)},children:[m.jsx("div",{className:"sticky top-0 z-40 mx-auto w-full max-w-[1500px] px-4 pt-4 sm:px-6 lg:px-10",children:m.jsx(Ide,{uiLang:t,copy:y,activeCanvas:r,activeSection:a,setActiveSection:o,setActiveCanvas:i,setUiLang:n})}),m.jsx("div",{className:"relative mx-auto h-[calc(100vh-160px)] w-full max-w-[1500px] px-4 sm:px-6 lg:px-10",children:m.jsx(U8,{mode:"sync",children:m.jsx(Rl.div,{initial:{opacity:0,y:18,scale:.992,filter:"blur(6px)"},animate:{opacity:1,y:0,scale:1,filter:"blur(0px)"},exit:{opacity:0,y:-14,scale:.992,filter:"blur(6px)"},transition:{duration:.58,ease:[.22,1,.36,1]},className:"absolute inset-x-4 top-0 h-full sm:inset-x-6 lg:inset-x-10",children:a==="home"?m.jsxs("main",{id:"portal-home",className:"grid h-full items-center gap-8 py-2 xl:grid-cols-[0.88fr_1.12fr]",children:[m.jsx("section",{className:"max-w-[650px] px-2",children:m.jsxs(Rl.div,{initial:{opacity:0,y:18},animate:{opacity:1,y:0},transition:{duration:.5},children:[m.jsxs("h1",{className:"text-[clamp(34px,4.2vw,64px)] font-black leading-[1.08] text-slate-950",children:[m.jsx("span",{className:"block",children:y.titleA}),m.jsxs("span",{className:"block",children:[m.jsx("span",{children:y.titleB}),m.jsx("span",{className:"text-[#236CFF]",children:y.titleAccent})]})]}),m.jsx("p",{className:"mt-7 max-w-[620px] text-[clamp(16px,1.35vw,18px)] leading-8 text-slate-600",children:y.intro}),m.jsx("div",{className:"mt-8 h-px w-64 bg-gradient-to-r from-[#236CFF]/60 via-[#8EC1FF]/45 to-transparent"})]})}),m.jsx("section",{className:"hidden justify-center xl:flex",children:m.jsxs("div",{className:"relative h-[650px] w-[720px]",onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[m.jsx("div",{className:"absolute left-[74px] top-2 h-[620px] w-[620px] rounded-full bg-[radial-gradient(circle,#FFFFFF_0%,rgba(239,246,255,0.88)_45%,rgba(218,232,255,0.30)_73%,transparent_100%)]"}),m.jsx("div",{className:"absolute left-[238px] top-[172px] h-[280px] w-[280px] rotate-[-5deg] rounded-[28px] border border-[#D6E7FF]/80 bg-white/58 shadow-[0_24px_70px_rgba(34,76,150,0.10)]"}),m.jsx("div",{className:"absolute left-[252px] top-[186px] h-[280px] w-[280px] rotate-[4deg] rounded-[28px] border border-[#D6E7FF]/70 bg-[#F8FBFF]/58 shadow-[0_18px_54px_rgba(34,76,150,0.08)]"}),m.jsxs("svg",{viewBox:"0 0 720 720",className:"absolute left-[384px] top-1/2 h-[620px] w-[620px] -translate-x-1/2 -translate-y-1/2",children:[m.jsxs("defs",{children:[m.jsx("marker",{id:"orbit-arrow",markerWidth:"10",markerHeight:"10",refX:"7",refY:"3",orient:"auto",children:m.jsx("path",{d:"M0,0 L0,6 L8,3 z",fill:"rgba(35,108,255,0.72)"})}),m.jsx("filter",{id:"canvas-paper-shadow",x:"-20%",y:"-20%",width:"140%",height:"140%",children:m.jsx("feDropShadow",{dx:"0",dy:"12",stdDeviation:"12",floodColor:"#224C96",floodOpacity:"0.10"})})]}),m.jsx("rect",{x:"258",y:"258",width:"204",height:"204",rx:"28",fill:"rgba(255,255,255,0.58)",stroke:"rgba(35,108,255,0.13)",filter:"url(#canvas-paper-shadow)"}),m.jsx("path",{d:"M286 314 H432 M286 360 H432 M286 406 H432",stroke:"rgba(35,108,255,0.11)",strokeWidth:"2",strokeLinecap:"round"}),m.jsx("path",{d:"M314 286 V434 M360 286 V434 M406 286 V434",stroke:"rgba(35,108,255,0.08)",strokeWidth:"2",strokeLinecap:"round"}),m.jsx("circle",{cx:"360",cy:"360",r:"250",fill:"none",stroke:"rgba(35,108,255,0.16)",strokeWidth:"1.6",strokeDasharray:"4 10"}),m.jsx("circle",{cx:"360",cy:"360",r:"205",fill:"none",stroke:"rgba(35,108,255,0.18)",strokeWidth:"2.2"}),m.jsx("circle",{cx:"360",cy:"360",r:"160",fill:"none",stroke:"rgba(35,108,255,0.13)",strokeWidth:"1.6",strokeDasharray:"11 9"}),m.jsx("circle",{cx:"360",cy:"360",r:"112",fill:"none",stroke:"rgba(35,108,255,0.19)",strokeWidth:"2.6"}),m.jsx("path",{d:"M232 190 A205 205 0 0 1 500 230",fill:"none",stroke:"rgba(35,108,255,0.74)",strokeWidth:"2.3",markerEnd:"url(#orbit-arrow)"}),m.jsx("path",{d:"M525 456 A205 205 0 0 1 380 566",fill:"none",stroke:"rgba(35,108,255,0.58)",strokeWidth:"2.2",markerEnd:"url(#orbit-arrow)"}),m.jsx("path",{d:"M190 462 A205 205 0 0 1 166 322",fill:"none",stroke:"rgba(35,108,255,0.50)",strokeWidth:"2.1",markerEnd:"url(#orbit-arrow)"}),[14,78,142,206,270,334].map((v,A)=>m.jsx(Y8,{angle:v,radius:250,delay:A*.22},v)),[36,130,224,318].map((v,A)=>m.jsx(Y8,{angle:v,radius:205,delay:A*.35},v))]}),m.jsx("div",{className:"absolute left-[384px] top-1/2 h-[540px] w-[540px]",style:{animation:"portal-card-orbit 38s linear infinite",animationPlayState:c?"paused":"running"},children:Sb.map(v=>m.jsx(Pde,{item:v,uiLang:t,active:v.id===r,paused:c,onActive:()=>i(v.id),onClick:()=>{i(v.id),o(v.id),u0(v.id)}},v.id))}),m.jsxs("div",{className:"absolute left-[384px] top-1/2 h-[248px] w-[248px] -translate-x-1/2 -translate-y-1/2 rounded-full border border-[#AFCBFF] bg-white shadow-[0_24px_90px_rgba(35,108,255,0.18)]",children:[m.jsx("div",{className:"absolute inset-4 rounded-full border border-[#E2ECFF]",style:{animation:"portal-ring-breathe 5s ease-in-out infinite"}}),m.jsx("div",{className:"absolute inset-8 rounded-full bg-[radial-gradient(circle,#FFFFFF_0%,#F3F7FF_100%)] shadow-[inset_0_0_0_8px_rgba(35,108,255,0.06),0_0_0_2px_rgba(35,108,255,0.08)]"}),m.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[m.jsx(iW,{className:"h-20 w-20"}),m.jsx("div",{className:"mt-4 text-2xl font-black text-slate-950",children:y.hub}),m.jsx("div",{className:"mt-2 text-sm text-slate-500",children:y.hubSub})]})]})]})}),m.jsxs("section",{className:"xl:hidden",children:[m.jsx("div",{className:"mb-3 text-sm font-semibold text-[#236CFF]",children:y.mobileHint}),m.jsx("div",{className:"grid gap-3 sm:grid-cols-2",children:Sb.map(v=>m.jsxs("button",{className:"overflow-hidden rounded-2xl border border-[#E6EEFC] bg-white p-3 text-left shadow-[0_12px_28px_rgba(34,76,150,0.08)]",onMouseEnter:()=>i(v.id),onFocus:()=>i(v.id),onClick:()=>{i(v.id),o(v.id),u0(v.id)},children:[m.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[m.jsx("span",{className:"text-sm font-bold text-slate-900",children:t==="zh"?v.zhTitle:v.enTitle}),m.jsx("span",{className:"h-2.5 w-2.5 rounded-full",style:{backgroundColor:v.accent}})]}),m.jsx("img",{src:v.image,alt:t==="zh"?v.zhTitle:v.enTitle,className:"h-[128px] w-full rounded-xl border border-[#EEF3FE] object-cover object-top"})]},v.id))})]})]}):m.jsx(Ude,{canvas:a,onEnterWorkspace:e,onPreviewImage:l})},a)})}),m.jsx("div",{className:"fixed inset-x-0 bottom-0 z-40 px-4 sm:px-6 lg:px-10",children:m.jsx(Mde,{copy:y})}),m.jsx(U8,{children:s&&m.jsx(Rl.div,{className:"fixed inset-0 z-50 flex items-center justify-center bg-slate-950/52 p-8 backdrop-blur-md",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>l(null),children:m.jsxs(Rl.div,{className:"relative max-h-[86vh] w-full max-w-[1180px] rounded-[28px] border border-white/70 bg-white p-5 shadow-[0_28px_90px_rgba(7,31,75,0.28)]",initial:{opacity:0,y:24,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:18,scale:.96},transition:{duration:.28,ease:[.22,1,.36,1]},onClick:v=>v.stopPropagation(),children:[m.jsxs("div",{className:"mb-4 flex items-center justify-between gap-4",children:[m.jsx("div",{className:"text-[22px] font-black text-slate-950",children:s.title}),m.jsx("button",{className:"flex h-10 w-10 items-center justify-center rounded-full border border-[#DDE8FA] bg-[#F7FAFF] text-slate-600 transition hover:bg-[#EAF2FF] hover:text-[#236CFF]",onClick:()=>l(null),"aria-label":t==="zh"?"关闭预览":"Close preview",children:m.jsx(Va,{className:"h-5 w-5"})})]}),m.jsx("div",{className:"flex max-h-[72vh] items-center justify-center overflow-hidden rounded-2xl border border-[#E3ECFA] bg-[#F7FAFF]",children:m.jsx("img",{src:s.image,alt:s.title,className:"max-h-[72vh] w-full object-contain"})})]})})})]})]})}function Ode({onStart:e}){return m.jsx(Lde,{onEnterWorkspace:t=>e(t)})}const jde=(e,t,n)=>{const r=new URL(e??"https://embed.diagrams.net"),i=new URLSearchParams;return i.append("embed","1"),i.append("proto","json"),n&&i.append("configure","1"),t&&Object.keys(t).forEach(a=>{const o=t[a];o!==void 0&&(typeof o=="boolean"?i.append(a,o?"1":"0"):i.append(a,o.toString()))}),r.search=i.toString(),r.toString()};function Bde(e,t,n){if(!(!e.origin.includes("embed.diagrams.net")&&n&&!n.includes(e.origin)&&!e.origin.includes(n)))try{const r=JSON.parse(e.data);if(r.event in t){const i=t[r.event];i&&i(r)}}catch{}}const zde=e=>{const t=(f,g)=>{var y,v;(v=(y=e.current)==null?void 0:y.contentWindow)==null||v.postMessage(JSON.stringify({action:f,...g}),"*")};return{load:f=>{t("load",f)},configure:f=>{t("configure",f)},merge:f=>{t("merge",f)},dialog:f=>{t("dialog",f)},prompt:f=>{t("prompt",f)},template:f=>{t("template",f)},layout:f=>{t("layout",f)},draft:f=>{t("draft",f)},status:f=>{t("status",f)},spinner:f=>{t("spinner",f)},exportDiagram:f=>{t("export",f)}}},Wde=N.forwardRef((e,t)=>{const{autosave:n=!1,baseUrl:r,urlParameters:i,configuration:a,xml:o,csv:s,exportFormat:l,onAutoSave:c,onSave:u,onClose:d,onLoad:h,onConfigure:f,onDraft:g,onExport:y,onMerge:v,onPrompt:A,onTemplate:w}=e,S=N.useRef(null),_=zde(S),E=jde(r,i,!!a),[T,D]=N.useState(!1),I=j=>{Bde(j,{init:()=>{D(!0)},load:R=>{h&&h(R)},configure:R=>{a&&_.configure({config:a}),f&&f(R)},autosave:R=>{c&&c(R)},save:R=>{_.exportDiagram({format:l||"xmlsvg",exit:R.exit,parentEvent:"save"})},exit:R=>{d&&d(R)},draft:R=>{g&&g(R)},export:R=>{u&&u({event:"save",xml:R.data,parentEvent:R.message.parentEvent||"export"}),y&&y(R),R.message.exit&&d&&d({event:"exit",modified:!0,parentEvent:R.message.parentEvent||"export"})},merge:R=>{v&&v(R)},prompt:R=>{A&&A(R)},template:R=>{w&&w(R)}},r)};return N.useImperativeHandle(t,()=>({..._}),[]),N.useEffect(()=>{let j={};T&&(o?l==="xmlpng"?j={xmlpng:o}:j={xml:o}:s?j={descriptor:{format:"csv",data:s}}:j={xml:""},j={...j,autosave:n},_.load(j))},[T,o,s,n]),N.useEffect(()=>(window.addEventListener("message",I),()=>{window.removeEventListener("message",I)}),[]),Dt.createElement("iframe",{className:"diagrams-iframe",src:E,ref:S,allow:"clipboard-read; clipboard-write",title:"Diagrams.net",style:{width:"100%",height:"100%",minWidth:"400px",minHeight:"400px",border:"none"}})});var oW="vercel.ai.error",Vde=Symbol.for(oW),J8,Q8,ed=class sW extends(Q8=Error,J8=Vde,Q8){constructor({name:t,message:n,cause:r}){super(n),this[J8]=!0,this.name=t,this.cause=r}static isInstance(t){return sW.hasMarker(t,oW)}static hasMarker(t,n){const r=Symbol.for(n);return t!=null&&typeof t=="object"&&r in t&&typeof t[r]=="boolean"&&t[r]===!0}};function lW(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var cW="AI_InvalidArgumentError",uW=`vercel.ai.error.${cW}`,Gde=Symbol.for(uW),e4,t4,qde=class extends(t4=ed,e4=Gde,t4){constructor({message:e,cause:t,argument:n}){super({name:cW,message:e,cause:t}),this[e4]=!0,this.argument=n}static isInstance(e){return ed.hasMarker(e,uW)}},dW="AI_JSONParseError",fW=`vercel.ai.error.${dW}`,Hde=Symbol.for(fW),n4,r4,i4=class extends(r4=ed,n4=Hde,r4){constructor({text:e,cause:t}){super({name:dW,message:`JSON parsing failed: Text: ${e}.-Error message: ${lW(t)}`,cause:t}),this[n4]=!0,this.text=e}static isInstance(e){return ed.hasMarker(e,fW)}},hW="AI_TypeValidationError",pW=`vercel.ai.error.${hW}`,Xde=Symbol.for(pW),a4,o4,C1=class i_ extends(o4=ed,a4=Xde,o4){constructor({value:t,cause:n}){super({name:hW,message:`Type validation failed: Value: ${JSON.stringify(t)}.-Error message: ${lW(n)}`,cause:n}),this[a4]=!0,this.value=t}static isInstance(t){return ed.hasMarker(t,pW)}static wrap({value:t,cause:n}){return i_.isInstance(n)&&n.value===t?n:new i_({value:t,cause:n})}};class s4 extends Error{constructor(t,n){super(t),this.name="ParseError",this.type=n.type,this.field=n.field,this.value=n.value,this.line=n.line}}function Ck(e){}function Zde(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");const{onEvent:t=Ck,onError:n=Ck,onRetry:r=Ck,onComment:i}=e;let a="",o=!0,s,l="",c="";function u(y){const v=o?y.replace(/^\xEF\xBB\xBF/,""):y,[A,w]=Kde(`${a}${v}`);for(const S of A)d(S);a=w,o=!1}function d(y){if(y===""){f();return}if(y.startsWith(":")){i&&i(y.slice(y.startsWith(": ")?2:1));return}const v=y.indexOf(":");if(v!==-1){const A=y.slice(0,v),w=y[v+1]===" "?2:1,S=y.slice(v+w);h(A,S,y);return}h(y,"",y)}function h(y,v,A){switch(y){case"event":c=v;break;case"data":l=`${l}${v}-`;break;case"id":s=v.includes("\0")?void 0:v;break;case"retry":/^\d+$/.test(v)?r(parseInt(v,10)):n(new s4(`Invalid \`retry\` value: "${v}"`,{type:"invalid-retry",value:v,line:A}));break;default:n(new s4(`Unknown field "${y.length>20?`${y.slice(0,20)}…`:y}"`,{type:"unknown-field",field:y,value:v,line:A}));break}}function f(){l.length>0&&t({id:s,event:c||void 0,data:l.endsWith(`-`)?l.slice(0,-1):l}),s=void 0,l="",c=""}function g(y={}){a&&y.consume&&d(a),o=!0,s=void 0,l="",c="",a=""}return{feed:u,reset:g}}function Kde(e){const t=[];let n="",r=0;for(;r<e.length;){const i=e.indexOf("\r",r),a=e.indexOf(`-`,r);let o=-1;if(i!==-1&&a!==-1?o=Math.min(i,a):i!==-1?i===e.length-1?o=-1:o=i:a!==-1&&(o=a),o===-1){n=e.slice(r);break}else{const s=e.slice(r,o);t.push(s),r=o+1,e[r-1]==="\r"&&e[r]===`-`&&r++}}return[t,n]}class $de extends TransformStream{constructor({onError:t,onRetry:n,onComment:r}={}){let i;super({start(a){i=Zde({onEvent:o=>{a.enqueue(o)},onError(o){t==="terminate"?a.error(o):typeof t=="function"&&t(o)},onRetry:n,onComment:r})},transform(a){i.feed(a)}})}}function ht(e,t,n){function r(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:o,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,l);const c=o.prototype,u=Object.keys(c);for(let d=0;d<u.length;d++){const h=u[d];h in s||(s[h]=c[h].bind(s))}}const i=(n==null?void 0:n.Parent)??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(s){var l;const c=n!=null&&n.Parent?new a:this;r(c,s),(l=c._zod).deferred??(l.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:s=>{var l,c;return n!=null&&n.Parent&&s instanceof n.Parent?!0:(c=(l=s==null?void 0:s._zod)==null?void 0:l.traits)==null?void 0:c.has(e)}}),Object.defineProperty(o,"name",{value:e}),o}class Bp extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class gW extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const mW={};function td(e){return mW}function yW(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function a_(e,t){return typeof t=="bigint"?t.toString():t}function qA(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function xN(e){return e==null}function bN(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Yde(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const l=r.match(/\d?e-(\d?)/);l!=null&&l[1]&&(i=Number.parseInt(l[1]))}const a=n>i?n:i,o=Number.parseInt(e.toFixed(a).replace(".","")),s=Number.parseInt(t.toFixed(a).replace(".",""));return o%s/10**a}const l4=Symbol("evaluating");function Yr(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==l4)return r===void 0&&(r=l4,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function $f(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function md(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function c4(e){return JSON.stringify(e)}function Jde(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const vW="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function U0(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Qde=qA(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Jp(e){if(U0(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(U0(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function xW(e){return Jp(e)?{...e}:Array.isArray(e)?[...e]:e}const efe=new Set(["string","number","symbol"]);function Qp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function yd(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function vn(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function tfe(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const nfe={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function rfe(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const a=md(e._zod.def,{get shape(){const o={};for(const s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(o[s]=n.shape[s])}return $f(this,"shape",o),o},checks:[]});return yd(e,a)}function ife(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const a=md(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete o[s]}return $f(this,"shape",o),o},checks:[]});return yd(e,a)}function afe(e,t){if(!Jp(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const a=e._zod.def.shape;for(const o in t)if(Object.getOwnPropertyDescriptor(a,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=md(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return $f(this,"shape",a),a}});return yd(e,i)}function ofe(e,t){if(!Jp(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=md(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return $f(this,"shape",r),r}});return yd(e,n)}function sfe(e,t){const n=md(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return $f(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return yd(e,n)}function lfe(e,t,n){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const o=md(t._zod.def,{get shape(){const s=t._zod.def.shape,l={...s};if(n)for(const c in n){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(l[c]=e?new e({type:"optional",innerType:s[c]}):s[c])}else for(const c in s)l[c]=e?new e({type:"optional",innerType:s[c]}):s[c];return $f(this,"shape",l),l},checks:[]});return yd(t,o)}function cfe(e,t,n){const r=md(t._zod.def,{get shape(){const i=t._zod.def.shape,a={...i};if(n)for(const o in n){if(!(o in a))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(a[o]=new e({type:"nonoptional",innerType:i[o]}))}else for(const o in i)a[o]=new e({type:"nonoptional",innerType:i[o]});return $f(this,"shape",a),a}});return yd(t,r)}function Sp(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function kp(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function hx(e){return typeof e=="string"?e:e==null?void 0:e.message}function nd(e,t,n){var i,a,o,s,l,c;const r={...e,path:e.path??[]};if(!e.message){const u=hx((o=(a=(i=e.inst)==null?void 0:i._zod.def)==null?void 0:a.error)==null?void 0:o.call(a,e))??hx((s=t==null?void 0:t.error)==null?void 0:s.call(t,e))??hx((l=n.customError)==null?void 0:l.call(n,e))??hx((c=n.localeError)==null?void 0:c.call(n,e))??"Invalid input";r.message=u}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function AN(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function L0(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const bW=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,a_,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},AW=ht("$ZodError",bW),wW=ht("$ZodError",bW,{Parent:Error});function ufe(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function dfe(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(o=>r({issues:o}));else if(a.code==="invalid_key")r({issues:a.issues});else if(a.code==="invalid_element")r({issues:a.issues});else if(a.path.length===0)n._errors.push(t(a));else{let o=n,s=0;for(;s<a.path.length;){const l=a.path[s];s===a.path.length-1?(o[l]=o[l]||{_errors:[]},o[l]._errors.push(t(a))):o[l]=o[l]||{_errors:[]},o=o[l],s++}}};return r(e),n}const wN=e=>(t,n,r,i)=>{const a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new Bp;if(o.issues.length){const s=new((i==null?void 0:i.Err)??e)(o.issues.map(l=>nd(l,a,td())));throw vW(s,i==null?void 0:i.callee),s}return o.value},SN=e=>async(t,n,r,i)=>{const a=r?Object.assign(r,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){const s=new((i==null?void 0:i.Err)??e)(o.issues.map(l=>nd(l,a,td())));throw vW(s,i==null?void 0:i.callee),s}return o.value},HA=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Bp;return a.issues.length?{success:!1,error:new(e??AW)(a.issues.map(o=>nd(o,i,td())))}:{success:!0,data:a.value}},ffe=HA(wW),XA=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(o=>nd(o,i,td())))}:{success:!0,data:a.value}},hfe=XA(wW),pfe=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return wN(e)(t,n,i)},gfe=e=>(t,n,r)=>wN(e)(t,n,r),mfe=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return SN(e)(t,n,i)},yfe=e=>async(t,n,r)=>SN(e)(t,n,r),vfe=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return HA(e)(t,n,i)},xfe=e=>(t,n,r)=>HA(e)(t,n,r),bfe=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return XA(e)(t,n,i)},Afe=e=>async(t,n,r)=>XA(e)(t,n,r),wfe=/^[cC][^\s-]{8,}$/,Sfe=/^[0-9a-z]+$/,kfe=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Dfe=/^[0-9a-vA-V]{20}$/,Cfe=/^[A-Za-z0-9]{27}$/,Tfe=/^[a-zA-Z0-9_-]{21}$/,_fe=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Efe=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,u4=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Nfe=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ffe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Rfe(){return new RegExp(Ffe,"u")}const Pfe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ife=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Mfe=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ufe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Lfe=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,SW=/^[A-Za-z0-9_-]*$/,Ofe=/^\+[1-9]\d{6,14}$/,kW="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",jfe=new RegExp(`^${kW}$`);function DW(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Bfe(e){return new RegExp(`^${DW(e)}$`)}function zfe(e){const t=DW({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${kW}T(?:${r})$`)}const Wfe=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Vfe=/^-?\d+$/,CW=/^-?\d+(?:\.\d+)?$/,Gfe=/^(?:true|false)$/i,qfe=/^null$/i,Hfe=/^[^A-Z]*$/,Xfe=/^[^a-z]*$/,Xo=ht("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),TW={number:"number",bigint:"bigint",object:"date"},_W=ht("$ZodCheckLessThan",(e,t)=>{Xo.init(e,t);const n=TW[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,a=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),EW=ht("$ZodCheckGreaterThan",(e,t)=>{Xo.init(e,t);const n=TW[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,a=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Zfe=ht("$ZodCheckMultipleOf",(e,t)=>{Xo.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Yde(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Kfe=ht("$ZodCheckNumberFormat",(e,t)=>{var o;Xo.init(e,t),t.format=t.format||"float64";const n=(o=t.format)==null?void 0:o.includes("int"),r=n?"int":"number",[i,a]=nfe[t.format];e._zod.onattach.push(s=>{const l=s._zod.bag;l.format=t.format,l.minimum=i,l.maximum=a,n&&(l.pattern=Vfe)}),e._zod.check=s=>{const l=s.value;if(n){if(!Number.isInteger(l)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?s.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}l<i&&s.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),l>a&&s.issues.push({origin:"number",input:l,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),$fe=ht("$ZodCheckMaxLength",(e,t)=>{var n;Xo.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!xN(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=t.maximum)return;const o=AN(i);r.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Yfe=ht("$ZodCheckMinLength",(e,t)=>{var n;Xo.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!xN(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const o=AN(i);r.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Jfe=ht("$ZodCheckLengthEquals",(e,t)=>{var n;Xo.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!xN(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,a=i.length;if(a===t.length)return;const o=AN(i),s=a>t.length;r.issues.push({origin:o,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),ZA=ht("$ZodCheckStringFormat",(e,t)=>{var n,r;Xo.init(e,t),e._zod.onattach.push(i=>{const a=i._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Qfe=ht("$ZodCheckRegex",(e,t)=>{ZA.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),ehe=ht("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Hfe),ZA.init(e,t)}),the=ht("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Xfe),ZA.init(e,t)}),nhe=ht("$ZodCheckIncludes",(e,t)=>{Xo.init(e,t);const n=Qp(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),rhe=ht("$ZodCheckStartsWith",(e,t)=>{Xo.init(e,t);const n=new RegExp(`^${Qp(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),ihe=ht("$ZodCheckEndsWith",(e,t)=>{Xo.init(e,t);const n=new RegExp(`.*${Qp(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),ahe=ht("$ZodCheckOverwrite",(e,t)=>{Xo.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class ohe{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`-`).filter(o=>o),i=Math.min(...r.map(o=>o.length-o.trimStart().length)),a=r.map(o=>o.slice(i)).map(o=>" ".repeat(this.indent*2)+o);for(const o of a)this.content.push(o)}compile(){const t=Function,n=this==null?void 0:this.args,i=[...((this==null?void 0:this.content)??[""]).map(a=>` ${a}`)];return new t(...n,i.join(`-`))}}const she={major:4,minor:3,patch:6},Bi=ht("$ZodType",(e,t)=>{var i;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=she;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const o of a._zod.onattach)o(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(i=e._zod.deferred)==null||i.push(()=>{e._zod.run=e._zod.parse});else{const a=(s,l,c)=>{let u=Sp(s),d;for(const h of l){if(h._zod.def.when){if(!h._zod.def.when(s))continue}else if(u)continue;const f=s.issues.length,g=h._zod.check(s);if(g instanceof Promise&&(c==null?void 0:c.async)===!1)throw new Bp;if(d||g instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await g,s.issues.length!==f&&(u||(u=Sp(s,f)))});else{if(s.issues.length===f)continue;u||(u=Sp(s,f))}}return d?d.then(()=>s):s},o=(s,l,c)=>{if(Sp(s))return s.aborted=!0,s;const u=a(l,r,c);if(u instanceof Promise){if(c.async===!1)throw new Bp;return u.then(d=>e._zod.parse(d,c))}return e._zod.parse(u,c)};e._zod.run=(s,l)=>{if(l.skipChecks)return e._zod.parse(s,l);if(l.direction==="backward"){const u=e._zod.parse({value:s.value,issues:[]},{...l,skipChecks:!0});return u instanceof Promise?u.then(d=>o(d,s,l)):o(u,s,l)}const c=e._zod.parse(s,l);if(c instanceof Promise){if(l.async===!1)throw new Bp;return c.then(u=>a(u,r,l))}return a(c,r,l)}}Yr(e,"~standard",()=>({validate:a=>{var o;try{const s=ffe(e,a);return s.success?{value:s.data}:{issues:(o=s.error)==null?void 0:o.issues}}catch{return hfe(e,a).then(l=>{var c;return l.success?{value:l.data}:{issues:(c=l.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}))}),kN=ht("$ZodString",(e,t)=>{var n;Bi.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Wfe(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Ki=ht("$ZodStringFormat",(e,t)=>{ZA.init(e,t),kN.init(e,t)}),lhe=ht("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Efe),Ki.init(e,t)}),che=ht("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=u4(r))}else t.pattern??(t.pattern=u4());Ki.init(e,t)}),uhe=ht("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Nfe),Ki.init(e,t)}),dhe=ht("$ZodURL",(e,t)=>{Ki.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),fhe=ht("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Rfe()),Ki.init(e,t)}),hhe=ht("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Tfe),Ki.init(e,t)}),phe=ht("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=wfe),Ki.init(e,t)}),ghe=ht("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Sfe),Ki.init(e,t)}),mhe=ht("$ZodULID",(e,t)=>{t.pattern??(t.pattern=kfe),Ki.init(e,t)}),yhe=ht("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Dfe),Ki.init(e,t)}),vhe=ht("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Cfe),Ki.init(e,t)}),xhe=ht("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=zfe(t)),Ki.init(e,t)}),bhe=ht("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=jfe),Ki.init(e,t)}),Ahe=ht("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Bfe(t)),Ki.init(e,t)}),whe=ht("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=_fe),Ki.init(e,t)}),She=ht("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Pfe),Ki.init(e,t),e._zod.bag.format="ipv4"}),khe=ht("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ife),Ki.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Dhe=ht("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Mfe),Ki.init(e,t)}),Che=ht("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ufe),Ki.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,a]=r;if(!a)throw new Error;const o=Number(a);if(`${o}`!==a)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function NW(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const The=ht("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Lfe),Ki.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{NW(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function _he(e){if(!SW.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return NW(n)}const Ehe=ht("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=SW),Ki.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{_he(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Nhe=ht("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ofe),Ki.init(e,t)});function Fhe(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const Rhe=ht("$ZodJWT",(e,t)=>{Ki.init(e,t),e._zod.check=n=>{Fhe(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),FW=ht("$ZodNumber",(e,t)=>{Bi.init(e,t),e._zod.pattern=e._zod.bag.pattern??CW,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const a=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),n}}),Phe=ht("$ZodNumberFormat",(e,t)=>{Kfe.init(e,t),FW.init(e,t)}),Ihe=ht("$ZodBoolean",(e,t)=>{Bi.init(e,t),e._zod.pattern=Gfe,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),Mhe=ht("$ZodNull",(e,t)=>{Bi.init(e,t),e._zod.pattern=qfe,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{const i=n.value;return i===null||n.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),n}}),Uhe=ht("$ZodUnknown",(e,t)=>{Bi.init(e,t),e._zod.parse=n=>n}),Lhe=ht("$ZodNever",(e,t)=>{Bi.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function d4(e,t,n){e.issues.length&&t.issues.push(...kp(n,e.issues)),t.value[n]=e.value}const Ohe=ht("$ZodArray",(e,t)=>{Bi.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const a=[];for(let o=0;o<i.length;o++){const s=i[o],l=t.element._zod.run({value:s,issues:[]},r);l instanceof Promise?a.push(l.then(c=>d4(c,n,o))):d4(l,n,o)}return a.length?Promise.all(a).then(()=>n):n}});function T1(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...kp(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function RW(e){var r,i,a,o;const t=Object.keys(e.shape);for(const s of t)if(!((o=(a=(i=(r=e.shape)==null?void 0:r[s])==null?void 0:i._zod)==null?void 0:a.traits)!=null&&o.has("$ZodType")))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const n=tfe(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function PW(e,t,n,r,i,a){const o=[],s=i.keySet,l=i.catchall._zod,c=l.def.type,u=l.optout==="optional";for(const d in t){if(s.has(d))continue;if(c==="never"){o.push(d);continue}const h=l.run({value:t[d],issues:[]},r);h instanceof Promise?e.push(h.then(f=>T1(f,n,d,t,u))):T1(h,n,d,t,u)}return o.length&&n.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const jhe=ht("$ZodObject",(e,t)=>{Bi.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...s};return Object.defineProperty(t,"shape",{value:l}),l}})}const r=qA(()=>RW(t));Yr(e._zod,"propValues",()=>{const s=t.shape,l={};for(const c in s){const u=s[c]._zod;if(u.values){l[c]??(l[c]=new Set);for(const d of u.values)l[c].add(d)}}return l});const i=U0,a=t.catchall;let o;e._zod.parse=(s,l)=>{o??(o=r.value);const c=s.value;if(!i(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};const u=[],d=o.shape;for(const h of o.keys){const f=d[h],g=f._zod.optout==="optional",y=f._zod.run({value:c[h],issues:[]},l);y instanceof Promise?u.push(y.then(v=>T1(v,s,h,c,g))):T1(y,s,h,c,g)}return a?PW(u,c,s,l,r.value,e):u.length?Promise.all(u).then(()=>s):s}}),Bhe=ht("$ZodObjectJIT",(e,t)=>{jhe.init(e,t);const n=e._zod.parse,r=qA(()=>RW(t)),i=h=>{var S;const f=new ohe(["shape","payload","ctx"]),g=r.value,y=_=>{const E=c4(_);return`shape[${E}]._zod.run({ value: input[${E}], issues: [] }, ctx)`};f.write("const input = payload.value;");const v=Object.create(null);let A=0;for(const _ of g.keys)v[_]=`key_${A++}`;f.write("const newResult = {};");for(const _ of g.keys){const E=v[_],T=c4(_),D=h[_],I=((S=D==null?void 0:D._zod)==null?void 0:S.optout)==="optional";f.write(`const ${E} = ${y(_)};`),I?f.write(`- if (${E}.issues.length) {- if (${T} in input) {- payload.issues = payload.issues.concat(${E}.issues.map(iss => ({- ...iss,- path: iss.path ? [${T}, ...iss.path] : [${T}]- })));- }- }-- if (${E}.value === undefined) {- if (${T} in input) {- newResult[${T}] = undefined;- }- } else {- newResult[${T}] = ${E}.value;- }-- `):f.write(`- if (${E}.issues.length) {- payload.issues = payload.issues.concat(${E}.issues.map(iss => ({- ...iss,- path: iss.path ? [${T}, ...iss.path] : [${T}]- })));- }-- if (${E}.value === undefined) {- if (${T} in input) {- newResult[${T}] = undefined;- }- } else {- newResult[${T}] = ${E}.value;- }-- `)}f.write("payload.value = newResult;"),f.write("return payload;");const w=f.compile();return(_,E)=>w(h,_,E)};let a;const o=U0,s=!mW.jitless,c=s&&Qde.value,u=t.catchall;let d;e._zod.parse=(h,f)=>{d??(d=r.value);const g=h.value;return o(g)?s&&c&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(a||(a=i(t.shape)),h=a(h,f),u?PW([],g,h,f,d,e):h):n(h,f):(h.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),h)}});function f4(e,t,n,r){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const i=e.filter(a=>!Sp(a));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(a=>a.issues.map(o=>nd(o,r,td())))}),t)}const IW=ht("$ZodUnion",(e,t)=>{Bi.init(e,t),Yr(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Yr(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Yr(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),Yr(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${i.map(a=>bN(a.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1;const s=[];for(const l of t.options){const c=l._zod.run({value:i.value,issues:[]},a);if(c instanceof Promise)s.push(c),o=!0;else{if(c.issues.length===0)return c;s.push(c)}}return o?Promise.all(s).then(l=>f4(l,i,e,a)):f4(s,i,e,a)}}),zhe=ht("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,IW.init(e,t);const n=e._zod.parse;Yr(e._zod,"propValues",()=>{const i={};for(const a of t.options){const o=a._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[s,l]of Object.entries(o)){i[s]||(i[s]=new Set);for(const c of l)i[s].add(c)}}return i});const r=qA(()=>{var o;const i=t.options,a=new Map;for(const s of i){const l=(o=s._zod.propValues)==null?void 0:o[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const c of l){if(a.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);a.set(c,s)}}return a});e._zod.parse=(i,a)=>{const o=i.value;if(!U0(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),i;const s=r.value.get(o==null?void 0:o[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)}}),Whe=ht("$ZodIntersection",(e,t)=>{Bi.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,a=t.left._zod.run({value:i,issues:[]},r),o=t.right._zod.run({value:i,issues:[]},r);return a instanceof Promise||o instanceof Promise?Promise.all([a,o]).then(([l,c])=>h4(n,l,c)):h4(n,a,o)}});function o_(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Jp(e)&&Jp(t)){const n=Object.keys(t),r=Object.keys(e).filter(a=>n.indexOf(a)!==-1),i={...e,...t};for(const a of r){const o=o_(e[a],t[a]);if(!o.valid)return{valid:!1,mergeErrorPath:[a,...o.mergeErrorPath]};i[a]=o.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],a=t[r],o=o_(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function h4(e,t,n){const r=new Map;let i;for(const s of t.issues)if(s.code==="unrecognized_keys"){i??(i=s);for(const l of s.keys)r.has(l)||r.set(l,{}),r.get(l).l=!0}else e.issues.push(s);for(const s of n.issues)if(s.code==="unrecognized_keys")for(const l of s.keys)r.has(l)||r.set(l,{}),r.get(l).r=!0;else e.issues.push(s);const a=[...r].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(a.length&&i&&e.issues.push({...i,keys:a}),Sp(e))return e;const o=o_(t.value,n.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const Vhe=ht("$ZodRecord",(e,t)=>{Bi.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Jp(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;const a=[],o=t.keyType._zod.values;if(o){n.value={};const s=new Set;for(const c of o)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){s.add(typeof c=="number"?c.toString():c);const u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(d=>{d.issues.length&&n.issues.push(...kp(c,d.issues)),n.value[c]=d.value})):(u.issues.length&&n.issues.push(...kp(c,u.issues)),n.value[c]=u.value)}let l;for(const c in i)s.has(c)||(l=l??[],l.push(c));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l})}else{n.value={};for(const s of Reflect.ownKeys(i)){if(s==="__proto__")continue;let l=t.keyType._zod.run({value:s,issues:[]},r);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&CW.test(s)&&l.issues.length){const d=t.keyType._zod.run({value:Number(s),issues:[]},r);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(l=d)}if(l.issues.length){t.mode==="loose"?n.value[s]=i[s]:n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>nd(d,r,td())),input:s,path:[s],inst:e});continue}const u=t.valueType._zod.run({value:i[s],issues:[]},r);u instanceof Promise?a.push(u.then(d=>{d.issues.length&&n.issues.push(...kp(s,d.issues)),n.value[l.value]=d.value})):(u.issues.length&&n.issues.push(...kp(s,u.issues)),n.value[l.value]=u.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Ghe=ht("$ZodEnum",(e,t)=>{Bi.init(e,t);const n=yW(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>efe.has(typeof i)).map(i=>typeof i=="string"?Qp(i):i.toString()).join("|")})$`),e._zod.parse=(i,a)=>{const o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:n,input:o,inst:e}),i}}),qhe=ht("$ZodLiteral",(e,t)=>{if(Bi.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Qp(r):r?Qp(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,i)=>{const a=r.value;return n.has(a)||r.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),r}}),Hhe=ht("$ZodTransform",(e,t)=>{Bi.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new gW(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(n.value=o,n));if(i instanceof Promise)throw new Bp;return n.value=i,n}});function p4(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const MW=ht("$ZodOptional",(e,t)=>{Bi.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Yr(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Yr(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${bN(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>p4(a,n.value)):p4(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Xhe=ht("$ZodExactOptional",(e,t)=>{MW.init(e,t),Yr(e._zod,"values",()=>t.innerType._zod.values),Yr(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Zhe=ht("$ZodNullable",(e,t)=>{Bi.init(e,t),Yr(e._zod,"optin",()=>t.innerType._zod.optin),Yr(e._zod,"optout",()=>t.innerType._zod.optout),Yr(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${bN(n.source)}|null)$`):void 0}),Yr(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Khe=ht("$ZodDefault",(e,t)=>{Bi.init(e,t),e._zod.optin="optional",Yr(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>g4(a,t)):g4(i,t)}});function g4(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const $he=ht("$ZodPrefault",(e,t)=>{Bi.init(e,t),e._zod.optin="optional",Yr(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Yhe=ht("$ZodNonOptional",(e,t)=>{Bi.init(e,t),Yr(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>m4(a,e)):m4(i,e)}});function m4(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Jhe=ht("$ZodCatch",(e,t)=>{Bi.init(e,t),Yr(e._zod,"optin",()=>t.innerType._zod.optin),Yr(e._zod,"optout",()=>t.innerType._zod.optout),Yr(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(o=>nd(o,r,td()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>nd(a,r,td()))},input:n.value}),n.issues=[]),n)}}),Qhe=ht("$ZodPipe",(e,t)=>{Bi.init(e,t),Yr(e._zod,"values",()=>t.in._zod.values),Yr(e._zod,"optin",()=>t.in._zod.optin),Yr(e._zod,"optout",()=>t.out._zod.optout),Yr(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const a=t.out._zod.run(n,r);return a instanceof Promise?a.then(o=>px(o,t.in,r)):px(a,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(a=>px(a,t.out,r)):px(i,t.out,r)}});function px(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const epe=ht("$ZodReadonly",(e,t)=>{Bi.init(e,t),Yr(e._zod,"propValues",()=>t.innerType._zod.propValues),Yr(e._zod,"values",()=>t.innerType._zod.values),Yr(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),Yr(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(y4):y4(i)}});function y4(e){return e.value=Object.freeze(e.value),e}const tpe=ht("$ZodLazy",(e,t)=>{Bi.init(e,t),Yr(e._zod,"innerType",()=>t.getter()),Yr(e._zod,"pattern",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.pattern}),Yr(e._zod,"propValues",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.propValues}),Yr(e._zod,"optin",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optin)??void 0}),Yr(e._zod,"optout",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optout)??void 0}),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),npe=ht("$ZodCustom",(e,t)=>{Xo.init(e,t),Bi.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(a=>v4(a,n,r,e));v4(i,n,r,e)}});function v4(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(L0(i))}}var x4;class rpe{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function ipe(){return new rpe}(x4=globalThis).__zod_globalRegistry??(x4.__zod_globalRegistry=ipe());const Om=globalThis.__zod_globalRegistry;function ape(e,t){return new e({type:"string",...vn(t)})}function ope(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...vn(t)})}function b4(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...vn(t)})}function spe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...vn(t)})}function lpe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...vn(t)})}function cpe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...vn(t)})}function upe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...vn(t)})}function dpe(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...vn(t)})}function fpe(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...vn(t)})}function hpe(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...vn(t)})}function ppe(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...vn(t)})}function gpe(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...vn(t)})}function mpe(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...vn(t)})}function ype(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...vn(t)})}function vpe(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...vn(t)})}function xpe(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...vn(t)})}function bpe(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...vn(t)})}function Ape(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...vn(t)})}function wpe(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...vn(t)})}function Spe(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...vn(t)})}function kpe(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...vn(t)})}function Dpe(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...vn(t)})}function Cpe(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...vn(t)})}function Tpe(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...vn(t)})}function _pe(e,t){return new e({type:"string",format:"date",check:"string_format",...vn(t)})}function Epe(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...vn(t)})}function Npe(e,t){return new e({type:"string",format:"duration",check:"string_format",...vn(t)})}function Fpe(e,t){return new e({type:"number",checks:[],...vn(t)})}function Rpe(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...vn(t)})}function Ppe(e,t){return new e({type:"boolean",...vn(t)})}function Ipe(e,t){return new e({type:"null",...vn(t)})}function Mpe(e){return new e({type:"unknown"})}function Upe(e,t){return new e({type:"never",...vn(t)})}function A4(e,t){return new _W({check:"less_than",...vn(t),value:e,inclusive:!1})}function Tk(e,t){return new _W({check:"less_than",...vn(t),value:e,inclusive:!0})}function w4(e,t){return new EW({check:"greater_than",...vn(t),value:e,inclusive:!1})}function _k(e,t){return new EW({check:"greater_than",...vn(t),value:e,inclusive:!0})}function S4(e,t){return new Zfe({check:"multiple_of",...vn(t),value:e})}function UW(e,t){return new $fe({check:"max_length",...vn(t),maximum:e})}function _1(e,t){return new Yfe({check:"min_length",...vn(t),minimum:e})}function LW(e,t){return new Jfe({check:"length_equals",...vn(t),length:e})}function Lpe(e,t){return new Qfe({check:"string_format",format:"regex",...vn(t),pattern:e})}function Ope(e){return new ehe({check:"string_format",format:"lowercase",...vn(e)})}function jpe(e){return new the({check:"string_format",format:"uppercase",...vn(e)})}function Bpe(e,t){return new nhe({check:"string_format",format:"includes",...vn(t),includes:e})}function zpe(e,t){return new rhe({check:"string_format",format:"starts_with",...vn(t),prefix:e})}function Wpe(e,t){return new ihe({check:"string_format",format:"ends_with",...vn(t),suffix:e})}function Sg(e){return new ahe({check:"overwrite",tx:e})}function Vpe(e){return Sg(t=>t.normalize(e))}function Gpe(){return Sg(e=>e.trim())}function qpe(){return Sg(e=>e.toLowerCase())}function Hpe(){return Sg(e=>e.toUpperCase())}function Xpe(){return Sg(e=>Jde(e))}function Zpe(e,t,n){return new e({type:"array",element:t,...vn(n)})}function Kpe(e,t,n){const r=vn(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function $pe(e,t,n){return new e({type:"custom",check:"custom",fn:t,...vn(n)})}function Ype(e){const t=Jpe(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(L0(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(L0(i))}},e(n.value,n)));return t}function Jpe(e,t){const n=new Xo({check:"custom",...vn(t)});return n._zod.check=e,n}function E1(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Om,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function Pi(e,t,n={path:[],schemaPath:[]}){var u,d;var r;const i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;const o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);const s=(d=(u=e._zod).toJSONSchema)==null?void 0:d.call(u);if(s)o.schema=s;else{const h={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,h);else{const g=o.schema,y=t.processors[i.type];if(!y)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);y(e,t,g,h)}const f=e._zod.parent;f&&(o.ref||(o.ref=f),Pi(f,t,h),t.seen.get(f).isParent=!0)}const l=t.metadataRegistry.get(e);return l&&Object.assign(o.schema,l),t.io==="input"&&yo(e)&&(delete o.schema.examples,delete o.schema.default),t.io==="input"&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function N1(e,t){var o,s,l,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const u of e.seen.entries()){const d=(o=e.metadataRegistry.get(u[0]))==null?void 0:o.id;if(d){const h=r.get(d);if(h&&h!==u[0])throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(d,u[0])}}const i=u=>{var y;const d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=(y=e.external.registry.get(u[0]))==null?void 0:y.id,A=e.external.uri??(S=>S);if(v)return{ref:A(v)};const w=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=w,{defId:w,ref:`${A("__shared")}#/${d}/${w}`}}if(u[1]===n)return{ref:"#"};const f=`#/${d}/`,g=u[1].schema.id??`__schema${e.counter++}`;return{defId:g,ref:f+g}},a=u=>{if(u[1].schema.$ref)return;const d=u[1],{ref:h,defId:f}=i(u);d.def={...d.schema},f&&(d.defId=f);const g=d.schema;for(const y in g)delete g[y];g.$ref=h};if(e.cycles==="throw")for(const u of e.seen.entries()){const d=u[1];if(d.cycle)throw new Error(`Cycle detected: #/${(s=d.cycle)==null?void 0:s.join("/")}/<root>--Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const d=u[1];if(t===u[0]){a(u);continue}if(e.external){const f=(l=e.external.registry.get(u[0]))==null?void 0:l.id;if(t!==u[0]&&f){a(u);continue}}if((c=e.metadataRegistry.get(u[0]))==null?void 0:c.id){a(u);continue}if(d.cycle){a(u);continue}if(d.count>1&&e.reused==="ref"){a(u);continue}}}function F1(e,t){var o,s,l;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=c=>{const u=e.seen.get(c);if(u.ref===null)return;const d=u.def??u.schema,h={...d},f=u.ref;if(u.ref=null,f){r(f);const y=e.seen.get(f),v=y.schema;if(v.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(v)):Object.assign(d,v),Object.assign(d,h),c._zod.parent===f)for(const w in d)w==="$ref"||w==="allOf"||w in h||delete d[w];if(v.$ref&&y.def)for(const w in d)w==="$ref"||w==="allOf"||w in y.def&&JSON.stringify(d[w])===JSON.stringify(y.def[w])&&delete d[w]}const g=c._zod.parent;if(g&&g!==f){r(g);const y=e.seen.get(g);if(y!=null&&y.schema.$ref&&(d.$ref=y.schema.$ref,y.def))for(const v in d)v==="$ref"||v==="allOf"||v in y.def&&JSON.stringify(d[v])===JSON.stringify(y.def[v])&&delete d[v]}e.override({zodSchema:c,jsonSchema:d,path:u.path??[]})};for(const c of[...e.seen.entries()].reverse())r(c[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,(o=e.external)!=null&&o.uri){const c=(s=e.external.registry.get(t))==null?void 0:s.id;if(!c)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(c)}Object.assign(i,n.def??n.schema);const a=((l=e.external)==null?void 0:l.defs)??{};for(const c of e.seen.entries()){const u=c[1];u.def&&u.defId&&(a[u.defId]=u.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?i.$defs=a:i.definitions=a);try{const c=JSON.parse(JSON.stringify(i));return Object.defineProperty(c,"~standard",{value:{...t["~standard"],jsonSchema:{input:R1(t,"input",e.processors),output:R1(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function yo(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return yo(r.element,n);if(r.type==="set")return yo(r.valueType,n);if(r.type==="lazy")return yo(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return yo(r.innerType,n);if(r.type==="intersection")return yo(r.left,n)||yo(r.right,n);if(r.type==="record"||r.type==="map")return yo(r.keyType,n)||yo(r.valueType,n);if(r.type==="pipe")return yo(r.in,n)||yo(r.out,n);if(r.type==="object"){for(const i in r.shape)if(yo(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(yo(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(yo(i,n))return!0;return!!(r.rest&&yo(r.rest,n))}return!1}const Qpe=(e,t={})=>n=>{const r=E1({...n,processors:t});return Pi(e,r),N1(r,e),F1(r,e)},R1=(e,t,n={})=>r=>{const{libraryOptions:i,target:a}=r??{},o=E1({...i??{},target:a,io:t,processors:n});return Pi(e,o),N1(o,e),F1(o,e)},ege={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},OW=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:a,maximum:o,format:s,patterns:l,contentEncoding:c}=e._zod.bag;if(typeof a=="number"&&(i.minLength=a),typeof o=="number"&&(i.maxLength=o),s&&(i.format=ege[s]??s,i.format===""&&delete i.format,s==="time"&&delete i.format),c&&(i.contentEncoding=c),l&&l.size>0){const u=[...l];u.length===1?i.pattern=u[0].source:u.length>1&&(i.allOf=[...u.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},jW=(e,t,n,r)=>{const i=n,{minimum:a,maximum:o,format:s,multipleOf:l,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof s=="string"&&s.includes("int")?i.type="integer":i.type="number",typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a=="number"&&(i.minimum=a,typeof u=="number"&&t.target!=="draft-04"&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c),typeof o=="number"&&(i.maximum=o,typeof c=="number"&&t.target!=="draft-04"&&(c<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof l=="number"&&(i.multipleOf=l)},BW=(e,t,n,r)=>{n.type="boolean"},tge=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},nge=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},zW=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},rge=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},ige=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},WW=(e,t,n,r)=>{n.not={}},age=(e,t,n,r)=>{},VW=(e,t,n,r)=>{},oge=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},GW=(e,t,n,r)=>{const i=e._zod.def,a=yW(i.entries);a.every(o=>typeof o=="number")&&(n.type="number"),a.every(o=>typeof o=="string")&&(n.type="string"),n.enum=a},qW=(e,t,n,r)=>{const i=e._zod.def,a=[];for(const o of i.values)if(o===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof o=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(o))}else a.push(o);if(a.length!==0)if(a.length===1){const o=a[0];n.type=o===null?"null":typeof o,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[o]:n.const=o}else a.every(o=>typeof o=="number")&&(n.type="number"),a.every(o=>typeof o=="string")&&(n.type="string"),a.every(o=>typeof o=="boolean")&&(n.type="boolean"),a.every(o=>o===null)&&(n.type="null"),n.enum=a},sge=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},lge=(e,t,n,r)=>{const i=n,a=e._zod.pattern;if(!a)throw new Error("Pattern not found in template literal");i.type="string",i.pattern=a.source},cge=(e,t,n,r)=>{const i=n,a={type:"string",format:"binary",contentEncoding:"binary"},{minimum:o,maximum:s,mime:l}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),l?l.length===1?(a.contentMediaType=l[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=l.map(c=>({contentMediaType:c}))):Object.assign(i,a)},uge=(e,t,n,r)=>{n.type="boolean"},HW=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},dge=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},XW=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},fge=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},hge=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},ZW=(e,t,n,r)=>{const i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o=="number"&&(i.minItems=o),typeof s=="number"&&(i.maxItems=s),i.type="array",i.items=Pi(a.element,t,{...r,path:[...r.path,"items"]})},KW=(e,t,n,r)=>{var c;const i=n,a=e._zod.def;i.type="object",i.properties={};const o=a.shape;for(const u in o)i.properties[u]=Pi(o[u],t,{...r,path:[...r.path,"properties",u]});const s=new Set(Object.keys(o)),l=new Set([...s].filter(u=>{const d=a.shape[u]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));l.size>0&&(i.required=Array.from(l)),((c=a.catchall)==null?void 0:c._zod.def.type)==="never"?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Pi(a.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},$W=(e,t,n,r)=>{const i=e._zod.def,a=i.inclusive===!1,o=i.options.map((s,l)=>Pi(s,t,{...r,path:[...r.path,a?"oneOf":"anyOf",l]}));a?n.oneOf=o:n.anyOf=o},YW=(e,t,n,r)=>{const i=e._zod.def,a=Pi(i.left,t,{...r,path:[...r.path,"allOf",0]}),o=Pi(i.right,t,{...r,path:[...r.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,l=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=l},pge=(e,t,n,r)=>{const i=n,a=e._zod.def;i.type="array";const o=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=a.items.map((h,f)=>Pi(h,t,{...r,path:[...r.path,o,f]})),c=a.rest?Pi(a.rest,t,{...r,path:[...r.path,s,...t.target==="openapi-3.0"?[a.items.length]:[]]}):null;t.target==="draft-2020-12"?(i.prefixItems=l,c&&(i.items=c)):t.target==="openapi-3.0"?(i.items={anyOf:l},c&&i.items.anyOf.push(c),i.minItems=l.length,c||(i.maxItems=l.length)):(i.items=l,c&&(i.additionalItems=c));const{minimum:u,maximum:d}=e._zod.bag;typeof u=="number"&&(i.minItems=u),typeof d=="number"&&(i.maxItems=d)},JW=(e,t,n,r)=>{const i=n,a=e._zod.def;i.type="object";const o=a.keyType,s=o._zod.bag,l=s==null?void 0:s.patterns;if(a.mode==="loose"&&l&&l.size>0){const u=Pi(a.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});i.patternProperties={};for(const d of l)i.patternProperties[d.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(i.propertyNames=Pi(a.keyType,t,{...r,path:[...r.path,"propertyNames"]})),i.additionalProperties=Pi(a.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const c=o._zod.values;if(c){const u=[...c].filter(d=>typeof d=="string"||typeof d=="number");u.length>0&&(i.required=u)}},QW=(e,t,n,r)=>{const i=e._zod.def,a=Pi(i.innerType,t,r),o=t.seen.get(e);t.target==="openapi-3.0"?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:"null"}]},eV=(e,t,n,r)=>{const i=e._zod.def;Pi(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType},tV=(e,t,n,r)=>{const i=e._zod.def;Pi(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},nV=(e,t,n,r)=>{const i=e._zod.def;Pi(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},rV=(e,t,n,r)=>{const i=e._zod.def;Pi(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=o},iV=(e,t,n,r)=>{const i=e._zod.def,a=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;Pi(a,t,r);const o=t.seen.get(e);o.ref=a},aV=(e,t,n,r)=>{const i=e._zod.def;Pi(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},gge=(e,t,n,r)=>{const i=e._zod.def;Pi(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType},DN=(e,t,n,r)=>{const i=e._zod.def;Pi(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType},oV=(e,t,n,r)=>{const i=e._zod.innerType;Pi(i,t,r);const a=t.seen.get(e);a.ref=i},k4={string:OW,number:jW,boolean:BW,bigint:tge,symbol:nge,null:zW,undefined:rge,void:ige,never:WW,any:age,unknown:VW,date:oge,enum:GW,literal:qW,nan:sge,template_literal:lge,file:cge,success:uge,custom:HW,function:dge,transform:XW,map:fge,set:hge,array:ZW,object:KW,union:$W,intersection:YW,tuple:pge,record:JW,nullable:QW,nonoptional:eV,default:tV,prefault:nV,catch:rV,pipe:iV,readonly:aV,promise:gge,optional:DN,lazy:oV};function mge(e,t){if("_idmap"in e){const r=e,i=E1({...t,processors:k4}),a={};for(const l of r._idmap.entries()){const[c,u]=l;Pi(u,i)}const o={},s={registry:r,uri:t==null?void 0:t.uri,defs:a};i.external=s;for(const l of r._idmap.entries()){const[c,u]=l;N1(i,u),o[c]=F1(i,u)}if(Object.keys(a).length>0){const l=i.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[l]:a}}return{schemas:o}}const n=E1({...t,processors:k4});return Pi(e,n),N1(n,e),F1(n,e)}const yge=ht("ZodISODateTime",(e,t)=>{xhe.init(e,t),ta.init(e,t)});function vge(e){return Tpe(yge,e)}const xge=ht("ZodISODate",(e,t)=>{bhe.init(e,t),ta.init(e,t)});function bge(e){return _pe(xge,e)}const Age=ht("ZodISOTime",(e,t)=>{Ahe.init(e,t),ta.init(e,t)});function wge(e){return Epe(Age,e)}const Sge=ht("ZodISODuration",(e,t)=>{whe.init(e,t),ta.init(e,t)});function kge(e){return Npe(Sge,e)}const Dge=(e,t)=>{AW.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>dfe(e,n)},flatten:{value:n=>ufe(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,a_,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,a_,2)}},isEmpty:{get(){return e.issues.length===0}}})},ol=ht("ZodError",Dge,{Parent:Error}),Cge=wN(ol),Tge=SN(ol),_ge=HA(ol),sV=XA(ol),Ege=pfe(ol),Nge=gfe(ol),Fge=mfe(ol),Rge=yfe(ol),Pge=vfe(ol),Ige=xfe(ol),Mge=bfe(ol),Uge=Afe(ol),zi=ht("ZodType",(e,t)=>(Bi.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:R1(e,"input"),output:R1(e,"output")}}),e.toJSONSchema=Qpe(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(md(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>yd(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>Cge(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>_ge(e,n,r),e.parseAsync=async(n,r)=>Tge(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>sV(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Ege(e,n,r),e.decode=(n,r)=>Nge(e,n,r),e.encodeAsync=async(n,r)=>Fge(e,n,r),e.decodeAsync=async(n,r)=>Rge(e,n,r),e.safeEncode=(n,r)=>Pge(e,n,r),e.safeDecode=(n,r)=>Ige(e,n,r),e.safeEncodeAsync=async(n,r)=>Mge(e,n,r),e.safeDecodeAsync=async(n,r)=>Uge(e,n,r),e.refine=(n,r)=>e.check(Rme(n,r)),e.superRefine=n=>e.check(Pme(n)),e.overwrite=n=>e.check(Sg(n)),e.optional=()=>T4(e),e.exactOptional=()=>vme(e),e.nullable=()=>_4(e),e.nullish=()=>T4(_4(e)),e.nonoptional=n=>kme(e,n),e.array=()=>kg(e),e.or=n=>rl([e,n]),e.and=n=>fme(e,n),e.transform=n=>E4(e,mme(n)),e.default=n=>Ame(e,n),e.prefault=n=>Sme(e,n),e.catch=n=>Cme(e,n),e.pipe=n=>E4(e,n),e.readonly=()=>Eme(e),e.describe=n=>{const r=e.clone();return Om.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=Om.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Om.get(e);const r=e.clone();return Om.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),lV=ht("_ZodString",(e,t)=>{kN.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(r,i,a)=>OW(e,r,i);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(Lpe(...r)),e.includes=(...r)=>e.check(Bpe(...r)),e.startsWith=(...r)=>e.check(zpe(...r)),e.endsWith=(...r)=>e.check(Wpe(...r)),e.min=(...r)=>e.check(_1(...r)),e.max=(...r)=>e.check(UW(...r)),e.length=(...r)=>e.check(LW(...r)),e.nonempty=(...r)=>e.check(_1(1,...r)),e.lowercase=r=>e.check(Ope(r)),e.uppercase=r=>e.check(jpe(r)),e.trim=()=>e.check(Gpe()),e.normalize=(...r)=>e.check(Vpe(...r)),e.toLowerCase=()=>e.check(qpe()),e.toUpperCase=()=>e.check(Hpe()),e.slugify=()=>e.check(Xpe())}),Lge=ht("ZodString",(e,t)=>{kN.init(e,t),lV.init(e,t),e.email=n=>e.check(ope(Oge,n)),e.url=n=>e.check(dpe(jge,n)),e.jwt=n=>e.check(Cpe(eme,n)),e.emoji=n=>e.check(fpe(Bge,n)),e.guid=n=>e.check(b4(D4,n)),e.uuid=n=>e.check(spe(gx,n)),e.uuidv4=n=>e.check(lpe(gx,n)),e.uuidv6=n=>e.check(cpe(gx,n)),e.uuidv7=n=>e.check(upe(gx,n)),e.nanoid=n=>e.check(hpe(zge,n)),e.guid=n=>e.check(b4(D4,n)),e.cuid=n=>e.check(ppe(Wge,n)),e.cuid2=n=>e.check(gpe(Vge,n)),e.ulid=n=>e.check(mpe(Gge,n)),e.base64=n=>e.check(Spe(Yge,n)),e.base64url=n=>e.check(kpe(Jge,n)),e.xid=n=>e.check(ype(qge,n)),e.ksuid=n=>e.check(vpe(Hge,n)),e.ipv4=n=>e.check(xpe(Xge,n)),e.ipv6=n=>e.check(bpe(Zge,n)),e.cidrv4=n=>e.check(Ape(Kge,n)),e.cidrv6=n=>e.check(wpe($ge,n)),e.e164=n=>e.check(Dpe(Qge,n)),e.datetime=n=>e.check(vge(n)),e.date=n=>e.check(bge(n)),e.time=n=>e.check(wge(n)),e.duration=n=>e.check(kge(n))});function Mn(e){return ape(Lge,e)}const ta=ht("ZodStringFormat",(e,t)=>{Ki.init(e,t),lV.init(e,t)}),Oge=ht("ZodEmail",(e,t)=>{uhe.init(e,t),ta.init(e,t)}),D4=ht("ZodGUID",(e,t)=>{lhe.init(e,t),ta.init(e,t)}),gx=ht("ZodUUID",(e,t)=>{che.init(e,t),ta.init(e,t)}),jge=ht("ZodURL",(e,t)=>{dhe.init(e,t),ta.init(e,t)}),Bge=ht("ZodEmoji",(e,t)=>{fhe.init(e,t),ta.init(e,t)}),zge=ht("ZodNanoID",(e,t)=>{hhe.init(e,t),ta.init(e,t)}),Wge=ht("ZodCUID",(e,t)=>{phe.init(e,t),ta.init(e,t)}),Vge=ht("ZodCUID2",(e,t)=>{ghe.init(e,t),ta.init(e,t)}),Gge=ht("ZodULID",(e,t)=>{mhe.init(e,t),ta.init(e,t)}),qge=ht("ZodXID",(e,t)=>{yhe.init(e,t),ta.init(e,t)}),Hge=ht("ZodKSUID",(e,t)=>{vhe.init(e,t),ta.init(e,t)}),Xge=ht("ZodIPv4",(e,t)=>{She.init(e,t),ta.init(e,t)}),Zge=ht("ZodIPv6",(e,t)=>{khe.init(e,t),ta.init(e,t)}),Kge=ht("ZodCIDRv4",(e,t)=>{Dhe.init(e,t),ta.init(e,t)}),$ge=ht("ZodCIDRv6",(e,t)=>{Che.init(e,t),ta.init(e,t)}),Yge=ht("ZodBase64",(e,t)=>{The.init(e,t),ta.init(e,t)}),Jge=ht("ZodBase64URL",(e,t)=>{Ehe.init(e,t),ta.init(e,t)}),Qge=ht("ZodE164",(e,t)=>{Nhe.init(e,t),ta.init(e,t)}),eme=ht("ZodJWT",(e,t)=>{Rhe.init(e,t),ta.init(e,t)}),cV=ht("ZodNumber",(e,t)=>{FW.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(r,i,a)=>jW(e,r,i),e.gt=(r,i)=>e.check(w4(r,i)),e.gte=(r,i)=>e.check(_k(r,i)),e.min=(r,i)=>e.check(_k(r,i)),e.lt=(r,i)=>e.check(A4(r,i)),e.lte=(r,i)=>e.check(Tk(r,i)),e.max=(r,i)=>e.check(Tk(r,i)),e.int=r=>e.check(C4(r)),e.safe=r=>e.check(C4(r)),e.positive=r=>e.check(w4(0,r)),e.nonnegative=r=>e.check(_k(0,r)),e.negative=r=>e.check(A4(0,r)),e.nonpositive=r=>e.check(Tk(0,r)),e.multipleOf=(r,i)=>e.check(S4(r,i)),e.step=(r,i)=>e.check(S4(r,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function tme(e){return Fpe(cV,e)}const nme=ht("ZodNumberFormat",(e,t)=>{Phe.init(e,t),cV.init(e,t)});function C4(e){return Rpe(nme,e)}const rme=ht("ZodBoolean",(e,t)=>{Ihe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>BW(e,n,r)});function Oo(e){return Ppe(rme,e)}const ime=ht("ZodNull",(e,t)=>{Mhe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>zW(e,n,r)});function ame(e){return Ipe(ime,e)}const ome=ht("ZodUnknown",(e,t)=>{Uhe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>VW()});function nc(){return Mpe(ome)}const sme=ht("ZodNever",(e,t)=>{Lhe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>WW(e,n,r)});function uV(e){return Upe(sme,e)}const lme=ht("ZodArray",(e,t)=>{Ohe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ZW(e,n,r,i),e.element=t.element,e.min=(n,r)=>e.check(_1(n,r)),e.nonempty=n=>e.check(_1(1,n)),e.max=(n,r)=>e.check(UW(n,r)),e.length=(n,r)=>e.check(LW(n,r)),e.unwrap=()=>e.element});function kg(e,t){return Zpe(lme,e,t)}const dV=ht("ZodObject",(e,t)=>{Bhe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>KW(e,n,r,i),Yr(e,"shape",()=>t.shape),e.keyof=()=>hV(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:nc()}),e.loose=()=>e.clone({...e._zod.def,catchall:nc()}),e.strict=()=>e.clone({...e._zod.def,catchall:uV()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>afe(e,n),e.safeExtend=n=>ofe(e,n),e.merge=n=>sfe(e,n),e.pick=n=>rfe(e,n),e.omit=n=>ife(e,n),e.partial=(...n)=>lfe(pV,e,n[0]),e.required=(...n)=>cfe(gV,e,n[0])});function $a(e,t){const n={type:"object",shape:e??{},...vn(t)};return new dV(n)}function Ji(e,t){return new dV({type:"object",shape:e,catchall:uV(),...vn(t)})}const fV=ht("ZodUnion",(e,t)=>{IW.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>$W(e,n,r,i),e.options=t.options});function rl(e,t){return new fV({type:"union",options:e,...vn(t)})}const cme=ht("ZodDiscriminatedUnion",(e,t)=>{fV.init(e,t),zhe.init(e,t)});function ume(e,t,n){return new cme({type:"union",options:t,discriminator:e,...vn(n)})}const dme=ht("ZodIntersection",(e,t)=>{Whe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>YW(e,n,r,i)});function fme(e,t){return new dme({type:"intersection",left:e,right:t})}const hme=ht("ZodRecord",(e,t)=>{Vhe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>JW(e,n,r,i),e.keyType=t.keyType,e.valueType=t.valueType});function s_(e,t,n){return new hme({type:"record",keyType:e,valueType:t,...vn(n)})}const l_=ht("ZodEnum",(e,t)=>{Ghe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(r,i,a)=>GW(e,r,i),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const a={};for(const o of r)if(n.has(o))a[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);return new l_({...t,checks:[],...vn(i),entries:a})},e.exclude=(r,i)=>{const a={...t.entries};for(const o of r)if(n.has(o))delete a[o];else throw new Error(`Key ${o} not found in enum`);return new l_({...t,checks:[],...vn(i),entries:a})}});function hV(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new l_({type:"enum",entries:n,...vn(t)})}const pme=ht("ZodLiteral",(e,t)=>{qhe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>qW(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Lr(e,t){return new pme({type:"literal",values:Array.isArray(e)?e:[e],...vn(t)})}const gme=ht("ZodTransform",(e,t)=>{Hhe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>XW(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new gW(e.constructor.name);n.addIssue=a=>{if(typeof a=="string")n.issues.push(L0(a,n.value,t));else{const o=a;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=e),n.issues.push(L0(o))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(a=>(n.value=a,n)):(n.value=i,n)}});function mme(e){return new gme({type:"transform",transform:e})}const pV=ht("ZodOptional",(e,t)=>{MW.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>DN(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function T4(e){return new pV({type:"optional",innerType:e})}const yme=ht("ZodExactOptional",(e,t)=>{Xhe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>DN(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function vme(e){return new yme({type:"optional",innerType:e})}const xme=ht("ZodNullable",(e,t)=>{Zhe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>QW(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function _4(e){return new xme({type:"nullable",innerType:e})}const bme=ht("ZodDefault",(e,t)=>{Khe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>tV(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ame(e,t){return new bme({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():xW(t)}})}const wme=ht("ZodPrefault",(e,t)=>{$he.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>nV(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Sme(e,t){return new wme({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():xW(t)}})}const gV=ht("ZodNonOptional",(e,t)=>{Yhe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>eV(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function kme(e,t){return new gV({type:"nonoptional",innerType:e,...vn(t)})}const Dme=ht("ZodCatch",(e,t)=>{Jhe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>rV(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Cme(e,t){return new Dme({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Tme=ht("ZodPipe",(e,t)=>{Qhe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>iV(e,n,r,i),e.in=t.in,e.out=t.out});function E4(e,t){return new Tme({type:"pipe",in:e,out:t})}const _me=ht("ZodReadonly",(e,t)=>{epe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>aV(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Eme(e){return new _me({type:"readonly",innerType:e})}const Nme=ht("ZodLazy",(e,t)=>{tpe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>oV(e,n,r,i),e.unwrap=()=>e._zod.def.getter()});function Fme(e){return new Nme({type:"lazy",getter:e})}const CN=ht("ZodCustom",(e,t)=>{npe.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(n,r,i)=>HW(e,n)});function mV(e,t){return Kpe(CN,e??(()=>!0),t)}function Rme(e,t={}){return $pe(CN,e,t)}function Pme(e){return Ype(e)}function P1(e,t={}){const n=new CN({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...vn(t)});return n._zod.bag.Class=e,n._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}var O0;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),o={};for(const s of a)o[s]=i[s];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(O0||(O0={}));var N4;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(N4||(N4={}));O0.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);O0.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class I1 extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(n(o))):s[c]=s[c]||{_errors:[]},s=s[c],l++}}};return i(this),r}static assert(t){if(!(t instanceof I1))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,O0.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n=Object.create(null),r=[];for(const i of this.issues)if(i.path.length>0){const a=i.path[0];n[a]=n[a]||[],n[a].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}I1.create=e=>new I1(e);var F4;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(F4||(F4={}));var br;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(br||(br={}));var vy=({prefix:e,size:t=16,alphabet:n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{const i=()=>{const a=n.length,o=new Array(t);for(let s=0;s<t;s++)o[s]=n[Math.random()*a|0];return o.join("")};if(e==null)return i;if(n.includes(r))throw new qde({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${n}".`});return()=>`${e}${r}${i()}`},Ime=vy();function R4(e=globalThis){var t,n,r;return e.window?"runtime/browser":(t=e.navigator)!=null&&t.userAgent?`runtime/${e.navigator.userAgent.toLowerCase()}`:(r=(n=e.process)==null?void 0:n.versions)!=null&&r.node?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function bf(e){if(e==null)return{};const t={};if(e instanceof Headers)e.forEach((n,r)=>{t[r.toLowerCase()]=n});else{Array.isArray(e)||(e=Object.entries(e));for(const[n,r]of e)r!=null&&(t[n.toLowerCase()]=r)}return t}function P4(e,...t){const n=new Headers(bf(e)),r=n.get("user-agent")||"";return n.set("user-agent",[r,...t].filter(Boolean).join(" ")),Object.fromEntries(n.entries())}var Mme=/"__proto__"\s*:/,Ume=/"constructor"\s*:/;function I4(e){const t=JSON.parse(e);return t===null||typeof t!="object"||Mme.test(e)===!1&&Ume.test(e)===!1?t:Lme(t)}function Lme(e){let t=[e];for(;t.length;){const n=t;t=[];for(const r of n){if(Object.prototype.hasOwnProperty.call(r,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(r,"constructor")&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const i in r){const a=r[i];a&&typeof a=="object"&&t.push(a)}}}return e}function Ome(e){const{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return I4(e)}try{return I4(e)}finally{Error.stackTraceLimit=t}}var M1=Symbol.for("vercel.ai.validator");function jme(e){return{[M1]:!0,validate:e}}function Bme(e){return typeof e=="object"&&e!==null&&M1 in e&&e[M1]===!0&&"validate"in e}function zme(e){let t;return()=>(t==null&&(t=e()),t)}function Wme(e){return Bme(e)?e:typeof e=="function"?e():Vme(e)}function Vme(e){return jme(async t=>{const n=await e["~standard"].validate(t);return n.issues==null?{success:!0,value:n.value}:{success:!1,error:new C1({value:t,cause:n.issues})}})}async function M4({value:e,schema:t}){const n=await TN({value:e,schema:t});if(!n.success)throw C1.wrap({value:e,cause:n.error});return n.value}async function TN({value:e,schema:t}){const n=Wme(t);try{if(n.validate==null)return{success:!0,value:e,rawValue:e};const r=await n.validate(e);return r.success?{success:!0,value:r.value,rawValue:e}:{success:!1,error:C1.wrap({value:e,cause:r.error}),rawValue:e}}catch(r){return{success:!1,error:C1.wrap({value:e,cause:r}),rawValue:e}}}async function U1({text:e,schema:t}){try{const n=Ome(e);return t==null?{success:!0,value:n,rawValue:n}:await TN({value:n,schema:t})}catch(n){return{success:!1,error:i4.isInstance(n)?n:new i4({text:e,cause:n}),rawValue:void 0}}}function Gme({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new $de).pipeThrough(new TransformStream({async transform({data:n},r){n!=="[DONE]"&&r.enqueue(await U1({text:n,schema:t}))}}))}async function Bh(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}function kb(e){if(e.type==="object"){e.additionalProperties=!1;const t=e.properties;if(t!=null)for(const n in t)t[n]=kb(t[n])}return e.type==="array"&&e.items!=null&&(Array.isArray(e.items)?e.items=e.items.map(t=>kb(t)):e.items=kb(e.items)),e}var qme=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join("/")},Hme=Symbol("Let zodToJsonSchema decide on which parser to use"),U4={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},Xme=e=>typeof e=="string"?{...U4,name:e}:{...U4,...e};function As(){return{}}function Zme(e,t){var n,r,i;const a={type:"array"};return(n=e.type)!=null&&n._def&&((i=(r=e.type)==null?void 0:r._def)==null?void 0:i.typeName)!==br.ZodAny&&(a.items=bi(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(a.minItems=e.minLength.value),e.maxLength&&(a.maxItems=e.maxLength.value),e.exactLength&&(a.minItems=e.exactLength.value,a.maxItems=e.exactLength.value),a}function Kme(e){const t={type:"integer",format:"int64"};if(!e.checks)return t;for(const n of e.checks)switch(n.kind){case"min":n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value;break;case"max":n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value;break;case"multipleOf":t.multipleOf=n.value;break}return t}function $me(){return{type:"boolean"}}function yV(e,t){return bi(e.type._def,t)}var Yme=(e,t)=>bi(e.innerType._def,t);function vV(e,t,n){const r=n??t.dateStrategy;if(Array.isArray(r))return{anyOf:r.map((i,a)=>vV(e,t,i))};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return Jme(e)}}var Jme=e=>{const t={type:"integer",format:"unix-time"};for(const n of e.checks)switch(n.kind){case"min":t.minimum=n.value;break;case"max":t.maximum=n.value;break}return t};function Qme(e,t){return{...bi(e.innerType._def,t),default:e.defaultValue()}}function e0e(e,t){return t.effectStrategy==="input"?bi(e.schema._def,t):As()}function t0e(e){return{type:"string",enum:Array.from(e.values)}}var n0e=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function r0e(e,t){const n=[bi(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),bi(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(i=>!!i),r=[];return n.forEach(i=>{if(n0e(i))r.push(...i.allOf);else{let a=i;if("additionalProperties"in i&&i.additionalProperties===!1){const{additionalProperties:o,...s}=i;a=s}r.push(a)}}),r.length?{allOf:r}:void 0}function i0e(e){const t=typeof e.value;return t!=="bigint"&&t!=="number"&&t!=="boolean"&&t!=="string"?{type:Array.isArray(e.value)?"array":"object"}:{type:t==="bigint"?"integer":t,const:e.value}}var Ek=void 0,yl={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(Ek===void 0&&(Ek=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Ek),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function xV(e,t){const n={type:"string"};if(e.checks)for(const r of e.checks)switch(r.kind){case"min":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,r.value):r.value;break;case"max":n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,r.value):r.value;break;case"email":switch(t.emailStrategy){case"format:email":vl(n,"email",r.message,t);break;case"format:idn-email":vl(n,"idn-email",r.message,t);break;case"pattern:zod":mo(n,yl.email,r.message,t);break}break;case"url":vl(n,"uri",r.message,t);break;case"uuid":vl(n,"uuid",r.message,t);break;case"regex":mo(n,r.regex,r.message,t);break;case"cuid":mo(n,yl.cuid,r.message,t);break;case"cuid2":mo(n,yl.cuid2,r.message,t);break;case"startsWith":mo(n,RegExp(`^${Nk(r.value,t)}`),r.message,t);break;case"endsWith":mo(n,RegExp(`${Nk(r.value,t)}$`),r.message,t);break;case"datetime":vl(n,"date-time",r.message,t);break;case"date":vl(n,"date",r.message,t);break;case"time":vl(n,"time",r.message,t);break;case"duration":vl(n,"duration",r.message,t);break;case"length":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,r.value):r.value,n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,r.value):r.value;break;case"includes":{mo(n,RegExp(Nk(r.value,t)),r.message,t);break}case"ip":{r.version!=="v6"&&vl(n,"ipv4",r.message,t),r.version!=="v4"&&vl(n,"ipv6",r.message,t);break}case"base64url":mo(n,yl.base64url,r.message,t);break;case"jwt":mo(n,yl.jwt,r.message,t);break;case"cidr":{r.version!=="v6"&&mo(n,yl.ipv4Cidr,r.message,t),r.version!=="v4"&&mo(n,yl.ipv6Cidr,r.message,t);break}case"emoji":mo(n,yl.emoji(),r.message,t);break;case"ulid":{mo(n,yl.ulid,r.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{vl(n,"binary",r.message,t);break}case"contentEncoding:base64":{n.contentEncoding="base64";break}case"pattern:zod":{mo(n,yl.base64,r.message,t);break}}break}case"nanoid":mo(n,yl.nanoid,r.message,t)}return n}function Nk(e,t){return t.patternStrategy==="escape"?o0e(e):e}var a0e=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function o0e(e){let t="";for(let n=0;n<e.length;n++)a0e.has(e[n])||(t+="\\"),t+=e[n];return t}function vl(e,t,n,r){var i;e.format||(i=e.anyOf)!=null&&i.some(a=>a.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...n&&r.errorMessages&&{errorMessage:{format:n}}})):e.format=t}function mo(e,t,n,r){var i;e.pattern||(i=e.allOf)!=null&&i.some(a=>a.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:L4(t,r),...n&&r.errorMessages&&{errorMessage:{pattern:n}}})):e.pattern=L4(t,r)}function L4(e,t){var n;if(!t.applyRegexFlags||!e.flags)return e.source;const r={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},i=r.i?e.source.toLowerCase():e.source;let a="",o=!1,s=!1,l=!1;for(let c=0;c<i.length;c++){if(o){a+=i[c],o=!1;continue}if(r.i){if(s){if(i[c].match(/[a-z]/)){l?(a+=i[c],a+=`${i[c-2]}-${i[c]}`.toUpperCase(),l=!1):i[c+1]==="-"&&((n=i[c+2])!=null&&n.match(/[a-z]/))?(a+=i[c],l=!0):a+=`${i[c]}${i[c].toUpperCase()}`;continue}}else if(i[c].match(/[a-z]/)){a+=`[${i[c]}${i[c].toUpperCase()}]`;continue}}if(r.m){if(i[c]==="^"){a+=`(^|(?<=[\r-]))`;continue}else if(i[c]==="$"){a+=`($|(?=[\r-]))`;continue}}if(r.s&&i[c]==="."){a+=s?`${i[c]}\r-`:`[${i[c]}\r-]`;continue}a+=i[c],i[c]==="\\"?o=!0:s&&i[c]==="]"?s=!1:!s&&i[c]==="["&&(s=!0)}try{new RegExp(a)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return a}function bV(e,t){var n,r,i,a,o,s;const l={type:"object",additionalProperties:(n=bi(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?n:t.allowedAdditionalProperties};if(((r=e.keyType)==null?void 0:r._def.typeName)===br.ZodString&&((i=e.keyType._def.checks)!=null&&i.length)){const{type:c,...u}=xV(e.keyType._def,t);return{...l,propertyNames:u}}else{if(((a=e.keyType)==null?void 0:a._def.typeName)===br.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if(((o=e.keyType)==null?void 0:o._def.typeName)===br.ZodBranded&&e.keyType._def.type._def.typeName===br.ZodString&&((s=e.keyType._def.type._def.checks)!=null&&s.length)){const{type:c,...u}=yV(e.keyType._def,t);return{...l,propertyNames:u}}}return l}function s0e(e,t){if(t.mapStrategy==="record")return bV(e,t);const n=bi(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||As(),r=bi(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||As();return{type:"array",maxItems:125,items:{type:"array",items:[n,r],minItems:2,maxItems:2}}}function l0e(e){const t=e.values,r=Object.keys(e.values).filter(a=>typeof t[t[a]]!="number").map(a=>t[a]),i=Array.from(new Set(r.map(a=>typeof a)));return{type:i.length===1?i[0]==="string"?"string":"number":["string","number"],enum:r}}function c0e(){return{not:As()}}function u0e(){return{type:"null"}}var c_={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function d0e(e,t){const n=e.options instanceof Map?Array.from(e.options.values()):e.options;if(n.every(r=>r._def.typeName in c_&&(!r._def.checks||!r._def.checks.length))){const r=n.reduce((i,a)=>{const o=c_[a._def.typeName];return o&&!i.includes(o)?[...i,o]:i},[]);return{type:r.length>1?r:r[0]}}else if(n.every(r=>r._def.typeName==="ZodLiteral"&&!r.description)){const r=n.reduce((i,a)=>{const o=typeof a._def.value;switch(o){case"string":case"number":case"boolean":return[...i,o];case"bigint":return[...i,"integer"];case"object":if(a._def.value===null)return[...i,"null"];case"symbol":case"undefined":case"function":default:return i}},[]);if(r.length===n.length){const i=r.filter((a,o,s)=>s.indexOf(a)===o);return{type:i.length>1?i:i[0],enum:n.reduce((a,o)=>a.includes(o._def.value)?a:[...a,o._def.value],[])}}}else if(n.every(r=>r._def.typeName==="ZodEnum"))return{type:"string",enum:n.reduce((r,i)=>[...r,...i._def.values.filter(a=>!r.includes(a))],[])};return f0e(e,t)}var f0e=(e,t)=>{const n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((r,i)=>bi(r._def,{...t,currentPath:[...t.currentPath,"anyOf",`${i}`]})).filter(r=>!!r&&(!t.strictUnions||typeof r=="object"&&Object.keys(r).length>0));return n.length?{anyOf:n}:void 0};function h0e(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[c_[e.innerType._def.typeName],"null"]};const n=bi(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return n&&{anyOf:[n,{type:"null"}]}}function p0e(e){const t={type:"number"};if(!e.checks)return t;for(const n of e.checks)switch(n.kind){case"int":t.type="integer";break;case"min":n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value;break;case"max":n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value;break;case"multipleOf":t.multipleOf=n.value;break}return t}function g0e(e,t){const n={type:"object",properties:{}},r=[],i=e.shape();for(const o in i){let s=i[o];if(s===void 0||s._def===void 0)continue;const l=y0e(s),c=bi(s._def,{...t,currentPath:[...t.currentPath,"properties",o],propertyPath:[...t.currentPath,"properties",o]});c!==void 0&&(n.properties[o]=c,l||r.push(o))}r.length&&(n.required=r);const a=m0e(e,t);return a!==void 0&&(n.additionalProperties=a),n}function m0e(e,t){if(e.catchall._def.typeName!=="ZodNever")return bi(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function y0e(e){try{return e.isOptional()}catch{return!0}}var v0e=(e,t)=>{var n;if(t.currentPath.toString()===((n=t.propertyPath)==null?void 0:n.toString()))return bi(e.innerType._def,t);const r=bi(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return r?{anyOf:[{not:As()},r]}:As()},x0e=(e,t)=>{if(t.pipeStrategy==="input")return bi(e.in._def,t);if(t.pipeStrategy==="output")return bi(e.out._def,t);const n=bi(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),r=bi(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",n?"1":"0"]});return{allOf:[n,r].filter(i=>i!==void 0)}};function b0e(e,t){return bi(e.type._def,t)}function A0e(e,t){const r={type:"array",uniqueItems:!0,items:bi(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(r.minItems=e.minSize.value),e.maxSize&&(r.maxItems=e.maxSize.value),r}function w0e(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((n,r)=>bi(n._def,{...t,currentPath:[...t.currentPath,"items",`${r}`]})).reduce((n,r)=>r===void 0?n:[...n,r],[]),additionalItems:bi(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((n,r)=>bi(n._def,{...t,currentPath:[...t.currentPath,"items",`${r}`]})).reduce((n,r)=>r===void 0?n:[...n,r],[])}}function S0e(){return{not:As()}}function k0e(){return As()}var D0e=(e,t)=>bi(e.innerType._def,t),C0e=(e,t,n)=>{switch(t){case br.ZodString:return xV(e,n);case br.ZodNumber:return p0e(e);case br.ZodObject:return g0e(e,n);case br.ZodBigInt:return Kme(e);case br.ZodBoolean:return $me();case br.ZodDate:return vV(e,n);case br.ZodUndefined:return S0e();case br.ZodNull:return u0e();case br.ZodArray:return Zme(e,n);case br.ZodUnion:case br.ZodDiscriminatedUnion:return d0e(e,n);case br.ZodIntersection:return r0e(e,n);case br.ZodTuple:return w0e(e,n);case br.ZodRecord:return bV(e,n);case br.ZodLiteral:return i0e(e);case br.ZodEnum:return t0e(e);case br.ZodNativeEnum:return l0e(e);case br.ZodNullable:return h0e(e,n);case br.ZodOptional:return v0e(e,n);case br.ZodMap:return s0e(e,n);case br.ZodSet:return A0e(e,n);case br.ZodLazy:return()=>e.getter()._def;case br.ZodPromise:return b0e(e,n);case br.ZodNaN:case br.ZodNever:return c0e();case br.ZodEffects:return e0e(e,n);case br.ZodAny:return As();case br.ZodUnknown:return k0e();case br.ZodDefault:return Qme(e,n);case br.ZodBranded:return yV(e,n);case br.ZodReadonly:return D0e(e,n);case br.ZodCatch:return Yme(e,n);case br.ZodPipeline:return x0e(e,n);case br.ZodFunction:case br.ZodVoid:case br.ZodSymbol:return;default:return(r=>{})()}};function bi(e,t,n=!1){var r;const i=t.seen.get(e);if(t.override){const l=(r=t.override)==null?void 0:r.call(t,e,t,i,n);if(l!==Hme)return l}if(i&&!n){const l=T0e(i,t);if(l!==void 0)return l}const a={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,a);const o=C0e(e,e.typeName,t),s=typeof o=="function"?bi(o(),t):o;if(s&&_0e(e,t,s),t.postProcess){const l=t.postProcess(s,e,t);return a.jsonSchema=s,l}return a.jsonSchema=s,s}var T0e=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:qme(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((n,r)=>t.currentPath[r]===n)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),As()):t.$refStrategy==="seen"?As():void 0}},_0e=(e,t,n)=>(e.description&&(n.description=e.description),n),E0e=e=>{const t=Xme(e),n=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([r,i])=>[i._def,{def:i._def,path:[...t.basePath,t.definitionPath,r],jsonSchema:void 0}]))}},N0e=(e,t)=>{var n;const r=E0e(t);let i=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((c,[u,d])=>{var h;return{...c,[u]:(h=bi(d._def,{...r,currentPath:[...r.basePath,r.definitionPath,u]},!0))!=null?h:As()}},{}):void 0;const a=typeof t=="string"?t:(t==null?void 0:t.nameStrategy)==="title"||t==null?void 0:t.name,o=(n=bi(e._def,a===void 0?r:{...r,currentPath:[...r.basePath,r.definitionPath,a]},!1))!=null?n:As(),s=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;s!==void 0&&(o.title=s);const l=a===void 0?i?{...o,[r.definitionPath]:i}:o:{$ref:[...r.$refStrategy==="relative"?[]:r.basePath,r.definitionPath,a].join("/"),[r.definitionPath]:{...i,[a]:o}};return l.$schema="http://json-schema.org/draft-07/schema#",l},F0e=N0e;function R0e(e,t){var n;const r=(n=void 0)!=null?n:!1;return _N(()=>F0e(e,{$refStrategy:r?"root":"none"}),{validate:async i=>{const a=await e.safeParseAsync(i);return a.success?{success:!0,value:a.data}:{success:!1,error:a.error}}})}function P0e(e,t){var n;const r=(n=void 0)!=null?n:!1;return _N(()=>kb(mge(e,{target:"draft-7",io:"input",reused:r?"ref":"inline"})),{validate:async i=>{const a=await sV(e,i);return a.success?{success:!0,value:a.data}:{success:!1,error:a.error}}})}function I0e(e){return"_zod"in e}function AV(e,t){return I0e(e)?P0e(e):R0e(e)}var u_=Symbol.for("vercel.ai.schema");function _N(e,{validate:t}={}){return{[u_]:!0,_type:void 0,[M1]:!0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function M0e(e){return typeof e=="object"&&e!==null&&u_ in e&&e[u_]===!0&&"jsonSchema"in e&&"validate"in e}function U0e(e){return e==null?_N({properties:{},additionalProperties:!1}):M0e(e)?e:typeof e=="function"?e():AV(e)}var L0e=Object.defineProperty,O0e=(e,t)=>{for(var n in t)L0e(e,n,{get:t[n],enumerable:!0})},wV="AI_NoObjectGeneratedError",SV=`vercel.ai.error.${wV}`,j0e=Symbol.for(SV),kV,O4=class extends ed{constructor({message:e="No object generated.",cause:t,text:n,response:r,usage:i,finishReason:a}){super({name:wV,message:e,cause:t}),this[kV]=!0,this.text=n,this.response=r,this.usage=i,this.finishReason=a}static isInstance(e){return ed.hasMarker(e,SV)}};kV=j0e;var j4="5.0.129",DV=rl([Mn(),P1(Uint8Array),P1(ArrayBuffer),mV(e=>{var t,n;return(n=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null?n:!1},{message:"Must be a Buffer"})]),j0=Fme(()=>rl([ame(),Mn(),tme(),Oo(),s_(Mn(),j0),kg(j0)])),ha=s_(Mn(),s_(Mn(),j0)),CV=$a({type:Lr("text"),text:Mn(),providerOptions:ha.optional()}),B0e=$a({type:Lr("image"),image:rl([DV,P1(URL)]),mediaType:Mn().optional(),providerOptions:ha.optional()}),TV=$a({type:Lr("file"),data:rl([DV,P1(URL)]),filename:Mn().optional(),mediaType:Mn(),providerOptions:ha.optional()}),z0e=$a({type:Lr("reasoning"),text:Mn(),providerOptions:ha.optional()}),W0e=$a({type:Lr("tool-call"),toolCallId:Mn(),toolName:Mn(),input:nc(),providerOptions:ha.optional(),providerExecuted:Oo().optional()}),V0e=ume("type",[$a({type:Lr("text"),value:Mn()}),$a({type:Lr("json"),value:j0}),$a({type:Lr("error-text"),value:Mn()}),$a({type:Lr("error-json"),value:j0}),$a({type:Lr("content"),value:kg(rl([$a({type:Lr("text"),text:Mn()}),$a({type:Lr("media"),data:Mn(),mediaType:Mn()})]))})]),_V=$a({type:Lr("tool-result"),toolCallId:Mn(),toolName:Mn(),output:V0e,providerOptions:ha.optional()}),G0e=$a({role:Lr("system"),content:Mn(),providerOptions:ha.optional()}),q0e=$a({role:Lr("user"),content:rl([Mn(),kg(rl([CV,B0e,TV]))]),providerOptions:ha.optional()}),H0e=$a({role:Lr("assistant"),content:rl([Mn(),kg(rl([CV,TV,z0e,W0e,_V]))]),providerOptions:ha.optional()}),X0e=$a({role:Lr("tool"),content:kg(_V),providerOptions:ha.optional()});rl([G0e,q0e,H0e,X0e]);vy({prefix:"aitxt",size:24});(class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)}--`)},flush(e){e.enqueue(`data: [DONE]--`)}})}});var Z0e=zme(()=>AV(rl([Ji({type:Lr("text-start"),id:Mn(),providerMetadata:ha.optional()}),Ji({type:Lr("text-delta"),id:Mn(),delta:Mn(),providerMetadata:ha.optional()}),Ji({type:Lr("text-end"),id:Mn(),providerMetadata:ha.optional()}),Ji({type:Lr("error"),errorText:Mn()}),Ji({type:Lr("tool-input-start"),toolCallId:Mn(),toolName:Mn(),providerExecuted:Oo().optional(),dynamic:Oo().optional()}),Ji({type:Lr("tool-input-delta"),toolCallId:Mn(),inputTextDelta:Mn()}),Ji({type:Lr("tool-input-available"),toolCallId:Mn(),toolName:Mn(),input:nc(),providerExecuted:Oo().optional(),providerMetadata:ha.optional(),dynamic:Oo().optional()}),Ji({type:Lr("tool-input-error"),toolCallId:Mn(),toolName:Mn(),input:nc(),providerExecuted:Oo().optional(),providerMetadata:ha.optional(),dynamic:Oo().optional(),errorText:Mn()}),Ji({type:Lr("tool-output-available"),toolCallId:Mn(),output:nc(),providerExecuted:Oo().optional(),dynamic:Oo().optional(),preliminary:Oo().optional()}),Ji({type:Lr("tool-output-error"),toolCallId:Mn(),errorText:Mn(),providerExecuted:Oo().optional(),dynamic:Oo().optional()}),Ji({type:Lr("reasoning-start"),id:Mn(),providerMetadata:ha.optional()}),Ji({type:Lr("reasoning-delta"),id:Mn(),delta:Mn(),providerMetadata:ha.optional()}),Ji({type:Lr("reasoning-end"),id:Mn(),providerMetadata:ha.optional()}),Ji({type:Lr("source-url"),sourceId:Mn(),url:Mn(),title:Mn().optional(),providerMetadata:ha.optional()}),Ji({type:Lr("source-document"),sourceId:Mn(),mediaType:Mn(),title:Mn(),filename:Mn().optional(),providerMetadata:ha.optional()}),Ji({type:Lr("file"),url:Mn(),mediaType:Mn(),providerMetadata:ha.optional()}),Ji({type:mV(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:Mn().optional(),data:nc(),transient:Oo().optional()}),Ji({type:Lr("start-step")}),Ji({type:Lr("finish-step")}),Ji({type:Lr("start"),messageId:Mn().optional(),messageMetadata:nc().optional()}),Ji({type:Lr("finish"),finishReason:hV(["stop","length","content-filter","tool-calls","error","other","unknown"]).optional(),messageMetadata:nc().optional()}),Ji({type:Lr("abort")}),Ji({type:Lr("message-metadata"),messageMetadata:nc()})])));function K0e(e){return e.type.startsWith("data-")}function EV(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;const n={...e};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=t[r];if(i===void 0)continue;const a=r in e?e[r]:void 0,o=i!==null&&typeof i=="object"&&!Array.isArray(i)&&!(i instanceof Date)&&!(i instanceof RegExp),s=a!=null&&typeof a=="object"&&!Array.isArray(a)&&!(a instanceof Date)&&!(a instanceof RegExp);o&&s?n[r]=EV(a,i):n[r]=i}return n}function $0e(e){const t=["ROOT"];let n=-1,r=null;function i(l,c,u){switch(l){case'"':{n=c,t.pop(),t.push(u),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{n=c,r=c,t.pop(),t.push(u),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(u),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{n=c,t.pop(),t.push(u),t.push("INSIDE_NUMBER");break}case"{":{n=c,t.pop(),t.push(u),t.push("INSIDE_OBJECT_START");break}case"[":{n=c,t.pop(),t.push(u),t.push("INSIDE_ARRAY_START");break}}}function a(l,c){switch(l){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{n=c,t.pop();break}}}function o(l,c){switch(l){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{n=c,t.pop();break}}}for(let l=0;l<e.length;l++){const c=e[l];switch(t[t.length-1]){case"ROOT":i(c,l,"FINISH");break;case"INSIDE_OBJECT_START":{switch(c){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{n=l,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(c){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(c){case'"':{t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(c){case":":{t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{i(c,l,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{a(c,l);break}case"INSIDE_STRING":{switch(c){case'"':{t.pop(),n=l;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:n=l}break}case"INSIDE_ARRAY_START":{switch(c){case"]":{n=l,t.pop();break}default:{n=l,i(c,l,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(c){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{n=l,t.pop();break}default:{n=l;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{i(c,l,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),n=l;break}case"INSIDE_NUMBER":{switch(c){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{n=l;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&o(c,l),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&a(c,l);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&a(c,l);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&o(c,l);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{const d=e.substring(r,l+1);!"false".startsWith(d)&&!"true".startsWith(d)&&!"null".startsWith(d)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?a(c,l):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&o(c,l)):n=l;break}}}let s=e.slice(0,n+1);for(let l=t.length-1;l>=0;l--)switch(t[l]){case"INSIDE_STRING":{s+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{s+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{s+="]";break}case"INSIDE_LITERAL":{const u=e.substring(r,e.length);"true".startsWith(u)?s+="true".slice(u.length):"false".startsWith(u)?s+="false".slice(u.length):"null".startsWith(u)&&(s+="null".slice(u.length))}}return s}async function NV(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await U1({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await U1({text:$0e(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}function Db(e){return e.type.startsWith("tool-")}function Y0e(e){return e.type==="dynamic-tool"}function B4(e){return Db(e)||Y0e(e)}function z4(e){return e.type.split("-").slice(1).join("-")}function J0e({lastMessage:e,messageId:t}){return{message:(e==null?void 0:e.role)==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function Q0e({stream:e,messageMetadataSchema:t,dataPartSchemas:n,runUpdateMessageJob:r,onError:i,onToolCall:a,onData:o}){return e.pipeThrough(new TransformStream({async transform(s,l){await r(async({state:c,write:u})=>{var d,h,f,g;function y(_){const T=c.message.parts.filter(Db).find(D=>D.toolCallId===_);if(T==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return T}function v(_){const T=c.message.parts.filter(D=>D.type==="dynamic-tool").find(D=>D.toolCallId===_);if(T==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return T}function A(_){var E;const T=c.message.parts.find(j=>Db(j)&&j.toolCallId===_.toolCallId),D=_,I=T;T!=null?(T.state=_.state,I.input=D.input,I.output=D.output,I.errorText=D.errorText,I.rawInput=D.rawInput,I.preliminary=D.preliminary,I.providerExecuted=(E=D.providerExecuted)!=null?E:T.providerExecuted,D.providerMetadata!=null&&T.state==="input-available"&&(T.callProviderMetadata=D.providerMetadata)):c.message.parts.push({type:`tool-${_.toolName}`,toolCallId:_.toolCallId,state:_.state,input:D.input,output:D.output,rawInput:D.rawInput,errorText:D.errorText,providerExecuted:D.providerExecuted,preliminary:D.preliminary,...D.providerMetadata!=null?{callProviderMetadata:D.providerMetadata}:{}})}function w(_){var E,T;const D=c.message.parts.find(R=>R.type==="dynamic-tool"&&R.toolCallId===_.toolCallId),I=_,j=D;D!=null?(D.state=_.state,j.toolName=_.toolName,j.input=I.input,j.output=I.output,j.errorText=I.errorText,j.rawInput=(E=I.rawInput)!=null?E:j.rawInput,j.preliminary=I.preliminary,j.providerExecuted=(T=I.providerExecuted)!=null?T:D.providerExecuted,I.providerMetadata!=null&&D.state==="input-available"&&(D.callProviderMetadata=I.providerMetadata)):c.message.parts.push({type:"dynamic-tool",toolName:_.toolName,toolCallId:_.toolCallId,state:_.state,input:I.input,output:I.output,errorText:I.errorText,preliminary:I.preliminary,providerExecuted:I.providerExecuted,...I.providerMetadata!=null?{callProviderMetadata:I.providerMetadata}:{}})}async function S(_){if(_!=null){const E=c.message.metadata!=null?EV(c.message.metadata,_):_;t!=null&&await M4({value:E,schema:t}),c.message.metadata=E}}switch(s.type){case"text-start":{const _={type:"text",text:"",providerMetadata:s.providerMetadata,state:"streaming"};c.activeTextParts[s.id]=_,c.message.parts.push(_),u();break}case"text-delta":{const _=c.activeTextParts[s.id];_.text+=s.delta,_.providerMetadata=(d=s.providerMetadata)!=null?d:_.providerMetadata,u();break}case"text-end":{const _=c.activeTextParts[s.id];_.state="done",_.providerMetadata=(h=s.providerMetadata)!=null?h:_.providerMetadata,delete c.activeTextParts[s.id],u();break}case"reasoning-start":{const _={type:"reasoning",text:"",providerMetadata:s.providerMetadata,state:"streaming"};c.activeReasoningParts[s.id]=_,c.message.parts.push(_),u();break}case"reasoning-delta":{const _=c.activeReasoningParts[s.id];_.text+=s.delta,_.providerMetadata=(f=s.providerMetadata)!=null?f:_.providerMetadata,u();break}case"reasoning-end":{const _=c.activeReasoningParts[s.id];_.providerMetadata=(g=s.providerMetadata)!=null?g:_.providerMetadata,_.state="done",delete c.activeReasoningParts[s.id],u();break}case"file":{c.message.parts.push({type:"file",mediaType:s.mediaType,url:s.url}),u();break}case"source-url":{c.message.parts.push({type:"source-url",sourceId:s.sourceId,url:s.url,title:s.title,providerMetadata:s.providerMetadata}),u();break}case"source-document":{c.message.parts.push({type:"source-document",sourceId:s.sourceId,mediaType:s.mediaType,title:s.title,filename:s.filename,providerMetadata:s.providerMetadata}),u();break}case"tool-input-start":{const _=c.message.parts.filter(Db);c.partialToolCalls[s.toolCallId]={text:"",toolName:s.toolName,index:_.length,dynamic:s.dynamic},s.dynamic?w({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted}):A({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted}),u();break}case"tool-input-delta":{const _=c.partialToolCalls[s.toolCallId];_.text+=s.inputTextDelta;const{value:E}=await NV(_.text);_.dynamic?w({toolCallId:s.toolCallId,toolName:_.toolName,state:"input-streaming",input:E}):A({toolCallId:s.toolCallId,toolName:_.toolName,state:"input-streaming",input:E}),u();break}case"tool-input-available":{s.dynamic?w({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}):A({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}),u(),a&&!s.providerExecuted&&await a({toolCall:s});break}case"tool-input-error":{s.dynamic?w({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}):A({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:void 0,rawInput:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}),u();break}case"tool-output-available":{if(s.dynamic){const _=v(s.toolCallId);w({toolCallId:s.toolCallId,toolName:_.toolName,state:"output-available",input:_.input,output:s.output,preliminary:s.preliminary})}else{const _=y(s.toolCallId);A({toolCallId:s.toolCallId,toolName:z4(_),state:"output-available",input:_.input,output:s.output,providerExecuted:s.providerExecuted,preliminary:s.preliminary})}u();break}case"tool-output-error":{if(s.dynamic){const _=v(s.toolCallId);w({toolCallId:s.toolCallId,toolName:_.toolName,state:"output-error",input:_.input,errorText:s.errorText,providerExecuted:s.providerExecuted})}else{const _=y(s.toolCallId);A({toolCallId:s.toolCallId,toolName:z4(_),state:"output-error",input:_.input,rawInput:_.rawInput,errorText:s.errorText,providerExecuted:s.providerExecuted})}u();break}case"start-step":{c.message.parts.push({type:"step-start"});break}case"finish-step":{c.activeTextParts={},c.activeReasoningParts={};break}case"start":{s.messageId!=null&&(c.message.id=s.messageId),await S(s.messageMetadata),(s.messageId!=null||s.messageMetadata!=null)&&u();break}case"finish":{s.finishReason!=null&&(c.finishReason=s.finishReason),await S(s.messageMetadata),s.messageMetadata!=null&&u();break}case"message-metadata":{await S(s.messageMetadata),s.messageMetadata!=null&&u();break}case"error":{i==null||i(new Error(s.errorText));break}default:if(K0e(s)){(n==null?void 0:n[s.type])!=null&&await M4({value:s.data,schema:n[s.type]});const _=s;if(_.transient){o==null||o(_);break}const E=_.id!=null?c.message.parts.find(T=>_.type===T.type&&_.id===T.id):void 0;E!=null?E.data=_.data:c.message.parts.push(_),o==null||o(_),u()}}l.enqueue(s)})}}))}async function eye({stream:e,onError:t}){const n=e.getReader();try{for(;;){const{done:r}=await n.read();if(r)break}}catch(r){t==null||t(r)}finally{n.releaseLock()}}vy({prefix:"aitxt",size:24});vy({prefix:"aiobj",size:24});var tye=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,n)=>{this.queue.push(async()=>{try{await e(),t()}catch(r){n(r)}}),this.processQueue()})}};vy({prefix:"aiobj",size:24});var nye={};O0e(nye,{object:()=>iye,text:()=>rye});var rye=()=>({type:"text",responseFormat:{type:"text"},async parsePartial({text:e}){return{partial:e}},async parseOutput({text:e}){return e}}),iye=({schema:e})=>{const t=U0e(e);return{type:"object",responseFormat:{type:"json",schema:t.jsonSchema},async parsePartial({text:n}){const r=await NV(n);switch(r.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:r.value};default:{const i=r.state;throw new Error(`Unsupported parse state: ${i}`)}}},async parseOutput({text:n},r){const i=await U1({text:n});if(!i.success)throw new O4({message:"No object generated: could not parse the response.",cause:i.error,text:n,response:r.response,usage:r.usage,finishReason:r.finishReason});const a=await TN({value:i.value,schema:t});if(!a.success)throw new O4({message:"No object generated: response did not match schema.",cause:a.error,text:n,response:r.response,usage:r.usage,finishReason:r.finishReason});return a.value}}};async function aye(e){if(e==null)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw new Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async t=>{const{name:n,type:r}=t,i=await new Promise((a,o)=>{const s=new FileReader;s.onload=l=>{var c;a((c=l.target)==null?void 0:c.result)},s.onerror=l=>o(l),s.readAsDataURL(t)});return{type:"file",mediaType:r,filename:n,url:i}}))}var oye=class{constructor({api:e="/api/chat",credentials:t,headers:n,body:r,fetch:i,prepareSendMessagesRequest:a,prepareReconnectToStreamRequest:o}){this.api=e,this.credentials=t,this.headers=n,this.body=r,this.fetch=i,this.prepareSendMessagesRequest=a,this.prepareReconnectToStreamRequest=o}async sendMessages({abortSignal:e,...t}){var n,r,i,a,o;const s=await Bh(this.body),l=await Bh(this.headers),c=await Bh(this.credentials),u={...bf(l),...bf(t.headers)},d=await((n=this.prepareSendMessagesRequest)==null?void 0:n.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...s,...t.body},headers:u,credentials:c,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),h=(r=d==null?void 0:d.api)!=null?r:this.api,f=(d==null?void 0:d.headers)!==void 0?bf(d.headers):u,g=(d==null?void 0:d.body)!==void 0?d.body:{...s,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},y=(i=d==null?void 0:d.credentials)!=null?i:c,A=await((a=this.fetch)!=null?a:globalThis.fetch)(h,{method:"POST",headers:P4({"Content-Type":"application/json",...f},`ai-sdk/${j4}`,R4()),body:JSON.stringify(g),credentials:y,signal:e});if(!A.ok)throw new Error((o=await A.text())!=null?o:"Failed to fetch the chat response.");if(!A.body)throw new Error("The response body is empty.");return this.processResponseStream(A.body)}async reconnectToStream(e){var t,n,r,i,a;const o=await Bh(this.body),s=await Bh(this.headers),l=await Bh(this.credentials),c={...bf(s),...bf(e.headers)},u=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...o,...e.body},headers:c,credentials:l,requestMetadata:e.metadata})),d=(n=u==null?void 0:u.api)!=null?n:`${this.api}/${e.chatId}/stream`,h=(u==null?void 0:u.headers)!==void 0?bf(u.headers):c,f=(r=u==null?void 0:u.credentials)!=null?r:l,y=await((i=this.fetch)!=null?i:globalThis.fetch)(d,{method:"GET",headers:P4(h,`ai-sdk/${j4}`,R4()),credentials:f});if(y.status===204)return null;if(!y.ok)throw new Error((a=await y.text())!=null?a:"Failed to fetch the chat response.");if(!y.body)throw new Error("The response body is empty.");return this.processResponseStream(y.body)}},sye=class extends oye{constructor(e={}){super(e)}processResponseStream(e){return Gme({stream:e,schema:Z0e}).pipeThrough(new TransformStream({async transform(t,n){if(!t.success)throw t.error;n.enqueue(t.value)}}))}},lye=class{constructor({generateId:e=Ime,id:t=e(),transport:n=new sye,messageMetadataSchema:r,dataPartSchemas:i,state:a,onError:o,onToolCall:s,onFinish:l,onData:c,sendAutomaticallyWhen:u}){this.activeResponse=void 0,this.jobExecutor=new tye,this.sendMessage=async(d,h)=>{var f,g,y,v;if(d==null){await this.makeRequest({trigger:"submit-message",messageId:(f=this.lastMessage)==null?void 0:f.id,...h});return}let A;if("text"in d||"files"in d?A={parts:[...Array.isArray(d.files)?d.files:await aye(d.files),..."text"in d&&d.text!=null?[{type:"text",text:d.text}]:[]]}:A=d,d.messageId!=null){const w=this.state.messages.findIndex(S=>S.id===d.messageId);if(w===-1)throw new Error(`message with id ${d.messageId} not found`);if(this.state.messages[w].role!=="user")throw new Error(`message with id ${d.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,w+1),this.state.replaceMessage(w,{...A,id:d.messageId,role:(g=A.role)!=null?g:"user",metadata:d.metadata})}else this.state.pushMessage({...A,id:(y=A.id)!=null?y:this.generateId(),role:(v=A.role)!=null?v:"user",metadata:d.metadata});await this.makeRequest({trigger:"submit-message",messageId:d.messageId,...h})},this.regenerate=async({messageId:d,...h}={})=>{const f=d==null?this.state.messages.length-1:this.state.messages.findIndex(g=>g.id===d);if(f===-1)throw new Error(`message ${d} not found`);this.state.messages=this.state.messages.slice(0,this.messages[f].role==="assistant"?f:f+1),await this.makeRequest({trigger:"regenerate-message",messageId:d,...h})},this.resumeStream=async(d={})=>{await this.makeRequest({trigger:"resume-stream",...d})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolOutput=async({state:d="output-available",tool:h,toolCallId:f,output:g,errorText:y})=>this.jobExecutor.run(async()=>{var v,A;const w=this.state.messages,S=w[w.length-1];this.state.replaceMessage(w.length-1,{...S,parts:S.parts.map(_=>B4(_)&&_.toolCallId===f?{..._,state:d,output:g,errorText:y}:_)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(_=>B4(_)&&_.toolCallId===f?{..._,state:d,output:g,errorText:y}:_)),this.status!=="streaming"&&this.status!=="submitted"&&((v=this.sendAutomaticallyWhen)!=null&&v.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:(A=this.lastMessage)==null?void 0:A.id})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var d;this.status!=="streaming"&&this.status!=="submitted"||(d=this.activeResponse)!=null&&d.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=n,this.generateId=e,this.messageMetadataSchema=r,this.dataPartSchemas=i,this.state=a,this.onError=o,this.onToolCall=s,this.onFinish=l,this.onData=c,this.sendAutomaticallyWhen=u}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async makeRequest({trigger:e,metadata:t,headers:n,body:r,messageId:i}){var a,o,s,l;this.setStatus({status:"submitted",error:void 0});const c=this.lastMessage;let u=!1,d=!1,h=!1;try{const f={state:J0e({lastMessage:this.state.snapshot(c),messageId:this.generateId()}),abortController:new AbortController};f.abortController.signal.addEventListener("abort",()=>{u=!0}),this.activeResponse=f;let g;if(e==="resume-stream"){const v=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:n,body:r});if(v==null){this.setStatus({status:"ready"});return}g=v}else g=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:f.abortController.signal,metadata:t,headers:n,body:r,trigger:e,messageId:i});const y=v=>this.jobExecutor.run(()=>v({state:f.state,write:()=>{var A;this.setStatus({status:"streaming"}),f.state.message.id===((A=this.lastMessage)==null?void 0:A.id)?this.state.replaceMessage(this.state.messages.length-1,f.state.message):this.state.pushMessage(f.state.message)}}));await eye({stream:Q0e({stream:g,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:y,onError:v=>{throw v}}),onError:v=>{throw v}}),this.setStatus({status:"ready"})}catch(f){if(u||f.name==="AbortError")return u=!0,this.setStatus({status:"ready"}),null;h=!0,f instanceof TypeError&&(f.message.toLowerCase().includes("fetch")||f.message.toLowerCase().includes("network"))&&(d=!0),this.onError&&f instanceof Error&&this.onError(f),this.setStatus({status:"error",error:f})}finally{try{(o=this.onFinish)==null||o.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:u,isDisconnect:d,isError:h,finishReason:(a=this.activeResponse)==null?void 0:a.state.finishReason})}catch(f){console.error(f)}this.activeResponse=void 0}(s=this.sendAutomaticallyWhen)!=null&&s.call(this,{messages:this.state.messages})&&!h&&await this.makeRequest({trigger:"submit-message",messageId:(l=this.lastMessage)==null?void 0:l.id,metadata:t,headers:n,body:r})}},Fk,W4;function cye(){if(W4)return Fk;W4=1;function e(t,n){if(typeof t!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof t}\`.`);let r,i=0;return function(...o){clearTimeout(r);const s=Date.now(),l=s-i,c=n-l;c<=0?(i=s,t.apply(this,o)):r=setTimeout(()=>{i=Date.now(),t.apply(this,o)},c)}}return Fk=e,Fk}var uye=cye();const dye=Qc(uye);var FV=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Li=(e,t,n)=>(FV(e,t,"read from private field"),n?n.call(e):t.get(e)),$l=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Nu=(e,t,n,r)=>(FV(e,t,"write to private field"),t.set(e,n),n);function fye(e,t){return t!=null?dye(e,t):e}var js,Cb,Tb,jm,Bm,zm,fp,d_,f_,hye=class{constructor(e=[]){$l(this,js,void 0),$l(this,Cb,"ready"),$l(this,Tb,void 0),$l(this,jm,new Set),$l(this,Bm,new Set),$l(this,zm,new Set),this.pushMessage=t=>{Nu(this,js,Li(this,js).concat(t)),Li(this,fp).call(this)},this.popMessage=()=>{Nu(this,js,Li(this,js).slice(0,-1)),Li(this,fp).call(this)},this.replaceMessage=(t,n)=>{Nu(this,js,[...Li(this,js).slice(0,t),this.snapshot(n),...Li(this,js).slice(t+1)]),Li(this,fp).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,n)=>{const r=n?fye(t,n):t;return Li(this,jm).add(r),()=>{Li(this,jm).delete(r)}},this["~registerStatusCallback"]=t=>(Li(this,Bm).add(t),()=>{Li(this,Bm).delete(t)}),this["~registerErrorCallback"]=t=>(Li(this,zm).add(t),()=>{Li(this,zm).delete(t)}),$l(this,fp,()=>{Li(this,jm).forEach(t=>t())}),$l(this,d_,()=>{Li(this,Bm).forEach(t=>t())}),$l(this,f_,()=>{Li(this,zm).forEach(t=>t())}),Nu(this,js,e)}get status(){return Li(this,Cb)}set status(e){Nu(this,Cb,e),Li(this,d_).call(this)}get error(){return Li(this,Tb)}set error(e){Nu(this,Tb,e),Li(this,f_).call(this)}get messages(){return Li(this,js)}set messages(e){Nu(this,js,[...e]),Li(this,fp).call(this)}};js=new WeakMap;Cb=new WeakMap;Tb=new WeakMap;jm=new WeakMap;Bm=new WeakMap;zm=new WeakMap;fp=new WeakMap;d_=new WeakMap;f_=new WeakMap;var hp,V4=class extends lye{constructor({messages:e,...t}){const n=new hye(e);super({...t,state:n}),$l(this,hp,void 0),this["~registerMessagesCallback"]=(r,i)=>Li(this,hp)["~registerMessagesCallback"](r,i),this["~registerStatusCallback"]=r=>Li(this,hp)["~registerStatusCallback"](r),this["~registerErrorCallback"]=r=>Li(this,hp)["~registerErrorCallback"](r),Nu(this,hp,n)}};hp=new WeakMap;function pye({experimental_throttle:e,resume:t=!1,...n}={}){const r=N.useRef("chat"in n?n.chat:new V4(n));("chat"in n&&n.chat!==r.current||"id"in n&&r.current.id!==n.id)&&(r.current="chat"in n?n.chat:new V4(n));const a=N.useCallback(u=>r.current["~registerMessagesCallback"](u,e),[e,r.current.id]),o=N.useSyncExternalStore(a,()=>r.current.messages,()=>r.current.messages),s=N.useSyncExternalStore(r.current["~registerStatusCallback"],()=>r.current.status,()=>r.current.status),l=N.useSyncExternalStore(r.current["~registerErrorCallback"],()=>r.current.error,()=>r.current.error),c=N.useCallback(u=>{typeof u=="function"&&(u=u(r.current.messages)),r.current.messages=u},[r]);return N.useEffect(()=>{t&&r.current.resumeStream()},[t,r]),{id:r.current.id,messages:o,setMessages:c,sendMessage:r.current.sendMessage,regenerate:r.current.regenerate,clearError:r.current.clearError,stop:r.current.stop,error:l,resumeStream:r.current.resumeStream,status:s,addToolResult:r.current.addToolOutput,addToolOutput:r.current.addToolOutput}}const gye=CA("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:brightness-75",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Rf({className:e,variant:t,size:n,asChild:r=!1,...i}){const a=r?DA:"button";return m.jsx(a,{"data-slot":"button",className:Zi(gye({variant:t,size:n,className:e})),...i})}function mye(e,t){return N.useReducer((n,r)=>t[n][r]??n,e)}var To=e=>{const{present:t,children:n}=e,r=yye(t),i=typeof n=="function"?n({present:r.isPresent}):N.Children.only(n),a=Hr(r.ref,vye(i));return typeof n=="function"||r.isPresent?N.cloneElement(i,{ref:a}):null};To.displayName="Presence";function yye(e){const[t,n]=N.useState(),r=N.useRef(null),i=N.useRef(e),a=N.useRef("none"),o=e?"mounted":"unmounted",[s,l]=mye(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect(()=>{const c=mx(r.current);a.current=s==="mounted"?c:"none"},[s]),Ga(()=>{const c=r.current,u=i.current;if(u!==e){const h=a.current,f=mx(c);e?l("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==f?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Ga(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=f=>{const y=mx(r.current).includes(CSS.escape(f.animationName));if(f.target===t&&y&&(l("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=f=>{f.target===t&&(a.current=mx(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:N.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function mx(e){return(e==null?void 0:e.animationName)||"none"}function vye(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var xye=Symbol("radix.slottable");function bye(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=xye,t}var[KA]=dc("Tooltip",[yg]),$A=yg(),RV="TooltipProvider",Aye=700,h_="tooltip.open",[wye,EN]=KA(RV),PV=e=>{const{__scopeTooltip:t,delayDuration:n=Aye,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=N.useRef(!0),s=N.useRef(!1),l=N.useRef(0);return N.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),m.jsx(wye,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:N.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:N.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:N.useCallback(c=>{s.current=c},[]),disableHoverableContent:i,children:a})};PV.displayName=RV;var B0="Tooltip",[Sye,xy]=KA(B0),IV=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,l=EN(B0,e.__scopeTooltip),c=$A(t),[u,d]=N.useState(null),h=zc(),f=N.useRef(0),g=o??l.disableHoverableContent,y=s??l.delayDuration,v=N.useRef(!1),[A,w]=tl({prop:r,defaultProp:i??!1,onChange:D=>{D?(l.onOpen(),document.dispatchEvent(new CustomEvent(h_))):l.onClose(),a==null||a(D)},caller:B0}),S=N.useMemo(()=>A?v.current?"delayed-open":"instant-open":"closed",[A]),_=N.useCallback(()=>{window.clearTimeout(f.current),f.current=0,v.current=!1,w(!0)},[w]),E=N.useCallback(()=>{window.clearTimeout(f.current),f.current=0,w(!1)},[w]),T=N.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{v.current=!0,w(!0),f.current=0},y)},[y,w]);return N.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),m.jsx(ME,{...c,children:m.jsx(Sye,{scope:t,contentId:h,open:A,stateAttribute:S,trigger:u,onTriggerChange:d,onTriggerEnter:N.useCallback(()=>{l.isOpenDelayedRef.current?T():_()},[l.isOpenDelayedRef,T,_]),onTriggerLeave:N.useCallback(()=>{g?E():(window.clearTimeout(f.current),f.current=0)},[E,g]),onOpen:_,onClose:E,disableHoverableContent:g,children:n})})};IV.displayName=B0;var p_="TooltipTrigger",MV=N.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=xy(p_,n),a=EN(p_,n),o=$A(n),s=N.useRef(null),l=Hr(t,s,i.onTriggerChange),c=N.useRef(!1),u=N.useRef(!1),d=N.useCallback(()=>c.current=!1,[]);return N.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),m.jsx(UE,{asChild:!0,...o,children:m.jsx(Dr.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:en(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:en(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:en(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:en(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:en(e.onBlur,i.onClose),onClick:en(e.onClick,i.onClose)})})});MV.displayName=p_;var NN="TooltipPortal",[kye,Dye]=KA(NN,{forceMount:void 0}),UV=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=xy(NN,t);return m.jsx(kye,{scope:t,forceMount:n,children:m.jsx(To,{present:n||a.open,children:m.jsx(hy,{asChild:!0,container:i,children:r})})})};UV.displayName=NN;var eg="TooltipContent",LV=N.forwardRef((e,t)=>{const n=Dye(eg,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,o=xy(eg,e.__scopeTooltip);return m.jsx(To,{present:r||o.open,children:o.disableHoverableContent?m.jsx(OV,{side:i,...a,ref:t}):m.jsx(Cye,{side:i,...a,ref:t})})}),Cye=N.forwardRef((e,t)=>{const n=xy(eg,e.__scopeTooltip),r=EN(eg,e.__scopeTooltip),i=N.useRef(null),a=Hr(t,i),[o,s]=N.useState(null),{trigger:l,onClose:c}=n,u=i.current,{onPointerInTransitChange:d}=r,h=N.useCallback(()=>{s(null),d(!1)},[d]),f=N.useCallback((g,y)=>{const v=g.currentTarget,A={x:g.clientX,y:g.clientY},w=Nye(A,v.getBoundingClientRect()),S=Fye(A,w),_=Rye(y.getBoundingClientRect()),E=Iye([...S,..._]);s(E),d(!0)},[d]);return N.useEffect(()=>()=>h(),[h]),N.useEffect(()=>{if(l&&u){const g=v=>f(v,u),y=v=>f(v,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",y)}}},[l,u,f,h]),N.useEffect(()=>{if(o){const g=y=>{const v=y.target,A={x:y.clientX,y:y.clientY},w=(l==null?void 0:l.contains(v))||(u==null?void 0:u.contains(v)),S=!Pye(A,o);w?h():S&&(h(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,o,c,h]),m.jsx(OV,{...e,ref:a})}),[Tye,_ye]=KA(B0,{isInside:!1}),Eye=bye("TooltipContent"),OV=N.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,l=xy(eg,n),c=$A(n),{onClose:u}=l;return N.useEffect(()=>(document.addEventListener(h_,u),()=>document.removeEventListener(h_,u)),[u]),N.useEffect(()=>{if(l.trigger){const d=h=>{const f=h.target;f!=null&&f.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),m.jsx(dy,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:m.jsxs(LE,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[m.jsx(Eye,{children:r}),m.jsx(Tye,{scope:n,isInside:!0,children:m.jsx(Qre,{id:l.contentId,role:"tooltip",children:i||r})})]})})});LV.displayName=eg;var jV="TooltipArrow",BV=N.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=$A(n);return _ye(jV,n).isInside?null:m.jsx(OE,{...i,...r,ref:t})});BV.displayName=jV;function Nye(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Fye(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Rye(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Pye(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,o=t.length-1;a<t.length;o=a++){const s=t[a],l=t[o],c=s.x,u=s.y,d=l.x,h=l.y;u>r!=h>r&&n<(d-c)*(r-u)/(h-u)+c&&(i=!i)}return i}function Iye(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Mye(t)}function Mye(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const a=t[t.length-1],o=t[t.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const a=n[n.length-1],o=n[n.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var FN=PV,RN=IV,PN=MV,Uye=UV,by=LV,Lye=BV;function Oye({delayDuration:e=0,...t}){return m.jsx(FN,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function jye({...e}){return m.jsx(Oye,{children:m.jsx(RN,{"data-slot":"tooltip",...e})})}function Bye({...e}){return m.jsx(PN,{"data-slot":"tooltip-trigger",...e})}function zye({className:e,sideOffset:t=0,children:n,...r}){return m.jsx(Uye,{children:m.jsxs(by,{"data-slot":"tooltip-content",sideOffset:t,className:Zi("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,m.jsx(Lye,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}function Jl({tooltipContent:e,children:t,...n}){const r=typeof n.title=="string"?n.title:e,i=m.jsx(Rf,{...n,title:r,children:t});return m.jsxs(jye,{children:[m.jsx(Bye,{asChild:!0,children:n.disabled?m.jsx("span",{className:"inline-flex cursor-not-allowed",children:i}):i}),m.jsx(zye,{className:"max-w-xs text-wrap",children:e})]})}function Wye({message:e,onDismiss:t}){const n=r=>{(r.key==="Enter"||r.key===" "||r.key==="Escape")&&(r.preventDefault(),t())};return m.jsxs("div",{role:"alert","aria-live":"polite",tabIndex:0,onClick:t,onKeyDown:n,className:"flex items-center gap-3 bg-card border border-border/50 px-4 py-3 rounded-xl shadow-sm cursor-pointer hover:bg-muted/50 focus:outline-none focus:ring-2 focus:ring-primary/50 transition-colors",children:[m.jsx("div",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-destructive/10 flex-shrink-0",children:m.jsx("svg",{className:"w-4 h-4 text-destructive",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:m.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}),m.jsx("span",{className:"text-sm text-foreground",children:e})]})}function Vye(e){const t=Gye(e),n=N.forwardRef((r,i)=>{const{children:a,...o}=r,s=N.Children.toArray(a),l=s.find(Hye);if(l){const c=l.props.children,u=s.map(d=>d===l?N.Children.count(c)>1?N.Children.only(null):N.isValidElement(c)?c.props.children:null:d);return m.jsx(t,{...o,ref:i,children:N.isValidElement(c)?N.cloneElement(c,void 0,u):null})}return m.jsx(t,{...o,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function Gye(e){const t=N.forwardRef((n,r)=>{const{children:i,...a}=n;if(N.isValidElement(i)){const o=Zye(i),s=Xye(a,i.props);return i.type!==N.Fragment&&(s.ref=r?fd(r,o):o),N.cloneElement(i,s)}return N.Children.count(i)>1?N.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qye=Symbol("radix.slottable");function Hye(e){return N.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qye}function Xye(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function Zye(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var YA="Dialog",[zV]=dc(YA),[Kye,Bl]=zV(YA),WV=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=N.useRef(null),l=N.useRef(null),[c,u]=tl({prop:r,defaultProp:i??!1,onChange:a,caller:YA});return m.jsx(Kye,{scope:t,triggerRef:s,contentRef:l,contentId:zc(),titleId:zc(),descriptionId:zc(),open:c,onOpenChange:u,onOpenToggle:N.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};WV.displayName=YA;var VV="DialogTrigger",$ye=N.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Bl(VV,n),a=Hr(t,i.triggerRef);return m.jsx(Dr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":UN(i.open),...r,ref:a,onClick:en(e.onClick,i.onOpenToggle)})});$ye.displayName=VV;var IN="DialogPortal",[Yye,GV]=zV(IN,{forceMount:void 0}),qV=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Bl(IN,t);return m.jsx(Yye,{scope:t,forceMount:n,children:N.Children.map(r,o=>m.jsx(To,{present:n||a.open,children:m.jsx(hy,{asChild:!0,container:i,children:o})}))})};qV.displayName=IN;var L1="DialogOverlay",HV=N.forwardRef((e,t)=>{const n=GV(L1,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Bl(L1,e.__scopeDialog);return a.modal?m.jsx(To,{present:r||a.open,children:m.jsx(Qye,{...i,ref:t})}):null});HV.displayName=L1;var Jye=Vye("DialogOverlay.RemoveScroll"),Qye=N.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Bl(L1,n);return m.jsx(MA,{as:Jye,allowPinchZoom:!0,shards:[i.contentRef],children:m.jsx(Dr.div,{"data-state":UN(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Bf="DialogContent",XV=N.forwardRef((e,t)=>{const n=GV(Bf,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Bl(Bf,e.__scopeDialog);return m.jsx(To,{present:r||a.open,children:a.modal?m.jsx(eve,{...i,ref:t}):m.jsx(tve,{...i,ref:t})})});XV.displayName=Bf;var eve=N.forwardRef((e,t)=>{const n=Bl(Bf,e.__scopeDialog),r=N.useRef(null),i=Hr(t,n.contentRef,r);return N.useEffect(()=>{const a=r.current;if(a)return jE(a)},[]),m.jsx(ZV,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:en(e.onCloseAutoFocus,a=>{var o;a.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:en(e.onPointerDownOutside,a=>{const o=a.detail.originalEvent,s=o.button===0&&o.ctrlKey===!0;(o.button===2||s)&&a.preventDefault()}),onFocusOutside:en(e.onFocusOutside,a=>a.preventDefault())})}),tve=N.forwardRef((e,t)=>{const n=Bl(Bf,e.__scopeDialog),r=N.useRef(!1),i=N.useRef(!1);return m.jsx(ZV,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var o,s;(o=e.onCloseAutoFocus)==null||o.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:a=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=a.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),ZV=N.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Bl(Bf,n),l=N.useRef(null),c=Hr(t,l);return CE(),m.jsxs(m.Fragment,{children:[m.jsx(EA,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:m.jsx(dy,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":UN(s.open),...o,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(nve,{titleId:s.titleId}),m.jsx(ive,{contentRef:l,descriptionId:s.descriptionId})]})]})}),MN="DialogTitle",KV=N.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Bl(MN,n);return m.jsx(Dr.h2,{id:i.titleId,...r,ref:t})});KV.displayName=MN;var $V="DialogDescription",YV=N.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Bl($V,n);return m.jsx(Dr.p,{id:i.descriptionId,...r,ref:t})});YV.displayName=$V;var JV="DialogClose",QV=N.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Bl(JV,n);return m.jsx(Dr.button,{type:"button",...r,ref:t,onClick:en(e.onClick,()=>i.onOpenChange(!1))})});QV.displayName=JV;function UN(e){return e?"open":"closed"}var eG="DialogTitleWarning",[L4e,tG]=Gte(eG,{contentName:Bf,titleName:MN,docsSlug:"dialog"}),nve=({titleId:e})=>{const t=tG(eG),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.--If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.--For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return N.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},rve="DialogDescriptionWarning",ive=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${tG(rve).contentName}}.`;return N.useEffect(()=>{var a;const i=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},LN=WV,ON=qV,JA=HV,QA=XV,ew=KV,tw=YV,jN=QV;function BN({...e}){return m.jsx(LN,{"data-slot":"dialog",...e})}function ave({...e}){return m.jsx(ON,{"data-slot":"dialog-portal",...e})}function ove({className:e,...t}){return m.jsx(JA,{"data-slot":"dialog-overlay",className:Zi("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function zN({className:e,children:t,...n}){return m.jsxs(ave,{"data-slot":"dialog-portal",children:[m.jsx(ove,{}),m.jsxs(QA,{"data-slot":"dialog-content",className:Zi("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...n,children:[t,m.jsxs(jN,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[m.jsx(Va,{}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function WN({className:e,...t}){return m.jsx("div",{"data-slot":"dialog-header",className:Zi("flex flex-col gap-2 text-center sm:text-left",e),...t})}function VN({className:e,...t}){return m.jsx("div",{"data-slot":"dialog-footer",className:Zi("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function GN({className:e,...t}){return m.jsx(ew,{"data-slot":"dialog-title",className:Zi("text-lg leading-none font-semibold",e),...t})}function nG({className:e,...t}){return m.jsx(tw,{"data-slot":"dialog-description",className:Zi("text-muted-foreground text-sm",e),...t})}function rG({className:e,...t}){return m.jsx("textarea",{"data-slot":"textarea",className:Zi("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}const sve={"app.title":"Next AI Drawio","welcome.title":"Create diagrams with AI","welcome.desc":"Describe what you want to create or upload an image to replicate","app.about":"About","chat.panel.show":"Show chat panel (Ctrl+B)","chat.panel.hide":"Hide chat panel (Ctrl+B)","chat.panel.title":"Flowchart Assistant","chat.settings":"Settings","chat.vertical.title":"AI Chat","input.placeholder":"Describe your diagram or upload a file...","input.clear":"Clear conversation","input.upload":"Upload file (image, PDF, text)","input.upload_image":"Upload image","input.upload_file":"Upload file","input.upload_file_types":"Upload file (.pdf, .docx, .txt)","input.send":"Send message","input.stop":"Stop generation","input.history":"History","input.history.toggle":"Toggle history","input.deep_thinking":"Deep Think","message.sending":"Sending message...","message.parsing_files":"Parsing files...","message.thinking":"AI is thinking and generating response...","message.copy":"Copy message","message.copied":"Copied!","message.copy.failed":"Failed to copy","message.regenerate":"Regenerate response","message.edit":"Edit message","message.good":"Good response","message.bad":"Bad response","message.edit.cancel":"Cancel","message.edit.save":"Save & Submit","settings.title":"Settings","settings.language":"Language","settings.theme":"Theme","settings.provider":"AI Provider","settings.model":"Model ID","settings.image_model":"Image Model","settings.api_key":"API Key","settings.base_url":"Base URL (optional)","settings.access_code":"Access Code (optional)","settings.close":"Close","settings.save":"Save","settings.general":"General","settings.theme.desc":"Dark/Light mode for interface and DrawIO canvas.","settings.close_protection":"Prevent accidental close","settings.close_protection.desc":"Show confirmation when leaving the page.","settings.ai_config":"AI Configuration","settings.ai_provider.desc":"Use your own API key to bypass usage limits. Your key is stored locally in your browser and is never stored on the server.","settings.provider.placeholder":"Select provider","settings.provider.default":"Default (Server)","settings.api_key.placeholder":"sk-...","settings.api_key.desc":"Leave empty to use default key","settings.base_url.placeholder":"https://api.openai.com/v1","settings.drawio_style":"DrawIO Style","settings.drawio_style.desc":"Canvas style: ","settings.drawio_style.minimal":"Minimal","settings.drawio_style.sketch":"Sketch","settings.drawio_style.switch":"Switch to ","settings.clear":"Clear Settings","quota.limit.reached":"Daily limit reached","quota.limit.desc":"You have reached your daily limit of {limit} requests.","quota.limit.tip":"Tip: You can use your own API key (click the Settings icon) or self-host the project to bypass these limits.","quota.limit.reset":"Your limit resets tomorrow. Thanks for understanding!","quota.sponsor":"Sponsor","quota.learn_more":"Learn more ->","reset.title":"Clear Everything?","reset.desc":"This will clear the current conversation and reset the diagram. This action cannot be undone.","reset.confirm":"Clear Everything","reset.cancel":"Cancel","save.title":"Save Diagram","save.desc":"Choose a format to save your diagram.","save.format":"Format","save.filename":"Filename","save.filename.placeholder":"diagram","save.download":"Download","example.aws.title":"AWS Architecture","example.aws.desc":"Create a cloud architecture diagram with AWS icons","example.flowchart.title":"Replicate Flowchart","example.flowchart.desc":"Upload and replicate an existing flowchart","example.creative.title":"Creative Drawing","example.creative.desc":"Draw something fun and creative","example.cached":"Examples are cached for instant response","example.new":"NEW","examples.title":"Quick Examples","examples.paper.title":"Paper to Diagram","examples.paper.desc":"Upload .pdf, .txt, .md, .json, .csv, .py, .js, .ts and more","examples.animated.title":"Animated Diagram","examples.animated.desc":"Draw a transformer architecture with animated connectors","tooltip.history":"Diagram history","tooltip.save":"Save diagram","tooltip.deep_thinking":"Deep Think","history.title":"Diagram History","history.empty":"No history available yet. Send messages to create diagram history.","history.version":"Version","history.restore":"Restore to Version","history.confirm":"Confirm","history.cancel":"Cancel","history.close":"Close","global_constraints.title":"Global Constraints","global_constraints.description":"Enter instructions that will be applied to every AI response.","global_constraints.placeholder":"e.g., Always use blue for decision nodes...","tooltip.global_constraints":"Global Constraints","common.error":"Error","common.loading":"Loading...","common.save":"Save","common.saved":"Saved successfully","common.regenerate_error":"Failed to regenerate: missing history state","common.busy":"System is busy, please wait..."},lve={en:sve,zh:{"app.title":"流程图助手","welcome.title":"用 AI 创建流程图","welcome.desc":"描述你想创建的内容,或上传图片进行复刻","app.about":"关于","chat.panel.show":"展开交互区 (Ctrl+B)","chat.panel.hide":"收起交互区 (Ctrl+B)","chat.panel.title":"流程图交互区","chat.settings":"设置","chat.vertical.title":"AI 对话","input.placeholder":"描述你的流程图需求,或上传文件...","input.clear":"清空对话","input.upload":"上传文件(图片、PDF、文本)","input.upload_image":"上传图片","input.upload_file":"上传文件","input.upload_file_types":"上传文件(.pdf、.docx、.txt)","input.send":"发送消息","input.stop":"停止生成","input.history":"历史记录","input.history.toggle":"切换历史记录","input.deep_thinking":"深度思考","message.sending":"正在发送消息...","message.parsing_files":"正在解析文件...","message.thinking":"AI 正在思考并生成结果...","message.copy":"复制消息","message.copied":"已复制","message.copy.failed":"复制失败","message.regenerate":"重新生成","message.edit":"编辑消息","message.good":"回答有帮助","message.bad":"回答不理想","message.edit.cancel":"取消","message.edit.save":"保存并提交","settings.title":"设置","settings.language":"语言","settings.theme":"主题","settings.provider":"AI 服务商","settings.model":"模型 ID","settings.image_model":"绘图模型","settings.api_key":"API Key","settings.base_url":"Base URL(可选)","settings.access_code":"访问码(可选)","settings.close":"关闭","settings.save":"保存","settings.general":"通用设置","settings.theme.desc":"界面和 DrawIO 画布的深色/浅色模式。","settings.close_protection":"防误关闭","settings.close_protection.desc":"离开页面时弹出确认提示。","settings.ai_config":"AI 配置","settings.ai_provider.desc":"使用你自己的 API Key 可绕过默认额度限制。密钥仅保存在浏览器本地,不会存到服务端。","settings.provider.placeholder":"选择服务商","settings.provider.default":"默认(服务端)","settings.api_key.placeholder":"sk-...","settings.api_key.desc":"留空则使用默认密钥","settings.base_url.placeholder":"https://api.openai.com/v1","settings.drawio_style":"DrawIO 风格","settings.drawio_style.desc":"画布风格:","settings.drawio_style.minimal":"简洁","settings.drawio_style.sketch":"手绘","settings.drawio_style.switch":"切换为 ","settings.clear":"清空设置","quota.limit.reached":"已达到当日额度","quota.limit.desc":"你今天已达到 {limit} 次请求上限。","quota.limit.tip":"提示:你可以使用自己的 API Key(点击设置图标)或自托管项目来绕过限制。","quota.limit.reset":"额度将在明天重置,感谢理解!","quota.sponsor":"赞助","quota.learn_more":"了解更多 ->","reset.title":"确认清空?","reset.desc":"这会清空当前对话并重置流程图,且无法撤销。","reset.confirm":"确认清空","reset.cancel":"取消","save.title":"保存流程图","save.desc":"选择保存格式。","save.format":"格式","save.filename":"文件名","save.filename.placeholder":"diagram","save.download":"下载","example.aws.title":"AWS 架构图","example.aws.desc":"用 AWS 图标生成云架构图","example.flowchart.title":"复刻流程图","example.flowchart.desc":"上传并复刻已有流程图","example.creative.title":"创意绘图","example.creative.desc":"生成有趣的创意图形","example.cached":"示例已缓存,可快速响应","example.new":"新","examples.title":"快速示例","examples.paper.title":"论文转流程图","examples.paper.desc":"支持上传 .pdf、.txt、.md、.json、.csv、.py、.js、.ts 等文件","examples.animated.title":"动画流程图","examples.animated.desc":"绘制带动画连线的 Transformer 架构图","tooltip.history":"流程图历史","tooltip.save":"保存流程图","tooltip.deep_thinking":"深度思考","history.title":"流程图历史记录","history.empty":"暂无历史记录,发送消息后会生成历史版本。","history.version":"版本","history.restore":"恢复到版本","history.confirm":"确认","history.cancel":"取消","history.close":"关闭","global_constraints.title":"全局约束","global_constraints.description":"填写会应用到每次 AI 回复的约束指令。","global_constraints.placeholder":"例如:决策节点统一使用蓝色...","tooltip.global_constraints":"全局约束","common.error":"错误","common.loading":"加载中...","common.save":"保存","common.saved":"保存成功","common.regenerate_error":"重新生成失败:缺少历史状态","common.busy":"系统忙碌中,请稍后..."}},iG=N.createContext(null);function cve({children:e}){const[t,n]=N.useState(()=>bs());N.useEffect(()=>{const a=()=>{n(bs())};return a(),window.addEventListener("ui-language-changed",a),()=>window.removeEventListener("ui-language-changed",a)},[]);const r=a=>{n(a),d1(a)},i=a=>lve[t][a]||a;return m.jsx(iG.Provider,{value:{language:t,setLanguage:r,t:i},children:e})}const Yf=()=>{const e=N.useContext(iG);if(!e)throw new Error("useLanguage must be used within a LanguageProvider");return e},g_="next-ai-draw-io-global-constraints";function uve({open:e,onOpenChange:t}){const{t:n}=Yf(),[r,i]=N.useState("");N.useEffect(()=>{if(e){const o=localStorage.getItem(g_)||"";i(o)}},[e]);const a=()=>{localStorage.setItem(g_,r),Ln.success(n("common.saved"),{position:"top-center",duration:2e3}),t(!1)};return m.jsx(BN,{open:e,onOpenChange:t,children:m.jsxs(zN,{className:"sm:max-w-[500px]",children:[m.jsxs(WN,{children:[m.jsx(GN,{children:n("global_constraints.title")}),m.jsx(nG,{children:n("global_constraints.description")})]}),m.jsx("div",{className:"grid gap-4 py-4",children:m.jsx(rG,{value:r,onChange:o=>i(o.target.value),placeholder:n("global_constraints.placeholder"),className:"min-h-[200px]"})}),m.jsx(VN,{children:m.jsx(Rf,{onClick:a,children:n("common.save")})})]})})}function O1({fill:e,style:t,...n}){return e?m.jsx("img",{...n,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:n.objectFit||"cover",...t}}):m.jsx("img",{...n,style:t})}const aG=N.createContext(void 0);function dve({children:e}){const[t,n]=N.useState(""),[r,i]=N.useState(""),[a,o]=N.useState([]),[s,l]=N.useState(!1),c=N.useRef(!1),u=N.useRef(""),d=N.useRef(null),h=N.useRef(null),f=N.useRef(!1),g=R=>{const z=String(R||"").trim();if(!z)return!0;try{const B=new DOMParser().parseFromString(z,"text/xml");return B.querySelector("parsererror")?!1:Array.from(B.querySelectorAll("mxCell")).filter(Z=>{const Q=String(Z.getAttribute("id")||"");return!(Q==="0"||Q==="1")}).length===0}catch{return!1}},y=(R,z)=>{const B=String(R||"").trim();if(!B||g(B))return;const W=typeof z=="string"?z:u.current||r;o(P=>{const Z=P[P.length-1];return Z&&Z.xml===B?P:[...P,{xml:B,svg:W||""}]})},v=()=>{c.current||(c.current=!0,l(!0))},A=()=>{c.current=!1,l(!1)},w=N.useRef({resolver:null,format:null}),S=()=>d.current?(f.current=!0,d.current.exportDiagram({format:"xmlsvg"}),!0):!1,_=()=>d.current?(d.current.exportDiagram({format:"xmlsvg"}),!0):!1,E=(R,z)=>{if(!z){const B=v1(R);if(B)return console.warn("[loadDiagram] Validation error:",B),B}return n(R),d.current&&d.current.load({xml:R}),null},T=R=>{if(w.current.resolver){const B=w.current.format;if(w.current.resolver(R.data),w.current={resolver:null,format:null},B==="png"||B==="svg")return}const z=FI(R.data);n(z),i(R.data),u.current=String(R.data||""),f.current&&(y(z,R.data),f.current=!1),h.current&&(h.current(z),h.current=null)},D=()=>{E('<mxfile><diagram name="Page-1" id="page-1"><mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel></diagram></mxfile>',!0),i(""),u.current="",o([])},I=(R,z,B)=>{if(!d.current){console.warn("Draw.io editor not ready");return}const W=z==="drawio"?"xmlsvg":z;w.current={resolver:P=>{let Z,Q,X;if(z==="drawio"){const J=FI(P);let ee=J;J.includes("<mxfile")||(ee=`<mxfile><diagram name="Page-1" id="page-1">${J}</diagram></mxfile>`),Z=ee,Q="application/xml",X=".drawio",localStorage.setItem(Wm,ee)}else z==="png"?(Z=P,Q="image/png",X=".png"):(Z=P,Q="image/svg+xml",X=".svg");j(R,z,B);let q;if(typeof Z=="string"&&Z.startsWith("data:"))q=Z;else{const J=new Blob([Z],{type:Q});q=URL.createObjectURL(J)}const te=document.createElement("a");te.href=q,te.download=`${R}${X}`,document.body.appendChild(te),te.click(),document.body.removeChild(te),q.startsWith("data:")||setTimeout(()=>URL.revokeObjectURL(q),100)},format:z},d.current.exportDiagram({format:W})},j=async(R,z,B)=>{try{await fetch("/api/log-save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filename:R,format:z,sessionId:B})})}catch(W){console.warn("Failed to log save to Langfuse:",W)}};return m.jsx(aG.Provider,{value:{chartXML:t,latestSvg:r,diagramHistory:a,pushHistorySnapshot:y,loadDiagram:E,handleExport:S,handleExportWithoutHistory:_,resolverRef:h,drawioRef:d,handleDiagramExport:T,clearDiagram:D,saveDiagramToFile:I,isDrawioReady:s,onDrawioLoad:v,resetDrawioReady:A},children:e})}function Ay(){const e=N.useContext(aG);if(e===void 0)throw new Error("useDiagram must be used within a DiagramProvider");return e}function fve({showHistory:e,onToggleHistory:t}){const{diagramHistory:n,loadDiagram:r}=Ay(),{t:i}=Yf(),[a,o]=N.useState(null),s=()=>{o(null),t(!1)},l=()=>{a!==null&&(r(n[a].xml,!0),s())};return m.jsx(BN,{open:e,onOpenChange:t,children:m.jsxs(zN,{className:"max-w-3xl max-h-[80vh] overflow-y-auto",children:[m.jsx(WN,{children:m.jsx(GN,{children:i("history.title")})}),n.length===0?m.jsx("div",{className:"text-center p-4 text-gray-500",children:i("history.empty")}):m.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4 py-4",children:n.map((c,u)=>m.jsxs("div",{className:`border rounded-md p-2 cursor-pointer hover:border-primary transition-colors ${a===u?"border-primary ring-2 ring-primary":""}`,onClick:()=>o(u),children:[m.jsx("div",{className:"aspect-video bg-white rounded overflow-hidden flex items-center justify-center",children:m.jsx(O1,{src:c.svg,alt:`Diagram version ${u+1}`,width:200,height:100,className:"object-contain w-full h-full p-1"})}),m.jsxs("div",{className:"text-xs text-center mt-1 text-gray-500",children:[i("history.version")," ",u+1]})]},u))}),m.jsx(VN,{children:a!==null?m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex-1 text-sm text-muted-foreground",children:[i("history.restore")," ",a+1,"?"]}),m.jsx(Rf,{variant:"outline",onClick:()=>o(null),children:i("history.cancel")}),m.jsx(Rf,{onClick:l,children:i("history.confirm")})]}):m.jsx(Rf,{variant:"outline",onClick:s,children:i("history.close")})})]})})}function hve({open:e,onOpenChange:t,onClear:n}){const{t:r}=Yf();return m.jsx(BN,{open:e,onOpenChange:t,children:m.jsxs(zN,{children:[m.jsxs(WN,{children:[m.jsx(GN,{children:r("reset.title")}),m.jsx(nG,{children:r("reset.desc")})]}),m.jsxs(VN,{children:[m.jsx(Rf,{variant:"outline",onClick:()=>t(!1),children:r("reset.cancel")}),m.jsx(Rf,{variant:"destructive",onClick:n,children:r("reset.confirm")})]})]})})}const pve="modulepreload",gve=function(e){return"/"+e},G4={},Kc=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let o=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=o(n.map(c=>{if(c=gve(c),c in G4)return;G4[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":pve,u||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((f,g)=>{h.addEventListener("load",f),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};let j1;var gB,mB;(mB=(gB=globalThis.process)==null?void 0:gB.release)==null||mB.name;async function Dg(e,t={}){const{getDocument:n}=await mve();return await n({data:e,isEvalSupported:!1,useSystemFonts:!0,...t}).promise}async function mve(){return j1||await oG(),j1}async function oG(e,{reload:t=!1}={}){if(!(j1&&!t))try{j1=await Kc(()=>import("./pdfjs-93kVDNh8.js"),[])}catch(n){throw new Error(`Serverless PDF.js bundle could not be resolved: ${n}`)}}function yve(e){return typeof e=="object"&&e!==null&&"_pdfInfo"in e}async function vve(e,t={}){const{mergePages:n=!1}=t,r=yve(e)?e:await Dg(e),i=await Promise.all(Array.from({length:r.numPages},(a,o)=>xve(r,o+1)));return{totalPages:r.numPages,text:n?i.join(`-`).replace(/\s+/g," "):i}}async function xve(e,t){return(await(await e.getPage(t)).getTextContent()).items.filter(i=>i.str!=null).map(i=>i.str+(i.hasEOL?`-`:"")).join("")}const sG=async(...e)=>(await oG(),await vve(...e));var Is={},qN="1.13.7",q4=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},nw=Array.prototype,HN=Object.prototype,H4=typeof Symbol<"u"?Symbol.prototype:null,bve=nw.push,wy=nw.slice,z0=HN.toString,Ave=HN.hasOwnProperty,lG=typeof ArrayBuffer<"u",wve=typeof DataView<"u",Sve=Array.isArray,X4=Object.keys,Z4=Object.create,K4=lG&&ArrayBuffer.isView,kve=isNaN,Dve=isFinite,cG=!{toString:null}.propertyIsEnumerable("toString"),$4=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Cve=Math.pow(2,53)-1;function Co(e,t){return t=t==null?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var a=Array(t+1);for(i=0;i<t;i++)a[i]=arguments[i];return a[t]=r,e.apply(this,a)}}function vd(e){var t=typeof e;return t==="function"||t==="object"&&!!e}function uG(e){return e===null}function XN(e){return e===void 0}function ZN(e){return e===!0||e===!1||z0.call(e)==="[object Boolean]"}function dG(e){return!!(e&&e.nodeType===1)}function uo(e){var t="[object "+e+"]";return function(n){return z0.call(n)===t}}const rw=uo("String"),KN=uo("Number"),fG=uo("Date"),hG=uo("RegExp"),pG=uo("Error"),$N=uo("Symbol"),YN=uo("ArrayBuffer");var gG=uo("Function"),Tve=q4.document&&q4.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof Tve!="function"&&(gG=function(e){return typeof e=="function"||!1});const lo=gG,mG=uo("Object");var yG=wve&&(!/\[native code\]/.test(String(DataView))||mG(new DataView(new ArrayBuffer(8)))),JN=typeof Map<"u"&&mG(new Map),_ve=uo("DataView");function Eve(e){return e!=null&&lo(e.getInt8)&&YN(e.buffer)}const W0=yG?Eve:_ve,xd=Sve||uo("Array");function bd(e,t){return e!=null&&Ave.call(e,t)}var m_=uo("Arguments");(function(){m_(arguments)||(m_=function(e){return bd(e,"callee")})})();const iw=m_;function vG(e){return!$N(e)&&Dve(e)&&!isNaN(parseFloat(e))}function QN(e){return KN(e)&&kve(e)}function e3(e){return function(){return e}}function xG(e){return function(t){var n=e(t);return typeof n=="number"&&n>=0&&n<=Cve}}function bG(e){return function(t){return t==null?void 0:t[e]}}const B1=bG("byteLength"),Nve=xG(B1);var Fve=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function Rve(e){return K4?K4(e)&&!W0(e):Nve(e)&&Fve.test(z0.call(e))}const t3=lG?Rve:e3(!1),Ho=bG("length");function Pve(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(i){return t[i]===!0},push:function(i){return t[i]=!0,e.push(i)}}}function AG(e,t){t=Pve(t);var n=$4.length,r=e.constructor,i=lo(r)&&r.prototype||HN,a="constructor";for(bd(e,a)&&!t.contains(a)&&t.push(a);n--;)a=$4[n],a in e&&e[a]!==i[a]&&!t.contains(a)&&t.push(a)}function Fa(e){if(!vd(e))return[];if(X4)return X4(e);var t=[];for(var n in e)bd(e,n)&&t.push(n);return cG&&AG(e,t),t}function wG(e){if(e==null)return!0;var t=Ho(e);return typeof t=="number"&&(xd(e)||rw(e)||iw(e))?t===0:Ho(Fa(e))===0}function n3(e,t){var n=Fa(t),r=n.length;if(e==null)return!r;for(var i=Object(e),a=0;a<r;a++){var o=n[a];if(t[o]!==i[o]||!(o in i))return!1}return!0}function mi(e){if(e instanceof mi)return e;if(!(this instanceof mi))return new mi(e);this._wrapped=e}mi.VERSION=qN;mi.prototype.value=function(){return this._wrapped};mi.prototype.valueOf=mi.prototype.toJSON=mi.prototype.value;mi.prototype.toString=function(){return String(this._wrapped)};function Y4(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,B1(e))}var J4="[object DataView]";function y_(e,t,n,r){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var i=typeof e;return i!=="function"&&i!=="object"&&typeof t!="object"?!1:SG(e,t,n,r)}function SG(e,t,n,r){e instanceof mi&&(e=e._wrapped),t instanceof mi&&(t=t._wrapped);var i=z0.call(e);if(i!==z0.call(t))return!1;if(yG&&i=="[object Object]"&&W0(e)){if(!W0(t))return!1;i=J4}switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return H4.valueOf.call(e)===H4.valueOf.call(t);case"[object ArrayBuffer]":case J4:return SG(Y4(e),Y4(t),n,r)}var a=i==="[object Array]";if(!a&&t3(e)){var o=B1(e);if(o!==B1(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;a=!0}if(!a){if(typeof e!="object"||typeof t!="object")return!1;var s=e.constructor,l=t.constructor;if(s!==l&&!(lo(s)&&s instanceof s&&lo(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],r=r||[];for(var c=n.length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),a){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!y_(e[c],t[c],n,r))return!1}else{var u=Fa(e),d;if(c=u.length,Fa(t).length!==c)return!1;for(;c--;)if(d=u[c],!(bd(t,d)&&y_(e[d],t[d],n,r)))return!1}return n.pop(),r.pop(),!0}function kG(e,t){return y_(e,t)}function Cg(e){if(!vd(e))return[];var t=[];for(var n in e)t.push(n);return cG&&AG(e,t),t}function r3(e){var t=Ho(e);return function(n){if(n==null)return!1;var r=Cg(n);if(Ho(r))return!1;for(var i=0;i<t;i++)if(!lo(n[e[i]]))return!1;return e!==TG||!lo(n[i3])}}var i3="forEach",DG="has",a3=["clear","delete"],CG=["get",DG,"set"],Ive=a3.concat(i3,CG),TG=a3.concat(CG),Mve=["add"].concat(a3,i3,DG);const _G=JN?r3(Ive):uo("Map"),EG=JN?r3(TG):uo("WeakMap"),NG=JN?r3(Mve):uo("Set"),FG=uo("WeakSet");function Jf(e){for(var t=Fa(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function RG(e){for(var t=Fa(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function o3(e){for(var t={},n=Fa(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function V0(e){var t=[];for(var n in e)lo(e[n])&&t.push(n);return t.sort()}function s3(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||n==null)return n;for(var i=1;i<r;i++)for(var a=arguments[i],o=e(a),s=o.length,l=0;l<s;l++){var c=o[l];(!t||n[c]===void 0)&&(n[c]=a[c])}return n}}const l3=s3(Cg),tg=s3(Fa),c3=s3(Cg,!0);function Uve(){return function(){}}function PG(e){if(!vd(e))return{};if(Z4)return Z4(e);var t=Uve();t.prototype=e;var n=new t;return t.prototype=null,n}function IG(e,t){var n=PG(e);return t&&tg(n,t),n}function MG(e){return vd(e)?xd(e)?e.slice():l3({},e):e}function UG(e,t){return t(e),e}function u3(e){return xd(e)?e:[e]}mi.toPath=u3;function Sy(e){return mi.toPath(e)}function d3(e,t){for(var n=t.length,r=0;r<n;r++){if(e==null)return;e=e[t[r]]}return n?e:void 0}function f3(e,t,n){var r=d3(e,Sy(t));return XN(r)?n:r}function LG(e,t){t=Sy(t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(!bd(e,i))return!1;e=e[i]}return!!n}function aw(e){return e}function zf(e){return e=tg({},e),function(t){return n3(t,e)}}function ow(e){return e=Sy(e),function(t){return d3(t,e)}}function ky(e,t,n){if(t===void 0)return e;switch(n??3){case 1:return function(r){return e.call(t,r)};case 3:return function(r,i,a){return e.call(t,r,i,a)};case 4:return function(r,i,a,o){return e.call(t,r,i,a,o)}}return function(){return e.apply(t,arguments)}}function OG(e,t,n){return e==null?aw:lo(e)?ky(e,t,n):vd(e)&&!xd(e)?zf(e):ow(e)}function sw(e,t){return OG(e,t,1/0)}mi.iteratee=sw;function Zo(e,t,n){return mi.iteratee!==sw?mi.iteratee(e,t):OG(e,t,n)}function jG(e,t,n){t=Zo(t,n);for(var r=Fa(e),i=r.length,a={},o=0;o<i;o++){var s=r[o];a[s]=t(e[s],s,e)}return a}function h3(){}function BG(e){return e==null?h3:function(t){return f3(e,t)}}function zG(e,t,n){var r=Array(Math.max(0,e));t=ky(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function z1(e,t){return t==null&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}const ng=Date.now||function(){return new Date().getTime()};function WG(e){var t=function(a){return e[a]},n="(?:"+Fa(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(a){return a=a==null?"":""+a,r.test(a)?a.replace(i,t):a}}const VG={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},GG=WG(VG),Lve=o3(VG),qG=WG(Lve),HG=mi.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Rk=/(.)^/,Ove={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},jve=/\\|'|\r|\n|\u2028|\u2029/g;function Bve(e){return"\\"+Ove[e]}var zve=/^\s*(\w|\$)+\s*$/;function XG(e,t,n){!t&&n&&(t=n),t=c3({},t,mi.templateSettings);var r=RegExp([(t.escape||Rk).source,(t.interpolate||Rk).source,(t.evaluate||Rk).source].join("|")+"|$","g"),i=0,a="__p+='";e.replace(r,function(c,u,d,h,f){return a+=e.slice(i,f).replace(jve,Bve),i=f+c.length,u?a+=`'+-((__t=(`+u+`))==null?'':_.escape(__t))+-'`:d?a+=`'+-((__t=(`+d+`))==null?'':__t)+-'`:h&&(a+=`';-`+h+`-__p+='`),c}),a+=`';-`;var o=t.variable;if(o){if(!zve.test(o))throw new Error("variable is not a bare identifier: "+o)}else a=`with(obj||{}){-`+a+`}-`,o="obj";a=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};-`+a+`return __p;-`;var s;try{s=new Function(o,"_",a)}catch(c){throw c.source=a,c}var l=function(c){return s.call(this,c,mi)};return l.source="function("+o+`){-`+a+"}",l}function ZG(e,t,n){t=Sy(t);var r=t.length;if(!r)return lo(n)?n.call(e):n;for(var i=0;i<r;i++){var a=e==null?void 0:e[t[i]];a===void 0&&(a=n,i=r),e=lo(a)?a.call(e):a}return e}var Wve=0;function KG(e){var t=++Wve+"";return e?e+t:t}function $G(e){var t=mi(e);return t._chain=!0,t}function YG(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var a=PG(e.prototype),o=e.apply(a,i);return vd(o)?o:a}var Qf=Co(function(e,t){var n=Qf.placeholder,r=function(){for(var i=0,a=t.length,o=Array(a),s=0;s<a;s++)o[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)o.push(arguments[i++]);return YG(e,r,this,this,o)};return r});Qf.placeholder=mi;const p3=Co(function(e,t,n){if(!lo(e))throw new TypeError("Bind must be called on a function");var r=Co(function(i){return YG(e,r,t,this,n.concat(i))});return r}),Ss=xG(Ho);function eh(e,t,n,r){if(r=r||[],!t&&t!==0)t=1/0;else if(t<=0)return r.concat(e);for(var i=r.length,a=0,o=Ho(e);a<o;a++){var s=e[a];if(Ss(s)&&(xd(s)||iw(s)))if(t>1)eh(s,t-1,n,r),i=r.length;else for(var l=0,c=s.length;l<c;)r[i++]=s[l++];else n||(r[i++]=s)}return r}const JG=Co(function(e,t){t=eh(t,!1,!1);var n=t.length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=p3(e[r],e)}return e});function QG(e,t){var n=function(r){var i=n.cache,a=""+(t?t.apply(this,arguments):r);return bd(i,a)||(i[a]=e.apply(this,arguments)),i[a]};return n.cache={},n}const g3=Co(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),eq=Qf(g3,mi,1);function tq(e,t,n){var r,i,a,o,s=0;n||(n={});var l=function(){s=n.leading===!1?0:ng(),r=null,o=e.apply(i,a),r||(i=a=null)},c=function(){var u=ng();!s&&n.leading===!1&&(s=u);var d=t-(u-s);return i=this,a=arguments,d<=0||d>t?(r&&(clearTimeout(r),r=null),s=u,o=e.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=setTimeout(l,d)),o};return c.cancel=function(){clearTimeout(r),s=0,r=i=a=null},c}function nq(e,t,n){var r,i,a,o,s,l=function(){var u=ng()-i;t>u?r=setTimeout(l,t-u):(r=null,n||(o=e.apply(s,a)),r||(a=s=null))},c=Co(function(u){return s=this,a=u,i=ng(),r||(r=setTimeout(l,t),n&&(o=e.apply(s,a))),o});return c.cancel=function(){clearTimeout(r),r=a=s=null},c}function rq(e,t){return Qf(t,e)}function lw(e){return function(){return!e.apply(this,arguments)}}function iq(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function aq(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function m3(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const oq=Qf(m3,2);function y3(e,t,n){t=Zo(t,n);for(var r=Fa(e),i,a=0,o=r.length;a<o;a++)if(i=r[a],t(e[i],i,e))return i}function sq(e){return function(t,n,r){n=Zo(n,r);for(var i=Ho(t),a=e>0?0:i-1;a>=0&&a<i;a+=e)if(n(t[a],a,t))return a;return-1}}const cw=sq(1),v3=sq(-1);function x3(e,t,n,r){n=Zo(n,r,1);for(var i=n(t),a=0,o=Ho(e);a<o;){var s=Math.floor((a+o)/2);n(e[s])<i?a=s+1:o=s}return a}function lq(e,t,n){return function(r,i,a){var o=0,s=Ho(r);if(typeof a=="number")e>0?o=a>=0?a:Math.max(a+s,o):s=a>=0?Math.min(a+1,s):a+s+1;else if(n&&a&&s)return a=n(r,i),r[a]===i?a:-1;if(i!==i)return a=t(wy.call(r,o,s),QN),a>=0?a+o:-1;for(a=e>0?o:s-1;a>=0&&a<s;a+=e)if(r[a]===i)return a;return-1}}const b3=lq(1,cw,x3),cq=lq(-1,v3);function G0(e,t,n){var r=Ss(e)?cw:y3,i=r(e,t,n);if(i!==void 0&&i!==-1)return e[i]}function uq(e,t){return G0(e,zf(t))}function jl(e,t,n){t=ky(t,n);var r,i;if(Ss(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var a=Fa(e);for(r=0,i=a.length;r<i;r++)t(e[a[r]],a[r],e)}return e}function $c(e,t,n){t=Zo(t,n);for(var r=!Ss(e)&&Fa(e),i=(r||e).length,a=Array(i),o=0;o<i;o++){var s=r?r[o]:o;a[o]=t(e[s],s,e)}return a}function dq(e){var t=function(n,r,i,a){var o=!Ss(n)&&Fa(n),s=(o||n).length,l=e>0?0:s-1;for(a||(i=n[o?o[l]:l],l+=e);l>=0&&l<s;l+=e){var c=o?o[l]:l;i=r(i,n[c],c,n)}return i};return function(n,r,i,a){var o=arguments.length>=3;return t(n,ky(r,a,4),i,o)}}const zp=dq(1),W1=dq(-1);function rd(e,t,n){var r=[];return t=Zo(t,n),jl(e,function(i,a,o){t(i,a,o)&&r.push(i)}),r}function fq(e,t,n){return rd(e,lw(Zo(t)),n)}function V1(e,t,n){t=Zo(t,n);for(var r=!Ss(e)&&Fa(e),i=(r||e).length,a=0;a<i;a++){var o=r?r[a]:a;if(!t(e[o],o,e))return!1}return!0}function G1(e,t,n){t=Zo(t,n);for(var r=!Ss(e)&&Fa(e),i=(r||e).length,a=0;a<i;a++){var o=r?r[a]:a;if(t(e[o],o,e))return!0}return!1}function Js(e,t,n,r){return Ss(e)||(e=Jf(e)),(typeof n!="number"||r)&&(n=0),b3(e,t,n)>=0}const hq=Co(function(e,t,n){var r,i;return lo(t)?i=t:(t=Sy(t),r=t.slice(0,-1),t=t[t.length-1]),$c(e,function(a){var o=i;if(!o){if(r&&r.length&&(a=d3(a,r)),a==null)return;o=a[t]}return o==null?o:o.apply(a,n)})});function uw(e,t){return $c(e,ow(t))}function pq(e,t){return rd(e,zf(t))}function A3(e,t,n){var r=-1/0,i=-1/0,a,o;if(t==null||typeof t=="number"&&typeof e[0]!="object"&&e!=null){e=Ss(e)?e:Jf(e);for(var s=0,l=e.length;s<l;s++)a=e[s],a!=null&&a>r&&(r=a)}else t=Zo(t,n),jl(e,function(c,u,d){o=t(c,u,d),(o>i||o===-1/0&&r===-1/0)&&(r=c,i=o)});return r}function gq(e,t,n){var r=1/0,i=1/0,a,o;if(t==null||typeof t=="number"&&typeof e[0]!="object"&&e!=null){e=Ss(e)?e:Jf(e);for(var s=0,l=e.length;s<l;s++)a=e[s],a!=null&&a<r&&(r=a)}else t=Zo(t,n),jl(e,function(c,u,d){o=t(c,u,d),(o<i||o===1/0&&r===1/0)&&(r=c,i=o)});return r}var Vve=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function w3(e){return e?xd(e)?wy.call(e):rw(e)?e.match(Vve):Ss(e)?$c(e,aw):Jf(e):[]}function S3(e,t,n){if(t==null||n)return Ss(e)||(e=Jf(e)),e[z1(e.length-1)];var r=w3(e),i=Ho(r);t=Math.max(Math.min(t,i),0);for(var a=i-1,o=0;o<t;o++){var s=z1(o,a),l=r[o];r[o]=r[s],r[s]=l}return r.slice(0,t)}function mq(e){return S3(e,1/0)}function yq(e,t,n){var r=0;return t=Zo(t,n),uw($c(e,function(i,a,o){return{value:i,index:r++,criteria:t(i,a,o)}}).sort(function(i,a){var o=i.criteria,s=a.criteria;if(o!==s){if(o>s||o===void 0)return 1;if(o<s||s===void 0)return-1}return i.index-a.index}),"value")}function dw(e,t){return function(n,r,i){var a=t?[[],[]]:{};return r=Zo(r,i),jl(n,function(o,s){var l=r(o,s,n);e(a,o,l)}),a}}const vq=dw(function(e,t,n){bd(e,n)?e[n].push(t):e[n]=[t]}),xq=dw(function(e,t,n){e[n]=t}),bq=dw(function(e,t,n){bd(e,n)?e[n]++:e[n]=1}),Aq=dw(function(e,t,n){e[n?0:1].push(t)},!0);function wq(e){return e==null?0:Ss(e)?e.length:Fa(e).length}function Gve(e,t,n){return t in n}const k3=Co(function(e,t){var n={},r=t[0];if(e==null)return n;lo(r)?(t.length>1&&(r=ky(r,t[1])),t=Cg(e)):(r=Gve,t=eh(t,!1,!1),e=Object(e));for(var i=0,a=t.length;i<a;i++){var o=t[i],s=e[o];r(s,o,e)&&(n[o]=s)}return n}),Sq=Co(function(e,t){var n=t[0],r;return lo(n)?(n=lw(n),t.length>1&&(r=t[1])):(t=$c(eh(t,!1,!1),String),n=function(i,a){return!Js(t,a)}),k3(e,n,r)});function D3(e,t,n){return wy.call(e,0,Math.max(0,e.length-(t==null||n?1:t)))}function Wp(e,t,n){return e==null||e.length<1?t==null||n?void 0:[]:t==null||n?e[0]:D3(e,e.length-t)}function Pf(e,t,n){return wy.call(e,t==null||n?1:t)}function kq(e,t,n){return e==null||e.length<1?t==null||n?void 0:[]:t==null||n?e[e.length-1]:Pf(e,Math.max(0,e.length-t))}function Dq(e){return rd(e,Boolean)}function Cq(e,t){return eh(e,t,!1)}const C3=Co(function(e,t){return t=eh(t,!0,!0),rd(e,function(n){return!Js(t,n)})}),Tq=Co(function(e,t){return C3(e,t)});function q0(e,t,n,r){ZN(t)||(r=n,n=t,t=!1),n!=null&&(n=Zo(n,r));for(var i=[],a=[],o=0,s=Ho(e);o<s;o++){var l=e[o],c=n?n(l,o,e):l;t&&!n?((!o||a!==c)&&i.push(l),a=c):n?Js(a,c)||(a.push(c),i.push(l)):Js(i,l)||i.push(l)}return i}const _q=Co(function(e){return q0(eh(e,!0,!0))});function Eq(e){for(var t=[],n=arguments.length,r=0,i=Ho(e);r<i;r++){var a=e[r];if(!Js(t,a)){var o;for(o=1;o<n&&Js(arguments[o],a);o++);o===n&&t.push(a)}}return t}function H0(e){for(var t=e&&A3(e,Ho).length||0,n=Array(t),r=0;r<t;r++)n[r]=uw(e,r);return n}const Nq=Co(H0);function Fq(e,t){for(var n={},r=0,i=Ho(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Rq(e,t,n){t==null&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),a=0;a<r;a++,e+=n)i[a]=e;return i}function Pq(e,t){if(t==null||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(wy.call(e,r,r+=t));return n}function T3(e,t){return e._chain?mi(t).chain():t}function _3(e){return jl(V0(e),function(t){var n=mi[t]=e[t];mi.prototype[t]=function(){var r=[this._wrapped];return bve.apply(r,arguments),T3(this,n.apply(mi,r))}}),mi}jl(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=nw[e];mi.prototype[e]=function(){var n=this._wrapped;return n!=null&&(t.apply(n,arguments),(e==="shift"||e==="splice")&&n.length===0&&delete n[0]),T3(this,n)}});jl(["concat","join","slice"],function(e){var t=nw[e];mi.prototype[e]=function(){var n=this._wrapped;return n!=null&&(n=t.apply(n,arguments)),T3(this,n)}});const qve=Object.freeze(Object.defineProperty({__proto__:null,VERSION:qN,after:aq,all:V1,allKeys:Cg,any:G1,assign:tg,before:m3,bind:p3,bindAll:JG,chain:$G,chunk:Pq,clone:MG,collect:$c,compact:Dq,compose:iq,constant:e3,contains:Js,countBy:bq,create:IG,debounce:nq,default:mi,defaults:c3,defer:eq,delay:g3,detect:G0,difference:C3,drop:Pf,each:jl,escape:GG,every:V1,extend:l3,extendOwn:tg,filter:rd,find:G0,findIndex:cw,findKey:y3,findLastIndex:v3,findWhere:uq,first:Wp,flatten:Cq,foldl:zp,foldr:W1,forEach:jl,functions:V0,get:f3,groupBy:vq,has:LG,head:Wp,identity:aw,include:Js,includes:Js,indexBy:xq,indexOf:b3,initial:D3,inject:zp,intersection:Eq,invert:o3,invoke:hq,isArguments:iw,isArray:xd,isArrayBuffer:YN,isBoolean:ZN,isDataView:W0,isDate:fG,isElement:dG,isEmpty:wG,isEqual:kG,isError:pG,isFinite:vG,isFunction:lo,isMap:_G,isMatch:n3,isNaN:QN,isNull:uG,isNumber:KN,isObject:vd,isRegExp:hG,isSet:NG,isString:rw,isSymbol:$N,isTypedArray:t3,isUndefined:XN,isWeakMap:EG,isWeakSet:FG,iteratee:sw,keys:Fa,last:kq,lastIndexOf:cq,map:$c,mapObject:jG,matcher:zf,matches:zf,max:A3,memoize:QG,methods:V0,min:gq,mixin:_3,negate:lw,noop:h3,now:ng,object:Fq,omit:Sq,once:oq,pairs:RG,partial:Qf,partition:Aq,pick:k3,pluck:uw,property:ow,propertyOf:BG,random:z1,range:Rq,reduce:zp,reduceRight:W1,reject:fq,rest:Pf,restArguments:Co,result:ZG,sample:S3,select:rd,shuffle:mq,size:wq,some:G1,sortBy:yq,sortedIndex:x3,tail:Pf,take:Wp,tap:UG,template:XG,templateSettings:HG,throttle:tq,times:zG,toArray:w3,toPath:u3,transpose:H0,unescape:qG,union:_q,uniq:q0,unique:q0,uniqueId:KG,unzip:H0,values:Jf,where:pq,without:Tq,wrap:rq,zip:Nq},Symbol.toStringTag,{value:"Module"}));var v_=_3(qve);v_._=v_;const Hve=Object.freeze(Object.defineProperty({__proto__:null,VERSION:qN,after:aq,all:V1,allKeys:Cg,any:G1,assign:tg,before:m3,bind:p3,bindAll:JG,chain:$G,chunk:Pq,clone:MG,collect:$c,compact:Dq,compose:iq,constant:e3,contains:Js,countBy:bq,create:IG,debounce:nq,default:v_,defaults:c3,defer:eq,delay:g3,detect:G0,difference:C3,drop:Pf,each:jl,escape:GG,every:V1,extend:l3,extendOwn:tg,filter:rd,find:G0,findIndex:cw,findKey:y3,findLastIndex:v3,findWhere:uq,first:Wp,flatten:Cq,foldl:zp,foldr:W1,forEach:jl,functions:V0,get:f3,groupBy:vq,has:LG,head:Wp,identity:aw,include:Js,includes:Js,indexBy:xq,indexOf:b3,initial:D3,inject:zp,intersection:Eq,invert:o3,invoke:hq,isArguments:iw,isArray:xd,isArrayBuffer:YN,isBoolean:ZN,isDataView:W0,isDate:fG,isElement:dG,isEmpty:wG,isEqual:kG,isError:pG,isFinite:vG,isFunction:lo,isMap:_G,isMatch:n3,isNaN:QN,isNull:uG,isNumber:KN,isObject:vd,isRegExp:hG,isSet:NG,isString:rw,isSymbol:$N,isTypedArray:t3,isUndefined:XN,isWeakMap:EG,isWeakSet:FG,iteratee:sw,keys:Fa,last:kq,lastIndexOf:cq,map:$c,mapObject:jG,matcher:zf,matches:zf,max:A3,memoize:QG,methods:V0,min:gq,mixin:_3,negate:lw,noop:h3,now:ng,object:Fq,omit:Sq,once:oq,pairs:RG,partial:Qf,partition:Aq,pick:k3,pluck:uw,property:ow,propertyOf:BG,random:z1,range:Rq,reduce:zp,reduceRight:W1,reject:fq,rest:Pf,restArguments:Co,result:ZG,sample:S3,select:rd,shuffle:mq,size:wq,some:G1,sortBy:yq,sortedIndex:x3,tail:Pf,take:Wp,tap:UG,template:XG,templateSettings:HG,throttle:tq,times:zG,toArray:w3,toPath:u3,transpose:H0,unescape:qG,union:_q,uniq:q0,unique:q0,uniqueId:KG,unzip:H0,values:Jf,where:pq,without:Tq,wrap:rq,zip:Nq},Symbol.toStringTag,{value:"Module"})),ga=SJ(Hve);var yx={},Ms={},Pk={exports:{}},vx={exports:{}},Q4;function Tg(){if(Q4)return vx.exports;Q4=1;var e=(function(){return this===void 0})();if(e)vx.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:e,propertyIsWritable:function(u,d){var h=Object.getOwnPropertyDescriptor(u,d);return!!(!h||h.writable||h.set)}};else{var t={}.hasOwnProperty,n={}.toString,r={}.constructor.prototype,i=function(u){var d=[];for(var h in u)t.call(u,h)&&d.push(h);return d},a=function(u,d){return{value:u[d]}},o=function(u,d,h){return u[d]=h.value,u},s=function(u){return u},l=function(u){try{return Object(u).constructor.prototype}catch{return r}},c=function(u){try{return n.call(u)==="[object Array]"}catch{return!1}};vx.exports={isArray:c,keys:i,names:i,defineProperty:o,getDescriptor:a,freeze:s,getPrototypeOf:l,isES5:e,propertyIsWritable:function(){return!0}}}return vx.exports}var hm,eM;function Ii(){if(eM)return hm;eM=1;var e={},t=Tg(),n=typeof navigator>"u",r={e:{}},i,a=typeof self<"u"?self:typeof window<"u"?window:typeof zu<"u"?zu:hm!==void 0?hm:null;function o(){try{var G=i;return i=null,G.apply(this,arguments)}catch(xe){return r.e=xe,r}}function s(G){return i=G,o}var l=function(G,xe){var ge={}.hasOwnProperty;function ue(){this.constructor=G,this.constructor$=xe;for(var ce in xe.prototype)ge.call(xe.prototype,ce)&&ce.charAt(ce.length-1)!=="$"&&(this[ce+"$"]=xe.prototype[ce])}return ue.prototype=xe.prototype,G.prototype=new ue,G.prototype};function c(G){return G==null||G===!0||G===!1||typeof G=="string"||typeof G=="number"}function u(G){return typeof G=="function"||typeof G=="object"&&G!==null}function d(G){return c(G)?new Error(D(G)):G}function h(G,xe){var ge=G.length,ue=new Array(ge+1),ce;for(ce=0;ce<ge;++ce)ue[ce]=G[ce];return ue[ce]=xe,ue}function f(G,xe,ge){if(t.isES5){var ue=Object.getOwnPropertyDescriptor(G,xe);if(ue!=null)return ue.get==null&&ue.set==null?ue.value:ge}else return{}.hasOwnProperty.call(G,xe)?G[xe]:void 0}function g(G,xe,ge){if(c(G))return G;var ue={value:ge,configurable:!0,enumerable:!1,writable:!0};return t.defineProperty(G,xe,ue),G}function y(G){throw G}var v=(function(){var G=[Array.prototype,Object.prototype,Function.prototype],xe=function(ce){for(var ye=0;ye<G.length;++ye)if(G[ye]===ce)return!0;return!1};if(t.isES5){var ge=Object.getOwnPropertyNames;return function(ce){for(var ye=[],Fe=Object.create(null);ce!=null&&!xe(ce);){var Oe;try{Oe=ge(ce)}catch{return ye}for(var Le=0;Le<Oe.length;++Le){var Re=Oe[Le];if(!Fe[Re]){Fe[Re]=!0;var We=Object.getOwnPropertyDescriptor(ce,Re);We!=null&&We.get==null&&We.set==null&&ye.push(Re)}}ce=t.getPrototypeOf(ce)}return ye}}else{var ue={}.hasOwnProperty;return function(ce){if(xe(ce))return[];var ye=[];e:for(var Fe in ce)if(ue.call(ce,Fe))ye.push(Fe);else{for(var Oe=0;Oe<G.length;++Oe)if(ue.call(G[Oe],Fe))continue e;ye.push(Fe)}return ye}}})(),A=/this\s*\.\s*\S+\s*=/;function w(G){try{if(typeof G=="function"){var xe=t.names(G.prototype),ge=t.isES5&&xe.length>1,ue=xe.length>0&&!(xe.length===1&&xe[0]==="constructor"),ce=A.test(G+"")&&t.names(G).length>0;if(ge||ue||ce)return!0}return!1}catch{return!1}}function S(G){return G}var _=/^[a-z$_][a-z$_0-9]*$/i;function E(G){return _.test(G)}function T(G,xe,ge){for(var ue=new Array(G),ce=0;ce<G;++ce)ue[ce]=xe+ce+ge;return ue}function D(G){try{return G+""}catch{return"[no string representation]"}}function I(G){return G!==null&&typeof G=="object"&&typeof G.message=="string"&&typeof G.name=="string"}function j(G){try{g(G,"isOperational",!0)}catch{}}function R(G){return G==null?!1:G instanceof Error.__BluebirdErrorTypes__.OperationalError||G.isOperational===!0}function z(G){return I(G)&&t.propertyIsWritable(G,"stack")}var B=(function(){return"stack"in new Error?function(G){return z(G)?G:new Error(D(G))}:function(G){if(z(G))return G;try{throw new Error(D(G))}catch(xe){return xe}}})();function W(G){return{}.toString.call(G)}function P(G,xe,ge){for(var ue=t.names(G),ce=0;ce<ue.length;++ce){var ye=ue[ce];if(ge(ye))try{t.defineProperty(xe,ye,t.getDescriptor(G,ye))}catch{}}}var Z=function(G){return t.isArray(G)?G:null};if(typeof Symbol<"u"&&Symbol.iterator){var Q=typeof Array.from=="function"?function(G){return Array.from(G)}:function(G){for(var xe=[],ge=G[Symbol.iterator](),ue;!(ue=ge.next()).done;)xe.push(ue.value);return xe};Z=function(G){return t.isArray(G)?G:G!=null&&typeof G[Symbol.iterator]=="function"?Q(G):null}}var X=typeof process<"u"&&W(process).toLowerCase()==="[object process]",q=typeof process<"u"&&typeof e<"u";function te(G){return q?e[G]:void 0}function J(){if(typeof Promise=="function")try{var G=new Promise(function(){});if({}.toString.call(G)==="[object Promise]")return Promise}catch{}}function ee(G,xe){return G.bind(xe)}var le={isClass:w,isIdentifier:E,inheritedDataKeys:v,getDataPropertyOrDefault:f,thrower:y,isArray:t.isArray,asArray:Z,notEnumerableProp:g,isPrimitive:c,isObject:u,isError:I,canEvaluate:n,errorObj:r,tryCatch:s,inherits:l,withAppended:h,maybeWrapAsError:d,toFastProperties:S,filledRange:T,toString:D,canAttachTrace:z,ensureErrorObject:B,originatesFromRejection:R,markAsOriginatingFromRejection:j,classString:W,copyDescriptors:P,hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:X,hasEnvVariables:q,env:te,global:a,getNativePromise:J,domainBind:ee};le.isRecentNode=le.isNode&&(function(){var G=process.versions.node.split(".").map(Number);return G[0]===0&&G[1]>10||G[0]>0})(),le.isNode&&le.toFastProperties(process);try{throw new Error}catch(G){le.lastLineError=G}return hm=le,hm}var xx={exports:{}},Ik,tM;function Xve(){if(tM)return Ik;tM=1;var e=Ii(),t,n=function(){throw new Error(`No async scheduler available-- See http://goo.gl/MqrFmX-`)},r=e.getNativePromise();if(e.isNode&&typeof MutationObserver>"u"){var i=zu.setImmediate,a=process.nextTick;t=e.isRecentNode?function(s){i.call(zu,s)}:function(s){a.call(process,s)}}else if(typeof r=="function"&&typeof r.resolve=="function"){var o=r.resolve();t=function(s){o.then(s)}}else typeof MutationObserver<"u"&&!(typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova))?t=(function(){var s=document.createElement("div"),l={attributes:!0},c=!1,u=document.createElement("div"),d=new MutationObserver(function(){s.classList.toggle("foo"),c=!1});d.observe(u,l);var h=function(){c||(c=!0,u.classList.toggle("foo"))};return function(g){var y=new MutationObserver(function(){y.disconnect(),g()});y.observe(s,l),h()}})():typeof setImmediate<"u"?t=function(s){setImmediate(s)}:typeof setTimeout<"u"?t=function(s){setTimeout(s,0)}:t=n;return Ik=t,Ik}var Mk,nM;function Zve(){if(nM)return Mk;nM=1;function e(n,r,i,a,o){for(var s=0;s<o;++s)i[s+a]=n[s+r],n[s+r]=void 0}function t(n){this._capacity=n,this._length=0,this._front=0}return t.prototype._willBeOverCapacity=function(n){return this._capacity<n},t.prototype._pushOne=function(n){var r=this.length();this._checkCapacity(r+1);var i=this._front+r&this._capacity-1;this[i]=n,this._length=r+1},t.prototype.push=function(n,r,i){var a=this.length()+3;if(this._willBeOverCapacity(a)){this._pushOne(n),this._pushOne(r),this._pushOne(i);return}var o=this._front+a-3;this._checkCapacity(a);var s=this._capacity-1;this[o+0&s]=n,this[o+1&s]=r,this[o+2&s]=i,this._length=a},t.prototype.shift=function(){var n=this._front,r=this[n];return this[n]=void 0,this._front=n+1&this._capacity-1,this._length--,r},t.prototype.length=function(){return this._length},t.prototype._checkCapacity=function(n){this._capacity<n&&this._resizeTo(this._capacity<<1)},t.prototype._resizeTo=function(n){var r=this._capacity;this._capacity=n;var i=this._front,a=this._length,o=i+a&r-1;e(this,0,this,r,o)},Mk=t,Mk}var rM;function Kve(){if(rM)return xx.exports;rM=1;var e;try{throw new Error}catch(l){e=l}var t=Xve(),n=Zve(),r=Ii();function i(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new n(16),this._normalQueue=new n(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var l=this;this.drainQueues=function(){l._drainQueues()},this._schedule=t}i.prototype.setScheduler=function(l){var c=this._schedule;return this._schedule=l,this._customScheduler=!0,c},i.prototype.hasCustomScheduler=function(){return this._customScheduler},i.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},i.prototype.disableTrampolineIfNecessary=function(){r.hasDevTools&&(this._trampolineEnabled=!1)},i.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},i.prototype.fatalError=function(l,c){c?(process.stderr.write("Fatal "+(l instanceof Error?l.stack:l)+`-`),process.exit(2)):this.throwLater(l)},i.prototype.throwLater=function(l,c){if(arguments.length===1&&(c=l,l=function(){throw c}),typeof setTimeout<"u")setTimeout(function(){l(c)},0);else try{this._schedule(function(){l(c)})}catch{throw new Error(`No async scheduler available-- See http://goo.gl/MqrFmX-`)}};function a(l,c,u){this._lateQueue.push(l,c,u),this._queueTick()}function o(l,c,u){this._normalQueue.push(l,c,u),this._queueTick()}function s(l){this._normalQueue._pushOne(l),this._queueTick()}return r.hasDevTools?(i.prototype.invokeLater=function(l,c,u){this._trampolineEnabled?a.call(this,l,c,u):this._schedule(function(){setTimeout(function(){l.call(c,u)},100)})},i.prototype.invoke=function(l,c,u){this._trampolineEnabled?o.call(this,l,c,u):this._schedule(function(){l.call(c,u)})},i.prototype.settlePromises=function(l){this._trampolineEnabled?s.call(this,l):this._schedule(function(){l._settlePromises()})}):(i.prototype.invokeLater=a,i.prototype.invoke=o,i.prototype.settlePromises=s),i.prototype._drainQueue=function(l){for(;l.length()>0;){var c=l.shift();if(typeof c!="function"){c._settlePromises();continue}var u=l.shift(),d=l.shift();c.call(u,d)}},i.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},i.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},i.prototype._reset=function(){this._isTickUsed=!1},xx.exports=i,xx.exports.firstLineError=e,xx.exports}var Uk,iM;function id(){if(iM)return Uk;iM=1;var e=Tg(),t=e.freeze,n=Ii(),r=n.inherits,i=n.notEnumerableProp;function a(A,w){function S(_){if(!(this instanceof S))return new S(_);i(this,"message",typeof _=="string"?_:w),i(this,"name",A),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return r(S,Error),S}var o,s,l=a("Warning","warning"),c=a("CancellationError","cancellation error"),u=a("TimeoutError","timeout error"),d=a("AggregateError","aggregate error");try{o=TypeError,s=RangeError}catch{o=a("TypeError","type error"),s=a("RangeError","range error")}for(var h="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),f=0;f<h.length;++f)typeof Array.prototype[h[f]]=="function"&&(d.prototype[h[f]]=Array.prototype[h[f]]);e.defineProperty(d.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),d.prototype.isOperational=!0;var g=0;d.prototype.toString=function(){var A=Array(g*4+1).join(" "),w=`-`+A+`AggregateError of:-`;g++,A=Array(g*4+1).join(" ");for(var S=0;S<this.length;++S){for(var _=this[S]===this?"[Circular AggregateError]":this[S]+"",E=_.split(`-`),T=0;T<E.length;++T)E[T]=A+E[T];_=E.join(`-`),w+=_+`-`}return g--,w};function y(A){if(!(this instanceof y))return new y(A);i(this,"name","OperationalError"),i(this,"message",A),this.cause=A,this.isOperational=!0,A instanceof Error?(i(this,"message",A.message),i(this,"stack",A.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}r(y,Error);var v=Error.__BluebirdErrorTypes__;return v||(v=t({CancellationError:c,TimeoutError:u,OperationalError:y,RejectionError:y,AggregateError:d}),e.defineProperty(Error,"__BluebirdErrorTypes__",{value:v,writable:!1,enumerable:!1,configurable:!1})),Uk={Error,TypeError:o,RangeError:s,CancellationError:v.CancellationError,OperationalError:v.OperationalError,TimeoutError:v.TimeoutError,AggregateError:v.AggregateError,Warning:l},Uk}var Lk,aM;function $ve(){return aM||(aM=1,Lk=function(e,t){var n=Ii(),r=n.errorObj,i=n.isObject;function a(d,h){if(i(d)){if(d instanceof e)return d;var f=s(d);if(f===r){h&&h._pushContext();var g=e.reject(f.e);return h&&h._popContext(),g}else if(typeof f=="function"){if(c(d)){var g=new e(t);return d._then(g._fulfill,g._reject,void 0,g,null),g}return u(d,f,h)}}return d}function o(d){return d.then}function s(d){try{return o(d)}catch(h){return r.e=h,r}}var l={}.hasOwnProperty;function c(d){try{return l.call(d,"_promise0")}catch{return!1}}function u(d,h,f){var g=new e(t),y=g;f&&f._pushContext(),g._captureStackTrace(),f&&f._popContext();var v=!0,A=n.tryCatch(h).call(d,w,S);v=!1,g&&A===r&&(g._rejectCallback(A.e,!0,!0),g=null);function w(_){g&&(g._resolveCallback(_),g=null)}function S(_){g&&(g._rejectCallback(_,v,!0),g=null)}return y}return a}),Lk}var Ok,oM;function Yve(){return oM||(oM=1,Ok=function(e,t,n,r,i){var a=Ii();a.isArray;function o(l){switch(l){case-2:return[];case-3:return{}}}function s(l){var c=this._promise=new e(t);l instanceof e&&c._propagateFrom(l,3),c._setOnCancel(this),this._values=l,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.inherits(s,i),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function l(c,u){var d=n(this._values,this._promise);if(d instanceof e){d=d._target();var h=d._bitField;if(this._values=d,(h&50397184)===0)return this._promise._setAsyncGuaranteed(),d._then(l,this._reject,void 0,this,u);if((h&33554432)!==0)d=d._value();else return(h&16777216)!==0?this._reject(d._reason()):this._cancel()}if(d=a.asArray(d),d===null){var f=r("expecting an array or an iterable object but got "+a.classString(d)).reason();this._promise._rejectCallback(f,!1);return}if(d.length===0){u===-5?this._resolveEmptyArray():this._resolve(o(u));return}this._iterate(d)},s.prototype._iterate=function(l){var c=this.getActualLength(l.length);this._length=c,this._values=this.shouldCopyValues()?new Array(c):this._values;for(var u=this._promise,d=!1,h=null,f=0;f<c;++f){var g=n(l[f],u);g instanceof e?(g=g._target(),h=g._bitField):h=null,d?h!==null&&g.suppressUnhandledRejections():h!==null?(h&50397184)===0?(g._proxy(this,f),this._values[f]=g):(h&33554432)!==0?d=this._promiseFulfilled(g._value(),f):(h&16777216)!==0?d=this._promiseRejected(g._reason(),f):d=this._promiseCancelled(f):d=this._promiseFulfilled(g,f)}d||u._setAsyncGuaranteed()},s.prototype._isResolved=function(){return this._values===null},s.prototype._resolve=function(l){this._values=null,this._promise._fulfill(l)},s.prototype._cancel=function(){this._isResolved()||!this._promise._isCancellable()||(this._values=null,this._promise._cancel())},s.prototype._reject=function(l){this._values=null,this._promise._rejectCallback(l,!1)},s.prototype._promiseFulfilled=function(l,c){this._values[c]=l;var u=++this._totalResolved;return u>=this._length?(this._resolve(this._values),!0):!1},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(l){return this._totalResolved++,this._reject(l),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var l=this._values;if(this._cancel(),l instanceof e)l.cancel();else for(var c=0;c<l.length;++c)l[c]instanceof e&&l[c].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(l){return l},s}),Ok}var jk,sM;function Jve(){return sM||(sM=1,jk=function(e){var t=!1,n=[];e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){};function r(){this._trace=new r.CapturedTrace(a())}r.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(this._trace!==void 0){var o=n.pop(),s=o._promiseCreated;return o._promiseCreated=null,s}return null};function i(){if(t)return new r}function a(){var o=n.length-1;if(o>=0)return n[o]}return r.CapturedTrace=null,r.create=i,r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var o=e.prototype._pushContext,s=e.prototype._popContext,l=e._peekContext,c=e.prototype._peekContext,u=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=o,e.prototype._popContext=s,e._peekContext=l,e.prototype._peekContext=c,e.prototype._promiseCreated=u,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=a,e.prototype._promiseCreated=function(){var d=this._peekContext();d&&d._promiseCreated==null&&(d._promiseCreated=this)}},r}),jk}var Bk,lM;function Qve(){return lM||(lM=1,Bk=function(e,t){var n=e._getDomain,r=e._async,i=id().Warning,a=Ii(),o=a.canAttachTrace,s,l,c=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,u=/\((?:timers\.js):\d+:\d+\)/,d=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,h=null,f=null,g=!1,y,v=!!(a.env("BLUEBIRD_DEBUG")!=0&&(a.env("BLUEBIRD_DEBUG")||a.env("NODE_ENV")==="development")),A=!!(a.env("BLUEBIRD_WARNINGS")!=0&&(v||a.env("BLUEBIRD_WARNINGS"))),w=!!(a.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(v||a.env("BLUEBIRD_LONG_STACK_TRACES"))),S=a.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(A||!!a.env("BLUEBIRD_W_FORGOTTEN_RETURN"));e.prototype.suppressUnhandledRejections=function(){var Se=this._target();Se._bitField=Se._bitField&-1048577|524288},e.prototype._ensurePossibleRejectionHandled=function(){(this._bitField&524288)===0&&(this._setRejectionIsUnhandled(),r.invokeLater(this._notifyUnhandledRejection,this,void 0))},e.prototype._notifyUnhandledRejectionIsHandled=function(){Re("rejectionHandled",s,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456},e.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var Se=this._settledValue();this._setUnhandledRejectionIsNotified(),Re("unhandledRejection",l,Se,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},e.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0},e.prototype._warn=function(Se,Ce,pe){return xe(Se,Ce,pe||this)},e.onPossiblyUnhandledRejection=function(Se){var Ce=n();l=typeof Se=="function"?Ce===null?Se:a.domainBind(Ce,Se):void 0},e.onUnhandledRejectionHandled=function(Se){var Ce=n();s=typeof Se=="function"?Ce===null?Se:a.domainBind(Ce,Se):void 0};var _=function(){};e.longStackTraces=function(){if(r.haveItemsQueued()&&!Ee.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created-- See http://goo.gl/MqrFmX-`);if(!Ee.longStackTraces&&ve()){var Se=e.prototype._captureStackTrace,Ce=e.prototype._attachExtraTrace;Ee.longStackTraces=!0,_=function(){if(r.haveItemsQueued()&&!Ee.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created-- See http://goo.gl/MqrFmX-`);e.prototype._captureStackTrace=Se,e.prototype._attachExtraTrace=Ce,t.deactivateLongStackTraces(),r.enableTrampoline(),Ee.longStackTraces=!1},e.prototype._captureStackTrace=J,e.prototype._attachExtraTrace=ee,t.activateLongStackTraces(),r.disableTrampolineIfNecessary()}},e.hasLongStackTraces=function(){return Ee.longStackTraces&&ve()};var E=(function(){try{if(typeof CustomEvent=="function"){var Se=new CustomEvent("CustomEvent");return a.global.dispatchEvent(Se),function(Ce,pe){var ke=new CustomEvent(Ce.toLowerCase(),{detail:pe,cancelable:!0});return!a.global.dispatchEvent(ke)}}else if(typeof Event=="function"){var Se=new Event("CustomEvent");return a.global.dispatchEvent(Se),function(pe,ke){var Ve=new Event(pe.toLowerCase(),{cancelable:!0});return Ve.detail=ke,!a.global.dispatchEvent(Ve)}}else{var Se=document.createEvent("CustomEvent");return Se.initCustomEvent("testingtheevent",!1,!0,{}),a.global.dispatchEvent(Se),function(pe,ke){var Ve=document.createEvent("CustomEvent");return Ve.initCustomEvent(pe.toLowerCase(),!1,!0,ke),!a.global.dispatchEvent(Ve)}}}catch{}return function(){return!1}})(),T=(function(){return a.isNode?function(){return process.emit.apply(process,arguments)}:a.global?function(Se){var Ce="on"+Se.toLowerCase(),pe=a.global[Ce];return pe?(pe.apply(a.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}})();function D(Se,Ce){return{promise:Ce}}var I={promiseCreated:D,promiseFulfilled:D,promiseRejected:D,promiseResolved:D,promiseCancelled:D,promiseChained:function(Se,Ce,pe){return{promise:Ce,child:pe}},warning:function(Se,Ce){return{warning:Ce}},unhandledRejection:function(Se,Ce,pe){return{reason:Ce,promise:pe}},rejectionHandled:D},j=function(Se){var Ce=!1;try{Ce=T.apply(null,arguments)}catch(ke){r.throwLater(ke),Ce=!0}var pe=!1;try{pe=E(Se,I[Se].apply(null,arguments))}catch(ke){r.throwLater(ke),pe=!0}return pe||Ce};e.config=function(Se){if(Se=Object(Se),"longStackTraces"in Se&&(Se.longStackTraces?e.longStackTraces():!Se.longStackTraces&&e.hasLongStackTraces()&&_()),"warnings"in Se){var Ce=Se.warnings;Ee.warnings=!!Ce,S=Ee.warnings,a.isObject(Ce)&&"wForgottenReturn"in Ce&&(S=!!Ce.wForgottenReturn)}if("cancellation"in Se&&Se.cancellation&&!Ee.cancellation){if(r.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");e.prototype._clearCancellationData=Z,e.prototype._propagateFrom=Q,e.prototype._onCancel=W,e.prototype._setOnCancel=P,e.prototype._attachCancellationCallback=B,e.prototype._execute=z,q=Q,Ee.cancellation=!0}return"monitoring"in Se&&(Se.monitoring&&!Ee.monitoring?(Ee.monitoring=!0,e.prototype._fireEvent=j):!Se.monitoring&&Ee.monitoring&&(Ee.monitoring=!1,e.prototype._fireEvent=R)),e};function R(){return!1}e.prototype._fireEvent=R,e.prototype._execute=function(Se,Ce,pe){try{Se(Ce,pe)}catch(ke){return ke}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(Se){},e.prototype._attachCancellationCallback=function(Se){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(Se,Ce){};function z(Se,Ce,pe){var ke=this;try{Se(Ce,pe,function(Ve){if(typeof Ve!="function")throw new TypeError("onCancel must be a function, got: "+a.toString(Ve));ke._attachCancellationCallback(Ve)})}catch(Ve){return Ve}}function B(Se){if(!this._isCancellable())return this;var Ce=this._onCancel();Ce!==void 0?a.isArray(Ce)?Ce.push(Se):this._setOnCancel([Ce,Se]):this._setOnCancel(Se)}function W(){return this._onCancelField}function P(Se){this._onCancelField=Se}function Z(){this._cancellationParent=void 0,this._onCancelField=void 0}function Q(Se,Ce){if((Ce&1)!==0){this._cancellationParent=Se;var pe=Se._branchesRemainingToCancel;pe===void 0&&(pe=0),Se._branchesRemainingToCancel=pe+1}(Ce&2)!==0&&Se._isBound()&&this._setBoundTo(Se._boundTo)}function X(Se,Ce){(Ce&2)!==0&&Se._isBound()&&this._setBoundTo(Se._boundTo)}var q=X;function te(){var Se=this._boundTo;return Se!==void 0&&Se instanceof e?Se.isFulfilled()?Se.value():void 0:Se}function J(){this._trace=new Ue(this._peekContext())}function ee(Se,Ce){if(o(Se)){var pe=this._trace;if(pe!==void 0&&Ce&&(pe=pe._parent),pe!==void 0)pe.attachExtraTrace(Se);else if(!Se.__stackCleaned__){var ke=Oe(Se);a.notEnumerableProp(Se,"stack",ke.message+`-`+ke.stack.join(`-`)),a.notEnumerableProp(Se,"__stackCleaned__",!0)}}}function le(Se,Ce,pe,ke,Ve){if(Se===void 0&&Ce!==null&&S){if(Ve!==void 0&&Ve._returnedNonUndefined()||(ke._bitField&65535)===0)return;pe&&(pe=pe+" ");var Xe="",it="";if(Ce._trace){for(var et=Ce._trace.stack.split(`-`),U=ye(et),Ae=U.length-1;Ae>=0;--Ae){var se=U[Ae];if(!u.test(se)){var Te=se.match(d);Te&&(Xe="at "+Te[1]+":"+Te[2]+":"+Te[3]+" ");break}}if(U.length>0){for(var $=U[0],Ae=0;Ae<et.length;++Ae)if(et[Ae]===$){Ae>0&&(it=`-`+et[Ae-1]);break}}}var de="a promise was created in a "+pe+"handler "+Xe+"but was not returned from it, see http://goo.gl/rRqMUw"+it;ke._warn(de,!0,Ce)}}function G(Se,Ce){var pe=Se+" is deprecated and will be removed in a future version.";return Ce&&(pe+=" Use "+Ce+" instead."),xe(pe)}function xe(Se,Ce,pe){if(Ee.warnings){var ke=new i(Se),Ve;if(Ce)pe._attachExtraTrace(ke);else if(Ee.longStackTraces&&(Ve=e._peekContext()))Ve.attachExtraTrace(ke);else{var Xe=Oe(ke);ke.stack=Xe.message+`-`+Xe.stack.join(`-`)}j("warning",ke)||Le(ke,"",!0)}}function ge(Se,Ce){for(var pe=0;pe<Ce.length-1;++pe)Ce[pe].push("From previous event:"),Ce[pe]=Ce[pe].join(`-`);return pe<Ce.length&&(Ce[pe]=Ce[pe].join(`-`)),Se+`-`+Ce.join(`-`)}function ue(Se){for(var Ce=0;Ce<Se.length;++Ce)(Se[Ce].length===0||Ce+1<Se.length&&Se[Ce][0]===Se[Ce+1][0])&&(Se.splice(Ce,1),Ce--)}function ce(Se){for(var Ce=Se[0],pe=1;pe<Se.length;++pe){for(var ke=Se[pe],Ve=Ce.length-1,Xe=Ce[Ve],it=-1,et=ke.length-1;et>=0;--et)if(ke[et]===Xe){it=et;break}for(var et=it;et>=0;--et){var U=ke[et];if(Ce[Ve]===U)Ce.pop(),Ve--;else break}Ce=ke}}function ye(Se){for(var Ce=[],pe=0;pe<Se.length;++pe){var ke=Se[pe],Ve=ke===" (No stack trace)"||h.test(ke),Xe=Ve&&oe(ke);Ve&&!Xe&&(g&&ke.charAt(0)!==" "&&(ke=" "+ke),Ce.push(ke))}return Ce}function Fe(Se){for(var Ce=Se.stack.replace(/\s+$/g,"").split(`-`),pe=0;pe<Ce.length;++pe){var ke=Ce[pe];if(ke===" (No stack trace)"||h.test(ke))break}return pe>0&&Se.name!="SyntaxError"&&(Ce=Ce.slice(pe)),Ce}function Oe(Se){var Ce=Se.stack,pe=Se.toString();return Ce=typeof Ce=="string"&&Ce.length>0?Fe(Se):[" (No stack trace)"],{message:pe,stack:Se.name=="SyntaxError"?Ce:ye(Ce)}}function Le(Se,Ce,pe){if(typeof console<"u"){var ke;if(a.isObject(Se)){var Ve=Se.stack;ke=Ce+f(Ve,Se)}else ke=Ce+String(Se);typeof y=="function"?y(ke,pe):(typeof console.log=="function"||typeof console.log=="object")&&console.log(ke)}}function Re(Se,Ce,pe,ke){var Ve=!1;try{typeof Ce=="function"&&(Ve=!0,Se==="rejectionHandled"?Ce(ke):Ce(pe,ke))}catch(Xe){r.throwLater(Xe)}Se==="unhandledRejection"?!j(Se,pe,ke)&&!Ve&&Le(pe,"Unhandled rejection "):j(Se,ke)}function We(Se){var Ce;if(typeof Se=="function")Ce="[function "+(Se.name||"anonymous")+"]";else{Ce=Se&&typeof Se.toString=="function"?Se.toString():a.toString(Se);var pe=/\[object [a-zA-Z0-9$_]+\]/;if(pe.test(Ce))try{var ke=JSON.stringify(Se);Ce=ke}catch{}Ce.length===0&&(Ce="(empty array)")}return"(<"+V(Ce)+">, no stack trace)"}function V(Se){var Ce=41;return Se.length<Ce?Se:Se.substr(0,Ce-3)+"..."}function ve(){return typeof Me=="function"}var oe=function(){return!1},re=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function ne(Se){var Ce=Se.match(re);if(Ce)return{fileName:Ce[1],line:parseInt(Ce[2],10)}}function be(Se,Ce){if(ve()){for(var pe=Se.stack.split(`-`),ke=Ce.stack.split(`-`),Ve=-1,Xe=-1,it,et,U=0;U<pe.length;++U){var Ae=ne(pe[U]);if(Ae){it=Ae.fileName,Ve=Ae.line;break}}for(var U=0;U<ke.length;++U){var Ae=ne(ke[U]);if(Ae){et=Ae.fileName,Xe=Ae.line;break}}Ve<0||Xe<0||!it||!et||it!==et||Ve>=Xe||(oe=function(se){if(c.test(se))return!0;var Te=ne(se);return!!(Te&&Te.fileName===it&&Ve<=Te.line&&Te.line<=Xe)})}}function Ue(Se){this._parent=Se,this._promisesCreated=0;var Ce=this._length=1+(Se===void 0?0:Se._length);Me(this,Ue),Ce>32&&this.uncycle()}a.inherits(Ue,Error),t.CapturedTrace=Ue,Ue.prototype.uncycle=function(){var Se=this._length;if(!(Se<2)){for(var Ce=[],pe={},ke=0,Ve=this;Ve!==void 0;++ke)Ce.push(Ve),Ve=Ve._parent;Se=this._length=ke;for(var ke=Se-1;ke>=0;--ke){var Xe=Ce[ke].stack;pe[Xe]===void 0&&(pe[Xe]=ke)}for(var ke=0;ke<Se;++ke){var it=Ce[ke].stack,et=pe[it];if(et!==void 0&&et!==ke){et>0&&(Ce[et-1]._parent=void 0,Ce[et-1]._length=1),Ce[ke]._parent=void 0,Ce[ke]._length=1;var U=ke>0?Ce[ke-1]:this;et<Se-1?(U._parent=Ce[et+1],U._parent.uncycle(),U._length=U._parent._length+1):(U._parent=void 0,U._length=1);for(var Ae=U._length+1,se=ke-2;se>=0;--se)Ce[se]._length=Ae,Ae++;return}}}},Ue.prototype.attachExtraTrace=function(Se){if(!Se.__stackCleaned__){this.uncycle();for(var Ce=Oe(Se),pe=Ce.message,ke=[Ce.stack],Ve=this;Ve!==void 0;)ke.push(ye(Ve.stack.split(`-`))),Ve=Ve._parent;ce(ke),ue(ke),a.notEnumerableProp(Se,"stack",ge(pe,ke)),a.notEnumerableProp(Se,"__stackCleaned__",!0)}};var Me=(function(){var Ce=/^\s*at\s*/,pe=function(it,et){return typeof it=="string"?it:et.name!==void 0&&et.message!==void 0?et.toString():We(et)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,h=Ce,f=pe;var ke=Error.captureStackTrace;return oe=function(it){return c.test(it)},function(it,et){Error.stackTraceLimit+=6,ke(it,et),Error.stackTraceLimit-=6}}var Ve=new Error;if(typeof Ve.stack=="string"&&Ve.stack.split(`-`)[0].indexOf("stackDetection@")>=0)return h=/@/,f=pe,g=!0,function(et){et.stack=new Error().stack};var Xe;try{throw new Error}catch(it){Xe="stack"in it}return!("stack"in Ve)&&Xe&&typeof Error.stackTraceLimit=="number"?(h=Ce,f=pe,function(et){Error.stackTraceLimit+=6;try{throw new Error}catch(U){et.stack=U.stack}Error.stackTraceLimit-=6}):(f=function(it,et){return typeof it=="string"?it:(typeof et=="object"||typeof et=="function")&&et.name!==void 0&&et.message!==void 0?et.toString():We(et)},null)})();typeof console<"u"&&typeof console.warn<"u"&&(y=function(Se){console.warn(Se)},a.isNode&&process.stderr.isTTY?y=function(Se,Ce){var pe=Ce?"\x1B[33m":"\x1B[31m";console.warn(pe+Se+`\x1B[0m-`)}:!a.isNode&&typeof new Error().stack=="string"&&(y=function(Se,Ce){console.warn("%c"+Se,Ce?"color: darkorange":"color: red")}));var Ee={warnings:A,longStackTraces:!1,cancellation:!1,monitoring:!1};return w&&e.longStackTraces(),{longStackTraces:function(){return Ee.longStackTraces},warnings:function(){return Ee.warnings},cancellation:function(){return Ee.cancellation},monitoring:function(){return Ee.monitoring},propagateFromFunction:function(){return q},boundValueFunction:function(){return te},checkForgottenReturns:le,setBounds:be,warn:xe,deprecated:G,CapturedTrace:Ue,fireDomEvent:E,fireGlobalEvent:T}}),Bk}var zk,cM;function exe(){return cM||(cM=1,zk=function(e,t){var n=Ii(),r=e.CancellationError,i=n.errorObj;function a(d,h,f){this.promise=d,this.type=h,this.handler=f,this.called=!1,this.cancelPromise=null}a.prototype.isFinallyHandler=function(){return this.type===0};function o(d){this.finallyHandler=d}o.prototype._resultCancelled=function(){s(this.finallyHandler)};function s(d,h){return d.cancelPromise!=null?(arguments.length>1?d.cancelPromise._reject(h):d.cancelPromise._cancel(),d.cancelPromise=null,!0):!1}function l(){return u.call(this,this.promise._target()._settledValue())}function c(d){if(!s(this,d))return i.e=d,i}function u(d){var h=this.promise,f=this.handler;if(!this.called){this.called=!0;var g=this.isFinallyHandler()?f.call(h._boundValue()):f.call(h._boundValue(),d);if(g!==void 0){h._setReturnedNonUndefined();var y=t(g,h);if(y instanceof e){if(this.cancelPromise!=null)if(y._isCancelled()){var v=new r("late cancellation observer");return h._attachExtraTrace(v),i.e=v,i}else y.isPending()&&y._attachCancellationCallback(new o(this));return y._then(l,c,void 0,this,void 0)}}}return h.isRejected()?(s(this),i.e=d,i):(s(this),d)}return e.prototype._passThrough=function(d,h,f,g){return typeof d!="function"?this.then():this._then(f,g,void 0,new a(this,h,d),void 0)},e.prototype.lastly=e.prototype.finally=function(d){return this._passThrough(d,0,u,u)},e.prototype.tap=function(d){return this._passThrough(d,1,u)},a}),zk}var Wk,uM;function txe(){return uM||(uM=1,Wk=function(e){var t=Ii(),n=Tg().keys,r=t.tryCatch,i=t.errorObj;function a(o,s,l){return function(c){var u=l._boundValue();e:for(var d=0;d<o.length;++d){var h=o[d];if(h===Error||h!=null&&h.prototype instanceof Error){if(c instanceof h)return r(s).call(u,c)}else if(typeof h=="function"){var f=r(h).call(u,c);if(f===i)return f;if(f)return r(s).call(u,c)}else if(t.isObject(c)){for(var g=n(h),y=0;y<g.length;++y){var v=g[y];if(h[v]!=c[v])continue e}return r(s).call(u,c)}}return e}}return a}),Wk}var Vk,dM;function Iq(){if(dM)return Vk;dM=1;var e=Ii(),t=e.maybeWrapAsError,n=id(),r=n.OperationalError,i=Tg();function a(c){return c instanceof Error&&i.getPrototypeOf(c)===Error.prototype}var o=/^(?:name|message|stack|cause)$/;function s(c){var u;if(a(c)){u=new r(c),u.name=c.name,u.message=c.message,u.stack=c.stack;for(var d=i.keys(c),h=0;h<d.length;++h){var f=d[h];o.test(f)||(u[f]=c[f])}return u}return e.markAsOriginatingFromRejection(c),c}function l(c,u){return function(d,h){if(c!==null){if(d){var f=s(t(d));c._attachExtraTrace(f),c._reject(f)}else if(!u)c._fulfill(h);else{for(var g=arguments.length,y=new Array(Math.max(g-1,0)),v=1;v<g;++v)y[v-1]=arguments[v];c._fulfill(y)}c=null}}}return Vk=l,Vk}var Gk,fM;function nxe(){return fM||(fM=1,Gk=function(e,t,n,r,i){var a=Ii(),o=a.tryCatch;e.method=function(s){if(typeof s!="function")throw new e.TypeError("expecting a function but got "+a.classString(s));return function(){var l=new e(t);l._captureStackTrace(),l._pushContext();var c=o(s).apply(this,arguments),u=l._popContext();return i.checkForgottenReturns(c,u,"Promise.method",l),l._resolveFromSyncValue(c),l}},e.attempt=e.try=function(s){if(typeof s!="function")return r("expecting a function but got "+a.classString(s));var l=new e(t);l._captureStackTrace(),l._pushContext();var c;if(arguments.length>1){i.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],d=arguments[2];c=a.isArray(u)?o(s).apply(d,u):o(s).call(d,u)}else c=o(s)();var h=l._popContext();return i.checkForgottenReturns(c,h,"Promise.try",l),l._resolveFromSyncValue(c),l},e.prototype._resolveFromSyncValue=function(s){s===a.errorObj?this._rejectCallback(s.e,!1):this._resolveCallback(s,!0)}}),Gk}var qk,hM;function rxe(){return hM||(hM=1,qk=function(e,t,n,r){var i=!1,a=function(c,u){this._reject(u)},o=function(c,u){u.promiseRejectionQueued=!0,u.bindingPromise._then(a,a,null,this,c)},s=function(c,u){(this._bitField&50397184)===0&&this._resolveCallback(u.target)},l=function(c,u){u.promiseRejectionQueued||this._reject(c)};e.prototype.bind=function(c){i||(i=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var u=n(c),d=new e(t);d._propagateFrom(this,1);var h=this._target();if(d._setBoundTo(u),u instanceof e){var f={promiseRejectionQueued:!1,promise:d,target:h,bindingPromise:u};h._then(t,o,void 0,d,f),u._then(s,l,void 0,d,f),d._setOnCancel(u)}else d._resolveCallback(h);return d},e.prototype._setBoundTo=function(c){c!==void 0?(this._bitField=this._bitField|2097152,this._boundTo=c):this._bitField=this._bitField&-2097153},e.prototype._isBound=function(){return(this._bitField&2097152)===2097152},e.bind=function(c,u){return e.resolve(u).bind(c)}}),qk}var Hk,pM;function ixe(){return pM||(pM=1,Hk=function(e,t,n,r){var i=Ii(),a=i.tryCatch,o=i.errorObj,s=e._async;e.prototype.break=e.prototype.cancel=function(){if(!r.cancellation())return this._warn("cancellation is disabled");for(var l=this,c=l;l._isCancellable();){if(!l._cancelBy(c)){c._isFollowing()?c._followee().cancel():c._cancelBranched();break}var u=l._cancellationParent;if(u==null||!u._isCancellable()){l._isFollowing()?l._followee().cancel():l._cancelBranched();break}else l._isFollowing()&&l._followee().cancel(),l._setWillBeCancelled(),c=l,l=u}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(l){return l===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),s.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(l,c){if(i.isArray(l))for(var u=0;u<l.length;++u)this._doInvokeOnCancel(l[u],c);else if(l!==void 0)if(typeof l=="function"){if(!c){var d=a(l).call(this._boundValue());d===o&&(this._attachExtraTrace(d.e),s.throwLater(d.e))}}else l._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var l=this._onCancel();this._unsetOnCancel(),s.invoke(this._doInvokeOnCancel,this,l)},e.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}),Hk}var Xk,gM;function axe(){return gM||(gM=1,Xk=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(r){return r instanceof e&&r.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:r},void 0)},e.prototype.throw=e.prototype.thenThrow=function(r){return this._then(n,void 0,void 0,{reason:r},void 0)},e.prototype.catchThrow=function(r){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:r},void 0);var i=arguments[1],a=function(){throw i};return this.caught(r,a)},e.prototype.catchReturn=function(r){if(arguments.length<=1)return r instanceof e&&r.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:r},void 0);var i=arguments[1];i instanceof e&&i.suppressUnhandledRejections();var a=function(){return i};return this.caught(r,a)}}),Xk}var Zk,mM;function oxe(){return mM||(mM=1,Zk=function(e){function t(l){l!==void 0?(l=l._target(),this._bitField=l._bitField,this._settledValueField=l._isFateSealed()?l._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise-- See http://goo.gl/MqrFmX-`);return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise-- See http://goo.gl/MqrFmX-`);return this._settledValue()},i=t.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},a=t.prototype.isRejected=function(){return(this._bitField&16777216)!==0},o=t.prototype.isPending=function(){return(this._bitField&50397184)===0},s=t.prototype.isResolved=function(){return(this._bitField&50331648)!==0};t.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},e.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},e.prototype.isPending=function(){return o.call(this._target())},e.prototype.isRejected=function(){return a.call(this._target())},e.prototype.isFulfilled=function(){return i.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var l=this._target();return l._unsetRejectionIsUnhandled(),r.call(l)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}),Zk}var Kk,yM;function sxe(){return yM||(yM=1,Kk=function(e,t,n,r,i,a){var o=Ii(),s=o.canEvaluate,l=o.tryCatch,c=o.errorObj,u;if(s){for(var d=function(w){return new Function("value","holder",`- 'use strict';- holder.pIndex = value;- holder.checkFulfillment(this);- `.replace(/Index/g,w))},h=function(w){return new Function("promise","holder",`- 'use strict';- holder.pIndex = promise;- `.replace(/Index/g,w))},f=function(w){for(var S=new Array(w),_=0;_<S.length;++_)S[_]="this.p"+(_+1);var E=S.join(" = ")+" = null;",T=`var promise;-`+S.map(function(R){return`- promise = `+R+`;- if (promise instanceof Promise) {- promise.cancel();- }- `}).join(`-`),D=S.join(", "),I="Holder$"+w,j=`return function(tryCatch, errorObj, Promise, async) {- 'use strict';- function [TheName](fn) {- [TheProperties]- this.fn = fn;- this.asyncNeeded = true;- this.now = 0;- }-- [TheName].prototype._callFunction = function(promise) {- promise._pushContext();- var ret = tryCatch(this.fn)([ThePassedArguments]);- promise._popContext();- if (ret === errorObj) {- promise._rejectCallback(ret.e, false);- } else {- promise._resolveCallback(ret);- }- };-- [TheName].prototype.checkFulfillment = function(promise) {- var now = ++this.now;- if (now === [TheTotal]) {- if (this.asyncNeeded) {- async.invoke(this._callFunction, this, promise);- } else {- this._callFunction(promise);- }-- }- };-- [TheName].prototype._resultCancelled = function() {- [CancellationCode]- };-- return [TheName];- }(tryCatch, errorObj, Promise, async);- `;return j=j.replace(/\[TheName\]/g,I).replace(/\[TheTotal\]/g,w).replace(/\[ThePassedArguments\]/g,D).replace(/\[TheProperties\]/g,E).replace(/\[CancellationCode\]/g,T),new Function("tryCatch","errorObj","Promise","async",j)(l,c,e,i)},g=[],y=[],v=[],A=0;A<8;++A)g.push(f(A+1)),y.push(d(A+1)),v.push(h(A+1));u=function(w){this._reject(w)}}e.join=function(){var w=arguments.length-1,S;if(w>0&&typeof arguments[w]=="function"&&(S=arguments[w],w<=8&&s)){var P=new e(r);P._captureStackTrace();for(var _=g[w-1],E=new _(S),T=y,D=0;D<w;++D){var I=n(arguments[D],P);if(I instanceof e){I=I._target();var j=I._bitField;(j&50397184)===0?(I._then(T[D],u,void 0,P,E),v[D](I,E),E.asyncNeeded=!1):(j&33554432)!==0?T[D].call(P,I._value(),E):(j&16777216)!==0?P._reject(I._reason()):P._cancel()}else T[D].call(P,I,E)}if(!P._isFateSealed()){if(E.asyncNeeded){var R=a();R!==null&&(E.fn=o.domainBind(R,E.fn))}P._setAsyncGuaranteed(),P._setOnCancel(E)}return P}for(var z=arguments.length,B=new Array(z),W=0;W<z;++W)B[W]=arguments[W];S&&B.pop();var P=new t(B).promise();return S!==void 0?P.spread(S):P}}),Kk}var $k,vM;function lxe(){return vM||(vM=1,$k=function(e,t,n,r,i,a){var o=e._getDomain,s=Ii(),l=s.tryCatch,c=s.errorObj,u=e._async;function d(f,g,y,v){this.constructor$(f),this._promise._captureStackTrace();var A=o();this._callback=A===null?g:s.domainBind(A,g),this._preservedValues=v===i?new Array(this.length()):null,this._limit=y,this._inFlight=0,this._queue=[],u.invoke(this._asyncInit,this,void 0)}s.inherits(d,t),d.prototype._asyncInit=function(){this._init$(void 0,-2)},d.prototype._init=function(){},d.prototype._promiseFulfilled=function(f,g){var y=this._values,v=this.length(),A=this._preservedValues,w=this._limit;if(g<0){if(g=g*-1-1,y[g]=f,w>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(w>=1&&this._inFlight>=w)return y[g]=f,this._queue.push(g),!1;A!==null&&(A[g]=f);var S=this._promise,_=this._callback,E=S._boundValue();S._pushContext();var T=l(_).call(E,f,g,v),D=S._popContext();if(a.checkForgottenReturns(T,D,A!==null?"Promise.filter":"Promise.map",S),T===c)return this._reject(T.e),!0;var I=r(T,this._promise);if(I instanceof e){I=I._target();var j=I._bitField;if((j&50397184)===0)return w>=1&&this._inFlight++,y[g]=I,I._proxy(this,(g+1)*-1),!1;if((j&33554432)!==0)T=I._value();else return(j&16777216)!==0?(this._reject(I._reason()),!0):(this._cancel(),!0)}y[g]=T}var R=++this._totalResolved;return R>=v?(A!==null?this._filter(y,A):this._resolve(y),!0):!1},d.prototype._drainQueue=function(){for(var f=this._queue,g=this._limit,y=this._values;f.length>0&&this._inFlight<g;){if(this._isResolved())return;var v=f.pop();this._promiseFulfilled(y[v],v)}},d.prototype._filter=function(f,g){for(var y=g.length,v=new Array(y),A=0,w=0;w<y;++w)f[w]&&(v[A++]=g[w]);v.length=A,this._resolve(v)},d.prototype.preservedValues=function(){return this._preservedValues};function h(f,g,y,v){if(typeof g!="function")return n("expecting a function but got "+s.classString(g));var A=0;if(y!==void 0)if(typeof y=="object"&&y!==null){if(typeof y.concurrency!="number")return e.reject(new TypeError("'concurrency' must be a number but it is "+s.classString(y.concurrency)));A=y.concurrency}else return e.reject(new TypeError("options argument must be an object but it is "+s.classString(y)));return A=typeof A=="number"&&isFinite(A)&&A>=1?A:0,new d(f,g,A,v).promise()}e.prototype.map=function(f,g){return h(this,f,g,null)},e.map=function(f,g,y,v){return h(f,g,y,v)}}),$k}var Yk,xM;function cxe(){if(xM)return Yk;xM=1;var e=Object.create;if(e){var t=e(null),n=e(null);t[" size"]=n[" size"]=0}return Yk=function(r){var i=Ii(),a=i.canEvaluate,o=i.isIdentifier,s,l;{var c=function(v){return new Function("ensureMethod",`- return function(obj) {- 'use strict'- var len = this.length;- ensureMethod(obj, 'methodName');- switch(len) {- case 1: return obj.methodName(this[0]);- case 2: return obj.methodName(this[0], this[1]);- case 3: return obj.methodName(this[0], this[1], this[2]);- case 0: return obj.methodName();- default:- return obj.methodName.apply(obj, this);- }- };- `.replace(/methodName/g,v))(h)},u=function(v){return new Function("obj",`- 'use strict';- return obj.propertyName;- `.replace("propertyName",v))},d=function(v,A,w){var S=w[v];if(typeof S!="function"){if(!o(v))return null;if(S=A(v),w[v]=S,w[" size"]++,w[" size"]>512){for(var _=Object.keys(w),E=0;E<256;++E)delete w[_[E]];w[" size"]=_.length-256}}return S};s=function(v){return d(v,c,t)},l=function(v){return d(v,u,n)}}function h(v,A){var w;if(v!=null&&(w=v[A]),typeof w!="function"){var S="Object "+i.classString(v)+" has no method '"+i.toString(A)+"'";throw new r.TypeError(S)}return w}function f(v){var A=this.pop(),w=h(v,A);return w.apply(v,this)}r.prototype.call=function(v){for(var A=arguments.length,w=new Array(Math.max(A-1,0)),S=1;S<A;++S)w[S-1]=arguments[S];if(a){var _=s(v);if(_!==null)return this._then(_,void 0,void 0,w,void 0)}return w.push(v),this._then(f,void 0,void 0,w,void 0)};function g(v){return v[this]}function y(v){var A=+this;return A<0&&(A=Math.max(0,A+v.length)),v[A]}r.prototype.get=function(v){var A=typeof v=="number",w;if(A)w=y;else if(a){var S=l(v);w=S!==null?S:g}else w=g;return this._then(w,void 0,void 0,v,void 0)}},Yk}var Jk,bM;function uxe(){return bM||(bM=1,Jk=function(e,t,n,r,i,a){var o=Ii(),s=id().TypeError,l=Ii().inherits,c=o.errorObj,u=o.tryCatch,d={};function h(S){setTimeout(function(){throw S},0)}function f(S){var _=n(S);return _!==S&&typeof S._isDisposable=="function"&&typeof S._getDisposer=="function"&&S._isDisposable()&&_._setDisposable(S._getDisposer()),_}function g(S,_){var E=0,T=S.length,D=new e(i);function I(){if(E>=T)return D._fulfill();var j=f(S[E++]);if(j instanceof e&&j._isDisposable()){try{j=n(j._getDisposer().tryDispose(_),S.promise)}catch(R){return h(R)}if(j instanceof e)return j._then(I,h,null,null,null)}I()}return I(),D}function y(S,_,E){this._data=S,this._promise=_,this._context=E}y.prototype.data=function(){return this._data},y.prototype.promise=function(){return this._promise},y.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():d},y.prototype.tryDispose=function(S){var _=this.resource(),E=this._context;E!==void 0&&E._pushContext();var T=_!==d?this.doDispose(_,S):null;return E!==void 0&&E._popContext(),this._promise._unsetDisposable(),this._data=null,T},y.isDisposer=function(S){return S!=null&&typeof S.resource=="function"&&typeof S.tryDispose=="function"};function v(S,_,E){this.constructor$(S,_,E)}l(v,y),v.prototype.doDispose=function(S,_){var E=this.data();return E.call(S,S,_)};function A(S){return y.isDisposer(S)?(this.resources[this.index]._setDisposable(S),S.promise()):S}function w(S){this.length=S,this.promise=null,this[S-1]=null}w.prototype._resultCancelled=function(){for(var S=this.length,_=0;_<S;++_){var E=this[_];E instanceof e&&E.cancel()}},e.using=function(){var S=arguments.length;if(S<2)return t("you must pass at least 2 arguments to Promise.using");var _=arguments[S-1];if(typeof _!="function")return t("expecting a function but got "+o.classString(_));var E,T=!0;S===2&&Array.isArray(arguments[0])?(E=arguments[0],S=E.length,T=!1):(E=arguments,S--);for(var D=new w(S),I=0;I<S;++I){var j=E[I];if(y.isDisposer(j)){var R=j;j=j.promise(),j._setDisposable(R)}else{var z=n(j);z instanceof e&&(j=z._then(A,null,null,{resources:D,index:I},void 0))}D[I]=j}for(var B=new Array(D.length),I=0;I<B.length;++I)B[I]=e.resolve(D[I]).reflect();var W=e.all(B).then(function(Z){for(var Q=0;Q<Z.length;++Q){var X=Z[Q];if(X.isRejected())return c.e=X.error(),c;if(!X.isFulfilled()){W.cancel();return}Z[Q]=X.value()}P._pushContext(),_=u(_);var q=T?_.apply(void 0,Z):_(Z),te=P._popContext();return a.checkForgottenReturns(q,te,"Promise.using",P),q}),P=W.lastly(function(){var Z=new e.PromiseInspection(W);return g(D,Z)});return D.promise=P,P._setOnCancel(D),P},e.prototype._setDisposable=function(S){this._bitField=this._bitField|131072,this._disposer=S},e.prototype._isDisposable=function(){return(this._bitField&131072)>0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},e.prototype.disposer=function(S){if(typeof S=="function")return new v(S,this,r());throw new s}}),Jk}var Qk,AM;function dxe(){return AM||(AM=1,Qk=function(e,t,n){var r=Ii(),i=e.TimeoutError;function a(d){this.handle=d}a.prototype._resultCancelled=function(){clearTimeout(this.handle)};var o=function(d){return s(+this).thenReturn(d)},s=e.delay=function(d,h){var f,g;return h!==void 0?(f=e.resolve(h)._then(o,null,null,d,void 0),n.cancellation()&&h instanceof e&&f._setOnCancel(h)):(f=new e(t),g=setTimeout(function(){f._fulfill()},+d),n.cancellation()&&f._setOnCancel(new a(g)),f._captureStackTrace()),f._setAsyncGuaranteed(),f};e.prototype.delay=function(d){return s(d,this)};var l=function(d,h,f){var g;typeof h!="string"?h instanceof Error?g=h:g=new i("operation timed out"):g=new i(h),r.markAsOriginatingFromRejection(g),d._attachExtraTrace(g),d._reject(g),f!=null&&f.cancel()};function c(d){return clearTimeout(this.handle),d}function u(d){throw clearTimeout(this.handle),d}e.prototype.timeout=function(d,h){d=+d;var f,g,y=new a(setTimeout(function(){f.isPending()&&l(f,h,g)},d));return n.cancellation()?(g=this.then(),f=g._then(c,u,void 0,y,void 0),f._setOnCancel(y)):f=this._then(c,u,void 0,y,void 0),f}}),Qk}var eD,wM;function fxe(){return wM||(wM=1,eD=function(e,t,n,r,i,a){var o=id(),s=o.TypeError,l=Ii(),c=l.errorObj,u=l.tryCatch,d=[];function h(g,y,v){for(var A=0;A<y.length;++A){v._pushContext();var w=u(y[A])(g);if(v._popContext(),w===c){v._pushContext();var S=e.reject(c.e);return v._popContext(),S}var _=r(w,v);if(_ instanceof e)return _}return null}function f(g,y,v,A){if(a.cancellation()){var w=new e(n),S=this._finallyPromise=new e(n);this._promise=w.lastly(function(){return S}),w._captureStackTrace(),w._setOnCancel(this)}else{var _=this._promise=new e(n);_._captureStackTrace()}this._stack=A,this._generatorFunction=g,this._receiver=y,this._generator=void 0,this._yieldHandlers=typeof v=="function"?[v].concat(d):d,this._yieldedPromise=null,this._cancellationPhase=!1}l.inherits(f,i),f.prototype._isResolved=function(){return this._promise===null},f.prototype._cleanup=function(){this._promise=this._generator=null,a.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},f.prototype._promiseCancelled=function(){if(!this._isResolved()){var g=typeof this._generator.return<"u",y;if(g)this._promise._pushContext(),y=u(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var v=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=v,this._promise._attachExtraTrace(v),this._promise._pushContext(),y=u(this._generator.throw).call(this._generator,v),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(y)}},f.prototype._promiseFulfilled=function(g){this._yieldedPromise=null,this._promise._pushContext();var y=u(this._generator.next).call(this._generator,g);this._promise._popContext(),this._continue(y)},f.prototype._promiseRejected=function(g){this._yieldedPromise=null,this._promise._attachExtraTrace(g),this._promise._pushContext();var y=u(this._generator.throw).call(this._generator,g);this._promise._popContext(),this._continue(y)},f.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var g=this._yieldedPromise;this._yieldedPromise=null,g.cancel()}},f.prototype.promise=function(){return this._promise},f.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},f.prototype._continue=function(g){var y=this._promise;if(g===c)return this._cleanup(),this._cancellationPhase?y.cancel():y._rejectCallback(g.e,!1);var v=g.value;if(g.done===!0)return this._cleanup(),this._cancellationPhase?y.cancel():y._resolveCallback(v);var A=r(v,this._promise);if(!(A instanceof e)&&(A=h(A,this._yieldHandlers,this._promise),A===null)){this._promiseRejected(new s(`A value %s was yielded that could not be treated as a promise-- See http://goo.gl/MqrFmX--`.replace("%s",v)+`From coroutine:-`+this._stack.split(`-`).slice(1,-7).join(`-`)));return}A=A._target();var w=A._bitField;(w&50397184)===0?(this._yieldedPromise=A,A._proxy(this,null)):(w&33554432)!==0?e._async.invoke(this._promiseFulfilled,this,A._value()):(w&16777216)!==0?e._async.invoke(this._promiseRejected,this,A._reason()):this._promiseCancelled()},e.coroutine=function(g,y){if(typeof g!="function")throw new s(`generatorFunction must be a function-- See http://goo.gl/MqrFmX-`);var v=Object(y).yieldHandler,A=f,w=new Error().stack;return function(){var S=g.apply(this,arguments),_=new A(void 0,void 0,v,w),E=_.promise();return _._generator=S,_._promiseFulfilled(void 0),E}},e.coroutine.addYieldHandler=function(g){if(typeof g!="function")throw new s("expecting a function but got "+l.classString(g));d.push(g)},e.spawn=function(g){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),typeof g!="function")return t(`generatorFunction must be a function-- See http://goo.gl/MqrFmX-`);var y=new f(g,this),v=y.promise();return y._run(e.spawn),v}}),eD}var tD,SM;function hxe(){return SM||(SM=1,tD=function(e){var t=Ii(),n=e._async,r=t.tryCatch,i=t.errorObj;function a(l,c){var u=this;if(!t.isArray(l))return o.call(u,l,c);var d=r(c).apply(u._boundValue(),[null].concat(l));d===i&&n.throwLater(d.e)}function o(l,c){var u=this,d=u._boundValue(),h=l===void 0?r(c).call(d,null):r(c).call(d,null,l);h===i&&n.throwLater(h.e)}function s(l,c){var u=this;if(!l){var d=new Error(l+"");d.cause=l,l=d}var h=r(c).call(u._boundValue(),l);h===i&&n.throwLater(h.e)}e.prototype.asCallback=e.prototype.nodeify=function(l,c){if(typeof l=="function"){var u=o;c!==void 0&&Object(c).spread&&(u=a),this._then(u,s,void 0,this,l)}return this}}),tD}var nD,kM;function pxe(){return kM||(kM=1,nD=function(e,t){var n={},r=Ii(),i=Iq(),a=r.withAppended,o=r.maybeWrapAsError,s=r.canEvaluate,l=id().TypeError,c="Async",u={__isPromisified__:!0},d=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],h=new RegExp("^(?:"+d.join("|")+")$"),f=function(W){return r.isIdentifier(W)&&W.charAt(0)!=="_"&&W!=="constructor"};function g(W){return!h.test(W)}function y(W){try{return W.__isPromisified__===!0}catch{return!1}}function v(W,P,Z){var Q=r.getDataPropertyOrDefault(W,P+Z,u);return Q?y(Q):!1}function A(W,P,Z){for(var Q=0;Q<W.length;Q+=2){var X=W[Q];if(Z.test(X)){for(var q=X.replace(Z,""),te=0;te<W.length;te+=2)if(W[te]===q)throw new l(`Cannot promisify an API that has normal methods with '%s'-suffix-- See http://goo.gl/MqrFmX-`.replace("%s",P))}}}function w(W,P,Z,Q){for(var X=r.inheritedDataKeys(W),q=[],te=0;te<X.length;++te){var J=X[te],ee=W[J],le=Q===f?!0:f(J);typeof ee=="function"&&!y(ee)&&!v(W,J,P)&&Q(J,ee,W,le)&&q.push(J,ee)}return A(q,P,Z),q}var S=function(W){return W.replace(/([$])/,"\\$")},_;{var E=function(W){for(var P=[W],Z=Math.max(0,W-1-3),Q=W-1;Q>=Z;--Q)P.push(Q);for(var Q=W+1;Q<=3;++Q)P.push(Q);return P},T=function(W){return r.filledRange(W,"_arg","")},D=function(W){return r.filledRange(Math.max(W,3),"_arg","")},I=function(W){return typeof W.length=="number"?Math.max(Math.min(W.length,1024),0):0};_=function(W,P,Z,Q,X,q){var te=Math.max(0,I(Q)-1),J=E(te),ee=typeof W=="string"||P===n;function le(ue){var ce=T(ue).join(", "),ye=ue>0?", ":"",Fe;return ee?Fe=`ret = callback.call(this, {{args}}, nodeback); break;-`:Fe=P===void 0?`ret = callback({{args}}, nodeback); break;-`:`ret = callback.call(receiver, {{args}}, nodeback); break;-`,Fe.replace("{{args}}",ce).replace(", ",ye)}function G(){for(var ue="",ce=0;ce<J.length;++ce)ue+="case "+J[ce]+":"+le(J[ce]);return ue+=`- default:- var args = new Array(len + 1);- var i = 0;- for (var i = 0; i < len; ++i) {- args[i] = arguments[i];- }- args[i] = nodeback;- [CodeForCall]- break;- `.replace("[CodeForCall]",ee?`ret = callback.apply(this, args);-`:`ret = callback.apply(receiver, args);-`),ue}var xe=typeof W=="string"?"this != null ? this['"+W+"'] : fn":"fn",ge=`'use strict';- var ret = function (Parameters) {- 'use strict';- var len = arguments.length;- var promise = new Promise(INTERNAL);- promise._captureStackTrace();- var nodeback = nodebackForPromise(promise, `+q+`);- var ret;- var callback = tryCatch([GetFunctionCode]);- switch(len) {- [CodeForSwitchCase]- }- if (ret === errorObj) {- promise._rejectCallback(maybeWrapAsError(ret.e), true, true);- }- if (!promise._isFateSealed()) promise._setAsyncGuaranteed();- return promise;- };- notEnumerableProp(ret, '__isPromisified__', true);- return ret;- `.replace("[CodeForSwitchCase]",G()).replace("[GetFunctionCode]",xe);return ge=ge.replace("Parameters",D(te)),new Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",ge)(e,Q,P,a,o,i,r.tryCatch,r.errorObj,r.notEnumerableProp,t)}}function j(W,P,Z,Q,X,q){var te=(function(){return this})(),J=W;typeof J=="string"&&(W=Q);function ee(){var le=P;P===n&&(le=this);var G=new e(t);G._captureStackTrace();var xe=typeof J=="string"&&this!==te?this[J]:W,ge=i(G,q);try{xe.apply(le,a(arguments,ge))}catch(ue){G._rejectCallback(o(ue),!0,!0)}return G._isFateSealed()||G._setAsyncGuaranteed(),G}return r.notEnumerableProp(ee,"__isPromisified__",!0),ee}var R=s?_:j;function z(W,P,Z,Q,X){for(var q=new RegExp(S(P)+"$"),te=w(W,P,q,Z),J=0,ee=te.length;J<ee;J+=2){var le=te[J],G=te[J+1],xe=le+P;if(Q===R)W[xe]=R(le,n,le,G,P,X);else{var ge=Q(G,function(){return R(le,n,le,G,P,X)});r.notEnumerableProp(ge,"__isPromisified__",!0),W[xe]=ge}}return r.toFastProperties(W),W}function B(W,P,Z){return R(W,P,void 0,W,null,Z)}e.promisify=function(W,P){if(typeof W!="function")throw new l("expecting a function but got "+r.classString(W));if(y(W))return W;P=Object(P);var Z=P.context===void 0?n:P.context,Q=!!P.multiArgs,X=B(W,Z,Q);return r.copyDescriptors(W,X,g),X},e.promisifyAll=function(W,P){if(typeof W!="function"&&typeof W!="object")throw new l(`the target of promisifyAll must be an object or a function-- See http://goo.gl/MqrFmX-`);P=Object(P);var Z=!!P.multiArgs,Q=P.suffix;typeof Q!="string"&&(Q=c);var X=P.filter;typeof X!="function"&&(X=f);var q=P.promisifier;if(typeof q!="function"&&(q=R),!r.isIdentifier(Q))throw new RangeError(`suffix must be a valid identifier-- See http://goo.gl/MqrFmX-`);for(var te=r.inheritedDataKeys(W),J=0;J<te.length;++J){var ee=W[te[J]];te[J]!=="constructor"&&r.isClass(ee)&&(z(ee.prototype,Q,X,q,Z),z(ee,Q,X,q,Z))}return z(W,Q,X,q,Z)}}),nD}var rD,DM;function gxe(){return DM||(DM=1,rD=function(e,t,n,r){var i=Ii(),a=i.isObject,o=Tg(),s;typeof Map=="function"&&(s=Map);var l=(function(){var h=0,f=0;function g(y,v){this[h]=y,this[h+f]=v,h++}return function(v){f=v.size,h=0;var A=new Array(v.size*2);return v.forEach(g,A),A}})(),c=function(h){for(var f=new s,g=h.length/2|0,y=0;y<g;++y){var v=h[g+y],A=h[y];f.set(v,A)}return f};function u(h){var f=!1,g;if(s!==void 0&&h instanceof s)g=l(h),f=!0;else{var y=o.keys(h),v=y.length;g=new Array(v*2);for(var A=0;A<v;++A){var w=y[A];g[A]=h[w],g[A+v]=w}}this.constructor$(g),this._isMap=f,this._init$(void 0,-3)}i.inherits(u,t),u.prototype._init=function(){},u.prototype._promiseFulfilled=function(h,f){this._values[f]=h;var g=++this._totalResolved;if(g>=this._length){var y;if(this._isMap)y=c(this._values);else{y={};for(var v=this.length(),A=0,w=this.length();A<w;++A)y[this._values[A+v]]=this._values[A]}return this._resolve(y),!0}return!1},u.prototype.shouldCopyValues=function(){return!1},u.prototype.getActualLength=function(h){return h>>1};function d(h){var f,g=n(h);if(a(g))g instanceof e?f=g._then(e.props,void 0,void 0,void 0,void 0):f=new u(g).promise();else return r(`cannot await properties of a non-object-- See http://goo.gl/MqrFmX-`);return g instanceof e&&f._propagateFrom(g,2),f}e.prototype.props=function(){return d(this)},e.props=function(h){return d(h)}}),rD}var iD,CM;function mxe(){return CM||(CM=1,iD=function(e,t,n,r){var i=Ii(),a=function(s){return s.then(function(l){return o(l,s)})};function o(s,l){var c=n(s);if(c instanceof e)return a(c);if(s=i.asArray(s),s===null)return r("expecting an array or an iterable object but got "+i.classString(s));var u=new e(t);l!==void 0&&u._propagateFrom(l,3);for(var d=u._fulfill,h=u._reject,f=0,g=s.length;f<g;++f){var y=s[f];y===void 0&&!(f in s)||e.cast(y)._then(d,h,void 0,u,null)}return u}e.race=function(s){return o(s,void 0)},e.prototype.race=function(){return o(this,void 0)}}),iD}var aD,TM;function yxe(){return TM||(TM=1,aD=function(e,t,n,r,i,a){var o=e._getDomain,s=Ii(),l=s.tryCatch;function c(g,y,v,A){this.constructor$(g);var w=o();this._fn=w===null?y:s.domainBind(w,y),v!==void 0&&(v=e.resolve(v),v._attachCancellationCallback(this)),this._initialValue=v,this._currentCancellable=null,A===i?this._eachValues=Array(this._length):A===0?this._eachValues=null:this._eachValues=void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}s.inherits(c,t),c.prototype._gotAccum=function(g){this._eachValues!==void 0&&this._eachValues!==null&&g!==i&&this._eachValues.push(g)},c.prototype._eachComplete=function(g){return this._eachValues!==null&&this._eachValues.push(g),this._eachValues},c.prototype._init=function(){},c.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},c.prototype.shouldCopyValues=function(){return!1},c.prototype._resolve=function(g){this._promise._resolveCallback(g),this._values=null},c.prototype._resultCancelled=function(g){if(g===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof e&&this._currentCancellable.cancel(),this._initialValue instanceof e&&this._initialValue.cancel())},c.prototype._iterate=function(g){this._values=g;var y,v,A=g.length;if(this._initialValue!==void 0?(y=this._initialValue,v=0):(y=e.resolve(g[0]),v=1),this._currentCancellable=y,!y.isRejected())for(;v<A;++v){var w={accum:null,value:g[v],index:v,length:A,array:this};y=y._then(h,void 0,void 0,w,void 0)}this._eachValues!==void 0&&(y=y._then(this._eachComplete,void 0,void 0,this,void 0)),y._then(u,u,void 0,y,this)},e.prototype.reduce=function(g,y){return d(this,g,y,null)},e.reduce=function(g,y,v,A){return d(g,y,v,A)};function u(g,y){this.isFulfilled()?y._resolve(g):y._reject(g)}function d(g,y,v,A){if(typeof y!="function")return n("expecting a function but got "+s.classString(y));var w=new c(g,y,v,A);return w.promise()}function h(g){this.accum=g,this.array._gotAccum(g);var y=r(this.value,this.array._promise);return y instanceof e?(this.array._currentCancellable=y,y._then(f,void 0,void 0,this,void 0)):f.call(this,y)}function f(g){var y=this.array,v=y._promise,A=l(y._fn);v._pushContext();var w;y._eachValues!==void 0?w=A.call(v._boundValue(),g,this.index,this.length):w=A.call(v._boundValue(),this.accum,g,this.index,this.length),w instanceof e&&(y._currentCancellable=w);var S=v._popContext();return a.checkForgottenReturns(w,S,y._eachValues!==void 0?"Promise.each":"Promise.reduce",v),w}}),aD}var oD,_M;function vxe(){return _M||(_M=1,oD=function(e,t,n){var r=e.PromiseInspection,i=Ii();function a(o){this.constructor$(o)}i.inherits(a,t),a.prototype._promiseResolved=function(o,s){this._values[o]=s;var l=++this._totalResolved;return l>=this._length?(this._resolve(this._values),!0):!1},a.prototype._promiseFulfilled=function(o,s){var l=new r;return l._bitField=33554432,l._settledValueField=o,this._promiseResolved(s,l)},a.prototype._promiseRejected=function(o,s){var l=new r;return l._bitField=16777216,l._settledValueField=o,this._promiseResolved(s,l)},e.settle=function(o){return n.deprecated(".settle()",".reflect()"),new a(o).promise()},e.prototype.settle=function(){return e.settle(this)}}),oD}var sD,EM;function xxe(){return EM||(EM=1,sD=function(e,t,n){var r=Ii(),i=id().RangeError,a=id().AggregateError,o=r.isArray,s={};function l(u){this.constructor$(u),this._howMany=0,this._unwrap=!1,this._initialized=!1}r.inherits(l,t),l.prototype._init=function(){if(this._initialized){if(this._howMany===0){this._resolve([]);return}this._init$(void 0,-5);var u=o(this._values);!this._isResolved()&&u&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},l.prototype.init=function(){this._initialized=!0,this._init()},l.prototype.setUnwrap=function(){this._unwrap=!0},l.prototype.howMany=function(){return this._howMany},l.prototype.setHowMany=function(u){this._howMany=u},l.prototype._promiseFulfilled=function(u){return this._addFulfilled(u),this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1},l.prototype._promiseRejected=function(u){return this._addRejected(u),this._checkOutcome()},l.prototype._promiseCancelled=function(){return this._values instanceof e||this._values==null?this._cancel():(this._addRejected(s),this._checkOutcome())},l.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var u=new a,d=this.length();d<this._values.length;++d)this._values[d]!==s&&u.push(this._values[d]);return u.length>0?this._reject(u):this._cancel(),!0}return!1},l.prototype._fulfilled=function(){return this._totalResolved},l.prototype._rejected=function(){return this._values.length-this.length()},l.prototype._addRejected=function(u){this._values.push(u)},l.prototype._addFulfilled=function(u){this._values[this._totalResolved++]=u},l.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},l.prototype._getRangeError=function(u){var d="Input array must contain at least "+this._howMany+" items but contains only "+u+" items";return new i(d)},l.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function c(u,d){if((d|0)!==d||d<0)return n(`expecting a positive integer-- See http://goo.gl/MqrFmX-`);var h=new l(u),f=h.promise();return h.setHowMany(d),h.init(),f}e.some=function(u,d){return c(u,d)},e.prototype.some=function(u){return c(this,u)},e._SomePromiseArray=l}),sD}var lD,NM;function bxe(){return NM||(NM=1,lD=function(e,t){var n=e.map;e.prototype.filter=function(r,i){return n(this,r,i,t)},e.filter=function(r,i,a){return n(r,i,a,t)}}),lD}var cD,FM;function Axe(){return FM||(FM=1,cD=function(e,t){var n=e.reduce,r=e.all;function i(){return r(this)}function a(o,s){return n(o,s,t,t)}e.prototype.each=function(o){return n(this,o,t,0)._then(i,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(o){return n(this,o,t,t)},e.each=function(o,s){return n(o,s,t,0)._then(i,void 0,void 0,o,void 0)},e.mapSeries=a}),cD}var uD,RM;function wxe(){return RM||(RM=1,uD=function(e){var t=e._SomePromiseArray;function n(r){var i=new t(r),a=i.promise();return i.setHowMany(1),i.setUnwrap(),i.init(),a}e.any=function(r){return n(r)},e.prototype.any=function(){return n(this)}}),uD}var PM;function Sxe(){return PM||(PM=1,(function(e){e.exports=function(){var t=function(){return new h(`circular promise resolution chain-- See http://goo.gl/MqrFmX-`)},n=function(){return new B.PromiseInspection(this._target())},r=function(Q){return B.reject(new h(Q))};function i(){}var a={},o=Ii(),s;o.isNode?s=function(){var Q=process.domain;return Q===void 0&&(Q=null),Q}:s=function(){return null},o.notEnumerableProp(B,"_getDomain",s);var l=Tg(),c=Kve(),u=new c;l.defineProperty(B,"_async",{value:u});var d=id(),h=B.TypeError=d.TypeError;B.RangeError=d.RangeError;var f=B.CancellationError=d.CancellationError;B.TimeoutError=d.TimeoutError,B.OperationalError=d.OperationalError,B.RejectionError=d.OperationalError,B.AggregateError=d.AggregateError;var g=function(){},y={},v={},A=$ve()(B,g),w=Yve()(B,g,A,r,i),S=Jve()(B),_=S.create,E=Qve()(B,S);E.CapturedTrace;var T=exe()(B,A),D=txe()(v),I=Iq(),j=o.errorObj,R=o.tryCatch;function z(Q,X){if(typeof X!="function")throw new h("expecting a function but got "+o.classString(X));if(Q.constructor!==B)throw new h(`the promise constructor cannot be invoked directly-- See http://goo.gl/MqrFmX-`)}function B(Q){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,Q!==g&&(z(this,Q),this._resolveFromExecutor(Q)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}B.prototype.toString=function(){return"[object Promise]"},B.prototype.caught=B.prototype.catch=function(Q){var X=arguments.length;if(X>1){var q=new Array(X-1),te=0,J;for(J=0;J<X-1;++J){var ee=arguments[J];if(o.isObject(ee))q[te++]=ee;else return r("expecting an object but got A catch statement predicate "+o.classString(ee))}return q.length=te,Q=arguments[J],this.then(void 0,D(q,Q,this))}return this.then(void 0,Q)},B.prototype.reflect=function(){return this._then(n,n,void 0,this,void 0)},B.prototype.then=function(Q,X){if(E.warnings()&&arguments.length>0&&typeof Q!="function"&&typeof X!="function"){var q=".then() only accepts functions but was passed: "+o.classString(Q);arguments.length>1&&(q+=", "+o.classString(X)),this._warn(q)}return this._then(Q,X,void 0,void 0,void 0)},B.prototype.done=function(Q,X){var q=this._then(Q,X,void 0,void 0,void 0);q._setIsFinal()},B.prototype.spread=function(Q){return typeof Q!="function"?r("expecting a function but got "+o.classString(Q)):this.all()._then(Q,void 0,void 0,y,void 0)},B.prototype.toJSON=function(){var Q={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(Q.fulfillmentValue=this.value(),Q.isFulfilled=!0):this.isRejected()&&(Q.rejectionReason=this.reason(),Q.isRejected=!0),Q},B.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new w(this).promise()},B.prototype.error=function(Q){return this.caught(o.originatesFromRejection,Q)},B.getNewLibraryCopy=e.exports,B.is=function(Q){return Q instanceof B},B.fromNode=B.fromCallback=function(Q){var X=new B(g);X._captureStackTrace();var q=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,te=R(Q)(I(X,q));return te===j&&X._rejectCallback(te.e,!0),X._isFateSealed()||X._setAsyncGuaranteed(),X},B.all=function(Q){return new w(Q).promise()},B.cast=function(Q){var X=A(Q);return X instanceof B||(X=new B(g),X._captureStackTrace(),X._setFulfilled(),X._rejectionHandler0=Q),X},B.resolve=B.fulfilled=B.cast,B.reject=B.rejected=function(Q){var X=new B(g);return X._captureStackTrace(),X._rejectCallback(Q,!0),X},B.setScheduler=function(Q){if(typeof Q!="function")throw new h("expecting a function but got "+o.classString(Q));return u.setScheduler(Q)},B.prototype._then=function(Q,X,q,te,J){var ee=J!==void 0,le=ee?J:new B(g),G=this._target(),xe=G._bitField;ee||(le._propagateFrom(this,3),le._captureStackTrace(),te===void 0&&(this._bitField&2097152)!==0&&((xe&50397184)!==0?te=this._boundValue():te=G===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,le));var ge=s();if((xe&50397184)!==0){var ue,ce,ye=G._settlePromiseCtx;(xe&33554432)!==0?(ce=G._rejectionHandler0,ue=Q):(xe&16777216)!==0?(ce=G._fulfillmentHandler0,ue=X,G._unsetRejectionIsUnhandled()):(ye=G._settlePromiseLateCancellationObserver,ce=new f("late cancellation observer"),G._attachExtraTrace(ce),ue=X),u.invoke(ye,G,{handler:ge===null?ue:typeof ue=="function"&&o.domainBind(ge,ue),promise:le,receiver:te,value:ce})}else G._addCallbacks(Q,X,le,te,ge);return le},B.prototype._length=function(){return this._bitField&65535},B.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},B.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},B.prototype._setLength=function(Q){this._bitField=this._bitField&-65536|Q&65535},B.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},B.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},B.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},B.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},B.prototype._isFinal=function(){return(this._bitField&4194304)>0},B.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},B.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},B.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},B.prototype._setAsyncGuaranteed=function(){u.hasCustomScheduler()||(this._bitField=this._bitField|134217728)},B.prototype._receiverAt=function(Q){var X=Q===0?this._receiver0:this[Q*4-4+3];if(X!==a)return X===void 0&&this._isBound()?this._boundValue():X},B.prototype._promiseAt=function(Q){return this[Q*4-4+2]},B.prototype._fulfillmentHandlerAt=function(Q){return this[Q*4-4+0]},B.prototype._rejectionHandlerAt=function(Q){return this[Q*4-4+1]},B.prototype._boundValue=function(){},B.prototype._migrateCallback0=function(Q){Q._bitField;var X=Q._fulfillmentHandler0,q=Q._rejectionHandler0,te=Q._promise0,J=Q._receiverAt(0);J===void 0&&(J=a),this._addCallbacks(X,q,te,J,null)},B.prototype._migrateCallbackAt=function(Q,X){var q=Q._fulfillmentHandlerAt(X),te=Q._rejectionHandlerAt(X),J=Q._promiseAt(X),ee=Q._receiverAt(X);ee===void 0&&(ee=a),this._addCallbacks(q,te,J,ee,null)},B.prototype._addCallbacks=function(Q,X,q,te,J){var ee=this._length();if(ee>=65531&&(ee=0,this._setLength(0)),ee===0)this._promise0=q,this._receiver0=te,typeof Q=="function"&&(this._fulfillmentHandler0=J===null?Q:o.domainBind(J,Q)),typeof X=="function"&&(this._rejectionHandler0=J===null?X:o.domainBind(J,X));else{var le=ee*4-4;this[le+2]=q,this[le+3]=te,typeof Q=="function"&&(this[le+0]=J===null?Q:o.domainBind(J,Q)),typeof X=="function"&&(this[le+1]=J===null?X:o.domainBind(J,X))}return this._setLength(ee+1),ee},B.prototype._proxy=function(Q,X){this._addCallbacks(void 0,void 0,X,Q,null)},B.prototype._resolveCallback=function(Q,X){if((this._bitField&117506048)===0){if(Q===this)return this._rejectCallback(t(),!1);var q=A(Q,this);if(!(q instanceof B))return this._fulfill(Q);X&&this._propagateFrom(q,2);var te=q._target();if(te===this){this._reject(t());return}var J=te._bitField;if((J&50397184)===0){var ee=this._length();ee>0&&te._migrateCallback0(this);for(var le=1;le<ee;++le)te._migrateCallbackAt(this,le);this._setFollowing(),this._setLength(0),this._setFollowee(te)}else if((J&33554432)!==0)this._fulfill(te._value());else if((J&16777216)!==0)this._reject(te._reason());else{var G=new f("late cancellation observer");te._attachExtraTrace(G),this._reject(G)}}},B.prototype._rejectCallback=function(Q,X,q){var te=o.ensureErrorObject(Q),J=te===Q;if(!J&&!q&&E.warnings()){var ee="a promise was rejected with a non-error: "+o.classString(Q);this._warn(ee,!0)}this._attachExtraTrace(te,X?J:!1),this._reject(Q)},B.prototype._resolveFromExecutor=function(Q){var X=this;this._captureStackTrace(),this._pushContext();var q=!0,te=this._execute(Q,function(J){X._resolveCallback(J)},function(J){X._rejectCallback(J,q)});q=!1,this._popContext(),te!==void 0&&X._rejectCallback(te,!0)},B.prototype._settlePromiseFromHandler=function(Q,X,q,te){var J=te._bitField;if((J&65536)===0){te._pushContext();var ee;X===y?!q||typeof q.length!="number"?(ee=j,ee.e=new h("cannot .spread() a non-array: "+o.classString(q))):ee=R(Q).apply(this._boundValue(),q):ee=R(Q).call(X,q);var le=te._popContext();J=te._bitField,(J&65536)===0&&(ee===v?te._reject(q):ee===j?te._rejectCallback(ee.e,!1):(E.checkForgottenReturns(ee,le,"",te,this),te._resolveCallback(ee)))}},B.prototype._target=function(){for(var Q=this;Q._isFollowing();)Q=Q._followee();return Q},B.prototype._followee=function(){return this._rejectionHandler0},B.prototype._setFollowee=function(Q){this._rejectionHandler0=Q},B.prototype._settlePromise=function(Q,X,q,te){var J=Q instanceof B,ee=this._bitField,le=(ee&134217728)!==0;(ee&65536)!==0?(J&&Q._invokeInternalOnCancel(),q instanceof T&&q.isFinallyHandler()?(q.cancelPromise=Q,R(X).call(q,te)===j&&Q._reject(j.e)):X===n?Q._fulfill(n.call(q)):q instanceof i?q._promiseCancelled(Q):J||Q instanceof w?Q._cancel():q.cancel()):typeof X=="function"?J?(le&&Q._setAsyncGuaranteed(),this._settlePromiseFromHandler(X,q,te,Q)):X.call(q,te,Q):q instanceof i?q._isResolved()||((ee&33554432)!==0?q._promiseFulfilled(te,Q):q._promiseRejected(te,Q)):J&&(le&&Q._setAsyncGuaranteed(),(ee&33554432)!==0?Q._fulfill(te):Q._reject(te))},B.prototype._settlePromiseLateCancellationObserver=function(Q){var X=Q.handler,q=Q.promise,te=Q.receiver,J=Q.value;typeof X=="function"?q instanceof B?this._settlePromiseFromHandler(X,te,J,q):X.call(te,J,q):q instanceof B&&q._reject(J)},B.prototype._settlePromiseCtx=function(Q){this._settlePromise(Q.promise,Q.handler,Q.receiver,Q.value)},B.prototype._settlePromise0=function(Q,X,q){var te=this._promise0,J=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(te,Q,J,X)},B.prototype._clearCallbackDataAtIndex=function(Q){var X=Q*4-4;this[X+2]=this[X+3]=this[X+0]=this[X+1]=void 0},B.prototype._fulfill=function(Q){var X=this._bitField;if(!((X&117506048)>>>16)){if(Q===this){var q=t();return this._attachExtraTrace(q),this._reject(q)}this._setFulfilled(),this._rejectionHandler0=Q,(X&65535)>0&&((X&134217728)!==0?this._settlePromises():u.settlePromises(this))}},B.prototype._reject=function(Q){var X=this._bitField;if(!((X&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=Q,this._isFinal())return u.fatalError(Q,o.isNode);(X&65535)>0?u.settlePromises(this):this._ensurePossibleRejectionHandled()}},B.prototype._fulfillPromises=function(Q,X){for(var q=1;q<Q;q++){var te=this._fulfillmentHandlerAt(q),J=this._promiseAt(q),ee=this._receiverAt(q);this._clearCallbackDataAtIndex(q),this._settlePromise(J,te,ee,X)}},B.prototype._rejectPromises=function(Q,X){for(var q=1;q<Q;q++){var te=this._rejectionHandlerAt(q),J=this._promiseAt(q),ee=this._receiverAt(q);this._clearCallbackDataAtIndex(q),this._settlePromise(J,te,ee,X)}},B.prototype._settlePromises=function(){var Q=this._bitField,X=Q&65535;if(X>0){if((Q&16842752)!==0){var q=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,q,Q),this._rejectPromises(X,q)}else{var te=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,te,Q),this._fulfillPromises(X,te)}this._setLength(0)}this._clearCancellationData()},B.prototype._settledValue=function(){var Q=this._bitField;if((Q&33554432)!==0)return this._rejectionHandler0;if((Q&16777216)!==0)return this._fulfillmentHandler0};function W(Q){this.promise._resolveCallback(Q)}function P(Q){this.promise._rejectCallback(Q,!1)}B.defer=B.pending=function(){E.deprecated("Promise.defer","new Promise");var Q=new B(g);return{promise:Q,resolve:W,reject:P}},o.notEnumerableProp(B,"_makeSelfResolutionError",t),nxe()(B,g,A,r,E),rxe()(B,g,A,E),ixe()(B,w,r,E),axe()(B),oxe()(B),sxe()(B,w,A,g,u,s),B.Promise=B,B.version="3.4.7",lxe()(B,w,r,A,g,E),cxe()(B),uxe()(B,r,A,_,g,E),dxe()(B,g,E),fxe()(B,r,g,A,i,E),hxe()(B),pxe()(B,g),gxe()(B,w,A,r),mxe()(B,g,A,r),yxe()(B,w,r,A,g,E),vxe()(B,w,E),xxe()(B,w,r),bxe()(B,g),Axe()(B,g),wxe()(B),o.toFastProperties(B),o.toFastProperties(B.prototype);function Z(Q){var X=new B(g);X._fulfillmentHandler0=Q,X._rejectionHandler0=Q,X._promise0=Q,X._receiver0=Q}return Z({a:1}),Z({b:2}),Z({c:3}),Z(1),Z(function(){}),Z(void 0),Z(!1),Z(new B(g)),E.setBounds(c.firstLineError,o.lastLineError),B}})(Pk)),Pk.exports}var IM;function Ad(){if(IM)return Ms;IM=1;var e=ga,t=Sxe()();Ms.defer=n,Ms.when=t.resolve,Ms.resolve=t.resolve,Ms.all=t.all,Ms.props=t.props,Ms.reject=t.reject,Ms.promisify=t.promisify,Ms.mapSeries=t.mapSeries,Ms.attempt=t.attempt,Ms.nfcall=function(r){var i=Array.prototype.slice.call(arguments,1),a=t.promisify(r);return a.apply(null,i)},t.prototype.fail=t.prototype.caught,t.prototype.also=function(r){return this.then(function(i){var a=e.extend({},i,r(i));return t.props(a)})};function n(){var r,i,a=new t.Promise(function(o,s){r=o,i=s});return{resolve:r,reject:i,promise:a}}return Ms}var li={},MM;function th(){if(MM)return li;MM=1;var e=ga,t=li.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",checkbox:"checkbox",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};function n(T,D){return D=D||{},{type:t.document,children:T,notes:D.notes||new d({}),comments:D.comments||[]}}function r(T,D){D=D||{};var I=D.indent||{};return{type:t.paragraph,children:T,styleId:D.styleId||null,styleName:D.styleName||null,numbering:D.numbering||null,alignment:D.alignment||null,indent:{start:I.start||null,end:I.end||null,firstLine:I.firstLine||null,hanging:I.hanging||null}}}function i(T,D){return D=D||{},{type:t.run,children:T,styleId:D.styleId||null,styleName:D.styleName||null,isBold:!!D.isBold,isUnderline:!!D.isUnderline,isItalic:!!D.isItalic,isStrikethrough:!!D.isStrikethrough,isAllCaps:!!D.isAllCaps,isSmallCaps:!!D.isSmallCaps,verticalAlignment:D.verticalAlignment||a.baseline,font:D.font||null,fontSize:D.fontSize||null,highlight:D.highlight||null}}var a={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function o(T){return{type:t.text,value:T}}function s(){return{type:t.tab}}function l(T){return{type:t.checkbox,checked:T.checked}}function c(T,D){return{type:t.hyperlink,children:T,href:D.href,anchor:D.anchor,targetFrame:D.targetFrame}}function u(T){return{type:t.noteReference,noteType:T.noteType,noteId:T.noteId}}function d(T){this._notes=e.indexBy(T,function(D){return y(D.noteType,D.noteId)})}d.prototype.resolve=function(T){return this.findNoteByKey(y(T.noteType,T.noteId))},d.prototype.findNoteByKey=function(T){return this._notes[T]||null};function h(T){return{type:t.note,noteType:T.noteType,noteId:T.noteId,body:T.body}}function f(T){return{type:t.commentReference,commentId:T.commentId}}function g(T){return{type:t.comment,commentId:T.commentId,body:T.body,authorName:T.authorName,authorInitials:T.authorInitials}}function y(T,D){return T+"-"+D}function v(T){return{type:t.image,read:function(D){return D?T.readImage(D):T.readImage().then(function(I){return Buffer.from(I)})},readAsArrayBuffer:function(){return T.readImage()},readAsBase64String:function(){return T.readImage("base64")},readAsBuffer:function(){return T.readImage().then(function(D){return Buffer.from(D)})},altText:T.altText,contentType:T.contentType}}function A(T,D){return D=D||{},{type:t.table,children:T,styleId:D.styleId||null,styleName:D.styleName||null}}function w(T,D){return D=D||{},{type:t.tableRow,children:T,isHeader:D.isHeader||!1}}function S(T,D){return D=D||{},{type:t.tableCell,children:T,colSpan:D.colSpan==null?1:D.colSpan,rowSpan:D.rowSpan==null?1:D.rowSpan}}function _(T){return{type:t.break,breakType:T}}function E(T){return{type:t.bookmarkStart,name:T.name}}return li.document=li.Document=n,li.paragraph=li.Paragraph=r,li.run=li.Run=i,li.text=li.Text=o,li.tab=li.Tab=s,li.checkbox=li.Checkbox=l,li.Hyperlink=c,li.noteReference=li.NoteReference=u,li.Notes=d,li.Note=h,li.commentReference=f,li.comment=g,li.Image=v,li.Table=A,li.TableRow=w,li.TableCell=S,li.lineBreak=_("line"),li.pageBreak=_("page"),li.columnBreak=_("column"),li.BookmarkStart=E,li.verticalAlignment=a,li}var zh={},UM;function Yc(){if(UM)return zh;UM=1;var e=ga;zh.Result=t,zh.success=n,zh.warning=r,zh.error=i;function t(l,c){this.value=l,this.messages=c||[]}t.prototype.map=function(l){return new t(l(this.value),this.messages)},t.prototype.flatMap=function(l){var c=l(this.value);return new t(c.value,a([this,c]))},t.prototype.flatMapThen=function(l){var c=this;return l(this.value).then(function(u){return new t(u.value,a([c,u]))})},t.combine=function(l){var c=e.flatten(e.pluck(l,"value")),u=a(l);return new t(c,u)};function n(l){return new t(l,[])}function r(l){return{type:"warning",message:l}}function i(l){return{type:"error",message:l.message,error:l}}function a(l){var c=[];return e.flatten(e.pluck(l,"messages"),!0).forEach(function(u){o(c,u)||c.push(u)}),c}function o(l,c){return e.find(l,s.bind(null,c))!==void 0}function s(l,c){return l.type===c.type&&l.message===c.message}return zh}var pm={},gm={},LM;function kxe(){if(LM)return gm;LM=1,gm.byteLength=s,gm.toByteArray=c,gm.fromByteArray=h;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i<a;++i)e[i]=r[i],t[r.charCodeAt(i)]=i;t[45]=62,t[95]=63;function o(f){var g=f.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=f.indexOf("=");y===-1&&(y=g);var v=y===g?0:4-y%4;return[y,v]}function s(f){var g=o(f),y=g[0],v=g[1];return(y+v)*3/4-v}function l(f,g,y){return(g+y)*3/4-y}function c(f){var g,y=o(f),v=y[0],A=y[1],w=new n(l(f,v,A)),S=0,_=A>0?v-4:v,E;for(E=0;E<_;E+=4)g=t[f.charCodeAt(E)]<<18|t[f.charCodeAt(E+1)]<<12|t[f.charCodeAt(E+2)]<<6|t[f.charCodeAt(E+3)],w[S++]=g>>16&255,w[S++]=g>>8&255,w[S++]=g&255;return A===2&&(g=t[f.charCodeAt(E)]<<2|t[f.charCodeAt(E+1)]>>4,w[S++]=g&255),A===1&&(g=t[f.charCodeAt(E)]<<10|t[f.charCodeAt(E+1)]<<4|t[f.charCodeAt(E+2)]>>2,w[S++]=g>>8&255,w[S++]=g&255),w}function u(f){return e[f>>18&63]+e[f>>12&63]+e[f>>6&63]+e[f&63]}function d(f,g,y){for(var v,A=[],w=g;w<y;w+=3)v=(f[w]<<16&16711680)+(f[w+1]<<8&65280)+(f[w+2]&255),A.push(u(v));return A.join("")}function h(f){for(var g,y=f.length,v=y%3,A=[],w=16383,S=0,_=y-v;S<_;S+=w)A.push(d(f,S,S+w>_?_:S+w));return v===1?(g=f[y-1],A.push(e[g>>2]+e[g<<4&63]+"==")):v===2&&(g=(f[y-2]<<8)+f[y-1],A.push(e[g>>10]+e[g>>4&63]+e[g<<2&63]+"=")),A.join("")}return gm}function bx(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var dD={exports:{}};/*!--JSZip v3.10.1 - A JavaScript class for generating and reading zip files-<http://stuartk.com/jszip>--(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>-Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.--JSZip uses the library pako released under the MIT license :-https://github.com/nodeca/pako/blob/main/LICENSE-*/var OM;function Mq(){return OM||(OM=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,i,a){function o(c,u){if(!i[c]){if(!r[c]){var d=typeof bx=="function"&&bx;if(!u&&d)return d(c,!0);if(s)return s(c,!0);var h=new Error("Cannot find module '"+c+"'");throw h.code="MODULE_NOT_FOUND",h}var f=i[c]={exports:{}};r[c][0].call(f.exports,function(g){var y=r[c][1][g];return o(y||g)},f,f.exports,n,r,i,a)}return i[c].exports}for(var s=typeof bx=="function"&&bx,l=0;l<a.length;l++)o(a[l]);return o})({1:[function(n,r,i){var a=n("./utils"),o=n("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(l){for(var c,u,d,h,f,g,y,v=[],A=0,w=l.length,S=w,_=a.getTypeOf(l)!=="string";A<l.length;)S=w-A,d=_?(c=l[A++],u=A<w?l[A++]:0,A<w?l[A++]:0):(c=l.charCodeAt(A++),u=A<w?l.charCodeAt(A++):0,A<w?l.charCodeAt(A++):0),h=c>>2,f=(3&c)<<4|u>>4,g=1<S?(15&u)<<2|d>>6:64,y=2<S?63&d:64,v.push(s.charAt(h)+s.charAt(f)+s.charAt(g)+s.charAt(y));return v.join("")},i.decode=function(l){var c,u,d,h,f,g,y=0,v=0,A="data:";if(l.substr(0,A.length)===A)throw new Error("Invalid base64 input, it looks like a data url.");var w,S=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===s.charAt(64)&&S--,l.charAt(l.length-2)===s.charAt(64)&&S--,S%1!=0)throw new Error("Invalid base64 input, bad content length.");for(w=o.uint8array?new Uint8Array(0|S):new Array(0|S);y<l.length;)c=s.indexOf(l.charAt(y++))<<2|(h=s.indexOf(l.charAt(y++)))>>4,u=(15&h)<<4|(f=s.indexOf(l.charAt(y++)))>>2,d=(3&f)<<6|(g=s.indexOf(l.charAt(y++))),w[v++]=c,f!==64&&(w[v++]=u),g!==64&&(w[v++]=d);return w}},{"./support":30,"./utils":32}],2:[function(n,r,i){var a=n("./external"),o=n("./stream/DataWorker"),s=n("./stream/Crc32Probe"),l=n("./stream/DataLengthProbe");function c(u,d,h,f,g){this.compressedSize=u,this.uncompressedSize=d,this.crc32=h,this.compression=f,this.compressedContent=g}c.prototype={getContentWorker:function(){var u=new o(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),d=this;return u.on("end",function(){if(this.streamInfo.data_length!==d.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new o(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(u,d,h){return u.pipe(new s).pipe(new l("uncompressedSize")).pipe(d.compressWorker(h)).pipe(new l("compressedSize")).withStreamInfo("compression",d)},r.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var a=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var a=n("./utils"),o=(function(){for(var s,l=[],c=0;c<256;c++){s=c;for(var u=0;u<8;u++)s=1&s?3988292384^s>>>1:s>>>1;l[c]=s}return l})();r.exports=function(s,l){return s!==void 0&&s.length?a.getTypeOf(s)!=="string"?(function(c,u,d,h){var f=o,g=h+d;c^=-1;for(var y=h;y<g;y++)c=c>>>8^f[255&(c^u[y])];return-1^c})(0|l,s,s.length,0):(function(c,u,d,h){var f=o,g=h+d;c^=-1;for(var y=h;y<g;y++)c=c>>>8^f[255&(c^u.charCodeAt(y))];return-1^c})(0|l,s,s.length,0):0}},{"./utils":32}],5:[function(n,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,r,i){var a=null;a=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:a}},{lie:37}],7:[function(n,r,i){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=n("pako"),s=n("./utils"),l=n("./stream/GenericWorker"),c=a?"uint8array":"array";function u(d,h){l.call(this,"FlateWorker/"+d),this._pako=null,this._pakoAction=d,this._pakoOptions=h,this.meta={}}i.magic="\b\0",s.inherits(u,l),u.prototype.processChunk=function(d){this.meta=d.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(c,d.data),!1)},u.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var d=this;this._pako.onData=function(h){d.push({data:h,meta:d.meta})}},i.compressWorker=function(d){return new u("Deflate",d)},i.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function a(f,g){var y,v="";for(y=0;y<g;y++)v+=String.fromCharCode(255&f),f>>>=8;return v}function o(f,g,y,v,A,w){var S,_,E=f.file,T=f.compression,D=w!==c.utf8encode,I=s.transformTo("string",w(E.name)),j=s.transformTo("string",c.utf8encode(E.name)),R=E.comment,z=s.transformTo("string",w(R)),B=s.transformTo("string",c.utf8encode(R)),W=j.length!==E.name.length,P=B.length!==R.length,Z="",Q="",X="",q=E.dir,te=E.date,J={crc32:0,compressedSize:0,uncompressedSize:0};g&&!y||(J.crc32=f.crc32,J.compressedSize=f.compressedSize,J.uncompressedSize=f.uncompressedSize);var ee=0;g&&(ee|=8),D||!W&&!P||(ee|=2048);var le=0,G=0;q&&(le|=16),A==="UNIX"?(G=798,le|=(function(ge,ue){var ce=ge;return ge||(ce=ue?16893:33204),(65535&ce)<<16})(E.unixPermissions,q)):(G=20,le|=(function(ge){return 63&(ge||0)})(E.dosPermissions)),S=te.getUTCHours(),S<<=6,S|=te.getUTCMinutes(),S<<=5,S|=te.getUTCSeconds()/2,_=te.getUTCFullYear()-1980,_<<=4,_|=te.getUTCMonth()+1,_<<=5,_|=te.getUTCDate(),W&&(Q=a(1,1)+a(u(I),4)+j,Z+="up"+a(Q.length,2)+Q),P&&(X=a(1,1)+a(u(z),4)+B,Z+="uc"+a(X.length,2)+X);var xe="";return xe+=`-\0`,xe+=a(ee,2),xe+=T.magic,xe+=a(S,2),xe+=a(_,2),xe+=a(J.crc32,4),xe+=a(J.compressedSize,4),xe+=a(J.uncompressedSize,4),xe+=a(I.length,2),xe+=a(Z.length,2),{fileRecord:d.LOCAL_FILE_HEADER+xe+I+Z,dirRecord:d.CENTRAL_FILE_HEADER+a(G,2)+xe+a(z.length,2)+"\0\0\0\0"+a(le,4)+a(v,4)+I+Z+z}}var s=n("../utils"),l=n("../stream/GenericWorker"),c=n("../utf8"),u=n("../crc32"),d=n("../signature");function h(f,g,y,v){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=y,this.encodeFileName=v,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(h,l),h.prototype.push=function(f){var g=f.meta.percent||0,y=this.entriesCount,v=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,l.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:y?(g+100*(y-v-1))/y:100}}))},h.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var g=this.streamFiles&&!f.file.dir;if(g){var y=o(f,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:y.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(f){this.accumulate=!1;var g=this.streamFiles&&!f.file.dir,y=o(f,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(y.dirRecord),g)this.push({data:(function(v){return d.DATA_DESCRIPTOR+a(v.crc32,4)+a(v.compressedSize,4)+a(v.uncompressedSize,4)})(f),meta:{percent:100}});else for(this.push({data:y.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var f=this.bytesWritten,g=0;g<this.dirRecords.length;g++)this.push({data:this.dirRecords[g],meta:{percent:100}});var y=this.bytesWritten-f,v=(function(A,w,S,_,E){var T=s.transformTo("string",E(_));return d.CENTRAL_DIRECTORY_END+"\0\0\0\0"+a(A,2)+a(A,2)+a(w,4)+a(S,4)+a(T.length,2)+T})(this.dirRecords.length,y,f,this.zipComment,this.encodeFileName);this.push({data:v,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(f){this._sources.push(f);var g=this;return f.on("data",function(y){g.processChunk(y)}),f.on("end",function(){g.closedSource(g.previous.streamInfo),g._sources.length?g.prepareNextSource():g.end()}),f.on("error",function(y){g.error(y)}),this},h.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(f){var g=this._sources;if(!l.prototype.error.call(this,f))return!1;for(var y=0;y<g.length;y++)try{g[y].error(f)}catch{}return!0},h.prototype.lock=function(){l.prototype.lock.call(this);for(var f=this._sources,g=0;g<f.length;g++)f[g].lock()},r.exports=h},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var a=n("../compressions"),o=n("./ZipFileWorker");i.generateWorker=function(s,l,c){var u=new o(l.streamFiles,c,l.platform,l.encodeFileName),d=0;try{s.forEach(function(h,f){d++;var g=(function(w,S){var _=w||S,E=a[_];if(!E)throw new Error(_+" is not a valid compression method !");return E})(f.options.compression,l.compression),y=f.options.compressionOptions||l.compressionOptions||{},v=f.dir,A=f.date;f._compressWorker(g,y).withStreamInfo("file",{name:h,dir:v,date:A,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(u)}),u.entriesCount=d}catch(h){u.error(h)}return u}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,i){function a(){if(!(this instanceof a))return new a;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new a;for(var s in this)typeof this[s]!="function"&&(o[s]=this[s]);return o}}(a.prototype=n("./object")).loadAsync=n("./load"),a.support=n("./support"),a.defaults=n("./defaults"),a.version="3.10.1",a.loadAsync=function(o,s){return new a().loadAsync(o,s)},a.external=n("./external"),r.exports=a},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var a=n("./utils"),o=n("./external"),s=n("./utf8"),l=n("./zipEntries"),c=n("./stream/Crc32Probe"),u=n("./nodejsUtils");function d(h){return new o.Promise(function(f,g){var y=h.decompressed.getContentWorker().pipe(new c);y.on("error",function(v){g(v)}).on("end",function(){y.streamInfo.crc32!==h.decompressed.crc32?g(new Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}r.exports=function(h,f){var g=this;return f=a.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),u.isNode&&u.isStream(h)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):a.prepareContent("the loaded zip file",h,!0,f.optimizedBinaryString,f.base64).then(function(y){var v=new l(f);return v.load(y),v}).then(function(y){var v=[o.Promise.resolve(y)],A=y.files;if(f.checkCRC32)for(var w=0;w<A.length;w++)v.push(d(A[w]));return o.Promise.all(v)}).then(function(y){for(var v=y.shift(),A=v.files,w=0;w<A.length;w++){var S=A[w],_=S.fileNameStr,E=a.resolve(S.fileNameStr);g.file(E,S.decompressed,{binary:!0,optimizedBinaryString:!0,date:S.date,dir:S.dir,comment:S.fileCommentStr.length?S.fileCommentStr:null,unixPermissions:S.unixPermissions,dosPermissions:S.dosPermissions,createFolders:f.createFolders}),S.dir||(g.file(E).unsafeOriginalName=_)}return v.zipComment.length&&(g.comment=v.zipComment),g})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var a=n("../utils"),o=n("../stream/GenericWorker");function s(l,c){o.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(c)}a.inherits(s,o),s.prototype._bindStream=function(l){var c=this;(this._stream=l).pause(),l.on("data",function(u){c.push({data:u,meta:{percent:0}})}).on("error",function(u){c.isPaused?this.generatedError=u:c.error(u)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},s.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var a=n("readable-stream").Readable;function o(s,l,c){a.call(this,l),this._helper=s;var u=this;s.on("data",function(d,h){u.push(d)||u._helper.pause(),c&&c(h)}).on("error",function(d){u.emit("error",d)}).on("end",function(){u.push(null)})}n("../utils").inherits(o,a),o.prototype._read=function(){this._helper.resume()},r.exports=o},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(a,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(a,o);if(typeof a=="number")throw new Error('The "data" argument must not be a number');return new Buffer(a,o)},allocBuffer:function(a){if(Buffer.alloc)return Buffer.alloc(a);var o=new Buffer(a);return o.fill(0),o},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&typeof a.on=="function"&&typeof a.pause=="function"&&typeof a.resume=="function"}}},{}],15:[function(n,r,i){function a(E,T,D){var I,j=s.getTypeOf(T),R=s.extend(D||{},u);R.date=R.date||new Date,R.compression!==null&&(R.compression=R.compression.toUpperCase()),typeof R.unixPermissions=="string"&&(R.unixPermissions=parseInt(R.unixPermissions,8)),R.unixPermissions&&16384&R.unixPermissions&&(R.dir=!0),R.dosPermissions&&16&R.dosPermissions&&(R.dir=!0),R.dir&&(E=A(E)),R.createFolders&&(I=v(E))&&w.call(this,I,!0);var z=j==="string"&&R.binary===!1&&R.base64===!1;D&&D.binary!==void 0||(R.binary=!z),(T instanceof d&&T.uncompressedSize===0||R.dir||!T||T.length===0)&&(R.base64=!1,R.binary=!0,T="",R.compression="STORE",j="string");var B=null;B=T instanceof d||T instanceof l?T:g.isNode&&g.isStream(T)?new y(E,T):s.prepareContent(E,T,R.binary,R.optimizedBinaryString,R.base64);var W=new h(E,B,R);this.files[E]=W}var o=n("./utf8"),s=n("./utils"),l=n("./stream/GenericWorker"),c=n("./stream/StreamHelper"),u=n("./defaults"),d=n("./compressedObject"),h=n("./zipObject"),f=n("./generate"),g=n("./nodejsUtils"),y=n("./nodejs/NodejsStreamInputAdapter"),v=function(E){E.slice(-1)==="/"&&(E=E.substring(0,E.length-1));var T=E.lastIndexOf("/");return 0<T?E.substring(0,T):""},A=function(E){return E.slice(-1)!=="/"&&(E+="/"),E},w=function(E,T){return T=T!==void 0?T:u.createFolders,E=A(E),this.files[E]||a.call(this,E,null,{dir:!0,createFolders:T}),this.files[E]};function S(E){return Object.prototype.toString.call(E)==="[object RegExp]"}var _={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(E){var T,D,I;for(T in this.files)I=this.files[T],(D=T.slice(this.root.length,T.length))&&T.slice(0,this.root.length)===this.root&&E(D,I)},filter:function(E){var T=[];return this.forEach(function(D,I){E(D,I)&&T.push(I)}),T},file:function(E,T,D){if(arguments.length!==1)return E=this.root+E,a.call(this,E,T,D),this;if(S(E)){var I=E;return this.filter(function(R,z){return!z.dir&&I.test(R)})}var j=this.files[this.root+E];return j&&!j.dir?j:null},folder:function(E){if(!E)return this;if(S(E))return this.filter(function(j,R){return R.dir&&E.test(j)});var T=this.root+E,D=w.call(this,T),I=this.clone();return I.root=D.name,I},remove:function(E){E=this.root+E;var T=this.files[E];if(T||(E.slice(-1)!=="/"&&(E+="/"),T=this.files[E]),T&&!T.dir)delete this.files[E];else for(var D=this.filter(function(j,R){return R.name.slice(0,E.length)===E}),I=0;I<D.length;I++)delete this.files[D[I].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(E){var T,D={};try{if((D=s.extend(E||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=D.type.toLowerCase(),D.compression=D.compression.toUpperCase(),D.type==="binarystring"&&(D.type="string"),!D.type)throw new Error("No output type specified.");s.checkSupport(D.type),D.platform!=="darwin"&&D.platform!=="freebsd"&&D.platform!=="linux"&&D.platform!=="sunos"||(D.platform="UNIX"),D.platform==="win32"&&(D.platform="DOS");var I=D.comment||this.comment||"";T=f.generateWorker(this,D,I)}catch(j){(T=new l("error")).error(j)}return new c(T,D.type||"string",D.mimeType)},generateAsync:function(E,T){return this.generateInternalStream(E).accumulate(T)},generateNodeStream:function(E,T){return(E=E||{}).type||(E.type="nodebuffer"),this.generateInternalStream(E).toNodejsStream(T)}};r.exports=_},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,i){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,i){var a=n("./DataReader");function o(s){a.call(this,s);for(var l=0;l<this.data.length;l++)s[l]=255&s[l]}n("../utils").inherits(o,a),o.prototype.byteAt=function(s){return this.data[this.zero+s]},o.prototype.lastIndexOfSignature=function(s){for(var l=s.charCodeAt(0),c=s.charCodeAt(1),u=s.charCodeAt(2),d=s.charCodeAt(3),h=this.length-4;0<=h;--h)if(this.data[h]===l&&this.data[h+1]===c&&this.data[h+2]===u&&this.data[h+3]===d)return h-this.zero;return-1},o.prototype.readAndCheckSignature=function(s){var l=s.charCodeAt(0),c=s.charCodeAt(1),u=s.charCodeAt(2),d=s.charCodeAt(3),h=this.readData(4);return l===h[0]&&c===h[1]&&u===h[2]&&d===h[3]},o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=o},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var a=n("../utils");function o(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var l,c=0;for(this.checkOffset(s),l=this.index+s-1;l>=this.index;l--)c=(c<<8)+this.byteAt(l);return this.index+=s,c},readString:function(s){return a.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},r.exports=o},{"../utils":32}],19:[function(n,r,i){var a=n("./Uint8ArrayReader");function o(s){a.call(this,s)}n("../utils").inherits(o,a),o.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var a=n("./DataReader");function o(s){a.call(this,s)}n("../utils").inherits(o,a),o.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},o.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},o.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},o.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=o},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var a=n("./ArrayReader");function o(s){a.call(this,s)}n("../utils").inherits(o,a),o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var a=n("../utils"),o=n("../support"),s=n("./ArrayReader"),l=n("./StringReader"),c=n("./NodeBufferReader"),u=n("./Uint8ArrayReader");r.exports=function(d){var h=a.getTypeOf(d);return a.checkSupport(h),h!=="string"||o.uint8array?h==="nodebuffer"?new c(d):o.uint8array?new u(a.transformTo("uint8array",d)):new s(a.transformTo("array",d)):new l(d)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,i){var a=n("./GenericWorker"),o=n("../utils");function s(l){a.call(this,"ConvertWorker to "+l),this.destType=l}o.inherits(s,a),s.prototype.processChunk=function(l){this.push({data:o.transformTo(this.destType,l.data),meta:l.meta})},r.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var a=n("./GenericWorker"),o=n("../crc32");function s(){a.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(s,a),s.prototype.processChunk=function(l){this.streamInfo.crc32=o(l.data,this.streamInfo.crc32||0),this.push(l)},r.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var a=n("../utils"),o=n("./GenericWorker");function s(l){o.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}a.inherits(s,o),s.prototype.processChunk=function(l){if(l){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+l.data.length}o.prototype.processChunk.call(this,l)},r.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var a=n("../utils"),o=n("./GenericWorker");function s(l){o.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(u){c.dataIsReady=!0,c.data=u,c.max=u&&u.length||0,c.type=a.getTypeOf(u),c.isPaused||c._tickAndRepeat()},function(u){c.error(u)})}a.inherits(s,o),s.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,a.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(a.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,c);break;case"uint8array":l=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":l=this.data.slice(this.index,c)}return this.index=c,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function a(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}a.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,s){return this._listeners[o].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,s){if(this._listeners[o])for(var l=0;l<this._listeners[o].length;l++)this._listeners[o][l].call(this,s)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var s=this;return o.on("data",function(l){s.processChunk(l)}),o.on("end",function(){s.end()}),o.on("error",function(l){s.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,s){return this.extraStreamInfo[o]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},r.exports=a},{}],29:[function(n,r,i){var a=n("../utils"),o=n("./ConvertWorker"),s=n("./GenericWorker"),l=n("../base64"),c=n("../support"),u=n("../external"),d=null;if(c.nodestream)try{d=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(g,y){return new u.Promise(function(v,A){var w=[],S=g._internalType,_=g._outputType,E=g._mimeType;g.on("data",function(T,D){w.push(T),y&&y(D)}).on("error",function(T){w=[],A(T)}).on("end",function(){try{var T=(function(D,I,j){switch(D){case"blob":return a.newBlob(a.transformTo("arraybuffer",I),j);case"base64":return l.encode(I);default:return a.transformTo(D,I)}})(_,(function(D,I){var j,R=0,z=null,B=0;for(j=0;j<I.length;j++)B+=I[j].length;switch(D){case"string":return I.join("");case"array":return Array.prototype.concat.apply([],I);case"uint8array":for(z=new Uint8Array(B),j=0;j<I.length;j++)z.set(I[j],R),R+=I[j].length;return z;case"nodebuffer":return Buffer.concat(I);default:throw new Error("concat : unsupported type '"+D+"'")}})(S,w),E);v(T)}catch(D){A(D)}w=[]}).resume()})}function f(g,y,v){var A=y;switch(y){case"blob":case"arraybuffer":A="uint8array";break;case"base64":A="string"}try{this._internalType=A,this._outputType=y,this._mimeType=v,a.checkSupport(A),this._worker=g.pipe(new o(A)),g.lock()}catch(w){this._worker=new s("error"),this._worker.error(w)}}f.prototype={accumulate:function(g){return h(this,g)},on:function(g,y){var v=this;return g==="data"?this._worker.on(g,function(A){y.call(v,A.data,A.meta)}):this._worker.on(g,function(){a.delay(y,arguments,v)}),this},resume:function(){return a.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(g){if(a.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new d(this,{objectMode:this._outputType!=="nodebuffer"},g)}},r.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var a=new ArrayBuffer(0);try{i.blob=new Blob([a],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(a),i.blob=o.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,i){for(var a=n("./utils"),o=n("./support"),s=n("./nodejsUtils"),l=n("./stream/GenericWorker"),c=new Array(256),u=0;u<256;u++)c[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;c[254]=c[254]=1;function d(){l.call(this,"utf-8 decode"),this.leftOver=null}function h(){l.call(this,"utf-8 encode")}i.utf8encode=function(f){return o.nodebuffer?s.newBufferFrom(f,"utf-8"):(function(g){var y,v,A,w,S,_=g.length,E=0;for(w=0;w<_;w++)(64512&(v=g.charCodeAt(w)))==55296&&w+1<_&&(64512&(A=g.charCodeAt(w+1)))==56320&&(v=65536+(v-55296<<10)+(A-56320),w++),E+=v<128?1:v<2048?2:v<65536?3:4;for(y=o.uint8array?new Uint8Array(E):new Array(E),w=S=0;S<E;w++)(64512&(v=g.charCodeAt(w)))==55296&&w+1<_&&(64512&(A=g.charCodeAt(w+1)))==56320&&(v=65536+(v-55296<<10)+(A-56320),w++),v<128?y[S++]=v:(v<2048?y[S++]=192|v>>>6:(v<65536?y[S++]=224|v>>>12:(y[S++]=240|v>>>18,y[S++]=128|v>>>12&63),y[S++]=128|v>>>6&63),y[S++]=128|63&v);return y})(f)},i.utf8decode=function(f){return o.nodebuffer?a.transformTo("nodebuffer",f).toString("utf-8"):(function(g){var y,v,A,w,S=g.length,_=new Array(2*S);for(y=v=0;y<S;)if((A=g[y++])<128)_[v++]=A;else if(4<(w=c[A]))_[v++]=65533,y+=w-1;else{for(A&=w===2?31:w===3?15:7;1<w&&y<S;)A=A<<6|63&g[y++],w--;1<w?_[v++]=65533:A<65536?_[v++]=A:(A-=65536,_[v++]=55296|A>>10&1023,_[v++]=56320|1023&A)}return _.length!==v&&(_.subarray?_=_.subarray(0,v):_.length=v),a.applyFromCharCode(_)})(f=a.transformTo(o.uint8array?"uint8array":"array",f))},a.inherits(d,l),d.prototype.processChunk=function(f){var g=a.transformTo(o.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var y=g;(g=new Uint8Array(y.length+this.leftOver.length)).set(this.leftOver,0),g.set(y,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var v=(function(w,S){var _;for((S=S||w.length)>w.length&&(S=w.length),_=S-1;0<=_&&(192&w[_])==128;)_--;return _<0||_===0?S:_+c[w[_]]>S?_:S})(g),A=g;v!==g.length&&(o.uint8array?(A=g.subarray(0,v),this.leftOver=g.subarray(v,g.length)):(A=g.slice(0,v),this.leftOver=g.slice(v,g.length))),this.push({data:i.utf8decode(A),meta:f.meta})},d.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=d,a.inherits(h,l),h.prototype.processChunk=function(f){this.push({data:i.utf8encode(f.data),meta:f.meta})},i.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var a=n("./support"),o=n("./base64"),s=n("./nodejsUtils"),l=n("./external");function c(y){return y}function u(y,v){for(var A=0;A<y.length;++A)v[A]=255&y.charCodeAt(A);return v}n("setimmediate"),i.newBlob=function(y,v){i.checkSupport("blob");try{return new Blob([y],{type:v})}catch{try{var A=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return A.append(y),A.getBlob(v)}catch{throw new Error("Bug : can't construct the Blob.")}}};var d={stringifyByChunk:function(y,v,A){var w=[],S=0,_=y.length;if(_<=A)return String.fromCharCode.apply(null,y);for(;S<_;)v==="array"||v==="nodebuffer"?w.push(String.fromCharCode.apply(null,y.slice(S,Math.min(S+A,_)))):w.push(String.fromCharCode.apply(null,y.subarray(S,Math.min(S+A,_)))),S+=A;return w.join("")},stringifyByChar:function(y){for(var v="",A=0;A<y.length;A++)v+=String.fromCharCode(y[A]);return v},applyCanBeUsed:{uint8array:(function(){try{return a.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return a.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}})()}};function h(y){var v=65536,A=i.getTypeOf(y),w=!0;if(A==="uint8array"?w=d.applyCanBeUsed.uint8array:A==="nodebuffer"&&(w=d.applyCanBeUsed.nodebuffer),w)for(;1<v;)try{return d.stringifyByChunk(y,A,v)}catch{v=Math.floor(v/2)}return d.stringifyByChar(y)}function f(y,v){for(var A=0;A<y.length;A++)v[A]=y[A];return v}i.applyFromCharCode=h;var g={};g.string={string:c,array:function(y){return u(y,new Array(y.length))},arraybuffer:function(y){return g.string.uint8array(y).buffer},uint8array:function(y){return u(y,new Uint8Array(y.length))},nodebuffer:function(y){return u(y,s.allocBuffer(y.length))}},g.array={string:h,array:c,arraybuffer:function(y){return new Uint8Array(y).buffer},uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return s.newBufferFrom(y)}},g.arraybuffer={string:function(y){return h(new Uint8Array(y))},array:function(y){return f(new Uint8Array(y),new Array(y.byteLength))},arraybuffer:c,uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return s.newBufferFrom(new Uint8Array(y))}},g.uint8array={string:h,array:function(y){return f(y,new Array(y.length))},arraybuffer:function(y){return y.buffer},uint8array:c,nodebuffer:function(y){return s.newBufferFrom(y)}},g.nodebuffer={string:h,array:function(y){return f(y,new Array(y.length))},arraybuffer:function(y){return g.nodebuffer.uint8array(y).buffer},uint8array:function(y){return f(y,new Uint8Array(y.length))},nodebuffer:c},i.transformTo=function(y,v){if(v=v||"",!y)return v;i.checkSupport(y);var A=i.getTypeOf(v);return g[A][y](v)},i.resolve=function(y){for(var v=y.split("/"),A=[],w=0;w<v.length;w++){var S=v[w];S==="."||S===""&&w!==0&&w!==v.length-1||(S===".."?A.pop():A.push(S))}return A.join("/")},i.getTypeOf=function(y){return typeof y=="string"?"string":Object.prototype.toString.call(y)==="[object Array]"?"array":a.nodebuffer&&s.isBuffer(y)?"nodebuffer":a.uint8array&&y instanceof Uint8Array?"uint8array":a.arraybuffer&&y instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(y){if(!a[y.toLowerCase()])throw new Error(y+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(y){var v,A,w="";for(A=0;A<(y||"").length;A++)w+="\\x"+((v=y.charCodeAt(A))<16?"0":"")+v.toString(16).toUpperCase();return w},i.delay=function(y,v,A){setImmediate(function(){y.apply(A||null,v||[])})},i.inherits=function(y,v){function A(){}A.prototype=v.prototype,y.prototype=new A},i.extend=function(){var y,v,A={};for(y=0;y<arguments.length;y++)for(v in arguments[y])Object.prototype.hasOwnProperty.call(arguments[y],v)&&A[v]===void 0&&(A[v]=arguments[y][v]);return A},i.prepareContent=function(y,v,A,w,S){return l.Promise.resolve(v).then(function(_){return a.blob&&(_ instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(_))!==-1)&&typeof FileReader<"u"?new l.Promise(function(E,T){var D=new FileReader;D.onload=function(I){E(I.target.result)},D.onerror=function(I){T(I.target.error)},D.readAsArrayBuffer(_)}):_}).then(function(_){var E=i.getTypeOf(_);return E?(E==="arraybuffer"?_=i.transformTo("uint8array",_):E==="string"&&(S?_=o.decode(_):A&&w!==!0&&(_=(function(T){return u(T,a.uint8array?new Uint8Array(T.length):new Array(T.length))})(_))),_):l.Promise.reject(new Error("Can't read the data of '"+y+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,i){var a=n("./reader/readerFor"),o=n("./utils"),s=n("./signature"),l=n("./zipEntry"),c=n("./support");function u(d){this.files=[],this.loadOptions=d}u.prototype={checkSignature:function(d){if(!this.reader.readAndCheckSignature(d)){this.reader.index-=4;var h=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(h)+", expected "+o.pretty(d)+")")}},isSignature:function(d,h){var f=this.reader.index;this.reader.setIndex(d);var g=this.reader.readString(4)===h;return this.reader.setIndex(f),g},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var d=this.reader.readData(this.zipCommentLength),h=c.uint8array?"uint8array":"array",f=o.transformTo(h,d);this.zipComment=this.loadOptions.decodeFileName(f)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var d,h,f,g=this.zip64EndOfCentralSize-44;0<g;)d=this.reader.readInt(2),h=this.reader.readInt(4),f=this.reader.readData(h),this.zip64ExtensibleData[d]={id:d,length:h,value:f}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var d,h;for(d=0;d<this.files.length;d++)h=this.files[d],this.reader.setIndex(h.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),h.readLocalPart(this.reader),h.handleUTF8(),h.processAttributes()},readCentralDir:function(){var d;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(d=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(d);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var d=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(d<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(d);var h=d;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(d=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(d),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var g=h-f;if(0<g)this.isSignature(h,s.CENTRAL_FILE_HEADER)||(this.reader.zero=g);else if(g<0)throw new Error("Corrupted zip: missing "+Math.abs(g)+" bytes.")},prepareReader:function(d){this.reader=a(d)},load:function(d){this.prepareReader(d),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var a=n("./reader/readerFor"),o=n("./utils"),s=n("./compressedObject"),l=n("./crc32"),c=n("./utf8"),u=n("./compressions"),d=n("./support");function h(f,g){this.options=f,this.loadOptions=g}h.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(f){var g,y;if(f.skip(22),this.fileNameLength=f.readInt(2),y=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(y),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((g=(function(v){for(var A in u)if(Object.prototype.hasOwnProperty.call(u,A)&&u[A].magic===v)return u[A];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,g,f.readData(this.compressedSize))},readCentralPart:function(f){this.versionMadeBy=f.readInt(2),f.skip(2),this.bitFlag=f.readInt(2),this.compressionMethod=f.readString(2),this.date=f.readDate(),this.crc32=f.readInt(4),this.compressedSize=f.readInt(4),this.uncompressedSize=f.readInt(4);var g=f.readInt(2);if(this.extraFieldsLength=f.readInt(2),this.fileCommentLength=f.readInt(2),this.diskNumberStart=f.readInt(2),this.internalFileAttributes=f.readInt(2),this.externalFileAttributes=f.readInt(4),this.localHeaderOffset=f.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");f.skip(g),this.readExtraFields(f),this.parseZIP64ExtraField(f),this.fileComment=f.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var f=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=a(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var g,y,v,A=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<A;)g=f.readInt(2),y=f.readInt(2),v=f.readData(y),this.extraFields[g]={id:g,length:y,value:v};f.setIndex(A)},handleUTF8:function(){var f=d.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var g=this.findExtraFieldUnicodePath();if(g!==null)this.fileNameStr=g;else{var y=o.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(y)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var A=o.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(A)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var g=a(f.value);return g.readInt(1)!==1||l(this.fileName)!==g.readInt(4)?null:c.utf8decode(g.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var g=a(f.value);return g.readInt(1)!==1||l(this.fileComment)!==g.readInt(4)?null:c.utf8decode(g.readData(f.length-5))}return null}},r.exports=h},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,i){function a(g,y,v){this.name=g,this.dir=v.dir,this.date=v.date,this.comment=v.comment,this.unixPermissions=v.unixPermissions,this.dosPermissions=v.dosPermissions,this._data=y,this._dataBinary=v.binary,this.options={compression:v.compression,compressionOptions:v.compressionOptions}}var o=n("./stream/StreamHelper"),s=n("./stream/DataWorker"),l=n("./utf8"),c=n("./compressedObject"),u=n("./stream/GenericWorker");a.prototype={internalStream:function(g){var y=null,v="string";try{if(!g)throw new Error("No output type specified.");var A=(v=g.toLowerCase())==="string"||v==="text";v!=="binarystring"&&v!=="text"||(v="string"),y=this._decompressWorker();var w=!this._dataBinary;w&&!A&&(y=y.pipe(new l.Utf8EncodeWorker)),!w&&A&&(y=y.pipe(new l.Utf8DecodeWorker))}catch(S){(y=new u("error")).error(S)}return new o(y,v,"")},async:function(g,y){return this.internalStream(g).accumulate(y)},nodeStream:function(g,y){return this.internalStream(g||"nodebuffer").toNodejsStream(y)},_compressWorker:function(g,y){if(this._data instanceof c&&this._data.compression.magic===g.magic)return this._data.getCompressedWorker();var v=this._decompressWorker();return this._dataBinary||(v=v.pipe(new l.Utf8EncodeWorker)),c.createWorkerFrom(v,g,y)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof u?this._data:new s(this._data)}};for(var d=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<d.length;f++)a.prototype[d[f]]=h;r.exports=a},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(a){var o,s,l=a.MutationObserver||a.WebKitMutationObserver;if(l){var c=0,u=new l(g),d=a.document.createTextNode("");u.observe(d,{characterData:!0}),o=function(){d.data=c=++c%2}}else if(a.setImmediate||a.MessageChannel===void 0)o="document"in a&&"onreadystatechange"in a.document.createElement("script")?function(){var y=a.document.createElement("script");y.onreadystatechange=function(){g(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},a.document.documentElement.appendChild(y)}:function(){setTimeout(g,0)};else{var h=new a.MessageChannel;h.port1.onmessage=g,o=function(){h.port2.postMessage(0)}}var f=[];function g(){var y,v;s=!0;for(var A=f.length;A;){for(v=f,f=[],y=-1;++y<A;)v[y]();A=f.length}s=!1}r.exports=function(y){f.push(y)!==1||s||o()}}).call(this,typeof zu<"u"?zu:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var a=n("immediate");function o(){}var s={},l=["REJECTED"],c=["FULFILLED"],u=["PENDING"];function d(A){if(typeof A!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,A!==o&&y(this,A)}function h(A,w,S){this.promise=A,typeof w=="function"&&(this.onFulfilled=w,this.callFulfilled=this.otherCallFulfilled),typeof S=="function"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}function f(A,w,S){a(function(){var _;try{_=w(S)}catch(E){return s.reject(A,E)}_===A?s.reject(A,new TypeError("Cannot resolve promise with itself")):s.resolve(A,_)})}function g(A){var w=A&&A.then;if(A&&(typeof A=="object"||typeof A=="function")&&typeof w=="function")return function(){w.apply(A,arguments)}}function y(A,w){var S=!1;function _(D){S||(S=!0,s.reject(A,D))}function E(D){S||(S=!0,s.resolve(A,D))}var T=v(function(){w(E,_)});T.status==="error"&&_(T.value)}function v(A,w){var S={};try{S.value=A(w),S.status="success"}catch(_){S.status="error",S.value=_}return S}(r.exports=d).prototype.finally=function(A){if(typeof A!="function")return this;var w=this.constructor;return this.then(function(S){return w.resolve(A()).then(function(){return S})},function(S){return w.resolve(A()).then(function(){throw S})})},d.prototype.catch=function(A){return this.then(null,A)},d.prototype.then=function(A,w){if(typeof A!="function"&&this.state===c||typeof w!="function"&&this.state===l)return this;var S=new this.constructor(o);return this.state!==u?f(S,this.state===c?A:w,this.outcome):this.queue.push(new h(S,A,w)),S},h.prototype.callFulfilled=function(A){s.resolve(this.promise,A)},h.prototype.otherCallFulfilled=function(A){f(this.promise,this.onFulfilled,A)},h.prototype.callRejected=function(A){s.reject(this.promise,A)},h.prototype.otherCallRejected=function(A){f(this.promise,this.onRejected,A)},s.resolve=function(A,w){var S=v(g,w);if(S.status==="error")return s.reject(A,S.value);var _=S.value;if(_)y(A,_);else{A.state=c,A.outcome=w;for(var E=-1,T=A.queue.length;++E<T;)A.queue[E].callFulfilled(w)}return A},s.reject=function(A,w){A.state=l,A.outcome=w;for(var S=-1,_=A.queue.length;++S<_;)A.queue[S].callRejected(w);return A},d.resolve=function(A){return A instanceof this?A:s.resolve(new this(o),A)},d.reject=function(A){var w=new this(o);return s.reject(w,A)},d.all=function(A){var w=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=A.length,_=!1;if(!S)return this.resolve([]);for(var E=new Array(S),T=0,D=-1,I=new this(o);++D<S;)j(A[D],D);return I;function j(R,z){w.resolve(R).then(function(B){E[z]=B,++T!==S||_||(_=!0,s.resolve(I,E))},function(B){_||(_=!0,s.reject(I,B))})}},d.race=function(A){var w=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=A.length,_=!1;if(!S)return this.resolve([]);for(var E=-1,T=new this(o);++E<S;)D=A[E],w.resolve(D).then(function(I){_||(_=!0,s.resolve(T,I))},function(I){_||(_=!0,s.reject(T,I))});var D;return T}},{immediate:36}],38:[function(n,r,i){var a={};(0,n("./lib/utils/common").assign)(a,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=a},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var a=n("./zlib/deflate"),o=n("./utils/common"),s=n("./utils/strings"),l=n("./zlib/messages"),c=n("./zlib/zstream"),u=Object.prototype.toString,d=0,h=-1,f=0,g=8;function y(A){if(!(this instanceof y))return new y(A);this.options=o.assign({level:h,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},A||{});var w=this.options;w.raw&&0<w.windowBits?w.windowBits=-w.windowBits:w.gzip&&0<w.windowBits&&w.windowBits<16&&(w.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var S=a.deflateInit2(this.strm,w.level,w.method,w.windowBits,w.memLevel,w.strategy);if(S!==d)throw new Error(l[S]);if(w.header&&a.deflateSetHeader(this.strm,w.header),w.dictionary){var _;if(_=typeof w.dictionary=="string"?s.string2buf(w.dictionary):u.call(w.dictionary)==="[object ArrayBuffer]"?new Uint8Array(w.dictionary):w.dictionary,(S=a.deflateSetDictionary(this.strm,_))!==d)throw new Error(l[S]);this._dict_set=!0}}function v(A,w){var S=new y(w);if(S.push(A,!0),S.err)throw S.msg||l[S.err];return S.result}y.prototype.push=function(A,w){var S,_,E=this.strm,T=this.options.chunkSize;if(this.ended)return!1;_=w===~~w?w:w===!0?4:0,typeof A=="string"?E.input=s.string2buf(A):u.call(A)==="[object ArrayBuffer]"?E.input=new Uint8Array(A):E.input=A,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new o.Buf8(T),E.next_out=0,E.avail_out=T),(S=a.deflate(E,_))!==1&&S!==d)return this.onEnd(S),!(this.ended=!0);E.avail_out!==0&&(E.avail_in!==0||_!==4&&_!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(o.shrinkBuf(E.output,E.next_out))):this.onData(o.shrinkBuf(E.output,E.next_out)))}while((0<E.avail_in||E.avail_out===0)&&S!==1);return _===4?(S=a.deflateEnd(this.strm),this.onEnd(S),this.ended=!0,S===d):_!==2||(this.onEnd(d),!(E.avail_out=0))},y.prototype.onData=function(A){this.chunks.push(A)},y.prototype.onEnd=function(A){A===d&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg},i.Deflate=y,i.deflate=v,i.deflateRaw=function(A,w){return(w=w||{}).raw=!0,v(A,w)},i.gzip=function(A,w){return(w=w||{}).gzip=!0,v(A,w)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,i){var a=n("./zlib/inflate"),o=n("./utils/common"),s=n("./utils/strings"),l=n("./zlib/constants"),c=n("./zlib/messages"),u=n("./zlib/zstream"),d=n("./zlib/gzheader"),h=Object.prototype.toString;function f(y){if(!(this instanceof f))return new f(y);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},y||{});var v=this.options;v.raw&&0<=v.windowBits&&v.windowBits<16&&(v.windowBits=-v.windowBits,v.windowBits===0&&(v.windowBits=-15)),!(0<=v.windowBits&&v.windowBits<16)||y&&y.windowBits||(v.windowBits+=32),15<v.windowBits&&v.windowBits<48&&(15&v.windowBits)==0&&(v.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var A=a.inflateInit2(this.strm,v.windowBits);if(A!==l.Z_OK)throw new Error(c[A]);this.header=new d,a.inflateGetHeader(this.strm,this.header)}function g(y,v){var A=new f(v);if(A.push(y,!0),A.err)throw A.msg||c[A.err];return A.result}f.prototype.push=function(y,v){var A,w,S,_,E,T,D=this.strm,I=this.options.chunkSize,j=this.options.dictionary,R=!1;if(this.ended)return!1;w=v===~~v?v:v===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof y=="string"?D.input=s.binstring2buf(y):h.call(y)==="[object ArrayBuffer]"?D.input=new Uint8Array(y):D.input=y,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new o.Buf8(I),D.next_out=0,D.avail_out=I),(A=a.inflate(D,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&j&&(T=typeof j=="string"?s.string2buf(j):h.call(j)==="[object ArrayBuffer]"?new Uint8Array(j):j,A=a.inflateSetDictionary(this.strm,T)),A===l.Z_BUF_ERROR&&R===!0&&(A=l.Z_OK,R=!1),A!==l.Z_STREAM_END&&A!==l.Z_OK)return this.onEnd(A),!(this.ended=!0);D.next_out&&(D.avail_out!==0&&A!==l.Z_STREAM_END&&(D.avail_in!==0||w!==l.Z_FINISH&&w!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(S=s.utf8border(D.output,D.next_out),_=D.next_out-S,E=s.buf2string(D.output,S),D.next_out=_,D.avail_out=I-_,_&&o.arraySet(D.output,D.output,S,_,0),this.onData(E)):this.onData(o.shrinkBuf(D.output,D.next_out)))),D.avail_in===0&&D.avail_out===0&&(R=!0)}while((0<D.avail_in||D.avail_out===0)&&A!==l.Z_STREAM_END);return A===l.Z_STREAM_END&&(w=l.Z_FINISH),w===l.Z_FINISH?(A=a.inflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===l.Z_OK):w!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(D.avail_out=0))},f.prototype.onData=function(y){this.chunks.push(y)},f.prototype.onEnd=function(y){y===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},i.Inflate=f,i.inflate=g,i.inflateRaw=function(y,v){return(v=v||{}).raw=!0,g(y,v)},i.ungzip=g},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,i){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(l){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var u=c.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var d in u)u.hasOwnProperty(d)&&(l[d]=u[d])}}return l},i.shrinkBuf=function(l,c){return l.length===c?l:l.subarray?l.subarray(0,c):(l.length=c,l)};var o={arraySet:function(l,c,u,d,h){if(c.subarray&&l.subarray)l.set(c.subarray(u,u+d),h);else for(var f=0;f<d;f++)l[h+f]=c[u+f]},flattenChunks:function(l){var c,u,d,h,f,g;for(c=d=0,u=l.length;c<u;c++)d+=l[c].length;for(g=new Uint8Array(d),c=h=0,u=l.length;c<u;c++)f=l[c],g.set(f,h),h+=f.length;return g}},s={arraySet:function(l,c,u,d,h){for(var f=0;f<d;f++)l[h+f]=c[u+f]},flattenChunks:function(l){return[].concat.apply([],l)}};i.setTyped=function(l){l?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,o)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(a)},{}],42:[function(n,r,i){var a=n("./common"),o=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var l=new a.Buf8(256),c=0;c<256;c++)l[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(d,h){if(h<65537&&(d.subarray&&s||!d.subarray&&o))return String.fromCharCode.apply(null,a.shrinkBuf(d,h));for(var f="",g=0;g<h;g++)f+=String.fromCharCode(d[g]);return f}l[254]=l[254]=1,i.string2buf=function(d){var h,f,g,y,v,A=d.length,w=0;for(y=0;y<A;y++)(64512&(f=d.charCodeAt(y)))==55296&&y+1<A&&(64512&(g=d.charCodeAt(y+1)))==56320&&(f=65536+(f-55296<<10)+(g-56320),y++),w+=f<128?1:f<2048?2:f<65536?3:4;for(h=new a.Buf8(w),y=v=0;v<w;y++)(64512&(f=d.charCodeAt(y)))==55296&&y+1<A&&(64512&(g=d.charCodeAt(y+1)))==56320&&(f=65536+(f-55296<<10)+(g-56320),y++),f<128?h[v++]=f:(f<2048?h[v++]=192|f>>>6:(f<65536?h[v++]=224|f>>>12:(h[v++]=240|f>>>18,h[v++]=128|f>>>12&63),h[v++]=128|f>>>6&63),h[v++]=128|63&f);return h},i.buf2binstring=function(d){return u(d,d.length)},i.binstring2buf=function(d){for(var h=new a.Buf8(d.length),f=0,g=h.length;f<g;f++)h[f]=d.charCodeAt(f);return h},i.buf2string=function(d,h){var f,g,y,v,A=h||d.length,w=new Array(2*A);for(f=g=0;f<A;)if((y=d[f++])<128)w[g++]=y;else if(4<(v=l[y]))w[g++]=65533,f+=v-1;else{for(y&=v===2?31:v===3?15:7;1<v&&f<A;)y=y<<6|63&d[f++],v--;1<v?w[g++]=65533:y<65536?w[g++]=y:(y-=65536,w[g++]=55296|y>>10&1023,w[g++]=56320|1023&y)}return u(w,g)},i.utf8border=function(d,h){var f;for((h=h||d.length)>d.length&&(h=d.length),f=h-1;0<=f&&(192&d[f])==128;)f--;return f<0||f===0?h:f+l[d[f]]>h?f:h}},{"./common":41}],43:[function(n,r,i){r.exports=function(a,o,s,l){for(var c=65535&a|0,u=a>>>16&65535|0,d=0;s!==0;){for(s-=d=2e3<s?2e3:s;u=u+(c=c+o[l++]|0)|0,--d;);c%=65521,u%=65521}return c|u<<16|0}},{}],44:[function(n,r,i){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,i){var a=(function(){for(var o,s=[],l=0;l<256;l++){o=l;for(var c=0;c<8;c++)o=1&o?3988292384^o>>>1:o>>>1;s[l]=o}return s})();r.exports=function(o,s,l,c){var u=a,d=c+l;o^=-1;for(var h=c;h<d;h++)o=o>>>8^u[255&(o^s[h])];return-1^o}},{}],46:[function(n,r,i){var a,o=n("../utils/common"),s=n("./trees"),l=n("./adler32"),c=n("./crc32"),u=n("./messages"),d=0,h=4,f=0,g=-2,y=-1,v=4,A=2,w=8,S=9,_=286,E=30,T=19,D=2*_+1,I=15,j=3,R=258,z=R+j+1,B=42,W=113,P=1,Z=2,Q=3,X=4;function q(V,ve){return V.msg=u[ve],ve}function te(V){return(V<<1)-(4<V?9:0)}function J(V){for(var ve=V.length;0<=--ve;)V[ve]=0}function ee(V){var ve=V.state,oe=ve.pending;oe>V.avail_out&&(oe=V.avail_out),oe!==0&&(o.arraySet(V.output,ve.pending_buf,ve.pending_out,oe,V.next_out),V.next_out+=oe,ve.pending_out+=oe,V.total_out+=oe,V.avail_out-=oe,ve.pending-=oe,ve.pending===0&&(ve.pending_out=0))}function le(V,ve){s._tr_flush_block(V,0<=V.block_start?V.block_start:-1,V.strstart-V.block_start,ve),V.block_start=V.strstart,ee(V.strm)}function G(V,ve){V.pending_buf[V.pending++]=ve}function xe(V,ve){V.pending_buf[V.pending++]=ve>>>8&255,V.pending_buf[V.pending++]=255&ve}function ge(V,ve){var oe,re,ne=V.max_chain_length,be=V.strstart,Ue=V.prev_length,Me=V.nice_match,Ee=V.strstart>V.w_size-z?V.strstart-(V.w_size-z):0,Se=V.window,Ce=V.w_mask,pe=V.prev,ke=V.strstart+R,Ve=Se[be+Ue-1],Xe=Se[be+Ue];V.prev_length>=V.good_match&&(ne>>=2),Me>V.lookahead&&(Me=V.lookahead);do if(Se[(oe=ve)+Ue]===Xe&&Se[oe+Ue-1]===Ve&&Se[oe]===Se[be]&&Se[++oe]===Se[be+1]){be+=2,oe++;do;while(Se[++be]===Se[++oe]&&Se[++be]===Se[++oe]&&Se[++be]===Se[++oe]&&Se[++be]===Se[++oe]&&Se[++be]===Se[++oe]&&Se[++be]===Se[++oe]&&Se[++be]===Se[++oe]&&Se[++be]===Se[++oe]&&be<ke);if(re=R-(ke-be),be=ke-R,Ue<re){if(V.match_start=ve,Me<=(Ue=re))break;Ve=Se[be+Ue-1],Xe=Se[be+Ue]}}while((ve=pe[ve&Ce])>Ee&&--ne!=0);return Ue<=V.lookahead?Ue:V.lookahead}function ue(V){var ve,oe,re,ne,be,Ue,Me,Ee,Se,Ce,pe=V.w_size;do{if(ne=V.window_size-V.lookahead-V.strstart,V.strstart>=pe+(pe-z)){for(o.arraySet(V.window,V.window,pe,pe,0),V.match_start-=pe,V.strstart-=pe,V.block_start-=pe,ve=oe=V.hash_size;re=V.head[--ve],V.head[ve]=pe<=re?re-pe:0,--oe;);for(ve=oe=pe;re=V.prev[--ve],V.prev[ve]=pe<=re?re-pe:0,--oe;);ne+=pe}if(V.strm.avail_in===0)break;if(Ue=V.strm,Me=V.window,Ee=V.strstart+V.lookahead,Se=ne,Ce=void 0,Ce=Ue.avail_in,Se<Ce&&(Ce=Se),oe=Ce===0?0:(Ue.avail_in-=Ce,o.arraySet(Me,Ue.input,Ue.next_in,Ce,Ee),Ue.state.wrap===1?Ue.adler=l(Ue.adler,Me,Ce,Ee):Ue.state.wrap===2&&(Ue.adler=c(Ue.adler,Me,Ce,Ee)),Ue.next_in+=Ce,Ue.total_in+=Ce,Ce),V.lookahead+=oe,V.lookahead+V.insert>=j)for(be=V.strstart-V.insert,V.ins_h=V.window[be],V.ins_h=(V.ins_h<<V.hash_shift^V.window[be+1])&V.hash_mask;V.insert&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[be+j-1])&V.hash_mask,V.prev[be&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=be,be++,V.insert--,!(V.lookahead+V.insert<j)););}while(V.lookahead<z&&V.strm.avail_in!==0)}function ce(V,ve){for(var oe,re;;){if(V.lookahead<z){if(ue(V),V.lookahead<z&&ve===d)return P;if(V.lookahead===0)break}if(oe=0,V.lookahead>=j&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+j-1])&V.hash_mask,oe=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart),oe!==0&&V.strstart-oe<=V.w_size-z&&(V.match_length=ge(V,oe)),V.match_length>=j)if(re=s._tr_tally(V,V.strstart-V.match_start,V.match_length-j),V.lookahead-=V.match_length,V.match_length<=V.max_lazy_match&&V.lookahead>=j){for(V.match_length--;V.strstart++,V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+j-1])&V.hash_mask,oe=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart,--V.match_length!=0;);V.strstart++}else V.strstart+=V.match_length,V.match_length=0,V.ins_h=V.window[V.strstart],V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+1])&V.hash_mask;else re=s._tr_tally(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++;if(re&&(le(V,!1),V.strm.avail_out===0))return P}return V.insert=V.strstart<j-1?V.strstart:j-1,ve===h?(le(V,!0),V.strm.avail_out===0?Q:X):V.last_lit&&(le(V,!1),V.strm.avail_out===0)?P:Z}function ye(V,ve){for(var oe,re,ne;;){if(V.lookahead<z){if(ue(V),V.lookahead<z&&ve===d)return P;if(V.lookahead===0)break}if(oe=0,V.lookahead>=j&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+j-1])&V.hash_mask,oe=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart),V.prev_length=V.match_length,V.prev_match=V.match_start,V.match_length=j-1,oe!==0&&V.prev_length<V.max_lazy_match&&V.strstart-oe<=V.w_size-z&&(V.match_length=ge(V,oe),V.match_length<=5&&(V.strategy===1||V.match_length===j&&4096<V.strstart-V.match_start)&&(V.match_length=j-1)),V.prev_length>=j&&V.match_length<=V.prev_length){for(ne=V.strstart+V.lookahead-j,re=s._tr_tally(V,V.strstart-1-V.prev_match,V.prev_length-j),V.lookahead-=V.prev_length-1,V.prev_length-=2;++V.strstart<=ne&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+j-1])&V.hash_mask,oe=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart),--V.prev_length!=0;);if(V.match_available=0,V.match_length=j-1,V.strstart++,re&&(le(V,!1),V.strm.avail_out===0))return P}else if(V.match_available){if((re=s._tr_tally(V,0,V.window[V.strstart-1]))&&le(V,!1),V.strstart++,V.lookahead--,V.strm.avail_out===0)return P}else V.match_available=1,V.strstart++,V.lookahead--}return V.match_available&&(re=s._tr_tally(V,0,V.window[V.strstart-1]),V.match_available=0),V.insert=V.strstart<j-1?V.strstart:j-1,ve===h?(le(V,!0),V.strm.avail_out===0?Q:X):V.last_lit&&(le(V,!1),V.strm.avail_out===0)?P:Z}function Fe(V,ve,oe,re,ne){this.good_length=V,this.max_lazy=ve,this.nice_length=oe,this.max_chain=re,this.func=ne}function Oe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=w,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*D),this.dyn_dtree=new o.Buf16(2*(2*E+1)),this.bl_tree=new o.Buf16(2*(2*T+1)),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(I+1),this.heap=new o.Buf16(2*_+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*_+1),J(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Le(V){var ve;return V&&V.state?(V.total_in=V.total_out=0,V.data_type=A,(ve=V.state).pending=0,ve.pending_out=0,ve.wrap<0&&(ve.wrap=-ve.wrap),ve.status=ve.wrap?B:W,V.adler=ve.wrap===2?0:1,ve.last_flush=d,s._tr_init(ve),f):q(V,g)}function Re(V){var ve=Le(V);return ve===f&&(function(oe){oe.window_size=2*oe.w_size,J(oe.head),oe.max_lazy_match=a[oe.level].max_lazy,oe.good_match=a[oe.level].good_length,oe.nice_match=a[oe.level].nice_length,oe.max_chain_length=a[oe.level].max_chain,oe.strstart=0,oe.block_start=0,oe.lookahead=0,oe.insert=0,oe.match_length=oe.prev_length=j-1,oe.match_available=0,oe.ins_h=0})(V.state),ve}function We(V,ve,oe,re,ne,be){if(!V)return g;var Ue=1;if(ve===y&&(ve=6),re<0?(Ue=0,re=-re):15<re&&(Ue=2,re-=16),ne<1||S<ne||oe!==w||re<8||15<re||ve<0||9<ve||be<0||v<be)return q(V,g);re===8&&(re=9);var Me=new Oe;return(V.state=Me).strm=V,Me.wrap=Ue,Me.gzhead=null,Me.w_bits=re,Me.w_size=1<<Me.w_bits,Me.w_mask=Me.w_size-1,Me.hash_bits=ne+7,Me.hash_size=1<<Me.hash_bits,Me.hash_mask=Me.hash_size-1,Me.hash_shift=~~((Me.hash_bits+j-1)/j),Me.window=new o.Buf8(2*Me.w_size),Me.head=new o.Buf16(Me.hash_size),Me.prev=new o.Buf16(Me.w_size),Me.lit_bufsize=1<<ne+6,Me.pending_buf_size=4*Me.lit_bufsize,Me.pending_buf=new o.Buf8(Me.pending_buf_size),Me.d_buf=1*Me.lit_bufsize,Me.l_buf=3*Me.lit_bufsize,Me.level=ve,Me.strategy=be,Me.method=oe,Re(V)}a=[new Fe(0,0,0,0,function(V,ve){var oe=65535;for(oe>V.pending_buf_size-5&&(oe=V.pending_buf_size-5);;){if(V.lookahead<=1){if(ue(V),V.lookahead===0&&ve===d)return P;if(V.lookahead===0)break}V.strstart+=V.lookahead,V.lookahead=0;var re=V.block_start+oe;if((V.strstart===0||V.strstart>=re)&&(V.lookahead=V.strstart-re,V.strstart=re,le(V,!1),V.strm.avail_out===0)||V.strstart-V.block_start>=V.w_size-z&&(le(V,!1),V.strm.avail_out===0))return P}return V.insert=0,ve===h?(le(V,!0),V.strm.avail_out===0?Q:X):(V.strstart>V.block_start&&(le(V,!1),V.strm.avail_out),P)}),new Fe(4,4,8,4,ce),new Fe(4,5,16,8,ce),new Fe(4,6,32,32,ce),new Fe(4,4,16,16,ye),new Fe(8,16,32,32,ye),new Fe(8,16,128,128,ye),new Fe(8,32,128,256,ye),new Fe(32,128,258,1024,ye),new Fe(32,258,258,4096,ye)],i.deflateInit=function(V,ve){return We(V,ve,w,15,8,0)},i.deflateInit2=We,i.deflateReset=Re,i.deflateResetKeep=Le,i.deflateSetHeader=function(V,ve){return V&&V.state?V.state.wrap!==2?g:(V.state.gzhead=ve,f):g},i.deflate=function(V,ve){var oe,re,ne,be;if(!V||!V.state||5<ve||ve<0)return V?q(V,g):g;if(re=V.state,!V.output||!V.input&&V.avail_in!==0||re.status===666&&ve!==h)return q(V,V.avail_out===0?-5:g);if(re.strm=V,oe=re.last_flush,re.last_flush=ve,re.status===B)if(re.wrap===2)V.adler=0,G(re,31),G(re,139),G(re,8),re.gzhead?(G(re,(re.gzhead.text?1:0)+(re.gzhead.hcrc?2:0)+(re.gzhead.extra?4:0)+(re.gzhead.name?8:0)+(re.gzhead.comment?16:0)),G(re,255&re.gzhead.time),G(re,re.gzhead.time>>8&255),G(re,re.gzhead.time>>16&255),G(re,re.gzhead.time>>24&255),G(re,re.level===9?2:2<=re.strategy||re.level<2?4:0),G(re,255&re.gzhead.os),re.gzhead.extra&&re.gzhead.extra.length&&(G(re,255&re.gzhead.extra.length),G(re,re.gzhead.extra.length>>8&255)),re.gzhead.hcrc&&(V.adler=c(V.adler,re.pending_buf,re.pending,0)),re.gzindex=0,re.status=69):(G(re,0),G(re,0),G(re,0),G(re,0),G(re,0),G(re,re.level===9?2:2<=re.strategy||re.level<2?4:0),G(re,3),re.status=W);else{var Ue=w+(re.w_bits-8<<4)<<8;Ue|=(2<=re.strategy||re.level<2?0:re.level<6?1:re.level===6?2:3)<<6,re.strstart!==0&&(Ue|=32),Ue+=31-Ue%31,re.status=W,xe(re,Ue),re.strstart!==0&&(xe(re,V.adler>>>16),xe(re,65535&V.adler)),V.adler=1}if(re.status===69)if(re.gzhead.extra){for(ne=re.pending;re.gzindex<(65535&re.gzhead.extra.length)&&(re.pending!==re.pending_buf_size||(re.gzhead.hcrc&&re.pending>ne&&(V.adler=c(V.adler,re.pending_buf,re.pending-ne,ne)),ee(V),ne=re.pending,re.pending!==re.pending_buf_size));)G(re,255&re.gzhead.extra[re.gzindex]),re.gzindex++;re.gzhead.hcrc&&re.pending>ne&&(V.adler=c(V.adler,re.pending_buf,re.pending-ne,ne)),re.gzindex===re.gzhead.extra.length&&(re.gzindex=0,re.status=73)}else re.status=73;if(re.status===73)if(re.gzhead.name){ne=re.pending;do{if(re.pending===re.pending_buf_size&&(re.gzhead.hcrc&&re.pending>ne&&(V.adler=c(V.adler,re.pending_buf,re.pending-ne,ne)),ee(V),ne=re.pending,re.pending===re.pending_buf_size)){be=1;break}be=re.gzindex<re.gzhead.name.length?255&re.gzhead.name.charCodeAt(re.gzindex++):0,G(re,be)}while(be!==0);re.gzhead.hcrc&&re.pending>ne&&(V.adler=c(V.adler,re.pending_buf,re.pending-ne,ne)),be===0&&(re.gzindex=0,re.status=91)}else re.status=91;if(re.status===91)if(re.gzhead.comment){ne=re.pending;do{if(re.pending===re.pending_buf_size&&(re.gzhead.hcrc&&re.pending>ne&&(V.adler=c(V.adler,re.pending_buf,re.pending-ne,ne)),ee(V),ne=re.pending,re.pending===re.pending_buf_size)){be=1;break}be=re.gzindex<re.gzhead.comment.length?255&re.gzhead.comment.charCodeAt(re.gzindex++):0,G(re,be)}while(be!==0);re.gzhead.hcrc&&re.pending>ne&&(V.adler=c(V.adler,re.pending_buf,re.pending-ne,ne)),be===0&&(re.status=103)}else re.status=103;if(re.status===103&&(re.gzhead.hcrc?(re.pending+2>re.pending_buf_size&&ee(V),re.pending+2<=re.pending_buf_size&&(G(re,255&V.adler),G(re,V.adler>>8&255),V.adler=0,re.status=W)):re.status=W),re.pending!==0){if(ee(V),V.avail_out===0)return re.last_flush=-1,f}else if(V.avail_in===0&&te(ve)<=te(oe)&&ve!==h)return q(V,-5);if(re.status===666&&V.avail_in!==0)return q(V,-5);if(V.avail_in!==0||re.lookahead!==0||ve!==d&&re.status!==666){var Me=re.strategy===2?(function(Ee,Se){for(var Ce;;){if(Ee.lookahead===0&&(ue(Ee),Ee.lookahead===0)){if(Se===d)return P;break}if(Ee.match_length=0,Ce=s._tr_tally(Ee,0,Ee.window[Ee.strstart]),Ee.lookahead--,Ee.strstart++,Ce&&(le(Ee,!1),Ee.strm.avail_out===0))return P}return Ee.insert=0,Se===h?(le(Ee,!0),Ee.strm.avail_out===0?Q:X):Ee.last_lit&&(le(Ee,!1),Ee.strm.avail_out===0)?P:Z})(re,ve):re.strategy===3?(function(Ee,Se){for(var Ce,pe,ke,Ve,Xe=Ee.window;;){if(Ee.lookahead<=R){if(ue(Ee),Ee.lookahead<=R&&Se===d)return P;if(Ee.lookahead===0)break}if(Ee.match_length=0,Ee.lookahead>=j&&0<Ee.strstart&&(pe=Xe[ke=Ee.strstart-1])===Xe[++ke]&&pe===Xe[++ke]&&pe===Xe[++ke]){Ve=Ee.strstart+R;do;while(pe===Xe[++ke]&&pe===Xe[++ke]&&pe===Xe[++ke]&&pe===Xe[++ke]&&pe===Xe[++ke]&&pe===Xe[++ke]&&pe===Xe[++ke]&&pe===Xe[++ke]&&ke<Ve);Ee.match_length=R-(Ve-ke),Ee.match_length>Ee.lookahead&&(Ee.match_length=Ee.lookahead)}if(Ee.match_length>=j?(Ce=s._tr_tally(Ee,1,Ee.match_length-j),Ee.lookahead-=Ee.match_length,Ee.strstart+=Ee.match_length,Ee.match_length=0):(Ce=s._tr_tally(Ee,0,Ee.window[Ee.strstart]),Ee.lookahead--,Ee.strstart++),Ce&&(le(Ee,!1),Ee.strm.avail_out===0))return P}return Ee.insert=0,Se===h?(le(Ee,!0),Ee.strm.avail_out===0?Q:X):Ee.last_lit&&(le(Ee,!1),Ee.strm.avail_out===0)?P:Z})(re,ve):a[re.level].func(re,ve);if(Me!==Q&&Me!==X||(re.status=666),Me===P||Me===Q)return V.avail_out===0&&(re.last_flush=-1),f;if(Me===Z&&(ve===1?s._tr_align(re):ve!==5&&(s._tr_stored_block(re,0,0,!1),ve===3&&(J(re.head),re.lookahead===0&&(re.strstart=0,re.block_start=0,re.insert=0))),ee(V),V.avail_out===0))return re.last_flush=-1,f}return ve!==h?f:re.wrap<=0?1:(re.wrap===2?(G(re,255&V.adler),G(re,V.adler>>8&255),G(re,V.adler>>16&255),G(re,V.adler>>24&255),G(re,255&V.total_in),G(re,V.total_in>>8&255),G(re,V.total_in>>16&255),G(re,V.total_in>>24&255)):(xe(re,V.adler>>>16),xe(re,65535&V.adler)),ee(V),0<re.wrap&&(re.wrap=-re.wrap),re.pending!==0?f:1)},i.deflateEnd=function(V){var ve;return V&&V.state?(ve=V.state.status)!==B&&ve!==69&&ve!==73&&ve!==91&&ve!==103&&ve!==W&&ve!==666?q(V,g):(V.state=null,ve===W?q(V,-3):f):g},i.deflateSetDictionary=function(V,ve){var oe,re,ne,be,Ue,Me,Ee,Se,Ce=ve.length;if(!V||!V.state||(be=(oe=V.state).wrap)===2||be===1&&oe.status!==B||oe.lookahead)return g;for(be===1&&(V.adler=l(V.adler,ve,Ce,0)),oe.wrap=0,Ce>=oe.w_size&&(be===0&&(J(oe.head),oe.strstart=0,oe.block_start=0,oe.insert=0),Se=new o.Buf8(oe.w_size),o.arraySet(Se,ve,Ce-oe.w_size,oe.w_size,0),ve=Se,Ce=oe.w_size),Ue=V.avail_in,Me=V.next_in,Ee=V.input,V.avail_in=Ce,V.next_in=0,V.input=ve,ue(oe);oe.lookahead>=j;){for(re=oe.strstart,ne=oe.lookahead-(j-1);oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[re+j-1])&oe.hash_mask,oe.prev[re&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=re,re++,--ne;);oe.strstart=re,oe.lookahead=j-1,ue(oe)}return oe.strstart+=oe.lookahead,oe.block_start=oe.strstart,oe.insert=oe.lookahead,oe.lookahead=0,oe.match_length=oe.prev_length=j-1,oe.match_available=0,V.next_in=Me,V.input=Ee,V.avail_in=Ue,oe.wrap=be,f},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,i){r.exports=function(){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}},{}],48:[function(n,r,i){r.exports=function(a,o){var s,l,c,u,d,h,f,g,y,v,A,w,S,_,E,T,D,I,j,R,z,B,W,P,Z;s=a.state,l=a.next_in,P=a.input,c=l+(a.avail_in-5),u=a.next_out,Z=a.output,d=u-(o-a.avail_out),h=u+(a.avail_out-257),f=s.dmax,g=s.wsize,y=s.whave,v=s.wnext,A=s.window,w=s.hold,S=s.bits,_=s.lencode,E=s.distcode,T=(1<<s.lenbits)-1,D=(1<<s.distbits)-1;e:do{S<15&&(w+=P[l++]<<S,S+=8,w+=P[l++]<<S,S+=8),I=_[w&T];t:for(;;){if(w>>>=j=I>>>24,S-=j,(j=I>>>16&255)===0)Z[u++]=65535&I;else{if(!(16&j)){if((64&j)==0){I=_[(65535&I)+(w&(1<<j)-1)];continue t}if(32&j){s.mode=12;break e}a.msg="invalid literal/length code",s.mode=30;break e}R=65535&I,(j&=15)&&(S<j&&(w+=P[l++]<<S,S+=8),R+=w&(1<<j)-1,w>>>=j,S-=j),S<15&&(w+=P[l++]<<S,S+=8,w+=P[l++]<<S,S+=8),I=E[w&D];n:for(;;){if(w>>>=j=I>>>24,S-=j,!(16&(j=I>>>16&255))){if((64&j)==0){I=E[(65535&I)+(w&(1<<j)-1)];continue n}a.msg="invalid distance code",s.mode=30;break e}if(z=65535&I,S<(j&=15)&&(w+=P[l++]<<S,(S+=8)<j&&(w+=P[l++]<<S,S+=8)),f<(z+=w&(1<<j)-1)){a.msg="invalid distance too far back",s.mode=30;break e}if(w>>>=j,S-=j,(j=u-d)<z){if(y<(j=z-j)&&s.sane){a.msg="invalid distance too far back",s.mode=30;break e}if(W=A,(B=0)===v){if(B+=g-j,j<R){for(R-=j;Z[u++]=A[B++],--j;);B=u-z,W=Z}}else if(v<j){if(B+=g+v-j,(j-=v)<R){for(R-=j;Z[u++]=A[B++],--j;);if(B=0,v<R){for(R-=j=v;Z[u++]=A[B++],--j;);B=u-z,W=Z}}}else if(B+=v-j,j<R){for(R-=j;Z[u++]=A[B++],--j;);B=u-z,W=Z}for(;2<R;)Z[u++]=W[B++],Z[u++]=W[B++],Z[u++]=W[B++],R-=3;R&&(Z[u++]=W[B++],1<R&&(Z[u++]=W[B++]))}else{for(B=u-z;Z[u++]=Z[B++],Z[u++]=Z[B++],Z[u++]=Z[B++],2<(R-=3););R&&(Z[u++]=Z[B++],1<R&&(Z[u++]=Z[B++]))}break}}break}}while(l<c&&u<h);l-=R=S>>3,w&=(1<<(S-=R<<3))-1,a.next_in=l,a.next_out=u,a.avail_in=l<c?c-l+5:5-(l-c),a.avail_out=u<h?h-u+257:257-(u-h),s.hold=w,s.bits=S}},{}],49:[function(n,r,i){var a=n("../utils/common"),o=n("./adler32"),s=n("./crc32"),l=n("./inffast"),c=n("./inftrees"),u=1,d=2,h=0,f=-2,g=1,y=852,v=592;function A(B){return(B>>>24&255)+(B>>>8&65280)+((65280&B)<<8)+((255&B)<<24)}function w(){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 a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function S(B){var W;return B&&B.state?(W=B.state,B.total_in=B.total_out=W.total=0,B.msg="",W.wrap&&(B.adler=1&W.wrap),W.mode=g,W.last=0,W.havedict=0,W.dmax=32768,W.head=null,W.hold=0,W.bits=0,W.lencode=W.lendyn=new a.Buf32(y),W.distcode=W.distdyn=new a.Buf32(v),W.sane=1,W.back=-1,h):f}function _(B){var W;return B&&B.state?((W=B.state).wsize=0,W.whave=0,W.wnext=0,S(B)):f}function E(B,W){var P,Z;return B&&B.state?(Z=B.state,W<0?(P=0,W=-W):(P=1+(W>>4),W<48&&(W&=15)),W&&(W<8||15<W)?f:(Z.window!==null&&Z.wbits!==W&&(Z.window=null),Z.wrap=P,Z.wbits=W,_(B))):f}function T(B,W){var P,Z;return B?(Z=new w,(B.state=Z).window=null,(P=E(B,W))!==h&&(B.state=null),P):f}var D,I,j=!0;function R(B){if(j){var W;for(D=new a.Buf32(512),I=new a.Buf32(32),W=0;W<144;)B.lens[W++]=8;for(;W<256;)B.lens[W++]=9;for(;W<280;)B.lens[W++]=7;for(;W<288;)B.lens[W++]=8;for(c(u,B.lens,0,288,D,0,B.work,{bits:9}),W=0;W<32;)B.lens[W++]=5;c(d,B.lens,0,32,I,0,B.work,{bits:5}),j=!1}B.lencode=D,B.lenbits=9,B.distcode=I,B.distbits=5}function z(B,W,P,Z){var Q,X=B.state;return X.window===null&&(X.wsize=1<<X.wbits,X.wnext=0,X.whave=0,X.window=new a.Buf8(X.wsize)),Z>=X.wsize?(a.arraySet(X.window,W,P-X.wsize,X.wsize,0),X.wnext=0,X.whave=X.wsize):(Z<(Q=X.wsize-X.wnext)&&(Q=Z),a.arraySet(X.window,W,P-Z,Q,X.wnext),(Z-=Q)?(a.arraySet(X.window,W,P-Z,Z,0),X.wnext=Z,X.whave=X.wsize):(X.wnext+=Q,X.wnext===X.wsize&&(X.wnext=0),X.whave<X.wsize&&(X.whave+=Q))),0}i.inflateReset=_,i.inflateReset2=E,i.inflateResetKeep=S,i.inflateInit=function(B){return T(B,15)},i.inflateInit2=T,i.inflate=function(B,W){var P,Z,Q,X,q,te,J,ee,le,G,xe,ge,ue,ce,ye,Fe,Oe,Le,Re,We,V,ve,oe,re,ne=0,be=new a.Buf8(4),Ue=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!B||!B.state||!B.output||!B.input&&B.avail_in!==0)return f;(P=B.state).mode===12&&(P.mode=13),q=B.next_out,Q=B.output,J=B.avail_out,X=B.next_in,Z=B.input,te=B.avail_in,ee=P.hold,le=P.bits,G=te,xe=J,ve=h;e:for(;;)switch(P.mode){case g:if(P.wrap===0){P.mode=13;break}for(;le<16;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}if(2&P.wrap&&ee===35615){be[P.check=0]=255&ee,be[1]=ee>>>8&255,P.check=s(P.check,be,2,0),le=ee=0,P.mode=2;break}if(P.flags=0,P.head&&(P.head.done=!1),!(1&P.wrap)||(((255&ee)<<8)+(ee>>8))%31){B.msg="incorrect header check",P.mode=30;break}if((15&ee)!=8){B.msg="unknown compression method",P.mode=30;break}if(le-=4,V=8+(15&(ee>>>=4)),P.wbits===0)P.wbits=V;else if(V>P.wbits){B.msg="invalid window size",P.mode=30;break}P.dmax=1<<V,B.adler=P.check=1,P.mode=512&ee?10:12,le=ee=0;break;case 2:for(;le<16;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}if(P.flags=ee,(255&P.flags)!=8){B.msg="unknown compression method",P.mode=30;break}if(57344&P.flags){B.msg="unknown header flags set",P.mode=30;break}P.head&&(P.head.text=ee>>8&1),512&P.flags&&(be[0]=255&ee,be[1]=ee>>>8&255,P.check=s(P.check,be,2,0)),le=ee=0,P.mode=3;case 3:for(;le<32;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}P.head&&(P.head.time=ee),512&P.flags&&(be[0]=255&ee,be[1]=ee>>>8&255,be[2]=ee>>>16&255,be[3]=ee>>>24&255,P.check=s(P.check,be,4,0)),le=ee=0,P.mode=4;case 4:for(;le<16;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}P.head&&(P.head.xflags=255&ee,P.head.os=ee>>8),512&P.flags&&(be[0]=255&ee,be[1]=ee>>>8&255,P.check=s(P.check,be,2,0)),le=ee=0,P.mode=5;case 5:if(1024&P.flags){for(;le<16;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}P.length=ee,P.head&&(P.head.extra_len=ee),512&P.flags&&(be[0]=255&ee,be[1]=ee>>>8&255,P.check=s(P.check,be,2,0)),le=ee=0}else P.head&&(P.head.extra=null);P.mode=6;case 6:if(1024&P.flags&&(te<(ge=P.length)&&(ge=te),ge&&(P.head&&(V=P.head.extra_len-P.length,P.head.extra||(P.head.extra=new Array(P.head.extra_len)),a.arraySet(P.head.extra,Z,X,ge,V)),512&P.flags&&(P.check=s(P.check,Z,ge,X)),te-=ge,X+=ge,P.length-=ge),P.length))break e;P.length=0,P.mode=7;case 7:if(2048&P.flags){if(te===0)break e;for(ge=0;V=Z[X+ge++],P.head&&V&&P.length<65536&&(P.head.name+=String.fromCharCode(V)),V&&ge<te;);if(512&P.flags&&(P.check=s(P.check,Z,ge,X)),te-=ge,X+=ge,V)break e}else P.head&&(P.head.name=null);P.length=0,P.mode=8;case 8:if(4096&P.flags){if(te===0)break e;for(ge=0;V=Z[X+ge++],P.head&&V&&P.length<65536&&(P.head.comment+=String.fromCharCode(V)),V&&ge<te;);if(512&P.flags&&(P.check=s(P.check,Z,ge,X)),te-=ge,X+=ge,V)break e}else P.head&&(P.head.comment=null);P.mode=9;case 9:if(512&P.flags){for(;le<16;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}if(ee!==(65535&P.check)){B.msg="header crc mismatch",P.mode=30;break}le=ee=0}P.head&&(P.head.hcrc=P.flags>>9&1,P.head.done=!0),B.adler=P.check=0,P.mode=12;break;case 10:for(;le<32;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}B.adler=P.check=A(ee),le=ee=0,P.mode=11;case 11:if(P.havedict===0)return B.next_out=q,B.avail_out=J,B.next_in=X,B.avail_in=te,P.hold=ee,P.bits=le,2;B.adler=P.check=1,P.mode=12;case 12:if(W===5||W===6)break e;case 13:if(P.last){ee>>>=7&le,le-=7&le,P.mode=27;break}for(;le<3;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}switch(P.last=1&ee,le-=1,3&(ee>>>=1)){case 0:P.mode=14;break;case 1:if(R(P),P.mode=20,W!==6)break;ee>>>=2,le-=2;break e;case 2:P.mode=17;break;case 3:B.msg="invalid block type",P.mode=30}ee>>>=2,le-=2;break;case 14:for(ee>>>=7&le,le-=7≤le<32;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}if((65535&ee)!=(ee>>>16^65535)){B.msg="invalid stored block lengths",P.mode=30;break}if(P.length=65535&ee,le=ee=0,P.mode=15,W===6)break e;case 15:P.mode=16;case 16:if(ge=P.length){if(te<ge&&(ge=te),J<ge&&(ge=J),ge===0)break e;a.arraySet(Q,Z,X,ge,q),te-=ge,X+=ge,J-=ge,q+=ge,P.length-=ge;break}P.mode=12;break;case 17:for(;le<14;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}if(P.nlen=257+(31&ee),ee>>>=5,le-=5,P.ndist=1+(31&ee),ee>>>=5,le-=5,P.ncode=4+(15&ee),ee>>>=4,le-=4,286<P.nlen||30<P.ndist){B.msg="too many length or distance symbols",P.mode=30;break}P.have=0,P.mode=18;case 18:for(;P.have<P.ncode;){for(;le<3;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}P.lens[Ue[P.have++]]=7&ee,ee>>>=3,le-=3}for(;P.have<19;)P.lens[Ue[P.have++]]=0;if(P.lencode=P.lendyn,P.lenbits=7,oe={bits:P.lenbits},ve=c(0,P.lens,0,19,P.lencode,0,P.work,oe),P.lenbits=oe.bits,ve){B.msg="invalid code lengths set",P.mode=30;break}P.have=0,P.mode=19;case 19:for(;P.have<P.nlen+P.ndist;){for(;Fe=(ne=P.lencode[ee&(1<<P.lenbits)-1])>>>16&255,Oe=65535&ne,!((ye=ne>>>24)<=le);){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}if(Oe<16)ee>>>=ye,le-=ye,P.lens[P.have++]=Oe;else{if(Oe===16){for(re=ye+2;le<re;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}if(ee>>>=ye,le-=ye,P.have===0){B.msg="invalid bit length repeat",P.mode=30;break}V=P.lens[P.have-1],ge=3+(3&ee),ee>>>=2,le-=2}else if(Oe===17){for(re=ye+3;le<re;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}le-=ye,V=0,ge=3+(7&(ee>>>=ye)),ee>>>=3,le-=3}else{for(re=ye+7;le<re;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}le-=ye,V=0,ge=11+(127&(ee>>>=ye)),ee>>>=7,le-=7}if(P.have+ge>P.nlen+P.ndist){B.msg="invalid bit length repeat",P.mode=30;break}for(;ge--;)P.lens[P.have++]=V}}if(P.mode===30)break;if(P.lens[256]===0){B.msg="invalid code -- missing end-of-block",P.mode=30;break}if(P.lenbits=9,oe={bits:P.lenbits},ve=c(u,P.lens,0,P.nlen,P.lencode,0,P.work,oe),P.lenbits=oe.bits,ve){B.msg="invalid literal/lengths set",P.mode=30;break}if(P.distbits=6,P.distcode=P.distdyn,oe={bits:P.distbits},ve=c(d,P.lens,P.nlen,P.ndist,P.distcode,0,P.work,oe),P.distbits=oe.bits,ve){B.msg="invalid distances set",P.mode=30;break}if(P.mode=20,W===6)break e;case 20:P.mode=21;case 21:if(6<=te&&258<=J){B.next_out=q,B.avail_out=J,B.next_in=X,B.avail_in=te,P.hold=ee,P.bits=le,l(B,xe),q=B.next_out,Q=B.output,J=B.avail_out,X=B.next_in,Z=B.input,te=B.avail_in,ee=P.hold,le=P.bits,P.mode===12&&(P.back=-1);break}for(P.back=0;Fe=(ne=P.lencode[ee&(1<<P.lenbits)-1])>>>16&255,Oe=65535&ne,!((ye=ne>>>24)<=le);){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}if(Fe&&(240&Fe)==0){for(Le=ye,Re=Fe,We=Oe;Fe=(ne=P.lencode[We+((ee&(1<<Le+Re)-1)>>Le)])>>>16&255,Oe=65535&ne,!(Le+(ye=ne>>>24)<=le);){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}ee>>>=Le,le-=Le,P.back+=Le}if(ee>>>=ye,le-=ye,P.back+=ye,P.length=Oe,Fe===0){P.mode=26;break}if(32&Fe){P.back=-1,P.mode=12;break}if(64&Fe){B.msg="invalid literal/length code",P.mode=30;break}P.extra=15&Fe,P.mode=22;case 22:if(P.extra){for(re=P.extra;le<re;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}P.length+=ee&(1<<P.extra)-1,ee>>>=P.extra,le-=P.extra,P.back+=P.extra}P.was=P.length,P.mode=23;case 23:for(;Fe=(ne=P.distcode[ee&(1<<P.distbits)-1])>>>16&255,Oe=65535&ne,!((ye=ne>>>24)<=le);){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}if((240&Fe)==0){for(Le=ye,Re=Fe,We=Oe;Fe=(ne=P.distcode[We+((ee&(1<<Le+Re)-1)>>Le)])>>>16&255,Oe=65535&ne,!(Le+(ye=ne>>>24)<=le);){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}ee>>>=Le,le-=Le,P.back+=Le}if(ee>>>=ye,le-=ye,P.back+=ye,64&Fe){B.msg="invalid distance code",P.mode=30;break}P.offset=Oe,P.extra=15&Fe,P.mode=24;case 24:if(P.extra){for(re=P.extra;le<re;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}P.offset+=ee&(1<<P.extra)-1,ee>>>=P.extra,le-=P.extra,P.back+=P.extra}if(P.offset>P.dmax){B.msg="invalid distance too far back",P.mode=30;break}P.mode=25;case 25:if(J===0)break e;if(ge=xe-J,P.offset>ge){if((ge=P.offset-ge)>P.whave&&P.sane){B.msg="invalid distance too far back",P.mode=30;break}ue=ge>P.wnext?(ge-=P.wnext,P.wsize-ge):P.wnext-ge,ge>P.length&&(ge=P.length),ce=P.window}else ce=Q,ue=q-P.offset,ge=P.length;for(J<ge&&(ge=J),J-=ge,P.length-=ge;Q[q++]=ce[ue++],--ge;);P.length===0&&(P.mode=21);break;case 26:if(J===0)break e;Q[q++]=P.length,J--,P.mode=21;break;case 27:if(P.wrap){for(;le<32;){if(te===0)break e;te--,ee|=Z[X++]<<le,le+=8}if(xe-=J,B.total_out+=xe,P.total+=xe,xe&&(B.adler=P.check=P.flags?s(P.check,Q,xe,q-xe):o(P.check,Q,xe,q-xe)),xe=J,(P.flags?ee:A(ee))!==P.check){B.msg="incorrect data check",P.mode=30;break}le=ee=0}P.mode=28;case 28:if(P.wrap&&P.flags){for(;le<32;){if(te===0)break e;te--,ee+=Z[X++]<<le,le+=8}if(ee!==(4294967295&P.total)){B.msg="incorrect length check",P.mode=30;break}le=ee=0}P.mode=29;case 29:ve=1;break e;case 30:ve=-3;break e;case 31:return-4;case 32:default:return f}return B.next_out=q,B.avail_out=J,B.next_in=X,B.avail_in=te,P.hold=ee,P.bits=le,(P.wsize||xe!==B.avail_out&&P.mode<30&&(P.mode<27||W!==4))&&z(B,B.output,B.next_out,xe-B.avail_out)?(P.mode=31,-4):(G-=B.avail_in,xe-=B.avail_out,B.total_in+=G,B.total_out+=xe,P.total+=xe,P.wrap&&xe&&(B.adler=P.check=P.flags?s(P.check,Q,xe,B.next_out-xe):o(P.check,Q,xe,B.next_out-xe)),B.data_type=P.bits+(P.last?64:0)+(P.mode===12?128:0)+(P.mode===20||P.mode===15?256:0),(G==0&&xe===0||W===4)&&ve===h&&(ve=-5),ve)},i.inflateEnd=function(B){if(!B||!B.state)return f;var W=B.state;return W.window&&(W.window=null),B.state=null,h},i.inflateGetHeader=function(B,W){var P;return B&&B.state?(2&(P=B.state).wrap)==0?f:((P.head=W).done=!1,h):f},i.inflateSetDictionary=function(B,W){var P,Z=W.length;return B&&B.state?(P=B.state).wrap!==0&&P.mode!==11?f:P.mode===11&&o(1,W,Z,0)!==P.check?-3:z(B,W,Z,Z)?(P.mode=31,-4):(P.havedict=1,h):f},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,i){var a=n("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(u,d,h,f,g,y,v,A){var w,S,_,E,T,D,I,j,R,z=A.bits,B=0,W=0,P=0,Z=0,Q=0,X=0,q=0,te=0,J=0,ee=0,le=null,G=0,xe=new a.Buf16(16),ge=new a.Buf16(16),ue=null,ce=0;for(B=0;B<=15;B++)xe[B]=0;for(W=0;W<f;W++)xe[d[h+W]]++;for(Q=z,Z=15;1<=Z&&xe[Z]===0;Z--);if(Z<Q&&(Q=Z),Z===0)return g[y++]=20971520,g[y++]=20971520,A.bits=1,0;for(P=1;P<Z&&xe[P]===0;P++);for(Q<P&&(Q=P),B=te=1;B<=15;B++)if(te<<=1,(te-=xe[B])<0)return-1;if(0<te&&(u===0||Z!==1))return-1;for(ge[1]=0,B=1;B<15;B++)ge[B+1]=ge[B]+xe[B];for(W=0;W<f;W++)d[h+W]!==0&&(v[ge[d[h+W]]++]=W);if(D=u===0?(le=ue=v,19):u===1?(le=o,G-=257,ue=s,ce-=257,256):(le=l,ue=c,-1),B=P,T=y,q=W=ee=0,_=-1,E=(J=1<<(X=Q))-1,u===1&&852<J||u===2&&592<J)return 1;for(;;){for(I=B-q,R=v[W]<D?(j=0,v[W]):v[W]>D?(j=ue[ce+v[W]],le[G+v[W]]):(j=96,0),w=1<<B-q,P=S=1<<X;g[T+(ee>>q)+(S-=w)]=I<<24|j<<16|R|0,S!==0;);for(w=1<<B-1;ee&w;)w>>=1;if(w!==0?(ee&=w-1,ee+=w):ee=0,W++,--xe[B]==0){if(B===Z)break;B=d[h+v[W]]}if(Q<B&&(ee&E)!==_){for(q===0&&(q=Q),T+=P,te=1<<(X=B-q);X+q<Z&&!((te-=xe[X+q])<=0);)X++,te<<=1;if(J+=1<<X,u===1&&852<J||u===2&&592<J)return 1;g[_=ee&E]=Q<<24|X<<16|T-y|0}}return ee!==0&&(g[T+ee]=B-q<<24|64<<16|0),A.bits=Q,0}},{"../utils/common":41}],51:[function(n,r,i){r.exports={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"}},{}],52:[function(n,r,i){var a=n("../utils/common"),o=0,s=1;function l(ne){for(var be=ne.length;0<=--be;)ne[be]=0}var c=0,u=29,d=256,h=d+1+u,f=30,g=19,y=2*h+1,v=15,A=16,w=7,S=256,_=16,E=17,T=18,D=[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],I=[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],j=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z=new Array(2*(h+2));l(z);var B=new Array(2*f);l(B);var W=new Array(512);l(W);var P=new Array(256);l(P);var Z=new Array(u);l(Z);var Q,X,q,te=new Array(f);function J(ne,be,Ue,Me,Ee){this.static_tree=ne,this.extra_bits=be,this.extra_base=Ue,this.elems=Me,this.max_length=Ee,this.has_stree=ne&&ne.length}function ee(ne,be){this.dyn_tree=ne,this.max_code=0,this.stat_desc=be}function le(ne){return ne<256?W[ne]:W[256+(ne>>>7)]}function G(ne,be){ne.pending_buf[ne.pending++]=255&be,ne.pending_buf[ne.pending++]=be>>>8&255}function xe(ne,be,Ue){ne.bi_valid>A-Ue?(ne.bi_buf|=be<<ne.bi_valid&65535,G(ne,ne.bi_buf),ne.bi_buf=be>>A-ne.bi_valid,ne.bi_valid+=Ue-A):(ne.bi_buf|=be<<ne.bi_valid&65535,ne.bi_valid+=Ue)}function ge(ne,be,Ue){xe(ne,Ue[2*be],Ue[2*be+1])}function ue(ne,be){for(var Ue=0;Ue|=1&ne,ne>>>=1,Ue<<=1,0<--be;);return Ue>>>1}function ce(ne,be,Ue){var Me,Ee,Se=new Array(v+1),Ce=0;for(Me=1;Me<=v;Me++)Se[Me]=Ce=Ce+Ue[Me-1]<<1;for(Ee=0;Ee<=be;Ee++){var pe=ne[2*Ee+1];pe!==0&&(ne[2*Ee]=ue(Se[pe]++,pe))}}function ye(ne){var be;for(be=0;be<h;be++)ne.dyn_ltree[2*be]=0;for(be=0;be<f;be++)ne.dyn_dtree[2*be]=0;for(be=0;be<g;be++)ne.bl_tree[2*be]=0;ne.dyn_ltree[2*S]=1,ne.opt_len=ne.static_len=0,ne.last_lit=ne.matches=0}function Fe(ne){8<ne.bi_valid?G(ne,ne.bi_buf):0<ne.bi_valid&&(ne.pending_buf[ne.pending++]=ne.bi_buf),ne.bi_buf=0,ne.bi_valid=0}function Oe(ne,be,Ue,Me){var Ee=2*be,Se=2*Ue;return ne[Ee]<ne[Se]||ne[Ee]===ne[Se]&&Me[be]<=Me[Ue]}function Le(ne,be,Ue){for(var Me=ne.heap[Ue],Ee=Ue<<1;Ee<=ne.heap_len&&(Ee<ne.heap_len&&Oe(be,ne.heap[Ee+1],ne.heap[Ee],ne.depth)&&Ee++,!Oe(be,Me,ne.heap[Ee],ne.depth));)ne.heap[Ue]=ne.heap[Ee],Ue=Ee,Ee<<=1;ne.heap[Ue]=Me}function Re(ne,be,Ue){var Me,Ee,Se,Ce,pe=0;if(ne.last_lit!==0)for(;Me=ne.pending_buf[ne.d_buf+2*pe]<<8|ne.pending_buf[ne.d_buf+2*pe+1],Ee=ne.pending_buf[ne.l_buf+pe],pe++,Me===0?ge(ne,Ee,be):(ge(ne,(Se=P[Ee])+d+1,be),(Ce=D[Se])!==0&&xe(ne,Ee-=Z[Se],Ce),ge(ne,Se=le(--Me),Ue),(Ce=I[Se])!==0&&xe(ne,Me-=te[Se],Ce)),pe<ne.last_lit;);ge(ne,S,be)}function We(ne,be){var Ue,Me,Ee,Se=be.dyn_tree,Ce=be.stat_desc.static_tree,pe=be.stat_desc.has_stree,ke=be.stat_desc.elems,Ve=-1;for(ne.heap_len=0,ne.heap_max=y,Ue=0;Ue<ke;Ue++)Se[2*Ue]!==0?(ne.heap[++ne.heap_len]=Ve=Ue,ne.depth[Ue]=0):Se[2*Ue+1]=0;for(;ne.heap_len<2;)Se[2*(Ee=ne.heap[++ne.heap_len]=Ve<2?++Ve:0)]=1,ne.depth[Ee]=0,ne.opt_len--,pe&&(ne.static_len-=Ce[2*Ee+1]);for(be.max_code=Ve,Ue=ne.heap_len>>1;1<=Ue;Ue--)Le(ne,Se,Ue);for(Ee=ke;Ue=ne.heap[1],ne.heap[1]=ne.heap[ne.heap_len--],Le(ne,Se,1),Me=ne.heap[1],ne.heap[--ne.heap_max]=Ue,ne.heap[--ne.heap_max]=Me,Se[2*Ee]=Se[2*Ue]+Se[2*Me],ne.depth[Ee]=(ne.depth[Ue]>=ne.depth[Me]?ne.depth[Ue]:ne.depth[Me])+1,Se[2*Ue+1]=Se[2*Me+1]=Ee,ne.heap[1]=Ee++,Le(ne,Se,1),2<=ne.heap_len;);ne.heap[--ne.heap_max]=ne.heap[1],(function(Xe,it){var et,U,Ae,se,Te,$,de=it.dyn_tree,F=it.max_code,De=it.stat_desc.static_tree,He=it.stat_desc.has_stree,b=it.stat_desc.extra_bits,ae=it.stat_desc.extra_base,M=it.stat_desc.max_length,k=0;for(se=0;se<=v;se++)Xe.bl_count[se]=0;for(de[2*Xe.heap[Xe.heap_max]+1]=0,et=Xe.heap_max+1;et<y;et++)M<(se=de[2*de[2*(U=Xe.heap[et])+1]+1]+1)&&(se=M,k++),de[2*U+1]=se,F<U||(Xe.bl_count[se]++,Te=0,ae<=U&&(Te=b[U-ae]),$=de[2*U],Xe.opt_len+=$*(se+Te),He&&(Xe.static_len+=$*(De[2*U+1]+Te)));if(k!==0){do{for(se=M-1;Xe.bl_count[se]===0;)se--;Xe.bl_count[se]--,Xe.bl_count[se+1]+=2,Xe.bl_count[M]--,k-=2}while(0<k);for(se=M;se!==0;se--)for(U=Xe.bl_count[se];U!==0;)F<(Ae=Xe.heap[--et])||(de[2*Ae+1]!==se&&(Xe.opt_len+=(se-de[2*Ae+1])*de[2*Ae],de[2*Ae+1]=se),U--)}})(ne,be),ce(Se,Ve,ne.bl_count)}function V(ne,be,Ue){var Me,Ee,Se=-1,Ce=be[1],pe=0,ke=7,Ve=4;for(Ce===0&&(ke=138,Ve=3),be[2*(Ue+1)+1]=65535,Me=0;Me<=Ue;Me++)Ee=Ce,Ce=be[2*(Me+1)+1],++pe<ke&&Ee===Ce||(pe<Ve?ne.bl_tree[2*Ee]+=pe:Ee!==0?(Ee!==Se&&ne.bl_tree[2*Ee]++,ne.bl_tree[2*_]++):pe<=10?ne.bl_tree[2*E]++:ne.bl_tree[2*T]++,Se=Ee,Ve=(pe=0)===Ce?(ke=138,3):Ee===Ce?(ke=6,3):(ke=7,4))}function ve(ne,be,Ue){var Me,Ee,Se=-1,Ce=be[1],pe=0,ke=7,Ve=4;for(Ce===0&&(ke=138,Ve=3),Me=0;Me<=Ue;Me++)if(Ee=Ce,Ce=be[2*(Me+1)+1],!(++pe<ke&&Ee===Ce)){if(pe<Ve)for(;ge(ne,Ee,ne.bl_tree),--pe!=0;);else Ee!==0?(Ee!==Se&&(ge(ne,Ee,ne.bl_tree),pe--),ge(ne,_,ne.bl_tree),xe(ne,pe-3,2)):pe<=10?(ge(ne,E,ne.bl_tree),xe(ne,pe-3,3)):(ge(ne,T,ne.bl_tree),xe(ne,pe-11,7));Se=Ee,Ve=(pe=0)===Ce?(ke=138,3):Ee===Ce?(ke=6,3):(ke=7,4)}}l(te);var oe=!1;function re(ne,be,Ue,Me){xe(ne,(c<<1)+(Me?1:0),3),(function(Ee,Se,Ce,pe){Fe(Ee),G(Ee,Ce),G(Ee,~Ce),a.arraySet(Ee.pending_buf,Ee.window,Se,Ce,Ee.pending),Ee.pending+=Ce})(ne,be,Ue)}i._tr_init=function(ne){oe||((function(){var be,Ue,Me,Ee,Se,Ce=new Array(v+1);for(Ee=Me=0;Ee<u-1;Ee++)for(Z[Ee]=Me,be=0;be<1<<D[Ee];be++)P[Me++]=Ee;for(P[Me-1]=Ee,Ee=Se=0;Ee<16;Ee++)for(te[Ee]=Se,be=0;be<1<<I[Ee];be++)W[Se++]=Ee;for(Se>>=7;Ee<f;Ee++)for(te[Ee]=Se<<7,be=0;be<1<<I[Ee]-7;be++)W[256+Se++]=Ee;for(Ue=0;Ue<=v;Ue++)Ce[Ue]=0;for(be=0;be<=143;)z[2*be+1]=8,be++,Ce[8]++;for(;be<=255;)z[2*be+1]=9,be++,Ce[9]++;for(;be<=279;)z[2*be+1]=7,be++,Ce[7]++;for(;be<=287;)z[2*be+1]=8,be++,Ce[8]++;for(ce(z,h+1,Ce),be=0;be<f;be++)B[2*be+1]=5,B[2*be]=ue(be,5);Q=new J(z,D,d+1,h,v),X=new J(B,I,0,f,v),q=new J(new Array(0),j,0,g,w)})(),oe=!0),ne.l_desc=new ee(ne.dyn_ltree,Q),ne.d_desc=new ee(ne.dyn_dtree,X),ne.bl_desc=new ee(ne.bl_tree,q),ne.bi_buf=0,ne.bi_valid=0,ye(ne)},i._tr_stored_block=re,i._tr_flush_block=function(ne,be,Ue,Me){var Ee,Se,Ce=0;0<ne.level?(ne.strm.data_type===2&&(ne.strm.data_type=(function(pe){var ke,Ve=4093624447;for(ke=0;ke<=31;ke++,Ve>>>=1)if(1&Ve&&pe.dyn_ltree[2*ke]!==0)return o;if(pe.dyn_ltree[18]!==0||pe.dyn_ltree[20]!==0||pe.dyn_ltree[26]!==0)return s;for(ke=32;ke<d;ke++)if(pe.dyn_ltree[2*ke]!==0)return s;return o})(ne)),We(ne,ne.l_desc),We(ne,ne.d_desc),Ce=(function(pe){var ke;for(V(pe,pe.dyn_ltree,pe.l_desc.max_code),V(pe,pe.dyn_dtree,pe.d_desc.max_code),We(pe,pe.bl_desc),ke=g-1;3<=ke&&pe.bl_tree[2*R[ke]+1]===0;ke--);return pe.opt_len+=3*(ke+1)+5+5+4,ke})(ne),Ee=ne.opt_len+3+7>>>3,(Se=ne.static_len+3+7>>>3)<=Ee&&(Ee=Se)):Ee=Se=Ue+5,Ue+4<=Ee&&be!==-1?re(ne,be,Ue,Me):ne.strategy===4||Se===Ee?(xe(ne,2+(Me?1:0),3),Re(ne,z,B)):(xe(ne,4+(Me?1:0),3),(function(pe,ke,Ve,Xe){var it;for(xe(pe,ke-257,5),xe(pe,Ve-1,5),xe(pe,Xe-4,4),it=0;it<Xe;it++)xe(pe,pe.bl_tree[2*R[it]+1],3);ve(pe,pe.dyn_ltree,ke-1),ve(pe,pe.dyn_dtree,Ve-1)})(ne,ne.l_desc.max_code+1,ne.d_desc.max_code+1,Ce+1),Re(ne,ne.dyn_ltree,ne.dyn_dtree)),ye(ne),Me&&Fe(ne)},i._tr_tally=function(ne,be,Ue){return ne.pending_buf[ne.d_buf+2*ne.last_lit]=be>>>8&255,ne.pending_buf[ne.d_buf+2*ne.last_lit+1]=255&be,ne.pending_buf[ne.l_buf+ne.last_lit]=255&Ue,ne.last_lit++,be===0?ne.dyn_ltree[2*Ue]++:(ne.matches++,be--,ne.dyn_ltree[2*(P[Ue]+d+1)]++,ne.dyn_dtree[2*le(be)]++),ne.last_lit===ne.lit_bufsize-1},i._tr_align=function(ne){xe(ne,2,3),ge(ne,S,z),(function(be){be.bi_valid===16?(G(be,be.bi_buf),be.bi_buf=0,be.bi_valid=0):8<=be.bi_valid&&(be.pending_buf[be.pending++]=255&be.bi_buf,be.bi_buf>>=8,be.bi_valid-=8)})(ne)}},{"../utils/common":41}],53:[function(n,r,i){r.exports=function(){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}},{}],54:[function(n,r,i){(function(a){(function(o,s){if(!o.setImmediate){var l,c,u,d,h=1,f={},g=!1,y=o.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(o);v=v&&v.setTimeout?v:o,l={}.toString.call(o.process)==="[object process]"?function(_){process.nextTick(function(){w(_)})}:(function(){if(o.postMessage&&!o.importScripts){var _=!0,E=o.onmessage;return o.onmessage=function(){_=!1},o.postMessage("","*"),o.onmessage=E,_}})()?(d="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",S,!1):o.attachEvent("onmessage",S),function(_){o.postMessage(d+_,"*")}):o.MessageChannel?((u=new MessageChannel).port1.onmessage=function(_){w(_.data)},function(_){u.port2.postMessage(_)}):y&&"onreadystatechange"in y.createElement("script")?(c=y.documentElement,function(_){var E=y.createElement("script");E.onreadystatechange=function(){w(_),E.onreadystatechange=null,c.removeChild(E),E=null},c.appendChild(E)}):function(_){setTimeout(w,0,_)},v.setImmediate=function(_){typeof _!="function"&&(_=new Function(""+_));for(var E=new Array(arguments.length-1),T=0;T<E.length;T++)E[T]=arguments[T+1];var D={callback:_,args:E};return f[h]=D,l(h),h++},v.clearImmediate=A}function A(_){delete f[_]}function w(_){if(g)setTimeout(w,0,_);else{var E=f[_];if(E){g=!0;try{(function(T){var D=T.callback,I=T.args;switch(I.length){case 0:D();break;case 1:D(I[0]);break;case 2:D(I[0],I[1]);break;case 3:D(I[0],I[1],I[2]);break;default:D.apply(s,I)}})(E)}finally{A(_),g=!1}}}}function S(_){_.source===o&&typeof _.data=="string"&&_.data.indexOf(d)===0&&w(+_.data.slice(d.length))}})(typeof self>"u"?a===void 0?this:a:self)}).call(this,typeof zu<"u"?zu:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(dD)),dD.exports}var jM;function Uq(){if(jM)return pm;jM=1;var e=kxe(),t=Mq();pm.openArrayBuffer=n,pm.splitPath=r,pm.joinPath=i;function n(a){return t.loadAsync(a).then(function(o){function s(d){return o.file(d)!==null}function l(d,h){return o.file(d).async("uint8array").then(function(f){if(h==="base64")return e.fromByteArray(f);if(h){var g=new TextDecoder(h);return g.decode(f)}else return f})}function c(d,h){o.file(d,h)}function u(){return o.generateAsync({type:"arraybuffer"})}return{exists:s,read:l,write:c,toArrayBuffer:u}})}function r(a){var o=a.lastIndexOf("/");return o===-1?{dirname:"",basename:a}:{dirname:a.substring(0,o),basename:a.substring(o+1)}}function i(){var a=Array.prototype.filter.call(arguments,function(s){return s}),o=[];return a.forEach(function(s){/^\//.test(s)?o=[s]:o.push(s)}),o.join("/")}return pm}var Ax={},Su={},Wh={},BM;function Lq(){if(BM)return Wh;BM=1;var e=ga;Wh.Element=n,Wh.element=function(a,o,s){return new n(a,o,s)},Wh.text=function(a){return{type:"text",value:a}};var t=Wh.emptyElement={first:function(){return null},firstOrEmpty:function(){return t},attributes:{},children:[]};function n(a,o,s){this.type="element",this.name=a,this.attributes=o||{},this.children=s||[]}n.prototype.first=function(a){return e.find(this.children,function(o){return o.name===a})},n.prototype.firstOrEmpty=function(a){return this.first(a)||t},n.prototype.getElementsByTagName=function(a){var o=e.filter(this.children,function(s){return s.name===a});return i(o)},n.prototype.text=function(){if(this.children.length===0)return"";if(this.children.length!==1||this.children[0].type!=="text")throw new Error("Not implemented");return this.children[0].value};var r={getElementsByTagName:function(a){return i(e.flatten(this.map(function(o){return o.getElementsByTagName(a)},!0)))}};function i(a){return e.extend(a,r)}return Wh}var fD={},wx={},mm={},Ec={},Qd={},zM;function fw(){if(zM)return Qd;zM=1;function e(a,o,s){if(s===void 0&&(s=Array.prototype),a&&typeof s.find=="function")return s.find.call(a,o);for(var l=0;l<a.length;l++)if(Object.prototype.hasOwnProperty.call(a,l)){var c=a[l];if(o.call(void 0,c,l,a))return c}}function t(a,o){return o===void 0&&(o=Object),o&&typeof o.freeze=="function"?o.freeze(a):a}function n(a,o){if(a===null||typeof a!="object")throw new TypeError("target is not an object");for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(a[s]=o[s]);return a}var r=t({HTML:"text/html",isHTML:function(a){return a===r.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),i=t({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(a){return a===i.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return Qd.assign=n,Qd.find=e,Qd.freeze=t,Qd.MIME_TYPE=r,Qd.NAMESPACE=i,Qd}var WM;function E3(){if(WM)return Ec;WM=1;var e=fw(),t=e.find,n=e.NAMESPACE;function r(M){return M!==""}function i(M){return M?M.split(/[\t\n\f\r ]+/).filter(r):[]}function a(M,k){return M.hasOwnProperty(k)||(M[k]=!0),M}function o(M){if(!M)return[];var k=i(M);return Object.keys(k.reduce(a,{}))}function s(M){return function(k){return M&&M.indexOf(k)!==-1}}function l(M,k){for(var O in M)Object.prototype.hasOwnProperty.call(M,O)&&(k[O]=M[O])}function c(M,k){var O=M.prototype;if(!(O instanceof k)){let H=function(){};H.prototype=k.prototype,H=new H,l(O,H),M.prototype=O=H}O.constructor!=M&&(typeof M!="function"&&console.error("unknown Class:"+M),O.constructor=M)}var u={},d=u.ELEMENT_NODE=1,h=u.ATTRIBUTE_NODE=2,f=u.TEXT_NODE=3,g=u.CDATA_SECTION_NODE=4,y=u.ENTITY_REFERENCE_NODE=5,v=u.ENTITY_NODE=6,A=u.PROCESSING_INSTRUCTION_NODE=7,w=u.COMMENT_NODE=8,S=u.DOCUMENT_NODE=9,_=u.DOCUMENT_TYPE_NODE=10,E=u.DOCUMENT_FRAGMENT_NODE=11,T=u.NOTATION_NODE=12,D={},I={};D.INDEX_SIZE_ERR=(I[1]="Index size error",1),D.DOMSTRING_SIZE_ERR=(I[2]="DOMString size error",2);var j=D.HIERARCHY_REQUEST_ERR=(I[3]="Hierarchy request error",3);D.WRONG_DOCUMENT_ERR=(I[4]="Wrong document",4),D.INVALID_CHARACTER_ERR=(I[5]="Invalid character",5),D.NO_DATA_ALLOWED_ERR=(I[6]="No data allowed",6),D.NO_MODIFICATION_ALLOWED_ERR=(I[7]="No modification allowed",7);var R=D.NOT_FOUND_ERR=(I[8]="Not found",8);D.NOT_SUPPORTED_ERR=(I[9]="Not supported",9);var z=D.INUSE_ATTRIBUTE_ERR=(I[10]="Attribute in use",10);D.INVALID_STATE_ERR=(I[11]="Invalid state",11),D.SYNTAX_ERR=(I[12]="Syntax error",12),D.INVALID_MODIFICATION_ERR=(I[13]="Invalid modification",13),D.NAMESPACE_ERR=(I[14]="Invalid namespace",14),D.INVALID_ACCESS_ERR=(I[15]="Invalid access",15);function B(M,k){if(k instanceof Error)var O=k;else O=this,Error.call(this,I[M]),this.message=I[M],Error.captureStackTrace&&Error.captureStackTrace(this,B);return O.code=M,k&&(this.message=this.message+": "+k),O}B.prototype=Error.prototype,l(D,B);function W(){}W.prototype={length:0,item:function(M){return M>=0&&M<this.length?this[M]:null},toString:function(M,k){for(var O=[],H=0;H<this.length;H++)De(this[H],O,M,k);return O.join("")},filter:function(M){return Array.prototype.filter.call(this,M)},indexOf:function(M){return Array.prototype.indexOf.call(this,M)}};function P(M,k){this._node=M,this._refresh=k,Z(this)}function Z(M){var k=M._node._inc||M._node.ownerDocument._inc;if(M._inc!==k){var O=M._refresh(M._node);if(ae(M,"length",O.length),!M.$$length||O.length<M.$$length)for(var H=O.length;H in M;H++)Object.prototype.hasOwnProperty.call(M,H)&&delete M[H];l(O,M),M._inc=k}}P.prototype.item=function(M){return Z(this),this[M]||null},c(P,W);function Q(){}function X(M,k){for(var O=M.length;O--;)if(M[O]===k)return O}function q(M,k,O,H){if(H?k[X(k,H)]=O:k[k.length++]=O,M){O.ownerElement=M;var Ne=M.ownerDocument;Ne&&(H&&ue(Ne,M,H),ge(Ne,M,O))}}function te(M,k,O){var H=X(k,O);if(H>=0){for(var Ne=k.length-1;H<Ne;)k[H]=k[++H];if(k.length=Ne,M){var _e=M.ownerDocument;_e&&(ue(_e,M,O),O.ownerElement=null)}}else throw new B(R,new Error(M.tagName+"@"+O))}Q.prototype={length:0,item:W.prototype.item,getNamedItem:function(M){for(var k=this.length;k--;){var O=this[k];if(O.nodeName==M)return O}},setNamedItem:function(M){var k=M.ownerElement;if(k&&k!=this._ownerElement)throw new B(z);var O=this.getNamedItem(M.nodeName);return q(this._ownerElement,this,M,O),O},setNamedItemNS:function(M){var k=M.ownerElement,O;if(k&&k!=this._ownerElement)throw new B(z);return O=this.getNamedItemNS(M.namespaceURI,M.localName),q(this._ownerElement,this,M,O),O},removeNamedItem:function(M){var k=this.getNamedItem(M);return te(this._ownerElement,this,k),k},removeNamedItemNS:function(M,k){var O=this.getNamedItemNS(M,k);return te(this._ownerElement,this,O),O},getNamedItemNS:function(M,k){for(var O=this.length;O--;){var H=this[O];if(H.localName==k&&H.namespaceURI==M)return H}return null}};function J(){}J.prototype={hasFeature:function(M,k){return!0},createDocument:function(M,k,O){var H=new xe;if(H.implementation=this,H.childNodes=new W,H.doctype=O||null,O&&H.appendChild(O),k){var Ne=H.createElementNS(M,k);H.appendChild(Ne)}return H},createDocumentType:function(M,k,O){var H=new Xe;return H.name=M,H.nodeName=M,H.publicId=k||"",H.systemId=O||"",H}};function ee(){}ee.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(M,k){return be(this,M,k)},replaceChild:function(M,k){be(this,M,k,ne),k&&this.removeChild(k)},removeChild:function(M){return ye(this,M)},appendChild:function(M){return this.insertBefore(M,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(M){return b(this.ownerDocument||this,this,M)},normalize:function(){for(var M=this.firstChild;M;){var k=M.nextSibling;k&&k.nodeType==f&&M.nodeType==f?(this.removeChild(k),M.appendData(k.data)):(M.normalize(),M=k)}},isSupported:function(M,k){return this.ownerDocument.implementation.hasFeature(M,k)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(M){for(var k=this;k;){var O=k._nsMap;if(O){for(var H in O)if(Object.prototype.hasOwnProperty.call(O,H)&&O[H]===M)return H}k=k.nodeType==h?k.ownerDocument:k.parentNode}return null},lookupNamespaceURI:function(M){for(var k=this;k;){var O=k._nsMap;if(O&&Object.prototype.hasOwnProperty.call(O,M))return O[M];k=k.nodeType==h?k.ownerDocument:k.parentNode}return null},isDefaultNamespace:function(M){var k=this.lookupPrefix(M);return k==null}};function le(M){return M=="<"&&"<"||M==">"&&">"||M=="&"&&"&"||M=='"'&&"""||"&#"+M.charCodeAt()+";"}l(u,ee),l(u,ee.prototype);function G(M,k){if(k(M))return!0;if(M=M.firstChild)do if(G(M,k))return!0;while(M=M.nextSibling)}function xe(){this.ownerDocument=this}function ge(M,k,O){M&&M._inc++;var H=O.namespaceURI;H===n.XMLNS&&(k._nsMap[O.prefix?O.localName:""]=O.value)}function ue(M,k,O,H){M&&M._inc++;var Ne=O.namespaceURI;Ne===n.XMLNS&&delete k._nsMap[O.prefix?O.localName:""]}function ce(M,k,O){if(M&&M._inc){M._inc++;var H=k.childNodes;if(O)H[H.length++]=O;else{for(var Ne=k.firstChild,_e=0;Ne;)H[_e++]=Ne,Ne=Ne.nextSibling;H.length=_e,delete H[H.length]}}}function ye(M,k){var O=k.previousSibling,H=k.nextSibling;return O?O.nextSibling=H:M.firstChild=H,H?H.previousSibling=O:M.lastChild=O,k.parentNode=null,k.previousSibling=null,k.nextSibling=null,ce(M.ownerDocument,M),k}function Fe(M){return M&&(M.nodeType===ee.DOCUMENT_NODE||M.nodeType===ee.DOCUMENT_FRAGMENT_NODE||M.nodeType===ee.ELEMENT_NODE)}function Oe(M){return M&&(Re(M)||We(M)||Le(M)||M.nodeType===ee.DOCUMENT_FRAGMENT_NODE||M.nodeType===ee.COMMENT_NODE||M.nodeType===ee.PROCESSING_INSTRUCTION_NODE)}function Le(M){return M&&M.nodeType===ee.DOCUMENT_TYPE_NODE}function Re(M){return M&&M.nodeType===ee.ELEMENT_NODE}function We(M){return M&&M.nodeType===ee.TEXT_NODE}function V(M,k){var O=M.childNodes||[];if(t(O,Re)||Le(k))return!1;var H=t(O,Le);return!(k&&H&&O.indexOf(H)>O.indexOf(k))}function ve(M,k){var O=M.childNodes||[];function H(_e){return Re(_e)&&_e!==k}if(t(O,H))return!1;var Ne=t(O,Le);return!(k&&Ne&&O.indexOf(Ne)>O.indexOf(k))}function oe(M,k,O){if(!Fe(M))throw new B(j,"Unexpected parent node type "+M.nodeType);if(O&&O.parentNode!==M)throw new B(R,"child not in parent");if(!Oe(k)||Le(k)&&M.nodeType!==ee.DOCUMENT_NODE)throw new B(j,"Unexpected node type "+k.nodeType+" for parent node type "+M.nodeType)}function re(M,k,O){var H=M.childNodes||[],Ne=k.childNodes||[];if(k.nodeType===ee.DOCUMENT_FRAGMENT_NODE){var _e=Ne.filter(Re);if(_e.length>1||t(Ne,We))throw new B(j,"More than one element or text in fragment");if(_e.length===1&&!V(M,O))throw new B(j,"Element in fragment can not be inserted before doctype")}if(Re(k)&&!V(M,O))throw new B(j,"Only one element can be added and only after doctype");if(Le(k)){if(t(H,Le))throw new B(j,"Only one doctype is allowed");var Pe=t(H,Re);if(O&&H.indexOf(Pe)<H.indexOf(O))throw new B(j,"Doctype can only be inserted before an element");if(!O&&Pe)throw new B(j,"Doctype can not be appended since element is present")}}function ne(M,k,O){var H=M.childNodes||[],Ne=k.childNodes||[];if(k.nodeType===ee.DOCUMENT_FRAGMENT_NODE){var _e=Ne.filter(Re);if(_e.length>1||t(Ne,We))throw new B(j,"More than one element or text in fragment");if(_e.length===1&&!ve(M,O))throw new B(j,"Element in fragment can not be inserted before doctype")}if(Re(k)&&!ve(M,O))throw new B(j,"Only one element can be added and only after doctype");if(Le(k)){if(t(H,function(ut){return Le(ut)&&ut!==O}))throw new B(j,"Only one doctype is allowed");var Pe=t(H,Re);if(O&&H.indexOf(Pe)<H.indexOf(O))throw new B(j,"Doctype can only be inserted before an element")}}function be(M,k,O,H){oe(M,k,O),M.nodeType===ee.DOCUMENT_NODE&&(H||re)(M,k,O);var Ne=k.parentNode;if(Ne&&Ne.removeChild(k),k.nodeType===E){var _e=k.firstChild;if(_e==null)return k;var Pe=k.lastChild}else _e=Pe=k;var Ze=O?O.previousSibling:M.lastChild;_e.previousSibling=Ze,Pe.nextSibling=O,Ze?Ze.nextSibling=_e:M.firstChild=_e,O==null?M.lastChild=Pe:O.previousSibling=Pe;do{_e.parentNode=M;var ut=M.ownerDocument||M;Ue(_e,ut)}while(_e!==Pe&&(_e=_e.nextSibling));return ce(M.ownerDocument||M,M),k.nodeType==E&&(k.firstChild=k.lastChild=null),k}function Ue(M,k){if(M.ownerDocument!==k){if(M.ownerDocument=k,M.nodeType===d&&M.attributes)for(var O=0;O<M.attributes.length;O++){var H=M.attributes.item(O);H&&(H.ownerDocument=k)}for(var Ne=M.firstChild;Ne;)Ue(Ne,k),Ne=Ne.nextSibling}}function Me(M,k){k.parentNode&&k.parentNode.removeChild(k),k.parentNode=M,k.previousSibling=M.lastChild,k.nextSibling=null,k.previousSibling?k.previousSibling.nextSibling=k:M.firstChild=k,M.lastChild=k,ce(M.ownerDocument,M,k);var O=M.ownerDocument||M;return Ue(k,O),k}xe.prototype={nodeName:"#document",nodeType:S,doctype:null,documentElement:null,_inc:1,insertBefore:function(M,k){if(M.nodeType==E){for(var O=M.firstChild;O;){var H=O.nextSibling;this.insertBefore(O,k),O=H}return M}return be(this,M,k),Ue(M,this),this.documentElement===null&&M.nodeType===d&&(this.documentElement=M),M},removeChild:function(M){return this.documentElement==M&&(this.documentElement=null),ye(this,M)},replaceChild:function(M,k){be(this,M,k,ne),Ue(M,this),k&&this.removeChild(k),Re(M)&&(this.documentElement=M)},importNode:function(M,k){return He(this,M,k)},getElementById:function(M){var k=null;return G(this.documentElement,function(O){if(O.nodeType==d&&O.getAttribute("id")==M)return k=O,!0}),k},getElementsByClassName:function(M){var k=o(M);return new P(this,function(O){var H=[];return k.length>0&&G(O.documentElement,function(Ne){if(Ne!==O&&Ne.nodeType===d){var _e=Ne.getAttribute("class");if(_e){var Pe=M===_e;if(!Pe){var Ze=o(_e);Pe=k.every(s(Ze))}Pe&&H.push(Ne)}}}),H})},createElement:function(M){var k=new Ee;k.ownerDocument=this,k.nodeName=M,k.tagName=M,k.localName=M,k.childNodes=new W;var O=k.attributes=new Q;return O._ownerElement=k,k},createDocumentFragment:function(){var M=new Ae;return M.ownerDocument=this,M.childNodes=new W,M},createTextNode:function(M){var k=new pe;return k.ownerDocument=this,k.appendData(M),k},createComment:function(M){var k=new ke;return k.ownerDocument=this,k.appendData(M),k},createCDATASection:function(M){var k=new Ve;return k.ownerDocument=this,k.appendData(M),k},createProcessingInstruction:function(M,k){var O=new se;return O.ownerDocument=this,O.tagName=O.nodeName=O.target=M,O.nodeValue=O.data=k,O},createAttribute:function(M){var k=new Se;return k.ownerDocument=this,k.name=M,k.nodeName=M,k.localName=M,k.specified=!0,k},createEntityReference:function(M){var k=new U;return k.ownerDocument=this,k.nodeName=M,k},createElementNS:function(M,k){var O=new Ee,H=k.split(":"),Ne=O.attributes=new Q;return O.childNodes=new W,O.ownerDocument=this,O.nodeName=k,O.tagName=k,O.namespaceURI=M,H.length==2?(O.prefix=H[0],O.localName=H[1]):O.localName=k,Ne._ownerElement=O,O},createAttributeNS:function(M,k){var O=new Se,H=k.split(":");return O.ownerDocument=this,O.nodeName=k,O.name=k,O.namespaceURI=M,O.specified=!0,H.length==2?(O.prefix=H[0],O.localName=H[1]):O.localName=k,O}},c(xe,ee);function Ee(){this._nsMap={}}Ee.prototype={nodeType:d,hasAttribute:function(M){return this.getAttributeNode(M)!=null},getAttribute:function(M){var k=this.getAttributeNode(M);return k&&k.value||""},getAttributeNode:function(M){return this.attributes.getNamedItem(M)},setAttribute:function(M,k){var O=this.ownerDocument.createAttribute(M);O.value=O.nodeValue=""+k,this.setAttributeNode(O)},removeAttribute:function(M){var k=this.getAttributeNode(M);k&&this.removeAttributeNode(k)},appendChild:function(M){return M.nodeType===E?this.insertBefore(M,null):Me(this,M)},setAttributeNode:function(M){return this.attributes.setNamedItem(M)},setAttributeNodeNS:function(M){return this.attributes.setNamedItemNS(M)},removeAttributeNode:function(M){return this.attributes.removeNamedItem(M.nodeName)},removeAttributeNS:function(M,k){var O=this.getAttributeNodeNS(M,k);O&&this.removeAttributeNode(O)},hasAttributeNS:function(M,k){return this.getAttributeNodeNS(M,k)!=null},getAttributeNS:function(M,k){var O=this.getAttributeNodeNS(M,k);return O&&O.value||""},setAttributeNS:function(M,k,O){var H=this.ownerDocument.createAttributeNS(M,k);H.value=H.nodeValue=""+O,this.setAttributeNode(H)},getAttributeNodeNS:function(M,k){return this.attributes.getNamedItemNS(M,k)},getElementsByTagName:function(M){return new P(this,function(k){var O=[];return G(k,function(H){H!==k&&H.nodeType==d&&(M==="*"||H.tagName==M)&&O.push(H)}),O})},getElementsByTagNameNS:function(M,k){return new P(this,function(O){var H=[];return G(O,function(Ne){Ne!==O&&Ne.nodeType===d&&(M==="*"||Ne.namespaceURI===M)&&(k==="*"||Ne.localName==k)&&H.push(Ne)}),H})}},xe.prototype.getElementsByTagName=Ee.prototype.getElementsByTagName,xe.prototype.getElementsByTagNameNS=Ee.prototype.getElementsByTagNameNS,c(Ee,ee);function Se(){}Se.prototype.nodeType=h,c(Se,ee);function Ce(){}Ce.prototype={data:"",substringData:function(M,k){return this.data.substring(M,M+k)},appendData:function(M){M=this.data+M,this.nodeValue=this.data=M,this.length=M.length},insertData:function(M,k){this.replaceData(M,0,k)},appendChild:function(M){throw new Error(I[j])},deleteData:function(M,k){this.replaceData(M,k,"")},replaceData:function(M,k,O){var H=this.data.substring(0,M),Ne=this.data.substring(M+k);O=H+O+Ne,this.nodeValue=this.data=O,this.length=O.length}},c(Ce,ee);function pe(){}pe.prototype={nodeName:"#text",nodeType:f,splitText:function(M){var k=this.data,O=k.substring(M);k=k.substring(0,M),this.data=this.nodeValue=k,this.length=k.length;var H=this.ownerDocument.createTextNode(O);return this.parentNode&&this.parentNode.insertBefore(H,this.nextSibling),H}},c(pe,Ce);function ke(){}ke.prototype={nodeName:"#comment",nodeType:w},c(ke,Ce);function Ve(){}Ve.prototype={nodeName:"#cdata-section",nodeType:g},c(Ve,Ce);function Xe(){}Xe.prototype.nodeType=_,c(Xe,ee);function it(){}it.prototype.nodeType=T,c(it,ee);function et(){}et.prototype.nodeType=v,c(et,ee);function U(){}U.prototype.nodeType=y,c(U,ee);function Ae(){}Ae.prototype.nodeName="#document-fragment",Ae.prototype.nodeType=E,c(Ae,ee);function se(){}se.prototype.nodeType=A,c(se,ee);function Te(){}Te.prototype.serializeToString=function(M,k,O){return $.call(M,k,O)},ee.prototype.toString=$;function $(M,k){var O=[],H=this.nodeType==9&&this.documentElement||this,Ne=H.prefix,_e=H.namespaceURI;if(_e&&Ne==null){var Ne=H.lookupPrefix(_e);if(Ne==null)var Pe=[{namespace:_e,prefix:null}]}return De(this,O,M,k,Pe),O.join("")}function de(M,k,O){var H=M.prefix||"",Ne=M.namespaceURI;if(!Ne||H==="xml"&&Ne===n.XML||Ne===n.XMLNS)return!1;for(var _e=O.length;_e--;){var Pe=O[_e];if(Pe.prefix===H)return Pe.namespace!==Ne}return!0}function F(M,k,O){M.push(" ",k,'="',O.replace(/[<>&"\t\n\r]/g,le),'"')}function De(M,k,O,H,Ne){if(Ne||(Ne=[]),H)if(M=H(M),M){if(typeof M=="string"){k.push(M);return}}else return;switch(M.nodeType){case d:var _e=M.attributes,Pe=_e.length,Xt=M.firstChild,Ze=M.tagName;O=n.isHTML(M.namespaceURI)||O;var ut=Ze;if(!O&&!M.prefix&&M.namespaceURI){for(var st,Je=0;Je<_e.length;Je++)if(_e.item(Je).name==="xmlns"){st=_e.item(Je).value;break}if(!st)for(var pt=Ne.length-1;pt>=0;pt--){var xt=Ne[pt];if(xt.prefix===""&&xt.namespace===M.namespaceURI){st=xt.namespace;break}}if(st!==M.namespaceURI)for(var pt=Ne.length-1;pt>=0;pt--){var xt=Ne[pt];if(xt.namespace===M.namespaceURI){xt.prefix&&(ut=xt.prefix+":"+Ze);break}}}k.push("<",ut);for(var dt=0;dt<Pe;dt++){var rn=_e.item(dt);rn.prefix=="xmlns"?Ne.push({prefix:rn.localName,namespace:rn.value}):rn.nodeName=="xmlns"&&Ne.push({prefix:"",namespace:rn.value})}for(var dt=0;dt<Pe;dt++){var rn=_e.item(dt);if(de(rn,O,Ne)){var Yn=rn.prefix||"",Lt=rn.namespaceURI;F(k,Yn?"xmlns:"+Yn:"xmlns",Lt),Ne.push({prefix:Yn,namespace:Lt})}De(rn,k,O,H,Ne)}if(Ze===ut&&de(M,O,Ne)){var Yn=M.prefix||"",Lt=M.namespaceURI;F(k,Yn?"xmlns:"+Yn:"xmlns",Lt),Ne.push({prefix:Yn,namespace:Lt})}if(Xt||O&&!/^(?:meta|link|img|br|hr|input)$/i.test(Ze)){if(k.push(">"),O&&/^script$/i.test(Ze))for(;Xt;)Xt.data?k.push(Xt.data):De(Xt,k,O,H,Ne.slice()),Xt=Xt.nextSibling;else for(;Xt;)De(Xt,k,O,H,Ne.slice()),Xt=Xt.nextSibling;k.push("</",ut,">")}else k.push("/>");return;case S:case E:for(var Xt=M.firstChild;Xt;)De(Xt,k,O,H,Ne.slice()),Xt=Xt.nextSibling;return;case h:return F(k,M.name,M.value);case f:return k.push(M.data.replace(/[<&>]/g,le));case g:return k.push("<![CDATA[",M.data,"]]>");case w:return k.push("<!--",M.data,"-->");case _:var qt=M.publicId,Tn=M.systemId;if(k.push("<!DOCTYPE ",M.name),qt)k.push(" PUBLIC ",qt),Tn&&Tn!="."&&k.push(" ",Tn),k.push(">");else if(Tn&&Tn!=".")k.push(" SYSTEM ",Tn,">");else{var Ye=M.internalSubset;Ye&&k.push(" [",Ye,"]"),k.push(">")}return;case A:return k.push("<?",M.target," ",M.data,"?>");case y:return k.push("&",M.nodeName,";");default:k.push("??",M.nodeName)}}function He(M,k,O){var H;switch(k.nodeType){case d:H=k.cloneNode(!1),H.ownerDocument=M;case E:break;case h:O=!0;break}if(H||(H=k.cloneNode(!1)),H.ownerDocument=M,H.parentNode=null,O)for(var Ne=k.firstChild;Ne;)H.appendChild(He(M,Ne,O)),Ne=Ne.nextSibling;return H}function b(M,k,O){var H=new k.constructor;for(var Ne in k)if(Object.prototype.hasOwnProperty.call(k,Ne)){var _e=k[Ne];typeof _e!="object"&&_e!=H[Ne]&&(H[Ne]=_e)}switch(k.childNodes&&(H.childNodes=new W),H.ownerDocument=M,H.nodeType){case d:var Pe=k.attributes,Ze=H.attributes=new Q,ut=Pe.length;Ze._ownerElement=H;for(var st=0;st<ut;st++)H.setAttributeNode(b(M,Pe.item(st),!0));break;case h:O=!0}if(O)for(var Je=k.firstChild;Je;)H.appendChild(b(M,Je,O)),Je=Je.nextSibling;return H}function ae(M,k,O){M[k]=O}try{if(Object.defineProperty){let M=function(k){switch(k.nodeType){case d:case E:var O=[];for(k=k.firstChild;k;)k.nodeType!==7&&k.nodeType!==8&&O.push(M(k)),k=k.nextSibling;return O.join("");default:return k.nodeValue}};Object.defineProperty(P.prototype,"length",{get:function(){return Z(this),this.$$length}}),Object.defineProperty(ee.prototype,"textContent",{get:function(){return M(this)},set:function(k){switch(this.nodeType){case d:case E:for(;this.firstChild;)this.removeChild(this.firstChild);(k||String(k))&&this.appendChild(this.ownerDocument.createTextNode(k));break;default:this.data=k,this.value=k,this.nodeValue=k}}}),ae=function(k,O,H){k["$$"+O]=H}}}catch{}return Ec.DocumentType=Xe,Ec.DOMException=B,Ec.DOMImplementation=J,Ec.Element=Ee,Ec.Node=ee,Ec.NodeList=W,Ec.XMLSerializer=Te,Ec}var ym={},hD={},VM;function Dxe(){return VM||(VM=1,(function(e){var t=fw().freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`-`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),e.entityMap=e.HTML_ENTITIES})(hD)),hD}var Sx={},GM;function Cxe(){if(GM)return Sx;GM=1;var e=fw().NAMESPACE,t=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=new RegExp("[\\-\\.0-9"+t.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),r=new RegExp("^"+t.source+n.source+"*(?::"+t.source+n.source+"*)?$"),i=0,a=1,o=2,s=3,l=4,c=5,u=6,d=7;function h(j,R){this.message=j,this.locator=R,Error.captureStackTrace&&Error.captureStackTrace(this,h)}h.prototype=new Error,h.prototype.name=h.name;function f(){}f.prototype={parse:function(j,R,z){var B=this.domBuilder;B.startDocument(),_(R,R={}),g(j,R,z,B,this.errorHandler),B.endDocument()}};function g(j,R,z,B,W){function P(Me){if(Me>65535){Me-=65536;var Ee=55296+(Me>>10),Se=56320+(Me&1023);return String.fromCharCode(Ee,Se)}else return String.fromCharCode(Me)}function Z(Me){var Ee=Me.slice(1,-1);return Object.hasOwnProperty.call(z,Ee)?z[Ee]:Ee.charAt(0)==="#"?P(parseInt(Ee.substr(1).replace("x","0x"))):(W.error("entity not found:"+Me),Me)}function Q(Me){if(Me>xe){var Ee=j.substring(xe,Me).replace(/&#?\w+;/g,Z);ee&&X(xe),B.characters(Ee,0,Me-xe),xe=Me}}function X(Me,Ee){for(;Me>=te&&(Ee=J.exec(j));)q=Ee.index,te=q+Ee[0].length,ee.lineNumber++;ee.columnNumber=Me-q+1}for(var q=0,te=0,J=/.*(?:\r\n?|\n)|.*$/g,ee=B.locator,le=[{currentNSMap:R}],G={},xe=0;;){try{var ge=j.indexOf("<",xe);if(ge<0){if(!j.substr(xe).match(/^\s*$/)){var ue=B.doc,ce=ue.createTextNode(j.substr(xe));ue.appendChild(ce),B.currentElement=ce}return}switch(ge>xe&&Q(ge),j.charAt(ge+1)){case"/":var oe=j.indexOf(">",ge+3),ye=j.substring(ge+2,oe).replace(/[ \t\n\r]+$/g,""),Fe=le.pop();oe<0?(ye=j.substring(ge+2).replace(/[\s<].*/,""),W.error("end tag name: "+ye+" is not complete:"+Fe.tagName),oe=ge+1+ye.length):ye.match(/\s</)&&(ye=ye.replace(/[\s<].*/,""),W.error("end tag name: "+ye+" maybe not complete"),oe=ge+1+ye.length);var Oe=Fe.localNSMap,Le=Fe.tagName==ye,Re=Le||Fe.tagName&&Fe.tagName.toLowerCase()==ye.toLowerCase();if(Re){if(B.endElement(Fe.uri,Fe.localName,ye),Oe)for(var We in Oe)Object.prototype.hasOwnProperty.call(Oe,We)&&B.endPrefixMapping(We);Le||W.fatalError("end tag name: "+ye+" is not match the current start tagName:"+Fe.tagName)}else le.push(Fe);oe++;break;case"?":ee&&X(ge),oe=T(j,ge,B);break;case"!":ee&&X(ge),oe=E(j,ge,B,W);break;default:ee&&X(ge);var V=new D,ve=le[le.length-1].currentNSMap,oe=v(j,ge,V,ve,Z,W),re=V.length;if(!V.closed&&S(j,oe,V.tagName,G)&&(V.closed=!0,z.nbsp||W.warning("unclosed xml attribute")),ee&&re){for(var ne=y(ee,{}),be=0;be<re;be++){var Ue=V[be];X(Ue.offset),Ue.locator=y(ee,{})}B.locator=ne,A(V,B,ve)&&le.push(V),B.locator=ee}else A(V,B,ve)&&le.push(V);e.isHTML(V.uri)&&!V.closed?oe=w(j,oe,V.tagName,Z,B):oe++}}catch(Me){if(Me instanceof h)throw Me;W.error("element parse error: "+Me),oe=-1}oe>xe?xe=oe:Q(Math.max(ge,xe)+1)}}function y(j,R){return R.lineNumber=j.lineNumber,R.columnNumber=j.columnNumber,R}function v(j,R,z,B,W,P){function Z(ee,le,G){z.attributeNames.hasOwnProperty(ee)&&P.fatalError("Attribute "+ee+" redefined"),z.addValue(ee,le.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,W),G)}for(var Q,X,q=++R,te=i;;){var J=j.charAt(q);switch(J){case"=":if(te===a)Q=j.slice(R,q),te=s;else if(te===o)te=s;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(te===s||te===a)if(te===a&&(P.warning('attribute value must after "="'),Q=j.slice(R,q)),R=q+1,q=j.indexOf(J,R),q>0)X=j.slice(R,q),Z(Q,X,R-1),te=c;else throw new Error("attribute value no end '"+J+"' match");else if(te==l)X=j.slice(R,q),Z(Q,X,R),P.warning('attribute "'+Q+'" missed start quot('+J+")!!"),R=q+1,te=c;else throw new Error('attribute value must after "="');break;case"/":switch(te){case i:z.setTagName(j.slice(R,q));case c:case u:case d:te=d,z.closed=!0;case l:case a:break;case o:z.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return P.error("unexpected end of input"),te==i&&z.setTagName(j.slice(R,q)),q;case">":switch(te){case i:z.setTagName(j.slice(R,q));case c:case u:case d:break;case l:case a:X=j.slice(R,q),X.slice(-1)==="/"&&(z.closed=!0,X=X.slice(0,-1));case o:te===o&&(X=Q),te==l?(P.warning('attribute "'+X+'" missed quot(")!'),Z(Q,X,R)):((!e.isHTML(B[""])||!X.match(/^(?:disabled|checked|selected)$/i))&&P.warning('attribute "'+X+'" missed value!! "'+X+'" instead!!'),Z(X,X,R));break;case s:throw new Error("attribute value missed!!")}return q;case"":J=" ";default:if(J<=" ")switch(te){case i:z.setTagName(j.slice(R,q)),te=u;break;case a:Q=j.slice(R,q),te=o;break;case l:var X=j.slice(R,q);P.warning('attribute "'+X+'" missed quot(")!!'),Z(Q,X,R);case c:te=u;break}else switch(te){case o:z.tagName,(!e.isHTML(B[""])||!Q.match(/^(?:disabled|checked|selected)$/i))&&P.warning('attribute "'+Q+'" missed value!! "'+Q+'" instead2!!'),Z(Q,Q,R),R=q,te=a;break;case c:P.warning('attribute space is required"'+Q+'"!!');case u:te=a,R=q;break;case s:te=l,R=q;break;case d:throw new Error("elements closed character '/' and '>' must be connected to")}}q++}}function A(j,R,z){for(var B=j.tagName,W=null,J=j.length;J--;){var P=j[J],Z=P.qName,Q=P.value,ee=Z.indexOf(":");if(ee>0)var X=P.prefix=Z.slice(0,ee),q=Z.slice(ee+1),te=X==="xmlns"&&q;else q=Z,X=null,te=Z==="xmlns"&&"";P.localName=q,te!==!1&&(W==null&&(W={},_(z,z={})),z[te]=W[te]=Q,P.uri=e.XMLNS,R.startPrefixMapping(te,Q))}for(var J=j.length;J--;){P=j[J];var X=P.prefix;X&&(X==="xml"&&(P.uri=e.XML),X!=="xmlns"&&(P.uri=z[X||""]))}var ee=B.indexOf(":");ee>0?(X=j.prefix=B.slice(0,ee),q=j.localName=B.slice(ee+1)):(X=null,q=j.localName=B);var le=j.uri=z[X||""];if(R.startElement(le,q,B,j),j.closed){if(R.endElement(le,q,B),W)for(X in W)Object.prototype.hasOwnProperty.call(W,X)&&R.endPrefixMapping(X)}else return j.currentNSMap=z,j.localNSMap=W,!0}function w(j,R,z,B,W){if(/^(?:script|textarea)$/i.test(z)){var P=j.indexOf("</"+z+">",R),Z=j.substring(R+1,P);if(/[&<]/.test(Z))return/^script$/i.test(z)?(W.characters(Z,0,Z.length),P):(Z=Z.replace(/&#?\w+;/g,B),W.characters(Z,0,Z.length),P)}return R+1}function S(j,R,z,B){var W=B[z];return W==null&&(W=j.lastIndexOf("</"+z+">"),W<R&&(W=j.lastIndexOf("</"+z)),B[z]=W),W<R}function _(j,R){for(var z in j)Object.prototype.hasOwnProperty.call(j,z)&&(R[z]=j[z])}function E(j,R,z,B){var W=j.charAt(R+2);switch(W){case"-":if(j.charAt(R+3)==="-"){var P=j.indexOf("-->",R+4);return P>R?(z.comment(j,R+4,P-R-4),P+3):(B.error("Unclosed comment"),-1)}else return-1;default:if(j.substr(R+3,6)=="CDATA["){var P=j.indexOf("]]>",R+9);return z.startCDATA(),z.characters(j,R+9,P-R-9),z.endCDATA(),P+3}var Z=I(j,R),Q=Z.length;if(Q>1&&/!doctype/i.test(Z[0][0])){var X=Z[1][0],q=!1,te=!1;Q>3&&(/^public$/i.test(Z[2][0])?(q=Z[3][0],te=Q>4&&Z[4][0]):/^system$/i.test(Z[2][0])&&(te=Z[3][0]));var J=Z[Q-1];return z.startDTD(X,q,te),z.endDTD(),J.index+J[0].length}}return-1}function T(j,R,z){var B=j.indexOf("?>",R);if(B){var W=j.substring(R,B).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return W?(W[0].length,z.processingInstruction(W[1],W[2]),B+2):-1}return-1}function D(){this.attributeNames={}}D.prototype={setTagName:function(j){if(!r.test(j))throw new Error("invalid tagName:"+j);this.tagName=j},addValue:function(j,R,z){if(!r.test(j))throw new Error("invalid attribute:"+j);this.attributeNames[j]=this.length,this[this.length++]={qName:j,value:R,offset:z}},length:0,getLocalName:function(j){return this[j].localName},getLocator:function(j){return this[j].locator},getQName:function(j){return this[j].qName},getURI:function(j){return this[j].uri},getValue:function(j){return this[j].value}};function I(j,R){var z,B=[],W=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(W.lastIndex=R,W.exec(j);z=W.exec(j);)if(B.push(z),z[1])return B}return Sx.XMLReader=f,Sx.ParseError=h,Sx}var qM;function Txe(){if(qM)return ym;qM=1;var e=fw(),t=E3(),n=Dxe(),r=Cxe(),i=t.DOMImplementation,a=e.NAMESPACE,o=r.ParseError,s=r.XMLReader;function l(v){return v.replace(/\r[\n\u0085]/g,`-`).replace(/[\r\u0085\u2028]/g,`-`)}function c(v){this.options=v||{locator:{}}}c.prototype.parseFromString=function(v,A){var w=this.options,S=new s,_=w.domBuilder||new d,E=w.errorHandler,T=w.locator,D=w.xmlns||{},I=/\/x?html?$/.test(A),j=I?n.HTML_ENTITIES:n.XML_ENTITIES;T&&_.setDocumentLocator(T),S.errorHandler=u(E,_,T),S.domBuilder=w.domBuilder||_,I&&(D[""]=a.HTML),D.xml=D.xml||a.XML;var R=w.normalizeLineEndings||l;return v&&typeof v=="string"?S.parse(R(v),D,j):S.errorHandler.error("invalid doc source"),_.doc};function u(v,A,w){if(!v){if(A instanceof d)return A;v=A}var S={},_=v instanceof Function;w=w||{};function E(T){var D=v[T];!D&&_&&(D=v.length==2?function(I){v(T,I)}:v),S[T]=D&&function(I){D("[xmldom "+T+"] "+I+f(w))}||function(){}}return E("warning"),E("error"),E("fatalError"),S}function d(){this.cdata=!1}function h(v,A){A.lineNumber=v.lineNumber,A.columnNumber=v.columnNumber}d.prototype={startDocument:function(){this.doc=new i().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(v,A,w,S){var _=this.doc,E=_.createElementNS(v,w||A),T=S.length;y(this,E),this.currentElement=E,this.locator&&h(this.locator,E);for(var D=0;D<T;D++){var v=S.getURI(D),I=S.getValue(D),w=S.getQName(D),j=_.createAttributeNS(v,w);this.locator&&h(S.getLocator(D),j),j.value=j.nodeValue=I,E.setAttributeNode(j)}},endElement:function(v,A,w){var S=this.currentElement;S.tagName,this.currentElement=S.parentNode},startPrefixMapping:function(v,A){},endPrefixMapping:function(v){},processingInstruction:function(v,A){var w=this.doc.createProcessingInstruction(v,A);this.locator&&h(this.locator,w),y(this,w)},ignorableWhitespace:function(v,A,w){},characters:function(v,A,w){if(v=g.apply(this,arguments),v){if(this.cdata)var S=this.doc.createCDATASection(v);else var S=this.doc.createTextNode(v);this.currentElement?this.currentElement.appendChild(S):/^\s*$/.test(v)&&this.doc.appendChild(S),this.locator&&h(this.locator,S)}},skippedEntity:function(v){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(v){(this.locator=v)&&(v.lineNumber=0)},comment:function(v,A,w){v=g.apply(this,arguments);var S=this.doc.createComment(v);this.locator&&h(this.locator,S),y(this,S)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(v,A,w){var S=this.doc.implementation;if(S&&S.createDocumentType){var _=S.createDocumentType(v,A,w);this.locator&&h(this.locator,_),y(this,_),this.doc.doctype=_}},warning:function(v){console.warn("[xmldom warning] "+v,f(this.locator))},error:function(v){console.error("[xmldom error] "+v,f(this.locator))},fatalError:function(v){throw new o(v,this.locator)}};function f(v){if(v)return`-@`+(v.systemId||"")+"#[line:"+v.lineNumber+",col:"+v.columnNumber+"]"}function g(v,A,w){return typeof v=="string"?v.substr(A,w):v.length>=A+w||A?new java.lang.String(v,A,w)+"":v}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(v){d.prototype[v]=function(){return null}});function y(v,A){v.currentElement?v.currentElement.appendChild(A):v.doc.appendChild(A)}return ym.__DOMHandler=d,ym.normalizeLineEndings=l,ym.DOMParser=c,ym}var HM;function _xe(){if(HM)return mm;HM=1;var e=E3();return mm.DOMImplementation=e.DOMImplementation,mm.XMLSerializer=e.XMLSerializer,mm.DOMParser=Txe().DOMParser,mm}var XM;function Exe(){if(XM)return wx;XM=1;var e=_xe(),t=E3();function n(r){var i=null,a=new e.DOMParser({errorHandler:function(s,l){i={level:s,message:l}}}),o=a.parseFromString(r);if(i===null)return o;throw new Error(i.level+": "+i.message)}return wx.parseFromString=n,wx.Node=t.Node,wx}var ZM;function Nxe(){if(ZM)return fD;ZM=1;var e=Ad(),t=ga,n=Exe(),r=Lq(),i=r.Element;fD.readString=o;var a=n.Node;function o(s,l){l=l||{};try{var c=n.parseFromString(s,"text/xml")}catch(f){return e.reject(f)}if(c.documentElement.tagName==="parsererror")return e.resolve(new Error(c.documentElement.textContent));function u(f){switch(f.nodeType){case a.ELEMENT_NODE:return d(f);case a.TEXT_NODE:return r.text(f.nodeValue)}}function d(f){var g=h(f),y=[];t.forEach(f.childNodes,function(A){var w=u(A);w&&y.push(w)});var v={};return t.forEach(f.attributes,function(A){v[h(A)]=A.value}),new i(g,v,y)}function h(f){if(f.namespaceURI){var g=l[f.namespaceURI],y;return g?y=g+":":y="{"+f.namespaceURI+"}",y+f.localName}else return f.localName}return e.resolve(u(c.documentElement))}return fD}var pD={},ef={},Zl={},KM;function wd(){return KM||(KM=1,(function(){var e,t,n,r,i,a,o,s=[].slice,l={}.hasOwnProperty;e=function(){var c,u,d,h,f,g;if(g=arguments[0],f=2<=arguments.length?s.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(c=0,d=f.length;c<d;c++)if(h=f[c],h!=null)for(u in h)l.call(h,u)&&(g[u]=h[u]);return g},i=function(c){return!!c&&Object.prototype.toString.call(c)==="[object Function]"},a=function(c){var u;return!!c&&((u=typeof c)=="function"||u==="object")},n=function(c){return i(Array.isArray)?Array.isArray(c):Object.prototype.toString.call(c)==="[object Array]"},r=function(c){var u;if(n(c))return!c.length;for(u in c)if(l.call(c,u))return!1;return!0},o=function(c){var u,d;return a(c)&&(d=Object.getPrototypeOf(c))&&(u=d.constructor)&&typeof u=="function"&&u instanceof u&&Function.prototype.toString.call(u)===Function.prototype.toString.call(Object)},t=function(c){return i(c.valueOf)?c.valueOf():c},Zl.assign=e,Zl.isFunction=i,Zl.isObject=a,Zl.isArray=n,Zl.isEmpty=r,Zl.isPlainObject=o,Zl.getValue=t}).call(Zl)),Zl}var _b={exports:{}},Eb={exports:{}},Nb={exports:{}},Fb={exports:{}},Fxe=Fb.exports,$M;function Oq(){return $M||($M=1,(function(){Fb.exports=(function(){function e(t,n,r){if(this.options=t.options,this.stringify=t.stringify,this.parent=t,n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));if(r==null)throw new Error("Missing attribute value. "+this.debugInfo(n));this.name=this.stringify.attName(n),this.value=this.stringify.attValue(r)}return e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(t){return this.options.writer.set(t).attribute(this)},e.prototype.debugInfo=function(t){return t=t||this.name,t==null?"parent: <"+this.parent.name+">":"attribute: {"+t+"}, parent: <"+this.parent.name+">"},e})()}).call(Fxe)),Fb.exports}var Rxe=Nb.exports,YM;function hw(){return YM||(YM=1,(function(){var e,t,n,r,i,a,o=function(l,c){for(var u in c)s.call(c,u)&&(l[u]=c[u]);function d(){this.constructor=l}return d.prototype=c.prototype,l.prototype=new d,l.__super__=c.prototype,l},s={}.hasOwnProperty;a=wd(),i=a.isObject,r=a.isFunction,n=a.getValue,t=Ko(),e=Oq(),Nb.exports=(function(l){o(c,l);function c(u,d,h){if(c.__super__.constructor.call(this,u),d==null)throw new Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(d),this.attributes={},h!=null&&this.attribute(h),u.isDocument&&(this.isRoot=!0,this.documentObject=u,u.rootObject=this)}return c.prototype.clone=function(){var u,d,h,f;h=Object.create(this),h.isRoot&&(h.documentObject=null),h.attributes={},f=this.attributes;for(d in f)s.call(f,d)&&(u=f[d],h.attributes[d]=u.clone());return h.children=[],this.children.forEach(function(g){var y;return y=g.clone(),y.parent=h,h.children.push(y)}),h},c.prototype.attribute=function(u,d){var h,f;if(u!=null&&(u=n(u)),i(u))for(h in u)s.call(u,h)&&(f=u[h],this.attribute(h,f));else r(d)&&(d=d.apply()),(!this.options.skipNullAttributes||d!=null)&&(this.attributes[u]=new e(this,u,d));return this},c.prototype.removeAttribute=function(u){var d,h,f;if(u==null)throw new Error("Missing attribute name. "+this.debugInfo());if(u=n(u),Array.isArray(u))for(h=0,f=u.length;h<f;h++)d=u[h],delete this.attributes[d];else delete this.attributes[u];return this},c.prototype.toString=function(u){return this.options.writer.set(u).element(this)},c.prototype.att=function(u,d){return this.attribute(u,d)},c.prototype.a=function(u,d){return this.attribute(u,d)},c})(t)}).call(Rxe)),Nb.exports}var Rb={exports:{}},Pxe=Rb.exports,JM;function pw(){return JM||(JM=1,(function(){var e,t=function(r,i){for(var a in i)n.call(i,a)&&(r[a]=i[a]);function o(){this.constructor=r}return o.prototype=i.prototype,r.prototype=new o,r.__super__=i.prototype,r},n={}.hasOwnProperty;e=Ko(),Rb.exports=(function(r){t(i,r);function i(a,o){if(i.__super__.constructor.call(this,a),o==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(o)}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(a){return this.options.writer.set(a).cdata(this)},i})(e)}).call(Pxe)),Rb.exports}var Pb={exports:{}},Ixe=Pb.exports,QM;function gw(){return QM||(QM=1,(function(){var e,t=function(r,i){for(var a in i)n.call(i,a)&&(r[a]=i[a]);function o(){this.constructor=r}return o.prototype=i.prototype,r.prototype=new o,r.__super__=i.prototype,r},n={}.hasOwnProperty;e=Ko(),Pb.exports=(function(r){t(i,r);function i(a,o){if(i.__super__.constructor.call(this,a),o==null)throw new Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(o)}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(a){return this.options.writer.set(a).comment(this)},i})(e)}).call(Ixe)),Pb.exports}var Ib={exports:{}},Mxe=Ib.exports,eU;function mw(){return eU||(eU=1,(function(){var e,t,n=function(i,a){for(var o in a)r.call(a,o)&&(i[o]=a[o]);function s(){this.constructor=i}return s.prototype=a.prototype,i.prototype=new s,i.__super__=a.prototype,i},r={}.hasOwnProperty;t=wd().isObject,e=Ko(),Ib.exports=(function(i){n(a,i);function a(o,s,l,c){var u;a.__super__.constructor.call(this,o),t(s)&&(u=s,s=u.version,l=u.encoding,c=u.standalone),s||(s="1.0"),this.version=this.stringify.xmlVersion(s),l!=null&&(this.encoding=this.stringify.xmlEncoding(l)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}return a.prototype.toString=function(o){return this.options.writer.set(o).declaration(this)},a})(e)}).call(Mxe)),Ib.exports}var Mb={exports:{}},Ub={exports:{}},Uxe=Ub.exports,tU;function yw(){return tU||(tU=1,(function(){var e,t=function(r,i){for(var a in i)n.call(i,a)&&(r[a]=i[a]);function o(){this.constructor=r}return o.prototype=i.prototype,r.prototype=new o,r.__super__=i.prototype,r},n={}.hasOwnProperty;e=Ko(),Ub.exports=(function(r){t(i,r);function i(a,o,s,l,c,u){if(i.__super__.constructor.call(this,a),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(s==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(o));if(!l)throw new Error("Missing DTD attribute type. "+this.debugInfo(o));if(!c)throw new Error("Missing DTD attribute default. "+this.debugInfo(o));if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(o));if(u&&!c.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(o));this.elementName=this.stringify.eleName(o),this.attributeName=this.stringify.attName(s),this.attributeType=this.stringify.dtdAttType(l),this.defaultValue=this.stringify.dtdAttDefault(u),this.defaultValueType=c}return i.prototype.toString=function(a){return this.options.writer.set(a).dtdAttList(this)},i})(e)}).call(Uxe)),Ub.exports}var Lb={exports:{}},Lxe=Lb.exports,nU;function vw(){return nU||(nU=1,(function(){var e,t,n=function(i,a){for(var o in a)r.call(a,o)&&(i[o]=a[o]);function s(){this.constructor=i}return s.prototype=a.prototype,i.prototype=new s,i.__super__=a.prototype,i},r={}.hasOwnProperty;t=wd().isObject,e=Ko(),Lb.exports=(function(i){n(a,i);function a(o,s,l,c){if(a.__super__.constructor.call(this,o),l==null)throw new Error("Missing DTD entity name. "+this.debugInfo(l));if(c==null)throw new Error("Missing DTD entity value. "+this.debugInfo(l));if(this.pe=!!s,this.name=this.stringify.eleName(l),!t(c))this.value=this.stringify.dtdEntityValue(c);else{if(!c.pubID&&!c.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(l));if(c.pubID&&!c.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(l));if(c.pubID!=null&&(this.pubID=this.stringify.dtdPubID(c.pubID)),c.sysID!=null&&(this.sysID=this.stringify.dtdSysID(c.sysID)),c.nData!=null&&(this.nData=this.stringify.dtdNData(c.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(l))}}return a.prototype.toString=function(o){return this.options.writer.set(o).dtdEntity(this)},a})(e)}).call(Lxe)),Lb.exports}var Ob={exports:{}},Oxe=Ob.exports,rU;function xw(){return rU||(rU=1,(function(){var e,t=function(r,i){for(var a in i)n.call(i,a)&&(r[a]=i[a]);function o(){this.constructor=r}return o.prototype=i.prototype,r.prototype=new o,r.__super__=i.prototype,r},n={}.hasOwnProperty;e=Ko(),Ob.exports=(function(r){t(i,r);function i(a,o,s){if(i.__super__.constructor.call(this,a),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());s||(s="(#PCDATA)"),Array.isArray(s)&&(s="("+s.join(",")+")"),this.name=this.stringify.eleName(o),this.value=this.stringify.dtdElementValue(s)}return i.prototype.toString=function(a){return this.options.writer.set(a).dtdElement(this)},i})(e)}).call(Oxe)),Ob.exports}var jb={exports:{}},jxe=jb.exports,iU;function bw(){return iU||(iU=1,(function(){var e,t=function(r,i){for(var a in i)n.call(i,a)&&(r[a]=i[a]);function o(){this.constructor=r}return o.prototype=i.prototype,r.prototype=new o,r.__super__=i.prototype,r},n={}.hasOwnProperty;e=Ko(),jb.exports=(function(r){t(i,r);function i(a,o,s){if(i.__super__.constructor.call(this,a),o==null)throw new Error("Missing DTD notation name. "+this.debugInfo(o));if(!s.pubID&&!s.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(o));this.name=this.stringify.eleName(o),s.pubID!=null&&(this.pubID=this.stringify.dtdPubID(s.pubID)),s.sysID!=null&&(this.sysID=this.stringify.dtdSysID(s.sysID))}return i.prototype.toString=function(a){return this.options.writer.set(a).dtdNotation(this)},i})(e)}).call(jxe)),jb.exports}var Bxe=Mb.exports,aU;function Aw(){return aU||(aU=1,(function(){var e,t,n,r,i,a,o=function(l,c){for(var u in c)s.call(c,u)&&(l[u]=c[u]);function d(){this.constructor=l}return d.prototype=c.prototype,l.prototype=new d,l.__super__=c.prototype,l},s={}.hasOwnProperty;a=wd().isObject,i=Ko(),e=yw(),n=vw(),t=xw(),r=bw(),Mb.exports=(function(l){o(c,l);function c(u,d,h){var f,g;c.__super__.constructor.call(this,u),this.name="!DOCTYPE",this.documentObject=u,a(d)&&(f=d,d=f.pubID,h=f.sysID),h==null&&(g=[d,h],h=g[0],d=g[1]),d!=null&&(this.pubID=this.stringify.dtdPubID(d)),h!=null&&(this.sysID=this.stringify.dtdSysID(h))}return c.prototype.element=function(u,d){var h;return h=new t(this,u,d),this.children.push(h),this},c.prototype.attList=function(u,d,h,f,g){var y;return y=new e(this,u,d,h,f,g),this.children.push(y),this},c.prototype.entity=function(u,d){var h;return h=new n(this,!1,u,d),this.children.push(h),this},c.prototype.pEntity=function(u,d){var h;return h=new n(this,!0,u,d),this.children.push(h),this},c.prototype.notation=function(u,d){var h;return h=new r(this,u,d),this.children.push(h),this},c.prototype.toString=function(u){return this.options.writer.set(u).docType(this)},c.prototype.ele=function(u,d){return this.element(u,d)},c.prototype.att=function(u,d,h,f,g){return this.attList(u,d,h,f,g)},c.prototype.ent=function(u,d){return this.entity(u,d)},c.prototype.pent=function(u,d){return this.pEntity(u,d)},c.prototype.not=function(u,d){return this.notation(u,d)},c.prototype.up=function(){return this.root()||this.documentObject},c})(i)}).call(Bxe)),Mb.exports}var Bb={exports:{}},zxe=Bb.exports,oU;function ww(){return oU||(oU=1,(function(){var e,t=function(r,i){for(var a in i)n.call(i,a)&&(r[a]=i[a]);function o(){this.constructor=r}return o.prototype=i.prototype,r.prototype=new o,r.__super__=i.prototype,r},n={}.hasOwnProperty;e=Ko(),Bb.exports=(function(r){t(i,r);function i(a,o){if(i.__super__.constructor.call(this,a),o==null)throw new Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(o)}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(a){return this.options.writer.set(a).raw(this)},i})(e)}).call(zxe)),Bb.exports}var zb={exports:{}},Wxe=zb.exports,sU;function Sw(){return sU||(sU=1,(function(){var e,t=function(r,i){for(var a in i)n.call(i,a)&&(r[a]=i[a]);function o(){this.constructor=r}return o.prototype=i.prototype,r.prototype=new o,r.__super__=i.prototype,r},n={}.hasOwnProperty;e=Ko(),zb.exports=(function(r){t(i,r);function i(a,o){if(i.__super__.constructor.call(this,a),o==null)throw new Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(o)}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(a){return this.options.writer.set(a).text(this)},i})(e)}).call(Wxe)),zb.exports}var Wb={exports:{}},Vxe=Wb.exports,lU;function kw(){return lU||(lU=1,(function(){var e,t=function(r,i){for(var a in i)n.call(i,a)&&(r[a]=i[a]);function o(){this.constructor=r}return o.prototype=i.prototype,r.prototype=new o,r.__super__=i.prototype,r},n={}.hasOwnProperty;e=Ko(),Wb.exports=(function(r){t(i,r);function i(a,o,s){if(i.__super__.constructor.call(this,a),o==null)throw new Error("Missing instruction target. "+this.debugInfo());this.target=this.stringify.insTarget(o),s&&(this.value=this.stringify.insValue(s))}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(a){return this.options.writer.set(a).processingInstruction(this)},i})(e)}).call(Vxe)),Wb.exports}var Vb={exports:{}},Gxe=Vb.exports,cU;function N3(){return cU||(cU=1,(function(){var e,t=function(r,i){for(var a in i)n.call(i,a)&&(r[a]=i[a]);function o(){this.constructor=r}return o.prototype=i.prototype,r.prototype=new o,r.__super__=i.prototype,r},n={}.hasOwnProperty;e=Ko(),Vb.exports=(function(r){t(i,r);function i(a){i.__super__.constructor.call(this,a),this.isDummy=!0}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(a){return""},i})(e)}).call(Gxe)),Vb.exports}var qxe=Eb.exports,uU;function Ko(){return uU||(uU=1,(function(){var e,t,n,r,i,a,o,s,l,c,u,d,h,f,g={}.hasOwnProperty;f=wd(),h=f.isObject,d=f.isFunction,u=f.isEmpty,c=f.getValue,a=null,e=null,t=null,n=null,r=null,s=null,l=null,o=null,i=null,Eb.exports=(function(){function y(v){this.parent=v,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],a||(a=hw(),e=pw(),t=gw(),n=mw(),r=Aw(),s=ww(),l=Sw(),o=kw(),i=N3())}return y.prototype.element=function(v,A,w){var S,_,E,T,D,I,j,R,z,B,W;if(I=null,A===null&&w==null&&(z=[{},null],A=z[0],w=z[1]),A==null&&(A={}),A=c(A),h(A)||(B=[A,w],w=B[0],A=B[1]),v!=null&&(v=c(v)),Array.isArray(v))for(E=0,j=v.length;E<j;E++)_=v[E],I=this.element(_);else if(d(v))I=this.element(v.apply());else if(h(v)){for(D in v)if(g.call(v,D))if(W=v[D],d(W)&&(W=W.apply()),h(W)&&u(W)&&(W=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&D.indexOf(this.stringify.convertAttKey)===0)I=this.attribute(D.substr(this.stringify.convertAttKey.length),W);else if(!this.options.separateArrayItems&&Array.isArray(W))for(T=0,R=W.length;T<R;T++)_=W[T],S={},S[D]=_,I=this.element(S);else h(W)?(I=this.element(D),I.element(W)):I=this.element(D,W)}else this.options.skipNullNodes&&w===null?I=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&v.indexOf(this.stringify.convertTextKey)===0?I=this.text(w):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&v.indexOf(this.stringify.convertCDataKey)===0?I=this.cdata(w):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&v.indexOf(this.stringify.convertCommentKey)===0?I=this.comment(w):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&v.indexOf(this.stringify.convertRawKey)===0?I=this.raw(w):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&v.indexOf(this.stringify.convertPIKey)===0?I=this.instruction(v.substr(this.stringify.convertPIKey.length),w):I=this.node(v,A,w);if(I==null)throw new Error("Could not create any elements with: "+v+". "+this.debugInfo());return I},y.prototype.insertBefore=function(v,A,w){var S,_,E;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(v));return _=this.parent.children.indexOf(this),E=this.parent.children.splice(_),S=this.parent.element(v,A,w),Array.prototype.push.apply(this.parent.children,E),S},y.prototype.insertAfter=function(v,A,w){var S,_,E;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(v));return _=this.parent.children.indexOf(this),E=this.parent.children.splice(_+1),S=this.parent.element(v,A,w),Array.prototype.push.apply(this.parent.children,E),S},y.prototype.remove=function(){var v;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return v=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[v,v-v+1].concat([])),this.parent},y.prototype.node=function(v,A,w){var S,_;return v!=null&&(v=c(v)),A||(A={}),A=c(A),h(A)||(_=[A,w],w=_[0],A=_[1]),S=new a(this,v,A),w!=null&&S.text(w),this.children.push(S),S},y.prototype.text=function(v){var A;return A=new l(this,v),this.children.push(A),this},y.prototype.cdata=function(v){var A;return A=new e(this,v),this.children.push(A),this},y.prototype.comment=function(v){var A;return A=new t(this,v),this.children.push(A),this},y.prototype.commentBefore=function(v){var A,w;return A=this.parent.children.indexOf(this),w=this.parent.children.splice(A),this.parent.comment(v),Array.prototype.push.apply(this.parent.children,w),this},y.prototype.commentAfter=function(v){var A,w;return A=this.parent.children.indexOf(this),w=this.parent.children.splice(A+1),this.parent.comment(v),Array.prototype.push.apply(this.parent.children,w),this},y.prototype.raw=function(v){var A;return A=new s(this,v),this.children.push(A),this},y.prototype.dummy=function(){var v;return v=new i(this),this.children.push(v),v},y.prototype.instruction=function(v,A){var w,S,_,E,T;if(v!=null&&(v=c(v)),A!=null&&(A=c(A)),Array.isArray(v))for(E=0,T=v.length;E<T;E++)w=v[E],this.instruction(w);else if(h(v))for(w in v)g.call(v,w)&&(S=v[w],this.instruction(w,S));else d(A)&&(A=A.apply()),_=new o(this,v,A),this.children.push(_);return this},y.prototype.instructionBefore=function(v,A){var w,S;return w=this.parent.children.indexOf(this),S=this.parent.children.splice(w),this.parent.instruction(v,A),Array.prototype.push.apply(this.parent.children,S),this},y.prototype.instructionAfter=function(v,A){var w,S;return w=this.parent.children.indexOf(this),S=this.parent.children.splice(w+1),this.parent.instruction(v,A),Array.prototype.push.apply(this.parent.children,S),this},y.prototype.declaration=function(v,A,w){var S,_;return S=this.document(),_=new n(S,v,A,w),S.children[0]instanceof n?S.children[0]=_:S.children.unshift(_),S.root()||S},y.prototype.doctype=function(v,A){var w,S,_,E,T,D,I,j,R,z;for(S=this.document(),_=new r(S,v,A),R=S.children,E=T=0,I=R.length;T<I;E=++T)if(w=R[E],w instanceof r)return S.children[E]=_,_;for(z=S.children,E=D=0,j=z.length;D<j;E=++D)if(w=z[E],w.isRoot)return S.children.splice(E,0,_),_;return S.children.push(_),_},y.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},y.prototype.root=function(){var v;for(v=this;v;){if(v.isDocument)return v.rootObject;if(v.isRoot)return v;v=v.parent}},y.prototype.document=function(){var v;for(v=this;v;){if(v.isDocument)return v;v=v.parent}},y.prototype.end=function(v){return this.document().end(v)},y.prototype.prev=function(){var v;for(v=this.parent.children.indexOf(this);v>0&&this.parent.children[v-1].isDummy;)v=v-1;if(v<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[v-1]},y.prototype.next=function(){var v;for(v=this.parent.children.indexOf(this);v<this.parent.children.length-1&&this.parent.children[v+1].isDummy;)v=v+1;if(v===-1||v===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[v+1]},y.prototype.importDocument=function(v){var A;return A=v.root().clone(),A.parent=this,A.isRoot=!1,this.children.push(A),this},y.prototype.debugInfo=function(v){var A,w;return v=v||this.name,v==null&&!((A=this.parent)!=null&&A.name)?"":v==null?"parent: <"+this.parent.name+">":(w=this.parent)!=null&&w.name?"node: <"+v+">, parent: <"+this.parent.name+">":"node: <"+v+">"},y.prototype.ele=function(v,A,w){return this.element(v,A,w)},y.prototype.nod=function(v,A,w){return this.node(v,A,w)},y.prototype.txt=function(v){return this.text(v)},y.prototype.dat=function(v){return this.cdata(v)},y.prototype.com=function(v){return this.comment(v)},y.prototype.ins=function(v,A){return this.instruction(v,A)},y.prototype.doc=function(){return this.document()},y.prototype.dec=function(v,A,w){return this.declaration(v,A,w)},y.prototype.dtd=function(v,A){return this.doctype(v,A)},y.prototype.e=function(v,A,w){return this.element(v,A,w)},y.prototype.n=function(v,A,w){return this.node(v,A,w)},y.prototype.t=function(v){return this.text(v)},y.prototype.d=function(v){return this.cdata(v)},y.prototype.c=function(v){return this.comment(v)},y.prototype.r=function(v){return this.raw(v)},y.prototype.i=function(v,A){return this.instruction(v,A)},y.prototype.u=function(){return this.up()},y.prototype.importXMLBuilder=function(v){return this.importDocument(v)},y})()}).call(qxe)),Eb.exports}var Gb={exports:{}},Hxe=Gb.exports,dU;function jq(){return dU||(dU=1,(function(){var e=function(n,r){return function(){return n.apply(r,arguments)}},t={}.hasOwnProperty;Gb.exports=(function(){function n(r){this.assertLegalChar=e(this.assertLegalChar,this);var i,a,o;r||(r={}),this.noDoubleEncoding=r.noDoubleEncoding,a=r.stringify||{};for(i in a)t.call(a,i)&&(o=a[i],this[i]=o)}return n.prototype.eleName=function(r){return r=""+r||"",this.assertLegalChar(r)},n.prototype.eleText=function(r){return r=""+r||"",this.assertLegalChar(this.elEscape(r))},n.prototype.cdata=function(r){return r=""+r||"",r=r.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(r)},n.prototype.comment=function(r){if(r=""+r||"",r.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+r);return this.assertLegalChar(r)},n.prototype.raw=function(r){return""+r||""},n.prototype.attName=function(r){return r=""+r||""},n.prototype.attValue=function(r){return r=""+r||"",this.attEscape(r)},n.prototype.insTarget=function(r){return""+r||""},n.prototype.insValue=function(r){if(r=""+r||"",r.match(/\?>/))throw new Error("Invalid processing instruction value: "+r);return r},n.prototype.xmlVersion=function(r){if(r=""+r||"",!r.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+r);return r},n.prototype.xmlEncoding=function(r){if(r=""+r||"",!r.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+r);return r},n.prototype.xmlStandalone=function(r){return r?"yes":"no"},n.prototype.dtdPubID=function(r){return""+r||""},n.prototype.dtdSysID=function(r){return""+r||""},n.prototype.dtdElementValue=function(r){return""+r||""},n.prototype.dtdAttType=function(r){return""+r||""},n.prototype.dtdAttDefault=function(r){return r!=null?""+r||"":r},n.prototype.dtdEntityValue=function(r){return""+r||""},n.prototype.dtdNData=function(r){return""+r||""},n.prototype.convertAttKey="@",n.prototype.convertPIKey="?",n.prototype.convertTextKey="#text",n.prototype.convertCDataKey="#cdata",n.prototype.convertCommentKey="#comment",n.prototype.convertRawKey="#raw",n.prototype.assertLegalChar=function(r){var i;if(i=r.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),i)throw new Error("Invalid character in string: "+r+" at index "+i.index);return r},n.prototype.elEscape=function(r){var i;return i=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(i,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},n.prototype.attEscape=function(r){var i;return i=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(i,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},n})()}).call(Hxe)),Gb.exports}var qb={exports:{}},Hb={exports:{}},Xxe=Hb.exports,fU;function Bq(){return fU||(fU=1,(function(){var e={}.hasOwnProperty;Hb.exports=(function(){function t(n){var r,i,a,o,s,l,c,u,d;n||(n={}),this.pretty=n.pretty||!1,this.allowEmpty=(i=n.allowEmpty)!=null?i:!1,this.pretty?(this.indent=(a=n.indent)!=null?a:" ",this.newline=(o=n.newline)!=null?o:`-`,this.offset=(s=n.offset)!=null?s:0,this.dontprettytextnodes=(l=n.dontprettytextnodes)!=null?l:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(c=n.spacebeforeslash)!=null?c:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,u=n.writer||{};for(r in u)e.call(u,r)&&(d=u[r],this[r]=d)}return t.prototype.set=function(n){var r,i,a;n||(n={}),"pretty"in n&&(this.pretty=n.pretty),"allowEmpty"in n&&(this.allowEmpty=n.allowEmpty),this.pretty?(this.indent="indent"in n?n.indent:" ",this.newline="newline"in n?n.newline:`-`,this.offset="offset"in n?n.offset:0,this.dontprettytextnodes="dontprettytextnodes"in n?n.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in n?n.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,i=n.writer||{};for(r in i)e.call(i,r)&&(a=i[r],this[r]=a);return this},t.prototype.space=function(n){var r;return this.pretty?(r=(n||0)+this.offset+1,r>0?new Array(r).join(this.indent):""):""},t})()}).call(Xxe)),Hb.exports}var Zxe=qb.exports,hU;function F3(){return hU||(hU=1,(function(){var e,t,n,r,i,a,o,s,l,c,u,d,h,f,g=function(v,A){for(var w in A)y.call(A,w)&&(v[w]=A[w]);function S(){this.constructor=v}return S.prototype=A.prototype,v.prototype=new S,v.__super__=A.prototype,v},y={}.hasOwnProperty;o=mw(),s=Aw(),e=pw(),t=gw(),c=hw(),d=ww(),h=Sw(),u=kw(),l=N3(),n=yw(),r=xw(),i=vw(),a=bw(),f=Bq(),qb.exports=(function(v){g(A,v);function A(w){A.__super__.constructor.call(this,w)}return A.prototype.document=function(w){var S,_,E,T,D;for(this.textispresent=!1,T="",D=w.children,_=0,E=D.length;_<E;_++)S=D[_],!(S instanceof l)&&(T+=(function(){switch(!1){case!(S instanceof o):return this.declaration(S);case!(S instanceof s):return this.docType(S);case!(S instanceof t):return this.comment(S);case!(S instanceof u):return this.processingInstruction(S);default:return this.element(S,0)}}).call(this));return this.pretty&&T.slice(-this.newline.length)===this.newline&&(T=T.slice(0,-this.newline.length)),T},A.prototype.attribute=function(w){return" "+w.name+'="'+w.value+'"'},A.prototype.cdata=function(w,S){return this.space(S)+"<![CDATA["+w.text+"]]>"+this.newline},A.prototype.comment=function(w,S){return this.space(S)+"<!-- "+w.text+" -->"+this.newline},A.prototype.declaration=function(w,S){var _;return _=this.space(S),_+='<?xml version="'+w.version+'"',w.encoding!=null&&(_+=' encoding="'+w.encoding+'"'),w.standalone!=null&&(_+=' standalone="'+w.standalone+'"'),_+=this.spacebeforeslash+"?>",_+=this.newline,_},A.prototype.docType=function(w,S){var _,E,T,D,I;if(S||(S=0),D=this.space(S),D+="<!DOCTYPE "+w.root().name,w.pubID&&w.sysID?D+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(D+=' SYSTEM "'+w.sysID+'"'),w.children.length>0){for(D+=" [",D+=this.newline,I=w.children,E=0,T=I.length;E<T;E++)_=I[E],D+=(function(){switch(!1){case!(_ instanceof n):return this.dtdAttList(_,S+1);case!(_ instanceof r):return this.dtdElement(_,S+1);case!(_ instanceof i):return this.dtdEntity(_,S+1);case!(_ instanceof a):return this.dtdNotation(_,S+1);case!(_ instanceof e):return this.cdata(_,S+1);case!(_ instanceof t):return this.comment(_,S+1);case!(_ instanceof u):return this.processingInstruction(_,S+1);default:throw new Error("Unknown DTD node type: "+_.constructor.name)}}).call(this);D+="]"}return D+=this.spacebeforeslash+">",D+=this.newline,D},A.prototype.element=function(w,S){var _,E,T,D,I,j,R,z,B,W,P,Z,Q;S||(S=0),Q=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),Z=this.space(S),z="",z+=Z+"<"+w.name,B=w.attributes;for(R in B)y.call(B,R)&&(_=B[R],z+=this.attribute(_));if(w.children.length===0||w.children.every(function(X){return X.value===""}))this.allowEmpty?z+="></"+w.name+">"+this.newline:z+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&w.children.length===1&&w.children[0].value!=null)z+=">",z+=w.children[0].value,z+="</"+w.name+">"+this.newline;else{if(this.dontprettytextnodes){for(W=w.children,T=0,I=W.length;T<I;T++)if(E=W[T],E.value!=null){this.textispresent++,Q=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,Z=this.space(S)),z+=">"+this.newline,P=w.children,D=0,j=P.length;D<j;D++)E=P[D],z+=(function(){switch(!1){case!(E instanceof e):return this.cdata(E,S+1);case!(E instanceof t):return this.comment(E,S+1);case!(E instanceof c):return this.element(E,S+1);case!(E instanceof d):return this.raw(E,S+1);case!(E instanceof h):return this.text(E,S+1);case!(E instanceof u):return this.processingInstruction(E,S+1);case!(E instanceof l):return"";default:throw new Error("Unknown XML node type: "+E.constructor.name)}}).call(this);Q&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),z+=Z+"</"+w.name+">"+this.newline}return z},A.prototype.processingInstruction=function(w,S){var _;return _=this.space(S)+"<?"+w.target,w.value&&(_+=" "+w.value),_+=this.spacebeforeslash+"?>"+this.newline,_},A.prototype.raw=function(w,S){return this.space(S)+w.value+this.newline},A.prototype.text=function(w,S){return this.space(S)+w.value+this.newline},A.prototype.dtdAttList=function(w,S){var _;return _=this.space(S)+"<!ATTLIST "+w.elementName+" "+w.attributeName+" "+w.attributeType,w.defaultValueType!=="#DEFAULT"&&(_+=" "+w.defaultValueType),w.defaultValue&&(_+=' "'+w.defaultValue+'"'),_+=this.spacebeforeslash+">"+this.newline,_},A.prototype.dtdElement=function(w,S){return this.space(S)+"<!ELEMENT "+w.name+" "+w.value+this.spacebeforeslash+">"+this.newline},A.prototype.dtdEntity=function(w,S){var _;return _=this.space(S)+"<!ENTITY",w.pe&&(_+=" %"),_+=" "+w.name,w.value?_+=' "'+w.value+'"':(w.pubID&&w.sysID?_+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(_+=' SYSTEM "'+w.sysID+'"'),w.nData&&(_+=" NDATA "+w.nData)),_+=this.spacebeforeslash+">"+this.newline,_},A.prototype.dtdNotation=function(w,S){var _;return _=this.space(S)+"<!NOTATION "+w.name,w.pubID&&w.sysID?_+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.pubID?_+=' PUBLIC "'+w.pubID+'"':w.sysID&&(_+=' SYSTEM "'+w.sysID+'"'),_+=this.spacebeforeslash+">"+this.newline,_},A.prototype.openNode=function(w,S){var _,E,T,D;if(S||(S=0),w instanceof c){T=this.space(S)+"<"+w.name,D=w.attributes;for(E in D)y.call(D,E)&&(_=D[E],T+=this.attribute(_));return T+=(w.children?">":"/>")+this.newline,T}else return T=this.space(S)+"<!DOCTYPE "+w.rootNodeName,w.pubID&&w.sysID?T+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(T+=' SYSTEM "'+w.sysID+'"'),T+=(w.children?" [":">")+this.newline,T},A.prototype.closeNode=function(w,S){switch(S||(S=0),!1){case!(w instanceof c):return this.space(S)+"</"+w.name+">"+this.newline;case!(w instanceof s):return this.space(S)+"]>"+this.newline}},A})(f)}).call(Zxe)),qb.exports}var Kxe=_b.exports,pU;function $xe(){return pU||(pU=1,(function(){var e,t,n,r,i=function(o,s){for(var l in s)a.call(s,l)&&(o[l]=s[l]);function c(){this.constructor=o}return c.prototype=s.prototype,o.prototype=new c,o.__super__=s.prototype,o},a={}.hasOwnProperty;r=wd().isPlainObject,e=Ko(),n=jq(),t=F3(),_b.exports=(function(o){i(s,o);function s(l){s.__super__.constructor.call(this,null),this.name="?xml",l||(l={}),l.writer||(l.writer=new t),this.options=l,this.stringify=new n(l),this.isDocument=!0}return s.prototype.end=function(l){var c;return l?r(l)&&(c=l,l=this.options.writer.set(c)):l=this.options.writer,l.document(this)},s.prototype.toString=function(l){return this.options.writer.set(l).document(this)},s})(e)}).call(Kxe)),_b.exports}var Xb={exports:{}},Yxe=Xb.exports,gU;function Jxe(){return gU||(gU=1,(function(){var e,t,n,r,i,a,o,s,l,c,u,d,h,f,g,y,v,A,w,S,_={}.hasOwnProperty;S=wd(),A=S.isObject,v=S.isFunction,w=S.isPlainObject,y=S.getValue,c=hw(),t=pw(),n=gw(),d=ww(),g=Sw(),u=kw(),s=mw(),l=Aw(),r=yw(),a=vw(),i=xw(),o=bw(),e=Oq(),f=jq(),h=F3(),Xb.exports=(function(){function E(T,D,I){var j;this.name="?xml",T||(T={}),T.writer?w(T.writer)&&(j=T.writer,T.writer=new h(j)):T.writer=new h(T),this.options=T,this.writer=T.writer,this.stringify=new f(T),this.onDataCallback=D||function(){},this.onEndCallback=I||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return E.prototype.node=function(T,D,I){var j,R;if(T==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(T));return this.openCurrent(),T=y(T),D===null&&I==null&&(j=[{},null],D=j[0],I=j[1]),D==null&&(D={}),D=y(D),A(D)||(R=[D,I],I=R[0],D=R[1]),this.currentNode=new c(this,T,D),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,I!=null&&this.text(I),this},E.prototype.element=function(T,D,I){return this.currentNode&&this.currentNode instanceof l?this.dtdElement.apply(this,arguments):this.node(T,D,I)},E.prototype.attribute=function(T,D){var I,j;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(T));if(T!=null&&(T=y(T)),A(T))for(I in T)_.call(T,I)&&(j=T[I],this.attribute(I,j));else v(D)&&(D=D.apply()),(!this.options.skipNullAttributes||D!=null)&&(this.currentNode.attributes[T]=new e(this,T,D));return this},E.prototype.text=function(T){var D;return this.openCurrent(),D=new g(this,T),this.onData(this.writer.text(D,this.currentLevel+1),this.currentLevel+1),this},E.prototype.cdata=function(T){var D;return this.openCurrent(),D=new t(this,T),this.onData(this.writer.cdata(D,this.currentLevel+1),this.currentLevel+1),this},E.prototype.comment=function(T){var D;return this.openCurrent(),D=new n(this,T),this.onData(this.writer.comment(D,this.currentLevel+1),this.currentLevel+1),this},E.prototype.raw=function(T){var D;return this.openCurrent(),D=new d(this,T),this.onData(this.writer.raw(D,this.currentLevel+1),this.currentLevel+1),this},E.prototype.instruction=function(T,D){var I,j,R,z,B;if(this.openCurrent(),T!=null&&(T=y(T)),D!=null&&(D=y(D)),Array.isArray(T))for(I=0,z=T.length;I<z;I++)j=T[I],this.instruction(j);else if(A(T))for(j in T)_.call(T,j)&&(R=T[j],this.instruction(j,R));else v(D)&&(D=D.apply()),B=new u(this,T,D),this.onData(this.writer.processingInstruction(B,this.currentLevel+1),this.currentLevel+1);return this},E.prototype.declaration=function(T,D,I){var j;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return j=new s(this,T,D,I),this.onData(this.writer.declaration(j,this.currentLevel+1),this.currentLevel+1),this},E.prototype.doctype=function(T,D,I){if(this.openCurrent(),T==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new l(this,D,I),this.currentNode.rootNodeName=T,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},E.prototype.dtdElement=function(T,D){var I;return this.openCurrent(),I=new i(this,T,D),this.onData(this.writer.dtdElement(I,this.currentLevel+1),this.currentLevel+1),this},E.prototype.attList=function(T,D,I,j,R){var z;return this.openCurrent(),z=new r(this,T,D,I,j,R),this.onData(this.writer.dtdAttList(z,this.currentLevel+1),this.currentLevel+1),this},E.prototype.entity=function(T,D){var I;return this.openCurrent(),I=new a(this,!1,T,D),this.onData(this.writer.dtdEntity(I,this.currentLevel+1),this.currentLevel+1),this},E.prototype.pEntity=function(T,D){var I;return this.openCurrent(),I=new a(this,!0,T,D),this.onData(this.writer.dtdEntity(I,this.currentLevel+1),this.currentLevel+1),this},E.prototype.notation=function(T,D){var I;return this.openCurrent(),I=new o(this,T,D),this.onData(this.writer.dtdNotation(I,this.currentLevel+1),this.currentLevel+1),this},E.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},E.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},E.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},E.prototype.openNode=function(T){if(!T.isOpen)return!this.root&&this.currentLevel===0&&T instanceof c&&(this.root=T),this.onData(this.writer.openNode(T,this.currentLevel),this.currentLevel),T.isOpen=!0},E.prototype.closeNode=function(T){if(!T.isClosed)return this.onData(this.writer.closeNode(T,this.currentLevel),this.currentLevel),T.isClosed=!0},E.prototype.onData=function(T,D){return this.documentStarted=!0,this.onDataCallback(T,D+1)},E.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},E.prototype.debugInfo=function(T){return T==null?"":"node: <"+T+">"},E.prototype.ele=function(){return this.element.apply(this,arguments)},E.prototype.nod=function(T,D,I){return this.node(T,D,I)},E.prototype.txt=function(T){return this.text(T)},E.prototype.dat=function(T){return this.cdata(T)},E.prototype.com=function(T){return this.comment(T)},E.prototype.ins=function(T,D){return this.instruction(T,D)},E.prototype.dec=function(T,D,I){return this.declaration(T,D,I)},E.prototype.dtd=function(T,D,I){return this.doctype(T,D,I)},E.prototype.e=function(T,D,I){return this.element(T,D,I)},E.prototype.n=function(T,D,I){return this.node(T,D,I)},E.prototype.t=function(T){return this.text(T)},E.prototype.d=function(T){return this.cdata(T)},E.prototype.c=function(T){return this.comment(T)},E.prototype.r=function(T){return this.raw(T)},E.prototype.i=function(T,D){return this.instruction(T,D)},E.prototype.att=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},E.prototype.a=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},E.prototype.ent=function(T,D){return this.entity(T,D)},E.prototype.pent=function(T,D){return this.pEntity(T,D)},E.prototype.not=function(T,D){return this.notation(T,D)},E})()}).call(Yxe)),Xb.exports}var Zb={exports:{}},Qxe=Zb.exports,mU;function ebe(){return mU||(mU=1,(function(){var e,t,n,r,i,a,o,s,l,c,u,d,h,f,g=function(v,A){for(var w in A)y.call(A,w)&&(v[w]=A[w]);function S(){this.constructor=v}return S.prototype=A.prototype,v.prototype=new S,v.__super__=A.prototype,v},y={}.hasOwnProperty;o=mw(),s=Aw(),e=pw(),t=gw(),c=hw(),d=ww(),h=Sw(),u=kw(),l=N3(),n=yw(),r=xw(),i=vw(),a=bw(),f=Bq(),Zb.exports=(function(v){g(A,v);function A(w,S){A.__super__.constructor.call(this,S),this.stream=w}return A.prototype.document=function(w){var S,_,E,T,D,I,j,R;for(I=w.children,_=0,T=I.length;_<T;_++)S=I[_],S.isLastRootNode=!1;for(w.children[w.children.length-1].isLastRootNode=!0,j=w.children,R=[],E=0,D=j.length;E<D;E++)if(S=j[E],!(S instanceof l))switch(!1){case!(S instanceof o):R.push(this.declaration(S));break;case!(S instanceof s):R.push(this.docType(S));break;case!(S instanceof t):R.push(this.comment(S));break;case!(S instanceof u):R.push(this.processingInstruction(S));break;default:R.push(this.element(S))}return R},A.prototype.attribute=function(w){return this.stream.write(" "+w.name+'="'+w.value+'"')},A.prototype.cdata=function(w,S){return this.stream.write(this.space(S)+"<![CDATA["+w.text+"]]>"+this.endline(w))},A.prototype.comment=function(w,S){return this.stream.write(this.space(S)+"<!-- "+w.text+" -->"+this.endline(w))},A.prototype.declaration=function(w,S){return this.stream.write(this.space(S)),this.stream.write('<?xml version="'+w.version+'"'),w.encoding!=null&&this.stream.write(' encoding="'+w.encoding+'"'),w.standalone!=null&&this.stream.write(' standalone="'+w.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(w))},A.prototype.docType=function(w,S){var _,E,T,D;if(S||(S=0),this.stream.write(this.space(S)),this.stream.write("<!DOCTYPE "+w.root().name),w.pubID&&w.sysID?this.stream.write(' PUBLIC "'+w.pubID+'" "'+w.sysID+'"'):w.sysID&&this.stream.write(' SYSTEM "'+w.sysID+'"'),w.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(w)),D=w.children,E=0,T=D.length;E<T;E++)switch(_=D[E],!1){case!(_ instanceof n):this.dtdAttList(_,S+1);break;case!(_ instanceof r):this.dtdElement(_,S+1);break;case!(_ instanceof i):this.dtdEntity(_,S+1);break;case!(_ instanceof a):this.dtdNotation(_,S+1);break;case!(_ instanceof e):this.cdata(_,S+1);break;case!(_ instanceof t):this.comment(_,S+1);break;case!(_ instanceof u):this.processingInstruction(_,S+1);break;default:throw new Error("Unknown DTD node type: "+_.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(w))},A.prototype.element=function(w,S){var _,E,T,D,I,j,R,z;S||(S=0),z=this.space(S),this.stream.write(z+"<"+w.name),j=w.attributes;for(I in j)y.call(j,I)&&(_=j[I],this.attribute(_));if(w.children.length===0||w.children.every(function(B){return B.value===""}))this.allowEmpty?this.stream.write("></"+w.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&w.children.length===1&&w.children[0].value!=null)this.stream.write(">"),this.stream.write(w.children[0].value),this.stream.write("</"+w.name+">");else{for(this.stream.write(">"+this.newline),R=w.children,T=0,D=R.length;T<D;T++)switch(E=R[T],!1){case!(E instanceof e):this.cdata(E,S+1);break;case!(E instanceof t):this.comment(E,S+1);break;case!(E instanceof c):this.element(E,S+1);break;case!(E instanceof d):this.raw(E,S+1);break;case!(E instanceof h):this.text(E,S+1);break;case!(E instanceof u):this.processingInstruction(E,S+1);break;case!(E instanceof l):break;default:throw new Error("Unknown XML node type: "+E.constructor.name)}this.stream.write(z+"</"+w.name+">")}return this.stream.write(this.endline(w))},A.prototype.processingInstruction=function(w,S){return this.stream.write(this.space(S)+"<?"+w.target),w.value&&this.stream.write(" "+w.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(w))},A.prototype.raw=function(w,S){return this.stream.write(this.space(S)+w.value+this.endline(w))},A.prototype.text=function(w,S){return this.stream.write(this.space(S)+w.value+this.endline(w))},A.prototype.dtdAttList=function(w,S){return this.stream.write(this.space(S)+"<!ATTLIST "+w.elementName+" "+w.attributeName+" "+w.attributeType),w.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+w.defaultValueType),w.defaultValue&&this.stream.write(' "'+w.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(w))},A.prototype.dtdElement=function(w,S){return this.stream.write(this.space(S)+"<!ELEMENT "+w.name+" "+w.value),this.stream.write(this.spacebeforeslash+">"+this.endline(w))},A.prototype.dtdEntity=function(w,S){return this.stream.write(this.space(S)+"<!ENTITY"),w.pe&&this.stream.write(" %"),this.stream.write(" "+w.name),w.value?this.stream.write(' "'+w.value+'"'):(w.pubID&&w.sysID?this.stream.write(' PUBLIC "'+w.pubID+'" "'+w.sysID+'"'):w.sysID&&this.stream.write(' SYSTEM "'+w.sysID+'"'),w.nData&&this.stream.write(" NDATA "+w.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(w))},A.prototype.dtdNotation=function(w,S){return this.stream.write(this.space(S)+"<!NOTATION "+w.name),w.pubID&&w.sysID?this.stream.write(' PUBLIC "'+w.pubID+'" "'+w.sysID+'"'):w.pubID?this.stream.write(' PUBLIC "'+w.pubID+'"'):w.sysID&&this.stream.write(' SYSTEM "'+w.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(w))},A.prototype.endline=function(w){return w.isLastRootNode?"":this.newline},A})(f)}).call(Qxe)),Zb.exports}var yU;function tbe(){return yU||(yU=1,(function(){var e,t,n,r,i,a,o;o=wd(),i=o.assign,a=o.isFunction,e=$xe(),t=Jxe(),r=F3(),n=ebe(),ef.create=function(s,l,c,u){var d,h;if(s==null)throw new Error("Root element needs a name.");return u=i({},l,c,u),d=new e(u),h=d.element(s),u.headless||(d.declaration(u),(u.pubID!=null||u.sysID!=null)&&d.doctype(u)),h},ef.begin=function(s,l,c){var u;return a(s)&&(u=[s,l],l=u[0],c=u[1],s={}),l?new t(s,l,c):new e(s)},ef.stringWriter=function(s){return new r(s)},ef.streamWriter=function(s,l){return new n(s,l)}}).call(ef)),ef}var vU;function nbe(){if(vU)return pD;vU=1;var e=ga,t=tbe();pD.writeString=n;function n(i,a){var o=e.invert(a),s={element:c,text:r};function l(h,f){return s[f.type](h,f)}function c(h,f){var g=h.element(u(f.name),f.attributes);f.children.forEach(function(y){l(g,y)})}function u(h){var f=/^\{(.*)\}(.*)$/.exec(h);if(f){var g=o[f[1]];return g+(g===""?"":":")+f[2]}else return h}function d(h){var f=t.create(u(h.name),{version:"1.0",encoding:"UTF-8",standalone:!0});return e.forEach(a,function(g,y){var v="xmlns"+(y===""?"":":"+y);f.attribute(v,g)}),h.children.forEach(function(g){l(f,g)}),f.end()}return d(i)}function r(i,a){i.text(a.value)}return pD}var xU;function R3(){if(xU)return Su;xU=1;var e=Lq();return Su.Element=e.Element,Su.element=e.element,Su.emptyElement=e.emptyElement,Su.text=e.text,Su.readString=Nxe().readString,Su.writeString=nbe().writeString,Su}var bU;function rbe(){if(bU)return Ax;bU=1;var e=ga,t=Ad(),n=R3();Ax.read=i,Ax.readXmlFromZipFile=a;var r={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word","http://schemas.microsoft.com/office/word/2010/wordml":"wordml"};function i(l){return n.readString(l,r).then(function(c){return s(c)[0]})}function a(l,c){return l.exists(c)?l.read(c,"utf-8").then(o).then(i):t.resolve(null)}function o(l){return l.replace(/^\uFEFF/g,"")}function s(l){return l.type==="element"?l.name==="mc:AlternateContent"?l.firstOrEmpty("mc:Fallback").children:(l.children=e.flatten(l.children.map(s,!0)),[l]):[l]}return Ax}var kx={},xl={},Dx={},AU;function ibe(){if(AU)return Dx;AU=1,Object.defineProperty(Dx,"__esModule",{value:!0});var e=[{"Typeface name":"Symbol","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Symbol","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"33","Unicode hex":"21"},{"Typeface name":"Symbol","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"8704","Unicode hex":"2200"},{"Typeface name":"Symbol","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"35","Unicode hex":"23"},{"Typeface name":"Symbol","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"8707","Unicode hex":"2203"},{"Typeface name":"Symbol","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"37","Unicode hex":"25"},{"Typeface name":"Symbol","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"38","Unicode hex":"26"},{"Typeface name":"Symbol","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"8717","Unicode hex":"220D"},{"Typeface name":"Symbol","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"40","Unicode hex":"28"},{"Typeface name":"Symbol","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"41","Unicode hex":"29"},{"Typeface name":"Symbol","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"42","Unicode hex":"2A"},{"Typeface name":"Symbol","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"43","Unicode hex":"2B"},{"Typeface name":"Symbol","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"44","Unicode hex":"2C"},{"Typeface name":"Symbol","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"8722","Unicode hex":"2212"},{"Typeface name":"Symbol","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"46","Unicode hex":"2E"},{"Typeface name":"Symbol","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"47","Unicode hex":"2F"},{"Typeface name":"Symbol","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"48","Unicode hex":"30"},{"Typeface name":"Symbol","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"49","Unicode hex":"31"},{"Typeface name":"Symbol","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"50","Unicode hex":"32"},{"Typeface name":"Symbol","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"51","Unicode hex":"33"},{"Typeface name":"Symbol","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"52","Unicode hex":"34"},{"Typeface name":"Symbol","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"53","Unicode hex":"35"},{"Typeface name":"Symbol","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"54","Unicode hex":"36"},{"Typeface name":"Symbol","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"55","Unicode hex":"37"},{"Typeface name":"Symbol","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"56","Unicode hex":"38"},{"Typeface name":"Symbol","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"57","Unicode hex":"39"},{"Typeface name":"Symbol","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"58","Unicode hex":"3A"},{"Typeface name":"Symbol","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"59","Unicode hex":"3B"},{"Typeface name":"Symbol","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"60","Unicode hex":"3C"},{"Typeface name":"Symbol","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"61","Unicode hex":"3D"},{"Typeface name":"Symbol","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"62","Unicode hex":"3E"},{"Typeface name":"Symbol","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"63","Unicode hex":"3F"},{"Typeface name":"Symbol","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"8773","Unicode hex":"2245"},{"Typeface name":"Symbol","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"913","Unicode hex":"391"},{"Typeface name":"Symbol","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"914","Unicode hex":"392"},{"Typeface name":"Symbol","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"935","Unicode hex":"3A7"},{"Typeface name":"Symbol","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"916","Unicode hex":"394"},{"Typeface name":"Symbol","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"917","Unicode hex":"395"},{"Typeface name":"Symbol","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"934","Unicode hex":"3A6"},{"Typeface name":"Symbol","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"915","Unicode hex":"393"},{"Typeface name":"Symbol","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"919","Unicode hex":"397"},{"Typeface name":"Symbol","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"921","Unicode hex":"399"},{"Typeface name":"Symbol","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"977","Unicode hex":"3D1"},{"Typeface name":"Symbol","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"922","Unicode hex":"39A"},{"Typeface name":"Symbol","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"923","Unicode hex":"39B"},{"Typeface name":"Symbol","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"924","Unicode hex":"39C"},{"Typeface name":"Symbol","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"925","Unicode hex":"39D"},{"Typeface name":"Symbol","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"927","Unicode hex":"39F"},{"Typeface name":"Symbol","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"928","Unicode hex":"3A0"},{"Typeface name":"Symbol","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"920","Unicode hex":"398"},{"Typeface name":"Symbol","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"929","Unicode hex":"3A1"},{"Typeface name":"Symbol","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"931","Unicode hex":"3A3"},{"Typeface name":"Symbol","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"932","Unicode hex":"3A4"},{"Typeface name":"Symbol","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"933","Unicode hex":"3A5"},{"Typeface name":"Symbol","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"962","Unicode hex":"3C2"},{"Typeface name":"Symbol","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"937","Unicode hex":"3A9"},{"Typeface name":"Symbol","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"926","Unicode hex":"39E"},{"Typeface name":"Symbol","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"936","Unicode hex":"3A8"},{"Typeface name":"Symbol","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"918","Unicode hex":"396"},{"Typeface name":"Symbol","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"91","Unicode hex":"5B"},{"Typeface name":"Symbol","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"8756","Unicode hex":"2234"},{"Typeface name":"Symbol","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"93","Unicode hex":"5D"},{"Typeface name":"Symbol","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"8869","Unicode hex":"22A5"},{"Typeface name":"Symbol","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"95","Unicode hex":"5F"},{"Typeface name":"Symbol","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"8254","Unicode hex":"203E"},{"Typeface name":"Symbol","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"945","Unicode hex":"3B1"},{"Typeface name":"Symbol","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"946","Unicode hex":"3B2"},{"Typeface name":"Symbol","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"967","Unicode hex":"3C7"},{"Typeface name":"Symbol","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"948","Unicode hex":"3B4"},{"Typeface name":"Symbol","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"949","Unicode hex":"3B5"},{"Typeface name":"Symbol","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"966","Unicode hex":"3C6"},{"Typeface name":"Symbol","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"947","Unicode hex":"3B3"},{"Typeface name":"Symbol","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"951","Unicode hex":"3B7"},{"Typeface name":"Symbol","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"953","Unicode hex":"3B9"},{"Typeface name":"Symbol","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"981","Unicode hex":"3D5"},{"Typeface name":"Symbol","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"954","Unicode hex":"3BA"},{"Typeface name":"Symbol","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"955","Unicode hex":"3BB"},{"Typeface name":"Symbol","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"956","Unicode hex":"3BC"},{"Typeface name":"Symbol","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"957","Unicode hex":"3BD"},{"Typeface name":"Symbol","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"959","Unicode hex":"3BF"},{"Typeface name":"Symbol","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"960","Unicode hex":"3C0"},{"Typeface name":"Symbol","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"952","Unicode hex":"3B8"},{"Typeface name":"Symbol","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"961","Unicode hex":"3C1"},{"Typeface name":"Symbol","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"963","Unicode hex":"3C3"},{"Typeface name":"Symbol","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"964","Unicode hex":"3C4"},{"Typeface name":"Symbol","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"965","Unicode hex":"3C5"},{"Typeface name":"Symbol","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"982","Unicode hex":"3D6"},{"Typeface name":"Symbol","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"969","Unicode hex":"3C9"},{"Typeface name":"Symbol","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"958","Unicode hex":"3BE"},{"Typeface name":"Symbol","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"968","Unicode hex":"3C8"},{"Typeface name":"Symbol","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"950","Unicode hex":"3B6"},{"Typeface name":"Symbol","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"123","Unicode hex":"7B"},{"Typeface name":"Symbol","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"124","Unicode hex":"7C"},{"Typeface name":"Symbol","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"125","Unicode hex":"7D"},{"Typeface name":"Symbol","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"126","Unicode hex":"7E"},{"Typeface name":"Symbol","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"8364","Unicode hex":"20AC"},{"Typeface name":"Symbol","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"978","Unicode hex":"3D2"},{"Typeface name":"Symbol","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"8242","Unicode hex":"2032"},{"Typeface name":"Symbol","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"8804","Unicode hex":"2264"},{"Typeface name":"Symbol","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"8260","Unicode hex":"2044"},{"Typeface name":"Symbol","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"8734","Unicode hex":"221E"},{"Typeface name":"Symbol","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"402","Unicode hex":"192"},{"Typeface name":"Symbol","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9827","Unicode hex":"2663"},{"Typeface name":"Symbol","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9830","Unicode hex":"2666"},{"Typeface name":"Symbol","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"9829","Unicode hex":"2665"},{"Typeface name":"Symbol","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"9824","Unicode hex":"2660"},{"Typeface name":"Symbol","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"8596","Unicode hex":"2194"},{"Typeface name":"Symbol","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"8592","Unicode hex":"2190"},{"Typeface name":"Symbol","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"8593","Unicode hex":"2191"},{"Typeface name":"Symbol","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"8594","Unicode hex":"2192"},{"Typeface name":"Symbol","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"8595","Unicode hex":"2193"},{"Typeface name":"Symbol","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"176","Unicode hex":"B0"},{"Typeface name":"Symbol","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"177","Unicode hex":"B1"},{"Typeface name":"Symbol","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"8243","Unicode hex":"2033"},{"Typeface name":"Symbol","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"8805","Unicode hex":"2265"},{"Typeface name":"Symbol","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"215","Unicode hex":"D7"},{"Typeface name":"Symbol","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"8733","Unicode hex":"221D"},{"Typeface name":"Symbol","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"8706","Unicode hex":"2202"},{"Typeface name":"Symbol","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Symbol","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"247","Unicode hex":"F7"},{"Typeface name":"Symbol","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"8800","Unicode hex":"2260"},{"Typeface name":"Symbol","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"8801","Unicode hex":"2261"},{"Typeface name":"Symbol","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"8776","Unicode hex":"2248"},{"Typeface name":"Symbol","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"8230","Unicode hex":"2026"},{"Typeface name":"Symbol","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Symbol","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"9135","Unicode hex":"23AF"},{"Typeface name":"Symbol","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"8629","Unicode hex":"21B5"},{"Typeface name":"Symbol","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"8501","Unicode hex":"2135"},{"Typeface name":"Symbol","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"8465","Unicode hex":"2111"},{"Typeface name":"Symbol","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"8476","Unicode hex":"211C"},{"Typeface name":"Symbol","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"8472","Unicode hex":"2118"},{"Typeface name":"Symbol","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"8855","Unicode hex":"2297"},{"Typeface name":"Symbol","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"8853","Unicode hex":"2295"},{"Typeface name":"Symbol","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"8709","Unicode hex":"2205"},{"Typeface name":"Symbol","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"8745","Unicode hex":"2229"},{"Typeface name":"Symbol","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"8746","Unicode hex":"222A"},{"Typeface name":"Symbol","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"8835","Unicode hex":"2283"},{"Typeface name":"Symbol","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"8839","Unicode hex":"2287"},{"Typeface name":"Symbol","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"8836","Unicode hex":"2284"},{"Typeface name":"Symbol","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"8834","Unicode hex":"2282"},{"Typeface name":"Symbol","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"8838","Unicode hex":"2286"},{"Typeface name":"Symbol","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"8712","Unicode hex":"2208"},{"Typeface name":"Symbol","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"8713","Unicode hex":"2209"},{"Typeface name":"Symbol","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"8736","Unicode hex":"2220"},{"Typeface name":"Symbol","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"8711","Unicode hex":"2207"},{"Typeface name":"Symbol","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"8719","Unicode hex":"220F"},{"Typeface name":"Symbol","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8730","Unicode hex":"221A"},{"Typeface name":"Symbol","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Symbol","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"172","Unicode hex":"AC"},{"Typeface name":"Symbol","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"8743","Unicode hex":"2227"},{"Typeface name":"Symbol","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"8744","Unicode hex":"2228"},{"Typeface name":"Symbol","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"8660","Unicode hex":"21D4"},{"Typeface name":"Symbol","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"8656","Unicode hex":"21D0"},{"Typeface name":"Symbol","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"8657","Unicode hex":"21D1"},{"Typeface name":"Symbol","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"8658","Unicode hex":"21D2"},{"Typeface name":"Symbol","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"8659","Unicode hex":"21D3"},{"Typeface name":"Symbol","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Symbol","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"12296","Unicode hex":"3008"},{"Typeface name":"Symbol","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"8721","Unicode hex":"2211"},{"Typeface name":"Symbol","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"9115","Unicode hex":"239B"},{"Typeface name":"Symbol","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"9116","Unicode hex":"239C"},{"Typeface name":"Symbol","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9117","Unicode hex":"239D"},{"Typeface name":"Symbol","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9121","Unicode hex":"23A1"},{"Typeface name":"Symbol","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"9122","Unicode hex":"23A2"},{"Typeface name":"Symbol","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"9123","Unicode hex":"23A3"},{"Typeface name":"Symbol","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"9127","Unicode hex":"23A7"},{"Typeface name":"Symbol","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"9128","Unicode hex":"23A8"},{"Typeface name":"Symbol","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"9129","Unicode hex":"23A9"},{"Typeface name":"Symbol","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"9130","Unicode hex":"23AA"},{"Typeface name":"Symbol","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"63743","Unicode hex":"F8FF"},{"Typeface name":"Symbol","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"12297","Unicode hex":"3009"},{"Typeface name":"Symbol","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8747","Unicode hex":"222B"},{"Typeface name":"Symbol","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"8992","Unicode hex":"2320"},{"Typeface name":"Symbol","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"9134","Unicode hex":"23AE"},{"Typeface name":"Symbol","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"8993","Unicode hex":"2321"},{"Typeface name":"Symbol","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"9118","Unicode hex":"239E"},{"Typeface name":"Symbol","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"9119","Unicode hex":"239F"},{"Typeface name":"Symbol","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"9120","Unicode hex":"23A0"},{"Typeface name":"Symbol","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"9124","Unicode hex":"23A4"},{"Typeface name":"Symbol","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"9125","Unicode hex":"23A5"},{"Typeface name":"Symbol","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"9126","Unicode hex":"23A6"},{"Typeface name":"Symbol","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"9131","Unicode hex":"23AB"},{"Typeface name":"Symbol","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"9132","Unicode hex":"23AC"},{"Typeface name":"Symbol","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"9133","Unicode hex":"23AD"},{"Typeface name":"Webdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Webdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128375","Unicode hex":"1F577"},{"Typeface name":"Webdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128376","Unicode hex":"1F578"},{"Typeface name":"Webdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128370","Unicode hex":"1F572"},{"Typeface name":"Webdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128374","Unicode hex":"1F576"},{"Typeface name":"Webdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"127942","Unicode hex":"1F3C6"},{"Typeface name":"Webdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"127894","Unicode hex":"1F396"},{"Typeface name":"Webdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128391","Unicode hex":"1F587"},{"Typeface name":"Webdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128488","Unicode hex":"1F5E8"},{"Typeface name":"Webdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128489","Unicode hex":"1F5E9"},{"Typeface name":"Webdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128496","Unicode hex":"1F5F0"},{"Typeface name":"Webdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128497","Unicode hex":"1F5F1"},{"Typeface name":"Webdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"127798","Unicode hex":"1F336"},{"Typeface name":"Webdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"127895","Unicode hex":"1F397"},{"Typeface name":"Webdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128638","Unicode hex":"1F67E"},{"Typeface name":"Webdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128636","Unicode hex":"1F67C"},{"Typeface name":"Webdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128469","Unicode hex":"1F5D5"},{"Typeface name":"Webdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128470","Unicode hex":"1F5D6"},{"Typeface name":"Webdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128471","Unicode hex":"1F5D7"},{"Typeface name":"Webdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"9204","Unicode hex":"23F4"},{"Typeface name":"Webdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"9205","Unicode hex":"23F5"},{"Typeface name":"Webdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"9206","Unicode hex":"23F6"},{"Typeface name":"Webdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"9207","Unicode hex":"23F7"},{"Typeface name":"Webdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"9194","Unicode hex":"23EA"},{"Typeface name":"Webdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"9193","Unicode hex":"23E9"},{"Typeface name":"Webdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"9198","Unicode hex":"23EE"},{"Typeface name":"Webdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"9197","Unicode hex":"23ED"},{"Typeface name":"Webdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"9208","Unicode hex":"23F8"},{"Typeface name":"Webdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"9209","Unicode hex":"23F9"},{"Typeface name":"Webdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"9210","Unicode hex":"23FA"},{"Typeface name":"Webdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128474","Unicode hex":"1F5DA"},{"Typeface name":"Webdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128499","Unicode hex":"1F5F3"},{"Typeface name":"Webdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128736","Unicode hex":"1F6E0"},{"Typeface name":"Webdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"127959","Unicode hex":"1F3D7"},{"Typeface name":"Webdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"127960","Unicode hex":"1F3D8"},{"Typeface name":"Webdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"127961","Unicode hex":"1F3D9"},{"Typeface name":"Webdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"127962","Unicode hex":"1F3DA"},{"Typeface name":"Webdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"127964","Unicode hex":"1F3DC"},{"Typeface name":"Webdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"127981","Unicode hex":"1F3ED"},{"Typeface name":"Webdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"127963","Unicode hex":"1F3DB"},{"Typeface name":"Webdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"127968","Unicode hex":"1F3E0"},{"Typeface name":"Webdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"127958","Unicode hex":"1F3D6"},{"Typeface name":"Webdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"127965","Unicode hex":"1F3DD"},{"Typeface name":"Webdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128739","Unicode hex":"1F6E3"},{"Typeface name":"Webdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128269","Unicode hex":"1F50D"},{"Typeface name":"Webdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"127956","Unicode hex":"1F3D4"},{"Typeface name":"Webdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128065","Unicode hex":"1F441"},{"Typeface name":"Webdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128066","Unicode hex":"1F442"},{"Typeface name":"Webdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127966","Unicode hex":"1F3DE"},{"Typeface name":"Webdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"127957","Unicode hex":"1F3D5"},{"Typeface name":"Webdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"128740","Unicode hex":"1F6E4"},{"Typeface name":"Webdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127967","Unicode hex":"1F3DF"},{"Typeface name":"Webdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"128755","Unicode hex":"1F6F3"},{"Typeface name":"Webdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128364","Unicode hex":"1F56C"},{"Typeface name":"Webdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"128363","Unicode hex":"1F56B"},{"Typeface name":"Webdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128360","Unicode hex":"1F568"},{"Typeface name":"Webdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"128264","Unicode hex":"1F508"},{"Typeface name":"Webdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"127892","Unicode hex":"1F394"},{"Typeface name":"Webdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"127893","Unicode hex":"1F395"},{"Typeface name":"Webdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128492","Unicode hex":"1F5EC"},{"Typeface name":"Webdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128637","Unicode hex":"1F67D"},{"Typeface name":"Webdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"128493","Unicode hex":"1F5ED"},{"Typeface name":"Webdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128490","Unicode hex":"1F5EA"},{"Typeface name":"Webdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128491","Unicode hex":"1F5EB"},{"Typeface name":"Webdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"11156","Unicode hex":"2B94"},{"Typeface name":"Webdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"10004","Unicode hex":"2714"},{"Typeface name":"Webdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128690","Unicode hex":"1F6B2"},{"Typeface name":"Webdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"11036","Unicode hex":"2B1C"},{"Typeface name":"Webdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128737","Unicode hex":"1F6E1"},{"Typeface name":"Webdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128230","Unicode hex":"1F4E6"},{"Typeface name":"Webdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128753","Unicode hex":"1F6F1"},{"Typeface name":"Webdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"11035","Unicode hex":"2B1B"},{"Typeface name":"Webdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128657","Unicode hex":"1F691"},{"Typeface name":"Webdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"128712","Unicode hex":"1F6C8"},{"Typeface name":"Webdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128745","Unicode hex":"1F6E9"},{"Typeface name":"Webdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128752","Unicode hex":"1F6F0"},{"Typeface name":"Webdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"128968","Unicode hex":"1F7C8"},{"Typeface name":"Webdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128372","Unicode hex":"1F574"},{"Typeface name":"Webdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"11044","Unicode hex":"2B24"},{"Typeface name":"Webdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128741","Unicode hex":"1F6E5"},{"Typeface name":"Webdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128660","Unicode hex":"1F694"},{"Typeface name":"Webdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"128472","Unicode hex":"1F5D8"},{"Typeface name":"Webdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"128473","Unicode hex":"1F5D9"},{"Typeface name":"Webdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"10067","Unicode hex":"2753"},{"Typeface name":"Webdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"128754","Unicode hex":"1F6F2"},{"Typeface name":"Webdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"128647","Unicode hex":"1F687"},{"Typeface name":"Webdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"128653","Unicode hex":"1F68D"},{"Typeface name":"Webdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9971","Unicode hex":"26F3"},{"Typeface name":"Webdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Webdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"8854","Unicode hex":"2296"},{"Typeface name":"Webdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"128685","Unicode hex":"1F6AD"},{"Typeface name":"Webdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"128494","Unicode hex":"1F5EE"},{"Typeface name":"Webdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Webdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128495","Unicode hex":"1F5EF"},{"Typeface name":"Webdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128498","Unicode hex":"1F5F2"},{"Typeface name":"Webdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128697","Unicode hex":"1F6B9"},{"Typeface name":"Webdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"128698","Unicode hex":"1F6BA"},{"Typeface name":"Webdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"128713","Unicode hex":"1F6C9"},{"Typeface name":"Webdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"128714","Unicode hex":"1F6CA"},{"Typeface name":"Webdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"128700","Unicode hex":"1F6BC"},{"Typeface name":"Webdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"128125","Unicode hex":"1F47D"},{"Typeface name":"Webdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"127947","Unicode hex":"1F3CB"},{"Typeface name":"Webdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"9975","Unicode hex":"26F7"},{"Typeface name":"Webdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"127938","Unicode hex":"1F3C2"},{"Typeface name":"Webdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"127948","Unicode hex":"1F3CC"},{"Typeface name":"Webdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"127946","Unicode hex":"1F3CA"},{"Typeface name":"Webdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127940","Unicode hex":"1F3C4"},{"Typeface name":"Webdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"127949","Unicode hex":"1F3CD"},{"Typeface name":"Webdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"127950","Unicode hex":"1F3CE"},{"Typeface name":"Webdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128664","Unicode hex":"1F698"},{"Typeface name":"Webdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128480","Unicode hex":"1F5E0"},{"Typeface name":"Webdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128738","Unicode hex":"1F6E2"},{"Typeface name":"Webdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128176","Unicode hex":"1F4B0"},{"Typeface name":"Webdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"127991","Unicode hex":"1F3F7"},{"Typeface name":"Webdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128179","Unicode hex":"1F4B3"},{"Typeface name":"Webdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128106","Unicode hex":"1F46A"},{"Typeface name":"Webdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"128481","Unicode hex":"1F5E1"},{"Typeface name":"Webdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128482","Unicode hex":"1F5E2"},{"Typeface name":"Webdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128483","Unicode hex":"1F5E3"},{"Typeface name":"Webdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Webdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128388","Unicode hex":"1F584"},{"Typeface name":"Webdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128389","Unicode hex":"1F585"},{"Typeface name":"Webdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Webdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128390","Unicode hex":"1F586"},{"Typeface name":"Webdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128441","Unicode hex":"1F5B9"},{"Typeface name":"Webdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"128442","Unicode hex":"1F5BA"},{"Typeface name":"Webdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128443","Unicode hex":"1F5BB"},{"Typeface name":"Webdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128373","Unicode hex":"1F575"},{"Typeface name":"Webdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"128368","Unicode hex":"1F570"},{"Typeface name":"Webdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128445","Unicode hex":"1F5BD"},{"Typeface name":"Webdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128446","Unicode hex":"1F5BE"},{"Typeface name":"Webdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Webdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128466","Unicode hex":"1F5D2"},{"Typeface name":"Webdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128467","Unicode hex":"1F5D3"},{"Typeface name":"Webdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Webdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128218","Unicode hex":"1F4DA"},{"Typeface name":"Webdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128478","Unicode hex":"1F5DE"},{"Typeface name":"Webdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128479","Unicode hex":"1F5DF"},{"Typeface name":"Webdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128451","Unicode hex":"1F5C3"},{"Typeface name":"Webdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128450","Unicode hex":"1F5C2"},{"Typeface name":"Webdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128444","Unicode hex":"1F5BC"},{"Typeface name":"Webdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"127917","Unicode hex":"1F3AD"},{"Typeface name":"Webdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"127900","Unicode hex":"1F39C"},{"Typeface name":"Webdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"127896","Unicode hex":"1F398"},{"Typeface name":"Webdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"127897","Unicode hex":"1F399"},{"Typeface name":"Webdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"127911","Unicode hex":"1F3A7"},{"Typeface name":"Webdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128191","Unicode hex":"1F4BF"},{"Typeface name":"Webdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"127902","Unicode hex":"1F39E"},{"Typeface name":"Webdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128247","Unicode hex":"1F4F7"},{"Typeface name":"Webdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"127903","Unicode hex":"1F39F"},{"Typeface name":"Webdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"127916","Unicode hex":"1F3AC"},{"Typeface name":"Webdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128253","Unicode hex":"1F4FD"},{"Typeface name":"Webdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128249","Unicode hex":"1F4F9"},{"Typeface name":"Webdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128254","Unicode hex":"1F4FE"},{"Typeface name":"Webdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128251","Unicode hex":"1F4FB"},{"Typeface name":"Webdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"127898","Unicode hex":"1F39A"},{"Typeface name":"Webdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"127899","Unicode hex":"1F39B"},{"Typeface name":"Webdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128250","Unicode hex":"1F4FA"},{"Typeface name":"Webdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128187","Unicode hex":"1F4BB"},{"Typeface name":"Webdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128421","Unicode hex":"1F5A5"},{"Typeface name":"Webdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128422","Unicode hex":"1F5A6"},{"Typeface name":"Webdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128423","Unicode hex":"1F5A7"},{"Typeface name":"Webdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"128377","Unicode hex":"1F579"},{"Typeface name":"Webdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"127918","Unicode hex":"1F3AE"},{"Typeface name":"Webdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"128379","Unicode hex":"1F57B"},{"Typeface name":"Webdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128380","Unicode hex":"1F57C"},{"Typeface name":"Webdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128223","Unicode hex":"1F4DF"},{"Typeface name":"Webdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128385","Unicode hex":"1F581"},{"Typeface name":"Webdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128384","Unicode hex":"1F580"},{"Typeface name":"Webdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128424","Unicode hex":"1F5A8"},{"Typeface name":"Webdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128425","Unicode hex":"1F5A9"},{"Typeface name":"Webdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128447","Unicode hex":"1F5BF"},{"Typeface name":"Webdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128426","Unicode hex":"1F5AA"},{"Typeface name":"Webdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128476","Unicode hex":"1F5DC"},{"Typeface name":"Webdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128274","Unicode hex":"1F512"},{"Typeface name":"Webdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128275","Unicode hex":"1F513"},{"Typeface name":"Webdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128477","Unicode hex":"1F5DD"},{"Typeface name":"Webdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128229","Unicode hex":"1F4E5"},{"Typeface name":"Webdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128228","Unicode hex":"1F4E4"},{"Typeface name":"Webdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128371","Unicode hex":"1F573"},{"Typeface name":"Webdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"127779","Unicode hex":"1F323"},{"Typeface name":"Webdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"127780","Unicode hex":"1F324"},{"Typeface name":"Webdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"127781","Unicode hex":"1F325"},{"Typeface name":"Webdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"127782","Unicode hex":"1F326"},{"Typeface name":"Webdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"9729","Unicode hex":"2601"},{"Typeface name":"Webdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"127784","Unicode hex":"1F328"},{"Typeface name":"Webdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"127783","Unicode hex":"1F327"},{"Typeface name":"Webdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"127785","Unicode hex":"1F329"},{"Typeface name":"Webdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"127786","Unicode hex":"1F32A"},{"Typeface name":"Webdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"127788","Unicode hex":"1F32C"},{"Typeface name":"Webdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"127787","Unicode hex":"1F32B"},{"Typeface name":"Webdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"127772","Unicode hex":"1F31C"},{"Typeface name":"Webdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"127777","Unicode hex":"1F321"},{"Typeface name":"Webdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128715","Unicode hex":"1F6CB"},{"Typeface name":"Webdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128719","Unicode hex":"1F6CF"},{"Typeface name":"Webdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"127869","Unicode hex":"1F37D"},{"Typeface name":"Webdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"127864","Unicode hex":"1F378"},{"Typeface name":"Webdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128718","Unicode hex":"1F6CE"},{"Typeface name":"Webdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128717","Unicode hex":"1F6CD"},{"Typeface name":"Webdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9413","Unicode hex":"24C5"},{"Typeface name":"Webdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9855","Unicode hex":"267F"},{"Typeface name":"Webdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128710","Unicode hex":"1F6C6"},{"Typeface name":"Webdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"128392","Unicode hex":"1F588"},{"Typeface name":"Webdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"127891","Unicode hex":"1F393"},{"Typeface name":"Webdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128484","Unicode hex":"1F5E4"},{"Typeface name":"Webdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128485","Unicode hex":"1F5E5"},{"Typeface name":"Webdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128486","Unicode hex":"1F5E6"},{"Typeface name":"Webdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"128487","Unicode hex":"1F5E7"},{"Typeface name":"Webdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128746","Unicode hex":"1F6EA"},{"Typeface name":"Webdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128063","Unicode hex":"1F43F"},{"Typeface name":"Webdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"128038","Unicode hex":"1F426"},{"Typeface name":"Webdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128031","Unicode hex":"1F41F"},{"Typeface name":"Webdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128021","Unicode hex":"1F415"},{"Typeface name":"Webdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"128008","Unicode hex":"1F408"},{"Typeface name":"Webdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"128620","Unicode hex":"1F66C"},{"Typeface name":"Webdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"128622","Unicode hex":"1F66E"},{"Typeface name":"Webdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"128621","Unicode hex":"1F66D"},{"Typeface name":"Webdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"128623","Unicode hex":"1F66F"},{"Typeface name":"Webdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128506","Unicode hex":"1F5FA"},{"Typeface name":"Webdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"127757","Unicode hex":"1F30D"},{"Typeface name":"Webdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"127759","Unicode hex":"1F30F"},{"Typeface name":"Webdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"127758","Unicode hex":"1F30E"},{"Typeface name":"Webdings","Dingbat dec":"255","Dingbat hex":"FF","Unicode dec":"128330","Unicode hex":"1F54A"},{"Typeface name":"Wingdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128393","Unicode hex":"1F589"},{"Typeface name":"Wingdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"9986","Unicode hex":"2702"},{"Typeface name":"Wingdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"9985","Unicode hex":"2701"},{"Typeface name":"Wingdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128083","Unicode hex":"1F453"},{"Typeface name":"Wingdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"128365","Unicode hex":"1F56D"},{"Typeface name":"Wingdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Wingdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128367","Unicode hex":"1F56F"},{"Typeface name":"Wingdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128383","Unicode hex":"1F57F"},{"Typeface name":"Wingdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"9990","Unicode hex":"2706"},{"Typeface name":"Wingdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128386","Unicode hex":"1F582"},{"Typeface name":"Wingdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Wingdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128234","Unicode hex":"1F4EA"},{"Typeface name":"Wingdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128235","Unicode hex":"1F4EB"},{"Typeface name":"Wingdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128236","Unicode hex":"1F4EC"},{"Typeface name":"Wingdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128237","Unicode hex":"1F4ED"},{"Typeface name":"Wingdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128448","Unicode hex":"1F5C0"},{"Typeface name":"Wingdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128449","Unicode hex":"1F5C1"},{"Typeface name":"Wingdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128462","Unicode hex":"1F5CE"},{"Typeface name":"Wingdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128463","Unicode hex":"1F5CF"},{"Typeface name":"Wingdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128464","Unicode hex":"1F5D0"},{"Typeface name":"Wingdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128452","Unicode hex":"1F5C4"},{"Typeface name":"Wingdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"8987","Unicode hex":"231B"},{"Typeface name":"Wingdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128430","Unicode hex":"1F5AE"},{"Typeface name":"Wingdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128432","Unicode hex":"1F5B0"},{"Typeface name":"Wingdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128434","Unicode hex":"1F5B2"},{"Typeface name":"Wingdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128435","Unicode hex":"1F5B3"},{"Typeface name":"Wingdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128436","Unicode hex":"1F5B4"},{"Typeface name":"Wingdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128427","Unicode hex":"1F5AB"},{"Typeface name":"Wingdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128428","Unicode hex":"1F5AC"},{"Typeface name":"Wingdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"9991","Unicode hex":"2707"},{"Typeface name":"Wingdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"9997","Unicode hex":"270D"},{"Typeface name":"Wingdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128398","Unicode hex":"1F58E"},{"Typeface name":"Wingdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"9996","Unicode hex":"270C"},{"Typeface name":"Wingdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128399","Unicode hex":"1F58F"},{"Typeface name":"Wingdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128077","Unicode hex":"1F44D"},{"Typeface name":"Wingdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128078","Unicode hex":"1F44E"},{"Typeface name":"Wingdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"9756","Unicode hex":"261C"},{"Typeface name":"Wingdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"9758","Unicode hex":"261E"},{"Typeface name":"Wingdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"9757","Unicode hex":"261D"},{"Typeface name":"Wingdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"9759","Unicode hex":"261F"},{"Typeface name":"Wingdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128400","Unicode hex":"1F590"},{"Typeface name":"Wingdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"9786","Unicode hex":"263A"},{"Typeface name":"Wingdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128528","Unicode hex":"1F610"},{"Typeface name":"Wingdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"9785","Unicode hex":"2639"},{"Typeface name":"Wingdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128163","Unicode hex":"1F4A3"},{"Typeface name":"Wingdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128369","Unicode hex":"1F571"},{"Typeface name":"Wingdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"127987","Unicode hex":"1F3F3"},{"Typeface name":"Wingdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127985","Unicode hex":"1F3F1"},{"Typeface name":"Wingdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"9992","Unicode hex":"2708"},{"Typeface name":"Wingdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9788","Unicode hex":"263C"},{"Typeface name":"Wingdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127778","Unicode hex":"1F322"},{"Typeface name":"Wingdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"10052","Unicode hex":"2744"},{"Typeface name":"Wingdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128326","Unicode hex":"1F546"},{"Typeface name":"Wingdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"10014","Unicode hex":"271E"},{"Typeface name":"Wingdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128328","Unicode hex":"1F548"},{"Typeface name":"Wingdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10016","Unicode hex":"2720"},{"Typeface name":"Wingdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"10017","Unicode hex":"2721"},{"Typeface name":"Wingdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"9770","Unicode hex":"262A"},{"Typeface name":"Wingdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"9775","Unicode hex":"262F"},{"Typeface name":"Wingdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128329","Unicode hex":"1F549"},{"Typeface name":"Wingdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"9784","Unicode hex":"2638"},{"Typeface name":"Wingdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"9800","Unicode hex":"2648"},{"Typeface name":"Wingdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"9801","Unicode hex":"2649"},{"Typeface name":"Wingdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"9802","Unicode hex":"264A"},{"Typeface name":"Wingdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"9803","Unicode hex":"264B"},{"Typeface name":"Wingdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"9804","Unicode hex":"264C"},{"Typeface name":"Wingdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"9805","Unicode hex":"264D"},{"Typeface name":"Wingdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"9806","Unicode hex":"264E"},{"Typeface name":"Wingdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"9807","Unicode hex":"264F"},{"Typeface name":"Wingdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"9808","Unicode hex":"2650"},{"Typeface name":"Wingdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"9809","Unicode hex":"2651"},{"Typeface name":"Wingdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"9810","Unicode hex":"2652"},{"Typeface name":"Wingdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9811","Unicode hex":"2653"},{"Typeface name":"Wingdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128624","Unicode hex":"1F670"},{"Typeface name":"Wingdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128629","Unicode hex":"1F675"},{"Typeface name":"Wingdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9899","Unicode hex":"26AB"},{"Typeface name":"Wingdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128318","Unicode hex":"1F53E"},{"Typeface name":"Wingdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9724","Unicode hex":"25FC"},{"Typeface name":"Wingdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128911","Unicode hex":"1F78F"},{"Typeface name":"Wingdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128912","Unicode hex":"1F790"},{"Typeface name":"Wingdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"10065","Unicode hex":"2751"},{"Typeface name":"Wingdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"10066","Unicode hex":"2752"},{"Typeface name":"Wingdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"128927","Unicode hex":"1F79F"},{"Typeface name":"Wingdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"10731","Unicode hex":"29EB"},{"Typeface name":"Wingdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9670","Unicode hex":"25C6"},{"Typeface name":"Wingdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10070","Unicode hex":"2756"},{"Typeface name":"Wingdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"8999","Unicode hex":"2327"},{"Typeface name":"Wingdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"11193","Unicode hex":"2BB9"},{"Typeface name":"Wingdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"8984","Unicode hex":"2318"},{"Typeface name":"Wingdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"127989","Unicode hex":"1F3F5"},{"Typeface name":"Wingdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"127990","Unicode hex":"1F3F6"},{"Typeface name":"Wingdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128630","Unicode hex":"1F676"},{"Typeface name":"Wingdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128631","Unicode hex":"1F677"},{"Typeface name":"Wingdings","Dingbat dec":"127","Dingbat hex":"7F","Unicode dec":"9647","Unicode hex":"25AF"},{"Typeface name":"Wingdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"127243","Unicode hex":"1F10B"},{"Typeface name":"Wingdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"10112","Unicode hex":"2780"},{"Typeface name":"Wingdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"10113","Unicode hex":"2781"},{"Typeface name":"Wingdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"10114","Unicode hex":"2782"},{"Typeface name":"Wingdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"10115","Unicode hex":"2783"},{"Typeface name":"Wingdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10116","Unicode hex":"2784"},{"Typeface name":"Wingdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"10117","Unicode hex":"2785"},{"Typeface name":"Wingdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"10118","Unicode hex":"2786"},{"Typeface name":"Wingdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"10119","Unicode hex":"2787"},{"Typeface name":"Wingdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"10120","Unicode hex":"2788"},{"Typeface name":"Wingdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"10121","Unicode hex":"2789"},{"Typeface name":"Wingdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127244","Unicode hex":"1F10C"},{"Typeface name":"Wingdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"10122","Unicode hex":"278A"},{"Typeface name":"Wingdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"10123","Unicode hex":"278B"},{"Typeface name":"Wingdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"10124","Unicode hex":"278C"},{"Typeface name":"Wingdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"10125","Unicode hex":"278D"},{"Typeface name":"Wingdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"10126","Unicode hex":"278E"},{"Typeface name":"Wingdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"10127","Unicode hex":"278F"},{"Typeface name":"Wingdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"10128","Unicode hex":"2790"},{"Typeface name":"Wingdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"10129","Unicode hex":"2791"},{"Typeface name":"Wingdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"10130","Unicode hex":"2792"},{"Typeface name":"Wingdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"10131","Unicode hex":"2793"},{"Typeface name":"Wingdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128610","Unicode hex":"1F662"},{"Typeface name":"Wingdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128608","Unicode hex":"1F660"},{"Typeface name":"Wingdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"128609","Unicode hex":"1F661"},{"Typeface name":"Wingdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128611","Unicode hex":"1F663"},{"Typeface name":"Wingdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128606","Unicode hex":"1F65E"},{"Typeface name":"Wingdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128604","Unicode hex":"1F65C"},{"Typeface name":"Wingdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128605","Unicode hex":"1F65D"},{"Typeface name":"Wingdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128607","Unicode hex":"1F65F"},{"Typeface name":"Wingdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"8729","Unicode hex":"2219"},{"Typeface name":"Wingdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Wingdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"11037","Unicode hex":"2B1D"},{"Typeface name":"Wingdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"11096","Unicode hex":"2B58"},{"Typeface name":"Wingdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128902","Unicode hex":"1F786"},{"Typeface name":"Wingdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128904","Unicode hex":"1F788"},{"Typeface name":"Wingdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128906","Unicode hex":"1F78A"},{"Typeface name":"Wingdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128907","Unicode hex":"1F78B"},{"Typeface name":"Wingdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128319","Unicode hex":"1F53F"},{"Typeface name":"Wingdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9642","Unicode hex":"25AA"},{"Typeface name":"Wingdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128910","Unicode hex":"1F78E"},{"Typeface name":"Wingdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128961","Unicode hex":"1F7C1"},{"Typeface name":"Wingdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128965","Unicode hex":"1F7C5"},{"Typeface name":"Wingdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"9733","Unicode hex":"2605"},{"Typeface name":"Wingdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128971","Unicode hex":"1F7CB"},{"Typeface name":"Wingdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128975","Unicode hex":"1F7CF"},{"Typeface name":"Wingdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"128979","Unicode hex":"1F7D3"},{"Typeface name":"Wingdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"128977","Unicode hex":"1F7D1"},{"Typeface name":"Wingdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"11216","Unicode hex":"2BD0"},{"Typeface name":"Wingdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"8982","Unicode hex":"2316"},{"Typeface name":"Wingdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"11214","Unicode hex":"2BCE"},{"Typeface name":"Wingdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"11215","Unicode hex":"2BCF"},{"Typeface name":"Wingdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"11217","Unicode hex":"2BD1"},{"Typeface name":"Wingdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"10026","Unicode hex":"272A"},{"Typeface name":"Wingdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"10032","Unicode hex":"2730"},{"Typeface name":"Wingdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"128336","Unicode hex":"1F550"},{"Typeface name":"Wingdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128337","Unicode hex":"1F551"},{"Typeface name":"Wingdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128338","Unicode hex":"1F552"},{"Typeface name":"Wingdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128339","Unicode hex":"1F553"},{"Typeface name":"Wingdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128340","Unicode hex":"1F554"},{"Typeface name":"Wingdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"128341","Unicode hex":"1F555"},{"Typeface name":"Wingdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"128342","Unicode hex":"1F556"},{"Typeface name":"Wingdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128343","Unicode hex":"1F557"},{"Typeface name":"Wingdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128344","Unicode hex":"1F558"},{"Typeface name":"Wingdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128345","Unicode hex":"1F559"},{"Typeface name":"Wingdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128346","Unicode hex":"1F55A"},{"Typeface name":"Wingdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128347","Unicode hex":"1F55B"},{"Typeface name":"Wingdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11184","Unicode hex":"2BB0"},{"Typeface name":"Wingdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11185","Unicode hex":"2BB1"},{"Typeface name":"Wingdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11186","Unicode hex":"2BB2"},{"Typeface name":"Wingdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"11187","Unicode hex":"2BB3"},{"Typeface name":"Wingdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"11188","Unicode hex":"2BB4"},{"Typeface name":"Wingdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"11189","Unicode hex":"2BB5"},{"Typeface name":"Wingdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11190","Unicode hex":"2BB6"},{"Typeface name":"Wingdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11191","Unicode hex":"2BB7"},{"Typeface name":"Wingdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128618","Unicode hex":"1F66A"},{"Typeface name":"Wingdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128619","Unicode hex":"1F66B"},{"Typeface name":"Wingdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128597","Unicode hex":"1F655"},{"Typeface name":"Wingdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128596","Unicode hex":"1F654"},{"Typeface name":"Wingdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128599","Unicode hex":"1F657"},{"Typeface name":"Wingdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128598","Unicode hex":"1F656"},{"Typeface name":"Wingdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128592","Unicode hex":"1F650"},{"Typeface name":"Wingdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128593","Unicode hex":"1F651"},{"Typeface name":"Wingdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128594","Unicode hex":"1F652"},{"Typeface name":"Wingdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128595","Unicode hex":"1F653"},{"Typeface name":"Wingdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"9003","Unicode hex":"232B"},{"Typeface name":"Wingdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8998","Unicode hex":"2326"},{"Typeface name":"Wingdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"11160","Unicode hex":"2B98"},{"Typeface name":"Wingdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"11162","Unicode hex":"2B9A"},{"Typeface name":"Wingdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"11161","Unicode hex":"2B99"},{"Typeface name":"Wingdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"11163","Unicode hex":"2B9B"},{"Typeface name":"Wingdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"11144","Unicode hex":"2B88"},{"Typeface name":"Wingdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"11146","Unicode hex":"2B8A"},{"Typeface name":"Wingdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"11145","Unicode hex":"2B89"},{"Typeface name":"Wingdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"11147","Unicode hex":"2B8B"},{"Typeface name":"Wingdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129128","Unicode hex":"1F868"},{"Typeface name":"Wingdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129130","Unicode hex":"1F86A"},{"Typeface name":"Wingdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129129","Unicode hex":"1F869"},{"Typeface name":"Wingdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129131","Unicode hex":"1F86B"},{"Typeface name":"Wingdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129132","Unicode hex":"1F86C"},{"Typeface name":"Wingdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129133","Unicode hex":"1F86D"},{"Typeface name":"Wingdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129135","Unicode hex":"1F86F"},{"Typeface name":"Wingdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129134","Unicode hex":"1F86E"},{"Typeface name":"Wingdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129144","Unicode hex":"1F878"},{"Typeface name":"Wingdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129146","Unicode hex":"1F87A"},{"Typeface name":"Wingdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129145","Unicode hex":"1F879"},{"Typeface name":"Wingdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129147","Unicode hex":"1F87B"},{"Typeface name":"Wingdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129148","Unicode hex":"1F87C"},{"Typeface name":"Wingdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129149","Unicode hex":"1F87D"},{"Typeface name":"Wingdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129151","Unicode hex":"1F87F"},{"Typeface name":"Wingdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129150","Unicode hex":"1F87E"},{"Typeface name":"Wingdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"8678","Unicode hex":"21E6"},{"Typeface name":"Wingdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"8680","Unicode hex":"21E8"},{"Typeface name":"Wingdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"8679","Unicode hex":"21E7"},{"Typeface name":"Wingdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8681","Unicode hex":"21E9"},{"Typeface name":"Wingdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"11012","Unicode hex":"2B04"},{"Typeface name":"Wingdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"8691","Unicode hex":"21F3"},{"Typeface name":"Wingdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"11009","Unicode hex":"2B01"},{"Typeface name":"Wingdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11008","Unicode hex":"2B00"},{"Typeface name":"Wingdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11011","Unicode hex":"2B03"},{"Typeface name":"Wingdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"11010","Unicode hex":"2B02"},{"Typeface name":"Wingdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"129196","Unicode hex":"1F8AC"},{"Typeface name":"Wingdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"129197","Unicode hex":"1F8AD"},{"Typeface name":"Wingdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128502","Unicode hex":"1F5F6"},{"Typeface name":"Wingdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"10003","Unicode hex":"2713"},{"Typeface name":"Wingdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"128503","Unicode hex":"1F5F7"},{"Typeface name":"Wingdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"128505","Unicode hex":"1F5F9"},{"Typeface name":"Wingdings 2","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 2","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128394","Unicode hex":"1F58A"},{"Typeface name":"Wingdings 2","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128395","Unicode hex":"1F58B"},{"Typeface name":"Wingdings 2","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128396","Unicode hex":"1F58C"},{"Typeface name":"Wingdings 2","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128397","Unicode hex":"1F58D"},{"Typeface name":"Wingdings 2","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"9988","Unicode hex":"2704"},{"Typeface name":"Wingdings 2","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"9984","Unicode hex":"2700"},{"Typeface name":"Wingdings 2","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128382","Unicode hex":"1F57E"},{"Typeface name":"Wingdings 2","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128381","Unicode hex":"1F57D"},{"Typeface name":"Wingdings 2","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128453","Unicode hex":"1F5C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128454","Unicode hex":"1F5C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128455","Unicode hex":"1F5C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128456","Unicode hex":"1F5C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128457","Unicode hex":"1F5C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128458","Unicode hex":"1F5CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128459","Unicode hex":"1F5CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128460","Unicode hex":"1F5CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128461","Unicode hex":"1F5CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128465","Unicode hex":"1F5D1"},{"Typeface name":"Wingdings 2","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128468","Unicode hex":"1F5D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128437","Unicode hex":"1F5B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"128438","Unicode hex":"1F5B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128439","Unicode hex":"1F5B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128440","Unicode hex":"1F5B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128429","Unicode hex":"1F5AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128431","Unicode hex":"1F5AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128433","Unicode hex":"1F5B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128402","Unicode hex":"1F592"},{"Typeface name":"Wingdings 2","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128403","Unicode hex":"1F593"},{"Typeface name":"Wingdings 2","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128408","Unicode hex":"1F598"},{"Typeface name":"Wingdings 2","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128409","Unicode hex":"1F599"},{"Typeface name":"Wingdings 2","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128410","Unicode hex":"1F59A"},{"Typeface name":"Wingdings 2","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"128411","Unicode hex":"1F59B"},{"Typeface name":"Wingdings 2","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128072","Unicode hex":"1F448"},{"Typeface name":"Wingdings 2","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128073","Unicode hex":"1F449"},{"Typeface name":"Wingdings 2","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128412","Unicode hex":"1F59C"},{"Typeface name":"Wingdings 2","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"128413","Unicode hex":"1F59D"},{"Typeface name":"Wingdings 2","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"128414","Unicode hex":"1F59E"},{"Typeface name":"Wingdings 2","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"128415","Unicode hex":"1F59F"},{"Typeface name":"Wingdings 2","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"128416","Unicode hex":"1F5A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128417","Unicode hex":"1F5A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"128070","Unicode hex":"1F446"},{"Typeface name":"Wingdings 2","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128071","Unicode hex":"1F447"},{"Typeface name":"Wingdings 2","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128418","Unicode hex":"1F5A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128419","Unicode hex":"1F5A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128401","Unicode hex":"1F591"},{"Typeface name":"Wingdings 2","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128500","Unicode hex":"1F5F4"},{"Typeface name":"Wingdings 2","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"128504","Unicode hex":"1F5F8"},{"Typeface name":"Wingdings 2","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"128501","Unicode hex":"1F5F5"},{"Typeface name":"Wingdings 2","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9745","Unicode hex":"2611"},{"Typeface name":"Wingdings 2","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"11197","Unicode hex":"2BBD"},{"Typeface name":"Wingdings 2","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"9746","Unicode hex":"2612"},{"Typeface name":"Wingdings 2","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"11198","Unicode hex":"2BBE"},{"Typeface name":"Wingdings 2","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"11199","Unicode hex":"2BBF"},{"Typeface name":"Wingdings 2","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128711","Unicode hex":"1F6C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"128625","Unicode hex":"1F671"},{"Typeface name":"Wingdings 2","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"128628","Unicode hex":"1F674"},{"Typeface name":"Wingdings 2","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128626","Unicode hex":"1F672"},{"Typeface name":"Wingdings 2","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128627","Unicode hex":"1F673"},{"Typeface name":"Wingdings 2","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"8253","Unicode hex":"203D"},{"Typeface name":"Wingdings 2","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128633","Unicode hex":"1F679"},{"Typeface name":"Wingdings 2","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128634","Unicode hex":"1F67A"},{"Typeface name":"Wingdings 2","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"128635","Unicode hex":"1F67B"},{"Typeface name":"Wingdings 2","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"128614","Unicode hex":"1F666"},{"Typeface name":"Wingdings 2","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128612","Unicode hex":"1F664"},{"Typeface name":"Wingdings 2","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"128613","Unicode hex":"1F665"},{"Typeface name":"Wingdings 2","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128615","Unicode hex":"1F667"},{"Typeface name":"Wingdings 2","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128602","Unicode hex":"1F65A"},{"Typeface name":"Wingdings 2","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128600","Unicode hex":"1F658"},{"Typeface name":"Wingdings 2","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"128601","Unicode hex":"1F659"},{"Typeface name":"Wingdings 2","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128603","Unicode hex":"1F65B"},{"Typeface name":"Wingdings 2","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9450","Unicode hex":"24EA"},{"Typeface name":"Wingdings 2","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"9312","Unicode hex":"2460"},{"Typeface name":"Wingdings 2","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"9313","Unicode hex":"2461"},{"Typeface name":"Wingdings 2","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9314","Unicode hex":"2462"},{"Typeface name":"Wingdings 2","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"9315","Unicode hex":"2463"},{"Typeface name":"Wingdings 2","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9316","Unicode hex":"2464"},{"Typeface name":"Wingdings 2","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"9317","Unicode hex":"2465"},{"Typeface name":"Wingdings 2","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9318","Unicode hex":"2466"},{"Typeface name":"Wingdings 2","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9319","Unicode hex":"2467"},{"Typeface name":"Wingdings 2","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9320","Unicode hex":"2468"},{"Typeface name":"Wingdings 2","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9321","Unicode hex":"2469"},{"Typeface name":"Wingdings 2","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9471","Unicode hex":"24FF"},{"Typeface name":"Wingdings 2","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"10102","Unicode hex":"2776"},{"Typeface name":"Wingdings 2","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10103","Unicode hex":"2777"},{"Typeface name":"Wingdings 2","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"10104","Unicode hex":"2778"},{"Typeface name":"Wingdings 2","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10105","Unicode hex":"2779"},{"Typeface name":"Wingdings 2","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"10106","Unicode hex":"277A"},{"Typeface name":"Wingdings 2","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"10107","Unicode hex":"277B"},{"Typeface name":"Wingdings 2","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"10108","Unicode hex":"277C"},{"Typeface name":"Wingdings 2","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"10109","Unicode hex":"277D"},{"Typeface name":"Wingdings 2","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"10110","Unicode hex":"277E"},{"Typeface name":"Wingdings 2","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"10111","Unicode hex":"277F"},{"Typeface name":"Wingdings 2","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"9737","Unicode hex":"2609"},{"Typeface name":"Wingdings 2","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"127765","Unicode hex":"1F315"},{"Typeface name":"Wingdings 2","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"9789","Unicode hex":"263D"},{"Typeface name":"Wingdings 2","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"9790","Unicode hex":"263E"},{"Typeface name":"Wingdings 2","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11839","Unicode hex":"2E3F"},{"Typeface name":"Wingdings 2","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10013","Unicode hex":"271D"},{"Typeface name":"Wingdings 2","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"128327","Unicode hex":"1F547"},{"Typeface name":"Wingdings 2","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"128348","Unicode hex":"1F55C"},{"Typeface name":"Wingdings 2","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"128349","Unicode hex":"1F55D"},{"Typeface name":"Wingdings 2","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"128350","Unicode hex":"1F55E"},{"Typeface name":"Wingdings 2","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"128351","Unicode hex":"1F55F"},{"Typeface name":"Wingdings 2","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"128352","Unicode hex":"1F560"},{"Typeface name":"Wingdings 2","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"128353","Unicode hex":"1F561"},{"Typeface name":"Wingdings 2","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"128354","Unicode hex":"1F562"},{"Typeface name":"Wingdings 2","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128355","Unicode hex":"1F563"},{"Typeface name":"Wingdings 2","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128356","Unicode hex":"1F564"},{"Typeface name":"Wingdings 2","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128357","Unicode hex":"1F565"},{"Typeface name":"Wingdings 2","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128358","Unicode hex":"1F566"},{"Typeface name":"Wingdings 2","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"128359","Unicode hex":"1F567"},{"Typeface name":"Wingdings 2","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128616","Unicode hex":"1F668"},{"Typeface name":"Wingdings 2","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128617","Unicode hex":"1F669"},{"Typeface name":"Wingdings 2","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128900","Unicode hex":"1F784"},{"Typeface name":"Wingdings 2","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"10625","Unicode hex":"2981"},{"Typeface name":"Wingdings 2","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"9679","Unicode hex":"25CF"},{"Typeface name":"Wingdings 2","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"9675","Unicode hex":"25CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128901","Unicode hex":"1F785"},{"Typeface name":"Wingdings 2","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128903","Unicode hex":"1F787"},{"Typeface name":"Wingdings 2","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128905","Unicode hex":"1F789"},{"Typeface name":"Wingdings 2","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"8857","Unicode hex":"2299"},{"Typeface name":"Wingdings 2","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"10687","Unicode hex":"29BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128908","Unicode hex":"1F78C"},{"Typeface name":"Wingdings 2","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128909","Unicode hex":"1F78D"},{"Typeface name":"Wingdings 2","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"9726","Unicode hex":"25FE"},{"Typeface name":"Wingdings 2","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"9632","Unicode hex":"25A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"9633","Unicode hex":"25A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128913","Unicode hex":"1F791"},{"Typeface name":"Wingdings 2","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128914","Unicode hex":"1F792"},{"Typeface name":"Wingdings 2","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128915","Unicode hex":"1F793"},{"Typeface name":"Wingdings 2","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128916","Unicode hex":"1F794"},{"Typeface name":"Wingdings 2","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9635","Unicode hex":"25A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128917","Unicode hex":"1F795"},{"Typeface name":"Wingdings 2","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128918","Unicode hex":"1F796"},{"Typeface name":"Wingdings 2","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128919","Unicode hex":"1F797"},{"Typeface name":"Wingdings 2","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128920","Unicode hex":"1F798"},{"Typeface name":"Wingdings 2","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings 2","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"11045","Unicode hex":"2B25"},{"Typeface name":"Wingdings 2","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"9671","Unicode hex":"25C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"128922","Unicode hex":"1F79A"},{"Typeface name":"Wingdings 2","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"9672","Unicode hex":"25C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"128923","Unicode hex":"1F79B"},{"Typeface name":"Wingdings 2","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128924","Unicode hex":"1F79C"},{"Typeface name":"Wingdings 2","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"128925","Unicode hex":"1F79D"},{"Typeface name":"Wingdings 2","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128926","Unicode hex":"1F79E"},{"Typeface name":"Wingdings 2","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"11050","Unicode hex":"2B2A"},{"Typeface name":"Wingdings 2","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"11047","Unicode hex":"2B27"},{"Typeface name":"Wingdings 2","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128928","Unicode hex":"1F7A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"9686","Unicode hex":"25D6"},{"Typeface name":"Wingdings 2","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"9687","Unicode hex":"25D7"},{"Typeface name":"Wingdings 2","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"11210","Unicode hex":"2BCA"},{"Typeface name":"Wingdings 2","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"11211","Unicode hex":"2BCB"},{"Typeface name":"Wingdings 2","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"11200","Unicode hex":"2BC0"},{"Typeface name":"Wingdings 2","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"11201","Unicode hex":"2BC1"},{"Typeface name":"Wingdings 2","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"11039","Unicode hex":"2B1F"},{"Typeface name":"Wingdings 2","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"11202","Unicode hex":"2BC2"},{"Typeface name":"Wingdings 2","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"11043","Unicode hex":"2B23"},{"Typeface name":"Wingdings 2","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11042","Unicode hex":"2B22"},{"Typeface name":"Wingdings 2","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11203","Unicode hex":"2BC3"},{"Typeface name":"Wingdings 2","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11204","Unicode hex":"2BC4"},{"Typeface name":"Wingdings 2","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128929","Unicode hex":"1F7A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128930","Unicode hex":"1F7A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128931","Unicode hex":"1F7A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128932","Unicode hex":"1F7A4"},{"Typeface name":"Wingdings 2","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128933","Unicode hex":"1F7A5"},{"Typeface name":"Wingdings 2","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128934","Unicode hex":"1F7A6"},{"Typeface name":"Wingdings 2","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128935","Unicode hex":"1F7A7"},{"Typeface name":"Wingdings 2","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128936","Unicode hex":"1F7A8"},{"Typeface name":"Wingdings 2","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128937","Unicode hex":"1F7A9"},{"Typeface name":"Wingdings 2","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128938","Unicode hex":"1F7AA"},{"Typeface name":"Wingdings 2","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128939","Unicode hex":"1F7AB"},{"Typeface name":"Wingdings 2","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128940","Unicode hex":"1F7AC"},{"Typeface name":"Wingdings 2","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128941","Unicode hex":"1F7AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128942","Unicode hex":"1F7AE"},{"Typeface name":"Wingdings 2","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128943","Unicode hex":"1F7AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"128944","Unicode hex":"1F7B0"},{"Typeface name":"Wingdings 2","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"128945","Unicode hex":"1F7B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"128946","Unicode hex":"1F7B2"},{"Typeface name":"Wingdings 2","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"128947","Unicode hex":"1F7B3"},{"Typeface name":"Wingdings 2","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"128948","Unicode hex":"1F7B4"},{"Typeface name":"Wingdings 2","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"128949","Unicode hex":"1F7B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"128950","Unicode hex":"1F7B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"128951","Unicode hex":"1F7B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"128952","Unicode hex":"1F7B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"128953","Unicode hex":"1F7B9"},{"Typeface name":"Wingdings 2","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"128954","Unicode hex":"1F7BA"},{"Typeface name":"Wingdings 2","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"128955","Unicode hex":"1F7BB"},{"Typeface name":"Wingdings 2","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"128956","Unicode hex":"1F7BC"},{"Typeface name":"Wingdings 2","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128957","Unicode hex":"1F7BD"},{"Typeface name":"Wingdings 2","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128958","Unicode hex":"1F7BE"},{"Typeface name":"Wingdings 2","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"128959","Unicode hex":"1F7BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"128960","Unicode hex":"1F7C0"},{"Typeface name":"Wingdings 2","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128962","Unicode hex":"1F7C2"},{"Typeface name":"Wingdings 2","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128964","Unicode hex":"1F7C4"},{"Typeface name":"Wingdings 2","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"128966","Unicode hex":"1F7C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"128969","Unicode hex":"1F7C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128970","Unicode hex":"1F7CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"10038","Unicode hex":"2736"},{"Typeface name":"Wingdings 2","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"128972","Unicode hex":"1F7CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128974","Unicode hex":"1F7CE"},{"Typeface name":"Wingdings 2","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128976","Unicode hex":"1F7D0"},{"Typeface name":"Wingdings 2","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128978","Unicode hex":"1F7D2"},{"Typeface name":"Wingdings 2","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"10041","Unicode hex":"2739"},{"Typeface name":"Wingdings 2","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128963","Unicode hex":"1F7C3"},{"Typeface name":"Wingdings 2","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128967","Unicode hex":"1F7C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Wingdings 2","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128973","Unicode hex":"1F7CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128980","Unicode hex":"1F7D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11212","Unicode hex":"2BCC"},{"Typeface name":"Wingdings 2","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11213","Unicode hex":"2BCD"},{"Typeface name":"Wingdings 2","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"8251","Unicode hex":"203B"},{"Typeface name":"Wingdings 2","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"8258","Unicode hex":"2042"},{"Typeface name":"Wingdings 3","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 3","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"11104","Unicode hex":"2B60"},{"Typeface name":"Wingdings 3","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"11106","Unicode hex":"2B62"},{"Typeface name":"Wingdings 3","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"11105","Unicode hex":"2B61"},{"Typeface name":"Wingdings 3","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"11107","Unicode hex":"2B63"},{"Typeface name":"Wingdings 3","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"11110","Unicode hex":"2B66"},{"Typeface name":"Wingdings 3","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"11111","Unicode hex":"2B67"},{"Typeface name":"Wingdings 3","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"11113","Unicode hex":"2B69"},{"Typeface name":"Wingdings 3","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"11112","Unicode hex":"2B68"},{"Typeface name":"Wingdings 3","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"11120","Unicode hex":"2B70"},{"Typeface name":"Wingdings 3","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"11122","Unicode hex":"2B72"},{"Typeface name":"Wingdings 3","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"11121","Unicode hex":"2B71"},{"Typeface name":"Wingdings 3","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"11123","Unicode hex":"2B73"},{"Typeface name":"Wingdings 3","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"11126","Unicode hex":"2B76"},{"Typeface name":"Wingdings 3","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"11128","Unicode hex":"2B78"},{"Typeface name":"Wingdings 3","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"11131","Unicode hex":"2B7B"},{"Typeface name":"Wingdings 3","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"11133","Unicode hex":"2B7D"},{"Typeface name":"Wingdings 3","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"11108","Unicode hex":"2B64"},{"Typeface name":"Wingdings 3","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"11109","Unicode hex":"2B65"},{"Typeface name":"Wingdings 3","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"11114","Unicode hex":"2B6A"},{"Typeface name":"Wingdings 3","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"11116","Unicode hex":"2B6C"},{"Typeface name":"Wingdings 3","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"11115","Unicode hex":"2B6B"},{"Typeface name":"Wingdings 3","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"11117","Unicode hex":"2B6D"},{"Typeface name":"Wingdings 3","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"11085","Unicode hex":"2B4D"},{"Typeface name":"Wingdings 3","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"11168","Unicode hex":"2BA0"},{"Typeface name":"Wingdings 3","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"11169","Unicode hex":"2BA1"},{"Typeface name":"Wingdings 3","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"11170","Unicode hex":"2BA2"},{"Typeface name":"Wingdings 3","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"11171","Unicode hex":"2BA3"},{"Typeface name":"Wingdings 3","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"11172","Unicode hex":"2BA4"},{"Typeface name":"Wingdings 3","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"11173","Unicode hex":"2BA5"},{"Typeface name":"Wingdings 3","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"11174","Unicode hex":"2BA6"},{"Typeface name":"Wingdings 3","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"11175","Unicode hex":"2BA7"},{"Typeface name":"Wingdings 3","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"11152","Unicode hex":"2B90"},{"Typeface name":"Wingdings 3","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"11153","Unicode hex":"2B91"},{"Typeface name":"Wingdings 3","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"11154","Unicode hex":"2B92"},{"Typeface name":"Wingdings 3","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"11155","Unicode hex":"2B93"},{"Typeface name":"Wingdings 3","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"11136","Unicode hex":"2B80"},{"Typeface name":"Wingdings 3","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"11139","Unicode hex":"2B83"},{"Typeface name":"Wingdings 3","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"11134","Unicode hex":"2B7E"},{"Typeface name":"Wingdings 3","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"11135","Unicode hex":"2B7F"},{"Typeface name":"Wingdings 3","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"11140","Unicode hex":"2B84"},{"Typeface name":"Wingdings 3","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"11142","Unicode hex":"2B86"},{"Typeface name":"Wingdings 3","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"11141","Unicode hex":"2B85"},{"Typeface name":"Wingdings 3","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"11143","Unicode hex":"2B87"},{"Typeface name":"Wingdings 3","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"11151","Unicode hex":"2B8F"},{"Typeface name":"Wingdings 3","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"11149","Unicode hex":"2B8D"},{"Typeface name":"Wingdings 3","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"11150","Unicode hex":"2B8E"},{"Typeface name":"Wingdings 3","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"11148","Unicode hex":"2B8C"},{"Typeface name":"Wingdings 3","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"11118","Unicode hex":"2B6E"},{"Typeface name":"Wingdings 3","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"11119","Unicode hex":"2B6F"},{"Typeface name":"Wingdings 3","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9099","Unicode hex":"238B"},{"Typeface name":"Wingdings 3","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"8996","Unicode hex":"2324"},{"Typeface name":"Wingdings 3","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"8963","Unicode hex":"2303"},{"Typeface name":"Wingdings 3","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"8997","Unicode hex":"2325"},{"Typeface name":"Wingdings 3","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"9251","Unicode hex":"2423"},{"Typeface name":"Wingdings 3","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"9085","Unicode hex":"237D"},{"Typeface name":"Wingdings 3","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"8682","Unicode hex":"21EA"},{"Typeface name":"Wingdings 3","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"11192","Unicode hex":"2BB8"},{"Typeface name":"Wingdings 3","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"129184","Unicode hex":"1F8A0"},{"Typeface name":"Wingdings 3","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"129185","Unicode hex":"1F8A1"},{"Typeface name":"Wingdings 3","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"129186","Unicode hex":"1F8A2"},{"Typeface name":"Wingdings 3","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"129187","Unicode hex":"1F8A3"},{"Typeface name":"Wingdings 3","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"129188","Unicode hex":"1F8A4"},{"Typeface name":"Wingdings 3","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"129189","Unicode hex":"1F8A5"},{"Typeface name":"Wingdings 3","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"129190","Unicode hex":"1F8A6"},{"Typeface name":"Wingdings 3","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"129191","Unicode hex":"1F8A7"},{"Typeface name":"Wingdings 3","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"129192","Unicode hex":"1F8A8"},{"Typeface name":"Wingdings 3","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"129193","Unicode hex":"1F8A9"},{"Typeface name":"Wingdings 3","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"129194","Unicode hex":"1F8AA"},{"Typeface name":"Wingdings 3","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"129195","Unicode hex":"1F8AB"},{"Typeface name":"Wingdings 3","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"129104","Unicode hex":"1F850"},{"Typeface name":"Wingdings 3","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"129106","Unicode hex":"1F852"},{"Typeface name":"Wingdings 3","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"129105","Unicode hex":"1F851"},{"Typeface name":"Wingdings 3","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"129107","Unicode hex":"1F853"},{"Typeface name":"Wingdings 3","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"129108","Unicode hex":"1F854"},{"Typeface name":"Wingdings 3","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"129109","Unicode hex":"1F855"},{"Typeface name":"Wingdings 3","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"129111","Unicode hex":"1F857"},{"Typeface name":"Wingdings 3","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"129110","Unicode hex":"1F856"},{"Typeface name":"Wingdings 3","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"129112","Unicode hex":"1F858"},{"Typeface name":"Wingdings 3","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"129113","Unicode hex":"1F859"},{"Typeface name":"Wingdings 3","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9650","Unicode hex":"25B2"},{"Typeface name":"Wingdings 3","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9660","Unicode hex":"25BC"},{"Typeface name":"Wingdings 3","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9651","Unicode hex":"25B3"},{"Typeface name":"Wingdings 3","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9661","Unicode hex":"25BD"},{"Typeface name":"Wingdings 3","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9664","Unicode hex":"25C0"},{"Typeface name":"Wingdings 3","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9654","Unicode hex":"25B6"},{"Typeface name":"Wingdings 3","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"9665","Unicode hex":"25C1"},{"Typeface name":"Wingdings 3","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9655","Unicode hex":"25B7"},{"Typeface name":"Wingdings 3","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"9699","Unicode hex":"25E3"},{"Typeface name":"Wingdings 3","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"9698","Unicode hex":"25E2"},{"Typeface name":"Wingdings 3","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"9700","Unicode hex":"25E4"},{"Typeface name":"Wingdings 3","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"9701","Unicode hex":"25E5"},{"Typeface name":"Wingdings 3","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"128896","Unicode hex":"1F780"},{"Typeface name":"Wingdings 3","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128898","Unicode hex":"1F782"},{"Typeface name":"Wingdings 3","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128897","Unicode hex":"1F781"},{"Typeface name":"Wingdings 3","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128899","Unicode hex":"1F783"},{"Typeface name":"Wingdings 3","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"11205","Unicode hex":"2BC5"},{"Typeface name":"Wingdings 3","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"11206","Unicode hex":"2BC6"},{"Typeface name":"Wingdings 3","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"11207","Unicode hex":"2BC7"},{"Typeface name":"Wingdings 3","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11208","Unicode hex":"2BC8"},{"Typeface name":"Wingdings 3","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"11164","Unicode hex":"2B9C"},{"Typeface name":"Wingdings 3","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"11166","Unicode hex":"2B9E"},{"Typeface name":"Wingdings 3","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"11165","Unicode hex":"2B9D"},{"Typeface name":"Wingdings 3","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"11167","Unicode hex":"2B9F"},{"Typeface name":"Wingdings 3","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"129040","Unicode hex":"1F810"},{"Typeface name":"Wingdings 3","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"129042","Unicode hex":"1F812"},{"Typeface name":"Wingdings 3","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"129041","Unicode hex":"1F811"},{"Typeface name":"Wingdings 3","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"129043","Unicode hex":"1F813"},{"Typeface name":"Wingdings 3","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"129044","Unicode hex":"1F814"},{"Typeface name":"Wingdings 3","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"129046","Unicode hex":"1F816"},{"Typeface name":"Wingdings 3","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"129045","Unicode hex":"1F815"},{"Typeface name":"Wingdings 3","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"129047","Unicode hex":"1F817"},{"Typeface name":"Wingdings 3","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"129048","Unicode hex":"1F818"},{"Typeface name":"Wingdings 3","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"129050","Unicode hex":"1F81A"},{"Typeface name":"Wingdings 3","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"129049","Unicode hex":"1F819"},{"Typeface name":"Wingdings 3","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"129051","Unicode hex":"1F81B"},{"Typeface name":"Wingdings 3","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"129052","Unicode hex":"1F81C"},{"Typeface name":"Wingdings 3","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"129054","Unicode hex":"1F81E"},{"Typeface name":"Wingdings 3","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"129053","Unicode hex":"1F81D"},{"Typeface name":"Wingdings 3","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"129055","Unicode hex":"1F81F"},{"Typeface name":"Wingdings 3","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"129024","Unicode hex":"1F800"},{"Typeface name":"Wingdings 3","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"129026","Unicode hex":"1F802"},{"Typeface name":"Wingdings 3","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"129025","Unicode hex":"1F801"},{"Typeface name":"Wingdings 3","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"129027","Unicode hex":"1F803"},{"Typeface name":"Wingdings 3","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"129028","Unicode hex":"1F804"},{"Typeface name":"Wingdings 3","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"129030","Unicode hex":"1F806"},{"Typeface name":"Wingdings 3","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"129029","Unicode hex":"1F805"},{"Typeface name":"Wingdings 3","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"129031","Unicode hex":"1F807"},{"Typeface name":"Wingdings 3","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"129032","Unicode hex":"1F808"},{"Typeface name":"Wingdings 3","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"129034","Unicode hex":"1F80A"},{"Typeface name":"Wingdings 3","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"129033","Unicode hex":"1F809"},{"Typeface name":"Wingdings 3","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"129035","Unicode hex":"1F80B"},{"Typeface name":"Wingdings 3","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"129056","Unicode hex":"1F820"},{"Typeface name":"Wingdings 3","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"129058","Unicode hex":"1F822"},{"Typeface name":"Wingdings 3","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"129060","Unicode hex":"1F824"},{"Typeface name":"Wingdings 3","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"129062","Unicode hex":"1F826"},{"Typeface name":"Wingdings 3","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"129064","Unicode hex":"1F828"},{"Typeface name":"Wingdings 3","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"129066","Unicode hex":"1F82A"},{"Typeface name":"Wingdings 3","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"129068","Unicode hex":"1F82C"},{"Typeface name":"Wingdings 3","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"129180","Unicode hex":"1F89C"},{"Typeface name":"Wingdings 3","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"129181","Unicode hex":"1F89D"},{"Typeface name":"Wingdings 3","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"129182","Unicode hex":"1F89E"},{"Typeface name":"Wingdings 3","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"129183","Unicode hex":"1F89F"},{"Typeface name":"Wingdings 3","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"129070","Unicode hex":"1F82E"},{"Typeface name":"Wingdings 3","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"129072","Unicode hex":"1F830"},{"Typeface name":"Wingdings 3","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"129074","Unicode hex":"1F832"},{"Typeface name":"Wingdings 3","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"129076","Unicode hex":"1F834"},{"Typeface name":"Wingdings 3","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"129078","Unicode hex":"1F836"},{"Typeface name":"Wingdings 3","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"129080","Unicode hex":"1F838"},{"Typeface name":"Wingdings 3","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"129082","Unicode hex":"1F83A"},{"Typeface name":"Wingdings 3","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"129081","Unicode hex":"1F839"},{"Typeface name":"Wingdings 3","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"129083","Unicode hex":"1F83B"},{"Typeface name":"Wingdings 3","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"129176","Unicode hex":"1F898"},{"Typeface name":"Wingdings 3","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"129178","Unicode hex":"1F89A"},{"Typeface name":"Wingdings 3","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"129177","Unicode hex":"1F899"},{"Typeface name":"Wingdings 3","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"129179","Unicode hex":"1F89B"},{"Typeface name":"Wingdings 3","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"129084","Unicode hex":"1F83C"},{"Typeface name":"Wingdings 3","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"129086","Unicode hex":"1F83E"},{"Typeface name":"Wingdings 3","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"129085","Unicode hex":"1F83D"},{"Typeface name":"Wingdings 3","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"129087","Unicode hex":"1F83F"},{"Typeface name":"Wingdings 3","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"129088","Unicode hex":"1F840"},{"Typeface name":"Wingdings 3","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"129090","Unicode hex":"1F842"},{"Typeface name":"Wingdings 3","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"129089","Unicode hex":"1F841"},{"Typeface name":"Wingdings 3","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"129091","Unicode hex":"1F843"},{"Typeface name":"Wingdings 3","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"129092","Unicode hex":"1F844"},{"Typeface name":"Wingdings 3","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"129094","Unicode hex":"1F846"},{"Typeface name":"Wingdings 3","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"129093","Unicode hex":"1F845"},{"Typeface name":"Wingdings 3","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"129095","Unicode hex":"1F847"},{"Typeface name":"Wingdings 3","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11176","Unicode hex":"2BA8"},{"Typeface name":"Wingdings 3","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11177","Unicode hex":"2BA9"},{"Typeface name":"Wingdings 3","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"11178","Unicode hex":"2BAA"},{"Typeface name":"Wingdings 3","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"11179","Unicode hex":"2BAB"},{"Typeface name":"Wingdings 3","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"11180","Unicode hex":"2BAC"},{"Typeface name":"Wingdings 3","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"11181","Unicode hex":"2BAD"},{"Typeface name":"Wingdings 3","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"11182","Unicode hex":"2BAE"},{"Typeface name":"Wingdings 3","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"11183","Unicode hex":"2BAF"},{"Typeface name":"Wingdings 3","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"129120","Unicode hex":"1F860"},{"Typeface name":"Wingdings 3","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"129122","Unicode hex":"1F862"},{"Typeface name":"Wingdings 3","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"129121","Unicode hex":"1F861"},{"Typeface name":"Wingdings 3","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"129123","Unicode hex":"1F863"},{"Typeface name":"Wingdings 3","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"129124","Unicode hex":"1F864"},{"Typeface name":"Wingdings 3","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"129125","Unicode hex":"1F865"},{"Typeface name":"Wingdings 3","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"129127","Unicode hex":"1F867"},{"Typeface name":"Wingdings 3","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"129126","Unicode hex":"1F866"},{"Typeface name":"Wingdings 3","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"129136","Unicode hex":"1F870"},{"Typeface name":"Wingdings 3","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"129138","Unicode hex":"1F872"},{"Typeface name":"Wingdings 3","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"129137","Unicode hex":"1F871"},{"Typeface name":"Wingdings 3","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"129139","Unicode hex":"1F873"},{"Typeface name":"Wingdings 3","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"129140","Unicode hex":"1F874"},{"Typeface name":"Wingdings 3","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"129141","Unicode hex":"1F875"},{"Typeface name":"Wingdings 3","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129143","Unicode hex":"1F877"},{"Typeface name":"Wingdings 3","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129142","Unicode hex":"1F876"},{"Typeface name":"Wingdings 3","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129152","Unicode hex":"1F880"},{"Typeface name":"Wingdings 3","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129154","Unicode hex":"1F882"},{"Typeface name":"Wingdings 3","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129153","Unicode hex":"1F881"},{"Typeface name":"Wingdings 3","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129155","Unicode hex":"1F883"},{"Typeface name":"Wingdings 3","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129156","Unicode hex":"1F884"},{"Typeface name":"Wingdings 3","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129157","Unicode hex":"1F885"},{"Typeface name":"Wingdings 3","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129159","Unicode hex":"1F887"},{"Typeface name":"Wingdings 3","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129158","Unicode hex":"1F886"},{"Typeface name":"Wingdings 3","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129168","Unicode hex":"1F890"},{"Typeface name":"Wingdings 3","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129170","Unicode hex":"1F892"},{"Typeface name":"Wingdings 3","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129169","Unicode hex":"1F891"},{"Typeface name":"Wingdings 3","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129171","Unicode hex":"1F893"},{"Typeface name":"Wingdings 3","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129172","Unicode hex":"1F894"},{"Typeface name":"Wingdings 3","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129174","Unicode hex":"1F896"},{"Typeface name":"Wingdings 3","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"129173","Unicode hex":"1F895"},{"Typeface name":"Wingdings 3","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"129175","Unicode hex":"1F897"}];return Dx.default=e,Dx}var wU;function abe(){if(wU)return xl;wU=1;var e=xl&&xl.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(xl,"__esModule",{value:!0}),xl.hex=xl.dec=xl.codePoint=void 0;for(var t=e(ibe()),n={},r=String.fromCodePoint?String.fromCodePoint:h,i=0,a=t.default;i<a.length;i++){var o=a[i],s=parseInt(o["Unicode dec"],10),l={codePoint:s,string:r(s)};n[o["Typeface name"].toUpperCase()+"_"+o["Dingbat dec"]]=l}function c(f,g){return n[f.toUpperCase()+"_"+g]}xl.codePoint=c;function u(f,g){return c(f,parseInt(g,10))}xl.dec=u;function d(f,g){return c(f,parseInt(g,16))}xl.hex=d;function h(f){if(f<=65535)return String.fromCharCode(f);var g=Math.floor((f-65536)/1024)+55296,y=(f-65536)%1024+56320;return String.fromCharCode(g,y)}return xl}var ku={},SU;function zq(){if(SU)return ku;SU=1;var e=ga;ku.paragraph=t,ku.run=n,ku._elements=i,ku._elementsOfType=r,ku.getDescendantsOfType=a,ku.getDescendants=o;function t(l){return r("paragraph",l)}function n(l){return r("run",l)}function r(l,c){return i(function(u){return u.type===l?c(u):u})}function i(l){return function c(u){if(u.children){var d=e.map(u.children,c);u=e.extend(u,{children:d})}return l(u)}}function a(l,c){return o(l).filter(function(u){return u.type===c})}function o(l){var c=[];return s(l,function(u){c.push(u)}),c}function s(l,c){l.children&&l.children.forEach(function(u){s(u,c),c(u)})}return ku}var Cx={},kU;function obe(){if(kU)return Cx;kU=1,Cx.uriToZipEntryName=e,Cx.replaceFragment=t;function e(n,r){return r.charAt(0)==="/"?r.substr(1):n+"/"+r}function t(n,r){var i=n.indexOf("#");return i!==-1&&(n=n.substring(0,i)),n+"#"+r}return Cx}var DU;function sbe(){if(DU)return kx;DU=1,kx.createBodyReader=l,kx._readNumberingProperties=u;var e=abe(),t=ga,n=th(),r=Yc().Result,i=Yc().warning,a=R3(),o=zq(),s=obe();function l(E){return{readXmlElement:function(T){return new c(E).readXmlElement(T)},readXmlElements:function(T){return new c(E).readXmlElements(T)}}}function c(E){var T=[],D=[],I=[],j=E.relationships,R=E.contentTypes,z=E.docxFile,B=E.files,W=E.numbering,P=E.styles;function Z(se){var Te=se.map(Q);return w(Te)}function Q(se){if(se.type==="element"){var Te=re[se.name];if(Te)return Te(se);if(!Object.prototype.hasOwnProperty.call(h,se.name)){var $=i("An unrecognised element was ignored: "+se.name);return f([$])}}return g()}function X(se){return xe(se).map(function(Te){return{type:"paragraphProperties",styleId:Te.styleId,styleName:Te.name,alignment:se.firstOrEmpty("w:jc").attributes["w:val"],numbering:u(Te.styleId,se.firstOrEmpty("w:numPr"),W),indent:q(se.firstOrEmpty("w:ind"))}})}function q(se){return{start:se.attributes["w:start"]||se.attributes["w:left"],end:se.attributes["w:end"]||se.attributes["w:right"],firstLine:se.attributes["w:firstLine"],hanging:se.attributes["w:hanging"]}}function te(se){return ge(se).map(function(Te){var $=se.firstOrEmpty("w:sz").attributes["w:val"],de=/^[0-9]+$/.test($)?parseInt($,10)/2:null;return{type:"runProperties",styleId:Te.styleId,styleName:Te.name,verticalAlignment:se.firstOrEmpty("w:vertAlign").attributes["w:val"],font:se.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:de,isBold:ee(se.first("w:b")),isUnderline:J(se.first("w:u")),isItalic:ee(se.first("w:i")),isStrikethrough:ee(se.first("w:strike")),isAllCaps:ee(se.first("w:caps")),isSmallCaps:ee(se.first("w:smallCaps")),highlight:G(se.firstOrEmpty("w:highlight").attributes["w:val"])}})}function J(se){if(se){var Te=se.attributes["w:val"];return Te!==void 0&&Te!=="false"&&Te!=="0"&&Te!=="none"}else return!1}function ee(se){if(se){var Te=se.attributes["w:val"];return Te!=="false"&&Te!=="0"}else return!1}function le(se){return se!=="false"&&se!=="0"}function G(se){return!se||se==="none"?null:se}function xe(se){return ce(se,"w:pStyle","Paragraph",P.findParagraphStyleById)}function ge(se){return ce(se,"w:rStyle","Run",P.findCharacterStyleById)}function ue(se){return ce(se,"w:tblStyle","Table",P.findTableStyleById)}function ce(se,Te,$,de){var F=[],De=se.first(Te),He=null,b=null;if(De&&(He=De.attributes["w:val"],He)){var ae=de(He);ae?b=ae.name:F.push(Ae($,He))}return v({styleId:He,name:b},F)}function ye(se){var Te=se.attributes["w:fldCharType"];if(Te==="begin")T.push({type:"begin",fldChar:se}),D=[];else if(Te==="end"){var $=T.pop();if($.type==="begin"&&($=Oe($)),$.type==="checkbox")return y(n.checkbox({checked:$.checked}))}else if(Te==="separate"){var de=T.pop(),F=Oe(de);T.push(F)}return g()}function Fe(){var se=t.last(T.filter(function(Te){return Te.type==="hyperlink"}));return se?se.options:null}function Oe(se){return Le(D.join(""),se.type==="begin"?se.fldChar:a.emptyElement)}function Le(se,Te){var $=/\s*HYPERLINK "(.*)"/.exec(se);if($)return{type:"hyperlink",options:{href:$[1]}};var de=/\s*HYPERLINK\s+\\l\s+"(.*)"/.exec(se);if(de)return{type:"hyperlink",options:{anchor:de[1]}};var F=/\s*FORMCHECKBOX\s*/.exec(se);if(F){var De=Te.firstOrEmpty("w:ffData").firstOrEmpty("w:checkBox"),He=De.first("w:checked"),b=He==null?ee(De.first("w:default")):ee(He);return{type:"checkbox",checked:b}}return{type:"unknown"}}function Re(se){return D.push(se.text()),g()}function We(se){var Te=se.attributes["w:font"],$=se.attributes["w:char"],de=e.hex(Te,$);return de==null&&/^F0..$/.test($)&&(de=e.hex(Te,$.substring(2))),de==null?f([i("A w:sym element with an unsupported character was ignored: char "+$+" in font "+Te)]):y(new n.Text(de.string))}function V(se){return function(Te){var $=Te.attributes["w:id"];return y(new n.NoteReference({noteType:se,noteId:$}))}}function ve(se){return y(n.commentReference({commentId:se.attributes["w:id"]}))}function oe(se){return Z(se.children)}var re={"w:p":function(se){var Te=se.firstOrEmpty("w:pPr"),$=!!Te.firstOrEmpty("w:rPr").first("w:del");if($)return se.children.forEach(function(F){I.push(F)}),g();var de=se.children;return I.length>0&&(de=I.concat(de),I=[]),A.map(X(Te),Z(de),function(F,De){return new n.Paragraph(De,F)}).insertExtra()},"w:r":function(se){return A.map(te(se.firstOrEmpty("w:rPr")),Z(se.children),function(Te,$){var de=Fe();return de!==null&&($=[new n.Hyperlink($,de)]),new n.Run($,Te)})},"w:fldChar":ye,"w:instrText":Re,"w:t":function(se){return y(new n.Text(se.text()))},"w:tab":function(se){return y(new n.Tab)},"w:noBreakHyphen":function(){return y(new n.Text("‑"))},"w:softHyphen":function(se){return y(new n.Text(""))},"w:sym":We,"w:hyperlink":function(se){var Te=se.attributes["r:id"],$=se.attributes["w:anchor"];return Z(se.children).map(function(de){function F(He){var b=se.attributes["w:tgtFrame"]||null;return new n.Hyperlink(de,t.extend({targetFrame:b},He))}if(Te){var De=j.findTargetByRelationshipId(Te);return $&&(De=s.replaceFragment(De,$)),F({href:De})}else return $?F({anchor:$}):de})},"w:tbl":ne,"w:tr":Ue,"w:tc":Me,"w:footnoteReference":V("footnote"),"w:endnoteReference":V("endnote"),"w:commentReference":ve,"w:br":function(se){var Te=se.attributes["w:type"];return Te==null||Te==="textWrapping"?y(n.lineBreak):Te==="page"?y(n.pageBreak):Te==="column"?y(n.columnBreak):f([i("Unsupported break type: "+Te)])},"w:bookmarkStart":function(se){var Te=se.attributes["w:name"];return Te==="_GoBack"?g():y(new n.BookmarkStart({name:Te}))},"mc:AlternateContent":function(se){return oe(se.firstOrEmpty("mc:Fallback"))},"w:sdt":function(se){var Te=Z(se.firstOrEmpty("w:sdtContent").children);return Te.map(function($){var de=se.firstOrEmpty("w:sdtPr").first("wordml:checkbox");if(de){var F=de.first("wordml:checked"),De=!!F&&le(F.attributes["wordml:val"]),He=n.checkbox({checked:De}),b=!1,ae=$.map(o._elementsOfType(n.types.text,function(M){return M.value.length>0&&!b?(b=!0,He):M}));return b?ae:He}else return $})},"w:ins":oe,"w:object":oe,"w:smartTag":oe,"w:drawing":oe,"w:pict":function(se){return oe(se).toExtra()},"v:roundrect":oe,"v:shape":oe,"v:textbox":oe,"w:txbxContent":oe,"wp:inline":pe,"wp:anchor":pe,"v:imagedata":it,"v:group":oe,"v:rect":oe};return{readXmlElement:Q,readXmlElements:Z};function ne(se){var Te=be(se.firstOrEmpty("w:tblPr"));return Z(se.children).flatMap(Se).flatMap(function($){return Te.map(function(de){return n.Table($,de)})})}function be(se){return ue(se).map(function(Te){return{styleId:Te.styleId,styleName:Te.name}})}function Ue(se){var Te=se.firstOrEmpty("w:trPr"),$=!!Te.first("w:del");if($)return g();var de=!!Te.first("w:tblHeader");return Z(se.children).map(function(F){return n.TableRow(F,{isHeader:de})})}function Me(se){return Z(se.children).map(function(Te){var $=se.firstOrEmpty("w:tcPr"),de=$.firstOrEmpty("w:gridSpan").attributes["w:val"],F=de?parseInt(de,10):1,De=n.TableCell(Te,{colSpan:F});return De._vMerge=Ee($),De})}function Ee(se){var Te=se.first("w:vMerge");if(Te){var $=Te.attributes["w:val"];return $==="continue"||!$}else return null}function Se(se){var Te=t.any(se,function(F){return F.type!==n.types.tableRow});if(Te)return Ce(se),v(se,[i("unexpected non-row element in table, cell merging may be incorrect")]);var $=t.any(se,function(F){return t.any(F.children,function(De){return De.type!==n.types.tableCell})});if($)return Ce(se),v(se,[i("unexpected non-cell element in table row, cell merging may be incorrect")]);var de={};return se.forEach(function(F){var De=0;F.children.forEach(function(He){He._vMerge&&de[De]?de[De].rowSpan++:(de[De]=He,He._vMerge=!1),De+=He.colSpan})}),se.forEach(function(F){F.children=F.children.filter(function(De){return!De._vMerge}),F.children.forEach(function(De){delete De._vMerge})}),y(se)}function Ce(se){se.forEach(function(Te){var $=o.getDescendantsOfType(Te,n.types.tableCell);$.forEach(function(de){delete de._vMerge})})}function pe(se){var Te=se.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return w(Te.map(ke.bind(null,se)))}function ke(se,Te){var $=se.first("wp:docPr").attributes,de=Ve($.descr)?$.title:$.descr,F=Xe(Te);return F===null?f([i("Could not find image file for a:blip element")]):U(F,de)}function Ve(se){return se==null||/^\s*$/.test(se)}function Xe(se){var Te=se.attributes["r:embed"],$=se.attributes["r:link"];if(Te)return et(Te);if($){var de=j.findTargetByRelationshipId($);return{path:de,read:B.read.bind(B,de)}}else return null}function it(se){var Te=se.attributes["r:id"];return Te?U(et(Te),se.attributes["o:title"]):f([i("A v:imagedata element without a relationship ID was ignored")])}function et(se){var Te=s.uriToZipEntryName("word",j.findTargetByRelationshipId(se));return{path:Te,read:z.read.bind(z,Te)}}function U(se,Te){var $=R.findContentType(se.path),de=n.Image({readImage:se.read,altText:Te,contentType:$}),F=d[$]?[]:i("Image of type "+$+" is unlikely to display in web browsers");return v(de,F)}function Ae(se,Te){return i(se+" style with ID "+Te+" was referenced but not defined in the document")}}function u(E,T,D){var I=T.firstOrEmpty("w:ilvl").attributes["w:val"],j=T.firstOrEmpty("w:numId").attributes["w:val"];if(I!==void 0&&j!==void 0)return D.findLevel(j,I);if(E!=null){var R=D.findLevelByParagraphStyleId(E);if(R!=null)return R}return j!==void 0?D.findLevel(j,"0"):null}var d={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},h={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function f(E){return new A(null,null,E)}function g(){return new A(null)}function y(E){return new A(E)}function v(E,T){return new A(E,null,T)}function A(E,T,D){this.value=E||[],this.extra=T||[],this._result=new r({element:this.value,extra:T},D),this.messages=this._result.messages}A.prototype.toExtra=function(){return new A(null,S(this.extra,this.value),this.messages)},A.prototype.insertExtra=function(){var E=this.extra;return E&&E.length?new A(S(this.value,E),null,this.messages):this},A.prototype.map=function(E){var T=this._result.map(function(D){return E(D.element)});return new A(T.value,this.extra,T.messages)},A.prototype.flatMap=function(E){var T=this._result.flatMap(function(D){return E(D.element)._result});return new A(T.value.element,S(this.extra,T.value.extra),T.messages)},A.map=function(E,T,D){return new A(D(E.value,T.value),S(E.extra,T.extra),E.messages.concat(T.messages))};function w(E){var T=r.combine(t.pluck(E,"_result"));return new A(t.flatten(t.pluck(T.value,"element")),t.filter(t.flatten(t.pluck(T.value,"extra")),_),T.messages)}function S(E,T){return t.flatten([E,T])}function _(E){return E}return kx}var gD={},CU;function lbe(){if(CU)return gD;CU=1,gD.DocumentXmlReader=n;var e=th(),t=Yc().Result;function n(r){var i=r.bodyReader;function a(o){var s=o.first("w:body");if(s==null)throw new Error("Could not find the body element: are you sure this is a docx file?");var l=i.readXmlElements(s.children).map(function(c){return new e.Document(c,{notes:r.notes,comments:r.comments})});return new t(l.value,l.messages)}return{convertXmlToDocument:a}}return gD}var vm={},TU;function cbe(){if(TU)return vm;TU=1,vm.readRelationships=e,vm.defaultValue=new t([]),vm.Relationships=t;function e(n){var r=[];return n.children.forEach(function(i){if(i.name==="relationships:Relationship"){var a={relationshipId:i.attributes.Id,target:i.attributes.Target,type:i.attributes.Type};r.push(a)}}),new t(r)}function t(n){var r={};n.forEach(function(a){r[a.relationshipId]=a.target});var i={};return n.forEach(function(a){i[a.type]||(i[a.type]=[]),i[a.type].push(a.target)}),{findTargetByRelationshipId:function(a){return r[a]},findTargetsByType:function(a){return i[a]||[]}}}return vm}var Tx={},_U;function ube(){if(_U)return Tx;_U=1,Tx.readContentTypesFromXml=t;var e={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};Tx.defaultContentTypes=n({},{});function t(r){var i={},a={};return r.children.forEach(function(o){if(o.name==="content-types:Default"&&(i[o.attributes.Extension]=o.attributes.ContentType),o.name==="content-types:Override"){var s=o.attributes.PartName;s.charAt(0)==="/"&&(s=s.substring(1)),a[s]=o.attributes.ContentType}}),n(a,i)}function n(r,i){return{findContentType:function(a){var o=r[a];if(o)return o;var s=a.split("."),l=s[s.length-1];if(i.hasOwnProperty(l))return i[l];var c=e[l.toLowerCase()];return c?"image/"+c:null}}}return Tx}var xm={},EU;function dbe(){if(EU)return xm;EU=1;var e=ga;xm.readNumberingXml=n,xm.Numbering=t,xm.defaultNumbering=new t({},{});function t(o,s,l){var c=e.flatten(e.values(s).map(function(f){return e.values(f.levels)})),u=e.indexBy(c.filter(function(f){return f.paragraphStyleId!=null}),"paragraphStyleId");function d(f,g){var y=o[f];if(y){var v=s[y.abstractNumId];if(v){if(v.numStyleLink==null)return s[y.abstractNumId].levels[g];var A=l.findNumberingStyleById(v.numStyleLink);return d(A.numId,g)}else return null}else return null}function h(f){return u[f]||null}return{findLevel:d,findLevelByParagraphStyleId:h}}function n(o,s){if(!s||!s.styles)throw new Error("styles is missing");var l=r(o),c=a(o);return new t(c,l,s.styles)}function r(o){var s={};return o.getElementsByTagName("w:abstractNum").forEach(function(l){var c=l.attributes["w:abstractNumId"];s[c]=i(l)}),s}function i(o){var s={},l=null;o.getElementsByTagName("w:lvl").forEach(function(u){var d=u.attributes["w:ilvl"],h=u.firstOrEmpty("w:numFmt").attributes["w:val"],f=h!=="bullet",g=u.firstOrEmpty("w:pStyle").attributes["w:val"];d===void 0?l={isOrdered:f,level:"0",paragraphStyleId:g}:s[d]={isOrdered:f,level:d,paragraphStyleId:g}}),l!==null&&s[l.level]===void 0&&(s[l.level]=l);var c=o.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:s,numStyleLink:c}}function a(o){var s={};return o.getElementsByTagName("w:num").forEach(function(l){var c=l.attributes["w:numId"],u=l.first("w:abstractNumId").attributes["w:val"];s[c]={abstractNumId:u}}),s}return xm}var bm={},NU;function fbe(){if(NU)return bm;NU=1,bm.readStylesXml=t,bm.Styles=e,bm.defaultStyles=new e({},{});function e(o,s,l,c){return{findParagraphStyleById:function(u){return o[u]},findCharacterStyleById:function(u){return s[u]},findTableStyleById:function(u){return l[u]},findNumberingStyleById:function(u){return c[u]}}}e.EMPTY=new e({},{},{},{});function t(o){var s={},l={},c={},u={},d={paragraph:s,character:l,table:c,numbering:u};return o.getElementsByTagName("w:style").forEach(function(h){var f=n(h),g=d[f.type];g&&g[f.styleId]===void 0&&(g[f.styleId]=f)}),new e(s,l,c,u)}function n(o){var s=o.attributes["w:type"];if(s==="numbering")return i(s,o);var l=a(o),c=r(o);return{type:s,styleId:l,name:c}}function r(o){var s=o.first("w:name");return s?s.attributes["w:val"]:null}function i(o,s){var l=a(s),c=s.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{type:o,numId:c,styleId:l}}function a(o){return o.attributes["w:styleId"]}return bm}var Vh={},FU;function hbe(){if(FU)return Vh;FU=1;var e=th(),t=Yc().Result;Vh.createFootnotesReader=n.bind(Vh,"footnote"),Vh.createEndnotesReader=n.bind(Vh,"endnote");function n(r,i){function a(l){return t.combine(l.getElementsByTagName("w:"+r).filter(o).map(s))}function o(l){var c=l.attributes["w:type"];return c!=="continuationSeparator"&&c!=="separator"}function s(l){var c=l.attributes["w:id"];return i.readXmlElements(l.children).map(function(u){return e.Note({noteType:r,noteId:c,body:u})})}return a}return Vh}var mD={},RU;function pbe(){if(RU)return mD;RU=1;var e=th(),t=Yc().Result;function n(r){function i(o){return t.combine(o.getElementsByTagName("w:comment").map(a))}function a(o){var s=o.attributes["w:id"];function l(c){return(o.attributes[c]||"").trim()||null}return r.readXmlElements(o.children).map(function(c){return e.comment({commentId:s,body:c,authorName:l("w:author"),authorInitials:l("w:initials")})})}return i}return mD.createCommentsReader=n,mD}var yD={},PU;function gbe(){if(PU)return yD;PU=1;var e=Ad();yD.Files=t;function t(){function n(r){return e.reject(new Error("could not open external image: '"+r+`'-cannot open linked files from a web browser`))}return{read:n}}return yD}var IU;function mbe(){if(IU)return yx;IU=1,yx.read=g,yx._findPartPaths=y;var e=Ad(),t=th(),n=Yc().Result,r=Uq(),i=rbe().readXmlFromZipFile,a=sbe().createBodyReader,o=lbe().DocumentXmlReader,s=cbe(),l=ube(),c=dbe(),u=fbe(),d=hbe(),h=pbe(),f=gbe().Files;function g(j,R,z){R=R||{},z=z||{};var B=new f({externalFileAccess:z.externalFileAccess,relativeToFile:R.path});return e.props({contentTypes:E(j),partPaths:y(j),docxFile:j,files:B}).also(function(W){return{styles:D(j,W.partPaths.styles)}}).also(function(W){return{numbering:T(j,W.partPaths.numbering,W.styles)}}).also(function(W){return{footnotes:S(W.partPaths.footnotes,W,function(P,Z){return Z?d.createFootnotesReader(P)(Z):new n([])}),endnotes:S(W.partPaths.endnotes,W,function(P,Z){return Z?d.createEndnotesReader(P)(Z):new n([])}),comments:S(W.partPaths.comments,W,function(P,Z){return Z?h.createCommentsReader(P)(Z):new n([])})}}).also(function(W){return{notes:W.footnotes.flatMap(function(P){return W.endnotes.map(function(Z){return new t.Notes(P.concat(Z))})})}}).then(function(W){return S(W.partPaths.mainDocument,W,function(P,Z){return W.notes.flatMap(function(Q){return W.comments.flatMap(function(X){var q=new o({bodyReader:P,notes:Q,comments:X});return q.convertXmlToDocument(Z)})})})})}function y(j){return I(j).then(function(R){var z=v({docxFile:j,relationships:R,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!j.exists(z))throw new Error("Could not find main document part. Are you sure this is a valid .docx file?");return w({filename:_(z),readElement:s.readRelationships,defaultValue:s.defaultValue})(j).then(function(B){function W(P){return v({docxFile:j,relationships:B,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+P,basePath:r.splitPath(z).dirname,fallbackPath:"word/"+P+".xml"})}return{mainDocument:z,comments:W("comments"),endnotes:W("endnotes"),footnotes:W("footnotes"),numbering:W("numbering"),styles:W("styles")}})})}function v(j){var R=j.docxFile,z=j.relationships,B=j.relationshipType,W=j.basePath,P=j.fallbackPath,Z=z.findTargetsByType(B),Q=Z.map(function(q){return A(r.joinPath(W,q),"/")}),X=Q.filter(function(q){return R.exists(q)});return X.length===0?P:X[0]}function A(j,R){return j.substring(0,R.length)===R?j.substring(R.length):j}function w(j){return function(R){return i(R,j.filename).then(function(z){return z?j.readElement(z):j.defaultValue})}}function S(j,R,z){var B=w({filename:_(j),readElement:s.readRelationships,defaultValue:s.defaultValue});return B(R.docxFile).then(function(W){var P=new a({relationships:W,contentTypes:R.contentTypes,docxFile:R.docxFile,numbering:R.numbering,styles:R.styles,files:R.files});return i(R.docxFile,j).then(function(Z){return z(P,Z)})})}function _(j){var R=r.splitPath(j);return r.joinPath(R.dirname,"_rels",R.basename+".rels")}var E=w({filename:"[Content_Types].xml",readElement:l.readContentTypesFromXml,defaultValue:l.defaultContentTypes});function T(j,R,z){return w({filename:R,readElement:function(B){return c.readNumberingXml(B,{styles:z})},defaultValue:c.defaultNumbering})(j)}function D(j,R){return w({filename:R,readElement:u.readStylesXml,defaultValue:u.defaultStyles})(j)}var I=w({filename:"_rels/.rels",readElement:s.readRelationships,defaultValue:s.defaultValue});return yx}var _x={},MU;function ybe(){if(MU)return _x;MU=1;var e=ga,t=Ad(),n=R3();_x.writeStyleMap=o,_x.readStyleMap=u;var r="http://schemas.zwobble.org/mammoth/style-map",i="mammoth/style-map",a="/"+i;function o(d,h){return d.write(i,h),s(d).then(function(){return l(d)})}function s(d){var h="word/_rels/document.xml.rels",f="http://schemas.openxmlformats.org/package/2006/relationships",g="{"+f+"}Relationship";return d.read(h,"utf8").then(n.readString).then(function(y){var v=y.children;c(v,g,"Id",{Id:"rMammothStyleMap",Type:r,Target:a});var A={"":f};return d.write(h,n.writeString(y,A))})}function l(d){var h="[Content_Types].xml",f="http://schemas.openxmlformats.org/package/2006/content-types",g="{"+f+"}Override";return d.read(h,"utf8").then(n.readString).then(function(y){var v=y.children;c(v,g,"PartName",{PartName:a,ContentType:"text/prs.mammoth.style-map"});var A={"":f};return d.write(h,n.writeString(y,A))})}function c(d,h,f,g){var y=e.find(d,function(v){return v.name===h&&v.attributes[f]===g[f]});y?y.attributes=g:d.push(n.element(h,g))}function u(d){return d.exists(i)?d.read(i,"utf8"):t.resolve(null)}return _x}var Ex={},tf={},Nc={},Du={},UU;function Wq(){if(UU)return Du;UU=1;var e=Cw();function t(l,c,u){return r(e.element(l,c,{fresh:!1}),u)}function n(l,c,u){var d=e.element(l,c,{fresh:!0});return r(d,u)}function r(l,c){return{type:"element",tag:l,children:c||[]}}function i(l){return{type:"text",value:l}}var a={type:"forceWrite"};Du.freshElement=n,Du.nonFreshElement=t,Du.elementWithTag=r,Du.text=i,Du.forceWrite=a;var o={br:!0,hr:!0,img:!0,input:!0};function s(l){return l.children.length===0&&o[l.tag.tagName]}return Du.isVoidElement=s,Du}var vD,LU;function vbe(){if(LU)return vD;LU=1;var e=ga,t=Wq();function n(y){return r(c(y))}function r(y){var v=[];return y.map(i).forEach(function(A){l(v,A)}),v}function i(y){return a[y.type](y)}var a={element:o,text:s,forceWrite:s};function o(y){return t.elementWithTag(y.tag,r(y.children))}function s(y){return y}function l(y,v){var A=y[y.length-1];v.type==="element"&&!v.tag.fresh&&A&&A.type==="element"&&v.tag.matchesElement(A.tag)?(v.tag.separator&&l(A.children,t.text(v.tag.separator)),v.children.forEach(function(w){l(A.children,w)})):y.push(v)}function c(y){return u(y,function(v){return d[v.type](v)})}function u(y,v){return e.flatten(e.map(y,v),!0)}var d={element:f,text:g,forceWrite:h};function h(y){return[y]}function f(y){var v=c(y.children);return v.length===0&&!t.isVoidElement(y)?[]:[t.elementWithTag(y.tag,v)]}function g(y){return y.value.length===0?[]:[y]}return vD=n,vD}var OU;function Dw(){if(OU)return Nc;OU=1;var e=Wq();Nc.freshElement=e.freshElement,Nc.nonFreshElement=e.nonFreshElement,Nc.elementWithTag=e.elementWithTag,Nc.text=e.text,Nc.forceWrite=e.forceWrite,Nc.simplify=vbe();function t(o,s){s.forEach(function(l){n(o,l)})}function n(o,s){r[s.type](o,s)}var r={element:i,text:a,forceWrite:function(){}};function i(o,s){e.isVoidElement(s)?o.selfClosing(s.tag.tagName,s.tag.attributes):(o.open(s.tag.tagName,s.tag.attributes),t(o,s.children),o.close(s.tag.tagName))}function a(o,s){o.text(s.value)}return Nc.write=t,Nc}var jU;function Cw(){if(jU)return tf;jU=1;var e=ga,t=Dw();tf.topLevelElement=n,tf.elements=r,tf.element=a;function n(s,l){return r([a(s,l,{fresh:!0})])}function r(s){return new i(s.map(function(l){return e.isString(l)?a(l):l}))}function i(s){this._elements=s}i.prototype.wrap=function(l){for(var c=l(),u=this._elements.length-1;u>=0;u--)c=this._elements[u].wrapNodes(c);return c};function a(s,l,c){return c=c||{},new o(s,l,c)}function o(s,l,c){var u={};e.isArray(s)?(s.forEach(function(d){u[d]=!0}),s=s[0]):u[s]=!0,this.tagName=s,this.tagNames=u,this.attributes=l||{},this.fresh=c.fresh,this.separator=c.separator}return o.prototype.matchesElement=function(s){return this.tagNames[s.tagName]&&e.isEqual(this.attributes||{},s.attributes||{})},o.prototype.wrap=function(l){return this.wrapNodes(l())},o.prototype.wrapNodes=function(l){return[t.elementWithTag(this,l)]},tf.empty=r([]),tf.ignore={wrap:function(){return[]}},tf}var xD={},BU;function Vq(){return BU||(BU=1,(function(e){var t=ga,n=Ad(),r=Dw();e.imgElement=i;function i(a){return function(o,s){return n.when(a(o)).then(function(l){var c={};return o.altText&&(c.alt=o.altText),t.extend(c,l),[r.freshElement("img",c)]})}}e.inline=e.imgElement,e.dataUri=i(function(a){return a.readAsBase64String().then(function(o){return{src:"data:"+a.contentType+";base64,"+o}})})})(xD)),xD}var bD={},AD={},zU;function xbe(){if(zU)return AD;zU=1;var e=ga;AD.writer=t;function t(s){return s=s||{},s.prettyPrint?r():i()}var n={div:!0,p:!0,ul:!0,li:!0};function r(){var s=0,l=" ",c=[],u=!0,d=!1,h=i();function f(E,T){n[E]&&S(),c.push(E),h.open(E,T),n[E]&&s++,u=!1}function g(E){n[E]&&(s--,S()),c.pop(),h.close(E)}function y(E){w();var T=_()?E:E.replace(`-`,`-`+l);h.text(T)}function v(E,T){S(),h.selfClosing(E,T)}function A(){return c.length===0||n[c[c.length-1]]}function w(){d||(S(),d=!0)}function S(){if(d=!1,!u&&A()&&!_()){h._append(`-`);for(var E=0;E<s;E++)h._append(l)}}function _(){return e.some(c,function(E){return E==="pre"})}return{asString:h.asString,open:f,close:g,text:y,selfClosing:v}}function i(){var s=[];function l(y,v){var A=d(v);s.push("<"+y+A+">")}function c(y){s.push("</"+y+">")}function u(y,v){var A=d(v);s.push("<"+y+A+" />")}function d(y){return e.map(y,function(v,A){return" "+A+'="'+o(v)+'"'}).join("")}function h(y){s.push(a(y))}function f(y){s.push(y)}function g(){return s.join("")}return{asString:g,open:l,close:c,text:h,selfClosing:u,_append:f}}function a(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function o(s){return s.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}return AD}var wD={},WU;function bbe(){if(WU)return wD;WU=1;var e=ga;function t(d){return n(d,d)}function n(d,h){return function(){return{start:d,end:h}}}function r(d){var h=d.href||"";return h?{start:"[",end:"]("+h+")",anchorPosition:"before"}:{}}function i(d){var h=d.src||"",f=d.alt||"";return h||f?{start:""}:{}}function a(d){return function(h,f){return{start:f?`-`:"",end:f?"":`-`,list:{isOrdered:d.isOrdered,indent:f?f.indent+1:0,count:0}}}}function o(d,h,f){h=h||{indent:0,isOrdered:!1,count:0},h.count++,f.hasClosed=!1;var g=h.isOrdered?h.count+".":"-",y=l(" ",h.indent)+g+" ";return{start:y,end:function(){if(!f.hasClosed)return f.hasClosed=!0,`-`}}}var s={p:n("",`--`),br:n("",`-`),ul:a({isOrdered:!1}),ol:a({isOrdered:!0}),li:o,strong:t("__"),em:t("*"),a:r,img:i};(function(){for(var d=1;d<=6;d++)s["h"+d]=n(l("#",d)+" ",`--`)})();function l(d,h){return new Array(h+1).join(d)}function c(){var d=[],h=[],f=null,g={};function y(E,T){T=T||{};var D=s[E]||function(){return{}},I=D(T,f,g);h.push({end:I.end,list:f}),I.list&&(f=I.list);var j=I.anchorPosition==="before";j&&v(T),d.push(I.start||""),j||v(T)}function v(E){E.id&&d.push('<a id="'+E.id+'"></a>')}function A(E){var T=h.pop();f=T.list;var D=e.isFunction(T.end)?T.end():T.end;d.push(D||"")}function w(E,T){y(E,T),A()}function S(E){d.push(u(E))}function _(){return d.join("")}return{asString:_,open:y,close:A,text:S,selfClosing:w}}wD.writer=c;function u(d){return d.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}return wD}var VU;function Abe(){if(VU)return bD;VU=1;var e=xbe(),t=bbe();bD.writer=n;function n(r){return r=r||{},r.outputFormat==="markdown"?t.writer():e.writer(r)}return bD}var GU;function wbe(){if(GU)return Ex;GU=1;var e=ga,t=Ad(),n=th(),r=Cw(),i=Yc(),a=Vq(),o=Dw(),s=Abe();Ex.DocumentConverter=l;function l(v){return{convertToHtml:function(A){var w=e.indexBy(A.type===n.types.document?A.comments:[],"commentId"),S=new c(v,w);return S.convertToHtml(A)}}}function c(v,A){var w=1,S=[],_=[];v=e.extend({ignoreEmptyParagraphs:!0},v);var E=v.idPrefix===void 0?"":v.idPrefix,T=v.ignoreEmptyParagraphs,D=r.topLevelElement("p"),I=v.styleMap||[];function j(V){var ve=[],oe=z(V,ve,{}),re=[];g(oe,function(be){be.type==="deferred"&&re.push(be)});var ne={};return t.mapSeries(re,function(be){return be.value().then(function(Ue){ne[be.id]=Ue})}).then(function(){function be(Me){return f(Me,function(Ee){return Ee.type==="deferred"?ne[Ee.id]:Ee.children?[e.extend({},Ee,{children:be(Ee.children)})]:[Ee]})}var Ue=s.writer({prettyPrint:v.prettyPrint,outputFormat:v.outputFormat});return o.write(Ue,o.simplify(be(oe))),new i.Result(Ue.asString(),ve)})}function R(V,ve,oe){return f(V,function(re){return z(re,ve,oe)})}function z(V,ve,oe){if(!oe)throw new Error("options not set");var re=We[V.type];return re?re(V,ve,oe):[]}function B(V,ve,oe){return W(V,ve).wrap(function(){var re=R(V.children,ve,oe);return T?re:[o.forceWrite].concat(re)})}function W(V,ve){var oe=X(V);return oe?oe.to:(V.styleId&&ve.push(h("paragraph",V)),D)}function P(V,ve,oe){var re=function(){return R(V.children,ve,oe)},ne=[];if(V.highlight!==null){var be=Q({type:"highlight",color:V.highlight});be&&ne.push(be)}V.isSmallCaps&&ne.push(Z("smallCaps")),V.isAllCaps&&ne.push(Z("allCaps")),V.isStrikethrough&&ne.push(Z("strikethrough","s")),V.isUnderline&&ne.push(Z("underline")),V.verticalAlignment===n.verticalAlignment.subscript&&ne.push(r.element("sub",{},{fresh:!1})),V.verticalAlignment===n.verticalAlignment.superscript&&ne.push(r.element("sup",{},{fresh:!1})),V.isItalic&&ne.push(Z("italic","em")),V.isBold&&ne.push(Z("bold","strong"));var Ue=r.empty,Me=X(V);return Me?Ue=Me.to:V.styleId&&ve.push(h("run",V)),ne.push(Ue),ne.forEach(function(Ee){re=Ee.wrap.bind(Ee,re)}),re()}function Z(V,ve){var oe=Q({type:V});return oe||(ve?r.element(ve,{},{fresh:!1}):r.empty)}function Q(V,ve){var oe=X(V);return oe?oe.to:ve}function X(V){for(var ve=0;ve<I.length;ve++)if(I[ve].from.matches(V))return I[ve]}function q(V){return function(ve,oe){return t.attempt(function(){return V(ve,oe)}).caught(function(re){return oe.push(i.error(re)),[]})}}function te(V){return ee(V.noteType,V.noteId)}function J(V){return le(V.noteType,V.noteId)}function ee(V,ve){return G(V+"-"+ve)}function le(V,ve){return G(V+"-ref-"+ve)}function G(V){return E+V}var xe=r.elements([r.element("table",{},{fresh:!0})]);function ge(V,ve,oe){return Q(V,xe).wrap(function(){return ue(V,ve,oe)})}function ue(V,ve,oe){var re=e.findIndex(V.children,function(Me){return!Me.type===n.types.tableRow||!Me.isHeader});re===-1&&(re=V.children.length);var ne;if(re===0)ne=R(V.children,ve,e.extend({},oe,{isTableHeader:!1}));else{var be=R(V.children.slice(0,re),ve,e.extend({},oe,{isTableHeader:!0})),Ue=R(V.children.slice(re),ve,e.extend({},oe,{isTableHeader:!1}));ne=[o.freshElement("thead",{},be),o.freshElement("tbody",{},Ue)]}return[o.forceWrite].concat(ne)}function ce(V,ve,oe){var re=R(V.children,ve,oe);return[o.freshElement("tr",{},[o.forceWrite].concat(re))]}function ye(V,ve,oe){var re=oe.isTableHeader?"th":"td",ne=R(V.children,ve,oe),be={};return V.colSpan!==1&&(be.colspan=V.colSpan.toString()),V.rowSpan!==1&&(be.rowspan=V.rowSpan.toString()),[o.freshElement(re,be,[o.forceWrite].concat(ne))]}function Fe(V,ve,oe){return Q(V,r.ignore).wrap(function(){var re=A[V.commentId],ne=_.length+1,be="["+y(re)+ne+"]";return _.push({label:be,comment:re}),[o.freshElement("a",{href:"#"+ee("comment",V.commentId),id:le("comment",V.commentId)},[o.text(be)])]})}function Oe(V,ve,oe){var re=V.label,ne=V.comment,be=R(ne.body,ve,oe).concat([o.nonFreshElement("p",{},[o.text(" "),o.freshElement("a",{href:"#"+le("comment",ne.commentId)},[o.text("↑")])])]);return[o.freshElement("dt",{id:ee("comment",ne.commentId)},[o.text("Comment "+re)]),o.freshElement("dd",{},be)]}function Le(V,ve,oe){return Re(V).wrap(function(){return[]})}function Re(V){var ve=X(V);return ve?ve.to:V.breakType==="line"?r.topLevelElement("br"):r.empty}var We={document:function(V,ve,oe){var re=R(V.children,ve,oe),ne=S.map(function(Ue){return V.notes.resolve(Ue)}),be=R(ne,ve,oe);return re.concat([o.freshElement("ol",{},be),o.freshElement("dl",{},f(_,function(Ue){return Oe(Ue,ve,oe)}))])},paragraph:B,run:P,text:function(V,ve,oe){return[o.text(V.value)]},tab:function(V,ve,oe){return[o.text(" ")]},hyperlink:function(V,ve,oe){var re=V.anchor?"#"+G(V.anchor):V.href,ne={href:re};V.targetFrame!=null&&(ne.target=V.targetFrame);var be=R(V.children,ve,oe);return[o.nonFreshElement("a",ne,be)]},checkbox:function(V){var ve={type:"checkbox"};return V.checked&&(ve.checked="checked"),[o.freshElement("input",ve)]},bookmarkStart:function(V,ve,oe){var re=o.freshElement("a",{id:G(V.name)},[o.forceWrite]);return[re]},noteReference:function(V,ve,oe){S.push(V);var re=o.freshElement("a",{href:"#"+te(V),id:J(V)},[o.text("["+w+++"]")]);return[o.freshElement("sup",{},[re])]},note:function(V,ve,oe){var re=R(V.body,ve,oe),ne=o.elementWithTag(r.element("p",{},{fresh:!1}),[o.text(" "),o.freshElement("a",{href:"#"+J(V)},[o.text("↑")])]),be=re.concat([ne]);return o.freshElement("li",{id:te(V)},be)},commentReference:Fe,comment:Oe,image:d(q(v.convertImage||a.dataUri)),table:ge,tableRow:ce,tableCell:ye,break:Le};return{convertToHtml:j}}var u=1;function d(v){return function(A,w,S){return[{type:"deferred",id:u++,value:function(){return v(A,w,S)}}]}}function h(v,A){return i.warning("Unrecognised "+v+" style: '"+A.styleName+"' (Style ID: "+A.styleId+")")}function f(v,A){return e.flatten(v.map(A),!0)}function g(v,A){v.forEach(function(w){A(w),w.children&&g(w.children,A)})}var y=Ex.commentAuthorLabel=function(A){return A.authorInitials||""};return Ex}var SD={},qU;function Sbe(){if(qU)return SD;qU=1;var e=th();function t(n){if(n.type==="text")return n.value;if(n.type===e.types.tab)return" ";var r=n.type==="paragraph"?`--`:"";return(n.children||[]).map(t).join("")+r}return SD.convertElementToRawText=t,SD}var Am={},bl={},kD={},DD={exports:{}},HU;function kbe(){if(HU)return DD.exports;HU=1;var e=DD.exports=function(t,n){this._tokens=t,this._startIndex=n||0};return e.prototype.head=function(){return this._tokens[this._startIndex]},e.prototype.tail=function(t){return new e(this._tokens,this._startIndex+1)},e.prototype.toArray=function(){return this._tokens.slice(this._startIndex)},e.prototype.end=function(){return this._tokens[this._tokens.length-1]},e.prototype.to=function(t){var n=this.head().source,r=t.head()||t.end();return n.to(r.source)},DD.exports}var XU;function Dbe(){if(XU)return kD;XU=1;var e=kbe();return kD.Parser=function(t){var n=function(r,i){return r(new e(i))};return{parseTokens:n}},kD}var CD={},TD={},ZU;function Cbe(){return ZU||(ZU=1,(function(e){e.none=Object.create({value:function(){throw new Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return e.none},flatMap:function(){return e.none},filter:function(){return e.none},toArray:function(){return[]},orElse:t,valueOrElse:t});function t(r){return typeof r=="function"?r():r}e.some=function(r){return new n(r)};var n=function(r){this._value=r};n.prototype.value=function(){return this._value},n.prototype.isNone=function(){return!1},n.prototype.isSome=function(){return!0},n.prototype.map=function(r){return new n(r(this._value))},n.prototype.flatMap=function(r){return r(this._value)},n.prototype.filter=function(r){return r(this._value)?this:e.none},n.prototype.toArray=function(){return[this._value]},n.prototype.orElse=function(r){return this},n.prototype.valueOrElse=function(r){return this._value},e.isOption=function(r){return r===e.none||r instanceof n},e.fromNullable=function(r){return r==null?e.none:new n(r)}})(TD)),TD}var _D,KU;function P3(){if(KU)return _D;KU=1,_D={failure:function(t,n){if(t.length<1)throw new Error("Failure must have errors");return new e({status:"failure",remaining:n,errors:t})},error:function(t,n){if(t.length<1)throw new Error("Failure must have errors");return new e({status:"error",remaining:n,errors:t})},success:function(t,n,r){return new e({status:"success",value:t,source:r,remaining:n,errors:[]})},cut:function(t){return new e({status:"cut",remaining:t,errors:[]})}};var e=function(t){this._value=t.value,this._status=t.status,this._hasValue=t.value!==void 0,this._remaining=t.remaining,this._source=t.source,this._errors=t.errors};return e.prototype.map=function(t){return this._hasValue?new e({value:t(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors}):this},e.prototype.changeRemaining=function(t){return new e({value:this._value,status:this._status,remaining:t,source:this._source,errors:this._errors})},e.prototype.isSuccess=function(){return this._status==="success"||this._status==="cut"},e.prototype.isFailure=function(){return this._status==="failure"},e.prototype.isError=function(){return this._status==="error"},e.prototype.isCut=function(){return this._status==="cut"},e.prototype.value=function(){return this._value},e.prototype.remaining=function(){return this._remaining},e.prototype.source=function(){return this._source},e.prototype.errors=function(){return this._errors},_D}var ED={},$U;function Gq(){if($U)return ED;$U=1,ED.error=function(t){return new e(t)};var e=function(t){this.expected=t.expected,this.actual=t.actual,this._location=t.location};return e.prototype.describe=function(){var t=this._location?this._location.describe()+`:-`:"";return t+"Expected "+this.expected+`-but got `+this.actual},e.prototype.lineNumber=function(){return this._location.lineNumber()},e.prototype.characterNumber=function(){return this._location.characterNumber()},ED}var ND={},YU;function Tbe(){if(YU)return ND;YU=1,ND.fromArray=function(t){var n=0,r=function(){return n<t.length};return new e({hasNext:r,next:function(){if(r())return t[n++];throw new Error("No more elements")}})};var e=function(t){this._iterator=t};return e.prototype.map=function(t){var n=this._iterator;return new e({hasNext:function(){return n.hasNext()},next:function(){return t(n.next())}})},e.prototype.filter=function(t){var n=this._iterator,r=!1,i=!1,a,o=function(){if(!r)for(r=!0,i=!1;n.hasNext()&&!i;)a=n.next(),i=t(a)};return new e({hasNext:function(){return o(),i},next:function(){o();var s=a;return r=!1,s}})},e.prototype.first=function(){var t=this._iterator;return this._iterator.hasNext()?t.next():null},e.prototype.toArray=function(){for(var t=[];this._iterator.hasNext();)t.push(this._iterator.next());return t},ND}var JU;function qq(){return JU||(JU=1,(function(e){var t=ga,n=Cbe(),r=P3(),i=Gq(),a=Tbe();e.token=function(h,f){var g=f!==void 0;return function(y){var v=y.head();if(v&&v.name===h&&(!g||v.value===f))return r.success(v.value,y.tail(),v.source);var A=u({name:h,value:f});return d(y,A)}},e.tokenOfType=function(h){return e.token(h)},e.firstOf=function(h,f){return t.isArray(f)||(f=Array.prototype.slice.call(arguments,1)),function(g){return a.fromArray(f).map(function(y){return y(g)}).filter(function(y){return y.isSuccess()||y.isError()}).first()||d(g,h)}},e.then=function(h,f){return function(g){var y=h(g);return y.map||console.log(y),y.map(f)}},e.sequence=function(){var h=Array.prototype.slice.call(arguments,0),f=function(y){var v=t.foldl(h,function(w,S){var _=w.result,E=w.hasCut;if(!_.isSuccess())return{result:_,hasCut:E};var T=S(_.remaining());if(T.isCut())return{result:_,hasCut:!0};if(T.isSuccess()){var D;S.isCaptured?D=_.value().withValue(S,T.value()):D=_.value();var I=T.remaining(),j=y.to(I);return{result:r.success(D,I,j),hasCut:E}}else return E?{result:r.error(T.errors(),T.remaining()),hasCut:E}:{result:T,hasCut:E}},{result:r.success(new o,y),hasCut:!1}).result,A=y.to(v.remaining());return v.map(function(w){return w.withValue(e.sequence.source,A)})};f.head=function(){var y=t.find(h,g);return e.then(f,e.sequence.extract(y))},f.map=function(y){return e.then(f,function(v){return y.apply(this,v.toArray())})};function g(y){return y.isCaptured}return f};var o=function(h,f){this._values=h||{},this._valuesArray=f||[]};o.prototype.withValue=function(h,f){if(h.captureName&&h.captureName in this._values)throw new Error('Cannot add second value for capture "'+h.captureName+'"');var g=t.clone(this._values);g[h.captureName]=f;var y=this._valuesArray.concat([f]);return new o(g,y)},o.prototype.get=function(h){if(h.captureName in this._values)return this._values[h.captureName];throw new Error('No value for capture "'+h.captureName+'"')},o.prototype.toArray=function(){return this._valuesArray},e.sequence.capture=function(h,f){var g=function(){return h.apply(this,arguments)};return g.captureName=f,g.isCaptured=!0,g},e.sequence.extract=function(h){return function(f){return f.get(h)}},e.sequence.applyValues=function(h){var f=Array.prototype.slice.call(arguments,1);return function(g){var y=f.map(function(v){return g.get(v)});return h.apply(this,y)}},e.sequence.source={captureName:"☃source☃"},e.sequence.cut=function(){return function(h){return r.cut(h)}},e.optional=function(h){return function(f){var g=h(f);return g.isSuccess()?g.map(n.some):g.isFailure()?r.success(n.none,f):g}},e.zeroOrMoreWithSeparator=function(h,f){return c(h,f,!1)},e.oneOrMoreWithSeparator=function(h,f){return c(h,f,!0)};var s=e.zeroOrMore=function(h){return function(f){for(var g=[],y;(y=h(f))&&y.isSuccess();)f=y.remaining(),g.push(y.value());return y.isError()?y:r.success(g,f)}};e.oneOrMore=function(h){return e.oneOrMoreWithSeparator(h,l)};function l(h){return r.success(null,h)}var c=function(h,f,g){return function(y){var v=h(y);if(v.isSuccess()){var A=e.sequence.capture(h,"main"),w=s(e.then(e.sequence(f,A),e.sequence.extract(A))),S=w(v.remaining());return r.success([v.value()].concat(S.value()),S.remaining())}else return g||v.isError()?v:r.success([],y)}};e.leftAssociative=function(h,f,g){var y;g?y=[{func:g,rule:f}]:y=f,y=y.map(function(A){return e.then(A.rule,function(w){return function(S,_){return A.func(S,w,_)}})});var v=e.firstOf.apply(null,["rules"].concat(y));return function(A){var w=A,S=h(A);if(!S.isSuccess())return S;for(var _=v(S.remaining());_.isSuccess();){var E=_.remaining(),T=w.to(_.remaining()),D=_.value();S=r.success(D(S.value(),T),E,T),_=v(S.remaining())}return _.isError()?_:S}},e.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},e.nonConsuming=function(h){return function(f){return h(f).changeRemaining(f)}};var u=function(h){return h.value?h.name+' "'+h.value+'"':h.name};function d(h,f){var g,y=h.head();return y?g=i.error({expected:f,actual:u(y),location:y.source}):g=i.error({expected:f,actual:"end of tokens"}),r.failure([g],h)}})(CD)),CD}var FD={exports:{}},QU;function Hq(){if(QU)return FD.exports;QU=1,FD.exports=function(t,n){var r={asString:function(){return t},range:function(i,a){return new e(t,n,i,a)}};return r};var e=function(t,n,r,i){this._string=t,this._description=n,this._startIndex=r,this._endIndex=i};return e.prototype.to=function(t){return new e(this._string,this._description,this._startIndex,t._endIndex)},e.prototype.describe=function(){var t=this._position(),n=this._description?this._description+`-`:"";return n+"Line number: "+t.lineNumber+`-Character number: `+t.characterNumber},e.prototype.lineNumber=function(){return this._position().lineNumber},e.prototype.characterNumber=function(){return this._position().characterNumber},e.prototype._position=function(){for(var t=this,n=0,r=function(){return t._string.indexOf(`-`,n)},i=1;r()!==-1&&r()<this._startIndex;)n=r()+1,i+=1;var a=this._startIndex-n+1;return{lineNumber:i,characterNumber:a}},FD.exports}var RD,eL;function Xq(){return eL||(eL=1,RD=function(e,t,n){this.name=e,this.value=t,n&&(this.source=n)}),RD}var PD={},tL;function _be(){return tL||(tL=1,(function(e){var t=qq(),n=P3();e.parser=function(a,o,s){var l={rule:h,leftAssociative:f,rightAssociative:g},c=new r(s.map(d)),u=t.firstOf(a,o);function d(A){return{name:A.name,rule:i(A.ruleBuilder.bind(null,l))}}function h(){return y(c)}function f(A){return y(c.untilExclusive(A))}function g(A){return y(c.untilInclusive(A))}function y(A){return v.bind(null,A)}function v(A,w){var S=u(w);return S.isSuccess()?A.apply(S):S}return l};function r(a){function o(d){return new r(a.slice(0,l().indexOf(d)))}function s(d){return new r(a.slice(0,l().indexOf(d)+1))}function l(){return a.map(function(d){return d.name})}function c(d){for(var h,f;;)if(h=u(d.remaining()),h.isSuccess())f=d.source().to(h.source()),d=n.success(h.value()(d.value(),f),h.remaining(),f);else return h.isFailure()?d:h}function u(d){return t.firstOf("infix",a.map(function(h){return h.rule}))(d)}return{apply:c,untilExclusive:o,untilInclusive:s}}e.infix=function(a,o){function s(l){return e.infix(a,function(c){var u=o(c);return function(d){var h=u(d);return h.map(function(f){return function(g,y){return l(g,f,y)}})}})}return{name:a,ruleBuilder:o,map:s}};var i=function(a){var o;return function(s){return o||(o=a()),o(s)}}})(PD)),PD}var ID={},nL;function Ebe(){if(nL)return ID;nL=1;var e=Xq(),t=Hq();ID.RegexTokeniser=n;function n(r){r=r.map(function(s){return{name:s.name,regex:new RegExp(s.regex.source,"g")}});function i(s,l){for(var c=new t(s,l),u=0,d=[];u<s.length;){var h=a(s,u,c);u=h.endIndex,d.push(h.token)}return d.push(o(s,c)),d}function a(s,l,c){for(var u=0;u<r.length;u++){var d=r[u].regex;d.lastIndex=l;var h=d.exec(s);if(h){var g=l+h[0].length;if(h.index===l&&g>l){var f=h[1],y=new e(r[u].name,f,c.range(l,g));return{token:y,endIndex:g}}}}var g=l+1,y=new e("unrecognisedCharacter",s.substring(l,g),c.range(l,g));return{token:y,endIndex:g}}function o(s,l){return new e("end",null,l.range(s.length,s.length))}return{tokenise:i}}return ID}var rL;function Zq(){return rL||(rL=1,bl.Parser=Dbe().Parser,bl.rules=qq(),bl.errors=Gq(),bl.results=P3(),bl.StringSource=Hq(),bl.Token=Xq(),bl.bottomUp=_be(),bl.RegexTokeniser=Ebe().RegexTokeniser,bl.rule=function(e){var t;return function(n){return t||(t=e()),t(n)}}),bl}var Oa={},iL;function Nbe(){if(iL)return Oa;iL=1,Oa.paragraph=e,Oa.run=t,Oa.table=n,Oa.bold=new i("bold"),Oa.italic=new i("italic"),Oa.underline=new i("underline"),Oa.strikethrough=new i("strikethrough"),Oa.allCaps=new i("allCaps"),Oa.smallCaps=new i("smallCaps"),Oa.highlight=r,Oa.commentReference=new i("commentReference"),Oa.lineBreak=new o({breakType:"line"}),Oa.pageBreak=new o({breakType:"page"}),Oa.columnBreak=new o({breakType:"column"}),Oa.equalTo=l,Oa.startsWith=c;function e(h){return new i("paragraph",h)}function t(h){return new i("run",h)}function n(h){return new i("table",h)}function r(h){return new a(h)}function i(h,f){f=f||{},this._elementType=h,this._styleId=f.styleId,this._styleName=f.styleName,f.list&&(this._listIndex=f.list.levelIndex,this._listIsOrdered=f.list.isOrdered)}i.prototype.matches=function(h){return h.type===this._elementType&&(this._styleId===void 0||h.styleId===this._styleId)&&(this._styleName===void 0||h.styleName&&this._styleName.operator(this._styleName.operand,h.styleName))&&(this._listIndex===void 0||s(h,this._listIndex,this._listIsOrdered))&&(this._breakType===void 0||this._breakType===h.breakType)};function a(h){h=h||{},this._color=h.color}a.prototype.matches=function(h){return h.type==="highlight"&&(this._color===void 0||h.color===this._color)};function o(h){h=h||{},this._breakType=h.breakType}o.prototype.matches=function(h){return h.type==="break"&&(this._breakType===void 0||h.breakType===this._breakType)};function s(h,f,g){return h.numbering&&h.numbering.level==f&&h.numbering.isOrdered==g}function l(h){return{operator:u,operand:h}}function c(h){return{operator:d,operand:h}}function u(h,f){return h.toUpperCase()===f.toUpperCase()}function d(h,f){return f.toUpperCase().indexOf(h.toUpperCase())===0}return Oa}var MD={},aL;function Fbe(){if(aL)return MD;aL=1;var e=Zq(),t=e.RegexTokeniser;MD.tokenise=r;var n="'((?:\\\\.|[^'])*)";function r(i){var a="(?:[a-zA-Z\\-_]|\\\\.)",o=new t([{name:"identifier",regex:new RegExp("("+a+"(?:"+a+"|[0-9])*)")},{name:"dot",regex:/\./},{name:"colon",regex:/:/},{name:"gt",regex:/>/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/},{name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:new RegExp(n+"'")},{name:"unterminated-string",regex:new RegExp(n)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]);return o.tokenise(i)}return MD}var oL;function Rbe(){if(oL)return Am;oL=1;var e=ga,t=Zq(),n=Nbe(),r=Cw(),i=Fbe().tokenise,a=Yc();Am.readHtmlPath=u,Am.readDocumentMatcher=l,Am.readStyle=o;function o(I){return _(D,I)}function s(){return t.rules.sequence(t.rules.sequence.capture(c()),t.rules.tokenOfType("whitespace"),t.rules.tokenOfType("arrow"),t.rules.sequence.capture(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("whitespace"),t.rules.sequence.capture(d())).head())),t.rules.tokenOfType("end")).map(function(I,j){return{from:I,to:j.valueOrElse(r.empty)}})}function l(I){return _(c(),I)}function c(){var I=t.rules.sequence,j=function(Oe,Le){return t.rules.then(t.rules.token("identifier",Oe),function(){return Le})},R=j("p",n.paragraph),z=j("r",n.run),B=t.rules.firstOf("p or r or table",R,z),W=t.rules.sequence(t.rules.tokenOfType("dot"),t.rules.sequence.cut(),t.rules.sequence.capture(h)).map(function(Oe){return{styleId:Oe}}),P=t.rules.firstOf("style name matcher",t.rules.then(t.rules.sequence(t.rules.tokenOfType("equals"),t.rules.sequence.cut(),t.rules.sequence.capture(g)).head(),function(Oe){return{styleName:n.equalTo(Oe)}}),t.rules.then(t.rules.sequence(t.rules.tokenOfType("startsWith"),t.rules.sequence.cut(),t.rules.sequence.capture(g)).head(),function(Oe){return{styleName:n.startsWith(Oe)}})),Z=t.rules.sequence(t.rules.tokenOfType("open-square-bracket"),t.rules.sequence.cut(),t.rules.token("identifier","style-name"),t.rules.sequence.capture(P),t.rules.tokenOfType("close-square-bracket")).head(),Q=t.rules.firstOf("list type",j("ordered-list",{isOrdered:!0}),j("unordered-list",{isOrdered:!1})),X=I(t.rules.tokenOfType("colon"),I.capture(Q),I.cut(),t.rules.tokenOfType("open-paren"),I.capture(f),t.rules.tokenOfType("close-paren")).map(function(Oe,Le){return{list:{isOrdered:Oe.isOrdered,levelIndex:Le-1}}});function q(Oe){var Le=t.rules.firstOf.apply(t.rules.firstOf,["matcher suffix"].concat(Oe)),Re=t.rules.zeroOrMore(Le);return t.rules.then(Re,function(We){var V={};return We.forEach(function(ve){e.extend(V,ve)}),V})}var te=I(I.capture(B),I.capture(q([W,Z,X]))).map(function(Oe,Le){return Oe(Le)}),J=I(t.rules.token("identifier","table"),I.capture(q([W,Z]))).map(function(Oe){return n.table(Oe)}),ee=j("b",n.bold),le=j("i",n.italic),G=j("u",n.underline),xe=j("strike",n.strikethrough),ge=j("all-caps",n.allCaps),ue=j("small-caps",n.smallCaps),ce=I(t.rules.token("identifier","highlight"),t.rules.sequence.capture(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("open-square-bracket"),t.rules.sequence.cut(),t.rules.token("identifier","color"),t.rules.tokenOfType("equals"),t.rules.sequence.capture(g),t.rules.tokenOfType("close-square-bracket")).head()))).map(function(Oe){return n.highlight({color:Oe.valueOrElse(void 0)})}),ye=j("comment-reference",n.commentReference),Fe=I(t.rules.token("identifier","br"),I.cut(),t.rules.tokenOfType("open-square-bracket"),t.rules.token("identifier","type"),t.rules.tokenOfType("equals"),I.capture(g),t.rules.tokenOfType("close-square-bracket")).map(function(Oe){switch(Oe){case"line":return n.lineBreak;case"page":return n.pageBreak;case"column":return n.columnBreak}});return t.rules.firstOf("element type",te,J,ee,le,G,xe,ge,ue,ce,ye,Fe)}function u(I){return _(d(),I)}function d(){var I=t.rules.sequence.capture,j=t.rules.tokenOfType("whitespace"),R=t.rules.then(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("colon"),t.rules.token("identifier","fresh"))),function(P){return P.map(function(){return!0}).valueOrElse(!1)}),z=t.rules.then(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("colon"),t.rules.token("identifier","separator"),t.rules.tokenOfType("open-paren"),I(g),t.rules.tokenOfType("close-paren")).head()),function(P){return P.valueOrElse("")}),B=t.rules.oneOrMoreWithSeparator(h,t.rules.tokenOfType("choice")),W=t.rules.sequence(I(B),I(t.rules.zeroOrMore(S)),I(R),I(z)).map(function(P,Z,Q,X){var q={},te={};return Z.forEach(function(J){J.append&&q[J.name]?q[J.name]+=" "+J.value:q[J.name]=J.value}),Q&&(te.fresh=!0),X&&(te.separator=X),r.element(P,q,te)});return t.rules.firstOf("html path",t.rules.then(t.rules.tokenOfType("bang"),function(){return r.ignore}),t.rules.then(t.rules.zeroOrMoreWithSeparator(W,t.rules.sequence(j,t.rules.tokenOfType("gt"),j)),r.elements))}var h=t.rules.then(t.rules.tokenOfType("identifier"),v),f=t.rules.tokenOfType("integer"),g=t.rules.then(t.rules.tokenOfType("string"),v),y={n:`-`,r:"\r",t:" "};function v(I){return I.replace(/\\(.)/g,function(j,R){return y[R]||R})}var A=t.rules.sequence(t.rules.tokenOfType("open-square-bracket"),t.rules.sequence.cut(),t.rules.sequence.capture(h),t.rules.tokenOfType("equals"),t.rules.sequence.capture(g),t.rules.tokenOfType("close-square-bracket")).map(function(I,j){return{name:I,value:j,append:!1}}),w=t.rules.sequence(t.rules.tokenOfType("dot"),t.rules.sequence.cut(),t.rules.sequence.capture(h)).map(function(I){return{name:"class",value:I,append:!0}}),S=t.rules.firstOf("attribute or class",A,w);function _(I,j){var R=i(j),z=t.Parser(),B=z.parseTokens(I,R);return B.isSuccess()?a.success(B.value()):new a.Result(null,[a.warning(E(j,B))])}function E(I,j){return"Did not understand this style mapping, so ignored it: "+I+`-`+j.errors().map(T).join(`-`)}function T(I){return"Error was at character number "+I.characterNumber()+": Expected "+I.expected+" but got "+I.actual}var D=s();return Am}var wm={},sL;function Pbe(){if(sL)return wm;sL=1,wm.readOptions=r;var e=ga,t=wm._defaultStyleMap=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","p.Heading => h1:fresh","p[style-name='Heading'] => h1:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh","p.Body => p:fresh","p[style-name='Body'] => p:fresh"],n=wm._standardOptions={externalFileAccess:!1,transformDocument:a,includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function r(o){return o=o||{},e.extend({},n,o,{customStyleMap:i(o.styleMap),readStyleMap:function(){var s=this.customStyleMap;return this.includeEmbeddedStyleMap&&(s=s.concat(i(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(s=s.concat(t)),s}})}function i(o){return o?e.isString(o)?o.split(`-`).map(function(s){return s.trim()}).filter(function(s){return s!==""&&s.charAt(0)!=="#"}):o:[]}function a(o){return o}return wm}var UD={},lL;function Ibe(){if(lL)return UD;lL=1;var e=Ad(),t=Uq();UD.openZip=n;function n(r){return r.arrayBuffer?e.resolve(t.openArrayBuffer(r.arrayBuffer)):e.reject(new Error("Could not find file in options"))}return UD}var LD={},cL;function Mbe(){if(cL)return LD;cL=1;var e=Cw(),t=Dw();LD.element=n;function n(r){return function(i){return t.elementWithTag(e.element(r),[i])}}return LD}var uL;function Ube(){if(uL)return Is;uL=1;var e=ga,t=mbe(),n=ybe(),r=wbe().DocumentConverter,i=Sbe().convertElementToRawText,a=Rbe().readStyle,o=Pbe().readOptions,s=Ibe(),l=Yc().Result;Is.convertToHtml=c,Is.convertToMarkdown=u,Is.convert=d,Is.extractRawText=y,Is.images=Vq(),Is.transforms=zq(),Is.underline=Mbe(),Is.embedStyleMap=v,Is.readEmbeddedStyleMap=h;function c(A,w){return d(A,w)}function u(A,w){var S=Object.create(w||{});return S.outputFormat="markdown",d(A,S)}function d(A,w){return w=o(w),s.openZip(A).tap(function(S){return n.readStyleMap(S).then(function(_){w.embeddedStyleMap=_})}).then(function(S){return t.read(S,A,w).then(function(_){return _.map(w.transformDocument)}).then(function(_){return f(_,w)})})}function h(A){return s.openZip(A).then(n.readStyleMap)}function f(A,w){var S=g(w.readStyleMap()),_=e.extend({},w,{styleMap:S.value}),E=new r(_);return A.flatMapThen(function(T){return S.flatMapThen(function(D){return E.convertToHtml(T)})})}function g(A){return l.combine((A||[]).map(a)).map(function(w){return w.filter(function(S){return!!S})})}function y(A){return s.openZip(A).then(t.read).then(function(w){return w.map(i)})}function v(A,w){return s.openZip(A).tap(function(S){return n.writeStyleMap(S,w)}).then(function(S){return S.toArrayBuffer()}).then(function(S){return{toArrayBuffer:function(){return S},toBuffer:function(){return Buffer.from(S)}}})}return Is.styleMapping=function(){throw new Error(`Use a raw string instead of mammoth.styleMapping e.g. "p[style-name='Title'] => h1" instead of mammoth.styleMapping("p[style-name='Title'] => h1")`)},Is}var Lbe=Ube(),Obe=Mq();const Dy=Qc(Obe),jbe=15e4,dL=NaN,fL=(Number.isFinite(dL)?dL:NaN)||jbe,Bbe=[".txt",".md",".markdown",".json",".csv",".xml",".html",".css",".js",".ts",".jsx",".tsx",".py",".java",".c",".cpp",".h",".go",".rs",".yaml",".yml",".toml",".ini",".log",".sh",".bash",".zsh",".tex"];async function Kq(e){const t=await e.arrayBuffer(),n=await Dg(new Uint8Array(t)),{text:r}=await sG(n,{mergePages:!0});return r}function Il(e){return e.type==="application/pdf"||e.name.endsWith(".pdf")}function Vp(e){const t=e.name.toLowerCase();return e.type==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"||t.endsWith(".docx")}function Hu(e){const t=e.name.toLowerCase();return e.type.startsWith("text/")||e.type==="application/json"||Bbe.some(n=>t.endsWith(n))}function hL(e){const t=e.name.toLowerCase(),n=String(e.type||"").toLowerCase();return t.endsWith(".zip")?!0:n==="application/zip"||n==="application/x-zip-compressed"||n==="application/octet-stream"}function pL(e){const t=e.name.toLowerCase(),n=String(e.type||"").toLowerCase();return t.endsWith(".tgz")||t.endsWith(".tar.gz")?!0:n==="application/gzip"||n==="application/x-gzip"}async function $q(e){return await e.text()}async function Yq(e){const t=await e.arrayBuffer(),n=await Lbe.extractRawText({arrayBuffer:t});return String(n.value||"")}const I3=e=>String(e||"").replace(/\r/g,"").replace(/(^|[^\\])%.*$/gm,"$1").replace(/\\(begin|end)\{[^}]*\}/g," ").replace(/\\[a-zA-Z@]+(\[[^\]]*\])?(\{[^}]*\})?/g," ").replace(/\{|\}/g," ").replace(/\s+/g," ").trim(),Jq=e=>{const t=[];let r=0;for(;r+512<=e.length;){const i=e.subarray(r,r+512);if(i.every(A=>A===0))break;const o=new TextDecoder("utf-8").decode(i.subarray(0,100)),s=new TextDecoder("utf-8").decode(i.subarray(345,500)),l=o.replace(/\0.*$/,"").trim(),c=s.replace(/\0.*$/,"").trim(),u=`${c?`${c}/`:""}${l}`,d=new TextDecoder("utf-8").decode(i.subarray(124,136)).replace(/\0.*$/,"").trim(),h=parseInt(d||"0",8)||0,f=String.fromCharCode(i[156]||48),g=r+512,y=g+h;h>0&&y<=e.length&&f!=="5"&&t.push({name:u,bytes:e.subarray(g,y)});const v=Math.ceil(h/512)*512;r=g+v}return t},Qq=e=>{const t=Object.values(e.files).filter(i=>!i.dir&&/\.tex$/i.test(String(i.name||"")));if(t.length===0)return null;const n=["main.tex","paper.tex","manuscript.tex","document.tex"];for(const i of n){const a=t.find(o=>String(o.name||"").toLowerCase().endsWith(i));if(a)return a}const r=i=>{const a=String(i||"").toLowerCase(),o=a.split("/").length,s=a.split("/").pop()||a;let l=0;return s.includes("main")&&(l+=6),s.includes("paper")&&(l+=4),s.includes("manuscript")&&(l+=3),s.includes("camera")&&(l+=2),a.includes("arxiv")&&(l+=1),l+=Math.max(0,6-o),l+=Math.max(0,140-a.length)/50,l};return t.slice().sort((i,a)=>r(String(a.name||""))-r(String(i.name||"")))[0]||t[0]},eH=e=>{const t=e.filter(i=>/\.tex$/i.test(String(i.name||"")));if(t.length===0)return null;const n=["main.tex","paper.tex","manuscript.tex","document.tex"];for(const i of n){const a=t.find(o=>String(o.name||"").toLowerCase().endsWith(i));if(a)return a}const r=i=>{const a=String(i||"").toLowerCase(),o=a.split("/").length,s=a.split("/").pop()||a;let l=0;return s.includes("main")&&(l+=6),s.includes("paper")&&(l+=4),s.includes("manuscript")&&(l+=3),s.includes("camera")&&(l+=2),a.includes("arxiv")&&(l+=1),l+=Math.max(0,6-o),l+=Math.max(0,140-a.length)/50,l};return t.slice().sort((i,a)=>r(String(a.name||""))-r(String(i.name||"")))[0]||t[0]},Na=e=>String(e||"").replace(/\\/g,"/").replace(/^\.\//,"").replace(/\/{2,}/g,"/").trim(),zbe=(e,t)=>{const n=[],r=Tw(t),i=/\\graphicspath\s*\{([\s\S]*?)\}/g;let a;for(;a=i.exec(e);){const o=String(a[1]||""),s=/\{([^}]+)\}/g;let l;for(;l=s.exec(o);){const c=Na(String(l[1]||"").trim().replace(/^["']|["']$/g,""));c&&n.push(rg(r,c))}}return Array.from(new Set(n))},Tw=e=>{const t=Na(e),n=t.lastIndexOf("/");return n<0?"":t.slice(0,n)},rg=(e,t)=>{const n=`${e?`${e}/`:""}${t}`.split("/"),r=[];for(const i of n)if(!(!i||i===".")){if(i===".."){r.pop();continue}r.push(i)}return r.join("/")},Wbe=(e,t,n)=>{const r=Na(t).replace(/^["']|["']$/g,"");if(!r)return null;const a=/\.[a-z0-9]+$/i.test(r)?[r]:[r,`${r}.tex`],o=Tw(e);for(const s of a){const l=Na(rg(o,s));if(n.has(l))return l;const c=`/${l}`,u=Array.from(n.keys()).find(d=>d.endsWith(c)||d===l);if(u)return u}return null},tH=async e=>{const t=Object.values(e.files).filter(r=>!r.dir&&/\.tex$/i.test(String(r.name||""))),n=new Map;for(const r of t){const i=Na(String(r.name||"")),a=await r.async("string");n.set(i,a)}return n},nH=e=>{const t=new Map;for(const n of e){if(!/\.tex$/i.test(String(n.name||"")))continue;const r=Na(String(n.name||"")),i=new TextDecoder("utf-8").decode(n.bytes);t.set(r,i)}return t},ig=(e,t)=>{const n=new Set,r=[],i=[],a=(o,s)=>{if(s>20)return;const l=Na(o);if(!l||n.has(l))return;const c=t.get(l);if(typeof c!="string")return;n.add(l),i.push(c);const u=zbe(c,l),d=/\\includegraphics\s*(?:\[[\s\S]*?\])?\s*\{([^}]+)\}/g;let h;for(;h=d.exec(c);){const y=String(h[1]||"").trim();y&&r.push({includePath:y,sourceTexPath:l,caption:Xbe(c,h.index),searchDirs:u})}const f=/\\(?:input|include)\s*\{([^}]+)\}/g;let g;for(;g=f.exec(c);){const y=String(g[1]||"").trim(),v=Wbe(l,y,t);v&&a(v,s+1)}};return a(e,0),{graphics:r,mergedText:i.join(`--`)}},Vbe=(e,t)=>{const n=String(t||"").trim().replace(/^["']|["']$/g,"");if(!n)return null;const i=n.replace(/\\/g,"/").replace(/^\.?\//,"").toLowerCase(),o=/\.[a-z0-9]+$/i.test(i)?[""]:[".png",".jpg",".jpeg",".webp",".gif",".bmp",".svg"],s=[];for(const c of o)s.push(i+c);const l=Object.values(e.files).filter(c=>!c.dir);for(const c of s){const u=l.find(d=>String(d.name||"").toLowerCase()===c);if(u)return u}for(const c of s){const u=l.find(d=>{const h=String(d.name||"").toLowerCase();return h.endsWith(`/${c}`)||h.endsWith(c)});if(u)return u}return null},Gbe=(e,t,n,r=[])=>{const i=String(n||"").trim().replace(/^["']|["']$/g,"");if(!i)return null;const a=Na(i).replace(/^\.?\//,""),o=Tw(t),s=rg(o,a),c=/\.[a-z0-9]+$/i.test(a)?[""]:[".png",".jpg",".jpeg",".webp",".gif",".bmp",".svg",".pdf"],u=[s,a,...r.map(h=>rg(h,a))].flatMap(h=>c.map(f=>Na(`${h}${f}`))).filter(Boolean),d=Object.values(e.files).filter(h=>!h.dir);for(const h of u){const f=d.find(v=>Na(String(v.name||"")).toLowerCase()===h.toLowerCase());if(f)return f;const g=`/${h.toLowerCase()}`,y=d.find(v=>Na(String(v.name||"")).toLowerCase().endsWith(g));if(y)return y}return null},qbe=(e,t)=>{const n=String(t||"").trim().replace(/^["']|["']$/g,"");if(!n)return null;const i=n.replace(/\\/g,"/").replace(/^\.?\//,"").toLowerCase(),o=/\.[a-z0-9]+$/i.test(i)?[""]:[".png",".jpg",".jpeg",".webp",".gif",".bmp",".svg"],s=[];for(const l of o)s.push(i+l);for(const l of s){const c=e.find(u=>String(u.name||"").toLowerCase()===l);if(c)return c}for(const l of s){const c=e.find(u=>{const d=String(u.name||"").toLowerCase();return d.endsWith(`/${l}`)||d.endsWith(l)});if(c)return c}return null},Hbe=(e,t,n,r=[])=>{const i=String(n||"").trim().replace(/^["']|["']$/g,"");if(!i)return null;const a=Na(i).replace(/^\.?\//,""),o=Tw(t),s=rg(o,a),c=/\.[a-z0-9]+$/i.test(a)?[""]:[".png",".jpg",".jpeg",".webp",".gif",".bmp",".svg",".pdf"],u=[s,a,...r.map(d=>rg(d,a))].flatMap(d=>c.map(h=>Na(`${d}${h}`))).filter(Boolean);for(const d of u){const h=e.find(y=>Na(String(y.name||"")).toLowerCase()===d.toLowerCase());if(h)return h;const f=`/${d.toLowerCase()}`,g=e.find(y=>Na(String(y.name||"")).toLowerCase().endsWith(f));if(g)return g}return null},Xbe=(e,t)=>{const n=Math.max(0,t-1200),r=Math.min(e.length,t+2400),a=e.slice(n,r).match(/\\caption(?:\[[^\]]*\])?\{([\s\S]*?)\}/);return a&&a[1]?I3(a[1]).slice(0,220):""};async function Zbe(e){const t=await e.arrayBuffer(),n=await Dy.loadAsync(t),r=Qq(n);if(!r)throw new Error("No .tex file found in zip");const i=await tH(n),a=Na(String(r.name||"")),{mergedText:o}=ig(a,i);return I3(o||await r.async("string"))}async function Kbe(e,t){const n=Math.max(1,12),r=await e.arrayBuffer(),i=await Dy.loadAsync(r),a=Qq(i);if(!a)return[];const o=await tH(i),s=Na(String(a.name||""));let{graphics:l}=ig(s,o);if(l.length===0)for(const d of o.keys()){const h=ig(d,o).graphics;if(h.length>0){l=h;break}}const c=[];let u=0;for(const d of l){if(c.length>=n)break;const h=Gbe(i,d.sourceTexPath,d.includePath,d.searchDirs)||Vbe(i,d.includePath);if(!h)continue;const f=await h.async("uint8array"),g=await aH(h.name,f);if(!g.startsWith("data:image"))continue;u+=1;const y=String(d.caption||"").trim(),v=y?`LaTeX caption: ${y}`:`LaTeX includegraphics: ${d.includePath}`;c.push({id:`latex-${e.name}-${u}`,sourceFileName:e.name,sourceType:"latex",order:u,dataUrl:g,textHint:v.slice(0,800)})}return c}async function $be(e){const t=await e.arrayBuffer(),n=x9(new Uint8Array(t)),r=Jq(n),i=eH(r);if(!i)throw new Error("No .tex file found in tar.gz");const a=nH(r),o=Na(String(i.name||"")),{mergedText:s}=ig(o,a);return I3(s||new TextDecoder("utf-8").decode(i.bytes))}async function Ybe(e,t){const n=Math.max(1,12),r=await e.arrayBuffer(),i=x9(new Uint8Array(r)),a=Jq(i),o=eH(a);if(!o)return[];const s=nH(a),l=Na(String(o.name||""));let{graphics:c}=ig(l,s);if(c.length===0)for(const h of s.keys()){const f=ig(h,s).graphics;if(f.length>0){c=f;break}}const u=[];let d=0;for(const h of c){if(u.length>=n)break;const f=Hbe(a,h.sourceTexPath,h.includePath,h.searchDirs)||qbe(a,h.includePath);if(!f)continue;const g=await aH(f.name,f.bytes);if(!g.startsWith("data:image"))continue;d+=1;const y=String(h.caption||"").trim(),v=y?`LaTeX caption: ${y}`:`LaTeX includegraphics: ${h.includePath}`;u.push({id:`latex-tgz-${e.name}-${d}`,sourceFileName:e.name,sourceType:"latex",order:d,dataUrl:g,textHint:v.slice(0,800)})}return u}const rH=[/(framework|pipeline|workflow|architecture|system diagram|method overview|flowchart|block diagram|methods?|approach|methodology|方法框架|流程图|系统结构|模型架构)/i,/(table\s*\d+|main results|comparison|baseline|sota|significance|accuracy|f1|auc|results table|主实验|结果对比|对比表|显著性|表\s*\d+)/i,/(ablation|sensitivity|parameter analysis|influence|impact|mechanism|变量分析|消融|参数敏感性|影响因素|机制分析)/i,/(qualitative|visualization|case study|example|heatmap|confusion matrix|roc|pr curve|结果可视化|案例图|关键结果图|可视化)/i,/(dataset|data distribution|sample structure|demographics|statistics|数据分布|样本构成|数据结构|样本结构)/i],M3=/(equation|theorem|proof|appendix|related work|literature review|survey|公式|定理|证明|附录|相关工作|文献综述|参数设置)/i,Jbe=/(\bfig(?:ure)?\.?\s*\d+\b|\btable\s*\d+\b|图\s*\d+|表\s*\d+)/i,Qbe=/^\s*(fig(?:ure)?\.?|table|图|表)\s*\d+/i,e1e=[{category:"framework",re:[/(framework|pipeline|workflow|architecture|flowchart|block diagram|method overview|模型架构|方法框架|流程图|系统结构)/i]},{category:"result_table",re:[/(table\s*\d+|main results|comparison|baseline|sota|significance|results table|结果对比|对比表|显著性|主实验|表\s*\d+)/i]},{category:"mechanism",re:[/(ablation|sensitivity|parameter analysis|influence|impact|mechanism|消融|参数敏感性|影响因素|机制分析)/i]},{category:"key_visual",re:[/(qualitative|visualization|case study|example|heatmap|confusion matrix|roc|pr curve|可视化|案例图|关键结果图)/i]},{category:"data_structure",re:[/(dataset|data distribution|sample structure|demographics|statistics|数据分布|样本构成|数据结构|样本结构)/i]}],si=(e,t,n)=>Math.max(t,Math.min(n,e)),U3=e=>{let t="";for(let r=0;r<e.length;r+=32768)t+=String.fromCharCode(...e.subarray(r,r+32768));return btoa(t)},iH=e=>{const t=String(e||"").toLowerCase();return t.endsWith(".png")?"image/png":t.endsWith(".jpg")||t.endsWith(".jpeg")?"image/jpeg":t.endsWith(".webp")?"image/webp":t.endsWith(".gif")?"image/gif":t.endsWith(".bmp")?"image/bmp":t.endsWith(".svg")?"image/svg+xml":"image/png"},aH=async(e,t)=>{if(String(e||"").toLowerCase().endsWith(".pdf"))try{const a=await(await Dg(t)).getPage(1),o=a.getViewport({scale:1}),s=1400/Math.max(1,o.width),l=a.getViewport({scale:s}),c=document.createElement("canvas");c.width=Math.max(1,Math.floor(l.width)),c.height=Math.max(1,Math.floor(l.height));const u=c.getContext("2d");return u?(await a.render({canvasContext:u,viewport:l}).promise,c.toDataURL("image/png")):""}catch{return""}return`data:${iH(e)};base64,${U3(t)}`},t1e=e=>String(e||"").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&").replace(/&#(\d+);/g,(n,r)=>{const i=Number(r);if(!Number.isFinite(i))return"";try{return String.fromCharCode(i)}catch{return""}}),n1e=async(e,t=980)=>{const n=e.getViewport({scale:1}),r=t/Math.max(1,n.width),i=e.getViewport({scale:r}),a=document.createElement("canvas");a.width=Math.max(1,Math.floor(i.width)),a.height=Math.max(1,Math.floor(i.height));const o=a.getContext("2d");if(!o)return null;await e.render({canvasContext:o,viewport:i}).promise;let s="";const l=[];try{const c=await e.getTextContent(),u=Array.isArray(c==null?void 0:c.items)?c.items:[];for(const d of u){const h=String((d==null?void 0:d.str)||"").trim();if(!h)continue;s+=`${h} `;const f=Array.isArray(d==null?void 0:d.transform)?d.transform:[1,0,0,1,0,0],g=Number(f[4]||0),y=Number(f[5]||0),v=Math.abs(Number((d==null?void 0:d.width)||0)*r),A=Math.max(8,Math.abs(Number((d==null?void 0:d.height)||0)*r)),[w,S]=i.convertToViewportPoint(g,y),_=si(Math.floor(w),0,a.width-1),E=si(Math.floor(S-A),0,a.height-1),T=si(Math.ceil(v||h.length*6),6,a.width-_),D=si(Math.ceil(A),8,a.height-E);l.push({text:h,x:_,y:E,w:T,h:D})}}catch{}return{canvas:a,textBoxes:l,pageText:s.trim()}},r1e=(e,t,n)=>{const r=new Uint8Array(e*t);for(const i of n){const a=si(i.x-2,0,e-1),o=si(i.y-2,0,t-1),s=si(i.x+i.w+2,0,e-1),l=si(i.y+i.h+2,0,t-1);for(let c=o;c<=l;c+=1){const u=c*e;for(let d=a;d<=s;d+=1)r[u+d]=1}}return r},i1e=(e,t)=>{const n=e.getContext("2d");if(!n)return[];const r=e.width,i=e.height,a=n.getImageData(0,0,r,i).data,o=2,s=Math.max(1,Math.floor(r/o)),l=Math.max(1,Math.floor(i/o)),c=new Uint8Array(s*l);for(let v=0;v<l;v+=1)for(let A=0;A<s;A+=1){const w=A*o,S=v*o,_=(S*r+w)*4,E=a[_],T=a[_+1],D=a[_+2];if(a[_+3]<10||(E+T+D)/3>245)continue;const R=S*r+w;t[R]||(c[v*s+A]=1)}const u=new Uint8Array(s*l),d=[],h=new Int32Array(s*l),f=new Int32Array(s*l),g=Math.max(140,Math.floor(s*l*.0012));for(let v=0;v<l;v+=1)for(let A=0;A<s;A+=1){const w=v*s+A;if(!c[w]||u[w])continue;let S=0,_=0;u[w]=1,h[_]=A,f[_]=v,_+=1;let E=A,T=v,D=A,I=v,j=0;for(;S<_;){const W=h[S],P=f[S];S+=1,j+=1,E=Math.min(E,W),T=Math.min(T,P),D=Math.max(D,W),I=Math.max(I,P);for(let Z=P-1;Z<=P+1;Z+=1)for(let Q=W-1;Q<=W+1;Q+=1){if(Q<0||Z<0||Q>=s||Z>=l)continue;const X=Z*s+Q;!c[X]||u[X]||(u[X]=1,h[_]=Q,f[_]=Z,_+=1)}}if(j<g)continue;const R=(D-E+1)*o,z=(I-T+1)*o;R*z/Math.max(1,r*i)>.75||R<80||z<60||d.push({x:si(E*o-8,0,r-1),y:si(T*o-8,0,i-1),w:si(R+16,1,r),h:si(z+16,1,i)})}if(d.length<=1)return d;const y=[];for(const v of d.sort((A,w)=>A.y-w.y||A.x-w.x)){let A=!1;for(const w of y){const S=Math.max(0,Math.min(v.x+v.w,w.x+w.w)-Math.max(v.x,w.x)),_=Math.max(0,Math.min(v.y+v.h,w.y+w.h)-Math.max(v.y,w.y)),E=S*_,T=Math.min(v.w*v.h,w.w*w.h),D=Math.abs(v.x+v.w/2-(w.x+w.w/2))<80&&Math.abs(v.y+v.h/2-(w.y+w.h/2))<80;if(E>T*.2||D){const I=Math.min(w.x,v.x),j=Math.min(w.y,v.y),R=Math.max(w.x+w.w,v.x+v.w)-I,z=Math.max(w.y+w.h,v.y+v.h)-j;w.x=I,w.y=j,w.w=R,w.h=z,A=!0;break}}A||y.push({...v})}return y},a1e=(e,t)=>{const n=document.createElement("canvas");n.width=si(Math.floor(t.w),1,e.width),n.height=si(Math.floor(t.h),1,e.height);const r=n.getContext("2d");return r?(r.drawImage(e,t.x,t.y,t.w,t.h,0,0,n.width,n.height),n.toDataURL("image/png")):""},o1e=(e,t)=>{const n=e.y+e.h/2;return t.filter(i=>{const o=Math.max(0,Math.min(e.x+e.w,i.x+i.w)-Math.max(e.x,i.x))/Math.max(1,Math.min(e.w,i.w)),s=Math.abs(i.y+i.h/2-n);return o>.2&&s<240}).sort((i,a)=>Math.abs(i.y+i.h/2-n)-Math.abs(a.y+a.h/2-n)).slice(0,10).map(i=>i.text).join(" ").trim().slice(0,600)},Cf=(e,t,n,r,i)=>{const a=si(Math.floor(e.x-r),0,t-1),o=si(Math.floor(e.y-i),0,n-1),s=si(Math.ceil(e.x+e.w+r),a+1,t),l=si(Math.ceil(e.y+e.h+i),o+1,n);return{x:a,y:o,w:s-a,h:l-o}},d0=(e,t)=>{const n=e.getContext("2d");if(!n)return t;const r=si(Math.floor(t.x),0,e.width-1),i=si(Math.floor(t.y),0,e.height-1),a=si(Math.floor(t.w),1,e.width-r),o=si(Math.floor(t.h),1,e.height-i),s=n.getImageData(r,i,a,o).data;let l=a,c=o,u=-1,d=-1;for(let A=0;A<o;A+=1)for(let w=0;w<a;w+=1){const S=(A*a+w)*4,_=s[S],E=s[S+1],T=s[S+2];s[S+3]<20||(_+E+T)/3>244||(l=Math.min(l,w),c=Math.min(c,A),u=Math.max(u,w),d=Math.max(d,A))}if(u<0||d<0)return t;const h=16,f=si(r+l-h,0,e.width-1),g=si(i+c-h,0,e.height-1),y=si(r+u+h+1,f+1,e.width),v=si(i+d+h+1,g+1,e.height);return{x:f,y:g,w:y-f,h:v-g}},oH=e=>{const t=[...e].sort((r,i)=>r.y-i.y||r.x-i.x),n=[];for(const r of t){const i=r.y+r.h/2;let a=n.find(o=>Math.abs(o.yCenter-i)<=10);a||(a={boxes:[],yCenter:i},n.push(a)),a.boxes.push(r),a.yCenter=(a.yCenter*(a.boxes.length-1)+i)/a.boxes.length}return n.map(r=>{const i=r.boxes.sort((u,d)=>u.x-d.x),a=Math.min(...i.map(u=>u.x)),o=Math.min(...i.map(u=>u.y)),s=Math.max(...i.map(u=>u.x+u.w)),l=Math.max(...i.map(u=>u.y+u.h));return{text:i.map(u=>u.text).join(" ").replace(/\s+/g," ").trim(),x:a,y:o,w:s-a,h:l-o}}).filter(r=>r.text.length>0)},s1e=(e,t)=>{const n=e.width,r=e.height,a=oH(t).filter(s=>M3.test(s.text)?!1:Jbe.test(s.text)||rH.some(l=>l.test(s.text))),o=[];for(const s of a){const l=/(table|表)/i.test(s.text),c=/(fig|figure|图)/i.test(s.text),u=s.y+s.h/2;let d=u-r*.35,h=u+r*.35;l?(d=u-r*.08,h=u+r*.48):c&&(d=u-r*.58,h=u+r*.12);const f={x:Math.floor(n*.05),y:si(Math.floor(d),0,r-1),w:Math.floor(n*.9),h:si(Math.floor(h-d),1,r)},g=Cf(f,n,r,18,20),y=d0(e,g),v=y.w*y.h/Math.max(1,n*r);v<.05||v>.9||o.push({box:y,hint:s.text})}return o},gL=(e,t)=>{const n=Math.min(e.x,t.x),r=Math.min(e.y,t.y),i=Math.max(e.x+e.w,t.x+t.w),a=Math.max(e.y+e.h,t.y+t.h);return{x:n,y:r,w:i-n,h:a-r}},l1e=e=>{const t=String(e||"").toLowerCase();return t.startsWith("table")||t.includes(" table ")||/表\s*\d+/.test(e)?"table":"figure"},c1e=e=>{const{canvas:t,textBoxes:n,detectedRegions:r}=e,i=t.width,a=t.height,s=oH(n).filter(c=>{const u=String(c.text||"");if(!Qbe.test(u))return!1;const d=u.trim();return/^(\s*(fig(?:ure)?\.?|table|图|表)\s*\d+)\s*[:.]/i.test(d)||d.length<=80}).slice(0,40),l=[];for(const c of s){const u=l1e(c.text),d=Cf({x:c.x,y:c.y,w:c.w,h:c.h},i,a,14,10),h=d.y,f=d.y+d.h,g=(()=>{if(u==="table"){const I=si(Math.floor(h-a*.06),0,a-1),j=si(Math.floor(f+a*.62),I+1,a);return{x:Math.floor(i*.04),y:I,w:Math.floor(i*.92),h:j-I}}const T=si(Math.floor(h-a*.68),0,a-1),D=si(Math.floor(f+a*.1),T+1,a);return{x:Math.floor(i*.04),y:T,w:Math.floor(i*.92),h:D-T}})(),y=g.y+g.h,v=g.y,A=r.map(T=>({r:T,cy:T.y+T.h/2,cx:T.x+T.w/2})).filter(({r:T,cy:D})=>D>=v&&D<=y?u==="figure"?T.y+T.h<=h+36:T.y>=f-36:!1),w=(()=>{var D;return A.length===0?null:((D=A.map(({r:I})=>{const j=I.w*I.h,R=Math.abs(u==="figure"?I.y+I.h-h:I.y-f),z=j-R*120;return{r:I,score:z}}).sort((I,j)=>j.score-I.score)[0])==null?void 0:D.r)||null})();let S;if(w){S=gL(w,d);for(const{r:T}of A){const D=Math.max(0,Math.min(S.x+S.w,T.x+T.w)-Math.max(S.x,T.x)),I=Math.max(0,Math.min(S.y+S.h,T.y+T.h)-Math.max(S.y,T.y)),j=D*I,R=Math.min(S.w*S.h,T.w*T.h),z=Math.abs(T.y+T.h/2-(S.y+S.h/2))<120;(j>R*.08||z)&&(S=gL(S,T))}S=Cf(S,i,a,24,22),S=d0(t,S)}else S=d0(t,Cf(g,i,a,8,10));if(S.w*S.h/Math.max(1,i*a)<.04){const T=u==="table"?{x:0,y:Math.floor(a*.45),w:i,h:a-Math.floor(a*.45)}:{x:0,y:0,w:i,h:Math.floor(a*.6)};S=d0(t,Cf(T,i,a,0,0))}S.w*S.h/Math.max(1,i*a)<.06&&(S={x:0,y:0,w:i,h:a}),l.push({box:S,hint:String(c.text||"").slice(0,200),kind:u})}return l},sH=e=>{const t=String(e||"");for(const n of e1e)if(n.re.some(r=>r.test(t)))return n.category;return"other"},lH=e=>{const t=String(e||"");let n=0,r=0;for(const i of rH)i.test(t)&&(r+=1,n+=2);return/(figure|fig\.?\s*\d+|图\s*\d+)/i.test(t)&&(n+=1),/(table\s*\d+|表\s*\d+)/i.test(t)&&(n+=1),M3.test(t)&&(n-=3),{score:n,matched:r}};async function mL(e,t){const n=Math.max(1,12),r=Math.max(1,10),i=Math.max(980,1400),a=await e.arrayBuffer(),o=await Dg(new Uint8Array(a)),s=Number((o==null?void 0:o.numPages)||0);if(!s)return[];const l=[],c=[];for(let f=1;f<=Math.min(s,n);f+=1)try{const g=await o.getPage(f),y=await n1e(g,i);if(!y)continue;const v=String(y.pageText||"").slice(0,1400),A=r1e(y.canvas.width,y.canvas.height,y.textBoxes),w=i1e(y.canvas,A),S=c1e({canvas:y.canvas,textBoxes:y.textBoxes,detectedRegions:w}),_=s1e(y.canvas,y.textBoxes),E=[...S.map(T=>({box:T.box,seedHint:T.hint,source:"caption"})),..._.map(T=>({box:T.box,seedHint:T.hint,source:"anchor"})),...w.map(T=>({box:T,seedHint:"",source:"detected"}))];for(const T of E){if(l.length>=r*8)break;const D=T.source==="caption"?Cf(T.box,y.canvas.width,y.canvas.height,6,8):Cf(T.box,y.canvas.width,y.canvas.height,28,28),I=d0(y.canvas,D),j=a1e(y.canvas,I);if(!j.startsWith("data:image"))continue;const R=I.w*I.h/Math.max(1,y.canvas.width*y.canvas.height),z=o1e(I,y.textBoxes),B=`${T.seedHint} ${z} ${v}`.trim().slice(0,1200),W=lH(`${B} ${v}`),P=sH(B),Z=R>.08&&R<.88?1:0,Q=T.source==="caption"?4:T.source==="anchor"?2:0,X=P!=="other"?1:0,q=W.score+Z+Q+X,te={page:f,score:q,textHint:B,dataUrl:j,areaRatio:R,category:P};(W.matched>0||T.source==="caption")&&q>0?l.push(te):R>.08&&R<.9&&c.push(te)}}catch(g){console.error("Failed to extract visual asset from PDF page",f,g)}const u=f=>{const g=new Set,y=[];for(const v of f.sort((A,w)=>w.score-A.score||A.page-w.page)){const A=`${v.page}|${v.dataUrl.slice(0,120)}`;g.has(A)||(g.add(A),y.push(v))}return y};return(f=>{const g=["framework","result_table","mechanism","key_visual","data_structure"],y=u(f),v=[],A=new Set;for(const w of g){const S=y.find(_=>_.category===w&&!A.has(_.dataUrl));if(S&&(v.push(S),A.add(S.dataUrl),v.length>=r))return v}for(const w of y)if(!A.has(w.dataUrl)&&(v.push(w),A.add(w.dataUrl),v.length>=r))break;return v})(l.length>0?l:c).sort((f,g)=>f.page-g.page).map((f,g)=>({id:`pdf-${e.name}-${f.page}-${g+1}`,sourceFileName:e.name,sourceType:"pdf",page:f.page,order:g+1,dataUrl:f.dataUrl,textHint:f.textHint}))}async function yL(e,t){var w,S,_;const n=Math.max(1,10),r=await e.arrayBuffer(),i=await Dy.loadAsync(r),a=Object.values(i.files).filter(E=>!E.dir&&/^word\/media\//i.test(String(E.name||""))),o=[],s=i.file("word/_rels/document.xml.rels")?await i.file("word/_rels/document.xml.rels").async("string"):"",l=i.file("word/document.xml")?await i.file("word/document.xml").async("string"):"",c=new Map;if(s){const E=/<Relationship\b[^>]*\bId="([^"]+)"[^>]*\bTarget="([^"]+)"[^>]*\/>/g;let T;for(;T=E.exec(s);){const D=String(T[1]||"").trim(),I=String(T[2]||"").trim();!D||!I||c.set(D,I.replace(/\\/g,"/"))}}const u=[];if(l){const E=/<w:p\b[\s\S]*?<\/w:p>/g,T=/\br:embed="(rId\d+)"/g,D=/<w:t\b[^>]*>([\s\S]*?)<\/w:t>/g,I=/<(?:wp:extent|a:ext)\b[^>]*\bcx="(\d+)"[^>]*\bcy="(\d+)"/g,j=z=>Math.max(0,Math.round(z/9525));let R;for(;R=E.exec(l);){const z=R[0],B=[];let W;for(;W=T.exec(z);)B.push(String(W[1]||""));const P=[];let Z;for(;Z=D.exec(z);)P.push(t1e(Z[1]||""));const Q=P.join("").replace(/\s+/g," ").trim(),X=[];let q;for(;q=I.exec(z);){const J=Number(q[1]||0),ee=Number(q[2]||0);if(!Number.isFinite(J)||!Number.isFinite(ee))continue;const le=j(J),G=j(ee);X.push({w:le,h:G,area:le*G})}const te={};for(let J=0;J<B.length;J+=1)te[B[J]]=X[J]||{w:0,h:0,area:0};u.push({text:Q,embeds:B,metrics:te})}}const d=/^(fig(?:ure)?\.?|table|图|表)\s*\d+\s*[:.]/i,h=new Map,f=new Map;for(let E=0;E<u.length;E+=1){const T=u[E];if(!(!T.embeds||T.embeds.length===0))for(const D of T.embeds){const I=c.get(D)||"",j=I?`word/${I.replace(/^\.?\//,"")}`:"";if(!j)continue;const R=((w=u[E-1])==null?void 0:w.text)||"",z=((S=u[E+1])==null?void 0:S.text)||"",B=T.text||"",P=[[R,z,B].find(Q=>d.test(String(Q||"").trim()))||"",R,B,z].filter(Boolean).join(" ").replace(/\s+/g," ").trim().slice(0,800);P&&h.set(j.toLowerCase(),P);const Z=(_=T.metrics)==null?void 0:_[D];Z&&Z.area>0&&f.set(j.toLowerCase(),Z)}}const g=/(equation|formula|eq\.?\s*\(?\d+\)?|proof|appendix|related work|supplement|公式|推导|证明|附录|文献综述|参数设置)/i,y=[];for(const E of a){const T=String(E.name||"").toLowerCase(),D=h.get(T)||"",I=f.get(T)||{w:0,h:0,area:0},j=lH(D),R=d.test(String(D||"").trim()),z=g.test(D)||M3.test(D),B=I.area>=18e4?2:I.area>=7e4?1:0,W=I.area>0&&I.area<14e3?4:0,P=j.score+(R?2:0)+B-W-(z?6:0),Z=sH(D);y.push({entry:E,hint:D,metric:I,score:P,category:Z})}const v=["framework","result_table","mechanism","key_visual","data_structure","other"],A=y.filter(E=>E.score>0||E.metric.area>=26e4).sort((E,T)=>{const D=v.indexOf(E.category),I=v.indexOf(T.category);return D!==I?D-I:T.score!==E.score?T.score-E.score:(T.metric.area||0)-(E.metric.area||0)}).slice(0,n);for(let E=0;E<A.length;E+=1){const{entry:T,hint:D}=A[E];try{const I=await T.async("uint8array"),R=`data:${iH(T.name)};base64,${U3(I)}`;o.push({id:`word-${e.name}-${E+1}`,sourceFileName:e.name,sourceType:"word",order:E+1,dataUrl:R,textHint:D})}catch(I){console.error("Failed to extract visual asset from Word",T.name,I)}}return o}async function vL(e,t){const n=String(t.apiToken||"").trim();if(!n)throw new Error("Third-party parser token is empty");const r=String(t.apiBase||"https://mineru.net").trim().replace(/\/+$/,""),i=Math.max(1,t.maxAssets??10),a=Math.max(5e3,t.maxWaitMs??12e4),o=new Uint8Array(await e.arrayBuffer()),s=await fetch("/api/third-party-parser",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:e.name,fileType:e.type||"",fileBase64:U3(o),apiToken:n,apiBase:r,maxAssets:i,maxWaitMs:a})});if(!s.ok){let u="";try{const d=await s.json();u=String((d==null?void 0:d.error)||"")}catch{}throw new Error(`Third-party parser proxy failed: ${s.status}${u?` - ${u}`:""}`)}const l=await s.json();if(!(l!=null&&l.success))throw new Error(String((l==null?void 0:l.error)||"Third-party parser proxy error"));return(Array.isArray(l==null?void 0:l.assets)?l.assets:[]).filter(u=>u&&typeof u.dataUrl=="string"&&u.dataUrl.startsWith("data:image")).slice(0,i).map((u,d)=>({id:`third-party-${e.name}-${d+1}`,sourceFileName:e.name,sourceType:"third_party",order:d+1,dataUrl:String(u.dataUrl),textHint:typeof u.textHint=="string"?u.textHint:""}))}function u1e(e){return e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function d1e({files:e,onRemoveFile:t,pdfData:n=new Map}){const[r,i]=N.useState(null),[a,o]=N.useState(new Map),s=N.useRef(new Map);return N.useEffect(()=>{const l=s.current,c=new Map;e.forEach(u=>{if(u.type.startsWith("image/")){const d=l.get(u);d?c.set(u,d):c.set(u,URL.createObjectURL(u))}}),l.forEach((u,d)=>{c.has(d)||URL.revokeObjectURL(u)}),s.current=c,o(c)},[e]),N.useEffect(()=>()=>{s.current.forEach(l=>{URL.revokeObjectURL(l)}),s.current=new Map},[]),N.useEffect(()=>{r&&!Array.from(a.values()).includes(r)&&i(null)},[a,r]),e.length===0?null:m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"flex flex-wrap gap-2 mt-2 p-2 bg-muted/50 rounded-md",children:e.map((l,c)=>{const u=a.get(l)||null,d=n.get(l);return m.jsxs("div",{className:"relative group",children:[m.jsx("div",{className:`w-20 h-20 border rounded-md overflow-hidden bg-muted ${l.type.startsWith("image/")&&u?"cursor-pointer":""}`,onClick:()=>l.type.startsWith("image/")&&u&&i(u),children:l.type.startsWith("image/")&&u?m.jsx(O1,{src:u,alt:l.name,width:80,height:80,className:"object-cover w-full h-full",unoptimized:!0}):Il(l)||Hu(l)?m.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-1",children:[d!=null&&d.isExtracting?m.jsx(sa,{className:"h-6 w-6 text-blue-500 mb-1 animate-spin"}):Il(l)?m.jsx(Oi,{className:"h-6 w-6 text-red-500 mb-1"}):m.jsx(eu,{className:"h-6 w-6 text-blue-500 mb-1"}),m.jsx("span",{className:"text-xs text-center truncate w-full px-1",children:l.name.length>10?`${l.name.slice(0,7)}...`:l.name}),d!=null&&d.isExtracting?m.jsx("span",{className:"text-[10px] text-muted-foreground",children:"Reading..."}):d!=null&&d.charCount?m.jsxs("span",{className:"text-[10px] text-green-600 font-medium",children:[u1e(d.charCount)," ","chars"]}):null]}):m.jsx("div",{className:"flex items-center justify-center h-full text-xs text-center p-1",children:l.name})}),m.jsx("button",{type:"button",onClick:()=>t(l),className:"absolute -top-2 -right-2 bg-destructive rounded-full p-1 opacity-0 group-hover:opacity-100 transition-opacity","aria-label":"Remove file",children:m.jsx(Va,{className:"h-3 w-3"})})]},l.name+c)})}),r&&m.jsxs("div",{className:"fixed inset-0 z-50 bg-black/80 flex items-center justify-center p-4",onClick:()=>i(null),children:[m.jsx("button",{className:"absolute top-4 right-4 z-10 bg-white rounded-full p-2 hover:bg-gray-200 transition-colors",onClick:()=>i(null),"aria-label":"Close",children:m.jsx(Va,{className:"h-6 w-6"})}),m.jsx("div",{className:"relative w-auto h-auto max-w-[90vw] max-h-[90vh]",children:m.jsx(O1,{src:r,alt:"Full size preview of uploaded diagram or image",width:1200,height:900,className:"object-contain max-w-full max-h-[90vh] w-auto h-auto",onClick:l=>l.stopPropagation(),unoptimized:!0})})]})]})}const xL=2*1024*1024,bL=5;function cH(e){const t=e.name.toLowerCase();return e.type==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"||t.endsWith(".docx")}function uH(e){return e.type.startsWith("image/")||Il(e)||Hu(e)||cH(e)}function f1e(e){const t=e/1024/1024;return t<.01?`${(e/1024).toFixed(0)}KB`:`${t.toFixed(2)}MB`}function AL(e){Ln.custom(t=>m.jsx(Wye,{message:e,onDismiss:()=>Ln.dismiss(t)}),{duration:5e3})}function OD(e,t){const n=[],r=[],i=bL-t;if(i<=0)return n.push(`最多只能上传 ${bL} 个文件`),{validFiles:r,errors:n};for(const a of e){if(r.length>=i){n.push(`还可再上传 ${i} 个文件`);break}if(!uH(a)){n.push(`"${a.name}" 不是支持的文件类型`);continue}if(!(Il(a)||Hu(a))&&a.size>xL){const s=xL/1024/1024;n.push(`"${a.name}" 大小为 ${f1e(a.size)}(超过 ${s}MB)`)}else r.push(a)}return{validFiles:r,errors:n}}function jD(e){e.length!==0&&(e.length===1?AL(m.jsx("span",{className:"text-muted-foreground",children:e[0]})):AL(m.jsxs("div",{className:"flex flex-col gap-1",children:[m.jsxs("span",{className:"font-medium",children:[e.length," 个文件校验失败:"]}),m.jsxs("ul",{className:"text-muted-foreground text-xs list-disc list-inside",children:[e.slice(0,3).map(t=>m.jsx("li",{children:t},t)),e.length>3&&m.jsxs("li",{children:["...以及另外 ",e.length-3," 个"]})]})]})))}function h1e({input:e,status:t,onSubmit:n,onChange:r,onClearChat:i,onStop:a,files:o=[],onFileChange:s=()=>{},pdfData:l=new Map,showHistory:c=!1,onToggleHistory:u=()=>{},error:d=null,deepThinkingEnabled:h=!1,onToggleDeepThinking:f=()=>{}}){const{t:g}=Yf(),{diagramHistory:y}=Ay(),v=N.useRef(null),A=N.useRef(null),w=N.useRef(null),[S,_]=N.useState(!1),[E,T]=N.useState(!1),[D,I]=N.useState(!1),j=t==="streaming"||t==="submitted",R=j&&!d,z=N.useCallback(()=>{const ge=v.current;ge&&(ge.style.height="auto",ge.style.height=`${Math.min(ge.scrollHeight,200)}px`)},[]);N.useEffect(()=>{z()},[e,z]);const B=ge=>{r(ge),z()},W=ge=>{if(ge.key==="Enter"&&!ge.shiftKey){ge.preventDefault();const ue=ge.currentTarget.closest("form");ue&&e.trim()&&!R&&ue.requestSubmit();return}},P=async ge=>{if(R)return;const ue=ge.clipboardData.items,ce=Array.from(ue).filter(ye=>ye.type.startsWith("image/"));if(ce.length>0){const ye=(await Promise.all(ce.map(async(Le,Re)=>{const We=Le.getAsFile();return We?new File([We],`pasted-image-${Date.now()}-${Re}.${We.type.split("/")[1]}`,{type:We.type}):null}))).filter(Le=>Le!==null),{validFiles:Fe,errors:Oe}=OD(ye,o.length);jD(Oe),Fe.length>0&&s([...o,...Fe])}},Z=ge=>{const{validFiles:ue,errors:ce}=OD(ge,o.length);jD(ce),ue.length>0&&s([...o,...ue])},Q=ge=>{const ue=Array.from(ge.target.files||[]).filter(ce=>ce.type.startsWith("image/"));Z(ue),A.current&&(A.current.value="")},X=ge=>{const ue=Array.from(ge.target.files||[]).filter(ce=>Il(ce)||Hu(ce)||cH(ce));Z(ue),w.current&&(w.current.value="")},q=ge=>{s(o.filter(ue=>ue!==ge)),A.current&&(A.current.value=""),w.current&&(w.current.value="")},te=()=>{var ge;(ge=A.current)==null||ge.click()},J=()=>{var ge;(ge=w.current)==null||ge.click()},ee=ge=>{ge.preventDefault(),ge.stopPropagation(),_(!0)},le=ge=>{ge.preventDefault(),ge.stopPropagation(),_(!1)},G=ge=>{if(ge.preventDefault(),ge.stopPropagation(),_(!1),R)return;const ue=ge.dataTransfer.files,ce=Array.from(ue).filter(Oe=>uH(Oe)),{validFiles:ye,errors:Fe}=OD(ce,o.length);jD(Fe),ye.length>0&&s([...o,...ye])},xe=()=>{i(),T(!1)};return m.jsxs("form",{onSubmit:n,className:`w-full transition-all duration-200 ${S?"ring-2 ring-primary ring-offset-2 rounded-2xl":""}`,onDragOver:ee,onDragLeave:le,onDrop:G,children:[o.length>0&&m.jsx("div",{className:"mb-3",children:m.jsx(d1e,{files:o,onRemoveFile:q,pdfData:l})}),m.jsxs("div",{className:"relative rounded-2xl border border-border bg-background shadow-sm focus-within:ring-2 focus-within:ring-primary/20 focus-within:border-primary/50 transition-all duration-200",children:[m.jsx(rG,{ref:v,value:e,onChange:B,onKeyDown:W,onPaste:P,placeholder:g("input.placeholder"),disabled:R,"aria-label":"聊天输入",className:"min-h-[60px] max-h-[200px] resize-none border-0 bg-transparent px-4 py-3 text-sm focus-visible:ring-0 focus-visible:ring-offset-0 placeholder:text-muted-foreground/60"}),m.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-t border-border/50",children:[m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx(Jl,{type:"button",variant:"ghost",size:"sm",onClick:()=>T(!0),tooltipContent:g("input.clear"),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive hover:bg-destructive/10",children:m.jsx(Zf,{className:"h-4 w-4"})}),m.jsx(Jl,{type:"button",variant:"ghost",size:"sm",onClick:()=>I(!0),tooltipContent:g("tooltip.global_constraints"),className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",children:m.jsx(xE,{className:"h-4 w-4"})}),m.jsx(hve,{open:E,onOpenChange:T,onClear:xe}),m.jsx(uve,{open:D,onOpenChange:I}),m.jsx(fve,{showHistory:c,onToggleHistory:u})]}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx(Jl,{type:"button",variant:"ghost",size:"sm",onClick:f,disabled:R,tooltipContent:g("tooltip.deep_thinking"),className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground","aria-pressed":h,"aria-label":g("input.deep_thinking"),children:m.jsx(SA,{className:`h-3.5 w-3.5 ${h?"text-blue-600":"text-muted-foreground"}`})}),m.jsx(Jl,{type:"button",variant:"ghost",size:"sm",onClick:()=>u(!0),disabled:R||y.length===0,tooltipContent:g("tooltip.history"),className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",children:m.jsx(pE,{className:"h-4 w-4"})}),m.jsx(Jl,{type:"button",variant:"ghost",size:"sm",onClick:te,disabled:R,tooltipContent:g("input.upload_image"),className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",children:m.jsx(ao,{className:"h-4 w-4"})}),m.jsx(Jl,{type:"button",variant:"ghost",size:"sm",onClick:J,disabled:R,tooltipContent:g("input.upload_file_types"),className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",children:m.jsx(Oi,{className:"h-4 w-4"})}),m.jsx("input",{type:"file",ref:A,className:"hidden",onChange:Q,accept:"image/*",multiple:!0,disabled:R}),m.jsx("input",{type:"file",ref:w,className:"hidden",onChange:X,accept:".pdf,.docx,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/*,.md,.markdown,.json,.csv,.xml,.yaml,.yml,.toml,.py,.js,.ts",multiple:!0,disabled:R}),m.jsx("div",{className:"w-px h-5 bg-border mx-1"}),j?m.jsx(Jl,{type:"button",variant:"default",size:"sm",tooltipContent:g("input.stop"),onClick:ge=>{ge.preventDefault(),a==null||a()},className:"h-8 w-8 p-0 rounded-xl shadow-sm","aria-label":"停止生成",children:m.jsx(AE,{className:"h-3.5 w-3.5 fill-current"})}):m.jsx(Jl,{type:"submit",variant:"default",size:"sm",tooltipContent:g("input.send"),disabled:R||!e.trim(),className:"h-8 w-8 p-0 rounded-xl shadow-sm","aria-label":R?"发送中...":"发送消息",children:m.jsx(bE,{className:"h-4 w-4"})})]})]})]})]})}const vo={requestCount:"next-ai-draw-io-request-count",requestDate:"next-ai-draw-io-request-date",tokenCount:"next-ai-draw-io-token-count",tokenDate:"next-ai-draw-io-token-date",tpmCount:"next-ai-draw-io-tpm-count",tpmMinute:"next-ai-draw-io-tpm-minute",accessCode:"next-ai-draw-io-access-code",aiProvider:"next-ai-draw-io-ai-provider",aiApiKey:"next-ai-draw-io-ai-api-key"};function p1e(){if(typeof window>"u")return{accessCode:"",aiProvider:"openai",aiBaseUrl:"",aiApiKey:"",aiModel:"",aiImageModel:"",aiImageProvider:"openai",aiImageBaseUrl:"",aiImageApiKey:""};const e=Go(),t=String(e.textApiKey||e.apiKey||"").trim(),n=String(e.textBaseUrl||e.baseUrl||"").trim(),r=String(e.textModel||e.chatModel||"").trim(),i=String(e.imageModel||e.imageModelLegacy||"").trim(),a=String(e.imageApiKey||e.apiKey||"").trim(),o=String(e.imageBaseUrl||e.baseUrl||"").trim();return{accessCode:localStorage.getItem(vo.accessCode)||"",aiProvider:String(e.textProvider||"openai"),aiBaseUrl:n,aiApiKey:t,aiModel:r,aiImageModel:i,aiImageProvider:String(e.imageProvider||"openai"),aiImageBaseUrl:o,aiImageApiKey:a}}const Gh=async e=>{try{await fetch("/api/log-file-parser",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({workspace:e.workspace,fileName:e.file.name,mimeType:e.file.type||"",fileSize:e.file.size||0,parserSource:e.parserSource,detail:e.detail||""}),keepalive:!0})}catch(t){console.warn("Failed to report file parser source",t)}};function dH(e="unknown"){const[t,n]=N.useState([]),[r,i]=N.useState(new Map),a=async o=>{n(o);for(const s of o)if((Il(s)||Vp(s)||Hu(s)||hL(s)||pL(s))&&!r.has(s)){i(c=>{const u=new Map(c);return u.set(s,{text:"",charCount:0,isExtracting:!0}),u});try{const c=Go(),u=String(c.fileParserApiToken||"").trim(),d="https://mineru.net",h=Il(s)||Vp(s),f=!!u&&h;let g,y=[];if(Il(s))if(g=await Kq(s),f)try{y=await vL(s,{apiBase:d,apiToken:u}),Gh({workspace:e,file:s,parserSource:"third_party",detail:"pdf"})}catch(v){console.error("Third-party parser failed, fallback to local PDF extraction:",v),y=await mL(s),Gh({workspace:e,file:s,parserSource:"third_party_fallback_local",detail:"pdf"})}else y=await mL(s),Gh({workspace:e,file:s,parserSource:"local",detail:"pdf"});else if(Vp(s))if(g=await Yq(s),f)try{y=await vL(s,{apiBase:d,apiToken:u}),Gh({workspace:e,file:s,parserSource:"third_party",detail:"word"})}catch(v){console.error("Third-party parser failed, fallback to local Word extraction:",v),y=await yL(s),Gh({workspace:e,file:s,parserSource:"third_party_fallback_local",detail:"word"})}else y=await yL(s),Gh({workspace:e,file:s,parserSource:"local",detail:"word"});else hL(s)?(g=await Zbe(s),y=await Kbe(s)):pL(s)?(g=await $be(s),y=await Ybe(s)):g=await $q(s);if(g.length>fL){const v=fL/1e3;Ln.error(`${s.name}: Content exceeds ${v}k character limit (${(g.length/1e3).toFixed(1)}k chars)`),i(A=>{const w=new Map(A);return w.delete(s),w}),n(A=>A.filter(w=>w!==s));continue}i(v=>{const A=new Map(v);return A.set(s,{text:g,charCount:g.length,isExtracting:!1,visualAssets:y}),A})}catch(c){console.error("Failed to extract text:",c),Ln.error(`Failed to read file: ${s.name}`),i(u=>{const d=new Map(u);return d.delete(s),d})}}i(s=>{const l=new Map(s);for(const c of s.keys())o.includes(c)||l.delete(c);return l})};return{files:t,pdfData:r,visualAssets:Array.from(r.values()).flatMap(o=>o.visualAssets||[]),handleFileChange:a,setFiles:n}}var fH={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},wL=Dt.createContext&&Dt.createContext(fH),g1e=["attr","size","title"];function m1e(e,t){if(e==null)return{};var n=y1e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function y1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function q1(){return q1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q1.apply(this,arguments)}function SL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function H1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SL(Object(n),!0).forEach(function(r){v1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function v1e(e,t,n){return t=x1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x1e(e){var t=b1e(e,"string");return typeof t=="symbol"?t:t+""}function b1e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hH(e){return e&&e.map((t,n)=>Dt.createElement(t.tag,H1({key:n},t.attr),hH(t.child)))}function A1e(e){return t=>Dt.createElement(w1e,q1({attr:H1({},e.attr)},t),hH(e.child))}function w1e(e){var t=n=>{var{attr:r,size:i,title:a}=e,o=m1e(e,g1e),s=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),Dt.createElement("svg",q1({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:H1(H1({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&Dt.createElement("title",null,a),e.children)};return wL!==void 0?Dt.createElement(wL.Consumer,null,n=>t(n)):t(fH)}function S1e(e){return A1e({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"},child:[]}]})(e)}function kL({limit:e,used:t}){const{t:n}=Yf(),r=Math.min(t/e*100,100);return m.jsxs("div",{className:"flex flex-col gap-3 w-full max-w-sm bg-background border border-border shadow-lg rounded-xl p-4 animate-in slide-in-from-bottom-5 duration-300",children:[m.jsxs("div",{className:"flex items-start justify-between gap-2",children:[m.jsxs("div",{children:[m.jsx("h3",{className:"font-semibold text-foreground",children:n("quota.limit.reached")}),m.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:n("quota.limit.desc").replace("{limit}",e.toString())})]}),m.jsx("div",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-amber-100 text-amber-600 shrink-0",children:m.jsx("span",{className:"text-xs font-bold",children:"!"})})]}),m.jsx("div",{className:"w-full h-1.5 bg-secondary rounded-full overflow-hidden",children:m.jsx("div",{className:"h-full bg-amber-500 rounded-full transition-all duration-500 ease-out",style:{width:`${r}%`}})}),m.jsxs("div",{className:"text-xs text-muted-foreground space-y-2",children:[m.jsx("p",{children:n("quota.limit.tip")}),m.jsx("p",{children:n("quota.limit.reset")})]}),m.jsx("div",{className:"flex items-center gap-2",children:m.jsxs("a",{href:"https://github.com/sponsors/DayuanJiang",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg border border-border text-foreground hover:bg-muted transition-colors",children:[m.jsx(S1e,{className:"w-3.5 h-3.5"}),n("quota.sponsor")]})})]})}function k1e(e){const{dailyRequestLimit:t,dailyTokenLimit:n,tpmLimit:r}=e,i=N.useCallback(()=>{const A=localStorage.getItem("unified_ai_workspace_config");if(A)try{const _=JSON.parse(A)||{};if(String(_.textApiKey||_.apiKey||"").trim()||String(_.imageApiKey||"").trim())return!0}catch{}const w=localStorage.getItem(vo.aiProvider),S=localStorage.getItem(vo.aiApiKey);return!!(w&&S)},[]),a=A=>{const w=parseInt(localStorage.getItem(A)||"0",10);return Number.isNaN(w)?0:w},o=N.useCallback((A,w,S,_)=>()=>{if(i())return{allowed:!0,remaining:-1,used:0};if(_<=0)return{allowed:!0,remaining:-1,used:0};const E=A(),T=localStorage.getItem(w);let D=a(S);return T!==E&&(D=0,localStorage.setItem(w,E),localStorage.setItem(S,"0")),{allowed:D<_,remaining:_-D,used:D}},[i]),s=N.useCallback((A,w,S,_=!1)=>(E=1)=>{if(_&&(!Number.isFinite(E)||E<=0))return;const T=A(),D=localStorage.getItem(w);let I=a(S);D!==T&&(I=0,localStorage.setItem(w,T)),localStorage.setItem(S,String(I+E))},[]),l=N.useMemo(()=>o(()=>new Date().toDateString(),vo.requestDate,vo.requestCount,t),[o,t]),c=N.useMemo(()=>s(()=>new Date().toDateString(),vo.requestDate,vo.requestCount,!1),[s]),u=N.useCallback(()=>{Ln.custom(A=>m.jsx(kL,{used:t,limit:t}),{duration:15e3})},[t]),d=N.useMemo(()=>o(()=>new Date().toDateString(),vo.tokenDate,vo.tokenCount,n),[o,n]),h=N.useMemo(()=>s(()=>new Date().toDateString(),vo.tokenDate,vo.tokenCount,!0),[s]),f=N.useCallback(A=>{Ln.custom(w=>m.jsx(kL,{used:A,limit:n}),{duration:15e3})},[n]),g=N.useMemo(()=>o(()=>Math.floor(Date.now()/6e4).toString(),vo.tpmMinute,vo.tpmCount,r),[o,r]),y=N.useMemo(()=>s(()=>Math.floor(Date.now()/6e4).toString(),vo.tpmMinute,vo.tpmCount,!0),[s]),v=N.useCallback(()=>{const A=r>=1e3?`${r/1e3}k`:String(r);Ln.error(`Rate limit reached (${A} tokens/min). Please wait 60 seconds before sending another request.`,{duration:8e3})},[r]);return{hasOwnApiKey:i,checkDailyLimit:l,checkTokenLimit:d,checkTPMLimit:g,incrementRequestCount:c,incrementTokenCount:h,incrementTPMCount:y,showQuotaLimitToast:u,showTokenLimitToast:f,showTPMLimitToast:v}}function pH(e){return new DOMParser().parseFromString(e,"text/xml")}function D1e(e){const t=e.querySelector("mxGraphModel > root");if(!t)throw new Error("Current diagram XML is missing mxGraphModel/root.");return t}function gH(e){const t=e.querySelector("parsererror");return t?String(t.textContent||"Invalid XML").trim():null}function C1e(e,t){const n=`<root>${String(e||"").trim()}</root>`,r=pH(n);if(gH(r))throw new Error(`Operation XML for cell "${t}" is invalid.`);const a=Array.from(r.querySelectorAll("root > mxCell"));if(a.length!==1)throw new Error(`Operation XML for cell "${t}" must contain exactly one mxCell element.`);const o=a[0];if(o.getAttribute("id")!==t)throw new Error(`Operation cell_id "${t}" does not match mxCell id "${o.getAttribute("id")||""}".`);return o}function T1e(e,t){const n=new Set([t]);let r=!0;for(;r;)r=!1,Array.from(e.querySelectorAll("mxCell")).forEach(i=>{const a=i.getAttribute("id"),o=i.getAttribute("parent");!a||!o||n.has(o)&&!n.has(a)&&(n.add(a),r=!0)});return n}function mH(e,t){var o;if(!Array.isArray(t)||t.length===0)throw new Error("No diagram operations provided.");const n=pH(e);if(gH(n))throw new Error("Current diagram XML is invalid and cannot be edited.");const i=D1e(n),a=new XMLSerializer;for(const s of t){const l=String((s==null?void 0:s.cell_id)||"").trim();if(!l)throw new Error("Each operation requires a non-empty cell_id.");if(s.operation==="delete"){if(!i.querySelector(`mxCell[id="${l}"]`))throw new Error(`Cell "${l}" was not found.`);const h=T1e(i,l);Array.from(i.querySelectorAll("mxCell")).forEach(f=>{var A;const g=f.getAttribute("id"),y=f.getAttribute("source"),v=f.getAttribute("target");(g&&h.has(g)||y&&h.has(y)||v&&h.has(v))&&((A=f.parentNode)==null||A.removeChild(f))});continue}if(!String((s==null?void 0:s.new_xml)||"").trim())throw new Error(`Operation "${s.operation}" for cell "${l}" requires new_xml.`);const c=C1e(s.new_xml||"",l),u=n.importNode(c,!0);if(s.operation==="update"){const d=i.querySelector(`mxCell[id="${l}"]`);if(!d)throw new Error(`Cell "${l}" was not found.`);(o=d.parentNode)==null||o.replaceChild(u,d);continue}if(s.operation==="add"){if(i.querySelector(`mxCell[id="${l}"]`))throw new Error(`Cell "${l}" already exists.`);i.appendChild(u);continue}throw new Error(`Unsupported operation "${String(s.operation)}".`)}return a.serializeToString(n)}function Dp(e){const t=String(e||"").trim();if(!t)return!1;const n=t.lastIndexOf("/>"),r=t.lastIndexOf("</mxCell>"),i=Math.max(n,r);if(i===-1)return!1;const a=r>n?9:2,o=t.slice(i+a);return/^(\s*<\/[^>]+>)*\s*$/.test(o)}function _1e(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const E1e=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,N1e=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,F1e={};function DL(e,t){return(F1e.jsx?N1e:E1e).test(e)}const R1e=/[ \t\n\f\r]/g;function P1e(e){return typeof e=="object"?e.type==="text"?CL(e.value):!1:CL(e)}function CL(e){return e.replace(R1e,"")===""}class Cy{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Cy.prototype.normal={};Cy.prototype.property={};Cy.prototype.space=void 0;function yH(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Cy(n,r,t)}function x_(e){return e.toLowerCase()}class $o{constructor(t,n){this.attribute=n,this.property=t}}$o.prototype.attribute="";$o.prototype.booleanish=!1;$o.prototype.boolean=!1;$o.prototype.commaOrSpaceSeparated=!1;$o.prototype.commaSeparated=!1;$o.prototype.defined=!1;$o.prototype.mustUseProperty=!1;$o.prototype.number=!1;$o.prototype.overloadedBoolean=!1;$o.prototype.property="";$o.prototype.spaceSeparated=!1;$o.prototype.space=void 0;let I1e=0;const Nr=nh(),xa=nh(),b_=nh(),It=nh(),Ri=nh(),Gp=nh(),cs=nh();function nh(){return 2**++I1e}const A_=Object.freeze(Object.defineProperty({__proto__:null,boolean:Nr,booleanish:xa,commaOrSpaceSeparated:cs,commaSeparated:Gp,number:It,overloadedBoolean:b_,spaceSeparated:Ri},Symbol.toStringTag,{value:"Module"})),BD=Object.keys(A_);class L3 extends $o{constructor(t,n,r,i){let a=-1;if(super(t,n),TL(this,"space",i),typeof r=="number")for(;++a<BD.length;){const o=BD[a];TL(this,BD[a],(r&A_[o])===A_[o])}}}L3.prototype.defined=!0;function TL(e,t,n){n&&(e[t]=n)}function _g(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new L3(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[x_(r)]=r,n[x_(a.attribute)]=r}return new Cy(t,n,e.space)}const vH=_g({properties:{ariaActiveDescendant:null,ariaAtomic:xa,ariaAutoComplete:null,ariaBusy:xa,ariaChecked:xa,ariaColCount:It,ariaColIndex:It,ariaColSpan:It,ariaControls:Ri,ariaCurrent:null,ariaDescribedBy:Ri,ariaDetails:null,ariaDisabled:xa,ariaDropEffect:Ri,ariaErrorMessage:null,ariaExpanded:xa,ariaFlowTo:Ri,ariaGrabbed:xa,ariaHasPopup:null,ariaHidden:xa,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ri,ariaLevel:It,ariaLive:null,ariaModal:xa,ariaMultiLine:xa,ariaMultiSelectable:xa,ariaOrientation:null,ariaOwns:Ri,ariaPlaceholder:null,ariaPosInSet:It,ariaPressed:xa,ariaReadOnly:xa,ariaRelevant:null,ariaRequired:xa,ariaRoleDescription:Ri,ariaRowCount:It,ariaRowIndex:It,ariaRowSpan:It,ariaSelected:xa,ariaSetSize:It,ariaSort:null,ariaValueMax:It,ariaValueMin:It,ariaValueNow:It,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function xH(e,t){return t in e?e[t]:t}function bH(e,t){return xH(e,t.toLowerCase())}const M1e=_g({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gp,acceptCharset:Ri,accessKey:Ri,action:null,allow:null,allowFullScreen:Nr,allowPaymentRequest:Nr,allowUserMedia:Nr,alt:null,as:null,async:Nr,autoCapitalize:null,autoComplete:Ri,autoFocus:Nr,autoPlay:Nr,blocking:Ri,capture:null,charSet:null,checked:Nr,cite:null,className:Ri,cols:It,colSpan:null,content:null,contentEditable:xa,controls:Nr,controlsList:Ri,coords:It|Gp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Nr,defer:Nr,dir:null,dirName:null,disabled:Nr,download:b_,draggable:xa,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Nr,formTarget:null,headers:Ri,height:It,hidden:b_,high:It,href:null,hrefLang:null,htmlFor:Ri,httpEquiv:Ri,id:null,imageSizes:null,imageSrcSet:null,inert:Nr,inputMode:null,integrity:null,is:null,isMap:Nr,itemId:null,itemProp:Ri,itemRef:Ri,itemScope:Nr,itemType:Ri,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Nr,low:It,manifest:null,max:null,maxLength:It,media:null,method:null,min:null,minLength:It,multiple:Nr,muted:Nr,name:null,nonce:null,noModule:Nr,noValidate:Nr,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Nr,optimum:It,pattern:null,ping:Ri,placeholder:null,playsInline:Nr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Nr,referrerPolicy:null,rel:Ri,required:Nr,reversed:Nr,rows:It,rowSpan:It,sandbox:Ri,scope:null,scoped:Nr,seamless:Nr,selected:Nr,shadowRootClonable:Nr,shadowRootDelegatesFocus:Nr,shadowRootMode:null,shape:null,size:It,sizes:null,slot:null,span:It,spellCheck:xa,src:null,srcDoc:null,srcLang:null,srcSet:null,start:It,step:null,style:null,tabIndex:It,target:null,title:null,translate:null,type:null,typeMustMatch:Nr,useMap:null,value:xa,width:It,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ri,axis:null,background:null,bgColor:null,border:It,borderColor:null,bottomMargin:It,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Nr,declare:Nr,event:null,face:null,frame:null,frameBorder:null,hSpace:It,leftMargin:It,link:null,longDesc:null,lowSrc:null,marginHeight:It,marginWidth:It,noResize:Nr,noHref:Nr,noShade:Nr,noWrap:Nr,object:null,profile:null,prompt:null,rev:null,rightMargin:It,rules:null,scheme:null,scrolling:xa,standby:null,summary:null,text:null,topMargin:It,valueType:null,version:null,vAlign:null,vLink:null,vSpace:It,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Nr,disableRemotePlayback:Nr,prefix:null,property:null,results:It,security:null,unselectable:null},space:"html",transform:bH}),U1e=_g({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:cs,accentHeight:It,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:It,amplitude:It,arabicForm:null,ascent:It,attributeName:null,attributeType:null,azimuth:It,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:It,by:null,calcMode:null,capHeight:It,className:Ri,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:It,diffuseConstant:It,direction:null,display:null,dur:null,divisor:It,dominantBaseline:null,download:Nr,dx:null,dy:null,edgeMode:null,editable:null,elevation:It,enableBackground:null,end:null,event:null,exponent:It,externalResourcesRequired:null,fill:null,fillOpacity:It,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Gp,g2:Gp,glyphName:Gp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:It,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:It,horizOriginX:It,horizOriginY:It,id:null,ideographic:It,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:It,k:It,k1:It,k2:It,k3:It,k4:It,kernelMatrix:cs,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:It,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:It,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:It,overlineThickness:It,paintOrder:null,panose1:null,path:null,pathLength:It,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ri,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:It,pointsAtY:It,pointsAtZ:It,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:cs,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:cs,rev:cs,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:cs,requiredFeatures:cs,requiredFonts:cs,requiredFormats:cs,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:It,specularExponent:It,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:It,strikethroughThickness:It,string:null,stroke:null,strokeDashArray:cs,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:It,strokeOpacity:It,strokeWidth:null,style:null,surfaceScale:It,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:cs,tabIndex:It,tableValues:null,target:null,targetX:It,targetY:It,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:cs,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:It,underlineThickness:It,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:It,values:null,vAlphabetic:It,vMathematical:It,vectorEffect:null,vHanging:It,vIdeographic:It,version:null,vertAdvY:It,vertOriginX:It,vertOriginY:It,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:It,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xH}),AH=_g({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),wH=_g({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:bH}),SH=_g({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),L1e={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},O1e=/[A-Z]/g,_L=/-[a-z]/g,j1e=/^data[-\w.:]+$/i;function B1e(e,t){const n=x_(t);let r=t,i=$o;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&j1e.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(_L,W1e);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!_L.test(a)){let o=a.replace(O1e,z1e);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=L3}return new i(r,t)}function z1e(e){return"-"+e.toLowerCase()}function W1e(e){return e.charAt(1).toUpperCase()}const V1e=yH([vH,M1e,AH,wH,SH],"html"),O3=yH([vH,U1e,AH,wH,SH],"svg");function G1e(e){return e.join(" ").trim()}var qh={},zD,EL;function q1e(){if(EL)return zD;EL=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`-`,c="/",u="*",d="",h="comment",f="declaration";function g(v,A){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];A=A||{};var w=1,S=1;function _(P){var Z=P.match(t);Z&&(w+=Z.length);var Q=P.lastIndexOf(l);S=~Q?P.length-Q:S+P.length}function E(){var P={line:w,column:S};return function(Z){return Z.position=new T(P),j(),Z}}function T(P){this.start=P,this.end={line:w,column:S},this.source=A.source}T.prototype.content=v;function D(P){var Z=new Error(A.source+":"+w+":"+S+": "+P);if(Z.reason=P,Z.filename=A.source,Z.line=w,Z.column=S,Z.source=v,!A.silent)throw Z}function I(P){var Z=P.exec(v);if(Z){var Q=Z[0];return _(Q),v=v.slice(Q.length),Z}}function j(){I(n)}function R(P){var Z;for(P=P||[];Z=z();)Z!==!1&&P.push(Z);return P}function z(){var P=E();if(!(c!=v.charAt(0)||u!=v.charAt(1))){for(var Z=2;d!=v.charAt(Z)&&(u!=v.charAt(Z)||c!=v.charAt(Z+1));)++Z;if(Z+=2,d===v.charAt(Z-1))return D("End of comment missing");var Q=v.slice(2,Z-2);return S+=2,_(Q),v=v.slice(Z),S+=2,P({type:h,comment:Q})}}function B(){var P=E(),Z=I(r);if(Z){if(z(),!I(i))return D("property missing ':'");var Q=I(a),X=P({type:f,property:y(Z[0].replace(e,d)),value:Q?y(Q[0].replace(e,d)):d});return I(o),X}}function W(){var P=[];R(P);for(var Z;Z=B();)Z!==!1&&(P.push(Z),R(P));return P}return j(),W()}function y(v){return v?v.replace(s,d):d}return zD=g,zD}var NL;function H1e(){if(NL)return qh;NL=1;var e=qh&&qh.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(qh,"__esModule",{value:!0}),qh.default=n;const t=e(q1e());function n(r,i){let a=null;if(!r||typeof r!="string")return a;const o=(0,t.default)(r),s=typeof i=="function";return o.forEach(l=>{if(l.type!=="declaration")return;const{property:c,value:u}=l;s?i(c,u,l):u&&(a=a||{},a[c]=u)}),a}return qh}var Sm={},FL;function X1e(){if(FL)return Sm;FL=1,Object.defineProperty(Sm,"__esModule",{value:!0}),Sm.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(c){return!c||n.test(c)||e.test(c)},o=function(c,u){return u.toUpperCase()},s=function(c,u){return"".concat(u,"-")},l=function(c,u){return u===void 0&&(u={}),a(c)?c:(c=c.toLowerCase(),u.reactCompat?c=c.replace(i,s):c=c.replace(r,s),c.replace(t,o))};return Sm.camelCase=l,Sm}var km,RL;function Z1e(){if(RL)return km;RL=1;var e=km&&km.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(H1e()),n=X1e();function r(i,a){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(s,l){s&&l&&(o[(0,n.camelCase)(s,a)]=l)}),o}return r.default=r,km=r,km}var K1e=Z1e();const $1e=Qc(K1e),kH=DH("end"),j3=DH("start");function DH(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Y1e(e){const t=j3(e),n=kH(e);if(t&&n)return{start:t,end:n}}function f0(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?PL(e.position):"start"in e||"end"in e?PL(e):"line"in e||"column"in e?w_(e):""}function w_(e){return IL(e&&e.line)+":"+IL(e&&e.column)}function PL(e){return w_(e&&e.start)+"-"+w_(e&&e.end)}function IL(e){return e&&typeof e=="number"?e:1}class fo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=f0(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}fo.prototype.file="";fo.prototype.name="";fo.prototype.reason="";fo.prototype.message="";fo.prototype.stack="";fo.prototype.column=void 0;fo.prototype.line=void 0;fo.prototype.ancestors=void 0;fo.prototype.cause=void 0;fo.prototype.fatal=void 0;fo.prototype.place=void 0;fo.prototype.ruleId=void 0;fo.prototype.source=void 0;const B3={}.hasOwnProperty,J1e=new Map,Q1e=/[A-Z]/g,eAe=new Set(["table","tbody","thead","tfoot","tr"]),tAe=new Set(["td","th"]),CH="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function nAe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=uAe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=cAe(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?O3:V1e,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=TH(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function TH(e,t,n){if(t.type==="element")return rAe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return iAe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return oAe(e,t,n);if(t.type==="mdxjsEsm")return aAe(e,t);if(t.type==="root")return sAe(e,t,n);if(t.type==="text")return lAe(e,t)}function rAe(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=O3,e.schema=i),e.ancestors.push(t);const a=EH(e,t.tagName,!1),o=dAe(e,t);let s=W3(e,t);return eAe.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!P1e(l):!0})),_H(e,o,a,t),z3(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function iAe(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}X0(e,t.position)}function aAe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);X0(e,t.position)}function oAe(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=O3,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:EH(e,t.name,!0),o=fAe(e,t),s=W3(e,t);return _H(e,o,a,t),z3(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function sAe(e,t,n){const r={};return z3(r,W3(e,t)),e.create(t,e.Fragment,r,n)}function lAe(e,t){return t.value}function _H(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function z3(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function cAe(e,t,n){return r;function r(i,a,o,s){const c=Array.isArray(o.children)?n:t;return s?c(a,o,s):c(a,o)}}function uAe(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=j3(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function dAe(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&B3.call(t.properties,i)){const a=hAe(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&tAe.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function fAe(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else X0(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else X0(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function W3(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:J1e;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const c=i.get(l)||0;o=l+"-"+c,i.set(l,c+1)}}const s=TH(e,a,o);s!==void 0&&n.push(s)}return n}function hAe(e,t,n){const r=B1e(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?_1e(n):G1e(n)),r.property==="style"){let i=typeof n=="object"?n:pAe(e,String(n));return e.stylePropertyNameCase==="css"&&(i=gAe(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?L1e[r.property]||r.property:r.attribute,n]}}function pAe(e,t){try{return $1e(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new fo("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=CH+"#cannot-parse-style-attribute",i}}function EH(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,o;for(;++a<i.length;){const s=DL(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}r=o}else r=DL(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return B3.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);X0(e)}function X0(e,t){const n=new fo("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=CH+"#cannot-handle-mdx-estrees-without-createevaluater",n}function gAe(e){const t={};let n;for(n in e)B3.call(e,n)&&(t[mAe(n)]=e[n]);return t}function mAe(e){let t=e.replace(Q1e,yAe);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function yAe(e){return"-"+e.toLowerCase()}const WD={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},vAe={};function V3(e,t){const n=vAe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return NH(e,r,i)}function NH(e,t,n){if(xAe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ML(e.children,t,n)}return Array.isArray(e)?ML(e,t,n):""}function ML(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=NH(e[i],t,n);return r.join("")}function xAe(e){return!!(e&&typeof e=="object")}const UL=document.createElement("i");function G3(e){const t="&"+e+";";UL.innerHTML=t;const n=UL.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function vs(e,t,n,r){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Gs(e,t){return e.length>0?(vs(e,e.length,0,t),e):t}const LL={}.hasOwnProperty;function FH(e){const t={};let n=-1;for(;++n<e.length;)bAe(t,e[n]);return t}function bAe(e,t){let n;for(n in t){const i=(LL.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){LL.call(i,o)||(i[o]=[]);const s=a[o];AAe(i[o],Array.isArray(s)?s:s?[s]:[])}}}function AAe(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);vs(e,0,0,r)}function RH(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ml(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ao=Sd(/[A-Za-z]/),so=Sd(/[\dA-Za-z]/),wAe=Sd(/[#-'*+\--9=?A-Z^-~]/);function X1(e){return e!==null&&(e<32||e===127)}const S_=Sd(/\d/),SAe=Sd(/[\dA-Fa-f]/),kAe=Sd(/[!-/:-@[-`{-~]/);function Vn(e){return e!==null&&e<-2}function Ti(e){return e!==null&&(e<0||e===32)}function zr(e){return e===-2||e===-1||e===32}const _w=Sd(new RegExp("\\p{P}|\\p{S}","u")),Wf=Sd(/\s/);function Sd(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Eg(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(a===37&&so(e.charCodeAt(n+1))&&so(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Qr(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return zr(l)?(e.enter(n),s(l)):t(l)}function s(l){return zr(l)&&a++<i?(e.consume(l),s):(e.exit(n),t(l))}}const DAe={tokenize:CAe};function CAe(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Qr(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Vn(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const TAe={tokenize:_Ae},OL={tokenize:EAe};function _Ae(e){const t=this,n=[];let r=0,i,a,o;return s;function s(S){if(r<n.length){const _=n[r];return t.containerState=_[1],e.attempt(_[0].continuation,l,c)(S)}return c(S)}function l(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&w();const _=t.events.length;let E=_,T;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){T=t.events[E][1].end;break}A(r);let D=_;for(;D<t.events.length;)t.events[D][1].end={...T},D++;return vs(t.events,E+1,0,t.events.slice(_)),t.events.length=D,c(S)}return s(S)}function c(S){if(r===n.length){if(!i)return h(S);if(i.currentConstruct&&i.currentConstruct.concrete)return g(S);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(OL,u,d)(S)}function u(S){return i&&w(),A(r),h(S)}function d(S){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,g(S)}function h(S){return t.containerState={},e.attempt(OL,f,g)(S)}function f(S){return r++,n.push([t.currentConstruct,t.containerState]),h(S)}function g(S){if(S===null){i&&w(),A(0),e.consume(S);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),y(S)}function y(S){if(S===null){v(e.exit("chunkFlow"),!0),A(0),e.consume(S);return}return Vn(S)?(e.consume(S),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(S),y)}function v(S,_){const E=t.sliceStream(S);if(_&&E.push(null),S.previous=a,a&&(a.next=S),a=S,i.defineSkip(S.start),i.write(E),t.parser.lazy[S.start.line]){let T=i.events.length;for(;T--;)if(i.events[T][1].start.offset<o&&(!i.events[T][1].end||i.events[T][1].end.offset>o))return;const D=t.events.length;let I=D,j,R;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(j){R=t.events[I][1].end;break}j=!0}for(A(r),T=D;T<t.events.length;)t.events[T][1].end={...R},T++;vs(t.events,I+1,0,t.events.slice(D)),t.events.length=T}}function A(S){let _=n.length;for(;_-- >S;){const E=n[_];t.containerState=E[1],E[0].exit.call(t,e)}n.length=S}function w(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function EAe(e,t,n){return Qr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ag(e){if(e===null||Ti(e)||Wf(e))return 1;if(_w(e))return 2}function Ew(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const k_={name:"attention",resolveAll:NAe,tokenize:FAe};function NAe(e,t){let n=-1,r,i,a,o,s,l,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},h={...e[n][1].start};jL(d,-l),jL(h,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Gs(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Gs(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=Gs(c,Ew(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Gs(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=Gs(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,vs(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function FAe(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ag(r);let a;return o;function o(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const c=e.exit("attentionSequence"),u=ag(l),d=!u||u===2&&i||n.includes(l),h=!i||i===2&&u||n.includes(r);return c._open=!!(a===42?d:d&&(i||!h)),c._close=!!(a===42?h:h&&(u||!d)),t(l)}}function jL(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const RAe={name:"autolink",tokenize:PAe};function PAe(e,t,n){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(f){return Ao(f)?(e.consume(f),o):f===64?n(f):c(f)}function o(f){return f===43||f===45||f===46||so(f)?(r=1,s(f)):c(f)}function s(f){return f===58?(e.consume(f),r=0,l):(f===43||f===45||f===46||so(f))&&r++<32?(e.consume(f),s):(r=0,c(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||X1(f)?n(f):(e.consume(f),l)}function c(f){return f===64?(e.consume(f),u):wAe(f)?(e.consume(f),c):n(f)}function u(f){return so(f)?d(f):n(f)}function d(f){return f===46?(e.consume(f),r=0,u):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):h(f)}function h(f){if((f===45||so(f))&&r++<63){const g=f===45?h:d;return e.consume(f),g}return n(f)}}const Ty={partial:!0,tokenize:IAe};function IAe(e,t,n){return r;function r(a){return zr(a)?Qr(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||Vn(a)?t(a):n(a)}}const PH={continuation:{tokenize:UAe},exit:LAe,name:"blockQuote",tokenize:MAe};function MAe(e,t,n){const r=this;return i;function i(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return n(o)}function a(o){return zr(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function UAe(e,t,n){const r=this;return i;function i(o){return zr(o)?Qr(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(PH,t,n)(o)}}function LAe(e){e.exit("blockQuote")}const IH={name:"characterEscape",tokenize:OAe};function OAe(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return kAe(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const MH={name:"characterReference",tokenize:jAe};function jAe(e,t,n){const r=this;let i=0,a,o;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,o=so,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=SAe,u):(e.enter("characterReferenceValue"),a=7,o=S_,u(d))}function u(d){if(d===59&&i){const h=e.exit("characterReferenceValue");return o===so&&!G3(r.sliceSerialize(h))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(d)&&i++<a?(e.consume(d),u):n(d)}}const BL={partial:!0,tokenize:zAe},zL={concrete:!0,name:"codeFenced",tokenize:BAe};function BAe(e,t,n){const r=this,i={partial:!0,tokenize:E};let a=0,o=0,s;return l;function l(T){return c(T)}function c(T){const D=r.events[r.events.length-1];return a=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,s=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(T)}function u(T){return T===s?(o++,e.consume(T),u):o<3?n(T):(e.exit("codeFencedFenceSequence"),zr(T)?Qr(e,d,"whitespace")(T):d(T))}function d(T){return T===null||Vn(T)?(e.exit("codeFencedFence"),r.interrupt?t(T):e.check(BL,y,_)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(T))}function h(T){return T===null||Vn(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(T)):zr(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Qr(e,f,"whitespace")(T)):T===96&&T===s?n(T):(e.consume(T),h)}function f(T){return T===null||Vn(T)?d(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(T))}function g(T){return T===null||Vn(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(T)):T===96&&T===s?n(T):(e.consume(T),g)}function y(T){return e.attempt(i,_,v)(T)}function v(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),A}function A(T){return a>0&&zr(T)?Qr(e,w,"linePrefix",a+1)(T):w(T)}function w(T){return T===null||Vn(T)?e.check(BL,y,_)(T):(e.enter("codeFlowValue"),S(T))}function S(T){return T===null||Vn(T)?(e.exit("codeFlowValue"),w(T)):(e.consume(T),S)}function _(T){return e.exit("codeFenced"),t(T)}function E(T,D,I){let j=0;return R;function R(Z){return T.enter("lineEnding"),T.consume(Z),T.exit("lineEnding"),z}function z(Z){return T.enter("codeFencedFence"),zr(Z)?Qr(T,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):B(Z)}function B(Z){return Z===s?(T.enter("codeFencedFenceSequence"),W(Z)):I(Z)}function W(Z){return Z===s?(j++,T.consume(Z),W):j>=o?(T.exit("codeFencedFenceSequence"),zr(Z)?Qr(T,P,"whitespace")(Z):P(Z)):I(Z)}function P(Z){return Z===null||Vn(Z)?(T.exit("codeFencedFence"),D(Z)):I(Z)}}}function zAe(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const VD={name:"codeIndented",tokenize:VAe},WAe={partial:!0,tokenize:GAe};function VAe(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Qr(e,a,"linePrefix",5)(c)}function a(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):Vn(c)?e.attempt(WAe,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||Vn(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function GAe(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Vn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Qr(e,a,"linePrefix",5)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Vn(o)?i(o):n(o)}}const qAe={name:"codeText",previous:XAe,resolve:HAe,tokenize:ZAe};function HAe(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function XAe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ZAe(e,t,n){let r=0,i,a;return o;function o(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(a=e.enter("codeTextSequence"),i=0,u(d)):Vn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||Vn(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(a.type="codeTextData",c(d))}}class KAe{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Dm(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Dm(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Dm(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Dm(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Dm(this.left,n.reverse())}}}function Dm(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function UH(e){const t={};let n=-1,r,i,a,o,s,l,c;const u=new KAe(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,$Ae(u,n)),n=t[n],c=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return vs(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function $Ae(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],c={};let u,d,h=-1,f=n,g=0,y=0;const v=[y];for(;f;){for(;e.get(++i)[1]!==f;);a.push(i),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++h<s.length;)s[h][0]==="exit"&&s[h-1][0]==="enter"&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(y=h+1,v.push(y),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):v.pop(),h=v.length;h--;){const A=s.slice(v[h],v[h+1]),w=a.pop();l.push([w,w+A.length-1]),e.splice(w,2,A)}for(l.reverse(),h=-1;++h<l.length;)c[g+l[h][0]]=g+l[h][1],g+=l[h][1]-l[h][0]-1;return c}const YAe={resolve:QAe,tokenize:ewe},JAe={partial:!0,tokenize:twe};function QAe(e){return UH(e),e}function ewe(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):Vn(s)?e.check(JAe,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function twe(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Qr(e,a,"linePrefix")}function a(o){if(o===null||Vn(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function LH(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(A){return A===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(A),e.exit(a),h):A===null||A===32||A===41||X1(A)?n(A):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(A))}function h(A){return A===62?(e.enter(a),e.consume(A),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(A))}function f(A){return A===62?(e.exit("chunkString"),e.exit(s),h(A)):A===null||A===60||Vn(A)?n(A):(e.consume(A),A===92?g:f)}function g(A){return A===60||A===62||A===92?(e.consume(A),f):f(A)}function y(A){return!u&&(A===null||A===41||Ti(A))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(A)):u<c&&A===40?(e.consume(A),u++,y):A===41?(e.consume(A),u--,y):A===null||A===32||A===40||X1(A)?n(A):(e.consume(A),A===92?v:y)}function v(A){return A===40||A===41||A===92?(e.consume(A),y):y(A)}}function OH(e,t,n,r,i,a){const o=this;let s=0,l;return c;function c(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(a),u}function u(f){return s>999||f===null||f===91||f===93&&!l||f===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(f):f===93?(e.exit(a),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):Vn(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||Vn(f)||s++>999?(e.exit("chunkString"),u(f)):(e.consume(f),l||(l=!zr(f)),f===92?h:d)}function h(f){return f===91||f===92||f===93?(e.consume(f),s++,d):d(f)}}function jH(e,t,n,r,i,a){let o;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,l):n(h)}function l(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(a),c(h))}function c(h){return h===o?(e.exit(a),l(o)):h===null?n(h):Vn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Qr(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(h){return h===o||h===null||Vn(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?d:u)}function d(h){return h===o||h===92?(e.consume(h),u):u(h)}}function h0(e,t){let n;return r;function r(i){return Vn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):zr(i)?Qr(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const nwe={name:"definition",tokenize:iwe},rwe={partial:!0,tokenize:awe};function iwe(e,t,n){const r=this;let i;return a;function a(f){return e.enter("definition"),o(f)}function o(f){return OH.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function s(f){return i=Ml(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):n(f)}function l(f){return Ti(f)?h0(e,c)(f):c(f)}function c(f){return LH(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function u(f){return e.attempt(rwe,d,d)(f)}function d(f){return zr(f)?Qr(e,h,"whitespace")(f):h(f)}function h(f){return f===null||Vn(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function awe(e,t,n){return r;function r(s){return Ti(s)?h0(e,i)(s):n(s)}function i(s){return jH(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return zr(s)?Qr(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Vn(s)?t(s):n(s)}}const owe={name:"hardBreakEscape",tokenize:swe};function swe(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Vn(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const lwe={name:"headingAtx",resolve:cwe,tokenize:uwe};function cwe(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},vs(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function uwe(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),a(u)}function a(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||Ti(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||Vn(u)?(e.exit("atxHeading"),t(u)):zr(u)?Qr(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||Ti(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const dwe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],WL=["pre","script","style","textarea"],fwe={concrete:!0,name:"htmlFlow",resolveTo:gwe,tokenize:mwe},hwe={partial:!0,tokenize:vwe},pwe={partial:!0,tokenize:ywe};function gwe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function mwe(e,t,n){const r=this;let i,a,o,s,l;return c;function c(G){return u(G)}function u(G){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(G),d}function d(G){return G===33?(e.consume(G),h):G===47?(e.consume(G),a=!0,y):G===63?(e.consume(G),i=3,r.interrupt?t:J):Ao(G)?(e.consume(G),o=String.fromCharCode(G),v):n(G)}function h(G){return G===45?(e.consume(G),i=2,f):G===91?(e.consume(G),i=5,s=0,g):Ao(G)?(e.consume(G),i=4,r.interrupt?t:J):n(G)}function f(G){return G===45?(e.consume(G),r.interrupt?t:J):n(G)}function g(G){const xe="CDATA[";return G===xe.charCodeAt(s++)?(e.consume(G),s===xe.length?r.interrupt?t:B:g):n(G)}function y(G){return Ao(G)?(e.consume(G),o=String.fromCharCode(G),v):n(G)}function v(G){if(G===null||G===47||G===62||Ti(G)){const xe=G===47,ge=o.toLowerCase();return!xe&&!a&&WL.includes(ge)?(i=1,r.interrupt?t(G):B(G)):dwe.includes(o.toLowerCase())?(i=6,xe?(e.consume(G),A):r.interrupt?t(G):B(G)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(G):a?w(G):S(G))}return G===45||so(G)?(e.consume(G),o+=String.fromCharCode(G),v):n(G)}function A(G){return G===62?(e.consume(G),r.interrupt?t:B):n(G)}function w(G){return zr(G)?(e.consume(G),w):R(G)}function S(G){return G===47?(e.consume(G),R):G===58||G===95||Ao(G)?(e.consume(G),_):zr(G)?(e.consume(G),S):R(G)}function _(G){return G===45||G===46||G===58||G===95||so(G)?(e.consume(G),_):E(G)}function E(G){return G===61?(e.consume(G),T):zr(G)?(e.consume(G),E):S(G)}function T(G){return G===null||G===60||G===61||G===62||G===96?n(G):G===34||G===39?(e.consume(G),l=G,D):zr(G)?(e.consume(G),T):I(G)}function D(G){return G===l?(e.consume(G),l=null,j):G===null||Vn(G)?n(G):(e.consume(G),D)}function I(G){return G===null||G===34||G===39||G===47||G===60||G===61||G===62||G===96||Ti(G)?E(G):(e.consume(G),I)}function j(G){return G===47||G===62||zr(G)?S(G):n(G)}function R(G){return G===62?(e.consume(G),z):n(G)}function z(G){return G===null||Vn(G)?B(G):zr(G)?(e.consume(G),z):n(G)}function B(G){return G===45&&i===2?(e.consume(G),Q):G===60&&i===1?(e.consume(G),X):G===62&&i===4?(e.consume(G),ee):G===63&&i===3?(e.consume(G),J):G===93&&i===5?(e.consume(G),te):Vn(G)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(hwe,le,W)(G)):G===null||Vn(G)?(e.exit("htmlFlowData"),W(G)):(e.consume(G),B)}function W(G){return e.check(pwe,P,le)(G)}function P(G){return e.enter("lineEnding"),e.consume(G),e.exit("lineEnding"),Z}function Z(G){return G===null||Vn(G)?W(G):(e.enter("htmlFlowData"),B(G))}function Q(G){return G===45?(e.consume(G),J):B(G)}function X(G){return G===47?(e.consume(G),o="",q):B(G)}function q(G){if(G===62){const xe=o.toLowerCase();return WL.includes(xe)?(e.consume(G),ee):B(G)}return Ao(G)&&o.length<8?(e.consume(G),o+=String.fromCharCode(G),q):B(G)}function te(G){return G===93?(e.consume(G),J):B(G)}function J(G){return G===62?(e.consume(G),ee):G===45&&i===2?(e.consume(G),J):B(G)}function ee(G){return G===null||Vn(G)?(e.exit("htmlFlowData"),le(G)):(e.consume(G),ee)}function le(G){return e.exit("htmlFlow"),t(G)}}function ywe(e,t,n){const r=this;return i;function i(o){return Vn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function vwe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ty,t,n)}}const xwe={name:"htmlText",tokenize:bwe};function bwe(e,t,n){const r=this;let i,a,o;return s;function s(J){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(J),l}function l(J){return J===33?(e.consume(J),c):J===47?(e.consume(J),E):J===63?(e.consume(J),S):Ao(J)?(e.consume(J),I):n(J)}function c(J){return J===45?(e.consume(J),u):J===91?(e.consume(J),a=0,g):Ao(J)?(e.consume(J),w):n(J)}function u(J){return J===45?(e.consume(J),f):n(J)}function d(J){return J===null?n(J):J===45?(e.consume(J),h):Vn(J)?(o=d,X(J)):(e.consume(J),d)}function h(J){return J===45?(e.consume(J),f):d(J)}function f(J){return J===62?Q(J):J===45?h(J):d(J)}function g(J){const ee="CDATA[";return J===ee.charCodeAt(a++)?(e.consume(J),a===ee.length?y:g):n(J)}function y(J){return J===null?n(J):J===93?(e.consume(J),v):Vn(J)?(o=y,X(J)):(e.consume(J),y)}function v(J){return J===93?(e.consume(J),A):y(J)}function A(J){return J===62?Q(J):J===93?(e.consume(J),A):y(J)}function w(J){return J===null||J===62?Q(J):Vn(J)?(o=w,X(J)):(e.consume(J),w)}function S(J){return J===null?n(J):J===63?(e.consume(J),_):Vn(J)?(o=S,X(J)):(e.consume(J),S)}function _(J){return J===62?Q(J):S(J)}function E(J){return Ao(J)?(e.consume(J),T):n(J)}function T(J){return J===45||so(J)?(e.consume(J),T):D(J)}function D(J){return Vn(J)?(o=D,X(J)):zr(J)?(e.consume(J),D):Q(J)}function I(J){return J===45||so(J)?(e.consume(J),I):J===47||J===62||Ti(J)?j(J):n(J)}function j(J){return J===47?(e.consume(J),Q):J===58||J===95||Ao(J)?(e.consume(J),R):Vn(J)?(o=j,X(J)):zr(J)?(e.consume(J),j):Q(J)}function R(J){return J===45||J===46||J===58||J===95||so(J)?(e.consume(J),R):z(J)}function z(J){return J===61?(e.consume(J),B):Vn(J)?(o=z,X(J)):zr(J)?(e.consume(J),z):j(J)}function B(J){return J===null||J===60||J===61||J===62||J===96?n(J):J===34||J===39?(e.consume(J),i=J,W):Vn(J)?(o=B,X(J)):zr(J)?(e.consume(J),B):(e.consume(J),P)}function W(J){return J===i?(e.consume(J),i=void 0,Z):J===null?n(J):Vn(J)?(o=W,X(J)):(e.consume(J),W)}function P(J){return J===null||J===34||J===39||J===60||J===61||J===96?n(J):J===47||J===62||Ti(J)?j(J):(e.consume(J),P)}function Z(J){return J===47||J===62||Ti(J)?j(J):n(J)}function Q(J){return J===62?(e.consume(J),e.exit("htmlTextData"),e.exit("htmlText"),t):n(J)}function X(J){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(J),e.exit("lineEnding"),q}function q(J){return zr(J)?Qr(e,te,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):te(J)}function te(J){return e.enter("htmlTextData"),o(J)}}const q3={name:"labelEnd",resolveAll:kwe,resolveTo:Dwe,tokenize:Cwe},Awe={tokenize:Twe},wwe={tokenize:_we},Swe={tokenize:Ewe};function kwe(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&vs(e,0,e.length,n),e}function Dwe(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",c,t]],s=Gs(s,e.slice(a+1,a+r+3)),s=Gs(s,[["enter",u,t]]),s=Gs(s,Ew(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=Gs(s,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),s=Gs(s,e.slice(o+1)),s=Gs(s,[["exit",l,t]]),vs(e,a,e.length,s),e}function Cwe(e,t,n){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(h){return a?a._inactive?d(h):(o=r.parser.defined.includes(Ml(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(Awe,u,o?u:d)(h):h===91?e.attempt(wwe,u,o?c:d)(h):o?u(h):d(h)}function c(h){return e.attempt(Swe,u,d)(h)}function u(h){return t(h)}function d(h){return a._balanced=!0,n(h)}}function Twe(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return Ti(d)?h0(e,a)(d):a(d)}function a(d){return d===41?u(d):LH(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function o(d){return Ti(d)?h0(e,l)(d):u(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?jH(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return Ti(d)?h0(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function _we(e,t,n){const r=this;return i;function i(s){return OH.call(r,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return r.parser.defined.includes(Ml(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function Ewe(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const Nwe={name:"labelStartImage",resolveAll:q3.resolveAll,tokenize:Fwe};function Fwe(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Rwe={name:"labelStartLink",resolveAll:q3.resolveAll,tokenize:Pwe};function Pwe(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const GD={name:"lineEnding",tokenize:Iwe};function Iwe(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Qr(e,t,"linePrefix")}}const Kb={name:"thematicBreak",tokenize:Mwe};function Mwe(e,t,n){let r=0,i;return a;function a(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||Vn(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),zr(c)?Qr(e,s,"whitespace")(c):s(c))}}const Lo={continuation:{tokenize:jwe},exit:zwe,name:"list",tokenize:Owe},Uwe={partial:!0,tokenize:Wwe},Lwe={partial:!0,tokenize:Bwe};function Owe(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(f){const g=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:S_(f)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Kb,n,c)(f):c(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return n(f)}function l(f){return S_(f)&&++o<10?(e.consume(f),l):(!r.interrupt||o<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),c(f)):n(f)}function c(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Ty,r.interrupt?n:u,e.attempt(Uwe,h,d))}function u(f){return r.containerState.initialBlankLine=!0,a++,h(f)}function d(f){return zr(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),h):n(f)}function h(f){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function jwe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ty,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Qr(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!zr(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Lwe,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Qr(e,e.attempt(Lo,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Bwe(e,t,n){const r=this;return Qr(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function zwe(e){e.exit(this.containerState.type)}function Wwe(e,t,n){const r=this;return Qr(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!zr(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const VL={name:"setextUnderline",resolveTo:Vwe,tokenize:Gwe};function Vwe(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function Gwe(e,t,n){const r=this;let i;return a;function a(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),zr(c)?Qr(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Vn(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const qwe={tokenize:Hwe};function Hwe(e){const t=this,n=e.attempt(Ty,r,e.attempt(this.parser.constructs.flowInitial,i,Qr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(YAe,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Xwe={resolveAll:zH()},Zwe=BH("string"),Kwe=BH("text");function BH(e){return{resolveAll:zH(e==="text"?$we:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(u){return c(u)?a(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),a(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const d=i[u];let h=-1;if(d)for(;++h<d.length;){const f=d[h];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function zH(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function $we(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,o=-1,s=0,l;for(;a--;){const c=i[a];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(c===-2)l=!0,s++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const Ywe={42:Lo,43:Lo,45:Lo,48:Lo,49:Lo,50:Lo,51:Lo,52:Lo,53:Lo,54:Lo,55:Lo,56:Lo,57:Lo,62:PH},Jwe={91:nwe},Qwe={[-2]:VD,[-1]:VD,32:VD},e2e={35:lwe,42:Kb,45:[VL,Kb],60:fwe,61:VL,95:Kb,96:zL,126:zL},t2e={38:MH,92:IH},n2e={[-5]:GD,[-4]:GD,[-3]:GD,33:Nwe,38:MH,42:k_,60:[RAe,xwe],91:Rwe,92:[owe,IH],93:q3,95:k_,96:qAe},r2e={null:[k_,Xwe]},i2e={null:[42,95]},a2e={null:[]},o2e=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:i2e,contentInitial:Jwe,disable:a2e,document:Ywe,flow:e2e,flowInitial:Qwe,insideSpan:r2e,string:t2e,text:n2e},Symbol.toStringTag,{value:"Module"}));function s2e(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let o=[],s=[];const l={attempt:D(E),check:D(T),consume:w,enter:S,exit:_,interrupt:D(T,{interrupt:!0})},c={code:null,containerState:{},defineSkip:y,events:[],now:g,parser:e,previous:null,sliceSerialize:h,sliceStream:f,write:d};let u=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function d(z){return o=Gs(o,z),v(),o[o.length-1]!==null?[]:(I(t,0),c.events=Ew(a,c.events,c),c.events)}function h(z,B){return c2e(f(z),B)}function f(z){return l2e(o,z)}function g(){const{_bufferIndex:z,_index:B,line:W,column:P,offset:Z}=r;return{_bufferIndex:z,_index:B,line:W,column:P,offset:Z}}function y(z){i[z.line]=z.column,R()}function v(){let z;for(;r._index<o.length;){const B=o[r._index];if(typeof B=="string")for(z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===z&&r._bufferIndex<B.length;)A(B.charCodeAt(r._bufferIndex));else A(B)}}function A(z){u=u(z)}function w(z){Vn(z)?(r.line++,r.column=1,r.offset+=z===-3?2:1,R()):z!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=z}function S(z,B){const W=B||{};return W.type=z,W.start=g(),c.events.push(["enter",W,c]),s.push(W),W}function _(z){const B=s.pop();return B.end=g(),c.events.push(["exit",B,c]),B}function E(z,B){I(z,B.from)}function T(z,B){B.restore()}function D(z,B){return W;function W(P,Z,Q){let X,q,te,J;return Array.isArray(P)?le(P):"tokenize"in P?le([P]):ee(P);function ee(ue){return ce;function ce(ye){const Fe=ye!==null&&ue[ye],Oe=ye!==null&&ue.null,Le=[...Array.isArray(Fe)?Fe:Fe?[Fe]:[],...Array.isArray(Oe)?Oe:Oe?[Oe]:[]];return le(Le)(ye)}}function le(ue){return X=ue,q=0,ue.length===0?Q:G(ue[q])}function G(ue){return ce;function ce(ye){return J=j(),te=ue,ue.partial||(c.currentConstruct=ue),ue.name&&c.parser.constructs.disable.null.includes(ue.name)?ge():ue.tokenize.call(B?Object.assign(Object.create(c),B):c,l,xe,ge)(ye)}}function xe(ue){return z(te,J),Z}function ge(ue){return J.restore(),++q<X.length?G(X[q]):Q}}}function I(z,B){z.resolveAll&&!a.includes(z)&&a.push(z),z.resolve&&vs(c.events,B,c.events.length-B,z.resolve(c.events.slice(B),c)),z.resolveTo&&(c.events=z.resolveTo(c.events,c))}function j(){const z=g(),B=c.previous,W=c.currentConstruct,P=c.events.length,Z=Array.from(s);return{from:P,restore:Q};function Q(){r=z,c.previous=B,c.currentConstruct=W,c.events.length=P,s=Z,R()}}function R(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function l2e(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function c2e(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`-`;break}case-3:{o=`\r-`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}function u2e(e){const r={constructs:FH([o2e,...(e||{}).extensions||[]]),content:i(DAe),defined:[],document:i(TAe),flow:i(qwe),lazy:{},string:i(Zwe),text:i(Kwe)};return r;function i(a){return o;function o(s){return s2e(r,a,s)}}}function d2e(e){for(;!UH(e););return e}const GL=/[\0\t\n\r]/g;function f2e(){let e=1,t="",n=!0,r;return i;function i(a,o,s){const l=[];let c,u,d,h,f;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),d=0,t="",n&&(a.charCodeAt(0)===65279&&d++,n=void 0);d<a.length;){if(GL.lastIndex=d,c=GL.exec(a),h=c&&c.index!==void 0?c.index:a.length,f=a.charCodeAt(h),!c){t=a.slice(d);break}if(f===10&&d===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<h&&(l.push(a.slice(d,h)),e+=h-d),f){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=h+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const h2e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function p2e(e){return e.replace(h2e,g2e)}function g2e(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return RH(n.slice(a?2:1),a?16:10)}return G3(n)||e}const WH={}.hasOwnProperty;function m2e(e,t,n){return typeof t!="string"&&(n=t,t=void 0),y2e(n)(d2e(u2e(n).document().write(f2e()(e,t,!0))))}function y2e(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(be),autolinkProtocol:j,autolinkEmail:j,atxHeading:a(ve),blockQuote:a(Oe),characterEscape:j,characterReference:j,codeFenced:a(Le),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Le,o),codeText:a(Re,o),codeTextData:j,data:j,codeFlowValue:j,definition:a(We),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(V),hardBreakEscape:a(oe),hardBreakTrailing:a(oe),htmlFlow:a(re,o),htmlFlowData:j,htmlText:a(re,o),htmlTextData:j,image:a(ne),label:o,link:a(be),listItem:a(Me),listItemValue:h,listOrdered:a(Ue,d),listUnordered:a(Ue),paragraph:a(Ee),reference:G,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ve),strong:a(Se),thematicBreak:a(pe)},exit:{atxHeading:l(),atxHeadingSequence:E,autolink:l(),autolinkEmail:Fe,autolinkProtocol:ye,blockQuote:l(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:ue,characterReference:ce,codeFenced:l(v),codeFencedFence:y,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:R,codeIndented:l(A),codeText:l(Z),codeTextData:R,data:R,definition:l(),definitionDestinationString:_,definitionLabelString:w,definitionTitleString:S,emphasis:l(),hardBreakEscape:l(B),hardBreakTrailing:l(B),htmlFlow:l(W),htmlFlowData:R,htmlText:l(P),htmlTextData:R,image:l(X),label:te,labelText:q,lineEnding:z,link:l(Q),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:xe,resourceDestinationString:J,resourceTitleString:ee,resource:le,setextHeading:l(I),setextHeadingLineSequence:D,setextHeadingText:T,strong:l(),thematicBreak:l()}};VH(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ke){let Ve={type:"root",children:[]};const Xe={stack:[Ve],tokenStack:[],config:t,enter:s,exit:c,buffer:o,resume:u,data:n},it=[];let et=-1;for(;++et<ke.length;)if(ke[et][1].type==="listOrdered"||ke[et][1].type==="listUnordered")if(ke[et][0]==="enter")it.push(et);else{const U=it.pop();et=i(ke,U,et)}for(et=-1;++et<ke.length;){const U=t[ke[et][0]];WH.call(U,ke[et][1].type)&&U[ke[et][1].type].call(Object.assign({sliceSerialize:ke[et][2].sliceSerialize},Xe),ke[et][1])}if(Xe.tokenStack.length>0){const U=Xe.tokenStack[Xe.tokenStack.length-1];(U[1]||qL).call(Xe,void 0,U[0])}for(Ve.position={start:Cu(ke.length>0?ke[0][1].start:{line:1,column:1,offset:0}),end:Cu(ke.length>0?ke[ke.length-2][1].end:{line:1,column:1,offset:0})},et=-1;++et<t.transforms.length;)Ve=t.transforms[et](Ve)||Ve;return Ve}function i(ke,Ve,Xe){let it=Ve-1,et=-1,U=!1,Ae,se,Te,$;for(;++it<=Xe;){const de=ke[it];switch(de[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{de[0]==="enter"?et++:et--,$=void 0;break}case"lineEndingBlank":{de[0]==="enter"&&(Ae&&!$&&!et&&!Te&&(Te=it),$=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:$=void 0}if(!et&&de[0]==="enter"&&de[1].type==="listItemPrefix"||et===-1&&de[0]==="exit"&&(de[1].type==="listUnordered"||de[1].type==="listOrdered")){if(Ae){let F=it;for(se=void 0;F--;){const De=ke[F];if(De[1].type==="lineEnding"||De[1].type==="lineEndingBlank"){if(De[0]==="exit")continue;se&&(ke[se][1].type="lineEndingBlank",U=!0),De[1].type="lineEnding",se=F}else if(!(De[1].type==="linePrefix"||De[1].type==="blockQuotePrefix"||De[1].type==="blockQuotePrefixWhitespace"||De[1].type==="blockQuoteMarker"||De[1].type==="listItemIndent"))break}Te&&(!se||Te<se)&&(Ae._spread=!0),Ae.end=Object.assign({},se?ke[se][1].start:de[1].end),ke.splice(se||it,0,["exit",Ae,de[2]]),it++,Xe++}if(de[1].type==="listItemPrefix"){const F={type:"listItem",_spread:!1,start:Object.assign({},de[1].start),end:void 0};Ae=F,ke.splice(it,0,["enter",F,de[2]]),it++,Xe++,Te=void 0,$=!0}}}return ke[Ve][1]._spread=U,Xe}function a(ke,Ve){return Xe;function Xe(it){s.call(this,ke(it),it),Ve&&Ve.call(this,it)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(ke,Ve,Xe){this.stack[this.stack.length-1].children.push(ke),this.stack.push(ke),this.tokenStack.push([Ve,Xe||void 0]),ke.position={start:Cu(Ve.start),end:void 0}}function l(ke){return Ve;function Ve(Xe){ke&&ke.call(this,Xe),c.call(this,Xe)}}function c(ke,Ve){const Xe=this.stack.pop(),it=this.tokenStack.pop();if(it)it[0].type!==ke.type&&(Ve?Ve.call(this,ke,it[0]):(it[1]||qL).call(this,ke,it[0]));else throw new Error("Cannot close `"+ke.type+"` ("+f0({start:ke.start,end:ke.end})+"): it’s not open");Xe.position.end=Cu(ke.end)}function u(){return V3(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function h(ke){if(this.data.expectingFirstListItemValue){const Ve=this.stack[this.stack.length-2];Ve.start=Number.parseInt(this.sliceSerialize(ke),10),this.data.expectingFirstListItemValue=void 0}}function f(){const ke=this.resume(),Ve=this.stack[this.stack.length-1];Ve.lang=ke}function g(){const ke=this.resume(),Ve=this.stack[this.stack.length-1];Ve.meta=ke}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const ke=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=ke.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const ke=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=ke.replace(/(\r?\n|\r)$/g,"")}function w(ke){const Ve=this.resume(),Xe=this.stack[this.stack.length-1];Xe.label=Ve,Xe.identifier=Ml(this.sliceSerialize(ke)).toLowerCase()}function S(){const ke=this.resume(),Ve=this.stack[this.stack.length-1];Ve.title=ke}function _(){const ke=this.resume(),Ve=this.stack[this.stack.length-1];Ve.url=ke}function E(ke){const Ve=this.stack[this.stack.length-1];if(!Ve.depth){const Xe=this.sliceSerialize(ke).length;Ve.depth=Xe}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function D(ke){const Ve=this.stack[this.stack.length-1];Ve.depth=this.sliceSerialize(ke).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function j(ke){const Xe=this.stack[this.stack.length-1].children;let it=Xe[Xe.length-1];(!it||it.type!=="text")&&(it=Ce(),it.position={start:Cu(ke.start),end:void 0},Xe.push(it)),this.stack.push(it)}function R(ke){const Ve=this.stack.pop();Ve.value+=this.sliceSerialize(ke),Ve.position.end=Cu(ke.end)}function z(ke){const Ve=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Xe=Ve.children[Ve.children.length-1];Xe.position.end=Cu(ke.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ve.type)&&(j.call(this,ke),R.call(this,ke))}function B(){this.data.atHardBreak=!0}function W(){const ke=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=ke}function P(){const ke=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=ke}function Z(){const ke=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=ke}function Q(){const ke=this.stack[this.stack.length-1];if(this.data.inReference){const Ve=this.data.referenceType||"shortcut";ke.type+="Reference",ke.referenceType=Ve,delete ke.url,delete ke.title}else delete ke.identifier,delete ke.label;this.data.referenceType=void 0}function X(){const ke=this.stack[this.stack.length-1];if(this.data.inReference){const Ve=this.data.referenceType||"shortcut";ke.type+="Reference",ke.referenceType=Ve,delete ke.url,delete ke.title}else delete ke.identifier,delete ke.label;this.data.referenceType=void 0}function q(ke){const Ve=this.sliceSerialize(ke),Xe=this.stack[this.stack.length-2];Xe.label=p2e(Ve),Xe.identifier=Ml(Ve).toLowerCase()}function te(){const ke=this.stack[this.stack.length-1],Ve=this.resume(),Xe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Xe.type==="link"){const it=ke.children;Xe.children=it}else Xe.alt=Ve}function J(){const ke=this.resume(),Ve=this.stack[this.stack.length-1];Ve.url=ke}function ee(){const ke=this.resume(),Ve=this.stack[this.stack.length-1];Ve.title=ke}function le(){this.data.inReference=void 0}function G(){this.data.referenceType="collapsed"}function xe(ke){const Ve=this.resume(),Xe=this.stack[this.stack.length-1];Xe.label=Ve,Xe.identifier=Ml(this.sliceSerialize(ke)).toLowerCase(),this.data.referenceType="full"}function ge(ke){this.data.characterReferenceType=ke.type}function ue(ke){const Ve=this.sliceSerialize(ke),Xe=this.data.characterReferenceType;let it;Xe?(it=RH(Ve,Xe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):it=G3(Ve);const et=this.stack[this.stack.length-1];et.value+=it}function ce(ke){const Ve=this.stack.pop();Ve.position.end=Cu(ke.end)}function ye(ke){R.call(this,ke);const Ve=this.stack[this.stack.length-1];Ve.url=this.sliceSerialize(ke)}function Fe(ke){R.call(this,ke);const Ve=this.stack[this.stack.length-1];Ve.url="mailto:"+this.sliceSerialize(ke)}function Oe(){return{type:"blockquote",children:[]}}function Le(){return{type:"code",lang:null,meta:null,value:""}}function Re(){return{type:"inlineCode",value:""}}function We(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function V(){return{type:"emphasis",children:[]}}function ve(){return{type:"heading",depth:0,children:[]}}function oe(){return{type:"break"}}function re(){return{type:"html",value:""}}function ne(){return{type:"image",title:null,url:"",alt:null}}function be(){return{type:"link",title:null,url:"",children:[]}}function Ue(ke){return{type:"list",ordered:ke.type==="listOrdered",start:null,spread:ke._spread,children:[]}}function Me(ke){return{type:"listItem",spread:ke._spread,checked:null,children:[]}}function Ee(){return{type:"paragraph",children:[]}}function Se(){return{type:"strong",children:[]}}function Ce(){return{type:"text",value:""}}function pe(){return{type:"thematicBreak"}}}function Cu(e){return{line:e.line,column:e.column,offset:e.offset}}function VH(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?VH(e,r):v2e(e,r)}}function v2e(e,t){let n;for(n in t)if(WH.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function qL(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+f0({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+f0({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+f0({start:t.start,end:t.end})+") is still open")}function x2e(e){const t=this;t.parser=n;function n(r){return m2e(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function b2e(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function A2e(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`-`}]}function w2e(e,t){const n=t.value?t.value+`-`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function S2e(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function k2e(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function D2e(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Eg(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function C2e(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function T2e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function GH(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function _2e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return GH(e,t);const i={src:Eg(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function E2e(e,t){const n={src:Eg(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function N2e(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function F2e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return GH(e,t);const i={href:Eg(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function R2e(e,t){const n={href:Eg(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function P2e(e,t,n){const r=e.all(t),i=n?I2e(n):qH(t),a={},o=[];if(typeof t.checked=="boolean"){const u=r[0];let d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const u=r[s];(i||s!==0||u.type!=="element"||u.tagName!=="p")&&o.push({type:"text",value:`-`}),u.type==="element"&&u.tagName==="p"&&!i?o.push(...u.children):o.push(u)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`-`});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)}function I2e(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=qH(n[r])}return t}function qH(e){const t=e.spread;return t??e.children.length>1}function M2e(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function U2e(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function L2e(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function O2e(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function j2e(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=j3(t.children[1]),l=kH(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function B2e(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const c=[];for(;++l<s;){const d=t.children[l],h={},f=o?o[l]:void 0;f&&(h.align=f);let g={type:"element",tagName:a,properties:h,children:[]};d&&(g.children=e.all(d),e.patch(d,g),g=e.applyData(d,g)),c.push(g)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)}function z2e(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const HL=9,XL=32;function W2e(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(ZL(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(ZL(t.slice(i),i>0,!1)),a.join("")}function ZL(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===HL||a===XL;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===HL||a===XL;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function V2e(e,t){const n={type:"text",value:W2e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function G2e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const q2e={blockquote:b2e,break:A2e,code:w2e,delete:S2e,emphasis:k2e,footnoteReference:D2e,heading:C2e,html:T2e,imageReference:_2e,image:E2e,inlineCode:N2e,linkReference:F2e,link:R2e,listItem:P2e,list:M2e,paragraph:U2e,root:L2e,strong:O2e,table:j2e,tableCell:z2e,tableRow:B2e,text:V2e,thematicBreak:G2e,toml:Nx,yaml:Nx,definition:Nx,footnoteDefinition:Nx};function Nx(){}const HH=-1,Nw=0,p0=1,Z1=2,H3=3,X3=4,Z3=5,K3=6,XH=7,ZH=8,KL=typeof self=="object"?self:globalThis,H2e=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case Nw:case HH:return n(o,i);case p0:{const s=n([],i);for(const l of o)s.push(r(l));return s}case Z1:{const s=n({},i);for(const[l,c]of o)s[r(l)]=r(c);return s}case H3:return n(new Date(o),i);case X3:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case Z3:{const s=n(new Map,i);for(const[l,c]of o)s.set(r(l),r(c));return s}case K3:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case XH:{const{name:s,message:l}=o;return n(new KL[s](l),i)}case ZH:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(new KL[a](o),i)};return r},$L=e=>H2e(new Map,e)(0),Hh="",{toString:X2e}={},{keys:Z2e}=Object,Cm=e=>{const t=typeof e;if(t!=="object"||!e)return[Nw,t];const n=X2e.call(e).slice(8,-1);switch(n){case"Array":return[p0,Hh];case"Object":return[Z1,Hh];case"Date":return[H3,Hh];case"RegExp":return[X3,Hh];case"Map":return[Z3,Hh];case"Set":return[K3,Hh];case"DataView":return[p0,n]}return n.includes("Array")?[p0,n]:n.includes("Error")?[XH,n]:[Z1,n]},Fx=([e,t])=>e===Nw&&(t==="function"||t==="symbol"),K2e=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=Cm(o);switch(s){case Nw:{let u=o;switch(l){case"bigint":s=ZH,u=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return i([HH],o)}return i([s,u],o)}case p0:{if(l){let h=o;return l==="DataView"?h=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(o)),i([l,[...h]],o)}const u=[],d=i([s,u],o);for(const h of o)u.push(a(h));return d}case Z1:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const u=[],d=i([s,u],o);for(const h of Z2e(o))(e||!Fx(Cm(o[h])))&&u.push([a(h),a(o[h])]);return d}case H3:return i([s,o.toISOString()],o);case X3:{const{source:u,flags:d}=o;return i([s,{source:u,flags:d}],o)}case Z3:{const u=[],d=i([s,u],o);for(const[h,f]of o)(e||!(Fx(Cm(h))||Fx(Cm(f))))&&u.push([a(h),a(f)]);return d}case K3:{const u=[],d=i([s,u],o);for(const h of o)(e||!Fx(Cm(h)))&&u.push(a(h));return d}}const{message:c}=o;return i([s,{name:l,message:c}],o)};return a},YL=(e,{json:t,lossy:n}={})=>{const r=[];return K2e(!(t||n),!!t,new Map,r)(e),r},K1=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?$L(YL(e,t)):structuredClone(e):(e,t)=>$L(YL(e,t));function $2e(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Y2e(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function J2e(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||$2e,r=e.options.footnoteBackLabel||Y2e,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const u=e.all(c),d=String(c.identifier).toUpperCase(),h=Eg(d.toLowerCase());let f=0;const g=[],y=e.footnoteCounts.get(d);for(;y!==void 0&&++f<=y;){g.length>0&&g.push({type:"text",value:" "});let w=typeof n=="string"?n:n(l,f);typeof w=="string"&&(w={type:"text",value:w}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,f),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const v=u[u.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const w=v.children[v.children.length-1];w&&w.type==="text"?w.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...g)}else u.push(...g);const A={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(u,!0)};e.patch(c,A),s.push(A)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...K1(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`-`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`-`}]}}const Fw=(function(e){if(e==null)return nSe;if(typeof e=="function")return Rw(e);if(typeof e=="object")return Array.isArray(e)?Q2e(e):eSe(e);if(typeof e=="string")return tSe(e);throw new Error("Expected function, string, or object as test")});function Q2e(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Fw(e[n]);return Rw(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function eSe(e){const t=e;return Rw(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function tSe(e){return Rw(t);function t(n){return n&&n.type===e}}function Rw(e){return t;function t(n,r,i){return!!(rSe(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function nSe(){return!0}function rSe(e){return e!==null&&typeof e=="object"&&"type"in e}const KH=[],iSe=!0,D_=!1,aSe="skip";function $H(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=Fw(i),o=r?-1:1;s(e,void 0,[])();function s(l,c,u){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(f?"<"+f+">":""))+")"})}return h;function h(){let f=KH,g,y,v;if((!t||a(l,c,u[u.length-1]||void 0))&&(f=oSe(n(l,u)),f[0]===D_))return f;if("children"in l&&l.children){const A=l;if(A.children&&f[0]!==aSe)for(y=(r?A.children.length:-1)+o,v=u.concat(A);y>-1&&y<A.children.length;){const w=A.children[y];if(g=s(w,y,v)(),g[0]===D_)return g;y=typeof g[1]=="number"?g[1]:y+o}}return f}}}function oSe(e){return Array.isArray(e)?e:typeof e=="number"?[iSe,e]:e==null?KH:[e]}function $3(e,t,n,r){let i,a,o;typeof t=="function"&&typeof n!="function"?(a=void 0,o=t,i=n):(a=t,o=n,i=r),$H(e,a,s,i);function s(l,c){const u=c[c.length-1],d=u?u.children.indexOf(l):void 0;return o(l,d,u)}}const C_={}.hasOwnProperty,sSe={};function lSe(e,t){const n=t||sSe,r=new Map,i=new Map,a=new Map,o={...q2e,...n.handlers},s={all:c,applyData:uSe,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:l,options:n,patch:cSe,wrap:fSe};return $3(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const d=u.type==="definition"?r:i,h=String(u.identifier).toUpperCase();d.has(h)||d.set(h,u)}}),s;function l(u,d){const h=u.type,f=s.handlers[h];if(C_.call(s.handlers,h)&&f)return f(s,u,d);if(s.options.passThrough&&s.options.passThrough.includes(h)){if("children"in u){const{children:y,...v}=u,A=K1(v);return A.children=s.all(u),A}return K1(u)}return(s.options.unknownHandler||dSe)(s,u,d)}function c(u){const d=[];if("children"in u){const h=u.children;let f=-1;for(;++f<h.length;){const g=s.one(h[f],u);if(g){if(f&&h[f-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=JL(g.value)),!Array.isArray(g)&&g.type==="element")){const y=g.children[0];y&&y.type==="text"&&(y.value=JL(y.value))}Array.isArray(g)?d.push(...g):d.push(g)}}}return d}}function cSe(e,t){e.position&&(t.position=Y1e(e))}function uSe(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&a&&Object.assign(n.properties,K1(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function dSe(e,t){const n=t.data||{},r="value"in t&&!(C_.call(n,"hProperties")||C_.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function fSe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`-`});++r<e.length;)r&&n.push({type:"text",value:`-`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`-`}),n}function JL(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function QL(e,t){const n=lSe(e,t),r=n.one(e,void 0),i=J2e(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`-`},i),a}function hSe(e,t){return e&&"run"in e?async function(n,r){const i=QL(n,{file:r,...t});await e.run(i,r)}:function(n,r){return QL(n,{file:r,...e||t})}}function e6(e){if(e)throw e}var qD,t6;function pSe(){if(t6)return qD;t6=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},a=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var u=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!u&&!d)return!1;var h;for(h in c);return typeof h>"u"||e.call(c,h)},o=function(c,u){n&&u.name==="__proto__"?n(c,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):c[u.name]=u.newValue},s=function(c,u){if(u==="__proto__")if(e.call(c,u)){if(r)return r(c,u).value}else return;return c[u]};return qD=function l(){var c,u,d,h,f,g,y=arguments[0],v=1,A=arguments.length,w=!1;for(typeof y=="boolean"&&(w=y,y=arguments[1]||{},v=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});v<A;++v)if(c=arguments[v],c!=null)for(u in c)d=s(y,u),h=s(c,u),y!==h&&(w&&h&&(a(h)||(f=i(h)))?(f?(f=!1,g=d&&i(d)?d:[]):g=d&&a(d)?d:{},o(y,{name:u,newValue:l(w,g,h)})):typeof h<"u"&&o(y,{name:u,newValue:h}));return y},qD}var gSe=pSe();const HD=Qc(gSe);function T_(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function mSe(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(l,...c){const u=e[++a];let d=-1;if(l){o(l);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,u?ySe(u,s)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function ySe(e,t){let n;return r;function r(...o){const s=e.length>o.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const Ql={basename:vSe,dirname:xSe,extname:bSe,join:ASe,sep:"/"};function vSe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_y(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function xSe(e){if(_y(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function bSe(e){_y(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function ASe(...e){let t=-1,n;for(;++t<e.length;)_y(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":wSe(n)}function wSe(e){_y(e);const t=e.codePointAt(0)===47;let n=SSe(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function SSe(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function _y(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const kSe={cwd:DSe};function DSe(){return"/"}function __(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function CSe(e){if(typeof e=="string")e=new URL(e);else if(!__(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return TSe(e)}function TSe(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const XD=["history","path","basename","stem","extname","dirname"];class YH{constructor(t){let n;t?__(t)?n={path:t}:typeof t=="string"||_Se(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":kSe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<XD.length;){const a=XD[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)XD.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Ql.basename(this.path):void 0}set basename(t){KD(t,"basename"),ZD(t,"basename"),this.path=Ql.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ql.dirname(this.path):void 0}set dirname(t){n6(this.basename,"dirname"),this.path=Ql.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ql.extname(this.path):void 0}set extname(t){if(ZD(t,"extname"),n6(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ql.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){__(t)&&(t=CSe(t)),KD(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ql.basename(this.path,this.extname):void 0}set stem(t){KD(t,"stem"),ZD(t,"stem"),this.path=Ql.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new fo(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ZD(e,t){if(e&&e.includes(Ql.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ql.sep+"`")}function KD(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function n6(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function _Se(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ESe=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),NSe={}.hasOwnProperty;class Y3 extends ESe{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=mSe()}copy(){const t=new Y3;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(HD(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(JD("data",this.frozen),this.namespace[t]=n,this):NSe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(JD("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Rx(t),r=this.parser||this.Parser;return $D("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),$D("process",this.parser||this.Parser),YD("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,o){const s=Rx(t),l=r.parse(s);r.run(l,s,function(u,d,h){if(u||!d||!h)return c(u);const f=d,g=r.stringify(f,h);PSe(g)?h.value=g:h.result=g,c(u,h)});function c(u,d){u||!d?o(u):a?a(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),$D("processSync",this.parser||this.Parser),YD("processSync",this.compiler||this.Compiler),this.process(t,i),i6("processSync","process",n),r;function i(a,o){n=!0,e6(a),r=o}}run(t,n,r){r6(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(o,s){const l=Rx(n);i.run(t,l,c);function c(u,d,h){const f=d||t;u?s(u):o?o(f):r(void 0,f,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),i6("runSync","run",r),i;function a(o,s){e6(o),i=s,r=!0}}stringify(t,n){this.freeze();const r=Rx(n),i=this.compiler||this.Compiler;return YD("stringify",i),r6(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(JD("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[u,...d]=c;l(u,d)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(c.plugins),c.settings&&(i.settings=HD(!0,i.settings,c.settings))}function s(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){const d=c[u];a(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let d=-1,h=-1;for(;++d<r.length;)if(r[d][0]===c){h=d;break}if(h===-1)r.push([c,...u]);else if(u.length>0){let[f,...g]=u;const y=r[h][1];T_(y)&&T_(f)&&(f=HD(!0,y,f)),r[h]=[c,f,...g]}}}}const FSe=new Y3().freeze();function $D(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function YD(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function JD(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function r6(e){if(!T_(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function i6(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Rx(e){return RSe(e)?e:new YH(e)}function RSe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function PSe(e){return typeof e=="string"||ISe(e)}function ISe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const MSe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",a6=[],o6={allowDangerousHtml:!0},USe=/^(https?|ircs?|mailto|xmpp)$/i,LSe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function J3(e){const t=OSe(e),n=jSe(e);return BSe(t.runSync(t.parse(n),n),e)}function OSe(e){const t=e.rehypePlugins||a6,n=e.remarkPlugins||a6,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...o6}:o6;return FSe().use(x2e).use(n).use(hSe,r).use(t)}function jSe(e){const t=e.children||"",n=new YH;return typeof t=="string"&&(n.value=t),n}function BSe(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||zSe;for(const u of LSe)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+MSe+u.id,void 0);return $3(e,c),nAe(e,{Fragment:m.Fragment,components:i,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function c(u,d,h){if(u.type==="raw"&&h&&typeof d=="number")return o?h.children.splice(d,1):h.children[d]={type:"text",value:u.value},d;if(u.type==="element"){let f;for(f in WD)if(Object.hasOwn(WD,f)&&Object.hasOwn(u.properties,f)){const g=u.properties[f],y=WD[f];(y===null||y.includes(u.tagName))&&(u.properties[f]=l(String(g||""),f,u))}}if(u.type==="element"){let f=n?!n.includes(u.tagName):a?a.includes(u.tagName):!1;if(!f&&r&&typeof d=="number"&&(f=!r(u,d,h)),f&&h&&typeof d=="number")return s&&u.children?h.children.splice(d,1,...u.children):h.children.splice(d,1),d}}}function zSe(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||USe.test(e.slice(0,t))?e:""}var Pw="Collapsible",[WSe]=dc(Pw),[VSe,Q3]=WSe(Pw),JH=N.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[l,c]=tl({prop:r,defaultProp:i??!1,onChange:o,caller:Pw});return m.jsx(VSe,{scope:n,disabled:a,contentId:zc(),open:l,onOpenToggle:N.useCallback(()=>c(u=>!u),[c]),children:m.jsx(Dr.div,{"data-state":tF(l),"data-disabled":a?"":void 0,...s,ref:t})})});JH.displayName=Pw;var QH="CollapsibleTrigger",Iw=N.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=Q3(QH,n);return m.jsx(Dr.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":tF(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:en(e.onClick,i.onOpenToggle)})});Iw.displayName=QH;var eF="CollapsibleContent",Mw=N.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Q3(eF,e.__scopeCollapsible);return m.jsx(To,{present:n||i.open,children:({present:a})=>m.jsx(GSe,{...r,ref:t,present:a})})});Mw.displayName=eF;var GSe=N.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...a}=e,o=Q3(eF,n),[s,l]=N.useState(r),c=N.useRef(null),u=Hr(t,c),d=N.useRef(0),h=d.current,f=N.useRef(0),g=f.current,y=o.open||s,v=N.useRef(y),A=N.useRef(void 0);return N.useEffect(()=>{const w=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(w)},[]),Ga(()=>{const w=c.current;if(w){A.current=A.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const S=w.getBoundingClientRect();d.current=S.height,f.current=S.width,v.current||(w.style.transitionDuration=A.current.transitionDuration,w.style.animationName=A.current.animationName),l(r)}},[o.open,r]),m.jsx(Dr.div,{"data-state":tF(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!y,...a,ref:u,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:y&&i})});function tF(e){return e?"open":"closed"}var nF=JH;function qSe({...e}){return m.jsx(nF,{"data-slot":"collapsible",...e})}function HSe({...e}){return m.jsx(Iw,{"data-slot":"collapsible-trigger",...e})}function XSe({...e}){return m.jsx(Mw,{"data-slot":"collapsible-content",...e})}const ZSe=({children:e,as:t="p",className:n,duration:r=2,spread:i=2})=>{const a=Rl.create(t),o=N.useMemo(()=>((e==null?void 0:e.length)??0)*i,[e,i]);return m.jsx(a,{animate:{backgroundPosition:"0% center"},className:Zi("relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent","[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",n),initial:{backgroundPosition:"100% center"},style:{"--spread":`${o}px`,backgroundImage:"var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))"},transition:{repeat:Number.POSITIVE_INFINITY,duration:r,ease:"linear"},children:e})},KSe=N.memo(ZSe),eX=N.createContext(null),$Se=()=>{const e=N.useContext(eX);if(!e)throw new Error("Reasoning components must be used within Reasoning");return e},YSe=1e3,JSe=1e3,tX=N.memo(({className:e,isStreaming:t=!1,open:n,defaultOpen:r=!0,onOpenChange:i,duration:a,children:o,...s})=>{const[l,c]=tl({prop:n,defaultProp:r,onChange:i}),[u,d]=tl({prop:a,defaultProp:void 0}),[h,f]=N.useState(!1),[g,y]=N.useState(null);N.useEffect(()=>{t?g===null&&y(Date.now()):g!==null&&(d(Math.ceil((Date.now()-g)/JSe)),y(null))},[t,g,d]),N.useEffect(()=>{if(r&&!t&&l&&!h){const A=setTimeout(()=>{c(!1),f(!0)},YSe);return()=>clearTimeout(A)}},[t,l,r,c,h]);const v=A=>{c(A)};return m.jsx(eX.Provider,{value:{isStreaming:t,isOpen:l,setIsOpen:c,duration:u},children:m.jsx(qSe,{className:Zi("not-prose mb-4",e),onOpenChange:v,open:l,...s,children:o})})}),QSe=(e,t)=>e||t===0?m.jsx(KSe,{duration:1,children:"Thinking..."}):t===void 0?m.jsx("p",{children:"Thought for a few seconds"}):m.jsxs("p",{children:["Thought for ",t," seconds"]}),nX=N.memo(({className:e,children:t,getThinkingMessage:n=QSe,...r})=>{const{isStreaming:i,isOpen:a,duration:o}=$Se();return m.jsx(HSe,{className:Zi("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...r,children:t??m.jsxs(m.Fragment,{children:[m.jsx(SA,{className:"size-4"}),n(i,o),m.jsx(Wo,{className:Zi("size-4 transition-transform",a?"rotate-180":"rotate-0")})]})})}),rX=N.memo(({className:e,children:t,...n})=>m.jsx(XSe,{className:Zi("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n,children:m.jsx("div",{className:"whitespace-pre-wrap",children:t})}));tX.displayName="Reasoning";nX.displayName="ReasoningTrigger";rX.displayName="ReasoningContent";function eke(e,t){return N.useReducer((n,r)=>t[n][r]??n,e)}var rF="ScrollArea",[iX]=dc(rF),[tke,sl]=iX(rF),aX=N.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:a=600,...o}=e,[s,l]=N.useState(null),[c,u]=N.useState(null),[d,h]=N.useState(null),[f,g]=N.useState(null),[y,v]=N.useState(null),[A,w]=N.useState(0),[S,_]=N.useState(0),[E,T]=N.useState(!1),[D,I]=N.useState(!1),j=Hr(t,z=>l(z)),R=_A(i);return m.jsx(tke,{scope:n,type:r,dir:R,scrollHideDelay:a,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:h,scrollbarX:f,onScrollbarXChange:g,scrollbarXEnabled:E,onScrollbarXEnabledChange:T,scrollbarY:y,onScrollbarYChange:v,scrollbarYEnabled:D,onScrollbarYEnabledChange:I,onCornerWidthChange:w,onCornerHeightChange:_,children:m.jsx(Dr.div,{dir:R,...o,ref:j,style:{position:"relative","--radix-scroll-area-corner-width":A+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})});aX.displayName=rF;var oX="ScrollAreaViewport",sX=N.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:i,...a}=e,o=sl(oX,n),s=N.useRef(null),l=Hr(t,s,o.onViewportChange);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),m.jsx(Dr.div,{"data-radix-scroll-area-viewport":"",...a,ref:l,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:m.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});sX.displayName=oX;var hc="ScrollAreaScrollbar",Uw=N.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=sl(hc,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation==="horizontal";return N.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type==="hover"?m.jsx(nke,{...r,ref:t,forceMount:n}):i.type==="scroll"?m.jsx(rke,{...r,ref:t,forceMount:n}):i.type==="auto"?m.jsx(lX,{...r,ref:t,forceMount:n}):i.type==="always"?m.jsx(iF,{...r,ref:t}):null});Uw.displayName=hc;var nke=N.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=sl(hc,e.__scopeScrollArea),[a,o]=N.useState(!1);return N.useEffect(()=>{const s=i.scrollArea;let l=0;if(s){const c=()=>{window.clearTimeout(l),o(!0)},u=()=>{l=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",u),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",u)}}},[i.scrollArea,i.scrollHideDelay]),m.jsx(To,{present:n||a,children:m.jsx(lX,{"data-state":a?"visible":"hidden",...r,ref:t})})}),rke=N.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=sl(hc,e.__scopeScrollArea),a=e.orientation==="horizontal",o=jw(()=>l("SCROLL_END"),100),[s,l]=eke("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return N.useEffect(()=>{if(s==="idle"){const c=window.setTimeout(()=>l("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(c)}},[s,i.scrollHideDelay,l]),N.useEffect(()=>{const c=i.viewport,u=a?"scrollLeft":"scrollTop";if(c){let d=c[u];const h=()=>{const f=c[u];d!==f&&(l("SCROLL"),o()),d=f};return c.addEventListener("scroll",h),()=>c.removeEventListener("scroll",h)}},[i.viewport,a,l,o]),m.jsx(To,{present:n||s!=="hidden",children:m.jsx(iF,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:en(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:en(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),lX=N.forwardRef((e,t)=>{const n=sl(hc,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=N.useState(!1),s=e.orientation==="horizontal",l=jw(()=>{if(n.viewport){const c=n.viewport.offsetWidth<n.viewport.scrollWidth,u=n.viewport.offsetHeight<n.viewport.scrollHeight;o(s?c:u)}},10);return og(n.viewport,l),og(n.content,l),m.jsx(To,{present:r||a,children:m.jsx(iF,{"data-state":a?"visible":"hidden",...i,ref:t})})}),iF=N.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,i=sl(hc,e.__scopeScrollArea),a=N.useRef(null),o=N.useRef(0),[s,l]=N.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=fX(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:h=>a.current=h,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:h=>o.current=h};function d(h,f){return cke(h,o.current,s,f)}return n==="horizontal"?m.jsx(ike,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const h=i.viewport.scrollLeft,f=s6(h,s,i.dir);a.current.style.transform=`translate3d(${f}px, 0, 0)`}},onWheelScroll:h=>{i.viewport&&(i.viewport.scrollLeft=h)},onDragScroll:h=>{i.viewport&&(i.viewport.scrollLeft=d(h,i.dir))}}):n==="vertical"?m.jsx(ake,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const h=i.viewport.scrollTop,f=s6(h,s);a.current.style.transform=`translate3d(0, ${f}px, 0)`}},onWheelScroll:h=>{i.viewport&&(i.viewport.scrollTop=h)},onDragScroll:h=>{i.viewport&&(i.viewport.scrollTop=d(h))}}):null}),ike=N.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,a=sl(hc,e.__scopeScrollArea),[o,s]=N.useState(),l=N.useRef(null),c=Hr(t,l,a.onScrollbarXChange);return N.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),m.jsx(uX,{"data-orientation":"horizontal",...i,ref:c,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Ow(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,d)=>{if(a.viewport){const h=a.viewport.scrollLeft+u.deltaX;e.onWheelScroll(h),pX(h,d)&&u.preventDefault()}},onResize:()=>{l.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Y1(o.paddingLeft),paddingEnd:Y1(o.paddingRight)}})}})}),ake=N.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,a=sl(hc,e.__scopeScrollArea),[o,s]=N.useState(),l=N.useRef(null),c=Hr(t,l,a.onScrollbarYChange);return N.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),m.jsx(uX,{"data-orientation":"vertical",...i,ref:c,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Ow(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,d)=>{if(a.viewport){const h=a.viewport.scrollTop+u.deltaY;e.onWheelScroll(h),pX(h,d)&&u.preventDefault()}},onResize:()=>{l.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Y1(o.paddingTop),paddingEnd:Y1(o.paddingBottom)}})}})}),[oke,cX]=iX(hc),uX=N.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...h}=e,f=sl(hc,n),[g,y]=N.useState(null),v=Hr(t,j=>y(j)),A=N.useRef(null),w=N.useRef(""),S=f.viewport,_=r.content-r.viewport,E=za(u),T=za(l),D=jw(d,10);function I(j){if(A.current){const R=j.clientX-A.current.left,z=j.clientY-A.current.top;c({x:R,y:z})}}return N.useEffect(()=>{const j=R=>{const z=R.target;(g==null?void 0:g.contains(z))&&E(R,_)};return document.addEventListener("wheel",j,{passive:!1}),()=>document.removeEventListener("wheel",j,{passive:!1})},[S,g,_,E]),N.useEffect(T,[r,T]),og(g,D),og(f.content,D),m.jsx(oke,{scope:n,scrollbar:g,hasThumb:i,onThumbChange:za(a),onThumbPointerUp:za(o),onThumbPositionChange:T,onThumbPointerDown:za(s),children:m.jsx(Dr.div,{...h,ref:v,style:{position:"absolute",...h.style},onPointerDown:en(e.onPointerDown,j=>{j.button===0&&(j.target.setPointerCapture(j.pointerId),A.current=g.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",f.viewport&&(f.viewport.style.scrollBehavior="auto"),I(j))}),onPointerMove:en(e.onPointerMove,I),onPointerUp:en(e.onPointerUp,j=>{const R=j.target;R.hasPointerCapture(j.pointerId)&&R.releasePointerCapture(j.pointerId),document.body.style.webkitUserSelect=w.current,f.viewport&&(f.viewport.style.scrollBehavior=""),A.current=null})})})}),$1="ScrollAreaThumb",Lw=N.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=cX($1,e.__scopeScrollArea);return m.jsx(To,{present:n||i.hasThumb,children:m.jsx(ske,{ref:t,...r})})}),ske=N.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...i}=e,a=sl($1,n),o=cX($1,n),{onThumbPositionChange:s}=o,l=Hr(t,d=>o.onThumbChange(d)),c=N.useRef(void 0),u=jw(()=>{c.current&&(c.current(),c.current=void 0)},100);return N.useEffect(()=>{const d=a.viewport;if(d){const h=()=>{if(u(),!c.current){const f=uke(d,s);c.current=f,s()}};return s(),d.addEventListener("scroll",h),()=>d.removeEventListener("scroll",h)}},[a.viewport,u,s]),m.jsx(Dr.div,{"data-state":o.hasThumb?"visible":"hidden",...i,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:en(e.onPointerDownCapture,d=>{const f=d.target.getBoundingClientRect(),g=d.clientX-f.left,y=d.clientY-f.top;o.onThumbPointerDown({x:g,y})}),onPointerUp:en(e.onPointerUp,o.onThumbPointerUp)})});Lw.displayName=$1;var aF="ScrollAreaCorner",dX=N.forwardRef((e,t)=>{const n=sl(aF,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?m.jsx(lke,{...e,ref:t}):null});dX.displayName=aF;var lke=N.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,i=sl(aF,n),[a,o]=N.useState(0),[s,l]=N.useState(0),c=!!(a&&s);return og(i.scrollbarX,()=>{var d;const u=((d=i.scrollbarX)==null?void 0:d.offsetHeight)||0;i.onCornerHeightChange(u),l(u)}),og(i.scrollbarY,()=>{var d;const u=((d=i.scrollbarY)==null?void 0:d.offsetWidth)||0;i.onCornerWidthChange(u),o(u)}),c?m.jsx(Dr.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Y1(e){return e?parseInt(e,10):0}function fX(e,t){const n=e/t;return isNaN(n)?0:n}function Ow(e){const t=fX(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function cke(e,t,n,r="ltr"){const i=Ow(n),a=i/2,o=t||a,s=i-o,l=n.scrollbar.paddingStart+o,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r==="ltr"?[0,u]:[u*-1,0];return hX([l,c],d)(e)}function s6(e,t,n="ltr"){const r=Ow(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,l=n==="ltr"?[0,o]:[o*-1,0],c=AT(e,l);return hX([0,o],[0,s])(c)}function hX(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function pX(e,t){return e>0&&e<t}var uke=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){const a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)};function jw(e,t){const n=za(e),r=N.useRef(0);return N.useEffect(()=>()=>window.clearTimeout(r.current),[]),N.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function og(e,t){const n=za(t);Ga(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}var oF=aX,sF=sX,lF=dX;function dke({className:e,children:t,...n}){return m.jsxs(oF,{"data-slot":"scroll-area",className:Zi("relative",e),...n,children:[m.jsx(sF,{"data-slot":"scroll-area-viewport",className:"ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 !overflow-x-hidden",children:t}),m.jsx(fke,{}),m.jsx(lF,{})]})}function fke({className:e,orientation:t="vertical",...n}){return m.jsx(Uw,{"data-slot":"scroll-area-scrollbar",orientation:t,className:Zi("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:m.jsx(Lw,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var hke=Object.create,Bw=Object.defineProperty,pke=Object.defineProperties,gke=Object.getOwnPropertyDescriptor,mke=Object.getOwnPropertyDescriptors,gX=Object.getOwnPropertyNames,J1=Object.getOwnPropertySymbols,yke=Object.getPrototypeOf,cF=Object.prototype.hasOwnProperty,mX=Object.prototype.propertyIsEnumerable,l6=(e,t,n)=>t in e?Bw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sc=(e,t)=>{for(var n in t||(t={}))cF.call(t,n)&&l6(e,n,t[n]);if(J1)for(var n of J1(t))mX.call(t,n)&&l6(e,n,t[n]);return e},zw=(e,t)=>pke(e,mke(t)),yX=(e,t)=>{var n={};for(var r in e)cF.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&J1)for(var r of J1(e))t.indexOf(r)<0&&mX.call(e,r)&&(n[r]=e[r]);return n},vke=(e,t)=>function(){return t||(0,e[gX(e)[0]])((t={exports:{}}).exports,t),t.exports},xke=(e,t)=>{for(var n in t)Bw(e,n,{get:t[n],enumerable:!0})},bke=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of gX(t))!cF.call(e,i)&&i!==n&&Bw(e,i,{get:()=>t[i],enumerable:!(r=gke(t,i))||r.enumerable});return e},Ake=(e,t,n)=>(n=e!=null?hke(yke(e)):{},bke(!e||!e.__esModule?Bw(n,"default",{value:e,enumerable:!0}):n,e)),wke=vke({"../../node_modules/.pnpm/[email protected]_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=(function(){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,a={},o={util:{encode:function g(y){return y instanceof s?new s(y.type,g(y.content),y.alias):Array.isArray(y)?y.map(g):y.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++i}),g.__id},clone:function g(y,v){v=v||{};var A,w;switch(o.util.type(y)){case"Object":if(w=o.util.objId(y),v[w])return v[w];A={},v[w]=A;for(var S in y)y.hasOwnProperty(S)&&(A[S]=g(y[S],v));return A;case"Array":return w=o.util.objId(y),v[w]?v[w]:(A=[],v[w]=A,y.forEach(function(_,E){A[E]=g(_,v)}),A);default:return y}},getLanguage:function(g){for(;g;){var y=r.exec(g.className);if(y)return y[1].toLowerCase();g=g.parentElement}return"none"},setLanguage:function(g,y){g.className=g.className.replace(RegExp(r,"gi"),""),g.classList.add("language-"+y)},isActive:function(g,y,v){for(var A="no-"+y;g;){var w=g.classList;if(w.contains(y))return!0;if(w.contains(A))return!1;g=g.parentElement}return!!v}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(g,y){var v=o.util.clone(o.languages[g]);for(var A in y)v[A]=y[A];return v},insertBefore:function(g,y,v,A){A=A||o.languages;var w=A[g],S={};for(var _ in w)if(w.hasOwnProperty(_)){if(_==y)for(var E in v)v.hasOwnProperty(E)&&(S[E]=v[E]);v.hasOwnProperty(_)||(S[_]=w[_])}var T=A[g];return A[g]=S,o.languages.DFS(o.languages,function(D,I){I===T&&D!=g&&(this[D]=S)}),S},DFS:function g(y,v,A,w){w=w||{};var S=o.util.objId;for(var _ in y)if(y.hasOwnProperty(_)){v.call(y,_,y[_],A||_);var E=y[_],T=o.util.type(E);T==="Object"&&!w[S(E)]?(w[S(E)]=!0,g(E,v,null,w)):T==="Array"&&!w[S(E)]&&(w[S(E)]=!0,g(E,v,_,w))}}},plugins:{},highlight:function(g,y,v){var A={code:g,grammar:y,language:v};if(o.hooks.run("before-tokenize",A),!A.grammar)throw new Error('The language "'+A.language+'" has no grammar.');return A.tokens=o.tokenize(A.code,A.grammar),o.hooks.run("after-tokenize",A),s.stringify(o.util.encode(A.tokens),A.language)},tokenize:function(g,y){var v=y.rest;if(v){for(var A in v)y[A]=v[A];delete y.rest}var w=new u;return d(w,w.head,g),c(g,w,y,w.head,0),f(w)},hooks:{all:{},add:function(g,y){var v=o.hooks.all;v[g]=v[g]||[],v[g].push(y)},run:function(g,y){var v=o.hooks.all[g];if(!(!v||!v.length))for(var A=0,w;w=v[A++];)w(y)}},Token:s};function s(g,y,v,A){this.type=g,this.content=y,this.alias=v,this.length=(A||"").length|0}s.stringify=function g(y,v){if(typeof y=="string")return y;if(Array.isArray(y)){var A="";return y.forEach(function(T){A+=g(T,v)}),A}var w={type:y.type,content:g(y.content,v),tag:"span",classes:["token",y.type],attributes:{},language:v},S=y.alias;S&&(Array.isArray(S)?Array.prototype.push.apply(w.classes,S):w.classes.push(S)),o.hooks.run("wrap",w);var _="";for(var E in w.attributes)_+=" "+E+'="'+(w.attributes[E]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+_+">"+w.content+"</"+w.tag+">"};function l(g,y,v,A){g.lastIndex=y;var w=g.exec(v);if(w&&A&&w[1]){var S=w[1].length;w.index+=S,w[0]=w[0].slice(S)}return w}function c(g,y,v,A,w,S){for(var _ in v)if(!(!v.hasOwnProperty(_)||!v[_])){var E=v[_];E=Array.isArray(E)?E:[E];for(var T=0;T<E.length;++T){if(S&&S.cause==_+","+T)return;var D=E[T],I=D.inside,j=!!D.lookbehind,R=!!D.greedy,z=D.alias;if(R&&!D.pattern.global){var B=D.pattern.toString().match(/[imsuy]*$/)[0];D.pattern=RegExp(D.pattern.source,B+"g")}for(var W=D.pattern||D,P=A.next,Z=w;P!==y.tail&&!(S&&Z>=S.reach);Z+=P.value.length,P=P.next){var Q=P.value;if(y.length>g.length)return;if(!(Q instanceof s)){var X=1,q;if(R){if(q=l(W,Z,g,j),!q||q.index>=g.length)break;var le=q.index,te=q.index+q[0].length,J=Z;for(J+=P.value.length;le>=J;)P=P.next,J+=P.value.length;if(J-=P.value.length,Z=J,P.value instanceof s)continue;for(var ee=P;ee!==y.tail&&(J<te||typeof ee.value=="string");ee=ee.next)X++,J+=ee.value.length;X--,Q=g.slice(Z,J),q.index-=Z}else if(q=l(W,0,Q,j),!q)continue;var le=q.index,G=q[0],xe=Q.slice(0,le),ge=Q.slice(le+G.length),ue=Z+Q.length;S&&ue>S.reach&&(S.reach=ue);var ce=P.prev;xe&&(ce=d(y,ce,xe),Z+=xe.length),h(y,ce,X);var ye=new s(_,I?o.tokenize(G,I):G,z,G);if(P=d(y,ce,ye),ge&&d(y,P,ge),X>1){var Fe={cause:_+","+T,reach:ue};c(g,y,v,P.prev,Z,Fe),S&&Fe.reach>S.reach&&(S.reach=Fe.reach)}}}}}}function u(){var g={value:null,prev:null,next:null},y={value:null,prev:g,next:null};g.next=y,this.head=g,this.tail=y,this.length=0}function d(g,y,v){var A=y.next,w={value:v,prev:y,next:A};return y.next=w,A.prev=w,g.length++,w}function h(g,y,v){for(var A=y.next,w=0;w<v&&A!==g.tail;w++)A=A.next;y.next=A,A.prev=y,g.length-=w}function f(g){for(var y=[],v=g.head.next;v!==g.tail;)y.push(v.value),v=v.next;return y}return o})();t.exports=n,n.default=n}}),mt=Ake(wke());mt.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},mt.languages.markup.tag.inside["attr-value"].inside.entity=mt.languages.markup.entity,mt.languages.markup.doctype.inside["internal-subset"].inside=mt.languages.markup,mt.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(mt.languages.markup.tag,"addInlined",{value:function(e,r){var n={},n=(n["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:mt.languages[r]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}),r=(n["language-"+r]={pattern:/[\s\S]+/,inside:mt.languages[r]},{});r[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},mt.languages.insertBefore("markup","cdata",r)}}),Object.defineProperty(mt.languages.markup.tag,"addAttribute",{value:function(e,t){mt.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:mt.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),mt.languages.html=mt.languages.markup,mt.languages.mathml=mt.languages.markup,mt.languages.svg=mt.languages.markup,mt.languages.xml=mt.languages.extend("markup",{}),mt.languages.ssml=mt.languages.xml,mt.languages.atom=mt.languages.xml,mt.languages.rss=mt.languages.xml,(function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",r=RegExp(r+"-"+r),i={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":i}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":i}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(mt),mt.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},mt.languages.javascript=mt.languages.extend("clike",{"class-name":[mt.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),mt.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,mt.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:mt.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:mt.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:mt.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:mt.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:mt.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),mt.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:mt.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),mt.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),mt.languages.markup&&(mt.languages.markup.tag.addInlined("script","javascript"),mt.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),mt.languages.js=mt.languages.javascript,mt.languages.actionscript=mt.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),mt.languages.actionscript["class-name"].alias="function",delete mt.languages.actionscript.parameter,delete mt.languages.actionscript["literal-property"],mt.languages.markup&&mt.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:mt.languages.markup}}),(function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript})(mt),(function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(n,r){(n=typeof n=="string"?[n]:n).forEach(function(i){var a=function(d){d.inside||(d.inside={}),d.inside.rest=r},o="doc-comment";if(s=e.languages[i]){var s,l=s[o];if((l=l||(s=e.languages.insertBefore(i,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(l=s[o]={pattern:l}),Array.isArray(l))for(var c=0,u=l.length;c<u;c++)l[c]instanceof RegExp&&(l[c]={pattern:l[c]}),a(l[c]);else a(l)}})}}),t.addSupport(["java","javascript","php"],t)})(mt),(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup);t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))})(mt),(function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})})(mt),(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(s,l){l=(l||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return s});return RegExp(c,l)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<key>>/g,function(){return"(?:"+i+"|"+a+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(a),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(mt),(function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(c){return c=c.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+c+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,o=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+a+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+a+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(c){["url","bold","italic","strike","code-snippet"].forEach(function(u){c!==u&&(e.languages.markdown[c].inside.content.inside[u]=e.languages.markdown[u])})}),e.hooks.add("after-tokenize",function(c){c.language!=="markdown"&&c.language!=="md"||(function u(d){if(d&&typeof d!="string")for(var h=0,f=d.length;h<f;h++){var g,y=d[h];y.type!=="code"?u(y.content):(g=y.content[1],y=y.content[3],g&&y&&g.type==="code-language"&&y.type==="code-block"&&typeof g.content=="string"&&(g=g.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),g="language-"+(g=(/[a-z][\w-]*/i.exec(g)||[""])[0].toLowerCase()),y.alias?typeof y.alias=="string"?y.alias=[y.alias,g]:y.alias.push(g):y.alias=[g]))}})(c.tokens)}),e.hooks.add("wrap",function(c){if(c.type==="code-block"){for(var u="",d=0,h=c.classes.length;d<h;d++){var f=c.classes[d],f=/language-(.+)/.exec(f);if(f){u=f[1];break}}var g,y=e.languages[u];y?c.content=e.highlight((function(v){return v=v.replace(o,""),v=v.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(A,w){var S;return(w=w.toLowerCase())[0]==="#"?(S=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),l(S)):s[w]||A})})(c.content),y,u):u&&u!=="none"&&e.plugins.autoloader&&(g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),c.attributes.id=g,e.plugins.autoloader.loadLanguages(u,function(){var v=document.getElementById(g);v&&(v.innerHTML=e.highlight(v.textContent,e.languages[u],u))}))}}),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown})(mt),mt.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:mt.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},mt.hooks.add("after-tokenize",function(e){if(e.language==="graphql")for(var t=e.tokens.filter(function(g){return typeof g!="string"&&g.type!=="comment"&&g.type!=="scalar"}),n=0;n<t.length;){var r=t[n++];if(r.type==="keyword"&&r.content==="mutation"){var i=[];if(d(["definition-mutation","punctuation"])&&u(1).content==="("){n+=2;var a=h(/^\($/,/^\)$/);if(a===-1)continue;for(;n<a;n++){var o=u(0);o.type==="variable"&&(f(o,"variable-input"),i.push(o.content))}n=a+1}if(d(["punctuation","property-query"])&&u(0).content==="{"&&(n++,f(u(0),"property-mutation"),0<i.length)){var s=h(/^\{$/,/^\}$/);if(s!==-1)for(var l=n;l<s;l++){var c=t[l];c.type==="variable"&&0<=i.indexOf(c.content)&&f(c,"variable-input")}}}}function u(g){return t[n+g]}function d(g,y){y=y||0;for(var v=0;v<g.length;v++){var A=u(v+y);if(!A||A.type!==g[v])return}return 1}function h(g,y){for(var v=1,A=n;A<t.length;A++){var w=t[A],S=w.content;if(w.type==="punctuation"&&typeof S=="string"){if(g.test(S))v++;else if(y.test(S)&&--v===0)return A}}return-1}function f(g,y){var v=g.alias;v?Array.isArray(v)||(g.alias=v=[v]):g.alias=v=[],v.push(y)}}),mt.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,i=r.inside["interpolation-punctuation"],a=r.pattern.source;function o(d,h){if(e.languages[d])return{pattern:RegExp("((?:"+h+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:d}}}}function s(d,h,f){return d={code:d,grammar:h,language:f},e.hooks.run("before-tokenize",d),d.tokens=e.tokenize(d.code,d.grammar),e.hooks.run("after-tokenize",d),d.tokens}function l(d,h,f){var v=e.tokenize(d,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),g=0,y={},v=s(v.map(function(w){if(typeof w=="string")return w;for(var S,_,w=w.content;d.indexOf((_=g++,S="___"+f.toUpperCase()+"_"+_+"___"))!==-1;);return y[S]=w,S}).join(""),h,f),A=Object.keys(y);return g=0,(function w(S){for(var _=0;_<S.length;_++){if(g>=A.length)return;var E,T,D,I,j,R,z,B=S[_];typeof B=="string"||typeof B.content=="string"?(E=A[g],(z=(R=typeof B=="string"?B:B.content).indexOf(E))!==-1&&(++g,T=R.substring(0,z),j=y[E],D=void 0,(I={})["interpolation-punctuation"]=i,(I=e.tokenize(j,I)).length===3&&((D=[1,1]).push.apply(D,s(I[1],e.languages.javascript,"javascript")),I.splice.apply(I,D)),D=new e.Token("interpolation",I,r.alias,j),I=R.substring(z+E.length),j=[],T&&j.push(T),j.push(D),I&&(w(R=[I]),j.push.apply(j,R)),typeof B=="string"?(S.splice.apply(S,[_,1].concat(j)),_+=j.length-1):B.content=j)):(z=B.content,Array.isArray(z)?w(z):w([z]))}})(v),new e.Token(f,v,"language-"+f,d)}e.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(d){return typeof d=="string"?d:Array.isArray(d)?d.map(u).join(""):u(d.content)}e.hooks.add("after-tokenize",function(d){d.language in c&&(function h(f){for(var g=0,y=f.length;g<y;g++){var v,A,w,S=f[g];typeof S!="string"&&(v=S.content,Array.isArray(v)?S.type==="template-string"?(S=v[1],v.length===3&&typeof S!="string"&&S.type==="embedded-code"&&(A=u(S),S=S.alias,S=Array.isArray(S)?S[0]:S,w=e.languages[S])&&(v[1]=l(A,w,S))):h(v):typeof v!="string"&&h([v]))}})(d.tokens)})})(mt),(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript})(mt),(function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return n})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)})(mt),(function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(mt),mt.languages.n4js=mt.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),mt.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),mt.languages.n4jsd=mt.languages.n4js,(function(e){function t(o,s){return RegExp(o.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),s)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var a=n[r],i=e.languages.javascript[a],a=(i=e.util.type(i)==="RegExp"?e.languages.javascript[a]={pattern:i}:i).inside||{};(i.inside=a)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(mt),(function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function a(l,c){return l=l.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return i}),RegExp(l,c)}i=a(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:a(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);function o(l){for(var c=[],u=0;u<l.length;u++){var d=l[u],h=!1;typeof d!="string"&&(d.type==="tag"&&d.content[0]&&d.content[0].type==="tag"?d.content[0].content[0].content==="</"?0<c.length&&c[c.length-1].tagName===s(d.content[0].content[1])&&c.pop():d.content[d.content.length-1].content!=="/>"&&c.push({tagName:s(d.content[0].content[1]),openedBraces:0}):0<c.length&&d.type==="punctuation"&&d.content==="{"?c[c.length-1].openedBraces++:0<c.length&&0<c[c.length-1].openedBraces&&d.type==="punctuation"&&d.content==="}"?c[c.length-1].openedBraces--:h=!0),(h||typeof d=="string")&&0<c.length&&c[c.length-1].openedBraces===0&&(h=s(d),u<l.length-1&&(typeof l[u+1]=="string"||l[u+1].type==="plain-text")&&(h+=s(l[u+1]),l.splice(u+1,1)),0<u&&(typeof l[u-1]=="string"||l[u-1].type==="plain-text")&&(h=s(l[u-1])+h,l.splice(u-1,1),u--),l[u]=new e.Token("plain-text",h,null,h)),d.content&&typeof d.content!="string"&&o(d.content)}}var s=function(l){return l?typeof l=="string"?l:typeof l.content=="string"?l.content:l.content.map(s).join(""):""};e.hooks.add("after-tokenize",function(l){l.language!=="jsx"&&l.language!=="tsx"||o(l.tokens)})})(mt),(function(e){var t=e.util.clone(e.languages.typescript),t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag);t.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0})(mt),mt.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},mt.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=mt.languages.swift}),(function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin})(mt),mt.languages.c=mt.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),mt.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),mt.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},mt.languages.c.string],char:mt.languages.c.char,comment:mt.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:mt.languages.c}}}}),mt.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete mt.languages.c.boolean,mt.languages.objectivec=mt.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete mt.languages.objectivec["class-name"],mt.languages.objc=mt.languages.objectivec,mt.languages.reason=mt.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),mt.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete mt.languages.reason.function,(function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(mt),mt.languages.go=mt.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),mt.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete mt.languages.go["class-name"],(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])})(mt),mt.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},mt.languages.python["string-interpolation"].inside.interpolation.inside.rest=mt.languages.python,mt.languages.py=mt.languages.python,mt.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},mt.languages.webmanifest=mt.languages.json;var Ww={};xke(Ww,{dracula:()=>kke,duotoneDark:()=>Cke,duotoneLight:()=>_ke,github:()=>Nke,gruvboxMaterialDark:()=>aDe,gruvboxMaterialLight:()=>sDe,jettwaveDark:()=>Yke,jettwaveLight:()=>Qke,nightOwl:()=>Rke,nightOwlLight:()=>Ike,oceanicNext:()=>Uke,okaidia:()=>Oke,oneDark:()=>tDe,oneLight:()=>rDe,palenight:()=>Bke,shadesOfPurple:()=>Wke,synthwave84:()=>Gke,ultramin:()=>Hke,vsDark:()=>vX,vsLight:()=>Kke});var Ske={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},kke=Ske,Dke={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},Cke=Dke,Tke={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},_ke=Tke,Eke={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},Nke=Eke,Fke={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},Rke=Fke,Pke={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Ike=Pke,os={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},Mke={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:os.keyword}},{types:["attr-value"],style:{color:os.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:os.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:os.primitive}},{types:["boolean"],style:{color:os.boolean}},{types:["tag"],style:{color:os.tag}},{types:["string"],style:{color:os.string}},{types:["punctuation"],style:{color:os.string}},{types:["selector","char","builtin","inserted"],style:{color:os.char}},{types:["function"],style:{color:os.function}},{types:["operator","entity","url","variable"],style:{color:os.variable}},{types:["keyword"],style:{color:os.keyword}},{types:["atrule","class-name"],style:{color:os.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Uke=Mke,Lke={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},Oke=Lke,jke={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},Bke=jke,zke={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},Wke=zke,Vke={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},Gke=Vke,qke={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},Hke=qke,Xke={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},vX=Xke,Zke={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Kke=Zke,$ke={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Yke=$ke,Jke={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Qke=Jke,eDe={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},tDe=eDe,nDe={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},rDe=nDe,iDe={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},aDe=iDe,oDe={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},sDe=oDe,lDe=e=>N.useCallback(t=>{var n=t,{className:r,style:i,line:a}=n,o=yX(n,["className","style","line"]);const s=zw(sc({},o),{className:uy("token-line",r)});return typeof e=="object"&&"plain"in e&&(s.style=e.plain),typeof i=="object"&&(s.style=sc(sc({},s.style||{}),i)),s},[e]),cDe=e=>{const t=N.useCallback(({types:n,empty:r})=>{if(e!=null){{if(n.length===1&&n[0]==="plain")return r!=null?{display:"inline-block"}:void 0;if(n.length===1&&r!=null)return e[n[0]]}return Object.assign(r!=null?{display:"inline-block"}:{},...n.map(i=>e[i]))}},[e]);return N.useCallback(n=>{var r=n,{token:i,className:a,style:o}=r,s=yX(r,["token","className","style"]);const l=zw(sc({},s),{className:uy("token",...i.types,a),children:i.content,style:t(i)});return o!=null&&(l.style=sc(sc({},l.style||{}),o)),l},[t])},uDe=/\r\n|\r|\n/,c6=e=>{e.length===0?e.push({types:["plain"],content:`-`,empty:!0}):e.length===1&&e[0].content===""&&(e[0].content=`-`,e[0].empty=!0)},u6=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},dDe=e=>{const t=[[]],n=[e],r=[0],i=[e.length];let a=0,o=0,s=[];const l=[s];for(;o>-1;){for(;(a=r[o]++)<i[o];){let c,u=t[o];const h=n[o][a];if(typeof h=="string"?(u=o>0?u:["plain"],c=h):(u=u6(u,h.type),h.alias&&(u=u6(u,h.alias)),c=h.content),typeof c!="string"){o++,t.push(u),n.push(c),r.push(0),i.push(c.length);continue}const f=c.split(uDe),g=f.length;s.push({types:u,content:f[0]});for(let y=1;y<g;y++)c6(s),l.push(s=[]),s.push({types:u,content:f[y]})}o--,t.pop(),n.pop(),r.pop(),i.pop()}return c6(s),l},d6=dDe,fDe=({prism:e,code:t,grammar:n,language:r})=>N.useMemo(()=>{if(n==null)return d6([t]);const i={code:t,grammar:n,language:r,tokens:[]};return e.hooks.run("before-tokenize",i),i.tokens=e.tokenize(t,n),e.hooks.run("after-tokenize",i),d6(i.tokens)},[t,n,r,e]),hDe=(e,t)=>{const{plain:n}=e,r=e.styles.reduce((i,a)=>{const{languages:o,style:s}=a;return o&&!o.includes(t)||a.types.forEach(l=>{const c=sc(sc({},i[l]),s);i[l]=c}),i},{});return r.root=n,r.plain=zw(sc({},n),{backgroundColor:void 0}),r},pDe=hDe,gDe=({children:e,language:t,code:n,theme:r,prism:i})=>{const a=t.toLowerCase(),o=pDe(r,a),s=lDe(o),l=cDe(o),c=i.languages[a],u=fDe({prism:i,language:a,code:n,grammar:c});return e({tokens:u,className:`prism-code language-${a}`,style:o!=null?o.root:{},getLineProps:s,getTokenProps:l})},uF=e=>N.createElement(gDe,zw(sc({},e),{prism:e.prism||mt,theme:e.theme||vX,code:e.code,language:e.language}));/*! Bundled license information:--prismjs/prism.js:- (**- * Prism: Lightweight, robust, elegant syntax highlighting- *- * @license MIT <https://opensource.org/licenses/MIT>- * @author Lea Verou <https://lea.verou.me>- * @namespace- * @public- *)-*/function QD({code:e,language:t="xml",onApply:n}){const[r,i]=N.useState(!1),[a,o]=N.useState(!1),[s,l]=N.useState(!1),[c,u]=N.useState(!1),[d,h]=N.useState(!1),f=async()=>{try{await navigator.clipboard.writeText(e),i(!0),o(!1),setTimeout(()=>i(!1),1500)}catch{o(!0),i(!1),setTimeout(()=>o(!1),1500)}},g=async()=>{if(!(!n||s))try{if(l(!0),await n(e,t)===!1){h(!0),u(!1),setTimeout(()=>h(!1),1500);return}u(!0),h(!1),setTimeout(()=>u(!1),1500)}catch{h(!0),u(!1),setTimeout(()=>h(!1),1500)}finally{l(!1)}};return m.jsxs("div",{className:"overflow-hidden w-full",children:[m.jsxs("div",{className:"mb-1 flex justify-end gap-1",children:[n?m.jsxs("button",{type:"button",onClick:g,disabled:s,className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-[10px] text-muted-foreground hover:bg-muted transition-colors disabled:opacity-60 disabled:cursor-not-allowed",title:c?"Applied":d?"Apply failed":"Apply to canvas",children:[s?m.jsx("div",{className:"h-3 w-3 border-2 border-primary border-t-transparent rounded-full animate-spin"}):c?m.jsx(qo,{className:"h-3 w-3 text-green-500"}):d?m.jsx(Va,{className:"h-3 w-3 text-red-500"}):m.jsx(cy,{className:"h-3 w-3"}),m.jsx("span",{children:s?"Applying":c?"Applied":"Apply"})]}):null,m.jsxs("button",{type:"button",onClick:f,className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-[10px] text-muted-foreground hover:bg-muted transition-colors",title:r?"Copied":a?"Copy failed":"Copy code",children:[r?m.jsx(qo,{className:"h-3 w-3 text-green-500"}):a?m.jsx(Va,{className:"h-3 w-3 text-red-500"}):m.jsx(Ku,{className:"h-3 w-3"}),m.jsx("span",{children:r?"Copied":"Copy"})]})]}),m.jsx(uF,{theme:Ww.github,code:e,language:t,children:({className:y,style:v,tokens:A,getLineProps:w,getTokenProps:S})=>m.jsx("pre",{className:"text-[11px] leading-relaxed overflow-x-auto overflow-y-auto max-h-48 scrollbar-thin break-all",style:{...v,fontFamily:"var(--font-mono), ui-monospace, monospace",backgroundColor:"transparent",margin:0,padding:0,wordBreak:"break-all",whiteSpace:"pre-wrap"},children:A.map((_,E)=>m.jsx("div",{...w({line:_}),style:{wordBreak:"break-all"},children:_.map((T,D)=>m.jsx("span",{...S({token:T})},D))},E))})})]})}function mDe({operations:e}){return m.jsx("div",{className:"space-y-3",children:e.map((t,n)=>m.jsxs("div",{className:"rounded-lg border border-border/50 overflow-hidden bg-background/50",children:[m.jsxs("div",{className:"px-3 py-1.5 bg-muted/40 border-b border-border/30 flex items-center gap-2",children:[m.jsx("span",{className:"text-xs font-medium text-muted-foreground uppercase",children:t.operation}),m.jsxs("span",{className:"text-[11px] text-muted-foreground",children:["cell_id: ",t.cell_id]})]}),t.new_xml&&m.jsx("div",{className:"px-3 py-2",children:m.jsx("pre",{className:"text-[11px] font-mono text-foreground bg-muted/40 rounded px-2 py-1.5 overflow-x-auto whitespace-pre-wrap break-all",children:t.new_xml})})]},`${t.operation}-${t.cell_id}-${n}`))})}function dF(e){const t=[],n=/\[(PDF|File):\s*([^\]]+)\]\n([\s\S]*?)(?=\n\n\[(PDF|File):|$)/g;let r=0,i;for(;(i=n.exec(e))!==null;){const o=e.slice(r,i.index).trim();o&&t.push({type:"text",content:o});const s=i[1].toLowerCase()==="pdf"?"pdf":"text",l=i[2].trim(),c=i[3].trim();t.push({type:"file",content:c,filename:l,charCount:c.length,fileType:s}),r=i.index+i[0].length}const a=e.slice(r).trim();return a&&t.push({type:"text",content:a}),t.length===0&&t.push({type:"text",content:e}),t}const $b=e=>e.parts&&e.parts.length>0?e.parts.filter(t=>t.type==="text").map(t=>t.text).join(`-`):Array.isArray(e.content)?e.content.filter(t=>(t==null?void 0:t.type)==="text").map(t=>String((t==null?void 0:t.text)||"")).join(`-`):e.content||"";function yDe(e){return dF(e).filter(t=>t.type==="file")}function vDe(e){return dF(e).filter(n=>n.type==="text").map(n=>n.content).join(`--`).trim()}const Px=e=>{const t=$b(e),n=/\n\n\[(PDF|File):\s*[^\]]+\]\n[\s\S]*$/;return t.replace(n,"").trim()};function xDe({messages:e,setInput:t,setFiles:n,processedToolCallsRef:r,sessionId:i,onRegenerate:a,onEditMessage:o,status:s="idle",isParsingFiles:l=!1}){const{t:c}=Yf(),{chartXML:u,loadDiagram:d}=Ay(),h=N.useRef(null),f=N.useRef(""),g=N.useRef(""),y=r,[v,A]=N.useState({}),[w,S]=N.useState(null),[_,E]=N.useState(null),[T,D]=N.useState(null),I=N.useRef(null),[j,R]=N.useState(""),z=async(Z,Q)=>{try{await navigator.clipboard.writeText(Q),S(Z),setTimeout(()=>S(null),2e3)}catch{const q=document.createElement("textarea");q.value=Q,q.style.position="fixed",q.style.left="-9999px",q.style.opacity="0",document.body.appendChild(q);try{if(q.select(),!document.execCommand("copy"))throw new Error("Copy command failed");S(Z),setTimeout(()=>S(null),2e3)}catch(te){console.error("Failed to copy message:",te),E(Z),setTimeout(()=>E(null),2e3)}finally{document.body.removeChild(q)}}},B=N.useCallback(async(Z,Q)=>{const X=String(Z||"").trim();if(!X)return!1;const q=u||'<mxfile><diagram name="Page-1" id="page-1"><mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel></diagram></mxfile>';try{if(Q==="xml"){const J=X.includes("<mxfile")?X:EI(q,_I(X));return!d(J,!0)}const te=JSON.parse(X);if((te==null?void 0:te.type)==="flow_patch"){if(String((te==null?void 0:te.mode)||"").trim()==="replace"&&typeof(te==null?void 0:te.full)=="string"){const J=String(te.full).trim();return J?!d(J,!0):!1}if(Array.isArray(te==null?void 0:te.operations)&&te.operations.length>0){const J=mH(q,te.operations);return!d(J,!0)}}if((te==null?void 0:te.type)==="display_diagram"&&typeof(te==null?void 0:te.xml)=="string"){const J=String(te.xml).trim();return J?!d(J,!0):!1}return!1}catch{return!1}},[u,d]),W=N.useCallback(Z=>{const X=_I(Z||"");if(X!==f.current){const te=EI(u||'<mxfile><diagram name="Page-1" id="page-1"><mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel></diagram></mxfile>',X),J=v1(te);J?console.log("[ChatMessageDisplay] XML validation failed:",J):(f.current=X,d(te,!0))}},[u,d]);N.useEffect(()=>{h.current&&h.current.scrollIntoView({behavior:"smooth"})},[e]),N.useEffect(()=>{e.length||(g.current="",f.current="")},[e.length]),N.useEffect(()=>{T&&I.current&&I.current.focus()},[T]),N.useEffect(()=>{e.forEach(Z=>{Z.parts&&Z.parts.forEach(Q=>{var X;if((X=Q.type)!=null&&X.startsWith("tool-")){const q=Q,{toolCallId:te,state:J,input:ee}=q;if(J==="output-available"&&A(le=>({...le,[te]:!1})),Q.type==="tool-display_diagram"&&(ee!=null&&ee.xml)){const le=String(ee.xml);g.current=le,J==="input-streaming"||J==="input-available"?W(le):y.current.has(te)||(W(le),y.current.add(te))}if(Q.type==="tool-append_diagram"&&(ee!=null&&ee.xml)){const le=`${g.current}${String(ee.xml)}`;J==="input-streaming"||J==="input-available"?W(le):y.current.has(te)||(g.current=le,W(le),y.current.add(te))}}})})},[e,W]);const P=Z=>{var xe;const Q=Z.toolCallId,{state:X,input:q,output:te}=Z,J=v[Q]??!0,ee=(xe=Z.type)==null?void 0:xe.replace("tool-",""),le=()=>{A(ge=>({...ge,[Q]:!J}))},G=ge=>{switch(ge){case"display_diagram":return"Generate Diagram";case"edit_diagram":return"Edit Diagram";case"append_diagram":return"Append Diagram";case"get_shape_library":return"Get Shape Library";default:return ge}};return m.jsxs("div",{className:"my-3 rounded-xl border border-border/60 bg-muted/30 overflow-hidden",children:[m.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-muted/50",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"w-6 h-6 rounded-md bg-primary/10 flex items-center justify-center",children:m.jsx(fE,{className:"w-3.5 h-3.5 text-primary"})}),m.jsx("span",{className:"text-sm font-medium text-foreground/80",children:G(ee)})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[X==="input-streaming"&&m.jsx("div",{className:"h-4 w-4 border-2 border-primary border-t-transparent rounded-full animate-spin"}),X==="output-available"&&m.jsx("span",{className:"text-xs font-medium text-green-600 bg-green-50 px-2 py-0.5 rounded-full",children:"Complete"}),X==="output-error"&&m.jsx("span",{className:`text-xs font-medium px-2 py-0.5 rounded-full ${(ee==="display_diagram"||ee==="append_diagram")&&!Dp(String((q==null?void 0:q.xml)||""))?"text-yellow-700 bg-yellow-50":"text-red-600 bg-red-50"}`,children:(ee==="display_diagram"||ee==="append_diagram")&&!Dp(String((q==null?void 0:q.xml)||""))?"Truncated":"Error"}),q&&Object.keys(q).length>0&&m.jsx("button",{type:"button",onClick:le,className:"p-1 rounded hover:bg-muted transition-colors",children:J?m.jsx(qu,{className:"w-4 h-4 text-muted-foreground"}):m.jsx(Wo,{className:"w-4 h-4 text-muted-foreground"})})]})]}),q&&J&&m.jsx("div",{className:"px-4 py-3 border-t border-border/40 bg-muted/20",children:typeof q=="object"&&q.xml?m.jsx(QD,{code:q.xml,language:"xml",onApply:B}):typeof q=="object"&&q.operations&&Array.isArray(q.operations)?m.jsxs("div",{className:"space-y-2",children:[m.jsx("div",{className:"flex justify-end",children:m.jsxs("button",{type:"button",onClick:()=>void B(JSON.stringify({type:"flow_patch",mode:"patch",operations:q.operations},null,2),"json"),className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-[10px] text-muted-foreground hover:bg-muted transition-colors",title:"Apply to canvas",children:[m.jsx(cy,{className:"h-3 w-3"}),m.jsx("span",{children:"Apply"})]})}),m.jsx(mDe,{operations:q.operations})]}):ee==="get_shape_library"&&typeof te=="string"?m.jsx("pre",{className:"text-[11px] whitespace-pre-wrap break-words overflow-x-auto max-h-56 bg-muted/40 rounded px-3 py-2",children:te}):typeof q=="object"&&Object.keys(q).length>0?m.jsx(QD,{code:JSON.stringify(q,null,2),language:"json",onApply:B}):null}),te&&X==="output-error"&&m.jsx("div",{className:"px-4 py-3 border-t border-border/40 text-sm text-red-600",children:te}),te&&ee==="get_shape_library"&&X==="output-available"&&m.jsx("div",{className:"px-4 py-3 border-t border-border/40",children:m.jsx("pre",{className:"text-[11px] whitespace-pre-wrap break-words overflow-x-auto max-h-56 bg-muted/40 rounded px-3 py-2",children:String(te)})})]},Q)};return m.jsxs(dke,{className:"h-full w-full scrollbar-thin",children:[e.length===0?m.jsx("div",{className:"py-4 px-4"}):m.jsx("div",{className:"py-4 px-4 space-y-4",children:e.map((Z,Q)=>{var G,xe;const X=Z.role==="user"?$b(Z):"",q=Z.role==="assistant"&&(Q===e.length-1||e.slice(Q+1).every(ge=>ge.role!=="assistant")),te=Z.role==="user"&&(Q===e.length-1||e.slice(Q+1).every(ge=>ge.role!=="user")),J=T===Z.id,ee=$b(Z),le=Z.role==="user"&&te&&(l||s==="submitted"||s==="streaming");return m.jsxs(N.Fragment,{children:[m.jsx("div",{className:`flex w-full ${Z.role==="user"?"justify-end items-start":"justify-start"} animate-message-in`,style:{animationDelay:`${Q*50}ms`},children:m.jsxs("div",{className:"max-w-[95%] min-w-0",children:[Z.role==="assistant"&&((G=Z.parts)==null?void 0:G.map((ge,ue)=>{var ce,ye;if(ge.type==="reasoning"){const Fe=ge,Oe=ue===(((ce=Z.parts)==null?void 0:ce.length)??0)-1,Le=Z.id===((ye=e[e.length-1])==null?void 0:ye.id),Re=s==="streaming"&&Oe&&Le;return m.jsxs(tX,{className:"w-full",isStreaming:Re,defaultOpen:Re,children:[m.jsx(nX,{}),m.jsx(rX,{children:Fe.text})]},`${Z.id}-reasoning-${ue}`)}return null})),J&&Z.role==="user"?m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx("textarea",{ref:I,value:j,onChange:ge=>R(ge.target.value),className:"w-full min-w-[300px] px-4 py-3 text-sm rounded-2xl border border-primary bg-background text-foreground resize-none focus:outline-none focus:ring-2 focus:ring-primary",rows:Math.min(j.split(`-`).length+1,6),onKeyDown:ge=>{ge.key==="Escape"?(D(null),R("")):ge.key==="Enter"&&(ge.metaKey||ge.ctrlKey)&&(ge.preventDefault(),j.trim()&&o&&(o(Q,j.trim()),D(null),R("")))}}),m.jsxs("div",{className:"flex justify-end gap-2",children:[m.jsx("button",{type:"button",onClick:()=>{D(null),R("")},className:"px-3 py-1.5 text-xs rounded-lg bg-muted hover:bg-muted/80 transition-colors",children:c("message.edit.cancel")}),m.jsx("button",{type:"button",onClick:()=>{j.trim()&&o&&(o(Q,j.trim()),D(null),R(""))},disabled:!j.trim(),className:"px-3 py-1.5 text-xs rounded-lg bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-50 transition-colors",children:c("message.edit.save")})]})]}):(()=>{let ge=Z.parts||[];ge.length===0&&(typeof Z.content=="string"&&Z.content.trim()?ge=[{type:"text",text:Z.content}]:Array.isArray(Z.content)&&(ge=Z.content.map(ce=>{var ye;return(ce==null?void 0:ce.type)==="text"?{type:"text",text:String(ce.text||"")}:(ce==null?void 0:ce.type)==="image_url"&&((ye=ce==null?void 0:ce.image_url)!=null&&ye.url)?{type:"file",url:ce.image_url.url}:(ce==null?void 0:ce.type)==="image"&&(ce!=null&&ce.image||ce!=null&&ce.url)?{type:"file",url:ce.image||ce.url}:(ce==null?void 0:ce.type)==="file"&&(ce!=null&&ce.url)?{type:"file",url:ce.url}:null}).filter(Boolean))),ge=ge.filter(ce=>ce.type==="text"?typeof ce.text=="string"&&ce.text.trim().length>0:ce.type==="file"?!!ce.url:!0);const ue=[];return ge.forEach((ce,ye)=>{var Le;const Fe=(Le=ce.type)==null?void 0:Le.startsWith("tool-"),Oe=ce.type==="text"||ce.type==="file"||ce.type==="image"||ce.type==="image_url";if(Fe)ue.push({type:"tool",parts:[ce],startIndex:ye});else if(Oe){const Re=ue[ue.length-1];(Re==null?void 0:Re.type)==="content"?Re.parts.push(ce):ue.push({type:"content",parts:[ce],startIndex:ye})}}),ue.map((ce,ye)=>{if(ce.type==="tool")return P(ce.parts[0]);const Fe=ce.parts.filter(We=>We.type==="file"||We.type==="image"||We.type==="image_url"),Oe=ce.parts.filter(We=>We.type==="text"),Le=Oe.flatMap(We=>yDe(String(We.text||""))),Re=Oe.some(We=>vDe(String(We.text||"")).length>0);return m.jsxs("div",{className:ye>0?"mt-3":"",children:[Z.role==="user"&&(Fe.length>0||Le.length>0)&&m.jsx("div",{className:"mb-2 flex justify-end",children:m.jsxs("div",{className:"flex flex-wrap gap-2 max-w-[85%]",children:[Fe.map((We,V)=>{var oe;const ve=We.url||We.image||((oe=We.image_url)==null?void 0:oe.url);return ve?m.jsx(O1,{src:ve,width:96,height:96,alt:"Uploaded image",className:"rounded-md border border-white/20",style:{objectFit:"cover"}},`${Z.id}-att-${ce.startIndex}-${V}`):null}),Le.map((We,V)=>{const ve=We.charCount&&We.charCount>=1e3?`${(We.charCount/1e3).toFixed(1)}k`:We.charCount;return m.jsxs("div",{className:"inline-flex items-center gap-2 rounded-md border border-border/60 bg-muted/35 px-2.5 py-1.5",children:[We.fileType==="pdf"?m.jsx(Oi,{className:"h-4 w-4 text-red-500"}):m.jsx(eu,{className:"h-4 w-4 text-blue-500"}),m.jsx("span",{className:"text-xs font-medium leading-none",children:We.filename}),ve?m.jsxs("span",{className:"text-[10px] text-muted-foreground leading-none",children:[ve," ","chars"]}):null]},`${Z.id}-file-top-${ce.startIndex}-${V}`)})]})}),Re||Z.role!=="user"?m.jsxs("div",{className:Z.role==="user"?"flex flex-col items-end gap-1.5":"",children:[Z.role==="user"&&!J&&m.jsxs("div",{className:"order-2 flex items-center gap-1 self-end",children:[o&&te&&m.jsx("button",{type:"button",onClick:()=>{D(Z.id),R(Px(Z))},className:"p-1.5 rounded-lg text-muted-foreground/60 hover:text-muted-foreground hover:bg-muted transition-colors",title:c("message.edit"),children:m.jsx(Fl,{className:"h-3.5 w-3.5"})}),m.jsx("button",{type:"button",onClick:()=>z(Z.id,X||Px(Z)),className:"p-1.5 rounded-lg text-muted-foreground/60 hover:text-muted-foreground hover:bg-muted transition-colors",title:w===Z.id?c("message.copied"):_===Z.id?c("message.copy.failed"):c("message.copy"),children:w===Z.id?m.jsx(qo,{className:"h-3.5 w-3.5 text-green-500"}):_===Z.id?m.jsx(Va,{className:"h-3.5 w-3.5 text-red-500"}):m.jsx(Ku,{className:"h-3.5 w-3.5"})})]}),m.jsx("div",{className:`order-1 w-full px-4 py-3 text-sm leading-relaxed ${Z.role==="user"?"bg-background text-foreground rounded-2xl rounded-br-md border border-border/50 shadow-sm":Z.role==="system"?"bg-destructive/10 text-destructive border border-destructive/20 rounded-2xl rounded-bl-md":"bg-muted/60 text-foreground rounded-2xl rounded-bl-md"} ${Z.role==="user"&&te&&o?"cursor-pointer hover:opacity-90 transition-opacity":""}`,role:Z.role==="user"&&te&&o?"button":void 0,tabIndex:Z.role==="user"&&te&&o?0:void 0,onClick:()=>{Z.role==="user"&&te&&o&&(D(Z.id),R(Px(Z)))},onKeyDown:We=>{(We.key==="Enter"||We.key===" ")&&Z.role==="user"&&te&&o&&(We.preventDefault(),D(Z.id),R(Px(Z)))},title:Z.role==="user"&&te&&o?c("message.edit"):void 0,children:Oe.map((We,V)=>{if(We.type==="text"){const ve=We.text,oe=dF(ve).filter(re=>re.type==="text");return m.jsx("div",{className:"space-y-2",children:oe.map((re,ne)=>Z.role==="user"?m.jsx("div",{className:"whitespace-pre-wrap break-words",children:re.content},`${Z.id}-textsection-${V}-${ne}`):m.jsx("div",{className:"prose prose-sm max-w-none break-words [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 dark:prose-invert",children:m.jsx(J3,{components:{code({inline:be,className:Ue,children:Me,...Ee}){if(be)return m.jsx("code",{className:Ue,...Ee,children:Me});const Se=/language-(\w+)/.exec(String(Ue||"")),Ce=String((Se==null?void 0:Se[1])||"").toLowerCase(),pe=String(Me||"").replace(/\n$/,""),ke=Ce==="json"||Ce==="xml"?Ce:null;return ke?m.jsx(QD,{code:pe,language:ke,onApply:B}):m.jsx("pre",{className:"overflow-x-auto whitespace-pre-wrap break-words rounded-md bg-muted/30 px-3 py-2 text-[12px] leading-relaxed",children:m.jsx("code",{className:Ue,...Ee,children:pe})})}},children:re.content})},`${Z.id}-textsection-${V}-${ne}`))},`${Z.id}-text-${ce.startIndex}-${V}`)}return null})})]}):null]},`${Z.id}-content-${ce.startIndex}`)})})(),Z.role==="assistant"&&ee.trim().length>0&&m.jsxs("div",{className:"flex items-center gap-1 mt-2",children:[m.jsx("button",{type:"button",onClick:()=>z(Z.id,$b(Z)),className:`p-1.5 rounded-lg transition-colors ${w===Z.id?"text-green-600 bg-green-100":"text-muted-foreground/60 hover:text-foreground hover:bg-muted"}`,title:w===Z.id?c("message.copied"):c("message.copy"),children:w===Z.id?m.jsx(qo,{className:"h-3.5 w-3.5"}):m.jsx(Ku,{className:"h-3.5 w-3.5"})}),a&&q&&!((xe=Z.parts)!=null&&xe.some(ge=>{var ue;return(ue=ge.toolCallId)==null?void 0:ue.startsWith("cached-")}))&&m.jsx("button",{type:"button",onClick:ge=>{ge.preventDefault(),ge.stopPropagation(),a(Q)},className:"p-1.5 rounded-lg text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors cursor-pointer relative z-10",title:c("message.regenerate"),children:m.jsx(fg,{className:"h-3.5 w-3.5"})})]})]})}),le&&m.jsx("div",{className:"flex w-full justify-start animate-message-in mt-3",children:m.jsx("div",{className:"max-w-[85%] min-w-0",children:m.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 text-xs text-muted-foreground bg-muted/40 rounded-2xl rounded-bl-md",children:[m.jsx(sa,{className:"h-3 w-3 animate-spin"}),m.jsx("span",{children:c(l?"message.parsing_files":"message.thinking")})]})})})]},Z.id)})}),m.jsx("div",{ref:h})]})}const bDe={},Ix="next-ai-draw-io-messages",Mx="next-ai-draw-io-xml-snapshots",Ux="next-ai-draw-io-session-id",Wm="next-ai-draw-io-diagram-xml",f6="next-ai-draw-io-deep-thinking",ADe="output-error",ss=typeof import.meta<"u"&&bDe&&!1,Lx=3;function wDe(e){var r;const t=e[e.length-1];if(!t||t.role!=="assistant")return!1;const n=((r=t.parts)==null?void 0:r.filter(i=>{var a;return(a=i.type)==null?void 0:a.startsWith("tool-")}))||[];return n.length===0?!1:n.some(i=>i.state===ADe)}function SDe({isVisible:e,onToggleVisibility:t,drawioUi:n,onToggleDrawioUi:r,darkMode:i,onToggleDarkMode:a,isMobile:o=!1,onCloseProtectionChange:s}){const{loadDiagram:l,handleExport:c,handleExportWithoutHistory:u,pushHistorySnapshot:d,resolverRef:h,chartXML:f,clearDiagram:g,isDrawioReady:y}=Ay(),{t:v}=Yf(),A=(b=!0)=>y?Promise.race([new Promise((ae,M)=>{h&&"current"in h&&(h.current=ae),(b?c():u())||(h&&"current"in h&&(h.current=null),M(new Error("Failed to trigger Draw.io export. Editor reference is missing.")))}),new Promise((ae,M)=>setTimeout(()=>{h&&"current"in h&&(h.current=null),M(new Error("Chart export timed out after 10 seconds"))},1e4))]):Promise.reject(new Error("Draw.io editor is not ready yet. Please wait for it to load.")),{files:w,pdfData:S,handleFileChange:_,setFiles:E}=dH("flow"),[T,D]=N.useState(!1),[,I]=N.useState(!1),[j,R]=N.useState(""),[z,B]=N.useState(0),[W,P]=N.useState(0),[Z,Q]=N.useState(0),[X,q]=N.useState(""),[te,J]=N.useState(!1),[ee,le]=N.useState(()=>typeof window>"u"?!1:localStorage.getItem(f6)==="true");N.useEffect(()=>{fetch("/api/config").then(b=>b.json()).then(b=>{I(b.accessCodeRequired),B(b.dailyRequestLimit||0),P(b.dailyTokenLimit||0),Q(b.tpmLimit||0),q(b.defaultModel||"")}).catch(()=>{I(!1)})},[]),N.useEffect(()=>{typeof window>"u"||localStorage.setItem(f6,ee?"true":"false")},[ee]);const G=k1e({dailyRequestLimit:z,dailyTokenLimit:W,tpmLimit:Z}),[xe,ge]=N.useState(()=>{if(typeof window<"u"){const b=localStorage.getItem(Ux);if(b)return b}return`session-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}),ue=N.useRef(new Map),ce=N.useRef(!1),ye=N.useRef(f);N.useEffect(()=>{ye.current=f},[f]);const Fe=N.useRef(null),Oe=N.useRef(0),Le=N.useRef(new Set),Re=N.useRef(""),We=pye({api:"/api/chat",onError:b=>{var k,O;J(!1),console.error("[ChatPanel] useChat error:",b);const ae=(b==null?void 0:b.message)||((k=b==null?void 0:b.cause)==null?void 0:k.message)||((O=b==null?void 0:b.cause)==null?void 0:O.error)||"未知错误";let M=String(ae);try{const H=JSON.parse(M);H&&typeof H.error=="string"&&(M=H.error)}catch{}Ln.error(`发送失败:${M}`)},async onToolCall({toolCall:b}){if(ss&&console.log(`[onToolCall] Tool: ${b.toolName}, CallId: ${b.toolCallId}`),b.toolName==="display_diagram"){const{xml:ae}=b.input,M=String(ae||"");if(Re.current=M,ss&&console.log(`[display_diagram] Received XML length: ${M.length}`),!Dp(M)){ve({tool:"display_diagram",toolCallId:b.toolCallId,state:"output-error",errorText:`Output was truncated due to length limits. Continue with append_diagram from the exact point where this fragment stopped.--Your partial XML:-\`\`\`xml-${M}-\`\`\`--Rules:-- Do not emit wrapper tags-- Do not restart from the beginning-- Continue from the exact next character`});return}let k=M;const{valid:O,error:H,fixed:Ne,fixes:_e}=NI(sx(M));if(Ne&&(k=Ne,ss&&console.log("[display_diagram] XML auto-fixed:",_e)),!O&&H){ve({tool:"display_diagram",toolCallId:b.toolCallId,state:"output-error",errorText:`${H}--Please fix the XML issues and call display_diagram again with corrected XML.--Your failed XML:-\`\`\`xml-${M}-\`\`\``});return}const Pe=k.includes("<mxfile")?k:sx(k),Ze=l(Pe);Ze?(console.warn("[display_diagram] Validation error:",Ze),ss&&console.log("[display_diagram] Adding tool output with state: output-error"),ve({tool:"display_diagram",toolCallId:b.toolCallId,state:"output-error",errorText:`${Ze}--${Dp(ae)?"Please fix the XML issues and call display_diagram again with corrected XML.":"The XML appears truncated. Continue with append_diagram from the exact point where this fragment stopped."}--Your failed XML:-\`\`\`xml-${ae}-\`\`\``})):(ss&&console.log("[display_diagram] Success! Adding tool output with state: output-available"),ve({tool:"display_diagram",toolCallId:b.toolCallId,output:"Successfully displayed the diagram."}),ss&&console.log("[display_diagram] Tool output added. Diagram should be visible now."))}else if(b.toolName==="append_diagram"){const{xml:ae}=b.input,M=String(ae||""),k=M.trim();if(k.startsWith("<mxGraphModel")||k.startsWith("<root")||k.startsWith("<mxfile")||k.startsWith('<mxCell id="0"')||k.startsWith('<mxCell id="1"')){ve({tool:"append_diagram",toolCallId:b.toolCallId,state:"output-error",errorText:`Do not restart the diagram in append_diagram.--Continue from the exact point where the previous fragment stopped:-\`\`\`-${Re.current.slice(-500)}-\`\`\`--Do not emit wrapper tags or root cells.`});return}const O=`${Re.current}${M}`;if(Re.current=O,ss&&console.log(`[append_diagram] Combined XML length=${O.length}`),!Dp(O)){ve({tool:"append_diagram",toolCallId:b.toolCallId,state:"output-error",errorText:`The combined XML still appears truncated. Continue with append_diagram from the exact point where this fragment stopped.--Current ending:-\`\`\`-${O.slice(-500)}-\`\`\``});return}let H=O;const{valid:Ne,error:_e,fixed:Pe,fixes:Ze}=NI(sx(O));if(Pe&&(H=Pe,ss&&console.log("[append_diagram] XML auto-fixed:",Ze)),!Ne&&_e){ve({tool:"append_diagram",toolCallId:b.toolCallId,state:"output-error",errorText:`${_e}--Please fix the appended XML and continue only if more cells are still missing.`});return}const ut=H.includes("<mxfile")?H:sx(H),st=l(ut);st?ve({tool:"append_diagram",toolCallId:b.toolCallId,state:"output-error",errorText:`${st}--${Dp(O)?"Please fix the appended XML and continue only if more cells are still missing.":"The combined XML still appears truncated. Continue with append_diagram from the exact point where this fragment stopped."}`}):(Re.current="",ve({tool:"append_diagram",toolCallId:b.toolCallId,output:"Successfully appended the remaining diagram XML."}))}else if(b.toolName==="edit_diagram"){const{operations:ae}=b.input;let M="";try{console.log("[edit_diagram] Starting...");const k=ye.current;k?(M=k,console.log("[edit_diagram] Using cached chartXML, length:",M.length)):(console.log("[edit_diagram] No cached XML, fetching from DrawIO..."),M=await A(!1),console.log("[edit_diagram] Got XML from export, length:",M.length));const O=mH(M,ae),H=l(O);H?(console.warn("[edit_diagram] Validation error:",H),ve({tool:"edit_diagram",toolCallId:b.toolCallId,state:"output-error",errorText:`${H}--Please fix the XML issues. Ensure cell_id values exist in the current XML and that each new_xml contains exactly one valid mxCell.`})):(ye.current=O,Re.current="",ve({tool:"edit_diagram",toolCallId:b.toolCallId,output:"Successfully edited the diagram."}))}catch(k){console.error("[edit_diagram] Error:",k),ve({tool:"edit_diagram",toolCallId:b.toolCallId,state:"output-error",errorText:`Failed to edit diagram: ${k instanceof Error?k.message:"Unknown error"}`})}}},sendAutomaticallyWhen:({messages:b})=>{if(!wDe(b))return Oe.current=0,ss&&console.log("[sendAutomaticallyWhen] No errors, stopping"),!1;if(Oe.current>=Lx)return ss&&console.log(`[sendAutomaticallyWhen] Max retry count (${Lx}) reached, stopping`),Ln.error(`自动重试已达到上限(${Lx} 次),请手动重试。`),Oe.current=0,!1;const M=G.checkTokenLimit();return M.allowed?G.checkTPMLimit().allowed?(Oe.current++,ss&&console.log(`[sendAutomaticallyWhen] Retrying (${Oe.current}/${Lx})`),!0):(ss&&console.log("[sendAutomaticallyWhen] TPM limit exceeded, stopping"),G.showTPMLimitToast(),Oe.current=0,!1):(ss&&console.log("[sendAutomaticallyWhen] Token limit exceeded, stopping"),G.showTokenLimitToast(M.used),Oe.current=0,!1)}}),{messages:V,addToolOutput:ve,stop:oe,status:re,error:ne,setMessages:be}=We,Ue=We.append||We.sendMessage;N.useEffect(()=>{typeof Ue!="function"&&console.error("[ChatPanel] appendMessage (append/sendMessage) is not a function!",We)},[We,Ue]),Fe.current=oe;const Me=N.useRef(V);N.useEffect(()=>{Me.current=V},[V]),N.useEffect(()=>{V.length||(Re.current="")},[V.length]);const Ee=N.useRef(null);N.useEffect(()=>{if(!ce.current){ce.current=!0;try{const b=localStorage.getItem(Ix);if(b){const M=JSON.parse(b);Array.isArray(M)&&M.length>0&&be(M)}const ae=localStorage.getItem(Mx);if(ae){const M=JSON.parse(ae);ue.current=new Map(M)}}catch(b){console.error("Failed to restore from localStorage:",b)}}},[be]);const Se=N.useRef(!1),[Ce,pe]=N.useState(!1);N.useEffect(()=>{if(!y){Se.current=!1,pe(!1);return}if(!Se.current){Se.current=!0;try{const b=localStorage.getItem(Wm);console.log("[ChatPanel] Restoring diagram, has saved XML:",!!b),b&&(console.log("[ChatPanel] Loading saved diagram XML, length:",b.length),l(b,!0),ye.current=b)}catch(b){console.error("Failed to restore diagram from localStorage:",b)}setTimeout(()=>{console.log("[ChatPanel] Enabling diagram save"),pe(!0)},500)}},[y,l]),N.useEffect(()=>{if(ce.current)try{localStorage.setItem(Ix,JSON.stringify(V))}catch(b){console.error("Failed to save messages to localStorage:",b)}},[V]),N.useEffect(()=>{Ce&&f&&f.length>300&&localStorage.setItem(Wm,f)},[f,Ce]);const ke=N.useCallback(()=>{try{const b=Array.from(ue.current.entries());localStorage.setItem(Mx,JSON.stringify(b))}catch(b){console.error("Failed to save XML snapshots to localStorage:",b)}},[]);N.useEffect(()=>{localStorage.setItem(Ux,xe)},[xe]),N.useEffect(()=>{Ee.current&&Ee.current.scrollIntoView({behavior:"smooth"})},[V]),N.useEffect(()=>{re==="streaming"&&te&&J(!1)},[re,te]),N.useEffect(()=>{const b=()=>{try{localStorage.setItem(Ix,JSON.stringify(Me.current)),localStorage.setItem(Mx,JSON.stringify(Array.from(ue.current.entries())));const ae=ye.current;ae&&ae.length>300&&localStorage.setItem(Wm,ae),localStorage.setItem(Ux,xe)}catch(ae){console.error("Failed to persist state before unload:",ae)}};return window.addEventListener("beforeunload",b),()=>window.removeEventListener("beforeunload",b)},[xe]);const Ve=async b=>{b.preventDefault();const ae=re==="streaming"||re==="submitted";if(j.trim()&&!ae){let M=f||"";try{if(y)try{M=await A(!1)}catch(ut){console.warn("Failed to fetch chart data, using current state:",ut)}M=zoe(M),d(M),ye.current=M;const k=w.some(ut=>Il(ut)||Hu(ut)||Vp(ut));J(k);const O=[],{userText:H,uploadedFiles:Ne}=await F(j,w,S,O);O.unshift({type:"text",text:H});const _e=Array.from(ue.current.keys()).sort((ut,st)=>st-ut),Pe=_e.length>0&&ue.current.get(_e[0])||"",Ze=V.length;if(ue.current.set(Ze,M),ke(),!$()){J(!1);return}de(O,M,Pe,xe,Ne),R(""),E([])}catch(k){console.error("Error fetching chart data:",k),J(!1)}}},Xe=b=>{R(b.target.value)},it=b=>Array.isArray(b==null?void 0:b.parts)?b.parts:typeof(b==null?void 0:b.content)=="string"?[{type:"text",text:b.content}]:Array.isArray(b==null?void 0:b.content)?b.content.map(ae=>{var M;return typeof ae=="string"?{type:"text",text:ae}:(ae==null?void 0:ae.type)==="text"?{type:"text",text:ae.text||""}:(ae==null?void 0:ae.type)==="image_url"&&((M=ae==null?void 0:ae.image_url)!=null&&M.url)?{type:"file",url:ae.image_url.url,mediaType:"image/*"}:(ae==null?void 0:ae.type)==="image"&&(ae!=null&&ae.url||ae!=null&&ae.image)?{type:"file",url:ae.url||ae.image,mediaType:ae.mediaType||ae.mimeType||"image/*"}:(ae==null?void 0:ae.type)==="file"&&(ae!=null&&ae.url)?{type:"file",url:ae.url,mediaType:ae.mediaType||ae.mimeType||""}:null}).filter(Boolean):[],et=b=>{const ae=[],M=/\[(PDF|File):\s*[^\]]+\][\s\S]*?(?=\n\n\[(PDF|File):|$)/g;let k;for(;(k=M.exec(String(b||"")))!==null;)ae.push(String(k[0]||"").trim());return ae},U=b=>it(b).filter(M=>(M==null?void 0:M.type)==="text").map(M=>String((M==null?void 0:M.text)||"")).join(`-`),Ae=b=>{const ae=Array.from(ue.current.keys()).filter(M=>M<b).sort((M,k)=>k-M);return ae.length>0&&ue.current.get(ae[0])||""},se=b=>{l(b,!0),ye.current=b},Te=b=>{for(const ae of ue.current.keys())ae>b&&ue.current.delete(ae);ke()},$=()=>{if(!G.checkDailyLimit().allowed)return G.showQuotaLimitToast(),!1;const ae=G.checkTokenLimit();return ae.allowed?G.checkTPMLimit().allowed?!0:(G.showTPMLimitToast(),!1):(G.showTokenLimitToast(ae.used),!1)},de=(b,ae,M,k,O=[])=>{Oe.current=0;const H=p1e(),Ne=String(H.aiModel||X||"").trim(),_e=String(H.aiImageModel||"").trim(),Pe=localStorage.getItem(g_)||"",Ze=Array.isArray(b)?b:[],ut=Ze.find(dt=>dt.type==="text"),st=(ut==null?void 0:ut.text)||"",Je=Ze.map(dt=>{var rn;return(dt==null?void 0:dt.type)==="file"&&(dt!=null&&dt.url)?{url:dt.url,contentType:dt.mediaType||dt.mimeType||""}:(dt==null?void 0:dt.type)==="image"&&(dt!=null&&dt.url||dt!=null&&dt.image)?{url:dt.url||dt.image,contentType:dt.mediaType||dt.mimeType||""}:(dt==null?void 0:dt.type)==="image_url"&&((rn=dt==null?void 0:dt.image_url)!=null&&rn.url)?{url:dt.image_url.url,contentType:dt.mediaType||dt.mimeType||""}:null}).filter(dt=>(dt==null?void 0:dt.url)&&String(dt.url).startsWith("data:image/")),pt=[];for(const dt of Je)pt.push({type:"image_url",image_url:{url:dt.url}});pt.push({type:"text",text:st});const xt={role:"user",content:pt};if(console.log("[sendChatMessage] calling appendMessage",{message:xt,appendMessage:Ue}),typeof Ue!="function"){console.error("[sendChatMessage] appendMessage is not a function!",Ue),Ln.error("内部错误:聊天初始化失败,请刷新页面后重试。");return}if(!Ne){Ln.error("未配置模型。请在顶部设置填写模型,或在服务端配置 AI_MODEL。");return}Ue(xt,{body:{xml:ae,previousXml:M,sessionId:k,uploadedFiles:O,deepThinkingEnabled:ee,aiConfig:{provider:H.aiProvider,baseUrl:H.aiBaseUrl,apiKey:H.aiApiKey,chatModel:Ne,imageModel:_e,textProvider:H.aiProvider,textBaseUrl:H.aiBaseUrl,textApiKey:H.aiApiKey,textModel:Ne,imageProvider:H.aiImageProvider||H.aiProvider,imageBaseUrl:H.aiImageBaseUrl||H.aiBaseUrl,imageApiKey:H.aiImageApiKey||H.aiApiKey},aiConstraints:Pe},headers:{"x-access-code":H.accessCode,...H.aiProvider&&{"x-ai-provider":H.aiProvider},...H.aiBaseUrl&&{"x-ai-base-url":H.aiBaseUrl},...H.aiApiKey&&{"x-ai-api-key":H.aiApiKey},...Ne&&{"x-ai-model":Ne},...Ne&&{"x-ai-chat-model":Ne},..._e&&{"x-ai-image-model":_e},...Pe&&{"x-ai-constraints":encodeURIComponent(Pe)}}}),G.incrementRequestCount()},F=async(b,ae,M,k)=>{let O=String(b||"").replace(/\n\n\[(PDF|File):\s*[^\]]+\]\n[\s\S]*$/i,"").trim();const H=[],Ne=new Set;for(const _e of ae){const Pe=`${_e.name}__${_e.size}__${_e.lastModified}`;if(Ne.has(Pe))continue;Ne.add(Pe);const Ze=new FileReader,ut=await new Promise(st=>{Ze.onload=()=>st(Ze.result),Ze.readAsDataURL(_e)});if(_e.type.startsWith("image/")&&k){k.push({type:"file",url:ut,mediaType:_e.type});continue}if(Il(_e)||Hu(_e)||Vp(_e)){const st=M.get(_e);let Je=st&&!st.isExtracting&&st.text?st.text:void 0;if(!Je)try{Il(_e)?Je=await Kq(_e):Vp(_e)?Je=await Yq(_e):Hu(_e)&&(Je=await $q(_e))}catch(xt){console.warn(`[processFilesAndAppendContent] Failed to pre-extract ${_e.name}:`,xt)}H.push({name:_e.name,mediaType:_e.type||"application/octet-stream",dataUrl:ut,extractedText:Je});const pt=String(Je||"").trim();O+=`--[File: ${_e.name}]-${pt||"(Failed to read content)"}`}}return{userText:O,uploadedFiles:H}},De=async b=>{if(re==="streaming"||re==="submitted"){Ln.warning(v("common.busy"));return}let M=b-1;for(;M>=0&&V[M].role!=="user";)M--;if(M<0){console.error("Could not find preceding user message for index:",b),Ln.error(v("common.regenerate_error"));return}const k=V[M],O=it(k),H=ue.current.get(M);if(!H){console.error("No saved XML snapshot for message index:",M),Ln.error(v("common.regenerate_error"));return}const Ne=Ae(M);se(H),Te(M);const _e=V.slice(0,M);be(_e),$()&&setTimeout(()=>{de(O,H,Ne,xe)},0)},He=async(b,ae)=>{if(re==="streaming"||re==="submitted")return;const k=V[b];if(!k||k.role!=="user")return;const O=ue.current.get(b);if(!O){console.error("No saved XML snapshot for message index:",b);return}const H=Ae(b);se(O),Te(b);const Ne=it(k),_e=U(k),Pe=et(_e),Ze=Pe.length>0?`${ae.trim()}--${Pe.join(`--`)}`:ae,ut=Ne.length>0?Ne.map(Je=>Je.type==="text"?{...Je,text:Ze}:Je):[{type:"text",text:Ze}],st=V.slice(0,b);be(st),$()&&setTimeout(()=>{de(ut,O,H,xe)},0)};return!e&&!o?m.jsx("div",{className:"h-full flex flex-col items-center pt-4 bg-card border border-border/30 rounded-xl",children:m.jsx(Jl,{tooltipContent:v("chat.panel.show"),variant:"ghost",size:"icon",onClick:t,className:"hover:bg-accent transition-colors",children:m.jsx(vE,{className:"h-5 w-5 text-muted-foreground"})})}):m.jsxs("div",{className:"h-full flex flex-col bg-card shadow-soft animate-slide-in-right rounded-xl border border-border/30 relative",children:[m.jsx(xB,{position:"top-center",richColors:!0,expand:!0,toastOptions:{style:{maxWidth:"480px"}}}),m.jsx("header",{className:`${o?"px-3 py-2":"px-5 py-4"} border-b border-border/50`,children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("div",{className:"flex items-center gap-2",children:m.jsx("span",{className:"text-base font-semibold tracking-tight whitespace-nowrap",children:v("chat.panel.title")})}),m.jsx("div",{className:"flex items-center gap-1",children:!o&&m.jsx(Jl,{tooltipContent:v("chat.panel.hide"),variant:"ghost",size:"icon",onClick:t,className:"hover:bg-accent",children:m.jsx(yE,{className:"h-5 w-5 text-muted-foreground"})})})]})}),m.jsx("main",{className:"flex-1 w-full overflow-hidden min-h-0",children:m.jsx(xDe,{messages:V,setInput:R,setFiles:_,processedToolCallsRef:Le,sessionId:xe,onRegenerate:De,status:re,isParsingFiles:te,onEditMessage:He})}),m.jsx("footer",{className:`${o?"p-2":"p-4"} border-t border-border/50 bg-card/50`,children:m.jsx(h1e,{input:j,status:re,onStop:oe,onSubmit:Ve,onChange:Xe,onClearChat:()=>{be([]),g();const b=`session-${Date.now()}-${Math.random().toString(36).slice(2,9)}`;ge(b),ue.current.clear(),localStorage.removeItem(Ix),localStorage.removeItem(Mx),localStorage.removeItem(Wm),localStorage.setItem(Ux,b)},files:w,onFileChange:_,pdfData:S,showHistory:T,onToggleHistory:D,error:ne,deepThinkingEnabled:ee,onToggleDeepThinking:()=>le(b=>!b)})})]})}const kDe="next-ai-draw-io-close-protection",Vw=N.createContext(null);Vw.displayName="PanelGroupContext";const la={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},fF=10,If=N.useLayoutEffect,h6=wA.useId,DDe=typeof h6=="function"?h6:()=>null;let CDe=0;function hF(e=null){const t=DDe(),n=N.useRef(e||t||null);return n.current===null&&(n.current=""+CDe++),e??n.current}function xX({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:a,id:o,maxSize:s,minSize:l,onCollapse:c,onExpand:u,onResize:d,order:h,style:f,tagName:g="div",...y}){const v=N.useContext(Vw);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:A,expandPanel:w,getPanelSize:S,getPanelStyle:_,groupId:E,isPanelCollapsed:T,reevaluatePanelConstraints:D,registerPanel:I,resizePanel:j,unregisterPanel:R}=v,z=hF(o),B=N.useRef({callbacks:{onCollapse:c,onExpand:u,onResize:d},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:s,minSize:l},id:z,idIsFromProps:o!==void 0,order:h});N.useRef({didLogMissingDefaultSizeWarning:!1}),If(()=>{const{callbacks:P,constraints:Z}=B.current,Q={...Z};B.current.id=z,B.current.idIsFromProps=o!==void 0,B.current.order=h,P.onCollapse=c,P.onExpand=u,P.onResize=d,Z.collapsedSize=n,Z.collapsible=r,Z.defaultSize=i,Z.maxSize=s,Z.minSize=l,(Q.collapsedSize!==Z.collapsedSize||Q.collapsible!==Z.collapsible||Q.maxSize!==Z.maxSize||Q.minSize!==Z.minSize)&&D(B.current,Q)}),If(()=>{const P=B.current;return I(P),()=>{R(P)}},[h,z,I,R]),N.useImperativeHandle(a,()=>({collapse:()=>{A(B.current)},expand:P=>{w(B.current,P)},getId(){return z},getSize(){return S(B.current)},isCollapsed(){return T(B.current)},isExpanded(){return!T(B.current)},resize:P=>{j(B.current,P)}}),[A,w,S,T,z,j]);const W=_(B.current,i);return N.createElement(g,{...y,children:e,className:t,id:z,style:{...W,...f},[la.groupId]:E,[la.panel]:"",[la.panelCollapsible]:r||void 0,[la.panelId]:z,[la.panelSize]:parseFloat(""+W.flexGrow).toFixed(1)})}const bX=N.forwardRef((e,t)=>N.createElement(xX,{...e,forwardedRef:t}));xX.displayName="Panel";bX.displayName="forwardRef(Panel)";let E_=null,Yb=-1,Mu=null;function TDe(e,t,n){const r=(t&DX)!==0,i=(t&CX)!==0,a=(t&TX)!==0,o=(t&_X)!==0;if(t){if(r)return a?"se-resize":o?"ne-resize":"e-resize";if(i)return a?"sw-resize":o?"nw-resize":"w-resize";if(a)return"s-resize";if(o)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function _De(){Mu!==null&&(document.head.removeChild(Mu),E_=null,Mu=null,Yb=-1)}function eC(e,t,n){var r,i;const a=TDe(e,t);if(E_!==a){if(E_=a,Mu===null&&(Mu=document.createElement("style"),document.head.appendChild(Mu)),Yb>=0){var o;(o=Mu.sheet)===null||o===void 0||o.removeRule(Yb)}Yb=(r=(i=Mu.sheet)===null||i===void 0?void 0:i.insertRule(`*{cursor: ${a} !important;}`))!==null&&r!==void 0?r:-1}}function AX(e){return e.type==="keydown"}function wX(e){return e.type.startsWith("pointer")}function SX(e){return e.type.startsWith("mouse")}function Gw(e){if(wX(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(SX(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function EDe(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function NDe(e,t,n){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function FDe(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:m6(e),b:m6(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;Rr(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:g6(p6(n.a)),b:g6(p6(n.b))};if(i.a===i.b){const a=r.childNodes,o={a:n.a.at(-1),b:n.b.at(-1)};let s=a.length;for(;s--;){const l=a[s];if(l===o.a)return 1;if(l===o.b)return-1}}return Math.sign(i.a-i.b)}const RDe=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function PDe(e){var t;const n=getComputedStyle((t=kX(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function IDe(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||PDe(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||RDe.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function p6(e){let t=e.length;for(;t--;){const n=e[t];if(Rr(n,"Missing node"),IDe(n))return n}return null}function g6(e){return e&&Number(getComputedStyle(e).zIndex)||0}function m6(e){const t=[];for(;e;)t.push(e),e=kX(e);return t}function kX(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const DX=1,CX=2,TX=4,_X=8,MDe=EDe()==="coarse";let Ul=[],qp=!1,Uu=new Map,qw=new Map;const Z0=new Set;function UDe(e,t,n,r,i){var a;const{ownerDocument:o}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:i},l=(a=Uu.get(o))!==null&&a!==void 0?a:0;return Uu.set(o,l+1),Z0.add(s),Q1(),function(){var u;qw.delete(e),Z0.delete(s);const d=(u=Uu.get(o))!==null&&u!==void 0?u:1;if(Uu.set(o,d-1),Q1(),d===1&&Uu.delete(o),Ul.includes(s)){const h=Ul.indexOf(s);h>=0&&Ul.splice(h,1),Hw(),i("up",!0,null)}}}function LDe(e){const{target:t}=e,{x:n,y:r}=Gw(e);qp=!0,pF({target:t,x:n,y:r}),Q1(),Ul.length>0&&(eA("down",e),Hw(),e.preventDefault(),EX(t)||e.stopImmediatePropagation())}function tC(e){const{x:t,y:n}=Gw(e);if(qp&&e.type!=="pointerleave"&&e.buttons===0&&(qp=!1,eA("up",e)),!qp){const{target:r}=e;pF({target:r,x:t,y:n})}eA("move",e),Hw(),Ul.length>0&&e.preventDefault()}function nC(e){const{target:t}=e,{x:n,y:r}=Gw(e);qw.clear(),qp=!1,Ul.length>0&&(e.preventDefault(),EX(t)||e.stopImmediatePropagation()),eA("up",e),pF({target:t,x:n,y:r}),Hw(),Q1()}function EX(e){let t=e;for(;t;){if(t.hasAttribute(la.resizeHandle))return!0;t=t.parentElement}return!1}function pF({target:e,x:t,y:n}){Ul.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),Z0.forEach(i=>{const{element:a,hitAreaMargins:o}=i,s=a.getBoundingClientRect(),{bottom:l,left:c,right:u,top:d}=s,h=MDe?o.coarse:o.fine;if(t>=c-h&&t<=u+h&&n>=d-h&&n<=l+h){if(r!==null&&document.contains(r)&&a!==r&&!a.contains(r)&&!r.contains(a)&&FDe(r,a)>0){let g=r,y=!1;for(;g&&!g.contains(a);){if(NDe(g.getBoundingClientRect(),s)){y=!0;break}g=g.parentElement}if(y)return}Ul.push(i)}})}function rC(e,t){qw.set(e,t)}function Hw(){let e=!1,t=!1;Ul.forEach(r=>{const{direction:i}=r;i==="horizontal"?e=!0:t=!0});let n=0;qw.forEach(r=>{n|=r}),e&&t?eC("intersection",n):e?eC("horizontal",n):t?eC("vertical",n):_De()}let iC;function Q1(){var e;(e=iC)===null||e===void 0||e.abort(),iC=new AbortController;const t={capture:!0,signal:iC.signal};Z0.size&&(qp?(Ul.length>0&&Uu.forEach((n,r)=>{const{body:i}=r;n>0&&(i.addEventListener("contextmenu",nC,t),i.addEventListener("pointerleave",tC,t),i.addEventListener("pointermove",tC,t))}),Uu.forEach((n,r)=>{const{body:i}=r;i.addEventListener("pointerup",nC,t),i.addEventListener("pointercancel",nC,t)})):Uu.forEach((n,r)=>{const{body:i}=r;n>0&&(i.addEventListener("pointerdown",LDe,t),i.addEventListener("pointermove",tC,t))}))}function eA(e,t){Z0.forEach(n=>{const{setResizeHandlerState:r}=n,i=Ul.includes(n);r(e,i,t)})}function ODe(){const[e,t]=N.useState(0);return N.useCallback(()=>t(n=>n+1),[])}function Rr(e,t){if(!e)throw console.error(t),Error(t)}function Vf(e,t,n=fF){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function Oc(e,t,n=fF){return Vf(e,t,n)===0}function ds(e,t,n){return Vf(e,t,n)===0}function jDe(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const i=e[r],a=t[r];if(!ds(i,a,n))return!1}return!0}function Cp({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];Rr(r!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:a,maxSize:o=100,minSize:s=0}=r;if(Vf(n,s)<0)if(a){const l=(i+s)/2;Vf(n,l)<0?n=i:n=s}else n=s;return n=Math.min(o,n),n=parseFloat(n.toFixed(fF)),n}function Vm({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:a}){if(ds(e,0))return t;const o=[...t],[s,l]=r;Rr(s!=null,"Invalid first pivot index"),Rr(l!=null,"Invalid second pivot index");let c=0;if(a==="keyboard"){{const d=e<0?l:s,h=n[d];Rr(h,`Panel constraints not found for index ${d}`);const{collapsedSize:f=0,collapsible:g,minSize:y=0}=h;if(g){const v=t[d];if(Rr(v!=null,`Previous layout not found for panel index ${d}`),ds(v,f)){const A=y-v;Vf(A,Math.abs(e))>0&&(e=e<0?0-A:A)}}}{const d=e<0?s:l,h=n[d];Rr(h,`No panel constraints found for index ${d}`);const{collapsedSize:f=0,collapsible:g,minSize:y=0}=h;if(g){const v=t[d];if(Rr(v!=null,`Previous layout not found for panel index ${d}`),ds(v,y)){const A=v-f;Vf(A,Math.abs(e))>0&&(e=e<0?0-A:A)}}}}{const d=e<0?1:-1;let h=e<0?l:s,f=0;for(;;){const y=t[h];Rr(y!=null,`Previous layout not found for panel index ${h}`);const A=Cp({panelConstraints:n,panelIndex:h,size:100})-y;if(f+=A,h+=d,h<0||h>=n.length)break}const g=Math.min(Math.abs(e),Math.abs(f));e=e<0?0-g:g}{let h=e<0?s:l;for(;h>=0&&h<n.length;){const f=Math.abs(e)-Math.abs(c),g=t[h];Rr(g!=null,`Previous layout not found for panel index ${h}`);const y=g-f,v=Cp({panelConstraints:n,panelIndex:h,size:y});if(!ds(g,v)&&(c+=g-v,o[h]=v,c.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?h--:h++}}if(jDe(i,o))return i;{const d=e<0?l:s,h=t[d];Rr(h!=null,`Previous layout not found for panel index ${d}`);const f=h+c,g=Cp({panelConstraints:n,panelIndex:d,size:f});if(o[d]=g,!ds(g,f)){let y=f-g,A=e<0?l:s;for(;A>=0&&A<n.length;){const w=o[A];Rr(w!=null,`Previous layout not found for panel index ${A}`);const S=w+y,_=Cp({panelConstraints:n,panelIndex:A,size:S});if(ds(w,_)||(y-=_-w,o[A]=_),ds(y,0))break;e>0?A--:A++}}}const u=o.reduce((d,h)=>h+d,0);return ds(u,100)?o:i}function BDe({layout:e,panelsArray:t,pivotIndices:n}){let r=0,i=100,a=0,o=0;const s=n[0];Rr(s!=null,"No pivot index found"),t.forEach((d,h)=>{const{constraints:f}=d,{maxSize:g=100,minSize:y=0}=f;h===s?(r=y,i=g):(a+=y,o+=g)});const l=Math.min(i,100-a),c=Math.max(r,100-o),u=e[s];return{valueMax:l,valueMin:c,valueNow:u}}function K0(e,t=document){return Array.from(t.querySelectorAll(`[${la.resizeHandleId}][data-panel-group-id="${e}"]`))}function NX(e,t,n=document){const i=K0(e,n).findIndex(a=>a.getAttribute(la.resizeHandleId)===t);return i??null}function FX(e,t,n){const r=NX(e,t,n);return r!=null?[r,r+1]:[-1,-1]}function zDe(e){return e instanceof HTMLElement?!0:typeof e=="object"&&e!==null&&"tagName"in e&&"getAttribute"in e}function RX(e,t=document){if(zDe(t)&&t.dataset.panelGroupId==e)return t;const n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function Xw(e,t=document){const n=t.querySelector(`[${la.resizeHandleId}="${e}"]`);return n||null}function WDe(e,t,n,r=document){var i,a,o,s;const l=Xw(t,r),c=K0(e,r),u=l?c.indexOf(l):-1,d=(i=(a=n[u])===null||a===void 0?void 0:a.id)!==null&&i!==void 0?i:null,h=(o=(s=n[u+1])===null||s===void 0?void 0:s.id)!==null&&o!==void 0?o:null;return[d,h]}function VDe({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:i,panelGroupElement:a,setLayout:o}){N.useRef({didWarnAboutMissingResizeHandle:!1}),If(()=>{if(!a)return;const s=K0(n,a);for(let l=0;l<i.length-1;l++){const{valueMax:c,valueMin:u,valueNow:d}=BDe({layout:r,panelsArray:i,pivotIndices:[l,l+1]}),h=s[l];if(h!=null){const f=i[l];Rr(f,`No panel data found for index "${l}"`),h.setAttribute("aria-controls",f.id),h.setAttribute("aria-valuemax",""+Math.round(c)),h.setAttribute("aria-valuemin",""+Math.round(u)),h.setAttribute("aria-valuenow",d!=null?""+Math.round(d):"")}}return()=>{s.forEach((l,c)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[n,r,i,a]),N.useEffect(()=>{if(!a)return;const s=t.current;Rr(s,"Eager values not found");const{panelDataArray:l}=s,c=RX(n,a);Rr(c!=null,`No group found for id "${n}"`);const u=K0(n,a);Rr(u,`No resize handles found for group id "${n}"`);const d=u.map(h=>{const f=h.getAttribute(la.resizeHandleId);Rr(f,"Resize handle element has no handle id attribute");const[g,y]=WDe(n,f,l,a);if(g==null||y==null)return()=>{};const v=A=>{if(!A.defaultPrevented)switch(A.key){case"Enter":{A.preventDefault();const w=l.findIndex(S=>S.id===g);if(w>=0){const S=l[w];Rr(S,`No panel data found for index ${w}`);const _=r[w],{collapsedSize:E=0,collapsible:T,minSize:D=0}=S.constraints;if(_!=null&&T){const I=Vm({delta:ds(_,E)?D-E:E-_,initialLayout:r,panelConstraints:l.map(j=>j.constraints),pivotIndices:FX(n,f,a),prevLayout:r,trigger:"keyboard"});r!==I&&o(I)}}break}}};return h.addEventListener("keydown",v),()=>{h.removeEventListener("keydown",v)}});return()=>{d.forEach(h=>h())}},[a,e,t,n,r,i,o])}function y6(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function PX(e,t){const n=e==="horizontal",{x:r,y:i}=Gw(t);return n?r:i}function GDe(e,t,n,r,i){const a=n==="horizontal",o=Xw(t,i);Rr(o,`No resize handle element found for id "${t}"`);const s=o.getAttribute(la.groupId);Rr(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=PX(n,e),u=RX(s,i);Rr(u,`No group element found for id "${s}"`);const d=u.getBoundingClientRect(),h=a?d.width:d.height;return(c-l)/h*100}function qDe(e,t,n,r,i,a){if(AX(e)){const o=n==="horizontal";let s=0;e.shiftKey?s=100:i!=null?s=i:s=10;let l=0;switch(e.key){case"ArrowDown":l=o?0:s;break;case"ArrowLeft":l=o?-s:0;break;case"ArrowRight":l=o?s:0;break;case"ArrowUp":l=o?0:-s;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return r==null?0:GDe(e,t,n,r,a)}function HDe({panelDataArray:e}){const t=Array(e.length),n=e.map(a=>a.constraints);let r=0,i=100;for(let a=0;a<e.length;a++){const o=n[a];Rr(o,`Panel constraints not found for index ${a}`);const{defaultSize:s}=o;s!=null&&(r++,t[a]=s,i-=s)}for(let a=0;a<e.length;a++){const o=n[a];Rr(o,`Panel constraints not found for index ${a}`);const{defaultSize:s}=o;if(s!=null)continue;const l=e.length-r,c=i/l;r++,t[a]=c,i-=c}return t}function Xh(e,t,n){t.forEach((r,i)=>{const a=e[i];Rr(a,`Panel data not found for index ${i}`);const{callbacks:o,constraints:s,id:l}=a,{collapsedSize:c=0,collapsible:u}=s,d=n[l];if(d==null||r!==d){n[l]=r;const{onCollapse:h,onExpand:f,onResize:g}=o;g&&g(r,d),u&&(h||f)&&(f&&(d==null||Oc(d,c))&&!Oc(r,c)&&f(),h&&(d==null||!Oc(d,c))&&Oc(r,c)&&h())}})}function Ox(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function XDe({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:i,precision:a=3}){const o=n[i];let s;return o==null?s=e!=null?e.toFixed(a):"1":r.length===1?s="1":s=o.toFixed(a),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function ZDe(e,t=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...i)},t)}}function v6(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function IX(e){return`react-resizable-panels:${e}`}function MX(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:i,order:a}=t;return i?r:a?`${a}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function UX(e,t){try{const n=IX(e),r=t.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function KDe(e,t,n){var r,i;const a=(r=UX(e,n))!==null&&r!==void 0?r:{},o=MX(t);return(i=a[o])!==null&&i!==void 0?i:null}function $De(e,t,n,r,i){var a;const o=IX(e),s=MX(t),l=(a=UX(e,i))!==null&&a!==void 0?a:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(o,JSON.stringify(l))}catch(c){console.error(c)}}function x6({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((a,o)=>a+o,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(a=>`${a}%`).join(", ")}`);if(!ds(r,100)&&n.length>0)for(let a=0;a<t.length;a++){const o=n[a];Rr(o!=null,`No layout data found for index ${a}`);const s=100/r*o;n[a]=s}let i=0;for(let a=0;a<t.length;a++){const o=n[a];Rr(o!=null,`No layout data found for index ${a}`);const s=Cp({panelConstraints:t,panelIndex:a,size:o});o!=s&&(i+=o-s,n[a]=s)}if(!ds(i,0))for(let a=0;a<t.length;a++){const o=n[a];Rr(o!=null,`No layout data found for index ${a}`);const s=o+i,l=Cp({panelConstraints:t,panelIndex:a,size:s});if(o!==l&&(i-=l-o,n[a]=l,ds(i,0)))break}return n}const YDe=100,Gm={getItem:e=>(v6(Gm),Gm.getItem(e)),setItem:(e,t)=>{v6(Gm),Gm.setItem(e,t)}},b6={};function LX({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:i,id:a=null,onLayout:o=null,keyboardResizeBy:s=null,storage:l=Gm,style:c,tagName:u="div",...d}){const h=hF(a),f=N.useRef(null),[g,y]=N.useState(null),[v,A]=N.useState([]),w=ODe(),S=N.useRef({}),_=N.useRef(new Map),E=N.useRef(0),T=N.useRef({autoSaveId:e,direction:r,dragState:g,id:h,keyboardResizeBy:s,onLayout:o,storage:l}),D=N.useRef({layout:v,panelDataArray:[],panelDataArrayChanged:!1});N.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),N.useImperativeHandle(i,()=>({getId:()=>T.current.id,getLayout:()=>{const{layout:G}=D.current;return G},setLayout:G=>{const{onLayout:xe}=T.current,{layout:ge,panelDataArray:ue}=D.current,ce=x6({layout:G,panelConstraints:ue.map(ye=>ye.constraints)});y6(ge,ce)||(A(ce),D.current.layout=ce,xe&&xe(ce),Xh(ue,ce,S.current))}}),[]),If(()=>{T.current.autoSaveId=e,T.current.direction=r,T.current.dragState=g,T.current.id=h,T.current.onLayout=o,T.current.storage=l}),VDe({committedValuesRef:T,eagerValuesRef:D,groupId:h,layout:v,panelDataArray:D.current.panelDataArray,setLayout:A,panelGroupElement:f.current}),N.useEffect(()=>{const{panelDataArray:G}=D.current;if(e){if(v.length===0||v.length!==G.length)return;let xe=b6[e];xe==null&&(xe=ZDe($De,YDe),b6[e]=xe);const ge=[...G],ue=new Map(_.current);xe(e,ge,ue,v,l)}},[e,v,l]),N.useEffect(()=>{});const I=N.useCallback(G=>{const{onLayout:xe}=T.current,{layout:ge,panelDataArray:ue}=D.current;if(G.constraints.collapsible){const ce=ue.map(Le=>Le.constraints),{collapsedSize:ye=0,panelSize:Fe,pivotIndices:Oe}=nf(ue,G,ge);if(Rr(Fe!=null,`Panel size not found for panel "${G.id}"`),!Oc(Fe,ye)){_.current.set(G.id,Fe);const Re=pp(ue,G)===ue.length-1?Fe-ye:ye-Fe,We=Vm({delta:Re,initialLayout:ge,panelConstraints:ce,pivotIndices:Oe,prevLayout:ge,trigger:"imperative-api"});Ox(ge,We)||(A(We),D.current.layout=We,xe&&xe(We),Xh(ue,We,S.current))}}},[]),j=N.useCallback((G,xe)=>{const{onLayout:ge}=T.current,{layout:ue,panelDataArray:ce}=D.current;if(G.constraints.collapsible){const ye=ce.map(V=>V.constraints),{collapsedSize:Fe=0,panelSize:Oe=0,minSize:Le=0,pivotIndices:Re}=nf(ce,G,ue),We=xe??Le;if(Oc(Oe,Fe)){const V=_.current.get(G.id),ve=V!=null&&V>=We?V:We,re=pp(ce,G)===ce.length-1?Oe-ve:ve-Oe,ne=Vm({delta:re,initialLayout:ue,panelConstraints:ye,pivotIndices:Re,prevLayout:ue,trigger:"imperative-api"});Ox(ue,ne)||(A(ne),D.current.layout=ne,ge&&ge(ne),Xh(ce,ne,S.current))}}},[]),R=N.useCallback(G=>{const{layout:xe,panelDataArray:ge}=D.current,{panelSize:ue}=nf(ge,G,xe);return Rr(ue!=null,`Panel size not found for panel "${G.id}"`),ue},[]),z=N.useCallback((G,xe)=>{const{panelDataArray:ge}=D.current,ue=pp(ge,G);return XDe({defaultSize:xe,dragState:g,layout:v,panelData:ge,panelIndex:ue})},[g,v]),B=N.useCallback(G=>{const{layout:xe,panelDataArray:ge}=D.current,{collapsedSize:ue=0,collapsible:ce,panelSize:ye}=nf(ge,G,xe);return Rr(ye!=null,`Panel size not found for panel "${G.id}"`),ce===!0&&Oc(ye,ue)},[]),W=N.useCallback(G=>{const{layout:xe,panelDataArray:ge}=D.current,{collapsedSize:ue=0,collapsible:ce,panelSize:ye}=nf(ge,G,xe);return Rr(ye!=null,`Panel size not found for panel "${G.id}"`),!ce||Vf(ye,ue)>0},[]),P=N.useCallback(G=>{const{panelDataArray:xe}=D.current;xe.push(G),xe.sort((ge,ue)=>{const ce=ge.order,ye=ue.order;return ce==null&&ye==null?0:ce==null?-1:ye==null?1:ce-ye}),D.current.panelDataArrayChanged=!0,w()},[w]);If(()=>{if(D.current.panelDataArrayChanged){D.current.panelDataArrayChanged=!1;const{autoSaveId:G,onLayout:xe,storage:ge}=T.current,{layout:ue,panelDataArray:ce}=D.current;let ye=null;if(G){const Oe=KDe(G,ce,ge);Oe&&(_.current=new Map(Object.entries(Oe.expandToSizes)),ye=Oe.layout)}ye==null&&(ye=HDe({panelDataArray:ce}));const Fe=x6({layout:ye,panelConstraints:ce.map(Oe=>Oe.constraints)});y6(ue,Fe)||(A(Fe),D.current.layout=Fe,xe&&xe(Fe),Xh(ce,Fe,S.current))}}),If(()=>{const G=D.current;return()=>{G.layout=[]}},[]);const Z=N.useCallback(G=>{let xe=!1;const ge=f.current;return ge&&window.getComputedStyle(ge,null).getPropertyValue("direction")==="rtl"&&(xe=!0),function(ce){ce.preventDefault();const ye=f.current;if(!ye)return()=>null;const{direction:Fe,dragState:Oe,id:Le,keyboardResizeBy:Re,onLayout:We}=T.current,{layout:V,panelDataArray:ve}=D.current,{initialLayout:oe}=Oe??{},re=FX(Le,G,ye);let ne=qDe(ce,G,Fe,Oe,Re,ye);const be=Fe==="horizontal";be&&xe&&(ne=-ne);const Ue=ve.map(Se=>Se.constraints),Me=Vm({delta:ne,initialLayout:oe??V,panelConstraints:Ue,pivotIndices:re,prevLayout:V,trigger:AX(ce)?"keyboard":"mouse-or-touch"}),Ee=!Ox(V,Me);(wX(ce)||SX(ce))&&E.current!=ne&&(E.current=ne,!Ee&&ne!==0?be?rC(G,ne<0?DX:CX):rC(G,ne<0?TX:_X):rC(G,0)),Ee&&(A(Me),D.current.layout=Me,We&&We(Me),Xh(ve,Me,S.current))}},[]),Q=N.useCallback((G,xe)=>{const{onLayout:ge}=T.current,{layout:ue,panelDataArray:ce}=D.current,ye=ce.map(V=>V.constraints),{panelSize:Fe,pivotIndices:Oe}=nf(ce,G,ue);Rr(Fe!=null,`Panel size not found for panel "${G.id}"`);const Re=pp(ce,G)===ce.length-1?Fe-xe:xe-Fe,We=Vm({delta:Re,initialLayout:ue,panelConstraints:ye,pivotIndices:Oe,prevLayout:ue,trigger:"imperative-api"});Ox(ue,We)||(A(We),D.current.layout=We,ge&&ge(We),Xh(ce,We,S.current))},[]),X=N.useCallback((G,xe)=>{const{layout:ge,panelDataArray:ue}=D.current,{collapsedSize:ce=0,collapsible:ye}=xe,{collapsedSize:Fe=0,collapsible:Oe,maxSize:Le=100,minSize:Re=0}=G.constraints,{panelSize:We}=nf(ue,G,ge);We!=null&&(ye&&Oe&&Oc(We,ce)?Oc(ce,Fe)||Q(G,Fe):We<Re?Q(G,Re):We>Le&&Q(G,Le))},[Q]),q=N.useCallback((G,xe)=>{const{direction:ge}=T.current,{layout:ue}=D.current;if(!f.current)return;const ce=Xw(G,f.current);Rr(ce,`Drag handle element not found for id "${G}"`);const ye=PX(ge,xe);y({dragHandleId:G,dragHandleRect:ce.getBoundingClientRect(),initialCursorPosition:ye,initialLayout:ue})},[]),te=N.useCallback(()=>{y(null)},[]),J=N.useCallback(G=>{const{panelDataArray:xe}=D.current,ge=pp(xe,G);ge>=0&&(xe.splice(ge,1),delete S.current[G.id],D.current.panelDataArrayChanged=!0,w())},[w]),ee=N.useMemo(()=>({collapsePanel:I,direction:r,dragState:g,expandPanel:j,getPanelSize:R,getPanelStyle:z,groupId:h,isPanelCollapsed:B,isPanelExpanded:W,reevaluatePanelConstraints:X,registerPanel:P,registerResizeHandle:Z,resizePanel:Q,startDragging:q,stopDragging:te,unregisterPanel:J,panelGroupElement:f.current}),[I,g,r,j,R,z,h,B,W,X,P,Z,Q,q,te,J]),le={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return N.createElement(Vw.Provider,{value:ee},N.createElement(u,{...d,children:t,className:n,id:a,ref:f,style:{...le,...c},[la.group]:"",[la.groupDirection]:r,[la.groupId]:h}))}const OX=N.forwardRef((e,t)=>N.createElement(LX,{...e,forwardedRef:t}));LX.displayName="PanelGroup";OX.displayName="forwardRef(PanelGroup)";function pp(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function nf(e,t,n){const r=pp(e,t),a=r===e.length-1?[r-1,r]:[r,r+1],o=n[r];return{...t.constraints,panelSize:o,pivotIndices:a}}function JDe({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){N.useEffect(()=>{if(e||n==null||r==null)return;const i=Xw(t,r);if(i==null)return;const a=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),n(o);break}case"F6":{o.preventDefault();const s=i.getAttribute(la.groupId);Rr(s,`No group element found for id "${s}"`);const l=K0(s,r),c=NX(s,t,r);Rr(c!==null,`No resize element found for id "${t}"`);const u=o.shiftKey?c>0?c-1:l.length-1:c+1<l.length?c+1:0;l[u].focus();break}}};return i.addEventListener("keydown",a),()=>{i.removeEventListener("keydown",a)}},[r,e,t,n])}function jX({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:a,onClick:o,onDragging:s,onFocus:l,onPointerDown:c,onPointerUp:u,style:d={},tabIndex:h=0,tagName:f="div",...g}){var y,v;const A=N.useRef(null),w=N.useRef({onClick:o,onDragging:s,onPointerDown:c,onPointerUp:u});N.useEffect(()=>{w.current.onClick=o,w.current.onDragging=s,w.current.onPointerDown=c,w.current.onPointerUp=u});const S=N.useContext(Vw);if(S===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:_,groupId:E,registerResizeHandle:T,startDragging:D,stopDragging:I,panelGroupElement:j}=S,R=hF(i),[z,B]=N.useState("inactive"),[W,P]=N.useState(!1),[Z,Q]=N.useState(null),X=N.useRef({state:z});If(()=>{X.current.state=z}),N.useEffect(()=>{if(n)Q(null);else{const ee=T(R);Q(()=>ee)}},[n,R,T]);const q=(y=r==null?void 0:r.coarse)!==null&&y!==void 0?y:15,te=(v=r==null?void 0:r.fine)!==null&&v!==void 0?v:5;N.useEffect(()=>{if(n||Z==null)return;const ee=A.current;Rr(ee,"Element ref not attached");let le=!1;return UDe(R,ee,_,{coarse:q,fine:te},(xe,ge,ue)=>{if(!ge){B("inactive");return}switch(xe){case"down":{B("drag"),le=!1,Rr(ue,'Expected event to be defined for "down" action'),D(R,ue);const{onDragging:ce,onPointerDown:ye}=w.current;ce==null||ce(!0),ye==null||ye();break}case"move":{const{state:ce}=X.current;le=!0,ce!=="drag"&&B("hover"),Rr(ue,'Expected event to be defined for "move" action'),Z(ue);break}case"up":{B("hover"),I();const{onClick:ce,onDragging:ye,onPointerUp:Fe}=w.current;ye==null||ye(!1),Fe==null||Fe(),le||ce==null||ce();break}}})},[q,_,n,te,T,R,Z,D,I]),JDe({disabled:n,handleId:R,resizeHandler:Z,panelGroupElement:j});const J={touchAction:"none",userSelect:"none"};return N.createElement(f,{...g,children:e,className:t,id:i,onBlur:()=>{P(!1),a==null||a()},onFocus:()=>{P(!0),l==null||l()},ref:A,role:"separator",style:{...J,...d},tabIndex:h,[la.groupDirection]:_,[la.groupId]:E,[la.resizeHandle]:"",[la.resizeHandleActive]:z==="drag"?"pointer":W?"keyboard":void 0,[la.resizeHandleEnabled]:!n,[la.resizeHandleId]:R,[la.resizeHandleState]:z})}jX.displayName="PanelResizeHandle";function QDe({className:e,...t}){return m.jsx(OX,{"data-slot":"resizable-panel-group",className:Zi("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t})}const N_=N.forwardRef(({...e},t)=>m.jsx(bX,{ref:t,"data-slot":"resizable-panel",...e}));N_.displayName="ResizablePanel";function eCe({withHandle:e,className:t,...n}){return m.jsx(jX,{"data-slot":"resizable-handle",className:Zi("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...n,children:e&&m.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:m.jsx(hE,{className:"size-2.5"})})})}const tCe="https://embed.diagrams.net";function nCe(){const{drawioRef:e,handleDiagramExport:t,onDrawioLoad:n,resetDrawioReady:r}=Ay(),[i,a]=N.useState(!1),[o,s]=N.useState(!0),[l,c]=N.useState("min"),[u,d]=N.useState(!1),[h,f]=N.useState(!1),[g,y]=N.useState(!1),v=N.useRef(null);N.useEffect(()=>{const S=localStorage.getItem("drawio-theme");(S==="min"||S==="sketch")&&c(S);const _=localStorage.getItem("next-ai-draw-io-dark-mode");if(_!==null){const T=_==="true";d(T),document.documentElement.classList.toggle("dark",T)}else{const T=window.matchMedia("(prefers-color-scheme: dark)").matches;d(T),document.documentElement.classList.toggle("dark",T)}localStorage.getItem(kDe)==="true"&&y(!0),f(!0)},[]);const A=()=>{const S=!u;d(S),localStorage.setItem("next-ai-draw-io-dark-mode",String(S)),document.documentElement.classList.toggle("dark",S),r()};N.useEffect(()=>{const S=()=>{a(window.innerWidth<768)};return S(),window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)},[]);const w=()=>{const S=v.current;S&&(S.isCollapsed()?(S.expand(),s(!0)):(S.collapse(),s(!1)))};return N.useEffect(()=>{const S=_=>{(_.ctrlKey||_.metaKey)&&_.key==="b"&&(_.preventDefault(),w())};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[]),N.useEffect(()=>{if(!g)return;const S=_=>(_.preventDefault(),"");return window.addEventListener("beforeunload",S),()=>window.removeEventListener("beforeunload",S)},[g]),m.jsx("div",{className:"h-full bg-background relative overflow-hidden",children:m.jsxs(QDe,{id:"main-panel-group-v3",direction:i?"vertical":"horizontal",className:"h-full",children:[m.jsx(N_,{id:"drawio-panel",defaultSize:i?50:67,minSize:20,children:m.jsx("div",{className:`h-full relative ${i?"p-1":"p-2"}`,children:m.jsx("div",{className:"h-full rounded-xl overflow-hidden shadow-soft-lg border border-border/30",children:h?m.jsx(Wde,{ref:e,onExport:t,onLoad:n,baseUrl:tCe,urlParameters:{ui:l,spin:!0,libraries:!1,saveAndExit:!1,noExitBtn:!0,dark:u}},`${l}-${u}`):m.jsx("div",{className:"h-full w-full flex items-center justify-center bg-background",children:m.jsx("div",{className:"animate-spin h-8 w-8 border-4 border-primary border-t-transparent rounded-full"})})})})}),m.jsx(eCe,{withHandle:!0,id:"resize-handle"}),m.jsx(N_,{id:"chat-panel",ref:v,defaultSize:i?50:33,minSize:i?20:15,maxSize:i?80:50,collapsible:!i,collapsedSize:i?0:3,onCollapse:()=>s(!1),onExpand:()=>s(!0),children:m.jsx("div",{className:`h-full ${i?"p-1":"py-2 pr-2"}`,children:m.jsx(SDe,{isVisible:o,onToggleVisibility:w,drawioUi:l,onToggleDrawioUi:()=>{const S=l==="min"?"sketch":"min";localStorage.setItem("drawio-theme",S),c(S),r()},darkMode:u,onToggleDarkMode:A,isMobile:i,onCloseProtectionChange:y})})})]},i?"mobile":"desktop")})}function rCe(){return m.jsx(cve,{children:m.jsx(dve,{children:m.jsx(nCe,{})})})}function iCe(){return m.jsx(rCe,{})}const BX=[{zh:"装修平面布置图",en:"Renovation Plan Layout"},{zh:"地面铺装图",en:"Floor Finish Plan"},{zh:"顶面布置图",en:"Reflected Ceiling Plan"},{zh:"墙体定位图",en:"Wall Setting-Out Plan"},{zh:"机电点位图(强弱电+给排水)",en:"MEP Plan (Electrical + Low Voltage + Plumbing)"},{zh:"立面索引图+室内立面图",en:"Elevation Index Plan + Interior Elevations"},{zh:"节点大样图",en:"Detail Drawings"}];function F_(e){return BX.map(t=>e==="zh"?t.zh:t.en)}function Lu(e,t){const n=BX[t];return n?e==="zh"?n.zh:n.en:e==="zh"?`图纸 ${t+1}`:`Drawing ${t+1}`}const aCe="CanvasAnvilCadWorkspaceDB",ad="workspace",oCe=1;function gF(){return typeof indexedDB>"u"?Promise.resolve(null):new Promise((e,t)=>{const n=indexedDB.open(aCe,oCe);n.onupgradeneeded=()=>{const r=n.result;r.objectStoreNames.contains(ad)||r.createObjectStore(ad)},n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error)})}async function A6(e){const t=await gF();return t?await new Promise((n,r)=>{const i=t.transaction(ad,"readonly"),o=i.objectStore(ad).get(e);o.onsuccess=()=>n(o.result??null),o.onerror=()=>r(o.error),i.oncomplete=()=>t.close(),i.onabort=()=>r(i.error),i.onerror=()=>r(i.error)}):null}async function w6(e,t){const n=await gF();n&&await new Promise((r,i)=>{const a=n.transaction(ad,"readwrite");a.objectStore(ad).put(t,e),a.oncomplete=()=>{n.close(),r()},a.onabort=()=>i(a.error),a.onerror=()=>i(a.error)})}async function S6(e){const t=await gF();t&&await new Promise((n,r)=>{const i=t.transaction(ad,"readwrite");i.objectStore(ad).delete(e),i.oncomplete=()=>{t.close(),n()},i.onabort=()=>r(i.error),i.onerror=()=>r(i.error)})}function Ci(e,t="Assertion error"){if(!e)throw Error(t)}function sg({group:e}){const{orientation:t,panels:n}=e;return n.reduce((r,i)=>(r+=t==="horizontal"?i.element.offsetWidth:i.element.offsetHeight,r),0)}function R_(e,t){return t.sort(e==="horizontal"?sCe:lCe)}function sCe(e,t){const n=e.element.offsetLeft-t.element.offsetLeft;return n!==0?n:e.element.offsetWidth-t.element.offsetWidth}function lCe(e,t){const n=e.element.offsetTop-t.element.offsetTop;return n!==0?n:e.element.offsetHeight-t.element.offsetHeight}function zX(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function WX(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function cCe({orientation:e,rects:t,targetRect:n}){const r={x:n.x+n.width/2,y:n.y+n.height/2};let i,a=Number.MAX_VALUE;for(const o of t){const{x:s,y:l}=WX(r,o),c=e==="horizontal"?s:l;c<a&&(a=c,i=o)}return Ci(i,"No rect found"),i}function VX(e){const{element:t,orientation:n,panels:r,separators:i}=e,a=R_(n,Array.from(t.children).filter(zX).map(u=>({element:u}))).map(({element:u})=>u),o=[];let s=!1,l,c=[];for(const u of a)if(u.hasAttribute("data-panel")){const d=r.find(h=>h.element===u);if(d){if(l){const h=l.element.getBoundingClientRect(),f=u.getBoundingClientRect();let g;if(s){const y=n==="horizontal"?new DOMRect(h.right,h.top,0,h.height):new DOMRect(h.left,h.bottom,h.width,0),v=n==="horizontal"?new DOMRect(f.left,f.top,0,f.height):new DOMRect(f.left,f.top,f.width,0);switch(c.length){case 0:{g=[y,v];break}case 1:{const A=c[0],w=cCe({orientation:n,rects:[h,f],targetRect:A.element.getBoundingClientRect()});g=[A,w===h?v:y];break}default:{g=c;break}}}else c.length?g=c:g=[n==="horizontal"?new DOMRect(h.right,f.top,f.left-h.right,f.height):new DOMRect(f.left,h.bottom,f.width,f.top-h.bottom)];for(const y of g)o.push({group:e,groupSize:sg({group:e}),panels:[l,d],separator:"width"in y?void 0:y,rect:"width"in y?y:y.element.getBoundingClientRect()})}s=!1,l=d,c=[]}}else if(u.hasAttribute("data-separator")){const d=i.find(h=>h.element===u);d?c.push(d):(l=void 0,c=[])}else s=!0;return o}function uCe(e,t){const n=getComputedStyle(e),r=parseFloat(n.fontSize);return t*r}function dCe(e,t){const n=getComputedStyle(e.ownerDocument.body),r=parseFloat(n.fontSize);return t*r}function fCe(e){return e/100*window.innerHeight}function hCe(e){return e/100*window.innerWidth}function pCe(e){switch(typeof e){case"number":return[e,"px"];case"string":{const t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function jx({groupSize:e,panelElement:t,styleProp:n}){let r;const[i,a]=pCe(n);switch(a){case"%":{r=i/100*e;break}case"px":{r=i;break}case"rem":{r=dCe(t,i);break}case"em":{r=uCe(t,i);break}case"vh":{r=fCe(i);break}case"vw":{r=hCe(i);break}}return r}function Pl(e){return parseFloat(e.toFixed(3))}function k6(e){const{panels:t}=e,n=sg({group:e});return n===0?t.map(r=>({collapsedSize:0,collapsible:r.panelConstraints.collapsible===!0,defaultSize:void 0,minSize:0,maxSize:100,panelId:r.id})):t.map(r=>{const{element:i,panelConstraints:a}=r;let o=0;if(a.collapsedSize!==void 0){const u=jx({groupSize:n,panelElement:i,styleProp:a.collapsedSize});o=Pl(u/n*100)}let s;if(a.defaultSize!==void 0){const u=jx({groupSize:n,panelElement:i,styleProp:a.defaultSize});s=Pl(u/n*100)}let l=0;if(a.minSize!==void 0){const u=jx({groupSize:n,panelElement:i,styleProp:a.minSize});l=Pl(u/n*100)}let c=100;if(a.maxSize!==void 0){const u=jx({groupSize:n,panelElement:i,styleProp:a.maxSize});c=Pl(u/n*100)}return{collapsedSize:o,collapsible:a.collapsible===!0,defaultSize:s,minSize:l,maxSize:c,panelId:r.id}})}var Bu;class gCe{constructor(){Q5(this,Bu,{})}addListener(t,n){const r=cm(this,Bu)[t];return r===void 0?cm(this,Bu)[t]=[n]:r.includes(n)||r.push(n),()=>{this.removeListener(t,n)}}emit(t,n){const r=cm(this,Bu)[t];if(r!==void 0)if(r.length===1)r[0].call(null,n);else{let i=!1,a=null;const o=Array.from(r);for(let s=0;s<o.length;s++){const l=o[s];try{l.call(null,n)}catch(c){a===null&&(i=!0,a=c)}}if(i)throw a}}removeAllListeners(){eP(this,Bu,{})}removeListener(t,n){const r=cm(this,Bu)[t];if(r!==void 0){const i=r.indexOf(n);i>=0&&r.splice(i,1)}}}Bu=new WeakMap;function xo(e,t,n=0){return Math.abs(Pl(e)-Pl(t))<=n}let Bs={cursorFlags:0,interactionState:{state:"inactive"},mountedGroups:new Map};const Mf=new gCe;function Qs(){return Bs}function Vo(e){const t=typeof e=="function"?e(Bs):e;if(Bs===t)return Bs;const n=Bs;return Bs={...Bs,...t},t.cursorFlags!==void 0&&Mf.emit("cursorFlagsChange",Bs.cursorFlags),t.interactionState!==void 0&&Mf.emit("interactionStateChange",Bs.interactionState),t.mountedGroups!==void 0&&(Bs.mountedGroups.forEach((r,i)=>{r.derivedPanelConstraints.forEach(a=>{if(a.collapsible){const{layout:o}=n.mountedGroups.get(i)??{};if(o){const s=xo(a.collapsedSize,r.layout[a.panelId]),l=xo(a.collapsedSize,o[a.panelId]);s&&!l&&(i.inMemoryLastExpandedPanelSizes[a.panelId]=o[a.panelId])}}})}),Mf.emit("mountedGroupsChange",Bs.mountedGroups)),Bs}function mCe(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function $0(e,t){return xo(e,t)?0:e>t?1:-1}function Tp({panelConstraints:e,size:t}){const{collapsedSize:n=0,collapsible:r,maxSize:i=100,minSize:a=0}=e;if($0(t,a)<0)if(r){const o=(n+a)/2;$0(t,o)<0?t=n:t=a}else t=a;return t=Math.min(i,t),t=Pl(t),t}function Y0({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:a}){if(xo(e,0))return t;const o=Object.values(t),s=Object.values(i),l=[...o],[c,u]=r;Ci(c!=null,"Invalid first pivot index"),Ci(u!=null,"Invalid second pivot index");let d=0;if(a==="keyboard"){{const g=e<0?u:c,y=n[g];Ci(y,`Panel constraints not found for index ${g}`);const{collapsedSize:v=0,collapsible:A,minSize:w=0}=y;if(A){const S=o[g];if(Ci(S!=null,`Previous layout not found for panel index ${g}`),xo(S,v)){const _=w-S;$0(_,Math.abs(e))>0&&(e=e<0?0-_:_)}}}{const g=e<0?c:u,y=n[g];Ci(y,`No panel constraints found for index ${g}`);const{collapsedSize:v=0,collapsible:A,minSize:w=0}=y;if(A){const S=o[g];if(Ci(S!=null,`Previous layout not found for panel index ${g}`),xo(S,w)){const _=S-v;$0(_,Math.abs(e))>0&&(e=e<0?0-_:_)}}}}{const g=e<0?1:-1;let y=e<0?u:c,v=0;for(;;){const w=o[y];Ci(w!=null,`Previous layout not found for panel index ${y}`);const S=Tp({panelConstraints:n[y],size:100})-w;if(v+=S,y+=g,y<0||y>=n.length)break}const A=Math.min(Math.abs(e),Math.abs(v));e=e<0?0-A:A}{let g=e<0?c:u;for(;g>=0&&g<n.length;){const y=Math.abs(e)-Math.abs(d),v=o[g];Ci(v!=null,`Previous layout not found for panel index ${g}`);const A=v-y,w=Tp({panelConstraints:n[g],size:A});if(!xo(v,w)&&(d+=v-w,l[g]=w,d.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?g--:g++}}if(mCe(s,l))return i;{const g=e<0?u:c,y=o[g];Ci(y!=null,`Previous layout not found for panel index ${g}`);const v=y+d,A=Tp({panelConstraints:n[g],size:v});if(l[g]=A,!xo(A,v)){let w=v-A,S=e<0?u:c;for(;S>=0&&S<n.length;){const _=l[S];Ci(_!=null,`Previous layout not found for panel index ${S}`);const E=_+w,T=Tp({panelConstraints:n[S],size:E});if(xo(_,T)||(w-=T-_,l[S]=T),xo(w,0))break;e>0?S--:S++}}}const h=Object.values(l).reduce((g,y)=>y+g,0);if(!xo(h,100,.1))return i;const f=Object.keys(i);return l.reduce((g,y,v)=>(g[f[v]]=y,g),{})}function Jb(e){const{mountedGroups:t}=Qs();for(const[n]of t)if(n.separators.some(r=>r.element===e))return n;throw Error("Could not find parent Group for separator element")}function Gf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(t[n]===void 0||$0(e[n],t[n])!==0)return!1;return!0}function qf({layout:e,panelConstraints:t}){const n=[...Object.values(e)],r=n.reduce((o,s)=>o+s,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(o=>`${o}%`).join(", ")}`);if(!xo(r,100)&&n.length>0)for(let o=0;o<t.length;o++){const s=n[o];Ci(s!=null,`No layout data found for index ${o}`);const l=100/r*s;n[o]=l}let i=0;for(let o=0;o<t.length;o++){const s=n[o];Ci(s!=null,`No layout data found for index ${o}`);const l=Tp({panelConstraints:t[o],size:s});s!=l&&(i+=s-l,n[o]=l)}if(!xo(i,0))for(let o=0;o<t.length;o++){const s=n[o];Ci(s!=null,`No layout data found for index ${o}`);const l=s+i,c=Tp({panelConstraints:t[o],size:l});if(s!==c&&(i-=c-s,n[o]=c,xo(i,0)))break}const a=Object.keys(e);return n.reduce((o,s,l)=>(o[a[l]]=s,o),{})}function GX({groupId:e}){const t=()=>{const{mountedGroups:n}=Qs();for(const[r,i]of n)if(r.id===e)return{group:r,...i};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){const{defaultLayoutDeferred:n,layout:r}=t();return n?{}:r},setLayout(n){const{defaultLayoutDeferred:r,derivedPanelConstraints:i,group:a,layout:o,separatorToPanels:s}=t(),l=qf({layout:n,panelConstraints:i});return r?o:(Gf(o,l)||Vo(c=>({mountedGroups:new Map(c.mountedGroups).set(a,{defaultLayoutDeferred:r,derivedPanelConstraints:i,layout:l,separatorToPanels:s})})),l)}}}function qX(e){const{mountedGroups:t}=Qs(),n=t.get(e);return Ci(n,`Mounted Group ${e.id} not found`),n}function rf(e,t){const n=Jb(e),r=qX(n),i=n.separators.find(u=>u.element===e);Ci(i,"Matching separator not found");const a=r.separatorToPanels.get(i);Ci(a,"Matching panels not found");const o=a.map(u=>n.panels.indexOf(u)),s=GX({groupId:n.id}).getLayout(),l=Y0({delta:t,initialLayout:s,panelConstraints:r.derivedPanelConstraints,pivotIndices:o,prevLayout:s,trigger:"keyboard"}),c=qf({layout:l,panelConstraints:r.derivedPanelConstraints});Gf(s,c)||Vo(u=>({mountedGroups:new Map(u.mountedGroups).set(n,{defaultLayoutDeferred:r.defaultLayoutDeferred,derivedPanelConstraints:r.derivedPanelConstraints,layout:c,separatorToPanels:r.separatorToPanels})}))}function D6(e){if(e.defaultPrevented)return;const t=e.currentTarget,n=Jb(t);if(!n.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),n.orientation==="vertical"&&rf(t,5);break}case"ArrowLeft":{e.preventDefault(),n.orientation==="horizontal"&&rf(t,-5);break}case"ArrowRight":{e.preventDefault(),n.orientation==="horizontal"&&rf(t,5);break}case"ArrowUp":{e.preventDefault(),n.orientation==="vertical"&&rf(t,-5);break}case"End":{e.preventDefault(),rf(t,100);break}case"Enter":{e.preventDefault();const r=Jb(t),{derivedPanelConstraints:i,layout:a,separatorToPanels:o}=qX(r),s=r.separators.find(d=>d.element===t);Ci(s,"Matching separator not found");const l=o.get(s);Ci(l,"Matching panels not found");const c=l[0],u=i.find(d=>d.panelId===c.id);if(Ci(u,"Panel metadata not found"),u.collapsible){const d=a[c.id],h=u.collapsedSize===d?r.inMemoryLastExpandedPanelSizes[c.id]??u.minSize:u.collapsedSize;rf(t,h-d)}break}case"F6":{e.preventDefault();const r=Jb(t).separators.map(o=>o.element),i=Array.from(r).findIndex(o=>o===e.currentTarget);Ci(i!==null,"Index not found");const a=e.shiftKey?i>0?i-1:r.length-1:i+1<r.length?i+1:0;r[a].focus();break}case"Home":{e.preventDefault(),rf(t,-100);break}}}const yCe=e=>e,aC=()=>{},HX=1,XX=2,ZX=4,KX=8,C6={coarse:10,precise:5};function vCe(e,t,n){let r,i={x:1/0,y:1/0};for(const a of t){const o=WX(n,a.rect);switch(e){case"horizontal":{o.x<=i.x&&(r=a,i=o);break}case"vertical":{o.y<=i.y&&(r=a,i=o);break}}}return r?{distance:i,hitRegion:r}:void 0}let Bx;function xCe(){return Bx===void 0&&(typeof matchMedia=="function"?Bx=!!matchMedia("(pointer:coarse)").matches:Bx=!1),Bx}function bCe(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function ACe(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:E6(e),b:E6(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;Ci(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:_6(T6(n.a)),b:_6(T6(n.b))};if(i.a===i.b){const a=r.childNodes,o={a:n.a.at(-1),b:n.b.at(-1)};let s=a.length;for(;s--;){const l=a[s];if(l===o.a)return 1;if(l===o.b)return-1}}return Math.sign(i.a-i.b)}const wCe=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function SCe(e){const t=getComputedStyle($X(e)??e).display;return t==="flex"||t==="inline-flex"}function kCe(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||SCe(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||wCe.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function T6(e){let t=e.length;for(;t--;){const n=e[t];if(Ci(n,"Missing node"),kCe(n))return n}return null}function _6(e){return e&&Number(getComputedStyle(e).zIndex)||0}function E6(e){const t=[];for(;e;)t.push(e),e=$X(e);return t}function $X(e){const{parentNode:t}=e;return bCe(t)?t.host:t}function DCe(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function CCe({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!zX(n)||n.contains(e)||e.contains(n))return!0;if(ACe(n,e)>0){let r=n;for(;r;){if(r.contains(e))return!0;if(DCe(r.getBoundingClientRect(),t))return!1;r=r.parentElement}}return!0}function YX(e,t){const n=[];return t.forEach((r,i)=>{if(i.disabled)return;const a=xCe()?C6.coarse:C6.precise,o=VX(i),s=vCe(i.orientation,o,{x:e.clientX,y:e.clientY});s&&s.distance.x<=a&&s.distance.y<=a&&CCe({groupElement:i.element,hitRegion:s.hitRegion.rect,pointerEventTarget:e.target})&&n.push(s.hitRegion)}),n}function N6(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const{mountedGroups:t}=Qs(),n=YX(e,t),r=new Set,i=new Set,a=new Set,o=new Map;let s=!1;n.forEach(l=>{r.add(l.group),l.panels.forEach(u=>{i.add(u)}),l.separator&&(a.add(l.separator),s||(s=!0,l.separator.element.focus()));const c=t.get(l.group);c&&o.set(l.group,c.layout)}),Vo({interactionState:{hitRegions:n,initialLayoutMap:o,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}}),n.length&&e.preventDefault()}function TCe({cursorFlags:e,groups:t,state:n}){let r=0,i=0;switch(n){case"active":case"hover":t.forEach(a=>{if(!a.disableCursor)switch(a.orientation){case"horizontal":{r++;break}case"vertical":{i++;break}}})}if(r===0&&i===0)return null;switch(n){case"active":{const a=(e&HX)!==0,o=(e&XX)!==0,s=(e&ZX)!==0,l=(e&KX)!==0;if(e){if(a)return s?"se-resize":l?"ne-resize":"e-resize";if(o)return s?"sw-resize":l?"nw-resize":"w-resize";if(s)return"s-resize";if(l)return"n-resize"}break}}return r>0&&i>0?"move":r>0?"ew-resize":"ns-resize"}const F6=new WeakMap;function mF(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=F6.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets=[n]);const{cursorFlags:r,interactionState:i}=Qs();switch(i.state){case"active":case"hover":{const a=TCe({cursorFlags:r,groups:i.hitRegions.map(s=>s.group),state:i.state}),o=`*{cursor: ${a} !important; ${i.state==="active"?"touch-action: none;":""} }`;if(t===o)return;t=o,a?n.cssRules.length===0?n.insertRule(o):n.replaceSync(o):n.cssRules.length===1&&n.deleteRule(0);break}case"inactive":{t=void 0,n.cssRules.length===1&&n.deleteRule(0);break}}F6.set(e,{prevStyle:t,styleSheet:n})}function JX({document:e,event:t,hitRegions:n,initialLayoutMap:r,mountedGroups:i,pointerDownAtPoint:a}){let o=0;const s=new Map(i);n.forEach(l=>{const{group:c,groupSize:u}=l,{disableCursor:d,orientation:h,panels:f}=c;let g=0;a?h==="horizontal"?g=(t.clientX-a.x)/u*100:g=(t.clientY-a.y)/u*100:h==="horizontal"?g=t.clientX<0?-100:100:g=t.clientY<0?-100:100;const y=r.get(c),{defaultLayoutDeferred:v,derivedPanelConstraints:A,layout:w,separatorToPanels:S}=i.get(c)??{defaultLayoutDeferred:!1};if(A&&y&&w&&S){const _=Y0({delta:g,initialLayout:y,panelConstraints:A,pivotIndices:l.panels.map(E=>f.indexOf(E)),prevLayout:w,trigger:"mouse-or-touch"});if(Gf(_,w)){if(g!==0&&!d)switch(h){case"horizontal":{o|=g<0?HX:XX;break}case"vertical":{o|=g<0?ZX:KX;break}}}else{s.set(l.group,{defaultLayoutDeferred:v,derivedPanelConstraints:A,layout:_,separatorToPanels:S});const E=l.group.panels.map(({id:T})=>T).join(",");l.group.inMemoryLayouts[E]=_}}}),Vo({cursorFlags:o,mountedGroups:s}),mF(e)}function R6(e){const{interactionState:t,mountedGroups:n}=Qs();switch(t.state){case"active":JX({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n})}}function P6(e){if(e.defaultPrevented)return;const{interactionState:t,mountedGroups:n}=Qs();switch(t.state){case"active":{if(e.buttons===0){Vo(r=>r.interactionState.state==="inactive"?r:{cursorFlags:0,interactionState:{state:"inactive"}}),Vo(r=>({mountedGroups:new Map(r.mountedGroups)}));return}JX({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint});break}default:{const r=YX(e,n);r.length===0?t.state!=="inactive"&&Vo({interactionState:{state:"inactive"}}):Vo({interactionState:{hitRegions:r,state:"hover"}}),mF(e.currentTarget);break}}}function I6(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const{interactionState:t}=Qs();switch(t.state){case"active":Vo({cursorFlags:0,interactionState:{state:"inactive"}}),t.hitRegions.length>0&&(mF(e.currentTarget),Vo(n=>({mountedGroups:new Map(n.mountedGroups)})),e.preventDefault())}}function M6(e){let t=0,n=0;const r={};for(const a of e)if(a.defaultSize!==void 0){t++;const o=Pl(a.defaultSize);n+=o,r[a.panelId]=o}else r[a.panelId]=void 0;const i=e.length-t;if(i!==0){const a=Pl((100-n)/i);for(const o of e)o.defaultSize===void 0&&(r[o.panelId]=a)}return r}function _Ce(e,t,n){if(!n[0])return;const r=e.panels.find(l=>l.element===t);if(!r||!r.onResize)return;const i=sg({group:e}),a=e.orientation==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,o=r.mutableValues.prevSize,s={asPercentage:Pl(a/i*100),inPixels:a};r.mutableValues.prevSize=s,r.onResize(s,r.id,o)}function ECe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function NCe(e,t){const n=e.map(i=>i.id),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n)if(!r.includes(i))return!1;return!0}const Zh=new Map;function FCe(e){let t=!0;Ci(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const n=e.element.ownerDocument.defaultView.ResizeObserver,r=new Set,i=new Set,a=new n(g=>{for(const y of g){const{borderBoxSize:v,target:A}=y;if(A===e.element){if(t){if(sg({group:e})===0)return;Vo(w=>{const S=w.mountedGroups.get(e);if(S){const _=k6(e),E=S.defaultLayoutDeferred?M6(_):S.layout,T=qf({layout:E,panelConstraints:_});return!S.defaultLayoutDeferred&&Gf(E,T)&&ECe(S.derivedPanelConstraints,_)?w:{mountedGroups:new Map(w.mountedGroups).set(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:_,layout:T,separatorToPanels:S.separatorToPanels})}}return w})}}else _Ce(e,A,v)}});a.observe(e.element),e.panels.forEach(g=>{Ci(!r.has(g.id),`Panel ids must be unique; id "${g.id}" was used more than once`),r.add(g.id),g.onResize&&a.observe(g.element)});const o=sg({group:e}),s=k6(e),l=e.panels.map(({id:g})=>g).join(",");let c=e.defaultLayout;c&&(NCe(e.panels,c)||(c=void 0));const u=e.inMemoryLayouts[l]??c??M6(s),d=qf({layout:u,panelConstraints:s}),h=VX(e),f=e.element.ownerDocument;return Vo(g=>{const y=new Map;return Zh.set(f,(Zh.get(f)??0)+1),h.forEach(v=>{v.separator&&y.set(v.separator,v.panels)}),{mountedGroups:new Map(g.mountedGroups).set(e,{defaultLayoutDeferred:o===0,derivedPanelConstraints:s,layout:d,separatorToPanels:y})}}),e.separators.forEach(g=>{Ci(!i.has(g.id),`Separator ids must be unique; id "${g.id}" was used more than once`),i.add(g.id),g.element.addEventListener("keydown",D6)}),Zh.get(f)===1&&(f.addEventListener("pointerdown",N6,!0),f.addEventListener("pointerleave",R6),f.addEventListener("pointermove",P6),f.addEventListener("pointerup",I6,!0)),function(){t=!1,Zh.set(f,Math.max(0,(Zh.get(f)??0)-1)),Vo(g=>{const y=new Map(g.mountedGroups);return y.delete(e),{mountedGroups:y}}),e.separators.forEach(g=>{g.element.removeEventListener("keydown",D6)}),Zh.get(f)||(f.removeEventListener("pointerdown",N6,!0),f.removeEventListener("pointerleave",R6),f.removeEventListener("pointermove",P6),f.removeEventListener("pointerup",I6,!0)),a.disconnect()}}function QX(){const[e,t]=N.useState({}),n=N.useCallback(()=>t({}),[]);return[e,n]}function yF(e){const t=N.useId();return`${e??t}`}const rh=typeof window<"u"?N.useLayoutEffect:N.useEffect;function g0(e){const t=N.useRef(e);return rh(()=>{t.current=e},[e]),N.useCallback((...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[t])}function vF(...e){return g0(t=>{e.forEach(n=>{if(n)switch(typeof n){case"function":{n(t);break}case"object":{n.current=t;break}}})})}function RCe(e){const t=N.useRef({...e});return rh(()=>{for(const n in e)t.current[n]=e[n]},[e]),t.current}const eZ=N.createContext(null);function PCe(e,t){const n=N.useRef({getLayout:()=>({}),setLayout:yCe});N.useImperativeHandle(t,()=>n.current,[]),rh(()=>{Object.assign(n.current,GX({groupId:e}))})}function xF({children:e,className:t,defaultLayout:n,disableCursor:r,disabled:i,elementRef:a,groupRef:o,id:s,onLayoutChange:l,onLayoutChanged:c,orientation:u="horizontal",style:d,...h}){const f=N.useRef({onLayoutChange:{},onLayoutChanged:{}}),g=g0(R=>{Gf(f.current.onLayoutChange,R)||(f.current.onLayoutChange=R,l==null||l(R))}),y=g0(R=>{Gf(f.current.onLayoutChanged,R)||(f.current.onLayoutChanged=R,c==null||c(R))}),v=yF(s),A=N.useRef(null),[w,S]=QX(),_=N.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],separators:[]}),E=vF(A,a);PCe(v,o);const T=g0((R,z)=>{const{interactionState:B,mountedGroups:W}=Qs();for(const P of W.keys())if(P.id===R){const Z=W.get(P);if(Z){let Q=!1;switch(B.state){case"active":{Q=B.hitRegions.some(X=>X.group===P);break}}return{flexGrow:Z.layout[z]??1,pointerEvents:Q?"none":void 0}}}return{flexGrow:(n==null?void 0:n[z])??1}}),D=N.useMemo(()=>({getPanelStyles:T,id:v,orientation:u,registerPanel:R=>{const z=_.current;return z.panels=R_(u,[...z.panels,R]),S(),()=>{z.panels=z.panels.filter(B=>B!==R),S()}},registerSeparator:R=>{const z=_.current;return z.separators=R_(u,[...z.separators,R]),S(),()=>{z.separators=z.separators.filter(B=>B!==R),S()}}}),[T,v,S,u]),I=RCe({defaultLayout:n,disableCursor:r}),j=N.useRef(null);return rh(()=>{const R=A.current;if(R===null)return;const z=_.current,B={defaultLayout:I.defaultLayout,disableCursor:!!I.disableCursor,disabled:!!i,element:R,id:v,inMemoryLastExpandedPanelSizes:_.current.lastExpandedPanelSizes,inMemoryLayouts:_.current.layouts,orientation:u,panels:z.panels,separators:z.separators};j.current=B;const W=FCe(B),P=Qs().mountedGroups.get(B);if(P){const{defaultLayoutDeferred:X,derivedPanelConstraints:q,layout:te}=P;!X&&q.length>0&&(g(te),y(te),z.panels.forEach(J=>{J.scheduleUpdate()}))}const Z=Mf.addListener("interactionStateChange",()=>{z.panels.forEach(X=>{X.scheduleUpdate()})}),Q=Mf.addListener("mountedGroupsChange",X=>{const q=X.get(B);if(q){const{defaultLayoutDeferred:te,derivedPanelConstraints:J,layout:ee}=q;if(te||J.length===0)return;const{interactionState:le}=Qs(),G=le.state!=="active";g(ee),G&&y(ee),z.panels.forEach(xe=>{xe.scheduleUpdate()})}});return()=>{j.current=null,W(),Z(),Q()}},[i,v,y,g,u,w,I]),N.useEffect(()=>{const R=j.current;R&&(R.defaultLayout=n,R.disableCursor=!!r)}),m.jsx(eZ.Provider,{value:D,children:m.jsx("div",{...h,"aria-orientation":u,className:t,"data-group":!0,"data-testid":v,id:v,ref:E,style:{height:"100%",width:"100%",overflow:"hidden",...d,display:"flex",flexDirection:u==="horizontal"?"row":"column",flexWrap:"nowrap"},children:e})})}xF.displayName="Group";function bF(){const e=N.useContext(eZ);return Ci(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function ICe({groupId:e,panelId:t}){const n=()=>{const{mountedGroups:s}=Qs();for(const[l,{defaultLayoutDeferred:c,derivedPanelConstraints:u,layout:d,separatorToPanels:h}]of s)if(l.id===e)return{defaultLayoutDeferred:c,derivedPanelConstraints:u,group:l,layout:d,separatorToPanels:h};throw Error(`Group ${e} not found`)},r=()=>{const s=n().derivedPanelConstraints.find(l=>l.panelId===t);if(s!==void 0)return s;throw Error(`Panel constraints not found for Panel ${t}`)},i=()=>{const s=n().group.panels.find(l=>l.id===t);if(s!==void 0)return s;throw Error(`Layout not found for Panel ${t}`)},a=()=>{const s=n().layout[t];if(s!==void 0)return s;throw Error(`Layout not found for Panel ${t}`)},o=s=>{const l=a();if(s===l)return;const{defaultLayoutDeferred:c,derivedPanelConstraints:u,group:d,layout:h,separatorToPanels:f}=n(),g=d.panels.findIndex(w=>w.id===t),y=g===d.panels.length-1,v=Y0({delta:y?l-s:s-l,initialLayout:h,panelConstraints:u,pivotIndices:y?[g-1,g]:[g,g+1],prevLayout:h,trigger:"imperative-api"}),A=qf({layout:v,panelConstraints:u});Gf(h,A)||Vo(w=>({mountedGroups:new Map(w.mountedGroups).set(d,{defaultLayoutDeferred:c,derivedPanelConstraints:u,layout:A,separatorToPanels:f})}))};return{collapse:()=>{const{collapsible:s,collapsedSize:l}=r(),{mutableValues:c}=i(),u=a();s&&u!==l&&(c.expandToSize=u,o(l))},expand:()=>{const{collapsible:s,collapsedSize:l,minSize:c}=r(),{mutableValues:u}=i(),d=a();if(s&&d===l){let h=u.expandToSize??c;h===0&&(h=1),o(h)}},getSize:()=>{const{group:s}=n(),l=a(),{element:c}=i(),u=s.orientation==="horizontal"?c.offsetWidth:c.offsetHeight;return{asPercentage:l,inPixels:u}},isCollapsed:()=>{const{collapsible:s,collapsedSize:l}=r(),c=a();return s&&xo(l,c)},resize:s=>{if(a()!==s){let l;switch(typeof s){case"number":{const{group:c}=n(),u=sg({group:c});l=Pl(s/u*100);break}case"string":{l=parseFloat(s);break}}o(l)}}}}function MCe(e,t){const{id:n}=bF(),r=N.useRef({collapse:aC,expand:aC,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:aC});N.useImperativeHandle(t,()=>r.current,[]),rh(()=>{Object.assign(r.current,ICe({groupId:n,panelId:e}))})}function AF({children:e,className:t,collapsedSize:n="0%",collapsible:r=!1,defaultSize:i,elementRef:a,id:o,maxSize:s="100%",minSize:l="0%",onResize:c,panelRef:u,style:d,...h}){const f=!!o,g=yF(o),y=N.useRef(null),v=vF(y,a),[,A]=QX(),{getPanelStyles:w,id:S,registerPanel:_}=bF(),E=c!==null,T=g0((I,j,R)=>{c==null||c(I,o,R)});rh(()=>{const I=y.current;if(I!==null)return _({element:I,id:g,idIsStable:f,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:E?T:void 0,panelConstraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:s,minSize:l},scheduleUpdate:A})},[n,r,i,A,E,g,f,s,l,T,_]),MCe(g,u);const D=w(S,g);return m.jsx("div",{...h,"data-panel":!0,"data-testid":g,id:g,ref:v,style:{...UCe,flexBasis:0,flexShrink:1,overflow:"hidden",...D},children:m.jsx("div",{className:t,style:{width:"100%",height:"100%",...d},children:e})})}AF.displayName="Panel";const UCe={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function LCe({layout:e,panelConstraints:t,panelId:n,panelIndex:r}){let i,a;const o=e[n],s=t.find(l=>l.panelId===n);if(s){const l=s.maxSize,c=a=s.collapsible?s.collapsedSize:s.minSize,u=[r,r+1];a=qf({layout:Y0({delta:c-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e,trigger:"keyboard"}),panelConstraints:t})[n],i=qf({layout:Y0({delta:l-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e,trigger:"keyboard"}),panelConstraints:t})[n]}return{valueControls:n,valueMax:i,valueMin:a,valueNow:o}}function wF({children:e,className:t,elementRef:n,id:r,style:i,...a}){const o=yF(r),[s,l]=N.useState({}),[c,u]=N.useState("inactive"),d=N.useRef(null),h=vF(d,n),{id:f,orientation:g,registerSeparator:y}=bF(),v=g==="horizontal"?"vertical":"horizontal";return rh(()=>{const A=d.current;if(A!==null){const w={element:A,id:o},S=y(w),_=Mf.addListener("interactionStateChange",T=>{u(T.state!=="inactive"&&T.hitRegions.some(D=>D.separator===w)?T.state:"inactive")}),E=Mf.addListener("mountedGroupsChange",T=>{T.forEach(({derivedPanelConstraints:D,layout:I,separatorToPanels:j},R)=>{if(R.id===f){const z=j.get(w);if(z){const B=z[0],W=R.panels.indexOf(B);l(LCe({layout:I,panelConstraints:D,panelId:B.id,panelIndex:W}))}}})});return()=>{_(),E(),S()}}},[f,o,y]),m.jsx("div",{...a,"aria-controls":s.valueControls,"aria-orientation":v,"aria-valuemax":s.valueMax,"aria-valuemin":s.valueMin,"aria-valuenow":s.valueNow,children:e,className:t,"data-separator":c,"data-testid":o,id:o,ref:h,role:"separator",style:{flexBasis:"auto",...i,flexGrow:0,flexShrink:0},tabIndex:0})}wF.displayName="Separator";const OCe=({className:e,...t})=>m.jsx(xF,{className:gt("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),U6=AF,jCe=({withHandle:e,className:t,...n})=>m.jsx(wF,{className:gt("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...n,children:e&&m.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:m.jsx(hE,{className:"h-2.5 w-2.5"})})}),BCe=`# R - Role\r-You are the draw.io (flow) Orchestrator / Router. Your only job is to decide which sub-agent to call next (Mode A / Mode B), based on the user request and the current context.\r-\r-# I - Instructions\r-Based on user intent and current context (whether "Current diagram XML" exists, change scope, and whether an exact-match patch is stable), choose and output exactly one route number (1-2).\r-\r-# Input\r-I will provide:\r-- Input type: user natural-language request + (optional) the current diagram's "Current diagram XML"\r-- Input format: chat text; context may include a full draw.io XML block (verbatim)\r-- Input scope: for routing decisions only; do not generate any flow_patch JSON or draw.io XML\r-\r-# S - Steps\r-Follow these steps strictly:\r-1. Determine whether "Current diagram XML" exists in context.\r-2. Determine whether the request is a small/local edit vs new diagram / major changes / structural refactor.\r-3. If it is a small edit and Current diagram XML exists, decide whether you can make a stable exact-match patch by copying snippets from the existing XML.\r-4. Choose exactly one route number per the routing rules and output it.\r-\r-# E - End Goal\r-Output the correct route number so the external system can call the right sub-agent to produce the desired result, without ambiguity or extra output.\r-\r-# N - Narrowing\r-Constraints (MUST follow):\r-1. You only route. You do not generate flow_patch JSON, and you do not generate/modify draw.io XML.\r-2. Output constraint: output only a single digit string. No JSON, no code block, no explanation, no extra punctuation, no extra newlines.\r-3. Route exactly one sub-agent per turn. If the user requests multiple changes, route one first, then route the next later.\r-4. Language policy (CRITICAL):\r- - Output is always a single digit (1–2). Do not output any natural language.\r-\r-Routing rules (MUST follow):\r-1. If "Current diagram XML" does NOT exist: output 2 (flow_replace_agent).\r-2. If the user wants a new diagram / major layout change / structural refactor / you are not confident an exact patch will apply: output 2 (flow_replace_agent).\r-3. Output 1 (flow_patch_agent) ONLY if ALL conditions are met:\r- - "Current diagram XML" exists\r- - The change is very small and local (e.g., edit 1-3 nodes/edges text/style/position, or add/remove a few elements)\r- - You can stably copy existing XML snippets and do an exact-match patch\r-\r-Sub-agent mapping:\r-- 1: flow_patch_agent (Mode A: atomic patch)\r-- 2: flow_replace_agent (Mode B: full replace)\r-\r-# Output Format\r-You must output exactly one string (no JSON, no code block, no explanation). The content must be a single digit: 1 or 2.\r-`,zCe=`# R - Role-You are the CAD Orchestrator / Router. Your only job is to decide which sub-agent to call next, based on the user request and the current CAD context.--# I - Instructions-Based on user intent and the current artifact state (whether \`cad_plan\` exists and whether a 2D SVG exists), choose and output exactly one route number (1-4).--# Input-I will provide:-- Input type: user natural-language request + (optional) current CAD context-- Input format: chat text; context may include \`cad_plan\` (JSON), 2D SVG (an \`svg\` code block), or other intermediate artifacts-- Input scope: routing decisions only; do not generate any final artifacts--# S - Steps-Follow these steps strictly:-1. Determine whether \`cad_plan\` exists in context.-2. Determine whether a 2D SVG exists in context.-3. Classify the user intent as one of: plan generation/edit, 2D drafting/editing, bill of materials, render prompts.-4. Select exactly one sub-agent number using the routing rules and output it.--# E - End Goal-Output the correct route number so the external system can call the right sub-agent to produce the desired result, with no ambiguity and no extra output.--# N - Narrowing-Constraints:-1. Scope: you only route. You do not generate \`cad_plan\`, SVG, \`cad_patch\`, \`cad_bom\`, or \`cad_images\`.-2. Output constraint: output only a single digit string. No JSON, no code block, no explanation, no extra punctuation, no extra newlines.-3. Route exactly one sub-agent per turn. If the user requests multiple outputs, route one first, then route another later.-4. Language policy (CRITICAL):- - Output is always a single digit (1-4). Do not output any natural language.--Routing rules (MUST follow):-1. If there is no plan yet: prefer 1 (\`cad_plan_agent\`).-2. If the user request involves drawing/modifying/redrawing the 2D floor plan: prefer 2 (\`cad_svg_agent\`).-3. If the user wants a BOM: prefer 3 (\`cad_bom_agent\`).-4. If the user wants render prompts: prefer 4 (\`cad_images_agent\`).-5. If user asks for both "BOM + render prompts", output either 3 or 4 first, but only one number per turn.--Sub-agent mapping:-- 1: \`cad_plan_agent\` (requirements -> structured plan)-- 2: \`cad_svg_agent\` (all 2D drafting/editing via patch/replace tools)-- 3: \`cad_bom_agent\` (bill of materials)-- 4: \`cad_images_agent\` (render prompts)--# Output Format-You must output exactly one string (no JSON, no code block, no explanation). The content must be a single digit: 1-4.-`,WCe='\uFEFF# R - Role\nYou are the PPT planning agent and can work in two planning modes:\n1) `PlanFromIdeaAgent`\n2) `PlanFromOutlineAgent`\n\n# I - Instructions\nGenerate a complete `PptPlan` for rendering.\nEvery slide must contain all required fields:\n- `id`\n- `title`\n- `content`\n- `description`\n- `layout`\n- `note`\n\n# Input\nYou may receive either one of these input sets:\n1) Idea mode (`PlanFromIdeaAgent`)\n- required: `idea_prompt`, `ui_language`\n- optional: `reference_files_content` (`[{filename, content}]`)\n\n2) Outline mode (`PlanFromOutlineAgent`)\n- required: `outline_text`, `ui_language`\n- optional: `reference_files_content` (`[{filename, content}]`)\n\n# S - Steps\n1. Determine whether the task is idea-to-plan or outline-to-plan.\n2. Build a coherent slide sequence (prefer 6-10 slides unless user intent implies otherwise).\n3. For each slide:\n- concise title\n- concise bullets (`content`, each bullet <= 12 words)\n- concrete `description` for image generation (subject/composition/style/colors/lighting)\n- explicit `layout` hint\n- `note` (speaker note; can be short but must exist as string)\n4. If reference files are provided, absorb relevant facts and align terminology.\n5. Keep language aligned with `ui_language`.\n6. Return one JSON payload only.\n\n# E - End Goal\nProduce one complete `PptPlan` JSON that is ready for downstream rendering and slide generation.\n\n# N - Narrowing\nRules (CRITICAL):\n1. This planning agent only outputs plan JSON; do not output image URLs.\n2. Do not output `imageEditInstruction`.\n3. Keep `id` stable if slide IDs are already implied by context; otherwise use `slide-1`, `slide-2`, ...\n4. Output ONLY one markdown code block.\n5. `ui_language=zh` => Simplified Chinese; `ui_language=en` => English.\n\n# Output Format\n```json\n{\n "type": "ppt_plan",\n "theme": "optional",\n "slides": [\n {\n "id": "slide-1",\n "title": "...",\n "content": ["...", "..."],\n "description": "...",\n "layout": "...",\n "note": "..."\n }\n ]\n}\n```\r\n',VCe=`\uFEFF# R - Role-You are \`PlanEditAgent\`, a PPT plan text editor.-You edit plan fields only and do not generate images.--# I - Instructions-Apply user feedback to the provided slide plan context.-Return patch-style updates only for changed slides.--# Input-- required: \`context\` with slide data (\`{ slides: [...] }\`), can be full set or subset-- required: \`user_feedback\`-- required: \`ui_language\`--Notes:-- If user referenced specific slides/tokens, \`context.slides\` may be subset.-- If user did not reference any slide, \`context.slides\` is full set.--# S - Steps-1. Read \`user_feedback\` and determine exactly which slides need edits.-2. Edit only those slides in context scope.-3. Keep \`id\` stable.-4. For each changed slide, keep fields complete and coherent:-- \`title\`-- \`content\`-- \`description\`-- \`layout\`-- \`note\`-5. Return one patch payload only.--# E - End Goal-Produce one machine-readable routing result that tells the external system which slides to update and how.--# N - Narrowing-Rules (CRITICAL):-1. Text editing only. Do NOT output image URLs.-2. Do NOT output \`imageEditInstruction\`.-3. Do not return unchanged slides.-4. Output ONLY one markdown code block.-5. \`ui_language=zh\` => Simplified Chinese; \`ui_language=en\` => English.--# Output Format-\`\`\`json-{- "type": "ppt_edit",- "slides": [- {- "id": "slide-3",- "title": "...",- "content": ["..."],- "description": "...",- "layout": "...",- "note": "..."- }- ]-}-\`\`\`\r-`,GCe=`\uFEFF# R - Role-You are \`EditRouterAgent\` for PPT edits.--# I - Instructions-Classify user feedback into per-slide edit actions and indicate whether each action is content-only, visual-only, or both.--# Input-- required: \`slides_summary\` (each slide includes \`id\`, \`title\`, \`content\`, \`description\`, \`layout\`, \`note\`)-- required: \`user_feedback\`--# S - Steps-1. Parse the feedback and map intent to slide(s).-2. For each target slide, produce one routing item.-3. Set \`kind\` as one of:-- \`content\`-- \`visual\`-- \`both\`-4. Write concise executable \`instruction\` text.--# E - End Goal-Produce one machine-readable routing result that tells the external system which slides to update and how.--# N - Narrowing-Rules (CRITICAL):-1. Output JSON array only.-2. One item per targeted slide.-3. \`slideId\` must match existing ids in \`slides_summary\`.-4. Do not invent new slide ids.-5. Output ONLY one markdown code block.--# Output Format-\`\`\`json-[- {- "slideId": "slide-2",- "kind": "content|visual|both",- "instruction": "..."- }-]-\`\`\`\r-`,qCe=`# R - Role-You are the PPT edit router for existing slides.--# I - Instructions-Return only the changed slides. For each slide, decide whether the edit is:-- \`text_only\`-- \`text_relayout\`-- \`background_redraw\`--# Input-- user feedback-- slide context JSON-- optional uploaded image tags-- \`ui_language\`--# S - Steps-1. Identify which slides are affected.-2. Update \`title\`, \`content\`, \`description\`, \`layout\`, \`note\` when needed.-3. Set \`editType\` for each changed slide.-4. If the background must change, write a direct visual instruction in \`instruction\`.-5. If a slide should reference another slide's style, set \`styleRefSlideIds\` and \`styleRefPolicy\`.-6. Only set \`materialImageUrls\` when the user explicitly asks to use an uploaded image on a specific slide.--# E - End Goal-Produce one machine-readable \`ppt_edit\` payload that updates only the necessary slides and routes each slide to the correct edit flow.--# N - Narrowing-Rules:-1. Keep \`id\` stable.-2. Do not output unchanged slides.-3. Do not output image URLs unless they are explicit reference/material URLs.-4. Use \`text_only\` for wording-only edits.-5. Use \`text_relayout\` when text changes require text box reflow but not a new background.-6. Use \`background_redraw\` only when visuals, composition, layout image, or explicitly requested material usage must change.-7. Output exactly one JSON code block.--# Output Format-\`\`\`json-{- "type": "ppt_edit",- "slides": [- {- "id": "slide-1",- "editType": "text_only",- "title": "...",- "content": ["..."],- "description": "...",- "layout": "...",- "note": "...",- "instruction": "optional, only for background_redraw",- "styleRefSlideIds": ["slide-2"],- "styleRefPolicy": "style_only",- "styleRefImageUrls": ["https://example.com/style-ref-1.png"],- "materialImageUrls": ["https://example.com/material-1.png"]- }- ]-}-\`\`\`-`,tZ=BCe,HCe=zCe,XCe=VCe,ZCe=qCe;var oC="rovingFocusGroup.onEntryFocus",KCe={bubbles:!1,cancelable:!0},Ey="RovingFocusGroup",[P_,nZ,$Ce]=DE(Ey),[YCe,rZ]=dc(Ey,[$Ce]),[JCe,QCe]=YCe(Ey),iZ=N.forwardRef((e,t)=>m.jsx(P_.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(P_.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(eTe,{...e,ref:t})})}));iZ.displayName=Ey;var eTe=N.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,h=N.useRef(null),f=Hr(t,h),g=_A(a),[y,v]=tl({prop:o,defaultProp:s??null,onChange:l,caller:Ey}),[A,w]=N.useState(!1),S=za(c),_=nZ(n),E=N.useRef(!1),[T,D]=N.useState(0);return N.useEffect(()=>{const I=h.current;if(I)return I.addEventListener(oC,S),()=>I.removeEventListener(oC,S)},[S]),m.jsx(JCe,{scope:n,orientation:r,dir:g,loop:i,currentTabStopId:y,onItemFocus:N.useCallback(I=>v(I),[v]),onItemShiftTab:N.useCallback(()=>w(!0),[]),onFocusableItemAdd:N.useCallback(()=>D(I=>I+1),[]),onFocusableItemRemove:N.useCallback(()=>D(I=>I-1),[]),children:m.jsx(Dr.div,{tabIndex:A||T===0?-1:0,"data-orientation":r,...d,ref:f,style:{outline:"none",...e.style},onMouseDown:en(e.onMouseDown,()=>{E.current=!0}),onFocus:en(e.onFocus,I=>{const j=!E.current;if(I.target===I.currentTarget&&j&&!A){const R=new CustomEvent(oC,KCe);if(I.currentTarget.dispatchEvent(R),!R.defaultPrevented){const z=_().filter(Q=>Q.focusable),B=z.find(Q=>Q.active),W=z.find(Q=>Q.id===y),Z=[B,W,...z].filter(Boolean).map(Q=>Q.ref.current);sZ(Z,u)}}E.current=!1}),onBlur:en(e.onBlur,()=>w(!1))})})}),aZ="RovingFocusGroupItem",oZ=N.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,l=zc(),c=a||l,u=QCe(aZ,n),d=u.currentTabStopId===c,h=nZ(n),{onFocusableItemAdd:f,onFocusableItemRemove:g,currentTabStopId:y}=u;return N.useEffect(()=>{if(r)return f(),()=>g()},[r,f,g]),m.jsx(P_.ItemSlot,{scope:n,id:c,focusable:r,active:i,children:m.jsx(Dr.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:en(e.onMouseDown,v=>{r?u.onItemFocus(c):v.preventDefault()}),onFocus:en(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:en(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){u.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const A=rTe(v,u.orientation,u.dir);if(A!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let S=h().filter(_=>_.focusable).map(_=>_.ref.current);if(A==="last")S.reverse();else if(A==="prev"||A==="next"){A==="prev"&&S.reverse();const _=S.indexOf(v.currentTarget);S=u.loop?iTe(S,_+1):S.slice(_+1)}setTimeout(()=>sZ(S))}}),children:typeof o=="function"?o({isCurrentTabStop:d,hasTabStop:y!=null}):o})})});oZ.displayName=aZ;var tTe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function nTe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function rTe(e,t,n){const r=nTe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return tTe[r]}function sZ(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function iTe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var aTe=iZ,oTe=oZ;function sTe(e){const t=lTe(e),n=N.forwardRef((r,i)=>{const{children:a,...o}=r,s=N.Children.toArray(a),l=s.find(uTe);if(l){const c=l.props.children,u=s.map(d=>d===l?N.Children.count(c)>1?N.Children.only(null):N.isValidElement(c)?c.props.children:null:d);return m.jsx(t,{...o,ref:i,children:N.isValidElement(c)?N.cloneElement(c,void 0,u):null})}return m.jsx(t,{...o,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function lTe(e){const t=N.forwardRef((n,r)=>{const{children:i,...a}=n;if(N.isValidElement(i)){const o=fTe(i),s=dTe(a,i.props);return i.type!==N.Fragment&&(s.ref=r?fd(r,o):o),N.cloneElement(i,s)}return N.Children.count(i)>1?N.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cTe=Symbol("radix.slottable");function uTe(e){return N.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cTe}function dTe(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function fTe(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var I_=["Enter"," "],hTe=["ArrowDown","PageUp","Home"],lZ=["ArrowUp","PageDown","End"],pTe=[...hTe,...lZ],gTe={ltr:[...I_,"ArrowRight"],rtl:[...I_,"ArrowLeft"]},mTe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ny="Menu",[J0,yTe,vTe]=DE(Ny),[ih,cZ]=dc(Ny,[vTe,yg,rZ]),Zw=yg(),uZ=rZ(),[xTe,ah]=ih(Ny),[bTe,Fy]=ih(Ny),dZ=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Zw(t),[l,c]=N.useState(null),u=N.useRef(!1),d=za(a),h=_A(i);return N.useEffect(()=>{const f=()=>{u.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>u.current=!1;return document.addEventListener("keydown",f,{capture:!0}),()=>{document.removeEventListener("keydown",f,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),m.jsx(ME,{...s,children:m.jsx(xTe,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c,children:m.jsx(bTe,{scope:t,onClose:N.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:h,modal:o,children:r})})})};dZ.displayName=Ny;var ATe="MenuAnchor",SF=N.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Zw(n);return m.jsx(UE,{...i,...r,ref:t})});SF.displayName=ATe;var kF="MenuPortal",[wTe,fZ]=ih(kF,{forceMount:void 0}),hZ=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=ah(kF,t);return m.jsx(wTe,{scope:t,forceMount:n,children:m.jsx(To,{present:n||a.open,children:m.jsx(hy,{asChild:!0,container:i,children:r})})})};hZ.displayName=kF;var el="MenuContent",[STe,DF]=ih(el),pZ=N.forwardRef((e,t)=>{const n=fZ(el,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ah(el,e.__scopeMenu),o=Fy(el,e.__scopeMenu);return m.jsx(J0.Provider,{scope:e.__scopeMenu,children:m.jsx(To,{present:r||a.open,children:m.jsx(J0.Slot,{scope:e.__scopeMenu,children:o.modal?m.jsx(kTe,{...i,ref:t}):m.jsx(DTe,{...i,ref:t})})})})}),kTe=N.forwardRef((e,t)=>{const n=ah(el,e.__scopeMenu),r=N.useRef(null),i=Hr(t,r);return N.useEffect(()=>{const a=r.current;if(a)return jE(a)},[]),m.jsx(CF,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:en(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),DTe=N.forwardRef((e,t)=>{const n=ah(el,e.__scopeMenu);return m.jsx(CF,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),CTe=sTe("MenuContent.ScrollLock"),CF=N.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:f,disableOutsideScroll:g,...y}=e,v=ah(el,n),A=Fy(el,n),w=Zw(n),S=uZ(n),_=yTe(n),[E,T]=N.useState(null),D=N.useRef(null),I=Hr(t,D,v.onContentChange),j=N.useRef(0),R=N.useRef(""),z=N.useRef(0),B=N.useRef(null),W=N.useRef("right"),P=N.useRef(0),Z=g?MA:N.Fragment,Q=g?{as:CTe,allowPinchZoom:!0}:void 0,X=te=>{var ce,ye;const J=R.current+te,ee=_().filter(Fe=>!Fe.disabled),le=document.activeElement,G=(ce=ee.find(Fe=>Fe.ref.current===le))==null?void 0:ce.textValue,xe=ee.map(Fe=>Fe.textValue),ge=OTe(xe,J,G),ue=(ye=ee.find(Fe=>Fe.textValue===ge))==null?void 0:ye.ref.current;(function Fe(Oe){R.current=Oe,window.clearTimeout(j.current),Oe!==""&&(j.current=window.setTimeout(()=>Fe(""),1e3))})(J),ue&&setTimeout(()=>ue.focus())};N.useEffect(()=>()=>window.clearTimeout(j.current),[]),CE();const q=N.useCallback(te=>{var ee,le;return W.current===((ee=B.current)==null?void 0:ee.side)&&BTe(te,(le=B.current)==null?void 0:le.area)},[]);return m.jsx(STe,{scope:n,searchRef:R,onItemEnter:N.useCallback(te=>{q(te)&&te.preventDefault()},[q]),onItemLeave:N.useCallback(te=>{var J;q(te)||((J=D.current)==null||J.focus(),T(null))},[q]),onTriggerLeave:N.useCallback(te=>{q(te)&&te.preventDefault()},[q]),pointerGraceTimerRef:z,onPointerGraceIntentChange:N.useCallback(te=>{B.current=te},[]),children:m.jsx(Z,{...Q,children:m.jsx(EA,{asChild:!0,trapped:i,onMountAutoFocus:en(a,te=>{var J;te.preventDefault(),(J=D.current)==null||J.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:m.jsx(dy,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:f,children:m.jsx(aTe,{asChild:!0,...S,dir:A.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:T,onEntryFocus:en(l,te=>{A.isUsingKeyboardRef.current||te.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(LE,{role:"menu","aria-orientation":"vertical","data-state":NZ(v.open),"data-radix-menu-content":"",dir:A.dir,...w,...y,ref:I,style:{outline:"none",...y.style},onKeyDown:en(y.onKeyDown,te=>{const ee=te.target.closest("[data-radix-menu-content]")===te.currentTarget,le=te.ctrlKey||te.altKey||te.metaKey,G=te.key.length===1;ee&&(te.key==="Tab"&&te.preventDefault(),!le&&G&&X(te.key));const xe=D.current;if(te.target!==xe||!pTe.includes(te.key))return;te.preventDefault();const ue=_().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);lZ.includes(te.key)&&ue.reverse(),UTe(ue)}),onBlur:en(e.onBlur,te=>{te.currentTarget.contains(te.target)||(window.clearTimeout(j.current),R.current="")}),onPointerMove:en(e.onPointerMove,Q0(te=>{const J=te.target,ee=P.current!==te.clientX;if(te.currentTarget.contains(J)&&ee){const le=te.clientX>P.current?"right":"left";W.current=le,P.current=te.clientX}}))})})})})})})});pZ.displayName=el;var TTe="MenuGroup",TF=N.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Dr.div,{role:"group",...r,ref:t})});TF.displayName=TTe;var _Te="MenuLabel",gZ=N.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Dr.div,{...r,ref:t})});gZ.displayName=_Te;var tA="MenuItem",L6="menu.itemSelect",Kw=N.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,a=N.useRef(null),o=Fy(tA,e.__scopeMenu),s=DF(tA,e.__scopeMenu),l=Hr(t,a),c=N.useRef(!1),u=()=>{const d=a.current;if(!n&&d){const h=new CustomEvent(L6,{bubbles:!0,cancelable:!0});d.addEventListener(L6,f=>r==null?void 0:r(f),{once:!0}),ZB(d,h),h.defaultPrevented?c.current=!1:o.onClose()}};return m.jsx(mZ,{...i,ref:l,disabled:n,onClick:en(e.onClick,u),onPointerDown:d=>{var h;(h=e.onPointerDown)==null||h.call(e,d),c.current=!0},onPointerUp:en(e.onPointerUp,d=>{var h;c.current||(h=d.currentTarget)==null||h.click()}),onKeyDown:en(e.onKeyDown,d=>{const h=s.searchRef.current!=="";n||h&&d.key===" "||I_.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Kw.displayName=tA;var mZ=N.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=DF(tA,n),s=uZ(n),l=N.useRef(null),c=Hr(t,l),[u,d]=N.useState(!1),[h,f]=N.useState("");return N.useEffect(()=>{const g=l.current;g&&f((g.textContent??"").trim())},[a.children]),m.jsx(J0.ItemSlot,{scope:n,disabled:r,textValue:i??h,children:m.jsx(oTe,{asChild:!0,...s,focusable:!r,children:m.jsx(Dr.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:c,onPointerMove:en(e.onPointerMove,Q0(g=>{r?o.onItemLeave(g):(o.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:en(e.onPointerLeave,Q0(g=>o.onItemLeave(g))),onFocus:en(e.onFocus,()=>d(!0)),onBlur:en(e.onBlur,()=>d(!1))})})})}),ETe="MenuCheckboxItem",yZ=N.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return m.jsx(wZ,{scope:e.__scopeMenu,checked:n,children:m.jsx(Kw,{role:"menuitemcheckbox","aria-checked":nA(n)?"mixed":n,...i,ref:t,"data-state":EF(n),onSelect:en(i.onSelect,()=>r==null?void 0:r(nA(n)?!0:!n),{checkForDefaultPrevented:!1})})})});yZ.displayName=ETe;var vZ="MenuRadioGroup",[NTe,FTe]=ih(vZ,{value:void 0,onValueChange:()=>{}}),xZ=N.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,a=za(r);return m.jsx(NTe,{scope:e.__scopeMenu,value:n,onValueChange:a,children:m.jsx(TF,{...i,ref:t})})});xZ.displayName=vZ;var bZ="MenuRadioItem",AZ=N.forwardRef((e,t)=>{const{value:n,...r}=e,i=FTe(bZ,e.__scopeMenu),a=n===i.value;return m.jsx(wZ,{scope:e.__scopeMenu,checked:a,children:m.jsx(Kw,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":EF(a),onSelect:en(r.onSelect,()=>{var o;return(o=i.onValueChange)==null?void 0:o.call(i,n)},{checkForDefaultPrevented:!1})})})});AZ.displayName=bZ;var _F="MenuItemIndicator",[wZ,RTe]=ih(_F,{checked:!1}),SZ=N.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,a=RTe(_F,n);return m.jsx(To,{present:r||nA(a.checked)||a.checked===!0,children:m.jsx(Dr.span,{...i,ref:t,"data-state":EF(a.checked)})})});SZ.displayName=_F;var PTe="MenuSeparator",kZ=N.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Dr.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});kZ.displayName=PTe;var ITe="MenuArrow",DZ=N.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Zw(n);return m.jsx(OE,{...i,...r,ref:t})});DZ.displayName=ITe;var MTe="MenuSub",[O4e,CZ]=ih(MTe),qm="MenuSubTrigger",TZ=N.forwardRef((e,t)=>{const n=ah(qm,e.__scopeMenu),r=Fy(qm,e.__scopeMenu),i=CZ(qm,e.__scopeMenu),a=DF(qm,e.__scopeMenu),o=N.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},u=N.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return N.useEffect(()=>u,[u]),N.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),m.jsx(SF,{asChild:!0,...c,children:m.jsx(mZ,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":NZ(n.open),...e,ref:fd(t,i.onTriggerChange),onClick:d=>{var h;(h=e.onClick)==null||h.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:en(e.onPointerMove,Q0(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:en(e.onPointerLeave,Q0(d=>{var f,g;u();const h=(f=n.content)==null?void 0:f.getBoundingClientRect();if(h){const y=(g=n.content)==null?void 0:g.dataset.side,v=y==="right",A=v?-5:5,w=h[v?"left":"right"],S=h[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+A,y:d.clientY},{x:w,y:h.top},{x:S,y:h.top},{x:S,y:h.bottom},{x:w,y:h.bottom}],side:y}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:en(e.onKeyDown,d=>{var f;const h=a.searchRef.current!=="";e.disabled||h&&d.key===" "||gTe[r.dir].includes(d.key)&&(n.onOpenChange(!0),(f=n.content)==null||f.focus(),d.preventDefault())})})})});TZ.displayName=qm;var _Z="MenuSubContent",EZ=N.forwardRef((e,t)=>{const n=fZ(el,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ah(el,e.__scopeMenu),o=Fy(el,e.__scopeMenu),s=CZ(_Z,e.__scopeMenu),l=N.useRef(null),c=Hr(t,l);return m.jsx(J0.Provider,{scope:e.__scopeMenu,children:m.jsx(To,{present:r||a.open,children:m.jsx(J0.Slot,{scope:e.__scopeMenu,children:m.jsx(CF,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:c,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;o.isUsingKeyboardRef.current&&((d=l.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:en(e.onFocusOutside,u=>{u.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:en(e.onEscapeKeyDown,u=>{o.onClose(),u.preventDefault()}),onKeyDown:en(e.onKeyDown,u=>{var f;const d=u.currentTarget.contains(u.target),h=mTe[o.dir].includes(u.key);d&&h&&(a.onOpenChange(!1),(f=s.trigger)==null||f.focus(),u.preventDefault())})})})})})});EZ.displayName=_Z;function NZ(e){return e?"open":"closed"}function nA(e){return e==="indeterminate"}function EF(e){return nA(e)?"indeterminate":e?"checked":"unchecked"}function UTe(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function LTe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function OTe(e,t,n){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let o=LTe(e,Math.max(a,0));i.length===1&&(o=o.filter(c=>c!==n));const l=o.find(c=>c.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function jTe(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,o=t.length-1;a<t.length;o=a++){const s=t[a],l=t[o],c=s.x,u=s.y,d=l.x,h=l.y;u>r!=h>r&&n<(d-c)*(r-u)/(h-u)+c&&(i=!i)}return i}function BTe(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return jTe(n,t)}function Q0(e){return t=>t.pointerType==="mouse"?e(t):void 0}var zTe=dZ,WTe=SF,VTe=hZ,GTe=pZ,qTe=TF,HTe=gZ,XTe=Kw,ZTe=yZ,KTe=xZ,$Te=AZ,YTe=SZ,JTe=kZ,QTe=DZ,e_e=TZ,t_e=EZ,NF="ContextMenu",[n_e]=dc(NF,[cZ]),_o=cZ(),[r_e,FZ]=n_e(NF),RZ=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,dir:i,modal:a=!0}=e,[o,s]=N.useState(!1),l=_o(t),c=za(r),u=N.useCallback(d=>{s(d),c(d)},[c]);return m.jsx(r_e,{scope:t,open:o,onOpenChange:u,modal:a,children:m.jsx(zTe,{...l,dir:i,open:o,onOpenChange:u,modal:a,children:n})})};RZ.displayName=NF;var PZ="ContextMenuTrigger",IZ=N.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=FZ(PZ,n),o=_o(n),s=N.useRef({x:0,y:0}),l=N.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),c=N.useRef(0),u=N.useCallback(()=>window.clearTimeout(c.current),[]),d=h=>{s.current={x:h.clientX,y:h.clientY},a.onOpenChange(!0)};return N.useEffect(()=>u,[u]),N.useEffect(()=>void(r&&u()),[r,u]),m.jsxs(m.Fragment,{children:[m.jsx(WTe,{...o,virtualRef:l}),m.jsx(Dr.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...i,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:en(e.onContextMenu,h=>{u(),d(h),h.preventDefault()}),onPointerDown:r?e.onPointerDown:en(e.onPointerDown,zx(h=>{u(),c.current=window.setTimeout(()=>d(h),700)})),onPointerMove:r?e.onPointerMove:en(e.onPointerMove,zx(u)),onPointerCancel:r?e.onPointerCancel:en(e.onPointerCancel,zx(u)),onPointerUp:r?e.onPointerUp:en(e.onPointerUp,zx(u))})]})});IZ.displayName=PZ;var i_e="ContextMenuPortal",MZ=e=>{const{__scopeContextMenu:t,...n}=e,r=_o(t);return m.jsx(VTe,{...r,...n})};MZ.displayName=i_e;var UZ="ContextMenuContent",LZ=N.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=FZ(UZ,n),a=_o(n),o=N.useRef(!1);return m.jsx(GTe,{...a,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:s=>{var l;(l=e.onCloseAutoFocus)==null||l.call(e,s),!s.defaultPrevented&&o.current&&s.preventDefault(),o.current=!1},onInteractOutside:s=>{var l;(l=e.onInteractOutside)==null||l.call(e,s),!s.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});LZ.displayName=UZ;var a_e="ContextMenuGroup",o_e=N.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=_o(n);return m.jsx(qTe,{...i,...r,ref:t})});o_e.displayName=a_e;var s_e="ContextMenuLabel",OZ=N.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=_o(n);return m.jsx(HTe,{...i,...r,ref:t})});OZ.displayName=s_e;var l_e="ContextMenuItem",jZ=N.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=_o(n);return m.jsx(XTe,{...i,...r,ref:t})});jZ.displayName=l_e;var c_e="ContextMenuCheckboxItem",BZ=N.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=_o(n);return m.jsx(ZTe,{...i,...r,ref:t})});BZ.displayName=c_e;var u_e="ContextMenuRadioGroup",d_e=N.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=_o(n);return m.jsx(KTe,{...i,...r,ref:t})});d_e.displayName=u_e;var f_e="ContextMenuRadioItem",zZ=N.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=_o(n);return m.jsx($Te,{...i,...r,ref:t})});zZ.displayName=f_e;var h_e="ContextMenuItemIndicator",WZ=N.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=_o(n);return m.jsx(YTe,{...i,...r,ref:t})});WZ.displayName=h_e;var p_e="ContextMenuSeparator",VZ=N.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=_o(n);return m.jsx(JTe,{...i,...r,ref:t})});VZ.displayName=p_e;var g_e="ContextMenuArrow",m_e=N.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=_o(n);return m.jsx(QTe,{...i,...r,ref:t})});m_e.displayName=g_e;var y_e="ContextMenuSubTrigger",GZ=N.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=_o(n);return m.jsx(e_e,{...i,...r,ref:t})});GZ.displayName=y_e;var v_e="ContextMenuSubContent",qZ=N.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=_o(n);return m.jsx(t_e,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});qZ.displayName=v_e;function zx(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var HZ=RZ,XZ=IZ,ZZ=MZ,$w=LZ,Yw=OZ,Jw=jZ,Qw=BZ,e2=zZ,t2=WZ,n2=VZ,r2=GZ,i2=qZ;const x_e=HZ,b_e=XZ,A_e=N.forwardRef(({className:e,inset:t,children:n,...r},i)=>m.jsxs(r2,{ref:i,className:gt("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,m.jsx(dE,{className:"ml-auto h-4 w-4"})]}));A_e.displayName=r2.displayName;const w_e=N.forwardRef(({className:e,...t},n)=>m.jsx(i2,{ref:n,className:gt("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));w_e.displayName=i2.displayName;const KZ=N.forwardRef(({className:e,...t},n)=>m.jsx(ZZ,{children:m.jsx($w,{ref:n,className:gt("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})}));KZ.displayName=$w.displayName;const $Z=N.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(Jw,{ref:r,className:gt("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));$Z.displayName=Jw.displayName;const S_e=N.forwardRef(({className:e,children:t,checked:n,...r},i)=>m.jsxs(Qw,{ref:i,className:gt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(t2,{children:m.jsx(qo,{className:"h-4 w-4"})})}),t]}));S_e.displayName=Qw.displayName;const k_e=N.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(e2,{ref:r,className:gt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(t2,{children:m.jsx(AB,{className:"h-2 w-2 fill-current"})})}),t]}));k_e.displayName=e2.displayName;const D_e=N.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(Yw,{ref:r,className:gt("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...n}));D_e.displayName=Yw.displayName;const C_e=N.forwardRef(({className:e,...t},n)=>m.jsx(n2,{ref:n,className:gt("-mx-1 my-1 h-px bg-border",e),...t}));C_e.displayName=n2.displayName;const T_e=CA("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:brightness-75",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),Ta=N.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{const o=r?DA:"button";return m.jsx(o,{ref:a,"data-slot":"button",className:gt(T_e({variant:t,size:n,className:e})),...i})});Ta.displayName="Button";function FF({...e}){return m.jsx(LN,{"data-slot":"dialog",...e})}function __e({...e}){return m.jsx(ON,{"data-slot":"dialog-portal",...e})}const YZ=N.forwardRef(({className:e,...t},n)=>m.jsx(JA,{ref:n,"data-slot":"dialog-overlay",className:gt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t}));YZ.displayName=JA.displayName;const a2=N.forwardRef(({className:e,children:t,...n},r)=>{const i=pa();return m.jsxs(__e,{"data-slot":"dialog-portal",children:[m.jsx(YZ,{}),m.jsxs(QA,{ref:r,"data-slot":"dialog-content",className:gt("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...n,children:[t,m.jsxs(jN,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[m.jsx(Va,{}),m.jsx("span",{className:"sr-only",children:i==="zh"?"关闭":"Close"})]})]})]})});a2.displayName=QA.displayName;function RF({className:e,...t}){return m.jsx("div",{"data-slot":"dialog-header",className:gt("flex flex-col gap-2 text-center sm:text-left",e),...t})}function E_e({className:e,...t}){return m.jsx("div",{"data-slot":"dialog-footer",className:gt("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}const o2=N.forwardRef(({className:e,...t},n)=>m.jsx(ew,{ref:n,"data-slot":"dialog-title",className:gt("text-lg leading-none font-semibold",e),...t}));o2.displayName=ew.displayName;const JZ=N.forwardRef(({className:e,...t},n)=>m.jsx(tw,{ref:n,"data-slot":"dialog-description",className:gt("text-muted-foreground text-sm",e),...t}));JZ.displayName=tw.displayName;/*! *****************************************************************************-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 M_=function(e,t){return M_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},M_(e,t)};function Mt(e,t){M_(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var lr=function(){return lr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},lr.apply(this,arguments)};function N_e(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function wr(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})}function Sr(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function $r(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}var _p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hm=new Uint8Array(256);for(var Wx=0;Wx<_p.length;Wx++)Hm[_p.charCodeAt(Wx)]=Wx;var F_e=function(e){for(var t="",n=e.length,r=0;r<n;r+=3)t+=_p[e[r]>>2],t+=_p[(e[r]&3)<<4|e[r+1]>>4],t+=_p[(e[r+1]&15)<<2|e[r+2]>>6],t+=_p[e[r+2]&63];return n%3===2?t=t.substring(0,t.length-1)+"=":n%3===1&&(t=t.substring(0,t.length-2)+"=="),t},O6=function(e){var t=e.length*.75,n=e.length,r,i=0,a,o,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=new Uint8Array(t);for(r=0;r<n;r+=4)a=Hm[e.charCodeAt(r)],o=Hm[e.charCodeAt(r+1)],s=Hm[e.charCodeAt(r+2)],l=Hm[e.charCodeAt(r+3)],c[i++]=a<<2|o>>4,c[i++]=(o&15)<<4|s>>2,c[i++]=(s&3)<<6|l&63;return c},R_e=/^(data)?:?([\w\/\+]+)?;?(charset=[\w-]+|base64)?.*,/i,P_e=function(e){var t=e.trim(),n=t.substring(0,100),r=n.match(R_e);if(!r)return O6(t);var i=r[0],a=t.substring(i.length);return O6(a)},ar=function(e){return e.charCodeAt(0)},I_e=function(e){return e.codePointAt(0)},Ry=function(e,t){return Nl(e.toString(16),t,"0").toUpperCase()},s2=function(e){return Ry(e,2)},Vc=function(e){return String.fromCharCode(e)},M_e=function(e){return Vc(parseInt(e,16))},Nl=function(e,t,n){for(var r="",i=0,a=t-e.length;i<a;i++)r+=n;return r+e},Ja=function(e,t,n){for(var r=e.length,i=0;i<r;i++)t[n++]=e.charCodeAt(i);return r},U_e=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},Py=function(e){return e.replace(/\t|\u0085|\u2028|\u2029/g," ").replace(/[\b\v]/g,"")},L_e=["\\n","\\f","\\r","\\u000B"],QZ=function(e){return/^[\n\f\r\u000B]$/.test(e)},eK=function(e){return e.split(/[\n\f\r\u000B]/)},tK=function(e){return e.replace(/[\n\f\r\u000B]/g," ")},nK=function(e,t){var n=e.charCodeAt(t),r,i=t+1,a=1;return n>=55296&&n<=56319&&e.length>i&&(r=e.charCodeAt(i),r>=56320&&r<=57343&&(a=2)),[e.slice(t,t+a),a]},O_e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=nK(e,n),a=i[0],o=i[1];t.push(a),n+=o}return t},j_e=function(e){for(var t=L_e.join("|"),n=["$"],r=0,i=e.length;r<i;r++){var a=e[r];if(QZ(a))throw new TypeError("`wordBreak` must not include "+t);n.push(a===""?".":U_e(a))}var o=n.join("|");return new RegExp("("+t+")|((.*?)("+o+"))","gm")},B_e=function(e,t,n,r){for(var i=j_e(t),a=Py(e).match(i),o="",s=0,l=[],c=function(){o!==""&&l.push(o),o="",s=0},u=0,d=a.length;u<d;u++){var h=a[u];if(QZ(h))c();else{var f=r(h);s+f>n&&c(),o+=h,s+=f}}return c(),l},z_e=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,rK=function(e){var t=e.match(z_e);if(t){var n=t[1],r=t[2],i=r===void 0?"01":r,a=t[3],o=a===void 0?"01":a,s=t[4],l=s===void 0?"00":s,c=t[5],u=c===void 0?"00":c,d=t[6],h=d===void 0?"00":d,f=t[7],g=f===void 0?"Z":f,y=t[8],v=y===void 0?"00":y,A=t[9],w=A===void 0?"00":A,S=g==="Z"?"Z":""+g+v+":"+w,_=new Date(n+"-"+i+"-"+o+"T"+l+":"+u+":"+h+S);return _}},PF=function(e,t){for(var n,r=0,i;r<e.length;){var a=e.substring(r).match(t);if(!a)return{match:i,pos:r};i=a,r+=((n=a.index)!==null&&n!==void 0?n:0)+a[0].length}return{match:i,pos:r}},rA=function(e){return e[e.length-1]},U_=function(e){if(e instanceof Uint8Array)return e;for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n},W_e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.length,r=[],i=0;i<n;i++){var a=e[i];r[i]=a instanceof Uint8Array?a:U_(a)}for(var o=0,i=0;i<n;i++)o+=e[i].length;for(var s=new Uint8Array(o),l=0,c=0;c<n;c++)for(var u=r[c],d=0,h=u.length;d<h;d++)s[l++]=u[d];return s},V_e=function(e){for(var t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;for(var i=new Uint8Array(t),a=0,n=0,r=e.length;n<r;n++){var o=e[n];i.set(o,a),a+=o.length}return i},iK=function(e){for(var t="",n=0,r=e.length;n<r;n++)t+=Vc(e[n]);return t},G_e=function(e,t){return e.id-t.id},q_e=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var a=e[r],o=e[r-1];(r===0||t(a)!==t(o))&&n.push(a)}return n},Kh=function(e){for(var t=e.length,n=0,r=Math.floor(t/2);n<r;n++){var i=n,a=t-n-1,o=e[n];e[i]=e[a],e[a]=o}return e},H_e=function(e){for(var t=0,n=0,r=e.length;n<r;n++)t+=e[n];return t},X_e=function(e,t){for(var n=new Array(t-e),r=0,i=n.length;r<i;r++)n[r]=e+r;return n},Z_e=function(e,t){for(var n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=e[t[r]];return n},K_e=function(e){return e instanceof Uint8Array||e instanceof ArrayBuffer||typeof e=="string"},Tm=function(e){if(typeof e=="string")return P_e(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(e instanceof Uint8Array)return e;throw new TypeError("`input` must be one of `string | ArrayBuffer | Uint8Array`")},lg=function(){return new Promise(function(e){setTimeout(function(){return e()},0)})},$_e=function(e,t){t===void 0&&(t=!0);var n=[];t&&n.push(65279);for(var r=0,i=e.length;r<i;){var a=e.codePointAt(r);if(a<65536)n.push(a),r+=1;else if(a<1114112)n.push(aK(a),oK(a)),r+=2;else throw new Error("Invalid code point: 0x"+s2(a))}return new Uint16Array(n)},Y_e=function(e){return e>=0&&e<=65535},J_e=function(e){return e>=65536&&e<=1114111},aK=function(e){return Math.floor((e-65536)/1024)+55296},oK=function(e){return(e-65536)%1024+56320},Xu;(function(e){e.BigEndian="BigEndian",e.LittleEndian="LittleEndian"})(Xu||(Xu={}));var _m="�".codePointAt(0),sK=function(e,t){if(t===void 0&&(t=!0),e.length<=1)return String.fromCodePoint(_m);for(var n=t?eEe(e):Xu.BigEndian,r=t?2:0,i=[];e.length-r>=2;){var a=B6(e[r++],e[r++],n);if(Q_e(a))if(e.length-r<2)i.push(_m);else{var o=B6(e[r++],e[r++],n);j6(o)?i.push(a,o):i.push(_m)}else j6(a)?(r+=2,i.push(_m)):i.push(a)}return r<e.length&&i.push(_m),String.fromCodePoint.apply(String,i)},Q_e=function(e){return e>=55296&&e<=56319},j6=function(e){return e>=56320&&e<=57343},B6=function(e,t,n){if(n===Xu.LittleEndian)return t<<8|e;if(n===Xu.BigEndian)return e<<8|t;throw new Error("Invalid byteOrder: "+n)},eEe=function(e){return lK(e)?Xu.BigEndian:cK(e)?Xu.LittleEndian:Xu.BigEndian},lK=function(e){return e[0]===254&&e[1]===255},cK=function(e){return e[0]===255&&e[1]===254},uK=function(e){return lK(e)||cK(e)},tEe=function(e){var t=String(e);if(Math.abs(e)<1){var n=parseInt(e.toString().split("e-")[1]);if(n){var r=e<0;r&&(e*=-1),e*=Math.pow(10,n-1),t="0."+new Array(n).join("0")+e.toString().substring(2),r&&(t="-"+t)}}else{var n=parseInt(e.toString().split("+")[1]);n>20&&(n-=20,e/=Math.pow(10,n),t=e.toString()+new Array(n+1).join("0"))}return t},Qb=function(e){return Math.ceil(e.toString(2).length/8)},$h=function(e){for(var t=new Uint8Array(Qb(e)),n=1;n<=t.length;n++)t[n-1]=e>>(t.length-n)*8;return t},Iy=function(e){throw new Error(e)},sC={},z6;function kd(){return z6||(z6=1,(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function n(a,o){return Object.prototype.hasOwnProperty.call(a,o)}e.assign=function(a){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var s=o.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var l in s)n(s,l)&&(a[l]=s[l])}}return a},e.shrinkBuf=function(a,o){return a.length===o?a:a.subarray?a.subarray(0,o):(a.length=o,a)};var r={arraySet:function(a,o,s,l,c){if(o.subarray&&a.subarray){a.set(o.subarray(s,s+l),c);return}for(var u=0;u<l;u++)a[c+u]=o[s+u]},flattenChunks:function(a){var o,s,l,c,u,d;for(l=0,o=0,s=a.length;o<s;o++)l+=a[o].length;for(d=new Uint8Array(l),c=0,o=0,s=a.length;o<s;o++)u=a[o],d.set(u,c),c+=u.length;return d}},i={arraySet:function(a,o,s,l,c){for(var u=0;u<l;u++)a[c+u]=o[s+u]},flattenChunks:function(a){return[].concat.apply([],a)}};e.setTyped=function(a){a?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)})(sC)),sC}var Yh={},Al={},af={},W6;function nEe(){if(W6)return af;W6=1;var e=kd(),t=4,n=0,r=1,i=2;function a(U){for(var Ae=U.length;--Ae>=0;)U[Ae]=0}var o=0,s=1,l=2,c=3,u=258,d=29,h=256,f=h+1+d,g=30,y=19,v=2*f+1,A=15,w=16,S=7,_=256,E=16,T=17,D=18,I=[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],j=[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],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=512,W=new Array((f+2)*2);a(W);var P=new Array(g*2);a(P);var Z=new Array(B);a(Z);var Q=new Array(u-c+1);a(Q);var X=new Array(d);a(X);var q=new Array(g);a(q);function te(U,Ae,se,Te,$){this.static_tree=U,this.extra_bits=Ae,this.extra_base=se,this.elems=Te,this.max_length=$,this.has_stree=U&&U.length}var J,ee,le;function G(U,Ae){this.dyn_tree=U,this.max_code=0,this.stat_desc=Ae}function xe(U){return U<256?Z[U]:Z[256+(U>>>7)]}function ge(U,Ae){U.pending_buf[U.pending++]=Ae&255,U.pending_buf[U.pending++]=Ae>>>8&255}function ue(U,Ae,se){U.bi_valid>w-se?(U.bi_buf|=Ae<<U.bi_valid&65535,ge(U,U.bi_buf),U.bi_buf=Ae>>w-U.bi_valid,U.bi_valid+=se-w):(U.bi_buf|=Ae<<U.bi_valid&65535,U.bi_valid+=se)}function ce(U,Ae,se){ue(U,se[Ae*2],se[Ae*2+1])}function ye(U,Ae){var se=0;do se|=U&1,U>>>=1,se<<=1;while(--Ae>0);return se>>>1}function Fe(U){U.bi_valid===16?(ge(U,U.bi_buf),U.bi_buf=0,U.bi_valid=0):U.bi_valid>=8&&(U.pending_buf[U.pending++]=U.bi_buf&255,U.bi_buf>>=8,U.bi_valid-=8)}function Oe(U,Ae){var se=Ae.dyn_tree,Te=Ae.max_code,$=Ae.stat_desc.static_tree,de=Ae.stat_desc.has_stree,F=Ae.stat_desc.extra_bits,De=Ae.stat_desc.extra_base,He=Ae.stat_desc.max_length,b,ae,M,k,O,H,Ne=0;for(k=0;k<=A;k++)U.bl_count[k]=0;for(se[U.heap[U.heap_max]*2+1]=0,b=U.heap_max+1;b<v;b++)ae=U.heap[b],k=se[se[ae*2+1]*2+1]+1,k>He&&(k=He,Ne++),se[ae*2+1]=k,!(ae>Te)&&(U.bl_count[k]++,O=0,ae>=De&&(O=F[ae-De]),H=se[ae*2],U.opt_len+=H*(k+O),de&&(U.static_len+=H*($[ae*2+1]+O)));if(Ne!==0){do{for(k=He-1;U.bl_count[k]===0;)k--;U.bl_count[k]--,U.bl_count[k+1]+=2,U.bl_count[He]--,Ne-=2}while(Ne>0);for(k=He;k!==0;k--)for(ae=U.bl_count[k];ae!==0;)M=U.heap[--b],!(M>Te)&&(se[M*2+1]!==k&&(U.opt_len+=(k-se[M*2+1])*se[M*2],se[M*2+1]=k),ae--)}}function Le(U,Ae,se){var Te=new Array(A+1),$=0,de,F;for(de=1;de<=A;de++)Te[de]=$=$+se[de-1]<<1;for(F=0;F<=Ae;F++){var De=U[F*2+1];De!==0&&(U[F*2]=ye(Te[De]++,De))}}function Re(){var U,Ae,se,Te,$,de=new Array(A+1);for(se=0,Te=0;Te<d-1;Te++)for(X[Te]=se,U=0;U<1<<I[Te];U++)Q[se++]=Te;for(Q[se-1]=Te,$=0,Te=0;Te<16;Te++)for(q[Te]=$,U=0;U<1<<j[Te];U++)Z[$++]=Te;for($>>=7;Te<g;Te++)for(q[Te]=$<<7,U=0;U<1<<j[Te]-7;U++)Z[256+$++]=Te;for(Ae=0;Ae<=A;Ae++)de[Ae]=0;for(U=0;U<=143;)W[U*2+1]=8,U++,de[8]++;for(;U<=255;)W[U*2+1]=9,U++,de[9]++;for(;U<=279;)W[U*2+1]=7,U++,de[7]++;for(;U<=287;)W[U*2+1]=8,U++,de[8]++;for(Le(W,f+1,de),U=0;U<g;U++)P[U*2+1]=5,P[U*2]=ye(U,5);J=new te(W,I,h+1,f,A),ee=new te(P,j,0,g,A),le=new te(new Array(0),R,0,y,S)}function We(U){var Ae;for(Ae=0;Ae<f;Ae++)U.dyn_ltree[Ae*2]=0;for(Ae=0;Ae<g;Ae++)U.dyn_dtree[Ae*2]=0;for(Ae=0;Ae<y;Ae++)U.bl_tree[Ae*2]=0;U.dyn_ltree[_*2]=1,U.opt_len=U.static_len=0,U.last_lit=U.matches=0}function V(U){U.bi_valid>8?ge(U,U.bi_buf):U.bi_valid>0&&(U.pending_buf[U.pending++]=U.bi_buf),U.bi_buf=0,U.bi_valid=0}function ve(U,Ae,se,Te){V(U),ge(U,se),ge(U,~se),e.arraySet(U.pending_buf,U.window,Ae,se,U.pending),U.pending+=se}function oe(U,Ae,se,Te){var $=Ae*2,de=se*2;return U[$]<U[de]||U[$]===U[de]&&Te[Ae]<=Te[se]}function re(U,Ae,se){for(var Te=U.heap[se],$=se<<1;$<=U.heap_len&&($<U.heap_len&&oe(Ae,U.heap[$+1],U.heap[$],U.depth)&&$++,!oe(Ae,Te,U.heap[$],U.depth));)U.heap[se]=U.heap[$],se=$,$<<=1;U.heap[se]=Te}function ne(U,Ae,se){var Te,$,de=0,F,De;if(U.last_lit!==0)do Te=U.pending_buf[U.d_buf+de*2]<<8|U.pending_buf[U.d_buf+de*2+1],$=U.pending_buf[U.l_buf+de],de++,Te===0?ce(U,$,Ae):(F=Q[$],ce(U,F+h+1,Ae),De=I[F],De!==0&&($-=X[F],ue(U,$,De)),Te--,F=xe(Te),ce(U,F,se),De=j[F],De!==0&&(Te-=q[F],ue(U,Te,De)));while(de<U.last_lit);ce(U,_,Ae)}function be(U,Ae){var se=Ae.dyn_tree,Te=Ae.stat_desc.static_tree,$=Ae.stat_desc.has_stree,de=Ae.stat_desc.elems,F,De,He=-1,b;for(U.heap_len=0,U.heap_max=v,F=0;F<de;F++)se[F*2]!==0?(U.heap[++U.heap_len]=He=F,U.depth[F]=0):se[F*2+1]=0;for(;U.heap_len<2;)b=U.heap[++U.heap_len]=He<2?++He:0,se[b*2]=1,U.depth[b]=0,U.opt_len--,$&&(U.static_len-=Te[b*2+1]);for(Ae.max_code=He,F=U.heap_len>>1;F>=1;F--)re(U,se,F);b=de;do F=U.heap[1],U.heap[1]=U.heap[U.heap_len--],re(U,se,1),De=U.heap[1],U.heap[--U.heap_max]=F,U.heap[--U.heap_max]=De,se[b*2]=se[F*2]+se[De*2],U.depth[b]=(U.depth[F]>=U.depth[De]?U.depth[F]:U.depth[De])+1,se[F*2+1]=se[De*2+1]=b,U.heap[1]=b++,re(U,se,1);while(U.heap_len>=2);U.heap[--U.heap_max]=U.heap[1],Oe(U,Ae),Le(se,He,U.bl_count)}function Ue(U,Ae,se){var Te,$=-1,de,F=Ae[1],De=0,He=7,b=4;for(F===0&&(He=138,b=3),Ae[(se+1)*2+1]=65535,Te=0;Te<=se;Te++)de=F,F=Ae[(Te+1)*2+1],!(++De<He&&de===F)&&(De<b?U.bl_tree[de*2]+=De:de!==0?(de!==$&&U.bl_tree[de*2]++,U.bl_tree[E*2]++):De<=10?U.bl_tree[T*2]++:U.bl_tree[D*2]++,De=0,$=de,F===0?(He=138,b=3):de===F?(He=6,b=3):(He=7,b=4))}function Me(U,Ae,se){var Te,$=-1,de,F=Ae[1],De=0,He=7,b=4;for(F===0&&(He=138,b=3),Te=0;Te<=se;Te++)if(de=F,F=Ae[(Te+1)*2+1],!(++De<He&&de===F)){if(De<b)do ce(U,de,U.bl_tree);while(--De!==0);else de!==0?(de!==$&&(ce(U,de,U.bl_tree),De--),ce(U,E,U.bl_tree),ue(U,De-3,2)):De<=10?(ce(U,T,U.bl_tree),ue(U,De-3,3)):(ce(U,D,U.bl_tree),ue(U,De-11,7));De=0,$=de,F===0?(He=138,b=3):de===F?(He=6,b=3):(He=7,b=4)}}function Ee(U){var Ae;for(Ue(U,U.dyn_ltree,U.l_desc.max_code),Ue(U,U.dyn_dtree,U.d_desc.max_code),be(U,U.bl_desc),Ae=y-1;Ae>=3&&U.bl_tree[z[Ae]*2+1]===0;Ae--);return U.opt_len+=3*(Ae+1)+5+5+4,Ae}function Se(U,Ae,se,Te){var $;for(ue(U,Ae-257,5),ue(U,se-1,5),ue(U,Te-4,4),$=0;$<Te;$++)ue(U,U.bl_tree[z[$]*2+1],3);Me(U,U.dyn_ltree,Ae-1),Me(U,U.dyn_dtree,se-1)}function Ce(U){var Ae=4093624447,se;for(se=0;se<=31;se++,Ae>>>=1)if(Ae&1&&U.dyn_ltree[se*2]!==0)return n;if(U.dyn_ltree[18]!==0||U.dyn_ltree[20]!==0||U.dyn_ltree[26]!==0)return r;for(se=32;se<h;se++)if(U.dyn_ltree[se*2]!==0)return r;return n}var pe=!1;function ke(U){pe||(Re(),pe=!0),U.l_desc=new G(U.dyn_ltree,J),U.d_desc=new G(U.dyn_dtree,ee),U.bl_desc=new G(U.bl_tree,le),U.bi_buf=0,U.bi_valid=0,We(U)}function Ve(U,Ae,se,Te){ue(U,(o<<1)+(Te?1:0),3),ve(U,Ae,se)}function Xe(U){ue(U,s<<1,3),ce(U,_,W),Fe(U)}function it(U,Ae,se,Te){var $,de,F=0;U.level>0?(U.strm.data_type===i&&(U.strm.data_type=Ce(U)),be(U,U.l_desc),be(U,U.d_desc),F=Ee(U),$=U.opt_len+3+7>>>3,de=U.static_len+3+7>>>3,de<=$&&($=de)):$=de=se+5,se+4<=$&&Ae!==-1?Ve(U,Ae,se,Te):U.strategy===t||de===$?(ue(U,(s<<1)+(Te?1:0),3),ne(U,W,P)):(ue(U,(l<<1)+(Te?1:0),3),Se(U,U.l_desc.max_code+1,U.d_desc.max_code+1,F+1),ne(U,U.dyn_ltree,U.dyn_dtree)),We(U),Te&&V(U)}function et(U,Ae,se){return U.pending_buf[U.d_buf+U.last_lit*2]=Ae>>>8&255,U.pending_buf[U.d_buf+U.last_lit*2+1]=Ae&255,U.pending_buf[U.l_buf+U.last_lit]=se&255,U.last_lit++,Ae===0?U.dyn_ltree[se*2]++:(U.matches++,Ae--,U.dyn_ltree[(Q[se]+h+1)*2]++,U.dyn_dtree[xe(Ae)*2]++),U.last_lit===U.lit_bufsize-1}return af._tr_init=ke,af._tr_stored_block=Ve,af._tr_flush_block=it,af._tr_tally=et,af._tr_align=Xe,af}var lC,V6;function dK(){if(V6)return lC;V6=1;function e(t,n,r,i){for(var a=t&65535|0,o=t>>>16&65535|0,s=0;r!==0;){s=r>2e3?2e3:r,r-=s;do a=a+n[i++]|0,o=o+a|0;while(--s);a%=65521,o%=65521}return a|o<<16|0}return lC=e,lC}var cC,G6;function fK(){if(G6)return cC;G6=1;function e(){for(var r,i=[],a=0;a<256;a++){r=a;for(var o=0;o<8;o++)r=r&1?3988292384^r>>>1:r>>>1;i[a]=r}return i}var t=e();function n(r,i,a,o){var s=t,l=o+a;r^=-1;for(var c=o;c<l;c++)r=r>>>8^s[(r^i[c])&255];return r^-1}return cC=n,cC}var uC,q6;function IF(){return q6||(q6=1,uC={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"}),uC}var H6;function rEe(){if(H6)return Al;H6=1;var e=kd(),t=nEe(),n=dK(),r=fK(),i=IF(),a=0,o=1,s=3,l=4,c=5,u=0,d=1,h=-2,f=-3,g=-5,y=-1,v=1,A=2,w=3,S=4,_=0,E=2,T=8,D=9,I=15,j=8,R=29,z=256,B=z+1+R,W=30,P=19,Z=2*B+1,Q=15,X=3,q=258,te=q+X+1,J=32,ee=42,le=69,G=73,xe=91,ge=103,ue=113,ce=666,ye=1,Fe=2,Oe=3,Le=4,Re=3;function We(b,ae){return b.msg=i[ae],ae}function V(b){return(b<<1)-(b>4?9:0)}function ve(b){for(var ae=b.length;--ae>=0;)b[ae]=0}function oe(b){var ae=b.state,M=ae.pending;M>b.avail_out&&(M=b.avail_out),M!==0&&(e.arraySet(b.output,ae.pending_buf,ae.pending_out,M,b.next_out),b.next_out+=M,ae.pending_out+=M,b.total_out+=M,b.avail_out-=M,ae.pending-=M,ae.pending===0&&(ae.pending_out=0))}function re(b,ae){t._tr_flush_block(b,b.block_start>=0?b.block_start:-1,b.strstart-b.block_start,ae),b.block_start=b.strstart,oe(b.strm)}function ne(b,ae){b.pending_buf[b.pending++]=ae}function be(b,ae){b.pending_buf[b.pending++]=ae>>>8&255,b.pending_buf[b.pending++]=ae&255}function Ue(b,ae,M,k){var O=b.avail_in;return O>k&&(O=k),O===0?0:(b.avail_in-=O,e.arraySet(ae,b.input,b.next_in,O,M),b.state.wrap===1?b.adler=n(b.adler,ae,O,M):b.state.wrap===2&&(b.adler=r(b.adler,ae,O,M)),b.next_in+=O,b.total_in+=O,O)}function Me(b,ae){var M=b.max_chain_length,k=b.strstart,O,H,Ne=b.prev_length,_e=b.nice_match,Pe=b.strstart>b.w_size-te?b.strstart-(b.w_size-te):0,Ze=b.window,ut=b.w_mask,st=b.prev,Je=b.strstart+q,pt=Ze[k+Ne-1],xt=Ze[k+Ne];b.prev_length>=b.good_match&&(M>>=2),_e>b.lookahead&&(_e=b.lookahead);do if(O=ae,!(Ze[O+Ne]!==xt||Ze[O+Ne-1]!==pt||Ze[O]!==Ze[k]||Ze[++O]!==Ze[k+1])){k+=2,O++;do;while(Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&k<Je);if(H=q-(Je-k),k=Je-q,H>Ne){if(b.match_start=ae,Ne=H,H>=_e)break;pt=Ze[k+Ne-1],xt=Ze[k+Ne]}}while((ae=st[ae&ut])>Pe&&--M!==0);return Ne<=b.lookahead?Ne:b.lookahead}function Ee(b){var ae=b.w_size,M,k,O,H,Ne;do{if(H=b.window_size-b.lookahead-b.strstart,b.strstart>=ae+(ae-te)){e.arraySet(b.window,b.window,ae,ae,0),b.match_start-=ae,b.strstart-=ae,b.block_start-=ae,k=b.hash_size,M=k;do O=b.head[--M],b.head[M]=O>=ae?O-ae:0;while(--k);k=ae,M=k;do O=b.prev[--M],b.prev[M]=O>=ae?O-ae:0;while(--k);H+=ae}if(b.strm.avail_in===0)break;if(k=Ue(b.strm,b.window,b.strstart+b.lookahead,H),b.lookahead+=k,b.lookahead+b.insert>=X)for(Ne=b.strstart-b.insert,b.ins_h=b.window[Ne],b.ins_h=(b.ins_h<<b.hash_shift^b.window[Ne+1])&b.hash_mask;b.insert&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[Ne+X-1])&b.hash_mask,b.prev[Ne&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=Ne,Ne++,b.insert--,!(b.lookahead+b.insert<X)););}while(b.lookahead<te&&b.strm.avail_in!==0)}function Se(b,ae){var M=65535;for(M>b.pending_buf_size-5&&(M=b.pending_buf_size-5);;){if(b.lookahead<=1){if(Ee(b),b.lookahead===0&&ae===a)return ye;if(b.lookahead===0)break}b.strstart+=b.lookahead,b.lookahead=0;var k=b.block_start+M;if((b.strstart===0||b.strstart>=k)&&(b.lookahead=b.strstart-k,b.strstart=k,re(b,!1),b.strm.avail_out===0)||b.strstart-b.block_start>=b.w_size-te&&(re(b,!1),b.strm.avail_out===0))return ye}return b.insert=0,ae===l?(re(b,!0),b.strm.avail_out===0?Oe:Le):(b.strstart>b.block_start&&(re(b,!1),b.strm.avail_out===0),ye)}function Ce(b,ae){for(var M,k;;){if(b.lookahead<te){if(Ee(b),b.lookahead<te&&ae===a)return ye;if(b.lookahead===0)break}if(M=0,b.lookahead>=X&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+X-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),M!==0&&b.strstart-M<=b.w_size-te&&(b.match_length=Me(b,M)),b.match_length>=X)if(k=t._tr_tally(b,b.strstart-b.match_start,b.match_length-X),b.lookahead-=b.match_length,b.match_length<=b.max_lazy_match&&b.lookahead>=X){b.match_length--;do b.strstart++,b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+X-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart;while(--b.match_length!==0);b.strstart++}else b.strstart+=b.match_length,b.match_length=0,b.ins_h=b.window[b.strstart],b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+1])&b.hash_mask;else k=t._tr_tally(b,0,b.window[b.strstart]),b.lookahead--,b.strstart++;if(k&&(re(b,!1),b.strm.avail_out===0))return ye}return b.insert=b.strstart<X-1?b.strstart:X-1,ae===l?(re(b,!0),b.strm.avail_out===0?Oe:Le):b.last_lit&&(re(b,!1),b.strm.avail_out===0)?ye:Fe}function pe(b,ae){for(var M,k,O;;){if(b.lookahead<te){if(Ee(b),b.lookahead<te&&ae===a)return ye;if(b.lookahead===0)break}if(M=0,b.lookahead>=X&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+X-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),b.prev_length=b.match_length,b.prev_match=b.match_start,b.match_length=X-1,M!==0&&b.prev_length<b.max_lazy_match&&b.strstart-M<=b.w_size-te&&(b.match_length=Me(b,M),b.match_length<=5&&(b.strategy===v||b.match_length===X&&b.strstart-b.match_start>4096)&&(b.match_length=X-1)),b.prev_length>=X&&b.match_length<=b.prev_length){O=b.strstart+b.lookahead-X,k=t._tr_tally(b,b.strstart-1-b.prev_match,b.prev_length-X),b.lookahead-=b.prev_length-1,b.prev_length-=2;do++b.strstart<=O&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+X-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart);while(--b.prev_length!==0);if(b.match_available=0,b.match_length=X-1,b.strstart++,k&&(re(b,!1),b.strm.avail_out===0))return ye}else if(b.match_available){if(k=t._tr_tally(b,0,b.window[b.strstart-1]),k&&re(b,!1),b.strstart++,b.lookahead--,b.strm.avail_out===0)return ye}else b.match_available=1,b.strstart++,b.lookahead--}return b.match_available&&(k=t._tr_tally(b,0,b.window[b.strstart-1]),b.match_available=0),b.insert=b.strstart<X-1?b.strstart:X-1,ae===l?(re(b,!0),b.strm.avail_out===0?Oe:Le):b.last_lit&&(re(b,!1),b.strm.avail_out===0)?ye:Fe}function ke(b,ae){for(var M,k,O,H,Ne=b.window;;){if(b.lookahead<=q){if(Ee(b),b.lookahead<=q&&ae===a)return ye;if(b.lookahead===0)break}if(b.match_length=0,b.lookahead>=X&&b.strstart>0&&(O=b.strstart-1,k=Ne[O],k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O])){H=b.strstart+q;do;while(k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&O<H);b.match_length=q-(H-O),b.match_length>b.lookahead&&(b.match_length=b.lookahead)}if(b.match_length>=X?(M=t._tr_tally(b,1,b.match_length-X),b.lookahead-=b.match_length,b.strstart+=b.match_length,b.match_length=0):(M=t._tr_tally(b,0,b.window[b.strstart]),b.lookahead--,b.strstart++),M&&(re(b,!1),b.strm.avail_out===0))return ye}return b.insert=0,ae===l?(re(b,!0),b.strm.avail_out===0?Oe:Le):b.last_lit&&(re(b,!1),b.strm.avail_out===0)?ye:Fe}function Ve(b,ae){for(var M;;){if(b.lookahead===0&&(Ee(b),b.lookahead===0)){if(ae===a)return ye;break}if(b.match_length=0,M=t._tr_tally(b,0,b.window[b.strstart]),b.lookahead--,b.strstart++,M&&(re(b,!1),b.strm.avail_out===0))return ye}return b.insert=0,ae===l?(re(b,!0),b.strm.avail_out===0?Oe:Le):b.last_lit&&(re(b,!1),b.strm.avail_out===0)?ye:Fe}function Xe(b,ae,M,k,O){this.good_length=b,this.max_lazy=ae,this.nice_length=M,this.max_chain=k,this.func=O}var it;it=[new Xe(0,0,0,0,Se),new Xe(4,4,8,4,Ce),new Xe(4,5,16,8,Ce),new Xe(4,6,32,32,Ce),new Xe(4,4,16,16,pe),new Xe(8,16,32,32,pe),new Xe(8,16,128,128,pe),new Xe(8,32,128,256,pe),new Xe(32,128,258,1024,pe),new Xe(32,258,258,4096,pe)];function et(b){b.window_size=2*b.w_size,ve(b.head),b.max_lazy_match=it[b.level].max_lazy,b.good_match=it[b.level].good_length,b.nice_match=it[b.level].nice_length,b.max_chain_length=it[b.level].max_chain,b.strstart=0,b.block_start=0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=X-1,b.match_available=0,b.ins_h=0}function U(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=T,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(Z*2),this.dyn_dtree=new e.Buf16((2*W+1)*2),this.bl_tree=new e.Buf16((2*P+1)*2),ve(this.dyn_ltree),ve(this.dyn_dtree),ve(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(Q+1),this.heap=new e.Buf16(2*B+1),ve(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*B+1),ve(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ae(b){var ae;return!b||!b.state?We(b,h):(b.total_in=b.total_out=0,b.data_type=E,ae=b.state,ae.pending=0,ae.pending_out=0,ae.wrap<0&&(ae.wrap=-ae.wrap),ae.status=ae.wrap?ee:ue,b.adler=ae.wrap===2?0:1,ae.last_flush=a,t._tr_init(ae),u)}function se(b){var ae=Ae(b);return ae===u&&et(b.state),ae}function Te(b,ae){return!b||!b.state||b.state.wrap!==2?h:(b.state.gzhead=ae,u)}function $(b,ae,M,k,O,H){if(!b)return h;var Ne=1;if(ae===y&&(ae=6),k<0?(Ne=0,k=-k):k>15&&(Ne=2,k-=16),O<1||O>D||M!==T||k<8||k>15||ae<0||ae>9||H<0||H>S)return We(b,h);k===8&&(k=9);var _e=new U;return b.state=_e,_e.strm=b,_e.wrap=Ne,_e.gzhead=null,_e.w_bits=k,_e.w_size=1<<_e.w_bits,_e.w_mask=_e.w_size-1,_e.hash_bits=O+7,_e.hash_size=1<<_e.hash_bits,_e.hash_mask=_e.hash_size-1,_e.hash_shift=~~((_e.hash_bits+X-1)/X),_e.window=new e.Buf8(_e.w_size*2),_e.head=new e.Buf16(_e.hash_size),_e.prev=new e.Buf16(_e.w_size),_e.lit_bufsize=1<<O+6,_e.pending_buf_size=_e.lit_bufsize*4,_e.pending_buf=new e.Buf8(_e.pending_buf_size),_e.d_buf=1*_e.lit_bufsize,_e.l_buf=3*_e.lit_bufsize,_e.level=ae,_e.strategy=H,_e.method=M,se(b)}function de(b,ae){return $(b,ae,T,I,j,_)}function F(b,ae){var M,k,O,H;if(!b||!b.state||ae>c||ae<0)return b?We(b,h):h;if(k=b.state,!b.output||!b.input&&b.avail_in!==0||k.status===ce&&ae!==l)return We(b,b.avail_out===0?g:h);if(k.strm=b,M=k.last_flush,k.last_flush=ae,k.status===ee)if(k.wrap===2)b.adler=0,ne(k,31),ne(k,139),ne(k,8),k.gzhead?(ne(k,(k.gzhead.text?1:0)+(k.gzhead.hcrc?2:0)+(k.gzhead.extra?4:0)+(k.gzhead.name?8:0)+(k.gzhead.comment?16:0)),ne(k,k.gzhead.time&255),ne(k,k.gzhead.time>>8&255),ne(k,k.gzhead.time>>16&255),ne(k,k.gzhead.time>>24&255),ne(k,k.level===9?2:k.strategy>=A||k.level<2?4:0),ne(k,k.gzhead.os&255),k.gzhead.extra&&k.gzhead.extra.length&&(ne(k,k.gzhead.extra.length&255),ne(k,k.gzhead.extra.length>>8&255)),k.gzhead.hcrc&&(b.adler=r(b.adler,k.pending_buf,k.pending,0)),k.gzindex=0,k.status=le):(ne(k,0),ne(k,0),ne(k,0),ne(k,0),ne(k,0),ne(k,k.level===9?2:k.strategy>=A||k.level<2?4:0),ne(k,Re),k.status=ue);else{var Ne=T+(k.w_bits-8<<4)<<8,_e=-1;k.strategy>=A||k.level<2?_e=0:k.level<6?_e=1:k.level===6?_e=2:_e=3,Ne|=_e<<6,k.strstart!==0&&(Ne|=J),Ne+=31-Ne%31,k.status=ue,be(k,Ne),k.strstart!==0&&(be(k,b.adler>>>16),be(k,b.adler&65535)),b.adler=1}if(k.status===le)if(k.gzhead.extra){for(O=k.pending;k.gzindex<(k.gzhead.extra.length&65535)&&!(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),oe(b),O=k.pending,k.pending===k.pending_buf_size));)ne(k,k.gzhead.extra[k.gzindex]&255),k.gzindex++;k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),k.gzindex===k.gzhead.extra.length&&(k.gzindex=0,k.status=G)}else k.status=G;if(k.status===G)if(k.gzhead.name){O=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),oe(b),O=k.pending,k.pending===k.pending_buf_size)){H=1;break}k.gzindex<k.gzhead.name.length?H=k.gzhead.name.charCodeAt(k.gzindex++)&255:H=0,ne(k,H)}while(H!==0);k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),H===0&&(k.gzindex=0,k.status=xe)}else k.status=xe;if(k.status===xe)if(k.gzhead.comment){O=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),oe(b),O=k.pending,k.pending===k.pending_buf_size)){H=1;break}k.gzindex<k.gzhead.comment.length?H=k.gzhead.comment.charCodeAt(k.gzindex++)&255:H=0,ne(k,H)}while(H!==0);k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),H===0&&(k.status=ge)}else k.status=ge;if(k.status===ge&&(k.gzhead.hcrc?(k.pending+2>k.pending_buf_size&&oe(b),k.pending+2<=k.pending_buf_size&&(ne(k,b.adler&255),ne(k,b.adler>>8&255),b.adler=0,k.status=ue)):k.status=ue),k.pending!==0){if(oe(b),b.avail_out===0)return k.last_flush=-1,u}else if(b.avail_in===0&&V(ae)<=V(M)&&ae!==l)return We(b,g);if(k.status===ce&&b.avail_in!==0)return We(b,g);if(b.avail_in!==0||k.lookahead!==0||ae!==a&&k.status!==ce){var Pe=k.strategy===A?Ve(k,ae):k.strategy===w?ke(k,ae):it[k.level].func(k,ae);if((Pe===Oe||Pe===Le)&&(k.status=ce),Pe===ye||Pe===Oe)return b.avail_out===0&&(k.last_flush=-1),u;if(Pe===Fe&&(ae===o?t._tr_align(k):ae!==c&&(t._tr_stored_block(k,0,0,!1),ae===s&&(ve(k.head),k.lookahead===0&&(k.strstart=0,k.block_start=0,k.insert=0))),oe(b),b.avail_out===0))return k.last_flush=-1,u}return ae!==l?u:k.wrap<=0?d:(k.wrap===2?(ne(k,b.adler&255),ne(k,b.adler>>8&255),ne(k,b.adler>>16&255),ne(k,b.adler>>24&255),ne(k,b.total_in&255),ne(k,b.total_in>>8&255),ne(k,b.total_in>>16&255),ne(k,b.total_in>>24&255)):(be(k,b.adler>>>16),be(k,b.adler&65535)),oe(b),k.wrap>0&&(k.wrap=-k.wrap),k.pending!==0?u:d)}function De(b){var ae;return!b||!b.state?h:(ae=b.state.status,ae!==ee&&ae!==le&&ae!==G&&ae!==xe&&ae!==ge&&ae!==ue&&ae!==ce?We(b,h):(b.state=null,ae===ue?We(b,f):u))}function He(b,ae){var M=ae.length,k,O,H,Ne,_e,Pe,Ze,ut;if(!b||!b.state||(k=b.state,Ne=k.wrap,Ne===2||Ne===1&&k.status!==ee||k.lookahead))return h;for(Ne===1&&(b.adler=n(b.adler,ae,M,0)),k.wrap=0,M>=k.w_size&&(Ne===0&&(ve(k.head),k.strstart=0,k.block_start=0,k.insert=0),ut=new e.Buf8(k.w_size),e.arraySet(ut,ae,M-k.w_size,k.w_size,0),ae=ut,M=k.w_size),_e=b.avail_in,Pe=b.next_in,Ze=b.input,b.avail_in=M,b.next_in=0,b.input=ae,Ee(k);k.lookahead>=X;){O=k.strstart,H=k.lookahead-(X-1);do k.ins_h=(k.ins_h<<k.hash_shift^k.window[O+X-1])&k.hash_mask,k.prev[O&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=O,O++;while(--H);k.strstart=O,k.lookahead=X-1,Ee(k)}return k.strstart+=k.lookahead,k.block_start=k.strstart,k.insert=k.lookahead,k.lookahead=0,k.match_length=k.prev_length=X-1,k.match_available=0,b.next_in=Pe,b.input=Ze,b.avail_in=_e,k.wrap=Ne,u}return Al.deflateInit=de,Al.deflateInit2=$,Al.deflateReset=se,Al.deflateResetKeep=Ae,Al.deflateSetHeader=Te,Al.deflate=F,Al.deflateEnd=De,Al.deflateSetDictionary=He,Al.deflateInfo="pako deflate (from Nodeca project)",Al}var of={},X6;function hK(){if(X6)return of;X6=1;var e=kd(),t=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{t=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var r=new e.Buf8(256),i=0;i<256;i++)r[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;r[254]=r[254]=1,of.string2buf=function(o){var s,l,c,u,d,h=o.length,f=0;for(u=0;u<h;u++)l=o.charCodeAt(u),(l&64512)===55296&&u+1<h&&(c=o.charCodeAt(u+1),(c&64512)===56320&&(l=65536+(l-55296<<10)+(c-56320),u++)),f+=l<128?1:l<2048?2:l<65536?3:4;for(s=new e.Buf8(f),d=0,u=0;d<f;u++)l=o.charCodeAt(u),(l&64512)===55296&&u+1<h&&(c=o.charCodeAt(u+1),(c&64512)===56320&&(l=65536+(l-55296<<10)+(c-56320),u++)),l<128?s[d++]=l:l<2048?(s[d++]=192|l>>>6,s[d++]=128|l&63):l<65536?(s[d++]=224|l>>>12,s[d++]=128|l>>>6&63,s[d++]=128|l&63):(s[d++]=240|l>>>18,s[d++]=128|l>>>12&63,s[d++]=128|l>>>6&63,s[d++]=128|l&63);return s};function a(o,s){if(s<65534&&(o.subarray&&n||!o.subarray&&t))return String.fromCharCode.apply(null,e.shrinkBuf(o,s));for(var l="",c=0;c<s;c++)l+=String.fromCharCode(o[c]);return l}return of.buf2binstring=function(o){return a(o,o.length)},of.binstring2buf=function(o){for(var s=new e.Buf8(o.length),l=0,c=s.length;l<c;l++)s[l]=o.charCodeAt(l);return s},of.buf2string=function(o,s){var l,c,u,d,h=s||o.length,f=new Array(h*2);for(c=0,l=0;l<h;){if(u=o[l++],u<128){f[c++]=u;continue}if(d=r[u],d>4){f[c++]=65533,l+=d-1;continue}for(u&=d===2?31:d===3?15:7;d>1&&l<h;)u=u<<6|o[l++]&63,d--;if(d>1){f[c++]=65533;continue}u<65536?f[c++]=u:(u-=65536,f[c++]=55296|u>>10&1023,f[c++]=56320|u&1023)}return a(f,c)},of.utf8border=function(o,s){var l;for(s=s||o.length,s>o.length&&(s=o.length),l=s-1;l>=0&&(o[l]&192)===128;)l--;return l<0||l===0?s:l+r[o[l]]>s?l:s},of}var dC,Z6;function pK(){if(Z6)return dC;Z6=1;function e(){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}return dC=e,dC}var K6;function iEe(){if(K6)return Yh;K6=1;var e=rEe(),t=kd(),n=hK(),r=IF(),i=pK(),a=Object.prototype.toString,o=0,s=4,l=0,c=1,u=2,d=-1,h=0,f=8;function g(w){if(!(this instanceof g))return new g(w);this.options=t.assign({level:d,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},w||{});var S=this.options;S.raw&&S.windowBits>0?S.windowBits=-S.windowBits:S.gzip&&S.windowBits>0&&S.windowBits<16&&(S.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var _=e.deflateInit2(this.strm,S.level,S.method,S.windowBits,S.memLevel,S.strategy);if(_!==l)throw new Error(r[_]);if(S.header&&e.deflateSetHeader(this.strm,S.header),S.dictionary){var E;if(typeof S.dictionary=="string"?E=n.string2buf(S.dictionary):a.call(S.dictionary)==="[object ArrayBuffer]"?E=new Uint8Array(S.dictionary):E=S.dictionary,_=e.deflateSetDictionary(this.strm,E),_!==l)throw new Error(r[_]);this._dict_set=!0}}g.prototype.push=function(w,S){var _=this.strm,E=this.options.chunkSize,T,D;if(this.ended)return!1;D=S===~~S?S:S===!0?s:o,typeof w=="string"?_.input=n.string2buf(w):a.call(w)==="[object ArrayBuffer]"?_.input=new Uint8Array(w):_.input=w,_.next_in=0,_.avail_in=_.input.length;do{if(_.avail_out===0&&(_.output=new t.Buf8(E),_.next_out=0,_.avail_out=E),T=e.deflate(_,D),T!==c&&T!==l)return this.onEnd(T),this.ended=!0,!1;(_.avail_out===0||_.avail_in===0&&(D===s||D===u))&&(this.options.to==="string"?this.onData(n.buf2binstring(t.shrinkBuf(_.output,_.next_out))):this.onData(t.shrinkBuf(_.output,_.next_out)))}while((_.avail_in>0||_.avail_out===0)&&T!==c);return D===s?(T=e.deflateEnd(this.strm),this.onEnd(T),this.ended=!0,T===l):(D===u&&(this.onEnd(l),_.avail_out=0),!0)},g.prototype.onData=function(w){this.chunks.push(w)},g.prototype.onEnd=function(w){w===l&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=w,this.msg=this.strm.msg};function y(w,S){var _=new g(S);if(_.push(w,!0),_.err)throw _.msg||r[_.err];return _.result}function v(w,S){return S=S||{},S.raw=!0,y(w,S)}function A(w,S){return S=S||{},S.gzip=!0,y(w,S)}return Yh.Deflate=g,Yh.deflate=y,Yh.deflateRaw=v,Yh.gzip=A,Yh}var Jh={},Us={},fC,$6;function aEe(){if($6)return fC;$6=1;var e=30,t=12;return fC=function(r,i){var a,o,s,l,c,u,d,h,f,g,y,v,A,w,S,_,E,T,D,I,j,R,z,B,W;a=r.state,o=r.next_in,B=r.input,s=o+(r.avail_in-5),l=r.next_out,W=r.output,c=l-(i-r.avail_out),u=l+(r.avail_out-257),d=a.dmax,h=a.wsize,f=a.whave,g=a.wnext,y=a.window,v=a.hold,A=a.bits,w=a.lencode,S=a.distcode,_=(1<<a.lenbits)-1,E=(1<<a.distbits)-1;e:do{A<15&&(v+=B[o++]<<A,A+=8,v+=B[o++]<<A,A+=8),T=w[v&_];t:for(;;){if(D=T>>>24,v>>>=D,A-=D,D=T>>>16&255,D===0)W[l++]=T&65535;else if(D&16){I=T&65535,D&=15,D&&(A<D&&(v+=B[o++]<<A,A+=8),I+=v&(1<<D)-1,v>>>=D,A-=D),A<15&&(v+=B[o++]<<A,A+=8,v+=B[o++]<<A,A+=8),T=S[v&E];n:for(;;){if(D=T>>>24,v>>>=D,A-=D,D=T>>>16&255,D&16){if(j=T&65535,D&=15,A<D&&(v+=B[o++]<<A,A+=8,A<D&&(v+=B[o++]<<A,A+=8)),j+=v&(1<<D)-1,j>d){r.msg="invalid distance too far back",a.mode=e;break e}if(v>>>=D,A-=D,D=l-c,j>D){if(D=j-D,D>f&&a.sane){r.msg="invalid distance too far back",a.mode=e;break e}if(R=0,z=y,g===0){if(R+=h-D,D<I){I-=D;do W[l++]=y[R++];while(--D);R=l-j,z=W}}else if(g<D){if(R+=h+g-D,D-=g,D<I){I-=D;do W[l++]=y[R++];while(--D);if(R=0,g<I){D=g,I-=D;do W[l++]=y[R++];while(--D);R=l-j,z=W}}}else if(R+=g-D,D<I){I-=D;do W[l++]=y[R++];while(--D);R=l-j,z=W}for(;I>2;)W[l++]=z[R++],W[l++]=z[R++],W[l++]=z[R++],I-=3;I&&(W[l++]=z[R++],I>1&&(W[l++]=z[R++]))}else{R=l-j;do W[l++]=W[R++],W[l++]=W[R++],W[l++]=W[R++],I-=3;while(I>2);I&&(W[l++]=W[R++],I>1&&(W[l++]=W[R++]))}}else if((D&64)===0){T=S[(T&65535)+(v&(1<<D)-1)];continue n}else{r.msg="invalid distance code",a.mode=e;break e}break}}else if((D&64)===0){T=w[(T&65535)+(v&(1<<D)-1)];continue t}else if(D&32){a.mode=t;break e}else{r.msg="invalid literal/length code",a.mode=e;break e}break}}while(o<s&&l<u);I=A>>3,o-=I,A-=I<<3,v&=(1<<A)-1,r.next_in=o,r.next_out=l,r.avail_in=o<s?5+(s-o):5-(o-s),r.avail_out=l<u?257+(u-l):257-(l-u),a.hold=v,a.bits=A},fC}var hC,Y6;function oEe(){if(Y6)return hC;Y6=1;var e=kd(),t=15,n=852,r=592,i=0,a=1,o=2,s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return hC=function(h,f,g,y,v,A,w,S){var _=S.bits,E=0,T=0,D=0,I=0,j=0,R=0,z=0,B=0,W=0,P=0,Z,Q,X,q,te,J=null,ee=0,le,G=new e.Buf16(t+1),xe=new e.Buf16(t+1),ge=null,ue=0,ce,ye,Fe;for(E=0;E<=t;E++)G[E]=0;for(T=0;T<y;T++)G[f[g+T]]++;for(j=_,I=t;I>=1&&G[I]===0;I--);if(j>I&&(j=I),I===0)return v[A++]=1<<24|64<<16|0,v[A++]=1<<24|64<<16|0,S.bits=1,0;for(D=1;D<I&&G[D]===0;D++);for(j<D&&(j=D),B=1,E=1;E<=t;E++)if(B<<=1,B-=G[E],B<0)return-1;if(B>0&&(h===i||I!==1))return-1;for(xe[1]=0,E=1;E<t;E++)xe[E+1]=xe[E]+G[E];for(T=0;T<y;T++)f[g+T]!==0&&(w[xe[f[g+T]]++]=T);if(h===i?(J=ge=w,le=19):h===a?(J=s,ee-=257,ge=l,ue-=257,le=256):(J=c,ge=u,le=-1),P=0,T=0,E=D,te=A,R=j,z=0,X=-1,W=1<<j,q=W-1,h===a&&W>n||h===o&&W>r)return 1;for(;;){ce=E-z,w[T]<le?(ye=0,Fe=w[T]):w[T]>le?(ye=ge[ue+w[T]],Fe=J[ee+w[T]]):(ye=96,Fe=0),Z=1<<E-z,Q=1<<R,D=Q;do Q-=Z,v[te+(P>>z)+Q]=ce<<24|ye<<16|Fe|0;while(Q!==0);for(Z=1<<E-1;P&Z;)Z>>=1;if(Z!==0?(P&=Z-1,P+=Z):P=0,T++,--G[E]===0){if(E===I)break;E=f[g+w[T]]}if(E>j&&(P&q)!==X){for(z===0&&(z=j),te+=D,R=E-z,B=1<<R;R+z<I&&(B-=G[R+z],!(B<=0));)R++,B<<=1;if(W+=1<<R,h===a&&W>n||h===o&&W>r)return 1;X=P&q,v[X]=j<<24|R<<16|te-A|0}}return P!==0&&(v[te+P]=E-z<<24|64<<16|0),S.bits=j,0},hC}var J6;function sEe(){if(J6)return Us;J6=1;var e=kd(),t=dK(),n=fK(),r=aEe(),i=oEe(),a=0,o=1,s=2,l=4,c=5,u=6,d=0,h=1,f=2,g=-2,y=-3,v=-4,A=-5,w=8,S=1,_=2,E=3,T=4,D=5,I=6,j=7,R=8,z=9,B=10,W=11,P=12,Z=13,Q=14,X=15,q=16,te=17,J=18,ee=19,le=20,G=21,xe=22,ge=23,ue=24,ce=25,ye=26,Fe=27,Oe=28,Le=29,Re=30,We=31,V=32,ve=852,oe=592,re=15,ne=re;function be($){return($>>>24&255)+($>>>8&65280)+(($&65280)<<8)+(($&255)<<24)}function Ue(){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 e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Me($){var de;return!$||!$.state?g:(de=$.state,$.total_in=$.total_out=de.total=0,$.msg="",de.wrap&&($.adler=de.wrap&1),de.mode=S,de.last=0,de.havedict=0,de.dmax=32768,de.head=null,de.hold=0,de.bits=0,de.lencode=de.lendyn=new e.Buf32(ve),de.distcode=de.distdyn=new e.Buf32(oe),de.sane=1,de.back=-1,d)}function Ee($){var de;return!$||!$.state?g:(de=$.state,de.wsize=0,de.whave=0,de.wnext=0,Me($))}function Se($,de){var F,De;return!$||!$.state||(De=$.state,de<0?(F=0,de=-de):(F=(de>>4)+1,de<48&&(de&=15)),de&&(de<8||de>15))?g:(De.window!==null&&De.wbits!==de&&(De.window=null),De.wrap=F,De.wbits=de,Ee($))}function Ce($,de){var F,De;return $?(De=new Ue,$.state=De,De.window=null,F=Se($,de),F!==d&&($.state=null),F):g}function pe($){return Ce($,ne)}var ke=!0,Ve,Xe;function it($){if(ke){var de;for(Ve=new e.Buf32(512),Xe=new e.Buf32(32),de=0;de<144;)$.lens[de++]=8;for(;de<256;)$.lens[de++]=9;for(;de<280;)$.lens[de++]=7;for(;de<288;)$.lens[de++]=8;for(i(o,$.lens,0,288,Ve,0,$.work,{bits:9}),de=0;de<32;)$.lens[de++]=5;i(s,$.lens,0,32,Xe,0,$.work,{bits:5}),ke=!1}$.lencode=Ve,$.lenbits=9,$.distcode=Xe,$.distbits=5}function et($,de,F,De){var He,b=$.state;return b.window===null&&(b.wsize=1<<b.wbits,b.wnext=0,b.whave=0,b.window=new e.Buf8(b.wsize)),De>=b.wsize?(e.arraySet(b.window,de,F-b.wsize,b.wsize,0),b.wnext=0,b.whave=b.wsize):(He=b.wsize-b.wnext,He>De&&(He=De),e.arraySet(b.window,de,F-De,He,b.wnext),De-=He,De?(e.arraySet(b.window,de,F-De,De,0),b.wnext=De,b.whave=b.wsize):(b.wnext+=He,b.wnext===b.wsize&&(b.wnext=0),b.whave<b.wsize&&(b.whave+=He))),0}function U($,de){var F,De,He,b,ae,M,k,O,H,Ne,_e,Pe,Ze,ut,st=0,Je,pt,xt,dt,rn,Yn,Lt,Xt,qt=new e.Buf8(4),Tn,Ye,ct=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!$||!$.state||!$.output||!$.input&&$.avail_in!==0)return g;F=$.state,F.mode===P&&(F.mode=Z),ae=$.next_out,He=$.output,k=$.avail_out,b=$.next_in,De=$.input,M=$.avail_in,O=F.hold,H=F.bits,Ne=M,_e=k,Xt=d;e:for(;;)switch(F.mode){case S:if(F.wrap===0){F.mode=Z;break}for(;H<16;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(F.wrap&2&&O===35615){F.check=0,qt[0]=O&255,qt[1]=O>>>8&255,F.check=n(F.check,qt,2,0),O=0,H=0,F.mode=_;break}if(F.flags=0,F.head&&(F.head.done=!1),!(F.wrap&1)||(((O&255)<<8)+(O>>8))%31){$.msg="incorrect header check",F.mode=Re;break}if((O&15)!==w){$.msg="unknown compression method",F.mode=Re;break}if(O>>>=4,H-=4,Lt=(O&15)+8,F.wbits===0)F.wbits=Lt;else if(Lt>F.wbits){$.msg="invalid window size",F.mode=Re;break}F.dmax=1<<Lt,$.adler=F.check=1,F.mode=O&512?B:P,O=0,H=0;break;case _:for(;H<16;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(F.flags=O,(F.flags&255)!==w){$.msg="unknown compression method",F.mode=Re;break}if(F.flags&57344){$.msg="unknown header flags set",F.mode=Re;break}F.head&&(F.head.text=O>>8&1),F.flags&512&&(qt[0]=O&255,qt[1]=O>>>8&255,F.check=n(F.check,qt,2,0)),O=0,H=0,F.mode=E;case E:for(;H<32;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.head&&(F.head.time=O),F.flags&512&&(qt[0]=O&255,qt[1]=O>>>8&255,qt[2]=O>>>16&255,qt[3]=O>>>24&255,F.check=n(F.check,qt,4,0)),O=0,H=0,F.mode=T;case T:for(;H<16;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.head&&(F.head.xflags=O&255,F.head.os=O>>8),F.flags&512&&(qt[0]=O&255,qt[1]=O>>>8&255,F.check=n(F.check,qt,2,0)),O=0,H=0,F.mode=D;case D:if(F.flags&1024){for(;H<16;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.length=O,F.head&&(F.head.extra_len=O),F.flags&512&&(qt[0]=O&255,qt[1]=O>>>8&255,F.check=n(F.check,qt,2,0)),O=0,H=0}else F.head&&(F.head.extra=null);F.mode=I;case I:if(F.flags&1024&&(Pe=F.length,Pe>M&&(Pe=M),Pe&&(F.head&&(Lt=F.head.extra_len-F.length,F.head.extra||(F.head.extra=new Array(F.head.extra_len)),e.arraySet(F.head.extra,De,b,Pe,Lt)),F.flags&512&&(F.check=n(F.check,De,Pe,b)),M-=Pe,b+=Pe,F.length-=Pe),F.length))break e;F.length=0,F.mode=j;case j:if(F.flags&2048){if(M===0)break e;Pe=0;do Lt=De[b+Pe++],F.head&&Lt&&F.length<65536&&(F.head.name+=String.fromCharCode(Lt));while(Lt&&Pe<M);if(F.flags&512&&(F.check=n(F.check,De,Pe,b)),M-=Pe,b+=Pe,Lt)break e}else F.head&&(F.head.name=null);F.length=0,F.mode=R;case R:if(F.flags&4096){if(M===0)break e;Pe=0;do Lt=De[b+Pe++],F.head&&Lt&&F.length<65536&&(F.head.comment+=String.fromCharCode(Lt));while(Lt&&Pe<M);if(F.flags&512&&(F.check=n(F.check,De,Pe,b)),M-=Pe,b+=Pe,Lt)break e}else F.head&&(F.head.comment=null);F.mode=z;case z:if(F.flags&512){for(;H<16;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(O!==(F.check&65535)){$.msg="header crc mismatch",F.mode=Re;break}O=0,H=0}F.head&&(F.head.hcrc=F.flags>>9&1,F.head.done=!0),$.adler=F.check=0,F.mode=P;break;case B:for(;H<32;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}$.adler=F.check=be(O),O=0,H=0,F.mode=W;case W:if(F.havedict===0)return $.next_out=ae,$.avail_out=k,$.next_in=b,$.avail_in=M,F.hold=O,F.bits=H,f;$.adler=F.check=1,F.mode=P;case P:if(de===c||de===u)break e;case Z:if(F.last){O>>>=H&7,H-=H&7,F.mode=Fe;break}for(;H<3;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}switch(F.last=O&1,O>>>=1,H-=1,O&3){case 0:F.mode=Q;break;case 1:if(it(F),F.mode=le,de===u){O>>>=2,H-=2;break e}break;case 2:F.mode=te;break;case 3:$.msg="invalid block type",F.mode=Re}O>>>=2,H-=2;break;case Q:for(O>>>=H&7,H-=H&7;H<32;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if((O&65535)!==(O>>>16^65535)){$.msg="invalid stored block lengths",F.mode=Re;break}if(F.length=O&65535,O=0,H=0,F.mode=X,de===u)break e;case X:F.mode=q;case q:if(Pe=F.length,Pe){if(Pe>M&&(Pe=M),Pe>k&&(Pe=k),Pe===0)break e;e.arraySet(He,De,b,Pe,ae),M-=Pe,b+=Pe,k-=Pe,ae+=Pe,F.length-=Pe;break}F.mode=P;break;case te:for(;H<14;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(F.nlen=(O&31)+257,O>>>=5,H-=5,F.ndist=(O&31)+1,O>>>=5,H-=5,F.ncode=(O&15)+4,O>>>=4,H-=4,F.nlen>286||F.ndist>30){$.msg="too many length or distance symbols",F.mode=Re;break}F.have=0,F.mode=J;case J:for(;F.have<F.ncode;){for(;H<3;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.lens[ct[F.have++]]=O&7,O>>>=3,H-=3}for(;F.have<19;)F.lens[ct[F.have++]]=0;if(F.lencode=F.lendyn,F.lenbits=7,Tn={bits:F.lenbits},Xt=i(a,F.lens,0,19,F.lencode,0,F.work,Tn),F.lenbits=Tn.bits,Xt){$.msg="invalid code lengths set",F.mode=Re;break}F.have=0,F.mode=ee;case ee:for(;F.have<F.nlen+F.ndist;){for(;st=F.lencode[O&(1<<F.lenbits)-1],Je=st>>>24,pt=st>>>16&255,xt=st&65535,!(Je<=H);){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(xt<16)O>>>=Je,H-=Je,F.lens[F.have++]=xt;else{if(xt===16){for(Ye=Je+2;H<Ye;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(O>>>=Je,H-=Je,F.have===0){$.msg="invalid bit length repeat",F.mode=Re;break}Lt=F.lens[F.have-1],Pe=3+(O&3),O>>>=2,H-=2}else if(xt===17){for(Ye=Je+3;H<Ye;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}O>>>=Je,H-=Je,Lt=0,Pe=3+(O&7),O>>>=3,H-=3}else{for(Ye=Je+7;H<Ye;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}O>>>=Je,H-=Je,Lt=0,Pe=11+(O&127),O>>>=7,H-=7}if(F.have+Pe>F.nlen+F.ndist){$.msg="invalid bit length repeat",F.mode=Re;break}for(;Pe--;)F.lens[F.have++]=Lt}}if(F.mode===Re)break;if(F.lens[256]===0){$.msg="invalid code -- missing end-of-block",F.mode=Re;break}if(F.lenbits=9,Tn={bits:F.lenbits},Xt=i(o,F.lens,0,F.nlen,F.lencode,0,F.work,Tn),F.lenbits=Tn.bits,Xt){$.msg="invalid literal/lengths set",F.mode=Re;break}if(F.distbits=6,F.distcode=F.distdyn,Tn={bits:F.distbits},Xt=i(s,F.lens,F.nlen,F.ndist,F.distcode,0,F.work,Tn),F.distbits=Tn.bits,Xt){$.msg="invalid distances set",F.mode=Re;break}if(F.mode=le,de===u)break e;case le:F.mode=G;case G:if(M>=6&&k>=258){$.next_out=ae,$.avail_out=k,$.next_in=b,$.avail_in=M,F.hold=O,F.bits=H,r($,_e),ae=$.next_out,He=$.output,k=$.avail_out,b=$.next_in,De=$.input,M=$.avail_in,O=F.hold,H=F.bits,F.mode===P&&(F.back=-1);break}for(F.back=0;st=F.lencode[O&(1<<F.lenbits)-1],Je=st>>>24,pt=st>>>16&255,xt=st&65535,!(Je<=H);){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(pt&&(pt&240)===0){for(dt=Je,rn=pt,Yn=xt;st=F.lencode[Yn+((O&(1<<dt+rn)-1)>>dt)],Je=st>>>24,pt=st>>>16&255,xt=st&65535,!(dt+Je<=H);){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}O>>>=dt,H-=dt,F.back+=dt}if(O>>>=Je,H-=Je,F.back+=Je,F.length=xt,pt===0){F.mode=ye;break}if(pt&32){F.back=-1,F.mode=P;break}if(pt&64){$.msg="invalid literal/length code",F.mode=Re;break}F.extra=pt&15,F.mode=xe;case xe:if(F.extra){for(Ye=F.extra;H<Ye;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.length+=O&(1<<F.extra)-1,O>>>=F.extra,H-=F.extra,F.back+=F.extra}F.was=F.length,F.mode=ge;case ge:for(;st=F.distcode[O&(1<<F.distbits)-1],Je=st>>>24,pt=st>>>16&255,xt=st&65535,!(Je<=H);){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if((pt&240)===0){for(dt=Je,rn=pt,Yn=xt;st=F.distcode[Yn+((O&(1<<dt+rn)-1)>>dt)],Je=st>>>24,pt=st>>>16&255,xt=st&65535,!(dt+Je<=H);){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}O>>>=dt,H-=dt,F.back+=dt}if(O>>>=Je,H-=Je,F.back+=Je,pt&64){$.msg="invalid distance code",F.mode=Re;break}F.offset=xt,F.extra=pt&15,F.mode=ue;case ue:if(F.extra){for(Ye=F.extra;H<Ye;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.offset+=O&(1<<F.extra)-1,O>>>=F.extra,H-=F.extra,F.back+=F.extra}if(F.offset>F.dmax){$.msg="invalid distance too far back",F.mode=Re;break}F.mode=ce;case ce:if(k===0)break e;if(Pe=_e-k,F.offset>Pe){if(Pe=F.offset-Pe,Pe>F.whave&&F.sane){$.msg="invalid distance too far back",F.mode=Re;break}Pe>F.wnext?(Pe-=F.wnext,Ze=F.wsize-Pe):Ze=F.wnext-Pe,Pe>F.length&&(Pe=F.length),ut=F.window}else ut=He,Ze=ae-F.offset,Pe=F.length;Pe>k&&(Pe=k),k-=Pe,F.length-=Pe;do He[ae++]=ut[Ze++];while(--Pe);F.length===0&&(F.mode=G);break;case ye:if(k===0)break e;He[ae++]=F.length,k--,F.mode=G;break;case Fe:if(F.wrap){for(;H<32;){if(M===0)break e;M--,O|=De[b++]<<H,H+=8}if(_e-=k,$.total_out+=_e,F.total+=_e,_e&&($.adler=F.check=F.flags?n(F.check,He,_e,ae-_e):t(F.check,He,_e,ae-_e)),_e=k,(F.flags?O:be(O))!==F.check){$.msg="incorrect data check",F.mode=Re;break}O=0,H=0}F.mode=Oe;case Oe:if(F.wrap&&F.flags){for(;H<32;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(O!==(F.total&4294967295)){$.msg="incorrect length check",F.mode=Re;break}O=0,H=0}F.mode=Le;case Le:Xt=h;break e;case Re:Xt=y;break e;case We:return v;case V:default:return g}return $.next_out=ae,$.avail_out=k,$.next_in=b,$.avail_in=M,F.hold=O,F.bits=H,(F.wsize||_e!==$.avail_out&&F.mode<Re&&(F.mode<Fe||de!==l))&&et($,$.output,$.next_out,_e-$.avail_out),Ne-=$.avail_in,_e-=$.avail_out,$.total_in+=Ne,$.total_out+=_e,F.total+=_e,F.wrap&&_e&&($.adler=F.check=F.flags?n(F.check,He,_e,$.next_out-_e):t(F.check,He,_e,$.next_out-_e)),$.data_type=F.bits+(F.last?64:0)+(F.mode===P?128:0)+(F.mode===le||F.mode===X?256:0),(Ne===0&&_e===0||de===l)&&Xt===d&&(Xt=A),Xt}function Ae($){if(!$||!$.state)return g;var de=$.state;return de.window&&(de.window=null),$.state=null,d}function se($,de){var F;return!$||!$.state||(F=$.state,(F.wrap&2)===0)?g:(F.head=de,de.done=!1,d)}function Te($,de){var F=de.length,De,He,b;return!$||!$.state||(De=$.state,De.wrap!==0&&De.mode!==W)?g:De.mode===W&&(He=1,He=t(He,de,F,0),He!==De.check)?y:(b=et($,de,F,F),b?(De.mode=We,v):(De.havedict=1,d))}return Us.inflateReset=Ee,Us.inflateReset2=Se,Us.inflateResetKeep=Me,Us.inflateInit=pe,Us.inflateInit2=Ce,Us.inflate=U,Us.inflateEnd=Ae,Us.inflateGetHeader=se,Us.inflateSetDictionary=Te,Us.inflateInfo="pako inflate (from Nodeca project)",Us}var pC,Q6;function gK(){return Q6||(Q6=1,pC={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),pC}var gC,eO;function lEe(){if(eO)return gC;eO=1;function e(){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}return gC=e,gC}var tO;function cEe(){if(tO)return Jh;tO=1;var e=sEe(),t=kd(),n=hK(),r=gK(),i=IF(),a=pK(),o=lEe(),s=Object.prototype.toString;function l(d){if(!(this instanceof l))return new l(d);this.options=t.assign({chunkSize:16384,windowBits:0,to:""},d||{});var h=this.options;h.raw&&h.windowBits>=0&&h.windowBits<16&&(h.windowBits=-h.windowBits,h.windowBits===0&&(h.windowBits=-15)),h.windowBits>=0&&h.windowBits<16&&!(d&&d.windowBits)&&(h.windowBits+=32),h.windowBits>15&&h.windowBits<48&&(h.windowBits&15)===0&&(h.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var f=e.inflateInit2(this.strm,h.windowBits);if(f!==r.Z_OK)throw new Error(i[f]);if(this.header=new o,e.inflateGetHeader(this.strm,this.header),h.dictionary&&(typeof h.dictionary=="string"?h.dictionary=n.string2buf(h.dictionary):s.call(h.dictionary)==="[object ArrayBuffer]"&&(h.dictionary=new Uint8Array(h.dictionary)),h.raw&&(f=e.inflateSetDictionary(this.strm,h.dictionary),f!==r.Z_OK)))throw new Error(i[f])}l.prototype.push=function(d,h){var f=this.strm,g=this.options.chunkSize,y=this.options.dictionary,v,A,w,S,_,E=!1;if(this.ended)return!1;A=h===~~h?h:h===!0?r.Z_FINISH:r.Z_NO_FLUSH,typeof d=="string"?f.input=n.binstring2buf(d):s.call(d)==="[object ArrayBuffer]"?f.input=new Uint8Array(d):f.input=d,f.next_in=0,f.avail_in=f.input.length;do{if(f.avail_out===0&&(f.output=new t.Buf8(g),f.next_out=0,f.avail_out=g),v=e.inflate(f,r.Z_NO_FLUSH),v===r.Z_NEED_DICT&&y&&(v=e.inflateSetDictionary(this.strm,y)),v===r.Z_BUF_ERROR&&E===!0&&(v=r.Z_OK,E=!1),v!==r.Z_STREAM_END&&v!==r.Z_OK)return this.onEnd(v),this.ended=!0,!1;f.next_out&&(f.avail_out===0||v===r.Z_STREAM_END||f.avail_in===0&&(A===r.Z_FINISH||A===r.Z_SYNC_FLUSH))&&(this.options.to==="string"?(w=n.utf8border(f.output,f.next_out),S=f.next_out-w,_=n.buf2string(f.output,w),f.next_out=S,f.avail_out=g-S,S&&t.arraySet(f.output,f.output,w,S,0),this.onData(_)):this.onData(t.shrinkBuf(f.output,f.next_out))),f.avail_in===0&&f.avail_out===0&&(E=!0)}while((f.avail_in>0||f.avail_out===0)&&v!==r.Z_STREAM_END);return v===r.Z_STREAM_END&&(A=r.Z_FINISH),A===r.Z_FINISH?(v=e.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===r.Z_OK):(A===r.Z_SYNC_FLUSH&&(this.onEnd(r.Z_OK),f.avail_out=0),!0)},l.prototype.onData=function(d){this.chunks.push(d)},l.prototype.onEnd=function(d){d===r.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg};function c(d,h){var f=new l(h);if(f.push(d,!0),f.err)throw f.msg||i[f.err];return f.result}function u(d,h){return h=h||{},h.raw=!0,c(d,h)}return Jh.Inflate=l,Jh.inflate=c,Jh.inflateRaw=u,Jh.ungzip=c,Jh}var mC,nO;function uEe(){if(nO)return mC;nO=1;var e=kd().assign,t=iEe(),n=cEe(),r=gK(),i={};return e(i,t,n,r),mC=i,mC}var dEe=uEe();const fEe=Qc(dEe);var rO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xm=new Uint8Array(256);for(var Vx=0;Vx<rO.length;Vx++)Xm[rO.charCodeAt(Vx)]=Vx;var hEe=function(e){var t=e.length*.75,n=e.length,r,i=0,a,o,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=new Uint8Array(t);for(r=0;r<n;r+=4)a=Xm[e.charCodeAt(r)],o=Xm[e.charCodeAt(r+1)],s=Xm[e.charCodeAt(r+2)],l=Xm[e.charCodeAt(r+3)],c[i++]=a<<2|o>>4,c[i++]=(o&15)<<4|s>>2,c[i++]=(s&3)<<6|l&63;return c},pEe=function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},mK=function(e){return pEe(fEe.inflate(hEe(e)))},gEe=function(e,t,n){for(var r="",i=0,a=t-e.length;i<a;i++)r+=n;return r+e};const mEe="eJyFWdtyGjkQ/RVqnnar8Bb4lpg3jEnCxgEvGDtxKg9iphm01oyILrZxKv++mrGd3az6KC8UnNa0+nrUGr5lI11VVLtskF198FaU1Dns9w9OOkf7/ePDrJu90bWbiorCgpH2RpLZO9WqaCReqZ8lnReJqKTa/SwL8DXJctPs9Lxs4oSS+bAuVVjXC7/tG/lAxYV0+SYbOOOpm402wojckVlQ8+T4wVFdUDHXlaifrTs91Q/Z4PNeMLu7t3/U6746POm+7vW/dLNlWGuUrOlCW+mkrrPBXr/X+4/gciPz25qszQbhyeyKjG2XZb3ewR+9Xi/sMdVO5k+ebHemcaHzW/57p3/y+qQbPk967We//TxoP191hoVeUWexs44q25nUuTZbbYSj4o9OZ6hUZ97osZ05WTJ3AQ37jMOqQtblIt9QG7lWycKJuhCmeJGGhSOxffccyqPj/W728eXX4cFJNxvavAmRyQbH++HnGf34vdc/etXNFq54d50NXh+2X6/C137v+CnQH8gZmYdQfP6WXX8MCppQTYMlditCBL53/wfTQ65EFeNfvQ6erlQsqX21akJc1rGs0EoJE+NbMnlToZFAVEFkQ3iABW2uGH3CUK1ojUTgMWEbjfaWeUp5G6N5aCwRw5vddkOM98EVqRlPrBJ2E8OPZHSM6prJkrtnVrqNIWbtOjQrg8o7Zq2VDwxId5x3xMe0lpzBuVaa0WGpkkCkmgaON/3qBVODpaHQiIybXz3ZliTi3DO2D2PoNIZGMXQWQ+MYehNDb2PoXQxNYujPGHofQ+cx9CGGpjE0i6GLGPorhuYxtIihyxhaxtBVDF3H0McY+hRDNzG0CqfQLTmeNlZBBvr0+TnIKbmUuTS5Z1jUN6xtw8nBtEjLb7wxDOesmB5j+JfpIIYLmIZiWC6GZAz9HUMMvTItzESL6VqG9rZMKGOI4QaGXpjY+xi6i6H7GGKYdMeQPl9foBBW3GHark9Vo5OqgEd9oe+ZOPOnc3NcqmZgiUuomehYnt1xZ8daaSPZ8wBoyb0Jx3jOBLBtGyvbiRNOLXw0Sy+DpNKAAhpxq/gXYhD6NdMda6bwwyTH0kwhypI70p5wdhR7Gjia3JEhpvfDLCRKI7YcqYXJnxgv/g3vSthEhNNSEKIfCQByUkpurWQaNXjqNtqjSfHp0OdLOwSAG31E7h03uLRMvlbEtDPoq0rkhqvhlSFu40I7kfP9VoRLFrH+G7YLcypCQLkJ1delML5SwjPb6DIMmQxL54L1gyq+YIfMyKNNsQ4zHj8UnoMDdoZwfoMqkJxX7A6Cj3czWzLdqcC+GuGM9tCa4RobSp5J2gTnk0D5CVA0Pp1RAqn7hC0o5J3kqvkTsGyY6gwBHlqmHtqBh2x77UI9QimVS75PljgMAjXDEljn0QNjvMlZIAju/pF0NH95VcFshSgnB3Ug+LhMkwYoVKOAUS+T2kZIG2DVcYInLXDTQkKUYHelH6kuGcEcbPE26aRPNklKOEQpNcCQHPp6k4jc5UYbRtkM7T4HcVsAvADWLtEGnq/M9t2G9e2Aw8xEM1CCQ4QDWq28cnKrmDHTAwcvgYNh1HJSqEKumdvVDlPDFOwjU8UyTpZZ4tTBohzYUSMaRAmdggBNgKLmzVsYGLjXbyujb6lm70CGSmnB1PsWJHuSYhQfupq/ioxBTRngkEaRuQEP3ICIPb/kAq/Axo6ZUEaQFFSStxwa/eDpiARDND4kqhIE+BG1Btp7hjKCjh6UKYt2xk7MkmMJ8PCMlGNy5XiSdvc6wYjYtIp5pSGBRTo9Z45R6Asw4bQ8HgrYhEJmTFsk6pWvyPfJOj4HiXNGFFQJw1hOCVaYgChNUOGcA6tD0DZCMSdDczMBDa5TFVWDqWn5i/yB+BByqARcGhx6ziqXVD4Ii2TqZmnLi8AS3L8dGqRoBIzwkM0LmXNpOAOKTNKbKciPBvg8XdZJ6RDoHEKO5meuGdDzmOiQMTrt0d63SVfAIDBJtgIwwaUvN7ps8l1r7v0I5lKPRUEV+rcqfaHlDvJH4FSdVBVCjk8IiXp87Jv/Ib90s/dk6gshTfPv8Zfv/wDUfBK2",yEe="eJyFWdtyGjkQ/RVqnnarcAo7vuE3jEnCxgEvGDtxKg9iRgxaa0ZEF9s4lX/fnrGdTVZ9lBcKTmvU96PW8C0bmqqStc9OsqsPwYlSdnaPDvb6naP+3v5+1s3emNpPRCVpwdAEq6TdOTW6mC61+hpksyBo/euCTrOg89MKUSm9/XUNwddSletGcbOcfo+90Cof1KWmdTu7e4S4N+pBFhfK5+vsxNsgu9lwLazIvbRz2Tw7evCyLmQxM5Won809PTUP2cnnnYOj7s7eQa97fNjvHvd2v3SzBS21WtXywjjllakbRb3eT4LLtcpva+lcdkJPZlfSunZZ1uu9ftXr9UjFxHiVP7my2drGh84f+Z+d3f5xv0uf/V77udt+vm4/jzqDwixlZ751XlauM65zYzfGCi+LV53OQOvOrNnHdWbSSXtHKOkZ0apC1eU8X8s2dO0mcy/qQtjiRUoLh2Lz7jmWB4cUto8vv/Zf97vZwOVNhGx2crhHP8/kj987uxShbO6Ld9fZyfF++/WKvu72Dp/i/EF6q3IKxedv2fVH2qAJ1YQscRtBEfje/R8sH3Itqhj/Ggx5utSxpA7VsglxWceywmgtbIxvpM2bio0EoiKRo/AAC9pcMfsJK2stV0gEHhOu2dHdMk/p4GI0p0YTMbzebtaS8Z5cUYbxxGnh1jH8KK2JUVMzWfL3zEq/tpJZu6JuZVB1x6x16oEB5R3nneRjWivO4Nxow+zhZKWASDcNHCv9GgRTg6WV1IiMm8ReriWJOPeM7YMYOo2hYQydxdAoht7E0NsYehdD4xj6K4bex9B5DH2IoUkMTWPoIob+jqFZDM1j6DKGFjF0FUPXMfQxhj7F0E0MLekQupWep40lyUCfPj8HOSVXKlc2DwyLhoa1HZ0cTIu0/MYbw3DOkukxhn+ZDmK4gGkohuViSMXQPzHE0CvTwky0mK5laG/DhDKGGG5g6IWJfYihuxi6jyGGSbcM6fP1BQphyR2m7fpUNXqlC3jUF+aeiTN/OjfHpW4GlriEmoGO5dktd3astLGKPQ/ALnmwdIznTADbtnGqHTnh1MJHswyKJJUBFNCI241/IwahXzHdsWIKnyY5lmYKUZbckfaEs6PY08DR5E5ayfQ+zUKitGLDkRpdASTjxX/hXQqXiHBaCkL0IwFALrVWG6eYRiVP/doENCk+Hfp8aVMAuNFH5MFzg0vL5CstmXYGfVWJ3HI1vLSSU1wYL3K+3wq6ZUnWf8t2YS4LCig3oYa6FDZUWgRGjSlpyGRYOhesH7LiC3bAjDzGFiua8fih8BwcsFOE8woqIrmgWQ2Cj3czWzLdqYFeg3Bmd2pNusVSyTNJG+N8SlB+AhRNSGdUgtR9whYU6k5x1fwJWDZIdYYADy1SD23BQ669dqEekaktF3yfLHAYBGqGBbAuoAdGWMkZEQR3/0g6mr+8qmBUIcrJQR0IPi6TpAEa1Shg1MvkbkO0G2DVUYInHXDTQUJUQLs2j7IuGcEMqHibdDIkmyQlHKCUWmBIDn29SUTucm0ss9kUaZ+BuM0BXgBrF0hB4CuzfbfhQjvgMDPRFJTgAOGAVqugvdpoZswMwMFL4CCNWl4JXagVc7vaYmqYAD0qVSyjZJklTh0syoEdNaJBlNAJCNAYbNS8eaOBgXv9trTmVtbsHcjKUjkw9b4FyR6nGCVQV/NXkRGoKQscMigyN+CBGxCx55dc4BXYyDMTyhCSgk7ylkejHzwdkWCAxodEVYIAP6LWQLqnKCPo6EGZckgzdmKaHEuAh2dSeyZXnidpf28SjIhNq5hXGgpYZNJz5giFvgATTsvjVMCWCpkxbZ6oV74i3yfr+BwkzltRyEpYxnKZYIUxiNIYFc45sJqCthaaORmamwlocJOqqBpMTYvf5A/ERyKHSsCl5NBzVrmk8kGYJ1M3TVteEEtw/3YYkKIhMCJANi9UzqXhDGxkk95MQH4MwGfpsk5KB2DPAeRofuaagn0eEx0yQqc90n2bdAUMAuNkKwATfPpyY8om37Xh3o9gLg1YRFuhf6vSF1ruIH8ETtXJrSjk+IRQqMdHofkf8ks3ey9tfSGUbf49/vL9XxrnGMA=",vEe="eJyFWVtT2zgU/isZP+3OhE5Iy/UtDaHNFhI2IdDS4UGxFUeLbKW6AKHT/77Hhnbb1fnUFw98x9K5fzpyvmZDU1Wy9tlxdnUenChlZ3e//+awc7B32D/Kutmpqf1EVJJeGJpglbQ706VWX4JshEHrX4Wdn4SiUnr7q5jga6nKdaPvXBYqVISMvdAqH9Slpjd3dvuEuFP1KIsL5fN1duxtkN1suBZW5F7auWxWjx69rAtZzEwl6hc73741j9nx553+QXenv9frHr456h729m672YJetVrV8sI45ZWpG0W93k+Cy7XK72rpXHZMK7MraV37WtbrvX7V6/VIxcR4lT87s9naxovOH/mfnd2jw6MuPY967XO3ffbb5+v2edAZFGYpO/Ot87JynXGdG7sxVnhZvOp0Blp3Zs1urjOTTtp7QknbiN4qVF3O87VsQ9huMveiLoQtvkvpxaHYvH+J6d4+Be/j9//e9Pe72cDlTZxsdrzfP+pmJ/LH/zu7ewfdbO6L99e0crf98+rlzybY59JblVM8Pn/Nrj/S+iZeEzLEbQSF4Vv3f7B8zLWoYvxLMOToUseSOlTLJs5lHcsKo7WwMb6RNm/qNRKIikSOogMsaBPG7CesrLVcIRFYJlyzo7tjVungYjSnNhMxvN5u1pLxnlxRhvHEaeHWMfwkrYlRUzNZ8g/Mm35tJfPuipqWQdU9865Tjwwo7znvJB/TWnEG50YbZg8nKwVEuuniWOmXIJgaLK2kPmTcJBJzLVPEuWdsH8TQ2xgaxtBJDI1i6DSG3sXQ+xgax9BfMfQhhs5i6DyGJjE0jaGLGPo7hmYxNI+hyxhaxNBVDF3H0McY+hRDNzG0pJPoTnqeNpYkA336sg5ySq5UrmweGBYNDWk7OjiYFmn5jTeG4Zwl02MM/zIdxHAB01AMy8WQiqF/YoihV6aFmWgxXcvQ3oYJZQwx3MDQCxP7EEP3MfQQQwyTbhnS5+sLFMKSO0zb91PV6JUu4FFfmAcmzvzp3ByXuplX4hJqpjqWZ7fc2bHSxir2PAC75MHSMZ4zAWzbxql27oRTCx/NMiiSVAZQQCNuN/6NGIR+xXTHiil8GuRYmilEWXJH2jPOjmLPA0eTO2kl0/s0C4nSig1HanQJkIwX/4V3KVwiwmkpCNGPBAC51FptnGIalTz1axPQpPh86POlTQHgRh+RB88NLi2Tr7Rk2hn0VSVyy9Xw0kpOcWG8yPl+K+iyJVn/LduFOV3GaOBmuDvUpbCh0iIwakxJQybD0rlg/ZAVX7ADZuQxtljRjMcPhWfggJ0inFdQEckFzWoQfLyb2ZLpTg30GoQzu1Nr0lWWSp5J2hjnU4LyE6BoQjqjEqTuE7agUPeKq+ZPwLJBqjMEWLRILdqCRa69dqEekaktF3yfLHAYBGqGBbAuoAUjrOSECIK7fyQdzb9/r2BUIcrJQR0IPi6TpAEa1Shg1MvkbkO0G2DVUYInHXDTQUJUQLs2T7IuGcEMqHiXdDIkmyQlHKCUWmBIDn29SUTucm0ss9kUaZ+BuM0BXgBrF0hB4Cuz/bbhQjvgMDPRFJTgAOGAVqugvdpoZswMwMFL4CCNWl4JXagVc7vaYmqYAD0qVSyjZJklTh0syoEdNaJBlNAJCNAYbNR8eaOBgfv8trTmTtbsHcjKUjkw9b4DyR6nGCVQV/NXkRGoKQscMigyN2DBDYjYy0cu8Als5JkJZQhJQSd5y6PRD56OSDBA40OiKkGAn1BrIN1TlBF09KBMOaQZOzFNjiXAwxOpPZMrz5O0fzAJRsSmVcwnDQUsMuk5c4RCX4AJp+VxKmBLhcyYNk/UK1+RH5J1fAYS560oZCUsY7lMsMIYRGmMCucMWE1BWwvNnAzNzQQ0uElVVA2mpsVv8gfiI5FDJeBScuglq1xS+SDMk6mbpi0viCW4XzsMSNEQGBEgmxcq59JwAjaySW8mID8G4LN0WSelA7DnAHI0P3NNwT5PiQ4ZodMe6b5LugIGgXGyFYAJPn25MWWT79pw30cwlwYsoq3Qr1XpCy13kD8Bp+rkVhRyfEIo1OOj0PwOedvNPkhbXwhlm1+Pb7/9C/NFF2U=",xEe="eJyFWdtSGzkQ/RXXPO1WmZSBEAJvjnESb8AmGENCKg+ypj3Wohk5ugAmlX9fzUCyW6s+ysuUfVqXvh61Zr4XI1PX1PjiuLg6C05U1Ns/Ojx42TsYHB4eFf3irWn8VNQUB4xMsIpsCwatU1DUSm8T+JpUtW7XP6NShToiEy+0ksOm0nHkIP53b9UDlefKy3Vx7G2gfjFaCyukJzundu74wVNTUnlhatE8a/XmjXkojr/s7O33d/YOBv3D3YP+68HB136xiEOtVg2dG6e8Mk1xvLM7GPxHcLlW8rYh54rjOLO4Iuu6YcVgsP9iMBjELabGK/lkymZrWxt6f8g/e7tHr4/68Xk06J673XOve+53z8PesDRL6s23zlPtepNGGrsxVngqX/R6Q617F+1qrndBjuxdRONu4ziqVE01l2vqHNgtMveiKYUtf0rjwJHYvH/26MGrvX7x6ee/l3uv+sXQydZPtjh+tXfUL07o1/+d3YPDfjH35fvrOHO3+3n1/LN19hl5q2T0x5fvxfWnOL/11zQq4jYiuuFH/38wPUgt6hT/Fkw0dKlTSRPqZevnqkllpdFa2BTfkJVtdiYCUUeRi94BGnQBY9YTlhpNKyQC04RrV3S3zCwdXIrKWFQihdfbzZoY66MpyjCWOC3cOoUfyZoUNQ0TJX/PjPRrS8zYVSxZBlV3zFinHhiQ7jjriPdpoziFpdGGWcNRrYBIt1WcbvotCCYHK0uxDhkzvwVyHVOksWd0H6bQmxQapdBJCo1T6G0KvUuh9yk0SaG/UuhDCp2m0FkKTVNolkLnKfQxhS5SaJ5Clym0SKGrFLpOoU8p9DmFblJoGU+iW/I8bSyjDNTp8zzIKVIpqawMDIuGlrRdPDiYEun4jVeG4ZwlU2MM/zIVxHABU1AMy6WQSqG/U4ihV6aEGW8xVcvQ3oZxZQox3MDQC+P7kEJ3KXSfQgyTbhnS5/MLJMKSO0y78bls9EqX8KgvzT3jZ/50bo9L3fYraQq1XR3Ls1vu7FhpYxV7HoBVZLDxGJeMA7uycarrOmHXwnuzCipKagMooBV3C/9GDFy/YqpjxSR+bORYmilFVXFH2hPOtmJPDUcbO7LE1H7shURlxYYjtdj6E2PFv+5dCpfxcF4KXPQrAEBOWquNU0yhRkv92gTUKT4d+nxqRwdwrY+QwXONS8fkK01MOYO6qoW0XA4vLXEbl8YLyddbGa9axNpv2SqU8SoWG26Gu0NTCRtqLQKzjalik8mwtBSsHVTzCTtkWh5jy1Xs8fim8BQcsDOE8xvUkeSCZncQvL/b3pKpTg32NQhnVo+lGa+yMeWZoE1wPAmknwBJE/IRJRC6z1iDUt0pLps/A82GucoQYNIiN2kLJrnu2oVqhHJLLvg6WWA3CFQMC6BdQBPGeJOTSBDc/SNrqPz5voLZClGOBHkgeL9MswpolKOAUS+zq43QaoBVxxmedMBMBwlRgd21eaSmYgQXYIt3WSNDtkhywiEKqQWKSGjrTcZzl2tjmcVmaPcL4Lc5wEug7QJtEPjM7N5tuNA1OExPNAMpOEQ4oNU6aK82mmkzAzDwEhgYWy2vhC7VirldbTE1TME+Kpcs42yaZU4dLJJAjwbRIAroFDhoAhZq37zFhoF7/ba05pYa9g5kqVIOdL3vQLAnOUYJsar5q8gY5JQFBhnkmRsw4QZ47PklF3gFNvZMhzKCpKCzvOVR6wdPRyQYovYhk5XAwY+oNNDeMxQRdPSgSDm0MzZilm1LgIUnpD0TK8+TtL83GUbEqtXMKw0FNDL5PnOMXF+CDqfj8ZjANiYyo9o8k698Rn7I5vEpCJy3oqRaWEZzyrDCBHhpghLnFGgdnbYWmjkZ2psJKHCTy6gGdE2L38QP+IeQQRXg0mjQc1S5oPJOmGdDN8trXkaW4L52GBCiEVAiQDYvleTCcAIWsllrpiA+BuAX+bTOSodgzSHkaL7nmoF1HjMVMkanPdr7NmsKaAQm2VIAKvj85cZUbbwbw70fwVwasCguhb5W5S+03EH+CIxqsktFl+MTQqEaH4f2O+TXfvGBbHMulG2/Hn/98Q/b2xEO",bEe=JSON.parse('"eJyNnVtzG0eyrf8KA0/7RMhzJJK6+U2+zMX2mJYsEuJMzANEtihsgYQMEITaO/Z/P41CV+bKlaug86JQf6uArsrKXNVX8H8m3y9vb7u7+8m3k4t/btazm+7o5PmTZy+PTl88eXk6eTT56/Lu/tfZbTc0+Hu3eOju51ezb75bLq532maxYO2oarPb+aJndRCm3fzm425/Y8N/3M8W86tXdzeLoeXjYXv91/mX7vq3+f3Vx8m396tN92jy/cfZanZ1361+73af/PHLfXd33V2/Wd7O7sY+fvfd8svk239/8+T540ffHB+/ePTk8eOTRy+fHf/n0eR8aLxazO+635br+f18eTf59ptBBuHtx/nVp7tuvZ58+3TgF91qXZpNHj8+/svjx4+Hnfy6HAawG8z3y8/9ajeGo/+6+j9HT16+ePpo9+/z8u/L3b8vH5d/nx+9ul6+745+79f33e366B93V8vV5+Vqdt9d/+Xo6NVicfRm9z3rozfduls9DNTDOF8fzY7uV7Pr7na2+nS0/HD0y/xued9/7r4ZGi2OXv3taHZ3/X+Xq6P58AXrzfv1/Ho+W8279V+Gzv447Op6fnfz+9XHrsxA6cnv98NHZqvrqg4Nv599/vs4Ic+fvHg0eVe3np4cP5q8Wl/tAr0axR862/7m+PHzR5Pf76//Pp18+2QnDv+/2P3/9PF+vv7Z3a/mV0NA//0/k+m7ybfHz4dGvw5dWX+eDXH830d7fHJyssfdl6vF7Nb46fPTPf9jsxzi9X5hytOnz/bK3eb2/W6ibu6ydr1cLGYr4y+GiSn8c7e62qV7FZ4fH++F2e0grYf4mGQdLj0oM557/Xm26u4W3YeWRB+r3Zitd9+4/uQdfzEO9/Nis85duBqqdJZ38bH//LG7y82HocyXYiTrxWz9MQfrz261zHR512V4vxUt7z+uOtH2w3KzEnT+INqu518E7B46MbddiKmnw/xOpNXVcrG8y3jd3c6jZDOw2NlAot0fm9ki45tVN5SzD/PZkyc1abp1sZqqvHz+dJx7kX2vMvouo+8z+sH3/Oz5Hv2YO/NX/2BNhb/l7/p7Tph/5DD/lD/4c97jL156NeT/zB/8NffrLA/ot9zqdf6uN/mDv+d+vc0fPM8fvPBZOx0neppbvcvoMu/xXzn53g+L2afuPtiGhfz9oMU65c9FT7FUnK2v5vOr+epqc5tnbbOz7fWw/nR5j8XfQmfsY7M8nve51VVudZ1bieL8kD94k9HH3OV5Rv+d9/gpt/IStiXhNu/xLqNlRp9F1WerFxa4zpG4z9+1yR98yJWwza2Ek/aOdsc9xfRzV3f5FRPh+MXjmpWrRvtD2Xg/X1w3l/rr5VaYe1idPWL35TjNk+NJrbgPuwND9Fkfs1o7PiyWq7ng667xLVeb1bCMX3kAj0+wbNbzcuCaoluPWnRZ3Wzmg3K7vNdHDju5fPFX5Bh6S5wPc8HE8dNwKCcPB65nNzedSNs9x0MxOuDYzV236kTtD8dCs5vV7DOY2tOaWcNJRCd80MP7frY+EOHD6kofK9gERH04KRg/Pxxizz+v52shDWO9/7jchGPFtOyH5PaZW80eRD3Mrjb36tClePmHRfcla43Kup1drdThzvtVp3Z8vbyfXYWKc2k+zCQGwJQV1qF3trseQqqOUTd3N7PV5nYx24jdLG+Gw8xP4utmOA6Yl9uQsy688sOek+cjW66uPwzHeeHA0I9Q4iLrByCR+x7OYA/Pntoebgen2yxwF7ayzMRie70r+vVaLGCLuGNfeSK3I5KlGNRQn8Mp8ZD34hziH2lK3QliBvryH/PGlyY5qf51cfb86Cj3oC4X1/OHOSS0fyT2zA+YRXF4txsfOj/0ob4Rg3U596IygaHmr/T9hVJx3J6IGdWDfyb2zmeCPuBnAWknfs4weASchBxXJ1YDfX7yvIrjVQ+xK3IdXztjHvgodVx+VR3w8mjlaDRVP9KXw7FTqda3RWOFcCarhAzRw1yzJ/rha9z76ct66rn8s7u7EZn7Ju7Cz+LUID05DhbJocx9xQuJHc02xnrFY/Xznxw5i+rbj8uVGNUZ7d3DQFVgJ3pU8Kd1EaOwWTXRDjxienErFzjWm3KUsxL9jSnoUWzxaKtmgrebxf3886IX/WqU/9s4QEuk4Xjrfj5bXM8/fMhz1bet4de4H09YkSxeGwfT7MCq05auGuO9a9lgK2N+jQHyxZDqHy+/DUcMeA3OToFWy0/dHZ4ImTmuupv5Oh76eonGyYblONdFPdRYb4aqDucjHmw6hrTCbERm2Ur1fzU+8C+q8NOX9di1XOmK18Eszj/ef8zw+6YBLpRv2VjuGybTNVfHlvCqdfhwICtjgP18uVUavG9zhdaMtJae1jK6bu0517Ht++BhCa+Y9bigW9wLA78PJu2euF0ecMTUNfu6240YSWMNX8rjTK8FPvixq0/xCOfFySn4+JDAqyGR1/n7fud8Pa2Tv2gsJD8fXH9/iRPnpxJ2X0eZYrIFt4wYJuetGv8ldtviMETt42wBS0Mt8t2pSaxwnwu1BJgvx8MmT7WvTGCjFLrWgG6imeKAxmlVs6rPRn6XB4iWwbLnlhDXg010KmMbS/731AlbuMhtTs3Or+dXymh/iF8EB2aHDnd/pcNa625j3t4czuuD+3rV+M5XTZOOpwM2A/F73IgPHFD+2Fruad9+iVie3dkBWTwSsG87WAo0QeaXB/e0WN7s5vtuKcK9bJvpJq9jNYOGr2pU8s3Bye1gJfeYN9L3Tq7jdnHnLh80u+e3lrsfN7u7kf95NPm5W939NpuvdveQ/z15tbtbPXn0zenj/zwat/buEdC+nxGNpo7wb8PWU9/au0pAODAUzsL3nOUu4NIbuE1VoPv6Dyg4T1DGkAW2vzoU0L5wEL0OW2+HrZe+VWOGKIzehfMQi/M6ekBh9MBh9EDr6AHR6EGx0QMb6zqwYidILoatF7Y1Hbae2dblsPXkiW/WISGDvgPeDJsnvlU/CCjEAjh8H9AaC0AUC1AsFsAsFsDGWDh5CJmwDVoft/KI+tzzsRGWpiEqDuNUpM65UqsC5WqIata4LNyqnuXv5hI2rurYxFzMJlFFG9dlbTLXtglU4Mapyit/nRHUuyEqeueq8qt6niPKHmBcGYGJ2Q1MIkswrn3BZDYHE9ghTIg2UTF4RUVgGBWhaxhj6zBB+EfVwEQMUd0ZV3ZiYrsy2ViMa3cxmS3GBPYZE6LZVPyQE3KbW/UCNQIhXGg0A3QhQ1TfxsmFnLMLVQVcyBC5kHHpQlU9y9/NLmRcuZCJ2YVMIhcyrl3IZHYhE8iFjJMLVf46I3AhQ+RCzpULVfU8R5RdyLhyIROzC5lELmRcu5DJ7EImsAuZEF2oYnChisCFKkIXMsYuZIJwoaqBCxmi4jOuXMjEdmWyCxnXLmQyu5AJ7EImRBeq+CEn5Da36gVqBEK4EIYGrShyqvQokimRyM4UZLCnyMmjoiiNKjQ5a+yPLSuKyrdii2xeUScHi6K2sdiGvSyqZGhRJFcL4usGB3+LnEyOROV0ocl5Y17Y86KojC+2yO4XdbLAKGofjG3YDKPKjhjVaItBA28MHAwycHTJKLBVRlX4ZWgAphk5GUYUlX3GFl/xFTbSKGo3jW3YUqPKvhrVaK5Be2jUxbbRvm/xQ/ETrusEPRcpGRVK5LdBYrcFEbwWKTktStJnocGZ3A97LErKYVHP/ooquStK2luxBTsrauSrKJGrgvRaUnBUpOSnQVJuCg3OZezZSVFSPop6dlFUyUNR0g6KLdg/UWP3RC16JyjgnEDBN4GiayJmz0RNOCbI4JdIqdpRUl6J+kEvYJ9ESbsktmCPRI0dErXoj6A8yAzfyra9pu1ICVccR4+WaIhMxTiZoXN2wqqADRoiDzQuDbCqZ/m72fqMK98zMZueSeR4xrXdmcxeZwIZnXFyucpfZwT+ZojMzblytqqe54iypxlXhmZidjOTyMqMax8zmU3MBHYwE6J9VQzeVREYV0XoWsbYskwQflU1MCtDVH/GlU2Z2K5MNijj2p1MZmsygX3JhGhKFT/khNzmVr1AjUAIF6p9RRtyRhXuAhkRCOxEJoEVOSMvckGakcln4vvZjlxQfuRqNiTXyJFc0JbkOnuSK2RKLpArmfBaMPAlZ2RMIChnMvlcxJe9yQVlTq5md3KN7MkF7U+us0G5wg7lSrQo4+BRxsCkjKFLOWSbckX4lIlgVM6oQF1QVuXqgfpls3JBu5XrbFeusF+5Eg3L+IPI1a1o1yvWiolwrdoxdC1nZAQukGuBwK5lEriWM3ItF6RrmXwmvp9dywXlWq5m13KNXMsF7Vqus2u5Qq7lArmWCa8FA9dyRq4FgnItk89FfNm1XFCu5Wp2LdfItVzQruU6u5Yr7FquRNcyDq5lDFzLGLqWQ3YtV4RrmQiu5Ywq1AXlWq4eqF92LRe0a7nOruUKu5Yr0bWMP4hc3Yp2vWKtmAjXWo2/6OG7q4RMoGLyK8PsVqMAXlUJOVXF0qdG8Sx9L3tUxcqhqpb9qSrkThVrb6oqO1Pl5EsVkyuN+HUi4EiVkB8ZVm40iucphuxEFSsfqlp2oaqQB1WsHaiq7D+Vs/tUHr1npOA8IwHfGQm6TkXsOZULxxkl8JtKqLIqVl5TtWbNsc9UrF2mquwxlbPDVB79ZaQPKeu2qU2fiR69cJUx19FWDFHhGidjcc7OUhWwFkPkLcaluVT1LH8324tx5S8mZoMxiRzGuLYYk9ljTCCTMU4uU/nrjMBnDJHROFdOU9XzHFH2GuPKbEzMbmMS2Y1x7Tcms+GYwI5jQrScisFzKgLTqQhdxxjbjgnCd6oGxmOIas+4sh4T25XJ5mNcu4/JbD8msP+YEA2o4oeckNvcqheoEYjsQt8N9FXcip8tqDoGIBHSwvUeYiALoiAVRvEpLISmkFq+jnbV9cS3LJ0che4CxwRzWrsLiKYcFBsIMBsIsHEge/LDGPdT34pu+gPGHZDw1h8o7kCjo/4Q4g7Mugts7C6QaJs/jCXvW9OwtSv0575VRwcIuux0/3tsdXJ3ZPzJNUOj/2L4DFEMjVMgjatomphDahLF1TgH1wSOsAkxzIYp1pVfZDTNCEJviOJvPE9ClWgmKk7TUV4IjNNREU9H5TwdlcvpqKKYjirxdFSepqMKaTqqQNNRMU/HyC8ymmaE01ERT0flYjpGiadjxDQdfx1n4oVv1V0BqvEHFEIPHDoEtAYckMUamIUZ2BhhIDW4jnbjPPatOgJAdQSAwgiAwwiA1hEAshEAsxEAG0cApI7AUZ2tJ48N2UyN7Kdxqo59Kw70J5wqQGKgP9FUAY0D/SlMFTAa6E8wVUDiQH+CgTqxcTraxK08zE1jTBs5pk0eEx+SgSJGuxGj3YTR/jzZn/Kc+FY8LipIHAQVng6CCo0HQQXJA8mi0OFRYfV8BlA8Ftqhctzy1LbsWMhRPYFBFA6PnOPhEVB7TTRgO2py5MdGzvzYyNhyNwLfskg7ipF2jpF2apF2xJF2xSPtzCLtyCJtaBPivsn5oc47fp6oU46fJ+ls42eR1aCI/ODTi58nfGaxI70tUGUrLtEFpYU2vIsf6oIECgGpKhrUJAeGGlCMSNXhokYcOZKpyEileosqJD8JVIWkUkGyKmqTmuQy5Qa5YqkFFS+pXMckc0lHGaqbBCp0UlXNU5Nc/tSAnIBUbQrUiP2BZLIKUsk1orppJRJ7CalfLyThMNTgYCE1fIcaHS6k5EYkR2OKIngUCWRXpCbn+mWC1/DKVrx8t0fiyt1O2B3ej5eddptTO0bdbZULWce+aSUODOvScfwFzUE6jZLgfo3nl0m6vPPLRF3Z+SW/o+qIgnDwHVVTMRz4BueLiDAw+Q1OFkSIqtaKU9BbYp8DwWFrv/X4S8wriCAJFEdWVTRjG4xpVCCyUcD4ksJRJlnEOrZoRVy0Otykb4WS56BdwGOD0V5xDgxR9J2ruFcVI14ZxLoijLIxjq8JIrJVa8U06C2xz4HgCBpPsRuO08oJ5lPfirccCop3gwoSNyAKT/ceCo23HQqiWwqF0d2EwsKNhELqeunorZn5Gc45ojDdLlyE75mGrXdhy6/QnE3SxZmzibous6P13Nd3aee+I6oWA9NgiObCOE2IcTUrJuapMYnmxzhPkgk8UybE6TJMc4brDoWBZ6+x7pB6kb97mtG7jGBa00LEPE9wlWiWK+apDi9TwXxHTpMeRZr5KKrpjy1yDkSdEiGKnA1R5ZSIasyLqFFypPc6VfQ4TQ6916maXDT2N23wdw0O+aNfb5RizqSgUzoFjXMKXkSBjEJK+YQSZRNKKpdQz5mEKuURSpxFqHEOoRYzCBXKH3qHLceJc6f9DltucCH3M5X0naSQMerVLiHlbAGVcgUUzpT6pgCkiSHKEeOUIMZVdpiYU8MkygvjnBQmcEaYENPBMOUCvuxDYeAsaLzsQ+pF/u5pRu8ygmlP78YwzxNeJZrtinmq47k5zjgrNPEs0/yzrNKA2+Rs4BaUFCxzbrDOKcJ6zBRWKWFIftuMKadPklUWUaOL5n6nTeVdU4EMY4USjeWcb9SC0o5Uzj57uh/yzhllnAuUay6oLHM155drlFkucE65wtnkSswj55RB4UUejghnTetFHpYvxPdPBXsnGORFft8lCTkXTKMsMM7zX083YfoN0ewbp8k3rubexDz1JtHMG+eJN4Hn3YQ47YZp1vEaBIWB57xxDYLUi/zd04zeZQTTnS5KMM+TXSWa64p5qutTYzDVhmiqjdNUG1dTbWKeapNoqo3zVJvAU21CnGrDNNX44CeFgae68eAnqRf5u6cZvcsIpjo9J8k8T3WVaKorpqn+bZzl8cmE33CGkdXZRUZP1rkQHq1z7M/WOYNH6BzCM3QO7SE6R3UGgflzMmUrXjErKD7RWJC4q1J4uq5WaLx/UhDdDymMboIUFu58FBLvKv4G8zZeTdyh2KDLg7L7iIj0oDo5qHCbEHAeayfG2omxLkOK2f0+QOKRr8LTrZxC44NeBcmHw4tCT38VFh8JLyg+2/UbVscY/dcTfMS0bMVHTAsSj5gWnh4xLTQ+YlqQfMS0KPSIaWH0iGlh4RHT155GPow6tD15M9nfzYet+GxOQeLZnMLTszmFxmdzCpLP5hSFns0prE4RoPjY0ZvRn2GrZj6i4MounMetPN7zxnjP5XjP83h5IkER4z2nZ5HewEQ68WXkzQQfMnwzrhSuXcal+Q2tDyOtVzFh9g1RSIyruJiYg2MSRci4DpPJHCsTKEGMU5bgdWhGlC+N69CkngvUiJXMIRPbseJsMn44VimvTODkMiFmWL7UbghyDa+rUyvOOnVdfZTqg8SQeoYonMZVOE3M4TSJwmlch9NkDqcJlHrGKfUqfysQpZ5zlXpVPReoESuZeia2Y8WpZ/xwrFLqmcCpZ0JMPXy0nTIEUg8fbadWnHrq0fYqpefYjqXAoT3wHJtuIsKsn2PTaiPkjefYtMypqp9jk+rbpsDJe+h5B9nmvCkcjLlO6tjkazFPCR7V/5+Y52SPckr5KFPipwdBZJZiEaTnQOQnUkE0nwLZNximu5z9vfSt+g2A6hkToDApwGEPQGv4AVk4gVkMgY2BA1Lz15G/oPoWSxiQONV4S8UKNJ5qvBVlCQqdarzFAgQUTzV2aHeO98K34rsaBcV3NQoS72oUnt7VKDS+q1EQvatRGL2rUVh4V6OQ+K7GDl0tFzTyeu7qbXafeOZbdZSAqrEgwlECh1EihVNXwHXwgGzwwGzwzj72nz925Zzr2NgyjGqZZ2vZmJqlnJplnho+nQVFTJqdzgLKM2Sns45WcSsPZBW93IV1dzvPU74JpbjJ9rFpeMVGesUmewU/kgqKcJGNcJFNcpFtmPA+buUk7XPm4buILwlRENK7iMxVhNS7iCxRrPK7iCxwbPhdRMbktXj8fkqIXFcfv7OY/TcdvzPXTpyP31kgT07H78TBxQxRrRgnnzauHMHEbAsmkTcYZxswgQ3chOjihsko/LXPhQodmXrFXa4Ftnfj5PHOhdGb2K45Zfmmke8bZ/M3gVeAKqRloArLHAxeEIwfygGxNJjUyIHGImFyK0V4uTDeSAVeOCpfCdQYul5HqioWkyrBimKo4ahybTGx7Zy8yhjXS43JLWNNi44J2li3Odt6gRrlpFajcKCPa1IUOI5R5fUpqjLWsYmIeGzAcY9qCm+UU5CjTKGOIq9k6XLAqRR4VTtwOUA3ESucvhyg1cZq17gcoGVe+fTlAKmi7UeBiz6qvCJGVXpibCKcMTZgf4xqssEop/UyyrRqRpENM6jsaCTGdTS+SNeq5bSmRpVXVlLV+hqbfM1L5FobW/CKG9W07kY5rb5BzmtwfMmuFc60Hkf16xmo1ubY4GAGttbp2OhwmqY1O6oHEzGt30FdNYWDYWus6KGNWtdDA1zdo3BwbdIrfWzytdUnrfpRbaz9sdHhJSofB0T50BK1bdVA3xQOWkM+Sjif4BM953g8ACg+x3OeVn7g6XriOa7xgOiZnfOwmgMLT+qc47rtqNroiRH6IZR6PRnH2nj1xjmN+tCrNy7m8TdevXHOkWi9euNCjEnj1RvjFJ30ysrIG6+sEKdgHXplhUQVtq+8skI6BfDgKyukcigPvLJCGgVVvr2hIsjhlW9vBEqhbb+9ESQV1oNvbwSVQnrg7Y2gcTibb28EhUIpXm3IseIw5lcbHFEAG682OFeha7/a4BIFrfVqgwscLv1qg2MKFL8SQKHgEDVfCUgKBezwKwFJVuH76isBqQUF8yuvBCSdQ3vwlYCkUqAbz8LruHLYxbPwwCjUrWfhQVDhPfAsPGgU0uaz8KBwGBvPwgOn0KVHxzkqHC77iW0IlzMKlwsULhdUuFzN4XKNwuUCh8sVDpcrMVzOKVwmULiMc7jGXw6GYFVCoaqYAlWxClPVcpCqQiGqmANUOYen8hicSik0I6bAjJTCcjGG5IVvxdOVCwwFIHG2d0EhABrP6y7C0IHRNYQLGDKQeJK2Q/6zzGUrzlxB8SzLhbO4FVOhIDHfhae5LjTOc0Hy94KLQrNfWD0/BRSnd4d20/rMt+IpS0E1BIDEdYvC0ylNofH6Q0F00aEwutJQ2DhjQOoIHMXT2YtJekR7h+Kguzw5dqUGkZ6vTs5XuBADOE9jJyarozLdMbu44tm5u6Dy0rfiKXlB4jy88HTyXWg84y5InmYXhc6tC6s5Biheyr2Y5Ke2dyxfiNjRTZjZTc7GTSP1NjL1Njn1+DICKCIpNyIpNyEpp6PrwVbs9RRdD5AYyJRcD2gcyDS4HjDq7hRcD0isoekEH7iboncBEo95Tcm7gMYHuqbCu0ChR7em6F2A4oNx09G7Tn0r3gyYoncBEjcFpuRdQOPl/2nwLmD0q7VT8C4g8Vr+FLzrCRC8Cj0drWv/I2VTtC5A9nYJoPwLbVOyLqT4donj+BNt02BdwPztEmNmXT7UZUi4ZS6SZaMilrIilrki2LpAEbVi1gUoFwZdqJ2Sc/m87Zzr1MZvzgUoJp5zTDynlniO+GaTK56SzjwlndWUNNKHeupz3fepvi9Hwxt/qekSHQ+ZvZEGLL6IAwK+iQPYXsUB5m/cAPRXbgDWd24A2RtpznbW99y34ot8l8n6gKd3+y7R+gDRxIFigwFW8xJQ7bajmS2wl2h9gOLN4stkfcDTscElWh8gOgK4DNYHLFxHv0Trc1RL6CmQW/xl5svR+174VjyfuETvQ5TPJy7J+5CC9wGOpxmXwfuA0WnG5Wh0MARzOmTq1cxL8jrE9GrmpXA7lPitzUv0O2T0hublJP8Y9iVZns/XJjbaiIFuWgPd6IFuxEDZ91BSA3XnQxhfT7206/RgBukmRBLY0/RtiKQKd0s3IpKQfC7fikgKOV66GcECeF96x4y5ckH1jhlL5Ietd8xYZmdM75gxJ4+sHIzSELmlcbJM48o3TczmaRI5qHG2URPYS02IhmqYXNVvMoVS5XtPXANgc4bIaY2T3ToXnmtiNl6XsvuaRhZsnH3YBDbjKizFoJMtmyAty1ThW6axeZnQcDDTk42ZwqZtAjt3upPIgvDwKm1E8+TmJhyMj/J101rxaTm86c34ZK83hQyfbvlVJ1T3/JTGzt+866caCP9X9/2UllYBeedPibQWqHt/QoMVASktCiipdQH1vDSgSqsDSnqBwBa8RqBGywRKtFKABIsFUlovUKIlAyW1aqCeFw5Uae1AiZcP1HgFQS0uIqjQOhJuBgfHELeJRYGBaSOlNQUlWlaCJFYW1PPiEtS8vqBMSwxKvMqgxgsNaEsdkrTcoCYdFRsIU0WZfRW1hrVik+SuKPIChBqvQepRAaGJlQjUjf5QWo9Q+1oA1aqE8oEAttYmbHIogHmFQjEuUkM5TfxXQsqW/66PoXj/yYXd3yTc/5WH3dY2bPl1nrIVr/MUlK7zVNfDHhmibhmXfasqdLCibUZ97gH313ju9Ngx7LQh6rRx2emqQqcr2mbU5x5wp43nTodnlaDnkVP3oyjHEJrAQALfNnjf6B+PK4p5cJDuMDSkNDCU5LCgAQwK6FbSXvaJh4NSHkx9zAdGYoiGYVyOoaowgIq2GfW5B9xv47nT9tgH9NoZddsF2W+ToePGtoL1oh/cdxdy5+0hDOi8M+q8C7Lz4c/Tjx0Nf56eWS/6wZ2Xf55+1MYHJaDrlVDHK5bdhr96PXYQ/up1JH3aN3dX/NXrUam/QAe9NUTdNS77i38kd+we/pFcQn3uAfdZ/ZHcvfR+oAvbc9ny4wRDqpdF8IObijbhq+nv4b1PxxrAZd/o7+G9FwcUoNCN0Pfh8AFY+LWK92OkfauPW3kMOY5XA/VA7LY+Be2T+gGRqzH4sBX3dZWDD0K8xXs1dtx70MeZvKKOj7QeC3zMCIZgSPamqguBaETGD38RjQ2PbaiTPEp1bDNK9uJrRjBUQ7KHVV0IREM1fviLaKj4viR1koeq3pes0nBat1jMaLAGcbgOdT9NX0jIg3bla1/HAzelV11Og3clD39/cjRZf55d7T5yOtJywp3/bM1xlhta/MLh9GxybTstW1f7v10LyE38Ovj3dR2ob9kIHeHQ9nTcA+7YEO298of86W1GvUDUI+OpW7uKG4O03zleSj028hA+sA1bX8JWH7diR1J97yldpx87whd2jyN+yJ/fZvQlo14g6qb0or1EPz4w9pVfTz+O+CF/fpvRl4x6gaiv0kxGSbwmUjus3hI5FtpD4+u2Df6lwfsW5+G0zqpGPV+IG0ckrsEcJ+VBftFW0i+S9prSKBonU1X1a3M8CFB4FCA96O/aavxF476BeSio5bHQayHjOPitkOOIH/Lntxl9yagXiPqrzgdHiV8PGDub3g44Jv4gvmIr2BfBesWoy/I0cNT4Gf2xz+kR/WPiD+IrtoJ9EaxXjPosz/722ocJXiSvpItb8aigoHotHFH+AePC05HDnuKflHUcf9e4IPr14sLo14t3bGlHOWUrHjIVJE6KCk8nGoXGk6KC5ElRUeikqLB46FVQfDr0wyRcgq6IDp1OohDozX6unvjGOGwg40whgTgA9jAg9GkCOsYGSA0AoDpHjvykXVxeaF5aqO1gpEbicA3HMTvOAzctjd6VFAKTYhwMUzCMU0TyZeCbxmXgm4OXgSOEMOkfgdBiDNmBn4DQLVL42j8AoRvEUDZ+/kGrFNao3rTCxCEmVQW6/knNY9+KNsN/SHNPP43utHfcT+hOgKJ9Ok+W/QndCRDfA3LFHdSZXVVyZHfK9ij/SoYWaCyHfiVDN8kjbPxKhlb1uFu/kqFlikbjVzL26iKszouwBi/y6ruQ6+4inwct8knPonHSs2if9MQrAvj1+QchtEC7av8gxNig/v2XbUa9QPT16u/P7qXbCV7pLFux2goSi3rhqQoLjYt6QXJRLwot6oXRlc7CwpXO2wn+2d1bHDEg6N2e3k3qTWXbikddd2mwwNMh1t0k3DA2JP9GxN0k3h42RkdZdxO8GVzJ7uD11LbcHsU9FH335C4+4RURBaH1fFcUczjE012R68CoZ7uiwCHKT3YFDMHKt5LvUrUzz7HD37t7Qohip3/vjsUcu/R7d8x17PLv3bHAsePfuyMMscNLLhQIjp265FKl9JtCT6TAcTzwm0K6iYip/k0hrTbi2/hNIS2nWMvfFJIixj0tITKUaQ6aS8jYoN47gzkwRNE3ruJuYo64SRRr4zrKJnN8TeDImhBjivcbTyPqcyA4gu2bi8sJ3llbhnV4t+V/uGkZdrXMe1nqHaB3EYJd4UXck9iqzx/kPbcdbpmucCoOHUlXOE9E+77xPdyvrzw3Aoeu2DV5uRIpdEs++xEodengsx9LvGpHCLqCV+1OYqs+f5B70H6Kg47FsRekQGdIgT6R0je/jXvIcu5ouF7IDDoXrheeULtefJa7cuCxkXrWgX3IB9OGoAd4fE0f5P2r4+tRQksiBLuvCHafjWvZMK5l27g+T/D84DN+FlA6K6gXzFp3GKPeEuM9RvoqU1+4uug+3Ncv3f//m9NnptYPXscPGa73DIXmN3wjjnGMmrrpG1vEa49BC3ERY1jFsBiuHVJavRostdBZ0WI3t88ErjtUWvzFUtLqTWuthu6oFnnyq+SFMgRp96wHbsUJK6j2EpF1DuB4/f2ZkeugW/o4urF6KFt2KcsRXb8ywV569y9bxq08EHXlvPBU1IXGk+yC5El2Uegku7CYvQXFK+c7ZFfOPWx/hAbrMO51NJcVZhEimx+EjVje11s5ZSO0cv5QL0yu9oYHG+GC7Cra3QjtdrsPzRBNlHFKO+ece3Qvv0ay4uvcklPRnqn2uBiipDQuo2lPSFF6Vr4UqDF+ma0m5pQ1ifLWuE5ekzmDTaA0Nk65zM9O8DT8kZuuc+A4v41TkjvnTHfl0AR5bhtRiQ8nDZTJfSaxDsS5wKjY8xweEUOUDMapGJxzMfBfqngW8XVuycVQORSDISoG4zLW6Y9H0A6WAjXGL4tB/e0IlqgYWn87gmUuhvS3I5hTMaS/HUHT8Eduus6B42IwTsXgnIvBlUMT5PluRBUDXMGiTO4zicUgLl9VJVxUwZKIAidGVLk8SE1FEnUqlSBetz6Vyibfr3uqBC6hg/frVJtUTukGlxYORlAXWPMGl27AxXbwBpdulApP3+DSKhdhUFMpBvWP1sfWrWlIxRlVLlFSU6GS/vU0gLqMXJYuXwqV1de3OBVz6zroXo/Xi2qYEOUHEj0gATbuAcJLjXQKPG6Vv905vuhnyJ/1IU63yIN6YadQlUwT2f0JyvHM3JAlB3G8EBClevY+npa/yOKo7PN3mMOJO1rZigVeUDUbQKLQC0/VXWgs6YKoRAuj+4mFhfuJhcT6fADrfWFk518nvhVvOj4kpwKebkY+oCcBIiMCxX9xzVm1HEB1HI7op8u2MLRTI27N2+zH24YJb6XzbrPdbpseuxXGus1uus0WusWh7Qeyu4Ls9x3KVry1UVB8rm6P8o2OwtM9jj1Nz9UVHO96FER3NAqjmxn9WCsnvhXzqsdaASRSradaARpTrQ+1Asx/ws/ZWCtAYo71qVb6MA99noc+z0PfmIdezkOv56HP89CLeegb81CK4KltWRE4ikXgHIvAqRWBIy4CV7wInFkROLIiMET1XRdEzCpDlFrGKb+MqyQzMWeaSZRuxjnnTODEMyFmn2FKQb7MQqGAdDBEGWmc0tK5yE0Tc4K6lLPUNEpV45yvJnDShms3TyOi9G1cuyExJ3K+dkNcp7S4dkMCJXe+dhM5pzncpINMR0rJjhLlO0oq5VHPWY8qJT5KnPuocfqjFisAFSqC/C6IiBWkG1KqBpSoIIIkagL1XBZBzZWBMhUHSlwfqHGJgAZVgpQKBSVVK6jnckGVKgYlXTTYgusGNSodlKh6xGtAY1L8OYHnmP+EHAASnlj+k2ccMJ9n/UnzCzQ8hfwnziag+Lzxn+DjTGKn2cUTzt0XHp6UNBB2cMY0pOTfI68nm10mcVyG47gc53GZlsblShqXSXFchmlcxmlc+JJUp2kcX5DiGKOUxxn0NNaopvEGOY45SDTuoMHY//O//w/7Vd1G"'),AEe=JSON.parse('"eJyNnVtzG0eyrf8KA0/7RMhzRIq6+U2+zMX2mJYsEuJMzANEtihsgYQMEITaO/Z/P41CV+bKlaug86JQf6uArsrKXNVX8H8m3y9vb7u7+8m3k4t/btazm+7o+PT0xcnRsxdPXzybPJr8dXl3/+vsthsa/L1bPHT386vZN98tF9dn7xfzPzbdrslmseAmR7smR9Bmdjtf9NxqEKbd/Objbve7Dwzb/7ifLeZXr+5uFkPLb45PBrL+6/xLd/3b/P7q4+Tb+9WmezT5/uNsNbu671a/d7vP/vjlvru77q7fLG9nd2Onv/tu+WXy7b+/OX5++uibk5MXj46Pj08fvXx28p9Hk/Oh8Woxv+t+W67n9/Pl3W5Xjx+D8Pbj/OrTXbdeT759OvCLbrUuzSaPH5/85fHjx8NOfl0OQ9gN5/vl5361G8XRf139n6Pjly+ePtr9+7z8+3L378vH5d/nR6+ul++7o9/79X13uz76x93VcvV5uZrdd9d/OTp6tVgcvdl9z/roTbfuVg8D9YDO10ezo/vV7Lq7na0+HS0/HP0yv1ve95+7b4ZGi6NXfzua3V3/3+XqaD58wXrzfj2/ns9W8279l6GzPw67up7f3fx+9bErc1B68vv98JHZ6rqqQ8PvZ5//Pk7J8+MXjybv6tbTJ8NcvFpf7QK9GsUfOtv+5uTx80eT3++v/z6dfHu8E4f/X+z+f/p4P1//7O5X86shoP/+n8n03eTbk+dDo1+Hrqw/z4Y4/u+jPX7y5Mked1+uFrNb46fDPBb+x2Y5xOv9wpSnT5/tlbvN7fvdRN3cZe16uVjMVsZfDBNT+OdudbXL/yo8PznZC7PbQVoP8THJOlx6UGY89/rzbNXdLboPLYk+VrsxW+++cf3JO/5iHO7nxWadu3A1lO0s7+Jj//ljd5ebD0OZL8VI1ovZ+mMO1p/dapnp8q7L8H4rWt5/XHWi7YflZiXo/EG0Xc+/CNg9dGJuuxBTT4f5nUirq+VieZfxurudR8lmYLGzgUS7PzazRcY3q24oZx/ms+PjmjTdulhNVV4+fzrOvci+Vxl9l9H3Gf3ge372fI9+zJ35q3+wpsLf8nf9PSfMP3KYf8of/Dnv8RcvvRryf+YP/pr7dZYH9Ftu9Tp/15v8wd9zv97mD57nD174rJ2OEz3Nrd5ldJn3+K+cfO+HxexTdx9sw0L+ftBinfLnoqdYKs7WV/P51Xx1tbnNs7bZ2fZ6WH+6vMfib6Ez9rFZHs/73Ooqt7rOrURxfsgfvMnoY+7yPKP/znv8lFt5CduScJv3eJfRMqPPouqz1QsLXOdI3Ofv2uQPPuRK2OZWwkl7R7vjnmL6uau7/IqJcPLicc3KVaP9oWy8ny+um0v99XIrzD2szh6x+3Kc5slxXCvuw+7AEH3Wx6zWjg+L5Wou+LprfMvVZjUs41cewJMnWDbreTl0TdGtRy26rG4280G5Xd7rI4edXL74K3IMvSXOh7lg4vhpOJSThwPXs5ubTqTtnuOhGB1w7OauW3Wi9odjodnNavYZTO1pzazhdKITPujhfT9bH4jwYXWljxVsAqI+nBSMnx8Oseef1/O1kIax3n9cbsKxYlr2Q3L7zK1mD6IeZlebe3XoUrz8w6L7krVGZd3OrlbqcOf9qlM7vl7ez65Cxbk0H2YSA2DKCuvQO9tdDyFVx6ibu5vZanO7mG3EbpY3w2HmJ/F1MxwHzMttyFkXXvlhz5PnI1uurj8Mx3nhwNCPUOIi6wcgkfsezmAPz57aHm4Hp9sscBe2sszEYnu9K/r1Wixgi7hjX3kityOSpRjUUJ/DKfGQ9+Ic4h9pSt0JYgb68h/zxpcmOan+dXH2/Ogo96AuF9fzhzkktH8k9swPmEVxeLcbHzo/9KG+EYN1OfeiMoGh5q/0/YVScdyeiBnVg38m9s5ngj7gZwFpJ37OMHgEnIScVCdWA33+5HkVx6seYlfkOr52xjzwUeq4/Ko64OXRytFoqn6kL4djp1Ktb4vGCuFMVgkZooe5Zk/0w9e499OX9dRz+Wd3dyMy903chZ/FqUF6chwskkOZ+4oXEjuabYz1isfq5z85chbVtx+XKzGqM9q7h4GqwE70qOBP6yJGYbNqoh14xPTiVi5wrDflKGcl+htT0KPY4tFWzQRvN4v7+edFL/rVKP+3cYCWSMPx1v18trief/iQ56pvW8OvcT+esCJZvDYOptmBVactXTXGe9eywVbG/BoD5Ish1T9efhuOGPAanJ0CrZafujs8ETJzXHU383U89PUSjZMNy3Gui3qosd4MVR3ORzzYdAxphdmIzLKV6v9qfOBfVOGnL+uxa7nSFa+DWZx/vP+Y4fdNA1wo37Kx3DdMpmuuji3hVevw4UBWxgD7+XKrNHjf5gqtGWktPa1ldN3ac65j2/fBwxJeMetxQbe4FwZ+H0zaPXG7POCIqWv2dbcbMZLGGr6Ux5leC3zwY1ef4hHOiyen4ONDAq+GRF7n7/ud8/W0Tv6isZD8fHD9/SVOnJ9K2H0dZYrJFtwyYpict2r8l9hti8MQtY+zBSwNtch3pyaxwn0u1BJgvhwPmzzVvjKBjVLoWgO6iWaKAxqnVc2qPhv5XR4gWgbLnltCXA820amMbSz531MnbOEitzk1O7+eXymj/SF+ERyYHTrc/ZUOa627jXl7czivD+7rVeM7XzVNOp4O2AzE73EjPnBA+WNruad9+yVieXZnB2TxSMC+7WAp0ASZXx7c02J5s5vvu6UI97Jtppu8jtUMGr6qUck3Bye3g5XcY95I3zu5jtvFnbt80Oye31ruftzs7kb+59Hk525199tsvtrdQ/735NXubvXk0Tenj//zaNzau0dA+35GNJo6wr8NW099a+8qAeHAUDgL33OWu4BLb+A2VYHu6z+g4DxBGUMW2P7qUED7wkH0Omy9HbZe+laNGaIwehfOQyzO6+gBhdEDh9EDraMHRKMHxUYPbKzrwIqdILkYtl7Y1nTYemZbl8PW8bFv1iEhg74D3gybT3yrfhBQiAVw+D6gNRaAKBagWCyAWSyAjbFw8hAyYRu0Pm7lEfW552MjLE1DVBzGqUidc6VWBcrVENWscVm4VT3L380lbFzVsYm5mE2iijauy9pkrm0TqMCNU5VX/jojqHdDVPTOVeVX9TxHlD3AuDICE7MbmESWYFz7gslsDiawQ5gQbaJi8IqKwDAqQtcwxtZhgvCPqoGJGKK6M67sxMR2ZbKxGNfuYjJbjAnsMyZEs6n4ISfkNrfqBWoEQrjQaAboQoaovo2TCzlnF6oKuJAhciHj0oWqepa/m13IuHIhE7MLmUQuZFy7kMnsQiaQCxknF6r8dUbgQobIhZwrF6rqeY4ou5Bx5UImZhcyiVzIuHYhk9mFTGAXMiG6UMXgQhWBC1WELmSMXcgE4UJVAxcyRMVnXLmQie3KZBcyrl3IZHYhE9iFTIguVPFDTshtbtUL1AiEcCEMDVpR5FTpUSRTIpGdKchgT5GTR0VRGlVoctbYH1tWFJVvxRbZvKJODhZFbWOxDXtZVMnQokiuFsTXDQ7+FjmZHInK6UKT88a8sOdFURlfbJHdL+pkgVHUPhjbsBlGlR0xqtEWgwbeGDgYZODoklFgq4yq8MvQAEwzcjKMKCr7jC2+4itspFHUbhrbsKVGlX01qtFcg/bQqItto33f4ofiJ1zXCXouUjIqlMhvg8RuCyJ4LVJyWpSkz0KDM7kf9liUlMOinv0VVXJXlLS3Ygt2VtTIV1EiVwXptaTgqEjJT4Ok3BQanMvYs5OipHwU9eyiqJKHoqQdFFuwf6LG7ola9E5QwDmBgm8CRddEzJ6JmnBMkMEvkVK1o6S8EvWDXsA+iZJ2SWzBHokaOyRq0R9BeZAZvpVte03bkRKuOI4eLdEQmYpxMkPn7IRVARs0RB5oXBpgVc/yd7P1GVe+Z2I2PZPI8YxruzOZvc4EMjrj5HKVv84I/M0QmZtz5WxVPc8RZU8zrgzNxOxmJpGVGdc+ZjKbmAnsYCZE+6oYvKsiMK6K0LWMsWWZIPyqamBWhqj+jCubMrFdmWxQxrU7mczWZAL7kgnRlCp+yAm5za16gRqBEC5U+4o25Iwq3AUyIhDYiUwCK3JGXuSCNCOTz8T3sx25oPzI1WxIrpEjuaAtyXX2JFfIlFwgVzLhtWDgS87ImEBQzmTyuYgve5MLypxcze7kGtmTC9qfXGeDcoUdypVoUcbBo4yBSRlDl3LINuWK8CkTwaicUYG6oKzK1QP1y2blgnYr19muXGG/ciUalvEHkatb0a5XrBUT4Vq1Y+hazsgIXCDXAoFdyyRwLWfkWi5I1zL5THw/u5YLyrVcza7lGrmWC9q1XGfXcoVcywVyLRNeCwau5YxcCwTlWiafi/iya7mgXMvV7FqukWu5oF3LdXYtV9i1XImuZRxcyxi4ljF0LYfsWq4I1zIRXMsZVagLyrVcPVC/7FouaNdynV3LFXYtV6JrGX8QuboV7XrFWjERrrUaf9HDd1cJmUDF5FeG2a1GAbyqEnKqiqVPjeJZ+l72qIqVQ1Ut+1NVyJ0q1t5UVXamysmXKiZXGvHrRMCRKiE/MqzcaBTPUwzZiSpWPlS17EJVIQ+qWDtQVdl/Kmf3qTx6z0jBeUYCvjMSdJ2K2HMqF44zSuA3lVBlVay8pmrNmmOfqVi7TFXZYypnh6k8+stIH1LWbVObPhM9euEqY66jrRiiwjVOxuKcnaUqYC2GyFuMS3Op6ln+brYX48pfTMwGYxI5jHFtMSazx5hAJmOcXKby1xmBzxgio3GunKaq5zmi7DXGldmYmN3GJLIb49pvTGbDMYEdx4RoORWD51QEplMRuo4xth0ThO9UDYzHENWecWU9JrYrk83HuHYfk9l+TGD/MSEaUMUPOSG3uVUvUCMQ2YW+G+iruBU/W1B1DEAipIXrPcRAFkRBKoziU1gITSG1fB3tquvYtyydHIXuAscEc1q7C4imHBQbCDAbCLBxIHvywxj3U9+KbvoDxh2Q8NYfKO5Ao6P+EOIOzLoLbOwukGibP4wl71vTsLUr9Oe+VUcHCLrsdP97bHVyd2T8yTVDo/9i+AxRDI1TII2raJqYQ2oSxdU4B9cEjrAJMcyGKdaVX2Q0zQhCb4jibzxPQpVoJipO01FeCIzTURFPR+U8HZXL6aiimI4q8XRUnqajCmk6qkDTUTFPx8gvMppmhNNREU9H5WI6RomnY8Q0HX8dZ+KFb9VdAarxBxRCDxw6BLQGHJDFGpiFGdgYYSA1uI524zzxrToCQHUEgMIIgMMIgNYRALIRALMRABtHAKSOwFGdrePHhmymRvbTOFUnvhUH+hNOFSAx0J9oqoDGgf4UpgoYDfQnmCogcaA/wUCd2DgdbeJWHuamMaaNHNMmj4kPyUARo92I0W7CaH+e7E95nvhWPC4qSBwEFZ4OggqNB0EFyQPJotDhUWH1fAZQPBbaoXLc8tS27FjIUT2BQRQOj5zj4RFQe000YDtqcuTHRs782MjYcjcC37JIO4qRdo6RdmqRdsSRdsUj7cwi7cgibWgT4r7J+aHOO36eqFOOnyfpbONnkdWgiPzg04ufJ3xmsSO9LVBlKy7RBaWFNryLH+qCBAoBqSoa1CQHhhpQjEjV4aJGHDmSqchIpXqLKiQ/CVSFpFJBsipqk5rkMuUGuWKpBRUvqVzHJHNJRxmqmwQqdFJVzVOTXP7UgJyAVG0K1Ij9gWSyClLJNaK6aSUSewmpXy8k4TDU4GAhNXyHGh0upORGJEdjiiJ4FAlkV6Qm5/plgtfwyla8fLdH4srdTtgd3o+XnXabUztG3W2VC1knvmklDgzr0nH8Bc1BOo2S4H6N55dJurzzy0Rd2fklv6PqiIJw8B1VUzEc+Abni4gwMPkNThZEiKrWilPQW2KfA8Fha7/1+EvMK4ggCRRHVlU0YxuMaVQgslHA+JLCUSZZxDq2aEVctDrcpG+FkuegXcBjg9FecQ4MUfSdq7hXFSNeGcS6IoyyMY6vCSKyVWvFNOgtsc+B4AgaT7EbjtPKCeZT34q3HAqKd4MKEjcgCk/3HgqNtx0KolsKhdHdhMLCjYRC6nrp6K2Z+RnOOaIw3S5chO+Zhq13Ycuv0JxN0sWZs4m6LrOj9dzXd2nnviOqFgPTYIjmwjhNiHE1KybmqTGJ5sc4T5IJPFMmxOkyTHOG6w6FgWevse6QepG/e5rRu4xgWtNCxDxPcJVolivmqQ4vU8F8R06THkWa+Siq6Y8tcg5EnRIhipwNUeWUiGrMi6hRcqT3OlX0OE0Ovdepmlw09jdt8HcNDvmjX2+UYs6koFM6BY1zCl5EgYxCSvmEEmUTSiqXUM+ZhCrlEUqcRahxDqEWMwgVyh96hy3HiXOn/Q5bbnAh9zOV9J2kkDHq1S4h5WwBlXIFFM6U+qYApIkhyhHjlCDGVXaYmFPDJMoL45wUJnBGmBDTwTDlAr7sQ2HgLGi87EPqRf7uaUbvMoJpT+/GMM8TXiWa7Yp5quO5Oc44KzTxLNP8s6zSgNvkbOAWlBQsc26wzinCeswUVilhSH7bjCmnT5JVFlGji+Z+p03lXVOBDGOFEo3lnG/UgtKOVM4+e7of8s4ZZZwLlGsuqCxzNeeXa5RZLnBOucLZ5ErMI+eUQeFFHo4IZ03rRR6WL8T3TwV7JxjkRX7fJQk5F0yjLDDO819PN2H6DdHsG6fJN67m3sQ89SbRzBvniTeB592EOO2GadbxGgSFgee8cQ2C1Iv83dOM3mUE050uSjDPk10lmuuKearrU2Mw1YZoqo3TVBtXU21inmqTaKqN81SbwFNtQpxqwzTV+OAnhYGnuvHgJ6kX+bunGb3LCKY6PSfJPE91lWiqK6ap/m2c5fHJhN9whpHV2UVGT9a5EB6tc+zP1jmDR+gcwjN0Du0hOkd1BoH5czJlK14xKyg+0ViQuKtSeLquVmi8f1IQ3Q8pjG6CFBbufBQS7yr+BvM2Xk3codigy4Oy+4iI9KA6OahwmxBwHmsnxtqJsS5Ditn9PkDika/C062cQuODXgXJh8OLQk9/FRYfCS8oPtv1G1bHGP3XE3zEtGzFR0wLEo+YFp4eMS00PmJakHzEtCj0iGlh9IhpYeER09eeRj6MOrQ9eTPZ382HrfhsTkHi2ZzC07M5hcZncwqSz+YUhZ7NKaxOEaD42NGb0Z9hq2Y+ouDKLpzHrTze88Z4z+V4z/N4eSJBEeM9p2eR3sBEOvFl5M0EHzJ8M64Url3GpfkNrQ8jrVcxYfYNUUiMq7iYmINjEkXIuA6TyRwrEyhBjFOW4HVoRpQvjevQpJ4L1IiVzCET27HibDJ+OFYpr0zg5DIhZli+1G4Icg2vq1Mrzjp1XX2U6oPEkHqGKJzGVThNzOE0icJpXIfTZA6nCZR6xin1Kn8rEKWec5V6VT0XqBErmXomtmPFqWf8cKxS6pnAqWdCTD18tJ0yBFIPH22nVpx66tH2KqXn2E6kwKE98BybbiLCrJ9j02oj5I3n2LTMqaqfY5Pq26bAyXvoeQfZ5rwpHIy5TurY5GsxTwke1f+fmOdkj3JK+ShT4qcHQWSWYhGk50DkJ1JBNJ8C2TcYpruc/b30rfoNgOoZE6AwKcBhD0Br+AFZOIFZDIGNgQNS89eRv6D6FksYkDjVeEvFCjSearwVZQkKnWq8xQIEFE81dmh3jvfCt+K7GgXFdzUKEu9qFJ7e1Sg0vqtREL2rURi9q1FYeFejkPiuxg5dLRc08nru6m12n3jmW3WUgKqxIMJRAodRIoVTV8B18IBs8MBs8M4+9p8/duWc68TYMoxqmWdr2ZiapZyaZZ4aPp0FRUyanc4CyjNkp7OOVnErD2QVvdyFdXc7z1O+CaW4yfaxaXjFRnrFJnsFP5IKinCRjXCRTXKRbZjwPm7lJO1z5uG7iC8JURDSu4jMVYTUu4gsUazyu4gscGz4XUTG5LV4/H5KiFxXH7+zmP03Hb8z106cj99ZIE9Ox+/EwcUMUa0YJ582rhzBxGwLJpE3GGcbMIEN3ITo4obJKPy1z4UKHZl6xV2uBbZ34+TxzoXRm9iuOWX5ppHvG2fzN4FXgCqkZaAKyxwMXhCMH8oBsTSY1MiBxiJhcitFeLkw3kgFXjgqXwnUGLpeR6oqFpMqwYpiqOGocm0xse2cvMoY10uNyS1jTYuOCdpYtznbeoEa5aRWo3Cgj2tSFDiOUeX1Kaoy1rGJiHhswHGPagpvlFOQo0yhjiKvZOlywKkUeFU7cDlANxErnL4coNXGate4HKBlXvn05QCpou1HgYs+qrwiRlV6YmwinDE2YH+MarLBKKf1Msq0akaRDTOo7GgkxnU0vkjXquW0pkaVV1ZS1foam3zNS+RaG1vwihvVtO5GOa2+Qc5rcHzJrhXOtB5H9esZqNbm2OBgBrbW6djocJqmNTuqBxMxrd9BXTWFg2FrrOihjVrXQwNc3aNwcG3SK31s8rXVJ636UW2s/bHR4SUqHwdE+dAStW3VQN8UDlpDPko4n+ATPed4PAAoPsdznlZ+4Ol64jmu8YDomZ3zsJoDC0/qnOO67aja6BMj9EMo9XoyjrXx6o1zGvWhV29czONvvHrjnCPRevXGhRiTxqs3xik66ZWVkTdeWSFOwTr0ygqJKmxfeWWFdArgwVdWSOVQHnhlhTQKqnx7Q0WQwyvf3giUQtt+eyNIKqwH394IKoX0wNsbQeNwNt/eCAqFUrzakGPFYcyvNjiiADZebXCuQtd+tcElClrr1QYXOFz61QbHFCh+JYBCwSFqvhKQFArY4VcCkqzC99VXAlILCuZXXglIOof24CsBSaVAN56F13HlsItn4YFRqFvPwoOgwnvgWXjQKKTNZ+FB4TA2noUHTqFLj45zVDhc9hPbEC5nFC4XKFwuqHC5msPlGoXLBQ6XKxwuV2K4nFO4TKBwGedwjb8cDMGqhEJVMQWqYhWmquUgVYVCVDEHqHIOT+UxOJVSaEZMgRkpheViDMkL34qnKxcYCkDibO+CQgA0ntddhKEDo2sIFzBkIPEkbYf8Z5nLVpy5guJZlgtncSumQkFivgtPc11onOeC5O8FF4Vmv7B6fgooTu8O7ab1mW/FU5aCaggAiesWhadTmkLj9YeC6KJDYXSlobBxxoDUETiKp7MXk/SI9g7FQXd5cuxKDSI9X52cr3AhBnCexk5MVkdlumN2ccWzc3dB5aVvxVPygsR5eOHp5LvQeMZdkDzNLgqdWxdWcwxQvJR7MclPbe9YvhCxo5sws5ucjZtG6m1k6m1y6vFlBFBEUm5EUm5CUk5H14Ot2Ospuh4gMZApuR7QOJBpcD1g1N0puB6QWEPTCT5wN0XvAiQe85qSdwGND3RNhXeBQo9uTdG7AMUH46ajd536VrwZMEXvAiRuCkzJu4DGy//T4F3A6Fdrp+BdQOK1/Cl41zEQvAo9Ha1r/yNlU7QuQPZ2CaD8C21Tsi6k+HaJ4/gTbdNgXcD87RJjZl0+1GVIuGUukmWjIpayIpa5Iti6QBG1YtYFKBcGXaidknP5vO2c69TGb84FKCaec0w8p5Z4jvhmkyueks48JZ3VlDTSh3rqc933qb4vR8Mbf6npEh0Pmb2RBiy+iAMCvokD2F7FAeZv3AD0V24A1nduANkbac521vfct+KLfJfJ+oCnd/su0foA0cSBYoMBVvMSUO22o5ktsJdofYDizeLLZH3A07HBJVofIDoCuAzWByxcR79E63NUS+gpkFv8ZebL0fte+FY8n7hE70OUzycuyfuQgvcBjqcZl8H7gNFpxuVodDAEczpk6tXMS/I6xPRq5qVwO5T4rc1L9Dtk9Ibm5ST/GPYlWZ7P1yY22oiBbloD3eiBbsRA2fdQUgN150MYX0+9tOv0YAbpJkQS2NP0bYikCndLNyKSkHwu34pICjleuhnBAnhfeseMuXJB9Y4ZS+SHrXfMWGZnTO+YMSePrByM0hC5pXGyTOPKN03M5mkSOahxtlET2EtNiIZqmFzVbzKFUuV7T1wDYHOGyGmNk906F55rYjZel7L7mkYWbJx92AQ24yosxaCTLZsgLctU4VumsXmZ0HAw05ONmcKmbQI7d7qTyILw8CptRPPk5iYcjI/yddNa8Wk5vOnN+GSvN4UMn275VSdU9/yUxs7fvOunGgj/V/f9lJZWAXnnT4m0Fqh7f0KDFQEpLQooqXUB9bw0oEqrA0p6gcAWvEagRssESrRSgASLBVJaL1CiJQMltWqgnhcOVGntQImXD9R4BUEtLiKo0DoSbgYHxxC3iUWBgWkjpTUFJVpWgiRWFtTz4hLUvL6gTEsMSrzKoMYLDWhLHZK03KAmHRUbCFNFmX0VtYa1YpPkrijyAoQar0HqUQGhiZUI1I3+UFqPUPtaANWqhPKBALbWJmxyKIB5hUIxLlJDOU38V0LKlv+uj6F4/8mF3d8k3P+Vh93WNmz5dZ6yFa/zFJSu81TXwx4Zom4Zl32rKnSwom1Gfe4B99d47vTYMey0Ieq0cdnpqkKnK9pm1OcecKeN506HZ5Wg55FT96MoxxCawEAC3zZ43+gfjyuKeXCQ7jA0pDQwlOSwoAEMCuhW0l72iYeDUh5MfcwHRmKIhmFcjqGqMICKthn1uQfcb+O50/bYB/TaGXXbBdlvk6HjxraC9aIf3HcXcuftIQzovDPqvAuy8+HP048dDX+enlkv+sGdl3+eftTGByWg65VQxyuW3Ya/ej12EP7qdSR92jd3V/zV61Gpv0AHvTVE3TUu+4t/JHfsHv6RXEJ97gH3Wf2R3L30fqAL23PZ8uMEQ6qXRfCDm4o24avp7+G9T8cawGXf6O/hvRcHFKDQjdD34fABWPi1ivdjpH2rj1t5DDmOVwP1QOy2PgXtk/oBkasx+LAV93WVgw9CvMV7NXbce9DHmbyijo+0Hgt8zAiGYEj2pqoLgWhExg9/EY0Nj22okzxKdWwzSvbia0YwVEOyh1VdCERDNX74i2io+L4kdZKHqt6XrNJwWrdYzGiwBnG4DnU/TV9IyIN25WtfxwM3pVddToN3JQ9/f3I0WX+eXe0+cjrScsKd/2zNSZYbWvzC4fRscm07LVtX+79dC8hN/Dr493UdqG/ZCB3h0PZ03APu2BDtvfKH/OltRr1A1CPjqVu7ihuDtN85Xko9MfIQPrANW1/CVh+3YkdSfe8pXacfO8IXdk8ifsif32b0JaNeIOqm9KK9RD8+MPaVX08/ifghf36b0ZeMeoGor9JMRkm8JlI7rN4SORHaQ+Prtg3+pcH7FufhtM6qRj1fiBtHJK7BnCTlQX7RVtIvkvaa0igaJ1NV9WtzPAhQeBQgPejv2mr8ReO+gXkoqOWx0Gsh4zj4rZCTiB/y57cZfcmoF4j6q84HR4lfDxg7m94OOCH+IL5iK9gXwXrFqMvyNHDU+Bn9sc/pEf0T4g/iK7aCfRGsV4z6LM/+9tqHCV4kr6SLW/GooKB6LRxR/gHjwtORw57in5R1HH/XuCD69eLC6NeLd2xpRzllKx4yFSROigpPJxqFxpOiguRJUVHopKiweOhVUHw69MMkXIKuiA6dnkQh0Jv9XB37xjhsIONMIYE4APYwIPRpAjrGBkgNAKA6R478pF1cXmheWqjtYKRG4nANxzE7zgM3LY3elRQCk2IcDFMwjFNE8mXgm8Zl4JuDl4EjhDDpH4HQYgzZgZ+A0C1S+No/AKEbxFA2fv5BqxTWqN60wsQhJlUFuv5JzRPfijbDf0hzTz+N7rR33E/oToCifTpPlv0J3QkQ3wNyxR3UmV1VcmR3yvYo/0qGFmgsh34lQzfJI2z8SoZW9bhbv5KhZYpG41cy9uoirM6LsAYv8uq7kOvuIp8HLfJJz6Jx0rNon/TEKwL49fkHIbRAu2r/IMTYoP79l21GvUD09ervz+6l2wle6SxbsdoKEot64akKC42LekFyUS8KLeqF0ZXOwsKVztsJ/tndWxwxIOjdnt5N6k1l24pHXXdpsMDTIdbdJNwwNiT/RsTdJN4eNkZHWXcTvBlcye7g9dS23B7FPRR99+QuPuEVEQWh9XxXFHM4xNNdkevAqGe7osAhyk92BQzByreS71K1M8+xw9+7OyZEsdO/d8dijl36vTvmOnb59+5Y4Njx790RhtjhJRcKBMdOXXKpUvpNoWMpcBwP/KaQbiJiqn9TSKuN+DZ+U0jLKdbyN4WkiHFPS4gMZZqD5hIyNqj3zmAODFH0jau4m5gjbhLF2riOsskcXxM4sibEmOL9xtOI+hwIjmD75uJygnfWlmEd3m35H25ahl0t816WegfoXYRgV3gR90ls1ecP8p7bDrdMVzgVh46kK5xPRPu+8T3cr688NwKHrtg1ebkSKXRLPvsRKHXp4LMfS7xqRwi6glftnsRWff4g96D9FAcdi2MvSIHOkAJ9IqVvfhv3kOXc0XC9kBl0LlwvfELtevFZ7sqBx0bqWQf2IR9MG4Ie4PE1fZD3r46vRwktiRDsviLYfTauZcO4lm3j+jzB84PP+FlA6aygXjBr3WGMekuM9xjpq0x94eqi+3Bfv3T//29On5laP3gdP2S43jMUmt/wjTjGMWrqpm9sEa89Bi3ERYxhFcNiuHZIafVqsNRCZ0WL3dw+E7juUGnxF0tJqzettRq6o1rkya+SF8oQpN2zHrgVJ6yg2ktE1jmA4/X3Z0aug27p4+jG6qFs2aUsR3T9ygR76d2/bBm38kDUlfPCU1EXGk+yC5In2UWhk+zCYvYWFK+c75BdOfew/REarMO419FcVphFiGx+EDZieV9v5ZSN0Mr5Q70wudobHmyEC7KraHcjtNvtPjRDNFHGKe2cc+7RvfwayYqvc0tORXum2uNiiJLSuIymPSFF6Vn5UqDG+GW2mphT1iTKW+M6eU3mDDaB0tg45TI/O8HT8Eduus6B4/w2TknunDPdlUMT5LltRCU+nDRQJveZxDoQ5wKjYs9zeEQMUTIYp2JwzsXAf6niWcTXuSUXQ+VQDIaoGIzLWKc/HkE7WArUGL8sBvW3I1iiYmj97QiWuRjS345gTsWQ/nYETcMfuek6B46LwTgVg3MuBlcOTZDnuxFVDHAFizK5zyQWg7h8VZVwUQVLIgqcGFHl8iA1FUnUqVSCeN36VCqbfL/uqRK4hA7er1NtUjmlG1xaOBhBXWDNG1y6ARfbwRtculEqPH2DS6tchEFNpRjUP1ofW7emIRVnVLlESU2FSvrX0wDqMnJZunwpVFZf3+JUzK3roHs9Xi+qYUKUH0j0gATYuAcILzXSKfC4Vf525/iinyF/1oc43SIP6oWdQlUyTWT3JyjHM3NDlhzE8UJAlOrZ+3ha/iKLo7LP32EOJ+5oZSsWeEHVbACJQi88VXehsaQLohItjO4nFhbuJxYS6/MBrPeFkZ1/PfGteNPxITkV8HQz8gE9CRAZESj+i2vOquUAquNwRD9dtoWhnRpxa95mP942THgrnXeb7Xbb9NitMNZtdtNtttAtDm0/kN0VZL/vULbirY2C4nN1e5RvdBSe7nHsaXquruB416MguqNRGN3M6MdaeeJbMa96rBVAItV6qhWgMdX6UCvA/Cf8nI21AiTmWJ9qpQ/z0Od56PM89I156OU89Hoe+jwPvZiHvjEPpQie2pYVgaNYBM6xCJxaETjiInDFi8CZFYEjKwJDVN91QcSsMkSpZZzyy7hKMhNzpplE6Wacc84ETjwTYvYZphTkyywUCkgHQ5SRxiktnYvcNDEnqEs5S02jVDXO+WoCJ224dvM0IkrfxrUbEnMi52s3xHVKi2s3JFBy52s3kXOaw006yHSklOwoUb6jpFIe9Zz1qFLio8S5jxqnP2qxAlChIsjvgohYQbohpWpAiQoiSKImUM9lEdRcGShTcaDE9YEalwhoUCVIqVBQUrWCei4XVKliUNJFgy24blCj0kGJqke8BjQmxZ8TeI75T8gBIOGJ5T95xgHzedafNL9Aw1PIf+JsAorPG/8JPs4kdppdPOHcfeHhSUkDYQdnTENK/j3yerLZZRLHZTiOy3Eel2lpXK6kcZkUx2WYxmWcxoUvSXWaxvEFKY4xSnmcQU9jjWoab5DjmINE4w4ajP0///v/AGoZ428="'),wEe=JSON.parse('"eJyNnVtzG8mxrf+KAk/nRGh8eBWleZPnItsaD0dXWNvhB5BsUdgC0TLAFgjt2P/9AI2uzJUrV7X8olB/q4CuyspaVX0p8H8mP7V3d83yfvLj5P3fu/Xstnl0fPbsydGjJ89Oz55MHk9+bZf3v8/uml2BvzSLr839/Hr2w+XVYv7vrtnL3WLB8iOQZ3fzxZYL7IRpM7/9tD/r35ubeXe3I3+9ny3m18+Xt4td2R+OT3Zk/ev8obn5Y35//Wny4/2qax5Pfvo0W82u75vVm2b/6V8e7pvlTXPzur2bLYfa/vnP7cPkx3/+cHxx9PiHk5Pzx8fHx08ePzs9/tfjybtd4dVivmz+aNfz+3m73J/q6AiEt5/m15+XzXo9+fF8x983q3VfbHJ0dPKno6Oj3Ul+b3eN2Dfop/bLdrVvx6P/c/1/Hx0/e3r+eP/vRf/vs/2/z476fy8ePb9pr5pHb7br++Zu/eivy+t29aVdze6bmz89evR8sXj0ev8960evm3Wz+rqjHs35+tHs0f1qdtPczVafH7UfH/02X7b32y/ND7tCi0fPXzyaLW/+X7t6NN99wbq7Ws9v5rPVvFn/aVfZX3anupkvb99cf2r6Xuhr8uZ+95HZ6qaou4I/zb78ZeiUi+Onjyf/KEfnJ6ePJ8/X1/tArwbx58aOfzg5ung8eXN/85fpTnzS//f97r9Pnx566+/N/Wp+vQvnP/9nMv3H5MeTi53w+64i6y+zXRT/9zHh5uF6Mbszfnp+fuD/7tpdtK4WppyfPzkoy+7uat9Nt8us3bSLxWxl/OmuW3r+pVld79O+CE+eXByE2d1OWu+i4zU7OYEa9P3ttTs9Hb5vtmqWi+ZjTaKPlWrM1vtvXH/2ij89Gz616NY5ONe70TrLp/i0/fKpWebiu6bM25vM14vZ+lMO1rdm1WbaLpsM7zei5P2nVSPKfmy7laDzr6Lsev4gYPO1EX3bhJh6OsyXIq2u20UrIrRu7uZRsh5Y7E0g0ebf3WyR8e2q2Q1m0cydD657oynK8dHxkNEzkX7PM/qzoYuSiT9l9HP+4C+Ojo8P6Ff/YInAi/xdf8lx+qu3bG+Xe/S3fMaXuf2/+dgr2fr3fMbfc70u89f/kUu9yt/1On/wTY7E2/zBd/mD7w09Oxt6eppL/SOjD/mM/5WjerWbyz4398E3XNxpcaDy56KpnD0xU7mez6/nq+vuLvdHt3ft9W76gTESDC5Uxj42y+gqp8S1MGAxbnODPuZStxl9ylWeZ/TfuV6fc6lFzksRLeE6wve+iGGfTXqV6yUcXsS+yx/8mrN3k0s9ZLTN6BtU9czzKybCyZOjkpWrSvmYjeaMfTbezxc3TQ7JYa6/aTcizmF69qngvl+meXIclxH3cb8uRKO1z2zV5PFx0a7mgq+byrdcd6vdPH7tATx+dgzDZj3vV66piWXZoofVbTffKXftvV467OX+i78jU+hLz36cCyYWULuVnFwP3Mxub9WcduC4FqMVx77vmlUDY//0whZDs9vV7Iuf7fS8ZNbuUqKBjAuu1DfzarYeifC4utKLBeuAqO+uCYZa7VbY8y/r+VpIu7bef2q7sFg0ty/zfkhu77nV7Kuo7Oy6uxf44OUfF81D1ioj6252vWrFia9WjTrxTXs/uw4jzqX5ricxAG5oOA69srsLut2aWyxSu+XtbNXdLWadOE17u1tnfhZfN1uFxZP1y13IWRee+7Ln9GJg7erm426hF1aGvkKJk6wvQCL3M1zCGZ6c2xnudk7XLfAUdrUxE1PezX7Qr9diAlvEE1tKtZHbiqRtctnd+NxdEe/yXkwxf01d6k4QM9Cn/5g3PjXJTvWvi73nq6NcgzJd3My/ziGh/SOxZr5gFoPDqx0/5Cs99SGbIikGNln3F180TKCp+Sv9fGGoOK53xIzGg3+m0kMdfcCvAtJJ/Jph5xFwEXJSnFg19KI4+HW56SFORa7j68KYB95KHZffVQV8eNRyNJqqr/Rlc+xSqvZt0VghnMkqIUNmsvlr9kQbivN49rOLoc6L9luzvBWZ+zqewq/iRpOzGx0kQvThVZtIVpW2XnNb/fonR85O8/ZTuxKtuqSzexgqbvCG+FmZxChsNpo4Yy1ienLr73Csu36VsxL1pRS0KNY42WoxwbtucT//stiKelEDPclDA88uyqXJbHU/ny1u5h8/5r7a1q3h93geT9ixZPllNM1GZp0sWTpVhueyZoO1jPk9BsgnQ/oivP+2WzHgTTi7BFq1n5slXgiZOa6a2/k6Ln19iMbOhuk4jwtzjm43qsP1iAe7soZcVSLTUmR8XFZS6r9ohJ89K2vX/lZXvBFmcf7l/lOGPyUDNDNXvnV6PLTxvjJvNNXZsTYLPq8tH0ayMgbYr5dpaNitCK6UuUKtR2pTT20aXdcGZR7Hdu7RZQnPmGVd0CzuxQ2f+2DS7ombdsQR6/G960RLKOYWKrnO9LFAofcr1bjCeVpuWPQ+vkvg1S6R1/n73qR8ffas5Kte0b4cnX9/ix3nlxL2WEeZYrIFt4wYJue16ey3WG2Lwy5qn2YLmBrKIN9fmtCtbuuLMZdfxmWTp9p3OrAyFJpag26jmWKDhm5Vvar77o1cIFoGy5qflR682dmEeujRxi4CK9SW1sXyZ+dm5zfza2W0P8cvgoXZ2HL399g/Xt1Kv70ez2ulurdWltDPqyYdLwesB6jOZsQjC8pfatM9O4XdIpYNtQVZXAnYt40OhUoV7kfPtGhv9/29bEW427qZdlkqQ3n3VZWRfDt+RQszuce8kr5LOY/bzZ1lXjS759fG+C/d/nHkvx5PXjar5R+z+Wr/EPmfk+f7h9WTxz+cHv3r8XB0cI+ADvWMaDB1hC/i0cFVAsKGoXAZj3IVcOoN3Loq0MP4Dyg4T1CGkAV2uDsU0GHgIHoVjt7ujo5P/LAELbDQflDe7Q7P/agEAFAIAHAIANASAEAUAFAsAMCGoR1Y7yhI3u+OLuxoGrQP+wYe+WFpEjKoO+AuhLXLydBVkqGTydDlZOiqydCJZOgsFsCGWDj5ujs6s6NNONrGo9IiQFDzgQ6FcHQaopAYp3HqnAdrUV4IRMPWuBy7Rb0UqFJLOZRNzF1oEvWjcd2ZJnOPmkBj3DgN9MJfZYRD3hiPexfk4C8yOIAhsgHjygtMzIZgErmCcW0NJrM/mMAmYUJ0ioLBLgqa5lJoHMbYPUwQFlK0LncYm4nxsZwUtmJSJScrBmNyLSeT1ZgQ/aZgMJ2CNhltBSIPMp6NaPADNCJDFE7jZETO2YiK8kIgMiLj0oiKeilQpZbSiEzMnW4Sdbpx3ekmc6ebQEZknIyo8FcZoREZYyNyQRpRkcGIDJERGVdGZGI2IpPIiIxrIzKZjcgENiITohEVDEZU0DSXQiMyxkZkgjCionW5w9iIjI/lpDAikyo5WTEik2s5mYzIhGhEBYMRFbTJaCsQGZHxbEQYGnSjyCmwUSRfIpHNKcgvapxsKorSq0KRyxofa4i0rlgi50rUKWGiqLMmluHUiSp5WhTJ2IL4qsLR4qLAPkeqNLtQBhwvcrK9KCrviyWyAUadXDCK2gpjGfbDqLIpRjU6Y9DAHgOfVsqjUUaB3TKqwjJDga6SCmyeUfzu0BA2GvWxoVEx1FhmdGgka41q9NeggckGvqnwbY2T50YxG68TtF2k1CEokeUGiQ0XxBeaktmiJK0WClxqWq+6NFnUcx6hSlmEks4hLMEZhBpZK0pkrCC9khRNFTFbatCkoUIJsFOkZKYoKStFPRspqmSjKGkTxRJsoaixgaIW7RMUME+gU1kWjRMx2yZqwjRB7mQ3s2Gi9J0kF2aJaj3JK0aJJUaSPJkkatEiQQGDBLqRdKspWSNK2RiH1qMrGqKQGyc/dM5mWJQXApENGpceWNRLgSq1lNZnYk4JkygfjOtkMJkzwQTyOuNkdIW/yggtzhj7mwvS3IoMzmaIbM248jQTs6GZRG5mXFuZyexjJrCJmRAdrGCwr4KmuRQalzF2LROEZRWtyx3GZmV8LCeFTZlUycmKQZlcy8lkTSZEXyoYTKmgTUZbgciLjGcjKnVFJ3JGAXWBvAgENiOTXihGduSC9COTLxWrVVZakqu5/12jBHBBZ4DrnAKukC+5QMZkwivB0JocsjeBIs3JdHAnZ2RPLih/cjUblGvkUC5oi3KdPcoVNilXoksZB5syNhXl0KgcslO5IqzKxE50IZuVC6PpKuzKtVq6VgzL9Wq6JstyJXqWcTAtYxvBtoqRb7mQjatUDI3LGQXXBTIuENi4THqhGBmXC9K4TL5UrFZZaVyu5kxwjTLBBZ0JrnMmuELG5QIZlwmvBEPjcsjGBYo0LtPBuJyRcbmgjMvVbFyukXG5oI3LdTYuV9i4XInGZRyMy9hUlEPjcsjG5YowLhM70YVsXC6MpqswLtdq6VoxLter6ZqMy5VoXMbBuIxtBNsqRsblQjau1fBDH16FQiiwBZNlGWbDGoQXmZBZFSytahAvM9HVkyZVtNznRaEeL1j3d1G5twsnayqYjGnArxJBUyqILcm4NKRBBTsqhMyoYGVFRctGVBSyoYK1CRWVLahwNqDCo/0MFMxnINNUBo2nILadwoXpDFKXuocNp+CRxBNmUxSdeBWjKWol8ZLJFB4tZqBgMAPZJLLNhKyl4GwsQ7qjsxiiEBonb3HO5lKUFwKRvRiX/lLUS4EqtZQWY2LuapOor43rzjaZe9sE8hnjZDSFv8oIrcYYe40L0myKDG5jiOzGuPIbE7PhmESOY1xbjsnsOSaw6ZgQXadgsJ2CprkUGo8xdh4ThPUUrcsdxuZjfCwnhf2YVMnJigGZXMvJZEEmRA8qGEyooE1GW4HIh4wnI/rzkJvHfuSdYSjED3joHqMlaoAoYKBYrIBZmIANEXJy+F2vxz+cGBl+uqugn6DQqRErNKDyShyVLJiLD8OfixecihdrTh8wgT7y8w49t+7pj2Jn9qi4OKDQR8BTl/e09BEg6wlg1hPAhp4AUizVkXvBz4MNuLZ3gGd+VFoHCKrstATQv9YiN6DSCRA+QxRD4xRI4yqaJuaQmkRxNc7BNYEjbEIMs2GKdeHvcximuRSE3hDF33juBM59Ol/qjn4fYeyOgrg7CufuKFx2RxFFdxSJu6Pw1B1FSN1RBOqOgrk7Bv4+h2GaS2F3FMTdUbjojkHi7hgwdcevQ0889aNyKkAl/oBC6IFDhYCWgAOyWAOzMAMbIgykBNfRzBYU/VFcQfWotACQWE/1PC2lehpXUT2iFVLPaHHUs7Au6klpgaPSW8eOfIXRH8VFTI/iyv+A8pKm52k1c6C27S/guL7pEa1dekbLlj1r41Guc1upYCsr2OaatHKR1Suijm1c7vcorvR/xTEB0V/tx+W5HZkzOSrRRxQW+wfhb8MIO6w+/oYjDFDJT0AhUsAhUkBLpABZPIBZnwEb8hNICZGjWTzKLZjlFswqLZjJFsxyC2aiBTPRgllqwSy3IK60/paXWHvUhY90uZldpU2dbFOX28QXCaCI1naitV1o7cvJ4Tr83I+i/fVIeF3Pk9f1NHpdj+TFYq+QC/asjDpA0fJeDv525kdx7n+J/oYoz/gvyd+Qgr8BjtP/y+BvwGjSfzn4GxzlOreVCraygm2uCfsbKKKO5m+A4trj5QSviV9O0uXwy5TVwJMrv5yk69+XIqtBIVd+OckXvC8nfK27J9uQLduc1ducvcGAcVyQQF9GqhotVOS7p6YxRKoeTlSIRxbJNMhIpfEWVUgPEiijSaUByapIfSqSRwEXyCOWStCQIZXHCMk8pKPcVoXRsMgxT0W+13B2AlK1KVCh8bazVZBKrhFVMBASyEtIVbZCRbLDUAEyG1K171AhtiCS2Y1IjsYUxW1thLFdkZrs47fJcGP52A/tnjKyeDvZlffxcH9ZeWFH/d3VMz+0e3nA8Kad4/ijr1ky/sT41oL1GwYCUOrz38Ke6mNiHIfanmqS3wsGYQk7js+IcYDkjmPSaqEKOscLd+lSLDhyapfuIJV7LRg+Yxw+F2T48NYRMwgf3jsqLU03j5Igwle0WviCzuEr4jbHgsNnXIQvDM4QxKikUJKsAxoKva8qGNwghBBHJQU6yircoUQ16LlUCn0yQhnN1A1VIxwKDNNU6AZj3AEuyNAX+b1gEO6CMNDGOMQmiOAWrRbWoHNAi7jNseAgGk/h2y154W5DfxQvYnsUr9V7JK5re56ua3sar2t7RFevPaOr156Fq9eexGv1y6Hvz/woLjsvc3+78N5m1Muhjz0u/9gdPbGjD9b/l9jNgKDpTsttBD+l3UYYUPFp6AZD1BfGqUOMq14xMXeNSdQ/xrmTTOCeMiF2l2HqM5y/KQzce5XZm1ToR5y7TyOCHsXp/IIQ9a2azEmiXk6P/QYe9k5Cf0dOnR5F6vkoqu6PJXIORJ0SIYqcDVHllIhqzIuoUXKkndwqepwmY/u4VRFImLRt+VRwSJ20nflCcUqi6mZmpVM6BY1zCjadQUYhpXxCibIJJZVLqOdMQpXyCCXOItQ4h1CLGYQK5Q9tWc1x4typb1jNBSBvaMfmaaKQM7SP8yJTypfKLs6sUq6AwplStgRBmhiiHDFOCWJcZYeJOTVMorwwzklhAmeECTEdDFMu4MY+CgNnQWVbH6nQ/7jl7TQi6HncBXdBiPpc7YEjiXq7YO7qeJsDe5wV6niWqf9ZVmnAZXI2cAlKCpY5N1jnFGE9ZgqrlDAkv63GlNMnySqLqBAkEymQU6RAapECGcYKJRrLOd+oBKUdqZx9tocH8s4ZZZwLlGsuqCxzNeeXa5RZLnBOucLZ5ErMI+eUQWHHHkeEs6a2X49lyJSwhe2UGGRH2NZ2wYwyQm5qY42ywDj3f7nchO43RL1vnDrfuOp7E3PXm0Q9b5w73gTudxNitxumXsfbEBQG7vPKTQhSocfxFsRpRNDfeFfighD1tronQRL1dcHc1eWVUOhqQ9TVxqmrjauuNjF3tUnU1ca5q03grjYhdrVh6mp8sZvCwF1dea2bVOhqfOX5NCLoanwL+oIQdbV6B5ok6uqCqav/GHp5eCX9D+xhZKV3kcUXf0HAe2KA7dVfYP6GL0B/xRdgeccXUOlBYLPQMntDBVB8i7BH4sldz9Pjup7GZ3Q9omduPaOHjD0L7wn2JD5w+wP67fipocYyqT+KD5V6VBIUUX583fP00OlA4Ykr4Pj8ukf0PLpn9L7bnrXxKNe5rVSwlRVsc034cSgooo724BNQfDr+B46OIfqvJvgGfH8U34DvkXgDvufpDfiexjfgeyTfgO8VegO+Z/QGfM/CG/CvJ4e3Hk78KLp2j4Qx9zx5ck+jHfdIvsPUK+TRPSvxBxQd+PVgvqd+FF9tfJ0t14V3NoheYy8BEqP8NfUS0DjKX4teAoXG/+vQS8DC+H8d5ojXYXp4PUwDrn2II+g1mf9Ayy1K6H1DlALGVR6YmJPBJMoI4zotTObcMIESxDhlCd5kPiVE+VK5yUwqZI4hSh/jKodMzIlkEmWTcZ1SJnNemcDJZULMsHwf3dA0B+JDLsVZp26aD1J5sgqpZ4hSz7hKPRNz6plEqWdcp57JnHomUOoZp9TDB+ynhCj1Ko/XSYXUM0SpZ1ylnok59Uyi1DOuU89kTj0TOPVMiKmHLxBQhkxzID7kUpx66u2BIqX3/U6kwGk48r6fLiJSUr/vp9VKelbe99Myp6p+30+qmLb6jYaKKlM4lMFEjgKnc1RlUsciIrVjAU7wqFbSPBZKyR7llPJRpsRPL3rILJ3WQvmh9ok0IKpveRwKvJnwPsg3k7QP8g0/6yTMxXmbF+FUPG1xTEL6SGgWfyyI9NFdfuO1bH9I17I9o2vZnqlr2V7I17I9pmvZnvG1bA/5WraH8Vq2R3Qt+3YwsjM/iiPpbbIs4GnMvEVzAiRHx9tgQ8Diu6Nv0XAczWIjZqIH7Br8iaNaB8x0B8xEB/hlOHyviv8sx98uxP2j1+0CfPgtJCN8jqrQiNbaxXlgleY2urnh+hx5CYNXuxFRaFQUPm2/fGr6ennntbFIK5rT1qre6qq3oqf40h0lUX27dsdyucP84t2LrehQNGgl+of2cIGybu7mOTO6WKgTp+lqcet03DoRN37RGSURt051e5eTfxMPt3QoGoOvnA3nww3WpWTaYZ0E9mK9xzqpImRpl3USkj/nfdZJoWClndYsgGenqx/myr3V1Q9L5OO1qx+W2dHT1Q9z8vbCZ6LZyeVNIKs3Ptq/yvRNq/Vvsn8Tqt3LE4FxMhdf9YSBz4sh/hpVyzRDmMA25MJYqNSE4ZqYNUykqcN4LYx5EilKmkmK0IrCaU4xYbSdanYxrZYStXnG9Fpb04xjQiUz0txThJVitRCkqcgFOR8VWUxKRepE8TQ9mTDaBWqiMq3WBbUpy/RaF+TJy5TKqN0ItlWs1nw1q4ULjjC3RSV9Z5TTPBdlHfdYRkU/lkh9EOU8/0U9BzzqHPaophkx3ZQ5kwLPjiM3ZXQRMVPqmzJarcyalZsyWuYZVN+UkeqsGrI8p0aZZ9ao/gcZJWfZWGI8o/KMG+XvJFSafaPKTkv3BaLbyZsG+ovr7clzc5STO5P8/ZDL2ZpKqDk7FuGZO6rjnSJm8aDnuTzIbfWDeV6P8n8QHTnHxxLjCVmd72Op8QjluT/Ko3mZ1wFBXtWV8fDllQHJen0QCqlVQijQVT+aVwxR/g86V64eYonxzq2uJGKp8c4Vq4qoj3rSpqps68p46PKa492w0DjzozhHvsMFBSAxV76jhQPQOCu+CwsEYHTv+x0sBIDEKe7dhF8/ejdJbx6VJwPY1rRDijm1Wu+QYjG3P+2QYs6RyDukWIgxSTukiFN0KjuLwuMRjJPeWSRFitjIziJZIsdO7yySIkexsrNIqjGeemeREimyY5ts4NESBldtshESBba6yUboOahqk42QOKByk43QYjDVJpssUSDrO1DKAziMYdqBwpyip3egsJjjlnagMOeI5R0oLMRYpR0oxClKlZ0b73h7Ql2hgNV2blRkFb6RnRuVEhTM6s6Nis6hrezcqKgU6NEtC6xy2MOWhcQo1HnLQhJUeOWWhaRRSMWWhaRwGNOWhcQpdJU3/J1zuOyPHTxXjMLlAoXLBRUuV3O4XKNwucDhcoXD5UoMl3MKlwkULuMcruEH3J9nQqEqmAJVsApT0XKQikIhKpgDVDiHp/AYnEIpNAOmwAyUwvJ+CMlTPyrhABR/S/R9CgPw9Fui77H5gOi3RN+HZgMLvyX6Hpvr6EVoz4vYcz2KV1wuXMajmAo9Ev3d89TXPY393CN5y6pXqPd7Fm9O9Sh27x75b8T2R3G7QY9KCACFhgBPmxJ6WhoCyKoLzHoM2NBjQEoLHJUr2zMg5TbQeUGxk5ucmHaPB5FOzEYmZrh/AzjnayPytRH5andkHLXxKDejrdS5lXVuc+X4Tgoootp2ywRQHlNwb8Q6BO9JeM91oWe7nI1dJfU6mXpdTj2+mQCKSMpOJGUXknI6uN65H8XXtaboeoDELogpuR7QuAtiGlwPGO3HmILrAYnbH6YTfHVyit4FSLwkOSXvAhpfh5wK7wKFXnyconcBiq84Tie452eK3gUo2vc0eRfwZMJT9C5AZLXT4F3AwgQ7Re9yVJzqqZG9fupHpU2A4jub02RUwNPvA03ZqADHX9qbBqMCRj+XN0Wj8oa1oUCbm6F+CXpKRgU0V07/EvQ0GBWw+EvQUzQqR2ZU3h9dKNDlhqhfOZySIwHNDdE/YjgNjgRMxD/+RuGebMM42ebxvE3j9sNgZMMPZX1AJ0NmDzSBxbvAIOCtX8B2vxeYP6QE6DdtAZY7tYDsGaSzvaU9PbcjmyodxanSOU6VTm2qdMRTpSs+VTqzqdKRTZWG+mXLmTXCHwUCiwuyD8nUsGz+lbIPaGvIaPr7EHwNC5b4A7L4OyuT+xMgw7LMC9FnGtFcf/iGrNLeRrc3PlsDLuLQiDg0Kg78wGzP5mE4zeO46xFtVv4weCV8RyuC0NYa3OoGt6Jh6RkZSD74ANrjMGCio3115wxXd54AXRyhnbCXrmYlnbaSTlhJel4EknKZTrlMRy6DDy0S44akxxZJkM1UDy6Sxg3Ojy6SktrHDy8SZz/F7YWDWaXthcyVvarthSyR0da2F7LMlpu2FzIn8y0cHcoYD0kTyIuNy/Fqqhi0pvHINYF9yYRkTqaQUxuPF9HGacTyMyv+GlXL5OAmsI27MBYqZeiuCVc3sRbH5O8mVOOYnL4IYPeGyPONs/EXoRXfm6YAE0aDpSYD02rxqE0LptfileYHE3iSSE85WRDTRZFwzjBW81s9e5g6YqtpHjGhMpmYXrXdPK2YQrZLjyMV5harB5JKkwGpPJJUModFPpRUYmq8eCypJJ55QIPJBynNPyipKQj1PAuhShMRSnouwhI8HaFGMxJKNCmBhA6MmK0CNZqdUJJGggWEl6DMdoIaOwZqyWRRpPkKJZqywvPqYBziSbb4vkrV0/SFGs9gQftOONU8FmQxlaE+Eu40oaE2Fu40rYEGMxtSmtxQ4vkNtFafI81yqH0voGquQ3kkYLUZD4ukCyIUeeJDjec+9fqE0MQMCCpOgohHZgU9FWKBcedPEyJqlTkRi4xNDnlmRDFODvudwl8tq/ZHm3DkP5feH8X7cz1K9+GKZeL3FrTJaJs/yKcxns81WDCeq6BNRtv8QT6X8Xyu8M4TnDDwTYVvK9/D549irgR0JVQB6EbSrfwGPjlK+dTlJRw4b0GbjLb5g3w64/lc9i4FnMzYRrCt+Cyfz4V8QnsbAU5obCPYVnyWT+hCPiH8zfuTQDaJbNOn+ETib94PCv5Z65OINhlt8wf5VOrPWh+kqx292luLHcUXG/ZkYefsj+KE16P4/B+E+MzqapLekLia4J8YvEIHBySetF2RXwONT9quhDuDQk/aroIXAws/nHgVOudqgk8XrjD+gFJdr3E5dl7I56B/VpG9TnchzgP+nEvq70l7Ns8D/pxLVr4n/bJF+SYTPqvS+tsOU/5k/WV2vQ/h+UD7L85/R+Qoy6TlSMULb0NfbVTEkbY/egjaNmjU2zzQBqo7zTDXByfk0/gNm/ylD7nUNpfiiqo5epB0ahjm2hYOtcWdiPSlD7nUNpfi2qqdiUVSbz2Xqsm3npWIldfLg8gfKuW3lfKpQbVlw6Cry7ZzVrhFtNY4TV+1kSd4kGW3siy3o7ICKapfxqVmgJTaARo2BPBGn+RBl97q0qkxqOXW8LvOQ23Tu87EoQV5+WXoIZfa5lJcY7UiG6T01utQrfzWKwtQYbGEc/Ygym1FOa60XNYNWnr5dKhcfvmUBai1WAc6exDltqIc11quDQ/ax8nhftSpH8VFWI/K3SdA4l2JnqelWk/juxI9ojciekZvRPQsvBHRk/i2x0eIuJPdeFg063V/8+NpgfFDTW4ovZFzQLqh+Y2cA01v5PQ4t5/fyOmZaH8bj3Kd1es3PZcVbHNN9Os3vSLqSK/f9Ch3CP1F7o95CfQkCgM9rJr21xf9Nks/svsjjuwmHqC4hfIglMvslUD0tcbpu52rE4j9oVKgk9V2h2pVnDj+jTnx5+X0X5b7PIyEEz+KfvEZRwKifDnzmUYCUhgJgONVzucwEoDRtcznYSTAUa5zW6lgKyvY5prwSABF1LGNV4mfcSQMKO9a1wK1pbJnvaKKRtd3rFcK5L6q7FfXKkentl9dym1VGA2L7O36ZnRdYLRZlXSo7UTXMiVJZSP6Qb2bDDeI/Sh6Ro/ET5X3HO8CO40/Vd4j+VPlvUI/Vd4z+qnynoWfKr8bbOiwqrlDGwKEtevpMjR2mRu7rDR2KRu7zI1dVhu7FI1disYuU2PjfcJlaPoyN52XigMNj8SPIqIgVB6Ik5jDkR+HE9eBEQ/DSeAQpUfhEUOw8BKfAsFhU5f4gxR+FekoIopd5TeRSMyxy7+IRFzHLv8eEgscu/RzSBFD7MKPIcVAcOzUDYci5d+KOFICx3HslyJkERHTyu9ESLUS38qvRGg5xVr/SIQSMe75JyJUKFMfVH8gYihQbm1DHxii6BtXcTcxR9wkirVxHWWTOb4mcGRNiDHNjwOWeO+fAsERVPf+D9JuvUB3+/eEbtC3w4n9I5tw5NdKbVhFt3kV3cpVdFmccFXSjVHiUCm8MUroIZ9nKxBVtP7wspW3Gs+ExvVOtxqHmqZbjYo/VCqwrXFq0HeeUML6jtukbjVmCdpDtxozfZCn3WpK7Rh92NnyzbmziLn+eHNuqCbenCP0kM+zFYgqXH9c2o7u5meV604yNIGUTVV5qFZlW1eoeSznVlY23rf5FiQL0KZwC5LZgzjZVjGq+8iT5XKx0d/ROz+PqHwNc9vQSDzuaiQRTs2S7W8k7pscSfCdjiSU7Y6Ebc9j5FcZXQtUCUN5VJh5eeyXlCExnkV8k0ve7Bo+u89cVKOpVK+pVK8Z66Wm3kvxj4WRVunBptaDTa0HP2YkOvS2koHxFhirnzKaC1SJ53wsbvN63OaV2MxrsZnXYvPfGYlSn0djsBCo0uDF+BfZX1aL/C4j0cZl5ZzLStIuR+uyrIzvVqDKidux3m3rvdtWejf9mTqSa53fVsLaVpr4RaAyzZDN/DsXXQlUCdCq0jOr0Z4REVtXTrCunGBdtdP16KkVGv1AJ1Clrt1YtnT1bOkq2cLXVSzXsqWrWUWnJ8L9QuMizvubjPx9eUPbXMoWGcyh+SR9yzX6Vonwt0o2fBOzkP7bp4Z52YUXmcfxGzYZwZorv4bWVl5Da+uvoX2Bip6eF+IPvwxtw0foBF/0dw/fUnt3KOo1sbyOdHjcRl9l6pmri+bjffnSw/9/OL8wtXywX+UcZWwrnayFaoqvXOmPuYUJzfJKadEecol1BY+ccD1yQrQ2pX63OkNfHIbZaljFH/tRvC20wrU7IHGTaEUrdqDx1tAqrNOB0R2fFazOgdgL84aGl+JOARwGy7mR3aLtMEhXsFwDgu0B7M0BOLQGSGkMoNIWR/EgdJTzRThI9VzUPjZ4nZPdmurEDpbhYPhWIEO+IcHzAB+C7+QLxt0syQMP+xS83O47z/wgnMt5h83pUig63WWd6rIudRnNniDkvuxyXw5zpYOv2LxtOBhqDsSrOMByRw2GoiEaj8ZpUBpXI9PEPDxNojFqnAeqCTxaTYhD1jCNW7+xicnBtzvPI/ZhbCQmhmGRHaalFDEl5olhygnjlBjwijETNW6LuMhEN0qOfhOjBRTsPlDIMpPoCIajLTgW3mBiNAi7TZ06mK2i8OwXRXFzMKKcAx56Uig6HVVlJOKJJys6VbSvpMedzCuJFG0G7u1TaLaZRNcRt+wHJfytJkJkPekvNTFX1iP/UBNJZD35zzSxwNaT/koTYbIe+iNNp0yD9RTs1mMk5pNhkU+mpXwyJeaTYcoY45QxsCuBiTKNIi4y0Y2S1mNitJ6C3XoKWWYSrcdwtB7HwnpMjNZjL+OnDmbrEX8biT7h7mJEWQ+8M0Ch6HRUlfWIFwZY0amirSe9LcC8kkjReuBVAQrNNpNoPeI9gaKEp9doQFFgG4oqm1FUpSXFIsKYYgG2p6gmk4pysqook2FFkW0rqJSppEULCyIYWeSUo1FUmRpL5HyNOmVtFDk7o8o5GtQql5YViixqfCwU2gpjETLEIIItBr6scbLIKJJRkqjsMhYh0wzil0p6JQMNqrDRoINfRi4tlV8lkiFle62/SKRLfCd12XDH3iLSZUbTO1mweoVIal8rId7WOFlz7fWhg563VoktVeVNhuEjfP02FEqrfuLwDXpv3TpN3sTxGyobLtfiT4knBb9Hemr5hB4RUoXv9LFBWziHo/3fzGUS7wY6Frf6ivg+kandfy1k/+fjn0VSZlrCMENGpdzoHe7gnmZxUA73hb8O0/zBbL7i3A6oTOiA4jvYzvHFa6f2trUjf3vamb8u7qzsY3Zir04bKonw1NoU9Sa3yd+tB6Tb1Mg2xVfnHeemNqKpjWhqG49yndtKBVtZwTbXJL3X7oqoo7/B7ijHnn5vd1PWjed2FN/v24QVoqO4LHSe3gLchAWgI1/1OfOlnrOyvnNiizpDJaGeWJt80bfBhAIUt/FsUkIBT+vbDScU4LjW3YSEAkar2s2QUHCU69xWKtjKCra5JulneFwRdfQf3XEUF9QbTKhD8B8muH3vAYMPKG7fe0jBB56etz1w8AHHTXMPIfjAaPvetriqH9lodmSu6kjsbNmyqzqNe1i20VWd0SacLbqqk7ghZYvT65GhWKDJjaItS9tsq85lo8SOpG2wVUeirbzhaFts1Y9yndV+oi3bqtNcE71daBtt1VncGLQNtmrIly9D9PGBxAkhalN6IMFcNVg9kGCJmp4fSLDA3cEPJBhTHNLSlWIhinJOGqfEdD4SC5GiLuU8Na0Sp5SxJtTi1ApUaaDMYhPrDeF8Nq6T2uRaWzi9jVf6NiU6vDINuY6UIoASZTxKKj6o5xChSlFCiSOBGncsanEMoEKhUr+rkYOlP8DjASUaEkEaD5YYGEHNYwPleizTCEFtJJatpvW2y9GC+mgDecygpIcNlhhpIw8elOpJwUPoW1mvnttRXIN/C+tVQHkN/o3Xq0Bxveo4Ls2/xfWqM1qafyvrVT/KdW4rFWxlBdtck7RedUXU0derjuK1wjeciRhR/dNMlLhonJqJkpT7Ic1EzLm1eSYioRWo0kDZS2omYqlS2Uqn5ZmIBeq+NBMNvNyvUoiaaJz60Llouom56S7lPjSNwmKc220C92ERWoEqDZR9aGK9IdyHxnUfmlxrC/ehcepD/BWkGqamBo36M2oiFKFADkeUc98GnUIWNI5LELmfUWwreCQIss9DgfGGct8HTfd/KDLWVs6DoEEu/Ot//z8nhUqv"'),SEe=JSON.parse('"eJyNnVtzG8mxrf+KAk/nRGh8eBWleZPnItsaj0ZXWNvhB5BsUdgE0TLAFgjt2P/9AI2uzJUrV7X8olB/q4CuyspaVX0p8H8mP7V3d83yfvLj5MPfu/Xspnl0enH05Nmjs6dHz84mjye/tsv732d3za7AX5rF1+Z+fjXb426xUHh2N19shTBt5jef92f5e3M97+525K/3s8X86vnyZrEre7Q7Xv86f2iu/5jfX32e/Hi/6prHk58+z1azq/tm9bbZf/aXh/tmed1cv2nvZsuhbn/+c/sw+fGfPxw/efL4h5OT88fHR0dHj5+dHv/r8eT9rvBqMV82f7Tr+f28XU5+/GEng/Du8/zqdtms15Mfz3f8Q7Na98UmR0cnf9p90e4kv7e7Juyb81P7Zbvat+LR/7n6v4+Onz09f7z/96L/99n+32dH/b8Xj55ft5fNo7fb9X1zt3701+VVu/rSrmb3zfWfHj16vlg8erP/nvWjN826WX3dUQvVo/n60ezR/Wp23dzNVreP2k+Pfpsv2/vtl+aHXaHFo+cvHs2W1/+vXT2a775g3V2u59fz2WrerP+0q+wvu1Ndz5c3b68+N30f9DV5e7/7yGx1XdRdwZ9mX/4ydMnF8dPHk3+Uo/OT08eT5+urfaBXg/hzY8c/nBxdPJ68vb/+y3QnPun/+2H336dPD7319+Z+Nb/ahfOf/zOZ/mPy48nFTvh9V5H1l9kuiv/7mHDzcLWY3Rk/PT8/8H937S5alwtTzs+fHJRld3e576abZdau28VitjL+dNctPf/SrK72SV6EJ08uDsLsbietd9Hxmp2cQA36/vbanZ4O3zdbNctF86km0cdKNWbr/Teub73iT8+GTy26dQ7O1W5szvIpPm+/fG6WufiuKfP2OvP1Yrb+nIP1rVm1mbbLJsP7jSh5/3nViLKf2m4l6PyrKLuePwjYfG1E3zYhpp4O86VIq6t20YoIrZu7eZSsBxZ7E0i0+Xc3W2R8s2p2g1k0899ds+6NpijHR8dDRs9E+j3P6M+GLkom/pTRz/mDvzg6Pj6gX/2DJQIv8nf9Jcfpr96yvV3u0d/yGV/m9v/mY69k69/zGX/P9XqVv/6PXOp1/q43+YNvcyTe5Q++zx/8YOjZ2dDT01zqHxl9zGf8rxzVy91cdtvcB99wcafFgcqfi6Zy9sRM5Wo+v5qvrrq73B/d3rXXu+kHxkgwuFAZ+9gso8ucElfCgMW4zQ36lEvdZPQ5V3me0X/net3mUouclyJawnWE730Rwz6b9CrXSzi8iH2XP/g1Z+8ml3rIaJvRN6jqmedXTISTJ0clK1eV8jEbzRn7bLyfL66bHJLDXH/dbkScw/TsU8F9v0zz5DguI+7Tfl2IRmuf2arJ49OiXc0FXzeVb7nqVrt5/MoDePzsGIbNet6vW1MTy7JFD6ubbr5T7tp7vXTYy/0Xf0em0Jee/TQXTCygdis5uR64nt3cqDntwHEtRiuOfd81qwbG/umFLYZmN6vZFz/b6XnJrN0FRAMZF1ypb+blbD0S4XF1pRcL1gFR7y8ZDrFZLOZf1vO1kHZtvf/cdmGxaG5f5v2Q3N5zq9lXUdnZVXcv8MHLPy2ah6xVRtbd7GrVihNfrhp14uv2fnYVRpxL811PYgDc0HAcemV3l3O7NbdYpHbLm9mqu1vMOnGa9ma3zrwVXzdbhcWT9ctdyFkXnvuyZ3fdOnz56vrTbqEXVoa+QomTrC9AIvczvIIzPDm3M9ztnK5b4CnsamMmprzr/aBfr8UEtogntpRqI7cVSdvksrvxubsi3uW9mGL+mrrUnSBmoE//MW98apKd6l8Xe89XR7kGZbq4nn+dQ0L7R2LNfMEsBodXO37IV3rqQzZFUgxssu4vvmiYQFPzV/r5wlBxXO+IGY0H/0ylhzr6gF8FpJP4NcPOI+Ai5KQ4sWroRXHwq3LTQ5yKXMfXhTEPvJU6Lr+rCvjwqOVoNFVf6cvm2KVU7duisUI4k1VChsxk89fsiTYU5/HsZxdDnRftt2Z5IzL3TTyFX8WNJmc3OkiE6MOrNpGsKm294rb69U+OnJ3m3ed2JVr1is7uYai4wVviZ2USo7DZaOKMtYjpya2/w7Hu+lXOStSXUtCiWONkq8UE77rF/fzLYivqRQ30JA8NPLsolyaz1f18trief/qU+2pbt4bf43k8YceS5ZfRNBuZdbJk6VQZnsuaDdYy5vcYIJ8M6Yvw/ttuxYA34ewSaNXeNku8EDJzXDU383Vc+voQjZ0N03EeF+Yc3W5Uh+sRD3ZlDbmqRKalyPi4rKTUf9EIP3tW1q79ra54I8zi/Mv95wx/SgZoZq586/R4aON9Zd5oqrNjbRZ8Xls+jGRlDLBfL9PQsFsRXClzhVqP1Kae2jS6rg3KPI7t3KPLEp4xy7qgWdyLGz73waTdEzftiCPW43vXiZZQzC1Ucp3pY4FC71eqcYXztNyw6H18l8CrXSKv8/e9Tfn67FnJV72ifTk6//4WO84vJeyxjjLFZAtuGTFMzmvT2W+x2haHXdQ+zxYwNZRBvr80oVvd1hdjLr+MyyZPte90YGUoNLUG3UQzxQYN3ap6VffdW7lAtAyWNT8rPXi9swn10KONXQRWqC2ti+XPzs3Or+dXymh/jl8EC7Ox5e7vsX+8upV+ezOe10p1b60soZ9XTTpeDlgPUJ3NiEcWlL/Upnt2CrtFLBtqC7K4ErBvGx0KlSrcj55p0d7s+3vZinC3dTPtslSG8u6rKiP5ZvyKFmZyj3klfZdyHrebO8u8aHbPr43xX7r948h/PZ68bFbLP2bz1f4h8j8nz/cPqyePfzg9+tfj4ejgHgEd6hnRYOoIX8Sjg6sEhA1D4VU8ylXAqTdw66pAD+M/oOA8QRlCFtjh7lBAh4GD6HU4erc7Oj7xwxK0wEL7QXm/Ozz3oxIAQCEAwCEAQEsAAFEAQLEAABuGdmC9oyD5sDu6sKNp0D7uG3jkh6VJyKDugLsQ1i4nQ1dJhk4mQ5eToasmQyeSobNYABti4eTr7ujMjjbhaBuPSosAQc0HOhTC0WmIQmKcxqlzHqxFeSEQDVvjcuwW9ZVAlVrKoWxi7kKTqB+N6840mXvUBBrjxmmgF/46IxzyxnjcuyAHf5HBAQyRDRhXXmBiNgSTyBWMa2swmf3BBDYJE6JTFAx2UdA0l0LjMMbuYYKwkKJ1ucPYTIyP5aSwFZMqOVkxGJNrOZmsxoToNwWD6RS0yWgrEHmQ8WxEgx+gERmicBonI3LORlSUFwKRERmXRlTUVwJVaimNyMTc6SZRpxvXnW4yd7oJZETGyYgKf50RGpExNiIXpBEVGYzIEBmRcWVEJmYjMomMyLg2IpPZiExgIzIhGlHBYEQFTXMpNCJjbEQmCCMqWpc7jI3I+FhOCiMyqZKTFSMyuZaTyYhMiEZUMBhRQZuMtgKRERnPRoShQTeKnAIbRfIlEtmcgvyixsmmoii9KhR5VeNjDZHWFUvkXIk6JUwUddbEMpw6USVPiyIZWxBfVzhaXBTY50iVZhfKgONFTrYXReV9sUQ2wKiTC0ZRW2Esw34YVTbFqEZnDBrYY+DTSnk0yiiwW0ZVWGYo0FVSgc0zit8dGsJGoz42NCqGGsuMDo1krVGN/ho0MNnANxW+rXHy3Chm43WCtouUOgQlstwgseGC+EJTMluUpNVCgVea1qsuTRb1nEeoUhahpHMIS3AGoUbWihIZK0ivJUVTRcyWGjRpqFAC7BQpmSlKykpRz0aKKtkoStpEsQRbKGpsoKhF+wQFzBPoVJZF40TMtomaME2QO9nNbJgofSfJhVmiWk/yilFiiZEkTyaJWrRIUMAggW4k3WpK1ohSNsah9eiKhijkxskPnbMZFuWFQGSDxqUHFvWVQJVaSuszMaeESZQPxnUymMyZYAJ5nXEyusJfZ4QWZ4z9zQVpbkUGZzNEtmZceZqJ2dBMIjczrq3MZPYxE9jETIgOVjDYV0HTXAqNyxi7lgnCsorW5Q5jszI+lpPCpkyq5GTFoEyu5WSyJhOiLxUMplTQJqOtQORFxrMRlbqiEzmjgLpAXgQCm5FJLxQjO3JB+pHJrxSrVVZakqu5/12jBHBBZ4DrnAKukC+5QMZkwmvB0JocsjeBIs3JdHAnZ2RPLih/cjUblGvkUC5oi3KdPcoVNilXoksZB5syNhXl0KgcslO5IqzKxE50IZuVC6PpKuzKtVq6VgzL9Wq6JstyJXqWcTAtYxvBtoqRb7mQjatUDI3LGQXXBTIuENi4THqhGBmXC9K4TH6lWK2y0rhczZngGmWCCzoTXOdMcIWMywUyLhNeC4bG5ZCNCxRpXKaDcTkj43JBGZer2bhcI+NyQRuX62xcrrBxuRKNyzgYl7GpKIfG5ZCNyxVhXCZ2ogvZuFwYTVdhXK7V0rViXK5X0zUZlyvRuIyDcRnbCLZVjIzLhWxcq+GHPrwKhVBgCybLMsyGNQgvMiGzKlha1SC+ykRXT5pU0XKfF4V6vGDd30Xl3i6crKlgMqYBv04ETakgtiTj0pAGFeyoEDKjgpUVFS0bUVHIhgrWJlRUtqDC2YAKj/YzUDCfgUxTGTSegth2ChemM0hd6h42nIJHEk+YTVF04lWMpqiVxEsmU3i0mIGCwQxkk8g2E7KWgrOxDOmOzmKIQmicvMU5m0tRXghE9mJc+ktRXwlUqaW0GBNzV5tEfW1cd7bJ3NsmkM8YJ6Mp/HVGaDXG2GtckGZTZHAbQ2Q3xpXfmJgNxyRyHOPackxmzzGBTceE6DoFg+0UNM2l0HiMsfOYIKynaF3uMDYf42M5KezHpEpOVgzI5FpOJgsyIXpQwWBCBW0y2gpEPmQ8GdGfh9w89iPvDEMhfsBD9xgtUQNEAQPFYgXMwgRsiJCTw+96Pf7hxMjw010F/QSFTo1YoQGVV+KoZMFcfBj+XLzgVLxYc/qACfSRn3fouXVPfxQ7s0fFxQGFPgKeurynpY8AWU8As54ANvQEkGKpjtwLfh5swLW9Azzzo9I6QFBlpyWA/rUWuQGVToDwGaIYGqdAGlfRNDGH1CSKq3EOrgkcYRNimA1TrAv/kMMwzaUg9IYo/sZzJ3Du0/lSd/T7CGN3FMTdUTh3R+GyO4oouqNI3B2Fp+4oQuqOIlB3FMzdMfAPOQzTXAq7oyDujsJFdwwSd8eAqTt+HXriqR+VUwEq8QcUQg8cKgS0BByQxRqYhRnYEGEgJbiOZrag6I/iCqpHpQWAxHqq52kp1dO4iuoRrZB6RoujnoV1UU9KCxyV3jp25CuM/iguYnoUV/4HlJc0PU+rmQO1bX8Bx/VNj2jt0jNatuxZG49yndtKBVtZwTbXpJWLrF4RdWzjcr9HcaX/K44JiP5qPy7P7cicyVGJPqKw2D8IfxtG2GH18TccYYBKfgIKkQIOkQJaIgXI4gHM+gzYkJ9ASogczeJRbsEst2BWacFMtmCWWzATLZiJFsxSC2a5BXGl9be8xNqjLnyky83sKm3qZJu63Ca+SABFtLYTre1Ca19ODtfh534U7a9Hwut6nryup9HreiQvFnuFXLBnZdQBipb3cvC3Mz+Kc/9L9DdEecZ/Sf6GFPwNcJz+XwZ/A0aT/svB3+Ao17mtVLCVFWxzTdjfQBF1NH8DFNceLyd4Tfxyki6HX6asBp5c+eUkXf++FFkNCrnyy0m+4H054WvdPdmGbNnmrN7m7A0GjOOCBPoyUtVooSLfPTWNIVL1cKJCPLJIpkFGKo23qEJ6kEAZTSoNSFZF6lORPAq4QB6xVIKGDKk8RkjmIR3ltiqMhkWOeSryvYazE5CqTYEKjbedrYJUco2ogoGQQF5CqrIVKpIdhgqQ2ZCqfYcKsQWRzG5EcjSmKG5rI4ztitRkH79NhhvLx35o95SRxdvJrnyIh/vLygs76u+unvmh3csDhjftHMcffc2S8SfGtxas3zAQgFKf/xb2VB8T4zjU9lST/EEwCEvYcXxGjAMkdxyTVgtV0DleuEuXYsGRU7t0B6nca8HwGePwuSDDh7eOmEH48N5RaWm6eZQEEb6i1cIXdA5fEbc5Fhw+4yJ8YXCGIEYlhZJkHdBQ6ENVweAGIYQ4KinQUVbhDiWqQc+lUuiTEcpopm6oGuFQYJimQjcY4w5wQYa+yB8Eg3AXhIE2xiE2QQS3aLWwBp0DWsRtjgUH0XgK327JC3cb+qN4EdujeK3eI3Fd2/N0XdvTeF3bI7p67RldvfYsXL32JF6rvxr6/syP4rLzVe5vFz7YjPpq6GOPyz92R0/s6KP1/yvsZkDQdKflNoKf0m4jDKj4NHSDIeoL49QhxlWvmJi7xiTqH+PcSSZwT5kQu8sw9RnO3xQG7r3K7E0q9CPO3acRQY/idH5BiPpWTeYkUS+nx34DD3snob8jp06PIvV8FFX3xxI5B6JOiRBFzoaockpENeZF1Cg50k5uFT1Ok7F93KoIJEzatnwqOKRO2s58oTglUXUzs9IpnYLGOQWbziCjkFI+oUTZhJLKJdRzJqFKeYQSZxFqnEOoxQxChfKHtqzmOHHu1Des5gKQN7Rj8zRRyBnax3mRKeVLZRdnVilXQOFMKVuCIE0MUY4YpwQxrrLDxJwaJlFeGOekMIEzwoSYDoYpF3BjH4WBs6CyrY9U6H/c8nYaEfQ87oK7IER9rvbAkUS9XTB3dbzNgT3OCnU8y9T/LKs04DI5G7gEJQXLnBusc4qwHjOFVUoYkt9VY8rpk2SVRVQIkokUyClSILVIgQxjhRKN5ZxvVILSjlTOPtvDA3nnjDLOBco1F1SWuZrzyzXKLBc4p1zhbHIl5pFzyqCwY48jwllT26/HMmRK2MJ2SgyyI2xru2BGGSE3tbFGWWCc+79cbkL3G6LeN06db1z1vYm5602injfOHW8C97sJsdsNU6/jbQgKA/d55SYEqdDjeAviNCLob7wrcUGIelvdkyCJ+rpg7urySih0tSHqauPU1cZVV5uYu9ok6mrj3NUmcFebELvaMHU1vthNYeCurrzWTSp0Nb7yfBoRdDW+BX1BiLpavQNNEnV1wdTVfwy9PLyS/gf2MLLSu8jii78g4D0xwPbqLzB/wxegv+ILsLzjC6j0ILBZaJm9oQIovkXYI/HkrufpcV1P4zO6HtEzt57RQ8aehfcEexIfuP0B/Xb81FBjmdQfxYdKPSoJiig/vu55euh0oPDEFXB8ft0jeh7dM3rfbc/aeJTr3FYq2MoKtrkm/DgUFFFHe/AJKD4d/wNHxxD91xN8A74/im/A90i8Ad/z9AZ8T+Mb8D2Sb8D3Cr0B3zN6A75n4Q34N5PDWw8nfhRdu0fCmHuePLmn0Y57JN9h6hXy6J6V+AOKDvxmMN9TP4qvNr7JluvCextEb7CXAIlR/oZ6CWgc5W9EL4FC4/9N6CVgYfy/CXPEmzA9vBmmAdc+xhH0hsx/oOUWJfS+IUoB4yoPTMzJYBJlhHGdFiZzbphACWKcsgRvMp8Sonyp3GQmFTLHEKWPcZVDJuZEMomyybhOKZM5r0zg5DIhZli+j25omgPxMZfirFM3zQepPFmF1DNEqWdcpZ6JOfVMotQzrlPPZE49Eyj1jFPq4QP2U0KUepXH66RC6hmi1DOuUs/EnHomUeoZ16lnMqeeCZx6JsTUwxcIKEOmORAfcylOPfX2QJHS+34nUuA0HHnfTxcRKanf99NqJT0r7/tpmVNVv+8nVUxb/UZDRZUpHMpgIkeB0zmqMqljEZHasQAneFQraR4LpWSPckr5KFPipxc9ZJZOa6H8WPtEGhDVtzwOBd5OeB/k20naB/mWn3US5uK8zYtwKp62OCYhfSQ0iz8WRProLr/xWrY/pGvZntG1bM/UtWwv5GvZHtO1bM/4WraHfC3bw3gt2yO6ln03GNmZH8WR9C5ZFvA0Zt6hOQGSo+NdsCFg8d3Rd2g4jmaxETPRA3YN/sRRrQNmugNmogP8Mhy+V8V/luNvF+L+0at2AT78DpIRPkdVaERr7eI8sEpzG93ccH2OvITBq92IKDQqCp+3Xz43fb2889pYpBXNaWtVb3XVW9FTfOmOkqi+XbtjudxhfvHuxVZ0KBq0Ev1De7hAWTd385wZXSzUidN0tbh1Om6diBu/6IySiFunur3Lyb+Jh1s6FI3BV86G8+EG61Iy7bBOAnux3mOdVBGytMs6Ccmf8z7rpFCw0k5rFsCz09UPc+Xe6uqHJfLx2tUPy+zo6eqHOXl74TPR7OTyJpDVGx/tX2X6ptX6N9m/CdXu5YnAOJmLr3rCwOfFEH+NqmWaIUxgG3JhLFRqwnBNzBom0tRhvBbGPIkUJc0kRWhF4TSnmDDaTjW7mFZLido8Y3qtrWnGMaGSGWnuKcJKsVoI0lTkgpyPiiwmpSJ1oniankwY7QI1UZlW64LalGV6rQvy5GVKZdRuBNsqVmu+mtXCBUeY26KSvjPKaZ6Lso57LKOiH0ukPohynv+ingMedQ57VNOMmG7KnEmBZ8eRmzK6iJgp9U0ZrVZmzcpNGS3zDKpvykh1Vg1ZnlOjzDNrVP+DjJKzbCwxnlF5xo3ydxIqzb5RZael+wLR7eRNA/3F9fbkuTnKyZ1J/n7I5WxNJdScHYvwzB3V8U4Rs3jQ81we5Lb6wTyvR/k/iI6c42OJ8YSszvex1HiE8twf5dG8zOuAIK/qynj48sqAZL0+CIXUKiEU6KofzSuGKP8HnStXD7HEeOdWVxKx1HjnilVF1Ec9aVNVtnVlPHR5zfF+WGic+VGcI9/jggKQmCvf08IBaJwV34cFAjC69/0eFgJA4hT3fsKvH72fpDePypMBbGvaIcWcWq13SLGY2592SDHnSOQdUizEmKQdUsQpOpWdReHxCMZJ7yySIkVsZGeRLJFjp3cWSZGjWNlZJNUYT72zSIkU2bFNNvBoCYOrNtkIiQJb3WQj9BxUtclGSBxQuclGaDGYapNNliiQ9R0o5QEcxjDtQGFO0dM7UFjMcUs7UJhzxPIOFBZirNIOFOIUpcrOjfe8PaGuUMBqOzcqsgrfyM6NSgkKZnXnRkXn0FZ2blRUCvTolgVWOexhy0JiFOq8ZSEJKrxyy0LSKKRiy0JSOIxpy0LiFLrKG/7OOVz2xw6eK0bhcoHC5YIKl6s5XK5RuFzgcLnC4XIlhss5hcsECpdxDtfwA+7PM6FQFUyBKliFqWg5SEWhEBXMASqcw1N4DE6hFJoBU2AGSmH5MITkqR+VcACKvyX6IYUBePot0Q/YfED0W6IfQrOBhd8S/YDNdfQitOdF7LkexSsuF17Fo5gKPRL93fPU1z2N/dwjecuqV6j3exZvTvUodu8e+W/E9kdxu0GPSggAhYYAT5sSeloaAsiqC8x6DNjQY0BKCxyVK9szIOU20HlBsZObnJh2jweRTsxGJma4fwM452sj8rUR+Wp3ZBy18Sg3o63UuZV1bnPl+E4KKKLadssEUB5TcG/EOgTvSXjPdaFnu5yNXSX1Opl6XU49vpkAikjKTiRlF5JyOrjeuR/F17Wm6HqAxC6IKbke0LgLYhpcDxjtx5iC6wGJ2x+mE3x1coreBUi8JDkl7wIaX4ecCu8ChV58nKJ3AYqvOE4nuOdnit4FKNr3NHkX8GTCU/QuQGS10+BdwMIEO0XvclSc6qmRvX7qR6VNgOI7m9NkVMDT7wNN2agAx1/amwajAkY/lzdFo/KGtaFAm5uhfgl6SkYFNFdO/xL0NBgVsPhL0FM0KkdmVN4fXSjQ5YaoXzmckiMBzQ3RP2I4DY4ETMQ//kbhnmzDONnm8bxN4/bjYGTDD2V9RCdDZg80gcW7wCDgrV/Adr8XmD+kBOg3bQGWO7WA7Bmks72lPT23I5sqHcWp0jlOlU5tqnTEU6UrPlU6s6nSkU2Vhvply5k1wh8FAosLso/J1LBs/pWyj2hryGj6+xh8DQuW+AOy+Dsrk/sTIMOyzAvRZxrRXH/4hqzS3ka3Nz5bAy7i0Ig4NCoO/MBsz+ZhOM3juOsRbVb+OHglfEcrgtDWGtzqBreiYekZGUg++ADa4zBgoqN9decMV3eeAF0coZ2wl65mJZ22kk5YSXpeBJJymU65TEcugw8tEuOGpMcWSZDNVA8uksYNzo8ukpLaxw8vEmc/xe2Fg1ml7YXMlb2q7YUskdHWtheyzJabthcyJ/MtHB3KGA9JE8iLjcvxaqoYtKbxyDWBfcmEZE6mkFMbjxfRxmnE8jMr/hpVy+TgJrCNuzAWKmXorglXN7EWx+TvJlTjmJy+CGD3hsjzjbPxF6EV35umABNGg6UmA9Nq8ahNC6bX4pXmBxN4kkhPOVkQ00WRcM4wVvNbPXuYOmKraR4xoTKZmF613TytmEK2S48jFeYWqweSSpMBqTySVDKHRT6UVGJqvHgsqSSeeUCDyQcpzT8oqSkI9TwLoUoTEUp6LsISPB2hRjMSSjQpgYQOjJitAjWanVCSRoIFhJegzHaCGjsGaslkUaT5CiWassLz6mAc4km2+L5K1dP0hRrPYEH7TjjVPBZkMZWhPhLuNKGhNhbuNK2BBjMbUprcUOL5DbRWnyPNcqh9L6BqrkN5JGC1GQ+LpAsiFHniQ43nPvX6hNDEDAgqToKIR2YFPRVigXHnTxMiapU5EYuMTQ55ZkQxTg77ncJfLav2R5tw5D+X3h/F+3M9SvfhimXi9xa0yWibP8inMZ7PNVgwnqugTUbb/EE+l/F8rvDOE5ww8E2Fbyvfw+ePYq4EdCVUAehG0q38Bj45SvnU5SUcOG9Bm4y2+YN8OuP5XPYuBZzM2Eawrfgsn8+FfEJ7GwFOaGwj2FZ8lk/oQj4h/M37k0A2iWzTp/hE4m/eDwr+WeuTiDYZbfMH+VTqz1ofpMsdvdxbix3FFxv2ZGHn7I/ihNej+PwfhPjM6nKS3pC4nOCfGLxEBwcknrRdkl8DjU/aLoU7g0JP2i6DFwMLP5x4GTrncoJPFy4x/oBSXa9wOXZeyG3Qb1Vkr9JdiPOAb3NJ/T1pz+Z5wLe5ZOV70i9blG8y4VaV1t92mPIn6y+zq30Izwfaf3H+OyJHWSYtRypeeBv6aqMijrT90UPQtkGj3uaBNlDdaYa5Pjghn8Zv2OQvfciltrkUV1TN0YOkU8Mw17ZwqC3uRKQvfciltrkU11btTCySeuu5VE2+9axErLxeHkT+UCm/rZRPDaotGwZdXbads8ItorXGafqqjTzBgyy7lWW5HZUVSFH9Mi41A6TUDtCwIYA3+iQPuvRWl06NQS23ht91Hmqb3nUmDi3Iyy9DD7nUNpfiGqsV2SClt16HauW3XlmACoslnLMHUW4rynGl5bJu0NLLp0Pl8sunLECtxTrQ2YMotxXluNZybXjQPk0O96NO/SguwnpU7j4BEu9K9Dwt1Xoa35XoEb0R0TN6I6Jn4Y2InsS3PT5BxJ3sxsOiWa/7mx9PC4wfanJD6Y2cA9INzW/kHGh6I6fHuf38Rk7PRPvbeJTrrF6/6bmsYJtrol+/6RVRR3r9pke5Q+gvcn/KS6AnURjoYdW0v77ot1n6kd0fcWQ38QDFLZQHoVxmrwSirzVO3+1cnUDsD5UCnay2O1Sr4sTxb8yJPy+n/7Lc7TASTvwo+sUtjgRE+XLmlkYCUhgJgONVzm0YCcDoWuZ2GAlwlOvcVirYygq2uSY8EkARdWzjVeItjoQB5V3rWqC2VPasV1TR6PqO9UqB3FeV/epa5ejU9qtLua0Ko2GRvV3fjK4LjDarkg61nehapiSpbEQ/qHeT4QaxH0XP6JH4qfKe411gp/Gnynskf6q8V+inyntGP1Xes/BT5XeDDR1WNXdoQ4Cwdj1dhsYuc2OXlcYuZWOXubHLamOXorFL0dhlamy8T7gMTV/mpvNScaDhkfhRRBSEygNxEnM48uNw4jow4mE4CRyi9Cg8YggWXuJTIDhs6hJ/kMKvIh1FRLGr/CYSiTl2+ReRiOvY5d9DYoFjl34OKWKIXfgxpBgIjp264VCk/FsRR0rgOI79UoQsImJa+Z0IqVbiW/mVCC2nWOsfiVAixj3/RIQKZeqD6g9EDAXKrW3oA0MUfeMq7ibmiJtEsTauo2wyx9cEjqwJMab5ccAS7/1TIDiC6t7/QdqtF+hu/57QDfp2OLF/ZBOO/FqpDavoNq+iW7mKLosTrkq6MUocKoU3Rgk95PNsBaKK1h9etvJW45nQuN7pVuNQ03SrUfGHSgW2NU4N+s4TSljfcZvUrcYsQXvoVmOmD/K0W02pHaMPO1u+OXcWMdcfb84N1cSbc4Qe8nm2AlGF649L29Hd/Kxy3UmGJpCyqSoP1aps6wo1j+XcysrG+zbfgmQB2hRuQTJ7ECfbKkZ1H3myXC42+jt65+cRla9hbhsaicddjSTCqVmy/Y3EfZMjCb7TkYSy3ZGw7XmM/DKjK4EqYSiPCjMvj/2SMiTGs4ivc8nrXcNn95mLajSV6jWV6jVjvdTUeyn+sTDSKj3Y1HqwqfXgp4xEh95UMjDeAmP1c0ZzgSrxnI/FbV6P27wSm3ktNvNabP47I1HqdjQGC4EqDV6Mf5H9ZbXI7zISbVxWzrmsJO1ytC7LyvhuBaqcuB3r3bbeu22ld9OfqSO51vltJaxtpYlfBCrTDNnMv3PRlUCVAK0qPbMa7RkRsXXlBOvKCdZVO12Pnlqh0Q90AlXq2o1lS1fPlq6SLXxdxXItW7qaVXR6ItwvNC7ivL/JyN+XN7TNpWyRwRyaT9K3XKNvlQh/q2TDNzEL6b99apiXXXiReRy/YZMRrLnya2ht5TW0tv4a2heo6Ol5If7wy9A2fIRO8EV/9/AttXeHol4Ty+tIh8dt9FWmnrm6aD7dly89/P+H8wtTywf7Vc5RxrbSyVqopvjKlf6YW5jQLK+UFu0hl1hX8MgJ1yMnRGtT6nerM/TFYZithlX8sR/F20IrXLsDEjeJVrRiBxpvDa3COh0Y3fFZweociL0wb2h4Ke4UwGGwnBvZLdoOg3QFyzUg2B7A3hyAQ2uAlMYAKm1xFA9CRzlfhINUz0XtY4PXOdmtqU7sYBkOhm8FMuQbEjwP8CH4Tr5g3M2SPPCwT8HL7b7zzA/CuZx32JwuhaLTXdapLutSl9HsCULuyy735TBXOviKzduGg6HmQLyKAyx31GAoGqLxaJwGpXE1Mk3Mw9MkGqPGeaCawKPVhDhkDdO49RubmBx8u/M8Yh/GRmJiGBbZYVpKEVNinhimnDBOiQGvGDNR47aIi0x0o+ToNzFaQMHuA4UsM4mOYDjagmPhDSZGg7Db1KmD2SoKz35RFDcHI8o54KEnhaLTUVVGIp54sqJTRftKetzJvJJI0Wbg3j6FZptJdB1xy35Qwt9qIkTWk/5SE3NlPfIPNZFE1pP/TBMLbD3przQRJuuhP9J0yjRYT8FuPUZiPhkW+WRayidTYj4ZpowxThkDuxKYKNMo4iIT3ShpPSZG6ynYraeQZSbRegxH63EsrMfEaD32Mn7qYLYe8beR6BPuLkaU9cA7AxSKTkdVWY94YYAVnSraetLbAswriRStB14VoNBsM4nWI94TKEp4eo0GFAW2oaiyGUVVWlIsIowpFmB7imoyqSgnq4oyGVYU2baCSplKWrSwIIKRRU45GkWVqbFEzteoU9ZGkbMzqpyjQa1yaVmhyKLGx0KhrTAWIUMMIthi4MsaJ4uMIhklicouYxEyzSB+qaRXMtCgChsNOvhl5NJS+VUiGVK21/qLRLrEd1KXDXfsLSJdZjS9kwWrV4ik9rUS4m2NkzXXXh866HlrldhSVd5kGD7C129DobTqJw7foPfWrdPkTRy/obLhci3+lHhS8Hukp5ZP6BEhVfhOHxu0hXM42v/NXCbxbqBjcauviB8Smdr910L2fz7+WSRlpiUMM2RUyo3e4Q7uaRYH5XBf+OswzR/M5ivO7YDKhA4ovoPtHF+8dmpvWzvyt6ed+evizso+Zif26rShkghPrU1Rb3Kb/N16QLpNjWxTfHXecW5qI5raiKa28SjXua1UsJUVbHNN0nvtrog6+hvsjnLs6fd2N2XdeG5H8f2+TVghOorLQufpLcBNWAA68lWfM1/qOSvrOye2qDNUEuqJtckXfRtMKEBxG88mJRTwtL7dcEIBjmvdTUgoYLSq3QwJBUe5zm2lgq2sYJtrkn6GxxVRR//RHUdxQb3BhDoE/2GC2/ceMPiA4va9hxR84Ol52wMHH3DcNPcQgg+Mtu9ti6v6kY1mR+aqjsTOli27qtO4h2UbXdUZbcLZoqs6iRtStji9HhmKBZrcKNqytM226lw2SuxI2gZbdSTayhuOtsVW/SjXWe0n2rKtOs010duFttFWncWNQdtgq4Z8+TJEHx9InBCiNqUHEsxVg9UDCZao6fmBBAvcHfxAgjHFIS1dKRaiKOekcUpM5yOxECnqUs5T0ypxShlrQi1OrUCVBsosNrHeEM5n4zqpTa61hdPbeKVvU6LDK9OQ60gpAihRxqOk4oN6DhGqFCWUOBKocceiFscAKhQq9bsaOVj6AzweUKIhEaTxYImBEdQ8NlCuxzKNENRGYtlqWm+7HC2ojzaQxwxKethgiZE28uBBqZ4UPIS+lfXquR3FNfi3sF4FlNfg33i9ChTXq47j0vxbXK86o6X5t7Je9aNc57ZSwVZWsM01SetVV0Qdfb3qKF4rfMOZiBHVP81EiYvGqZkoSbkf0kzEnFubZyISWoEqDZS9pGYiliqVrXRanolYoO5LM9HAy/0qhaiJxqkPnYumm5ib7lLuQ9MoLMa53SZwHxahFajSQNmHJtYbwn1oXPehybW2cB8apz7EX0GqYWpq0Kg/oyZCEQrkcEQ5923QKWRB47gEkfsZxbaCR4Ig+zwUGG8o933QdP+HImNt5TwIGuTCv/73/wO+9kRf"'),kEe=JSON.parse('"eJyFnVtzG0eShf8KA0+7EfKseJXkN9nj0Vj0yNaNEHZiHkCySWEJsmmAIA1PzH/fRqMr8+TJU9CLQv2dYqMrK/NU9Q349+jH9va2uXsYfT86+8dqOb1u9o72Tw5P9o4PTk72R89Gf2vvHt5Nb5uuwafZbbP87od2frnhq/kc+V7h09vZfI1KB8fN7Prr5jOGRj8/TOezi9d31/Ou1fNue/m32R/N5W+zh4uvo+8fFqvm2ejHr9PF9OKhWXxsNn/50x8Pzd1lc/mhvZ3eDcf1ww/tH6Pv//nd/snLZ98d7L98tv/8+fNnrw6P//Vs9LlrvJjP7prf2uXsYdbejb7/rpNB+PR1dnFz1yyXo++PO37WLJZ9s9Hz5wd/6XbUfci79mF2senIj+39erHpw95/Xfz33v6rl8fPNv++6P99tfn31fP+38P+3xd7ry/b82bv43r50Nwu936+u2gX9+1i+tBc/mVv7/V8vvdhs7fl3odm2SweO7oN4my5N917WEwvm9vp4mavvdr7ZXbXPqzvm+/+3nR/9frN3vTu8n/axd6s++Pl6nw5u5xNF7Nm+ZfucH/qPuZydnf98eJr08e/P4qPD92fTBeXRe0a/ji9//swJCcvTp6NvpSto5P9Z6PXy4tNqBed+PLw2eivjW13QX7xbPTx4fLv467tUf/fs+6/+4evtgP2j+ZhMbvoIvrPf4/GX0bfH2wi+647kuX9tAvkf55t8eHh4RY3f1zMp7fGj4+Pt/z3VduF6nzuyvNhR3er2/PNSF3fZe2ync+nC+N9NvTCfbO42CR5UV6Wz5/edtKyi08+tP4Q+jHP2v100dzNm6uaFP/Mjm+63OxxeePKi3KA89XSqAXtoqvNaf6Ir+v7r81dbt51ZdZ6Tw5evBxiP58uv+aj+bNZtJm2d02GD0+i5cPXRSPaXrWrhaCzR9F2OftDwOaxEYPb6Jjeze5EXl208/Yu42VzO4uSjcB8YwSJNr+vpvOMrxdNV8qim7+vmmVvNkV5dVjG3o/9xcHBlr02dHLyYot+yK1+zOiv+Q9/crS/v0V/8z8sqfAmo797mDon69HPuWNv8x+e5oP4xfu9cYcN+kc++nd5X7/mo/8tt3qf9/UBvONkiz7m4/qU//BzRmfCOca52ZeMJvkj/zdn33k3n900D8E3rEjPOy0WKv8dmcrL/WIqF7PZxWxxsbrNw7ba+Paym3xEjfQGFw7GjSpH9dzQURnai9zqMrcSn3yVP/E67+trDtIs7+v/8h/e5D/0Gjbrv81/KFynza3uM/o9d9vNwcpqmY/+Ie9rlQ/iMWfcU24lrHSdj+tPP4hXR55fMREODp6XrFxU2lM2HjyHbHyYzS+rk/1l+yTiHKZnnwoe+qWaJ8d+Ka+rzdoQjdb7rCaPq3m7mAm+bCp7uVgtunn8Yp1TqS+b5axfuwr/365bdFldr2adcts+6KXDRu53/A2ZQl8S52ommFhBdWs5uR64nF5fqzlty3ExRiuOzdg1i8Zr//io6N0S/noxvQdTK3963p0/NKKXHt7z6XJHhHerlQWYDUDU3e67NfbsfjlbCqnr68PXdhUWi2neD8ntI7eYPop6mF6sHtTapffyq3nzR9YqlXU7vVio9c75olEffNk+TC9Cxbk060YSA2DKAuvQD7a57EKqFqmru+vpYnU7n67Ex7TX3TrzRuxuiv2AcbkNOevCa1/3HJpnLy6vuoVeWBn6EiVOsr4Cidw/4Vf4hEP/hNvO6VZz/Ajz5qkzc43LTdEvl7OszCvL85YOtOy9hbQvZd7VZ3dW3OU9jJst5tKQ+tQcM9Cn/5g3PjXJQfXdxdHz1VE6AltIX84eZ5cihJN4ZL5iFsXhh135o8+7/mhNVWiTdX/yRWUCXc279M8LpeI4h8GOnOrB/4ZGyEaC/sBPA9KH+ElD5xFwFhLPMqmjL45eFHG48CE+ilzH14UxD7yXOi7v1AF4edRyNJqqL/Vld+xcqra3aKwQzmyVniGhm8DJE335Gj/9qCyo5u2fzd21yNwPVFF2Gqc66cmxs0h2Ze7r2pAu4oHAUFNf/fwnR85O7T59bReiV7/Sp3sYKlXwMfKTF0P7y4oRfaYP8IjFyS1c4Viu+lXOQhxvTEGPYo2TrRYTvF3NH2b387U4LuqgJ3kcjpJI3XrrYTadX86uxCnWum4N7+LneMKKZPHa2JlmO2adunRRGei7mg3WMuZdpTZ/ph3h9bduxYAX4ewUaNHeNHd4ImTmuGiuZ8u49PUSpbWXT8e5LuxsZNVVdTgf8WDHnPLCrBhaS5Hxuqyk1P+SaR+9KmvX/lJXvBBmcf7pQaxQfqwa4FxOqvvDaD5UTKapzo414XVt+bAjKysB/rNWGvzZ5gq1EalNPbx4t3mk9sm5ju2zdy5LaMbcL+uCZv4gLvg8BJN2T3xqdzhiXuKU3d2uRE/iEXmo5DrTa4FC71ef4grnxTH6eJfAiy6RxaF9TCcxNjFX5t9Tlcd+ihEHzk8l7MaOMsX6QuNnOn80XqvxX+iwSxy6qH2dzmFqKEW+OTWhS902FsrlzZfjsslT7RsDSOsgCwLPz3beHs0UOzQMqxrVqZzrP8oFomWwPsWxayGdTaibHm1lyv+xchAryvwyEF2CzC6U0f614o2Lncvdd3F8/HAr4/Zhd17v/KzXlX2+rpp0PB2wEYj7cSMWE6cvRSrTfc0pbuQC2hZkYSXge9tZCnQIdsVm5yfN2+vNeN+14mJVWzfTVZZKBnW7qlTytTwSu8ICM7nHvJK+d2pXfv3lLi+a3fNrNf7TanM78l/PRqfN4u636WyxuYv8z9Hrze3q0bPvjo//9WzY2rpHQNvjjGgwdYRv4tbWVQLCjqHwa7d15FvlEABBcgRuQxXotv4DCs4TlCFkgW2vDgW0LRxE78PWp27rlW+VmCEKvXfh8yYWz23LBsBR6D1w6D3Q0ntA1HtQrPfAhroOrLcTJGfd1r53f7zZPDR1stl87pulU8jg6AHfd5sHtlt4TuDZdy+OCl6FQ1nlkK0qIVvJkK1yyFbVkK1EyFYiZKsUssfY06dNFtjWOnRwXboECA59oEMjLGFDVMfGqZidc0UX5Y1AVNvGZYEXFarcEJW6cVXvJuaiN4kq37guf5PZA0wgIzBOblD4+4zAFwyROThXDlFUsAlDlPjGVfabmEvAJKoD47oYTOaKMIHLwoRYGwWjpxSGxlIYuosxthgThM8UDcymIOU4RVvlQ2bvMb5rCIQLmVQZgoofmVwbguRMJugheBRRAqMqaJ2Dw5ZlPPvWYB/oW4bIt4yTbzln3yrKG4HIt4xL3yoq+JYh8i3jyrdMzL5lEvmWce1bJrNvmUC+ZZx8q/D3GYFvGSLfcq58q6jgW4aoaIyrojExF41JVDTGddGYzEVjAheNCbFoCkbfKgx9qzD0LWPsWyYI3yoa+FZByreKtsqHzL5lfNcQCN8yqTIEFd8yuTYEybdM0EPwKKIEvlXQOgeHfct49i2MDZpX5ORgUSQbI5G9LMhvapxcLYrS2kIT8LfIyeSiqJwutsh2F3XyvChq44tt2P2iShYYRfLBIL6vcHDEyMkWSVTeGJqAQUZOJRpFVaexRS7WqFPFRlGXbWzDtRtVLuCoxioOGrppENBSg4C+GgU216gKhw0NwGYDV14bGqwqXWPXjeI3h1T4b9R3DWnFiWObnUOaPDmqO4b0sRZhsOjA15XAsllHMTu2E/RrpOTWKJFXB4mdGsQ3mpJLoyQ9GhqAQyMlf0ZJuTPq2ZtRJWdGSfsytmBXRo08GSVyZJDeSwpujJS8OEjKiaEB+DBSKlmUVMGinssVVSpWlHSpYgsuVNS4TFGLRQoKui5g9FzA6LiI2W9RE24LMngtUOW0IK9kV9hlUfrGkAmHRbU+ZBV3xRY7hiw5K2rVIXvUkQRPBbqWAWQ/RSm76dB9tFJD5KPGyUSds4MW5Y1A5J3GpXEWFVzTEFmmceWXJmazNImc0ri2SZPZI00ggzRO7lj4+4zAFw2RKTpXjlhUsENDVFjGVVWZmEvKJKon47qYTOZKMoHLyIRYQwWj5xWGhlcYup0xtjoThM8VDUyuIOVwRVvlQ2ZvM75rCISrmVQZgoqfmVwbguRkJugheBRRAgMraJ2Dw9ZlPPtWOVg0LmfkXC6QdYHA3mXSG8XIvVyQ9mUy+JczMjAXlIO5mi3MNfIwF7SJuc4u5grZmAvkYya8FwyczBlZGQjKy0wGM3NGpeSCqiVXczG5RtXkgi4n17meXOGCciVWlHF0NYNoawbR1xyysbkinM1EsDZjyttMXIlDZ3dzYeeQCH9zrTYkFYdzvTokyeNcqQzJo4oY2JyxtQgUG50L2enKkaHTOSOnc4GcDgR2OpPeKEZO54J0OpPB6ZyR07mgnM7V7HSukdO5oJ3OdXY6V8jpXCCnM+G9YOB0zsjpQFBOZzI4nTMqKxdUWbmay8o1KisXdFm5zmXlCpeVK7GsjKPTGUSnM4hO55CdzhXhdCaC0xlTTmfiShw6O50LO4dEOJ1rtSGpOJ3r1SFJTudKZUgeVcTA6YxtnO6QAmVOlwTo9qAthi9bcTsphFyuYPI4w+xwg/AmE3K3gqW3DSI4WyHkawUrVyta9rSikKMVrP2sqOxmhZOXFUxONuD3iYCLFUIeZlg52CCCfxVCpVKwKpSi5TIpChVJwbpEisoFUjiXR+GxOAaKbjUg9KoBoVMVxD5VuHCpQQKPGohyqEFapUNldyp4R8iFMxVFh7ziSkWthDw5UuEy5I85MuBFA1mngPCKq+C83hpqA23IEPmQcTIi5+xERXkjEHmRcWlGRQU3MkR2ZFz5kYnZkEwiRzKuLclk9iQTyJSMkysV/j4j8CVDZEzOlTMVFazJEBWKcVUpJuZSMYlqxbguFpO5WkzgcjEh1kvB6FGFoUkVhi5ljG3KBOFTRQOjKkg5VdFW+ZDZq4zvGgLhViZVhqDiVybXhiA5lgl6CB5FlMC0Clrn4LBtGU++9UNHX2/WUs9ty5ZejorHAAoxBY7rM6clkoAsSsAsQMCG2AApBe/ocx8p2/L0MxQOF3hISKPlcAHRmINiHQFmHQE2dGRL/lrifmxbFndHFndHMe7OMe5OLe6OPO7OPO7OStydWNwNbUziyPozDluTuGWziyOcO4wO367XecEWDf6MwTJEETNOYTOuYmdiDqBJFEXjHEoTOJ4mxKAapsgWDuEtaJzRRCCKtvEc8iKluPfveMa4F8RxL5zjXriMexFF3IvEcS88xb0IKe5FoLgXzHEfOMZ9QOOMJgJx3AsXcR8kivvfhpC/8q2yT0Al0IBCjIHDJwMtkQVkQQVm8QQ2hBJIiaKjqc3l/VbpAaDSA0ChB8ChB0BLDwBZD4BZD4ANPQBSeuBo+52gXZ8OCol6k/vUlKUkIt2nRvYJXk4OOHe1EV1tRFfbuJWPua0cYCsPsM1H0tK8CIo4xras4QHl2FtJ7G/nyrdhjfI2r1He5jXK28oa5a1co7zNa5S3Yo3yVqxR3qY1ytu8Rnk71MT+sW3ZGsVR6QGguGxxjssWp7ZsceSLE2e+OHFWFidOSg8c0VbugVUAIt2DRvYgVADg3LFGdKwRHWvjVj7mtnKArTzANh8JVwAo4hitAgDlSNOksEGr0GCVO7KqdGQlO7LKHeHTGlBER1Yi2KuQRaej7XWGbQn0W7FseyRqtOepRnsaa7RHdNSgUPX2rIQfUCzV02D1p9nqT7PVn1as/lRa/am2+tNs9afC6k+F1Z8Gqz/NVn9asfpTafWn2epPq1Z/Kqz+NFv9abb605DVpzmrTytZfSqz+jRn9Wk1q09FVp+KrD6VWb054z7yrXjhrEfpslj4KpNQFyRQiZCqqoWa5MKhBlRDpOpyokZcWSRTkZFK9RZVSA8SKKNJpYJkVaQ+NclVwA1yxVILKhlSuUZI5pKOclsVdoZF1jw1+VbH2QlI1aZAjXb3na2CVHKNqIKBkEBeQqqyFWqSHYYakNmQqn2HGrEFkcxuRHI0piiCR5FAdkVqcq5fRsOF8wPbsmvmgOLlchPOwtY4bE3ilp3nOsKTV6Pxy4fLGsmUgoeTh1+GWBxbZywAgPAi8JaGt/YPIqL+197aj+pZRuOMJgJRYNTr7CRVQiTfbC9xwhe6KQYcMfVC9yDFbILgkUAhZFUFMrY5qwnjmjCpChRgUnOYY4NKsEUjDnmuWBlFDn+9YocGg59i+A1R4J2rkBf1LKNxRhOBKLTGc1CLVAlnkDmQRVznGHDwjKewvRttLzNsP7DfssnVkV24chQnWec4szq16dSRT4/OfD3grFy4cmJz4xaVwnwtEPXFOHXIuOqViblrJlH/jHMnTeCemhC7a5j6jDcIGFGf0w0C5qrP6gYBS9TnfIOABe4z3yBgzH0ODvC6KnD/o8pRiKqMRWwiIhIbcFyimqIT5RSjKFOkokjxKvc/XwtEMTJO0TGu4mJijohJFAvjHAUTuP8mxJ4bjn3+dejukW/FmxO/YicBxcc9nKdbGL9irwD5AxzOrC/Ahm4AsSc5DH2KW2XyQhTmLRc2U9axbY3D1pfQchI0m7EApUcEfkWjPSJEYU5Gy1wFXBktSxT6bLQs8CCw0TKm4cAVMSMamMqKmNSzHM9xRl/yH05yKx42tUgepPCmOAxg5DSKUaShjKIaz9giD2rUaWSjyMMbVR7jqMaBjhqNdvrCC8lp3Hd94YVqclYZlXGFf6nsZ1Jpz1lR/dKHQYeXXiExkFJaoERJgZJKCdRzQqBK6YASJwNqnAqoxURAhdKA3rMXlFKg/p59bnAmIz+W9Ivcw0S25WGvvHs+qOV1QRhxQzTcxmmsjauBNjGPskk0xMZ5fE3gwTUhjqxhGlZ8R5gRDWjlHWFSz3I8xxl9yX84ya14+NT7tIMUL7LhELJCI8kyDSjLaly5TR5ebkGjzDIPNus85qzHoWeVMoDkT3WF8iHJKi2o0Vl1xMZV5Ut1b5Pq33DmsJwTyF6hg9RxRknjAqWLCypRXM0p4holhwucFq5wQrgSU8E5JUF4wzYxGvjaG7Ysn4nojgX7Iv52ItrxoMq3UAetXN2B0TREg2mcxtK4GkoT80iaRANpnMfRBB5GE+IoGqZBxKt9jGgIK1f7SD3L8Rxn9CX/4SS34sFTFwAHCU/SjwjR2KWTdOZq7NRJOks0dvkknQUeOz5JZ0xjh28mMKKxq7yZQOpZjuc4oy/5Dye5FY+deop/K/02DNv2mfLfcMQAlcECFMYJeHpO/TccHUA2MMBsTIANwwGkjISj/gkt648/oeXIntByJB4s73l6sLyn8cHyHtHj4z2jx8d7Fh4f74k9N2QoPrW4IX5BqN+KF7t6ZHfOAeVLXD1PV7e2FG+MO47Xu3pEl7p6Rle5NqyNW/mY28oBtvIA23wk6a61K+IY/f60o3ixbYP4qcX3I3wvod+KGdUjkT49T+nT05g+PZLvJfQKJVbPKLF6FhLr/Sg9ffZhhM+r9FvxIZUeiSdTep4eR+lpfAalR/LBk16hp016Fh8x6VF8ruRDcNUP2VA/1Lz0wzBwvp/Pub+fK/39LPv7OfeXBw4U0d/P9NTpBxg4J735H5etje8f2tYkbsVH+D+Qqw+0XESD0TdEITGu4mJiDo5JFCHjOkwmc6xMoAQxTlmSL2o6onzZeVHT1M9535w+xnfFSiSSSZVYVVLK5FqsUnKZEDMsXLeNGTLOSTMRiLJOXaQdpHLnC1LPEIXTuAqniTmcJlE4jetwmszhNIFSzzilXuGQeoYo9Zyr1Cvq57xvTj3ju2IlUs+kSqwqqWdyLVYp9UyIqYdvRB3HDBnnpJkIRKmn3ogqUuVJTRY4tN98UpObiDDvelKT1UrIdz6pyTKn6q4nNUnFtNXP9lRUmcKhzefaZ6Z0juq3Y65SOzbYGfNamsdGu2OeUz7KlPjpoadjlaXjWvpOqgIXRPWhp22DbrjhxbR+y57tcRRfTOuReDGt5+nFtJ7GF9N6RC+m9YxeTOtZeDGtJ/HFtE9DNe+/tC1bkDuKC3LnuCB3agtyR7wgd8UX5M7sdRBHdlpnyE/p+q34TFWP7EsgHMWX3p3jybtTe9Xdkb/G7szj7qzE3Unpgf/hRTuHs/Qt2Z6qOoldanIv7VQVUcgu57KX4VQVGufON6Lzjej81/X91yYe0iwM3Syn2MxPwoy1YRdt7ntb6Sie8gK1MnJEeQmKF5izkpeArJoM2YmiF9giDOkiXgXqURlERGFKcGHZ3M5y5qzCMaxyrFaVWK1krFY5VvzsNigiViuRF6tUFE+hD/6dV/2WebGj9D1XZVpFF04PujEnP9YPurGYnTk96MacPTo/6MZCdOv0oBtx8O10GsBcObg6DWCJvLx2GsAyu3o6DWBO/l44mLwhym3jZPfGleebmC3RJDJA4+yCJnDKmxDz3jDNCIVTcTsOc0PBIhI8SxinqcK5sAYT6xFSM4dpleilOcSEWvR4Nil8lrOF5xXjPLkUoc275WnG+K4giQnHJHJS49pOTWZPNYEmIeM0ExXO01Hhi5xKPDEZp9nJuZqiiirmqSKt8mHyjGV8V9jF3GVSJeyVWczkWtjTfGaCLu6n3GuY3gzRHGdcTHTp6eYyoPrpZq3y1Lfj6WbdREyD+ulmraYpsfJ0s5ZpetRPN0sVp0p9wUKrctqsXrDQDXgK3XnBQjdK06m+YKFVnlqDihNsFLggo8qTbVTllBubiGklNuAJJKppGolyqtYoU81GkafloLKjkRin6Pgya+0D03QdVZ60SVX2GJt8K9JyGo8tdo5FntKjvHss0vQe1Fktb9NUH9U04Qe5rX1cmvyj+u1gq4VAbMDzUlQrs1NslOaoKPMCIaq8TAhqWiwEdVFL7bRwiCovH0iVi4jQRi0lQoNVrUNpWRHVbw+oWmLEBjsHtLbciI12D2heekR5l5k91SKGi5Eo8JIkqmlh8nlYjZw8t62yB0BlugAUYg8cPgFoiTIgixowCxWwIT5ASg04Ks59bMRKYUD4cssJIepwermFueq6ermFJQpCfrmFBQ4Hv9zCmAJTOEWnYA5ReofkRHEKln6HRIoqbNV3SKROAay8QyJVDqV8h0RqFNQgUmSDxuGl9zBOMqXQqvcwhKTCWnkPQ6gUUvkehtA4nOI9DKFQKEGiQILCYcQ3G04IUQDTmw3MVejUmw0sUdDymw0scLj4zQbGFKjCKUoFc4jECwQnWqGA1V4gqMgqfDteIKi0oGBWXyCo6BzaygsEFZUCTTLFm1QOe3js/oQZhTo/dp8EFV752H3SKKTisfukcBjTY/eJU+hMoKAZ53DZz19AuJxRuFygcLmgwuVqDpdrFC4XOFyucLhcieFyTuEygcLlv8NC4Rq+pR+CVQiFqmAKVMEqTEXLQSoKhahgDlDhHJ7CY3AKpdAMmAJTfvohhuVsCMn+9ob+GcYDmT3kDCxeHAIBLwkBtgtBwPzKDkA/ewVYnkgFZFd2nG1+DOHQema/gwAonm+54L9+0G/ZywWOxG8e9Dx9O1JP4y8d9Ej+yEGv0O8b9Cz+tEGP4q8abJBfv+q34ulej+ySpyNx2tfzdK7X03iC1yM6YesZnaX1LJya9SSefp+N/IoSkm3i7h+8Kqgf5ec2Vv41o8DKaXZg8UlqF8Kj1IDxq0aB+zPWzuBRaofwLLVBu8SzPRPdoM11ncMXtmXnnI7iY0vO8QTUqT2g5MgfOHLmTxkZa+OxtiKybS2KrY5iK6KVvhAVJBVI/0pUYP5ugzF/wN5rAi+XeFat4lauFHU1pOeyLFa5LPTFjl4RBcOXNXoWCmZcvHn7yP04eDMw82ZgcchAwCEDbEMGzMcFoCc4wOLNgGysnPU3IXwrvvgwTg4LPL34MEaHBSRffBgHhwXmOWYovj4zHhz25Ni2bLHgyBYKjuIiwTkuEJza4sCRLwyc+aLAWVkQOLHFgKFSC8dA8JWg8WCw/hdN7qXZKyLdy0b2Mngr4Nz5RnS+EZ03X9262XiE18vHo3SRfDzKV8bHgwW+sL2aAwKKb6Q5xzfSnNobaY4oL0Hxd9WclbwEZC+mGfJr1TaIaHw+2P6jOGM0PkDip3DGZHxA4w/gjIXxgUI/ezMOxgcs/NjNhmwu0J74Vlyj9ygttifFL/d90zIAmPklsOg8IKD1ADbvAeYWA9DzDWDxS0BmPM76p8yPbSs+mztJfgk8Pag7Qb8ExI8uu0I/pzFBvwQUfyxjMvjlS98qRw2oxB9Q6Ahw6AjQ0hFAdrjALPTAhsgDKT1wFNcOk+SXk8Ev9/f3bdPzzJktSJHFPHMBrQQorkehtVmMIzcSZ5B8BumG42SEq9HJKK1GJ6O8cJwMrgm7bUUE2lpvw8IRsFeVM57SQYKCc2iTOjAvLmNkn5ORWjdORrhunIzSunGS7BN4WjdORmndOBH2CQqtGyejvG6cjHjdOLH7GeAn6WZNEtgW9e2apAqDTDdskpCsMt+ySQqZZrppwwLYZ35BkbgyUvmCIklkqdUXFElmc80vKBInmy0cvNYQGa5xcl3jynpNzP5rEpmwcXZiE9iOTYiebJiM2W/GhQrle3SEseqNsVWZwI7tgjIyU7N3uyQM3ERyceNs5SYkPy8Km3rh4OyGyN6Ns8cXoRWfl9zehJ2RUr5vGpu/CZUZwPQ0DZjCc4EJPCGkW7oURzE1FGklEE0SxtVMYWKeLkyiOcO4njhM5tnDBJ5CTIjzCN1xLQarbrkqjSeU6k1X1UBMK+q2q9LS5CJvvCqRphh161VoMNEgpbkGJTXdoJ5nHFRp0kFJzzvYgqce1Gj2QYkmIJBgDkJK0xBKNBOhpCYj1PN8hCpNSSjxrIQaT0yoxbkJFZqewr34YBTiLn1W0IwQs8+ixrNV0JQNY4M8ZwVVTFuo08yFEk9eqKX5C0SewkCCWQwpTWQo8VwGWqs/Ps1oqH0rmmpeQ5mnNtQqsxs2SRMcijzHocbTnHosJIdbTHagrjSlKQ8lNeuhnic+VGnuQ0lPf9iCZ0DUeBJELcyDXcX2P7u8/a2Z4myIBkdDFB5lAg6fArQ8iQLI7vsDs5vbwOC37AeCPxW9Refd1vmoXNU+x+E/MrQZ2APfKgMKSHzD0jkNIND4DUvnYsBAoW9YOg8DBCx8zfn50Mntb90M5pp+K+Ioq0XaXiTtwtA/KLrdzeXF8COsjprwOQ0mwIDKiyuIOAEGTglQqBsuYsyLAYW8GFjIiy27gunGSfcx82a5nNlMfjXY64FttXHL0sCR+P2oKzJBoPGXoq6E5YFCvwl1hQYHKP760xXms/eV8mB7afmKUmCbAdd5D9elpplXnhjfquX3RmDL5hVHOFv0dFaGrj/GWUiwLcrZtOWcTVsa0maLYtpsWUybnt2UtYhvxft0N2HlASjfuruhdQbScJ/dcLyjdxOWE8DoC8tuyqx+bFsx6Dd5DneeBuMmzNiO5G933cT52Vn8Sc+bMBsbWsetfNQ5VW7yWzVDFCpv1WiVRnDXWzW6SR7XHW/V6BY02rW3arTMOZDfcJHx4szY9YaLbvKtEeHU2f2Gi27ECVV5w0WrlGb5vQct7AxMzsNiJdv1wx1a1oBwTiwo7BQEXLJsURtsqS3z8XYrG6QhaFXxzMihvfRSpNA2O6whaEUPvD5WFfgbYdTOoF350tzHjKAVBpaQtyqTWFo6bWfHKEet/MW8uSqPSm/3yUK0I1bjd6iyKuyImyQ74gbRbFgls2GZzIbl8GWZLMYnSnpVB2tHpHaE6Vsx2h2gHdHZFZpdcakH5dsRgf9/d3Jo6pByI//60YiHFbvSQsqKXS70ny3i2U/UytwptfB0qWjhD+5FHC9mRK18oNS6mXg+n9bU+LCraHE/vegv5Bwl6dE60AVpdLEZsJe2FZ+s6ZEtKQDZwQEM18AWZQ1jepN33eRd0xLFOeY5UFyMOI6vpi/issMZPTO0YZ7a/VYszB7F0LtATy1tkM/0/VaciXtkAQAU9+9CnP8XZTVkh97mALeVaLYymm0OW1rWuCIC2sYX9hdh1WLoPoTNT7SeG/s9tPcprlQvJq0h6r1xyjHnnMP6jqNhsW9O6Xy/kbkYDnW3MUk5zdPNRuY8PuJmYxSuc5w5/43LIkg3LYdKKBwS3RDVhHEqDOeqOkylEgl3OmNnuVgq9zlJrA8R1071JifJtVHiUsp3OCO/z8OQKqsIv+c/hxqz72XyVoYoaMYp351zjfGXPg01hl/6RC25xtKXPiUuBlB96VOSco2lL31izqOXv/SJhOscZ64x47LG0rdHDTVWONSMIaox41RjzlWNmUo1hl85RZ3lGtNfOcVifYi4xmpfOcVybZS4xtJXThG/z8OQaqwIv+c/xxqLX68CbaPAAYwqVwCpqfbkd7qUCsxXn9RfpWqsXH3Sqhr2+tUn3UBUaeXqk1RTLtSuPin5ujaCqYajqitZf11MqeegYpVGgWs7qlzhpMo6j2242vPVOBWoVPm7rsbJJt9KhOQFu6/GyUa7cyG5Q+VqnFLva8Oc/SLIv9d26N4xnNj1Fxm2l2qMlKATtq+0iji+HBA1fEEgKvaSQMT+OkDk/kpA5OW1gEjtG6oC/jQqr3MasRNnwuIV0CJuvk37KOx3nNpM0mdPdEwnKUDdAMFPCvVb8XpPj6JN9Ehc3+l5uq7T03g9p0d0HadndP2mZ+G6TU/i9ZpHmBS8T1Fvcp/ojsNjNnrnsk/ihsJj8HFHoqt8v+Cx2JJv5WPmFx+NywNs85Hktx5NEcfYxvfRHoN9GDJreNGjpzQcT6FrT7lrT5WuPcmuPeWuPVW79iS69pS79pS79pS7tk5dW4dMW+dMW+dMW1cybS0zba0zbZ0zbS0ybS0ybT3Ce+prHA5A4p76moYDaLynvhbDAQrdU1/jcACK99TXYjj4wscwJuHCR2zJo5MvfDAX4yQvfLCURyxf+CDOYycufEQBRjFdHmCuxlNdHmCJRrZ2eYBlHuN0eYA5jXa6FjAMuXh2cRh1fnYxteexl08uCklkQOW5RaXmPFCPLQqJs0E/tpg0yAn1MKGQVGZUHiUUKuXHjgcJRQvOEvUYoZAoV9RDhF26/Os//w8s8zdF"'),DEe=JSON.parse('"eJyFnV9TG0myxb8K0U/3RjC7NgZj5o0ZZnYGz5pZGyH3bsyDEA3oImhWfxCajf3ut1Xqyjx5Mkt+cbh/p9RdlZV1qrrVJf5T/dg+PjZPi+r76urvy/nortk7PPpwfLh39P7DyUm1X/3cPi0+jR6brsDl5LGZf/dDO735dTGaTsYbdTmdorq3UfdUHj1Opmss0MFhM7m731xwU7Y73pY+fbqbdqW+e3vUkfnPk9fm5vfJYnxffb+YLZv96sf70Ww0XjSzL83msz+9Lpqnm+bmc/s4euqr+cMP7Wv1/b++O3jzZv+7g7cf9k9O3u+fHLz9Y78adGVn08lT83s7nywm7dPmSl0xFS7vJ+OHp2Y+r74/6vhVM5unYtWbNwd/efPmTXeNT+1iMt605Mf2eT3bNGLvf8b/u/f25MPR/ubf4/Tvyebfkzfp33fp3+O905v2utn7sp4vmsf53q9P43b23M5Gi+bmL3t7p9Pp3ufN2eZ7n5t5M3vp6DaYk/neaG8xG900j6PZw157u/fb5KldrJ+b735puk+d/m1v9HTz13a2N+k+PF9ezyc3k9Fs0sz/0lX3p+4yN5Onuy/j+yZ1QKrFl0X3kdHsJqtdwR9Hz7/0ffL+/cl+9TUfHb4/2K9O5+NNpGed+OHdfnXWyHEX4+P96svi5pdhV/Yg/feq++/bg7fb/vp7s5hNxl1E//Wfavi1+v5gE9lPXU3mz6MukP/d3+J3XcwSbl7H09Gj8KOjoy3/97LtQnU9VeVNf6Kn5eP1pqfunrx2006no5nwD+/ebflzMxtvMj4Lx8cftsLosZPmXXi0ZvkzqQapy732PJo1T9PmtiTZj0n1RvPNGecPqhz3yvN0ORcqMRt3A3XkL3G/fr5vnnzxrimTVltykBs5n47m9742fzaz1tP2qfFwsQpKLu5nTVD2tl3OAjp5CcrOJ68BbF6aoG+bOKZPE6iwhGjcTtsnj+fN48RK0gPTjQ842vx7OZp6fDdrupEcNPPfy2aevEZT8KDve637+/fHW3bq0Q8e/ahpe9Cf7MyX+smjn/0H/+aHwC9+UP7qG3buT/9R0du3W/Sbtjuf6+++Ep88uvDn+t2X+oevxGewjvdb9MWf69Kfa+DPdeVrP/SlvvrT1x790yffdTeZPTQLYxsyRq87zY5T/hx5yrF4yngyGU9m4+Wj77XlxrXn3dQTDJHkb6Yy6lMeXQs6PDzsx1jgv75UcOVb/8E73433PkgTj/7Pn+vBl9IhLGn/6K8YmE5ge8/BqPdDaObR3Ndr4Sux9CF88Um48pV49R9c+0r8qejwg+aXTYSDg9zrMJna8ruycTGZ3hSn+pt2FcTZzM46EyzSQk2T421u/+1mYYg+K59ZR3PH7bSdTQI+bwpnGS9n3TQ+XvsuS8NmPklL18D+t6uWeFjdLSed8tgu4pXDRk4n/oZMoc+JczsJWLB+6lZy4XLgZnR3F01pW45LMVpwbPqumTU3/qPdWmh0Nxs9g6nlj153dxFN0EoN7/VoviPCu9XC+ks6wOrdXUGOzXQ6eZ5P5oHUtXVx3y7NWtFN+ya5tedmo5fABkfj5SJauiQvv502r16jkZXx42g8i5Y717MmuvBNuxiNzYhTadL1JAZAlBmOQ61sc9OFNFqjLp/uRrPl43S0DC7T3nXLzIfgdCNsB/TLo8nZk2xwp7rqOXjf53w7u7ntlnlmXagLFDvH6vrDcrnAhV7gncwJs5vHzueWU7yCnGmkTDzjZjPk5/Ng+poW1uZtoZ5tkPTd6OxuiLush16TlZzrUJ2Ybf7p5G+zRiemsEv1dLbvdG3kaiCTxc3kZXITdFJta6bL5WBoaLXth3SdF3xIJ0gagzJVpzsvGiTQVH9KvZ4ZKIp9GKTmNBr0M9RD0hP0Ab0HcBfRO4bOIeAWxN5iUkOPD4+z2D/0CC5FnqOrQpsH2so4Lp+iCujwKOWotVRd50dn0xup0tmsrUI4vVFqhphmAidH1MWrvfrhSR+waftn83QXXP6zvYTew0WN1OTYOUgCUYcXTyOylrUVga6mturdj4+c9tF9OwtadUFX1zAURsEXcok32WwLYRvQBTRidmozjzfmy7TGmQX1pRSUKJY42Wo2wcfldDF5nq6DelEDNcltd+RE6lZbi8loejO5vfV9tS5bwyd7HU3YXcny08402zHrlKVxoaOfSjZIHQqeEo/NX+lE+PCtWzDgEzi5AZq1D80T3gaJOc6au8ncLnx1iNLKS6djPy7kXmTZjWpzN6LBphWkDMyCobU8lmRcFlLqn2Tahyd55Zqec9mnYNLKnxb3vq4/Fg1wGvnWu7xsWxRMpinOjqVZ8LS0fNiRlYUA/1kaGqVKXZR6pDT1lDx3XrpyeRxf7FyW8IyZ1wXNdBE87lkYk1ZPXLU7HDFY6b3PJhe0xNZIQxWuM3UsUOj1PtWucI6P0Me7BJ51iQxVk2nE3cJ8OMj5OgonpI/hIkPuMGzH6T2MfKkTmWJ5ofFrITV/LY3x32j+y3HoonY/msKztzzIN7cm9Jxb+iJyefFlu2zSVPtGB9I6SILA87Pc31gzxQb13Rr16iic67+E613J4PgWRzKss4noG4+2MOX/WKjEkjL/UOz8ZjKOjPasMKHNdrbmk+0frW5huft5d17vXFqfFs55WjTp+HbgovDs8M9g4tSlSGG6LznFQ9iUN9mrzEpAz7ZzKNgq6PPdnVeatneb/n5qg0dVrTdTSR8v5QzqTlUYyXfhTYM8X4GZXGNeSN+ncB6H7w/dFKGeXxrjPy0330X+sV99bGZPv48ms803yP+qTjdfVVf7370/+mO/P9q6h0HbelrUmzrCv22O3sjR1lUMwoahcNEdHelRrgIgSA7DpasM3Y5/g4zzGKUPmWHbp0MGbQcOon9sjqT1l/YoxwyRab0KA3PWgW/9oND6Qdj6gW/9oNj6QdD6vPAzLNkJkqvu6ETaMOyOuqk4H9bd4bEe5SYBgqorhVcCOnyY8bI7eieFlvlsgEyAgMNVgOYAAaIAgSIBAiYBAtYHSMmLacPKHK3tkcRHEcZnS/tCOF4F0aAVTiNXOQ/frMAYFkQDWXg4mrMKQ1oQZbbwKL1F9DkuEiW68DjbReaUF4FGvXAa+pnD+M/oMkDkBMojO8jqwF+OjUH4rvAFFiFSIXwFsxC5FD5nGyJY78gYDCQjdJHMwEoEkZ8I96aSpchZsgb2Iog8RnhkNCJ6txGJLEd47Dsis/mIwA4kgrWhjF98q1cerQNE1iTc+1NvE+hPgsifhJM/KWd/ygr4kyDyJ+GhP2UV/EkQDTDh0QAT0Q8wkWiACY8HmMg8wEQgfxJO/pQ5+FNGlwEif1Ie+VNWB/5y7E/Cd4Uv8CeRCuEr+JPIpfA5fxLB+lPG4E8ZoT9lBv4kiPxJuPenLEX+lDXwJ0HkT8IjfxLR+5NI5E/CY38Smf1JBPYnEaw/ZfziW73yaB0g8ifh3p8wNGhSlpNTWZHsikT2LCODcVlO7mXF0MJMEfAxy2k0WjEakraEH5dWp8FpxXiE2jI8TK1KVmdF8jsjgukZflniZH8kRh5oigwK9WA3tOI34x/4otV3xb/gkLbMzvg7r7SqNUyjgWsajtZpBPBPy8lEreid1OiRnZoC4KmWk7FaMXJXW8JbrNXJZ60Ym60tw45rVbZdq1rvNdpLIU6rAl+XOPmxFb0pK0FLRkqGjBLZsZHYjEEEK0ZKRoxSaMNQAEwYKVkASpEBoO6HP6o0+FGKhz6W4IGPGtkuSmS6IIHlAr2MKdmtkSKzhQKD8OpstCh9I8qByaJajnLBYLHEjig7c0XNWisoYKxA0VYBg6kiJUtFyRsqqJGdggxmipSsFKXISFH3NooqmShKsYViCTZQ1Ng+UbPmCcpLGJNVSNcxJdNEyVtm33r0S0FklsLJKZWzTWYFPFIQGaTw0B2zCtYoiEas8Gi4iujHqkg0UIXHo1RkHqIikAsKJwvMHPwvo8sAkfMpj2wvqwN/OTY84bvCF1idSIXwFUxO5FL4nL2JYL0tYzC2jNDVMgNLE0R+JtybWZYiJ8sa2Jgg8jDhkYGJ6N1LJLIu4bFvicymJQI7lgjWrjJ+8a1eebQOEFmUcO9Pua5oUMrIoVQgiwKBPUokMCll5FIqhDYlMviUMhppKkRDTVU/1lSjwaZCPNpU5+GmCtmVCuRXIoBhCbuMGFkWCJFniTwIrsmupcLOWAa+pVoplgXnUr0YS+ddqljzEg7uJQztSyD4lzIyMBW8g4kWWZiI4GHKyMRUiFxMVW9jqpGPqRAbmersZKqwlalivUz4S9D+VcDWESM/U8EbWq4YGpoyMjQVyNBAYEMTCQxNGRmaCqGhiQyGpowGoQrRIFTVD0LVaBCqEA9C1XkQqkKGpgIZmghgaMIuI0aGBkJkaCIPgmuyoamwM5aBoalWimXB0FQvxtIZmirW0ISDoQlDQxMIhqaMDE0Fb2iiRYYmIhiaMjI0FSJDU9UbmmpkaCrEhqY6G5oqbGiqWEMT/hK0fxWwjaG9YyYxYQFbvdVm/W+UqANlQmaWMVmZYDayXgAby4RMLOPQwnoRDCwTGnIZRwMua364ZYUGW8bxUMsqD7TMybIyJsPqMdhVTy49IasSHBlVLw7cldikMt4RscCgshJHrGBOWS1EzBlT5taWegqm1BO0pB6BIWVCdpSxN6Neiayol8CIMiEbyjgyoax5C8oKGVDGsf1klc0nc7aezK3x9PTFtXXlyNoTWkFl7NdP/SBAvxFEhiOcHEc5W05WwHMEkekID10nq2A7gmgUCY+GkYh+HIlEA0l4PJJE5qEkArmPcLKfzMF/MroMEDmQ8siCsjrwl2MTEr4rfIENiVQIX8GIRC6Fz1mRCNaLMgYzygjdKDOwI0HkR8K9IWUpcqSsgSUJIk8SHpmSiN6VRCJbEh77kshsTCKwM4lgrSnjF9/qlUfrAJE9CXf+9ENHT7ujgyM5yp8FlL0EkAkpcLgC0BxIQBIkYBIfYH1ogOSBrWiQMlCOcgsAmeoCh+oCzdUFRF0OijQEmDQEWN+QLTkzcT/zcT/zcT8rxP0sjPuZj/tZEPezIO5nLu5nPu5nvRkcSXs2PnAoR7XRamuDZzTue9qbLkZGEIVHOMVIeBQoEX20RKKQCee4icDBE8FGUDCFMfMrHwYIaEa1L8WhFR7EN21itPHNiOObOcc38zC+WQzimyWOb+Yuvllw8c0CxTdjjm/Pr3wYML49qn0pF9/MXXx/7kPbT4Y/Y1iR5ZAiI4NSwTiUYrUoZeBECsGKFIoXKcphAzaSuT4d5aYAyi0BZBoCHNoBNDcDkLQCmDQCWN8GILkJira/cdk16uAkI2pjE3RQkxd/hhU6qIk7CHbdWh50XBN1XBN13EQyNh3lugMy1QQOtQSaKwNI6gJMqqKsldVaOrJru4RMTYC75V6iuSaAaMoFReoILN8GAMr5oKj/EVOTEDMzfmd2tCck9wKA7G1AEs6Ns557Uz33fnpesNLz0EXPvYGeB955HtjmuXPMc2+W5/2gP5T2jGyKneOgBxRk3TkNeqA2687NoAdGWXcOgx5IboEiGfRCrN74NsmIRxS3qQnbZIY7YN/UJmhqEzS1tUe+zm2hgm1YwdbXhAcYKEEdZYAB8rHXASZoaQosfUOWhYYsw4YsfUP4fgyUoCHLINhLk1cfq+2TkHd6ZO8sEwpuKhN395OJ2lvJhMK7yKTQDWRiOfyAcvgV6VD+iIkOKCc6Im8/HynRkUKiA7au9NEkOjBypY99osORr3NbqGAbVrD1NeFEByWooyQ6IGuTH/usPpC4S1YDsrVWjrVWKrVWxLVWRWutTCOrLPu9kLU98rVe+9qZqQ7HBQk0REiNRgsV8QOHCtAYIjUeTlSIRxbJNMhIpfFmVUgPEiijSaUByWqQ+lTEjwIu4EcslaAhQyqPEZJ5SFu5LQo7wxKOeSryrYazE5AamwIV2t12tgpSyTWsuiyNMPYSUiNboSLfGsNsNqTGvkOF2IJIZjci2RqTFddFYWdgvHP9Vm0f7b/9IEdyYwfIrORV2DwveHecj4bmqLZH4nyK0MuEmsfZ268OfusbrIXW/mxrfzbcc9/X2e25dzxqKW5Ip3MPPaoDRPWN9qOTFMUBt2FTcY5ItA27l2xKQHBIoBCxGgXKlrkqXXNYEuqiQM0j9VuNjILpB1T4UQ5seUD1BXq7w8AKopAqj4KZ1St/7qFHdYCo6sLLlY4ClbW1L87BEe6u8Kna3vdvlwXpyK6FEsp3zYCCNVHibiGUqF39JESrmcToO6bEzNdLidilzKc8pE4DRG0RTg0SHrVKRN80kah9wrmRInBLRbDNFUxtxi8bGFGb3ZcNzKM2R182sERt9l82sMBt5i8bGHObzQg/LQrcfqtyFKwaxsIWCSJiC3BcrOqiY2UXIytTpKxI8cpfnJ4GiGIknKIjPIqLiD4iIlEshHMUROD2i2BbLti2+aJv7qEe2Uc2F9hIQMFTnAtqGlD7FOfCNAgYPau5gGYAsc+hLvoZCo7s470LPy+poN8TXfSzkR59NSVro9HXRBdV9A3RBRrtISEKszNa5lHAI6NliULvjZYF7gQ2WsbUHbhWZUQdU1irknrl4zn06Kv/YO1LcbdFy9deMtu5oQMtp160InWlFaP+tCV8p1qdetaK3L1W5T62qu1oq1Fvux+eCDn1+64fnoiKXBV6ZVjgXwvnqQvlOSuKv7/Q67BpFRIDKaUFSpQUKEUpgbpPCFQpHVDiZECNUwE1mwioUBrQZviAUgqUN8P7Aldh5Ich/RqeoQ7LcrcX9oj3at4GCD0uiLpbOPW18KijRfS9LBJ1sXDuXxG4c0WwPSuYuhX3+DKiDi3s8SX1ysdz6NFX/8Hal+Lui7bE9pJ9xoVdyAr1JMvUoSxH/cplfPdyCepllrmzWec+Z912PauUASRflhXKBydHaUGFroo9NiwqX4tnq4uf4cxh2SeQ7JmD1FFGSaMCpYsKUaKo6lNENUoOFTgtVOGEUMWmgnJKArNz1jHq+NLOWZavgugOA/Y1+GwdlONODTeY9lp+ugO9KYg6Uzj1pfCoK0X0PSkSdaRw7kcRuBtFsL0omDoRn+Yxoi4sPM0j9crHc+jRV//B2pfizose8PUS3qQfEqK+czfpzKO+i27SWaK+8zfpLHDf8U06Y+o73LrAiPqusHWB1Csfz6FHX/0Ha1+K+y56038r/d5324cjOcqfBZQ7C5DpJ+BwBaC5dwBJxwCTPgHWdweQ3BOK9JWpdGRzLiGbbgkFmZa4S7JEbX4lRKmVGGVVYiahErG5tEH0nuQGNaaTGtulCdnX4rbIb2pJPOx488U0YLvDJSHavZIYbVzZsM2XzUfSLfINMyBbQeVYQaVSE0W8zUYVraMy2ZukSLYlCeKXEv9R4Y6GdGR3NCQU7GhI3O1oSNTuaEgo3NGQFNrRkBjtaEjM7Gj4XG1fDjnUIzsQEgqyPnGX9YnarE8ofNUrKTQeErPvrCVkk/9z76Hv9CinNSLjnCoMzHkGvr2DQnsHYXsHvr3cS6AE7R3Q+P8MvaRkY/Xb7+E+9y6vR7U9krxThPm1pfmRGfS+IAqJ8CguIvrgiEQREh6HSWSOlQiUIMIpS/AR5jtClC+FR5ikDvy5OX2E74pVkEgiFWJVSCmRS7FyySWCzTB8SksZMvSoDhBlXfRItpfy91yQeoIonMKjcIrowykShVN4HE6ROZwiUOoJp9TLHFJPEKWe8ij1sjrw5+bUE74rVkHqiVSIVSH1RC7FyqWeCDb1cC8VZcjQozpAlHrRXqosudcicyXi1yJjNQxw8bXIuAAHe+drkXEhF/j4tchY5YR17+C8CwVO3l3v4IRlBqVrunS26rdjHqW2LbAz5qU0t4V2x9ynvJUp8d3LSWGWDktCXRR4QBRfTtoW6Lo73dBtV7fpyK7CE8q3Q4CChXnibmGeqF2YJ0TL78T0FkFZ3tauxK7IL/vRrO25sDG4dOMWeBgQGaGAePWtiq6+leUBCEj26wlK2/UO5CjXGpBs11Nkt+spx+16SmW7niLdrqdMt+spy9v1lMh2PUHjdrrd1nWoZHtjqmXsJxrfSrkvRRS30tyXAoX7UigsSadIk05Z0Pj79fN9Y6u02cm3fX0sHdmXzRLS1ziEbe5vTyRL5f4WULD7MnG3+zJRu/syIcpLUGhfZmI5LwHZTZgbJPe32vqZadbMt1723CGyU4II8+Zx4jNnacos/SXoVyGUuxf8EpXXcBTxjgNV9N0cZUF/yu8+CFmZo7U98m3wLyPmaRVd2L3Wxpz8OH6tjUXvzO61Nubs0f61NhasW7vX2oiDb7vbAOaRg0e3ASyRl5duA1hmV3e3AczJ3zMHMxREHiic7F545IYieuMXidxfOE8BIrAVimAnA8E0I2ROg1uxmRsyDk7As4RwmiqU74hQMGmo5GcO0Wj6EM5ziAil6PFskjlMKYLIMoSzGWUBZhhBNM0Ij+YaEf2EIxLNOsLjqUdknn9EoElIOM1EmfN0lPnMR4MnJuE0OymPpqisBvNUlpa+NM9YwqNpS8TyfMATmPB4FhOZpzIRSilEk1rGK4/WASq0Opro3LvMeTaI32WOVZ76drzLHBcJpsH4XeZYdVNi4V3mWKbpMX6XOVRxqowfWMRqOG0WH1jEBXgK3fnAIi7kptP4gUWs8tRqVJxRrMCTiFV5srVqOKHYIsHEawvw9GtVNwlb2U0mVqYJ2Yo8LRuVHY1EO0XbnaNFYWek3aRN6jcjHU3gVCCYxm0Jnsyt6qZ0K+/uCze9GxUneSuwc1rVubXdqgrTpBV48rdquASwRYKFgC3AywGrFhYFtpBbGliZFwhW5WWCUd1iwaizUjzdwsGqvHwgNVxEmDLRUsIUWJY+6ZYVVg0XF7bIt2Zit9CwamG5YQu5RYeVdyczL0CMuCoJ66KwM2J+YTLoVyOHR3Ikz6MVyRshiuxzaeX4MFqpPIFWpE+UleljZGX52bESeYS/RWaXCiFqi9+lQjxqVbhLhSRqX7BLhQRuqdulQpja7Hd3RJxaX9jdEYlRHMq7OyKdIlLa3RGpHJt4d0ekUZR4o4OnFKFwo4OXouiUNjp4lSITb3TwGkcl2ujgFYqI2QVAiGLhdwEQj6IQ7gIgidof7AIggVvudgEQpjZHb8/HCkWg+PZ8LEfx2PX2fFyColN+ez7WOValt+djlSJnXxtnRtEKXhtnIYpQ/No4axSV6LVxVjgS/rVx5tR6+bsMpxGj1qtArVchar2qvvWqUetV4Narwq1XxbZeObW+/5H4U0+o5RlTuzOOWp013+asUIsz5vZmzq3N3LY1U9vSq76VH/TIvtV7ha0DFLzVe0WtAmrf6r0yrQFGb/VeQSuA2Ld6N2jzo/rbVxvTkf5oqyC7UFdBfyMrHdmN4gkFe8ETd9vAE7U7wBMKf+wqKbQtPDH7s1YJ2U3fG5Te/337Vg7lORAwCQIw+0QIBHwOBFie/gDTxzkA9ZVTgPmdU0DyOEeZvTfaEvOG8wbRZ5qgwfpLsMgKDcbnCsdA8YdgobT84qki/V1TZVEU5BHBsfTe5rnAkeTuxD70TIgeJW5Ya0/bBhFoS61t4+5tg+7lm3iUop6XG3ZkQS/zi9Mb5u+MN3Rpmr300VkGT3oTd493E7XPdBMKXwxPCj3iTSzojKV5mDvsPXTbhiF6KKA8HgHZn91VjsmpVJJQkSahMqkusL66QOT3dgWlp8zSHn20rMiml3LMLqWSXIo4t1TR1FImmaVIEkvQSOaBIRohIDt3DZ0NAndz1xBNEBDNXUNjgcDM3DVEA1SUR8ARkK3/ad+kZ15v5Ege9CmSB62AzAM/5W6Dx5CtDwrbDR5D43zA9DGpMDE+LaYPRIeVewo6rPyjz2FvfB/kFOJ7gGx3KsfuVCrdqYjyEhTtaGU5LwFJrwoSv9NORLvTzl7aI2t3w4LdDUO7G3q7GxbtbhjY3TCwu2Fod2t75Gu9drWrjUvW3iVr75J1wSXr0CVr75J14JJ14JK1c8nau2Tdu+SBtEdcElDwa5g1uSRQ+7uXdeCSoNAvXNbokoDsb1nWFX5RVlfu27G6cl+J1c4lgbsvv+rKfeNVV/5rrrry323VFX+hVVfuW6waXBIJfl9VV2aRWFd+kVhXfpFYO6M8Vu7WiDUbJZ7FrhHryq8R6ypYI9aV+xqprnCNWFdujVhXfo1YV2aNWFd+jVg7s0TBrxHryq8R68AvUeI1Yl35NWJd+TVi7T2zJs/U4CztkU/nZSF3l2HuLn3usmeCEmT1Msjqpc1qfEzfN889pmdOXhg/pmfRu6J7TM+c/dE/pmfBOqV7TE8cPNNtNmMeuWe02Ywl8tHSZjOW2VHdZjPm5K2Zj3xPs8sKJ6sVHuWsiD5xRaLsFc6JKgJnqwhxyrIbZ07jUrHx5YxxrAtjgxKBbVqFwKtF9IatUuDaIpJ1C2f/FsGZeFbYyTMHOxdEni6cjT0LbXA9Z/EihD4vamD2orHji1CwfdGd94vCE4AIPAtkgaeCzIP5IEvLABWGYDg9iFgeajxRCI9nC5FLI9HNGyLYkUjf5PUxib7JCySaRYrf5AW6n0uib/ICiWeU8Ju8QLPzSvRNnpdgdkFKEwxK0RyDup9mUKWZBqV4ssESPN+gRlMOSjTrgDQKs4TnHpRo+kEpGhao+5GBKg0OlHgAoMZjALXiMOA5CSSyB6OYmQkUtCDE7K6o8RRltGCWQt1PVEYN5irUabpCiWcs1NykBSLPWyDB1IWUZi+UeAIDrY0v76Yx1MKZDAsEkxnKPJ+hVpjSsIib1VDkiQ01nttA4+kNpGCGA3UZ0/JwD6c61HeOaZ7wUIrnPCyxY9S7mQ81M+qvO3Jd5a/srjF4h4L0D3RcYzgABX+K45qaD9T+0Y3roLmg0J/XuDbNA2b+kMZ4M+ikWZujB3sUfWE5lmWmRw8BCs8hW1M8eghQfI78183NWQQ+hDA809aStz/4f3M9zb/5v33B06hWakxaZKNGlFuACF+XAg7Jh1RtGHF+0QaQvEQBTF4tUHZb8R+825DuMtNmPk/PxgU2pgj84UtB9m9WCqbf/tmw2yq/Pn+bHVi01p+Z/Fa5/V2i28g+VRFjVKR/tTQj+gt0t9TV2+njoQ/HNjgPGA5A9hcKHtwkDNx9cf/A8QRsv89/MHMsMPod9wcT6Acf6IdCoB94PlNqw/9QDP+DnbSU2S558F1iRygGvfDOf6xSV+x65z8u4jtoxzv/cQnqttI7/7HMnenfvw/jxV286/37uIjv+ML797Eap0Pp/ftYpiQpvH+/VTeO9yLz8FP2YEDZgxGZM4KQf3lQUdsfbb/t3Rxt3gg/kCMN5OZobY9sZyTkwttilfurZASXyujVf3AdILqycH95Mx9BHQyHihj+WjjPusSpXlb0lYNJEaoGFCoG9DU8wzqmVCWUfIXyxAu1yQiqktGr/+A6QFQD4f7y9LYo1IIUqAwpr8WzrcsK1ZBlX1FZjUAVhUHlhL0Gn11HjKqigq9E/g1YqENGUIWMXv0H1wGi60d/5qmX0Ez6y2cEl8/o1X9wHSC6vHB3+byuKSxrrWy1hKbN7SLL2//3N4r4gepG2mbxePtH7yPNXDA45Sz+mGyRijR5DhJpdsnvS8zjeszt80yr5QuGWr7diFVTnajE82hcuKxugLI42gFmSmgKdtGV9f97IbII7hF/j0KYi/MvLBB2xcM9n6FIH+1js/37SseG2Bd5BMtfV7I42LcmGi79rGJ3qgmm3WfC6UUi4Wa/mVB5w9bgzW9zbd/azGToSO2J5K7F+MwvKS/QAdsLv/Sr7m26vOBSG5AdcC9uUQ3cvZn3wstnwPaFvRezUAamd5jCWnvk69wWKtiGFWx9TdzaVpWgjq19dfDFLF0FSX5vg9/NC5Xemacja/gJ2VfLEwoW9om7aSFRu4RPiJbkidF9fGLmN3wTsevxlUuoVYWPElaVe5SwMgkFKG5TE7YpeBaxMgmlKGgqP7JYmYRa+YRaFRJqFSbUyifUqphQqyChVj6hVj6hVj6hXk3wX33wX33wXwvBfw2D/xoH/9UH/zUI/msQ/LVLobVv2JqnKMJcPPgKxiv4oT/++/9jjgIE"'),CEe=JSON.parse('"eJyNnV1320aWtf+KF6/mXcvpsWTJsnPnTtLdsdNx7ESGMb36gpZgmSNKcEhRCjNr/vsLgqhz9tlnFz03XsaziwDqVNWuDxSg/5l919/cdLd3s29n7/+5Wc+vukcnZ2fHZ49On5+dHs8ez/7W3979PL/phgS/LW669Tc/3s2Xi4udslkuUXnkyvxmsdyiNsCmW1x93l3nn93lYnMzkH36l7dXyyHdN0enfzkd2Ppviz+6y18WdxefZ9/erTbd49l3n+er+cVdt/q12/3+hz/uutvL7vJdfzO/ne7wr3/t/5h9+69vjp69ePzN8dHZ46MnR08eP3/+9N+PZ+dD4tVycdv90q8Xd4v+dnexJ09A+O3z4uL6tluvZ9+eDvx9t1qPyWZPnhz/5cmTJ8NFfu7vFhe77HzXf9mudjl59B8X/+/R0Yvnp493/56N/77Y/fviyfjv0/Hfs0cvL/uP3aNft+u77maI0e1Fv/rSr+Z33eVfHj16uVw+erc72/rRu27dre4Hug/mYv1o/uhuNb/sbuar60f9p0c/LW77u+2X7pt/dMOvXv790fz28j/71aPF8OP15uN6cbmYrxbd+i/D7f4wXOZycXv168XnbiyF8S5+vRt+Ml9dFnVI+N38yz+mgnl2+vTx7EM5Ojk5ejx7ub7YhXo1iM8H8fvOjscgz369u/xHM/v26fH43/fDf8+e7cvrn93danExBPRf/zNrPsy+Pd4F9ufhRtZf5kMc//fxHj99+nSPuz8ulvMb4yfHU/LfN/0QqY9LU06fTMrt5ubjrqCubrN22S+X85Xx5+UqX7rVxa6yF+Hs7PlemN8M0nqITr6z8Q7GEs/al/mqu112n2pS/Jnd3ny9O+P62pRnZ6fTr5abtVGL2cXQRuf5Ep+3Xz53tzn5kJVF7zk5LplcL+frz/lu/uxWfab9bZfh3YNIefd51Ym0n/rNStDFvUi7XvwhYHffibLtdExvF7eiWl30y/4243V3s4iSlcByZwOJdr9v5suMr1bd0JBFNn/fdOvRaoryolToud/7s6OjPXuZ0V8dPTvbo++82h4f79H3+Yc/ZPS3/MO/Z/SPHKYfvT2enOzRq3xfrz37p8/26Kfc9P6Zf/hzvok3+e5/yane5lTvchn8mu/rt3yu83yu9/num5zqQz59m9F/eVSH3mFEH4fO7Lq7C7ZhbfTjoMV2yr+LnnJS8jFfXywWF4vVxeYmh2KzM+310POIJjL6W7gZ96mMPuYqcSH8N6fqcl4/5R9eZfQ5/3CR0X/nK17nVMtc/iJawnSE7X0RrT4X2iqjdb4vEftNztB9bkIPOdUfGW3zTfzpqaxoh/rVUa08LbVyVUlPPdzJEdTGu8XyssuX3nf1l/2DiHPonb0nuBvHaV45jkr+P+0Ghuiz9put6js+LfvVQvB1VznLxWY1dOMXHsDjoxNoNuvFOHhNrb6MWnSzutosBuWmv9Mjh508nvgrcmVw8Wmh8i360WEoqIYDl/OrK9Wl7TkOxWjAsSu7btV52z899rHQ/Go1/wKmVn76cZhEdCKXHt6P8/WBCB9WKyGyAoj6c6uhy+Xiy3rhDXWYLnhW7z73mzBUTL1+qNtecKv5vfDf+cXmTo1cRiv/tOz+yBo1rIJv5hcrNdr5uOrUhS/7u/lFaHAuLYaCxACYssJm6Dc7TOmGEbcYom5ur+arzc1yvhGX6a+GUea1ON0c8+HFchNqrPGXPuY5PptqQL+6/DQM8sKo0IcnsYf10UfkL4p/vvELPD16Yhe4GVxus8QrmC/PRXd3uWvw67XovJaVkXkfuZ29F0PooW0O0+GhzotC+zGVp3fLsfp51x8rjXdLskT9dLHofGSU7sDG0JeL+8WlKKQ23pkPlkXL8NuOP/JRnviRd4/UBK2jHudd1EYgq/mUfr3QThynMPidU2Pw31RKaEM/8BlAuojPFwaDgAlInGBSRs+emTiteIhLkeX4mJDqgeUyxMVnAuoGvHnU6mh0VB/lq7P5NKp2tuiqEM7sk15DQjaBkyH60DVe/eRsusqy/7O7vRKXfxcv4TM4lUmvHAcbiRC9eXEvYiPZeCNQ1JRXn/vkyNllfvvcr0Su3tDVPQyVUvuVeLmry0rYzukCHrHYs4XFjfVmHOGsxP3GKuhRrPFoq2aCN5vl3eLLcivuizLolTwWR+n4hrHW3WK+vFx8+pTLaptt2JpgvI5X2EOV5YeD1exAr1OXLioFfVuzQa4x7ilzORr6kfoVXHobBgy4/mbTn1V/3d3iJMjMcdVdLdZx2OtNtDLw+lG0C5uJbIZWHeYiHmwaQFrDrESm56pu7bJSpf6LTPvkRRm4jqtccQ3McvnDnRihfFc1wKXyLW9uFZPpqr1jrRd8WRs+HKiVlQD/WWsatZt6UyuRWtdT89x17cr1Lv7NwWEJ21IZF3TLO7HYcxdM2gvpoT/giPUhzs1G5IT6cAuVHGd6W6DQ+yw1jnDOTtHHhwq8GiqyuLVf0wymKMtYI33VU/a/NsOIBffiebmN8kBHeWJ9PvZjZe74Y627/Im6vxKGIWif50tYeCttfDcziQ3ci+KQyd/GUZPXtK+UHw2DLAi17vkqeilmaCpVVah6EPqrHO5aBdYzHKtgg0uoxx09NS13Qn0Tm5j+5LRMsIdu80L57PeVsebq4Gj351g+fruV0e67w9VaXsustXLOl1WP1rOkN5WFwz8PjCd/qPX2dG1fHZZZsfFYGAj42Q42hXgLvrh78ErL/mpX3re9GMX3dS/dZKk05eFUlZZ8dXDO0N2Jhw5/Vqrv7cFufAh56iHc8mtt/IfN7kHkvx/PXner21/mi9Xu8fG/Zi93j6lnj795+uTfj6ejvXsEtL/PiCZPR/j33dGpHe1dJSDMGApvhqMTO8+bcguAoHIEbkUV6L79BxScJyhTyALbLw4FtG84iN6Go992OTqzI4sZoJh7E86Ho1M7z3nJPaCQe+CQe6Al94Ao96BY7oFN7Tqw0U6QvB+Ojp5YETbD4Qs7andJ/ciy5Ahv3SjsB8AAbYajY7vwppwNUAgQcLgK0BIgQBQgUCxAwCxAwKYAObkPWXsIR9t4lOOzzfGZEmF7NUSN1ji1XOfcfIsCbdgQNWTjsjUXFZq0IWrXxlXjNjG3cJOomRvXbd1kbvAmUKs3Tk2/8LcZgQkYIidwruygqOAJhsgYjCt3MDFbhEnkE8a1WZjMjmEC24YJ0TsKRgMpDFykoDa3APYT4/VGo5ylaGAvhshjjCujMTG7jUlkOca175jM5mMCO5AJ0YYKvs8RechoK1Al1MKfJptAfzJE/mSc/Mk5+1NRwJ8MkT8Zl/5UVPAnQ+RPxpU/mZj9ySTyJ+Pan0xmfzKB/Mk4+VPhbzMCfzJE/uRc+VNRwZ8MkT8ZV/5kYvYnk8ifjGt/Mpn9yQT2JxOiPxWM/lQY+FNBbW4B7E/G641G+VPRwJ8MkT8ZV/5kYvYnk8ifjGt/Mpn9yQT2JxOiPxV8nyPykNFWoEqohT9haNCkIieniiLZFYnsWUEG44qc3CuK0sJCEvCxyMnMoqgcLabIthZ18rYoaoOLadjlokpWF0XyuyC+rXBwvsjJ/khUHhiSgBFGTm4YRWWJMUX2xaiTOUZRO2RMwzYZVfbKqEbDDBq6ZhDAOgNvKy2UTTSKX2neyk5DAvDUyMlYo6jcNabIFht18tkoarONadhxo8q2G9XovUG7rwTyocK3NX6o1IQpO0FLRkqGjBLZcZDYjEEEK0ZKRoyStGFIACaMlCwYJWXAqGf7RZXMFyVtvZiCjRc1sl2UyHRBeispGC5SstsgKbOFBGC1SMloUVI2i3o2WVTJYlHSBosp2F5RY3NFLVorKGisgMFWgbayhbGlonSwaSo7BRnMFClZKUrKSFHPNooqmShK2kIxBRsoamyfqEXzBOVehuxB0q2m9XIRljnlHv3SEJmlcXJK52yTRQGPNEQGaVy6Y1HBGg2RLxpXpmhidkSTyA6Nay80mY3QBHJB42SBhb/NCMzPEDmfc2V7RQXPM0SGZ1y5nYnZ6kwinzOuTc5kdjgT2N5MiN5WMBpbYeBqBbW5BbCfGa83GuVkRQMbM0QeZlwZmInZvUwi6zKufctkNi0T2LFMiHZV8H2OyENGW4EqoRb+VO4VDcoZOZQLZFEgsEeZBCbljFzKBWlTJoNPOSOjckE5lavZqlwjr3JBm5Xr7FaukF25QH5lwlvBwLGckWWBoDzLZDAtZ+RaLijbcjX7lmtkXC5o53KdrcsV9i5XonkZR/cyCPZlrBUthA3MhQPNSlmYieBhzsjEXFAu5mq2MdfIx1zQRuY6O5krbGWuRC8zfi+C8yDYVrFa5IWhlRtDQ3NGhuYCGRoIbGgmgaE5I0NzQRqayWBozsjQXFCG5mo2NNfI0FzQhuY6G5orZGgukKGZ8FYwMDRnZGggKEMzGQzNGRmaC8rQXM2G5hoZmgva0FxnQ3OFDc2VaGjG0dAMgqEZa0ULYUNz4UCzUoZmIhiaMzI0F5ShuZoNzTUyNBe0obnOhuYKG5or0dCM34vgPAi2VawWeWFoq+n7JO5AhZCZFUxWZpiNbBLAxgohEytYWtgkgoEVQvZVsDKvomXrKgoZV8HatorKplU4WVbBZFgTfpsImFUhZFWGlVFNIthUIWRSBSuLKlo2qKKQPRWszamobE2FszEVHm1pomhKEwJLmkibajjbUcHVJqGsaJLAiAohGypYmVDRsgUVhQyoYG0/RWXzKZytp/BoPBO9T2F4SGSbiY6tsJupEaDfGCLDMU6O45wtpyjgOYbIdIxL1ykq2I4h8h3jynhMzM5jElmPce09JrP5mEDuY5zsp/C3GYEBGSIHcq4sqKjgQYbIhIwrFzIx25BJ5EPGtRGZzE5kAluRCdGLCkYzKgzcqKA2twD2I+P1RqMcqWhgSYbIk4wrUzIxu5JJZEvGtS+ZzMZkAjuTCdGaCr7PEXnIaCtQJdTZn/460Je7K/uRBdFR8RJAMaTOMZpOLZCOPEjOPD7OSmiclIbt6HyslHZUcgAo3C5wuF2g5XYBUZGDYhkBZhkBNmVkT76f4r733+8x7oCih3+f4g4cMgK0ZASQ3S4wu11g0+0CKXF39N689PvJBvyojUexF/me2v1EJ9PFyBii8BinGBlXgTIxR8skCplxjpsJHDwTYgQNUxgLf5/D0GTUCkShNS7iO77DGONbEMe3cI5v4TK+RRTxLRLHt/AU3yKk+BaB4lswx3fi73MYmoxagTi+haf4/m0K7dHRqR2aFwErIUUWDQoEdCjAZlHA3IkAuhUBLF4EqIQN2G6keeZHJSuASk4AhYwAh3wALdkAZLkAZpkANuUBSMmCo/0HLodMPTUUE3Q5U10Z+iHSmepkpuCF24BzXjuR107kdbGrYn5kFdJRHIw7xzrq1Ibgjnx47czuxFnvw7/x0LtaZ9TXuhA6W8fe2zpL3a1L0N86LJMAZFajnU1fMA0VYmWDofEoDp1GVCoEojAN2Auvpua/N4NX2PoBlSYDSMykXlHTBxrnT69CwwfmhedsajJA4iTp1dTon1p+5rFbeIWNHpDoDF5Rowcau4BXodEDI+N/BY0eSLT7V9Doj4108SiOcF9hm0eUR7ivqM0jhTYPOA58X4U2D4wGvq+mlgZH+Z77yg328gb7fCfcyEAR92hNDFAcib/CBuZoEwpnkyvUplJ7NrL2bHLt4fkYKKJebUS92oR69Xq2XwnZT33HoziLH5GYwI88zd1HGqftI5Iz9lGhyfrISvgBlfA76kIeuhjr11jREeXwv6aKjhQqOuBYKq9DRQdGsX89VfQTy0EfLfN1qujAkz++xooOSC4tvQ4VHVhcUHqNFd3RJh7lu95U7noj73qT75prNSjirjfk96+hVjvZxqN819t8d6Grw3ZBAjURUlVroSS54VACakOk6uZEibhlkUyNjFRqb1GFyk8CtUJSqUGyKtomJcnNlBPkFkspqPGSyu2YZG7SUe5rFYkbOqmq9VCSr1VVdgJSdfOiRNzSSCarIJVcI6qbqnAwMNJWKMnXAsNmQ+r/JTDJgkhmNyI5GlMUt1XhYGCyc/002y/tH/uRDfMAhZG8C7v1gv24fnfUhKM2pGzjsvOI0qLyjorl7J+mDD+1RJZLQNjE9xTfuT8mRJmsvHNPKmQX30cn1OYfcu7V++gkqTjga9iUR46Ieg17kmKVgOCQQCFiVQUqpoFwRaGpCW3tVBxAUnMYYwIVzNygZHw4sPUGNSWY7A4Da4hC6lwFs6gQxoKajNr8Qw6a8RyuIqlAFW2b88jBMZ7C8vNseoZyZkd2d47sGYqjOIFzjnlwahM4Rz5Nc+ZTSWflGYoTm7ntUWlSLwWivBinDBlXuTIxZ80kyp9xzqQJnFMTYnYNU57xYQMjynN62MBc5Vk9bGCJ8pwfNrDAeeaHDYw5z6GFv6wKnP+ochSiKmMRk4iIxAQcl6im6EQ5xSjKFKkoUrzKg9OXAlGMjFN0jKu4mJgjYhLFwjhHwQTOvwkx54Zjnt9M2d178BvMKaCSSUBxhuc8PXN+g7kC5HMzZ747wVnZmODEJmaGfrNR4BvsnBCFfsmFsUuyoyYcfQgp26D59gZHaUb7Bo12uttktMwp1tpoWcxRT0bLnOOfjZaFWBLJaIlDmaSxauKqdMJYNaImow/5h21OxcWmhq+TFF7nhgKMnEoxilSUUVTlGVPkQo06lWwUuXijymUc1VjQUaPSTh+eOBHR43I/9OEJleR9pVSaCv9QOU9bSc+1ov79hb0OL61CxUBK1QIlqhQoqSqBeq4QqFJ1QIkrA2pcFVCLFQEVqgb0MvxJihNXgfrL8DnBexn5RtIP8gytTMvFXntHfK+W1wChxA1RcRunsjauCtrEXMomUREb5/I1gQvXhFiyhqlY8R3fkxgGLtDKO76kvs/xbDL6kH/Y5lRcfPKV2L0U17iwCFmhkmSZCpRlVa6cJhcvp6BSZpkLm3Uuc9Zj0bNKNYBkqAisUH1IsqoWlOh9tcSaqvKhera2+huuOSznCmTvzEHVcUaVxgWqLi6oiuJqriKuUeVwgauFK1whXIlVwTlVgvDm7AlFhAu+9uYsy+9FdBvBPojftiIdF6p+wXSvldUdKE1DVJjGqSyNq6I0MZekSVSQxrkcTeBiNCGWomEqRFzNO4lh4CKsrOaR+j7Hs8noQ/5hm1Nx4akFvknCSfqUtTRJZ05lpyfpLOayS5N05lx2eZLOQiy7NEknDmWXXl1IXJUd7uuneDYZfcg/bHMqLju503+UfpmK7YUfld8CKoUFKJQTcLgC0FI6gKxggFmZAJuKA0gpCUe7zUbP/ajkAFDJAaCQA+CQA6AlB4AsB8AsB8CmHAApOXBE+yR3KCbocqbsyTUinalOZio8mAac89qJvHYir308yvfcV26wlzfY5zvhp8agiHu058OAcvB5U+LbGb7RMB7FNxpGJN5oGHl6o2Gk8Y2GEck3GkaF3mgYGb3RMLLwRsO7Gb4+Nh7F57UjEk+vR54e3o40PqcekXw4PSr0RHpk8fn8iOJD+XdTrOEo3/V55a7P5V2f57vmWIMi7vqcHp6/g1g7GV/Eel6OmnDUxiOrPY6wluxpWfiCMjREITGu4mJiDo5JFCHjOkwmc6xMoGI2TmVd+LlAlSzKojexnkWuBMYPZzFVBxO4TpgQKwYukVLBNhm1AlFlUeuhk1QeMkGNMUThNK7CaWIOp0kUTuM6nCZzOE2gGmOcakzh5wJVsihrjIn1LHKNMX44i6nGmMA1xoRYY/D9IyrYJqNWIKox6v2jIqWthOUm9FZCrcoAV7cS6gQc7INbCXWiFHi9lVCrXM+Cel4VDgZG17yY5GuBSbUwqv+XwOQaGeVUL6NMtTPtupFVqakJbVXgWlvddbNPMEy09hPMJ3YUZzkjsmmlI7HxdeRpLjTSuMV1RLRldWT00vbIwvvaI4n7VX+bmpzn502MwW+pcQGXAbFmBIiHla74sNKZvbfjyF7bMbSbmbw4tiObITqyGaKjOEN0jjNEpzZDdOQzRGc+Q3RWZohObIZo6KJfwirAnuxnXGcnhcRfdDmXNuFCFGqXc6xdQGHCBSexSufIK50zkfnP2y+fu9uQjUXIpr2rBoiWPnasD2ftc977SnH2sjj7XJw8cQNFFLRN3ADlUrWJm+d+FbK1yrmnl8n2SLxMthPW3c2i1JxnRjchzSZfYiMWsUae1q9GGpeuRsRb6V2h9ayRifLchFWsHXkIYdrGo5IHQLjLbk9xv9bkaGm/FnPyY71fi8XszGm/FnP26Lxfi4Xo1mm/FnHw7TTEZq4cXA2xWSIvrw2xWWZXT0Ns5uTvhYPJGyIfME52b1yZhInZKUwiuzDOzmACW6EJsTMwTN5ROHULjkPfULA4AfcSxqmrcC76CxNzp+FS7jlMo+7DOPchJtSix71J4YscIu5XjLMZFaHPl+NuxvihaiQ6HJMq1ajS9Zhcq2XcCRmv1Cbujgpf5Whwx2SceifnqosqquinirTJqbnHMq66LRNz32USdWDGdS9mMndlJtSqEHVqBT/kiG8Foj7OuOjo0ibd0hvoTbpa5a7vwCZdnUR0g3qTrlZTl1jZpKtl6h71Jl2pYlepVxW0KrvN6qqCTsBd6MFVBZ0odad6VUGr3LUGFTvYKLAPRpU726hKr4xJhGPGBOybUU32GOXUmUSZOuQospEGlTtnEmMXnV4FladM3bV+FbSiqq67+ipoJYHoxvWroPr3qUuvvAoqz52696AuaqFOXX1Uk1vHdzBrN5M6/6h+vVqrgUBMcLBa1wYFMdHhup8GCFE9WLvTYCGoq1o808Ahqjx8IFUOIkIaNZSIr47WfpmGFVGVg4uYRAwxYgIeaES1MtyIidKgI8qHKzMPQIL4UCvLbVXgIUn99b8xwfk0GtkvzZ7jEARQ/L7NeRpsAE+L0ec4rABEK8rnYQABLKwdn+NQwVFx7v0HSs5n6ZslZZEd85re0WBOudbvaLCY85/e0WDOkcjvaLAQY5Le0SBO0SmYQ5RehZhOo1+FkCJF7MCrEDJFjp1+FUKKHMXKqxBSjfHUr0IokSIbNA4vvU4wnU69TiAkCmz1dQKh56Cq1wmExAGVrxMILQZTvU6QJQokKBxG3KA/nSdt0GdO0dMb9FnMcUsb9JlzxPIGfRZirNIGfeIUpYI5RGIf/HSi2j74ikxxO7gPvpImR7G2D74ic0yr++AreoxwbR+8linepHLYw+7x6YR593gSKMiV3eNJzYHNu8eTwMEUu8eTEgOYd4+zQEEzzuGyv+cA4XJG4XKBwuWCCperOVyuUbhc4HC5wuFyJYbLOYXLBAqXcQ7X9DV6CFYhFKqCKVAFqzAVLQepKBSigjlAhXN4Co/BKZRCM2EKzEQpLO+nkDx7YkclHIBKKACFMACHEAAt2QdkWQdm2QY2ZRlIya6j3fLWUz8qOQAUPxnlPH23YqT26SdH/DU9V/xLUM7KHBSQfZLR0Li3+OjIDm0pDph/FdcZfRXXBVyKA+xfxXUGX8V1CF/FdWhfxXXkX8U1Fqen76H6HR2/KIh+04kM23JPYJUMhy/NAoX1HExtn5p15J+adaaiYKs0p5a/3dLMfo44HsVp44hinXOe5pAjtTrnyGuWM/8QrrE+3msvwtrXQtjrOtOLOpM+PwuSqk7++Vlgour4Tm+vKbji4RndxKMc8rigARwrilOrEI4oj6B4VXEmCqMsR+xJE+y1yfbaZHttKvbaSHttsr02wl4bYa9Nstcm22sz2eu+u2jQXgGJr642ZK9A41dXG2GvoNBXVxu0V0Dxq6vNDJf2m1laz29maRG/Sd4KPK1rNrO0Rt/M8sJ8M8ur8c2Ml+CbWVp3b5KpNmCqnib+osu5pAX0Jhkq8LRU3rCfQuK4KN7M8kp4M8vL3w266f6DU80MF7qbWVrdbmZ5SbuZ4Tp2M0uL102yPeCyOPtcnHpBupnlVehmlpaem1lab27Q7xzlBd5mhqu6zSwt5TbJ7oCnRdtmllZqG2F3oNCabDPLC7HNjFdfd2RcWTXr8OVUR2jGI21n+ES3RZcEFJ/dtsklgaentC26JCB6HtsGlwQWnry26JKOxmesp3ZkvbCj2Ak7xz7YqXXBjrgHdsU7YGfW/zqy7teQu0mbXbLNLtlWXLKVLtlml2yFS7bCJdvkkm12yTa5ZJtcsg0u2WaXbLNLthWXbKVLttol2+ySrXDJVrhkO0tPBtsZjjnbWRpzjkiMOUeexpwjjWPOEdGYs53lMWcbrLfN1ttWrLeV1ttm622r1tsK622z9bbZettsva203nayXk+zydnbVLK3kdnb5Oyx9YIisrcR9WMTGwc+oJlMKT2gYU6Wqh/QsJjNNT2gYc42mx/QsBANNz2gIQ7Wm17PY65MWL2exxLZce31PJbZmNPreczJoguf55JmszZOjm1c1VkTc8U1iWqvca6oJnBtNUFXWTZ1f+4W2iU/jqPU4gRs9MbJ7Z0fiJDwfZey+ZtGPYBx7gZMqEWPO4TCFwJR12Bc9Q8m5k7CJOopjHN3YQL3GUXoc7649zB+qDREP2JSpb5WehSTa9WZ+xbjlWrLvUzhoqsp0ian5k7H+KGoiO7HpEpUKh2RybWopC7JhNjI+StwTxKl3kl+BS5Lqo+qfQUuq9RT6a/AZY37K/UVuKxQrwUSdFxIqe9CSXVfqOceDFXqxFDS/Rim4K4MNerNUKIODaS5rCXcraFEPRtKqlmgnlsGqtQ4UOIGgBq3AdSqzYC7u/AYP9iDeMCff6PPxF0fStT7BelwFEUfGNTcDaJMPSFK3BmidiDI3CWCtNCUOkaUVN+Ieu4eUaUeEiXuJFHjfhK0XmaZe0uUvlJ6os9Etd4GKj0npjjQSrj/RKneFLgXBUl0pKBu5G+4O0XpK2ETnSqq9bBVulZMcSBsqYNFLZjL4Asz/+bMeGTPDR3FjaaTUDrtK4HoHMbliabEeCJDdCLj8kRhD9hVjdMpoyjPC9G70pTOiZI8Y9k+dCUQncu4PJFt8bhSjE7lgjyX7X+4UozO5YI817Rl4CoTOk/B8izlQ2dXAtF5jKsTfURTODHkf/L8IzZzQPHhlHN8OOXUHk45kn/Z/GNovsDo75l/hOa6Jxe7jssGRLuj66Bdx9xPgs0C/ZcFXedU+hz2TqGfo6DrnKpyjmEMsFzO6SwGr1VKfab9iGb/J0guPy7LXyE5OskyabgKcGTEd8aEugUo3oYL/gj6tKD7cPQQjrwe7Y78z6SMR3HzyYjSJpMyOONMoBufEKLsVNyYVM5Y4fcZPWQE+Sxom/PAOTaes83v8h5FDNk2RNk2LrOdXvqcMlT4fUYPGUG28d1FygNnW767OElqy/OR0DAAsruTog6F3EpdcorifYU/VDiGB/m2kuEUqCDmaIlJz1FSIFKqCxeSjJIab055Bule0gdJITpAtzJ7HBmURFx8cpUCAxJGBjGHBjUdG0iRggPavcYPGmN8AG91PlOEUMsh4n3eRxFDaNJAjbkMSdowPmWw8PuMHjKCEBS0zXngrBvP2U5bh4+IQ8bzuDIJMut5G/KUKxPuBXsQDLJvbCsywwFwIUcg7QY+Ig4RyKPhJMgI5J3FU85MuBfsQTCIgLGtyAxHwIUUgU8p7zsyNJdlt17vlkKeGfw0K+9C744Wdi/jEQ1eP+XsfqIx2X4KepWuvyNdPLJlTUe23RNQ/obryHFlEyhu9nQcP+06IvqA68joA65xtiNmOtVZzlUOVPkpx6XgTiCKkHEKk3MRKxNzwFzKUTONQmec42cCBzEvBVxVlgKuDi4FmMqB1W+dTz/Kb51rgUJdeeu8ooqw1986ryTIRVB561yrXBy1t86lfFUVqIBIlcVUeYd6X1jXoRCuc+Svc7ivKzG+loG91tG8ziG8FnG7FsHasT4e5XvuKzfYyxvs852k/dSuiHv03dSO7MmKoW08yne9zXdXazAs0MkONpikilh9rcGkBLmIDzYYVjmohxsMyX1VOBgWWUnqn0zQCQ5mq1KLap9M0DLVrconE6S6rQoHA5PrYRlC7kdbt7hSMSGcxRcUTgpCWUl01Afb67PX9TWD68vQbn+Ul8z7tEjDXJ42LMbsUWXxuz+0+N1/ffG7zxP+PZeL4r2aUQtJXomnzXual8r7ylJ5f3CpvA8zrT2it0qv6gpdiWV5QUoE1xWr9n1t1b4/vGrfx0nUnpU/7nIlEJ3duDx5UeHceU2+r6zJ9wfX5HtsZ3tU+v/aum7USRzZsvt0V/T9/8vrQviTmb/EGPEQyfmd1uIlxTlX+nf2gRellZ5PanHdO6dYmz9FXC6otHJBqZU1d62KeW1M8WV+0VVis/vJ0/yTu3hSkcLrxhDe/VuPp3YUt7qMyCqgI7HrZeRpt8tI4y6XEdHelZF5j++svO3oJG5f2aGLWXlzZTyySbqjUkKIrGAAlpnLPtqrqVJ7AqvLjuKVunzxLl88Dr+A4zICUBhoAbYNDo58Y4Mzi6qzq3hUyhcQ1SETbH/HsdWf3UjsxMrChl+A4hvaziG3QO3NbEf8QXdX/H1tZ/ZNe0f2QrYhnxV5Wf8esuojoRUaAKA4xF7F5o5QGHVxMGx+aR8xc2qIeh8xi7lJpn3EzLlx5n3ELMRmmvYRE4cGa4gajnFqPc65/aZHeFPBFn6Zk3Jzxp3LjCr3x61b71xmMbdzuXOZNWrxeecyC9z2cajMiFygMlQmlf0AdxWfxEJnZ9C7ilnMHpF2FTPXbpF3FbNAvpF2FRNPDlKE33OYwEsMkaEYJ1dxztbiivIX/GL11PzSF6uZk7/oL1azmP0lfbGaOftL/mI1C9Ff0heriYO/GKL2a5zar3P2l/SsfCr2wi9zUvYX/EY2o8r9sb/ob2SzmP1FfiObNfKX/I1sFthfcOMAI/KXysYBUtlf8EPZJ7HQ2V/0h7JZzP6SPpTNXPtL/lA2C+Qv6UPZxJO/FOH3HCbwF0PkL8bJX5yzv7gi/SWs9KDLRIG9JqrsOFGVvhOTCPeJCdiDopqcKMrJj6JMrhRF9qb4jATKMArsA1FlNyA1eZZ+MFMqVFAvaz9LLpbWp7VwMCfJ1w6sT+skwuPq69M6BftdZX1ay8n70gMdLbAPHnqgI9MkT0wL4yeqyiV/PLAwrpMIr9QL41qt+GZlYVzL7KF6YVyq2U+D/Hst3OitUWCHjSr7LKnJbUkXnjstBo2vbe03DBixW4nY7DVi8RV509BQoxK/G2+YvgVv3L0z8mKakcaPwhf8WyYWVsIxXkHc/UG2/R+tLWT3l9hOQkx3f4LtLKSxv71GGAK0V+7BWvcvjdxjddujh5ToISfaQqL9Bzy2mGhCPNElzMnF9r2s4I/+/b//H63X5Vs="'),TEe=JSON.parse('"eJyFnVtzG0mOhf+Kgk+7Ee5ZSdbN/aa+ebzuMdvupmjORD9QUlnmmmJpSMoSZ2L++9YNwMEBkn5xuL6TdUkkgLxUFvXv0Y/1/X212o6+H1397XEzv6sOTl6+Onx1cHry6uXJ6MXol3q1fTe/r5oCfyzuq813H+r7+aoVHpdLFA5UmN8vljuUGjitFnef27tIqTfb+XJxc7m6WzbFDpvjzS+L5+r2t8X25vPo++36sXox+vHzfD2/2Vbr36v21J+ft9XqtrrVGzWP9sMP9fPo+398d3R28eK746OLF0eHh4cvLl5d/PliNGkKr5eLVfVbvVlsF/Vq9P13jQzCH58XN19W1WYz+v604VfVetMVGx0eHv+luVBzk3f1dnHT1uTH+mG3bitx8F83/31w9Ori9EX773n376v231eH3b8vu3/PDy5v6+vq4PfdZlvdbw7erG7q9UO9nm+r278cHFwulwcf2qs1dqs21fprQ3szLjYH84Pten5b3c/XXw7qTwe/Llb1dvdQfffXqjnr8vXBfHX7P/X6YNGcvHm83ixuF/P1otr8pXncn5vb3C5Wd7/ffK66Buie4vdtc8p8fStqU/DH+cNfhzY5Ozt+MfooRyetJS43N62p14148fLF6KdKjxsjn78Y/b69/et09P3xRfffq+a/Fyd9e/2t2q4XN41B//Hv0fRjU6S93LvmQTYP88aO/3nR45cvX/a4er5Zzu+Vnxxe9Pyfj3VjqeulKqeHw4VWj/fXbUPdraJ2Wy+X87XyC7nLQ7W+ab1chPPz4Tbz+0baNNaJT9Y9QdfiUXuYr6vVsvpUkvxp+njzTXvFzRdTzk6Gs5aPG6Vqs5smOOfxFp93D5+rVSzeVGVRW02OpZKb5XzzOT7Nv6p1HWm9qiLcPiUlt5/XVVL2U/24Tujia1J2s3hOYPW1Stq2ym26WsADa5Vv6mW9SixR3S+8pC2wbNNAoNU/H+fLiO/WVRPIVs2TkxNxmmrTpRpRXh0fDW0P3nd83LNLRWdn5z36IaIf44k/Wamj4fo/21OenvXol3ji64j+Gh3sjaEmtXXof+OJb+ND/GqhJyf+LZ74LqJxfPrfYqn30Tgf4om/x+f6I15rEtGVtZq05zSW+hjRLN7x79Gq101n9qXaurShnnndaD5O+TyfU07OXklOuVksbhbrm0fLohocj23S3jQ9T5J5u/zmHka9eB6vdB1L3ST5N5ZK7vwpnngX0edopEVE/xdP/BJLWQhr5k+slSSdJO09RPTPWEfLDRpCm/hcST57jOhr9LinWCrJpLvYHP8ydHFo/uUd4VhbHTpTX556uJMj8MbtYnlb7Opv66fEzq53tp5g243TzDmOJOw/tQNDzLNW56zv+LSs14uEb6rCVW4e1003fmMGPJLad2GzWXQD1yT996MWZ01z8sdFo9zX23zk0Mrdhb8hk+kl7X1aJCwZPzUDuXQ4cDu/u6uSnrvnOBSjAUfbdtW6gtg/tbHQ/G49f4CkJqdeN9OHKqmlmfd6vtlj4f1qYfylDeD1bs7Q22a5XDxsFptEauq6/Vw/urFi6Padc1vLredfk3iY3zxuE9zn8k/L6jlqhci6n9+s6+TG1+squ/FtvZ3fuIgzadG0JBrAEhrGoT1sdduYNBujPq7u5uvH++X8MblNfdcMM78kl5tjPaBd7p3P6uDi0kY9x+eDz9fr20/NMM+NC22A4vtYG394rjcY2w1eHh3qDe6bPPe4dHeQzDRPRqO3bchvNkn3tSyMzevCc9bJILqJzmZC3Hh90mpvQoNax+z9zzp/7zXWMaVNapfzbWdjo/AEOoq+XXxdgDvbKf7JbLichIY9duGkSXKSdRYUg9pVdzMvChKoaryk3c8FiuFyQ8wpGuwc/3TWEnSCzQHCTWzG0GQImIL4KSZV9PxMxWHNI7kV5RwbFXo/sFrmdnmXPYCFR8lHfUq1cX52NZtIla7m0yqYMyZK8xBXTeCUEW3wSnc/H+6yrP9Vre6STPKhEFGvs0qac+wNkn2ee1nqRtaFJr3hutrsJ1pOxyR/fK7XSa3GdHczA0WBTvOIX0iyLZhtQjcwi/muzS1vbB67Mc46eV7vgmbFEqe0Kknw/nG5XTwsd8lz+QqCk/vmkI6vGW1tF/Pl7eJTMsHalVPDO38fc9jEWSw29rrZnl6nLN0U0t2qlAapQSGnzFM/fkMXwsW3ZsCAK3A6AVrXX6oVToM0Oa6ru8XGD3wtRAsjrzcxLs50LvLYRLWbjZixCyPIdcEyNceSxmXBpf7uLXZ68kpGrt06l18F01r+vLURiiXZYgJcZnnr5fHgvdtCkqmKvWNJuCwNH/Z4pTewzZZLoVG697jUIqWuh3Ou9iOlO5fjeLx3WMI9powLquU2We7ZuiRtOfGp3pMR40hPzrt/TGrin8hMlY4zLRbI9DZP9SOc81PM440DrxtHhkfTbiRMYaRtloWO5G06yNAZhm+4V7JuoK90spxYnpC9KYT+m1KI/0pPLWZojPZ5voSeQWK8nZnQMrc2xb6x88qPmszTvtF+hUioSt3znc+lWKGhVbNG9fnMeDbcVQfOZzjqYE2WyF541BRalgnn+XiDks2pZvPbxU2WZ38q9GfrvbV559vHHpdGuzbc3OvWe+91WfCFy2KOzmcDY38dy8NJv2kjkUJvX0oUX9Lxs47H3EDArrY3FPwj2PLu3jst67u2vVd1Moqvy7n0MUoSys2lCpF8t3fOUEFHbjYvuO8q7cbh9WHoISzll2L858f2VeSfL0Zvq/Xqt/li3b5A/sfosn1RPXrx3cnhny+Goz57ONQ/p0dDTkf42h/1WcUhrBgK4+bo9FSP5BEAgXM4rk3laB//DrnM45TBZI71i0MO9YGD6L07+qM5Ojo60kMxmmOu/qBM3KUm0QCTggEmqQEm0QCTogEmiQFk6OdYl1GQXLWVeKmH0+bwlbbprBUPVZxJnZDBwwOGfQHOSF+bw/MTOXpq73YsRzt/JDcDBPca6FAIA0ARRYFyCgXjHA+ivE4QRYbyNDxEhRhRRH6iPHMWFaPHqERuozz3HZXZgVSgMFJOsST8fUQYVco4tExI40vkSbw8R5ryfRZMYk6lggUL0adyyYIhDlXwwSgYI1IYhKUgjE1lHKAqJFEqWhqqIkK8CoKgFbRLEIWv8hjDQyhhDCuiGFZOMWycY1iU1wmiGFaexrCoEMOKyAOVZx6oYvRAlcgDleceqDJ7oAoUw8ophoW/jwhjWBnHsAlpDIs8iZfnGFa+z4JJDKtUsGAhhlUuWTDEsAo+hgVjDAuDGBaEMayMY1iFJIZFS2NYRIhhQRDDgnYJohhWHmMY2wkD2XOKZi9SSJPIce3k1yVOEe7FNMxdEYh1z8ldvZj5rC8RHdfr5L1ezF3Yl2E/9iqlAy9STnDi+wLH7OAFThGkpnnClZkUbskZw4vfbIIkd3h9XxMUsogvs7cJQj7xqk8qTsPM4gRIL45jjvECJxqvJtnGFUhTjisBecdxSD6O70qc0pAXYy4ygpkIKeUhlCgLOYlzEIivc0r5B6U0+0AByD1Iye1Rypwe9ejyqJLDo5S7O5ZgZ0eNsg1KlGtAep9SzDOIOcs4Lc0xUGKS3orzC0rfMHSSW1AtG7qQV7DEHkOHnIKazyigYD4BDNkEKOYSxJxJUEvyCMhpFgEdcghQyCBAdzml7IFSzB1D42DiUERZQzmlDOOcL0R5nSDKFMrTNCEq5AhF5LfKM6dVMXqsSuSuynNfVZkdVQVKB8opFwh/HxFmAWWcAkxI41/kSbw8R77yfRZMYl6lggUL0a5yyYIhzlXwQS4YI1wYhLcgjG1lHNgqJFEtWhrSIkI8C4JgFrRLEIWx8hjDYjgMYmMUxSZQGIPAcazS64xRJJuQhrLKEMvGyBVNyHzR1OiMppE3mpC7o+nsj6ZQSJtAMa3C+4RhVBvksAYljWvVJ8ktOLJN2GvOJLZNK5mzEN2mF80Z4tsUH+DKMcIVQogrwxg3yEFuShLlKqZhrirEuTIIdGW7jFGomxBjXWyFsW6MYt0EinUQONZVep0xinUT0lhXGWLdGDmnCZlzmhqd0zRyThNy5zSdndMUinUTKNZVeJ8wjHWDHOugpLGu+iS5Bce6CXvNmcS6aSVzFmLd9KI5Q6yb4mNdOca6Qoh1ZRjrBjnWTUliXcU01lWFWFfWxvopheguY9pMLGBD9Np6+CjbAkoIxblginLFHOOD8DoSim/BaXQPIsS2EHJFwZkjihbdUBRyQsG5C4rKDiicolkwxfKA3weCcSyIo1h5GsODOgmX5vgVvMdoSeyKkhutELeiFowWYla4j9iBYrwOCKJ1IBirgjhShSdxOkhplA4axOhAoDceyC4S6okFx3548BgMTkUUncopPI1zfIryOkEUocrTEBUVYlQR+ZvyzOFUjB6nErmc8tznVGanU4FCVTnFqvD3EWG0KuNwNSGNV5En8fIcscr3WTCJWZUKFixErcolC4a4VcEHrmCMXGEQuoIwdpVx8KqQRK9oafiKCPErCAJY0C5BFMLKQwz/0NDL5qivcnck5wKSeAPk2hc43AGotCogbTFg2ljAhnYCIs5vaNJZVo+sIRS5xwXumkapPC4g8j9QtCLAtCLAhor05KfB7id25DPmT2h3QK4iwKEiQKUigPRxgenjAhseF4jY3dCVO2rj5KUezTS4fsLgABSywLCb11lGEZlHOdlIeWYoFaO1VCKTKWe7qcDGU8FbUDGZUfhVRGBQQbNoLDat8sS+3XcA3r6C2L7C2b7CU/uKmNhXJLav8GBfEYJ9RSD7Cmb7DvwqIrTvgGbRWMG+woN9fxlM2+fsX9CqgMSggJwtgcMdgIoFAanxgKndgA0mAyLWMtSOwY60PnNNpoakBoB8fjWO+dWo5ldDlkWNWRY1JlnUiNTAUP/jUC++uzgUUju9jnWqCxWo0wrUsQI1dxCmJFWrZWAHKNZj+NUqqcj/Du51ZkdSEUDSOIBc3YBD3YBK3QBpDYBp4wAbGgeIVKpHb0f9MPylHelow5AfWhjHoYVRHVoYoqYAxQYdxqQpAOkIQ1F7dHyqR/LUgGRMjQgrAhwqglQ/5HBY6gdIawFMm8NYrWOkt+j0gJJB3FtyeqB+EPc2cXpQaHj3Fp0ekB/LtehRQ6A78qHaoSRUOx5CtaM+VDuUhmqnUKh2jLJQx1wWasnOWX4X/WMXG91NtjAuSKAQITWLFioSA4cKUAyRmocTFeLIIpmCjFSKN69WJYtxFJJKAclqEptU5FstlkUslaDgJZXjmGQOaS9DdJNAgU5qFvNUJIY/FaBMQGqeFKgQ5weSKVWQSlnDq5BASKBcQmqWVqhIzDBUgJINqXneoUKcgkjmbESyT0xe3JVcidMVqSEOfh3160r9EkJ3JMGGyK0lmdAtsRweyuFUB5+/jmRhRUVYUzHm5uyK3UqK3a17/6BPvfNj+V+pegPFb1iGK4VPWALPauu+7hgeFb/uGOrtv+7wxYIF8q87vJbZAj/boHqyVbLPNgZJJpfZHUTbxeJ8B+XJHZzzQROQQA3BatYcvgw2ilegabwwK54SmonkpLF8idSgIXxTGwXjFsN3KDAkVzSuIjKr8cygoqIphYERBc2SYsFwKiQmEy0zlmi7WE82kPJgmncjXA7tjnxv2iG/HNqhpFfteOhKO+r7zw5Rf9gxWg7tmFsO7YjvDN9J8F4miOqinCqkPKuVirFqKlH9lHMlVeCaquCrq5jqjOuGjKjOYd2QeVbnbN2QJapzXDdkgevM64aMuc4uyi+LAtffq2wFr6a28EUSi/gCbBevBut4OdjIy2QpL5K95B3IZYLIRsrJOsozu6gYLaIS2UI5W0EFrr8KvuaKfZ3HrrrjWNNxrOS4UL9xWrVxrNU4qdA4qcs4VGOc16DtpfqF2zF2UIiS177joVs61aOpu+pHV3LmStqKryHsKnoaE+24kGjHhUQ73pdox+VEOy4k2nEp0Y5LiXacJ9pxIdEqhzYJI+PAs9bBkTHZcxpv9zGeOIsncrNlI+VBcl8TQQN6Tq3oRWpKL2bt6UvERvU6tawXuXm9ym3sVd/QXqPWDp/7nSTW43bf97FfVuSq0CrTwnN8LFxnVrgOe0Xxg7dBh09FwDGQklugRE6BUuYSqEeHQJXcASV2BtTYFVDzjoAKuQF9i3US7MQuUP4SKxa4Si0/Te/+Mb3CLL0CN3vh66RBlQ8LoMUVUXMrp7ZWnjW0irGVVaImVs7tqwI3rgq+ZRVTs+KXNSfeDNyghe9qSL2K9pzG232MJ87iidx82Tcog+RX1bAJWaGWZJkalOWsXblMbF4uQa3MMjc269zmrPumZ5U8gGRwBFbIH4KcuQUVuiq22LT4RB+LV5sVr8aew3J0IP3UAFzHGDmNCeQuJmSOYmp0EdPIOUxgtzCFHcIU7wrGyQnctzgnZBFu+NKXOCxfJdadJvf8mJw7S87lRk2/Vhk0Wd2B1lREjamc2lJ51pQqxpZUiRpSObejCtyMKvhWVEyNiCt6J94M3ISFFT1Sr6I9p/F2H+OJs3giN162wjdIcZI+LkzSx4VJ+njfJH1cnqSPC5P0cWmSPi5N0sf5JH1cmqTjTt0TbwZuu8I+XVKvoj2n8XYf44mzeCK3XbantZd+G5qtX479DVsMkDQWINdOwMNe1d+wdQBpwwDTNgE2NAcQaQlDtvmpO/JvDDvkNz91KHlz2PHwurCj/h1hh+idX8foRV/H3Nu9jvhNQy2SzU/DZuIW6T6igb0f4ZbZ7shvme1QsmW242HLbEf9ltkOpVtmO4W2zHaMtsx2zG2Z/TDqN0mc2JHfs9ihZFtix8OOxI76zYgdoqcGhXYodkzeUwPy+w8/DJF9ZkcS1IhcPJswcdeZxPpOCvWdpPWdxPpyK4GS1HdCmzE/QCsZaRPQhR61uad/u/JhyDFndqQb2AzhrrSeykIOtL4iMonyzC4qRuOoRBZSnptJZbaVCuQgyslLcGHtjBD5S2FhjdRJvDa7j/J9tkocSaWCrQoupXLJVsG5VPAehmuHFx6Br+FCIfkRe122UDhI8vYFXE8RmVN5Zk4VozlVInMqz82pMptTBXI95eR6wsH1FJHrGc9cT9RJvDa7nvJ9tkpcT6WCrQqup3LJVsH1VPCuh5v1LzwC18PN+uRH7HrZZn2RwvZAeYh8e2CupgYubg/MC7Cx924PzAsFw+fbA3OVHTbsEDlLBXbefTtE0jKT0j2DO3v12zbPXNsX2Gvzkpv7QvttHl3ey+T4YevMRSZgEISdM6lfh4Ao7pvpC/wxGqYZL/VIpxmGdJphyE8zjOM0w6hOMwzZNMOYTTOMyTTDiE4zFLXRfHShRzr6NuRH38Zx9G1UR9+GePRtio2+jen3CIZ0aqHIvqnojuSpAYndAbmKAA8R0FHv9h0iN+6Y2h0uONgdiM8bLer/wrVMWXvST5f6rUotac84V103GQOSxILIfcFjPGy97ilsHIbC+mGPIdpW3TH7sEfZ8HfPZSbbosVIpvzdkV896RCtW7SsdgasYwvXhebEPcNApUaAyC9B0boCE78EJK1qSOe31ohrV611rP1aGhGR6xJMsL+NLtmtpe0+4xM70i7BkO8HjKPrG1XXN8Rp3hQLCmOW0I1JFlfy5Cy380exvXexXXGz1ZDRwmYr5pSP881WLMbMHDZbMeccHTdbseCzddhsRRzydpgGMM8yeDYNYIlyeWkawDJn9TANYE75Xfg8tjRneuWU7pVnSULFmPhVouyvnLsAFbgfUMF3BoqpRxBO3YJh1zcIhhStiHoJ5dRVGI9f7ZgYOw2TYs+hGnUfyrkPUYE7EhG4NxEOXYoiyqzKuXMRoY6twt2M8n1ulHQ4KlGvozzvelTm/kcF6oSUU08knLsj4etoDe6YlFPvZDzrokRN+imRoLNSRD2W8qzbUjH2XSpRB6Y878VU5q5MBe7PVPCdmuCn2BK7BBWcLevowg5b6Q3yHba5yl3fnh22eZGkG8x32OZq6BILO2xzmbrHfIdtqmJXmS9Y5GrabRYXLPIC3IXuXbDIC4XuNF+wyFXuWp06L3lY6Ga9yp2tV9Nc6YskHa8vwN2vV0Mn7OXQFXuZOmQvcrfsVO6cSfRdtP+CEro2L3B37VXutEnNum5fJOnAqUDSjfsS/pNcVu33HlI5dOxODt27U7GT9wL3VV4NHb7/ZLPU9qHz9+q33TobCPgCPBzwamFQ4AuFoYGXeYDgVR4mODUMFpy6LtkzDBy8ysMHUtNBhCuTDSVcARxQeIGHFV5NBxe+SDLE8AV4oOHVwnDDFwqDDi+HoYeXaQDixKdSS++Kwt4QiAOTyTAaObEjvx49wXEHoGRdekIjDKC+N5i4sQQwWkaewKgBiM/wsn6O1QjfTjCnCuXfTrAYqxa+nWDOlYzfTrDgqxu+nRh4+OYg5VT7/JuDVMzsUPzmINXJIoVvDlKVbZN+c5BqZCXafp9QslC2/T6RMusUtt8nKlkm3X6faGyVZPt9opBFcG86I7JF2JvOPLNCtjedJap/3JvOAtec96Yzpjone7oLClmgtKe7IGf22LOnu1CCrFPc013Q2VaFPd0FlSznNjMHRtaKm5mDkFko3cwcNLJKspk5KGyJsJk5cKq9/pL0Zcao9iZQ7U3Iam9qrL1pVHsTuPamcO1N8bU3TrUffqn3MhKquWCqt+Cs1qLFOotCNRbM9RXOtRXu6yrU1/RqqOXwS61XWEVkulcTmF9fAAFXFQDrWgIwWxwAaBsYAcoORkC6OGCs/Y3jIzvyW0w75IfsJoydTWgvSIeSxux4aMiO+kbsULrXoFOoaTvmd3J0KLYd7E/tDrXtgKkRgPm3rMbxdxKN6nq4IZs3G7N2gztJuwHSX0pUJBOkfurWk2Hz7fErQVSHKqmrLTgAyqtapVV16wl44WiCKjFBlZlAVwmGH99oWbs2cGZHunXDkP9ZLeP4G0JG9eexDNlvYhmjnxpsWe2NbL/oCMxHOgg4ozKqywSGeKUQrmErAsZ0URDK6eRfke3GtmI43TZvaufY5xrqOrEG5L3EOHqJUfUGQ1RDUMxPjNm6kjH5SdGOTCUx9603dYkZmAY3MGouEzAxA9bEDMwSM0DzboAS4IA0MRvrFrHtyO+Sn4b0Cjzskp9iegWU7pKfuvQKTF3MkD62Ilthno7CsvJ0FNaSpyG3Ag/LD1PMrYBojWw6iovC0xGvBE8xsxqSWHh5bqTPrP2a5XRIrHZGFWupaRVRXssq9IZTTqtQ2HeSU5dVgSWV16R6puGycCctfA8+denPWO2uWse6ZwunU859RmNz5uui01FcDJ2OwgrodBSWPaeY+awRMfFZY7eJ71RP08QHyP95AePhs6QpJj5A/PcETLE/JWDM/oqAMfkDAkraBb7zl3qk6doQpuWOzny+nCX5cpbky1kpX87yfDlL8uUsy5ezLF/OYr6cJflyNsIfMZ1hvgSUvD2ZUb4E6t+CzJJ8CQrtc5hhvgTkf2x0NuTLYZQzw4SJTFsAGOV+E3DXqlH/w8ozlzOBwYdQBvVLKEP+p5VnkDX78JqNwnh0NqRNuEyVVFYTp2OFylZpZf2IFEpHI1SJEarMCDYi7UepsyF79u8nZpg9AdEfAJkN2fPoSK9rg0dgvrogYAwb9XtvZkkCxWvQ67sZZlAsp1MORTx4nFEOtaZ/9IZ6pHnHLGRRFMIsY4ZpFFCopEk00Zi5PIoF/VxrpuvnkFrCy4EgcIbMXw8ENcmV4QVBEELWjK8IgkL5M7wkYAEyafjWjXmWU7Nv3Vii7Fr61o1lzrPhWzfmlHGFY9pVxulIBU7AKqSJSdWYnVSiVKSc85EKISmpQulZOeVo4RSthn22Fp5VO+RtFTh5m7DPUEkaNynJ5SoWrBiyugpFK4b8LgIkeUWU6ZVzuhcBc74yTvwqpNlf1dgFqET9gPJCZ6A69wgqcLegAvUNwkMHIULSS4j0mNg89BcqpJ2GqrHnUIm6D+WFPkR17khUCL2JKtSl0EtFybXZW8VM476l+F4xK5D0MNmbxUwL/Uz6bjETqbfJ3i4mGvQ5SKnbQSnreVCPnQ+q1P+glHdBWIJ7IdSoI0KJ+iKQsDtCzIkWNe6UUEvTLRaIGRdVyqsocWpFLWRXFKmbQslWkYJGWcMpvsMCqXCt0G2hxj2X075hzaT/cmrShaFetnboyFDbZ+3QnYEGPRpS6tRQ4n4NNOzaEHPvhlrawWGB2MehSt0cSoWeDotwZ4ca93eoUZcHUuj1QEs6PlAf8wYK3R9qaQ+IBWIniCr1gygVukIswr0haqFDRNH3iU3Ydn9fsu8F2qN241r/YlFSHhYQBKWG5IelBEEpt9sHijoO5eGRoTRQKCvbR6CgICiluwWgmDIo5/629VDO/W3roRz8dd2hFPx13aEM/gnPoRD+Cc++1DV6br+4ez245LEdiScCSt6yXZPfAfVv2a4TPwOF3r9dO7cCNniTka9arZtRvxYKRxpNhnBc1FNxsV2C6ALK41Xw2w9GdJXs2w+R5M8Ru+sY5CuZEq/Vd5L9Hy24vV7K3y3os5hTvdRW0H7uqTvyOwM6lO0MUM/Toyd39OxK7vyRr1puZenG8fkU0UMqT5/UpRqPniJ6jifuEkRVKHuLDDmwHoqoHsrTeogK9cAPkwg9xxN3CaJ6lP3VDY9cZRznGjkxr1bI3gl/KvDnwnV2Jc71dWKsNHQKdzmlCqOUVpc7n0CfUvqcXmGXU6okSkkVbdzq6oiYK4laXksogdUE/JTj5/wiuwLmqqIW6ypd912CqI7K0/q5YYFHTxE9xxN3CaK6KI/10LHFXcaoJiakVfFjF2JPCXtOzt1ljOpjQqyQDoLuMkYVMiGtkB9kEXtK2HNy7i5jVCETQoU+jWS2r0d+Z0eHbG6vKNns0fGw2aOjfrNHh2hLR8fohw875n74sCN+l0eLmmhaVptNN5VU+Ekt2B4tdITWHfmR5CcadfQTy7vBNnagk1IlYhkj/nW8Ynwbr1BfxiuxN+6KbLqrSN63KxCT9ESmHvNIfA0U+2ooTuqiWqiQKr5Wiqlqyql+yl0llfqaxs9JU+5rXfiYNBUTC5Q/JU11b43Sh6SpSpbJPyNNNWcl/VNgeuDsEf78VwsXLi0t4tB0URgOLdJxwyL2Q4skny+SlNgeWbR3Rz5DdcjWywzFDNXxkKF66lbFFPvE1SFKXB2jxNWy2h/FZ64LD1inD1jHJwnrS6Ykz1j7/XId8pnUdydJR5J3IV/il8bD9QpfGucqteC+L43zItFse740zkuQjUtfGucy+0D86jcX9poldZLyV795gb3VKnhR6avfXCbfKnz1m6q7kiOx85W/Be0LLIdRU3+XpVul61H8OnUQ5GfYDUleOtEje85kzJiPFleYNocrxbn6qjBXX5Xn6iucYg8XjpPnVWHyvCpPnlfeRHj5QqOxwLf6RqOtcHVwuJWgXSzFl1ceLlyPcB2udiPqWi5+qEc+CGu+ZE+xOYfrxgWa2rWwP5Fvk7ZwL4XudbhhYbWhjqsKyXX4/uVVhV6nvnx4hHQNoObZfrgC37w02+9VHDAM940T19rNUv2JfLt0ltpL9B0h3JIUuDMpu+LV+DlYjo/jBkbDgyQT3dpPaulcvm0+qe01SX9wP8yIxx7t4ol8s+yvyg4SxvtwL3wbcOzRLp7I90pTQCc9uAs8xHMf8tOG1xCFVWove03OWFaf5Fvdi1SQ58hV/0kCq8l2di4CdcoL+E3urNKudpZpMz/L7qMGFv1O+E7NjbXHUnvM9C0b7TfQHuvsM80+u5SN8m2LwP+HL6HQ5Ubtm7LTw4ibB5xvc22pTu6xDwuv0dJVUsIP/pzmYyTWYZ0/p/6kS6bJRCHV3MMmJboJ7mnEfruB1/SGmSZvu3LVP05S4mF+U+Wm6ax9ETG1RyzxVWveWFf3pZwoudPTuiNd2zOU3aIVdBvHsV5M39n2lZOG49u6d2QXHtEDlN6ReZUfJez5G56Hf79yeB73ruvCI3qe0rsur/LzhB9AlOdJf7JLnsqJ+Gxe4Cf0av6c+c9eHWc3pmcefLRL0ER81CjWFTWP/Vqa13D9ySu6fuaxrZx5TpuDlMtqmae6TubwH2o3Jbo6QTixtYj2t6eEdH96ypH2t+BfeSI2JQwG6pUmzLsFz37E1B3porYhaQpAfseEcdwxYVR3TBiyfRHGbF+EMdkXYUTMbUgi4EyJze66Iz/h65C2BaD4Z6c6HqaFPcWFIMP+r1F1iP4aVcfor1G1rNZQ6o78y4UOJdtUOh62qXTUb1PpULpNpVNom0rHpEsGpLZXpHHeG/9phK+CntChAPlXQU/BoYCHkfUTOhQgWlx6cg4FzL0KekKHMuQd6mmEK29Po7Dc9hQaB3hagTpWIF9CexrFdbOnUVgsexqFFbKn2DjPLjKeY2Q8x8h4LkTGcxoZz3lkPMfIeE4i4zmJjF1ojl2s2I5HDIS5eLLlNip40p//+X+DG1I7"'),_Ee="eJx9WFlv2zgQ/iuGnnYBt5DkS85bmk13g27SoEkPbNEHWqIlIhSpklSuov99R7JIkSLtFyGZjxzN8c0h/4oueF1jpqKz6Mt1K1GJZ4s4S+PZYrvdbqJ59J4zdYNqDAfuXuodp52spdSToZrQl6n0KyZl1Sm/xgVpa5BcKURJfs5KCgdj+F++J8+4uCUqr6IzJVo8jy4qJFCusLjD3d27BucE0cGYd+/4c3T2/U2SxfM36XYxT+JtDI8k/jGPPrMCC0oYvuWSKMJZdPYmiWMLuK9I/sCwlNHZCuRfsJD9sSiOk7dxnMFbbrgieefGBW9eROfA7I/8z1myzVbz7rnpn9vuCW/unpvZecF3eHb3IhWu5eyK5Vw0XCCFi7ezc0pnvRo5E1hi8QhCeM0lHCoIK+/yCvdR67zrfd2THPA7VfzzNTrbpv2fX+BPeH8fm2usBMnBg++/oq/forO08+QGNMgGgeG/5wfxYrE4iPFzTlFt5JtkkLeMPIL/EFoNreJBE2vrXReako3YcqvVEXCTKWJdzPS7Gizyjk/mZZvsAKC66d7FCgMtF4NC2eaVqpDyLW+QwIzi/TGoD6tvPQL7BJEPNVKVb39DW2mkJnY5FALyD9eEhU6DL4SPrqTaS0mRrHyDXrHgvpQz7AvVU+CkqgQOnN3zVgSkkFVfKslzQIgfMfPFOBxWRiyDjcs5p5wFIoFr4kImprQrP59WP1ubiVpcCgxlNLq5XC4PwM8Wy77EvSs5ZyU0EpuFaXqAzmlTjVlerzcH8TuskH/4oiLj0WQQ/oWpdXadJAfxZSOJ7exmPfD01lYSD8K/kU0288JLS7Mh+hW337dINCPA5MRX8QE1jXU8Wx/E/6J6V4zyLBtCdd36Km4Cso+QTOG4N6T5dvRusxxsu6/scK5Wgw2fKovZ20HxHSnrQDjv0WjEejvw7/MkxmMD6ZQkvnEfa1xayperg/ibZfN2kN1K4lvxHw4lZAfD6QErpy1lOt2QF4H3XATa8HDP7VnrVWY6SoNZQfKWokBRt90Ak7mt2GACwTVE8bNPE+Tw3VTIzkmQqRuLqsvtUGaFw3cTcjzJxSod3tjYSnQgS4fvpgyc8KaDZuLwXR8FtYlv8YPD9rHBuGxfbQYG1q1vL2v9+3zC9nF0EF+BqoLBFBbbjRfSYbsJprLYboxtpx1Fj23esXoMhqlx7rB9uR2OPxP/aCMDmX61/Vhm8cha7HA91bzbWUR1z0/m8tLUKSyJ1qWNHqeXrTUf16lb76Or6XIzTmWFA4mHyeLOkUS3+H23UpJQPAnbE0bUS2CSUi6IdWM13Mhpu/OlBUE1t/YbA1QYCeWLYVsrRh+SeDm0RCQEf9pxa3Xpds4RcpJhqNVDbXPkzqTpOJcK/mT1VO17gUtn57C3J3cpMlUucW77Px3hRwZ83VJFGvriJ6YRHJboLmnWPUNXWAC7FbQg+/0IrjUL4RMFBxhYkEdSBLxiXB0xD8TkEZorywPXoP0I/jxhXGzWKEoJUFgeiTvs3srq2eO9Hq2Aeq92S9eDIgeYwIeawKoVY+KyVOumuBmpY0r+CgrgQVn7ohl9n6aIoc4TJjB0lEDWvmaGa05ETrGfPRd3lm1jI64b9SKtBJlbhAFTgEhuqWoUvlhCFdwRBW613cNWqnGYyDAdj+OQfdnugpBWHUa14jAKbbN2tlDrfR6mXUT9p7F3peyGvHNBb0UCl933GHgmyN6Hc/0R6+KZxiG7Ba6ReJjg6RiAos0DpTRsHWNz1s284Mr58DI+UF52N8B7vyIGzP4+nGJcWLXiNMtiR0/0S0BPtExAj3ZNwE42zh11e6duTZS/YlZaK6DebfrkOsb4aURMnsqiA+viHpPowDrwsoX1y6moRTZ20cMXtmpOgFYf8sGd8kFrRw4ptuCQagu2lJvwmpXEUu2DNSlOoEf12vY4aXOZkG6WY8OC4hzrwHRcjVhWepjd4KdYKK7jrx5H89WjRxPWoycydlS3jZ/I2VS/G9yp9gB6PG1T1aY4YAp3LfPHPPqABbtFRHS/jf34/T82FAfb",EEe="eJxtmNtu20YQhl+F4FULyMGeD7pz3AY1ChtG7NpFA18w1NomIlECSRcxgrx7SVk7+wOdG8H5OJydf2Z2d5gf9cV+t0v9VK/r+6vXsXlOlbHe28paq229qj/t++m62aXZ4J/m8PRb1z9/baZxefK63Z6eXN5dVMvTCh83u277xr/6kLrnl2XNq7TpXnczuZyabdee98/b2VzM/x4/dd/T5qab2pd6PQ2vaVVfvDRD005puE3Lu7eH1HbN9hTjx4/77/X6y5lcnUmjVzHIVVDicVX/1W/SsO36dLMfu6nb9/X6TAoBD+5euvZbn8axXtuZ36dhPJrVQqgPQoh5hev91LWLkIv94W1Ygq9+aX+tZAx2tfz64284/sblN/rqfLP/mqrbt3FKu7G67Nv9cNgPzZQ2H6rz7bb6vLgZq89pTMO/M/xfEqturJpqSM/d7GJIm2oamk3aNcO3av80O5xh3yyKmm1193ZIT02bqovTKjP+MAf++7zsZvZ3276kYyWWXB0z99S18/PbafPHQ71W4fjn/fxnFO+ZvkrT0LVzTr78qB/+nk38bHM9exgP8zr1z9U7jt6840YW5uSJKcZOCaBBnKgm5mU8MVNYyMwWFvO7Ukagkmgg6sDWQ5yFFqjzUrLEaQ3BEmiwNsMSaZS0vgWfOkPHWQowNeTUc0kumnxZvsgPxlGai6VTGUqAVCTQ6QkWnc77DKEiLktSUBJKqHIQZ86d8gCpHYoiEzMsb1ubYy8vW50DChB5ZhGqrijD0EqUIeiaEHIfCg5Kpuu0ApiToaGPSY0uaQsyr65L2oKi1yFt1PLaQ3lzfXTgXodGoJYzglndSLDMPg1sTPJpQJHJigw0QrGERqD9YhyTOgONQDUyuF1zaxuokc/BW2ztXCMrGZ9WMW1oQZHIXWNBkSCfRZEL5BMUiZw6CzVSFCfUSGZFNjIldoKDkonTKQiJIGzWmFd3BizJJ9SINoLDriOfUCOZS+zg+KGD1qGiLNMLxtJD1/ns00ON6EzyUCM6vbxhoBKaqbG3DFQCNiL1iHccBPV0DHhQH/JW8EW90dkyFKGywCJU0WkVSvSGeiSUODWFFD0HYdPQVoiRgfPMA+/nnRgiAyNYSjpWNQcNSMrtFCUH4ZIRpSCWocFCSuhCEY6hoUClc0WC52BJlCYYLQdhN+hygRRRlo5BKRRLS6oihSqh+ZzzRGG1Mo4Iz1LoP0qsxDGFzk0JE42ji0jCPejomJKCuwil4m5CiRMEUMVSzVLDUstSx1Juc0oVWMpqY295qVltmtWmWW2a1aZZbZrVplltmtWmWW2G1WZYbYbVZlhthtVmWG2G1WZYbYbVZlhtltVmWW2W1WZZbZbVZlltltVmWW2W1QYjQCh7E2aAQHeGhCFgPoNoy8KNb2wxBhmGKBxoUZXlLGsLI6AsftEDHV0wIURVbANLcTKlGGBIKPOAxCmhePCKUwFzAmpDFRQvjA9R06Hq8TONvshgKDCuRAZTXigUxjxNFfKRo3CLhnIJBMFRvMZpqpNBMlQJzGT5WFQMVQI/AikPMIhEU1aDjqJvQwmjSHB05cC9jbYwc5UtAHNLhDw41ha+lEqF4JaH3gmB61SYcqInxTDmQK8v08vjqv4zDf1N0w3Lf4A8/vwPpfK11w==";var NEe={Courier:xEe,"Courier-Bold":mEe,"Courier-Oblique":vEe,"Courier-BoldOblique":yEe,Helvetica:SEe,"Helvetica-Bold":bEe,"Helvetica-Oblique":wEe,"Helvetica-BoldOblique":AEe,"Times-Roman":TEe,"Times-Bold":kEe,"Times-Italic":CEe,"Times-BoldItalic":DEe,Symbol:_Ee,ZapfDingbats:EEe},ey;(function(e){e.Courier="Courier",e.CourierBold="Courier-Bold",e.CourierOblique="Courier-Oblique",e.CourierBoldOblique="Courier-BoldOblique",e.Helvetica="Helvetica",e.HelveticaBold="Helvetica-Bold",e.HelveticaOblique="Helvetica-Oblique",e.HelveticaBoldOblique="Helvetica-BoldOblique",e.TimesRoman="Times-Roman",e.TimesRomanBold="Times-Bold",e.TimesRomanItalic="Times-Italic",e.TimesRomanBoldItalic="Times-BoldItalic",e.Symbol="Symbol",e.ZapfDingbats="ZapfDingbats"})(ey||(ey={}));var iO={},FEe=(function(){function e(){var t=this;this.getWidthOfGlyph=function(n){return t.CharWidths[n]},this.getXAxisKerningForPair=function(n,r){return(t.KernPairXAmounts[n]||{})[r]}}return e.load=function(t){var n=iO[t];if(n)return n;var r=mK(NEe[t]),i=Object.assign(new e,JSON.parse(r));return i.CharWidths=i.CharMetrics.reduce(function(a,o){return a[o.N]=o.WX,a},{}),i.KernPairXAmounts=i.KernPairs.reduce(function(a,o){var s=o[0],l=o[1],c=o[2];return a[s]||(a[s]={}),a[s][l]=c,a},{}),iO[t]=i,i},e})();const REe="eJztWsuy48iN/Ret74KZfHtX47meqfGjPHaXx4/wgpJ4JbooUU1JVXXb0f9u4JwESF13R7TD29koIpFi8gCJBHDA/Pvm+nraTuPmZ3/f5HHzs7/k8WlzvXS7fvPXp02eqyR/2vRfd2N3gqhUUfm0Od9P236+DoczxLWK66fNpZ93/fkGWaOy5mnTnUR67c57lRaZSItM/tnN/XnsX/DfIqg0JOk8HI4UK4BCAFzG+xWCQgXF02Y3nU4dJJVKKrx5mPgKBVMImOvYXY+QKJRCoHzXzxMErQrap810hqaloioF1e0L5kvFUwqe23Hu+Q+1TinWeZnuMwSKrRRsL8Nn/kOxlYLtOnzFWE1Viqmu/eceVioVaylYe1OwVKilQD0PCYgiLRtVcJz4kEItW13mNLi0UsCVAB77KyxTKeJKEPff3rsREkVcCeLD3He3HqArBV0J6G/v/fU2cK1WH23l0e3c7T71N9uUVv/c5i73bWlVs1Y0u5/3srO7aQb2EPUB+eUTva0TYgG5mGbbzZSUkJTpn75ygF4PThhq1SMGMds4HYZdN54n/rdWc8rv02bfH9I2hbqGsKbPnIYzHSc0qmTIxI6nuwpiAIQmU8F4Gy7jK8RwntAI1v3wedj39FmFECp508s4zUOyGmwpKrwbL8eOIlVU//Yf/S1J9C212Pa/uuSwbVDYlWzxf/aj/UtfWgm258t1GG1X1BVawfdnX0xdoRbjPCdBVGs1svo3R/tPVD1r2YL3k0kUfC04f9ldLkmk0NVwv+pO232SKXa126/vHAO5wPxNGivsRsZ/HDhWzLVg/iBuOSfMUTGrTX+b/qSIG0H8u+NEl1J4jcD7/XBI9kDcUYN/0/FNCDuNAP64skYOeLrykUsjElWC9+cmAEAB9NtrEijCplaE/YHvKuC5Iup8zxBAWtFrayakC2QC8uCbhggSskx9zXYNQSRkeuZWQBFKQowabNIfS/qeqOgSOFTINcC4DKcnE70H2zqElJAJ3k++dwgrIRPA47J5iCwr724RWELINFBTAAWiCL7SOogrIQj6abWBOH8hCPoL/4a4EoJgn9MWIq40lcY52cJAGbCHMgkpA3g9t7e0sRWgB1HnvjJYRez6yrSTlYJvRZmdCQhe80Pa24roNYL75uLo10WyKYHVeFLjYnImilM0qPDOJOKWNGlFCJsIrw/qsNv7OPY3SnNYSQ9DP46DLHylvGCcEFU08Nz6JIVx9Chd+93ENNhEWroSuC8SAi0WNznNpqH9+c5k1RQ0nIbi9/LnTzdmoKZAaAwaib/0g0Ti29wxG8gUgLey/O8eHmmqt4eiKTNYo416LPrLkcIWa2u06eZ5+mLBXCaoTp4m7pckBm41P8Qe0mUG6DUCYWY/fTmnCQbwkCa2043vrhA2gqakncwM3aGfe9GAj1Vw9qiuzPW2o4Or4PcxhmUu4atwAGKMy8wCscJhiDFfJh1lhY2K6mo250DrTJXOC82EUgVIkTMmOd0moqC5Dd24H15e0hRKJS0Cvg7Xm9RKgz9ErdWrTpfb6zV5Wx2ytwlDZLplUQ/8Ye72Qyq5RI5kqY4t6fe0iHOItdCYbo8zKOi0vLjvjrdjZ2IYRAPUZZ72910SI7vEiL9LaHSvrZFkipKOf02y8gc9vEbmKHQjRP95uH6ShZI9c9pao41otTPLICMETXSC5jLNupbP8bxo2Dy/DOfh9prk8BKNk935MPIo1jiKUSNQqiVSVSozBWYan5nmNMGz1+r6AleO8KJJwXdk2H8XwgVVP31AticBhdvqIZPwNPcvqWhqah74iIB6GsYuvbdGeYFS93yY775hPNh6giUlzNNXr/eaJmNYKrnLKznOt4ZsEQ6f5ZCfWVvJFK2Xs5BcP8ND23r5uJqDyaPmM90Oscl9a87aIC3HLCxz+uOzNFgOhA+P4XRq8hPTjP3Xhzn4oiYIm1svybSpOX03zDuJX4kqyAx3rrKZdZ3XNMggGh9lsUt/Fm+7m+1bGCxqOttPN/fOFiExKh+xnb1d0gz8qiiXmS0r5YxLaaULN/TaOsu4WEgTS3Fd1TCvlsvj9F1/PvQpPzHAZqiN9yZEntcyaDfet0mGOKLl5LGX6EMhU5ZGkf3QnVIWqvJA5FoG7KbLK1BcBcyLTfNYZGr7g8ar+WEWm63VgmSefX/q5k+r6Rplrdo/Heb+q00gKzcWUiVy3pY5RkGL7kept7/zSRS8Uc+Kw+nOV5ukqeu1KqtZ2Ds2a6yrWZghX/NS7q3OwQZ5WM0tgGCBPK7muPM6B2fP8wditayKMKG5YzW7rIvzkJcPs8vKOBGaRJxo+boMocrFfe407G0SJlJS7pO+KOrwqKkAcw4lp28Xi28vU7AM2Lfz9gUITKM8fJlcnoRtlJIvkwsSRtD2kXkuC8M2ytbX08vSME4ZHqd9cTQgojL5hXr60uhDxDJfTy7WQ3kXy2I9q+t+L7V+d3nZD+fDtrtdf7iZ8gPUNhVNSLOdFKmrqgg5UGR5ktUWkERW4ETnYSnQpK5PsqU2k3I5yZbCTGhJki0lmbJ2ypxOd8rYKXM23Slnp6yxclZkVZK1li1EVlMWmY0yyJokC5bIRdYm6sDCW/9X54knZEYnurpKJCEzNtHVdYqTmdGJrm6SiJRMsdWJmTS1MYWuSZwAHg3D5dSJO6tnpqPiNXIHapSQHkL9WNCyDwEZymTtQzyGcfx/rQVukWUP4RgGS29oG5RieEMSVKm67GISoHZUs0g6TKImlZMdbde2cDMFUCZBSBWevKlNIlRrBNQkEVpt0CXUSYTWGvzG1q5TldeFIklgFfiMvQ6tNXgMtk5IM+qSAjbJSpOh4wdUtYnQYgOqxkRosgFVayK02SJsYCJ02tRw9HkVodUG00UTodcG4+UmQrdN0dPhVYR2m8KPBhX1t/bkumgaofzWplwXDT2Oo9K2Lhp6dogUvT+HBpGC98fQxlDs/lSVCr/OVGZ7CGY3lXEIKyD3fylyrQS63P4VjTl0uRkGJxB+l5th2CBS5LkZhg0iRZ6bYdgPUqC5aYMEh8CSmzrsCinU3PRBKkNYyQ0qTgSiSmFQcSAQVAqDimSFmFIYVPaKFGphUNktUqiFQUVaUvLVFbaHSEZK47vC0LNfpOgLQ8+OkaIvDD2SjZbOXWHokWBQgJeGHkmlwaEz9EglKHFKQ48og8qmNPQgJEp0u9LQg4mAjJeGnm0rRV8aeratFH1p6EE8tBnQlYYebSutwLrS0KNrhRZYZegRbpV3dpWhR8tKSU9XGXr2rJTsdJXBTz0ruLjhT00rVaAyBVLTSjWoTIPUs1IVKlOBbSulAV1lOrBzpZS2q0wJNq8yhH7TovIOb1cb5tSXUny14Ut9KUYQUyS1phRgbaDZmEIiFrKThCnpIMMYGrZh0JBo7M01e+H65sZeUpPp6ZsbX4+dcH1xa1YgxYsIAWYF9rXBI1p/L9tiiL6ZmYGtrYpZybaz8caUCA1iA4iIPcEN0ZAQIuq70g2ZPCOQ7R+yE5riIjTojfMRESbsge1zHMhgsSlk5PR4u0WnQDraMOdEE7JTj7dbhAqpw4K3W4wKGZv3eHtempBkA+nHQldgrwXHM1jwCgj0pB7BwlcIbI7BnhbAAmsvHNJgISyw+MIxDRbEAqsvHNRgYSyw/GqZSE0j1l84rMFCWWABhuMaLJgFVmA4sMHCWUi8CRpZQAvkSzizwUJaIE/CoQ0W1ALpEU5tsLDGDzqg6yI0jaKzfxGaRuRBOLjBglsgAcpYHZhG5D04usECXCDdQd0WLMQFshwc6GBBLqQOETSyMBdIa3DMgwW6QD6Dcx4s1AXyDpSRYmoTsrpmzWKQyDJw0GWjTci2GCBZIAtkFDj+wSJZIJPA+Q8WygIJRCQkw8meFCJAsGAWCu8BiNAsjzTAXkKwEBfYg2IQqM3y7EFFauT/ZAcUGlk0DAU7nyzETPeSHBIa1aZmSe4IjWpTsyRphEa1qVmSTFMjU7Mki4ZGreEsSZ+hUWO6s7+bc4/8cdJlaNSYQdjTRbEbM3+c5BgaWTgOSA7stkSLiqFiCwbgLUiHinQX4C1Kh4pEl+BN94oEl+DNdBWJLcH74yS0AG8RPeCjRmRZ3JiR0ZWKrItbW7MmZWVlbG+vSVWxHY2tyW+lJTUy0yEVgdTKmmYlNplKagSDCMFlTIaH8GmVMWkpIj6sMsQv+Ae3UmUIX3AP6q0yRC94x/IOBC84B4+VyhC7yHTIELQRhGgM32hchmAM14hMRCpEMIZrNC6DJvAMWkxl0ASOQYOpDJqACrX+EmgCX9EQ8f3T5stwlggXf/otCfss8O19uvX7LfqmP3Z1AiRPP2JPY2pA/vTbFIhHqhFedB2s0/2v3bIAG1z14yH8CVcvwJFFoePr5cgbDv9/G+Pfvo2BUIP6ix0r8EO9ZYARuKFeMMAIvFA/gWMESqifiTACG9QrBTpCBFGK9wuMQKz0UgJGoH+C7L8xAvPTL40Y4au7gPkfjEAB9SYBRmB/eokAIxA/vT6AETifXh7ACHRPrwroqAFX0i/5GIEmCZb/xQj8Tu8LYARqp5cFMAKr03sCGIHQ6SUBjMDlBMsfMLIP//+HERicXlzACORNsPxJR2iW4I4FRj92EQa8TTuGInY3/vHrMSBwuoPX3TDot4c7osKPXJtBm0XLvsPc0XfRZkHNhxE4nLZsMQJ902/jDOQIkriXkAL7JhEyNh1ZemtZ98IxCZvebeCYZE3AHjkmUdMPGRyTpAm6v3FMgqY3EjgmOdPPZhyTmOlFBIwZxHEPgWNeJ9BbBxyz+af9c45J2PRMcEyyph8EOSZP03PMMTmaXjLgmN0+vWLAMfBpFfeZY7838AVjNilxLYJj4NOy7ZVjUju9zcHxv3/FiVcKULCpf9yGcb9qEOPL/6pp7GyO2cU+S7N2AaOzDMHKBXxO4/goyYBiZ3S7+yxxf0fNKud0r31a0gnddp4+9WfTpHJOt/r4yfIlfVDq5z7dgWABg8amf4SBnLxZQ9A0718keFqMZSGDNurhPoxjf5r84LGeQY/77d0vb3QvyYc1DTrd9nWo56movd196uyqy792faz2prfkJHyAHPiBONTe+kZ2ephrlhb4Ll0HSRfRNOLxqk5onB1LWu4kCPAGRmicIDOZ6j67Ro0T5V2/F6t1lDpTlkz6iMTpspj/JI53H83+jZNmt/+ybY2TZ1lRctmcUldonEDLxLEbGV5aZ9AwRnqAJmydSFu6c2dunU6/8yDIL5Og0+8W67VOp98xsL6kr1H8FglO/W45Uq1z6ncPXto6rX432zlpnVW/e6bAGfXPV0aOmXPqZwcbM+fUzw42Zs6pnx/BxsyJ9fMaV8ycW79fre3c+v1qbefW79+u7QT7/ePazrGf+UE7Zk6wf+Mmi8EJ9ocFQnCC/WGBEJxgf3gDgddNNIp/WC3Mb12i24cHXIEfkcs3FzGDM/UPnnJjcKb+cQXOmfrHFThn6h/fgItO1z8+4IjO2P+0LBOdsX9znHgBKUYn7Id+Pkklvh3TCgtpX9DFhbSvll1I+1t0C3NfTBcX5v4IeSHv5sYxX7g7H86dt+/Wbpw7c+8XsLkz934Bmztz79+AzZ2+9w+4cmfww2ptZ/DDam1n8MPbtZ3GDw9rs9ui3KZPblw4tz8vJiuc208LhMK5/bRAKJzbT28gFE7wp9XCTvCnR1zO8ZeLw7Fwjj8tTlw4x78v0Ern+PcFWukc//4GWulE//6AonSu/7paxrn+zZ2YnRclRK/rBXJsCAjxh2cKEAWVJ02ku/wOoFv2+12XkmnODwHgW4uQGVbZ0uM7mAJ1b/68/JlpUMnWdy5MF6/Vd5eL19YYSPd6FqPwBkNQo/h2NQxdQQ3bn/dpCxrGrqCW7U8rKZl/mfi0Xytk3Am66ZhYbg4y+KAVslDwbXdNL2d5qU5hnYBlTZaa6hs2t1qWdaeeTptcLco+hl5R7w4H5uOGcQbtEkpT18GusOI2xT9dYcVJf7zCSjmbD+Iud2s1NPRb9E+0UICmizb8ZK/+5JOLOulSqwaw5VJr2vB8dSFn89fvv/8H0oq1dA==";var PEe=mK(REe),yC=JSON.parse(PEe),vC=(function(){function e(t,n){var r=this;this.canEncodeUnicodeCodePoint=function(i){return i in r.unicodeMappings},this.encodeUnicodeCodePoint=function(i){var a=r.unicodeMappings[i];if(!a){var o=String.fromCharCode(i),s="0x"+gEe(i.toString(16),4,"0"),l=r.name+' cannot encode "'+o+'" ('+s+")";throw new Error(l)}return{code:a[0],name:a[1]}},this.name=t,this.supportedCodePoints=Object.keys(n).map(Number).sort(function(i,a){return i-a}),this.unicodeMappings=n}return e})(),Gx={Symbol:new vC("Symbol",yC.symbol),ZapfDingbats:new vC("ZapfDingbats",yC.zapfdingbats),WinAnsi:new vC("WinAnsi",yC.win1252)},l2=function(e){return Object.keys(e).map(function(t){return e[t]})},IEe=l2(ey),aO=function(e){return IEe.includes(e)},qx=function(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height},_a=function(e){return"`"+e+"`"},MEe=function(e){return"'"+e+"'"},oO=function(e){var t=typeof e;return t==="string"?MEe(e):t==="undefined"?_a(e):e},UEe=function(e,t,n){for(var r=new Array(n.length),i=0,a=n.length;i<a;i++){var o=n[i];r[i]=oO(o)}var s=r.join(" or ");return _a(t)+" must be one of "+s+", but was actually "+oO(e)},Vu=function(e,t,n){Array.isArray(n)||(n=l2(n));for(var r=0,i=n.length;r<i;r++)if(e===n[r])return;throw new TypeError(UEe(e,t,n))},zs=function(e,t,n){Array.isArray(n)||(n=l2(n)),Vu(e,t,n.concat(void 0))},LEe=function(e,t,n){Array.isArray(n)||(n=l2(n));for(var r=0,i=e.length;r<i;r++)Vu(e[r],t,n)},OEe=function(e){return e===null?"null":e===void 0?"undefined":typeof e=="string"?"string":isNaN(e)?"NaN":typeof e=="number"?"number":typeof e=="boolean"?"boolean":typeof e=="symbol"?"symbol":typeof e=="bigint"?"bigint":e.constructor&&e.constructor.name?e.constructor.name:e.name?e.name:e.constructor?String(e.constructor):String(e)},jEe=function(e,t){return t==="null"?e===null:t==="undefined"?e===void 0:t==="string"?typeof e=="string":t==="number"?typeof e=="number"&&!isNaN(e):t==="boolean"?typeof e=="boolean":t==="symbol"?typeof e=="symbol":t==="bigint"?typeof e=="bigint":t===Date?e instanceof Date:t===Array?e instanceof Array:t===Uint8Array?e instanceof Uint8Array:t===ArrayBuffer?e instanceof ArrayBuffer:t===Function?e instanceof Function:e instanceof t[0]},BEe=function(e,t,n){for(var r=new Array(n.length),i=0,a=n.length;i<a;i++){var o=n[i];o==="null"&&(r[i]=_a("null")),o==="undefined"&&(r[i]=_a("undefined")),o==="string"?r[i]=_a("string"):o==="number"?r[i]=_a("number"):o==="boolean"?r[i]=_a("boolean"):o==="symbol"?r[i]=_a("symbol"):o==="bigint"?r[i]=_a("bigint"):o===Array?r[i]=_a("Array"):o===Uint8Array?r[i]=_a("Uint8Array"):o===ArrayBuffer?r[i]=_a("ArrayBuffer"):r[i]=_a(o[1])}var s=r.join(" or ");return _a(t)+" must be of type "+s+", but was actually of type "+_a(OEe(e))},Qe=function(e,t,n){for(var r=0,i=n.length;r<i;r++)if(jEe(e,n[r]))return;throw new TypeError(BEe(e,t,n))},Pt=function(e,t,n){Qe(e,t,n.concat("undefined"))},yK=function(e,t,n){for(var r=0,i=e.length;r<i;r++)Qe(e[r],t,n)},gs=function(e,t,n,r){if(Qe(e,t,["number"]),Qe(n,"min",["number"]),Qe(r,"max",["number"]),r=Math.max(n,r),e<n||e>r)throw new Error(_a(t)+" must be at least "+n+" and at most "+r+", but was actually "+e)},Cl=function(e,t,n,r){Qe(e,t,["number","undefined"]),typeof e=="number"&&gs(e,t,n,r)},vK=function(e,t,n){if(Qe(e,t,["number"]),e%n!==0)throw new Error(_a(t)+" must be a multiple of "+n+", but was actually "+e)},zEe=function(e,t){if(!Number.isInteger(e))throw new Error(_a(t)+" must be an integer, but was actually "+e)},c2=function(e,t){if(![1,0].includes(Math.sign(e)))throw new Error(_a(t)+" must be a positive number or 0, but was actually "+e)},cr=new Uint16Array(256);for(var Hx=0;Hx<256;Hx++)cr[Hx]=Hx;cr[22]=ar("");cr[24]=ar("˘");cr[25]=ar("ˇ");cr[26]=ar("ˆ");cr[27]=ar("˙");cr[28]=ar("˝");cr[29]=ar("˛");cr[30]=ar("˚");cr[31]=ar("˜");cr[127]=ar("�");cr[128]=ar("•");cr[129]=ar("†");cr[130]=ar("‡");cr[131]=ar("…");cr[132]=ar("—");cr[133]=ar("–");cr[134]=ar("ƒ");cr[135]=ar("⁄");cr[136]=ar("‹");cr[137]=ar("›");cr[138]=ar("−");cr[139]=ar("‰");cr[140]=ar("„");cr[141]=ar("“");cr[142]=ar("”");cr[143]=ar("‘");cr[144]=ar("’");cr[145]=ar("‚");cr[146]=ar("™");cr[147]=ar("fi");cr[148]=ar("fl");cr[149]=ar("Ł");cr[150]=ar("Œ");cr[151]=ar("Š");cr[152]=ar("Ÿ");cr[153]=ar("Ž");cr[154]=ar("ı");cr[155]=ar("ł");cr[156]=ar("œ");cr[157]=ar("š");cr[158]=ar("ž");cr[159]=ar("�");cr[160]=ar("€");cr[173]=ar("�");var xK=function(e){for(var t=new Array(e.length),n=0,r=e.length;n<r;n++)t[n]=cr[e[n]];return String.fromCodePoint.apply(String,t)},Gc=(function(){function e(t){this.populate=t,this.value=void 0}return e.prototype.getValue=function(){return this.value},e.prototype.access=function(){return this.value||(this.value=this.populate()),this.value},e.prototype.invalidate=function(){this.value=void 0},e.populatedBy=function(t){return new e(t)},e})(),Ks=(function(e){Mt(t,e);function t(n,r){var i=this,a="Method "+n+"."+r+"() not implemented";return i=e.call(this,a)||this,i}return t})(Error),MF=(function(e){Mt(t,e);function t(n){var r=this,i="Cannot construct "+n+" - it has a private constructor";return r=e.call(this,i)||this,r}return t})(Error),iA=(function(e){Mt(t,e);function t(n,r){var i=this,a=function(l){var c,u;return(c=l==null?void 0:l.name)!==null&&c!==void 0?c:(u=l==null?void 0:l.constructor)===null||u===void 0?void 0:u.name},o=Array.isArray(n)?n.map(a):[a(n)],s="Expected instance of "+o.join(" or ")+", "+("but got instance of "+(r&&a(r)));return i=e.call(this,s)||this,i}return t})(Error),WEe=(function(e){Mt(t,e);function t(n){var r=this,i=n+" stream encoding not supported";return r=e.call(this,i)||this,r}return t})(Error),UF=(function(e){Mt(t,e);function t(n,r){var i=this,a="Cannot call "+n+"."+r+"() more than once";return i=e.call(this,a)||this,i}return t})(Error);(function(e){Mt(t,e);function t(n){var r=this,i="Missing catalog (ref="+n+")";return r=e.call(this,i)||this,r}return t})(Error);var VEe=(function(e){Mt(t,e);function t(){var n=this,r="Can't embed page with missing Contents";return n=e.call(this,r)||this,n}return t})(Error),GEe=(function(e){Mt(t,e);function t(n){var r,i,a,o=this,s=(a=(i=(r=n==null?void 0:n.contructor)===null||r===void 0?void 0:r.name)!==null&&i!==void 0?i:n==null?void 0:n.name)!==null&&a!==void 0?a:n,l="Unrecognized stream type: "+s;return o=e.call(this,l)||this,o}return t})(Error),qEe=(function(e){Mt(t,e);function t(){var n=this,r="Found mismatched contexts while embedding pages. All pages in the array passed to `PDFDocument.embedPages()` must be from the same document.";return n=e.call(this,r)||this,n}return t})(Error),HEe=(function(e){Mt(t,e);function t(n){var r=this,i="Attempted to convert PDFArray with "+n+" elements to rectangle, but must have exactly 4 elements.";return r=e.call(this,i)||this,r}return t})(Error),bK=(function(e){Mt(t,e);function t(n){var r=this,i='Attempted to convert "'+n+'" to a date, but it does not match the PDF date string format.';return r=e.call(this,i)||this,r}return t})(Error),sO=(function(e){Mt(t,e);function t(n,r){var i=this,a="Invalid targetIndex specified: targetIndex="+n+" must be less than Count="+r;return i=e.call(this,a)||this,i}return t})(Error),lO=(function(e){Mt(t,e);function t(n,r){var i=this,a="Failed to "+r+" at targetIndex="+n+" due to corrupt page tree: It is likely that one or more 'Count' entries are invalid";return i=e.call(this,a)||this,i}return t})(Error),aA=(function(e){Mt(t,e);function t(n,r,i){var a=this,o="index should be at least "+r+" and at most "+i+", but was actually "+n;return a=e.call(this,o)||this,a}return t})(Error),LF=(function(e){Mt(t,e);function t(){var n=this,r="Attempted to set invalid field value";return n=e.call(this,r)||this,n}return t})(Error),XEe=(function(e){Mt(t,e);function t(){var n=this,r="Attempted to select multiple values for single-select field";return n=e.call(this,r)||this,n}return t})(Error),ZEe=(function(e){Mt(t,e);function t(n){var r=this,i="No /DA (default appearance) entry found for field: "+n;return r=e.call(this,i)||this,r}return t})(Error),KEe=(function(e){Mt(t,e);function t(n){var r=this,i="No Tf operator found for DA of field: "+n;return r=e.call(this,i)||this,r}return t})(Error),cO=(function(e){Mt(t,e);function t(n,r){var i=this,a="Failed to parse number "+("(line:"+n.line+" col:"+n.column+" offset="+n.offset+'): "'+r+'"');return i=e.call(this,a)||this,i}return t})(Error),Dd=(function(e){Mt(t,e);function t(n,r){var i=this,a="Failed to parse PDF document "+("(line:"+n.line+" col:"+n.column+" offset="+n.offset+"): "+r);return i=e.call(this,a)||this,i}return t})(Error),$Ee=(function(e){Mt(t,e);function t(n,r,i){var a=this,o="Expected next byte to be "+r+" but it was actually "+i;return a=e.call(this,n,o)||this,a}return t})(Dd),YEe=(function(e){Mt(t,e);function t(n,r){var i=this,a="Failed to parse PDF object starting with the following byte: "+r;return i=e.call(this,n,a)||this,i}return t})(Dd),JEe=(function(e){Mt(t,e);function t(n){var r=this,i="Failed to parse invalid PDF object";return r=e.call(this,n,i)||this,r}return t})(Dd),QEe=(function(e){Mt(t,e);function t(n){var r=this,i="Failed to parse PDF stream";return r=e.call(this,n,i)||this,r}return t})(Dd),eNe=(function(e){Mt(t,e);function t(n){var r=this,i="Failed to parse PDF literal string due to unbalanced parenthesis";return r=e.call(this,n,i)||this,r}return t})(Dd),tNe=(function(e){Mt(t,e);function t(n){var r=this,i="Parser stalled";return r=e.call(this,n,i)||this,r}return t})(Dd),nNe=(function(e){Mt(t,e);function t(n){var r=this,i="No PDF header found";return r=e.call(this,n,i)||this,r}return t})(Dd),rNe=(function(e){Mt(t,e);function t(n,r){var i=this,a="Did not find expected keyword '"+iK(r)+"'";return i=e.call(this,n,a)||this,i}return t})(Dd),L_;(function(e){e[e.Null=0]="Null",e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Newline=10]="Newline",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationPoint=33]="ExclamationPoint",e[e.Hash=35]="Hash",e[e.Percent=37]="Percent",e[e.LeftParen=40]="LeftParen",e[e.RightParen=41]="RightParen",e[e.Plus=43]="Plus",e[e.Minus=45]="Minus",e[e.Dash=45]="Dash",e[e.Period=46]="Period",e[e.ForwardSlash=47]="ForwardSlash",e[e.Zero=48]="Zero",e[e.One=49]="One",e[e.Two=50]="Two",e[e.Three=51]="Three",e[e.Four=52]="Four",e[e.Five=53]="Five",e[e.Six=54]="Six",e[e.Seven=55]="Seven",e[e.Eight=56]="Eight",e[e.Nine=57]="Nine",e[e.LessThan=60]="LessThan",e[e.GreaterThan=62]="GreaterThan",e[e.A=65]="A",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.O=79]="O",e[e.P=80]="P",e[e.R=82]="R",e[e.LeftSquareBracket=91]="LeftSquareBracket",e[e.BackSlash=92]="BackSlash",e[e.RightSquareBracket=93]="RightSquareBracket",e[e.a=97]="a",e[e.b=98]="b",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.i=105]="i",e[e.j=106]="j",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.x=120]="x",e[e.LeftCurly=123]="LeftCurly",e[e.RightCurly=125]="RightCurly",e[e.Tilde=126]="Tilde"})(L_||(L_={}));const ze=L_;var xC={},uO;function Cd(){return uO||(uO=1,(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function n(a,o){return Object.prototype.hasOwnProperty.call(a,o)}e.assign=function(a){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var s=o.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var l in s)n(s,l)&&(a[l]=s[l])}}return a},e.shrinkBuf=function(a,o){return a.length===o?a:a.subarray?a.subarray(0,o):(a.length=o,a)};var r={arraySet:function(a,o,s,l,c){if(o.subarray&&a.subarray){a.set(o.subarray(s,s+l),c);return}for(var u=0;u<l;u++)a[c+u]=o[s+u]},flattenChunks:function(a){var o,s,l,c,u,d;for(l=0,o=0,s=a.length;o<s;o++)l+=a[o].length;for(d=new Uint8Array(l),c=0,o=0,s=a.length;o<s;o++)u=a[o],d.set(u,c),c+=u.length;return d}},i={arraySet:function(a,o,s,l,c){for(var u=0;u<l;u++)a[c+u]=o[s+u]},flattenChunks:function(a){return[].concat.apply([],a)}};e.setTyped=function(a){a?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)})(xC)),xC}var Qh={},wl={},sf={},dO;function iNe(){if(dO)return sf;dO=1;var e=Cd(),t=4,n=0,r=1,i=2;function a(U){for(var Ae=U.length;--Ae>=0;)U[Ae]=0}var o=0,s=1,l=2,c=3,u=258,d=29,h=256,f=h+1+d,g=30,y=19,v=2*f+1,A=15,w=16,S=7,_=256,E=16,T=17,D=18,I=[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],j=[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],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=512,W=new Array((f+2)*2);a(W);var P=new Array(g*2);a(P);var Z=new Array(B);a(Z);var Q=new Array(u-c+1);a(Q);var X=new Array(d);a(X);var q=new Array(g);a(q);function te(U,Ae,se,Te,$){this.static_tree=U,this.extra_bits=Ae,this.extra_base=se,this.elems=Te,this.max_length=$,this.has_stree=U&&U.length}var J,ee,le;function G(U,Ae){this.dyn_tree=U,this.max_code=0,this.stat_desc=Ae}function xe(U){return U<256?Z[U]:Z[256+(U>>>7)]}function ge(U,Ae){U.pending_buf[U.pending++]=Ae&255,U.pending_buf[U.pending++]=Ae>>>8&255}function ue(U,Ae,se){U.bi_valid>w-se?(U.bi_buf|=Ae<<U.bi_valid&65535,ge(U,U.bi_buf),U.bi_buf=Ae>>w-U.bi_valid,U.bi_valid+=se-w):(U.bi_buf|=Ae<<U.bi_valid&65535,U.bi_valid+=se)}function ce(U,Ae,se){ue(U,se[Ae*2],se[Ae*2+1])}function ye(U,Ae){var se=0;do se|=U&1,U>>>=1,se<<=1;while(--Ae>0);return se>>>1}function Fe(U){U.bi_valid===16?(ge(U,U.bi_buf),U.bi_buf=0,U.bi_valid=0):U.bi_valid>=8&&(U.pending_buf[U.pending++]=U.bi_buf&255,U.bi_buf>>=8,U.bi_valid-=8)}function Oe(U,Ae){var se=Ae.dyn_tree,Te=Ae.max_code,$=Ae.stat_desc.static_tree,de=Ae.stat_desc.has_stree,F=Ae.stat_desc.extra_bits,De=Ae.stat_desc.extra_base,He=Ae.stat_desc.max_length,b,ae,M,k,O,H,Ne=0;for(k=0;k<=A;k++)U.bl_count[k]=0;for(se[U.heap[U.heap_max]*2+1]=0,b=U.heap_max+1;b<v;b++)ae=U.heap[b],k=se[se[ae*2+1]*2+1]+1,k>He&&(k=He,Ne++),se[ae*2+1]=k,!(ae>Te)&&(U.bl_count[k]++,O=0,ae>=De&&(O=F[ae-De]),H=se[ae*2],U.opt_len+=H*(k+O),de&&(U.static_len+=H*($[ae*2+1]+O)));if(Ne!==0){do{for(k=He-1;U.bl_count[k]===0;)k--;U.bl_count[k]--,U.bl_count[k+1]+=2,U.bl_count[He]--,Ne-=2}while(Ne>0);for(k=He;k!==0;k--)for(ae=U.bl_count[k];ae!==0;)M=U.heap[--b],!(M>Te)&&(se[M*2+1]!==k&&(U.opt_len+=(k-se[M*2+1])*se[M*2],se[M*2+1]=k),ae--)}}function Le(U,Ae,se){var Te=new Array(A+1),$=0,de,F;for(de=1;de<=A;de++)Te[de]=$=$+se[de-1]<<1;for(F=0;F<=Ae;F++){var De=U[F*2+1];De!==0&&(U[F*2]=ye(Te[De]++,De))}}function Re(){var U,Ae,se,Te,$,de=new Array(A+1);for(se=0,Te=0;Te<d-1;Te++)for(X[Te]=se,U=0;U<1<<I[Te];U++)Q[se++]=Te;for(Q[se-1]=Te,$=0,Te=0;Te<16;Te++)for(q[Te]=$,U=0;U<1<<j[Te];U++)Z[$++]=Te;for($>>=7;Te<g;Te++)for(q[Te]=$<<7,U=0;U<1<<j[Te]-7;U++)Z[256+$++]=Te;for(Ae=0;Ae<=A;Ae++)de[Ae]=0;for(U=0;U<=143;)W[U*2+1]=8,U++,de[8]++;for(;U<=255;)W[U*2+1]=9,U++,de[9]++;for(;U<=279;)W[U*2+1]=7,U++,de[7]++;for(;U<=287;)W[U*2+1]=8,U++,de[8]++;for(Le(W,f+1,de),U=0;U<g;U++)P[U*2+1]=5,P[U*2]=ye(U,5);J=new te(W,I,h+1,f,A),ee=new te(P,j,0,g,A),le=new te(new Array(0),R,0,y,S)}function We(U){var Ae;for(Ae=0;Ae<f;Ae++)U.dyn_ltree[Ae*2]=0;for(Ae=0;Ae<g;Ae++)U.dyn_dtree[Ae*2]=0;for(Ae=0;Ae<y;Ae++)U.bl_tree[Ae*2]=0;U.dyn_ltree[_*2]=1,U.opt_len=U.static_len=0,U.last_lit=U.matches=0}function V(U){U.bi_valid>8?ge(U,U.bi_buf):U.bi_valid>0&&(U.pending_buf[U.pending++]=U.bi_buf),U.bi_buf=0,U.bi_valid=0}function ve(U,Ae,se,Te){V(U),ge(U,se),ge(U,~se),e.arraySet(U.pending_buf,U.window,Ae,se,U.pending),U.pending+=se}function oe(U,Ae,se,Te){var $=Ae*2,de=se*2;return U[$]<U[de]||U[$]===U[de]&&Te[Ae]<=Te[se]}function re(U,Ae,se){for(var Te=U.heap[se],$=se<<1;$<=U.heap_len&&($<U.heap_len&&oe(Ae,U.heap[$+1],U.heap[$],U.depth)&&$++,!oe(Ae,Te,U.heap[$],U.depth));)U.heap[se]=U.heap[$],se=$,$<<=1;U.heap[se]=Te}function ne(U,Ae,se){var Te,$,de=0,F,De;if(U.last_lit!==0)do Te=U.pending_buf[U.d_buf+de*2]<<8|U.pending_buf[U.d_buf+de*2+1],$=U.pending_buf[U.l_buf+de],de++,Te===0?ce(U,$,Ae):(F=Q[$],ce(U,F+h+1,Ae),De=I[F],De!==0&&($-=X[F],ue(U,$,De)),Te--,F=xe(Te),ce(U,F,se),De=j[F],De!==0&&(Te-=q[F],ue(U,Te,De)));while(de<U.last_lit);ce(U,_,Ae)}function be(U,Ae){var se=Ae.dyn_tree,Te=Ae.stat_desc.static_tree,$=Ae.stat_desc.has_stree,de=Ae.stat_desc.elems,F,De,He=-1,b;for(U.heap_len=0,U.heap_max=v,F=0;F<de;F++)se[F*2]!==0?(U.heap[++U.heap_len]=He=F,U.depth[F]=0):se[F*2+1]=0;for(;U.heap_len<2;)b=U.heap[++U.heap_len]=He<2?++He:0,se[b*2]=1,U.depth[b]=0,U.opt_len--,$&&(U.static_len-=Te[b*2+1]);for(Ae.max_code=He,F=U.heap_len>>1;F>=1;F--)re(U,se,F);b=de;do F=U.heap[1],U.heap[1]=U.heap[U.heap_len--],re(U,se,1),De=U.heap[1],U.heap[--U.heap_max]=F,U.heap[--U.heap_max]=De,se[b*2]=se[F*2]+se[De*2],U.depth[b]=(U.depth[F]>=U.depth[De]?U.depth[F]:U.depth[De])+1,se[F*2+1]=se[De*2+1]=b,U.heap[1]=b++,re(U,se,1);while(U.heap_len>=2);U.heap[--U.heap_max]=U.heap[1],Oe(U,Ae),Le(se,He,U.bl_count)}function Ue(U,Ae,se){var Te,$=-1,de,F=Ae[1],De=0,He=7,b=4;for(F===0&&(He=138,b=3),Ae[(se+1)*2+1]=65535,Te=0;Te<=se;Te++)de=F,F=Ae[(Te+1)*2+1],!(++De<He&&de===F)&&(De<b?U.bl_tree[de*2]+=De:de!==0?(de!==$&&U.bl_tree[de*2]++,U.bl_tree[E*2]++):De<=10?U.bl_tree[T*2]++:U.bl_tree[D*2]++,De=0,$=de,F===0?(He=138,b=3):de===F?(He=6,b=3):(He=7,b=4))}function Me(U,Ae,se){var Te,$=-1,de,F=Ae[1],De=0,He=7,b=4;for(F===0&&(He=138,b=3),Te=0;Te<=se;Te++)if(de=F,F=Ae[(Te+1)*2+1],!(++De<He&&de===F)){if(De<b)do ce(U,de,U.bl_tree);while(--De!==0);else de!==0?(de!==$&&(ce(U,de,U.bl_tree),De--),ce(U,E,U.bl_tree),ue(U,De-3,2)):De<=10?(ce(U,T,U.bl_tree),ue(U,De-3,3)):(ce(U,D,U.bl_tree),ue(U,De-11,7));De=0,$=de,F===0?(He=138,b=3):de===F?(He=6,b=3):(He=7,b=4)}}function Ee(U){var Ae;for(Ue(U,U.dyn_ltree,U.l_desc.max_code),Ue(U,U.dyn_dtree,U.d_desc.max_code),be(U,U.bl_desc),Ae=y-1;Ae>=3&&U.bl_tree[z[Ae]*2+1]===0;Ae--);return U.opt_len+=3*(Ae+1)+5+5+4,Ae}function Se(U,Ae,se,Te){var $;for(ue(U,Ae-257,5),ue(U,se-1,5),ue(U,Te-4,4),$=0;$<Te;$++)ue(U,U.bl_tree[z[$]*2+1],3);Me(U,U.dyn_ltree,Ae-1),Me(U,U.dyn_dtree,se-1)}function Ce(U){var Ae=4093624447,se;for(se=0;se<=31;se++,Ae>>>=1)if(Ae&1&&U.dyn_ltree[se*2]!==0)return n;if(U.dyn_ltree[18]!==0||U.dyn_ltree[20]!==0||U.dyn_ltree[26]!==0)return r;for(se=32;se<h;se++)if(U.dyn_ltree[se*2]!==0)return r;return n}var pe=!1;function ke(U){pe||(Re(),pe=!0),U.l_desc=new G(U.dyn_ltree,J),U.d_desc=new G(U.dyn_dtree,ee),U.bl_desc=new G(U.bl_tree,le),U.bi_buf=0,U.bi_valid=0,We(U)}function Ve(U,Ae,se,Te){ue(U,(o<<1)+(Te?1:0),3),ve(U,Ae,se)}function Xe(U){ue(U,s<<1,3),ce(U,_,W),Fe(U)}function it(U,Ae,se,Te){var $,de,F=0;U.level>0?(U.strm.data_type===i&&(U.strm.data_type=Ce(U)),be(U,U.l_desc),be(U,U.d_desc),F=Ee(U),$=U.opt_len+3+7>>>3,de=U.static_len+3+7>>>3,de<=$&&($=de)):$=de=se+5,se+4<=$&&Ae!==-1?Ve(U,Ae,se,Te):U.strategy===t||de===$?(ue(U,(s<<1)+(Te?1:0),3),ne(U,W,P)):(ue(U,(l<<1)+(Te?1:0),3),Se(U,U.l_desc.max_code+1,U.d_desc.max_code+1,F+1),ne(U,U.dyn_ltree,U.dyn_dtree)),We(U),Te&&V(U)}function et(U,Ae,se){return U.pending_buf[U.d_buf+U.last_lit*2]=Ae>>>8&255,U.pending_buf[U.d_buf+U.last_lit*2+1]=Ae&255,U.pending_buf[U.l_buf+U.last_lit]=se&255,U.last_lit++,Ae===0?U.dyn_ltree[se*2]++:(U.matches++,Ae--,U.dyn_ltree[(Q[se]+h+1)*2]++,U.dyn_dtree[xe(Ae)*2]++),U.last_lit===U.lit_bufsize-1}return sf._tr_init=ke,sf._tr_stored_block=Ve,sf._tr_flush_block=it,sf._tr_tally=et,sf._tr_align=Xe,sf}var bC,fO;function AK(){if(fO)return bC;fO=1;function e(t,n,r,i){for(var a=t&65535|0,o=t>>>16&65535|0,s=0;r!==0;){s=r>2e3?2e3:r,r-=s;do a=a+n[i++]|0,o=o+a|0;while(--s);a%=65521,o%=65521}return a|o<<16|0}return bC=e,bC}var AC,hO;function wK(){if(hO)return AC;hO=1;function e(){for(var r,i=[],a=0;a<256;a++){r=a;for(var o=0;o<8;o++)r=r&1?3988292384^r>>>1:r>>>1;i[a]=r}return i}var t=e();function n(r,i,a,o){var s=t,l=o+a;r^=-1;for(var c=o;c<l;c++)r=r>>>8^s[(r^i[c])&255];return r^-1}return AC=n,AC}var wC,pO;function OF(){return pO||(pO=1,wC={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"}),wC}var gO;function aNe(){if(gO)return wl;gO=1;var e=Cd(),t=iNe(),n=AK(),r=wK(),i=OF(),a=0,o=1,s=3,l=4,c=5,u=0,d=1,h=-2,f=-3,g=-5,y=-1,v=1,A=2,w=3,S=4,_=0,E=2,T=8,D=9,I=15,j=8,R=29,z=256,B=z+1+R,W=30,P=19,Z=2*B+1,Q=15,X=3,q=258,te=q+X+1,J=32,ee=42,le=69,G=73,xe=91,ge=103,ue=113,ce=666,ye=1,Fe=2,Oe=3,Le=4,Re=3;function We(b,ae){return b.msg=i[ae],ae}function V(b){return(b<<1)-(b>4?9:0)}function ve(b){for(var ae=b.length;--ae>=0;)b[ae]=0}function oe(b){var ae=b.state,M=ae.pending;M>b.avail_out&&(M=b.avail_out),M!==0&&(e.arraySet(b.output,ae.pending_buf,ae.pending_out,M,b.next_out),b.next_out+=M,ae.pending_out+=M,b.total_out+=M,b.avail_out-=M,ae.pending-=M,ae.pending===0&&(ae.pending_out=0))}function re(b,ae){t._tr_flush_block(b,b.block_start>=0?b.block_start:-1,b.strstart-b.block_start,ae),b.block_start=b.strstart,oe(b.strm)}function ne(b,ae){b.pending_buf[b.pending++]=ae}function be(b,ae){b.pending_buf[b.pending++]=ae>>>8&255,b.pending_buf[b.pending++]=ae&255}function Ue(b,ae,M,k){var O=b.avail_in;return O>k&&(O=k),O===0?0:(b.avail_in-=O,e.arraySet(ae,b.input,b.next_in,O,M),b.state.wrap===1?b.adler=n(b.adler,ae,O,M):b.state.wrap===2&&(b.adler=r(b.adler,ae,O,M)),b.next_in+=O,b.total_in+=O,O)}function Me(b,ae){var M=b.max_chain_length,k=b.strstart,O,H,Ne=b.prev_length,_e=b.nice_match,Pe=b.strstart>b.w_size-te?b.strstart-(b.w_size-te):0,Ze=b.window,ut=b.w_mask,st=b.prev,Je=b.strstart+q,pt=Ze[k+Ne-1],xt=Ze[k+Ne];b.prev_length>=b.good_match&&(M>>=2),_e>b.lookahead&&(_e=b.lookahead);do if(O=ae,!(Ze[O+Ne]!==xt||Ze[O+Ne-1]!==pt||Ze[O]!==Ze[k]||Ze[++O]!==Ze[k+1])){k+=2,O++;do;while(Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&k<Je);if(H=q-(Je-k),k=Je-q,H>Ne){if(b.match_start=ae,Ne=H,H>=_e)break;pt=Ze[k+Ne-1],xt=Ze[k+Ne]}}while((ae=st[ae&ut])>Pe&&--M!==0);return Ne<=b.lookahead?Ne:b.lookahead}function Ee(b){var ae=b.w_size,M,k,O,H,Ne;do{if(H=b.window_size-b.lookahead-b.strstart,b.strstart>=ae+(ae-te)){e.arraySet(b.window,b.window,ae,ae,0),b.match_start-=ae,b.strstart-=ae,b.block_start-=ae,k=b.hash_size,M=k;do O=b.head[--M],b.head[M]=O>=ae?O-ae:0;while(--k);k=ae,M=k;do O=b.prev[--M],b.prev[M]=O>=ae?O-ae:0;while(--k);H+=ae}if(b.strm.avail_in===0)break;if(k=Ue(b.strm,b.window,b.strstart+b.lookahead,H),b.lookahead+=k,b.lookahead+b.insert>=X)for(Ne=b.strstart-b.insert,b.ins_h=b.window[Ne],b.ins_h=(b.ins_h<<b.hash_shift^b.window[Ne+1])&b.hash_mask;b.insert&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[Ne+X-1])&b.hash_mask,b.prev[Ne&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=Ne,Ne++,b.insert--,!(b.lookahead+b.insert<X)););}while(b.lookahead<te&&b.strm.avail_in!==0)}function Se(b,ae){var M=65535;for(M>b.pending_buf_size-5&&(M=b.pending_buf_size-5);;){if(b.lookahead<=1){if(Ee(b),b.lookahead===0&&ae===a)return ye;if(b.lookahead===0)break}b.strstart+=b.lookahead,b.lookahead=0;var k=b.block_start+M;if((b.strstart===0||b.strstart>=k)&&(b.lookahead=b.strstart-k,b.strstart=k,re(b,!1),b.strm.avail_out===0)||b.strstart-b.block_start>=b.w_size-te&&(re(b,!1),b.strm.avail_out===0))return ye}return b.insert=0,ae===l?(re(b,!0),b.strm.avail_out===0?Oe:Le):(b.strstart>b.block_start&&(re(b,!1),b.strm.avail_out===0),ye)}function Ce(b,ae){for(var M,k;;){if(b.lookahead<te){if(Ee(b),b.lookahead<te&&ae===a)return ye;if(b.lookahead===0)break}if(M=0,b.lookahead>=X&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+X-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),M!==0&&b.strstart-M<=b.w_size-te&&(b.match_length=Me(b,M)),b.match_length>=X)if(k=t._tr_tally(b,b.strstart-b.match_start,b.match_length-X),b.lookahead-=b.match_length,b.match_length<=b.max_lazy_match&&b.lookahead>=X){b.match_length--;do b.strstart++,b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+X-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart;while(--b.match_length!==0);b.strstart++}else b.strstart+=b.match_length,b.match_length=0,b.ins_h=b.window[b.strstart],b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+1])&b.hash_mask;else k=t._tr_tally(b,0,b.window[b.strstart]),b.lookahead--,b.strstart++;if(k&&(re(b,!1),b.strm.avail_out===0))return ye}return b.insert=b.strstart<X-1?b.strstart:X-1,ae===l?(re(b,!0),b.strm.avail_out===0?Oe:Le):b.last_lit&&(re(b,!1),b.strm.avail_out===0)?ye:Fe}function pe(b,ae){for(var M,k,O;;){if(b.lookahead<te){if(Ee(b),b.lookahead<te&&ae===a)return ye;if(b.lookahead===0)break}if(M=0,b.lookahead>=X&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+X-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),b.prev_length=b.match_length,b.prev_match=b.match_start,b.match_length=X-1,M!==0&&b.prev_length<b.max_lazy_match&&b.strstart-M<=b.w_size-te&&(b.match_length=Me(b,M),b.match_length<=5&&(b.strategy===v||b.match_length===X&&b.strstart-b.match_start>4096)&&(b.match_length=X-1)),b.prev_length>=X&&b.match_length<=b.prev_length){O=b.strstart+b.lookahead-X,k=t._tr_tally(b,b.strstart-1-b.prev_match,b.prev_length-X),b.lookahead-=b.prev_length-1,b.prev_length-=2;do++b.strstart<=O&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+X-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart);while(--b.prev_length!==0);if(b.match_available=0,b.match_length=X-1,b.strstart++,k&&(re(b,!1),b.strm.avail_out===0))return ye}else if(b.match_available){if(k=t._tr_tally(b,0,b.window[b.strstart-1]),k&&re(b,!1),b.strstart++,b.lookahead--,b.strm.avail_out===0)return ye}else b.match_available=1,b.strstart++,b.lookahead--}return b.match_available&&(k=t._tr_tally(b,0,b.window[b.strstart-1]),b.match_available=0),b.insert=b.strstart<X-1?b.strstart:X-1,ae===l?(re(b,!0),b.strm.avail_out===0?Oe:Le):b.last_lit&&(re(b,!1),b.strm.avail_out===0)?ye:Fe}function ke(b,ae){for(var M,k,O,H,Ne=b.window;;){if(b.lookahead<=q){if(Ee(b),b.lookahead<=q&&ae===a)return ye;if(b.lookahead===0)break}if(b.match_length=0,b.lookahead>=X&&b.strstart>0&&(O=b.strstart-1,k=Ne[O],k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O])){H=b.strstart+q;do;while(k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&O<H);b.match_length=q-(H-O),b.match_length>b.lookahead&&(b.match_length=b.lookahead)}if(b.match_length>=X?(M=t._tr_tally(b,1,b.match_length-X),b.lookahead-=b.match_length,b.strstart+=b.match_length,b.match_length=0):(M=t._tr_tally(b,0,b.window[b.strstart]),b.lookahead--,b.strstart++),M&&(re(b,!1),b.strm.avail_out===0))return ye}return b.insert=0,ae===l?(re(b,!0),b.strm.avail_out===0?Oe:Le):b.last_lit&&(re(b,!1),b.strm.avail_out===0)?ye:Fe}function Ve(b,ae){for(var M;;){if(b.lookahead===0&&(Ee(b),b.lookahead===0)){if(ae===a)return ye;break}if(b.match_length=0,M=t._tr_tally(b,0,b.window[b.strstart]),b.lookahead--,b.strstart++,M&&(re(b,!1),b.strm.avail_out===0))return ye}return b.insert=0,ae===l?(re(b,!0),b.strm.avail_out===0?Oe:Le):b.last_lit&&(re(b,!1),b.strm.avail_out===0)?ye:Fe}function Xe(b,ae,M,k,O){this.good_length=b,this.max_lazy=ae,this.nice_length=M,this.max_chain=k,this.func=O}var it;it=[new Xe(0,0,0,0,Se),new Xe(4,4,8,4,Ce),new Xe(4,5,16,8,Ce),new Xe(4,6,32,32,Ce),new Xe(4,4,16,16,pe),new Xe(8,16,32,32,pe),new Xe(8,16,128,128,pe),new Xe(8,32,128,256,pe),new Xe(32,128,258,1024,pe),new Xe(32,258,258,4096,pe)];function et(b){b.window_size=2*b.w_size,ve(b.head),b.max_lazy_match=it[b.level].max_lazy,b.good_match=it[b.level].good_length,b.nice_match=it[b.level].nice_length,b.max_chain_length=it[b.level].max_chain,b.strstart=0,b.block_start=0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=X-1,b.match_available=0,b.ins_h=0}function U(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=T,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(Z*2),this.dyn_dtree=new e.Buf16((2*W+1)*2),this.bl_tree=new e.Buf16((2*P+1)*2),ve(this.dyn_ltree),ve(this.dyn_dtree),ve(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(Q+1),this.heap=new e.Buf16(2*B+1),ve(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*B+1),ve(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ae(b){var ae;return!b||!b.state?We(b,h):(b.total_in=b.total_out=0,b.data_type=E,ae=b.state,ae.pending=0,ae.pending_out=0,ae.wrap<0&&(ae.wrap=-ae.wrap),ae.status=ae.wrap?ee:ue,b.adler=ae.wrap===2?0:1,ae.last_flush=a,t._tr_init(ae),u)}function se(b){var ae=Ae(b);return ae===u&&et(b.state),ae}function Te(b,ae){return!b||!b.state||b.state.wrap!==2?h:(b.state.gzhead=ae,u)}function $(b,ae,M,k,O,H){if(!b)return h;var Ne=1;if(ae===y&&(ae=6),k<0?(Ne=0,k=-k):k>15&&(Ne=2,k-=16),O<1||O>D||M!==T||k<8||k>15||ae<0||ae>9||H<0||H>S)return We(b,h);k===8&&(k=9);var _e=new U;return b.state=_e,_e.strm=b,_e.wrap=Ne,_e.gzhead=null,_e.w_bits=k,_e.w_size=1<<_e.w_bits,_e.w_mask=_e.w_size-1,_e.hash_bits=O+7,_e.hash_size=1<<_e.hash_bits,_e.hash_mask=_e.hash_size-1,_e.hash_shift=~~((_e.hash_bits+X-1)/X),_e.window=new e.Buf8(_e.w_size*2),_e.head=new e.Buf16(_e.hash_size),_e.prev=new e.Buf16(_e.w_size),_e.lit_bufsize=1<<O+6,_e.pending_buf_size=_e.lit_bufsize*4,_e.pending_buf=new e.Buf8(_e.pending_buf_size),_e.d_buf=1*_e.lit_bufsize,_e.l_buf=3*_e.lit_bufsize,_e.level=ae,_e.strategy=H,_e.method=M,se(b)}function de(b,ae){return $(b,ae,T,I,j,_)}function F(b,ae){var M,k,O,H;if(!b||!b.state||ae>c||ae<0)return b?We(b,h):h;if(k=b.state,!b.output||!b.input&&b.avail_in!==0||k.status===ce&&ae!==l)return We(b,b.avail_out===0?g:h);if(k.strm=b,M=k.last_flush,k.last_flush=ae,k.status===ee)if(k.wrap===2)b.adler=0,ne(k,31),ne(k,139),ne(k,8),k.gzhead?(ne(k,(k.gzhead.text?1:0)+(k.gzhead.hcrc?2:0)+(k.gzhead.extra?4:0)+(k.gzhead.name?8:0)+(k.gzhead.comment?16:0)),ne(k,k.gzhead.time&255),ne(k,k.gzhead.time>>8&255),ne(k,k.gzhead.time>>16&255),ne(k,k.gzhead.time>>24&255),ne(k,k.level===9?2:k.strategy>=A||k.level<2?4:0),ne(k,k.gzhead.os&255),k.gzhead.extra&&k.gzhead.extra.length&&(ne(k,k.gzhead.extra.length&255),ne(k,k.gzhead.extra.length>>8&255)),k.gzhead.hcrc&&(b.adler=r(b.adler,k.pending_buf,k.pending,0)),k.gzindex=0,k.status=le):(ne(k,0),ne(k,0),ne(k,0),ne(k,0),ne(k,0),ne(k,k.level===9?2:k.strategy>=A||k.level<2?4:0),ne(k,Re),k.status=ue);else{var Ne=T+(k.w_bits-8<<4)<<8,_e=-1;k.strategy>=A||k.level<2?_e=0:k.level<6?_e=1:k.level===6?_e=2:_e=3,Ne|=_e<<6,k.strstart!==0&&(Ne|=J),Ne+=31-Ne%31,k.status=ue,be(k,Ne),k.strstart!==0&&(be(k,b.adler>>>16),be(k,b.adler&65535)),b.adler=1}if(k.status===le)if(k.gzhead.extra){for(O=k.pending;k.gzindex<(k.gzhead.extra.length&65535)&&!(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),oe(b),O=k.pending,k.pending===k.pending_buf_size));)ne(k,k.gzhead.extra[k.gzindex]&255),k.gzindex++;k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),k.gzindex===k.gzhead.extra.length&&(k.gzindex=0,k.status=G)}else k.status=G;if(k.status===G)if(k.gzhead.name){O=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),oe(b),O=k.pending,k.pending===k.pending_buf_size)){H=1;break}k.gzindex<k.gzhead.name.length?H=k.gzhead.name.charCodeAt(k.gzindex++)&255:H=0,ne(k,H)}while(H!==0);k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),H===0&&(k.gzindex=0,k.status=xe)}else k.status=xe;if(k.status===xe)if(k.gzhead.comment){O=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),oe(b),O=k.pending,k.pending===k.pending_buf_size)){H=1;break}k.gzindex<k.gzhead.comment.length?H=k.gzhead.comment.charCodeAt(k.gzindex++)&255:H=0,ne(k,H)}while(H!==0);k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),H===0&&(k.status=ge)}else k.status=ge;if(k.status===ge&&(k.gzhead.hcrc?(k.pending+2>k.pending_buf_size&&oe(b),k.pending+2<=k.pending_buf_size&&(ne(k,b.adler&255),ne(k,b.adler>>8&255),b.adler=0,k.status=ue)):k.status=ue),k.pending!==0){if(oe(b),b.avail_out===0)return k.last_flush=-1,u}else if(b.avail_in===0&&V(ae)<=V(M)&&ae!==l)return We(b,g);if(k.status===ce&&b.avail_in!==0)return We(b,g);if(b.avail_in!==0||k.lookahead!==0||ae!==a&&k.status!==ce){var Pe=k.strategy===A?Ve(k,ae):k.strategy===w?ke(k,ae):it[k.level].func(k,ae);if((Pe===Oe||Pe===Le)&&(k.status=ce),Pe===ye||Pe===Oe)return b.avail_out===0&&(k.last_flush=-1),u;if(Pe===Fe&&(ae===o?t._tr_align(k):ae!==c&&(t._tr_stored_block(k,0,0,!1),ae===s&&(ve(k.head),k.lookahead===0&&(k.strstart=0,k.block_start=0,k.insert=0))),oe(b),b.avail_out===0))return k.last_flush=-1,u}return ae!==l?u:k.wrap<=0?d:(k.wrap===2?(ne(k,b.adler&255),ne(k,b.adler>>8&255),ne(k,b.adler>>16&255),ne(k,b.adler>>24&255),ne(k,b.total_in&255),ne(k,b.total_in>>8&255),ne(k,b.total_in>>16&255),ne(k,b.total_in>>24&255)):(be(k,b.adler>>>16),be(k,b.adler&65535)),oe(b),k.wrap>0&&(k.wrap=-k.wrap),k.pending!==0?u:d)}function De(b){var ae;return!b||!b.state?h:(ae=b.state.status,ae!==ee&&ae!==le&&ae!==G&&ae!==xe&&ae!==ge&&ae!==ue&&ae!==ce?We(b,h):(b.state=null,ae===ue?We(b,f):u))}function He(b,ae){var M=ae.length,k,O,H,Ne,_e,Pe,Ze,ut;if(!b||!b.state||(k=b.state,Ne=k.wrap,Ne===2||Ne===1&&k.status!==ee||k.lookahead))return h;for(Ne===1&&(b.adler=n(b.adler,ae,M,0)),k.wrap=0,M>=k.w_size&&(Ne===0&&(ve(k.head),k.strstart=0,k.block_start=0,k.insert=0),ut=new e.Buf8(k.w_size),e.arraySet(ut,ae,M-k.w_size,k.w_size,0),ae=ut,M=k.w_size),_e=b.avail_in,Pe=b.next_in,Ze=b.input,b.avail_in=M,b.next_in=0,b.input=ae,Ee(k);k.lookahead>=X;){O=k.strstart,H=k.lookahead-(X-1);do k.ins_h=(k.ins_h<<k.hash_shift^k.window[O+X-1])&k.hash_mask,k.prev[O&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=O,O++;while(--H);k.strstart=O,k.lookahead=X-1,Ee(k)}return k.strstart+=k.lookahead,k.block_start=k.strstart,k.insert=k.lookahead,k.lookahead=0,k.match_length=k.prev_length=X-1,k.match_available=0,b.next_in=Pe,b.input=Ze,b.avail_in=_e,k.wrap=Ne,u}return wl.deflateInit=de,wl.deflateInit2=$,wl.deflateReset=se,wl.deflateResetKeep=Ae,wl.deflateSetHeader=Te,wl.deflate=F,wl.deflateEnd=De,wl.deflateSetDictionary=He,wl.deflateInfo="pako deflate (from Nodeca project)",wl}var lf={},mO;function SK(){if(mO)return lf;mO=1;var e=Cd(),t=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{t=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var r=new e.Buf8(256),i=0;i<256;i++)r[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;r[254]=r[254]=1,lf.string2buf=function(o){var s,l,c,u,d,h=o.length,f=0;for(u=0;u<h;u++)l=o.charCodeAt(u),(l&64512)===55296&&u+1<h&&(c=o.charCodeAt(u+1),(c&64512)===56320&&(l=65536+(l-55296<<10)+(c-56320),u++)),f+=l<128?1:l<2048?2:l<65536?3:4;for(s=new e.Buf8(f),d=0,u=0;d<f;u++)l=o.charCodeAt(u),(l&64512)===55296&&u+1<h&&(c=o.charCodeAt(u+1),(c&64512)===56320&&(l=65536+(l-55296<<10)+(c-56320),u++)),l<128?s[d++]=l:l<2048?(s[d++]=192|l>>>6,s[d++]=128|l&63):l<65536?(s[d++]=224|l>>>12,s[d++]=128|l>>>6&63,s[d++]=128|l&63):(s[d++]=240|l>>>18,s[d++]=128|l>>>12&63,s[d++]=128|l>>>6&63,s[d++]=128|l&63);return s};function a(o,s){if(s<65534&&(o.subarray&&n||!o.subarray&&t))return String.fromCharCode.apply(null,e.shrinkBuf(o,s));for(var l="",c=0;c<s;c++)l+=String.fromCharCode(o[c]);return l}return lf.buf2binstring=function(o){return a(o,o.length)},lf.binstring2buf=function(o){for(var s=new e.Buf8(o.length),l=0,c=s.length;l<c;l++)s[l]=o.charCodeAt(l);return s},lf.buf2string=function(o,s){var l,c,u,d,h=s||o.length,f=new Array(h*2);for(c=0,l=0;l<h;){if(u=o[l++],u<128){f[c++]=u;continue}if(d=r[u],d>4){f[c++]=65533,l+=d-1;continue}for(u&=d===2?31:d===3?15:7;d>1&&l<h;)u=u<<6|o[l++]&63,d--;if(d>1){f[c++]=65533;continue}u<65536?f[c++]=u:(u-=65536,f[c++]=55296|u>>10&1023,f[c++]=56320|u&1023)}return a(f,c)},lf.utf8border=function(o,s){var l;for(s=s||o.length,s>o.length&&(s=o.length),l=s-1;l>=0&&(o[l]&192)===128;)l--;return l<0||l===0?s:l+r[o[l]]>s?l:s},lf}var SC,yO;function kK(){if(yO)return SC;yO=1;function e(){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}return SC=e,SC}var vO;function oNe(){if(vO)return Qh;vO=1;var e=aNe(),t=Cd(),n=SK(),r=OF(),i=kK(),a=Object.prototype.toString,o=0,s=4,l=0,c=1,u=2,d=-1,h=0,f=8;function g(w){if(!(this instanceof g))return new g(w);this.options=t.assign({level:d,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},w||{});var S=this.options;S.raw&&S.windowBits>0?S.windowBits=-S.windowBits:S.gzip&&S.windowBits>0&&S.windowBits<16&&(S.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var _=e.deflateInit2(this.strm,S.level,S.method,S.windowBits,S.memLevel,S.strategy);if(_!==l)throw new Error(r[_]);if(S.header&&e.deflateSetHeader(this.strm,S.header),S.dictionary){var E;if(typeof S.dictionary=="string"?E=n.string2buf(S.dictionary):a.call(S.dictionary)==="[object ArrayBuffer]"?E=new Uint8Array(S.dictionary):E=S.dictionary,_=e.deflateSetDictionary(this.strm,E),_!==l)throw new Error(r[_]);this._dict_set=!0}}g.prototype.push=function(w,S){var _=this.strm,E=this.options.chunkSize,T,D;if(this.ended)return!1;D=S===~~S?S:S===!0?s:o,typeof w=="string"?_.input=n.string2buf(w):a.call(w)==="[object ArrayBuffer]"?_.input=new Uint8Array(w):_.input=w,_.next_in=0,_.avail_in=_.input.length;do{if(_.avail_out===0&&(_.output=new t.Buf8(E),_.next_out=0,_.avail_out=E),T=e.deflate(_,D),T!==c&&T!==l)return this.onEnd(T),this.ended=!0,!1;(_.avail_out===0||_.avail_in===0&&(D===s||D===u))&&(this.options.to==="string"?this.onData(n.buf2binstring(t.shrinkBuf(_.output,_.next_out))):this.onData(t.shrinkBuf(_.output,_.next_out)))}while((_.avail_in>0||_.avail_out===0)&&T!==c);return D===s?(T=e.deflateEnd(this.strm),this.onEnd(T),this.ended=!0,T===l):(D===u&&(this.onEnd(l),_.avail_out=0),!0)},g.prototype.onData=function(w){this.chunks.push(w)},g.prototype.onEnd=function(w){w===l&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=w,this.msg=this.strm.msg};function y(w,S){var _=new g(S);if(_.push(w,!0),_.err)throw _.msg||r[_.err];return _.result}function v(w,S){return S=S||{},S.raw=!0,y(w,S)}function A(w,S){return S=S||{},S.gzip=!0,y(w,S)}return Qh.Deflate=g,Qh.deflate=y,Qh.deflateRaw=v,Qh.gzip=A,Qh}var ep={},Ls={},kC,xO;function sNe(){if(xO)return kC;xO=1;var e=30,t=12;return kC=function(r,i){var a,o,s,l,c,u,d,h,f,g,y,v,A,w,S,_,E,T,D,I,j,R,z,B,W;a=r.state,o=r.next_in,B=r.input,s=o+(r.avail_in-5),l=r.next_out,W=r.output,c=l-(i-r.avail_out),u=l+(r.avail_out-257),d=a.dmax,h=a.wsize,f=a.whave,g=a.wnext,y=a.window,v=a.hold,A=a.bits,w=a.lencode,S=a.distcode,_=(1<<a.lenbits)-1,E=(1<<a.distbits)-1;e:do{A<15&&(v+=B[o++]<<A,A+=8,v+=B[o++]<<A,A+=8),T=w[v&_];t:for(;;){if(D=T>>>24,v>>>=D,A-=D,D=T>>>16&255,D===0)W[l++]=T&65535;else if(D&16){I=T&65535,D&=15,D&&(A<D&&(v+=B[o++]<<A,A+=8),I+=v&(1<<D)-1,v>>>=D,A-=D),A<15&&(v+=B[o++]<<A,A+=8,v+=B[o++]<<A,A+=8),T=S[v&E];n:for(;;){if(D=T>>>24,v>>>=D,A-=D,D=T>>>16&255,D&16){if(j=T&65535,D&=15,A<D&&(v+=B[o++]<<A,A+=8,A<D&&(v+=B[o++]<<A,A+=8)),j+=v&(1<<D)-1,j>d){r.msg="invalid distance too far back",a.mode=e;break e}if(v>>>=D,A-=D,D=l-c,j>D){if(D=j-D,D>f&&a.sane){r.msg="invalid distance too far back",a.mode=e;break e}if(R=0,z=y,g===0){if(R+=h-D,D<I){I-=D;do W[l++]=y[R++];while(--D);R=l-j,z=W}}else if(g<D){if(R+=h+g-D,D-=g,D<I){I-=D;do W[l++]=y[R++];while(--D);if(R=0,g<I){D=g,I-=D;do W[l++]=y[R++];while(--D);R=l-j,z=W}}}else if(R+=g-D,D<I){I-=D;do W[l++]=y[R++];while(--D);R=l-j,z=W}for(;I>2;)W[l++]=z[R++],W[l++]=z[R++],W[l++]=z[R++],I-=3;I&&(W[l++]=z[R++],I>1&&(W[l++]=z[R++]))}else{R=l-j;do W[l++]=W[R++],W[l++]=W[R++],W[l++]=W[R++],I-=3;while(I>2);I&&(W[l++]=W[R++],I>1&&(W[l++]=W[R++]))}}else if((D&64)===0){T=S[(T&65535)+(v&(1<<D)-1)];continue n}else{r.msg="invalid distance code",a.mode=e;break e}break}}else if((D&64)===0){T=w[(T&65535)+(v&(1<<D)-1)];continue t}else if(D&32){a.mode=t;break e}else{r.msg="invalid literal/length code",a.mode=e;break e}break}}while(o<s&&l<u);I=A>>3,o-=I,A-=I<<3,v&=(1<<A)-1,r.next_in=o,r.next_out=l,r.avail_in=o<s?5+(s-o):5-(o-s),r.avail_out=l<u?257+(u-l):257-(l-u),a.hold=v,a.bits=A},kC}var DC,bO;function lNe(){if(bO)return DC;bO=1;var e=Cd(),t=15,n=852,r=592,i=0,a=1,o=2,s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return DC=function(h,f,g,y,v,A,w,S){var _=S.bits,E=0,T=0,D=0,I=0,j=0,R=0,z=0,B=0,W=0,P=0,Z,Q,X,q,te,J=null,ee=0,le,G=new e.Buf16(t+1),xe=new e.Buf16(t+1),ge=null,ue=0,ce,ye,Fe;for(E=0;E<=t;E++)G[E]=0;for(T=0;T<y;T++)G[f[g+T]]++;for(j=_,I=t;I>=1&&G[I]===0;I--);if(j>I&&(j=I),I===0)return v[A++]=1<<24|64<<16|0,v[A++]=1<<24|64<<16|0,S.bits=1,0;for(D=1;D<I&&G[D]===0;D++);for(j<D&&(j=D),B=1,E=1;E<=t;E++)if(B<<=1,B-=G[E],B<0)return-1;if(B>0&&(h===i||I!==1))return-1;for(xe[1]=0,E=1;E<t;E++)xe[E+1]=xe[E]+G[E];for(T=0;T<y;T++)f[g+T]!==0&&(w[xe[f[g+T]]++]=T);if(h===i?(J=ge=w,le=19):h===a?(J=s,ee-=257,ge=l,ue-=257,le=256):(J=c,ge=u,le=-1),P=0,T=0,E=D,te=A,R=j,z=0,X=-1,W=1<<j,q=W-1,h===a&&W>n||h===o&&W>r)return 1;for(;;){ce=E-z,w[T]<le?(ye=0,Fe=w[T]):w[T]>le?(ye=ge[ue+w[T]],Fe=J[ee+w[T]]):(ye=96,Fe=0),Z=1<<E-z,Q=1<<R,D=Q;do Q-=Z,v[te+(P>>z)+Q]=ce<<24|ye<<16|Fe|0;while(Q!==0);for(Z=1<<E-1;P&Z;)Z>>=1;if(Z!==0?(P&=Z-1,P+=Z):P=0,T++,--G[E]===0){if(E===I)break;E=f[g+w[T]]}if(E>j&&(P&q)!==X){for(z===0&&(z=j),te+=D,R=E-z,B=1<<R;R+z<I&&(B-=G[R+z],!(B<=0));)R++,B<<=1;if(W+=1<<R,h===a&&W>n||h===o&&W>r)return 1;X=P&q,v[X]=j<<24|R<<16|te-A|0}}return P!==0&&(v[te+P]=E-z<<24|64<<16|0),S.bits=j,0},DC}var AO;function cNe(){if(AO)return Ls;AO=1;var e=Cd(),t=AK(),n=wK(),r=sNe(),i=lNe(),a=0,o=1,s=2,l=4,c=5,u=6,d=0,h=1,f=2,g=-2,y=-3,v=-4,A=-5,w=8,S=1,_=2,E=3,T=4,D=5,I=6,j=7,R=8,z=9,B=10,W=11,P=12,Z=13,Q=14,X=15,q=16,te=17,J=18,ee=19,le=20,G=21,xe=22,ge=23,ue=24,ce=25,ye=26,Fe=27,Oe=28,Le=29,Re=30,We=31,V=32,ve=852,oe=592,re=15,ne=re;function be($){return($>>>24&255)+($>>>8&65280)+(($&65280)<<8)+(($&255)<<24)}function Ue(){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 e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Me($){var de;return!$||!$.state?g:(de=$.state,$.total_in=$.total_out=de.total=0,$.msg="",de.wrap&&($.adler=de.wrap&1),de.mode=S,de.last=0,de.havedict=0,de.dmax=32768,de.head=null,de.hold=0,de.bits=0,de.lencode=de.lendyn=new e.Buf32(ve),de.distcode=de.distdyn=new e.Buf32(oe),de.sane=1,de.back=-1,d)}function Ee($){var de;return!$||!$.state?g:(de=$.state,de.wsize=0,de.whave=0,de.wnext=0,Me($))}function Se($,de){var F,De;return!$||!$.state||(De=$.state,de<0?(F=0,de=-de):(F=(de>>4)+1,de<48&&(de&=15)),de&&(de<8||de>15))?g:(De.window!==null&&De.wbits!==de&&(De.window=null),De.wrap=F,De.wbits=de,Ee($))}function Ce($,de){var F,De;return $?(De=new Ue,$.state=De,De.window=null,F=Se($,de),F!==d&&($.state=null),F):g}function pe($){return Ce($,ne)}var ke=!0,Ve,Xe;function it($){if(ke){var de;for(Ve=new e.Buf32(512),Xe=new e.Buf32(32),de=0;de<144;)$.lens[de++]=8;for(;de<256;)$.lens[de++]=9;for(;de<280;)$.lens[de++]=7;for(;de<288;)$.lens[de++]=8;for(i(o,$.lens,0,288,Ve,0,$.work,{bits:9}),de=0;de<32;)$.lens[de++]=5;i(s,$.lens,0,32,Xe,0,$.work,{bits:5}),ke=!1}$.lencode=Ve,$.lenbits=9,$.distcode=Xe,$.distbits=5}function et($,de,F,De){var He,b=$.state;return b.window===null&&(b.wsize=1<<b.wbits,b.wnext=0,b.whave=0,b.window=new e.Buf8(b.wsize)),De>=b.wsize?(e.arraySet(b.window,de,F-b.wsize,b.wsize,0),b.wnext=0,b.whave=b.wsize):(He=b.wsize-b.wnext,He>De&&(He=De),e.arraySet(b.window,de,F-De,He,b.wnext),De-=He,De?(e.arraySet(b.window,de,F-De,De,0),b.wnext=De,b.whave=b.wsize):(b.wnext+=He,b.wnext===b.wsize&&(b.wnext=0),b.whave<b.wsize&&(b.whave+=He))),0}function U($,de){var F,De,He,b,ae,M,k,O,H,Ne,_e,Pe,Ze,ut,st=0,Je,pt,xt,dt,rn,Yn,Lt,Xt,qt=new e.Buf8(4),Tn,Ye,ct=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!$||!$.state||!$.output||!$.input&&$.avail_in!==0)return g;F=$.state,F.mode===P&&(F.mode=Z),ae=$.next_out,He=$.output,k=$.avail_out,b=$.next_in,De=$.input,M=$.avail_in,O=F.hold,H=F.bits,Ne=M,_e=k,Xt=d;e:for(;;)switch(F.mode){case S:if(F.wrap===0){F.mode=Z;break}for(;H<16;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(F.wrap&2&&O===35615){F.check=0,qt[0]=O&255,qt[1]=O>>>8&255,F.check=n(F.check,qt,2,0),O=0,H=0,F.mode=_;break}if(F.flags=0,F.head&&(F.head.done=!1),!(F.wrap&1)||(((O&255)<<8)+(O>>8))%31){$.msg="incorrect header check",F.mode=Re;break}if((O&15)!==w){$.msg="unknown compression method",F.mode=Re;break}if(O>>>=4,H-=4,Lt=(O&15)+8,F.wbits===0)F.wbits=Lt;else if(Lt>F.wbits){$.msg="invalid window size",F.mode=Re;break}F.dmax=1<<Lt,$.adler=F.check=1,F.mode=O&512?B:P,O=0,H=0;break;case _:for(;H<16;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(F.flags=O,(F.flags&255)!==w){$.msg="unknown compression method",F.mode=Re;break}if(F.flags&57344){$.msg="unknown header flags set",F.mode=Re;break}F.head&&(F.head.text=O>>8&1),F.flags&512&&(qt[0]=O&255,qt[1]=O>>>8&255,F.check=n(F.check,qt,2,0)),O=0,H=0,F.mode=E;case E:for(;H<32;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.head&&(F.head.time=O),F.flags&512&&(qt[0]=O&255,qt[1]=O>>>8&255,qt[2]=O>>>16&255,qt[3]=O>>>24&255,F.check=n(F.check,qt,4,0)),O=0,H=0,F.mode=T;case T:for(;H<16;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.head&&(F.head.xflags=O&255,F.head.os=O>>8),F.flags&512&&(qt[0]=O&255,qt[1]=O>>>8&255,F.check=n(F.check,qt,2,0)),O=0,H=0,F.mode=D;case D:if(F.flags&1024){for(;H<16;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.length=O,F.head&&(F.head.extra_len=O),F.flags&512&&(qt[0]=O&255,qt[1]=O>>>8&255,F.check=n(F.check,qt,2,0)),O=0,H=0}else F.head&&(F.head.extra=null);F.mode=I;case I:if(F.flags&1024&&(Pe=F.length,Pe>M&&(Pe=M),Pe&&(F.head&&(Lt=F.head.extra_len-F.length,F.head.extra||(F.head.extra=new Array(F.head.extra_len)),e.arraySet(F.head.extra,De,b,Pe,Lt)),F.flags&512&&(F.check=n(F.check,De,Pe,b)),M-=Pe,b+=Pe,F.length-=Pe),F.length))break e;F.length=0,F.mode=j;case j:if(F.flags&2048){if(M===0)break e;Pe=0;do Lt=De[b+Pe++],F.head&&Lt&&F.length<65536&&(F.head.name+=String.fromCharCode(Lt));while(Lt&&Pe<M);if(F.flags&512&&(F.check=n(F.check,De,Pe,b)),M-=Pe,b+=Pe,Lt)break e}else F.head&&(F.head.name=null);F.length=0,F.mode=R;case R:if(F.flags&4096){if(M===0)break e;Pe=0;do Lt=De[b+Pe++],F.head&&Lt&&F.length<65536&&(F.head.comment+=String.fromCharCode(Lt));while(Lt&&Pe<M);if(F.flags&512&&(F.check=n(F.check,De,Pe,b)),M-=Pe,b+=Pe,Lt)break e}else F.head&&(F.head.comment=null);F.mode=z;case z:if(F.flags&512){for(;H<16;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(O!==(F.check&65535)){$.msg="header crc mismatch",F.mode=Re;break}O=0,H=0}F.head&&(F.head.hcrc=F.flags>>9&1,F.head.done=!0),$.adler=F.check=0,F.mode=P;break;case B:for(;H<32;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}$.adler=F.check=be(O),O=0,H=0,F.mode=W;case W:if(F.havedict===0)return $.next_out=ae,$.avail_out=k,$.next_in=b,$.avail_in=M,F.hold=O,F.bits=H,f;$.adler=F.check=1,F.mode=P;case P:if(de===c||de===u)break e;case Z:if(F.last){O>>>=H&7,H-=H&7,F.mode=Fe;break}for(;H<3;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}switch(F.last=O&1,O>>>=1,H-=1,O&3){case 0:F.mode=Q;break;case 1:if(it(F),F.mode=le,de===u){O>>>=2,H-=2;break e}break;case 2:F.mode=te;break;case 3:$.msg="invalid block type",F.mode=Re}O>>>=2,H-=2;break;case Q:for(O>>>=H&7,H-=H&7;H<32;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if((O&65535)!==(O>>>16^65535)){$.msg="invalid stored block lengths",F.mode=Re;break}if(F.length=O&65535,O=0,H=0,F.mode=X,de===u)break e;case X:F.mode=q;case q:if(Pe=F.length,Pe){if(Pe>M&&(Pe=M),Pe>k&&(Pe=k),Pe===0)break e;e.arraySet(He,De,b,Pe,ae),M-=Pe,b+=Pe,k-=Pe,ae+=Pe,F.length-=Pe;break}F.mode=P;break;case te:for(;H<14;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(F.nlen=(O&31)+257,O>>>=5,H-=5,F.ndist=(O&31)+1,O>>>=5,H-=5,F.ncode=(O&15)+4,O>>>=4,H-=4,F.nlen>286||F.ndist>30){$.msg="too many length or distance symbols",F.mode=Re;break}F.have=0,F.mode=J;case J:for(;F.have<F.ncode;){for(;H<3;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.lens[ct[F.have++]]=O&7,O>>>=3,H-=3}for(;F.have<19;)F.lens[ct[F.have++]]=0;if(F.lencode=F.lendyn,F.lenbits=7,Tn={bits:F.lenbits},Xt=i(a,F.lens,0,19,F.lencode,0,F.work,Tn),F.lenbits=Tn.bits,Xt){$.msg="invalid code lengths set",F.mode=Re;break}F.have=0,F.mode=ee;case ee:for(;F.have<F.nlen+F.ndist;){for(;st=F.lencode[O&(1<<F.lenbits)-1],Je=st>>>24,pt=st>>>16&255,xt=st&65535,!(Je<=H);){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(xt<16)O>>>=Je,H-=Je,F.lens[F.have++]=xt;else{if(xt===16){for(Ye=Je+2;H<Ye;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(O>>>=Je,H-=Je,F.have===0){$.msg="invalid bit length repeat",F.mode=Re;break}Lt=F.lens[F.have-1],Pe=3+(O&3),O>>>=2,H-=2}else if(xt===17){for(Ye=Je+3;H<Ye;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}O>>>=Je,H-=Je,Lt=0,Pe=3+(O&7),O>>>=3,H-=3}else{for(Ye=Je+7;H<Ye;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}O>>>=Je,H-=Je,Lt=0,Pe=11+(O&127),O>>>=7,H-=7}if(F.have+Pe>F.nlen+F.ndist){$.msg="invalid bit length repeat",F.mode=Re;break}for(;Pe--;)F.lens[F.have++]=Lt}}if(F.mode===Re)break;if(F.lens[256]===0){$.msg="invalid code -- missing end-of-block",F.mode=Re;break}if(F.lenbits=9,Tn={bits:F.lenbits},Xt=i(o,F.lens,0,F.nlen,F.lencode,0,F.work,Tn),F.lenbits=Tn.bits,Xt){$.msg="invalid literal/lengths set",F.mode=Re;break}if(F.distbits=6,F.distcode=F.distdyn,Tn={bits:F.distbits},Xt=i(s,F.lens,F.nlen,F.ndist,F.distcode,0,F.work,Tn),F.distbits=Tn.bits,Xt){$.msg="invalid distances set",F.mode=Re;break}if(F.mode=le,de===u)break e;case le:F.mode=G;case G:if(M>=6&&k>=258){$.next_out=ae,$.avail_out=k,$.next_in=b,$.avail_in=M,F.hold=O,F.bits=H,r($,_e),ae=$.next_out,He=$.output,k=$.avail_out,b=$.next_in,De=$.input,M=$.avail_in,O=F.hold,H=F.bits,F.mode===P&&(F.back=-1);break}for(F.back=0;st=F.lencode[O&(1<<F.lenbits)-1],Je=st>>>24,pt=st>>>16&255,xt=st&65535,!(Je<=H);){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(pt&&(pt&240)===0){for(dt=Je,rn=pt,Yn=xt;st=F.lencode[Yn+((O&(1<<dt+rn)-1)>>dt)],Je=st>>>24,pt=st>>>16&255,xt=st&65535,!(dt+Je<=H);){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}O>>>=dt,H-=dt,F.back+=dt}if(O>>>=Je,H-=Je,F.back+=Je,F.length=xt,pt===0){F.mode=ye;break}if(pt&32){F.back=-1,F.mode=P;break}if(pt&64){$.msg="invalid literal/length code",F.mode=Re;break}F.extra=pt&15,F.mode=xe;case xe:if(F.extra){for(Ye=F.extra;H<Ye;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.length+=O&(1<<F.extra)-1,O>>>=F.extra,H-=F.extra,F.back+=F.extra}F.was=F.length,F.mode=ge;case ge:for(;st=F.distcode[O&(1<<F.distbits)-1],Je=st>>>24,pt=st>>>16&255,xt=st&65535,!(Je<=H);){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if((pt&240)===0){for(dt=Je,rn=pt,Yn=xt;st=F.distcode[Yn+((O&(1<<dt+rn)-1)>>dt)],Je=st>>>24,pt=st>>>16&255,xt=st&65535,!(dt+Je<=H);){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}O>>>=dt,H-=dt,F.back+=dt}if(O>>>=Je,H-=Je,F.back+=Je,pt&64){$.msg="invalid distance code",F.mode=Re;break}F.offset=xt,F.extra=pt&15,F.mode=ue;case ue:if(F.extra){for(Ye=F.extra;H<Ye;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.offset+=O&(1<<F.extra)-1,O>>>=F.extra,H-=F.extra,F.back+=F.extra}if(F.offset>F.dmax){$.msg="invalid distance too far back",F.mode=Re;break}F.mode=ce;case ce:if(k===0)break e;if(Pe=_e-k,F.offset>Pe){if(Pe=F.offset-Pe,Pe>F.whave&&F.sane){$.msg="invalid distance too far back",F.mode=Re;break}Pe>F.wnext?(Pe-=F.wnext,Ze=F.wsize-Pe):Ze=F.wnext-Pe,Pe>F.length&&(Pe=F.length),ut=F.window}else ut=He,Ze=ae-F.offset,Pe=F.length;Pe>k&&(Pe=k),k-=Pe,F.length-=Pe;do He[ae++]=ut[Ze++];while(--Pe);F.length===0&&(F.mode=G);break;case ye:if(k===0)break e;He[ae++]=F.length,k--,F.mode=G;break;case Fe:if(F.wrap){for(;H<32;){if(M===0)break e;M--,O|=De[b++]<<H,H+=8}if(_e-=k,$.total_out+=_e,F.total+=_e,_e&&($.adler=F.check=F.flags?n(F.check,He,_e,ae-_e):t(F.check,He,_e,ae-_e)),_e=k,(F.flags?O:be(O))!==F.check){$.msg="incorrect data check",F.mode=Re;break}O=0,H=0}F.mode=Oe;case Oe:if(F.wrap&&F.flags){for(;H<32;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(O!==(F.total&4294967295)){$.msg="incorrect length check",F.mode=Re;break}O=0,H=0}F.mode=Le;case Le:Xt=h;break e;case Re:Xt=y;break e;case We:return v;case V:default:return g}return $.next_out=ae,$.avail_out=k,$.next_in=b,$.avail_in=M,F.hold=O,F.bits=H,(F.wsize||_e!==$.avail_out&&F.mode<Re&&(F.mode<Fe||de!==l))&&et($,$.output,$.next_out,_e-$.avail_out),Ne-=$.avail_in,_e-=$.avail_out,$.total_in+=Ne,$.total_out+=_e,F.total+=_e,F.wrap&&_e&&($.adler=F.check=F.flags?n(F.check,He,_e,$.next_out-_e):t(F.check,He,_e,$.next_out-_e)),$.data_type=F.bits+(F.last?64:0)+(F.mode===P?128:0)+(F.mode===le||F.mode===X?256:0),(Ne===0&&_e===0||de===l)&&Xt===d&&(Xt=A),Xt}function Ae($){if(!$||!$.state)return g;var de=$.state;return de.window&&(de.window=null),$.state=null,d}function se($,de){var F;return!$||!$.state||(F=$.state,(F.wrap&2)===0)?g:(F.head=de,de.done=!1,d)}function Te($,de){var F=de.length,De,He,b;return!$||!$.state||(De=$.state,De.wrap!==0&&De.mode!==W)?g:De.mode===W&&(He=1,He=t(He,de,F,0),He!==De.check)?y:(b=et($,de,F,F),b?(De.mode=We,v):(De.havedict=1,d))}return Ls.inflateReset=Ee,Ls.inflateReset2=Se,Ls.inflateResetKeep=Me,Ls.inflateInit=pe,Ls.inflateInit2=Ce,Ls.inflate=U,Ls.inflateEnd=Ae,Ls.inflateGetHeader=se,Ls.inflateSetDictionary=Te,Ls.inflateInfo="pako inflate (from Nodeca project)",Ls}var CC,wO;function DK(){return wO||(wO=1,CC={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),CC}var TC,SO;function uNe(){if(SO)return TC;SO=1;function e(){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}return TC=e,TC}var kO;function dNe(){if(kO)return ep;kO=1;var e=cNe(),t=Cd(),n=SK(),r=DK(),i=OF(),a=kK(),o=uNe(),s=Object.prototype.toString;function l(d){if(!(this instanceof l))return new l(d);this.options=t.assign({chunkSize:16384,windowBits:0,to:""},d||{});var h=this.options;h.raw&&h.windowBits>=0&&h.windowBits<16&&(h.windowBits=-h.windowBits,h.windowBits===0&&(h.windowBits=-15)),h.windowBits>=0&&h.windowBits<16&&!(d&&d.windowBits)&&(h.windowBits+=32),h.windowBits>15&&h.windowBits<48&&(h.windowBits&15)===0&&(h.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var f=e.inflateInit2(this.strm,h.windowBits);if(f!==r.Z_OK)throw new Error(i[f]);if(this.header=new o,e.inflateGetHeader(this.strm,this.header),h.dictionary&&(typeof h.dictionary=="string"?h.dictionary=n.string2buf(h.dictionary):s.call(h.dictionary)==="[object ArrayBuffer]"&&(h.dictionary=new Uint8Array(h.dictionary)),h.raw&&(f=e.inflateSetDictionary(this.strm,h.dictionary),f!==r.Z_OK)))throw new Error(i[f])}l.prototype.push=function(d,h){var f=this.strm,g=this.options.chunkSize,y=this.options.dictionary,v,A,w,S,_,E=!1;if(this.ended)return!1;A=h===~~h?h:h===!0?r.Z_FINISH:r.Z_NO_FLUSH,typeof d=="string"?f.input=n.binstring2buf(d):s.call(d)==="[object ArrayBuffer]"?f.input=new Uint8Array(d):f.input=d,f.next_in=0,f.avail_in=f.input.length;do{if(f.avail_out===0&&(f.output=new t.Buf8(g),f.next_out=0,f.avail_out=g),v=e.inflate(f,r.Z_NO_FLUSH),v===r.Z_NEED_DICT&&y&&(v=e.inflateSetDictionary(this.strm,y)),v===r.Z_BUF_ERROR&&E===!0&&(v=r.Z_OK,E=!1),v!==r.Z_STREAM_END&&v!==r.Z_OK)return this.onEnd(v),this.ended=!0,!1;f.next_out&&(f.avail_out===0||v===r.Z_STREAM_END||f.avail_in===0&&(A===r.Z_FINISH||A===r.Z_SYNC_FLUSH))&&(this.options.to==="string"?(w=n.utf8border(f.output,f.next_out),S=f.next_out-w,_=n.buf2string(f.output,w),f.next_out=S,f.avail_out=g-S,S&&t.arraySet(f.output,f.output,w,S,0),this.onData(_)):this.onData(t.shrinkBuf(f.output,f.next_out))),f.avail_in===0&&f.avail_out===0&&(E=!0)}while((f.avail_in>0||f.avail_out===0)&&v!==r.Z_STREAM_END);return v===r.Z_STREAM_END&&(A=r.Z_FINISH),A===r.Z_FINISH?(v=e.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===r.Z_OK):(A===r.Z_SYNC_FLUSH&&(this.onEnd(r.Z_OK),f.avail_out=0),!0)},l.prototype.onData=function(d){this.chunks.push(d)},l.prototype.onEnd=function(d){d===r.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg};function c(d,h){var f=new l(h);if(f.push(d,!0),f.err)throw f.msg||i[f.err];return f.result}function u(d,h){return h=h||{},h.raw=!0,c(d,h)}return ep.Inflate=l,ep.inflate=c,ep.inflateRaw=u,ep.ungzip=c,ep}var _C,DO;function fNe(){if(DO)return _C;DO=1;var e=Cd().assign,t=oNe(),n=dNe(),r=DK(),i={};return e(i,t,n,r),_C=i,_C}var hNe=fNe();const CK=Qc(hNe);var u2=(function(){function e(t,n){this.major=String(t),this.minor=String(n)}return e.prototype.toString=function(){var t=Vc(129);return"%PDF-"+this.major+"."+this.minor+`-%`+t+t+t+t},e.prototype.sizeInBytes=function(){return 12+this.major.length+this.minor.length},e.prototype.copyBytesInto=function(t,n){var r=n;return t[n++]=ze.Percent,t[n++]=ze.P,t[n++]=ze.D,t[n++]=ze.F,t[n++]=ze.Dash,n+=Ja(this.major,t,n),t[n++]=ze.Period,n+=Ja(this.minor,t,n),t[n++]=ze.Newline,t[n++]=ze.Percent,t[n++]=129,t[n++]=129,t[n++]=129,t[n++]=129,n-r},e.forVersion=function(t,n){return new e(t,n)},e})(),ko=(function(){function e(){}return e.prototype.clone=function(t){throw new Ks(this.constructor.name,"clone")},e.prototype.toString=function(){throw new Ks(this.constructor.name,"toString")},e.prototype.sizeInBytes=function(){throw new Ks(this.constructor.name,"sizeInBytes")},e.prototype.copyBytesInto=function(t,n){throw new Ks(this.constructor.name,"copyBytesInto")},e})(),nr=(function(e){Mt(t,e);function t(n){var r=e.call(this)||this;return r.numberValue=n,r.stringValue=tEe(n),r}return t.prototype.asNumber=function(){return this.numberValue},t.prototype.value=function(){return this.numberValue},t.prototype.clone=function(){return t.of(this.numberValue)},t.prototype.toString=function(){return this.stringValue},t.prototype.sizeInBytes=function(){return this.stringValue.length},t.prototype.copyBytesInto=function(n,r){return r+=Ja(this.stringValue,n,r),this.stringValue.length},t.of=function(n){return new t(n)},t})(ko),ii=(function(e){Mt(t,e);function t(n){var r=e.call(this)||this;return r.array=[],r.context=n,r}return t.prototype.size=function(){return this.array.length},t.prototype.push=function(n){this.array.push(n)},t.prototype.insert=function(n,r){this.array.splice(n,0,r)},t.prototype.indexOf=function(n){var r=this.array.indexOf(n);return r===-1?void 0:r},t.prototype.remove=function(n){this.array.splice(n,1)},t.prototype.set=function(n,r){this.array[n]=r},t.prototype.get=function(n){return this.array[n]},t.prototype.lookupMaybe=function(n){for(var r,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return(r=this.context).lookupMaybe.apply(r,$r([this.get(n)],i))},t.prototype.lookup=function(n){for(var r,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return(r=this.context).lookup.apply(r,$r([this.get(n)],i))},t.prototype.asRectangle=function(){if(this.size()!==4)throw new HEe(this.size());var n=this.lookup(0,nr).asNumber(),r=this.lookup(1,nr).asNumber(),i=this.lookup(2,nr).asNumber(),a=this.lookup(3,nr).asNumber(),o=n,s=r,l=i-n,c=a-r;return{x:o,y:s,width:l,height:c}},t.prototype.asArray=function(){return this.array.slice()},t.prototype.clone=function(n){for(var r=t.withContext(n||this.context),i=0,a=this.size();i<a;i++)r.push(this.array[i]);return r},t.prototype.toString=function(){for(var n="[ ",r=0,i=this.size();r<i;r++)n+=this.get(r).toString(),n+=" ";return n+="]",n},t.prototype.sizeInBytes=function(){for(var n=3,r=0,i=this.size();r<i;r++)n+=this.get(r).sizeInBytes()+1;return n},t.prototype.copyBytesInto=function(n,r){var i=r;n[r++]=ze.LeftSquareBracket,n[r++]=ze.Space;for(var a=0,o=this.size();a<o;a++)r+=this.get(a).copyBytesInto(n,r),n[r++]=ze.Space;return n[r++]=ze.RightSquareBracket,r-i},t.prototype.scalePDFNumbers=function(n,r){for(var i=0,a=this.size();i<a;i++){var o=this.lookup(i);if(o instanceof nr){var s=i%2===0?n:r;this.set(i,nr.of(o.asNumber()*s))}}},t.withContext=function(n){return new t(n)},t})(ko),EC={},ty=(function(e){Mt(t,e);function t(n,r){var i=this;if(n!==EC)throw new MF("PDFBool");return i=e.call(this)||this,i.value=r,i}return t.prototype.asBoolean=function(){return this.value},t.prototype.clone=function(){return this},t.prototype.toString=function(){return String(this.value)},t.prototype.sizeInBytes=function(){return this.value?4:5},t.prototype.copyBytesInto=function(n,r){return this.value?(n[r++]=ze.t,n[r++]=ze.r,n[r++]=ze.u,n[r++]=ze.e,4):(n[r++]=ze.f,n[r++]=ze.a,n[r++]=ze.l,n[r++]=ze.s,n[r++]=ze.e,5)},t.True=new t(EC,!0),t.False=new t(EC,!1),t})(ko),ll=new Uint8Array(256);ll[ze.LeftParen]=1;ll[ze.RightParen]=1;ll[ze.LessThan]=1;ll[ze.GreaterThan]=1;ll[ze.LeftSquareBracket]=1;ll[ze.RightSquareBracket]=1;ll[ze.LeftCurly]=1;ll[ze.RightCurly]=1;ll[ze.ForwardSlash]=1;ll[ze.Percent]=1;var tu=new Uint8Array(256);tu[ze.Null]=1;tu[ze.Tab]=1;tu[ze.Newline]=1;tu[ze.FormFeed]=1;tu[ze.CarriageReturn]=1;tu[ze.Space]=1;var jF=new Uint8Array(256);for(var Em=0,pNe=256;Em<pNe;Em++)jF[Em]=tu[Em]||ll[Em]?1:0;jF[ze.Hash]=1;var gNe=function(e){return e.replace(/#([\dABCDEF]{2})/g,function(t,n){return M_e(n)})},mNe=function(e){return e>=ze.ExclamationPoint&&e<=ze.Tilde&&!jF[e]},CO={},TO=new Map,je=(function(e){Mt(t,e);function t(n,r){var i=this;if(n!==CO)throw new MF("PDFName");i=e.call(this)||this;for(var a="/",o=0,s=r.length;o<s;o++){var l=r[o],c=ar(l);a+=mNe(c)?l:"#"+s2(c)}return i.encodedName=a,i}return t.prototype.asBytes=function(){for(var n=[],r="",i=!1,a=function(d){d!==void 0&&n.push(d),i=!1},o=1,s=this.encodedName.length;o<s;o++){var l=this.encodedName[o],c=ar(l),u=this.encodedName[o+1];i?c>=ze.Zero&&c<=ze.Nine||c>=ze.a&&c<=ze.f||c>=ze.A&&c<=ze.F?(r+=l,(r.length===2||!(u>="0"&&u<="9"||u>="a"&&u<="f"||u>="A"&&u<="F"))&&(a(parseInt(r,16)),r="")):a(c):c===ze.Hash?i=!0:a(c)}return new Uint8Array(n)},t.prototype.decodeText=function(){var n=this.asBytes();return String.fromCharCode.apply(String,Array.from(n))},t.prototype.asString=function(){return this.encodedName},t.prototype.value=function(){return this.encodedName},t.prototype.clone=function(){return this},t.prototype.toString=function(){return this.encodedName},t.prototype.sizeInBytes=function(){return this.encodedName.length},t.prototype.copyBytesInto=function(n,r){return r+=Ja(this.encodedName,n,r),this.encodedName.length},t.of=function(n){var r=gNe(n),i=TO.get(r);return i||(i=new t(CO,r),TO.set(r,i)),i},t.Length=t.of("Length"),t.FlateDecode=t.of("FlateDecode"),t.Resources=t.of("Resources"),t.Font=t.of("Font"),t.XObject=t.of("XObject"),t.ExtGState=t.of("ExtGState"),t.Contents=t.of("Contents"),t.Type=t.of("Type"),t.Parent=t.of("Parent"),t.MediaBox=t.of("MediaBox"),t.Page=t.of("Page"),t.Annots=t.of("Annots"),t.TrimBox=t.of("TrimBox"),t.ArtBox=t.of("ArtBox"),t.BleedBox=t.of("BleedBox"),t.CropBox=t.of("CropBox"),t.Rotate=t.of("Rotate"),t.Title=t.of("Title"),t.Author=t.of("Author"),t.Subject=t.of("Subject"),t.Creator=t.of("Creator"),t.Keywords=t.of("Keywords"),t.Producer=t.of("Producer"),t.CreationDate=t.of("CreationDate"),t.ModDate=t.of("ModDate"),t})(ko),yNe=(function(e){Mt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.asNull=function(){return null},t.prototype.clone=function(){return this},t.prototype.toString=function(){return"null"},t.prototype.sizeInBytes=function(){return 4},t.prototype.copyBytesInto=function(n,r){return n[r++]=ze.n,n[r++]=ze.u,n[r++]=ze.l,n[r++]=ze.l,4},t})(ko);const Bo=new yNe;var gr=(function(e){Mt(t,e);function t(n,r){var i=e.call(this)||this;return i.dict=n,i.context=r,i}return t.prototype.keys=function(){return Array.from(this.dict.keys())},t.prototype.values=function(){return Array.from(this.dict.values())},t.prototype.entries=function(){return Array.from(this.dict.entries())},t.prototype.set=function(n,r){this.dict.set(n,r)},t.prototype.get=function(n,r){r===void 0&&(r=!1);var i=this.dict.get(n);if(!(i===Bo&&!r))return i},t.prototype.has=function(n){var r=this.dict.get(n);return r!==void 0&&r!==Bo},t.prototype.lookupMaybe=function(n){for(var r,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];var o=i.includes(Bo),s=(r=this.context).lookupMaybe.apply(r,$r([this.get(n,o)],i));if(!(s===Bo&&!o))return s},t.prototype.lookup=function(n){for(var r,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];var o=i.includes(Bo),s=(r=this.context).lookup.apply(r,$r([this.get(n,o)],i));if(!(s===Bo&&!o))return s},t.prototype.delete=function(n){return this.dict.delete(n)},t.prototype.asMap=function(){return new Map(this.dict)},t.prototype.uniqueKey=function(n){n===void 0&&(n="");for(var r=this.keys(),i=je.of(this.context.addRandomSuffix(n,10));r.includes(i);)i=je.of(this.context.addRandomSuffix(n,10));return i},t.prototype.clone=function(n){for(var r=t.withContext(n||this.context),i=this.entries(),a=0,o=i.length;a<o;a++){var s=i[a],l=s[0],c=s[1];r.set(l,c)}return r},t.prototype.toString=function(){for(var n=`<<-`,r=this.entries(),i=0,a=r.length;i<a;i++){var o=r[i],s=o[0],l=o[1];n+=s.toString()+" "+l.toString()+`-`}return n+=">>",n},t.prototype.sizeInBytes=function(){for(var n=5,r=this.entries(),i=0,a=r.length;i<a;i++){var o=r[i],s=o[0],l=o[1];n+=s.sizeInBytes()+l.sizeInBytes()+2}return n},t.prototype.copyBytesInto=function(n,r){var i=r;n[r++]=ze.LessThan,n[r++]=ze.LessThan,n[r++]=ze.Newline;for(var a=this.entries(),o=0,s=a.length;o<s;o++){var l=a[o],c=l[0],u=l[1];r+=c.copyBytesInto(n,r),n[r++]=ze.Space,r+=u.copyBytesInto(n,r),n[r++]=ze.Newline}return n[r++]=ze.GreaterThan,n[r++]=ze.GreaterThan,r-i},t.withContext=function(n){return new t(new Map,n)},t.fromMapWithContext=function(n,r){return new t(n,r)},t})(ko),xs=(function(e){Mt(t,e);function t(n){var r=e.call(this)||this;return r.dict=n,r}return t.prototype.clone=function(n){throw new Ks(this.constructor.name,"clone")},t.prototype.getContentsString=function(){throw new Ks(this.constructor.name,"getContentsString")},t.prototype.getContents=function(){throw new Ks(this.constructor.name,"getContents")},t.prototype.getContentsSize=function(){throw new Ks(this.constructor.name,"getContentsSize")},t.prototype.updateDict=function(){var n=this.getContentsSize();this.dict.set(je.Length,nr.of(n))},t.prototype.sizeInBytes=function(){return this.updateDict(),this.dict.sizeInBytes()+this.getContentsSize()+18},t.prototype.toString=function(){this.updateDict();var n=this.dict.toString();return n+=`-stream-`,n+=this.getContentsString(),n+=`-endstream`,n},t.prototype.copyBytesInto=function(n,r){this.updateDict();var i=r;r+=this.dict.copyBytesInto(n,r),n[r++]=ze.Newline,n[r++]=ze.s,n[r++]=ze.t,n[r++]=ze.r,n[r++]=ze.e,n[r++]=ze.a,n[r++]=ze.m,n[r++]=ze.Newline;for(var a=this.getContents(),o=0,s=a.length;o<s;o++)n[r++]=a[o];return n[r++]=ze.Newline,n[r++]=ze.e,n[r++]=ze.n,n[r++]=ze.d,n[r++]=ze.s,n[r++]=ze.t,n[r++]=ze.r,n[r++]=ze.e,n[r++]=ze.a,n[r++]=ze.m,r-i},t})(ko),ny=(function(e){Mt(t,e);function t(n,r){var i=e.call(this,n)||this;return i.contents=r,i}return t.prototype.asUint8Array=function(){return this.contents.slice()},t.prototype.clone=function(n){return t.of(this.dict.clone(n),this.contents.slice())},t.prototype.getContentsString=function(){return iK(this.contents)},t.prototype.getContents=function(){return this.contents},t.prototype.getContentsSize=function(){return this.contents.length},t.of=function(n,r){return new t(n,r)},t})(xs),_O={},EO=new Map,fi=(function(e){Mt(t,e);function t(n,r,i){var a=this;if(n!==_O)throw new MF("PDFRef");return a=e.call(this)||this,a.objectNumber=r,a.generationNumber=i,a.tag=r+" "+i+" R",a}return t.prototype.clone=function(){return this},t.prototype.toString=function(){return this.tag},t.prototype.sizeInBytes=function(){return this.tag.length},t.prototype.copyBytesInto=function(n,r){return r+=Ja(this.tag,n,r),this.tag.length},t.of=function(n,r){r===void 0&&(r=0);var i=n+" "+r+" R",a=EO.get(i);return a||(a=new t(_O,n,r),EO.set(i,a)),a},t})(ko),Xr=(function(){function e(t,n){this.name=t,this.args=n||[]}return e.prototype.clone=function(t){for(var n=new Array(this.args.length),r=0,i=n.length;r<i;r++){var a=this.args[r];n[r]=a instanceof ko?a.clone(t):a}return e.of(this.name,n)},e.prototype.toString=function(){for(var t="",n=0,r=this.args.length;n<r;n++)t+=String(this.args[n])+" ";return t+=this.name,t},e.prototype.sizeInBytes=function(){for(var t=0,n=0,r=this.args.length;n<r;n++){var i=this.args[n];t+=(i instanceof ko?i.sizeInBytes():i.length)+1}return t+=this.name.length,t},e.prototype.copyBytesInto=function(t,n){for(var r=n,i=0,a=this.args.length;i<a;i++){var o=this.args[i];o instanceof ko?n+=o.copyBytesInto(t,n):n+=Ja(o,t,n),t[n++]=ze.Space}return n+=Ja(this.name,t,n),n-r},e.of=function(t,n){return new e(t,n)},e})(),O_;(function(e){e.NonStrokingColor="sc",e.NonStrokingColorN="scn",e.NonStrokingColorRgb="rg",e.NonStrokingColorGray="g",e.NonStrokingColorCmyk="k",e.NonStrokingColorspace="cs",e.StrokingColor="SC",e.StrokingColorN="SCN",e.StrokingColorRgb="RG",e.StrokingColorGray="G",e.StrokingColorCmyk="K",e.StrokingColorspace="CS",e.BeginMarkedContentSequence="BDC",e.BeginMarkedContent="BMC",e.EndMarkedContent="EMC",e.MarkedContentPointWithProps="DP",e.MarkedContentPoint="MP",e.DrawObject="Do",e.ConcatTransformationMatrix="cm",e.PopGraphicsState="Q",e.PushGraphicsState="q",e.SetFlatness="i",e.SetGraphicsStateParams="gs",e.SetLineCapStyle="J",e.SetLineDashPattern="d",e.SetLineJoinStyle="j",e.SetLineMiterLimit="M",e.SetLineWidth="w",e.SetTextMatrix="Tm",e.SetRenderingIntent="ri",e.AppendRectangle="re",e.BeginInlineImage="BI",e.BeginInlineImageData="ID",e.EndInlineImage="EI",e.ClipEvenOdd="W*",e.ClipNonZero="W",e.CloseAndStroke="s",e.CloseFillEvenOddAndStroke="b*",e.CloseFillNonZeroAndStroke="b",e.ClosePath="h",e.AppendBezierCurve="c",e.CurveToReplicateFinalPoint="y",e.CurveToReplicateInitialPoint="v",e.EndPath="n",e.FillEvenOddAndStroke="B*",e.FillEvenOdd="f*",e.FillNonZeroAndStroke="B",e.FillNonZero="f",e.LegacyFillNonZero="F",e.LineTo="l",e.MoveTo="m",e.ShadingFill="sh",e.StrokePath="S",e.BeginText="BT",e.EndText="ET",e.MoveText="Td",e.MoveTextSetLeading="TD",e.NextLine="T*",e.SetCharacterSpacing="Tc",e.SetFontAndSize="Tf",e.SetTextHorizontalScaling="Tz",e.SetTextLineHeight="TL",e.SetTextRenderingMode="Tr",e.SetTextRise="Ts",e.SetWordSpacing="Tw",e.ShowText="Tj",e.ShowTextAdjusted="TJ",e.ShowTextLine="'",e.ShowTextLineAndSpace='"',e.Type3D0="d0",e.Type3D1="d1",e.BeginCompatibilitySection="BX",e.EndCompatibilitySection="EX"})(O_||(O_={}));const Jr=O_;var BF=(function(e){Mt(t,e);function t(n,r){var i=e.call(this,n)||this;return i.computeContents=function(){var a=i.getUnencodedContents();return i.encode?CK.deflate(a):a},i.encode=r,r&&n.set(je.of("Filter"),je.of("FlateDecode")),i.contentsCache=Gc.populatedBy(i.computeContents),i}return t.prototype.getContents=function(){return this.contentsCache.access()},t.prototype.getContentsSize=function(){return this.contentsCache.access().length},t.prototype.getUnencodedContents=function(){throw new Ks(this.constructor.name,"getUnencodedContents")},t})(xs),m0=(function(e){Mt(t,e);function t(n,r,i){i===void 0&&(i=!0);var a=e.call(this,n,i)||this;return a.operators=r,a}return t.prototype.push=function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];(n=this.operators).push.apply(n,r)},t.prototype.clone=function(n){for(var r=new Array(this.operators.length),i=0,a=this.operators.length;i<a;i++)r[i]=this.operators[i].clone(n);var o=this,s=o.dict,l=o.encode;return t.of(s.clone(n),r,l)},t.prototype.getContentsString=function(){for(var n="",r=0,i=this.operators.length;r<i;r++)n+=this.operators[r]+`-`;return n},t.prototype.getUnencodedContents=function(){for(var n=new Uint8Array(this.getUnencodedContentsSize()),r=0,i=0,a=this.operators.length;i<a;i++)r+=this.operators[i].copyBytesInto(n,r),n[r++]=ze.Newline;return n},t.prototype.getUnencodedContentsSize=function(){for(var n=0,r=0,i=this.operators.length;r<i;r++)n+=this.operators[r].sizeInBytes()+1;return n},t.of=function(n,r,i){return i===void 0&&(i=!0),new t(n,r,i)},t})(BF),vNe=(function(){function e(t){this.seed=t}return e.prototype.nextInt=function(){var t=Math.sin(this.seed++)*1e4;return t-Math.floor(t)},e.withSeed=function(t){return new e(t)},e})(),xNe=function(e,t){var n=e[0],r=t[0];return n.objectNumber-r.objectNumber},j_=(function(){function e(){this.largestObjectNumber=0,this.header=u2.forVersion(1,7),this.trailerInfo={},this.indirectObjects=new Map,this.rng=vNe.withSeed(1)}return e.prototype.assign=function(t,n){this.indirectObjects.set(t,n),t.objectNumber>this.largestObjectNumber&&(this.largestObjectNumber=t.objectNumber)},e.prototype.nextRef=function(){return this.largestObjectNumber+=1,fi.of(this.largestObjectNumber)},e.prototype.register=function(t){var n=this.nextRef();return this.assign(n,t),n},e.prototype.delete=function(t){return this.indirectObjects.delete(t)},e.prototype.lookupMaybe=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=n.includes(Bo),a=t instanceof fi?this.indirectObjects.get(t):t;if(!(!a||a===Bo&&!i)){for(var o=0,s=n.length;o<s;o++){var l=n[o];if(l===Bo){if(a===Bo)return a}else if(a instanceof l)return a}throw new iA(n,a)}},e.prototype.lookup=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=t instanceof fi?this.indirectObjects.get(t):t;if(n.length===0)return i;for(var a=0,o=n.length;a<o;a++){var s=n[a];if(s===Bo){if(i===Bo)return i}else if(i instanceof s)return i}throw new iA(n,i)},e.prototype.getObjectRef=function(t){for(var n=Array.from(this.indirectObjects.entries()),r=0,i=n.length;r<i;r++){var a=n[r],o=a[0],s=a[1];if(s===t)return o}},e.prototype.enumerateIndirectObjects=function(){return Array.from(this.indirectObjects.entries()).sort(xNe)},e.prototype.obj=function(t){if(t instanceof ko)return t;if(t==null)return Bo;if(typeof t=="string")return je.of(t);if(typeof t=="number")return nr.of(t);if(typeof t=="boolean")return t?ty.True:ty.False;if(Array.isArray(t)){for(var n=ii.withContext(this),r=0,i=t.length;r<i;r++)n.push(this.obj(t[r]));return n}else{for(var a=gr.withContext(this),o=Object.keys(t),r=0,i=o.length;r<i;r++){var s=o[r],l=t[s];l!==void 0&&a.set(je.of(s),this.obj(l))}return a}},e.prototype.stream=function(t,n){return n===void 0&&(n={}),ny.of(this.obj(n),U_(t))},e.prototype.flateStream=function(t,n){return n===void 0&&(n={}),this.stream(CK.deflate(U_(t)),lr(lr({},n),{Filter:"FlateDecode"}))},e.prototype.contentStream=function(t,n){return n===void 0&&(n={}),m0.of(this.obj(n),t)},e.prototype.formXObject=function(t,n){return n===void 0&&(n={}),this.contentStream(t,lr(lr({BBox:this.obj([0,0,0,0]),Matrix:this.obj([1,0,0,1,0,0])},n),{Type:"XObject",Subtype:"Form"}))},e.prototype.getPushGraphicsStateContentStream=function(){if(this.pushGraphicsStateContentStreamRef)return this.pushGraphicsStateContentStreamRef;var t=this.obj({}),n=Xr.of(Jr.PushGraphicsState),r=m0.of(t,[n]);return this.pushGraphicsStateContentStreamRef=this.register(r),this.pushGraphicsStateContentStreamRef},e.prototype.getPopGraphicsStateContentStream=function(){if(this.popGraphicsStateContentStreamRef)return this.popGraphicsStateContentStreamRef;var t=this.obj({}),n=Xr.of(Jr.PopGraphicsState),r=m0.of(t,[n]);return this.popGraphicsStateContentStreamRef=this.register(r),this.popGraphicsStateContentStreamRef},e.prototype.addRandomSuffix=function(t,n){return n===void 0&&(n=4),t+"-"+Math.floor(this.rng.nextInt()*Math.pow(10,n))},e.create=function(){return new e},e})(),qc=(function(e){Mt(t,e);function t(n,r,i){i===void 0&&(i=!0);var a=e.call(this,n,r)||this;return a.normalized=!1,a.autoNormalizeCTM=i,a}return t.prototype.clone=function(n){for(var r=t.fromMapWithContext(new Map,n||this.context,this.autoNormalizeCTM),i=this.entries(),a=0,o=i.length;a<o;a++){var s=i[a],l=s[0],c=s[1];r.set(l,c)}return r},t.prototype.Parent=function(){return this.lookupMaybe(je.Parent,gr)},t.prototype.Contents=function(){return this.lookup(je.of("Contents"))},t.prototype.Annots=function(){return this.lookupMaybe(je.Annots,ii)},t.prototype.BleedBox=function(){return this.lookupMaybe(je.BleedBox,ii)},t.prototype.TrimBox=function(){return this.lookupMaybe(je.TrimBox,ii)},t.prototype.ArtBox=function(){return this.lookupMaybe(je.ArtBox,ii)},t.prototype.Resources=function(){var n=this.getInheritableAttribute(je.Resources);return this.context.lookupMaybe(n,gr)},t.prototype.MediaBox=function(){var n=this.getInheritableAttribute(je.MediaBox);return this.context.lookup(n,ii)},t.prototype.CropBox=function(){var n=this.getInheritableAttribute(je.CropBox);return this.context.lookupMaybe(n,ii)},t.prototype.Rotate=function(){var n=this.getInheritableAttribute(je.Rotate);return this.context.lookupMaybe(n,nr)},t.prototype.getInheritableAttribute=function(n){var r;return this.ascend(function(i){r||(r=i.get(n))}),r},t.prototype.setParent=function(n){this.set(je.Parent,n)},t.prototype.addContentStream=function(n){var r=this.normalizedEntries().Contents||this.context.obj([]);this.set(je.Contents,r),r.push(n)},t.prototype.wrapContentStreams=function(n,r){var i=this.Contents();return i instanceof ii?(i.insert(0,n),i.push(r),!0):!1},t.prototype.addAnnot=function(n){var r=this.normalizedEntries().Annots;r.push(n)},t.prototype.removeAnnot=function(n){var r=this.normalizedEntries().Annots,i=r.indexOf(n);i!==void 0&&r.remove(i)},t.prototype.setFontDictionary=function(n,r){var i=this.normalizedEntries().Font;i.set(n,r)},t.prototype.newFontDictionaryKey=function(n){var r=this.normalizedEntries().Font;return r.uniqueKey(n)},t.prototype.newFontDictionary=function(n,r){var i=this.newFontDictionaryKey(n);return this.setFontDictionary(i,r),i},t.prototype.setXObject=function(n,r){var i=this.normalizedEntries().XObject;i.set(n,r)},t.prototype.newXObjectKey=function(n){var r=this.normalizedEntries().XObject;return r.uniqueKey(n)},t.prototype.newXObject=function(n,r){var i=this.newXObjectKey(n);return this.setXObject(i,r),i},t.prototype.setExtGState=function(n,r){var i=this.normalizedEntries().ExtGState;i.set(n,r)},t.prototype.newExtGStateKey=function(n){var r=this.normalizedEntries().ExtGState;return r.uniqueKey(n)},t.prototype.newExtGState=function(n,r){var i=this.newExtGStateKey(n);return this.setExtGState(i,r),i},t.prototype.ascend=function(n){n(this);var r=this.Parent();r&&r.ascend(n)},t.prototype.normalize=function(){if(!this.normalized){var n=this.context,r=this.get(je.Contents),i=this.context.lookup(r);i instanceof xs&&this.set(je.Contents,n.obj([r])),this.autoNormalizeCTM&&this.wrapContentStreams(this.context.getPushGraphicsStateContentStream(),this.context.getPopGraphicsStateContentStream());var a=this.getInheritableAttribute(je.Resources),o=n.lookupMaybe(a,gr)||n.obj({});this.set(je.Resources,o);var s=o.lookupMaybe(je.Font,gr)||n.obj({});o.set(je.Font,s);var l=o.lookupMaybe(je.XObject,gr)||n.obj({});o.set(je.XObject,l);var c=o.lookupMaybe(je.ExtGState,gr)||n.obj({});o.set(je.ExtGState,c);var u=this.Annots()||n.obj([]);this.set(je.Annots,u),this.normalized=!0}},t.prototype.normalizedEntries=function(){this.normalize();var n=this.Annots(),r=this.Resources(),i=this.Contents();return{Annots:n,Resources:r,Contents:i,Font:r.lookup(je.Font,gr),XObject:r.lookup(je.XObject,gr),ExtGState:r.lookup(je.ExtGState,gr)}},t.InheritableEntries=["Resources","MediaBox","CropBox","Rotate"],t.withContextAndParent=function(n,r){var i=new Map;return i.set(je.Type,je.Page),i.set(je.Parent,r),i.set(je.Resources,n.obj({})),i.set(je.MediaBox,n.obj([0,0,612,792])),new t(i,n,!1)},t.fromMapWithContext=function(n,r,i){return i===void 0&&(i=!0),new t(n,r,i)},t})(gr),NO=(function(){function e(t,n){var r=this;this.traversedObjects=new Map,this.copy=function(i){return i instanceof qc?r.copyPDFPage(i):i instanceof gr?r.copyPDFDict(i):i instanceof ii?r.copyPDFArray(i):i instanceof xs?r.copyPDFStream(i):i instanceof fi?r.copyPDFIndirectObject(i):i.clone()},this.copyPDFPage=function(i){for(var a=i.clone(),o=qc.InheritableEntries,s=0,l=o.length;s<l;s++){var c=je.of(o[s]),u=a.getInheritableAttribute(c);!a.get(c)&&u&&a.set(c,u)}return a.delete(je.of("Parent")),r.copyPDFDict(a)},this.copyPDFDict=function(i){if(r.traversedObjects.has(i))return r.traversedObjects.get(i);var a=i.clone(r.dest);r.traversedObjects.set(i,a);for(var o=i.entries(),s=0,l=o.length;s<l;s++){var c=o[s],u=c[0],d=c[1];a.set(u,r.copy(d))}return a},this.copyPDFArray=function(i){if(r.traversedObjects.has(i))return r.traversedObjects.get(i);var a=i.clone(r.dest);r.traversedObjects.set(i,a);for(var o=0,s=i.size();o<s;o++){var l=i.get(o);a.set(o,r.copy(l))}return a},this.copyPDFStream=function(i){if(r.traversedObjects.has(i))return r.traversedObjects.get(i);var a=i.clone(r.dest);r.traversedObjects.set(i,a);for(var o=i.dict.entries(),s=0,l=o.length;s<l;s++){var c=o[s],u=c[0],d=c[1];a.dict.set(u,r.copy(d))}return a},this.copyPDFIndirectObject=function(i){var a=r.traversedObjects.has(i);if(!a){var o=r.dest.nextRef();r.traversedObjects.set(i,o);var s=r.src.lookup(i);if(s){var l=r.copy(s);r.dest.assign(o,l)}}return r.traversedObjects.get(i)},this.src=t,this.dest=n}return e.for=function(t,n){return new e(t,n)},e})(),TK=(function(){function e(t){this.subsections=t?[[t]]:[],this.chunkIdx=0,this.chunkLength=t?1:0}return e.prototype.addEntry=function(t,n){this.append({ref:t,offset:n,deleted:!1})},e.prototype.addDeletedEntry=function(t,n){this.append({ref:t,offset:n,deleted:!0})},e.prototype.toString=function(){for(var t=`xref-`,n=0,r=this.subsections.length;n<r;n++){var i=this.subsections[n];t+=i[0].ref.objectNumber+" "+i.length+`-`;for(var a=0,o=i.length;a<o;a++){var s=i[a];t+=Nl(String(s.offset),10,"0"),t+=" ",t+=Nl(String(s.ref.generationNumber),5,"0"),t+=" ",t+=s.deleted?"f":"n",t+=`-`}}return t},e.prototype.sizeInBytes=function(){for(var t=5,n=0,r=this.subsections.length;n<r;n++){var i=this.subsections[n],a=i.length,o=i[0];t+=2,t+=String(o.ref.objectNumber).length,t+=String(a).length,t+=20*a}return t},e.prototype.copyBytesInto=function(t,n){var r=n;return t[n++]=ze.x,t[n++]=ze.r,t[n++]=ze.e,t[n++]=ze.f,t[n++]=ze.Newline,n+=this.copySubsectionsIntoBuffer(this.subsections,t,n),n-r},e.prototype.copySubsectionsIntoBuffer=function(t,n,r){for(var i=r,a=t.length,o=0;o<a;o++){var s=this.subsections[o],l=String(s[0].ref.objectNumber);r+=Ja(l,n,r),n[r++]=ze.Space;var c=String(s.length);r+=Ja(c,n,r),n[r++]=ze.Newline,r+=this.copyEntriesIntoBuffer(s,n,r)}return r-i},e.prototype.copyEntriesIntoBuffer=function(t,n,r){for(var i=t.length,a=0;a<i;a++){var o=t[a],s=Nl(String(o.offset),10,"0");r+=Ja(s,n,r),n[r++]=ze.Space;var l=Nl(String(o.ref.generationNumber),5,"0");r+=Ja(l,n,r),n[r++]=ze.Space,n[r++]=o.deleted?ze.f:ze.n,n[r++]=ze.Space,n[r++]=ze.Newline}return 20*i},e.prototype.append=function(t){if(this.chunkLength===0){this.subsections.push([t]),this.chunkIdx=0,this.chunkLength=1;return}var n=this.subsections[this.chunkIdx],r=n[this.chunkLength-1];t.ref.objectNumber-r.ref.objectNumber>1?(this.subsections.push([t]),this.chunkIdx+=1,this.chunkLength=1):(n.push(t),this.chunkLength+=1)},e.create=function(){return new e({ref:fi.of(0,65535),offset:0,deleted:!0})},e.createEmpty=function(){return new e},e})(),zF=(function(){function e(t){this.lastXRefOffset=String(t)}return e.prototype.toString=function(){return`startxref-`+this.lastXRefOffset+`-%%EOF`},e.prototype.sizeInBytes=function(){return 16+this.lastXRefOffset.length},e.prototype.copyBytesInto=function(t,n){var r=n;return t[n++]=ze.s,t[n++]=ze.t,t[n++]=ze.a,t[n++]=ze.r,t[n++]=ze.t,t[n++]=ze.x,t[n++]=ze.r,t[n++]=ze.e,t[n++]=ze.f,t[n++]=ze.Newline,n+=Ja(this.lastXRefOffset,t,n),t[n++]=ze.Newline,t[n++]=ze.Percent,t[n++]=ze.Percent,t[n++]=ze.E,t[n++]=ze.O,t[n++]=ze.F,n-r},e.forLastCrossRefSectionOffset=function(t){return new e(t)},e})(),bNe=(function(){function e(t){this.dict=t}return e.prototype.toString=function(){return`trailer-`+this.dict.toString()},e.prototype.sizeInBytes=function(){return 8+this.dict.sizeInBytes()},e.prototype.copyBytesInto=function(t,n){var r=n;return t[n++]=ze.t,t[n++]=ze.r,t[n++]=ze.a,t[n++]=ze.i,t[n++]=ze.l,t[n++]=ze.e,t[n++]=ze.r,t[n++]=ze.Newline,n+=this.dict.copyBytesInto(t,n),n-r},e.of=function(t){return new e(t)},e})(),_K=(function(e){Mt(t,e);function t(n,r,i){i===void 0&&(i=!0);var a=e.call(this,n.obj({}),i)||this;return a.objects=r,a.offsets=a.computeObjectOffsets(),a.offsetsString=a.computeOffsetsString(),a.dict.set(je.of("Type"),je.of("ObjStm")),a.dict.set(je.of("N"),nr.of(a.objects.length)),a.dict.set(je.of("First"),nr.of(a.offsetsString.length)),a}return t.prototype.getObjectsCount=function(){return this.objects.length},t.prototype.clone=function(n){return t.withContextAndObjects(n||this.dict.context,this.objects.slice(),this.encode)},t.prototype.getContentsString=function(){for(var n=this.offsetsString,r=0,i=this.objects.length;r<i;r++){var a=this.objects[r],o=a[1];n+=o+`-`}return n},t.prototype.getUnencodedContents=function(){for(var n=new Uint8Array(this.getUnencodedContentsSize()),r=Ja(this.offsetsString,n,0),i=0,a=this.objects.length;i<a;i++){var o=this.objects[i],s=o[1];r+=s.copyBytesInto(n,r),n[r++]=ze.Newline}return n},t.prototype.getUnencodedContentsSize=function(){return this.offsetsString.length+rA(this.offsets)[1]+rA(this.objects)[1].sizeInBytes()+1},t.prototype.computeOffsetsString=function(){for(var n="",r=0,i=this.offsets.length;r<i;r++){var a=this.offsets[r],o=a[0],s=a[1];n+=o+" "+s+" "}return n},t.prototype.computeObjectOffsets=function(){for(var n=0,r=new Array(this.objects.length),i=0,a=this.objects.length;i<a;i++){var o=this.objects[i],s=o[0],l=o[1];r[i]=[s.objectNumber,n],n+=l.sizeInBytes()+1}return r},t.withContextAndObjects=function(n,r,i){return i===void 0&&(i=!0),new t(n,r,i)},t})(BF),EK=(function(){function e(t,n){var r=this;this.parsedObjects=0,this.shouldWaitForTick=function(i){return r.parsedObjects+=i,r.parsedObjects%r.objectsPerTick===0},this.context=t,this.objectsPerTick=n}return e.prototype.serializeToBuffer=function(){return wr(this,void 0,void 0,function(){var t,n,r,i,a,o,s,l,c,u,d,h,f,g,y,v,A;return Sr(this,function(w){switch(w.label){case 0:return[4,this.computeBufferSize()];case 1:t=w.sent(),n=t.size,r=t.header,i=t.indirectObjects,a=t.xref,o=t.trailerDict,s=t.trailer,l=0,c=new Uint8Array(n),l+=r.copyBytesInto(c,l),c[l++]=ze.Newline,c[l++]=ze.Newline,u=0,d=i.length,w.label=2;case 2:return u<d?(h=i[u],f=h[0],g=h[1],y=String(f.objectNumber),l+=Ja(y,c,l),c[l++]=ze.Space,v=String(f.generationNumber),l+=Ja(v,c,l),c[l++]=ze.Space,c[l++]=ze.o,c[l++]=ze.b,c[l++]=ze.j,c[l++]=ze.Newline,l+=g.copyBytesInto(c,l),c[l++]=ze.Newline,c[l++]=ze.e,c[l++]=ze.n,c[l++]=ze.d,c[l++]=ze.o,c[l++]=ze.b,c[l++]=ze.j,c[l++]=ze.Newline,c[l++]=ze.Newline,A=g instanceof _K?g.getObjectsCount():1,this.shouldWaitForTick(A)?[4,lg()]:[3,4]):[3,5];case 3:w.sent(),w.label=4;case 4:return u++,[3,2];case 5:return a&&(l+=a.copyBytesInto(c,l),c[l++]=ze.Newline),o&&(l+=o.copyBytesInto(c,l),c[l++]=ze.Newline,c[l++]=ze.Newline),l+=s.copyBytesInto(c,l),[2,c]}})})},e.prototype.computeIndirectObjectSize=function(t){var n=t[0],r=t[1],i=n.sizeInBytes()+3,a=r.sizeInBytes()+9;return i+a},e.prototype.createTrailerDict=function(){return this.context.obj({Size:this.context.largestObjectNumber+1,Root:this.context.trailerInfo.Root,Encrypt:this.context.trailerInfo.Encrypt,Info:this.context.trailerInfo.Info,ID:this.context.trailerInfo.ID})},e.prototype.computeBufferSize=function(){return wr(this,void 0,void 0,function(){var t,n,r,i,a,o,s,l,c,u,d;return Sr(this,function(h){switch(h.label){case 0:t=u2.forVersion(1,7),n=t.sizeInBytes()+2,r=TK.create(),i=this.context.enumerateIndirectObjects(),a=0,o=i.length,h.label=1;case 1:return a<o?(s=i[a],l=s[0],r.addEntry(l,n),n+=this.computeIndirectObjectSize(s),this.shouldWaitForTick(1)?[4,lg()]:[3,3]):[3,4];case 2:h.sent(),h.label=3;case 3:return a++,[3,1];case 4:return c=n,n+=r.sizeInBytes()+1,u=bNe.of(this.createTrailerDict()),n+=u.sizeInBytes()+2,d=zF.forLastCrossRefSectionOffset(c),n+=d.sizeInBytes(),[2,{size:n,header:t,indirectObjects:i,xref:r,trailerDict:u,trailer:d}]}})})},e.forContext=function(t,n){return new e(t,n)},e})(),NK=(function(e){Mt(t,e);function t(n){var r=e.call(this)||this;return r.data=n,r}return t.prototype.clone=function(){return t.of(this.data.slice())},t.prototype.toString=function(){return"PDFInvalidObject("+this.data.length+" bytes)"},t.prototype.sizeInBytes=function(){return this.data.length},t.prototype.copyBytesInto=function(n,r){for(var i=this.data.length,a=0;a<i;a++)n[r++]=this.data[a];return i},t.of=function(n){return new t(n)},t})(ko),Fu;(function(e){e[e.Deleted=0]="Deleted",e[e.Uncompressed=1]="Uncompressed",e[e.Compressed=2]="Compressed"})(Fu||(Fu={}));var ANe=(function(e){Mt(t,e);function t(n,r,i){i===void 0&&(i=!0);var a=e.call(this,n,i)||this;return a.computeIndex=function(){for(var o=[],s=0,l=0,c=a.entries.length;l<c;l++){var u=a.entries[l],d=a.entries[l-1];l===0?o.push(u.ref.objectNumber):u.ref.objectNumber-d.ref.objectNumber>1&&(o.push(s),o.push(u.ref.objectNumber),s=0),s+=1}return o.push(s),o},a.computeEntryTuples=function(){for(var o=new Array(a.entries.length),s=0,l=a.entries.length;s<l;s++){var c=a.entries[s];if(c.type===Fu.Deleted){var u=c.type,d=c.nextFreeObjectNumber,h=c.ref;o[s]=[u,d,h.generationNumber]}if(c.type===Fu.Uncompressed){var u=c.type,f=c.offset,h=c.ref;o[s]=[u,f,h.generationNumber]}if(c.type===Fu.Compressed){var u=c.type,g=c.objectStreamRef,y=c.index;o[s]=[u,g.objectNumber,y]}}return o},a.computeMaxEntryByteWidths=function(){for(var o=a.entryTuplesCache.access(),s=[0,0,0],l=0,c=o.length;l<c;l++){var u=o[l],d=u[0],h=u[1],f=u[2],g=Qb(d),y=Qb(h),v=Qb(f);g>s[0]&&(s[0]=g),y>s[1]&&(s[1]=y),v>s[2]&&(s[2]=v)}return s},a.entries=r||[],a.entryTuplesCache=Gc.populatedBy(a.computeEntryTuples),a.maxByteWidthsCache=Gc.populatedBy(a.computeMaxEntryByteWidths),a.indexCache=Gc.populatedBy(a.computeIndex),n.set(je.of("Type"),je.of("XRef")),a}return t.prototype.addDeletedEntry=function(n,r){var i=Fu.Deleted;this.entries.push({type:i,ref:n,nextFreeObjectNumber:r}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},t.prototype.addUncompressedEntry=function(n,r){var i=Fu.Uncompressed;this.entries.push({type:i,ref:n,offset:r}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},t.prototype.addCompressedEntry=function(n,r,i){var a=Fu.Compressed;this.entries.push({type:a,ref:n,objectStreamRef:r,index:i}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},t.prototype.clone=function(n){var r=this,i=r.dict,a=r.entries,o=r.encode;return t.of(i.clone(n),a.slice(),o)},t.prototype.getContentsString=function(){for(var n=this.entryTuplesCache.access(),r=this.maxByteWidthsCache.access(),i="",a=0,o=n.length;a<o;a++){for(var s=n[a],l=s[0],c=s[1],u=s[2],d=Kh($h(l)),h=Kh($h(c)),f=Kh($h(u)),g=r[0]-1;g>=0;g--)i+=(d[g]||0).toString(2);for(var g=r[1]-1;g>=0;g--)i+=(h[g]||0).toString(2);for(var g=r[2]-1;g>=0;g--)i+=(f[g]||0).toString(2)}return i},t.prototype.getUnencodedContents=function(){for(var n=this.entryTuplesCache.access(),r=this.maxByteWidthsCache.access(),i=new Uint8Array(this.getUnencodedContentsSize()),a=0,o=0,s=n.length;o<s;o++){for(var l=n[o],c=l[0],u=l[1],d=l[2],h=Kh($h(c)),f=Kh($h(u)),g=Kh($h(d)),y=r[0]-1;y>=0;y--)i[a++]=h[y]||0;for(var y=r[1]-1;y>=0;y--)i[a++]=f[y]||0;for(var y=r[2]-1;y>=0;y--)i[a++]=g[y]||0}return i},t.prototype.getUnencodedContentsSize=function(){var n=this.maxByteWidthsCache.access(),r=H_e(n);return r*this.entries.length},t.prototype.updateDict=function(){e.prototype.updateDict.call(this);var n=this.maxByteWidthsCache.access(),r=this.indexCache.access(),i=this.dict.context;this.dict.set(je.of("W"),i.obj(n)),this.dict.set(je.of("Index"),i.obj(r))},t.create=function(n,r){r===void 0&&(r=!0);var i=new t(n,[],r);return i.addDeletedEntry(fi.of(0,65535),0),i},t.of=function(n,r,i){return i===void 0&&(i=!0),new t(n,r,i)},t})(BF),wNe=(function(e){Mt(t,e);function t(n,r,i,a){var o=e.call(this,n,r)||this;return o.encodeStreams=i,o.objectsPerStream=a,o}return t.prototype.computeBufferSize=function(){return wr(this,void 0,void 0,function(){var n,r,i,a,o,s,l,c,g,y,u,A,d,h,v,f,g,y,v,A,w,S,_,E;return Sr(this,function(T){switch(T.label){case 0:n=this.context.largestObjectNumber+1,r=u2.forVersion(1,7),i=r.sizeInBytes()+2,a=ANe.create(this.createTrailerDict(),this.encodeStreams),o=[],s=[],l=[],c=this.context.enumerateIndirectObjects(),g=0,y=c.length,T.label=1;case 1:return g<y?(u=c[g],A=u[0],d=u[1],h=A===this.context.trailerInfo.Encrypt||d instanceof xs||d instanceof NK||A.generationNumber!==0,h?(o.push(u),a.addUncompressedEntry(A,i),i+=this.computeIndirectObjectSize(u),this.shouldWaitForTick(1)?[4,lg()]:[3,3]):[3,4]):[3,6];case 2:T.sent(),T.label=3;case 3:return[3,5];case 4:v=rA(s),f=rA(l),(!v||v.length%this.objectsPerStream===0)&&(v=[],s.push(v),f=fi.of(n++),l.push(f)),a.addCompressedEntry(A,f,v.length),v.push(u),T.label=5;case 5:return g++,[3,1];case 6:g=0,y=s.length,T.label=7;case 7:return g<y?(v=s[g],A=l[g],w=_K.withContextAndObjects(this.context,v,this.encodeStreams),a.addUncompressedEntry(A,i),i+=this.computeIndirectObjectSize([A,w]),o.push([A,w]),this.shouldWaitForTick(v.length)?[4,lg()]:[3,9]):[3,10];case 8:T.sent(),T.label=9;case 9:return g++,[3,7];case 10:return S=fi.of(n++),a.dict.set(je.of("Size"),nr.of(n)),a.addUncompressedEntry(S,i),_=i,i+=this.computeIndirectObjectSize([S,a]),o.push([S,a]),E=zF.forLastCrossRefSectionOffset(_),i+=E.sizeInBytes(),[2,{size:i,header:r,indirectObjects:o,trailer:E}]}})})},t.forContext=function(n,r,i,a){return i===void 0&&(i=!0),a===void 0&&(a=50),new t(n,r,i,a)},t})(EK),qn=(function(e){Mt(t,e);function t(n){var r=e.call(this)||this;return r.value=n,r}return t.prototype.asBytes=function(){for(var n=this.value+(this.value.length%2===1?"0":""),r=n.length,i=new Uint8Array(n.length/2),a=0,o=0;a<r;){var s=parseInt(n.substring(a,a+2),16);i[o]=s,a+=2,o+=1}return i},t.prototype.decodeText=function(){var n=this.asBytes();return uK(n)?sK(n):xK(n)},t.prototype.decodeDate=function(){var n=this.decodeText(),r=rK(n);if(!r)throw new bK(n);return r},t.prototype.asString=function(){return this.value},t.prototype.clone=function(){return t.of(this.value)},t.prototype.toString=function(){return"<"+this.value+">"},t.prototype.sizeInBytes=function(){return this.value.length+2},t.prototype.copyBytesInto=function(n,r){return n[r++]=ze.LessThan,r+=Ja(this.value,n,r),n[r++]=ze.GreaterThan,this.value.length+2},t.of=function(n){return new t(n)},t.fromText=function(n){for(var r=$_e(n),i="",a=0,o=r.length;a<o;a++)i+=Ry(r[a],4);return new t(i)},t})(ko),oA=(function(){function e(t,n){this.encoding=t===ey.ZapfDingbats?Gx.ZapfDingbats:t===ey.Symbol?Gx.Symbol:Gx.WinAnsi,this.font=FEe.load(t),this.fontName=this.font.FontName,this.customName=n}return e.prototype.encodeText=function(t){for(var n=this.encodeTextAsGlyphs(t),r=new Array(n.length),i=0,a=n.length;i<a;i++)r[i]=s2(n[i].code);return qn.of(r.join(""))},e.prototype.widthOfTextAtSize=function(t,n){for(var r=this.encodeTextAsGlyphs(t),i=0,a=0,o=r.length;a<o;a++){var s=r[a].name,l=(r[a+1]||{}).name,c=this.font.getXAxisKerningForPair(s,l)||0;i+=this.widthOfGlyph(s)+c}var u=n/1e3;return i*u},e.prototype.heightOfFontAtSize=function(t,n){n===void 0&&(n={});var r=n.descender,i=r===void 0?!0:r,a=this.font,o=a.Ascender,s=a.Descender,l=a.FontBBox,c=o||l[3],u=s||l[1],d=c-u;return i||(d+=s||0),d/1e3*t},e.prototype.sizeOfFontAtHeight=function(t){var n=this.font,r=n.Ascender,i=n.Descender,a=n.FontBBox,o=r||a[3],s=i||a[1];return 1e3*t/(o-s)},e.prototype.embedIntoContext=function(t,n){var r=t.obj({Type:"Font",Subtype:"Type1",BaseFont:this.customName||this.fontName,Encoding:this.encoding===Gx.WinAnsi?"WinAnsiEncoding":void 0});return n?(t.assign(n,r),n):t.register(r)},e.prototype.widthOfGlyph=function(t){return this.font.getWidthOfGlyph(t)||250},e.prototype.encodeTextAsGlyphs=function(t){for(var n=Array.from(t),r=new Array(n.length),i=0,a=n.length;i<a;i++){var o=I_e(n[i]);r[i]=this.encoding.encodeUnicodeCodePoint(o)}return r},e.for=function(t,n){return new e(t,n)},e})(),SNe=function(e,t){for(var n=new Array(e.length),r=0,i=e.length;r<i;r++){var a=e[r],o=FO(e1(t(a))),s=FO.apply(void 0,a.codePoints.map(DNe));n[r]=[o,s]}return kNe(n)},kNe=function(e){return`/CIDInit /ProcSet findresource begin-12 dict begin-begincmap-/CIDSystemInfo <<- /Registry (Adobe)- /Ordering (UCS)- /Supplement 0->> def-/CMapName /Adobe-Identity-UCS def-/CMapType 2 def-1 begincodespacerange-<0000><ffff>-endcodespacerange-`+e.length+` beginbfchar-`+e.map(function(t){var n=t[0],r=t[1];return n+" "+r}).join(`-`)+`-endbfchar-endcmap-CMapName currentdict /CMap defineresource pop-end-end`},FO=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"<"+e.join("")+">"},e1=function(e){return Ry(e,4)},DNe=function(e){if(Y_e(e))return e1(e);if(J_e(e)){var t=aK(e),n=oK(e);return""+e1(t)+e1(n)}var r=s2(e),i="0x"+r+" is not a valid UTF-8 or UTF-16 codepoint.";throw new Error(i)},CNe=function(e){var t=0,n=function(r){t|=1<<r-1};return e.fixedPitch&&n(1),e.serif&&n(2),n(3),e.script&&n(4),e.nonsymbolic&&n(6),e.italic&&n(7),e.allCap&&n(17),e.smallCap&&n(18),e.forceBold&&n(19),t},TNe=function(e){var t=e["OS/2"]?e["OS/2"].sFamilyClass:0,n=CNe({fixedPitch:e.post.isFixedPitch,serif:1<=t&&t<=7,script:t===10,italic:e.head.macStyle.italic});return n},di=(function(e){Mt(t,e);function t(n){var r=e.call(this)||this;return r.value=n,r}return t.prototype.asBytes=function(){for(var n=[],r="",i=!1,a=function(d){d!==void 0&&n.push(d),i=!1},o=0,s=this.value.length;o<s;o++){var l=this.value[o],c=ar(l),u=this.value[o+1];i?c===ze.Newline||c===ze.CarriageReturn?a():c===ze.n?a(ze.Newline):c===ze.r?a(ze.CarriageReturn):c===ze.t?a(ze.Tab):c===ze.b?a(ze.Backspace):c===ze.f?a(ze.FormFeed):c===ze.LeftParen?a(ze.LeftParen):c===ze.RightParen?a(ze.RightParen):c===ze.Backspace?a(ze.BackSlash):c>=ze.Zero&&c<=ze.Seven?(r+=l,(r.length===3||!(u>="0"&&u<="7"))&&(a(parseInt(r,8)),r="")):a(c):c===ze.BackSlash?i=!0:a(c)}return new Uint8Array(n)},t.prototype.decodeText=function(){var n=this.asBytes();return uK(n)?sK(n):xK(n)},t.prototype.decodeDate=function(){var n=this.decodeText(),r=rK(n);if(!r)throw new bK(n);return r},t.prototype.asString=function(){return this.value},t.prototype.clone=function(){return t.of(this.value)},t.prototype.toString=function(){return"("+this.value+")"},t.prototype.sizeInBytes=function(){return this.value.length+2},t.prototype.copyBytesInto=function(n,r){return n[r++]=ze.LeftParen,r+=Ja(this.value,n,r),n[r++]=ze.RightParen,this.value.length+2},t.of=function(n){return new t(n)},t.fromDate=function(n){var r=Nl(String(n.getUTCFullYear()),4,"0"),i=Nl(String(n.getUTCMonth()+1),2,"0"),a=Nl(String(n.getUTCDate()),2,"0"),o=Nl(String(n.getUTCHours()),2,"0"),s=Nl(String(n.getUTCMinutes()),2,"0"),l=Nl(String(n.getUTCSeconds()),2,"0");return new t("D:"+r+i+a+o+s+l+"Z")},t})(ko),WF=(function(){function e(t,n,r,i){var a=this;this.allGlyphsInFontSortedById=function(){for(var o=new Array(a.font.characterSet.length),s=0,l=o.length;s<l;s++){var c=a.font.characterSet[s];o[s]=a.font.glyphForCodePoint(c)}return q_e(o.sort(G_e),function(u){return u.id})},this.font=t,this.scale=1e3/this.font.unitsPerEm,this.fontData=n,this.fontName=this.font.postscriptName||"Font",this.customName=r,this.fontFeatures=i,this.baseFontName="",this.glyphCache=Gc.populatedBy(this.allGlyphsInFontSortedById)}return e.for=function(t,n,r,i){return wr(this,void 0,void 0,function(){var a;return Sr(this,function(o){switch(o.label){case 0:return[4,t.create(n)];case 1:return a=o.sent(),[2,new e(a,n,r,i)]}})})},e.prototype.encodeText=function(t){for(var n=this.font.layout(t,this.fontFeatures).glyphs,r=new Array(n.length),i=0,a=n.length;i<a;i++)r[i]=Ry(n[i].id,4);return qn.of(r.join(""))},e.prototype.widthOfTextAtSize=function(t,n){for(var r=this.font.layout(t,this.fontFeatures).glyphs,i=0,a=0,o=r.length;a<o;a++)i+=r[a].advanceWidth*this.scale;var s=n/1e3;return i*s},e.prototype.heightOfFontAtSize=function(t,n){n===void 0&&(n={});var r=n.descender,i=r===void 0?!0:r,a=this.font,o=a.ascent,s=a.descent,l=a.bbox,c=(o||l.maxY)*this.scale,u=(s||l.minY)*this.scale,d=c-u;return i||(d-=Math.abs(s)||0),d/1e3*t},e.prototype.sizeOfFontAtHeight=function(t){var n=this.font,r=n.ascent,i=n.descent,a=n.bbox,o=(r||a.maxY)*this.scale,s=(i||a.minY)*this.scale;return 1e3*t/(o-s)},e.prototype.embedIntoContext=function(t,n){return this.baseFontName=this.customName||t.addRandomSuffix(this.fontName),this.embedFontDict(t,n)},e.prototype.embedFontDict=function(t,n){return wr(this,void 0,void 0,function(){var r,i,a;return Sr(this,function(o){switch(o.label){case 0:return[4,this.embedCIDFontDict(t)];case 1:return r=o.sent(),i=this.embedUnicodeCmap(t),a=t.obj({Type:"Font",Subtype:"Type0",BaseFont:this.baseFontName,Encoding:"Identity-H",DescendantFonts:[r],ToUnicode:i}),n?(t.assign(n,a),[2,n]):[2,t.register(a)]}})})},e.prototype.isCFF=function(){return this.font.cff},e.prototype.embedCIDFontDict=function(t){return wr(this,void 0,void 0,function(){var n,r;return Sr(this,function(i){switch(i.label){case 0:return[4,this.embedFontDescriptor(t)];case 1:return n=i.sent(),r=t.obj({Type:"Font",Subtype:this.isCFF()?"CIDFontType0":"CIDFontType2",CIDToGIDMap:"Identity",BaseFont:this.baseFontName,CIDSystemInfo:{Registry:di.of("Adobe"),Ordering:di.of("Identity"),Supplement:0},FontDescriptor:n,W:this.computeWidths()}),[2,t.register(r)]}})})},e.prototype.embedFontDescriptor=function(t){return wr(this,void 0,void 0,function(){var n,r,i,a,o,s,l,c,u,d,h,f,g,y,v;return Sr(this,function(A){switch(A.label){case 0:return[4,this.embedFontStream(t)];case 1:return n=A.sent(),r=this.scale,i=this.font,a=i.italicAngle,o=i.ascent,s=i.descent,l=i.capHeight,c=i.xHeight,u=this.font.bbox,d=u.minX,h=u.minY,f=u.maxX,g=u.maxY,y=t.obj((v={Type:"FontDescriptor",FontName:this.baseFontName,Flags:TNe(this.font),FontBBox:[d*r,h*r,f*r,g*r],ItalicAngle:a,Ascent:o*r,Descent:s*r,CapHeight:(l||o)*r,XHeight:(c||0)*r,StemV:0},v[this.isCFF()?"FontFile3":"FontFile2"]=n,v)),[2,t.register(y)]}})})},e.prototype.serializeFont=function(){return wr(this,void 0,void 0,function(){return Sr(this,function(t){return[2,this.fontData]})})},e.prototype.embedFontStream=function(t){return wr(this,void 0,void 0,function(){var n,r,i;return Sr(this,function(a){switch(a.label){case 0:return i=(r=t).flateStream,[4,this.serializeFont()];case 1:return n=i.apply(r,[a.sent(),{Subtype:this.isCFF()?"CIDFontType0C":void 0}]),[2,t.register(n)]}})})},e.prototype.embedUnicodeCmap=function(t){var n=SNe(this.glyphCache.access(),this.glyphId.bind(this)),r=t.flateStream(n);return t.register(r)},e.prototype.glyphId=function(t){return t?t.id:-1},e.prototype.computeWidths=function(){for(var t=this.glyphCache.access(),n=[],r=[],i=0,a=t.length;i<a;i++){var o=t[i],s=t[i-1],l=this.glyphId(o),c=this.glyphId(s);i===0?n.push(l):l-c!==1&&(n.push(r),n.push(l),r=[]),r.push(o.advanceWidth*this.scale)}return n.push(r),n},e})(),_Ne=(function(e){Mt(t,e);function t(n,r,i,a){var o=e.call(this,n,r,i,a)||this;return o.subset=o.font.createSubset(),o.glyphs=[],o.glyphCache=Gc.populatedBy(function(){return o.glyphs}),o.glyphIdMap=new Map,o}return t.for=function(n,r,i,a){return wr(this,void 0,void 0,function(){var o;return Sr(this,function(s){switch(s.label){case 0:return[4,n.create(r)];case 1:return o=s.sent(),[2,new t(o,r,i,a)]}})})},t.prototype.encodeText=function(n){for(var r=this.font.layout(n,this.fontFeatures).glyphs,i=new Array(r.length),a=0,o=r.length;a<o;a++){var s=r[a],l=this.subset.includeGlyph(s);this.glyphs[l-1]=s,this.glyphIdMap.set(s.id,l),i[a]=Ry(l,4)}return this.glyphCache.invalidate(),qn.of(i.join(""))},t.prototype.isCFF=function(){return this.subset.cff},t.prototype.glyphId=function(n){return n?this.glyphIdMap.get(n.id):-1},t.prototype.serializeFont=function(){var n=this;return new Promise(function(r,i){var a=[];n.subset.encodeStream().on("data",function(o){return a.push(o)}).on("end",function(){return r(V_e(a))}).on("error",function(o){return i(o)})})},t})(WF),B_;(function(e){e.Source="Source",e.Data="Data",e.Alternative="Alternative",e.Supplement="Supplement",e.EncryptedPayload="EncryptedPayload",e.FormData="EncryptedPayload",e.Schema="Schema",e.Unspecified="Unspecified"})(B_||(B_={}));var ENe=(function(){function e(t,n,r){r===void 0&&(r={}),this.fileData=t,this.fileName=n,this.options=r}return e.for=function(t,n,r){return r===void 0&&(r={}),new e(t,n,r)},e.prototype.embedIntoContext=function(t,n){return wr(this,void 0,void 0,function(){var r,i,a,o,s,l,c,u,d;return Sr(this,function(h){return r=this.options,i=r.mimeType,a=r.description,o=r.creationDate,s=r.modificationDate,l=r.afRelationship,c=t.flateStream(this.fileData,{Type:"EmbeddedFile",Subtype:i??void 0,Params:{Size:this.fileData.length,CreationDate:o?di.fromDate(o):void 0,ModDate:s?di.fromDate(s):void 0}}),u=t.register(c),d=t.obj({Type:"Filespec",F:di.of(this.fileName),UF:qn.fromText(this.fileName),EF:{F:u},Desc:a?qn.fromText(a):void 0,AFRelationship:l??void 0}),n?(t.assign(n,d),[2,n]):[2,t.register(d)]})})},e})(),RO=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487],Hp;(function(e){e.DeviceGray="DeviceGray",e.DeviceRGB="DeviceRGB",e.DeviceCMYK="DeviceCMYK"})(Hp||(Hp={}));var NNe={1:Hp.DeviceGray,3:Hp.DeviceRGB,4:Hp.DeviceCMYK},FK=(function(){function e(t,n,r,i,a){this.imageData=t,this.bitsPerComponent=n,this.width=r,this.height=i,this.colorSpace=a}return e.for=function(t){return wr(this,void 0,void 0,function(){var n,r,i,a,o,s,l,c,u,d;return Sr(this,function(h){if(n=new DataView(t.buffer),r=n.getUint16(0),r!==65496)throw new Error("SOI not found in JPEG");for(i=2;i<n.byteLength&&(a=n.getUint16(i),i+=2,!RO.includes(a));)i+=n.getUint16(i);if(!RO.includes(a))throw new Error("Invalid JPEG");if(i+=2,o=n.getUint8(i++),s=n.getUint16(i),i+=2,l=n.getUint16(i),i+=2,c=n.getUint8(i++),u=NNe[c],!u)throw new Error("Unknown JPEG channel.");return d=u,[2,new e(t,o,l,s,d)]})})},e.prototype.embedIntoContext=function(t,n){return wr(this,void 0,void 0,function(){var r;return Sr(this,function(i){return r=t.stream(this.imageData,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.bitsPerComponent,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode",Decode:this.colorSpace===Hp.DeviceCMYK?[1,0,1,0,1,0,1,0]:void 0}),n?(t.assign(n,r),[2,n]):[2,t.register(r)]})})},e})(),NC={},PO;function Td(){return PO||(PO=1,(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function n(a,o){return Object.prototype.hasOwnProperty.call(a,o)}e.assign=function(a){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var s=o.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var l in s)n(s,l)&&(a[l]=s[l])}}return a},e.shrinkBuf=function(a,o){return a.length===o?a:a.subarray?a.subarray(0,o):(a.length=o,a)};var r={arraySet:function(a,o,s,l,c){if(o.subarray&&a.subarray){a.set(o.subarray(s,s+l),c);return}for(var u=0;u<l;u++)a[c+u]=o[s+u]},flattenChunks:function(a){var o,s,l,c,u,d;for(l=0,o=0,s=a.length;o<s;o++)l+=a[o].length;for(d=new Uint8Array(l),c=0,o=0,s=a.length;o<s;o++)u=a[o],d.set(u,c),c+=u.length;return d}},i={arraySet:function(a,o,s,l,c){for(var u=0;u<l;u++)a[c+u]=o[s+u]},flattenChunks:function(a){return[].concat.apply([],a)}};e.setTyped=function(a){a?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)})(NC)),NC}var tp={},Sl={},cf={},IO;function FNe(){if(IO)return cf;IO=1;var e=Td(),t=4,n=0,r=1,i=2;function a(U){for(var Ae=U.length;--Ae>=0;)U[Ae]=0}var o=0,s=1,l=2,c=3,u=258,d=29,h=256,f=h+1+d,g=30,y=19,v=2*f+1,A=15,w=16,S=7,_=256,E=16,T=17,D=18,I=[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],j=[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],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=512,W=new Array((f+2)*2);a(W);var P=new Array(g*2);a(P);var Z=new Array(B);a(Z);var Q=new Array(u-c+1);a(Q);var X=new Array(d);a(X);var q=new Array(g);a(q);function te(U,Ae,se,Te,$){this.static_tree=U,this.extra_bits=Ae,this.extra_base=se,this.elems=Te,this.max_length=$,this.has_stree=U&&U.length}var J,ee,le;function G(U,Ae){this.dyn_tree=U,this.max_code=0,this.stat_desc=Ae}function xe(U){return U<256?Z[U]:Z[256+(U>>>7)]}function ge(U,Ae){U.pending_buf[U.pending++]=Ae&255,U.pending_buf[U.pending++]=Ae>>>8&255}function ue(U,Ae,se){U.bi_valid>w-se?(U.bi_buf|=Ae<<U.bi_valid&65535,ge(U,U.bi_buf),U.bi_buf=Ae>>w-U.bi_valid,U.bi_valid+=se-w):(U.bi_buf|=Ae<<U.bi_valid&65535,U.bi_valid+=se)}function ce(U,Ae,se){ue(U,se[Ae*2],se[Ae*2+1])}function ye(U,Ae){var se=0;do se|=U&1,U>>>=1,se<<=1;while(--Ae>0);return se>>>1}function Fe(U){U.bi_valid===16?(ge(U,U.bi_buf),U.bi_buf=0,U.bi_valid=0):U.bi_valid>=8&&(U.pending_buf[U.pending++]=U.bi_buf&255,U.bi_buf>>=8,U.bi_valid-=8)}function Oe(U,Ae){var se=Ae.dyn_tree,Te=Ae.max_code,$=Ae.stat_desc.static_tree,de=Ae.stat_desc.has_stree,F=Ae.stat_desc.extra_bits,De=Ae.stat_desc.extra_base,He=Ae.stat_desc.max_length,b,ae,M,k,O,H,Ne=0;for(k=0;k<=A;k++)U.bl_count[k]=0;for(se[U.heap[U.heap_max]*2+1]=0,b=U.heap_max+1;b<v;b++)ae=U.heap[b],k=se[se[ae*2+1]*2+1]+1,k>He&&(k=He,Ne++),se[ae*2+1]=k,!(ae>Te)&&(U.bl_count[k]++,O=0,ae>=De&&(O=F[ae-De]),H=se[ae*2],U.opt_len+=H*(k+O),de&&(U.static_len+=H*($[ae*2+1]+O)));if(Ne!==0){do{for(k=He-1;U.bl_count[k]===0;)k--;U.bl_count[k]--,U.bl_count[k+1]+=2,U.bl_count[He]--,Ne-=2}while(Ne>0);for(k=He;k!==0;k--)for(ae=U.bl_count[k];ae!==0;)M=U.heap[--b],!(M>Te)&&(se[M*2+1]!==k&&(U.opt_len+=(k-se[M*2+1])*se[M*2],se[M*2+1]=k),ae--)}}function Le(U,Ae,se){var Te=new Array(A+1),$=0,de,F;for(de=1;de<=A;de++)Te[de]=$=$+se[de-1]<<1;for(F=0;F<=Ae;F++){var De=U[F*2+1];De!==0&&(U[F*2]=ye(Te[De]++,De))}}function Re(){var U,Ae,se,Te,$,de=new Array(A+1);for(se=0,Te=0;Te<d-1;Te++)for(X[Te]=se,U=0;U<1<<I[Te];U++)Q[se++]=Te;for(Q[se-1]=Te,$=0,Te=0;Te<16;Te++)for(q[Te]=$,U=0;U<1<<j[Te];U++)Z[$++]=Te;for($>>=7;Te<g;Te++)for(q[Te]=$<<7,U=0;U<1<<j[Te]-7;U++)Z[256+$++]=Te;for(Ae=0;Ae<=A;Ae++)de[Ae]=0;for(U=0;U<=143;)W[U*2+1]=8,U++,de[8]++;for(;U<=255;)W[U*2+1]=9,U++,de[9]++;for(;U<=279;)W[U*2+1]=7,U++,de[7]++;for(;U<=287;)W[U*2+1]=8,U++,de[8]++;for(Le(W,f+1,de),U=0;U<g;U++)P[U*2+1]=5,P[U*2]=ye(U,5);J=new te(W,I,h+1,f,A),ee=new te(P,j,0,g,A),le=new te(new Array(0),R,0,y,S)}function We(U){var Ae;for(Ae=0;Ae<f;Ae++)U.dyn_ltree[Ae*2]=0;for(Ae=0;Ae<g;Ae++)U.dyn_dtree[Ae*2]=0;for(Ae=0;Ae<y;Ae++)U.bl_tree[Ae*2]=0;U.dyn_ltree[_*2]=1,U.opt_len=U.static_len=0,U.last_lit=U.matches=0}function V(U){U.bi_valid>8?ge(U,U.bi_buf):U.bi_valid>0&&(U.pending_buf[U.pending++]=U.bi_buf),U.bi_buf=0,U.bi_valid=0}function ve(U,Ae,se,Te){V(U),ge(U,se),ge(U,~se),e.arraySet(U.pending_buf,U.window,Ae,se,U.pending),U.pending+=se}function oe(U,Ae,se,Te){var $=Ae*2,de=se*2;return U[$]<U[de]||U[$]===U[de]&&Te[Ae]<=Te[se]}function re(U,Ae,se){for(var Te=U.heap[se],$=se<<1;$<=U.heap_len&&($<U.heap_len&&oe(Ae,U.heap[$+1],U.heap[$],U.depth)&&$++,!oe(Ae,Te,U.heap[$],U.depth));)U.heap[se]=U.heap[$],se=$,$<<=1;U.heap[se]=Te}function ne(U,Ae,se){var Te,$,de=0,F,De;if(U.last_lit!==0)do Te=U.pending_buf[U.d_buf+de*2]<<8|U.pending_buf[U.d_buf+de*2+1],$=U.pending_buf[U.l_buf+de],de++,Te===0?ce(U,$,Ae):(F=Q[$],ce(U,F+h+1,Ae),De=I[F],De!==0&&($-=X[F],ue(U,$,De)),Te--,F=xe(Te),ce(U,F,se),De=j[F],De!==0&&(Te-=q[F],ue(U,Te,De)));while(de<U.last_lit);ce(U,_,Ae)}function be(U,Ae){var se=Ae.dyn_tree,Te=Ae.stat_desc.static_tree,$=Ae.stat_desc.has_stree,de=Ae.stat_desc.elems,F,De,He=-1,b;for(U.heap_len=0,U.heap_max=v,F=0;F<de;F++)se[F*2]!==0?(U.heap[++U.heap_len]=He=F,U.depth[F]=0):se[F*2+1]=0;for(;U.heap_len<2;)b=U.heap[++U.heap_len]=He<2?++He:0,se[b*2]=1,U.depth[b]=0,U.opt_len--,$&&(U.static_len-=Te[b*2+1]);for(Ae.max_code=He,F=U.heap_len>>1;F>=1;F--)re(U,se,F);b=de;do F=U.heap[1],U.heap[1]=U.heap[U.heap_len--],re(U,se,1),De=U.heap[1],U.heap[--U.heap_max]=F,U.heap[--U.heap_max]=De,se[b*2]=se[F*2]+se[De*2],U.depth[b]=(U.depth[F]>=U.depth[De]?U.depth[F]:U.depth[De])+1,se[F*2+1]=se[De*2+1]=b,U.heap[1]=b++,re(U,se,1);while(U.heap_len>=2);U.heap[--U.heap_max]=U.heap[1],Oe(U,Ae),Le(se,He,U.bl_count)}function Ue(U,Ae,se){var Te,$=-1,de,F=Ae[1],De=0,He=7,b=4;for(F===0&&(He=138,b=3),Ae[(se+1)*2+1]=65535,Te=0;Te<=se;Te++)de=F,F=Ae[(Te+1)*2+1],!(++De<He&&de===F)&&(De<b?U.bl_tree[de*2]+=De:de!==0?(de!==$&&U.bl_tree[de*2]++,U.bl_tree[E*2]++):De<=10?U.bl_tree[T*2]++:U.bl_tree[D*2]++,De=0,$=de,F===0?(He=138,b=3):de===F?(He=6,b=3):(He=7,b=4))}function Me(U,Ae,se){var Te,$=-1,de,F=Ae[1],De=0,He=7,b=4;for(F===0&&(He=138,b=3),Te=0;Te<=se;Te++)if(de=F,F=Ae[(Te+1)*2+1],!(++De<He&&de===F)){if(De<b)do ce(U,de,U.bl_tree);while(--De!==0);else de!==0?(de!==$&&(ce(U,de,U.bl_tree),De--),ce(U,E,U.bl_tree),ue(U,De-3,2)):De<=10?(ce(U,T,U.bl_tree),ue(U,De-3,3)):(ce(U,D,U.bl_tree),ue(U,De-11,7));De=0,$=de,F===0?(He=138,b=3):de===F?(He=6,b=3):(He=7,b=4)}}function Ee(U){var Ae;for(Ue(U,U.dyn_ltree,U.l_desc.max_code),Ue(U,U.dyn_dtree,U.d_desc.max_code),be(U,U.bl_desc),Ae=y-1;Ae>=3&&U.bl_tree[z[Ae]*2+1]===0;Ae--);return U.opt_len+=3*(Ae+1)+5+5+4,Ae}function Se(U,Ae,se,Te){var $;for(ue(U,Ae-257,5),ue(U,se-1,5),ue(U,Te-4,4),$=0;$<Te;$++)ue(U,U.bl_tree[z[$]*2+1],3);Me(U,U.dyn_ltree,Ae-1),Me(U,U.dyn_dtree,se-1)}function Ce(U){var Ae=4093624447,se;for(se=0;se<=31;se++,Ae>>>=1)if(Ae&1&&U.dyn_ltree[se*2]!==0)return n;if(U.dyn_ltree[18]!==0||U.dyn_ltree[20]!==0||U.dyn_ltree[26]!==0)return r;for(se=32;se<h;se++)if(U.dyn_ltree[se*2]!==0)return r;return n}var pe=!1;function ke(U){pe||(Re(),pe=!0),U.l_desc=new G(U.dyn_ltree,J),U.d_desc=new G(U.dyn_dtree,ee),U.bl_desc=new G(U.bl_tree,le),U.bi_buf=0,U.bi_valid=0,We(U)}function Ve(U,Ae,se,Te){ue(U,(o<<1)+(Te?1:0),3),ve(U,Ae,se)}function Xe(U){ue(U,s<<1,3),ce(U,_,W),Fe(U)}function it(U,Ae,se,Te){var $,de,F=0;U.level>0?(U.strm.data_type===i&&(U.strm.data_type=Ce(U)),be(U,U.l_desc),be(U,U.d_desc),F=Ee(U),$=U.opt_len+3+7>>>3,de=U.static_len+3+7>>>3,de<=$&&($=de)):$=de=se+5,se+4<=$&&Ae!==-1?Ve(U,Ae,se,Te):U.strategy===t||de===$?(ue(U,(s<<1)+(Te?1:0),3),ne(U,W,P)):(ue(U,(l<<1)+(Te?1:0),3),Se(U,U.l_desc.max_code+1,U.d_desc.max_code+1,F+1),ne(U,U.dyn_ltree,U.dyn_dtree)),We(U),Te&&V(U)}function et(U,Ae,se){return U.pending_buf[U.d_buf+U.last_lit*2]=Ae>>>8&255,U.pending_buf[U.d_buf+U.last_lit*2+1]=Ae&255,U.pending_buf[U.l_buf+U.last_lit]=se&255,U.last_lit++,Ae===0?U.dyn_ltree[se*2]++:(U.matches++,Ae--,U.dyn_ltree[(Q[se]+h+1)*2]++,U.dyn_dtree[xe(Ae)*2]++),U.last_lit===U.lit_bufsize-1}return cf._tr_init=ke,cf._tr_stored_block=Ve,cf._tr_flush_block=it,cf._tr_tally=et,cf._tr_align=Xe,cf}var FC,MO;function RK(){if(MO)return FC;MO=1;function e(t,n,r,i){for(var a=t&65535|0,o=t>>>16&65535|0,s=0;r!==0;){s=r>2e3?2e3:r,r-=s;do a=a+n[i++]|0,o=o+a|0;while(--s);a%=65521,o%=65521}return a|o<<16|0}return FC=e,FC}var RC,UO;function PK(){if(UO)return RC;UO=1;function e(){for(var r,i=[],a=0;a<256;a++){r=a;for(var o=0;o<8;o++)r=r&1?3988292384^r>>>1:r>>>1;i[a]=r}return i}var t=e();function n(r,i,a,o){var s=t,l=o+a;r^=-1;for(var c=o;c<l;c++)r=r>>>8^s[(r^i[c])&255];return r^-1}return RC=n,RC}var PC,LO;function VF(){return LO||(LO=1,PC={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"}),PC}var OO;function RNe(){if(OO)return Sl;OO=1;var e=Td(),t=FNe(),n=RK(),r=PK(),i=VF(),a=0,o=1,s=3,l=4,c=5,u=0,d=1,h=-2,f=-3,g=-5,y=-1,v=1,A=2,w=3,S=4,_=0,E=2,T=8,D=9,I=15,j=8,R=29,z=256,B=z+1+R,W=30,P=19,Z=2*B+1,Q=15,X=3,q=258,te=q+X+1,J=32,ee=42,le=69,G=73,xe=91,ge=103,ue=113,ce=666,ye=1,Fe=2,Oe=3,Le=4,Re=3;function We(b,ae){return b.msg=i[ae],ae}function V(b){return(b<<1)-(b>4?9:0)}function ve(b){for(var ae=b.length;--ae>=0;)b[ae]=0}function oe(b){var ae=b.state,M=ae.pending;M>b.avail_out&&(M=b.avail_out),M!==0&&(e.arraySet(b.output,ae.pending_buf,ae.pending_out,M,b.next_out),b.next_out+=M,ae.pending_out+=M,b.total_out+=M,b.avail_out-=M,ae.pending-=M,ae.pending===0&&(ae.pending_out=0))}function re(b,ae){t._tr_flush_block(b,b.block_start>=0?b.block_start:-1,b.strstart-b.block_start,ae),b.block_start=b.strstart,oe(b.strm)}function ne(b,ae){b.pending_buf[b.pending++]=ae}function be(b,ae){b.pending_buf[b.pending++]=ae>>>8&255,b.pending_buf[b.pending++]=ae&255}function Ue(b,ae,M,k){var O=b.avail_in;return O>k&&(O=k),O===0?0:(b.avail_in-=O,e.arraySet(ae,b.input,b.next_in,O,M),b.state.wrap===1?b.adler=n(b.adler,ae,O,M):b.state.wrap===2&&(b.adler=r(b.adler,ae,O,M)),b.next_in+=O,b.total_in+=O,O)}function Me(b,ae){var M=b.max_chain_length,k=b.strstart,O,H,Ne=b.prev_length,_e=b.nice_match,Pe=b.strstart>b.w_size-te?b.strstart-(b.w_size-te):0,Ze=b.window,ut=b.w_mask,st=b.prev,Je=b.strstart+q,pt=Ze[k+Ne-1],xt=Ze[k+Ne];b.prev_length>=b.good_match&&(M>>=2),_e>b.lookahead&&(_e=b.lookahead);do if(O=ae,!(Ze[O+Ne]!==xt||Ze[O+Ne-1]!==pt||Ze[O]!==Ze[k]||Ze[++O]!==Ze[k+1])){k+=2,O++;do;while(Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&Ze[++k]===Ze[++O]&&k<Je);if(H=q-(Je-k),k=Je-q,H>Ne){if(b.match_start=ae,Ne=H,H>=_e)break;pt=Ze[k+Ne-1],xt=Ze[k+Ne]}}while((ae=st[ae&ut])>Pe&&--M!==0);return Ne<=b.lookahead?Ne:b.lookahead}function Ee(b){var ae=b.w_size,M,k,O,H,Ne;do{if(H=b.window_size-b.lookahead-b.strstart,b.strstart>=ae+(ae-te)){e.arraySet(b.window,b.window,ae,ae,0),b.match_start-=ae,b.strstart-=ae,b.block_start-=ae,k=b.hash_size,M=k;do O=b.head[--M],b.head[M]=O>=ae?O-ae:0;while(--k);k=ae,M=k;do O=b.prev[--M],b.prev[M]=O>=ae?O-ae:0;while(--k);H+=ae}if(b.strm.avail_in===0)break;if(k=Ue(b.strm,b.window,b.strstart+b.lookahead,H),b.lookahead+=k,b.lookahead+b.insert>=X)for(Ne=b.strstart-b.insert,b.ins_h=b.window[Ne],b.ins_h=(b.ins_h<<b.hash_shift^b.window[Ne+1])&b.hash_mask;b.insert&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[Ne+X-1])&b.hash_mask,b.prev[Ne&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=Ne,Ne++,b.insert--,!(b.lookahead+b.insert<X)););}while(b.lookahead<te&&b.strm.avail_in!==0)}function Se(b,ae){var M=65535;for(M>b.pending_buf_size-5&&(M=b.pending_buf_size-5);;){if(b.lookahead<=1){if(Ee(b),b.lookahead===0&&ae===a)return ye;if(b.lookahead===0)break}b.strstart+=b.lookahead,b.lookahead=0;var k=b.block_start+M;if((b.strstart===0||b.strstart>=k)&&(b.lookahead=b.strstart-k,b.strstart=k,re(b,!1),b.strm.avail_out===0)||b.strstart-b.block_start>=b.w_size-te&&(re(b,!1),b.strm.avail_out===0))return ye}return b.insert=0,ae===l?(re(b,!0),b.strm.avail_out===0?Oe:Le):(b.strstart>b.block_start&&(re(b,!1),b.strm.avail_out===0),ye)}function Ce(b,ae){for(var M,k;;){if(b.lookahead<te){if(Ee(b),b.lookahead<te&&ae===a)return ye;if(b.lookahead===0)break}if(M=0,b.lookahead>=X&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+X-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),M!==0&&b.strstart-M<=b.w_size-te&&(b.match_length=Me(b,M)),b.match_length>=X)if(k=t._tr_tally(b,b.strstart-b.match_start,b.match_length-X),b.lookahead-=b.match_length,b.match_length<=b.max_lazy_match&&b.lookahead>=X){b.match_length--;do b.strstart++,b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+X-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart;while(--b.match_length!==0);b.strstart++}else b.strstart+=b.match_length,b.match_length=0,b.ins_h=b.window[b.strstart],b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+1])&b.hash_mask;else k=t._tr_tally(b,0,b.window[b.strstart]),b.lookahead--,b.strstart++;if(k&&(re(b,!1),b.strm.avail_out===0))return ye}return b.insert=b.strstart<X-1?b.strstart:X-1,ae===l?(re(b,!0),b.strm.avail_out===0?Oe:Le):b.last_lit&&(re(b,!1),b.strm.avail_out===0)?ye:Fe}function pe(b,ae){for(var M,k,O;;){if(b.lookahead<te){if(Ee(b),b.lookahead<te&&ae===a)return ye;if(b.lookahead===0)break}if(M=0,b.lookahead>=X&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+X-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),b.prev_length=b.match_length,b.prev_match=b.match_start,b.match_length=X-1,M!==0&&b.prev_length<b.max_lazy_match&&b.strstart-M<=b.w_size-te&&(b.match_length=Me(b,M),b.match_length<=5&&(b.strategy===v||b.match_length===X&&b.strstart-b.match_start>4096)&&(b.match_length=X-1)),b.prev_length>=X&&b.match_length<=b.prev_length){O=b.strstart+b.lookahead-X,k=t._tr_tally(b,b.strstart-1-b.prev_match,b.prev_length-X),b.lookahead-=b.prev_length-1,b.prev_length-=2;do++b.strstart<=O&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+X-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart);while(--b.prev_length!==0);if(b.match_available=0,b.match_length=X-1,b.strstart++,k&&(re(b,!1),b.strm.avail_out===0))return ye}else if(b.match_available){if(k=t._tr_tally(b,0,b.window[b.strstart-1]),k&&re(b,!1),b.strstart++,b.lookahead--,b.strm.avail_out===0)return ye}else b.match_available=1,b.strstart++,b.lookahead--}return b.match_available&&(k=t._tr_tally(b,0,b.window[b.strstart-1]),b.match_available=0),b.insert=b.strstart<X-1?b.strstart:X-1,ae===l?(re(b,!0),b.strm.avail_out===0?Oe:Le):b.last_lit&&(re(b,!1),b.strm.avail_out===0)?ye:Fe}function ke(b,ae){for(var M,k,O,H,Ne=b.window;;){if(b.lookahead<=q){if(Ee(b),b.lookahead<=q&&ae===a)return ye;if(b.lookahead===0)break}if(b.match_length=0,b.lookahead>=X&&b.strstart>0&&(O=b.strstart-1,k=Ne[O],k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O])){H=b.strstart+q;do;while(k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&k===Ne[++O]&&O<H);b.match_length=q-(H-O),b.match_length>b.lookahead&&(b.match_length=b.lookahead)}if(b.match_length>=X?(M=t._tr_tally(b,1,b.match_length-X),b.lookahead-=b.match_length,b.strstart+=b.match_length,b.match_length=0):(M=t._tr_tally(b,0,b.window[b.strstart]),b.lookahead--,b.strstart++),M&&(re(b,!1),b.strm.avail_out===0))return ye}return b.insert=0,ae===l?(re(b,!0),b.strm.avail_out===0?Oe:Le):b.last_lit&&(re(b,!1),b.strm.avail_out===0)?ye:Fe}function Ve(b,ae){for(var M;;){if(b.lookahead===0&&(Ee(b),b.lookahead===0)){if(ae===a)return ye;break}if(b.match_length=0,M=t._tr_tally(b,0,b.window[b.strstart]),b.lookahead--,b.strstart++,M&&(re(b,!1),b.strm.avail_out===0))return ye}return b.insert=0,ae===l?(re(b,!0),b.strm.avail_out===0?Oe:Le):b.last_lit&&(re(b,!1),b.strm.avail_out===0)?ye:Fe}function Xe(b,ae,M,k,O){this.good_length=b,this.max_lazy=ae,this.nice_length=M,this.max_chain=k,this.func=O}var it;it=[new Xe(0,0,0,0,Se),new Xe(4,4,8,4,Ce),new Xe(4,5,16,8,Ce),new Xe(4,6,32,32,Ce),new Xe(4,4,16,16,pe),new Xe(8,16,32,32,pe),new Xe(8,16,128,128,pe),new Xe(8,32,128,256,pe),new Xe(32,128,258,1024,pe),new Xe(32,258,258,4096,pe)];function et(b){b.window_size=2*b.w_size,ve(b.head),b.max_lazy_match=it[b.level].max_lazy,b.good_match=it[b.level].good_length,b.nice_match=it[b.level].nice_length,b.max_chain_length=it[b.level].max_chain,b.strstart=0,b.block_start=0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=X-1,b.match_available=0,b.ins_h=0}function U(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=T,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(Z*2),this.dyn_dtree=new e.Buf16((2*W+1)*2),this.bl_tree=new e.Buf16((2*P+1)*2),ve(this.dyn_ltree),ve(this.dyn_dtree),ve(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(Q+1),this.heap=new e.Buf16(2*B+1),ve(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*B+1),ve(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ae(b){var ae;return!b||!b.state?We(b,h):(b.total_in=b.total_out=0,b.data_type=E,ae=b.state,ae.pending=0,ae.pending_out=0,ae.wrap<0&&(ae.wrap=-ae.wrap),ae.status=ae.wrap?ee:ue,b.adler=ae.wrap===2?0:1,ae.last_flush=a,t._tr_init(ae),u)}function se(b){var ae=Ae(b);return ae===u&&et(b.state),ae}function Te(b,ae){return!b||!b.state||b.state.wrap!==2?h:(b.state.gzhead=ae,u)}function $(b,ae,M,k,O,H){if(!b)return h;var Ne=1;if(ae===y&&(ae=6),k<0?(Ne=0,k=-k):k>15&&(Ne=2,k-=16),O<1||O>D||M!==T||k<8||k>15||ae<0||ae>9||H<0||H>S)return We(b,h);k===8&&(k=9);var _e=new U;return b.state=_e,_e.strm=b,_e.wrap=Ne,_e.gzhead=null,_e.w_bits=k,_e.w_size=1<<_e.w_bits,_e.w_mask=_e.w_size-1,_e.hash_bits=O+7,_e.hash_size=1<<_e.hash_bits,_e.hash_mask=_e.hash_size-1,_e.hash_shift=~~((_e.hash_bits+X-1)/X),_e.window=new e.Buf8(_e.w_size*2),_e.head=new e.Buf16(_e.hash_size),_e.prev=new e.Buf16(_e.w_size),_e.lit_bufsize=1<<O+6,_e.pending_buf_size=_e.lit_bufsize*4,_e.pending_buf=new e.Buf8(_e.pending_buf_size),_e.d_buf=1*_e.lit_bufsize,_e.l_buf=3*_e.lit_bufsize,_e.level=ae,_e.strategy=H,_e.method=M,se(b)}function de(b,ae){return $(b,ae,T,I,j,_)}function F(b,ae){var M,k,O,H;if(!b||!b.state||ae>c||ae<0)return b?We(b,h):h;if(k=b.state,!b.output||!b.input&&b.avail_in!==0||k.status===ce&&ae!==l)return We(b,b.avail_out===0?g:h);if(k.strm=b,M=k.last_flush,k.last_flush=ae,k.status===ee)if(k.wrap===2)b.adler=0,ne(k,31),ne(k,139),ne(k,8),k.gzhead?(ne(k,(k.gzhead.text?1:0)+(k.gzhead.hcrc?2:0)+(k.gzhead.extra?4:0)+(k.gzhead.name?8:0)+(k.gzhead.comment?16:0)),ne(k,k.gzhead.time&255),ne(k,k.gzhead.time>>8&255),ne(k,k.gzhead.time>>16&255),ne(k,k.gzhead.time>>24&255),ne(k,k.level===9?2:k.strategy>=A||k.level<2?4:0),ne(k,k.gzhead.os&255),k.gzhead.extra&&k.gzhead.extra.length&&(ne(k,k.gzhead.extra.length&255),ne(k,k.gzhead.extra.length>>8&255)),k.gzhead.hcrc&&(b.adler=r(b.adler,k.pending_buf,k.pending,0)),k.gzindex=0,k.status=le):(ne(k,0),ne(k,0),ne(k,0),ne(k,0),ne(k,0),ne(k,k.level===9?2:k.strategy>=A||k.level<2?4:0),ne(k,Re),k.status=ue);else{var Ne=T+(k.w_bits-8<<4)<<8,_e=-1;k.strategy>=A||k.level<2?_e=0:k.level<6?_e=1:k.level===6?_e=2:_e=3,Ne|=_e<<6,k.strstart!==0&&(Ne|=J),Ne+=31-Ne%31,k.status=ue,be(k,Ne),k.strstart!==0&&(be(k,b.adler>>>16),be(k,b.adler&65535)),b.adler=1}if(k.status===le)if(k.gzhead.extra){for(O=k.pending;k.gzindex<(k.gzhead.extra.length&65535)&&!(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),oe(b),O=k.pending,k.pending===k.pending_buf_size));)ne(k,k.gzhead.extra[k.gzindex]&255),k.gzindex++;k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),k.gzindex===k.gzhead.extra.length&&(k.gzindex=0,k.status=G)}else k.status=G;if(k.status===G)if(k.gzhead.name){O=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),oe(b),O=k.pending,k.pending===k.pending_buf_size)){H=1;break}k.gzindex<k.gzhead.name.length?H=k.gzhead.name.charCodeAt(k.gzindex++)&255:H=0,ne(k,H)}while(H!==0);k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),H===0&&(k.gzindex=0,k.status=xe)}else k.status=xe;if(k.status===xe)if(k.gzhead.comment){O=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),oe(b),O=k.pending,k.pending===k.pending_buf_size)){H=1;break}k.gzindex<k.gzhead.comment.length?H=k.gzhead.comment.charCodeAt(k.gzindex++)&255:H=0,ne(k,H)}while(H!==0);k.gzhead.hcrc&&k.pending>O&&(b.adler=r(b.adler,k.pending_buf,k.pending-O,O)),H===0&&(k.status=ge)}else k.status=ge;if(k.status===ge&&(k.gzhead.hcrc?(k.pending+2>k.pending_buf_size&&oe(b),k.pending+2<=k.pending_buf_size&&(ne(k,b.adler&255),ne(k,b.adler>>8&255),b.adler=0,k.status=ue)):k.status=ue),k.pending!==0){if(oe(b),b.avail_out===0)return k.last_flush=-1,u}else if(b.avail_in===0&&V(ae)<=V(M)&&ae!==l)return We(b,g);if(k.status===ce&&b.avail_in!==0)return We(b,g);if(b.avail_in!==0||k.lookahead!==0||ae!==a&&k.status!==ce){var Pe=k.strategy===A?Ve(k,ae):k.strategy===w?ke(k,ae):it[k.level].func(k,ae);if((Pe===Oe||Pe===Le)&&(k.status=ce),Pe===ye||Pe===Oe)return b.avail_out===0&&(k.last_flush=-1),u;if(Pe===Fe&&(ae===o?t._tr_align(k):ae!==c&&(t._tr_stored_block(k,0,0,!1),ae===s&&(ve(k.head),k.lookahead===0&&(k.strstart=0,k.block_start=0,k.insert=0))),oe(b),b.avail_out===0))return k.last_flush=-1,u}return ae!==l?u:k.wrap<=0?d:(k.wrap===2?(ne(k,b.adler&255),ne(k,b.adler>>8&255),ne(k,b.adler>>16&255),ne(k,b.adler>>24&255),ne(k,b.total_in&255),ne(k,b.total_in>>8&255),ne(k,b.total_in>>16&255),ne(k,b.total_in>>24&255)):(be(k,b.adler>>>16),be(k,b.adler&65535)),oe(b),k.wrap>0&&(k.wrap=-k.wrap),k.pending!==0?u:d)}function De(b){var ae;return!b||!b.state?h:(ae=b.state.status,ae!==ee&&ae!==le&&ae!==G&&ae!==xe&&ae!==ge&&ae!==ue&&ae!==ce?We(b,h):(b.state=null,ae===ue?We(b,f):u))}function He(b,ae){var M=ae.length,k,O,H,Ne,_e,Pe,Ze,ut;if(!b||!b.state||(k=b.state,Ne=k.wrap,Ne===2||Ne===1&&k.status!==ee||k.lookahead))return h;for(Ne===1&&(b.adler=n(b.adler,ae,M,0)),k.wrap=0,M>=k.w_size&&(Ne===0&&(ve(k.head),k.strstart=0,k.block_start=0,k.insert=0),ut=new e.Buf8(k.w_size),e.arraySet(ut,ae,M-k.w_size,k.w_size,0),ae=ut,M=k.w_size),_e=b.avail_in,Pe=b.next_in,Ze=b.input,b.avail_in=M,b.next_in=0,b.input=ae,Ee(k);k.lookahead>=X;){O=k.strstart,H=k.lookahead-(X-1);do k.ins_h=(k.ins_h<<k.hash_shift^k.window[O+X-1])&k.hash_mask,k.prev[O&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=O,O++;while(--H);k.strstart=O,k.lookahead=X-1,Ee(k)}return k.strstart+=k.lookahead,k.block_start=k.strstart,k.insert=k.lookahead,k.lookahead=0,k.match_length=k.prev_length=X-1,k.match_available=0,b.next_in=Pe,b.input=Ze,b.avail_in=_e,k.wrap=Ne,u}return Sl.deflateInit=de,Sl.deflateInit2=$,Sl.deflateReset=se,Sl.deflateResetKeep=Ae,Sl.deflateSetHeader=Te,Sl.deflate=F,Sl.deflateEnd=De,Sl.deflateSetDictionary=He,Sl.deflateInfo="pako deflate (from Nodeca project)",Sl}var uf={},jO;function IK(){if(jO)return uf;jO=1;var e=Td(),t=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{t=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var r=new e.Buf8(256),i=0;i<256;i++)r[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;r[254]=r[254]=1,uf.string2buf=function(o){var s,l,c,u,d,h=o.length,f=0;for(u=0;u<h;u++)l=o.charCodeAt(u),(l&64512)===55296&&u+1<h&&(c=o.charCodeAt(u+1),(c&64512)===56320&&(l=65536+(l-55296<<10)+(c-56320),u++)),f+=l<128?1:l<2048?2:l<65536?3:4;for(s=new e.Buf8(f),d=0,u=0;d<f;u++)l=o.charCodeAt(u),(l&64512)===55296&&u+1<h&&(c=o.charCodeAt(u+1),(c&64512)===56320&&(l=65536+(l-55296<<10)+(c-56320),u++)),l<128?s[d++]=l:l<2048?(s[d++]=192|l>>>6,s[d++]=128|l&63):l<65536?(s[d++]=224|l>>>12,s[d++]=128|l>>>6&63,s[d++]=128|l&63):(s[d++]=240|l>>>18,s[d++]=128|l>>>12&63,s[d++]=128|l>>>6&63,s[d++]=128|l&63);return s};function a(o,s){if(s<65534&&(o.subarray&&n||!o.subarray&&t))return String.fromCharCode.apply(null,e.shrinkBuf(o,s));for(var l="",c=0;c<s;c++)l+=String.fromCharCode(o[c]);return l}return uf.buf2binstring=function(o){return a(o,o.length)},uf.binstring2buf=function(o){for(var s=new e.Buf8(o.length),l=0,c=s.length;l<c;l++)s[l]=o.charCodeAt(l);return s},uf.buf2string=function(o,s){var l,c,u,d,h=s||o.length,f=new Array(h*2);for(c=0,l=0;l<h;){if(u=o[l++],u<128){f[c++]=u;continue}if(d=r[u],d>4){f[c++]=65533,l+=d-1;continue}for(u&=d===2?31:d===3?15:7;d>1&&l<h;)u=u<<6|o[l++]&63,d--;if(d>1){f[c++]=65533;continue}u<65536?f[c++]=u:(u-=65536,f[c++]=55296|u>>10&1023,f[c++]=56320|u&1023)}return a(f,c)},uf.utf8border=function(o,s){var l;for(s=s||o.length,s>o.length&&(s=o.length),l=s-1;l>=0&&(o[l]&192)===128;)l--;return l<0||l===0?s:l+r[o[l]]>s?l:s},uf}var IC,BO;function MK(){if(BO)return IC;BO=1;function e(){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}return IC=e,IC}var zO;function PNe(){if(zO)return tp;zO=1;var e=RNe(),t=Td(),n=IK(),r=VF(),i=MK(),a=Object.prototype.toString,o=0,s=4,l=0,c=1,u=2,d=-1,h=0,f=8;function g(w){if(!(this instanceof g))return new g(w);this.options=t.assign({level:d,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},w||{});var S=this.options;S.raw&&S.windowBits>0?S.windowBits=-S.windowBits:S.gzip&&S.windowBits>0&&S.windowBits<16&&(S.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var _=e.deflateInit2(this.strm,S.level,S.method,S.windowBits,S.memLevel,S.strategy);if(_!==l)throw new Error(r[_]);if(S.header&&e.deflateSetHeader(this.strm,S.header),S.dictionary){var E;if(typeof S.dictionary=="string"?E=n.string2buf(S.dictionary):a.call(S.dictionary)==="[object ArrayBuffer]"?E=new Uint8Array(S.dictionary):E=S.dictionary,_=e.deflateSetDictionary(this.strm,E),_!==l)throw new Error(r[_]);this._dict_set=!0}}g.prototype.push=function(w,S){var _=this.strm,E=this.options.chunkSize,T,D;if(this.ended)return!1;D=S===~~S?S:S===!0?s:o,typeof w=="string"?_.input=n.string2buf(w):a.call(w)==="[object ArrayBuffer]"?_.input=new Uint8Array(w):_.input=w,_.next_in=0,_.avail_in=_.input.length;do{if(_.avail_out===0&&(_.output=new t.Buf8(E),_.next_out=0,_.avail_out=E),T=e.deflate(_,D),T!==c&&T!==l)return this.onEnd(T),this.ended=!0,!1;(_.avail_out===0||_.avail_in===0&&(D===s||D===u))&&(this.options.to==="string"?this.onData(n.buf2binstring(t.shrinkBuf(_.output,_.next_out))):this.onData(t.shrinkBuf(_.output,_.next_out)))}while((_.avail_in>0||_.avail_out===0)&&T!==c);return D===s?(T=e.deflateEnd(this.strm),this.onEnd(T),this.ended=!0,T===l):(D===u&&(this.onEnd(l),_.avail_out=0),!0)},g.prototype.onData=function(w){this.chunks.push(w)},g.prototype.onEnd=function(w){w===l&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=w,this.msg=this.strm.msg};function y(w,S){var _=new g(S);if(_.push(w,!0),_.err)throw _.msg||r[_.err];return _.result}function v(w,S){return S=S||{},S.raw=!0,y(w,S)}function A(w,S){return S=S||{},S.gzip=!0,y(w,S)}return tp.Deflate=g,tp.deflate=y,tp.deflateRaw=v,tp.gzip=A,tp}var np={},Os={},MC,WO;function INe(){if(WO)return MC;WO=1;var e=30,t=12;return MC=function(r,i){var a,o,s,l,c,u,d,h,f,g,y,v,A,w,S,_,E,T,D,I,j,R,z,B,W;a=r.state,o=r.next_in,B=r.input,s=o+(r.avail_in-5),l=r.next_out,W=r.output,c=l-(i-r.avail_out),u=l+(r.avail_out-257),d=a.dmax,h=a.wsize,f=a.whave,g=a.wnext,y=a.window,v=a.hold,A=a.bits,w=a.lencode,S=a.distcode,_=(1<<a.lenbits)-1,E=(1<<a.distbits)-1;e:do{A<15&&(v+=B[o++]<<A,A+=8,v+=B[o++]<<A,A+=8),T=w[v&_];t:for(;;){if(D=T>>>24,v>>>=D,A-=D,D=T>>>16&255,D===0)W[l++]=T&65535;else if(D&16){I=T&65535,D&=15,D&&(A<D&&(v+=B[o++]<<A,A+=8),I+=v&(1<<D)-1,v>>>=D,A-=D),A<15&&(v+=B[o++]<<A,A+=8,v+=B[o++]<<A,A+=8),T=S[v&E];n:for(;;){if(D=T>>>24,v>>>=D,A-=D,D=T>>>16&255,D&16){if(j=T&65535,D&=15,A<D&&(v+=B[o++]<<A,A+=8,A<D&&(v+=B[o++]<<A,A+=8)),j+=v&(1<<D)-1,j>d){r.msg="invalid distance too far back",a.mode=e;break e}if(v>>>=D,A-=D,D=l-c,j>D){if(D=j-D,D>f&&a.sane){r.msg="invalid distance too far back",a.mode=e;break e}if(R=0,z=y,g===0){if(R+=h-D,D<I){I-=D;do W[l++]=y[R++];while(--D);R=l-j,z=W}}else if(g<D){if(R+=h+g-D,D-=g,D<I){I-=D;do W[l++]=y[R++];while(--D);if(R=0,g<I){D=g,I-=D;do W[l++]=y[R++];while(--D);R=l-j,z=W}}}else if(R+=g-D,D<I){I-=D;do W[l++]=y[R++];while(--D);R=l-j,z=W}for(;I>2;)W[l++]=z[R++],W[l++]=z[R++],W[l++]=z[R++],I-=3;I&&(W[l++]=z[R++],I>1&&(W[l++]=z[R++]))}else{R=l-j;do W[l++]=W[R++],W[l++]=W[R++],W[l++]=W[R++],I-=3;while(I>2);I&&(W[l++]=W[R++],I>1&&(W[l++]=W[R++]))}}else if((D&64)===0){T=S[(T&65535)+(v&(1<<D)-1)];continue n}else{r.msg="invalid distance code",a.mode=e;break e}break}}else if((D&64)===0){T=w[(T&65535)+(v&(1<<D)-1)];continue t}else if(D&32){a.mode=t;break e}else{r.msg="invalid literal/length code",a.mode=e;break e}break}}while(o<s&&l<u);I=A>>3,o-=I,A-=I<<3,v&=(1<<A)-1,r.next_in=o,r.next_out=l,r.avail_in=o<s?5+(s-o):5-(o-s),r.avail_out=l<u?257+(u-l):257-(l-u),a.hold=v,a.bits=A},MC}var UC,VO;function MNe(){if(VO)return UC;VO=1;var e=Td(),t=15,n=852,r=592,i=0,a=1,o=2,s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return UC=function(h,f,g,y,v,A,w,S){var _=S.bits,E=0,T=0,D=0,I=0,j=0,R=0,z=0,B=0,W=0,P=0,Z,Q,X,q,te,J=null,ee=0,le,G=new e.Buf16(t+1),xe=new e.Buf16(t+1),ge=null,ue=0,ce,ye,Fe;for(E=0;E<=t;E++)G[E]=0;for(T=0;T<y;T++)G[f[g+T]]++;for(j=_,I=t;I>=1&&G[I]===0;I--);if(j>I&&(j=I),I===0)return v[A++]=1<<24|64<<16|0,v[A++]=1<<24|64<<16|0,S.bits=1,0;for(D=1;D<I&&G[D]===0;D++);for(j<D&&(j=D),B=1,E=1;E<=t;E++)if(B<<=1,B-=G[E],B<0)return-1;if(B>0&&(h===i||I!==1))return-1;for(xe[1]=0,E=1;E<t;E++)xe[E+1]=xe[E]+G[E];for(T=0;T<y;T++)f[g+T]!==0&&(w[xe[f[g+T]]++]=T);if(h===i?(J=ge=w,le=19):h===a?(J=s,ee-=257,ge=l,ue-=257,le=256):(J=c,ge=u,le=-1),P=0,T=0,E=D,te=A,R=j,z=0,X=-1,W=1<<j,q=W-1,h===a&&W>n||h===o&&W>r)return 1;for(;;){ce=E-z,w[T]<le?(ye=0,Fe=w[T]):w[T]>le?(ye=ge[ue+w[T]],Fe=J[ee+w[T]]):(ye=96,Fe=0),Z=1<<E-z,Q=1<<R,D=Q;do Q-=Z,v[te+(P>>z)+Q]=ce<<24|ye<<16|Fe|0;while(Q!==0);for(Z=1<<E-1;P&Z;)Z>>=1;if(Z!==0?(P&=Z-1,P+=Z):P=0,T++,--G[E]===0){if(E===I)break;E=f[g+w[T]]}if(E>j&&(P&q)!==X){for(z===0&&(z=j),te+=D,R=E-z,B=1<<R;R+z<I&&(B-=G[R+z],!(B<=0));)R++,B<<=1;if(W+=1<<R,h===a&&W>n||h===o&&W>r)return 1;X=P&q,v[X]=j<<24|R<<16|te-A|0}}return P!==0&&(v[te+P]=E-z<<24|64<<16|0),S.bits=j,0},UC}var GO;function UNe(){if(GO)return Os;GO=1;var e=Td(),t=RK(),n=PK(),r=INe(),i=MNe(),a=0,o=1,s=2,l=4,c=5,u=6,d=0,h=1,f=2,g=-2,y=-3,v=-4,A=-5,w=8,S=1,_=2,E=3,T=4,D=5,I=6,j=7,R=8,z=9,B=10,W=11,P=12,Z=13,Q=14,X=15,q=16,te=17,J=18,ee=19,le=20,G=21,xe=22,ge=23,ue=24,ce=25,ye=26,Fe=27,Oe=28,Le=29,Re=30,We=31,V=32,ve=852,oe=592,re=15,ne=re;function be($){return($>>>24&255)+($>>>8&65280)+(($&65280)<<8)+(($&255)<<24)}function Ue(){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 e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Me($){var de;return!$||!$.state?g:(de=$.state,$.total_in=$.total_out=de.total=0,$.msg="",de.wrap&&($.adler=de.wrap&1),de.mode=S,de.last=0,de.havedict=0,de.dmax=32768,de.head=null,de.hold=0,de.bits=0,de.lencode=de.lendyn=new e.Buf32(ve),de.distcode=de.distdyn=new e.Buf32(oe),de.sane=1,de.back=-1,d)}function Ee($){var de;return!$||!$.state?g:(de=$.state,de.wsize=0,de.whave=0,de.wnext=0,Me($))}function Se($,de){var F,De;return!$||!$.state||(De=$.state,de<0?(F=0,de=-de):(F=(de>>4)+1,de<48&&(de&=15)),de&&(de<8||de>15))?g:(De.window!==null&&De.wbits!==de&&(De.window=null),De.wrap=F,De.wbits=de,Ee($))}function Ce($,de){var F,De;return $?(De=new Ue,$.state=De,De.window=null,F=Se($,de),F!==d&&($.state=null),F):g}function pe($){return Ce($,ne)}var ke=!0,Ve,Xe;function it($){if(ke){var de;for(Ve=new e.Buf32(512),Xe=new e.Buf32(32),de=0;de<144;)$.lens[de++]=8;for(;de<256;)$.lens[de++]=9;for(;de<280;)$.lens[de++]=7;for(;de<288;)$.lens[de++]=8;for(i(o,$.lens,0,288,Ve,0,$.work,{bits:9}),de=0;de<32;)$.lens[de++]=5;i(s,$.lens,0,32,Xe,0,$.work,{bits:5}),ke=!1}$.lencode=Ve,$.lenbits=9,$.distcode=Xe,$.distbits=5}function et($,de,F,De){var He,b=$.state;return b.window===null&&(b.wsize=1<<b.wbits,b.wnext=0,b.whave=0,b.window=new e.Buf8(b.wsize)),De>=b.wsize?(e.arraySet(b.window,de,F-b.wsize,b.wsize,0),b.wnext=0,b.whave=b.wsize):(He=b.wsize-b.wnext,He>De&&(He=De),e.arraySet(b.window,de,F-De,He,b.wnext),De-=He,De?(e.arraySet(b.window,de,F-De,De,0),b.wnext=De,b.whave=b.wsize):(b.wnext+=He,b.wnext===b.wsize&&(b.wnext=0),b.whave<b.wsize&&(b.whave+=He))),0}function U($,de){var F,De,He,b,ae,M,k,O,H,Ne,_e,Pe,Ze,ut,st=0,Je,pt,xt,dt,rn,Yn,Lt,Xt,qt=new e.Buf8(4),Tn,Ye,ct=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!$||!$.state||!$.output||!$.input&&$.avail_in!==0)return g;F=$.state,F.mode===P&&(F.mode=Z),ae=$.next_out,He=$.output,k=$.avail_out,b=$.next_in,De=$.input,M=$.avail_in,O=F.hold,H=F.bits,Ne=M,_e=k,Xt=d;e:for(;;)switch(F.mode){case S:if(F.wrap===0){F.mode=Z;break}for(;H<16;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(F.wrap&2&&O===35615){F.check=0,qt[0]=O&255,qt[1]=O>>>8&255,F.check=n(F.check,qt,2,0),O=0,H=0,F.mode=_;break}if(F.flags=0,F.head&&(F.head.done=!1),!(F.wrap&1)||(((O&255)<<8)+(O>>8))%31){$.msg="incorrect header check",F.mode=Re;break}if((O&15)!==w){$.msg="unknown compression method",F.mode=Re;break}if(O>>>=4,H-=4,Lt=(O&15)+8,F.wbits===0)F.wbits=Lt;else if(Lt>F.wbits){$.msg="invalid window size",F.mode=Re;break}F.dmax=1<<Lt,$.adler=F.check=1,F.mode=O&512?B:P,O=0,H=0;break;case _:for(;H<16;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(F.flags=O,(F.flags&255)!==w){$.msg="unknown compression method",F.mode=Re;break}if(F.flags&57344){$.msg="unknown header flags set",F.mode=Re;break}F.head&&(F.head.text=O>>8&1),F.flags&512&&(qt[0]=O&255,qt[1]=O>>>8&255,F.check=n(F.check,qt,2,0)),O=0,H=0,F.mode=E;case E:for(;H<32;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.head&&(F.head.time=O),F.flags&512&&(qt[0]=O&255,qt[1]=O>>>8&255,qt[2]=O>>>16&255,qt[3]=O>>>24&255,F.check=n(F.check,qt,4,0)),O=0,H=0,F.mode=T;case T:for(;H<16;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.head&&(F.head.xflags=O&255,F.head.os=O>>8),F.flags&512&&(qt[0]=O&255,qt[1]=O>>>8&255,F.check=n(F.check,qt,2,0)),O=0,H=0,F.mode=D;case D:if(F.flags&1024){for(;H<16;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.length=O,F.head&&(F.head.extra_len=O),F.flags&512&&(qt[0]=O&255,qt[1]=O>>>8&255,F.check=n(F.check,qt,2,0)),O=0,H=0}else F.head&&(F.head.extra=null);F.mode=I;case I:if(F.flags&1024&&(Pe=F.length,Pe>M&&(Pe=M),Pe&&(F.head&&(Lt=F.head.extra_len-F.length,F.head.extra||(F.head.extra=new Array(F.head.extra_len)),e.arraySet(F.head.extra,De,b,Pe,Lt)),F.flags&512&&(F.check=n(F.check,De,Pe,b)),M-=Pe,b+=Pe,F.length-=Pe),F.length))break e;F.length=0,F.mode=j;case j:if(F.flags&2048){if(M===0)break e;Pe=0;do Lt=De[b+Pe++],F.head&&Lt&&F.length<65536&&(F.head.name+=String.fromCharCode(Lt));while(Lt&&Pe<M);if(F.flags&512&&(F.check=n(F.check,De,Pe,b)),M-=Pe,b+=Pe,Lt)break e}else F.head&&(F.head.name=null);F.length=0,F.mode=R;case R:if(F.flags&4096){if(M===0)break e;Pe=0;do Lt=De[b+Pe++],F.head&&Lt&&F.length<65536&&(F.head.comment+=String.fromCharCode(Lt));while(Lt&&Pe<M);if(F.flags&512&&(F.check=n(F.check,De,Pe,b)),M-=Pe,b+=Pe,Lt)break e}else F.head&&(F.head.comment=null);F.mode=z;case z:if(F.flags&512){for(;H<16;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(O!==(F.check&65535)){$.msg="header crc mismatch",F.mode=Re;break}O=0,H=0}F.head&&(F.head.hcrc=F.flags>>9&1,F.head.done=!0),$.adler=F.check=0,F.mode=P;break;case B:for(;H<32;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}$.adler=F.check=be(O),O=0,H=0,F.mode=W;case W:if(F.havedict===0)return $.next_out=ae,$.avail_out=k,$.next_in=b,$.avail_in=M,F.hold=O,F.bits=H,f;$.adler=F.check=1,F.mode=P;case P:if(de===c||de===u)break e;case Z:if(F.last){O>>>=H&7,H-=H&7,F.mode=Fe;break}for(;H<3;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}switch(F.last=O&1,O>>>=1,H-=1,O&3){case 0:F.mode=Q;break;case 1:if(it(F),F.mode=le,de===u){O>>>=2,H-=2;break e}break;case 2:F.mode=te;break;case 3:$.msg="invalid block type",F.mode=Re}O>>>=2,H-=2;break;case Q:for(O>>>=H&7,H-=H&7;H<32;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if((O&65535)!==(O>>>16^65535)){$.msg="invalid stored block lengths",F.mode=Re;break}if(F.length=O&65535,O=0,H=0,F.mode=X,de===u)break e;case X:F.mode=q;case q:if(Pe=F.length,Pe){if(Pe>M&&(Pe=M),Pe>k&&(Pe=k),Pe===0)break e;e.arraySet(He,De,b,Pe,ae),M-=Pe,b+=Pe,k-=Pe,ae+=Pe,F.length-=Pe;break}F.mode=P;break;case te:for(;H<14;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(F.nlen=(O&31)+257,O>>>=5,H-=5,F.ndist=(O&31)+1,O>>>=5,H-=5,F.ncode=(O&15)+4,O>>>=4,H-=4,F.nlen>286||F.ndist>30){$.msg="too many length or distance symbols",F.mode=Re;break}F.have=0,F.mode=J;case J:for(;F.have<F.ncode;){for(;H<3;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.lens[ct[F.have++]]=O&7,O>>>=3,H-=3}for(;F.have<19;)F.lens[ct[F.have++]]=0;if(F.lencode=F.lendyn,F.lenbits=7,Tn={bits:F.lenbits},Xt=i(a,F.lens,0,19,F.lencode,0,F.work,Tn),F.lenbits=Tn.bits,Xt){$.msg="invalid code lengths set",F.mode=Re;break}F.have=0,F.mode=ee;case ee:for(;F.have<F.nlen+F.ndist;){for(;st=F.lencode[O&(1<<F.lenbits)-1],Je=st>>>24,pt=st>>>16&255,xt=st&65535,!(Je<=H);){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(xt<16)O>>>=Je,H-=Je,F.lens[F.have++]=xt;else{if(xt===16){for(Ye=Je+2;H<Ye;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(O>>>=Je,H-=Je,F.have===0){$.msg="invalid bit length repeat",F.mode=Re;break}Lt=F.lens[F.have-1],Pe=3+(O&3),O>>>=2,H-=2}else if(xt===17){for(Ye=Je+3;H<Ye;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}O>>>=Je,H-=Je,Lt=0,Pe=3+(O&7),O>>>=3,H-=3}else{for(Ye=Je+7;H<Ye;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}O>>>=Je,H-=Je,Lt=0,Pe=11+(O&127),O>>>=7,H-=7}if(F.have+Pe>F.nlen+F.ndist){$.msg="invalid bit length repeat",F.mode=Re;break}for(;Pe--;)F.lens[F.have++]=Lt}}if(F.mode===Re)break;if(F.lens[256]===0){$.msg="invalid code -- missing end-of-block",F.mode=Re;break}if(F.lenbits=9,Tn={bits:F.lenbits},Xt=i(o,F.lens,0,F.nlen,F.lencode,0,F.work,Tn),F.lenbits=Tn.bits,Xt){$.msg="invalid literal/lengths set",F.mode=Re;break}if(F.distbits=6,F.distcode=F.distdyn,Tn={bits:F.distbits},Xt=i(s,F.lens,F.nlen,F.ndist,F.distcode,0,F.work,Tn),F.distbits=Tn.bits,Xt){$.msg="invalid distances set",F.mode=Re;break}if(F.mode=le,de===u)break e;case le:F.mode=G;case G:if(M>=6&&k>=258){$.next_out=ae,$.avail_out=k,$.next_in=b,$.avail_in=M,F.hold=O,F.bits=H,r($,_e),ae=$.next_out,He=$.output,k=$.avail_out,b=$.next_in,De=$.input,M=$.avail_in,O=F.hold,H=F.bits,F.mode===P&&(F.back=-1);break}for(F.back=0;st=F.lencode[O&(1<<F.lenbits)-1],Je=st>>>24,pt=st>>>16&255,xt=st&65535,!(Je<=H);){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(pt&&(pt&240)===0){for(dt=Je,rn=pt,Yn=xt;st=F.lencode[Yn+((O&(1<<dt+rn)-1)>>dt)],Je=st>>>24,pt=st>>>16&255,xt=st&65535,!(dt+Je<=H);){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}O>>>=dt,H-=dt,F.back+=dt}if(O>>>=Je,H-=Je,F.back+=Je,F.length=xt,pt===0){F.mode=ye;break}if(pt&32){F.back=-1,F.mode=P;break}if(pt&64){$.msg="invalid literal/length code",F.mode=Re;break}F.extra=pt&15,F.mode=xe;case xe:if(F.extra){for(Ye=F.extra;H<Ye;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.length+=O&(1<<F.extra)-1,O>>>=F.extra,H-=F.extra,F.back+=F.extra}F.was=F.length,F.mode=ge;case ge:for(;st=F.distcode[O&(1<<F.distbits)-1],Je=st>>>24,pt=st>>>16&255,xt=st&65535,!(Je<=H);){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if((pt&240)===0){for(dt=Je,rn=pt,Yn=xt;st=F.distcode[Yn+((O&(1<<dt+rn)-1)>>dt)],Je=st>>>24,pt=st>>>16&255,xt=st&65535,!(dt+Je<=H);){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}O>>>=dt,H-=dt,F.back+=dt}if(O>>>=Je,H-=Je,F.back+=Je,pt&64){$.msg="invalid distance code",F.mode=Re;break}F.offset=xt,F.extra=pt&15,F.mode=ue;case ue:if(F.extra){for(Ye=F.extra;H<Ye;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}F.offset+=O&(1<<F.extra)-1,O>>>=F.extra,H-=F.extra,F.back+=F.extra}if(F.offset>F.dmax){$.msg="invalid distance too far back",F.mode=Re;break}F.mode=ce;case ce:if(k===0)break e;if(Pe=_e-k,F.offset>Pe){if(Pe=F.offset-Pe,Pe>F.whave&&F.sane){$.msg="invalid distance too far back",F.mode=Re;break}Pe>F.wnext?(Pe-=F.wnext,Ze=F.wsize-Pe):Ze=F.wnext-Pe,Pe>F.length&&(Pe=F.length),ut=F.window}else ut=He,Ze=ae-F.offset,Pe=F.length;Pe>k&&(Pe=k),k-=Pe,F.length-=Pe;do He[ae++]=ut[Ze++];while(--Pe);F.length===0&&(F.mode=G);break;case ye:if(k===0)break e;He[ae++]=F.length,k--,F.mode=G;break;case Fe:if(F.wrap){for(;H<32;){if(M===0)break e;M--,O|=De[b++]<<H,H+=8}if(_e-=k,$.total_out+=_e,F.total+=_e,_e&&($.adler=F.check=F.flags?n(F.check,He,_e,ae-_e):t(F.check,He,_e,ae-_e)),_e=k,(F.flags?O:be(O))!==F.check){$.msg="incorrect data check",F.mode=Re;break}O=0,H=0}F.mode=Oe;case Oe:if(F.wrap&&F.flags){for(;H<32;){if(M===0)break e;M--,O+=De[b++]<<H,H+=8}if(O!==(F.total&4294967295)){$.msg="incorrect length check",F.mode=Re;break}O=0,H=0}F.mode=Le;case Le:Xt=h;break e;case Re:Xt=y;break e;case We:return v;case V:default:return g}return $.next_out=ae,$.avail_out=k,$.next_in=b,$.avail_in=M,F.hold=O,F.bits=H,(F.wsize||_e!==$.avail_out&&F.mode<Re&&(F.mode<Fe||de!==l))&&et($,$.output,$.next_out,_e-$.avail_out),Ne-=$.avail_in,_e-=$.avail_out,$.total_in+=Ne,$.total_out+=_e,F.total+=_e,F.wrap&&_e&&($.adler=F.check=F.flags?n(F.check,He,_e,$.next_out-_e):t(F.check,He,_e,$.next_out-_e)),$.data_type=F.bits+(F.last?64:0)+(F.mode===P?128:0)+(F.mode===le||F.mode===X?256:0),(Ne===0&&_e===0||de===l)&&Xt===d&&(Xt=A),Xt}function Ae($){if(!$||!$.state)return g;var de=$.state;return de.window&&(de.window=null),$.state=null,d}function se($,de){var F;return!$||!$.state||(F=$.state,(F.wrap&2)===0)?g:(F.head=de,de.done=!1,d)}function Te($,de){var F=de.length,De,He,b;return!$||!$.state||(De=$.state,De.wrap!==0&&De.mode!==W)?g:De.mode===W&&(He=1,He=t(He,de,F,0),He!==De.check)?y:(b=et($,de,F,F),b?(De.mode=We,v):(De.havedict=1,d))}return Os.inflateReset=Ee,Os.inflateReset2=Se,Os.inflateResetKeep=Me,Os.inflateInit=pe,Os.inflateInit2=Ce,Os.inflate=U,Os.inflateEnd=Ae,Os.inflateGetHeader=se,Os.inflateSetDictionary=Te,Os.inflateInfo="pako inflate (from Nodeca project)",Os}var LC,qO;function UK(){return qO||(qO=1,LC={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),LC}var OC,HO;function LNe(){if(HO)return OC;HO=1;function e(){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}return OC=e,OC}var XO;function ONe(){if(XO)return np;XO=1;var e=UNe(),t=Td(),n=IK(),r=UK(),i=VF(),a=MK(),o=LNe(),s=Object.prototype.toString;function l(d){if(!(this instanceof l))return new l(d);this.options=t.assign({chunkSize:16384,windowBits:0,to:""},d||{});var h=this.options;h.raw&&h.windowBits>=0&&h.windowBits<16&&(h.windowBits=-h.windowBits,h.windowBits===0&&(h.windowBits=-15)),h.windowBits>=0&&h.windowBits<16&&!(d&&d.windowBits)&&(h.windowBits+=32),h.windowBits>15&&h.windowBits<48&&(h.windowBits&15)===0&&(h.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var f=e.inflateInit2(this.strm,h.windowBits);if(f!==r.Z_OK)throw new Error(i[f]);if(this.header=new o,e.inflateGetHeader(this.strm,this.header),h.dictionary&&(typeof h.dictionary=="string"?h.dictionary=n.string2buf(h.dictionary):s.call(h.dictionary)==="[object ArrayBuffer]"&&(h.dictionary=new Uint8Array(h.dictionary)),h.raw&&(f=e.inflateSetDictionary(this.strm,h.dictionary),f!==r.Z_OK)))throw new Error(i[f])}l.prototype.push=function(d,h){var f=this.strm,g=this.options.chunkSize,y=this.options.dictionary,v,A,w,S,_,E=!1;if(this.ended)return!1;A=h===~~h?h:h===!0?r.Z_FINISH:r.Z_NO_FLUSH,typeof d=="string"?f.input=n.binstring2buf(d):s.call(d)==="[object ArrayBuffer]"?f.input=new Uint8Array(d):f.input=d,f.next_in=0,f.avail_in=f.input.length;do{if(f.avail_out===0&&(f.output=new t.Buf8(g),f.next_out=0,f.avail_out=g),v=e.inflate(f,r.Z_NO_FLUSH),v===r.Z_NEED_DICT&&y&&(v=e.inflateSetDictionary(this.strm,y)),v===r.Z_BUF_ERROR&&E===!0&&(v=r.Z_OK,E=!1),v!==r.Z_STREAM_END&&v!==r.Z_OK)return this.onEnd(v),this.ended=!0,!1;f.next_out&&(f.avail_out===0||v===r.Z_STREAM_END||f.avail_in===0&&(A===r.Z_FINISH||A===r.Z_SYNC_FLUSH))&&(this.options.to==="string"?(w=n.utf8border(f.output,f.next_out),S=f.next_out-w,_=n.buf2string(f.output,w),f.next_out=S,f.avail_out=g-S,S&&t.arraySet(f.output,f.output,w,S,0),this.onData(_)):this.onData(t.shrinkBuf(f.output,f.next_out))),f.avail_in===0&&f.avail_out===0&&(E=!0)}while((f.avail_in>0||f.avail_out===0)&&v!==r.Z_STREAM_END);return v===r.Z_STREAM_END&&(A=r.Z_FINISH),A===r.Z_FINISH?(v=e.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===r.Z_OK):(A===r.Z_SYNC_FLUSH&&(this.onEnd(r.Z_OK),f.avail_out=0),!0)},l.prototype.onData=function(d){this.chunks.push(d)},l.prototype.onEnd=function(d){d===r.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg};function c(d,h){var f=new l(h);if(f.push(d,!0),f.err)throw f.msg||i[f.err];return f.result}function u(d,h){return h=h||{},h.raw=!0,c(d,h)}return np.Inflate=l,np.inflate=c,np.inflateRaw=u,np.ungzip=c,np}var jC,ZO;function jNe(){if(ZO)return jC;ZO=1;var e=Td().assign,t=PNe(),n=ONe(),r=UK(),i={};return e(i,t,n,r),jC=i,jC}var BNe=jNe();const zNe=Qc(BNe);var Ct={};Ct.toRGBA8=function(e){var t=e.width,n=e.height;if(e.tabs.acTL==null)return[Ct.toRGBA8.decodeImage(e.data,t,n,e).buffer];var r=[];e.frames[0].data==null&&(e.frames[0].data=e.data);for(var i=t*n*4,a=new Uint8Array(i),o=new Uint8Array(i),s=new Uint8Array(i),l=0;l<e.frames.length;l++){var c=e.frames[l],u=c.rect.x,d=c.rect.y,h=c.rect.width,f=c.rect.height,g=Ct.toRGBA8.decodeImage(c.data,h,f,e);if(l!=0)for(var y=0;y<i;y++)s[y]=a[y];if(c.blend==0?Ct._copyTile(g,h,f,a,t,n,u,d,0):c.blend==1&&Ct._copyTile(g,h,f,a,t,n,u,d,1),r.push(a.buffer.slice(0)),c.dispose!=0){if(c.dispose==1)Ct._copyTile(o,h,f,a,t,n,u,d,0);else if(c.dispose==2)for(var y=0;y<i;y++)a[y]=s[y]}}return r};Ct.toRGBA8.decodeImage=function(e,t,n,r){var i=t*n,a=Ct.decode._getBPP(r),o=Math.ceil(t*a/8),s=new Uint8Array(i*4),l=new Uint32Array(s.buffer),c=r.ctype,u=r.depth,d=Ct._bin.readUshort;if(c==6){var h=i<<2;if(u==8)for(var f=0;f<h;f+=4)s[f]=e[f],s[f+1]=e[f+1],s[f+2]=e[f+2],s[f+3]=e[f+3];if(u==16)for(var f=0;f<h;f++)s[f]=e[f<<1]}else if(c==2){var g=r.tabs.tRNS;if(g==null){if(u==8)for(var f=0;f<i;f++){var y=f*3;l[f]=255<<24|e[y+2]<<16|e[y+1]<<8|e[y]}if(u==16)for(var f=0;f<i;f++){var y=f*6;l[f]=255<<24|e[y+4]<<16|e[y+2]<<8|e[y]}}else{var v=g[0],A=g[1],w=g[2];if(u==8)for(var f=0;f<i;f++){var S=f<<2,y=f*3;l[f]=255<<24|e[y+2]<<16|e[y+1]<<8|e[y],e[y]==v&&e[y+1]==A&&e[y+2]==w&&(s[S+3]=0)}if(u==16)for(var f=0;f<i;f++){var S=f<<2,y=f*6;l[f]=255<<24|e[y+4]<<16|e[y+2]<<8|e[y],d(e,y)==v&&d(e,y+2)==A&&d(e,y+4)==w&&(s[S+3]=0)}}}else if(c==3){var _=r.tabs.PLTE,E=r.tabs.tRNS,T=E?E.length:0;if(u==1)for(var D=0;D<n;D++)for(var I=D*o,j=D*t,f=0;f<t;f++){var S=j+f<<2,R=e[I+(f>>3)]>>7-((f&7)<<0)&1,z=3*R;s[S]=_[z],s[S+1]=_[z+1],s[S+2]=_[z+2],s[S+3]=R<T?E[R]:255}if(u==2)for(var D=0;D<n;D++)for(var I=D*o,j=D*t,f=0;f<t;f++){var S=j+f<<2,R=e[I+(f>>2)]>>6-((f&3)<<1)&3,z=3*R;s[S]=_[z],s[S+1]=_[z+1],s[S+2]=_[z+2],s[S+3]=R<T?E[R]:255}if(u==4)for(var D=0;D<n;D++)for(var I=D*o,j=D*t,f=0;f<t;f++){var S=j+f<<2,R=e[I+(f>>1)]>>4-((f&1)<<2)&15,z=3*R;s[S]=_[z],s[S+1]=_[z+1],s[S+2]=_[z+2],s[S+3]=R<T?E[R]:255}if(u==8)for(var f=0;f<i;f++){var S=f<<2,R=e[f],z=3*R;s[S]=_[z],s[S+1]=_[z+1],s[S+2]=_[z+2],s[S+3]=R<T?E[R]:255}}else if(c==4){if(u==8)for(var f=0;f<i;f++){var S=f<<2,B=f<<1,W=e[B];s[S]=W,s[S+1]=W,s[S+2]=W,s[S+3]=e[B+1]}if(u==16)for(var f=0;f<i;f++){var S=f<<2,B=f<<2,W=e[B];s[S]=W,s[S+1]=W,s[S+2]=W,s[S+3]=e[B+2]}}else if(c==0)for(var v=r.tabs.tRNS?r.tabs.tRNS:-1,D=0;D<n;D++){var P=D*o,Z=D*t;if(u==1)for(var Q=0;Q<t;Q++){var W=255*(e[P+(Q>>>3)]>>>7-(Q&7)&1),X=W==v*255?0:255;l[Z+Q]=X<<24|W<<16|W<<8|W}else if(u==2)for(var Q=0;Q<t;Q++){var W=85*(e[P+(Q>>>2)]>>>6-((Q&3)<<1)&3),X=W==v*85?0:255;l[Z+Q]=X<<24|W<<16|W<<8|W}else if(u==4)for(var Q=0;Q<t;Q++){var W=17*(e[P+(Q>>>1)]>>>4-((Q&1)<<2)&15),X=W==v*17?0:255;l[Z+Q]=X<<24|W<<16|W<<8|W}else if(u==8)for(var Q=0;Q<t;Q++){var W=e[P+Q],X=W==v?0:255;l[Z+Q]=X<<24|W<<16|W<<8|W}else if(u==16)for(var Q=0;Q<t;Q++){var W=e[P+(Q<<1)],X=d(e,P+(Q<<f))==v?0:255;l[Z+Q]=X<<24|W<<16|W<<8|W}}return s};Ct.decode=function(e){for(var t=new Uint8Array(e),n=8,r=Ct._bin,i=r.readUshort,a=r.readUint,o={tabs:{},frames:[]},s=new Uint8Array(t.length),l=0,c,u=0,d=[137,80,78,71,13,10,26,10],h=0;h<8;h++)if(t[h]!=d[h])throw"The input is not a PNG file!";for(;n<t.length;){var f=r.readUint(t,n);n+=4;var g=r.readASCII(t,n,4);if(n+=4,g=="IHDR")Ct.decode._IHDR(t,n,o);else if(g=="IDAT"){for(var h=0;h<f;h++)s[l+h]=t[n+h];l+=f}else if(g=="acTL")o.tabs[g]={num_frames:a(t,n),num_plays:a(t,n+4)},c=new Uint8Array(t.length);else if(g=="fcTL"){if(u!=0){var y=o.frames[o.frames.length-1];y.data=Ct.decode._decompress(o,c.slice(0,u),y.rect.width,y.rect.height),u=0}var v={x:a(t,n+12),y:a(t,n+16),width:a(t,n+4),height:a(t,n+8)},A=i(t,n+22);A=i(t,n+20)/(A==0?100:A);var w={rect:v,delay:Math.round(A*1e3),dispose:t[n+24],blend:t[n+25]};o.frames.push(w)}else if(g=="fdAT"){for(var h=0;h<f-4;h++)c[u+h]=t[n+h+4];u+=f-4}else if(g=="pHYs")o.tabs[g]=[r.readUint(t,n),r.readUint(t,n+4),t[n+8]];else if(g=="cHRM"){o.tabs[g]=[];for(var h=0;h<8;h++)o.tabs[g].push(r.readUint(t,n+h*4))}else if(g=="tEXt"){o.tabs[g]==null&&(o.tabs[g]={});var S=r.nextZero(t,n),_=r.readASCII(t,n,S-n),E=r.readASCII(t,S+1,n+f-S-1);o.tabs[g][_]=E}else if(g=="iTXt"){o.tabs[g]==null&&(o.tabs[g]={});var S=0,T=n;S=r.nextZero(t,T);var _=r.readASCII(t,T,S-T);T=S+1,t[T],t[T+1],T+=2,S=r.nextZero(t,T),r.readASCII(t,T,S-T),T=S+1,S=r.nextZero(t,T),r.readUTF8(t,T,S-T),T=S+1;var E=r.readUTF8(t,T,f-(T-n));o.tabs[g][_]=E}else if(g=="PLTE")o.tabs[g]=r.readBytes(t,n,f);else if(g=="hIST"){var D=o.tabs.PLTE.length/3;o.tabs[g]=[];for(var h=0;h<D;h++)o.tabs[g].push(i(t,n+h*2))}else if(g=="tRNS")o.ctype==3?o.tabs[g]=r.readBytes(t,n,f):o.ctype==0?o.tabs[g]=i(t,n):o.ctype==2&&(o.tabs[g]=[i(t,n),i(t,n+2),i(t,n+4)]);else if(g=="gAMA")o.tabs[g]=r.readUint(t,n)/1e5;else if(g=="sRGB")o.tabs[g]=t[n];else if(g=="bKGD")o.ctype==0||o.ctype==4?o.tabs[g]=[i(t,n)]:o.ctype==2||o.ctype==6?o.tabs[g]=[i(t,n),i(t,n+2),i(t,n+4)]:o.ctype==3&&(o.tabs[g]=t[n]);else if(g=="IEND")break;n+=f,r.readUint(t,n),n+=4}if(u!=0){var y=o.frames[o.frames.length-1];y.data=Ct.decode._decompress(o,c.slice(0,u),y.rect.width,y.rect.height),u=0}return o.data=Ct.decode._decompress(o,s,o.width,o.height),delete o.compress,delete o.interlace,delete o.filter,o};Ct.decode._decompress=function(e,t,n,r){var i=Ct.decode._getBPP(e),a=Math.ceil(n*i/8),o=new Uint8Array((a+1+e.interlace)*r);return t=Ct.decode._inflate(t,o),e.interlace==0?t=Ct.decode._filterZero(t,e,0,n,r):e.interlace==1&&(t=Ct.decode._readInterlace(t,e)),t};Ct.decode._inflate=function(e,t){var n=Ct.inflateRaw(new Uint8Array(e.buffer,2,e.length-6),t);return n};Ct.inflateRaw=(function(){var e={};return e.H={},e.H.N=function(t,n){var r=Uint8Array,i=0,a=0,o=0,s=0,l=0,c=0,u=0,d=0,h=0,f,g;if(t[0]==3&&t[1]==0)return n||new r(0);var y=e.H,v=y.b,A=y.e,w=y.R,S=y.n,_=y.A,E=y.Z,T=y.m,D=n==null;for(D&&(n=new r(t.length>>>2<<3));i==0;){if(i=v(t,h,1),a=v(t,h+1,2),h+=3,a==0){(h&7)!=0&&(h+=8-(h&7));var I=(h>>>3)+4,j=t[I-4]|t[I-3]<<8;D&&(n=e.H.W(n,d+j)),n.set(new r(t.buffer,t.byteOffset+I,j),d),h=I+j<<3,d+=j;continue}if(D&&(n=e.H.W(n,d+(1<<17))),a==1&&(f=T.J,g=T.h,c=511,u=31),a==2){o=A(t,h,5)+257,s=A(t,h+5,5)+1,l=A(t,h+10,4)+4,h+=14;for(var R=1,z=0;z<38;z+=2)T.Q[z]=0,T.Q[z+1]=0;for(var z=0;z<l;z++){var B=A(t,h+z*3,3);T.Q[(T.X[z]<<1)+1]=B,B>R&&(R=B)}h+=3*l,S(T.Q,R),_(T.Q,R,T.u),f=T.w,g=T.d,h=w(T.u,(1<<R)-1,o+s,t,h,T.v);var W=y.V(T.v,0,o,T.C);c=(1<<W)-1;var P=y.V(T.v,o,s,T.D);u=(1<<P)-1,S(T.C,W),_(T.C,W,f),S(T.D,P),_(T.D,P,g)}for(;;){var Z=f[E(t,h)&c];h+=Z&15;var Q=Z>>>4;if(!(Q>>>8))n[d++]=Q;else{if(Q==256)break;var X=d+Q-254;if(Q>264){var q=T.q[Q-257];X=d+(q>>>3)+A(t,h,q&7),h+=q&7}var te=g[E(t,h)&u];h+=te&15;var J=te>>>4,ee=T.c[J],le=(ee>>>4)+v(t,h,ee&15);for(h+=ee&15;d<X;)n[d]=n[d++-le],n[d]=n[d++-le],n[d]=n[d++-le],n[d]=n[d++-le];d=X}}}return n.length==d?n:n.slice(0,d)},e.H.W=function(t,n){var r=t.length;if(n<=r)return t;var i=new Uint8Array(r<<1);return i.set(t,0),i},e.H.R=function(t,n,r,i,a,o){for(var s=e.H.e,l=e.H.Z,c=0;c<r;){var u=t[l(i,a)&n];a+=u&15;var d=u>>>4;if(d<=15)o[c]=d,c++;else{var h=0,f=0;d==16?(f=3+s(i,a,2),a+=2,h=o[c-1]):d==17?(f=3+s(i,a,3),a+=3):d==18&&(f=11+s(i,a,7),a+=7);for(var g=c+f;c<g;)o[c]=h,c++}}return a},e.H.V=function(t,n,r,i){for(var a=0,o=0,s=i.length>>>1;o<r;){var l=t[o+n];i[o<<1]=0,i[(o<<1)+1]=l,l>a&&(a=l),o++}for(;o<s;)i[o<<1]=0,i[(o<<1)+1]=0,o++;return a},e.H.n=function(t,n){for(var r=e.H.m,i=t.length,a,o,s,l,c,u=r.j,l=0;l<=n;l++)u[l]=0;for(l=1;l<i;l+=2)u[t[l]]++;var d=r.K;for(a=0,u[0]=0,o=1;o<=n;o++)a=a+u[o-1]<<1,d[o]=a;for(s=0;s<i;s+=2)c=t[s+1],c!=0&&(t[s]=d[c],d[c]++)},e.H.A=function(t,n,r){for(var i=t.length,a=e.H.m,o=a.r,s=0;s<i;s+=2)if(t[s+1]!=0)for(var l=s>>1,c=t[s+1],u=l<<4|c,d=n-c,h=t[s]<<d,f=h+(1<<d);h!=f;){var g=o[h]>>>15-n;r[g]=u,h++}},e.H.l=function(t,n){for(var r=e.H.m.r,i=15-n,a=0;a<t.length;a+=2){var o=t[a]<<n-t[a+1];t[a]=r[o]>>>i}},e.H.M=function(t,n,r){r=r<<(n&7);var i=n>>>3;t[i]|=r,t[i+1]|=r>>>8},e.H.I=function(t,n,r){r=r<<(n&7);var i=n>>>3;t[i]|=r,t[i+1]|=r>>>8,t[i+2]|=r>>>16},e.H.e=function(t,n,r){return(t[n>>>3]|t[(n>>>3)+1]<<8)>>>(n&7)&(1<<r)-1},e.H.b=function(t,n,r){return(t[n>>>3]|t[(n>>>3)+1]<<8|t[(n>>>3)+2]<<16)>>>(n&7)&(1<<r)-1},e.H.Z=function(t,n){return(t[n>>>3]|t[(n>>>3)+1]<<8|t[(n>>>3)+2]<<16)>>>(n&7)},e.H.i=function(t,n){return(t[n>>>3]|t[(n>>>3)+1]<<8|t[(n>>>3)+2]<<16|t[(n>>>3)+3]<<24)>>>(n&7)},e.H.m=(function(){var t=Uint16Array,n=Uint32Array;return{K:new t(16),j:new t(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[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],q:new t(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[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],c:new n(32),J:new t(512),_:[],h:new t(32),$:[],w:new t(32768),C:[],v:[],d:new t(32768),D:[],u:new t(512),Q:[],r:new t(32768),s:new n(286),Y:new n(30),a:new n(19),t:new n(15e3),k:new t(65536),g:new t(32768)}})(),(function(){for(var t=e.H.m,n=32768,r=0;r<n;r++){var i=r;i=(i&2863311530)>>>1|(i&1431655765)<<1,i=(i&3435973836)>>>2|(i&858993459)<<2,i=(i&4042322160)>>>4|(i&252645135)<<4,i=(i&4278255360)>>>8|(i&16711935)<<8,t.r[r]=(i>>>16|i<<16)>>>17}function a(o,s,l){for(;s--!=0;)o.push(0,l)}for(var r=0;r<32;r++)t.q[r]=t.S[r]<<3|t.T[r],t.c[r]=t.p[r]<<4|t.z[r];a(t._,144,8),a(t._,112,9),a(t._,24,7),a(t._,8,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),a(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),a(t.Q,19,0),a(t.C,286,0),a(t.D,30,0),a(t.v,320,0)})(),e.H.N})();Ct.decode._readInterlace=function(e,t){for(var n=t.width,r=t.height,i=Ct.decode._getBPP(t),a=i>>3,o=Math.ceil(n*i/8),s=new Uint8Array(r*o),l=0,c=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],d=[8,8,8,4,4,2,2],h=[8,8,4,4,2,2,1],f=0;f<7;){for(var g=d[f],y=h[f],v=0,A=0,w=c[f];w<r;)w+=g,A++;for(var S=u[f];S<n;)S+=y,v++;var _=Math.ceil(v*i/8);Ct.decode._filterZero(e,t,l,v,A);for(var E=0,T=c[f];T<r;){for(var D=u[f],I=l+E*_<<3;D<n;){if(i==1){var j=e[I>>3];j=j>>7-(I&7)&1,s[T*o+(D>>3)]|=j<<7-((D&7)<<0)}if(i==2){var j=e[I>>3];j=j>>6-(I&7)&3,s[T*o+(D>>2)]|=j<<6-((D&3)<<1)}if(i==4){var j=e[I>>3];j=j>>4-(I&7)&15,s[T*o+(D>>1)]|=j<<4-((D&1)<<2)}if(i>=8)for(var R=T*o+D*a,z=0;z<a;z++)s[R+z]=e[(I>>3)+z];I+=i,D+=y}E++,T+=g}v*A!=0&&(l+=A*(1+_)),f=f+1}return s};Ct.decode._getBPP=function(e){var t=[1,null,3,1,2,null,4][e.ctype];return t*e.depth};Ct.decode._filterZero=function(e,t,n,r,i){var a=Ct.decode._getBPP(t),o=Math.ceil(r*a/8),s=Ct.decode._paeth;a=Math.ceil(a/8);var l=0,c=1,u=e[n],d=0;if(u>1&&(e[n]=[0,0,1][u-2]),u==3)for(d=a;d<o;d++)e[d+1]=e[d+1]+(e[d+1-a]>>>1)&255;for(var h=0;h<i;h++)if(l=n+h*o,c=l+h+1,u=e[c-1],d=0,u==0)for(;d<o;d++)e[l+d]=e[c+d];else if(u==1){for(;d<a;d++)e[l+d]=e[c+d];for(;d<o;d++)e[l+d]=e[c+d]+e[l+d-a]}else if(u==2)for(;d<o;d++)e[l+d]=e[c+d]+e[l+d-o];else if(u==3){for(;d<a;d++)e[l+d]=e[c+d]+(e[l+d-o]>>>1);for(;d<o;d++)e[l+d]=e[c+d]+(e[l+d-o]+e[l+d-a]>>>1)}else{for(;d<a;d++)e[l+d]=e[c+d]+s(0,e[l+d-o],0);for(;d<o;d++)e[l+d]=e[c+d]+s(e[l+d-a],e[l+d-o],e[l+d-a-o])}return e};Ct.decode._paeth=function(e,t,n){var r=e+t-n,i=r-e,a=r-t,o=r-n;return i*i<=a*a&&i*i<=o*o?e:a*a<=o*o?t:n};Ct.decode._IHDR=function(e,t,n){var r=Ct._bin;n.width=r.readUint(e,t),t+=4,n.height=r.readUint(e,t),t+=4,n.depth=e[t],t++,n.ctype=e[t],t++,n.compress=e[t],t++,n.filter=e[t],t++,n.interlace=e[t],t++};Ct._bin={nextZero:function(e,t){for(;e[t]!=0;)t++;return t},readUshort:function(e,t){return e[t]<<8|e[t+1]},writeUshort:function(e,t,n){e[t]=n>>8&255,e[t+1]=n&255},readUint:function(e,t){return e[t]*(256*256*256)+(e[t+1]<<16|e[t+2]<<8|e[t+3])},writeUint:function(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=n&255},readASCII:function(e,t,n){for(var r="",i=0;i<n;i++)r+=String.fromCharCode(e[t+i]);return r},writeASCII:function(e,t,n){for(var r=0;r<n.length;r++)e[t+r]=n.charCodeAt(r)},readBytes:function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(e[t+i]);return r},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,n){for(var r="",i,a=0;a<n;a++)r+="%"+Ct._bin.pad(e[t+a].toString(16));try{i=decodeURIComponent(r)}catch{return Ct._bin.readASCII(e,t,n)}return i}};Ct._copyTile=function(e,t,n,r,i,a,o,s,l){for(var c=Math.min(t,i),u=Math.min(n,a),d=0,h=0,f=0;f<u;f++)for(var g=0;g<c;g++)if(o>=0&&s>=0?(d=f*t+g<<2,h=(s+f)*i+o+g<<2):(d=(-s+f)*t-o+g<<2,h=f*i+g<<2),l==0)r[h]=e[d],r[h+1]=e[d+1],r[h+2]=e[d+2],r[h+3]=e[d+3];else if(l==1){var y=e[d+3]*.00392156862745098,v=e[d]*y,A=e[d+1]*y,w=e[d+2]*y,S=r[h+3]*(1/255),_=r[h]*S,E=r[h+1]*S,T=r[h+2]*S,D=1-y,I=y+S*D,j=I==0?0:1/I;r[h+3]=255*I,r[h+0]=(v+_*D)*j,r[h+1]=(A+E*D)*j,r[h+2]=(w+T*D)*j}else if(l==2){var y=e[d+3],v=e[d],A=e[d+1],w=e[d+2],S=r[h+3],_=r[h],E=r[h+1],T=r[h+2];y==S&&v==_&&A==E&&w==T?(r[h]=0,r[h+1]=0,r[h+2]=0,r[h+3]=0):(r[h]=v,r[h+1]=A,r[h+2]=w,r[h+3]=y)}else if(l==3){var y=e[d+3],v=e[d],A=e[d+1],w=e[d+2],S=r[h+3],_=r[h],E=r[h+1],T=r[h+2];if(y==S&&v==_&&A==E&&w==T)continue;if(y<220&&S>20)return!1}return!0};Ct.encode=function(e,t,n,r,i,a,o){r==null&&(r=0),o==null&&(o=!1);var s=Ct.encode.compress(e,t,n,r,[!1,!1,!1,0,o]);return Ct.encode.compressPNG(s,-1),Ct.encode._main(s,t,n,i,a)};Ct.encodeLL=function(e,t,n,r,i,a,o,s){for(var l={ctype:0+(r==1?0:2)+(i==0?0:4),depth:a,frames:[]},c=(r+i)*a,u=c*t,d=0;d<e.length;d++)l.frames.push({rect:{x:0,y:0,width:t,height:n},img:new Uint8Array(e[d]),blend:0,dispose:1,bpp:Math.ceil(c/8),bpl:Math.ceil(u/8)});Ct.encode.compressPNG(l,0,!0);var h=Ct.encode._main(l,t,n,o,s);return h};Ct.encode._main=function(e,t,n,r,i){i==null&&(i={});var a=Ct.crc.crc,o=Ct._bin.writeUint,s=Ct._bin.writeUshort,l=Ct._bin.writeASCII,c=8,u=e.frames.length>1,d=!1,h=33+(u?20:0);if(i.sRGB!=null&&(h+=13),i.pHYs!=null&&(h+=21),e.ctype==3){for(var f=e.plte.length,g=0;g<f;g++)e.plte[g]>>>24!=255&&(d=!0);h+=8+f*3+4+(d?8+f*1+4:0)}for(var y=0;y<e.frames.length;y++){var v=e.frames[y];u&&(h+=38),h+=v.cimg.length+12,y!=0&&(h+=4)}h+=12;for(var A=new Uint8Array(h),w=[137,80,78,71,13,10,26,10],g=0;g<8;g++)A[g]=w[g];if(o(A,c,13),c+=4,l(A,c,"IHDR"),c+=4,o(A,c,t),c+=4,o(A,c,n),c+=4,A[c]=e.depth,c++,A[c]=e.ctype,c++,A[c]=0,c++,A[c]=0,c++,A[c]=0,c++,o(A,c,a(A,c-17,17)),c+=4,i.sRGB!=null&&(o(A,c,1),c+=4,l(A,c,"sRGB"),c+=4,A[c]=i.sRGB,c++,o(A,c,a(A,c-5,5)),c+=4),i.pHYs!=null&&(o(A,c,9),c+=4,l(A,c,"pHYs"),c+=4,o(A,c,i.pHYs[0]),c+=4,o(A,c,i.pHYs[1]),c+=4,A[c]=i.pHYs[2],c++,o(A,c,a(A,c-13,13)),c+=4),u&&(o(A,c,8),c+=4,l(A,c,"acTL"),c+=4,o(A,c,e.frames.length),c+=4,o(A,c,i.loop!=null?i.loop:0),c+=4,o(A,c,a(A,c-12,12)),c+=4),e.ctype==3){var f=e.plte.length;o(A,c,f*3),c+=4,l(A,c,"PLTE"),c+=4;for(var g=0;g<f;g++){var S=g*3,_=e.plte[g],E=_&255,T=_>>>8&255,D=_>>>16&255;A[c+S+0]=E,A[c+S+1]=T,A[c+S+2]=D}if(c+=f*3,o(A,c,a(A,c-f*3-4,f*3+4)),c+=4,d){o(A,c,f),c+=4,l(A,c,"tRNS"),c+=4;for(var g=0;g<f;g++)A[c+g]=e.plte[g]>>>24&255;c+=f,o(A,c,a(A,c-f-4,f+4)),c+=4}}for(var I=0,y=0;y<e.frames.length;y++){var v=e.frames[y];u&&(o(A,c,26),c+=4,l(A,c,"fcTL"),c+=4,o(A,c,I++),c+=4,o(A,c,v.rect.width),c+=4,o(A,c,v.rect.height),c+=4,o(A,c,v.rect.x),c+=4,o(A,c,v.rect.y),c+=4,s(A,c,r[y]),c+=2,s(A,c,1e3),c+=2,A[c]=v.dispose,c++,A[c]=v.blend,c++,o(A,c,a(A,c-30,30)),c+=4);var j=v.cimg,f=j.length;o(A,c,f+(y==0?0:4)),c+=4;var R=c;l(A,c,y==0?"IDAT":"fdAT"),c+=4,y!=0&&(o(A,c,I++),c+=4),A.set(j,c),c+=f,o(A,c,a(A,R,c-R)),c+=4}return o(A,c,0),c+=4,l(A,c,"IEND"),c+=4,o(A,c,a(A,c-4,4)),c+=4,A.buffer};Ct.encode.compressPNG=function(e,t,n){for(var r=0;r<e.frames.length;r++){var i=e.frames[r];i.rect.width;var a=i.rect.height,o=new Uint8Array(a*i.bpl+a);i.cimg=Ct.encode._filterZero(i.img,a,i.bpp,i.bpl,o,t,n)}};Ct.encode.compress=function(e,t,n,r,i){for(var a=i[0],o=i[1],s=i[2],l=i[3],c=i[4],u=6,d=8,h=255,f=0;f<e.length;f++)for(var g=new Uint8Array(e[f]),y=g.length,v=0;v<y;v+=4)h&=g[v+3];var A=h!=255,w=Ct.encode.framize(e,t,n,a,o,s),S={},_=[],E=[];if(r!=0){for(var T=[],v=0;v<w.length;v++)T.push(w[v].img.buffer);for(var D=Ct.encode.concatRGBA(T),I=Ct.quantize(D,r),j=0,R=new Uint8Array(I.abuf),v=0;v<w.length;v++){var z=w[v].img,B=z.length;E.push(new Uint8Array(I.inds.buffer,j>>2,B>>2));for(var f=0;f<B;f+=4)z[f]=R[j+f],z[f+1]=R[j+f+1],z[f+2]=R[j+f+2],z[f+3]=R[j+f+3];j+=B}for(var v=0;v<I.plte.length;v++)_.push(I.plte[v].est.rgba)}else for(var f=0;f<w.length;f++){var W=w[f],P=new Uint32Array(W.img.buffer),Z=W.rect.width,y=P.length,Q=new Uint8Array(y);E.push(Q);for(var v=0;v<y;v++){var X=P[v];if(v!=0&&X==P[v-1])Q[v]=Q[v-1];else if(v>Z&&X==P[v-Z])Q[v]=Q[v-Z];else{var q=S[X];if(q==null&&(S[X]=q=_.length,_.push(X),_.length>=300))break;Q[v]=q}}}var te=_.length;te<=256&&c==!1&&(te<=2?d=1:te<=4?d=2:te<=16?d=4:d=8,d=Math.max(d,l));for(var f=0;f<w.length;f++){var W=w[f];W.rect.x,W.rect.y;var Z=W.rect.width,J=W.rect.height,ee=W.img;new Uint32Array(ee.buffer);var le=4*Z,G=4;if(te<=256&&c==!1){le=Math.ceil(d*Z/8);for(var xe=new Uint8Array(le*J),ge=E[f],ue=0;ue<J;ue++){var v=ue*le,ce=ue*Z;if(d==8)for(var ye=0;ye<Z;ye++)xe[v+ye]=ge[ce+ye];else if(d==4)for(var ye=0;ye<Z;ye++)xe[v+(ye>>1)]|=ge[ce+ye]<<4-(ye&1)*4;else if(d==2)for(var ye=0;ye<Z;ye++)xe[v+(ye>>2)]|=ge[ce+ye]<<6-(ye&3)*2;else if(d==1)for(var ye=0;ye<Z;ye++)xe[v+(ye>>3)]|=ge[ce+ye]<<7-(ye&7)*1}ee=xe,u=3,G=1}else if(A==!1&&w.length==1){for(var xe=new Uint8Array(Z*J*3),Fe=Z*J,v=0;v<Fe;v++){var z=v*3,Oe=v*4;xe[z]=ee[Oe],xe[z+1]=ee[Oe+1],xe[z+2]=ee[Oe+2]}ee=xe,u=2,G=3,le=3*Z}W.img=ee,W.bpl=le,W.bpp=G}return{ctype:u,depth:d,plte:_,frames:w}};Ct.encode.framize=function(e,t,n,r,i,a){for(var o=[],s=0;s<e.length;s++){var l=new Uint8Array(e[s]),c=new Uint32Array(l.buffer),u,d=0,h=0,f=t,g=n,y=r?1:0;if(s!=0){for(var v=a||r||s==1||o[s-2].dispose!=0?1:2,A=0,w=1e9,S=0;S<v;S++){for(var W=new Uint8Array(e[s-1-S]),_=new Uint32Array(e[s-1-S]),E=t,T=n,D=-1,I=-1,j=0;j<n;j++)for(var R=0;R<t;R++){var z=j*t+R;c[z]!=_[z]&&(R<E&&(E=R),R>D&&(D=R),j<T&&(T=j),j>I&&(I=j))}D==-1&&(E=T=D=I=0),i&&((E&1)==1&&E--,(T&1)==1&&T--);var B=(D-E+1)*(I-T+1);B<w&&(w=B,A=S,d=E,h=T,f=D-E+1,g=I-T+1)}var W=new Uint8Array(e[s-1-A]);A==1&&(o[s-1].dispose=2),u=new Uint8Array(f*g*4),Ct._copyTile(W,t,n,u,f,g,-d,-h,0),y=Ct._copyTile(l,t,n,u,f,g,-d,-h,3)?1:0,y==1?Ct.encode._prepareDiff(l,t,n,u,{x:d,y:h,width:f,height:g}):Ct._copyTile(l,t,n,u,f,g,-d,-h,0)}else u=l.slice(0);o.push({rect:{x:d,y:h,width:f,height:g},img:u,blend:y,dispose:0})}if(r)for(var s=0;s<o.length;s++){var P=o[s];if(P.blend!=1){var Z=P.rect,Q=o[s-1].rect,X=Math.min(Z.x,Q.x),q=Math.min(Z.y,Q.y),te=Math.max(Z.x+Z.width,Q.x+Q.width),J=Math.max(Z.y+Z.height,Q.y+Q.height),ee={x:X,y:q,width:te-X,height:J-q};o[s-1].dispose=1,s-1!=0&&Ct.encode._updateFrame(e,t,n,o,s-1,ee,i),Ct.encode._updateFrame(e,t,n,o,s,ee,i)}}var le=0;if(e.length!=1)for(var z=0;z<o.length;z++){var P=o[z];le+=P.rect.width*P.rect.height}return o};Ct.encode._updateFrame=function(e,t,n,r,i,a,o){for(var s=Uint8Array,l=Uint32Array,c=new s(e[i-1]),u=new l(e[i-1]),d=i+1<e.length?new s(e[i+1]):null,h=new s(e[i]),f=new l(h.buffer),g=t,y=n,v=-1,A=-1,w=0;w<a.height;w++)for(var S=0;S<a.width;S++){var _=a.x+S,E=a.y+w,T=E*t+_,D=f[T];D==0||r[i-1].dispose==0&&u[T]==D&&(d==null||d[T*4+3]!=0)||(_<g&&(g=_),_>v&&(v=_),E<y&&(y=E),E>A&&(A=E))}v==-1&&(g=y=v=A=0),o&&((g&1)==1&&g--,(y&1)==1&&y--),a={x:g,y,width:v-g+1,height:A-y+1};var I=r[i];I.rect=a,I.blend=1,I.img=new Uint8Array(a.width*a.height*4),r[i-1].dispose==0?(Ct._copyTile(c,t,n,I.img,a.width,a.height,-a.x,-a.y,0),Ct.encode._prepareDiff(h,t,n,I.img,a)):Ct._copyTile(h,t,n,I.img,a.width,a.height,-a.x,-a.y,0)};Ct.encode._prepareDiff=function(e,t,n,r,i){Ct._copyTile(e,t,n,r,i.width,i.height,-i.x,-i.y,2)};Ct.encode._filterZero=function(e,t,n,r,i,a,o){var s=[],l=[0,1,2,3,4];a!=-1?l=[a]:(t*r>5e5||n==1)&&(l=[0]);var c;o&&(c={level:0});for(var u=o&&UZIP!=null?UZIP:zNe,d=0;d<l.length;d++){for(var h=0;h<t;h++)Ct.encode._filterLine(i,e,h,r,n,l[d]);s.push(u.deflate(i,c))}for(var f,g=1e9,d=0;d<s.length;d++)s[d].length<g&&(f=d,g=s[d].length);return s[f]};Ct.encode._filterLine=function(e,t,n,r,i,a){var o=n*r,s=o+n,l=Ct.decode._paeth;if(e[s]=a,s++,a==0)if(r<500)for(var c=0;c<r;c++)e[s+c]=t[o+c];else e.set(new Uint8Array(t.buffer,o,r),s);else if(a==1){for(var c=0;c<i;c++)e[s+c]=t[o+c];for(var c=i;c<r;c++)e[s+c]=t[o+c]-t[o+c-i]+256&255}else if(n==0){for(var c=0;c<i;c++)e[s+c]=t[o+c];if(a==2)for(var c=i;c<r;c++)e[s+c]=t[o+c];if(a==3)for(var c=i;c<r;c++)e[s+c]=t[o+c]-(t[o+c-i]>>1)+256&255;if(a==4)for(var c=i;c<r;c++)e[s+c]=t[o+c]-l(t[o+c-i],0,0)+256&255}else{if(a==2)for(var c=0;c<r;c++)e[s+c]=t[o+c]+256-t[o+c-r]&255;if(a==3){for(var c=0;c<i;c++)e[s+c]=t[o+c]+256-(t[o+c-r]>>1)&255;for(var c=i;c<r;c++)e[s+c]=t[o+c]+256-(t[o+c-r]+t[o+c-i]>>1)&255}if(a==4){for(var c=0;c<i;c++)e[s+c]=t[o+c]+256-l(0,t[o+c-r],0)&255;for(var c=i;c<r;c++)e[s+c]=t[o+c]+256-l(t[o+c-i],t[o+c-r],t[o+c-i-r])&255}}};Ct.crc={table:(function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var n=t,r=0;r<8;r++)n&1?n=3988292384^n>>>1:n=n>>>1;e[t]=n}return e})(),update:function(e,t,n,r){for(var i=0;i<r;i++)e=Ct.crc.table[(e^t[n+i])&255]^e>>>8;return e},crc:function(e,t,n){return Ct.crc.update(4294967295,e,t,n)^4294967295}};Ct.quantize=function(e,t){var n=new Uint8Array(e),r=n.slice(0),i=new Uint32Array(r.buffer),a=Ct.quantize.getKDtree(r,t),o=a[0],s=a[1];Ct.quantize.planeDst;for(var l=n,c=i,u=l.length,d=new Uint8Array(n.length>>2),h=0;h<u;h+=4){var f=l[h]*.00392156862745098,g=l[h+1]*(1/255),y=l[h+2]*(1/255),v=l[h+3]*(1/255),A=Ct.quantize.getNearest(o,f,g,y,v);d[h>>2]=A.ind,c[h>>2]=A.est.rgba}return{abuf:r.buffer,inds:d,plte:s}};Ct.quantize.getKDtree=function(e,t,n){n==null&&(n=1e-4);var r=new Uint32Array(e.buffer),i={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=Ct.quantize.stats(e,i.i0,i.i1),i.est=Ct.quantize.estats(i.bst);for(var a=[i];a.length<t;){for(var o=0,s=0,l=0;l<a.length;l++)a[l].est.L>o&&(o=a[l].est.L,s=l);if(o<n)break;var c=a[s],u=Ct.quantize.splitPixels(e,r,c.i0,c.i1,c.est.e,c.est.eMq255),d=c.i0>=u||c.i1<=u;if(d){c.est.L=0;continue}var h={i0:c.i0,i1:u,bst:null,est:null,tdst:0,left:null,right:null};h.bst=Ct.quantize.stats(e,h.i0,h.i1),h.est=Ct.quantize.estats(h.bst);var f={i0:u,i1:c.i1,bst:null,est:null,tdst:0,left:null,right:null};f.bst={R:[],m:[],N:c.bst.N-h.bst.N};for(var l=0;l<16;l++)f.bst.R[l]=c.bst.R[l]-h.bst.R[l];for(var l=0;l<4;l++)f.bst.m[l]=c.bst.m[l]-h.bst.m[l];f.est=Ct.quantize.estats(f.bst),c.left=h,c.right=f,a[s]=h,a.push(f)}a.sort(function(g,y){return y.bst.N-g.bst.N});for(var l=0;l<a.length;l++)a[l].ind=l;return[i,a]};Ct.quantize.getNearest=function(e,t,n,r,i){if(e.left==null)return e.tdst=Ct.quantize.dist(e.est.q,t,n,r,i),e;var a=Ct.quantize.planeDst(e.est,t,n,r,i),o=e.left,s=e.right;a>0&&(o=e.right,s=e.left);var l=Ct.quantize.getNearest(o,t,n,r,i);if(l.tdst<=a*a)return l;var c=Ct.quantize.getNearest(s,t,n,r,i);return c.tdst<l.tdst?c:l};Ct.quantize.planeDst=function(e,t,n,r,i){var a=e.e;return a[0]*t+a[1]*n+a[2]*r+a[3]*i-e.eMq};Ct.quantize.dist=function(e,t,n,r,i){var a=t-e[0],o=n-e[1],s=r-e[2],l=i-e[3];return a*a+o*o+s*s+l*l};Ct.quantize.splitPixels=function(e,t,n,r,i,a){var o=Ct.quantize.vecDot;for(r-=4;n<r;){for(;o(e,n,i)<=a;)n+=4;for(;o(e,r,i)>a;)r-=4;if(n>=r)break;var s=t[n>>2];t[n>>2]=t[r>>2],t[r>>2]=s,n+=4,r-=4}for(;o(e,n,i)>a;)n-=4;return n+4};Ct.quantize.vecDot=function(e,t,n){return e[t]*n[0]+e[t+1]*n[1]+e[t+2]*n[2]+e[t+3]*n[3]};Ct.quantize.stats=function(e,t,n){for(var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0],a=n-t>>2,o=t;o<n;o+=4){var s=e[o]*.00392156862745098,l=e[o+1]*(1/255),c=e[o+2]*(1/255),u=e[o+3]*(1/255);i[0]+=s,i[1]+=l,i[2]+=c,i[3]+=u,r[0]+=s*s,r[1]+=s*l,r[2]+=s*c,r[3]+=s*u,r[5]+=l*l,r[6]+=l*c,r[7]+=l*u,r[10]+=c*c,r[11]+=c*u,r[15]+=u*u}return r[4]=r[1],r[8]=r[2],r[9]=r[6],r[12]=r[3],r[13]=r[7],r[14]=r[11],{R:r,m:i,N:a}};Ct.quantize.estats=function(e){var t=e.R,n=e.m,r=e.N,i=n[0],a=n[1],o=n[2],s=n[3],l=r==0?0:1/r,c=[t[0]-i*i*l,t[1]-i*a*l,t[2]-i*o*l,t[3]-i*s*l,t[4]-a*i*l,t[5]-a*a*l,t[6]-a*o*l,t[7]-a*s*l,t[8]-o*i*l,t[9]-o*a*l,t[10]-o*o*l,t[11]-o*s*l,t[12]-s*i*l,t[13]-s*a*l,t[14]-s*o*l,t[15]-s*s*l],u=c,d=Ct.M4,h=[.5,.5,.5,.5],f=0,g=0;if(r!=0)for(var y=0;y<10&&(h=d.multVec(u,h),g=Math.sqrt(d.dot(h,h)),h=d.sml(1/g,h),!(Math.abs(g-f)<1e-9));y++)f=g;var v=[i*l,a*l,o*l,s*l],A=d.dot(d.sml(255,v),h);return{Cov:c,q:v,e:h,L:f,eMq255:A,eMq:d.dot(h,v),rgba:(Math.round(255*v[3])<<24|Math.round(255*v[2])<<16|Math.round(255*v[1])<<8|Math.round(255*v[0])<<0)>>>0}};Ct.M4={multVec:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]]},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},sml:function(e,t){return[e*t[0],e*t[1],e*t[2],e*t[3]]}};Ct.encode.concatRGBA=function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n].byteLength;for(var r=new Uint8Array(t),i=0,n=0;n<e.length;n++){for(var a=new Uint8Array(e[n]),o=a.length,s=0;s<o;s+=4){var l=a[s],c=a[s+1],u=a[s+2],d=a[s+3];d==0&&(l=c=u=0),r[i+s]=l,r[i+s+1]=c,r[i+s+2]=u,r[i+s+3]=d}i+=o}return r.buffer};var WNe=function(e){if(e===0)return wf.Greyscale;if(e===2)return wf.Truecolour;if(e===3)return wf.IndexedColour;if(e===4)return wf.GreyscaleWithAlpha;if(e===6)return wf.TruecolourWithAlpha;throw new Error("Unknown color type: "+e)},VNe=function(e){for(var t=Math.floor(e.length/4),n=new Uint8Array(t*3),r=new Uint8Array(t*1),i=0,a=0,o=0;i<e.length;)n[a++]=e[i++],n[a++]=e[i++],n[a++]=e[i++],r[o++]=e[i++];return{rgbChannel:n,alphaChannel:r}},wf;(function(e){e.Greyscale="Greyscale",e.Truecolour="Truecolour",e.IndexedColour="IndexedColour",e.GreyscaleWithAlpha="GreyscaleWithAlpha",e.TruecolourWithAlpha="TruecolourWithAlpha"})(wf||(wf={}));var GNe=(function(){function e(t){var n=Ct.decode(t),r=Ct.toRGBA8(n);if(r.length>1)throw new Error("Animated PNGs are not supported");var i=new Uint8Array(r[0]),a=VNe(i),o=a.rgbChannel,s=a.alphaChannel;this.rgbChannel=o;var l=s.some(function(c){return c<255});l&&(this.alphaChannel=s),this.type=WNe(n.ctype),this.width=n.width,this.height=n.height,this.bitsPerComponent=8}return e.load=function(t){return new e(t)},e})(),LK=(function(){function e(t){this.image=t,this.bitsPerComponent=t.bitsPerComponent,this.width=t.width,this.height=t.height,this.colorSpace="DeviceRGB"}return e.for=function(t){return wr(this,void 0,void 0,function(){var n;return Sr(this,function(r){return n=GNe.load(t),[2,new e(n)]})})},e.prototype.embedIntoContext=function(t,n){return wr(this,void 0,void 0,function(){var r,i;return Sr(this,function(a){return r=this.embedAlphaChannel(t),i=t.flateStream(this.image.rgbChannel,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.image.bitsPerComponent,Width:this.image.width,Height:this.image.height,ColorSpace:this.colorSpace,SMask:r}),n?(t.assign(n,i),[2,n]):[2,t.register(i)]})})},e.prototype.embedAlphaChannel=function(t){if(this.image.alphaChannel){var n=t.flateStream(this.image.alphaChannel,{Type:"XObject",Subtype:"Image",Height:this.image.height,Width:this.image.width,BitsPerComponent:this.image.bitsPerComponent,ColorSpace:"DeviceGray",Decode:[0,1]});return t.register(n)}},e})(),OK=(function(){function e(t,n,r){this.bytes=t,this.start=n||0,this.pos=this.start,this.end=n&&r?n+r:this.bytes.length}return Object.defineProperty(e.prototype,"length",{get:function(){return this.end-this.start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this.length===0},enumerable:!1,configurable:!0}),e.prototype.getByte=function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},e.prototype.getUint16=function(){var t=this.getByte(),n=this.getByte();return t===-1||n===-1?-1:(t<<8)+n},e.prototype.getInt32=function(){var t=this.getByte(),n=this.getByte(),r=this.getByte(),i=this.getByte();return(t<<24)+(n<<16)+(r<<8)+i},e.prototype.getBytes=function(t,n){n===void 0&&(n=!1);var r=this.bytes,i=this.pos,a=this.end;if(t){var s=i+t;s>a&&(s=a),this.pos=s;var o=r.subarray(i,s);return n?new Uint8ClampedArray(o):o}else{var o=r.subarray(i,a);return n?new Uint8ClampedArray(o):o}},e.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},e.prototype.peekBytes=function(t,n){n===void 0&&(n=!1);var r=this.getBytes(t,n);return this.pos-=r.length,r},e.prototype.skip=function(t){t||(t=1),this.pos+=t},e.prototype.reset=function(){this.pos=this.start},e.prototype.moveStart=function(){this.start=this.pos},e.prototype.makeSubStream=function(t,n){return new e(this.bytes,t,n)},e.prototype.decode=function(){return this.bytes},e})(),qNe=new Uint8Array(0),My=(function(){function e(t){if(this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=qNe,this.minBufferLength=512,t)for(;this.minBufferLength<t;)this.minBufferLength*=2}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0},enumerable:!1,configurable:!0}),e.prototype.getByte=function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},e.prototype.getUint16=function(){var t=this.getByte(),n=this.getByte();return t===-1||n===-1?-1:(t<<8)+n},e.prototype.getInt32=function(){var t=this.getByte(),n=this.getByte(),r=this.getByte(),i=this.getByte();return(t<<24)+(n<<16)+(r<<8)+i},e.prototype.getBytes=function(t,n){n===void 0&&(n=!1);var r,i=this.pos;if(t){for(this.ensureBuffer(i+t),r=i+t;!this.eof&&this.bufferLength<r;)this.readBlock();var a=this.bufferLength;r>a&&(r=a)}else{for(;!this.eof;)this.readBlock();r=this.bufferLength}this.pos=r;var o=this.buffer.subarray(i,r);return n&&!(o instanceof Uint8ClampedArray)?new Uint8ClampedArray(o):o},e.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},e.prototype.peekBytes=function(t,n){n===void 0&&(n=!1);var r=this.getBytes(t,n);return this.pos-=r.length,r},e.prototype.skip=function(t){t||(t=1),this.pos+=t},e.prototype.reset=function(){this.pos=0},e.prototype.makeSubStream=function(t,n){for(var r=t+n;this.bufferLength<=r&&!this.eof;)this.readBlock();return new OK(this.buffer,t,n)},e.prototype.decode=function(){for(;!this.eof;)this.readBlock();return this.buffer.subarray(0,this.bufferLength)},e.prototype.readBlock=function(){throw new Ks(this.constructor.name,"readBlock")},e.prototype.ensureBuffer=function(t){var n=this.buffer;if(t<=n.byteLength)return n;for(var r=this.minBufferLength;r<t;)r*=2;var i=new Uint8Array(r);return i.set(n),this.buffer=i},e})(),KO=function(e){return e===32||e===9||e===13||e===10},HNe=(function(e){Mt(t,e);function t(n,r){var i=e.call(this,r)||this;return i.stream=n,i.input=new Uint8Array(5),r&&(r=.8*r),i}return t.prototype.readBlock=function(){for(var n=126,r=122,i=-1,a=this.stream,o=a.getByte();KO(o);)o=a.getByte();if(o===i||o===n){this.eof=!0;return}var s=this.bufferLength,l,c;if(o===r){for(l=this.ensureBuffer(s+4),c=0;c<4;++c)l[s+c]=0;this.bufferLength+=4}else{var u=this.input;for(u[0]=o,c=1;c<5;++c){for(o=a.getByte();KO(o);)o=a.getByte();if(u[c]=o,o===i||o===n)break}if(l=this.ensureBuffer(s+c-1),this.bufferLength+=c-1,c<5){for(;c<5;++c)u[c]=117;this.eof=!0}var d=0;for(c=0;c<5;++c)d=d*85+(u[c]-33);for(c=3;c>=0;--c)l[s+c]=d&255,d>>=8}},t})(My),XNe=(function(e){Mt(t,e);function t(n,r){var i=e.call(this,r)||this;return i.stream=n,i.firstDigit=-1,r&&(r=.5*r),i}return t.prototype.readBlock=function(){var n=8e3,r=this.stream.getBytes(n);if(!r.length){this.eof=!0;return}for(var i=r.length+1>>1,a=this.ensureBuffer(this.bufferLength+i),o=this.bufferLength,s=this.firstDigit,l=0,c=r.length;l<c;l++){var u=r[l],d=void 0;if(u>=48&&u<=57)d=u&15;else if(u>=65&&u<=70||u>=97&&u<=102)d=(u&15)+9;else if(u===62){this.eof=!0;break}else continue;s<0?s=d:(a[o++]=s<<4|d,s=-1)}s>=0&&this.eof&&(a[o++]=s<<4,s=-1),this.firstDigit=s,this.bufferLength=o},t})(My),$O=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ZNe=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),KNe=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),$Ne=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],YNe=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5],JNe=(function(e){Mt(t,e);function t(n,r){var i=e.call(this,r)||this;i.stream=n;var a=n.getByte(),o=n.getByte();if(a===-1||o===-1)throw new Error("Invalid header in flate stream: "+a+", "+o);if((a&15)!==8)throw new Error("Unknown compression method in flate stream: "+a+", "+o);if(((a<<8)+o)%31!==0)throw new Error("Bad FCHECK in flate stream: "+a+", "+o);if(o&32)throw new Error("FDICT bit set in flate stream: "+a+", "+o);return i.codeSize=0,i.codeBuf=0,i}return t.prototype.readBlock=function(){var n,r,i=this.stream,a=this.getBits(3);if(a&1&&(this.eof=!0),a>>=1,a===0){var o=void 0;if((o=i.getByte())===-1)throw new Error("Bad block header in flate stream");var s=o;if((o=i.getByte())===-1)throw new Error("Bad block header in flate stream");if(s|=o<<8,(o=i.getByte())===-1)throw new Error("Bad block header in flate stream");var l=o;if((o=i.getByte())===-1)throw new Error("Bad block header in flate stream");if(l|=o<<8,l!==(~s&65535)&&(s!==0||l!==0))throw new Error("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var c=this.bufferLength;n=this.ensureBuffer(c+s);var u=c+s;if(this.bufferLength=u,s===0)i.peekByte()===-1&&(this.eof=!0);else for(var d=c;d<u;++d){if((o=i.getByte())===-1){this.eof=!0;break}n[d]=o}return}var h,f;if(a===1)h=$Ne,f=YNe;else if(a===2){var g=this.getBits(5)+257,y=this.getBits(5)+1,v=this.getBits(4)+4,A=new Uint8Array($O.length),w=void 0;for(w=0;w<v;++w)A[$O[w]]=this.getBits(3);var S=this.generateHuffmanTable(A);r=0,w=0;for(var _=g+y,E=new Uint8Array(_),T=void 0,D=void 0,I=void 0;w<_;){var j=this.getCode(S);if(j===16)T=2,D=3,I=r;else if(j===17)T=3,D=3,I=r=0;else if(j===18)T=7,D=11,I=r=0;else{E[w++]=r=j;continue}for(var R=this.getBits(T)+D;R-- >0;)E[w++]=I}h=this.generateHuffmanTable(E.subarray(0,g)),f=this.generateHuffmanTable(E.subarray(g,_))}else throw new Error("Unknown block type in flate stream");n=this.buffer;for(var z=n?n.length:0,B=this.bufferLength;;){var W=this.getCode(h);if(W<256){B+1>=z&&(n=this.ensureBuffer(B+1),z=n.length),n[B++]=W;continue}if(W===256){this.bufferLength=B;return}W-=257,W=ZNe[W];var P=W>>16;P>0&&(P=this.getBits(P)),r=(W&65535)+P,W=this.getCode(f),W=KNe[W],P=W>>16,P>0&&(P=this.getBits(P));var Z=(W&65535)+P;B+r>=z&&(n=this.ensureBuffer(B+r),z=n.length);for(var Q=0;Q<r;++Q,++B)n[B]=n[B-Z]}},t.prototype.getBits=function(n){for(var r=this.stream,i=this.codeSize,a=this.codeBuf,o;i<n;){if((o=r.getByte())===-1)throw new Error("Bad encoding in flate stream");a|=o<<i,i+=8}return o=a&(1<<n)-1,this.codeBuf=a>>n,this.codeSize=i-=n,o},t.prototype.getCode=function(n){for(var r=this.stream,i=n[0],a=n[1],o=this.codeSize,s=this.codeBuf,l;o<a&&(l=r.getByte())!==-1;)s|=l<<o,o+=8;var c=i[s&(1<<a)-1];typeof i=="number"&&console.log("FLATE:",c);var u=c>>16,d=c&65535;if(u<1||o<u)throw new Error("Bad encoding in flate stream");return this.codeBuf=s>>u,this.codeSize=o-u,d},t.prototype.generateHuffmanTable=function(n){var r=n.length,i=0,a;for(a=0;a<r;++a)n[a]>i&&(i=n[a]);for(var o=1<<i,s=new Int32Array(o),l=1,c=0,u=2;l<=i;++l,c<<=1,u<<=1)for(var d=0;d<r;++d)if(n[d]===l){var h=0,f=c;for(a=0;a<l;++a)h=h<<1|f&1,f>>=1;for(a=h;a<o;a+=u)s[a]=l<<16|d;++c}return[s,i]},t})(My),QNe=(function(e){Mt(t,e);function t(n,r,i){var a=e.call(this,r)||this;a.stream=n,a.cachedData=0,a.bitsCached=0;for(var o=4096,s={earlyChange:i,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(o),dictionaryLengths:new Uint16Array(o),dictionaryPrevCodes:new Uint16Array(o),currentSequence:new Uint8Array(o),currentSequenceLength:0},l=0;l<256;++l)s.dictionaryValues[l]=l,s.dictionaryLengths[l]=1;return a.lzwState=s,a}return t.prototype.readBlock=function(){var n=512,r=n*2,i=n,a,o,s,l=this.lzwState;if(l){var c=l.earlyChange,u=l.nextCode,d=l.dictionaryValues,h=l.dictionaryLengths,f=l.dictionaryPrevCodes,g=l.codeLength,y=l.prevCode,v=l.currentSequence,A=l.currentSequenceLength,w=0,S=this.bufferLength,_=this.ensureBuffer(this.bufferLength+r);for(a=0;a<n;a++){var E=this.readBits(g),T=A>0;if(!E||E<256)v[0]=E,A=1;else if(E>=258)if(E<u)for(A=h[E],o=A-1,s=E;o>=0;o--)v[o]=d[s],s=f[s];else v[A++]=v[0];else if(E===256){g=9,u=258,A=0;continue}else{this.eof=!0,delete this.lzwState;break}if(T&&(f[u]=y,h[u]=h[y]+1,d[u]=v[0],u++,g=u+c&u+c-1?g:Math.min(Math.log(u+c)/.6931471805599453+1,12)|0),y=E,w+=A,r<w){do r+=i;while(r<w);_=this.ensureBuffer(this.bufferLength+r)}for(o=0;o<A;o++)_[S++]=v[o]}l.nextCode=u,l.codeLength=g,l.prevCode=y,l.currentSequenceLength=A,this.bufferLength=S}},t.prototype.readBits=function(n){for(var r=this.bitsCached,i=this.cachedData;r<n;){var a=this.stream.getByte();if(a===-1)return this.eof=!0,null;i=i<<8|a,r+=8}return this.bitsCached=r-=n,this.cachedData=i,i>>>r&(1<<n)-1},t})(My),e3e=(function(e){Mt(t,e);function t(n,r){var i=e.call(this,r)||this;return i.stream=n,i}return t.prototype.readBlock=function(){var n=this.stream.getBytes(2);if(!n||n.length<2||n[0]===128){this.eof=!0;return}var r,i=this.bufferLength,a=n[0];if(a<128){if(r=this.ensureBuffer(i+a+1),r[i++]=n[1],a>0){var o=this.stream.getBytes(a);r.set(o,i),i+=a}}else{a=257-a;var s=n[1];r=this.ensureBuffer(i+a+1);for(var l=0;l<a;l++)r[i++]=s}this.bufferLength=i},t})(My),YO=function(e,t,n){if(t===je.of("FlateDecode"))return new JNe(e);if(t===je.of("LZWDecode")){var r=1;if(n instanceof gr){var i=n.lookup(je.of("EarlyChange"));i instanceof nr&&(r=i.asNumber())}return new QNe(e,void 0,r)}if(t===je.of("ASCII85Decode"))return new HNe(e);if(t===je.of("ASCIIHexDecode"))return new XNe(e);if(t===je.of("RunLengthDecode"))return new e3e(e);throw new WEe(t.asString())},jK=function(e){var t=e.dict,n=e.contents,r=new OK(n),i=t.lookup(je.of("Filter")),a=t.lookup(je.of("DecodeParms"));if(i instanceof je)r=YO(r,i,a);else if(i instanceof ii)for(var o=0,s=i.size();o<s;o++)r=YO(r,i.lookup(o,je),a&&a.lookupMaybe(o,gr));else if(i)throw new iA([je,ii],i);return r},t3e=function(e){var t=e.MediaBox(),n=t.lookup(2,nr).asNumber()-t.lookup(0,nr).asNumber(),r=t.lookup(3,nr).asNumber()-t.lookup(1,nr).asNumber();return{left:0,bottom:0,right:n,top:r}},n3e=function(e){return[1,0,0,1,-e.left,-e.bottom]},BK=(function(){function e(t,n,r){this.page=t;var i=n??t3e(t);this.width=i.right-i.left,this.height=i.top-i.bottom,this.boundingBox=i,this.transformationMatrix=r??n3e(i)}return e.for=function(t,n,r){return wr(this,void 0,void 0,function(){return Sr(this,function(i){return[2,new e(t,n,r)]})})},e.prototype.embedIntoContext=function(t,n){return wr(this,void 0,void 0,function(){var r,i,a,o,s,l,c,u,d,h;return Sr(this,function(f){if(r=this.page.normalizedEntries(),i=r.Contents,a=r.Resources,!i)throw new VEe;return o=this.decodeContents(i),s=this.boundingBox,l=s.left,c=s.bottom,u=s.right,d=s.top,h=t.flateStream(o,{Type:"XObject",Subtype:"Form",FormType:1,BBox:[l,c,u,d],Matrix:this.transformationMatrix,Resources:a}),n?(t.assign(n,h),[2,n]):[2,t.register(h)]})})},e.prototype.decodeContents=function(t){for(var n=Uint8Array.of(ze.Newline),r=[],i=0,a=t.size();i<a;i++){var o=t.lookup(i,xs),s=void 0;if(o instanceof ny)s=jK(o).decode();else if(o instanceof m0)s=o.getUnencodedContents();else throw new GEe(o);r.push(s,n)}return W_e.apply(void 0,r)},e})(),Xx=function(e,t){if(e!==void 0)return t[e]},y0;(function(e){e.UseNone="UseNone",e.UseOutlines="UseOutlines",e.UseThumbs="UseThumbs",e.UseOC="UseOC"})(y0||(y0={}));var v0;(function(e){e.L2R="L2R",e.R2L="R2L"})(v0||(v0={}));var x0;(function(e){e.None="None",e.AppDefault="AppDefault"})(x0||(x0={}));var sA;(function(e){e.Simplex="Simplex",e.DuplexFlipShortEdge="DuplexFlipShortEdge",e.DuplexFlipLongEdge="DuplexFlipLongEdge"})(sA||(sA={}));var JO=(function(){function e(t){this.dict=t}return e.prototype.lookupBool=function(t){var n=this.dict.lookup(je.of(t));if(n instanceof ty)return n},e.prototype.lookupName=function(t){var n=this.dict.lookup(je.of(t));if(n instanceof je)return n},e.prototype.HideToolbar=function(){return this.lookupBool("HideToolbar")},e.prototype.HideMenubar=function(){return this.lookupBool("HideMenubar")},e.prototype.HideWindowUI=function(){return this.lookupBool("HideWindowUI")},e.prototype.FitWindow=function(){return this.lookupBool("FitWindow")},e.prototype.CenterWindow=function(){return this.lookupBool("CenterWindow")},e.prototype.DisplayDocTitle=function(){return this.lookupBool("DisplayDocTitle")},e.prototype.NonFullScreenPageMode=function(){return this.lookupName("NonFullScreenPageMode")},e.prototype.Direction=function(){return this.lookupName("Direction")},e.prototype.PrintScaling=function(){return this.lookupName("PrintScaling")},e.prototype.Duplex=function(){return this.lookupName("Duplex")},e.prototype.PickTrayByPDFSize=function(){return this.lookupBool("PickTrayByPDFSize")},e.prototype.PrintPageRange=function(){var t=this.dict.lookup(je.of("PrintPageRange"));if(t instanceof ii)return t},e.prototype.NumCopies=function(){var t=this.dict.lookup(je.of("NumCopies"));if(t instanceof nr)return t},e.prototype.getHideToolbar=function(){var t,n;return(n=(t=this.HideToolbar())===null||t===void 0?void 0:t.asBoolean())!==null&&n!==void 0?n:!1},e.prototype.getHideMenubar=function(){var t,n;return(n=(t=this.HideMenubar())===null||t===void 0?void 0:t.asBoolean())!==null&&n!==void 0?n:!1},e.prototype.getHideWindowUI=function(){var t,n;return(n=(t=this.HideWindowUI())===null||t===void 0?void 0:t.asBoolean())!==null&&n!==void 0?n:!1},e.prototype.getFitWindow=function(){var t,n;return(n=(t=this.FitWindow())===null||t===void 0?void 0:t.asBoolean())!==null&&n!==void 0?n:!1},e.prototype.getCenterWindow=function(){var t,n;return(n=(t=this.CenterWindow())===null||t===void 0?void 0:t.asBoolean())!==null&&n!==void 0?n:!1},e.prototype.getDisplayDocTitle=function(){var t,n;return(n=(t=this.DisplayDocTitle())===null||t===void 0?void 0:t.asBoolean())!==null&&n!==void 0?n:!1},e.prototype.getNonFullScreenPageMode=function(){var t,n,r=(t=this.NonFullScreenPageMode())===null||t===void 0?void 0:t.decodeText();return(n=Xx(r,y0))!==null&&n!==void 0?n:y0.UseNone},e.prototype.getReadingDirection=function(){var t,n,r=(t=this.Direction())===null||t===void 0?void 0:t.decodeText();return(n=Xx(r,v0))!==null&&n!==void 0?n:v0.L2R},e.prototype.getPrintScaling=function(){var t,n,r=(t=this.PrintScaling())===null||t===void 0?void 0:t.decodeText();return(n=Xx(r,x0))!==null&&n!==void 0?n:x0.AppDefault},e.prototype.getDuplex=function(){var t,n=(t=this.Duplex())===null||t===void 0?void 0:t.decodeText();return Xx(n,sA)},e.prototype.getPickTrayByPDFSize=function(){var t;return(t=this.PickTrayByPDFSize())===null||t===void 0?void 0:t.asBoolean()},e.prototype.getPrintPageRange=function(){var t=this.PrintPageRange();if(!t)return[];for(var n=[],r=0;r<t.size();r+=2){var i=t.lookup(r,nr).asNumber(),a=t.lookup(r+1,nr).asNumber();n.push({start:i,end:a})}return n},e.prototype.getNumCopies=function(){var t,n;return(n=(t=this.NumCopies())===null||t===void 0?void 0:t.asNumber())!==null&&n!==void 0?n:1},e.prototype.setHideToolbar=function(t){var n=this.dict.context.obj(t);this.dict.set(je.of("HideToolbar"),n)},e.prototype.setHideMenubar=function(t){var n=this.dict.context.obj(t);this.dict.set(je.of("HideMenubar"),n)},e.prototype.setHideWindowUI=function(t){var n=this.dict.context.obj(t);this.dict.set(je.of("HideWindowUI"),n)},e.prototype.setFitWindow=function(t){var n=this.dict.context.obj(t);this.dict.set(je.of("FitWindow"),n)},e.prototype.setCenterWindow=function(t){var n=this.dict.context.obj(t);this.dict.set(je.of("CenterWindow"),n)},e.prototype.setDisplayDocTitle=function(t){var n=this.dict.context.obj(t);this.dict.set(je.of("DisplayDocTitle"),n)},e.prototype.setNonFullScreenPageMode=function(t){Vu(t,"nonFullScreenPageMode",y0);var n=je.of(t);this.dict.set(je.of("NonFullScreenPageMode"),n)},e.prototype.setReadingDirection=function(t){Vu(t,"readingDirection",v0);var n=je.of(t);this.dict.set(je.of("Direction"),n)},e.prototype.setPrintScaling=function(t){Vu(t,"printScaling",x0);var n=je.of(t);this.dict.set(je.of("PrintScaling"),n)},e.prototype.setDuplex=function(t){Vu(t,"duplex",sA);var n=je.of(t);this.dict.set(je.of("Duplex"),n)},e.prototype.setPickTrayByPDFSize=function(t){var n=this.dict.context.obj(t);this.dict.set(je.of("PickTrayByPDFSize"),n)},e.prototype.setPrintPageRange=function(t){Array.isArray(t)||(t=[t]);for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].start),n.push(t[r].end);yK(n,"printPageRange",["number"]);var a=this.dict.context.obj(n);this.dict.set(je.of("PrintPageRange"),a)},e.prototype.setNumCopies=function(t){gs(t,"numCopies",1,Number.MAX_VALUE),zEe(t,"numCopies");var n=this.dict.context.obj(t);this.dict.set(je.of("NumCopies"),n)},e.fromDict=function(t){return new e(t)},e.create=function(t){var n=t.obj({});return new e(n)},e})(),r3e=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+Tf/,zK=(function(){function e(t,n){this.dict=t,this.ref=n}return e.prototype.T=function(){return this.dict.lookupMaybe(je.of("T"),di,qn)},e.prototype.Ff=function(){var t=this.getInheritableAttribute(je.of("Ff"));return this.dict.context.lookupMaybe(t,nr)},e.prototype.V=function(){var t=this.getInheritableAttribute(je.of("V"));return this.dict.context.lookup(t)},e.prototype.Kids=function(){return this.dict.lookupMaybe(je.of("Kids"),ii)},e.prototype.DA=function(){var t=this.dict.lookup(je.of("DA"));if(t instanceof di||t instanceof qn)return t},e.prototype.setKids=function(t){this.dict.set(je.of("Kids"),this.dict.context.obj(t))},e.prototype.getParent=function(){var t=this.dict.get(je.of("Parent"));if(t instanceof fi){var n=this.dict.lookup(je.of("Parent"),gr);return new e(n,t)}},e.prototype.setParent=function(t){t?this.dict.set(je.of("Parent"),t):this.dict.delete(je.of("Parent"))},e.prototype.getFullyQualifiedName=function(){var t=this.getParent();return t?t.getFullyQualifiedName()+"."+this.getPartialName():this.getPartialName()},e.prototype.getPartialName=function(){var t;return(t=this.T())===null||t===void 0?void 0:t.decodeText()},e.prototype.setPartialName=function(t){t?this.dict.set(je.of("T"),qn.fromText(t)):this.dict.delete(je.of("T"))},e.prototype.setDefaultAppearance=function(t){this.dict.set(je.of("DA"),di.of(t))},e.prototype.getDefaultAppearance=function(){var t=this.DA();return t instanceof qn?t.decodeText():t==null?void 0:t.asString()},e.prototype.setFontSize=function(t){var n,r=(n=this.getFullyQualifiedName())!==null&&n!==void 0?n:"",i=this.getDefaultAppearance();if(!i)throw new ZEe(r);var a=PF(i,r3e);if(!a.match)throw new KEe(r);var o=i.slice(0,a.pos-a.match[0].length),s=a.pos<=i.length?i.slice(a.pos):"",l=a.match[1],c=o+" /"+l+" "+t+" Tf "+s;this.setDefaultAppearance(c)},e.prototype.getFlags=function(){var t,n;return(n=(t=this.Ff())===null||t===void 0?void 0:t.asNumber())!==null&&n!==void 0?n:0},e.prototype.setFlags=function(t){this.dict.set(je.of("Ff"),nr.of(t))},e.prototype.hasFlag=function(t){var n=this.getFlags();return(n&t)!==0},e.prototype.setFlag=function(t){var n=this.getFlags();this.setFlags(n|t)},e.prototype.clearFlag=function(t){var n=this.getFlags();this.setFlags(n&~t)},e.prototype.setFlagTo=function(t,n){n?this.setFlag(t):this.clearFlag(t)},e.prototype.getInheritableAttribute=function(t){var n;return this.ascend(function(r){n||(n=r.dict.get(t))}),n},e.prototype.ascend=function(t){t(this);var n=this.getParent();n&&n.ascend(t)},e})(),BC=(function(){function e(t){this.dict=t}return e.prototype.W=function(){var t=this.dict.lookup(je.of("W"));if(t instanceof nr)return t},e.prototype.getWidth=function(){var t,n;return(n=(t=this.W())===null||t===void 0?void 0:t.asNumber())!==null&&n!==void 0?n:1},e.prototype.setWidth=function(t){var n=this.dict.context.obj(t);this.dict.set(je.of("W"),n)},e.fromDict=function(t){return new e(t)},e})(),i3e=(function(){function e(t){this.dict=t}return e.prototype.Rect=function(){return this.dict.lookup(je.of("Rect"),ii)},e.prototype.AP=function(){return this.dict.lookupMaybe(je.of("AP"),gr)},e.prototype.F=function(){var t=this.dict.lookup(je.of("F"));return this.dict.context.lookupMaybe(t,nr)},e.prototype.getRectangle=function(){var t,n=this.Rect();return(t=n==null?void 0:n.asRectangle())!==null&&t!==void 0?t:{x:0,y:0,width:0,height:0}},e.prototype.setRectangle=function(t){var n=t.x,r=t.y,i=t.width,a=t.height,o=this.dict.context.obj([n,r,n+i,r+a]);this.dict.set(je.of("Rect"),o)},e.prototype.getAppearanceState=function(){var t=this.dict.lookup(je.of("AS"));if(t instanceof je)return t},e.prototype.setAppearanceState=function(t){this.dict.set(je.of("AS"),t)},e.prototype.setAppearances=function(t){this.dict.set(je.of("AP"),t)},e.prototype.ensureAP=function(){var t=this.AP();return t||(t=this.dict.context.obj({}),this.dict.set(je.of("AP"),t)),t},e.prototype.getNormalAppearance=function(){var t=this.ensureAP(),n=t.get(je.of("N"));if(n instanceof fi||n instanceof gr)return n;throw new Error("Unexpected N type: "+(n==null?void 0:n.constructor.name))},e.prototype.setNormalAppearance=function(t){var n=this.ensureAP();n.set(je.of("N"),t)},e.prototype.setRolloverAppearance=function(t){var n=this.ensureAP();n.set(je.of("R"),t)},e.prototype.setDownAppearance=function(t){var n=this.ensureAP();n.set(je.of("D"),t)},e.prototype.removeRolloverAppearance=function(){var t=this.AP();t==null||t.delete(je.of("R"))},e.prototype.removeDownAppearance=function(){var t=this.AP();t==null||t.delete(je.of("D"))},e.prototype.getAppearances=function(){var t=this.AP();if(t){var n=t.lookup(je.of("N"),gr,xs),r=t.lookupMaybe(je.of("R"),gr,xs),i=t.lookupMaybe(je.of("D"),gr,xs);return{normal:n,rollover:r,down:i}}},e.prototype.getFlags=function(){var t,n;return(n=(t=this.F())===null||t===void 0?void 0:t.asNumber())!==null&&n!==void 0?n:0},e.prototype.setFlags=function(t){this.dict.set(je.of("F"),nr.of(t))},e.prototype.hasFlag=function(t){var n=this.getFlags();return(n&t)!==0},e.prototype.setFlag=function(t){var n=this.getFlags();this.setFlags(n|t)},e.prototype.clearFlag=function(t){var n=this.getFlags();this.setFlags(n&~t)},e.prototype.setFlagTo=function(t,n){n?this.setFlag(t):this.clearFlag(t)},e.fromDict=function(t){return new e(t)},e})(),zC=(function(){function e(t){this.dict=t}return e.prototype.R=function(){var t=this.dict.lookup(je.of("R"));if(t instanceof nr)return t},e.prototype.BC=function(){var t=this.dict.lookup(je.of("BC"));if(t instanceof ii)return t},e.prototype.BG=function(){var t=this.dict.lookup(je.of("BG"));if(t instanceof ii)return t},e.prototype.CA=function(){var t=this.dict.lookup(je.of("CA"));if(t instanceof qn||t instanceof di)return t},e.prototype.RC=function(){var t=this.dict.lookup(je.of("RC"));if(t instanceof qn||t instanceof di)return t},e.prototype.AC=function(){var t=this.dict.lookup(je.of("AC"));if(t instanceof qn||t instanceof di)return t},e.prototype.getRotation=function(){var t;return(t=this.R())===null||t===void 0?void 0:t.asNumber()},e.prototype.getBorderColor=function(){var t=this.BC();if(t){for(var n=[],r=0,i=t==null?void 0:t.size();r<i;r++){var a=t.get(r);a instanceof nr&&n.push(a.asNumber())}return n}},e.prototype.getBackgroundColor=function(){var t=this.BG();if(t){for(var n=[],r=0,i=t==null?void 0:t.size();r<i;r++){var a=t.get(r);a instanceof nr&&n.push(a.asNumber())}return n}},e.prototype.getCaptions=function(){var t=this.CA(),n=this.RC(),r=this.AC();return{normal:t==null?void 0:t.decodeText(),rollover:n==null?void 0:n.decodeText(),down:r==null?void 0:r.decodeText()}},e.prototype.setRotation=function(t){var n=this.dict.context.obj(t);this.dict.set(je.of("R"),n)},e.prototype.setBorderColor=function(t){var n=this.dict.context.obj(t);this.dict.set(je.of("BC"),n)},e.prototype.setBackgroundColor=function(t){var n=this.dict.context.obj(t);this.dict.set(je.of("BG"),n)},e.prototype.setCaptions=function(t){var n=qn.fromText(t.normal);if(this.dict.set(je.of("CA"),n),t.rollover){var r=qn.fromText(t.rollover);this.dict.set(je.of("RC"),r)}else this.dict.delete(je.of("RC"));if(t.down){var i=qn.fromText(t.down);this.dict.set(je.of("AC"),i)}else this.dict.delete(je.of("AC"))},e.fromDict=function(t){return new e(t)},e})(),z_=(function(e){Mt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.MK=function(){var n=this.dict.lookup(je.of("MK"));if(n instanceof gr)return n},t.prototype.BS=function(){var n=this.dict.lookup(je.of("BS"));if(n instanceof gr)return n},t.prototype.DA=function(){var n=this.dict.lookup(je.of("DA"));if(n instanceof di||n instanceof qn)return n},t.prototype.P=function(){var n=this.dict.get(je.of("P"));if(n instanceof fi)return n},t.prototype.setP=function(n){this.dict.set(je.of("P"),n)},t.prototype.setDefaultAppearance=function(n){this.dict.set(je.of("DA"),di.of(n))},t.prototype.getDefaultAppearance=function(){var n=this.DA();return n instanceof qn?n.decodeText():n==null?void 0:n.asString()},t.prototype.getAppearanceCharacteristics=function(){var n=this.MK();if(n)return zC.fromDict(n)},t.prototype.getOrCreateAppearanceCharacteristics=function(){var n=this.MK();if(n)return zC.fromDict(n);var r=zC.fromDict(this.dict.context.obj({}));return this.dict.set(je.of("MK"),r.dict),r},t.prototype.getBorderStyle=function(){var n=this.BS();if(n)return BC.fromDict(n)},t.prototype.getOrCreateBorderStyle=function(){var n=this.BS();if(n)return BC.fromDict(n);var r=BC.fromDict(this.dict.context.obj({}));return this.dict.set(je.of("BS"),r.dict),r},t.prototype.getOnValue=function(){var n,r=(n=this.getAppearances())===null||n===void 0?void 0:n.normal;if(r instanceof gr)for(var i=r.keys(),a=0,o=i.length;a<o;a++){var s=i[a];if(s!==je.of("Off"))return s}},t.fromDict=function(n){return new t(n)},t.create=function(n,r){var i=n.obj({Type:"Annot",Subtype:"Widget",Rect:[0,0,0,0],Parent:r});return new t(i)},t})(i3e),Ng=(function(e){Mt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.FT=function(){var n=this.getInheritableAttribute(je.of("FT"));return this.dict.context.lookup(n,je)},t.prototype.getWidgets=function(){var n=this.Kids();if(!n)return[z_.fromDict(this.dict)];for(var r=new Array(n.size()),i=0,a=n.size();i<a;i++){var o=n.lookup(i,gr);r[i]=z_.fromDict(o)}return r},t.prototype.addWidget=function(n){var r=this.normalizedEntries().Kids;r.push(n)},t.prototype.removeWidget=function(n){var r=this.Kids();if(r){if(n<0||n>r.size())throw new aA(n,0,r.size());r.remove(n)}else{if(n!==0)throw new aA(n,0,0);this.setKids([])}},t.prototype.normalizedEntries=function(){var n=this.Kids();return n||(n=this.dict.context.obj([this.ref]),this.dict.set(je.of("Kids"),n)),{Kids:n}},t.fromDict=function(n,r){return new t(n,r)},t})(zK),GF=(function(e){Mt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.Opt=function(){return this.dict.lookupMaybe(je.of("Opt"),di,qn,ii)},t.prototype.setOpt=function(n){this.dict.set(je.of("Opt"),this.dict.context.obj(n))},t.prototype.getExportValues=function(){var n=this.Opt();if(n){if(n instanceof di||n instanceof qn)return[n];for(var r=[],i=0,a=n.size();i<a;i++){var o=n.lookup(i);(o instanceof di||o instanceof qn)&&r.push(o)}return r}},t.prototype.removeExportValue=function(n){var r=this.Opt();if(r)if(r instanceof di||r instanceof qn){if(n!==0)throw new aA(n,0,0);this.setOpt([])}else{if(n<0||n>r.size())throw new aA(n,0,r.size());r.remove(n)}},t.prototype.normalizeExportValues=function(){for(var n,r,i,a,o=(n=this.getExportValues())!==null&&n!==void 0?n:[],s=[],l=this.getWidgets(),c=0,u=l.length;c<u;c++){var d=l[c],h=(r=o[c])!==null&&r!==void 0?r:qn.fromText((a=(i=d.getOnValue())===null||i===void 0?void 0:i.decodeText())!==null&&a!==void 0?a:"");s.push(h)}this.setOpt(s)},t.prototype.addOpt=function(n,r){var i;this.normalizeExportValues();var a=n.decodeText(),o;if(r)for(var s=(i=this.getExportValues())!==null&&i!==void 0?i:[],l=0,c=s.length;l<c;l++){var u=s[l];u.decodeText()===a&&(o=l)}var d=this.Opt();return d.push(n),o??d.size()-1},t.prototype.addWidgetWithOpt=function(n,r,i){var a=this.addOpt(r,i),o=je.of(String(a));return this.addWidget(n),o},t})(Ng),d2=(function(e){Mt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setValue=function(n){var r,i=(r=this.getOnValue())!==null&&r!==void 0?r:je.of("Yes");if(n!==i&&n!==je.of("Off"))throw new LF;this.dict.set(je.of("V"),n);for(var a=this.getWidgets(),o=0,s=a.length;o<s;o++){var l=a[o],c=l.getOnValue()===n?n:je.of("Off");l.setAppearanceState(c)}},t.prototype.getValue=function(){var n=this.V();return n instanceof je?n:je.of("Off")},t.prototype.getOnValue=function(){var n=this.getWidgets()[0];return n==null?void 0:n.getOnValue()},t.fromDict=function(n,r){return new t(n,r)},t.create=function(n){var r=n.obj({FT:"Btn",Kids:[]}),i=n.register(r);return new t(r,i)},t})(GF),Aa=function(e){return 1<<e},El;(function(e){e[e.ReadOnly=Aa(0)]="ReadOnly",e[e.Required=Aa(1)]="Required",e[e.NoExport=Aa(2)]="NoExport"})(El||(El={}));var qs;(function(e){e[e.NoToggleToOff=Aa(14)]="NoToggleToOff",e[e.Radio=Aa(15)]="Radio",e[e.PushButton=Aa(16)]="PushButton",e[e.RadiosInUnison=Aa(25)]="RadiosInUnison"})(qs||(qs={}));var Qi;(function(e){e[e.Multiline=Aa(12)]="Multiline",e[e.Password=Aa(13)]="Password",e[e.FileSelect=Aa(20)]="FileSelect",e[e.DoNotSpellCheck=Aa(22)]="DoNotSpellCheck",e[e.DoNotScroll=Aa(23)]="DoNotScroll",e[e.Comb=Aa(24)]="Comb",e[e.RichText=Aa(25)]="RichText"})(Qi||(Qi={}));var ui;(function(e){e[e.Combo=Aa(17)]="Combo",e[e.Edit=Aa(18)]="Edit",e[e.Sort=Aa(19)]="Sort",e[e.MultiSelect=Aa(21)]="MultiSelect",e[e.DoNotSpellCheck=Aa(22)]="DoNotSpellCheck",e[e.CommitOnSelChange=Aa(26)]="CommitOnSelChange"})(ui||(ui={}));var WK=(function(e){Mt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setValues=function(n){if(this.hasFlag(ui.Combo)&&!this.hasFlag(ui.Edit)&&!this.valuesAreValid(n))throw new LF;if(n.length===0&&this.dict.delete(je.of("V")),n.length===1&&this.dict.set(je.of("V"),n[0]),n.length>1){if(!this.hasFlag(ui.MultiSelect))throw new XEe;this.dict.set(je.of("V"),this.dict.context.obj(n))}this.updateSelectedIndices(n)},t.prototype.valuesAreValid=function(n){for(var r=this.getOptions(),i=function(l,c){var u=n[l].decodeText();if(!r.find(function(d){return u===(d.display||d.value).decodeText()}))return{value:!1}},a=0,o=n.length;a<o;a++){var s=i(a);if(typeof s=="object")return s.value}return!0},t.prototype.updateSelectedIndices=function(n){if(n.length>1){for(var r=new Array(n.length),i=this.getOptions(),a=function(l,c){var u=n[l].decodeText();r[l]=i.findIndex(function(d){return u===(d.display||d.value).decodeText()})},o=0,s=n.length;o<s;o++)a(o,s);this.dict.set(je.of("I"),this.dict.context.obj(r.sort()))}else this.dict.delete(je.of("I"))},t.prototype.getValues=function(){var n=this.V();if(n instanceof di||n instanceof qn)return[n];if(n instanceof ii){for(var r=[],i=0,a=n.size();i<a;i++){var o=n.lookup(i);(o instanceof di||o instanceof qn)&&r.push(o)}return r}return[]},t.prototype.Opt=function(){return this.dict.lookupMaybe(je.of("Opt"),di,qn,ii)},t.prototype.setOptions=function(n){for(var r=new Array(n.length),i=0,a=n.length;i<a;i++){var o=n[i],s=o.value,l=o.display;r[i]=this.dict.context.obj([s,l||s])}this.dict.set(je.of("Opt"),this.dict.context.obj(r))},t.prototype.getOptions=function(){var n=this.Opt();if(n instanceof di||n instanceof qn)return[{value:n,display:n}];if(n instanceof ii){for(var r=[],i=0,a=n.size();i<a;i++){var o=n.lookup(i);if((o instanceof di||o instanceof qn)&&r.push({value:o,display:o}),o instanceof ii&&o.size()>0){var s=o.lookup(0,di,qn),l=o.lookupMaybe(1,di,qn);r.push({value:s,display:l||s})}}return r}return[]},t})(Ng),f2=(function(e){Mt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.fromDict=function(n,r){return new t(n,r)},t.create=function(n){var r=n.obj({FT:"Ch",Ff:ui.Combo,Kids:[]}),i=n.register(r);return new t(r,i)},t})(WK),lA=(function(e){Mt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.addField=function(n){var r=this.normalizedEntries().Kids;r==null||r.push(n)},t.prototype.normalizedEntries=function(){var n=this.Kids();return n||(n=this.dict.context.obj([]),this.dict.set(je.of("Kids"),n)),{Kids:n}},t.fromDict=function(n,r){return new t(n,r)},t.create=function(n){var r=n.obj({}),i=n.register(r);return new t(r,i)},t})(zK),qF=(function(e){Mt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.fromDict=function(n,r){return new t(n,r)},t})(Ng),h2=(function(e){Mt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.MaxLen=function(){var n=this.dict.lookup(je.of("MaxLen"));if(n instanceof nr)return n},t.prototype.Q=function(){var n=this.dict.lookup(je.of("Q"));if(n instanceof nr)return n},t.prototype.setMaxLength=function(n){this.dict.set(je.of("MaxLen"),nr.of(n))},t.prototype.removeMaxLength=function(){this.dict.delete(je.of("MaxLen"))},t.prototype.getMaxLength=function(){var n;return(n=this.MaxLen())===null||n===void 0?void 0:n.asNumber()},t.prototype.setQuadding=function(n){this.dict.set(je.of("Q"),nr.of(n))},t.prototype.getQuadding=function(){var n;return(n=this.Q())===null||n===void 0?void 0:n.asNumber()},t.prototype.setValue=function(n){this.dict.set(je.of("V"),n)},t.prototype.removeValue=function(){this.dict.delete(je.of("V"))},t.prototype.getValue=function(){var n=this.V();if(n instanceof di||n instanceof qn)return n},t.fromDict=function(n,r){return new t(n,r)},t.create=function(n){var r=n.obj({FT:"Tx",Kids:[]}),i=n.register(r);return new t(r,i)},t})(Ng),p2=(function(e){Mt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.fromDict=function(n,r){return new t(n,r)},t.create=function(n){var r=n.obj({FT:"Btn",Ff:qs.PushButton,Kids:[]}),i=n.register(r);return new t(r,i)},t})(GF),g2=(function(e){Mt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setValue=function(n){var r=this.getOnValues();if(!r.includes(n)&&n!==je.of("Off"))throw new LF;this.dict.set(je.of("V"),n);for(var i=this.getWidgets(),a=0,o=i.length;a<o;a++){var s=i[a],l=s.getOnValue()===n?n:je.of("Off");s.setAppearanceState(l)}},t.prototype.getValue=function(){var n=this.V();return n instanceof je?n:je.of("Off")},t.prototype.getOnValues=function(){for(var n=this.getWidgets(),r=[],i=0,a=n.length;i<a;i++){var o=n[i].getOnValue();o&&r.push(o)}return r},t.fromDict=function(n,r){return new t(n,r)},t.create=function(n){var r=n.obj({FT:"Btn",Ff:qs.Radio,Kids:[]}),i=n.register(r);return new t(r,i)},t})(GF),m2=(function(e){Mt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.fromDict=function(n,r){return new t(n,r)},t.create=function(n){var r=n.obj({FT:"Ch",Kids:[]}),i=n.register(r);return new t(r,i)},t})(WK),HF=function(e){if(!e)return[];for(var t=[],n=0,r=e.size();n<r;n++){var i=e.get(n),a=e.lookup(n);i instanceof fi&&a instanceof gr&&t.push([VK(a,i),i])}return t},VK=function(e,t){var n=a3e(e);return n?lA.fromDict(e,t):o3e(e,t)},a3e=function(e){var t=e.lookup(je.of("Kids"));if(t instanceof ii)for(var n=0,r=t.size();n<r;n++){var i=t.lookup(n),a=i instanceof gr&&i.has(je.of("T"));if(a)return!0}return!1},o3e=function(e,t){var n=XF(e,je.of("FT")),r=e.context.lookup(n,je);return r===je.of("Btn")?s3e(e,t):r===je.of("Ch")?l3e(e,t):r===je.of("Tx")?h2.fromDict(e,t):r===je.of("Sig")?qF.fromDict(e,t):Ng.fromDict(e,t)},s3e=function(e,t){var n,r=XF(e,je.of("Ff")),i=e.context.lookupMaybe(r,nr),a=(n=i==null?void 0:i.asNumber())!==null&&n!==void 0?n:0;return W_(a,qs.PushButton)?p2.fromDict(e,t):W_(a,qs.Radio)?g2.fromDict(e,t):d2.fromDict(e,t)},l3e=function(e,t){var n,r=XF(e,je.of("Ff")),i=e.context.lookupMaybe(r,nr),a=(n=i==null?void 0:i.asNumber())!==null&&n!==void 0?n:0;return W_(a,ui.Combo)?f2.fromDict(e,t):m2.fromDict(e,t)},W_=function(e,t){return(e&t)!==0},XF=function(e,t){var n;return GK(e,function(r){n||(n=r.get(t))}),n},GK=function(e,t){t(e);var n=e.lookupMaybe(je.of("Parent"),gr);n&&GK(n,t)},cA=(function(){function e(t){this.dict=t}return e.prototype.Fields=function(){var t=this.dict.lookup(je.of("Fields"));if(t instanceof ii)return t},e.prototype.getFields=function(){for(var t=this.normalizedEntries().Fields,n=new Array(t.size()),r=0,i=t.size();r<i;r++){var a=t.get(r),o=t.lookup(r,gr);n[r]=[VK(o,a),a]}return n},e.prototype.getAllFields=function(){var t=[],n=function(r){if(r)for(var i=0,a=r.length;i<a;i++){var o=r[i];t.push(o);var s=o[0];s instanceof lA&&n(HF(s.Kids()))}};return n(this.getFields()),t},e.prototype.addField=function(t){var n=this.normalizedEntries().Fields;n==null||n.push(t)},e.prototype.removeField=function(t){var n=t.getParent(),r=n===void 0?this.normalizedEntries().Fields:n.Kids(),i=r==null?void 0:r.indexOf(t.ref);if(r===void 0||i===void 0)throw new Error("Tried to remove inexistent field "+t.getFullyQualifiedName());r.remove(i),n!==void 0&&r.size()===0&&this.removeField(n)},e.prototype.normalizedEntries=function(){var t=this.Fields();return t||(t=this.dict.context.obj([]),this.dict.set(je.of("Fields"),t)),{Fields:t}},e.fromDict=function(t){return new e(t)},e.create=function(t){var n=t.obj({Fields:[]});return new e(n)},e})(),qK=(function(e){Mt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.Pages=function(){return this.lookup(je.of("Pages"),gr)},t.prototype.AcroForm=function(){return this.lookupMaybe(je.of("AcroForm"),gr)},t.prototype.getAcroForm=function(){var n=this.AcroForm();if(n)return cA.fromDict(n)},t.prototype.getOrCreateAcroForm=function(){var n=this.getAcroForm();if(!n){n=cA.create(this.context);var r=this.context.register(n.dict);this.set(je.of("AcroForm"),r)}return n},t.prototype.ViewerPreferences=function(){return this.lookupMaybe(je.of("ViewerPreferences"),gr)},t.prototype.getViewerPreferences=function(){var n=this.ViewerPreferences();if(n)return JO.fromDict(n)},t.prototype.getOrCreateViewerPreferences=function(){var n=this.getViewerPreferences();if(!n){n=JO.create(this.context);var r=this.context.register(n.dict);this.set(je.of("ViewerPreferences"),r)}return n},t.prototype.insertLeafNode=function(n,r){var i=this.get(je.of("Pages")),a=this.Pages().insertLeafNode(n,r);return a||i},t.prototype.removeLeafNode=function(n){this.Pages().removeLeafNode(n)},t.withContextAndPages=function(n,r){var i=new Map;return i.set(je.of("Type"),je.of("Catalog")),i.set(je.of("Pages"),r),new t(i,n)},t.fromMapWithContext=function(n,r){return new t(n,r)},t})(gr),HK=(function(e){Mt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.Parent=function(){return this.lookup(je.of("Parent"))},t.prototype.Kids=function(){return this.lookup(je.of("Kids"),ii)},t.prototype.Count=function(){return this.lookup(je.of("Count"),nr)},t.prototype.pushTreeNode=function(n){var r=this.Kids();r.push(n)},t.prototype.pushLeafNode=function(n){var r=this.Kids();this.insertLeafKid(r.size(),n)},t.prototype.insertLeafNode=function(n,r){var i=this.Kids(),a=this.Count().asNumber();if(r>a)throw new sO(r,a);for(var o=r,s=0,l=i.size();s<l;s++){if(o===0){this.insertLeafKid(s,n);return}var c=i.get(s),u=this.context.lookup(c);if(u instanceof t){if(u.Count().asNumber()>o)return u.insertLeafNode(n,o)||c;o-=u.Count().asNumber()}u instanceof qc&&(o-=1)}if(o===0){this.insertLeafKid(i.size(),n);return}throw new lO(r,"insertLeafNode")},t.prototype.removeLeafNode=function(n,r){r===void 0&&(r=!0);var i=this.Kids(),a=this.Count().asNumber();if(n>=a)throw new sO(n,a);for(var o=n,s=0,l=i.size();s<l;s++){var c=i.get(s),u=this.context.lookup(c);if(u instanceof t)if(u.Count().asNumber()>o){u.removeLeafNode(o,r),r&&u.Kids().size()===0&&i.remove(s);return}else o-=u.Count().asNumber();if(u instanceof qc)if(o===0){this.removeKid(s);return}else o-=1}throw new lO(n,"removeLeafNode")},t.prototype.ascend=function(n){n(this);var r=this.Parent();r&&r.ascend(n)},t.prototype.traverse=function(n){for(var r=this.Kids(),i=0,a=r.size();i<a;i++){var o=r.get(i),s=this.context.lookup(o);s instanceof t&&s.traverse(n),n(s,o)}},t.prototype.insertLeafKid=function(n,r){var i=this.Kids();this.ascend(function(a){var o=a.Count().asNumber()+1;a.set(je.of("Count"),nr.of(o))}),i.insert(n,r)},t.prototype.removeKid=function(n){var r=this.Kids(),i=r.lookup(n);i instanceof qc&&this.ascend(function(a){var o=a.Count().asNumber()-1;a.set(je.of("Count"),nr.of(o))}),r.remove(n)},t.withContext=function(n,r){var i=new Map;return i.set(je.of("Type"),je.of("Pages")),i.set(je.of("Kids"),n.obj([])),i.set(je.of("Count"),n.obj(0)),r&&i.set(je.of("Parent"),r),new t(i,n)},t.fromMapWithContext=function(n,r){return new t(n,r)},t})(gr),co=new Uint8Array(256);co[ze.Zero]=1;co[ze.One]=1;co[ze.Two]=1;co[ze.Three]=1;co[ze.Four]=1;co[ze.Five]=1;co[ze.Six]=1;co[ze.Seven]=1;co[ze.Eight]=1;co[ze.Nine]=1;var y2=new Uint8Array(256);y2[ze.Period]=1;y2[ze.Plus]=1;y2[ze.Minus]=1;var ZF=new Uint8Array(256);for(var Nm=0,c3e=256;Nm<c3e;Nm++)ZF[Nm]=co[Nm]||y2[Nm]?1:0;var QO=ze.Newline,ej=ze.CarriageReturn,u3e=(function(){function e(t,n){n===void 0&&(n=!1),this.bytes=t,this.capNumbers=n}return e.prototype.parseRawInt=function(){for(var t="";!this.bytes.done();){var n=this.bytes.peek();if(!co[n])break;t+=Vc(this.bytes.next())}var r=Number(t);if(!t||!isFinite(r))throw new cO(this.bytes.position(),t);return r},e.prototype.parseRawNumber=function(){for(var t="";!this.bytes.done();){var n=this.bytes.peek();if(!ZF[n]||(t+=Vc(this.bytes.next()),n===ze.Period))break}for(;!this.bytes.done();){var n=this.bytes.peek();if(!co[n])break;t+=Vc(this.bytes.next())}var r=Number(t);if(!t||!isFinite(r))throw new cO(this.bytes.position(),t);if(r>Number.MAX_SAFE_INTEGER)if(this.capNumbers){var i="Parsed number that is too large for some PDF readers: "+t+", using Number.MAX_SAFE_INTEGER instead.";return console.warn(i),Number.MAX_SAFE_INTEGER}else{var i="Parsed number that is too large for some PDF readers: "+t+", not capping.";console.warn(i)}return r},e.prototype.skipWhitespace=function(){for(;!this.bytes.done()&&tu[this.bytes.peek()];)this.bytes.next()},e.prototype.skipLine=function(){for(;!this.bytes.done();){var t=this.bytes.peek();if(t===QO||t===ej)return;this.bytes.next()}},e.prototype.skipComment=function(){if(this.bytes.peek()!==ze.Percent)return!1;for(;!this.bytes.done();){var t=this.bytes.peek();if(t===QO||t===ej)return!0;this.bytes.next()}return!0},e.prototype.skipWhitespaceAndComments=function(){for(this.skipWhitespace();this.skipComment();)this.skipWhitespace()},e.prototype.matchKeyword=function(t){for(var n=this.bytes.offset(),r=0,i=t.length;r<i;r++)if(this.bytes.done()||this.bytes.next()!==t[r])return this.bytes.moveTo(n),!1;return!0},e})(),v2=(function(){function e(t){this.idx=0,this.line=0,this.column=0,this.bytes=t,this.length=this.bytes.length}return e.prototype.moveTo=function(t){this.idx=t},e.prototype.next=function(){var t=this.bytes[this.idx++];return t===ze.Newline?(this.line+=1,this.column=0):this.column+=1,t},e.prototype.assertNext=function(t){if(this.peek()!==t)throw new $Ee(this.position(),t,this.peek());return this.next()},e.prototype.peek=function(){return this.bytes[this.idx]},e.prototype.peekAhead=function(t){return this.bytes[this.idx+t]},e.prototype.peekAt=function(t){return this.bytes[t]},e.prototype.done=function(){return this.idx>=this.length},e.prototype.offset=function(){return this.idx},e.prototype.slice=function(t,n){return this.bytes.slice(t,n)},e.prototype.position=function(){return{line:this.line,column:this.column,offset:this.idx}},e.of=function(t){return new e(t)},e.fromPDFRawStream=function(t){return e.of(jK(t).decode())},e})(),d3e=ze.Space,Fm=ze.CarriageReturn,Rm=ze.Newline,Pm=[ze.s,ze.t,ze.r,ze.e,ze.a,ze.m],Zx=[ze.e,ze.n,ze.d,ze.s,ze.t,ze.r,ze.e,ze.a,ze.m],ki={header:[ze.Percent,ze.P,ze.D,ze.F,ze.Dash],eof:[ze.Percent,ze.Percent,ze.E,ze.O,ze.F],obj:[ze.o,ze.b,ze.j],endobj:[ze.e,ze.n,ze.d,ze.o,ze.b,ze.j],xref:[ze.x,ze.r,ze.e,ze.f],trailer:[ze.t,ze.r,ze.a,ze.i,ze.l,ze.e,ze.r],startxref:[ze.s,ze.t,ze.a,ze.r,ze.t,ze.x,ze.r,ze.e,ze.f],true:[ze.t,ze.r,ze.u,ze.e],false:[ze.f,ze.a,ze.l,ze.s,ze.e],null:[ze.n,ze.u,ze.l,ze.l],stream:Pm,streamEOF1:$r(Pm,[d3e,Fm,Rm]),streamEOF2:$r(Pm,[Fm,Rm]),streamEOF3:$r(Pm,[Fm]),streamEOF4:$r(Pm,[Rm]),endstream:Zx,EOF1endstream:$r([Fm,Rm],Zx),EOF2endstream:$r([Fm],Zx),EOF3endstream:$r([Rm],Zx)},XK=(function(e){Mt(t,e);function t(n,r,i){i===void 0&&(i=!1);var a=e.call(this,n,i)||this;return a.context=r,a}return t.prototype.parseObject=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(ki.true))return ty.True;if(this.matchKeyword(ki.false))return ty.False;if(this.matchKeyword(ki.null))return Bo;var n=this.bytes.peek();if(n===ze.LessThan&&this.bytes.peekAhead(1)===ze.LessThan)return this.parseDictOrStream();if(n===ze.LessThan)return this.parseHexString();if(n===ze.LeftParen)return this.parseString();if(n===ze.ForwardSlash)return this.parseName();if(n===ze.LeftSquareBracket)return this.parseArray();if(ZF[n])return this.parseNumberOrRef();throw new YEe(this.bytes.position(),n)},t.prototype.parseNumberOrRef=function(){var n=this.parseRawNumber();this.skipWhitespaceAndComments();var r=this.bytes.offset();if(co[this.bytes.peek()]){var i=this.parseRawNumber();if(this.skipWhitespaceAndComments(),this.bytes.peek()===ze.R)return this.bytes.assertNext(ze.R),fi.of(n,i)}return this.bytes.moveTo(r),nr.of(n)},t.prototype.parseHexString=function(){var n="";for(this.bytes.assertNext(ze.LessThan);!this.bytes.done()&&this.bytes.peek()!==ze.GreaterThan;)n+=Vc(this.bytes.next());return this.bytes.assertNext(ze.GreaterThan),qn.of(n)},t.prototype.parseString=function(){for(var n=0,r=!1,i="";!this.bytes.done();){var a=this.bytes.next();if(i+=Vc(a),r||(a===ze.LeftParen&&(n+=1),a===ze.RightParen&&(n-=1)),a===ze.BackSlash?r=!r:r&&(r=!1),n===0)return di.of(i.substring(1,i.length-1))}throw new eNe(this.bytes.position())},t.prototype.parseName=function(){this.bytes.assertNext(ze.ForwardSlash);for(var n="";!this.bytes.done();){var r=this.bytes.peek();if(tu[r]||ll[r])break;n+=Vc(r),this.bytes.next()}return je.of(n)},t.prototype.parseArray=function(){this.bytes.assertNext(ze.LeftSquareBracket),this.skipWhitespaceAndComments();for(var n=ii.withContext(this.context);this.bytes.peek()!==ze.RightSquareBracket;){var r=this.parseObject();n.push(r),this.skipWhitespaceAndComments()}return this.bytes.assertNext(ze.RightSquareBracket),n},t.prototype.parseDict=function(){this.bytes.assertNext(ze.LessThan),this.bytes.assertNext(ze.LessThan),this.skipWhitespaceAndComments();for(var n=new Map;!this.bytes.done()&&this.bytes.peek()!==ze.GreaterThan&&this.bytes.peekAhead(1)!==ze.GreaterThan;){var r=this.parseName(),i=this.parseObject();n.set(r,i),this.skipWhitespaceAndComments()}this.skipWhitespaceAndComments(),this.bytes.assertNext(ze.GreaterThan),this.bytes.assertNext(ze.GreaterThan);var a=n.get(je.of("Type"));return a===je.of("Catalog")?qK.fromMapWithContext(n,this.context):a===je.of("Pages")?HK.fromMapWithContext(n,this.context):a===je.of("Page")?qc.fromMapWithContext(n,this.context):gr.fromMapWithContext(n,this.context)},t.prototype.parseDictOrStream=function(){var n=this.bytes.position(),r=this.parseDict();if(this.skipWhitespaceAndComments(),!this.matchKeyword(ki.streamEOF1)&&!this.matchKeyword(ki.streamEOF2)&&!this.matchKeyword(ki.streamEOF3)&&!this.matchKeyword(ki.streamEOF4)&&!this.matchKeyword(ki.stream))return r;var i=this.bytes.offset(),a,o=r.get(je.of("Length"));o instanceof nr?(a=i+o.asNumber(),this.bytes.moveTo(a),this.skipWhitespaceAndComments(),this.matchKeyword(ki.endstream)||(this.bytes.moveTo(i),a=this.findEndOfStreamFallback(n))):a=this.findEndOfStreamFallback(n);var s=this.bytes.slice(i,a);return ny.of(r,s)},t.prototype.findEndOfStreamFallback=function(n){for(var r=1,i=this.bytes.offset();!this.bytes.done()&&(i=this.bytes.offset(),this.matchKeyword(ki.stream)?r+=1:this.matchKeyword(ki.EOF1endstream)||this.matchKeyword(ki.EOF2endstream)||this.matchKeyword(ki.EOF3endstream)||this.matchKeyword(ki.endstream)?r-=1:this.bytes.next(),r!==0););if(r!==0)throw new QEe(n);return i},t.forBytes=function(n,r,i){return new t(v2.of(n),r,i)},t.forByteStream=function(n,r,i){return i===void 0&&(i=!1),new t(n,r,i)},t})(u3e),f3e=(function(e){Mt(t,e);function t(n,r){var i=e.call(this,v2.fromPDFRawStream(n),n.dict.context)||this,a=n.dict;return i.alreadyParsed=!1,i.shouldWaitForTick=r||(function(){return!1}),i.firstOffset=a.lookup(je.of("First"),nr).asNumber(),i.objectCount=a.lookup(je.of("N"),nr).asNumber(),i}return t.prototype.parseIntoContext=function(){return wr(this,void 0,void 0,function(){var n,r,i,a,o,s,l,c;return Sr(this,function(u){switch(u.label){case 0:if(this.alreadyParsed)throw new UF("PDFObjectStreamParser","parseIntoContext");this.alreadyParsed=!0,n=this.parseOffsetsAndObjectNumbers(),r=0,i=n.length,u.label=1;case 1:return r<i?(a=n[r],o=a.objectNumber,s=a.offset,this.bytes.moveTo(this.firstOffset+s),l=this.parseObject(),c=fi.of(o,0),this.context.assign(c,l),this.shouldWaitForTick()?[4,lg()]:[3,3]):[3,4];case 2:u.sent(),u.label=3;case 3:return r++,[3,1];case 4:return[2]}})})},t.prototype.parseOffsetsAndObjectNumbers=function(){for(var n=[],r=0,i=this.objectCount;r<i;r++){this.skipWhitespaceAndComments();var a=this.parseRawInt();this.skipWhitespaceAndComments();var o=this.parseRawInt();n.push({objectNumber:a,offset:o})}return n},t.forStream=function(n,r){return new t(n,r)},t})(XK),h3e=(function(){function e(t){this.alreadyParsed=!1,this.dict=t.dict,this.bytes=v2.fromPDFRawStream(t),this.context=this.dict.context;var n=this.dict.lookup(je.of("Size"),nr),r=this.dict.lookup(je.of("Index"));if(r instanceof ii){this.subsections=[];for(var i=0,a=r.size();i<a;i+=2){var o=r.lookup(i+0,nr).asNumber(),s=r.lookup(i+1,nr).asNumber();this.subsections.push({firstObjectNumber:o,length:s})}}else this.subsections=[{firstObjectNumber:0,length:n.asNumber()}];var l=this.dict.lookup(je.of("W"),ii);this.byteWidths=[-1,-1,-1];for(var i=0,a=l.size();i<a;i++)this.byteWidths[i]=l.lookup(i,nr).asNumber()}return e.prototype.parseIntoContext=function(){if(this.alreadyParsed)throw new UF("PDFXRefStreamParser","parseIntoContext");this.alreadyParsed=!0,this.context.trailerInfo={Root:this.dict.get(je.of("Root")),Encrypt:this.dict.get(je.of("Encrypt")),Info:this.dict.get(je.of("Info")),ID:this.dict.get(je.of("ID"))};var t=this.parseEntries();return t},e.prototype.parseEntries=function(){for(var t=[],n=this.byteWidths,r=n[0],i=n[1],a=n[2],o=0,s=this.subsections.length;o<s;o++)for(var l=this.subsections[o],c=l.firstObjectNumber,u=l.length,d=0;d<u;d++){for(var h=0,f=0,g=r;f<g;f++)h=h<<8|this.bytes.next();for(var y=0,f=0,g=i;f<g;f++)y=y<<8|this.bytes.next();for(var v=0,f=0,g=a;f<g;f++)v=v<<8|this.bytes.next();r===0&&(h=1);var A=c+d,w={ref:fi.of(A,v),offset:y,deleted:h===0,inObjectStream:h===2};t.push(w)}return t},e.forStream=function(t){return new e(t)},e})(),p3e=(function(e){Mt(t,e);function t(n,r,i,a){r===void 0&&(r=1/0),i===void 0&&(i=!1),a===void 0&&(a=!1);var o=e.call(this,v2.of(n),j_.create(),a)||this;return o.alreadyParsed=!1,o.parsedObjects=0,o.shouldWaitForTick=function(){return o.parsedObjects+=1,o.parsedObjects%o.objectsPerTick===0},o.objectsPerTick=r,o.throwOnInvalidObject=i,o}return t.prototype.parseDocument=function(){return wr(this,void 0,void 0,function(){var n,r;return Sr(this,function(i){switch(i.label){case 0:if(this.alreadyParsed)throw new UF("PDFParser","parseDocument");this.alreadyParsed=!0,this.context.header=this.parseHeader(),i.label=1;case 1:return this.bytes.done()?[3,3]:[4,this.parseDocumentSection()];case 2:if(i.sent(),r=this.bytes.offset(),r===n)throw new tNe(this.bytes.position());return n=r,[3,1];case 3:return this.maybeRecoverRoot(),this.context.lookup(fi.of(0))&&(console.warn("Removing parsed object: 0 0 R"),this.context.delete(fi.of(0))),[2,this.context]}})})},t.prototype.maybeRecoverRoot=function(){var n=function(u){return u instanceof gr&&u.lookup(je.of("Type"))===je.of("Catalog")},r=this.context.lookup(this.context.trailerInfo.Root);if(!n(r))for(var i=this.context.enumerateIndirectObjects(),a=0,o=i.length;a<o;a++){var s=i[a],l=s[0],c=s[1];n(c)&&(this.context.trailerInfo.Root=l)}},t.prototype.parseHeader=function(){for(;!this.bytes.done();){if(this.matchKeyword(ki.header)){var n=this.parseRawInt();this.bytes.assertNext(ze.Period);var r=this.parseRawInt(),i=u2.forVersion(n,r);return this.skipBinaryHeaderComment(),i}this.bytes.next()}throw new nNe(this.bytes.position())},t.prototype.parseIndirectObjectHeader=function(){this.skipWhitespaceAndComments();var n=this.parseRawInt();this.skipWhitespaceAndComments();var r=this.parseRawInt();if(this.skipWhitespaceAndComments(),!this.matchKeyword(ki.obj))throw new rNe(this.bytes.position(),ki.obj);return fi.of(n,r)},t.prototype.matchIndirectObjectHeader=function(){var n=this.bytes.offset();try{return this.parseIndirectObjectHeader(),!0}catch{return this.bytes.moveTo(n),!1}},t.prototype.parseIndirectObject=function(){return wr(this,void 0,void 0,function(){var n,r;return Sr(this,function(i){switch(i.label){case 0:return n=this.parseIndirectObjectHeader(),this.skipWhitespaceAndComments(),r=this.parseObject(),this.skipWhitespaceAndComments(),this.matchKeyword(ki.endobj),r instanceof ny&&r.dict.lookup(je.of("Type"))===je.of("ObjStm")?[4,f3e.forStream(r,this.shouldWaitForTick).parseIntoContext()]:[3,2];case 1:return i.sent(),[3,3];case 2:r instanceof ny&&r.dict.lookup(je.of("Type"))===je.of("XRef")?h3e.forStream(r).parseIntoContext():this.context.assign(n,r),i.label=3;case 3:return[2,n]}})})},t.prototype.tryToParseInvalidIndirectObject=function(){var n=this.bytes.position(),r="Trying to parse invalid object: "+JSON.stringify(n)+")";if(this.throwOnInvalidObject)throw new Error(r);console.warn(r);var i=this.parseIndirectObjectHeader();console.warn("Invalid object ref: "+i),this.skipWhitespaceAndComments();for(var a=this.bytes.offset(),o=!0;!this.bytes.done()&&(this.matchKeyword(ki.endobj)&&(o=!1),!!o);)this.bytes.next();if(o)throw new JEe(n);var s=this.bytes.offset()-ki.endobj.length,l=NK.of(this.bytes.slice(a,s));return this.context.assign(i,l),i},t.prototype.parseIndirectObjects=function(){return wr(this,void 0,void 0,function(){var n;return Sr(this,function(r){switch(r.label){case 0:this.skipWhitespaceAndComments(),r.label=1;case 1:if(!(!this.bytes.done()&&co[this.bytes.peek()]))return[3,8];n=this.bytes.offset(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.parseIndirectObject()];case 3:return r.sent(),[3,5];case 4:return r.sent(),this.bytes.moveTo(n),this.tryToParseInvalidIndirectObject(),[3,5];case 5:return this.skipWhitespaceAndComments(),this.skipJibberish(),this.shouldWaitForTick()?[4,lg()]:[3,7];case 6:r.sent(),r.label=7;case 7:return[3,1];case 8:return[2]}})})},t.prototype.maybeParseCrossRefSection=function(){if(this.skipWhitespaceAndComments(),!!this.matchKeyword(ki.xref)){this.skipWhitespaceAndComments();for(var n=-1,r=TK.createEmpty();!this.bytes.done()&&co[this.bytes.peek()];){var i=this.parseRawInt();this.skipWhitespaceAndComments();var a=this.parseRawInt();this.skipWhitespaceAndComments();var o=this.bytes.peek();if(o===ze.n||o===ze.f){var s=fi.of(n,a);this.bytes.next()===ze.n?r.addEntry(s,i):r.addDeletedEntry(s,i),n+=1}else n=i;this.skipWhitespaceAndComments()}return r}},t.prototype.maybeParseTrailerDict=function(){if(this.skipWhitespaceAndComments(),!!this.matchKeyword(ki.trailer)){this.skipWhitespaceAndComments();var n=this.parseDict(),r=this.context;r.trailerInfo={Root:n.get(je.of("Root"))||r.trailerInfo.Root,Encrypt:n.get(je.of("Encrypt"))||r.trailerInfo.Encrypt,Info:n.get(je.of("Info"))||r.trailerInfo.Info,ID:n.get(je.of("ID"))||r.trailerInfo.ID}}},t.prototype.maybeParseTrailer=function(){if(this.skipWhitespaceAndComments(),!!this.matchKeyword(ki.startxref)){this.skipWhitespaceAndComments();var n=this.parseRawInt();return this.skipWhitespace(),this.matchKeyword(ki.eof),this.skipWhitespaceAndComments(),this.matchKeyword(ki.eof),this.skipWhitespaceAndComments(),zF.forLastCrossRefSectionOffset(n)}},t.prototype.parseDocumentSection=function(){return wr(this,void 0,void 0,function(){return Sr(this,function(n){switch(n.label){case 0:return[4,this.parseIndirectObjects()];case 1:return n.sent(),this.maybeParseCrossRefSection(),this.maybeParseTrailerDict(),this.maybeParseTrailer(),this.skipJibberish(),[2]}})})},t.prototype.skipJibberish=function(){for(this.skipWhitespaceAndComments();!this.bytes.done();){var n=this.bytes.offset(),r=this.bytes.peek(),i=r>=ze.Space&&r<=ze.Tilde;if(i&&(this.matchKeyword(ki.xref)||this.matchKeyword(ki.trailer)||this.matchKeyword(ki.startxref)||this.matchIndirectObjectHeader())){this.bytes.moveTo(n);break}this.bytes.next()}},t.prototype.skipBinaryHeaderComment=function(){this.skipWhitespaceAndComments();try{var n=this.bytes.offset();this.parseIndirectObjectHeader(),this.bytes.moveTo(n)}catch{this.bytes.next(),this.skipWhitespaceAndComments()}},t.forBytesWithOptions=function(n,r,i,a){return new t(n,r,i,a)},t})(XK),Kl=function(e){return 1<<e},b0;(function(e){e[e.Invisible=Kl(0)]="Invisible",e[e.Hidden=Kl(1)]="Hidden",e[e.Print=Kl(2)]="Print",e[e.NoZoom=Kl(3)]="NoZoom",e[e.NoRotate=Kl(4)]="NoRotate",e[e.NoView=Kl(5)]="NoView",e[e.ReadOnly=Kl(6)]="ReadOnly",e[e.Locked=Kl(7)]="Locked",e[e.ToggleNoView=Kl(8)]="ToggleNoView",e[e.LockedContents=Kl(9)]="LockedContents"})(b0||(b0={}));var x2=function(e){return e instanceof je?e:je.of(e)},rr=function(e){return e instanceof nr?e:nr.of(e)},kr=function(e){return e instanceof nr?e.asNumber():e},ry;(function(e){e.Degrees="degrees",e.Radians="radians"})(ry||(ry={}));var Kn=function(e){return Qe(e,"degreeAngle",["number"]),{type:ry.Degrees,angle:e}},ZK=ry.Radians,KK=ry.Degrees,$K=function(e){return e*Math.PI/180},g3e=function(e){return e*180/Math.PI},Qa=function(e){return e.type===ZK?e.angle:e.type===KK?$K(e.angle):Iy("Invalid rotation: "+JSON.stringify(e))},YK=function(e){return e.type===ZK?g3e(e.angle):e.type===KK?e.angle:Iy("Invalid rotation: "+JSON.stringify(e))},nu=function(e){e===void 0&&(e=0);var t=e/90%4;return t===0?0:t===1?90:t===2?180:t===3?270:0},oh=function(e,t){t===void 0&&(t=0);var n=nu(t);return n===90||n===270?{width:e.height,height:e.width}:{width:e.width,height:e.height}},m3e=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=0);var r=e.x,i=e.y,a=e.width,o=e.height,s=nu(n),l=t/2;return s===0?{x:r-l,y:i-l,width:a,height:o}:s===90?{x:r-o+l,y:i-l,width:o,height:a}:s===180?{x:r-a+l,y:i-o+l,width:a,height:o}:s===270?{x:r-l,y:i-a+l,width:o,height:a}:{x:r-l,y:i-l,width:a,height:o}},JK=function(){return Xr.of(Jr.ClipNonZero)},uA=Math.cos,dA=Math.sin,fA=Math.tan,b2=function(e,t,n,r,i,a){return Xr.of(Jr.ConcatTransformationMatrix,[rr(e),rr(t),rr(n),rr(r),rr(i),rr(a)])},$s=function(e,t){return b2(1,0,0,1,e,t)},iy=function(e,t){return b2(e,0,0,t,0,0)},Fg=function(e){return b2(uA(kr(e)),dA(kr(e)),-dA(kr(e)),uA(kr(e)),0,0)},Kx=function(e){return Fg($K(kr(e)))},KF=function(e,t){return b2(1,fA(kr(e)),fA(kr(t)),1,0,0)},A2=function(e,t){return Xr.of(Jr.SetLineDashPattern,["["+e.map(rr).join(" ")+"]",rr(t)])},Ep;(function(e){e[e.Butt=0]="Butt",e[e.Round=1]="Round",e[e.Projecting=2]="Projecting"})(Ep||(Ep={}));var w2=function(e){return Xr.of(Jr.SetLineCapStyle,[rr(e)])},tj;(function(e){e[e.Miter=0]="Miter",e[e.Round=1]="Round",e[e.Bevel=2]="Bevel"})(tj||(tj={}));var sh=function(e){return Xr.of(Jr.SetGraphicsStateParams,[x2(e)])},Ra=function(){return Xr.of(Jr.PushGraphicsState)},Pa=function(){return Xr.of(Jr.PopGraphicsState)},Uy=function(e){return Xr.of(Jr.SetLineWidth,[rr(e)])},ms=function(e,t,n,r,i,a){return Xr.of(Jr.AppendBezierCurve,[rr(e),rr(t),rr(n),rr(r),rr(i),rr(a)])},$x=function(e,t,n,r){return Xr.of(Jr.CurveToReplicateInitialPoint,[rr(e),rr(t),rr(n),rr(r)])},od=function(){return Xr.of(Jr.ClosePath)},uc=function(e,t){return Xr.of(Jr.MoveTo,[rr(e),rr(t)])},Ba=function(e,t){return Xr.of(Jr.LineTo,[rr(e),rr(t)])},Ly=function(){return Xr.of(Jr.StrokePath)},$F=function(){return Xr.of(Jr.FillNonZero)},YF=function(){return Xr.of(Jr.FillNonZeroAndStroke)},QK=function(){return Xr.of(Jr.EndPath)},y3e=function(){return Xr.of(Jr.NextLine)},e$=function(e){return Xr.of(Jr.ShowText,[e])},t$=function(){return Xr.of(Jr.BeginText)},n$=function(){return Xr.of(Jr.EndText)},JF=function(e,t){return Xr.of(Jr.SetFontAndSize,[x2(e),rr(t)])},v3e=function(e){return Xr.of(Jr.SetTextLineHeight,[rr(e)])},nj;(function(e){e[e.Fill=0]="Fill",e[e.Outline=1]="Outline",e[e.FillAndOutline=2]="FillAndOutline",e[e.Invisible=3]="Invisible",e[e.FillAndClip=4]="FillAndClip",e[e.OutlineAndClip=5]="OutlineAndClip",e[e.FillAndOutlineAndClip=6]="FillAndOutlineAndClip",e[e.Clip=7]="Clip"})(nj||(nj={}));var x3e=function(e,t,n,r,i,a){return Xr.of(Jr.SetTextMatrix,[rr(e),rr(t),rr(n),rr(r),rr(i),rr(a)])},r$=function(e,t,n,r,i){return x3e(uA(kr(e)),dA(kr(e))+fA(kr(t)),-dA(kr(e))+fA(kr(n)),uA(kr(e)),r,i)},QF=function(e){return Xr.of(Jr.DrawObject,[x2(e)])},b3e=function(e){return Xr.of(Jr.NonStrokingColorGray,[rr(e)])},A3e=function(e){return Xr.of(Jr.StrokingColorGray,[rr(e)])},w3e=function(e,t,n){return Xr.of(Jr.NonStrokingColorRgb,[rr(e),rr(t),rr(n)])},S3e=function(e,t,n){return Xr.of(Jr.StrokingColorRgb,[rr(e),rr(t),rr(n)])},k3e=function(e,t,n,r){return Xr.of(Jr.NonStrokingColorCmyk,[rr(e),rr(t),rr(n),rr(r)])},D3e=function(e,t,n,r){return Xr.of(Jr.StrokingColorCmyk,[rr(e),rr(t),rr(n),rr(r)])},i$=function(e){return Xr.of(Jr.BeginMarkedContent,[x2(e)])},a$=function(){return Xr.of(Jr.EndMarkedContent)},sd;(function(e){e.Grayscale="Grayscale",e.RGB="RGB",e.CMYK="CMYK"})(sd||(sd={}));var o$=function(e){return gs(e,"gray",0,1),{type:sd.Grayscale,gray:e}},hi=function(e,t,n){return gs(e,"red",0,1),gs(t,"green",0,1),gs(n,"blue",0,1),{type:sd.RGB,red:e,green:t,blue:n}},s$=function(e,t,n,r){return gs(e,"cyan",0,1),gs(t,"magenta",0,1),gs(n,"yellow",0,1),gs(r,"key",0,1),{type:sd.CMYK,cyan:e,magenta:t,yellow:n,key:r}},eR=sd.Grayscale,tR=sd.RGB,nR=sd.CMYK,lh=function(e){return e.type===eR?b3e(e.gray):e.type===tR?w3e(e.red,e.green,e.blue):e.type===nR?k3e(e.cyan,e.magenta,e.yellow,e.key):Iy("Invalid color: "+JSON.stringify(e))},Oy=function(e){return e.type===eR?A3e(e.gray):e.type===tR?S3e(e.red,e.green,e.blue):e.type===nR?D3e(e.cyan,e.magenta,e.yellow,e.key):Iy("Invalid color: "+JSON.stringify(e))},Do=function(e,t){return t===void 0&&(t=1),(e==null?void 0:e.length)===1?o$(e[0]*t):(e==null?void 0:e.length)===3?hi(e[0]*t,e[1]*t,e[2]*t):(e==null?void 0:e.length)===4?s$(e[0]*t,e[1]*t,e[2]*t,e[3]*t):void 0},rj=function(e){return e.type===eR?[e.gray]:e.type===tR?[e.red,e.green,e.blue]:e.type===nR?[e.cyan,e.magenta,e.yellow,e.key]:Iy("Invalid color: "+JSON.stringify(e))},Dn=0,Cn=0,Gr=0,qr=0,Zm=0,Km=0,ij=new Map([["A",7],["a",7],["C",6],["c",6],["H",1],["h",1],["L",2],["l",2],["M",2],["m",2],["Q",4],["q",4],["S",4],["s",4],["T",2],["t",2],["V",1],["v",1],["Z",0],["z",0]]),C3e=function(e){for(var t,n=[],r=[],i="",a=!1,o=0,s=0,l=e;s<l.length;s++){var c=l[s];if(ij.has(c))o=ij.get(c),t&&(i.length>0&&(r[r.length]=+i),n[n.length]={cmd:t,args:r},r=[],i="",a=!1),t=c;else if([" ",","].includes(c)||c==="-"&&i.length>0&&i[i.length-1]!=="e"||c==="."&&a){if(i.length===0)continue;r.length===o?(n[n.length]={cmd:t,args:r},r=[+i],t==="M"&&(t="L"),t==="m"&&(t="l")):r[r.length]=+i,a=c===".",i=["-","."].includes(c)?c:""}else i+=c,c==="."&&(a=!0)}return i.length>0&&(r.length===o?(n[n.length]={cmd:t,args:r},r=[+i],t==="M"&&(t="L"),t==="m"&&(t="l")):r[r.length]=+i),n[n.length]={cmd:t,args:r},n},T3e=function(e){Dn=Cn=Gr=qr=Zm=Km=0;for(var t=[],n=0;n<e.length;n++){var r=e[n];if(r.cmd&&typeof aj[r.cmd]=="function"){var i=aj[r.cmd](r.args);Array.isArray(i)?t=t.concat(i):t.push(i)}}return t},aj={M:function(e){return Dn=e[0],Cn=e[1],Gr=qr=null,Zm=Dn,Km=Cn,uc(Dn,Cn)},m:function(e){return Dn+=e[0],Cn+=e[1],Gr=qr=null,Zm=Dn,Km=Cn,uc(Dn,Cn)},C:function(e){return Dn=e[4],Cn=e[5],Gr=e[2],qr=e[3],ms(e[0],e[1],e[2],e[3],e[4],e[5])},c:function(e){var t=ms(e[0]+Dn,e[1]+Cn,e[2]+Dn,e[3]+Cn,e[4]+Dn,e[5]+Cn);return Gr=Dn+e[2],qr=Cn+e[3],Dn+=e[4],Cn+=e[5],t},S:function(e){(Gr===null||qr===null)&&(Gr=Dn,qr=Cn);var t=ms(Dn-(Gr-Dn),Cn-(qr-Cn),e[0],e[1],e[2],e[3]);return Gr=e[0],qr=e[1],Dn=e[2],Cn=e[3],t},s:function(e){(Gr===null||qr===null)&&(Gr=Dn,qr=Cn);var t=ms(Dn-(Gr-Dn),Cn-(qr-Cn),Dn+e[0],Cn+e[1],Dn+e[2],Cn+e[3]);return Gr=Dn+e[0],qr=Cn+e[1],Dn+=e[2],Cn+=e[3],t},Q:function(e){return Gr=e[0],qr=e[1],Dn=e[2],Cn=e[3],$x(e[0],e[1],Dn,Cn)},q:function(e){var t=$x(e[0]+Dn,e[1]+Cn,e[2]+Dn,e[3]+Cn);return Gr=Dn+e[0],qr=Cn+e[1],Dn+=e[2],Cn+=e[3],t},T:function(e){Gr===null||qr===null?(Gr=Dn,qr=Cn):(Gr=Dn-(Gr-Dn),qr=Cn-(qr-Cn));var t=$x(Gr,qr,e[0],e[1]);return Gr=Dn-(Gr-Dn),qr=Cn-(qr-Cn),Dn=e[0],Cn=e[1],t},t:function(e){Gr===null||qr===null?(Gr=Dn,qr=Cn):(Gr=Dn-(Gr-Dn),qr=Cn-(qr-Cn));var t=$x(Gr,qr,Dn+e[0],Cn+e[1]);return Dn+=e[0],Cn+=e[1],t},A:function(e){var t=oj(Dn,Cn,e);return Dn=e[5],Cn=e[6],t},a:function(e){e[5]+=Dn,e[6]+=Cn;var t=oj(Dn,Cn,e);return Dn=e[5],Cn=e[6],t},L:function(e){return Dn=e[0],Cn=e[1],Gr=qr=null,Ba(Dn,Cn)},l:function(e){return Dn+=e[0],Cn+=e[1],Gr=qr=null,Ba(Dn,Cn)},H:function(e){return Dn=e[0],Gr=qr=null,Ba(Dn,Cn)},h:function(e){return Dn+=e[0],Gr=qr=null,Ba(Dn,Cn)},V:function(e){return Cn=e[0],Gr=qr=null,Ba(Dn,Cn)},v:function(e){return Cn+=e[0],Gr=qr=null,Ba(Dn,Cn)},Z:function(){var e=od();return Dn=Zm,Cn=Km,e},z:function(){var e=od();return Dn=Zm,Cn=Km,e}},oj=function(e,t,n){for(var r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],l=n[5],c=n[6],u=_3e(l,c,r,i,o,s,a,e,t),d=[],h=0,f=u;h<f.length;h++){var g=f[h],y=E3e.apply(void 0,g);d.push(ms.apply(void 0,y))}return d},_3e=function(e,t,n,r,i,a,o,s,l){var c=o*(Math.PI/180),u=Math.sin(c),d=Math.cos(c);n=Math.abs(n),r=Math.abs(r),Gr=d*(s-e)*.5+u*(l-t)*.5,qr=d*(l-t)*.5-u*(s-e)*.5;var h=Gr*Gr/(n*n)+qr*qr/(r*r);h>1&&(h=Math.sqrt(h),n*=h,r*=h);var f=d/n,g=u/n,y=-u/r,v=d/r,A=f*s+g*l,w=y*s+v*l,S=f*e+g*t,_=y*e+v*t,E=(S-A)*(S-A)+(_-w)*(_-w),T=1/E-.25;T<0&&(T=0);var D=Math.sqrt(T);a===i&&(D=-D);var I=.5*(A+S)-D*(_-w),j=.5*(w+_)+D*(S-A),R=Math.atan2(w-j,A-I),z=Math.atan2(_-j,S-I),B=z-R;B<0&&a===1?B+=2*Math.PI:B>0&&a===0&&(B-=2*Math.PI);for(var W=Math.ceil(Math.abs(B/(Math.PI*.5+.001))),P=[],Z=0;Z<W;Z++){var Q=R+Z*B/W,X=R+(Z+1)*B/W;P[Z]=[I,j,Q,X,n,r,u,d]}return P},E3e=function(e,t,n,r,i,a,o,s){var l=s*i,c=-o*a,u=o*i,d=s*a,h=.5*(r-n),f=8/3*Math.sin(h*.5)*Math.sin(h*.5)/Math.sin(h),g=e+Math.cos(n)-f*Math.sin(n),y=t+Math.sin(n)+f*Math.cos(n),v=e+Math.cos(r),A=t+Math.sin(r),w=v+f*Math.sin(r),S=A-f*Math.cos(r),_=[l*g+c*y,u*g+d*y,l*w+c*S,u*w+d*S,l*v+c*A,u*v+d*A];return _},N3e=function(e){return T3e(C3e(e))},F3e=function(e,t){for(var n=[Ra(),t.graphicsState&&sh(t.graphicsState),t$(),lh(t.color),JF(t.font,t.size),v3e(t.lineHeight),r$(Qa(t.rotate),Qa(t.xSkew),Qa(t.ySkew),t.x,t.y)].filter(Boolean),r=0,i=e.length;r<i;r++)n.push(e$(e[r]),y3e());return n.push(n$(),Pa()),n},l$=function(e,t){return[Ra(),t.graphicsState&&sh(t.graphicsState),$s(t.x,t.y),Fg(Qa(t.rotate)),iy(t.width,t.height),KF(Qa(t.xSkew),Qa(t.ySkew)),QF(e),Pa()].filter(Boolean)},R3e=function(e,t){return[Ra(),t.graphicsState&&sh(t.graphicsState),$s(t.x,t.y),Fg(Qa(t.rotate)),iy(t.xScale,t.yScale),KF(Qa(t.xSkew),Qa(t.ySkew)),QF(e),Pa()].filter(Boolean)},P3e=function(e){var t,n;return[Ra(),e.graphicsState&&sh(e.graphicsState),e.color&&Oy(e.color),Uy(e.thickness),A2((t=e.dashArray)!==null&&t!==void 0?t:[],(n=e.dashPhase)!==null&&n!==void 0?n:0),uc(e.start.x,e.start.y),e.lineCap&&w2(e.lineCap),uc(e.start.x,e.start.y),Ba(e.end.x,e.end.y),Ly(),Pa()].filter(Boolean)},cg=function(e){var t,n;return[Ra(),e.graphicsState&&sh(e.graphicsState),e.color&&lh(e.color),e.borderColor&&Oy(e.borderColor),Uy(e.borderWidth),e.borderLineCap&&w2(e.borderLineCap),A2((t=e.borderDashArray)!==null&&t!==void 0?t:[],(n=e.borderDashPhase)!==null&&n!==void 0?n:0),$s(e.x,e.y),Fg(Qa(e.rotate)),KF(Qa(e.xSkew),Qa(e.ySkew)),uc(0,0),Ba(0,e.height),Ba(e.width,e.height),Ba(e.width,0),od(),e.color&&e.borderWidth?YF():e.color?$F():e.borderColor?Ly():od(),Pa()].filter(Boolean)},hA=4*((Math.sqrt(2)-1)/3),I3e=function(e){var t=kr(e.x),n=kr(e.y),r=kr(e.xScale),i=kr(e.yScale);t-=r,n-=i;var a=r*hA,o=i*hA,s=t+r*2,l=n+i*2,c=t+r,u=n+i;return[Ra(),uc(t,u),ms(t,u-o,c-a,n,c,n),ms(c+a,n,s,u-o,s,u),ms(s,u+o,c+a,l,c,l),ms(c-a,l,t,u+o,t,u),Pa()]},M3e=function(e){var t=kr(e.x),n=kr(e.y),r=kr(e.xScale),i=kr(e.yScale),a=-r,o=-i,s=r*hA,l=i*hA,c=a+r*2,u=o+i*2,d=a+r,h=o+i;return[$s(t,n),Fg(Qa(e.rotate)),uc(a,h),ms(a,h-l,d-s,o,d,o),ms(d+s,o,c,h-l,c,h),ms(c,h+l,d+s,u,d,u),ms(d-s,u,a,h+l,a,h)]},V_=function(e){var t,n,r;return $r([Ra(),e.graphicsState&&sh(e.graphicsState),e.color&&lh(e.color),e.borderColor&&Oy(e.borderColor),Uy(e.borderWidth),e.borderLineCap&&w2(e.borderLineCap),A2((t=e.borderDashArray)!==null&&t!==void 0?t:[],(n=e.borderDashPhase)!==null&&n!==void 0?n:0)],e.rotate===void 0?I3e({x:e.x,y:e.y,xScale:e.xScale,yScale:e.yScale}):M3e({x:e.x,y:e.y,xScale:e.xScale,yScale:e.yScale,rotate:(r=e.rotate)!==null&&r!==void 0?r:Kn(0)}),[e.color&&e.borderWidth?YF():e.color?$F():e.borderColor?Ly():od(),Pa()]).filter(Boolean)},U3e=function(e,t){var n,r,i;return $r([Ra(),t.graphicsState&&sh(t.graphicsState),$s(t.x,t.y),Fg(Qa((n=t.rotate)!==null&&n!==void 0?n:Kn(0))),t.scale?iy(t.scale,-t.scale):iy(1,-1),t.color&&lh(t.color),t.borderColor&&Oy(t.borderColor),t.borderWidth&&Uy(t.borderWidth),t.borderLineCap&&w2(t.borderLineCap),A2((r=t.borderDashArray)!==null&&r!==void 0?r:[],(i=t.borderDashPhase)!==null&&i!==void 0?i:0)],N3e(e),[t.color&&t.borderWidth?YF():t.color?$F():t.borderColor?Ly():od(),Pa()]).filter(Boolean)},L3e=function(e){var t=kr(e.size),n=-1+.75,r=-1+.51,i=1-.525,a=1-.31,o=-1+.325,s=.3995/(i-r)+r;return[Ra(),e.color&&Oy(e.color),Uy(e.thickness),$s(e.x,e.y),uc(o*t,s*t),Ba(n*t,r*t),Ba(a*t,i*t),Ly(),Pa()].filter(Boolean)},_d=function(e){return e.rotation===0?[$s(0,0),Kx(0)]:e.rotation===90?[$s(e.width,0),Kx(90)]:e.rotation===180?[$s(e.width,e.height),Kx(180)]:e.rotation===270?[$s(0,e.height),Kx(270)]:[]},Yx=function(e){var t=cg({x:e.x,y:e.y,width:e.width,height:e.height,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Kn(0),xSkew:Kn(0),ySkew:Kn(0)});if(!e.filled)return t;var n=kr(e.width),r=kr(e.height),i=Math.min(n,r)/2,a=L3e({x:n/2,y:r/2,size:i,thickness:e.thickness,color:e.markColor});return $r([Ra()],t,a,[Pa()])},Jx=function(e){var t=kr(e.width),n=kr(e.height),r=Math.min(t,n)/2,i=V_({x:e.x,y:e.y,xScale:r,yScale:r,color:e.color,borderColor:e.borderColor,borderWidth:e.borderWidth});if(!e.filled)return i;var a=V_({x:e.x,y:e.y,xScale:r*.45,yScale:r*.45,color:e.dotColor,borderColor:void 0,borderWidth:0});return $r([Ra()],i,a,[Pa()])},sj=function(e){var t=kr(e.x),n=kr(e.y),r=kr(e.width),i=kr(e.height),a=cg({x:t,y:n,width:r,height:i,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Kn(0),xSkew:Kn(0),ySkew:Kn(0)}),o=rR(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:Kn(0),xSkew:Kn(0),ySkew:Kn(0)});return $r([Ra()],a,o,[Pa()])},rR=function(e,t){for(var n=[t$(),lh(t.color),JF(t.font,t.size)],r=0,i=e.length;r<i;r++){var a=e[r],o=a.encoded,s=a.x,l=a.y;n.push(r$(Qa(t.rotate),Qa(t.xSkew),Qa(t.ySkew),s,l),e$(o))}return n.push(n$()),n},c$=function(e){var t=kr(e.x),n=kr(e.y),r=kr(e.width),i=kr(e.height),a=kr(e.borderWidth),o=kr(e.padding),s=t+a/2+o,l=n+a/2+o,c=r-(a/2+o)*2,u=i-(a/2+o)*2,d=[uc(s,l),Ba(s,l+u),Ba(s+c,l+u),Ba(s+c,l),od(),JK(),QK()],h=cg({x:t,y:n,width:r,height:i,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Kn(0),xSkew:Kn(0),ySkew:Kn(0)}),f=rR(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:Kn(0),xSkew:Kn(0),ySkew:Kn(0)}),g=$r([i$("Tx"),Ra()],f,[Pa(),a$()]);return $r([Ra()],h,d,g,[Pa()])},O3e=function(e){for(var t=kr(e.x),n=kr(e.y),r=kr(e.width),i=kr(e.height),a=kr(e.lineHeight),o=kr(e.borderWidth),s=kr(e.padding),l=t+o/2+s,c=n+o/2+s,u=r-(o/2+s)*2,d=i-(o/2+s)*2,h=[uc(l,c),Ba(l,c+d),Ba(l+u,c+d),Ba(l+u,c),od(),JK(),QK()],f=cg({x:t,y:n,width:r,height:i,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Kn(0),xSkew:Kn(0),ySkew:Kn(0)}),g=[],y=0,v=e.selectedLines.length;y<v;y++){var A=e.textLines[e.selectedLines[y]];g.push.apply(g,cg({x:A.x-s,y:A.y-(a-A.height)/2,width:r-o,height:A.height+(a-A.height)/2,borderWidth:0,color:e.selectedColor,borderColor:void 0,rotate:Kn(0),xSkew:Kn(0),ySkew:Kn(0)}))}var w=rR(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:Kn(0),xSkew:Kn(0),ySkew:Kn(0)}),S=$r([i$("Tx"),Ra()],w,[Pa(),a$()]);return $r([Ra()],f,g,h,S,[Pa()])},j3e=(function(e){Mt(t,e);function t(){var n=this,r="Input document to `PDFDocument.load` is encrypted. You can use `PDFDocument.load(..., { ignoreEncryption: true })` if you wish to load the document anyways.";return n=e.call(this,r)||this,n}return t})(Error),B3e=(function(e){Mt(t,e);function t(){var n=this,r="Input to `PDFDocument.embedFont` was a custom font, but no `fontkit` instance was found. You must register a `fontkit` instance with `PDFDocument.registerFontkit(...)` before embedding custom fonts.";return n=e.call(this,r)||this,n}return t})(Error),z3e=(function(e){Mt(t,e);function t(){var n=this,r="A `page` passed to `PDFDocument.addPage` or `PDFDocument.insertPage` was from a different (foreign) PDF document. If you want to copy pages from one PDFDocument to another, you must use `PDFDocument.copyPages(...)` to copy the pages before adding or inserting them.";return n=e.call(this,r)||this,n}return t})(Error),W3e=(function(e){Mt(t,e);function t(){var n=this,r="PDFDocument has no pages so `PDFDocument.removePage` cannot be called";return n=e.call(this,r)||this,n}return t})(Error),V3e=(function(e){Mt(t,e);function t(n){var r=this,i='PDFDocument has no form field with the name "'+n+'"';return r=e.call(this,i)||this,r}return t})(Error),df=(function(e){Mt(t,e);function t(n,r,i){var a,o,s=this,l=r==null?void 0:r.name,c=(o=(a=i==null?void 0:i.constructor)===null||a===void 0?void 0:a.name)!==null&&o!==void 0?o:i,u='Expected field "'+n+'" to be of type '+l+", "+("but it is actually of type "+c);return s=e.call(this,u)||this,s}return t})(Error);(function(e){Mt(t,e);function t(n){var r=this,i='Failed to select check box due to missing onValue: "'+n+'"';return r=e.call(this,i)||this,r}return t})(Error);var u$=(function(e){Mt(t,e);function t(n){var r=this,i='A field already exists with the specified name: "'+n+'"';return r=e.call(this,i)||this,r}return t})(Error),G3e=(function(e){Mt(t,e);function t(n){var r=this,i='Field name contains invalid component: "'+n+'"';return r=e.call(this,i)||this,r}return t})(Error);(function(e){Mt(t,e);function t(n){var r=this,i='A non-terminal field already exists with the specified name: "'+n+'"';return r=e.call(this,i)||this,r}return t})(Error);var q3e=(function(e){Mt(t,e);function t(n){var r=this,i="Reading rich text fields is not supported: Attempted to read rich text field: "+n;return r=e.call(this,i)||this,r}return t})(Error),H3e=(function(e){Mt(t,e);function t(n,r){var i=this,a="Failed to layout combed text as lineLength="+n+" is greater than cellCount="+r;return i=e.call(this,a)||this,i}return t})(Error),X3e=(function(e){Mt(t,e);function t(n,r,i){var a=this,o="Attempted to set text with length="+n+" for TextField with maxLength="+r+" and name="+i;return a=e.call(this,o)||this,a}return t})(Error),Z3e=(function(e){Mt(t,e);function t(n,r,i){var a=this,o="Attempted to set maxLength="+r+", which is less than "+n+", the length of this field's current value (name="+i+")";return a=e.call(this,o)||this,a}return t})(Error),Ea;(function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"})(Ea||(Ea={}));var d$=4,f$=500,h$=function(e,t,n,r){r===void 0&&(r=!1);for(var i=d$;i<f$;){for(var a=0,o=0,s=e.length;o<s;o++){a+=1;for(var l=e[o],c=l.split(" "),u=n.width,d=0,h=c.length;d<h;d++){var f=d===h-1,g=f?c[d]:c[d]+" ",y=t.widthOfTextAtSize(g,i);u-=y,u<=0&&(a+=1,u=n.width-y)}}if(!r&&a>e.length)return i-1;var v=t.heightAtSize(i),A=v+v*.2,w=A*a;if(w>Math.abs(n.height))return i-1;i+=1}return i},K3e=function(e,t,n,r){for(var i=n.width/r,a=n.height,o=d$,s=O_e(e);o<f$;){for(var l=0,c=s.length;l<c;l++){var u=s[l],d=t.widthOfTextAtSize(u,o)>i*.75;if(d)return o-1}var h=t.heightAtSize(o,{descender:!1});if(h>a)return o-1;o+=1}return o},$3e=function(e){for(var t=e.length;t>0;t--)if(/\s/.test(e[t]))return t},Y3e=function(e,t,n,r){for(var i,a=e.length;a>0;){var o=e.substring(0,a),s=n.encodeText(o),l=n.widthOfTextAtSize(o,r);if(l<t){var c=e.substring(a)||void 0;return{line:o,encoded:s,width:l,remainder:c}}a=(i=$3e(o))!==null&&i!==void 0?i:0}return{line:e,encoded:n.encodeText(e),width:n.widthOfTextAtSize(e,r),remainder:void 0}},p$=function(e,t){var n=t.alignment,r=t.fontSize,i=t.font,a=t.bounds,o=eK(Py(e));(r===void 0||r===0)&&(r=h$(o,i,a,!0));for(var s=i.heightAtSize(r),l=s+s*.2,c=[],u=a.x,d=a.y,h=a.x+a.width,f=a.y+a.height,g=a.y+a.height,y=0,v=o.length;y<v;y++)for(var A=o[y];A!==void 0;){var w=Y3e(A,a.width,i,r),S=w.line,_=w.encoded,E=w.width,T=w.remainder,D=n===Ea.Left?a.x:n===Ea.Center?a.x+a.width/2-E/2:n===Ea.Right?a.x+a.width-E:a.x;g-=l,D<u&&(u=D),g<d&&(d=g),D+E>h&&(h=D+E),g+s>f&&(f=g+s),c.push({text:S,encoded:_,width:E,height:s,x:D,y:g}),A=T==null?void 0:T.trim()}return{fontSize:r,lineHeight:l,lines:c,bounds:{x:u,y:d,width:h-u,height:f-d}}},J3e=function(e,t){var n=t.fontSize,r=t.font,i=t.bounds,a=t.cellCount,o=tK(Py(e));if(o.length>a)throw new H3e(o.length,a);(n===void 0||n===0)&&(n=K3e(o,r,i,a));for(var s=i.width/a,l=r.heightAtSize(n,{descender:!1}),c=i.y+(i.height/2-l/2),u=[],d=i.x,h=i.y,f=i.x+i.width,g=i.y+i.height,y=0,v=0;y<a;){var A=nK(o,v),w=A[0],S=A[1],_=r.encodeText(w),E=r.widthOfTextAtSize(w,n),T=i.x+(s*y+s/2),D=T-E/2;D<d&&(d=D),c<h&&(h=c),D+E>f&&(f=D+E),c+l>g&&(g=c+l),u.push({text:o,encoded:_,width:E,height:l,x:D,y:c}),y+=1,v+=S}return{fontSize:n,cells:u,bounds:{x:d,y:h,width:f-d,height:g-h}}},pA=function(e,t){var n=t.alignment,r=t.fontSize,i=t.font,a=t.bounds,o=tK(Py(e));(r===void 0||r===0)&&(r=h$([o],i,a));var s=i.encodeText(o),l=i.widthOfTextAtSize(o,r),c=i.heightAtSize(r,{descender:!1}),u=n===Ea.Left?a.x:n===Ea.Center?a.x+a.width/2-l/2:n===Ea.Right?a.x+a.width-l:a.x,d=a.y+(a.height/2-c/2);return{fontSize:r,line:{text:o,encoded:s,width:l,height:c,x:u,y:d},bounds:{x:u,y:d,width:l,height:c}}},Rg=function(e){return"normal"in e?e:{normal:e}},Q3e=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]+(\d*\.\d+|\d+)[\0\t\n\f\r\ ]+Tf/,ld=function(e){var t,n,r=(t=e.getDefaultAppearance())!==null&&t!==void 0?t:"",i=(n=PF(r,Q3e).match)!==null&&n!==void 0?n:[],a=Number(i[2]);return isFinite(a)?a:void 0},eFe=/(\d*\.\d+|\d+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+(g|rg|k)/,il=function(e){var t,n=(t=e.getDefaultAppearance())!==null&&t!==void 0?t:"",r=PF(n,eFe).match,i=r??[],a=i[1],o=i[2],s=i[3],l=i[4],c=i[5];if(c==="g"&&a)return o$(Number(a));if(c==="rg"&&a&&o&&s)return hi(Number(a),Number(o),Number(s));if(c==="k"&&a&&o&&s&&l)return s$(Number(a),Number(o),Number(s),Number(l))},al=function(e,t,n,r){var i;r===void 0&&(r=0);var a=[lh(t).toString(),JF((i=n==null?void 0:n.name)!==null&&i!==void 0?i:"dummy__noop",r).toString()].join(`-`);e.setDefaultAppearance(a)},tFe=function(e,t){var n,r,i,a=il(t),o=il(e.acroField),s=t.getRectangle(),l=t.getAppearanceCharacteristics(),c=t.getBorderStyle(),u=(n=c==null?void 0:c.getWidth())!==null&&n!==void 0?n:0,d=nu(l==null?void 0:l.getRotation()),h=oh(s,d),f=h.width,g=h.height,y=_d(lr(lr({},s),{rotation:d})),v=hi(0,0,0),A=(r=Do(l==null?void 0:l.getBorderColor()))!==null&&r!==void 0?r:v,w=Do(l==null?void 0:l.getBackgroundColor()),S=Do(l==null?void 0:l.getBackgroundColor(),.8),_=(i=a??o)!==null&&i!==void 0?i:v;al(a?t:e.acroField,_);var E={x:0+u/2,y:0+u/2,width:f-u,height:g-u,thickness:1.5,borderWidth:u,borderColor:A,markColor:_};return{normal:{on:$r(y,Yx(lr(lr({},E),{color:w,filled:!0}))),off:$r(y,Yx(lr(lr({},E),{color:w,filled:!1})))},down:{on:$r(y,Yx(lr(lr({},E),{color:S,filled:!0}))),off:$r(y,Yx(lr(lr({},E),{color:S,filled:!1})))}}},nFe=function(e,t){var n,r,i,a=il(t),o=il(e.acroField),s=t.getRectangle(),l=t.getAppearanceCharacteristics(),c=t.getBorderStyle(),u=(n=c==null?void 0:c.getWidth())!==null&&n!==void 0?n:0,d=nu(l==null?void 0:l.getRotation()),h=oh(s,d),f=h.width,g=h.height,y=_d(lr(lr({},s),{rotation:d})),v=hi(0,0,0),A=(r=Do(l==null?void 0:l.getBorderColor()))!==null&&r!==void 0?r:v,w=Do(l==null?void 0:l.getBackgroundColor()),S=Do(l==null?void 0:l.getBackgroundColor(),.8),_=(i=a??o)!==null&&i!==void 0?i:v;al(a?t:e.acroField,_);var E={x:f/2,y:g/2,width:f-u,height:g-u,borderWidth:u,borderColor:A,dotColor:_};return{normal:{on:$r(y,Jx(lr(lr({},E),{color:w,filled:!0}))),off:$r(y,Jx(lr(lr({},E),{color:w,filled:!1})))},down:{on:$r(y,Jx(lr(lr({},E),{color:S,filled:!0}))),off:$r(y,Jx(lr(lr({},E),{color:S,filled:!1})))}}},rFe=function(e,t,n){var r,i,a,o,s,l=il(t),c=il(e.acroField),u=ld(t),d=ld(e.acroField),h=t.getRectangle(),f=t.getAppearanceCharacteristics(),g=t.getBorderStyle(),y=f==null?void 0:f.getCaptions(),v=(r=y==null?void 0:y.normal)!==null&&r!==void 0?r:"",A=(a=(i=y==null?void 0:y.down)!==null&&i!==void 0?i:v)!==null&&a!==void 0?a:"",w=(o=g==null?void 0:g.getWidth())!==null&&o!==void 0?o:0,S=nu(f==null?void 0:f.getRotation()),_=oh(h,S),E=_.width,T=_.height,D=_d(lr(lr({},h),{rotation:S})),I=hi(0,0,0),j=Do(f==null?void 0:f.getBorderColor()),R=Do(f==null?void 0:f.getBackgroundColor()),z=Do(f==null?void 0:f.getBackgroundColor(),.8),B={x:w,y:w,width:E-w*2,height:T-w*2},W=pA(v,{alignment:Ea.Center,fontSize:u??d,font:n,bounds:B}),P=pA(A,{alignment:Ea.Center,fontSize:u??d,font:n,bounds:B}),Z=Math.min(W.fontSize,P.fontSize),Q=(s=l??c)!==null&&s!==void 0?s:I;al(l||u!==void 0?t:e.acroField,Q,n,Z);var X={x:0+w/2,y:0+w/2,width:E-w,height:T-w,borderWidth:w,borderColor:j,textColor:Q,font:n.name,fontSize:Z};return{normal:$r(D,sj(lr(lr({},X),{color:R,textLines:[W.line]}))),down:$r(D,sj(lr(lr({},X),{color:z,textLines:[P.line]})))}},iFe=function(e,t,n){var r,i,a,o,s=il(t),l=il(e.acroField),c=ld(t),u=ld(e.acroField),d=t.getRectangle(),h=t.getAppearanceCharacteristics(),f=t.getBorderStyle(),g=(r=e.getText())!==null&&r!==void 0?r:"",y=(i=f==null?void 0:f.getWidth())!==null&&i!==void 0?i:0,v=nu(h==null?void 0:h.getRotation()),A=oh(d,v),w=A.width,S=A.height,_=_d(lr(lr({},d),{rotation:v})),E=hi(0,0,0),T=Do(h==null?void 0:h.getBorderColor()),D=Do(h==null?void 0:h.getBackgroundColor()),I,j,R=e.isCombed()?0:1,z={x:y+R,y:y+R,width:w-(y+R)*2,height:S-(y+R)*2};if(e.isMultiline()){var B=p$(g,{alignment:e.getAlignment(),fontSize:c??u,font:n,bounds:z});I=B.lines,j=B.fontSize}else if(e.isCombed()){var B=J3e(g,{fontSize:c??u,font:n,bounds:z,cellCount:(a=e.getMaxLength())!==null&&a!==void 0?a:0});I=B.cells,j=B.fontSize}else{var B=pA(g,{alignment:e.getAlignment(),fontSize:c??u,font:n,bounds:z});I=[B.line],j=B.fontSize}var W=(o=s??l)!==null&&o!==void 0?o:E;al(s||c!==void 0?t:e.acroField,W,n,j);var P={x:0+y/2,y:0+y/2,width:w-y,height:S-y,borderWidth:y??0,borderColor:T,textColor:W,font:n.name,fontSize:j,color:D,textLines:I,padding:R};return $r(_,c$(P))},aFe=function(e,t,n){var r,i,a,o=il(t),s=il(e.acroField),l=ld(t),c=ld(e.acroField),u=t.getRectangle(),d=t.getAppearanceCharacteristics(),h=t.getBorderStyle(),f=(r=e.getSelected()[0])!==null&&r!==void 0?r:"",g=(i=h==null?void 0:h.getWidth())!==null&&i!==void 0?i:0,y=nu(d==null?void 0:d.getRotation()),v=oh(u,y),A=v.width,w=v.height,S=_d(lr(lr({},u),{rotation:y})),_=hi(0,0,0),E=Do(d==null?void 0:d.getBorderColor()),T=Do(d==null?void 0:d.getBackgroundColor()),D=1,I={x:g+D,y:g+D,width:A-(g+D)*2,height:w-(g+D)*2},j=pA(f,{alignment:Ea.Left,fontSize:l??c,font:n,bounds:I}),R=j.line,z=j.fontSize,B=(a=o??s)!==null&&a!==void 0?a:_;al(o||l!==void 0?t:e.acroField,B,n,z);var W={x:0+g/2,y:0+g/2,width:A-g,height:w-g,borderWidth:g??0,borderColor:E,textColor:B,font:n.name,fontSize:z,color:T,textLines:[R],padding:D};return $r(S,c$(W))},oFe=function(e,t,n){var r,i,a=il(t),o=il(e.acroField),s=ld(t),l=ld(e.acroField),c=t.getRectangle(),u=t.getAppearanceCharacteristics(),d=t.getBorderStyle(),h=(r=d==null?void 0:d.getWidth())!==null&&r!==void 0?r:0,f=nu(u==null?void 0:u.getRotation()),g=oh(c,f),y=g.width,v=g.height,A=_d(lr(lr({},c),{rotation:f})),w=hi(0,0,0),S=Do(u==null?void 0:u.getBorderColor()),_=Do(u==null?void 0:u.getBackgroundColor()),E=e.getOptions(),T=e.getSelected();e.isSorted()&&E.sort();for(var D="",I=0,j=E.length;I<j;I++)D+=E[I],I<j-1&&(D+=`-`);for(var R=1,z={x:h+R,y:h+R,width:y-(h+R)*2,height:v-(h+R)*2},B=p$(D,{alignment:Ea.Left,fontSize:s??l,font:n,bounds:z}),W=B.lines,P=B.fontSize,Z=B.lineHeight,Q=[],I=0,j=W.length;I<j;I++){var X=W[I];T.includes(X.text)&&Q.push(I)}var q=hi(153/255,193/255,218/255),te=(i=a??o)!==null&&i!==void 0?i:w;return al(a||s!==void 0?t:e.acroField,te,n,P),$r(A,O3e({x:0+h/2,y:0+h/2,width:y-h,height:v-h,borderWidth:h??0,borderColor:S,textColor:te,font:n.name,fontSize:P,color:_,textLines:W,lineHeight:Z,selectedColor:q,selectedLines:Q,padding:R}))},g$=(function(){function e(t,n,r){this.alreadyEmbedded=!1,Qe(t,"ref",[[fi,"PDFRef"]]),Qe(n,"doc",[[Jc,"PDFDocument"]]),Qe(r,"embedder",[[BK,"PDFPageEmbedder"]]),this.ref=t,this.doc=n,this.width=r.width,this.height=r.height,this.embedder=r}return e.prototype.scale=function(t){return Qe(t,"factor",["number"]),{width:this.width*t,height:this.height*t}},e.prototype.size=function(){return this.scale(1)},e.prototype.embed=function(){return wr(this,void 0,void 0,function(){return Sr(this,function(t){switch(t.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:t.sent(),this.alreadyEmbedded=!0,t.label=2;case 2:return[2]}})})},e.of=function(t,n,r){return new e(t,n,r)},e})(),ws=(function(){function e(t,n,r){this.modified=!0,Qe(t,"ref",[[fi,"PDFRef"]]),Qe(n,"doc",[[Jc,"PDFDocument"]]),Qe(r,"embedder",[[WF,"CustomFontEmbedder"],[oA,"StandardFontEmbedder"]]),this.ref=t,this.doc=n,this.name=r.fontName,this.embedder=r}return e.prototype.encodeText=function(t){return Qe(t,"text",["string"]),this.modified=!0,this.embedder.encodeText(t)},e.prototype.widthOfTextAtSize=function(t,n){return Qe(t,"text",["string"]),Qe(n,"size",["number"]),this.embedder.widthOfTextAtSize(t,n)},e.prototype.heightAtSize=function(t,n){var r;return Qe(t,"size",["number"]),Pt(n==null?void 0:n.descender,"options.descender",["boolean"]),this.embedder.heightOfFontAtSize(t,{descender:(r=n==null?void 0:n.descender)!==null&&r!==void 0?r:!0})},e.prototype.sizeAtHeight=function(t){return Qe(t,"height",["number"]),this.embedder.sizeOfFontAtHeight(t)},e.prototype.getCharacterSet=function(){return this.embedder instanceof oA?this.embedder.encoding.supportedCodePoints:this.embedder.font.characterSet},e.prototype.embed=function(){return wr(this,void 0,void 0,function(){return Sr(this,function(t){switch(t.label){case 0:return this.modified?[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]:[3,2];case 1:t.sent(),this.modified=!1,t.label=2;case 2:return[2]}})})},e.of=function(t,n,r){return new e(t,n,r)},e})(),G_=(function(){function e(t,n,r){Qe(t,"ref",[[fi,"PDFRef"]]),Qe(n,"doc",[[Jc,"PDFDocument"]]),Qe(r,"embedder",[[FK,"JpegEmbedder"],[LK,"PngEmbedder"]]),this.ref=t,this.doc=n,this.width=r.width,this.height=r.height,this.embedder=r}return e.prototype.scale=function(t){return Qe(t,"factor",["number"]),{width:this.width*t,height:this.height*t}},e.prototype.scaleToFit=function(t,n){Qe(t,"width",["number"]),Qe(n,"height",["number"]);var r=t/this.width,i=n/this.height,a=Math.min(r,i);return this.scale(a)},e.prototype.size=function(){return this.scale(1)},e.prototype.embed=function(){return wr(this,void 0,void 0,function(){var t,n,r;return Sr(this,function(i){switch(i.label){case 0:return this.embedder?(this.embedTask||(t=this,n=t.doc,r=t.ref,this.embedTask=this.embedder.embedIntoContext(n.context,r)),[4,this.embedTask]):[2];case 1:return i.sent(),this.embedder=void 0,[2]}})})},e.of=function(t,n,r){return new e(t,n,r)},e})(),Zu;(function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"})(Zu||(Zu={}));var Pg=function(e){Pt(e==null?void 0:e.x,"options.x",["number"]),Pt(e==null?void 0:e.y,"options.y",["number"]),Pt(e==null?void 0:e.width,"options.width",["number"]),Pt(e==null?void 0:e.height,"options.height",["number"]),Pt(e==null?void 0:e.textColor,"options.textColor",[[Object,"Color"]]),Pt(e==null?void 0:e.backgroundColor,"options.backgroundColor",[[Object,"Color"]]),Pt(e==null?void 0:e.borderColor,"options.borderColor",[[Object,"Color"]]),Pt(e==null?void 0:e.borderWidth,"options.borderWidth",["number"]),Pt(e==null?void 0:e.rotate,"options.rotate",[[Object,"Rotation"]])},ch=(function(){function e(t,n,r){Qe(t,"acroField",[[Ng,"PDFAcroTerminal"]]),Qe(n,"ref",[[fi,"PDFRef"]]),Qe(r,"doc",[[Jc,"PDFDocument"]]),this.acroField=t,this.ref=n,this.doc=r}return e.prototype.getName=function(){var t;return(t=this.acroField.getFullyQualifiedName())!==null&&t!==void 0?t:""},e.prototype.isReadOnly=function(){return this.acroField.hasFlag(El.ReadOnly)},e.prototype.enableReadOnly=function(){this.acroField.setFlagTo(El.ReadOnly,!0)},e.prototype.disableReadOnly=function(){this.acroField.setFlagTo(El.ReadOnly,!1)},e.prototype.isRequired=function(){return this.acroField.hasFlag(El.Required)},e.prototype.enableRequired=function(){this.acroField.setFlagTo(El.Required,!0)},e.prototype.disableRequired=function(){this.acroField.setFlagTo(El.Required,!1)},e.prototype.isExported=function(){return!this.acroField.hasFlag(El.NoExport)},e.prototype.enableExporting=function(){this.acroField.setFlagTo(El.NoExport,!1)},e.prototype.disableExporting=function(){this.acroField.setFlagTo(El.NoExport,!0)},e.prototype.needsAppearancesUpdate=function(){throw new Ks(this.constructor.name,"needsAppearancesUpdate")},e.prototype.defaultUpdateAppearances=function(t){throw new Ks(this.constructor.name,"defaultUpdateAppearances")},e.prototype.markAsDirty=function(){this.doc.getForm().markFieldAsDirty(this.ref)},e.prototype.markAsClean=function(){this.doc.getForm().markFieldAsClean(this.ref)},e.prototype.isDirty=function(){return this.doc.getForm().fieldIsDirty(this.ref)},e.prototype.createWidget=function(t){var n,r=t.textColor,i=t.backgroundColor,a=t.borderColor,o=t.borderWidth,s=YK(t.rotate),l=t.caption,c=t.x,u=t.y,d=t.width+o,h=t.height+o,f=!!t.hidden,g=t.page;vK(s,"degreesAngle",90);var y=z_.create(this.doc.context,this.ref),v=m3e({x:c,y:u,width:d,height:h},o,s);y.setRectangle(v),g&&y.setP(g);var A=y.getOrCreateAppearanceCharacteristics();i&&A.setBackgroundColor(rj(i)),A.setRotation(s),l&&A.setCaptions({normal:l}),a&&A.setBorderColor(rj(a));var w=y.getOrCreateBorderStyle();if(o!==void 0&&w.setWidth(o),y.setFlagTo(b0.Print,!0),y.setFlagTo(b0.Hidden,f),y.setFlagTo(b0.Invisible,!1),r){var S=(n=this.acroField.getDefaultAppearance())!==null&&n!==void 0?n:"",_=S+`-`+lh(r).toString();this.acroField.setDefaultAppearance(_)}return y},e.prototype.updateWidgetAppearanceWithFont=function(t,n,r){var i=r.normal,a=r.rollover,o=r.down;this.updateWidgetAppearances(t,{normal:this.createAppearanceStream(t,i,n),rollover:a&&this.createAppearanceStream(t,a,n),down:o&&this.createAppearanceStream(t,o,n)})},e.prototype.updateOnOffWidgetAppearance=function(t,n,r){var i=r.normal,a=r.rollover,o=r.down;this.updateWidgetAppearances(t,{normal:this.createAppearanceDict(t,i,n),rollover:a&&this.createAppearanceDict(t,a,n),down:o&&this.createAppearanceDict(t,o,n)})},e.prototype.updateWidgetAppearances=function(t,n){var r=n.normal,i=n.rollover,a=n.down;t.setNormalAppearance(r),i?t.setRolloverAppearance(i):t.removeRolloverAppearance(),a?t.setDownAppearance(a):t.removeDownAppearance()},e.prototype.createAppearanceStream=function(t,n,r){var i,a=this.acroField.dict.context,o=t.getRectangle(),s=o.width,l=o.height,c=r&&{Font:(i={},i[r.name]=r.ref,i)},u=a.formXObject(n,{Resources:c,BBox:a.obj([0,0,s,l]),Matrix:a.obj([1,0,0,1,0,0])}),d=a.register(u);return d},e.prototype.createImageAppearanceStream=function(t,n,r){var i,a,o=this.acroField.dict.context,s=t.getRectangle(),l=t.getAppearanceCharacteristics(),c=t.getBorderStyle(),u=(a=c==null?void 0:c.getWidth())!==null&&a!==void 0?a:0,d=nu(l==null?void 0:l.getRotation()),h=_d(lr(lr({},s),{rotation:d})),f=oh(s,d),g=n.scaleToFit(f.width-u*2,f.height-u*2),y={x:u,y:u,width:g.width,height:g.height,rotate:Kn(0),xSkew:Kn(0),ySkew:Kn(0)};r===Zu.Center?(y.x+=(f.width-u*2)/2-g.width/2,y.y+=(f.height-u*2)/2-g.height/2):r===Zu.Right&&(y.x=f.width-u-g.width,y.y=f.height-u-g.height);var v=this.doc.context.addRandomSuffix("Image",10),A=$r(h,l$(v,y)),w={XObject:(i={},i[v]=n.ref,i)},S=o.formXObject(A,{Resources:w,BBox:o.obj([0,0,s.width,s.height]),Matrix:o.obj([1,0,0,1,0,0])});return o.register(S)},e.prototype.createAppearanceDict=function(t,n,r){var i=this.acroField.dict.context,a=this.createAppearanceStream(t,n.on),o=this.createAppearanceStream(t,n.off),s=i.obj({});return s.set(r,a),s.set(je.of("Off"),o),s},e})(),$m=(function(e){Mt(t,e);function t(n,r,i){var a=e.call(this,n,r,i)||this;return Qe(n,"acroCheckBox",[[d2,"PDFAcroCheckBox"]]),a.acroField=n,a}return t.prototype.check=function(){var n,r=(n=this.acroField.getOnValue())!==null&&n!==void 0?n:je.of("Yes");this.markAsDirty(),this.acroField.setValue(r)},t.prototype.uncheck=function(){this.markAsDirty(),this.acroField.setValue(je.of("Off"))},t.prototype.isChecked=function(){var n=this.acroField.getOnValue();return!!n&&n===this.acroField.getValue()},t.prototype.addToPage=function(n,r){var i,a,o,s,l,c;Qe(n,"page",[[Hs,"PDFPage"]]),Pg(r),r||(r={}),"textColor"in r||(r.textColor=hi(0,0,0)),"backgroundColor"in r||(r.backgroundColor=hi(1,1,1)),"borderColor"in r||(r.borderColor=hi(0,0,0)),"borderWidth"in r||(r.borderWidth=1);var u=this.createWidget({x:(i=r.x)!==null&&i!==void 0?i:0,y:(a=r.y)!==null&&a!==void 0?a:0,width:(o=r.width)!==null&&o!==void 0?o:50,height:(s=r.height)!==null&&s!==void 0?s:50,textColor:r.textColor,backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:(l=r.borderWidth)!==null&&l!==void 0?l:0,rotate:(c=r.rotate)!==null&&c!==void 0?c:Kn(0),hidden:r.hidden,page:n.ref}),d=this.doc.context.register(u.dict);this.acroField.addWidget(d),u.setAppearanceState(je.of("Off")),this.updateWidgetAppearance(u,je.of("Yes")),n.node.addAnnot(d)},t.prototype.needsAppearancesUpdate=function(){for(var n,r=this.acroField.getWidgets(),i=0,a=r.length;i<a;i++){var o=r[i],s=o.getAppearanceState(),l=(n=o.getAppearances())===null||n===void 0?void 0:n.normal;if(!(l instanceof gr)||s&&!l.has(s))return!0}return!1},t.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},t.prototype.updateAppearances=function(n){var r;Pt(n,"provider",[Function]);for(var i=this.acroField.getWidgets(),a=0,o=i.length;a<o;a++){var s=i[a],l=(r=s.getOnValue())!==null&&r!==void 0?r:je.of("Yes");l&&this.updateWidgetAppearance(s,l,n)}this.markAsClean()},t.prototype.updateWidgetAppearance=function(n,r,i){var a=i??tFe,o=Rg(a(this,n));this.updateOnOffWidgetAppearance(n,r,o)},t.of=function(n,r,i){return new t(n,r,i)},t})(ch),t1=(function(e){Mt(t,e);function t(n,r,i){var a=e.call(this,n,r,i)||this;return Qe(n,"acroComboBox",[[f2,"PDFAcroComboBox"]]),a.acroField=n,a}return t.prototype.getOptions=function(){for(var n=this.acroField.getOptions(),r=new Array(n.length),i=0,a=r.length;i<a;i++){var o=n[i],s=o.display,l=o.value;r[i]=(s??l).decodeText()}return r},t.prototype.getSelected=function(){for(var n=this.acroField.getValues(),r=new Array(n.length),i=0,a=n.length;i<a;i++)r[i]=n[i].decodeText();return r},t.prototype.setOptions=function(n){Qe(n,"options",[Array]);for(var r=new Array(n.length),i=0,a=n.length;i<a;i++)r[i]={value:qn.fromText(n[i])};this.acroField.setOptions(r)},t.prototype.addOptions=function(n){Qe(n,"options",["string",Array]);for(var r=Array.isArray(n)?n:[n],i=this.acroField.getOptions(),a=new Array(r.length),o=0,s=r.length;o<s;o++)a[o]={value:qn.fromText(r[o])};this.acroField.setOptions(i.concat(a))},t.prototype.select=function(n,r){r===void 0&&(r=!1),Qe(n,"options",["string",Array]),Qe(r,"merge",["boolean"]);var i=Array.isArray(n)?n:[n],a=this.getOptions(),o=i.find(function(d){return!a.includes(d)});o&&this.enableEditing(),this.markAsDirty(),(i.length>1||i.length===1&&r)&&this.enableMultiselect();for(var s=new Array(i.length),l=0,c=i.length;l<c;l++)s[l]=qn.fromText(i[l]);if(r){var u=this.acroField.getValues();this.acroField.setValues(u.concat(s))}else this.acroField.setValues(s)},t.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},t.prototype.setFontSize=function(n){c2(n,"fontSize"),this.acroField.setFontSize(n),this.markAsDirty()},t.prototype.isEditable=function(){return this.acroField.hasFlag(ui.Edit)},t.prototype.enableEditing=function(){this.acroField.setFlagTo(ui.Edit,!0)},t.prototype.disableEditing=function(){this.acroField.setFlagTo(ui.Edit,!1)},t.prototype.isSorted=function(){return this.acroField.hasFlag(ui.Sort)},t.prototype.enableSorting=function(){this.acroField.setFlagTo(ui.Sort,!0)},t.prototype.disableSorting=function(){this.acroField.setFlagTo(ui.Sort,!1)},t.prototype.isMultiselect=function(){return this.acroField.hasFlag(ui.MultiSelect)},t.prototype.enableMultiselect=function(){this.acroField.setFlagTo(ui.MultiSelect,!0)},t.prototype.disableMultiselect=function(){this.acroField.setFlagTo(ui.MultiSelect,!1)},t.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(ui.DoNotSpellCheck)},t.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(ui.DoNotSpellCheck,!1)},t.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(ui.DoNotSpellCheck,!0)},t.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(ui.CommitOnSelChange)},t.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(ui.CommitOnSelChange,!0)},t.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(ui.CommitOnSelChange,!1)},t.prototype.addToPage=function(n,r){var i,a,o,s,l,c,u;Qe(n,"page",[[Hs,"PDFPage"]]),Pg(r),r||(r={}),"textColor"in r||(r.textColor=hi(0,0,0)),"backgroundColor"in r||(r.backgroundColor=hi(1,1,1)),"borderColor"in r||(r.borderColor=hi(0,0,0)),"borderWidth"in r||(r.borderWidth=1);var d=this.createWidget({x:(i=r.x)!==null&&i!==void 0?i:0,y:(a=r.y)!==null&&a!==void 0?a:0,width:(o=r.width)!==null&&o!==void 0?o:200,height:(s=r.height)!==null&&s!==void 0?s:50,textColor:r.textColor,backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:(l=r.borderWidth)!==null&&l!==void 0?l:0,rotate:(c=r.rotate)!==null&&c!==void 0?c:Kn(0),hidden:r.hidden,page:n.ref}),h=this.doc.context.register(d.dict);this.acroField.addWidget(h);var f=(u=r.font)!==null&&u!==void 0?u:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(d,f),n.node.addAnnot(h)},t.prototype.needsAppearancesUpdate=function(){var n;if(this.isDirty())return!0;for(var r=this.acroField.getWidgets(),i=0,a=r.length;i<a;i++){var o=r[i],s=((n=o.getAppearances())===null||n===void 0?void 0:n.normal)instanceof xs;if(!s)return!0}return!1},t.prototype.defaultUpdateAppearances=function(n){Qe(n,"font",[[ws,"PDFFont"]]),this.updateAppearances(n)},t.prototype.updateAppearances=function(n,r){Qe(n,"font",[[ws,"PDFFont"]]),Pt(r,"provider",[Function]);for(var i=this.acroField.getWidgets(),a=0,o=i.length;a<o;a++){var s=i[a];this.updateWidgetAppearance(s,n,r)}this.markAsClean()},t.prototype.updateWidgetAppearance=function(n,r,i){var a=i??aFe,o=Rg(a(this,n,r));this.updateWidgetAppearanceWithFont(n,r,o)},t.of=function(n,r,i){return new t(n,r,i)},t})(ch),n1=(function(e){Mt(t,e);function t(n,r,i){var a=e.call(this,n,r,i)||this;return Qe(n,"acroListBox",[[m2,"PDFAcroListBox"]]),a.acroField=n,a}return t.prototype.getOptions=function(){for(var n=this.acroField.getOptions(),r=new Array(n.length),i=0,a=r.length;i<a;i++){var o=n[i],s=o.display,l=o.value;r[i]=(s??l).decodeText()}return r},t.prototype.getSelected=function(){for(var n=this.acroField.getValues(),r=new Array(n.length),i=0,a=n.length;i<a;i++)r[i]=n[i].decodeText();return r},t.prototype.setOptions=function(n){Qe(n,"options",[Array]),this.markAsDirty();for(var r=new Array(n.length),i=0,a=n.length;i<a;i++)r[i]={value:qn.fromText(n[i])};this.acroField.setOptions(r)},t.prototype.addOptions=function(n){Qe(n,"options",["string",Array]),this.markAsDirty();for(var r=Array.isArray(n)?n:[n],i=this.acroField.getOptions(),a=new Array(r.length),o=0,s=r.length;o<s;o++)a[o]={value:qn.fromText(r[o])};this.acroField.setOptions(i.concat(a))},t.prototype.select=function(n,r){r===void 0&&(r=!1),Qe(n,"options",["string",Array]),Qe(r,"merge",["boolean"]);var i=Array.isArray(n)?n:[n],a=this.getOptions();LEe(i,"option",a),this.markAsDirty(),(i.length>1||i.length===1&&r)&&this.enableMultiselect();for(var o=new Array(i.length),s=0,l=i.length;s<l;s++)o[s]=qn.fromText(i[s]);if(r){var c=this.acroField.getValues();this.acroField.setValues(c.concat(o))}else this.acroField.setValues(o)},t.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},t.prototype.setFontSize=function(n){c2(n,"fontSize"),this.acroField.setFontSize(n),this.markAsDirty()},t.prototype.isSorted=function(){return this.acroField.hasFlag(ui.Sort)},t.prototype.enableSorting=function(){this.acroField.setFlagTo(ui.Sort,!0)},t.prototype.disableSorting=function(){this.acroField.setFlagTo(ui.Sort,!1)},t.prototype.isMultiselect=function(){return this.acroField.hasFlag(ui.MultiSelect)},t.prototype.enableMultiselect=function(){this.acroField.setFlagTo(ui.MultiSelect,!0)},t.prototype.disableMultiselect=function(){this.acroField.setFlagTo(ui.MultiSelect,!1)},t.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(ui.CommitOnSelChange)},t.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(ui.CommitOnSelChange,!0)},t.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(ui.CommitOnSelChange,!1)},t.prototype.addToPage=function(n,r){var i,a,o,s,l,c,u;Qe(n,"page",[[Hs,"PDFPage"]]),Pg(r),r||(r={}),"textColor"in r||(r.textColor=hi(0,0,0)),"backgroundColor"in r||(r.backgroundColor=hi(1,1,1)),"borderColor"in r||(r.borderColor=hi(0,0,0)),"borderWidth"in r||(r.borderWidth=1);var d=this.createWidget({x:(i=r.x)!==null&&i!==void 0?i:0,y:(a=r.y)!==null&&a!==void 0?a:0,width:(o=r.width)!==null&&o!==void 0?o:200,height:(s=r.height)!==null&&s!==void 0?s:100,textColor:r.textColor,backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:(l=r.borderWidth)!==null&&l!==void 0?l:0,rotate:(c=r.rotate)!==null&&c!==void 0?c:Kn(0),hidden:r.hidden,page:n.ref}),h=this.doc.context.register(d.dict);this.acroField.addWidget(h);var f=(u=r.font)!==null&&u!==void 0?u:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(d,f),n.node.addAnnot(h)},t.prototype.needsAppearancesUpdate=function(){var n;if(this.isDirty())return!0;for(var r=this.acroField.getWidgets(),i=0,a=r.length;i<a;i++){var o=r[i],s=((n=o.getAppearances())===null||n===void 0?void 0:n.normal)instanceof xs;if(!s)return!0}return!1},t.prototype.defaultUpdateAppearances=function(n){Qe(n,"font",[[ws,"PDFFont"]]),this.updateAppearances(n)},t.prototype.updateAppearances=function(n,r){Qe(n,"font",[[ws,"PDFFont"]]),Pt(r,"provider",[Function]);for(var i=this.acroField.getWidgets(),a=0,o=i.length;a<o;a++){var s=i[a];this.updateWidgetAppearance(s,n,r)}this.markAsClean()},t.prototype.updateWidgetAppearance=function(n,r,i){var a=i??oFe,o=Rg(a(this,n,r));this.updateWidgetAppearanceWithFont(n,r,o)},t.of=function(n,r,i){return new t(n,r,i)},t})(ch),Ym=(function(e){Mt(t,e);function t(n,r,i){var a=e.call(this,n,r,i)||this;return Qe(n,"acroRadioButton",[[g2,"PDFAcroRadioButton"]]),a.acroField=n,a}return t.prototype.getOptions=function(){var n=this.acroField.getExportValues();if(n){for(var r=new Array(n.length),i=0,a=n.length;i<a;i++)r[i]=n[i].decodeText();return r}for(var o=this.acroField.getOnValues(),s=new Array(o.length),i=0,a=s.length;i<a;i++)s[i]=o[i].decodeText();return s},t.prototype.getSelected=function(){var n=this.acroField.getValue();if(n!==je.of("Off")){var r=this.acroField.getExportValues();if(r){for(var i=this.acroField.getOnValues(),a=0,o=i.length;a<o;a++)if(i[a]===n)return r[a].decodeText()}return n.decodeText()}},t.prototype.select=function(n){Qe(n,"option",["string"]);var r=this.getOptions();Vu(n,"option",r),this.markAsDirty();var i=this.acroField.getOnValues(),a=this.acroField.getExportValues();if(a)for(var o=0,s=a.length;o<s;o++)a[o].decodeText()===n&&this.acroField.setValue(i[o]);else for(var o=0,s=i.length;o<s;o++){var l=i[o];l.decodeText()===n&&this.acroField.setValue(l)}},t.prototype.clear=function(){this.markAsDirty(),this.acroField.setValue(je.of("Off"))},t.prototype.isOffToggleable=function(){return!this.acroField.hasFlag(qs.NoToggleToOff)},t.prototype.enableOffToggling=function(){this.acroField.setFlagTo(qs.NoToggleToOff,!1)},t.prototype.disableOffToggling=function(){this.acroField.setFlagTo(qs.NoToggleToOff,!0)},t.prototype.isMutuallyExclusive=function(){return!this.acroField.hasFlag(qs.RadiosInUnison)},t.prototype.enableMutualExclusion=function(){this.acroField.setFlagTo(qs.RadiosInUnison,!1)},t.prototype.disableMutualExclusion=function(){this.acroField.setFlagTo(qs.RadiosInUnison,!0)},t.prototype.addOptionToPage=function(n,r,i){var a,o,s,l,c,u,d,h,f;Qe(n,"option",["string"]),Qe(r,"page",[[Hs,"PDFPage"]]),Pg(i);var g=this.createWidget({x:(a=i==null?void 0:i.x)!==null&&a!==void 0?a:0,y:(o=i==null?void 0:i.y)!==null&&o!==void 0?o:0,width:(s=i==null?void 0:i.width)!==null&&s!==void 0?s:50,height:(l=i==null?void 0:i.height)!==null&&l!==void 0?l:50,textColor:(c=i==null?void 0:i.textColor)!==null&&c!==void 0?c:hi(0,0,0),backgroundColor:(u=i==null?void 0:i.backgroundColor)!==null&&u!==void 0?u:hi(1,1,1),borderColor:(d=i==null?void 0:i.borderColor)!==null&&d!==void 0?d:hi(0,0,0),borderWidth:(h=i==null?void 0:i.borderWidth)!==null&&h!==void 0?h:1,rotate:(f=i==null?void 0:i.rotate)!==null&&f!==void 0?f:Kn(0),hidden:i==null?void 0:i.hidden,page:r.ref}),y=this.doc.context.register(g.dict),v=this.acroField.addWidgetWithOpt(y,qn.fromText(n),!this.isMutuallyExclusive());g.setAppearanceState(je.of("Off")),this.updateWidgetAppearance(g,v),r.node.addAnnot(y)},t.prototype.needsAppearancesUpdate=function(){for(var n,r=this.acroField.getWidgets(),i=0,a=r.length;i<a;i++){var o=r[i],s=o.getAppearanceState(),l=(n=o.getAppearances())===null||n===void 0?void 0:n.normal;if(!(l instanceof gr)||s&&!l.has(s))return!0}return!1},t.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},t.prototype.updateAppearances=function(n){Pt(n,"provider",[Function]);for(var r=this.acroField.getWidgets(),i=0,a=r.length;i<a;i++){var o=r[i],s=o.getOnValue();s&&this.updateWidgetAppearance(o,s,n)}},t.prototype.updateWidgetAppearance=function(n,r,i){var a=i??nFe,o=Rg(a(this,n));this.updateOnOffWidgetAppearance(n,r,o)},t.of=function(n,r,i){return new t(n,r,i)},t})(ch),q_=(function(e){Mt(t,e);function t(n,r,i){var a=e.call(this,n,r,i)||this;return Qe(n,"acroSignature",[[qF,"PDFAcroSignature"]]),a.acroField=n,a}return t.prototype.needsAppearancesUpdate=function(){return!1},t.of=function(n,r,i){return new t(n,r,i)},t})(ch),r1=(function(e){Mt(t,e);function t(n,r,i){var a=e.call(this,n,r,i)||this;return Qe(n,"acroText",[[h2,"PDFAcroText"]]),a.acroField=n,a}return t.prototype.getText=function(){var n=this.acroField.getValue();if(!n&&this.isRichFormatted())throw new q3e(this.getName());return n==null?void 0:n.decodeText()},t.prototype.setText=function(n){Pt(n,"text",["string"]);var r=this.getMaxLength();if(r!==void 0&&n&&n.length>r)throw new X3e(n.length,r,this.getName());this.markAsDirty(),this.disableRichFormatting(),n?this.acroField.setValue(qn.fromText(n)):this.acroField.removeValue()},t.prototype.getAlignment=function(){var n=this.acroField.getQuadding();return n===0?Ea.Left:n===1?Ea.Center:n===2?Ea.Right:Ea.Left},t.prototype.setAlignment=function(n){Vu(n,"alignment",Ea),this.markAsDirty(),this.acroField.setQuadding(n)},t.prototype.getMaxLength=function(){return this.acroField.getMaxLength()},t.prototype.setMaxLength=function(n){if(Cl(n,"maxLength",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),n===void 0)this.acroField.removeMaxLength();else{var r=this.getText();if(r&&r.length>n)throw new Z3e(r.length,n,this.getName());this.acroField.setMaxLength(n)}},t.prototype.removeMaxLength=function(){this.markAsDirty(),this.acroField.removeMaxLength()},t.prototype.setImage=function(n){for(var r=this.getAlignment(),i=r===Ea.Center?Zu.Center:r===Ea.Right?Zu.Right:Zu.Left,a=this.acroField.getWidgets(),o=0,s=a.length;o<s;o++){var l=a[o],c=this.createImageAppearanceStream(l,n,i);this.updateWidgetAppearances(l,{normal:c})}this.markAsClean()},t.prototype.setFontSize=function(n){c2(n,"fontSize"),this.acroField.setFontSize(n),this.markAsDirty()},t.prototype.isMultiline=function(){return this.acroField.hasFlag(Qi.Multiline)},t.prototype.enableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(Qi.Multiline,!0)},t.prototype.disableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(Qi.Multiline,!1)},t.prototype.isPassword=function(){return this.acroField.hasFlag(Qi.Password)},t.prototype.enablePassword=function(){this.acroField.setFlagTo(Qi.Password,!0)},t.prototype.disablePassword=function(){this.acroField.setFlagTo(Qi.Password,!1)},t.prototype.isFileSelector=function(){return this.acroField.hasFlag(Qi.FileSelect)},t.prototype.enableFileSelection=function(){this.acroField.setFlagTo(Qi.FileSelect,!0)},t.prototype.disableFileSelection=function(){this.acroField.setFlagTo(Qi.FileSelect,!1)},t.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(Qi.DoNotSpellCheck)},t.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(Qi.DoNotSpellCheck,!1)},t.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(Qi.DoNotSpellCheck,!0)},t.prototype.isScrollable=function(){return!this.acroField.hasFlag(Qi.DoNotScroll)},t.prototype.enableScrolling=function(){this.acroField.setFlagTo(Qi.DoNotScroll,!1)},t.prototype.disableScrolling=function(){this.acroField.setFlagTo(Qi.DoNotScroll,!0)},t.prototype.isCombed=function(){return this.acroField.hasFlag(Qi.Comb)&&!this.isMultiline()&&!this.isPassword()&&!this.isFileSelector()&&this.getMaxLength()!==void 0},t.prototype.enableCombing=function(){if(this.getMaxLength()===void 0){var n="PDFTextFields must have a max length in order to be combed";console.warn(n)}this.markAsDirty(),this.disableMultiline(),this.disablePassword(),this.disableFileSelection(),this.acroField.setFlagTo(Qi.Comb,!0)},t.prototype.disableCombing=function(){this.markAsDirty(),this.acroField.setFlagTo(Qi.Comb,!1)},t.prototype.isRichFormatted=function(){return this.acroField.hasFlag(Qi.RichText)},t.prototype.enableRichFormatting=function(){this.acroField.setFlagTo(Qi.RichText,!0)},t.prototype.disableRichFormatting=function(){this.acroField.setFlagTo(Qi.RichText,!1)},t.prototype.addToPage=function(n,r){var i,a,o,s,l,c,u;Qe(n,"page",[[Hs,"PDFPage"]]),Pg(r),r||(r={}),"textColor"in r||(r.textColor=hi(0,0,0)),"backgroundColor"in r||(r.backgroundColor=hi(1,1,1)),"borderColor"in r||(r.borderColor=hi(0,0,0)),"borderWidth"in r||(r.borderWidth=1);var d=this.createWidget({x:(i=r.x)!==null&&i!==void 0?i:0,y:(a=r.y)!==null&&a!==void 0?a:0,width:(o=r.width)!==null&&o!==void 0?o:200,height:(s=r.height)!==null&&s!==void 0?s:50,textColor:r.textColor,backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:(l=r.borderWidth)!==null&&l!==void 0?l:0,rotate:(c=r.rotate)!==null&&c!==void 0?c:Kn(0),hidden:r.hidden,page:n.ref}),h=this.doc.context.register(d.dict);this.acroField.addWidget(h);var f=(u=r.font)!==null&&u!==void 0?u:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(d,f),n.node.addAnnot(h)},t.prototype.needsAppearancesUpdate=function(){var n;if(this.isDirty())return!0;for(var r=this.acroField.getWidgets(),i=0,a=r.length;i<a;i++){var o=r[i],s=((n=o.getAppearances())===null||n===void 0?void 0:n.normal)instanceof xs;if(!s)return!0}return!1},t.prototype.defaultUpdateAppearances=function(n){Qe(n,"font",[[ws,"PDFFont"]]),this.updateAppearances(n)},t.prototype.updateAppearances=function(n,r){Qe(n,"font",[[ws,"PDFFont"]]),Pt(r,"provider",[Function]);for(var i=this.acroField.getWidgets(),a=0,o=i.length;a<o;a++){var s=i[a];this.updateWidgetAppearance(s,n,r)}this.markAsClean()},t.prototype.updateWidgetAppearance=function(n,r,i){var a=i??iFe,o=Rg(a(this,n,r));this.updateWidgetAppearanceWithFont(n,r,o)},t.of=function(n,r,i){return new t(n,r,i)},t})(ch),gA;(function(e){e.Courier="Courier",e.CourierBold="Courier-Bold",e.CourierOblique="Courier-Oblique",e.CourierBoldOblique="Courier-BoldOblique",e.Helvetica="Helvetica",e.HelveticaBold="Helvetica-Bold",e.HelveticaOblique="Helvetica-Oblique",e.HelveticaBoldOblique="Helvetica-BoldOblique",e.TimesRoman="Times-Roman",e.TimesRomanBold="Times-Bold",e.TimesRomanItalic="Times-Italic",e.TimesRomanBoldItalic="Times-BoldItalic",e.Symbol="Symbol",e.ZapfDingbats="ZapfDingbats"})(gA||(gA={}));var sFe=(function(){function e(t,n){var r=this;this.embedDefaultFont=function(){return r.doc.embedStandardFont(gA.Helvetica)},Qe(t,"acroForm",[[cA,"PDFAcroForm"]]),Qe(n,"doc",[[Jc,"PDFDocument"]]),this.acroForm=t,this.doc=n,this.dirtyFields=new Set,this.defaultFontCache=Gc.populatedBy(this.embedDefaultFont)}return e.prototype.hasXFA=function(){return this.acroForm.dict.has(je.of("XFA"))},e.prototype.deleteXFA=function(){this.acroForm.dict.delete(je.of("XFA"))},e.prototype.getFields=function(){for(var t=this.acroForm.getAllFields(),n=[],r=0,i=t.length;r<i;r++){var a=t[r],o=a[0],s=a[1],l=lFe(o,s,this.doc);l&&n.push(l)}return n},e.prototype.getFieldMaybe=function(t){Qe(t,"name",["string"]);for(var n=this.getFields(),r=0,i=n.length;r<i;r++){var a=n[r];if(a.getName()===t)return a}},e.prototype.getField=function(t){Qe(t,"name",["string"]);var n=this.getFieldMaybe(t);if(n)return n;throw new V3e(t)},e.prototype.getButton=function(t){Qe(t,"name",["string"]);var n=this.getField(t);if(n instanceof i1)return n;throw new df(t,i1,n)},e.prototype.getCheckBox=function(t){Qe(t,"name",["string"]);var n=this.getField(t);if(n instanceof $m)return n;throw new df(t,$m,n)},e.prototype.getDropdown=function(t){Qe(t,"name",["string"]);var n=this.getField(t);if(n instanceof t1)return n;throw new df(t,t1,n)},e.prototype.getOptionList=function(t){Qe(t,"name",["string"]);var n=this.getField(t);if(n instanceof n1)return n;throw new df(t,n1,n)},e.prototype.getRadioGroup=function(t){Qe(t,"name",["string"]);var n=this.getField(t);if(n instanceof Ym)return n;throw new df(t,Ym,n)},e.prototype.getSignature=function(t){Qe(t,"name",["string"]);var n=this.getField(t);if(n instanceof q_)return n;throw new df(t,q_,n)},e.prototype.getTextField=function(t){Qe(t,"name",["string"]);var n=this.getField(t);if(n instanceof r1)return n;throw new df(t,r1,n)},e.prototype.createButton=function(t){Qe(t,"name",["string"]);var n=rp(t),r=this.findOrCreateNonTerminals(n.nonTerminal),i=p2.create(this.doc.context);return i.setPartialName(n.terminal),ip(r,[i,i.ref],n.terminal),i1.of(i,i.ref,this.doc)},e.prototype.createCheckBox=function(t){Qe(t,"name",["string"]);var n=rp(t),r=this.findOrCreateNonTerminals(n.nonTerminal),i=d2.create(this.doc.context);return i.setPartialName(n.terminal),ip(r,[i,i.ref],n.terminal),$m.of(i,i.ref,this.doc)},e.prototype.createDropdown=function(t){Qe(t,"name",["string"]);var n=rp(t),r=this.findOrCreateNonTerminals(n.nonTerminal),i=f2.create(this.doc.context);return i.setPartialName(n.terminal),ip(r,[i,i.ref],n.terminal),t1.of(i,i.ref,this.doc)},e.prototype.createOptionList=function(t){Qe(t,"name",["string"]);var n=rp(t),r=this.findOrCreateNonTerminals(n.nonTerminal),i=m2.create(this.doc.context);return i.setPartialName(n.terminal),ip(r,[i,i.ref],n.terminal),n1.of(i,i.ref,this.doc)},e.prototype.createRadioGroup=function(t){Qe(t,"name",["string"]);var n=rp(t),r=this.findOrCreateNonTerminals(n.nonTerminal),i=g2.create(this.doc.context);return i.setPartialName(n.terminal),ip(r,[i,i.ref],n.terminal),Ym.of(i,i.ref,this.doc)},e.prototype.createTextField=function(t){Qe(t,"name",["string"]);var n=rp(t),r=this.findOrCreateNonTerminals(n.nonTerminal),i=h2.create(this.doc.context);return i.setPartialName(n.terminal),ip(r,[i,i.ref],n.terminal),r1.of(i,i.ref,this.doc)},e.prototype.flatten=function(t){t===void 0&&(t={updateFieldAppearances:!0}),t.updateFieldAppearances&&this.updateFieldAppearances();for(var n=this.getFields(),r=0,i=n.length;r<i;r++){for(var a=n[r],o=a.acroField.getWidgets(),s=0,l=o.length;s<l;s++){var c=o[s],u=this.findWidgetPage(c),d=this.findWidgetAppearanceRef(a,c),h=u.node.newXObject("FlatWidget",d),f=c.getRectangle(),g=$r([Ra(),$s(f.x,f.y)],_d(lr(lr({},f),{rotation:0})),[QF(h),Pa()]).filter(Boolean);u.pushOperators.apply(u,g)}this.removeField(a)}},e.prototype.removeField=function(t){for(var n=t.acroField.getWidgets(),r=new Set,i=0,a=n.length;i<a;i++){var o=n[i],s=this.findWidgetAppearanceRef(t,o),l=this.findWidgetPage(o);r.add(l),l.node.removeAnnot(s)}r.forEach(function(f){return f.node.removeAnnot(t.ref)}),this.acroForm.removeField(t.acroField);for(var c=t.acroField.normalizedEntries().Kids,u=c.size(),d=0;d<u;d++){var h=c.get(d);h instanceof fi&&this.doc.context.delete(h)}this.doc.context.delete(t.ref)},e.prototype.updateFieldAppearances=function(t){Pt(t,"font",[[ws,"PDFFont"]]),t=t??this.getDefaultFont();for(var n=this.getFields(),r=0,i=n.length;r<i;r++){var a=n[r];a.needsAppearancesUpdate()&&a.defaultUpdateAppearances(t)}},e.prototype.markFieldAsDirty=function(t){Pt(t,"fieldRef",[[fi,"PDFRef"]]),this.dirtyFields.add(t)},e.prototype.markFieldAsClean=function(t){Pt(t,"fieldRef",[[fi,"PDFRef"]]),this.dirtyFields.delete(t)},e.prototype.fieldIsDirty=function(t){return Pt(t,"fieldRef",[[fi,"PDFRef"]]),this.dirtyFields.has(t)},e.prototype.getDefaultFont=function(){return this.defaultFontCache.access()},e.prototype.findWidgetPage=function(t){var n=t.P(),r=this.doc.getPages().find(function(a){return a.ref===n});if(r===void 0){var i=this.doc.context.getObjectRef(t.dict);if(i===void 0)throw new Error("Could not find PDFRef for PDFObject");if(r=this.doc.findPageForAnnotationRef(i),r===void 0)throw new Error("Could not find page for PDFRef "+i)}return r},e.prototype.findWidgetAppearanceRef=function(t,n){var r,i=n.getNormalAppearance();if(i instanceof gr&&(t instanceof $m||t instanceof Ym)){var a=t.acroField.getValue(),o=(r=i.get(a))!==null&&r!==void 0?r:i.get(je.of("Off"));o instanceof fi&&(i=o)}if(!(i instanceof fi)){var s=t.getName();throw new Error("Failed to extract appearance ref for: "+s)}return i},e.prototype.findOrCreateNonTerminals=function(t){for(var n=[this.acroForm],r=0,i=t.length;r<i;r++){var a=t[r];if(!a)throw new G3e(a);var o=n[0],s=n[1],l=this.findNonTerminal(a,o);if(l)n=l;else{var c=lA.create(this.doc.context);c.setPartialName(a),c.setParent(s);var u=this.doc.context.register(c.dict);o.addField(u),n=[c,u]}}return n},e.prototype.findNonTerminal=function(t,n){for(var r=n instanceof cA?this.acroForm.getFields():HF(n.Kids()),i=0,a=r.length;i<a;i++){var o=r[i],s=o[0],l=o[1];if(s.getPartialName()===t){if(s instanceof lA)return[s,l];throw new u$(t)}}},e.of=function(t,n){return new e(t,n)},e})(),lFe=function(e,t,n){if(e instanceof p2)return i1.of(e,t,n);if(e instanceof d2)return $m.of(e,t,n);if(e instanceof f2)return t1.of(e,t,n);if(e instanceof m2)return n1.of(e,t,n);if(e instanceof h2)return r1.of(e,t,n);if(e instanceof g2)return Ym.of(e,t,n);if(e instanceof qF)return q_.of(e,t,n)},rp=function(e){if(e.length===0)throw new Error("PDF field names must not be empty strings");for(var t=e.split("."),n=0,r=t.length;n<r;n++)if(t[n]==="")throw new Error('Periods in PDF field names must be separated by at least one character: "'+e+'"');return t.length===1?{nonTerminal:[],terminal:t[0]}:{nonTerminal:t.slice(0,t.length-1),terminal:t[t.length-1]}},ip=function(e,t,n){for(var r=e[0],i=e[1],a=t[0],o=t[1],s=r.normalizedEntries(),l=HF("Kids"in s?s.Kids:s.Fields),c=0,u=l.length;c<u;c++)if(l[c][0].getPartialName()===n)throw new u$(n);r.addField(o),a.setParent(i)},cFe={A4:[595.28,841.89]},H_;(function(e){e[e.Fastest=1/0]="Fastest",e[e.Fast=1500]="Fast",e[e.Medium=500]="Medium",e[e.Slow=100]="Slow"})(H_||(H_={}));var uFe=(function(){function e(t,n,r){this.alreadyEmbedded=!1,this.ref=t,this.doc=n,this.embedder=r}return e.prototype.embed=function(){return wr(this,void 0,void 0,function(){var t,n,r,i,a;return Sr(this,function(o){switch(o.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:t=o.sent(),this.doc.catalog.has(je.of("Names"))||this.doc.catalog.set(je.of("Names"),this.doc.context.obj({})),n=this.doc.catalog.lookup(je.of("Names"),gr),n.has(je.of("EmbeddedFiles"))||n.set(je.of("EmbeddedFiles"),this.doc.context.obj({})),r=n.lookup(je.of("EmbeddedFiles"),gr),r.has(je.of("Names"))||r.set(je.of("Names"),this.doc.context.obj([])),i=r.lookup(je.of("Names"),ii),i.push(qn.fromText(this.embedder.fileName)),i.push(t),this.doc.catalog.has(je.of("AF"))||this.doc.catalog.set(je.of("AF"),this.doc.context.obj([])),a=this.doc.catalog.lookup(je.of("AF"),ii),a.push(t),this.alreadyEmbedded=!0,o.label=2;case 2:return[2]}})})},e.of=function(t,n,r){return new e(t,n,r)},e})(),dFe=(function(){function e(t,n,r){this.alreadyEmbedded=!1,this.ref=t,this.doc=n,this.embedder=r}return e.prototype.embed=function(){return wr(this,void 0,void 0,function(){var t,n,r,i,a,o,s;return Sr(this,function(l){switch(l.label){case 0:return this.alreadyEmbedded?[3,2]:(t=this.doc,n=t.catalog,r=t.context,[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]);case 1:i=l.sent(),n.has(je.of("Names"))||n.set(je.of("Names"),r.obj({})),a=n.lookup(je.of("Names"),gr),a.has(je.of("JavaScript"))||a.set(je.of("JavaScript"),r.obj({})),o=a.lookup(je.of("JavaScript"),gr),o.has(je.of("Names"))||o.set(je.of("Names"),r.obj([])),s=o.lookup(je.of("Names"),ii),s.push(qn.fromText(this.embedder.scriptName)),s.push(i),this.alreadyEmbedded=!0,l.label=2;case 2:return[2]}})})},e.of=function(t,n,r){return new e(t,n,r)},e})(),fFe=(function(){function e(t,n){this.script=t,this.scriptName=n}return e.for=function(t,n){return new e(t,n)},e.prototype.embedIntoContext=function(t,n){return wr(this,void 0,void 0,function(){var r;return Sr(this,function(i){return r=t.obj({Type:"Action",S:"JavaScript",JS:qn.fromText(this.script)}),n?(t.assign(n,r),[2,n]):[2,t.register(r)]})})},e})(),Jc=(function(){function e(t,n,r){var i=this;if(this.defaultWordBreaks=[" "],this.computePages=function(){var a=[];return i.catalog.Pages().traverse(function(o,s){if(o instanceof qc){var l=i.pageMap.get(o);l||(l=Hs.of(o,s,i),i.pageMap.set(o,l)),a.push(l)}}),a},this.getOrCreateForm=function(){var a=i.catalog.getOrCreateAcroForm();return sFe.of(a,i)},Qe(t,"context",[[j_,"PDFContext"]]),Qe(n,"ignoreEncryption",["boolean"]),this.context=t,this.catalog=t.lookup(t.trailerInfo.Root),this.isEncrypted=!!t.lookup(t.trailerInfo.Encrypt),this.pageCache=Gc.populatedBy(this.computePages),this.pageMap=new Map,this.formCache=Gc.populatedBy(this.getOrCreateForm),this.fonts=[],this.images=[],this.embeddedPages=[],this.embeddedFiles=[],this.javaScripts=[],!n&&this.isEncrypted)throw new j3e;r&&this.updateInfoDict()}return e.load=function(t,n){return n===void 0&&(n={}),wr(this,void 0,void 0,function(){var r,i,a,o,s,l,c,u,d,h,f,g;return Sr(this,function(y){switch(y.label){case 0:return r=n.ignoreEncryption,i=r===void 0?!1:r,a=n.parseSpeed,o=a===void 0?H_.Slow:a,s=n.throwOnInvalidObject,l=s===void 0?!1:s,c=n.updateMetadata,u=c===void 0?!0:c,d=n.capNumbers,h=d===void 0?!1:d,Qe(t,"pdf",["string",Uint8Array,ArrayBuffer]),Qe(i,"ignoreEncryption",["boolean"]),Qe(o,"parseSpeed",["number"]),Qe(l,"throwOnInvalidObject",["boolean"]),f=Tm(t),[4,p3e.forBytesWithOptions(f,o,l,h).parseDocument()];case 1:return g=y.sent(),[2,new e(g,i,u)]}})})},e.create=function(t){return t===void 0&&(t={}),wr(this,void 0,void 0,function(){var n,r,i,a,o,s;return Sr(this,function(l){return n=t.updateMetadata,r=n===void 0?!0:n,i=j_.create(),a=HK.withContext(i),o=i.register(a),s=qK.withContextAndPages(i,o),i.trailerInfo.Root=i.register(s),[2,new e(i,!1,r)]})})},e.prototype.registerFontkit=function(t){this.fontkit=t},e.prototype.getForm=function(){var t=this.formCache.access();return t.hasXFA()&&(console.warn("Removing XFA form data as pdf-lib does not support reading or writing XFA"),t.deleteXFA()),t},e.prototype.getTitle=function(){var t=this.getInfoDict().lookup(je.Title);if(t)return Tu(t),t.decodeText()},e.prototype.getAuthor=function(){var t=this.getInfoDict().lookup(je.Author);if(t)return Tu(t),t.decodeText()},e.prototype.getSubject=function(){var t=this.getInfoDict().lookup(je.Subject);if(t)return Tu(t),t.decodeText()},e.prototype.getKeywords=function(){var t=this.getInfoDict().lookup(je.Keywords);if(t)return Tu(t),t.decodeText()},e.prototype.getCreator=function(){var t=this.getInfoDict().lookup(je.Creator);if(t)return Tu(t),t.decodeText()},e.prototype.getProducer=function(){var t=this.getInfoDict().lookup(je.Producer);if(t)return Tu(t),t.decodeText()},e.prototype.getCreationDate=function(){var t=this.getInfoDict().lookup(je.CreationDate);if(t)return Tu(t),t.decodeDate()},e.prototype.getModificationDate=function(){var t=this.getInfoDict().lookup(je.ModDate);if(t)return Tu(t),t.decodeDate()},e.prototype.setTitle=function(t,n){Qe(t,"title",["string"]);var r=je.of("Title");if(this.getInfoDict().set(r,qn.fromText(t)),n!=null&&n.showInWindowTitleBar){var i=this.catalog.getOrCreateViewerPreferences();i.setDisplayDocTitle(!0)}},e.prototype.setAuthor=function(t){Qe(t,"author",["string"]);var n=je.of("Author");this.getInfoDict().set(n,qn.fromText(t))},e.prototype.setSubject=function(t){Qe(t,"author",["string"]);var n=je.of("Subject");this.getInfoDict().set(n,qn.fromText(t))},e.prototype.setKeywords=function(t){Qe(t,"keywords",[Array]);var n=je.of("Keywords");this.getInfoDict().set(n,qn.fromText(t.join(" ")))},e.prototype.setCreator=function(t){Qe(t,"creator",["string"]);var n=je.of("Creator");this.getInfoDict().set(n,qn.fromText(t))},e.prototype.setProducer=function(t){Qe(t,"creator",["string"]);var n=je.of("Producer");this.getInfoDict().set(n,qn.fromText(t))},e.prototype.setLanguage=function(t){Qe(t,"language",["string"]);var n=je.of("Lang");this.catalog.set(n,di.of(t))},e.prototype.setCreationDate=function(t){Qe(t,"creationDate",[[Date,"Date"]]);var n=je.of("CreationDate");this.getInfoDict().set(n,di.fromDate(t))},e.prototype.setModificationDate=function(t){Qe(t,"modificationDate",[[Date,"Date"]]);var n=je.of("ModDate");this.getInfoDict().set(n,di.fromDate(t))},e.prototype.getPageCount=function(){return this.pageCount===void 0&&(this.pageCount=this.getPages().length),this.pageCount},e.prototype.getPages=function(){return this.pageCache.access()},e.prototype.getPage=function(t){var n=this.getPages();return gs(t,"index",0,n.length-1),n[t]},e.prototype.getPageIndices=function(){return X_e(0,this.getPageCount())},e.prototype.removePage=function(t){var n=this.getPageCount();if(this.pageCount===0)throw new W3e;gs(t,"index",0,n-1),this.catalog.removeLeafNode(t),this.pageCount=n-1},e.prototype.addPage=function(t){return Qe(t,"page",["undefined",[Hs,"PDFPage"],Array]),this.insertPage(this.getPageCount(),t)},e.prototype.insertPage=function(t,n){var r=this.getPageCount();if(gs(t,"index",0,r),Qe(n,"page",["undefined",[Hs,"PDFPage"],Array]),!n||Array.isArray(n)){var i=Array.isArray(n)?n:cFe.A4;n=Hs.create(this),n.setSize.apply(n,i)}else if(n.doc!==this)throw new z3e;var a=this.catalog.insertLeafNode(n.ref,t);return n.node.setParent(a),this.pageMap.set(n.node,n),this.pageCache.invalidate(),this.pageCount=r+1,n},e.prototype.copyPages=function(t,n){return wr(this,void 0,void 0,function(){var r,i,a,o,s,l,c,u;return Sr(this,function(d){switch(d.label){case 0:return Qe(t,"srcDoc",[[e,"PDFDocument"]]),Qe(n,"indices",[Array]),[4,t.flush()];case 1:for(d.sent(),r=NO.for(t.context,this.context),i=t.getPages(),a=new Array(n.length),o=0,s=n.length;o<s;o++)l=i[n[o]],c=r.copy(l.node),u=this.context.register(c),a[o]=Hs.of(c,u,this);return[2,a]}})})},e.prototype.copy=function(){return wr(this,void 0,void 0,function(){var t,n,r,i;return Sr(this,function(a){switch(a.label){case 0:return[4,e.create()];case 1:return t=a.sent(),[4,t.copyPages(this,this.getPageIndices())];case 2:for(n=a.sent(),r=0,i=n.length;r<i;r++)t.addPage(n[r]);return this.getAuthor()!==void 0&&t.setAuthor(this.getAuthor()),this.getCreationDate()!==void 0&&t.setCreationDate(this.getCreationDate()),this.getCreator()!==void 0&&t.setCreator(this.getCreator()),this.getModificationDate()!==void 0&&t.setModificationDate(this.getModificationDate()),this.getProducer()!==void 0&&t.setProducer(this.getProducer()),this.getSubject()!==void 0&&t.setSubject(this.getSubject()),this.getTitle()!==void 0&&t.setTitle(this.getTitle()),t.defaultWordBreaks=this.defaultWordBreaks,[2,t]}})})},e.prototype.addJavaScript=function(t,n){Qe(t,"name",["string"]),Qe(n,"script",["string"]);var r=fFe.for(n,t),i=this.context.nextRef(),a=dFe.of(i,this,r);this.javaScripts.push(a)},e.prototype.attach=function(t,n,r){return r===void 0&&(r={}),wr(this,void 0,void 0,function(){var i,a,o,s;return Sr(this,function(l){return Qe(t,"attachment",["string",Uint8Array,ArrayBuffer]),Qe(n,"name",["string"]),Pt(r.mimeType,"mimeType",["string"]),Pt(r.description,"description",["string"]),Pt(r.creationDate,"options.creationDate",[Date]),Pt(r.modificationDate,"options.modificationDate",[Date]),zs(r.afRelationship,"options.afRelationship",B_),i=Tm(t),a=ENe.for(i,n,r),o=this.context.nextRef(),s=uFe.of(o,this,a),this.embeddedFiles.push(s),[2]})})},e.prototype.embedFont=function(t,n){return n===void 0&&(n={}),wr(this,void 0,void 0,function(){var r,i,a,o,s,l,c,u,d,h;return Sr(this,function(f){switch(f.label){case 0:return r=n.subset,i=r===void 0?!1:r,a=n.customName,o=n.features,Qe(t,"font",["string",Uint8Array,ArrayBuffer]),Qe(i,"subset",["boolean"]),aO(t)?(s=oA.for(t,a),[3,7]):[3,1];case 1:return K_e(t)?(l=Tm(t),c=this.assertFontkit(),i?[4,_Ne.for(c,l,a,o)]:[3,3]):[3,6];case 2:return u=f.sent(),[3,5];case 3:return[4,WF.for(c,l,a,o)];case 4:u=f.sent(),f.label=5;case 5:return s=u,[3,7];case 6:throw new TypeError("`font` must be one of `StandardFonts | string | Uint8Array | ArrayBuffer`");case 7:return d=this.context.nextRef(),h=ws.of(d,this,s),this.fonts.push(h),[2,h]}})})},e.prototype.embedStandardFont=function(t,n){if(Qe(t,"font",["string"]),!aO(t))throw new TypeError("`font` must be one of type `StandardFonts`");var r=oA.for(t,n),i=this.context.nextRef(),a=ws.of(i,this,r);return this.fonts.push(a),a},e.prototype.embedJpg=function(t){return wr(this,void 0,void 0,function(){var n,r,i,a;return Sr(this,function(o){switch(o.label){case 0:return Qe(t,"jpg",["string",Uint8Array,ArrayBuffer]),n=Tm(t),[4,FK.for(n)];case 1:return r=o.sent(),i=this.context.nextRef(),a=G_.of(i,this,r),this.images.push(a),[2,a]}})})},e.prototype.embedPng=function(t){return wr(this,void 0,void 0,function(){var n,r,i,a;return Sr(this,function(o){switch(o.label){case 0:return Qe(t,"png",["string",Uint8Array,ArrayBuffer]),n=Tm(t),[4,LK.for(n)];case 1:return r=o.sent(),i=this.context.nextRef(),a=G_.of(i,this,r),this.images.push(a),[2,a]}})})},e.prototype.embedPdf=function(t,n){return n===void 0&&(n=[0]),wr(this,void 0,void 0,function(){var r,i,a;return Sr(this,function(o){switch(o.label){case 0:return Qe(t,"pdf",["string",Uint8Array,ArrayBuffer,[e,"PDFDocument"]]),Qe(n,"indices",[Array]),t instanceof e?(i=t,[3,3]):[3,1];case 1:return[4,e.load(t)];case 2:i=o.sent(),o.label=3;case 3:return r=i,a=Z_e(r.getPages(),n),[2,this.embedPages(a)]}})})},e.prototype.embedPage=function(t,n,r){return wr(this,void 0,void 0,function(){var i;return Sr(this,function(a){switch(a.label){case 0:return Qe(t,"page",[[Hs,"PDFPage"]]),[4,this.embedPages([t],[n],[r])];case 1:return i=a.sent()[0],[2,i]}})})},e.prototype.embedPages=function(t,n,r){return n===void 0&&(n=[]),r===void 0&&(r=[]),wr(this,void 0,void 0,function(){var c,u,i,a,o,s,l,c,u,d,h,f,g,y,v;return Sr(this,function(A){switch(A.label){case 0:if(t.length===0)return[2,[]];for(c=0,u=t.length-1;c<u;c++)if(i=t[c],a=t[c+1],i.node.context!==a.node.context)throw new qEe;o=t[0].node.context,s=o===this.context?function(w){return w}:NO.for(o,this.context).copy,l=new Array(t.length),c=0,u=t.length,A.label=1;case 1:return c<u?(d=s(t[c].node),h=n[c],f=r[c],[4,BK.for(d,h,f)]):[3,4];case 2:g=A.sent(),y=this.context.nextRef(),l[c]=g$.of(y,this,g),A.label=3;case 3:return c++,[3,1];case 4:return(v=this.embeddedPages).push.apply(v,l),[2,l]}})})},e.prototype.flush=function(){return wr(this,void 0,void 0,function(){return Sr(this,function(t){switch(t.label){case 0:return[4,this.embedAll(this.fonts)];case 1:return t.sent(),[4,this.embedAll(this.images)];case 2:return t.sent(),[4,this.embedAll(this.embeddedPages)];case 3:return t.sent(),[4,this.embedAll(this.embeddedFiles)];case 4:return t.sent(),[4,this.embedAll(this.javaScripts)];case 5:return t.sent(),[2]}})})},e.prototype.save=function(t){return t===void 0&&(t={}),wr(this,void 0,void 0,function(){var n,r,i,a,o,s,l,c,u,d;return Sr(this,function(h){switch(h.label){case 0:return n=t.useObjectStreams,r=n===void 0?!0:n,i=t.addDefaultPage,a=i===void 0?!0:i,o=t.objectsPerTick,s=o===void 0?50:o,l=t.updateFieldAppearances,c=l===void 0?!0:l,Qe(r,"useObjectStreams",["boolean"]),Qe(a,"addDefaultPage",["boolean"]),Qe(s,"objectsPerTick",["number"]),Qe(c,"updateFieldAppearances",["boolean"]),a&&this.getPageCount()===0&&this.addPage(),c&&(u=this.formCache.getValue(),u&&u.updateFieldAppearances()),[4,this.flush()];case 1:return h.sent(),d=r?wNe:EK,[2,d.forContext(this.context,s).serializeToBuffer()]}})})},e.prototype.saveAsBase64=function(t){return t===void 0&&(t={}),wr(this,void 0,void 0,function(){var n,r,i,a,o;return Sr(this,function(s){switch(s.label){case 0:return n=t.dataUri,r=n===void 0?!1:n,i=N_e(t,["dataUri"]),Qe(r,"dataUri",["boolean"]),[4,this.save(i)];case 1:return a=s.sent(),o=F_e(a),[2,r?"data:application/pdf;base64,"+o:o]}})})},e.prototype.findPageForAnnotationRef=function(t){for(var n=this.getPages(),r=0,i=n.length;r<i;r++){var a=n[r],o=a.node.Annots();if((o==null?void 0:o.indexOf(t))!==void 0)return a}},e.prototype.embedAll=function(t){return wr(this,void 0,void 0,function(){var n,r;return Sr(this,function(i){switch(i.label){case 0:n=0,r=t.length,i.label=1;case 1:return n<r?[4,t[n].embed()]:[3,4];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},e.prototype.updateInfoDict=function(){var t="pdf-lib (https://github.com/Hopding/pdf-lib)",n=new Date,r=this.getInfoDict();this.setProducer(t),this.setModificationDate(n),r.get(je.of("Creator"))||this.setCreator(t),r.get(je.of("CreationDate"))||this.setCreationDate(n)},e.prototype.getInfoDict=function(){var t=this.context.lookup(this.context.trailerInfo.Info);if(t instanceof gr)return t;var n=this.context.obj({});return this.context.trailerInfo.Info=this.context.register(n),n},e.prototype.assertFontkit=function(){if(!this.fontkit)throw new B3e;return this.fontkit},e})();function Tu(e){if(!(e instanceof qn)&&!(e instanceof di))throw new iA([qn,di],e)}var Rc;(function(e){e.Normal="Normal",e.Multiply="Multiply",e.Screen="Screen",e.Overlay="Overlay",e.Darken="Darken",e.Lighten="Lighten",e.ColorDodge="ColorDodge",e.ColorBurn="ColorBurn",e.HardLight="HardLight",e.SoftLight="SoftLight",e.Difference="Difference",e.Exclusion="Exclusion"})(Rc||(Rc={}));var Hs=(function(){function e(t,n,r){this.fontSize=24,this.fontColor=hi(0,0,0),this.lineHeight=24,this.x=0,this.y=0,Qe(t,"leafNode",[[qc,"PDFPageLeaf"]]),Qe(n,"ref",[[fi,"PDFRef"]]),Qe(r,"doc",[[Jc,"PDFDocument"]]),this.node=t,this.ref=n,this.doc=r}return e.prototype.setRotation=function(t){var n=YK(t);vK(n,"degreesAngle",90),this.node.set(je.of("Rotate"),this.doc.context.obj(n))},e.prototype.getRotation=function(){var t=this.node.Rotate();return Kn(t?t.asNumber():0)},e.prototype.setSize=function(t,n){Qe(t,"width",["number"]),Qe(n,"height",["number"]);var r=this.getMediaBox();this.setMediaBox(r.x,r.y,t,n);var i=this.getCropBox(),a=this.getBleedBox(),o=this.getTrimBox(),s=this.getArtBox(),l=this.node.CropBox(),c=this.node.BleedBox(),u=this.node.TrimBox(),d=this.node.ArtBox();l&&qx(i,r)&&this.setCropBox(r.x,r.y,t,n),c&&qx(a,r)&&this.setBleedBox(r.x,r.y,t,n),u&&qx(o,r)&&this.setTrimBox(r.x,r.y,t,n),d&&qx(s,r)&&this.setArtBox(r.x,r.y,t,n)},e.prototype.setWidth=function(t){Qe(t,"width",["number"]),this.setSize(t,this.getSize().height)},e.prototype.setHeight=function(t){Qe(t,"height",["number"]),this.setSize(this.getSize().width,t)},e.prototype.setMediaBox=function(t,n,r,i){Qe(t,"x",["number"]),Qe(n,"y",["number"]),Qe(r,"width",["number"]),Qe(i,"height",["number"]);var a=this.doc.context.obj([t,n,t+r,n+i]);this.node.set(je.MediaBox,a)},e.prototype.setCropBox=function(t,n,r,i){Qe(t,"x",["number"]),Qe(n,"y",["number"]),Qe(r,"width",["number"]),Qe(i,"height",["number"]);var a=this.doc.context.obj([t,n,t+r,n+i]);this.node.set(je.CropBox,a)},e.prototype.setBleedBox=function(t,n,r,i){Qe(t,"x",["number"]),Qe(n,"y",["number"]),Qe(r,"width",["number"]),Qe(i,"height",["number"]);var a=this.doc.context.obj([t,n,t+r,n+i]);this.node.set(je.BleedBox,a)},e.prototype.setTrimBox=function(t,n,r,i){Qe(t,"x",["number"]),Qe(n,"y",["number"]),Qe(r,"width",["number"]),Qe(i,"height",["number"]);var a=this.doc.context.obj([t,n,t+r,n+i]);this.node.set(je.TrimBox,a)},e.prototype.setArtBox=function(t,n,r,i){Qe(t,"x",["number"]),Qe(n,"y",["number"]),Qe(r,"width",["number"]),Qe(i,"height",["number"]);var a=this.doc.context.obj([t,n,t+r,n+i]);this.node.set(je.ArtBox,a)},e.prototype.getSize=function(){var t=this.getMediaBox(),n=t.width,r=t.height;return{width:n,height:r}},e.prototype.getWidth=function(){return this.getSize().width},e.prototype.getHeight=function(){return this.getSize().height},e.prototype.getMediaBox=function(){var t=this.node.MediaBox();return t.asRectangle()},e.prototype.getCropBox=function(){var t,n=this.node.CropBox();return(t=n==null?void 0:n.asRectangle())!==null&&t!==void 0?t:this.getMediaBox()},e.prototype.getBleedBox=function(){var t,n=this.node.BleedBox();return(t=n==null?void 0:n.asRectangle())!==null&&t!==void 0?t:this.getCropBox()},e.prototype.getTrimBox=function(){var t,n=this.node.TrimBox();return(t=n==null?void 0:n.asRectangle())!==null&&t!==void 0?t:this.getCropBox()},e.prototype.getArtBox=function(){var t,n=this.node.ArtBox();return(t=n==null?void 0:n.asRectangle())!==null&&t!==void 0?t:this.getCropBox()},e.prototype.translateContent=function(t,n){Qe(t,"x",["number"]),Qe(n,"y",["number"]),this.node.normalize(),this.getContentStream();var r=this.createContentStream(Ra(),$s(t,n)),i=this.doc.context.register(r),a=this.createContentStream(Pa()),o=this.doc.context.register(a);this.node.wrapContentStreams(i,o)},e.prototype.scale=function(t,n){Qe(t,"x",["number"]),Qe(n,"y",["number"]),this.setSize(this.getWidth()*t,this.getHeight()*n),this.scaleContent(t,n),this.scaleAnnotations(t,n)},e.prototype.scaleContent=function(t,n){Qe(t,"x",["number"]),Qe(n,"y",["number"]),this.node.normalize(),this.getContentStream();var r=this.createContentStream(Ra(),iy(t,n)),i=this.doc.context.register(r),a=this.createContentStream(Pa()),o=this.doc.context.register(a);this.node.wrapContentStreams(i,o)},e.prototype.scaleAnnotations=function(t,n){Qe(t,"x",["number"]),Qe(n,"y",["number"]);var r=this.node.Annots();if(r)for(var i=0;i<r.size();i++){var a=r.lookup(i);a instanceof gr&&this.scaleAnnot(a,t,n)}},e.prototype.resetPosition=function(){this.getContentStream(!1),this.x=0,this.y=0},e.prototype.setFont=function(t){Qe(t,"font",[[ws,"PDFFont"]]),this.font=t,this.fontKey=this.node.newFontDictionary(this.font.name,this.font.ref)},e.prototype.setFontSize=function(t){Qe(t,"fontSize",["number"]),this.fontSize=t},e.prototype.setFontColor=function(t){Qe(t,"fontColor",[[Object,"Color"]]),this.fontColor=t},e.prototype.setLineHeight=function(t){Qe(t,"lineHeight",["number"]),this.lineHeight=t},e.prototype.getPosition=function(){return{x:this.x,y:this.y}},e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e.prototype.moveTo=function(t,n){Qe(t,"x",["number"]),Qe(n,"y",["number"]),this.x=t,this.y=n},e.prototype.moveDown=function(t){Qe(t,"yDecrease",["number"]),this.y-=t},e.prototype.moveUp=function(t){Qe(t,"yIncrease",["number"]),this.y+=t},e.prototype.moveLeft=function(t){Qe(t,"xDecrease",["number"]),this.x-=t},e.prototype.moveRight=function(t){Qe(t,"xIncrease",["number"]),this.x+=t},e.prototype.pushOperators=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];yK(t,"operator",[[Xr,"PDFOperator"]]);var r=this.getContentStream();r.push.apply(r,t)},e.prototype.drawText=function(t,n){var r,i,a,o,s,l,c;n===void 0&&(n={}),Qe(t,"text",["string"]),Pt(n.color,"options.color",[[Object,"Color"]]),Cl(n.opacity,"opacity.opacity",0,1),Pt(n.font,"options.font",[[ws,"PDFFont"]]),Pt(n.size,"options.size",["number"]),Pt(n.rotate,"options.rotate",[[Object,"Rotation"]]),Pt(n.xSkew,"options.xSkew",[[Object,"Rotation"]]),Pt(n.ySkew,"options.ySkew",[[Object,"Rotation"]]),Pt(n.x,"options.x",["number"]),Pt(n.y,"options.y",["number"]),Pt(n.lineHeight,"options.lineHeight",["number"]),Pt(n.maxWidth,"options.maxWidth",["number"]),Pt(n.wordBreaks,"options.wordBreaks",[Array]),zs(n.blendMode,"options.blendMode",Rc);for(var u=this.setOrEmbedFont(n.font),d=u.oldFont,h=u.newFont,f=u.newFontKey,g=n.size||this.fontSize,y=n.wordBreaks||this.doc.defaultWordBreaks,v=function(D){return h.widthOfTextAtSize(D,g)},A=n.maxWidth===void 0?eK(Py(t)):B_e(t,y,n.maxWidth,v),w=new Array(A.length),S=0,_=A.length;S<_;S++)w[S]=h.encodeText(A[S]);var E=this.maybeEmbedGraphicsState({opacity:n.opacity,blendMode:n.blendMode}),T=this.getContentStream();T.push.apply(T,F3e(w,{color:(r=n.color)!==null&&r!==void 0?r:this.fontColor,font:f,size:g,rotate:(i=n.rotate)!==null&&i!==void 0?i:Kn(0),xSkew:(a=n.xSkew)!==null&&a!==void 0?a:Kn(0),ySkew:(o=n.ySkew)!==null&&o!==void 0?o:Kn(0),x:(s=n.x)!==null&&s!==void 0?s:this.x,y:(l=n.y)!==null&&l!==void 0?l:this.y,lineHeight:(c=n.lineHeight)!==null&&c!==void 0?c:this.lineHeight,graphicsState:E})),n.font&&(d?this.setFont(d):this.resetFont())},e.prototype.drawImage=function(t,n){var r,i,a,o,s,l,c;n===void 0&&(n={}),Qe(t,"image",[[G_,"PDFImage"]]),Pt(n.x,"options.x",["number"]),Pt(n.y,"options.y",["number"]),Pt(n.width,"options.width",["number"]),Pt(n.height,"options.height",["number"]),Pt(n.rotate,"options.rotate",[[Object,"Rotation"]]),Pt(n.xSkew,"options.xSkew",[[Object,"Rotation"]]),Pt(n.ySkew,"options.ySkew",[[Object,"Rotation"]]),Cl(n.opacity,"opacity.opacity",0,1),zs(n.blendMode,"options.blendMode",Rc);var u=this.node.newXObject("Image",t.ref),d=this.maybeEmbedGraphicsState({opacity:n.opacity,blendMode:n.blendMode}),h=this.getContentStream();h.push.apply(h,l$(u,{x:(r=n.x)!==null&&r!==void 0?r:this.x,y:(i=n.y)!==null&&i!==void 0?i:this.y,width:(a=n.width)!==null&&a!==void 0?a:t.size().width,height:(o=n.height)!==null&&o!==void 0?o:t.size().height,rotate:(s=n.rotate)!==null&&s!==void 0?s:Kn(0),xSkew:(l=n.xSkew)!==null&&l!==void 0?l:Kn(0),ySkew:(c=n.ySkew)!==null&&c!==void 0?c:Kn(0),graphicsState:d}))},e.prototype.drawPage=function(t,n){var r,i,a,o,s;n===void 0&&(n={}),Qe(t,"embeddedPage",[[g$,"PDFEmbeddedPage"]]),Pt(n.x,"options.x",["number"]),Pt(n.y,"options.y",["number"]),Pt(n.xScale,"options.xScale",["number"]),Pt(n.yScale,"options.yScale",["number"]),Pt(n.width,"options.width",["number"]),Pt(n.height,"options.height",["number"]),Pt(n.rotate,"options.rotate",[[Object,"Rotation"]]),Pt(n.xSkew,"options.xSkew",[[Object,"Rotation"]]),Pt(n.ySkew,"options.ySkew",[[Object,"Rotation"]]),Cl(n.opacity,"opacity.opacity",0,1),zs(n.blendMode,"options.blendMode",Rc);var l=this.node.newXObject("EmbeddedPdfPage",t.ref),c=this.maybeEmbedGraphicsState({opacity:n.opacity,blendMode:n.blendMode}),u=n.width!==void 0?n.width/t.width:n.xScale!==void 0?n.xScale:1,d=n.height!==void 0?n.height/t.height:n.yScale!==void 0?n.yScale:1,h=this.getContentStream();h.push.apply(h,R3e(l,{x:(r=n.x)!==null&&r!==void 0?r:this.x,y:(i=n.y)!==null&&i!==void 0?i:this.y,xScale:u,yScale:d,rotate:(a=n.rotate)!==null&&a!==void 0?a:Kn(0),xSkew:(o=n.xSkew)!==null&&o!==void 0?o:Kn(0),ySkew:(s=n.ySkew)!==null&&s!==void 0?s:Kn(0),graphicsState:c}))},e.prototype.drawSvgPath=function(t,n){var r,i,a,o,s,l,c,u,d;n===void 0&&(n={}),Qe(t,"path",["string"]),Pt(n.x,"options.x",["number"]),Pt(n.y,"options.y",["number"]),Pt(n.scale,"options.scale",["number"]),Pt(n.rotate,"options.rotate",[[Object,"Rotation"]]),Pt(n.borderWidth,"options.borderWidth",["number"]),Pt(n.color,"options.color",[[Object,"Color"]]),Cl(n.opacity,"opacity.opacity",0,1),Pt(n.borderColor,"options.borderColor",[[Object,"Color"]]),Pt(n.borderDashArray,"options.borderDashArray",[Array]),Pt(n.borderDashPhase,"options.borderDashPhase",["number"]),zs(n.borderLineCap,"options.borderLineCap",Ep),Cl(n.borderOpacity,"options.borderOpacity",0,1),zs(n.blendMode,"options.blendMode",Rc);var h=this.maybeEmbedGraphicsState({opacity:n.opacity,borderOpacity:n.borderOpacity,blendMode:n.blendMode});!("color"in n)&&!("borderColor"in n)&&(n.borderColor=hi(0,0,0));var f=this.getContentStream();f.push.apply(f,U3e(t,{x:(r=n.x)!==null&&r!==void 0?r:this.x,y:(i=n.y)!==null&&i!==void 0?i:this.y,scale:n.scale,rotate:(a=n.rotate)!==null&&a!==void 0?a:Kn(0),color:(o=n.color)!==null&&o!==void 0?o:void 0,borderColor:(s=n.borderColor)!==null&&s!==void 0?s:void 0,borderWidth:(l=n.borderWidth)!==null&&l!==void 0?l:0,borderDashArray:(c=n.borderDashArray)!==null&&c!==void 0?c:void 0,borderDashPhase:(u=n.borderDashPhase)!==null&&u!==void 0?u:void 0,borderLineCap:(d=n.borderLineCap)!==null&&d!==void 0?d:void 0,graphicsState:h}))},e.prototype.drawLine=function(t){var n,r,i,a,o;Qe(t.start,"options.start",[[Object,"{ x: number, y: number }"]]),Qe(t.end,"options.end",[[Object,"{ x: number, y: number }"]]),Qe(t.start.x,"options.start.x",["number"]),Qe(t.start.y,"options.start.y",["number"]),Qe(t.end.x,"options.end.x",["number"]),Qe(t.end.y,"options.end.y",["number"]),Pt(t.thickness,"options.thickness",["number"]),Pt(t.color,"options.color",[[Object,"Color"]]),Pt(t.dashArray,"options.dashArray",[Array]),Pt(t.dashPhase,"options.dashPhase",["number"]),zs(t.lineCap,"options.lineCap",Ep),Cl(t.opacity,"opacity.opacity",0,1),zs(t.blendMode,"options.blendMode",Rc);var s=this.maybeEmbedGraphicsState({borderOpacity:t.opacity,blendMode:t.blendMode});"color"in t||(t.color=hi(0,0,0));var l=this.getContentStream();l.push.apply(l,P3e({start:t.start,end:t.end,thickness:(n=t.thickness)!==null&&n!==void 0?n:1,color:(r=t.color)!==null&&r!==void 0?r:void 0,dashArray:(i=t.dashArray)!==null&&i!==void 0?i:void 0,dashPhase:(a=t.dashPhase)!==null&&a!==void 0?a:void 0,lineCap:(o=t.lineCap)!==null&&o!==void 0?o:void 0,graphicsState:s}))},e.prototype.drawRectangle=function(t){var n,r,i,a,o,s,l,c,u,d,h,f,g;t===void 0&&(t={}),Pt(t.x,"options.x",["number"]),Pt(t.y,"options.y",["number"]),Pt(t.width,"options.width",["number"]),Pt(t.height,"options.height",["number"]),Pt(t.rotate,"options.rotate",[[Object,"Rotation"]]),Pt(t.xSkew,"options.xSkew",[[Object,"Rotation"]]),Pt(t.ySkew,"options.ySkew",[[Object,"Rotation"]]),Pt(t.borderWidth,"options.borderWidth",["number"]),Pt(t.color,"options.color",[[Object,"Color"]]),Cl(t.opacity,"opacity.opacity",0,1),Pt(t.borderColor,"options.borderColor",[[Object,"Color"]]),Pt(t.borderDashArray,"options.borderDashArray",[Array]),Pt(t.borderDashPhase,"options.borderDashPhase",["number"]),zs(t.borderLineCap,"options.borderLineCap",Ep),Cl(t.borderOpacity,"options.borderOpacity",0,1),zs(t.blendMode,"options.blendMode",Rc);var y=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});!("color"in t)&&!("borderColor"in t)&&(t.color=hi(0,0,0));var v=this.getContentStream();v.push.apply(v,cg({x:(n=t.x)!==null&&n!==void 0?n:this.x,y:(r=t.y)!==null&&r!==void 0?r:this.y,width:(i=t.width)!==null&&i!==void 0?i:150,height:(a=t.height)!==null&&a!==void 0?a:100,rotate:(o=t.rotate)!==null&&o!==void 0?o:Kn(0),xSkew:(s=t.xSkew)!==null&&s!==void 0?s:Kn(0),ySkew:(l=t.ySkew)!==null&&l!==void 0?l:Kn(0),borderWidth:(c=t.borderWidth)!==null&&c!==void 0?c:0,color:(u=t.color)!==null&&u!==void 0?u:void 0,borderColor:(d=t.borderColor)!==null&&d!==void 0?d:void 0,borderDashArray:(h=t.borderDashArray)!==null&&h!==void 0?h:void 0,borderDashPhase:(f=t.borderDashPhase)!==null&&f!==void 0?f:void 0,graphicsState:y,borderLineCap:(g=t.borderLineCap)!==null&&g!==void 0?g:void 0}))},e.prototype.drawSquare=function(t){t===void 0&&(t={});var n=t.size;Pt(n,"size",["number"]),this.drawRectangle(lr(lr({},t),{width:n,height:n}))},e.prototype.drawEllipse=function(t){var n,r,i,a,o,s,l,c,u,d,h;t===void 0&&(t={}),Pt(t.x,"options.x",["number"]),Pt(t.y,"options.y",["number"]),Pt(t.xScale,"options.xScale",["number"]),Pt(t.yScale,"options.yScale",["number"]),Pt(t.rotate,"options.rotate",[[Object,"Rotation"]]),Pt(t.color,"options.color",[[Object,"Color"]]),Cl(t.opacity,"opacity.opacity",0,1),Pt(t.borderColor,"options.borderColor",[[Object,"Color"]]),Cl(t.borderOpacity,"options.borderOpacity",0,1),Pt(t.borderWidth,"options.borderWidth",["number"]),Pt(t.borderDashArray,"options.borderDashArray",[Array]),Pt(t.borderDashPhase,"options.borderDashPhase",["number"]),zs(t.borderLineCap,"options.borderLineCap",Ep),zs(t.blendMode,"options.blendMode",Rc);var f=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});!("color"in t)&&!("borderColor"in t)&&(t.color=hi(0,0,0));var g=this.getContentStream();g.push.apply(g,V_({x:(n=t.x)!==null&&n!==void 0?n:this.x,y:(r=t.y)!==null&&r!==void 0?r:this.y,xScale:(i=t.xScale)!==null&&i!==void 0?i:100,yScale:(a=t.yScale)!==null&&a!==void 0?a:100,rotate:(o=t.rotate)!==null&&o!==void 0?o:void 0,color:(s=t.color)!==null&&s!==void 0?s:void 0,borderColor:(l=t.borderColor)!==null&&l!==void 0?l:void 0,borderWidth:(c=t.borderWidth)!==null&&c!==void 0?c:0,borderDashArray:(u=t.borderDashArray)!==null&&u!==void 0?u:void 0,borderDashPhase:(d=t.borderDashPhase)!==null&&d!==void 0?d:void 0,borderLineCap:(h=t.borderLineCap)!==null&&h!==void 0?h:void 0,graphicsState:f}))},e.prototype.drawCircle=function(t){t===void 0&&(t={});var n=t.size,r=n===void 0?100:n;Pt(r,"size",["number"]),this.drawEllipse(lr(lr({},t),{xScale:r,yScale:r}))},e.prototype.setOrEmbedFont=function(t){var n=this.font,r=this.fontKey;t?this.setFont(t):this.getFont();var i=this.font,a=this.fontKey;return{oldFont:n,oldFontKey:r,newFont:i,newFontKey:a}},e.prototype.getFont=function(){if(!this.font||!this.fontKey){var t=this.doc.embedStandardFont(gA.Helvetica);this.setFont(t)}return[this.font,this.fontKey]},e.prototype.resetFont=function(){this.font=void 0,this.fontKey=void 0},e.prototype.getContentStream=function(t){return t===void 0&&(t=!0),t&&this.contentStream?this.contentStream:(this.contentStream=this.createContentStream(),this.contentStreamRef=this.doc.context.register(this.contentStream),this.node.addContentStream(this.contentStreamRef),this.contentStream)},e.prototype.createContentStream=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.doc.context.obj({}),i=m0.of(r,t);return i},e.prototype.maybeEmbedGraphicsState=function(t){var n=t.opacity,r=t.borderOpacity,i=t.blendMode;if(!(n===void 0&&r===void 0&&i===void 0)){var a=this.doc.context.obj({Type:"ExtGState",ca:n,CA:r,BM:i}),o=this.node.newExtGState("GS",a);return o}},e.prototype.scaleAnnot=function(t,n,r){for(var i=["RD","CL","Vertices","QuadPoints","L","Rect"],a=0,o=i.length;a<o;a++){var s=t.lookup(je.of(i[a]));s instanceof ii&&s.scalePDFNumbers(n,r)}var l=t.lookup(je.of("InkList"));if(l instanceof ii)for(var a=0,o=l.size();a<o;a++){var c=l.lookup(a);c instanceof ii&&c.scalePDFNumbers(n,r)}},e.of=function(t,n,r){return new e(t,n,r)},e.create=function(t){Qe(t,"doc",[[Jc,"PDFDocument"]]);var n=fi.of(-1),r=qc.withContextAndParent(t.context,n),i=t.context.register(r);return new e(r,i,t)},e})(),i1=(function(e){Mt(t,e);function t(n,r,i){var a=e.call(this,n,r,i)||this;return Qe(n,"acroButton",[[p2,"PDFAcroPushButton"]]),a.acroField=n,a}return t.prototype.setImage=function(n,r){r===void 0&&(r=Zu.Center);for(var i=this.acroField.getWidgets(),a=0,o=i.length;a<o;a++){var s=i[a],l=this.createImageAppearanceStream(s,n,r);this.updateWidgetAppearances(s,{normal:l})}this.markAsClean()},t.prototype.setFontSize=function(n){c2(n,"fontSize"),this.acroField.setFontSize(n),this.markAsDirty()},t.prototype.addToPage=function(n,r,i){var a,o,s,l,c,u,d,h,f,g,y;Pt(n,"text",["string"]),Pt(r,"page",[[Hs,"PDFPage"]]),Pg(i);var v=this.createWidget({x:((a=i==null?void 0:i.x)!==null&&a!==void 0?a:0)-((o=i==null?void 0:i.borderWidth)!==null&&o!==void 0?o:0)/2,y:((s=i==null?void 0:i.y)!==null&&s!==void 0?s:0)-((l=i==null?void 0:i.borderWidth)!==null&&l!==void 0?l:0)/2,width:(c=i==null?void 0:i.width)!==null&&c!==void 0?c:100,height:(u=i==null?void 0:i.height)!==null&&u!==void 0?u:50,textColor:(d=i==null?void 0:i.textColor)!==null&&d!==void 0?d:hi(0,0,0),backgroundColor:(h=i==null?void 0:i.backgroundColor)!==null&&h!==void 0?h:hi(.75,.75,.75),borderColor:i==null?void 0:i.borderColor,borderWidth:(f=i==null?void 0:i.borderWidth)!==null&&f!==void 0?f:0,rotate:(g=i==null?void 0:i.rotate)!==null&&g!==void 0?g:Kn(0),caption:n,hidden:i==null?void 0:i.hidden,page:r.ref}),A=this.doc.context.register(v.dict);this.acroField.addWidget(A);var w=(y=i==null?void 0:i.font)!==null&&y!==void 0?y:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(v,w),r.node.addAnnot(A)},t.prototype.needsAppearancesUpdate=function(){var n;if(this.isDirty())return!0;for(var r=this.acroField.getWidgets(),i=0,a=r.length;i<a;i++){var o=r[i],s=((n=o.getAppearances())===null||n===void 0?void 0:n.normal)instanceof xs;if(!s)return!0}return!1},t.prototype.defaultUpdateAppearances=function(n){Qe(n,"font",[[ws,"PDFFont"]]),this.updateAppearances(n)},t.prototype.updateAppearances=function(n,r){Qe(n,"font",[[ws,"PDFFont"]]),Pt(r,"provider",[Function]);for(var i=this.acroField.getWidgets(),a=0,o=i.length;a<o;a++){var s=i[a];this.updateWidgetAppearance(s,n,r)}},t.prototype.updateWidgetAppearance=function(n,r,i){var a=i??rFe,o=Rg(a(this,n,r));this.updateWidgetAppearanceWithFont(n,r,o)},t.of=function(n,r,i){return new t(n,r,i)},t})(ch);const hFe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 1000"></svg>',ap="__EMPTY_SVG__",WC="/svg-editor.html",Sf=e=>{const t=String(e||"").trim();if(!t)return"";const n=t.search(/<svg[\s/>]/i);if(n<0)return"";const r=t.slice(n),i=r.toLowerCase().lastIndexOf("</svg>");return i>=0?r.slice(0,i+6).trim():r.trim()},pFe=e=>{let t=String(e||"").trim();for(let n=0;n<3;n+=1){const r=t.replace(/^\*\*\s*([\s\S]*?)\s*\*\*$/u,"$1").trim();if(r!==t){t=r;continue}const i=t.replace(/^__\s*([\s\S]*?)\s*__$/u,"$1").trim();if(i!==t){t=i;continue}break}return t},lj=(e,t,n)=>{const r=Array.isArray(e)?e[n]:e==null?void 0:e[t[n]],i=String(r??"").trim();return n===0?pFe(i):i},gFe=new Set(["defs","marker","pattern","clippath","mask","symbol"]),mFe=["path","rect","circle","ellipse","line","polyline","polygon","text","image","use","foreignObject"].join(","),yFe=e=>{const t=Sf(e);if(!t||t===Sf(hFe)||/^<svg\b[^>]*>\s*<\/svg>$/i.test(t))return!0;if(typeof DOMParser>"u")return!1;try{const n=new DOMParser().parseFromString(t,"image/svg+xml");if(n.querySelector("parsererror"))return!1;const r=n.documentElement;if(!r||r.nodeName.toLowerCase()!=="svg")return!1;const i=r.querySelectorAll(mFe);for(const a of Array.from(i)){let o=a.parentElement,s=!1;for(;o;){const l=o.tagName.toLowerCase();if(gFe.has(l)){s=!0;break}o=o.parentElement}if(!s)return!1}return!0}catch{return!1}};function vFe({onAddToChat:e,onSvgChange:t,svg2d:n,plan:r,analysisImages:i=[],analysisImagesLoading:a=!1,images:o=[],imagesLoading:s=!1,bom:l,focusPanel:c}){const[u,d]=N.useState(null),[h,f]=N.useState(!1),[g,y]=N.useState("2d"),[v,A]=N.useState(null),[w,S]=N.useState(!1),[_,E]=N.useState(()=>Array.isArray(o)?o.filter(ue=>ue&&typeof ue.url=="string").map(ue=>({title:typeof ue.title=="string"?ue.title:"",url:String(ue.url)})).slice(0,30):[]),T=pa(),D=N.useRef(null),I=N.useRef(""),j=N.useRef(""),R=N.useRef(0),z=N.useRef(new Map);N.useRef(0);const B=N.useRef(0);N.useEffect(()=>{if(typeof n=="string"){const ue=Sf(n);d(ue||null),j.current=ue,B.current=Date.now(),ue?(Z(ue),I.current=ue):(W({type:"cad_svg_editor_clear"}),I.current=ap);return}d(null),j.current="",W({type:"cad_svg_editor_clear"}),I.current=ap},[n]);const W=ue=>{var ye;const ce=(ye=D.current)==null?void 0:ye.contentWindow;return ce?(ce.postMessage(ue,window.location.origin),!0):!1},P=()=>{f(!1);const ue=D.current,ce=ue==null?void 0:ue.contentWindow;if(!(!ue||!ce))try{const ye=String(ce.location.href||"");if(!ye)return;const Fe=new URL(ye,window.location.origin);if(String(Fe.pathname||"")!==WC){ue.src=WC;return}const Le=String(j.current||"").trim();Le?(Z(Le),I.current=Le):(W({type:"cad_svg_editor_clear"}),I.current=ap)}catch{}},Z=ue=>{const ce=Sf(ue);if(!ce||!W({type:"cad_svg_editor_load",svg:ce}))return!1;const Fe=[120,420,1e3,2e3,3500,5e3];for(const Oe of Fe)window.setTimeout(()=>{W({type:"cad_svg_editor_load",svg:ce})},Oe);return!0};N.useEffect(()=>{if(typeof window>"u")return;const ue=ce=>{if(ce.origin!==window.location.origin)return;const ye=ce.data;if(!ye||typeof ye!="object")return;const Fe=String(ye.type||"");if(Fe==="cad_svg_editor_ready"){f(!0);const Oe=String(j.current||"").trim();Oe?(Z(Oe),I.current=Oe):(W({type:"cad_svg_editor_clear"}),I.current=ap);return}if(Fe==="cad_svg_editor_export_response"){const Oe=String(ye.requestId||""),Le=z.current.get(Oe);if(!Le)return;z.current.delete(Oe),Le(String(ye.svg||""));return}if(Fe==="cad_svg_editor_load_result"){if(!!ye.ok)return;const Le=String(ye.reason||"").trim();Le?Ln.error(T==="zh"?`SVG加载失败:${Le}`:`SVG load failed: ${Le}`):Ln.error(T==="zh"?"SVG加载失败":"SVG load failed");const Re=String(j.current||"").trim();if(!Re)return;window.setTimeout(()=>{Z(Re)},100)}};return window.addEventListener("message",ue),()=>{window.removeEventListener("message",ue),z.current.clear()}},[]),N.useEffect(()=>{const ue=Sf(typeof u=="string"?u:"");if(j.current=ue,ue){if(I.current===ue)return;Z(ue)&&(I.current=ue);return}I.current!==ap&&W({type:"cad_svg_editor_clear"})&&(I.current=ap)},[u]),N.useEffect(()=>{if(!Array.isArray(o)||o.length===0){E([]),A(null);return}let ue=!1;const ce=async ye=>{if(typeof window>"u")return"";if(!ye||!ye.startsWith("blob:"))return ye;try{const Oe=await(await fetch(ye)).blob();return await new Promise(Le=>{const Re=new FileReader;Re.onerror=()=>Le(""),Re.onloadend=()=>Le(typeof Re.result=="string"?Re.result:""),Re.readAsDataURL(Oe)})}catch{return""}};return(async()=>{const ye=await Promise.all(o.map(async Fe=>{const Oe=typeof(Fe==null?void 0:Fe.url)=="string"?String(Fe.url):"";if(!Oe)return{title:typeof(Fe==null?void 0:Fe.title)=="string"?String(Fe.title):"",url:""};const Le=typeof(Fe==null?void 0:Fe.title)=="string"?String(Fe.title):"";if(Oe.startsWith("blob:")){const Re=await ce(Oe);return{title:Le,url:Re||""}}return{title:Le,url:Oe}}));ue||E(ye.slice(0,7))})(),()=>{ue=!0}},[o]),N.useEffect(()=>{c&&y(c)},[c]),N.useEffect(()=>{const ue=!Array.isArray(o)||o.length===0,ce=!l||!Array.isArray(l.columns)||l.columns.length===0;!r&&!n&&ue&&ce&&!c&&y("2d")},[r,n,o,l,c]);const Q=async ue=>{const ce=Sf(String(u||n||""));if(!h)return ce;const ye=`cad-svg-export-${Date.now()}-${R.current++}`;return await new Promise(Fe=>{const Oe=window.setTimeout(()=>{z.current.delete(ye),Fe(ce)},2500);z.current.set(ye,Re=>{window.clearTimeout(Oe);const We=Sf(Re||"");if(ue!=null&&ue.preferFallbackOnEmpty){if(We&&yFe(We)&&ce){Fe(ce);return}Fe(We||ce);return}Fe(We)}),W({type:"cad_svg_editor_export_request",requestId:ye})||(window.clearTimeout(Oe),z.current.delete(ye),Fe(ce))})};N.useEffect(()=>{},[h,g,u,n,t]);const X=(ue,ce)=>{const ye=document.createElement("a"),Fe=URL.createObjectURL(ue);ye.href=Fe,ye.download=ce,document.body.appendChild(ye),ye.click(),ye.remove(),setTimeout(()=>URL.revokeObjectURL(Fe),5e3)},q=async()=>{const ue=await Q({preferFallbackOnEmpty:!0});if(!(!ue||w)){S(!0);try{const ce=new Blob([ue],{type:"image/svg+xml;charset=utf-8"});X(ce,`floorplan-${Date.now()}.svg`)}finally{S(!1)}}},te=async(ue,ce=1600)=>{const ye=new Blob([ue],{type:"image/svg+xml;charset=utf-8"}),Fe=URL.createObjectURL(ye);try{const Oe=new Image,Le=new Promise((Ue,Me)=>{Oe.onload=()=>Ue(),Oe.onerror=Me});Oe.src=Fe,await Le;const Re=ue.match(/viewBox\s*=\s*"([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)"/i),We=Re?Number(Re[3]):NaN,V=Re?Number(Re[4]):NaN,ve=Number.isFinite(We)&&Number.isFinite(V)&&We>0&&V>0?V/We:Oe.naturalHeight>0&&Oe.naturalWidth>0?Oe.naturalHeight/Oe.naturalWidth:9/16,oe=ce,re=Math.max(1,Math.round(oe*ve)),ne=document.createElement("canvas");ne.width=oe,ne.height=re;const be=ne.getContext("2d");return be?(be.clearRect(0,0,oe,re),be.drawImage(Oe,0,0,oe,re),ne.toDataURL("image/png")):""}finally{URL.revokeObjectURL(Fe)}},J=async()=>{const ue=await Q({preferFallbackOnEmpty:!0});if(!(!ue||w)){S(!0);try{const ce=await te(ue,1600);if(!ce)return;const ye=new Image,Fe=new Promise((ve,oe)=>{ye.onload=()=>ve(),ye.onerror=oe});ye.src=ce,await Fe;const Oe=document.createElement("canvas");Oe.width=ye.naturalWidth||1600,Oe.height=ye.naturalHeight||900;const Le=Oe.getContext("2d");if(!Le)return;Le.fillStyle="#ffffff",Le.fillRect(0,0,Oe.width,Oe.height),Le.drawImage(ye,0,0,Oe.width,Oe.height);const We=Oe.toDataURL("image/jpeg",.92).split(",")[1]||"";if(!We)return;const V=Uint8Array.from(atob(We),ve=>ve.charCodeAt(0));X(new Blob([V],{type:"image/jpeg"}),`floorplan-${Date.now()}.jpg`)}catch(ce){console.error("Export SVG->JPG failed",ce)}finally{S(!1)}}},ee=async()=>{const ue=_.filter(ce=>ce==null?void 0:ce.url);if(!(ue.length===0||w)){S(!0);try{const ce=await Jc.create();for(const Fe of ue){const Oe=await fetch(Fe.url);if(!Oe.ok)continue;const Le=await Oe.arrayBuffer(),Re=new Uint8Array(Le),We=String(Oe.headers.get("content-type")||""),ve=We.includes("jpeg")||We.includes("jpg")?await ce.embedJpg(Re):await ce.embedPng(Re),oe=960,re=540,ne=ce.addPage([oe,re]),be=Math.min(oe/ve.width,re/ve.height),Ue=ve.width*be,Me=ve.height*be;ne.drawImage(ve,{x:(oe-Ue)/2,y:(re-Me)/2,width:Ue,height:Me})}const ye=await ce.save();X(new Blob([ye],{type:"application/pdf"}),`renders-${Date.now()}.pdf`)}catch(ce){console.error("Export renders PDF failed",ce)}finally{S(!1)}}},le=async()=>{if(!(!l||w)){S(!0);try{const ue=Fe=>{const Oe=String(Fe??"");return/[",\r\n]/.test(Oe)?`"${Oe.replace(/"/g,'""')}"`:Oe},ce=[];ce.push((l.columns||[]).map(ue).join(","));for(const Fe of l.rows||[]){const Oe=(l.columns||[]).map((Le,Re)=>ue(lj(Fe,l.columns||[],Re)));ce.push(Oe.join(","))}const ye=`\uFEFF${ce.join(`\r-`)}`;X(new Blob([ye],{type:"text/csv;charset=utf-8"}),`bom-${Date.now()}.csv`)}finally{S(!1)}}},G=N.useMemo(()=>F_(T).map((ce,ye)=>{const Fe=_[ye];return{title:ce,url:(Fe==null?void 0:Fe.url)||""}}),[_,T]),xe=N.useMemo(()=>[T==="zh"?"整体方案图":"Overall Scheme",T==="zh"?"重点策略图":"Key Strategy"].map((ce,ye)=>{const Fe=i[ye];return{title:typeof(Fe==null?void 0:Fe.title)=="string"&&Fe.title.trim()?Fe.title:ce,url:(Fe==null?void 0:Fe.url)||""}}),[i,T]),ge=_.some(ue=>!!(ue!=null&&ue.url));return m.jsxs(x_e,{children:[m.jsxs(b_e,{className:"w-full h-full bg-muted/20 relative overflow-hidden",children:[m.jsxs("div",{className:"absolute top-4 left-4 z-20 flex items-center gap-2 bg-background/80 backdrop-blur rounded-xl border border-border/50 px-3 py-2 shadow-sm",children:[m.jsxs(Ta,{size:"sm",variant:g==="analysis"?"default":"outline",className:"h-7 px-2 text-xs gap-1",onClick:()=>y("analysis"),title:T==="zh"?"查看分析图":"View analysis images",children:[m.jsx(ao,{className:"w-3.5 h-3.5"}),T==="zh"?"分析图":"Analysis"]}),m.jsxs(Ta,{size:"sm",variant:g==="2d"?"default":"outline",className:"h-7 px-2 text-xs gap-1",onClick:()=>y("2d"),title:T==="zh"?"查看2D平面图":"View 2D plan",children:[m.jsx(mQ,{className:"w-3.5 h-3.5"}),"2D"]}),m.jsxs(Ta,{size:"sm",variant:g==="renders"?"default":"outline",className:"h-7 px-2 text-xs gap-1",onClick:()=>y("renders"),title:T==="zh"?"查看装修图":"View renders",children:[m.jsx(ao,{className:"w-3.5 h-3.5"}),T==="zh"?"装修图":"Renders"]}),m.jsxs(Ta,{size:"sm",variant:g==="bom"?"default":"outline",className:"h-7 px-2 text-xs gap-1",onClick:()=>y("bom"),title:T==="zh"?"查看物料清单":"View BOM",children:[m.jsx(Fee,{className:"w-3.5 h-3.5"}),T==="zh"?"物料":"BOM"]}),m.jsx("div",{className:"h-4 w-px bg-border/60 mx-1"}),g==="2d"&&m.jsxs(m.Fragment,{children:[m.jsxs(Ta,{size:"sm",variant:"outline",className:"h-7 px-2 text-xs gap-1",onClick:q,disabled:!u||w,title:T==="zh"?"导出SVG":"Export SVG",children:[m.jsx(tc,{className:"w-3.5 h-3.5"}),"SVG"]}),m.jsxs(Ta,{size:"sm",variant:"outline",className:"h-7 px-2 text-xs gap-1",onClick:J,disabled:!u||w,title:T==="zh"?"导出JPG":"Export JPG",children:[m.jsx(tc,{className:"w-3.5 h-3.5"}),"JPG"]})]}),g==="renders"&&m.jsxs(Ta,{size:"sm",variant:"outline",className:"h-7 px-2 text-xs gap-1",onClick:ee,disabled:!ge||w,title:T==="zh"?"导出装修图PDF":"Export renders PDF",children:[m.jsx(tc,{className:"w-3.5 h-3.5"}),"PDF"]}),g==="bom"&&m.jsxs(Ta,{size:"sm",variant:"outline",className:"h-7 px-2 text-xs gap-1",onClick:le,disabled:!l||w,title:T==="zh"?"导出BOM CSV":"Export BOM CSV",children:[m.jsx(tc,{className:"w-3.5 h-3.5"}),"CSV"]})]}),!u&&g!=="2d"&&g!=="analysis"&&m.jsx("div",{className:"w-full h-full flex items-center justify-center",children:m.jsxs("div",{className:"text-center text-muted-foreground",children:[m.jsx("p",{className:"mb-2",children:T==="zh"?"暂无 CAD 内容":"No CAD content yet"}),m.jsx("p",{className:"text-xs",children:T==="zh"?"在右侧对话里先做需求分析,确认方案后生成 SVG(2D),满意后生成装修图。":"Use the chat on the right to define requirements, generate the 2D SVG, then generate renders."})]})}),m.jsxs("div",{className:"w-full h-full pt-16 p-6",children:[g==="analysis"&&m.jsx("div",{className:"w-full h-full bg-white dark:bg-zinc-900 shadow-sm rounded-xl overflow-auto border border-border/50 p-4",children:m.jsx("div",{className:"grid gap-4 grid-cols-1 md:grid-cols-2",children:xe.map((ue,ce)=>m.jsxs("div",{className:"rounded-xl border border-border/50 overflow-hidden bg-background",children:[m.jsxs("div",{className:"px-3 py-2 text-xs text-muted-foreground flex items-center justify-between gap-2",children:[m.jsx(ao,{className:"w-4 h-4"}),m.jsx("span",{className:"truncate flex-1",children:ue.title}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx(Ta,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>A(ue),title:T==="zh"?"查看":"View",children:m.jsx(ao,{className:"w-4 h-4"})}),m.jsx("a",{href:ue.url||"#",download:`${ue.title||(T==="zh"?"分析图":"analysis")}.png`,className:"inline-flex",children:m.jsx(Ta,{variant:"ghost",size:"icon",className:"h-7 w-7",disabled:!ue.url,title:T==="zh"?"下载":"Download",children:m.jsx(tc,{className:"w-4 h-4"})})})]})]}),m.jsx("div",{className:"aspect-video bg-muted/20",children:ue.url?m.jsx("img",{src:ue.url,alt:ue.title,className:"w-full h-full object-cover cursor-pointer",onClick:()=>A(ue)}):m.jsxs("div",{className:"w-full h-full flex items-center justify-center text-xs text-muted-foreground gap-2",children:[a?m.jsx(sa,{className:"w-3.5 h-3.5 animate-spin"}):null,m.jsx("span",{children:a?T==="zh"?"生成中":"Generating":T==="zh"?"待生成":"Pending"})]})})]},`${ue.title}-${ce}`))})}),g==="2d"&&m.jsx("div",{className:"w-full h-full bg-white shadow-sm rounded-xl overflow-hidden border border-border/50",children:m.jsx("iframe",{ref:D,title:T==="zh"?"CAD SVG 编辑器":"CAD SVG Editor",src:WC,className:"h-full w-full border-0",onLoad:P})}),g==="renders"&&m.jsx("div",{className:"w-full h-full bg-white dark:bg-zinc-900 shadow-sm rounded-xl overflow-auto border border-border/50 p-4",children:m.jsx("div",{className:"grid gap-4 grid-cols-1 md:grid-cols-2 xl:grid-cols-3",children:G.map((ue,ce)=>m.jsxs("div",{className:"rounded-xl border border-border/50 overflow-hidden bg-background",children:[m.jsxs("div",{className:"px-3 py-2 text-xs text-muted-foreground flex items-center justify-between gap-2",children:[m.jsx(ao,{className:"w-4 h-4"}),m.jsx("span",{className:"truncate flex-1",children:ue.title}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx(Ta,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>ue.url&&A(ue),disabled:!ue.url,title:T==="zh"?"查看":"View",children:m.jsx(ao,{className:"w-4 h-4"})}),m.jsx("a",{href:ue.url||"#",download:`${ue.title||(T==="zh"?"装修图":"render")}.png`,className:"inline-flex",children:m.jsx(Ta,{variant:"ghost",size:"icon",className:"h-7 w-7",disabled:!ue.url,title:T==="zh"?"下载":"Download",children:m.jsx(tc,{className:"w-4 h-4"})})})]})]}),m.jsx("div",{className:"aspect-video bg-muted/20",children:ue.url?m.jsx("img",{src:ue.url,alt:ue.title,className:"w-full h-full object-cover cursor-pointer",onClick:()=>A(ue)}):m.jsxs("div",{className:"w-full h-full flex items-center justify-center text-xs text-muted-foreground gap-2",children:[s?m.jsx(sa,{className:"w-3.5 h-3.5 animate-spin"}):null,m.jsx("span",{children:s?T==="zh"?"生成中":"Generating":T==="zh"?"待生成":"Pending"})]})})]},`${ue.title}-${ce}`))})}),g==="bom"&&m.jsx("div",{className:"w-full h-full bg-white dark:bg-zinc-900 shadow-sm rounded-xl overflow-auto border border-border/50 p-4",children:!l||!Array.isArray(l.columns)||l.columns.length===0?m.jsx("div",{className:"h-full w-full flex items-center justify-center text-muted-foreground text-sm",children:T==="zh"?"暂无物料清单":"No BOM yet"}):m.jsx("div",{className:"w-full overflow-auto",children:m.jsxs("table",{className:"w-full text-sm border-collapse",children:[m.jsx("thead",{children:m.jsx("tr",{className:"text-left border-b border-border/60",children:l.columns.map((ue,ce)=>m.jsx("th",{className:"py-2 px-2 font-medium text-foreground/80 whitespace-normal break-words",children:ue},`${ue}-${ce}`))})}),m.jsx("tbody",{children:(Array.isArray(l.rows)?l.rows:[]).map((ue,ce)=>m.jsx("tr",{className:"border-b border-border/40",children:l.columns.map((ye,Fe)=>m.jsx("td",{className:"py-2 px-2 text-foreground/90 whitespace-normal break-words",children:lj(ue,l.columns,Fe)},Fe))},ce))})]})})})]})]}),m.jsx(KZ,{children:m.jsxs($Z,{onClick:async()=>{if(e)if(g==="analysis")e(JSON.stringify({type:"cad_analysis_images",images:xe},null,2));else if(g==="2d"){const ue=await Q({preferFallbackOnEmpty:!0});ue&&e(ue)}else g==="renders"&&_.length>0?e(JSON.stringify({type:"cad_images",prompts:_},null,2)):g==="bom"&&l?e(JSON.stringify({type:"cad_bom",columns:l.columns,rows:l.rows},null,2)):r&&e(JSON.stringify(r,null,2))},className:"cursor-pointer gap-2",children:[m.jsx(gb,{className:"w-4 h-4"}),m.jsx("span",{children:T==="zh"?"添加到对话":"Add to chat"})]})}),m.jsx(FF,{open:!!v,onOpenChange:ue=>{ue||A(null)},children:m.jsxs(a2,{className:"sm:max-w-[920px] max-w-[calc(100%-2rem)] p-4",children:[m.jsx(RF,{className:"pr-10",children:m.jsx(o2,{className:"text-base",children:(v==null?void 0:v.title)||(T==="zh"?"装修图":"Render")})}),m.jsx("div",{className:"w-full",children:v!=null&&v.url?m.jsxs("div",{className:"space-y-3",children:[m.jsx("div",{className:"flex items-center justify-end",children:m.jsx("a",{href:v.url,download:`${v.title||(T==="zh"?"装修图":"render")}.png`,className:"inline-flex",children:m.jsxs(Ta,{variant:"outline",size:"sm",className:"h-8 px-3 text-xs",title:T==="zh"?"下载图片":"Download image",children:[m.jsx(tc,{className:"w-4 h-4 mr-1"}),T==="zh"?"下载图片":"Download image"]})})}),m.jsx("div",{className:"rounded-lg border border-border/50 overflow-hidden bg-muted/10",children:m.jsx("img",{src:v.url,alt:v.title,className:"w-full h-auto max-h-[70vh] object-contain"})})]}):null})]})})]})}const xFe=FN,bFe=RN,AFe=PN,m$=N.forwardRef(({className:e,sideOffset:t=4,...n},r)=>m.jsx(by,{ref:r,sideOffset:t,className:gt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));m$.displayName=by.displayName;function Ru({tooltipContent:e,children:t,...n}){const r=typeof n.title=="string"&&n.title.trim()?n.title:e;return m.jsx(xFe,{children:m.jsxs(bFe,{children:[m.jsx(AFe,{asChild:!0,children:m.jsx(Ta,{...n,title:r,children:t})}),m.jsx(m$,{className:"max-w-xs text-wrap",children:e})]})})}const wFe=15e4,X_=wFe,SFe=[".txt",".md",".markdown",".json",".csv",".xml",".html",".css",".js",".ts",".jsx",".tsx",".py",".java",".c",".cpp",".h",".go",".rs",".yaml",".yml",".toml",".ini",".log",".sh",".bash",".zsh"];async function y$(e){const t=await e.arrayBuffer(),n=await Dg(new Uint8Array(t)),{text:r}=await sG(n,{mergePages:!0});return r}async function kFe(e){const n=await(await fetch(e)).arrayBuffer();return await Dg(new Uint8Array(n))}async function DFe(e){const t=await e.pdf.getPage(e.pageNumber),n=t.getViewport({scale:1}),r=e.targetWidth/n.width,i=t.getViewport({scale:r}),a=typeof window<"u"&&window.devicePixelRatio||1;e.canvas.width=Math.floor(i.width*a),e.canvas.height=Math.floor(i.height*a),e.canvas.style.width=`${Math.floor(i.width)}px`,e.canvas.style.height=`${Math.floor(i.height)}px`;const o=e.canvas.getContext("2d");o&&(o.setTransform(a,0,0,a,0,0),await t.render({canvasContext:o,viewport:i}).promise)}function ay(e){return e.type==="application/pdf"||e.name.endsWith(".pdf")}function S2(e){const t=e.name.toLowerCase();return e.type.startsWith("text/")||e.type==="application/json"||SFe.some(n=>t.endsWith(n))}async function v$(e){return await e.text()}const oy=Object.freeze(Object.defineProperty({__proto__:null,MAX_EXTRACTED_CHARS:X_,extractPdfText:y$,extractTextFileContent:v$,getPdfDocumentFromUrl:kFe,isPdfFile:ay,isTextFile:S2,renderPdfPageToCanvas:DFe},Symbol.toStringTag,{value:"Module"}));function cj(e){return e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function CFe({files:e,onRemoveFile:t,pdfData:n=new Map}){const r=pa(),i=(u,d)=>r==="zh"?u:d,[a,o]=N.useState(null),[s,l]=N.useState(new Map),c=N.useRef(new Map);return N.useEffect(()=>{const u=c.current,d=new Map;e.forEach(h=>{if(h.type.startsWith("image/")){const f=u.get(h);f?d.set(h,f):d.set(h,URL.createObjectURL(h))}}),u.forEach((h,f)=>{d.has(f)||URL.revokeObjectURL(h)}),c.current=d,l(d)},[e]),N.useEffect(()=>()=>{c.current.forEach(u=>{URL.revokeObjectURL(u)}),c.current=new Map},[]),N.useEffect(()=>{a&&!Array.from(s.values()).includes(a)&&o(null)},[s,a]),e.length===0?null:m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"flex flex-wrap gap-2 mt-2 p-2 bg-muted/50 rounded-md",children:e.map((u,d)=>{const h=s.get(u)||null,f=n.get(u),g=u.type.startsWith("image/"),y=ay(u),v=S2(u),A=f!=null&&f.isExtracting?i("解析中...","Reading..."):f!=null&&f.charCount?i(`${cj(f.charCount)} 字符`,`${cj(f.charCount)} chars`):y?i("PDF 文档","PDF"):v?i("文本","Text"):"";return m.jsx("div",{className:"group",children:m.jsxs("div",{className:"flex items-center gap-2.5 w-[260px] max-w-full border rounded-lg overflow-hidden bg-background/70 px-3 py-2",children:[m.jsx("div",{className:`h-11 w-11 rounded-md overflow-hidden bg-muted flex items-center justify-center ${g&&h?"cursor-pointer":""}`,onClick:()=>{g&&h&&o(h)},children:g&&h?m.jsx("img",{src:h,alt:u.name,className:"object-cover w-full h-full"}):m.jsx(m.Fragment,{children:f!=null&&f.isExtracting?m.jsx(sa,{className:"h-5 w-5 text-blue-500 animate-spin"}):y?m.jsx(Oi,{className:"h-5 w-5 text-red-500"}):m.jsx(eu,{className:"h-5 w-5 text-blue-500"})})}),m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsx("div",{className:"text-xs font-medium truncate",children:u.name}),A?m.jsx("div",{className:"text-[10px] text-muted-foreground truncate",children:A}):null]}),m.jsx("button",{type:"button",onClick:()=>t(u),className:"shrink-0 rounded-md p-1 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors","aria-label":i("移除文件","Remove file"),children:m.jsx(Va,{className:"h-4 w-4"})})]})},u.name+d)})}),a&&m.jsxs("div",{className:"fixed inset-0 z-50 bg-black/80 flex items-center justify-center p-4",onClick:()=>o(null),children:[m.jsx("button",{className:"absolute top-4 right-4 z-10 bg-white rounded-full p-2 hover:bg-gray-200 transition-colors",onClick:()=>o(null),"aria-label":i("关闭","Close"),children:m.jsx(Va,{className:"h-6 w-6"})}),m.jsx("div",{className:"relative w-auto h-auto max-w-[90vw] max-h-[90vh]",children:m.jsx("img",{src:a,alt:i("上传图片的全尺寸预览","Full size preview of uploaded diagram or image"),className:"object-contain max-w-full max-h-[90vh] w-auto h-auto",onClick:u=>u.stopPropagation()})})]})]})}function x$(){const[e,t]=N.useState([]),[n,r]=N.useState(new Map);return{files:e,pdfData:n,handleFileChange:async a=>{t(a);for(const o of a)if((ay(o)||S2(o))&&!n.has(o)){r(l=>{const c=new Map(l);return c.set(o,{text:"",charCount:0,isExtracting:!0}),c});try{let l;if(ay(o)?l=await y$(o):l=await v$(o),l.length>X_){const c=X_/1e3;console.warn(`${o.name}: Content exceeds ${c}k character limit`)}r(c=>{const u=new Map(c);return u.set(o,{text:l,charCount:l.length,isExtracting:!1}),u})}catch(l){console.error("Failed to extract text:",l),r(c=>{const u=new Map(c);return u.delete(o),u})}}r(o=>{const s=new Map(o);for(const l of o.keys())a.includes(l)||s.delete(l);return s})},setFiles:t}}function TFe({input:e,setInput:t,onSubmit:n,isLoading:r,onStop:i,onClearChat:a,onToggleHistory:o,historyDisabled:s=!1,onFilesChange:l,files:c,placeholder:u,topChips:d,bottomChips:h,focusKey:f,richSegments:g,onRichSegmentsChange:y,insertPptToken:v,onInsertPptTokenHandled:A,clearKey:w,uploadMode:S="all"}){const _=pa(),E=(oe,re)=>_==="zh"?oe:re,T=N.useRef(null),D=N.useRef(null),I=N.useRef(null),j=N.useRef(null),R=N.useRef(null),z=N.useRef(""),[B,W]=N.useState(!1),{files:P,handleFileChange:Z,setFiles:Q,pdfData:X}=x$(),q=!!(g&&y);N.useEffect(()=>{c&&Q(c)},[c,Q]),N.useEffect(()=>{l==null||l(P)},[P,l]);const te=oe=>{oe.key==="Enter"&&!oe.shiftKey&&(oe.preventDefault(),r?i==null||i():n())},J=N.useCallback(()=>{if(q)return;const oe=T.current;oe&&(oe.style.height="auto",oe.style.height=`${Math.min(oe.scrollHeight,200)}px`)},[q]);N.useEffect(()=>{J()},[e,q,u,J]),N.useEffect(()=>{if(q)return;const oe=T.current;if(!oe)return;let re=0;const ne=()=>{re&&cancelAnimationFrame(re),re=requestAnimationFrame(()=>{re=0,J()})};if(ne(),typeof ResizeObserver<"u"){const be=new ResizeObserver(()=>ne());return be.observe(oe),be.observe(oe.parentElement??oe),()=>{re&&cancelAnimationFrame(re),be.disconnect()}}return window.addEventListener("resize",ne),()=>{re&&cancelAnimationFrame(re),window.removeEventListener("resize",ne)}},[q,J]),N.useEffect(()=>{var oe,re;f!==void 0&&(q?(oe=D.current)==null||oe.focus():(re=T.current)==null||re.focus())},[f]),N.useEffect(()=>{if(w===void 0||!q)return;const oe=D.current;oe&&(I.current=null,oe.innerHTML="",oe.appendChild(document.createTextNode("")),z.current="",y==null||y([{type:"text",text:""}]))},[w,q]);const ee=oe=>oe.map(re=>re.type==="text"?`t:${re.text}`:`p:${re.slideId}:${re.tag}`).join("|"),le=oe=>{const re=document.createElement("span");re.setAttribute("data-token","ppt"),re.setAttribute("data-slide-id",oe.slideId),re.setAttribute("data-label",oe.label),re.setAttribute("data-tag",oe.tag),re.setAttribute("contenteditable","false"),re.className="inline-flex items-center gap-1.5 rounded-full border border-red-200 bg-red-50 px-2 py-0.5 text-xs font-medium text-red-700 dark:border-red-400/30 dark:bg-red-950/40 dark:text-red-200 align-middle";const ne=document.createElementNS("http://www.w3.org/2000/svg","svg");ne.setAttribute("viewBox","0 0 24 24"),ne.setAttribute("fill","none"),ne.setAttribute("stroke","currentColor"),ne.setAttribute("stroke-width","2"),ne.setAttribute("stroke-linecap","round"),ne.setAttribute("stroke-linejoin","round"),ne.setAttribute("aria-hidden","true"),ne.setAttribute("class","h-3.5 w-3.5 text-red-600 dark:text-red-200");const be=document.createElementNS("http://www.w3.org/2000/svg","path");be.setAttribute("d","M19 7a5 5 0 0 0-5-5H7a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-8h5a5 5 0 0 0 5-5z"),be.setAttribute("d","M8 20V4h6a4 4 0 0 1 0 8H8"),ne.appendChild(be);const Ue=document.createElement("span");return Ue.textContent=oe.label,re.appendChild(ne),re.appendChild(Ue),re},G=oe=>{const re=D.current;if(re){re.innerHTML="";for(const ne of oe){if(ne.type==="text"){const be=String(ne.text||"").split(`-`);for(let Ue=0;Ue<be.length;Ue+=1)be[Ue]&&re.appendChild(document.createTextNode(be[Ue])),Ue<be.length-1&&re.appendChild(document.createElement("br"));continue}re.appendChild(le(ne)),re.appendChild(document.createTextNode(" "))}re.lastChild||re.appendChild(document.createTextNode(""))}},xe=()=>{const oe=D.current;if(!oe)return[{type:"text",text:""}];const re=[],ne=be=>{if(!be)return;const Ue=re[re.length-1];(Ue==null?void 0:Ue.type)==="text"?Ue.text+=be:re.push({type:"text",text:be})};for(const be of Array.from(oe.childNodes)){if(be.nodeType===Node.TEXT_NODE){ne(be.textContent||"");continue}if(be.nodeType!==Node.ELEMENT_NODE)continue;const Ue=be;if(Ue.tagName==="BR"){ne(`-`);continue}if(Ue.getAttribute("data-token")==="ppt"){const Ee=Ue.getAttribute("data-slide-id")||"",Se=Ue.getAttribute("data-label")||Ue.textContent||"",Ce=Ue.getAttribute("data-tag")||"";Ee&&Ce&&re.push({type:"ppt",slideId:Ee,label:Se,tag:Ce});continue}ne(Ue.textContent||"")}return re.length===0?[{type:"text",text:""}]:re},ge=()=>{if(!q)return;const oe=xe(),re=ee(oe);re!==z.current&&(z.current=re,y==null||y(oe))};N.useEffect(()=>{if(!q)return;const oe=g||[{type:"text",text:""}],re=ee(oe);re!==z.current&&(z.current=re,!B&&G(oe))},[q,g,B]);const ue=(oe,re,ne)=>{const be=D.current;if(!be)return;be.focus();const Ue=window.getSelection();let Me=Ue&&Ue.rangeCount>0?Ue.getRangeAt(0):null;(!Me||!be.contains(Me.startContainer))&&(Me=I.current),(!Me||!be.contains(Me.startContainer))&&(Me=document.createRange(),Me.selectNodeContents(be),Me.collapse(!1));const Ee=le({slideId:oe,label:re,tag:ne}),Se=document.createTextNode(" ");Me.insertNode(Se),Me.insertNode(Ee),Me.setStartAfter(Se),Me.collapse(!0),Ue&&(Ue.removeAllRanges(),Ue.addRange(Me)),I.current=Me,ge()};N.useEffect(()=>{q&&v&&(ue(v.slideId,v.label,v.tag),A==null||A())},[q,v==null?void 0:v.key]);const ce=N.useMemo(()=>(g||[]).map(re=>re.type==="text"?re.text:re.label).join("").replace(/[ \t]+\n/g,`-`),[g]),ye=q&&!ce.trim()&&!B,Fe=oe=>S==="imagesOnly"?oe.filter(re=>re.type.startsWith("image/")):S==="filesOnly"?oe.filter(re=>!re.type.startsWith("image/")):oe,Oe=oe=>{if(S==="none")return;const re=oe.clipboardData.items,ne=[];for(let be=0;be<re.length;be++)if(re[be].kind==="file"){const Ue=re[be].getAsFile();Ue&&ne.push(Ue)}if(ne.length>0){const be=Fe(ne);if(be.length===0)return;oe.preventDefault(),Z([...P,...be])}},Le=oe=>{if(oe.preventDefault(),S==="none")return;const re=Array.from(oe.dataTransfer.files),ne=Fe(re);ne.length>0&&Z([...P,...ne])},Re=()=>{var oe;return(oe=R.current)==null?void 0:oe.click()},We=()=>{var oe;return(oe=j.current)==null?void 0:oe.click()},V=oe=>{var re;if((re=oe.target.files)!=null&&re.length){const ne=Array.from(oe.target.files),be=Fe(ne);be.length>0&&Z([...P,...be]),oe.target.value=""}},ve=oe=>{Q(P.filter(re=>re!==oe))};return m.jsxs("div",{className:"relative rounded-2xl border border-border bg-background shadow-sm focus-within:ring-2 focus-within:ring-primary/20 focus-within:border-primary/50 transition-all duration-200",onDragOver:oe=>oe.preventDefault(),onDrop:Le,children:[(S==="all"||S==="imagesOnly")&&m.jsx("input",{type:"file",multiple:!0,accept:"image/*",className:"hidden",ref:R,onChange:V}),(S==="all"||S==="filesOnly")&&m.jsx("input",{type:"file",multiple:!0,accept:S==="filesOnly"?".pdf,application/pdf,text/*,.txt,.md,.markdown,.json,.csv,.xml,.yaml,.yml,.toml":"image/*,.pdf,application/pdf,text/*,.txt,.md,.markdown,.json,.csv,.xml,.yaml,.yml,.toml",className:"hidden",ref:j,onChange:V}),P.length>0&&m.jsx("div",{className:"px-3 pt-3",children:m.jsx(CFe,{files:P,onRemoveFile:ve,pdfData:X})}),d&&m.jsx("div",{className:"px-3 pt-3",children:d}),m.jsx("div",{className:"px-3 pt-2",children:q?m.jsxs("div",{className:"relative",children:[ye&&m.jsx("div",{className:"pointer-events-none absolute left-1 top-2 text-[15px] leading-6 text-muted-foreground/60",children:u||E("请输入消息...","Type your message...")}),m.jsx("div",{ref:D,contentEditable:!0,suppressContentEditableWarning:!0,onKeyDown:oe=>{if(oe.key==="Enter"&&!oe.shiftKey){oe.preventDefault(),r?i==null||i():n();return}if(oe.key==="Backspace"||oe.key==="Delete"){const re=D.current;if(!re)return;const ne=window.getSelection();if(!ne||ne.rangeCount===0)return;const be=ne.getRangeAt(0);if(!re.contains(be.startContainer)||!be.collapsed)return;const Ue=be.startContainer,Me=be.startOffset,Ee=Se=>!Se||Se.getAttribute("data-token")!=="ppt"?!1:(Se.remove(),ge(),!0);if(Ue.nodeType===Node.TEXT_NODE){if(oe.key==="Backspace"&&Me===0){const Se=Ue.previousSibling;if(Se&&Se.nodeType===Node.ELEMENT_NODE&&Ee(Se)){oe.preventDefault();return}}if(oe.key==="Delete"&&Me===Ue.data.length){const Se=Ue.nextSibling;if(Se&&Se.nodeType===Node.ELEMENT_NODE&&Ee(Se)){oe.preventDefault();return}}}else if(Ue.nodeType===Node.ELEMENT_NODE){const Ce=Ue.childNodes[Me+(oe.key==="Backspace"?-1:0)];if(Ce&&Ce.nodeType===Node.ELEMENT_NODE&&Ee(Ce)){oe.preventDefault();return}}}},onPaste:Oe,onFocus:()=>W(!0),onBlur:()=>{var re;W(!1);const oe=window.getSelection();if(oe&&oe.rangeCount>0){const ne=oe.getRangeAt(0);(re=D.current)!=null&&re.contains(ne.startContainer)&&(I.current=ne)}ge()},onInput:()=>ge(),onKeyUp:()=>{var re;const oe=window.getSelection();if(oe&&oe.rangeCount>0){const ne=oe.getRangeAt(0);(re=D.current)!=null&&re.contains(ne.startContainer)&&(I.current=ne)}},onMouseUp:()=>{var re;const oe=window.getSelection();if(oe&&oe.rangeCount>0){const ne=oe.getRangeAt(0);(re=D.current)!=null&&re.contains(ne.startContainer)&&(I.current=ne)}},className:gt("w-full bg-transparent border-none px-1 py-2 focus:ring-0 transition-all outline-none text-[15px] leading-6 max-h-[360px] overflow-y-auto min-h-[48px] whitespace-pre-wrap break-words")})]}):m.jsx("textarea",{ref:T,value:e,onChange:oe=>t(oe.target.value),onKeyDown:te,onPaste:Oe,placeholder:u||E("请输入消息...","Type your message..."),className:gt("w-full resize-none bg-transparent border-none px-1 py-2 focus:ring-0 transition-all outline-none text-[15px] leading-6 max-h-[360px] overflow-y-auto min-h-[48px]"),rows:1})}),h&&m.jsx("div",{className:"px-3 pb-2",children:h}),m.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-t border-border/50",children:[m.jsx("div",{className:"flex items-center gap-1",children:a&&m.jsx(Ru,{tooltipContent:an(_,"chat.clearChatTitle"),variant:"ghost",size:"sm",onClick:a,className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive hover:bg-destructive/10",children:m.jsx(Zf,{className:"h-4 w-4"})})}),m.jsxs("div",{className:"flex items-center gap-1",children:[o&&m.jsx(Ru,{tooltipContent:an(_,"chat.historyTitle"),variant:"ghost",size:"sm",onClick:o,disabled:s,className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",children:m.jsx(pE,{className:"h-4 w-4"})}),(S==="all"||S==="imagesOnly")&&m.jsx(Ru,{tooltipContent:an(_,"chat.uploadImage"),variant:"ghost",size:"sm",onClick:Re,className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",children:m.jsx(ao,{className:"h-4 w-4"})}),(S==="all"||S==="filesOnly")&&m.jsx(Ru,{tooltipContent:an(_,"chat.uploadFile"),variant:"ghost",size:"sm",onClick:We,className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",children:m.jsx(Oi,{className:"h-4 w-4"})}),m.jsx("div",{className:"w-px h-5 bg-border mx-1"}),(()=>{const oe=q?ce.trim().length>0:e.trim().length>0,re=P.length>0;return r?m.jsx(Ru,{tooltipContent:an(_,"chat.stop"),variant:"default",size:"sm",onClick:ne=>{ne.preventDefault(),i==null||i()},disabled:!i,className:"h-8 w-8 p-0 rounded-xl shadow-sm","aria-label":an(_,"chat.stop"),children:m.jsx(AE,{className:"h-3.5 w-3.5 fill-current"})}):m.jsx(Ru,{type:"button",onClick:n,tooltipContent:an(_,"chat.send"),disabled:!oe&&!re,variant:"default",size:"sm",className:gt("h-8 w-8 p-0 rounded-xl shadow-sm",!oe&&!re?"opacity-60":""),"aria-label":an(_,"chat.send"),children:m.jsx(bE,{className:"h-4 w-4"})})})()]})]})]})}function uj(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function _Fe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function EFe(e,t,n){const i=Fw((n||{}).ignore||[]),a=NFe(t);let o=-1;for(;++o<a.length;)$H(e,"text",s);function s(c,u){let d=-1,h;for(;++d<u.length;){const f=u[d],g=h?h.children:void 0;if(i(f,g?g.indexOf(f):void 0,h))return;h=f}if(h)return l(c,u)}function l(c,u){const d=u[u.length-1],h=a[o][0],f=a[o][1];let g=0;const v=d.children.indexOf(c);let A=!1,w=[];h.lastIndex=0;let S=h.exec(c.value);for(;S;){const _=S.index,E={index:S.index,input:S.input,stack:[...u,c]};let T=f(...S,E);if(typeof T=="string"&&(T=T.length>0?{type:"text",value:T}:void 0),T===!1?h.lastIndex=_+1:(g!==_&&w.push({type:"text",value:c.value.slice(g,_)}),Array.isArray(T)?w.push(...T):T&&w.push(T),g=_+S[0].length,A=!0),!h.global)break;S=h.exec(c.value)}return A?(g<c.value.length&&w.push({type:"text",value:c.value.slice(g)}),d.children.splice(v,1,...w)):w=[c],v+w.length}}function NFe(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([FFe(i[0]),RFe(i[1])])}return t}function FFe(e){return typeof e=="string"?new RegExp(_Fe(e),"g"):e}function RFe(e){return typeof e=="function"?e:function(){return e}}const VC="phrasing",GC=["autolink","link","image","label"];function PFe(){return{transforms:[BFe],enter:{literalAutolink:MFe,literalAutolinkEmail:qC,literalAutolinkHttp:qC,literalAutolinkWww:qC},exit:{literalAutolink:jFe,literalAutolinkEmail:OFe,literalAutolinkHttp:UFe,literalAutolinkWww:LFe}}}function IFe(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:VC,notInConstruct:GC},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:VC,notInConstruct:GC},{character:":",before:"[ps]",after:"\\/",inConstruct:VC,notInConstruct:GC}]}}function MFe(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function qC(e){this.config.enter.autolinkProtocol.call(this,e)}function UFe(e){this.config.exit.autolinkProtocol.call(this,e)}function LFe(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function OFe(e){this.config.exit.autolinkEmail.call(this,e)}function jFe(e){this.exit(e)}function BFe(e){EFe(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,zFe],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),WFe]],{ignore:["link","linkReference"]})}function zFe(e,t,n,r,i){let a="";if(!b$(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!VFe(n)))return!1;const o=GFe(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function WFe(e,t,n,r){return!b$(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function VFe(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function GFe(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=uj(e,"(");let a=uj(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function b$(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Wf(n)||_w(n))&&(!t||n!==47)}A$.peek=QFe;function qFe(){this.buffer()}function HFe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function XFe(){this.buffer()}function ZFe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function KFe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ml(this.sliceSerialize(e)).toLowerCase(),n.label=t}function $Fe(e){this.exit(e)}function YFe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ml(this.sliceSerialize(e)).toLowerCase(),n.label=t}function JFe(e){this.exit(e)}function QFe(){return"["}function A$(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]"),a}function eRe(){return{enter:{gfmFootnoteCallString:qFe,gfmFootnoteCall:HFe,gfmFootnoteDefinitionLabelString:XFe,gfmFootnoteDefinition:ZFe},exit:{gfmFootnoteCallString:KFe,gfmFootnoteCall:$Fe,gfmFootnoteDefinitionLabelString:YFe,gfmFootnoteDefinition:JFe}}}function tRe(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:A$},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,o){const s=a.createTracker(o);let l=s.move("[^");const c=a.enter("footnoteDefinition"),u=a.enter("label");return l+=s.move(a.safe(a.associationId(r),{before:l,after:"]"})),u(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?`-`:" ")+a.indentLines(a.containerFlow(r,s.current()),t?w$:nRe))),c(),l}}function nRe(e,t,n){return t===0?e:w$(e,t,n)}function w$(e,t,n){return(n?"":" ")+e}const rRe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];S$.peek=lRe;function iRe(){return{canContainEols:["delete"],enter:{strikethrough:oRe},exit:{strikethrough:sRe}}}function aRe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:rRe}],handlers:{delete:S$}}}function oRe(e){this.enter({type:"delete",children:[]},e)}function sRe(e){this.exit(e)}function S$(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function lRe(){return"~"}function cRe(e){return e.length}function uRe(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||cRe,a=[],o=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const y=[],v=[];let A=-1;for(e[u].length>c&&(c=e[u].length);++A<e[u].length;){const w=dRe(e[u][A]);if(n.alignDelimiters!==!1){const S=i(w);v[A]=S,(l[A]===void 0||S>l[A])&&(l[A]=S)}y.push(w)}o[u]=y,s[u]=v}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)a[d]=dj(r[d]);else{const y=dj(r);for(;++d<c;)a[d]=y}d=-1;const h=[],f=[];for(;++d<c;){const y=a[d];let v="",A="";y===99?(v=":",A=":"):y===108?v=":":y===114&&(A=":");let w=n.alignDelimiters===!1?1:Math.max(1,l[d]-v.length-A.length);const S=v+"-".repeat(w)+A;n.alignDelimiters!==!1&&(w=v.length+w+A.length,w>l[d]&&(l[d]=w),f[d]=w),h[d]=S}o.splice(1,0,h),s.splice(1,0,f),u=-1;const g=[];for(;++u<o.length;){const y=o[u],v=s[u];d=-1;const A=[];for(;++d<c;){const w=y[d]||"";let S="",_="";if(n.alignDelimiters!==!1){const E=l[d]-(v[d]||0),T=a[d];T===114?S=" ".repeat(E):T===99?E%2?(S=" ".repeat(E/2+.5),_=" ".repeat(E/2-.5)):(S=" ".repeat(E/2),_=S):_=" ".repeat(E)}n.delimiterStart!==!1&&!d&&A.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&w==="")&&(n.delimiterStart!==!1||d)&&A.push(" "),n.alignDelimiters!==!1&&A.push(S),A.push(w),n.alignDelimiters!==!1&&A.push(_),n.padding!==!1&&A.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&A.push("|")}g.push(n.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return g.join(`-`)}function dRe(e){return e==null?"":String(e)}function dj(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function fRe(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const o=n.indentLines(n.containerFlow(e,a.current()),hRe);return i(),o}function hRe(e,t,n){return">"+(n?"":" ")+e}function pRe(e,t){return fj(e,t.inConstruct,!0)&&!fj(e,t.notInConstruct,!1)}function fj(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function hj(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`-`&&pRe(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\-`}function gRe(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function mRe(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function yRe(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function vRe(e,t,n,r){const i=yRe(n),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(mRe(e,n)){const d=n.enter("codeIndented"),h=n.indentLines(a,xRe);return d(),h}const s=n.createTracker(r),l=i.repeat(Math.max(gRe(a,i)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const d=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${o}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:`-`,encode:["`"],...s.current()})),d()}return u+=s.move(`-`),a&&(u+=s.move(a+`-`)),u+=s.move(l),c(),u}function xRe(e,t,n){return(n?"":" ")+e}function iR(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function bRe(e,t,n,r){const i=iR(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":`-`,...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),o(),c}function ARe(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function sy(e){return"&#x"+e.toString(16).toUpperCase()+";"}function mA(e,t,n){const r=ag(e),i=ag(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}k$.peek=wRe;function k$(e,t,n,r){const i=ARe(n),a=n.enter("emphasis"),o=n.createTracker(r),s=o.move(i);let l=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const c=l.charCodeAt(0),u=mA(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=sy(c)+l.slice(1));const d=l.charCodeAt(l.length-1),h=mA(r.after.charCodeAt(0),d,i);h.inside&&(l=l.slice(0,-1)+sy(d));const f=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:h.outside,before:u.outside},s+l+f}function wRe(e,t,n){return n.options.emphasis||"*"}function SRe(e,t){let n=!1;return $3(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,D_}),!!((!e.depth||e.depth<3)&&V3(e)&&(t.options.setext||n))}function kRe(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(SRe(e,n)){const u=n.enter("headingSetext"),d=n.enter("phrasing"),h=n.containerPhrasing(e,{...a.current(),before:`-`,after:`-`});return d(),u(),h+`-`+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`-`))+1))}const o="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");a.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:`-`,...a.current()});return/^[\t ]/.test(c)&&(c=sy(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),s(),c}D$.peek=DRe;function D$(e){return e.value||""}function DRe(){return"<"}C$.peek=CRe;function C$(e,t,n,r){const i=iR(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),o(),c}function CRe(){return"!"}T$.peek=TRe;function T$(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,a(),i==="full"||!c||c!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function TRe(){return"!"}_$.peek=_Re;function _$(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const o=n.unsafe[a],s=n.compilePattern(o);let l;if(o.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function _Re(){return"`"}function E$(e,t){const n=V3(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}N$.peek=ERe;function N$(e,t,n,r){const i=iR(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(E$(e,n)){const u=n.stack;n.stack=[],s=n.enter("autolink");let d=o.move("<");return d+=o.move(n.containerPhrasing(e,{before:d,after:">",...o.current()})),d+=o.move(">"),s(),n.stack=u,d}s=n.enter("link"),l=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),l()),c+=o.move(")"),s(),c}function ERe(e,t,n){return E$(e,n)?"<":"["}F$.peek=NRe;function F$(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,a(),i==="full"||!c||c!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function NRe(){return"["}function aR(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function FRe(e){const t=aR(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function RRe(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function R$(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function PRe(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?RRe(n):aR(n);const s=e.ordered?o==="."?")":".":FRe(n);let l=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const u=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),R$(n)===o&&u){let d=-1;for(;++d<e.children.length;){const h=e.children[d];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=s),n.bulletCurrent=o;const c=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),c}function IRe(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function MRe(e,t,n,r){const i=IRe(n);let a=n.bulletCurrent||aR(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(d,h,f){return h?(f?"":" ".repeat(o))+d:(f?a:a+" ".repeat(o-a.length))+d}}function URe(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}const LRe=Fw(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ORe(e,t,n,r){return(e.children.some(function(o){return LRe(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function jRe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}P$.peek=BRe;function P$(e,t,n,r){const i=jRe(n),a=n.enter("strong"),o=n.createTracker(r),s=o.move(i+i);let l=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const c=l.charCodeAt(0),u=mA(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=sy(c)+l.slice(1));const d=l.charCodeAt(l.length-1),h=mA(r.after.charCodeAt(0),d,i);h.inside&&(l=l.slice(0,-1)+sy(d));const f=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:h.outside,before:u.outside},s+l+f}function BRe(e,t,n){return n.options.strong||"*"}function zRe(e,t,n,r){return n.safe(e.value,r)}function WRe(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function VRe(e,t,n){const r=(R$(n)+(n.options.ruleSpaces?" ":"")).repeat(WRe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const I$={blockquote:fRe,break:hj,code:vRe,definition:bRe,emphasis:k$,hardBreak:hj,heading:kRe,html:D$,image:C$,imageReference:T$,inlineCode:_$,link:N$,linkReference:F$,list:PRe,listItem:MRe,paragraph:URe,root:ORe,strong:P$,text:zRe,thematicBreak:VRe};function GRe(){return{enter:{table:qRe,tableData:pj,tableHeader:pj,tableRow:XRe},exit:{codeText:ZRe,table:HRe,tableData:HC,tableHeader:HC,tableRow:HC}}}function qRe(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function HRe(e){this.exit(e),this.data.inTable=void 0}function XRe(e){this.enter({type:"tableRow",children:[]},e)}function HC(e){this.exit(e)}function pj(e){this.enter({type:"tableCell",children:[]},e)}function ZRe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,KRe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function KRe(e,t){return t==="|"?t:e}function $Re(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`-`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:o,tableCell:l,tableRow:s}};function o(f,g,y,v){return c(u(f,y,v),f.align)}function s(f,g,y,v){const A=d(f,y,v),w=c([A]);return w.slice(0,w.indexOf(`-`))}function l(f,g,y,v){const A=y.enter("tableCell"),w=y.enter("phrasing"),S=y.containerPhrasing(f,{...v,before:a,after:a});return w(),A(),S}function c(f,g){return uRe(f,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function u(f,g,y){const v=f.children;let A=-1;const w=[],S=g.enter("table");for(;++A<v.length;)w[A]=d(v[A],g,y);return S(),w}function d(f,g,y){const v=f.children;let A=-1;const w=[],S=g.enter("tableRow");for(;++A<v.length;)w[A]=l(v[A],f,g,y);return S(),w}function h(f,g,y){let v=I$.inlineCode(f,g,y);return y.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function YRe(){return{exit:{taskListCheckValueChecked:gj,taskListCheckValueUnchecked:gj,paragraph:QRe}}}function JRe(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:e5e}}}function gj(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function QRe(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a<i.length;){const s=i[a];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function e5e(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let l=I$.listItem(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+o}}function t5e(){return[PFe(),eRe(),iRe(),GRe(),YRe()]}function n5e(e){return{extensions:[IFe(),tRe(e),aRe(),$Re(e),JRe()]}}const r5e={tokenize:c5e,partial:!0},M$={tokenize:u5e,partial:!0},U$={tokenize:d5e,partial:!0},L$={tokenize:f5e,partial:!0},i5e={tokenize:h5e,partial:!0},O$={name:"wwwAutolink",tokenize:s5e,previous:B$},j$={name:"protocolAutolink",tokenize:l5e,previous:z$},ru={name:"emailAutolink",tokenize:o5e,previous:W$},pc={};function a5e(){return{text:pc}}let ff=48;for(;ff<123;)pc[ff]=ru,ff++,ff===58?ff=65:ff===91&&(ff=97);pc[43]=ru;pc[45]=ru;pc[46]=ru;pc[95]=ru;pc[72]=[ru,j$];pc[104]=[ru,j$];pc[87]=[ru,O$];pc[119]=[ru,O$];function o5e(e,t,n){const r=this;let i,a;return o;function o(d){return!Z_(d)||!W$.call(r,r.previous)||oR(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return Z_(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(i5e,u,c)(d):d===45||d===95||so(d)?(a=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),i=!0,l}function u(d){return a&&i&&Ao(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function s5e(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!B$.call(r,r.previous)||oR(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(r5e,e.attempt(M$,e.attempt(U$,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function l5e(e,t,n){const r=this;let i="",a=!1;return o;function o(d){return(d===72||d===104)&&z$.call(r,r.previous)&&!oR(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Ao(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),a?c:(a=!0,l)):n(d)}function c(d){return d===null||X1(d)||Ti(d)||Wf(d)||_w(d)?n(d):e.attempt(M$,e.attempt(U$,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function c5e(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function u5e(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(L$,l,s)(c):c===null||Ti(c)||Wf(c)||c!==45&&_w(c)?l(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function l(c){return i||r||!a?n(c):t(c)}}function d5e(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(L$,t,a)(o):o===null||Ti(o)||Wf(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function f5e(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),a):s===93?(e.consume(s),i):s===60||s===null||Ti(s)||Wf(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Ti(s)||Wf(s)?t(s):r(s)}function a(s){return Ao(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):Ao(s)?(e.consume(s),o):n(s)}}function h5e(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return so(a)?n(a):t(a)}}function B$(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ti(e)}function z$(e){return!Ao(e)}function W$(e){return!(e===47||Z_(e))}function Z_(e){return e===43||e===45||e===46||e===95||so(e)}function oR(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const p5e={tokenize:w5e,partial:!0};function g5e(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:x5e,continuation:{tokenize:b5e},exit:A5e}},text:{91:{name:"gfmFootnoteCall",tokenize:v5e},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:m5e,resolveTo:y5e}}}}function m5e(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const c=Ml(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function y5e(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function v5e(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(a>999||d===93&&!o||d===null||d===91||Ti(d))return n(d);if(d===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(Ml(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ti(d)||(o=!0),a++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function x5e(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(g)}function u(g){if(o>999||g===93&&!s||g===null||g===91||Ti(g))return n(g);if(g===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return a=Ml(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Ti(g)||(s=!0),o++,e.consume(g),g===92?d:u}function d(g){return g===91||g===92||g===93?(e.consume(g),o++,u):u(g)}function h(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(a)||i.push(a),Qr(e,f,"gfmFootnoteDefinitionWhitespace")):n(g)}function f(g){return t(g)}}function b5e(e,t,n){return e.check(Ty,t,e.attempt(p5e,t,n))}function A5e(e){e.exit("gfmFootnoteDefinition")}function w5e(e,t,n){const r=this;return Qr(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function S5e(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let c=l;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[l][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[l][1].end)},d={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[l][1].start)},h=[["enter",u,s],["enter",o[c][1],s],["exit",o[c][1],s],["enter",d,s]],f=s.parser.constructs.insideSpan.null;f&&vs(h,h.length,0,Ew(f,o.slice(c+1,l),s)),vs(h,h.length,0,[["exit",d,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",u,s]]),vs(o,c-1,l-c+3,h),l=c+h.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function a(o,s,l){const c=this.previous,u=this.events;let d=0;return h;function h(g){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(g):(o.enter("strikethroughSequenceTemporary"),f(g))}function f(g){const y=ag(c);if(g===126)return d>1?l(g):(o.consume(g),d++,f);if(d<2&&!n)return l(g);const v=o.exit("strikethroughSequenceTemporary"),A=ag(g);return v._open=!A||A===2&&!!y,v._close=!y||y===2&&!!A,s(g)}}}class k5e{constructor(){this.map=[]}add(t,n,r){D5e(this,t,n,r)}consume(t){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function D5e(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function C5e(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function T5e(){return{flow:{null:{name:"table",tokenize:_5e,resolveAll:E5e}}}}function _5e(e,t,n){const r=this;let i=0,a=0,o;return s;function s(R){let z=r.events.length-1;for(;z>-1;){const P=r.events[z][1].type;if(P==="lineEnding"||P==="linePrefix")z--;else break}const B=z>-1?r.events[z][1].type:null,W=B==="tableHead"||B==="tableRow"?T:l;return W===T&&r.parser.lazy[r.now().line]?n(R):W(R)}function l(R){return e.enter("tableHead"),e.enter("tableRow"),c(R)}function c(R){return R===124||(o=!0,a+=1),u(R)}function u(R){return R===null?n(R):Vn(R)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),f):n(R):zr(R)?Qr(e,u,"whitespace")(R):(a+=1,o&&(o=!1,i+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),o=!0,u):(e.enter("data"),d(R)))}function d(R){return R===null||R===124||Ti(R)?(e.exit("data"),u(R)):(e.consume(R),R===92?h:d)}function h(R){return R===92||R===124?(e.consume(R),d):d(R)}function f(R){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(R):(e.enter("tableDelimiterRow"),o=!1,zr(R)?Qr(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):g(R))}function g(R){return R===45||R===58?v(R):R===124?(o=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),y):E(R)}function y(R){return zr(R)?Qr(e,v,"whitespace")(R):v(R)}function v(R){return R===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),A):R===45?(a+=1,A(R)):R===null||Vn(R)?_(R):E(R)}function A(R){return R===45?(e.enter("tableDelimiterFiller"),w(R)):E(R)}function w(R){return R===45?(e.consume(R),w):R===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(R))}function S(R){return zr(R)?Qr(e,_,"whitespace")(R):_(R)}function _(R){return R===124?g(R):R===null||Vn(R)?!o||i!==a?E(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):E(R)}function E(R){return n(R)}function T(R){return e.enter("tableRow"),D(R)}function D(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),D):R===null||Vn(R)?(e.exit("tableRow"),t(R)):zr(R)?Qr(e,D,"whitespace")(R):(e.enter("data"),I(R))}function I(R){return R===null||R===124||Ti(R)?(e.exit("data"),D(R)):(e.consume(R),R===92?j:I)}function j(R){return R===92||R===124?(e.consume(R),I):I(R)}}function E5e(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,c,u,d;const h=new k5e;for(;++n<e.length;){const f=e[n],g=f[1];f[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(mj(h,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",c,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",u,t]])),i=g.type==="tableDelimiterRow"?2:u?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=Qx(h,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=Qx(h,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):g.type==="tableHead"?(s=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,a[1]!==0?(o[0]=o[1],d=Qx(h,t,a,i,n,d)):o[1]!==0&&(d=Qx(h,t,o,i,n,d)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&mj(h,t,l,c,u),h.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=C5e(t.events,n))}return e}function Qx(e,t,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},gp(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=gp(t.events,n[1]);if(a={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const c=gp(t.events,n[2]),u=gp(t.events,n[3]),d={type:s,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const h=t.events[n[2]],f=t.events[n[3]];if(h[1].end=Object.assign({},f[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,y=n[3]-n[2]-1;e.add(g,y,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},gp(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function mj(e,t,n,r,i){const a=[],o=gp(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function gp(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const N5e={name:"tasklistCheck",tokenize:R5e};function F5e(){return{text:{91:N5e}}}function R5e(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Ti(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return Vn(l)?t(l):zr(l)?e.check({tokenize:P5e},t,n)(l):n(l)}}function P5e(e,t,n){return Qr(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function I5e(e){return FH([a5e(),g5e(),S5e(e),T5e(),F5e()])}const M5e={};function V$(e){const t=this,n=e||M5e,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(I5e(n)),a.push(t5e()),o.push(n5e(n))}const U5e=nF,L5e=Iw,O5e=Mw,j5e=({children:e,as:t="p",className:n,duration:r=2,spread:i=2})=>{const a=Rl.create(t),o=N.useMemo(()=>((e==null?void 0:e.length)??0)*i,[e,i]);return m.jsx(a,{animate:{backgroundPosition:"0% center"},className:gt("relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent","[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",n),initial:{backgroundPosition:"100% center"},style:{"--spread":`${o}px`,backgroundImage:"var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))"},transition:{repeat:Number.POSITIVE_INFINITY,duration:r,ease:"linear"},children:e})},B5e=N.memo(j5e),G$=N.createContext(null),z5e=()=>{const e=N.useContext(G$);if(!e)throw new Error("Reasoning components must be used within Reasoning");return e},W5e=1e3,V5e=1e3,q$=N.memo(({className:e,isStreaming:t=!1,open:n,defaultOpen:r=!0,onOpenChange:i,duration:a,children:o,...s})=>{const[l,c]=tl({prop:n,defaultProp:r,onChange:i}),[u,d]=tl({prop:a,defaultProp:void 0}),[h,f]=N.useState(!1),[g,y]=N.useState(null);N.useEffect(()=>{t?g===null&&y(Date.now()):g!==null&&(d(Math.ceil((Date.now()-g)/V5e)),y(null))},[t,g,d]),N.useEffect(()=>{if(r&&!t&&l&&!h){const A=setTimeout(()=>{c(!1),f(!0)},W5e);return()=>clearTimeout(A)}},[t,l,r,c,h]);const v=A=>{c(A)};return m.jsx(G$.Provider,{value:{isStreaming:t,isOpen:l,setIsOpen:c,duration:u},children:m.jsx(U5e,{className:gt("not-prose mb-4",e),onOpenChange:v,open:l,...s,children:o})})}),H$=N.memo(({className:e,children:t,getThinkingMessage:n,...r})=>{const{isStreaming:i,isOpen:a,duration:o}=z5e(),s=pa(),l=(d,h)=>s==="zh"?d:h,u=(n||((d,h)=>d||h===0?m.jsx(B5e,{duration:1,children:l("思考中...","Thinking...")}):h===void 0?m.jsx("p",{children:l("已思考数秒","Thought for a few seconds")}):m.jsx("p",{children:l(`已思考 ${h} 秒`,`Thought for ${h} seconds`)})))(i,o);return m.jsx(L5e,{className:gt("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...r,children:t??m.jsxs(m.Fragment,{children:[m.jsx(SA,{className:"size-4"}),u,m.jsx(Wo,{className:gt("size-4 transition-transform",a?"rotate-180":"rotate-0")})]})})}),X$=N.memo(({className:e,children:t,...n})=>m.jsx(O5e,{className:gt("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n,children:m.jsx("div",{className:"whitespace-pre-wrap",children:t})}));q$.displayName="Reasoning";H$.displayName="ReasoningTrigger";X$.displayName="ReasoningContent";function Z$({className:e,children:t,...n}){return m.jsxs(oF,{"data-slot":"scroll-area",className:gt("relative",e),...n,children:[m.jsx(sF,{"data-slot":"scroll-area-viewport",className:"ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 !overflow-x-hidden",children:t}),m.jsx(G5e,{}),m.jsx(lF,{})]})}function G5e({className:e,orientation:t="vertical",...n}){return m.jsx(Uw,{"data-slot":"scroll-area-scrollbar",orientation:t,className:gt("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:m.jsx(Lw,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}const XC=new Map;function q5e(e){const t=String(e||"").trim();if(!t)return t;const r=t.replace(/\r\n/g,`-`).replace(/>\s*</g,`>-<`).split(`-`);let i=0;const a=" ";return r.map(o=>o.trim()).filter(o=>o.length>0).map(o=>{/^<\//.test(o)&&(i=Math.max(i-1,0));const s=`${a.repeat(i)}${o}`;return/^<[^!?/][^>]*>$/.test(o)&&!/\/>$/.test(o)&&!/^<[^>]+>.*<\/[^>]+>$/.test(o)&&(i+=1),s}).join(`-`)}function H5e({code:e,language:t="xml",isStreaming:n=!1,blockId:r,onApply:i}){const a=pa(),o=(R,z)=>a==="zh"?R:z,[s,l]=N.useState(()=>r&&XC.has(r)?!!XC.get(r):!0),[c,u]=N.useState(!1),[d,h]=N.useState(!1),[f,g]=N.useState(!1),[y,v]=N.useState(!1),[A,w]=N.useState(!1),S=N.useMemo(()=>(t||"text").toLowerCase(),[t]),_=N.useMemo(()=>String(e??""),[e]),E=N.useMemo(()=>{const R=S;return R==="svg"?"xml":R==="yml"?"yaml":R==="shell"||R==="sh"||R==="zsh"?"bash":R==="ts"?"typescript":R==="tsx"?"tsx":R==="js"?"javascript":R==="md"?"markdown":new Set(["text","xml","json","javascript","typescript","tsx","jsx","python","bash","yaml","markdown","css","html"]).has(R)?R:"text"},[S]),T=N.useMemo(()=>{if(E==="xml"||E==="html")return q5e(_);if(E==="json")try{return JSON.stringify(JSON.parse(_),null,2)}catch{return _}return _},[_,E]),D=async()=>{try{await navigator.clipboard.writeText(_),u(!0),h(!1),setTimeout(()=>u(!1),1500)}catch{h(!0),u(!1),setTimeout(()=>h(!1),1500)}},I=async()=>{if(!(!i||f))try{if(g(!0),await i(_,S)===!1){w(!0),v(!1),setTimeout(()=>w(!1),1500);return}v(!0),w(!1),setTimeout(()=>v(!1),1500)}catch{w(!0),v(!1),setTimeout(()=>w(!1),1500)}finally{g(!1)}},j=R=>{l(R),r&&XC.set(r,R)};return m.jsxs("div",{className:"my-3 w-full min-w-0 max-w-full overflow-hidden rounded-xl border border-border/60 bg-muted/30",children:[m.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-muted/50",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"w-6 h-6 rounded-md bg-primary/10 flex items-center justify-center",children:m.jsx(fE,{className:"w-3.5 h-3.5 text-primary"})}),m.jsx("span",{className:"text-sm font-medium text-foreground/80",children:o("生成 CAD","Generate CAD")})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[n?m.jsx("div",{className:"h-4 w-4 border-2 border-primary border-t-transparent rounded-full animate-spin"}):m.jsx("span",{className:"text-xs font-medium text-green-600 bg-green-50 px-2 py-0.5 rounded-full",children:o("完成","Complete")}),m.jsxs("div",{className:"flex items-center gap-1",children:[i&&m.jsxs("button",{type:"button",onClick:I,disabled:f,className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-[10px] text-muted-foreground hover:bg-muted transition-colors disabled:opacity-60 disabled:cursor-not-allowed",title:y?o("已应用","Applied"):A?o("应用失败","Apply failed"):o("应用到画布","Apply to canvas"),children:[f?m.jsx("div",{className:"h-3 w-3 border-2 border-primary border-t-transparent rounded-full animate-spin"}):y?m.jsx(qo,{className:"h-3 w-3 text-green-500"}):A?m.jsx(Va,{className:"h-3 w-3 text-red-500"}):m.jsx(cy,{className:"h-3 w-3"}),m.jsx("span",{children:f?o("应用中","Applying"):y?o("已应用","Applied"):o("应用","Apply")})]}),m.jsx("button",{type:"button",onClick:()=>j(!s),className:"p-1 rounded hover:bg-muted transition-colors",children:s?m.jsx(qu,{className:"w-4 h-4 text-muted-foreground"}):m.jsx(Wo,{className:"w-4 h-4 text-muted-foreground"})})]})]})]}),s&&m.jsxs("div",{className:"px-4 py-3 border-t border-border/40 bg-muted/20",children:[m.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[m.jsx("span",{className:"text-[10px] uppercase text-muted-foreground",children:S}),m.jsxs("button",{type:"button",onClick:D,className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-[10px] text-muted-foreground hover:bg-muted transition-colors",title:c?o("已复制","Copied"):d?o("复制失败","Copy failed"):o("复制代码","Copy code"),children:[c?m.jsx(qo,{className:"h-3 w-3 text-green-500"}):d?m.jsx(Va,{className:"h-3 w-3 text-red-500"}):m.jsx(Ku,{className:"h-3 w-3"}),m.jsx("span",{children:c?o("已复制","Copied"):o("复制","Copy")})]})]}),m.jsx(uF,{theme:Ww.github,code:T,language:E,children:({className:R,style:z,tokens:B,getLineProps:W,getTokenProps:P})=>m.jsx("pre",{className:"text-[11px] leading-relaxed overflow-x-hidden overflow-y-auto max-h-48 scrollbar-thin whitespace-pre-wrap break-words",style:{...z,fontFamily:"var(--font-mono), ui-monospace, monospace",backgroundColor:"transparent",margin:0,padding:0,wordBreak:"break-word",whiteSpace:"pre-wrap"},children:B.map((Z,Q)=>m.jsx("div",{...W({line:Z}),style:{wordBreak:"break-word"},children:Z.map((X,q)=>m.jsx("span",{...P({token:X})},q))},Q))})})]})]})}function X5e(e,t){const n=String(e).toLowerCase(),r=String(t||"").trim();if(!r)return!1;if(n==="json")try{const i=JSON.parse(r);return String((i==null?void 0:i.type)||"").trim().toLowerCase()==="cad_patch"&&String((i==null?void 0:i.target)||"").trim().toLowerCase()==="2d_svg"}catch{return!1}return!1}function yj({onApplyCode:e,code:t,language:n}){return N.useEffect(()=>{e&&e(t,n)},[e,t,n]),null}function vj(e){const t=[],n=/\[(PDF|File):\s*([^\]]+)\]\n([\s\S]*?)(?=\n\n\[(PDF|File):|$)/g;let r=0,i;for(;(i=n.exec(e))!==null;){const o=e.slice(r,i.index).trim();o&&t.push({type:"text",content:o});const s=i[1].toLowerCase()==="pdf"?"pdf":"text",l=i[2].trim(),c=i[3].trim();t.push({type:"file",content:c,filename:l,charCount:c.length,fileType:s}),r=i.index+i[0].length}const a=e.slice(r).trim();return a&&t.push({type:"text",content:a}),t.length===0&&t.push({type:"text",content:e}),t}function xj(e){const t=String(e||"").split(/\r?\n/),n=[],r=[];for(const a of t){const o=a.match(/^\[\[PPT_SLIDE\|(\d+)\|([^|]*)\|(outline|slide_image)\]\]$/);if(o){const l=Number(o[1]),c=String(o[2]||"").trim(),u=o[3];Number.isNaN(l)||n.push({n:l,title:c||void 0,kind:u});continue}const s=a.match(/^\[\[PPT_SLIDE\|(\d+)\|(.*)\]\]$/);if(s){const l=Number(s[1]),c=String(s[2]||"").trim();Number.isNaN(l)||n.push({n:l,title:c||void 0,kind:"slide_image"});continue}r.push(a)}const i=r.join(`-`).replace(/^\s+|\s+$/g,"");return{tags:n,rest:i}}function bj(e){const t=String(e||"").split(/\r?\n/),n=[],r=[];for(const a of t){const o=a.match(/^\[\[IMAGE\|([^|]*)\|([\s\S]+)\]\]$/);if(o){const s=String(o[1]||"").trim(),l=String(o[2]||"").trim();if(l.startsWith("data:image")||l.startsWith("blob:")||l.startsWith("http://")||l.startsWith("https://")){n.push({name:s||void 0,url:l});continue}}r.push(a)}const i=r.join(`-`).replace(/^\s+|\s+$/g,"");return{images:n,rest:i}}function Aj(e){const t=String(e||""),n=[],r=/\[\[PPT_SLIDE\|(\d+)\|([\s\S]*?)\]\]/g;let i=0,a;for(;a=r.exec(t);){const s=t.slice(i,a.index);s&&n.push({type:"text",text:s});const l=Number(a[1]),c=String(a[2]||"").trim();if(Number.isNaN(l))n.push({type:"text",text:a[0]});else{let u="slide_image",d=c;const h=c.split("|");if(h.length>=2){const f=h[h.length-1].trim();(f==="outline"||f==="slide_image")&&(u=f,d=h.slice(0,-1).join("|").trim())}n.push({type:"ppt",n:l,title:d||void 0,kind:u})}i=a.index+a[0].length}const o=t.slice(i);return o&&n.push({type:"text",text:o}),n.length===0&&n.push({type:"text",text:t}),n}function Z5e(e){const t=String(e||"");if(!t)return[];const n=[],r=a=>{const o=a.replace(/^\n+|\n+$/g,"");o.trim().length!==0&&n.push({type:"markdown",content:o})};let i=0;for(;i<t.length;){const a=t.indexOf("```",i);if(a<0){r(t.slice(i));break}r(t.slice(i,a));const o=a+3,s=t.indexOf(`-`,o),l=s>=0,c=l?t.slice(o,s):t.slice(o),u=String(c||"").trim().split(/\s+/)[0].toLowerCase()||"text",d=l?s+1:o,h=t.indexOf("```",d);if(h<0){const g=l?String(t.slice(d)).replace(/\r\n/g,`-`).replace(/\n$/,""):"";n.push({type:"code",language:u,code:g}),i=t.length;break}const f=String(t.slice(d,h)).replace(/\r\n/g,`-`).replace(/\n$/,"");n.push({type:"code",language:u,code:f}),i=h+3}return n.length===0&&t.trim().length>0&&n.push({type:"markdown",content:t.trim()}),n}const mp=e=>e.parts&&e.parts.length>0?e.parts.filter(t=>t.type==="text").map(t=>t.text||"").join(`-`):e.content||"",eb=e=>{const t=mp(e),n=/\n\n\[(PDF|File):\s*[^\]]+\]\n[\s\S]*$/;return t.replace(n,"").trim()};function wj(e){const t=String(e||"").trim();if(!t)return null;const n=t.match(/```(?:json)?\s*([\s\S]*?)\s*```/i),r=((n==null?void 0:n[1])??t).trim();let i;try{i=JSON.parse(r)}catch{return null}if(Array.isArray(i))return{type:"ppt_edit",slides:i.filter(l=>l&&typeof l=="object")};if(!i||typeof i!="object")return null;const a=String(i.type||"").trim().toLowerCase();if(a&&a!=="ppt_edit")return null;const o="ppt_edit",s=Array.isArray(i.slides)?i.slides.filter(l=>l&&typeof l=="object"):[];return s.length>0?{type:o,slides:s}:null}function K5e(e){const t=String(e||"").trim();if(!t)return null;const n=t.match(/```(?:json)?\s*([\s\S]*?)\s*```/i),r=String((n==null?void 0:n[1])??t).trim();let i;try{i=JSON.parse(r)}catch{return null}if(!i||typeof i!="object"||String((i==null?void 0:i.type)||"").trim()!=="cad_patch"||String((i==null?void 0:i.target)||"").trim()!=="2d_svg"||String((i==null?void 0:i.mode)||"").trim()!=="patch")return null;const a=Array.isArray(i==null?void 0:i.edits)?i.edits.filter(o=>o&&typeof o=="object"&&typeof o.search=="string"&&typeof o.replace=="string").map(o=>({search:String(o.search),replace:String(o.replace)})):[];return a.length===0?null:{type:"cad_patch",target:"2d_svg",mode:"patch",edits:a}}function $5e(e,t){const r=String((e==null?void 0:e.id)||"").match(/slide-(\d+)/i);if(r){const i=Number(r[1]);if(!Number.isNaN(i))return i}return t+1}function Y5e(e){const t=["title","description","layout","note","content"],n=[];for(const r of t){if(!(r in e))continue;const i=e[r];if(Array.isArray(i)){const a=i.map(o=>String(o||"").trim()).filter(Boolean).join(";");n.push({key:r,value:a||"(空)"});continue}if(i&&typeof i=="object"){n.push({key:r,value:JSON.stringify(i)});continue}n.push({key:r,value:String(i??"").trim()||"(空)"})}for(const[r,i]of Object.entries(e))r==="id"||t.includes(r)||i!==void 0&&n.push({key:r,value:typeof i=="string"?i:JSON.stringify(i)});return n}function J5e(e,t){const r={title:{zh:"标题",en:"Title"},description:{zh:"画面描述",en:"Description"},layout:{zh:"布局",en:"Layout"},note:{zh:"备注",en:"Note"},content:{zh:"内容",en:"Content"}}[e];return r?t==="zh"?r.zh:r.en:e}function Q5e({edits:e,uiLang:t}){const n=(r,i)=>t==="zh"?r:i;return m.jsx("div",{className:"space-y-3",children:e.map((r,i)=>m.jsxs("div",{className:"rounded-lg border border-border/50 overflow-hidden bg-background/50",children:[m.jsx("div",{className:"px-3 py-1.5 bg-muted/40 border-b border-border/30 flex items-center gap-2",children:m.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:n(`修改 ${i+1}`,`Change ${i+1}`)})}),m.jsxs("div",{className:"divide-y divide-border/30",children:[m.jsxs("div",{className:"px-3 py-2",children:[m.jsxs("div",{className:"flex items-center gap-1.5 mb-1.5",children:[m.jsx(see,{className:"w-3 h-3 text-red-500"}),m.jsx("span",{className:"text-[10px] font-medium text-red-600 uppercase tracking-wide",children:n("删除","Remove")})]}),m.jsx("pre",{className:"text-[11px] font-mono text-red-700 bg-red-50 rounded px-2 py-1.5 overflow-x-auto whitespace-pre-wrap break-all",children:r.search})]}),m.jsxs("div",{className:"px-3 py-2",children:[m.jsxs("div",{className:"flex items-center gap-1.5 mb-1.5",children:[m.jsx(DB,{className:"w-3 h-3 text-green-500"}),m.jsx("span",{className:"text-[10px] font-medium text-green-600 uppercase tracking-wide",children:n("新增","Add")})]}),m.jsx("pre",{className:"text-[11px] font-mono text-green-700 bg-green-50 rounded px-2 py-1.5 overflow-x-auto whitespace-pre-wrap break-all",children:r.replace})]})]})]},`${(r.search||"").slice(0,40)}-${(r.replace||"").slice(0,40)}-${i}`))})}function ePe({messages:e,setInput:t,onApplyCode:n,onRegenerate:r,onEditMessage:i,status:a="idle",onDisplayChart:o}){const s=pa(),l=(q,te)=>s==="zh"?q:te,c=N.useRef(null),u=N.useRef(null),[d,h]=N.useState(null),[f,g]=N.useState(null),y=N.useRef(null),[v,A]=N.useState(""),[w,S]=N.useState({}),[_,E]=N.useState({}),[T,D]=N.useState({}),[I,j]=N.useState(!0),R=N.useRef(null),z=N.useRef(!1),B=N.useRef(0),W=N.useRef(0),P=N.useRef(new Set),Z=async(q,te)=>{try{await navigator.clipboard.writeText(te),h(q),setTimeout(()=>h(null),2e3)}catch{const ee=document.createElement("textarea");ee.value=te,ee.style.position="fixed",ee.style.left="-9999px",ee.style.opacity="0",document.body.appendChild(ee);try{if(ee.select(),!document.execCommand("copy"))throw new Error("Copy command failed");h(q),setTimeout(()=>h(null),2e3)}catch(le){console.error("Failed to copy message:",le)}finally{document.body.removeChild(ee)}}},Q=N.useCallback(()=>{const q=c.current;return q?q.querySelector('[data-slot="scroll-area-viewport"]')||q.querySelector("[data-radix-scroll-area-viewport]"):null},[]),X=N.useCallback((q="auto")=>{var J;const te=Q();if(!te){(J=u.current)==null||J.scrollIntoView({behavior:q});return}te.scrollTo({top:te.scrollHeight,behavior:q})},[Q]);return N.useEffect(()=>{let q=!0,te=null,J=0;const ee=()=>{if(!q)return;const le=Q();if(!le){J=requestAnimationFrame(ee);return}const G=24,xe=()=>{const ce=le.scrollHeight-le.scrollTop-le.clientHeight<=G,ye=le.scrollTop,Fe=ye<B.current;B.current=ye,ce?z.current=!1:Fe&&(z.current=!0),j(ce)},ge=ue=>{ue.deltaY<0&&(z.current=!0,j(!1))};B.current=le.scrollTop,xe(),le.addEventListener("scroll",xe,{passive:!0}),le.addEventListener("wheel",ge,{passive:!0}),te=()=>{le.removeEventListener("scroll",xe),le.removeEventListener("wheel",ge)}};return ee(),()=>{q=!1,J&&cancelAnimationFrame(J),te&&te()}},[Q,e.length]),N.useEffect(()=>()=>{R.current!==null&&(typeof cancelAnimationFrame=="function"?cancelAnimationFrame(R.current):typeof window<"u"&&window.clearTimeout(R.current),R.current=null)},[]),N.useEffect(()=>{if(!I||z.current||R.current!==null)return;const q=W.current,te=e.length;if(!(te!==q)&&a==="streaming")return;const ee=a==="streaming"?"auto":"smooth",le=G=>typeof requestAnimationFrame=="function"?requestAnimationFrame(G):typeof window<"u"?window.setTimeout(G,16):0;R.current=le(()=>{R.current=null,X(ee)}),W.current=te},[e.length,a,I,X]),N.useEffect(()=>{f&&y.current&&y.current.focus()},[f]),N.useEffect(()=>{const q=e[e.length-1];if(q&&q.role==="assistant"&&o){const J=mp(q).match(/```xml\n([\s\S]*?)\n```/);J&&J[1]}},[e,o]),m.jsxs("div",{ref:c,className:"h-full w-full relative",onWheelCapture:q=>{q.deltaY<0&&(z.current=!0,j(!1))},children:[m.jsx(Z$,{className:"h-full w-full scrollbar-thin",children:m.jsxs("div",{className:"py-5 px-5 space-y-5",children:[e.map((q,te)=>{var re;const J=q.role==="user"?mp(q):"",ee=q.role==="assistant"&&(te===e.length-1||e.slice(te+1).every(ne=>ne.role!=="assistant")),le=q.role==="user"&&(te===e.length-1||e.slice(te+1).every(ne=>ne.role!=="user")),G=f===q.id,xe=mp(q),{images:ge,rest:ue}=bj(xe),{tags:ce,rest:ye}=xj(ue),Fe=vj(ye),Oe=Fe.some(ne=>ne.type==="text"&&String(ne.content||"").trim().length>0),Le=Fe.some(ne=>ne.type==="file"&&String(ne.content||"").trim().length>0),Re=Fe.some(ne=>ne.type==="text"&&!!wj(String(ne.content||""))),We=(q.parts||[]).some(ne=>(ne==null?void 0:ne.type)==="reasoning"&&String(ne.text||"").trim().length>0),V=ge.length>0||ce.length>0||Oe||Le||Re||We,ve=q.role==="assistant"&&!V,oe=q.role==="user"&&le&&(a==="submitted"||a==="streaming");return ve?null:m.jsxs(Dt.Fragment,{children:[m.jsx("div",{className:`flex w-full ${q.role==="user"?"justify-end":"justify-start"}`,children:m.jsxs("div",{className:gt("max-w-[95%] min-w-0 flex flex-col overflow-hidden",q.role==="user"?"items-end":"items-start"),children:[m.jsxs("div",{className:gt("order-1 w-full min-w-0 max-w-full overflow-hidden text-sm leading-relaxed",q.role==="assistant"?"":q.role==="user"?"px-4 py-3 bg-background text-foreground rounded-2xl rounded-br-md border border-border/50 shadow-sm":"px-4 py-3 bg-destructive/10 text-destructive border border-destructive/20 rounded-2xl rounded-bl-md",q.role==="user"&&le&&i?"cursor-pointer hover:opacity-90 transition-opacity":""),role:q.role==="user"&&le&&i?"button":void 0,tabIndex:q.role==="user"&&le&&i?0:void 0,title:q.role==="user"&&le&&i?l("点击编辑","Click to edit"):void 0,onClick:()=>{G||q.role!=="user"||!le||!i||(g(q.id),A(eb(q)))},onKeyDown:ne=>{G||q.role!=="user"||!le||!i||(ne.key==="Enter"||ne.key===" ")&&(ne.preventDefault(),g(q.id),A(eb(q)))},children:[(re=q.parts)==null?void 0:re.map((ne,be)=>{var Ue;if(ne.type==="reasoning"){const Me=be===(((Ue=q.parts)==null?void 0:Ue.length)??0)-1,Ee=a==="streaming"&&Me&ⅇreturn m.jsxs(q$,{className:"w-full",isStreaming:Ee,defaultOpen:Ee,children:[m.jsx(H$,{}),m.jsx(X$,{children:ne.text||""})]},`reasoning-${be}`)}return null}),(()=>{const ne=mp(q),{images:be,rest:Ue}=bj(ne),{tags:Me,rest:Ee}=xj(Ue);if(!Ee&&be.length===0)return null;if(G&&q.role==="user"){const Ce=Aj(v);return m.jsxs("div",{className:"flex flex-col gap-2 min-w-[300px]",onClick:pe=>pe.stopPropagation(),children:[m.jsxs("div",{className:"relative w-full",children:[m.jsx("textarea",{ref:y,value:v,onChange:pe=>A(pe.target.value),onClick:pe=>pe.stopPropagation(),className:"relative z-10 w-full px-3 py-2 text-sm rounded-md border border-input bg-transparent text-transparent caret-foreground resize-none focus:outline-none focus:ring-2 focus:ring-primary",rows:4}),m.jsx("div",{className:"pointer-events-none absolute inset-0 z-0 overflow-hidden rounded-md border border-input bg-background px-3 py-2 text-sm leading-6 whitespace-pre-wrap break-words text-foreground",children:Ce.map((pe,ke)=>{if(pe.type==="text")return m.jsx("span",{children:pe.text},`edit-t-${ke}`);const Ve=pe.kind==="outline"?"outline":"slide_image",Xe=pe.title?l(`第 ${pe.n} 页:${pe.title}`,`Slide ${pe.n}: ${pe.title}`):l(`第 ${pe.n} 页`,`Slide ${pe.n}`);return m.jsxs("span",{className:gt("mx-0.5 inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium align-middle",Ve==="outline"?"border-blue-200 bg-blue-50 text-blue-700 dark:border-blue-400/30 dark:bg-blue-950/40 dark:text-blue-200":"border-red-200 bg-red-50 text-red-700 dark:border-red-400/30 dark:bg-red-950/40 dark:text-red-200"),children:[m.jsx("span",{className:gt("inline-flex h-4 w-4 items-center justify-center rounded-full text-[10px] font-semibold text-white",Ve==="outline"?"bg-blue-600":"bg-red-600"),children:Ve==="outline"?"T":"P"}),Xe]},`edit-ppt-${ke}`)})})]}),m.jsxs("div",{className:"flex justify-end gap-2",children:[m.jsx("button",{onClick:pe=>{pe.stopPropagation(),g(null)},className:"px-3 py-1 text-xs rounded bg-muted hover:bg-muted/80 text-foreground",children:l("取消","Cancel")}),m.jsx("button",{onClick:pe=>{pe.stopPropagation(),v.trim()&&i&&(i(te,v.trim()),g(null))},className:"px-3 py-1 text-xs rounded bg-primary hover:bg-primary/90 text-primary-foreground",children:l("重新发送","Resend")})]})]})}const Se=vj(Ee);return m.jsxs("div",{className:"w-full min-w-0 space-y-3",children:[be.length>0&&m.jsx("div",{className:"space-y-2",children:be.map((Ce,pe)=>m.jsx("div",{className:gt("overflow-hidden rounded-lg border border-border/60 bg-black/5 dark:bg-white/5","max-w-[420px] mx-auto"),children:m.jsx("img",{src:Ce.url,alt:Ce.name||"image",className:"w-full max-h-[240px] object-contain bg-black/5"})},`${q.id}-img-${pe}`))}),Me.length>0&&m.jsx("div",{className:"flex flex-wrap gap-1.5",children:Me.map((Ce,pe)=>m.jsxs("span",{className:gt("inline-flex items-center rounded-full border px-2 py-0.5 text-[11px] leading-4",q.role==="user"?Ce.kind==="outline"?"border-blue-200 bg-blue-50 text-blue-700 dark:border-blue-400/30 dark:bg-blue-950/40 dark:text-blue-200":"border-red-200 bg-red-50 text-red-700 dark:border-red-400/30 dark:bg-red-950/40 dark:text-red-200":"border-border bg-muted/40 text-foreground"),children:[m.jsx("span",{className:gt("mr-1 inline-flex h-4 w-4 items-center justify-center rounded-full text-[10px] font-semibold text-white",Ce.kind==="outline"?"bg-blue-600":"bg-red-600"),children:Ce.kind==="outline"?"T":"P"}),Ce.title?l(`第 ${Ce.n} 页:${Ce.title}`,`Slide ${Ce.n}: ${Ce.title}`):l(`第 ${Ce.n} 页`,`Slide ${Ce.n}`)]},`${q.id}-ppttag-${pe}-${Ce.n}`))}),Se.map((Ce,pe)=>{if(Ce.type==="text"&&!String(Ce.content||"").trim())return null;if(Ce.type==="file"){const Ae=`${q.id}-file-${pe}`,se=w[Ae]||!1;return m.jsxs("div",{className:"rounded-lg border border-border/50 bg-background/50 overflow-hidden",children:[m.jsxs("button",{onClick:()=>S(Te=>({...Te,[Ae]:!se})),className:"w-full flex items-center justify-between px-3 py-2 hover:bg-muted/50 transition-colors",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[Ce.fileType==="pdf"?m.jsx(Oi,{className:"h-4 w-4 text-red-500"}):m.jsx(eu,{className:"h-4 w-4 text-blue-500"}),m.jsx("span",{className:"text-xs font-medium truncate max-w-[150px] text-foreground",children:Ce.filename}),m.jsxs("span",{className:"text-[10px] text-muted-foreground",children:["(",Ce.charCount," chars)"]})]}),se?m.jsx(qu,{className:"h-4 w-4 text-foreground"}):m.jsx(Wo,{className:"h-4 w-4 text-foreground"})]}),se&&m.jsx("div",{className:"px-3 py-2 border-t border-border/50 max-h-48 overflow-y-auto bg-muted/20",children:m.jsx("pre",{className:"text-[10px] whitespace-pre-wrap text-muted-foreground font-mono",children:Ce.content})})]},Ae)}let ke=0;if(q.role==="user"){const Ae=Aj(Ce.content);return m.jsx("div",{className:"text-[15px] leading-6 whitespace-pre-wrap break-words text-foreground",children:Ae.map((se,Te)=>{if(se.type==="text")return m.jsx("span",{children:se.text},`${pe}-t-${Te}`);const $=se.kind==="outline"?"outline":"slide_image",de=se.title?l(`第 ${se.n} 页:${se.title}`,`Slide ${se.n}: ${se.title}`):l(`第 ${se.n} 页`,`Slide ${se.n}`);return m.jsxs("span",{className:gt("mx-1 inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium align-middle",$==="outline"?"border-blue-200 bg-blue-50 text-blue-700 dark:border-blue-400/30 dark:bg-blue-950/40 dark:text-blue-200":"border-red-200 bg-red-50 text-red-700 dark:border-red-400/30 dark:bg-red-950/40 dark:text-red-200"),title:l(`幻灯片 · ${de}`,`Slide · ${de}`),children:[m.jsx("span",{className:gt("inline-flex h-4 w-4 items-center justify-center rounded-full text-[10px] font-semibold text-white",$==="outline"?"bg-blue-600":"bg-red-600"),children:$==="outline"?"T":"P"}),de]},`${pe}-ppt-${Te}`)})},pe)}const Ve=q.role==="assistant"?wj(Ce.content):null;if(Ve&&Ve.slides.length>0)return m.jsx("div",{className:"w-full min-w-0 space-y-2",children:Ve.slides.map((Ae,se)=>{const Te=$5e(Ae,se),$=Y5e(Ae),de=`${q.id}-ppt-edit-${pe}-${se}`,F=_[de]??!1;return m.jsxs("div",{className:"w-full min-w-0 overflow-hidden rounded-xl border border-border/60 bg-background/70",children:[m.jsxs("button",{type:"button",onClick:()=>E(De=>({...De,[de]:!F})),className:"flex w-full items-center justify-between px-3 py-2 text-left hover:bg-muted/40",children:[m.jsxs("span",{className:"inline-flex items-center gap-2 text-sm font-medium text-foreground",children:[m.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-emerald-500"}),l(`第 ${Te} 张幻灯片`,`Slide ${Te}`)]}),F?m.jsx(qu,{className:"h-4 w-4 text-muted-foreground"}):m.jsx(Wo,{className:"h-4 w-4 text-muted-foreground"})]}),F&&m.jsx("div",{className:"space-y-2 border-t border-border/50 px-3 py-2",children:$.map((De,He)=>m.jsxs("div",{className:"rounded-lg border border-border/40 bg-muted/20 px-2.5 py-2",children:[m.jsx("div",{className:"mb-1 text-[11px] font-medium uppercase tracking-wide text-muted-foreground",children:J5e(De.key,s)}),m.jsx("div",{className:"whitespace-pre-wrap break-words text-sm text-foreground",children:De.value})]},`${q.id}-ppt-edit-row-${pe}-${se}-${He}`))})]},de)})},pe);const Xe=(Ae,se)=>m.jsx("div",{className:gt("prose prose-sm max-w-none break-words [overflow-wrap:anywhere] [&>*:first-child]:mt-0 [&>*:last-child]:mb-0","dark:prose-invert"),children:m.jsx(J3,{remarkPlugins:[V$],urlTransform:Te=>{const $=String(Te||"");return $&&($.startsWith("http://")||$.startsWith("https://")||$.startsWith("data:image"))?$:""},components:{th({children:Te,...$}){return m.jsx("th",{...$,className:gt("whitespace-normal break-words",$==null?void 0:$.className),children:Te})},td({children:Te,...$}){return m.jsx("td",{...$,className:gt("whitespace-normal break-words",$==null?void 0:$.className),children:Te})},pre({children:Te,...$}){return m.jsx("pre",{...$,className:gt("max-w-full overflow-x-hidden whitespace-pre-wrap break-words",$==null?void 0:$.className),children:Te})},code({children:Te,className:$,...de}){return m.jsx("code",{...de,className:gt("whitespace-pre-wrap break-words",$),children:Te})}},children:se})},Ae);if(q.role!=="assistant")return Xe(`${q.id}-markdown-${pe}`,Ce.content);const it=Z5e(Ce.content),et=it.filter(Ae=>Ae.type==="markdown"&&Ae.content.trim().length>0),U=it.filter(Ae=>Ae.type==="code");return et.length===0&&U.length===0?null:m.jsxs("div",{className:"w-full min-w-0 max-w-full overflow-hidden space-y-2",children:[et.length>0&&m.jsx("div",{className:"w-full min-w-0 max-w-full overflow-hidden break-words [overflow-wrap:anywhere] px-4 py-3 text-sm leading-relaxed bg-muted/60 text-foreground rounded-2xl rounded-bl-md",children:m.jsx("div",{className:"space-y-3",children:et.map((Ae,se)=>Xe(`${q.id}-assistant-markdown-${pe}-${se}`,Ae.content))})}),U.map((Ae,se)=>{const Te=Ae.language||"text",$=Ae.code||"";if(!$.trim())return null;const de=ke++,F=Te==="json"?K5e($):null;if(F&&F.edits.length>0){const De=`${q.id}-cad-patch-${pe}-${se}-${de}`,He=T[De]??!0,b=a==="streaming"&&ee,ae=JSON.stringify(F,null,2),M=!!n&&q.role==="assistant"&&ee&&!b&&!P.current.has(De);return M&&P.current.add(De),m.jsxs("div",{className:"my-1 rounded-xl border border-border/60 bg-muted/30 overflow-hidden",children:[M&&m.jsx(yj,{onApplyCode:n,code:ae,language:"json"}),m.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-muted/50",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"w-6 h-6 rounded-md bg-primary/10 flex items-center justify-center",children:m.jsx(fE,{className:"w-3.5 h-3.5 text-primary"})}),m.jsx("span",{className:"text-sm font-medium text-foreground/80",children:l("编辑图纸","Edit Diagram")})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[b?m.jsx("div",{className:"h-4 w-4 border-2 border-primary border-t-transparent rounded-full animate-spin"}):m.jsx("span",{className:"text-xs font-medium text-green-600 bg-green-50 px-2 py-0.5 rounded-full",children:l("完成","Complete")}),n&&m.jsxs("button",{type:"button",onClick:()=>n(JSON.stringify(F,null,2),"json"),className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-[10px] text-muted-foreground hover:bg-muted transition-colors",children:[m.jsx(cy,{className:"h-3 w-3"}),m.jsx("span",{children:l("应用","Apply")})]}),m.jsx("button",{type:"button",onClick:()=>D(k=>({...k,[De]:!He})),className:"p-1 rounded hover:bg-muted transition-colors",children:He?m.jsx(qu,{className:"w-4 h-4 text-muted-foreground"}):m.jsx(Wo,{className:"w-4 h-4 text-muted-foreground"})})]})]}),He&&m.jsx("div",{className:"px-4 py-3 border-t border-border/40 bg-muted/20",children:m.jsx(Q5e,{edits:F.edits,uiLang:s})})]},`cad-patch-card-${q.id}-${pe}-${se}-${de}`)}return(()=>{const De=`${q.id}-code-auto-${pe}-${se}-${Te}-${de}`,He=!!n&&q.role==="assistant"&&ee&&a!=="streaming"&&X5e(Te,$)&&!P.current.has(De);return He&&P.current.add(De),m.jsxs(Dt.Fragment,{children:[He&&m.jsx(yj,{onApplyCode:n,code:$,language:Te}),m.jsx(H5e,{blockId:`${q.id}:${pe}:${se}:${Te}:${de}`,code:$,language:Te,isStreaming:a==="streaming"&&ee,onApply:n},`codeblock-${q.id}-${pe}-${se}-${Te}-${de}`)]},`codeblock-wrap-${q.id}-${pe}-${se}-${Te}-${de}`)})()})]},`${q.id}-assistant-seg-${pe}`)})]})})()]}),m.jsxs("div",{className:"order-2 flex items-center gap-1 mt-2 px-1",children:[q.role==="user"&&!G&&J&&m.jsxs(m.Fragment,{children:[i&&le&&m.jsx("button",{type:"button",onClick:()=>{g(q.id),A(eb(q))},className:"p-1.5 rounded-lg text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors",title:l("编辑","Edit"),children:m.jsx(Fl,{className:"h-3.5 w-3.5"})}),m.jsx("button",{type:"button",onClick:()=>Z(q.id,eb(q)),className:"p-1.5 rounded-lg text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors",title:l("复制","Copy"),children:d===q.id?m.jsx(qo,{className:"h-3.5 w-3.5 text-green-500"}):m.jsx(Ku,{className:"h-3.5 w-3.5"})})]}),q.role==="assistant"&&m.jsxs(m.Fragment,{children:[m.jsx("button",{type:"button",onClick:()=>Z(q.id,mp(q)),className:`p-1.5 rounded-lg transition-colors ${d===q.id?"text-green-600 bg-green-100 dark:bg-green-950/30":"text-muted-foreground/60 hover:text-foreground hover:bg-muted"}`,title:l("复制","Copy"),children:d===q.id?m.jsx(qo,{className:"h-3.5 w-3.5"}):m.jsx(Ku,{className:"h-3.5 w-3.5"})}),r&&ee&&m.jsx("button",{type:"button",onClick:()=>r(te),className:"p-1.5 rounded-lg text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors",title:l("重新生成","Regenerate"),children:m.jsx(fg,{className:"h-3.5 w-3.5"})})]})]})]})}),oe&&m.jsx("div",{className:"flex w-full justify-start animate-message-in mt-3",children:m.jsx("div",{className:"max-w-[85%] min-w-0",children:m.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 text-xs text-muted-foreground bg-muted/40 rounded-2xl rounded-bl-md",children:[m.jsx(sa,{className:"h-3 w-3 animate-spin"}),m.jsx("span",{children:l("思考中...","Thinking...")})]})})})]},q.id)}),m.jsx("div",{ref:u})]})}),!I&&e.length>0&&m.jsxs("button",{type:"button",onClick:()=>{z.current=!1,j(!0),X("smooth")},className:"absolute bottom-4 right-4 z-20 inline-flex items-center gap-1 rounded-full border border-border bg-background/90 backdrop-blur px-3 py-1.5 text-xs text-foreground shadow-md hover:bg-background",title:l("回到底部","Back to bottom"),children:[m.jsx(Wo,{className:"w-3.5 h-3.5"}),l("回到底部","Back to bottom")]})]})}const op="CanvasAnvil-global-constraints";function tPe({showHistory:e,onToggleHistory:t,history:n,onRestore:r,onClear:i}){const a=pa(),o=s=>new Date(s).toLocaleString();return m.jsx(FF,{open:e,onOpenChange:t,children:m.jsxs(a2,{className:"max-w-md max-h-[80vh] flex flex-col",children:[m.jsx(RF,{children:m.jsxs("div",{className:"flex items-center justify-between gap-3",children:[m.jsxs(o2,{className:"flex items-center gap-2",children:[m.jsx(Kp,{className:"w-5 h-5 text-muted-foreground"}),an(a,"history.title")]}),n.length>0&&i&&m.jsxs(Ta,{size:"sm",variant:"ghost",onClick:i,className:"gap-1 text-xs",title:an(a,"history.clear"),children:[m.jsx(Zf,{className:"w-3.5 h-3.5"}),an(a,"history.clear")]})]})}),m.jsx("div",{className:"flex-1 overflow-hidden mt-2",children:n.length===0?m.jsxs("div",{className:"text-center p-8 text-muted-foreground text-sm flex flex-col items-center gap-2",children:[m.jsx(Kp,{className:"w-8 h-8 opacity-20"}),m.jsx("p",{children:an(a,"history.empty")})]}):m.jsx(Z$,{className:"h-[400px] pr-4",children:m.jsx("div",{className:"space-y-3",children:[...n].reverse().map((s,l)=>m.jsxs("div",{className:"p-3 rounded-lg border border-border/50 bg-muted/20 hover:bg-muted/40 transition-colors flex items-center justify-between group",children:[m.jsxs("div",{className:"flex flex-col gap-1 overflow-hidden",children:[m.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium",children:[m.jsx("span",{className:"w-6 h-6 rounded-full bg-blue-100 dark:bg-blue-900/30 text-blue-600 flex items-center justify-center text-xs",children:n.length-l}),m.jsx("span",{children:o(s.timestamp)})]}),m.jsxs("div",{className:"text-xs text-muted-foreground truncate pl-8 flex items-center gap-1",children:[m.jsx(eu,{className:"w-3 h-3"}),m.jsx("span",{children:s.type.toUpperCase()}),m.jsx("span",{children:"•"}),m.jsx("span",{children:an(a,"history.chars",{n:s.content.length})})]})]}),m.jsxs(Ta,{size:"sm",variant:"ghost",onClick:()=>{r(s),t(!1)},className:"opacity-0 group-hover:opacity-100 transition-opacity gap-1 text-xs",title:an(a,"history.restore"),children:[m.jsx(fg,{className:"w-3 h-3"}),an(a,"history.restore")]})]},s.id))})})})]})})}function nPe({open:e,onOpenChange:t,onClear:n}){const r=pa();return m.jsx(FF,{open:e,onOpenChange:t,children:m.jsxs(a2,{children:[m.jsxs(RF,{children:[m.jsx(o2,{children:an(r,"reset.title")}),m.jsx(JZ,{children:an(r,"reset.desc")})]}),m.jsxs(E_e,{children:[m.jsx(Ta,{variant:"outline",onClick:()=>t(!1),title:an(r,"common.cancel"),children:an(r,"common.cancel")}),m.jsx(Ta,{variant:"destructive",onClick:n,title:an(r,"common.clear"),children:an(r,"common.clear")})]})]})})}const rPe=`# R - Role\r-You are cad_bom_agent, an interior renovation bill-of-materials generator. You are precise, practical, and output-first.\r-\r-# I - Instructions\r-Generate a bill of materials for an interior renovation based on the plan and the existing CAD artifacts.-\r-# Input\r-I will provide the following inputs (may be empty):\r-- Input type: plan JSON + 2D SVG\r-- Input format: raw JSON text + SVG code block\r-- Input scope: use only the provided inputs; do not invent hidden constraints\r-\r-Plan:\r-{{planJson}}\r-\r-2D SVG:\r-\`\`\`svg\r-{{svg2d}}\r-\`\`\`\r-\r-# S - Steps\r-Please follow these steps:\r-1. Read the plan and infer required renovation components by room and function.\r-2. Cross-check with the 2D SVG when helpful (layout, openings, main partitions).\r-3. Normalize items into a consistent BOM table: category, name, spec, quantity, unit, notes.\r-4. Output the final JSON strictly following the schema.\r-\r-# E - End Goal\r-Produce a machine-readable \`cad_bom\` JSON that can be used directly for estimation, procurement, and review.\r-\r-# N - Narrowing\r-Constraints (CRITICAL):\r-1. Output EXACTLY ONE JSON code block at the end (no additional JSON, no additional code blocks).\r-2. The JSON must be machine-readable and use ONLY the schema below.\r-3. Before the JSON code block, you MAY output one readable Markdown table for the BOM (no code fences).\r-4. Do not output any extra explanatory text after the JSON.\r-5. Language policy (CRITICAL):\r- - Follow the UI language policy provided by the system messages.\r- - If UI language is zh, output Simplified Chinese; if UI language is en, output English.\r- - Do not mix languages unless explicitly requested.\r-\r-# Output Format\r-The JSON must use ONLY this schema:\r-\`\`\`json\r-{ "type": "cad_bom", "columns": ["Category","Item","Spec","Quantity","Unit","Notes"], "rows": [] }\r-\`\`\`\r-`,iPe=`# R - Role\r-You are \`cad_images_master_renovation_scheme_agent\`, the GLOBAL SINGLE SOURCE OF TRUTH for the renovation drawing system.\r-\r-You extract and LOCK a unified renovation scheme from the input plan JSON and 2D SVG. All downstream drawing agents MUST follow your decisions.\r-\r-# I - Instructions\r-Analyze the plan JSON and SVG and generate ONE deterministic renovation scheme.\r-You MUST:\r-- Avoid ambiguity\r-- Avoid conflicting interpretations\r-- Avoid speculative geometry\r-- Lock all design-critical parameters\r-\r-Downstream agents are NOT allowed to override your decisions.\r-\r-# Input\r-Plan:\r-{{planJson}}\r-\r-2D SVG:\r-\`\`\`svg\r-{{svg2d}}\r-\`\`\`\r-\r-# S - Steps-1. Normalize and LOCK room names.\r-2. Decide wall strategy: retain / demolish / new-build.\r-3. Lock floor material zoning by room.\r-4. Lock ceiling baseline height and soffit logic.\r-5. Lock door/window naming codes and size standards.\r-6. Lock wet-area waterproofing and level-drop policy.\r-7. Lock MEP alignment rules (TV axis, kitchen, bathroom).\r-8. Lock finish style and feature-wall strategy.\r-9. Lock dimensioning rules and drawing consistency rules.\r-10. Output ONE unified Renovation Scheme JSON.\r-\r-# E - End Goal-Produce one deterministic renovation scheme JSON that becomes the single source of truth for downstream CAD drawing prompts.--# N - Narrowing-Constraints:\r-1. Output ONLY one JSON code block and nothing else.\r-2. Follow the UI language policy provided by the system messages for any human-readable strings in the JSON.\r-3. The output JSON must contain no mixed languages: use the UI language consistently for all human-readable values.\r-3. Do not invent speculative geometry not supported by the plan/SVG. Use clear assumptions when needed.\r-\r-# Output Format (JSON only)\r-\`\`\`json\r-{\r- "type": "renovation_scheme_master",\r- "global_scheme": {\r- "room_names": [],\r- "finish_style": "",\r- "feature_wall_strategy": {},\r- "wall_strategy": {},\r- "floor_material_strategy": {},\r- "ceiling_height_default_m": 0.000,\r- "door_window_code_rule": "",\r- "wet_area_policy": {},\r- "mep_alignment_rules": {},\r- "dimensioning_rules": {},\r- "fire_rating_policy": "",\r- "revision": "V1.0"\r- }\r-}\r-\`\`\`\r-`,aPe=`# R - Role\r-You are \`cad_images_renovation_plan_layout_agent\` (Renovation Plan Layout). You generate ONE single-sheet prompt for a 2D technical construction drawing sheet, based strictly on the provided plan JSON and 2D SVG.\r-\r-# I - Instructions\r-Create the prompt for Sheet 1 only: Renovation Plan Layout.\r-The prompt must be directly usable to generate an orthographic 2D construction drawing sheet image (not a photorealistic render, not perspective, not 3D).\r-\r-# Input\r-Plan:\r-{{planJson}}\r-\r-2D SVG:\r-\`\`\`svg\r-{{svg2d}}\r-\`\`\`\r-\r-Master Renovation Scheme (SSOT, read-only):\r-\`\`\`json\r-{{masterSchemeJson}}\r-\`\`\`\r-\r-# S - Steps\r-1. Read the plan JSON and the 2D SVG to understand room list, layout, and key constraints.\r-2. Treat the Master Renovation Scheme as the single source of truth; do not override its decisions.\r-3. Write a single, dense, print-ready sheet prompt that includes all mandatory elements for this sheet.\r-4. Output JSON strictly following the schema in “# Output Format”.\r-\r-# E - End Goal-Produce one deterministic single-sheet JSON prompt for the renovation plan layout that is directly usable by the downstream image generator.--# N - Narrowing-Constraints (must follow):\r-1. Output ONLY one JSON code block and nothing else.\r-2. Title policy (must be exact):\r- - If UI language is en: title must be exactly "Renovation Plan Layout".\r- - If UI language is zh: title must be exactly "装修平面布置图".\r-3. Language policy (must be enforced):\r- - The JSON field \`title\` MUST follow the UI language (zh: Simplified Chinese; en: English) and must satisfy the Title policy above.\r- - The JSON field \`prompt\` MUST be written in English only.\r- - All on-sheet labels/notes/title block text MUST match the UI language.\r- - Do not mix languages within any on-sheet text.\r-4. Master scheme compliance (must be enforced):\r- - Room naming must match \`global_scheme.room_names\`.\r- - Wall status (retain/demolish/new) must follow \`global_scheme.wall_strategy\`.\r- - Floor zoning/material notes must follow \`global_scheme.floor_material_strategy\`.\r- - Door/window naming and size codes must follow \`global_scheme.door_window_code_rule\`.\r- - Wet-area level-drop and waterproofing notes must follow \`global_scheme.wet_area_policy\`.\r-5. The prompt MUST explicitly specify:\r- - It is an orthographic 2D technical construction drawing sheet (no perspective).\r- - Sheet size: ISO A1 (594×841mm) unless density forces A0.\r- - A full drawing border/frame and a title block at bottom-right.\r- - Title block fields: ProjectName, Client/Owner, DesignFirm, Drafter, Reviewer, Approver, DrawingTitle, DrawingNo, SheetNo, Scale, Units, SheetSize, DrawingDate (YYYY-MM-DD), Revision (e.g., V1.0).\r- - Scale: 1:100; Units: mm (elevations in m where used).\r- - Sheet numbering: "Sheet 1 of 7".\r- - DrawingNo format: "ZS-<DISCIPLINE>-<SEQ3>" and use: "ZS-PM-001".\r- - A legend / symbol key aligned to typical GB/T 50104-2010 conventions.\r-6. Mandatory content for this sheet:\r- - Main renovation plan layout: walls/partitions, doors/windows with codes, room names, room areas (m², 1 decimal), key dimensions (closed dimension chains), major furniture footprints, fixed cabinetry, kitchen/bath fixtures, locating dimensions.\r- - Floor finish boundaries and threshold stones; indicate floor level step-down notes for wet areas where applicable.\r- - Add dedicated panels within the sheet margin area (without changing the sheet title):\r- - Cover panel (project name, address/brief, sheet set name).\r- - Drawing list panel (list all 7 sheets by title).\r- - General notes panel (design basis, materials/workmanship, safety).\r- - Revision log panel.\r- - Materials schedule panel (high-level).\r- - Symbol legend panel.\r- - Add an inset viewport titled "As-Built Plan" (en) or "原始平面图" (zh) showing existing walls/columns/beams, original openings with sizes, shafts/flues/risers/drains, and original floor levels; include its own scale label and a legend subset.\r-7. Consistency:\r- - Use the same rooms/material decisions that can be inferred from plan/SVG; avoid contradictions.\r-\r-# Output Format\r-\`\`\`json\r-{\r- "type": "cad_images_sheet",\r- "title": "REQUIRED_SHEET_TITLE",\r- "prompt": "..."\r-}\r-\`\`\`\r-`,oPe=`# R - Role\r-You are \`cad_images_floor_finish_plan_agent\` (Floor Finish Plan). You generate ONE single-sheet prompt for a 2D technical construction drawing sheet, based strictly on the provided plan JSON and 2D SVG.\r-\r-# I - Instructions\r-Create the prompt for Sheet 2 only: Floor Finish Plan.\r-The prompt must be directly usable to generate an orthographic 2D construction drawing sheet image (not a photorealistic render, not perspective, not 3D).\r-\r-# Input\r-Plan:\r-{{planJson}}\r-\r-2D SVG:\r-\`\`\`svg\r-{{svg2d}}\r-\`\`\`\r-\r-Master Renovation Scheme (SSOT, read-only):\r-\`\`\`json\r-{{masterSchemeJson}}\r-\`\`\`\r-\r-# S - Steps\r-1. Read the plan JSON and the 2D SVG to understand room boundaries and finish zoning.\r-2. Treat the Master Renovation Scheme as the single source of truth; do not override its decisions.\r-3. Write a single, dense, print-ready sheet prompt that includes all mandatory elements for this sheet.\r-4. Output JSON strictly following the schema in “# Output Format”.\r-\r-# E - End Goal-Produce one deterministic single-sheet JSON prompt for the floor finish plan that is directly usable by the downstream image generator.--# N - Narrowing-Constraints (must follow):\r-1. Output ONLY one JSON code block and nothing else.\r-2. Title policy (must be exact):\r- - If UI language is en: title must be exactly "Floor Finish Plan".\r- - If UI language is zh: title must be exactly "地面铺装图".\r-3. Language policy (must be enforced):\r- - The JSON field \`title\` MUST follow the UI language (zh: Simplified Chinese; en: English) and must satisfy the Title policy above.\r- - The JSON field \`prompt\` MUST be written in English only.\r- - All on-sheet labels/notes/title block text MUST match the UI language.\r- - Do not mix languages within any on-sheet text.\r-4. Master scheme compliance (must be enforced):\r- - Material names/specs/pattern rules must match \`global_scheme.floor_material_strategy\` exactly.\r- - Wet-area step-down and waterproofing notes must follow \`global_scheme.wet_area_policy\`.\r- - Threshold stone type/thickness rules must follow the Master scheme (use wet-area policy/material strategy as the source).\r-5. The prompt MUST explicitly specify:\r- - Orthographic 2D technical construction drawing sheet (no perspective).\r- - Sheet size: ISO A1 (594×841mm) unless density forces A0.\r- - Border/frame + title block bottom-right with standard fields.\r- - Scale: 1:100; Units: mm (elevations in m where used).\r- - SheetNo: "Sheet 2 of 7".\r- - DrawingNo: "ZS-FF-002".\r- - A legend / symbol key (floor materials, hatch patterns, drains, slope arrows, thresholds).\r-6. Mandatory content for this sheet:\r- - Material zoning boundaries: continuous, no breaks; label each zone with material name + size/spec.\r- - Indicate laying direction, pattern notes, grout requirements where relevant.\r- - Threshold stones: show strips (>=30mm width) and note thickness/material.\r- - Wet areas (kitchen/bath/balcony): show floor drains (DN50) and slope arrows (1%–2%) to drain; note step-down where applicable.\r- - Waterproofing notes for wet areas (wall up to 1.8m; full floor).\r- - Coordinate with plan room layout; do not change walls/doors from plan/SVG.\r-\r-# Output Format\r-\`\`\`json\r-{\r- "type": "cad_images_sheet",\r- "title": "REQUIRED_SHEET_TITLE",\r- "prompt": "..."\r-}\r-\`\`\`\r-`,sPe=`# R - Role\r-You are \`cad_images_reflected_ceiling_plan_agent\` (Reflected Ceiling Plan). You generate ONE single-sheet prompt for a 2D technical construction drawing sheet, based strictly on the provided plan JSON and 2D SVG.\r-\r-# I - Instructions\r-Create the prompt for Sheet 3 only: Reflected Ceiling Plan.\r-The prompt must be directly usable to generate an orthographic 2D construction drawing sheet image (not a photorealistic render, not perspective, not 3D).\r-\r-# Input\r-Plan:\r-{{planJson}}\r-\r-2D SVG:\r-\`\`\`svg\r-{{svg2d}}\r-\`\`\`\r-\r-Master Renovation Scheme (SSOT, read-only):\r-\`\`\`json\r-{{masterSchemeJson}}\r-\`\`\`\r-\r-# S - Steps\r-1. Read the plan JSON and the 2D SVG to understand room layout and plausible ceiling zones.\r-2. Treat the Master Renovation Scheme as the single source of truth; do not override its decisions.\r-3. Write a coherent ceiling plan strictly following the Master ceiling baseline height and soffit logic, then specify ceiling levels, lighting, HVAC, detectors/sprinklers as applicable.\r-4. Output JSON strictly following the schema in “# Output Format”.\r-\r-# E - End Goal-Produce one deterministic single-sheet JSON prompt for the reflected ceiling plan that is directly usable by the downstream image generator.--# N - Narrowing-Constraints (must follow):\r-1. Output ONLY one JSON code block and nothing else.\r-2. Title policy (must be exact):\r- - If UI language is en: title must be exactly "Reflected Ceiling Plan".\r- - If UI language is zh: title must be exactly "顶棚平面图".\r-3. Language policy (must be enforced):\r- - The JSON field \`title\` MUST follow the UI language (zh: Simplified Chinese; en: English) and must satisfy the Title policy above.\r- - The JSON field \`prompt\` MUST be written in English only.\r- - All on-sheet labels/notes/title block text MUST match the UI language.\r- - Do not mix languages within any on-sheet text.\r-4. Master scheme compliance (must be enforced):\r- - Default ceiling baseline height must match \`global_scheme.ceiling_height_default_m\`.\r- - Soffit/ceiling style strategy must follow the Master scheme; do not introduce new styles.\r- - Lighting alignment and device placement must follow \`global_scheme.mep_alignment_rules\` where applicable.\r-5. The prompt MUST explicitly specify:\r- - Orthographic 2D technical construction drawing sheet (no perspective).\r- - Sheet size: ISO A1 (594×841mm) unless density forces A0.\r- - Border/frame + title block bottom-right with standard fields.\r- - Scale: 1:100; Units: mm; ceiling elevations in m (3 decimals).\r- - SheetNo: "Sheet 3 of 7".\r- - DrawingNo: "ZS-CP-003".\r- - A legend / symbol key (lights, switches reference, HVAC diffusers/grilles, detectors, sprinklers, access panels, ceiling materials, level markers).\r-6. Mandatory content for this sheet:\r- - Ceiling geometry and ceiling level zones; annotate ceiling finished elevations (m, 3 decimals) and use level markers (e.g., CH:2.500m).\r- - Lighting layout with symbol types and notes; show centerlines and spacing logic where needed.\r- - Show HVAC diffusers/grilles, smoke detectors/sprinklers where relevant, and access panels (e.g., 400×400mm).\r- - Show ceiling materials and construction notes; show concealed items with dashed thin lines.\r- - Differentiate ceiling levels by lineweight and clearly label each zone.\r- - Coordinate with plan room layout; do not contradict walls/doors from plan/SVG.\r-\r-# Output Format\r-\`\`\`json\r-{\r- "type": "cad_images_sheet",\r- "title": "REQUIRED_SHEET_TITLE",\r- "prompt": "..."\r-}\r-\`\`\`\r-`,lPe=`# R - Role\r-You are \`cad_images_wall_setting_out_plan_agent\` (Wall Setting-Out Plan). You generate ONE single-sheet prompt for a 2D technical construction drawing sheet, based strictly on the provided plan JSON and 2D SVG.\r-\r-# I - Instructions\r-Create the prompt for Sheet 4 only: Wall Setting-Out Plan.\r-The prompt must be directly usable to generate an orthographic 2D construction drawing sheet image (not a photorealistic render, not perspective, not 3D).\r-\r-# Input\r-Plan:\r-{{planJson}}\r-\r-2D SVG:\r-\`\`\`svg\r-{{svg2d}}\r-\`\`\`\r-\r-Master Renovation Scheme (SSOT, read-only):\r-\`\`\`json\r-{{masterSchemeJson}}\r-\`\`\`\r-\r-# S - Steps\r-1. Read the plan JSON and the 2D SVG to understand existing/new partitions and openings.\r-2. Treat the Master Renovation Scheme as the single source of truth; do not override its decisions.\r-3. Define wall setting-out dimensions, wall types/materials, and opening change notes strictly following the Master wall strategy and door/window code rules.\r-4. Include a demolition/new wall inset viewport as required.\r-5. Output JSON strictly following the schema in “# Output Format”.\r-\r-# E - End Goal-Produce one deterministic single-sheet JSON prompt for the wall setting-out plan that is directly usable by the downstream image generator.--# N - Narrowing-Constraints (must follow):\r-1. Output ONLY one JSON code block and nothing else.\r-2. Title policy (must be exact):\r- - If UI language is en: title must be exactly "Wall Setting-Out Plan".\r- - If UI language is zh: title must be exactly "墙体定位图".\r-3. Language policy (must be enforced):\r- - The JSON field \`title\` MUST follow the UI language (zh: Simplified Chinese; en: English) and must satisfy the Title policy above.\r- - The JSON field \`prompt\` MUST be written in English only.\r- - All on-sheet labels/notes/title block text MUST match the UI language.\r- - Do not mix languages within any on-sheet text.\r-4. Master scheme compliance (must be enforced):\r- - Load-bearing and demolition/new wall status must follow \`global_scheme.wall_strategy\`.\r- - New wall thickness/material standards must be consistent and derived from the Master scheme; do not invent varying thicknesses.\r- - Door/window codes and opening size rules must follow \`global_scheme.door_window_code_rule\`.\r- - Opening locations must not drift from the plan/SVG interpretation; if Master provides placement rules, follow them.\r-5. The prompt MUST explicitly specify:\r- - Orthographic 2D technical construction drawing sheet (no perspective).\r- - Sheet size: ISO A1 (594×841mm) unless density forces A0.\r- - Border/frame + title block bottom-right with standard fields.\r- - Scale: 1:100; Units: mm.\r- - SheetNo: "Sheet 4 of 7".\r- - DrawingNo: "ZS-WS-004".\r- - A legend / symbol key (new wall, demolition, load-bearing, door/window codes, section/detail markers).\r-6. Mandatory content for this sheet:\r- - Clearly show new vs demolition walls with distinct linetypes/lineweights and labels; never demolish load-bearing walls; label load-bearing walls as "LOAD-BEARING, DO NOT DEMOLISH" (or zh equivalent).\r- - Provide complete setting-out dimensions and exact wall locations; wall thicknesses and materials noted.\r- - Show door/window opening changes (relocation, widening/narrowing) with codes and associated dimensions.\r- - Include an inset viewport titled "Demolition & New Wall Plan" (en) or "拆改与新建墙体图" (zh) with:\r- - Demolition walls: dashed + cross-hatch and "DEMOLISH" label (or zh equivalent).\r- - New walls: thick continuous, labeled "NEW" + material + thickness (or zh equivalent).\r- - Its own scale label and legend subset.\r- - Coordinate with plan/SVG; do not invent geometry beyond provided context.\r-\r-# Output Format\r-\`\`\`json\r-{\r- "type": "cad_images_sheet",\r- "title": "REQUIRED_SHEET_TITLE",\r- "prompt": "..."\r-}\r-\`\`\`\r-`,cPe=`# R - Role\r-You are \`cad_images_mep_plan_agent\` (MEP Plan). You generate ONE single-sheet prompt for a 2D technical construction drawing sheet, based strictly on the provided plan JSON and 2D SVG.\r-\r-# I - Instructions\r-Create the prompt for Sheet 5 only: MEP Plan (Electrical + Low Voltage + Plumbing).\r-The prompt must be directly usable to generate an orthographic 2D construction drawing sheet image (not a photorealistic render, not perspective, not 3D).\r-\r-# Input\r-Plan:\r-{{planJson}}\r-\r-2D SVG:\r-\`\`\`svg\r-{{svg2d}}\r-\`\`\`\r-\r-Master Renovation Scheme (SSOT, read-only):\r-\`\`\`json\r-{{masterSchemeJson}}\r-\`\`\`\r-\r-# S - Steps\r-1. Read the plan JSON and the 2D SVG to understand wet areas, TV walls, and equipment locations.\r-2. Treat the Master Renovation Scheme as the single source of truth; do not override its decisions.\r-3. Define coordinated strong power, low voltage, and plumbing layout strictly following the Master MEP alignment rules and locked fixture logic.\r-4. Include mounting heights, circuit labeling, pipe diameters, and slope notes where applicable.\r-5. Output JSON strictly following the schema in “# Output Format”.\r-\r-# E - End Goal-Produce one deterministic single-sheet JSON prompt for the MEP plan that is directly usable by the downstream image generator.--# N - Narrowing-Constraints (must follow):\r-1. Output ONLY one JSON code block and nothing else.\r-2. Title policy (must be exact):\r- - If UI language is en: title must be exactly "MEP Plan (Electrical + Low Voltage + Plumbing)".\r- - If UI language is zh: title must be exactly "机电综合图(强电+弱电+给排水)".\r-3. Language policy (must be enforced):\r- - The JSON field \`title\` MUST follow the UI language (zh: Simplified Chinese; en: English) and must satisfy the Title policy above.\r- - The JSON field \`prompt\` MUST be written in English only.\r- - All on-sheet labels/notes/title block text MUST match the UI language.\r- - Do not mix languages within any on-sheet text.\r-4. Master scheme compliance (must be enforced):\r- - TV wall / network / sockets alignment must follow \`global_scheme.mep_alignment_rules\`.\r- - Kitchen and bathroom fixture assumptions must not drift; follow the Master wet-area and MEP rules.\r- - Pipe diameters, slopes, and key safety separations must follow \`global_scheme.mep_alignment_rules\` and \`global_scheme.dimensioning_rules\` where defined.\r-5. The prompt MUST explicitly specify:\r- - Orthographic 2D technical construction drawing sheet (no perspective).\r- - Sheet size: ISO A1 (594×841mm) unless density forces A0.\r- - Border/frame + title block bottom-right with standard fields.\r- - Scale: 1:100; Units: mm.\r- - SheetNo: "Sheet 5 of 7".\r- - DrawingNo: "ZS-MEP-005".\r- - A legend / symbol key (switches, sockets, detectors/sprinklers if shown, distribution box, network/TV points, pipes, valves, drains, line styles).\r-6. Mandatory content for this sheet:\r- - Electrical (strong): outlet/switch positions with types/models and mounting heights; key circuits/routing where appropriate; include distribution box with circuit list.\r- - Low voltage: data/network/TV points and routing coordinated with furniture/TV wall; include low-voltage box if applicable.\r- - Plumbing: supply/drain routing for wet areas; show valves, faucet points, floor drains, toilet drain; label pipe diameters (DN) and slope notes.\r- - Provide standard mounting heights in annotations (e.g., outlets 300mm AFF; switches 1100mm AFF; AC outlet 2200mm AFF dedicated).\r- - Coordinate with wall/finish decisions; avoid conflicts; keep major services consistent with plan/SVG constraints.\r-\r-# Output Format\r-\`\`\`json\r-{\r- "type": "cad_images_sheet",\r- "title": "REQUIRED_SHEET_TITLE",\r- "prompt": "..."\r-}\r-\`\`\`\r-`,uPe=`# R - Role\r-You are \`cad_images_elevation_index_and_interior_elevations_agent\` (Elevation Index Plan + Interior Elevations). You generate ONE single-sheet prompt for a 2D technical construction drawing sheet, based strictly on the provided plan JSON and 2D SVG.\r-\r-# I - Instructions\r-Create the prompt for Sheet 6 only: Elevation Index Plan + Interior Elevations.\r-The prompt must be directly usable to generate an orthographic 2D construction drawing sheet image (not a photorealistic render, not perspective, not 3D).\r-\r-# Input\r-Plan:\r-{{planJson}}\r-\r-2D SVG:\r-\`\`\`svg\r-{{svg2d}}\r-\`\`\`\r-\r-Master Renovation Scheme (SSOT, read-only):\r-\`\`\`json\r-{{masterSchemeJson}}\r-\`\`\`\r-\r-# S - Steps\r-1. Read the plan JSON and the 2D SVG to understand room list and wall faces.\r-2. Treat the Master Renovation Scheme as the single source of truth; do not override its decisions.\r-3. Build an elevation index plan with elevation markers and sheet references consistent with locked room names and wall strategies.\r-4. Provide interior elevations for major spaces/walls with materials, dimensions, and mounting heights strictly following the Master material strategy and ceiling baseline.\r-5. Output JSON strictly following the schema in “# Output Format”.\r-\r-# E - End Goal-Produce one deterministic single-sheet JSON prompt for the elevation index and interior elevations sheet that is directly usable by the downstream image generator.--# N - Narrowing-Constraints (must follow):\r-1. Output ONLY one JSON code block and nothing else.\r-2. Title policy (must be exact):\r- - If UI language is en: title must be exactly "Elevation Index Plan + Interior Elevations".\r- - If UI language is zh: title must be exactly "立面索引图+室内立面图".\r-3. Language policy (must be enforced):\r- - The JSON field \`title\` MUST follow the UI language (zh: Simplified Chinese; en: English) and must satisfy the Title policy above.\r- - The JSON field \`prompt\` MUST be written in English only.\r- - All on-sheet labels/notes/title block text MUST match the UI language.\r- - Do not mix languages within any on-sheet text.\r-4. Master scheme compliance (must be enforced):\r- - Materials and finish system MUST follow the Master scheme (\`global_scheme.finish_style\`, \`global_scheme.floor_material_strategy\`).\r- - Feature wall / key wall positions and treatments MUST follow \`global_scheme.feature_wall_strategy\`.\r- - Elevation baseline and ceiling levels MUST follow \`global_scheme.ceiling_height_default_m\` and any related Master rules.\r- - Door/window codes and mounting heights MUST follow Master rules where defined.\r-5. The prompt MUST explicitly specify:\r- - Orthographic 2D technical construction drawing sheet (no perspective).\r- - Sheet size: ISO A1 (594×841mm) unless density forces A0.\r- - Border/frame + title block bottom-right with standard fields.\r- - Scale: index plan 1:100; interior elevations 1:50; Units: mm; elevations in m (3 decimals).\r- - SheetNo: "Sheet 6 of 7".\r- - DrawingNo: "ZS-EL-006".\r- - A legend / symbol key (elevation index symbol, level markers, materials/hatches, dimensions, detail markers).\r-6. Mandatory content for this sheet:\r- - An elevation index plan showing markers for each room indexing all four walls (A/B/C/D clockwise) with clear view direction arrows and references to this sheet's elevation viewports.\r- - Interior elevation views for major rooms/walls: material notes, feature wall design, niches/shelves sizes, outlet/switch mounting heights, major dimensions, and levels in meters (3 decimals).\r- - Clear lineweight hierarchy (outer contour heavier); dimension major elements and reference back to plan markers.\r- - Coordinate with plan/SVG; do not contradict walls/doors/fixtures.\r-\r-# Output Format\r-\`\`\`json\r-{\r- "type": "cad_images_sheet",\r- "title": "REQUIRED_SHEET_TITLE",\r- "prompt": "..."\r-}\r-\`\`\`\r-`,dPe=`# R - Role\r-You are \`cad_images_detail_drawings_agent\` (Detail Drawings). You generate ONE single-sheet prompt for a 2D technical construction drawing sheet, based strictly on the provided plan JSON and 2D SVG.\r-\r-# I - Instructions\r-Create the prompt for Sheet 7 only: Detail Drawings.\r-The prompt must be directly usable to generate orthographic 2D construction detail drawings (not a photorealistic render, not perspective, not 3D).\r-\r-# Input\r-Plan:\r-{{planJson}}\r-\r-2D SVG:\r-\`\`\`svg\r-{{svg2d}}\r-\`\`\`\r-\r-Master Renovation Scheme (SSOT, read-only):\r-\`\`\`json\r-{{masterSchemeJson}}\r-\`\`\`\r-\r-# S - Steps\r-1. Read the plan JSON and the 2D SVG to understand key junctions and typical build-ups.\r-2. Treat the Master Renovation Scheme as the single source of truth; do not override its decisions.\r-3. Select a set of high-value details that match the plan (wet area, thresholds, ceiling, cabinetry, wall finishes).\r-4. For each detail, specify scale (1:10 or 1:20), layers, thicknesses, dimensions, and workmanship notes.\r-5. Output JSON strictly following the schema in “# Output Format”.\r-\r-# E - End Goal-Produce one deterministic single-sheet JSON prompt for detail drawings that is directly usable by the downstream image generator.--# N - Narrowing-Constraints (must follow):\r-1. Output ONLY one JSON code block and nothing else.\r-2. Title policy (must be exact):\r- - If UI language is en: title must be exactly "Detail Drawings".\r- - If UI language is zh: title must be exactly "节点详图".\r-3. Language policy (must be enforced):\r- - The JSON field \`title\` MUST follow the UI language (zh: Simplified Chinese; en: English) and must satisfy the Title policy above.\r- - The JSON field \`prompt\` MUST be written in English only.\r- - All on-sheet labels/notes/title block text MUST match the UI language.\r- - Do not mix languages within any on-sheet text.\r-4. Master scheme compliance (must be enforced):\r- - All material names/specs and finish style must follow \`global_scheme.finish_style\` and related Master rules.\r- - Wet-area waterproofing and level-drop details must follow \`global_scheme.wet_area_policy\`.\r- - Ceiling-related details must follow \`global_scheme.ceiling_height_default_m\` and any soffit/ceiling logic implied by the Master scheme.\r-5. The prompt MUST explicitly specify:\r- - Orthographic 2D technical detail drawings (sections/enlargements), no perspective.\r- - Sheet size: ISO A1 (594×841mm) unless density forces A0.\r- - Border/frame + title block bottom-right with standard fields.\r- - Scale: 1:10 / 1:20 per viewport; Units: mm; elevations in m where used.\r- - SheetNo: "Sheet 7 of 7".\r- - DrawingNo: "ZS-DT-007".\r- - A legend / symbol key (detail index symbols, section cuts, material layer hatches).\r-6. Mandatory content for this sheet:\r- - Provide multiple enlarged details as separate viewports, each with:\r- - Viewport title, scale label, and reference ID (detail bubble).\r- - Layer build-up with exact thicknesses (mm) and material names.\r- - Edge trims, joint gaps, sealant notes, fastening/bracket spacing where relevant.\r- - Clear dimensions, level notes where needed, and callouts.\r- - Cross-references back to plan/elevation by drawing identifiers.\r- - Prefer details such as: threshold stone build-up, wet-area waterproofing termination, ceiling tier/light trough, skirting/baseboard, cabinet toe-kick/countertop junction, shower curb/drain.\r-\r-# Output Format\r-\`\`\`json\r-{\r- "type": "cad_images_sheet",\r- "title": "REQUIRED_SHEET_TITLE",\r- "prompt": "..."\r-}\r-\`\`\`\r-`,fPe=`# R - Role-You are \`cad_overall_analysis_board_agent\`, an assistant that writes an image prompt for an interior-renovation overall analysis board.--# I - Instructions-Generate one image prompt for an overall analysis board used for design alignment with the user.--# Input-Plan design payload:-{{planDesign}}--Language setting:-{{outputLanguage}}--# S - Steps-1. Read the plan design payload.-2. Identify project goals, zones, constraints, and pending confirmations that matter most.-3. Convert them into one single-paragraph image prompt for an overall analysis board.--The board should:-- Use early-stage interior design communication / concept analysis board style.-- Emphasize overall spatial understanding rather than construction details.-- Visually cover project goals, spatial scope and key zones, functional zoning, style direction, core user needs, known constraints, and pending confirmations.-- Ensure all visible on-image text (titles, labels, callouts, annotations) uses the language specified in "Language setting".-- Be clear, clean, professional, and presentation-ready.-- Use visual organization such as blocks, arrows, labels, color zoning, callouts, icons, and keywords.-- Avoid CAD construction drawing style.-- Avoid construction nodes, detailed dimensions, and material-detail drawings.--# E - End Goal-Produce one concise, presentation-ready image prompt for an overall analysis board.--# N - Narrowing-1. Output exactly one single-paragraph image prompt in the language specified in "Language setting".-2. Do not output Markdown.-3. Do not output explanations, bullet points, or any extra text.-4. If some information is uncertain, visualize it with labels such as "Pending Confirmation" or "Assumption".-`,hPe=`# R - Role-You are \`cad_key_strategy_board_agent\`, an assistant that writes an image prompt for an interior-renovation key strategy board.--# I - Instructions-Generate one image prompt for a key strategy board used for design alignment with the user.--# Input-Plan design payload:-{{planDesign}}--Language setting:-{{outputLanguage}}--# S - Steps-1. Read the plan design payload.-2. Identify 3 to 7 key strategies and their relationships, priorities, or execution order.-3. Convert them into one single-paragraph image prompt for a key strategy board.--The board should:-- Use interior design strategy analysis / strategy derivation board style.-- Focus on strategy instead of full-space overview.-- Present 3 to 7 key strategies (for example: space utilization, circulation optimization, storage, style unification, daylight and openness, local renovation priorities, budget control).-- Visualize each strategy with keywords, icons, local diagrams, arrows, color blocks, and relationship graphics.-- Show hierarchy, priority, or execution order between strategies.-- Ensure all visible on-image text (titles, labels, callouts, annotations) uses the language specified in "Language setting".-- Be clear, professional, and presentation-ready.-- Avoid CAD drawings, construction-detail drawings, and BOM outputs.--# E - End Goal-Produce one concise, presentation-ready image prompt for a key strategy board.--# N - Narrowing-1. Output exactly one single-paragraph image prompt in the language specified in "Language setting".-2. Do not output Markdown.-3. Do not output explanations, bullet points, or any extra text.-4. If user requirements conflict, reflect trade-offs and priority relations in the prompt.-`;function k2(e,t){let n=String(e||"");for(const[r,i]of Object.entries(t))n=n.split(`{{${r}}}`).join(String(i??""));return n}function pPe(e){const t=k2(rPe,{planJson:String(e.planJson||""),svg2d:String(e.svg2d||"")});return e.outputLanguage?`${t}--Output language: ${e.outputLanguage}`:t}function Mc(e){return[e.globalSystemPrompt,e.globalConstraints].filter(Boolean).join(`--`)}function A0(e){return[{role:"system",content:e.systemContent},{role:"user",content:pPe({planJson:e.planJson,svg2d:e.svg2d,outputLanguage:e.outputLanguage})}]}function w0(e){const t=k2(iPe,{planJson:String(e.planJson||""),svg2d:String(e.svg2d||"")}),n=e.outputLanguage?`${t}--Output language: ${e.outputLanguage}`:t;return[{role:"system",content:e.systemContent},{role:"user",content:n}]}function S0(e){return[{sheetId:"renovation_plan_layout",template:aPe},{sheetId:"floor_finish_plan",template:oPe},{sheetId:"reflected_ceiling_plan",template:sPe},{sheetId:"wall_setting_out_plan",template:lPe},{sheetId:"mep_plan",template:cPe},{sheetId:"elevation_index_and_interior_elevations",template:uPe},{sheetId:"detail_drawings",template:dPe}].map(n=>({sheetId:n.sheetId,messages:[{role:"system",content:e.systemContent},{role:"user",content:(()=>{const r=k2(n.template,{planJson:String(e.planJson||""),svg2d:String(e.svg2d||""),masterSchemeJson:String(e.masterSchemeJson||"")});return e.outputLanguage?`${r}--Output language: ${e.outputLanguage}`:r})()}]}))}function gPe(e){const t=String(e.outputLanguage).trim()||"English";return[{imageId:"overall_analysis",template:fPe},{imageId:"key_strategy",template:hPe}].map(r=>{const i=k2(r.template,{planDesign:String(e.planDesign||""),planJson:String(e.planDesign||""),outputLanguage:t});return{imageId:r.imageId,messages:[{role:"system",content:e.systemContent},{role:"user",content:i}]}})}const mPe=`# R - Role\r-You are \`cad_plan_agent\` (requirements-to-plan agent). You turn spoken requirements into a structured, executable space-planning \`cad_plan\`. Be concise, practical, and output-only.\r-\r-# I - Instructions\r-Turn the user's request and (optional) existing context artifacts (an existing \`cad_plan\` and/or 2D SVG) into a \`cad_plan\` JSON that can be used directly to generate a 2D floor plan.\r-\r-# Input-I will provide:-- Input type: user request text + (optional) context attachments-- Input format: chat text; context may include:- - an existing plan (\`cad_plan\` JSON)- - the current 2D SVG (for alignment/consistency)- - reference file content extracted from user attachments (e.g., PDF text, specifications, standards, checklists, room schedules, and other text/json context blocks)-- Input scope: generate the plan only; do not generate a 2D SVG or any other artifacts-\r-# S - Steps\r-Follow these steps strictly:\r-1. Extract from the request: unit type / space list, functional needs, style preferences, hard constraints, special concerns (lighting, circulation, storage, budget).\r-2. If context includes an existing \`cad_plan\`, apply incremental edits aligned with user intent and keep consistency; otherwise, create a new plan from scratch.-3. If reference file content contains explicit constraints or standards, prioritize them over defaults and reflect them in \`constraints\` and room-level notes.-4. For unknown or missing dimensions / doors & windows / key spatial relationships, write them into \`assumptions\` with reasonable defaults (typical residential sizes).-5. Produce an executable \`rooms\` list so downstream can draw the 2D plan directly.-\r-# E - End Goal\r-Output a clear, executable \`cad_plan\` that can be used downstream to generate a 2D plan, including necessary assumptions and without missing key spatial elements.\r-\r-# N - Narrowing\r-Constraints:\r-1. Output scope: do not output SVG, do not output \`cad_patch\`, do not output \`cad_bom\`/\`cad_images\`, and do not output any extra text.\r-2. Assumptions: unknown dimensions must be written into \`assumptions\` with reasonable defaults.\r-3. Completeness: \`rooms\` must include the space list and core functions; doors/windows/bathrooms/kitchen/balcony assumptions or constraints must be explicit.\r-4. Executability: organize information so downstream can draw the 2D plan directly.\r-5. Language policy (CRITICAL):\r- - Follow the UI language policy provided by the system messages.\r- - If UI language is zh, output Simplified Chinese; if UI language is en, output English.\r- - Do not mix languages unless explicitly requested.\r-\r-# Output Format\r-Output only one JSON code block:\r-\`\`\`json\r-{\r- "type": "cad_plan",\r- "plan": {\r- "summary": "one-sentence summary",\r- "assumptions": ["..."],\r- "rooms": [\r- { "name": "Living Room", "size": "4.2m x 3.6m", "notes": "circulation / lighting / storage notes" }\r- ],\r- "style": "Modern / Scandinavian / ...",\r- "constraints": ["Hard constraint: load-bearing walls cannot be moved", "Budget range: ...", "Preference: ..."]\r- }\r-}\r-\`\`\`\r-`,yPe=`# R - Role-You are the CAD 2D Orchestrator / Router (\`cad_svg_agent\`).-Your only job is to decide which tool to call next for 2D SVG work.--# I - Instructions-Given user intent and current CAD context, output exactly one route number:-- \`1\` -> \`flow_patch_agent\` (atomic patch)-- \`2\` -> \`flow_replace_agent\` (full replace)--# Input-I will provide:-- User request text-- Current 2D SVG (if exists)-- Optional \`cad_plan\`--# S - Steps-1. Check whether "Current 2D SVG" exists in context.-2. Classify whether request is a local/small edit or a structural redraw.-3. Decide if exact match patching is reliable.-4. Output exactly one tool route number.--# E - End Goal-Choose the safest and smallest tool call so the external system can produce a correct 2D SVG.--# N - Narrowing-Constraints:-1. You only route. Do not generate SVG or JSON patch payloads.-2. Output only a single digit string (\`1\` or \`2\`).-3. No code block, no JSON, no explanation, no punctuation.-4. Route exactly one tool per turn.--Routing rules (MUST follow):-1. If current 2D SVG does not exist: output \`2\`.-2. Output \`1\` only when ALL are true:- - User asks for local/small updates.- - Exact target elements/snippets can be reliably identified.- - Patching risk is low.-3. Output \`2\` when ANY are true:- - New drawing or major layout/structure refactor.- - Patching match may fail.- - Geometry dependencies are broad or ambiguous.--Tool mapping:-- 1: \`flow_patch_agent\`-- 2: \`flow_replace_agent\`--# Output Format-Output exactly one string: \`1\` or \`2\`.-`,vPe=`# R - Role-You are \`flow_patch_agent\`.-In this CAD workflow, you perform small, local, exact-match edits to an existing 2D architectural SVG using an atomic JSON patch.--# I - Instructions-Given user request and current 2D SVG, output a single \`cad_patch\` JSON payload with \`mode="patch"\` that applies minimal search/replace edits.--# Input-I will provide:-- User request text-- "Current 2D SVG" (verbatim; source of truth)-- Optional \`cad_plan\` for consistency checks-- Optional analysis image references (overall analysis + key strategy) as multimodal image inputs--# S - Steps-1. Confirm current 2D SVG exists and request is a local change.-2. If analysis images are provided, extract spatial intent/functional strategy from them and keep edits aligned.-3. Locate the smallest exact SVG snippets to edit.-4. Copy each \`search\` snippet exactly from current SVG.-5. Produce \`replace\` snippets that preserve valid SVG and drafting consistency.-6. Output exactly one JSON code block.--# E - End Goal-Produce one minimal \`cad_patch\` JSON payload that safely applies the requested SVG change without disturbing unrelated content.--# N - Narrowing-Constraints (CRITICAL):-1. Output exactly ONE markdown \`\`\`json code block and nothing else.-2. You MUST output:- \`{"type":"cad_patch","target":"2d_svg","mode":"patch",...}\`-3. Do NOT output \`mode="replace"\` here. If unsafe, still provide best exact patch; orchestrator will switch tool if needed.-4. Exact match rules:- - \`search\` must be copied exactly (case/space/newline sensitive).- - Prefer full element blocks with stable identifiers (\`id\`, unique labels, or unique geometry).- - Keep each edit minimal and specific.-5. JSON escaping:- - Must be valid JSON.- - Escape \`"\` and control characters in strings (\`\\n\`, \`\\r\`, \`\\t\`, \`\\\\\`).-6. Keep untouched content unchanged.-7. Language policy:- - Follow UI language policy from system messages for human-readable labels.-8. If analysis image references are present:- - Use them as strategy guidance only.- - Do not copy textual labels from images verbatim into the SVG unless requested.--# CAD Engineering Rules (for touched content)-# ARCHITECTURAL DRAFTING RULES (APPLY ONLY TO TOUCHED CONTENT)--## 5. Drawing System Defaults (SVG-Executable)-- Geometry units: Treat existing SVG \`viewBox\` user units as millimeters (mm) for touched content IF the current file already behaves like mm-scale. Otherwise, do not rescale; follow existing numeric conventions.-- Elevations: meters with three decimals (e.g., H+-0.000) ONLY if the drawing already uses elevation notes or \`cad_plan\` provides them. Do NOT fabricate.-- Scale: preserve existing scale/proportions. Never “force 1:100” unless the current SVG already uses it consistently.-- Coordinate system: keep existing \`viewBox\`, origin, axes, and global transforms unchanged.-- Paper intent: any A3/A4 or “b=0.7mm” references are styling intent only; implement via SVG stroke widths consistent with existing artwork.-- Non-scaling strokes (preferred): for newly added/edited stroked elements, add \`vector-effect="non-scaling-stroke"\` unless the current SVG consistently avoids it.--## 6. Linework & Typography (For Added/Edited Content Only)-### 6.1 Lineweight policy (MATCH-FIRST, then fallback)-- MATCH-FIRST RULE: If the SVG already has a style system (CSS classes like \`.wall\`, \`.dim\`, inline \`stroke-width\`, symbol definitions), reuse the same classes/attributes instead of inventing new ones.-- Fallback weights (only if no existing system): use these SVG \`stroke-width\` values (in user units) for touched content:- - Load-bearing / structure / cut: 0.70- - Partitions: 0.50- - Dimensions: 0.25- - Furniture / symbols: 0.18- - Section / horizon / cut indicators: 1.00-- Line caps/joins: prefer \`stroke-linecap="round"\` for dimension ticks/leaders; \`stroke-linejoin="miter"\` for walls. Match existing if present.--### 6.2 Linetypes (keep consistent)-- Reuse existing \`stroke-dasharray\` patterns if present.-- If you must introduce a new dashed pattern (rare), keep it simple and consistent:- - Demolition / projection: \`stroke-dasharray="4 2"\`- - Axes / centerlines: \`stroke-dasharray="8 2 2 2"\`-- Do not mix multiple dash styles for the same semantic category.--### 6.3 Text rules (SVG reality)-- MATCH-FIRST: reuse existing font-family, font-size, fill, stroke, and text styling near the edited area.-- If absent, use:- - UI zh: \`font-family="Heiti, FangSong_GB2312, sans-serif"\`- - UI en: \`font-family="Arial, Times New Roman, sans-serif"\`-- Use \`dominant-baseline\` and \`text-anchor\` to align labels cleanly.-- Text MUST NOT overlap lines. If crowded, offset with a leader or relocate text outside the room boundary.--## 7. Walls (When Modifying Walls)-- Preserve the existing wall representation method:- - If walls are double-line strokes, continue double-line.- - If walls are filled polygons/paths, keep that method.-- Thickness conventions (only when you can do it consistently):- - Load-bearing target thickness: 240mm- - Partition target thickness: 100–150mm- - If thickness is not encoded reliably, do NOT “correct” thickness globally; only maintain local consistency.-- Connectivity HARD RULE: all modified wall junctions must remain closed with no gaps, overlaps, or dangling endpoints.-- No micro-gaps: adjacent endpoints must share identical coordinates (exact numeric match) within touched snippets.--## 8. Doors / Windows / Openings (When Touched)-### Doors-- MATCH-FIRST: if the SVG uses door symbols/groups (\`<g id="door_*">\`, \`<symbol>\`, reused paths), follow that pattern.-- Door graphics must include frame + leaf + swing arc (90°) UNLESS the entire drawing convention omits swing arcs.-- Door code rule (NO FABRICATION):- - If door codes exist in current SVG or are provided in \`cad_plan\`, preserve/add them.- - If not provided, omit the code rather than inventing “M0921”.-- Bathroom door swing default is a soft rule: inward ONLY if consistent with the current SVG convention.-- Prevent obvious swing collisions with nearby walls/fixtures in the edited area.--### Windows-- Use the existing window convention (triple-line / bold double-line / symbol).-- NO floating: window must be hosted on a wall; ends align to jamb geometry.-- Window metadata rule (NO FABRICATION):- - If width/sill height labels exist or are in \`cad_plan\`, preserve/add.- - If missing, do not fabricate numbers; only add generic labels if the file already does so.--### Openings-- Maintain jamb-to-corner locating dimensions ONLY if that dimensioning scheme already exists locally.-- If the area has no dimensions, do not introduce a full locating system; keep edits minimal.--## 9. Columns / Shafts / Risers / Drains (If Edited)-- MATCH-FIRST: reuse existing symbols/hatches/pattern fills.-- Column: rectangle (filled or stroked) + size label only if sizing labels are used elsewhere.-- Shaft/Flue: rectangle + diagonal hatch if hatch style exists; otherwise labeled rectangle is acceptable.-- Riser: rectangle labeled “RISER/立管” only if consistent with the file.-- Floor drain: small circle + drainage arrow only in wet zones and only if the file already uses that symbol family.--## 10. Space Labels & Wet Zones (If Modified)-- Do NOT fabricate areas/levels.- - If area labels (m²) exist in the SVG or \`cad_plan\`, preserve/update them.- - If not provided, include only the space name.-- Wet areas:- - Enclosure clarity must remain visible (boundary defined by walls/doors).- - Step-down level (H-0.020), slope arrows, drain symbols: add only if the current SVG already contains these conventions or \`cad_plan\` explicitly specifies them.--## 11. Fixtures & Cabinetry (If Modified)-- Prefer existing fixture blocks/groups; do not introduce a new symbol style.-- Kitchen: sink/cooktop/fridge/cabinets only if present elsewhere in the file or explicitly requested.-- “Flue + gas + riser logic”: do NOT infer routes/appliances unless \`cad_plan\` provides them; never invent pipe networks.-- Bathroom: avoid overlaps; respect reasonable clearances. The toilet centerline 300–500mm from wall is a guideline; do not break established layout to enforce it.--## 12. Flooring Materials (If Modified)-- Add material boundaries/patterns only if the SVG already has a material vocabulary (layer/pattern/style).-- If adding:- - Use dashed boundary consistent with existing style.- - Label material/spec only when specified. Otherwise use generic labels (Tile/地砖, Wood/木地板) if consistent with the file.-- Slope arrows (1%–2%) only when wet-zone slope notation already exists or is specified.--## 13. Dimensioning Rules (If Modified)-### 13.1 Local dimension edits (patch-friendly)-- Do not introduce a complete dimension system unless the user explicitly requests it or the current SVG already uses it extensively.-- For any added/edited dimension locally:- - Units: mm only (text), but do not fabricate numbers.- - Match existing arrow/tick style (ticks vs arrows).- - Keep text readable and non-overlapping.- - Avoid crossing walls/fixtures; reroute with leaders if needed.--### 13.2 Full dimensioning (ONLY if requested AND existing)-If (a) user asks for full dimensioning OR (b) the SVG already has three outer chains and internal dims:-- Maintain the existing chain structure where it already exists.-- Never fabricate totals if segments are unknown; prefer leaving chains unchanged over inventing numbers.-- Avoid loops/duplicates; do not dimension the same segment twice.--## 14. Callouts / Elevations / Symbols (If Modified)-- Callouts/section/elevation symbols are optional unless:- - user explicitly requests them, OR- - they already exist in the current SVG and the edit impacts referenced elements.-- If adding, reuse the existing symbol style and numbering scheme; do not invent sheet/detail IDs unless present.--## 15. Legend & Annotation Rules (If Edited)-- Legend edits are not mandatory in a local patch unless:- - user requests legend changes, OR- - you introduce a new symbol category not previously used in the drawing.-- If you must add a legend entry, append minimally and match existing formatting.--## 16. Circulation & Compliance (If Geometry Changes)-- Local edits must not create obvious usability issues in the edited area:- - door-to-door conflicts- - doors opening into fixtures- - blocked corridor/entry path-- “Bathroom door should not face kitchen/entry” is context-dependent; do not restructure layout unless explicitly requested.--## 17. Professional Minimum Quality (HARD RULES)-- NO floating geometry: doors/windows/fixtures must be anchored to walls/floors via explicit alignment.-- NO overlaps or open joints in touched geometry.-- NO door swing collisions in the touched area.-- NO unreadable text: if crowded, move label with a leader; never shrink to illegible.-- NO hidden global rescale: do not change viewBox, global transforms, or overall scale.-- When required info is missing, OMIT rather than fabricate (codes, areas, sill heights, elevations, totals).--# Output Format-\`\`\`json-{- "type": "cad_patch",- "target": "2d_svg",- "mode": "patch",- "edits": [- { "search": "EXACT SVG snippet", "replace": "replacement snippet" }- ]-}-`,xPe=`# R - Role-You are \`flow_replace_agent\`.-In this CAD workflow, you generate or fully rewrite a 2D architectural floor plan as a complete SVG, wrapped in a JSON response.--# I - Instructions-Based on user request, optional \`cad_plan\`, and optional existing SVG, output a single \`cad_patch\` JSON payload with \`mode="replace"\` containing a complete \`<svg ...>...</svg>\`.--# Input-I will provide:-- User request text-- Optional \`cad_plan\` JSON-- Optional current 2D SVG (reference only)-- Optional analysis image references (overall analysis + key strategy) as multimodal image inputs--# S - Steps-1. Determine target 2D floor-plan structure from request + plan.-2. If analysis images are provided, align zoning/circulation/priority decisions with their strategy intent.-3. Produce one complete, renderable SVG with coherent layers/geometry.-4. Keep geometry buildable and drafting-valid.-5. Self-check SVG validity and consistency before output.--# E - End Goal-Produce one complete \`cad_patch\` JSON payload whose \`full\` field contains the final, renderable SVG for the requested floor plan.--# N - Narrowing-Constraints (CRITICAL):-1. Output exactly ONE markdown \`\`\`json code block and nothing else.-2. You MUST output:- \`{"type":"cad_patch","target":"2d_svg","mode":"replace","full":"<svg ...>...</svg>"}\`-3. Do NOT output patch edits in this tool.-4. \`full\` must be one complete SVG document string.-5. JSON escaping:- - Valid JSON required.- - Escape \`"\` and control characters in the SVG string.-6. Language policy:- - Follow UI language policy from system messages for labels/notes.-7. If analysis image references are present:- - Use them as design-strategy guidance only.- - Do not copy textual labels from images verbatim into the SVG unless requested.--# CAD Engineering Rules (MANDATORY)-# CRITICAL ARCHITECTURAL DRAFTING RULES (MANDATORY)--## 0. SVG Document & Layout System (MANDATORY)-- The SVG MUST be self-contained and renderable in modern browsers.-- Use a consistent coordinate system:- - Prefer \`viewBox\` user units = millimeters (mm) for the drawing model.- - If \`cad_plan\` provides a real-world scale or paper size, align the viewBox accordingly.- - If unknown, choose a reasonable canvas (e.g., A3 landscape: 420x297 units) and place the plan within margins.-- For stroked geometry, prefer \`vector-effect="non-scaling-stroke"\` so lineweights remain visually stable when zooming/exporting.-- Organize content into semantic layers using grouped \`<g>\` elements with stable ids:- - \`layer_walls\`, \`layer_openings\`, \`layer_columns_shafts\`, \`layer_fixtures\`, \`layer_furniture\`,- \`layer_materials\`, \`layer_dims\`, \`layer_symbols\`, \`layer_text\`, \`layer_legend\`, \`layer_titleblock\`, \`layer_north\`-- Reuse symbols via \`<defs>\` (\`<symbol>\` / \`<g id="sym_*">\`) for doors/windows/fixtures/arrows to keep consistency.--## A. Walls (MANDATORY, buildable + closed)-- Walls must be represented consistently:- - Prefer double-line wall convention (two parallel strokes or a closed wall polygon with inner/outer edges).- - All wall intersections MUST be closed (no gaps, overlaps, dangling endpoints).-- Thickness targets (use when \`cad_plan\` supports it; otherwise choose sensible defaults and keep consistent):- - Load-bearing wall = 240mm- - Partition wall = 100–150mm-- Wall types (only if needed by request or plan):- - Existing wall = continuous- - New wall = slightly stronger emphasis + label "NEW/新建" near the segment- - Demolition wall = dashed + cross-hatch (only when demolition is requested/known)-- Paper intent note:- - Any “>=0.7mm on paper” is styling intent; implement via SVG stroke widths consistent with the lineweight system below.--## B. Doors & Windows (MANDATORY where applicable)-### Doors (MANDATORY when present)-- Door must show: frame + leaf + 90° swing arc.-- Door must be hosted on a wall (no floating).-- Prevent obvious swing conflicts with adjacent walls/fixtures.-- Door metadata (NO FABRICATION):- - If \`cad_plan\` provides opening width/door code, include it.- - If not provided, you may show opening width ONLY if it can be derived from geometry; otherwise omit codes like “M0921” rather than inventing.-- Bathroom door swing default is a soft rule:- - Inward by default ONLY if not contradicted by \`cad_plan\`/user request and does not cause conflicts.--### Windows (MANDATORY when present)-- Use a consistent window convention (triple-line or bold double-line).-- Window must align to jambs and be embedded in wall thickness (NO floating windows).-- Window metadata (NO FABRICATION):- - Include width/type/sill height ONLY if provided by \`cad_plan\` or explicitly requested with known values.- - If unknown, omit numeric sill heights and types; use generic label only if the drawing elsewhere uses it.--### Openings-- Add jamb markers; include locating dimensions only if a dimensioning system is present (see G).--## C. Columns / Shafts / Risers / Drains (MANDATORY where applicable)-- Columns: rectangle (filled or stroked per style) + size label only if size is known (from \`cad_plan\` or explicit input).-- Flue/Shaft: rectangle + diagonal hatch (prefer pattern fill in \`<defs>\`).-- Riser: labeled rectangle "RISER/立管" if known/needed.-- Floor drain: small circle + drainage arrow in wet zones only.--## D. Space Labels & Areas (MANDATORY, but NO FABRICATION)-- Every room MUST include a space label:- - Room name (follow UI language policy from system messages)-- Area and level notes:- - Include Area (m², 1 decimal) ONLY if \`cad_plan\` provides it OR it can be reliably computed from a closed boundary polygon.- - Include Level note (e.g., H+-0.000) ONLY if provided by \`cad_plan\`/request or if the drawing has a consistent elevation notation.- - Do NOT invent areas/elevations.-- Wet areas (when present):- - Must be visually enclosed/legible boundary.- - Step-down level (H-0.020), drainage arrows, drain symbol: include ONLY if wet-area detailing is requested or provided by \`cad_plan\`.--## E. Fixtures & Cabinetry (MANDATORY where applicable; keep realistic)-### Kitchen (when present/required)-- Depict: sink, cooktop, fridge, base/upper cabinets in thin lines.-- “Flue + gas + riser / water heater logic”:- - Show shafts/risers/flues ONLY if provided by \`cad_plan\` or explicitly requested with placements.- - Do NOT invent full MEP routing.--### Bathroom (when present/required)-- Depict: toilet, vanity, shower/bath with clearances; avoid overlaps.-- Toilet centerline 300–500mm from wall is a guideline; adapt to actual layout constraints.--### Furniture-- Fixed furniture (wardrobe/TV cabinet/storage): show as dimensioned footprints when sizes are known; otherwise show generic cabinetry blocks consistent with the plan.-- Movable furniture: outline only with thin stroke; avoid clutter.--## F. Flooring Materials (OPTIONAL unless requested; NO FABRICATION)-- Different materials may be shown as zones with dashed boundary and hatch/pattern fill.-- Label material + spec (e.g., 600x1200 tile) ONLY if specified by user or \`cad_plan\`.-- Wet zones slope arrows (1%–2%) and threshold stones: show ONLY if requested or specified; otherwise omit.--## G. Dimensioning System (CONDITIONAL, avoid “fake precision”)-- Dimensioning is mandatory ONLY if:- - the user explicitly requests dimensions, OR- - \`cad_plan\` includes dimensions/standards requiring them.-- If dimensioning is included:- - Units: mm only.- - Style: extension offset ≈ 2 units; overshoot 2–3 units; consistent tick/arrow style; text centered and readable.- - Avoid overlaps and cross-chain loops.-- Three outer chains (segments → bays → overall) should be included ONLY if:- - there is a clear building envelope/structural bay logic in \`cad_plan\`, OR- - the user requests full construction dimensioning.-- NEVER invent numeric dimensions. If a value cannot be derived or is missing, omit the number rather than guessing.--## H. Elevation / Section / Callout Symbols (CONDITIONAL, not auto-invented)-- Add interior elevation markers / section cuts / detail callouts ONLY if:- - explicitly requested, OR- - \`cad_plan\` provides a numbering scheme, OR- - the user’s workflow needs them and identifiers are provided.-- Do NOT invent sheet/detail IDs or numbering systems.-- Floor elevation format (H+-0.000) only when elevations are known.--## I. Lineweight System (FIXED intent, implementable in SVG)-- Implement a consistent, minimal lineweight palette in SVG \`stroke-width\` (user units).-- Prefer class-based styling in a \`<style>\` block:- - \`.lw_struct { stroke-width: 0.70; }\`- - \`.lw_part { stroke-width: 0.50; }\`- - \`.lw_dim { stroke-width: 0.25; }\`- - \`.lw_sym { stroke-width: 0.18; }\`- - \`.lw_cut { stroke-width: 1.00; }\`-- Dash rules MUST remain consistent across categories.-- Use \`fill="none"\` for linework unless a fill is semantically required (columns, hatches, material zones).--## J. Text Style Rules (SVG-safe)-- Follow UI language policy from system messages:- - UI zh: Heiti / FangSong_GB2312 (with fallbacks)- - UI en: Arial / Times New Roman (with fallbacks)-- Text must not overlap walls/dimensions. Use leaders/offsets.-- Prefer consistent font sizes relative to the drawing:- - Title: larger than room labels- - Room labels: larger than dimensions/notes- - Dimension text: smallest but readable-- Avoid hardcoding “mm paper height” unless you have an explicit viewBox=mm mapping.--## K. Legend & Symbol Table (CONDITIONAL, layout-safe)-- Include a legend ONLY if:- - requested by the user, OR- - you introduce multiple symbol categories that would be ambiguous without a legend.-- Legend entries must match the symbols actually used in the drawing.-- Keep legend compact; place it in a reserved corner area so it does not crowd the plan.--## L. Circulation & Compliance Rules (MANDATORY at high level)-- Maintain clear circulation paths for entry → living → bedrooms (no obvious blockages).-- Avoid door-to-door collisions where doors face each other in close proximity.-- Bathroom door facing kitchen/entry is context-dependent; do not enforce unless requested or required by \`cad_plan\`.-- Wet areas must be enclosed as a coherent zone (walls/doors define boundary).--## M. Rendering Scope (MANDATORY)-- Draw ONLY a 2D horizontal cut plan.-- Cut height note (1.1–1.5m) may be included as a drawing note if the sheet includes notes/title block.-- Represent post-renovation finished surfaces if the request indicates renovation; otherwise represent existing as specified.-- Include only what is supported by request/plan:- - Always: walls, doors/windows, key fixtures- - Optional/conditional: columns/shafts, materials, dimensions, callouts, legend, north arrow, title block--## N. Missing Data Handling (MANDATORY, anti-hallucination)-- If \`cad_plan\` lacks required info:- - Infer ONLY safe geometric defaults needed to draw a coherent plan (e.g., partition thickness within 100–150mm).- - Do NOT fabricate numeric metadata (door/window codes, sill heights, areas, elevation notes, total dimensions, sheet IDs).- - Prefer omission over guessing for any value that looks “authoritative”.-- DO NOT output explanations; the SVG should simply omit unknown annotations.--# Output Format-\`\`\`json-{- "type": "cad_patch",- "target": "2d_svg",- "mode": "replace",- "full": "<svg xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 W H\\">...</svg>"-}-`,K_=mPe,Sj=yPe,kj=vPe,Dj=xPe,yA='# R - Role\r\nYou are flow_patch_agent. You perform small, local, exact-match edits to an existing draw.io diagram using an atomic JSON patch.\r\n\r\n# I - Instructions\r\nGiven the user request and the provided "Current diagram XML", output a single `flow_patch` JSON payload with `mode="patch"` that applies minimal search/replace edits.\r\n\r\n# Input\r\nI will provide:\r\n- User request text\r\n- "Current diagram XML" (verbatim; treat it as the source of truth)\r\n\r\n# S - Steps\r\n1. Confirm that "Current diagram XML" exists in context and you are making a small/local change.\r\n2. Identify the smallest set of exact XML snippets to edit.\r\n3. Copy the `search` snippet(s) EXACTLY from the current XML (no reformatting).\r\n4. Write `replace` snippet(s) that keep draw.io XML valid and consistent.\r\n5. Output exactly one JSON code block that matches the schema.\r\n\r\n# E - End Goal\nProduce one minimal `flow_patch` JSON payload that applies the requested local change safely and exactly.\n\n# N - Narrowing\nConstraints (CRITICAL):\r\n1. Output exactly ONE markdown ```json code block and nothing else.\r\n2. You MUST output `{"type":"flow_patch","target":"drawio_xml","mode":"patch",...}` (mode is always `patch`).\r\n3. Do NOT output `mode="replace"` here. If a full replace is needed, do your best minimal patch; the orchestrator will switch modes if required.\r\n4. Patch rules (CRITICAL):\r\n - `search` MUST be copied EXACTLY; attribute order, whitespace, and line breaks matter.\r\n - Always include `id="..."` in `search` for uniqueness.\r\n - Prefer matching a complete `<mxCell ...> ... </mxCell>` block (including `<mxGeometry .../>`).\r\n - Each `search` SHOULD match exactly once; if ambiguous, make it more specific.\r\n - Each `search` MUST contain complete lines (never truncate mid-line).\r\n - Keep edits concise: include only the lines that are changing, plus 1-2 surrounding lines for context if needed.\r\n - Break large changes into multiple smaller edits.\r\n - Replacements apply to the first match only; be specific enough to hit the intended element.\r\n5. JSON escaping (CRITICAL):\r\n - Output must be valid JSON; escape any `"` inside `search`/`replace` with `\\"`.\r\n - JSON strings MUST NOT contain raw control characters:\r\n - Use `\\\\n` for newlines, `\\\\r` for carriage returns, `\\\\t` for tabs, and `\\\\\\\\` for backslashes.\r\n - Do not include raw newlines or raw tab characters inside JSON string values.\r\n6. XML rules (CRITICAL):\r\n - Never nest `<mxCell>` inside another `<mxCell>` (DOM nesting forbidden).\r\n - All `<mxCell>` elements MUST be direct children of `<root>`.\r\n - Every `<mxCell>` MUST have a unique, non-empty `id`.\r\n - For any edited/added edge, `source`/`target` (if present) MUST reference existing ids.\r\n - Escape special characters in attribute values:\r\n - Use `<` `>` `&` `"` (never raw `<`, `>`, `&`, `"` inside XML attribute values).\r\n7. Empty value/style policy (CRITICAL):\r\n - NEVER output `style=""`. If no style is needed, omit style changes or use defaults.\r\n - For vertices, avoid `value=""` unless intentionally unlabeled; prefer meaningful labels.\r\n - For edges, `value=""` is allowed.\r\n8. Style defaults (use when needed and user gives no style/theme requirements):\r\n - Shape default: `rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=12;`\r\n - Edge default: `edgeStyle=orthogonalEdgeStyle;rounded=0;endArrow=classic;html=1;`\r\n - Default theme palette:\r\n - Primary: `fillColor=#dae8fc;strokeColor=#6c8ebf;`\r\n - Secondary: `fillColor=#e1d5e7;strokeColor=#9673a6;`\r\n - Text: `fontColor=#333333;`\r\n - Do not mix random colors unless user asks.\r\n9. ID policy (CRITICAL):\r\n - Preserve existing IDs; do not rename IDs unless explicitly requested.\r\n - If you must add new cells, use deterministic ids like `node2`, `edge2`, `group2` with numeric suffixes, and ensure uniqueness.\r\n10. Language policy (CRITICAL):\r\n - Follow the UI language policy provided by the system messages.\r\n - If UI language is zh, output Simplified Chinese; if UI language is en, output English.\r\n - Do not mix languages unless explicitly requested.\r\n\r\n# Output Format\r\n```json\r\n{\r\n "type": "flow_patch",\r\n "target": "drawio_xml",\r\n "mode": "patch",\r\n "edits": [\r\n { "search": "EXACT snippet from Current diagram XML", "replace": "replacement snippet" }\r\n ]\r\n}\r\n```\r\n',Gu='# R - Role\r\nYou are flow_replace_agent. You generate or fully rewrite a draw.io diagram as a complete `<mxGraphModel>...</mxGraphModel>` wrapped in a JSON response.\r\n\r\n# I - Instructions\r\nBased on the user request and any provided context, output a single `flow_patch` JSON payload with `mode="replace"` containing a complete draw.io XML `<mxGraphModel>...</mxGraphModel>`.\r\n\r\n# Input\r\nI will provide:\r\n- User request text\r\n- Optional "Current diagram XML" (if present, use it only as reference for continuity)\r\n\r\n# S - Steps\r\n1. Determine the target diagram structure from the user request.\r\n2. Generate a full valid `<mxGraphModel>...</mxGraphModel>` with a `<root>...</root>`.\r\n3. Use consistent layout, styles, and deterministic ids.\r\n4. Self-validate the XML and fix any violations before responding.\r\n\r\n# E - End Goal\nProduce one complete `flow_patch` JSON payload whose `full` field contains the final draw.io XML for the requested diagram.\n\n# N - Narrowing\nConstraints (CRITICAL):\r\n1. Output exactly ONE markdown ```json code block and nothing else.\r\n2. You MUST output `{"type":"flow_patch","target":"drawio_xml","mode":"replace",...}` (mode is always `replace`).\r\n3. Do NOT output patch edits here (`mode="patch"` is forbidden).\r\n4. XML generation rules (CRITICAL):\r\n - Output XML MUST be a full `<mxGraphModel>...</mxGraphModel>` containing `<root>...</root>`.\r\n - Always include the two special root cells, in `<root>`:\r\n - `<mxCell id="0"/>`\r\n - `<mxCell id="1" parent="0"/>`\r\n - `<mxCell id="0"/>` MUST NOT have a `parent` attribute.\r\n - `<mxCell id="1" parent="0"/>` MUST have `parent="0"` exactly.\r\n - ALL `<mxCell>` elements MUST be DIRECT children of `<root>` (DOM nesting is forbidden).\r\n - Every `<mxCell>` MUST have a unique, non-empty `id`.\r\n - Every `<mxCell>` except `id="0"` MUST have a valid `parent` attribute.\r\n - For edges (`edge="1"`): `source`/`target` (if present) MUST reference existing ids.\r\n5. Escaping (CRITICAL):\r\n - JSON must be valid; escape `"` inside the XML string with `\\"`.\r\n - JSON strings MUST NOT contain raw control characters:\r\n - Use `\\\\n` for newlines, `\\\\r` for carriage returns, `\\\\t` for tabs, and `\\\\\\\\` for backslashes.\r\n - Escape special characters in XML attribute values:\r\n - Use `<` `>` `&` `"` (never raw `<`, `>`, `&`, `"` inside XML attribute values).\r\n - NEVER include XML comments (`<!-- ... -->`).\r\n6. Empty value/style policy (CRITICAL):\r\n - NEVER output `style=""`. If no style is specified, use defaults.\r\n - For vertices, avoid `value=""` unless intentionally unlabeled; prefer meaningful labels.\r\n - For edges, `value=""` is allowed.\r\n7. Layout constraints (CRITICAL):\r\n - Keep all elements within a single page viewport; use x in 0-800 and y in 0-600.\r\n - Use compact grid/stack layout and keep related elements close.\r\n8. Common style guidance:\r\n - Shape default: `rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=12;`\r\n - Edge default: `edgeStyle=orthogonalEdgeStyle;rounded=0;endArrow=classic;html=1;`\r\n - Default theme (when user gives no style/theme requirements):\r\n - Primary: `fillColor=#dae8fc;strokeColor=#6c8ebf;`\r\n - Secondary: `fillColor=#e1d5e7;strokeColor=#9673a6;`\r\n - Text: `fontColor=#333333;`\r\n - Do not mix random colors unless user asks.\r\n9. Edge routing rules (CRITICAL):\r\n - Prefer orthogonal routing: `edgeStyle=orthogonalEdgeStyle`.\r\n - If two edges connect the same nodes, vary exit/entry points (`exitY`/`entryY`) to avoid overlap.\r\n10. ID policy and scale limits (CRITICAL):\r\n - IDs MUST be deterministic and human-readable; avoid random IDs.\r\n - Use `node2`, `node3`... for vertices; `edge2`, `edge3`... for edges; `group2`... for containers.\r\n - Hard limit: <= 80 vertices and <= 120 edges; simplify if requested content exceeds limits.\r\n11. Output validation (CRITICAL):\r\n - Before responding, self-check:\r\n - XML parses cleanly and includes root cells 0 and 1.\r\n - All parent/source/target references exist.\r\n - No invalid geometry (negative sizes, NaN/Infinity).\r\n - Layout fits within the viewport constraints.\r\n12. Language policy (CRITICAL):\r\n - Follow the UI language policy provided by the system messages.\r\n - If UI language is zh, output Simplified Chinese; if UI language is en, output English.\r\n - Do not mix languages unless explicitly requested.\r\n\r\n# Output Format\r\n```json\r\n{ "type": "flow_patch", "target": "drawio_xml", "mode": "replace", "full": "<mxGraphModel>...</mxGraphModel>" }\r\n```\r\n',bPe="chat_history_v2_",ZC=`-...[truncated]`,K$={maxMessages:50,maxMessageChars:24e3,maxTotalChars:24e4},APe=[K$,{maxMessages:30,maxMessageChars:12e3,maxTotalChars:12e4},{maxMessages:16,maxMessageChars:6e3,maxTotalChars:6e4},{maxMessages:8,maxMessageChars:3e3,maxTotalChars:3e4}],Cj={maxMessageChars:3e3,maxTotalChars:18e3},$$=e=>Array.isArray(e)?e.filter(t=>t&&typeof t=="object").map(t=>{const n=String(t.role||""),r=n==="user"||n==="assistant"||n==="system"?n:"user",i=typeof t.content=="string"?t.content:String(t.content??"");return{role:r,content:i}}).filter(t=>!!t.content):[],vA=(e,t)=>{const n=String(e||"");return t<=0?"":n.length<=t?n:t<=ZC.length?n.slice(0,t):n.slice(0,t-ZC.length)+ZC},Tj=e=>{if(!Array.isArray(e)||e.length===0)return"";const t=e.filter(i=>i&&(i.role==="user"||i.role==="assistant")).slice(-12);if(t.length===0)return"";let n=0;const r=[];for(const i of t){const a=vA(String(i.content||""),Cj.maxMessageChars);if(!a)continue;const o=Cj.maxTotalChars-n;if(o<=0)break;const s=a.length>o?vA(a,o):a,l=i.role==="assistant"?"Assistant":"User";r.push(`[${l}] ${s}`),n+=s.length}return r.length===0?"":`Recent chat history (for intent continuity):--${r.join(`--`)}`},Y$=(e,t)=>{const n=Math.max(1,Number(t.maxMessages)||1),r=Math.max(256,Number(t.maxMessageChars)||256),i=Math.max(1024,Number(t.maxTotalChars)||1024),a=$$(e).slice(-n).map(s=>({role:s.role,content:vA(s.content,r)}));let o=a.reduce((s,l)=>s+l.content.length,0);for(;a.length>1&&o>i;){const s=a.shift();o-=(s==null?void 0:s.content.length)||0}return a.length===1&&a[0].content.length>i&&(a[0]={role:a[0].role,content:vA(a[0].content,i)}),a},wPe=(e,t)=>{for(const n of APe)try{const r=Y$(t,n);return localStorage.setItem(e,JSON.stringify(r)),!0}catch{}return!1};function SPe({className:e,attachments:t=[],onRemoveAttachment:n,pptDraftSlides:r=[],onRemovePptDraftSlide:i,onClearPptDraftSlides:a,onCodeAction:o,systemPrompt:s=tZ,initialMessages:l=[],onMessagesChange:c,chatModel:u,workspaceId:d="default",mode:h="text",hideHistoryButton:f=!1,collapsed:g=!1,onToggleCollapse:y,collapseLocked:v=!1,title:A,inputPlaceholder:w,history:S=[],onRestore:_,onClearVersionHistory:E,onClearAttachments:T,cadContext:D,flowContext:I,onClearWorkspace:j}){const R=pa(),z=(Ye,ct)=>R==="zh"?Ye:ct,B=A||z("AI 助手","AI Assistant"),W=R==="zh"?"Simplified Chinese (zh-CN)":"English (en)",P=d==="cad"?`Output language: ${W}`:"",Z=F_(R),Q=F_("en"),X=()=>d!=="cad"?[]:(Array.isArray(D==null?void 0:D.analysisImages)?D.analysisImages:[]).map((ct,vt)=>({title:typeof(ct==null?void 0:ct.title)=="string"&&ct.title.trim()?ct.title.trim():R==="zh"?`分析图${vt+1}`:`Analysis ${vt+1}`,url:String((ct==null?void 0:ct.url)||"").trim()})).filter(ct=>!!ct.url&&(/^data:image\//i.test(ct.url)||/^https?:\/\//i.test(ct.url))).slice(0,2),q=Ye=>{const ct=X();if(ct.length===0)return Ye;const vt=ct.map((Gt,jt)=>`${jt+1}. ${Gt.title}`).join(`-`);return[{type:"text",text:[Ye,z(`分析图参考(生成2D平面图时必须参考以下图片中的空间关系、功能分区和重点策略;不要照搬图片文字):-${vt}`,`Analysis image references (when generating the 2D floorplan, you must reference spatial relationships, functional zoning, and key strategies from the following images; do not copy text labels verbatim):-${vt}`)].filter(Boolean).join(`--`)},...ct.map(Gt=>({type:"image_url",image_url:{url:Gt.url}}))]},te=`${bPe}${d}`,[J,ee]=N.useState(()=>{if(typeof window<"u"){const Ye=localStorage.getItem(te);if(Ye)try{if(d==="cad"){const ct=$$(JSON.parse(Ye));return Y$(ct,K$)}return JSON.parse(Ye)}catch(ct){console.error("Failed to parse chat history",ct)}}return l.length>0?l:[]}),[le,G]=N.useState(""),[xe,ge]=N.useState([{type:"text",text:""}]),[ue,ce]=N.useState(!1),[ye,Fe]=N.useState(!1),[Oe,Le]=N.useState(!1),Re=N.useRef(0),We=3,V=N.useRef(0),ve=3,oe=N.useRef(null),[re,ne]=N.useState([]),be=N.useRef(null),[Ue,Me]=N.useState(0),Ee=N.useRef(0),Se=N.useRef(new Set),[Ce,pe]=N.useState(null),ke=N.useRef([]),Ve=N.useRef(!1),[Xe,it]=N.useState(0),et=N.useRef([]),U=(Ye,ct)=>{const vt=String(Ye||"").match(/(\\d+)/),At=vt?Number(vt[1]):NaN;return Number.isNaN(At)?ct||Ye:ct?z(`第 ${At} 页:${ct}`,`Slide ${At}: ${ct}`):z(`第 ${At} 页`,`Slide ${At}`)},Ae=(Ye,ct)=>{const vt=String(Ye||"").match(/(\\d+)/),At=vt?Number(vt[1]):NaN;if(Number.isNaN(At))return"";const Gt=String(ct||"").split("|").join(",").split("]]").join("");return`[[PPT_SLIDE|${At}|${Gt}]]`},se=()=>{if(Ve.current)return;const Ye=ke.current.shift();if(!Ye)return;Ve.current=!0;const ct=Ae(Ye.slideId,Ye.title);pe({key:Date.now()+Math.random(),slideId:Ye.slideId,label:Ye.label,tag:ct})},Te=(Ye,ct)=>{const vt=U(Ye,ct);ke.current.push({slideId:Ye,title:ct,label:vt}),se()};N.useEffect(()=>{if(d!=="ppt")return;const Ye=Ee.current,ct=r.length;Ee.current=ct,ct>Ye&&Me(vt=>vt+1)},[d,r.length]),N.useEffect(()=>{if(d!=="ppt")return;const Ye=Se.current,ct=new Set(r.map(At=>At.id)),vt=r.filter(At=>!Ye.has(At.id));if(Se.current=ct,vt.length!==0)for(const At of vt)Te(At.slideId,At.title)},[d,r,G]);const $=Ye=>{const vt=String(Ye||"").split(/\r?\n/);for(let At=0;At<vt.length-2;At+=1){const Gt=vt[At],jt=vt[At+1];if(!Gt.includes("|")||!/^\s*\|?(\s*:?-+:?\s*\|)+\s*:?-+:?\s*\|?\s*$/.test(jt))continue;const Et=Kt=>{const ln=Kt.trim().replace(/^[-*+]\s+/,"").replace(/^\d+\.\s+/,""),fr=ln.startsWith("|")?ln.slice(1):ln;return(fr.endsWith("|")?fr.slice(0,-1):fr).split("|").map(bt=>bt.trim())},Rt=Et(Gt).filter(Kt=>Kt);if(Rt.length===0)continue;const Bt=[];for(let Kt=At+2;Kt<vt.length;Kt+=1){const ln=vt[Kt];if(!ln.includes("|"))break;const fr=Et(ln);if(fr.every(bt=>!String(bt||"").trim()))break;const yi=fr.slice(0,Rt.length);for(;yi.length<Rt.length;)yi.push("");Bt.push(yi)}if(Bt.length!==0)return{type:"cad_bom",columns:Rt,rows:Bt}}return null},de=Ye=>{if(d!=="cad"||!Ye)return Ye;const ct=z("(已更新物料清单)","(BOM updated)"),vt=Rt=>{if((Rt==null?void 0:Rt.type)!=="cad_plan")return null;const Bt=(Rt==null?void 0:Rt.plan)||{},Kt=typeof(Bt==null?void 0:Bt.summary)=="string"?Bt.summary.trim():"",ln=typeof(Bt==null?void 0:Bt.style)=="string"?Bt.style.trim():"",fr=Array.isArray(Bt==null?void 0:Bt.assumptions)?Bt.assumptions.map(cn=>String(cn||"").trim()).filter(Boolean):[],yi=Array.isArray(Bt==null?void 0:Bt.constraints)?Bt.constraints.map(cn=>String(cn||"").trim()).filter(Boolean):[],bt=Array.isArray(Bt==null?void 0:Bt.rooms)?Bt.rooms:[],tn=[];return tn.push(z("### 方案概览","### Plan Overview")),Kt&&tn.push(Kt),ln&&tn.push(z(`- 设计风格:${ln}`,`- Style: ${ln}`)),bt.length>0&&(tn.push(""),tn.push(z("### 空间清单","### Space Program")),bt.forEach((cn,Yt)=>{const Pr=String((cn==null?void 0:cn.name)||(cn==null?void 0:cn.type)||"").trim()||z(`空间${Yt+1}`,`Space ${Yt+1}`),On=String((cn==null?void 0:cn.size)||"").trim(),_n=String((cn==null?void 0:cn.notes)||"").trim(),ai=On?`${Yt+1}. **${Pr}**(${On})`:`${Yt+1}. **${Pr}**`;tn.push(ai),_n&&tn.push(` ${_n}`)})),fr.length>0&&(tn.push(""),tn.push(z("### 设计假设","### Assumptions")),fr.forEach(cn=>tn.push(`- ${cn}`))),yi.length>0&&(tn.push(""),tn.push(z("### 关键约束","### Constraints")),yi.forEach(cn=>tn.push(`- ${cn}`))),tn.join(`-`).trim()},At=Rt=>{const Bt=String(Rt||"").trim();if(!Bt)return null;try{const fr=JSON.parse(Bt);return vt(fr)}catch{}const Kt=Bt.indexOf("{"),ln=Bt.lastIndexOf("}");if(Kt>=0&&ln>Kt)try{const fr=JSON.parse(Bt.slice(Kt,ln+1));return vt(fr)}catch{}return null};let Gt=Ye.replace(/```(?:python|py|python3)\s*[\s\S]*?```/g,z("(已在后台处理完成)","(Processed in the background)"));Gt=Gt.split(`-`).filter(Rt=>!/freecad/i.test(Rt)).join(`-`),Gt=Gt.replace(/(?:^|\n)1\.\s*FreeCAD[\s\S]*?(?=\n\d+\.\s|$)/gi,`-`),Gt=Gt.replace(/```json\s*([\s\S]*?)```/g,(Rt,Bt)=>{const Kt=String(Bt||"").trim();if(!Kt)return Rt;try{const ln=JSON.parse(Kt);if((ln==null?void 0:ln.type)==="cad_patch"&&(ln==null?void 0:ln.target)==="2d_svg"){const fr=String((ln==null?void 0:ln.mode)||"");if(fr==="replace"&&typeof(ln==null?void 0:ln.full)=="string"&&ln.full.trim().startsWith("<svg"))return`\`\`\`svg-${ln.full.trim()}-\`\`\``;if(fr==="patch")return Rt}if((ln==null?void 0:ln.type)==="cad_bom")return ct}catch{}return Kt.includes('"type"')&&Kt.includes('"cad_images"')?z("(已提交装修图生成任务)","(CAD drawing generation task submitted)"):Kt.includes('"type"')&&Kt.includes('"cad_analysis_images"')?z("(已提交分析图生成任务)","(Analysis image generation task submitted)"):Kt.includes('"type"')&&Kt.includes('"cad_plan"')?At(Kt)||z("(已生成方案)","(Plan generated)"):Rt});const jt=new Set;Gt=Gt.replace(/```svg\s*([\s\S]*?)```/gi,(Rt,Bt)=>{const Kt=String(Bt||"").trim();if(!Kt)return Rt;const ln=Pe(Kt)||Kt;return jt.has(ln)?"":(jt.add(ln),`\`\`\`svg-${ln}-\`\`\``)});const Et=At(Gt);if(Et)return Et;try{const Rt=JSON.parse(String(Gt||"").trim());if((Rt==null?void 0:Rt.type)==="cad_patch"&&(Rt==null?void 0:Rt.target)==="2d_svg"&&String((Rt==null?void 0:Rt.mode)||"")==="patch"&&Array.isArray(Rt==null?void 0:Rt.edits))return`\`\`\`json-${JSON.stringify(Rt,null,2)}-\`\`\``;if((Rt==null?void 0:Rt.type)==="cad_bom")return ct}catch{}return Gt},F=Ye=>typeof requestAnimationFrame=="function"?requestAnimationFrame(Ye):typeof window<"u"?window.setTimeout(Ye,16):0,De=Ye=>{Ye&&(typeof cancelAnimationFrame=="function"?cancelAnimationFrame(Ye):typeof window<"u"&&window.clearTimeout(Ye))},He=Ye=>{const ct=de(Ye);ee(vt=>{const At=vt[vt.length-1];return(At==null?void 0:At.role)==="assistant"?[...vt.slice(0,-1),{role:"assistant",content:ct}]:[...vt,{role:"assistant",content:ct}]})},b=()=>{let Ye="",ct=null;return{push:vt=>{Ye=vt,ct===null&&(ct=F(()=>{ct=null,He(Ye)}))},flush:()=>{ct!==null&&(De(ct),ct=null),He(Ye)}}};N.useEffect(()=>{typeof window<"u"&&(d==="cad"?wPe(te,J)||console.error("Failed to persist CAD chat history after fallback trimming."):localStorage.setItem(te,JSON.stringify(J))),c==null||c(J)},[J,te,c,d]);const ae=()=>{var Ye;(Ye=be.current)==null||Ye.abort(),be.current=null,oe.current=null,ce(!1),G(""),ge([{type:"text",text:""}]),ne([]),T==null||T(),a==null||a(),j==null||j();try{localStorage.removeItem(te)}catch{}ee([]),Le(!1)},M=async(Ye,ct)=>{const vt=await Promise.resolve(o==null?void 0:o(Ye,ct));if(!vt||typeof vt!="object")return{ok:!0};const At=vt;return typeof At.ok=="boolean"?{ok:At.ok,retry:!!At.retry,error:typeof At.error=="string"?At.error:void 0,svg:typeof At.svg=="string"?At.svg:void 0}:{ok:!0}},k=Ye=>{const ct=String(Ye||"").trim();if(!ct)return"";const vt=ct.match(/```json\s*([\s\S]*?)```/i);return vt!=null&&vt[1]?String(vt[1]).trim():ct},O=Ye=>{const ct=String(Ye||""),vt=/```json\s*([\s\S]*?)```/g;let At;for(;At=vt.exec(ct);){const jt=String(At[1]||"").trim();if(jt)try{const Et=JSON.parse(jt);if((Et==null?void 0:Et.type)==="cad_plan"&&(Et!=null&&Et.plan))return Et}catch{}}const Gt=k(ct);try{const jt=JSON.parse(Gt);if((jt==null?void 0:jt.type)==="cad_plan"&&(jt!=null&&jt.plan))return jt}catch{}return null},H=(Ye,ct)=>{const vt=String(Ye||"").trim();if(!vt)return ct;const At=vt.match(/```[a-zA-Z]*\s*([\s\S]*?)```/),Gt=At!=null&&At[1]?String(At[1]).trim():vt;if(!Gt)return ct;try{const Et=JSON.parse(Gt);if(typeof(Et==null?void 0:Et.prompt)=="string"&&Et.prompt.trim())return Et.prompt.trim()}catch{}return Gt.replace(/\r?\n+/g," ").trim()||ct},Ne=async Ye=>{const ct=String(Ye.planDesign||"").trim();if(!ct)return!1;const vt=[Mc({globalSystemPrompt:Ye.globalSystemPrompt,globalConstraints:Ye.globalConstraints}),P].filter(Boolean).join(`--`),At=gPe({systemContent:vt,planDesign:ct,outputLanguage:W}),Gt=[R==="zh"?"整体方案图":"Overall Scheme",R==="zh"?"重点策略图":"Key Strategy"],jt=[R==="zh"?"室内装修整体分析图板,展示项目目标、空间范围、功能分区、风格方向、用户核心诉求、已知约束与待确认项。采用清晰的模块分区、箭头关系、色块、标签、图标和关键词注释,突出前期方案沟通,不是 CAD 施工图,不包含施工节点与细部做法。":"Interior renovation overall analysis board, showing project goals, spatial scope, functional zoning, style direction, core user needs, known constraints, and pending confirmations. Clear structure with blocks, arrows, color zones, labels, icons, and keyword callouts. Early-stage design communication style, not a CAD drawing, no construction-detail elements.",R==="zh"?"室内装修重点策略图板,展示 3 到 7 个核心策略及其主次关系与执行顺序,包括空间利用、动线优化、收纳、风格统一、采光通透、局部改造优先级与预算控制。使用图标、箭头、关系图与色块表达策略,不是 CAD 图,不包含施工细节。":"Interior renovation key strategy board, showing 3-7 core strategies and their priorities/relations, including space utilization, circulation optimization, storage, style consistency, daylight and openness, local renovation priorities, and budget control. Use icons, arrows, relationship diagrams, and color blocks. Professional communication style, not a CAD drawing, no construction-detail elements."],Et=await Promise.allSettled(At.map(Kt=>ja(Kt.messages,u,{signal:Ye.controller.signal,timeoutMs:12e4}))),Rt=At.map((Kt,ln)=>{const fr=Gt[ln]||(Kt.imageId==="overall_analysis"?"Overall Scheme":"Key Strategy"),yi=jt[ln]||jt[0],bt=Et[ln];return(bt==null?void 0:bt.status)!=="fulfilled"?{title:fr,prompt:yi}:{title:fr,prompt:H(bt.value,yi)}}),Bt=JSON.stringify({type:"cad_analysis_images",prompts:Rt},null,2);return await M(Bt,"cad"),!0},_e=async(Ye,ct)=>{const vt=String(Ye||"").trim();if(!vt)return!1;if(d==="cad"){const Gt=String(ct||"").toLowerCase(),Et=Gt==="svg"||Gt==="xml"||/<svg[\s/>]/i.test(vt)||/"type"\s*:\s*"cad_patch"/i.test(vt);let Rt="";if(vt.startsWith("{"))try{const Kt=JSON.parse(vt);Rt=String((Kt==null?void 0:Kt.type)||"").trim().toLowerCase()}catch{}const Bt=await M(vt,"cad");return Bt.ok?Et&&!Bt.svg?(Ln.error(R==="zh"?"未检测到画布更新,请检查补丁内容是否匹配当前SVG。":"No canvas update detected. Check whether patch matches current SVG."),!1):Bt.svg?(Ln.success(R==="zh"?"已应用到 2D 画布":"Applied to 2D canvas"),!0):Rt==="cad_plan"?(Ln.success(R==="zh"?"已应用方案数据":"Plan applied"),!0):Rt==="cad_bom"?(Ln.success(R==="zh"?"已应用物料清单":"BOM applied"),!0):Rt==="cad_images"?(Ln.success(R==="zh"?"已应用装修图任务":"Render task applied"),!0):Rt==="cad_analysis_images"?(Ln.success(R==="zh"?"已应用分析图任务":"Analysis task applied"),!0):(Ln.error(R==="zh"?"未检测到可应用内容":"No applicable CAD payload detected"),!1):(Ln.error(Bt.error||(R==="zh"?"应用失败":"Apply failed")),!1)}return d==="flow"?!!(await M(vt,"flow")).ok:!!(await M(vt,"ppt")).ok},Pe=Ye=>{const ct=Rt=>String(Rt||"").replace(/</gi,"<").replace(/>/gi,">").replace(/"/gi,'"').replace(/'|'/gi,"'").replace(/&/gi,"&"),vt=String(Ye||"").trim(),At=!/<svg[\s/>]/i.test(vt)&&/<\s*svg[\s\S]*>/i.test(vt)?ct(vt).trim():vt;if(!At)return"";const Gt=At.search(/<svg[\s/>]/i);if(Gt<0)return"";const jt=At.slice(Gt),Et=jt.toLowerCase().lastIndexOf("</svg>");return Et>=0?jt.slice(0,Et+6).trim():jt.trim()},Ze=Ye=>{const ct=String(Ye||""),vt=/```svg\s*([\s\S]*?)```/gi;let At,Gt="";for(;At=vt.exec(ct);){const jt=Pe((At==null?void 0:At[1])||"");jt&&(Gt=jt)}return Gt},ut=Ye=>{const ct=String(Ye||""),vt=/<svg[\s\S]*?<\/svg>/gi;let At,Gt="";for(;At=vt.exec(ct);){const jt=Pe((At==null?void 0:At[0])||"");jt&&(Gt=jt)}return Gt},st=Ye=>{const ct=String(Ye||""),vt=/```json\s*([\s\S]*?)```/g;let At;for(;At=vt.exec(ct);){const jt=String(At[1]||"").trim();if(jt)try{const Et=JSON.parse(jt),Rt=Pe((Et==null?void 0:Et.full)||"");if((Et==null?void 0:Et.type)==="cad_patch"&&(Et==null?void 0:Et.target)==="2d_svg"&&(Et==null?void 0:Et.mode)==="replace"&&Rt)return Rt}catch{}}const Gt=ct.trim();if(Gt.startsWith("{"))try{const jt=JSON.parse(Gt),Et=Pe((jt==null?void 0:jt.full)||"");if((jt==null?void 0:jt.type)==="cad_patch"&&(jt==null?void 0:jt.target)==="2d_svg"&&(jt==null?void 0:jt.mode)==="replace"&&Et)return Et}catch{}return""},Je=Ye=>{const ct=String(Ye||"");if(!ct.trim())return!1;const vt=Bt=>Bt&&typeof Bt=="object"&&String((Bt==null?void 0:Bt.type)||"").trim().toLowerCase()==="cad_patch"&&String((Bt==null?void 0:Bt.target)||"").trim().toLowerCase()==="2d_svg",At=/```json\s*([\s\S]*?)```/g;let Gt;for(;Gt=At.exec(ct);){const Bt=String(Gt[1]||"").trim();if(Bt)try{const Kt=JSON.parse(Bt);if(vt(Kt))return!0}catch{}}const jt=ct.trim();if(jt.startsWith("{"))try{const Bt=JSON.parse(jt);if(vt(Bt))return!0}catch{}const Et=ct.indexOf("{"),Rt=ct.lastIndexOf("}");if(Et>=0&&Rt>Et)try{const Bt=JSON.parse(ct.slice(Et,Rt+1));if(vt(Bt))return!0}catch{}return/"type"\s*:\s*"cad_patch"/i.test(ct)&&/"target"\s*:\s*"2d_svg"/i.test(ct)},pt=async Ye=>{if(!Ye)return{flowPatchFound:!1,flowRetryError:null};const ct=Ye.match(/```python\n([\s\S]*?)\n```/);if(ct&&ct[1]&&d!=="cad"&&await M(ct[1],"cad"),d==="cad"){const Et=Ye.match(/```(javascript|js)\n([\s\S]*?)\n```/);Et&&Et[2]&&await M(Et[2],"cad")}if(d==="cad"){const Et=Je(Ye),Rt=st(Ye)||Ze(Ye)||ut(Ye);!Et&&Rt&&await M(Rt,"cad")}else{const Et=Ze(Ye);Et&&await M(Et,"cad")}let vt=!1,At=null;const Gt=/```json\s*([\s\S]*?)```/g;let jt;for(;jt=Gt.exec(Ye);){const Et=String(jt[1]||"").trim();if(Et){if(d==="ppt"){try{const Rt=JSON.parse(Et);et.current.length>0?(Rt.uploadedImages=et.current,await M(JSON.stringify(Rt),"ppt")):await M(Et,"ppt")}catch{await M(Et,"ppt")}continue}if(d==="flow"){try{const Bt=JSON.parse(Et);(Bt==null?void 0:Bt.type)==="flow_patch"&&(vt=!0)}catch{}const Rt=await M(Et,"flow");!Rt.ok&&Rt.retry&&(At=Rt.error||"Unknown error");continue}await M(Et,d==="cad"?"cad":"ppt")}}if(d==="flow"&&!vt){const Et=Ye.match(/```xml\n([\s\S]*?)\n```/);if(Et&&Et[1]){const Rt=await M(Et[1],"flow");!Rt.ok&&Rt.retry&&(At=Rt.error||"Unknown error")}}return{flowPatchFound:vt,flowRetryError:At}},xt=(Ye,ct)=>{const vt=String(Ye||"").slice(0,600);return R==="en"?[`The previous flow_patch could not be applied to the current diagram. Reason: ${vt}`,"","Please retry and strictly follow:","- Output exactly one ```json``` code block with type=flow_patch",ct?"- This time you MUST use mode=replace and output the full <mxGraphModel>...</mxGraphModel> (do not output patch)":"- If the patch cannot precisely match the Current diagram XML, use mode=replace and output the full <mxGraphModel>...</mxGraphModel>"].join(`-`):[`Previous flow_patch could not be applied to current diagram: ${vt}`,"","Please retry and strictly follow:","- Output exactly one ```json``` code block with type=flow_patch",ct?"- This time you MUST use mode=replace and output the full <mxGraphModel>...</mxGraphModel> (do not output patch)":"- If the patch cannot precisely match the Current diagram XML, use mode=replace and output the full <mxGraphModel>...</mxGraphModel>"].join("\\n")},dt=(Ye,ct)=>{const vt=String(Ye||"").slice(0,600);return R==="en"?[`The previous cad_patch could not be applied to the current 2D SVG. Reason: ${vt}`,"","Please retry and strictly follow:","- Output exactly one ```json``` code block with type=cad_patch and target=2d_svg",ct?"- This time you MUST use mode=replace and output one complete <svg ...>...</svg> in the full field":"- If exact patch matching is unsafe, use mode=replace and output one complete <svg ...>...</svg> in the full field"].join(`-`):[`Previous cad_patch could not be applied to current 2D SVG: ${vt}`,"","Please retry and strictly follow:","- Output exactly one ```json``` code block with type=cad_patch and target=2d_svg",ct?"- This time you MUST use mode=replace and output one complete <svg ...>...</svg> in the full field":"- If exact patch matching is unsafe, use mode=replace and output one complete <svg ...>...</svg> in the full field"].join("\\n")},rn=async()=>{var Tr,ur;const Ye=d==="ppt",ct=Ye?xe.map(wt=>wt.type==="text"?wt.text:wt.tag).join(""):le;if(!ct.trim()&&re.length===0&&t.length===0&&r.length===0||ue)return;Re.current=0,V.current=0;const vt=ct.trim(),At=Ye?new Set(xe.filter(wt=>wt.type==="ppt").map(wt=>wt.slideId)):new Set,Gt=Ye?r.slice(0,12):[],jt=Ye&&At.size>0?Gt.filter(wt=>At.has(wt.slideId)):[],Et=[],Rt=[],Bt=[],Kt=wt=>new Promise((Wt,yt)=>{const Ot=new FileReader;Ot.onload=()=>Wt(Ot.result),Ot.onerror=yt,Ot.readAsDataURL(wt)}),ln=[];for(const wt of re)if(wt.type.startsWith("image/"))try{const Wt=await Kt(wt);Et.push(``),Et.push(`[Image Attachment: ${wt.name}]`),Rt.push(Wt),Bt.push({name:wt.name,url:Wt})}catch(Wt){console.error("Failed to read image",wt.name,Wt),Et.push(`[Image: ${wt.name}] (Failed to read)`)}else{const{extractPdfText:Wt,extractTextFileContent:yt,isPdfFile:Ot}=await Kc(async()=>{const{extractPdfText:Fn,extractTextFileContent:yr,isPdfFile:hr}=await Promise.resolve().then(()=>oy);return{extractPdfText:Fn,extractTextFileContent:yr,isPdfFile:hr}},void 0);try{let Fn="";if(Ot(wt)){try{const{getPdfDocumentFromUrl:hr,renderPdfPageToCanvas:Pn}=await Kc(async()=>{const{getPdfDocumentFromUrl:Ei,renderPdfPageToCanvas:Zt}=await Promise.resolve().then(()=>oy);return{getPdfDocumentFromUrl:Ei,renderPdfPageToCanvas:Zt}},void 0),_i=URL.createObjectURL(wt);try{const Ei=await hr(_i),Zt=document.createElement("canvas");await Pn({pdf:Ei,pageNumber:1,canvas:Zt,targetWidth:520});const jn=Zt.toDataURL("image/png");jn&&jn.startsWith("data:image")&&Bt.push({name:wt.name,url:jn})}finally{URL.revokeObjectURL(_i)}}catch(hr){console.error("Failed to render PDF preview",wt.name,hr)}Fn=await Wt(wt)}else Fn=await yt(wt);const yr=`[${Ot(wt)?"PDF":"File"}: ${wt.name}]-${Fn}`;Et.push(yr),ln.push(yr)}catch(Fn){console.error("Failed to read file",wt.name,Fn);const yr=`[File: ${wt.name}]-(Failed to read content)`;Et.push(yr),ln.push(yr)}}const fr=t.length>0?t.slice(0,12).map((wt,Wt)=>{const yt=`[Context ${Wt+1}: ${wt.name} | ${wt.type}]`,Ot=String(wt.content||"").slice(0,12e3);return`${yt}-\`\`\`${wt.type}-${Ot}-\`\`\``}).join(`--`):"",yi=d==="ppt"&&jt.length>0?jt.map((wt,Wt)=>{const yt=`[Context ${Wt+1}: ${wt.slideId}.json | json]`,Ot=String(wt.json||"").slice(0,12e3);return`${yt}-\`\`\`json-${Ot}-\`\`\``}).join(`--`):"",bt=d==="flow"&&typeof(I==null?void 0:I.xml)=="string"&&I.xml.trim()?`Current diagram XML:--\`\`\`xml-${I.xml}-\`\`\``:"",tn=oe.current??(D==null?void 0:D.plan),cn=d==="cad"?[tn?`Current CAD plan:--\`\`\`json-${JSON.stringify(tn,null,2)}-\`\`\``:"",typeof(D==null?void 0:D.svg2d)=="string"&&D.svg2d.trim()?`Current 2D SVG:--\`\`\`svg-${D.svg2d}-\`\`\``:"",(()=>{const wt=X();return wt.length===0?"":`Current analysis image references:-${wt.map((Wt,yt)=>`${yt+1}. ${Wt.title}`).join(`-`)}`})()].filter(Boolean).join(`--`):"",Yt=d==="cad"?Tj(J):"",On=[ct,Et.length>0?Et.join(`--`):"",yi,fr,bt,cn,Yt].filter(Boolean).join(`--`);et.current=Rt;const _n=wt=>String(wt||"").split("|").join(",").split("]]").join("").replace(/\r?\n/g," "),Cr={role:"user",content:[Bt.map(wt=>`[[IMAGE|${_n(wt.name)}|${wt.url}]]`).join(`-`),ct,ln.length>0?ln.join(`--`):""].filter(Boolean).join(`--`)},Nn=[...J,Cr];if(ee(Nn),Ye?ge([{type:"text",text:""}]):G(""),Ye&&it(wt=>wt+1),ne([]),d==="ppt"&&(a==null||a()),d==="cad"&&h==="text"&&/(cad_ready_for_export|一键\s*(出图|生成)|one[- ]?click)/i.test(vt)){const wt=(D==null?void 0:D.svg2d)||"",Wt=D!=null&&D.plan?JSON.stringify(D.plan):"";let yt=!1;const Ot=St=>{const Ht=St.match(/```json\s*([\s\S]*?)```/),Jt=Ht?Ht[1].trim():St.trim();if(Jt.startsWith("{")){try{const In=JSON.parse(Jt);(In==null?void 0:In.type)==="cad_bom"&&(yt=!0)}catch{}o==null||o(Jt,"cad")}},Fn=Go(),yr=d?`${op}-${d}`:op,hr=typeof window<"u"&&localStorage.getItem(yr)||"",Pn=Fn.systemPrompt||"",_i=[Mc({globalSystemPrompt:Pn,globalConstraints:hr}),P].filter(Boolean).join(`--`),Ei=A0({systemContent:_i,planJson:Wt,svg2d:wt,outputLanguage:W}),Zt=w0({systemContent:_i,planJson:Wt,svg2d:wt,outputLanguage:W});ce(!0),(Tr=be.current)==null||Tr.abort();const jn=new AbortController;be.current=jn,ee(St=>[...St,{role:"assistant",content:""}]);const kn=b();let Un="",Hn="";const Vt=(async()=>{if(await Xi(Ei,St=>{Un=St,kn.push(St)},u,jn.signal),kn.flush(),Un&&(Ot(Un),!yt)){const St=$(Un);St&&(yt=!0,o==null||o(JSON.stringify(St),"cad"))}})(),Qt=(async()=>{const St=pr=>{const _r=String(pr||"").match(/```json\s*([\s\S]*?)```/);return _r?_r[1].trim():String(pr||"").trim()},Ht=pr=>{const _r=St(pr);try{return JSON.parse(_r)}catch{const wn=_r.indexOf("{"),vr=_r.lastIndexOf("}");if(wn>=0&&vr>wn)try{return JSON.parse(_r.slice(wn,vr+1))}catch{}return null}},Jt=Z,In=Q;let pi="";try{const pr=await ja(Zt,u,{signal:jn.signal,timeoutMs:12e4}),_r=Ht(pr);(_r==null?void 0:_r.type)==="renovation_scheme_master"&&(_r!=null&&_r.global_scheme)&&(pi=JSON.stringify(_r,null,2))}catch{}const ca=S0({systemContent:_i,planJson:Wt,svg2d:wt,masterSchemeJson:pi,outputLanguage:W}),Fr=(await Promise.allSettled(ca.map(pr=>ja(pr.messages,u,{signal:jn.signal,timeoutMs:12e4})))).map((pr,_r)=>{const wn=Jt[_r]||Lu(R,_r),Ir=`Generate an orthographic 2D technical construction drawing sheet: ${In[_r]||"Drawing"}. Include border, bottom-right title block, scale/units, legend/symbols, key annotations and dimensions, consistent with the provided plan JSON and 2D SVG. All on-sheet labels/notes/title block text must be in English.`;if(pr.status!=="fulfilled")return{title:wn,prompt:Ir};const mn=String(pr.value||"").trim(),xn=Ht(mn);if((xn==null?void 0:xn.type)==="cad_images_sheet"&&typeof(xn==null?void 0:xn.title)=="string"&&typeof(xn==null?void 0:xn.prompt)=="string"){const ei=xn.prompt.trim();return{title:xn.title,prompt:ei||Ir}}if((xn==null?void 0:xn.type)==="cad_images"&&Array.isArray(xn==null?void 0:xn.prompts)&&xn.prompts.length>0){const ei=xn.prompts[0],yn=typeof(ei==null?void 0:ei.title)=="string"?ei.title:wn,Jn=typeof(ei==null?void 0:ei.prompt)=="string"?ei.prompt.trim():"";return{title:yn,prompt:Jn||Ir}}return{title:wn,prompt:Ir}});Hn=JSON.stringify({type:"cad_images",prompts:Fr},null,2),Ot(Hn)})();try{await Promise.allSettled([Vt,Qt]),jn.signal.aborted&&ee(St=>{const Ht=St[St.length-1];if((Ht==null?void 0:Ht.role)!=="assistant")return St;const Jt=z("(已中止)","(Aborted)"),In=Ht.content?`${Ht.content}--${Jt}`:Jt;return[...St.slice(0,-1),{role:"assistant",content:In}]})}catch{}finally{ce(!1),be.current=null}return}ce(!0),(ur=be.current)==null||ur.abort();const mr=new AbortController;be.current=mr;try{const wt=Go(),Wt=d?`${op}-${d}`:op,yt=typeof window<"u"&&localStorage.getItem(Wt)||"",Ot=wt.systemPrompt||"",yr=[{role:"system",content:[s,Ot,yt,P].filter(Boolean).join(`--`)},...J,{role:"user",content:On}];ee(Zt=>[...Zt,{role:"assistant",content:""}]);let hr="";const Pn=b();await Xi(yr,Zt=>{hr=Zt,Pn.push(Zt)},u,mr.signal),Pn.flush();let _i=null,Ei=null;if(hr&&d==="flow"){const jn=(kn=>{const Un=String(kn||"").trim();if(!Un)return null;let Hn=Un;const Vt=Hn.match(/```[a-zA-Z]*\s*([\s\S]*?)```/);return Vt&&Vt[1]&&(Hn=Vt[1].trim()),Hn=Hn.replace(/\s+/g,""),/^[1-2]$/.test(Hn)?Hn==="1"?"patch":"replace":null})(hr);if(jn){Ei=jn,ee(St=>{const Ht=St[St.length-1];return(Ht==null?void 0:Ht.role)==="assistant"?[...St.slice(0,-1),{role:"assistant",content:""}]:St});const Hn=[{role:"system",content:[Ei==="patch"?yA:Gu,Ot,yt].filter(Boolean).join(`--`)},{role:"user",content:On}];let Vt="";const Qt=b();await Xi(Hn,St=>{Vt=St,Qt.push(St)},u,mr.signal),Qt.flush(),_i=Hn,hr=Vt}}if(hr&&d==="cad"){let Zt=null;const jn=Vt=>{const Qt=String(Vt||"").trim();if(!Qt)return null;let St=Qt;const Ht=St.match(/```[a-zA-Z]*\s*([\s\S]*?)```/);return Ht&&Ht[1]&&(St=Ht[1].trim()),St=St.replace(/\s+/g,""),/^[1-5]$/.test(St)?St==="1"?"cad_plan_agent":St==="2"?"cad_svg_agent":St==="3"?"cad_bom_agent":"cad_images_agent":null},kn=Vt=>{const Qt=String(Vt||"").trim();return Qt?Qt==="cad_svg_generate_agent"||Qt==="cad_svg_patch_agent"?"cad_svg_agent":Qt==="cad_plan_agent"||Qt==="cad_svg_agent"||Qt==="cad_bom_agent"||Qt==="cad_images_agent"?Qt:null:null},Un=/```json\s*([\s\S]*?)```/g;let Hn;for(;Hn=Un.exec(hr);){const Vt=String(Hn[1]||"").trim();if(Vt)try{const Qt=JSON.parse(Vt);if((Qt==null?void 0:Qt.type)==="cad_route"&&typeof(Qt==null?void 0:Qt.agent)=="string"){const St=kn(Qt.agent);St&&(Zt={agent:St});break}}catch{}}if(!(Zt!=null&&Zt.agent)){const Vt=jn(hr),Qt=kn(Vt);Qt&&(Zt={agent:Qt})}if(Zt!=null&&Zt.agent){ee(Rn=>{const Ir=Rn[Rn.length-1];return(Ir==null?void 0:Ir.role)==="assistant"?[...Rn.slice(0,-1),{role:"assistant",content:""}]:Rn});const Vt=Rn=>Rn.producedHasPlan&&!Rn.beforeHasPlan?z("方案已生成。若满意请回复“生成2D平面图”;不满意请直接说明需要修改的点。",'The plan is ready. If it looks good, reply "Generate 2D floorplan". If not, tell me what to change.'):Rn.producedHasSvg2d&&!Rn.beforeHasSvg2d?z("2D 平面图已生成。如需修改请直接说明;满意请回复“生成装修图”。",'The 2D floorplan is generated. Tell me edits if needed; otherwise reply "Generate renders".'):Rn.producedHasImages?z("装修图正在生成或更新。下一步可回复“生成BOM清单”。",'Renders are being generated or updated. Next, reply "Generate BOM".'):Rn.producedHasBom?z("BOM 已生成。你可以继续优化方案、2D或风格,或直接导出文件。","BOM is generated. You can refine the plan, 2D, or style, or export files."):Rn.agent==="cad_svg_agent"&&Rn.producedHasSvg2d?z("2D 已更新。若满意请回复“生成装修图”;否则继续描述要修改的内容。",'2D has been updated. If OK, reply "Generate renders"; otherwise describe more edits.'):"",Qt=async Rn=>{let Ir="";const mn=b();return await Xi(Rn,xn=>{Ir=xn,mn.push(xn)},u,mr.signal),mn.flush(),Ir},St=Rn=>{const Ir=Rn.match(/```json\s*([\s\S]*?)```/),mn=Ir?Ir[1].trim():Rn.trim();mn.startsWith("{")&&(o==null||o(mn,"cad"))},Ht=String(Zt.agent||"").trim(),Jt=!!(D!=null&&D.plan),In=!!(typeof(D==null?void 0:D.svg2d)=="string"&&D.svg2d.trim()),pi=oe.current??(D==null?void 0:D.plan),ca=pi?JSON.stringify(pi):"",Wi=(D==null?void 0:D.svg2d)||"";if(Ht==="cad_bom_agent"){const Rn=[Mc({globalSystemPrompt:Ot,globalConstraints:yt}),P].filter(Boolean).join(`--`),Ir=A0({systemContent:Rn,planJson:ca,svg2d:Wi,outputLanguage:W}),mn=await Qt(Ir);if(mn){St(mn);const xn=$(mn);xn&&(o==null||o(JSON.stringify(xn),"cad"));const ei=/"type"\s*:\s*"cad_plan"/.test(mn),yn=/```svg[\s\S]*?```/.test(mn),Jn=/"type"\s*:\s*"cad_images"/.test(mn),vi=/"type"\s*:\s*"cad_bom"/.test(mn),Zr=Vt({agent:Ht,beforeHasPlan:Jt,beforeHasSvg2d:In,producedHasPlan:ei,producedHasSvg2d:yn,producedHasImages:Jn,producedHasBom:vi});Zr&&He(`${mn}--${Zr}`)}return}if(Ht==="cad_images_agent"){const Rn=[Mc({globalSystemPrompt:Ot,globalConstraints:yt}),P].filter(Boolean).join(`--`),Ir=w0({systemContent:Rn,planJson:ca,svg2d:Wi,outputLanguage:W});He(z("正在生成图纸提示词...","Generating drawing prompts..."));const mn=gi=>{const or=String(gi||"").match(/```json\s*([\s\S]*?)```/);return or?or[1].trim():String(gi||"").trim()},xn=gi=>{const or=mn(gi);try{return JSON.parse(or)}catch{const xr=or.indexOf("{"),sr=or.lastIndexOf("}");if(xr>=0&&sr>xr)try{return JSON.parse(or.slice(xr,sr+1))}catch{}return null}},ei=Z,yn=Q;let Jn="";try{const gi=await ja(Ir,u,{signal:mr.signal,timeoutMs:12e4}),or=xn(gi);(or==null?void 0:or.type)==="renovation_scheme_master"&&(or!=null&&or.global_scheme)&&(Jn=JSON.stringify(or,null,2))}catch{}const vi=S0({systemContent:Rn,planJson:ca,svg2d:Wi,masterSchemeJson:Jn,outputLanguage:W}),Ai=(await Promise.allSettled(vi.map(gi=>ja(gi.messages,u,{signal:mr.signal,timeoutMs:12e4})))).map((gi,or)=>{const xr=ei[or]||Lu(R,or),Wr=`Generate an orthographic 2D technical construction drawing sheet: ${yn[or]||"Drawing"}. Include border, bottom-right title block, scale/units, legend/symbols, key annotations and dimensions, consistent with the provided plan JSON and 2D SVG. All on-sheet labels/notes/title block text must be in English.`;if(gi.status!=="fulfilled")return{title:xr,prompt:Wr};const wi=String(gi.value||"").trim(),En=xn(wi);if((En==null?void 0:En.type)==="cad_images_sheet"&&typeof(En==null?void 0:En.title)=="string"&&typeof(En==null?void 0:En.prompt)=="string"){const Er=En.prompt.trim();return{title:En.title,prompt:Er||Wr}}if((En==null?void 0:En.type)==="cad_images"&&Array.isArray(En==null?void 0:En.prompts)&&En.prompts.length>0){const Er=En.prompts[0],ra=typeof(Er==null?void 0:Er.title)=="string"?Er.title:xr,ua=typeof(Er==null?void 0:Er.prompt)=="string"?Er.prompt.trim():"";return{title:ra,prompt:ua||Wr}}return{title:xr,prompt:Wr}}),Mi=JSON.stringify({type:"cad_images",prompts:Ai},null,2);o==null||o(Mi,"cad");const Ni=Vt({agent:Ht,beforeHasPlan:Jt,beforeHasSvg2d:In,producedHasPlan:!1,producedHasSvg2d:!1,producedHasImages:!0,producedHasBom:!1});He(Ni||z("图纸任务已生成。","Drawing tasks generated."));return}if(Ht==="cad_svg_agent"){!oe.current&&(D!=null&&D.plan)&&(oe.current=D.plan);const Rn=En=>{const Er=String(En||"").trim();if(!Er)return null;let ra=Er;const ua=ra.match(/```[a-zA-Z]*\s*([\s\S]*?)```/);return ua&&ua[1]&&(ra=ua[1].trim()),ra=ra.replace(/\s+/g,""),/^[1-2]$/.test(ra)?ra==="1"?"patch":"replace":null},mn=[{role:"system",content:[Sj,Ot,yt,P].filter(Boolean).join(`--`)},{role:"user",content:On}];let xn="";const ei=b();await Xi(mn,En=>{xn=En,ei.push(En)},u,mr.signal),ei.flush();let yn=Rn(xn);yn||(yn=In?"patch":"replace"),ee(En=>{const Er=En[En.length-1];return(Er==null?void 0:Er.role)==="assistant"?[...En.slice(0,-1),{role:"assistant",content:""}]:En});const Jn=async En=>{let Er="";const ra=b();await Xi(En,xi=>{Er=xi,ra.push(xi)},u,mr.signal),ra.flush();let ua=!1,ks=null,ho=!1,Eo="";const iu=/```json\s*([\s\S]*?)```/g;let Ed;for(;Ed=iu.exec(Er);){const xi=String(Ed[1]||"").trim();if(!xi)continue;let ti=null;try{ti=JSON.parse(xi)}catch{}const eo=(ti==null?void 0:ti.type)==="cad_patch"&&(ti==null?void 0:ti.target)==="2d_svg";eo&&(ua=!0);const da=await M(xi,"cad");if(eo&&da.ok){ho=!0;const Ds=Pe(da.svg||"");Ds&&(Eo=Ds)}eo&&!da.ok&&da.retry&&(ks=da.error||"Unknown error")}if(!ua){const xi=String(Er||"").trim();if(xi.startsWith("{"))try{const ti=JSON.parse(xi);if((ti==null?void 0:ti.type)==="cad_patch"&&(ti==null?void 0:ti.target)==="2d_svg"){ua=!0;const eo=await M(xi,"cad");if(eo.ok){ho=!0;const da=Pe(eo.svg||"");da&&(Eo=da)}!eo.ok&&eo.retry&&(ks=eo.error||"Unknown error")}}catch{}}if(!ua){const xi=Er.indexOf("{"),ti=Er.lastIndexOf("}");if(xi>=0&&ti>xi){const eo=Er.slice(xi,ti+1).trim();try{const da=JSON.parse(eo);if((da==null?void 0:da.type)==="cad_patch"&&(da==null?void 0:da.target)==="2d_svg"){ua=!0;const Ds=await M(eo,"cad");if(Ds.ok){ho=!0;const uh=Pe(Ds.svg||"");uh&&(Eo=uh)}!Ds.ok&&Ds.retry&&(ks=Ds.error||"Unknown error")}}catch{}}}if(!ua){const xi=Ze(Er)||ut(Er);if(xi){const ti=await M(xi,"cad");ti.ok&&(ho=!0,Eo=Pe(ti.svg||"")||xi),!ti.ok&&ti.retry&&(ks=ti.error||"Unknown error")}}if(!ho&&!ua){const xi=st(Er)||Ze(Er)||ut(Er);if(xi){const ti=await M(xi,"cad");ti.ok&&(ho=!0,Eo=Pe(ti.svg||"")||xi),!ti.ok&&ti.retry&&(ks=ti.error||"Unknown error")}}return{toolFull:Er,cadPatchFound:ua,cadPatchRetryError:ks,producedHasSvg2d:ho,appliedSvg:Eo}},vi=En=>En==="patch"?kj:Dj;let Zr=[{role:"system",content:[vi(yn),Ot,yt,P].filter(Boolean).join(`--`)},{role:"user",content:q(On)}],Ai=await Jn(Zr),Mi=Ai.toolFull,Ni=Ai.cadPatchFound,gi=Ai.cadPatchRetryError,or=Ai.producedHasSvg2d,xr=Ai.appliedSvg;for(;yn==="patch"&&Ni&&gi&&!mr.signal.aborted&&V.current<ve;){V.current+=1;const En=V.current>=ve;En&&yn==="patch"&&(yn="replace",Zr=[{role:"system",content:[vi("replace"),Ot,yt,P].filter(Boolean).join(`--`)},{role:"user",content:q(On)}]);const Er=dt(gi,En),ra=[...Zr,{role:"assistant",content:Mi},{role:"user",content:Er}];ee(ua=>[...ua,{role:"assistant",content:""}]),Ai=await Jn(ra),Mi=Ai.toolFull,Ni=Ai.cadPatchFound,gi=Ai.cadPatchRetryError,or=Ai.producedHasSvg2d,xr=Ai.appliedSvg,Zr=ra}const sr=Vt({agent:Ht,beforeHasPlan:Jt,beforeHasSvg2d:In,producedHasPlan:!1,producedHasSvg2d:or,producedHasImages:!1,producedHasBom:!1});let Di=Mi;const Wr=/```svg\s*[\s\S]*?```/i.test(Di),wi=/```json\s*[\s\S]*?"type"\s*:\s*"cad_patch"[\s\S]*?```/i.test(Di);if(or&&!Wr&&!wi){const En=Pe(xr)?Pe(xr):st(Mi)||ut(Mi);En&&(Di=`${Di}--\`\`\`svg-${En}-\`\`\``)}He(sr?`${Di}--${sr}`:Di);return}const Fr=Ht==="cad_plan_agent"?K_:"";if(!Fr){He(z(`未识别的 CAD 子智能体:${Ht}`,`Unrecognized CAD sub-agent: ${Ht}`));return}const _r=[{role:"system",content:[Fr,Ot,yt,P].filter(Boolean).join(`--`)},{role:"user",content:On}];let wn="";const vr=b();if(await Xi(_r,Rn=>{wn=Rn,vr.push(Rn)},u,mr.signal),vr.flush(),wn){const Rn=/```json\s*([\s\S]*?)```/g;let Ir;for(;Ir=Rn.exec(wn);){const gi=String(Ir[1]||"").trim();gi&&await M(gi,"cad")}let mn=!1;const xn=Je(wn),ei=st(wn)||Ze(wn)||ut(wn);!xn&&ei&&(mn=!!(await M(ei,"cad")).ok);const yn=/"type"\s*:\s*"cad_plan"/.test(wn),Jn=/"type"\s*:\s*"cad_images"/.test(wn),vi=/"type"\s*:\s*"cad_bom"/.test(wn);let Zr=!1;if(Ht==="cad_plan_agent"&&yn&&!mr.signal.aborted){oe.current=null;const gi=O(wn),or=gi?JSON.stringify(gi):ca;or&&(He(`${wn}--${z("方案已更新,正在并发生成整体分析图和重点策略图...","Plan updated. Generating overall analysis and key strategy images in parallel...")}`),Zr=await Ne({planDesign:or,globalSystemPrompt:Ot,globalConstraints:yt,controller:mr}))}const Ai=Vt({agent:Ht,beforeHasPlan:Jt,beforeHasSvg2d:In,producedHasPlan:yn,producedHasSvg2d:mn,producedHasImages:Jn,producedHasBom:vi}),Mi=Zr?z("分析图已按最新方案并发更新。若满意请回复“生成2D平面图”;不满意请继续提出修改意见。",'Analysis images are refreshed from the latest plan. If satisfied, reply "Generate 2D floorplan"; otherwise continue refining requirements.'):"",Ni=[Ai,Mi].filter(Boolean).join(`--`);He(Ni?`${wn}--${Ni}`:wn)}return}}if(hr){let{flowPatchFound:Zt,flowRetryError:jn}=await pt(hr),kn=_i?[..._i]:yr,Un=Ei;for(;d==="flow"&&Zt&&jn&&!mr.signal.aborted&&Re.current<We;){Re.current+=1;const Hn=Re.current>=We;Hn&&Un==="patch"&&(Un="replace",kn=[{role:"system",content:[Gu,Ot,yt].filter(Boolean).join(`--`)},{role:"user",content:On}]);const Vt=xt(jn,Hn),Qt=[...kn,{role:"assistant",content:hr},{role:"user",content:Vt}];ee(In=>[...In,{role:"assistant",content:""}]);let St="";const Ht=b();await Xi(Qt,In=>{St=In,Ht.push(In)},u,mr.signal),Ht.flush(),hr=St,kn=Qt;const Jt=await pt(hr);Zt=Jt.flowPatchFound,jn=Jt.flowRetryError}}}catch(wt){if((wt==null?void 0:wt.name)==="AbortError"||(wt==null?void 0:wt.name)==="APIUserAbortError"){ee(Wt=>{const yt=Wt[Wt.length-1];if((yt==null?void 0:yt.role)==="assistant"){const Ot=z("(已中止)","(Aborted)"),Fn=yt.content?`${yt.content}--${Ot}`:Ot;return[...Wt.slice(0,-1),{role:"assistant",content:Fn}]}return[...Wt,{role:"assistant",content:z("(已中止)","(Aborted)")}]});return}ee(Wt=>{const yt=Wt[Wt.length-1],Ot=z("抱歉,发生错误。请检查 API Key 设置。","Sorry, an error occurred. Please check API key settings.");return yt.role==="assistant"&&!yt.content?[...Wt.slice(0,-1),{role:"assistant",content:Ot}]:[...Wt,{role:"assistant",content:Ot}]})}finally{ce(!1),be.current=null}},Yn=()=>{var Ye;ue&&((Ye=be.current)==null||Ye.abort())},Lt=async Ye=>{var Yt,Pr;const ct=Go(),vt=d?`${op}-${d}`:op,At=typeof window<"u"&&localStorage.getItem(vt)||"",Gt=ct.systemPrompt||"",jt=[s,Gt,At,P].filter(Boolean).join(`--`),Et=String(((Yt=Ye[Ye.length-1])==null?void 0:Yt.content)||""),Rt=d==="flow"&&typeof(I==null?void 0:I.xml)=="string"&&I.xml.trim()?`Current diagram XML:--\`\`\`xml-${I.xml}-\`\`\``:"",Bt=oe.current??(D==null?void 0:D.plan),Kt=d==="cad"?[Bt?`Current CAD plan:--\`\`\`json-${JSON.stringify(Bt,null,2)}-\`\`\``:"",typeof(D==null?void 0:D.svg2d)=="string"&&D.svg2d.trim()?`Current 2D SVG:--\`\`\`svg-${D.svg2d}-\`\`\``:"",(()=>{const On=X();return On.length===0?"":`Current analysis image references:-${On.map((_n,ai)=>`${ai+1}. ${_n.title}`).join(`-`)}`})()].filter(Boolean).join(`--`):"",ln=d==="cad"?Tj(Ye.slice(0,-1)):"",fr=[Et,Rt,Kt,ln].filter(Boolean).join(`--`),yi=[{role:"system",content:jt},...Ye.slice(0,-1),{role:"user",content:fr}];ce(!0),(Pr=be.current)==null||Pr.abort();const bt=new AbortController;be.current=bt,ee([...Ye,{role:"assistant",content:""}]);let tn="";const cn=b();try{if(await Xi(yi,On=>{tn=On,cn.push(On)},u,bt.signal),cn.flush(),tn){let On=null,_n=null;if(d==="flow"){const mr=(Tr=>{const ur=String(Tr||"").trim();if(!ur)return null;let wt=ur;const Wt=wt.match(/```[a-zA-Z]*\s*([\s\S]*?)```/);return Wt&&Wt[1]&&(wt=Wt[1].trim()),wt=wt.replace(/\s+/g,""),/^[1-2]$/.test(wt)?wt==="1"?"patch":"replace":null})(tn);if(mr){_n=mr,ee(Ot=>{const Fn=Ot[Ot.length-1];return(Fn==null?void 0:Fn.role)==="assistant"?[...Ot.slice(0,-1),{role:"assistant",content:""}]:Ot});const wt=[{role:"system",content:[_n==="patch"?yA:Gu,Gt,At,P].filter(Boolean).join(`--`)},{role:"user",content:fr}];let Wt="";const yt=b();await Xi(wt,Ot=>{Wt=Ot,yt.push(Ot)},u,bt.signal),yt.flush(),On=wt,tn=Wt}}if(tn&&d==="cad"){let Nn=null;const mr=Wt=>{const yt=String(Wt||"").trim();if(!yt)return null;let Ot=yt;const Fn=Ot.match(/```[a-zA-Z]*\s*([\s\S]*?)```/);return Fn&&Fn[1]&&(Ot=Fn[1].trim()),Ot=Ot.replace(/\s+/g,""),/^[1-5]$/.test(Ot)?Ot==="1"?"cad_plan_agent":Ot==="2"?"cad_svg_agent":Ot==="3"?"cad_bom_agent":"cad_images_agent":null},Tr=Wt=>{const yt=String(Wt||"").trim();return yt?yt==="cad_svg_generate_agent"||yt==="cad_svg_patch_agent"?"cad_svg_agent":yt==="cad_plan_agent"||yt==="cad_svg_agent"||yt==="cad_bom_agent"||yt==="cad_images_agent"?yt:null:null},ur=/```json\s*([\s\S]*?)```/g;let wt;for(;wt=ur.exec(tn);){const Wt=String(wt[1]||"").trim();if(Wt)try{const yt=JSON.parse(Wt);if((yt==null?void 0:yt.type)==="cad_route"&&typeof(yt==null?void 0:yt.agent)=="string"){const Ot=Tr(yt.agent);Ot&&(Nn={agent:Ot});break}}catch{}}if(!(Nn!=null&&Nn.agent)){const Wt=mr(tn),yt=Tr(Wt);yt&&(Nn={agent:yt})}if(Nn!=null&&Nn.agent){ee(Vt=>{const Qt=Vt[Vt.length-1];return(Qt==null?void 0:Qt.role)==="assistant"?[...Vt.slice(0,-1),{role:"assistant",content:""}]:Vt});const Wt=Vt=>Vt.producedHasPlan&&!Vt.beforeHasPlan?z("方案已生成。若满意请回复“生成2D平面图”;不满意请直接说明需要修改的点。",'The plan is ready. If it looks good, reply "Generate 2D floorplan". If not, tell me what to change.'):Vt.producedHasSvg2d&&!Vt.beforeHasSvg2d?z("2D 平面图已生成。如需修改请直接说明;满意请回复“生成装修图”。",'The 2D floorplan is generated. Tell me edits if needed; otherwise reply "Generate renders".'):Vt.producedHasImages?z("装修图正在生成或更新。下一步可回复“生成BOM清单”。",'Renders are being generated or updated. Next, reply "Generate BOM".'):Vt.producedHasBom?z("BOM 已生成。你可以继续优化方案、2D或风格,或直接导出文件。","BOM is generated. You can refine the plan, 2D, or style, or export files."):Vt.agent==="cad_svg_agent"&&Vt.producedHasSvg2d?z("2D 已更新。若满意请回复“生成装修图”;否则继续描述要修改的内容。",'2D has been updated. If OK, reply "Generate renders"; otherwise describe more edits.'):"",yt=async Vt=>{let Qt="";const St=b();return await Xi(Vt,Ht=>{Qt=Ht,St.push(Ht)},u,bt.signal),St.flush(),Qt},Ot=Vt=>{const Qt=Vt.match(/```json\s*([\s\S]*?)```/),St=Qt?Qt[1].trim():Vt.trim();St.startsWith("{")&&(o==null||o(St,"cad"))},Fn=String(Nn.agent||"").trim(),yr=!!(D!=null&&D.plan),hr=!!(typeof(D==null?void 0:D.svg2d)=="string"&&D.svg2d.trim()),Pn=oe.current??(D==null?void 0:D.plan),_i=Pn?JSON.stringify(Pn):"",Ei=(D==null?void 0:D.svg2d)||"";if(Fn==="cad_bom_agent"){const Vt=[Mc({globalSystemPrompt:Gt,globalConstraints:At}),P].filter(Boolean).join(`--`),Qt=A0({systemContent:Vt,planJson:_i,svg2d:Ei,outputLanguage:W}),St=await yt(Qt);if(St){Ot(St);const Ht=$(St);Ht&&(o==null||o(JSON.stringify(Ht),"cad"));const Jt=/"type"\s*:\s*"cad_plan"/.test(St),In=/```svg[\s\S]*?```/.test(St),pi=/"type"\s*:\s*"cad_images"/.test(St),ca=/"type"\s*:\s*"cad_bom"/.test(St),Wi=Wt({agent:Fn,beforeHasPlan:yr,beforeHasSvg2d:hr,producedHasPlan:Jt,producedHasSvg2d:In,producedHasImages:pi,producedHasBom:ca});Wi&&He(`${St}--${Wi}`)}return}if(Fn==="cad_images_agent"){const Vt=[Mc({globalSystemPrompt:Gt,globalConstraints:At}),P].filter(Boolean).join(`--`),Qt=w0({systemContent:Vt,planJson:_i,svg2d:Ei,outputLanguage:W});He(z("正在生成图纸提示词...","Generating drawing prompts..."));const St=wn=>{const vr=String(wn||"").match(/```json\s*([\s\S]*?)```/);return vr?vr[1].trim():String(wn||"").trim()},Ht=wn=>{const vr=St(wn);try{return JSON.parse(vr)}catch{const Rn=vr.indexOf("{"),Ir=vr.lastIndexOf("}");if(Rn>=0&&Ir>Rn)try{return JSON.parse(vr.slice(Rn,Ir+1))}catch{}return null}},Jt=Z,In=Q;let pi="";try{const wn=await ja(Qt,u,{signal:bt.signal,timeoutMs:12e4}),vr=Ht(wn);(vr==null?void 0:vr.type)==="renovation_scheme_master"&&(vr!=null&&vr.global_scheme)&&(pi=JSON.stringify(vr,null,2))}catch{}const ca=S0({systemContent:Vt,planJson:_i,svg2d:Ei,masterSchemeJson:pi,outputLanguage:W}),Fr=(await Promise.allSettled(ca.map(wn=>ja(wn.messages,u,{signal:bt.signal,timeoutMs:12e4})))).map((wn,vr)=>{const Rn=Jt[vr]||Lu(R,vr),xn=`Generate an orthographic 2D technical construction drawing sheet: ${In[vr]||"Drawing"}. Include border, bottom-right title block, scale/units, legend/symbols, key annotations and dimensions, consistent with the provided plan JSON and 2D SVG. All on-sheet labels/notes/title block text must be in English.`;if(wn.status!=="fulfilled")return{title:Rn,prompt:xn};const ei=String(wn.value||"").trim(),yn=Ht(ei);if((yn==null?void 0:yn.type)==="cad_images_sheet"&&typeof(yn==null?void 0:yn.title)=="string"&&typeof(yn==null?void 0:yn.prompt)=="string"){const Jn=yn.prompt.trim();return{title:yn.title,prompt:Jn||xn}}if((yn==null?void 0:yn.type)==="cad_images"&&Array.isArray(yn==null?void 0:yn.prompts)&&yn.prompts.length>0){const Jn=yn.prompts[0],vi=typeof(Jn==null?void 0:Jn.title)=="string"?Jn.title:Rn,Zr=typeof(Jn==null?void 0:Jn.prompt)=="string"?Jn.prompt.trim():"";return{title:vi,prompt:Zr||xn}}return{title:Rn,prompt:xn}}),pr=JSON.stringify({type:"cad_images",prompts:Fr},null,2);o==null||o(pr,"cad");const _r=Wt({agent:Fn,beforeHasPlan:yr,beforeHasSvg2d:hr,producedHasPlan:!1,producedHasSvg2d:!1,producedHasImages:!0,producedHasBom:!1});He(_r||z("图纸任务已生成。","Drawing tasks generated."));return}if(Fn==="cad_svg_agent"){!oe.current&&(D!=null&&D.plan)&&(oe.current=D.plan);const Vt=yn=>{const Jn=String(yn||"").trim();if(!Jn)return null;let vi=Jn;const Zr=vi.match(/```[a-zA-Z]*\s*([\s\S]*?)```/);return Zr&&Zr[1]&&(vi=Zr[1].trim()),vi=vi.replace(/\s+/g,""),/^[1-2]$/.test(vi)?vi==="1"?"patch":"replace":null},St=[{role:"system",content:[Sj,Gt,At,P].filter(Boolean).join(`--`)},{role:"user",content:fr}];let Ht="";const Jt=b();await Xi(St,yn=>{Ht=yn,Jt.push(yn)},u,bt.signal),Jt.flush();let In=Vt(Ht);In||(In=hr?"patch":"replace"),ee(yn=>{const Jn=yn[yn.length-1];return(Jn==null?void 0:Jn.role)==="assistant"?[...yn.slice(0,-1),{role:"assistant",content:""}]:yn});const pi=async yn=>{let Jn="";const vi=b();await Xi(yn,xr=>{Jn=xr,vi.push(xr)},u,bt.signal),vi.flush();let Zr=!1,Ai=null,Mi=!1,Ni="";const gi=/```json\s*([\s\S]*?)```/g;let or;for(;or=gi.exec(Jn);){const xr=String(or[1]||"").trim();if(!xr)continue;let sr=null;try{sr=JSON.parse(xr)}catch{}const Di=(sr==null?void 0:sr.type)==="cad_patch"&&(sr==null?void 0:sr.target)==="2d_svg";Di&&(Zr=!0);const Wr=await M(xr,"cad");if(Di&&Wr.ok){Mi=!0;const wi=Pe(Wr.svg||"");wi&&(Ni=wi)}Di&&!Wr.ok&&Wr.retry&&(Ai=Wr.error||"Unknown error")}if(!Zr){const xr=String(Jn||"").trim();if(xr.startsWith("{"))try{const sr=JSON.parse(xr);if((sr==null?void 0:sr.type)==="cad_patch"&&(sr==null?void 0:sr.target)==="2d_svg"){Zr=!0;const Di=await M(xr,"cad");if(Di.ok){Mi=!0;const Wr=Pe(Di.svg||"");Wr&&(Ni=Wr)}!Di.ok&&Di.retry&&(Ai=Di.error||"Unknown error")}}catch{}}if(!Zr){const xr=Jn.indexOf("{"),sr=Jn.lastIndexOf("}");if(xr>=0&&sr>xr){const Di=Jn.slice(xr,sr+1).trim();try{const Wr=JSON.parse(Di);if((Wr==null?void 0:Wr.type)==="cad_patch"&&(Wr==null?void 0:Wr.target)==="2d_svg"){Zr=!0;const wi=await M(Di,"cad");if(wi.ok){Mi=!0;const En=Pe(wi.svg||"");En&&(Ni=En)}!wi.ok&&wi.retry&&(Ai=wi.error||"Unknown error")}}catch{}}}if(!Zr){const xr=Ze(Jn)||ut(Jn);if(xr){const sr=await M(xr,"cad");sr.ok&&(Mi=!0,Ni=Pe(sr.svg||"")||xr),!sr.ok&&sr.retry&&(Ai=sr.error||"Unknown error")}}if(!Mi&&!Zr){const xr=st(Jn)||Ze(Jn)||ut(Jn);if(xr){const sr=await M(xr,"cad");sr.ok&&(Mi=!0,Ni=Pe(sr.svg||"")||xr),!sr.ok&&sr.retry&&(Ai=sr.error||"Unknown error")}}return{toolFull:Jn,cadPatchFound:Zr,cadPatchRetryError:Ai,producedHasSvg2d:Mi,appliedSvg:Ni}},ca=yn=>yn==="patch"?kj:Dj;let Wi=[{role:"system",content:[ca(In),Gt,At,P].filter(Boolean).join(`--`)},{role:"user",content:q(fr)}],Fr=await pi(Wi),pr=Fr.toolFull,_r=Fr.cadPatchFound,wn=Fr.cadPatchRetryError,vr=Fr.producedHasSvg2d,Rn=Fr.appliedSvg;for(;In==="patch"&&_r&&wn&&!bt.signal.aborted&&V.current<ve;){V.current+=1;const yn=V.current>=ve;yn&&In==="patch"&&(In="replace",Wi=[{role:"system",content:[ca("replace"),Gt,At,P].filter(Boolean).join(`--`)},{role:"user",content:q(fr)}]);const Jn=dt(wn,yn),vi=[...Wi,{role:"assistant",content:pr},{role:"user",content:Jn}];ee(Zr=>[...Zr,{role:"assistant",content:""}]),Fr=await pi(vi),pr=Fr.toolFull,_r=Fr.cadPatchFound,wn=Fr.cadPatchRetryError,vr=Fr.producedHasSvg2d,Rn=Fr.appliedSvg,Wi=vi}const Ir=Wt({agent:Fn,beforeHasPlan:yr,beforeHasSvg2d:hr,producedHasPlan:!1,producedHasSvg2d:vr,producedHasImages:!1,producedHasBom:!1});let mn=pr;const xn=/```svg\s*[\s\S]*?```/i.test(mn),ei=/```json\s*[\s\S]*?"type"\s*:\s*"cad_patch"[\s\S]*?```/i.test(mn);if(vr&&!xn&&!ei){const yn=Pe(Rn)?Pe(Rn):st(pr)||ut(pr);yn&&(mn=`${mn}--\`\`\`svg-${yn}-\`\`\``)}He(Ir?`${mn}--${Ir}`:mn);return}const Zt=Fn==="cad_plan_agent"?K_:"";if(!Zt){He(z(`未识别的 CAD 子智能体:${Fn}`,`Unrecognized CAD sub-agent: ${Fn}`));return}const kn=[{role:"system",content:[Zt,Gt,At,P].filter(Boolean).join(`--`)},{role:"user",content:fr}];let Un="";const Hn=b();if(await Xi(kn,Vt=>{Un=Vt,Hn.push(Vt)},u,bt.signal),Hn.flush(),Un){const Vt=/```json\s*([\s\S]*?)```/g;let Qt;for(;Qt=Vt.exec(Un);){const wn=String(Qt[1]||"").trim();wn&&await M(wn,"cad")}let St=!1;const Ht=Je(Un),Jt=st(Un)||Ze(Un)||ut(Un);!Ht&&Jt&&(St=!!(await M(Jt,"cad")).ok);const In=/"type"\s*:\s*"cad_plan"/.test(Un),pi=/"type"\s*:\s*"cad_images"/.test(Un),ca=/"type"\s*:\s*"cad_bom"/.test(Un);let Wi=!1;if(Fn==="cad_plan_agent"&&In&&!bt.signal.aborted){oe.current=null;const wn=O(Un),vr=wn?JSON.stringify(wn):_i;vr&&(He(`${Un}--${z("方案已更新,正在并发生成整体分析图和重点策略图...","Plan updated. Generating overall analysis and key strategy images in parallel...")}`),Wi=await Ne({planDesign:vr,globalSystemPrompt:Gt,globalConstraints:At,controller:bt}))}const Fr=Wt({agent:Fn,beforeHasPlan:yr,beforeHasSvg2d:hr,producedHasPlan:In,producedHasSvg2d:St,producedHasImages:pi,producedHasBom:ca}),pr=Wi?z("分析图已按最新方案并发更新。若满意请回复“生成2D平面图”;不满意请继续提出修改意见。",'Analysis images are refreshed from the latest plan. If satisfied, reply "Generate 2D floorplan"; otherwise continue refining requirements.'):"",_r=[Fr,pr].filter(Boolean).join(`--`);He(_r?`${Un}--${_r}`:Un)}return}}let{flowPatchFound:ai,flowRetryError:na}=await pt(tn),ma=On?[...On]:yi,Cr=_n;for(;d==="flow"&&ai&&na&&!bt.signal.aborted&&Re.current<We;){Re.current+=1;const Nn=Re.current>=We;Nn&&Cr==="patch"&&(Cr="replace",ma=[{role:"system",content:[Gu,Gt,At].filter(Boolean).join(`--`)},{role:"user",content:fr}]);const mr=xt(na,Nn),Tr=[...ma,{role:"assistant",content:tn},{role:"user",content:mr}];ee(yt=>[...yt,{role:"assistant",content:""}]);let ur="";const wt=b();await Xi(Tr,yt=>{ur=yt,wt.push(yt)},u,bt.signal),wt.flush(),tn=ur,ma=Tr;const Wt=await pt(tn);ai=Wt.flowPatchFound,na=Wt.flowRetryError}}}catch(On){if((On==null?void 0:On.name)==="AbortError"||(On==null?void 0:On.name)==="APIUserAbortError"){ee(_n=>{const ai=_n[_n.length-1];if((ai==null?void 0:ai.role)==="assistant"){const na=ai.content?`${ai.content}--(Aborted)`:"(Aborted)";return[..._n.slice(0,-1),{role:"assistant",content:na}]}return[..._n,{role:"assistant",content:"(Aborted)"}]});return}ee(_n=>{const ai=_n[_n.length-1];return(ai==null?void 0:ai.role)==="assistant"&&!ai.content?[..._n.slice(0,-1),{role:"assistant",content:"Sorry, an error occurred. Please check API key settings."}]:[..._n,{role:"assistant",content:"Sorry, an error occurred. Please check API key settings."}]})}finally{ce(!1),be.current=null}},Xt=async Ye=>{if(Ye<0||Ye>=J.length||J[Ye].role!=="assistant")return;const ct=J.slice(0,Ye);ct.length===0||ct[ct.length-1].role!=="user"||(Re.current=0,V.current=0,oe.current=null,await Lt(ct))},qt=async(Ye,ct)=>{if(Ye<0||Ye>=J.length||J[Ye].role!=="user")return;const At=(J[Ye].content||"").split(/\r?\n/),Gt=[];let jt=0;for(;jt<At.length;jt+=1){const yi=At[jt];if(/^\[\[IMAGE\|([^|]*)\|([\s\S]+)\]\]$/.test(yi)||/^\[\[PPT_SLIDE\|(\d+)\|(.*)\]\]$/.test(yi)){Gt.push(yi);continue}break}const Et=At.slice(jt).join(`-`),Rt=Et.match(/\n\n\[(PDF|File|Context)\b/),Bt=Rt&&typeof Rt.index=="number"?Et.slice(Rt.index):"",ln={role:"user",content:`${Gt.length>0?`${Gt.join(`-`)}--`:""}${ct}${Bt}`},fr=[...J.slice(0,Ye),ln];G(""),ne([]),Re.current=0,V.current=0,oe.current=null,await Lt(fr)},Tn=J.map((Ye,ct)=>({id:`msg-${ct}`,role:Ye.role,content:Ye.content,parts:[{type:"text",text:Ye.content}]}));return g?m.jsx("div",{className:gt("h-full flex flex-col items-center pt-4 bg-card border border-border/30 rounded-xl",e),children:m.jsx(Ru,{tooltipContent:an(R,"chat.expand"),variant:"ghost",size:"icon",onClick:y,className:"hover:bg-accent transition-colors",children:m.jsx(vE,{className:"h-5 w-5 text-muted-foreground"})})}):m.jsxs("div",{className:gt("h-full flex flex-col bg-card shadow-soft animate-slide-in-right rounded-xl border border-border/30 relative",e),children:[m.jsx("div",{className:"px-5 py-4 border-b border-border/50",children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("div",{className:"flex items-center gap-2",children:m.jsx("span",{className:"text-base font-semibold tracking-tight whitespace-nowrap",children:B})}),m.jsx("div",{className:"flex items-center gap-1",children:y&&m.jsx(Ru,{tooltipContent:v?an(R,"chat.collapseLocked"):an(R,"chat.collapse"),variant:"ghost",size:"icon",onClick:y,disabled:v,className:"hover:bg-accent transition-colors rounded-md",children:m.jsx(yE,{className:"w-4 h-4 text-muted-foreground"})})})]})}),m.jsx("div",{className:"flex-1 w-full overflow-hidden",children:m.jsx(ePe,{messages:Tn,setInput:G,status:ue?"streaming":"idle",onDisplayChart:Ye=>o==null?void 0:o(Ye,"flow"),onApplyCode:_e,onRegenerate:Xt,onEditMessage:qt})}),m.jsx("div",{className:"p-4 border-t border-border/50 bg-card/50",children:m.jsx(TFe,{input:le,setInput:G,onSubmit:rn,isLoading:ue,onStop:Yn,onClearChat:()=>Le(!0),onToggleHistory:f?void 0:()=>Fe(!0),historyDisabled:S.length===0,onFilesChange:ne,files:re,uploadMode:d==="ppt"?"imagesOnly":d==="cad"?"filesOnly":"all",placeholder:w,focusKey:d==="ppt"?Ue:void 0,clearKey:d==="ppt"?Xe:void 0,richSegments:d==="ppt"?xe:void 0,onRichSegmentsChange:d==="ppt"?ge:void 0,insertPptToken:d==="ppt"?Ce:null,onInsertPptTokenHandled:d==="ppt"?()=>{Ve.current=!1,pe(null),se()}:void 0,bottomChips:t.length>0?m.jsx("div",{className:"space-y-2",children:t.length>0&&m.jsx("div",{className:"overflow-x-auto",children:m.jsx("div",{className:"flex flex-nowrap items-center gap-2",children:t.map(Ye=>m.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-border bg-muted/40 px-3 py-1 text-xs text-muted-foreground shrink-0",title:Ye.name,children:[m.jsx("span",{className:"max-w-[240px] truncate",children:Ye.name}),n&&m.jsx("button",{type:"button",onClick:()=>n(Ye.id),className:"text-muted-foreground/80 hover:text-foreground transition-colors",title:z("移除附件","Remove attachment"),"aria-label":z("移除附件","Remove attachment"),children:"×"})]},Ye.id))})})}):null})}),!f&&m.jsx(tPe,{showHistory:ye,onToggleHistory:Fe,history:S,onRestore:Ye=>_&&_(Ye),onClear:()=>{E==null||E()}}),m.jsx(nPe,{open:Oe,onOpenChange:Le,onClear:ae})]})}const KC="CanvasAnvil-cad-state-v1",$_="CanvasAnvil-cad-renders-v1",Y_="CanvasAnvil-cad-analysis-images-v1",kPe="chat_history_v2_cad",$C="renders",YC="analysis-images",DPe=e=>{try{return JSON.parse(e)}catch{const t=e.indexOf("{"),n=e.lastIndexOf("}");if(t>=0&&n>t)try{return JSON.parse(e.slice(t,n+1))}catch{}return null}},CPe=e=>String(e||"").replace(/</gi,"<").replace(/>/gi,">").replace(/"/gi,'"').replace(/'|'/gi,"'").replace(/&/gi,"&"),Vs=e=>{let n=String(e||"").trim();if(!/<svg[\s/>]/i.test(n)&&/<\s*svg[\s\S]*>/i.test(n)&&(n=CPe(n).trim()),!n)return"";const r=n.search(/<svg[\s/>]/i);if(r<0)return"";const i=n.slice(r),a=i.toLowerCase().lastIndexOf("</svg>");return a>=0?i.slice(0,a+6).trim():i.trim()},JC=e=>{var n;const t=Vs(e);if(!t)return!1;if(typeof DOMParser>"u")return/^<svg[\s/>]/i.test(t);try{const r=new DOMParser().parseFromString(t,"image/svg+xml");return r.querySelector("parsererror")?!1:String(((n=r.documentElement)==null?void 0:n.nodeName)||"").toLowerCase()==="svg"}catch{return!1}},QC=e=>{const t=Vs(e);if(!t)return!1;if(typeof DOMParser>"u")return!0;try{const n=new DOMParser().parseFromString(t,"image/svg+xml");if(n.querySelector("parsererror"))return!1;const r=n.documentElement;return!r||String(r.nodeName||"").toLowerCase()!=="svg"?!1:!!r.querySelector("path,rect,circle,ellipse,line,polyline,polygon,text,image,use,foreignObject")}catch{return!1}};function TPe(e,t){if(!Array.isArray(t)||t.length===0)throw new Error("Empty patch edits");let n=e;for(const r of t){if(!r||typeof r.search!="string"||typeof r.replace!="string")throw new Error("Invalid patch edit item");if(!r.search)throw new Error("Empty search pattern in patch edit");if(!n.includes(r.search))throw new Error("Search pattern not found in current content");n=n.replace(r.search,r.replace)}return n}const _Pe=e=>{const t=String(e||"");let n="";const r=/```svg\s*([\s\S]*?)```/gi;let i;for(;i=r.exec(t);){const c=Vs(String(i[1]||""));c&&(n=c)}if(n)return n;const a=/<svg[\s\S]*?<\/svg>/gi;let o;for(;o=a.exec(t);){const c=Vs(String(o[0]||""));c&&(n=c)}if(n)return n;const s=/```json\s*([\s\S]*?)```/gi;let l;for(;l=s.exec(t);)try{const c=JSON.parse(String(l[1]||"")),u=Vs(String((c==null?void 0:c.full)||""));(c==null?void 0:c.type)==="cad_patch"&&(c==null?void 0:c.target)==="2d_svg"&&u&&(n=u)}catch{}return n},ec=(e,t)=>{const n=(t==null?void 0:t.allowBlob)===!0,r=typeof(t==null?void 0:t.max)=="number"&&t.max>0?t.max:30;return Array.isArray(e)?e.map(i=>({title:typeof(i==null?void 0:i.title)=="string"?i.title:"",url:typeof(i==null?void 0:i.url)=="string"?i.url:""})).filter(i=>!(!i.url||!n&&i.url.startsWith("blob:"))).slice(0,r):[]},EPe=()=>{if(typeof window>"u")return[];try{const e=localStorage.getItem($_),t=e?JSON.parse(e):[];return ec(t,{allowBlob:!1,max:30})}catch{return[]}},NPe=()=>{if(typeof window>"u")return[];try{const e=localStorage.getItem(Y_),t=e?JSON.parse(e):[];return ec(t,{allowBlob:!1,max:2})}catch{return[]}},FPe=async e=>await new Promise(t=>{const n=new FileReader;n.onerror=()=>t(""),n.onloadend=()=>t(typeof n.result=="string"?n.result:""),n.readAsDataURL(e)}),_j=async e=>{if(typeof window>"u")return"";try{const t=await fetch(e);if(!t.ok)return"";const n=await t.blob();return await FPe(n)}catch{return""}},tb=async e=>{const t=String(e||"").trim();return t?t.startsWith("data:image")?t:t.startsWith("blob:")?await _j(t)||"":(t.startsWith("http://")||t.startsWith("https://"))&&await _j(t)||t:""};function RPe(){const e=pa(),t=(Le,Re)=>e==="zh"?Le:Re,n=(()=>{if(typeof window>"u")return null;try{const Le=localStorage.getItem(KC),Re=Le?JSON.parse(Le):null;return!Re||typeof Re!="object"?null:Re}catch{return null}})(),r=(()=>{const Le=ec(n==null?void 0:n.cadImages,{allowBlob:!1,max:30});return Le.length>0?Le:EPe()})(),i=(()=>{const Le=ec(n==null?void 0:n.cadAnalysisImages,{allowBlob:!1,max:2});return Le.length>0?Le:NPe()})(),[a,o]=N.useState(()=>{const Le=n==null?void 0:n.cad2dSvg;return typeof Le=="string"?Le:void 0}),[s,l]=N.useState(()=>(n==null?void 0:n.cadPlan)??null),[c,u]=N.useState(()=>i),[d,h]=N.useState(!1),[f,g]=N.useState(()=>r),[y,v]=N.useState(!1),[A,w]=N.useState(()=>{const Le=n==null?void 0:n.cadBom;if(!Le||typeof Le!="object")return null;const Re=Array.isArray(Le.columns)?Le.columns.filter(V=>typeof V=="string"):[],We=Array.isArray(Le.rows)?Le.rows:[];return{columns:Re,rows:We}}),[S,_]=N.useState("analysis"),[E,T]=N.useState(!1),[D,I]=N.useState([]),[j,R]=N.useState([]),z=N.useRef([]),B=N.useRef(r),W=N.useRef(i),P=N.useRef(!1),Z=N.useRef(!1),Q=N.useRef(!1),X=N.useRef(!1),q=N.useRef(!1),te=N.useRef(typeof(n==null?void 0:n.cad2dSvg)=="string"?n.cad2dSvg:void 0),[J,ee]=N.useState(!1),[le,G]=N.useState(0),[xe,ge]=N.useState(0),ue=N.useRef(null);N.useEffect(()=>{let Le=!1;return(async()=>{try{const[Re,We]=await Promise.all([A6($C),A6(YC)]);if(Le)return;const V=ec(Re,{allowBlob:!1,max:30});V.length>0&&B.current.length===0&&(B.current=V,g(V));const ve=ec(We,{allowBlob:!1,max:2});ve.length>0&&W.current.length===0&&(W.current=ve,u(ve))}catch(Re){console.error("Failed to load persisted CAD images",Re)}finally{Le||T(!0)}})(),()=>{Le=!0}},[]),N.useEffect(()=>{te.current=a},[a]),N.useEffect(()=>{if(!(typeof window>"u"))try{localStorage.setItem(KC,JSON.stringify({cad2dSvg:typeof a=="string"?a:null,cadPlan:s??null,cadAnalysisImages:[],cadBom:A,cadFocusPanel:S,updatedAt:Date.now()}))}catch{}},[a,s,c,A,S]),N.useEffect(()=>{if(typeof window>"u"||!E)return;const Le=ec(f,{allowBlob:!1,max:30});if(Le.length>0){B.current=Le,w6($C,Le).catch(Re=>{console.error("Failed to persist CAD render images",Re)});try{localStorage.setItem($_,JSON.stringify(Le))}catch(Re){console.error("Failed to persist CAD render images snapshot",Re)}}},[f,E]),N.useEffect(()=>{if(typeof window>"u"||!E)return;const Le=ec(c,{allowBlob:!1,max:2});if(Le.length>0){W.current=Le,w6(YC,Le).catch(Re=>{console.error("Failed to persist CAD analysis images",Re)});try{localStorage.setItem(Y_,JSON.stringify(Le))}catch(Re){console.error("Failed to persist CAD analysis image snapshot",Re)}}},[c,E]),N.useEffect(()=>{if(P.current){Z.current=!0;return}if(!f.some(We=>{const V=String((We==null?void 0:We.url)||"").trim();return V.startsWith("blob:")||V.startsWith("http://")||V.startsWith("https://")}))return;let Re=!1;return P.current=!0,Z.current=!1,(async()=>{try{const We=new Map;let V=!1;const ve=await Promise.all(f.map(async oe=>{const re=String((oe==null?void 0:oe.url)||"").trim();if(!re||!re.startsWith("blob:")&&!re.startsWith("http://")&&!re.startsWith("https://"))return oe;We.has(re)||We.set(re,await tb(re));const ne=We.get(re)||re;return ne&&ne!==re?(V=!0,{...oe,url:ne}):oe}));!Re&&V&&g(ve)}finally{P.current=!1,!Re&&Z.current&&(Z.current=!1,g(We=>[...We]))}})(),()=>{Re=!0}},[f]),N.useEffect(()=>{if(Q.current){X.current=!0;return}if(!c.some(We=>{const V=String((We==null?void 0:We.url)||"").trim();return V.startsWith("blob:")||V.startsWith("http://")||V.startsWith("https://")}))return;let Re=!1;return Q.current=!0,X.current=!1,(async()=>{try{const We=new Map;let V=!1;const ve=await Promise.all(c.map(async oe=>{const re=String((oe==null?void 0:oe.url)||"").trim();if(!re||!re.startsWith("blob:")&&!re.startsWith("http://")&&!re.startsWith("https://"))return oe;We.has(re)||We.set(re,await tb(re));const ne=We.get(re)||re;return ne&&ne!==re?(V=!0,{...oe,url:ne}):oe}));!Re&&V&&u(ve)}finally{Q.current=!1,!Re&&X.current&&(X.current=!1,u(We=>[...We]))}})(),()=>{Re=!0}},[c]),N.useEffect(()=>{const Le=f.map(We=>We==null?void 0:We.url).filter(We=>typeof We=="string"&&We.startsWith("blob:")),Re=z.current;for(const We of Re)if(!Le.includes(We))try{URL.revokeObjectURL(We)}catch{}z.current=Le},[f]),N.useEffect(()=>{if(q.current){(!Array.isArray(j)||j.length===0)&&(q.current=!1);return}if(!(!Array.isArray(j)||j.length===0||Vs(String(te.current||""))))for(let Re=j.length-1;Re>=0;Re-=1){const We=j[Re];if(!We||We.role!=="assistant"||typeof We.content!="string")continue;const V=_Pe(We.content);if(V){te.current=V,o(V),_("2d");return}}},[j]);const ce=()=>{var Re;const Le=ue.current;if(Le)try{(Re=Le.isCollapsed)!=null&&Re.call(Le)||J?(Le.expand(),ee(!1)):(Le.collapse(),ee(!0))}catch{ee(!1)}},ye=Le=>{const Re=String(Le||"").trim();if(Re){if(Re.startsWith("<svg")){I(We=>[...We,{id:Math.random().toString(36).slice(2),type:"xml",content:Le,name:"plan.svg"}]);return}if(Re.startsWith("{")||Re.startsWith("[")){I(We=>[...We,{id:Math.random().toString(36).slice(2),type:"json",content:Le,name:"cad.json"}]);return}I(We=>[...We,{id:Math.random().toString(36).slice(2),type:"python",content:Le,name:"script.py"}])}},Fe=async(Le,Re)=>{if(Re!=="cad")return{ok:!0};const We=String(Le||""),V=We.trim();if(!V)return{ok:!1,retry:!1,error:t("输入为空","Empty input")};const ve=V.startsWith("{")?"":Vs(We);if(ve){if(JC(ve)||Ln.warning(t("SVG 可能包含 XML 问题,仍将尝试加载","SVG may contain XML issues, trying to load anyway")),!QC(ve)){const Me=t("SVG 不包含可绘制内容","SVG has no drawable content");return Ln.error(Me),{ok:!1,retry:!1,error:Me}}const Ue=Vs(String(te.current||""));return ve===Ue?(_("2d"),ge(Me=>Me+1),{ok:!0,svg:Ue||ve}):(te.current=ve,o(ve),_("2d"),ge(Me=>Me+1),{ok:!0,svg:ve})}if(!V.startsWith("{"))return{ok:!1,retry:!1,error:t("输入中未找到 SVG","No SVG found in input")};const oe=DPe(V);if(!oe)return{ok:!1,retry:!1,error:t("JSON 无效","Invalid JSON")};const re=String((oe==null?void 0:oe.type)||"").trim().toLowerCase(),ne=String((oe==null?void 0:oe.target)||"").trim().toLowerCase(),be=String((oe==null?void 0:oe.mode)||"").trim().toLowerCase();if(re==="cad_plan")return l(oe),{ok:!0};if(re==="cad_bom"){const Ue=e==="zh"?["类别","名称","规格","数量","单位","备注"]:["Category","Name","Spec","Qty","Unit","Note"],Me=Array.isArray(oe.columns)&&oe.columns.length>0?oe.columns.map(Se=>String(Se)):Ue,Ee=Array.isArray(oe.rows)?oe.rows:[];return w({columns:Me,rows:Ee}),_("bom"),{ok:!0}}if(re==="cad_analysis_images"){const Ue=Array.isArray(oe.prompts)?oe.prompts:[],Me=[e==="zh"?"整体方案图":"Overall Scheme",e==="zh"?"重点策略图":"Key Strategy"],Ee=ec(c,{allowBlob:!1,max:2}),Se=Ue.map((Ce,pe)=>({title:typeof(Ce==null?void 0:Ce.title)=="string"&&Ce.title.trim()?Ce.title:Me[pe]||(e==="zh"?`分析图${pe+1}`:`Analysis ${pe+1}`),prompt:typeof(Ce==null?void 0:Ce.prompt)=="string"?Ce.prompt:""})).filter(Ce=>Ce.prompt).slice(0,2);_("analysis"),h(!0),u(Me.map((Ce,pe)=>{var ke,Ve;return{title:((ke=Ee[pe])==null?void 0:ke.title)||Ce,url:((Ve=Ee[pe])==null?void 0:Ve.url)||""}}));try{const Ce=et=>new Promise(U=>setTimeout(U,et)),pe=async(et,U,Ae)=>{for(let se=0;se<=U;se+=1){try{const Te=await Bc({prompt:et});if(Te)return Te}catch(Te){se>=U&&console.error("CAD analysis image generation attempt failed",Te)}se<U&&await Ce(Ae*(se+1))}return""},ke=await Promise.allSettled(Se.map(async et=>({title:et.title,url:await pe(et.prompt,2,1200)}))),Ve=Me.map((et,U)=>{var se;const Ae=ke[U];return(Ae==null?void 0:Ae.status)==="fulfilled"&&((se=Ae.value)!=null&&se.url)?{title:Ae.value.title||et,url:Ae.value.url}:{title:et,url:""}}),Xe=await Promise.all(Ve.map(async et=>({title:et.title,url:await tb(et.url)})));u(Me.map((et,U)=>{var Ae,se,Te,$;return{title:((Ae=Xe[U])==null?void 0:Ae.title)||((se=Ee[U])==null?void 0:se.title)||et,url:((Te=Xe[U])==null?void 0:Te.url)||(($=Ee[U])==null?void 0:$.url)||""}}));const it=Ve.filter(et=>!et.url).length;it>0&&Ln.warning(e==="zh"?`有 ${it} 张分析图生成失败,请重试。`:`${it} analysis image(s) failed. Please retry.`)}catch(Ce){console.error("CAD analysis image generation failed",Ce),Ln.error(t("分析图生成失败","Analysis image generation failed")),u(Me.map((pe,ke)=>{var Ve,Xe;return{title:((Ve=Ee[ke])==null?void 0:Ve.title)||pe,url:((Xe=Ee[ke])==null?void 0:Xe.url)||""}}))}finally{h(!1),_("analysis")}return{ok:!0}}if(re==="cad_images"){const Ue=Array.isArray(oe.prompts)?oe.prompts:[],Me=ec(f,{allowBlob:!1,max:30}),Ee=Ue.map(Se=>({title:typeof(Se==null?void 0:Se.title)=="string"?Se.title:t("视图","View"),prompt:typeof(Se==null?void 0:Se.prompt)=="string"?Se.prompt:""})).filter(Se=>Se.prompt).slice(0,7);_("renders"),v(!0),g(Array.from({length:7}).map((Se,Ce)=>{var pe;return{title:Lu(e,Ce),url:((pe=Me[Ce])==null?void 0:pe.url)||""}}));try{const Se=new Array(Ee.length).fill(null),Ce=["orthographic 2D technical construction drawing sheet, CAD-like linework","black and white printing, clean readable annotations, clear dimension text","include drawing border/frame and bottom-right title block","no perspective, no 3D, no photorealism","no watermark, no logo, no decorative typography"].join(", "),pe=s?JSON.stringify(s):"",ke=typeof a=="string"?a:"",Ve=pe.length>6e3?pe.slice(0,6e3):pe,Xe=ke.length>6e3?ke.slice(0,6e3):ke,it=Ee.slice(0,7),et=b=>[Ce,"","Plan:",Ve,"","2D SVG:",Xe,"","Sheet:",b].filter(Boolean).join(`-`),U=b=>new Promise(ae=>setTimeout(ae,b)),Ae=async(b,ae,M)=>{for(let k=0;k<=ae;k+=1){try{const O=await Bc({prompt:b});if(O)return O}catch(O){k>=ae&&console.error("CAD image generation attempt failed",O)}k<ae&&await U(M*(k+1))}return""},se=()=>{g(Array.from({length:7}).map((b,ae)=>{var M,k;return{title:Lu(e,ae),url:((M=Se[ae])==null?void 0:M.url)||((k=Me[ae])==null?void 0:k.url)||""}}))},Te=async(b,ae,M,k)=>{var O,H,Ne;for(let _e=0;_e<b.length;_e+=ae){const Pe=b.slice(_e,_e+ae),Ze=await Promise.allSettled(Pe.map(async ut=>{const st=it[ut];if(!(st!=null&&st.prompt))return null;const Je=await Ae(et(st.prompt),M,k);return Je?{idx:ut,value:{title:st.title,url:Je,prompt:st.prompt}}:null}));for(const ut of Ze)ut.status==="fulfilled"&&((O=ut.value)==null?void 0:O.idx)!==void 0&&((Ne=(H=ut.value)==null?void 0:H.value)!=null&&Ne.url)&&(Se[ut.value.idx]=ut.value.value);se()}},$=it.map((b,ae)=>ae);await Te($,3,1,1200);const de=$.filter(b=>{var ae;return!((ae=Se[b])!=null&&ae.url)});de.length>0&&await Te(de,1,2,1800);const F=Array.from({length:7}).map((b,ae)=>{var M;return{title:Lu(e,ae),url:((M=Se[ae])==null?void 0:M.url)||""}}),De=await Promise.all(F.map(async b=>({title:b.title,url:await tb(b.url)})));g(Array.from({length:7}).map((b,ae)=>{var M,k;return{title:Lu(e,ae),url:((M=De[ae])==null?void 0:M.url)||((k=Me[ae])==null?void 0:k.url)||""}}));const He=it.filter((b,ae)=>{var M;return!((M=Se[ae])!=null&&M.url)}).length;He>0&&Ln.warning(e==="zh"?`有 ${He} 张装修图在重试后仍失败,请重新生成。`:`${He} render image(s) failed after retries. Please run generation again.`)}catch(Se){console.error("CAD image generation failed",Se),Ln.error(t("装修图生成失败","CAD image generation failed")),g(Array.from({length:7}).map((Ce,pe)=>{var ke;return{title:Lu(e,pe),url:((ke=Me[pe])==null?void 0:ke.url)||""}}))}finally{v(!1),_("renders")}return{ok:!0}}if(re==="cad_patch"&&ne==="2d_svg"){if(be==="replace"&&typeof oe.full=="string"){const Ee=Vs(oe.full);if(!Ee){const Ce=t("replace 模式 SVG 无效","Invalid replace svg");return Ln.error(Ce),{ok:!1,retry:!1,error:Ce}}if(JC(Ee)||Ln.warning(t("replace SVG 可能包含 XML 问题,仍将尝试加载","Replace svg may contain XML issues, trying to load anyway")),!QC(Ee)){const Ce=t("replace SVG 不包含可绘制内容","Replace svg has no drawable content");return Ln.error(Ce),{ok:!1,retry:!1,error:Ce}}const Se=Vs(String(te.current||""));return Ee===Se?(_("2d"),ge(Ce=>Ce+1),{ok:!0,svg:Se||Ee}):(te.current=Ee,o(Ee),_("2d"),ge(Ce=>Ce+1),{ok:!0,svg:Ee})}if(be==="patch"&&Array.isArray(oe.edits))try{const Ee=Vs(String(te.current||""));if(!Ee){const pe=t("当前 2D SVG 为空,无法应用补丁","Current 2D SVG is empty, cannot apply patch");return Ln.error(pe),{ok:!1,retry:!0,error:pe}}const Se=TPe(Ee,oe.edits),Ce=Vs(Se);if(!Ce){const pe=t("补丁结果不是有效 SVG","Patch result is not valid svg");return Ln.error(pe),{ok:!1,retry:!0,error:pe}}if(JC(Ce)||Ln.warning(t("补丁结果可能包含 XML 问题,仍将尝试加载","Patch result may contain XML issues, trying to load anyway")),!QC(Ce)){const pe=t("补丁结果不包含可绘制内容","Patch result has no drawable content");return Ln.error(pe),{ok:!1,retry:!0,error:pe}}if(Ce===Ee){const pe=t("补丁未产生可见 SVG 变化","Patch produced no visible SVG change");return Ln.warning(pe),{ok:!1,retry:!0,error:pe}}return te.current=Ce,o(Ce),_("2d"),ge(pe=>pe+1),{ok:!0,svg:Ce}}catch(Ee){const Se=Ee instanceof Error?Ee.message:String(Ee),Ce=e==="zh"?`补丁应用失败:${Se}`:`Patch apply failed: ${Se}`;return Ln.error(Ce),{ok:!1,retry:!0,error:Se}}const Ue=String(be||"")||"unknown",Me=e==="zh"?`不支持的 cad_patch 模式:${Ue}`:`Unsupported cad_patch mode: ${Ue}`;return Ln.error(Me),{ok:!1,retry:!1,error:Me}}return{ok:!0}},Oe=()=>{q.current=!0,te.current=void 0,B.current=[],W.current=[],o(void 0),l(null),u([]),h(!1),g([]),v(!1),w(null),_("analysis"),R([]),I([]);try{localStorage.removeItem(KC)}catch{}try{localStorage.removeItem($_)}catch{}try{localStorage.removeItem(Y_)}catch{}try{localStorage.removeItem(kPe)}catch{}Promise.all([S6($C),S6(YC)]).catch(Le=>{console.error("Failed to clear persisted CAD images",Le)});try{localStorage.removeItem("CanvasAnvil-history-cad-v1")}catch{}G(Le=>Le+1)};return m.jsxs(OCe,{orientation:"horizontal",className:"h-full",style:{height:"100%"},children:[m.jsx(U6,{defaultSize:"68%",minSize:"30%",className:gt("transition-[flex-grow,flex-basis] duration-300 ease-in-out will-change-[flex-grow,flex-basis]"),children:m.jsx("div",{className:"h-full w-full relative bg-muted/20",children:m.jsx(vFe,{svg2d:a,onSvgChange:Le=>{te.current=Le,o(Le)},plan:s,analysisImages:c,analysisImagesLoading:d,images:f,imagesLoading:y,bom:A,focusPanel:S,onAddToChat:ye},`cad-ws-${le}-${xe}`)})}),m.jsxs(m.Fragment,{children:[m.jsx(jCe,{withHandle:!0,className:"bg-border/50 hover:bg-primary/50 transition-colors w-1.5"}),m.jsx(U6,{id:"cad-chat",panelRef:ue,defaultSize:"32%",minSize:"20%",maxSize:"70%",collapsible:!0,collapsedSize:"56px",onResize:Le=>ee(Le.inPixels<=80),className:gt("transition-[flex-grow,flex-basis] duration-300 ease-in-out will-change-[flex-grow,flex-basis]"),children:m.jsx(SPe,{systemPrompt:HCe,initialMessages:j,onMessagesChange:R,attachments:D,workspaceId:"cad",mode:"text",collapsed:J,title:an(e,"workspace.cad.title"),inputPlaceholder:an(e,"workspace.cad.placeholder"),onToggleCollapse:ce,onRemoveAttachment:Le=>I(Re=>Re.filter(We=>We.id!==Le)),onClearAttachments:()=>I([]),onClearWorkspace:Oe,hideHistoryButton:!0,cadContext:{plan:s,svg2d:a,analysisImages:c},onCodeAction:Fe},`cad-chat-${le}`)})]})]})}const PPe=({className:e,...t})=>m.jsx(xF,{className:gt("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),Ej=AF,IPe=({withHandle:e,className:t,...n})=>m.jsx(wF,{className:gt("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...n,children:e&&m.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:m.jsx(hE,{className:"h-2.5 w-2.5"})})}),MPe="CanvasAnvilPptWorkspaceDB",cd="workspace",sR="primary",J$="template-library",UPe=1;function lR(){return typeof indexedDB>"u"?Promise.resolve(null):new Promise((e,t)=>{const n=indexedDB.open(MPe,UPe);n.onupgradeneeded=()=>{const r=n.result;r.objectStoreNames.contains(cd)||r.createObjectStore(cd)},n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error)})}async function Q$(e){const t=await lR();return t?await new Promise((n,r)=>{const i=t.transaction(cd,"readonly"),o=i.objectStore(cd).get(e);o.onsuccess=()=>n(o.result??null),o.onerror=()=>r(o.error),i.oncomplete=()=>t.close(),i.onabort=()=>r(i.error),i.onerror=()=>r(i.error)}):null}async function eY(e,t){const n=await lR();n&&await new Promise((r,i)=>{const a=n.transaction(cd,"readwrite");a.objectStore(cd).put(t,e),a.oncomplete=()=>{n.close(),r()},a.onabort=()=>i(a.error),a.onerror=()=>i(a.error)})}async function LPe(e){const t=await lR();t&&await new Promise((n,r)=>{const i=t.transaction(cd,"readwrite");i.objectStore(cd).delete(e),i.oncomplete=()=>{t.close(),n()},i.onabort=()=>r(i.error),i.onerror=()=>r(i.error)})}async function OPe(){return await Q$(sR)}async function jPe(e){await eY(sR,e)}async function tY(){await LPe(sR)}async function BPe(){return await Q$(J$)}async function zPe(e){await eY(J$,e)}function fs(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})}const tr=914400,jy=12700,Wa=`\r-`,WPe=2147483649,eT=/^[0-9a-fA-F]{6}$/,VPe=1.67,GPe=27,sp={type:"solid",color:"666666",pt:1},nY=[.05,.1,.05,.1],lp={color:"363636",pt:1},Tf={color:"888888",style:"solid",size:1,cap:"flat"},zo="000000",Xs=12,qPe=18,cp="LAYOUT_16x9",J_="DEFAULT",rY="333333",hf={type:"outer",blur:3,offset:23e3/12700,angle:90,color:"000000",opacity:.35,rotateWithShape:!0},ly=[.5,.5,.5,.5],Nj={color:"000000"},HPe={size:8,color:"FFFFFF",opacity:.75},Pc="2094734552",a1="2094734553",Jm="2094734554",Q_="2094734555",iY="2094734556",Im="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),Qm=["C0504D","4F81BD","9BBB59","8064A2","4BACC6","F79646","628FC6","C86360","C0504D","4F81BD","9BBB59","8064A2","4BACC6","F79646","628FC6","C86360"],XPe=["5DA5DA","FAA43A","60BD68","F17CB0","B2912F","B276B2","DECF3F","F15854","A7A7A7","5DA5DA","FAA43A","60BD68","F17CB0","B2912F","B276B2","DECF3F","F15854","A7A7A7"];var Np;(function(e){e.left="left",e.center="center",e.right="right",e.justify="justify"})(Np||(Np={}));var Fp;(function(e){e.b="b",e.ctr="ctr",e.t="t"})(Fp||(Fp={}));const aY="{F7021451-1387-4CA6-816F-3879F97B5CBC}";var eE;(function(e){e.arraybuffer="arraybuffer",e.base64="base64",e.binarystring="binarystring",e.blob="blob",e.nodebuffer="nodebuffer",e.uint8array="uint8array"})(eE||(eE={}));var tE;(function(e){e.area="area",e.bar="bar",e.bar3d="bar3D",e.bubble="bubble",e.bubble3d="bubble3D",e.doughnut="doughnut",e.line="line",e.pie="pie",e.radar="radar",e.scatter="scatter"})(tE||(tE={}));var nE;(function(e){e.accentBorderCallout1="accentBorderCallout1",e.accentBorderCallout2="accentBorderCallout2",e.accentBorderCallout3="accentBorderCallout3",e.accentCallout1="accentCallout1",e.accentCallout2="accentCallout2",e.accentCallout3="accentCallout3",e.actionButtonBackPrevious="actionButtonBackPrevious",e.actionButtonBeginning="actionButtonBeginning",e.actionButtonBlank="actionButtonBlank",e.actionButtonDocument="actionButtonDocument",e.actionButtonEnd="actionButtonEnd",e.actionButtonForwardNext="actionButtonForwardNext",e.actionButtonHelp="actionButtonHelp",e.actionButtonHome="actionButtonHome",e.actionButtonInformation="actionButtonInformation",e.actionButtonMovie="actionButtonMovie",e.actionButtonReturn="actionButtonReturn",e.actionButtonSound="actionButtonSound",e.arc="arc",e.bentArrow="bentArrow",e.bentUpArrow="bentUpArrow",e.bevel="bevel",e.blockArc="blockArc",e.borderCallout1="borderCallout1",e.borderCallout2="borderCallout2",e.borderCallout3="borderCallout3",e.bracePair="bracePair",e.bracketPair="bracketPair",e.callout1="callout1",e.callout2="callout2",e.callout3="callout3",e.can="can",e.chartPlus="chartPlus",e.chartStar="chartStar",e.chartX="chartX",e.chevron="chevron",e.chord="chord",e.circularArrow="circularArrow",e.cloud="cloud",e.cloudCallout="cloudCallout",e.corner="corner",e.cornerTabs="cornerTabs",e.cube="cube",e.curvedDownArrow="curvedDownArrow",e.curvedLeftArrow="curvedLeftArrow",e.curvedRightArrow="curvedRightArrow",e.curvedUpArrow="curvedUpArrow",e.custGeom="custGeom",e.decagon="decagon",e.diagStripe="diagStripe",e.diamond="diamond",e.dodecagon="dodecagon",e.donut="donut",e.doubleWave="doubleWave",e.downArrow="downArrow",e.downArrowCallout="downArrowCallout",e.ellipse="ellipse",e.ellipseRibbon="ellipseRibbon",e.ellipseRibbon2="ellipseRibbon2",e.flowChartAlternateProcess="flowChartAlternateProcess",e.flowChartCollate="flowChartCollate",e.flowChartConnector="flowChartConnector",e.flowChartDecision="flowChartDecision",e.flowChartDelay="flowChartDelay",e.flowChartDisplay="flowChartDisplay",e.flowChartDocument="flowChartDocument",e.flowChartExtract="flowChartExtract",e.flowChartInputOutput="flowChartInputOutput",e.flowChartInternalStorage="flowChartInternalStorage",e.flowChartMagneticDisk="flowChartMagneticDisk",e.flowChartMagneticDrum="flowChartMagneticDrum",e.flowChartMagneticTape="flowChartMagneticTape",e.flowChartManualInput="flowChartManualInput",e.flowChartManualOperation="flowChartManualOperation",e.flowChartMerge="flowChartMerge",e.flowChartMultidocument="flowChartMultidocument",e.flowChartOfflineStorage="flowChartOfflineStorage",e.flowChartOffpageConnector="flowChartOffpageConnector",e.flowChartOnlineStorage="flowChartOnlineStorage",e.flowChartOr="flowChartOr",e.flowChartPredefinedProcess="flowChartPredefinedProcess",e.flowChartPreparation="flowChartPreparation",e.flowChartProcess="flowChartProcess",e.flowChartPunchedCard="flowChartPunchedCard",e.flowChartPunchedTape="flowChartPunchedTape",e.flowChartSort="flowChartSort",e.flowChartSummingJunction="flowChartSummingJunction",e.flowChartTerminator="flowChartTerminator",e.folderCorner="folderCorner",e.frame="frame",e.funnel="funnel",e.gear6="gear6",e.gear9="gear9",e.halfFrame="halfFrame",e.heart="heart",e.heptagon="heptagon",e.hexagon="hexagon",e.homePlate="homePlate",e.horizontalScroll="horizontalScroll",e.irregularSeal1="irregularSeal1",e.irregularSeal2="irregularSeal2",e.leftArrow="leftArrow",e.leftArrowCallout="leftArrowCallout",e.leftBrace="leftBrace",e.leftBracket="leftBracket",e.leftCircularArrow="leftCircularArrow",e.leftRightArrow="leftRightArrow",e.leftRightArrowCallout="leftRightArrowCallout",e.leftRightCircularArrow="leftRightCircularArrow",e.leftRightRibbon="leftRightRibbon",e.leftRightUpArrow="leftRightUpArrow",e.leftUpArrow="leftUpArrow",e.lightningBolt="lightningBolt",e.line="line",e.lineInv="lineInv",e.mathDivide="mathDivide",e.mathEqual="mathEqual",e.mathMinus="mathMinus",e.mathMultiply="mathMultiply",e.mathNotEqual="mathNotEqual",e.mathPlus="mathPlus",e.moon="moon",e.noSmoking="noSmoking",e.nonIsoscelesTrapezoid="nonIsoscelesTrapezoid",e.notchedRightArrow="notchedRightArrow",e.octagon="octagon",e.parallelogram="parallelogram",e.pentagon="pentagon",e.pie="pie",e.pieWedge="pieWedge",e.plaque="plaque",e.plaqueTabs="plaqueTabs",e.plus="plus",e.quadArrow="quadArrow",e.quadArrowCallout="quadArrowCallout",e.rect="rect",e.ribbon="ribbon",e.ribbon2="ribbon2",e.rightArrow="rightArrow",e.rightArrowCallout="rightArrowCallout",e.rightBrace="rightBrace",e.rightBracket="rightBracket",e.round1Rect="round1Rect",e.round2DiagRect="round2DiagRect",e.round2SameRect="round2SameRect",e.roundRect="roundRect",e.rtTriangle="rtTriangle",e.smileyFace="smileyFace",e.snip1Rect="snip1Rect",e.snip2DiagRect="snip2DiagRect",e.snip2SameRect="snip2SameRect",e.snipRoundRect="snipRoundRect",e.squareTabs="squareTabs",e.star10="star10",e.star12="star12",e.star16="star16",e.star24="star24",e.star32="star32",e.star4="star4",e.star5="star5",e.star6="star6",e.star7="star7",e.star8="star8",e.stripedRightArrow="stripedRightArrow",e.sun="sun",e.swooshArrow="swooshArrow",e.teardrop="teardrop",e.trapezoid="trapezoid",e.triangle="triangle",e.upArrow="upArrow",e.upArrowCallout="upArrowCallout",e.upDownArrow="upDownArrow",e.upDownArrowCallout="upDownArrowCallout",e.uturnArrow="uturnArrow",e.verticalScroll="verticalScroll",e.wave="wave",e.wedgeEllipseCallout="wedgeEllipseCallout",e.wedgeRectCallout="wedgeRectCallout",e.wedgeRoundRectCallout="wedgeRoundRectCallout"})(nE||(nE={}));var us;(function(e){e.text1="tx1",e.text2="tx2",e.background1="bg1",e.background2="bg2",e.accent1="accent1",e.accent2="accent2",e.accent3="accent3",e.accent4="accent4",e.accent5="accent5",e.accent6="accent6"})(us||(us={}));var rE;(function(e){e.left="left",e.center="center",e.right="right",e.justify="justify"})(rE||(rE={}));var iE;(function(e){e.top="top",e.middle="middle",e.bottom="bottom"})(iE||(iE={}));var ud;(function(e){e.ACTION_BUTTON_BACK_OR_PREVIOUS="actionButtonBackPrevious",e.ACTION_BUTTON_BEGINNING="actionButtonBeginning",e.ACTION_BUTTON_CUSTOM="actionButtonBlank",e.ACTION_BUTTON_DOCUMENT="actionButtonDocument",e.ACTION_BUTTON_END="actionButtonEnd",e.ACTION_BUTTON_FORWARD_OR_NEXT="actionButtonForwardNext",e.ACTION_BUTTON_HELP="actionButtonHelp",e.ACTION_BUTTON_HOME="actionButtonHome",e.ACTION_BUTTON_INFORMATION="actionButtonInformation",e.ACTION_BUTTON_MOVIE="actionButtonMovie",e.ACTION_BUTTON_RETURN="actionButtonReturn",e.ACTION_BUTTON_SOUND="actionButtonSound",e.ARC="arc",e.BALLOON="wedgeRoundRectCallout",e.BENT_ARROW="bentArrow",e.BENT_UP_ARROW="bentUpArrow",e.BEVEL="bevel",e.BLOCK_ARC="blockArc",e.CAN="can",e.CHART_PLUS="chartPlus",e.CHART_STAR="chartStar",e.CHART_X="chartX",e.CHEVRON="chevron",e.CHORD="chord",e.CIRCULAR_ARROW="circularArrow",e.CLOUD="cloud",e.CLOUD_CALLOUT="cloudCallout",e.CORNER="corner",e.CORNER_TABS="cornerTabs",e.CROSS="plus",e.CUBE="cube",e.CURVED_DOWN_ARROW="curvedDownArrow",e.CURVED_DOWN_RIBBON="ellipseRibbon",e.CURVED_LEFT_ARROW="curvedLeftArrow",e.CURVED_RIGHT_ARROW="curvedRightArrow",e.CURVED_UP_ARROW="curvedUpArrow",e.CURVED_UP_RIBBON="ellipseRibbon2",e.CUSTOM_GEOMETRY="custGeom",e.DECAGON="decagon",e.DIAGONAL_STRIPE="diagStripe",e.DIAMOND="diamond",e.DODECAGON="dodecagon",e.DONUT="donut",e.DOUBLE_BRACE="bracePair",e.DOUBLE_BRACKET="bracketPair",e.DOUBLE_WAVE="doubleWave",e.DOWN_ARROW="downArrow",e.DOWN_ARROW_CALLOUT="downArrowCallout",e.DOWN_RIBBON="ribbon",e.EXPLOSION1="irregularSeal1",e.EXPLOSION2="irregularSeal2",e.FLOWCHART_ALTERNATE_PROCESS="flowChartAlternateProcess",e.FLOWCHART_CARD="flowChartPunchedCard",e.FLOWCHART_COLLATE="flowChartCollate",e.FLOWCHART_CONNECTOR="flowChartConnector",e.FLOWCHART_DATA="flowChartInputOutput",e.FLOWCHART_DECISION="flowChartDecision",e.FLOWCHART_DELAY="flowChartDelay",e.FLOWCHART_DIRECT_ACCESS_STORAGE="flowChartMagneticDrum",e.FLOWCHART_DISPLAY="flowChartDisplay",e.FLOWCHART_DOCUMENT="flowChartDocument",e.FLOWCHART_EXTRACT="flowChartExtract",e.FLOWCHART_INTERNAL_STORAGE="flowChartInternalStorage",e.FLOWCHART_MAGNETIC_DISK="flowChartMagneticDisk",e.FLOWCHART_MANUAL_INPUT="flowChartManualInput",e.FLOWCHART_MANUAL_OPERATION="flowChartManualOperation",e.FLOWCHART_MERGE="flowChartMerge",e.FLOWCHART_MULTIDOCUMENT="flowChartMultidocument",e.FLOWCHART_OFFLINE_STORAGE="flowChartOfflineStorage",e.FLOWCHART_OFFPAGE_CONNECTOR="flowChartOffpageConnector",e.FLOWCHART_OR="flowChartOr",e.FLOWCHART_PREDEFINED_PROCESS="flowChartPredefinedProcess",e.FLOWCHART_PREPARATION="flowChartPreparation",e.FLOWCHART_PROCESS="flowChartProcess",e.FLOWCHART_PUNCHED_TAPE="flowChartPunchedTape",e.FLOWCHART_SEQUENTIAL_ACCESS_STORAGE="flowChartMagneticTape",e.FLOWCHART_SORT="flowChartSort",e.FLOWCHART_STORED_DATA="flowChartOnlineStorage",e.FLOWCHART_SUMMING_JUNCTION="flowChartSummingJunction",e.FLOWCHART_TERMINATOR="flowChartTerminator",e.FOLDED_CORNER="folderCorner",e.FRAME="frame",e.FUNNEL="funnel",e.GEAR_6="gear6",e.GEAR_9="gear9",e.HALF_FRAME="halfFrame",e.HEART="heart",e.HEPTAGON="heptagon",e.HEXAGON="hexagon",e.HORIZONTAL_SCROLL="horizontalScroll",e.ISOSCELES_TRIANGLE="triangle",e.LEFT_ARROW="leftArrow",e.LEFT_ARROW_CALLOUT="leftArrowCallout",e.LEFT_BRACE="leftBrace",e.LEFT_BRACKET="leftBracket",e.LEFT_CIRCULAR_ARROW="leftCircularArrow",e.LEFT_RIGHT_ARROW="leftRightArrow",e.LEFT_RIGHT_ARROW_CALLOUT="leftRightArrowCallout",e.LEFT_RIGHT_CIRCULAR_ARROW="leftRightCircularArrow",e.LEFT_RIGHT_RIBBON="leftRightRibbon",e.LEFT_RIGHT_UP_ARROW="leftRightUpArrow",e.LEFT_UP_ARROW="leftUpArrow",e.LIGHTNING_BOLT="lightningBolt",e.LINE_CALLOUT_1="borderCallout1",e.LINE_CALLOUT_1_ACCENT_BAR="accentCallout1",e.LINE_CALLOUT_1_BORDER_AND_ACCENT_BAR="accentBorderCallout1",e.LINE_CALLOUT_1_NO_BORDER="callout1",e.LINE_CALLOUT_2="borderCallout2",e.LINE_CALLOUT_2_ACCENT_BAR="accentCallout2",e.LINE_CALLOUT_2_BORDER_AND_ACCENT_BAR="accentBorderCallout2",e.LINE_CALLOUT_2_NO_BORDER="callout2",e.LINE_CALLOUT_3="borderCallout3",e.LINE_CALLOUT_3_ACCENT_BAR="accentCallout3",e.LINE_CALLOUT_3_BORDER_AND_ACCENT_BAR="accentBorderCallout3",e.LINE_CALLOUT_3_NO_BORDER="callout3",e.LINE_CALLOUT_4="borderCallout4",e.LINE_CALLOUT_4_ACCENT_BAR="accentCallout3=4",e.LINE_CALLOUT_4_BORDER_AND_ACCENT_BAR="accentBorderCallout4",e.LINE_CALLOUT_4_NO_BORDER="callout4",e.LINE="line",e.LINE_INVERSE="lineInv",e.MATH_DIVIDE="mathDivide",e.MATH_EQUAL="mathEqual",e.MATH_MINUS="mathMinus",e.MATH_MULTIPLY="mathMultiply",e.MATH_NOT_EQUAL="mathNotEqual",e.MATH_PLUS="mathPlus",e.MOON="moon",e.NON_ISOSCELES_TRAPEZOID="nonIsoscelesTrapezoid",e.NOTCHED_RIGHT_ARROW="notchedRightArrow",e.NO_SYMBOL="noSmoking",e.OCTAGON="octagon",e.OVAL="ellipse",e.OVAL_CALLOUT="wedgeEllipseCallout",e.PARALLELOGRAM="parallelogram",e.PENTAGON="homePlate",e.PIE="pie",e.PIE_WEDGE="pieWedge",e.PLAQUE="plaque",e.PLAQUE_TABS="plaqueTabs",e.QUAD_ARROW="quadArrow",e.QUAD_ARROW_CALLOUT="quadArrowCallout",e.RECTANGLE="rect",e.RECTANGULAR_CALLOUT="wedgeRectCallout",e.REGULAR_PENTAGON="pentagon",e.RIGHT_ARROW="rightArrow",e.RIGHT_ARROW_CALLOUT="rightArrowCallout",e.RIGHT_BRACE="rightBrace",e.RIGHT_BRACKET="rightBracket",e.RIGHT_TRIANGLE="rtTriangle",e.ROUNDED_RECTANGLE="roundRect",e.ROUNDED_RECTANGULAR_CALLOUT="wedgeRoundRectCallout",e.ROUND_1_RECTANGLE="round1Rect",e.ROUND_2_DIAG_RECTANGLE="round2DiagRect",e.ROUND_2_SAME_RECTANGLE="round2SameRect",e.SMILEY_FACE="smileyFace",e.SNIP_1_RECTANGLE="snip1Rect",e.SNIP_2_DIAG_RECTANGLE="snip2DiagRect",e.SNIP_2_SAME_RECTANGLE="snip2SameRect",e.SNIP_ROUND_RECTANGLE="snipRoundRect",e.SQUARE_TABS="squareTabs",e.STAR_10_POINT="star10",e.STAR_12_POINT="star12",e.STAR_16_POINT="star16",e.STAR_24_POINT="star24",e.STAR_32_POINT="star32",e.STAR_4_POINT="star4",e.STAR_5_POINT="star5",e.STAR_6_POINT="star6",e.STAR_7_POINT="star7",e.STAR_8_POINT="star8",e.STRIPED_RIGHT_ARROW="stripedRightArrow",e.SUN="sun",e.SWOOSH_ARROW="swooshArrow",e.TEAR="teardrop",e.TRAPEZOID="trapezoid",e.UP_ARROW="upArrow",e.UP_ARROW_CALLOUT="upArrowCallout",e.UP_DOWN_ARROW="upDownArrow",e.UP_DOWN_ARROW_CALLOUT="upDownArrowCallout",e.UP_RIBBON="ribbon2",e.U_TURN_ARROW="uturnArrow",e.VERTICAL_SCROLL="verticalScroll",e.WAVE="wave"})(ud||(ud={}));var Nt;(function(e){e.AREA="area",e.BAR="bar",e.BAR3D="bar3D",e.BUBBLE="bubble",e.BUBBLE3D="bubble3D",e.DOUGHNUT="doughnut",e.LINE="line",e.PIE="pie",e.RADAR="radar",e.SCATTER="scatter"})(Nt||(Nt={}));var xA;(function(e){e.TEXT1="tx1",e.TEXT2="tx2",e.BACKGROUND1="bg1",e.BACKGROUND2="bg2",e.ACCENT1="accent1",e.ACCENT2="accent2",e.ACCENT3="accent3",e.ACCENT4="accent4",e.ACCENT5="accent5",e.ACCENT6="accent6"})(xA||(xA={}));var Pu;(function(e){e.chart="chart",e.image="image",e.line="line",e.rect="rect",e.text="text",e.placeholder="placeholder"})(Pu||(Pu={}));var $n;(function(e){e.chart="chart",e.hyperlink="hyperlink",e.image="image",e.media="media",e.online="online",e.placeholder="placeholder",e.table="table",e.tablecell="tablecell",e.text="text",e.notes="notes"})($n||($n={}));var k0;(function(e){e.title="title",e.body="body",e.image="pic",e.chart="chart",e.table="tbl",e.media="media"})(k0||(k0={}));var Rp;(function(e){e.DEFAULT="•",e.CHECK="✓",e.STAR="★",e.TRIANGLE="▶"})(Rp||(Rp={}));const Pp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAB3CAYAAAD1oOVhAAAGAUlEQVR4Xu2dT0xcRRzHf7tAYSsc0EBSIq2xEg8mtTGebVzEqOVIolz0siRE4gGTStqKwdpWsXoyGhMuyAVJOHBgqyvLNgonDkabeCBYW/8kTUr0wsJC+Wfm0bfuvn37Znbem9mR9303mJnf/Pb7ed95M7PDI5JIJPYJV5EC7e3t1N/fT62trdqViQCIu+bVgpIHEo/Hqbe3V/sdYVKHyWSSZmZm8ilVA0oeyNjYmEnaVC2Xvr6+qg5fAOJAz4DU1dURGzFSqZRVqtMpAFIGyMjICC0vL9PExIRWKADiAYTNshYWFrRCARAOEFZcCKWtrY0GBgaUTYkBRACIE4rKZwqACALR5RQAqQCIDqcASIVAVDsFQCSAqHQKgEgCUeUUAPEBRIVTAMQnEBvK5OQkbW9vk991CoAEAMQJxc86BUACAhKUUwAkQCBBOAVAAgbi1ykAogCIH6cAiCIgsk4BEIVAZJwCIIqBVLqiBxANQFgXS0tLND4+zl08AogmIG5OSSQS1gGKwgtANAIRcQqAaAbCe6YASBWA2E6xDyeyDUl7+AKQMkDYYevm5mZHabA/Li4uUiaTsYLau8QA4gLE/hU7wajyYtv1hReDAiAOxQcHBymbzark4BkbQKom/X8dp9Npmpqasn4BIAYAYSnYp+4BBEAMUcCwNOCQsAKZnp62NtQOw8WmwT09PUo+ijaHsOMx7GppaaH6+nolH0Z10K2tLVpdXbW6UfV3mNqBdHd3U1NTk2rtlMRfW1uj2dlZAFGirkRQAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAGHqrm8caPzQ0WC1logbeiC7X3xJm0PvUmRzh45cuki1588FAmVn9BO6P3yF9utrqGH0MtW82S8UN9RA9v/4k7InjhcJFTs/TLVXLwmJV67S7vD7tHF5pKi46fYdosdOcOOGG8j1OcqefbFEJD9Q3GCwDhqT31HklS4A8VRgfYM2Op6k3bt/BQJl58J7lPvwg5JYNccepaMry0LPqFA7hCm39+NNyp2J0172b19QysGINj5CsRtpij57musOViH0QPJQXn6J9u7dlYJSFkbrMYolrwvDAJAC+WWdEpQz7FTgECeUCpzi6YxvvqXoM6eEhqnCSgDikEzUKUE7Aw7xuHctKB5OYU3dZlNR9syQdAaAcAYTC0pXF+39c09o2Ik+3EqxVKqiB7hbYAxZkk4pbBaEM+AQofv+wTrFwylBOQNABIGwavdfe4O2pg5elO+86l99nY58/VUF0byrYsjiSFluNlXYrOHcBar7+EogUADEQ0YRGHbzoKAASBkg2+9cpM1rV0tK2QOcXW7bLEFAARAXIF4w2DrDWoeUWaf4hQIgDiA8GPZ2iNfi0Q8UACkAIgrDbrJ385eDxaPLLrEsFAB5oG6lMPJQPLZZZKAACBGVhcG2Q+bmuLu2nk55e4jqPv1IeEoceiBeX7s2zCa5MAqdstl91vfXwaEGsv/rb5TtOFk6tWXOuJGh6KmnhO9sayrMninPx103JBtXblHkice58cINZP4Hyr5wpkgkdiChEmc4FWazLzenNKa/p0jncwDiqcD6BuWePk07t1asatZGoYQzSqA4nFJ7soNiP/+EUyfc25GI2GG53dHPrKo1g/1Cw4pIXLrzO+1c+/wg7tBbFDle/EbQcjFCPWQJCau5EoBoFpzXHYDwFNJcDiCaBed1ByA8hTSXA4hmwXndAQhPIc3lAKJZcF53AMJTSHM5gGgWnNcdgPAU0lwOIJoF53UHIDyFNJcfSiCdnZ0Ui8U0SxlMd7lcjubn561gh+Y1scFIU/0o/3sgeLO12E2k7UXKYumgFoAYdg8ACIAYpoBh6cAhAGKYAoalA4cAiGEKGJYOHAIghilgWDpwCIAYpoBh6cAhAGKYAoalA4cAiGEKGJYOHAIghilgWDpwCIAYpoBh6ZQ4JB6PKzviYthnNy4d9h+1M5mMlVckkUjsG5dhiBMCEMPg/wuOfrZZ/RSywQAAAABJRU5ErkJggg==",ZPe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAAAVnCAYAAACzfHDVAAAAYHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjaVcjJDYAwDEXBu6ughBfH+YnLQSwSHVA+Yrkwx7HtPHabHuEWrQ+lBBAZ6TMweBWoCwUH8quZH6VWFXVT696zxp12ARkVFEqn8wB8AAAACXBIWXMAAC4jAAAuIwF4pT92AADZLklEQVR42uzdd5hV9Z0/8M+dmcsUZmDovYOhKCiKYhR7JJuoSTCWGFI0WUxijBoTTXazVlyza4maYm9rTRSJigVsqCDNQhHBAogKCEgRMjMMU+7vj93sL8kqClLmnPt6PY+PeXZM9vP9vO8jZ+Y955xMfJLjorBrRMuSgmiViyjN1Ee2oSCyucbIBAAAAAAAAADbXaYgcoWNUZcrirpMbdRsysa69wbF+rggGrf439vSF7seF12aFUTnxvoosGIAAAAAAACAXacgoqEgF++/VRgr4r5o+Kh/pvD//F8uiII+LaPrum/EXzqui2b1ddHGKgEAAAAAAAB2rVxEQWMmWrQtjHZlA6N2w2tR84//zP8pgHu3ib6NBdG+zdqorK6KVUXZaB85j3sGAAAAAAAAaAoaG6OwIBdtyneP2PBabPzbr/1dAdx3VHRtyESHiIhcYzQrLo7WmVzkcjmPgAYAAAAAAABoSgpy0eIfS+D/LYD7fy3abC6Inn/7X2hsjELlLwAAAAAAAEDT9D8lcM1fHwddFBFxyAVR9M686PVp/gfqayKiJiLqLBMAAAAAAABgh8hGRGlEUekn/6PFEb3ikNgQk6O+KCJi6dzoksv83/cB/1X9xoiaJdmoWxlRV1dk2QAAAAAAAAA7QTZbH9muERX96v7n9t7/q6Exinq3i86LI94pjOOisHUu+uYykfmof7h+Y8Sa6aVRt74gGhs9DRoAAAAAAABgZ2lsLIi69QWxeUUmSjs0/vedwR8hk4uydSfE+wVd6qOyMfMx7/mtj9jwUtbjngEAAAAAAAB2obrqolg7IxtR/9Ffb4wo7P5GtCwobRaVH/c/UvNmNuqqPfIZAAAAAAAAYFerqy6KmjezH/v1ktpoVZBr/PgCeMN7yl8AAAAAAACApmJLHW5jUVQWNDSP+Q3ZeLco4i9/+8X6teHRzwAAAAAAAABNSd3/dLn/oLAoqqIuVhXFxhhSGB/xqGjlLwAAAAAAAECTU1eTjaK/KXSLIv7SWB+bc5ko9YxnAAAAAAAAgATJFv393bz1EeV//c8F1gMAAAAAAACQDgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKREkRUAAACwrUpLSwuGDRvWfMCAAS26du3avKysrLiioqKkZcuWzZs1a1bcvHnz0tLS0rJsNtusuLi4ebNmzUoLCgo+8/eijY2N9Zs3b66pra2tqqur21xTU1NdVVVVs2nTptqNGzdWbdiwoeYvf/nL5hUrVlQtWLBgw6xZs6pqamoaJQYAAEDaKYABAACIiIghQ4aUHnTQQW379u3bql27dq3at2/fpkWLFq2bN29eWVpa2qpZs2bNCwsLm2ez2fLCwsLyoqKi8sLCwtKknK+hoaG6vr6+qqGh4S91dXV/aWhoqNq8eXNVTU3NuqqqqvUbNmxYu2rVqjWrV69e99Zbb6177rnnPpgzZ06NTwYAAABJogAGAADIA8OGDWt+xBFHdBwwYECnLl26dGjdunXHFi1adCgtLe1YUlLSvlmzZq0KCgqK07yDwsLCssLCwrKIaPdp/zuNjY21mzdvXrdp06ZVNTU172/YsGHl2rVr31+2bNnKBQsWrHjyySffnzVrVpVPGAAAAE1Fpuexsd9HfaF+ZcSal0ptCAAAIAE6deqUPf744zvtueeeXbp3796lbdu2XSorKzuXlpZ2KS0t7VBYWFhhSztGQ0PDxpqampU1NTXL169fv+yDDz5Y9s477yybPXv2sj/96U8rVqxYUWdLAAAAbE9t9q6Jog4f/TUFMAAAQEJks9nMt7/97Y4jRozo1bdv397t2rXrXl5e3rWsrKxzcXFx+4gosKUmp7G2tnZVTU3Nso0bNy5btWrV0tdff/2tJ598cvG999672noAAADYFgpgAACAhPne977X6a9Fb/v27Xu1bNmyV1lZWa8kvXOXLauvr9/wl7/8ZdG6desWL1u2bNHChQsX/fGPf1w8derUjbYDAADAliiAAQAAmqhsNps59dRTuxx66KH9+/Tp87n27dv3Ly8v719UVOSRzXlq06ZNKzZu3Pj6+++//8abb775xqOPPvrG3XffvcpmAAAA+CsFMAAAQBNx6qmndvniF784qHfv3v3btWv3uYqKis8VFhaW2wxbUl9fv37Dhg1vfPDBB68vXrz4jccee2z+jTfeuNxmAAAA8pMCGAAAYBc45phjWn/rW9/aq3///kPatGnTv6Kiop9HOLO9NDQ0VG/cuPGtNWvWLFy4cOGcO+6445WHHnporc0AAACknwIYAABgJzjjjDO6f+lLX9qrV69eg1u3bj2orKysR0RkbIadJFddXb103bp18xcvXjz30UcffeXqq69+x1oAAADSRwEMAACwnZWWlhb86le/2u3QQw8d1r17931btmw5qLCwsMxmaEoaGhqqP/zww/nvvPPOzGeeeWbW2LFj36ipqWm0GQAAgGRTAAMAAGwHP/7xj7t+9atf3bdXr15D27Ztu1c2m21jKyRJXV3dmg8++OCVRYsWvfznP/95xh/+8IdltgIAAJA8CmAAAIBtcOKJJ7Y75ZRTDujXr9+w1q1bD81ms61shTSpq6tbt3bt2pfffPPNWbfccsvUe++9d7WtAAAANH0KYAAAgE+hoqKi4IILLhg0YsSI/bp27bpfy5YtB2YymUKbIR/kcrmGDz/8cP6777474/nnn59x4YUXvrZx40aPiwYAAGiCFMAAAAAf4/jjj2/7/e9//8D+/fsf2Lp1630KCgpKbAUiGhsbN61fv37eW2+9NeWGG2545u67715lKwAAAE2DAhgAAOB/ZLPZzAUXXPC5I4888sDu3bsfWFFRsVtEFNgMbFl1dfWSd999d8qsWbNmnnvuuS+vW7euwVYAAAB2DQUwAACQ10pLSwsuvfTSQYcccsjBXbt2HVFWVtbDVmDb1dbWrnr//fdfmDp16uRf/vKXL65evbreVgAAAHYeBTAAAJB3Bg0aVHrBBRd8fs899zywQ4cOBxQVFbWwFdj+Ghsba9euXTtrzpw5T59//vmTX3755WpbAQAA2LEUwAAAQF4YNmxY8/POO+/gIUOGHOZ9vrDz/W0ZfNFFFz07a9asKlsBAADY/hTAAABAarVq1arwyiuv3HfEiBEjO3TocFBhYWGZrcCu19DQUP3+++8/O2XKlIk/+clPZm7cuLHRVgAAALYPBTAAAJAqrVq1Kvztb3+7/3777Xd4x44dRxQWFpbbCjRdDQ0NG99///0pM2bMeOqHP/zhC8pgAACAz0YBDAAApMJZZ53V45vf/OaRvXr1GllaWtrVRiB5ampq3l28ePHEO++8c9LVV1/9jo0AAABsPQUwAACQWMOHDy+/6KKLvjB48OCjW7RoMdBGID0+/PDDV+fNmzfhvPPOe3L69Ol/sREAAIBPRwEMAAAkSqtWrQpvuOGGQ/bbb79/atOmzX6ZTCZrK5BeuVyubs2aNTNmzJjx2JgxYyavW7euwVYAAAA+ngIYAABIhB//+Mddv/e9732lZ8+e/1RcXNzWRiD/1NbWfvD2228/dssttzz029/+9l0bAQAA+L8UwAAAQJNVUVFRcO21137+4IMPPrZ169b7ZTKZAlsBIqJxzZo1M59//vnxp5122hR3BQMAAPx/CmAAAKDJOeWUUzqefvrpx/bu3ftL2Wy2jY0AH6e+vn7j0qVLH/vd7373x+uvv36ZjQAAAPlOAQwAADQJ2Ww2c+uttx5wyCGHnNC6deu9I8LdvsDWaFy7du1L06ZN+/OPfvSjZ1evXl1vJQAAQD5SAAMAALtU//79S6655pp/2nPPPY8tLy/vayPAZ1VTU7NswYIF488999wHp06dutFGAACAfKIABgAAdomf//znPU855ZQTu3btemRhYWGZjQDbW2NjY92KFSuevOWWW+689NJLF9kIAACQDxTAAADATuMxz8Cusn79+rlPP/30f5188slT6+rqcjYCAACklQIYAADY4fr27Vv8hz/84a+Pee5nI8CuUlNT8+68efPu/8EPfvDgwoULN9kIAACQNgpgAABghxkyZEjpNddc89XBgwefWFxc3MFGgKaitrZ21dy5c+/5yU9+8uc5c+bU2AgAAJAWWyqAPYoNAADYJqNHj+4wb968n06ZMuXRYcOGnaH8BZqa4uLi9sOGDTtjypQpj86bN++nJ510UntbAQAA0s4dwAAAwFY599xze33/+9//dufOnY/IZDJZGwGSIpfL1S1fvvzJG2644fbLLrvsbRsBAACSyiOgAQCAz+y8887r+53vfOfbHTt2PDyTyRTaCJBUuVyuYcWKFU/cdNNN//XrX/96sY0AAABJowAGAAC22WWXXTboG9/4xg9at249zDaAtFm7du2su++++9pzzjnnNdsAAACSQgEMAABsNcUvkE8UwQAAQJIogAEAgE9N8Qvks7Vr18665557rvv5z38+3zYAAICmaksFcGHlwOj6UV9orIqoWZG1PQAAyBO/+MUvet9xxx3nHHrooT8pLS3tYiNAPiotLe2y7777HvP973+/X1lZ2ZIpU6assxUAAKCpKetcHwXlH/01BTAAAOS5M844o/u99957zpe//OWflZeX94qIjK0AeS5TXl7e8+CDDx71/e9/v3dEvDVjxowPrQUAAGgqFMAAAMD/ceKJJ7a77777fjJq1Kh/KS8v7xOKX4B/lCkvL+99+OGHj/rWt77VfvXq1Qvnz59fbS0AAMCutqUC2DuAAQAgzwwdOrTs+uuvP6l///4nFRYWltkI20NjY2Ns2rQpqquro6amJurr62PTpk2xefPmqK+vj+rq6qivr4/NmzfHpk2boqGhYZv/fxUWFkZJSUk0a9YsioqKoqysLIqKiqJZs2ZRUlISRUVFUVpa+r9/FRQUCIjtoqGhoeq11167a8yYMffMmTOnxkYAAIBdZUvvAFYAAwBAnujUqVP2nnvuGbXXXnudnM1mK22Ej9PQ0BAbN26MDRs2/J+/Nm7cGBs3boyamprYtGlTbNq0KWpqaqK2trbJnqe4uDhKSkqitLT0f/9eUVERFRUV0aJFi//zV0VFRRQWFvog8LHq6urWvvjii7eceOKJf169enW9jQAAADubAhgAAPLcXXfdddAXv/jF00tLS7vZRn7L5XKxYcOGWLt2baxbty7Wrl37d3+tW7cuNmzYkPd7atGiRbRu3TpatWoVrVu3jjZt2vzvf27dunW0aNHCh4morq5e+sgjj1zzne98Z6ptAAAAO5MCGAAA8tTVV189+MQTTzyzoqJioG3kj8bGxli5cmUsX748Pvjgg1i9evX//n3t2rXR2NhoSZ9RYWFhtGrVKtq1axdt27b937937tw5OnTo4LHTeWbDhg3z77333qvOPPPMebYBAADsDApgAADIM1/72tfaXHrppad27979qIjQRKVUQ0NDrFq1KlasWBHvv//+//595cqVTfqRzGlXXFwcHTp0iI4dO0bnzp2jY8eO0alTp2jXrp1HS6dYLpdrfOeddx76+c9/fv2ECRPW2QgAALAjKYABACBP9OrVq9ldd931jT322OM7hYWFZTaSHh9++GG88847sXTp0njvvfdixYoVsXr16mhoaLCchCgsLIz27dtHp06dolu3btG9e/fo3r27x0mnTENDQ9W8efNu++Y3v/nHJUuWbLYRAABgR1AAAwBAHrjrrrtG/NM//dOZJSUlXWwj2davXx9Lly6Nd955539L3w8//NBiUqqysvJ/y+C//tWqVSuLSbiamppljz322G9Gjx49xTYAAIDtTQEMAAAp9qtf/arPD3/4w5+1atVqL9tIno0bN8aSJUvirbfeikWLFsV7770XmzZtspg8V1JSEl27do0+ffpE3759o3fv3lFeXm4xCbRu3bqXr7322ivGjh27yDYAAIDtRQEMAAApNGjQoNI77rjju7vttttJBQUFWRtJhtWrV8ebb74ZixcvjiVLlsTy5cujsbHRYtiigoKC6Ny5c/Tu3Tt69+4d/fr1i7Zt21pMQjQ2Nta98cYbd33rW9+6ff78+TU2AgAAfFYKYAAASJHS0tKCBx988Jj99tvvn7PZbBsbaboaGhri7bffjrfeeisWLFgQS5YscXcv201FRUX06tUr+vbtG3379o2ePXtGYWGhxTRhdXV1a2bMmHHjV77ylYdqamr85gcAALDNFMAAAJASp59+erdf/vKX51ZWVu5jG03T6tWr47XXXouFCxfGm2++GRs3brQUdooWLVpE3759Y8CAATFw4EB3CDdh69evf/E//uM//vPqq69+xzYAAIBtoQAGAICEGzRoUOm99977w969ex+byWTc4teErF+/PubNmxcLFiyIN954Q+FLk9GiRYvo169fDBgwIPbYY4+orKy0lCYkl8s1LF68eNyJJ554rcdCAwAAW0sBDAAACXbNNdcMOemkk35RVlbWyzZ2vVwuF++++27MnTs3XnvttViyZIl3+NLkFRQURK9evWLQoEExePDg6Natm6U0EdXV1UvuvvvuX//kJz+ZYxsAAMCnpQAGAIAEOuqoo1r99re//VmHDh0Ot41da9OmTTF79uyYO3duLFy4MKqqqiyFRGvevHn0798/Bg8eHHvuuWeUlJRYyi62cuXKp04//fTLJ0yYsM42AACAT6IABgCAhBk3btwRRxxxxFnZbLaNbewaVVVVMXfu3Jg7d27Mnz8/amtrLYVUKi4ujoEDB8bgwYNj8ODBUV5ebim7SF1d3ZqnnnrqqlGjRj1hGwAAwJYogAEAICFOOeWUjhdddNEvW7duvZ9t7HwrV66MWbNmxdy5c+Odd96JXC5nKeSdzp07x9577x3Dhg2LDh06WMgusHbt2hnnnXfepbfccsv7tgEAAHwUBTAAADRxpaWlBU899dQ3Bw8e/L2CggLPYt2JVqxYES+99FK89NJLsXz5cguBv/HXMnjvvfeOTp06WchO1NjYuGnu3Lk3H3744XfV1NR40TgAAPB3FMAAANCEjR49usOll176yzZt2gy3jZ1j/fr18eKLL8bMmTNj6dKlFgKfQs+ePWPfffeNYcOGRYsWLSxkJ1mzZs0L55577q/vvvvuVbYBAAD8lQIYAACaoIqKioKJEyd+c/Dgwd8vKCgotpEda8OGDfHiiy/G9OnTlb7wGfXo0SOGDx8ew4YNi4qKCgvZwdwNDAAA/CMFMAAANDGnnHJKx7Fjx/5rZWXlMNvYcerr6+PVV1+NGTNmxLx586Kurs5SYDvKZrMxZMiQ2HfffWP33XePwsJCS9mB1q5dO+MXv/jFv995550rbQMAAPKbAhgAAJqIbDabeeKJJ47fZ599fuSu3x0jl8vFwoULY/r06TF79uzYtGmTpcBOUFpaGkOGDInhw4fHgAEDLGQHaWhoqJ42bdo1Rx555J9tAwAA8pcCGAAAmoDjjz++7ZVXXvmr1q1be9fvDrBmzZqYNm1azJw5M1audHMc7EodO3aMz3/+87H//vt7X/CO+3fetDPPPPOScePGfWAbAACQfxTAAACwi9100037HXvssf9WXFzc1ja2n1wuF6+99lo8//zzMW/evKivr7cUaEKKiopizz33jBEjRsTnPve5yGQylrId1dbWrvrjH/948Q9+8INZtgEAAPlFAQwAALvIkCFDSu+///5zunTp8k+2sf2sXbs2Jk+eHNOnT48PP/zQQiABKisrY8SIEXHIIYdEeXm5hWxHy5Yte+zrX//6f86ZM6fGNgAAID9sqQAurBwYXT/qC41VETUrsrYHAADb6IILLtjt97///VVt2rQZZhvbx+LFi2P8+PFx9913xxtvvBG1tbWWAgmxadOmeOONN+LZZ5+NtWvXRps2bTweejtp0aJFv5NOOumg0tLSuc8+++xaGwEAgPQr61wfBR/zu7XuAAYAgO0sm81mJk2a9PVhw4b9pKCgwG9VfkZ1dXUxY8aMeOaZZ+K9996zEEiRfv36xSGHHBJDhw6NgoICC/mMGhsbN8+YMeOaL37xi+Pq6upyNgIAAOnlEdAAALCTHH/88W2vuuqqCyorK/exjc9mzZo18dRTT8XUqVNj06ZNFgIpVlFREZ///OfjsMMOi8rKSgv5jNavXz/r9NNPv3DcuHEf2AYAAKSTAhgAAHaC22677fNf+9rXzstms5W2se0WLVoUjz/+eMybNy9yOTewQT4pKiqKIUOGxBFHHBG9e/e2kM+grq5u3QMPPHDRySefPM02AAAgfRTAAACwA1VUVBQ8/fTTpwwcOPCUTCbjGabbIJfLxauvvhpPPvlkLFy40EIgz2UymRgwYEAcccQRMWjQIAvZ9n+3Ns6fP/+Www8//JaNGzc22ggAAKTHlgrgwsqB0fWjvtBYFVGzwuvKAABgS0488cR2EyZMuLx79+5fzmQyGRvZOo2NjTFr1qy49dZb48knn4wPPvC0UuC/rV69OmbMmBFz5syJ0tLS6NSpU/jX7NbJZDKZ9u3bD/3+978/dPny5TNfffXValsBAIB0KOtcHwXlH/O9gDuAAQBg29x66637H3vssRcWFRW1sI2tU1NTE0899VQ8++yzsWHDBgsBPlGLFi3i4IMPjsMPPzxKS/28YmvV19d/OG7cuPNPPvnk6bYBAADJ5xHQAACwHWWz2cyzzz77rSFDhvzAI5+3zqZNm2Ly5Mnx1FNPKX6BbdKiRYs47LDD4pBDDlEEb6VcLtfwyiuvXHfooYfeWVdX5yXrAACQYApgAADYTo455pjW11133cWVlZV728ant2HDhnj88cdjypQpUVtbayHAZ1ZcXBwHHnhgfPGLX4wWLTyIYWusWbNm2re//e3zn3nmGb+JAwAACeUdwAAAsB1cfvnlu1900UW/LS8v72cbn05VVVVMmDAhbrnllnjzzTejoaHBUoDtoqGhIZYsWRLPPfdc1NTURI8ePSKb9XOMT6OsrKzb17/+9SPbtm0774knnlhtIwAAkMDreu8ABgCAz+bhhx/+8qGHHnpOQUFBsW18sk2bNsUzzzwTTzzxRFRVVVkIsMOVl5fHkUceGYccckgUF/tX9afR2Ni46emnn/71Mccc87htAABAsngENAAAbKN27doVTZ48+YxevXodZxufrK6uLp5++umYOHGi4hfYJSoqKuKLX/xiHHzwwe4I/pQWLVr0x4MOOuiadevWeUwDAAAkhEdAAwDANjj22GPbPvzww7/p2LHjobaxZXV1dfHkk0/GddddF3Pnzo26ujpLAXaJzZs3x2uvvRbPPfdcRET06NEjCgsLLWYLWrduvfv3vve9fd9+++1pCxYsqLYRAABo+rb0CGgFMAAAfITLL7989wsuuOB3zZs372UbH6+xsTGmTJkS119/fbzyyiuKX6DJ2Lx5cyxYsCCmT58excXF0a1bt8hkMhbzMUpKSjp8+ctfPrJt27ZzvBcYAACaPu8ABgCArTB+/Pgjv/CFL/xLQUFBiW18vAULFsT48eNj6dKllgE0eT169IivfOUrMWjQIMvYgsbGxpqJEydecuyxxz5pGwAA0HR5BzAAAHwK7dq1K3ruued+1qNHj6/axsdbtGhR3H///bF48WLLABKnV69ecdxxx0WfPn0sYwuWLl3654MOOujy1atX19sGAAA0Pd4BDAAAn2DYsGHNn3766V936tTpC7bx0TZs2BD33Xdf/PGPf4y1a9daCJBI69evj2nTpsW6deuiZ8+eUVLiYQ8fpbKysv+3v/3t/lOmTJmyfPlyz/cHAIAmxjuAAQBgC372s5/1uP76669t0aKF54J+hJqamhg/fnzcfPPN8fbbb0cul7MUINFyuVy888478cwzz0RVVVX07t07slk/A/lHZWVl3U488cTD6+rqZkyfPv1DGwEAgCZ0va4ABgCAj3bFFVfscdZZZ11dXFzcwTb+Xi6XixkzZsR1110XCxYsiMbGRksBUqWxsTGWLFkSM2bMiPLy8ujSpUtkMhmL+RvZbLbFQQcddHibNm1mP/HEE6ttBAAAmoYtFcDeAQwAQN6aNGnSqAMOOODsTCZTaBt/b9GiRXHPPffEu+++axlA3ujWrVucdNJJ0bt3b8v4B7lcrm7y5Mm//vKXv/yIbQAAwK63pXcAK4ABAMg7paWlBTNnzjyzT58+x9vG39uwYUOMGzcuZsyY4VHPQF7KZDKx3377xde//vWoqKiwkH+waNGiP+27775X1dTUeCwEAADsQgpgAAD4H926dctOnjz5V506dRppG/9fLpeLqVOnxp///OfYuHGjhQB5r6KiIkaNGhX777+/x0L/g+XLlz9+6KGHXvLuu+/W2QYAAOwaWyqAvQMYAIC8MXz48PInnnjiynbt2o2wjf/vnXfeiWuvvTaee+652Lx5s4UARMTmzZtjzpw58dprr0XPnj2jRYsWlvI/Kioq+n7rW98aMnXq1Ofee+89f3AAAMAusKV3ACuAAQDIC9/+9rc73n777X9o0aLFANv4b1VVVXHXXXfFvffeG+vXr7cQgI+wbt26eP7552P9+vWx2267RVFRkaVERElJSefjjjvuoA8++GDKK6+88hcbAQCAnUsBDABAXjv//PP7XXzxxX8oKSnpbBv/bfr06XHttdfGokWLLAPgU3jnnXdi2rRp0bp16+jc2R8nERHZbLbyC1/4whElJSUvTp48eY2NAADAzqMABgAgb/3ud7/b60c/+tFVRUVFrWwjYs2aNXHzzTfHpEmTora21kIAtkJtbW289NJL8c4770Tfvn2jtLQ073dSWFhYNnz48C/26dNn4UMPPbTMpwQAAHYOBTAAAHnp1ltv3f+b3/zmfxYWFjbP913kcrl4/vnn4/rrr4/ly5f7cAB8BitXroxp06ZFRUVFdOvWLTKZTF7vo6CgIDto0KBDBw0atOiBBx54xycEAAB2vC0VwJmex8Z+H/WF+pURa17ym6wAACTTww8//KXDDjvsXzKZTN6/rPGDDz6I22+/Pd544w0fDIDtbMCAAfGtb30r2rRpk/e7yOVyjVOmTPn1yJEjH/LJAACAHavN3jVR1OGjv6YABgAgdV555ZXTPve5z30r3/fQ0NAQjz32WDz++ONRV1fngwGwg2Sz2Tj66KPjC1/4QhQUFOT9Pl5//fU79tprr9/7ZAAAwI6jAAYAIC9ks9nMyy+/fFafPn2Oz/ddvPvuu3HbbbfFe++954MBsJN069YtvvOd70S3bt3yfhdLliy5f5999rmypqam0ScDAAC2PwUwAACpV1paWjBr1qyzevfufVw+7yGXy8WTTz4ZDz74oLt+AXaBbDYbxxxzTBxxxBF5fzfw0qVLHxg6dOjlSmAAANj+FMAAAKRar169mk2ePHlsu3btDsrnPaxcuTJuueWWePvtt30oAHaxnj17ximnnBIdOnTI6z2sXr16yiGHHPIvS5Ys2exTAQAA28+WCuDCyoHR9aO+0FgVUbMia3sAADRpQ4cOLXvqqacub9Omzf75uoNcLhfPPPNMXH/99bF27VofCoAmYP369TFlypQoKSmJnj17RiaTycs9NG/evPtJJ500ZPLkyc+sWLHCoykAAGA7KetcHwXlH/01BTAAAIk1ZMiQ0kceeeSKVq1a7Z2vO6iuro7bb789nnjiiWhs9IRNgKaksbEx5s+fH++//34MGDAgstn8/DlLaWlpp6997WuDn3rqqadXrlxZ75MBAACfnQIYAIDUOfTQQ1s8+OCDv2/ZsuUe+bqDOXPmxNVXX+2RzwBN3PLly+OFF16Ijh075u0joUtLSzudcMIJ+7/00ktPv/3227U+FQAA8NkogAEASJVhw4Y1v++++37TsmXLQfl4/vr6+hg/fnz88Y9/jNpaP0MHSILNmzfHiy++GJs3b47ddtstCgoK8m4HxcXFbY866qg9n3vuuaeXL1/ucdAAAPAZKIABAEiNI488snLcuHG/b9GixcB8PP97770XV111VcyZM8eHASCBFi1aFC+//HL069cvWrRokXfnLykp6XDcccftP2fOnGcWLVq0yScCAAC2jQIYAIBUOPLIIyvvvPPO35aXl++Wj+d/+umn48Ybb4wPP/zQhwEgwf7yl7/ECy+8ECUlJdGrV6+8O3+zZs3aHHXUUfspgQEAYNspgAEASLxjjz227W233faH5s2b98m3s1dVVcXNN98cTz31VDQ2NvowAKRAY2NjzJ8/P5YtWxYDBgyIZs2a5dX5mzVr1uaYY4458M0333xm4cKFNT4RAACwdRTAAAAk2qGHHtritttuuzofy9+33347rrnmmli8eLEPAkAKvf/++/HKK69Enz59orKyMq/Ons1mK4888sh9Zs6c+dTSpUs3+zQAAMCnpwAGACCxjjjiiJb33nvvteXl5f3y6dy5XC4mTZoUN998c1RVVfkgAKRYVVVVTJ06NbLZbPTp0ycymUzenL24uLjtV7/61c+/8sorTy1evLjWpwEAAD4dBTAAAIl06KGHtrj33nt/l2/lb3V1ddx0000xefLkyOVyPggAeSCXy8WCBQvi3Xffjd133z2y2fz5mUyzZs1aH3300fvNmDHjSXcCAwDAp6MABgAgcYYOHVo2fvz4qysqKgbk07mXLVsWV111lUc+A+SplStXxiuvvBKf+9znoqKiIm/O3axZszZHH3300GeeeebJFStW1PkkAADAlimAAQBIlCFDhpQ++uij17Rs2XL3fDr31KlT49prr42NGzf6EADksaqqqpg+fXq0bds2unTpkjfnLikpaT9q1KihTz755JMrV66s90kAAICPt6UCuMB6AABoSjp16pSdMGHCv1dWVu6RL2dubGyMcePGxR133BF1dW56AiCitrY2br755hg/fnw0NjbmzbkrKyv3mDBhwr9369bNXQkAALCNFMAAADQZrVq1Kpw+ffolbdq02T9fzlxdXR2/+93vYtKkSd73C8DfyeVy8fjjj8fvf//7qK6uzptzt2nTZv8pU6Zc0qpVq0KfAgAA2HoKYAAAmoSKioqC2bNnX9KuXbuD8uXMS5cujYsuuijmz5/vAwDAx3r11VfjoosuiqVLl+bNmdu1a3fQ7Nmz/72iosLPrgAAYCu5iAYAoEmYOXPmz9q1a3dIvpz35ZdfjiuuuCLWrVsnfAA+0bp16+KKK66Il19+OW/O3K5du4Nnzpz5M+kDAMDWUQADALDLvfjii2N69OgxKh/Omsvl4oEHHogbbrghamtrhQ/Ap1ZbWxs33HBDPPDAA3nz2oAePXqMevHFF8dIHwAAPj0FMAAAu9SkSZO+NnDgwFPy4ax1dXVx8803x8SJE73vF4BtksvlYuLEiXHLLbdEXV1dXpx54MCBJ0+aNOlr0gcAgE9HAQwAwC7z6KOPHnXggQeekw9nXbduXfz617+OWbNmCR6Az2zmzJnx61//Ol9eJZA58MADz3n00UePkjwAAHyywsqB0fWjvtBYFVGzImtDAADsEDfeeOO+Rx999EWZTKYw7Wddvnx5XHXVVbFy5UrBA7DdbNiwIWbPnh0DBw6MioqKtB8307179/179uz56sMPP7xc+gAA5LuyzvVRUP7RX1MAAwCw011xxRV7fPe7372qoKCgWdrPOmfOnPjtb38bGzduFDwA2111dXVMmzYtOnfuHB07dkz1WTOZTOHuu+9+eJs2bV6aNGnSKukDAJDPFMAAADQZZ5xxRvef/exnvy0sLCxP+1knTJgQd999d9TX1wsegB2moaEhXnrppchms9G3b99UnzWTyRTttddeB/3lL395dubMmRukDwBAvlIAAwDQJBx00EEVf/jDH64pLi7ulOZz5nK5eOCBB+Kxxx4TOgA77c+eBQsWRF1dXfTv3z8ymUxqz1pQUFBywAEHDJs+ffqkpUuXbpY+AAD5aEsFcIH1AACwMwwaNKj0vvvuu7qsrKxXms9ZV1cX1113XUyaNEnoAOx0EydOjOuvvz7q6upSfc6ysrJef/rTn67u379/idQBAODvKYABANjhKioqCh577LGLKyoqBqb5nNXV1XHNNdfE7NmzhQ7ALvPKK6/ElVdeGVVVVak+Z4sWLQZOnDhxbEVFhZ9vAQDA33CBDADADjdz5syftW3b9sA0n3HdunVx2WWXxRtvvCFwAHa5xYsXx2WXXRZr165N9TnbtWt34MyZM38mcQAA+P8UwAAA7FBPPvnkqB49eoxK8xlXrVoVV1xxRSxfvlzgADQZK1asiCuuuCJWrlyZ6nP26NFj1KRJk0ZJHAAA/lth5cDo+lFfaKyKqFmRtSEAALbZjTfeuO+XvvSlCzOZTGp/8fDdd9+NK6+8MtatWydwAJqc6urqmDVrVvTv3z8qKytTe85u3boN79mz57yHH37Yb2MBAJAXyjrXR0H5R39NAQwAwA5x3nnn9T311FOvLigoKE7rGV977bW45pprorq6WuAANFmbN2+OGTNmRI8ePaJ9+/apPGMmkykYNGjQIYWFhVOee+45v5UFAEDqKYABANipjjrqqFb/8R//8YdmzZq1SusZX3755bj++uujrq5O4AA0eQ0NDfHSSy9Fp06dolOnTqk8Y0FBQXbYsGGfnz9//qQ33nhjk9QBAEizLRXA3gEMAMB21a1bt+wNN9zwnyUlJR3TesYpU6bEjTfeGPX19QIHIDHq6+vjxhtvjKlTp6b2jCUlJZ1uuOGG/+jWrZu7GgAAyFsKYAAAtqunn376XyorK/dI6/kmTZoUd955ZzQ2NgobgMRpbGyMO+64I5588snUnrGysnLw008//UtpAwCQrxTAAABsN88///w3unTp8k9pPd/EiRNj3LhxkcvlhA1AYuVyubj//vtTXQJ36dLlS88+++yJ0gYAIB95BzAAANvFTTfdNPzII488L5PJZNJ4vsceeyzGjx8vaABS47XXXotmzZpF3759U3m+zp0779urV695Dz/88DJpAwCQNlt6B7ACGACAz+wXv/hF7x/+8IdXFxQUNEvj+R544IF45JFHBA1A6ixYsCDq6upiwIABqTtbJpPJDBo06ODGxsbnpk6dul7aAACkiQIYAIAd5oADDqj43e9+99tmzZq1TeP5xo0bF5MmTRI0AKm1aNGi2Lx5cwwcODB1ZysoKMjut99+w5577rnH33vvvc3SBgAgLbZUAHsHMAAA2yybzWbuvPPOfyktLe2exvNNmDBB+QtAXpg0aVI89NBDqTxbaWlpj3vuuedfstlsRtIAAOQDBTAAANvs+eef/06HDh0OTePZHn744Xj44YeFDEDeeOSRR+LPf/5zKs/WoUOHw5599tlvSxkAgHygAAYAYJvcd999hw8ePPjUNJ7t/vvvjwkTJggZgLzz2GOPxX333ZfKs+25554/+NOf/nSYlAEASDvvAAYAYKudccYZ3ceMGXN5QUFBcdrONnHixHjkkUeEDEDeWrx4cWSz2ejbt2/ajpbp06fPvn/5y18mz5w5c4OkAQBIsi29A1gBDADAVhk2bFjzG2+88Q/NmjVrl7azPfroo6l99CUAbI2FCxdGUVFR9OvXL1XnKigoKD7wwAP3e/LJJx9dsWJFnaQBAEiqLRXAHgENAMBWuffee39ZWlraPW3nevzxx+PBBx8UMAD8jz//+c8xceLE1J2rtLS0x3333fdLCQMAkFYKYAAAPrVJkyaN6tSp0xEpPFeMHz9ewADwD8aPHx+TJ09O3bk6der0hUmTJn1VwgAApJFHQAMA8Kmcd955fU888cR/z2QyRWk618yZM+Puu+8WMAB8jNdeey06duwYnTt3TtW5unbtuk9BQcHzzz333DopAwCQNN4BDADAZ3LEEUe0vOKKK67NZrOVaTrXyy+/HDfffHPkcjkhA8DHyOVyMXv27OjSpUt06tQpNefKZDJF++yzz/CpU6c+9u67726WNAAASeIdwAAAbLNsNpu55ZZb/q2kpKRjms61YMGCuPnmm6OxsVHIAPAJGhsb4+abb44333wzVecqLS3tcvfdd5+fzWYzUgYAIC0UwAAAbNGkSZO+3rZt2wPTdKZly5bFDTfcEPX19QIGgE+prq4urr322li+fHmqztWuXbsDH3/88VESBgAgLTwCGgCAj3XZZZcN+upXvzo2k8mk5hcH33///bjyyiujqqpKwACwlerq6uLll1+OIUOGRHl5eWrO1aVLl31LS0unPvPMM2ukDABAEngENAAAW61///4lJ5988q8ymUxRWs60YcOG+P3vfx8bN24UMABso40bN8bvfve7VP15WlBQkP3hD394ft++fYslDABA4q9vrQAAgI/y4IMPnl1WVtYrLeeprq6O3/zmN7Fq1SrhAsBntGrVqrjyyiujuro6NWcqKyvr8/DDD58lXQAAkk4BDADA/zF+/Pgju3XrdnRazlNfX5/KdxYCwK60fPnyuO6666K+vj41Z+rRo8dXx40bd4R0AQBIMgUwAAB/53vf+16nI4444py0nCeXy8Vtt90Wb7zxhnABYDt7/fXX47bbbotcLpeaMx155JHnfvvb3+4oXQAAkkoBDADA/6qoqCi4+OKLLywsLCxPy5nGjx8fs2bNEi4A7CCzZs2Khx56KDXnKSwsrPj1r399QUVFhZ+bAQCQSC5kAQD4XxMnThxdWVk5OC3nef7552PixImCBYAd7LHHHosXXnghNeeprKzc89FHHz1RsgAAJFFh5cDo+lFfaKyKqFmRtSEAgDxxwQUX7DZq1KgLM5lMYRrO8+qrr8Ytt9ySqkdSAkBT/7O3d+/e0a5du1Scp2PHjkNzudxzU6ZMWSddAACamrLO9VHwMc/wcwcwAADRt2/f4h//+McXZzKZVPwG4HvvvRc33HBDNDY2ChcAdpKGhoa47rrrYtmyZak4T0FBQfbss88e27dv32LpAgCQqGtZKwAAYPz48T8qKyvrkYazbNiwIX7/+99HbW2tYAFgJ9u0aVP8/ve/j40bN6biPGVlZb3GjRs3RrIAACSJAhgAIM/ddNNNw/v06XN8Gs5SX18f1157baxdu1awALCLrFmzJq699tqor69PxXn69ev3jd///vdDJQsAQFIogAEA8thBBx1Uceyxx/5rRGTScJ477rgjFi9eLFgA2MUWLVoUd955Z1qOU/CNb3zj34YNG9ZcsgAAJOIC1goAAPLXzTfffFZxcXG7NJxl4sSJMX36dKECQBMxbdq0mDRpUirOUlJS0unOO+88Q6oAACSBAhgAIE/913/914FdunT5UhrO8tprr8Wf//xnoQJAEzN+/PhYsGBBKs7SrVu3o2+66abhUgUAoKlTAAMA5KEvfelLlV/5yld+lYazrFixIq6//vpobGwULAA0MY2NjXHdddfFihUr0nCczHHHHfergw46qEKyAAA0ZQpgAIA8dPXVV5+ezWYrk36OmpqauPbaa2PTpk1CBYAmatOmTXHttddGTU1N4s+SzWbb3njjjT+RKgAATZkCGAAgz9x6663Du3Tp8uWknyOXy8Utt9wSK1euFCoANHErV66MW2+9NXK5XOLP4lHQAAA0dQpgAIA8MnTo0LKvfvWrv0jDWSZMmBBz584VKgAkxJw5c+Kxxx5LxVlGjRr1i6FDh5ZJFQCApkgBDACQR+64444fFRcXd0z6OV5++eV45JFHBAoACfPQQw+l4he4SkpKOt5xxx0/lCgAAE2RAhgAIE9cfvnlu/fs2XNU0s/xwQcfxB133JGKR0gCQL7J5XJx2223xZo1axJ/lp49ex57+eWX7y5VAACaGgUwAEAe6NatW/a73/3uv2YymURf/9XX18cNN9wQ1dXVQgWAhKqqqoobb7wx6uvrE32OTCZT8N3vfvdX3bp1y0oVAICmRAEMAJAHxo8ff0pZWVmvpJ/jnnvuiaVLlwoUABJuyZIlcd999yX+HGVlZT3Hjx9/ikQBAGhKFMAAACn385//vOeAAQNGJ/0c06dPjylTpggUAFJi8uTJMWPGjMSfY8CAAaN//vOf95QoAABNhQIYACDFstls5qyzzjo3k8kk+tGEK1asiLvvvlugAJAyd911V6xYsSLRZ8hkMtmzzjrr3Gw2m5EoAABNgQIYACDFxo0b98XKysq9knyG2trauOGGG6K2tlagAJAyf/1zfvPmzYk+R2Vl5V7jxo0bKVEAAJoCBTAAQEoNHz68/OCDDz4t6ee4//77Y/ny5QIFgJRavnx5jBs3LvHnGDFixI+HDRvWXKIAAOxqCmAAgJS69dZbT8tms22TfIYZM2bEc889J0wASLnJkyfHzJkzE32G4uLitrfffvtp0gQAYFdTAAMApNBVV121R48ePb6S5DOsXLky7rrrLmECQJ64++6744MPPkj0GXr27PnVK664Yg9pAgCwKymAAQBSprS0tOAb3/jGT5N8rdfY2Bi333679/4CQB6pqamJ2267LRobG5N8jIJvfvObZ5aWlvqZGwAAu+6i1AoAANJlwoQJX6uoqBiQ5DOMHz8+Fi1aJEwAyDNvvvlmPPjgg4k+Q4sWLQY9+OCDx0gTAIBdRQEMAJAiRx55ZOWwYcN+kOQzzJ07N5544glhAkCemjhxYixYsCDRZxg+fPiPjjjiiJbSBABgV1AAAwCkyBVXXHFyUVFRRVLnr6qqijvvvDNyuZwwASBP5XK5uP3226O6ujqxZygqKmrxm9/85mRpAgCwKyiAAQBS4vzzz+/Xu3fv45J8httvvz0+/PBDYQJAnlu3bl3cfvvtiT5D7969jz///PP7SRMAgJ1NAQwAkALZbDZz6qmn/jyTyST2+m769OkxZ84cYQIAERExe/bsmDFjRmLnz2QyBaeeeurPs9lsRpoAAOxMCmAAgBT44x//eERlZeXgpM6/du3auPfeewUJAPyde+65J9atW5fY+SsrKwf/6U9/+oIkAQDYmRTAAAAJ17dv3+JDDjnkR0k+w9133x01NTXCBAD+Tk1NTdx9992JPsPBBx/8o759+xZLEwCAnUUBDACQcHfdddc3S0pKOiV1/smTJ8e8efMECQB8pLlz58azzz6b2PlLSko63nPPPd+SJAAAO4sCGAAgwb70pS9VDhw48KSkzr9mzZoYP368IAGALXrggQdizZo1iZ2/f//+Jx111FGtJAkAwM6gAAYASLArrrji1MLCwvIkzp7L5eK2226LTZs2CRIA2KJNmzbFbbfdFrlcLpHzFxYWll1++eU/kCQAADuDAhgAIKF+8Ytf9O7evftXkjr/s88+G2+88YYgAYBP5Y033ojnn38+sfN369bt6F/96ld9JAkAwI6mAAYASKgf/vCHP8pkMom8nvvggw/igQceECIAsFXGjRsX69atS+TsmUym4NRTT/2xFAEA2NEUwAAACXTdddcNa9eu3YFJnD2Xy8Udd9wRtbW1ggQAtsqmTZvizjvvTOz8bdq02f+mm27aT5IAAOxICmAAgIQpLS0t+NrXvnZ6Uud/4YUXYuHChYIEALbJq6++GjNmzEjs/Mccc8zpFRUVfiYHAMAO42ITACBhbr/99oMrKip2S+LsGzZsiHHjxgkRAPhM7r///qiqqkrk7OXl5X3/67/+6wgpAgCwoyiAAQASpKKiouCwww47Nanz33vvvYn9YS0A0HRs2LAh7r///sTOf9BBB/1zq1atCiUJAMCOoAAGAEiQ+++//+iysrKeSZx9zpw58dJLLwkRANguXnjhhViwYEEiZy8tLe32xz/+8StSBABgR1AAAwAkRN++fYv33Xfff07i7LW1tXHvvfcKEQDYru6+++6oq6tL5Oz77bffKf379y+RIgAA25sCGAAgIW6++eZRxcXFbZM4+yOPPBJr164VIgCwXa1atSoee+yxRM6ezWbb3njjjV+TIgAA25sCGAAgAYYOHVq21157fSeJs7/33nvxxBNPCBEA2CEmTpwYK1asSOTsQ4YM+c7QoUPLpAgAwPakAAYASIBrr732xKKiosqkzZ3L5eKee+6JxsZGIQIAO0R9fX3cddddkcvlEjd7UVFR5bXXXnuCFAEA2J4UwAAATdwBBxxQMWDAgG8kcfYZM2bEW2+9JUQAYId6880348UXX0zk7AMGDPjG8OHDy6UIAMD2ogAGAGjirrrqqhOKiooqkjb3pk2b4oEHHhAgALBT3H///VFbW5u4uYuKilpcffXV7gIGAGC7UQADADRhBx10UEX//v0Teffvww8/HB9++KEQAYCdYv369TFhwoREzj5w4MBvHHDAARVSBABge1AAAwA0Yf/5n/95bGFhYfOkzb1q1aqYPHmyAAGAnerpp5+O1atXJ27uwsLC8ssuu2yUBAEA2B4UwAAATdQBBxxQMWjQoNFJnP3uu++O+vp6IQIAO1V9fX3cddddiZx99913/+bQoUPLpAgAwGelAAYAaKIuv/zyYwsLC8uTNvfcuXNjwYIFAgQAdokFCxbE3LlzEzd3UVFRi9/97ndflyAAAJ+VAhgAoAkaOnRo2aBBgxL37t+6urr405/+JEAAYJf605/+FHV1dYmbe/fdd//mkCFDSiUIAMBnoQAGAGiCfvOb33ylqKioZdLmfu655xL53j0AIF1Wr14dzz33XOLmLioqann11VcfLUEAAD4LBTAAQBPTq1evZoMHD/5m0uaurq6ORx55RIAAQJPwyCOPRHV1deLmHjJkyLe6deuWlSAAANtKAQwA0MTcdNNNxxQXF7dN2twTJkyIqqoqAQIATUJVVVUifzmtuLi43a233uouYAAAtpkCGACgCWnVqlXhXnvtdVLS5l61alU8++yzAgQAmpTJkyfHqlWrEjf30KFDR7dq1apQggAAbAsFMABAE3LLLbccXlJS0jlpcz/44INRX18vQACgSamvr48HH3wwcXOXlJR0vummmw6VIAAA20IBDADQRGSz2cwBBxzw7aTNvWjRonjppZcECAA0SS+99FIsXrw4cXOPGDHiO9lsNiNBAAC2lgIYAKCJuOaaa/YuLy/vm7S5H3roocjlcgIEAJqkXC6XyLuAy8vL+1111VV7SRAAgK2lAAYAaCK+8pWvfDdpM8+bNy8WLlwoPACgSVu4cGG8+uqrrg8BAMgLCmAAgCbgsssuG1RZWblPkmbO5XIxfvx44QEAifDAAw8k7qklrVu33veSSy7pLz0AALaGAhgAoAkYNWrUCUmbefbs2bFs2TLhAQCJsGzZsnjllVcSN/cJJ5xwovQAANgaCmAAgF3sn//5nzt37NjxiCTN3NjYGA888IDwAIBEGT9+fDQ0NCRq5k6dOn1h9OjRHaQHAMCnpQAGANjFfvSjH30tk8kk6rps2rRpsWrVKuEBAImyatWqeOGFFxI1cyaTKfzpT386SnoAAHxaCmAAgF1o0KBBpX369Plqkmaur6+PCRMmCA8ASKQJEyZEXV1dombu27fvV/r27VssPQAAPg0FMADALnTZZZcdXlRUVJGkmadOnRpr164VHgCQSOvXr48pU6YkauaioqLK3/zmN0dIDwCAT0MBDACwi2Sz2cy+++57UpJmrqurc/cvAJB4jz76aOLuAt5///1PymazGekBAPBJFMAAALvI1VdfPbSsrKx3kmaeMmVKbNiwQXgAQKJt2LAhnn/++UTNXFZW1ueqq67aS3oAAHwSBTAAwC7y5S9/+bgkzVtfXx8TJ04UHACQCo8//nji7gL+0pe+dLzkAAD4JApgAIBdYPTo0R3atm07IkkzT5s2LdatWyc8ACAVPvzww5g+fXqiZm7fvv2I0aNHd5AeAABbogAGANgFfvrTn47KZDKFSZm3vr4+HnnkEcEBAKnyyCOPRH19fWLmzWQyhT/96U+/JjkAALZEAQwAsJN16tQp26dPn6OTNLO7fwGANFq3bl1MmzYtUTP36dPnmE6dOmWlBwDAx1EAAwDsZFddddUB2Wy2dVLmbWxsjEmTJgmOVOvYsWN06OCJmgD5aNKkSdHY2JiYebPZbOurrrrqAMkBAPBxFMAAADvZiBEjvp6keV988cVYtWqV4Ei1Ll26xIUXXhinnXZadO3a1UIA8siqVavipZdecj0JAEBqKIABAHaiM844o3tlZeXeSZk3l8vFxIkTBUdeyGQyMXjw4PjVr34VY8aMcUcwQB55/PHHI5fLJWbeysrKvc8444zukgMA4KMogAEAdqJTTjnlqxGRScq8CxYsiPfee09w5JVMJhN77713XHjhhTFmzJho3769pQCk3HvvvRcLFy5M1B9X/3NdCQAA/4cCGABgJ+nVq1ezXr16fTlJM3v3L/nsr0XwBRdcECeffHK0bdvWUgBSLGnXPb169fpyr169mkkOAIB/pAAGANhJrrjiioOLiopaJmXeBN4JAztEYWFhDB8+PC688MIYPXp0VFZWWgpACi1YsCCWLVuWmHmLiopaXnnllYdIDgCAf6QABgDYSYYPH/6VJM2btHfhwY5WVFQUI0aMiEsuuSRGjx4dLVu2tBSAFMnlcvH4448naub99tvvK5IDAOAfKYABAHaC0aNHd6isrByalHnXrl0bL7/8suDgI/y1CL744ovjhBNOiBYtWlgKQEq89NJLsW7dusTMW1lZudfo0aM7SA4AgL+lAAYA2AlOP/30o5J07fXMM89EQ0OD4GALiouL47DDDouxY8fGqFGjoqyszFIAEq6hoSGeeeaZJI1c8D/XmQAA8P8vEq0AAGDHymazmX79+n05KfPW1tbGlClTBAefUnFxcYwcOTIuvfTSGDVqVJSWlloKQII9//zzUVtbm5h5+/Xr9+VsNpuRHAAAf6UABgDYwX7zm9/sWVJS0jkp886YMSOqq6sFB1uppKQkRo4cGZdcckkcffTRUVJSYikACVRdXR0zZ85M0p8/na+44orBkgMA4K8UwAAAO9gXvvCFLyVl1lwuF08//bTQ4DNo3rx5HHXUUXHJJZfEyJEjI5vNWgpAwjz11FORy+USM++RRx75ZakBAPBXCmAAgB1oyJAhpZ07dz4iKfO+/vrrsWLFCsHBdlBeXh6jRo2KSy+9VBEMkDArVqyI119/PTHzdunS5fD+/ft79AQAABGhAAYA2KHGjh17aGFhYWJeCOruX9j+KioqYtSoUXHxxRfH4YcfHkVFRZYC4LpouyosLGz+H//xHwdLDQCACAUwAMAOteeeex6ZlFnXrl0b8+bNExrsIK1atYrjjz8+LrroohgxYkQUFPh2DKApmzdvXqxZsyYx8+61115HSg0AgAgFMADADnPMMce0bt269b5Jmfe5556LxsZGwcEO1qZNmxg9enRcfPHFimCAJqyxsTGee+65JP35MvyYY45pLTkAAPykAQBgBznzzDMPz2Qyibjeqq+vj6lTpwoNdqK2bdvG6NGj47zzzovhw4crggGaoBdeeCHq6+sTMWsmkyk844wzDpUaAAB+wgAAsIP079//C0mZdc6cObFhwwahwS7QqVOnOPnkk+Pf/u3fYu+9945MJmMpAE3Ehg0bYvbs2YmZd8CAAR4DDQCAAhgAYEf43ve+16mysnKPpMybpMcbQlp17tw5xowZE7/61a8UwQBNyPPPP5+YWSsrKwd/73vf6yQ1AID8pgAGANgBTj755CMiIhHtzcqVK+P1118XGjQRXbt2jTFjxsQ555wTgwcPthCAXez111+PlStXJmXczMknn3y41AAA8psCGABgB+jXr19iHv88ZcqUyOVyQoMmpnfv3nHaaafFOeecE/3797cQgF0kl8vFlClTknQd6jHQAAB5TgEMALCdnX766d0qKip2S8Ks9fX1MW3aNKFBE9anT58466yz4pxzzonddtvNQgB2gWnTpkV9fX0iZq2oqNjt9NNP7yY1AID8pQAGANjORo8efURSZp03b15s3LhRaJAAffr0ibPPPjvOPPPM6Nmzp4UA7EQbN26MefPmuR4FACARFMAAANtZr169EvPetSQ9zhD4bwMGDIhf/vKXceaZZ0b37t0tBGAnmTp1apKuRw+TGABA/lIAAwBsR2eccUb38vLyvkmYdf369fHaa68JDRJqwIAB8S//8i9x2mmnRbdunvQJsKPNnz8/Pvzww0TMWl5e3u9HP/pRF6kBAOQnBTAAwHZ03HHHHZSUWWfMmBGNjY1CgwTLZDIxePDg+Nd//dcYM2ZMdOjQwVIAdpDGxsaYMWNGYub9xje+cYjUAADykwIYAGA76tOnz8FJmDOXyyXqMYbAlmUymdh7773jwgsvjDFjxkT79u0tBWAHeOGFF5J0XXqIxAAA8pMCGABgOznppJPat2zZcvckzLpkyZJYuXKl0CBl/loEX3DBBXHyySdH27ZtLQVgO1qxYkW8/fbbiZi1srJy0PHHH+8PAgCAPKQABgDYTr773e8eGBGZJMyapMcXAluvsLAwhg8fHhdeeGGMHj06KisrLQVgO5k+fXpSRi34/ve/f6DEAADyjwIYAGA72X333Q9Nwpz19fUxc+ZMgUEeKCoqihEjRsQll1wSo0ePjpYtW1oKwGc0c+bMqK+vT8SsAwcOPFRiAAD5RwEMALAdHHTQQRUtW7bcKwmzLly4MKqrq4UGeeSvRfDFF18cJ5xwQrRo0cJSALZRVVVVvP7664mYtVWrVkOHDx9eLjUAgPyiAAYA2A7OPvvsz2cymaIkzOrxz5C/iouL47DDDouxY8fGqFGjoqyszFIAtkFSnqaSyWSy55577uclBgCQXxTAAADbwe67735AEuasra2NOXPmCAzyXHFxcYwcOTIuvfRSRTDANpg9e3bU1dUlYtY99tjjAIkBAOQXBTAAwGfUqlWrwnbt2u2fhFnnzZsXtbW1QgMiIqKkpCRGjhwZY8eOjaOPPjpKSkosBeBT2LRpU8ybNy8Rs7Zv337/iooKPwMEAMgjLv4AAD6jCy+8cPeioqKKJMz64osvCgz4P5o3bx5HHXVUXHLJJTFy5MjIZrOWAvAJZs2alYg5i4qKWlx88cWDJAYAkD8UwAAAn9GBBx6YiMfqVVdXJ+ZOFWDXKC8vj1GjRsWll16qCAb4BPPmzYuamppEzHrQQQd5DDQAQB5RAAMAfEZdu3YdnoQ5582bF/X19QIDPlFFRUWMGjUqLr744jj88MOjqKjIUgD+QV1dXbz66quJmLVLly77SwwAIH8ogAEAPoNTTjmlY3l5+W5JmPXll18WGLBVWrVqFccff3xcdNFFMWLEiCgo8C0kwN966aWXEjFnRUXFbieddFJ7iQEA5AffvQMAfAYnnnji55MwZ21tbcyfP19gwDZp06ZNjB49OsaOHasIBvgb8+fPj9ra2iSMmvnud7/7eYkBAOQH37UDAHwGn/vc5/ZLwpwLFy6Muro6gQGfyV+L4PPOOy+GDx+uCAby3ubNm2PhwoWJmLVfv37DJQYAkB98tw4AsI1atWpV2Lp1672TMKvHPwPbU6dOneLkk0+Oc889NwYNGmQhQF6bPXt2IuZs06bN3hUVFX4WCACQB1z0AQBso/PPP39gYWFheVOfs76+PubMmSMwYLvr2bNn/OQnP4nzzjsv9t5778hkMpYC5J3Zs2dHfX19k5+zqKio4vzzzx8oMQCA9FMAAwBso/3333/fJMz5+uuvR01NjcCAHaZLly4xZsyYOOecc2Lw4MEWAuSV6urqeOONNxIx64EHHriPxAAA0k8BDACwjbp27ZqIxz/PnTtXWMBO0bt37zjttNPinHPOif79+1sIkDeScr3VvXv3vaUFAJB+CmAAgG0wZMiQ0srKyj2a+py5XM7jn4Gdrk+fPnHWWWfFOeecE7vttpuFAKk3e/bsyOVyTX7Oli1b7jlo0KBSiQEApJsCGABgG5x55pl7ZjKZbFOfc9myZbFu3TqBAbtEnz594uyzz44zzzwzevbsaSFAaq1bty6WL1/e5OfMZDLZs846a4jEAADSrcgKAAC23tChQ4clYc558+YJC9jlBgwYEAMGDIgFCxbE+PHjY+nSpZYCpM68efOiS5cuTX7OffbZZ5+ImC4xAID0cgcwAMA26Nix4z5JmHP+/PnCApqMAQMGxC9/+cs47bTTolu3bhYCpEpSrrs6deq0j7QAANJNAQwAsJWOOOKIlhUVFf2a+pxVVVWxaNEigQFNSiaTicGDB8e//uu/xpgxY6JDhw6WAqTCW2+9FVVVVU1+zoqKis8deuihLSQGAJBeCmAAgK108sknD46ITFOfc/78+dHY2CgwoEnKZDKx9957x4UXXhhjxoyJ9u3bWwqQaI2NjbFgwYJE/Cv4u9/97h4SAwBILwUwAMBW2n333fdMwpze/wskwV+L4AsuuCBOPvnkaNu2raUAiZWU66/BgwfvKS0AgPQqsgIAgK3Trl27wU19xlwul5Q7UAAiIqKwsDCGDx8e++yzT0ybNi0mTJgQ69evtxggURYsWBC5XC4ymab9sJgOHToMlhYAQHq5AxgAYCsMGjSotGXLlgOa+pzvvfdebNy4UWBA4hQVFcWIESPikksuidGjR0fLli0tBUiMDz/8MJYtW9bk52zZsuXA/v37l0gMACCdFMAAAFvhxz/+8aBMJtPkn6Li7l8g6f5aBI8dOzZOOOGEaNGihaUAibBw4cImP2Mmk8n+5Cc/GSAtAIB0UgADAGyFvffee88kzJmEHzwCfBrNmjWLww47LMaOHRujRo2KsrIySwGatKT8Il5SrmsBANh63gEMALAVunbtOqSpz1hfXx9vvvmmsIBUKS4ujpEjR8bBBx8czz77bDz++ONRXV1tMUCT8+abb0Z9fX0UFTXtH7t16dJlT2kBAKSTO4ABAD6lioqKgoqKikFNfc4lS5bE5s2bBQakUklJSYwcOTLGjh0bRx99dJSUeIUl0LTU1tbG0qVLm/ycLVu2HFRaWupngwAAKeQiDwDgUzr77LP7FhYWNvlnj7722mvCAlKvefPmcdRRR8Ull1wSI0eOjGbNmlkK4HpsKxQWFpafffbZvaQFAJA+CmAAgE9p//3375+EOV9//XVhAXmjvLw8Ro0aFf/+7/8eI0eOjGw2aymA67FP6fOf//xAaQEApI8CGADgU+rRo8fuTX3G2traePvtt4UF5J2KiooYNWpUXHzxxXH44Yc3+XdvAum2ePHiRLySo1evXoOkBQCQPgpgAIBPqXXr1k3+DoklS5ZEQ0ODsIC81apVqzj++OPj4osvjhEjRkRBgW97gZ2voaEhlixZ0uTnbNOmjQIYACCFfCcMAPApDBkypLR58+a9m/qcb775prAAIqJ169YxevToGDt2rCIYcF32MZo3b95n0KBBpdICAEgX3wEDAHwKp556av9MJtPkr53eeustYQH8jTZt2sTo0aPjvPPOi+HDhyuCAddlfyOTyRT84Ac/+Jy0AADSxXe+AACfwuDBg5v84/Hq6+tj0aJFwgL4CJ06dYqTTz45/u3f/i323nvvyGQylgLsUIsXL07Eqzn23HPPgdICAEgXBTAAwKfQpUuXAU19xnfeeSfq6uqEBbAFnTt3jjFjxiiCgR2utrY23n333SRc53oPMABAyiiAAQA+hZYtW/Zv6jN6/DPAp9elS5cYM2ZMnHvuuTF48GALAfL2+iwJ17kAAGwdBTAAwCcYPnx4eUlJSeemPqfHPwNsvV69esVpp50W55xzTvTvrwMB8u/6rLS0tPPw4cPLpQUAkB4KYACAT/Ctb31rt4ho8s8IXbx4sbAAtlGfPn3irLPOinPOOSd22203CwG2i4T8gl7m29/+dj9pAQCkhwIYAOAT7L777k2+CVi7dm1s2LBBWACfUZ8+feLss8+OM888M3r27GkhwGfy4Ycfxrp165r8nAMHDlQAAwCkSJEVAABsWadOnZr8D8TefvttQQFsRwMGDIgBAwbEggULYvz48bF06VJLAbb5Oq1Vq1audwEA2GkUwAAAn6CyslIBDJCnBgwYEP3794958+bFQw89FO+++66lAFtlyZIlsddeezX1613PvgcASBEFMADAFnTq1CnbvHnzXk19ziVLlggLYAfJZDIxePDg2GOPPeLll1+OBx98MFauXGkxQGqu05o3b967Xbt2RatXr66XGABA8nkHMADAFowZM6ZnJpPJNuUZGxsbPZoUYCfIZDKx9957x4UXXhhjxoyJ9u3bWwrwiZYuXRqNjY1NesaCgoLsqaee2kNaAADp4A5gAIAt2Hvvvfs29RlXrlwZtbW1wgLYSf5aBO+5554xa9asmDBhQqxevdpigI9UW1sb77//fnTu3LlJzzls2LC+EbFIYgAAyecOYACALejRo0eTL4DfeecdQQHsAoWFhTF8+PC48MILY/To0VFZWWkpQGKv15Jw3QsAwKejAAYA2ILWrVs3+ff/vvvuu4IC2IUKCwtjxIgRcckll8To0aOjZcuWlgIk7notCde9AAB8Oh4BDQCwBc2bN+/Z1GdUAAM0kW+wi4pixIgRsd9++8WUKVPiscceiw0bNlgMEO+9914SrnsVwAAAKeEOYACAj9G/f/+SkpKSjk19TgUwQNPSrFmzOOyww2Ls2LExatSoKCsrsxTIc0m4XistLe3Ut2/fYmkBACSfAhgA4GOccMIJ3Zr69dK6deuiqqpKWABNUHFxcYwcOTJ+/etfK4Ihz1VVVcX69eub+pgF3/zmN7tLCwAg+RTAAAAfY8iQIT2b+oxJeJwgQL77axE8duzYOProo6OkpMRSIA8l4botCde/AAB8MgUwAMDH6N69e8+mPqPHPwMkR/PmzeOoo46KSy65JEaOHBnNmjWzFMgjSbhuS8L1LwAAn0wBDADwMVq1atWjqc+4bNkyQQEkTHl5eYwaNSr+/d//PUaOHBnZbNZSIA8k4botCde/AAB8MgUwAMDHqKio6NXUZ1y+fLmgAJL750yMGjUqLr744jj88MOjqKjIUiDFknDd1rJly16SAgBIPgUwAMBHyGazmbKysq5NecbGxsZYtWqVsAASrlWrVnH88cfHxRdfHCNGjIiCAt+qQxqtWrUqGhsbm/SMJSUlXbPZbEZaAADJ5rtKAICPcNxxx7UrKCgobsozrl69Ourr64UFkBKtW7eO0aNHx9ixYxXBkEJ1dXXxwQcfNOkZCwoKio877rh20gIASDbfTQIAfITPf/7zXZr6jO+//76gAFKoTZs2MXr06Dj//PNj+PDhimBIkRUrVrgOBgBgh/NdJP+PvTuPr7I888d/nSwEkhD2HUQEUVRAoIiouCtq64Jabd1arVorbqO2tlXbaavTOu38Rqffdmpbu9rWpYogsqgFRXCttAIKArJDgAAJBLKQ5JzfH8WO4+DOcp6T9/v18jWvTv657ut6hNvnk/t+AICd2G+//bL+xVcSXiAC8PF17do1Lr300rj99ttj2LBhkUq5lRWSLgn7tyTsgwEAeH8FWgAA8H917txZAAxAVujevXtceeWVsXr16njiiSdi9uzZkclkNAYSKAn7tyTsgwEAeH8CYACAnWjXrp0roAHIKj169Igrr7wyli5dGpMmTYo5c+ZoCiRMEvZvSdgHAwDw/gTAAAA7UVxc3D3baxQAAzRPffr0ibFjx8aSJUti/PjxsWDBAk2BhEjC/i0J+2AAAN6fbwADAOxESUlJz2yur7q6Ourq6gwKoBnbb7/94l/+5V/ia1/7WhxwwAEaAglQV1cX1dXV9sEAAOxWAmAAgHc5/PDDSwsKCtpmc40VFRUGBUBERPTt2zduvPHGuOGGG2LffffVEMhy2b6PKygoaDt8+PASkwIASC4BMADAu5x44oldsr3GDRs2GBQA/8uAAQPiG9/4Rtxwww3Ru3dvDQH7uE+yH+5qUgAAyeUbwAAA79KvX7+sD4DXr19vUADs1IABA+LAAw+MuXPnxoQJE2LlypWaAlkkCTe5HHDAAV0i4i3TAgBIJgEwAMC7dO/evXO21+gEMADvJ5VKxaBBg2LgwIExe/bsGD9+fKxbt05jwD4uZ/bDAAC8NwEwAMC7tG/fvlO21ygABuDDSKVSMWzYsBg6dGjMnj07HnvsMbdIwF6WhBPASdgPAwDw3gTAAADv0rp166w/8ZCEF4cAZI+3g+BDDz00XnnllZg4caK/S8A+LtH7YQAA3psAGADgXUpKSrL6xENjY2Ns3rzZoAD4yPLz8+Pwww+P4cOHx/PPPx8TJ06MqqoqjYE9aPPmzdHY2BgFBdn7Wi7b98MAALw/ATAAwLu0bNmySzbXV1lZGZlMxqAA+Njy8/Nj1KhRMXLkyHjhhRcEwbAHZTKZqKqqio4dO9oPAwCwWwiAAQDepaioKKuvvKusrDQkAHaJgoKCGDVqVIwYMSJmzpwZkydPji1btmgM7IH9XDYHwNm+HwYA4P3laQEAwP8YPnx4SX5+fkk21ygABmBXa9GiRRx//PFxxx13xNlnnx0lJSWaAs14P5efn18yfPhwfxAAACSUABgA4B2OOOKIDtleo+//ArC7FBUVxejRo+P73/9+nH322VFcXKwpsBsk4cr1JOyLAQDYOQEwAMA79O3bt1221+gEMAC729tB8B133BGnn356tGrVSlOgme3n9ttvv7YmBQCQTAJgAIB36NSpkwAYAHYoKSmJz3zmM3HnnXfG6NGjo0WLFpoCzWQ/l4R9MQAAOycABgB4hw4dOrTN9hqTcGUgALmlpKQkzj777PjOd74To0aNivz8fE2BHN/PJWFfDADAzgmAAQDeoaysrG221ygABmBvad++fVx00UVx5513xgknnBCFhYWaAjm6nysrK3MCGAAgoQTAAADvUFJS0j6b68tkMlFdXW1QAOxV7dq1i/POOy+++93vxqhRoyIvz+sF+CiSsJ8rLS0VAAMAJJT/QgMAeIfi4uK22VxfXV1dNDY2GhQAWeHtE8F33HGHIBg+gsbGxqirq7MvBgBgt/BfZgAA79CqVausPung9C8A2ahDhw5x0UUXxbe//e04/PDDBcGQA/u6oqIiJ4ABABLKf5EBALxDQUGBABgAPqauXbvGpZdeGt/61rdi2LBhkUqlNAUSuq9r0aJFW1MCAEimAi0AAPgfhYWFZdlc39atWw0JgKzXrVu3uPLKK2P16tXxxBNPxOzZsyOTyWgMJGhfl+37YgAA3psAGADgnZujgoLW2VyfE8AAJEmPHj3iyiuvjKVLl8akSZNizpw5mgIJ2ddl+74YAID35gpoAIAdWrdunZefn98ym2sUAAOQRH369ImxY8fGLbfcEgMGDNAQSMC+Lj8/v1WrVq28OwQASCCbOACAHQYNGlQSEVn9scJt27YZFACJtd9++8UNN9wQX/va1+KAAw7QEJq1BOzr8gYPHlxsUgAAySMABgDY4YADDijJ9hpramoMCoDE69u3b9x4441xww03xL777qshNEu1tbVZX2P//v1LTQoAIHl8AxgAYIeePXtm/QuuJLwoBIAPa8CAATFgwICYP39+jBs3LpYvX64pNBtJ2Nf16NGjxKQAAJJHAAwAsEOnTp0EwACwFwwYMCAOPPDAmDt3bkyYMCFWrlypKeS8JOzrunbtKgAGAEggATAAwA5lZWVZ/4Krrq7OoADISalUKgYNGhQDBw6M2bNnx4QJE2Lt2rUaQ85KQgDcpk0bV0ADACSQABgAYIeysjIngAFgL0ulUjFs2LAYOnRozJ49O8aPHx/r1q3TGHKOABgAgN1FAAwAsENJSUlxttfoBDAAzcXbQfCQIUPi5ZdfjokTJ0ZFRYXGkDOSEAAnYX8MAMD/JQAGANihqKioKNtrrKmpMSgAmpW8vLw4/PDDY/jw4fH888/HE088EZWVlRpD4iUhAG7RokWRSQEAJI8AGABgh8LCwhbZXF86nY7t27cbFADNUn5+fowaNSpGjhwZL7zwQkycODGqqqo0hsTavn17ZDKZSKVSWVtjixYtWpgUAEDyCIABAHbI9gC4oaHBkABo9goKCmLUqFExYsSImDlzZkyePDm2bNmiMSROJpOJhoaGyOaMtbCw0AlgAIAk/neTFgAA7NgYFRRk9QuuxsZGQwKAHVq0aBHHH398HHnkkfHMM8/E1KlTY9u2bRpDomR7AJzt+2MAAN5jH6cFAAA7NkZZ/oLL9c8A8H8VFRXF6NGj49hjj41nnnkmpkyZEjU1NRpDImT7DS8FBQWugAYASCABMADA2xujLH/B5QpoAHhvbwfBRx11VEyfPj2efvrpqK2t1RiymgAYAIDdIU8LAAD+QQAMAMlXUlISn/nMZ+LOO++M0aNHZ/X1uiAABgBgdxAAAwDskO1XQAuAAeDDKykpibPPPjv+7d/+LUaPHh2FhYWagv3dR5Sfn9/SlAAAkkcADADw9sYoL88JYADIMa1bt46zzz47vve978UJJ5wgCMb+7iPIz8/3LwwAQAIJgAEAdkilUlm9N2psbDQkAPiY2rVrF+edd15897vfjRNOOCEKCgo0Bfu7D94f55sSAEDyCIABAHbI9gA4nU4bEgB8Qu3bt/9nEDxq1KjIy/NqBPu799kfp0wJACB5/FcOAMAOXnABQPPRoUOHuOiii+J73/ueIJi9JpPJZHuJ/sUAAEggmzgAgP+R1QFwAl4QAkDidOzYMS666KL41re+FYcffnj4fTDs796xOc7yG3IAANg5mzgAgITsjQTAALD7dOvWLS699NL41re+FcOGDRMEs0dk+xXQeXl5/kUAAEigAi0AAPiHbH/BJQAGgN2ve/fuceWVV8ayZcviiSeeiDlz5mgKzXl/5/AIAEACCYABAHbIZDJOAAMAERGx7777xtixY2PJkiUxYcKEmD9/vqZgfwwAQCIIgAEA/ocr7gCA/2W//faLG264Id56660YP358vPnmm5rCLpPtV0Cn3IUOAJBIAmAAgB2y/QVXtr8gBIBc1rdv37jxxhvjrbfeinHjxsWiRYs0hU/MFdAAANjEAQDsXln9Bs4BDADY+/r27Rs333xz3HDDDdG7d28NIdf3d75BAgCQQE4AAwDskO0nMATAAJA9BgwYEAMGDIj58+fHI488EitXrtQUcnF/5woaAIAEcgIYAGCHVCqVzvL6DAkAssyAAQPi1ltvjbFjx0bPnj01hJza32UScEc1AAD/lxPAAAD/QwAMAHysv6MHDRoUBx98cDz//PMxadKk2LRpk8aQ+P1dtv+CJAAAO+cEMADADul0dr/fEgADQHarr6+PioqK2LZtm2aQE/u7dDrtBDAAQAI5AQwA8D+cAAYAPrK6urp4+umnY9q0acJfcm1/5wQwAEACCYABAP6HEw4AwIfW0NAQ06ZNiyeffDK2bt2qIXxkCfgGsAAYACCBBMAAADtkMpmsDoDz8ny9AwCywdvB71NPPRXV1dUaQs7u7wTAAADJJAAGANgh219wCYABYO9qbGyMGTNmxJNPPhmVlZUawieWn5+f9VtkUwIASB4BMADADplMpiGb6yssLDQkANgL0ul0zJo1KyZPnhwbN27UEHaZgoLsfjXX1NTUaEoAAAncZ2oBAMA/NDY2bs/m+gTAALBnpdPpePnll2Py5Mmxdu1aDWGXa9GiRbb/O1BvSgAAySMABgDYoampSQAMAEQmk4nZs2fH448/HuXl5RpCs93fNTY2CoABABJIAAwAsENDQ0NWv+ASAAPA7vV28PvEE0/E6tWrNYTdLtuvgM72G3IAAHiPfaYWAAD8gyugAaD5mjNnTkyaNCmWLl2qGewx2X4FtAAYACCZBMAAADs0NTU5AQwAzcyCBQtiwoQJ8dZbb2kG9nfv0tDQIAAGAEggATAAwA7Z/oJLAAwAu87ChQtj/PjxsXjxYs1gr8n2K6Cz/RckAQB4j32mFgAA/EO2B8AFBQWRl5cX6XTasADgY1q+fHmMGzcu5s+frxnsVXl5eVkfAG/fvt0JYACABBIAAwDs0NDQkPUnHFq1ahXbtm0zLAD4iFauXBmPPPKI4Jes2tclYH8sAAYASCABMADADrW1tXXZXqMAGAA+mnXr1sX48eNj9uzZkclkNISs2tdlu7q6ulqTAgBIHgEwAMAOW7du3ZrtNSbhRSEAZIP169fHY489JvjFvu4TqK6u3mpSAADJIwAGANihqqpKAAwACbdhw4Z4/PHH45VXXommpiYNwb7uE6isrHT1DABAAgmAAQB22LRpU9a/4GrZsqVBAcBOVFVVxcSJE+OFF16IxsZGDSHrJSEA3rRpkxPAAAAJJAAGANhh3bp1WR8AOwEMAP/bli1bYsKECYJfEicJ+7ry8nIBMABAAgmAAQB2WLZsmSugASAhqqurY/LkyTFz5syor6/XEBInCfu6pUuXCoABABJIAAwAsMP8+fOz/gRwcXGxQQHQrNXU1MSUKVPimWeeEfySaEnY173++uu+AQwAkEACYACAHRYsWFCXyWQaUqlUYbbW2Lp1a4MCoFmqq6uLp59+OqZNmxbbtsmkSL5s39el0+mGpUuXbjcpAIDkEQADALxDU1PTtoKCgrbZWp8AGIDmZvv27TF9+vR48sknY+tWt9GSO7J9X9fU1ORfOACAhBIAAwC8Q0NDw9ZsDoBLS0sNCYDm8ndyTJs2LZ566qmorq7WEHJOtu/rGhsb/YsHAJBQAmAAgHeor6+vbNWqVc9src8JYAByXWNjY8yYMSOefPLJqKys1BByVrbv6+rr66tMCQAgmQTAAADv0NDQkNVvmgXAAOSqdDods2bNismTJ8fGjRs1hJyX7fu6bN8XAwDw3gTAAADvUFdXV5XN9ZWWlkYqlYpMJmNYAOSETCYTr732Wjz++OOxatUqDaFZSKVSUVJSktU11tbWVpkUAEAyCYABAN5h27Ztm7K5vvz8/GjVqlXU1NQYFgCJlslkYvbs2fH4449HeXm5htCstGrVKvLz87O6xq1btzoBDACQUAJgAIB3qK6u3pztNZaVlQmAAUist4PfiRMnxpo1azSEZqmsrCzra9y2bVuVSQEAJJMAGADgHaqqqjZle43t2rWLtWvXGhYAiTNnzpyYNGlSLF26VDNo1tq1a5f1NW7atMkJYACALNbQWBgFjQ0REZFKRSavMJre/pkAGADgHSoqKqqyvcYkvDAEgHdasGBBTJgwId566y3NgITs5zZs2CAABgDIYoUFDf9MejMRqab0/+S+AmAAgHdYtWpV1r/oatu2rUEBkAgLFy6M8ePHx+LFizUD3iEJAfDq1aurTAoAIJkEwAAA77BgwYKsD4CdAAYg2y1fvjzGjRsX8+fP1wzYiST8Ql8S9sUAAOycABgA4B2eeOKJjZlMpimVSuVna41OAAOQrVauXBmPPPKI4Bc+QLb/Ql8mk2l64oknNpoUAEAyCYABAN6huro6vX379g1FRUVdsrVGJ4AByDZr166NCRMmxOzZsyOTyWgIJHw/t3379g3V1dVpkwIASCYBMADAu9TV1a0XAAPAB1u/fn089thjgl/Isf1cXV3delMCAEguATAAwLvU1dVVtGnTJmvrKykpiRYtWsT27dsNC4C9oqKiIiZOnBivvPJKNDU1aQh8BEVFRVFcXJz1+2GTAgBILgEwAMC7bN26dV2XLll7ADhSqVR07Ngx1qxZY1gA7FFVVVUxceLEeP755wW/8DF17NgxUqlU1u+HTQoAILkEwAAA71JVVZX1Jx46deokAAZgj9m8eXM8/vjj8cILL0RjY6OGwCfcx9kPAwCwOwmAAQDeZf369Vn/zbMkvDgEIPm2bNkSU6ZMiZkzZ0Z9fb2GwC7QsWNH+2EAAHYrATAAwLusXr066088JOHFIQDJVVNTE1OmTIlnnnlG8Au7WBJ+kW/VqlUCYACABBMAAwC8y9///ves/+aZABiA3aG2tjYmT54czz77bNTV1WkINNN93KuvvioABgBIMAEwAMC7PPzww+t//OMfN6RSqcJsrbFz584GBcAus3379pg+fXpMnTo1tm3bpiGwG2X7CeB0Ot3w8MMPC4ABABJMAAwA8C7V1dXpurq68latWu2TrTV26NAh8vLyIp1OGxgAH1tDQ0NMmzYtnnrqqaiurtYQ2M3y8vKiQ4cOWV1jfX39mtraWptMAIAEEwADAOxEbW3tmmwOgAsKCqJdu3axceNGwwLgI2tsbIwZM2bEk08+GZWVlRoCe0j79u2joCC7X8fV1NSUmxQAQLIJgAEAdmLz5s2r2rdvn9U1duvWTQAMwEeSTqdj1qxZMXnyZH+HwF7av2W7LVu2rDQpAIBkEwADAOzEpk2bVvfp0yera+zWrVvMmzfPsAD4QG8Hv1OmTIkNGzZoCOzF/Vu227BhwxqTAgBINgEwAMBOrFixYvWwYcOyusYkvEAEYO/KZDLx0ksvxZQpU6K83K2usLd17do162tctWrVKpMCAEg2ATAAwE7Mnz9/9ZgxY7K6xiS8QARg78hkMjF79uyYOHFirFnjMB9kiyT8At+8efP8oQEAkHACYACAnRg3btyab37zm5mISGVrjU4AA7Azc+bMiSeeeCKWLVumGZBlEvALfJlx48atNikAgGQTAAMA7MTrr79e29DQsKmwsLBDttZYXFwcZWVlsWXLFgMDIBYsWBDjx4+PJUuWaAZkobKysiguLs7qGhsaGjYuWLCgzrQAAJJNAAwA8B62bt26vF27dh2yucauXbsKgAGauYULF8b48eNj8eLFmgFZLAm3t2zbtm25SQEAJJ8AGADgPVRVVS1t167d0GyusWfPnrFw4ULDAmiGli1bFo899ljMnz9fMyABevbsmfU1VlZWLjUpAIDkEwADALyHdevWLevTp09W15iEF4kA7ForVqyIRx99VPALCZOEfdvatWuXmRQAQPIJgAEA3sPChQuXHX744VldY69evQwKoJlYtWpVjB8/PubOnRuZTEZDIGGSsG9buHDhMpMCAEg+ATAAwHuYNm3a0ksuuSSra+zevXvk5+dHU1OTgQHkqHXr1sX48eNj9uzZgl9IqIKCgkR8A/jpp59eZloAADmw/9QCAICde+ihhzbcd999W/Pz80uzdjNXUBBdunSJNWvWGBhAjqmoqIiJEyfGyy+/HOl0WkMgwbp27RoFBdn9Gq6xsbH6kUce2WBaAADJJwAGAHgf27ZtW15WVnZwNtfYq1cvATBADqmqqoqJEyfG888/74YHyBFJ+P7vtm3blpsUAEBuEAADALyPLVu2LMv2ALhnz57x0ksvGRZAwm3evDkef/zxeOGFF6KxsVFDIIck4fu/W7ZsWWpSAAC5QQAMAPA+1q9fvyzbT2z06NHDoAASbMuWLTFlypSYOXNm1NfXawjkoCTs19avX7/MpAAAcoMAGADgfSxYsGDh0KFDs7rGfffdN1KpVGQyGQMDSJCampqYMmVKPPPMM4JfyGGpVCr23XffrK9z/vz5C00LACA3CIABAN7Ho48++uYFF1yQ1TWWlJRE586dY926dQYGkAC1tbUxefLkePbZZ6Ourk5DIMd17do1WrVqlfV1/vnPf15kWgAAuUEADADwPiZNmlRVX1+/oaioqGM217nvvvsKgAGy3Pbt22P69OkxderU2LZtm4ZAM9GnT5+sr7G+vr7iySefrDItAIDcIAAGAPgAW7duXZTtAXCfPn3ipZdeMiyALNTQ0BDTpk2Lp556KqqrqzUEmpkkXP+8detWp38BAHKIABgA4ANUVFQs7NChw8hsrjEJLxYBmpvGxsaYMWNGPPnkk1FZWakh0EwlYZ9WUVHh+78AADlEAAwA8AGWLl266MADD8zqGnv16hUFBQXR2NhoYAB7WTqdjlmzZsWkSZNi06ZNGgLNWGFhYfTs2TMR+13TAgDIHQJgAIAPMHPmzEWnnnpqdm/qCgqiZ8+esWzZMgMD2EveDn4nT54cGzdu1BAg9tlnn8jPz0/CfnexaQEA5I48LQAAeH+//OUvV6bT6bpsr7NPnz6GBbAXZDKZePHFF+O73/1u3H///cJf4J+ScP1zOp2u++Uvf7nStAAAcocTwAAAH6C6ujpdXV29uE2bNodkc539+vWL6dOnGxjAHpLJZGL27NkxceLEWLNmjYYAO92fJWCvu7i6ujptWgAAuUMADADwIWzYsGFetgfA/fv3NyiAPeTVV1+NSZMmxapVqzQD2KlUKpWI/dmGDRvmmhYAQG4RAAMAfAiLFy9+o2/fvlldY1lZWXTu3DnWr19vYAC7yYIFC2L8+PGxZMkSzQDeV5cuXaK0tDQJ+9z5pgUAkFsEwAAAH8JTTz31+ujRo7O+zv33318ADLAbLFy4MMaPHx+LFy/WDOBD78uSYMqUKa+bFgBAbsnTAgCAD/aLX/xiTWNjY1W215mUF40ASbFs2bK4++674z/+4z+Ev8BHkoTv/zY0NFTee++9q00LACC3OAEMAPAhNDQ0ZDZv3jy/Q4cOI7O5TgEwwK6xYsWKePTRR2P+fDejArm7L9uyZYs/5AAAcpAAGADgQ1q3bl3WB8AdO3aMNm3axObNmw0M4GNYtWpVjB8/PubOnRuZTEZDgI+lbdu20aFDh0Tsb00LACD3CIABAD6kefPmzTvooIOyvs4DDzwwXnrpJQMD+AjWrVsX48ePj9mzZwt+gV2yH0uCuXPnzjMtAIDcIwAGAPiQ/vznP88/77zzsr7OAw44QAAM8CFVVFTEuHHjBL/ALt+PJcHDDz/sBDAAQA4SAAMAfEgTJ06srK2tXdGqVat9srnOgw8+2LAAPkBVVVVMnDgxnn/++WhqatIQYJdKwq0xNTU1yydNmlRlWgAAuUcADADwEWzYsOHvvXr1yuoAuG3bttG1a9dYu3atgQG8y+bNm+Pxxx+PF154IRobGzUE2OW6desWbdu2TcS+1rQAAHKTABgA4CNYuHDha7169Toj2+scMGCAABjgHbZs2RJTpkyJ5557LrZv364hwG6TlO//Lly48O+mBQCQmwTAAAAfwcSJE/9+wgknZH2dBx54YEyfPt3AgGavpqYmpkyZEs8880zU19drCLDbDRgwIBF1jh8//u+mBQCQmwTAAAAfwb333rv6Bz/4wfqioqLO2VznAQccEHl5eZFOpw0NaJZqa2tj8uTJ8eyzz0ZdXZ2GAHtEXl5e9O/fP+vrrK+vX3ffffeVmxgAQG4SAAMAfESVlZVzu3btmtXHgFu1ahX77LNPLFu2zMCAZqWuri6efvrpmDZtWmzbtk1DgD1qn332iVatWmV9nZs2bZpjWgAAuUsADADwES1dunR2tgfAERGDBg0SAAPNRkNDQ0ybNi2eeuqpqK6u1hBgr+2/kuCtt976m2kBAOQuATAAwEc0ffr0v48cOTLr6xw4cGBMmDDBwICc1tDQEM8991w8+eSTUVlZqSHAXt9/JcG0adP+bloAALlLAAwA8BH9x3/8x9JbbrmlOj8/v3U219mrV68oKyuLLVu2GBqQc9LpdMyaNSsmTZoUmzZt0hBgrysrK4tevXplfZ2NjY1b7rnnnmUmBgCQuwTAAAAfUW1tbXrDhg1/7dKly3HZXGcqlYqBAwfGrFmzDA3IGW8Hv5MnT46NGzdqCJA1Bg4cGKlUKuvr3Lhx4yu1tbVpEwMAyF0CYACAj+Gtt956JdsD4IgQAAM5I51Ox8svvxxTpkyJ8vJyDQGyct+VBIsWLXrFtAAAcpsAGADgYxg/fvwrRxxxRNbXedBBB0VBQUE0NjYaGpBImUwmZs+eHRMnTow1a9ZoCJCVCgoK4qCDDkpErY888ogAGAAgx+VpAQDAR/fjH/94ZX19/fpsr7OoqCj69etnYEAivfrqq3HHHXfEz3/+c+EvkNX69esXRUVFWV9nXV1d+b333rvaxAAAcpsTwAAAH9OGDRte6dGjx6ezvc5BgwbFggULDAxIjCVLlsSECRNi/vz5mgEkwuDBgxNR5/r1653+BQBoBgTAAAAf07x5815OQgA8bNiwePjhhyOTyRgakNXefPPNmDBhQixevFgzgMRIpVIxdOjQRNQ6d+7cl0wMACD3CYABAD6m++677+XRo0dnIiKVzXW2bds2evfuHcuWLTM0ICstW7YsHnvsMSd+gUTq06dPtG3bNgmlpu+9996/mhgAQO4TAAMAfEwTJ06s3Lp165LS0tK+2V7rkCFDBMBA1lmxYkU8+uijgl8g0YYMGZKIOqurqxc+/fTTm00MACD3CYABAD6B8vLyl/fff/+sD4AHDx4c48aNMzAgK6xcuTImTJgQc+fOdT09kHhJ+f7vmjVrfP8XAKCZEAADAHwCM2fOfG7//ff/fLbX2a1bt+jWrVuUl5cbGrDXrFu3LsaPHx+zZ88W/AI5oWfPntGlS5dE1DpjxoznTAwAoHkQAAMAfAK33Xbba5dcckl1fn5+62yvdciQIQJgYK9Yv359PPbYY4JfIOck5frnxsbGzbfddts8EwMAaB4EwAAAn0BlZWXThg0b/tqlS5fjsr3WQw89NCZNmmRowJ78MzKeeOKJeP7556OpqUlDgJxz6KGHJqLOioqKV6qrq9MmBgDQPAiAAQA+oXnz5s1MQgDcu3dv10ADe0RVVVVMnDgxXnjhhWhsbNQQICd17949evbsmZT9quufAQCakTwtAAD4ZP77v/97VkQk4kTFpz71KQMDdpstW7bEQw89FLfffns899xzwl8gpw0fPjwRdWYymfTdd9/9gokBADQfTgADAHxCkyZNqtqyZcuCsrKyg7K91uHDh8fjjz9uaMAuVVNTE1OmTIlnnnkm6uvrNQTIealUKg477LBE1Lply5bXp0+fvsXUAACaDwEwAMAusHz58lkDBw7M+gC4S5cu0atXr1i5cqWhAZ9YbW1tTJ48OZ599tmoq6vTEKDZ6N27d3Ts2DEx+1QTAwBoXgTAAAC7wLPPPvvCwIEDr0hCrcOGDRMAA59IXV1dPP300zFt2rTYtm2bhgDNzrBhwxJT61/+8pcXTQwAoHnxDWAAgF3g1ltvnV9fX782CbUefvjhkUqlDA34yBoaGmLq1Klx6623xuOPPy78BZqlJF3/XFdXt/rWW29dYGoAAM2LE8AAALtAQ0NDZs2aNc/16dPns9lea7t27aJPnz6xZMkSgwM+7J9xMW3atHjqqaeiurpaQ4Bmbb/99ou2bdsmotbVq1fPNDEAgOZHAAwAsIs8++yz05IQAEdEHHHEEQJg4AOl0+mYNWtWTJo0KTZt2qQhABFx5JFHJqbW6dOnTzMxAIDmxxXQAAC7yC233PJaQ0NDZRJqHT58eLRo0cLQgJ1Kp9Px3HPPxW233Rb333+/8Bdgh6KiovjUpz6ViFobGho23HLLLXNNDQCg+XECGABgF6murk6Xl5c/t88++5yR7bW2bNkyDj300Hj55ZcNDvindDodL7/8ckyZMiXKy8s1BOBdhgwZEkVFRYmodc2aNc/V1tamTQ0AoPkRAAMA7EIvvvjiM0kIgCMiRo4cKQAGIiIik8nE7NmzY+LEibFmzRoNAXif/VNSzJo161kTAwBongTAAAC70O233/7KOeecszU/P78022sdMGBAtG/f3tWu0My9+uqrMWnSpFi1apVmALyPjh07xgEHHJCIWhsbG6u/8Y1v/NXUAACaJwEwAMAutHLlyob169fP6tat2+hsrzWVSsXhhx8ekyZNMjhohubMmROTJ0+OJUuWaAbAh3D44YdHKpVKRK3r16+fVVFR0WhqAADNU54WAADsWq+++mpirts77LDDDAyamTfffDP+/d//PX7yk58IfwE+pFQqFSNGjEhMva+88sozpgYA0Hw5AQwAsIvddNNNz5166qnV+fn5rbO91m7dukX//v1j4cKFBgc5btmyZfHYY4/F/PnzNQPgIzrggAOic+fOiai1sbFxy4033jjL1AAAmi8BMADALrZy5cqG8vLyGT179vx0Euo9+uijBcCQw5YvXx7jxo0T/AJ8wv1SUpSXlz9TXl7eYGoAAM2XABgAYDeYMWPGUxdccEEiAuAhQ4ZE69ato7q62uAgh6xcuTImTJgQc+fOjUwmoyEAH1ObNm3i0EMPTUy9zz777FOmBgDQvPkGMADAbvDVr371lYaGhk1JqLWgoCCOOOIIQ4McsW7duvj5z38ed955Z8yZM0f4C/AJjRw5MvLz8xNRa0NDw8abbrrpVVMDAGjenAAGANgNKisrm1atWjW9T58+5ySh3qOPPjqefPJJQREk2Pr16+Oxxx6L2bNn+3cZYBdJpVIxatSoxNS7cuXKadXV1WmTAwBo3pwABgDYTaZNm5aY6/c6duwYAwYMMDRIoA0bNsSvf/3r+Nd//dd49dVXhb8Au9CAAQOiY8eOian36aefftLUAAAQAAMA7CZf+9rX5tTX11ckpd6jjjrK0CBBqqqq4v77749vf/vb8eKLL0ZTU5OmAOxiRx55ZGJqra+vX/eNb3zjdVMDAMAV0AAAu0ltbW16xYoVT++///6fT0K9hx56aLRt2zaqqqoMD7LYli1bYsqUKfHcc8/F9u3bNQRgN2nbtm0MGTIkMfUuX778qdraWtc/AwDgBDAAwO70xz/+cUJSas3Pz4/jjjvO0CBL1dTUxKOPPhq33XZb/OUvfxH+Auxmxx57bOTn5yel3Myvf/3rCaYGAECEABgAYLe66667llZXV89PSr1HH310tGjRwuAgi7wd/H7jG9+IqVOnRn19vaYA7GYtWrSIo48+OjH1btmy5Y177rlnhckBABDhCmgAgN3u9ddfn3T44YcPSEKtxcXFcdhhh8XMmTMNDvayurq6ePrpp2PatGmxbds2DQHYgw477LAoKSlJTL3z5s17wtQAAHibE8AAALvZ9773vanpdLohKfWecMIJkUqlDA72koaGhpg6dWrceuut8fjjjwt/AfawVCoVJ5xwQmLqTafT27/73e8+ZXIAALzNCWAAgN1s+vTpWyoqKmZ26dIlER/Y7d69e/Tv3z/efPNNw4M9qKGhIaZNmxZPPfVUVFdXawjAXnLAAQdE9+7dE1NvRUXFczNmzPAXBwAA/+QEMADAHjBr1qxEXcuXpFMvkHTpdDqee+65uP322+PRRx8V/gLsZccff3yi6p0xY8YkUwMA4J2cAAYA2AO++tWvvnT66adXFRYWtk1CvQMHDoyOHTvGhg0bDA92k3Q6HbNmzYrJkyfHxo0bNQQgC3Ts2DEGDhyYmHobGhoqb7755pdMDgCAd3ICGABgDygvL29YsWLF1MRsEvPy4sQTTzQ42A3S6XS8+OKL8Z3vfCfuv/9+4S9AFjnppJMiLy85r8tWrFgxpaKiotHkAAB4JwEwAMAe8qtf/erRiMgkpd6jjjoqysrKDA52kUwmE6+++mp873vfi1//+texdu1aTQHIImVlZXHUUUcl6q+W//7v//6zyQEA8G4CYACAPeQ///M/l1dWVv4tKfUWFhbGMcccY3CwC7wd/P785z+PNWvWaAhAFjruuOOioCA5X0urqqqa/dOf/nS1yQEA8G4CYACAPeill14al6R6jzvuuCgqKjI4+JjmzJkTd911V/z85z+P1au9owfIVkVFRYn7xbcXXnhhnMkBALAzBVoAALDnjB079pkFCxZUFhYWtktCvSUlJXHEEUfE9OnTDQ8+gjfffDPGjx8fb731lmYAJMCRRx4ZJSUliam3oaFh0zXXXPOsyQEAsDMCYACAPai8vLxh6dKlE/v3739xUmo+8cQT49lnn410Om2A8AEWLVoUjz32WCxevFgzABIiLy8vTjzxxETVvGTJkifKy8sbTA8AgJ3ucbUAAGDP+u1vfzsxIjJJqbdjx44xdOhQg4P3sXz58rj77rvjRz/6kfAXIGGGDRsWHTp0SFLJmd/85jePmxwAAO9FAAwAsIf953/+5/JNmza9kqSaTz/99EilUoYH77Jy5cr4yU9+Et///vdj/vz5GgKQMHl5eXHGGWckquZNmza9fM8996wwPQAA3osroAEA9oKXXnpp/KmnnnpYUurt2rVrDBkyJGbPnm14EBHr1q2L8ePHx+zZsyOTyWgIQEINHTo0OnfunKiaX3jhhQkmBwDA+xEAAwDsBZdffvkzS5YsWVdUVNQlKTWfccYZ8be//U3YRbO2fv36eOyxxwS/ADkglUrF6aefnqia6+rq1lx22WXTTQ8AgPcjAAYA2AsqKyub5s+f/8ihhx56dVJq7tatm1PANFsbNmyIxx9/PF555ZVoamrSEIAc8KlPfSq6du2aqJrfeOONcdXV1WnTAwDg/fgGMADAXvL1r399XDqdrktSzb4FTHNTVVUV999/f3z729+OF198UfgLkCNSqVR8+tOfTlTN6XS69pvf/OZjpgcAwAdxAhgAYC+ZMWNG9Zo1a/7Ss2fPxLx97N69ewwcODDmzJljgOS0LVu2xIQJE+KFF16IxsZGDQHIMYceemh069YtUTWvXr36qRkzZlSbHgAAH8QJYACAvejXv/71HyMiUR8SPeuss5wCJmdt27YtHn300bjtttviueeeE/4C5KC8vLwYM2ZM0srO/OpXv/qT6QEA8KH2vFoAALD3fP/733+rqqoqUR/V7dGjR3zqU58yPHJKfX19TJ06Nb71rW/F1KlTo76+XlMActSIESOiS5cuiap506ZNf73rrruWmh4AAB+GABgAYC975plnHkpazWeccUbk5dlKkjvmzZsXjz76aGzdulUzAHJYQUFBnH766Ymre9q0aQ+aHgAAH5a3dgAAe9nYsWNn1tfXr01SzZ07d47DDjvM8ACARBk5cmR06NAhUTXX1dWtHjt27POmBwDAhyUABgDYyyorK5tee+21Pyat7jPPPDMKCgoMEABIhBYtWiTy9O/s2bP/UF1dnTZBAAA+LAEwAEAWuOqqqyY0NjZWJanm9u3bx9FHH214AEAiHHfccdGmTZtE1dzQ0LDxiiuumGh6AAB8FAJgAIAssGDBgrqFCxc+lrS6R48eHYWFhQYIAGS1li1bxsknn5y4uhcuXDhu6dKl200QAICPQgAMAJAlvv71r/8pnU7XJqnmtm3bximnnGJ4AEBWO+2006K0tDRRNTc1NdV+7Wtfe8j0AAD4qATAAABZ4umnn968fPnyxF3xN3r06GjXrp0BAgBZqUOHDnH88ccnru5ly5ZNmD59+hYTBADgoxIAAwBkkbvvvvtPmUymKUk1FxYWxumnn254AEBWOvPMMxP3yYpMJtN41113/dH0AAD4OATAAABZ5Be/+MWatWvXTkta3UcccUT06tXLAAGArNK7d+847LDDEld3eXn5X+6///51JggAwMchAAYAyDIPP/zwn5JWcyqVijPPPNPwAICsMmbMmEilUomr+8EHH/yT6QEA8HEJgAEAsszXv/71NzZs2DAraXUPHDgwDj74YAMEALLCoEGDYsCAAYmru6KiYuatt966wAQBAPi4BMAAAFlo3Lhxv01i3WPGjIm8PFtMAGDvysvLizFjxiSy9j//+c+/NUEAAD7RflgLAACyz/XXXz+nqqrqr0mru1evXnHUUUcZIACwVx1zzDHRvXv3xNW9adOmV2666aa5JggAwCchAAYAyFJ/+tOf7k1i3WPGjInS0lIDBAD2ijZt2sRZZ52VyNofeOCBe00QAIBPSgAMAJClbrrpprlJPAVcXFwcZ555pgECAHvFWWedFS1btkxc3Zs2bXrl5ptvnmeCAAB8UgJgAIAsNm7cuF8lse5Ro0ZF7969DRAA2KP69OkTI0eOTGTtjz322K9MEACAXUEADACQxcaOHTu7qqrqb0mrO5VKxfnnnx+pVMoQAYA9tv/4/Oc/n8j9R2Vl5d+uueaav5kiAAC7ggAYACDLTZ069bdJrLtv374xZMgQAwQA9ojDDjsssTeQTJ48+TcmCADAriIABgDIcpdeeumLVVVVryax9s9//vNRXFxsiADAblVaWhrnn39+Imuvqqr66+WXX/6SKQIAsKsIgAEAEuChhx76WRLrLisri9NPP90AAYDd6qyzzoqSkpIklp753e9+91MTBABgVxIAAwAkwA033DB3w4YNs5JY+3HHHRd9+vQxRABgt+jbt28cddRRiay9oqJi1te//vU3TBEAgF1JAAwAkBA///nPfxoR6aTVnUql4vOf/3zk5dl6AgC7Vn5+flx00UWRSqWSWH76F7/4xX+bIgAAu5q3cAAACXHHHXe8tW7duulJrL13795xzDHHGCIAsEudcMIJ0b1790TWXl5e/pc77rjjLVMEAGBXEwADACTI3XfffW8mk2lKYu1nnXVWtG3b1hABgF2iQ4cOcfrppyey9kwm03T33Xf/3BQBANgdBMAAAAlyzz33rCgvL386ibW3bNkyzj33XEMEAHaJc889N1q0aJHI2tesWTP1xz/+8UpTBABgdxAAAwAkzA9/+MOfZzKZhiTWPnz48Bg0aJAhAgCfyKGHHhpDhw5NZO3pdLrhBz/4wS9MEQCA3UUADACQMPfee+/qRYsWPZDU+i+++OIoKSkxSADgY2ndunVcfPHFia1/4cKFf7jvvvvKTRIAgN1FAAwAkECXXXbZrxsaGjYlsfaysjJXQQMAH9u5554bpaWliay9oaFh4+WXX/47UwQAYHcSAAMAJNDs2bNrXn311V8ntf4jjjgiDj74YIMEAD6SwYMHx+GHH57Y+l955ZX7Zs+eXWOSAADsTgJgAICEOueccx6tqalZmtT6L7roomjZsqVBAgAfSsuWLeNzn/tcYuuvqalZMmbMmMdMEgCA3U0ADACQUJWVlU3Tpk37RVLrb9++fZx++ukGCQB8KGeccUa0b98+sfU/+eST91ZXV6dNEgCA3U0ADACQYOedd960qqqqV5Ja/wknnOAqaADgAx188MFx/PHHJ7b+TZs2vXzBBRc8a5IAAOwJAmAAgIT74x//eG9EZJJYeyqVigsuuMBV0ADAe2rZsmVccMEFkUqlkrqEzP333/8zkwQAYE8RAAMAJNzNN988b9WqVU8ktf6OHTsm+nt+AMDudcEFF0THjh0TW/+KFSse//rXv/6GSQIAsKcIgAEAcsCNN974k6ampq1JrX/kyJExdOhQgwQA/pdPfepTMWLEiMTW39TUVH3zzTf/t0kCALAnCYABAHLAxIkTK//+97//KslruPDCC6OsrMwwAYCIiGjTpk18/vOfT/QaZs+efd/EiRMrTRMAgD1JAAwAkCPOPvvsh2pqapYntf7S0tK46KKLDBIAiFQqFV/84hejtLQ0sWuoqal566yzznrYNAEA2NMEwAAAOaKioqJx0qRJP07yGgYPHhwjR440TABo5o444og46KCDEr2GJ5544qeVlZVNpgkAwJ4mAAYAyCGXXHLJzIqKihlJXsMFF1wQ3bp1M0wAaKZ69uyZ+KufKyoqZnzhC1+YZZoAAOwNAmAAgBzzb//2b/ek0+ntSa2/RYsWceWVV0ZhYaFhAkAzU1hYGF/60pcSvQ9Ip9Pb/+3f/u0e0wQAYG8RAAMA5Jh777139aJFix5M8hq6d+8eZ555pmECQDNzxhlnRPfu3RO9hsWLFz947733rjZNAAD2FgEwAEAO+uxnP/vL2traRL94PPHEE2Pw4MGGCQDNxKBBg+Kkk05K9Bpqa2tXn3vuub80TQAA9iYBMABADlq8eHH9uHHj/j3Ja0ilUnHJJZdE27ZtDRQAclybNm3ikksuiVQqleh1jBs37t8XL15cb6IAAOxNAmAAgBx1+eWXv1RRUTEjyWsoLS2NL3zhC4l/GQwAvLe3f+mrdevWiV5HRUXFM5dffvlLJgoAwN4mAAYAyGE33HDDXU1NTVuTvIaDDjrI94ABIId95jOfiUMOOSTRa2hqaqq+4YYbfmiaAABkAwEwAEAOGzdu3MbZs2cn/jt0p5xyiu8BA0AOOuSQQ+LTn/504tfx17/+9efjxo3baKIAAGQDATAAQI77zGc+81B1dfXCJK8hlUrFF7/4xejQoYOBAkCO6NixY3zpS19K/KceNm/ePO+00057xEQBAMgWAmAAgBxXXV2dfuCBB34UEekkr6O4uDguvfTSyMuzhQWApMvPz4/LLrssiouLk76U9P333/+ftbW1aVMFACBbeHsGANAMXH/99XMWLVr0YNLXsf/++8e5555roACQcOedd1707ds38etYuHDhH7/61a++bqIAAGQTATAAQDNxySWX/Lyurq486es4/vjjfQ8YABJs2LBhccwxxyR+HXV1dWsuvPDC+0wUAIBsIwAGAGgmXnvttdoHHnjguxGRSfI6UqlUfOlLX4oePXoYKgAkTO/evePSSy9N/Hd/IyLzwAMPfO/111+vNVUAALKNABgAoBm5+uqr/7Z06dJHk76OoqKiGDt2bJSWlhoqACRE69at46qrrorCwsLEr2X58uXjrr766r+ZKgAA2UgADADQzJx33nn/r66ubnXS19GhQ4e4/PLLIy/PlhYAsl1eXl5cfvnl0b59+8Svpb6+ft0ll1zyE1MFACBr999aAADQvLz++uu1Dz744Pcj4VdBR0QMGDAgzjrrLEMFgCw3ZsyYOPDAA3NiLY899tgPXnnllW2mCgBAthIAAwA0Q1/5ylf+umbNmqm5sJaTTz45Dj30UEMFgCw1ZMiQOOmkk3JiLWvXrv3LpZde+oKpAgCQzQTAAADN1GWXXfYf9fX1FUlfRyqViksvvTS6d+9uqACQZXr06BFf/OIXI5VKJX4tDQ0Nm6655pofmioAANlOAAwA0EzNmDGj+oEHHvhO5MBV0C1btozrr78+2rZta7AAkCXatWsX1113XbRs2TIXlpN56KGH/nXSpElVJgsAQLYTAAMANGNf+cpX/rpkyZI/58Ja2rZtG1dffXW0aNHCYAFgL2vRokVcffXVOfPLWUuXLn30iiuueNlkAQBIAgEwAEAzd+655/6ktrZ2eS6spXfv3jlzzSQAJNXbn2fYZ599cmI9tbW1y88555wfmywAAEkhAAYAaOYWLFhQ97Of/ezbmUymMRfWM2zYsDjllFMMFgD2kk9/+tMxdOjQnFhLJpNp/NnPfvbtBQsW1JksAABJIQAGACBuvfXWBfPnz78/V9Zz5plnxuDBgw0WAPaw4cOHx2c+85mcWc/8+fN/d+utty4wWQAAkkQADABARESMGTPmvpqamrdyYS2pVCouu+yy6Nmzp8ECwB7Su3fvuPjii3PmUwxbt25ddPrpp//aZAEASBoBMAAAERGxcuXKhh/+8Ie3pdPpnLjisGXLlvEv//Iv0aVLF8MFgN2sS5cucf3110dRUVFOrKepqanmu9/97jfKy8sbTBcAgKQRAAMA8E933XXX0ueff/6eXFlPaWlpXHvttVFWVma4ALCblJWVxXXXXRclJSU5s6aZM2fe/f/+3/9bZboAACSRABgAgP/l5JNPHldeXv50rqynU6dOMXbs2Jw5kQQA2aSoqCiuueaa6NixY86sqby8/MlTTz11gukCAJBUAmAAAP6PSy655K66urq1ubKefffdN6644orIy7P9BYBdJS8vL6688sro3bt3zqyprq6u/JJLLvmh6QIAkOi9uhYAAPBus2bNqn7ooYfujIh0rqxp4MCBcd555xkuAOwi559/fhxyyCG5tKT0gw8+eOesWbOqTRcAgCTLb3tQ9NzpjndbRG15oQ4BADRTEydOXDNmzJi8Tp06Dc2VNfXp0yfy8/PjzTffNGAA+ATOOuusOOmkk3JqTa+//vp9Z5555kTTBQAgCYq7N0Ze6c5/5gQwAADv6dRTT/31li1bXs+lNZ122mlx9NFHGy4AfEzHHntsnHrqqTm1pi1btrxx2mmn/cZ0AQDIBQJgAADeU0VFReONN974jcbGxqpcWtcFF1wQRx55pAEDwEd05JFHxuc+97mcWlNjY2PVzTff/I2KiopGEwYAIBcIgAEAeF9//OMf1z/yyCPfiRz6HnAqlYqLLroohgwZYsAA8CENHTo0LrrookilUrm0rPQjjzzynfvvv3+dCQMAkCsEwAAAfKBLL730hQULFvwupzbCeXnxpS99Kfbff38DBoAPcNBBB8WXvvSlyMvLrVdJCxYs+N2ll176ggkDAJBLBMAAAHwoo0eP/mVVVdXcXFpTYWFhfOUrX4kePXoYMAC8h169esUVV1wRBQUFObWuqqqqOaNHj/6lCQMAkGsEwAAAfCgVFRWNV1111S0NDQ0bcmldJSUlcfPNN8c+++xjyADwLr17946bbropiouLc2pdDQ0NG6666qqv++4vAAC5SAAMAMCHNmHChE3333//tzKZTDqX1lVcXBzXXXdddO/e3ZABYIfu3bvHtddeG61atcqpdWUymfT999//rQkTJmwyZQAAcpEAGACAj2Ts2LGz58+f/9tcW1fr1q3juuuuiw4dOhgyAM1ehw4d4rrrrovWrVvn3Nrmz5//m7Fjx842ZQAAcpUAGACAj+y44477xaZNm17MtXW1a9cubrzxxmjXrp0hA9BstW3bNmf/Pty4ceOLxx13nO/+AgCQ0wTAAAB8ZNXV1emLL774W3V1datzbW0dO3aMG2+8Mdq0aWPQADQ7ZWVlceONN0bHjh1zbm21tbWrL7zwwturq6vTJg0AQC7Lb3tQ9NzZD9LbImrLC3UIAICdWrZsWf327dtfOvbYY0/Ny8trkUtrKykpiaFDh8Zrr70WNTU1hg1As9ChQ4f42te+Fp06dcq5tTU1NW39zne+M/bBBx9cb9IAAOSC4u6NkVe6858JgAEA+NhefPHFzYcccsiyAQMGnBgRqZzaRBcXx5AhQ4TAADQLHTt2jJtuuik6dOiQi8tLjx8//ravfvWrc0waAIBc8X4BsCugAQD4RC688MIZb7zxxm9ycW3t27ePm266KSdPQgHA2zp16pTL4W+88cYbv77wwgufM2kAAJoLATAAAJ/YqFGjfrFhw4aZubi2t0Pgzp07GzQAOadz585x0003Rfv27XNyfRs2bJg5atSo+0waAIDmRAAMAMAnVltbm77sssu+V1dXtzoX19euXbu44YYbomPHjoYNQM7o0KFDXH/99dGuXbtc3Z+s/sIXvvDd2tratGkDANCc+AYwAAC7xJIlS+oj4pVRo0admpeX1yLX1ldcXBxDhw6NuXPnxrZt2wwcgETr0qVL3HjjjTl77XNTU1P1nXfeec0f/vCHdaYNAEAuer9vAAuAAQDYZWbNmlXVo0ePuYceeujoVCqVn2vra9WqVYwYMSIWLVoUlZWVBg5AIu23335x0003RVlZWU6uL51ON/z617++4fbbb3/TtAEAyFUCYAAA9phJkyatPeqoozbsu+++R+fi+goLC2P48OGxbNmy2LBhg4EDkCgDBgyIa6+9Nlq1apWza5w2bdq/XXLJJc+ZNgAAuez9AmDfAAYAYJc77bTTHn/rrbcezNX1FRUVxTXXXBNDhgwxbAASY8iQIXHNNddEUVFRzq5xwYIFvzv99NOfMG0AAJozATAAALvFEUcccc+GDRtm5ur6CgoK4sorr4wjjjjCsAFIwt/LceWVV0ZBQUHOrrG8vPypESNG/LdpAwDQ3AmAAQDYLaqrq9MXXXTRd2pra1fk7GY6Ly8uvvjiOPLIIw0cgKw1atSouPjiiyMvL3dfA23dunXxZz/72e83NDRkTBwAgObON4ABANhtli9fvr2mpuaFY4899uT8/PyWubjGVCoVgwYNikwmE4sWLTJ0ALLK6aefHueee26kUqmcXWN9fX3FDTfccM3UqVOrTBwAgObi/b4BLAAGAGC3evnll7cUFBS8cMQRR4zOy8trkYtrTKVSccABB0SnTp1i7ty5kck4fATA3lVYWBhXXHFFHHPMMTm9zsbGxuo777zzKz/72c9WmzoAAM2JABgAgL1qxowZlb169Xp98ODBJ6dSqfxcXWfPnj2jb9++8fe//z0aGxsNHoC9olWrVnH11VfHwIEDc3qd6XS64be//e2Nt9122wJTBwCguREAAwCw1z3xxBPlw4cPX9OvX79jIyJn76Hs2LFjDBw4MObMmRN1dXUGD8Ae1a5du7jxxhujT58+ub7U9JQpU779xS9+8XlTBwCgOXq/ADhPewAA2FPGjBkz9Y033vh1rq+zZ8+eceONN0bHjh0NHYA9pkuXLnHTTTdF9+7dc36tc+fO/eU555zzF1MHAID/SwAMAMAe9alPfernS5cufTjX19mlS5e49dZb48ADDzR0AHa7gQMHxje/+c3o1KlTzq/1rbfeemjEiBG/MnUAANg5ATAAAHvcsccee8/GjRtfyPV1FhcXx7XXXhsjRowwdAB2m8MPPzyuuuqqaNmyZc6vdePGjc8fffTR95g6AAC8NwEwAAB7XEVFReNxxx339crKyr/l+loLCgrisssui/PPPz9SqZThA7DLpFKpOP/88+PSSy+NgoKCnF/vpk2bXj7ssMNuqaysbDJ9AAB4bwJgAAD2isWLF9efddZZN1dXV7/ZHNZ7/PHHx5e//OUoKioyfAA+sRYtWsSXv/zlOP7445vFequrq98cM2bMN8rLyxtMHwAA3l9+24Oi585+kN4WUVteqEMAAOw2a9asaVi1atWs0aNHH1dQUNA619fbrVu3OOCAA2LevHlRX1/vAQDgYykrK4trrrkmDjrooGax3rq6uvKxY8de89RTT202fQAA+Ifi7o2RV7rznwmAAQDYq+bNm1ezevXqZ04++eTjCwoKSnN9ve3atYuRI0fG8uXLY+PGjR4AAD6S/v37x0033RRdu3ZtFuutr69fd9111335T3/6U4XpAwDA/xAAAwCQ1ebMmbMtlUq9fOSRR56Ul5eX83ckt2jRIkaMGBG1tbWxdOlSDwAAH8rxxx8fX/rSl5rN5wQaGxu33HXXXdf99Kc/XWn6AADwvwmAAQDIejNnzqzs2bPn64MHDz4plUrl5/p6U6lUHHLIIdGqVatYsGBBZDIZDwEAO5WXlxef/exn4/TTT49UKtUs1pxOp7f//ve//+o3vvGN1z0BAADwfwmAAQBIhEmTJpXvs88+8wYOHHhCKpUqaA5r3m+//WLAgAExd+5c3wUG4P8oKyuL6667LoYNG9Zs1pxOp7f/8Y9/vOmqq676qycAAAB2TgAMAEBiTJw4cc3BBx+85MADDzwulUrlNYc1t2/fPoYOHRqLFi2KLVu2eAgAiIiIffbZJ66//vro2bNns1lzJpNpnDBhwm1f/OIXn/cEAADAexMAAwCQKI8++ujy/fff/42DDjrohOZwHXRERHFxcRx11FHR2NgYb731locAoJkbPXp0XHHFFVFSUtJs1pxOpxsefvjhr15yySWzPAEAAPD+BMAAACTO+PHjVw0cOHDpAQcccGxzOQmcSqViwIAB0aVLl3jjjTeiqanJgwDQzBQVFcWll14aJ554YrP53m/EP07+Pv7447dffPHFMz0FAADwwQTAAAAk0iOPPLLs0EMPXbb//vs3mxA4IqJHjx4xZMiQePPNN2Pr1q0eBIBmonv37vEv//IvccABBzSrdWcymaYnnnji9s997nPPeAoAAODDEQADAJBYDz/88NJjjjlmY+/evY+KiGZzFKq0tDSGDx8eq1evjvXr13sQAHLcwIED45prrol27do1t6VnZsyY8YOzzjprqqcAAAA+PAEwAACJdv/99795zDHHVO6zzz5HRDMKgVu0aBGHHXZYtGzZMhYuXBjpdNrDAJBjCgoK4pxzzonzzz8/WrRo0dyWn37uuefuOuWUUyZ4EgAA4KMRAAMAkHi///3v5w8bNmxF3759j2lO10GnUqno27dvDB06NBYvXhxbtmzxMADkiJ49e8YNN9wQgwcPblbf+434x7XPU6ZM+fbpp58+2ZMAAAAfnQAYAICc8OCDDy4ZNmzYin79+jWrEDgionXr1nHEEUdEfX19LF261MMAkGCpVCpOOOGEuOKKK6JNmzbNbv07wt9vnXPOOX/xNAAAwMcjAAYAIGc89NBDS4YNG7a8X79+xza3EDg/Pz8OPvjg6NWrV8yfPz8aGho8EAAJU1JSEpdffnmccMIJkZ+f3+zWn8lkGp944olvffazn53maQAAgI9PAAwAQE556KGHlo4cOXJdnz59RqWa252ZEdG1a9cYNmxYLFu2LCorKz0QAAnRt2/fuO6662K//fZrluvPZDLpp59++rvnnHPO054GAAD4ZATAAADknD/96U+LDj300KX7779/s7sOOiKiuLg4jjzyyCgpKYk333wz0um0hwIgSxUUFMRnP/vZuPDCC6OkpKRZ9iCdTjc88sgjt5x//vnTPREAAPDJCYABAMhJDz/88NId3wQelUqlmt09mqlUKvr06RMHH3xwLFy4MLZt2+ahAMgynTt3jrFjx8bQoUOjGV5aERH/CH+feOKJ2y+88MLnPBEAALBrCIABAMhZDz300JIePXq8NmjQoGPz8vJaNMcetG3bNkaNGhVNTU2xZMkSDwVAFkilUjF69Oi48soro0OHDs22D01NTdt++9vf/stll132oqcCAAB2HQEwAAA5bdKkSeXdu3efM3jw4GYbAufn58eAAQOiV69esWDBgti+fbsHA2Avad26dVx66aVx/PHHR35+frPtQ2NjY/WvfvWrf7nuuute81QAAMCuJQAGACDnTZ48eW1jY+OMI4444uiCgoKS5tqHrl27xqhRo2Lbtm2xcuVKDwbAHpRKpWLUqFExduzY6NWrV7PuRX19/fo77rjjK9/61rcWejIAAGDXEwADANAsPP/881UbNmx45rjjjjuqsLCwrLn2obCwMAYNGhT77bdfLF68OGpraz0cALtZ+/bt44orrogTTzwxCgub9/uU2tralTfffPPVP/nJT1Z7MgAAYPcQAAMA0Gz87W9/27p27doZJ5xwwsjCwsK2zbkXnTp1ipEjR0Z1dbXTwAC70ciRI+Pqq6+OHj16NPte1NTULL/hhhuu/e1vf7vOkwEAALuPABgAgGbltdde2zpv3rynTznllKFFRUWdmnMvCgsL49BDD4399tsvFi1a5DQwwC709qnfk08+udmf+o2I2Lx587yLL774unHjxm30dAAAwO71fgFwat9zYsTOftC4LmLjq610DwCAxOrVq1fhs88++69du3Y9QTciGhoaYurUqTF58uRobGzUEICPqaCgIE499dQYPXq04HeH8vLyp4499tjvrly5skE3AABg9+swrDYKuuz8ZwJgAAByWuvWrfNeeumlm/fdd9+zdeMfVq9eHffff38sWbJEMwA+ov322y8uuugi1z2/w8KFC38/fPjwnzY0NGR0AwAA9gwBMAAAzd7zzz9/8aGHHnp1RKR0IyKTycTMmTPjz3/+c9TV1WkIwAcoKSmJ8847L0aMGBGplL9Kdki//PLL9xx77LEPagUAAOxZ7xcA+wYwAADNwn333Tfn+OOP39yrV6/DQwgcqVQqevfuHcOHD49169ZFRUWFhwTgPRxyyCExduzY6N+/v/B3h0wm0/jMM8/828knnzxONwAAYM97v28AC4ABAGg2fve7370xePDgJf369Ts6lUrl60hEcXFxjBgxInr06BFLly6N2tpaTQHYoUOHDvGFL3whzjzzzCguLtaQHZqammoeeOCBWz73uc9N1w0AANg7BMAAALDDww8/vKygoOC54cOHH1FQUFCqI//QrVu3OO6446K0tDQWL14cTU1NmgI0Wy1btoxzzjknLr300ujevbuGvENtbe2K22677arbbrvtDd0AAIC9RwAMAADv8Oyzz25avHjx0yeddNKQoqKiTjryD3l5edGnT58YOXJkbN26NVatWqUpQLNz+OGHx1e+8pUYMGBA5OXlacg7VFVV/e3CCy+8/oEHHvDdAAAA2MsEwAAA8C7z58+vefbZZ58+44wz+hcXF/fSkf/RsmXLGDJkSOyzzz6xdOnSqKmp0RQg53Xs2DG++MUvximnnBItW7bUkHdZt27dMyeffPI3Xn755W26AQAAe9/7BcCpfc+JETv7QeO6iI2vttI9AAByWmFhYer555//0sEHH3y5bvxfTU1N8fzzz8f48eOjurpaQ4Cc07p16zjzzDPjyCOPdOJ35zJ///vff3rMMcfc39DQkNEOAADIDh2G1UZBl53/TAAMAAARMWnSpM8cc8wxt6RSKdfg7ERNTU1MmTIlpk2bFg0NDRoCJF5hYWGccsopcdJJJ0VRUZGG7EQ6na6fOnXqd88555y/6AYAAGSX9wuAXQENAAAR8Yc//GHhfvvt98aAAQOOysvLkwS8S2FhYQwYMCCGDh0amzZtinXr1mkKkFiDBw+Oq666KoYOHRoFBQUashONjY1Vv//972/5whe+MEs3AAAg+/gGMAAAfAgTJkxYXV1dPf3II4/8VGFhYTsd+b9KS0vjsMMOi/79+8eaNWti8+bNmgIkRu/evePyyy+PU045JUpLSzXkPWzdunXxLbfccs33vve9hboBAADZyTeAAQDgI+jTp0+LJ5988us9evQ4TTfe3/z58+ORRx6JlStXagaQtXr16hXnnHNODBgwQDM+wKpVq5444YQTfrBy5Ur3/QMAQBbzDWAAAPgYnnnmmfOHDx9+fSqVytON95bJZGL27Nkxbty4qKio0BAga3Tu3DnOOuusGDp0aKRSKQ15/z/Lm2bNmvXDk08++THdAACA7OcbwAAA8DH85je/eX3//fd//cADDzzSd4HfWyqViu7du8cxxxwT7dq1i2XLlkV9fb3GAHtN27Zt49xzz42LL744evToIfz9AI2NjdUPPvjgLZ/97Gf/ohsAAJAMvgEMAAAf0/jx41dFxPOHHXbYiMLCwjIdeW95eXnRu3fvOOqoo6KgoCBWrlwZjY2NGgPsMcXFxXHKKafEl770pejbt2/k5bnA4YPU1tau+MEPfnD9LbfcMk83AAAgQf/94xvAAADwyQwePLjVo48++s1u3bqdpBsfTn19fTzzzDMxderU2LZtm4YAu01ZWVmceuqpceSRR0ZRkQsbPqyVK1c+/ulPf/pHixcvdm0DAAAkjG8AAwDALvLkk0+edeSRR96USqVcl/MhCYKB3eXtE7/HHnus4PcjyGQyDbNmzfoP3/sFAIDk8g1gAADYRX7/+98v6NGjx2uHHHLIyPz8fL8x+SEUFBREv3794qijjoq8vLxYtWqVq6GBT6Rly5ZxwgknxBVXXBEHHXRQFBQUaMqH1NDQsOG3v/3t1z7/+c8/oxsAAJBcroAGAIBd7Lzzzut4991339m2bdvBuvHR1NTUxLPPPhvTpk2LLVu2aAjwoZWVlcXxxx8fxxxzTBQXF2vIR1RVVfW3a6+99vZHHnlkg24AAECyuQIaAAB2g06dOhVMmzZtbN++fT8XESkd+WgaGhri+eefjyeffDI2bJBFAO/7522cdNJJccQRR0RhodvKPobMokWL/nTsscf+pLKyskk7AAAg+QTAAACwG/3hD38Ydfrpp99WUFDQRjc+unQ6Ha+++mpMnTo1Vq5cqSHAP/Xq1StOOeWUGDp0aOTl5WnIx9DY2Fg1YcKEOy666KKZugEAALlDAAwAALvZaaed1vbee+/9docOHUbqxse3fPnymDZtWrz88suRTqc1BJqhvLy8OOyww+L444+P3r17a8gnsHHjxue//OUvf3fSpElVugEAALlFAAwAAHtAYWFh6qmnnjpv+PDh16RSKXeUfgIbNmyIGTNmxHPPPRc1NTUaAs1AcXFxjBo1Ko4++ujo2LGjhnwCmUym4ZVXXvl/J5100kMNDQ0ZHQEAgNzzfgFwftuDoufOfpDeFlFb7p0VAAB8WOl0On7zm9+8Xlpa+uLgwYM/VVhYWKYrH09xcXEMGDAgjj322GjTpk2sXbs2amtrNQZyUIcOHeKMM86ISy+9NAYOHBjFxcWa8gnU1tau+slPfnLjxRdf/IybFAAAIHcVd2+MvNKd/8wJYAAA2A1OPPHENvfdd9+tnTp1Olo3PrnGxsb429/+Fs8++2wsWrRIQyAH9OvXL44++ugYNmxYFBQUaMguUFFR8cwXv/jFf5s+ffoW3QAAgNzmCmgAANhLHn744RNGjx799YKCgta6sWusX78+Zs6cGc8//3xUV1drCCRIaWlpHHnkkXHUUUdF586dNWQXaWxs3DJ16tS7PvvZz/5FNwAAoHkQAAMAwF50ySWXdP3+97//rXbt2g3VjV2nsbExXnvttXjuuedi/vz5GgJZbMCAATFq1KgYPHiw0767WFVV1atf//rXv/e73/1urW4AAEDzIQAGAIC9rF27dvlTp0699OCDD740lUrl68iutXz58nj++efj5ZdfjpqaGg2BLFBSUhLDhw+PI444Inr37q0hu1gmk2mcN2/efSeeeOJvq6urfewXAACaGQEwAABkia9//ev73Xjjjf9aWlraXzd2vXQ6HW+++WY899xz8dprr0VjY6OmwB5UUFAQgwcPjlGjRsUBBxwQeXl5mrIbVFdXL/zP//zPf/3BD36wRDcAAKB5EgADAEAWOfjgg1v9+c9/vrZ3795jIiKlI7tHZWVlvPjii/HCCy/EunXrNAR2o65du8bIkSPj8MMPj7Zt22rI7pNZunTpn88888z/t3jx4nrtAACA5ksADAAAWejuu+8eePHFF9/WqlUrd6PuZuXl5fHqq6/GSy+9FOvXr9cQ2AU6d+4cI0aMiGHDhkW3bt00ZDerqalZ9tvf/vbOm266aa5uAAAAAmAAAMhS/fr1K3r44Ycv79+//4WpVMpdqXvA8uXL46WXXoqXX345qqurNQQ+grKyshg+fHiMGDHCd333kEwmk164cOEfzj777F8sXbp0u44AAAARAmAAAMh6P/3pT4d97nOf+2bLli176Mae0dDQEHPnzo2//vWvMXfu3Ni+Xa4CO9OyZcsYNGhQDBs2LA455JAoKCjQlD2ktrZ21R//+Mc7rr322r/rBgAA8E4CYAAASIA+ffq0ePTRR69wGnjPS6fTsXTp0nj11VedDIaIaNu2bQwbNiyGDRsWffr0ibw8fyTtSZlMpuG11177+ZlnnvmnioqKRh0BAADeTQAMAAAJ8uMf//jQCy644JutWrXaRzf2vLdPBs+ePTvmzp0bdXV1mkKzUFZWFoMHD45hw4ZF//79Iz8/X1P2gpqammX333//nTfccINv/QIAAO9JAAwAAAnTrl27/HHjxp37qU996qq8vDwb870kk8nEihUrYu7cuTFnzpxYsWJFZDIZjSEnpFKp6Nu3bwwbNiwGDRoUHTt21JS9qKmpqfbVV1/92ZgxY/5cWVnZpCMAAMD7EQADAEBCffnLX+5x++23f7V9+/aH68bet2XLlnjjjTdizpw5MW/evKivr9cUEqVly5Zx8MEHx6BBg+KQQw6J0tJSTckCGzdufPG73/3uv//iF79YoxsAAMCHIQAGAIAEKywsTE2cOPGMkSNHXlNQUNBaR7JDXV1dvPnmm/HGG2/EG2+8EevXr9cUslKXLl3ioIMOioMOOigOOOCAKCoq0pQs0djYuGXmzJk/PvPMMyc2NDS4XgAAAPjQBMAAAJADjjzyyNY/+9nPrujbt++5EZGnI9mluro6Fi5cGPPnz4958+ZFZWWlprBXtGvXLg455JAYMGBA9O/fP1q39nsjWSj91ltv/fmqq676xaxZs6q1AwAA+KgEwAAAkEN++ctfjhgzZsyNrVq16q0b2SmdTsfKlStj0aJFsXDhwli8eHFs27ZNY9gtSkpKol+/ftG/f//Yf//9o1evXpGX53dEslVNTc3yRx999EdXXnnlK7oBAAB8XAJgAADIMd26dSt8+OGHPzd48ODL8vPzbdyzXCaTiTVr1sTChQtj0aJFsWjRotiyZYvG8LGUlZVF//79/xn6du/ePVKplMZkuaampprXXnvtV2PGjHmgoqKiUUcAAIBPQgAMAAA56rjjjiv7r//6r8tdC508mzdvjuXLl8eKFSti+fLlsXjx4qipqdEY/pfi4uLo169f9O7dO/bZZ5/Yd999o6ysTGMSJJPJpJcsWfLn66677pfTp0/3mx8AAMAuIQAGAIAc99Of/nTIueeee3NpaWlf3UimxsbGWLlyZSxdujSWLVsWy5cvj3Xr1kUmk9GcZiKVSkWXLl1in332iT59+kSfPn2iV69eUVBQoDkJtXXr1sUPPvjgj6699tq/6wYAALArCYABAKAZaNeuXf64cePOGTp06BUFBQWtdST56uvrY+XKlf88KbxixYpYu3ZtpNNpzUm4vLy86Nq1a+yzzz7//KdXr17RsmVLzckBjY2NW/7617/+4pxzznm0srKySUcAAIBdTQAMAADNyIknntjmnnvuuXzfffcdk0qlHB3MMdu3b481a9bEmjVrYu3atbF27dooLy+PDRs2CIazUF5eXnTs2DG6desWXbt2jW7dukW3bt2iR48eUVhYqEE5JpPJNC5ZsuRR1z0DAAC7mwAYAACaoa9+9av7Xnfdddd16NDhCN3IfY2Njf8MhNetWxfr1q2LioqKWLduXWzbtk2DdrPS0tLo3LnzP//p0qVLdO3aNbp27eoK52Ziw4YNM//rv/7rxz/60Y+W6wYAALC7CYABAKAZ++UvfznirLPOuq64uNj3gZupmpqaWL9+/T//qaioiMrKyqisrIxNmzZFY2OjJn2AgoKCaN++fbRr1y7at28fHTt2jC5dukSnTp2ic+fOUVxcrEnN1NatW98aP378PVdcccXLugEAAOwpAmAAAGjm2rVrl//ggw+eOWLEiCsLCwvb6gjvtHnz5n+GwZs2bYrKysqorq6OLVu2xJYtW6K6ujqqq6sjk8nk3NpTqVS0bt06WrduHWVlZdGmTZsoLS39X2Fvu3btok2bNh4U/peGhobKl1566efnnHPO+OrqavevAwAAe5QAGAAAiIiIoUOHFt97770XHHjggRfk5+c7ssiHlk6n/xkEV1dXR01Nzfv+k8lkora2NtLpdNTX10dTU1PU1dXt0u8U5+XlRcuWLSM/Pz+KiooiLy8vWrVqFalUKoqLi3f6T0lJSbRq1eqfgW9paWnk5eUZMB9aU1NTzYIFC/745S9/+Y+zZ8+u0REAAGBvEAADAAD/y2mnndb2rrvuurRPnz5n5+XlFeoIe9LbgfDbtm/f/r7XUBcUFESLFi3++b/fDnxhT8pkMg1LliwZd8stt/xq0qRJVToCAADsTQJgAABgp0477bS2d95554X777//5wTBAP9XJpNpWLhw4QO33nrrHwS/AABAtni/ADi/7UHRc2c/SG+LqC33/gcAAHLZokWL6u69995X0un0swcddFCnkpKS3roC8A8VFRUz/7//7/+77aKLLpq6aNGiOh0BAACyRXH3xsgr3fnPBMAAAEDMnDmz8u67736qqalpWr9+/Ypbt27dN5VKpXQGaG4ymUx6zZo1U+65555/Peeccx6cOXNmpa4AAADZRgAMAAB8KDNnzqz88Y9//Gw6nZ4uCAaak7eD37vvvvtfzz///McEvwAAQDYTAAMAAB+JIBhoLgS/AABAEgmAAQCAj+XtILisrOyFvn37diwuLu4VEYJgIBdkKioqnrv33nu/PWbMmEcEvwAAQJK8XwCc2vecGLGzHzSui9j4aivdAwAA/unqq6/u8ZWvfOX8Pn36nJWXl9dCR4CkSafT9UuXLh3/X//1Xw/84he/WKMjAABAEnUYVhsFXXb+MwEwAADwkZ1xxhntb7/99rMPPPDA8/Pz81vrCJDtmpqaqhcsWPDgd77znUcmTpzotC8AAJBoAmAAAGC3GD58eMkPf/jDzwwePPjioqKijjoCZJv6+voNr7322u9vvPHGx2fPnl2jIwAAQC4QAAMAALvV0KFDi++5556zDjnkkPOKioq66giwt9XV1a19/fXXH7z++uvHC34BAIBcIwAGAAD2iFatWuXdc889w0455ZTzO3bseJSOAHtYZsOGDbOmTJny4PXXX/9qbW1tWksAAIBcJAAGAAD2uH/913/tf/7555/dq1ev0/Ly8lroCLC7pNPp+pUrV05+4IEHHvnOd76zSEcAAIBcJwAGAAD2mjPOOKP97bfffvYBBxzw2YKCgjY6AuwqjY2NVW+++eafv/e97z06YcKETToCAAA0FwJgAABgrxs+fHjJ97///dGDBg0aU1paur+OAB9XdXX1wtdee+3Rr371q1Nfe+21Wh0BAACaGwEwAACQVb761a/ue8EFF3y6b9++ZxUUFLTWEeCDNDY2bnnrrbfG/+EPf5j4ox/9aLmOAAAAzZkAGAAAyEpDhw4t/sEPfnDy4MGDz27dunV/HQHerbq6+s2XX375weuuu+7ppUuXbtcRAAAAATAAAJDlCgsLU3ffffeQ0aNHn9G1a9fj8vLyinQFmq90Ol1XXl4+bcqUKROuvfbav+sIAADA/yYABgAAEqNPnz4t/v3f/33UyJEjz2rfvv2nIiKlK9AsZDZt2vTXF1544bGvfe1rzzntCwAA8N4EwAAAQCJddNFFXa6++uqTDzzwwLNbtmzZTUcg99TV1a1ZsGDBuJ/+9KdP3n///et0BAAA4IMJgAEAgETr1q1b4d13333k4YcffmqHDh2OyMvLK9QVSK50Ot2wcePGWbNmzZp8/fXXz6qoqGjUFQAAgA9PAAwAAOSMo48+uvWtt956/CGHHHJKu3btBkdEnq5AIqQrKytfmzdv3uQ777xz+owZM6q1BAAA4OMRAAMAADnpuOOOK/vGN75x/CGHHHJa27ZtB4bvBUO2yVRVVc2dN2/epO9///vTpk+fvkVLAAAAPjkBMAAAkPNuu+22vmedddZJffr0Oa5Vq1a9dQT2ntra2uXLly+f/uijjz51xx13vKUjAAAAu5YAGAAAaFa+9KUvdbv44ouP7t+//wlOBsMekamqqpq7cOHCv/z+97+fcd9995VrCQAAwO4jAAYAAJqtSy65pOtll112jDAYdrl0VVXVvIULF/7lV7/61bO/+93v1moJAADAniEABgAAiIirr766x/nnnz9q//33P7JNmzZDUqlUga7Ah5fJZBoqKyv/vnjx4uf+9Kc/zbr33ntX6woAAMCeJwAGAAB4l379+hV97WtfGzRy5MhRPXv2PLaoqKizrsD/VV9fv37VqlXPvPDCC8/9+7//+5zFixfX6woAAMDeJQAGAAB4H61bt8678847Bx599NFHde/efURpaen+4apomq/M1q1bF69Zs+bF5557btY3v/nNOdXV1WltAQAAyB4CYAAAgI9g8ODBrcaOHXvI8OHDD+vevfvw1q1bHxACYXJXprq6+s01a9a88sorr7z8k5/8ZN5rr71Wqy0AAADZSwAMAADwCVx//fX7nHHGGYf169dvePv27Yfm5+e31hWSrLGxsXrjxo2vvvXWWy+PHz/+lR//+McrdQUAACA5BMAAAAC70Je//OUe55xzzvA+ffoM7tix45CioqKuukI2q6+vX7t27doXFy9ePGfixImv3Xvvvat1BQAAILkEwAAAALvRl7/85R6f+cxnBvfr129Qly5dDm/ZsqVAmL2qrq5u7bp16wS+AAAAOUoADAAAsIe0atUq75prrtnn2GOPPXi//fY7uH379oeUlpb2TaVS+brDbpKuqalZtnHjxnlvvfXW3GeffXbef/3Xfy2vra1Naw0AAEBuEgADAADsRQceeGDLq6+++oAhQ4Yc3LNnz4Pbtm17sGuj+biampqqq6qqXi8vL583Z86ceb/85S/nvfjii1t1BgAAoPkQAAMAAGSZoUOHFn/xi1/cf9CgQQf26NHjwHbt2h3YqlWr3qlUKk932CFdU1OzvLKycsHq1asXzJkzZ8Gf//znJTNmzKjWGgAAgOZNAAwAAJAAxx13XNkFF1xw4MEHH3xA165dDywtLd23pKRkn1QqVag7uS2TyTRs27ZtRXV19dJ169YtfOONNxZOmDBh4YQJEzbpDgAAAO8mAAYAAEiw8847r+OJJ57Yp3///vt16dKlT5s2bfZr3bp1v/z8/GLdSZampqaa6urqxZs3b16ybt26pQsXLlzy9NNPL33ooYc26A4AAAAflgAYAAAgx7Rr1y7/kksu6TFkyJCe++67b89OnTr1Kisr61VcXNyzZcuW3VKpVL4u7R2ZTKaprq6uvKamZtWWLVtWVlRUrFy6dOnK2bNnr7r//vvXVFZWNukSAAAAn4QAGAAAoBnp1KlTwec+97luQ4cO7bnPPvv0aNeuXafWrVt3Li4u7tqyZcvORUVFnfLy8lro1MeTTqe319fXr6+rq6uoqalZW11dvb6ysnL9ihUrVr/66qurHnzwwbUVFRWNOgUAAMDuIgAGAADgfznjjDPaH3bYYZ369OnTuUuXLp3Kysral5SUtC0uLu5YVFTUrqioqG2LFi065OfnlzaXnjQ1NW3dvn37xvr6+qr6+vrKmpqaDdu2bavasmXLpnXr1lUsXbp0/Ysvvrh+4sSJlZ4gAAAA9iYBMAAAAB9Lr169CkeNGtXuoIMOatexY8ey9u3bl7Zp06Z1SUlJWXFxcetWrVq1btGiRVlRUVHrwsLC1hGRX1hYWBoR+QUFBSV5eXkFeXl5u/0/LtPpdG06nW5sbGzcFhFNDQ0NW3f83+r6+vrq7du3b6mtra2uqamp3rZtW/XmzZurN23aVL1hw4YtCxYsqJo1a1bl0qVLt5s4AAAASSAABgAAYK/q169fUffu3Vvss88+xSUlJQVv//8LCwtT3bp1+8BTxuXl5VsbGhoyb//vbdu2Na5YsaJmzZo12xcvXlyvwwAAADQn7xcAF2gPAAAAu9vixYvrdwS11boBAAAAu0+eFgAAAAAAAADkBgEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4o0AIAAAAAAACA5GhoLIyCxoaIiEilIpNXGE1v/0wADAAAAAAAAJAghQUN/0x6MxGppvT/5L6ugAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAIb/v5272ZHiusM4/FZ1NUkz9sQwOF4EyZJtpJCwysa5jSy4n1xPEqRIuQFvvfGSgIwBOzGRQAQERnx0d1UW0cgWGvKxsMGvnmfVdc7/1OJsf+oCAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoMY3JP//9K8My551lzpAk293a7QAAAAAAAAD8iIw3r+SL7TpPxuSt4/ibJJuz20QDBgAAAAAAAHhzrJPp6NvHYcyyjLl7dJTPbl/Jp6sPLufSsM+5ec7q5YOrF0OeP/SVaAAAAAAAAIA3weH7u6zfm79dWDIMSw6225w785vsx3XyzasOby5ssz69c4sAAAAAAAAAr9n69C6bC9sT93a7rKdnORin5Otxynzi1JQcfiwCAwAAAAAAALxO69O7HH68TaaT98cp85R8vbp3Nfszv8q0LHn7xMF1sjk/ZzUPmZ/MmWefhAYAAAAAAAD4oayPdjn7223Gn7x6ZrXPnetX8mBKkpv3cufDd/Pufn5FL56SzcVtNheT3dNt8tQlAwAAAAAAAHyv1sm0ySv/9XtsNWZ3I/lHkgzHi7/4XY7WYz5yiwAAAAAAAAA/Ivtcv/3nPEyS1fHa42t5+vNLyX7JoRsCAAAAAAAAePPt1/nbV3/KvePn1Xc371/NYxEYAAAAAAAA4M0yTHk2rvNo2WdzvHZqzN9v/SF3vju3evng/at5fPDLPDu1yuGyZHSVAAAAAAAAAK/XOGe4ueSvZ4e8M8xZbVe5ceuPufvy3Oqkw4+v5emDX+fuuTlLhhwsEYIBAAAAAAAAXpclGR8OuXP0TR4cPM/9z/+SRyfNDf/1TZezOp/87KdjzizJZkhO7edMy/w/nAUAAAAAAADg/zaMWcZkP8/ZLsmLacr2/MV8+cnvs/tP5/4FmLjAq1ifcioAAAAASUVORK5CYII=";function Ar(e,t,n){return typeof e=="string"&&!isNaN(Number(e))&&(e=Number(e)),typeof e=="number"&&e<100?Br(e):typeof e=="number"&&e>=100?e:typeof e=="string"&&e.includes("%")?Math.round(t&&t==="X"?parseFloat(e)/100*n.width:t&&t==="Y"?parseFloat(e)/100*n.height:parseFloat(e)/100*n.width):0}function o1(e){return e.replace(/[xy]/g,function(t){const n=Math.random()*16|0;return(t==="x"?n:n&3|8).toString(16)})}function Zn(e){return typeof e>"u"||e==null?"":e.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Br(e){return typeof e=="number"&&e>100?e:(typeof e=="string"&&(e=Number(e.replace(/in*/gi,""))),Math.round(tr*e))}function Wn(e){const t=Number(e)||0;return isNaN(t)?0:Math.round(t*jy)}function _f(e){return e=e||0,Math.round((e>360?e-360:e)*6e4)}function tT(e){const t=e.toString(16);return t.length===1?"0"+t:t}function nT(e,t,n){return(tT(e)+tT(t)+tT(n)).toUpperCase()}function Kr(e,t){let n=(e||"").replace("#","");!eT.test(n)&&n!==us.background1&&n!==us.background2&&n!==us.text1&&n!==us.text2&&n!==us.accent1&&n!==us.accent2&&n!==us.accent3&&n!==us.accent4&&n!==us.accent5&&n!==us.accent6&&(console.warn(`"${n}" is not a valid scheme color or hex RGB! "${zo}" used instead. Only provide 6-digit RGB or 'pptx.SchemeColor' values!`),n=zo);const r=eT.test(n)?"srgbClr":"schemeClr",i='val="'+(eT.test(n)?n.toUpperCase():n)+'"';return t?`<a:${r} ${i}>${t}</a:${r}>`:`<a:${r} ${i}/>`}function KPe(e,t){let n="";const r=Object.assign(Object.assign({},t),e),i=Math.round(r.size*jy),a=r.color,o=Math.round(r.opacity*1e5);return n+=`<a:glow rad="${i}">`,n+=Kr(a,`<a:alpha val="${o}"/>`),n+="</a:glow>",n}function ps(e){let t="solid",n="",r="",i="";if(e)switch(typeof e=="string"?n=e:(e.type&&(t=e.type),e.color&&(n=e.color),e.alpha&&(r+=`<a:alpha val="${Math.round((100-e.alpha)*1e3)}"/>`),e.transparency&&(r+=`<a:alpha val="${Math.round((100-e.transparency)*1e3)}"/>`)),t){case"solid":i+=`<a:solidFill>${Kr(n,r)}</a:solidFill>`;break;default:i+="";break}return i}function jc(e){return e._rels.length+e._relsChart.length+e._relsMedia.length+1}function cR(e){if(!(!e||typeof e!="object"))return e.type!=="outer"&&e.type!=="inner"&&e.type!=="none"&&(console.warn("Warning: shadow.type options are `outer`, `inner` or `none`."),e.type="outer"),e.angle&&((isNaN(Number(e.angle))||e.angle<0||e.angle>359)&&(console.warn("Warning: shadow.angle can only be 0-359"),e.angle=270),e.angle=Math.round(Number(e.angle))),e.opacity&&((isNaN(Number(e.opacity))||e.opacity<0||e.opacity>1)&&(console.warn("Warning: shadow.opacity can only be 0-1"),e.opacity=.75),e.opacity=Number(e.opacity)),e.color&&e.color.startsWith("#")&&(console.warn('Warning: shadow.color should not include hash (#) character, , e.g. "FF0000"'),e.color=e.color.replace("#","")),e}function $Pe(e,t,n){var r,i;const a=2.3+(!((r=e.options)===null||r===void 0)&&r.autoPageCharWeight?e.options.autoPageCharWeight:0),o=Math.floor(t/jy*tr)/((!((i=e.options)===null||i===void 0)&&i.fontSize?e.options.fontSize:Xs)/a),s=[];let l=[];const c=[],u=[];e.text&&e.text.toString().trim().length===0?l.push({_type:$n.tablecell,text:" "}):typeof e.text=="number"||typeof e.text=="string"?l.push({_type:$n.tablecell,text:(e.text||"").toString().trim()}):Array.isArray(e.text)&&(l=e.text);let d=[];return l.forEach(h=>{var f;typeof h.text=="string"&&(h.text.split(`-`).length>1?h.text.split(`-`).forEach(g=>{d.push({_type:$n.tablecell,text:g,options:Object.assign(Object.assign({},h.options),{breakLine:!0})})}):d.push({_type:$n.tablecell,text:h.text.trim(),options:h.options}),!((f=h.options)===null||f===void 0)&&f.breakLine&&(c.push(d),d=[])),d.length>0&&(c.push(d),d=[])}),c.forEach(h=>{h.forEach(f=>{const g=[],v=String(f.text).split(" ");v.forEach((A,w)=>{const S=Object.assign({},f.options);S!=null&&S.breakLine&&(S.breakLine=w+1===v.length),g.push({_type:$n.tablecell,text:A+(w+1<v.length?" ":""),options:S})}),u.push(g)})}),u.forEach(h=>{let f=[],g="";h.forEach(y=>{g.length+y.text.length>o&&(s.push(f),f=[],g=""),f.push(y),g+=y.text.toString()}),f.length>0&&s.push(f)}),s}function oY(e=[],t={},n,r){let i=ly,a=tr*1,o=tr*1,s=0,l=0;const c=[],u=Ar(t.x,"X",n),d=Ar(t.y,"Y",n),h=Ar(t.w,"X",n),f=Ar(t.h,"Y",n);let g=h;function y(){let A=0;c.length===0&&(A=d||Br(i[0])),c.length>0&&(A=Br(t.autoPageSlideStartY||t.newSlideStartY||i[0])),o=(f||n.height)-A-Br(i[2]),c.length>1&&(typeof t.autoPageSlideStartY=="number"?o=(f||n.height)-Br(t.autoPageSlideStartY+i[2]):typeof t.newSlideStartY=="number"?o=(f||n.height)-Br(t.newSlideStartY+i[2]):d&&(o=(f||n.height)-Br((d/tr<i[0]?d/tr:i[0])+i[2]),o<f&&(o=f)))}if(t.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- TABLE PROPS --------------------------------------------------------|"),console.log(`| presLayout.width ................................ = ${(n.width/tr).toFixed(1)}`),console.log(`| presLayout.height ............................... = ${(n.height/tr).toFixed(1)}`),console.log(`| tableProps.x .................................... = ${typeof t.x=="number"?(t.x/tr).toFixed(1):t.x}`),console.log(`| tableProps.y .................................... = ${typeof t.y=="number"?(t.y/tr).toFixed(1):t.y}`),console.log(`| tableProps.w .................................... = ${typeof t.w=="number"?(t.w/tr).toFixed(1):t.w}`),console.log(`| tableProps.h .................................... = ${typeof t.h=="number"?(t.h/tr).toFixed(1):t.h}`),console.log(`| tableProps.slideMargin .......................... = ${t.slideMargin?String(t.slideMargin):""}`),console.log(`| tableProps.margin ............................... = ${String(t.margin)}`),console.log(`| tableProps.colW ................................. = ${String(t.colW)}`),console.log(`| tableProps.autoPageSlideStartY .................. = ${t.autoPageSlideStartY}`),console.log(`| tableProps.autoPageCharWeight ................... = ${t.autoPageCharWeight}`),console.log("|-- CALCULATIONS -------------------------------------------------------|"),console.log(`| tablePropX ...................................... = ${u/tr}`),console.log(`| tablePropY ...................................... = ${d/tr}`),console.log(`| tablePropW ...................................... = ${h/tr}`),console.log(`| tablePropH ...................................... = ${f/tr}`),console.log(`| tableCalcW ...................................... = ${g/tr}`)),!t.slideMargin&&t.slideMargin!==0&&(t.slideMargin=ly[0]),r&&typeof r._margin<"u"?Array.isArray(r._margin)?i=r._margin:isNaN(Number(r._margin))||(i=[Number(r._margin),Number(r._margin),Number(r._margin),Number(r._margin)]):(t.slideMargin||t.slideMargin===0)&&(Array.isArray(t.slideMargin)?i=t.slideMargin:isNaN(t.slideMargin)||(i=[t.slideMargin,t.slideMargin,t.slideMargin,t.slideMargin])),t.verbose&&console.log(`| arrInchMargins .................................. = [${i.join(", ")}]`),(e[0]||[]).forEach(w=>{w||(w={_type:$n.tablecell});const S=w.options||null;l+=Number(S!=null&&S.colspan?S.colspan:1)}),t.verbose&&console.log(`| numCols ......................................... = ${l}`),!h&&t.colW&&(g=Array.isArray(t.colW)?t.colW.reduce((A,w)=>A+w)*tr:t.colW*l||0,t.verbose&&console.log(`| tableCalcW ...................................... = ${g/tr}`)),a=g||Br((u?u/tr:i[1])+i[3]),t.verbose&&console.log(`| emuSlideTabW .................................... = ${(a/tr).toFixed(1)}`),!t.colW||!Array.isArray(t.colW))if(t.colW&&!isNaN(Number(t.colW))){const A=[];(e[0]||[]).forEach(()=>A.push(t.colW)),t.colW=[],A.forEach(S=>{Array.isArray(t.colW)&&t.colW.push(S)})}else{t.colW=[];for(let A=0;A<l;A++)t.colW.push(a/tr/l)}let v={rows:[]};return e.forEach((A,w)=>{const S=[];let _=0,E=0,T=[];A.forEach(R=>{var z,B,W,P;T.push({_type:$n.tablecell,text:[],options:R.options}),R.options.margin&&R.options.margin[0]>=1?(!((z=R.options)===null||z===void 0)&&z.margin&&R.options.margin[0]&&Wn(R.options.margin[0])>_?_=Wn(R.options.margin[0]):t!=null&&t.margin&&t.margin[0]&&Wn(t.margin[0])>_&&(_=Wn(t.margin[0])),!((B=R.options)===null||B===void 0)&&B.margin&&R.options.margin[2]&&Wn(R.options.margin[2])>E?E=Wn(R.options.margin[2]):t!=null&&t.margin&&t.margin[2]&&Wn(t.margin[2])>E&&(E=Wn(t.margin[2]))):(!((W=R.options)===null||W===void 0)&&W.margin&&R.options.margin[0]&&Br(R.options.margin[0])>_?_=Br(R.options.margin[0]):t!=null&&t.margin&&t.margin[0]&&Br(t.margin[0])>_&&(_=Br(t.margin[0])),!((P=R.options)===null||P===void 0)&&P.margin&&R.options.margin[2]&&Br(R.options.margin[2])>E?E=Br(R.options.margin[2]):t!=null&&t.margin&&t.margin[2]&&Br(t.margin[2])>E&&(E=Br(t.margin[2])))}),y(),s+=_+E,t.verbose&&w===0&&console.log(`| SLIDE [${c.length}]: emuSlideTabH ...... = ${(o/tr).toFixed(1)} `),A.forEach((R,z)=>{var B;const W={_type:$n.tablecell,_lines:null,_lineHeight:Br((!((B=R.options)===null||B===void 0)&&B.fontSize?R.options.fontSize:t.fontSize?t.fontSize:Xs)*(VPe+(t.autoPageLineWeight?t.autoPageLineWeight:0))/100),text:[],options:R.options};W.options.rowspan&&(W._lineHeight=0),W.options.autoPageCharWeight=t.autoPageCharWeight?t.autoPageCharWeight:null;let P=t.colW[z];R.options.colspan&&Array.isArray(t.colW)&&(P=t.colW.filter((Z,Q)=>Q>=z&&Q<Q+R.options.colspan).reduce((Z,Q)=>Z+Q)),W._lines=$Pe(R,P),S.push(W)}),t.verbose&&console.log(`-| SLIDE [${c.length}]: ROW [${w}]: START...`);let D=0,I=0,j=!1;for(;!j;){const R=S[D];let z=T[D];S.forEach(P=>{P._lineHeight>=I&&(I=P._lineHeight)}),s+I>o&&(t.verbose&&(console.log(`-|-----------------------------------------------------------------------|`),console.log(`|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => ${(s/tr).toFixed(2)} + ${(R._lineHeight/tr).toFixed(2)} > ${o/tr}`),console.log(`|-----------------------------------------------------------------------|--`)),T.length>0&&T.map(Z=>Z.text.length).reduce((Z,Q)=>Z+Q)>0&&v.rows.push(T),c.push(v),v={rows:[]},T=[],A.forEach(Z=>T.push({_type:$n.tablecell,text:[],options:Z.options})),y(),s+=_+E,t.verbose&&console.log(`| SLIDE [${c.length}]: emuSlideTabH ...... = ${(o/tr).toFixed(1)} `),s=0,(t.addHeaderToEach||t.autoPageRepeatHeader)&&t._arrObjTabHeadRows&&t._arrObjTabHeadRows.forEach(Z=>{const Q=[];let X=0;Z.forEach(q=>{Q.push(q),q._lineHeight>X&&(X=q._lineHeight)}),v.rows.push(Q),s+=X}),z=T[D]);const B=R._lines.shift();Array.isArray(z.text)&&(B?z.text=z.text.concat(B):z.text.length===0&&(z.text=z.text.concat({_type:$n.tablecell,text:""}))),D===S.length-1&&(s+=I),D=D<S.length-1?D+1:0,S.map(P=>P._lines.length).reduce((P,Z)=>P+Z)===0&&(j=!0)}T.length>0&&v.rows.push(T),t.verbose&&console.log(`- SLIDE [${c.length}]: ROW [${w}]: ...COMPLETE ...... emuTabCurrH = ${(s/tr).toFixed(2)} ( emuSlideTabH = ${(o/tr).toFixed(2)} )`)}),c.push(v),t.verbose&&(console.log(`-|================================================|`),console.log(`| FINAL: tableRowSlides.length = ${c.length}`),c.forEach(A=>console.log(A)),console.log(`|================================================|--`)),c}function YPe(e,t,n={},r){const i=n||{};i.slideMargin=i.slideMargin||i.slideMargin===0?i.slideMargin:.5;let a=i.w||e.presLayout.width;const o=[],s=[],l=[],c=[],u=[];let d=[.5,.5,.5,.5],h=0;if(!document.getElementById(t))throw new Error('tableToSlides: Table ID "'+t+'" does not exist!');r!=null&&r._margin?(Array.isArray(r._margin)?d=r._margin:isNaN(r._margin)||(d=[r._margin,r._margin,r._margin,r._margin]),i.slideMargin=d):i!=null&&i.slideMargin&&(Array.isArray(i.slideMargin)?d=i.slideMargin:isNaN(i.slideMargin)||(d=[i.slideMargin,i.slideMargin,i.slideMargin,i.slideMargin])),a=(i.w?Br(i.w):e.presLayout.width)-Br(d[1]+d[3]),i.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- `tableToSlides` ----------------------------------------------------|"),console.log(`| tableProps.h .................................... = ${i.h}`),console.log(`| tableProps.w .................................... = ${i.w}`),console.log(`| pptx.presLayout.width ........................... = ${(e.presLayout.width/tr).toFixed(1)}`),console.log(`| pptx.presLayout.height .......................... = ${(e.presLayout.height/tr).toFixed(1)}`),console.log(`| emuSlideTabW .................................... = ${(a/tr).toFixed(1)}`));let f=document.querySelectorAll(`#${t} tr:first-child th`);f.length===0&&(f=document.querySelectorAll(`#${t} tr:first-child td`)),f.forEach(y=>{const v=y;if(v.getAttribute("colspan"))for(let A=0;A<Number(v.getAttribute("colspan"));A++)u.push(Math.round(v.offsetWidth/Number(v.getAttribute("colspan"))));else u.push(v.offsetWidth)}),u.forEach(y=>{h+=y}),u.forEach((y,v)=>{const A=Number((Number(a)*(y/h*100)/100/tr).toFixed(2));let w=0;const S=document.querySelector(`#${t} thead tr:first-child th:nth-child(${v+1})`);S&&(w=Number(S.getAttribute("data-pptx-min-width")));const _=document.querySelector(`#${t} thead tr:first-child th:nth-child(${v+1})`);_&&(w=Number(_.getAttribute("data-pptx-width"))),c.push(w>A?w:A)}),i.verbose&&console.log(`| arrColW ......................................... = [${c.join(", ")}]`),["thead","tbody","tfoot"].forEach(y=>{document.querySelectorAll(`#${t} ${y} tr`).forEach(v=>{const A=v,w=[];switch(Array.from(A.cells).forEach(S=>{const _=window.getComputedStyle(S).getPropertyValue("color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");let E=window.getComputedStyle(S).getPropertyValue("background-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");(window.getComputedStyle(S).getPropertyValue("background-color")==="rgba(0, 0, 0, 0)"||window.getComputedStyle(S).getPropertyValue("transparent"))&&(E=["255","255","255"]);const T={align:null,bold:window.getComputedStyle(S).getPropertyValue("font-weight")==="bold"||Number(window.getComputedStyle(S).getPropertyValue("font-weight"))>=500,border:null,color:nT(Number(_[0]),Number(_[1]),Number(_[2])),fill:{color:nT(Number(E[0]),Number(E[1]),Number(E[2]))},fontFace:(window.getComputedStyle(S).getPropertyValue("font-family")||"").split(",")[0].replace(/"/g,"").replace("inherit","").replace("initial","")||null,fontSize:Number(window.getComputedStyle(S).getPropertyValue("font-size").replace(/[a-z]/gi,"")),margin:null,colspan:Number(S.getAttribute("colspan"))||null,rowspan:Number(S.getAttribute("rowspan"))||null,valign:null};if(["left","center","right","start","end"].includes(window.getComputedStyle(S).getPropertyValue("text-align"))){const D=window.getComputedStyle(S).getPropertyValue("text-align").replace("start","left").replace("end","right");T.align=D==="center"?"center":D==="left"?"left":D==="right"?"right":null}if(["top","middle","bottom"].includes(window.getComputedStyle(S).getPropertyValue("vertical-align"))){const D=window.getComputedStyle(S).getPropertyValue("vertical-align");T.valign=D==="top"?"top":D==="middle"?"middle":D==="bottom"?"bottom":null}window.getComputedStyle(S).getPropertyValue("padding-left")&&(T.margin=[0,0,0,0],["padding-top","padding-right","padding-bottom","padding-left"].forEach((I,j)=>{T.margin[j]=Math.round(Number(window.getComputedStyle(S).getPropertyValue(I).replace(/\D/gi,"")))})),(window.getComputedStyle(S).getPropertyValue("border-top-width")||window.getComputedStyle(S).getPropertyValue("border-right-width")||window.getComputedStyle(S).getPropertyValue("border-bottom-width")||window.getComputedStyle(S).getPropertyValue("border-left-width"))&&(T.border=[null,null,null,null],["top","right","bottom","left"].forEach((I,j)=>{const R=Math.round(Number(window.getComputedStyle(S).getPropertyValue("border-"+I+"-width").replace("px","")));let z=[];z=window.getComputedStyle(S).getPropertyValue("border-"+I+"-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");const B=nT(Number(z[0]),Number(z[1]),Number(z[2]));T.border[j]={pt:R,color:B}})),w.push({_type:$n.tablecell,text:S.innerText,options:T})}),y){case"thead":o.push(w);break;case"tbody":s.push(w);break;case"tfoot":l.push(w);break;default:console.log(`table parsing: unexpected table part: ${y}`);break}})}),i._arrObjTabHeadRows=o||null,i.colW=c,oY([...o,...s,...l],i,e.presLayout,r).forEach((y,v)=>{const A=e.addSlide({masterName:i.masterSlideName||null});v===0&&(i.y=i.y||d[0]),v>0&&(i.y=i.autoPageSlideStartY||i.newSlideStartY||d[0]),i.verbose&&console.log(`| opts.autoPageSlideStartY: ${i.autoPageSlideStartY} / arrInchMargins[0]: ${d[0]} => opts.y = ${i.y}`),A.addTable(y.rows,{x:i.x||d[3],y:i.y,w:Number(a)/tr,colW:c,autoPage:!1}),i.addImage&&(i.addImage.options=i.addImage.options||{},!i.addImage.image||!i.addImage.image.path&&!i.addImage.image.data?console.warn("Warning: tableToSlides.addImage requires either `path` or `data`"):A.addImage({path:i.addImage.image.path,data:i.addImage.image.data,x:i.addImage.options.x,y:i.addImage.options.y,w:i.addImage.options.w,h:i.addImage.options.h})),i.addShape&&A.addShape(i.addShape.shapeName,i.addShape.options||{}),i.addTable&&A.addTable(i.addTable.rows,i.addTable.options||{}),i.addText&&A.addText(i.addText.text,i.addText.options||{})})}let JPe=0;function QPe(e,t){e.bkgd&&(t.bkgd=e.bkgd),e.objects&&Array.isArray(e.objects)&&e.objects.length>0&&e.objects.forEach((n,r)=>{const i=Object.keys(n)[0],a=t;Pu[i]&&i==="chart"?sY(a,n[i].type,n[i].data,n[i].opts):Pu[i]&&i==="image"?lY(a,n[i]):Pu[i]&&i==="line"?aE(a,ud.LINE,n[i]):Pu[i]&&i==="rect"?aE(a,ud.RECTANGLE,n[i]):Pu[i]&&i==="text"?bA(a,[{text:n[i].text}],n[i].options,!1):Pu[i]&&i==="placeholder"&&(n[i].options.placeholder=n[i].options.name,delete n[i].options.name,n[i].options._placeholderType=n[i].options.type,delete n[i].options.type,n[i].options._placeholderIdx=100+r,bA(a,[{text:n[i].text}],n[i].options,!0))}),e.slideNumber&&typeof e.slideNumber=="object"&&(t._slideNumberProps=e.slideNumber)}function sY(e,t,n,r){var i;function a(d){!d||d.style==="none"||(d.size!==void 0&&(isNaN(Number(d.size))||d.size<=0)&&(console.warn("Warning: chart.gridLine.size must be greater than 0."),delete d.size),d.style&&!["solid","dash","dot"].includes(d.style)&&(console.warn("Warning: chart.gridLine.style options: `solid`, `dash`, `dot`."),delete d.style),d.cap&&!["flat","square","round"].includes(d.cap)&&(console.warn("Warning: chart.gridLine.cap options: `flat`, `square`, `round`."),delete d.cap))}const o=++JPe,s={_type:null,text:null,options:null,chartRid:null};let l=null,c=[];Array.isArray(t)?(t.forEach(d=>{c=c.concat(d.data)}),l=n||r):(c=n,l=r),c.forEach((d,h)=>{d._dataIndex=h,d.labels!==void 0&&!Array.isArray(d.labels[0])&&(d.labels=[d.labels])});const u=l&&typeof l=="object"?l:{};if(u._type=t,u.x=typeof u.x<"u"&&u.x!=null&&!isNaN(Number(u.x))?u.x:1,u.y=typeof u.y<"u"&&u.y!=null&&!isNaN(Number(u.y))?u.y:1,u.w=u.w||"50%",u.h=u.h||"50%",u.objectName=u.objectName?Zn(u.objectName):`Chart ${e._slideObjects.filter(d=>d._type===$n.chart).length}`,["bar","col"].includes(u.barDir||"")||(u.barDir="col"),u._type===Nt.AREA&&(["stacked","standard","percentStacked"].includes(u.barGrouping||"")||(u.barGrouping="standard")),u._type===Nt.BAR&&(["clustered","stacked","percentStacked"].includes(u.barGrouping||"")||(u.barGrouping="clustered")),u._type===Nt.BAR3D&&(["clustered","stacked","standard","percentStacked"].includes(u.barGrouping||"")||(u.barGrouping="standard")),!((i=u.barGrouping)===null||i===void 0)&&i.includes("tacked")&&(u.barGapWidthPct||(u.barGapWidthPct=50)),u.dataLabelPosition&&((u._type===Nt.AREA||u._type===Nt.BAR3D||u._type===Nt.DOUGHNUT||u._type===Nt.RADAR)&&delete u.dataLabelPosition,u._type===Nt.PIE&&(["bestFit","ctr","inEnd","outEnd"].includes(u.dataLabelPosition)||delete u.dataLabelPosition),(u._type===Nt.BUBBLE||u._type===Nt.BUBBLE3D||u._type===Nt.LINE||u._type===Nt.SCATTER)&&(["b","ctr","l","r","t"].includes(u.dataLabelPosition)||delete u.dataLabelPosition),u._type===Nt.BAR&&(["stacked","percentStacked"].includes(u.barGrouping||"")||["ctr","inBase","inEnd"].includes(u.dataLabelPosition)||delete u.dataLabelPosition,["clustered"].includes(u.barGrouping||"")||["ctr","inBase","inEnd","outEnd"].includes(u.dataLabelPosition)||delete u.dataLabelPosition)),u.dataLabelBkgrdColors=u.dataLabelBkgrdColors||!u.dataLabelBkgrdColors?u.dataLabelBkgrdColors:!1,["b","l","r","t","tr"].includes(u.legendPos||"")||(u.legendPos="r"),["cone","coneToMax","box","cylinder","pyramid","pyramidToMax"].includes(u.bar3DShape||"")||(u.bar3DShape="box"),["circle","dash","diamond","dot","none","square","triangle"].includes(u.lineDataSymbol||"")||(u.lineDataSymbol="circle"),["gap","span"].includes(u.displayBlanksAs||"")||(u.displayBlanksAs="span"),["standard","marker","filled"].includes(u.radarStyle||"")||(u.radarStyle="standard"),u.lineDataSymbolSize=u.lineDataSymbolSize&&!isNaN(u.lineDataSymbolSize)?u.lineDataSymbolSize:6,u.lineDataSymbolLineSize=u.lineDataSymbolLineSize&&!isNaN(u.lineDataSymbolLineSize)?Wn(u.lineDataSymbolLineSize):Wn(.75),u.layout&&["x","y","w","h"].forEach(d=>{const h=u.layout[d];(isNaN(Number(h))||h<0||h>1)&&(console.warn("Warning: chart.layout."+d+" can only be 0-1"),delete u.layout[d])}),u.catGridLine=u.catGridLine||(u._type===Nt.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),u.valGridLine=u.valGridLine||(u._type===Nt.SCATTER?{color:"D9D9D9",size:1}:{}),u.serGridLine=u.serGridLine||(u._type===Nt.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),a(u.catGridLine),a(u.valGridLine),a(u.serGridLine),cR(u.shadow),u.showDataTable=u.showDataTable||!u.showDataTable?u.showDataTable:!1,u.showDataTableHorzBorder=u.showDataTableHorzBorder||!u.showDataTableHorzBorder?u.showDataTableHorzBorder:!0,u.showDataTableVertBorder=u.showDataTableVertBorder||!u.showDataTableVertBorder?u.showDataTableVertBorder:!0,u.showDataTableOutline=u.showDataTableOutline||!u.showDataTableOutline?u.showDataTableOutline:!0,u.showDataTableKeys=u.showDataTableKeys||!u.showDataTableKeys?u.showDataTableKeys:!0,u.showLabel=u.showLabel||!u.showLabel?u.showLabel:!1,u.showLegend=u.showLegend||!u.showLegend?u.showLegend:!1,u.showPercent=u.showPercent||!u.showPercent?u.showPercent:!0,u.showTitle=u.showTitle||!u.showTitle?u.showTitle:!1,u.showValue=u.showValue||!u.showValue?u.showValue:!1,u.showLeaderLines=u.showLeaderLines||!u.showLeaderLines?u.showLeaderLines:!1,u.catAxisLineShow=typeof u.catAxisLineShow<"u"?u.catAxisLineShow:!0,u.valAxisLineShow=typeof u.valAxisLineShow<"u"?u.valAxisLineShow:!0,u.serAxisLineShow=typeof u.serAxisLineShow<"u"?u.serAxisLineShow:!0,u.v3DRotX=!isNaN(u.v3DRotX)&&u.v3DRotX>=-90&&u.v3DRotX<=90?u.v3DRotX:30,u.v3DRotY=!isNaN(u.v3DRotY)&&u.v3DRotY>=0&&u.v3DRotY<=360?u.v3DRotY:30,u.v3DRAngAx=u.v3DRAngAx||!u.v3DRAngAx?u.v3DRAngAx:!0,u.v3DPerspective=!isNaN(u.v3DPerspective)&&u.v3DPerspective>=0&&u.v3DPerspective<=240?u.v3DPerspective:30,u.barGapWidthPct=!isNaN(u.barGapWidthPct)&&u.barGapWidthPct>=0&&u.barGapWidthPct<=1e3?u.barGapWidthPct:150,u.barGapDepthPct=!isNaN(u.barGapDepthPct)&&u.barGapDepthPct>=0&&u.barGapDepthPct<=1e3?u.barGapDepthPct:150,u.chartColors=Array.isArray(u.chartColors)?u.chartColors:u._type===Nt.PIE||u._type===Nt.DOUGHNUT?XPe:Qm,u.chartColorsOpacity=u.chartColorsOpacity&&!isNaN(u.chartColorsOpacity)?u.chartColorsOpacity:null,u.border=u.border&&typeof u.border=="object"?u.border:null,u.border&&(!u.border.pt||isNaN(u.border.pt))&&(u.border.pt=lp.pt),u.border&&(!u.border.color||typeof u.border.color!="string")&&(u.border.color=lp.color),u.plotArea=u.plotArea||{},u.plotArea.border=u.plotArea.border&&typeof u.plotArea.border=="object"?u.plotArea.border:null,u.plotArea.border&&(!u.plotArea.border.pt||isNaN(u.plotArea.border.pt))&&(u.plotArea.border.pt=lp.pt),u.plotArea.border&&(!u.plotArea.border.color||typeof u.plotArea.border.color!="string")&&(u.plotArea.border.color=lp.color),u.border&&(u.plotArea.border=u.border),u.plotArea.fill=u.plotArea.fill||{color:null,transparency:null},u.fill&&(u.plotArea.fill.color=u.fill),u.chartArea=u.chartArea||{},u.chartArea.border=u.chartArea.border&&typeof u.chartArea.border=="object"?u.chartArea.border:null,u.chartArea.border&&(u.chartArea.border={color:u.chartArea.border.color||lp.color,pt:u.chartArea.border.pt||lp.pt}),u.chartArea.roundedCorners=typeof u.chartArea.roundedCorners=="boolean"?u.chartArea.roundedCorners:!0,u.dataBorder=u.dataBorder&&typeof u.dataBorder=="object"?u.dataBorder:null,u.dataBorder&&(!u.dataBorder.pt||isNaN(u.dataBorder.pt))&&(u.dataBorder.pt=.75),u.dataBorder&&u.dataBorder.color){const d=typeof u.dataBorder.color=="string"&&u.dataBorder.color.length===6&&/^[0-9A-Fa-f]{6}$/.test(u.dataBorder.color),h=Object.values(xA).includes(u.dataBorder.color);!d&&!h&&(u.dataBorder.color="F9F9F9")}return!u.dataLabelFormatCode&&u._type===Nt.SCATTER&&(u.dataLabelFormatCode="General"),!u.dataLabelFormatCode&&(u._type===Nt.PIE||u._type===Nt.DOUGHNUT)&&(u.dataLabelFormatCode=u.showPercent?"0%":"General"),u.dataLabelFormatCode=u.dataLabelFormatCode&&typeof u.dataLabelFormatCode=="string"?u.dataLabelFormatCode:"#,##0",!u.dataLabelFormatScatter&&u._type===Nt.SCATTER&&(u.dataLabelFormatScatter="custom"),u.lineSize=typeof u.lineSize=="number"?u.lineSize:2,u.valAxisMajorUnit=typeof u.valAxisMajorUnit=="number"?u.valAxisMajorUnit:null,u._type===Nt.AREA||u._type===Nt.BAR||u._type===Nt.BAR3D||u._type===Nt.LINE?u.catAxisMultiLevelLabels=!!u.catAxisMultiLevelLabels:delete u.catAxisMultiLevelLabels,s._type="chart",s.options=u,s.chartRid=jc(e),e._relsChart.push({rId:jc(e),data:c,opts:u,type:u._type,globalId:o,fileName:`chart${o}.xml`,Target:`/ppt/charts/chart${o}.xml`}),e._slideObjects.push(s),s}function lY(e,t){const n={_type:null,text:null,options:null,image:null,imageRid:null,hyperlink:null},r=t.x||0,i=t.y||0,a=t.w||0,o=t.h||0,s=t.sizing||null,l=t.hyperlink||"",c=t.data||"",u=t.path||"";let d=jc(e);const h=t.objectName?Zn(t.objectName):`Image ${e._slideObjects.filter(g=>g._type===$n.image).length}`;if(!u&&!c)return console.error("ERROR: addImage() requires either 'data' or 'path' parameter!"),null;if(u&&typeof u!="string")return console.error(`ERROR: addImage() 'path' should be a string, ex: {path:'/img/sample.png'} - you sent ${String(u)}`),null;if(c&&typeof c!="string")return console.error(`ERROR: addImage() 'data' should be a string, ex: {data:'image/png;base64,NMP[...]'} - you sent ${String(c)}`),null;if(c&&typeof c=="string"&&!c.toLowerCase().includes("base64,"))return console.error("ERROR: Image `data` value lacks a base64 header! Ex: 'image/png;base64,NMP[...]')"),null;let f=(u.substring(u.lastIndexOf("/")+1).split("?")[0].split(".").pop().split("#")[0]||"png").toLowerCase();if(c&&/image\/(\w+);/.exec(c)&&/image\/(\w+);/.exec(c).length>0?f=/image\/(\w+);/.exec(c)[1]:c!=null&&c.toLowerCase().includes("image/svg+xml")&&(f="svg"),n._type=$n.image,n.image=u||"preencoded.png",n.options={x:r||0,y:i||0,w:a||1,h:o||1,altText:t.altText||"",rounding:typeof t.rounding=="boolean"?t.rounding:!1,sizing:s,placeholder:t.placeholder,rotate:t.rotate||0,flipV:t.flipV||!1,flipH:t.flipH||!1,transparency:t.transparency||0,objectName:h,shadow:cR(t.shadow)},f==="svg")e._relsMedia.push({path:u||c+"png",type:"image/png",extn:"png",data:c||"",rId:d,Target:`../media/image-${e._slideNum}-${e._relsMedia.length+1}.png`,isSvgPng:!0,svgSize:{w:Ar(n.options.w,"X",e._presLayout),h:Ar(n.options.h,"Y",e._presLayout)}}),n.imageRid=d,e._relsMedia.push({path:u||c,type:"image/svg+xml",extn:f,data:c||"",rId:d+1,Target:`../media/image-${e._slideNum}-${e._relsMedia.length+1}.${f}`}),n.imageRid=d+1;else{const g=e._relsMedia.filter(y=>y.path&&y.path===u&&y.type==="image/"+f&&!y.isDuplicate)[0];e._relsMedia.push({path:u||"preencoded."+f,type:"image/"+f,extn:f,data:c||"",rId:d,isDuplicate:!!(g!=null&&g.Target),Target:g!=null&&g.Target?g.Target:`../media/image-${e._slideNum}-${e._relsMedia.length+1}.${f}`}),n.imageRid=d}if(typeof l=="object"){if(!l.url&&!l.slide)throw new Error("ERROR: `hyperlink` option requires either: `url` or `slide`");d++,e._rels.push({type:$n.hyperlink,data:l.slide?"slide":"dummy",rId:d,Target:l.url||l.slide.toString()}),l._rId=d,n.hyperlink=l}e._slideObjects.push(n)}function eIe(e,t){const n=t.x||0,r=t.y||0,i=t.w||2,a=t.h||2,o=t.data||"",s=t.link||"",l=t.path||"",c=t.type||"audio";let u="";const d=t.cover||ZPe,h=t.objectName?Zn(t.objectName):`Media ${e._slideObjects.filter(g=>g._type===$n.media).length}`,f={_type:$n.media};if(!l&&!o&&c!=="online")throw new Error("addMedia() error: either `data` or `path` are required!");if(o&&!o.toLowerCase().includes("base64,"))throw new Error("addMedia() error: `data` value lacks a base64 header! Ex: 'video/mpeg;base64,NMP[...]')");if(!d.toLowerCase().includes("base64,"))throw new Error("addMedia() error: `cover` value lacks a base64 header! Ex: 'data:image/png;base64,iV[...]')");if(c==="online"&&!s)throw new Error("addMedia() error: online videos require `link` value");if(u=t.extn||(o?o.split(";")[0].split("/")[1]:l.split(".").pop())||"mp3",f.mtype=c,f.media=l||"preencoded.mov",f.options={},f.options.x=n,f.options.y=r,f.options.w=i,f.options.h=a,f.options.objectName=h,c==="online"){const g=jc(e);e._relsMedia.push({path:l||"preencoded"+u,data:"dummy",type:"online",extn:u,rId:g,Target:s}),f.mediaRid=g,e._relsMedia.push({path:"preencoded.png",data:d,type:"image/png",extn:"png",rId:jc(e),Target:`../media/image-${e._slideNum}-${e._relsMedia.length+1}.png`})}else{const g=e._relsMedia.filter(v=>v.path&&v.path===l&&v.type===c+"/"+u&&!v.isDuplicate)[0],y=jc(e);e._relsMedia.push({path:l||"preencoded"+u,type:c+"/"+u,extn:u,data:o||"",rId:y,isDuplicate:!!(g!=null&&g.Target),Target:g!=null&&g.Target?g.Target:`../media/media-${e._slideNum}-${e._relsMedia.length+1}.${u}`}),f.mediaRid=y,e._relsMedia.push({path:l||"preencoded"+u,type:c+"/"+u,extn:u,data:o||"",rId:jc(e),isDuplicate:!!(g!=null&&g.Target),Target:g!=null&&g.Target?g.Target:`../media/media-${e._slideNum}-${e._relsMedia.length+0}.${u}`}),e._relsMedia.push({path:"preencoded.png",type:"image/png",extn:"png",data:d,rId:jc(e),Target:`../media/image-${e._slideNum}-${e._relsMedia.length+1}.png`})}e._slideObjects.push(f)}function tIe(e,t){e._slideObjects.push({_type:$n.notes,text:[{text:t}]})}function aE(e,t,n){const r=typeof n=="object"?n:{};r.line=r.line||{type:"none"};const i={_type:$n.text,shape:t||ud.RECTANGLE,options:r,text:null};if(!t)throw new Error("Missing/Invalid shape parameter! Example: `addShape(pptxgen.shapes.LINE, {x:1, y:1, w:1, h:1});`");const a={type:r.line.type||"solid",color:r.line.color||rY,transparency:r.line.transparency||0,width:r.line.width||1,dashType:r.line.dashType||"solid",beginArrowType:r.line.beginArrowType||null,endArrowType:r.line.endArrowType||null};if(typeof r.line=="object"&&r.line.type!=="none"&&(r.line=a),r.x=r.x||(r.x===0?0:1),r.y=r.y||(r.y===0?0:1),r.w=r.w||(r.w===0?0:1),r.h=r.h||(r.h===0?0:1),r.objectName=r.objectName?Zn(r.objectName):`Shape ${e._slideObjects.filter(o=>o._type===$n.text).length}`,typeof r.line=="string"){const o=a;o.color=String(r.line),r.line=o}typeof r.lineSize=="number"&&(r.line.width=r.lineSize),typeof r.lineDash=="string"&&(r.line.dashType=r.lineDash),typeof r.lineHead=="string"&&(r.line.beginArrowType=r.lineHead),typeof r.lineTail=="string"&&(r.line.endArrowType=r.lineTail),ug(e,i),e._slideObjects.push(i)}function nIe(e,t,n,r,i,a,o){const s=[e],l=n&&typeof n=="object"?n:{};l.objectName=l.objectName?Zn(l.objectName):`Table ${e._slideObjects.filter(h=>h._type===$n.table).length}`;{if(t===null||t.length===0||!Array.isArray(t))throw new Error("addTable: Array expected! EX: 'slide.addTable( [rows], {options} );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)");if(!t[0]||!Array.isArray(t[0]))throw new Error("addTable: 'rows' should be an array of cells! EX: 'slide.addTable( [ ['A'], ['B'], {text:'C',options:{align:'center'}} ] );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)")}const c=[];t.forEach(h=>{const f=[];Array.isArray(h)?h.forEach(g=>{const y={_type:$n.tablecell,text:"",options:typeof g=="object"&&g.options?g.options:{}};typeof g=="string"||typeof g=="number"?y.text=g.toString():g.text&&(typeof g.text=="string"||typeof g.text=="number"?y.text=g.text.toString():g.text&&(y.text=g.text),g.options&&typeof g.options=="object"&&(y.options=g.options)),y.options.border=y.options.border||l.border||[{type:"none"},{type:"none"},{type:"none"},{type:"none"}];const v=y.options.border;!Array.isArray(v)&&typeof v=="object"&&(y.options.border=[v,v,v,v]),y.options.border[0]||(y.options.border[0]={type:"none"}),y.options.border[1]||(y.options.border[1]={type:"none"}),y.options.border[2]||(y.options.border[2]={type:"none"}),y.options.border[3]||(y.options.border[3]={type:"none"}),[0,1,2,3].forEach(w=>{y.options.border[w]={type:y.options.border[w].type||sp.type,color:y.options.border[w].color||sp.color,pt:typeof y.options.border[w].pt=="number"?y.options.border[w].pt:sp.pt}}),f.push(y)}):(console.log("addTable: tableRows has a bad row. A row should be an array of cells. You provided:"),console.log(h)),c.push(f)}),l.x=Ar(l.x||(l.x===0?0:tr/2),"X",i),l.y=Ar(l.y||(l.y===0?0:tr/2),"Y",i),l.h&&(l.h=Ar(l.h,"Y",i)),l.fontSize=l.fontSize||Xs,l.margin=l.margin===0||l.margin?l.margin:nY,typeof l.margin=="number"&&(l.margin=[Number(l.margin),Number(l.margin),Number(l.margin),Number(l.margin)]),JSON.stringify({arrRows:c}).indexOf("hyperlink")===-1&&(l.color||(l.color=l.color||zo)),typeof l.border=="string"?(console.warn("addTable `border` option must be an object. Ex: `{border: {type:'none'}}`"),l.border=null):Array.isArray(l.border)&&[0,1,2,3].forEach(h=>{l.border[h]=l.border[h]?{type:l.border[h].type||sp.type,color:l.border[h].color||sp.color,pt:l.border[h].pt||sp.pt}:{type:"none"}}),l.autoPage=typeof l.autoPage=="boolean"?l.autoPage:!1,l.autoPageRepeatHeader=typeof l.autoPageRepeatHeader=="boolean"?l.autoPageRepeatHeader:!1,l.autoPageHeaderRows=typeof l.autoPageHeaderRows<"u"&&!isNaN(Number(l.autoPageHeaderRows))?Number(l.autoPageHeaderRows):1,l.autoPageLineWeight=typeof l.autoPageLineWeight<"u"&&!isNaN(Number(l.autoPageLineWeight))?Number(l.autoPageLineWeight):0,l.autoPageLineWeight&&(l.autoPageLineWeight>1?l.autoPageLineWeight=1:l.autoPageLineWeight<-1&&(l.autoPageLineWeight=-1));let u=ly;if(r&&typeof r._margin<"u"&&(Array.isArray(r._margin)?u=r._margin:isNaN(Number(r._margin))||(u=[Number(r._margin),Number(r._margin),Number(r._margin),Number(r._margin)])),l.colW){const h=c[0].reduce((f,g)=>{var y;return!((y=g==null?void 0:g.options)===null||y===void 0)&&y.colspan&&typeof g.options.colspan=="number"?f+=g.options.colspan:f+=1,f},0);typeof l.colW=="string"||typeof l.colW=="number"||l.colW&&Array.isArray(l.colW)&&l.colW.length===1&&h>1?(l.w=Math.floor(Number(l.colW)*h),l.colW=null):l.colW&&Array.isArray(l.colW)&&l.colW.length!==h&&(console.warn("addTable: mismatch: (colW.length != data.length) Therefore, defaulting to evenly distributed col widths."),l.colW=null)}else l.w?l.w=Ar(l.w,"X",i):l.w=Math.floor(i._sizeW/tr-u[1]-u[3]);l.x&&l.x<20&&(l.x=Br(l.x)),l.y&&l.y<20&&(l.y=Br(l.y)),l.w&&typeof l.w=="number"&&l.w<20&&(l.w=Br(l.w)),l.h&&typeof l.h=="number"&&l.h<20&&(l.h=Br(l.h)),c.forEach(h=>{h.forEach((f,g)=>{typeof f=="number"||typeof f=="string"?h[g]={_type:$n.tablecell,text:String(h[g]),options:l}:typeof f=="object"&&(typeof f.text=="number"?h[g].text=h[g].text.toString():(typeof f.text>"u"||f.text===null)&&(h[g].text=""),h[g].options=f.options||{},h[g]._type=$n.tablecell)})});const d=[];return l&&!l.autoPage?(ug(e,c),e._slideObjects.push({_type:$n.table,arrTabRows:c,options:Object.assign({},l)})):(l.autoPageRepeatHeader&&(l._arrObjTabHeadRows=c.filter((h,f)=>f<l.autoPageHeaderRows)),oY(c,l,i,r).forEach((h,f)=>{o(e._slideNum+f)||s.push(a({masterName:(r==null?void 0:r._name)||null})),f>0&&(l.y=Br(l.autoPageSlideStartY||l.newSlideStartY||u[0]));{const g=o(e._slideNum+f);l.autoPage=!1,ug(g,h.rows),g.addTable(h.rows,Object.assign({},l)),f>0&&d.push(g)}})),d}function bA(e,t,n,r){const i={_type:r?$n.placeholder:$n.text,shape:(n==null?void 0:n.shape)||ud.RECTANGLE,text:!t||t.length===0?[{text:"",options:null}]:t,options:n||{}};function a(o){{if(o.placeholder||(o.color=o.color||i.options.color||e.color||zo),(o.placeholder||r)&&(o.bullet=o.bullet||!1),o.placeholder&&e._slideLayout&&e._slideLayout._slideObjects){const s=e._slideLayout._slideObjects.filter(l=>l._type==="placeholder"&&l.options&&l.options.placeholder&&l.options.placeholder===o.placeholder)[0];s!=null&&s.options&&(o=Object.assign(Object.assign({},o),s.options))}if(o.objectName=o.objectName?Zn(o.objectName):`Text ${e._slideObjects.filter(s=>s._type===$n.text).length}`,o.shape===ud.LINE){const s={type:o.line.type||"solid",color:o.line.color||rY,transparency:o.line.transparency||0,width:o.line.width||1,dashType:o.line.dashType||"solid",beginArrowType:o.line.beginArrowType||null,endArrowType:o.line.endArrowType||null};if(typeof o.line=="object"&&(o.line=s),typeof o.line=="string"){const l=s;typeof o.line=="string"&&(l.color=o.line),o.line=l}typeof o.lineSize=="number"&&(o.line.width=o.lineSize),typeof o.lineDash=="string"&&(o.line.dashType=o.lineDash),typeof o.lineHead=="string"&&(o.line.beginArrowType=o.lineHead),typeof o.lineTail=="string"&&(o.line.endArrowType=o.lineTail)}o.line=o.line||{},o.lineSpacing=o.lineSpacing&&!isNaN(o.lineSpacing)?o.lineSpacing:null,o.lineSpacingMultiple=o.lineSpacingMultiple&&!isNaN(o.lineSpacingMultiple)?o.lineSpacingMultiple:null,o._bodyProp=o._bodyProp||{},o._bodyProp.autoFit=o.autoFit||!1,o._bodyProp.anchor=o.placeholder?null:Fp.ctr,o._bodyProp.vert=o.vert||null,o._bodyProp.wrap=typeof o.wrap=="boolean"?o.wrap:!0,(o.inset&&!isNaN(Number(o.inset))||o.inset===0)&&(o._bodyProp.lIns=Br(o.inset),o._bodyProp.rIns=Br(o.inset),o._bodyProp.tIns=Br(o.inset),o._bodyProp.bIns=Br(o.inset)),typeof o.underline=="boolean"&&o.underline===!0&&(o.underline={style:"sng"})}return(o.align||"").toLowerCase().indexOf("c")===0?o._bodyProp.align=Np.center:(o.align||"").toLowerCase().indexOf("l")===0?o._bodyProp.align=Np.left:(o.align||"").toLowerCase().indexOf("r")===0?o._bodyProp.align=Np.right:(o.align||"").toLowerCase().indexOf("j")===0&&(o._bodyProp.align=Np.justify),(o.valign||"").toLowerCase().indexOf("b")===0?o._bodyProp.anchor=Fp.b:(o.valign||"").toLowerCase().indexOf("m")===0?o._bodyProp.anchor=Fp.ctr:(o.valign||"").toLowerCase().indexOf("t")===0&&(o._bodyProp.anchor=Fp.t),cR(o.shadow),o}i.options=a(i.options),i.text.forEach(o=>o.options=a(o.options||{})),ug(e,i.text||""),e._slideObjects.push(i)}function rIe(e){(e._slideLayout._slideObjects||[]).forEach(t=>{t._type===$n.placeholder&&e._slideObjects.filter(n=>n.options&&n.options.placeholder===t.options.placeholder).length===0&&bA(e,[{text:""}],t.options,!1)})}function cY(e,t){var n;if(t.bkgd&&(t.background||(t.background={}),typeof t.bkgd=="string"?t.background.color=t.bkgd:(t.bkgd.data&&(t.background.data=t.bkgd.data),t.bkgd.path&&(t.background.path=t.bkgd.path),t.bkgd.src&&(t.background.path=t.bkgd.src))),!((n=t.background)===null||n===void 0)&&n.fill&&(t.background.color=t.background.fill),e&&(e.path||e.data)){e.path=e.path||"preencoded.png";let r=(e.path.split(".").pop()||"png").split("?")[0];r==="jpg"&&(r="jpeg"),t._relsMedia=t._relsMedia||[];const i=t._relsMedia.length+1;t._relsMedia.push({path:e.path,type:$n.image,extn:r,data:e.data||null,rId:i,Target:`../media/${(t._name||"").replace(/\s+/gi,"-")}-image-${t._relsMedia.length+1}.${r}`}),t._bkgdImgRid=i}}function ug(e,t,n){let r=[];typeof t=="string"||typeof t=="number"||(Array.isArray(t)?r=t:typeof t=="object"&&(r=[t]),r.forEach((i,a)=>{if(n&&n[a]&&n[a].hyperlink&&(i.options=Object.assign(Object.assign({},i.options),n[a])),Array.isArray(i)){const o=[];i.forEach(s=>{s.options&&!s.text.options&&o.push(s.options)}),ug(e,i,o)}else if(Array.isArray(i.text))ug(e,i.text,n&&n[a]?[n[a]]:void 0);else if(i&&typeof i=="object"&&i.options&&i.options.hyperlink&&!i.options.hyperlink._rId)if(typeof i.options.hyperlink!="object")console.log("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink: {url:'https://github.com'}` ");else if(!i.options.hyperlink.url&&!i.options.hyperlink.slide)console.log("ERROR: 'hyperlink requires either: `url` or `slide`'");else{const o=jc(e);e._rels.push({type:$n.hyperlink,data:i.options.hyperlink.slide?"slide":"dummy",rId:o,Target:Zn(i.options.hyperlink.url)||i.options.hyperlink.slide.toString()}),i.options.hyperlink._rId=o}else i&&typeof i=="object"&&i.options&&i.options.hyperlink&&i.options.hyperlink._rId&&e._rels.filter(o=>o.rId===i.options.hyperlink._rId).length===0&&e._rels.push({type:$n.hyperlink,data:i.options.hyperlink.slide?"slide":"dummy",rId:i.options.hyperlink._rId,Target:Zn(i.options.hyperlink.url)||i.options.hyperlink.slide.toString()})}))}class iIe{constructor(t){var n;this.addSlide=t.addSlide,this.getSlide=t.getSlide,this._name=`Slide ${t.slideNumber}`,this._presLayout=t.presLayout,this._rId=t.slideRId,this._rels=[],this._relsChart=[],this._relsMedia=[],this._setSlideNum=t.setSlideNum,this._slideId=t.slideId,this._slideLayout=t.slideLayout||null,this._slideNum=t.slideNumber,this._slideObjects=[],this._slideNumberProps=!((n=this._slideLayout)===null||n===void 0)&&n._slideNumberProps?this._slideLayout._slideNumberProps:null}set bkgd(t){this._bkgd=t,(!this._background||!this._background.color)&&(this._background||(this._background={}),typeof t=="string"&&(this._background.color=t))}get bkgd(){return this._bkgd}set background(t){this._background=t,t&&cY(t,this)}get background(){return this._background}set color(t){this._color=t}get color(){return this._color}set hidden(t){this._hidden=t}get hidden(){return this._hidden}set slideNumber(t){this._slideNumberProps=t,this._setSlideNum(t)}get slideNumber(){return this._slideNumberProps}get newAutoPagedSlides(){return this._newAutoPagedSlides}addChart(t,n,r){const i=r||{};return i._type=t,sY(this,t,n,r),this}addImage(t){return lY(this,t),this}addMedia(t){return eIe(this,t),this}addNotes(t){return tIe(this,t),this}addShape(t,n){return aE(this,t,n),this}addTable(t,n){return this._newAutoPagedSlides=nIe(this,t,n,this._slideLayout,this._presLayout,this.addSlide,this.getSlide),this}addText(t,n){return bA(this,typeof t=="string"||typeof t=="number"?[{text:t,options:n}]:t,n,!1),this}}function aIe(e,t){return fs(this,void 0,void 0,function*(){const n=e.data;return yield new Promise((r,i)=>{var a,o;const s=new Dy,l=(n.length-1)*2+1,c=((o=(a=n[0])===null||a===void 0?void 0:a.labels)===null||o===void 0?void 0:o.length)>1;s.folder("_rels"),s.folder("docProps"),s.folder("xl/_rels"),s.folder("xl/tables"),s.folder("xl/theme"),s.folder("xl/worksheets"),s.folder("xl/worksheets/_rels"),s.file("[Content_Types].xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"> <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/> <Default Extension="xml" ContentType="application/xml"/> <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/> <Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/> <Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/> <Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/> <Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/> <Override PartName="/xl/tables/table1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"/> <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/> <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>-`),s.file("_rels/.rels",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>-`),s.file("docProps/app.xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Macintosh Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company></Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>-`),s.file("docProps/core.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator>PptxGenJS</dc:creator><cp:lastModifiedBy>PptxGenJS</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">'+new Date().toISOString()+'</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">'+new Date().toISOString()+"</dcterms:modified></cp:coreProperties>"),s.file("xl/_rels/workbook.xml.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>'),s.file("xl/styles.xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><numFmts count="1"><numFmt numFmtId="0" formatCode="General"/></numFmts><fonts count="4"><font><sz val="9"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="9"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="10"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="18"/><color indexed="8"/><name val="Arial"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><dxfs count="0"/><tableStyles count="0"/><colors><indexedColors><rgbColor rgb="ff000000"/><rgbColor rgb="ffffffff"/><rgbColor rgb="ffff0000"/><rgbColor rgb="ff00ff00"/><rgbColor rgb="ff0000ff"/><rgbColor rgb="ffffff00"/><rgbColor rgb="ffff00ff"/><rgbColor rgb="ff00ffff"/><rgbColor rgb="ff000000"/><rgbColor rgb="ffffffff"/><rgbColor rgb="ff878787"/><rgbColor rgb="fff9f9f9"/></indexedColors></colors></styleSheet>-`),s.file("xl/theme/theme1.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="Yu Gothic Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="DengXian Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="Yu Gothic"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="DengXian"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme>'),s.file("xl/workbook.xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x15" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><fileVersion appName="xl" lastEdited="7" lowestEdited="6" rupBuild="10507"/><workbookPr/><bookViews><workbookView xWindow="0" yWindow="500" windowWidth="20960" windowHeight="15960"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><calcPr calcId="0" concurrentCalc="0"/></workbook>-`),s.file("xl/worksheets/_rels/sheet1.xml.rels",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" Target="../tables/table1.xml"/></Relationships>-`);{let u='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';if(e.opts._type===Nt.BUBBLE||e.opts._type===Nt.BUBBLE3D)u+=`<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="${l}" uniqueCount="${l}">`;else if(e.opts._type===Nt.SCATTER)u+=`<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="${n.length}" uniqueCount="${n.length}">`;else if(c){let d=n.length;n[0].labels.forEach(h=>d+=h.filter(f=>f&&f!=="").length),u+=`<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="${d}" uniqueCount="${d}">`,u+="<si><t/></si>"}else{const d=n.length+n[0].labels.length*n[0].labels[0].length+n[0].labels.length,h=n.length+n[0].labels.length*n[0].labels[0].length+1;u+=`<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="${d}" uniqueCount="${h}">`,u+='<si><t xml:space="preserve"></t></si>'}e.opts._type===Nt.BUBBLE||e.opts._type===Nt.BUBBLE3D?n.forEach((d,h)=>{h===0?u+="<si><t>X-Axis</t></si>":(u+=`<si><t>${Zn(d.name||`Y-Axis${h}`)}</t></si>`,u+=`<si><t>${Zn(`Size${h}`)}</t></si>`)}):n.forEach(d=>{u+=`<si><t>${Zn((d.name||" ").replace("X-Axis","X-Values"))}</t></si>`}),e.opts._type!==Nt.BUBBLE&&e.opts._type!==Nt.BUBBLE3D&&e.opts._type!==Nt.SCATTER&&n[0].labels.slice().reverse().forEach(d=>{d.filter(h=>h&&h!=="").forEach(h=>{u+=`<si><t>${Zn(h)}</t></si>`})}),u+=`</sst>-`,s.file("xl/sharedStrings.xml",u)}{let u='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';if(e.opts._type===Nt.BUBBLE||e.opts._type===Nt.BUBBLE3D){u+=`<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" id="1" name="Table1" displayName="Table1" ref="A1:${ci(l)}${l}" totalsRowShown="0">`,u+=`<tableColumns count="${l}">`;let d=1;n.forEach((h,f)=>{f===0?u+=`<tableColumn id="${f+1}" name="X-Values"/>`:(u+=`<tableColumn id="${f+d}" name="${h.name}"/>`,d++,u+=`<tableColumn id="${f+d}" name="Size${f}"/>`)})}else e.opts._type===Nt.SCATTER?(u+=`<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" id="1" name="Table1" displayName="Table1" ref="A1:${ci(n.length)}${n[0].values.length+1}" totalsRowShown="0">`,u+=`<tableColumns count="${n.length}">`,n.forEach((d,h)=>{u+=`<tableColumn id="${h+1}" name="${h===0?"X-Values":"Y-Value "}${h}"/>`})):(u+=`<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" id="1" name="Table1" displayName="Table1" ref="A1:${ci(n.length+n[0].labels.length)}${n[0].labels[0].length+1}'" totalsRowShown="0">`,u+=`<tableColumns count="${n.length+n[0].labels.length}">`,n[0].labels.forEach((d,h)=>{u+=`<tableColumn id="${h+1}" name="Column${h+1}"/>`}),n.forEach((d,h)=>{u+=`<tableColumn id="${h+n[0].labels.length+1}" name="${Zn(d.name)}"/>`}));u+="</tableColumns>",u+='<tableStyleInfo showFirstColumn="0" showLastColumn="0" showRowStripes="1" showColumnStripes="0"/>',u+="</table>",s.file("xl/tables/table1.xml",u)}{let u='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';if(u+='<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">',e.opts._type===Nt.BUBBLE||e.opts._type===Nt.BUBBLE3D?u+=`<dimension ref="A1:${ci(l)}${n[0].values.length+1}"/>`:e.opts._type===Nt.SCATTER?u+=`<dimension ref="A1:${ci(n.length)}${n[0].values.length+1}"/>`:u+=`<dimension ref="A1:${ci(n.length+1)}${n[0].values.length+1}"/>`,u+='<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="B1" sqref="B1"/></sheetView></sheetViews>',u+='<sheetFormatPr baseColWidth="10" defaultRowHeight="16"/>',e.opts._type===Nt.BUBBLE||e.opts._type===Nt.BUBBLE3D){u+="<sheetData>",u+=`<row r="1" spans="1:${l}">`,u+='<c r="A1" t="s"><v>0</v></c>';for(let d=1;d<l;d++)u+=`<c r="${ci(d+1)}1" t="s"><v>${d}</v></c>`;u+="</row>",n[0].values.forEach((d,h)=>{u+=`<row r="${h+2}" spans="1:${l}">`,u+=`<c r="A${h+2}"><v>${d}</v></c>`;let f=2;for(let g=1;g<n.length;g++)u+=`<c r="${ci(f)}${h+2}"><v>${n[g].values[h]||""}</v></c>`,f++,u+=`<c r="${ci(f)}${h+2}"><v>${n[g].sizes[h]||""}</v></c>`,f++;u+="</row>"})}else if(e.opts._type===Nt.SCATTER){u+="<sheetData>",u+=`<row r="1" spans="1:${n.length}">`;for(let d=0;d<n.length;d++)u+=`<c r="${ci(d+1)}1" t="s"><v>${d}</v></c>`;u+="</row>",n[0].values.forEach((d,h)=>{u+=`<row r="${h+2}" spans="1:${n.length}">`,u+=`<c r="A${h+2}"><v>${d}</v></c>`;for(let f=1;f<n.length;f++)u+=`<c r="${ci(f+1)}${h+2}"><v>${n[f].values[h]||n[f].values[h]===0?n[f].values[h]:""}</v></c>`;u+="</row>"})}else if(u+="<sheetData>",c){u+=`<row r="1" spans="1:${n.length+n[0].labels.length}">`;for(let g=0;g<n[0].labels.length;g++)u+=`<c r="${ci(g+1)}1" t="s"><v>0</v></c>`;for(let g=n[0].labels.length-1;g<n.length+n[0].labels.length-1;g++)u+=`<c r="${ci(g+n[0].labels.length)}1" t="s"><v>${g}</v></c>`;u+="</row>";const d=n.length,h=n[0].labels[0].length,f=n[0].labels.length;for(let g=0;g<h;g++){u+=`<row r="${g+2}" spans="1:${d+f}">`;let y=d;const v=n[0].labels.slice().reverse();v.forEach((A,w)=>{if(A[g]){const _=w===0?1:v[w-1].filter(E=>E&&E!=="").length;y+=_,u+=`<c r="${ci(g+1+w)}${g+2}" t="s"><v>${y}</v></c>`}});for(let A=0;A<d;A++)u+=`<c r="${ci(f+A+1)}${g+2}"><v>${n[A].values[g]||0}</v></c>`;u+="</row>"}}else{u+=`<row r="1" spans="1:${n.length+n[0].labels.length}">`,n[0].labels.forEach((d,h)=>{u+=`<c r="${ci(h+1)}1" t="s"><v>0</v></c>`});for(let d=0;d<n.length;d++)u+=`<c r="${ci(d+1+n[0].labels.length)}1" t="s"><v>${d+1}</v></c>`;u+="</row>",n[0].labels[0].forEach((d,h)=>{u+=`<row r="${h+2}" spans="1:${n.length+n[0].labels.length}">`;for(let f=n[0].labels.length-1;f>=0;f--)u+=`<c r="${ci(n[0].labels.length-f)}${h+2}" t="s">`,u+=`<v>${n.length+h+1}</v>`,u+="</c>";for(let f=0;f<n.length;f++)u+=`<c r="${ci(n[0].labels.length+f+1)}${h+2}"><v>${n[f].values[h]||""}</v></c>`;u+="</row>"})}u+="</sheetData>",u+='<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/>',u+=`</worksheet>-`,s.file("xl/worksheets/sheet1.xml",u)}s.generateAsync({type:"base64"}).then(u=>{t.file(`ppt/embeddings/Microsoft_Excel_Worksheet${e.globalId}.xlsx`,u,{base64:!0}),t.file("ppt/charts/_rels/"+e.fileName+".rels",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/package" Target="../embeddings/Microsoft_Excel_Worksheet${e.globalId}.xlsx"/></Relationships>`),t.file(`ppt/charts/${e.fileName}`,oIe(e)),r("")}).catch(u=>{i(u)})})})}function oIe(e){var t,n,r,i;let a='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',o=!1;if(a+='<c:chartSpace xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">',a+='<c:date1904 val="0"/>',a+=`<c:roundedCorners val="${e.opts.chartArea.roundedCorners?"1":"0"}"/>`,a+="<c:chart>",e.opts.showTitle?(a+=D2({title:e.opts.title||"Chart Title",color:e.opts.titleColor,fontFace:e.opts.titleFontFace,fontSize:e.opts.titleFontSize||qPe,titleAlign:e.opts.titleAlign,titleBold:e.opts.titleBold,titlePos:e.opts.titlePos,titleRotate:e.opts.titleRotate},e.opts.x,e.opts.y),a+='<c:autoTitleDeleted val="0"/>'):a+='<c:autoTitleDeleted val="1"/>',e.opts._type===Nt.BAR3D&&(a+=`<c:view3D><c:rotX val="${e.opts.v3DRotX}"/><c:rotY val="${e.opts.v3DRotY}"/><c:rAngAx val="${e.opts.v3DRAngAx?1:0}"/><c:perspective val="${e.opts.v3DPerspective}"/></c:view3D>`),a+="<c:plotArea>",e.opts.layout?(a+="<c:layout>",a+=" <c:manualLayout>",a+=' <c:layoutTarget val="inner" />',a+=' <c:xMode val="edge" />',a+=' <c:yMode val="edge" />',a+=' <c:x val="'+(e.opts.layout.x||0)+'" />',a+=' <c:y val="'+(e.opts.layout.y||0)+'" />',a+=' <c:w val="'+(e.opts.layout.w||1)+'" />',a+=' <c:h val="'+(e.opts.layout.h||1)+'" />',a+=" </c:manualLayout>",a+="</c:layout>"):a+="<c:layout/>",Array.isArray(e.opts._type)?e.opts._type.forEach(s=>{const l=Object.assign(Object.assign({},e.opts),s.options),c=l.secondaryValAxis?a1:Pc,u=l.secondaryCatAxis?Q_:Jm;o=o||l.secondaryValAxis,a+=Fj(s.type,s.data,l,c,u)}):a+=Fj(e.opts._type,e.data,e.opts,Pc,Jm),e.opts._type!==Nt.PIE&&e.opts._type!==Nt.DOUGHNUT){if(e.opts.valAxes&&e.opts.valAxes.length>1&&!o)throw new Error("Secondary axis must be used by one of the multiple charts");if(e.opts.catAxes){if(!e.opts.valAxes||e.opts.valAxes.length!==e.opts.catAxes.length)throw new Error("There must be the same number of value and category axes.");a+=rT(Object.assign(Object.assign({},e.opts),e.opts.catAxes[0]),Jm,Pc)}else a+=rT(e.opts,Jm,Pc);e.opts.valAxes?(a+=iT(Object.assign(Object.assign({},e.opts),e.opts.valAxes[0]),Pc),e.opts.valAxes[1]&&(a+=iT(Object.assign(Object.assign({},e.opts),e.opts.valAxes[1]),a1))):(a+=iT(e.opts,Pc),e.opts._type===Nt.BAR3D&&(a+=sIe(e.opts,iY,Pc))),!((t=e.opts)===null||t===void 0)&&t.catAxes&&(!((n=e.opts)===null||n===void 0)&&n.catAxes[1])&&(a+=rT(Object.assign(Object.assign({},e.opts),e.opts.catAxes[1]),Q_,a1))}return e.opts.showDataTable&&(a+="<c:dTable>",a+=` <c:showHorzBorder val="${e.opts.showDataTableHorzBorder?1:0}"/>`,a+=` <c:showVertBorder val="${e.opts.showDataTableVertBorder?1:0}"/>`,a+=` <c:showOutline val="${e.opts.showDataTableOutline?1:0}"/>`,a+=` <c:showKeys val="${e.opts.showDataTableKeys?1:0}"/>`,a+=" <c:spPr>",a+=" <a:noFill/>",a+=' <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill><a:round/></a:ln>',a+=" <a:effectLst/>",a+=" </c:spPr>",a+=" <c:txPr>",a+=' <a:bodyPr rot="0" spcFirstLastPara="1" vertOverflow="ellipsis" vert="horz" wrap="square" anchor="ctr" anchorCtr="1"/>',a+=" <a:lstStyle/>",a+=" <a:p>",a+=' <a:pPr rtl="0">',a+=` <a:defRPr sz="${Math.round((e.opts.dataTableFontSize||Xs)*100)}" b="0" i="0" u="none" strike="noStrike" kern="1200" baseline="0">`,a+=' <a:solidFill><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></a:solidFill>',a+=' <a:latin typeface="+mn-lt"/>',a+=' <a:ea typeface="+mn-ea"/>',a+=' <a:cs typeface="+mn-cs"/>',a+=" </a:defRPr>",a+=" </a:pPr>",a+=' <a:endParaRPr lang="en-US"/>',a+=" </a:p>",a+=" </c:txPr>",a+="</c:dTable>"),a+=" <c:spPr>",a+=!((r=e.opts.plotArea.fill)===null||r===void 0)&&r.color?ps(e.opts.plotArea.fill):"<a:noFill/>",a+=e.opts.plotArea.border?`<a:ln w="${Wn(e.opts.plotArea.border.pt)}" cap="flat">${ps(e.opts.plotArea.border.color)}</a:ln>`:"<a:ln><a:noFill/></a:ln>",a+=" <a:effectLst/>",a+=" </c:spPr>",a+="</c:plotArea>",e.opts.showLegend&&(a+="<c:legend>",a+='<c:legendPos val="'+e.opts.legendPos+'"/>',a+='<c:overlay val="0"/>',(e.opts.legendFontFace||e.opts.legendFontSize||e.opts.legendColor)&&(a+="<c:txPr>",a+=" <a:bodyPr/>",a+=" <a:lstStyle/>",a+=" <a:p>",a+=" <a:pPr>",a+=e.opts.legendFontSize?`<a:defRPr sz="${Math.round(Number(e.opts.legendFontSize)*100)}">`:"<a:defRPr>",e.opts.legendColor&&(a+=ps(e.opts.legendColor)),e.opts.legendFontFace&&(a+='<a:latin typeface="'+e.opts.legendFontFace+'"/>'),e.opts.legendFontFace&&(a+='<a:cs typeface="'+e.opts.legendFontFace+'"/>'),a+=" </a:defRPr>",a+=" </a:pPr>",a+=' <a:endParaRPr lang="en-US"/>',a+=" </a:p>",a+="</c:txPr>"),a+="</c:legend>"),a+=' <c:plotVisOnly val="1"/>',a+=' <c:dispBlanksAs val="'+e.opts.displayBlanksAs+'"/>',e.opts._type===Nt.SCATTER&&(a+='<c:showDLblsOverMax val="1"/>'),a+="</c:chart>",a+="<c:spPr>",a+=!((i=e.opts.chartArea.fill)===null||i===void 0)&&i.color?ps(e.opts.chartArea.fill):"<a:noFill/>",a+=e.opts.chartArea.border?`<a:ln w="${Wn(e.opts.chartArea.border.pt)}" cap="flat">${ps(e.opts.chartArea.border.color)}</a:ln>`:"<a:ln><a:noFill/></a:ln>",a+=" <a:effectLst/>",a+="</c:spPr>",a+='<c:externalData r:id="rId1"><c:autoUpdate val="0"/></c:externalData>',a+="</c:chartSpace>",a}function Fj(e,t,n,r,i,a){let o=-1,s=1,l=null,c="";switch(e){case Nt.AREA:case Nt.BAR:case Nt.BAR3D:case Nt.LINE:case Nt.RADAR:c+=`<c:${e}Chart>`,e===Nt.AREA&&n.barGrouping==="stacked"&&(c+='<c:grouping val="'+n.barGrouping+'"/>'),(e===Nt.BAR||e===Nt.BAR3D)&&(c+='<c:barDir val="'+n.barDir+'"/>',c+='<c:grouping val="'+(n.barGrouping||"clustered")+'"/>'),e===Nt.RADAR&&(c+='<c:radarStyle val="'+n.radarStyle+'"/>'),c+='<c:varyColors val="0"/>',t.forEach(u=>{var d;o++,c+="<c:ser>",c+=` <c:idx val="${u._dataIndex}"/><c:order val="${u._dataIndex}"/>`,c+=" <c:tx>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$"+ci(u._dataIndex+u.labels.length+1)+"$1</c:f>",c+=' <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>'+Zn(u.name)+"</c:v></c:pt></c:strCache>",c+=" </c:strRef>",c+=" </c:tx>";const h=n.chartColors?n.chartColors[o%n.chartColors.length]:null;c+=" <c:spPr>",h==="transparent"?c+="<a:noFill/>":n.chartColorsOpacity?c+="<a:solidFill>"+Kr(h,`<a:alpha val="${Math.round(n.chartColorsOpacity*1e3)}"/>`)+"</a:solidFill>":c+="<a:solidFill>"+Kr(h)+"</a:solidFill>",e===Nt.LINE||e===Nt.RADAR?n.lineSize===0?c+="<a:ln><a:noFill/></a:ln>":(c+=`<a:ln w="${Wn(n.lineSize)}" cap="${s1(n.lineCap)}"><a:solidFill>${Kr(h)}</a:solidFill>`,c+='<a:prstDash val="'+(n.lineDash||"solid")+'"/><a:round/></a:ln>'):n.dataBorder&&(c+=`<a:ln w="${Wn(n.dataBorder.pt)}" cap="${s1(n.lineCap)}"><a:solidFill>${Kr(n.dataBorder.color)}</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>`),c+=pf(n.shadow,hf),c+=" </c:spPr>",c+=' <c:invertIfNegative val="0"/>',e!==Nt.RADAR&&(c+="<c:dLbls>",c+=`<c:numFmt formatCode="${Zn(n.dataLabelFormatCode)||"General"}" sourceLinked="0"/>`,n.dataLabelBkgrdColors&&(c+=`<c:spPr><a:solidFill>${Kr(h)}</a:solidFill></c:spPr>`),c+="<c:txPr><a:bodyPr/><a:lstStyle/><a:p><a:pPr>",c+=`<a:defRPr b="${n.dataLabelFontBold?1:0}" i="${n.dataLabelFontItalic?1:0}" strike="noStrike" sz="${Math.round((n.dataLabelFontSize||Xs)*100)}" u="none">`,c+=`<a:solidFill>${Kr(n.dataLabelColor||zo)}</a:solidFill>`,c+=`<a:latin typeface="${n.dataLabelFontFace||"Arial"}"/>`,c+="</a:defRPr></a:pPr></a:p></c:txPr>",n.dataLabelPosition&&(c+=`<c:dLblPos val="${n.dataLabelPosition}"/>`),c+='<c:showLegendKey val="0"/>',c+=`<c:showVal val="${n.showValue?"1":"0"}"/>`,c+=`<c:showCatName val="0"/><c:showSerName val="${n.showSerName?"1":"0"}"/><c:showPercent val="0"/><c:showBubbleSize val="0"/>`,c+=`<c:showLeaderLines val="${n.showLeaderLines?"1":"0"}"/>`,c+="</c:dLbls>"),(e===Nt.LINE||e===Nt.RADAR)&&(c+="<c:marker>",c+=' <c:symbol val="'+n.lineDataSymbol+'"/>',n.lineDataSymbolSize&&(c+=`<c:size val="${n.lineDataSymbolSize}"/>`),c+=" <c:spPr>",c+=` <a:solidFill>${Kr(n.chartColors[u._dataIndex+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):u._dataIndex])}</a:solidFill>`,c+=` <a:ln w="${n.lineDataSymbolLineSize}" cap="flat"><a:solidFill>${Kr(n.lineDataSymbolLineColor||h)}</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>`,c+=" <a:effectLst/>",c+=" </c:spPr>",c+="</c:marker>"),(e===Nt.BAR||e===Nt.BAR3D)&&t.length===1&&(n.chartColors&&n.chartColors!==Qm&&n.chartColors.length>1||!((d=n.invertedColors)===null||d===void 0)&&d.length)&&u.values.forEach((f,g)=>{const y=f<0?n.invertedColors||n.chartColors||Qm:n.chartColors||[];c+=" <c:dPt>",c+=` <c:idx val="${g}"/>`,c+=' <c:invertIfNegative val="0"/>',c+=' <c:bubble3D val="0"/>',c+=" <c:spPr>",n.lineSize===0?c+="<a:ln><a:noFill/></a:ln>":e===Nt.BAR?(c+="<a:solidFill>",c+=' <a:srgbClr val="'+y[g%y.length]+'"/>',c+="</a:solidFill>"):(c+="<a:ln>",c+=" <a:solidFill>",c+=' <a:srgbClr val="'+y[g%y.length]+'"/>',c+=" </a:solidFill>",c+="</a:ln>"),c+=pf(n.shadow,hf),c+=" </c:spPr>",c+=" </c:dPt>"}),c+="<c:cat>",n.catLabelFormatCode?(c+=" <c:numRef>",c+=` <c:f>Sheet1!$A$2:$A$${u.labels[0].length+1}</c:f>`,c+=" <c:numCache>",c+=" <c:formatCode>"+(n.catLabelFormatCode||"General")+"</c:formatCode>",c+=` <c:ptCount val="${u.labels[0].length}"/>`,u.labels[0].forEach((f,g)=>c+=`<c:pt idx="${g}"><c:v>${Zn(f)}</c:v></c:pt>`),c+=" </c:numCache>",c+=" </c:numRef>"):(c+=" <c:multiLvlStrRef>",c+=` <c:f>Sheet1!$A$2:$${ci(u.labels.length)}$${u.labels[0].length+1}</c:f>`,c+=" <c:multiLvlStrCache>",c+=` <c:ptCount val="${u.labels[0].length}"/>`,u.labels.forEach(f=>{c+="<c:lvl>",f.forEach((g,y)=>c+=`<c:pt idx="${y}"><c:v>${Zn(g)}</c:v></c:pt>`),c+="</c:lvl>"}),c+=" </c:multiLvlStrCache>",c+=" </c:multiLvlStrRef>"),c+="</c:cat>",c+="<c:val>",c+=" <c:numRef>",c+=`<c:f>Sheet1!$${ci(u._dataIndex+u.labels.length+1)}$2:$${ci(u._dataIndex+u.labels.length+1)}$${u.labels[0].length+1}</c:f>`,c+=" <c:numCache>",c+=" <c:formatCode>"+(n.valLabelFormatCode||n.dataTableFormatCode||"General")+"</c:formatCode>",c+=` <c:ptCount val="${u.labels[0].length}"/>`,u.values.forEach((f,g)=>c+=`<c:pt idx="${g}"><c:v>${f||f===0?f:""}</c:v></c:pt>`),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:val>",e===Nt.LINE&&(c+='<c:smooth val="'+(n.lineSmooth?"1":"0")+'"/>'),c+="</c:ser>"}),c+=" <c:dLbls>",c+=` <c:numFmt formatCode="${Zn(n.dataLabelFormatCode)||"General"}" sourceLinked="0"/>`,c+=" <c:txPr>",c+=" <a:bodyPr/>",c+=" <a:lstStyle/>",c+=" <a:p><a:pPr>",c+=` <a:defRPr b="${n.dataLabelFontBold?1:0}" i="${n.dataLabelFontItalic?1:0}" strike="noStrike" sz="${Math.round((n.dataLabelFontSize||Xs)*100)}" u="none">`,c+=" <a:solidFill>"+Kr(n.dataLabelColor||zo)+"</a:solidFill>",c+=' <a:latin typeface="'+(n.dataLabelFontFace||"Arial")+'"/>',c+=" </a:defRPr>",c+=" </a:pPr></a:p>",c+=" </c:txPr>",n.dataLabelPosition&&(c+=' <c:dLblPos val="'+n.dataLabelPosition+'"/>'),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="'+(n.showValue?"1":"0")+'"/>',c+=' <c:showCatName val="0"/>',c+=' <c:showSerName val="'+(n.showSerName?"1":"0")+'"/>',c+=' <c:showPercent val="0"/>',c+=' <c:showBubbleSize val="0"/>',c+=` <c:showLeaderLines val="${n.showLeaderLines?"1":"0"}"/>`,c+=" </c:dLbls>",e===Nt.BAR?(c+=` <c:gapWidth val="${n.barGapWidthPct}"/>`,c+=` <c:overlap val="${(n.barGrouping||"").includes("tacked")?100:n.barOverlapPct?n.barOverlapPct:0}"/>`):e===Nt.BAR3D?(c+=` <c:gapWidth val="${n.barGapWidthPct}"/>`,c+=` <c:gapDepth val="${n.barGapDepthPct}"/>`,c+=' <c:shape val="'+n.bar3DShape+'"/>'):e===Nt.LINE&&(c+=' <c:marker val="1"/>'),c+=`<c:axId val="${i}"/><c:axId val="${r}"/><c:axId val="${iY}"/>`,c+=`</c:${e}Chart>`;break;case Nt.SCATTER:c+="<c:"+e+"Chart>",c+='<c:scatterStyle val="lineMarker"/>',c+='<c:varyColors val="0"/>',o=-1,t.filter((u,d)=>d>0).forEach((u,d)=>{o++,c+="<c:ser>",c+=` <c:idx val="${d}"/>`,c+=` <c:order val="${d}"/>`,c+=" <c:tx>",c+=" <c:strRef>",c+=` <c:f>Sheet1!$${ci(d+2)}$1</c:f>`,c+=' <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>'+Zn(u.name)+"</c:v></c:pt></c:strCache>",c+=" </c:strRef>",c+=" </c:tx>",c+=" <c:spPr>";{const h=n.chartColors[o%n.chartColors.length];h==="transparent"?c+="<a:noFill/>":n.chartColorsOpacity?c+="<a:solidFill>"+Kr(h,'<a:alpha val="'+Math.round(n.chartColorsOpacity*1e3).toString()+'"/>')+"</a:solidFill>":c+="<a:solidFill>"+Kr(h)+"</a:solidFill>",n.lineSize===0?c+="<a:ln><a:noFill/></a:ln>":(c+=`<a:ln w="${Wn(n.lineSize)}" cap="${s1(n.lineCap)}"><a:solidFill>${Kr(h)}</a:solidFill>`,c+=`<a:prstDash val="${n.lineDash||"solid"}"/><a:round/></a:ln>`),c+=pf(n.shadow,hf)}if(c+=" </c:spPr>",c+="<c:marker>",c+=' <c:symbol val="'+n.lineDataSymbol+'"/>',n.lineDataSymbolSize&&(c+=`<c:size val="${n.lineDataSymbolSize}"/>`),c+="<c:spPr>",c+=`<a:solidFill>${Kr(n.chartColors[d+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):d])}</a:solidFill>`,c+=`<a:ln w="${n.lineDataSymbolLineSize}" cap="flat"><a:solidFill>${Kr(n.lineDataSymbolLineColor||n.chartColors[o%n.chartColors.length])}</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>`,c+="<a:effectLst/>",c+="</c:spPr>",c+="</c:marker>",n.showLabel){const h=o1("-xxxx-xxxx-xxxx-xxxxxxxxxxxx");u.labels[0]&&(n.dataLabelFormatScatter==="custom"||n.dataLabelFormatScatter==="customXY")&&(c+="<c:dLbls>",u.labels[0].forEach((f,g)=>{(n.dataLabelFormatScatter==="custom"||n.dataLabelFormatScatter==="customXY")&&(c+=" <c:dLbl>",c+=` <c:idx val="${g}"/>`,c+=" <c:tx>",c+=" <c:rich>",c+=" <a:bodyPr>",c+=" <a:spAutoFit/>",c+=" </a:bodyPr>",c+=" <a:lstStyle/>",c+=" <a:p>",c+=" <a:pPr>",c+=" <a:defRPr/>",c+=" </a:pPr>",c+=" <a:r>",c+=' <a:rPr lang="'+(n.lang||"en-US")+'" dirty="0"/>',c+=" <a:t>"+Zn(f)+"</a:t>",c+=" </a:r>",n.dataLabelFormatScatter==="customXY"&&!/^ *$/.test(f)&&(c+=" <a:r>",c+=' <a:rPr lang="'+(n.lang||"en-US")+'" baseline="0" dirty="0"/>',c+=" <a:t> (</a:t>",c+=" </a:r>",c+=' <a:fld id="{'+o1("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")+'}" type="XVALUE">',c+=' <a:rPr lang="'+(n.lang||"en-US")+'" baseline="0"/>',c+=" <a:pPr>",c+=" <a:defRPr/>",c+=" </a:pPr>",c+=" <a:t>["+Zn(u.name)+"</a:t>",c+=" </a:fld>",c+=" <a:r>",c+=' <a:rPr lang="'+(n.lang||"en-US")+'" baseline="0" dirty="0"/>',c+=" <a:t>, </a:t>",c+=" </a:r>",c+=' <a:fld id="{'+o1("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")+'}" type="YVALUE">',c+=' <a:rPr lang="'+(n.lang||"en-US")+'" baseline="0"/>',c+=" <a:pPr>",c+=" <a:defRPr/>",c+=" </a:pPr>",c+=" <a:t>["+Zn(u.name)+"]</a:t>",c+=" </a:fld>",c+=" <a:r>",c+=' <a:rPr lang="'+(n.lang||"en-US")+'" baseline="0" dirty="0"/>',c+=" <a:t>)</a:t>",c+=" </a:r>",c+=' <a:endParaRPr lang="'+(n.lang||"en-US")+'" dirty="0"/>'),c+=" </a:p>",c+=" </c:rich>",c+=" </c:tx>",c+=" <c:spPr>",c+=" <a:noFill/>",c+=" <a:ln>",c+=" <a:noFill/>",c+=" </a:ln>",c+=" <a:effectLst/>",c+=" </c:spPr>",n.dataLabelPosition&&(c+=' <c:dLblPos val="'+n.dataLabelPosition+'"/>'),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="0"/>',c+=' <c:showCatName val="0"/>',c+=' <c:showSerName val="0"/>',c+=' <c:showPercent val="0"/>',c+=' <c:showBubbleSize val="0"/>',c+=' <c:showLeaderLines val="1"/>',c+=" <c:extLst>",c+=' <c:ext uri="{CE6537A1-D6FC-4f65-9D91-7224C49458BB}" xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart"/>',c+=' <c:ext uri="{C3380CC4-5D6E-409C-BE32-E72D297353CC}" xmlns:c16="http://schemas.microsoft.com/office/drawing/2014/chart">',c+=` <c16:uniqueId val="{${"00000000".substring(0,8-(g+1).toString().length).toString()}${g+1}${h}}"/>`,c+=" </c:ext>",c+=" </c:extLst>",c+="</c:dLbl>")}),c+="</c:dLbls>"),n.dataLabelFormatScatter==="XY"&&(c+="<c:dLbls>",c+=" <c:spPr>",c+=" <a:noFill/>",c+=" <a:ln>",c+=" <a:noFill/>",c+=" </a:ln>",c+=" <a:effectLst/>",c+=" </c:spPr>",c+=" <c:txPr>",c+=" <a:bodyPr>",c+=" <a:spAutoFit/>",c+=" </a:bodyPr>",c+=" <a:lstStyle/>",c+=" <a:p>",c+=" <a:pPr>",c+=" <a:defRPr/>",c+=" </a:pPr>",c+=' <a:endParaRPr lang="en-US"/>',c+=" </a:p>",c+=" </c:txPr>",n.dataLabelPosition&&(c+=' <c:dLblPos val="'+n.dataLabelPosition+'"/>'),c+=' <c:showLegendKey val="0"/>',c+=` <c:showVal val="${n.showLabel?"1":"0"}"/>`,c+=` <c:showCatName val="${n.showLabel?"1":"0"}"/>`,c+=` <c:showSerName val="${n.showSerName?"1":"0"}"/>`,c+=' <c:showPercent val="0"/>',c+=' <c:showBubbleSize val="0"/>',c+=" <c:extLst>",c+=' <c:ext uri="{CE6537A1-D6FC-4f65-9D91-7224C49458BB}" xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart">',c+=' <c15:showLeaderLines val="1"/>',c+=" </c:ext>",c+=" </c:extLst>",c+="</c:dLbls>")}t.length===1&&n.chartColors!==Qm&&u.values.forEach((h,f)=>{const g=h<0?n.invertedColors||n.chartColors||Qm:n.chartColors||[];c+=" <c:dPt>",c+=` <c:idx val="${f}"/>`,c+=' <c:invertIfNegative val="0"/>',c+=' <c:bubble3D val="0"/>',c+=" <c:spPr>",n.lineSize===0?c+="<a:ln><a:noFill/></a:ln>":(c+="<a:solidFill>",c+=' <a:srgbClr val="'+g[f%g.length]+'"/>',c+="</a:solidFill>"),c+=pf(n.shadow,hf),c+=" </c:spPr>",c+=" </c:dPt>"}),c+="<c:xVal>",c+=" <c:numRef>",c+=` <c:f>Sheet1!$A$2:$A$${t[0].values.length+1}</c:f>`,c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=` <c:ptCount val="${t[0].values.length}"/>`,t[0].values.forEach((h,f)=>{c+=`<c:pt idx="${f}"><c:v>${h||h===0?h:""}</c:v></c:pt>`}),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:xVal>",c+="<c:yVal>",c+=" <c:numRef>",c+=` <c:f>Sheet1!$${ci(d+2)}$2:$${ci(d+2)}$${t[0].values.length+1}</c:f>`,c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=` <c:ptCount val="${t[0].values.length}"/>`,t[0].values.forEach((h,f)=>{c+=`<c:pt idx="${f}"><c:v>${u.values[f]||u.values[f]===0?u.values[f]:""}</c:v></c:pt>`}),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:yVal>",c+='<c:smooth val="'+(n.lineSmooth?"1":"0")+'"/>',c+="</c:ser>"}),c+=" <c:dLbls>",c+=` <c:numFmt formatCode="${Zn(n.dataLabelFormatCode)||"General"}" sourceLinked="0"/>`,c+=" <c:txPr>",c+=" <a:bodyPr/>",c+=" <a:lstStyle/>",c+=" <a:p><a:pPr>",c+=` <a:defRPr b="${n.dataLabelFontBold?"1":"0"}" i="${n.dataLabelFontItalic?"1":"0"}" strike="noStrike" sz="${Math.round((n.dataLabelFontSize||Xs)*100)}" u="none">`,c+=" <a:solidFill>"+Kr(n.dataLabelColor||zo)+"</a:solidFill>",c+=' <a:latin typeface="'+(n.dataLabelFontFace||"Arial")+'"/>',c+=" </a:defRPr>",c+=" </a:pPr></a:p>",c+=" </c:txPr>",n.dataLabelPosition&&(c+=' <c:dLblPos val="'+n.dataLabelPosition+'"/>'),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="'+(n.showValue?"1":"0")+'"/>',c+=' <c:showCatName val="0"/>',c+=' <c:showSerName val="'+(n.showSerName?"1":"0")+'"/>',c+=' <c:showPercent val="0"/>',c+=' <c:showBubbleSize val="0"/>',c+=" </c:dLbls>",c+=`<c:axId val="${i}"/><c:axId val="${r}"/>`,c+="</c:"+e+"Chart>";break;case Nt.BUBBLE:case Nt.BUBBLE3D:c+="<c:bubbleChart>",c+='<c:varyColors val="0"/>',o=-1,t.filter((u,d)=>d>0).forEach((u,d)=>{o++,c+="<c:ser>",c+=` <c:idx val="${d}"/>`,c+=` <c:order val="${d}"/>`,c+=" <c:tx>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$"+ci(s+1)+"$1</c:f>",c+=' <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>'+Zn(u.name)+"</c:v></c:pt></c:strCache>",c+=" </c:strRef>",c+=" </c:tx>";{c+="<c:spPr>";const h=n.chartColors[o%n.chartColors.length];h==="transparent"?c+="<a:noFill/>":n.chartColorsOpacity?c+=`<a:solidFill>${Kr(h,'<a:alpha val="'+Math.round(n.chartColorsOpacity*1e3).toString()+'"/>')}</a:solidFill>`:c+="<a:solidFill>"+Kr(h)+"</a:solidFill>",n.lineSize===0?c+="<a:ln><a:noFill/></a:ln>":n.dataBorder?c+=`<a:ln w="${Wn(n.dataBorder.pt)}" cap="flat"><a:solidFill>${Kr(n.dataBorder.color)}</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>`:(c+=`<a:ln w="${Wn(n.lineSize)}" cap="flat"><a:solidFill>${Kr(h)}</a:solidFill>`,c+=`<a:prstDash val="${n.lineDash||"solid"}"/><a:round/></a:ln>`),c+=pf(n.shadow,hf),c+="</c:spPr>"}c+="<c:xVal>",c+=" <c:numRef>",c+=` <c:f>Sheet1!$A$2:$A$${t[0].values.length+1}</c:f>`,c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=` <c:ptCount val="${t[0].values.length}"/>`,t[0].values.forEach((h,f)=>{c+=`<c:pt idx="${f}"><c:v>${h||h===0?h:""}</c:v></c:pt>`}),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:xVal>",c+="<c:yVal>",c+=" <c:numRef>",c+=`<c:f>Sheet1!$${ci(s+1)}$2:$${ci(s+1)}$${t[0].values.length+1}</c:f>`,s++,c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=` <c:ptCount val="${t[0].values.length}"/>`,t[0].values.forEach((h,f)=>{c+=`<c:pt idx="${f}"><c:v>${u.values[f]||u.values[f]===0?u.values[f]:""}</c:v></c:pt>`}),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:yVal>",c+=" <c:bubbleSize>",c+=" <c:numRef>",c+=`<c:f>Sheet1!$${ci(s+1)}$2:$${ci(s+1)}$${u.sizes.length+1}</c:f>`,s++,c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=` <c:ptCount val="${u.sizes.length}"/>`,u.sizes.forEach((h,f)=>{c+=`<c:pt idx="${f}"><c:v>${h||""}</c:v></c:pt>`}),c+=" </c:numCache>",c+=" </c:numRef>",c+=" </c:bubbleSize>",c+=' <c:bubble3D val="'+(e===Nt.BUBBLE3D?"1":"0")+'"/>',c+="</c:ser>"}),c+="<c:dLbls>",c+=`<c:numFmt formatCode="${Zn(n.dataLabelFormatCode)||"General"}" sourceLinked="0"/>`,c+="<c:txPr><a:bodyPr/><a:lstStyle/><a:p><a:pPr>",c+=`<a:defRPr b="${n.dataLabelFontBold?1:0}" i="${n.dataLabelFontItalic?1:0}" strike="noStrike" sz="${Math.round(Math.round(n.dataLabelFontSize||Xs)*100)}" u="none">`,c+=`<a:solidFill>${Kr(n.dataLabelColor||zo)}</a:solidFill>`,c+=`<a:latin typeface="${n.dataLabelFontFace||"Arial"}"/>`,c+="</a:defRPr></a:pPr></a:p></c:txPr>",n.dataLabelPosition&&(c+=`<c:dLblPos val="${n.dataLabelPosition}"/>`),c+='<c:showLegendKey val="0"/>',c+=`<c:showVal val="${n.showValue?"1":"0"}"/>`,c+=`<c:showCatName val="0"/><c:showSerName val="${n.showSerName?"1":"0"}"/><c:showPercent val="0"/><c:showBubbleSize val="0"/>`,c+="<c:extLst>",c+=' <c:ext uri="{CE6537A1-D6FC-4f65-9D91-7224C49458BB}" xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart">',c+=' <c15:showLeaderLines val="'+(n.showLeaderLines?"1":"0")+'"/>',c+=" </c:ext>",c+="</c:extLst>",c+="</c:dLbls>",c+=`<c:axId val="${i}"/><c:axId val="${r}"/>`,c+="</c:bubbleChart>";break;case Nt.DOUGHNUT:case Nt.PIE:l=t[0],c+="<c:"+e+"Chart>",c+=' <c:varyColors val="1"/>',c+="<c:ser>",c+=' <c:idx val="0"/>',c+=' <c:order val="0"/>',c+=" <c:tx>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$B$1</c:f>",c+=" <c:strCache>",c+=' <c:ptCount val="1"/>',c+=' <c:pt idx="0"><c:v>'+Zn(l.name)+"</c:v></c:pt>",c+=" </c:strCache>",c+=" </c:strRef>",c+=" </c:tx>",c+=" <c:spPr>",c+=' <a:solidFill><a:schemeClr val="accent1"/></a:solidFill>',c+=' <a:ln w="9525" cap="flat"><a:solidFill><a:srgbClr val="F9F9F9"/></a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>',n.dataNoEffects?c+="<a:effectLst/>":c+=pf(n.shadow,hf),c+=" </c:spPr>",l.labels[0].forEach((u,d)=>{c+="<c:dPt>",c+=` <c:idx val="${d}"/>`,c+=' <c:bubble3D val="0"/>',c+=" <c:spPr>",c+=`<a:solidFill>${Kr(n.chartColors[d+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):d])}</a:solidFill>`,n.dataBorder&&(c+=`<a:ln w="${Wn(n.dataBorder.pt)}" cap="flat"><a:solidFill>${Kr(n.dataBorder.color)}</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>`),c+=pf(n.shadow,hf),c+=" </c:spPr>",c+="</c:dPt>"}),c+="<c:dLbls>",l.labels[0].forEach((u,d)=>{c+="<c:dLbl>",c+=` <c:idx val="${d}"/>`,c+=` <c:numFmt formatCode="${Zn(n.dataLabelFormatCode)||"General"}" sourceLinked="0"/>`,c+=" <c:spPr/><c:txPr>",c+=" <a:bodyPr/><a:lstStyle/>",c+=" <a:p><a:pPr>",c+=` <a:defRPr sz="${Math.round((n.dataLabelFontSize||Xs)*100)}" b="${n.dataLabelFontBold?1:0}" i="${n.dataLabelFontItalic?1:0}" u="none" strike="noStrike">`,c+=" <a:solidFill>"+Kr(n.dataLabelColor||zo)+"</a:solidFill>",c+=` <a:latin typeface="${n.dataLabelFontFace||"Arial"}"/>`,c+=" </a:defRPr>",c+=" </a:pPr></a:p>",c+=" </c:txPr>",e===Nt.PIE&&n.dataLabelPosition&&(c+=`<c:dLblPos val="${n.dataLabelPosition}"/>`),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="'+(n.showValue?"1":"0")+'"/>',c+=' <c:showCatName val="'+(n.showLabel?"1":"0")+'"/>',c+=' <c:showSerName val="'+(n.showSerName?"1":"0")+'"/>',c+=' <c:showPercent val="'+(n.showPercent?"1":"0")+'"/>',c+=' <c:showBubbleSize val="0"/>',c+=" </c:dLbl>"}),c+=` <c:numFmt formatCode="${Zn(n.dataLabelFormatCode)||"General"}" sourceLinked="0"/>`,c+=" <c:txPr>",c+=" <a:bodyPr/>",c+=" <a:lstStyle/>",c+=" <a:p>",c+=" <a:pPr>",c+=` <a:defRPr sz="1800" b="${n.dataLabelFontBold?"1":"0"}" i="${n.dataLabelFontItalic?"1":"0"}" u="none" strike="noStrike">`,c+=' <a:solidFill><a:srgbClr val="000000"/></a:solidFill><a:latin typeface="Arial"/>',c+=" </a:defRPr>",c+=" </a:pPr>",c+=" </a:p>",c+=" </c:txPr>",c+=e===Nt.PIE?'<c:dLblPos val="ctr"/>':"",c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="0"/>',c+=' <c:showCatName val="1"/>',c+=' <c:showSerName val="0"/>',c+=' <c:showPercent val="1"/>',c+=' <c:showBubbleSize val="0"/>',c+=` <c:showLeaderLines val="${n.showLeaderLines?"1":"0"}"/>`,c+="</c:dLbls>",c+="<c:cat>",c+=" <c:strRef>",c+=` <c:f>Sheet1!$A$2:$A$${l.labels[0].length+1}</c:f>`,c+=" <c:strCache>",c+=` <c:ptCount val="${l.labels[0].length}"/>`,l.labels[0].forEach((u,d)=>{c+=`<c:pt idx="${d}"><c:v>${Zn(u)}</c:v></c:pt>`}),c+=" </c:strCache>",c+=" </c:strRef>",c+="</c:cat>",c+=" <c:val>",c+=" <c:numRef>",c+=` <c:f>Sheet1!$B$2:$B$${l.labels[0].length+1}</c:f>`,c+=" <c:numCache>",c+=` <c:ptCount val="${l.labels[0].length}"/>`,l.values.forEach((u,d)=>{c+=`<c:pt idx="${d}"><c:v>${u||u===0?u:""}</c:v></c:pt>`}),c+=" </c:numCache>",c+=" </c:numRef>",c+=" </c:val>",c+=" </c:ser>",c+=` <c:firstSliceAng val="${n.firstSliceAng?Math.round(n.firstSliceAng):0}"/>`,e===Nt.DOUGHNUT&&(c+=`<c:holeSize val="${typeof n.holeSize=="number"?n.holeSize:"50"}"/>`),c+="</c:"+e+"Chart>";break;default:c+="";break}return c}function rT(e,t,n){let r="";return e._type===Nt.SCATTER||e._type===Nt.BUBBLE||e._type===Nt.BUBBLE3D?r+="<c:valAx>":r+="<c:"+(e.catLabelFormatCode?"dateAx":"catAx")+">",r+=' <c:axId val="'+t+'"/>',r+=" <c:scaling>",r+='<c:orientation val="'+(e.catAxisOrientation||(e.barDir==="col","minMax"))+'"/>',(e.catAxisMaxVal||e.catAxisMaxVal===0)&&(r+=`<c:max val="${e.catAxisMaxVal}"/>`),(e.catAxisMinVal||e.catAxisMinVal===0)&&(r+=`<c:min val="${e.catAxisMinVal}"/>`),r+="</c:scaling>",r+=' <c:delete val="'+(e.catAxisHidden?"1":"0")+'"/>',r+=' <c:axPos val="'+(e.barDir==="col"?"b":"l")+'"/>',r+=e.catGridLine.style!=="none"?uR(e.catGridLine):"",e.showCatAxisTitle&&(r+=D2({color:e.catAxisTitleColor,fontFace:e.catAxisTitleFontFace,fontSize:e.catAxisTitleFontSize,titleRotate:e.catAxisTitleRotate,title:e.catAxisTitle||"Axis Title"})),e._type===Nt.SCATTER||e._type===Nt.BUBBLE||e._type===Nt.BUBBLE3D?r+=' <c:numFmt formatCode="'+(e.valAxisLabelFormatCode?Zn(e.valAxisLabelFormatCode):"General")+'" sourceLinked="1"/>':r+=' <c:numFmt formatCode="'+(Zn(e.catLabelFormatCode)||"General")+'" sourceLinked="1"/>',e._type===Nt.SCATTER?(r+=' <c:majorTickMark val="none"/>',r+=' <c:minorTickMark val="none"/>',r+=' <c:tickLblPos val="nextTo"/>'):(r+=' <c:majorTickMark val="'+(e.catAxisMajorTickMark||"out")+'"/>',r+=' <c:minorTickMark val="'+(e.catAxisMinorTickMark||"none")+'"/>',r+=' <c:tickLblPos val="'+(e.catAxisLabelPos||(e.barDir==="col"?"low":"nextTo"))+'"/>'),r+=" <c:spPr>",r+=` <a:ln w="${e.catAxisLineSize?Wn(e.catAxisLineSize):jy}" cap="flat">`,r+=e.catAxisLineShow?"<a:solidFill>"+Kr(e.catAxisLineColor||Tf.color)+"</a:solidFill>":"<a:noFill/>",r+=' <a:prstDash val="'+(e.catAxisLineStyle||"solid")+'"/>',r+=" <a:round/>",r+=" </a:ln>",r+=" </c:spPr>",r+=" <c:txPr>",e.catAxisLabelRotate?r+=`<a:bodyPr rot="${_f(e.catAxisLabelRotate)}"/>`:r+="<a:bodyPr/>",r+=" <a:lstStyle/>",r+=" <a:p>",r+=" <a:pPr>",r+=` <a:defRPr sz="${Math.round((e.catAxisLabelFontSize||Xs)*100)}" b="${e.catAxisLabelFontBold?1:0}" i="${e.catAxisLabelFontItalic?1:0}" u="none" strike="noStrike">`,r+=" <a:solidFill>"+Kr(e.catAxisLabelColor||zo)+"</a:solidFill>",r+=' <a:latin typeface="'+(e.catAxisLabelFontFace||"Arial")+'"/>',r+=" </a:defRPr>",r+=" </a:pPr>",r+=' <a:endParaRPr lang="'+(e.lang||"en-US")+'"/>',r+=" </a:p>",r+=" </c:txPr>",r+=' <c:crossAx val="'+n+'"/>',r+=` <c:${typeof e.valAxisCrossesAt=="number"?"crossesAt":"crosses"} val="${e.valAxisCrossesAt||"autoZero"}"/>`,r+=' <c:auto val="1"/>',r+=' <c:lblAlgn val="ctr"/>',r+=` <c:noMultiLvlLbl val="${e.catAxisMultiLevelLabels?0:1}"/>`,e.catAxisLabelFrequency&&(r+=' <c:tickLblSkip val="'+e.catAxisLabelFrequency+'"/>'),(e.catLabelFormatCode||e._type===Nt.SCATTER||e._type===Nt.BUBBLE||e._type===Nt.BUBBLE3D)&&(e.catLabelFormatCode&&(["catAxisBaseTimeUnit","catAxisMajorTimeUnit","catAxisMinorTimeUnit"].forEach(i=>{e[i]&&(typeof e[i]!="string"||!["days","months","years"].includes(e[i].toLowerCase()))&&(console.warn(`"${i}" must be one of: 'days','months','years' !`),e[i]=null)}),e.catAxisBaseTimeUnit&&(r+='<c:baseTimeUnit val="'+e.catAxisBaseTimeUnit.toLowerCase()+'"/>'),e.catAxisMajorTimeUnit&&(r+='<c:majorTimeUnit val="'+e.catAxisMajorTimeUnit.toLowerCase()+'"/>'),e.catAxisMinorTimeUnit&&(r+='<c:minorTimeUnit val="'+e.catAxisMinorTimeUnit.toLowerCase()+'"/>')),e.catAxisMajorUnit&&(r+=`<c:majorUnit val="${e.catAxisMajorUnit}"/>`),e.catAxisMinorUnit&&(r+=`<c:minorUnit val="${e.catAxisMinorUnit}"/>`)),e._type===Nt.SCATTER||e._type===Nt.BUBBLE||e._type===Nt.BUBBLE3D?r+="</c:valAx>":r+="</c:"+(e.catLabelFormatCode?"dateAx":"catAx")+">",r}function iT(e,t){let n=t===Pc?e.barDir==="col"?"l":"b":e.barDir!=="col"?"r":"t";t===a1&&(n="r");const r=t===Pc?Jm:Q_;let i="";return i+="<c:valAx>",i+=' <c:axId val="'+t+'"/>',i+=" <c:scaling>",e.valAxisLogScaleBase&&(i+=`<c:logBase val="${e.valAxisLogScaleBase}"/>`),i+='<c:orientation val="'+(e.valAxisOrientation||(e.barDir==="col","minMax"))+'"/>',(e.valAxisMaxVal||e.valAxisMaxVal===0)&&(i+=`<c:max val="${e.valAxisMaxVal}"/>`),(e.valAxisMinVal||e.valAxisMinVal===0)&&(i+=`<c:min val="${e.valAxisMinVal}"/>`),i+=" </c:scaling>",i+=` <c:delete val="${e.valAxisHidden?1:0}"/>`,i+=' <c:axPos val="'+n+'"/>',e.valGridLine.style!=="none"&&(i+=uR(e.valGridLine)),e.showValAxisTitle&&(i+=D2({color:e.valAxisTitleColor,fontFace:e.valAxisTitleFontFace,fontSize:e.valAxisTitleFontSize,titleRotate:e.valAxisTitleRotate,title:e.valAxisTitle||"Axis Title"})),i+=`<c:numFmt formatCode="${e.valAxisLabelFormatCode?Zn(e.valAxisLabelFormatCode):"General"}" sourceLinked="0"/>`,e._type===Nt.SCATTER?(i+=' <c:majorTickMark val="none"/>',i+=' <c:minorTickMark val="none"/>',i+=' <c:tickLblPos val="nextTo"/>'):(i+=' <c:majorTickMark val="'+(e.valAxisMajorTickMark||"out")+'"/>',i+=' <c:minorTickMark val="'+(e.valAxisMinorTickMark||"none")+'"/>',i+=' <c:tickLblPos val="'+(e.valAxisLabelPos||(e.barDir==="col"?"nextTo":"low"))+'"/>'),i+=" <c:spPr>",i+=` <a:ln w="${e.valAxisLineSize?Wn(e.valAxisLineSize):jy}" cap="flat">`,i+=e.valAxisLineShow?"<a:solidFill>"+Kr(e.valAxisLineColor||Tf.color)+"</a:solidFill>":"<a:noFill/>",i+=' <a:prstDash val="'+(e.valAxisLineStyle||"solid")+'"/>',i+=" <a:round/>",i+=" </a:ln>",i+=" </c:spPr>",i+=" <c:txPr>",i+=` <a:bodyPr${e.valAxisLabelRotate?' rot="'+_f(e.valAxisLabelRotate).toString()+'"':""}/>`,i+=" <a:lstStyle/>",i+=" <a:p>",i+=" <a:pPr>",i+=` <a:defRPr sz="${Math.round((e.valAxisLabelFontSize||Xs)*100)}" b="${e.valAxisLabelFontBold?1:0}" i="${e.valAxisLabelFontItalic?1:0}" u="none" strike="noStrike">`,i+=" <a:solidFill>"+Kr(e.valAxisLabelColor||zo)+"</a:solidFill>",i+=' <a:latin typeface="'+(e.valAxisLabelFontFace||"Arial")+'"/>',i+=" </a:defRPr>",i+=" </a:pPr>",i+=' <a:endParaRPr lang="'+(e.lang||"en-US")+'"/>',i+=" </a:p>",i+=" </c:txPr>",i+=' <c:crossAx val="'+r+'"/>',typeof e.catAxisCrossesAt=="number"?i+=` <c:crossesAt val="${e.catAxisCrossesAt}"/>`:typeof e.catAxisCrossesAt=="string"?i+=' <c:crosses val="'+e.catAxisCrossesAt+'"/>':i+=' <c:crosses val="'+(n==="r"||n==="t"?"max":"autoZero")+'"/>',i+=' <c:crossBetween val="'+(e._type===Nt.SCATTER||Array.isArray(e._type)&&e._type.filter(a=>a.type===Nt.AREA).length>0?"midCat":"between")+'"/>',e.valAxisMajorUnit&&(i+=` <c:majorUnit val="${e.valAxisMajorUnit}"/>`),e.valAxisDisplayUnit&&(i+=`<c:dispUnits><c:builtInUnit val="${e.valAxisDisplayUnit}"/>${e.valAxisDisplayUnitLabel?"<c:dispUnitsLbl/>":""}</c:dispUnits>`),i+="</c:valAx>",i}function sIe(e,t,n){let r="";return r+="<c:serAx>",r+=' <c:axId val="'+t+'"/>',r+=' <c:scaling><c:orientation val="'+(e.serAxisOrientation||(e.barDir==="col","minMax"))+'"/></c:scaling>',r+=' <c:delete val="'+(e.serAxisHidden?"1":"0")+'"/>',r+=' <c:axPos val="'+(e.barDir==="col"?"b":"l")+'"/>',r+=e.serGridLine.style!=="none"?uR(e.serGridLine):"",e.showSerAxisTitle&&(r+=D2({color:e.serAxisTitleColor,fontFace:e.serAxisTitleFontFace,fontSize:e.serAxisTitleFontSize,titleRotate:e.serAxisTitleRotate,title:e.serAxisTitle||"Axis Title"})),r+=` <c:numFmt formatCode="${Zn(e.serLabelFormatCode)||"General"}" sourceLinked="0"/>`,r+=' <c:majorTickMark val="out"/>',r+=' <c:minorTickMark val="none"/>',r+=` <c:tickLblPos val="${e.serAxisLabelPos||e.barDir==="col"?"low":"nextTo"}"/>`,r+=" <c:spPr>",r+=' <a:ln w="12700" cap="flat">',r+=e.serAxisLineShow?`<a:solidFill>${Kr(e.serAxisLineColor||Tf.color)}</a:solidFill>`:"<a:noFill/>",r+=' <a:prstDash val="solid"/>',r+=" <a:round/>",r+=" </a:ln>",r+=" </c:spPr>",r+=" <c:txPr>",r+=" <a:bodyPr/>",r+=" <a:lstStyle/>",r+=" <a:p>",r+=" <a:pPr>",r+=` <a:defRPr sz="${Math.round((e.serAxisLabelFontSize||Xs)*100)}" b="${e.serAxisLabelFontBold?"1":"0"}" i="${e.serAxisLabelFontItalic?"1":"0"}" u="none" strike="noStrike">`,r+=` <a:solidFill>${Kr(e.serAxisLabelColor||zo)}</a:solidFill>`,r+=` <a:latin typeface="${e.serAxisLabelFontFace||"Arial"}"/>`,r+=" </a:defRPr>",r+=" </a:pPr>",r+=' <a:endParaRPr lang="'+(e.lang||"en-US")+'"/>',r+=" </a:p>",r+=" </c:txPr>",r+=' <c:crossAx val="'+n+'"/>',r+=' <c:crosses val="autoZero"/>',e.serAxisLabelFrequency&&(r+=' <c:tickLblSkip val="'+e.serAxisLabelFrequency+'"/>'),e.serLabelFormatCode&&(["serAxisBaseTimeUnit","serAxisMajorTimeUnit","serAxisMinorTimeUnit"].forEach(i=>{e[i]&&(typeof e[i]!="string"||!["days","months","years"].includes(i.toLowerCase()))&&(console.warn(`"${i}" must be one of: 'days','months','years' !`),e[i]=null)}),e.serAxisBaseTimeUnit&&(r+=` <c:baseTimeUnit val="${e.serAxisBaseTimeUnit.toLowerCase()}"/>`),e.serAxisMajorTimeUnit&&(r+=` <c:majorTimeUnit val="${e.serAxisMajorTimeUnit.toLowerCase()}"/>`),e.serAxisMinorTimeUnit&&(r+=` <c:minorTimeUnit val="${e.serAxisMinorTimeUnit.toLowerCase()}"/>`),e.serAxisMajorUnit&&(r+=` <c:majorUnit val="${e.serAxisMajorUnit}"/>`),e.serAxisMinorUnit&&(r+=` <c:minorUnit val="${e.serAxisMinorUnit}"/>`)),r+="</c:serAx>",r}function D2(e,t,n){const r=e.titleAlign==="left"||e.titleAlign==="right"?`<a:pPr algn="${e.titleAlign.substring(0,1)}">`:"<a:pPr>",i=e.titleRotate?`<a:bodyPr rot="${_f(e.titleRotate)}"/>`:"<a:bodyPr/>",a=e.fontSize?`sz="${Math.round(e.fontSize*100)}"`:"",o=e.titleBold?1:0;let s="<c:layout/>";if(e.titlePos&&typeof e.titlePos.x=="number"&&typeof e.titlePos.y=="number"){const l=e.titlePos.x+t,c=e.titlePos.y+n;let u=l===0?0:l*(l/5)/10;u>=1&&(u=u/10),u>=.1&&(u=u/10);let d=c===0?0:c*(c/5)/10;d>=1&&(d=d/10),d>=.1&&(d=d/10),s=`<c:layout><c:manualLayout><c:xMode val="edge"/><c:yMode val="edge"/><c:x val="${u}"/><c:y val="${d}"/></c:manualLayout></c:layout>`}return`<c:title>- <c:tx>- <c:rich>- ${i}- <a:lstStyle/>- <a:p>- ${r}- <a:defRPr ${a} b="${o}" i="0" u="none" strike="noStrike">- <a:solidFill>${Kr(e.color||zo)}</a:solidFill>- <a:latin typeface="${e.fontFace||"Arial"}"/>- </a:defRPr>- </a:pPr>- <a:r>- <a:rPr ${a} b="${o}" i="0" u="none" strike="noStrike">- <a:solidFill>${Kr(e.color||zo)}</a:solidFill>- <a:latin typeface="${e.fontFace||"Arial"}"/>- </a:rPr>- <a:t>${Zn(e.title)||""}</a:t>- </a:r>- </a:p>- </c:rich>- </c:tx>- ${s}- <c:overlay val="0"/>- </c:title>`}function ci(e){let t="";const n=e-1;return n<=25?t=Im[n]:t=`${Im[Math.floor(n/Im.length-1)]}${Im[n%Im.length]}`,t}function pf(e,t){if(e){if(typeof e!="object")return console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`"),"<a:effectLst/>"}else return"<a:effectLst/>";let n="<a:effectLst>";const r=Object.assign(Object.assign({},t),e),i=r.type||"outer",a=Wn(r.blur),o=Wn(r.offset),s=Math.round(r.angle*6e4),l=r.color,c=Math.round(r.opacity*1e5),u=r.rotateWithShape?1:0;return n+=`<a:${i}Shdw sx="100000" sy="100000" kx="0" ky="0" algn="bl" blurRad="${a}" rotWithShape="${u}" dist="${o}" dir="${s}">`,n+=`<a:srgbClr val="${l}">`,n+=`<a:alpha val="${c}"/></a:srgbClr>`,n+=`</a:${i}Shdw>`,n+="</a:effectLst>",n}function uR(e){let t="<c:majorGridlines>";return t+=" <c:spPr>",t+=` <a:ln w="${Wn(e.size||Tf.size)}" cap="${s1(e.cap||Tf.cap)}">`,t+=' <a:solidFill><a:srgbClr val="'+(e.color||Tf.color)+'"/></a:solidFill>',t+=' <a:prstDash val="'+(e.style||Tf.style)+'"/><a:round/>',t+=" </a:ln>",t+=" </c:spPr>",t+="</c:majorGridlines>",t}function s1(e){if(!e||e==="flat")return"flat";if(e==="square")return"sq";if(e==="round")return"rnd";{const t=e;throw new Error(`Invalid chart line cap: ${t}`)}}function aT(e){var t,n;const r=typeof process<"u"&&!!(!((t=process.versions)===null||t===void 0)&&t.node)&&((n=process.release)===null||n===void 0?void 0:n.name)==="node";let i,a;const o=r?()=>fs(this,void 0,void 0,function*(){({default:i}=yield Kc(()=>import("./__vite-browser-external-BIHI7g3E.js"),[])),{default:a}=yield Kc(()=>import("./__vite-browser-external-BIHI7g3E.js"),[])}):()=>fs(this,void 0,void 0,function*(){});r&&o();const s=[],l=e._relsMedia.filter(u=>u.type!=="online"&&!u.data&&(!u.path||u.path&&!u.path.includes("preencoded"))),c=[];return l.forEach(u=>{c.includes(u.path)?u.isDuplicate=!0:(u.isDuplicate=!1,c.push(u.path))}),l.filter(u=>!u.isDuplicate).forEach(u=>{s.push(fs(this,void 0,void 0,function*(){if(a||(yield o()),r&&i&&u.path.indexOf("http")!==0)try{const d=i.readFileSync(u.path);return u.data=Buffer.from(d).toString("base64"),l.filter(h=>h.isDuplicate&&h.path===u.path).forEach(h=>h.data=u.data),"done"}catch(d){throw u.data=Pp,l.filter(h=>h.isDuplicate&&h.path===u.path).forEach(h=>h.data=u.data),new Error(`ERROR: Unable to read media: "${u.path}"-${String(d)}`)}return r&&a&&u.path.startsWith("http")?yield new Promise((d,h)=>{a.get(u.path,f=>{let g="";f.setEncoding("binary"),f.on("data",y=>g+=y),f.on("end",()=>{u.data=Buffer.from(g,"binary").toString("base64"),l.filter(y=>y.isDuplicate&&y.path===u.path).forEach(y=>y.data=u.data),d("done")}),f.on("error",()=>{u.data=Pp,l.filter(y=>y.isDuplicate&&y.path===u.path).forEach(y=>y.data=u.data),h(new Error(`ERROR! Unable to load image (https.get): ${u.path}`))})})}):yield new Promise((d,h)=>{const f=new XMLHttpRequest;f.onload=()=>{const g=new FileReader;g.onloadend=()=>{u.data=g.result,l.filter(y=>y.isDuplicate&&y.path===u.path).forEach(y=>y.data=u.data),u.isSvgPng?Rj(u).then(()=>d("done")).catch(h):d("done")},g.readAsDataURL(f.response)},f.onerror=()=>{u.data=Pp,l.filter(g=>g.isDuplicate&&g.path===u.path).forEach(g=>g.data=u.data),h(new Error(`ERROR! Unable to load image (xhr.onerror): ${u.path}`))},f.open("GET",u.path),f.responseType="blob",f.send()})}))}),e._relsMedia.filter(u=>u.isSvgPng&&u.data).forEach(u=>{fs(this,void 0,void 0,function*(){r&&!i&&(yield o()),r&&i?(u.data=Pp,s.push(Promise.resolve("done"))):s.push(Rj(u))})}),s}function Rj(e){return fs(this,void 0,void 0,function*(){return yield new Promise((t,n)=>{const r=new Image;r.onload=()=>{r.width+r.height===0&&r.onerror("h/w=0");let i=document.createElement("CANVAS");const a=i.getContext("2d");i.width=r.width,i.height=r.height,a.drawImage(r,0,0);try{e.data=i.toDataURL(e.type),t("done")}catch(o){r.onerror(o.toString())}i=null},r.onerror=()=>{e.data=Pp,n(new Error(`ERROR! Unable to load image (image.onerror): ${e.path}`))},r.src=typeof e.data=="string"?e.data:Pp})})}const lIe={cover:function(e,t){const n=e.h/e.w,i=t.h/t.w>n,a=i?t.h/n:t.w,o=i?t.h:t.w*n,s=Math.round(1e5*.5*(1-t.w/a)),l=Math.round(1e5*.5*(1-t.h/o));return`<a:srcRect l="${s}" r="${s}" t="${l}" b="${l}"/><a:stretch/>`},contain:function(e,t){const n=e.h/e.w,i=t.h/t.w>n,a=i?t.w:t.h/n,o=i?t.w*n:t.h,s=Math.round(1e5*.5*(1-t.w/a)),l=Math.round(1e5*.5*(1-t.h/o));return`<a:srcRect l="${s}" r="${s}" t="${l}" b="${l}"/><a:stretch/>`},crop:function(e,t){const n=t.x,r=e.w-(t.x+t.w),i=t.y,a=e.h-(t.y+t.h),o=Math.round(1e5*(n/e.w)),s=Math.round(1e5*(r/e.w)),l=Math.round(1e5*(i/e.h)),c=Math.round(1e5*(a/e.h));return`<a:srcRect l="${o}" r="${s}" t="${l}" b="${c}"/><a:stretch/>`}};function dR(e){var t;let n=e._name?'<p:cSld name="'+e._name+'">':"<p:cSld>",r=1;return e._bkgdImgRid?n+=`<p:bg><p:bgPr><a:blipFill dpi="0" rotWithShape="1"><a:blip r:embed="rId${e._bkgdImgRid}"><a:lum/></a:blip><a:srcRect/><a:stretch><a:fillRect/></a:stretch></a:blipFill><a:effectLst/></p:bgPr></p:bg>`:!((t=e.background)===null||t===void 0)&&t.color?n+=`<p:bg><p:bgPr>${ps(e.background)}</p:bgPr></p:bg>`:!e.bkgd&&e._name&&e._name===J_&&(n+='<p:bg><p:bgRef idx="1001"><a:schemeClr val="bg1"/></p:bgRef></p:bg>'),n+="<p:spTree>",n+='<p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>',n+='<p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/>',n+='<a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>',e._slideObjects.forEach((i,a)=>{var o,s,l,c,u,d,h,f;let g=0,y=0,v=Ar("75%","X",e._presLayout),A=0,w,S="",_=null,E=null,T=0,D=0,I=null,j=null;const R=(o=i.options)===null||o===void 0?void 0:o.sizing,z=(s=i.options)===null||s===void 0?void 0:s.rounding;e._slideLayout!==void 0&&e._slideLayout._slideObjects!==void 0&&i.options&&i.options.placeholder&&(w=e._slideLayout._slideObjects.filter(P=>P.options.placeholder===i.options.placeholder)[0]),i.options=i.options||{},typeof i.options.x<"u"&&(g=Ar(i.options.x,"X",e._presLayout)),typeof i.options.y<"u"&&(y=Ar(i.options.y,"Y",e._presLayout)),typeof i.options.w<"u"&&(v=Ar(i.options.w,"X",e._presLayout)),typeof i.options.h<"u"&&(A=Ar(i.options.h,"Y",e._presLayout));let B=v,W=A;switch(w&&((w.options.x||w.options.x===0)&&(g=Ar(w.options.x,"X",e._presLayout)),(w.options.y||w.options.y===0)&&(y=Ar(w.options.y,"Y",e._presLayout)),(w.options.w||w.options.w===0)&&(v=Ar(w.options.w,"X",e._presLayout)),(w.options.h||w.options.h===0)&&(A=Ar(w.options.h,"Y",e._presLayout))),i.options.flipH&&(S+=' flipH="1"'),i.options.flipV&&(S+=' flipV="1"'),i.options.rotate&&(S+=` rot="${_f(i.options.rotate)}"`),i._type){case $n.table:if(_=i.arrTabRows,E=i.options,T=0,D=0,_[0].forEach(P=>{I=P.options||null,T+=I!=null&&I.colspan?Number(I.colspan):1}),j=`<p:graphicFrame><p:nvGraphicFramePr><p:cNvPr id="${r*e._slideNum+1}" name="${i.options.objectName}"/>`,j+='<p:cNvGraphicFramePr><a:graphicFrameLocks noGrp="1"/></p:cNvGraphicFramePr> <p:nvPr><p:extLst><p:ext uri="{D42A27DB-BD31-4B8C-83A1-F6EECF244321}"><p14:modId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1579011935"/></p:ext></p:extLst></p:nvPr></p:nvGraphicFramePr>',j+=`<p:xfrm><a:off x="${g||(g===0?0:tr)}" y="${y||(y===0?0:tr)}"/><a:ext cx="${v||(v===0?0:tr)}" cy="${A||tr}"/></p:xfrm>`,j+='<a:graphic><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/table"><a:tbl><a:tblPr/>',Array.isArray(E.colW)){j+="<a:tblGrid>";for(let P=0;P<T;P++){let Z=Br(E.colW[P]);(Z==null||isNaN(Z))&&(Z=(typeof i.options.w=="number"?i.options.w:1)/T),j+=`<a:gridCol w="${Math.round(Z)}"/>`}j+="</a:tblGrid>"}else{D=E.colW?E.colW:tr,i.options.w&&!E.colW&&(D=Math.round((typeof i.options.w=="number"?i.options.w:1)/T)),j+="<a:tblGrid>";for(let P=0;P<T;P++)j+=`<a:gridCol w="${D}"/>`;j+="</a:tblGrid>"}_.forEach(P=>{var Z,Q;for(let X=0;X<P.length;){const q=P[X],te=(Z=q.options)===null||Z===void 0?void 0:Z.colspan,J=(Q=q.options)===null||Q===void 0?void 0:Q.rowspan;if(te&&te>1){const ee=new Array(te-1).fill(void 0).map(()=>({_type:$n.tablecell,options:{rowspan:J},_hmerge:!0}));P.splice(X+1,0,...ee),X+=te}else X+=1}}),_.forEach((P,Z)=>{const Q=_[Z+1];Q&&P.forEach((X,q)=>{var te,J;const ee=X._rowContinue||((te=X.options)===null||te===void 0?void 0:te.rowspan),le=(J=X.options)===null||J===void 0?void 0:J.colspan,G=X._hmerge;if(ee&&ee>1){const xe={_type:$n.tablecell,options:{colspan:le},_rowContinue:ee-1,_vmerge:!0,_hmerge:G};Q.splice(q,0,xe)}})}),_.forEach((P,Z)=>{let Q=0;Array.isArray(E.rowH)&&E.rowH[Z]?Q=Br(Number(E.rowH[Z])):E.rowH&&!isNaN(Number(E.rowH))?Q=Br(Number(E.rowH)):(i.options.cy||i.options.h)&&(Q=Math.round((i.options.h?Br(i.options.h):typeof i.options.cy=="number"?i.options.cy:1)/_.length)),j+=`<a:tr h="${Q}">`,P.forEach(X=>{var q,te,J,ee,le;const G=X,xe={rowSpan:((q=G.options)===null||q===void 0?void 0:q.rowspan)>1?G.options.rowspan:void 0,gridSpan:((te=G.options)===null||te===void 0?void 0:te.colspan)>1?G.options.colspan:void 0,vMerge:G._vmerge?1:void 0,hMerge:G._hmerge?1:void 0};let ge=Object.keys(xe).map(We=>[We,xe[We]]).filter(([,We])=>!!We).map(([We,V])=>`${String(We)}="${String(V)}"`).join(" ");if(ge&&(ge=" "+ge),G._hmerge||G._vmerge){j+=`<a:tc${ge}><a:tcPr/></a:tc>`;return}const ue=G.options||{};G.options=ue,["align","bold","border","color","fill","fontFace","fontSize","margin","textDirection","underline","valign"].forEach(We=>{E[We]&&!ue[We]&&ue[We]!==0&&(ue[We]=E[We])});const ce=ue.valign?` anchor="${ue.valign.replace(/^c$/i,"ctr").replace(/^m$/i,"ctr").replace("center","ctr").replace("middle","ctr").replace("top","t").replace("btm","b").replace("bottom","b")}"`:"",ye=ue.textDirection&&ue.textDirection!=="horz"?` vert="${ue.textDirection}"`:"";let Fe=!((ee=(J=G._optImp)===null||J===void 0?void 0:J.fill)===null||ee===void 0)&&ee.color?G._optImp.fill.color:!((le=G._optImp)===null||le===void 0)&&le.fill&&typeof G._optImp.fill=="string"?G._optImp.fill:"";Fe=Fe||ue.fill?ue.fill:"";const Oe=Fe?ps(Fe):"";let Le=ue.margin===0||ue.margin?ue.margin:nY;!Array.isArray(Le)&&typeof Le=="number"&&(Le=[Le,Le,Le,Le]);let Re="";Le[0]>=1?Re=` marL="${Wn(Le[3])}" marR="${Wn(Le[1])}" marT="${Wn(Le[0])}" marB="${Wn(Le[2])}"`:Re=` marL="${Br(Le[3])}" marR="${Br(Le[1])}" marT="${Br(Le[0])}" marB="${Br(Le[2])}"`,j+=`<a:tc${ge}>${Ij(G)}<a:tcPr${Re}${ce}${ye}>`,ue.border&&Array.isArray(ue.border)&&[{idx:3,name:"lnL"},{idx:1,name:"lnR"},{idx:0,name:"lnT"},{idx:2,name:"lnB"}].forEach(We=>{ue.border[We.idx].type!=="none"?(j+=`<a:${We.name} w="${Wn(ue.border[We.idx].pt)}" cap="flat" cmpd="sng" algn="ctr">`,j+=`<a:solidFill>${Kr(ue.border[We.idx].color)}</a:solidFill>`,j+=`<a:prstDash val="${ue.border[We.idx].type==="dash"?"sysDash":"solid"}"/><a:round/><a:headEnd type="none" w="med" len="med"/><a:tailEnd type="none" w="med" len="med"/>`,j+=`</a:${We.name}>`):j+=`<a:${We.name} w="0" cap="flat" cmpd="sng" algn="ctr"><a:noFill/></a:${We.name}>`}),j+=Oe,j+=" </a:tcPr>",j+=" </a:tc>"}),j+="</a:tr>"}),j+=" </a:tbl>",j+=" </a:graphicData>",j+=" </a:graphic>",j+="</p:graphicFrame>",n+=j,r++;break;case $n.text:case $n.placeholder:if(!i.options.line&&A===0&&(A=tr*.3),i.options._bodyProp||(i.options._bodyProp={}),i.options.margin&&Array.isArray(i.options.margin)?(i.options._bodyProp.lIns=Wn(i.options.margin[0]||0),i.options._bodyProp.rIns=Wn(i.options.margin[1]||0),i.options._bodyProp.bIns=Wn(i.options.margin[2]||0),i.options._bodyProp.tIns=Wn(i.options.margin[3]||0)):typeof i.options.margin=="number"&&(i.options._bodyProp.lIns=Wn(i.options.margin),i.options._bodyProp.rIns=Wn(i.options.margin),i.options._bodyProp.bIns=Wn(i.options.margin),i.options._bodyProp.tIns=Wn(i.options.margin)),n+="<p:sp>",n+=`<p:nvSpPr><p:cNvPr id="${a+2}" name="${i.options.objectName}">`,!((l=i.options.hyperlink)===null||l===void 0)&&l.url&&(n+=`<a:hlinkClick r:id="rId${i.options.hyperlink._rId}" tooltip="${i.options.hyperlink.tooltip?Zn(i.options.hyperlink.tooltip):""}"/>`),!((c=i.options.hyperlink)===null||c===void 0)&&c.slide&&(n+=`<a:hlinkClick r:id="rId${i.options.hyperlink._rId}" tooltip="${i.options.hyperlink.tooltip?Zn(i.options.hyperlink.tooltip):""}" action="ppaction://hlinksldjump"/>`),n+="</p:cNvPr>",n+="<p:cNvSpPr"+(!((u=i.options)===null||u===void 0)&&u.isTextBox?' txBox="1"/>':"/>"),n+=`<p:nvPr>${i._type==="placeholder"?nb(i):nb(w)}</p:nvPr>`,n+="</p:nvSpPr><p:spPr>",n+=`<a:xfrm${S}>`,n+=`<a:off x="${g}" y="${y}"/>`,n+=`<a:ext cx="${v}" cy="${A}"/></a:xfrm>`,i.shape==="custGeom")n+="<a:custGeom><a:avLst />",n+="<a:gdLst>",n+="</a:gdLst>",n+="<a:ahLst />",n+="<a:cxnLst>",n+="</a:cxnLst>",n+='<a:rect l="l" t="t" r="r" b="b" />',n+="<a:pathLst>",n+=`<a:path w="${v}" h="${A}">`,(d=i.options.points)===null||d===void 0||d.forEach((P,Z)=>{if("curve"in P)switch(P.curve.type){case"arc":n+=`<a:arcTo hR="${Ar(P.curve.hR,"Y",e._presLayout)}" wR="${Ar(P.curve.wR,"X",e._presLayout)}" stAng="${_f(P.curve.stAng)}" swAng="${_f(P.curve.swAng)}" />`;break;case"cubic":n+=`<a:cubicBezTo>- <a:pt x="${Ar(P.curve.x1,"X",e._presLayout)}" y="${Ar(P.curve.y1,"Y",e._presLayout)}" />- <a:pt x="${Ar(P.curve.x2,"X",e._presLayout)}" y="${Ar(P.curve.y2,"Y",e._presLayout)}" />- <a:pt x="${Ar(P.x,"X",e._presLayout)}" y="${Ar(P.y,"Y",e._presLayout)}" />- </a:cubicBezTo>`;break;case"quadratic":n+=`<a:quadBezTo>- <a:pt x="${Ar(P.curve.x1,"X",e._presLayout)}" y="${Ar(P.curve.y1,"Y",e._presLayout)}" />- <a:pt x="${Ar(P.x,"X",e._presLayout)}" y="${Ar(P.y,"Y",e._presLayout)}" />- </a:quadBezTo>`;break}else"close"in P?n+="<a:close />":P.moveTo||Z===0?n+=`<a:moveTo><a:pt x="${Ar(P.x,"X",e._presLayout)}" y="${Ar(P.y,"Y",e._presLayout)}" /></a:moveTo>`:n+=`<a:lnTo><a:pt x="${Ar(P.x,"X",e._presLayout)}" y="${Ar(P.y,"Y",e._presLayout)}" /></a:lnTo>`}),n+="</a:path>",n+="</a:pathLst>",n+="</a:custGeom>";else{if(n+='<a:prstGeom prst="'+i.shape+'"><a:avLst>',i.options.rectRadius)n+=`<a:gd name="adj" fmla="val ${Math.round(i.options.rectRadius*tr*1e5/Math.min(v,A))}"/>`;else if(i.options.angleRange){for(let P=0;P<2;P++){const Z=i.options.angleRange[P];n+=`<a:gd name="adj${P+1}" fmla="val ${_f(Z)}" />`}i.options.arcThicknessRatio&&(n+=`<a:gd name="adj3" fmla="val ${Math.round(i.options.arcThicknessRatio*5e4)}" />`)}n+="</a:avLst></a:prstGeom>"}n+=i.options.fill?ps(i.options.fill):"<a:noFill/>",i.options.line&&(n+=i.options.line.width?`<a:ln w="${Wn(i.options.line.width)}">`:"<a:ln>",i.options.line.color&&(n+=ps(i.options.line)),i.options.line.dashType&&(n+=`<a:prstDash val="${i.options.line.dashType}"/>`),i.options.line.beginArrowType&&(n+=`<a:headEnd type="${i.options.line.beginArrowType}"/>`),i.options.line.endArrowType&&(n+=`<a:tailEnd type="${i.options.line.endArrowType}"/>`),n+="</a:ln>"),i.options.shadow&&i.options.shadow.type!=="none"&&(i.options.shadow.type=i.options.shadow.type||"outer",i.options.shadow.blur=Wn(i.options.shadow.blur||8),i.options.shadow.offset=Wn(i.options.shadow.offset||4),i.options.shadow.angle=Math.round((i.options.shadow.angle||270)*6e4),i.options.shadow.opacity=Math.round((i.options.shadow.opacity||.75)*1e5),i.options.shadow.color=i.options.shadow.color||Nj.color,n+="<a:effectLst>",n+=` <a:${i.options.shadow.type}Shdw ${i.options.shadow.type==="outer"?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':""} blurRad="${i.options.shadow.blur}" dist="${i.options.shadow.offset}" dir="${i.options.shadow.angle}">`,n+=` <a:srgbClr val="${i.options.shadow.color}">`,n+=` <a:alpha val="${i.options.shadow.opacity}"/></a:srgbClr>`,n+=" </a:outerShdw>",n+="</a:effectLst>"),n+="</p:spPr>",n+=Ij(i),n+="</p:sp>";break;case $n.image:if(n+="<p:pic>",n+=" <p:nvPicPr>",n+=`<p:cNvPr id="${a+2}" name="${i.options.objectName}" descr="${Zn(i.options.altText||i.image)}">`,!((h=i.hyperlink)===null||h===void 0)&&h.url&&(n+=`<a:hlinkClick r:id="rId${i.hyperlink._rId}" tooltip="${i.hyperlink.tooltip?Zn(i.hyperlink.tooltip):""}"/>`),!((f=i.hyperlink)===null||f===void 0)&&f.slide&&(n+=`<a:hlinkClick r:id="rId${i.hyperlink._rId}" tooltip="${i.hyperlink.tooltip?Zn(i.hyperlink.tooltip):""}" action="ppaction://hlinksldjump"/>`),n+=" </p:cNvPr>",n+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',n+=" <p:nvPr>"+nb(w)+"</p:nvPr>",n+=" </p:nvPicPr>",n+="<p:blipFill>",(e._relsMedia||[]).filter(P=>P.rId===i.imageRid)[0]&&(e._relsMedia||[]).filter(P=>P.rId===i.imageRid)[0].extn==="svg"?(n+=`<a:blip r:embed="rId${i.imageRid-1}">`,n+=i.options.transparency?` <a:alphaModFix amt="${Math.round((100-i.options.transparency)*1e3)}"/>`:"",n+=" <a:extLst>",n+=' <a:ext uri="{96DAC541-7B7A-43D3-8B79-37D633B846F1}">',n+=` <asvg:svgBlip xmlns:asvg="http://schemas.microsoft.com/office/drawing/2016/SVG/main" r:embed="rId${i.imageRid}"/>`,n+=" </a:ext>",n+=" </a:extLst>",n+="</a:blip>"):(n+=`<a:blip r:embed="rId${i.imageRid}">`,n+=i.options.transparency?`<a:alphaModFix amt="${Math.round((100-i.options.transparency)*1e3)}"/>`:"",n+="</a:blip>"),R!=null&&R.type){const P=R.w?Ar(R.w,"X",e._presLayout):v,Z=R.h?Ar(R.h,"Y",e._presLayout):A,Q=Ar(R.x||0,"X",e._presLayout),X=Ar(R.y||0,"Y",e._presLayout);n+=lIe[R.type]({w:B,h:W},{w:P,h:Z,x:Q,y:X}),B=P,W=Z}else n+=" <a:stretch><a:fillRect/></a:stretch>";n+="</p:blipFill>",n+="<p:spPr>",n+=" <a:xfrm"+S+">",n+=` <a:off x="${g}" y="${y}"/>`,n+=` <a:ext cx="${B}" cy="${W}"/>`,n+=" </a:xfrm>",n+=` <a:prstGeom prst="${z?"ellipse":"rect"}"><a:avLst/></a:prstGeom>`,i.options.shadow&&i.options.shadow.type!=="none"&&(i.options.shadow.type=i.options.shadow.type||"outer",i.options.shadow.blur=Wn(i.options.shadow.blur||8),i.options.shadow.offset=Wn(i.options.shadow.offset||4),i.options.shadow.angle=Math.round((i.options.shadow.angle||270)*6e4),i.options.shadow.opacity=Math.round((i.options.shadow.opacity||.75)*1e5),i.options.shadow.color=i.options.shadow.color||Nj.color,n+="<a:effectLst>",n+=`<a:${i.options.shadow.type}Shdw ${i.options.shadow.type==="outer"?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':""} blurRad="${i.options.shadow.blur}" dist="${i.options.shadow.offset}" dir="${i.options.shadow.angle}">`,n+=`<a:srgbClr val="${i.options.shadow.color}">`,n+=`<a:alpha val="${i.options.shadow.opacity}"/></a:srgbClr>`,n+=`</a:${i.options.shadow.type}Shdw>`,n+="</a:effectLst>"),n+="</p:spPr>",n+="</p:pic>";break;case $n.media:i.mtype==="online"?(n+="<p:pic>",n+=" <p:nvPicPr>",n+=`<p:cNvPr id="${i.mediaRid+2}" name="${i.options.objectName}"/>`,n+=" <p:cNvPicPr/>",n+=" <p:nvPr>",n+=` <a:videoFile r:link="rId${i.mediaRid}"/>`,n+=" </p:nvPr>",n+=" </p:nvPicPr>",n+=` <p:blipFill><a:blip r:embed="rId${i.mediaRid+1}"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>`,n+=" <p:spPr>",n+=` <a:xfrm${S}><a:off x="${g}" y="${y}"/><a:ext cx="${v}" cy="${A}"/></a:xfrm>`,n+=' <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',n+=" </p:spPr>",n+="</p:pic>"):(n+="<p:pic>",n+=" <p:nvPicPr>",n+=`<p:cNvPr id="${i.mediaRid+2}" name="${i.options.objectName}"><a:hlinkClick r:id="" action="ppaction://media"/></p:cNvPr>`,n+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',n+=" <p:nvPr>",n+=` <a:videoFile r:link="rId${i.mediaRid}"/>`,n+=" <p:extLst>",n+=' <p:ext uri="{DAA4B4D4-6D71-4841-9C94-3DE7FCFB9230}">',n+=` <p14:media xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" r:embed="rId${i.mediaRid+1}"/>`,n+=" </p:ext>",n+=" </p:extLst>",n+=" </p:nvPr>",n+=" </p:nvPicPr>",n+=` <p:blipFill><a:blip r:embed="rId${i.mediaRid+2}"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>`,n+=" <p:spPr>",n+=` <a:xfrm${S}><a:off x="${g}" y="${y}"/><a:ext cx="${v}" cy="${A}"/></a:xfrm>`,n+=' <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',n+=" </p:spPr>",n+="</p:pic>");break;case $n.chart:n+="<p:graphicFrame>",n+=" <p:nvGraphicFramePr>",n+=` <p:cNvPr id="${a+2}" name="${i.options.objectName}" descr="${Zn(i.options.altText||"")}"/>`,n+=" <p:cNvGraphicFramePr/>",n+=` <p:nvPr>${nb(w)}</p:nvPr>`,n+=" </p:nvGraphicFramePr>",n+=` <p:xfrm><a:off x="${g}" y="${y}"/><a:ext cx="${v}" cy="${A}"/></p:xfrm>`,n+=' <a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">',n+=' <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/chart">',n+=` <c:chart r:id="rId${i.chartRid}" xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"/>`,n+=" </a:graphicData>",n+=" </a:graphic>",n+="</p:graphicFrame>";break;default:n+="";break}}),e._slideNumberProps&&(e._slideNumberProps.align||(e._slideNumberProps.align="left"),n+="<p:sp>",n+=" <p:nvSpPr>",n+=' <p:cNvPr id="25" name="Slide Number Placeholder 0"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr>',n+=' <p:nvPr><p:ph type="sldNum" sz="quarter" idx="4294967295"/></p:nvPr>',n+=" </p:nvSpPr>",n+=" <p:spPr>",n+=`<a:xfrm><a:off x="${Ar(e._slideNumberProps.x,"X",e._presLayout)}" y="${Ar(e._slideNumberProps.y,"Y",e._presLayout)}"/><a:ext cx="${e._slideNumberProps.w?Ar(e._slideNumberProps.w,"X",e._presLayout):"800000"}" cy="${e._slideNumberProps.h?Ar(e._slideNumberProps.h,"Y",e._presLayout):"300000"}"/></a:xfrm> <a:prstGeom prst="rect"><a:avLst/></a:prstGeom> <a:extLst><a:ext uri="{C572A759-6A51-4108-AA02-DFA0A04FC94B}"><ma14:wrappingTextBoxFlag val="0" xmlns:ma14="http://schemas.microsoft.com/office/mac/drawingml/2011/main"/></a:ext></a:extLst></p:spPr>`,n+="<p:txBody>",n+="<a:bodyPr",e._slideNumberProps.margin&&Array.isArray(e._slideNumberProps.margin)?(n+=` lIns="${Wn(e._slideNumberProps.margin[3]||0)}"`,n+=` tIns="${Wn(e._slideNumberProps.margin[0]||0)}"`,n+=` rIns="${Wn(e._slideNumberProps.margin[1]||0)}"`,n+=` bIns="${Wn(e._slideNumberProps.margin[2]||0)}"`):typeof e._slideNumberProps.margin=="number"&&(n+=` lIns="${Wn(e._slideNumberProps.margin||0)}"`,n+=` tIns="${Wn(e._slideNumberProps.margin||0)}"`,n+=` rIns="${Wn(e._slideNumberProps.margin||0)}"`,n+=` bIns="${Wn(e._slideNumberProps.margin||0)}"`),e._slideNumberProps.valign&&(n+=` anchor="${e._slideNumberProps.valign.replace("top","t").replace("middle","ctr").replace("bottom","b")}"`),n+="/>",n+=" <a:lstStyle><a:lvl1pPr>",(e._slideNumberProps.fontFace||e._slideNumberProps.fontSize||e._slideNumberProps.color)&&(n+=`<a:defRPr sz="${Math.round((e._slideNumberProps.fontSize||12)*100)}">`,e._slideNumberProps.color&&(n+=ps(e._slideNumberProps.color)),e._slideNumberProps.fontFace&&(n+=`<a:latin typeface="${e._slideNumberProps.fontFace}"/><a:ea typeface="${e._slideNumberProps.fontFace}"/><a:cs typeface="${e._slideNumberProps.fontFace}"/>`),n+="</a:defRPr>"),n+="</a:lvl1pPr></a:lstStyle>",n+="<a:p>",e._slideNumberProps.align.startsWith("l")?n+='<a:pPr algn="l"/>':e._slideNumberProps.align.startsWith("c")?n+='<a:pPr algn="ctr"/>':e._slideNumberProps.align.startsWith("r")?n+='<a:pPr algn="r"/>':n+='<a:pPr algn="l"/>',n+=`<a:fld id="${aY}" type="slidenum"><a:rPr b="${e._slideNumberProps.bold?1:0}" lang="en-US"/>`,n+=`<a:t>${e._slideNum}</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p>`,n+="</p:txBody></p:sp>"),n+="</p:spTree>",n+="</p:cSld>",n}function fR(e,t){let n=0,r='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+Wa+'<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">';return e._rels.forEach(i=>{n=Math.max(n,i.rId),i.type.toLowerCase().includes("hyperlink")?i.data==="slide"?r+=`<Relationship Id="rId${i.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slide${i.Target}.xml"/>`:r+=`<Relationship Id="rId${i.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="${i.Target}" TargetMode="External"/>`:i.type.toLowerCase().includes("notesSlide")&&(r+=`<Relationship Id="rId${i.rId}" Target="${i.Target}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"/>`)}),(e._relsChart||[]).forEach(i=>{n=Math.max(n,i.rId),r+=`<Relationship Id="rId${i.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" Target="${i.Target}"/>`}),(e._relsMedia||[]).forEach(i=>{const a=i.rId.toString();n=Math.max(n,i.rId),i.type.toLowerCase().includes("image")?r+='<Relationship Id="rId'+a+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="'+i.Target+'"/>':i.type.toLowerCase().includes("audio")?r.includes(' Target="'+i.Target+'"')?r+='<Relationship Id="rId'+a+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+i.Target+'"/>':r+='<Relationship Id="rId'+a+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio" Target="'+i.Target+'"/>':i.type.toLowerCase().includes("video")?r.includes(' Target="'+i.Target+'"')?r+='<Relationship Id="rId'+a+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+i.Target+'"/>':r+='<Relationship Id="rId'+a+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video" Target="'+i.Target+'"/>':i.type.toLowerCase().includes("online")&&(r.includes(' Target="'+i.Target+'"')?r+='<Relationship Id="rId'+a+'" Type="http://schemas.microsoft.com/office/2007/relationships/image" Target="'+i.Target+'"/>':r+='<Relationship Id="rId'+a+'" Target="'+i.Target+'" TargetMode="External" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video"/>')}),t.forEach((i,a)=>{r+=`<Relationship Id="rId${n+a+1}" Type="${i.type}" Target="${i.target}"/>`}),r+="</Relationships>",r}function Pj(e,t){var n,r;let i="",a="",o="",s="";const l=t?"a:lvl1pPr":"a:pPr";let c=Wn(GPe),u=`<${l}${e.options.rtlMode?' rtl="1" ':""}`;{if(e.options.align)switch(e.options.align){case"left":u+=' algn="l"';break;case"right":u+=' algn="r"';break;case"center":u+=' algn="ctr"';break;case"justify":u+=' algn="just"';break;default:u+="";break}if(e.options.lineSpacing?a=`<a:lnSpc><a:spcPts val="${Math.round(e.options.lineSpacing*100)}"/></a:lnSpc>`:e.options.lineSpacingMultiple&&(a=`<a:lnSpc><a:spcPct val="${Math.round(e.options.lineSpacingMultiple*1e5)}"/></a:lnSpc>`),e.options.indentLevel&&!isNaN(Number(e.options.indentLevel))&&e.options.indentLevel>0&&(u+=` lvl="${e.options.indentLevel}"`),e.options.paraSpaceBefore&&!isNaN(Number(e.options.paraSpaceBefore))&&e.options.paraSpaceBefore>0&&(o+=`<a:spcBef><a:spcPts val="${Math.round(e.options.paraSpaceBefore*100)}"/></a:spcBef>`),e.options.paraSpaceAfter&&!isNaN(Number(e.options.paraSpaceAfter))&&e.options.paraSpaceAfter>0&&(o+=`<a:spcAft><a:spcPts val="${Math.round(e.options.paraSpaceAfter*100)}"/></a:spcAft>`),typeof e.options.bullet=="object")if(!((r=(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.bullet)===null||r===void 0)&&r.indent&&(c=Wn(e.options.bullet.indent)),e.options.bullet.type)e.options.bullet.type.toString().toLowerCase()==="number"&&(u+=` marL="${e.options.indentLevel&&e.options.indentLevel>0?c+c*e.options.indentLevel:c}" indent="-${c}"`,i=`<a:buSzPct val="100000"/><a:buFont typeface="+mj-lt"/><a:buAutoNum type="${e.options.bullet.style||"arabicPeriod"}" startAt="${e.options.bullet.numberStartAt||e.options.bullet.startAt||"1"}"/>`);else if(e.options.bullet.characterCode){let d=`&#x${e.options.bullet.characterCode};`;/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.characterCode)||(console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),d=Rp.DEFAULT),u+=` marL="${e.options.indentLevel&&e.options.indentLevel>0?c+c*e.options.indentLevel:c}" indent="-${c}"`,i='<a:buSzPct val="100000"/><a:buChar char="'+d+'"/>'}else if(e.options.bullet.code){let d=`&#x${e.options.bullet.code};`;/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.code)||(console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),d=Rp.DEFAULT),u+=` marL="${e.options.indentLevel&&e.options.indentLevel>0?c+c*e.options.indentLevel:c}" indent="-${c}"`,i='<a:buSzPct val="100000"/><a:buChar char="'+d+'"/>'}else u+=` marL="${e.options.indentLevel&&e.options.indentLevel>0?c+c*e.options.indentLevel:c}" indent="-${c}"`,i=`<a:buSzPct val="100000"/><a:buChar char="${Rp.DEFAULT}"/>`;else e.options.bullet?(u+=` marL="${e.options.indentLevel&&e.options.indentLevel>0?c+c*e.options.indentLevel:c}" indent="-${c}"`,i=`<a:buSzPct val="100000"/><a:buChar char="${Rp.DEFAULT}"/>`):e.options.bullet||(u+=' indent="0" marL="0"',i="<a:buNone/>");e.options.tabStops&&Array.isArray(e.options.tabStops)&&(s=`<a:tabLst>${e.options.tabStops.map(h=>`<a:tab pos="${Br(h.position||1)}" algn="${h.alignment||"l"}"/>`).join("")}</a:tabLst>`),u+=">"+a+o+i+s,t&&(u+=uY(e.options,!0)),u+="</"+l+">"}return u}function uY(e,t){var n;let r="";const i=t?"a:defRPr":"a:rPr";if(r+="<"+i+' lang="'+(e.lang?e.lang:"en-US")+'"'+(e.lang?' altLang="en-US"':""),r+=e.fontSize?` sz="${Math.round(e.fontSize*100)}"`:"",r+=e!=null&&e.bold?` b="${e.bold?"1":"0"}"`:"",r+=e!=null&&e.italic?` i="${e.italic?"1":"0"}"`:"",r+=e!=null&&e.strike?` strike="${typeof e.strike=="string"?e.strike:"sngStrike"}"`:"",typeof e.underline=="object"&&(!((n=e.underline)===null||n===void 0)&&n.style)?r+=` u="${e.underline.style}"`:typeof e.underline=="string"?r+=` u="${String(e.underline)}"`:e.hyperlink&&(r+=' u="sng"'),e.baseline?r+=` baseline="${Math.round(e.baseline*50)}"`:e.subscript?r+=' baseline="-40000"':e.superscript&&(r+=' baseline="30000"'),r+=e.charSpacing?` spc="${Math.round(e.charSpacing*100)}" kern="0"`:"",r+=' dirty="0">',(e.color||e.fontFace||e.outline||typeof e.underline=="object"&&e.underline.color)&&(e.outline&&typeof e.outline=="object"&&(r+=`<a:ln w="${Wn(e.outline.size||.75)}">${ps(e.outline.color||"FFFFFF")}</a:ln>`),e.color&&(r+=ps({color:e.color,transparency:e.transparency})),e.highlight&&(r+=`<a:highlight>${Kr(e.highlight)}</a:highlight>`),typeof e.underline=="object"&&e.underline.color&&(r+=`<a:uFill>${ps(e.underline.color)}</a:uFill>`),e.glow&&(r+=`<a:effectLst>${KPe(e.glow,HPe)}</a:effectLst>`),e.fontFace&&(r+=`<a:latin typeface="${e.fontFace}" pitchFamily="34" charset="0"/><a:ea typeface="${e.fontFace}" pitchFamily="34" charset="-122"/><a:cs typeface="${e.fontFace}" pitchFamily="34" charset="-120"/>`)),e.hyperlink){if(typeof e.hyperlink!="object")throw new Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` ");if(!e.hyperlink.url&&!e.hyperlink.slide)throw new Error("ERROR: 'hyperlink requires either `url` or `slide`'");e.hyperlink.url?r+=`<a:hlinkClick r:id="rId${e.hyperlink._rId}" invalidUrl="" action="" tgtFrame="" tooltip="${e.hyperlink.tooltip?Zn(e.hyperlink.tooltip):""}" history="1" highlightClick="0" endSnd="0"${e.color?">":"/>"}`:e.hyperlink.slide&&(r+=`<a:hlinkClick r:id="rId${e.hyperlink._rId}" action="ppaction://hlinksldjump" tooltip="${e.hyperlink.tooltip?Zn(e.hyperlink.tooltip):""}"${e.color?">":"/>"}`),e.color&&(r+=" <a:extLst>",r+=' <a:ext uri="{A12FA001-AC4F-418D-AE19-62706E023703}">',r+=' <ahyp:hlinkClr xmlns:ahyp="http://schemas.microsoft.com/office/drawing/2018/hyperlinkcolor" val="tx"/>',r+=" </a:ext>",r+=" </a:extLst>",r+="</a:hlinkClick>")}return r+=`</${i}>`,r}function cIe(e){return e.text?`<a:r>${uY(e.options,!1)}<a:t>${Zn(e.text)}</a:t></a:r>`:""}function uIe(e){let t="<a:bodyPr";return e&&e._type===$n.text&&e.options._bodyProp?(t+=e.options._bodyProp.wrap?' wrap="square"':' wrap="none"',(e.options._bodyProp.lIns||e.options._bodyProp.lIns===0)&&(t+=` lIns="${e.options._bodyProp.lIns}"`),(e.options._bodyProp.tIns||e.options._bodyProp.tIns===0)&&(t+=` tIns="${e.options._bodyProp.tIns}"`),(e.options._bodyProp.rIns||e.options._bodyProp.rIns===0)&&(t+=` rIns="${e.options._bodyProp.rIns}"`),(e.options._bodyProp.bIns||e.options._bodyProp.bIns===0)&&(t+=` bIns="${e.options._bodyProp.bIns}"`),t+=' rtlCol="0"',e.options._bodyProp.anchor&&(t+=' anchor="'+e.options._bodyProp.anchor+'"'),e.options._bodyProp.vert&&(t+=' vert="'+e.options._bodyProp.vert+'"'),t+=">",e.options.fit&&(e.options.fit==="none"?t+="":e.options.fit==="shrink"?t+="<a:normAutofit/>":e.options.fit==="resize"&&(t+="<a:spAutoFit/>")),e.options.shrinkText&&(t+="<a:normAutofit/>"),t+=e.options._bodyProp.autoFit?"<a:spAutoFit/>":"",t+="</a:bodyPr>"):(t+=' wrap="square" rtlCol="0">',t+="</a:bodyPr>"),e._type===$n.tablecell?"<a:bodyPr/>":t}function Ij(e){const t=e.options||{};let n=[];const r=[];if(t&&e._type!==$n.tablecell&&(typeof e.text>"u"||e.text===null))return"";let i=e._type===$n.tablecell?"<a:txBody>":"<p:txBody>";i+=uIe(e),t.h===0&&t.line&&t.align?i+='<a:lstStyle><a:lvl1pPr algn="l"/></a:lstStyle>':e._type==="placeholder"?i+=`<a:lstStyle>${Pj(e,!0)}</a:lstStyle>`:i+="<a:lstStyle/>",typeof e.text=="string"||typeof e.text=="number"?n.push({text:e.text.toString(),options:t||{}}):e.text&&!Array.isArray(e.text)&&typeof e.text=="object"&&Object.keys(e.text).includes("text")?n.push({text:e.text||"",options:e.options||{}}):Array.isArray(e.text)&&(n=e.text.map(s=>({text:s.text,options:s.options}))),n.forEach((s,l)=>{s.text||(s.text=""),s.options=s.options||t||{},l===0&&s.options&&!s.options.bullet&&t.bullet&&(s.options.bullet=t.bullet),(typeof s.text=="string"||typeof s.text=="number")&&(s.text=s.text.toString().replace(/\r*\n/g,Wa)),s.text.includes(Wa)&&s.text.match(/\n$/g)===null?s.text.split(Wa).forEach(c=>{s.options.breakLine=!0,r.push({text:c,options:s.options})}):r.push(s)});const a=[];let o=[];return r.forEach((s,l)=>{o.length>0&&(s.options.align||t.align)?s.options.align!==r[l-1].options.align&&(a.push(o),o=[]):o.length>0&&s.options.bullet&&o.length>0&&(a.push(o),o=[],s.options.breakLine=!1),o.push(s),o.length>0&&s.options.breakLine&&l+1<r.length&&(a.push(o),o=[]),l+1===r.length&&a.push(o)}),a.forEach(s=>{var l;let c=!1;i+="<a:p>";let u=`<a:pPr ${!((l=s[0].options)===null||l===void 0)&&l.rtlMode?' rtl="1" ':""}`;s.forEach((d,h)=>{d.options._lineIdx=h,h>0&&d.options.softBreakBefore&&(i+="<a:br/>"),d.options.align=d.options.align||t.align,d.options.lineSpacing=d.options.lineSpacing||t.lineSpacing,d.options.lineSpacingMultiple=d.options.lineSpacingMultiple||t.lineSpacingMultiple,d.options.indentLevel=d.options.indentLevel||t.indentLevel,d.options.paraSpaceBefore=d.options.paraSpaceBefore||t.paraSpaceBefore,d.options.paraSpaceAfter=d.options.paraSpaceAfter||t.paraSpaceAfter,u=Pj(d,!1),i+=u.replace("<a:pPr></a:pPr>",""),Object.entries(t).filter(([f])=>!(d.options.hyperlink&&f==="color")).forEach(([f,g])=>{f!=="bullet"&&!d.options[f]&&(d.options[f]=g)}),i+=cIe(d),(!d.text&&t.fontSize||d.options.fontSize)&&(c=!0,t.fontSize=t.fontSize||d.options.fontSize)}),e._type===$n.tablecell&&(t.fontSize||t.fontFace)?t.fontFace?(i+=`<a:endParaRPr lang="${t.lang||"en-US"}"`+(t.fontSize?` sz="${Math.round(t.fontSize*100)}"`:"")+' dirty="0">',i+=`<a:latin typeface="${t.fontFace}" charset="0"/>`,i+=`<a:ea typeface="${t.fontFace}" charset="0"/>`,i+=`<a:cs typeface="${t.fontFace}" charset="0"/>`,i+="</a:endParaRPr>"):i+=`<a:endParaRPr lang="${t.lang||"en-US"}"`+(t.fontSize?` sz="${Math.round(t.fontSize*100)}"`:"")+' dirty="0"/>':c?i+=`<a:endParaRPr lang="${t.lang||"en-US"}"`+(t.fontSize?` sz="${Math.round(t.fontSize*100)}"`:"")+' dirty="0"/>':i+=`<a:endParaRPr lang="${t.lang||"en-US"}" dirty="0"/>`,i+="</a:p>"}),i.indexOf("<a:p>")===-1&&(i+="<a:p><a:endParaRPr/></a:p>"),i+=e._type===$n.tablecell?"</a:txBody>":"</p:txBody>",i}function nb(e){var t,n;if(!e)return"";const r=!((t=e.options)===null||t===void 0)&&t._placeholderIdx?e.options._placeholderIdx:"",i=!((n=e.options)===null||n===void 0)&&n._placeholderType?e.options._placeholderType:"",a=i&&k0[i]?k0[i].toString():"";return`<p:ph- ${r?' idx="'+r.toString()+'"':""}- ${a&&k0[a]?` type="${a}"`:""}- ${e.text&&e.text.length>0?' hasCustomPrompt="1"':""}- />`}function dIe(e,t,n){let r='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+Wa;return r+='<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">',r+='<Default Extension="xml" ContentType="application/xml"/>',r+='<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>',r+='<Default Extension="jpeg" ContentType="image/jpeg"/>',r+='<Default Extension="jpg" ContentType="image/jpg"/>',r+='<Default Extension="svg" ContentType="image/svg+xml"/>',r+='<Default Extension="png" ContentType="image/png"/>',r+='<Default Extension="gif" ContentType="image/gif"/>',r+='<Default Extension="m4v" ContentType="video/mp4"/>',r+='<Default Extension="mp4" ContentType="video/mp4"/>',e.forEach(i=>{(i._relsMedia||[]).forEach(a=>{a.type!=="image"&&a.type!=="online"&&a.type!=="chart"&&a.extn!=="m4v"&&!r.includes(a.type)&&(r+='<Default Extension="'+a.extn+'" ContentType="'+a.type+'"/>')})}),r+='<Default Extension="vml" ContentType="application/vnd.openxmlformats-officedocument.vmlDrawing"/>',r+='<Default Extension="xlsx" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"/>',r+='<Override PartName="/ppt/presentation.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml"/>',r+='<Override PartName="/ppt/notesMasters/notesMaster1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.notesMaster+xml"/>',e.forEach((i,a)=>{r+=`<Override PartName="/ppt/slideMasters/slideMaster${a+1}.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"/>`,r+=`<Override PartName="/ppt/slides/slide${a+1}.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"/>`,i._relsChart.forEach(o=>{r+=`<Override PartName="${o.Target}" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>`})}),r+='<Override PartName="/ppt/presProps.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.presProps+xml"/>',r+='<Override PartName="/ppt/viewProps.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml"/>',r+='<Override PartName="/ppt/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>',r+='<Override PartName="/ppt/tableStyles.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"/>',t.forEach((i,a)=>{r+=`<Override PartName="/ppt/slideLayouts/slideLayout${a+1}.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"/>`,(i._relsChart||[]).forEach(o=>{r+=' <Override PartName="'+o.Target+'" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>'})}),e.forEach((i,a)=>{r+=`<Override PartName="/ppt/notesSlides/notesSlide${a+1}.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.notesSlide+xml"/>`}),n._relsChart.forEach(i=>{r+=' <Override PartName="'+i.Target+'" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>'}),n._relsMedia.forEach(i=>{i.type!=="image"&&i.type!=="online"&&i.type!=="chart"&&i.extn!=="m4v"&&!r.includes(i.type)&&(r+=' <Default Extension="'+i.extn+'" ContentType="'+i.type+'"/>')}),r+=' <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>',r+=' <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>',r+="</Types>",r}function fIe(){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${Wa}<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">- <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>- <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>- <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="ppt/presentation.xml"/>- </Relationships>`}function hIe(e,t){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${Wa}<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">- <TotalTime>0</TotalTime>- <Words>0</Words>- <Application>Microsoft Office PowerPoint</Application>- <PresentationFormat>On-screen Show (16:9)</PresentationFormat>- <Paragraphs>0</Paragraphs>- <Slides>${e.length}</Slides>- <Notes>${e.length}</Notes>- <HiddenSlides>0</HiddenSlides>- <MMClips>0</MMClips>- <ScaleCrop>false</ScaleCrop>- <HeadingPairs>- <vt:vector size="6" baseType="variant">- <vt:variant><vt:lpstr>Fonts Used</vt:lpstr></vt:variant>- <vt:variant><vt:i4>2</vt:i4></vt:variant>- <vt:variant><vt:lpstr>Theme</vt:lpstr></vt:variant>- <vt:variant><vt:i4>1</vt:i4></vt:variant>- <vt:variant><vt:lpstr>Slide Titles</vt:lpstr></vt:variant>- <vt:variant><vt:i4>${e.length}</vt:i4></vt:variant>- </vt:vector>- </HeadingPairs>- <TitlesOfParts>- <vt:vector size="${e.length+1+2}" baseType="lpstr">- <vt:lpstr>Arial</vt:lpstr>- <vt:lpstr>Calibri</vt:lpstr>- <vt:lpstr>Office Theme</vt:lpstr>- ${e.map((n,r)=>`<vt:lpstr>Slide ${r+1}</vt:lpstr>`).join("")}- </vt:vector>- </TitlesOfParts>- <Company>${t}</Company>- <LinksUpToDate>false</LinksUpToDate>- <SharedDoc>false</SharedDoc>- <HyperlinksChanged>false</HyperlinksChanged>- <AppVersion>16.0000</AppVersion>- </Properties>`}function pIe(e,t,n,r){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>- <cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">- <dc:title>${Zn(e)}</dc:title>- <dc:subject>${Zn(t)}</dc:subject>- <dc:creator>${Zn(n)}</dc:creator>- <cp:lastModifiedBy>${Zn(n)}</cp:lastModifiedBy>- <cp:revision>${r}</cp:revision>- <dcterms:created xsi:type="dcterms:W3CDTF">${new Date().toISOString().replace(/\.\d\d\dZ/,"Z")}</dcterms:created>- <dcterms:modified xsi:type="dcterms:W3CDTF">${new Date().toISOString().replace(/\.\d\d\dZ/,"Z")}</dcterms:modified>- </cp:coreProperties>`}function gIe(e){let t=1,n='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+Wa;n+='<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',n+='<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" Target="slideMasters/slideMaster1.xml"/>';for(let r=1;r<=e.length;r++)n+=`<Relationship Id="rId${++t}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slides/slide${r}.xml"/>`;return t++,n+=`<Relationship Id="rId${t+0}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster" Target="notesMasters/notesMaster1.xml"/><Relationship Id="rId${t+1}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps" Target="presProps.xml"/><Relationship Id="rId${t+2}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps" Target="viewProps.xml"/><Relationship Id="rId${t+3}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId${t+4}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles" Target="tableStyles.xml"/></Relationships>`,n}function mIe(e){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${Wa}<p:sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"${e!=null&&e.hidden?' show="0"':""}>${dR(e)}<p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:sld>`}function yIe(e){let t="";return e._slideObjects.forEach(n=>{n._type===$n.notes&&(t+=n!=null&&n.text&&n.text[0]?n.text[0].text:"")}),t.replace(/\r*\n/g,Wa)}function vIe(){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${Wa}<p:notesMaster xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:cSld><p:bg><p:bgRef idx="1001"><a:schemeClr val="bg1"/></p:bgRef></p:bg><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr><p:sp><p:nvSpPr><p:cNvPr id="2" name="Header Placeholder 1"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="hdr" sz="quarter"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="2971800" cy="458788"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0"/><a:lstStyle><a:lvl1pPr algn="l"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="3" name="Date Placeholder 2"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="dt" idx="1"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="3884613" y="0"/><a:ext cx="2971800" cy="458788"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0"/><a:lstStyle><a:lvl1pPr algn="r"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:fld id="{5282F153-3F37-0F45-9E97-73ACFA13230C}" type="datetimeFigureOut"><a:rPr lang="en-US"/><a:t>7/23/19</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="4" name="Slide Image Placeholder 3"/><p:cNvSpPr><a:spLocks noGrp="1" noRot="1" noChangeAspect="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldImg" idx="2"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="685800" y="1143000"/><a:ext cx="5486400" cy="3086100"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom><a:noFill/><a:ln w="12700"><a:solidFill><a:prstClr val="black"/></a:solidFill></a:ln></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0" anchor="ctr"/><a:lstStyle/><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="5" name="Notes Placeholder 4"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="body" sz="quarter" idx="3"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="685800" y="4400550"/><a:ext cx="5486400" cy="3600450"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0"/><a:lstStyle/><a:p><a:pPr lvl="0"/><a:r><a:rPr lang="en-US"/><a:t>Click to edit Master text styles</a:t></a:r></a:p><a:p><a:pPr lvl="1"/><a:r><a:rPr lang="en-US"/><a:t>Second level</a:t></a:r></a:p><a:p><a:pPr lvl="2"/><a:r><a:rPr lang="en-US"/><a:t>Third level</a:t></a:r></a:p><a:p><a:pPr lvl="3"/><a:r><a:rPr lang="en-US"/><a:t>Fourth level</a:t></a:r></a:p><a:p><a:pPr lvl="4"/><a:r><a:rPr lang="en-US"/><a:t>Fifth level</a:t></a:r></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="6" name="Footer Placeholder 5"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="ftr" sz="quarter" idx="4"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="0" y="8685213"/><a:ext cx="2971800" cy="458787"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0" anchor="b"/><a:lstStyle><a:lvl1pPr algn="l"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="7" name="Slide Number Placeholder 6"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldNum" sz="quarter" idx="5"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="3884613" y="8685213"/><a:ext cx="2971800" cy="458787"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0" anchor="b"/><a:lstStyle><a:lvl1pPr algn="r"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:fld id="{CE5E9CC1-C706-0F49-92D6-E571CC5EEA8F}" type="slidenum"><a:rPr lang="en-US"/><a:t>‹#›</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp></p:spTree><p:extLst><p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}"><p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1024086991"/></p:ext></p:extLst></p:cSld><p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/><p:notesStyle><a:lvl1pPr marL="0" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl1pPr><a:lvl2pPr marL="457200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl2pPr><a:lvl3pPr marL="914400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl3pPr><a:lvl4pPr marL="1371600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl4pPr><a:lvl5pPr marL="1828800" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl5pPr><a:lvl6pPr marL="2286000" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl6pPr><a:lvl7pPr marL="2743200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl7pPr><a:lvl8pPr marL="3200400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl8pPr><a:lvl9pPr marL="3657600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl9pPr></p:notesStyle></p:notesMaster>`}function xIe(e){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${Wa}<p:notes xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:cSld><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr><p:sp><p:nvSpPr><p:cNvPr id="2" name="Slide Image Placeholder 1"/><p:cNvSpPr><a:spLocks noGrp="1" noRot="1" noChangeAspect="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldImg"/></p:nvPr></p:nvSpPr><p:spPr/></p:sp><p:sp><p:nvSpPr><p:cNvPr id="3" name="Notes Placeholder 2"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="body" idx="1"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:r><a:rPr lang="en-US" dirty="0"/><a:t>${Zn(yIe(e))}</a:t></a:r><a:endParaRPr lang="en-US" dirty="0"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="4" name="Slide Number Placeholder 3"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldNum" sz="quarter" idx="10"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:fld id="${aY}" type="slidenum"><a:rPr lang="en-US"/><a:t>${e._slideNum}</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp></p:spTree><p:extLst><p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}"><p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1024086991"/></p:ext></p:extLst></p:cSld><p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:notes>`}function bIe(e){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>- <p:sldLayout xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" preserve="1">- ${dR(e)}- <p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:sldLayout>`}function AIe(e,t){const n=t.map((i,a)=>`<p:sldLayoutId id="${WPe+a}" r:id="rId${e._rels.length+a+1}"/>`);let r='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+Wa;return r+='<p:sldMaster xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main">',r+=dR(e),r+='<p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/>',r+="<p:sldLayoutIdLst>"+n.join("")+"</p:sldLayoutIdLst>",r+='<p:hf sldNum="0" hdr="0" ftr="0" dt="0"/>',r+='<p:txStyles> <p:titleStyle> <a:lvl1pPr algn="ctr" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="0"/></a:spcBef><a:buNone/><a:defRPr sz="4400" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mj-lt"/><a:ea typeface="+mj-ea"/><a:cs typeface="+mj-cs"/></a:defRPr></a:lvl1pPr> </p:titleStyle> <p:bodyStyle> <a:lvl1pPr marL="342900" indent="-342900" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="•"/><a:defRPr sz="3200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl1pPr> <a:lvl2pPr marL="742950" indent="-285750" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="–"/><a:defRPr sz="2800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl2pPr> <a:lvl3pPr marL="1143000" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="•"/><a:defRPr sz="2400" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl3pPr> <a:lvl4pPr marL="1600200" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="–"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl4pPr> <a:lvl5pPr marL="2057400" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="»"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl5pPr> <a:lvl6pPr marL="2514600" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="•"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl6pPr> <a:lvl7pPr marL="2971800" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="•"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl7pPr> <a:lvl8pPr marL="3429000" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="•"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl8pPr> <a:lvl9pPr marL="3886200" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="•"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl9pPr> </p:bodyStyle> <p:otherStyle> <a:defPPr><a:defRPr lang="en-US"/></a:defPPr> <a:lvl1pPr marL="0" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl1pPr> <a:lvl2pPr marL="457200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl2pPr> <a:lvl3pPr marL="914400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl3pPr> <a:lvl4pPr marL="1371600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl4pPr> <a:lvl5pPr marL="1828800" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl5pPr> <a:lvl6pPr marL="2286000" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl6pPr> <a:lvl7pPr marL="2743200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl7pPr> <a:lvl8pPr marL="3200400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl8pPr> <a:lvl9pPr marL="3657600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl9pPr> </p:otherStyle></p:txStyles>',r+="</p:sldMaster>",r}function wIe(e,t){return fR(t[e-1],[{target:"../slideMasters/slideMaster1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"}])}function SIe(e,t,n){return fR(e[n-1],[{target:`../slideLayouts/slideLayout${TIe(e,t,n)}.xml`,type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"},{target:`../notesSlides/notesSlide${n}.xml`,type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"}])}function kIe(e){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>- <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">- <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster" Target="../notesMasters/notesMaster1.xml"/>- <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="../slides/slide${e}.xml"/>- </Relationships>`}function DIe(e,t){const n=t.map((r,i)=>({target:`../slideLayouts/slideLayout${i+1}.xml`,type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"}));return n.push({target:"../theme/theme1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"}),fR(e,n)}function CIe(){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${Wa}<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">- <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="../theme/theme1.xml"/>- </Relationships>`}function TIe(e,t,n){for(let r=0;r<t.length;r++)if(t[r]._name===e[n-1]._slideLayout._name)return r+1;return 1}function _Ie(e){var t,n,r,i;const a=!((t=e.theme)===null||t===void 0)&&t.headFontFace?`<a:latin typeface="${(n=e.theme)===null||n===void 0?void 0:n.headFontFace}"/>`:'<a:latin typeface="Calibri Light" panose="020F0302020204030204"/>',o=!((r=e.theme)===null||r===void 0)&&r.bodyFontFace?`<a:latin typeface="${(i=e.theme)===null||i===void 0?void 0:i.bodyFontFace}"/>`:'<a:latin typeface="Calibri" panose="020F0502020204030204"/>';return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont>${a}<a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Angsana New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont>${o}<a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Cordia New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme>`}function EIe(e){let t=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${Wa}<p:presentation xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" ${e.rtlMode?'rtl="1"':""} saveSubsetFonts="1" autoCompressPictures="0">`;t+='<p:sldMasterIdLst><p:sldMasterId id="2147483648" r:id="rId1"/></p:sldMasterIdLst>',t+="<p:sldIdLst>",e.slides.forEach(n=>t+=`<p:sldId id="${n._slideId}" r:id="rId${n._rId}"/>`),t+="</p:sldIdLst>",t+=`<p:notesMasterIdLst><p:notesMasterId r:id="rId${e.slides.length+2}"/></p:notesMasterIdLst>`,t+=`<p:sldSz cx="${e.presLayout.width}" cy="${e.presLayout.height}"/>`,t+=`<p:notesSz cx="${e.presLayout.height}" cy="${e.presLayout.width}"/>`,t+="<p:defaultTextStyle>";for(let n=1;n<10;n++)t+=`<a:lvl${n}pPr marL="${(n-1)*457200}" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl${n}pPr>`;return t+="</p:defaultTextStyle>",e.sections&&e.sections.length>0&&(t+='<p:extLst><p:ext uri="{521415D9-36F7-43E2-AB2F-B90AF26B5E84}">',t+='<p14:sectionLst xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main">',e.sections.forEach(n=>{t+=`<p14:section name="${Zn(n.title)}" id="{${o1("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}}"><p14:sldIdLst>`,n._slides.forEach(r=>t+=`<p14:sldId id="${r._slideId}"/>`),t+="</p14:sldIdLst></p14:section>"}),t+="</p14:sectionLst></p:ext>",t+='<p:ext uri="{EFAFB233-063F-42B5-8137-9DF3F51BA10A}"><p15:sldGuideLst xmlns:p15="http://schemas.microsoft.com/office/powerpoint/2012/main"/></p:ext>',t+="</p:extLst>"),t+="</p:presentation>",t}function NIe(){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${Wa}<p:presentationPr xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"/>`}function FIe(){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${Wa}<a:tblStyleLst xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" def="{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}"/>`}function RIe(){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${Wa}<p:viewPr xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:normalViewPr horzBarState="maximized"><p:restoredLeft sz="15611"/><p:restoredTop sz="94610"/></p:normalViewPr><p:slideViewPr><p:cSldViewPr snapToGrid="0" snapToObjects="1"><p:cViewPr varScale="1"><p:scale><a:sx n="136" d="100"/><a:sy n="136" d="100"/></p:scale><p:origin x="216" y="312"/></p:cViewPr><p:guideLst/></p:cSldViewPr></p:slideViewPr><p:notesTextViewPr><p:cViewPr><p:scale><a:sx n="1" d="1"/><a:sy n="1" d="1"/></p:scale><p:origin x="0" y="0"/></p:cViewPr></p:notesTextViewPr><p:gridSpacing cx="76200" cy="76200"/></p:viewPr>`}const PIe="4.0.1";class IIe{set layout(t){const n=this.LAYOUTS[t];if(n)this._layout=t,this._presLayout=n;else throw new Error("UNKNOWN-LAYOUT")}get layout(){return this._layout}get version(){return this._version}set author(t){this._author=t}get author(){return this._author}set company(t){this._company=t}get company(){return this._company}set revision(t){this._revision=t}get revision(){return this._revision}set subject(t){this._subject=t}get subject(){return this._subject}set theme(t){this._theme=t}get theme(){return this._theme}set title(t){this._title=t}get title(){return this._title}set rtlMode(t){this._rtlMode=t}get rtlMode(){return this._rtlMode}get masterSlide(){return this._masterSlide}get slides(){return this._slides}get sections(){return this._sections}get slideLayouts(){return this._slideLayouts}get AlignH(){return this._alignH}get AlignV(){return this._alignV}get ChartType(){return this._chartType}get OutputType(){return this._outputType}get presLayout(){return this._presLayout}get SchemeColor(){return this._schemeColor}get ShapeType(){return this._shapeType}get charts(){return this._charts}get colors(){return this._colors}get shapes(){return this._shapes}constructor(){this._version=PIe,this._alignH=rE,this._alignV=iE,this._chartType=tE,this._outputType=eE,this._schemeColor=us,this._shapeType=nE,this._charts=Nt,this._colors=xA,this._shapes=ud,this.addNewSlide=a=>{const o=this.sections.length>0&&this.sections[this.sections.length-1]._slides.filter(s=>s._slideNum===this.slides[this.slides.length-1]._slideNum).length>0;return a.sectionTitle=o?this.sections[this.sections.length-1].title:null,this.addSlide(a)},this.getSlide=a=>this.slides.filter(o=>o._slideNum===a)[0],this.setSlideNumber=a=>{this.masterSlide._slideNumberProps=a,this.slideLayouts.filter(o=>o._name===J_)[0]._slideNumberProps=a},this.createChartMediaRels=(a,o,s)=>{a._relsChart.forEach(l=>s.push(aIe(l,o))),a._relsMedia.forEach(l=>{if(l.type!=="online"&&l.type!=="hyperlink"){let c=l.data&&typeof l.data=="string"?l.data:"";!c.includes(",")&&!c.includes(";")?c="image/png;base64,"+c:c.includes(",")?c.includes(";")||(c="image/png;"+c):c="image/png;base64,"+c,o.file(l.Target.replace("..","ppt"),c.split(",").pop(),{base64:!0})}})},this.writeFileToBrowser=(a,o)=>fs(this,void 0,void 0,function*(){const s=document.createElement("a");if(s.setAttribute("style","display:none;"),s.dataset.interception="off",document.body.appendChild(s),window.URL.createObjectURL){const l=window.URL.createObjectURL(new Blob([o],{type:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}));return s.href=l,s.download=a,s.click(),setTimeout(()=>{window.URL.revokeObjectURL(l),document.body.removeChild(s)},100),yield Promise.resolve(a)}}),this.exportPresentation=a=>fs(this,void 0,void 0,function*(){const o=[];let s=[];const l=new Dy;return this.slides.forEach(c=>{s=s.concat(aT(c))}),this.slideLayouts.forEach(c=>{s=s.concat(aT(c))}),s=s.concat(aT(this.masterSlide)),yield Promise.all(s).then(()=>fs(this,void 0,void 0,function*(){return this.slides.forEach(c=>{c._slideLayout&&rIe(c)}),l.folder("_rels"),l.folder("docProps"),l.folder("ppt").folder("_rels"),l.folder("ppt/charts").folder("_rels"),l.folder("ppt/embeddings"),l.folder("ppt/media"),l.folder("ppt/slideLayouts").folder("_rels"),l.folder("ppt/slideMasters").folder("_rels"),l.folder("ppt/slides").folder("_rels"),l.folder("ppt/theme"),l.folder("ppt/notesMasters").folder("_rels"),l.folder("ppt/notesSlides").folder("_rels"),l.file("[Content_Types].xml",dIe(this.slides,this.slideLayouts,this.masterSlide)),l.file("_rels/.rels",fIe()),l.file("docProps/app.xml",hIe(this.slides,this.company)),l.file("docProps/core.xml",pIe(this.title,this.subject,this.author,this.revision)),l.file("ppt/_rels/presentation.xml.rels",gIe(this.slides)),l.file("ppt/theme/theme1.xml",_Ie(this)),l.file("ppt/presentation.xml",EIe(this)),l.file("ppt/presProps.xml",NIe()),l.file("ppt/tableStyles.xml",FIe()),l.file("ppt/viewProps.xml",RIe()),this.slideLayouts.forEach((c,u)=>{l.file(`ppt/slideLayouts/slideLayout${u+1}.xml`,bIe(c)),l.file(`ppt/slideLayouts/_rels/slideLayout${u+1}.xml.rels`,wIe(u+1,this.slideLayouts))}),this.slides.forEach((c,u)=>{l.file(`ppt/slides/slide${u+1}.xml`,mIe(c)),l.file(`ppt/slides/_rels/slide${u+1}.xml.rels`,SIe(this.slides,this.slideLayouts,u+1)),l.file(`ppt/notesSlides/notesSlide${u+1}.xml`,xIe(c)),l.file(`ppt/notesSlides/_rels/notesSlide${u+1}.xml.rels`,kIe(u+1))}),l.file("ppt/slideMasters/slideMaster1.xml",AIe(this.masterSlide,this.slideLayouts)),l.file("ppt/slideMasters/_rels/slideMaster1.xml.rels",DIe(this.masterSlide,this.slideLayouts)),l.file("ppt/notesMasters/notesMaster1.xml",vIe()),l.file("ppt/notesMasters/_rels/notesMaster1.xml.rels",CIe()),this.slideLayouts.forEach(c=>{this.createChartMediaRels(c,l,o)}),this.slides.forEach(c=>{this.createChartMediaRels(c,l,o)}),this.createChartMediaRels(this.masterSlide,l,o),yield Promise.all(o).then(()=>fs(this,void 0,void 0,function*(){return a.outputType==="STREAM"?yield l.generateAsync({type:"nodebuffer",compression:a.compression?"DEFLATE":"STORE"}):a.outputType?yield l.generateAsync({type:a.outputType}):yield l.generateAsync({type:"blob",compression:a.compression?"DEFLATE":"STORE"})}))}))});const t={name:"screen4x3",width:9144e3,height:6858e3},n={name:"screen16x9",width:9144e3,height:5143500},r={name:"screen16x10",width:9144e3,height:5715e3},i={name:"custom",width:12192e3,height:6858e3};this.LAYOUTS={LAYOUT_4x3:t,LAYOUT_16x9:n,LAYOUT_16x10:r,LAYOUT_WIDE:i},this._author="PptxGenJS",this._company="PptxGenJS",this._revision="1",this._subject="PptxGenJS Presentation",this._title="PptxGenJS Presentation",this._presLayout={name:this.LAYOUTS[cp].name,_sizeW:this.LAYOUTS[cp].width,_sizeH:this.LAYOUTS[cp].height,width:this.LAYOUTS[cp].width,height:this.LAYOUTS[cp].height},this._rtlMode=!1,this._slideLayouts=[{_margin:ly,_name:J_,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}stream(t){return fs(this,void 0,void 0,function*(){return yield this.exportPresentation({compression:t==null?void 0:t.compression,outputType:"STREAM"})})}write(t){return fs(this,void 0,void 0,function*(){const n=typeof t=="object"&&(t!=null&&t.outputType)?t.outputType:t||null,r=typeof t=="object"&&(t!=null&&t.compression)?t.compression:!1;return yield this.exportPresentation({compression:r,outputType:n})})}writeFile(t){return fs(this,void 0,void 0,function*(){var n,r;const i=typeof process<"u"&&!!(!((n=process.versions)===null||n===void 0)&&n.node)&&((r=process.release)===null||r===void 0?void 0:r.name)==="node";typeof t=="string"&&(console.warn("[WARNING] writeFile(string) is deprecated - pass { fileName } instead."),t={fileName:t});const{fileName:a="Presentation.pptx",compression:o=!1}=t,s=a.toLowerCase().endsWith(".pptx")?a:`${a}.pptx`,l=i?"nodebuffer":null,c=yield this.exportPresentation({compression:o,outputType:l});if(i){const{promises:u}=yield Kc(()=>import("./__vite-browser-external-BIHI7g3E.js"),[]),{writeFile:d}=u;return yield d(s,c),s}return yield this.writeFileToBrowser(s,c),s})}addSection(t){t?t.title||console.warn("addSection requires a title"):console.warn("addSection requires an argument");const n={_type:"user",_slides:[],title:t.title};t.order?this.sections.splice(t.order,0,n):this._sections.push(n)}addSlide(t){const n=typeof t=="string"?t:t!=null&&t.masterName?t.masterName:"";let r={_name:this.LAYOUTS[cp].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1};if(n){const a=this.slideLayouts.filter(o=>o._name===n)[0];a&&(r=a)}const i=new iIe({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:r});if(this._slides.push(i),t!=null&&t.sectionTitle){const a=this.sections.filter(o=>o.title===t.sectionTitle)[0];a?a._slides.push(i):console.warn(`addSlide: unable to find section with title: "${t.sectionTitle}"`)}else if(this.sections&&this.sections.length>0&&!(t!=null&&t.sectionTitle)){const a=this._sections[this.sections.length-1];a._type==="default"?a._slides.push(i):this._sections.push({title:`Default-${this.sections.filter(o=>o._type==="default").length+1}`,_type:"default",_slides:[i]})}return i}defineLayout(t){t?t.name?t.width?t.height?typeof t.height!="number"?console.warn("defineLayout `height` should be a number (inches)"):typeof t.width!="number"&&console.warn("defineLayout `width` should be a number (inches)"):console.warn("defineLayout requires `height`"):console.warn("defineLayout requires `width`"):console.warn("defineLayout requires `name`"):console.warn("defineLayout requires `{name, width, height}`"),this.LAYOUTS[t.name]={name:t.name,_sizeW:Math.round(Number(t.width)*tr),_sizeH:Math.round(Number(t.height)*tr),width:Math.round(Number(t.width)*tr),height:Math.round(Number(t.height)*tr)}}defineSlideMaster(t){const n=JSON.parse(JSON.stringify(t));if(!n.title)throw new Error("defineSlideMaster() object argument requires a `title` value. (https://gitbrent.github.io/PptxGenJS/docs/masters.html)");const r={_margin:n.margin||ly,_name:n.title,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3+this.slideLayouts.length+1,_slideNumberProps:n.slideNumber||null,_slideObjects:[],background:n.background||null,bkgd:n.bkgd||null};QPe(n,r),this.slideLayouts.push(r),(n.background||n.bkgd)&&cY(n.background,r),r._slideNumberProps&&!this.masterSlide._slideNumberProps&&(this.masterSlide._slideNumberProps=r._slideNumberProps)}tableToSlides(t,n={}){YPe(this,t,n,n!=null&&n.masterSlideName?this.slideLayouts.filter(r=>r._name===n.masterSlideName)[0]:null)}}const gf=(e,t)=>{const n=String(t||"").trim();return n?`# ${e}-${n}`:""};function Ka(e){return[gf("R - Role",e.role),gf("I - Instructions",e.instructions),gf("Input",e.input),gf("S - Steps",e.steps),gf("E - End Goal",e.endGoal),gf("N - Narrowing",e.narrowing),gf("Output Format",e.outputFormat)].filter(Boolean).join(`--`)}const hR=(e,t,n)=>{var i;const r=Number(((i=e.style)==null?void 0:i.fontSize)||0);return Number.isFinite(r)&&r>0?r:fY(e,t,n)},pR=(e=[])=>e.map(t=>({id:t.id,type:"text",text:t.text,role:t.role,x:t.x,y:t.y,w:t.w,h:t.h,style:{...t.style||{},fontSize:hR(t,Hf,Xf)}})),dY=(e=[])=>e.filter(t=>(t==null?void 0:t.type)==="text").map(t=>({id:t.id,role:t.role,text:t.text,x:t.x,y:t.y,w:t.w,h:t.h,style:t.style})),Hf=1600,Xf=900,Mj=e=>{const t=String(e||"");let n=0;for(const r of t)/\s/.test(r)?n+=.35:/[\u4e00-\u9fff\u3040-\u30ff\uac00-\ud7af]/.test(r)?n+=1:/[A-Z]/.test(r)?n+=.72:/[a-z]/.test(r)?n+=.58:/[0-9]/.test(r)?n+=.56:n+=.62;return Math.max(n,1)},fY=(e,t,n)=>{const r=e.style||{},i=String(e.text||""),a=!i.includes(`-`),o=e.role==="bullet"&&a&&i.trim().length<=24&&e.h<=.14,s=Number(r.lineHeight||(e.role==="title"?1.12:e.role==="tag"?1.05:o?1.18:1.35)),l=e.role==="title"?18:e.role==="tag"||o?16:24,c=e.role==="title"?12:e.role==="tag"?10:o?12:16,u=Math.max(24,e.w*t-l),d=Math.max(18,e.h*n-c),h=i.split(/\r?\n/).filter(Boolean),f=Math.max(h.length,1),g=h.length>0?Math.max(...h.map(I=>Mj(I))):Mj(i),y=d/(f*s),v=e.role==="title"?.9:e.role==="tag"?1.1:o?1.06:1.72,A=u/(g*v),w=Math.max(10,Math.min(y,A)),S=e.role==="title"?Math.max(w,y*.78):o?Math.max(w,y*.54):e.role==="tag"?Math.max(w,y*.62):w,_=Math.max(10,S),E=Number(r.fontSize||0);if(!Number.isFinite(E)||E<=0)return Math.round(_);if(Math.abs(E-_)/Math.max(_,1)<=.18)return Math.round(E);const D=e.role==="title"?.34:o?.28:e.role==="tag"?.24:.18;return Math.round(_*(1-D)+E*D)},oT=(e,t)=>{const n=String(e||"").trim();if(!n)return n;const r=n.toLowerCase().replace(/\s+/g,"").replace(/[+_/-]/g,""),a={cover:{zh:"封面页",en:"Cover"},titlebullets:{zh:"标题+要点",en:"Title + Bullets"},titlebullet:{zh:"标题+要点",en:"Title + Bullets"},twocolumn:{zh:"双栏布局",en:"Two-column"},lefttextrightimage:{zh:"左文右图",en:"Left text, right image"},titleandcontent:{zh:"标题+内容",en:"Title + Content"}}[r];return a?t==="zh"?a.zh:a.en:n},sT=(e,t)=>{const n=String(e||"").trim();return n&&n.replace(/^[\s\-*•\d.]+/gm,"").replace(/\n{2,}/g,`-`).replace(/\n/g,t==="zh"?",":", ").replace(/\s{2,}/g," ").trim()},Uj=String(WCe).trim()||Ka({role:"You are a PPT planning agent.",instructions:"Generate PPT plan JSON only.",input:"One idea prompt or one outline prompt, plus UI language and optional references.",steps:`1. Understand the planning mode.-2. Build the slide sequence.-3. Return complete slide plan JSON only.`,endGoal:"Produce a machine-readable PPT plan for rendering.",narrowing:`1. No markdown wrapper.-2. No extra explanation.-3. JSON only.`}),Lj=String(GCe).trim()||Ka({role:"You are a PPT slide refinement agent.",instructions:"Refine one or more slide records and return JSON only.",input:"Current slide JSON, topic context, language, and optional references.",steps:`1. Improve slide text and description.-2. Keep ids stable.-3. Return JSON only.`,endGoal:"Produce render-ready slide JSON.",narrowing:`1. No markdown wrapper unless the caller explicitly allows it.-2. No extra commentary.`}),Oj=Ka({role:"You extract editable slide-layer text from a rendered PPT slide.",instructions:"Return JSON only.",input:"One full rendered slide image plus expected slide text candidates.",steps:`1. Find only slide-layer text and ignore text inside material images.-2. Determine geometry first: text, role, x, y, w, h relative to the full slide.-3. Then estimate style: fontSize relative to the full slide, fontWeight, color, align, lineHeight, optional gradient and stroke.`,endGoal:"Produce one machine-readable textBlocks array for editable slide text.",narrowing:`1. JSON only.-2. Ignore text inside embedded material images.-3. Keep coordinates relative to the full slide.`}),MIe=Ka({role:"You review a composed slide text layer against the original rendered slide.",instructions:"Return JSON only.",input:"Image 1: original rendered slide. Image 2: textless background plus current text layer composite. Current textBlocks JSON.",steps:`1. Compare image 2 against image 1 only for slide-layer text.-2. Check missing text, wrong position, wrong relative size, and obvious style mismatch.-3. Return one corrected full textBlocks array.`,endGoal:"Produce a corrected textBlocks array that matches the original slide-layer text closely.",narrowing:`1. JSON only.-2. Review only slide-layer text.-3. Ignore text inside material images.`}),rb=e=>Number.isFinite(e)?Math.max(0,Math.min(1,e)):0,UIe=e=>e==="center"||e==="right"?e:"left",lT=e=>{const t=Array.isArray(e)?e:Array.isArray(e==null?void 0:e.textBlocks)?e.textBlocks:null;return t?t.map((n,r)=>{const i=typeof(n==null?void 0:n.text)=="string"?n.text.trim():"";if(!i)return null;const a=(n==null?void 0:n.role)==="title"||(n==null?void 0:n.role)==="bullet"||(n==null?void 0:n.role)==="summary"||(n==null?void 0:n.role)==="tag"?n.role:i.length<=12&&Number((n==null?void 0:n.w)||0)<=.2&&Number((n==null?void 0:n.h)||0)<=.09?"tag":r===0?"title":"bullet",o=n!=null&&n.style&&typeof n.style=="object"?{fontFamily:typeof n.style.fontFamily=="string"?n.style.fontFamily:void 0,fontSize:typeof n.style.fontSize=="number"&&Number.isFinite(n.style.fontSize)?n.style.fontSize:void 0,fontWeight:typeof n.style.fontWeight=="number"&&Number.isFinite(n.style.fontWeight)?n.style.fontWeight:void 0,fontStyle:n.style.fontStyle==="italic"?"italic":"normal",color:typeof n.style.color=="string"?n.style.color:void 0,gradientFrom:typeof n.style.gradientFrom=="string"?n.style.gradientFrom:void 0,gradientTo:typeof n.style.gradientTo=="string"?n.style.gradientTo:void 0,strokeColor:typeof n.style.strokeColor=="string"?n.style.strokeColor:void 0,strokeWidth:typeof n.style.strokeWidth=="number"&&Number.isFinite(n.style.strokeWidth)?n.style.strokeWidth:void 0,align:UIe(n.style.align),lineHeight:typeof n.style.lineHeight=="number"&&Number.isFinite(n.style.lineHeight)?n.style.lineHeight:void 0,letterSpacing:typeof n.style.letterSpacing=="number"&&Number.isFinite(n.style.letterSpacing)?n.style.letterSpacing:void 0}:void 0;return{id:typeof(n==null?void 0:n.id)=="string"&&n.id.trim()?n.id.trim():`text-block-${r+1}`,role:a,text:i,x:rb(Number(n==null?void 0:n.x)),y:rb(Number(n==null?void 0:n.y)),w:rb(Number((n==null?void 0:n.w)||.1)),h:rb(Number((n==null?void 0:n.h)||.05)),style:o}}).filter(Boolean):[]},ib=(e,t="111827")=>{const n=String(e||"").trim();if(!n)return t;const r=n.replace(/^#/,"");if(/^[0-9a-fA-F]{6}$/.test(r))return r.toUpperCase();const i=n.match(/rgb\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)/i);if(i){const a=Math.max(0,Math.min(255,Number(i[1]))).toString(16).padStart(2,"0"),o=Math.max(0,Math.min(255,Number(i[2]))).toString(16).padStart(2,"0"),s=Math.max(0,Math.min(255,Number(i[3]))).toString(16).padStart(2,"0");return`${a}${o}${s}`.toUpperCase()}return t},hY=(e,t=600,n=360)=>{const r=Array.isArray(e.data)&&e.data.length>0?e.data:[{label:"Q1",value:42},{label:"Q2",value:76},{label:"Q3",value:58}],i=Math.max(...r.map(T=>Math.max(0,Number(T.value||0))),1),a=e.color||"#2563eb",o=T=>{if(T===0)return a;const D=["#06B6D4","#8B5CF6","#F59E0B","#22C55E","#EF4444","#3B82F6"];return D[(T-1)%D.length]},s=r.map((T,D)=>{const I=Math.max(0,Number(T.value||0))/i,j=r.length===1?t/2:64+D/Math.max(r.length-1,1)*(t-148),R=n-68-I*(n-148);return{item:T,index:D,ratio:I,x:j,y:R,fill:o(D)}}),l=s.map((T,D)=>`${D===0?"M":"L"} ${T.x} ${T.y}`).join(" "),c=`${l} L ${t-42} ${n-54} L 48 ${n-54} Z`,u=r.reduce((T,D,I)=>{const j=T[T.length-1],R=j?j.start+Math.max(0,Number(j.item.value||0)):0;return T.push({start:R,item:D,index:I}),T},[]),d=r.reduce((T,D)=>T+Math.max(0,Number(D.value||0)),0)||1,h=e.chartType==="pie"||e.chartType==="ring"?u.map(({start:T,item:D,index:I})=>{const j=T/d*Math.PI*2-Math.PI/2,R=(T+Math.max(0,Number(D.value||0)))/d*Math.PI*2-Math.PI/2,z=Math.min(t,n)*.26,B=t/2,W=n/2+6,P=B+Math.cos(j)*z,Z=W+Math.sin(j)*z,Q=B+Math.cos(R)*z,X=W+Math.sin(R)*z,q=R-j>Math.PI?1:0,te=o(I);return`<path d="M ${B} ${W} L ${P} ${Z} A ${z} ${z} 0 ${q} 1 ${Q} ${X} Z" fill="${te}" opacity="0.92" />`}).join(""):"",f=e.chartType==="ring"?`<circle cx="${t/2}" cy="${n/2+6}" r="${Math.min(t,n)*.13}" fill="#ffffff" />`:"",g=t/2,y=n/2+4,v=Math.min(t,n)*.2,A=r.map((T,D)=>{const I=-Math.PI/2+D/Math.max(r.length,1)*Math.PI*2;return{x:g+Math.cos(I)*v,y:y+Math.sin(I)*v,labelX:g+Math.cos(I)*(v+24),labelY:y+Math.sin(I)*(v+24)}}),w=[1,.75,.5,.25].map(T=>`<polygon points="${r.map((D,I)=>{const j=-Math.PI/2+I/Math.max(r.length,1)*Math.PI*2;return`${g+Math.cos(j)*v*T},${y+Math.sin(j)*v*T}`}).join(" ")}" fill="none" stroke="#E2E8F0" stroke-width="1" />`).join(""),S=s.map((T,D)=>{const I=-Math.PI/2+D/Math.max(r.length,1)*Math.PI*2;return`${g+Math.cos(I)*v*T.ratio},${y+Math.sin(I)*v*T.ratio}`}).join(" "),_=`<g><rect x="${t-122}" y="20" width="92" height="28" rx="14" fill="#F8FAFC" stroke="#E2E8F0" /><text x="${t-76}" y="38" font-size="12" font-family="Arial" text-anchor="middle" fill="#64748B">${String(e.chartType).toUpperCase()}</text></g>`,E=`- <svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${n}" viewBox="0 0 ${t} ${n}">- <rect width="${t}" height="${n}" rx="28" fill="#ffffff" />- <rect x="1" y="1" width="${t-2}" height="${n-2}" rx="28" fill="none" stroke="#E2E8F0" />- ${e.title?`<text x="30" y="38" font-size="18" font-family="Arial" fill="#64748B">${e.title}</text>`:""}- ${_}- ${e.chartType==="pie"||e.chartType==="ring"?`${h}${f}`:e.chartType==="radar"?`- ${w}- ${A.map((T,D)=>{var I;return`<line x1="${g}" y1="${y}" x2="${T.x}" y2="${T.y}" stroke="#E2E8F0" stroke-width="1" /><text x="${T.labelX}" y="${T.labelY}" font-size="12" text-anchor="middle" fill="#64748B">${((I=r[D])==null?void 0:I.label)||""}</text>`}).join("")}- <polygon points="${S}" fill="${a}" fill-opacity="0.18" stroke="${a}" stroke-width="4" />- ${s.map((T,D)=>{const I=-Math.PI/2+D/Math.max(r.length,1)*Math.PI*2,j=g+Math.cos(I)*v*T.ratio,R=y+Math.sin(I)*v*T.ratio;return`<circle cx="${j}" cy="${R}" r="5" fill="${o(D)}" />`}).join("")}- `:`- <line x1="40" y1="${n-54}" x2="${t-30}" y2="${n-54}" stroke="#CBD5E1" stroke-width="2" />- <line x1="48" y1="56" x2="48" y2="${n-48}" stroke="#E2E8F0" stroke-width="2" />- ${e.chartType==="area"?`<path d="${c}" fill="${a}" fill-opacity="0.18" />`:""}- ${e.chartType==="line"||e.chartType==="area"?`<path d="${l}" fill="none" stroke="${a}" stroke-width="6" stroke-linecap="round" stroke-linejoin="round" />`:""}- ${e.chartType==="bar"?s.map((T,D)=>{const I=Math.max(90,t-220),j=18,R=80+D*52;return`<g><text x="38" y="${R+13}" font-size="13" text-anchor="start" fill="#64748B">${T.item.label}</text><rect x="118" y="${R}" width="${I}" height="${j}" rx="9" fill="#F1F5F9" /><rect x="118" y="${R}" width="${Math.max(18,T.ratio*I)}" height="${j}" rx="9" fill="${o(D)}" /><text x="${118+I+8}" y="${R+13}" font-size="13" fill="#64748B">${Math.round(Number(T.item.value||0))}</text></g>`}).join(""):s.map((T,D)=>{const I=Math.max(32,(t-184)/Math.max(r.length,1)-16),j=68+D*Math.max(72,(t-156)/Math.max(r.length,1)),R=Math.max(12,T.ratio*(n-138)),z=n-62-R;return e.chartType==="scatter"?`<g><circle cx="${T.x}" cy="${T.y}" r="8" fill="${o(D)}" /><text x="${T.x}" y="${T.y-18}" font-size="14" text-anchor="middle" fill="#64748B">${Math.round(Number(T.item.value||0))}</text><text x="${T.x}" y="${n-28}" font-size="13" text-anchor="middle" fill="#64748B">${T.item.label}</text></g>`:e.chartType==="line"||e.chartType==="area"?`<g><circle cx="${T.x}" cy="${T.y}" r="8" fill="${o(D)}" /><text x="${T.x}" y="${T.y-18}" font-size="14" text-anchor="middle" fill="#64748B">${Math.round(Number(T.item.value||0))}</text><text x="${T.x}" y="${n-28}" font-size="13" text-anchor="middle" fill="#64748B">${T.item.label}</text></g>`:`<g><rect x="${j}" y="${z}" width="${I}" height="${R}" rx="12" fill="${o(D)}" /><text x="${j+I/2}" y="${z-10}" font-size="14" text-anchor="middle" fill="#64748B">${Math.round(Number(T.item.value||0))}</text><text x="${j+I/2}" y="${n-28}" font-size="13" text-anchor="middle" fill="#64748B">${T.item.label}</text></g>`}).join("")}- `}- </svg>- `.trim();return`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(E)))}`},pY=(e,t,n=640,r=360)=>{const i=e==="video"?'<polygon points="286,136 286,224 362,180" fill="#ffffff" opacity="0.96" />':'<path d="M288 140 L324 140 L356 112 L356 248 L324 220 L288 220 Z" fill="#ffffff" opacity="0.96" /><path d="M392 142 C414 160 414 200 392 218" fill="none" stroke="#ffffff" stroke-width="14" stroke-linecap="round" opacity="0.92" />',a=`- <svg xmlns="http://www.w3.org/2000/svg" width="${n}" height="${r}" viewBox="0 0 ${n} ${r}">- <defs>- <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">- <stop offset="0%" stop-color="#0f172a" />- <stop offset="100%" stop-color="#1e293b" />- </linearGradient>- </defs>- <rect width="${n}" height="${r}" rx="26" fill="url(#bg)" />- <circle cx="${n/2}" cy="${r/2-18}" r="72" fill="#ffffff" opacity="0.12" />- ${i}- <text x="${n/2}" y="${r-42}" font-size="28" font-family="Arial" text-anchor="middle" fill="#ffffff">${t}</text>- </svg>- `.trim();return`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(a)))}`},ab=async e=>new Promise((t,n)=>{const r=new Image;r.onload=()=>t(r),r.onerror=()=>n(new Error("Failed to load image for PDF export")),r.src=e}),gY=(e,t,n,r,i,a)=>{const o=Math.max(0,Math.min(a,Math.min(r,i)/2));e.beginPath(),e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()},LIe=(e,t,n,r,i,a)=>{const o=Math.min(i,a)*.16,s=i*.18,l=i*.16;switch(e.beginPath(),t){case"roundRect":gY(e,n,r,i,a,o);return;case"triangle":e.moveTo(n+i/2,r),e.lineTo(n+i,r+a),e.lineTo(n,r+a);break;case"parallelogram":e.moveTo(n+s,r),e.lineTo(n+i,r),e.lineTo(n+i-s,r+a),e.lineTo(n,r+a);break;case"trapezoid":e.moveTo(n+l,r),e.lineTo(n+i-l,r),e.lineTo(n+i,r+a),e.lineTo(n,r+a);break;case"hexagon":e.moveTo(n+l,r),e.lineTo(n+i-l,r),e.lineTo(n+i,r+a/2),e.lineTo(n+i-l,r+a),e.lineTo(n+l,r+a),e.lineTo(n,r+a/2);break;case"chevron":{const c=i*.22;e.moveTo(n,r),e.lineTo(n+i-c,r),e.lineTo(n+i,r+a/2),e.lineTo(n+i-c,r+a),e.lineTo(n,r+a),e.lineTo(n+c,r+a/2);break}case"message":{const c=a*.18;e.moveTo(n+o,r),e.lineTo(n+i-o,r),e.quadraticCurveTo(n+i,r,n+i,r+o),e.lineTo(n+i,r+a-c-o),e.quadraticCurveTo(n+i,r+a-c,n+i-o,r+a-c),e.lineTo(n+i*.52,r+a-c),e.lineTo(n+i*.38,r+a),e.lineTo(n+i*.36,r+a-c),e.lineTo(n+o,r+a-c),e.quadraticCurveTo(n,r+a-c,n,r+a-c-o),e.lineTo(n,r+o),e.quadraticCurveTo(n,r,n+o,r);break}case"rect":default:e.rect(n,r,i,a);break}e.closePath()},jj=async(e,t,n=Hf,r=Xf)=>{const i=Array.isArray(e.elements)?e.elements:[],a=Array.isArray(e.textBlocks)&&e.textBlocks.length>0?e.textBlocks:dY(e.elements||[]),o=document.createElement("canvas");o.width=n,o.height=r;const s=o.getContext("2d");if(!s)throw new Error("Canvas context unavailable for PDF export");if(s.fillStyle="#ffffff",s.fillRect(0,0,n,r),t){const l=await AA(t),c=await ab(l);s.drawImage(c,0,0,n,r)}for(const l of i){if(l.type==="text")continue;const c=l.x*n,u=l.y*r,d=l.w*n,h=l.h*r;if(l.type==="image"){const f=await AA(l.src),g=await ab(f);s.save(),s.beginPath(),s.rect(c,u,d,h),s.clip(),s.drawImage(g,c,u,d,h),s.restore();continue}if(l.type==="shape"){s.save(),l.shape==="line"?(s.strokeStyle=l.stroke||"rgba(255,255,255,0.72)",s.lineWidth=Math.max(1,l.strokeWidth||2),s.beginPath(),s.moveTo(c,u+h/2),s.lineTo(c+d,u+h/2),s.stroke()):(LIe(s,l.shape,c,u,d,h),s.fillStyle=l.fill||"rgba(255,255,255,0.16)",s.fill(),l.stroke&&(s.strokeStyle=l.stroke,s.lineWidth=Math.max(1,l.strokeWidth||1.5),s.stroke())),s.restore();continue}if(l.type==="table"){const f=Array.isArray(l.rows)&&l.rows.length>0?l.rows:[["A","B"],["1","2"]],g=h/Math.max(f.length,1),y=Math.max(...f.map(w=>w.length),1),v=d/y,A=Math.max(0,Number(l.headerRows||0));s.save(),s.fillStyle=l.fill||"rgba(255,255,255,0.95)",s.fillRect(c,u,d,h),s.strokeStyle=l.stroke||"rgba(148,163,184,0.6)",s.lineWidth=1,s.font=`${Math.max(12,Math.min(18,g*.32))}px "Microsoft YaHei"`,s.textBaseline="middle",f.forEach((w,S)=>{w.forEach((_,E)=>{const T=c+E*v,D=u+S*g;S<A&&(s.fillStyle="rgba(226,232,240,0.95)",s.fillRect(T,D,v,g)),s.strokeRect(T,D,v,g),s.fillStyle=l.textColor||"#0f172a",s.fillText(String(_||""),T+10,D+g/2,Math.max(0,v-20))})}),s.restore();continue}if(l.type==="chart"){const f=hY(l),g=await ab(f);s.drawImage(g,c,u,d,h);continue}if(l.type==="formula"){s.save(),gY(s,c,u,d,h,Math.min(d,h)*.18),s.fillStyle="rgba(255,255,255,0.92)",s.fill(),s.strokeStyle="rgba(226,232,240,0.92)",s.lineWidth=1.5,s.stroke(),s.fillStyle=l.color||"#0f172a",s.font=`${Math.max(14,Number(l.fontSize||20))}px "Cambria Math","Times New Roman","Microsoft YaHei"`,s.textBaseline="middle",s.fillText(l.latex||"E = mc^2",c+16,u+h/2,Math.max(0,d-32)),s.restore();continue}if(l.type==="video"||l.type==="audio"){const f=pY(l.type,l.title||(l.type==="video"?"Video":"Audio")),g=await ab(f);s.drawImage(g,c,u,d,h)}}if(a.length>0)for(const l of a){const c=l.style||{},u=hR(l,n,r),d=l.x*n,h=l.y*r,f=l.w*n,g=l.h*r,y=u*Number(c.lineHeight||(l.role==="title"?1.12:l.role==="tag"?1.05:1.35)),v=String(l.text||"").split(/\r?\n/).filter(Boolean),A=Number(c.fontWeight||(l.role==="title"?900:l.role==="tag"?800:500)),w=c.fontStyle==="italic"?"italic ":"",S=c.fontFamily||"Microsoft YaHei",_=l.role==="title"?18:l.role==="tag"?16:24,E=l.role==="title"?12:l.role==="tag"?10:16;if(l.role==="tag"){s.save(),s.fillStyle="rgba(26,89,160,0.55)",s.strokeStyle="rgba(116,217,255,0.55)",s.lineWidth=2;const D=Math.min(g/2,18);s.beginPath(),s.moveTo(d+D,h),s.lineTo(d+f-D,h),s.quadraticCurveTo(d+f,h,d+f,h+D),s.lineTo(d+f,h+g-D),s.quadraticCurveTo(d+f,h+g,d+f-D,h+g),s.lineTo(d+D,h+g),s.quadraticCurveTo(d,h+g,d,h+g-D),s.lineTo(d,h+D),s.quadraticCurveTo(d,h,d+D,h),s.closePath(),s.fill(),s.stroke(),s.restore()}if(s.save(),s.font=`${w}${A} ${u}px "${S}"`,s.textBaseline="top",s.shadowColor=l.role==="title"?"rgba(15,23,42,0.55)":"rgba(15,23,42,0.18)",s.shadowBlur=l.role==="title"?10:4,s.shadowOffsetX=0,s.shadowOffsetY=1,s.lineJoin="round",c.strokeColor&&(s.strokeStyle=c.strokeColor,s.lineWidth=Number(c.strokeWidth||1.2)),c.gradientFrom&&c.gradientTo){const D=s.createLinearGradient(d,h,d+f,h);D.addColorStop(0,c.gradientFrom),D.addColorStop(1,c.gradientTo),s.fillStyle=D}else s.fillStyle=c.color||(l.role==="title"?"#ffffff":l.role==="tag"?"#ffd66b":"#ffffff");v.forEach((D,I)=>{const j=s.measureText(D);let R=d+_/2;c.align==="center"?R=d+f/2-j.width/2:c.align==="right"&&(R=d+f-j.width-_/2);const z=h+E/2+I*y;c.strokeColor&&s.strokeText(D,R,z),s.fillText(D,R,z)}),s.restore()}return o.toDataURL("image/png")},Bj=e=>!Array.isArray(e)||e.length===0?"":e.slice(0,5).map((t,n)=>`Reference ${n+1}: ${t.filename}-${String(t.content||"").slice(0,4e3)}`).join(`--`),zj=e=>!Array.isArray(e)||e.length===0?"":e.slice(0,30).map(t=>{const n=typeof t.sourcePage=="number"?`, page=${t.sourcePage}`:"";return`- ${t.label}: ${t.caption} (source=${t.sourceFile}${n})`}).join(`-`),up=e=>{const t=String(e||"").trim();if(!t)throw new Error("Empty AI response");const n=l=>{try{return JSON.parse(l)}catch{return null}},r=n(t);if(r)return r;const i=t.match(/```json\s*([\s\S]*?)\s*```/i);if(i!=null&&i[1]){const l=String(i[1]).trim(),c=n(l);if(c)return c}const a=(l,c)=>{const u=t.indexOf(l);if(u<0)return null;let d=0;for(let h=u;h<t.length;h+=1){const f=t[h];if(f===l&&(d+=1),f===c&&(d-=1),d===0){const g=t.slice(u,h+1),y=n(g);return y||null}}return null},o=a("[","]");if(o)return o;const s=a("{","}");if(s)return s;throw new Error("Failed to parse AI JSON")},Wj=e=>{const t=Array.isArray(e)?e:Array.isArray(e==null?void 0:e.slides)?e.slides:null;return t?t.map(n=>({title:typeof(n==null?void 0:n.title)=="string"?n.title:"",content:Array.isArray(n==null?void 0:n.content)?n.content.map(r=>String(r)):Array.isArray(n==null?void 0:n.bullets)?n.bullets.map(r=>String(r)):[],description:typeof(n==null?void 0:n.description)=="string"?n.description:"",note:typeof(n==null?void 0:n.note)=="string"?n.note:void 0,layout:typeof(n==null?void 0:n.layout)=="string"?n.layout:void 0,materialLabels:Array.isArray(n==null?void 0:n.materialLabels)?n.materialLabels.map(r=>String(r)).filter(Boolean):Array.isArray(n==null?void 0:n.material_labels)?n.material_labels.map(r=>String(r)).filter(Boolean):[]})).filter(n=>n.title.trim().length>0):[]},AA=async e=>{if(!e)return"";if(e.startsWith("data:"))return e;const t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch image: ${t.status}`);const n=t.headers.get("content-type")||"image/png",r=await t.arrayBuffer(),i=new Uint8Array(r);let a="";const o=32768;for(let l=0;l<i.length;l+=o)a+=String.fromCharCode(...i.subarray(l,l+o));const s=btoa(a);return`data:${n};base64,${s}`},OIe=(e,t,n)=>{const r=new Blob([e],{type:t}),i=document.createElement("a");i.href=URL.createObjectURL(r),i.download=n,document.body.appendChild(i),i.click(),i.remove(),setTimeout(()=>URL.revokeObjectURL(i.href),5e3)},Xa={generateOutline:async(e,t="zh",n,r)=>{const i=Bj(n),a=zj(r),o=Ka({role:"You are PlanFromIdeaAgent for PPT planning.",instructions:"Generate a complete PptPlan from the idea prompt and return JSON only.",input:`idea_prompt: ${e}-ui_language: ${t}--reference_files_content:-${i||"(none)"}--reference_image_assets:-${a||"(none)"}`,steps:`1. Convert the idea into a coherent slide sequence.-2. Write 4-6 specific bullets per slide.-3. Write a concrete visual description for each slide.-4. Write a coherent speaker note paragraph for each slide.-5. Assign materialLabels only when truly relevant.`,endGoal:"Produce a complete render-ready PptPlan with stable slide ids and usable materialLabels.",narrowing:`1. Return JSON only; markdown JSON block is allowed.-2. Every slide must include id, title, content, description, layout, note, materialLabels.-3. materialLabels must come only from reference_image_assets and can be [].-4. All fields must follow ui_language; zh means Simplified Chinese.`}),s=await ja([{role:"system",content:Uj},{role:"user",content:o}],void 0,{timeoutMs:12e4});try{const l=up(s),c=Wj(l).map((u,d)=>({...u,id:u.id||`slide-${d+1}`,note:typeof u.note=="string"?sT(u.note,t):"",layout:typeof u.layout=="string"?oT(u.layout,t):"",description:typeof u.description=="string"?u.description:""}));if(c.length===0)throw new Error("No outline parsed from AI response");return c}catch(l){throw console.error("Failed to parse outline",l),l instanceof Error?l:new Error("Failed to parse AI response")}},generatePlanFromOutline:async(e,t="zh",n,r)=>{const i=Bj(n),a=zj(r),o=Ka({role:"You are PlanFromOutlineAgent for PPT planning.",instructions:"Generate a complete PptPlan from the outline and return JSON only.",input:`outline_text:-${e}--ui_language: ${t}--reference_files_content:-${i||"(none)"}--reference_image_assets:-${a||"(none)"}`,steps:`1. Expand the outline into a coherent slide sequence.-2. Write 4-6 specific bullets per slide.-3. Write a concrete visual description for each slide.-4. Write a coherent speaker note paragraph for each slide.-5. Assign materialLabels only when truly relevant.`,endGoal:"Produce a complete render-ready PptPlan derived from the outline.",narrowing:`1. Return JSON only; markdown JSON block is allowed.-2. Every slide must include id, title, content, description, layout, note, materialLabels.-3. materialLabels must come only from reference_image_assets and can be [].-4. All fields must follow ui_language; zh means Simplified Chinese.`}),s=await ja([{role:"system",content:Uj},{role:"user",content:o}],void 0,{timeoutMs:12e4});try{const l=up(s),c=Wj(l).map((u,d)=>({...u,id:u.id||`slide-${d+1}`,note:typeof u.note=="string"?sT(u.note,t):"",layout:typeof u.layout=="string"?oT(u.layout,t):"",description:typeof u.description=="string"?u.description:""}));if(c.length===0)throw new Error("No plan parsed from AI response");return c}catch(l){throw console.error("Failed to parse plan from outline",l),l instanceof Error?l:new Error("Failed to parse AI response")}},generateSlidesFromDescription:async e=>await Xa.generateOutline(e,"zh"),generatePageDescription:async(e,t,n,r)=>{const i=e[t],a=Array.isArray(r)&&r.length>0?r.slice(0,3).map(c=>`- ${c.filename||c.name||"ref"}:-${String(c.content||"").slice(0,2e3)}`).join(`--`):"",o=JSON.stringify({id:i.id||`slide-${t+1}`,title:i.title,content:i.content,description:i.description||"",note:i.note||"",layout:i.layout||""},null,2),s=Ka({role:"You are a single-slide PPT refinement agent.",instructions:"Improve one slide record and return JSON only.",input:`Topic: ${n}-Slide index: ${t+1}--Current slide:-${o}${a?`--Reference:-${a}`:""}`,steps:`1. Improve bullets to be concise and presentation-friendly, with at most 12 words each.-2. Refine the image description.-3. Add or improve speaker note and layout hint only when helpful.-4. Keep the slide id stable.`,endGoal:"Produce one improved slide JSON record that is ready for image generation.",narrowing:`1. Return JSON only.-2. If note exists, write it as a coherent spoken script of 3-6 connected sentences.-3. No extra text outside the JSON payload.`}),l=await ja([{role:"system",content:Lj},{role:"user",content:s}],void 0,{timeoutMs:12e4});try{const c=up(l),u=Array.isArray(c==null?void 0:c.slides)?c.slides:Array.isArray(c)?c:null,d=Array.isArray(u)&&u.length>0?u[0]:null;return!d||typeof d!="object"?i:{...i,title:typeof d.title=="string"?d.title:i.title,content:Array.isArray(d.content)?d.content.map(h=>String(h)):i.content,description:typeof d.description=="string"?d.description:i.description,note:typeof d.note=="string"?sT(d.note,"zh"):i.note,layout:typeof d.layout=="string"?oT(d.layout,"zh"):i.layout}}catch{return i}},generatePageImage:async(e,t,n,r,i)=>{const a=Array.isArray(t)?"zh":t,o=Array.isArray(r)?r.map((u,d)=>typeof u=="string"?{url:u,label:`MATERIAL_${d+1}`}:{url:String((u==null?void 0:u.url)||""),label:u==null?void 0:u.label}).filter(u=>u.url):[],s=o.length>0?o.map((u,d)=>`${d+1}. ${u.label||`MATERIAL_${d+1}`}`).join(`-`):"(none)",l=Ka({role:"You are a PPT slide image generation agent.",instructions:"Generate one modern, professional slide image in 16:9.",input:`Title: ${e.title}-Bullets: ${(e.content||[]).join(" | ")}-Language: ${a}-Scene/subject: ${e.description||e.title}-Template style reference: ${n?"provided":"not provided"}-Uploaded material labels:-${s}${i?`--Extra requirements:-${i}`:""}`,steps:`1. Design the slide composition from the title, bullets, and description.-2. Follow the template reference style consistently.-3. Use referenced material images only when required or clearly helpful.-4. Preserve the identity and aspect ratio of referenced material images.`,endGoal:"Produce one sharp, readable, presentation-ready slide image with accurate content coverage.",narrowing:`1. Avoid large paragraphs of text.-2. Prefer diagrammatic or illustrative composition that matches the bullets.-3. If the description contains {{image:Name}}, you must use the material image whose label is Name.-4. Do not redraw, restyle, recolor, or replace referenced material images.-5. Do not add watermarks.`}),c=Array.isArray(o)?o.map(u=>String((u==null?void 0:u.url)||"")).filter(Boolean):[];return await Bc({prompt:l,referenceImageUrl:n,additionalReferenceImageUrls:c})},extractSlideTextBlocks:async(e,t,n="zh")=>{const r=[e.title?`TITLE: ${e.title}`:"",...Array.isArray(e.content)?e.content.map((o,s)=>`BULLET ${s+1}: ${o}`):[]].filter(Boolean),i=Ka({role:"You are a slide-layer text extraction agent for rendered PPT slides.",instructions:"Extract editable slide-layer text blocks and return JSON only.",input:`language: ${n}-expected text candidates:-${r.length>0?r.join(`-`):"(none)"}`,steps:`1. Extract only slide-layer text.-2. Determine geometry first: text, role, x, y, w, h relative to the full slide.-3. Then estimate style, especially relative font size.-4. Keep meaningful short labels, including chip or pill labels.`,endGoal:"Produce one complete textBlocks array that can drive editable slide text rendering.",narrowing:`1. Ignore text inside photos, screenshots, charts, tables, diagrams, devices, logos, and scanned materials.-2. Prefer expected text candidates when they match visible text.-3. Merge wrapped lines from one text box with \\n.-4. Use role=title, bullet, summary, or tag.-5. Use tight text boxes and preserve visible alignment and line breaks.-6. Include dominant color, fontWeight, lineHeight, and optional gradient or stroke when visible.`,outputFormat:'{"textBlocks":[{"id":"title-1","role":"title","text":"Example","x":0.1,"y":0.08,"w":0.6,"h":0.12,"style":{"fontFamily":"Microsoft YaHei","fontSize":30,"fontWeight":700,"fontStyle":"normal","color":"#ffffff","gradientFrom":"#ffffff","gradientTo":"#22d3ee","strokeColor":"rgba(8,15,36,0.35)","strokeWidth":1.2,"align":"left","lineHeight":1.2,"letterSpacing":0}}]}'}),a=await DP(Oj,i,[t],void 0);try{return lT(up(a))}catch(o){return console.error("Failed to parse extracted PPT text blocks",o),[]}},generateTextlessPageImage:async(e,t,n,r="zh")=>{if(!Array.isArray(n)||n.length===0)return t;const i=n.length>0?n.map((l,c)=>`${c+1}. ${l.role}: ${l.text}`).join(`-`):[e.title,...e.content||[]].filter(Boolean).map((l,c)=>`${c+1}. ${l}`).join(`-`),a=n.length>0?n.map((l,c)=>`${c+1}. role=${l.role}; text=${l.text}; box=(x=${l.x.toFixed(3)}, y=${l.y.toFixed(3)}, w=${l.w.toFixed(3)}, h=${l.h.toFixed(3)})`).join(`-`):"(none)",o=n.map((l,c)=>`${c+1}. keep edits strictly inside box=(x=${l.x.toFixed(3)}, y=${l.y.toFixed(3)}, w=${l.w.toFixed(3)}, h=${l.h.toFixed(3)}) and do not modify any pixel outside this box`),s=r==="zh"?`基于原图生成同一页 PPT 的无字底图。只移除下面这些文本框内的文字本身,且只允许修改已给出文本框范围内、被文字笔画实际占据的像素;如果某个文本框里没有文字,就不要做任何修改。文本框外任何像素都绝对不能改动。不要改版式、不要改图片、不要改图标、不要改图表、不要改装饰、不要扩大修改范围。禁止生成任何矩形补丁、纯色块、模糊块、修复块、遮罩边界、文本框痕迹或重新设计的背景。处理后的区域必须与周围原始背景连续一致,看起来像原图里从来没有放过文字。--要删除的文字:-${i||"(none)"}--文字位置:-${a}--严格边界要求:-${o.join(`-`)||"(none)"}`:`Create a textless background for this same slide. Remove only the text inside the listed text boxes, and modify only the pixels actually occupied by text glyphs inside those boxes. If a listed text box contains no text, do not change anything in that box. Absolutely do not modify any pixel outside the listed text boxes. Do not alter layout, images, icons, charts, decorations, or the surrounding background. Do not expand the edited area. Do not create any rectangular patch, flat color block, blur patch, inpaint patch, mask edge, textbox residue, or redesigned background. The cleaned area must blend seamlessly with the original nearby background so it looks like the text was never placed there.--Text to remove:-${i||"(none)"}--Text regions:-${a}--Hard boundaries:-${o.join(`-`)||"(none)"}`;return await Bc({prompt:s,referenceImageUrl:t})},reviewSlideTextBlocks:async(e,t,n,r,i="zh")=>{if(!Array.isArray(r)||r.length===0)return r;try{const a=await jj({...e,textBlocks:r,backgroundImageUrl:n},n,Hf,Xf),o=JSON.stringify({textBlocks:r},null,2),s=Ka({role:"You are a slide text review and correction agent.",instructions:"Review the current text layer against the original slide and return corrected JSON only.",input:`language: ${i}-image 1: original rendered slide-image 2: textless background + current text layer-current textBlocks JSON:-${o}`,steps:`1. Compare image 2 with image 1 only for slide-layer text.-2. Check missing text, wrong relative size, wrong position, and obvious style mismatch.-3. Return one corrected full textBlocks array.`,endGoal:"Produce a corrected textBlocks array that matches the original slide-layer text closely.",narrowing:`1. Ignore text inside material images.-2. Keep geometry relative to the full slide.-3. Correct only slide-layer text.-4. Return JSON only.`,outputFormat:'{"textBlocks":[...]}'}),l=await DP(MIe,s,[t,a],void 0),c=lT(up(l));return c.length>0?c:r}catch(a){return console.error("Failed to review PPT text blocks",a),r}},rewriteSlideTextBlocks:async(e,t,n,r="zh")=>{if(!Array.isArray(t)||t.length===0)return t;const i=JSON.stringify({id:e.id,title:e.title,content:e.content||[],description:e.description||"",note:e.note||"",layout:e.layout||""},null,2),a=JSON.stringify({textBlocks:t},null,2),o=Ka({role:"You are an editable PPT textBlocks rewrite agent.",instructions:"Update existing textBlocks to match the target slide content and return JSON only.",input:`language: ${r}-mode: ${n}-target slide content:-${i}--current textBlocks JSON:-${a}`,steps:`1. Make textBlocks match the target slide content.-2. If mode=text_only, keep geometry and style as unchanged as possible.-3. If mode=text_relayout, you may adjust geometry and font size to fit the new content while keeping the overall layout close.-4. Keep slide-layer labels or tags only if they still make sense.`,endGoal:"Produce one full corrected textBlocks array for the updated slide.",narrowing:`1. Return the full corrected textBlocks array.-2. Do not invent content outside the target slide content.-3. Keep coordinates relative to the full slide.-4. Return JSON only.`,outputFormat:'{"textBlocks":[...]}'});try{const s=await ja([{role:"system",content:Oj},{role:"user",content:o}]),l=lT(up(s));return l.length>0?l:t}catch(s){return console.error("Failed to rewrite PPT text blocks",s),t}},editPageImage:async(e,t,n,r,i)=>{const a=Ka({role:"You are a slide image editing agent.",instructions:"Edit the current slide image as the base image rather than regenerating from scratch.",input:`Slide title: ${e.title}-Bullets: ${(e.content||[]).join(" | ")}-Original visual description: ${e.description||""}-Instruction: ${t}-Template/style reference: ${r?"provided":"not provided"}-Additional references: ${Array.isArray(i)&&i.length>0?"provided":"none"}`,steps:`1. Start from the current slide image.-2. Apply the requested visual edit.-3. Keep the overall visual style consistent with the template and references.-4. Preserve readability.`,endGoal:"Produce one edited 16:9 slide image that reflects the instruction while staying visually consistent.",narrowing:`1. Treat the current slide image as the base image.-2. Keep layout readable.-3. Do not add a watermark.`}),o=n||r,s=Array.isArray(i)?Array.from(new Set(i.map(l=>String(l||"").trim()).filter(Boolean))).slice(0,2):[];n&&r&&r!==n&&s.push(r);try{return await Bc({prompt:a,referenceImageUrl:o,additionalReferenceImageUrls:s})}catch(l){const c=l instanceof Error?l.message:String(l||"");if(!(s.length>0&&/(status 4\d\d|status 500|too large|payload|image|context|token)/i.test(c)))throw l;return console.warn("Retrying slide image edit without additional reference images",l),await Bc({prompt:a,referenceImageUrl:o})}},routeSlideEdits:async(e,t)=>{const n=e.map((o,s)=>`${s+1}. id=${o.id}; title=${o.title}; bullets=${(o.bullets||[]).join(" | ")}; description=${o.description||""}; layout=${o.layout||""}; note=${o.note||""}`).join(`-`),r=Ka({role:"You are a routing agent for slide edits.",instructions:"Map user feedback to per-slide edit actions and return JSON only.",input:`Slides:-${n}--User feedback:-${t}`,steps:`1. Find the target slides.-2. Split multi-slide feedback into separate items.-3. Assign editType for each target slide.-4. Write concise executable instructions.`,endGoal:"Produce a routing JSON array that tells the system how to process each slide edit.",narrowing:`1. Return JSON array only.-2. If unsure, assign the edit to the most relevant slide.-3. Do not invent new slides.-4. Use text_only for simple wording-only changes.-5. Use text_relayout when text changes need reflow but not a new background.-6. Use background_redraw when visuals, composition, or material usage must change.`,outputFormat:'[{"slideId":"slide-2","editType":"text_only|text_relayout|background_redraw","instruction":"...","materialImageUrls":[],"styleRefSlideIds":[],"styleRefPolicy":"style_only|style_and_layout","styleRefImageUrls":[]}]'}),a=(await ja([{role:"system",content:Lj},{role:"user",content:r}])).match(/\[[\s\S]*\]/);if(!a)return[];try{const o=JSON.parse(a[0]);return Array.isArray(o)?o.map(s=>({slideId:String(s.slideId||""),editType:s.editType==="text_only"||s.editType==="text_relayout"||s.editType==="background_redraw"?s.editType:s.kind==="content"?"text_relayout":"background_redraw",instruction:String(s.instruction||""),materialImageUrls:Array.isArray(s.materialImageUrls)?s.materialImageUrls.map(l=>String(l||"").trim()).filter(Boolean):void 0,styleRefSlideIds:Array.isArray(s.styleRefSlideIds)?s.styleRefSlideIds.map(l=>String(l||"").trim()).filter(Boolean):void 0,styleRefPolicy:s.styleRefPolicy==="style_and_layout"?"style_and_layout":"style_only",styleRefImageUrls:Array.isArray(s.styleRefImageUrls)?s.styleRefImageUrls.map(l=>String(l||"").trim()).filter(Boolean):void 0})).filter(s=>s.slideId.trim().length>0&&s.instruction.trim().length>0):[]}catch{return[]}},exportPptx:async(e,t,n)=>{const r=new IIe;r.layout="LAYOUT_WIDE";const i=13.33,a=7.5;for(const o of e){const s=r.addSlide(),l=Array.isArray(o.elements)?o.elements:[],c=Array.isArray(o.textBlocks)&&o.textBlocks.length>0?o.textBlocks:dY(l),u=c.length>0,d=o.backgroundImageUrl,h=o.id?t[o.id]:void 0,f=u?d:d||h;if(f){const g=await AA(f);s.addImage({data:g,x:0,y:0,w:i,h:a})}for(const g of l){if(g.type==="image"){const y=await AA(g.src);s.addImage({data:y,x:g.x*i,y:g.y*a,w:g.w*i,h:g.h*a,sizing:{type:g.fit==="contain"?"contain":g.fit==="stretch"?"crop":"cover",x:g.x*i,y:g.y*a,w:g.w*i,h:g.h*a}})}if(g.type==="shape"){if(g.shape==="line"){s.addShape(r.ShapeType.line,{x:g.x*i,y:g.y*a+g.h*a/2,w:g.w*i,h:0,line:{color:String(g.stroke||"FFFFFF").replace(/^#/,""),width:g.strokeWidth||1.5}});continue}const y=g.shape==="roundRect"?r.ShapeType.roundRect:g.shape==="triangle"?r.ShapeType.triangle||r.ShapeType.rtTriangle||r.ShapeType.rect:g.shape==="parallelogram"?r.ShapeType.parallelogram||r.ShapeType.rect:g.shape==="trapezoid"?r.ShapeType.trapezoid||r.ShapeType.rect:g.shape==="hexagon"?r.ShapeType.hexagon||r.ShapeType.rect:g.shape==="chevron"?r.ShapeType.chevron||r.ShapeType.rect:g.shape==="message"?r.ShapeType.wedgeRoundRectCallout||r.ShapeType.wedgeRectCallout||r.ShapeType.roundRect:r.ShapeType.rect;s.addShape(y,{x:g.x*i,y:g.y*a,w:g.w*i,h:g.h*a,fill:g.fill?{color:String(g.fill).replace(/^#/,""),transparency:0}:{color:"FFFFFF",transparency:100},line:{color:String(g.stroke||"FFFFFF").replace(/^#/,""),transparency:g.stroke?0:100,width:g.strokeWidth||1}})}if(g.type==="table"){s.addTable(g.rows.map(y=>y.map(v=>({text:String(v||"")}))),{x:g.x*i,y:g.y*a,w:g.w*i,h:g.h*a,border:{type:"solid",color:ib(g.stroke,"94A3B8"),pt:1},fill:{color:g.fill?ib(g.fill,"FFFFFF"):"FFFFFF"},color:ib(g.textColor,"111827"),margin:.06,fontFace:"Aptos",fontSize:10,bold:!1,rowH:Math.max(.22,g.h*a/Math.max(g.rows.length||1,1))});continue}if(g.type==="chart"){const y=hY(g);s.addImage({data:y,x:g.x*i,y:g.y*a,w:g.w*i,h:g.h*a});continue}if(g.type==="formula"){s.addText(g.latex||"",{x:g.x*i,y:g.y*a,w:g.w*i,h:g.h*a,fontFace:"Cambria Math",fontSize:g.fontSize||18,color:ib(g.color,"111827"),margin:.06,fit:"shrink",breakLine:!1,valign:"middle"});continue}if(g.type==="video"||g.type==="audio"){const y=g.title||(g.type==="video"?"Video":"Audio"),v=pY(g.type,y);s.addImage({data:v,x:g.x*i,y:g.y*a,w:g.w*i,h:g.h*a}),s.addNotes(`[${g.type}] ${y}: ${g.src}`);continue}}if(u)for(const g of c){const y=g.style||{},v=hR(g,Hf,Xf);s.addText(g.text,{x:g.x*i,y:g.y*a,w:g.w*i,h:g.h*a,fontFace:y.fontFamily||"Aptos",fontSize:v,bold:Number(y.fontWeight||(g.role==="title"?900:g.role==="tag"?800:500))>=600,italic:y.fontStyle==="italic",color:String(y.color||(g.role==="title"?"FFFFFF":g.role==="tag"?"FFD66B":"FFFFFF")).replace(/^#/,""),align:y.align||"left",margin:0,fit:"shrink",breakLine:!1,valign:"middle"})}else f||s.addText(o.title||"",{x:.6,y:.6,w:i-1.2,h:1,fontSize:28,bold:!0,color:"111827"})}await r.writeFile({fileName:`${n}.pptx`})},exportPdf:async(e,t,n)=>{const r=await Jc.create(),i=960,a=540;for(const s of e){const l=s.backgroundImageUrl||(s.id?t[s.id]:void 0),c=r.addPage([i,a]),d=(await jj(s,l,i*2,a*2)).split(",")[1]||"",h=Uint8Array.from(atob(d),g=>g.charCodeAt(0)),f=await r.embedPng(h);c.drawImage(f,{x:0,y:0,width:i,height:a})}const o=await r.save();OIe(o,"application/pdf",`${n}.pdf`)}},jIe={zh:{instruction:"请使用全中文输出。",ppt_text:"PPT文字请使用全中文。"},en:{instruction:"Please output all in English.",ppt_text:"Use English for PPT text."}};function Vj(e="zh"){var t;return((t=jIe[e])==null?void 0:t.ppt_text)||""}function BIe(e,t,n,r=!1,i="",a="zh"){let o="";r&&(o=a==="en"?`--Note: In addition to the template reference image (for style), extra material images are provided. You may select and integrate suitable images/icons/charts/visual elements from them to enrich the slide, based on the content needs.`:`--提示:除了模板参考图片(用于风格参考)外,还提供了额外的素材图片。这些素材图片是可供挑选和使用的元素,你可以从这些素材图片中选择合适的图片、图标、图表或其他视觉元素直接整合到生成的PPT页面中。请根据页面内容的需要,智能地选择和组合这些素材图片中的元素。`);const s=i?a==="en"?`--Extra requirements (must follow):-${i}-`:`--额外要求(请务必遵循):-${i}-`:"";return Ka(a==="en"?{role:"You are an expert PPT visual design agent.",instructions:`Generate one polished PPT slide image. ${Vj(a)}${o}${s}`.trim(),input:`Page description:-${e}--Overall outline:-(none)--Current section: (none)`,steps:`1. Read the page description and outline context.-2. Build the strongest slide composition for the content.-3. Follow the template reference image style closely.-4. If material images are provided, integrate only the useful ones.`,endGoal:"Produce one sharp, presentation-ready 16:9 slide image that renders the described content accurately.",narrowing:`1. Keep text crisp and readable.-2. Avoid markdown symbols unless strictly required.-3. Use the template for style only; do not copy template text.-4. Fill empty regions with suitable decorative shapes or illustrations.`}:{role:"你是一名专家级 PPT 视觉设计智能体。",instructions:`生成一张完成度很高的 PPT 页面图。${Vj(a)}${o}${s}`.trim(),input:`页面描述:-${e}--整体大纲:-(none)--当前章节:(none)`,steps:`1. 阅读页面描述和整套 PPT 上下文。-2. 自动组织最佳构图与视觉层级。-3. 严格参考模板图片的风格与设计语言。-4. 如果提供了素材图,只在确实有帮助时整合进去。`,endGoal:"产出一张清晰、锐利、适合正式演示的 16:9 PPT 页面图。",narrowing:`1. 文字必须清晰可读。-2. 非必要不要出现 markdown 符号。-3. 只参考模板风格,不得复用模板中的文字。-4. 用适量装饰图形或插画填补空缺区域。`})}function zIe(e){const t=e.language||"zh",n=String(e.requirements||"").trim(),r=Ka(t==="en"?{role:"You are a PPT template background design agent.",instructions:"Generate one blank slide background image that will be used as a style reference later.",input:`User requirements:-${n||"(none)"}`,steps:`1. Interpret the requested visual direction.-2. Design a clean background for a 16:9 slide.-3. Keep it reusable as a template reference.`,endGoal:"Produce one text-free PPT template background image.",narrowing:`1. Do not include text, letters, or watermarks.-2. Keep the slide clean and reusable.`}:{role:"你是一名 PPT 模板背景设计智能体。",instructions:"生成一张空白幻灯片背景图,供后续整套 PPT 作为风格参考使用。",input:`用户需求:-${n||"(none)"}`,steps:`1. 理解用户需要的视觉方向。-2. 设计一张 16:9 比例的干净模板背景图。-3. 保持它适合作为后续模板参考。`,endGoal:"产出一张不含文字的 PPT 模板背景图。",narrowing:`1. 禁止出现任何文字、字母或水印。-2. 保持页面干净、可复用。`});return BIe(r,"","",!1,"",t)}const Gj=HZ,qj=XZ,WIe=N.forwardRef(({className:e,inset:t,children:n,...r},i)=>m.jsxs(r2,{ref:i,className:gt("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,m.jsx(dE,{className:"ml-auto h-4 w-4"})]}));WIe.displayName=r2.displayName;const VIe=N.forwardRef(({className:e,...t},n)=>m.jsx(i2,{ref:n,className:gt("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));VIe.displayName=i2.displayName;const oE=N.forwardRef(({className:e,...t},n)=>m.jsx(ZZ,{children:m.jsx($w,{ref:n,className:gt("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})}));oE.displayName=$w.displayName;const sE=N.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(Jw,{ref:r,className:gt("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));sE.displayName=Jw.displayName;const GIe=N.forwardRef(({className:e,children:t,checked:n,...r},i)=>m.jsxs(Qw,{ref:i,className:gt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(t2,{children:m.jsx(qo,{className:"h-4 w-4"})})}),t]}));GIe.displayName=Qw.displayName;const qIe=N.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(e2,{ref:r,className:gt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(t2,{children:m.jsx(AB,{className:"h-2 w-2 fill-current"})})}),t]}));qIe.displayName=e2.displayName;const HIe=N.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(Yw,{ref:r,className:gt("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...n}));HIe.displayName=Yw.displayName;const XIe=N.forwardRef(({className:e,...t},n)=>m.jsx(n2,{ref:n,className:gt("-mx-1 my-1 h-px bg-border",e),...t}));XIe.displayName=n2.displayName;const ZIe=CA("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:brightness-75",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),ri=N.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{const o=r?DA:"button";return m.jsx(o,{ref:a,"data-slot":"button",className:gt(ZIe({variant:t,size:n,className:e})),...i})});ri.displayName="Button";function Uc({...e}){return m.jsx(LN,{"data-slot":"dialog",...e})}function KIe({...e}){return m.jsx(ON,{"data-slot":"dialog-portal",...e})}function $Ie({className:e,...t}){return m.jsx(JA,{"data-slot":"dialog-overlay",className:gt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Lc({className:e,children:t,...n}){return m.jsxs(KIe,{"data-slot":"dialog-portal",children:[m.jsx($Ie,{}),m.jsxs(QA,{"data-slot":"dialog-content",className:gt("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...n,children:[t,m.jsxs(jN,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[m.jsx(Va,{}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Ou({className:e,...t}){return m.jsx("div",{"data-slot":"dialog-header",className:gt("flex flex-col gap-2 text-center sm:text-left",e),...t})}function mY({className:e,...t}){return m.jsx("div",{"data-slot":"dialog-footer",className:gt("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function ju({className:e,...t}){return m.jsx(ew,{"data-slot":"dialog-title",className:gt("text-lg leading-none font-semibold",e),...t})}function YIe({className:e,...t}){return m.jsx(tw,{"data-slot":"dialog-description",className:gt("text-muted-foreground text-sm",e),...t})}function lE({className:e,...t}){return m.jsx("textarea",{"data-slot":"textarea",className:gt("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-sm transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}const JIe=(e,t=[])=>(Array.isArray(e)&&e.length>0?e:pR(t)).map(r=>(r==null?void 0:r.type)==="text"?{id:r.id,type:"text",text:r.text,role:r.role,x:r.x,y:r.y,w:r.w,h:r.h,style:r.style}:(r==null?void 0:r.type)==="image"?{id:r.id,type:"image",src:r.src,fit:r.fit,x:r.x,y:r.y,w:r.w,h:r.h}:(r==null?void 0:r.type)==="shape"?{id:r.id,type:"shape",shape:r.shape,fill:r.fill,stroke:r.stroke,strokeWidth:r.strokeWidth,x:r.x,y:r.y,w:r.w,h:r.h}:(r==null?void 0:r.type)==="table"?{id:r.id,type:"table",rows:Array.isArray(r.rows)?r.rows.map(a=>Array.isArray(a)?a.map(o=>String(o??"")):[]):[],headerRows:r.headerRows,fill:r.fill,stroke:r.stroke,textColor:r.textColor,x:r.x,y:r.y,w:r.w,h:r.h}:(r==null?void 0:r.type)==="chart"?{id:r.id,type:"chart",chartType:r.chartType,title:r.title,data:Array.isArray(r.data)?r.data.map(a=>({label:String((a==null?void 0:a.label)??""),value:Number((a==null?void 0:a.value)??0)})):[],color:r.color,x:r.x,y:r.y,w:r.w,h:r.h}:(r==null?void 0:r.type)==="formula"?{id:r.id,type:"formula",latex:r.latex,fontSize:r.fontSize,color:r.color,x:r.x,y:r.y,w:r.w,h:r.h}:(r==null?void 0:r.type)==="video"?{id:r.id,type:"video",src:r.src,poster:r.poster,title:r.title,x:r.x,y:r.y,w:r.w,h:r.h}:(r==null?void 0:r.type)==="audio"?{id:r.id,type:"audio",src:r.src,title:r.title,x:r.x,y:r.y,w:r.w,h:r.h}:null).filter(r=>!!r),ob=(e,t)=>{const n=(t==null?void 0:t.renderLayer)||void 0,r=Array.isArray(n==null?void 0:n.textBlocks)?n.textBlocks:[],i=JIe(n==null?void 0:n.elements,r);return{id:e.id,title:e.title,content:e.content||[],description:e.description,note:e.note,layout:e.layout,backgroundImageUrl:(n==null?void 0:n.backgroundImageUrl)||(t==null?void 0:t.backgroundImageUrl),elements:i}},QIe=e=>e.map(t=>({id:t.id,role:t.role,text:t.text,x:t.x,y:t.y,w:t.w,h:t.h,style:t.style})),e8e=e=>e.elements.map(t=>t.type==="text"?pR([{id:t.id,role:t.role,text:t.text,x:t.x,y:t.y,w:t.w,h:t.h,style:t.style}])[0]:t.type==="image"?{id:t.id,type:"image",src:t.src,fit:t.fit,x:t.x,y:t.y,w:t.w,h:t.h}:t.type==="shape"?{id:t.id,type:"shape",shape:t.shape,fill:t.fill,stroke:t.stroke,strokeWidth:t.strokeWidth,x:t.x,y:t.y,w:t.w,h:t.h}:t.type==="table"?{id:t.id,type:"table",rows:t.rows,headerRows:t.headerRows,fill:t.fill,stroke:t.stroke,textColor:t.textColor,x:t.x,y:t.y,w:t.w,h:t.h}:t.type==="chart"?{id:t.id,type:"chart",chartType:t.chartType,title:t.title,data:t.data,color:t.color,x:t.x,y:t.y,w:t.w,h:t.h}:t.type==="formula"?{id:t.id,type:"formula",latex:t.latex,fontSize:t.fontSize,color:t.color,x:t.x,y:t.y,w:t.w,h:t.h}:t.type==="video"?{id:t.id,type:"video",src:t.src,poster:t.poster,title:t.title,x:t.x,y:t.y,w:t.w,h:t.h}:{id:t.id,type:"audio",src:t.src,title:t.title,x:t.x,y:t.y,w:t.w,h:t.h}),Hj=e=>{const t=e.elements.filter(i=>i.type==="text"),n=QIe(t),r=e8e(e);return{page:{id:e.id,title:e.title,content:e.content,description:e.description,note:e.note,layout:e.layout,backgroundImageUrl:e.backgroundImageUrl,textBlocks:n,elements:r,status:"completed"},textBlocks:n,elements:r}},t8e=(e,t,n)=>{const r=Math.max(1,t),i=Math.max(1,n),a=Math.min(r,i)*.16;switch(e){case"roundRect":return`M ${a} 0 L ${r-a} 0 Q ${r} 0 ${r} ${a} L ${r} ${i-a} Q ${r} ${i} ${r-a} ${i} L ${a} ${i} Q 0 ${i} 0 ${i-a} L 0 ${a} Q 0 0 ${a} 0 Z`;case"triangle":return`M ${r/2} 0 L ${r} ${i} L 0 ${i} Z`;case"parallelogram":{const o=r*.18;return`M ${o} 0 L ${r} 0 L ${r-o} ${i} L 0 ${i} Z`}case"trapezoid":{const o=r*.16;return`M ${o} 0 L ${r-o} 0 L ${r} ${i} L 0 ${i} Z`}case"hexagon":{const o=r*.18;return`M ${o} 0 L ${r-o} 0 L ${r} ${i/2} L ${r-o} ${i} L ${o} ${i} L 0 ${i/2} Z`}case"chevron":{const o=r*.22;return`M 0 0 L ${r-o} 0 L ${r} ${i/2} L ${r-o} ${i} L 0 ${i} L ${o} ${i/2} Z`}case"message":{const o=i*.18;return`M ${a} 0 L ${r-a} 0 Q ${r} 0 ${r} ${a} L ${r} ${i-o-a} Q ${r} ${i-o} ${r-a} ${i-o} L ${r*.52} ${i-o} L ${r*.38} ${i} L ${r*.36} ${i-o} L ${a} ${i-o} Q 0 ${i-o} 0 ${i-o-a} L 0 ${a} Q 0 0 ${a} 0 Z`}case"rect":default:return`M 0 0 L ${r} 0 L ${r} ${i} L 0 ${i} Z`}},n8e=96/72,r8e=e=>{var t;return(t=e.style)!=null&&t.align?e.style.align:e.role==="title"?"left":e.role==="tag"?"center":"left"},i8e=e=>{var n;const t=Number(((n=e.style)==null?void 0:n.fontWeight)||0);return Number.isFinite(t)&&t>0?t:e.role==="title"?900:e.role==="tag"?800:500},a8e=e=>e||"#2563eb",sb=(e,t)=>{if(t===0)return e;const n=["#06B6D4","#8B5CF6","#F59E0B","#22C55E","#EF4444","#3B82F6"];return n[(t-1)%n.length]},o8e=(e,t,n,r)=>e.map((i,a)=>{const o=Math.max(0,Number(i.value||0))/t,s=e.length===1?n/2:a/Math.max(e.length-1,1)*n,l=r-o*r;return{x:s,y:l,ratio:o,item:i,index:a}}),s8e=e=>{switch(e){case"column":return"Column";case"area":return"Area";case"scatter":return"Scatter";case"ring":return"Ring";case"radar":return"Radar";default:return e.charAt(0).toUpperCase()+e.slice(1)}},yY=(e,t)=>{const n=String(e||"").trim();if(!n)return t;const r=n.split(/[\\/]/);return r[r.length-1]||t};function l8e(e){var c,u,d,h,f,g,y,v,A,w,S,_;const{element:t,scale:n}=e,r=Number(((c=t.style)==null?void 0:c.fontSize)||(t.role==="title"?28:t.role==="tag"?18:16)),i=Number(((u=t.style)==null?void 0:u.lineHeight)||(t.role==="title"?1.12:t.role==="tag"?1.04:1.35)),a=t.role==="title"?18:t.role==="tag"?12:14,o=t.role==="title"?12:t.role==="tag"?8:10,s=!!((d=t.style)!=null&&d.gradientFrom&&((h=t.style)!=null&&h.gradientTo)),l=Number(((f=t.style)==null?void 0:f.strokeWidth)||0);return m.jsx("div",{className:"absolute overflow-hidden whitespace-pre-wrap break-words",style:{left:`${t.x*100}%`,top:`${t.y*100}%`,width:`${t.w*100}%`,height:`${t.h*100}%`,padding:`${o*n}px ${a*n}px`,fontFamily:((g=t.style)==null?void 0:g.fontFamily)||"Microsoft YaHei, PingFang SC, sans-serif",fontSize:`${Math.max(10,r*n8e*n)}px`,fontWeight:i8e(t),fontStyle:((y=t.style)==null?void 0:y.fontStyle)==="italic"?"italic":"normal",lineHeight:i,textAlign:r8e(t),letterSpacing:(v=t.style)!=null&&v.letterSpacing?`${Number(t.style.letterSpacing)*n}px`:void 0,color:s?"transparent":((A=t.style)==null?void 0:A.color)||(t.role==="title"?"#FFFFFF":t.role==="tag"?"#FDE68A":"#FFFFFF"),backgroundImage:s?`linear-gradient(90deg, ${(w=t.style)==null?void 0:w.gradientFrom}, ${(S=t.style)==null?void 0:S.gradientTo})`:void 0,backgroundClip:s?"text":void 0,WebkitBackgroundClip:s?"text":void 0,WebkitTextFillColor:s?"transparent":void 0,WebkitTextStroke:l>0?`${Math.max(.5,l*n)}px ${((_=t.style)==null?void 0:_.strokeColor)||"rgba(15,23,42,0.45)"}`:void 0},children:t.text})}function c8e(e){const{element:t}=e,n=t.fit==="contain"?"contain":t.fit==="stretch"?"fill":"cover";return m.jsx("div",{className:"absolute overflow-hidden",style:{left:`${t.x*100}%`,top:`${t.y*100}%`,width:`${t.w*100}%`,height:`${t.h*100}%`},children:m.jsx("img",{src:t.src,alt:"",className:"h-full w-full",style:{objectFit:n},draggable:!1})})}function u8e(e){const{element:t,scale:n}=e,r=t.shape==="line",i=Math.max(1,(t.strokeWidth||1.5)*n);return m.jsx("div",{className:"absolute",style:{left:`${t.x*100}%`,top:`${t.y*100}%`,width:`${t.w*100}%`,height:`${t.h*100}%`,pointerEvents:"none"},children:r?m.jsx("div",{className:"absolute left-0 top-1/2 w-full -translate-y-1/2",style:{height:`${Math.max(1,(t.strokeWidth||2)*n)}px`,background:t.stroke||"rgba(255,255,255,0.72)"}}):t.shape==="rect"?m.jsx("div",{className:"absolute inset-0",style:{border:`${i}px solid ${t.stroke||"rgba(255,255,255,0.6)"}`,background:t.fill||"rgba(255,255,255,0.16)"}}):m.jsx("svg",{viewBox:"0 0 100 100",preserveAspectRatio:"none",className:"absolute inset-0 h-full w-full overflow-visible",children:m.jsx("path",{d:t8e(t.shape,100,100),fill:t.fill||"rgba(255,255,255,0.16)",stroke:t.stroke||"rgba(255,255,255,0.6)",strokeWidth:Math.max(1,(t.strokeWidth||1.5)*1.5),vectorEffect:"non-scaling-stroke"})})})}function d8e(e){const{element:t,scale:n}=e,r=Array.isArray(t.rows)&&t.rows.length>0?t.rows:[["A","B"],["1","2"]],i=Math.max(0,Number(t.headerRows||0));return m.jsx("div",{className:"absolute overflow-hidden rounded-xl border bg-white/96 shadow-sm",style:{left:`${t.x*100}%`,top:`${t.y*100}%`,width:`${t.w*100}%`,height:`${t.h*100}%`,borderColor:t.stroke||"rgba(148,163,184,0.65)",background:t.fill||"rgba(255,255,255,0.96)"},children:m.jsx("table",{className:"h-full w-full border-collapse text-left",style:{color:t.textColor||"#111827",fontSize:`${Math.max(10,12*n)}px`},children:m.jsx("tbody",{children:r.map((a,o)=>m.jsx("tr",{children:a.map((s,l)=>m.jsx("td",{className:"border px-2 py-1 align-top",style:{borderColor:t.stroke||"rgba(148,163,184,0.45)",background:o<i?"rgba(226,232,240,0.9)":"transparent",fontWeight:o<i?700:500},children:s},`cell-${o}-${l}`))},`row-${o}`))})})})}function f8e(e){const{element:t,scale:n}=e,r=Array.isArray(t.data)&&t.data.length>0?t.data:[{label:"Q1",value:42},{label:"Q2",value:76},{label:"Q3",value:58}],i=Math.max(...r.map(f=>Math.max(0,Number(f.value||0))),1),a=a8e(t.color),o=o8e(r,i,100,72),s=o.map((f,g)=>`${g===0?"M":"L"} ${f.x.toFixed(2)} ${f.y.toFixed(2)}`).join(" "),l=`${s} L 100 72 L 0 72 Z`,c={x:50,y:38},u=28,d=r.map((f,g)=>{const y=-Math.PI/2+g/Math.max(r.length,1)*Math.PI*2,v=Math.max(0,Number(f.value||0))/i,A=u*v;return{x:c.x+Math.cos(y)*A,y:c.y+Math.sin(y)*A,labelX:c.x+Math.cos(y)*(u+10),labelY:c.y+Math.sin(y)*(u+10),item:f,index:g}}),h=d.map(f=>`${f.x},${f.y}`).join(" ");return m.jsx("div",{className:"absolute overflow-hidden rounded-2xl border bg-white/96 shadow-sm",style:{left:`${t.x*100}%`,top:`${t.y*100}%`,width:`${t.w*100}%`,height:`${t.h*100}%`,borderColor:"rgba(226,232,240,0.9)"},children:m.jsxs("div",{className:"flex h-full w-full flex-col p-3",style:{gap:`${Math.max(6,10*n)}px`},children:[m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsx("div",{className:"min-w-0",children:t.title?m.jsx("div",{className:"truncate text-[11px] font-semibold uppercase tracking-[0.12em] text-zinc-500",children:t.title}):null}),m.jsx("div",{className:"rounded-full bg-zinc-100 px-2 py-1 text-[10px] font-semibold uppercase tracking-[0.12em] text-zinc-500",children:s8e(t.chartType)})]}),t.chartType==="pie"||t.chartType==="ring"?m.jsx("div",{className:"relative flex-1",children:m.jsxs("svg",{viewBox:"0 0 100 100",className:"h-full w-full",children:[(()=>{const f=r.reduce((y,v)=>y+Math.max(0,Number(v.value||0)),0)||1;let g=0;return r.map((y,v)=>{const w=Math.max(0,Number(y.value||0))/f*Math.PI*2,S=g+w,_=50+Math.cos(g-Math.PI/2)*36,E=50+Math.sin(g-Math.PI/2)*36,T=50+Math.cos(S-Math.PI/2)*36,D=50+Math.sin(S-Math.PI/2)*36,I=w>Math.PI?1:0,j=sb(a,v),R=`M 50 50 L ${_} ${E} A 36 36 0 ${I} 1 ${T} ${D} Z`;return g=S,m.jsx("path",{d:R,fill:j,opacity:"0.92"},`${y.label}-${v}`)})})(),t.chartType==="ring"?m.jsx("circle",{cx:"50",cy:"50",r:"18",fill:"white"}):null]})}):t.chartType==="radar"?m.jsx("div",{className:"relative flex-1",children:m.jsxs("svg",{viewBox:"0 0 100 80",className:"h-full w-full overflow-visible",children:[[1,.75,.5,.25].map(f=>m.jsx("polygon",{points:r.map((g,y)=>{const v=-Math.PI/2+y/Math.max(r.length,1)*Math.PI*2;return`${c.x+Math.cos(v)*u*f},${c.y+Math.sin(v)*u*f}`}).join(" "),fill:"none",stroke:"#E2E8F0",strokeWidth:"1"},f)),r.map((f,g)=>{const y=-Math.PI/2+g/Math.max(r.length,1)*Math.PI*2;return m.jsx("line",{x1:c.x,y1:c.y,x2:c.x+Math.cos(y)*u,y2:c.y+Math.sin(y)*u,stroke:"#E2E8F0",strokeWidth:"1"},`axis-${g}`)}),m.jsx("polygon",{points:h,fill:a,fillOpacity:"0.18",stroke:a,strokeWidth:"2"}),d.map((f,g)=>m.jsxs("g",{children:[m.jsx("circle",{cx:f.x,cy:f.y,r:"2.8",fill:sb(a,g)}),m.jsx("text",{x:f.labelX,y:f.labelY,fontSize:"4",textAnchor:"middle",fill:"#64748B",children:f.item.label})]},`radar-point-${g}`))]})}):m.jsx("div",{className:"flex h-full items-end gap-2",children:t.chartType==="bar"?m.jsx("div",{className:"flex h-full w-full flex-col gap-2",children:r.map((f,g)=>{const y=Math.max(0,Number(f.value||0))/i,v=sb(a,g);return m.jsxs("div",{className:"grid grid-cols-[52px_1fr_34px] items-center gap-2",children:[m.jsx("div",{className:"truncate text-[10px] text-zinc-500",children:f.label}),m.jsx("div",{className:"h-3 overflow-hidden rounded-full bg-zinc-100",children:m.jsx("div",{className:"h-full rounded-full",style:{width:`${Math.max(10,y*100)}%`,background:v}})}),m.jsx("div",{className:"text-right text-[10px] text-zinc-400",children:Math.round(Number(f.value||0))})]},`${f.label}-${g}`)})}):m.jsxs("svg",{viewBox:"0 0 100 80",className:"h-full w-full overflow-visible",children:[m.jsx("line",{x1:"6",y1:"72",x2:"96",y2:"72",stroke:"#CBD5E1",strokeWidth:"1.5"}),m.jsx("line",{x1:"8",y1:"8",x2:"8",y2:"72",stroke:"#E2E8F0",strokeWidth:"1.5"}),t.chartType==="area"?m.jsx("path",{d:l,fill:a,fillOpacity:"0.18"}):null,t.chartType==="line"||t.chartType==="area"?m.jsx("path",{d:s,fill:"none",stroke:a,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}):null,o.map((f,g)=>{const y=sb(a,g);if(t.chartType==="scatter")return m.jsx("circle",{cx:f.x,cy:f.y,r:"4",fill:y},`scatter-${g}`);if(t.chartType==="line"||t.chartType==="area")return m.jsxs("g",{children:[m.jsx("circle",{cx:f.x,cy:f.y,r:"3.4",fill:y}),m.jsx("text",{x:f.x,y:f.y-6,fontSize:"4",textAnchor:"middle",fill:"#64748B",children:Math.round(Number(f.item.value||0))}),m.jsx("text",{x:f.x,y:"78",fontSize:"4",textAnchor:"middle",fill:"#64748B",children:f.item.label})]},`line-${g}`);const v=Math.max(8,68/Math.max(r.length,1)),A=12+g*((80-v)/Math.max(r.length-1,1)),w=Math.max(8,f.ratio*56);return m.jsxs("g",{children:[m.jsx("rect",{x:A,y:72-w,width:v,height:w,rx:"3",fill:y}),m.jsx("text",{x:A+v/2,y:72-w-4,fontSize:"4",textAnchor:"middle",fill:"#64748B",children:Math.round(Number(f.item.value||0))}),m.jsx("text",{x:A+v/2,y:"78",fontSize:"4",textAnchor:"middle",fill:"#64748B",children:f.item.label})]},`column-${g}`)})]})})]})})}function h8e(e){const{element:t,scale:n}=e;return m.jsxs("div",{className:"absolute flex items-center rounded-2xl border bg-white/90 px-4 py-2 shadow-sm",style:{left:`${t.x*100}%`,top:`${t.y*100}%`,width:`${t.w*100}%`,height:`${t.h*100}%`,borderColor:"rgba(226,232,240,0.9)",color:t.color||"#0f172a",fontSize:`${Math.max(12,(t.fontSize||18)*n)}px`},children:[m.jsx(Tee,{className:"mr-2 h-4 w-4 shrink-0 text-zinc-400"}),m.jsx("div",{className:"truncate font-medium",children:t.latex})]})}function p8e(e){const{element:t}=e,n=t.title||yY(t.src,"Video");return m.jsxs("div",{className:"absolute overflow-hidden rounded-2xl border bg-zinc-950 shadow-xl",style:{left:`${t.x*100}%`,top:`${t.y*100}%`,width:`${t.w*100}%`,height:`${t.h*100}%`,borderColor:"rgba(255,255,255,0.12)"},children:[t.src?m.jsx("video",{src:t.src,poster:t.poster,className:"h-full w-full object-cover",controls:!1,muted:!0,preload:"metadata"}):m.jsx("div",{className:"flex h-full w-full items-center justify-center bg-zinc-900 text-zinc-300",children:m.jsx(hP,{className:"h-10 w-10"})}),m.jsxs("div",{className:"absolute inset-x-0 bottom-0 flex items-center gap-2 bg-gradient-to-t from-black/85 to-transparent px-3 py-3 text-xs text-white",children:[m.jsx(hP,{className:"h-4 w-4 shrink-0"}),m.jsx("span",{className:"truncate",children:n})]})]})}function g8e(e){const{element:t}=e,n=t.title||yY(t.src,"Audio clip");return m.jsx("div",{className:"absolute overflow-hidden rounded-2xl border bg-white/96 shadow-sm",style:{left:`${t.x*100}%`,top:`${t.y*100}%`,width:`${t.w*100}%`,height:`${t.h*100}%`,borderColor:"rgba(226,232,240,0.9)"},children:m.jsxs("div",{className:"flex h-full items-center gap-3 px-4",children:[m.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-zinc-950 text-white",children:m.jsx(hQ,{className:"h-4 w-4"})}),m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsx("div",{className:"truncate text-sm font-semibold text-zinc-900",children:n}),m.jsx("div",{className:"truncate text-[11px] text-zinc-500",children:t.src||"Set an audio URL or upload a clip"})]})]})})}function Xj(e){const{slide:t,canvasWidth:n,canvasHeight:r,showElements:i=!1,showTextElements:a=!0,showImageElements:o=!0,showShapeElements:s=!0,showTableElements:l=!0,showChartElements:c=!0,showFormulaElements:u=!0,showVideoElements:d=!0,showAudioElements:h=!0,className:f,emptyState:g,children:y}=e;if(!t)return m.jsx(m.Fragment,{children:g||null});const v=t.backgroundImageUrl,A=Math.min(n/Hf,r/Xf)||1,w=t.elements.filter(R=>R.type==="text"),S=t.elements.filter(R=>R.type==="image"),_=t.elements.filter(R=>R.type==="shape"),E=t.elements.filter(R=>R.type==="table"),T=t.elements.filter(R=>R.type==="chart"),D=t.elements.filter(R=>R.type==="formula"),I=t.elements.filter(R=>R.type==="video"),j=t.elements.filter(R=>R.type==="audio");return v?m.jsxs("div",{className:gt("absolute inset-0 overflow-hidden",f),children:[m.jsxs("div",{className:"absolute left-0 top-0",style:{width:`${Hf}px`,height:`${Xf}px`,transform:`scale(${A})`,transformOrigin:"top left"},children:[m.jsx("img",{src:v,className:"absolute inset-0 h-full w-full bg-white object-cover",alt:t.title||t.id,draggable:!1}),i?m.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[s?_.map(R=>m.jsx(u8e,{element:R,scale:A},R.id)):null,o?S.map(R=>m.jsx(c8e,{element:R},R.id)):null,l?E.map(R=>m.jsx(d8e,{element:R,scale:A},R.id)):null,c?T.map(R=>m.jsx(f8e,{element:R,scale:A},R.id)):null,u?D.map(R=>m.jsx(h8e,{element:R,scale:A},R.id)):null,d?I.map(R=>m.jsx(p8e,{element:R},R.id)):null,h?j.map(R=>m.jsx(g8e,{element:R},R.id)):null,a?w.map(R=>m.jsx(l8e,{element:R,scale:A},R.id)):null]}):null]}),y]}):m.jsx(m.Fragment,{children:g||null})}function m8e(e){const{panelWidth:t,slideNumber:n,textBlocks:r,selectedTextBlockId:i,isScanning:a,isExtracting:o,canExtract:s,canStartEditing:l,reviewPhase:c,extractionSummary:u,reviewDrawMode:d,confirmLabel:h,tr:f,onPanelResizeStart:g,onExtract:y,onStartEditing:v,onExport:A,onToggleDrawMode:w,onSelectBlock:S,onDeleteBlock:_,onChangeText:E,onChangeRectField:T}=e;return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"group relative w-3 shrink-0 cursor-col-resize border-l border-border/60 bg-transparent transition-colors hover:bg-zinc-200/70 dark:hover:bg-zinc-900/70",style:{touchAction:"none"},onPointerDown:g,children:m.jsx("div",{className:"absolute inset-y-6 left-1/2 w-px -translate-x-1/2 rounded-full bg-zinc-300/0 transition-colors group-hover:bg-zinc-300 dark:group-hover:bg-zinc-700"})}),m.jsxs("div",{className:"flex shrink-0 flex-col border-l border-border/70 bg-zinc-50/95 dark:bg-zinc-950",style:{width:t},children:[m.jsxs("div",{className:"border-b border-border/70 bg-white/85 px-4 py-3 backdrop-blur dark:bg-zinc-950/85",children:[m.jsxs("div",{className:"flex items-start justify-between gap-3",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[0.16em] text-zinc-500",children:f("文字校对","Text review")}),m.jsx("div",{className:"text-sm font-semibold text-foreground",children:f("确认文本框位置","Confirm text boxes")}),m.jsx("div",{className:"text-xs text-muted-foreground",children:n?f(`当前第 ${n} 页`,`Slide ${n}`):f("当前没有可校对页面","No slide selected")})]}),m.jsx("div",{className:"rounded-full border border-zinc-200 bg-zinc-100 px-2.5 py-1 text-[11px] font-medium text-zinc-700 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-300",children:f(`${r.length} 个文本框`,`${r.length} text boxes`)})]}),m.jsxs("div",{className:"mt-3",children:[m.jsxs("div",{className:"flex gap-2",children:[m.jsxs(ri,{size:"sm",className:"h-9 flex-1 rounded-lg bg-zinc-950 text-xs text-white hover:bg-zinc-800 dark:bg-white dark:text-zinc-950 dark:hover:bg-zinc-200",onClick:y,disabled:!s||o,children:[o?m.jsx(sa,{className:"mr-1.5 h-3.5 w-3.5 animate-spin"}):m.jsx(zQ,{className:"mr-1.5 h-3.5 w-3.5"}),o?f("提取文本中...","Extracting text..."):f("提取文本","Extract text")]}),m.jsxs(ri,{size:"sm",variant:"outline",className:"h-9 flex-1 rounded-lg text-xs",onClick:v,disabled:!l||o,children:[m.jsx(cy,{className:"mr-1.5 h-3.5 w-3.5"}),f("开始编辑","Start editing")]})]}),u?m.jsx("div",{className:"mt-2 text-[11px] text-muted-foreground",children:u}):null]})]}),m.jsx("div",{className:"flex-1 overflow-y-auto px-3 py-2",children:a||o?m.jsx("div",{className:"rounded-xl border border-border/70 bg-white/90 px-3.5 py-4 shadow-sm dark:bg-zinc-900/80",children:m.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground",children:[m.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-zinc-100 text-zinc-600 dark:bg-zinc-900 dark:text-zinc-300",children:m.jsx(sa,{className:"h-4 w-4 animate-spin"})}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("div",{className:"font-medium text-foreground",children:c==="text"?f("正在提取文本","Extracting text"):f("正在准备文本框","Preparing text boxes")}),m.jsx("div",{className:"text-xs text-muted-foreground",children:c==="text"?f("请稍等,系统正在批量提取文本并生成无字底图。","Please wait while text and textless backgrounds are generated."):f("请稍等,系统正在自动识别每一页的文本框位置。","Please wait while text boxes are detected for each slide.")})]})]})}):m.jsxs("div",{className:"space-y-2",children:[r.map((D,I)=>{const j=i===D.id;return m.jsxs("div",{className:`overflow-hidden rounded-xl border bg-white shadow-sm transition-all dark:bg-zinc-900 ${j?"border-zinc-300 shadow-[0_0_0_1px_rgba(161,161,170,0.24),0_12px_30px_rgba(15,23,42,0.08)] dark:border-zinc-700":"border-border/70 hover:border-zinc-300 hover:shadow-md dark:hover:border-zinc-700"}`,onClick:()=>S(D.id),children:[m.jsx("div",{className:`h-1 w-full ${j?"bg-zinc-500":"bg-zinc-300 dark:bg-zinc-700"}`}),m.jsxs("div",{className:"px-3 py-2",children:[m.jsxs("div",{className:"mb-1.5 flex items-start justify-between gap-2.5",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsx("div",{className:"inline-flex items-center rounded-full bg-zinc-100 px-2 py-0.5 text-[10px] font-semibold text-zinc-700 dark:bg-zinc-800 dark:text-zinc-300",children:f(`文字框 ${I+1}`,`Block ${I+1}`)}),m.jsx("div",{className:"text-[11px] text-muted-foreground",children:`x ${D.x.toFixed(3)} y ${D.y.toFixed(3)} w ${D.w.toFixed(3)} h ${D.h.toFixed(3)}`})]}),m.jsx(ri,{size:"sm",variant:"ghost",className:"h-7 rounded-lg px-2 text-xs text-zinc-500 hover:bg-zinc-100 hover:text-zinc-900 dark:hover:bg-zinc-800 dark:hover:text-zinc-100",onClick:R=>{R.stopPropagation(),_(D.id)},children:m.jsx(Zf,{className:"h-3.5 w-3.5"})})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-zinc-500",children:f("文字","Text")}),m.jsx(lE,{value:D.text,onFocus:()=>S(D.id),onChange:R=>E(D.id,R.target.value),className:"min-h-[54px] rounded-lg border-zinc-200 bg-zinc-50/80 px-3 py-1.5 text-sm shadow-inner focus-visible:ring-zinc-400/30 dark:border-zinc-800 dark:bg-zinc-950/70"})]}),m.jsx("div",{className:"mt-2 grid grid-cols-2 gap-1.5",children:[["x",D.x],["y",D.y],["w",D.w],["h",D.h]].map(([R,z])=>m.jsxs("label",{className:"rounded-lg border border-zinc-200 bg-zinc-50/70 px-2 py-1 dark:border-zinc-800 dark:bg-zinc-950/60",children:[m.jsx("div",{className:"mb-0.5 text-[10px] font-semibold uppercase tracking-[0.14em] text-zinc-500",children:R}),m.jsx("input",{type:"number",step:"0.001",value:z.toFixed(3),onFocus:()=>S(D.id),onChange:B=>T(D.id,R,B.target.value),className:"h-5 w-full border-0 bg-transparent px-0 text-[12px] font-medium text-foreground outline-none"})]},R))})]})]},D.id)}),r.length===0?m.jsxs("div",{className:"rounded-2xl border border-dashed border-border bg-white/80 px-4 py-10 text-center shadow-sm dark:bg-zinc-900/70",children:[m.jsx("div",{className:"mx-auto flex h-11 w-11 items-center justify-center rounded-full bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-300",children:m.jsx(Oi,{className:"h-4 w-4"})}),m.jsx("div",{className:"mt-3 text-sm font-medium text-foreground",children:f("还没有文字框","No text boxes yet")}),m.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:f("可以在左侧框选新增,或继续调整当前页。","Add a box from the canvas, or continue refining this slide.")})]}):null]})}),m.jsx("div",{className:"border-t border-border/70 bg-white/85 px-3 py-3 backdrop-blur dark:bg-zinc-950/85",children:m.jsx(ri,{size:"sm",variant:d?"default":"outline",className:`h-10 w-full rounded-xl text-xs font-medium ${d?"bg-zinc-900 text-white hover:bg-zinc-900 dark:bg-zinc-100 dark:text-zinc-950 dark:hover:bg-zinc-100":"border-zinc-200 bg-white hover:bg-zinc-50 dark:border-zinc-800 dark:bg-zinc-900 dark:hover:bg-zinc-800"}`,onClick:w,disabled:o,children:d?f("正在框选","Drawing"):f("新增文字框","Add text box")})})]})]})}const y8e="canvasanvil:pptist-bootstrap",Zj=e=>Number.isFinite(e)?Math.min(1,Math.max(0,e)):0,Kj=(e,t)=>!Number.isFinite(e)||e<=0?t:Math.min(1,e),v8e=e=>String(e||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\"/g,""").replace(/'/g,"'"),x8e=e=>e.replace(/ /g," "),cE=e=>String(e||"").replace(/["<>]/g,""),b8e=e=>{const t=e.style||{},n=[];return t.fontSize&&n.push(`font-size:${Math.max(8,Number(t.fontSize))}px`),t.fontFamily&&n.push(`font-family:${cE(t.fontFamily)}`),t.color&&n.push(`color:${cE(t.color)}`),t.fontWeight&&n.push(`font-weight:${Number(t.fontWeight)}`),t.letterSpacing&&n.push(`letter-spacing:${Number(t.letterSpacing)}px`),n.join(";")},A8e=e=>{const t=e.style||{},n=[];return t.align&&n.push(`text-align:${cE(t.align)}`),t.lineHeight&&n.push(`line-height:${Number(t.lineHeight)}`),n.push("margin:0"),n.join(";")},w8e=e=>{const n=String(e.text||"").replace(/\r\n?/g,`-`).split(`-`);if(n.length===0)return"<p></p>";const r=A8e(e),i=b8e(e);return n.map(a=>`<p style="${r}"><span style="${i}">${x8e(v8e(a))}</span></p>`).join("")},S8e=e=>e==="title"?"title":e==="summary"?"subtitle":e==="bullet"?"content":"itemTitle",k8e=e=>e==="center"||e==="right"||e==="justify"?e:"left",D8e=e=>{var t,n,r,i,a,o;return{id:e.id,type:"text",left:Zj(e.x),top:Zj(e.y),width:Kj(e.w,.2),height:Kj(e.h,.08),rotate:0,content:w8e(e),defaultFontName:((t=e.style)==null?void 0:t.fontFamily)||"Microsoft YaHei",defaultColor:((n=e.style)==null?void 0:n.color)||"#111111",fontWeight:Number(((r=e.style)==null?void 0:r.fontWeight)||400),textAlign:k8e((i=e.style)==null?void 0:i.align),lineHeight:((a=e.style)==null?void 0:a.lineHeight)||1.3,wordSpace:((o=e.style)==null?void 0:o.letterSpacing)||0,opacity:1,paragraphSpace:0,vertical:!1,textType:S8e(e.role)}},C8e=(e,t)=>({id:`${e}__background`,type:"image",left:0,top:0,width:1,height:1,rotate:0,fixedRatio:!1,src:t,lock:!0,imageType:"background"}),T8e=(e,t)=>{const n=e.id||`canvasanvil-slide-${t+1}`,r=[];e.backgroundImageUrl&&r.push(C8e(n,e.backgroundImageUrl));const i=Array.isArray(e.textBlocks)?e.textBlocks:[];for(const a of i)r.push(D8e(a));return{id:n,elements:r}},_8e=e=>({source:"canvasanvil",version:1,createdAt:new Date().toISOString(),slides:e.map((t,n)=>T8e(t,n))}),E8e="synthetic-primary:",Ip=e=>Array.isArray(e==null?void 0:e.textBlocks)&&e.textBlocks.length>0,$j=e=>{if(!e||typeof e!="object")return e;const t=e.imageVersions&&typeof e.imageVersions=="object"&&!Array.isArray(e.imageVersions)?{...e.imageVersions}:{},n=e.renderLayers&&typeof e.renderLayers=="object"&&!Array.isArray(e.renderLayers)?{...e.renderLayers}:{},r=e.currentImageVersionId&&typeof e.currentImageVersionId=="object"&&!Array.isArray(e.currentImageVersionId)?{...e.currentImageVersionId}:{};for(const[i,a]of Object.entries(t)){if(!Array.isArray(a))continue;const o=a,s=n[i]&&typeof n[i]=="object"&&!Array.isArray(n[i])?{...n[i]}:{};let l=!1;for(const u of o){if((u==null?void 0:u.type)!=="derived_textless"||!u.sourceVersionId)continue;const d=s[u.sourceVersionId],h=s[u.id];!Ip(d)&&Ip(h)&&(s[u.sourceVersionId]=h,l=!0),r[i]===u.id&&(r[i]=u.sourceVersionId)}const c=o.filter(u=>(u==null?void 0:u.type)!=="derived_textless");c.length!==o.length&&(t[i]=c,l=!0),l&&(n[i]=s)}return{...e,imageVersions:t,renderLayers:n,currentImageVersionId:r}},N8e=e=>e.replace(/^[•●▪◦·]\s*/,"").trim(),D0=(e=[])=>pR(e),mf=(e=[],t=[])=>[...t.filter(r=>(r==null?void 0:r.type)!=="text"),...D0(e)],cT=(e,t)=>{const n=String(e||"").trim();if(!n)return n;const r=n.toLowerCase().replace(/\s+/g,"").replace(/[+_/-]/g,""),a={cover:{zh:"封面页",en:"Cover"},titlebullets:{zh:"标题+要点",en:"Title + Bullets"},titlebullet:{zh:"标题+要点",en:"Title + Bullets"},twocolumn:{zh:"双栏布局",en:"Two-column"},lefttextrightimage:{zh:"左文右图",en:"Left text, right image"},titleandcontent:{zh:"标题+内容",en:"Title + Content"},封面页:{zh:"封面页",en:"Cover"},标题要点:{zh:"标题+要点",en:"Title + Bullets"},双栏布局:{zh:"双栏布局",en:"Two-column"},左文右图:{zh:"左文右图",en:"Left text, right image"},标题内容:{zh:"标题+内容",en:"Title + Content"}}[r];return a?t==="zh"?a.zh:a.en:n},l1=e=>{const t=String(e||"").trim();if(!t)return null;const n=t.match(/^(?:slide|page)[\s_-]*(\d+)$/i);if(n)return Number(n[1]);const r=t.match(/^第\s*(\d+)\s*页$/i);if(r)return Number(r[1]);const i=t.match(/^(\d+)$/);return i?Number(i[1]):null},uT=(e,t,n)=>{const r=String(e||"").trim(),a=l1(r)||(typeof n=="number"?n:null);return t==="zh"?/^(?:slide|page)(?:\s|_|-)*\d*$/i.test(r)||/^slide$/i.test(r)||/^page$/i.test(r)?a?`第 ${a} 页`:"幻灯片":r:/^第\s*\d+\s*页$/i.test(r)?a?`Slide ${a}`:"Slide":r},vY="ppt_template_uploads_v1",xY="ppt_template_hidden_presets_v1",dT="CanvasAnvil-ppt-state-v1",F8e=()=>{if(typeof window>"u")return[];try{const e=localStorage.getItem(vY),t=e?JSON.parse(e):[];return Array.isArray(t)?t.filter(n=>n&&typeof n.id=="string"&&typeof n.name=="string"&&typeof n.dataUrl=="string").map(n=>({id:n.id,name:n.name,dataUrl:n.dataUrl})):[]}catch{return[]}},R8e="#22d3ee",Yj="#f59e0b",P8e=()=>{if(typeof window>"u")return[];try{const e=localStorage.getItem(xY),t=e?JSON.parse(e):[];return Array.isArray(t)?t.map(n=>String(n)):[]}catch{return[]}},I8e=[{id:"preset-tech-business",zhName:"科技商务",enName:"Tech Business",path:"/templates/template_b.png"},{id:"preset-academic",zhName:"学术汇报",enName:"Academic",path:"/templates/template_academic.jpg"},{id:"preset-minimal",zhName:"极简主义",enName:"Minimal",path:"/templates/template_s.png"},{id:"preset-vector",zhName:"矢量插画",enName:"Vector Illustration",path:"/templates/template_vector_illustration.png"},{id:"preset-yellow",zhName:"活力黄",enName:"Vibrant Yellow",path:"/templates/template_y.png"},{id:"preset-glass",zhName:"磨砂玻璃",enName:"Frosted Glass",path:"/templates/template_glass.png"}],lb=5,Jj=5,M8e=3,Qj=4,fT=3,U8e=1200,L8e=async e=>await new Promise(t=>{const n=new FileReader;n.onerror=()=>t(""),n.onloadend=()=>t(typeof n.result=="string"?n.result:""),n.readAsDataURL(e)}),ls=async e=>{const t=String(e||"").trim();if(!t||t.startsWith("data:image"))return t;try{const n=await fetch(t);if(!n.ok)return t;const r=await n.blob();return await L8e(r)||t}catch(n){return console.error("Failed to persist image url",n),t}},cb=e=>{const t=String(e||"").trim();return t.startsWith("blob:")||t.startsWith("http://")||t.startsWith("https://")},O8e=e=>Array.isArray(e)?e.filter(t=>t&&typeof t.id=="string").map(t=>({id:String(t.id),title:typeof t.title=="string"?t.title:"",content:Array.isArray(t.content)?t.content.filter(n=>typeof n=="string"):[],note:typeof t.note=="string"?t.note:void 0,layout:typeof t.layout=="string"?t.layout:void 0,description:typeof t.description=="string"?t.description:void 0})):[],eB=e=>{if(!e||typeof e!="object"||Array.isArray(e))return{};const t={};for(const[n,r]of Object.entries(e))typeof n=="string"&&typeof r=="string"&&(t[n]=r);return t},tB=e=>{if(!e||typeof e!="object"||Array.isArray(e))return{};const t={};for(const[n,r]of Object.entries(e))typeof n!="string"||!Array.isArray(r)||(t[n]=r.filter(i=>i&&typeof i.id=="string"&&typeof i.url=="string"&&typeof i.timestamp=="number"&&(i.type==="generated"||i.type==="edited"||i.type==="derived_textless")).map(i=>({id:i.id,url:i.url,timestamp:i.timestamp,type:i.type,instruction:typeof i.instruction=="string"?i.instruction:void 0,sourceVersionId:typeof i.sourceVersionId=="string"?i.sourceVersionId:void 0})));return t},nB=e=>{if(!e||typeof e!="object"||Array.isArray(e))return{};const t={};for(const[n,r]of Object.entries(e)){if(typeof n!="string"||!r||typeof r!="object"||Array.isArray(r))continue;const i={};for(const[a,o]of Object.entries(r)){if(typeof a!="string"||!o||typeof o!="object"||Array.isArray(o))continue;const s=typeof o.backgroundImageUrl=="string"?o.backgroundImageUrl:"",l=Array.isArray(o.textBlocks)?o.textBlocks:[],c=Array.isArray(o.elements)?o.elements:D0(l),u=o.status==="pending"||o.status==="failed"?o.status:"ready";i[a]={backgroundImageUrl:s,textBlocks:l,elements:c,status:u,error:typeof o.error=="string"?o.error:void 0}}t[n]=i}return t},hT=(e,t=!1)=>{if(!e||typeof e!="object"||Array.isArray(e))return{};const n={};for(const[r,i]of Object.entries(e))typeof r!="string"||typeof i!="string"||t&&!i.trim()||(n[r]=i);return n},kl=(e,t)=>{const n={};for(const[r,i]of Object.entries(e))t.has(r)&&(n[r]=i);return n},rB=e=>{if(!e||typeof e!="object"||Array.isArray(e))return{};const t={};for(const[n,r]of Object.entries(e))typeof n!="string"||!Array.isArray(r)||(t[n]=r.filter(i=>i&&typeof i.id=="string"&&typeof i.name=="string"&&typeof i.dataUrl=="string").map(i=>({id:i.id,name:i.name,fileName:typeof i.fileName=="string"?i.fileName:i.name,dataUrl:i.dataUrl,refLabel:typeof i.refLabel=="string"?i.refLabel:void 0,caption:typeof i.caption=="string"?i.caption:void 0,sourceFileName:typeof i.sourceFileName=="string"?i.sourceFileName:void 0,sourcePage:typeof i.sourcePage=="number"?i.sourcePage:void 0})));return t},j8e=e=>Array.isArray(e)?e.filter(t=>t&&typeof t.id=="string"&&typeof t.name=="string"&&typeof t.dataUrl=="string").map(t=>({id:t.id,name:t.name,dataUrl:t.dataUrl})):[],B8e=e=>Array.isArray(e)?e.map(t=>String(t)):[];function z8e({data:e,onAddToChat:t,onPptReadyChange:n,onPptStageChange:r,onCreationModeChange:i,onExportReviewModeChange:a,onEmbeddedEditorActiveChange:o,incomingEdit:s,onIncomingEditHandled:l,onResetWorkspace:c}){const u=pa(),d=(Y,he)=>u==="zh"?Y:he,h=N.useRef(void 0);typeof h.current>"u"&&(h.current=(()=>{if(typeof window>"u")return null;try{const Y=localStorage.getItem(dT),he=Y?JSON.parse(Y):null;return!he||typeof he!="object"?null:$j(he)}catch{return null}})());const f=h.current,[g,y]=N.useState(()=>{const Y=f==null?void 0:f.localSlides;return Array.isArray(Y)?Y.filter(he=>he&&typeof he.id=="string").map(he=>({id:String(he.id),title:typeof he.title=="string"?he.title:"",content:Array.isArray(he.content)?he.content.filter(fe=>typeof fe=="string"):[],note:typeof he.note=="string"?he.note:void 0,layout:typeof he.layout=="string"?he.layout:void 0,description:typeof he.description=="string"?he.description:void 0})):[]}),[v,A]=N.useState(()=>{const Y=f==null?void 0:f.currentSlideIndex;return typeof Y=="number"&&Number.isFinite(Y)?Math.max(0,Math.floor(Y)):0}),[w,S]=N.useState(null),[_,E]=N.useState(()=>{const Y=f==null?void 0:f.selectedTemplateId;return typeof Y=="string"?Y:null}),[T,D]=N.useState(()=>F8e()),[I,j]=N.useState(!1),[R,z]=N.useState(!1),[B,W]=N.useState(""),[P,Z]=N.useState(!1),[Q,X]=N.useState(()=>P8e()),[q,te]=N.useState(()=>{const Y=f==null?void 0:f.generatedImages;if(!Y||typeof Y!="object"||Array.isArray(Y))return{};const he={};for(const[fe,me]of Object.entries(Y))typeof fe=="string"&&typeof me=="string"&&(he[fe]=me);return he}),[J,ee]=N.useState(()=>{const Y=f==null?void 0:f.imageVersions;if(!Y||typeof Y!="object"||Array.isArray(Y))return{};const he={};for(const[fe,me]of Object.entries(Y))typeof fe!="string"||!Array.isArray(me)||(he[fe]=me.filter(Ie=>Ie&&typeof Ie.id=="string"&&typeof Ie.url=="string"&&typeof Ie.timestamp=="number"&&(Ie.type==="generated"||Ie.type==="edited"||Ie.type==="derived_textless")).map(Ie=>({id:Ie.id,url:Ie.url,timestamp:Ie.timestamp,type:Ie.type,instruction:typeof Ie.instruction=="string"?Ie.instruction:void 0,sourceVersionId:typeof Ie.sourceVersionId=="string"?Ie.sourceVersionId:void 0})));return he}),[le,G]=N.useState(()=>{const Y=f==null?void 0:f.currentImageVersionId;if(!Y||typeof Y!="object"||Array.isArray(Y))return{};const he={};for(const[fe,me]of Object.entries(Y))typeof fe=="string"&&typeof me=="string"&&(he[fe]=me);return he}),[xe,ge]=N.useState(()=>{const Y=f==null?void 0:f.renderLayers;if(!Y||typeof Y!="object"||Array.isArray(Y))return{};const he={};for(const[fe,me]of Object.entries(Y)){if(typeof fe!="string"||!me||typeof me!="object"||Array.isArray(me))continue;const Ie={};for(const[qe,Be]of Object.entries(me)){if(typeof qe!="string"||!Be||typeof Be!="object"||Array.isArray(Be))continue;const nt=typeof Be.backgroundImageUrl=="string"?Be.backgroundImageUrl:"",lt=Array.isArray(Be.textBlocks)?Be.textBlocks:[],ft=Array.isArray(Be.elements)?Be.elements:D0(lt),zt=Be.status==="pending"||Be.status==="failed"?Be.status:"ready";Ie[qe]={backgroundImageUrl:nt,textBlocks:lt,elements:ft,status:zt,error:typeof Be.error=="string"?Be.error:void 0}}he[fe]=Ie}return he}),[ue,ce]=N.useState(null),[ye,Fe]=N.useState(null),[Oe,Le]=N.useState(null),[Re,We]=N.useState(!1),[V,ve]=N.useState(null),[oe,re]=N.useState(()=>{const Y=f==null?void 0:f.creationStep;return Y==="idle"||Y==="input"||Y==="outline"||Y==="done"?Y:g.length>0?"done":"idle"});N.useEffect(()=>{if(oe==="done"){r==null||r("slides");return}if(oe==="outline"){r==null||r("outline");return}r==null||r("start")},[oe,r]);const[ne,be]=N.useState(()=>{const Y=f==null?void 0:f.creationMode;return Y==="idea"||Y==="outline"||Y==="beautify"||Y==="image_transform"?Y:"idea"});N.useEffect(()=>{i==null||i(ne)},[ne,i]);const[Ue,Me]=N.useState(()=>typeof(f==null?void 0:f.ideaInput)=="string"?f.ideaInput:""),[Ee,Se]=N.useState(()=>typeof(f==null?void 0:f.outlineInput)=="string"?f.outlineInput:""),[Ce,pe]=N.useState(()=>typeof(f==null?void 0:f.beautifyRequirement)=="string"?f.beautifyRequirement:""),[ke,Ve]=N.useState(()=>!!(f!=null&&f.beautifyUseTemplate)),[Xe,it]=N.useState(null),[et,U]=N.useState(null),[Ae,se]=N.useState(()=>{const Y=f==null?void 0:f.beautifyFailures;if(!Y||typeof Y!="object"||Array.isArray(Y))return{};const he={};for(const[fe,me]of Object.entries(Y))typeof fe=="string"&&typeof me=="string"&&me.trim()&&(he[fe]=me);return he}),[Te,$]=N.useState(()=>{const Y=f==null?void 0:f.imageTransformFailures;if(!Y||typeof Y!="object"||Array.isArray(Y))return{};const he={};for(const[fe,me]of Object.entries(Y))typeof fe=="string"&&typeof me=="string"&&me.trim()&&(he[fe]=me);return he}),{files:de,pdfData:F,visualAssets:De,handleFileChange:He,setFiles:b}=dH("ppt"),[ae,M]=N.useState(!1),[k,O]=N.useState(null),[H,Ne]=N.useState(()=>{const Y=f==null?void 0:f.slideMaterials;if(!Y||typeof Y!="object"||Array.isArray(Y))return{};const he={};for(const[fe,me]of Object.entries(Y))typeof fe!="string"||!Array.isArray(me)||(he[fe]=me.filter(Ie=>Ie&&typeof Ie.id=="string"&&typeof Ie.name=="string"&&typeof Ie.dataUrl=="string").map(Ie=>({id:Ie.id,name:Ie.name,fileName:typeof Ie.fileName=="string"?Ie.fileName:Ie.name,dataUrl:Ie.dataUrl})));return he}),[_e,Pe]=N.useState(null),[Ze,ut]=N.useState(null),[st,Je]=N.useState(0),pt=N.useRef(null),xt=N.useRef(null),[dt,rn]=N.useState({current:0,total:0,message:""}),Yn=N.useRef(null),Lt=N.useRef(null),Xt=N.useRef(null),qt=N.useRef({}),Tn=N.useRef({}),Ye=N.useRef({}),ct=N.useRef({}),vt=N.useRef(null),At=N.useRef({}),Gt=N.useRef(!1),jt=N.useRef(!1),[Et,Rt]=N.useState(!1),[Bt,Kt]=N.useState(!1),ln=N.useRef(typeof(f==null?void 0:f.updatedAt)=="number"?f.updatedAt:0),fr=N.useRef(null),yi=N.useRef(null),bt=N.useRef(null),[tn,cn]=N.useState(!1),[Yt,Pr]=N.useState(0),[On,_n]=N.useState(!1),ai=N.useRef(null),na=N.useRef(null),[ma,Cr]=N.useState(!1),[Nn,mr]=N.useState(!1),[Tr,ur]=N.useState(null),[wt,Wt]=N.useState(0),[yt,Ot]=N.useState({}),[Fn,yr]=N.useState([]),[hr,Pn]=N.useState(null),[_i,Ei]=N.useState(!1),[Zt,jn]=N.useState(null),[kn,Un]=N.useState(420),Hn=N.useRef(null),Vt=N.useRef(null),Qt=N.useRef(null),St=N.useRef(null),Ht=N.useRef({});N.useRef(null),N.useRef(null),N.useRef(null);const[Jt,In]=N.useState({open:!1,slideTitle:"",item:null}),[pi,ca]=N.useState({width:0,height:0}),[Wi,Fr]=N.useState({width:1100,height:619}),[pr,_r]=N.useState(.64);N.useEffect(()=>{a==null||a(Nn)},[Nn,a]),N.useEffect(()=>{o==null||o(!!Tr)},[Tr,o]);const wn=Array.from(F.values()).some(Y=>Y.isExtracting),vr=de.map(Y=>{const he=F.get(Y);return!he||he.isExtracting||!he.text?null:{id:`ref-${Y.name}-${Y.lastModified}-${Y.size}`,filename:Y.name,content:String(he.text||"").slice(0,15e4),charCount:he.charCount||0}}).filter(Y=>!!Y);N.useEffect(()=>{let Y=!1;return(async()=>{try{const he=await OPe();if(Y||!he||typeof he!="object")return;const fe=$j(he),me=h.current&&typeof h.current=="object"?h.current:null,Ie=typeof(me==null?void 0:me.updatedAt)=="number"?me.updatedAt:0,qe=typeof(fe==null?void 0:fe.updatedAt)=="number"?fe.updatedAt:0,Be=me&&Ie>qe?me:fe,nt=O8e(Be==null?void 0:Be.localSlides),lt=new Set(nt.map(Gn=>Gn.id)),ft={...kl(eB(Be==null?void 0:Be.generatedImages),lt),...kl(eB(fe==null?void 0:fe.generatedImages),lt)},zt={...kl(tB(Be==null?void 0:Be.imageVersions),lt),...kl(tB(fe==null?void 0:fe.imageVersions),lt)},_t={...kl(nB(Be==null?void 0:Be.renderLayers),lt),...kl(nB(fe==null?void 0:fe.renderLayers),lt)},$t={...kl(rB(Be==null?void 0:Be.slideMaterials),lt),...kl(rB(fe==null?void 0:fe.slideMaterials),lt)};y(nt),A(typeof(Be==null?void 0:Be.currentSlideIndex)=="number"&&Number.isFinite(Be.currentSlideIndex)?Math.max(0,Math.floor(Be.currentSlideIndex)):0),E(typeof(Be==null?void 0:Be.selectedTemplateId)=="string"?Be.selectedTemplateId:null),te(ft),ee(zt),G(kl(hT(Be==null?void 0:Be.currentImageVersionId),lt)),ge(_t),re((Be==null?void 0:Be.creationStep)==="idle"||(Be==null?void 0:Be.creationStep)==="input"||(Be==null?void 0:Be.creationStep)==="outline"||(Be==null?void 0:Be.creationStep)==="done"?Be.creationStep:nt.length>0?"done":"idle"),be((Be==null?void 0:Be.creationMode)==="idea"||(Be==null?void 0:Be.creationMode)==="outline"||(Be==null?void 0:Be.creationMode)==="beautify"||(Be==null?void 0:Be.creationMode)==="image_transform"?Be.creationMode:"idea"),Me(typeof(Be==null?void 0:Be.ideaInput)=="string"?Be.ideaInput:""),Se(typeof(Be==null?void 0:Be.outlineInput)=="string"?Be.outlineInput:""),pe(typeof(Be==null?void 0:Be.beautifyRequirement)=="string"?Be.beautifyRequirement:""),Ve(!!(Be!=null&&Be.beautifyUseTemplate)),se(kl(hT(Be==null?void 0:Be.beautifyFailures,!0),lt)),$(kl(hT(Be==null?void 0:Be.imageTransformFailures,!0),lt)),Ne($t),ln.current=Math.max(Ie,qe)}catch(he){console.error("Failed to load persisted PPT workspace from IndexedDB",he)}finally{Y||Rt(!0)}})(),()=>{Y=!0}},[]),N.useEffect(()=>{let Y=!1;return(async()=>{try{const he=await BPe();if(Y||!he||typeof he!="object")return;D(j8e(he.uploadedTemplates)),X(B8e(he.hiddenPresetTemplateIds))}catch(he){console.error("Failed to load persisted PPT template library from IndexedDB",he)}finally{Y||Kt(!0)}})(),()=>{Y=!0}},[]);const Rn=[...I8e.filter(Y=>!Q.includes(Y.id)).map(Y=>({id:Y.id,name:u==="zh"?Y.zhName:Y.enName,kind:"preset",previewSrc:Y.path,presetPath:Y.path})),...T.map(Y=>({id:Y.id,name:Y.name,kind:"upload",previewSrc:Y.dataUrl,dataUrl:Y.dataUrl}))];N.useEffect(()=>{typeof window>"u"||Bt&&zPe({uploadedTemplates:T,hiddenPresetTemplateIds:Q,updatedAt:Date.now()}).then(()=>{try{localStorage.removeItem(vY),localStorage.removeItem(xY)}catch{}}).catch(Y=>{console.error("Failed to persist PPT template library to IndexedDB",Y)})},[T,Q,Bt]),N.useEffect(()=>{if(typeof window>"u"||!Et)return;const Y=Date.now();ln.current=Y;const he={localSlides:g,currentSlideIndex:v,selectedTemplateId:_,generatedImages:q,imageVersions:J,currentImageVersionId:le,renderLayers:xe,creationStep:oe,creationMode:ne,ideaInput:Ue,outlineInput:Ee,slideMaterials:H,beautifyRequirement:Ce,beautifyUseTemplate:ke,beautifyFailures:Ae,imageTransformFailures:Te,updatedAt:Y};try{localStorage.setItem(dT,JSON.stringify({localSlides:g,currentSlideIndex:v,selectedTemplateId:_,generatedImages:{},imageVersions:{},currentImageVersionId:le,renderLayers:{},creationStep:oe,creationMode:ne,ideaInput:Ue,outlineInput:Ee,slideMaterials:{},beautifyRequirement:Ce,beautifyUseTemplate:ke,beautifyFailures:Ae,imageTransformFailures:Te,updatedAt:Y}))}catch(fe){console.error("Failed to persist PPT workspace snapshot to localStorage",fe)}jPe(he).catch(fe=>{console.error("Failed to persist PPT workspace to IndexedDB",fe)})},[g,v,_,q,J,le,xe,oe,ne,Ue,Ee,H,Ce,ke,Ae,Te,Et]),N.useEffect(()=>{if(Gt.current){jt.current=!0;return}const Y=Object.values(q).some(cb),he=Object.values(J).some(Ie=>Array.isArray(Ie)&&Ie.some(qe=>cb((qe==null?void 0:qe.url)||""))),fe=Object.values(xe).some(Ie=>Ie&&typeof Ie=="object"&&Object.values(Ie).some(qe=>cb((qe==null?void 0:qe.backgroundImageUrl)||"")));if(!Y&&!he&&!fe)return;let me=!1;return Gt.current=!0,jt.current=!1,(async()=>{try{const Ie=new Map,qe=async $t=>{const Gn=String($t||"").trim();if(!cb(Gn))return Gn;if(Ie.has(Gn))return Ie.get(Gn)||Gn;const Qn=await ls(Gn);return Ie.set(Gn,Qn),Qn};let Be=!1;const nt={};for(const[$t,Gn]of Object.entries(q)){const Qn=await qe(Gn);nt[$t]=Qn,Qn!==Gn&&(Be=!0)}let lt=!1;const ft={};for(const[$t,Gn]of Object.entries(J)){const Qn=await Promise.all((Gn||[]).map(async Xn=>{const at=await qe(Xn.url);return at!==Xn.url&&(lt=!0),at===Xn.url?Xn:{...Xn,url:at}}));ft[$t]=Qn}let zt=!1;const _t={};for(const[$t,Gn]of Object.entries(xe)){const Qn={};for(const[Xn,at]of Object.entries(Gn||{})){const bn=String((at==null?void 0:at.backgroundImageUrl)||""),on=await qe(bn);on!==bn&&(zt=!0),Qn[Xn]=on===bn?at:{...at,backgroundImageUrl:on}}_t[$t]=Qn}if(me)return;Be&&te(nt),lt&&ee(ft),zt&&ge(_t)}finally{Gt.current=!1,!me&&jt.current&&(jt.current=!1,te(Ie=>({...Ie})))}})(),()=>{me=!0}},[q,J,xe]),N.useEffect(()=>{n==null||n(g.length>0)},[g.length]),N.useEffect(()=>{if(typeof window>"u")return;const Y=()=>{ca({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",Y),Y(),()=>window.removeEventListener("resize",Y)},[]),N.useEffect(()=>{if(typeof ResizeObserver>"u")return;const Y=fr.current;if(!Y)return;const he=new ResizeObserver(fe=>{const me=fe[0];if(!me)return;const Ie=Math.max(1,Math.round(me.contentRect.width)),qe=Math.max(1,Math.round(me.contentRect.height));Fr({width:Ie,height:qe})});return he.observe(Y),()=>he.disconnect()},[v,J,le,q,oe]);const Ir=()=>{if(!pi.width)return{width:"90vw",height:"50.625vw"};const Y=pi.width*.9,he=pi.height*.85;let fe=Y,me=fe*9/16;return me>he&&(me=he,fe=me*16/9),{width:fe,height:me}},mn=async Y=>{if(E(Y.id),Y.kind==="upload"){S(Y.dataUrl);return}try{const fe=await(await fetch(Y.presetPath)).blob(),me=new FileReader;me.onloadend=()=>{S(me.result)},me.readAsDataURL(fe)}catch(he){console.error("Failed to load template",he)}};N.useEffect(()=>{if(Rn.length===0){E(null),S(null);return}const Y=_?Rn.find(he=>he.id===_):null;if(!Y){mn(Rn[0]);return}if(!w){mn(Y);return}Y.kind==="upload"&&w!==Y.dataUrl&&S(Y.dataUrl)},[_,w,Q.join("|"),T.map(Y=>Y.id).join("|")]);const xn=async Y=>{const he=Array.from(Y||[]).filter(Be=>Be&&Be.type.startsWith("image/"));if(he.length===0)return;const fe=Be=>new Promise((nt,lt)=>{const ft=new FileReader;ft.onload=()=>nt(ft.result),ft.onerror=lt,ft.readAsDataURL(Be)}),me=Be=>String(Be||"").replace(/\.[^.]+$/,"")||d("模板","Template"),Ie=[];for(const Be of he)try{const nt=await fe(Be),lt=`upload-${Date.now()}-${Math.random().toString(16).slice(2)}`,ft=me(Be.name);Ie.push({id:lt,name:ft,dataUrl:nt})}catch(nt){console.error("Failed to read template image",nt)}if(Ie.length===0)return;D(Be=>[...Be,...Ie]);const qe=Ie[Ie.length-1];E(qe.id),S(qe.dataUrl)},ei=async Y=>{const he=Array.from(Y.target.files||[]);Y.target.value="",await xn(he)},yn=async Y=>{const he=await ls(Y);return he.startsWith("data:image")?he:""},Jn=async Y=>{const he=await yn(Y);if(!he||!he.startsWith("data:image"))throw new Error(d("生成模板持久化失败:无法读取图片数据","Failed to persist generated template: cannot read image data"));const fe=`generated-${Date.now()}-${Math.random().toString(16).slice(2)}`,me=`${d("AI 模板","AI Template")}-${Date.now()}`,Ie={id:fe,name:me,dataUrl:he};D(qe=>[...qe,Ie]),E(Ie.id),S(Ie.dataUrl)},vi=async()=>{const Y=B.trim();if(!Y){alert(d("请输入模板需求。","Please enter template requirements."));return}Z(!0);try{const he=zIe({requirements:Y,language:u}),fe=await Bc({prompt:he});if(!fe){alert(d("模板生成失败,请重试","Template generation failed. Please retry."));return}await Jn(fe),W(""),j(!1)}catch(he){console.error("Template generation failed",he),alert(d("模板生成失败,请重试","Template generation failed. Please retry."))}finally{Z(!1)}},Zr=Y=>{if(Y.kind==="preset"){X(he=>he.includes(Y.id)?he:[...he,Y.id]);return}D(he=>he.filter(fe=>fe.id!==Y.id))},[Ai,Mi]=N.useState(!1),Ni=Y=>{var fe;const he=(fe=g[v])==null?void 0:fe.id;if(y(Y),!Array.isArray(Y)||Y.length===0){A(0);return}if(he){const me=Y.findIndex(Ie=>Ie.id===he);if(me>=0){A(me);return}}A(me=>{const Ie=Number.isFinite(me)?Math.max(0,Math.floor(me)):0;return Math.min(Ie,Y.length-1)})};N.useEffect(()=>{e&&e.slides&&e.slides.length>0&&(Ni(e.slides),re("done"),n==null||n(!0))},[e]);const gi=async Y=>{let he;try{he=JSON.parse(Y)}catch{return}const fe=String((he==null?void 0:he.type)||"").trim().toLowerCase();if(fe&&fe!=="ppt_edit")return;const me=Array.isArray(he==null?void 0:he.slides)?he.slides:Array.isArray(he)?he:[];if(me.length===0)return;const Ie=Array.isArray(he==null?void 0:he.uploadedImages)?Array.from(new Set(he.uploadedImages.map(at=>String(at||"").trim()).filter(Boolean))).slice(0,2):[],qe=new Map(g.map(at=>[at.id,at])),Be=at=>{var Vr;const bn=J[at]||[],on=le[at],er=on?(Vr=bn.find(Vi=>Vi.id===on))==null?void 0:Vr.url:q[at];return String(er||"").trim()},nt=g.length>0?[...g]:[],lt=at=>{const bn=String((at==null?void 0:at.id)||"").trim();if(bn&&nt.some(Vr=>Vr.id===bn))return bn;const on=l1(bn);if(on&&nt[on-1])return nt[on-1].id;const er=l1(String((at==null?void 0:at.title)||"").trim());return er&&nt[er-1]?nt[er-1].id:bn},ft=me.map(at=>{const bn=lt(at);return bn?{...at,id:bn}:null}).filter(Boolean);if(ft.length===0)return;const zt=(at,bn,on)=>({id:bn,title:typeof(at==null?void 0:at.title)=="string"?uT(at.title,u,l1(bn)):(on==null?void 0:on.title)||d("幻灯片","Slide"),content:Array.isArray(at==null?void 0:at.content)?at.content.map(er=>String(er)):(on==null?void 0:on.content)||[],description:typeof(at==null?void 0:at.description)=="string"?at.description:on==null?void 0:on.description,note:typeof(at==null?void 0:at.note)=="string"?at.note:on==null?void 0:on.note,layout:typeof(at==null?void 0:at.layout)=="string"?cT(at.layout,u):on==null?void 0:on.layout});let _t=g.slice(),$t=ft.slice();if(_t=(()=>{const at=new Map(nt.map(on=>[on.id,on])),bn=nt.map(on=>on.id);for(const on of ft){const er=String((on==null?void 0:on.id)||"");if(!er||oe==="done"&&!at.has(er))continue;const Vr=zt(on,er,at.get(er));at.set(er,Vr),bn.includes(er)||bn.push(er)}return bn.map(on=>at.get(on)).filter(Boolean)})(),$t=ft,Ni(_t),!(oe==="done"))return;const Qn=[];for(const at of $t){const bn=String((at==null?void 0:at.id)||"");if(!bn)continue;const on=_t.find(dr=>dr.id===bn);if(!on)continue;const er=typeof(at==null?void 0:at.imageUrl)=="string"?at.imageUrl:"",Vr=typeof(at==null?void 0:at.imageEditInstruction)=="string"?at.imageEditInstruction:typeof(at==null?void 0:at.instruction)=="string"?at.instruction:"",Vi=qe.get(bn),vc=!!Vi&&(Vi.title!==on.title||Vi.description!==on.description||Vi.layout!==on.layout||Vi.note!==on.note||JSON.stringify(Vi.content||[])!==JSON.stringify(on.content||[])),xh=!Vi,bh=iu(at,Vi,on),Zg=Array.isArray(at==null?void 0:at.styleRefSlideIds)?at.styleRefSlideIds.map(dr=>String(dr||"").trim()).filter(dr=>!!dr&&dr!==bn):[],Wl=(at==null?void 0:at.styleRefPolicy)==="style_and_layout"?"style_and_layout":"style_only",Ia=Array.isArray(at==null?void 0:at.styleRefImageUrls)?at.styleRefImageUrls.map(dr=>String(dr||"").trim()).filter(dr=>!!dr):[],Jo=Array.isArray(at==null?void 0:at.materialImageUrls)?at.materialImageUrls.map(dr=>String(dr||"").trim()).filter(dr=>!!dr):[],Ui=Zg.map(dr=>{const ia=Be(dr);if(!ia)return null;const No=dr.replace(/[^a-zA-Z0-9_-]/g,"_");return{url:ia,label:`STYLE_REF_SLIDE_${No}`,source:dr}}).filter(Boolean),ya=Ia.map((dr,ia)=>({url:dr,label:`STYLE_REF_EXTERNAL_${ia+1}`,source:`external-${ia+1}`})),Qo=Array.from(new Map([...Ui,...ya].map(dr=>[dr.url,dr])).values()),es=Qo.map(dr=>dr.url),Mr=Qo.length>0?Qo.map((dr,ia)=>`${ia+1}. ${dr.label} => ${dr.source}`).join(`-`):"",wa=es.length>0?Wl==="style_and_layout"?d(`参考映射如下(标签 => 来源):-${Mr}-可参考其风格和版式,但不要复制其中的文字内容。`,`Style reference mapping (label => source):-${Mr}-You may follow both style and layout, but must not copy their text content.`):d(`参考映射如下(标签 => 来源):-${Mr}-仅参考风格,不要复制其版式和文字内容。`,`Style reference mapping (label => source):-${Mr}-Follow style only (palette/texture/mood), do not copy their layout or text content.`):"",ts={id:bn,title:on.title,content:on.content||[],description:on.description,note:on.note,layout:on.layout};if(er.trim()){Qn.push(async()=>{const dr=await ls(er);Rd(bn,dr,"edited",Vr.trim()?Vr:void 0)});continue}if(bh==="text_only"||bh==="text_relayout"){Qn.push(async()=>{const dr=await Xa.generatePageImage(ts,u,w||void 0,[...Qo.map(ia=>({url:ia.url,label:ia.label})),...mc(bn)],[Vr.trim(),wa].filter(Boolean).join(`-`));dr&&await Ts(on,dr,"generated",Vr.trim()||void 0)});continue}Qn.push(async()=>{var xc;const dr=J[bn]||[],ia=le[bn],No=ia?(xc=dr.find(ns=>ns.id===ia))==null?void 0:xc.url:q[bn];if(xh||!No||vc){const ns=await Xa.generatePageImage(ts,u,w||void 0,[...Qo.map(Si=>({url:Si.url,label:Si.label})),...mc(bn)],[Vr.trim(),wa].filter(Boolean).join(`-`));ns&&await Ts(on,ns,"generated",Vr.trim()||void 0);return}const Ah=await Xa.editPageImage(ts,[Vr.trim(),wa].filter(Boolean).join(`-`),No||void 0,w||void 0,Array.from(new Set([...es,...Jo,...Ie,...Og(bn)])));Ah&&await Ts(on,Ah,"edited",Vr.trim()||void 0)})}if(Qn.length>0){Mi(!0);try{await cl(Qn,lb)}catch(at){console.error("Failed to apply image edits",at)}finally{Mi(!1)}return}const Xn=[];for(const at of $t){const bn=String((at==null?void 0:at.id)||"");if(!bn)continue;const on=typeof(at==null?void 0:at.imageUrl)=="string"?at.imageUrl:"",er=(at==null?void 0:at.kind)==="content"||(at==null?void 0:at.kind)==="visual"||(at==null?void 0:at.kind)==="both"?at.kind:null,Vr=typeof(at==null?void 0:at.imageEditInstruction)=="string"?at.imageEditInstruction:typeof(at==null?void 0:at.instruction)=="string"?at.instruction:"",Vi=Array.isArray(at==null?void 0:at.styleRefSlideIds)?at.styleRefSlideIds.map(Mr=>String(Mr||"").trim()).filter(Mr=>!!Mr&&Mr!==bn):[],vc=(at==null?void 0:at.styleRefPolicy)==="style_and_layout"?"style_and_layout":"style_only",xh=Array.isArray(at==null?void 0:at.styleRefImageUrls)?at.styleRefImageUrls.map(Mr=>String(Mr||"").trim()).filter(Mr=>!!Mr):[],bh=Vi.map(Mr=>{const wa=Be(Mr);if(!wa)return null;const ts=Mr.replace(/[^a-zA-Z0-9_-]/g,"_");return{url:wa,label:`STYLE_REF_SLIDE_${ts}`,source:Mr}}).filter(Boolean),Zg=xh.map((Mr,wa)=>({url:Mr,label:`STYLE_REF_EXTERNAL_${wa+1}`,source:`external-${wa+1}`})),Wl=Array.from(new Map([...bh,...Zg].map(Mr=>[Mr.url,Mr])).values()),Ia=Wl.map(Mr=>Mr.url),Jo=Wl.length>0?Wl.map((Mr,wa)=>`${wa+1}. ${Mr.label} => ${Mr.source}`).join(`-`):"",Ui=_t.find(Mr=>Mr.id===bn);if(!Ui)continue;if(on.trim()){Xn.push(async()=>{const Mr=await ls(on);Rd(bn,Mr,"edited",Vr.trim()?Vr:void 0)});continue}const ya=qe.get(bn),Qo=!!ya&&(ya.title!==Ui.title||ya.description!==Ui.description||ya.layout!==Ui.layout||ya.note!==Ui.note||JSON.stringify(ya.content||[])!==JSON.stringify(Ui.content||[]));(er==="content"||er==="both"||!er&&(Qo||!ya))&&(Xn.push(async()=>{const Mr={id:bn,title:Ui.title,content:Ui.content||[],description:Ui.description,note:Ui.note,layout:Ui.layout},wa=await Xa.generatePageImage(Mr,u,w||void 0,[...Wl.map(ts=>({url:ts.url,label:ts.label})),...mc(bn)],[er==="both"&&Vr.trim()?Vr:"",Ia.length>0?vc==="style_and_layout"?d(`风格参考映射如下(标签 => 来源):-${Jo}-可参考其视觉风格与版式结构,但禁止复用其文字内容。`,`Style reference mapping (label => source):-${Jo}-You may follow both style and layout, but must not copy their text content.`):d(`风格参考映射如下(标签 => 来源):-${Jo}-仅参考其视觉风格(配色、质感、氛围),不要复制其版式与文字内容。`,`Style reference mapping (label => source):-${Jo}-Follow style only (palette/texture/mood), do not copy their layout or text content.`):""].filter(Boolean).join(`-`));wa&&await Ts(Ui,wa,"generated",er==="both"?Vr:void 0)}),er==="content"||er==="both")||Vr.trim()&&Xn.push(async()=>{var No;const Mr=J[bn]||[],wa=le[bn],ts=wa?(No=Mr.find(jd=>jd.id===wa))==null?void 0:No.url:q[bn];if(!ts)return;const dr={id:bn,title:Ui.title,content:Ui.content||[],description:Ui.description},ia=await Xa.editPageImage(dr,[Vr,Ia.length>0?vc==="style_and_layout"?d(`附加参考图中,前 ${Ia.length} 张为风格参考图,顺序与映射如下(序号. 标签 => 来源):-${Jo}-可参考风格和版式,不可复用文字。`,`In additional reference images, the first ${Ia.length} are style references. Mapping (index. label => source):-${Jo}-You may follow style and layout, but do not copy text.`):d(`附加参考图中,前 ${Ia.length} 张为风格参考图,顺序与映射如下(序号. 标签 => 来源):-${Jo}-仅参考风格,不可复用版式与文字。`,`In additional reference images, the first ${Ia.length} are style references. Mapping (index. label => source):-${Jo}-Style only, do not copy layout/text.`):""].filter(Boolean).join(`-`),ts||void 0,w||void 0,Array.from(new Set([...Ia,...Ie,...Og(bn)])));ia&&await Ts(Ui,ia,"edited",Vr)})}if(Xn.length>0){Mi(!0);try{await cl(Xn,lb)}catch(at){console.error("Failed to apply image edits",at)}finally{Mi(!1)}}};N.useEffect(()=>{if(!(s!=null&&s.payload))return;const Y=s.id;Promise.resolve(gi(s.payload)).catch(he=>{console.error("Failed to apply incoming slide edits",he)}).finally(()=>{Y&&(l==null||l(Y))})},[s==null?void 0:s.id]);const or=Y=>{var nt;const he=xr(Y),fe=J[Y]||[],me=le[Y]||"",Ie=[...he].reverse().find(lt=>lt.type!=="derived_textless")||he[he.length-1],qe=(me&&he.some(lt=>lt.id===me)?me:Ie==null?void 0:Ie.id)||me||((nt=fe[fe.length-1])==null?void 0:nt.id)||"",Be=qe?he.find(lt=>lt.id===qe):void 0;return{versionId:qe,version:Be,imageUrl:(Be==null?void 0:Be.url)||q[Y]||""}},xr=Y=>{const he=J[Y]||[];return he.some(me=>me.type!=="derived_textless")||!q[Y]?he:[{id:`${E8e}${Y}`,url:q[Y],timestamp:Date.now(),type:"generated",instruction:d("原始版本","Original version")},...he]},sr=Y=>or(Y).imageUrl,Di=Y=>{const he=J[Y]||[];return he.find(fe=>!fe.sourceVersionId)||he[0]},Wr=Y=>{var fe;const{versionId:he}=or(Y);if(he)return(fe=xe[Y])==null?void 0:fe[he]},wi=Y=>(J[Y]||[]).find(fe=>fe.type==="derived_textless"),En=Y=>yt[Y]||"idle",Er=Y=>sr(Y)||"",ra=Y=>{var me;const{versionId:he,imageUrl:fe}=or(Y);return{versionId:he,imageUrl:fe,layer:he?(me=xe[Y])==null?void 0:me[he]:void 0}},ua=Y=>!!Y&&Fn.includes(Y),ks=async(Y,he)=>{const fe=Wr(Y.id),me=await ls(he),Ie={id:Y.id,title:Y.title,content:Y.content,description:Y.description,note:Y.note,layout:Y.layout},qe=await Xa.extractSlideTextBlocks(Ie,me,u);return{backgroundImageUrl:me,textBlocks:qe,elements:mf(qe,(fe==null?void 0:fe.elements)||[]),status:"ready"}},ho=async Y=>{const{versionId:he,imageUrl:fe,layer:me}=ra(Y.id);if(!he||!fe)return null;if(Ip(me))return{versionId:he,imageUrl:fe,layer:me};if(Ht.current[Y.id])return await Ht.current[Y.id];const Ie=(async()=>{yr(qe=>qe.includes(Y.id)?qe:[...qe,Y.id]),Fd(Y.id,he,{backgroundImageUrl:fe,textBlocks:Array.isArray(me==null?void 0:me.textBlocks)?me.textBlocks:[],elements:D0(Array.isArray(me==null?void 0:me.textBlocks)?me.textBlocks:[]),status:"pending",error:void 0});try{const qe=await ks(Y,fe);return Fd(Y.id,he,qe),{versionId:he,imageUrl:fe,layer:qe}}finally{yr(qe=>qe.filter(Be=>Be!==Y.id)),delete Ht.current[Y.id]}})();return Ht.current[Y.id]=Ie,await Ie},Eo=(Y,he,fe,me,Ie)=>{const qe=Wr(Y),nt=!((qe==null?void 0:qe.textBlocks)||[]).some(lt=>lt.role==="title")&&fe<.2?"title":"bullet";return{id:`manual-${Date.now()}-${Math.random().toString(16).slice(2)}`,role:nt,text:"",x:Math.max(0,Math.min(.95,he)),y:Math.max(0,Math.min(.95,fe)),w:Math.max(nt==="title"?.18:.1,Math.min(1-he,me)),h:Math.max(nt==="title"?.08:.06,Math.min(1-fe,Ie)),style:{fontFamily:u==="zh"?"Microsoft YaHei":"Aptos",fontSize:nt==="title"?30:20,fontWeight:nt==="title"?700:500,color:nt==="title"?"#ffffff":"#111827",align:"left",lineHeight:nt==="title"?1.12:1.35}}},iu=(Y,he,fe)=>{if((Y==null?void 0:Y.editType)==="text_only"||(Y==null?void 0:Y.editType)==="text_relayout"||(Y==null?void 0:Y.editType)==="background_redraw")return Y.editType;const me=typeof(Y==null?void 0:Y.imageUrl)=="string"&&Y.imageUrl.trim().length>0,Ie=typeof(Y==null?void 0:Y.imageEditInstruction)=="string"&&Y.imageEditInstruction.trim().length>0,qe=typeof(Y==null?void 0:Y.instruction)=="string"&&Y.instruction.trim().length>0,Be=Array.isArray(Y==null?void 0:Y.materialImageUrls)&&Y.materialImageUrls.some(Gn=>String(Gn||"").trim().length>0),nt=Array.isArray(Y==null?void 0:Y.styleRefImageUrls)&&Y.styleRefImageUrls.some(Gn=>String(Gn||"").trim().length>0),lt=Array.isArray(Y==null?void 0:Y.styleRefSlideIds)&&Y.styleRefSlideIds.some(Gn=>String(Gn||"").trim().length>0),ft=(Y==null?void 0:Y.styleRefPolicy)==="style_and_layout"&&(nt||lt),zt=(Y==null?void 0:Y.kind)==="content"||(Y==null?void 0:Y.kind)==="visual"||(Y==null?void 0:Y.kind)==="both"?Y.kind:null;return zt==="visual"||zt==="both"?"background_redraw":zt==="content"?"text_relayout":me||Ie||Be||ft||!!he&&!!fe&&he.layout!==fe.layout?"background_redraw":he?!!fe&&(he.title!==fe.title||he.description!==fe.description||he.note!==fe.note||JSON.stringify(he.content||[])!==JSON.stringify(fe.content||[]))||qe||nt||lt?"text_relayout":"text_only":qe?"text_relayout":"text_only"},Ed=(Y,he,fe)=>{var Be;const{versionId:me}=or(Y);if(!me)return;const Ie=(Be=xe[Y])==null?void 0:Be[me],qe=((Ie==null?void 0:Ie.textBlocks)||[]).map(nt=>nt.id===he?{...nt,text:fe}:nt);ge(nt=>{var ft;const lt=(ft=nt[Y])==null?void 0:ft[me];return lt?{...nt,[Y]:{...nt[Y]||{},[me]:{...lt,textBlocks:qe,elements:mf(qe,lt.elements)}}}:nt}),y(nt=>nt.map(lt=>{if(lt.id!==Y)return lt;const ft=qe.find($t=>$t.role==="title"),zt=qe.filter($t=>$t.role==="bullet"),_t=qe.filter($t=>$t.role==="summary");return{...lt,title:ft?ft.text.trim():lt.title,content:zt.length>0?zt.map($t=>N8e($t.text)).filter(Boolean):lt.content,description:_t.length>0?_t.map($t=>$t.text.trim()).filter(Boolean).join(`-`):lt.description}}))},xi=(Y,he,fe,me)=>{const{versionId:Ie}=or(Y),qe=me||Ie;qe&&ge(Be=>{var ft;const nt=(ft=Be[Y])==null?void 0:ft[qe];if(!nt)return Be;const lt=nt.textBlocks.map(zt=>{if(zt.id!==he)return zt;const _t=Math.max(.05,zt.role==="title"?.18:zt.role==="tag"?.07:.1),$t=Math.max(.04,zt.role==="title"?.08:zt.role==="tag"?.045:.06);let Gn=typeof fe.x=="number"?fe.x:zt.x,Qn=typeof fe.y=="number"?fe.y:zt.y,Xn=typeof fe.w=="number"?fe.w:zt.w,at=typeof fe.h=="number"?fe.h:zt.h;return Xn=Math.max(_t,Math.min(1,Xn)),at=Math.max($t,Math.min(1,at)),Gn=Math.max(0,Math.min(1-Xn,Gn)),Qn=Math.max(0,Math.min(1-at,Qn)),{...zt,x:Gn,y:Qn,w:Xn,h:at}});return{...Be,[Y]:{...Be[Y]||{},[qe]:{...nt,textBlocks:lt,elements:mf(lt,nt.elements)}}}})},ti=(Y,he)=>{const{versionId:fe}=or(Y);fe&&ge(me=>{var Be;const Ie=(Be=me[Y])==null?void 0:Be[fe];if(!Ie)return me;const qe=[...Ie.textBlocks,he];return{...me,[Y]:{...me[Y]||{},[fe]:{...Ie,textBlocks:qe,elements:mf(qe,Ie.elements)}}}})},eo=(Y,he)=>{const{versionId:fe}=or(Y);fe&&(ge(me=>{var Be;const Ie=(Be=me[Y])==null?void 0:Be[fe];if(!Ie)return me;const qe=Ie.textBlocks.filter(nt=>nt.id!==he);return{...me,[Y]:{...me[Y]||{},[fe]:{...Ie,textBlocks:qe,elements:mf(qe,Ie.elements)}}}}),Pn(me=>me===he?null:me))},da=(Y,he,fe,me,Ie)=>{xi(Y,he,{x:fe,y:me},Ie)},Ds=(Y,he,fe,me,Ie)=>{xi(Y,he,{w:fe,h:me},Ie)};N.useEffect(()=>{if(!ye&&!Oe)return;const Y=fe=>{const me=yi.current;if(me){const qe=(fe.clientX-me.startClientX)/Math.max(me.canvasWidth,1),Be=(fe.clientY-me.startClientY)/Math.max(me.canvasHeight,1);da(me.slideId,me.blockId,me.startX+qe,me.startY+Be,me.versionId)}const Ie=bt.current;if(Ie){const qe=(fe.clientX-Ie.startClientX)/Math.max(Ie.canvasWidth,1),Be=(fe.clientY-Ie.startClientY)/Math.max(Ie.canvasHeight,1);if(!Ie.handle||Ie.handle==="se")Ds(Ie.slideId,Ie.blockId,Ie.startW+qe,Ie.startH+Be,Ie.versionId);else{let ft=Ie.startX,zt=Ie.startY,_t=Ie.startW,$t=Ie.startH;Ie.handle.includes("e")&&(_t=Ie.startW+qe),Ie.handle.includes("s")&&($t=Ie.startH+Be),Ie.handle.includes("w")&&(ft=Ie.startX+qe,_t=Ie.startW-qe),Ie.handle.includes("n")&&(zt=Ie.startY+Be,$t=Ie.startH-Be),_t<.05&&(Ie.handle.includes("w")&&(ft-=.05-_t),_t=.05),$t<.04&&(Ie.handle.includes("n")&&(zt-=.04-$t),$t=.04),xi(Ie.slideId,Ie.blockId,{x:ft,y:zt,w:_t,h:$t},Ie.versionId)}}},he=()=>{yi.current=null,bt.current=null,Fe(null),Le(null)};return window.addEventListener("pointermove",Y),window.addEventListener("pointerup",he),window.addEventListener("pointercancel",he),()=>{window.removeEventListener("pointermove",Y),window.removeEventListener("pointerup",he),window.removeEventListener("pointercancel",he)}},[ye,Oe]),N.useEffect(()=>{const Y=g[v];if(!Nn){Pn(null),Ei(!1),jn(null);return}const he=Y?Wr(Y.id):void 0,fe=(he==null?void 0:he.textBlocks)||[];if(fe.length===0){Pn(null);return}(!hr||!fe.some(me=>me.id===hr))&&Pn(fe[0].id)},[Nn,g,v,xe,hr]),N.useEffect(()=>{if(!Vt.current)return;const Y=fe=>{const me=Vt.current;if(!me)return;const Ie=Math.max(0,Math.min(1,(fe.clientX-me.rect.left)/Math.max(me.rect.width,1))),qe=Math.max(0,Math.min(1,(fe.clientY-me.rect.top)/Math.max(me.rect.height,1)));jn({startX:me.startX,startY:me.startY,currentX:Ie,currentY:qe})},he=()=>{const fe=Vt.current;if(Vt.current=null,!fe||!Zt){jn(null);return}const me=Math.min(Zt.startX,Zt.currentX),Ie=Math.min(Zt.startY,Zt.currentY),qe=Math.abs(Zt.currentX-Zt.startX),Be=Math.abs(Zt.currentY-Zt.startY);if(jn(null),qe<.025||Be<.025)return;const nt=Eo(fe.slideId,me,Ie,qe,Be);ti(fe.slideId,nt),Pn(nt.id),Ei(!1)};return window.addEventListener("pointermove",Y),window.addEventListener("pointerup",he),window.addEventListener("pointercancel",he),()=>{window.removeEventListener("pointermove",Y),window.removeEventListener("pointerup",he),window.removeEventListener("pointercancel",he)}},[Zt]),N.useEffect(()=>{const Y=fe=>{const me=Qt.current;if(!me)return;const Ie=me.startClientX-fe.clientX;Un(Math.max(320,Math.min(720,me.startWidth+Ie)))},he=()=>{Qt.current=null};return window.addEventListener("pointermove",Y),window.addEventListener("pointerup",he),window.addEventListener("pointercancel",he),()=>{window.removeEventListener("pointermove",Y),window.removeEventListener("pointerup",he),window.removeEventListener("pointercancel",he)}},[]);const uh=(Y,he)=>{var qe;if(!_i)return;const fe=(qe=fr.current)==null?void 0:qe.getBoundingClientRect();if(!fe)return;const me=Math.max(0,Math.min(1,(Y.clientX-fe.left)/Math.max(fe.width,1))),Ie=Math.max(0,Math.min(1,(Y.clientY-fe.top)/Math.max(fe.height,1)));Vt.current={slideId:he.id,rect:fe,startX:me,startY:Ie},jn({startX:me,startY:Ie,currentX:me,currentY:Ie})},By=(Y,he=!1,fe=Hf,me=Xf)=>{const Ie=Er(Y.id);return Ie?m.jsx(Xj,{slide:ob(Y,{renderLayer:Wr(Y.id),backgroundImageUrl:Ie}),canvasWidth:fe,canvasHeight:me,showElements:!1}):null},C2=Y=>{const he=Wr(Y.id);if(!he)return null;const fe=[{key:"n",className:"left-1/2 top-0 -translate-x-1/2 -translate-y-1/2",cursor:"ns-resize"},{key:"s",className:"left-1/2 bottom-0 -translate-x-1/2 translate-y-1/2",cursor:"ns-resize"},{key:"e",className:"right-0 top-1/2 translate-x-1/2 -translate-y-1/2",cursor:"ew-resize"},{key:"w",className:"left-0 top-1/2 -translate-x-1/2 -translate-y-1/2",cursor:"ew-resize"},{key:"ne",className:"right-0 top-0 translate-x-1/2 -translate-y-1/2",cursor:"nesw-resize"},{key:"nw",className:"left-0 top-0 -translate-x-1/2 -translate-y-1/2",cursor:"nwse-resize"},{key:"se",className:"right-0 bottom-0 translate-x-1/2 translate-y-1/2",cursor:"nwse-resize"},{key:"sw",className:"left-0 bottom-0 -translate-x-1/2 translate-y-1/2",cursor:"nesw-resize"}];return m.jsxs("div",{className:"absolute inset-0 z-20",style:{cursor:_i?"crosshair":"default"},onPointerDown:me=>uh(me,Y),children:[he.textBlocks.map((me,Ie)=>{const qe=hr===me.id,Be=qe?Yj:R8e,nt=qe?"rgba(245,158,11,0.18)":"rgba(34,211,238,0.12)";return m.jsxs("div",{className:"absolute",style:{left:`${me.x*100}%`,top:`${me.y*100}%`,width:`${me.w*100}%`,height:`${me.h*100}%`,border:`2px solid ${Be}`,background:nt,boxShadow:qe?`0 0 0 2px rgba(255,255,255,0.25), 0 0 18px ${Be}`:"none",pointerEvents:"auto",cursor:_i?"crosshair":"move"},onPointerDown:lt=>{var _t;if(_i)return;lt.preventDefault(),lt.stopPropagation();const ft=(_t=fr.current)==null?void 0:_t.getBoundingClientRect();if(!ft)return;const{versionId:zt}=or(Y.id);zt&&(Pn(me.id),yi.current={slideId:Y.id,versionId:zt,blockId:me.id,startClientX:lt.clientX,startClientY:lt.clientY,startX:me.x,startY:me.y,blockW:me.w,blockH:me.h,canvasWidth:ft.width,canvasHeight:ft.height},Fe(me.id))},children:[m.jsx("div",{className:"absolute left-1 top-1 rounded bg-black/70 px-1.5 py-0.5 text-[10px] font-medium text-white shadow-sm",children:`#${Ie+1}`}),qe?fe.map(lt=>m.jsx("button",{type:"button",className:`absolute z-20 rounded-full border-2 border-white shadow-sm ${lt.className}`,style:{width:"12px",height:"12px",background:Be,cursor:lt.cursor},title:d("缩放文字框","Resize text box"),onPointerDown:ft=>{var $t;ft.preventDefault(),ft.stopPropagation();const zt=($t=fr.current)==null?void 0:$t.getBoundingClientRect();if(!zt)return;const{versionId:_t}=or(Y.id);_t&&(bt.current={slideId:Y.id,versionId:_t,blockId:me.id,startClientX:ft.clientX,startClientY:ft.clientY,startW:me.w,startH:me.h,startX:me.x,startY:me.y,canvasWidth:zt.width,canvasHeight:zt.height,handle:lt.key},Le(me.id))}},lt.key)):null]},`review-box-${me.id}`)}),Zt?m.jsx("div",{className:"absolute border-2 border-dashed",style:{left:`${Math.min(Zt.startX,Zt.currentX)*100}%`,top:`${Math.min(Zt.startY,Zt.currentY)*100}%`,width:`${Math.abs(Zt.currentX-Zt.startX)*100}%`,height:`${Math.abs(Zt.currentY-Zt.startY)*100}%`,borderColor:Yj,background:"rgba(245,158,11,0.14)",pointerEvents:"none"}}):null]})},Sn=g.length>0?g:[],gc=Sn.some(Y=>En(Y.id)==="extracting"),dh=Sn.length>0&&Sn.every(Y=>{const he=Wr(Y.id);return(he==null?void 0:he.status)==="ready"||(he==null?void 0:he.status)==="failed"}),zy=Sn.length>0&&Sn.every(Y=>En(Y.id)==="done"),Or=Sn[v],Wy=Or?Er(Or.id):"",Cs=Or?Wr(Or.id):void 0;Cs!=null&&Cs.textBlocks.find(Y=>Y.id===hr);const fh=Sn.filter(Y=>En(Y.id)==="done").length,hh=Sn.filter(Y=>En(Y.id)==="failed").length,Vy=Sn.filter(Y=>{const he=Wr(Y.id);return(he==null?void 0:he.status)==="ready"||(he==null?void 0:he.status)==="failed"}).length,Gy=gc?"text":"boxes",T2=()=>m.jsx(m8e,{panelWidth:kn,slideNumber:Or?v+1:null,textBlocks:(Cs==null?void 0:Cs.textBlocks)||[],selectedTextBlockId:hr,isScanning:!!Or&&ua(Or.id)&&!Ip(Cs),isExtracting:gc,canExtract:dh,canStartEditing:zy,reviewPhase:Gy,extractionSummary:d(gc?`文本提取中 ${fh}/${Sn.length} 页`:dh?`文本提取完成 ${fh}/${Sn.length} 页${hh>0?`,失败 ${hh} 页`:""}`:`文本框准备中 ${Vy}/${Sn.length} 页`,gc?`${fh}/${Sn.length} slides text extracted`:dh?`${fh}/${Sn.length} slides text extracted${hh>0?`, ${hh} failed`:""}`:`${Vy}/${Sn.length} text-box layers prepared`),reviewDrawMode:_i,tr:d,onPanelResizeStart:Y=>{Y.preventDefault(),Qt.current={startClientX:Y.clientX,startWidth:kn}},onExtract:()=>void qg(),onStartEditing:()=>void Gg(),onToggleDrawMode:()=>Ei(Y=>!Y),onSelectBlock:Pn,onDeleteBlock:Y=>{Or&&eo(Or.id,Y)},onChangeText:(Y,he)=>{Or&&Ed(Or.id,Y,he)},onChangeRectField:(Y,he,fe)=>{if(!Or)return;const me=Number.parseFloat(fe);Number.isFinite(me)&&xi(Or.id,Y,he==="x"?{x:me}:he==="y"?{y:me}:he==="w"?{w:me}:{h:me})}}),au=Sn.reduce((Y,he)=>Y+(Ae[he.id]?1:0),0),Ig=Sn.reduce((Y,he)=>Y+(Te[he.id]?1:0),0),qy=Or?ne==="image_transform"?Te[Or.id]:Ae[Or.id]:"",Hy=(Y,he)=>Y.type==="derived_textless"?d("无字底图","Textless background"):Y.instruction===d("原始版本","Original version")||Y.instruction===d("原始页面","Original full slide")?d("原始版本","Original version"):d(`第 ${he+1} 版`,`Version ${he+1}`),Xy=async()=>{if(typeof document>"u")return;const Y=ai.current;if(Y)try{if(document.fullscreenElement===Y)return;if(Y.requestFullscreen){await Y.requestFullscreen();return}const he=Y;typeof he.webkitRequestFullscreen=="function"&&he.webkitRequestFullscreen()}catch{}},Mg=async()=>{if(!(typeof document>"u"))try{if(document.fullscreenElement&&document.exitFullscreen){await document.exitFullscreen();return}const Y=document;typeof Y.webkitExitFullscreen=="function"&&Y.webkitExitFullscreen()}catch{}},Nd=()=>{cn(!1),Mg()};N.useEffect(()=>{if(!tn)return;const Y=na.current??v;Pr(Y),na.current=null;const he=window.setTimeout(()=>{Xy()},0);return()=>window.clearTimeout(he)},[tn,v]),N.useEffect(()=>{if(typeof document>"u")return;const Y=()=>{const he=ai.current,fe=document.fullscreenElement||document.webkitFullscreenElement||null;_n(!!he&&!!fe&&(fe===he||he.contains(fe)))};return document.addEventListener("fullscreenchange",Y),document.addEventListener("webkitfullscreenchange",Y),Y(),()=>{document.removeEventListener("fullscreenchange",Y),document.removeEventListener("webkitfullscreenchange",Y)}},[]),N.useEffect(()=>{if(!tn)return;const Y=he=>{if(Sn.length!==0){if(he.key==="ArrowRight"||he.key==="PageDown"||he.key===" "){he.preventDefault(),Pr(fe=>(fe+1)%Sn.length);return}if(he.key==="ArrowLeft"||he.key==="PageUp"){he.preventDefault(),Pr(fe=>(fe-1+Sn.length)%Sn.length);return}he.key==="Escape"&&(he.preventDefault(),On?Mg():Nd())}};return window.addEventListener("keydown",Y),()=>window.removeEventListener("keydown",Y)},[tn,Sn.length,On]),N.useEffect(()=>{if(!ma||typeof document>"u")return;const Y=he=>{var me;const fe=he.target;fe&&((me=Hn.current)!=null&&me.contains(fe)||Cr(!1))};return document.addEventListener("pointerdown",Y),()=>document.removeEventListener("pointerdown",Y)},[ma]),N.useEffect(()=>{V&&Cr(!1)},[V]);const ou=Y=>{if(!Y||typeof window>"u")return!1;const he=St.current,fe=he==null?void 0:he.contentWindow;if(!fe)return!1;const me=(()=>{try{return new URL((he==null?void 0:he.src)||"",window.location.href).origin}catch{return`${window.location.protocol}//${window.location.hostname}:8003`}})();try{fe.postMessage({type:y8e,payload:Y},me)}catch{return!1}return!0};N.useEffect(()=>{if(typeof window>"u")return;const Y=he=>{if(!new Set([`${window.location.protocol}//${window.location.hostname}:8003`,window.location.origin]).has(he.origin))return;const me=he.data;!me||typeof me!="object"||me.type==="canvasanvil:ppt-return"&&ul()};return window.addEventListener("message",Y),()=>window.removeEventListener("message",Y)},[]),N.useEffect(()=>{if(!Tr)return;const Y=window.setTimeout(()=>{ou(Tr)},80);return()=>window.clearTimeout(Y)},[Tr,wt]);const Fd=(Y,he,fe)=>{const me={...fe,textBlocks:Array.isArray(fe.textBlocks)?fe.textBlocks:[],elements:Array.isArray(fe.elements)&&fe.elements.length>0?fe.elements:D0(fe.textBlocks||[])};ge(Ie=>({...Ie,[Y]:{...Ie[Y]||{},[he]:me}}))},Zy=async(Y,he,fe)=>{var me;try{const Ie=(me=xe[Y.id])==null?void 0:me[fe],qe=await ls(he),Be={id:Y.id,title:Y.title,content:Y.content,description:Y.description,note:Y.note,layout:Y.layout},nt=await Xa.extractSlideTextBlocks(Be,qe,u),lt=await Xa.generateTextlessPageImage(Be,qe,nt,u),ft=await ls(lt||qe),zt=await Xa.reviewSlideTextBlocks(Be,qe,ft||qe,nt,u);return{backgroundImageUrl:ft||qe,textBlocks:zt,elements:mf(zt,(Ie==null?void 0:Ie.elements)||[]),status:"ready"}}catch(Ie){console.error("Failed to build PPT render layer",Ie);const Be={backgroundImageUrl:await ls(he),textBlocks:[],elements:[],status:"failed",error:Ie instanceof Error?Ie.message:"Failed to process slide"};return Fd(Y.id,fe,Be),Be}},Ky=async(Y,he,fe)=>{const me=await ls(fe),Ie=Date.now();return ee(qe=>{const Be=qe[Y]||[],nt=Be.find(lt=>lt.type==="derived_textless"&<.sourceVersionId===he);return nt?{...qe,[Y]:Be.map(lt=>lt.id===nt.id?{...lt,url:me,timestamp:Ie}:lt)}:{...qe,[Y]:[...Be,{id:`v-textless-${Ie}-${Math.random().toString(16).slice(2)}`,url:me,timestamp:Ie,type:"derived_textless",sourceVersionId:he}]}}),me},Ug=async Y=>{const{versionId:he,imageUrl:fe}=or(Y.id);if(!(!he||!fe)){Ot(me=>({...me,[Y.id]:"extracting"})),yr(me=>me.includes(Y.id)?me:[...me,Y.id]),Fd(Y.id,he,{backgroundImageUrl:fe,textBlocks:[],elements:[],status:"pending",error:void 0});try{const me=await Zy(Y,fe,he);if(Fd(Y.id,he,me),me.status==="failed"){Ot(Ie=>({...Ie,[Y.id]:"failed"}));return}await Ky(Y.id,he,me.backgroundImageUrl||fe),Ot(Ie=>({...Ie,[Y.id]:"done"}))}catch(me){console.error("Failed to extract editable review slide",me),Ot(Ie=>({...Ie,[Y.id]:"failed"}))}finally{yr(me=>me.filter(Ie=>Ie!==Y.id))}}},Rd=(Y,he,fe,me,Ie)=>{const qe=`v-${Date.now()}-${Math.random().toString(16).slice(2)}`;return ee(Be=>({...Be,[Y]:[...Be[Y]||[],{id:qe,url:he,timestamp:Date.now(),type:fe,instruction:me,sourceVersionId:Ie==null?void 0:Ie.sourceVersionId}]})),G(Be=>({...Be,[Y]:qe})),te(Be=>({...Be,[Y]:he})),qe},Ts=async(Y,he,fe,me)=>{const Ie=await ls(he);return Rd(Y.id,Ie,fe,me)},su=async Y=>{const fe=(await Promise.all(Y.map(async me=>{if((J[me.id]||[]).some(nt=>nt.type!=="derived_textless"))return null;const qe=q[me.id];if(!qe)return null;const Be=await ls(qe);return{slideId:me.id,version:{id:`v-${Date.now()}-${Math.random().toString(16).slice(2)}`,url:Be,timestamp:Date.now(),type:"generated",instruction:d("原始版本","Original version")}}}))).filter(me=>!!me);fe.length!==0&&(ee(me=>{const Ie={...me};for(const qe of fe)Ie[qe.slideId]=[...Ie[qe.slideId]||[],qe.version];return Ie}),G(me=>{const Ie={...me};for(const qe of fe)Ie[qe.slideId]||(Ie[qe.slideId]=qe.version.id);return Ie}))},ph=(Y,he,fe,me,Ie)=>{const qe=Math.max(1,Y),Be={doneUnits:0},nt=(ft,zt)=>{if(u!=="zh")return zt;const _t=String(zt||"").trim();return _t==="Importing slide images..."?"正在导入页面图片...":_t==="Finishing import..."?"正在完成导入...":_t==="Generating beautified slides..."?"正在生成美化页面...":_t==="Finishing beautification..."?"正在完成美化...":_t==="Retrying slide generation..."?"正在重试生成页面...":_t==="Finishing retry..."?"正在完成重试...":_t==="Generating slide images..."?"正在生成页面图片...":_t==="Finishing slide generation..."?"正在完成生成...":ft},lt=(ft,zt,_t)=>{rn({current:ft,total:qe,message:nt(zt,_t)})};return{start(){lt(0,he,fe)},markBaseReady(){Be.doneUnits=Math.min(qe*2,Be.doneUnits+1),lt(Be.doneUnits/2,me,Ie)},markSlideFinished(ft){Be.doneUnits=Math.min(qe*2,Be.doneUnits+(ft?1:2)),lt(Be.doneUnits/2,me,Ie)}}},_2=async Y=>{const he=Array.from(Y.target.files||[]);Y.target.value="",he.length!==0&&await He([...de,...he])},E2=Y=>{O(Y),M(!0)},Lg=Y=>u==="zh"?`第${Y}张`:`Image ${Y}`,$y=Y=>{const he=String(Y||"").trim();if(!he)return null;try{return JSON.parse(he)}catch{}const fe=he.match(/```json\s*([\s\S]*?)\s*```/i);if(fe!=null&&fe[1])try{return JSON.parse(String(fe[1]).trim())}catch{}const me=he.indexOf("["),Ie=he.lastIndexOf("]");if(me>=0&&Ie>me){const qe=he.slice(me,Ie+1);try{return JSON.parse(qe)}catch{}}return null},lu=async()=>{const Y=(De||[]).filter(me=>me&&typeof me.dataUrl=="string"&&me.dataUrl.startsWith("data:image"));if(Y.length===0)return[];const he=Y.slice(0,24).map((me,Ie)=>{const qe=`FIG_${Ie+1}`,Be=typeof me.page=="number"?me.page:void 0,nt=String(me.textHint||"").slice(0,800),ft=At.current[me.id]||(Be?d(`来自第 ${Be} 页的图表`,`Figure/table from page ${Be}`):d("参考素材图片","Reference visual asset"));return{id:String(me.id||`asset-${Ie+1}`),label:qe,sourceFileName:String(me.sourceFileName||d("参考文件","Reference file")),sourcePage:Be,dataUrl:String(me.dataUrl||""),textHint:nt,caption:ft}}),fe=he.filter(me=>!At.current[me.id]);if(fe.length===0)return he;try{const me=["你是论文素材caption生成器。返回JSON数组,不要任何额外文字。","任务:为每个素材生成一句简短中文说明(18-36字),偏重实验数据/图表含义,不要编造具体数值。",'格式:[{"id":"...","caption":"..."}]',"素材列表:",...fe.map((nt,lt)=>{const ft=typeof nt.sourcePage=="number"?`page=${nt.sourcePage}`:"page=NA";return`${lt+1}. id=${nt.id}; source=${nt.sourceFileName}; ${ft}; text_hint=${nt.textHint||"(none)"}`})].join(`-`),Ie=await ja([{role:"user",content:me}],void 0,{timeoutMs:9e4}),qe=$y(Ie),Be=Array.isArray(qe)?qe:[];for(const nt of Be){const lt=String((nt==null?void 0:nt.id)||"").trim(),ft=String((nt==null?void 0:nt.caption)||"").trim();!lt||!ft||(At.current[lt]=ft.slice(0,80))}}catch(me){console.error("Failed to generate asset captions",me)}return he.map(me=>({...me,caption:At.current[me.id]||me.caption}))},Pd=(Y,he)=>{const fe=String(Y||""),me=ft=>ft.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ie=["放在左侧主视觉区域,约占画面宽度 40%","放在右上区域,作为辅助图示","放在底部横向区域,作为补充对比"],qe=["place it in the left primary visual area, about 40% width","place it in the upper-right area as a supporting visual","place it in the bottom horizontal area as supplementary comparison"];let Be=fe;const nt=[];for(let ft=0;ft<he.length;ft+=1){const zt=he[ft],_t=`{{image:${zt.name}}}`,$t=me(_t),Gn=u==="zh"?Ie[Math.min(ft,Ie.length-1)]:qe[Math.min(ft,qe.length-1)],Qn=String(zt.caption||"").trim(),Xn=u==="zh"?`${_t}${Gn}${Qn?`,内容重点为:${Qn}`:""}。`:`${_t} ${Gn}${Qn?`, focus: ${Qn}`:""}.`,at=u==="zh"?new RegExp(`${$t}[^\\n]*\\bplace\\b[^\\n]*`,"gi"):new RegExp(`${$t}[^\\n]*放在[^\\n]*`,"g");at.test(Be)&&(Be=Be.replace(at,""));const bn=Be.includes(_t),on=u==="zh"?new RegExp(`${$t}[^\\n]*放在`).test(Be):new RegExp(`${$t}[^\\n]*\\bplace\\b`,"i").test(Be);(!bn||!on)&&nt.push(Xn)}if(Be=Be.replace(/[ \t]+\n/g,`-`).replace(/\n{3,}/g,`--`).trim(),nt.length===0)return Be||fe;const lt=Be.trim();return lt?`${lt}-${nt.join(`-`)}`:nt.join(`-`)},Yy=(Y,he,fe)=>{var lt;const me=new Map;for(const ft of fe)me.set(ft.label,ft);const Ie=he.map((ft,zt)=>{var $t;return(Array.isArray(($t=Y[zt])==null?void 0:$t.materialLabels)?Y[zt].materialLabels.map(Gn=>String(Gn||"").trim()).filter(Boolean):[]).slice(0,3)});if(Ie.reduce((ft,zt)=>ft+zt.length,0)===0&&fe.length>0&&he.length>0){const ft=Math.min(fe.length,Math.max(1,Math.min(6,Math.ceil(he.length/2)))),zt=Math.max(1,Math.floor(he.length/ft));for(let _t=0;_t<ft;_t+=1){const $t=Math.min(he.length-1,_t*zt),Gn=(lt=fe[_t])==null?void 0:lt.label;Gn&&(Ie[$t]||(Ie[$t]=[]),Ie[$t].includes(Gn)||Ie[$t].push(Gn))}}const Be={};return{nextSlides:he.map((ft,zt)=>{const $t=(Ie[zt]||[]).slice(0,3).map(Xn=>me.get(Xn)).filter(Xn=>!!Xn).slice(0,3);if($t.length===0)return ft;const Gn=$t.map((Xn,at)=>({id:`auto-mat-${ft.id}-${Xn.label}-${at+1}`,name:Lg(at+1),fileName:Xn.sourceFileName,dataUrl:Xn.dataUrl,refLabel:Xn.label,caption:Xn.caption,sourceFileName:Xn.sourceFileName,sourcePage:Xn.sourcePage}));Be[ft.id]=Gn;const Qn=Pd(String(ft.description||""),Gn.map(Xn=>({name:Xn.name,caption:Xn.caption})));return{...ft,description:Qn}}),nextMaterials:Be}},gh=async(Y,he)=>{const fe=he.filter(Be=>Be.type.startsWith("image/"));if(fe.length===0)return;const me=Be=>new Promise((nt,lt)=>{const ft=new FileReader;ft.onload=()=>nt(String(ft.result||"")),ft.onerror=lt,ft.readAsDataURL(Be)}),Ie=(H[Y]||[]).length,qe=[];for(let Be=0;Be<fe.length;Be+=1){const nt=fe[Be];try{const lt=await me(nt);if(!lt.startsWith("data:image"))continue;const ft=Lg(Ie+Be+1);qe.push({id:`mat-${Date.now()}-${Math.random().toString(16).slice(2)}`,name:ft,fileName:nt.name,dataUrl:lt})}catch(lt){console.error("Failed to read slide material image",nt.name,lt)}}qe.length!==0&&Ne(Be=>({...Be,[Y]:[...Be[Y]||[],...qe]}))},N2=(Y,he)=>{const fe=(H[Y]||[]).find(Be=>Be.id===he);if(Ne(Be=>({...Be,[Y]:(Be[Y]||[]).filter(nt=>nt.id!==he)})),!fe)return;const me=Be=>Be.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ie=new RegExp(`\\{\\{image:${me(fe.name)}\\}\\}`,"g");y(Be=>Be.map(nt=>{if(nt.id!==Y)return nt;const lt=String(nt.description||"").replace(Ie,"").replace(/[ \t]{2,}/g," ").replace(/ *\n */g,`-`);return{...nt,description:lt}}));const qe=Ye.current[Y];if(qe)for(const Be of Array.from(qe.querySelectorAll("[data-material-token]"))){const nt=Be;nt.getAttribute("data-material-token")===fe.name&&nt.remove()}},Og=Y=>(H[Y]||[]).map(he=>he.dataUrl).filter(Boolean),mc=Y=>(H[Y]||[]).map(he=>({url:he.dataUrl,label:he.name})).filter(he=>!!he.url),mh=(Y,he,fe)=>{var Gn;const me=`{{image:${fe}}}`,Ie=Ye.current[he];if(Ie){const Qn=window.getSelection(),Xn=pt.current;if(Xn){Xn.deleteContents();const er=document.createElement("span");er.setAttribute("data-material-token",fe),er.setAttribute("contenteditable","false"),er.className="mx-0.5 inline-flex items-center rounded-md border border-blue-200 bg-blue-50 px-1.5 py-0.5 text-xs font-medium text-blue-700 align-middle",er.textContent=fe,Xn.insertNode(er);const Vr=document.createTextNode(" ");Xn.collapse(!1),Xn.insertNode(Vr);const Vi=document.createRange();Vi.setStartAfter(Vr),Vi.collapse(!0),Qn&&(Qn.removeAllRanges(),Qn.addRange(Vi))}else{const er=document.createElement("span");er.setAttribute("data-material-token",fe),er.setAttribute("contenteditable","false"),er.className="mx-0.5 inline-flex items-center rounded-md border border-blue-200 bg-blue-50 px-1.5 py-0.5 text-xs font-medium text-blue-700 align-middle",er.textContent=fe,Ie.appendChild(er)}const bn=(()=>{const er=[];for(const Vr of Array.from(Ie.childNodes)){if(Vr.nodeType===Node.TEXT_NODE){er.push(Vr.textContent||"");continue}if(Vr.nodeType!==Node.ELEMENT_NODE)continue;const Vi=Vr;if(Vi.tagName==="BR"){er.push(`-`);continue}const vc=Vi.getAttribute("data-material-token");if(vc){er.push(`{{image:${vc}}}`);continue}er.push(Vi.textContent||"")}return er.join("")})();ct.current[he]=bn;const on=[...g];on[Y].description=bn,y(on),Pe(null),ut(null),Je(0),pt.current=null;return}const qe=Tn.current[he],Be=((Gn=g[Y])==null?void 0:Gn.description)||"";if(!qe){const Qn=[...g];Qn[Y].description=`${Be}${me}`,y(Qn),Pe(null),ut(null),Je(0);return}const nt=qe.selectionStart??Be.length,lt=Be.slice(0,nt),ft=Math.max(lt.lastIndexOf("/"),lt.lastIndexOf("/")),zt=ft>=0?`${Be.slice(0,ft)}${me}${Be.slice(nt)}`:`${lt}${me}${Be.slice(nt)}`,_t=(ft>=0?ft:nt)+me.length,$t=[...g];$t[Y].description=zt,y($t),Pe(null),ut(null),Je(0),requestAnimationFrame(()=>{const Qn=Tn.current[he];Qn&&(Qn.focus(),Qn.setSelectionRange(_t,_t))})},Jy=Y=>{const he=Ye.current[Y];if(!he)return;const fe=window.getSelection();if(!fe||fe.rangeCount===0)return;const me=fe.getRangeAt(0);if(!he.contains(me.startContainer)||!me.collapsed||me.startContainer.nodeType!==Node.TEXT_NODE)return;const Ie=me.startContainer;if(me.startOffset<=0)return;const qe=Ie.data[me.startOffset-1];if(qe!=="/"&&qe!=="/")return;const Be=document.createRange();Be.setStart(Ie,me.startOffset-1),Be.setEnd(Ie,me.startOffset),pt.current=Be;const nt=me.cloneRange();nt.setStart(Ie,me.startOffset),nt.collapse(!0);const lt=nt.getBoundingClientRect(),ft=he.getBoundingClientRect();ut({left:he.offsetLeft+(lt.left-ft.left),top:he.offsetTop+(lt.bottom-ft.top)+2}),Je(0),Pe(Y)};N.useEffect(()=>{if(!_e)return;const Y=he=>{var me;const fe=he.target;fe&&((me=xt.current)!=null&&me.contains(fe)||(Pe(null),ut(null),Je(0),pt.current=null))};return document.addEventListener("mousedown",Y),()=>document.removeEventListener("mousedown",Y)},[_e]),N.useEffect(()=>{if(!_e)return;const Y=(H[_e]||[]).length;Y<=0||Je(he=>he<0?0:he>=Y?Y-1:he)},[_e,H]);const Qy=(Y,he)=>{const fe=Ye.current[Y];if(!fe||vt.current===Y||ct.current[Y]===he)return;ct.current[Y]=he,fe.innerHTML="";const me=String(he||""),Ie=/\{\{image:([^}]+)\}\}/g;let qe=0,Be;const nt=ft=>{const zt=ft.split(`-`);for(let _t=0;_t<zt.length;_t+=1)zt[_t]&&fe.appendChild(document.createTextNode(zt[_t])),_t<zt.length-1&&fe.appendChild(document.createElement("br"))};for(;Be=Ie.exec(me);){const ft=me.slice(qe,Be.index);ft&&nt(ft);const zt=String(Be[1]||"").trim(),_t=document.createElement("span");_t.setAttribute("data-material-token",zt),_t.setAttribute("contenteditable","false"),_t.className="mx-0.5 inline-flex items-center rounded-md border border-blue-200 bg-blue-50 px-1.5 py-0.5 text-xs font-medium text-blue-700 align-middle",_t.textContent=zt,fe.appendChild(_t),fe.appendChild(document.createTextNode(" ")),qe=Be.index+Be[0].length}const lt=me.slice(qe);lt&&nt(lt),fe.lastChild||fe.appendChild(document.createTextNode(""))},jg=Y=>{const he=Ye.current[Y];if(!he)return"";const fe=[];for(const me of Array.from(he.childNodes)){if(me.nodeType===Node.TEXT_NODE){fe.push(me.textContent||"");continue}if(me.nodeType!==Node.ELEMENT_NODE)continue;const Ie=me;if(Ie.tagName==="BR"){fe.push(`-`);continue}const qe=Ie.getAttribute("data-material-token");if(qe){fe.push(`{{image:${qe}}}`);continue}fe.push(Ie.textContent||"")}return fe.join("")},cu=()=>{console.log("Resetting generation state..."),te({}),ee({}),G({}),ge({}),A(0)},cl=async(Y,he)=>{const fe=[],me=[];for(const Ie of Y){const qe=Promise.resolve().then(()=>Ie());fe.push(qe);let Be;Be=qe.catch(()=>{}).then(()=>{me.splice(me.indexOf(Be),1)}),me.push(Be),me.length>=he&&await Promise.race(me)}await Promise.all(fe)},ev=Y=>{const he=String((Y==null?void 0:Y.name)||"").toLowerCase();return(Y==null?void 0:Y.type)==="application/pdf"||he.endsWith(".pdf")},F2=Y=>{const he=String((Y==null?void 0:Y.name)||"").toLowerCase();return(Y==null?void 0:Y.type)==="application/pdf"||he.endsWith(".pdf")},tv=async Y=>{const{getPdfDocumentFromUrl:he,renderPdfPageToCanvas:fe}=await Kc(async()=>{const{getPdfDocumentFromUrl:Ie,renderPdfPageToCanvas:qe}=await Promise.resolve().then(()=>oy);return{getPdfDocumentFromUrl:Ie,renderPdfPageToCanvas:qe}},void 0),me=URL.createObjectURL(Y);try{const Ie=await he(me),qe=(Ie==null?void 0:Ie.numPages)??0,Be=[];for(let nt=1;nt<=qe;nt+=1){rn({current:nt-1,total:qe,message:d(`正在解析 PDF... (${nt-1}/${qe})`,`Parsing PDF... (${nt-1}/${qe})`)});const lt=document.createElement("canvas");await fe({pdf:Ie,pageNumber:nt,canvas:lt,targetWidth:1280});const ft=lt.toDataURL("image/png");ft&&ft.startsWith("data:image")&&Be.push(ft)}return rn({current:qe,total:qe,message:d(`正在解析 PDF... (${qe}/${qe})`,`Parsing PDF... (${qe}/${qe})`)}),Be}finally{URL.revokeObjectURL(me)}},Yo=async Y=>{if(ev(Y))return await tv(Y);throw new Error(d("仅支持 PDF 文件。","Only PDF files are supported."))},Id=Y=>{var fe;const he=((fe=Y.target.files)==null?void 0:fe[0])||null;Y.target.value="",it(he)},nv=Y=>{var fe;const he=((fe=Y.target.files)==null?void 0:fe[0])||null;Y.target.value="",U(he)},Bg=async(Y,he)=>{const fe=await ls(he),me=Rd(Y.id,fe,"generated",d("原始上传页","Original uploaded page"));return $(Ie=>{if(!Ie[Y.id])return Ie;const qe={...Ie};return delete qe[Y.id],qe}),me},rv=async()=>{const Y=et;if(Y){cu(),se({}),$({}),re("generating_content"),rn({current:0,total:0,message:d("正在解析文件...","Parsing file...")});try{const he=await Yo(Y);if(he.length===0){alert(d("无法解析页面图片,请确认文件格式。","Failed to extract slide images. Please check the file format.")),re("idle"),rn({current:0,total:0,message:""});return}const fe=he.map((qe,Be)=>({id:`slide-${Be+1}`,title:d(`第 ${Be+1} 页`,`Slide ${Be+1}`),content:[],description:""}));y(fe),re("generating_images");const me=ph(fe.length,"正在创建原始版本...","Importing slide images...","正在重建可编辑文字层...","Finishing import...");me.start();const Ie=fe.map((qe,Be)=>async()=>{let nt=!1;try{me.markBaseReady(),nt=!0,await Bg(qe,he[Be])}catch(lt){$(ft=>({...ft,[qe.id]:zl(lt)}))}finally{me.markSlideFinished(nt)}});await cl(Ie,lb),re("done"),n==null||n(!0)}catch(he){console.error("Image PPT transform failed",he),alert(zl(he)),re("idle")}finally{rn({current:0,total:0,message:""})}}},zg=Y=>{const he=String(Y||"").trim();return["Beautify the slide while preserving all original text, numbers, and meaning.","Improve typography, spacing, alignment, color harmony, hierarchy, and visual balance.","Do not add watermarks. Keep 16:9 landscape.","Do not translate or rewrite text unless explicitly requested.",he?`User requirements: ${he}`:""].filter(Boolean).join(`-`)},zl=Y=>Y instanceof Error&&Y.message?Y.message:typeof Y=="string"&&Y.trim()?Y.trim():d("未知错误","Unknown error"),R2=Y=>new Promise(he=>setTimeout(he,Y)),P2=Y=>{const he=zl(Y).toLowerCase();return he.includes("429")||he.includes("524")||he.includes("timeout")||he.includes("timed out")||he.includes("networkerror")||he.includes("fetch")||he.includes("rate limit")},yc=async(Y,he,fe,me)=>{let Ie=null;for(let qe=1;qe<=fT;qe+=1){try{const Be=await Xa.editPageImage(Y,he,fe,me);if(Be)return Be;Ie=new Error(d("模型返回空结果","Empty model result"))}catch(Be){if(Ie=Be,!P2(Be)||qe>=fT)break}if(qe<fT){const Be=Math.floor(Math.random()*350),nt=U8e*Math.pow(2,qe-1)+Be;await R2(nt)}}throw Ie instanceof Error?Ie:new Error(zl(Ie))},Wg=async()=>{const Y=Xe;if(Y){cu(),se({}),re("generating_content"),rn({current:0,total:0,message:d("正在解析文件...","Parsing file...")});try{const he=ev(Y)?await tv(Y):[];if(he.length===0){alert(d("无法解析页面图片,请确认文件格式(仅支持 .pdf)。","Failed to extract pages. Please upload a .pdf file.")),re("idle"),rn({current:0,total:0,message:""});return}const fe=he.map((_t,$t)=>({id:`slide-${$t+1}`,title:d(`第 ${$t+1} 页`,`Slide ${$t+1}`),content:[],description:""})),me=await Promise.all(he.map(async _t=>await ls(_t))),Ie={},qe={},Be={};for(let _t=0;_t<fe.length;_t+=1){const $t=fe[_t].id,Gn=me[_t]||he[_t],Qn=`v-${Date.now()}-${Math.random().toString(16).slice(2)}`;Ie[$t]=Gn,qe[$t]=Qn,Be[$t]=[{id:Qn,url:Gn,timestamp:Date.now(),type:"generated",instruction:d("原始页面","Original full slide")}]}y(fe),te(Ie),G(qe),ee(Be),re("generating_images");const nt=ph(fe.length,"正在生成美化页图...","Generating beautified slides...","正在处理美化页文字层...","Finishing beautification...");nt.start();const lt=zg(Ce),ft=ke&&w||void 0,zt=fe.map((_t,$t)=>async()=>{let Gn=!1;try{const Qn={id:_t.id,title:_t.title,content:_t.content||[],description:_t.description||""},Xn=await yc(Qn,lt,me[$t]||he[$t],ft);nt.markBaseReady(),Gn=!0,Xn?(await Ts(_t,Xn,"edited",lt),se(at=>{if(!at[_t.id])return at;const bn={...at};return delete bn[_t.id],bn})):se(at=>({...at,[_t.id]:d("模型返回空结果","Empty model result")}))}catch(Qn){console.error(`Beautify failed for slide ${$t+1}`,Qn),se(Xn=>({...Xn,[_t.id]:zl(Qn)}))}finally{nt.markSlideFinished(Gn)}});await cl(zt,Jj),re("done"),n==null||n(!0)}catch(he){console.error("Beautify failed",he),alert(d("美化失败,请重试","Beautify failed. Please retry.")),re("idle")}finally{rn({current:0,total:0,message:""})}}},Md=async()=>{if(ne!=="beautify")return;const Y=Sn.map(fe=>fe.id).filter(fe=>!!Ae[fe]);if(Y.length===0)return;re("generating_images");const he=ph(Y.length,"正在重试生成页图...","Retrying slide generation...","正在处理重试页文字层...","Finishing retry...");he.start();try{const fe=zg(Ce),me=ke&&w||void 0,Ie=Y.map(qe=>async()=>{let Be=!1;const nt=Sn.find(ft=>ft.id===qe),lt=q[qe]||sr(qe);if(!nt||!lt){se(ft=>({...ft,[qe]:d("缺少可重试的原始图片","Missing base image for retry")})),he.markSlideFinished(!1);return}try{const ft={id:nt.id,title:nt.title,content:nt.content||[],description:nt.description||""},zt=await yc(ft,fe,lt,me);he.markBaseReady(),Be=!0,zt?(await Ts(nt,zt,"edited",fe),se(_t=>{if(!_t[qe])return _t;const $t={..._t};return delete $t[qe],$t})):se(_t=>({..._t,[qe]:d("模型返回空结果","Empty model result")}))}catch(ft){se(zt=>({...zt,[qe]:zl(ft)}))}finally{nt&<&&he.markSlideFinished(Be)}});await cl(Ie,Jj),re("done"),n==null||n(!0)}catch(fe){console.error("Retry failed slides error",fe),alert(d("重试失败页时出错,请重试。","Retrying failed slides failed. Please try again.")),re("done")}finally{rn({current:0,total:0,message:""})}},Vg=async()=>{if(Ee.trim()){cu(),re("input"),rn({current:0,total:0,message:d("正在解析参考素材...","Preparing reference assets...")});try{const Y=await lu();rn({current:0,total:0,message:d("正在生成计划...","Generating plan...")});const he=await Xa.generatePlanFromOutline(Ee,u,vr,Y.map(Ie=>({label:Ie.label,caption:Ie.caption,sourceFile:Ie.sourceFileName,sourcePage:Ie.sourcePage}))),fe=he.map((Ie,qe)=>({id:Ie.id||`slide-${qe+1}`,title:uT(Ie.title,u,qe+1),content:Ie.content,description:Ie.description||"",note:Ie.note||"",layout:cT(Ie.layout||"",u)})),me=Yy(he,fe,Y);Ne(me.nextMaterials),y(me.nextSlides),re("outline"),n==null||n(!0)}catch(Y){console.error("Failed to build plan from outline",Y),alert(Y instanceof Error?Y.message:d("大纲转计划失败,请重试。","Failed to build plan from outline. Please retry.")),re("idle")}finally{rn({current:0,total:0,message:""})}}},iv=async()=>{if(Ue.trim()){cu(),re("input"),rn({current:0,total:0,message:d("正在解析参考素材...","Preparing reference assets...")});try{const Y=await lu();rn({current:0,total:0,message:d("正在生成大纲...","Generating outline...")});const he=await Xa.generateOutline(Ue,u,vr,Y.map(Ie=>({label:Ie.label,caption:Ie.caption,sourceFile:Ie.sourceFileName,sourcePage:Ie.sourcePage})));if(!Array.isArray(he)||he.length===0)throw new Error("Invalid outline response");const fe=he.map((Ie,qe)=>({id:`slide-${qe+1}`,title:uT(Ie.title,u,qe+1),content:Ie.content,description:Ie.description,note:Ie.note,layout:cT(Ie.layout||"",u)})),me=Yy(he,fe,Y);Ne(me.nextMaterials),y(me.nextSlides),re("outline"),n==null||n(!0)}catch(Y){console.error("Failed to generate outline",Y);const he=Y==null?void 0:Y.name,me=he==="AbortError"||he==="APIUserAbortError"?d("生成大纲超时或被中断(120s)。请检查网络和模型可用性后重试。","Outline generation timed out or was interrupted (120s). Check network/model availability and retry."):Y instanceof Error?Y.message:d("生成大纲失败,请重试","Failed to generate outline. Please retry.");alert(me),re("idle")}finally{rn({current:0,total:0,message:""})}}},yh=async()=>{re("generating_images");const Y=g.map(he=>({id:he.id,title:he.title,content:he.content,description:he.description,note:he.note,layout:he.layout,status:"outline_generated"}));try{const he=ph(Y.length,"正在生成页图...","Generating slide images...","正在处理页文字层...","Finishing slide generation...");he.start();const fe=Y.map((me,Ie)=>async()=>{let qe=!1;try{const Be=await Xa.generatePageImage(Y[Ie],u,w||void 0,mc(Y[Ie].id||`slide-${Ie+1}`));if(he.markBaseReady(),qe=!0,Be){const nt=g[Ie];nt&&await Ts(nt,Be,"generated")}}catch(Be){console.error(`Failed to generate image for slide ${Ie}`,Be)}finally{he.markSlideFinished(qe)}});await cl(fe,lb),re("done"),n==null||n(!0)}catch(he){console.error("Full generation failed",he),alert(d("生成过程中出错。","An error occurred during generation.")),re("done"),n==null||n(!0)}},uu=async()=>{if(Or){We(!0);try{if(ne==="image_transform"){const me=Di(Or.id);if(!(me!=null&&me.url))return;await Bg(Or,me.url);return}let Y=null;const he=g.map(me=>({id:me.id,title:me.title,content:me.content,status:"description_generated",description:me.description,note:me.note,layout:me.layout})),fe=g.findIndex(me=>me===Or);Y=await Xa.generatePageImage(he[fe],u,w||void 0,mc(Or.id||`slide-${fe+1}`)),Y&&await Ts(Or,Y,"generated")}catch(Y){console.error("Failed to generate slide image",Y)}finally{We(!1)}}},vh=Y=>{const he=ob(Y,{backgroundImageUrl:sr(Y.id)||void 0});return Hj(he).page},av=async(Y,he)=>{var ft,zt;const{versionId:fe,imageUrl:me}=or(Y.id),Ie={id:Y.id,title:Y.title,content:Y.content,description:Y.description,note:Y.note,layout:Y.layout,textBlocks:[],elements:[],backgroundImageUrl:me||void 0,status:"completed"};if(!fe||!me)return Ie;let qe=(ft=xe[Y.id])==null?void 0:ft[fe];if(Ip(qe)||(qe=(zt=await ho(Y))==null?void 0:zt.layer),!qe||!Ip(qe))return Ie;let Be=qe.textBlocks.filter(_t=>_t.text.trim().length>0);if(Be.length===0)return Ie;const nt=wi(Y.id);let lt=(nt==null?void 0:nt.url)||qe.backgroundImageUrl||me;return{...Hj(ob(Y,{renderLayer:{...qe,backgroundImageUrl:lt,textBlocks:Be,elements:mf(Be,qe.elements)},backgroundImageUrl:lt})).page,backgroundImageUrl:lt}},Ud=()=>{const Y={};for(const he of Sn){const fe=sr(he.id);fe&&(Y[he.id]=fe)}return Y},Ld=Y=>{var he;if(t){const fe=Y.id||`slide-${v+1}`,me=le[fe],Ie=J[fe]||[],qe=me?(he=Ie.find(lt=>lt.id===me))==null?void 0:he.url:q[fe],Be=Wr(fe),nt=(H[fe]||[]).map(lt=>({name:lt.name,url:lt.dataUrl,caption:lt.caption||"",sourceFileName:lt.sourceFileName||"",sourcePage:typeof lt.sourcePage=="number"?lt.sourcePage:void 0,refLabel:lt.refLabel||""}));t(JSON.stringify({...Y,imageUrl:qe,backgroundImageUrl:(Be==null?void 0:Be.backgroundImageUrl)||qe,textBlocks:(Be==null?void 0:Be.textBlocks)||[],materialImages:nt},null,2),`${fe}.json`)}},ov=async()=>{if(!V){ve("pptx");try{const Y=Sn.map(fe=>vh(fe)),he=Ud();await Xa.exportPptx(Y,he,`presentation-${Date.now()}`)}catch(Y){console.error("Export failed",Y),alert(d("导出失败","Export failed"))}finally{ve(null)}}},sv=async()=>{if(!V){ve("pdf");try{const Y=Sn.map(fe=>vh(fe)),he=Ud();await Xa.exportPdf(Y,he,`presentation-${Date.now()}`)}catch(Y){console.error("Export failed",Y),alert(d("导出失败","Export failed"))}finally{ve(null)}}},lv=async()=>{if(Sn.length===0)return;await su(Sn),mr(!0),Ot(he=>{const fe={...he};for(const me of Sn)fe[me.id]||(fe[me.id]="idle");return fe});const Y=Sn[v]||Sn[0];if(Y)try{await ho(Y);const he=Sn.filter(fe=>fe.id!==Y.id);cl(he.map(fe=>async()=>{await ho(fe)}),Qj).catch(fe=>{console.error("Failed to prefetch editable review layers",fe)})}catch(he){console.error("Failed to prepare editable export review",he),alert(d("可编辑导出准备失败","Failed to prepare editable export review"))}},Gg=async()=>{if(!Nn){await lv();return}if(zy&&!V){ve("pptx_editable");try{const Y=new Array(Sn.length).fill(null),he=Sn.map((me,Ie)=>async()=>{Y[Ie]=await av(me)});if(await cl(he,M8e),Y.some(me=>!me))throw new Error("Missing editable export page");const fe=_8e(Y);ur(fe),Wt(Date.now()),mr(!1),Ei(!1),jn(null),Pn(null)}catch(Y){console.error("Editable export failed",Y),alert(d("进入可编辑 PPT 编辑器失败","Failed to open editable PPT editor"))}finally{ve(null)}}},qg=async Y=>{if(!Nn||gc||!Y&&!dh)return;const he=(Y?Sn.filter(fe=>fe.id===Y):Sn).filter(Boolean);if(he.length!==0)try{if(Y){await Ug(he[0]);return}await cl(he.map(fe=>async()=>{await Ug(fe)}),Qj)}catch(fe){console.error("Editable text extraction failed",fe)}},ul=()=>{if(typeof c=="function"){c();return}try{localStorage.removeItem(dT)}catch{}tY().catch(Y=>{console.error("Failed to clear persisted PPT workspace",Y)}),y([]),cu(),re("idle"),Me(""),Se(""),pe(""),Ve(!1),it(null),U(null),mr(!1),Ot({}),ur(null),Wt(0),Pn(null),Ei(!1),jn(null),se({}),$({}),b([]),Ne({}),Pe(null),yr([]),ge({}),ee({}),G({}),te({}),S(null),E(null),rn({current:0,total:0,message:""})},Hg=()=>{z(!0)},Xg=()=>{y([]),Ne({}),cu(),re("idle")},I2=Y=>({id:`slide-${Date.now()}-${Math.random().toString(16).slice(2)}`,title:d(`? ${Y+1} ?`,`Slide ${Y+1}`),content:[],description:"",note:"",layout:""}),M2=Y=>{let he=0;y(fe=>{const me=typeof Y=="number"?Math.max(0,Math.min(Y+1,fe.length)):fe.length;he=me;const Ie=[...fe];return Ie.splice(me,0,I2(me)),Ie}),A(he)},Od=Y=>{const he=g.findIndex(fe=>fe.id===Y);y(fe=>fe.filter(me=>me.id!==Y)),A(fe=>he<0||fe<he?fe:Math.max(0,Math.min(fe-1,g.length-2))),te(fe=>{if(!(Y in fe))return fe;const me={...fe};return delete me[Y],me}),ee(fe=>{if(!(Y in fe))return fe;const me={...fe};return delete me[Y],me}),G(fe=>{if(!(Y in fe))return fe;const me={...fe};return delete me[Y],me}),ge(fe=>{if(!(Y in fe))return fe;const me={...fe};return delete me[Y],me}),se(fe=>{if(!(Y in fe))return fe;const me={...fe};return delete me[Y],me}),$(fe=>{if(!(Y in fe))return fe;const me={...fe};return delete me[Y],me}),Ne(fe=>{const me={...fe};return delete me[Y],me})};if(Sn.length===0&&(oe==="idle"||oe==="input"||oe==="done")){const Y=[{id:"idea",label:d("想法","Idea")},{id:"outline",label:d("大纲","Outline")},{id:"beautify",label:d("PPT美化","Beautify")},{id:"image_transform",label:d("图片PPT转化","Image PPT Transform")}],he=ne==="outline"?{hint:d("已有大纲?直接粘贴即可快速生成,AI 将自动结构化。","Have an outline? Paste it and AI will structure it into slides."),placeholder:d(`粘贴你的 PPT 大纲,例如:-第一部分:AI 起源-- 1950 年代-- 达特茅斯会议`,`Paste your PPT outline, for example:-Part 1: Origins of AI-- 1950s-- Dartmouth workshop`)}:ne==="beautify"?{hint:d("上传 PDF,输入美化要求,然后并发渲染每一页。","Upload PDF, enter requirements, then beautify each page in parallel."),placeholder:d("例如:整体更高级、留白更充足、标题层级更明显、配色更统一;保持原文案不变。","e.g. More premium look, more whitespace, stronger title hierarchy, unified palette, higher contrast; keep all original text unchanged.")}:ne==="image_transform"?{hint:d("上传 PDF,系统会将每一页导入为图片幻灯片;仅在导出可编辑 PPTX 时才进行文字识别。","Upload a PDF and the system will import each page as an image slide; text recognition runs only for editable PPTX export."),placeholder:""}:{hint:d("输入你的想法,AI 将为你生成完整 PPT","Describe your idea and AI will generate a full deck."),placeholder:d("例如:生成一份关于 AI 发展史的演讲 PPT","e.g. Create a presentation about the history of AI")};return m.jsx("div",{className:"w-full h-full bg-zinc-50/50 dark:bg-zinc-900 flex flex-col overflow-hidden",children:m.jsx("div",{className:"flex-1 overflow-auto p-8",children:m.jsxs("div",{className:"max-w-4xl mx-auto space-y-8 bg-white dark:bg-zinc-800 p-8 rounded-2xl shadow-sm border border-zinc-100 dark:border-zinc-700/50",children:[m.jsxs("div",{className:"space-y-8",children:[ne!=="image_transform"&&!Nn?m.jsxs("div",{className:"space-y-4",children:[m.jsxs("label",{className:"text-sm font-semibold text-zinc-900 dark:text-zinc-100 flex items-center gap-2",children:[m.jsx("span",{className:"w-6 h-6 rounded-full bg-blue-100 text-blue-600 text-xs flex items-center justify-center font-bold",children:"1"}),d("选择或上传参考模板","Choose or upload a reference template")]}),m.jsxs("div",{className:"grid gap-4 grid-cols-[repeat(auto-fill,minmax(180px,1fr))]",children:[m.jsxs("label",{className:"cursor-pointer border-2 border-dashed rounded-xl transition-all duration-200 overflow-hidden relative aspect-video flex flex-col items-center justify-center group border-zinc-200 dark:border-zinc-700 hover:border-blue-500 hover:bg-blue-50/30 dark:hover:bg-zinc-800/50",children:[m.jsxs("div",{className:"flex flex-col items-center text-zinc-400 group-hover:text-blue-500 transition-colors",children:[m.jsx("div",{className:"w-10 h-10 rounded-full bg-zinc-100 dark:bg-zinc-800 flex items-center justify-center mb-2 group-hover:bg-blue-100 dark:group-hover:bg-blue-900/30 transition-colors",children:m.jsx(Ya,{className:"w-5 h-5"})}),m.jsx("span",{className:"text-xs font-medium",children:d("添加模板","Add template")})]}),m.jsx("input",{type:"file",accept:"image/*",multiple:!0,className:"hidden",onChange:ei})]}),m.jsx("button",{type:"button",onClick:()=>j(!0),title:d("AI生成模板","AI generate template"),className:"cursor-pointer border-2 border-dashed rounded-xl transition-all duration-200 overflow-hidden relative aspect-video flex flex-col items-center justify-center group border-zinc-200 dark:border-zinc-700 hover:border-blue-500 hover:bg-blue-50/30 dark:hover:bg-zinc-800/50",children:m.jsxs("div",{className:"flex flex-col items-center text-zinc-400 group-hover:text-blue-500 transition-colors",children:[m.jsx("div",{className:"w-10 h-10 rounded-full bg-zinc-100 dark:bg-zinc-800 flex items-center justify-center mb-2 group-hover:bg-blue-100 dark:group-hover:bg-blue-900/30 transition-colors",children:m.jsx(yf,{className:"w-5 h-5"})}),m.jsx("span",{className:"text-xs font-medium",children:d("AI生成模板","AI generate")})]})}),Rn.map(fe=>m.jsxs("div",{onClick:()=>void mn(fe),className:`cursor-pointer border rounded-xl overflow-hidden relative aspect-video group transition-all duration-200 bg-zinc-100 dark:bg-zinc-900 ${_===fe.id?"border-blue-500 ring-2 ring-blue-500 shadow-md":"border-zinc-200 dark:border-zinc-700 hover:ring-2 hover:ring-blue-500 hover:shadow-md"}`,children:[m.jsx("img",{src:fe.previewSrc,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",alt:fe.name}),_===fe.id&&m.jsx("div",{className:"absolute top-2 left-2 rounded-full bg-blue-600 px-2 py-0.5 text-[10px] font-medium text-white shadow",children:d("已选择","Selected")}),m.jsx("button",{type:"button",onClick:me=>{me.stopPropagation(),Zr(fe)},className:"absolute top-2 right-2 rounded-full bg-black/50 text-white p-1 opacity-0 group-hover:opacity-100 transition-opacity",title:d("删除模板","Delete template"),children:m.jsx(Va,{className:"w-3.5 h-3.5"})}),m.jsx("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/80 to-transparent p-3 pt-8 opacity-0 group-hover:opacity-100 transition-opacity duration-200",children:m.jsx("div",{className:"text-white text-xs font-medium text-center",children:fe.name})})]},fe.id))]})]}):null,m.jsxs("div",{className:"space-y-4",children:[m.jsxs("label",{className:"text-sm font-semibold text-zinc-900 dark:text-zinc-100 flex items-center gap-2",children:[m.jsx("span",{className:"w-6 h-6 rounded-full bg-blue-100 text-blue-600 text-xs flex items-center justify-center font-bold",children:ne==="image_transform"?"1":"2"}),d("输入内容","Input")]}),m.jsx("div",{className:"bg-zinc-100 dark:bg-zinc-900/50 p-1 rounded-lg inline-flex w-full sm:w-auto",children:Y.map(fe=>m.jsxs("button",{onClick:()=>be(fe.id),title:fe.label,className:`relative flex-1 sm:flex-none px-6 py-2 text-sm font-medium rounded-md transition-all duration-200 ${ne===fe.id?"text-zinc-900 dark:text-zinc-100 shadow-sm":"text-zinc-500 hover:text-zinc-700 dark:text-zinc-400 dark:hover:text-zinc-200"}`,children:[ne===fe.id&&m.jsx(Rl.div,{layoutId:"activeTab",className:"absolute inset-0 bg-white dark:bg-zinc-700 rounded-md",transition:{type:"spring",stiffness:500,damping:30}}),m.jsx("span",{className:"relative z-10",children:fe.label})]},fe.id))}),m.jsx("input",{ref:Yn,type:"file",multiple:!0,accept:".pdf,.docx,.zip,.tex,.tgz,.tar.gz,application/pdf,application/zip,application/x-zip-compressed,application/gzip,application/x-gzip,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/*,.txt,.md,.markdown,.json,.csv,.xml,.yaml,.yml,.toml",className:"hidden",onChange:_2}),m.jsxs(Rl.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:"space-y-3",children:[m.jsxs("div",{className:"flex items-center gap-2 text-sm text-zinc-700 dark:text-zinc-200",children:[ne==="beautify"?m.jsx(yf,{className:"w-4 h-4 text-blue-600"}):ne==="image_transform"?m.jsx(Nf,{className:"w-4 h-4 text-blue-600"}):m.jsx(YQ,{className:"w-4 h-4 text-amber-500"}),m.jsx("span",{children:he.hint})]}),ne==="beautify"?m.jsxs("div",{className:"space-y-3",children:[m.jsx("input",{ref:Lt,type:"file",accept:".pdf,application/pdf",className:"hidden",onChange:Id}),m.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-xl border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900/50 px-4 py-3",children:[m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:"text-sm font-medium text-zinc-900 dark:text-zinc-100",children:d("上传 PDF","Upload PDF")}),m.jsx("div",{className:"text-xs text-zinc-500 dark:text-zinc-400 truncate",children:Xe?Xe.name:d("未选择文件","No file selected")})]}),m.jsxs(ri,{type:"button",variant:"outline",className:"shrink-0",onClick:()=>{var fe;return(fe=Lt.current)==null?void 0:fe.click()},children:[m.jsx(Ya,{className:"w-4 h-4 mr-2"}),d("选择文件","Choose")]})]}),m.jsxs("label",{className:"flex items-center justify-between gap-3 rounded-xl border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900/50 px-4 py-3 cursor-pointer",children:[m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:"text-sm font-medium text-zinc-900 dark:text-zinc-100",children:d("启用模板美化(可选)","Use template for beautify (optional)")}),m.jsx("div",{className:"text-xs text-zinc-500 dark:text-zinc-400",children:d("开启后将把当前模板传给美化模型;关闭则仅基于上传的幻灯片美化。","When enabled, current template is passed to beautify model; otherwise beautify uses only uploaded slides.")})]}),m.jsx("input",{type:"checkbox",checked:ke,onChange:fe=>Ve(fe.target.checked),className:"h-4 w-4 rounded border-zinc-300 text-blue-600 focus:ring-blue-500"})]}),m.jsx("textarea",{value:Ce,onChange:fe=>pe(fe.target.value),className:"w-full h-36 p-4 rounded-xl border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900/50 text-sm focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 transition-all resize-none outline-none",placeholder:he.placeholder})]}):ne==="image_transform"?m.jsxs("div",{className:"space-y-3",children:[m.jsx("input",{ref:Xt,type:"file",accept:".pdf,application/pdf",className:"hidden",onChange:nv}),m.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-xl border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900/50 px-4 py-3",children:[m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:"text-sm font-medium text-zinc-900 dark:text-zinc-100",children:d("上传 PDF","Upload PDF")}),m.jsx("div",{className:"text-xs text-zinc-500 dark:text-zinc-400 truncate",children:et?et.name:d("未选择文件","No file selected")})]}),m.jsxs(ri,{type:"button",variant:"outline",className:"shrink-0",onClick:()=>{var fe;return(fe=Xt.current)==null?void 0:fe.click()},children:[m.jsx(Ya,{className:"w-4 h-4 mr-2"}),d("选择文件","Choose")]})]}),m.jsxs("div",{className:"rounded-xl border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900/50 px-4 py-3 text-xs text-zinc-500 dark:text-zinc-400 leading-6",children:[m.jsx("div",{children:d("处理结果:","Output:")}),m.jsx("div",{children:d("系统会把 PDF 每一页导入为图片幻灯片。","The system imports each PDF page as an image slide.")}),m.jsx("div",{children:d("如需可编辑文字,请在导出可编辑 PPTX 时再进行文字识别与回填。","If you need editable text, recognition and text refill happen only during editable PPTX export.")})]})]}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"relative",children:[m.jsx("textarea",{value:ne==="idea"?Ue:Ee,onChange:fe=>{const me=fe.target.value;ne==="idea"?Me(me):Se(me)},className:"w-full h-40 p-4 pb-12 rounded-xl border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900/50 text-sm focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 transition-all resize-none outline-none",placeholder:he.placeholder}),m.jsxs("button",{type:"button",onClick:()=>{var fe;return(fe=Yn.current)==null?void 0:fe.click()},disabled:wn,title:d("上传参考文件","Upload reference files"),className:"absolute bottom-3 right-3 inline-flex items-center gap-2 rounded-lg border border-zinc-200 dark:border-zinc-700 bg-white/80 dark:bg-zinc-900/60 px-3 py-1.5 text-xs text-zinc-700 dark:text-zinc-200 shadow-sm hover:bg-white dark:hover:bg-zinc-900 transition-colors disabled:opacity-60",children:[wn?m.jsx(sa,{className:"w-3.5 h-3.5 animate-spin"}):m.jsx(Ya,{className:"w-3.5 h-3.5"}),d("上传文件","Upload files")]})]}),m.jsxs("div",{className:"flex items-center justify-between gap-3",children:[m.jsx("div",{className:"text-xs text-zinc-500 dark:text-zinc-400",children:d("上传 PDF/Word/LaTeX/TXT作为参考资料(可选);推荐 Word/LaTeX,图表素材更稳定。","Upload PDF/Word/LaTeX/TXT as reference (optional); Word/LaTeX recommended for stable figures.")}),vr.length>0&&m.jsx("button",{type:"button",onClick:()=>b([]),title:d("清空参考文件","Clear reference files"),className:"text-xs text-zinc-500 hover:text-zinc-800 dark:hover:text-zinc-200",disabled:wn,children:d("清空","Clear")})]}),vr.length>0&&m.jsx("div",{className:"grid gap-2",children:vr.map(fe=>m.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-lg border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900/40 px-3 py-2",children:[m.jsxs("button",{type:"button",onClick:()=>E2(fe),title:d("预览文件","Preview file"),className:"flex items-center gap-2 min-w-0 text-left",children:[m.jsx(Oi,{className:"w-4 h-4 text-zinc-500 flex-shrink-0"}),m.jsx("span",{className:"truncate text-sm text-zinc-800 dark:text-zinc-100",children:fe.filename}),m.jsxs("span",{className:"text-xs text-zinc-500 dark:text-zinc-400 flex-shrink-0",children:["(",fe.charCount," chars)"]})]}),m.jsx("button",{type:"button",className:"text-xs text-zinc-500 hover:text-zinc-800 dark:hover:text-zinc-200",title:d("移除文件","Remove file"),onClick:()=>{const me=de.filter(Ie=>Ie.name!==fe.filename);He(me)},children:d("移除","Remove")})]},fe.id))})]})]},ne)]}),m.jsxs(ri,{onClick:ne==="beautify"?Wg:ne==="image_transform"?rv:ne==="idea"?iv:Vg,disabled:!!dt.message||(ne==="beautify"?!Xe:ne==="image_transform"?!et||!F2(et):wn||(ne==="idea"?!Ue.trim():!Ee.trim())),className:"w-full py-6 text-lg font-medium bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-700 hover:to-indigo-700 text-white shadow-lg shadow-blue-500/20 rounded-xl transition-all hover:scale-[1.01] active:scale-[0.99]",children:[dt.message?m.jsx(sa,{className:"w-5 h-5 mr-2 animate-spin"}):m.jsx(yf,{className:"w-5 h-5 mr-2"}),dt.message||(ne==="beautify"?d("开始渲染","Start rendering"):ne==="image_transform"?d("开始转化","Start transform"):ne==="idea"?d("开始生成大纲","Generate outline"):d("载入大纲","Load outline"))]})]}),m.jsx(Uc,{open:ae,onOpenChange:M,children:m.jsxs(Lc,{className:"max-w-3xl",children:[m.jsx(Ou,{children:m.jsx(ju,{children:(k==null?void 0:k.filename)||d("参考文件","Reference file")})}),m.jsx(lE,{value:(k==null?void 0:k.content)||"",readOnly:!0,className:"min-h-[420px] font-mono text-xs"})]})}),m.jsx(Uc,{open:I,onOpenChange:j,children:m.jsxs(Lc,{className:"max-w-2xl",children:[m.jsx(Ou,{children:m.jsx(ju,{children:d("AI生成模板","AI Template Generator")})}),m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"text-xs text-zinc-500 dark:text-zinc-400",children:d("生成的模板会自动加入模板列表,可随时删除。","Generated templates will be added to the template list automatically and can be deleted anytime.")}),m.jsx(lE,{value:B,onChange:fe=>W(fe.target.value),placeholder:d("例如:科技感、深色背景、蓝紫渐变、玻璃拟态、留白充足;不要出现任何文字。","e.g. Futuristic, dark background, blue-purple gradient, glassmorphism, generous whitespace; no text."),className:"min-h-[140px]",disabled:P}),m.jsxs("div",{className:"flex justify-end gap-3",children:[m.jsx(ri,{type:"button",variant:"outline",onClick:()=>j(!1),disabled:P,children:d("取消","Cancel")}),m.jsx(ri,{type:"button",onClick:vi,disabled:P||!B.trim(),className:"bg-blue-600 hover:bg-blue-700",children:P?m.jsxs(m.Fragment,{children:[m.jsx(sa,{className:"w-4 h-4 mr-2 animate-spin"}),d("生成中...","Generating...")]}):m.jsxs(m.Fragment,{children:[m.jsx(yf,{className:"w-4 h-4 mr-2"}),d("生成并保存","Generate & Save")]})})]})]})]})})]})})})}if(oe==="outline")return m.jsx("div",{className:"w-full h-full bg-zinc-50 dark:bg-zinc-900 flex flex-col overflow-hidden",children:m.jsx("div",{className:"flex-1 overflow-auto p-6",children:m.jsxs("div",{className:"w-full min-h-full bg-white dark:bg-zinc-800 rounded-xl shadow-sm flex flex-col overflow-hidden",children:[m.jsxs("div",{className:"p-6 border-b border-border flex justify-between items-center",children:[m.jsx("h3",{className:"font-semibold text-lg",children:d("确认大纲","Review outline")}),m.jsx("div",{className:"text-sm text-muted-foreground",children:d(`共 ${g.length} 页`,`${g.length} slides`)})]}),m.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-4",children:[g.length===0&&m.jsx("div",{className:"rounded-lg border border-dashed border-zinc-300 bg-zinc-50 px-4 py-6 text-center text-sm text-zinc-500",children:d("当前没有大纲,请返回修改后重新生成。","No outline yet. Go back and regenerate.")}),g.map((Y,he)=>m.jsxs("div",{className:"flex gap-4 p-4 border rounded-lg bg-zinc-50 dark:bg-zinc-900/50",children:[m.jsx("div",{className:"w-8 h-8 flex items-center justify-center bg-white dark:bg-zinc-800 rounded-full border text-sm font-medium text-muted-foreground",children:he+1}),m.jsxs("div",{className:"flex-1 space-y-2",children:[m.jsxs("div",{className:"flex items-start justify-between gap-3",children:[m.jsx("input",{value:Y.title,onChange:fe=>{const me=[...g];me[he].title=fe.target.value,y(me)},className:"w-full font-medium bg-transparent border-none focus:outline-none focus:ring-0 p-0"}),m.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[m.jsxs(ri,{variant:"outline",size:"sm",onClick:()=>M2(he),title:d("在当前页后新增大纲","Add outline after current"),children:[m.jsx(DB,{className:"w-4 h-4 mr-1"}),d("新增","Add")]}),m.jsxs(ri,{variant:"outline",size:"sm",onClick:()=>Od(Y.id),title:d("删除当前大纲","Delete current outline"),children:[m.jsx(Zf,{className:"w-4 h-4 mr-1"}),d("删除","Delete")]}),m.jsxs(ri,{variant:"outline",size:"sm",onClick:()=>Ld(Y),className:"shrink-0",children:[m.jsx(gb,{className:"w-4 h-4 mr-2"}),d("加入对话","Add to chat")]})]})]}),m.jsxs("div",{children:[m.jsx("div",{className:"text-xs font-medium text-foreground mb-1",children:d("要点内容(content)","Bullet content (content)")}),m.jsx("textarea",{value:(Y.content||[]).join(`-`),onChange:fe=>{const me=String(fe.target.value||"").split(/\r?\n/).map(qe=>qe.trim()).filter(qe=>qe.length>0),Ie=[...g];Ie[he].content=me,y(Ie)},className:"w-full h-24 p-3 rounded-md border border-input bg-background text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",placeholder:d(`每行一个要点,例如:-市场现状与挑战-核心方案与价值-落地计划与里程碑`,`One bullet per line, e.g.:-Market status and challenges-Core solution and value-Execution plan and milestones`)})]}),m.jsxs("div",{className:"pt-3 grid gap-3",children:[m.jsxs("div",{children:[m.jsx("div",{className:"text-xs font-medium text-foreground mb-1",children:d("布局提示(layout)","Layout hint (layout)")}),m.jsx("input",{value:Y.layout||"",onChange:fe=>{const me=[...g];me[he].layout=fe.target.value,y(me)},className:"w-full h-9 px-3 rounded-md border border-input bg-background text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",placeholder:d("例如:cover / title+bullets / two-column / left-text-right-image","e.g. cover / title+bullets / two-column / left-text-right-image")})]}),m.jsxs("div",{children:[m.jsx("div",{className:"text-xs font-medium text-foreground mb-1",children:d("演讲者备注(note)","Speaker notes (note)")}),m.jsx("textarea",{value:Y.note||"",onChange:fe=>{const me=[...g];me[he].note=fe.target.value,y(me)},className:"w-full h-20 p-3 rounded-md border border-input bg-background text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",placeholder:d("例如:这一页强调三个关键点;讲解时先抛出问题再给答案。","e.g. Emphasize three key points; start with a question, then answer it.")})]}),m.jsxs("div",{className:"relative",children:[m.jsx("div",{className:"text-xs font-medium text-foreground mb-1",children:d("画面描述(description,用于生图)","Visual description (description)")}),m.jsx("div",{ref:fe=>{Ye.current[Y.id]=fe,fe&&Qy(Y.id,Y.description||"")},contentEditable:!0,suppressContentEditableWarning:!0,onFocus:()=>{vt.current=Y.id},onBlur:()=>{vt.current=null;const fe=jg(Y.id);ct.current[Y.id]=fe;const me=[...g];me[he].description=fe,y(me)},onInput:()=>{const fe=jg(Y.id);ct.current[Y.id]=fe;const me=[...g];me[he].description=fe,y(me)},onKeyDown:fe=>{if(_e===Y.id&&(H[Y.id]||[]).length>0){const me=H[Y.id]||[],Ie=me.length;if(fe.key==="ArrowDown"){fe.preventDefault(),Je(qe=>(qe+1)%Ie);return}if(fe.key==="ArrowUp"){fe.preventDefault(),Je(qe=>(qe-1+Ie)%Ie);return}if(fe.key==="Enter"){fe.preventDefault();const qe=Math.max(0,Math.min(st,Ie-1)),Be=me[qe];Be&&mh(he,Y.id,Be.name);return}}if(fe.key==="Escape"){Pe(null),ut(null),Je(0),pt.current=null;return}if((fe.key==="Backspace"||fe.key==="Delete")&&fe.currentTarget){const me=fe.currentTarget,Ie=window.getSelection();if(!Ie||Ie.rangeCount===0)return;const qe=Ie.getRangeAt(0);if(!me.contains(qe.startContainer)||!qe.collapsed)return;const Be=nt=>!nt||!nt.getAttribute("data-material-token")?!1:(nt.remove(),!0);if(qe.startContainer.nodeType===Node.TEXT_NODE){const nt=qe.startContainer;if(fe.key==="Backspace"&&qe.startOffset===0){const lt=nt.previousSibling;lt&<.nodeType===Node.ELEMENT_NODE&&Be(lt)&&fe.preventDefault()}if(fe.key==="Delete"&&qe.startOffset===nt.data.length){const lt=nt.nextSibling;lt&<.nodeType===Node.ELEMENT_NODE&&Be(lt)&&fe.preventDefault()}}}},onKeyUp:fe=>{(H[Y.id]||[]).length!==0&&(fe.key==="/"||fe.key==="/")&&Jy(Y.id)},className:"w-full min-h-[96px] max-h-[200px] overflow-y-auto whitespace-pre-wrap break-words rounded-md border border-input bg-background p-3 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","data-placeholder":d("例如:科技感蓝色渐变背景,中间是 AI 芯片与电路纹理,留白清晰。","e.g. Futuristic blue gradient background, abstract AI chip and circuit textures, clean whitespace.")}),_e===Y.id&&(H[Y.id]||[]).length>0&&m.jsx("div",{ref:xt,className:"absolute z-20 w-56 rounded-md border border-border bg-popover p-2 shadow-sm",style:{left:(Ze==null?void 0:Ze.left)??8,top:(Ze==null?void 0:Ze.top)??8},children:m.jsx("div",{className:"max-h-56 space-y-1 overflow-y-auto",children:(H[Y.id]||[]).map((fe,me)=>m.jsxs("button",{type:"button",onClick:()=>mh(he,Y.id,fe.name),onMouseEnter:()=>Je(me),title:d(`插入第 ${me+1} 张素材`,`Insert material ${me+1}`),className:`flex w-full items-center gap-2 rounded-md border px-2 py-1.5 text-left text-xs ${st===me?"border-blue-300 bg-blue-100 text-blue-800 ring-1 ring-blue-300":"border-blue-200 bg-blue-50 text-blue-700 hover:bg-blue-100"}`,children:[m.jsx("img",{src:fe.dataUrl,alt:fe.name,className:"h-8 w-8 rounded object-cover"}),m.jsx("span",{className:"truncate",children:fe.name})]},fe.id))})})]}),m.jsxs("div",{children:[m.jsxs("div",{className:"mb-1 flex items-center justify-between text-xs font-medium text-foreground",children:[m.jsx("span",{children:d("素材图片(用于该页生图)","Material images (for this slide)")}),m.jsxs("button",{type:"button",onClick:()=>{var fe;return(fe=qt.current[Y.id])==null?void 0:fe.click()},title:d("上传素材图片","Upload material images"),className:"inline-flex items-center gap-1 rounded-md border border-zinc-300 px-2 py-1 text-xs text-zinc-700 hover:bg-zinc-100",children:[m.jsx(Ya,{className:"h-3.5 w-3.5"}),d("上传","Upload")]}),m.jsx("input",{ref:fe=>{qt.current[Y.id]=fe},type:"file",accept:"image/*",multiple:!0,className:"hidden",onChange:fe=>{const me=Array.from(fe.target.files||[]);fe.target.value="",gh(Y.id,me)}})]}),(H[Y.id]||[]).length===0?m.jsx("div",{className:"rounded-md border border-dashed border-zinc-300 px-3 py-2 text-xs text-zinc-500",children:d("暂无素材,上传后可在 description 输入 / 选择变量","No materials yet. Upload images, then type / in description to insert variables.")}):m.jsx("div",{className:"flex flex-wrap gap-3",children:(H[Y.id]||[]).map(fe=>m.jsxs("div",{className:"w-20",children:[m.jsxs("div",{className:"group relative h-20 w-20 cursor-zoom-in overflow-hidden rounded-md border bg-background",onClick:()=>In({open:!0,slideTitle:Y.title,item:fe}),title:d("点击查看素材","Click to preview material"),children:[m.jsx("img",{src:fe.dataUrl,alt:fe.name,className:"h-full w-full object-cover"}),m.jsx("button",{type:"button",onClick:me=>{me.stopPropagation(),In({open:!0,slideTitle:Y.title,item:fe})},className:"absolute bottom-1 left-1 inline-flex h-5 w-5 items-center justify-center rounded-full bg-blue-600/85 text-white opacity-0 transition-all group-hover:opacity-100 hover:bg-blue-700","aria-label":d("查看素材","Preview material"),title:d("查看","Preview"),children:m.jsx(SB,{className:"h-3 w-3"})}),m.jsx("button",{type:"button",onClick:me=>{me.stopPropagation(),N2(Y.id,fe.id)},className:"absolute right-1 top-1 inline-flex h-5 w-5 items-center justify-center rounded-full bg-black/60 text-white opacity-0 transition-all group-hover:opacity-100 hover:bg-black/80","aria-label":d("移除素材","Remove material"),title:d("移除","Remove"),children:"×"})]}),m.jsx("button",{type:"button",onClick:()=>In({open:!0,slideTitle:Y.title,item:fe}),className:"mt-1 w-full truncate text-center text-xs text-foreground hover:text-blue-600",title:d("点击查看素材","Click to preview material"),children:fe.name})]},fe.id))})]})]})]})]},Y.id||he))]}),m.jsxs("div",{className:"p-6 border-t border-border bg-zinc-50/50 dark:bg-zinc-900/50 flex justify-end gap-3",children:[m.jsx(ri,{variant:"outline",onClick:Xg,children:d("返回修改","Back")}),m.jsxs(ri,{onClick:yh,className:"bg-blue-600 hover:bg-blue-700",disabled:g.length===0,children:[m.jsx(yf,{className:"w-4 h-4 mr-2"}),d("生成完整 PPT","Generate full deck")]})]}),m.jsx(Uc,{open:Jt.open,onOpenChange:Y=>In(he=>({...he,open:Y})),children:m.jsxs(Lc,{className:"w-[92vw] max-w-[92vw] max-h-[92vh] overflow-hidden",children:[m.jsx(Ou,{children:m.jsx(ju,{children:d("素材预览","Material preview")})}),Jt.item&&m.jsxs("div",{className:"space-y-3",children:[m.jsx("div",{className:"h-[72vh] min-h-[360px] w-full overflow-auto rounded-lg border bg-muted/20 flex items-center justify-center",children:m.jsx("img",{src:Jt.item.dataUrl,alt:Jt.item.name,className:"block max-h-full max-w-full object-scale-down"})}),m.jsxs("div",{className:"grid gap-1 text-xs text-muted-foreground",children:[m.jsxs("div",{children:[d("所在幻灯片","Slide"),": ",Jt.slideTitle||"-"]}),m.jsxs("div",{children:[d("素材编号","Material label"),": ",Jt.item.name]}),Jt.item.refLabel?m.jsxs("div",{children:[d("来源标签","Reference label"),": ",Jt.item.refLabel]}):null,Jt.item.caption?m.jsxs("div",{children:[d("简短说明","Caption"),": ",Jt.item.caption]}):null,Jt.item.sourceFileName?m.jsxs("div",{children:[d("来源文件","Source file"),": ",Jt.item.sourceFileName]}):null,typeof Jt.item.sourcePage=="number"?m.jsxs("div",{children:[d("来源页码","Source page"),": ",Jt.item.sourcePage]}):null]}),m.jsx("div",{className:"flex justify-end",children:m.jsx(ri,{variant:"outline",size:"sm",onClick:()=>window.open(Jt.item.dataUrl,"_blank","noopener,noreferrer"),children:d("在新窗口查看原图","Open full image in new tab")})})]})]})})]})})});if(oe==="generating_content"||oe==="generating_images"){const Y=dt.total>0?dt.current/dt.total:0,he=Math.max(0,Math.min(1,Y)),fe=he*251.2,me=Math.round(he*100);return m.jsx("div",{className:"w-full h-full bg-zinc-50 dark:bg-zinc-900 flex flex-col overflow-hidden",children:m.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:m.jsxs("div",{className:"w-full max-w-md bg-white dark:bg-zinc-800 p-8 rounded-xl shadow-lg text-center space-y-6",children:[m.jsxs("div",{className:"relative w-20 h-20 mx-auto",children:[m.jsxs("svg",{className:"w-full h-full",viewBox:"0 0 100 100",children:[m.jsx("circle",{className:"text-zinc-200 dark:text-zinc-700 stroke-current",strokeWidth:"8",cx:"50",cy:"50",r:"40",fill:"transparent"}),m.jsx("circle",{className:"text-blue-600 stroke-current transition-all duration-300 ease-in-out origin-center -rotate-90",strokeWidth:"8",strokeLinecap:"round",cx:"50",cy:"50",r:"40",fill:"transparent",strokeDasharray:`${fe} 251.2`})]}),m.jsxs("div",{className:"absolute inset-0 flex items-center justify-center text-sm font-bold",children:[me,"%"]})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("h3",{className:"font-semibold text-lg",children:d("AI 正在创作中","AI is creating")}),m.jsx("p",{className:"text-sm text-muted-foreground",children:dt.message||d("正在渲染图片…","Rendering images...")})]}),m.jsx("div",{className:"flex justify-center gap-2 text-xs text-muted-foreground",children:m.jsxs("div",{className:`flex items-center gap-1 ${oe==="generating_images"?"text-blue-600":"text-green-600"}`,children:[oe==="generating_images"?m.jsx(sa,{className:"w-3 h-3 animate-spin"}):m.jsx(qo,{className:"w-3 h-3"}),m.jsx("span",{children:d("渲染图片","Render images")})]})})]})})})}return m.jsxs("div",{className:"w-full h-full bg-zinc-100 dark:bg-zinc-900 flex flex-col",children:[Tr?null:m.jsxs("div",{className:"relative z-50 h-14 px-4 bg-white dark:bg-zinc-800 border-b border-zinc-200 dark:border-zinc-700 flex justify-between items-center shadow-sm",children:[m.jsxs("div",{className:"flex items-center gap-4 [&>h2]:hidden",children:[m.jsx("h2",{className:"hidden font-semibold text-sm text-foreground",children:d("PPT 演示文稿","PPT Deck")}),m.jsx("div",{className:"font-semibold text-sm text-foreground",children:d("PPT 演示文稿","PPT Deck")}),m.jsxs("button",{onClick:Hg,title:d("返回开始","Back to start"),className:"flex items-center gap-2 px-3 py-1.5 bg-zinc-100 dark:bg-zinc-700 hover:bg-zinc-200 dark:hover:bg-zinc-600 text-xs rounded transition-colors shadow-sm",children:[m.jsx(VS,{className:"w-3.5 h-3.5"}),m.jsx("span",{children:d("返回","Back")})]}),m.jsx("h2",{className:"font-semibold text-sm text-foreground",children:d("PPT 演示文稿","PPT Deck")}),m.jsx("div",{className:"h-4 w-px bg-border"}),m.jsxs("div",{ref:Hn,className:"relative z-[60]",children:[m.jsxs("button",{onClick:()=>Cr(Y=>!Y),disabled:Sn.length===0||!!V,title:d("导出","Export"),className:"flex items-center gap-2 px-3 py-1.5 bg-zinc-100 dark:bg-zinc-700 hover:bg-zinc-200 dark:hover:bg-zinc-600 text-xs rounded transition-colors shadow-sm disabled:opacity-60",children:[V?m.jsx(sa,{className:"w-3.5 h-3.5 animate-spin"}):m.jsx(tc,{className:"w-3.5 h-3.5"}),m.jsx("span",{children:V?d("导出中…","Exporting..."):d("导出","Export")})]}),ma&&!V?m.jsxs(Rl.div,{initial:{opacity:0,y:-6},animate:{opacity:1,y:0},transition:{duration:.16,ease:"easeOut"},className:"absolute left-0 top-full z-[70] mt-2 min-w-[190px] rounded-xl border border-zinc-200 bg-white p-2 shadow-xl dark:border-zinc-700 dark:bg-zinc-800",children:[m.jsx("button",{type:"button",className:"flex w-full items-center rounded-lg px-3 py-2 text-left text-xs text-zinc-700 transition-colors hover:bg-zinc-100 dark:text-zinc-100 dark:hover:bg-zinc-700",onClick:()=>{Cr(!1),sv()},children:d("导出 PDF","Export PDF")}),m.jsx("button",{type:"button",className:"flex w-full items-center rounded-lg px-3 py-2 text-left text-xs text-zinc-700 transition-colors hover:bg-zinc-100 dark:text-zinc-100 dark:hover:bg-zinc-700",onClick:()=>{Cr(!1),ov()},children:d("导出图片版 PPT","Export Image PPT")}),m.jsx("button",{type:"button",className:"flex w-full items-center rounded-lg px-3 py-2 text-left text-xs text-zinc-700 transition-colors hover:bg-zinc-100 dark:text-zinc-100 dark:hover:bg-zinc-700",onClick:()=>{Cr(!1),Gg()},children:d("导出可编辑 PPTX","Export Editable PPTX")})]}):null]}),Tr?m.jsxs("button",{onClick:()=>ur(null),title:d("退出编辑器","Exit editor"),className:"flex items-center gap-2 px-3 py-1.5 bg-zinc-100 dark:bg-zinc-700 hover:bg-zinc-200 dark:hover:bg-zinc-600 text-xs rounded transition-colors shadow-sm",children:[m.jsx(VS,{className:"w-3.5 h-3.5"}),m.jsx("span",{children:d("退出编辑器","Exit editor")})]}):null,ne==="beautify"&&m.jsxs("button",{onClick:Md,disabled:au===0||!!dt.message,title:d("重试失败页","Retry failed slides"),className:"flex items-center gap-2 px-3 py-1.5 bg-zinc-100 dark:bg-zinc-700 hover:bg-zinc-200 dark:hover:bg-zinc-600 text-xs rounded transition-colors shadow-sm disabled:opacity-60",children:[m.jsx(yf,{className:"w-3.5 h-3.5"}),m.jsx("span",{children:d("重试失败页","Retry failed")}),au>0?m.jsx("span",{className:"rounded bg-red-100 px-1.5 py-0.5 text-[10px] text-red-700",children:au}):null]})]}),m.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[ne==="beautify"&&au>0?m.jsx("span",{className:"rounded border border-red-200 bg-red-50 px-2 py-1 text-red-700",children:d(`失败 ${au} 页`,`${au} failed`)}):null,ne==="image_transform"&&Ig>0?m.jsx("span",{className:"rounded border border-red-200 bg-red-50 px-2 py-1 text-red-700",children:d(`转化失败 ${Ig} 页`,`${Ig} failed`)}):null,m.jsx("span",{children:Sn.length>0?d(`第 ${v+1} / ${Sn.length} 页`,`Slide ${v+1} / ${Sn.length}`):d("空文档","Empty")})]})]}),Tr?m.jsx("div",{className:"flex-1 overflow-hidden bg-zinc-950",children:m.jsx("iframe",{ref:St,src:`${window.location.protocol}//${window.location.hostname}:8003/?canvasanvil=embedded&session=${wt}`,className:"h-full w-full border-0 bg-white",title:"PPTist Editor",onLoad:()=>{ou(Tr)}},wt)}):m.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[m.jsxs("div",{className:"w-64 bg-zinc-50 dark:bg-zinc-900 border-r border-border overflow-y-auto p-4 space-y-4",children:[Sn.map((Y,he)=>{var Ie;const fe=Er(Y.id),me=ne==="image_transform"?Te[Y.id]:Ae[Y.id];return m.jsxs(Gj,{children:[m.jsx(qj,{asChild:!0,children:m.jsxs("div",{onClick:()=>A(he),className:`cursor-pointer border-2 rounded-lg overflow-hidden relative aspect-[16/9] group transition-all duration-200 ${v===he?"border-blue-600 shadow-md scale-[1.02]":"border-transparent hover:border-zinc-300 dark:hover:border-zinc-700 bg-white dark:bg-zinc-800 shadow-sm"}`,children:[ne!=="image_transform"&&!Nn?m.jsx("div",{className:"absolute top-1 left-1 z-20",onClick:qe=>qe.stopPropagation(),children:m.jsxs(ri,{size:"sm",variant:"destructive",className:"h-6 px-2 text-[10px] gap-1 shadow-sm opacity-0 group-hover:opacity-100 transition-opacity",onClick:()=>Ld(Y),children:[m.jsx(Nf,{className:"w-3 h-3"}),d("加入对话","Add to chat")]})}):null,fe?By(Y,!1,240,135):m.jsxs("div",{className:"w-full h-full p-2 flex flex-col bg-white overflow-hidden text-[6px]",children:[w&&m.jsx("img",{src:w,className:"absolute inset-0 w-full h-full object-cover opacity-20 pointer-events-none",alt:""}),m.jsx("div",{className:"font-bold mb-1 truncate z-10 relative",children:Y.title}),m.jsx("div",{className:"flex-1 space-y-0.5 z-10 relative",children:(Y.content||[]).slice(0,3).map((qe,Be)=>m.jsxs("div",{className:"truncate text-zinc-500",children:["• ",qe]},Be))})]}),m.jsx("div",{className:"absolute bottom-1 right-1 bg-black/60 text-white text-[10px] px-1.5 rounded-sm backdrop-blur-sm",children:he+1}),Nn&&En(Y.id)==="done"?m.jsxs(ri,{size:"sm",variant:"secondary",className:"absolute left-1 top-1 z-20 h-6 gap-1 px-2 text-[10px] shadow-sm",disabled:gc,onClick:qe=>{qe.preventDefault(),qe.stopPropagation(),qg(Y.id)},children:[m.jsx(CB,{className:"h-3 w-3"}),d("重新提取","Re-extract")]}):null,me?m.jsx("div",{className:"absolute top-1 right-1 bg-red-600/90 text-white text-[10px] px-1.5 py-0.5 rounded-sm max-w-[85%] truncate",title:me,children:ne==="image_transform"?d("转化失败","Transform failed"):d("美化失败","Beautify failed")}):null,Nn?m.jsx("div",{className:"absolute bottom-1 left-1 rounded-sm bg-black/60 px-1.5 py-0.5 text-[10px] text-white backdrop-blur-sm",children:En(Y.id)==="done"?d("文字已提取","Text extracted"):En(Y.id)==="extracting"?d("文字提取中","Extracting text"):ua(Y.id)?d("文本框识别中","Preparing text boxes"):((Ie=Wr(Y.id))==null?void 0:Ie.status)==="ready"?d("文本框已就绪","Text boxes ready"):d("待准备","Pending")}):null]})}),ne!=="image_transform"&&!Nn?m.jsx(oE,{children:m.jsxs(sE,{onClick:()=>Ld(Y),className:"gap-2",children:[m.jsx(gb,{className:"w-4 h-4"}),m.jsx("span",{children:d("把此页添加到对话","Add this slide to chat")})]})}):null]},Y.id||he)}),Sn.length===0&&m.jsxs("div",{className:"text-center py-8",children:[m.jsx("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-full bg-muted mb-3",children:m.jsx(Nf,{className:"w-6 h-6 text-muted-foreground"})}),m.jsxs("p",{className:"text-sm text-muted-foreground",children:[u==="zh"?"在右侧对话框中输入需求":"Describe your needs in the chat on the right",m.jsx("br",{}),u==="zh"?"让 AI 为您生成 PPT":"Let AI generate your PPT"]})]})]}),m.jsxs("div",{className:"flex-1 p-4 flex items-center justify-center bg-zinc-200/50 dark:bg-zinc-950/50 overflow-auto relative",children:[m.jsxs("div",{className:"absolute top-4 left-4 z-30 flex items-center gap-2 bg-white/80 dark:bg-zinc-900/70 backdrop-blur rounded-xl border border-border/50 px-3 py-2 shadow-sm",children:[Nn?null:m.jsxs(ri,{size:"sm",className:"h-7 px-2 text-xs",onClick:uu,disabled:!Or||Re,children:[Re?m.jsx(sa,{className:"w-3 h-3 mr-1 animate-spin"}):null,d("重新渲染本页","Regenerate this slide")]}),Or&&xr(Or.id).length>0&&m.jsx("select",{className:"h-7 text-xs rounded-md border border-input bg-background px-2",value:(()=>{const Y=xr(Or.id),he=le[Or.id],fe=[...Y].reverse().find(me=>me.type!=="derived_textless")||Y[Y.length-1];return Y.some(me=>me.id===he)?he:(fe==null?void 0:fe.id)||""})(),onChange:Y=>{const he=Or.id,fe=Y.target.value;xr(he).find(qe=>qe.id===fe)&&G(qe=>({...qe,[he]:fe}))},children:xr(Or.id).map((Y,he)=>m.jsx("option",{value:Y.id,children:Y.type==="derived_textless"?Hy(Y,he):`${Hy(Y,he)} · ${new Date(Y.timestamp).toLocaleString()}`},Y.id))})]}),qy?m.jsxs("div",{className:"absolute top-16 left-4 z-30 max-w-[520px] rounded-lg border border-red-200 bg-red-50/95 px-3 py-2 text-xs text-red-700 shadow-sm",children:[m.jsx("span",{className:"font-medium mr-1",children:ne==="image_transform"?d("本页转化失败:","Slide transform failed:"):d("本页美化失败:","Slide beautify failed:")}),m.jsx("span",{children:qy})]}):null,Or?m.jsxs(Gj,{children:[m.jsx(qj,{asChild:!0,children:m.jsxs("div",{ref:fr,className:"relative w-full max-w-[1100px] bg-white shadow-2xl rounded-sm overflow-hidden flex flex-col transition-transform duration-300 outline-none",style:{aspectRatio:"16/9"},children:[m.jsx(Xj,{slide:Or?ob(Or,{renderLayer:Cs,backgroundImageUrl:Wy||void 0}):null,canvasWidth:Wi.width,canvasHeight:Wi.height,showElements:Nn,showTextElements:!1,showImageElements:!0,showShapeElements:!0,emptyState:m.jsxs("div",{className:"w-full h-full p-12 flex flex-col relative",children:[w&&m.jsx("img",{src:w,className:"absolute inset-0 w-full h-full object-cover opacity-30 pointer-events-none",alt:"Template"}),m.jsxs("div",{className:"relative z-10 h-full flex flex-col",children:[m.jsx("h1",{className:"mb-8 w-fit border-b-4 border-blue-600 pb-4 pr-12 text-4xl font-bold text-zinc-900",children:Or.title}),m.jsx("div",{className:"flex-1 space-y-6",children:(Or.content||[]).map((Y,he)=>m.jsxs("div",{className:"flex items-start gap-4 text-2xl leading-relaxed text-zinc-700",children:[m.jsx("span",{className:"mt-2 text-blue-600",children:"•"}),m.jsx("span",{children:Y})]},he))}),m.jsxs("div",{className:"mt-auto flex justify-between border-t border-zinc-100 pt-8 text-sm text-zinc-400",children:[m.jsx("span",{children:"Generated by Unified AI Workspace"}),m.jsx("span",{children:v+1})]})]})]}),children:Nn&&Wy?C2(Or):null}),(Ai||Re)&&m.jsx("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-white/50 backdrop-blur-[2px]",children:m.jsxs("div",{className:"flex flex-col items-center gap-3 bg-white shadow-xl px-6 py-4 rounded-xl border border-blue-100",children:[m.jsx(sa,{className:"w-6 h-6 text-blue-600 animate-spin"}),m.jsx("span",{className:"text-sm font-medium text-zinc-700",children:d("幻灯片正在生成中...","Generating slides...")})]})})]})}),ne!=="image_transform"&&!Nn?m.jsx(oE,{children:m.jsxs(sE,{onClick:()=>Ld(Or),className:"gap-2",children:[m.jsx(gb,{className:"w-4 h-4"}),m.jsx("span",{children:"把此页添加到对话"})]})}):null]}):m.jsxs("div",{className:"text-muted-foreground flex flex-col items-center",children:[m.jsx(ao,{className:"w-16 h-16 mb-4 opacity-20"}),m.jsx("p",{children:d("暂无幻灯片","No slides yet")})]})]}),Nn?T2():null]}),m.jsx(Uc,{open:tn,onOpenChange:Y=>Y?cn(!0):Nd(),children:m.jsx(Lc,{className:"inset-0 left-0 top-0 translate-x-0 translate-y-0 w-screen h-screen max-w-none sm:max-w-none rounded-none p-0 bg-black/95 border-none",children:m.jsxs("div",{ref:ai,className:"w-full h-full flex flex-col",children:[m.jsxs("div",{className:"h-16 px-6 flex items-center justify-between text-white/90 bg-black/50 backdrop-blur-sm z-50",children:[m.jsx("div",{className:"text-sm font-medium",children:Sn.length>0?`${u==="zh"?"第":"Slide "}${Yt+1} / ${Sn.length}${u==="zh"?" 页":""}`:""}),m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsxs(ri,{variant:"ghost",size:"sm",title:On?d("退出全屏","Exit fullscreen"):d("进入全屏","Enter fullscreen"),className:"text-white hover:text-white hover:bg-white/10 gap-2",onClick:()=>{On?Mg():Xy()},children:[On?m.jsx(aee,{className:"w-4 h-4"}):m.jsx(nee,{className:"w-4 h-4"}),On?d("退出全屏","Exit fullscreen"):d("全屏","Fullscreen")]}),m.jsxs(ri,{variant:"ghost",size:"sm",className:"text-white hover:text-white hover:bg-white/10 gap-2",onClick:Nd,children:[m.jsx(Va,{className:"w-4 h-4"}),d("退出","Close")]})]})]}),m.jsx("div",{className:"flex-1 flex items-center justify-center p-8 overflow-hidden bg-black/90",children:Sn[Yt]?(()=>{const Y=Ir(),he=typeof Y.width=="number"?Y.width:1100,fe=typeof Y.height=="number"?Y.height:619;return m.jsx("div",{className:"relative w-full h-full flex items-center justify-center",children:m.jsx("div",{className:"relative bg-white shadow-2xl overflow-hidden rounded-lg mx-auto",style:{width:Y.width,height:Y.height},children:Er(Sn[Yt].id)?By(Sn[Yt],!1,he,fe):m.jsxs("div",{className:"w-full h-full p-16 flex flex-col",children:[m.jsx("h1",{className:"text-5xl font-bold mb-12 text-zinc-900 border-b-4 border-blue-600 pb-6 w-fit pr-16",children:Sn[Yt].title}),m.jsx("div",{className:"flex-1 space-y-8",children:(Sn[Yt].content||[]).map((me,Ie)=>m.jsxs("div",{className:"flex gap-6 text-3xl text-zinc-700 leading-relaxed items-start",children:[m.jsx("span",{className:"text-blue-600 mt-2",children:"•"}),m.jsx("span",{children:me})]},Ie))}),m.jsxs("div",{className:"mt-auto pt-8 flex justify-between text-lg text-zinc-400 border-t border-zinc-100",children:[m.jsx("span",{children:"Generated by Unified AI Workspace"}),m.jsx("span",{children:Yt+1})]})]})})})})():null}),m.jsxs("div",{className:"h-20 px-4 flex items-center justify-center gap-8 pb-4",children:[m.jsx(ri,{variant:"outline",size:"lg",className:"bg-white/10 border-white/20 text-white hover:bg-white/20 hover:text-white rounded-full w-12 h-12 p-0",onClick:()=>Pr(Y=>(Y-1+Sn.length)%Sn.length),disabled:Sn.length<=1,children:m.jsx(VS,{className:"w-6 h-6"})}),m.jsxs("div",{className:"text-white/50 text-sm font-medium",children:[Yt+1," / ",Sn.length]}),m.jsx(ri,{variant:"outline",size:"lg",className:"bg-white/10 border-white/20 text-white hover:bg-white/20 hover:text-white rounded-full w-12 h-12 p-0",onClick:()=>Pr(Y=>(Y+1)%Sn.length),disabled:Sn.length<=1,children:m.jsx(dQ,{className:"w-6 h-6"})})]})]})})}),m.jsx(Uc,{open:R,onOpenChange:z,children:m.jsxs(Lc,{className:"max-w-md",children:[m.jsx(Ou,{children:m.jsx(ju,{children:d("确认返回开始","Confirm restart")})}),m.jsx("div",{className:"text-sm text-muted-foreground",children:d("返回开始将清空当前 PPT(建议先导出保存)。是否继续?","Restart will clear the current deck (export first if needed). Continue?")}),m.jsxs(mY,{children:[m.jsx(ri,{variant:"outline",onClick:()=>z(!1),children:d("取消","Cancel")}),m.jsx(ri,{variant:"destructive",onClick:()=>{z(!1),ul()},children:d("确认返回","Confirm")})]})]})}),m.jsx(Uc,{open:Jt.open,onOpenChange:Y=>In(he=>({...he,open:Y})),children:m.jsxs(Lc,{className:"w-[92vw] max-w-[92vw] max-h-[92vh] overflow-hidden",children:[m.jsx(Ou,{children:m.jsx(ju,{children:d("素材预览","Material preview")})}),Jt.item&&m.jsxs("div",{className:"space-y-3",children:[m.jsx("div",{className:"h-[72vh] min-h-[360px] w-full overflow-auto rounded-lg border bg-muted/20 flex items-center justify-center",children:m.jsx("img",{src:Jt.item.dataUrl,alt:Jt.item.name,className:"block max-h-full max-w-full object-scale-down"})}),m.jsxs("div",{className:"grid gap-1 text-xs text-muted-foreground",children:[m.jsxs("div",{children:[d("所在幻灯片","Slide"),": ",Jt.slideTitle||"-"]}),m.jsxs("div",{children:[d("素材编号","Material label"),": ",Jt.item.name]}),Jt.item.refLabel?m.jsxs("div",{children:[d("来源标签","Reference label"),": ",Jt.item.refLabel]}):null,Jt.item.caption?m.jsxs("div",{children:[d("简短说明","Caption"),": ",Jt.item.caption]}):null,Jt.item.sourceFileName?m.jsxs("div",{children:[d("来源文件","Source file"),": ",Jt.item.sourceFileName]}):null,typeof Jt.item.sourcePage=="number"?m.jsxs("div",{children:[d("来源页码","Source page"),": ",Jt.item.sourcePage]}):null]}),m.jsx("div",{className:"flex justify-end",children:m.jsx(ri,{variant:"outline",size:"sm",onClick:()=>window.open(Jt.item.dataUrl,"_blank","noopener,noreferrer"),children:d("在新窗口查看原图","Open full image in new tab")})})]})]})})]})}const W8e=FN,V8e=RN,G8e=PN,bY=N.forwardRef(({className:e,sideOffset:t=4,...n},r)=>m.jsx(by,{ref:r,sideOffset:t,className:gt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));bY.displayName=by.displayName;function Iu({tooltipContent:e,children:t,...n}){return m.jsx(W8e,{children:m.jsxs(V8e,{children:[m.jsx(G8e,{asChild:!0,children:m.jsx(ri,{...n,children:t})}),m.jsx(bY,{className:"max-w-xs text-wrap",children:e})]})})}function q8e(e){return e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function H8e({files:e,onRemoveFile:t,pdfData:n=new Map}){const[r,i]=N.useState(null),[a,o]=N.useState(new Map),s=N.useRef(new Map);return N.useEffect(()=>{const l=s.current,c=new Map;e.forEach(u=>{if(u.type.startsWith("image/")){const d=l.get(u);d?c.set(u,d):c.set(u,URL.createObjectURL(u))}}),l.forEach((u,d)=>{c.has(d)||URL.revokeObjectURL(u)}),s.current=c,o(c)},[e]),N.useEffect(()=>()=>{s.current.forEach(l=>{URL.revokeObjectURL(l)}),s.current=new Map},[]),N.useEffect(()=>{r&&!Array.from(a.values()).includes(r)&&i(null)},[a,r]),e.length===0?null:m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"flex flex-wrap gap-2 mt-2 p-2 bg-muted/50 rounded-md",children:e.map((l,c)=>{const u=a.get(l)||null,d=n.get(l),h=l.type.startsWith("image/"),f=ay(l),g=S2(l),y=d!=null&&d.isExtracting?"Reading...":d!=null&&d.charCount?`${q8e(d.charCount)} chars`:f?"PDF":g?"Text":"";return m.jsx("div",{className:"group",children:m.jsxs("div",{className:"flex items-center gap-2.5 w-[260px] max-w-full border rounded-lg overflow-hidden bg-background/70 px-3 py-2",children:[m.jsx("div",{className:`h-11 w-11 rounded-md overflow-hidden bg-muted flex items-center justify-center ${h&&u?"cursor-pointer":""}`,onClick:()=>{h&&u&&i(u)},children:h&&u?m.jsx("img",{src:u,alt:l.name,className:"object-cover w-full h-full"}):m.jsx(m.Fragment,{children:d!=null&&d.isExtracting?m.jsx(sa,{className:"h-5 w-5 text-blue-500 animate-spin"}):f?m.jsx(Oi,{className:"h-5 w-5 text-red-500"}):m.jsx(eu,{className:"h-5 w-5 text-blue-500"})})}),m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsx("div",{className:"text-xs font-medium truncate",children:l.name}),y?m.jsx("div",{className:"text-[10px] text-muted-foreground truncate",children:y}):null]}),m.jsx("button",{type:"button",onClick:()=>t(l),className:"shrink-0 rounded-md p-1 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors","aria-label":"Remove file",children:m.jsx(Va,{className:"h-4 w-4"})})]})},l.name+c)})}),r&&m.jsxs("div",{className:"fixed inset-0 z-50 bg-black/80 flex items-center justify-center p-4",onClick:()=>i(null),children:[m.jsx("button",{className:"absolute top-4 right-4 z-10 bg-white rounded-full p-2 hover:bg-gray-200 transition-colors",onClick:()=>i(null),"aria-label":"Close",children:m.jsx(Va,{className:"h-6 w-6"})}),m.jsx("div",{className:"relative w-auto h-auto max-w-[90vw] max-h-[90vh]",children:m.jsx("img",{src:r,alt:"Full size preview of uploaded diagram or image",className:"object-contain max-w-full max-h-[90vh] w-auto h-auto",onClick:l=>l.stopPropagation()})})]})]})}function AY({input:e,setInput:t,onSubmit:n,isLoading:r,onStop:i,onClearChat:a,onToggleHistory:o,historyDisabled:s=!1,onFilesChange:l,files:c,placeholder:u,topChips:d,bottomChips:h,focusKey:f,richSegments:g,onRichSegmentsChange:y,insertPptToken:v,onInsertPptTokenHandled:A,clearKey:w,uploadMode:S="all"}){const _=pa(),E=N.useRef(null),T=N.useRef(null),D=N.useRef(null),I=N.useRef(null),j=N.useRef(null),R=N.useRef(""),[z,B]=N.useState(!1),{files:W,handleFileChange:P,setFiles:Z,pdfData:Q}=x$(),X=!!(g&&y);N.useEffect(()=>{c&&Z(c)},[c,Z]),N.useEffect(()=>{l==null||l(W)},[W,l]);const q=ve=>{ve.key==="Enter"&&!ve.shiftKey&&(ve.preventDefault(),r?i==null||i():n())},te=N.useCallback(()=>{if(X)return;const ve=E.current;ve&&(ve.style.height="auto",ve.style.height=`${Math.min(ve.scrollHeight,200)}px`)},[X]);N.useEffect(()=>{te()},[e,X,u,te]),N.useEffect(()=>{if(X)return;const ve=E.current;if(!ve)return;let oe=0;const re=()=>{oe&&cancelAnimationFrame(oe),oe=requestAnimationFrame(()=>{oe=0,te()})};if(re(),typeof ResizeObserver<"u"){const ne=new ResizeObserver(()=>re());return ne.observe(ve),ne.observe(ve.parentElement??ve),()=>{oe&&cancelAnimationFrame(oe),ne.disconnect()}}return window.addEventListener("resize",re),()=>{oe&&cancelAnimationFrame(oe),window.removeEventListener("resize",re)}},[X,te]),N.useEffect(()=>{var ve,oe;f!==void 0&&(X?(ve=T.current)==null||ve.focus():(oe=E.current)==null||oe.focus())},[f]),N.useEffect(()=>{if(w===void 0||!X)return;const ve=T.current;ve&&(D.current=null,ve.innerHTML="",ve.appendChild(document.createTextNode("")),R.current="",y==null||y([{type:"text",text:""}]))},[w,X]);const J=ve=>ve.map(oe=>oe.type==="text"?`t:${oe.text}`:`p:${oe.tokenKind}:${oe.slideId}:${oe.tag}`).join("|"),ee=ve=>{const oe=ve.tokenKind==="outline",re=document.createElement("span");re.setAttribute("data-token","ppt"),re.setAttribute("data-slide-id",ve.slideId),re.setAttribute("data-label",ve.label),re.setAttribute("data-tag",ve.tag),re.setAttribute("data-token-kind",ve.tokenKind),re.setAttribute("contenteditable","false"),re.className=oe?"inline-flex items-center gap-1.5 rounded-full border border-blue-200 bg-blue-50 px-2 py-0.5 text-xs font-medium text-blue-700 dark:border-blue-400/30 dark:bg-blue-950/40 dark:text-blue-200 align-middle":"inline-flex items-center gap-1.5 rounded-full border border-red-200 bg-red-50 px-2 py-0.5 text-xs font-medium text-red-700 dark:border-red-400/30 dark:bg-red-950/40 dark:text-red-200 align-middle";const ne=document.createElement("span");ne.className=oe?"inline-flex h-4 w-4 items-center justify-center rounded-full bg-blue-600 text-[10px] font-semibold text-white":"inline-flex h-4 w-4 items-center justify-center rounded-full bg-red-600 text-[10px] font-semibold text-white",ne.textContent=oe?"T":"P";const be=document.createElement("span");return be.textContent=ve.label,re.appendChild(ne),re.appendChild(be),re},le=ve=>{const oe=T.current;if(oe){oe.innerHTML="";for(const re of ve){if(re.type==="text"){const ne=String(re.text||"").split(`-`);for(let be=0;be<ne.length;be+=1)ne[be]&&oe.appendChild(document.createTextNode(ne[be])),be<ne.length-1&&oe.appendChild(document.createElement("br"));continue}oe.appendChild(ee(re)),oe.appendChild(document.createTextNode(" "))}oe.lastChild||oe.appendChild(document.createTextNode(""))}},G=()=>{const ve=T.current;if(!ve)return[{type:"text",text:""}];const oe=[],re=ne=>{if(!ne)return;const be=oe[oe.length-1];(be==null?void 0:be.type)==="text"?be.text+=ne:oe.push({type:"text",text:ne})};for(const ne of Array.from(ve.childNodes)){if(ne.nodeType===Node.TEXT_NODE){re(ne.textContent||"");continue}if(ne.nodeType!==Node.ELEMENT_NODE)continue;const be=ne;if(be.tagName==="BR"){re(`-`);continue}if(be.getAttribute("data-token")==="ppt"){const Me=be.getAttribute("data-slide-id")||"",Ee=be.getAttribute("data-label")||be.textContent||"",Se=be.getAttribute("data-tag")||"",Ce=be.getAttribute("data-token-kind"),pe=Ce==="outline"||Ce==="slide_image"?Ce:"slide_image";Me&&Se&&oe.push({type:"ppt",slideId:Me,label:Ee,tag:Se,tokenKind:pe});continue}re(be.textContent||"")}return oe.length===0?[{type:"text",text:""}]:oe},xe=()=>{if(!X)return;const ve=G(),oe=J(ve);oe!==R.current&&(R.current=oe,y==null||y(ve))};N.useEffect(()=>{if(!X)return;const ve=g||[{type:"text",text:""}],oe=J(ve);oe!==R.current&&(R.current=oe,!z&&le(ve))},[X,g,z]);const ge=(ve,oe,re,ne)=>{const be=T.current;if(!be)return;be.focus();const Ue=window.getSelection();let Me=Ue&&Ue.rangeCount>0?Ue.getRangeAt(0):null;(!Me||!be.contains(Me.startContainer))&&(Me=D.current),(!Me||!be.contains(Me.startContainer))&&(Me=document.createRange(),Me.selectNodeContents(be),Me.collapse(!1));const Ee=ee({slideId:ve,label:oe,tag:re,tokenKind:ne}),Se=document.createTextNode(" ");Me.insertNode(Se),Me.insertNode(Ee),Me.setStartAfter(Se),Me.collapse(!0),Ue&&(Ue.removeAllRanges(),Ue.addRange(Me)),D.current=Me,xe()};N.useEffect(()=>{X&&v&&(ge(v.slideId,v.label,v.tag,v.tokenKind),A==null||A())},[X,v==null?void 0:v.key]);const ue=N.useMemo(()=>(g||[]).map(oe=>oe.type==="text"?oe.text:oe.label).join("").replace(/[ \t]+\n/g,`-`),[g]),ce=X&&!ue.trim()&&!z,ye=ve=>S==="imagesOnly"?ve.filter(oe=>oe.type.startsWith("image/")):S==="filesOnly"?ve.filter(oe=>!oe.type.startsWith("image/")):ve,Fe=ve=>{if(S==="none")return;const oe=ve.clipboardData.items,re=[];for(let ne=0;ne<oe.length;ne++)if(oe[ne].kind==="file"){const be=oe[ne].getAsFile();be&&re.push(be)}if(re.length>0){const ne=ye(re);if(ne.length===0)return;ve.preventDefault(),P([...W,...ne])}},Oe=ve=>{if(ve.preventDefault(),S==="none")return;const oe=Array.from(ve.dataTransfer.files),re=ye(oe);re.length>0&&P([...W,...re])},Le=()=>{var ve;return(ve=j.current)==null?void 0:ve.click()},Re=()=>{var ve;return(ve=I.current)==null?void 0:ve.click()},We=ve=>{var oe;if((oe=ve.target.files)!=null&&oe.length){const re=Array.from(ve.target.files),ne=ye(re);ne.length>0&&P([...W,...ne]),ve.target.value=""}},V=ve=>{Z(W.filter(oe=>oe!==ve))};return m.jsxs("div",{className:"relative rounded-2xl border border-border bg-background shadow-sm focus-within:ring-2 focus-within:ring-primary/20 focus-within:border-primary/50 transition-all duration-200",onDragOver:ve=>ve.preventDefault(),onDrop:Oe,children:[(S==="all"||S==="imagesOnly")&&m.jsx("input",{type:"file",multiple:!0,accept:"image/*",className:"hidden",ref:j,onChange:We}),(S==="all"||S==="filesOnly")&&m.jsx("input",{type:"file",multiple:!0,accept:S==="filesOnly"?".pdf,application/pdf,text/*,.txt,.md,.markdown,.json,.csv,.xml,.yaml,.yml,.toml":"image/*,.pdf,application/pdf,text/*,.txt,.md,.markdown,.json,.csv,.xml,.yaml,.yml,.toml",className:"hidden",ref:I,onChange:We}),W.length>0&&m.jsx("div",{className:"px-3 pt-3",children:m.jsx(H8e,{files:W,onRemoveFile:V,pdfData:Q})}),d&&m.jsx("div",{className:"px-3 pt-3",children:d}),m.jsx("div",{className:"px-3 pt-2",children:X?m.jsxs("div",{className:"relative",children:[ce&&m.jsx("div",{className:"pointer-events-none absolute left-1 top-2 text-[15px] leading-6 text-muted-foreground/60",children:u||"Type your message..."}),m.jsx("div",{ref:T,contentEditable:!0,suppressContentEditableWarning:!0,onKeyDown:ve=>{if(ve.key==="Enter"&&!ve.shiftKey){ve.preventDefault(),r?i==null||i():n();return}if(ve.key==="Backspace"||ve.key==="Delete"){const oe=T.current;if(!oe)return;const re=window.getSelection();if(!re||re.rangeCount===0)return;const ne=re.getRangeAt(0);if(!oe.contains(ne.startContainer)||!ne.collapsed)return;const be=ne.startContainer,Ue=ne.startOffset,Me=Ee=>!Ee||Ee.getAttribute("data-token")!=="ppt"?!1:(Ee.remove(),xe(),!0);if(be.nodeType===Node.TEXT_NODE){if(ve.key==="Backspace"&&Ue===0){const Ee=be.previousSibling;if(Ee&&Ee.nodeType===Node.ELEMENT_NODE&&Me(Ee)){ve.preventDefault();return}}if(ve.key==="Delete"&&Ue===be.data.length){const Ee=be.nextSibling;if(Ee&&Ee.nodeType===Node.ELEMENT_NODE&&Me(Ee)){ve.preventDefault();return}}}else if(be.nodeType===Node.ELEMENT_NODE){const Se=be.childNodes[Ue+(ve.key==="Backspace"?-1:0)];if(Se&&Se.nodeType===Node.ELEMENT_NODE&&Me(Se)){ve.preventDefault();return}}}},onPaste:Fe,onFocus:()=>B(!0),onBlur:()=>{var oe;B(!1);const ve=window.getSelection();if(ve&&ve.rangeCount>0){const re=ve.getRangeAt(0);(oe=T.current)!=null&&oe.contains(re.startContainer)&&(D.current=re)}xe()},onInput:()=>xe(),onKeyUp:()=>{var oe;const ve=window.getSelection();if(ve&&ve.rangeCount>0){const re=ve.getRangeAt(0);(oe=T.current)!=null&&oe.contains(re.startContainer)&&(D.current=re)}},onMouseUp:()=>{var oe;const ve=window.getSelection();if(ve&&ve.rangeCount>0){const re=ve.getRangeAt(0);(oe=T.current)!=null&&oe.contains(re.startContainer)&&(D.current=re)}},className:gt("w-full bg-transparent border-none px-1 py-2 focus:ring-0 transition-all outline-none text-[15px] leading-6 max-h-[360px] overflow-y-auto min-h-[48px] whitespace-pre-wrap break-words")})]}):m.jsx("textarea",{ref:E,value:e,onChange:ve=>t(ve.target.value),onKeyDown:q,onPaste:Fe,placeholder:u||"Type your message...",className:gt("w-full resize-none bg-transparent border-none px-1 py-2 focus:ring-0 transition-all outline-none text-[15px] leading-6 max-h-[360px] overflow-y-auto min-h-[48px]"),rows:1})}),h&&m.jsx("div",{className:"px-3 pb-2",children:h}),m.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-t border-border/50",children:[m.jsx("div",{className:"flex items-center gap-1",children:a&&m.jsx(Iu,{tooltipContent:an(_,"chat.clearChatTitle"),variant:"ghost",size:"sm",onClick:a,className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive hover:bg-destructive/10",children:m.jsx(Zf,{className:"h-4 w-4"})})}),m.jsxs("div",{className:"flex items-center gap-1",children:[o&&m.jsx(Iu,{tooltipContent:an(_,"chat.historyTitle"),variant:"ghost",size:"sm",onClick:o,disabled:s,className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",children:m.jsx(pE,{className:"h-4 w-4"})}),(S==="all"||S==="imagesOnly")&&m.jsx(Iu,{tooltipContent:an(_,"chat.uploadImage"),variant:"ghost",size:"sm",onClick:Le,className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",children:m.jsx(ao,{className:"h-4 w-4"})}),(S==="all"||S==="filesOnly")&&m.jsx(Iu,{tooltipContent:an(_,"chat.uploadFile"),variant:"ghost",size:"sm",onClick:Re,className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",children:m.jsx(Oi,{className:"h-4 w-4"})}),m.jsx("div",{className:"w-px h-5 bg-border mx-1"}),(()=>{const ve=X?ue.trim().length>0:e.trim().length>0,oe=W.length>0;return r?m.jsx(Iu,{tooltipContent:an(_,"chat.stop"),variant:"default",size:"sm",onClick:re=>{re.preventDefault(),i==null||i()},disabled:!i,className:"h-8 w-8 p-0 rounded-xl shadow-sm","aria-label":an(_,"chat.stop"),children:m.jsx(AE,{className:"h-3.5 w-3.5 fill-current"})}):m.jsx(Iu,{type:"button",onClick:n,tooltipContent:an(_,"chat.send"),disabled:!ve&&!oe,variant:"default",size:"sm",className:gt("h-8 w-8 p-0 rounded-xl shadow-sm",!ve&&!oe?"opacity-60":""),"aria-label":an(_,"chat.send"),children:m.jsx(bE,{className:"h-4 w-4"})})})()]})]})]})}const X8e=nF,Z8e=Iw,K8e=Mw,$8e=({children:e,as:t="p",className:n,duration:r=2,spread:i=2})=>{const a=Rl.create(t),o=N.useMemo(()=>((e==null?void 0:e.length)??0)*i,[e,i]);return m.jsx(a,{animate:{backgroundPosition:"0% center"},className:gt("relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent","[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",n),initial:{backgroundPosition:"100% center"},style:{"--spread":`${o}px`,backgroundImage:"var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))"},transition:{repeat:Number.POSITIVE_INFINITY,duration:r,ease:"linear"},children:e})},Y8e=N.memo($8e),wY=N.createContext(null),J8e=()=>{const e=N.useContext(wY);if(!e)throw new Error("Reasoning components must be used within Reasoning");return e},Q8e=1e3,e4e=1e3,SY=N.memo(({className:e,isStreaming:t=!1,open:n,defaultOpen:r=!0,onOpenChange:i,duration:a,children:o,...s})=>{const[l,c]=tl({prop:n,defaultProp:r,onChange:i}),[u,d]=tl({prop:a,defaultProp:void 0}),[h,f]=N.useState(!1),[g,y]=N.useState(null);N.useEffect(()=>{t?g===null&&y(Date.now()):g!==null&&(d(Math.ceil((Date.now()-g)/e4e)),y(null))},[t,g,d]),N.useEffect(()=>{if(r&&!t&&l&&!h){const A=setTimeout(()=>{c(!1),f(!0)},Q8e);return()=>clearTimeout(A)}},[t,l,r,c,h]);const v=A=>{c(A)};return m.jsx(wY.Provider,{value:{isStreaming:t,isOpen:l,setIsOpen:c,duration:u},children:m.jsx(X8e,{className:gt("not-prose mb-4",e),onOpenChange:v,open:l,...s,children:o})})}),t4e=(e,t)=>e||t===0?m.jsx(Y8e,{duration:1,children:"Thinking..."}):t===void 0?m.jsx("p",{children:"Thought for a few seconds"}):m.jsxs("p",{children:["Thought for ",t," seconds"]}),kY=N.memo(({className:e,children:t,getThinkingMessage:n=t4e,...r})=>{const{isStreaming:i,isOpen:a,duration:o}=J8e();return m.jsx(Z8e,{className:gt("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...r,children:t??m.jsxs(m.Fragment,{children:[m.jsx(SA,{className:"size-4"}),n(i,o),m.jsx(Wo,{className:gt("size-4 transition-transform",a?"rotate-180":"rotate-0")})]})})}),DY=N.memo(({className:e,children:t,...n})=>m.jsx(K8e,{className:gt("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n,children:m.jsx("div",{className:"whitespace-pre-wrap",children:t})}));SY.displayName="Reasoning";kY.displayName="ReasoningTrigger";DY.displayName="ReasoningContent";function gR({className:e,children:t,...n}){return m.jsxs(oF,{"data-slot":"scroll-area",className:gt("relative",e),...n,children:[m.jsx(sF,{"data-slot":"scroll-area-viewport",className:"ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 !overflow-x-hidden",children:t}),m.jsx(n4e,{}),m.jsx(lF,{})]})}function n4e({className:e,orientation:t="vertical",...n}){return m.jsx(Uw,{"data-slot":"scroll-area-scrollbar",orientation:t,className:gt("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:m.jsx(Lw,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}const pT=new Map;function r4e({code:e,language:t="xml",isStreaming:n=!1,blockId:r}){const[i,a]=N.useState(()=>r&&pT.has(r)?!!pT.get(r):!1),o=N.useRef(null),s=N.useMemo(()=>(t||"text").toLowerCase(),[t]),l=N.useMemo(()=>String(e??""),[e]),c=N.useMemo(()=>{const d=s;return d==="svg"?"xml":d==="yml"?"yaml":d==="shell"||d==="sh"||d==="zsh"?"bash":d==="ts"?"typescript":d==="tsx"?"tsx":d==="js"?"javascript":d==="md"?"markdown":new Set(["text","xml","json","javascript","typescript","tsx","jsx","python","bash","yaml","markdown","css","html"]).has(d)?d:"text"},[s]),u=d=>{a(d),r&&pT.set(r,d)};return m.jsxs("div",{className:"w-full my-2 border border-border/50 rounded-lg bg-zinc-50 dark:bg-zinc-900/40 overflow-hidden shadow-sm",children:[m.jsxs("button",{type:"button",onClick:()=>u(!i),className:"flex items-center gap-2 w-full p-2.5 cursor-pointer hover:bg-zinc-100 dark:hover:bg-zinc-800/40 transition-colors text-xs font-medium text-zinc-600 dark:text-zinc-300 select-none bg-zinc-100/70 dark:bg-zinc-900/60",children:[m.jsx(dE,{className:gt("w-4 h-4 transition-transform duration-200 text-zinc-600 dark:text-zinc-300",i&&"rotate-90")}),m.jsx("span",{className:"uppercase font-semibold tracking-wider text-zinc-700 dark:text-zinc-200",children:s}),n?m.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[m.jsx("span",{className:"text-[10px] text-blue-600 animate-pulse",children:"Generating code..."}),m.jsx(sa,{className:"w-3.5 h-3.5 animate-spin text-blue-600"})]}):m.jsxs("span",{className:"ml-auto text-[10px] opacity-70 font-mono",children:[l.length," chars"]})]}),i&&m.jsx("div",{className:"p-0 border-t border-border/50",children:m.jsx("div",{className:"overflow-hidden w-full bg-zinc-50 dark:bg-zinc-900/40",children:m.jsx(uF,{theme:Ww.github,code:l,language:c,children:({style:d,tokens:h,getLineProps:f,getTokenProps:g})=>m.jsx("pre",{ref:o,className:"text-[11px] leading-relaxed overflow-x-hidden overflow-y-auto overscroll-contain max-h-[500px] scrollbar-thin p-3 whitespace-pre-wrap break-words",style:{...d,fontFamily:"var(--font-mono), ui-monospace, monospace",backgroundColor:"transparent",margin:0},onWheelCapture:y=>{const v=o.current;if(!v)return;const A=v.scrollTop<=0,w=v.scrollTop+v.clientHeight>=v.scrollHeight-1,S=y.deltaY;S>0&&!w&&y.stopPropagation(),S<0&&!A&&y.stopPropagation()},children:h.map((y,v)=>{const A=f({line:y});return m.jsxs("div",{...A,className:gt("grid grid-cols-[3.25rem_1fr] gap-0",A==null?void 0:A.className),children:[m.jsx("span",{className:"select-none text-zinc-400 text-right pr-4",children:v+1}),m.jsx("span",{className:"min-w-0 whitespace-pre-wrap break-words",children:y.map((w,S)=>m.jsx("span",{...g({token:w})},S))})]},v)})})})})})]})}function iB(e){const t=[],n=/\[(PDF|File):\s*([^\]]+)\]\n([\s\S]*?)(?=\n\n\[(PDF|File):|$)/g;let r=0,i;for(;(i=n.exec(e))!==null;){const o=e.slice(r,i.index).trim();o&&t.push({type:"text",content:o});const s=i[1].toLowerCase()==="pdf"?"pdf":"text",l=i[2].trim(),c=i[3].trim();t.push({type:"file",content:c,filename:l,charCount:c.length,fileType:s}),r=i.index+i[0].length}const a=e.slice(r).trim();return a&&t.push({type:"text",content:a}),t.length===0&&t.push({type:"text",content:e}),t}function aB(e){const t=String(e||"").split(/\r?\n/),n=[],r=[];for(const a of t){const o=a.match(/^\[\[PPT_SLIDE\|(\d+)\|([^|]*)\|(outline|slide_image)\]\]$/);if(o){const l=Number(o[1]),c=String(o[2]||"").trim(),u=o[3];Number.isNaN(l)||n.push({n:l,title:c||void 0,kind:u});continue}const s=a.match(/^\[\[PPT_SLIDE\|(\d+)\|(.*)\]\]$/);if(s){const l=Number(s[1]),c=String(s[2]||"").trim();Number.isNaN(l)||n.push({n:l,title:c||void 0,kind:"slide_image"});continue}r.push(a)}const i=r.join(`-`).replace(/^\s+|\s+$/g,"");return{tags:n,rest:i}}function oB(e){const t=String(e||"").split(/\r?\n/),n=[],r=[];for(const a of t){const o=a.match(/^\[\[IMAGE\|([^|]*)\|([\s\S]+)\]\]$/);if(o){const s=String(o[1]||"").trim(),l=String(o[2]||"").trim();if(l.startsWith("data:image")||l.startsWith("blob:")||l.startsWith("http://")||l.startsWith("https://")){n.push({name:s||void 0,url:l});continue}}r.push(a)}const i=r.join(`-`).replace(/^\s+|\s+$/g,"");return{images:n,rest:i}}function sB(e){const t=String(e||""),n=[],r=/\[\[PPT_SLIDE\|(\d+)\|([\s\S]*?)\]\]/g;let i=0,a;for(;a=r.exec(t);){const s=t.slice(i,a.index);s&&n.push({type:"text",text:s});const l=Number(a[1]),c=String(a[2]||"").trim();if(Number.isNaN(l))n.push({type:"text",text:a[0]});else{let u="slide_image",d=c;const h=c.split("|");if(h.length>=2){const f=h[h.length-1].trim();(f==="outline"||f==="slide_image")&&(u=f,d=h.slice(0,-1).join("|").trim())}n.push({type:"ppt",n:l,title:d||void 0,kind:u})}i=a.index+a[0].length}const o=t.slice(i);return o&&n.push({type:"text",text:o}),n.length===0&&n.push({type:"text",text:t}),n}const yp=e=>e.parts&&e.parts.length>0?e.parts.filter(t=>t.type==="text").map(t=>t.text||"").join(`-`):e.content||"",ub=e=>{const t=yp(e),n=/\n\n\[(PDF|File):\s*[^\]]+\]\n[\s\S]*$/;return t.replace(n,"").trim()};function lB(e){const t=String(e||"").trim();if(!t)return null;const n=t.match(/```(?:json)?\s*([\s\S]*?)\s*```/i),r=((n==null?void 0:n[1])??t).trim();let i;try{i=JSON.parse(r)}catch{return null}if(Array.isArray(i))return{type:"ppt_edit",slides:i.filter(l=>l&&typeof l=="object")};if(!i||typeof i!="object")return null;const a=String(i.type||"").trim().toLowerCase();if(a&&a!=="ppt_edit")return null;const o="ppt_edit",s=Array.isArray(i.slides)?i.slides.filter(l=>l&&typeof l=="object"):[];return s.length>0?{type:o,slides:s}:null}function i4e(e,t){const r=String((e==null?void 0:e.id)||"").match(/slide-(\d+)/i);if(r){const i=Number(r[1]);if(!Number.isNaN(i))return i}return t+1}function a4e(e){const t=["title","description","layout","note","content"],n=[];for(const r of t){if(!(r in e))continue;const i=e[r];if(Array.isArray(i)){const a=i.map(o=>String(o||"").trim()).filter(Boolean).join(";");n.push({key:r,value:a||"(空)"});continue}if(i&&typeof i=="object"){n.push({key:r,value:JSON.stringify(i)});continue}n.push({key:r,value:String(i??"").trim()||"(空)"})}for(const[r,i]of Object.entries(e))r==="id"||t.includes(r)||i!==void 0&&n.push({key:r,value:typeof i=="string"?i:JSON.stringify(i)});return n}function o4e(e,t){const r={title:{zh:"标题",en:"Title"},description:{zh:"画面描述",en:"Description"},layout:{zh:"布局",en:"Layout"},note:{zh:"备注",en:"Note"},content:{zh:"内容",en:"Content"}}[e];return r?t==="zh"?r.zh:r.en:e}function CY({messages:e,setInput:t,onRegenerate:n,onEditMessage:r,status:i="idle",onDisplayChart:a}){const o=pa(),s=(P,Z)=>o==="zh"?P:Z,l=N.useRef(null),c=N.useRef(null),[u,d]=N.useState(null),[h,f]=N.useState(null),g=N.useRef(null),[y,v]=N.useState(""),[A,w]=N.useState({}),[S,_]=N.useState({}),[E,T]=N.useState(!0),D=N.useRef(null),I=N.useRef(!1),j=N.useRef(0),R=N.useRef(0),z=async(P,Z)=>{try{await navigator.clipboard.writeText(Z),d(P),setTimeout(()=>d(null),2e3)}catch{const X=document.createElement("textarea");X.value=Z,X.style.position="fixed",X.style.left="-9999px",X.style.opacity="0",document.body.appendChild(X);try{if(X.select(),!document.execCommand("copy"))throw new Error("Copy command failed");d(P),setTimeout(()=>d(null),2e3)}catch(q){console.error("Failed to copy message:",q)}finally{document.body.removeChild(X)}}},B=N.useCallback(()=>{const P=l.current;return P?P.querySelector('[data-slot="scroll-area-viewport"]')||P.querySelector("[data-radix-scroll-area-viewport]"):null},[]),W=N.useCallback((P="auto")=>{var Q;const Z=B();if(!Z){(Q=c.current)==null||Q.scrollIntoView({behavior:P});return}Z.scrollTo({top:Z.scrollHeight,behavior:P})},[B]);return N.useEffect(()=>{let P=!0,Z=null,Q=0;const X=()=>{if(!P)return;const q=B();if(!q){Q=requestAnimationFrame(X);return}const te=24,J=()=>{const G=q.scrollHeight-q.scrollTop-q.clientHeight<=te,xe=q.scrollTop,ge=xe<j.current;j.current=xe,G?I.current=!1:ge&&(I.current=!0),T(G)},ee=le=>{le.deltaY<0&&(I.current=!0,T(!1))};j.current=q.scrollTop,J(),q.addEventListener("scroll",J,{passive:!0}),q.addEventListener("wheel",ee,{passive:!0}),Z=()=>{q.removeEventListener("scroll",J),q.removeEventListener("wheel",ee)}};return X(),()=>{P=!1,Q&&cancelAnimationFrame(Q),Z&&Z()}},[B,e.length]),N.useEffect(()=>()=>{D.current!==null&&(typeof cancelAnimationFrame=="function"?cancelAnimationFrame(D.current):typeof window<"u"&&window.clearTimeout(D.current),D.current=null)},[]),N.useEffect(()=>{if(!E||I.current||D.current!==null)return;const P=R.current,Z=e.length;if(!(Z!==P)&&i==="streaming")return;const X=i==="streaming"?"auto":"smooth",q=te=>typeof requestAnimationFrame=="function"?requestAnimationFrame(te):typeof window<"u"?window.setTimeout(te,16):0;D.current=q(()=>{D.current=null,W(X)}),R.current=Z},[e.length,i,E,W]),N.useEffect(()=>{h&&g.current&&g.current.focus()},[h]),N.useEffect(()=>{const P=e[e.length-1];if(P&&P.role==="assistant"&&a){const Q=yp(P).match(/```xml\n([\s\S]*?)\n```/);Q&&Q[1]}},[e,a]),m.jsxs("div",{ref:l,className:"h-full w-full relative",onWheelCapture:P=>{P.deltaY<0&&(I.current=!0,T(!1))},children:[m.jsx(gR,{className:"h-full w-full scrollbar-thin",children:m.jsxs("div",{className:"py-5 px-5 space-y-5",children:[e.map((P,Z)=>{var We;const Q=P.role==="user"?yp(P):"",X=P.role==="assistant"&&(Z===e.length-1||e.slice(Z+1).every(V=>V.role!=="assistant")),q=P.role==="user"&&(Z===e.length-1||e.slice(Z+1).every(V=>V.role!=="user")),te=h===P.id,J=yp(P),{images:ee,rest:le}=oB(J),{tags:G,rest:xe}=aB(le),ge=iB(xe),ue=ge.some(V=>V.type==="text"&&String(V.content||"").trim().length>0),ce=ge.some(V=>V.type==="file"&&String(V.content||"").trim().length>0),ye=ge.some(V=>V.type==="text"&&!!lB(String(V.content||""))),Fe=(P.parts||[]).some(V=>(V==null?void 0:V.type)==="reasoning"&&String(V.text||"").trim().length>0),Oe=ee.length>0||G.length>0||ue||ce||ye||Fe,Le=P.role==="assistant"&&!Oe,Re=P.role==="user"&&q&&(i==="submitted"||i==="streaming");return Le?null:m.jsxs(Dt.Fragment,{children:[m.jsx("div",{className:`flex w-full ${P.role==="user"?"justify-end":"justify-start"}`,children:m.jsxs("div",{className:gt("min-w-0 flex flex-col",P.role==="assistant"?"w-full max-w-[95%] items-start":"max-w-[95%] items-end"),children:[m.jsxs("div",{className:gt("relative px-4 py-3 text-sm leading-relaxed break-words overflow-hidden border border-border/50 bg-background/70 backdrop-blur-md shadow-sm transition-shadow hover:shadow-md",P.role==="user"?"text-foreground rounded-2xl rounded-tr-sm w-full cursor-pointer":"text-foreground rounded-2xl rounded-tl-sm w-full"),role:P.role==="user"&&q&&r?"button":void 0,tabIndex:P.role==="user"&&q&&r?0:void 0,title:P.role==="user"&&q&&r?s("点击编辑","Click to edit"):void 0,onClick:()=>{te||P.role!=="user"||!q||!r||(f(P.id),v(ub(P)))},onKeyDown:V=>{te||P.role!=="user"||!q||!r||(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),f(P.id),v(ub(P)))},children:[(We=P.parts)==null?void 0:We.map((V,ve)=>{var oe;if(V.type==="reasoning"){const re=ve===(((oe=P.parts)==null?void 0:oe.length)??0)-1,ne=i==="streaming"&&re&&X;return m.jsxs(SY,{className:"w-full",isStreaming:ne,defaultOpen:ne,children:[m.jsx(kY,{}),m.jsx(DY,{children:V.text||""})]},`reasoning-${ve}`)}return null}),(()=>{const V=yp(P),{images:ve,rest:oe}=oB(V),{tags:re,rest:ne}=aB(oe);if(!ne&&ve.length===0)return null;if(te&&P.role==="user"){const Ue=sB(y);return m.jsxs("div",{className:"flex flex-col gap-2 min-w-[300px]",onClick:Me=>Me.stopPropagation(),children:[m.jsxs("div",{className:"relative w-full",children:[m.jsx("textarea",{ref:g,value:y,onChange:Me=>v(Me.target.value),onClick:Me=>Me.stopPropagation(),className:"relative z-10 w-full px-3 py-2 text-sm rounded-md border border-input bg-transparent text-transparent caret-foreground resize-none focus:outline-none focus:ring-2 focus:ring-primary",rows:4}),m.jsx("div",{className:"pointer-events-none absolute inset-0 z-0 overflow-hidden rounded-md border border-input bg-background px-3 py-2 text-sm leading-6 whitespace-pre-wrap break-words text-foreground",children:Ue.map((Me,Ee)=>{if(Me.type==="text")return m.jsx("span",{children:Me.text},`edit-t-${Ee}`);const Se=Me.kind==="outline"?"outline":"slide_image",Ce=Me.title?s(`第 ${Me.n} 页:${Me.title}`,`Slide ${Me.n}: ${Me.title}`):s(`第 ${Me.n} 页`,`Slide ${Me.n}`);return m.jsxs("span",{className:gt("mx-0.5 inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium align-middle",Se==="outline"?"border-blue-200 bg-blue-50 text-blue-700 dark:border-blue-400/30 dark:bg-blue-950/40 dark:text-blue-200":"border-red-200 bg-red-50 text-red-700 dark:border-red-400/30 dark:bg-red-950/40 dark:text-red-200"),children:[m.jsx("span",{className:gt("inline-flex h-4 w-4 items-center justify-center rounded-full text-[10px] font-semibold text-white",Se==="outline"?"bg-blue-600":"bg-red-600"),children:Se==="outline"?"T":"P"}),Ce]},`edit-ppt-${Ee}`)})})]}),m.jsxs("div",{className:"flex justify-end gap-2",children:[m.jsx("button",{onClick:Me=>{Me.stopPropagation(),f(null)},className:"px-3 py-1 text-xs rounded bg-muted hover:bg-muted/80 text-foreground",children:s("取消","Cancel")}),m.jsx("button",{onClick:Me=>{Me.stopPropagation(),y.trim()&&r&&(r(Z,y.trim()),f(null))},className:"px-3 py-1 text-xs rounded bg-primary hover:bg-primary/90 text-primary-foreground",children:s("重新发送","Resend")})]})]})}const be=iB(ne);return m.jsxs("div",{className:"space-y-3",children:[ve.length>0&&m.jsx("div",{className:"space-y-2",children:ve.map((Ue,Me)=>m.jsx("div",{className:gt("overflow-hidden rounded-lg border border-border/60 bg-black/5 dark:bg-white/5","max-w-[420px] mx-auto"),children:m.jsx("img",{src:Ue.url,alt:Ue.name||"image",className:"w-full max-h-[240px] object-contain bg-black/5"})},`${P.id}-img-${Me}`))}),re.length>0&&m.jsx("div",{className:"flex flex-wrap gap-1.5",children:re.map((Ue,Me)=>m.jsxs("span",{className:gt("inline-flex items-center rounded-full border px-2 py-0.5 text-[11px] leading-4",P.role==="user"?Ue.kind==="outline"?"border-blue-200 bg-blue-50 text-blue-700 dark:border-blue-400/30 dark:bg-blue-950/40 dark:text-blue-200":"border-red-200 bg-red-50 text-red-700 dark:border-red-400/30 dark:bg-red-950/40 dark:text-red-200":"border-border bg-muted/40 text-foreground"),children:[m.jsx("span",{className:gt("mr-1 inline-flex h-4 w-4 items-center justify-center rounded-full text-[10px] font-semibold text-white",Ue.kind==="outline"?"bg-blue-600":"bg-red-600"),children:Ue.kind==="outline"?"T":"P"}),Ue.title?s(`第 ${Ue.n} 页:${Ue.title}`,`Slide ${Ue.n}: ${Ue.title}`):s(`第 ${Ue.n} 页`,`Slide ${Ue.n}`)]},`${P.id}-ppttag-${Me}-${Ue.n}`))}),be.map((Ue,Me)=>{if(Ue.type==="text"&&!String(Ue.content||"").trim())return null;if(Ue.type==="file"){const Ce=`${P.id}-file-${Me}`,pe=A[Ce]||!1;return m.jsxs("div",{className:"rounded-lg border border-border/50 bg-background/50 overflow-hidden",children:[m.jsxs("button",{onClick:()=>w(ke=>({...ke,[Ce]:!pe})),className:"w-full flex items-center justify-between px-3 py-2 hover:bg-muted/50 transition-colors",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[Ue.fileType==="pdf"?m.jsx(Oi,{className:"h-4 w-4 text-red-500"}):m.jsx(eu,{className:"h-4 w-4 text-blue-500"}),m.jsx("span",{className:"text-xs font-medium truncate max-w-[150px] text-foreground",children:Ue.filename}),m.jsxs("span",{className:"text-[10px] text-muted-foreground",children:["(",Ue.charCount," chars)"]})]}),pe?m.jsx(qu,{className:"h-4 w-4 text-foreground"}):m.jsx(Wo,{className:"h-4 w-4 text-foreground"})]}),pe&&m.jsx("div",{className:"px-3 py-2 border-t border-border/50 max-h-48 overflow-y-auto bg-muted/20",children:m.jsx("pre",{className:"text-[10px] whitespace-pre-wrap text-muted-foreground font-mono",children:Ue.content})})]},Ce)}let Ee=0;if(P.role==="user"){const Ce=sB(Ue.content);return m.jsx("div",{className:"text-[15px] leading-6 whitespace-pre-wrap break-words text-foreground",children:Ce.map((pe,ke)=>{if(pe.type==="text")return m.jsx("span",{children:pe.text},`${Me}-t-${ke}`);const Ve=pe.kind==="outline"?"outline":"slide_image",Xe=pe.title?s(`第 ${pe.n} 页:${pe.title}`,`Slide ${pe.n}: ${pe.title}`):s(`第 ${pe.n} 页`,`Slide ${pe.n}`);return m.jsxs("span",{className:gt("mx-1 inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium align-middle",Ve==="outline"?"border-blue-200 bg-blue-50 text-blue-700 dark:border-blue-400/30 dark:bg-blue-950/40 dark:text-blue-200":"border-red-200 bg-red-50 text-red-700 dark:border-red-400/30 dark:bg-red-950/40 dark:text-red-200"),title:s(`幻灯片 · ${Xe}`,`Slide · ${Xe}`),children:[m.jsx("span",{className:gt("inline-flex h-4 w-4 items-center justify-center rounded-full text-[10px] font-semibold text-white",Ve==="outline"?"bg-blue-600":"bg-red-600"),children:Ve==="outline"?"T":"P"}),Xe]},`${Me}-ppt-${ke}`)})},Me)}const Se=P.role==="assistant"?lB(Ue.content):null;return Se&&Se.slides.length>0?m.jsx("div",{className:"w-full min-w-0 space-y-2",children:Se.slides.map((Ce,pe)=>{const ke=i4e(Ce,pe),Ve=a4e(Ce),Xe=`${P.id}-ppt-edit-${Me}-${pe}`,it=S[Xe]??!1;return m.jsxs("div",{className:"w-full min-w-0 overflow-hidden rounded-xl border border-border/60 bg-background/70",children:[m.jsxs("button",{type:"button",onClick:()=>_(et=>({...et,[Xe]:!it})),className:"flex w-full items-center justify-between px-3 py-2 text-left hover:bg-muted/40",children:[m.jsxs("span",{className:"inline-flex items-center gap-2 text-sm font-medium text-foreground",children:[m.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-emerald-500"}),s(`第 ${ke} 张幻灯片`,`Slide ${ke}`)]}),it?m.jsx(qu,{className:"h-4 w-4 text-muted-foreground"}):m.jsx(Wo,{className:"h-4 w-4 text-muted-foreground"})]}),it&&m.jsx("div",{className:"space-y-2 border-t border-border/50 px-3 py-2",children:Ve.map((et,U)=>m.jsxs("div",{className:"rounded-lg border border-border/40 bg-muted/20 px-2.5 py-2",children:[m.jsx("div",{className:"mb-1 text-[11px] font-medium uppercase tracking-wide text-muted-foreground",children:o4e(et.key,o)}),m.jsx("div",{className:"whitespace-pre-wrap break-words text-sm text-foreground",children:et.value})]},`${P.id}-ppt-edit-row-${Me}-${pe}-${U}`))})]},Xe)})},Me):m.jsx("div",{className:gt("prose prose-sm max-w-none break-words","dark:prose-invert"),children:m.jsx(J3,{remarkPlugins:[V$],urlTransform:Ce=>{const pe=String(Ce||"");return pe&&(pe.startsWith("http://")||pe.startsWith("https://")||pe.startsWith("data:image"))?pe:""},components:{th({children:Ce,...pe}){return m.jsx("th",{...pe,className:gt("whitespace-normal break-words",pe==null?void 0:pe.className),children:Ce})},td({children:Ce,...pe}){return m.jsx("td",{...pe,className:gt("whitespace-normal break-words",pe==null?void 0:pe.className),children:Ce})},pre({children:Ce}){return m.jsx(m.Fragment,{children:Ce})},code({node:Ce,inline:pe,className:ke,children:Ve,...Xe}){const it=/language-(\w+)/.exec(ke||""),et=i==="streaming"&&X,U=(it==null?void 0:it[1])||"text";if(!pe){const Ae=Ee++;return m.jsx(r4e,{blockId:`${P.id}:${Me}:${U}:${Ae}`,code:String(Ve).replace(/\n$/,""),language:U,isStreaming:et},`codeblock-${P.id}-${Me}-${U}-${Ae}`)}return m.jsx("code",{className:ke,...Xe,children:Ve})}},children:Ue.content})},Me)})]})})()]}),m.jsxs("div",{className:"flex items-center gap-1 mt-2 px-1",children:[P.role==="user"&&!te&&Q&&m.jsxs(m.Fragment,{children:[r&&q&&m.jsx("button",{type:"button",onClick:()=>{f(P.id),v(ub(P))},className:"p-1.5 rounded-lg text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors",title:s("编辑","Edit"),children:m.jsx(Fl,{className:"h-3.5 w-3.5"})}),m.jsx("button",{type:"button",onClick:()=>z(P.id,ub(P)),className:"p-1.5 rounded-lg text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors",title:s("复制","Copy"),children:u===P.id?m.jsx(qo,{className:"h-3.5 w-3.5 text-green-500"}):m.jsx(Ku,{className:"h-3.5 w-3.5"})})]}),P.role==="assistant"&&m.jsxs(m.Fragment,{children:[m.jsx("button",{type:"button",onClick:()=>z(P.id,yp(P)),className:`p-1.5 rounded-lg transition-colors ${u===P.id?"text-green-600 bg-green-100 dark:bg-green-950/30":"text-muted-foreground/60 hover:text-foreground hover:bg-muted"}`,title:s("复制","Copy"),children:u===P.id?m.jsx(qo,{className:"h-3.5 w-3.5"}):m.jsx(Ku,{className:"h-3.5 w-3.5"})}),n&&X&&m.jsx("button",{type:"button",onClick:()=>n(Z),className:"p-1.5 rounded-lg text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors",title:s("重新生成","Regenerate"),children:m.jsx(fg,{className:"h-3.5 w-3.5"})})]})]})]})}),Re&&m.jsx("div",{className:"flex w-full justify-start animate-message-in mt-3",children:m.jsx("div",{className:"max-w-[85%] min-w-0",children:m.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 text-xs text-muted-foreground bg-muted/40 rounded-2xl rounded-bl-md",children:[m.jsx(sa,{className:"h-3 w-3 animate-spin"}),m.jsx("span",{children:s("思考中...","Thinking...")})]})})})]},P.id)}),m.jsx("div",{ref:c})]})}),!E&&e.length>0&&m.jsxs("button",{type:"button",onClick:()=>{I.current=!1,T(!0),W("smooth")},className:"absolute bottom-4 right-4 z-20 inline-flex items-center gap-1 rounded-full border border-border bg-background/90 backdrop-blur px-3 py-1.5 text-xs text-foreground shadow-md hover:bg-background",children:[m.jsx(Wo,{className:"w-3.5 h-3.5"}),s("回到底部","Back to bottom")]})]})}const dp="CanvasAnvil-global-constraints";function s4e({showHistory:e,onToggleHistory:t,history:n,onRestore:r,onClear:i}){const a=pa(),o=s=>new Date(s).toLocaleString();return m.jsx(Uc,{open:e,onOpenChange:t,children:m.jsxs(Lc,{className:"max-w-md max-h-[80vh] flex flex-col",children:[m.jsx(Ou,{children:m.jsxs("div",{className:"flex items-center justify-between gap-3",children:[m.jsxs(ju,{className:"flex items-center gap-2",children:[m.jsx(Kp,{className:"w-5 h-5 text-muted-foreground"}),an(a,"history.title")]}),n.length>0&&i&&m.jsxs(ri,{size:"sm",variant:"ghost",onClick:i,className:"gap-1 text-xs",children:[m.jsx(Zf,{className:"w-3.5 h-3.5"}),an(a,"history.clear")]})]})}),m.jsx("div",{className:"flex-1 overflow-hidden mt-2",children:n.length===0?m.jsxs("div",{className:"text-center p-8 text-muted-foreground text-sm flex flex-col items-center gap-2",children:[m.jsx(Kp,{className:"w-8 h-8 opacity-20"}),m.jsx("p",{children:an(a,"history.empty")})]}):m.jsx(gR,{className:"h-[400px] pr-4",children:m.jsx("div",{className:"space-y-3",children:[...n].reverse().map((s,l)=>m.jsxs("div",{className:"p-3 rounded-lg border border-border/50 bg-muted/20 hover:bg-muted/40 transition-colors flex items-center justify-between group",children:[m.jsxs("div",{className:"flex flex-col gap-1 overflow-hidden",children:[m.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium",children:[m.jsx("span",{className:"w-6 h-6 rounded-full bg-blue-100 dark:bg-blue-900/30 text-blue-600 flex items-center justify-center text-xs",children:n.length-l}),m.jsx("span",{children:o(s.timestamp)})]}),m.jsxs("div",{className:"text-xs text-muted-foreground truncate pl-8 flex items-center gap-1",children:[m.jsx(eu,{className:"w-3 h-3"}),m.jsx("span",{children:s.type.toUpperCase()}),m.jsx("span",{children:"•"}),m.jsx("span",{children:an(a,"history.chars",{n:s.content.length})})]})]}),m.jsxs(ri,{size:"sm",variant:"ghost",onClick:()=>{r(s),t(!1)},className:"opacity-0 group-hover:opacity-100 transition-opacity gap-1 text-xs",children:[m.jsx(fg,{className:"w-3 h-3"}),an(a,"history.restore")]})]},s.id))})})})]})})}function TY({open:e,onOpenChange:t,onClear:n}){const r=pa();return m.jsx(Uc,{open:e,onOpenChange:t,children:m.jsxs(Lc,{children:[m.jsxs(Ou,{children:[m.jsx(ju,{children:an(r,"reset.title")}),m.jsx(YIe,{children:an(r,"reset.desc")})]}),m.jsxs(mY,{children:[m.jsx(ri,{variant:"outline",onClick:()=>t(!1),children:an(r,"common.cancel")}),m.jsx(ri,{variant:"destructive",onClick:n,children:an(r,"common.clear")})]})]})})}const l4e="chat_history_v2_",c4e="CanvasAnvil-ppt-state-v1",cB=4e3,u4e=e=>{const r=String(e||"").replace(/\[\[IMAGE\|([^|\]]*)\|data:image\/[\s\S]*?\]\]/gi,"[[IMAGE|$1|[image-data]]]").replace(/data:image\/[^)\s]+/gi,"[image-data]");return r.length<=cB?r:`${r.slice(0,cB)}-...[truncated]`},d4e=e=>e.slice(-40).map(t=>({role:t.role,content:u4e(t.content)})),uB=(e,t)=>{const n=String((e==null?void 0:e.message)||e||"");return/input token count exceeds|maximum number of tokens allowed|too many tokens|context length/i.test(n)?t("本次请求内容过长,通常是图片或附件内容过大。请重试;如果仍失败,请减少附件数量或缩小单个附件内容。","This request is too large, usually because an image or attachment expanded the input too much. Retry once; if it still fails, reduce the number or size of attachments."):/api key|invalid api key|incorrect api key|unauthorized|401/i.test(n)?t("API 配置无效,请检查 API key 或服务配置。","The API configuration is invalid. Check the API key or provider settings."):/400|bad request/i.test(n)?t("请求格式无效,请检查本次输入或附件内容。","The request payload is invalid. Check this input or its attachments."):t("抱歉,请求失败,请稍后重试。","Sorry, the request failed. Please try again.")};function f4e({className:e,attachments:t=[],onRemoveAttachment:n,pptDraftSlides:r=[],onRemovePptDraftSlide:i,onClearPptDraftSlides:a,onCodeAction:o,systemPrompt:s=tZ,initialMessages:l=[],onMessagesChange:c,chatModel:u,workspaceId:d="default",mode:h="text",hideHistoryButton:f=!1,collapsed:g=!1,onToggleCollapse:y,collapseLocked:v=!1,title:A,inputPlaceholder:w,history:S=[],onRestore:_,onClearVersionHistory:E,onClearAttachments:T,cadContext:D,flowContext:I,onClearWorkspace:j}){const R=pa(),z=(M,k)=>R==="zh"?M:k,B=A||an(R,"workspace.default.title"),W=`${l4e}${d}`,[P,Z]=N.useState(()=>{if(typeof window<"u"){const M=localStorage.getItem(W);if(M)try{return JSON.parse(M)}catch(k){console.error("Failed to parse chat history",k)}}return l.length>0?l:[]}),[Q,X]=N.useState(""),[q,te]=N.useState([{type:"text",text:""}]),[J,ee]=N.useState(!1),[le,G]=N.useState(!1),[xe,ge]=N.useState(!1),ue=N.useRef(0),ce=3,[ye,Fe]=N.useState([]),Oe=N.useRef(null),[Le,Re]=N.useState(0),We=N.useRef(0),V=N.useRef(new Set),[ve,oe]=N.useState(null),re=N.useRef([]),ne=N.useRef(!1),[be,Ue]=N.useState(0),Me=N.useRef([]),Ee=(M,k)=>{const O=String(M||"").match(/(\d+)/),H=O?Number(O[1]):NaN;return Number.isNaN(H)?k||M:k?`Slide ${H}: ${k}`:`Slide ${H}`},Se=(M,k,O)=>{const H=String(M||"").match(/(\d+)/),Ne=H?Number(H[1]):NaN;if(Number.isNaN(Ne))return"";const _e=String(k||"").split("|").join(",").split("]]").join("");return`[[PPT_SLIDE|${Ne}|${_e}|${O}]]`},Ce=()=>{if(ne.current)return;const M=re.current.shift();if(!M)return;ne.current=!0;const k=Se(M.slideId,M.title,M.kind);oe({key:Date.now()+Math.random(),slideId:M.slideId,label:M.label,tag:k,tokenKind:M.kind})},pe=(M,k,O)=>{const H=Ee(M,k);re.current.push({slideId:M,title:k,label:H,kind:O}),Ce()};N.useEffect(()=>{if(d!=="ppt")return;const M=We.current,k=r.length;We.current=k,k>M&&Re(O=>O+1)},[d,r.length]),N.useEffect(()=>{if(d!=="ppt")return;const M=V.current,k=new Set(r.map(H=>H.id)),O=r.filter(H=>!M.has(H.id));if(V.current=k,O.length!==0)for(const H of O)pe(H.slideId,H.title,H.kind)},[d,r,X]);const ke=M=>{const O=String(M||"").split(/\r?\n/);for(let H=0;H<O.length-2;H+=1){const Ne=O[H],_e=O[H+1];if(!Ne.includes("|")||!/^\s*\|?(\s*:?-+:?\s*\|)+\s*:?-+:?\s*\|?\s*$/.test(_e))continue;const Pe=st=>{const Je=st.trim().replace(/^[-*+]\s+/,"").replace(/^\d+\.\s+/,""),pt=Je.startsWith("|")?Je.slice(1):Je;return(pt.endsWith("|")?pt.slice(0,-1):pt).split("|").map(dt=>dt.trim())},Ze=Pe(Ne).filter(st=>st);if(Ze.length===0)continue;const ut=[];for(let st=H+2;st<O.length;st+=1){const Je=O[st];if(!Je.includes("|"))break;const pt=Pe(Je);if(pt.every(dt=>!String(dt||"").trim()))break;const xt=pt.slice(0,Ze.length);for(;xt.length<Ze.length;)xt.push("");ut.push(xt)}if(ut.length!==0)return{type:"cad_bom",columns:Ze,rows:ut}}return null},Ve=M=>{if(d!=="cad"||!M)return M;let k=M.replace(/```(?:python|py|python3)\s*[\s\S]*?```/g,z("(已在后台处理完成)","(Processed in the background)"));return k=k.split(`-`).filter(O=>!/freecad/i.test(O)).join(`-`),k=k.replace(/(?:^|\n)1\.\s*FreeCAD[\s\S]*?(?=\n\d+\.\s|$)/gi,`-`),k.replace(/```json\s*([\s\S]*?)```/g,(O,H)=>{const Ne=String(H||"").trim();if(!Ne)return O;if(Ne.includes('"type"')&&Ne.includes('"cad_images"'))return z("(已提交装修图生成任务)","(CAD drawing generation task submitted)");if(Ne.includes('"type"')&&Ne.includes('"cad_plan"'))try{const _e=JSON.parse(Ne);if((_e==null?void 0:_e.type)!=="cad_plan")return O;const Pe=(_e==null?void 0:_e.plan)||{},Ze=typeof(Pe==null?void 0:Pe.summary)=="string"?Pe.summary:"",ut=typeof(Pe==null?void 0:Pe.style)=="string"?Pe.style:"",st=Array.isArray(Pe==null?void 0:Pe.assumptions)?Pe.assumptions.map(dt=>String(dt)).filter(Boolean):[],Je=Array.isArray(Pe==null?void 0:Pe.constraints)?Pe.constraints.map(dt=>String(dt)).filter(Boolean):[],pt=Array.isArray(Pe==null?void 0:Pe.rooms)?Pe.rooms:[],xt=[];if(Ze&&xt.push(z(`Summary: ${Ze}`,`Summary: ${Ze}`)),ut&&xt.push(z(`Style: ${ut}`,`Style: ${ut}`)),pt.length>0){const dt=pt.map(rn=>String((rn==null?void 0:rn.name)||(rn==null?void 0:rn.type)||"")).filter(Boolean);xt.push(z(`Spaces: ${dt.join(", ")}`,`Spaces: ${dt.join(", ")}`))}return st.length>0&&xt.push(z(`Assumptions: ${st.join("; ")}`,`Assumptions: ${st.join("; ")}`)),Je.length>0&&xt.push(z(`Constraints: ${Je.join("; ")}`,`Constraints: ${Je.join("; ")}`)),xt.length>0?xt.join("\\n"):z("(Plan generated)","(Plan generated)")}catch{return z("(Plan generated)","(Plan generated)")}return O})},Xe=M=>typeof requestAnimationFrame=="function"?requestAnimationFrame(M):typeof window<"u"?window.setTimeout(M,16):0,it=M=>{M&&(typeof cancelAnimationFrame=="function"?cancelAnimationFrame(M):typeof window<"u"&&window.clearTimeout(M))},et=M=>{const k=Ve(M);Z(O=>{const H=O[O.length-1];return(H==null?void 0:H.role)==="assistant"?[...O.slice(0,-1),{role:"assistant",content:k}]:[...O,{role:"assistant",content:k}]})},U=()=>{let M="",k=null;return{push:O=>{M=O,k===null&&(k=Xe(()=>{k=null,et(M)}))},flush:()=>{k!==null&&(it(k),k=null),et(M)}}};N.useEffect(()=>{try{localStorage.setItem(W,JSON.stringify(d4e(P)))}catch(M){console.warn("Failed to persist chat history",M);try{localStorage.removeItem(W)}catch{}}c==null||c(P)},[P,W,c]);const Ae=()=>{var M;(M=Oe.current)==null||M.abort(),Oe.current=null,ee(!1),X(""),te([{type:"text",text:""}]),Fe([]),T==null||T(),a==null||a(),j==null||j();try{localStorage.removeItem(W)}catch{}Z([]),ge(!1)},se=async(M,k)=>{const O=await Promise.resolve(o==null?void 0:o(M,k));if(!O||typeof O!="object")return{ok:!0};const H=O;return typeof H.ok=="boolean"?{ok:H.ok,retry:!!H.retry,error:typeof H.error=="string"?H.error:void 0}:{ok:!0}},Te=async M=>{if(!M)return{flowPatchFound:!1,flowRetryError:null};const k=M.match(/```python\n([\s\S]*?)\n```/);if(k&&k[1]&&d!=="cad"&&await se(k[1],"cad"),d==="cad"){const Ze=M.match(/```(javascript|js)\n([\s\S]*?)\n```/);Ze&&Ze[2]&&await se(Ze[2],"cad")}const O=M.match(/```svg\n([\s\S]*?)\n```/);O&&O[1]&&await se(O[1],"cad");let H=!1,Ne=null;const _e=/```json\s*([\s\S]*?)```/g;let Pe;for(;Pe=_e.exec(M);){const Ze=String(Pe[1]||"").trim();if(Ze){if(d==="ppt"){try{const ut=JSON.parse(Ze);Me.current.length>0?(ut.uploadedImages=Me.current,await se(JSON.stringify(ut),"ppt")):await se(Ze,"ppt")}catch{await se(Ze,"ppt")}continue}if(d==="flow"){try{const st=JSON.parse(Ze);(st==null?void 0:st.type)==="flow_patch"&&(H=!0)}catch{}const ut=await se(Ze,"flow");!ut.ok&&ut.retry&&(Ne=ut.error||"Unknown error");continue}await se(Ze,d==="cad"?"cad":"ppt")}}if(d==="flow"&&!H){const Ze=M.match(/```xml\n([\s\S]*?)\n```/);if(Ze&&Ze[1]){const ut=await se(Ze[1],"flow");!ut.ok&&ut.retry&&(Ne=ut.error||"Unknown error")}}return{flowPatchFound:H,flowRetryError:Ne}},$=(M,k)=>{const O=String(M||"").slice(0,600);return R==="en"?[`The previous flow_patch could not be applied to the current diagram. Reason: ${O}`,"","Please retry and strictly follow:","- Output exactly one ```json``` code block with type=flow_patch",k?"- This time you MUST use mode=replace and output the full <mxGraphModel>...</mxGraphModel> (do not output patch)":"- If the patch cannot precisely match the Current diagram XML, use mode=replace and output the full <mxGraphModel>...</mxGraphModel>"].join(`-`):[`Previous flow_patch could not be applied to current diagram: ${O}`,"","Please retry and strictly follow:","- Output exactly one ```json``` code block with type=flow_patch",k?"- This time you MUST use mode=replace and output the full <mxGraphModel>...</mxGraphModel> (do not output patch)":"- If the patch cannot precisely match the Current diagram XML, use mode=replace and output the full <mxGraphModel>...</mxGraphModel>"].join("\\n")},de=async()=>{var fr,yi;const M=d==="ppt",k=M?q.map(bt=>bt.type==="text"?bt.text:bt.tag).join(""):Q;if(!k.trim()&&ye.length===0&&t.length===0&&r.length===0||J)return;ue.current=0;const O=k.trim(),H=M?new Set(q.filter(bt=>bt.type==="ppt").map(bt=>bt.slideId)):new Set,Ne=()=>{if(!M||typeof window>"u")return[];try{const bt=localStorage.getItem(c4e),tn=bt?JSON.parse(bt):null;return(Array.isArray(tn==null?void 0:tn.localSlides)?tn.localSlides:[]).filter(Yt=>Yt&&typeof Yt.id=="string").slice(0,24).map(Yt=>({slideId:String(Yt.id),title:typeof Yt.title=="string"?Yt.title:"",json:JSON.stringify({id:String(Yt.id),title:typeof Yt.title=="string"?Yt.title:"",content:Array.isArray(Yt.content)?Yt.content:[],description:typeof Yt.description=="string"?Yt.description:"",layout:typeof Yt.layout=="string"?Yt.layout:"",note:typeof Yt.note=="string"?Yt.note:""},null,2),kind:"outline"}))}catch{return[]}},_e=M?r.slice(0,24):[],Pe=Ne(),Ze=M?(()=>{const bt=new Map;for(const tn of Pe)bt.set(tn.slideId,tn);for(const tn of _e)bt.set(tn.slideId,tn);return Array.from(bt.values())})():[],ut=M&&H.size>0?Ze.filter(bt=>H.has(bt.slideId)):Ze,st=/\[\[PPT_SLIDE\|/.test(k),pt=[M&&!st&&ut.length>0?ut.map(bt=>Se(bt.slideId,bt.title,bt.kind)).filter(Boolean).join(`-`):"",k].filter(Boolean).join(`-`),xt=[],dt=[],rn=[],Yn=bt=>new Promise((tn,cn)=>{const Yt=new FileReader;Yt.onload=()=>tn(Yt.result),Yt.onerror=cn,Yt.readAsDataURL(bt)}),Lt=[];for(const bt of ye)if(bt.type.startsWith("image/"))try{const tn=await Yn(bt);dt.push(tn),rn.push({name:bt.name,url:tn});const cn=rn.length;xt.push(d==="ppt"?`[Uploaded Image ${cn}: ${bt.name}]-This image is available as an optional material/reference for this turn. Do not use it or route to image editing unless the user explicitly asks to place, reference, replace, or visually use this uploaded image.`:`[Image Attachment ${cn}: ${bt.name}]`)}catch(tn){console.error("Failed to read image",bt.name,tn),xt.push(`[Image: ${bt.name}] (Failed to read)`)}else{const{extractPdfText:tn,extractTextFileContent:cn,isPdfFile:Yt}=await Kc(async()=>{const{extractPdfText:Pr,extractTextFileContent:On,isPdfFile:_n}=await Promise.resolve().then(()=>oy);return{extractPdfText:Pr,extractTextFileContent:On,isPdfFile:_n}},void 0);try{let Pr="";if(Yt(bt)){try{const{getPdfDocumentFromUrl:_n,renderPdfPageToCanvas:ai}=await Kc(async()=>{const{getPdfDocumentFromUrl:ma,renderPdfPageToCanvas:Cr}=await Promise.resolve().then(()=>oy);return{getPdfDocumentFromUrl:ma,renderPdfPageToCanvas:Cr}},void 0),na=URL.createObjectURL(bt);try{const ma=await _n(na),Cr=document.createElement("canvas");await ai({pdf:ma,pageNumber:1,canvas:Cr,targetWidth:520});const Nn=Cr.toDataURL("image/png");Nn&&Nn.startsWith("data:image")&&rn.push({name:bt.name,url:Nn})}finally{URL.revokeObjectURL(na)}}catch(_n){console.error("Failed to render PDF preview",bt.name,_n)}Pr=await tn(bt)}else Pr=await cn(bt);const On=`[${Yt(bt)?"PDF":"File"}: ${bt.name}]-${Pr}`;xt.push(On),Lt.push(On)}catch(Pr){console.error("Failed to read file",bt.name,Pr);const On=`[File: ${bt.name}]-(Failed to read content)`;xt.push(On),Lt.push(On)}}const Xt=t.length>0?t.slice(0,12).map((bt,tn)=>{const cn=`[Context ${tn+1}: ${bt.name} | ${bt.type}]`,Yt=String(bt.content||"").slice(0,12e3);return`${cn}-\`\`\`${bt.type}-${Yt}-\`\`\``}).join(`--`):"",qt=d==="ppt"&&ut.length>0?ut.map((bt,tn)=>{const cn=`[Context ${tn+1}: ${bt.slideId}.json | json]`,Yt=String(bt.json||"").slice(0,12e3);return`${cn}-\`\`\`json-${Yt}-\`\`\``}).join(`--`):"",Tn=d==="flow"&&typeof(I==null?void 0:I.xml)=="string"&&I.xml.trim()?`Current diagram XML:--\`\`\`xml-${I.xml}-\`\`\``:"",Ye=d==="cad"?[D!=null&&D.plan?`Current CAD plan:--\`\`\`json-${JSON.stringify(D.plan,null,2)}-\`\`\``:"",typeof(D==null?void 0:D.svg2d)=="string"&&D.svg2d.trim()?`Current 2D SVG:--\`\`\`svg-${D.svg2d}-\`\`\``:""].filter(Boolean).join(`--`):"",vt=[pt,xt.length>0?xt.join(`--`):"",qt,Xt,Tn,Ye].filter(Boolean).join(`--`);Me.current=dt;const At=bt=>String(bt||"").split("|").join(",").split("]]").join("").replace(/\r?\n/g," "),Bt={role:"user",content:[rn.map(bt=>`[[IMAGE|${At(bt.name)}|${bt.url}]]`).join(`-`),st?k:O,Lt.length>0?Lt.join(`--`):""].filter(Boolean).join(`--`)},Kt=[...P,Bt];if(Z(Kt),M?te([{type:"text",text:""}]):X(""),M&&Ue(bt=>bt+1),Fe([]),d==="ppt"&&(a==null||a()),d==="cad"&&h==="text"&&/(cad_ready_for_export|一键\s*(出图|生成)|one[- ]?click)/i.test(O)){const bt=(D==null?void 0:D.svg2d)||"",tn=D!=null&&D.plan?JSON.stringify(D.plan):"";let cn=!1;const Yt=yt=>{const Ot=yt.match(/```json\s*([\s\S]*?)```/),Fn=Ot?Ot[1].trim():yt.trim();if(Fn.startsWith("{")){try{const yr=JSON.parse(Fn);(yr==null?void 0:yr.type)==="cad_bom"&&(cn=!0)}catch{}o==null||o(Fn,"cad")}},Pr=Go(),On=d?`${dp}-${d}`:dp,_n=typeof window<"u"&&localStorage.getItem(On)||"",ai=Pr.systemPrompt||"",na=[Mc({globalSystemPrompt:ai,globalConstraints:_n}),`UI language: ${R}`].filter(Boolean).join(`--`),ma=A0({systemContent:na,planJson:tn,svg2d:bt}),Cr=w0({systemContent:na,planJson:tn,svg2d:bt});ee(!0),(fr=Oe.current)==null||fr.abort();const Nn=new AbortController;Oe.current=Nn,Z(yt=>[...yt,{role:"assistant",content:""}]);const mr=U();let Tr="",ur="";const wt=(async()=>{if(await Xi(ma,yt=>{Tr=yt,mr.push(yt)},u,Nn.signal),mr.flush(),Tr&&(Yt(Tr),!cn)){const yt=ke(Tr);yt&&(cn=!0,o==null||o(JSON.stringify(yt),"cad"))}})(),Wt=(async()=>{const yt=Zt=>{const jn=String(Zt||"").match(/```json\s*([\s\S]*?)```/);return jn?jn[1].trim():String(Zt||"").trim()},Ot=Zt=>{const jn=yt(Zt);try{return JSON.parse(jn)}catch{const kn=jn.indexOf("{"),Un=jn.lastIndexOf("}");if(kn>=0&&Un>kn)try{return JSON.parse(jn.slice(kn,Un+1))}catch{}return null}},Fn=[z("Renovation Plan Layout","Renovation Plan Layout"),z("Floor Finish Plan","Floor Finish Plan"),z("Reflected Ceiling Plan","Reflected Ceiling Plan"),z("Wall Setting-Out Plan","Wall Setting-Out Plan"),z("MEP Plan (Electrical + Low Voltage + Plumbing)","MEP Plan (Electrical + Low Voltage + Plumbing)"),z("Elevation Index Plan + Interior Elevations","Elevation Index Plan + Interior Elevations"),z("Detail Drawings","Detail Drawings")],yr=["Renovation Plan Layout","Floor Finish Plan","Reflected Ceiling Plan","Wall Setting-Out Plan","MEP Plan (Electrical + Low Voltage + Plumbing)","Elevation Index Plan + Interior Elevations","Detail Drawings"];let hr="";try{const Zt=await ja(Cr,u,{signal:Nn.signal,timeoutMs:12e4}),jn=Ot(Zt);(jn==null?void 0:jn.type)==="renovation_scheme_master"&&(jn!=null&&jn.global_scheme)&&(hr=JSON.stringify(jn,null,2))}catch{}const Pn=S0({systemContent:na,planJson:tn,svg2d:bt,masterSchemeJson:hr}),Ei=(await Promise.allSettled(Pn.map(Zt=>ja(Zt.messages,u,{signal:Nn.signal,timeoutMs:12e4})))).map((Zt,jn)=>{const kn=Fn[jn]||z("Drawing","Drawing"),Vt=`Generate an orthographic 2D technical construction drawing sheet: ${yr[jn]||"Drawing"}. Include border, bottom-right title block, scale/units, legend/symbols, key annotations and dimensions, consistent with the provided plan JSON and 2D SVG. ${R==="zh"?"All on-sheet labels/notes/title block text must be in Simplified Chinese.":"All on-sheet labels/notes/title block text must be in English."}`;if(Zt.status!=="fulfilled")return{title:kn,prompt:Vt};const Qt=String(Zt.value||"").trim(),St=Ot(Qt);if((St==null?void 0:St.type)==="cad_images_sheet"&&typeof(St==null?void 0:St.title)=="string"&&typeof(St==null?void 0:St.prompt)=="string"){const Ht=St.prompt.trim();return{title:St.title,prompt:Ht||Vt}}if((St==null?void 0:St.type)==="cad_images"&&Array.isArray(St==null?void 0:St.prompts)&&St.prompts.length>0){const Ht=St.prompts[0],Jt=typeof(Ht==null?void 0:Ht.title)=="string"?Ht.title:kn,In=typeof(Ht==null?void 0:Ht.prompt)=="string"?Ht.prompt.trim():"";return{title:Jt,prompt:In||Vt}}return{title:kn,prompt:Vt}});ur=JSON.stringify({type:"cad_images",prompts:Ei},null,2),Yt(ur)})();try{await Promise.allSettled([wt,Wt]),Nn.signal.aborted&&Z(yt=>{const Ot=yt[yt.length-1];if((Ot==null?void 0:Ot.role)!=="assistant")return yt;const Fn=z("(Aborted)","(Aborted)"),yr=Ot.content?`${Ot.content}--${Fn}`:Fn;return[...yt.slice(0,-1),{role:"assistant",content:yr}]})}catch{}finally{ee(!1),Oe.current=null}return}ee(!0),(yi=Oe.current)==null||yi.abort();const ln=new AbortController;Oe.current=ln;try{const bt=Go(),tn=d?`${dp}-${d}`:dp,cn=typeof window<"u"&&localStorage.getItem(tn)||"",Yt=bt.systemPrompt||"",Pr=[s,Yt,cn].filter(Boolean).join(`--`),On=d==="ppt"?[{role:"system",content:Pr},{role:"user",content:vt}]:[{role:"system",content:Pr},...P,{role:"user",content:vt}];Z(Cr=>[...Cr,{role:"assistant",content:""}]);let _n="";const ai=U();d==="ppt"?(_n=await kP(On,u,{signal:ln.signal}),ai.push(_n)):await Xi(On,Cr=>{_n=Cr,ai.push(Cr)},u,ln.signal),ai.flush();let na=null,ma=null;if(_n&&d==="flow"){const Nn=(mr=>{const Tr=String(mr||"").trim();if(!Tr)return null;let ur=Tr;const wt=ur.match(/```[a-zA-Z]*\s*([\s\S]*?)```/);return wt&&wt[1]&&(ur=wt[1].trim()),ur=ur.replace(/\s+/g,""),/^[1-2]$/.test(ur)?ur==="1"?"patch":"replace":null})(_n);if(Nn){ma=Nn,Z(yt=>{const Ot=yt[yt.length-1];return(Ot==null?void 0:Ot.role)==="assistant"?[...yt.slice(0,-1),{role:"assistant",content:""}]:yt});const ur=[{role:"system",content:[ma==="patch"?yA:Gu,Yt,cn].filter(Boolean).join(`--`)},{role:"user",content:vt}];let wt="";const Wt=U();await Xi(ur,yt=>{wt=yt,Wt.push(yt)},u,ln.signal),Wt.flush(),na=ur,_n=wt}}if(_n&&d==="cad"){let Cr=null;const Nn=ur=>{const wt=String(ur||"").trim();if(!wt)return null;let Wt=wt;const yt=Wt.match(/```[a-zA-Z]*\s*([\s\S]*?)```/);return yt&&yt[1]&&(Wt=yt[1].trim()),Wt=Wt.replace(/\s+/g,""),/^[1-5]$/.test(Wt)?Wt==="1"?"cad_plan_agent":Wt==="2"?"cad_svg_generate_agent":Wt==="3"?"cad_svg_patch_agent":Wt==="4"?"cad_bom_agent":"cad_images_agent":null},mr=/```json\s*([\s\S]*?)```/g;let Tr;for(;Tr=mr.exec(_n);){const ur=String(Tr[1]||"").trim();if(ur)try{const wt=JSON.parse(ur);if((wt==null?void 0:wt.type)==="cad_route"&&typeof(wt==null?void 0:wt.agent)=="string"){Cr={agent:wt.agent};break}}catch{}}if(!(Cr!=null&&Cr.agent)){const ur=Nn(_n);ur&&(Cr={agent:ur})}if(Cr!=null&&Cr.agent){Z(kn=>{const Un=kn[kn.length-1];return(Un==null?void 0:Un.role)==="assistant"?[...kn.slice(0,-1),{role:"assistant",content:""}]:kn});const ur=kn=>kn.producedHasPlan&&!kn.beforeHasPlan?z('The plan is ready. If it looks good, reply "Generate 2D floorplan". If not, tell me what to change.','The plan is ready. If it looks good, reply "Generate 2D floorplan". If not, tell me what to change.'):kn.producedHasSvg2d&&!kn.beforeHasSvg2d?z('The 2D floorplan is generated. Tell me edits if needed; otherwise reply "Generate renders".','The 2D floorplan is generated. Tell me edits if needed; otherwise reply "Generate renders".'):kn.producedHasImages?z('Renders are being generated or updated. Next, reply "Generate BOM".','Renders are being generated or updated. Next, reply "Generate BOM".'):kn.producedHasBom?z("BOM is generated. You can refine the plan, 2D, or style, or export files.","BOM is generated. You can refine the plan, 2D, or style, or export files."):kn.agent==="cad_svg_patch_agent"?z('2D has been patched. If OK, reply "Generate renders"; otherwise describe more edits.','2D has been patched. If OK, reply "Generate renders"; otherwise describe more edits.'):"",wt=async kn=>{let Un="";const Hn=U();return await Xi(kn,Vt=>{Un=Vt,Hn.push(Vt)},u,ln.signal),Hn.flush(),Un},Wt=kn=>{const Un=kn.match(/```json\s*([\s\S]*?)```/),Hn=Un?Un[1].trim():kn.trim();Hn.startsWith("{")&&(o==null||o(Hn,"cad"))},yt=String(Cr.agent||"").trim(),Ot=!!(D!=null&&D.plan),Fn=!!(typeof(D==null?void 0:D.svg2d)=="string"&&D.svg2d.trim()),yr=D!=null&&D.plan?JSON.stringify(D.plan):"",hr=(D==null?void 0:D.svg2d)||"";if(yt==="cad_bom_agent"){const kn=[Mc({globalSystemPrompt:Yt,globalConstraints:cn}),`UI language: ${R}`].filter(Boolean).join(`--`),Un=A0({systemContent:kn,planJson:yr,svg2d:hr}),Hn=await wt(Un);if(Hn){Wt(Hn);const Vt=ke(Hn);Vt&&(o==null||o(JSON.stringify(Vt),"cad"));const Qt=/"type"\s*:\s*"cad_plan"/.test(Hn),St=/```svg[\s\S]*?```/.test(Hn),Ht=/"type"\s*:\s*"cad_images"/.test(Hn),Jt=/"type"\s*:\s*"cad_bom"/.test(Hn),In=ur({agent:yt,beforeHasPlan:Ot,beforeHasSvg2d:Fn,producedHasPlan:Qt,producedHasSvg2d:St,producedHasImages:Ht,producedHasBom:Jt});In&&et(`${Hn}--${In}`)}return}if(yt==="cad_images_agent"){const kn=[Mc({globalSystemPrompt:Yt,globalConstraints:cn}),`UI language: ${R}`].filter(Boolean).join(`--`),Un=w0({systemContent:kn,planJson:yr,svg2d:hr});et(z("Generating drawing prompts...","Generating drawing prompts..."));const Hn=Fr=>{const pr=String(Fr||"").match(/```json\s*([\s\S]*?)```/);return pr?pr[1].trim():String(Fr||"").trim()},Vt=Fr=>{const pr=Hn(Fr);try{return JSON.parse(pr)}catch{const _r=pr.indexOf("{"),wn=pr.lastIndexOf("}");if(_r>=0&&wn>_r)try{return JSON.parse(pr.slice(_r,wn+1))}catch{}return null}},Qt=[z("Renovation Plan Layout","Renovation Plan Layout"),z("Floor Finish Plan","Floor Finish Plan"),z("Reflected Ceiling Plan","Reflected Ceiling Plan"),z("Wall Setting-Out Plan","Wall Setting-Out Plan"),z("MEP Plan (Electrical + Low Voltage + Plumbing)","MEP Plan (Electrical + Low Voltage + Plumbing)"),z("Elevation Index Plan + Interior Elevations","Elevation Index Plan + Interior Elevations"),z("Detail Drawings","Detail Drawings")],St=["Renovation Plan Layout","Floor Finish Plan","Reflected Ceiling Plan","Wall Setting-Out Plan","MEP Plan (Electrical + Low Voltage + Plumbing)","Elevation Index Plan + Interior Elevations","Detail Drawings"];let Ht="";try{const Fr=await ja(Un,u,{signal:ln.signal,timeoutMs:12e4}),pr=Vt(Fr);(pr==null?void 0:pr.type)==="renovation_scheme_master"&&(pr!=null&&pr.global_scheme)&&(Ht=JSON.stringify(pr,null,2))}catch{}const Jt=S0({systemContent:kn,planJson:yr,svg2d:hr,masterSchemeJson:Ht}),pi=(await Promise.allSettled(Jt.map(Fr=>ja(Fr.messages,u,{signal:ln.signal,timeoutMs:12e4})))).map((Fr,pr)=>{const _r=Qt[pr]||z("Drawing","Drawing"),Rn=`Generate an orthographic 2D technical construction drawing sheet: ${St[pr]||"Drawing"}. Include border, bottom-right title block, scale/units, legend/symbols, key annotations and dimensions, consistent with the provided plan JSON and 2D SVG. ${R==="zh"?"All on-sheet labels/notes/title block text must be in Simplified Chinese.":"All on-sheet labels/notes/title block text must be in English."}`;if(Fr.status!=="fulfilled")return{title:_r,prompt:Rn};const Ir=String(Fr.value||"").trim(),mn=Vt(Ir);if((mn==null?void 0:mn.type)==="cad_images_sheet"&&typeof(mn==null?void 0:mn.title)=="string"&&typeof(mn==null?void 0:mn.prompt)=="string"){const xn=mn.prompt.trim();return{title:mn.title,prompt:xn||Rn}}if((mn==null?void 0:mn.type)==="cad_images"&&Array.isArray(mn==null?void 0:mn.prompts)&&mn.prompts.length>0){const xn=mn.prompts[0],ei=typeof(xn==null?void 0:xn.title)=="string"?xn.title:_r,yn=typeof(xn==null?void 0:xn.prompt)=="string"?xn.prompt.trim():"";return{title:ei,prompt:yn||Rn}}return{title:_r,prompt:Rn}}),ca=JSON.stringify({type:"cad_images",prompts:pi},null,2);o==null||o(ca,"cad");const Wi=ur({agent:yt,beforeHasPlan:Ot,beforeHasSvg2d:Fn,producedHasPlan:!1,producedHasSvg2d:!1,producedHasImages:!0,producedHasBom:!1});et(Wi||z("Drawing tasks generated.","Drawing tasks generated."));return}const Pn=yt==="cad_plan_agent"?K_:"";if(!Pn){et(z(`未识别的 CAD 子智能体:${yt}`,`Unrecognized CAD sub-agent: ${yt}`));return}const Ei=[{role:"system",content:[Pn,Yt,cn].filter(Boolean).join(`--`)},{role:"user",content:vt}];let Zt="";const jn=U();if(await Xi(Ei,kn=>{Zt=kn,jn.push(kn)},u,ln.signal),jn.flush(),Zt){const kn=Zt.match(/```svg\n([\s\S]*?)\n```/);kn&&kn[1]&&(o==null||o(kn[1],"cad"));const Un=/```json\s*([\s\S]*?)```/g;let Hn;for(;Hn=Un.exec(Zt);){const In=String(Hn[1]||"").trim();In&&(o==null||o(In,"cad"))}const Vt=/"type"\s*:\s*"cad_plan"/.test(Zt),Qt=/```svg[\s\S]*?```/.test(Zt),St=/"type"\s*:\s*"cad_images"/.test(Zt),Ht=/"type"\s*:\s*"cad_bom"/.test(Zt),Jt=ur({agent:yt,beforeHasPlan:Ot,beforeHasSvg2d:Fn,producedHasPlan:Vt,producedHasSvg2d:Qt,producedHasImages:St,producedHasBom:Ht});Jt&&et(`${Zt}--${Jt}`)}return}}if(_n){let{flowPatchFound:Cr,flowRetryError:Nn}=await Te(_n),mr=na?[...na]:On,Tr=ma;for(;d==="flow"&&Cr&&Nn&&!ln.signal.aborted&&ue.current<ce;){ue.current+=1;const ur=ue.current>=ce;ur&&Tr==="patch"&&(Tr="replace",mr=[{role:"system",content:[Gu,Yt,cn].filter(Boolean).join(`--`)},{role:"user",content:vt}]);const wt=$(Nn,ur),Wt=[...mr,{role:"assistant",content:_n},{role:"user",content:wt}];Z(yr=>[...yr,{role:"assistant",content:""}]);let yt="";const Ot=U();await Xi(Wt,yr=>{yt=yr,Ot.push(yr)},u,ln.signal),Ot.flush(),_n=yt,mr=Wt;const Fn=await Te(_n);Cr=Fn.flowPatchFound,Nn=Fn.flowRetryError}}}catch(bt){if((bt==null?void 0:bt.name)==="AbortError"||(bt==null?void 0:bt.name)==="APIUserAbortError"){Z(cn=>{const Yt=cn[cn.length-1];if((Yt==null?void 0:Yt.role)==="assistant"){const Pr=z("(Aborted)","(Aborted)"),On=Yt.content?`${Yt.content}--${Pr}`:Pr;return[...cn.slice(0,-1),{role:"assistant",content:On}]}return[...cn,{role:"assistant",content:z("(Aborted)","(Aborted)")}]});return}const tn=uB(bt,z);Z(cn=>{const Yt=cn[cn.length-1];return Yt.role==="assistant"&&!Yt.content?[...cn.slice(0,-1),{role:"assistant",content:tn}]:[...cn,{role:"assistant",content:tn}]})}finally{ee(!1),Oe.current=null}},F=()=>{var M;J&&((M=Oe.current)==null||M.abort())},De=async M=>{var dt,rn;const k=Go(),O=d?`${dp}-${d}`:dp,H=typeof window<"u"&&localStorage.getItem(O)||"",Ne=k.systemPrompt||"",_e=[s,Ne,H].filter(Boolean).join(`--`),Pe=String(((dt=M[M.length-1])==null?void 0:dt.content)||""),Ze=d==="flow"&&typeof(I==null?void 0:I.xml)=="string"&&I.xml.trim()?`Current diagram XML:--\`\`\`xml-${I.xml}-\`\`\``:"",ut=[Pe,Ze].filter(Boolean).join(`--`),st=d==="ppt"?[{role:"system",content:_e},{role:"user",content:ut}]:[{role:"system",content:_e},...M.slice(0,-1),{role:"user",content:ut}];ee(!0),(rn=Oe.current)==null||rn.abort();const Je=new AbortController;Oe.current=Je,Z([...M,{role:"assistant",content:""}]);let pt="";const xt=U();try{if(d==="ppt"?(pt=await kP(st,u,{signal:Je.signal}),xt.push(pt)):await Xi(st,Yn=>{pt=Yn,xt.push(Yn)},u,Je.signal),xt.flush(),pt){let Yn=null,Lt=null;if(d==="flow"){const vt=(At=>{const Gt=String(At||"").trim();if(!Gt)return null;let jt=Gt;const Et=jt.match(/```[a-zA-Z]*\s*([\s\S]*?)```/);return Et&&Et[1]&&(jt=Et[1].trim()),jt=jt.replace(/\s+/g,""),/^[1-2]$/.test(jt)?jt==="1"?"patch":"replace":null})(pt);if(vt){Lt=vt,Z(Bt=>{const Kt=Bt[Bt.length-1];return(Kt==null?void 0:Kt.role)==="assistant"?[...Bt.slice(0,-1),{role:"assistant",content:""}]:Bt});const jt=[{role:"system",content:[Lt==="patch"?yA:Gu,Ne,H].filter(Boolean).join(`--`)},{role:"user",content:ut}];let Et="";const Rt=U();await Xi(jt,Bt=>{Et=Bt,Rt.push(Bt)},u,Je.signal),Rt.flush(),Yn=jt,pt=Et}}let{flowPatchFound:Xt,flowRetryError:qt}=await Te(pt),Tn=Yn?[...Yn]:st,Ye=Lt;for(;d==="flow"&&Xt&&qt&&!Je.signal.aborted&&ue.current<ce;){ue.current+=1;const ct=ue.current>=ce;ct&&Ye==="patch"&&(Ye="replace",Tn=[{role:"system",content:[Gu,Ne,H].filter(Boolean).join(`--`)},{role:"user",content:ut}]);const vt=$(qt,ct),At=[...Tn,{role:"assistant",content:pt},{role:"user",content:vt}];Z(Rt=>[...Rt,{role:"assistant",content:""}]);let Gt="";const jt=U();await Xi(At,Rt=>{Gt=Rt,jt.push(Rt)},u,Je.signal),jt.flush(),pt=Gt,Tn=At;const Et=await Te(pt);Xt=Et.flowPatchFound,qt=Et.flowRetryError}}}catch(Yn){if((Yn==null?void 0:Yn.name)==="AbortError"||(Yn==null?void 0:Yn.name)==="APIUserAbortError"){Z(Xt=>{const qt=Xt[Xt.length-1];if((qt==null?void 0:qt.role)==="assistant"){const Tn=qt.content?`${qt.content}--(Aborted)`:"(Aborted)";return[...Xt.slice(0,-1),{role:"assistant",content:Tn}]}return[...Xt,{role:"assistant",content:"(Aborted)"}]});return}const Lt=uB(Yn,z);Z(Xt=>{const qt=Xt[Xt.length-1];return(qt==null?void 0:qt.role)==="assistant"&&!qt.content?[...Xt.slice(0,-1),{role:"assistant",content:Lt}]:[...Xt,{role:"assistant",content:Lt}]})}finally{ee(!1),Oe.current=null}},He=async M=>{if(M<0||M>=P.length||P[M].role!=="assistant")return;const k=P.slice(0,M);k.length===0||k[k.length-1].role!=="user"||(ue.current=0,await De(k))},b=async(M,k)=>{if(M<0||M>=P.length||P[M].role!=="user")return;const H=(P[M].content||"").split(/\r?\n/),Ne=[];let _e=0;for(;_e<H.length;_e+=1){const xt=H[_e];if(/^\[\[IMAGE\|([^|]*)\|([\s\S]+)\]\]$/.test(xt)||/^\[\[PPT_SLIDE\|(\d+)\|([^|]*)\|(outline|slide_image)\]\]$/.test(xt)||/^\[\[PPT_SLIDE\|(\d+)\|(.*)\]\]$/.test(xt)){Ne.push(xt);continue}break}const Pe=H.slice(_e).join(`-`),Ze=Pe.match(/\n\n\[(PDF|File|Context)\b/),ut=Ze&&typeof Ze.index=="number"?Pe.slice(Ze.index):"",Je={role:"user",content:`${Ne.length>0?`${Ne.join(`-`)}--`:""}${k}${ut}`},pt=[...P.slice(0,M),Je];X(""),Fe([]),ue.current=0,await De(pt)},ae=P.map((M,k)=>({id:`msg-${k}`,role:M.role,content:M.content,parts:[{type:"text",text:M.content}]}));return g?m.jsx("div",{className:gt("h-full flex flex-col items-center pt-4 bg-card border border-border/30 rounded-xl",e),children:m.jsx(Iu,{tooltipContent:an(R,"chat.expand"),variant:"ghost",size:"icon",onClick:y,className:"hover:bg-accent transition-colors",children:m.jsx(vE,{className:"h-5 w-5 text-muted-foreground"})})}):m.jsxs("div",{className:gt("h-full flex flex-col bg-card shadow-soft animate-slide-in-right rounded-xl border border-border/30 relative",e),children:[m.jsx("div",{className:"px-5 py-4 border-b border-border/50",children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("div",{className:"flex items-center gap-2",children:m.jsx("span",{className:"text-base font-semibold tracking-tight whitespace-nowrap",children:B})}),m.jsx("div",{className:"flex items-center gap-1",children:y&&m.jsx(Iu,{tooltipContent:v?an(R,"chat.collapseLocked"):an(R,"chat.collapse"),variant:"ghost",size:"icon",onClick:y,disabled:v,className:"hover:bg-accent transition-colors rounded-md",children:m.jsx(yE,{className:"w-4 h-4 text-muted-foreground"})})})]})}),m.jsx("div",{className:"flex-1 w-full overflow-hidden",children:m.jsx(CY,{messages:ae,setInput:X,status:J?"streaming":"idle",onDisplayChart:M=>o==null?void 0:o(M,"flow"),onRegenerate:He,onEditMessage:b})}),m.jsx("div",{className:"p-4 border-t border-border/50 bg-card/50",children:m.jsx(AY,{input:Q,setInput:X,onSubmit:de,isLoading:J,onStop:F,onClearChat:()=>ge(!0),onToggleHistory:f?void 0:()=>G(!0),historyDisabled:S.length===0,onFilesChange:Fe,files:ye,uploadMode:d==="ppt"?"imagesOnly":d==="cad"?"filesOnly":"all",placeholder:w,focusKey:d==="ppt"?Le:void 0,clearKey:d==="ppt"?be:void 0,richSegments:d==="ppt"?q:void 0,onRichSegmentsChange:d==="ppt"?te:void 0,insertPptToken:d==="ppt"?ve:null,onInsertPptTokenHandled:d==="ppt"?()=>{ne.current=!1,oe(null),Ce()}:void 0,bottomChips:t.length>0?m.jsx("div",{className:"space-y-2",children:t.length>0&&m.jsx("div",{className:"overflow-x-auto",children:m.jsx("div",{className:"flex flex-nowrap items-center gap-2",children:t.map(M=>m.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-border bg-muted/40 px-3 py-1 text-xs text-muted-foreground shrink-0",title:M.name,children:[m.jsx("span",{className:"max-w-[240px] truncate",children:M.name}),n&&m.jsx("button",{type:"button",onClick:()=>n(M.id),className:"text-muted-foreground/80 hover:text-foreground transition-colors",title:"Remove attachment","aria-label":"Remove attachment",children:"×"})]},M.id))})})}):null})}),m.jsx(s4e,{showHistory:le,onToggleHistory:G,history:S,onRestore:M=>_&&_(M),onClear:()=>{E==null||E()}}),m.jsx(TY,{open:xe,onOpenChange:ge,onClear:Ae})]})}const h4e="CanvasAnvil-ppt-state-v1",dB="CanvasAnvil-ppt-return-stage-v1",db="CanvasAnvil-history-ppt-v1",fB="chat_history_v2_ppt";function p4e(){const e=pa(),t=N.useRef(!1),[n,r]=N.useState([]),[i,a]=N.useState(null),[o,s]=N.useState([]),[l,c]=N.useState(0),[u,d]=N.useState(!1),[h,f]=N.useState(()=>{if(typeof window>"u")return"start";try{const te=localStorage.getItem(dB);return te==="outline"||te==="slides"||te==="start"?te:"start"}catch{return"start"}}),[g,y]=N.useState("idea"),[v,A]=N.useState(!1),[w,S]=N.useState(!1),[_,E]=N.useState([]),[T,D]=N.useState(()=>{if(typeof window>"u")return[];try{const te=localStorage.getItem(db),J=te?JSON.parse(te):[];return Array.isArray(J)?J:[]}catch{return[]}}),[I,j]=N.useState(!1),R=N.useRef(null),z=(h==="outline"||h==="slides")&&g!=="image_transform"&&!v&&!w,B=!z||!u;N.useEffect(()=>{if(!(typeof window>"u"))try{localStorage.setItem(db,JSON.stringify(T))}catch{}},[T]),N.useEffect(()=>{if(!(typeof window>"u"))try{localStorage.setItem(dB,h)}catch{}},[h]),N.useEffect(()=>{if(!t.current){t.current=!0;return}if(h==="start"){E([]),r([]),D([]),s([]);try{localStorage.removeItem(fB)}catch{}try{localStorage.removeItem(db)}catch{}}},[h]),N.useEffect(()=>{B&&I&&j(!1)},[B,I]),N.useEffect(()=>{if(!z||B)return;const te=window.setTimeout(()=>{var ee;const J=R.current;if(J)try{if(!((ee=J.isCollapsed)!=null&&ee.call(J)))return;J.resize("32%"),j(!1)}catch{}},0);return()=>window.clearTimeout(te)},[z,B]);const W=()=>{var J;if(B)return;const te=R.current;if(te)try{(J=te.isCollapsed)!=null&&J.call(te)||I?(te.expand(),j(!1)):(te.collapse(),j(!0))}catch{j(!1)}},P=(te,J)=>{const ee={id:Date.now().toString(),timestamp:Date.now(),content:te,type:J};D(le=>[...le,ee])},Z=te=>{te.type==="json"&&a({id:`${Date.now()}`,payload:te.content})},Q=(te,J)=>{const ee=le=>{if(!le||typeof le!="object")return;const G=typeof le.id=="string"&&le.id.trim()?le.id.trim():"";if(!G)return;const xe=typeof le.title=="string"?le.title:"",ge=typeof le.imageUrl=="string"?le.imageUrl:"",ue=ge?"slide_image":"outline",ce=JSON.stringify(le,null,2);s(ye=>[...ye.filter(Oe=>Oe.slideId!==G),{id:`${Date.now()}-${Math.random().toString(16).slice(2)}`,slideId:G,title:xe,json:ce,kind:ue,imageUrl:ge||void 0}])};try{const le=JSON.parse(te);if(le&&typeof le=="object"&&Array.isArray(le.slides)){for(const G of le.slides)ee(G);return}ee(le);return}catch{const le=String(J||"").match(/^(slide-\d+)\.json$/i);if(le){s(G=>[...G,{id:`${Date.now()}-${Math.random().toString(16).slice(2)}`,slideId:le[1],title:"",json:String(te||""),kind:"outline"}]);return}}r(le=>[...le,{id:Math.random().toString(36).slice(2),type:"json",content:te,name:J}])},X=async(te,J)=>{if(J!=="ppt")return{ok:!0};try{return JSON.parse(te),a({id:`${Date.now()}`,payload:te}),P(te,"json"),{ok:!0}}catch{return{ok:!1,retry:!1,error:"Invalid PPT JSON"}}},q=()=>{a(null),s([]),d(!1),f("start"),y("idea"),A(!1),S(!1),E([]),r([]),D([]);try{localStorage.removeItem(h4e)}catch{}tY().catch(te=>{console.error("Failed to clear persisted PPT workspace",te)});try{localStorage.removeItem(fB)}catch{}try{localStorage.removeItem(db)}catch{}c(te=>te+1)};return m.jsxs(PPe,{orientation:"horizontal",className:"h-full",style:{height:"100%"},children:[m.jsx(Ej,{defaultSize:B?"100%":"68%",minSize:"30%",className:gt("transition-[flex-grow,flex-basis] duration-300 ease-in-out will-change-[flex-grow,flex-basis]"),children:m.jsx("div",{className:"h-full w-full relative bg-muted/20",children:m.jsx(z8e,{onAddToChat:Q,onPptReadyChange:d,onPptStageChange:f,onCreationModeChange:y,onExportReviewModeChange:A,onEmbeddedEditorActiveChange:S,incomingEdit:i,onIncomingEditHandled:()=>a(null),onResetWorkspace:q},`ppt-${l}`)})}),z&&m.jsxs(m.Fragment,{children:[m.jsx(IPe,{withHandle:!0,className:"bg-border/50 hover:bg-primary/50 transition-colors w-1.5"}),m.jsx(Ej,{id:"ppt-chat",panelRef:R,defaultSize:"32%",minSize:"20%",maxSize:"70%",collapsible:!0,collapsedSize:"56px",onResize:te=>j(te.inPixels<=80),className:gt("transition-[flex-grow,flex-basis] duration-300 ease-in-out will-change-[flex-grow,flex-basis]"),children:m.jsx(f4e,{systemPrompt:h==="slides"?ZCe:XCe,initialMessages:_,onMessagesChange:E,attachments:n,workspaceId:"ppt",mode:"ppt_image",hideHistoryButton:!0,collapsed:I,collapseLocked:B,title:an(e,"workspace.ppt.title"),inputPlaceholder:an(e,"workspace.ppt.placeholder"),onToggleCollapse:W,onRemoveAttachment:te=>r(J=>J.filter(ee=>ee.id!==te)),onClearAttachments:()=>r([]),pptDraftSlides:o,onRemovePptDraftSlide:te=>s(J=>J.filter(ee=>ee.id!==te)),onClearPptDraftSlides:()=>s([]),onClearWorkspace:q,history:T,onRestore:Z,onClearVersionHistory:()=>D([]),onCodeAction:X},"ppt")})]})]})}const g4e="CanvasAnvilCanvasWorkspaceDB",dd="workspace",m4e=1;function mR(){return typeof indexedDB>"u"?Promise.resolve(null):new Promise((e,t)=>{const n=indexedDB.open(g4e,m4e);n.onupgradeneeded=()=>{const r=n.result;r.objectStoreNames.contains(dd)||r.createObjectStore(dd)},n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error)})}async function y4e(e){const t=await mR();return t?await new Promise((n,r)=>{const i=t.transaction(dd,"readonly"),o=i.objectStore(dd).get(e);o.onsuccess=()=>n(o.result??null),o.onerror=()=>r(o.error),i.oncomplete=()=>t.close(),i.onabort=()=>r(i.error),i.onerror=()=>r(i.error)}):null}async function v4e(e,t){const n=await mR();n&&await new Promise((r,i)=>{const a=n.transaction(dd,"readwrite");a.objectStore(dd).put(t,e),a.oncomplete=()=>{n.close(),r()},a.onabort=()=>i(a.error),a.onerror=()=>i(a.error)})}async function x4e(e){const t=await mR();t&&await new Promise((n,r)=>{const i=t.transaction(dd,"readwrite");i.objectStore(dd).delete(e),i.oncomplete=()=>{t.close(),n()},i.onabort=()=>r(i.error),i.onerror=()=>r(i.error)})}const _Y=["minimal","tech","chinese","cartoon","business","fresh","retro","dark","handdrawn"],EY=["blue","red","green","orange","blackGold","cyan","pink","silver","ivory","purple"],NY=["vertical","horizontal","centered","diagonal","fullBleed"],FY=["top","middle","bottom","sides"],RY=["low","medium","high"],PY=["auto","bar","pie","donut","timeline","progress"],IY=["portrait","landscape"],MY=["solid","gradient","minimalScene","realScene","transparent"],UY=["none","soft","strong","side","topLight"],LY={minimal:{zh:"??",en:"Minimal"},tech:{zh:"??",en:"Tech"},chinese:{zh:"??",en:"Chinese"},cartoon:{zh:"??",en:"Cartoon"},business:{zh:"??",en:"Business"},fresh:{zh:"??",en:"Fresh"},retro:{zh:"??",en:"Retro"},dark:{zh:"??",en:"Dark"},handdrawn:{zh:"??",en:"Hand-drawn"},blue:{zh:"??",en:"Blue"},red:{zh:"??",en:"Red"},green:{zh:"??",en:"Green"},orange:{zh:"??",en:"Orange"},blackGold:{zh:"??",en:"Black Gold"},cyan:{zh:"??",en:"Cyan"},pink:{zh:"??",en:"Pink"},silver:{zh:"??",en:"Silver Gray"},ivory:{zh:"??",en:"Ivory"},purple:{zh:"??",en:"Purple"},vertical:{zh:"???",en:"Top / Middle / Bottom"},horizontal:{zh:"???",en:"Left / Center / Right"},centered:{zh:"????",en:"Centered Symmetry"},diagonal:{zh:"???",en:"Diagonal"},fullBleed:{zh:"??",en:"Full Bleed"},top:{zh:"??",en:"Top"},middle:{zh:"??",en:"Middle"},bottom:{zh:"??",en:"Bottom"},sides:{zh:"????",en:"Both Sides"},low:{zh:"?",en:"Low"},medium:{zh:"?",en:"Medium"},high:{zh:"?",en:"High"},auto:{zh:"??",en:"Auto"},bar:{zh:"???",en:"Bar Chart"},pie:{zh:"??",en:"Pie Chart"},donut:{zh:"???",en:"Donut Chart"},timeline:{zh:"???",en:"Timeline"},progress:{zh:"???",en:"Progress Bar"},portrait:{zh:"??",en:"Portrait"},landscape:{zh:"??",en:"Landscape"},solid:{zh:"??",en:"Solid"},gradient:{zh:"??",en:"Gradient"},minimalScene:{zh:"????",en:"Minimal Scene"},realScene:{zh:"????",en:"Real Scene"},transparent:{zh:"??",en:"Transparent"},none:{zh:"?",en:"None"},soft:{zh:"??",en:"Soft"},strong:{zh:"??",en:"Strong"},side:{zh:"??",en:"Side Light"}};LY.topLight={zh:"??",en:"Top Light"};const Yl=(e,t)=>{var n;return((n=LY[e])==null?void 0:n[t])||e},Fc=(e,t)=>e.map(n=>({value:n,label:Yl(n,t)})),Xp={poster:[{id:"poster-vertical",label:"1080×1920",width:1080,height:1920},{id:"poster-horizontal",label:"1920×1080",width:1920,height:1080},{id:"custom",label:"自定义",width:1080,height:1920}],infographic:[{id:"infographic-long",label:"1080×2000",width:1080,height:2e3},{id:"infographic-tall",label:"1080×3000",width:1080,height:3e3},{id:"custom",label:"自定义",width:1080,height:2e3}],product:[{id:"product-square",label:"800×800",width:800,height:800},{id:"product-horizontal",label:"1200×630",width:1200,height:630},{id:"product-vertical",label:"1080×1440",width:1080,height:1440},{id:"custom",label:"自定义",width:800,height:800}]};function b4e(e,t){return`CanvasAnvil-canvas-${e}-${t}-v2`}function A4e(e){const t=Xp[e][0];return{sizePreset:t.id,customWidth:String(t.width),customHeight:String(t.height),dpi:"72",style:_Y[0],color:EY[0],referenceImageUrl:"",theme:e==="infographic"?"年度业务增长报告":"春季上新活动",composition:NY[0],focus:FY[1],whitespace:RY[1],sellingPointsText:e==="product"?`卖点一-卖点二-卖点三`:`高识别度视觉-重点信息突出-便于社媒传播`,bulletPointsText:`市场规模增长-用户活跃度提升-转化效率提高`,dataText:`销量: 32,45,67-转化率: 12,18,25`,chartType:PY[0],orientation:IY[0],productName:"旗舰新品",productImageUrl:"",backgroundType:MY[1],lighting:UY[1]}}function fb(e){const t=e.sellingPointsText.split(/\r?\n/).map(n=>n.trim()).filter(Boolean);return{title:e.theme||"品牌活动海报",subtitle:t[0]||"核心卖点一眼可见",body:t.slice(1).join(" · ")||"突出重点信息,适配社媒传播与线下展示。",cta:"立即了解"}}function hb(e){const t=e.sellingPointsText.split(/\r?\n/).map(n=>n.trim()).filter(Boolean).slice(0,4);for(;t.length<4;)t.push(`卖点 ${t.length+1}`);return{headline:e.productName||"产品主标题",labels:t}}function w4e(e,t){const n=OY(e,t),r=Yl(t.style,"zh"),i=Yl(t.color,"zh"),a=Yl(t.composition,"zh"),o=Yl(t.focus,"zh"),s=Yl(t.whitespace,"zh"),l=Yl(t.chartType,"zh"),c=Yl(t.orientation,"zh"),u=Yl(t.backgroundType,"zh"),d=Yl(t.lighting,"zh"),h=t.sellingPointsText.split(/\r?\n/).map(g=>g.trim()).filter(Boolean),f=t.bulletPointsText.split(/\r?\n/).map(g=>g.trim()).filter(Boolean);return e==="poster"?`生成一张${n.width}x${n.height}的中文海报,风格${r},主色调${i},主题“${t.theme}”,构图${a},视觉重点${o},留白${s},分辨率${t.dpi}DPI,卖点:${h.join("、")||"无"}。画面需要高级、清晰、适合品牌传播。`:e==="infographic"?`生成一张${n.width}x${n.height}的信息图,主题“${t.theme}”,主色调${i},风格${r},内容要点:${f.join("、")||"无"},数据:${t.dataText||"无"},图表偏向${l},排版${c}。要求结构清晰,信息层级明确。`:`生成一张${n.width}x${n.height}的产品介绍图,产品名“${t.productName}”,风格${r},主色调${i},背景${u},光影${d},卖点:${h.join("、")||"无"}。画面要突出主体产品,适合电商宣传。`}function OY(e,t){const n=Xp[e].find(a=>a.id===t.sizePreset)||Xp[e][0];if(t.sizePreset!=="custom")return{width:n.width,height:n.height};const r=Number(t.customWidth),i=Number(t.customHeight);return{width:Number.isFinite(r)&&r>0?Math.min(r,4e3):n.width,height:Number.isFinite(i)&&i>0?Math.min(i,4e3):n.height}}function gT(e){return e.label}async function S4e(e){return await(await fetch(e)).blob()}function Hi({label:e,children:t,hint:n}){return m.jsxs("label",{className:"block space-y-2",children:[m.jsxs("div",{className:"flex items-center justify-between gap-3",children:[m.jsx("span",{className:"text-sm font-medium text-foreground",children:e}),n?m.jsx("span",{className:"text-[11px] text-muted-foreground",children:n}):null]}),t]})}function vp(){return"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm text-foreground outline-none transition focus:border-blue-500/70 focus:ring-2 focus:ring-blue-500/15"}function pb(e){return m.jsx("textarea",{...e,className:`${vp()} min-h-[92px] resize-y ${e.className||""}`})}function Dl({value:e,onChange:t,placeholder:n,options:r}){return m.jsxs(t0,{value:e,onValueChange:t,children:[m.jsx(r0,{className:"h-10 w-full rounded-xl border-border/70 bg-background shadow-sm transition-colors hover:border-border hover:bg-muted/20",children:m.jsx(n0,{placeholder:n})}),m.jsx(i0,{className:"rounded-xl border-border/70 bg-background/95 p-1 shadow-xl backdrop-blur",children:r.map(i=>m.jsx(a0,{value:typeof i=="string"?i:i.value,className:"rounded-lg py-2 text-sm data-[highlighted]:bg-muted data-[highlighted]:text-foreground",children:typeof i=="string"?i:i.label},typeof i=="string"?i:i.value))})]})}function k4e({title:e,icon:t,children:n}){return m.jsxs("section",{className:"space-y-5",children:[m.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-foreground",children:[m.jsx(t,{className:"h-4 w-4 text-blue-600"}),e]}),m.jsx("div",{className:"space-y-4",children:n})]})}function D4e({open:e,onOpenChange:t,history:n,onRestore:r,onClear:i}){return m.jsx(Uc,{open:e,onOpenChange:t,children:m.jsxs(Lc,{className:"max-w-md max-h-[80vh] flex flex-col",children:[m.jsx(Ou,{children:m.jsxs("div",{className:"flex items-center justify-between gap-3",children:[m.jsxs(ju,{className:"flex items-center gap-2",children:[m.jsx(Kp,{className:"w-5 h-5 text-muted-foreground"}),"版本历史"]}),n.length>0?m.jsx(ri,{size:"sm",variant:"ghost",onClick:i,className:"gap-1 text-xs",children:"清空"}):null]})}),m.jsx("div",{className:"flex-1 overflow-hidden mt-2",children:n.length===0?m.jsxs("div",{className:"text-center p-8 text-muted-foreground text-sm flex flex-col items-center gap-2",children:[m.jsx(Kp,{className:"w-8 h-8 opacity-20"}),m.jsx("p",{children:"暂无历史记录"})]}):m.jsx(gR,{className:"h-[420px] pr-4",children:m.jsx("div",{className:"space-y-3",children:[...n].reverse().map((a,o)=>m.jsxs("div",{className:"p-3 rounded-lg border border-border/50 bg-muted/20 hover:bg-muted/40 transition-colors flex items-center justify-between gap-3 group",children:[m.jsxs("div",{className:"flex items-center gap-3 overflow-hidden min-w-0",children:[m.jsx("img",{src:a.imageUrl,alt:"",className:"h-14 w-14 rounded-md object-cover border border-border/50 bg-white"}),m.jsxs("div",{className:"min-w-0",children:[m.jsxs("div",{className:"text-sm font-medium",children:["版本 ",n.length-o]}),m.jsx("div",{className:"text-xs text-muted-foreground",children:new Date(a.createdAt).toLocaleString()})]})]}),m.jsxs(ri,{size:"sm",variant:"ghost",onClick:()=>{r(a),t(!1)},className:"opacity-0 group-hover:opacity-100 transition-opacity gap-1 text-xs",children:[m.jsx(fg,{className:"w-3 h-3"}),"恢复"]})]},a.id))})})})]})})}function yR({mode:e}){const t=pa(),n=(pe,ke)=>t==="zh"?pe:ke,r=N.useMemo(()=>Fc(_Y,t),[t]),i=N.useMemo(()=>Fc(EY,t),[t]),a=N.useMemo(()=>Fc(NY,t),[t]),o=N.useMemo(()=>Fc(FY,t),[t]),s=N.useMemo(()=>Fc(RY,t),[t]),l=N.useMemo(()=>Fc(PY,t),[t]),c=N.useMemo(()=>Fc(IY,t),[t]),u=N.useMemo(()=>Fc(MY,t),[t]),d=N.useMemo(()=>Fc(UY,t),[t]),h=b4e(e,"draft"),f=N.useMemo(()=>({...A4e(e),theme:"",sellingPointsText:"",bulletPointsText:"",dataText:"",productName:""}),[e]),g=N.useRef(!1),[y,v]=N.useState(f),[A,w]=N.useState(fb(f)),[S,_]=N.useState(hb(f)),[E,T]=N.useState("form"),[D,I]=N.useState(""),[j,R]=N.useState([]),[z,B]=N.useState([]),[W,P]=N.useState(""),[Z,Q]=N.useState(""),[X,q]=N.useState(!1),[te,J]=N.useState(!1),[ee,le]=N.useState(!1),[G,xe]=N.useState(null),[ge,ue]=N.useState(!1),[ce,ye]=N.useState([]),Fe=OY(e,y),Oe=Fe.height>=Fe.width,Le=e==="product"?!!y.productImageUrl.trim():!!y.theme.trim();N.useEffect(()=>{let pe=!1;return(async()=>{try{const ke=await y4e(h);if(pe)return;if(ke){const Ve=ke.form||f;v(Ve),w(ke.posterText||fb(Ve)),_(ke.productText||hb(Ve)),T(ke.stage==="edit"&&ke.generatedImageUrl?"edit":"form"),I(ke.generatedImageUrl||""),R(Array.isArray(ke.editableTextBlocks)?ke.editableTextBlocks:[]),B(Array.isArray(ke.interactionMessages)?ke.interactionMessages:[]),P(ke.lastGeneratedPrompt||""),ye(Array.isArray(ke.versionHistory)?ke.versionHistory:[])}else v(f),w(fb(f)),_(hb(f)),T("form"),I(""),R([]),B([]),P(""),ye([])}catch(ke){console.error("Failed to load persisted canvas draft",ke)}finally{pe||(g.current=!0,ue(!0))}})(),()=>{pe=!0}},[f,h]),N.useEffect(()=>{!ge||!g.current||v4e(h,{form:y,posterText:A,productText:S,stage:E,generatedImageUrl:D,editableTextBlocks:j,interactionMessages:z,lastGeneratedPrompt:W,versionHistory:ce}).catch(pe=>{console.error("Failed to persist canvas draft",pe)})},[h,j,y,D,z,ge,W,A,S,E,ce]);const Re=pe=>{v(ke=>{const Ve={...ke,...pe};return e==="poster"&&w(Xe=>({...Xe,title:pe.theme!==void 0&&pe.theme||Xe.title})),e==="product"&&_(Xe=>({...Xe,headline:pe.productName!==void 0&&pe.productName||Xe.headline})),Ve})},We=async(pe,ke)=>{var it;const Ve=(it=pe.target.files)==null?void 0:it[0];if(!Ve)return;const Xe=new FileReader;Xe.onload=()=>{Re({[ke]:String(Xe.result||"")})},Xe.readAsDataURL(Ve),pe.target.value=""},V=(pe,ke)=>{B(Ve=>[...Ve,{id:`${pe}-${Date.now()}-${Math.random()}`,role:pe,content:ke,parts:[{type:"text",text:ke}]}])},ve=pe=>{I(pe.imageUrl),P(pe.prompt||""),T("edit"),Ln.success(n("已恢复到该版本。","Restored to this version."))},oe=async()=>{if(!(!Le||ee)){le(!0);try{const pe={...y},ke=w4e(e,pe),Ve=await Bc({prompt:ke,referenceImageUrl:e==="product"?pe.productImageUrl||void 0:pe.referenceImageUrl||void 0,additionalReferenceImageUrls:e==="product"&&pe.referenceImageUrl?[pe.referenceImageUrl]:void 0});I(Ve),P(ke),R([]),e==="poster"&&w(fb(pe)),e==="product"&&_(hb(pe)),T("edit"),B([]),ye(Xe=>Ve?[...Xe,{id:`version-${Date.now()}-${Math.random()}`,imageUrl:Ve,prompt:ke,createdAt:Date.now()}]:Xe)}catch(pe){Ln.error(n("生成失败,请稍后重试","Generation failed. Please try again.")),console.error(pe)}finally{le(!1)}}},re=pe=>e==="poster"?["Edit the provided poster image according to the user's request.","Use the current generated image as the main reference.","Keep the overall subject and composition unless the user explicitly asks to change them.",`User request: ${pe}`].join(" "):e==="infographic"?["Edit the provided infographic image according to the user's request.","Use the current generated image as the main reference.","Preserve the infographic style and layout logic unless the user explicitly asks to change them.",`User request: ${pe}`].join(" "):["Edit the provided product showcase image according to the user's request.","Use the current generated image as the main reference.","Keep product identity stable. The uploaded product image is a hard reference constraint.",`User request: ${pe}`].join(" "),ne=async pe=>{if(!(!pe||ee)){V("user",pe),le(!0);try{const ke=await Bc({prompt:re(pe),referenceImageUrl:D,additionalReferenceImageUrls:e==="product"?[y.productImageUrl,y.referenceImageUrl].filter(Boolean):y.referenceImageUrl?[y.referenceImageUrl]:void 0});I(ke),P(re(pe)),R([]),V("assistant",n("已根据当前图片和你的要求进行了修改。","Updated based on the current image and your request.")),ye(Ve=>[...Ve,{id:`version-${Date.now()}-${Math.random()}`,imageUrl:ke,prompt:re(pe),createdAt:Date.now()}])}catch(ke){console.error(ke),V("assistant",n("修改生成失败,请稍后重试。","Failed to update. Please try again.")),Ln.error(n("修改生成失败","Failed to regenerate."))}finally{le(!1)}}},be=async()=>{const pe=Z.trim();!pe||ee||(Q(""),await ne(pe))},Ue=async(pe,ke)=>{const Ve=ke.trim();!Ve||ee||(B(Xe=>Xe.slice(0,pe)),await ne(Ve))},Me=async pe=>{if(!(!D||G)){xe(pe);try{const ke=await S4e(D),Ve=URL.createObjectURL(ke),Xe=document.createElement("a");Xe.href=Ve,Xe.download=`${e}-${Date.now()}.${pe}`,Xe.click(),URL.revokeObjectURL(Ve)}catch(ke){Ln.error(n("导出失败","Export failed.")),console.error(ke)}finally{xe(null)}}},Ee=()=>{I(""),R([]),B([]),Q(""),P(""),ye([]),T("form"),q(!1),x4e(h).catch(pe=>{console.error("Failed to clear persisted canvas draft",pe)}),Ln.success(n("已删除当前生成内容","Current generated content deleted."))},Se=()=>j.length===0?null:j.map(pe=>{var Ve;const ke={position:"absolute",left:`${pe.x*100}%`,top:`${pe.y*100}%`,width:`${pe.w*100}%`,height:`${pe.h*100}%`,padding:"0.5rem 0.75rem",display:"flex",alignItems:"center",borderRadius:"1rem",background:e==="product"?"rgba(15,23,42,0.65)":"rgba(255,255,255,0.82)",color:e==="product"?"#fff":"#0f172a",fontSize:`${Math.max(12,((Ve=pe.style)==null?void 0:Ve.fontSize)||fY(pe,Fe.width,Fe.height))}px`,boxShadow:"0 10px 30px rgba(15,23,42,0.12)",overflow:"hidden"};return m.jsx("div",{style:ke,children:pe.text},pe.id)}),Ce=()=>m.jsxs("div",{className:"flex h-full min-h-0 flex-col bg-card",children:[m.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:m.jsx(CY,{messages:z,setInput:Q,onEditMessage:Ue,status:ee?"streaming":"idle"})}),m.jsx("div",{className:"border-t border-border/50 bg-card/70 p-4",children:m.jsx(AY,{input:Z,setInput:Q,onSubmit:be,isLoading:ee,uploadMode:"none",onClearChat:()=>q(!0),onToggleHistory:()=>J(!0),historyDisabled:ce.length===0,placeholder:e==="poster"?n("例如:标题:春季上新海报","For example: Title: Spring campaign poster"):e==="infographic"?n("例如:要点:增长趋势;品牌集中度","For example: Points: growth trend; brand concentration"):n("例如:卖点1:快速升温","For example: Point1: Fast heating")})})]});return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"h-full overflow-hidden bg-background text-foreground",children:m.jsx("div",{className:"h-full p-4",children:m.jsxs("div",{className:"grid h-full min-h-0 grid-cols-[minmax(0,1fr)_400px] gap-3",children:[m.jsxs("div",{className:"relative min-h-0 rounded-xl border border-border/30 bg-card shadow-soft",children:[m.jsx("div",{className:"absolute right-4 top-4 z-20 flex gap-2",children:D?m.jsxs(m.Fragment,{children:[m.jsxs(bo,{variant:"outline",onClick:()=>void Me("png"),disabled:!!G,className:"h-8 rounded-md bg-background/92 px-3 text-xs backdrop-blur",children:[G==="png"?m.jsx(sa,{className:"mr-1.5 h-3.5 w-3.5 animate-spin"}):m.jsx(tc,{className:"mr-1.5 h-3.5 w-3.5"}),"PNG"]}),m.jsxs(bo,{variant:"outline",onClick:()=>void Me("jpg"),disabled:!!G,className:"h-8 rounded-md bg-background/92 px-3 text-xs backdrop-blur",children:[G==="jpg"?m.jsx(sa,{className:"mr-1.5 h-3.5 w-3.5 animate-spin"}):m.jsx(tc,{className:"mr-1.5 h-3.5 w-3.5"}),"JPG"]})]}):null}),m.jsx("div",{className:"flex h-full items-center justify-center overflow-hidden rounded-xl bg-[radial-gradient(circle_at_top,_rgba(59,130,246,0.08),_transparent_34%),linear-gradient(180deg,rgba(248,250,252,0.95),rgba(241,245,249,0.9))] p-4",children:m.jsx("div",{className:`relative overflow-hidden rounded-xl border border-border bg-background shadow-lg ${Oe?"h-full w-auto max-w-full":"h-auto max-h-full w-full"}`,style:{aspectRatio:`${Fe.width} / ${Fe.height}`,maxWidth:Oe?e==="infographic"?"420px":void 0:"980px"},children:D?m.jsxs(m.Fragment,{children:[m.jsx("img",{src:D,alt:"",className:`absolute inset-0 h-full w-full ${e==="infographic"?"object-contain bg-white":"object-cover"}`}),Se()]}):m.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-white/60",children:m.jsx("div",{className:"rounded-full border border-blue-200 bg-blue-50 p-4",children:m.jsx(jQ,{className:"h-8 w-8 text-blue-600"})})})})})]}),m.jsx("div",{className:"min-h-0 overflow-hidden rounded-xl border border-border/30 bg-card shadow-soft",children:E==="form"?m.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[m.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-5 py-4",children:m.jsxs(k4e,{title:n("生成参数","Parameters"),icon:CB,children:[e==="infographic"?m.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[m.jsx(Hi,{label:n("尺寸","Size"),children:m.jsxs(t0,{value:y.sizePreset,onValueChange:pe=>Re({sizePreset:pe}),children:[m.jsx(r0,{className:"h-10 w-full rounded-xl border-border/70 bg-background shadow-sm transition-colors hover:border-border hover:bg-muted/20",children:m.jsx(n0,{placeholder:"Select size"})}),m.jsx(i0,{className:"rounded-xl border-border/70 bg-background/95 p-1 shadow-xl backdrop-blur",children:Xp[e].map(pe=>m.jsx(a0,{value:pe.id,className:"rounded-lg py-2 text-sm data-[highlighted]:bg-muted data-[highlighted]:text-foreground",children:gT(pe)},pe.id))})]})}),m.jsx(Hi,{label:n("主色调","Primary Color"),children:m.jsx(Dl,{value:y.color,onChange:pe=>Re({color:pe}),options:i})})]}):e==="product"?m.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[m.jsx(Hi,{label:n("尺寸","Size"),children:m.jsxs(t0,{value:y.sizePreset,onValueChange:pe=>Re({sizePreset:pe}),children:[m.jsx(r0,{className:"h-10 w-full rounded-xl border-border/70 bg-background shadow-sm transition-colors hover:border-border hover:bg-muted/20",children:m.jsx(n0,{placeholder:"Select size"})}),m.jsx(i0,{className:"rounded-xl border-border/70 bg-background/95 p-1 shadow-xl backdrop-blur",children:Xp[e].map(pe=>m.jsx(a0,{value:pe.id,className:"rounded-lg py-2 text-sm data-[highlighted]:bg-muted data-[highlighted]:text-foreground",children:gT(pe)},pe.id))})]})}),m.jsx(Hi,{label:n("主色调","Primary Color"),children:m.jsx(Dl,{value:y.color,onChange:pe=>Re({color:pe}),options:i})})]}):m.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[m.jsx(Hi,{label:n("尺寸","Size"),children:m.jsxs(t0,{value:y.sizePreset,onValueChange:pe=>Re({sizePreset:pe}),children:[m.jsx(r0,{className:"h-10 w-full rounded-xl border-border/70 bg-background shadow-sm transition-colors hover:border-border hover:bg-muted/20",children:m.jsx(n0,{placeholder:"Select size"})}),m.jsx(i0,{className:"rounded-xl border-border/70 bg-background/95 p-1 shadow-xl backdrop-blur",children:Xp[e].map(pe=>m.jsx(a0,{value:pe.id,className:"rounded-lg py-2 text-sm data-[highlighted]:bg-muted data-[highlighted]:text-foreground",children:gT(pe)},pe.id))})]})}),m.jsx(Hi,{label:n("留白程度","Whitespace"),children:m.jsx(Dl,{value:y.whitespace,onChange:pe=>Re({whitespace:pe}),options:s})})]}),y.sizePreset==="custom"?m.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[m.jsx(Hi,{label:n("宽度","Width"),hint:"<= 4000",children:m.jsx("input",{className:vp(),value:y.customWidth,onChange:pe=>Re({customWidth:pe.target.value})})}),m.jsx(Hi,{label:n("高度","Height"),hint:"<= 4000",children:m.jsx("input",{className:vp(),value:y.customHeight,onChange:pe=>Re({customHeight:pe.target.value})})})]}):null,m.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[m.jsx(Hi,{label:n("分辨率","Resolution"),children:m.jsx(Dl,{value:y.dpi,onChange:pe=>Re({dpi:pe}),options:[{value:"72",label:"72 DPI"},{value:"300",label:"300 DPI"}]})}),m.jsx(Hi,{label:n("风格","Style"),children:m.jsx(Dl,{value:y.style,onChange:pe=>Re({style:pe}),options:r})})]}),e==="poster"?m.jsxs(m.Fragment,{children:[m.jsx(Hi,{label:n("核心主题","Theme"),children:m.jsx("input",{className:vp(),value:y.theme,onChange:pe=>Re({theme:pe.target.value})})}),m.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[m.jsx(Hi,{label:n("构图","Composition"),children:m.jsx(Dl,{value:y.composition,onChange:pe=>Re({composition:pe}),options:a})}),m.jsx(Hi,{label:n("视觉重点","Focus"),children:m.jsx(Dl,{value:y.focus,onChange:pe=>Re({focus:pe}),options:o})})]}),m.jsx(Hi,{label:n("卖点","Selling Points"),children:m.jsx(pb,{value:y.sellingPointsText,onChange:pe=>Re({sellingPointsText:pe.target.value}),placeholder:n("每行一条,最多 3 条","One per line, up to 3")})})]}):null,e==="infographic"?m.jsxs(m.Fragment,{children:[m.jsx(Hi,{label:n("核心主题","Theme"),children:m.jsx("input",{className:vp(),value:y.theme,onChange:pe=>Re({theme:pe.target.value})})}),m.jsx(Hi,{label:n("内容要点","Key Points"),children:m.jsx(pb,{value:y.bulletPointsText,onChange:pe=>Re({bulletPointsText:pe.target.value}),placeholder:n("每行一条,建议 2 到 8 条","One per line, suggested 2 to 8")})}),m.jsx(Hi,{label:n("数据内容","Data"),children:m.jsx(pb,{value:y.dataText,onChange:pe=>Re({dataText:pe.target.value}),placeholder:n("例如:销量 32,45,67","e.g. Sales: 32,45,67")})}),m.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[m.jsx(Hi,{label:n("图表倾向","Chart Type"),children:m.jsx(Dl,{value:y.chartType,onChange:pe=>Re({chartType:pe}),options:l})}),m.jsx(Hi,{label:n("排版方向","Orientation"),children:m.jsx(Dl,{value:y.orientation,onChange:pe=>Re({orientation:pe}),options:c})})]})]}):null,e==="product"?m.jsxs(m.Fragment,{children:[m.jsx(Hi,{label:n("产品名称","Product Name"),children:m.jsx("input",{className:vp(),value:y.productName,onChange:pe=>Re({productName:pe.target.value})})}),m.jsx(Hi,{label:n("卖点","Selling Points"),children:m.jsx(pb,{value:y.sellingPointsText,onChange:pe=>Re({sellingPointsText:pe.target.value}),placeholder:n("每行一条,最多 4 条","One per line, up to 4")})}),m.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[m.jsx(Hi,{label:n("背景类型","Background"),children:m.jsx(Dl,{value:y.backgroundType,onChange:pe=>Re({backgroundType:pe}),options:u})}),m.jsx(Hi,{label:n("光影效果","Lighting"),children:m.jsx(Dl,{value:y.lighting,onChange:pe=>Re({lighting:pe}),options:d})})]})]}):null,m.jsx(Hi,{label:e==="product"?n("产品图","Product Image"):n("参考图","Reference Image"),children:m.jsxs("div",{className:"grid grid-cols-1 gap-3",children:[e==="product"?m.jsxs("label",{className:"flex cursor-pointer items-center justify-center rounded-xl border border-dashed border-border bg-background px-3 py-3 text-sm text-muted-foreground hover:border-blue-300 hover:text-foreground",children:[m.jsx(pP,{className:"mr-2 h-4 w-4"}),y.productImageUrl?n("替换产品图","Replace product image"):n("上传产品图","Upload product image"),m.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:pe=>void We(pe,"productImageUrl")})]}):null,m.jsxs("label",{className:"flex cursor-pointer items-center justify-center rounded-xl border border-dashed border-border bg-background px-3 py-3 text-sm text-muted-foreground hover:border-blue-300 hover:text-foreground",children:[m.jsx(pP,{className:"mr-2 h-4 w-4"}),y.referenceImageUrl?n("替换参考图","Replace reference image"):n("上传参考图","Upload reference image"),m.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:pe=>void We(pe,"referenceImageUrl")})]})]})})]})}),m.jsx("div",{className:"border-t border-border/50 bg-card/50 p-4",children:m.jsxs(bo,{onClick:oe,disabled:ee||!Le,className:"h-11 w-full rounded-xl bg-blue-600 text-white hover:bg-blue-700",children:[ee?m.jsx(sa,{className:"mr-2 h-4 w-4 animate-spin"}):m.jsx(yf,{className:"mr-2 h-4 w-4"}),n("生成","Generate")]})})]}):Ce()})]})})}),m.jsx(TY,{open:X,onOpenChange:q,onClear:Ee}),m.jsx(D4e,{open:te,onOpenChange:J,history:ce,onRestore:ve,onClear:()=>ye([])})]})}function C4e(){return m.jsx(yR,{mode:"poster"})}function T4e(){return m.jsx(C4e,{})}function _4e(){return m.jsx(yR,{mode:"infographic"})}function E4e(){return m.jsx(_4e,{})}function N4e(){return m.jsx(yR,{mode:"product"})}function F4e(){return m.jsx(N4e,{})}const hB="CanvasAnvil-app-view-v1",pB="CanvasAnvil-active-workspace-v1";function R4e({className:e}){return m.jsx("span",{className:gt("inline-flex h-10 w-10 shrink-0 items-center justify-center",e),children:m.jsxs("svg",{viewBox:"0 0 48 48",role:"img","aria-label":"CanvasAnvil",className:"h-full w-full drop-shadow-[0_8px_18px_rgba(35,108,255,0.22)]",children:[m.jsx("path",{d:"M24 3.8 42 12.8 24 21.8 6 12.8 24 3.8Z",fill:"#236CFF"}),m.jsx("path",{d:"M24 8.6 32.4 12.8 24 17 15.6 12.8 24 8.6Z",fill:"#8EC1FF"}),m.jsx("path",{d:"M8.8 17.5 24 25.1l15.2-7.6v5.7L24 30.8 8.8 23.2v-5.7Z",fill:"#0B77F4"}),m.jsx("path",{d:"M16.5 29.3h15l-2.7 4.4h-9.6l-2.7-4.4Z",fill:"#053EA8"}),m.jsx("path",{d:"M13.3 36.6h21.4v4.2H13.3v-4.2Z",fill:"#236CFF"}),m.jsx("path",{d:"M10 41.4h28v3.4H10v-3.4Z",fill:"#053EA8"})]})})}class P4e extends Dt.Component{constructor(){super(...arguments);Y5(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n){console.error("UI crashed",n)}render(){var n;if(this.state.error){const r=bs();return m.jsx("div",{className:"w-full h-full flex items-center justify-center p-6",children:m.jsxs("div",{className:"max-w-[720px] w-full rounded-xl border border-border/60 bg-background p-5",children:[m.jsx("div",{className:"text-base font-medium mb-2",children:"UI Error"}),m.jsx("div",{className:"text-sm text-muted-foreground whitespace-pre-wrap break-words mb-4",children:String(((n=this.state.error)==null?void 0:n.message)||"Unknown error")}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(bo,{variant:"default",onClick:()=>window.location.reload(),children:an(r,"app.refresh")}),m.jsx(bo,{variant:"outline",onClick:()=>this.setState({error:null}),children:an(r,"app.tryContinue")})]})]})})}return this.props.children}}function I4e(){const e=pa(),[t,n]=N.useState(()=>{if(typeof window>"u")return!0;const a=localStorage.getItem(hB);return a!=="workspace"}),[r,i]=N.useState(()=>{if(typeof window>"u")return"flow";const a=localStorage.getItem(pB);return a==="cad"||a==="ppt"||a==="flow"||a==="poster"||a==="infographic"||a==="product"?a:"flow"});return Dt.useEffect(()=>{typeof window>"u"||localStorage.setItem(hB,t?"landing":"workspace")},[t]),Dt.useEffect(()=>{typeof window>"u"||localStorage.setItem(pB,r)},[r]),t?m.jsx(Ode,{onStart:a=>{a&&i(a),n(!1)}}):m.jsxs("div",{className:"h-screen w-screen flex flex-col bg-background overflow-hidden font-sans",children:[m.jsx(xB,{position:"top-center",richColors:!0}),m.jsxs("header",{className:"h-16 border-b border-border/40 grid grid-cols-[1fr_auto_1fr] items-center gap-4 px-6 bg-background/80 backdrop-blur-md supports-[backdrop-filter]:bg-background/60 z-50 shadow-sm",children:[m.jsxs("div",{className:"flex items-center gap-2.5 font-semibold text-lg tracking-tight text-foreground/90 cursor-pointer justify-self-start",onClick:()=>n(!0),children:[m.jsx(R4e,{className:"h-10 w-10"}),m.jsx("span",{children:"CanvasAnvil"})]}),m.jsx("div",{className:"justify-self-center max-w-full overflow-x-auto",children:m.jsxs("div",{className:"flex min-w-max items-center bg-muted/50 p-1 rounded-xl border border-border/50 shadow-inner",children:[m.jsxs("button",{onClick:()=>i("flow"),className:gt("flex items-center gap-2 px-4 py-1.5 rounded-lg text-sm font-medium transition-all duration-300 ease-out",r==="flow"?"bg-background text-foreground shadow-sm ring-1 ring-border/50 scale-100":"text-muted-foreground hover:text-foreground hover:bg-background/50"),children:[m.jsx(mE,{className:"w-4 h-4"}),an(e,"nav.flow")]}),m.jsxs("button",{onClick:()=>i("cad"),className:gt("flex items-center gap-2 px-4 py-1.5 rounded-lg text-sm font-medium transition-all duration-300 ease-out",r==="cad"?"bg-background text-foreground shadow-sm ring-1 ring-border/50 scale-100":"text-muted-foreground hover:text-foreground hover:bg-background/50"),children:[m.jsx(eu,{className:"w-4 h-4"}),an(e,"nav.cad")]}),m.jsxs("button",{onClick:()=>i("ppt"),className:gt("flex items-center gap-2 px-4 py-1.5 rounded-lg text-sm font-medium transition-all duration-300 ease-out",r==="ppt"?"bg-background text-foreground shadow-sm ring-1 ring-border/50 scale-100":"text-muted-foreground hover:text-foreground hover:bg-background/50"),children:[m.jsx(Nf,{className:"w-4 h-4"}),an(e,"nav.ppt")]}),m.jsxs("button",{onClick:()=>i("poster"),className:gt("flex items-center gap-2 px-3 py-1.5 rounded-lg text-sm font-medium transition-all duration-300 ease-out",r==="poster"?"bg-background text-foreground shadow-sm ring-1 ring-border/50 scale-100":"text-muted-foreground hover:text-foreground hover:bg-background/50"),children:[m.jsx(xE,{className:"w-4 h-4"}),an(e,"nav.poster")]}),m.jsxs("button",{onClick:()=>i("infographic"),className:gt("flex items-center gap-2 px-3 py-1.5 rounded-lg text-sm font-medium transition-all duration-300 ease-out",r==="infographic"?"bg-background text-foreground shadow-sm ring-1 ring-border/50 scale-100":"text-muted-foreground hover:text-foreground hover:bg-background/50"),children:[m.jsx(Zp,{className:"w-4 h-4"}),an(e,"nav.infographic")]}),m.jsxs("button",{onClick:()=>i("product"),className:gt("flex items-center gap-2 px-3 py-1.5 rounded-lg text-sm font-medium transition-all duration-300 ease-out",r==="product"?"bg-background text-foreground shadow-sm ring-1 ring-border/50 scale-100":"text-muted-foreground hover:text-foreground hover:bg-background/50"),children:[m.jsx(kA,{className:"w-4 h-4"}),an(e,"nav.product")]})]})}),m.jsx("div",{className:"w-48 flex justify-end justify-self-end",children:m.jsx(Zoe,{})})]}),m.jsx("div",{className:"flex-1 overflow-hidden relative",children:m.jsxs(P4e,{children:[r==="flow"&&m.jsx(iCe,{}),r==="cad"&&m.jsx(RPe,{}),r==="ppt"&&m.jsx(p4e,{}),r==="poster"&&m.jsx(T4e,{}),r==="infographic"&&m.jsx(E4e,{}),r==="product"&&m.jsx(F4e,{})]})})]})}FJ.createRoot(document.getElementById("root")).render(m.jsx(N.StrictMode,{children:m.jsx(I4e,{})}));diff --git a/.tmp-online-pptist.js b/.tmp-online-pptist.jsdeleted file mode 100644index 0275e2b..0000000--- a/.tmp-online-pptist.js+++ /dev/null@@ -1,364 +0,0 @@-var TIe=Object.defineProperty;var OIe=(t,e,n)=>e in t?TIe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Ja=(t,e,n)=>OIe(t,typeof e!="symbol"?e+"":e,n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();/**-* @vue/shared v3.5.17-* (c) 2018-present Yuxi (Evan) You and Vue contributors-* @license MIT-**//*! #__NO_SIDE_EFFECTS__ */function sD(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const xr={},Px=[],vu=()=>{},PIe=()=>!1,n8=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),FJ=t=>t.startsWith("onUpdate:"),fa=Object.assign,XJ=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},CIe=Object.prototype.hasOwnProperty,Wr=(t,e)=>CIe.call(t,e),rn=Array.isArray,Cx=t=>_S(t)==="[object Map]",gy=t=>_S(t)==="[object Set]",ohe=t=>_S(t)==="[object Date]",NIe=t=>_S(t)==="[object RegExp]",Ln=t=>typeof t=="function",xa=t=>typeof t=="string",Ff=t=>typeof t=="symbol",sa=t=>t!==null&&typeof t=="object",DJ=t=>(sa(t)||Ln(t))&&Ln(t.then)&&Ln(t.catch),GRe=Object.prototype.toString,_S=t=>GRe.call(t),IIe=t=>_S(t).slice(8,-1),lD=t=>_S(t)==="[object Object]",VJ=t=>xa(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Nx=sD(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cD=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},kIe=/-(\w)/g,Do=cD(t=>t.replace(kIe,(e,n)=>n?n.toUpperCase():"")),EIe=/\B([A-Z])/g,hl=cD(t=>t.replace(EIe,"-$1").toLowerCase()),r8=cD(t=>t.charAt(0).toUpperCase()+t.slice(1)),b_=cD(t=>t?`on${r8(t)}`:""),Es=(t,e)=>!Object.is(t,e),Ix=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},GH=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},pF=t=>{const e=parseFloat(t);return isNaN(e)?t:e},vF=t=>{const e=xa(t)?Number(t):NaN;return isNaN(e)?t:e};let she;const uD=()=>she||(she=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),FIe="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",XIe=sD(FIe);function We(t){if(rn(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],a=xa(r)?WIe(r):We(r);if(a)for(const i in a)e[i]=a[i]}return e}else if(xa(t)||sa(t))return t}const DIe=/;(?![^(]*\))/g,VIe=/:([^]+)/,UIe=/\/\*[^]*?\*\//g;function WIe(t){const e={};return t.replace(UIe,"").split(DIe).forEach(n=>{if(n){const r=n.split(VIe);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function mt(t){let e="";if(xa(t))e=t;else if(rn(t))for(let n=0;n<t.length;n++){const r=mt(t[n]);r&&(e+=r+" ")}else if(sa(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function YIe(t){if(!t)return null;let{class:e,style:n}=t;return e&&!xa(e)&&(t.class=mt(e)),n&&(t.style=We(n)),t}const BIe="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ZIe=sD(BIe);function $Re(t){return!!t||t===""}function QIe(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=U1(t[r],e[r]);return n}function U1(t,e){if(t===e)return!0;let n=ohe(t),r=ohe(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Ff(t),r=Ff(e),n||r)return t===e;if(n=rn(t),r=rn(e),n||r)return n&&r?QIe(t,e):!1;if(n=sa(t),r=sa(e),n||r){if(!n||!r)return!1;const a=Object.keys(t).length,i=Object.keys(e).length;if(a!==i)return!1;for(const o in t){const s=t.hasOwnProperty(o),l=e.hasOwnProperty(o);if(s&&!l||!s&&l||!U1(t[o],e[o]))return!1}}return String(t)===String(e)}function fD(t,e){return t.findIndex(n=>U1(n,e))}const zRe=t=>!!(t&&t.__v_isRef===!0),Vt=t=>xa(t)?t:t==null?"":rn(t)||sa(t)&&(t.toString===GRe||!Ln(t.toString))?zRe(t)?Vt(t.value):JSON.stringify(t,JRe,2):String(t),JRe=(t,e)=>zRe(e)?JRe(t,e.value):Cx(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,a],i)=>(n[GB(r,i)+" =>"]=a,n),{})}:gy(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>GB(n))}:Ff(e)?GB(e):sa(e)&&!rn(e)&&!lD(e)?String(e):e,GB=(t,e="")=>{var n;return Ff(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**-* @vue/reactivity v3.5.17-* (c) 2018-present Yuxi (Evan) You and Vue contributors-* @license MIT-**/let rs;class UJ{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=rs,!e&&rs&&(this.index=(rs.scopes||(rs.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=rs;try{return rs=this,e()}finally{rs=n}}}on(){++this._on===1&&(this.prevScope=rs,rs=this)}off(){this._on>0&&--this._on===0&&(rs=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function WJ(t){return new UJ(t)}function YJ(){return rs}function jRe(t,e=!1){rs&&rs.cleanups.push(t)}let ya;const $B=new WeakSet;class fw{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,rs&&rs.active&&rs.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,$B.has(this)&&($B.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ebe(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,lhe(this),tbe(this);const e=ya,n=Nf;ya=this,Nf=!0;try{return this.fn()}finally{nbe(this),ya=e,Nf=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)QJ(e);this.deps=this.depsTail=void 0,lhe(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?$B.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$H(this)&&this.run()}get dirty(){return $H(this)}}let qRe=0,x_,S_;function ebe(t,e=!1){if(t.flags|=8,e){t.next=S_,S_=t;return}t.next=x_,x_=t}function BJ(){qRe++}function ZJ(){if(--qRe>0)return;if(S_){let e=S_;for(S_=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;x_;){let e=x_;for(x_=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function tbe(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function nbe(t){let e,n=t.depsTail,r=n;for(;r;){const a=r.prevDep;r.version===-1?(r===n&&(n=a),QJ(r),KIe(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=a}t.deps=e,t.depsTail=n}function $H(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(rbe(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function rbe(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===dw)||(t.globalVersion=dw,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!$H(t))))return;t.flags|=2;const e=t.dep,n=ya,r=Nf;ya=t,Nf=!0;try{tbe(t);const a=t.fn(t._value);(e.version===0||Es(a,t._value))&&(t.flags|=128,t._value=a,e.version++)}catch(a){throw e.version++,a}finally{ya=n,Nf=r,nbe(t),t.flags&=-3}}function QJ(t,e=!1){const{dep:n,prevSub:r,nextSub:a}=t;if(r&&(r.nextSub=a,t.prevSub=void 0),a&&(a.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)QJ(i,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function KIe(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}function HIe(t,e){t.effect instanceof fw&&(t=t.effect.fn);const n=new fw(t);e&&fa(n,e);try{n.run()}catch(a){throw n.stop(),a}const r=n.run.bind(n);return r.effect=n,r}function GIe(t){t.effect.stop()}let Nf=!0;const abe=[];function h0(){abe.push(Nf),Nf=!1}function p0(){const t=abe.pop();Nf=t===void 0?!0:t}function lhe(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=ya;ya=void 0;try{e()}finally{ya=n}}}let dw=0;class $Ie{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class dD{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ya||!Nf||ya===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ya)n=this.activeLink=new $Ie(ya,this),ya.deps?(n.prevDep=ya.depsTail,ya.depsTail.nextDep=n,ya.depsTail=n):ya.deps=ya.depsTail=n,ibe(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ya.depsTail,n.nextDep=void 0,ya.depsTail.nextDep=n,ya.depsTail=n,ya.deps===n&&(ya.deps=r)}return n}trigger(e){this.version++,dw++,this.notify(e)}notify(e){BJ();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ZJ()}}}function ibe(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)ibe(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const gF=new WeakMap,Y2=Symbol(""),zH=Symbol(""),hw=Symbol("");function ss(t,e,n){if(Nf&&ya){let r=gF.get(t);r||gF.set(t,r=new Map);let a=r.get(n);a||(r.set(n,a=new dD),a.map=r,a.key=n),a.track()}}function e0(t,e,n,r,a,i){const o=gF.get(t);if(!o){dw++;return}const s=l=>{l&&l.trigger()};if(BJ(),e==="clear")o.forEach(s);else{const l=rn(t),c=l&&VJ(n);if(l&&n==="length"){const u=Number(r);o.forEach((f,d)=>{(d==="length"||d===hw||!Ff(d)&&d>=u)&&s(f)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),c&&s(o.get(hw)),e){case"add":l?c&&s(o.get("length")):(s(o.get(Y2)),Cx(t)&&s(o.get(zH)));break;case"delete":l||(s(o.get(Y2)),Cx(t)&&s(o.get(zH)));break;case"set":Cx(t)&&s(o.get(Y2));break}}ZJ()}function zIe(t,e){const n=gF.get(t);return n&&n.get(e)}function pb(t){const e=yr(t);return e===t?e:(ss(e,"iterate",hw),pc(t)?e:e.map(Co))}function hD(t){return ss(t=yr(t),"iterate",hw),t}const JIe={__proto__:null,[Symbol.iterator](){return zB(this,Symbol.iterator,Co)},concat(...t){return pb(this).concat(...t.map(e=>rn(e)?pb(e):e))},entries(){return zB(this,"entries",t=>(t[1]=Co(t[1]),t))},every(t,e){return Ep(this,"every",t,e,void 0,arguments)},filter(t,e){return Ep(this,"filter",t,e,n=>n.map(Co),arguments)},find(t,e){return Ep(this,"find",t,e,Co,arguments)},findIndex(t,e){return Ep(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Ep(this,"findLast",t,e,Co,arguments)},findLastIndex(t,e){return Ep(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Ep(this,"forEach",t,e,void 0,arguments)},includes(...t){return JB(this,"includes",t)},indexOf(...t){return JB(this,"indexOf",t)},join(t){return pb(this).join(t)},lastIndexOf(...t){return JB(this,"lastIndexOf",t)},map(t,e){return Ep(this,"map",t,e,void 0,arguments)},pop(){return i5(this,"pop")},push(...t){return i5(this,"push",t)},reduce(t,...e){return che(this,"reduce",t,e)},reduceRight(t,...e){return che(this,"reduceRight",t,e)},shift(){return i5(this,"shift")},some(t,e){return Ep(this,"some",t,e,void 0,arguments)},splice(...t){return i5(this,"splice",t)},toReversed(){return pb(this).toReversed()},toSorted(t){return pb(this).toSorted(t)},toSpliced(...t){return pb(this).toSpliced(...t)},unshift(...t){return i5(this,"unshift",t)},values(){return zB(this,"values",Co)}};function zB(t,e,n){const r=hD(t),a=r[e]();return r!==t&&!pc(t)&&(a._next=a.next,a.next=()=>{const i=a._next();return i.value&&(i.value=n(i.value)),i}),a}const jIe=Array.prototype;function Ep(t,e,n,r,a,i){const o=hD(t),s=o!==t&&!pc(t),l=o[e];if(l!==jIe[e]){const f=l.apply(t,i);return s?Co(f):f}let c=n;o!==t&&(s?c=function(f,d){return n.call(this,Co(f),d,t)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,t)}));const u=l.call(o,c,r);return s&&a?a(u):u}function che(t,e,n,r){const a=hD(t);let i=n;return a!==t&&(pc(t)?n.length>3&&(i=function(o,s,l){return n.call(this,o,s,l,t)}):i=function(o,s,l){return n.call(this,o,Co(s),l,t)}),a[e](i,...r)}function JB(t,e,n){const r=yr(t);ss(r,"iterate",hw);const a=r[e](...n);return(a===-1||a===!1)&&gD(n[0])?(n[0]=yr(n[0]),r[e](...n)):a}function i5(t,e,n=[]){h0(),BJ();const r=yr(t)[e].apply(t,n);return ZJ(),p0(),r}const qIe=sD("__proto__,__v_isRef,__isVue"),obe=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Ff));function eke(t){Ff(t)||(t=String(t));const e=yr(this);return ss(e,"has",t),e.hasOwnProperty(t)}class sbe{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const a=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!a;if(n==="__v_isReadonly")return a;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(a?i?hbe:dbe:i?fbe:ube).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=rn(e);if(!a){let l;if(o&&(l=JIe[n]))return l;if(n==="hasOwnProperty")return eke}const s=Reflect.get(e,n,ba(e)?e:r);return(Ff(n)?obe.has(n):qIe(n))||(a||ss(e,"get",n),i)?s:ba(s)?o&&VJ(n)?s:s.value:sa(s)?a?KJ(s):a8(s):s}}class lbe extends sbe{constructor(e=!1){super(!1,e)}set(e,n,r,a){let i=e[n];if(!this._isShallow){const l=v0(i);if(!pc(r)&&!v0(r)&&(i=yr(i),r=yr(r)),!rn(e)&&ba(i)&&!ba(r))return l?!1:(i.value=r,!0)}const o=rn(e)&&VJ(n)?Number(n)<e.length:Wr(e,n),s=Reflect.set(e,n,r,ba(e)?e:a);return e===yr(a)&&(o?Es(r,i)&&e0(e,"set",n,r):e0(e,"add",n,r)),s}deleteProperty(e,n){const r=Wr(e,n);e[n];const a=Reflect.deleteProperty(e,n);return a&&r&&e0(e,"delete",n,void 0),a}has(e,n){const r=Reflect.has(e,n);return(!Ff(n)||!obe.has(n))&&ss(e,"has",n),r}ownKeys(e){return ss(e,"iterate",rn(e)?"length":Y2),Reflect.ownKeys(e)}}class cbe extends sbe{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const tke=new lbe,nke=new cbe,rke=new lbe(!0),ake=new cbe(!0),JH=t=>t,Kk=t=>Reflect.getPrototypeOf(t);function ike(t,e,n){return function(...r){const a=this.__v_raw,i=yr(a),o=Cx(i),s=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=a[t](...r),u=n?JH:e?mF:Co;return!e&&ss(i,"iterate",l?zH:Y2),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:s?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Hk(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function oke(t,e){const n={get(a){const i=this.__v_raw,o=yr(i),s=yr(a);t||(Es(a,s)&&ss(o,"get",a),ss(o,"get",s));const{has:l}=Kk(o),c=e?JH:t?mF:Co;if(l.call(o,a))return c(i.get(a));if(l.call(o,s))return c(i.get(s));i!==o&&i.get(a)},get size(){const a=this.__v_raw;return!t&&ss(yr(a),"iterate",Y2),Reflect.get(a,"size",a)},has(a){const i=this.__v_raw,o=yr(i),s=yr(a);return t||(Es(a,s)&&ss(o,"has",a),ss(o,"has",s)),a===s?i.has(a):i.has(a)||i.has(s)},forEach(a,i){const o=this,s=o.__v_raw,l=yr(s),c=e?JH:t?mF:Co;return!t&&ss(l,"iterate",Y2),s.forEach((u,f)=>a.call(i,c(u),c(f),o))}};return fa(n,t?{add:Hk("add"),set:Hk("set"),delete:Hk("delete"),clear:Hk("clear")}:{add(a){!e&&!pc(a)&&!v0(a)&&(a=yr(a));const i=yr(this);return Kk(i).has.call(i,a)||(i.add(a),e0(i,"add",a,a)),this},set(a,i){!e&&!pc(i)&&!v0(i)&&(i=yr(i));const o=yr(this),{has:s,get:l}=Kk(o);let c=s.call(o,a);c||(a=yr(a),c=s.call(o,a));const u=l.call(o,a);return o.set(a,i),c?Es(i,u)&&e0(o,"set",a,i):e0(o,"add",a,i),this},delete(a){const i=yr(this),{has:o,get:s}=Kk(i);let l=o.call(i,a);l||(a=yr(a),l=o.call(i,a)),s&&s.call(i,a);const c=i.delete(a);return l&&e0(i,"delete",a,void 0),c},clear(){const a=yr(this),i=a.size!==0,o=a.clear();return i&&e0(a,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(a=>{n[a]=ike(a,t,e)}),n}function pD(t,e){const n=oke(t,e);return(r,a,i)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?r:Reflect.get(Wr(n,a)&&a in r?n:r,a,i)}const ske={get:pD(!1,!1)},lke={get:pD(!1,!0)},cke={get:pD(!0,!1)},uke={get:pD(!0,!0)},ube=new WeakMap,fbe=new WeakMap,dbe=new WeakMap,hbe=new WeakMap;function fke(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dke(t){return t.__v_skip||!Object.isExtensible(t)?0:fke(IIe(t))}function a8(t){return v0(t)?t:vD(t,!1,tke,ske,ube)}function pbe(t){return vD(t,!1,rke,lke,fbe)}function KJ(t){return vD(t,!0,nke,cke,dbe)}function hke(t){return vD(t,!0,ake,uke,hbe)}function vD(t,e,n,r,a){if(!sa(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=dke(t);if(i===0)return t;const o=a.get(t);if(o)return o;const s=new Proxy(t,i===2?r:n);return a.set(t,s),s}function If(t){return v0(t)?If(t.__v_raw):!!(t&&t.__v_isReactive)}function v0(t){return!!(t&&t.__v_isReadonly)}function pc(t){return!!(t&&t.__v_isShallow)}function gD(t){return t?!!t.__v_raw:!1}function yr(t){const e=t&&t.__v_raw;return e?yr(e):t}function vt(t){return!Wr(t,"__v_skip")&&Object.isExtensible(t)&&GH(t,"__v_skip",!0),t}const Co=t=>sa(t)?a8(t):t,mF=t=>sa(t)?KJ(t):t;function ba(t){return t?t.__v_isRef===!0:!1}function we(t){return gbe(t,!1)}function vbe(t){return gbe(t,!0)}function gbe(t,e){return ba(t)?t:new pke(t,e)}class pke{constructor(e,n){this.dep=new dD,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:yr(e),this._value=n?e:Co(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||pc(e)||v0(e);e=r?e:yr(e),Es(e,n)&&(this._rawValue=e,this._value=r?e:Co(e),this.dep.trigger())}}function vke(t){t.dep&&t.dep.trigger()}function te(t){return ba(t)?t.value:t}function gke(t){return Ln(t)?t():te(t)}const mke={get:(t,e,n)=>e==="__v_raw"?t:te(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const a=t[e];return ba(a)&&!ba(n)?(a.value=n,!0):Reflect.set(t,e,n,r)}};function HJ(t){return If(t)?t:new Proxy(t,mke)}class yke{constructor(e){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new dD,{get:r,set:a}=e(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=a}get value(){return this._value=this._get()}set value(e){this._set(e)}}function mbe(t){return new yke(t)}function ybe(t){const e=rn(t)?new Array(t.length):{};for(const n in t)e[n]=Abe(t,n);return e}class Ake{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return zIe(yr(this._object),this._key)}}class Rke{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function wS(t,e,n){return ba(t)?t:Ln(t)?new Rke(t):sa(t)&&arguments.length>1?Abe(t,e,n):we(t)}function Abe(t,e,n){const r=t[e];return ba(r)?r:new Ake(t,e,n)}class bke{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new dD(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=dw-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ya!==this)return ebe(this,!0),!0}get value(){const e=this.dep.track();return rbe(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function xke(t,e,n=!1){let r,a;return Ln(t)?r=t:(r=t.get,a=t.set),new bke(r,a,n)}const Ske={GET:"get",HAS:"has",ITERATE:"iterate"},Mke={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Gk={},yF=new WeakMap;let n1;function _ke(){return n1}function Rbe(t,e=!1,n=n1){if(n){let r=yF.get(n);r||yF.set(n,r=[]),r.push(t)}}function wke(t,e,n=xr){const{immediate:r,deep:a,once:i,scheduler:o,augmentJob:s,call:l}=n,c=A=>a?A:pc(A)||a===!1||a===0?t0(A,1):t0(A);let u,f,d,h,p=!1,v=!1;if(ba(t)?(f=()=>t.value,p=pc(t)):If(t)?(f=()=>c(t),p=!0):rn(t)?(v=!0,p=t.some(A=>If(A)||pc(A)),f=()=>t.map(A=>{if(ba(A))return A.value;if(If(A))return c(A);if(Ln(A))return l?l(A,2):A()})):Ln(t)?e?f=l?()=>l(t,2):t:f=()=>{if(d){h0();try{d()}finally{p0()}}const A=n1;n1=u;try{return l?l(t,3,[h]):t(h)}finally{n1=A}}:f=vu,e&&a){const A=f,x=a===!0?1/0:a;f=()=>t0(A(),x)}const g=YJ(),y=()=>{u.stop(),g&&g.active&&XJ(g.effects,u)};if(i&&e){const A=e;e=(...x)=>{A(...x),y()}}let m=v?new Array(t.length).fill(Gk):Gk;const R=A=>{if(!(!(u.flags&1)||!u.dirty&&!A))if(e){const x=u.run();if(a||p||(v?x.some((M,S)=>Es(M,m[S])):Es(x,m))){d&&d();const M=n1;n1=u;try{const S=[x,m===Gk?void 0:v&&m[0]===Gk?[]:m,h];m=x,l?l(e,3,S):e(...S)}finally{n1=M}}}else u.run()};return s&&s(R),u=new fw(f),u.scheduler=o?()=>o(R,!1):R,h=A=>Rbe(A,!1,u),d=u.onStop=()=>{const A=yF.get(u);if(A){if(l)l(A,4);else for(const x of A)x();yF.delete(u)}},e?r?R(!0):m=u.run():o?o(R.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function t0(t,e=1/0,n){if(e<=0||!sa(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,ba(t))t0(t.value,e,n);else if(rn(t))for(let r=0;r<t.length;r++)t0(t[r],e,n);else if(gy(t)||Cx(t))t.forEach(r=>{t0(r,e,n)});else if(lD(t)){for(const r in t)t0(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&t0(t[r],e,n)}return t}/**-* @vue/runtime-core v3.5.17-* (c) 2018-present Yuxi (Evan) You and Vue contributors-* @license MIT-**/const bbe=[];function Lke(t){bbe.push(t)}function Tke(){bbe.pop()}function Oke(t,e){}const Pke={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},Cke={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function LS(t,e,n,r){try{return r?t(...r):t()}catch(a){my(a,e,n)}}function Ru(t,e,n,r){if(Ln(t)){const a=LS(t,e,n,r);return a&&DJ(a)&&a.catch(i=>{my(i,e,n)}),a}if(rn(t)){const a=[];for(let i=0;i<t.length;i++)a.push(Ru(t[i],e,n,r));return a}}function my(t,e,n,r=!0){const a=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||xr;if(e){let s=e.parent;const l=e.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const u=s.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](t,l,c)===!1)return}s=s.parent}if(i){h0(),LS(i,null,10,[t,l,c]),p0();return}}Nke(t,n,a,r,o)}function Nke(t,e,n,r=!0,a=!1){if(a)throw t;console.error(t)}const Fs=[];let jd=-1;const kx=[];let r1=null,zb=0;const xbe=Promise.resolve();let AF=null;function qr(t){const e=AF||xbe;return t?e.then(this?t.bind(this):t):e}function Ike(t){let e=jd+1,n=Fs.length;for(;e<n;){const r=e+n>>>1,a=Fs[r],i=vw(a);i<t||i===t&&a.flags&2?e=r+1:n=r}return e}function GJ(t){if(!(t.flags&1)){const e=vw(t),n=Fs[Fs.length-1];!n||!(t.flags&2)&&e>=vw(n)?Fs.push(t):Fs.splice(Ike(e),0,t),t.flags|=1,Sbe()}}function Sbe(){AF||(AF=xbe.then(Mbe))}function pw(t){rn(t)?kx.push(...t):r1&&t.id===-1?r1.splice(zb+1,0,t):t.flags&1||(kx.push(t),t.flags|=1),Sbe()}function uhe(t,e,n=jd+1){for(;n<Fs.length;n++){const r=Fs[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;Fs.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function RF(t){if(kx.length){const e=[...new Set(kx)].sort((n,r)=>vw(n)-vw(r));if(kx.length=0,r1){r1.push(...e);return}for(r1=e,zb=0;zb<r1.length;zb++){const n=r1[zb];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}r1=null,zb=0}}const vw=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Mbe(t){try{for(jd=0;jd<Fs.length;jd++){const e=Fs[jd];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),LS(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;jd<Fs.length;jd++){const e=Fs[jd];e&&(e.flags&=-2)}jd=-1,Fs.length=0,RF(),AF=null,(Fs.length||kx.length)&&Mbe()}}let Jb,$k=[];function _be(t,e){var n,r;Jb=t,Jb?(Jb.enabled=!0,$k.forEach(({event:a,args:i})=>Jb.emit(a,...i)),$k=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{_be(i,e)}),setTimeout(()=>{Jb||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,$k=[])},3e3)):$k=[]}let $i=null,mD=null;function gw(t){const e=$i;return $i=t,mD=t&&t.type.__scopeId||null,e}function kke(t){mD=t}function Eke(){mD=null}const Fke=t=>pe;function pe(t,e=$i,n){if(!e||t._n)return t;const r=(...a)=>{r._d&&iG(-1);const i=gw(e);let o;try{o=t(...a)}finally{gw(i),r._d&&iG(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function yt(t,e){if($i===null)return t;const n=s8($i),r=t.dirs||(t.dirs=[]);for(let a=0;a<e.length;a++){let[i,o,s,l=xr]=e[a];i&&(Ln(i)&&(i={mounted:i,updated:i}),i.deep&&t0(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:s,modifiers:l}))}return t}function rh(t,e,n,r){const a=t.dirs,i=e&&e.dirs;for(let o=0;o<a.length;o++){const s=a[o];i&&(s.oldValue=i[o].value);let l=s.dir[r];l&&(h0(),Ru(l,n,8,[t.el,s,t,e]),p0())}}const wbe=Symbol("_vte"),Lbe=t=>t.__isTeleport,M_=t=>t&&(t.disabled||t.disabled===""),fhe=t=>t&&(t.defer||t.defer===""),dhe=t=>typeof SVGElement<"u"&&t instanceof SVGElement,hhe=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,jH=(t,e)=>{const n=t&&t.to;return xa(n)?e?e(n):null:n},Tbe={name:"Teleport",__isTeleport:!0,process(t,e,n,r,a,i,o,s,l,c){const{mc:u,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:v,createComment:g}}=c,y=M_(e.props);let{shapeFlag:m,children:R,dynamicChildren:A}=e;if(t==null){const x=e.el=v(""),M=e.anchor=v("");h(x,n,r),h(M,n,r);const S=(_,T)=>{m&16&&(a&&a.isCE&&(a.ce._teleportTarget=_),u(R,_,T,a,i,o,s,l))},w=()=>{const _=e.target=jH(e.props,p),T=Obe(_,e,v,h);_&&(o!=="svg"&&dhe(_)?o="svg":o!=="mathml"&&hhe(_)&&(o="mathml"),y||(S(_,T),xE(e,!1)))};y&&(S(n,M),xE(e,!0)),fhe(e.props)?(e.el.__isMounted=!1,Ki(()=>{w(),delete e.el.__isMounted},i)):w()}else{if(fhe(e.props)&&t.el.__isMounted===!1){Ki(()=>{Tbe.process(t,e,n,r,a,i,o,s,l,c)},i);return}e.el=t.el,e.targetStart=t.targetStart;const x=e.anchor=t.anchor,M=e.target=t.target,S=e.targetAnchor=t.targetAnchor,w=M_(t.props),_=w?n:M,T=w?x:S;if(o==="svg"||dhe(M)?o="svg":(o==="mathml"||hhe(M))&&(o="mathml"),A?(d(t.dynamicChildren,A,_,a,i,o,s),sj(t,e,!0)):l||f(t,e,_,T,a,i,o,s,!1),y)w?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):zk(e,n,x,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const O=e.target=jH(e.props,p);O&&zk(e,O,null,c,0)}else w&&zk(e,M,S,c,1);xE(e,y)}},remove(t,e,n,{um:r,o:{remove:a}},i){const{shapeFlag:o,children:s,anchor:l,targetStart:c,targetAnchor:u,target:f,props:d}=t;if(f&&(a(c),a(u)),i&&a(l),o&16){const h=i||!M_(d);for(let p=0;p<s.length;p++){const v=s[p];r(v,e,n,h,!!v.dynamicChildren)}}},move:zk,hydrate:Xke};function zk(t,e,n,{o:{insert:r},m:a},i=2){i===0&&r(t.targetAnchor,e,n);const{el:o,anchor:s,shapeFlag:l,children:c,props:u}=t,f=i===2;if(f&&r(o,e,n),(!f||M_(u))&&l&16)for(let d=0;d<c.length;d++)a(c[d],e,n,2);f&&r(s,e,n)}function Xke(t,e,n,r,a,i,{o:{nextSibling:o,parentNode:s,querySelector:l,insert:c,createText:u}},f){const d=e.target=jH(e.props,l);if(d){const h=M_(e.props),p=d._lpa||d.firstChild;if(e.shapeFlag&16)if(h)e.anchor=f(o(t),e,s(t),n,r,a,i),e.targetStart=p,e.targetAnchor=p&&o(p);else{e.anchor=o(t);let v=p;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")e.targetStart=v;else if(v.data==="teleport anchor"){e.targetAnchor=v,d._lpa=e.targetAnchor&&o(e.targetAnchor);break}}v=o(v)}e.targetAnchor||Obe(d,e,u,c),f(p&&o(p),e,d,n,r,a,i)}xE(e,h)}return e.anchor&&o(e.anchor)}const $J=Tbe;function xE(t,e){const n=t.ctx;if(n&&n.ut){let r,a;for(e?(r=t.el,a=t.anchor):(r=t.targetStart,a=t.targetAnchor);r&&r!==a;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Obe(t,e,n,r){const a=e.targetStart=n(""),i=e.targetAnchor=n("");return a[wbe]=i,t&&(r(a,t),r(i,t)),i}const a1=Symbol("_leaveCb"),Jk=Symbol("_enterCb");function zJ(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return mn(()=>{t.isMounted=!0}),tg(()=>{t.isUnmounting=!0}),t}const Jc=[Function,Array],JJ={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Jc,onEnter:Jc,onAfterEnter:Jc,onEnterCancelled:Jc,onBeforeLeave:Jc,onLeave:Jc,onAfterLeave:Jc,onLeaveCancelled:Jc,onBeforeAppear:Jc,onAppear:Jc,onAfterAppear:Jc,onAppearCancelled:Jc},Pbe=t=>{const e=t.subTree;return e.component?Pbe(e.component):e},Dke={name:"BaseTransition",props:JJ,setup(t,{slots:e}){const n=wu(),r=zJ();return()=>{const a=e.default&&yD(e.default(),!0);if(!a||!a.length)return;const i=Cbe(a),o=yr(t),{mode:s}=o;if(r.isLeaving)return jB(i);const l=phe(i);if(!l)return jB(i);let c=$x(l,o,r,n,f=>c=f);l.type!==vi&&g0(l,c);let u=n.subTree&&phe(n.subTree);if(u&&u.type!==vi&&!wf(l,u)&&Pbe(n).type!==vi){let f=$x(u,o,r,n);if(g0(u,f),s==="out-in"&&l.type!==vi)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},jB(i);s==="in-out"&&l.type!==vi?f.delayLeave=(d,h,p)=>{const v=Ibe(r,u);v[String(u.key)]=u,d[a1]=()=>{h(),d[a1]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function Cbe(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==vi){e=n;break}}return e}const Nbe=Dke;function Ibe(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function $x(t,e,n,r,a){const{appear:i,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:p,onLeaveCancelled:v,onBeforeAppear:g,onAppear:y,onAfterAppear:m,onAppearCancelled:R}=e,A=String(t.key),x=Ibe(n,t),M=(_,T)=>{_&&Ru(_,r,9,T)},S=(_,T)=>{const O=T[1];M(_,T),rn(_)?_.every(N=>N.length<=1)&&O():_.length<=1&&O()},w={mode:o,persisted:s,beforeEnter(_){let T=l;if(!n.isMounted)if(i)T=g||l;else return;_[a1]&&_[a1](!0);const O=x[A];O&&wf(t,O)&&O.el[a1]&&O.el[a1](),M(T,[_])},enter(_){let T=c,O=u,N=f;if(!n.isMounted)if(i)T=y||c,O=m||u,N=R||f;else return;let P=!1;const C=_[Jk]=E=>{P||(P=!0,E?M(N,[_]):M(O,[_]),w.delayedLeave&&w.delayedLeave(),_[Jk]=void 0)};T?S(T,[_,C]):C()},leave(_,T){const O=String(t.key);if(_[Jk]&&_[Jk](!0),n.isUnmounting)return T();M(d,[_]);let N=!1;const P=_[a1]=C=>{N||(N=!0,T(),C?M(v,[_]):M(p,[_]),_[a1]=void 0,x[O]===t&&delete x[O])};x[O]=t,h?S(h,[_,P]):P()},clone(_){const T=$x(_,e,n,r,a);return a&&a(T),T}};return w}function jB(t){if(i8(t))return t=Lh(t),t.children=null,t}function phe(t){if(!i8(t))return Lbe(t.type)&&t.children?Cbe(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&Ln(n.default))return n.default()}}function g0(t,e){t.shapeFlag&6&&t.component?(t.transition=e,g0(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function yD(t,e=!1,n){let r=[],a=0;for(let i=0;i<t.length;i++){let o=t[i];const s=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===qe?(o.patchFlag&128&&a++,r=r.concat(yD(o.children,e,s))):(e||o.type!==vi)&&r.push(s!=null?Lh(o,{key:s}):o)}if(a>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function tt(t,e){return Ln(t)?fa({name:t.name},e,{setup:t}):t}function Vke(){const t=wu();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function jJ(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function un(t){const e=wu(),n=vbe(null);if(e){const a=e.refs===xr?e.refs={}:e.refs;Object.defineProperty(a,t,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function Ex(t,e,n,r,a=!1){if(rn(t)){t.forEach((p,v)=>Ex(p,e&&(rn(e)?e[v]:e),n,r,a));return}if(L1(r)&&!a){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ex(t,e,n,r.component.subTree);return}const i=r.shapeFlag&4?s8(r.component):r.el,o=a?null:i,{i:s,r:l}=t,c=e&&e.r,u=s.refs===xr?s.refs={}:s.refs,f=s.setupState,d=yr(f),h=f===xr?()=>!1:p=>Wr(d,p);if(c!=null&&c!==l&&(xa(c)?(u[c]=null,h(c)&&(f[c]=null)):ba(c)&&(c.value=null)),Ln(l))LS(l,s,12,[o,u]);else{const p=xa(l),v=ba(l);if(p||v){const g=()=>{if(t.f){const y=p?h(l)?f[l]:u[l]:l.value;a?rn(y)&&XJ(y,i):rn(y)?y.includes(i)||y.push(i):p?(u[l]=[i],h(l)&&(f[l]=u[l])):(l.value=[i],t.k&&(u[t.k]=l.value))}else p?(u[l]=o,h(l)&&(f[l]=o)):v&&(l.value=o,t.k&&(u[t.k]=o))};o?(g.id=-1,Ki(g,n)):g()}}}let vhe=!1;const vb=()=>{vhe||(console.error("Hydration completed but contains mismatches."),vhe=!0)},Uke=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",Wke=t=>t.namespaceURI.includes("MathML"),jk=t=>{if(t.nodeType===1){if(Uke(t))return"svg";if(Wke(t))return"mathml"}},fx=t=>t.nodeType===8;function Yke(t){const{mt:e,p:n,o:{patchProp:r,createText:a,nextSibling:i,parentNode:o,remove:s,insert:l,createComment:c}}=t,u=(R,A)=>{if(!A.hasChildNodes()){n(null,R,A),RF(),A._vnode=R;return}f(A.firstChild,R,null,null,null),RF(),A._vnode=R},f=(R,A,x,M,S,w=!1)=>{w=w||!!A.dynamicChildren;const _=fx(R)&&R.data==="[",T=()=>v(R,A,x,M,S,_),{type:O,ref:N,shapeFlag:P,patchFlag:C}=A;let E=R.nodeType;A.el=R,C===-2&&(w=!1,A.dynamicChildren=null);let F=null;switch(O){case T1:E!==3?A.children===""?(l(A.el=a(""),o(R),R),F=R):F=T():(R.data!==A.children&&(vb(),R.data=A.children),F=i(R));break;case vi:m(R)?(F=i(R),y(A.el=R.content.firstChild,R,x)):E!==8||_?F=T():F=i(R);break;case Z2:if(_&&(R=i(R),E=R.nodeType),E===1||E===3){F=R;const Y=!A.children.length;for(let Q=0;Q<A.staticCount;Q++)Y&&(A.children+=F.nodeType===1?F.outerHTML:F.data),Q===A.staticCount-1&&(A.anchor=F),F=i(F);return _?i(F):F}else T();break;case qe:_?F=p(R,A,x,M,S,w):F=T();break;default:if(P&1)(E!==1||A.type.toLowerCase()!==R.tagName.toLowerCase())&&!m(R)?F=T():F=d(R,A,x,M,S,w);else if(P&6){A.slotScopeIds=S;const Y=o(R);if(_?F=g(R):fx(R)&&R.data==="teleport start"?F=g(R,R.data,"teleport end"):F=i(R),e(A,Y,null,x,M,jk(Y),w),L1(A)&&!A.type.__asyncResolved){let Q;_?(Q=U(qe),Q.anchor=F?F.previousSibling:Y.lastChild):Q=R.nodeType===3?rt(""):U("div"),Q.el=R,A.component.subTree=Q}}else P&64?E!==8?F=T():F=A.type.hydrate(R,A,x,M,S,w,t,h):P&128&&(F=A.type.hydrate(R,A,x,M,jk(o(R)),S,w,t,f))}return N!=null&&Ex(N,null,M,A),F},d=(R,A,x,M,S,w)=>{w=w||!!A.dynamicChildren;const{type:_,props:T,patchFlag:O,shapeFlag:N,dirs:P,transition:C}=A,E=_==="input"||_==="option";if(E||O!==-1){P&&rh(A,null,x,"created");let F=!1;if(m(R)){F=axe(null,C)&&x&&x.vnode.props&&x.vnode.props.appear;const Q=R.content.firstChild;if(F){const K=Q.getAttribute("class");K&&(Q.$cls=K),C.beforeEnter(Q)}y(Q,R,x),A.el=R=Q}if(N&16&&!(T&&(T.innerHTML||T.textContent))){let Q=h(R.firstChild,A,R,x,M,S,w);for(;Q;){qk(R,1)||vb();const K=Q;Q=Q.nextSibling,s(K)}}else if(N&8){let Q=A.children;Q[0]===`-`&&(R.tagName==="PRE"||R.tagName==="TEXTAREA")&&(Q=Q.slice(1)),R.textContent!==Q&&(qk(R,0)||vb(),R.textContent=A.children)}if(T){if(E||!w||O&48){const Q=R.tagName.includes("-");for(const K in T)(E&&(K.endsWith("value")||K==="indeterminate")||n8(K)&&!Nx(K)||K[0]==="."||Q)&&r(R,K,null,T[K],void 0,x)}else if(T.onClick)r(R,"onClick",null,T.onClick,void 0,x);else if(O&4&&If(T.style))for(const Q in T.style)T.style[Q]}let Y;(Y=T&&T.onVnodeBeforeMount)&&ol(Y,x,A),P&&rh(A,null,x,"beforeMount"),((Y=T&&T.onVnodeMounted)||P||F)&&hxe(()=>{Y&&ol(Y,x,A),F&&C.enter(R),P&&rh(A,null,x,"mounted")},M)}return R.nextSibling},h=(R,A,x,M,S,w,_)=>{_=_||!!A.dynamicChildren;const T=A.children,O=T.length;for(let N=0;N<O;N++){const P=_?T[N]:T[N]=ul(T[N]),C=P.type===T1;R?(C&&!_&&N+1<O&&ul(T[N+1]).type===T1&&(l(a(R.data.slice(P.children.length)),x,i(R)),R.data=P.children),R=f(R,P,M,S,w,_)):C&&!P.children?l(P.el=a(""),x):(qk(x,1)||vb(),n(null,P,x,null,M,S,jk(x),w))}return R},p=(R,A,x,M,S,w)=>{const{slotScopeIds:_}=A;_&&(S=S?S.concat(_):_);const T=o(R),O=h(i(R),A,T,x,M,S,w);return O&&fx(O)&&O.data==="]"?i(A.anchor=O):(vb(),l(A.anchor=c("]"),T,O),O)},v=(R,A,x,M,S,w)=>{if(qk(R.parentElement,1)||vb(),A.el=null,w){const O=g(R);for(;;){const N=i(R);if(N&&N!==O)s(N);else break}}const _=i(R),T=o(R);return s(R),n(null,A,T,_,x,M,jk(T),S),x&&(x.vnode.el=A.el,xD(x,A.el)),_},g=(R,A="[",x="]")=>{let M=0;for(;R;)if(R=i(R),R&&fx(R)&&(R.data===A&&M++,R.data===x)){if(M===0)return i(R);M--}return R},y=(R,A,x)=>{const M=A.parentNode;M&&M.replaceChild(R,A);let S=x;for(;S;)S.vnode.el===A&&(S.vnode.el=S.subTree.el=R),S=S.parent},m=R=>R.nodeType===1&&R.tagName==="TEMPLATE";return[u,f]}const ghe="data-allow-mismatch",Bke={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function qk(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(ghe);)t=t.parentElement;const n=t&&t.getAttribute(ghe);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return e===0&&r.includes("children")?!0:r.includes(Bke[e])}}const Zke=uD().requestIdleCallback||(t=>setTimeout(t,1)),Qke=uD().cancelIdleCallback||(t=>clearTimeout(t)),Kke=(t=1e4)=>e=>{const n=Zke(e,{timeout:t});return()=>Qke(n)};function Hke(t){const{top:e,left:n,bottom:r,right:a}=t.getBoundingClientRect(),{innerHeight:i,innerWidth:o}=window;return(e>0&&e<i||r>0&&r<i)&&(n>0&&n<o||a>0&&a<o)}const Gke=t=>(e,n)=>{const r=new IntersectionObserver(a=>{for(const i of a)if(i.isIntersecting){r.disconnect(),e();break}},t);return n(a=>{if(a instanceof Element){if(Hke(a))return e(),r.disconnect(),!1;r.observe(a)}}),()=>r.disconnect()},$ke=t=>e=>{if(t){const n=matchMedia(t);if(n.matches)e();else return n.addEventListener("change",e,{once:!0}),()=>n.removeEventListener("change",e)}},zke=(t=[])=>(e,n)=>{xa(t)&&(t=[t]);let r=!1;const a=o=>{r||(r=!0,i(),e(),o.target.dispatchEvent(new o.constructor(o.type,o)))},i=()=>{n(o=>{for(const s of t)o.removeEventListener(s,a)})};return n(o=>{for(const s of t)o.addEventListener(s,a,{once:!0})}),i};function Jke(t,e){if(fx(t)&&t.data==="["){let n=1,r=t.nextSibling;for(;r;){if(r.nodeType===1){if(e(r)===!1)break}else if(fx(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else e(t)}const L1=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function jke(t){Ln(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:a=200,hydrate:i,timeout:o,suspensible:s=!0,onError:l}=t;let c=null,u,f=0;const d=()=>(f++,c=null,h()),h=()=>{let p;return c||(p=c=e().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),l)return new Promise((g,y)=>{l(v,()=>g(d()),()=>y(v),f+1)});throw v}).then(v=>p!==c&&c?c:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),u=v,v)))};return tt({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,v,g){const y=i?()=>{const R=i(()=>{g()},A=>Jke(p,A));R&&(v.bum||(v.bum=[])).push(R),(v.u||(v.u=[])).push(()=>!0)}:g;u?y():h().then(()=>!v.isUnmounted&&y())},get __asyncResolved(){return u},setup(){const p=Gi;if(jJ(p),u)return()=>qB(u,p);const v=R=>{c=null,my(R,p,13,!r)};if(s&&p.suspense||zx)return h().then(R=>()=>qB(R,p)).catch(R=>(v(R),()=>r?U(r,{error:R}):null));const g=we(!1),y=we(),m=we(!!a);return a&&setTimeout(()=>{m.value=!1},a),o!=null&&setTimeout(()=>{if(!g.value&&!y.value){const R=new Error(`Async component timed out after ${o}ms.`);v(R),y.value=R}},o),h().then(()=>{g.value=!0,p.parent&&i8(p.parent.vnode)&&p.parent.update()}).catch(R=>{v(R),y.value=R}),()=>{if(g.value&&u)return qB(u,p);if(y.value&&r)return U(r,{error:y.value});if(n&&!m.value)return U(n)}}})}function qB(t,e){const{ref:n,props:r,children:a,ce:i}=e.vnode,o=U(t,r,a);return o.ref=n,o.ce=i,delete e.vnode.ce,o}const i8=t=>t.type.__isKeepAlive,qke={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=wu(),r=n.ctx;if(!r.renderer)return()=>{const m=e.default&&e.default();return m&&m.length===1?m[0]:m};const a=new Map,i=new Set;let o=null;const s=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=r,d=f("div");r.activate=(m,R,A,x,M)=>{const S=m.component;c(m,R,A,0,s),l(S.vnode,m,R,A,S,s,x,m.slotScopeIds,M),Ki(()=>{S.isDeactivated=!1,S.a&&Ix(S.a);const w=m.props&&m.props.onVnodeMounted;w&&ol(w,S.parent,m)},s)},r.deactivate=m=>{const R=m.component;xF(R.m),xF(R.a),c(m,d,null,1,s),Ki(()=>{R.da&&Ix(R.da);const A=m.props&&m.props.onVnodeUnmounted;A&&ol(A,R.parent,m),R.isDeactivated=!0},s)};function h(m){eZ(m),u(m,n,s,!0)}function p(m){a.forEach((R,A)=>{const x=uG(R.type);x&&!m(x)&&v(A)})}function v(m){const R=a.get(m);R&&(!o||!wf(R,o))?h(R):o&&eZ(o),a.delete(m),i.delete(m)}qt(()=>[t.include,t.exclude],([m,R])=>{m&&p(A=>Y5(m,A)),R&&p(A=>!Y5(R,A))},{flush:"post",deep:!0});let g=null;const y=()=>{g!=null&&(SF(n.subTree.type)?Ki(()=>{a.set(g,e9(n.subTree))},n.subTree.suspense):a.set(g,e9(n.subTree)))};return mn(y),RD(y),tg(()=>{a.forEach(m=>{const{subTree:R,suspense:A}=n,x=e9(R);if(m.type===x.type&&m.key===x.key){eZ(x);const M=x.component.da;M&&Ki(M,A);return}h(m)})}),()=>{if(g=null,!e.default)return o=null;const m=e.default(),R=m[0];if(m.length>1)return o=null,m;if(!m0(R)||!(R.shapeFlag&4)&&!(R.shapeFlag&128))return o=null,R;let A=e9(R);if(A.type===vi)return o=null,A;const x=A.type,M=uG(L1(A)?A.type.__asyncResolved||{}:x),{include:S,exclude:w,max:_}=t;if(S&&(!M||!Y5(S,M))||w&&M&&Y5(w,M))return A.shapeFlag&=-257,o=A,R;const T=A.key==null?x:A.key,O=a.get(T);return A.el&&(A=Lh(A),R.shapeFlag&128&&(R.ssContent=A)),g=T,O?(A.el=O.el,A.component=O.component,A.transition&&g0(A,A.transition),A.shapeFlag|=512,i.delete(T),i.add(T)):(i.add(T),_&&i.size>parseInt(_,10)&&v(i.values().next().value)),A.shapeFlag|=256,o=A,SF(R.type)?R:A}}},e9e=qke;function Y5(t,e){return rn(t)?t.some(n=>Y5(n,e)):xa(t)?t.split(",").includes(e):NIe(t)?(t.lastIndex=0,t.test(e)):!1}function kbe(t,e){Fbe(t,"a",e)}function Ebe(t,e){Fbe(t,"da",e)}function Fbe(t,e,n=Gi){const r=t.__wdc||(t.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(AD(e,r,n),n){let a=n.parent;for(;a&&a.parent;)i8(a.parent.vnode)&&t9e(r,e,n,a),a=a.parent}}function t9e(t,e,n,r){const a=AD(e,t,r,!0);or(()=>{XJ(r[e],a)},n)}function eZ(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function e9(t){return t.shapeFlag&128?t.ssContent:t}function AD(t,e,n=Gi,r=!1){if(n){const a=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{h0();const s=cy(n),l=Ru(e,n,t,o);return s(),p0(),l});return r?a.unshift(i):a.push(i),i}}const S0=t=>(e,n=Gi)=>{(!zx||t==="sp")&&AD(t,(...r)=>e(...r),n)},qJ=S0("bm"),mn=S0("m"),ej=S0("bu"),RD=S0("u"),tg=S0("bum"),or=S0("um"),Xbe=S0("sp"),Dbe=S0("rtg"),Vbe=S0("rtc");function Ube(t,e=Gi){AD("ec",t,e)}const tj="components",n9e="directives";function Wbe(t,e){return nj(tj,t,!0,e)||t}const Ybe=Symbol.for("v-ndc");function Eh(t){return xa(t)?nj(tj,t,!1)||t:t||Ybe}function pr(t){return nj(n9e,t)}function nj(t,e,n=!0,r=!1){const a=$i||Gi;if(a){const i=a.type;if(t===tj){const s=uG(i,!1);if(s&&(s===e||s===Do(e)||s===r8(Do(e))))return i}const o=mhe(a[t]||i[t],e)||mhe(a.appContext[t],e);return!o&&r?i:o}}function mhe(t,e){return t&&(t[e]||t[Do(e)]||t[r8(Do(e))])}function bt(t,e,n,r){let a;const i=n&&n[r],o=rn(t);if(o||xa(t)){const s=o&&If(t);let l=!1,c=!1;s&&(l=!pc(t),c=v0(t),t=hD(t)),a=new Array(t.length);for(let u=0,f=t.length;u<f;u++)a[u]=e(l?c?mF(Co(t[u])):Co(t[u]):t[u],u,void 0,i&&i[u])}else if(typeof t=="number"){a=new Array(t);for(let s=0;s<t;s++)a[s]=e(s+1,s,void 0,i&&i[s])}else if(sa(t))if(t[Symbol.iterator])a=Array.from(t,(s,l)=>e(s,l,void 0,i&&i[l]));else{const s=Object.keys(t);a=new Array(s.length);for(let l=0,c=s.length;l<c;l++){const u=s[l];a[l]=e(t[u],u,l,i&&i[l])}}else a=[];return n&&(n[r]=a),a}function r9e(t,e){for(let n=0;n<e.length;n++){const r=e[n];if(rn(r))for(let a=0;a<r.length;a++)t[r[a].name]=r[a].fn;else r&&(t[r.name]=r.key?(...a)=>{const i=r.fn(...a);return i&&(i.key=r.key),i}:r.fn)}return t}function Hr(t,e,n={},r,a){if($i.ce||$i.parent&&L1($i.parent)&&$i.parent.ce)return e!=="default"&&(n.name=e),V(),Ue(qe,null,[U("slot",n,r&&r())],64);let i=t[e];i&&i._c&&(i._d=!1),V();const o=i&&rj(i(n)),s=n.key||o&&o.key,l=Ue(qe,{key:(s&&!Ff(s)?s:`_${e}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&t._===1?64:-2);return!a&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function rj(t){return t.some(e=>m0(e)?!(e.type===vi||e.type===qe&&!rj(e.children)):!0)?t:null}function a9e(t,e){const n={};for(const r in t)n[e&&/[A-Z]/.test(r)?`on:${r}`:b_(r)]=t[r];return n}const qH=t=>t?Axe(t)?s8(t):qH(t.parent):null,__=fa(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>qH(t.parent),$root:t=>qH(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>aj(t),$forceUpdate:t=>t.f||(t.f=()=>{GJ(t.update)}),$nextTick:t=>t.n||(t.n=qr.bind(t.proxy)),$watch:t=>k9e.bind(t)}),tZ=(t,e)=>t!==xr&&!t.__isScriptSetup&&Wr(t,e),eG={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:a,props:i,accessCache:o,type:s,appContext:l}=t;let c;if(e[0]!=="$"){const h=o[e];if(h!==void 0)switch(h){case 1:return r[e];case 2:return a[e];case 4:return n[e];case 3:return i[e]}else{if(tZ(r,e))return o[e]=1,r[e];if(a!==xr&&Wr(a,e))return o[e]=2,a[e];if((c=t.propsOptions[0])&&Wr(c,e))return o[e]=3,i[e];if(n!==xr&&Wr(n,e))return o[e]=4,n[e];tG&&(o[e]=0)}}const u=__[e];let f,d;if(u)return e==="$attrs"&&ss(t.attrs,"get",""),u(t);if((f=s.__cssModules)&&(f=f[e]))return f;if(n!==xr&&Wr(n,e))return o[e]=4,n[e];if(d=l.config.globalProperties,Wr(d,e))return d[e]},set({_:t},e,n){const{data:r,setupState:a,ctx:i}=t;return tZ(a,e)?(a[e]=n,!0):r!==xr&&Wr(r,e)?(r[e]=n,!0):Wr(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:a,propsOptions:i}},o){let s;return!!n[o]||t!==xr&&Wr(t,o)||tZ(e,o)||(s=i[0])&&Wr(s,o)||Wr(r,o)||Wr(__,o)||Wr(a.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Wr(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}},i9e=fa({},eG,{get(t,e){if(e!==Symbol.unscopables)return eG.get(t,e,t)},has(t,e){return e[0]!=="_"&&!XIe(e)}});function o9e(){return null}function s9e(){return null}function l9e(t){}function c9e(t){}function u9e(){return null}function f9e(){}function d9e(t,e){return null}function h9e(){return Bbe().slots}function p9e(){return Bbe().attrs}function Bbe(){const t=wu();return t.setupContext||(t.setupContext=xxe(t))}function mw(t){return rn(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function v9e(t,e){const n=mw(t);for(const r in e){if(r.startsWith("__skip"))continue;let a=n[r];a?rn(a)||Ln(a)?a=n[r]={type:a,default:e[r]}:a.default=e[r]:a===null&&(a=n[r]={default:e[r]}),a&&e[`__skip_${r}`]&&(a.skipFactory=!0)}return n}function g9e(t,e){return!t||!e?t||e:rn(t)&&rn(e)?t.concat(e):fa({},mw(t),mw(e))}function m9e(t,e){const n={};for(const r in t)e.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>t[r]});return n}function y9e(t){const e=wu();let n=t();return sG(),DJ(n)&&(n=n.catch(r=>{throw cy(e),r})),[n,()=>cy(e)]}let tG=!0;function A9e(t){const e=aj(t),n=t.proxy,r=t.ctx;tG=!1,e.beforeCreate&&yhe(e.beforeCreate,t,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:v,deactivated:g,beforeDestroy:y,beforeUnmount:m,destroyed:R,unmounted:A,render:x,renderTracked:M,renderTriggered:S,errorCaptured:w,serverPrefetch:_,expose:T,inheritAttrs:O,components:N,directives:P,filters:C}=e;if(c&&R9e(c,r,null),o)for(const Y in o){const Q=o[Y];Ln(Q)&&(r[Y]=Q.bind(n))}if(a){const Y=a.call(n,n);sa(Y)&&(t.data=a8(Y))}if(tG=!0,i)for(const Y in i){const Q=i[Y],K=Ln(Q)?Q.bind(n,n):Ln(Q.get)?Q.get.bind(n,n):vu,ne=!Ln(Q)&&Ln(Q.set)?Q.set.bind(n):vu,Z=Fe({get:K,set:ne});Object.defineProperty(r,Y,{enumerable:!0,configurable:!0,get:()=>Z.value,set:$=>Z.value=$})}if(s)for(const Y in s)Zbe(s[Y],r,n,Y);if(l){const Y=Ln(l)?l.call(n):l;Reflect.ownKeys(Y).forEach(Q=>{yy(Q,Y[Q])})}u&&yhe(u,t,"c");function F(Y,Q){rn(Q)?Q.forEach(K=>Y(K.bind(n))):Q&&Y(Q.bind(n))}if(F(qJ,f),F(mn,d),F(ej,h),F(RD,p),F(kbe,v),F(Ebe,g),F(Ube,w),F(Vbe,M),F(Dbe,S),F(tg,m),F(or,A),F(Xbe,_),rn(T))if(T.length){const Y=t.exposed||(t.exposed={});T.forEach(Q=>{Object.defineProperty(Y,Q,{get:()=>n[Q],set:K=>n[Q]=K})})}else t.exposed||(t.exposed={});x&&t.render===vu&&(t.render=x),O!=null&&(t.inheritAttrs=O),N&&(t.components=N),P&&(t.directives=P),_&&jJ(t)}function R9e(t,e,n=vu){rn(t)&&(t=nG(t));for(const r in t){const a=t[r];let i;sa(a)?"default"in a?i=kf(a.from||r,a.default,!0):i=kf(a.from||r):i=kf(a),ba(i)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[r]=i}}function yhe(t,e,n){Ru(rn(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function Zbe(t,e,n,r){let a=r.includes(".")?cxe(n,r):()=>n[r];if(xa(t)){const i=e[t];Ln(i)&&qt(a,i)}else if(Ln(t))qt(a,t.bind(n));else if(sa(t))if(rn(t))t.forEach(i=>Zbe(i,e,n,r));else{const i=Ln(t.handler)?t.handler.bind(n):e[t.handler];Ln(i)&&qt(a,i,t)}}function aj(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,s=i.get(e);let l;return s?l=s:!a.length&&!n&&!r?l=e:(l={},a.length&&a.forEach(c=>bF(l,c,o,!0)),bF(l,e,o)),sa(e)&&i.set(e,l),l}function bF(t,e,n,r=!1){const{mixins:a,extends:i}=e;i&&bF(t,i,n,!0),a&&a.forEach(o=>bF(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const s=b9e[o]||n&&n[o];t[o]=s?s(t[o],e[o]):e[o]}return t}const b9e={data:Ahe,props:Rhe,emits:Rhe,methods:B5,computed:B5,beforeCreate:Os,created:Os,beforeMount:Os,mounted:Os,beforeUpdate:Os,updated:Os,beforeDestroy:Os,beforeUnmount:Os,destroyed:Os,unmounted:Os,activated:Os,deactivated:Os,errorCaptured:Os,serverPrefetch:Os,components:B5,directives:B5,watch:S9e,provide:Ahe,inject:x9e};function Ahe(t,e){return e?t?function(){return fa(Ln(t)?t.call(this,this):t,Ln(e)?e.call(this,this):e)}:e:t}function x9e(t,e){return B5(nG(t),nG(e))}function nG(t){if(rn(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Os(t,e){return t?[...new Set([].concat(t,e))]:e}function B5(t,e){return t?fa(Object.create(null),t,e):e}function Rhe(t,e){return t?rn(t)&&rn(e)?[...new Set([...t,...e])]:fa(Object.create(null),mw(t),mw(e??{})):e}function S9e(t,e){if(!t)return e;if(!e)return t;const n=fa(Object.create(null),t);for(const r in e)n[r]=Os(t[r],e[r]);return n}function Qbe(){return{app:null,config:{isNativeTag:PIe,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let M9e=0;function _9e(t,e){return function(r,a=null){Ln(r)||(r=fa({},r)),a!=null&&!sa(a)&&(a=null);const i=Qbe(),o=new WeakSet,s=[];let l=!1;const c=i.app={_uid:M9e++,_component:r,_props:a,_container:null,_context:i,_instance:null,version:_xe,get config(){return i.config},set config(u){},use(u,...f){return o.has(u)||(u&&Ln(u.install)?(o.add(u),u.install(c,...f)):Ln(u)&&(o.add(u),u(c,...f))),c},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,d){if(!l){const h=c._ceVNode||U(r,a);return h.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),f&&e?e(h,u):t(h,u,d),l=!0,c._container=u,u.__vue_app__=c,s8(h.component)}},onUnmount(u){s.push(u)},unmount(){l&&(Ru(s,c._instance,16),t(null,c._container),delete c._container.__vue_app__)},provide(u,f){return i.provides[u]=f,c},runWithContext(u){const f=B2;B2=c;try{return u()}finally{B2=f}}};return c}}let B2=null;function yy(t,e){if(Gi){let n=Gi.provides;const r=Gi.parent&&Gi.parent.provides;r===n&&(n=Gi.provides=Object.create(r)),n[t]=e}}function kf(t,e,n=!1){const r=Gi||$i;if(r||B2){let a=B2?B2._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(a&&t in a)return a[t];if(arguments.length>1)return n&&Ln(e)?e.call(r&&r.proxy):e}}function Kbe(){return!!(Gi||$i||B2)}const Hbe={},Gbe=()=>Object.create(Hbe),$be=t=>Object.getPrototypeOf(t)===Hbe;function w9e(t,e,n,r=!1){const a={},i=Gbe();t.propsDefaults=Object.create(null),zbe(t,e,a,i);for(const o in t.propsOptions[0])o in a||(a[o]=void 0);n?t.props=r?a:pbe(a):t.type.props?t.props=a:t.props=i,t.attrs=i}function L9e(t,e,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=t,s=yr(a),[l]=t.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const u=t.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(bD(t.emitsOptions,d))continue;const h=e[d];if(l)if(Wr(i,d))h!==i[d]&&(i[d]=h,c=!0);else{const p=Do(d);a[p]=rG(l,s,p,h,t,!1)}else h!==i[d]&&(i[d]=h,c=!0)}}}else{zbe(t,e,a,i)&&(c=!0);let u;for(const f in s)(!e||!Wr(e,f)&&((u=hl(f))===f||!Wr(e,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(a[f]=rG(l,s,f,void 0,t,!0)):delete a[f]);if(i!==s)for(const f in i)(!e||!Wr(e,f))&&(delete i[f],c=!0)}c&&e0(t.attrs,"set","")}function zbe(t,e,n,r){const[a,i]=t.propsOptions;let o=!1,s;if(e)for(let l in e){if(Nx(l))continue;const c=e[l];let u;a&&Wr(a,u=Do(l))?!i||!i.includes(u)?n[u]=c:(s||(s={}))[u]=c:bD(t.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,o=!0)}if(i){const l=yr(n),c=s||xr;for(let u=0;u<i.length;u++){const f=i[u];n[f]=rG(a,l,f,c[f],t,!Wr(c,f))}}return o}function rG(t,e,n,r,a,i){const o=t[n];if(o!=null){const s=Wr(o,"default");if(s&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Ln(l)){const{propsDefaults:c}=a;if(n in c)r=c[n];else{const u=cy(a);r=c[n]=l.call(null,e),u()}}else r=l;a.ce&&a.ce._setProp(n,r)}o[0]&&(i&&!s?r=!1:o[1]&&(r===""||r===hl(n))&&(r=!0))}return r}const T9e=new WeakMap;function Jbe(t,e,n=!1){const r=n?T9e:e.propsCache,a=r.get(t);if(a)return a;const i=t.props,o={},s=[];let l=!1;if(!Ln(t)){const u=f=>{l=!0;const[d,h]=Jbe(f,e,!0);fa(o,d),h&&s.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!i&&!l)return sa(t)&&r.set(t,Px),Px;if(rn(i))for(let u=0;u<i.length;u++){const f=Do(i[u]);bhe(f)&&(o[f]=xr)}else if(i)for(const u in i){const f=Do(u);if(bhe(f)){const d=i[u],h=o[f]=rn(d)||Ln(d)?{type:d}:fa({},d),p=h.type;let v=!1,g=!0;if(rn(p))for(let y=0;y<p.length;++y){const m=p[y],R=Ln(m)&&m.name;if(R==="Boolean"){v=!0;break}else R==="String"&&(g=!1)}else v=Ln(p)&&p.name==="Boolean";h[0]=v,h[1]=g,(v||Wr(h,"default"))&&s.push(f)}}const c=[o,s];return sa(t)&&r.set(t,c),c}function bhe(t){return t[0]!=="$"&&!Nx(t)}const ij=t=>t[0]==="_"||t==="$stable",oj=t=>rn(t)?t.map(ul):[ul(t)],O9e=(t,e,n)=>{if(e._n)return e;const r=pe((...a)=>oj(e(...a)),n);return r._c=!1,r},jbe=(t,e,n)=>{const r=t._ctx;for(const a in t){if(ij(a))continue;const i=t[a];if(Ln(i))e[a]=O9e(a,i,r);else if(i!=null){const o=oj(i);e[a]=()=>o}}},qbe=(t,e)=>{const n=oj(e);t.slots.default=()=>n},exe=(t,e,n)=>{for(const r in e)(n||!ij(r))&&(t[r]=e[r])},P9e=(t,e,n)=>{const r=t.slots=Gbe();if(t.vnode.shapeFlag&32){const a=e.__;a&&GH(r,"__",a,!0);const i=e._;i?(exe(r,e,n),n&&GH(r,"_",i,!0)):jbe(e,r)}else e&&qbe(t,e)},C9e=(t,e,n)=>{const{vnode:r,slots:a}=t;let i=!0,o=xr;if(r.shapeFlag&32){const s=e._;s?n&&s===1?i=!1:exe(a,e,n):(i=!e.$stable,jbe(e,a)),o=e}else e&&(qbe(t,e),o={default:1});if(i)for(const s in a)!ij(s)&&o[s]==null&&delete a[s]},Ki=hxe;function txe(t){return rxe(t)}function nxe(t){return rxe(t,Yke)}function rxe(t,e){const n=uD();n.__VUE__=!0;const{insert:r,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=vu,insertStaticContent:p}=t,v=(re,X,j,oe=null,ae=null,le=null,ge=void 0,Se=null,me=!!X.dynamicChildren)=>{if(re===X)return;re&&!wf(re,X)&&(oe=xe(re),$(re,ae,le,!0),re=null),X.patchFlag===-2&&(me=!1,X.dynamicChildren=null);const{type:ye,ref:Ve,shapeFlag:De}=X;switch(ye){case T1:g(re,X,j,oe);break;case vi:y(re,X,j,oe);break;case Z2:re==null&&m(X,j,oe,ge);break;case qe:N(re,X,j,oe,ae,le,ge,Se,me);break;default:De&1?x(re,X,j,oe,ae,le,ge,Se,me):De&6?P(re,X,j,oe,ae,le,ge,Se,me):(De&64||De&128)&&ye.process(re,X,j,oe,ae,le,ge,Se,me,z)}Ve!=null&&ae?Ex(Ve,re&&re.ref,le,X||re,!X):Ve==null&&re&&re.ref!=null&&Ex(re.ref,null,le,re,!0)},g=(re,X,j,oe)=>{if(re==null)r(X.el=s(X.children),j,oe);else{const ae=X.el=re.el;X.children!==re.children&&c(ae,X.children)}},y=(re,X,j,oe)=>{re==null?r(X.el=l(X.children||""),j,oe):X.el=re.el},m=(re,X,j,oe)=>{[re.el,re.anchor]=p(re.children,X,j,oe,re.el,re.anchor)},R=({el:re,anchor:X},j,oe)=>{let ae;for(;re&&re!==X;)ae=d(re),r(re,j,oe),re=ae;r(X,j,oe)},A=({el:re,anchor:X})=>{let j;for(;re&&re!==X;)j=d(re),a(re),re=j;a(X)},x=(re,X,j,oe,ae,le,ge,Se,me)=>{X.type==="svg"?ge="svg":X.type==="math"&&(ge="mathml"),re==null?M(X,j,oe,ae,le,ge,Se,me):_(re,X,ae,le,ge,Se,me)},M=(re,X,j,oe,ae,le,ge,Se)=>{let me,ye;const{props:Ve,shapeFlag:De,transition:Ye,dirs:Je}=re;if(me=re.el=o(re.type,le,Ve&&Ve.is,Ve),De&8?u(me,re.children):De&16&&w(re.children,me,null,oe,ae,nZ(re,le),ge,Se),Je&&rh(re,null,oe,"created"),S(me,re,re.scopeId,ge,oe),Ve){for(const Lt in Ve)Lt!=="value"&&!Nx(Lt)&&i(me,Lt,null,Ve[Lt],le,oe);"value"in Ve&&i(me,"value",null,Ve.value,le),(ye=Ve.onVnodeBeforeMount)&&ol(ye,oe,re)}Je&&rh(re,null,oe,"beforeMount");const wt=axe(ae,Ye);wt&&Ye.beforeEnter(me),r(me,X,j),((ye=Ve&&Ve.onVnodeMounted)||wt||Je)&&Ki(()=>{ye&&ol(ye,oe,re),wt&&Ye.enter(me),Je&&rh(re,null,oe,"mounted")},ae)},S=(re,X,j,oe,ae)=>{if(j&&h(re,j),oe)for(let le=0;le<oe.length;le++)h(re,oe[le]);if(ae){let le=ae.subTree;if(X===le||SF(le.type)&&(le.ssContent===X||le.ssFallback===X)){const ge=ae.vnode;S(re,ge,ge.scopeId,ge.slotScopeIds,ae.parent)}}},w=(re,X,j,oe,ae,le,ge,Se,me=0)=>{for(let ye=me;ye<re.length;ye++){const Ve=re[ye]=Se?i1(re[ye]):ul(re[ye]);v(null,Ve,X,j,oe,ae,le,ge,Se)}},_=(re,X,j,oe,ae,le,ge)=>{const Se=X.el=re.el;let{patchFlag:me,dynamicChildren:ye,dirs:Ve}=X;me|=re.patchFlag&16;const De=re.props||xr,Ye=X.props||xr;let Je;if(j&&Vm(j,!1),(Je=Ye.onVnodeBeforeUpdate)&&ol(Je,j,X,re),Ve&&rh(X,re,j,"beforeUpdate"),j&&Vm(j,!0),(De.innerHTML&&Ye.innerHTML==null||De.textContent&&Ye.textContent==null)&&u(Se,""),ye?T(re.dynamicChildren,ye,Se,j,oe,nZ(X,ae),le):ge||Q(re,X,Se,null,j,oe,nZ(X,ae),le,!1),me>0){if(me&16)O(Se,De,Ye,j,ae);else if(me&2&&De.class!==Ye.class&&i(Se,"class",null,Ye.class,ae),me&4&&i(Se,"style",De.style,Ye.style,ae),me&8){const wt=X.dynamicProps;for(let Lt=0;Lt<wt.length;Lt++){const Ne=wt[Lt],Te=De[Ne],ze=Ye[Ne];(ze!==Te||Ne==="value")&&i(Se,Ne,Te,ze,ae,j)}}me&1&&re.children!==X.children&&u(Se,X.children)}else!ge&&ye==null&&O(Se,De,Ye,j,ae);((Je=Ye.onVnodeUpdated)||Ve)&&Ki(()=>{Je&&ol(Je,j,X,re),Ve&&rh(X,re,j,"updated")},oe)},T=(re,X,j,oe,ae,le,ge)=>{for(let Se=0;Se<X.length;Se++){const me=re[Se],ye=X[Se],Ve=me.el&&(me.type===qe||!wf(me,ye)||me.shapeFlag&198)?f(me.el):j;v(me,ye,Ve,null,oe,ae,le,ge,!0)}},O=(re,X,j,oe,ae)=>{if(X!==j){if(X!==xr)for(const le in X)!Nx(le)&&!(le in j)&&i(re,le,X[le],null,ae,oe);for(const le in j){if(Nx(le))continue;const ge=j[le],Se=X[le];ge!==Se&&le!=="value"&&i(re,le,Se,ge,ae,oe)}"value"in j&&i(re,"value",X.value,j.value,ae)}},N=(re,X,j,oe,ae,le,ge,Se,me)=>{const ye=X.el=re?re.el:s(""),Ve=X.anchor=re?re.anchor:s("");let{patchFlag:De,dynamicChildren:Ye,slotScopeIds:Je}=X;Je&&(Se=Se?Se.concat(Je):Je),re==null?(r(ye,j,oe),r(Ve,j,oe),w(X.children||[],j,Ve,ae,le,ge,Se,me)):De>0&&De&64&&Ye&&re.dynamicChildren?(T(re.dynamicChildren,Ye,j,ae,le,ge,Se),(X.key!=null||ae&&X===ae.subTree)&&sj(re,X,!0)):Q(re,X,j,Ve,ae,le,ge,Se,me)},P=(re,X,j,oe,ae,le,ge,Se,me)=>{X.slotScopeIds=Se,re==null?X.shapeFlag&512?ae.ctx.activate(X,j,oe,ge,me):C(X,j,oe,ae,le,ge,me):E(re,X,me)},C=(re,X,j,oe,ae,le,ge)=>{const Se=re.component=yxe(re,oe,ae);if(i8(re)&&(Se.ctx.renderer=z),Rxe(Se,!1,ge),Se.asyncDep){if(ae&&ae.registerDep(Se,F,ge),!re.el){const me=Se.subTree=U(vi);y(null,me,X,j)}}else F(Se,re,X,j,ae,le,ge)},E=(re,X,j)=>{const oe=X.component=re.component;if(U9e(re,X,j))if(oe.asyncDep&&!oe.asyncResolved){Y(oe,X,j);return}else oe.next=X,oe.update();else X.el=re.el,oe.vnode=X},F=(re,X,j,oe,ae,le,ge)=>{const Se=()=>{if(re.isMounted){let{next:De,bu:Ye,u:Je,parent:wt,vnode:Lt}=re;{const pt=ixe(re);if(pt){De&&(De.el=Lt.el,Y(re,De,ge)),pt.asyncDep.then(()=>{re.isUnmounted||Se()});return}}let Ne=De,Te;Vm(re,!1),De?(De.el=Lt.el,Y(re,De,ge)):De=Lt,Ye&&Ix(Ye),(Te=De.props&&De.props.onVnodeBeforeUpdate)&&ol(Te,wt,De,Lt),Vm(re,!0);const ze=SE(re),He=re.subTree;re.subTree=ze,v(He,ze,f(He.el),xe(He),re,ae,le),De.el=ze.el,Ne===null&&xD(re,ze.el),Je&&Ki(Je,ae),(Te=De.props&&De.props.onVnodeUpdated)&&Ki(()=>ol(Te,wt,De,Lt),ae)}else{let De;const{el:Ye,props:Je}=X,{bm:wt,m:Lt,parent:Ne,root:Te,type:ze}=re,He=L1(X);if(Vm(re,!1),wt&&Ix(wt),!He&&(De=Je&&Je.onVnodeBeforeMount)&&ol(De,Ne,X),Vm(re,!0),Ye&&fe){const pt=()=>{re.subTree=SE(re),fe(Ye,re.subTree,re,ae,null)};He&&ze.__asyncHydrate?ze.__asyncHydrate(Ye,re,pt):pt()}else{Te.ce&&Te.ce._def.shadowRoot!==!1&&Te.ce._injectChildStyle(ze);const pt=re.subTree=SE(re);v(null,pt,j,oe,re,ae,le),X.el=pt.el}if(Lt&&Ki(Lt,ae),!He&&(De=Je&&Je.onVnodeMounted)){const pt=X;Ki(()=>ol(De,Ne,pt),ae)}(X.shapeFlag&256||Ne&&L1(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&re.a&&Ki(re.a,ae),re.isMounted=!0,X=j=oe=null}};re.scope.on();const me=re.effect=new fw(Se);re.scope.off();const ye=re.update=me.run.bind(me),Ve=re.job=me.runIfDirty.bind(me);Ve.i=re,Ve.id=re.uid,me.scheduler=()=>GJ(Ve),Vm(re,!0),ye()},Y=(re,X,j)=>{X.component=re;const oe=re.vnode.props;re.vnode=X,re.next=null,L9e(re,X.props,oe,j),C9e(re,X.children,j),h0(),uhe(re),p0()},Q=(re,X,j,oe,ae,le,ge,Se,me=!1)=>{const ye=re&&re.children,Ve=re?re.shapeFlag:0,De=X.children,{patchFlag:Ye,shapeFlag:Je}=X;if(Ye>0){if(Ye&128){ne(ye,De,j,oe,ae,le,ge,Se,me);return}else if(Ye&256){K(ye,De,j,oe,ae,le,ge,Se,me);return}}Je&8?(Ve&16&&B(ye,ae,le),De!==ye&&u(j,De)):Ve&16?Je&16?ne(ye,De,j,oe,ae,le,ge,Se,me):B(ye,ae,le,!0):(Ve&8&&u(j,""),Je&16&&w(De,j,oe,ae,le,ge,Se,me))},K=(re,X,j,oe,ae,le,ge,Se,me)=>{re=re||Px,X=X||Px;const ye=re.length,Ve=X.length,De=Math.min(ye,Ve);let Ye;for(Ye=0;Ye<De;Ye++){const Je=X[Ye]=me?i1(X[Ye]):ul(X[Ye]);v(re[Ye],Je,j,null,ae,le,ge,Se,me)}ye>Ve?B(re,ae,le,!0,!1,De):w(X,j,oe,ae,le,ge,Se,me,De)},ne=(re,X,j,oe,ae,le,ge,Se,me)=>{let ye=0;const Ve=X.length;let De=re.length-1,Ye=Ve-1;for(;ye<=De&&ye<=Ye;){const Je=re[ye],wt=X[ye]=me?i1(X[ye]):ul(X[ye]);if(wf(Je,wt))v(Je,wt,j,null,ae,le,ge,Se,me);else break;ye++}for(;ye<=De&&ye<=Ye;){const Je=re[De],wt=X[Ye]=me?i1(X[Ye]):ul(X[Ye]);if(wf(Je,wt))v(Je,wt,j,null,ae,le,ge,Se,me);else break;De--,Ye--}if(ye>De){if(ye<=Ye){const Je=Ye+1,wt=Je<Ve?X[Je].el:oe;for(;ye<=Ye;)v(null,X[ye]=me?i1(X[ye]):ul(X[ye]),j,wt,ae,le,ge,Se,me),ye++}}else if(ye>Ye)for(;ye<=De;)$(re[ye],ae,le,!0),ye++;else{const Je=ye,wt=ye,Lt=new Map;for(ye=wt;ye<=Ye;ye++){const je=X[ye]=me?i1(X[ye]):ul(X[ye]);je.key!=null&&Lt.set(je.key,ye)}let Ne,Te=0;const ze=Ye-wt+1;let He=!1,pt=0;const Ce=new Array(ze);for(ye=0;ye<ze;ye++)Ce[ye]=0;for(ye=Je;ye<=De;ye++){const je=re[ye];if(Te>=ze){$(je,ae,le,!0);continue}let it;if(je.key!=null)it=Lt.get(je.key);else for(Ne=wt;Ne<=Ye;Ne++)if(Ce[Ne-wt]===0&&wf(je,X[Ne])){it=Ne;break}it===void 0?$(je,ae,le,!0):(Ce[it-wt]=ye+1,it>=pt?pt=it:He=!0,v(je,X[it],j,null,ae,le,ge,Se,me),Te++)}const ut=He?N9e(Ce):Px;for(Ne=ut.length-1,ye=ze-1;ye>=0;ye--){const je=wt+ye,it=X[je],Pt=je+1<Ve?X[je+1].el:oe;Ce[ye]===0?v(null,it,j,Pt,ae,le,ge,Se,me):He&&(Ne<0||ye!==ut[Ne]?Z(it,j,Pt,2):Ne--)}}},Z=(re,X,j,oe,ae=null)=>{const{el:le,type:ge,transition:Se,children:me,shapeFlag:ye}=re;if(ye&6){Z(re.component.subTree,X,j,oe);return}if(ye&128){re.suspense.move(X,j,oe);return}if(ye&64){ge.move(re,X,j,z);return}if(ge===qe){r(le,X,j);for(let De=0;De<me.length;De++)Z(me[De],X,j,oe);r(re.anchor,X,j);return}if(ge===Z2){R(re,X,j);return}if(oe!==2&&ye&1&&Se)if(oe===0)Se.beforeEnter(le),r(le,X,j),Ki(()=>Se.enter(le),ae);else{const{leave:De,delayLeave:Ye,afterLeave:Je}=Se,wt=()=>{re.ctx.isUnmounted?a(le):r(le,X,j)},Lt=()=>{De(le,()=>{wt(),Je&&Je()})};Ye?Ye(le,wt,Lt):Lt()}else r(le,X,j)},$=(re,X,j,oe=!1,ae=!1)=>{const{type:le,props:ge,ref:Se,children:me,dynamicChildren:ye,shapeFlag:Ve,patchFlag:De,dirs:Ye,cacheIndex:Je}=re;if(De===-2&&(ae=!1),Se!=null&&(h0(),Ex(Se,null,j,re,!0),p0()),Je!=null&&(X.renderCache[Je]=void 0),Ve&256){X.ctx.deactivate(re);return}const wt=Ve&1&&Ye,Lt=!L1(re);let Ne;if(Lt&&(Ne=ge&&ge.onVnodeBeforeUnmount)&&ol(Ne,X,re),Ve&6)ce(re.component,j,oe);else{if(Ve&128){re.suspense.unmount(j,oe);return}wt&&rh(re,null,X,"beforeUnmount"),Ve&64?re.type.remove(re,X,j,z,oe):ye&&!ye.hasOnce&&(le!==qe||De>0&&De&64)?B(ye,X,j,!1,!0):(le===qe&&De&384||!ae&&Ve&16)&&B(me,X,j),oe&&G(re)}(Lt&&(Ne=ge&&ge.onVnodeUnmounted)||wt)&&Ki(()=>{Ne&&ol(Ne,X,re),wt&&rh(re,null,X,"unmounted")},j)},G=re=>{const{type:X,el:j,anchor:oe,transition:ae}=re;if(X===qe){ee(j,oe);return}if(X===Z2){A(re);return}const le=()=>{a(j),ae&&!ae.persisted&&ae.afterLeave&&ae.afterLeave()};if(re.shapeFlag&1&&ae&&!ae.persisted){const{leave:ge,delayLeave:Se}=ae,me=()=>ge(j,le);Se?Se(re.el,le,me):me()}else le()},ee=(re,X)=>{let j;for(;re!==X;)j=d(re),a(re),re=j;a(X)},ce=(re,X,j)=>{const{bum:oe,scope:ae,job:le,subTree:ge,um:Se,m:me,a:ye,parent:Ve,slots:{__:De}}=re;xF(me),xF(ye),oe&&Ix(oe),Ve&&rn(De)&&De.forEach(Ye=>{Ve.renderCache[Ye]=void 0}),ae.stop(),le&&(le.flags|=8,$(ge,re,X,j)),Se&&Ki(Se,X),Ki(()=>{re.isUnmounted=!0},X),X&&X.pendingBranch&&!X.isUnmounted&&re.asyncDep&&!re.asyncResolved&&re.suspenseId===X.pendingId&&(X.deps--,X.deps===0&&X.resolve())},B=(re,X,j,oe=!1,ae=!1,le=0)=>{for(let ge=le;ge<re.length;ge++)$(re[ge],X,j,oe,ae)},xe=re=>{if(re.shapeFlag&6)return xe(re.component.subTree);if(re.shapeFlag&128)return re.suspense.next();const X=d(re.anchor||re.el),j=X&&X[wbe];return j?d(j):X};let _e=!1;const se=(re,X,j)=>{re==null?X._vnode&&$(X._vnode,null,null,!0):v(X._vnode||null,re,X,null,null,null,j),X._vnode=re,_e||(_e=!0,uhe(),RF(),_e=!1)},z={p:v,um:$,m:Z,r:G,mt:C,mc:w,pc:Q,pbc:T,n:xe,o:t};let de,fe;return e&&([de,fe]=e(z)),{render:se,hydrate:de,createApp:_9e(se,de)}}function nZ({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Vm({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function axe(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function sj(t,e,n=!1){const r=t.children,a=e.children;if(rn(r)&&rn(a))for(let i=0;i<r.length;i++){const o=r[i];let s=a[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=a[i]=i1(a[i]),s.el=o.el),!n&&s.patchFlag!==-2&&sj(o,s)),s.type===T1&&(s.el=o.el),s.type===vi&&!s.el&&(s.el=o.el)}}function N9e(t){const e=t.slice(),n=[0];let r,a,i,o,s;const l=t.length;for(r=0;r<l;r++){const c=t[r];if(c!==0){if(a=n[n.length-1],t[a]<c){e[r]=a,n.push(r);continue}for(i=0,o=n.length-1;i<o;)s=i+o>>1,t[n[s]]<c?i=s+1:o=s;c<t[n[i]]&&(i>0&&(e[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}function ixe(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:ixe(e)}function xF(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const oxe=Symbol.for("v-scx"),sxe=()=>kf(oxe);function TS(t,e){return o8(t,null,e)}function I9e(t,e){return o8(t,null,{flush:"post"})}function lxe(t,e){return o8(t,null,{flush:"sync"})}function qt(t,e,n){return o8(t,e,n)}function o8(t,e,n=xr){const{immediate:r,deep:a,flush:i,once:o}=n,s=fa({},n),l=e&&r||!e&&i!=="post";let c;if(zx){if(i==="sync"){const h=sxe();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=vu,h.resume=vu,h.pause=vu,h}}const u=Gi;s.call=(h,p,v)=>Ru(h,u,p,v);let f=!1;i==="post"?s.scheduler=h=>{Ki(h,u&&u.suspense)}:i!=="sync"&&(f=!0,s.scheduler=(h,p)=>{p?h():GJ(h)}),s.augmentJob=h=>{e&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const d=wke(t,e,s);return zx&&(c?c.push(d):l&&d()),d}function k9e(t,e,n){const r=this.proxy,a=xa(t)?t.includes(".")?cxe(r,t):()=>r[t]:t.bind(r,r);let i;Ln(e)?i=e:(i=e.handler,n=e);const o=cy(this),s=o8(a,i.bind(r),n);return o(),s}function cxe(t,e){const n=e.split(".");return()=>{let r=t;for(let a=0;a<n.length&&r;a++)r=r[n[a]];return r}}function E9e(t,e,n=xr){const r=wu(),a=Do(e),i=hl(e),o=uxe(t,a),s=mbe((l,c)=>{let u,f=xr,d;return lxe(()=>{const h=t[a];Es(u,h)&&(u=h,c())}),{get(){return l(),n.get?n.get(u):u},set(h){const p=n.set?n.set(h):h;if(!Es(p,u)&&!(f!==xr&&Es(h,f)))return;const v=r.vnode.props;v&&(e in v||a in v||i in v)&&(`onUpdate:${e}`in v||`onUpdate:${a}`in v||`onUpdate:${i}`in v)||(u=h,c()),r.emit(`update:${e}`,p),Es(h,p)&&Es(h,f)&&!Es(p,d)&&c(),f=h,d=p}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||xr:s,done:!1}:{done:!0}}}},s}const uxe=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Do(e)}Modifiers`]||t[`${hl(e)}Modifiers`];function F9e(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||xr;let a=n;const i=e.startsWith("update:"),o=i&&uxe(r,e.slice(7));o&&(o.trim&&(a=n.map(u=>xa(u)?u.trim():u)),o.number&&(a=n.map(pF)));let s,l=r[s=b_(e)]||r[s=b_(Do(e))];!l&&i&&(l=r[s=b_(hl(e))]),l&&Ru(l,t,6,a);const c=r[s+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,Ru(c,t,6,a)}}function fxe(t,e,n=!1){const r=e.emitsCache,a=r.get(t);if(a!==void 0)return a;const i=t.emits;let o={},s=!1;if(!Ln(t)){const l=c=>{const u=fxe(c,e,!0);u&&(s=!0,fa(o,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!s?(sa(t)&&r.set(t,null),null):(rn(i)?i.forEach(l=>o[l]=null):fa(o,i),sa(t)&&r.set(t,o),o)}function bD(t,e){return!t||!n8(e)?!1:(e=e.slice(2).replace(/Once$/,""),Wr(t,e[0].toLowerCase()+e.slice(1))||Wr(t,hl(e))||Wr(t,e))}function SE(t){const{type:e,vnode:n,proxy:r,withProxy:a,propsOptions:[i],slots:o,attrs:s,emit:l,render:c,renderCache:u,props:f,data:d,setupState:h,ctx:p,inheritAttrs:v}=t,g=gw(t);let y,m;try{if(n.shapeFlag&4){const A=a||r,x=A;y=ul(c.call(x,A,u,f,h,d,p)),m=s}else{const A=e;y=ul(A.length>1?A(f,{attrs:s,slots:o,emit:l}):A(f,null)),m=e.props?s:D9e(s)}}catch(A){w_.length=0,my(A,t,1),y=U(vi)}let R=y;if(m&&v!==!1){const A=Object.keys(m),{shapeFlag:x}=R;A.length&&x&7&&(i&&A.some(FJ)&&(m=V9e(m,i)),R=Lh(R,m,!1,!0))}return n.dirs&&(R=Lh(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(n.dirs):n.dirs),n.transition&&g0(R,n.transition),y=R,gw(g),y}function X9e(t,e=!0){let n;for(let r=0;r<t.length;r++){const a=t[r];if(m0(a)){if(a.type!==vi||a.children==="v-if"){if(n)return;n=a}}else return}return n}const D9e=t=>{let e;for(const n in t)(n==="class"||n==="style"||n8(n))&&((e||(e={}))[n]=t[n]);return e},V9e=(t,e)=>{const n={};for(const r in t)(!FJ(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function U9e(t,e,n){const{props:r,children:a,component:i}=t,{props:o,children:s,patchFlag:l}=e,c=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?xhe(r,o,c):!!o;if(l&8){const u=e.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(o[d]!==r[d]&&!bD(c,d))return!0}}}else return(a||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?xhe(r,o,c):!0:!!o;return!1}function xhe(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let a=0;a<r.length;a++){const i=r[a];if(e[i]!==t[i]&&!bD(n,i))return!0}return!1}function xD({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const SF=t=>t.__isSuspense;let aG=0;const W9e={name:"Suspense",__isSuspense:!0,process(t,e,n,r,a,i,o,s,l,c){if(t==null)B9e(e,n,r,a,i,o,s,l,c);else{if(i&&i.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}Z9e(t,e,n,r,a,o,s,l,c)}},hydrate:Q9e,normalize:K9e},Y9e=W9e;function yw(t,e){const n=t.props&&t.props[e];Ln(n)&&n()}function B9e(t,e,n,r,a,i,o,s,l){const{p:c,o:{createElement:u}}=l,f=u("div"),d=t.suspense=dxe(t,a,r,e,f,n,i,o,s,l);c(null,d.pendingBranch=t.ssContent,f,null,r,d,i,o),d.deps>0?(yw(t,"onPending"),yw(t,"onFallback"),c(null,t.ssFallback,e,n,r,null,i,o),Fx(d,t.ssFallback)):d.resolve(!1,!0)}function Z9e(t,e,n,r,a,i,o,s,{p:l,um:c,o:{createElement:u}}){const f=e.suspense=t.suspense;f.vnode=e,e.el=t.el;const d=e.ssContent,h=e.ssFallback,{activeBranch:p,pendingBranch:v,isInFallback:g,isHydrating:y}=f;if(v)f.pendingBranch=d,wf(d,v)?(l(v,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0?f.resolve():g&&(y||(l(p,h,n,r,a,null,i,o,s),Fx(f,h)))):(f.pendingId=aG++,y?(f.isHydrating=!1,f.activeBranch=v):c(v,a,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),g?(l(null,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0?f.resolve():(l(p,h,n,r,a,null,i,o,s),Fx(f,h))):p&&wf(d,p)?(l(p,d,n,r,a,f,i,o,s),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0&&f.resolve()));else if(p&&wf(d,p))l(p,d,n,r,a,f,i,o,s),Fx(f,d);else if(yw(e,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=aG++,l(null,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0)f.resolve();else{const{timeout:m,pendingId:R}=f;m>0?setTimeout(()=>{f.pendingId===R&&f.fallback(h)},m):m===0&&f.fallback(h)}}function dxe(t,e,n,r,a,i,o,s,l,c,u=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:v,remove:g}}=c;let y;const m=H9e(t);m&&e&&e.pendingBranch&&(y=e.pendingId,e.deps++);const R=t.props?vF(t.props.timeout):void 0,A=i,x={vnode:t,parent:e,parentComponent:n,namespace:o,container:r,hiddenContainer:a,deps:0,pendingId:aG++,timeout:typeof R=="number"?R:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(M=!1,S=!1){const{vnode:w,activeBranch:_,pendingBranch:T,pendingId:O,effects:N,parentComponent:P,container:C}=x;let E=!1;x.isHydrating?x.isHydrating=!1:M||(E=_&&T.transition&&T.transition.mode==="out-in",E&&(_.transition.afterLeave=()=>{O===x.pendingId&&(d(T,C,i===A?p(_):i,0),pw(N))}),_&&(v(_.el)===C&&(i=p(_)),h(_,P,x,!0)),E||d(T,C,i,0)),Fx(x,T),x.pendingBranch=null,x.isInFallback=!1;let F=x.parent,Y=!1;for(;F;){if(F.pendingBranch){F.effects.push(...N),Y=!0;break}F=F.parent}!Y&&!E&&pw(N),x.effects=[],m&&e&&e.pendingBranch&&y===e.pendingId&&(e.deps--,e.deps===0&&!S&&e.resolve()),yw(w,"onResolve")},fallback(M){if(!x.pendingBranch)return;const{vnode:S,activeBranch:w,parentComponent:_,container:T,namespace:O}=x;yw(S,"onFallback");const N=p(w),P=()=>{x.isInFallback&&(f(null,M,T,N,_,null,O,s,l),Fx(x,M))},C=M.transition&&M.transition.mode==="out-in";C&&(w.transition.afterLeave=P),x.isInFallback=!0,h(w,_,null,!0),C||P()},move(M,S,w){x.activeBranch&&d(x.activeBranch,M,S,w),x.container=M},next(){return x.activeBranch&&p(x.activeBranch)},registerDep(M,S,w){const _=!!x.pendingBranch;_&&x.deps++;const T=M.vnode.el;M.asyncDep.catch(O=>{my(O,M,0)}).then(O=>{if(M.isUnmounted||x.isUnmounted||x.pendingId!==M.suspenseId)return;M.asyncResolved=!0;const{vnode:N}=M;lG(M,O,!1),T&&(N.el=T);const P=!T&&M.subTree.el;S(M,N,v(T||M.subTree.el),T?null:p(M.subTree),x,o,w),P&&g(P),xD(M,N.el),_&&--x.deps===0&&x.resolve()})},unmount(M,S){x.isUnmounted=!0,x.activeBranch&&h(x.activeBranch,n,M,S),x.pendingBranch&&h(x.pendingBranch,n,M,S)}};return x}function Q9e(t,e,n,r,a,i,o,s,l){const c=e.suspense=dxe(e,r,n,t.parentNode,document.createElement("div"),null,a,i,o,s,!0),u=l(t,c.pendingBranch=e.ssContent,n,c,i,o);return c.deps===0&&c.resolve(!1,!0),u}function K9e(t){const{shapeFlag:e,children:n}=t,r=e&32;t.ssContent=She(r?n.default:n),t.ssFallback=r?She(n.fallback):U(vi)}function She(t){let e;if(Ln(t)){const n=ly&&t._c;n&&(t._d=!1,V()),t=t(),n&&(t._d=!0,e=fs,pxe())}return rn(t)&&(t=X9e(t)),t=ul(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function hxe(t,e){e&&e.pendingBranch?rn(t)?e.effects.push(...t):e.effects.push(t):pw(t)}function Fx(t,e){t.activeBranch=e;const{vnode:n,parentComponent:r}=t;let a=e.el;for(;!a&&e.component;)e=e.component.subTree,a=e.el;n.el=a,r&&r.subTree===n&&(r.vnode.el=a,xD(r,a))}function H9e(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const qe=Symbol.for("v-fgt"),T1=Symbol.for("v-txt"),vi=Symbol.for("v-cmt"),Z2=Symbol.for("v-stc"),w_=[];let fs=null;function V(t=!1){w_.push(fs=t?null:[])}function pxe(){w_.pop(),fs=w_[w_.length-1]||null}let ly=1;function iG(t,e=!1){ly+=t,t<0&&fs&&e&&(fs.hasOnce=!0)}function vxe(t){return t.dynamicChildren=ly>0?fs||Px:null,pxe(),ly>0&&fs&&fs.push(t),t}function H(t,e,n,r,a,i){return vxe(I(t,e,n,r,a,i,!0))}function Ue(t,e,n,r,a){return vxe(U(t,e,n,r,a,!0))}function m0(t){return t?t.__v_isVNode===!0:!1}function wf(t,e){return t.type===e.type&&t.key===e.key}function G9e(t){}const gxe=({key:t})=>t??null,ME=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?xa(t)||ba(t)||Ln(t)?{i:$i,r:t,k:e,f:!!n}:t:null);function I(t,e=null,n=null,r=0,a=null,i=t===qe?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&gxe(e),ref:e&&ME(e),scopeId:mD,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:$i};return s?(cj(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=xa(n)?8:16),ly>0&&!o&&fs&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&fs.push(l),l}const U=$9e;function $9e(t,e=null,n=null,r=0,a=null,i=!1){if((!t||t===Ybe)&&(t=vi),m0(t)){const s=Lh(t,e,!0);return n&&cj(s,n),ly>0&&!i&&fs&&(s.shapeFlag&6?fs[fs.indexOf(t)]=s:fs.push(s)),s.patchFlag=-2,s}if(nEe(t)&&(t=t.__vccOpts),e){e=mxe(e);let{class:s,style:l}=e;s&&!xa(s)&&(e.class=mt(s)),sa(l)&&(gD(l)&&!rn(l)&&(l=fa({},l)),e.style=We(l))}const o=xa(t)?1:SF(t)?128:Lbe(t)?64:sa(t)?4:Ln(t)?2:0;return I(t,e,n,r,a,o,i,!0)}function mxe(t){return t?gD(t)||$be(t)?fa({},t):t:null}function Lh(t,e,n=!1,r=!1){const{props:a,ref:i,patchFlag:o,children:s,transition:l}=t,c=e?uj(a||{},e):a,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&gxe(c),ref:e&&e.ref?n&&i?rn(i)?i.concat(ME(e)):[i,ME(e)]:ME(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==qe?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Lh(t.ssContent),ssFallback:t.ssFallback&&Lh(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&g0(u,l.clone(u)),u}function rt(t=" ",e=0){return U(T1,null,t,e)}function lj(t,e){const n=U(Z2,null,t);return n.staticCount=e,n}function at(t="",e=!1){return e?(V(),Ue(vi,null,t)):U(vi,null,t)}function ul(t){return t==null||typeof t=="boolean"?U(vi):rn(t)?U(qe,null,t.slice()):m0(t)?i1(t):U(T1,null,String(t))}function i1(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Lh(t)}function cj(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(rn(e))n=16;else if(typeof e=="object")if(r&65){const a=e.default;a&&(a._c&&(a._d=!1),cj(t,a()),a._c&&(a._d=!0));return}else{n=32;const a=e._;!a&&!$be(e)?e._ctx=$i:a===3&&$i&&($i.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Ln(e)?(e={default:e,_ctx:$i},n=32):(e=String(e),r&64?(n=16,e=[rt(e)]):n=8);t.children=e,t.shapeFlag|=n}function uj(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const a in r)if(a==="class")e.class!==r.class&&(e.class=mt([e.class,r.class]));else if(a==="style")e.style=We([e.style,r.style]);else if(n8(a)){const i=e[a],o=r[a];o&&i!==o&&!(rn(i)&&i.includes(o))&&(e[a]=i?[].concat(i,o):o)}else a!==""&&(e[a]=r[a])}return e}function ol(t,e,n,r=null){Ru(t,e,7,[n,r])}const z9e=Qbe();let J9e=0;function yxe(t,e,n){const r=t.type,a=(e?e.appContext:t.appContext)||z9e,i={uid:J9e++,vnode:t,type:r,parent:e,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new UJ(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(a.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Jbe(r,a),emitsOptions:fxe(r,a),emit:null,emitted:null,propsDefaults:xr,inheritAttrs:r.inheritAttrs,ctx:xr,data:xr,props:xr,attrs:xr,slots:xr,refs:xr,setupState:xr,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=F9e.bind(null,i),t.ce&&t.ce(i),i}let Gi=null;const wu=()=>Gi||$i;let MF,oG;{const t=uD(),e=(n,r)=>{let a;return(a=t[n])||(a=t[n]=[]),a.push(r),i=>{a.length>1?a.forEach(o=>o(i)):a[0](i)}};MF=e("__VUE_INSTANCE_SETTERS__",n=>Gi=n),oG=e("__VUE_SSR_SETTERS__",n=>zx=n)}const cy=t=>{const e=Gi;return MF(t),t.scope.on(),()=>{t.scope.off(),MF(e)}},sG=()=>{Gi&&Gi.scope.off(),MF(null)};function Axe(t){return t.vnode.shapeFlag&4}let zx=!1;function Rxe(t,e=!1,n=!1){e&&oG(e);const{props:r,children:a}=t.vnode,i=Axe(t);w9e(t,r,i,e),P9e(t,a,n||e);const o=i?j9e(t,e):void 0;return e&&oG(!1),o}function j9e(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,eG);const{setup:r}=n;if(r){h0();const a=t.setupContext=r.length>1?xxe(t):null,i=cy(t),o=LS(r,t,0,[t.props,a]),s=DJ(o);if(p0(),i(),(s||t.sp)&&!L1(t)&&jJ(t),s){if(o.then(sG,sG),e)return o.then(l=>{lG(t,l,e)}).catch(l=>{my(l,t,0)});t.asyncDep=o}else lG(t,o,e)}else bxe(t,e)}function lG(t,e,n){Ln(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:sa(e)&&(t.setupState=HJ(e)),bxe(t,n)}let _F,cG;function q9e(t){_F=t,cG=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,i9e))}}const eEe=()=>!_F;function bxe(t,e,n){const r=t.type;if(!t.render){if(!e&&_F&&!r.render){const a=r.template||aj(t).template;if(a){const{isCustomElement:i,compilerOptions:o}=t.appContext.config,{delimiters:s,compilerOptions:l}=r,c=fa(fa({isCustomElement:i,delimiters:s},o),l);r.render=_F(a,c)}}t.render=r.render||vu,cG&&cG(t)}{const a=cy(t);h0();try{A9e(t)}finally{p0(),a()}}}const tEe={get(t,e){return ss(t,"get",""),t[e]}};function xxe(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,tEe),slots:t.slots,emit:t.emit,expose:e}}function s8(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(HJ(vt(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in __)return __[n](t)},has(e,n){return n in e||n in __}})):t.proxy}function uG(t,e=!0){return Ln(t)?t.displayName||t.name:t.name||e&&t.__name}function nEe(t){return Ln(t)&&"__vccOpts"in t}const Fe=(t,e)=>xke(t,e,zx);function Sxe(t,e,n){const r=arguments.length;return r===2?sa(e)&&!rn(e)?m0(e)?U(t,null,[e]):U(t,e):U(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&m0(n)&&(n=[n]),U(t,e,n))}function rEe(){}function aEe(t,e,n,r){const a=n[r];if(a&&Mxe(a,t))return a;const i=e();return i.memo=t.slice(),i.cacheIndex=r,n[r]=i}function Mxe(t,e){const n=t.memo;if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(Es(n[r],e[r]))return!1;return ly>0&&fs&&fs.push(t),!0}const _xe="3.5.17",iEe=vu,oEe=Cke,sEe=Jb,lEe=_be,cEe={createComponentInstance:yxe,setupComponent:Rxe,renderComponentRoot:SE,setCurrentRenderingInstance:gw,isVNode:m0,normalizeVNode:ul,getComponentPublicInstance:s8,ensureValidVNode:rj,pushWarningContext:Lke,popWarningContext:Tke},uEe=cEe,fEe=null,dEe=null,hEe=null;/**-* @vue/runtime-dom v3.5.17-* (c) 2018-present Yuxi (Evan) You and Vue contributors-* @license MIT-**/let fG;const Mhe=typeof window<"u"&&window.trustedTypes;if(Mhe)try{fG=Mhe.createPolicy("vue",{createHTML:t=>t})}catch{}const wxe=fG?t=>fG.createHTML(t):t=>t,pEe="http://www.w3.org/2000/svg",vEe="http://www.w3.org/1998/Math/MathML",Kp=typeof document<"u"?document:null,_he=Kp&&Kp.createElement("template"),gEe={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const a=e==="svg"?Kp.createElementNS(pEe,t):e==="mathml"?Kp.createElementNS(vEe,t):n?Kp.createElement(t,{is:n}):Kp.createElement(t);return t==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:t=>Kp.createTextNode(t),createComment:t=>Kp.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Kp.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,a,i){const o=n?n.previousSibling:e.lastChild;if(a&&(a===i||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),n),!(a===i||!(a=a.nextSibling)););else{_he.innerHTML=wxe(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const s=_he.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}e.insertBefore(s,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Nv="transition",o5="animation",Jx=Symbol("_vtc"),Lxe={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Txe=fa({},JJ,Lxe),mEe=t=>(t.displayName="Transition",t.props=Txe,t),Aw=mEe((t,{slots:e})=>Sxe(Nbe,Oxe(t),e)),Um=(t,e=[])=>{rn(t)?t.forEach(n=>n(...e)):t&&t(...e)},whe=t=>t?rn(t)?t.some(e=>e.length>1):t.length>1:!1;function Oxe(t){const e={};for(const N in t)N in Lxe||(e[N]=t[N]);if(t.css===!1)return e;const{name:n="v",type:r,duration:a,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=o,appearToClass:u=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,p=yEe(a),v=p&&p[0],g=p&&p[1],{onBeforeEnter:y,onEnter:m,onEnterCancelled:R,onLeave:A,onLeaveCancelled:x,onBeforeAppear:M=y,onAppear:S=m,onAppearCancelled:w=R}=e,_=(N,P,C,E)=>{N._enterCancelled=E,Hv(N,P?u:s),Hv(N,P?c:o),C&&C()},T=(N,P)=>{N._isLeaving=!1,Hv(N,f),Hv(N,h),Hv(N,d),P&&P()},O=N=>(P,C)=>{const E=N?S:m,F=()=>_(P,N,C);Um(E,[P,F]),Lhe(()=>{Hv(P,N?l:i),$d(P,N?u:s),whe(E)||The(P,r,v,F)})};return fa(e,{onBeforeEnter(N){Um(y,[N]),$d(N,i),$d(N,o)},onBeforeAppear(N){Um(M,[N]),$d(N,l),$d(N,c)},onEnter:O(!1),onAppear:O(!0),onLeave(N,P){N._isLeaving=!0;const C=()=>T(N,P);$d(N,f),N._enterCancelled?($d(N,d),dG()):(dG(),$d(N,d)),Lhe(()=>{N._isLeaving&&(Hv(N,f),$d(N,h),whe(A)||The(N,r,g,C))}),Um(A,[N,C])},onEnterCancelled(N){_(N,!1,void 0,!0),Um(R,[N])},onAppearCancelled(N){_(N,!0,void 0,!0),Um(w,[N])},onLeaveCancelled(N){T(N),Um(x,[N])}})}function yEe(t){if(t==null)return null;if(sa(t))return[rZ(t.enter),rZ(t.leave)];{const e=rZ(t);return[e,e]}}function rZ(t){return vF(t)}function $d(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Jx]||(t[Jx]=new Set)).add(e)}function Hv(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[Jx];n&&(n.delete(e),n.size||(t[Jx]=void 0))}function Lhe(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let AEe=0;function The(t,e,n,r){const a=t._endId=++AEe,i=()=>{a===t._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=Pxe(t,e);if(!o)return r();const c=o+"end";let u=0;const f=()=>{t.removeEventListener(c,d),i()},d=h=>{h.target===t&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},s+1),t.addEventListener(c,d)}function Pxe(t,e){const n=window.getComputedStyle(t),r=p=>(n[p]||"").split(", "),a=r(`${Nv}Delay`),i=r(`${Nv}Duration`),o=Ohe(a,i),s=r(`${o5}Delay`),l=r(`${o5}Duration`),c=Ohe(s,l);let u=null,f=0,d=0;e===Nv?o>0&&(u=Nv,f=o,d=i.length):e===o5?c>0&&(u=o5,f=c,d=l.length):(f=Math.max(o,c),u=f>0?o>c?Nv:o5:null,d=u?u===Nv?i.length:l.length:0);const h=u===Nv&&/\b(transform|all)(,|$)/.test(r(`${Nv}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function Ohe(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>Phe(n)+Phe(t[r])))}function Phe(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function dG(){return document.body.offsetHeight}function REe(t,e,n){const r=t[Jx];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const wF=Symbol("_vod"),Cxe=Symbol("_vsh"),y0={beforeMount(t,{value:e},{transition:n}){t[wF]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):s5(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),s5(t,!0),r.enter(t)):r.leave(t,()=>{s5(t,!1)}):s5(t,e))},beforeUnmount(t,{value:e}){s5(t,e)}};function s5(t,e){t.style.display=e?t[wF]:"none",t[Cxe]=!e}function bEe(){y0.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const Nxe=Symbol("");function xEe(t){const e=wu();if(!e)return;const n=e.ut=(a=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(i=>LF(i,a))},r=()=>{const a=t(e.proxy);e.ce?LF(e.ce,a):hG(e.subTree,a),n(a)};ej(()=>{pw(r)}),mn(()=>{qt(r,vu,{flush:"post"});const a=new MutationObserver(r);a.observe(e.subTree.el.parentNode,{childList:!0}),or(()=>a.disconnect())})}function hG(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{hG(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)LF(t.el,e);else if(t.type===qe)t.children.forEach(n=>hG(n,e));else if(t.type===Z2){let{el:n,anchor:r}=t;for(;n&&(LF(n,e),n!==r);)n=n.nextSibling}}function LF(t,e){if(t.nodeType===1){const n=t.style;let r="";for(const a in e)n.setProperty(`--${a}`,e[a]),r+=`--${a}: ${e[a]};`;n[Nxe]=r}}const SEe=/(^|;)\s*display\s*:/;function MEe(t,e,n){const r=t.style,a=xa(n);let i=!1;if(n&&!a){if(e)if(xa(e))for(const o of e.split(";")){const s=o.slice(0,o.indexOf(":")).trim();n[s]==null&&_E(r,s,"")}else for(const o in e)n[o]==null&&_E(r,o,"");for(const o in n)o==="display"&&(i=!0),_E(r,o,n[o])}else if(a){if(e!==n){const o=r[Nxe];o&&(n+=";"+o),r.cssText=n,i=SEe.test(n)}}else e&&t.removeAttribute("style");wF in t&&(t[wF]=i?r.display:"",t[Cxe]&&(r.display="none"))}const Che=/\s*!important$/;function _E(t,e,n){if(rn(n))n.forEach(r=>_E(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=_Ee(t,e);Che.test(n)?t.setProperty(hl(r),n.replace(Che,""),"important"):t[r]=n}}const Nhe=["Webkit","Moz","ms"],aZ={};function _Ee(t,e){const n=aZ[e];if(n)return n;let r=Do(e);if(r!=="filter"&&r in t)return aZ[e]=r;r=r8(r);for(let a=0;a<Nhe.length;a++){const i=Nhe[a]+r;if(i in t)return aZ[e]=i}return e}const Ihe="http://www.w3.org/1999/xlink";function khe(t,e,n,r,a,i=ZIe(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(Ihe,e.slice(6,e.length)):t.setAttributeNS(Ihe,e,n):n==null||i&&!$Re(n)?t.removeAttribute(e):t.setAttribute(e,i?"":Ff(n)?String(n):n)}function Ehe(t,e,n,r,a){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?wxe(n):n);return}const i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){const s=i==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(s!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let o=!1;if(n===""||n==null){const s=typeof t[e];s==="boolean"?n=$Re(n):n==null&&s==="string"?(n="",o=!0):s==="number"&&(n=0,o=!0)}try{t[e]=n}catch{}o&&t.removeAttribute(a||e)}function n0(t,e,n,r){t.addEventListener(e,n,r)}function wEe(t,e,n,r){t.removeEventListener(e,n,r)}const Fhe=Symbol("_vei");function LEe(t,e,n,r,a=null){const i=t[Fhe]||(t[Fhe]={}),o=i[e];if(r&&o)o.value=r;else{const[s,l]=TEe(e);if(r){const c=i[e]=CEe(r,a);n0(t,s,c,l)}else o&&(wEe(t,s,o,l),i[e]=void 0)}}const Xhe=/(?:Once|Passive|Capture)$/;function TEe(t){let e;if(Xhe.test(t)){e={};let r;for(;r=t.match(Xhe);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):hl(t.slice(2)),e]}let iZ=0;const OEe=Promise.resolve(),PEe=()=>iZ||(OEe.then(()=>iZ=0),iZ=Date.now());function CEe(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ru(NEe(r,n.value),e,5,[r])};return n.value=t,n.attached=PEe(),n}function NEe(t,e){if(rn(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>a=>!a._stopped&&r&&r(a))}else return e}const Dhe=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,IEe=(t,e,n,r,a,i)=>{const o=a==="svg";e==="class"?REe(t,r,o):e==="style"?MEe(t,n,r):n8(e)?FJ(e)||LEe(t,e,n,r,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):kEe(t,e,r,o))?(Ehe(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&khe(t,e,r,o,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!xa(r))?Ehe(t,Do(e),r,i,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),khe(t,e,r,o))};function kEe(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&Dhe(e)&&Ln(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const a=t.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return Dhe(e)&&xa(n)?!1:e in t}const Vhe={};/*! #__NO_SIDE_EFFECTS__ */function Ixe(t,e,n){const r=tt(t,e);lD(r)&&fa(r,e);class a extends SD{constructor(o){super(r,o,n)}}return a.def=r,a}/*! #__NO_SIDE_EFFECTS__ */const EEe=(t,e)=>Ixe(t,e,Zxe),FEe=typeof HTMLElement<"u"?HTMLElement:class{};class SD extends FEe{constructor(e,n={},r=OF){super(),this._def=e,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==OF?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof SD){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,qr(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(r=>{for(const a of r)this._setAttr(a.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(r,a=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:o}=r;let s;if(i&&!rn(i))for(const l in i){const c=i[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=vF(this._props[l])),(s||(s=Object.create(null)))[Do(l)]=!0)}this._numberProps=s,this._resolveProps(r),this.shadowRoot&&this._applyStyles(o),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,e(this._def=r,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)Wr(this,r)||Object.defineProperty(this,r,{get:()=>te(n[r])})}_resolveProps(e){const{props:n}=e,r=rn(n)?n:Object.keys(n||{});for(const a of Object.keys(this))a[0]!=="_"&&r.includes(a)&&this._setProp(a,this[a]);for(const a of r.map(Do))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(i){this._setProp(a,i,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const n=this.hasAttribute(e);let r=n?this.getAttribute(e):Vhe;const a=Do(e);n&&this._numberProps&&this._numberProps[a]&&(r=vF(r)),this._setProp(a,r,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,n,r=!0,a=!1){if(n!==this._props[e]&&(n===Vhe?delete this._props[e]:(this._props[e]=n,e==="key"&&this._app&&(this._app._ceVNode.key=n)),a&&this._instance&&this._update(),r)){const i=this._ob;i&&i.disconnect(),n===!0?this.setAttribute(hl(e),""):typeof n=="string"||typeof n=="number"?this.setAttribute(hl(e),n+""):n||this.removeAttribute(hl(e)),i&&i.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),i0(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const n=U(this._def,fa(e,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const a=(i,o)=>{this.dispatchEvent(new CustomEvent(i,lD(o[0])?fa({detail:o},o[0]):{detail:o}))};r.emit=(i,...o)=>{a(i,o),hl(i)!==i&&a(hl(i),o)},this._setParent()}),n}_applyStyles(e,n){if(!e)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let a=e.length-1;a>=0;a--){const i=document.createElement("style");r&&i.setAttribute("nonce",r),i.textContent=e[a],this.shadowRoot.prepend(i)}}_parseSlots(){const e=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(e[r]||(e[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const e=(this._teleportTarget||this).querySelectorAll("slot"),n=this._instance.type.__scopeId;for(let r=0;r<e.length;r++){const a=e[r],i=a.getAttribute("name")||"default",o=this._slots[i],s=a.parentNode;if(o)for(const l of o){if(n&&l.nodeType===1){const c=n+"-s",u=document.createTreeWalker(l,1);l.setAttribute(c,"");let f;for(;f=u.nextNode();)f.setAttribute(c,"")}s.insertBefore(l,a)}else for(;a.firstChild;)s.insertBefore(a.firstChild,a);s.removeChild(a)}}_injectChildStyle(e){this._applyStyles(e.styles,e)}_removeChildStyle(e){}}function kxe(t){const e=wu(),n=e&&e.ce;return n||null}function XEe(){const t=kxe();return t&&t.shadowRoot}function DEe(t="$style"){{const e=wu();if(!e)return xr;const n=e.type.__cssModules;if(!n)return xr;const r=n[t];return r||xr}}const Exe=new WeakMap,Fxe=new WeakMap,TF=Symbol("_moveCb"),Uhe=Symbol("_enterCb"),VEe=t=>(delete t.props.mode,t),UEe=VEe({name:"TransitionGroup",props:fa({},Txe,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=wu(),r=zJ();let a,i;return RD(()=>{if(!a.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!QEe(a[0].el,n.vnode.el,o)){a=[];return}a.forEach(YEe),a.forEach(BEe);const s=a.filter(ZEe);dG(),s.forEach(l=>{const c=l.el,u=c.style;$d(c,o),u.transform=u.webkitTransform=u.transitionDuration="";const f=c[TF]=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",f),c[TF]=null,Hv(c,o))};c.addEventListener("transitionend",f)}),a=[]}),()=>{const o=yr(t),s=Oxe(o);let l=o.tag||qe;if(a=[],i)for(let c=0;c<i.length;c++){const u=i[c];u.el&&u.el instanceof Element&&(a.push(u),g0(u,$x(u,s,r,n)),Exe.set(u,u.el.getBoundingClientRect()))}i=e.default?yD(e.default()):[];for(let c=0;c<i.length;c++){const u=i[c];u.key!=null&&g0(u,$x(u,s,r,n))}return U(l,null,i)}}}),WEe=UEe;function YEe(t){const e=t.el;e[TF]&&e[TF](),e[Uhe]&&e[Uhe]()}function BEe(t){Fxe.set(t,t.el.getBoundingClientRect())}function ZEe(t){const e=Exe.get(t),n=Fxe.get(t),r=e.left-n.left,a=e.top-n.top;if(r||a){const i=t.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${a}px)`,i.transitionDuration="0s",t}}function QEe(t,e,n){const r=t.cloneNode(),a=t[Jx];a&&a.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(r);const{hasTransform:o}=Pxe(r);return i.removeChild(r),o}const W1=t=>{const e=t.props["onUpdate:modelValue"]||!1;return rn(e)?n=>Ix(e,n):e};function KEe(t){t.target.composing=!0}function Whe(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const gu=Symbol("_assign"),Rw={created(t,{modifiers:{lazy:e,trim:n,number:r}},a){t[gu]=W1(a);const i=r||a.props&&a.props.type==="number";n0(t,e?"change":"input",o=>{if(o.target.composing)return;let s=t.value;n&&(s=s.trim()),i&&(s=pF(s)),t[gu](s)}),n&&n0(t,"change",()=>{t.value=t.value.trim()}),e||(n0(t,"compositionstart",KEe),n0(t,"compositionend",Whe),n0(t,"change",Whe))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:a,number:i}},o){if(t[gu]=W1(o),t.composing)return;const s=(i||t.type==="number")&&!/^0\d/.test(t.value)?pF(t.value):t.value,l=e??"";s!==l&&(document.activeElement===t&&t.type!=="range"&&(r&&e===n||a&&t.value.trim()===l)||(t.value=l))}},fj={deep:!0,created(t,e,n){t[gu]=W1(n),n0(t,"change",()=>{const r=t._modelValue,a=jx(t),i=t.checked,o=t[gu];if(rn(r)){const s=fD(r,a),l=s!==-1;if(i&&!l)o(r.concat(a));else if(!i&&l){const c=[...r];c.splice(s,1),o(c)}}else if(gy(r)){const s=new Set(r);i?s.add(a):s.delete(a),o(s)}else o(Dxe(t,i))})},mounted:Yhe,beforeUpdate(t,e,n){t[gu]=W1(n),Yhe(t,e,n)}};function Yhe(t,{value:e,oldValue:n},r){t._modelValue=e;let a;if(rn(e))a=fD(e,r.props.value)>-1;else if(gy(e))a=e.has(r.props.value);else{if(e===n)return;a=U1(e,Dxe(t,!0))}t.checked!==a&&(t.checked=a)}const dj={created(t,{value:e},n){t.checked=U1(e,n.props.value),t[gu]=W1(n),n0(t,"change",()=>{t[gu](jx(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t[gu]=W1(r),e!==n&&(t.checked=U1(e,r.props.value))}},Xxe={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const a=gy(e);n0(t,"change",()=>{const i=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?pF(jx(o)):jx(o));t[gu](t.multiple?a?new Set(i):i:i[0]),t._assigning=!0,qr(()=>{t._assigning=!1})}),t[gu]=W1(r)},mounted(t,{value:e}){Bhe(t,e)},beforeUpdate(t,e,n){t[gu]=W1(n)},updated(t,{value:e}){t._assigning||Bhe(t,e)}};function Bhe(t,e){const n=t.multiple,r=rn(e);if(!(n&&!r&&!gy(e))){for(let a=0,i=t.options.length;a<i;a++){const o=t.options[a],s=jx(o);if(n)if(r){const l=typeof s;l==="string"||l==="number"?o.selected=e.some(c=>String(c)===String(s)):o.selected=fD(e,s)>-1}else o.selected=e.has(s);else if(U1(jx(o),e)){t.selectedIndex!==a&&(t.selectedIndex=a);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function jx(t){return"_value"in t?t._value:t.value}function Dxe(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const Vxe={created(t,e,n){t9(t,e,n,null,"created")},mounted(t,e,n){t9(t,e,n,null,"mounted")},beforeUpdate(t,e,n,r){t9(t,e,n,r,"beforeUpdate")},updated(t,e,n,r){t9(t,e,n,r,"updated")}};function Uxe(t,e){switch(t){case"SELECT":return Xxe;case"TEXTAREA":return Rw;default:switch(e){case"checkbox":return fj;case"radio":return dj;default:return Rw}}}function t9(t,e,n,r,a){const o=Uxe(t.tagName,n.props&&n.props.type)[a];o&&o(t,e,n,r)}function HEe(){Rw.getSSRProps=({value:t})=>({value:t}),dj.getSSRProps=({value:t},e)=>{if(e.props&&U1(e.props.value,t))return{checked:!0}},fj.getSSRProps=({value:t},e)=>{if(rn(t)){if(e.props&&fD(t,e.props.value)>-1)return{checked:!0}}else if(gy(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},Vxe.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const n=Uxe(e.type.toUpperCase(),e.props&&e.props.type);if(n.getSSRProps)return n.getSSRProps(t,e)}}const GEe=["ctrl","shift","alt","meta"],$Ee={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>GEe.some(n=>t[`${n}Key`]&&!e.includes(n))},on=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(a,...i)=>{for(let o=0;o<e.length;o++){const s=$Ee[e[o]];if(s&&s(a,e))return}return t(a,...i)})},zEe={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Xf=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=a=>{if(!("key"in a))return;const i=hl(a.key);if(e.some(o=>o===i||zEe[o]===i))return t(a)})},Wxe=fa({patchProp:IEe},gEe);let L_,Zhe=!1;function Yxe(){return L_||(L_=txe(Wxe))}function Bxe(){return L_=Zhe?L_:nxe(Wxe),Zhe=!0,L_}const i0=(...t)=>{Yxe().render(...t)},JEe=(...t)=>{Bxe().hydrate(...t)},OF=(...t)=>{const e=Yxe().createApp(...t),{mount:n}=e;return e.mount=r=>{const a=Kxe(r);if(!a)return;const i=e._component;!Ln(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const o=n(a,!1,Qxe(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},e},Zxe=(...t)=>{const e=Bxe().createApp(...t),{mount:n}=e;return e.mount=r=>{const a=Kxe(r);if(a)return n(a,!0,Qxe(a))},e};function Qxe(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Kxe(t){return xa(t)?document.querySelector(t):t}let Qhe=!1;const jEe=()=>{Qhe||(Qhe=!0,HEe(),bEe())};/**-* vue v3.5.17-* (c) 2018-present Yuxi (Evan) You and Vue contributors-* @license MIT-**/const qEe=()=>{},eFe=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Nbe,BaseTransitionPropsValidators:JJ,Comment:vi,DeprecationTypes:hEe,EffectScope:UJ,ErrorCodes:Pke,ErrorTypeStrings:oEe,Fragment:qe,KeepAlive:e9e,ReactiveEffect:fw,Static:Z2,Suspense:Y9e,Teleport:$J,Text:T1,TrackOpTypes:Ske,Transition:Aw,TransitionGroup:WEe,TriggerOpTypes:Mke,VueElement:SD,assertNumber:Oke,callWithAsyncErrorHandling:Ru,callWithErrorHandling:LS,camelize:Do,capitalize:r8,cloneVNode:Lh,compatUtils:dEe,compile:qEe,computed:Fe,createApp:OF,createBlock:Ue,createCommentVNode:at,createElementBlock:H,createElementVNode:I,createHydrationRenderer:nxe,createPropsRestProxy:m9e,createRenderer:txe,createSSRApp:Zxe,createSlots:r9e,createStaticVNode:lj,createTextVNode:rt,createVNode:U,customRef:mbe,defineAsyncComponent:jke,defineComponent:tt,defineCustomElement:Ixe,defineEmits:s9e,defineExpose:l9e,defineModel:f9e,defineOptions:c9e,defineProps:o9e,defineSSRCustomElement:EEe,defineSlots:u9e,devtools:sEe,effect:HIe,effectScope:WJ,getCurrentInstance:wu,getCurrentScope:YJ,getCurrentWatcher:_ke,getTransitionRawChildren:yD,guardReactiveProps:mxe,h:Sxe,handleError:my,hasInjectionContext:Kbe,hydrate:JEe,hydrateOnIdle:Kke,hydrateOnInteraction:zke,hydrateOnMediaQuery:$ke,hydrateOnVisible:Gke,initCustomFormatter:rEe,initDirectivesForSSR:jEe,inject:kf,isMemoSame:Mxe,isProxy:gD,isReactive:If,isReadonly:v0,isRef:ba,isRuntimeOnly:eEe,isShallow:pc,isVNode:m0,markRaw:vt,mergeDefaults:v9e,mergeModels:g9e,mergeProps:uj,nextTick:qr,normalizeClass:mt,normalizeProps:YIe,normalizeStyle:We,onActivated:kbe,onBeforeMount:qJ,onBeforeUnmount:tg,onBeforeUpdate:ej,onDeactivated:Ebe,onErrorCaptured:Ube,onMounted:mn,onRenderTracked:Vbe,onRenderTriggered:Dbe,onScopeDispose:jRe,onServerPrefetch:Xbe,onUnmounted:or,onUpdated:RD,onWatcherCleanup:Rbe,openBlock:V,popScopeId:Eke,provide:yy,proxyRefs:HJ,pushScopeId:kke,queuePostFlushCb:pw,reactive:a8,readonly:KJ,ref:we,registerRuntimeCompiler:q9e,render:i0,renderList:bt,renderSlot:Hr,resolveComponent:Wbe,resolveDirective:pr,resolveDynamicComponent:Eh,resolveFilter:fEe,resolveTransitionHooks:$x,setBlockTracking:iG,setDevtoolsHook:lEe,setTransitionHooks:g0,shallowReactive:pbe,shallowReadonly:hke,shallowRef:vbe,ssrContextKey:oxe,ssrUtils:uEe,stop:GIe,toDisplayString:Vt,toHandlerKey:b_,toHandlers:a9e,toRaw:yr,toRef:wS,toRefs:ybe,toValue:gke,transformVNodeArgs:G9e,triggerRef:vke,unref:te,useAttrs:p9e,useCssModule:DEe,useCssVars:xEe,useHost:kxe,useId:Vke,useModel:E9e,useSSRContext:sxe,useShadowRoot:XEe,useSlots:h9e,useTemplateRef:un,useTransitionState:zJ,vModelCheckbox:fj,vModelDynamic:Vxe,vModelRadio:dj,vModelSelect:Xxe,vModelText:Rw,vShow:y0,version:_xe,warn:iEe,watch:qt,watchEffect:TS,watchPostEffect:I9e,watchSyncEffect:lxe,withAsyncContext:y9e,withCtx:pe,withDefaults:d9e,withDirectives:yt,withKeys:Xf,withMemo:aEe,withModifiers:on,withScopeId:Fke},Symbol.toStringTag,{value:"Module"}));/*!- * pinia v3.0.2- * (c) 2025 Eduardo San Martin Morote- * @license MIT- */let Hxe;const MD=t=>Hxe=t,Gxe=Symbol();function pG(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var T_;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(T_||(T_={}));function tFe(){const t=WJ(!0),e=t.run(()=>we({}));let n=[],r=[];const a=vt({install(i){MD(a),a._a=i,i.provide(Gxe,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return a}const $xe=()=>{};function Khe(t,e,n,r=$xe){t.push(e);const a=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!n&&YJ()&&jRe(a),a}function gb(t,...e){t.slice().forEach(n=>{n(...e)})}const nFe=t=>t(),Hhe=Symbol(),oZ=Symbol();function vG(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,r)=>t.set(r,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],a=t[n];pG(a)&&pG(r)&&t.hasOwnProperty(n)&&!ba(r)&&!If(r)?t[n]=vG(a,r):t[n]=r}return t}const rFe=Symbol();function aFe(t){return!pG(t)||!Object.prototype.hasOwnProperty.call(t,rFe)}const{assign:Gv}=Object;function iFe(t){return!!(ba(t)&&t.effect)}function oFe(t,e,n,r){const{state:a,actions:i,getters:o}=e,s=n.state.value[t];let l;function c(){s||(n.state.value[t]=a?a():{});const u=ybe(n.state.value[t]);return Gv(u,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=vt(Fe(()=>{MD(n);const h=n._s.get(t);return o[d].call(h,h)})),f),{}))}return l=zxe(t,c,e,n,r,!0),l}function zxe(t,e,n={},r,a,i){let o;const s=Gv({actions:{}},n),l={deep:!0};let c,u,f=[],d=[],h;const p=r.state.value[t];!i&&!p&&(r.state.value[t]={}),we({});let v;function g(w){let _;c=u=!1,typeof w=="function"?(w(r.state.value[t]),_={type:T_.patchFunction,storeId:t,events:h}):(vG(r.state.value[t],w),_={type:T_.patchObject,payload:w,storeId:t,events:h});const T=v=Symbol();qr().then(()=>{v===T&&(c=!0)}),u=!0,gb(f,_,r.state.value[t])}const y=i?function(){const{state:_}=n,T=_?_():{};this.$patch(O=>{Gv(O,T)})}:$xe;function m(){o.stop(),f=[],d=[],r._s.delete(t)}const R=(w,_="")=>{if(Hhe in w)return w[oZ]=_,w;const T=function(){MD(r);const O=Array.from(arguments),N=[],P=[];function C(Y){N.push(Y)}function E(Y){P.push(Y)}gb(d,{args:O,name:T[oZ],store:x,after:C,onError:E});let F;try{F=w.apply(this&&this.$id===t?this:x,O)}catch(Y){throw gb(P,Y),Y}return F instanceof Promise?F.then(Y=>(gb(N,Y),Y)).catch(Y=>(gb(P,Y),Promise.reject(Y))):(gb(N,F),F)};return T[Hhe]=!0,T[oZ]=_,T},A={_p:r,$id:t,$onAction:Khe.bind(null,d),$patch:g,$reset:y,$subscribe(w,_={}){const T=Khe(f,w,_.detached,()=>O()),O=o.run(()=>qt(()=>r.state.value[t],N=>{(_.flush==="sync"?u:c)&&w({storeId:t,type:T_.direct,events:h},N)},Gv({},l,_)));return T},$dispose:m},x=a8(A);r._s.set(t,x);const S=(r._a&&r._a.runWithContext||nFe)(()=>r._e.run(()=>(o=WJ()).run(()=>e({action:R}))));for(const w in S){const _=S[w];if(ba(_)&&!iFe(_)||If(_))i||(p&&aFe(_)&&(ba(_)?_.value=p[w]:vG(_,p[w])),r.state.value[t][w]=_);else if(typeof _=="function"){const T=R(_,w);S[w]=T,s.actions[w]=_}}return Gv(x,S),Gv(yr(x),S),Object.defineProperty(x,"$state",{get:()=>r.state.value[t],set:w=>{g(_=>{Gv(_,w)})}}),r._p.forEach(w=>{Gv(x,o.run(()=>w({store:x,app:r._a,pinia:r,options:s})))}),p&&i&&n.hydrate&&n.hydrate(x.$state,p),c=!0,u=!0,x}/*! #__NO_SIDE_EFFECTS__ */function l8(t,e,n){let r;const a=typeof e=="function";r=a?n:e;function i(o,s){const l=Kbe();return o=o||(l?kf(Gxe,null):null),o&&MD(o),o=Hxe,o._s.has(t)||(a?zxe(t,e,r,o):oFe(t,r,o)),o._s.get(t)}return i.$id=t,i}function nt(t){const e=yr(t),n={};for(const r in e){const a=e[r];a.effect?n[r]=Fe({get:()=>t[r],set(i){t[r]=i}}):(ba(a)||If(a))&&(n[r]=wS(t,r))}return n}const sFe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let lFe=t=>crypto.getRandomValues(new Uint8Array(t)),cFe=(t,e,n)=>{let r=(2<<Math.log(t.length-1)/Math.LN2)-1,a=-~(1.6*r*e/t.length);return(i=e)=>{let o="";for(;;){let s=n(a),l=a;for(;l--;)if(o+=t[s[l]&r]||"",o.length===i)return o}}},uFe=(t,e=21)=>cFe(t,e,lFe),Gn=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;)e+=sFe[n[t]&63];return e};var xo=(t=>(t.EL_ANIMATION="elAnimation",t.EL_STYLE="elStyle",t.EL_POSITION="elPosition",t.SLIDE_DESIGN="slideDesign",t.SLIDE_ANIMATION="slideAnimation",t.MULTI_STYLE="multiStyle",t.MULTI_POSITION="multiPosition",t))(xo||{});function Mo(t){this.content=t}Mo.prototype={constructor:Mo,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,a=r.find(t),i=r.content.slice();return a==-1?i.push(n||t,e):(i[a+1]=e,n&&(i[a]=n)),new Mo(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new Mo(n)},addToStart:function(t,e){return new Mo([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Mo(n)},addBefore:function(t,e,n){var r=this.remove(e),a=r.content.slice(),i=r.find(t);return a.splice(i==-1?a.length:i,0,e,n),new Mo(a)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Mo.from(t),t.size?new Mo(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Mo.from(t),t.size?new Mo(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Mo.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};Mo.from=function(t){if(t instanceof Mo)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Mo(e)};function Jxe(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let a=t.child(r),i=e.child(r);if(a==i){n+=a.nodeSize;continue}if(!a.sameMarkup(i))return n;if(a.isText&&a.text!=i.text){for(let o=0;a.text[o]==i.text[o];o++)n++;return n}if(a.content.size||i.content.size){let o=Jxe(a.content,i.content,n+1);if(o!=null)return o}n+=a.nodeSize}}function jxe(t,e,n,r){for(let a=t.childCount,i=e.childCount;;){if(a==0||i==0)return a==i?null:{a:n,b:r};let o=t.child(--a),s=e.child(--i),l=o.nodeSize;if(o==s){n-=l,r-=l;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let c=0,u=Math.min(o.text.length,s.text.length);for(;c<u&&o.text[o.text.length-c-1]==s.text[s.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(o.content.size||s.content.size){let c=jxe(o.content,s.content,n-1,r-1);if(c)return c}n-=l,r-=l}}class Xt{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,a=0,i){for(let o=0,s=0;s<n;o++){let l=this.content[o],c=s+l.nodeSize;if(c>e&&r(l,a+s,i||null,o)!==!1&&l.content.size){let u=s+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),r,a+u)}s=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,a){let i="",o=!0;return this.nodesBetween(e,n,(s,l)=>{let c=s.isText?s.text.slice(Math.max(e,l)-l,n-l):s.isLeaf?a?typeof a=="function"?a(s):a:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&c||s.isTextblock)&&r&&(o?o=!1:i+=r),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,a=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(a[a.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)a.push(e.content[i]);return new Xt(a,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],a=0;if(n>e)for(let i=0,o=0;o<n;i++){let s=this.content[i],l=o+s.nodeSize;l>e&&((o<e||l>n)&&(s.isText?s=s.cut(Math.max(0,e-o),Math.min(s.text.length,n-o)):s=s.cut(Math.max(0,e-o-1),Math.min(s.content.size,n-o-1))),r.push(s),a+=s.nodeSize),o=l}return new Xt(r,a)}cutByIndex(e,n){return e==n?Xt.empty:e==0&&n==this.content.length?this:new Xt(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let a=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return a[e]=n,new Xt(a,i)}addToStart(e){return new Xt([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Xt(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let a=this.content[n];e(a,r,n),r+=a.nodeSize}}findDiffStart(e,n=0){return Jxe(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return jxe(this,e,n,r)}findIndex(e,n=-1){if(e==0)return n9(0,e);if(e==this.size)return n9(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,a=0;;r++){let i=this.child(r),o=a+i.nodeSize;if(o>=e)return o==e||n>0?n9(r+1,o):n9(r,a);a=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return Xt.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Xt(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Xt.empty;let n,r=0;for(let a=0;a<e.length;a++){let i=e[a];r+=i.nodeSize,a&&i.isText&&e[a-1].sameMarkup(i)?(n||(n=e.slice(0,a)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new Xt(n||e,r)}static from(e){if(!e)return Xt.empty;if(e instanceof Xt)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Xt([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Xt.empty=new Xt([],0);const sZ={index:0,offset:0};function n9(t,e){return sZ.index=t,sZ.offset=e,sZ}function PF(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!PF(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!PF(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}class Yr{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let a=0;a<e.length;a++){let i=e[a];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,a));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,a)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&PF(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let a=r.create(n.attrs);return r.checkAttrs(a.attrs),a}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Yr.none;if(e instanceof Yr)return[e];let n=e.slice();return n.sort((r,a)=>r.type.rank-a.type.rank),n}}Yr.none=[];class CF extends Error{}class tn{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=eSe(this.content,e+this.openStart,n);return r&&new tn(r,this.openStart,this.openEnd)}removeBetween(e,n){return new tn(qxe(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return tn.empty;let r=n.openStart||0,a=n.openEnd||0;if(typeof r!="number"||typeof a!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new tn(Xt.fromJSON(e,n.content),r,a)}static maxOpen(e,n=!0){let r=0,a=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)a++;return new tn(e,r,a)}}tn.empty=new tn(Xt.empty,0,0);function qxe(t,e,n){let{index:r,offset:a}=t.findIndex(e),i=t.maybeChild(r),{index:o,offset:s}=t.findIndex(n);if(a==e||i.isText){if(s!=n&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(qxe(i.content,e-a-1,n-a-1)))}function eSe(t,e,n,r){let{index:a,offset:i}=t.findIndex(e),o=t.maybeChild(a);if(i==e||o.isText)return t.cut(0,e).append(n).append(t.cut(e));let s=eSe(o.content,e-i-1,n);return s&&t.replaceChild(a,o.copy(s))}function fFe(t,e,n){if(n.openStart>t.depth)throw new CF("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new CF("Inconsistent open depths");return tSe(t,e,n,0)}function tSe(t,e,n,r){let a=t.index(r),i=t.node(r);if(a==e.index(r)&&r<t.depth-n.openStart){let o=tSe(t,e,n,r+1);return i.copy(i.content.replaceChild(a,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let o=t.parent,s=o.content;return K2(o,s.cut(0,t.parentOffset).append(n.content).append(s.cut(e.parentOffset)))}else{let{start:o,end:s}=dFe(n,t);return K2(i,rSe(t,o,s,e,r))}else return K2(i,NF(t,e,r))}function nSe(t,e){if(!e.type.compatibleContent(t.type))throw new CF("Cannot join "+e.type.name+" onto "+t.type.name)}function gG(t,e,n){let r=t.node(n);return nSe(r,e.node(n)),r}function Q2(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function O_(t,e,n,r){let a=(e||t).node(n),i=0,o=e?e.index(n):a.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(Q2(t.nodeAfter,r),i++));for(let s=i;s<o;s++)Q2(a.child(s),r);e&&e.depth==n&&e.textOffset&&Q2(e.nodeBefore,r)}function K2(t,e){return t.type.checkContent(e),t.copy(e)}function rSe(t,e,n,r,a){let i=t.depth>a&&gG(t,e,a+1),o=r.depth>a&&gG(n,r,a+1),s=[];return O_(null,t,a,s),i&&o&&e.index(a)==n.index(a)?(nSe(i,o),Q2(K2(i,rSe(t,e,n,r,a+1)),s)):(i&&Q2(K2(i,NF(t,e,a+1)),s),O_(e,n,a,s),o&&Q2(K2(o,NF(n,r,a+1)),s)),O_(r,null,a,s),new Xt(s)}function NF(t,e,n){let r=[];if(O_(null,t,n,r),t.depth>n){let a=gG(t,e,n+1);Q2(K2(a,NF(t,e,n+1)),r)}return O_(e,null,n,r),new Xt(r)}function dFe(t,e){let n=e.depth-t.openStart,a=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)a=e.node(i).copy(Xt.from(a));return{start:a.resolveNoCache(t.openStart+n),end:a.resolveNoCache(a.content.size-t.openEnd-n)}}class bw{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],a=e.child(n);return r?e.child(n).cut(r):a}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],a=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)a+=r.child(i).nodeSize;return a}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return Yr.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),a=e.maybeChild(n);if(!r){let s=r;r=a,a=s}let i=r.marks;for(var o=0;o<i.length;o++)i[o].type.spec.inclusive===!1&&(!a||!i[o].isInSet(a.marks))&&(i=i[o--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,a=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!a||!r[i].isInSet(a.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new IF(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],a=0,i=n;for(let o=e;;){let{index:s,offset:l}=o.content.findIndex(i),c=i-l;if(r.push(o,s,a+l),!c||(o=o.child(s),o.isText))break;i=c-1,a+=l+1}return new bw(n,r,i)}static resolveCached(e,n){let r=Ghe.get(e);if(r)for(let i=0;i<r.elts.length;i++){let o=r.elts[i];if(o.pos==n)return o}else Ghe.set(e,r=new hFe);let a=r.elts[r.i]=bw.resolve(e,n);return r.i=(r.i+1)%pFe,a}}class hFe{constructor(){this.elts=[],this.i=0}}const pFe=12,Ghe=new WeakMap;class IF{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const vFe=Object.create(null);class yh{constructor(e,n,r,a=Yr.none){this.type=e,this.attrs=n,this.marks=a,this.content=r||Xt.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,a=0){this.content.nodesBetween(e,n,r,a,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,a){return this.content.textBetween(e,n,r,a)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&PF(this.attrs,n||e.defaultAttrs||vFe)&&Yr.sameSet(this.marks,r||Yr.none)}copy(e=null){return e==this.content?this:new yh(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new yh(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return tn.empty;let a=this.resolve(e),i=this.resolve(n),o=r?0:a.sharedDepth(n),s=a.start(o),c=a.node(o).content.cut(a.pos-s,i.pos-s);return new tn(c,a.depth-o,i.depth-o)}replace(e,n,r){return fFe(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:a}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(a==e||n.isText)return n;e-=a+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let a=this.content.child(n-1);return{node:a,index:n-1,offset:r-a.nodeSize}}resolve(e){return bw.resolveCached(this,e)}resolveNoCache(e){return bw.resolve(this,e)}rangeHasMark(e,n,r){let a=!1;return n>e&&this.nodesBetween(e,n,i=>(r.isInSet(i.marks)&&(a=!0),!a)),a}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),aSe(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=Xt.empty,a=0,i=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,a,i),s=o&&o.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let l=a;l<i;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,n,r,a){if(a&&!this.type.allowsMarks(a))return!1;let i=this.contentMatchAt(e).matchType(r),o=i&&i.matchFragment(this.content,n);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Yr.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!Yr.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let a=Xt.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,a,r);return i.type.checkAttrs(i.attrs),i}}yh.prototype.text=void 0;class kF extends yh{constructor(e,n,r,a){if(super(e,n,null,a),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):aSe(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new kF(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new kF(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function aSe(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class uy{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new gFe(e,n);if(r.next==null)return uy.empty;let a=iSe(r);r.next&&r.err("Unexpected trailing text");let i=SFe(xFe(a));return MFe(i,r),i}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let a=this;for(let i=n;a&&i<r;i++)a=a.matchType(e.child(i).type);return a}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let a=[this];function i(o,s){let l=o.matchFragment(e,r);if(l&&(!n||l.validEnd))return Xt.from(s.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:u,next:f}=o.next[c];if(!(u.isText||u.hasRequiredAttrs())&&a.indexOf(f)==-1){a.push(f);let d=i(f,s.concat(u));if(d)return d}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let a=r.shift(),i=a.match;if(i.matchType(e)){let o=[];for(let s=a;s.type;s=s.via)o.push(s.type);return o.reverse()}for(let o=0;o<i.next.length;o++){let{type:s,next:l}=i.next[o];!s.isLeaf&&!s.hasRequiredAttrs()&&!(s.name in n)&&(!a.type||l.validEnd)&&(r.push({match:s.contentMatch,type:s,via:a}),n[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let a=0;a<r.next.length;a++)e.indexOf(r.next[a].next)==-1&&n(r.next[a].next)}return n(this),e.map((r,a)=>{let i=a+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)i+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return i}).join(`-`)}}uy.empty=new uy(!0);class gFe{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function iSe(t){let e=[];do e.push(mFe(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function mFe(t){let e=[];do e.push(yFe(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function yFe(t){let e=bFe(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=AFe(t,e);else break;return e}function $he(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function AFe(t,e){let n=$he(t),r=n;return t.eat(",")&&(t.next!="}"?r=$he(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function RFe(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let a=[];for(let i in n){let o=n[i];o.groups.indexOf(e)>-1&&a.push(o)}return a.length==0&&t.err("No node type or group '"+e+"' found"),a}function bFe(t){if(t.eat("(")){let e=iSe(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=RFe(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function xFe(t){let e=[[]];return a(i(t,0),n()),e;function n(){return e.push([])-1}function r(o,s,l){let c={term:l,to:s};return e[o].push(c),c}function a(o,s){o.forEach(l=>l.to=s)}function i(o,s){if(o.type=="choice")return o.exprs.reduce((l,c)=>l.concat(i(c,s)),[]);if(o.type=="seq")for(let l=0;;l++){let c=i(o.exprs[l],s);if(l==o.exprs.length-1)return c;a(c,s=n())}else if(o.type=="star"){let l=n();return r(s,l),a(i(o.expr,l),l),[r(l)]}else if(o.type=="plus"){let l=n();return a(i(o.expr,s),l),a(i(o.expr,l),l),[r(l)]}else{if(o.type=="opt")return[r(s)].concat(i(o.expr,s));if(o.type=="range"){let l=s;for(let c=0;c<o.min;c++){let u=n();a(i(o.expr,l),u),l=u}if(o.max==-1)a(i(o.expr,l),l);else for(let c=o.min;c<o.max;c++){let u=n();r(l,u),a(i(o.expr,l),u),l=u}return[r(l)]}else{if(o.type=="name")return[r(s,void 0,o.value)];throw new Error("Unknown expr type")}}}}function oSe(t,e){return e-t}function zhe(t,e){let n=[];return r(e),n.sort(oSe);function r(a){let i=t[a];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(a);for(let o=0;o<i.length;o++){let{term:s,to:l}=i[o];!s&&n.indexOf(l)==-1&&r(l)}}}function SFe(t){let e=Object.create(null);return n(zhe(t,0));function n(r){let a=[];r.forEach(o=>{t[o].forEach(({term:s,to:l})=>{if(!s)return;let c;for(let u=0;u<a.length;u++)a[u][0]==s&&(c=a[u][1]);zhe(t,l).forEach(u=>{c||a.push([s,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=e[r.join(",")]=new uy(r.indexOf(t.length-1)>-1);for(let o=0;o<a.length;o++){let s=a[o][1].sort(oSe);i.next.push({type:a[o][0],next:e[s.join(",")]||n(s)})}return i}}function MFe(t,e){for(let n=0,r=[t];n<r.length;n++){let a=r[n],i=!a.validEnd,o=[];for(let s=0;s<a.next.length;s++){let{type:l,next:c}=a.next[s];o.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),r.indexOf(c)==-1&&r.push(c)}i&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function sSe(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function lSe(t,e){let n=Object.create(null);for(let r in t){let a=e&&e[r];if(a===void 0){let i=t[r];if(i.hasDefault)a=i.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=a}return n}function cSe(t,e,n,r){for(let a in e)if(!(a in t))throw new RangeError(`Unsupported attribute ${a} for ${n} of type ${a}`);for(let a in t){let i=t[a];i.validate&&i.validate(e[a])}}function uSe(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new wFe(t,r,e[r]);return n}let Jhe=class fSe{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=uSe(e,r.attrs),this.defaultAttrs=sSe(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==uy.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:lSe(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new yh(this,this.computeAttrs(e),Xt.from(n),Yr.setFrom(r))}createChecked(e=null,n,r){return n=Xt.from(n),this.checkContent(n),new yh(this,this.computeAttrs(e),n,Yr.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=Xt.from(n),n.size){let o=this.contentMatch.fillBefore(n);if(!o)return null;n=o.append(n)}let a=this.contentMatch.matchFragment(n),i=a&&a.fillBefore(Xt.empty,!0);return i?new yh(this,e,n.append(i),Yr.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){cSe(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:Yr.none:e}static compile(e,n){let r=Object.create(null);e.forEach((i,o)=>r[i]=new fSe(i,n,o));let a=n.spec.topNode||"doc";if(!r[a])throw new RangeError("Schema is missing its top node type ('"+a+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function _Fe(t,e,n){let r=n.split("|");return a=>{let i=a===null?"null":typeof a;if(r.indexOf(i)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${i}`)}}class wFe{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?_Fe(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class _D{constructor(e,n,r,a){this.name=e,this.rank=n,this.schema=r,this.spec=a,this.attrs=uSe(e,a.attrs),this.excluded=null;let i=sSe(this.attrs);this.instance=i?new Yr(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Yr(this,lSe(this.attrs,e))}static compile(e,n){let r=Object.create(null),a=0;return e.forEach((i,o)=>r[i]=new _D(i,a++,n,o)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){cSe(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class dSe{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let a in e)n[a]=e[a];n.nodes=Mo.from(e.nodes),n.marks=Mo.from(e.marks||{}),this.nodes=Jhe.compile(this.spec.nodes,this),this.marks=_D.compile(this.spec.marks,this);let r=Object.create(null);for(let a in this.nodes){if(a in this.marks)throw new RangeError(a+" can not be both a node and a mark");let i=this.nodes[a],o=i.spec.content||"",s=i.spec.marks;if(i.contentMatch=r[o]||(r[o]=uy.parse(o,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=s=="_"?null:s?jhe(this,s.split(" ")):s==""||!i.inlineContent?[]:null}for(let a in this.marks){let i=this.marks[a],o=i.spec.excludes;i.excluded=o==null?[i]:o==""?[]:jhe(this,o.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,a){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Jhe){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,a)}text(e,n){let r=this.nodes.text;return new kF(r,r.defaultAttrs,e,Yr.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return yh.fromJSON(this,e)}markFromJSON(e){return Yr.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function jhe(t,e){let n=[];for(let r=0;r<e.length;r++){let a=e[r],i=t.marks[a],o=i;if(i)n.push(i);else for(let s in t.marks){let l=t.marks[s];(a=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(a)>-1)&&n.push(o=l)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function LFe(t){return t.tag!=null}function TFe(t){return t.style!=null}let hj=class mG{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(a=>{if(LFe(a))this.tags.push(a);else if(TFe(a)){let i=/[^=]*/.exec(a.style)[0];r.indexOf(i)<0&&r.push(i),this.styles.push(a)}}),this.normalizeLists=!this.tags.some(a=>{if(!/^(ul|ol)\b/.test(a.tag)||!a.node)return!1;let i=e.nodes[a.node];return i.contentMatch.matchType(i)})}parse(e,n={}){let r=new epe(this,n,!1);return r.addAll(e,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new epe(this,n,!0);return r.addAll(e,n.from,n.to),tn.maxOpen(r.finish())}matchTag(e,n,r){for(let a=r?this.tags.indexOf(r)+1:0;a<this.tags.length;a++){let i=this.tags[a];if(CFe(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let o=i.getAttrs(e);if(o===!1)continue;i.attrs=o||void 0}return i}}}matchStyle(e,n,r,a){for(let i=a?this.styles.indexOf(a)+1:0;i<this.styles.length;i++){let o=this.styles[i],s=o.style;if(!(s.indexOf(e)!=0||o.context&&!r.matchesContext(o.context)||s.length>e.length&&(s.charCodeAt(e.length)!=61||s.slice(e.length+1)!=n))){if(o.getAttrs){let l=o.getAttrs(n);if(l===!1)continue;o.attrs=l||void 0}return o}}}static schemaRules(e){let n=[];function r(a){let i=a.priority==null?50:a.priority,o=0;for(;o<n.length;o++){let s=n[o];if((s.priority==null?50:s.priority)<i)break}n.splice(o,0,a)}for(let a in e.marks){let i=e.marks[a].spec.parseDOM;i&&i.forEach(o=>{r(o=tpe(o)),o.mark||o.ignore||o.clearMark||(o.mark=a)})}for(let a in e.nodes){let i=e.nodes[a].spec.parseDOM;i&&i.forEach(o=>{r(o=tpe(o)),o.node||o.ignore||o.mark||(o.node=a)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new mG(e,mG.schemaRules(e)))}};const hSe={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},OFe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},pSe={ol:!0,ul:!0},EF=1,FF=2,P_=4;function qhe(t,e,n){return e!=null?(e?EF:0)|(e==="full"?FF:0):t&&t.whitespace=="pre"?EF|FF:n&~P_}class r9{constructor(e,n,r,a,i,o,s){this.type=e,this.attrs=n,this.marks=r,this.pendingMarks=a,this.solid=i,this.options=s,this.content=[],this.activeMarks=Yr.none,this.stashMarks=[],this.match=o||(s&P_?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Xt.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,a;return(a=r.findWrapping(e.type))?(this.match=r,a):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&EF)){let r=this.content[this.content.length-1],a;if(r&&r.isText&&(a=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==a[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-a[0].length))}}let n=Xt.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(Xt.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(e){for(let n=this.stashMarks.length-1;n>=0;n--)if(e.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(e){for(let n=0,r=this.pendingMarks;n<r.length;n++){let a=r[n];(this.type?this.type.allowsMarkType(a.type):NFe(a.type,e))&&!a.isInSet(this.activeMarks)&&(this.activeMarks=a.addToSet(this.activeMarks),this.pendingMarks=a.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!hSe.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class epe{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0;let a=n.topNode,i,o=qhe(null,n.preserveWhitespace,0)|(r?P_:0);a?i=new r9(a.type,a.attrs,Yr.none,Yr.none,!0,n.topMatch||a.type.contentMatch,o):r?i=new r9(null,null,Yr.none,Yr.none,!0,null,o):i=new r9(e.schema.topNodeType,null,Yr.none,Yr.none,!0,null,o),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,n){let r=e.style;if(!r||!r.length)return n();let a=this.readStyles(e.style);if(!a)return;let[i,o]=a,s=this.top;for(let l=0;l<o.length;l++)this.removePendingMark(o[l],s);for(let l=0;l<i.length;l++)this.addPendingMark(i[l]);n();for(let l=0;l<i.length;l++)this.removePendingMark(i[l],s);for(let l=0;l<o.length;l++)this.addPendingMark(o[l])}addTextNode(e){let n=e.nodeValue,r=this.top;if(r.options&FF||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(r.options&EF)r.options&FF?n=n.replace(/\r\n?/g,`-`):n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let a=r.content[r.content.length-1],i=e.previousSibling;(!a||i&&i.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n)),this.findInText(e)}else this.findInside(e)}addElement(e,n){let r=e.nodeName.toLowerCase(),a;pSe.hasOwnProperty(r)&&this.parser.normalizeLists&&PFe(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,n));if(i?i.ignore:OFe.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let o,s=this.top,l=this.needsBlock;if(hSe.hasOwnProperty(r))s.content.length&&s.content[0].isInline&&this.open&&(this.open--,s=this.top),o=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}i&&i.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),o&&this.sync(s),this.needsBlock=l}else this.withStyleRules(e,()=>{this.addElementByRule(e,i,i.consuming===!1?a:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`-`))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let n=Yr.none,r=Yr.none;if(e.length)for(let a=0;a<this.parser.matchedStyles.length;a++){let i=this.parser.matchedStyles[a],o=e.getPropertyValue(i);if(o)for(let s=void 0;;){let l=this.parser.matchStyle(i,o,this,s);if(!l)break;if(l.ignore)return null;if(l.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(c=>{l.clearMark(c)&&(r=c.addToSet(r))}):n=this.parser.schema.marks[l.mark].create(l.attrs).addToSet(n),l.consuming===!1)s=l;else break}}return[n,r]}addElementByRule(e,n,r){let a,i,o;n.node?(i=this.parser.schema.nodes[n.node],i.isLeaf?this.insertNode(i.create(n.attrs))||this.leafFallback(e):a=this.enter(i,n.attrs||null,n.preserveWhitespace)):(o=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(o));let s=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l)}a&&this.sync(s)&&this.open--,o&&this.removePendingMark(o,s)}addAll(e,n,r){let a=n||0;for(let i=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];i!=o;i=i.nextSibling,++a)this.findAtPoint(e,a),this.addDOM(i);this.findAtPoint(e,a)}findPlace(e){let n,r;for(let a=this.open;a>=0;a--){let i=this.nodes[a],o=i.findWrapping(e);if(o&&(!n||n.length>o.length)&&(n=o,r=i,!o.length)||i.solid)break}if(!n)return!1;this.sync(r);for(let a=0;a<n.length;a++)this.enterInner(n[a],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let n=this.textblockFromContext();n&&this.enterInner(n)}if(this.findPlace(e)){this.closeExtra();let n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));let r=n.activeMarks;for(let a=0;a<e.marks.length;a++)(!n.type||n.type.allowsMarkType(e.marks[a].type))&&(r=e.marks[a].addToSet(r));return n.content.push(e.mark(r)),!0}return!1}enter(e,n,r){let a=this.findPlace(e.create(n));return a&&this.enterInner(e,n,!0,r),a}enterInner(e,n=null,r=!1,a){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let o=qhe(e,a,i.options);i.options&P_&&i.content.length==0&&(o|=P_),this.nodes.push(new r9(e,n,i.activeMarks,i.pendingMarks,r,null,o)),this.open++}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let a=r.length-1;a>=0;a--)e+=r[a].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let a=0;a<this.find.length;a++)this.find[a].pos==null&&e.nodeType==1&&e.contains(this.find[a].node)&&n.compareDocumentPosition(this.find[a].node)&(r?2:4)&&(this.find[a].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,a=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(a?0:1),o=(s,l)=>{for(;s>=0;s--){let c=n[s];if(c==""){if(s==n.length-1||s==0)continue;for(;l>=i;l--)if(o(s-1,l))return!0;return!1}else{let u=l>0||l==0&&a?this.nodes[l].type:r&&l>=i?r.node(l-i).type:null;if(!u||u.name!=c&&u.groups.indexOf(c)==-1)return!1;l--}}return!0};return o(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let n=IFe(e,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,n){for(let r=this.open;r>=0;r--){let a=this.nodes[r];if(a.pendingMarks.lastIndexOf(e)>-1)a.pendingMarks=e.removeFromSet(a.pendingMarks);else{a.activeMarks=e.removeFromSet(a.activeMarks);let o=a.popFromStashMark(e);o&&a.type&&a.type.allowsMarkType(o.type)&&(a.activeMarks=o.addToSet(a.activeMarks))}if(a==n)break}}}function PFe(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&pSe.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function CFe(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function tpe(t){let e={};for(let n in t)e[n]=t[n];return e}function NFe(t,e){let n=e.schema.nodes;for(let r in n){let a=n[r];if(!a.allowsMarkType(t))continue;let i=[],o=s=>{i.push(s);for(let l=0;l<s.edgeCount;l++){let{type:c,next:u}=s.edge(l);if(c==e||i.indexOf(u)<0&&o(u))return!0}};if(o(a.contentMatch))return!0}}function IFe(t,e){for(let n=0;n<e.length;n++)if(t.eq(e[n]))return e[n]}class OS{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=lZ(n).createDocumentFragment());let a=r,i=[];return e.forEach(o=>{if(i.length||o.marks.length){let s=0,l=0;for(;s<i.length&&l<o.marks.length;){let c=o.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(i[s][0])||c.type.spec.spanning===!1)break;s++,l++}for(;s<i.length;)a=i.pop()[1];for(;l<o.marks.length;){let c=o.marks[l++],u=this.serializeMark(c,o.isInline,n);u&&(i.push([c,a]),a.appendChild(u.dom),a=u.contentDOM||u.dom)}}a.appendChild(this.serializeNodeInner(o,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:a}=wE(lZ(n),this.nodes[e.type.name](e),null,e.attrs);if(a){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,a)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let a=e.marks.length-1;a>=0;a--){let i=this.serializeMark(e.marks[a],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,n,r={}){let a=this.marks[e.type.name];return a&&wE(lZ(r),a(e,n),null,e.attrs)}static renderSpec(e,n,r=null,a){return wE(e,n,r,a)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new OS(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=npe(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return npe(e.marks)}}function npe(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function lZ(t){return t.document||window.document}const rpe=new WeakMap;function kFe(t){let e=rpe.get(t);return e===void 0&&rpe.set(t,e=EFe(t)),e}function EFe(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let a=0;a<r.length;a++)n(r[a]);else for(let a in r)n(r[a])}return n(t),e}function wE(t,e,n,r){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let a=e[0],i;if(typeof a!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(i=kFe(r))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=a.indexOf(" ");o>0&&(n=a.slice(0,o),a=a.slice(o+1));let s,l=n?t.createElementNS(n,a):t.createElement(a),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let f in c)if(c[f]!=null){let d=f.indexOf(" ");d>0?l.setAttributeNS(f.slice(0,d),f.slice(d+1),c[f]):l.setAttribute(f,c[f])}}for(let f=u;f<e.length;f++){let d=e[f];if(d===0){if(f<e.length-1||f>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:h,contentDOM:p}=wE(t,d,n,r);if(l.appendChild(h),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:l,contentDOM:s}}const vSe=65535,gSe=Math.pow(2,16);function FFe(t,e){return t+e*gSe}function ape(t){return t&vSe}function XFe(t){return(t-(t&vSe))/gSe}const mSe=1,ySe=2,LE=4,ASe=8;class yG{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&ASe)>0}get deletedBefore(){return(this.delInfo&(mSe|LE))>0}get deletedAfter(){return(this.delInfo&(ySe|LE))>0}get deletedAcross(){return(this.delInfo&LE)>0}}class lc{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&lc.empty)return lc.empty}recover(e){let n=0,r=ape(e);if(!this.inverted)for(let a=0;a<r;a++)n+=this.ranges[a*3+2]-this.ranges[a*3+1];return this.ranges[r*3]+n+XFe(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let a=0,i=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?a:0);if(l>e)break;let c=this.ranges[s+i],u=this.ranges[s+o],f=l+c;if(e<=f){let d=c?e==l?-1:e==f?1:n:n,h=l+a+(d<0?0:u);if(r)return h;let p=e==(n<0?l:f)?null:FFe(s/3,e-l),v=e==l?ySe:e==f?mSe:LE;return(n<0?e!=l:e!=f)&&(v|=ASe),new yG(h,v,p)}a+=u-c}return r?e+a:new yG(e+a,0,null)}touches(e,n){let r=0,a=ape(n),i=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[s+i],u=l+c;if(e<=u&&s==a*3)return!0;r+=this.ranges[s+o]-c}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let a=0,i=0;a<this.ranges.length;a+=3){let o=this.ranges[a],s=o-(this.inverted?i:0),l=o+(this.inverted?0:i),c=this.ranges[a+n],u=this.ranges[a+r];e(s,s+c,l,l+u),i+=u-c}}invert(){return new lc(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?lc.empty:new lc(e<0?[0,-e,0]:[0,0,e])}}lc.empty=new lc([]);class Xx{constructor(e=[],n,r=0,a=e.length){this.maps=e,this.mirror=n,this.from=r,this.to=a}slice(e=0,n=this.maps.length){return new Xx(this.maps,this.mirror,e,n)}copy(){return new Xx(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,n){this.to=this.maps.push(e),n!=null&&this.setMirror(this.maps.length-1,n)}appendMapping(e){for(let n=0,r=this.maps.length;n<e.maps.length;n++){let a=e.getMirror(n);this.appendMap(e.maps[n],a!=null&&a<n?r+a:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this.maps.length+e.maps.length;n>=0;n--){let a=e.getMirror(n);this.appendMap(e.maps[n].invert(),a!=null&&a>n?r-a-1:void 0)}}invert(){let e=new Xx;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this.maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let a=0;for(let i=this.from;i<this.to;i++){let o=this.maps[i],s=o.mapResult(e,n);if(s.recover!=null){let l=this.getMirror(i);if(l!=null&&l>i&&l<this.to){i=l,e=this.maps[l].recover(s.recover);continue}}a|=s.delInfo,e=s.pos}return r?e:new yG(e,a,null)}}const cZ=Object.create(null);class vs{getMap(){return lc.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=cZ[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in cZ)throw new RangeError("Duplicate use of step JSON ID "+e);return cZ[e]=n,n.prototype.jsonID=e,n}}class Ci{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new Ci(e,null)}static fail(e){return new Ci(null,e)}static fromReplace(e,n,r,a){try{return Ci.ok(e.replace(n,r,a))}catch(i){if(i instanceof CF)return Ci.fail(i.message);throw i}}}function pj(t,e,n){let r=[];for(let a=0;a<t.childCount;a++){let i=t.child(a);i.content.size&&(i=i.copy(pj(i.content,e,i))),i.isInline&&(i=e(i,n,a)),r.push(i)}return Xt.fromArray(r)}class m1 extends vs{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),a=r.node(r.sharedDepth(this.to)),i=new tn(pj(n.content,(o,s)=>!o.isAtom||!s.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),a),n.openStart,n.openEnd);return Ci.fromReplace(e,this.from,this.to,i)}invert(){return new hh(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new m1(n.pos,r.pos,this.mark)}merge(e){return e instanceof m1&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new m1(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new m1(n.from,n.to,e.markFromJSON(n.mark))}}vs.jsonID("addMark",m1);class hh extends vs{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new tn(pj(n.content,a=>a.mark(this.mark.removeFromSet(a.marks)),e),n.openStart,n.openEnd);return Ci.fromReplace(e,this.from,this.to,r)}invert(){return new m1(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new hh(n.pos,r.pos,this.mark)}merge(e){return e instanceof hh&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new hh(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new hh(n.from,n.to,e.markFromJSON(n.mark))}}vs.jsonID("removeMark",hh);class y1 extends vs{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ci.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Ci.fromReplace(e,this.pos,this.pos+1,new tn(Xt.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let a=0;a<n.marks.length;a++)if(!n.marks[a].isInSet(r))return new y1(this.pos,n.marks[a]);return new y1(this.pos,this.mark)}}return new qx(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new y1(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new y1(n.pos,e.markFromJSON(n.mark))}}vs.jsonID("addNodeMark",y1);class qx extends vs{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ci.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return Ci.fromReplace(e,this.pos,this.pos+1,new tn(Xt.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new y1(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new qx(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new qx(n.pos,e.markFromJSON(n.mark))}}vs.jsonID("removeNodeMark",qx);class ls extends vs{constructor(e,n,r,a=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=a}apply(e){return this.structure&&AG(e,this.from,this.to)?Ci.fail("Structure replace would overwrite content"):Ci.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new lc([this.from,this.to-this.from,this.slice.size])}invert(e){return new ls(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new ls(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(e){if(!(e instanceof ls)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?tn.empty:new tn(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new ls(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?tn.empty:new tn(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new ls(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new ls(n.from,n.to,tn.fromJSON(e,n.slice),!!n.structure)}}vs.jsonID("replace",ls);class Vo extends vs{constructor(e,n,r,a,i,o,s=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=a,this.slice=i,this.insert=o,this.structure=s}apply(e){if(this.structure&&(AG(e,this.from,this.gapFrom)||AG(e,this.gapTo,this.to)))return Ci.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return Ci.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?Ci.fromReplace(e,this.from,this.to,r):Ci.fail("Content does not fit in gap")}getMap(){return new lc([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new Vo(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),a=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||a<n.pos||i>r.pos?null:new Vo(n.pos,r.pos,a,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Vo(n.from,n.to,n.gapFrom,n.gapTo,tn.fromJSON(e,n.slice),n.insert,!!n.structure)}}vs.jsonID("replaceAround",Vo);function AG(t,e,n){let r=t.resolve(e),a=n-e,i=r.depth;for(;a>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,a--;if(a>0){let o=r.node(i).maybeChild(r.indexAfter(i));for(;a>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,a--}}return!1}function DFe(t,e,n,r){let a=[],i=[],o,s;t.doc.nodesBetween(e,n,(l,c,u)=>{if(!l.isInline)return;let f=l.marks;if(!r.isInSet(f)&&u.type.allowsMarkType(r.type)){let d=Math.max(c,e),h=Math.min(c+l.nodeSize,n),p=r.addToSet(f);for(let v=0;v<f.length;v++)f[v].isInSet(p)||(o&&o.to==d&&o.mark.eq(f[v])?o.to=h:a.push(o=new hh(d,h,f[v])));s&&s.to==d?s.to=h:i.push(s=new m1(d,h,r))}}),a.forEach(l=>t.step(l)),i.forEach(l=>t.step(l))}function VFe(t,e,n,r){let a=[],i=0;t.doc.nodesBetween(e,n,(o,s)=>{if(!o.isInline)return;i++;let l=null;if(r instanceof _D){let c=o.marks,u;for(;u=r.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(o.marks)&&(l=[r]):l=o.marks;if(l&&l.length){let c=Math.min(s+o.nodeSize,n);for(let u=0;u<l.length;u++){let f=l[u],d;for(let h=0;h<a.length;h++){let p=a[h];p.step==i-1&&f.eq(a[h].style)&&(d=p)}d?(d.to=c,d.step=i):a.push({style:f,from:Math.max(s,e),to:c,step:i})}}}),a.forEach(o=>t.step(new hh(o.from,o.to,o.style)))}function UFe(t,e,n,r=n.contentMatch){let a=t.doc.nodeAt(e),i=[],o=e+1;for(let s=0;s<a.childCount;s++){let l=a.child(s),c=o+l.nodeSize,u=r.matchType(l.type);if(!u)i.push(new ls(o,c,tn.empty));else{r=u;for(let f=0;f<l.marks.length;f++)n.allowsMarkType(l.marks[f].type)||t.step(new hh(o,c,l.marks[f]));if(l.isText&&!n.spec.code){let f,d=/\r?\n|\r/g,h;for(;f=d.exec(l.text);)h||(h=new tn(Xt.from(n.schema.text(" ",n.allowedMarks(l.marks))),0,0)),i.push(new ls(o+f.index,o+f.index+f[0].length,h))}}o=c}if(!r.validEnd){let s=r.fillBefore(Xt.empty,!0);t.replace(o,o,new tn(s,0,0))}for(let s=i.length-1;s>=0;s--)t.step(i[s])}function WFe(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function c8(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let a=t.$from.node(r),i=t.$from.index(r),o=t.$to.indexAfter(r);if(r<t.depth&&a.canReplace(i,o,n))return r;if(r==0||a.type.spec.isolating||!WFe(a,i,o))break}return null}function YFe(t,e,n){let{$from:r,$to:a,depth:i}=e,o=r.before(i+1),s=a.after(i+1),l=o,c=s,u=Xt.empty,f=0;for(let p=i,v=!1;p>n;p--)v||r.index(p)>0?(v=!0,u=Xt.from(r.node(p).copy(u)),f++):l--;let d=Xt.empty,h=0;for(let p=i,v=!1;p>n;p--)v||a.after(p+1)<a.end(p)?(v=!0,d=Xt.from(a.node(p).copy(d)),h++):c++;t.step(new Vo(l,c,o,s,new tn(u.append(d),f,h),u.size-f,!0))}function vj(t,e,n=null,r=t){let a=BFe(t,e),i=a&&ZFe(r,e);return i?a.map(ipe).concat({type:e,attrs:n}).concat(i.map(ipe)):null}function ipe(t){return{type:t,attrs:null}}function BFe(t,e){let{parent:n,startIndex:r,endIndex:a}=t,i=n.contentMatchAt(r).findWrapping(e);if(!i)return null;let o=i.length?i[0]:e;return n.canReplaceWith(r,a,o)?i:null}function ZFe(t,e){let{parent:n,startIndex:r,endIndex:a}=t,i=n.child(r),o=e.contentMatch.findWrapping(i.type);if(!o)return null;let l=(o.length?o[o.length-1]:e).contentMatch;for(let c=r;l&&c<a;c++)l=l.matchType(n.child(c).type);return!l||!l.validEnd?null:o}function QFe(t,e,n){let r=Xt.empty;for(let o=n.length-1;o>=0;o--){if(r.size){let s=n[o].type.contentMatch.matchFragment(r);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=Xt.from(n[o].type.create(n[o].attrs,r))}let a=e.start,i=e.end;t.step(new Vo(a,i,a,i,new tn(r,0,0),n.length,!0))}function KFe(t,e,n,r,a){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(o,s)=>{if(o.isTextblock&&!o.hasMarkup(r,a)&&HFe(t.doc,t.mapping.slice(i).map(s),r)){t.clearIncompatible(t.mapping.slice(i).map(s,1),r);let l=t.mapping.slice(i),c=l.map(s,1),u=l.map(s+o.nodeSize,1);return t.step(new Vo(c,u,c+1,u-1,new tn(Xt.from(r.create(a,null,o.marks)),0,0),1,!0)),!1}})}function HFe(t,e,n){let r=t.resolve(e),a=r.index();return r.parent.canReplaceWith(a,a+1,n)}function GFe(t,e,n,r,a){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let o=n.create(r,null,a||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,o);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new Vo(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new tn(Xt.from(o),0,0),1,!0))}function Dx(t,e,n=1,r){let a=t.resolve(e),i=a.depth-n,o=r&&r[r.length-1]||a.parent;if(i<0||a.parent.type.spec.isolating||!a.parent.canReplace(a.index(),a.parent.childCount)||!o.type.validContent(a.parent.content.cutByIndex(a.index(),a.parent.childCount)))return!1;for(let c=a.depth-1,u=n-2;c>i;c--,u--){let f=a.node(c),d=a.index(c);if(f.type.spec.isolating)return!1;let h=f.content.cutByIndex(d,f.childCount),p=r&&r[u+1];p&&(h=h.replaceChild(0,p.type.create(p.attrs)));let v=r&&r[u]||f;if(!f.canReplace(d+1,f.childCount)||!v.type.validContent(h))return!1}let s=a.indexAfter(i),l=r&&r[0];return a.node(i).canReplaceWith(s,s,l?l.type:a.node(i+1).type)}function $Fe(t,e,n=1,r){let a=t.doc.resolve(e),i=Xt.empty,o=Xt.empty;for(let s=a.depth,l=a.depth-n,c=n-1;s>l;s--,c--){i=Xt.from(a.node(s).copy(i));let u=r&&r[c];o=Xt.from(u?u.type.create(u.attrs,o):a.node(s).copy(o))}t.step(new ls(e,e,new tn(i.append(o),n,n),!0))}function PS(t,e){let n=t.resolve(e),r=n.index();return RSe(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function RSe(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function bSe(t,e,n=-1){let r=t.resolve(e);for(let a=r.depth;;a--){let i,o,s=r.index(a);if(a==r.depth?(i=r.nodeBefore,o=r.nodeAfter):n>0?(i=r.node(a+1),s++,o=r.node(a).maybeChild(s)):(i=r.node(a).maybeChild(s-1),o=r.node(a+1)),i&&!i.isTextblock&&RSe(i,o)&&r.node(a).canReplace(s,s+1))return e;if(a==0)break;e=n<0?r.before(a):r.after(a)}}function zFe(t,e,n){let r=new ls(e-n,e+n,tn.empty,!0);t.step(r)}function JFe(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let a=r.depth-1;a>=0;a--){let i=r.index(a);if(r.node(a).canReplaceWith(i,i,n))return r.before(a+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let a=r.depth-1;a>=0;a--){let i=r.indexAfter(a);if(r.node(a).canReplaceWith(i,i,n))return r.after(a+1);if(i<r.node(a).childCount)return null}return null}function xSe(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let a=n.content;for(let i=0;i<n.openStart;i++)a=a.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let o=r.depth;o>=0;o--){let s=o==r.depth?0:r.pos<=(r.start(o+1)+r.end(o+1))/2?-1:1,l=r.index(o)+(s>0?1:0),c=r.node(o),u=!1;if(i==1)u=c.canReplace(l,l,a);else{let f=c.contentMatchAt(l).findWrapping(a.firstChild.type);u=f&&c.canReplaceWith(l,l,f[0])}if(u)return s==0?r.pos:s<0?r.before(o+1):r.after(o+1)}return null}function gj(t,e,n=e,r=tn.empty){if(e==n&&!r.size)return null;let a=t.resolve(e),i=t.resolve(n);return SSe(a,i,r)?new ls(e,n,r):new jFe(a,i,r).fit()}function SSe(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class jFe{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=Xt.empty;for(let a=0;a<=e.depth;a++){let i=e.node(a);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(a))})}for(let a=e.depth;a>0;a--)this.placed=Xt.from(e.node(a).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,a=this.close(e<0?this.$to:r.doc.resolve(e));if(!a)return null;let i=this.placed,o=r.depth,s=a.depth;for(;o&&s&&i.childCount==1;)i=i.firstChild.content,o--,s--;let l=new tn(i,o,s);return e>-1?new Vo(r.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new ls(r.pos,a.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,a=this.unplaced.openEnd;r<e;r++){let i=n.firstChild;if(n.childCount>1&&(a=0),i.type.spec.isolating&&a<=r){e=r;break}n=i.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let a,i=null;r?(i=uZ(this.unplaced.content,r-1).firstChild,a=i.content):a=this.unplaced.content;let o=a.firstChild;for(let s=this.depth;s>=0;s--){let{type:l,match:c}=this.frontier[s],u,f=null;if(n==1&&(o?c.matchType(o.type)||(f=c.fillBefore(Xt.from(o),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:s,parent:i,inject:f};if(n==2&&o&&(u=c.findWrapping(o.type)))return{sliceDepth:r,frontierDepth:s,parent:i,wrap:u};if(i&&c.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,a=uZ(e,n);return!a.childCount||a.firstChild.isLeaf?!1:(this.unplaced=new tn(e,n+1,Math.max(r,a.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,a=uZ(e,n);if(a.childCount<=1&&n>0){let i=e.size-n<=n+a.size;this.unplaced=new tn(Z5(e,n-1,1),n-1,i?n-1:r)}else this.unplaced=new tn(Z5(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:a,wrap:i}){for(;this.depth>n;)this.closeFrontierNode();if(i)for(let v=0;v<i.length;v++)this.openFrontierNode(i[v]);let o=this.unplaced,s=r?r.content:o.content,l=o.openStart-e,c=0,u=[],{match:f,type:d}=this.frontier[n];if(a){for(let v=0;v<a.childCount;v++)u.push(a.child(v));f=f.matchFragment(a)}let h=s.size+e-(o.content.size-o.openEnd);for(;c<s.childCount;){let v=s.child(c),g=f.matchType(v.type);if(!g)break;c++,(c>1||l==0||v.content.size)&&(f=g,u.push(MSe(v.mark(d.allowedMarks(v.marks)),c==1?l:0,c==s.childCount?h:-1)))}let p=c==s.childCount;p||(h=-1),this.placed=Q5(this.placed,n,Xt.from(u)),this.frontier[n].match=f,p&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let v=0,g=s;v<h;v++){let y=g.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),g=y.content}this.unplaced=p?e==0?tn.empty:new tn(Z5(o.content,e-1,1),e-1,h<0?o.openEnd:e-1):new tn(Z5(o.content,e,c),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!fZ(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,a=this.$to.after(r);for(;r>1&&a==this.$to.end(--r);)++a;return a}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:a}=this.frontier[n],i=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),o=fZ(e,n,a,r,i);if(o){for(let s=n-1;s>=0;s--){let{match:l,type:c}=this.frontier[s],u=fZ(e,s,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:o,move:i?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Q5(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let a=e.node(r),i=a.type.contentMatch.fillBefore(a.content,!0,e.index(r));this.openFrontierNode(a.type,a.attrs,i)}return e}openFrontierNode(e,n=null,r){let a=this.frontier[this.depth];a.match=a.match.matchType(e),this.placed=Q5(this.placed,this.depth,Xt.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(Xt.empty,!0);n.childCount&&(this.placed=Q5(this.placed,this.frontier.length,n))}}function Z5(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Z5(t.firstChild.content,e-1,n)))}function Q5(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Q5(t.lastChild.content,e-1,n)))}function uZ(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function MSe(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,MSe(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(Xt.empty,!0)))),t.copy(r)}function fZ(t,e,n,r,a){let i=t.node(e),o=a?t.indexAfter(e):t.index(e);if(o==i.childCount&&!n.compatibleContent(i.type))return null;let s=r.fillBefore(i.content,!0,o);return s&&!qFe(n,i.content,o)?s:null}function qFe(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function eXe(t){return t.spec.defining||t.spec.definingForContent}function tXe(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let a=t.doc.resolve(e),i=t.doc.resolve(n);if(SSe(a,i,r))return t.step(new ls(e,n,r));let o=wSe(a,t.doc.resolve(n));o[o.length-1]==0&&o.pop();let s=-(a.depth+1);o.unshift(s);for(let d=a.depth,h=a.pos-1;d>0;d--,h--){let p=a.node(d).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;o.indexOf(d)>-1?s=d:a.before(d)==h&&o.splice(1,0,-d)}let l=o.indexOf(s),c=[],u=r.openStart;for(let d=r.content,h=0;;h++){let p=d.firstChild;if(c.push(p),h==r.openStart)break;d=p.content}for(let d=u-1;d>=0;d--){let h=c[d],p=eXe(h.type);if(p&&!h.sameMarkup(a.node(Math.abs(s)-1)))u=d;else if(p||!h.type.isTextblock)break}for(let d=r.openStart;d>=0;d--){let h=(d+u+1)%(r.openStart+1),p=c[h];if(p)for(let v=0;v<o.length;v++){let g=o[(v+l)%o.length],y=!0;g<0&&(y=!1,g=-g);let m=a.node(g-1),R=a.index(g-1);if(m.canReplaceWith(R,R,p.type,p.marks))return t.replace(a.before(g),y?i.after(g):n,new tn(_Se(r.content,0,r.openStart,h),h,r.openEnd))}}let f=t.steps.length;for(let d=o.length-1;d>=0&&(t.replace(e,n,r),!(t.steps.length>f));d--){let h=o[d];h<0||(e=a.before(h),n=i.after(h))}}function _Se(t,e,n,r,a){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(_Se(i.content,e+1,n,r,i)))}if(e>r){let i=a.contentMatchAt(0),o=i.fillBefore(t).append(t);t=o.append(i.matchFragment(o).fillBefore(Xt.empty,!0))}return t}function nXe(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let a=JFe(t.doc,e,r.type);a!=null&&(e=n=a)}t.replaceRange(e,n,new tn(Xt.from(r),0,0))}function rXe(t,e,n){let r=t.doc.resolve(e),a=t.doc.resolve(n),i=wSe(r,a);for(let o=0;o<i.length;o++){let s=i[o],l=o==i.length-1;if(l&&s==0||r.node(s).type.contentMatch.validEnd)return t.delete(r.start(s),a.end(s));if(s>0&&(l||r.node(s-1).canReplace(r.index(s-1),a.indexAfter(s-1))))return t.delete(r.before(s),a.after(s))}for(let o=1;o<=r.depth&&o<=a.depth;o++)if(e-r.start(o)==r.depth-o&&n>r.end(o)&&a.end(o)-n!=a.depth-o)return t.delete(r.before(o),n);t.delete(e,n)}function wSe(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let a=r;a>=0;a--){let i=t.start(a);if(i<t.pos-(t.depth-a)||e.end(a)>e.pos+(e.depth-a)||t.node(a).type.spec.isolating||e.node(a).type.spec.isolating)break;(i==e.start(a)||a==t.depth&&a==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&a&&e.start(a-1)==i-1)&&n.push(a)}return n}class Vx extends vs{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ci.fail("No node at attribute step's position");let r=Object.create(null);for(let i in n.attrs)r[i]=n.attrs[i];r[this.attr]=this.value;let a=n.type.create(r,null,n.marks);return Ci.fromReplace(e,this.pos,this.pos+1,new tn(Xt.from(a),0,n.isLeaf?0:1))}getMap(){return lc.empty}invert(e){return new Vx(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Vx(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Vx(n.pos,n.attr,n.value)}}vs.jsonID("attr",Vx);class xw extends vs{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let a in e.attrs)n[a]=e.attrs[a];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return Ci.ok(r)}getMap(){return lc.empty}invert(e){return new xw(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new xw(n.attr,n.value)}}vs.jsonID("docAttr",xw);let eS=class extends Error{};eS=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};eS.prototype=Object.create(Error.prototype);eS.prototype.constructor=eS;eS.prototype.name="TransformError";class aXe{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Xx}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new eS(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=tn.empty){let a=gj(this.doc,e,n,r);return a&&this.step(a),this}replaceWith(e,n,r){return this.replace(e,n,new tn(Xt.from(r),0,0))}delete(e,n){return this.replace(e,n,tn.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return tXe(this,e,n,r),this}replaceRangeWith(e,n,r){return nXe(this,e,n,r),this}deleteRange(e,n){return rXe(this,e,n),this}lift(e,n){return YFe(this,e,n),this}join(e,n=1){return zFe(this,e,n),this}wrap(e,n){return QFe(this,e,n),this}setBlockType(e,n=e,r,a=null){return KFe(this,e,n,r,a),this}setNodeMarkup(e,n,r=null,a){return GFe(this,e,n,r,a),this}setNodeAttribute(e,n,r){return this.step(new Vx(e,n,r)),this}setDocAttribute(e,n){return this.step(new xw(e,n)),this}addNodeMark(e,n){return this.step(new y1(e,n)),this}removeNodeMark(e,n){if(!(n instanceof Yr)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new qx(e,n)),this}split(e,n=1,r){return $Fe(this,e,n,r),this}addMark(e,n,r){return DFe(this,e,n,r),this}removeMark(e,n,r){return VFe(this,e,n,r),this}clearIncompatible(e,n,r){return UFe(this,e,n,r),this}}const dZ=Object.create(null);class Sr{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new iXe(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=tn.empty){let r=n.content.lastChild,a=null;for(let s=0;s<n.openEnd;s++)a=r,r=r.lastChild;let i=e.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){let{$from:l,$to:c}=o[s],u=e.mapping.slice(i);e.replaceRange(u.map(l.pos),u.map(c.pos),s?tn.empty:n),s==0&&lpe(e,i,(r?r.isInline:a&&a.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,a=this.ranges;for(let i=0;i<a.length;i++){let{$from:o,$to:s}=a[i],l=e.mapping.slice(r),c=l.map(o.pos),u=l.map(s.pos);i?e.deleteRange(c,u):(e.replaceRangeWith(c,u,n),lpe(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let a=e.parent.inlineContent?new Gr(e):jb(e.node(0),e.parent,e.pos,e.index(),n,r);if(a)return a;for(let i=e.depth-1;i>=0;i--){let o=n<0?jb(e.node(0),e.node(i),e.before(i+1),e.index(i),n,r):jb(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,n,r);if(o)return o}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new ml(e.node(0))}static atStart(e){return jb(e,e,0,0,1)||new ml(e)}static atEnd(e){return jb(e,e,e.content.size,e.childCount,-1)||new ml(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=dZ[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in dZ)throw new RangeError("Duplicate use of selection JSON ID "+e);return dZ[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Gr.between(this.$anchor,this.$head).getBookmark()}}Sr.prototype.visible=!0;class iXe{constructor(e,n){this.$from=e,this.$to=n}}let ope=!1;function spe(t){!ope&&!t.parent.inlineContent&&(ope=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Gr extends Sr{constructor(e,n=e){spe(e),spe(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return Sr.near(r);let a=e.resolve(n.map(this.anchor));return new Gr(a.parent.inlineContent?a:r,r)}replace(e,n=tn.empty){if(super.replace(e,n),n==tn.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Gr&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new wD(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Gr(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let a=e.resolve(n);return new this(a,r==n?a:e.resolve(r))}static between(e,n,r){let a=e.pos-n.pos;if((!r||a)&&(r=a>=0?1:-1),!n.parent.inlineContent){let i=Sr.findFrom(n,r,!0)||Sr.findFrom(n,-r,!0);if(i)n=i.$head;else return Sr.near(n,r)}return e.parent.inlineContent||(a==0?e=n:(e=(Sr.findFrom(e,-r,!0)||Sr.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=a<0&&(e=n))),new Gr(e,n)}}Sr.jsonID("text",Gr);class wD{constructor(e,n){this.anchor=e,this.head=n}map(e){return new wD(e.map(this.anchor),e.map(this.head))}resolve(e){return Gr.between(e.resolve(this.anchor),e.resolve(this.head))}}class On extends Sr{constructor(e){let n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);super(e,r),this.node=n}map(e,n){let{deleted:r,pos:a}=n.mapResult(this.anchor),i=e.resolve(a);return r?Sr.near(i):new On(i)}content(){return new tn(Xt.from(this.node),0,0)}eq(e){return e instanceof On&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new mj(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new On(e.resolve(n.anchor))}static create(e,n){return new On(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}On.prototype.visible=!1;Sr.jsonID("node",On);class mj{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new wD(r,r):new mj(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&On.isSelectable(r)?new On(n):Sr.near(n)}}class ml extends Sr{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=tn.empty){if(n==tn.empty){e.delete(0,e.doc.content.size);let r=Sr.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new ml(e)}map(e){return new ml(e)}eq(e){return e instanceof ml}getBookmark(){return oXe}}Sr.jsonID("all",ml);const oXe={map(){return this},resolve(t){return new ml(t)}};function jb(t,e,n,r,a,i=!1){if(e.inlineContent)return Gr.create(t,n);for(let o=r-(a>0?0:1);a>0?o<e.childCount:o>=0;o+=a){let s=e.child(o);if(s.isAtom){if(!i&&On.isSelectable(s))return On.create(t,n-(a<0?s.nodeSize:0))}else{let l=jb(t,s,n+a,a<0?s.childCount:0,a,i);if(l)return l}n+=s.nodeSize*a}return null}function lpe(t,e,n){let r=t.steps.length-1;if(r<e)return;let a=t.steps[r];if(!(a instanceof ls||a instanceof Vo))return;let i=t.mapping.maps[r],o;i.forEach((s,l,c,u)=>{o==null&&(o=u)}),t.setSelection(Sr.near(t.doc.resolve(o),n))}const cpe=1,a9=2,upe=4;class sXe extends aXe{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|cpe)&~a9,this.storedMarks=null,this}get selectionSet(){return(this.updated&cpe)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=a9,this}ensureMarks(e){return Yr.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&a9)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~a9,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||Yr.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let a=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(a.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let i=this.storedMarks;if(!i){let o=this.doc.resolve(n);i=r==n?o.marks():o.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,a.text(e,i)),this.selection.empty||this.setSelection(Sr.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=upe,this}get scrolledIntoView(){return(this.updated&upe)>0}}function fpe(t,e){return!e||!t?t:t.bind(e)}class K5{constructor(e,n,r){this.name=e,this.init=fpe(n.init,r),this.apply=fpe(n.apply,r)}}const lXe=[new K5("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new K5("selection",{init(t,e){return t.selection||Sr.atStart(e.doc)},apply(t){return t.selection}}),new K5("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new K5("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class hZ{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=lXe.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new K5(r.key,r.spec.state,r))})}}class dx{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let a=this.config.plugins[r];if(a.spec.filterTransaction&&!a.spec.filterTransaction.call(a,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],r=this.applyInner(e),a=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let s=this.config.plugins[o];if(s.spec.appendTransaction){let l=a?a[o].n:0,c=a?a[o].state:this,u=l<n.length&&s.spec.appendTransaction.call(s,l?n.slice(l):n,c,r);if(u&&r.filterTransaction(u,o)){if(u.setMeta("appendedTransaction",e),!a){a=[];for(let f=0;f<this.config.plugins.length;f++)a.push(f<o?{state:r,n:n.length}:{state:this,n:0})}n.push(u),r=r.applyInner(u),i=!0}a&&(a[o]={state:r,n:n.length})}}if(!i)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new dx(this.config),r=this.config.fields;for(let a=0;a<r.length;a++){let i=r[a];n[i.name]=i.apply(e,this[i.name],this,n)}return n}get tr(){return new sXe(this)}static create(e){let n=new hZ(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new dx(n);for(let a=0;a<n.fields.length;a++)r[n.fields[a].name]=n.fields[a].init(e,r);return r}reconfigure(e){let n=new hZ(this.schema,e.plugins),r=n.fields,a=new dx(n);for(let i=0;i<r.length;i++){let o=r[i].name;a[o]=this.hasOwnProperty(o)?this[o]:r[i].init(e,a)}return a}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let a=e[r],i=a.spec.state;i&&i.toJSON&&(n[r]=i.toJSON.call(a,this[a.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let a=new hZ(e.schema,e.plugins),i=new dx(a);return a.fields.forEach(o=>{if(o.name=="doc")i.doc=yh.fromJSON(e.schema,n.doc);else if(o.name=="selection")i.selection=Sr.fromJSON(i.doc,n.selection);else if(o.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let s in r){let l=r[s],c=l.spec.state;if(l.key==o.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){i[o.name]=c.fromJSON.call(l,e,n[s],i);return}}i[o.name]=o.init(e,i)}}),i}}function LSe(t,e,n){for(let r in t){let a=t[r];a instanceof Function?a=a.bind(e):r=="handleDOMEvents"&&(a=LSe(a,e,{})),n[r]=a}return n}class CS{constructor(e){this.spec=e,this.props={},e.props&&LSe(e.props,this,this.props),this.key=e.key?e.key.key:TSe("plugin")}getState(e){return e[this.key]}}const pZ=Object.create(null);function TSe(t){return t in pZ?t+"$"+ ++pZ[t]:(pZ[t]=0,t+"$")}class OSe{constructor(e="key"){this.key=TSe(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const PSe=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function cXe(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const uXe=(t,e,n)=>{let r=cXe(t,n);if(!r)return!1;let a=CSe(r);if(!a){let o=r.blockRange(),s=o&&c8(o);return s==null?!1:(e&&e(t.tr.lift(o,s).scrollIntoView()),!0)}let i=a.nodeBefore;if(DSe(t,a,e,-1))return!0;if(r.parent.content.size==0&&(tS(i,"end")||On.isSelectable(i)))for(let o=r.depth;;o--){let s=gj(t.doc,r.before(o),r.after(o),tn.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=t.tr.step(s);l.setSelection(tS(i,"end")?Sr.findFrom(l.doc.resolve(l.mapping.map(a.pos,-1)),-1):On.create(l.doc,a.pos-i.nodeSize)),e(l.scrollIntoView())}return!0}if(o==1||r.node(o-1).childCount>1)break}return i.isAtom&&a.depth==r.depth-1?(e&&e(t.tr.delete(a.pos-i.nodeSize,a.pos).scrollIntoView()),!0):!1};function tS(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const fXe=(t,e,n)=>{let{$head:r,empty:a}=t.selection,i=r;if(!a)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;i=CSe(r)}let o=i&&i.nodeBefore;return!o||!On.isSelectable(o)?!1:(e&&e(t.tr.setSelection(On.create(t.doc,i.pos-o.nodeSize)).scrollIntoView()),!0)};function CSe(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function dXe(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const hXe=(t,e,n)=>{let r=dXe(t,n);if(!r)return!1;let a=NSe(r);if(!a)return!1;let i=a.nodeAfter;if(DSe(t,a,e,1))return!0;if(r.parent.content.size==0&&(tS(i,"start")||On.isSelectable(i))){let o=gj(t.doc,r.before(),r.after(),tn.empty);if(o&&o.slice.size<o.to-o.from){if(e){let s=t.tr.step(o);s.setSelection(tS(i,"start")?Sr.findFrom(s.doc.resolve(s.mapping.map(a.pos)),1):On.create(s.doc,s.mapping.map(a.pos))),e(s.scrollIntoView())}return!0}}return i.isAtom&&a.depth==r.depth-1?(e&&e(t.tr.delete(a.pos,a.pos+i.nodeSize).scrollIntoView()),!0):!1},pXe=(t,e,n)=>{let{$head:r,empty:a}=t.selection,i=r;if(!a)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;i=NSe(r)}let o=i&&i.nodeAfter;return!o||!On.isSelectable(o)?!1:(e&&e(t.tr.setSelection(On.create(t.doc,i.pos)).scrollIntoView()),!0)};function NSe(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const vXe=(t,e)=>{let n=t.selection,r=n instanceof On,a;if(r){if(n.node.isTextblock||!PS(t.doc,n.from))return!1;a=n.from}else if(a=bSe(t.doc,n.from,-1),a==null)return!1;if(e){let i=t.tr.join(a);r&&i.setSelection(On.create(i.doc,a-t.doc.resolve(a).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},gXe=(t,e)=>{let n=t.selection,r;if(n instanceof On){if(n.node.isTextblock||!PS(t.doc,n.to))return!1;r=n.to}else if(r=bSe(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},mXe=(t,e)=>{let{$from:n,$to:r}=t.selection,a=n.blockRange(r),i=a&&c8(a);return i==null?!1:(e&&e(t.tr.lift(a,i).scrollIntoView()),!0)},ISe=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`-`).scrollIntoView()),!0)};function yj(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const yXe=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let a=n.node(-1),i=n.indexAfter(-1),o=yj(a.contentMatchAt(i));if(!o||!a.canReplaceWith(i,i,o))return!1;if(e){let s=n.after(),l=t.tr.replaceWith(s,s,o.createAndFill());l.setSelection(Sr.near(l.doc.resolve(s),1)),e(l.scrollIntoView())}return!0},kSe=(t,e)=>{let n=t.selection,{$from:r,$to:a}=n;if(n instanceof ml||r.parent.inlineContent||a.parent.inlineContent)return!1;let i=yj(a.parent.contentMatchAt(a.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let o=(!r.parentOffset&&a.index()<a.parent.childCount?r:a).pos,s=t.tr.insert(o,i.createAndFill());s.setSelection(Gr.create(s.doc,o+1)),e(s.scrollIntoView())}return!0},ESe=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(Dx(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let r=n.blockRange(),a=r&&c8(r);return a==null?!1:(e&&e(t.tr.lift(r,a).scrollIntoView()),!0)};function AXe(t){return(e,n)=>{let{$from:r,$to:a}=e.selection;if(e.selection instanceof On&&e.selection.node.isBlock)return!r.parentOffset||!Dx(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.parent.isBlock)return!1;if(n){let i=a.parentOffset==a.parent.content.size,o=e.tr;(e.selection instanceof Gr||e.selection instanceof ml)&&o.deleteSelection();let s=r.depth==0?null:yj(r.node(-1).contentMatchAt(r.indexAfter(-1))),l=i&&s?[{type:s}]:void 0,c=Dx(o.doc,o.mapping.map(r.pos),1,l);if(!l&&!c&&Dx(o.doc,o.mapping.map(r.pos),1,s?[{type:s}]:void 0)&&(s&&(l=[{type:s}]),c=!0),c&&(o.split(o.mapping.map(r.pos),1,l),!i&&!r.parentOffset&&r.parent.type!=s)){let u=o.mapping.map(r.before()),f=o.doc.resolve(u);s&&r.node(-1).canReplaceWith(f.index(),f.index()+1,s)&&o.setNodeMarkup(o.mapping.map(r.before()),s)}n(o.scrollIntoView())}return!0}}const FSe=AXe(),RXe=(t,e)=>FSe(t,e&&(n=>{let r=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();r&&n.ensureMarks(r),e(n)})),bXe=(t,e)=>{let{$from:n,to:r}=t.selection,a,i=n.sharedDepth(r);return i==0?!1:(a=n.before(i),e&&e(t.tr.setSelection(On.create(t.doc,a))),!0)},XSe=(t,e)=>(e&&e(t.tr.setSelection(new ml(t.doc))),!0);function xXe(t,e,n){let r=e.nodeBefore,a=e.nodeAfter,i=e.index();return!r||!a||!r.type.compatibleContent(a.type)?!1:!r.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(a.isTextblock||PS(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function DSe(t,e,n,r){let a=e.nodeBefore,i=e.nodeAfter,o,s,l=a.type.spec.isolating||i.type.spec.isolating;if(!l&&xXe(t,e,n))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(o=(s=a.contentMatchAt(a.childCount)).findWrapping(i.type))&&s.matchType(o[0]||i.type).validEnd){if(n){let h=e.pos+i.nodeSize,p=Xt.empty;for(let y=o.length-1;y>=0;y--)p=Xt.from(o[y].create(null,p));p=Xt.from(a.copy(p));let v=t.tr.step(new Vo(e.pos-1,h,e.pos,h,new tn(p,1,0),o.length,!0)),g=h+2*o.length;PS(v.doc,g)&&v.join(g),n(v.scrollIntoView())}return!0}let u=i.type.spec.isolating||r>0&&l?null:Sr.findFrom(e,1),f=u&&u.$from.blockRange(u.$to),d=f&&c8(f);if(d!=null&&d>=e.depth)return n&&n(t.tr.lift(f,d).scrollIntoView()),!0;if(c&&tS(i,"start",!0)&&tS(a,"end")){let h=a,p=[];for(;p.push(h),!h.isTextblock;)h=h.lastChild;let v=i,g=1;for(;!v.isTextblock;v=v.firstChild)g++;if(h.canReplace(h.childCount,h.childCount,v.content)){if(n){let y=Xt.empty;for(let R=p.length-1;R>=0;R--)y=Xt.from(p[R].copy(y));let m=t.tr.step(new Vo(e.pos-p.length,e.pos+i.nodeSize,e.pos+g,e.pos+i.nodeSize-g,new tn(y,p.length,0),0,!0));n(m.scrollIntoView())}return!0}}return!1}function VSe(t){return function(e,n){let r=e.selection,a=t<0?r.$from:r.$to,i=a.depth;for(;a.node(i).isInline;){if(!i)return!1;i--}return a.node(i).isTextblock?(n&&n(e.tr.setSelection(Gr.create(e.doc,t<0?a.start(i):a.end(i)))),!0):!1}}const SXe=VSe(-1),MXe=VSe(1);function _Xe(t,e=null){return function(n,r){let{$from:a,$to:i}=n.selection,o=a.blockRange(i),s=o&&vj(o,t,e);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function wXe(t,e,n,r){for(let a=0;a<e.length;a++){let{$from:i,$to:o}=e[a],s=i.depth==0?t.inlineContent&&t.type.allowsMarkType(n):!1;if(t.nodesBetween(i.pos,o.pos,(l,c)=>{if(s)return!1;s=l.inlineContent&&l.type.allowsMarkType(n)}),s)return!0}return!1}function Oi(t,e=null,n){return function(r,a){let{empty:i,$cursor:o,ranges:s}=r.selection;if(i&&!o||!wXe(r.doc,s,t))return!1;if(a)if(o)t.isInSet(r.storedMarks||o.marks())?a(r.tr.removeStoredMark(t)):a(r.tr.addStoredMark(t.create(e)));else{let l,c=r.tr;l=!s.some(u=>r.doc.rangeHasMark(u.$from.pos,u.$to.pos,t));for(let u=0;u<s.length;u++){let{$from:f,$to:d}=s[u];if(!l)c.removeMark(f.pos,d.pos,t);else{let h=f.pos,p=d.pos,v=f.nodeAfter,g=d.nodeBefore,y=v&&v.isText?/^\s*/.exec(v.text)[0].length:0,m=g&&g.isText?/\s*$/.exec(g.text)[0].length:0;h+y<p&&(h+=y,p-=m),c.addMark(h,p,t.create(e))}}a(c.scrollIntoView())}return!0}}function LD(...t){return function(e,n,r){for(let a=0;a<t.length;a++)if(t[a](e,n,r))return!0;return!1}}let vZ=LD(PSe,uXe,fXe),dpe=LD(PSe,hXe,pXe);const Jp={Enter:LD(ISe,kSe,ESe,FSe),"Mod-Enter":yXe,Backspace:vZ,"Mod-Backspace":vZ,"Shift-Backspace":vZ,Delete:dpe,"Mod-Delete":dpe,"Mod-a":XSe},USe={"Ctrl-h":Jp.Backspace,"Alt-Backspace":Jp["Mod-Backspace"],"Ctrl-d":Jp.Delete,"Ctrl-Alt-Backspace":Jp["Mod-Delete"],"Alt-Delete":Jp["Mod-Delete"],"Alt-d":Jp["Mod-Delete"],"Ctrl-a":SXe,"Ctrl-e":MXe};for(let t in Jp)USe[t]=Jp[t];const LXe=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform?os.platform()=="darwin":!1,TXe=LXe?USe:Jp,XF=(t,e)=>t.type===e.nodes.bullet_list||t.type===e.nodes.ordered_list,Qi=t=>{const{empty:e}=t.state.selection;e&&XSe(t.state,t.dispatch)},qd=(t,e,n)=>{if(n)t.dispatch(t.state.tr.addMark(n.from,n.to,e));else{const{$from:r,$to:a}=t.state.selection;t.dispatch(t.state.tr.addMark(r.pos,a.pos,e))}},OXe=(t,e,n,r)=>{let a=e;const i=d=>d.type===r;let o=null,s=null,l=null;for(;a<=n;){const d=t.nodeAt(a);if(!d||!d.marks)return null;const h=d.marks.find(i);if(!h||o&&h!==o)return null;s=s||d,o=o||h,l=d,a++}let c=e,u=n,f=0;for(a=e-1;a>f;){const d=t.nodeAt(a),h=d&&d.marks.find(i);if(!h||h!==o)break;c=a,s=d,a--}for(a=n+1,f=t.nodeSize-2;a<f;){const d=t.nodeAt(a),h=d&&d.marks.find(i);if(!h||h!==o)break;u=a,l=d,a++}return{mark:o,from:{node:s,pos:c},to:{node:l,pos:u}}},PXe=(t,e)=>Array.isArray(t)&&t.indexOf(e.type)>-1||e.type===t,CXe=(t,e)=>{for(let n=t.depth;n>0;n--){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}},WSe=t=>e=>CXe(e.$from,t),NXe=t=>e=>WSe(n=>PXe(t,n))(e),TE=(t,e)=>{const n=e.schema.nodes[t];return!!NXe(n)(e.selection)},YSe=t=>t?t.type.name==="text"?t:t.lastChild?YSe(t.lastChild):null:null,BSe=t=>{const{selection:e,doc:n}=t.state,{from:r}=e;let a=n.nodeAt(r)||n.nodeAt(r-1);return a=YSe(a),(a==null?void 0:a.marks)||[]},qb=(t,e,n)=>{for(const r of t)if(r.type.name===e&&r.attrs[n])return r.attrs[n];return null},Wm=(t,e)=>{for(const n of t)if(n.type.name===e)return!0;return!1},IXe=(t,e)=>{const{from:n,$from:r,to:a,empty:i}=t.selection;return i?e.isInSet(t.storedMarks||r.marks()):t.doc.rangeHasMark(n,a,e)},kXe=(t,e)=>{const{selection:n,doc:r}=t.state,{from:a,to:i}=n;let o=!0,s="";return r.nodesBetween(a,i,l=>(o&&l.attrs[e]&&(o=!1,s=l.attrs[e]),o)),s},ZSe={color:"#000000",backcolor:"",fontsize:"16px",fontname:"",align:"left"},RG=(t,e={})=>{const n={...ZSe,...e},r=BSe(t),a=Wm(r,"strong"),i=Wm(r,"em"),o=Wm(r,"underline"),s=Wm(r,"strikethrough"),l=Wm(r,"superscript"),c=Wm(r,"subscript"),u=Wm(r,"code"),f=qb(r,"forecolor","color")||n.color,d=qb(r,"backcolor","backcolor")||n.backcolor,h=qb(r,"fontsize","fontsize")||n.fontsize,p=qb(r,"fontname","fontname")||n.fontname,v=qb(r,"link","href")||"",g=kXe(t,"align")||n.align,y=TE("bullet_list",t.state),m=TE("ordered_list",t.state),R=TE("blockquote",t.state);return{bold:a,em:i,underline:o,strikethrough:s,superscript:l,subscript:c,code:u,color:f,backcolor:d,fontsize:h,fontname:p,link:v,align:g,bulletList:y,orderedList:m,blockquote:R}},hpe=t=>{const e=BSe(t),n=qb(e,"fontsize","fontsize")||ZSe.fontsize;return parseInt(n)},EXe={bold:!1,em:!1,underline:!1,strikethrough:!1,superscript:!1,subscript:!1,code:!1,color:"#000000",backcolor:"",fontsize:"16px",fontname:"",link:"",align:"left",bulletList:!1,orderedList:!1,blockquote:!1};var cn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ng(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Aj(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var DF={exports:{}};/**- * @license- * Lodash <https://lodash.com/>- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>- * Released under MIT license <https://lodash.com/license>- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors- */DF.exports;(function(t,e){(function(){var n,r="4.17.21",a=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",f=1,d=2,h=4,p=1,v=2,g=1,y=2,m=4,R=8,A=16,x=32,M=64,S=128,w=256,_=512,T=30,O="...",N=800,P=16,C=1,E=2,F=3,Y=1/0,Q=9007199254740991,K=17976931348623157e292,ne=NaN,Z=4294967295,$=Z-1,G=Z>>>1,ee=[["ary",S],["bind",g],["bindKey",y],["curry",R],["curryRight",A],["flip",_],["partial",x],["partialRight",M],["rearg",w]],ce="[object Arguments]",B="[object Array]",xe="[object AsyncFunction]",_e="[object Boolean]",se="[object Date]",z="[object DOMException]",de="[object Error]",fe="[object Function]",re="[object GeneratorFunction]",X="[object Map]",j="[object Number]",oe="[object Null]",ae="[object Object]",le="[object Promise]",ge="[object Proxy]",Se="[object RegExp]",me="[object Set]",ye="[object String]",Ve="[object Symbol]",De="[object Undefined]",Ye="[object WeakMap]",Je="[object WeakSet]",wt="[object ArrayBuffer]",Lt="[object DataView]",Ne="[object Float32Array]",Te="[object Float64Array]",ze="[object Int8Array]",He="[object Int16Array]",pt="[object Int32Array]",Ce="[object Uint8Array]",ut="[object Uint8ClampedArray]",je="[object Uint16Array]",it="[object Uint32Array]",Pt=/\b__p \+= '';/g,Yt=/\b(__p \+=) '' \+/g,dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,fn=/&(?:amp|lt|gt|quot|#39);/g,pn=/[&<>"']/g,En=RegExp(fn.source),yi=RegExp(pn.source),qi=/<%-([\s\S]+?)%>/g,Ta=/<%([\s\S]+?)%>/g,Ys=/<%=([\s\S]+?)%>/g,eo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ei=/^\w*$/,Jf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bs=/[\\^$.*+?()[\]{}|]/g,Vn=RegExp(Bs.source),Ar=/^\s+/,Xh=/\s/,Zs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Dh=/\{\n\/\* \[wrapped with (.+)\] \*/,P0=/,? & /,jS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ll=/[()=,{}\[\]\/\s]/,Mc=/\\(\\)?/g,vo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jf=/\w*$/,C0=/^[-+]0x[0-9a-f]+$/i,Uo=/^0b[01]+$/i,Vh=/^\[object .+?Constructor\]$/,go=/^0o[0-7]+$/i,Cy=/^(?:0|[1-9]\d*)$/,Wo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$r=/($^)/,Pu=/['\n\r\u2028\u2029\\]/g,Yo="\\ud800-\\udfff",gg="\\u0300-\\u036f",Cu="\\ufe20-\\ufe2f",Uh="\\u20d0-\\u20ff",Wh=gg+Cu+Uh,Yh="\\u2700-\\u27bf",Tl="a-z\\xdf-\\xf6\\xf8-\\xff",mg="\\xac\\xb1\\xd7\\xf7",_c="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ny="\\u2000-\\u206f",ar=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Nu="A-Z\\xc0-\\xd6\\xd8-\\xde",Ol="\\ufe0e\\ufe0f",qf=mg+_c+Ny+ar,sr="['’]",ed="["+Yo+"]",Iu="["+qf+"]",Qs="["+Wh+"]",Bh="\\d+",td="["+Yh+"]",nd="["+Tl+"]",rd="[^"+Yo+qf+Bh+Yh+Tl+Nu+"]",ku="\\ud83c[\\udffb-\\udfff]",yg="(?:"+Qs+"|"+ku+")",Eu="[^"+Yo+"]",ad="(?:\\ud83c[\\udde6-\\uddff]){2}",Ag="[\\ud800-\\udbff][\\udc00-\\udfff]",nr="["+Nu+"]",Zh="\\u200d",Iy="(?:"+nd+"|"+rd+")",N0="(?:"+nr+"|"+rd+")",la="(?:"+sr+"(?:d|ll|m|re|s|t|ve))?",Fi="(?:"+sr+"(?:D|LL|M|RE|S|T|VE))?",id=yg+"?",zr="["+Ol+"]?",Rg="(?:"+Zh+"(?:"+[Eu,ad,Ag].join("|")+")"+zr+id+")*",bg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fa="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gs=zr+id+Rg,wc="(?:"+[td,ad,Ag].join("|")+")"+gs,Qh="(?:"+[Eu+Qs+"?",Qs,ad,Ag,ed].join("|")+")",xg=RegExp(sr,"g"),Pl=RegExp(Qs,"g"),I0=RegExp(ku+"(?="+ku+")|"+Qh+gs,"g"),ms=RegExp([nr+"?"+nd+"+"+la+"(?="+[Iu,nr,"$"].join("|")+")",N0+"+"+Fi+"(?="+[Iu,nr+Iy,"$"].join("|")+")",nr+"?"+Iy+"+"+la,nr+"+"+Fi,Fa,bg,Bh,wc].join("|"),"g"),Kh=RegExp("["+Zh+Yo+Wh+Ol+"]"),Sg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,k0=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],od=-1,Er={};Er[Ne]=Er[Te]=Er[ze]=Er[He]=Er[pt]=Er[Ce]=Er[ut]=Er[je]=Er[it]=!0,Er[ce]=Er[B]=Er[wt]=Er[_e]=Er[Lt]=Er[se]=Er[de]=Er[fe]=Er[X]=Er[j]=Er[ae]=Er[Se]=Er[me]=Er[ye]=Er[Ye]=!1;var Fr={};Fr[ce]=Fr[B]=Fr[wt]=Fr[Lt]=Fr[_e]=Fr[se]=Fr[Ne]=Fr[Te]=Fr[ze]=Fr[He]=Fr[pt]=Fr[X]=Fr[j]=Fr[ae]=Fr[Se]=Fr[me]=Fr[ye]=Fr[Ve]=Fr[Ce]=Fr[ut]=Fr[je]=Fr[it]=!0,Fr[de]=Fr[fe]=Fr[Ye]=!1;var ky={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Cl={"&":"&","<":"<",">":">",'"':""","'":"'"},Ey={"&":"&","<":"<",">":">",""":'"',"'":"'"},Fy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fu=parseFloat,Xu=parseInt,Hh=typeof cn=="object"&&cn&&cn.Object===Object&&cn,Lc=typeof self=="object"&&self&&self.Object===Object&&self,si=Hh||Lc||Function("return this")(),Tc=e&&!e.nodeType&&e,Ks=Tc&&!0&&t&&!t.nodeType&&t,Gh=Ks&&Ks.exports===Tc,Hs=Gh&&Hh.process,Ai=function(){try{var Ae=Ks&&Ks.require&&Ks.require("util").types;return Ae||Hs&&Hs.binding&&Hs.binding("util")}catch{}}(),sd=Ai&&Ai.isArrayBuffer,Oc=Ai&&Ai.isDate,Pc=Ai&&Ai.isMap,Xy=Ai&&Ai.isRegExp,$h=Ai&&Ai.isSet,ld=Ai&&Ai.isTypedArray;function Ri(Ae,Oe,be){switch(be.length){case 0:return Ae.call(Oe);case 1:return Ae.call(Oe,be[0]);case 2:return Ae.call(Oe,be[0],be[1]);case 3:return Ae.call(Oe,be[0],be[1],be[2])}return Ae.apply(Oe,be)}function Mg(Ae,Oe,be,Xe){for(var ke=-1,Ze=Ae==null?0:Ae.length;++ke<Ze;){var $e=Ae[ke];Oe(Xe,$e,be($e),Ae)}return Xe}function Xa(Ae,Oe){for(var be=-1,Xe=Ae==null?0:Ae.length;++be<Xe&&Oe(Ae[be],be,Ae)!==!1;);return Ae}function bi(Ae,Oe){for(var be=Ae==null?0:Ae.length;be--&&Oe(Ae[be],be,Ae)!==!1;);return Ae}function cd(Ae,Oe){for(var be=-1,Xe=Ae==null?0:Ae.length;++be<Xe;)if(!Oe(Ae[be],be,Ae))return!1;return!0}function Bo(Ae,Oe){for(var be=-1,Xe=Ae==null?0:Ae.length,ke=0,Ze=[];++be<Xe;){var $e=Ae[be];Oe($e,be,Ae)&&(Ze[ke++]=$e)}return Ze}function zh(Ae,Oe){var be=Ae==null?0:Ae.length;return!!be&&Cc(Ae,Oe,0)>-1}function Du(Ae,Oe,be){for(var Xe=-1,ke=Ae==null?0:Ae.length;++Xe<ke;)if(be(Oe,Ae[Xe]))return!0;return!1}function Xr(Ae,Oe){for(var be=-1,Xe=Ae==null?0:Ae.length,ke=Array(Xe);++be<Xe;)ke[be]=Oe(Ae[be],be,Ae);return ke}function Gs(Ae,Oe){for(var be=-1,Xe=Oe.length,ke=Ae.length;++be<Xe;)Ae[ke+be]=Oe[be];return Ae}function Nl(Ae,Oe,be,Xe){var ke=-1,Ze=Ae==null?0:Ae.length;for(Xe&&Ze&&(be=Ae[++ke]);++ke<Ze;)be=Oe(be,Ae[ke],ke,Ae);return be}function Vu(Ae,Oe,be,Xe){var ke=Ae==null?0:Ae.length;for(Xe&&ke&&(be=Ae[--ke]);ke--;)be=Oe(be,Ae[ke],ke,Ae);return be}function Il(Ae,Oe){for(var be=-1,Xe=Ae==null?0:Ae.length;++be<Xe;)if(Oe(Ae[be],be,Ae))return!0;return!1}var Uu=ud("length");function Jh(Ae){return Ae.split("")}function kl(Ae){return Ae.match(jS)||[]}function jh(Ae,Oe,be){var Xe;return be(Ae,function(ke,Ze,$e){if(Oe(ke,Ze,$e))return Xe=Ze,!1}),Xe}function qh(Ae,Oe,be,Xe){for(var ke=Ae.length,Ze=be+(Xe?1:-1);Xe?Ze--:++Ze<ke;)if(Oe(Ae[Ze],Ze,Ae))return Ze;return-1}function Cc(Ae,Oe,be){return Oe===Oe?Dl(Ae,Oe,be):qh(Ae,tp,be)}function ep(Ae,Oe,be,Xe){for(var ke=be-1,Ze=Ae.length;++ke<Ze;)if(Xe(Ae[ke],Oe))return ke;return-1}function tp(Ae){return Ae!==Ae}function _g(Ae,Oe){var be=Ae==null?0:Ae.length;return be?E0(Ae,Oe)/be:ne}function ud(Ae){return function(Oe){return Oe==null?n:Oe[Ae]}}function Wu(Ae){return function(Oe){return Ae==null?n:Ae[Oe]}}function fd(Ae,Oe,be,Xe,ke){return ke(Ae,function(Ze,$e,Be){be=Xe?(Xe=!1,Ze):Oe(be,Ze,$e,Be)}),be}function wg(Ae,Oe){var be=Ae.length;for(Ae.sort(Oe);be--;)Ae[be]=Ae[be].value;return Ae}function E0(Ae,Oe){for(var be,Xe=-1,ke=Ae.length;++Xe<ke;){var Ze=Oe(Ae[Xe]);Ze!==n&&(be=be===n?Ze:be+Ze)}return be}function dd(Ae,Oe){for(var be=-1,Xe=Array(Ae);++be<Ae;)Xe[be]=Oe(be);return Xe}function Yu(Ae,Oe){return Xr(Oe,function(be){return[be,Ae[be]]})}function Nc(Ae){return Ae&&Ae.slice(0,J(Ae)+1).replace(Ar,"")}function xi(Ae){return function(Oe){return Ae(Oe)}}function El(Ae,Oe){return Xr(Oe,function(be){return Ae[be]})}function Bu(Ae,Oe){return Ae.has(Oe)}function np(Ae,Oe){for(var be=-1,Xe=Ae.length;++be<Xe&&Cc(Oe,Ae[be],0)>-1;);return be}function Dy(Ae,Oe){for(var be=Ae.length;be--&&Cc(Oe,Ae[be],0)>-1;);return be}function Vy(Ae,Oe){for(var be=Ae.length,Xe=0;be--;)Ae[be]===Oe&&++Xe;return Xe}var Lg=Wu(ky),rp=Wu(Cl);function li(Ae){return"\\"+Fy[Ae]}function wr(Ae,Oe){return Ae==null?n:Ae[Oe]}function Fl(Ae){return Kh.test(Ae)}function Zo(Ae){return Sg.test(Ae)}function ap(Ae){for(var Oe,be=[];!(Oe=Ae.next()).done;)be.push(Oe.value);return be}function Xl(Ae){var Oe=-1,be=Array(Ae.size);return Ae.forEach(function(Xe,ke){be[++Oe]=[ke,Xe]}),be}function Zu(Ae,Oe){return function(be){return Ae(Oe(be))}}function Xi(Ae,Oe){for(var be=-1,Xe=Ae.length,ke=0,Ze=[];++be<Xe;){var $e=Ae[be];($e===Oe||$e===u)&&(Ae[be]=u,Ze[ke++]=be)}return Ze}function Qu(Ae){var Oe=-1,be=Array(Ae.size);return Ae.forEach(function(Xe){be[++Oe]=Xe}),be}function Ku(Ae){var Oe=-1,be=Array(Ae.size);return Ae.forEach(function(Xe){be[++Oe]=[Xe,Xe]}),be}function Dl(Ae,Oe,be){for(var Xe=be-1,ke=Ae.length;++Xe<ke;)if(Ae[Xe]===Oe)return Xe;return-1}function Tg(Ae,Oe,be){for(var Xe=be+1;Xe--;)if(Ae[Xe]===Oe)return Xe;return Xe}function k(Ae){return Fl(Ae)?he(Ae):Uu(Ae)}function W(Ae){return Fl(Ae)?Re(Ae):Jh(Ae)}function J(Ae){for(var Oe=Ae.length;Oe--&&Xh.test(Ae.charAt(Oe)););return Oe}var ue=Wu(Ey);function he(Ae){for(var Oe=I0.lastIndex=0;I0.test(Ae);)++Oe;return Oe}function Re(Ae){return Ae.match(I0)||[]}function Pe(Ae){return Ae.match(ms)||[]}var Ie=function Ae(Oe){Oe=Oe==null?si:Ke.defaults(si.Object(),Oe,Ke.pick(si,k0));var be=Oe.Array,Xe=Oe.Date,ke=Oe.Error,Ze=Oe.Function,$e=Oe.Math,Be=Oe.Object,ot=Oe.RegExp,ft=Oe.String,st=Oe.TypeError,Rt=be.prototype,Ft=Ze.prototype,Ut=Be.prototype,kt=Oe["__core-js_shared__"],Dt=Ft.toString,Tt=Ut.hasOwnProperty,Bt=0,zt=function(){var b=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""}(),Mn=Ut.toString,Un=Dt.call(Be),Wn=si._,Di=ot("^"+Dt.call(Tt).replace(Bs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_n=Gh?Oe.Buffer:n,ea=Oe.Symbol,Oa=Oe.Uint8Array,hd=_n?_n.allocUnsafe:n,da=Zu(Be.getPrototypeOf,Be),ys=Be.create,Hu=Ut.propertyIsEnumerable,F0=Rt.splice,Uy=ea?ea.isConcatSpreadable:n,ip=ea?ea.iterator:n,Gu=ea?ea.toStringTag:n,op=function(){try{var b=bd(Be,"defineProperty");return b({},"",{}),b}catch{}}(),qS=Oe.clearTimeout!==si.clearTimeout&&Oe.clearTimeout,$8=Xe&&Xe.now!==si.Date.now&&Xe.now,z8=Oe.setTimeout!==si.setTimeout&&Oe.setTimeout,Og=$e.ceil,Pg=$e.floor,Wy=Be.getOwnPropertySymbols,e4=_n?_n.isBuffer:n,J8=Oe.isFinite,j8=Rt.join,Yy=Zu(Be.keys,Be),Ga=$e.max,to=$e.min,q8=Xe.now,eL=Oe.parseInt,By=$e.random,tL=Rt.reverse,Zy=bd(Oe,"DataView"),pd=bd(Oe,"Map"),Qy=bd(Oe,"Promise"),sp=bd(Oe,"Set"),X0=bd(Oe,"WeakMap"),Ic=bd(Be,"create"),lp=X0&&new X0,$u={},Ky=xd(Zy),eU=xd(pd),tU=xd(Qy),Hy=xd(sp),Gy=xd(X0),D0=ea?ea.prototype:n,V0=D0?D0.valueOf:n,nL=D0?D0.toString:n;function Me(b){if(Sa(b)&&!Fn(b)&&!(b instanceof lr)){if(b instanceof As)return b;if(Tt.call(b,"__wrapped__"))return Q4(b)}return new As(b)}var cp=function(){function b(){}return function(L){if(!pa(L))return{};if(ys)return ys(L);b.prototype=L;var D=new b;return b.prototype=n,D}}();function Cg(){}function As(b,L){this.__wrapped__=b,this.__actions__=[],this.__chain__=!!L,this.__index__=0,this.__values__=n}Me.templateSettings={escape:qi,evaluate:Ta,interpolate:Ys,variable:"",imports:{_:Me}},Me.prototype=Cg.prototype,Me.prototype.constructor=Me,As.prototype=cp(Cg.prototype),As.prototype.constructor=As;function lr(b){this.__wrapped__=b,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Z,this.__views__=[]}function rL(){var b=new lr(this.__wrapped__);return b.__actions__=mo(this.__actions__),b.__dir__=this.__dir__,b.__filtered__=this.__filtered__,b.__iteratees__=mo(this.__iteratees__),b.__takeCount__=this.__takeCount__,b.__views__=mo(this.__views__),b}function kc(){if(this.__filtered__){var b=new lr(this);b.__dir__=-1,b.__filtered__=!0}else b=this.clone(),b.__dir__*=-1;return b}function nU(){var b=this.__wrapped__.value(),L=this.__dir__,D=Fn(b),q=L<0,ve=D?b.length:0,Le=YL(0,ve,this.__views__),Ee=Le.start,Qe=Le.end,et=Qe-Ee,xt=q?Qe:Ee-1,St=this.__iteratees__,Ot=St.length,Kt=0,an=to(et,this.__takeCount__);if(!D||!q&&ve==et&&an==et)return x4(b,this.__actions__);var An=[];e:for(;et--&&Kt<an;){xt+=L;for(var Qn=-1,Rn=b[xt];++Qn<Ot;){var rr=St[Qn],cr=rr.iteratee,Ho=rr.type,ui=cr(Rn);if(Ho==E)Rn=ui;else if(!ui){if(Ho==C)continue e;break e}}An[Kt++]=Rn}return An}lr.prototype=cp(Cg.prototype),lr.prototype.constructor=lr;function up(b){var L=-1,D=b==null?0:b.length;for(this.clear();++L<D;){var q=b[L];this.set(q[0],q[1])}}function rU(){this.__data__=Ic?Ic(null):{},this.size=0}function $y(b){var L=this.has(b)&&delete this.__data__[b];return this.size-=L?1:0,L}function aL(b){var L=this.__data__;if(Ic){var D=L[b];return D===l?n:D}return Tt.call(L,b)?L[b]:n}function t4(b){var L=this.__data__;return Ic?L[b]!==n:Tt.call(L,b)}function zy(b,L){var D=this.__data__;return this.size+=this.has(b)?0:1,D[b]=Ic&&L===n?l:L,this}up.prototype.clear=rU,up.prototype.delete=$y,up.prototype.get=aL,up.prototype.has=t4,up.prototype.set=zy;function Vl(b){var L=-1,D=b==null?0:b.length;for(this.clear();++L<D;){var q=b[L];this.set(q[0],q[1])}}function U0(){this.__data__=[],this.size=0}function iL(b){var L=this.__data__,D=Jy(L,b);if(D<0)return!1;var q=L.length-1;return D==q?L.pop():F0.call(L,D,1),--this.size,!0}function n4(b){var L=this.__data__,D=Jy(L,b);return D<0?n:L[D][1]}function r4(b){return Jy(this.__data__,b)>-1}function Ng(b,L){var D=this.__data__,q=Jy(D,b);return q<0?(++this.size,D.push([b,L])):D[q][1]=L,this}Vl.prototype.clear=U0,Vl.prototype.delete=iL,Vl.prototype.get=n4,Vl.prototype.has=r4,Vl.prototype.set=Ng;function Ec(b){var L=-1,D=b==null?0:b.length;for(this.clear();++L<D;){var q=b[L];this.set(q[0],q[1])}}function oL(){this.size=0,this.__data__={hash:new up,map:new(pd||Vl),string:new up}}function aU(b){var L=Yg(this,b).delete(b);return this.size-=L?1:0,L}function iU(b){return Yg(this,b).get(b)}function oU(b){return Yg(this,b).has(b)}function sU(b,L){var D=Yg(this,b),q=D.size;return D.set(b,L),this.size+=D.size==q?0:1,this}Ec.prototype.clear=oL,Ec.prototype.delete=aU,Ec.prototype.get=iU,Ec.prototype.has=oU,Ec.prototype.set=sU;function vd(b){var L=-1,D=b==null?0:b.length;for(this.__data__=new Ec;++L<D;)this.add(b[L])}function sL(b){return this.__data__.set(b,l),this}function lL(b){return this.__data__.has(b)}vd.prototype.add=vd.prototype.push=sL,vd.prototype.has=lL;function Rs(b){var L=this.__data__=new Vl(b);this.size=L.size}function cL(){this.__data__=new Vl,this.size=0}function uL(b){var L=this.__data__,D=L.delete(b);return this.size=L.size,D}function lU(b){return this.__data__.get(b)}function cU(b){return this.__data__.has(b)}function uU(b,L){var D=this.__data__;if(D instanceof Vl){var q=D.__data__;if(!pd||q.length<a-1)return q.push([b,L]),this.size=++D.size,this;D=this.__data__=new Ec(q)}return D.set(b,L),this.size=D.size,this}Rs.prototype.clear=cL,Rs.prototype.delete=uL,Rs.prototype.get=lU,Rs.prototype.has=cU,Rs.prototype.set=uU;function fL(b,L){var D=Fn(b),q=!D&&Md(b),ve=!D&&!q&&tf(b),Le=!D&&!q&&!ve&&mp(b),Ee=D||q||ve||Le,Qe=Ee?dd(b.length,ft):[],et=Qe.length;for(var xt in b)(L||Tt.call(b,xt))&&!(Ee&&(xt=="length"||ve&&(xt=="offset"||xt=="parent")||Le&&(xt=="buffer"||xt=="byteLength"||xt=="byteOffset")||Vc(xt,et)))&&Qe.push(xt);return Qe}function a4(b){var L=b.length;return L?b[y4(0,L-1)]:n}function dL(b,L){return Qg(mo(b),Ul(L,0,b.length))}function fU(b){return Qg(mo(b))}function Fc(b,L,D){(D!==n&&!zs(b[L],D)||D===n&&!(L in b))&&Xc(b,L,D)}function zu(b,L,D){var q=b[L];(!(Tt.call(b,L)&&zs(q,D))||D===n&&!(L in b))&&Xc(b,L,D)}function Jy(b,L){for(var D=b.length;D--;)if(zs(b[D][0],L))return D;return-1}function dU(b,L,D,q){return Ju(b,function(ve,Le,Ee){L(q,ve,D(ve),Ee)}),q}function jy(b,L){return b&&Bl(L,ci(L),b)}function qy(b,L){return b&&Bl(L,Ao(L),b)}function Xc(b,L,D){L=="__proto__"&&op?op(b,L,{configurable:!0,enumerable:!0,value:D,writable:!0}):b[L]=D}function W0(b,L){for(var D=-1,q=L.length,ve=be(q),Le=b==null;++D<q;)ve[D]=Le?n:QA(b,L[D]);return ve}function Ul(b,L,D){return b===b&&(D!==n&&(b=b<=D?b:D),L!==n&&(b=b>=L?b:L)),b}function bs(b,L,D,q,ve,Le){var Ee,Qe=L&f,et=L&d,xt=L&h;if(D&&(Ee=ve?D(b,q,ve,Le):D(b)),Ee!==n)return Ee;if(!pa(b))return b;var St=Fn(b);if(St){if(Ee=ZL(b),!Qe)return mo(b,Ee)}else{var Ot=Ui(b),Kt=Ot==fe||Ot==re;if(tf(b))return Yl(b,Qe);if(Ot==ae||Ot==ce||Kt&&!ve){if(Ee=et||Kt?{}:V4(b),!Qe)return et?kL(b,qy(Ee,b)):IL(b,jy(Ee,b))}else{if(!Fr[Ot])return ve?b:{};Ee=QL(b,Ot,Qe)}}Le||(Le=new Rs);var an=Le.get(b);if(an)return an;Le.set(b,Ee),d3(b)?b.forEach(function(Rn){Ee.add(bs(Rn,L,D,Rn,b,Le))}):f3(b)&&b.forEach(function(Rn,rr){Ee.set(rr,bs(Rn,L,D,rr,b,Le))});var An=xt?et?SA:Ug:et?Ao:ci,Qn=St?n:An(b);return Xa(Qn||b,function(Rn,rr){Qn&&(rr=Rn,Rn=b[rr]),zu(Ee,rr,bs(Rn,L,D,rr,b,Le))}),Ee}function hL(b){var L=ci(b);return function(D){return i4(D,b,L)}}function i4(b,L,D){var q=D.length;if(b==null)return!q;for(b=Be(b);q--;){var ve=D[q],Le=L[ve],Ee=b[ve];if(Ee===n&&!(ve in b)||!Le(Ee))return!1}return!0}function o4(b,L,D){if(typeof b!="function")throw new st(o);return H0(function(){b.apply(n,D)},L)}function Y0(b,L,D,q){var ve=-1,Le=zh,Ee=!0,Qe=b.length,et=[],xt=L.length;if(!Qe)return et;D&&(L=Xr(L,xi(D))),q?(Le=Du,Ee=!1):L.length>=a&&(Le=Bu,Ee=!1,L=new vd(L));e:for(;++ve<Qe;){var St=b[ve],Ot=D==null?St:D(St);if(St=q||St!==0?St:0,Ee&&Ot===Ot){for(var Kt=xt;Kt--;)if(L[Kt]===Ot)continue e;et.push(St)}else Le(L,Ot,q)||et.push(St)}return et}var Ju=L4(Wl),eA=L4(no,!0);function pL(b,L){var D=!0;return Ju(b,function(q,ve,Le){return D=!!L(q,ve,Le),D}),D}function tA(b,L,D){for(var q=-1,ve=b.length;++q<ve;){var Le=b[q],Ee=L(Le);if(Ee!=null&&(Qe===n?Ee===Ee&&!Ko(Ee):D(Ee,Qe)))var Qe=Ee,et=Le}return et}function vL(b,L,D,q){var ve=b.length;for(D=Yn(D),D<0&&(D=-D>ve?0:ve+D),q=q===n||q>ve?ve:Yn(q),q<0&&(q+=ve),q=D>q?0:p3(q);D<q;)b[D++]=L;return b}function s4(b,L){var D=[];return Ju(b,function(q,ve,Le){L(q,ve,Le)&&D.push(q)}),D}function Vi(b,L,D,q,ve){var Le=-1,Ee=b.length;for(D||(D=HL),ve||(ve=[]);++Le<Ee;){var Qe=b[Le];L>0&&D(Qe)?L>1?Vi(Qe,L-1,D,q,ve):Gs(ve,Qe):q||(ve[ve.length]=Qe)}return ve}var nA=T4(),l4=T4(!0);function Wl(b,L){return b&&nA(b,L,ci)}function no(b,L){return b&&l4(b,L,ci)}function rA(b,L){return Bo(L,function(D){return Uc(b[D])})}function fp(b,L){L=qu(L,b);for(var D=0,q=L.length;b!=null&&D<q;)b=b[Ql(L[D++])];return D&&D==q?b:n}function gL(b,L,D){var q=L(b);return Fn(b)?q:Gs(q,D(b))}function Si(b){return b==null?b===n?De:oe:Gu&&Gu in Be(b)?WL(b):CA(b)}function aA(b,L){return b>L}function c4(b,L){return b!=null&&Tt.call(b,L)}function iA(b,L){return b!=null&&L in Be(b)}function u4(b,L,D){return b>=to(L,D)&&b<Ga(L,D)}function gd(b,L,D){for(var q=D?Du:zh,ve=b[0].length,Le=b.length,Ee=Le,Qe=be(Le),et=1/0,xt=[];Ee--;){var St=b[Ee];Ee&&L&&(St=Xr(St,xi(L))),et=to(St.length,et),Qe[Ee]=!D&&(L||ve>=120&&St.length>=120)?new vd(Ee&&St):n}St=b[0];var Ot=-1,Kt=Qe[0];e:for(;++Ot<ve&&xt.length<et;){var an=St[Ot],An=L?L(an):an;if(an=D||an!==0?an:0,!(Kt?Bu(Kt,An):q(xt,An,D))){for(Ee=Le;--Ee;){var Qn=Qe[Ee];if(!(Qn?Bu(Qn,An):q(b[Ee],An,D)))continue e}Kt&&Kt.push(An),xt.push(an)}}return xt}function mL(b,L,D,q){return Wl(b,function(ve,Le,Ee){L(q,D(ve),Le,Ee)}),q}function md(b,L,D){L=qu(L,b),b=NA(b,L);var q=b==null?b:b[Ql(Ms(L))];return q==null?n:Ri(q,b,D)}function Ig(b){return Sa(b)&&Si(b)==ce}function dp(b){return Sa(b)&&Si(b)==wt}function yL(b){return Sa(b)&&Si(b)==se}function B0(b,L,D,q,ve){return b===L?!0:b==null||L==null||!Sa(b)&&!Sa(L)?b!==b&&L!==L:AL(b,L,D,q,B0,ve)}function AL(b,L,D,q,ve,Le){var Ee=Fn(b),Qe=Fn(L),et=Ee?B:Ui(b),xt=Qe?B:Ui(L);et=et==ce?ae:et,xt=xt==ce?ae:xt;var St=et==ae,Ot=xt==ae,Kt=et==xt;if(Kt&&tf(b)){if(!tf(L))return!1;Ee=!0,St=!1}if(Kt&&!St)return Le||(Le=new Rs),Ee||mp(b)?X4(b,L,D,q,ve,Le):UL(b,L,et,D,q,ve,Le);if(!(D&p)){var an=St&&Tt.call(b,"__wrapped__"),An=Ot&&Tt.call(L,"__wrapped__");if(an||An){var Qn=an?b.value():b,Rn=An?L.value():L;return Le||(Le=new Rs),ve(Qn,Rn,D,q,Le)}}return Kt?(Le||(Le=new Rs),xA(b,L,D,q,ve,Le)):!1}function hU(b){return Sa(b)&&Ui(b)==X}function f4(b,L,D,q){var ve=D.length,Le=ve,Ee=!q;if(b==null)return!Le;for(b=Be(b);ve--;){var Qe=D[ve];if(Ee&&Qe[2]?Qe[1]!==b[Qe[0]]:!(Qe[0]in b))return!1}for(;++ve<Le;){Qe=D[ve];var et=Qe[0],xt=b[et],St=Qe[1];if(Ee&&Qe[2]){if(xt===n&&!(et in b))return!1}else{var Ot=new Rs;if(q)var Kt=q(xt,St,et,b,L,Ot);if(!(Kt===n?B0(St,xt,p|v,q,Ot):Kt))return!1}}return!0}function RL(b){if(!pa(b)||$L(b))return!1;var L=Uc(b)?Di:Vh;return L.test(xd(b))}function pU(b){return Sa(b)&&Si(b)==Se}function vU(b){return Sa(b)&&Ui(b)==me}function bL(b){return Sa(b)&&Jg(b.length)&&!!Er[Si(b)]}function d4(b){return typeof b=="function"?b:b==null?Ro:typeof b=="object"?Fn(b)?g4(b[0],b[1]):v4(b):L3(b)}function oA(b){if(!K0(b))return Yy(b);var L=[];for(var D in Be(b))Tt.call(b,D)&&D!="constructor"&&L.push(D);return L}function h4(b){if(!pa(b))return PA(b);var L=K0(b),D=[];for(var q in b)q=="constructor"&&(L||!Tt.call(b,q))||D.push(q);return D}function Z0(b,L){return b<L}function p4(b,L){var D=-1,q=yo(b)?be(b.length):[];return Ju(b,function(ve,Le,Ee){q[++D]=L(ve,Le,Ee)}),q}function v4(b){var L=_A(b);return L.length==1&&L[0][2]?Wi(L[0][0],L[0][1]):function(D){return D===b||f4(D,b,L)}}function g4(b,L){return LA(b)&&U4(L)?Wi(Ql(b),L):function(D){var q=QA(D,b);return q===n&&q===L?KA(D,b):B0(L,q,p|v)}}function sA(b,L,D,q,ve){b!==L&&nA(L,function(Le,Ee){if(ve||(ve=new Rs),pa(Le))gU(b,L,Ee,D,sA,q,ve);else{var Qe=q?q(IA(b,Ee),Le,Ee+"",b,L,ve):n;Qe===n&&(Qe=Le),Fc(b,Ee,Qe)}},Ao)}function gU(b,L,D,q,ve,Le,Ee){var Qe=IA(b,D),et=IA(L,D),xt=Ee.get(et);if(xt){Fc(b,D,xt);return}var St=Le?Le(Qe,et,D+"",b,L,Ee):n,Ot=St===n;if(Ot){var Kt=Fn(et),an=!Kt&&tf(et),An=!Kt&&!an&&mp(et);St=et,Kt||an||An?Fn(Qe)?St=Qe:Pa(Qe)?St=mo(Qe):an?(Ot=!1,St=Yl(et,!0)):An?(Ot=!1,St=Fg(et,!0)):St=[]:Js(et)||Md(et)?(St=Qe,Md(Qe)?St=v3(Qe):(!pa(Qe)||Uc(Qe))&&(St=V4(et))):Ot=!1}Ot&&(Ee.set(et,St),ve(St,et,q,Le,Ee),Ee.delete(et)),Fc(b,D,St)}function xL(b,L){var D=b.length;if(D)return L+=L<0?D:0,Vc(L,D)?b[L]:n}function SL(b,L,D){L.length?L=Xr(L,function(Le){return Fn(Le)?function(Ee){return fp(Ee,Le.length===1?Le[0]:Le)}:Le}):L=[Ro];var q=-1;L=Xr(L,xi(yn()));var ve=p4(b,function(Le,Ee,Qe){var et=Xr(L,function(xt){return xt(Le)});return{criteria:et,index:++q,value:Le}});return wg(ve,function(Le,Ee){return NL(Le,Ee,D)})}function mU(b,L){return ML(b,L,function(D,q){return KA(b,q)})}function ML(b,L,D){for(var q=-1,ve=L.length,Le={};++q<ve;){var Ee=L[q],Qe=fp(b,Ee);D(Qe,Ee)&&Ad(Le,qu(Ee,b),Qe)}return Le}function _L(b){return function(L){return fp(L,b)}}function lA(b,L,D,q){var ve=q?ep:Cc,Le=-1,Ee=L.length,Qe=b;for(b===L&&(L=mo(L)),D&&(Qe=Xr(b,xi(D)));++Le<Ee;)for(var et=0,xt=L[Le],St=D?D(xt):xt;(et=ve(Qe,St,et,q))>-1;)Qe!==b&&F0.call(Qe,et,1),F0.call(b,et,1);return b}function m4(b,L){for(var D=b?L.length:0,q=D-1;D--;){var ve=L[D];if(D==q||ve!==Le){var Le=ve;Vc(ve)?F0.call(b,ve,1):dA(b,ve)}}return b}function y4(b,L){return b+Pg(By()*(L-b+1))}function yd(b,L,D,q){for(var ve=-1,Le=Ga(Og((L-b)/(D||1)),0),Ee=be(Le);Le--;)Ee[q?Le:++ve]=b,b+=D;return Ee}function Dc(b,L){var D="";if(!b||L<1||L>Q)return D;do L%2&&(D+=b),L=Pg(L/2),L&&(b+=b);while(L);return D}function zn(b,L){return kA(Zg(b,L,Ro),b+"")}function wL(b){return a4(yp(b))}function cA(b,L){var D=yp(b);return Qg(D,Ul(L,0,D.length))}function Ad(b,L,D,q){if(!pa(b))return b;L=qu(L,b);for(var ve=-1,Le=L.length,Ee=Le-1,Qe=b;Qe!=null&&++ve<Le;){var et=Ql(L[ve]),xt=D;if(et==="__proto__"||et==="constructor"||et==="prototype")return b;if(ve!=Ee){var St=Qe[et];xt=q?q(St,et,Qe):n,xt===n&&(xt=pa(St)?St:Vc(L[ve+1])?[]:{})}zu(Qe,et,xt),Qe=Qe[et]}return b}var uA=lp?function(b,L){return lp.set(b,L),b}:Ro,LL=op?function(b,L){return op(b,"toString",{configurable:!0,enumerable:!1,value:_d(L),writable:!0})}:Ro;function TL(b){return Qg(yp(b))}function xs(b,L,D){var q=-1,ve=b.length;L<0&&(L=-L>ve?0:ve+L),D=D>ve?ve:D,D<0&&(D+=ve),ve=L>D?0:D-L>>>0,L>>>=0;for(var Le=be(ve);++q<ve;)Le[q]=b[q+L];return Le}function OL(b,L){var D;return Ju(b,function(q,ve,Le){return D=L(q,ve,Le),!D}),!!D}function kg(b,L,D){var q=0,ve=b==null?q:b.length;if(typeof L=="number"&&L===L&&ve<=G){for(;q<ve;){var Le=q+ve>>>1,Ee=b[Le];Ee!==null&&!Ko(Ee)&&(D?Ee<=L:Ee<L)?q=Le+1:ve=Le}return ve}return fA(b,L,Ro,D)}function fA(b,L,D,q){var ve=0,Le=b==null?0:b.length;if(Le===0)return 0;L=D(L);for(var Ee=L!==L,Qe=L===null,et=Ko(L),xt=L===n;ve<Le;){var St=Pg((ve+Le)/2),Ot=D(b[St]),Kt=Ot!==n,an=Ot===null,An=Ot===Ot,Qn=Ko(Ot);if(Ee)var Rn=q||An;else xt?Rn=An&&(q||Kt):Qe?Rn=An&&Kt&&(q||!an):et?Rn=An&&Kt&&!an&&(q||!Qn):an||Qn?Rn=!1:Rn=q?Ot<=L:Ot<L;Rn?ve=St+1:Le=St}return to(Le,$)}function A4(b,L){for(var D=-1,q=b.length,ve=0,Le=[];++D<q;){var Ee=b[D],Qe=L?L(Ee):Ee;if(!D||!zs(Qe,et)){var et=Qe;Le[ve++]=Ee===0?0:Ee}}return Le}function R4(b){return typeof b=="number"?b:Ko(b)?ne:+b}function Qo(b){if(typeof b=="string")return b;if(Fn(b))return Xr(b,Qo)+"";if(Ko(b))return nL?nL.call(b):"";var L=b+"";return L=="0"&&1/b==-Y?"-0":L}function ju(b,L,D){var q=-1,ve=zh,Le=b.length,Ee=!0,Qe=[],et=Qe;if(D)Ee=!1,ve=Du;else if(Le>=a){var xt=L?null:DL(b);if(xt)return Qu(xt);Ee=!1,ve=Bu,et=new vd}else et=L?[]:Qe;e:for(;++q<Le;){var St=b[q],Ot=L?L(St):St;if(St=D||St!==0?St:0,Ee&&Ot===Ot){for(var Kt=et.length;Kt--;)if(et[Kt]===Ot)continue e;L&&et.push(Ot),Qe.push(St)}else ve(et,Ot,D)||(et!==Qe&&et.push(Ot),Qe.push(St))}return Qe}function dA(b,L){return L=qu(L,b),b=NA(b,L),b==null||delete b[Ql(Ms(L))]}function b4(b,L,D,q){return Ad(b,L,D(fp(b,L)),q)}function Eg(b,L,D,q){for(var ve=b.length,Le=q?ve:-1;(q?Le--:++Le<ve)&&L(b[Le],Le,b););return D?xs(b,q?0:Le,q?Le+1:ve):xs(b,q?Le+1:0,q?ve:Le)}function x4(b,L){var D=b;return D instanceof lr&&(D=D.value()),Nl(L,function(q,ve){return ve.func.apply(ve.thisArg,Gs([q],ve.args))},D)}function hA(b,L,D){var q=b.length;if(q<2)return q?ju(b[0]):[];for(var ve=-1,Le=be(q);++ve<q;)for(var Ee=b[ve],Qe=-1;++Qe<q;)Qe!=ve&&(Le[ve]=Y0(Le[ve]||Ee,b[Qe],L,D));return ju(Vi(Le,1),L,D)}function S4(b,L,D){for(var q=-1,ve=b.length,Le=L.length,Ee={};++q<ve;){var Qe=q<Le?L[q]:n;D(Ee,b[q],Qe)}return Ee}function pA(b){return Pa(b)?b:[]}function vA(b){return typeof b=="function"?b:Ro}function qu(b,L){return Fn(b)?b:LA(b,L)?[b]:Z4(Cr(b))}var PL=zn;function ef(b,L,D){var q=b.length;return D=D===n?q:D,!L&&D>=q?b:xs(b,L,D)}var Ss=qS||function(b){return si.clearTimeout(b)};function Yl(b,L){if(L)return b.slice();var D=b.length,q=hd?hd(D):new b.constructor(D);return b.copy(q),q}function M4(b){var L=new b.constructor(b.byteLength);return new Oa(L).set(new Oa(b)),L}function _4(b,L){var D=L?M4(b.buffer):b.buffer;return new b.constructor(D,b.byteOffset,b.byteLength)}function gA(b){var L=new b.constructor(b.source,jf.exec(b));return L.lastIndex=b.lastIndex,L}function CL(b){return V0?Be(V0.call(b)):{}}function Fg(b,L){var D=L?M4(b.buffer):b.buffer;return new b.constructor(D,b.byteOffset,b.length)}function Q0(b,L){if(b!==L){var D=b!==n,q=b===null,ve=b===b,Le=Ko(b),Ee=L!==n,Qe=L===null,et=L===L,xt=Ko(L);if(!Qe&&!xt&&!Le&&b>L||Le&&Ee&&et&&!Qe&&!xt||q&&Ee&&et||!D&&et||!ve)return 1;if(!q&&!Le&&!xt&&b<L||xt&&D&&ve&&!q&&!Le||Qe&&D&&ve||!Ee&&ve||!et)return-1}return 0}function NL(b,L,D){for(var q=-1,ve=b.criteria,Le=L.criteria,Ee=ve.length,Qe=D.length;++q<Ee;){var et=Q0(ve[q],Le[q]);if(et){if(q>=Qe)return et;var xt=D[q];return et*(xt=="desc"?-1:1)}}return b.index-L.index}function mA(b,L,D,q){for(var ve=-1,Le=b.length,Ee=D.length,Qe=-1,et=L.length,xt=Ga(Le-Ee,0),St=be(et+xt),Ot=!q;++Qe<et;)St[Qe]=L[Qe];for(;++ve<Ee;)(Ot||ve<Le)&&(St[D[ve]]=b[ve]);for(;xt--;)St[Qe++]=b[ve++];return St}function w4(b,L,D,q){for(var ve=-1,Le=b.length,Ee=-1,Qe=D.length,et=-1,xt=L.length,St=Ga(Le-Qe,0),Ot=be(St+xt),Kt=!q;++ve<St;)Ot[ve]=b[ve];for(var an=ve;++et<xt;)Ot[an+et]=L[et];for(;++Ee<Qe;)(Kt||ve<Le)&&(Ot[an+D[Ee]]=b[ve++]);return Ot}function mo(b,L){var D=-1,q=b.length;for(L||(L=be(q));++D<q;)L[D]=b[D];return L}function Bl(b,L,D,q){var ve=!D;D||(D={});for(var Le=-1,Ee=L.length;++Le<Ee;){var Qe=L[Le],et=q?q(D[Qe],b[Qe],Qe,D,b):n;et===n&&(et=b[Qe]),ve?Xc(D,Qe,et):zu(D,Qe,et)}return D}function IL(b,L){return Bl(b,Bg(b),L)}function kL(b,L){return Bl(b,wA(b),L)}function Xg(b,L){return function(D,q){var ve=Fn(D)?Mg:dU,Le=L?L():{};return ve(D,b,yn(q,2),Le)}}function hp(b){return zn(function(L,D){var q=-1,ve=D.length,Le=ve>1?D[ve-1]:n,Ee=ve>2?D[2]:n;for(Le=b.length>3&&typeof Le=="function"?(ve--,Le):n,Ee&&ro(D[0],D[1],Ee)&&(Le=ve<3?n:Le,ve=1),L=Be(L);++q<ve;){var Qe=D[q];Qe&&b(L,Qe,q,Le)}return L})}function L4(b,L){return function(D,q){if(D==null)return D;if(!yo(D))return b(D,q);for(var ve=D.length,Le=L?ve:-1,Ee=Be(D);(L?Le--:++Le<ve)&&q(Ee[Le],Le,Ee)!==!1;);return D}}function T4(b){return function(L,D,q){for(var ve=-1,Le=Be(L),Ee=q(L),Qe=Ee.length;Qe--;){var et=Ee[b?Qe:++ve];if(D(Le[et],et,Le)===!1)break}return L}}function EL(b,L,D){var q=L&g,ve=Rd(b);function Le(){var Ee=this&&this!==si&&this instanceof Le?ve:b;return Ee.apply(q?D:this,arguments)}return Le}function O4(b){return function(L){L=Cr(L);var D=Fl(L)?W(L):n,q=D?D[0]:L.charAt(0),ve=D?ef(D,1).join(""):L.slice(1);return q[b]()+ve}}function pp(b){return function(L){return Nl(_3(x3(L).replace(xg,"")),b,"")}}function Rd(b){return function(){var L=arguments;switch(L.length){case 0:return new b;case 1:return new b(L[0]);case 2:return new b(L[0],L[1]);case 3:return new b(L[0],L[1],L[2]);case 4:return new b(L[0],L[1],L[2],L[3]);case 5:return new b(L[0],L[1],L[2],L[3],L[4]);case 6:return new b(L[0],L[1],L[2],L[3],L[4],L[5]);case 7:return new b(L[0],L[1],L[2],L[3],L[4],L[5],L[6])}var D=cp(b.prototype),q=b.apply(D,L);return pa(q)?q:D}}function FL(b,L,D){var q=Rd(b);function ve(){for(var Le=arguments.length,Ee=be(Le),Qe=Le,et=vp(ve);Qe--;)Ee[Qe]=arguments[Qe];var xt=Le<3&&Ee[0]!==et&&Ee[Le-1]!==et?[]:Xi(Ee,et);if(Le-=xt.length,Le<D)return k4(b,L,Dg,ve.placeholder,n,Ee,xt,n,n,D-Le);var St=this&&this!==si&&this instanceof ve?q:b;return Ri(St,this,Ee)}return ve}function P4(b){return function(L,D,q){var ve=Be(L);if(!yo(L)){var Le=yn(D,3);L=ci(L),D=function(Qe){return Le(ve[Qe],Qe,ve)}}var Ee=b(L,D,q);return Ee>-1?ve[Le?L[Ee]:Ee]:n}}function C4(b){return $s(function(L){var D=L.length,q=D,ve=As.prototype.thru;for(b&&L.reverse();q--;){var Le=L[q];if(typeof Le!="function")throw new st(o);if(ve&&!Ee&&Wg(Le)=="wrapper")var Ee=new As([],!0)}for(q=Ee?q:D;++q<D;){Le=L[q];var Qe=Wg(Le),et=Qe=="wrapper"?MA(Le):n;et&&TA(et[0])&&et[1]==(S|R|x|w)&&!et[4].length&&et[9]==1?Ee=Ee[Wg(et[0])].apply(Ee,et[3]):Ee=Le.length==1&&TA(Le)?Ee[Qe]():Ee.thru(Le)}return function(){var xt=arguments,St=xt[0];if(Ee&&xt.length==1&&Fn(St))return Ee.plant(St).value();for(var Ot=0,Kt=D?L[Ot].apply(this,xt):St;++Ot<D;)Kt=L[Ot].call(this,Kt);return Kt}})}function Dg(b,L,D,q,ve,Le,Ee,Qe,et,xt){var St=L&S,Ot=L&g,Kt=L&y,an=L&(R|A),An=L&_,Qn=Kt?n:Rd(b);function Rn(){for(var rr=arguments.length,cr=be(rr),Ho=rr;Ho--;)cr[Ho]=arguments[Ho];if(an)var ui=vp(Rn),Yi=Vy(cr,ui);if(q&&(cr=mA(cr,q,ve,an)),Le&&(cr=w4(cr,Le,Ee,an)),rr-=Yi,an&&rr<xt){var Ca=Xi(cr,ui);return k4(b,L,Dg,Rn.placeholder,D,cr,Ca,Qe,et,xt-rr)}var js=Ot?D:this,Yc=Kt?js[b]:b;return rr=cr.length,Qe?cr=JL(cr,Qe):An&&rr>1&&cr.reverse(),St&&et<rr&&(cr.length=et),this&&this!==si&&this instanceof Rn&&(Yc=Qn||Rd(Yc)),Yc.apply(js,cr)}return Rn}function N4(b,L){return function(D,q){return mL(D,b,L(q),{})}}function yA(b,L){return function(D,q){var ve;if(D===n&&q===n)return L;if(D!==n&&(ve=D),q!==n){if(ve===n)return q;typeof D=="string"||typeof q=="string"?(D=Qo(D),q=Qo(q)):(D=R4(D),q=R4(q)),ve=b(D,q)}return ve}}function AA(b){return $s(function(L){return L=Xr(L,xi(yn())),zn(function(D){var q=this;return b(L,function(ve){return Ri(ve,q,D)})})})}function Vg(b,L){L=L===n?" ":Qo(L);var D=L.length;if(D<2)return D?Dc(L,b):L;var q=Dc(L,Og(b/k(L)));return Fl(L)?ef(W(q),0,b).join(""):q.slice(0,b)}function XL(b,L,D,q){var ve=L&g,Le=Rd(b);function Ee(){for(var Qe=-1,et=arguments.length,xt=-1,St=q.length,Ot=be(St+et),Kt=this&&this!==si&&this instanceof Ee?Le:b;++xt<St;)Ot[xt]=q[xt];for(;et--;)Ot[xt++]=arguments[++Qe];return Ri(Kt,ve?D:this,Ot)}return Ee}function I4(b){return function(L,D,q){return q&&typeof q!="number"&&ro(L,D,q)&&(D=q=n),L=Wc(L),D===n?(D=L,L=0):D=Wc(D),q=q===n?L<D?1:-1:Wc(q),yd(L,D,q,b)}}function RA(b){return function(L,D){return typeof L=="string"&&typeof D=="string"||(L=_s(L),D=_s(D)),b(L,D)}}function k4(b,L,D,q,ve,Le,Ee,Qe,et,xt){var St=L&R,Ot=St?Ee:n,Kt=St?n:Ee,an=St?Le:n,An=St?n:Le;L|=St?x:M,L&=~(St?M:x),L&m||(L&=-4);var Qn=[b,L,ve,an,Ot,An,Kt,Qe,et,xt],Rn=D.apply(n,Qn);return TA(b)&&W4(Rn,Qn),Rn.placeholder=q,Y4(Rn,b,L)}function bA(b){var L=$e[b];return function(D,q){if(D=_s(D),q=q==null?0:to(Yn(q),292),q&&J8(D)){var ve=(Cr(D)+"e").split("e"),Le=L(ve[0]+"e"+(+ve[1]+q));return ve=(Cr(Le)+"e").split("e"),+(ve[0]+"e"+(+ve[1]-q))}return L(D)}}var DL=sp&&1/Qu(new sp([,-0]))[1]==Y?function(b){return new sp(b)}:tR;function E4(b){return function(L){var D=Ui(L);return D==X?Xl(L):D==me?Ku(L):Yu(L,b(L))}}function Mi(b,L,D,q,ve,Le,Ee,Qe){var et=L&y;if(!et&&typeof b!="function")throw new st(o);var xt=q?q.length:0;if(xt||(L&=-97,q=ve=n),Ee=Ee===n?Ee:Ga(Yn(Ee),0),Qe=Qe===n?Qe:Yn(Qe),xt-=ve?ve.length:0,L&M){var St=q,Ot=ve;q=ve=n}var Kt=et?n:MA(b),an=[b,L,D,q,ve,St,Ot,Le,Ee,Qe];if(Kt&&OA(an,Kt),b=an[0],L=an[1],D=an[2],q=an[3],ve=an[4],Qe=an[9]=an[9]===n?et?0:b.length:Ga(an[9]-xt,0),!Qe&&L&(R|A)&&(L&=-25),!L||L==g)var An=EL(b,L,D);else L==R||L==A?An=FL(b,L,Qe):(L==x||L==(g|x))&&!ve.length?An=XL(b,L,D,q):An=Dg.apply(n,an);var Qn=Kt?uA:W4;return Y4(Qn(An,an),b,L)}function Zl(b,L,D,q){return b===n||zs(b,Ut[D])&&!Tt.call(q,D)?L:b}function F4(b,L,D,q,ve,Le){return pa(b)&&pa(L)&&(Le.set(L,b),sA(b,L,n,F4,Le),Le.delete(L)),b}function VL(b){return Js(b)?n:b}function X4(b,L,D,q,ve,Le){var Ee=D&p,Qe=b.length,et=L.length;if(Qe!=et&&!(Ee&&et>Qe))return!1;var xt=Le.get(b),St=Le.get(L);if(xt&&St)return xt==L&&St==b;var Ot=-1,Kt=!0,an=D&v?new vd:n;for(Le.set(b,L),Le.set(L,b);++Ot<Qe;){var An=b[Ot],Qn=L[Ot];if(q)var Rn=Ee?q(Qn,An,Ot,L,b,Le):q(An,Qn,Ot,b,L,Le);if(Rn!==n){if(Rn)continue;Kt=!1;break}if(an){if(!Il(L,function(rr,cr){if(!Bu(an,cr)&&(An===rr||ve(An,rr,D,q,Le)))return an.push(cr)})){Kt=!1;break}}else if(!(An===Qn||ve(An,Qn,D,q,Le))){Kt=!1;break}}return Le.delete(b),Le.delete(L),Kt}function UL(b,L,D,q,ve,Le,Ee){switch(D){case Lt:if(b.byteLength!=L.byteLength||b.byteOffset!=L.byteOffset)return!1;b=b.buffer,L=L.buffer;case wt:return!(b.byteLength!=L.byteLength||!Le(new Oa(b),new Oa(L)));case _e:case se:case j:return zs(+b,+L);case de:return b.name==L.name&&b.message==L.message;case Se:case ye:return b==L+"";case X:var Qe=Xl;case me:var et=q&p;if(Qe||(Qe=Qu),b.size!=L.size&&!et)return!1;var xt=Ee.get(b);if(xt)return xt==L;q|=v,Ee.set(b,L);var St=X4(Qe(b),Qe(L),q,ve,Le,Ee);return Ee.delete(b),St;case Ve:if(V0)return V0.call(b)==V0.call(L)}return!1}function xA(b,L,D,q,ve,Le){var Ee=D&p,Qe=Ug(b),et=Qe.length,xt=Ug(L),St=xt.length;if(et!=St&&!Ee)return!1;for(var Ot=et;Ot--;){var Kt=Qe[Ot];if(!(Ee?Kt in L:Tt.call(L,Kt)))return!1}var an=Le.get(b),An=Le.get(L);if(an&&An)return an==L&&An==b;var Qn=!0;Le.set(b,L),Le.set(L,b);for(var Rn=Ee;++Ot<et;){Kt=Qe[Ot];var rr=b[Kt],cr=L[Kt];if(q)var Ho=Ee?q(cr,rr,Kt,L,b,Le):q(rr,cr,Kt,b,L,Le);if(!(Ho===n?rr===cr||ve(rr,cr,D,q,Le):Ho)){Qn=!1;break}Rn||(Rn=Kt=="constructor")}if(Qn&&!Rn){var ui=b.constructor,Yi=L.constructor;ui!=Yi&&"constructor"in b&&"constructor"in L&&!(typeof ui=="function"&&ui instanceof ui&&typeof Yi=="function"&&Yi instanceof Yi)&&(Qn=!1)}return Le.delete(b),Le.delete(L),Qn}function $s(b){return kA(Zg(b,n,G4),b+"")}function Ug(b){return gL(b,ci,Bg)}function SA(b){return gL(b,Ao,wA)}var MA=lp?function(b){return lp.get(b)}:tR;function Wg(b){for(var L=b.name+"",D=$u[L],q=Tt.call($u,L)?D.length:0;q--;){var ve=D[q],Le=ve.func;if(Le==null||Le==b)return ve.name}return L}function vp(b){var L=Tt.call(Me,"placeholder")?Me:b;return L.placeholder}function yn(){var b=Me.iteratee||eR;return b=b===eR?d4:b,arguments.length?b(arguments[0],arguments[1]):b}function Yg(b,L){var D=b.__data__;return GL(L)?D[typeof L=="string"?"string":"hash"]:D.map}function _A(b){for(var L=ci(b),D=L.length;D--;){var q=L[D],ve=b[q];L[D]=[q,ve,U4(ve)]}return L}function bd(b,L){var D=wr(b,L);return RL(D)?D:n}function WL(b){var L=Tt.call(b,Gu),D=b[Gu];try{b[Gu]=n;var q=!0}catch{}var ve=Mn.call(b);return q&&(L?b[Gu]=D:delete b[Gu]),ve}var Bg=Wy?function(b){return b==null?[]:(b=Be(b),Bo(Wy(b),function(L){return Hu.call(b,L)}))}:iR,wA=Wy?function(b){for(var L=[];b;)Gs(L,Bg(b)),b=da(b);return L}:iR,Ui=Si;(Zy&&Ui(new Zy(new ArrayBuffer(1)))!=Lt||pd&&Ui(new pd)!=X||Qy&&Ui(Qy.resolve())!=le||sp&&Ui(new sp)!=me||X0&&Ui(new X0)!=Ye)&&(Ui=function(b){var L=Si(b),D=L==ae?b.constructor:n,q=D?xd(D):"";if(q)switch(q){case Ky:return Lt;case eU:return X;case tU:return le;case Hy:return me;case Gy:return Ye}return L});function YL(b,L,D){for(var q=-1,ve=D.length;++q<ve;){var Le=D[q],Ee=Le.size;switch(Le.type){case"drop":b+=Ee;break;case"dropRight":L-=Ee;break;case"take":L=to(L,b+Ee);break;case"takeRight":b=Ga(b,L-Ee);break}}return{start:b,end:L}}function BL(b){var L=b.match(Dh);return L?L[1].split(P0):[]}function D4(b,L,D){L=qu(L,b);for(var q=-1,ve=L.length,Le=!1;++q<ve;){var Ee=Ql(L[q]);if(!(Le=b!=null&&D(b,Ee)))break;b=b[Ee]}return Le||++q!=ve?Le:(ve=b==null?0:b.length,!!ve&&Jg(ve)&&Vc(Ee,ve)&&(Fn(b)||Md(b)))}function ZL(b){var L=b.length,D=new b.constructor(L);return L&&typeof b[0]=="string"&&Tt.call(b,"index")&&(D.index=b.index,D.input=b.input),D}function V4(b){return typeof b.constructor=="function"&&!K0(b)?cp(da(b)):{}}function QL(b,L,D){var q=b.constructor;switch(L){case wt:return M4(b);case _e:case se:return new q(+b);case Lt:return _4(b,D);case Ne:case Te:case ze:case He:case pt:case Ce:case ut:case je:case it:return Fg(b,D);case X:return new q;case j:case ye:return new q(b);case Se:return gA(b);case me:return new q;case Ve:return CL(b)}}function KL(b,L){var D=L.length;if(!D)return b;var q=D-1;return L[q]=(D>1?"& ":"")+L[q],L=L.join(D>2?", ":" "),b.replace(Zs,`{-/* [wrapped with `+L+`] */-`)}function HL(b){return Fn(b)||Md(b)||!!(Uy&&b&&b[Uy])}function Vc(b,L){var D=typeof b;return L=L??Q,!!L&&(D=="number"||D!="symbol"&&Cy.test(b))&&b>-1&&b%1==0&&b<L}function ro(b,L,D){if(!pa(D))return!1;var q=typeof L;return(q=="number"?yo(D)&&Vc(L,D.length):q=="string"&&L in D)?zs(D[L],b):!1}function LA(b,L){if(Fn(b))return!1;var D=typeof b;return D=="number"||D=="symbol"||D=="boolean"||b==null||Ko(b)?!0:Ei.test(b)||!eo.test(b)||L!=null&&b in Be(L)}function GL(b){var L=typeof b;return L=="string"||L=="number"||L=="symbol"||L=="boolean"?b!=="__proto__":b===null}function TA(b){var L=Wg(b),D=Me[L];if(typeof D!="function"||!(L in lr.prototype))return!1;if(b===D)return!0;var q=MA(D);return!!q&&b===q[0]}function $L(b){return!!zt&&zt in b}var zL=kt?Uc:q0;function K0(b){var L=b&&b.constructor,D=typeof L=="function"&&L.prototype||Ut;return b===D}function U4(b){return b===b&&!pa(b)}function Wi(b,L){return function(D){return D==null?!1:D[b]===L&&(L!==n||b in Be(D))}}function ao(b){var L=Kl(b,function(q){return D.size===c&&D.clear(),q}),D=L.cache;return L}function OA(b,L){var D=b[1],q=L[1],ve=D|q,Le=ve<(g|y|S),Ee=q==S&&D==R||q==S&&D==w&&b[7].length<=L[8]||q==(S|w)&&L[7].length<=L[8]&&D==R;if(!(Le||Ee))return b;q&g&&(b[2]=L[2],ve|=D&g?0:m);var Qe=L[3];if(Qe){var et=b[3];b[3]=et?mA(et,Qe,L[4]):Qe,b[4]=et?Xi(b[3],u):L[4]}return Qe=L[5],Qe&&(et=b[5],b[5]=et?w4(et,Qe,L[6]):Qe,b[6]=et?Xi(b[5],u):L[6]),Qe=L[7],Qe&&(b[7]=Qe),q&S&&(b[8]=b[8]==null?L[8]:to(b[8],L[8])),b[9]==null&&(b[9]=L[9]),b[0]=L[0],b[1]=ve,b}function PA(b){var L=[];if(b!=null)for(var D in Be(b))L.push(D);return L}function CA(b){return Mn.call(b)}function Zg(b,L,D){return L=Ga(L===n?b.length-1:L,0),function(){for(var q=arguments,ve=-1,Le=Ga(q.length-L,0),Ee=be(Le);++ve<Le;)Ee[ve]=q[L+ve];ve=-1;for(var Qe=be(L+1);++ve<L;)Qe[ve]=q[ve];return Qe[L]=D(Ee),Ri(b,this,Qe)}}function NA(b,L){return L.length<2?b:fp(b,xs(L,0,-1))}function JL(b,L){for(var D=b.length,q=to(L.length,D),ve=mo(b);q--;){var Le=L[q];b[q]=Vc(Le,D)?ve[Le]:n}return b}function IA(b,L){if(!(L==="constructor"&&typeof b[L]=="function")&&L!="__proto__")return b[L]}var W4=B4(uA),H0=z8||function(b,L){return si.setTimeout(b,L)},kA=B4(LL);function Y4(b,L,D){var q=L+"";return kA(b,KL(q,jL(BL(q),D)))}function B4(b){var L=0,D=0;return function(){var q=q8(),ve=P-(q-D);if(D=q,ve>0){if(++L>=N)return arguments[0]}else L=0;return b.apply(n,arguments)}}function Qg(b,L){var D=-1,q=b.length,ve=q-1;for(L=L===n?q:L;++D<L;){var Le=y4(D,ve),Ee=b[Le];b[Le]=b[D],b[D]=Ee}return b.length=L,b}var Z4=ao(function(b){var L=[];return b.charCodeAt(0)===46&&L.push(""),b.replace(Jf,function(D,q,ve,Le){L.push(ve?Le.replace(Mc,"$1"):q||D)}),L});function Ql(b){if(typeof b=="string"||Ko(b))return b;var L=b+"";return L=="0"&&1/b==-Y?"-0":L}function xd(b){if(b!=null){try{return Dt.call(b)}catch{}try{return b+""}catch{}}return""}function jL(b,L){return Xa(ee,function(D){var q="_."+D[0];L&D[1]&&!zh(b,q)&&b.push(q)}),b.sort()}function Q4(b){if(b instanceof lr)return b.clone();var L=new As(b.__wrapped__,b.__chain__);return L.__actions__=mo(b.__actions__),L.__index__=b.__index__,L.__values__=b.__values__,L}function qL(b,L,D){(D?ro(b,L,D):L===n)?L=1:L=Ga(Yn(L),0);var q=b==null?0:b.length;if(!q||L<1)return[];for(var ve=0,Le=0,Ee=be(Og(q/L));ve<q;)Ee[Le++]=xs(b,ve,ve+=L);return Ee}function e6(b){for(var L=-1,D=b==null?0:b.length,q=0,ve=[];++L<D;){var Le=b[L];Le&&(ve[q++]=Le)}return ve}function t6(){var b=arguments.length;if(!b)return[];for(var L=be(b-1),D=arguments[0],q=b;q--;)L[q-1]=arguments[q];return Gs(Fn(D)?mo(D):[D],Vi(L,1))}var n6=zn(function(b,L){return Pa(b)?Y0(b,Vi(L,1,Pa,!0)):[]}),r6=zn(function(b,L){var D=Ms(L);return Pa(D)&&(D=n),Pa(b)?Y0(b,Vi(L,1,Pa,!0),yn(D,2)):[]}),a6=zn(function(b,L){var D=Ms(L);return Pa(D)&&(D=n),Pa(b)?Y0(b,Vi(L,1,Pa,!0),n,D):[]});function EA(b,L,D){var q=b==null?0:b.length;return q?(L=D||L===n?1:Yn(L),xs(b,L<0?0:L,q)):[]}function FA(b,L,D){var q=b==null?0:b.length;return q?(L=D||L===n?1:Yn(L),L=q-L,xs(b,0,L<0?0:L)):[]}function i6(b,L){return b&&b.length?Eg(b,yn(L,3),!0,!0):[]}function o6(b,L){return b&&b.length?Eg(b,yn(L,3),!0):[]}function s6(b,L,D,q){var ve=b==null?0:b.length;return ve?(D&&typeof D!="number"&&ro(b,L,D)&&(D=0,q=ve),vL(b,L,D,q)):[]}function K4(b,L,D){var q=b==null?0:b.length;if(!q)return-1;var ve=D==null?0:Yn(D);return ve<0&&(ve=Ga(q+ve,0)),qh(b,yn(L,3),ve)}function H4(b,L,D){var q=b==null?0:b.length;if(!q)return-1;var ve=q-1;return D!==n&&(ve=Yn(D),ve=D<0?Ga(q+ve,0):to(ve,q-1)),qh(b,yn(L,3),ve,!0)}function G4(b){var L=b==null?0:b.length;return L?Vi(b,1):[]}function l6(b){var L=b==null?0:b.length;return L?Vi(b,Y):[]}function c6(b,L){var D=b==null?0:b.length;return D?(L=L===n?1:Yn(L),Vi(b,L)):[]}function u6(b){for(var L=-1,D=b==null?0:b.length,q={};++L<D;){var ve=b[L];q[ve[0]]=ve[1]}return q}function $4(b){return b&&b.length?b[0]:n}function f6(b,L,D){var q=b==null?0:b.length;if(!q)return-1;var ve=D==null?0:Yn(D);return ve<0&&(ve=Ga(q+ve,0)),Cc(b,L,ve)}function d6(b){var L=b==null?0:b.length;return L?xs(b,0,-1):[]}var h6=zn(function(b){var L=Xr(b,pA);return L.length&&L[0]===b[0]?gd(L):[]}),p6=zn(function(b){var L=Ms(b),D=Xr(b,pA);return L===Ms(D)?L=n:D.pop(),D.length&&D[0]===b[0]?gd(D,yn(L,2)):[]}),v6=zn(function(b){var L=Ms(b),D=Xr(b,pA);return L=typeof L=="function"?L:n,L&&D.pop(),D.length&&D[0]===b[0]?gd(D,n,L):[]});function g6(b,L){return b==null?"":j8.call(b,L)}function Ms(b){var L=b==null?0:b.length;return L?b[L-1]:n}function m6(b,L,D){var q=b==null?0:b.length;if(!q)return-1;var ve=q;return D!==n&&(ve=Yn(D),ve=ve<0?Ga(q+ve,0):to(ve,q-1)),L===L?Tg(b,L,ve):qh(b,tp,ve,!0)}function y6(b,L){return b&&b.length?xL(b,Yn(L)):n}var A6=zn(z4);function z4(b,L){return b&&b.length&&L&&L.length?lA(b,L):b}function R6(b,L,D){return b&&b.length&&L&&L.length?lA(b,L,yn(D,2)):b}function b6(b,L,D){return b&&b.length&&L&&L.length?lA(b,L,n,D):b}var x6=$s(function(b,L){var D=b==null?0:b.length,q=W0(b,L);return m4(b,Xr(L,function(ve){return Vc(ve,D)?+ve:ve}).sort(Q0)),q});function ha(b,L){var D=[];if(!(b&&b.length))return D;var q=-1,ve=[],Le=b.length;for(L=yn(L,3);++q<Le;){var Ee=b[q];L(Ee,q,b)&&(D.push(Ee),ve.push(q))}return m4(b,ve),D}function ta(b){return b==null?b:tL.call(b)}function Kg(b,L,D){var q=b==null?0:b.length;return q?(D&&typeof D!="number"&&ro(b,L,D)?(L=0,D=q):(L=L==null?0:Yn(L),D=D===n?q:Yn(D)),xs(b,L,D)):[]}function Hg(b,L){return kg(b,L)}function yU(b,L,D){return fA(b,L,yn(D,2))}function AU(b,L){var D=b==null?0:b.length;if(D){var q=kg(b,L);if(q<D&&zs(b[q],L))return q}return-1}function XA(b,L){return kg(b,L,!0)}function DA(b,L,D){return fA(b,L,yn(D,2),!0)}function J4(b,L){var D=b==null?0:b.length;if(D){var q=kg(b,L,!0)-1;if(zs(b[q],L))return q}return-1}function S6(b){return b&&b.length?A4(b):[]}function M6(b,L){return b&&b.length?A4(b,yn(L,2)):[]}function _6(b){var L=b==null?0:b.length;return L?xs(b,1,L):[]}function w6(b,L,D){return b&&b.length?(L=D||L===n?1:Yn(L),xs(b,0,L<0?0:L)):[]}function L6(b,L,D){var q=b==null?0:b.length;return q?(L=D||L===n?1:Yn(L),L=q-L,xs(b,L<0?0:L,q)):[]}function T6(b,L){return b&&b.length?Eg(b,yn(L,3),!1,!0):[]}function O6(b,L){return b&&b.length?Eg(b,yn(L,3)):[]}var P6=zn(function(b){return ju(Vi(b,1,Pa,!0))}),C6=zn(function(b){var L=Ms(b);return Pa(L)&&(L=n),ju(Vi(b,1,Pa,!0),yn(L,2))}),N6=zn(function(b){var L=Ms(b);return L=typeof L=="function"?L:n,ju(Vi(b,1,Pa,!0),n,L)});function I6(b){return b&&b.length?ju(b):[]}function k6(b,L){return b&&b.length?ju(b,yn(L,2)):[]}function E6(b,L){return L=typeof L=="function"?L:n,b&&b.length?ju(b,n,L):[]}function VA(b){if(!(b&&b.length))return[];var L=0;return b=Bo(b,function(D){if(Pa(D))return L=Ga(D.length,L),!0}),dd(L,function(D){return Xr(b,ud(D))})}function j4(b,L){if(!(b&&b.length))return[];var D=VA(b);return L==null?D:Xr(D,function(q){return Ri(L,n,q)})}var F6=zn(function(b,L){return Pa(b)?Y0(b,L):[]}),X6=zn(function(b){return hA(Bo(b,Pa))}),D6=zn(function(b){var L=Ms(b);return Pa(L)&&(L=n),hA(Bo(b,Pa),yn(L,2))}),V6=zn(function(b){var L=Ms(b);return L=typeof L=="function"?L:n,hA(Bo(b,Pa),n,L)}),U6=zn(VA);function W6(b,L){return S4(b||[],L||[],zu)}function Y6(b,L){return S4(b||[],L||[],Ad)}var B6=zn(function(b){var L=b.length,D=L>1?b[L-1]:n;return D=typeof D=="function"?(b.pop(),D):n,j4(b,D)});function q4(b){var L=Me(b);return L.__chain__=!0,L}function Z6(b,L){return L(b),b}function Gg(b,L){return L(b)}var Q6=$s(function(b){var L=b.length,D=L?b[0]:0,q=this.__wrapped__,ve=function(Le){return W0(Le,b)};return L>1||this.__actions__.length||!(q instanceof lr)||!Vc(D)?this.thru(ve):(q=q.slice(D,+D+(L?1:0)),q.__actions__.push({func:Gg,args:[ve],thisArg:n}),new As(q,this.__chain__).thru(function(Le){return L&&!Le.length&&Le.push(n),Le}))});function K6(){return q4(this)}function H6(){return new As(this.value(),this.__chain__)}function G6(){this.__values__===n&&(this.__values__=h3(this.value()));var b=this.__index__>=this.__values__.length,L=b?n:this.__values__[this.__index__++];return{done:b,value:L}}function $6(){return this}function G0(b){for(var L,D=this;D instanceof Cg;){var q=Q4(D);q.__index__=0,q.__values__=n,L?ve.__wrapped__=q:L=q;var ve=q;D=D.__wrapped__}return ve.__wrapped__=b,L}function $0(){var b=this.__wrapped__;if(b instanceof lr){var L=b;return this.__actions__.length&&(L=new lr(this)),L=L.reverse(),L.__actions__.push({func:Gg,args:[ta],thisArg:n}),new As(L,this.__chain__)}return this.thru(ta)}function z6(){return x4(this.__wrapped__,this.__actions__)}var J6=Xg(function(b,L,D){Tt.call(b,D)?++b[D]:Xc(b,D,1)});function j6(b,L,D){var q=Fn(b)?cd:pL;return D&&ro(b,L,D)&&(L=n),q(b,yn(L,3))}function q6(b,L){var D=Fn(b)?Bo:s4;return D(b,yn(L,3))}var eT=P4(K4),tT=P4(H4);function nT(b,L){return Vi($g(b,L),1)}function rT(b,L){return Vi($g(b,L),Y)}function aT(b,L,D){return D=D===n?1:Yn(D),Vi($g(b,L),D)}function e3(b,L){var D=Fn(b)?Xa:Ju;return D(b,yn(L,3))}function t3(b,L){var D=Fn(b)?bi:eA;return D(b,yn(L,3))}var iT=Xg(function(b,L,D){Tt.call(b,D)?b[D].push(L):Xc(b,D,[L])});function oT(b,L,D,q){b=yo(b)?b:yp(b),D=D&&!q?Yn(D):0;var ve=b.length;return D<0&&(D=Ga(ve+D,0)),jg(b)?D<=ve&&b.indexOf(L,D)>-1:!!ve&&Cc(b,L,D)>-1}var sT=zn(function(b,L,D){var q=-1,ve=typeof L=="function",Le=yo(b)?be(b.length):[];return Ju(b,function(Ee){Le[++q]=ve?Ri(L,Ee,D):md(Ee,L,D)}),Le}),lT=Xg(function(b,L,D){Xc(b,D,L)});function $g(b,L){var D=Fn(b)?Xr:p4;return D(b,yn(L,3))}function cT(b,L,D,q){return b==null?[]:(Fn(L)||(L=L==null?[]:[L]),D=q?n:D,Fn(D)||(D=D==null?[]:[D]),SL(b,L,D))}var uT=Xg(function(b,L,D){b[D?0:1].push(L)},function(){return[[],[]]});function fT(b,L,D){var q=Fn(b)?Nl:fd,ve=arguments.length<3;return q(b,yn(L,4),D,ve,Ju)}function dT(b,L,D){var q=Fn(b)?Vu:fd,ve=arguments.length<3;return q(b,yn(L,4),D,ve,eA)}function hT(b,L){var D=Fn(b)?Bo:s4;return D(b,gp(yn(L,3)))}function pT(b){var L=Fn(b)?a4:wL;return L(b)}function vT(b,L,D){(D?ro(b,L,D):L===n)?L=1:L=Yn(L);var q=Fn(b)?dL:cA;return q(b,L)}function gT(b){var L=Fn(b)?fU:TL;return L(b)}function mT(b){if(b==null)return 0;if(yo(b))return jg(b)?k(b):b.length;var L=Ui(b);return L==X||L==me?b.size:oA(b).length}function yT(b,L,D){var q=Fn(b)?Il:OL;return D&&ro(b,L,D)&&(L=n),q(b,yn(L,3))}var AT=zn(function(b,L){if(b==null)return[];var D=L.length;return D>1&&ro(b,L[0],L[1])?L=[]:D>2&&ro(L[0],L[1],L[2])&&(L=[L[0]]),SL(b,Vi(L,1),[])}),zg=$8||function(){return si.Date.now()};function RT(b,L){if(typeof L!="function")throw new st(o);return b=Yn(b),function(){if(--b<1)return L.apply(this,arguments)}}function n3(b,L,D){return L=D?n:L,L=b&&L==null?b.length:L,Mi(b,S,n,n,n,n,L)}function r3(b,L){var D;if(typeof L!="function")throw new st(o);return b=Yn(b),function(){return--b>0&&(D=L.apply(this,arguments)),b<=1&&(L=n),D}}var UA=zn(function(b,L,D){var q=g;if(D.length){var ve=Xi(D,vp(UA));q|=x}return Mi(b,q,L,D,ve)}),a3=zn(function(b,L,D){var q=g|y;if(D.length){var ve=Xi(D,vp(a3));q|=x}return Mi(L,q,b,D,ve)});function i3(b,L,D){L=D?n:L;var q=Mi(b,R,n,n,n,n,n,L);return q.placeholder=i3.placeholder,q}function o3(b,L,D){L=D?n:L;var q=Mi(b,A,n,n,n,n,n,L);return q.placeholder=o3.placeholder,q}function s3(b,L,D){var q,ve,Le,Ee,Qe,et,xt=0,St=!1,Ot=!1,Kt=!0;if(typeof b!="function")throw new st(o);L=_s(L)||0,pa(D)&&(St=!!D.leading,Ot="maxWait"in D,Le=Ot?Ga(_s(D.maxWait)||0,L):Le,Kt="trailing"in D?!!D.trailing:Kt);function an(Ca){var js=q,Yc=ve;return q=ve=n,xt=Ca,Ee=b.apply(Yc,js),Ee}function An(Ca){return xt=Ca,Qe=H0(rr,L),St?an(Ca):Ee}function Qn(Ca){var js=Ca-et,Yc=Ca-xt,I3=L-js;return Ot?to(I3,Le-Yc):I3}function Rn(Ca){var js=Ca-et,Yc=Ca-xt;return et===n||js>=L||js<0||Ot&&Yc>=Le}function rr(){var Ca=zg();if(Rn(Ca))return cr(Ca);Qe=H0(rr,Qn(Ca))}function cr(Ca){return Qe=n,Kt&&q?an(Ca):(q=ve=n,Ee)}function Ho(){Qe!==n&&Ss(Qe),xt=0,q=et=ve=Qe=n}function ui(){return Qe===n?Ee:cr(zg())}function Yi(){var Ca=zg(),js=Rn(Ca);if(q=arguments,ve=this,et=Ca,js){if(Qe===n)return An(et);if(Ot)return Ss(Qe),Qe=H0(rr,L),an(et)}return Qe===n&&(Qe=H0(rr,L)),Ee}return Yi.cancel=Ho,Yi.flush=ui,Yi}var Lr=zn(function(b,L){return o4(b,1,L)}),Tr=zn(function(b,L,D){return o4(b,_s(L)||0,D)});function Sd(b){return Mi(b,_)}function Kl(b,L){if(typeof b!="function"||L!=null&&typeof L!="function")throw new st(o);var D=function(){var q=arguments,ve=L?L.apply(this,q):q[0],Le=D.cache;if(Le.has(ve))return Le.get(ve);var Ee=b.apply(this,q);return D.cache=Le.set(ve,Ee)||Le,Ee};return D.cache=new(Kl.Cache||Ec),D}Kl.Cache=Ec;function gp(b){if(typeof b!="function")throw new st(o);return function(){var L=arguments;switch(L.length){case 0:return!b.call(this);case 1:return!b.call(this,L[0]);case 2:return!b.call(this,L[0],L[1]);case 3:return!b.call(this,L[0],L[1],L[2])}return!b.apply(this,L)}}function WA(b){return r3(2,b)}var l3=PL(function(b,L){L=L.length==1&&Fn(L[0])?Xr(L[0],xi(yn())):Xr(Vi(L,1),xi(yn()));var D=L.length;return zn(function(q){for(var ve=-1,Le=to(q.length,D);++ve<Le;)q[ve]=L[ve].call(this,q[ve]);return Ri(b,this,q)})}),YA=zn(function(b,L){var D=Xi(L,vp(YA));return Mi(b,x,n,L,D)}),c3=zn(function(b,L){var D=Xi(L,vp(c3));return Mi(b,M,n,L,D)}),bT=$s(function(b,L){return Mi(b,w,n,n,n,L)});function xT(b,L){if(typeof b!="function")throw new st(o);return L=L===n?L:Yn(L),zn(b,L)}function ST(b,L){if(typeof b!="function")throw new st(o);return L=L==null?0:Ga(Yn(L),0),zn(function(D){var q=D[L],ve=ef(D,0,L);return q&&Gs(ve,q),Ri(b,this,ve)})}function MT(b,L,D){var q=!0,ve=!0;if(typeof b!="function")throw new st(o);return pa(D)&&(q="leading"in D?!!D.leading:q,ve="trailing"in D?!!D.trailing:ve),s3(b,L,{leading:q,maxWait:L,trailing:ve})}function _T(b){return n3(b,1)}function wT(b,L){return YA(vA(L),b)}function LT(){if(!arguments.length)return[];var b=arguments[0];return Fn(b)?b:[b]}function TT(b){return bs(b,h)}function OT(b,L){return L=typeof L=="function"?L:n,bs(b,h,L)}function PT(b){return bs(b,f|h)}function CT(b,L){return L=typeof L=="function"?L:n,bs(b,f|h,L)}function NT(b,L){return L==null||i4(b,L,ci(L))}function zs(b,L){return b===L||b!==b&&L!==L}var IT=RA(aA),kT=RA(function(b,L){return b>=L}),Md=Ig(function(){return arguments}())?Ig:function(b){return Sa(b)&&Tt.call(b,"callee")&&!Hu.call(b,"callee")},Fn=be.isArray,ET=sd?xi(sd):dp;function yo(b){return b!=null&&Jg(b.length)&&!Uc(b)}function Pa(b){return Sa(b)&&yo(b)}function FT(b){return b===!0||b===!1||Sa(b)&&Si(b)==_e}var tf=e4||q0,XT=Oc?xi(Oc):yL;function DT(b){return Sa(b)&&b.nodeType===1&&!Js(b)}function VT(b){if(b==null)return!0;if(yo(b)&&(Fn(b)||typeof b=="string"||typeof b.splice=="function"||tf(b)||mp(b)||Md(b)))return!b.length;var L=Ui(b);if(L==X||L==me)return!b.size;if(K0(b))return!oA(b).length;for(var D in b)if(Tt.call(b,D))return!1;return!0}function UT(b,L){return B0(b,L)}function WT(b,L,D){D=typeof D=="function"?D:n;var q=D?D(b,L):n;return q===n?B0(b,L,n,D):!!q}function BA(b){if(!Sa(b))return!1;var L=Si(b);return L==de||L==z||typeof b.message=="string"&&typeof b.name=="string"&&!Js(b)}function YT(b){return typeof b=="number"&&J8(b)}function Uc(b){if(!pa(b))return!1;var L=Si(b);return L==fe||L==re||L==xe||L==ge}function u3(b){return typeof b=="number"&&b==Yn(b)}function Jg(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=Q}function pa(b){var L=typeof b;return b!=null&&(L=="object"||L=="function")}function Sa(b){return b!=null&&typeof b=="object"}var f3=Pc?xi(Pc):hU;function BT(b,L){return b===L||f4(b,L,_A(L))}function ZT(b,L,D){return D=typeof D=="function"?D:n,f4(b,L,_A(L),D)}function QT(b){return nf(b)&&b!=+b}function KT(b){if(zL(b))throw new ke(i);return RL(b)}function HT(b){return b===null}function GT(b){return b==null}function nf(b){return typeof b=="number"||Sa(b)&&Si(b)==j}function Js(b){if(!Sa(b)||Si(b)!=ae)return!1;var L=da(b);if(L===null)return!0;var D=Tt.call(L,"constructor")&&L.constructor;return typeof D=="function"&&D instanceof D&&Dt.call(D)==Un}var ZA=Xy?xi(Xy):pU;function $T(b){return u3(b)&&b>=-Q&&b<=Q}var d3=$h?xi($h):vU;function jg(b){return typeof b=="string"||!Fn(b)&&Sa(b)&&Si(b)==ye}function Ko(b){return typeof b=="symbol"||Sa(b)&&Si(b)==Ve}var mp=ld?xi(ld):bL;function zT(b){return b===n}function JT(b){return Sa(b)&&Ui(b)==Ye}function jT(b){return Sa(b)&&Si(b)==Je}var qT=RA(Z0),eO=RA(function(b,L){return b<=L});function h3(b){if(!b)return[];if(yo(b))return jg(b)?W(b):mo(b);if(ip&&b[ip])return ap(b[ip]());var L=Ui(b),D=L==X?Xl:L==me?Qu:yp;return D(b)}function Wc(b){if(!b)return b===0?b:0;if(b=_s(b),b===Y||b===-Y){var L=b<0?-1:1;return L*K}return b===b?b:0}function Yn(b){var L=Wc(b),D=L%1;return L===L?D?L-D:L:0}function p3(b){return b?Ul(Yn(b),0,Z):0}function _s(b){if(typeof b=="number")return b;if(Ko(b))return ne;if(pa(b)){var L=typeof b.valueOf=="function"?b.valueOf():b;b=pa(L)?L+"":L}if(typeof b!="string")return b===0?b:+b;b=Nc(b);var D=Uo.test(b);return D||go.test(b)?Xu(b.slice(2),D?2:8):C0.test(b)?ne:+b}function v3(b){return Bl(b,Ao(b))}function tO(b){return b?Ul(Yn(b),-Q,Q):b===0?b:0}function Cr(b){return b==null?"":Qo(b)}var nO=hp(function(b,L){if(K0(L)||yo(L)){Bl(L,ci(L),b);return}for(var D in L)Tt.call(L,D)&&zu(b,D,L[D])}),g3=hp(function(b,L){Bl(L,Ao(L),b)}),qg=hp(function(b,L,D,q){Bl(L,Ao(L),b,q)}),rO=hp(function(b,L,D,q){Bl(L,ci(L),b,q)}),aO=$s(W0);function iO(b,L){var D=cp(b);return L==null?D:jy(D,L)}var oO=zn(function(b,L){b=Be(b);var D=-1,q=L.length,ve=q>2?L[2]:n;for(ve&&ro(L[0],L[1],ve)&&(q=1);++D<q;)for(var Le=L[D],Ee=Ao(Le),Qe=-1,et=Ee.length;++Qe<et;){var xt=Ee[Qe],St=b[xt];(St===n||zs(St,Ut[xt])&&!Tt.call(b,xt))&&(b[xt]=Le[xt])}return b}),sO=zn(function(b){return b.push(n,F4),Ri(m3,n,b)});function lO(b,L){return jh(b,yn(L,3),Wl)}function cO(b,L){return jh(b,yn(L,3),no)}function uO(b,L){return b==null?b:nA(b,yn(L,3),Ao)}function fO(b,L){return b==null?b:l4(b,yn(L,3),Ao)}function dO(b,L){return b&&Wl(b,yn(L,3))}function hO(b,L){return b&&no(b,yn(L,3))}function pO(b){return b==null?[]:rA(b,ci(b))}function vO(b){return b==null?[]:rA(b,Ao(b))}function QA(b,L,D){var q=b==null?n:fp(b,L);return q===n?D:q}function gO(b,L){return b!=null&&D4(b,L,c4)}function KA(b,L){return b!=null&&D4(b,L,iA)}var mO=N4(function(b,L,D){L!=null&&typeof L.toString!="function"&&(L=Mn.call(L)),b[L]=D},_d(Ro)),yO=N4(function(b,L,D){L!=null&&typeof L.toString!="function"&&(L=Mn.call(L)),Tt.call(b,L)?b[L].push(D):b[L]=[D]},yn),AO=zn(md);function ci(b){return yo(b)?fL(b):oA(b)}function Ao(b){return yo(b)?fL(b,!0):h4(b)}function RO(b,L){var D={};return L=yn(L,3),Wl(b,function(q,ve,Le){Xc(D,L(q,ve,Le),q)}),D}function bO(b,L){var D={};return L=yn(L,3),Wl(b,function(q,ve,Le){Xc(D,ve,L(q,ve,Le))}),D}var xO=hp(function(b,L,D){sA(b,L,D)}),m3=hp(function(b,L,D,q){sA(b,L,D,q)}),SO=$s(function(b,L){var D={};if(b==null)return D;var q=!1;L=Xr(L,function(Le){return Le=qu(Le,b),q||(q=Le.length>1),Le}),Bl(b,SA(b),D),q&&(D=bs(D,f|d|h,VL));for(var ve=L.length;ve--;)dA(D,L[ve]);return D});function em(b,L){return nm(b,gp(yn(L)))}var tm=$s(function(b,L){return b==null?{}:mU(b,L)});function nm(b,L){if(b==null)return{};var D=Xr(SA(b),function(q){return[q]});return L=yn(L),ML(b,D,function(q,ve){return L(q,ve[0])})}function HA(b,L,D){L=qu(L,b);var q=-1,ve=L.length;for(ve||(ve=1,b=n);++q<ve;){var Le=b==null?n:b[Ql(L[q])];Le===n&&(q=ve,Le=D),b=Uc(Le)?Le.call(b):Le}return b}function GA(b,L,D){return b==null?b:Ad(b,L,D)}function MO(b,L,D,q){return q=typeof q=="function"?q:n,b==null?b:Ad(b,L,D,q)}var rm=E4(ci),y3=E4(Ao);function A3(b,L,D){var q=Fn(b),ve=q||tf(b)||mp(b);if(L=yn(L,4),D==null){var Le=b&&b.constructor;ve?D=q?new Le:[]:pa(b)?D=Uc(Le)?cp(da(b)):{}:D={}}return(ve?Xa:Wl)(b,function(Ee,Qe,et){return L(D,Ee,Qe,et)}),D}function R3(b,L){return b==null?!0:dA(b,L)}function _O(b,L,D){return b==null?b:b4(b,L,vA(D))}function wO(b,L,D,q){return q=typeof q=="function"?q:n,b==null?b:b4(b,L,vA(D),q)}function yp(b){return b==null?[]:El(b,ci(b))}function LO(b){return b==null?[]:El(b,Ao(b))}function $A(b,L,D){return D===n&&(D=L,L=n),D!==n&&(D=_s(D),D=D===D?D:0),L!==n&&(L=_s(L),L=L===L?L:0),Ul(_s(b),L,D)}function b3(b,L,D){return L=Wc(L),D===n?(D=L,L=0):D=Wc(D),b=_s(b),u4(b,L,D)}function TO(b,L,D){if(D&&typeof D!="boolean"&&ro(b,L,D)&&(L=D=n),D===n&&(typeof L=="boolean"?(D=L,L=n):typeof b=="boolean"&&(D=b,b=n)),b===n&&L===n?(b=0,L=1):(b=Wc(b),L===n?(L=b,b=0):L=Wc(L)),b>L){var q=b;b=L,L=q}if(D||b%1||L%1){var ve=By();return to(b+ve*(L-b+Fu("1e-"+((ve+"").length-1))),L)}return y4(b,L)}var RU=pp(function(b,L,D){return L=L.toLowerCase(),b+(D?OO(L):L)});function OO(b){return qA(Cr(b).toLowerCase())}function x3(b){return b=Cr(b),b&&b.replace(Wo,Lg).replace(Pl,"")}function PO(b,L,D){b=Cr(b),L=Qo(L);var q=b.length;D=D===n?q:Ul(Yn(D),0,q);var ve=D;return D-=L.length,D>=0&&b.slice(D,ve)==L}function CO(b){return b=Cr(b),b&&yi.test(b)?b.replace(pn,rp):b}function zA(b){return b=Cr(b),b&&Vn.test(b)?b.replace(Bs,"\\$&"):b}var NO=pp(function(b,L,D){return b+(D?"-":"")+L.toLowerCase()}),bU=pp(function(b,L,D){return b+(D?" ":"")+L.toLowerCase()}),z0=O4("toLowerCase");function IO(b,L,D){b=Cr(b),L=Yn(L);var q=L?k(b):0;if(!L||q>=L)return b;var ve=(L-q)/2;return Vg(Pg(ve),D)+b+Vg(Og(ve),D)}function kO(b,L,D){b=Cr(b),L=Yn(L);var q=L?k(b):0;return L&&q<L?b+Vg(L-q,D):b}function EO(b,L,D){b=Cr(b),L=Yn(L);var q=L?k(b):0;return L&&q<L?Vg(L-q,D)+b:b}function JA(b,L,D){return D||L==null?L=0:L&&(L=+L),eL(Cr(b).replace(Ar,""),L||0)}function FO(b,L,D){return(D?ro(b,L,D):L===n)?L=1:L=Yn(L),Dc(Cr(b),L)}function xU(){var b=arguments,L=Cr(b[0]);return b.length<3?L:L.replace(b[1],b[2])}var XO=pp(function(b,L,D){return b+(D?"_":"")+L.toLowerCase()});function am(b,L,D){return D&&typeof D!="number"&&ro(b,L,D)&&(L=D=n),D=D===n?Z:D>>>0,D?(b=Cr(b),b&&(typeof L=="string"||L!=null&&!ZA(L))&&(L=Qo(L),!L&&Fl(b))?ef(W(b),0,D):b.split(L,D)):[]}var DO=pp(function(b,L,D){return b+(D?" ":"")+qA(L)});function SU(b,L,D){return b=Cr(b),D=D==null?0:Ul(Yn(D),0,b.length),L=Qo(L),b.slice(D,D+L.length)==L}function MU(b,L,D){var q=Me.templateSettings;D&&ro(b,L,D)&&(L=n),b=Cr(b),L=qg({},L,q,Zl);var ve=qg({},L.imports,q.imports,Zl),Le=ci(ve),Ee=El(ve,Le),Qe,et,xt=0,St=L.interpolate||$r,Ot="__p += '",Kt=ot((L.escape||$r).source+"|"+St.source+"|"+(St===Ys?vo:$r).source+"|"+(L.evaluate||$r).source+"|$","g"),an="//# sourceURL="+(Tt.call(L,"sourceURL")?(L.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++od+"]")+`-`;b.replace(Kt,function(Rn,rr,cr,Ho,ui,Yi){return cr||(cr=Ho),Ot+=b.slice(xt,Yi).replace(Pu,li),rr&&(Qe=!0,Ot+=`' +-__e(`+rr+`) +-'`),ui&&(et=!0,Ot+=`';-`+ui+`;-__p += '`),cr&&(Ot+=`' +-((__t = (`+cr+`)) == null ? '' : __t) +-'`),xt=Yi+Rn.length,Rn}),Ot+=`';-`;var An=Tt.call(L,"variable")&&L.variable;if(!An)Ot=`with (obj) {-`+Ot+`-}-`;else if(Ll.test(An))throw new ke(s);Ot=(et?Ot.replace(Pt,""):Ot).replace(Yt,"$1").replace(dt,"$1;"),Ot="function("+(An||"obj")+`) {-`+(An?"":`obj || (obj = {});-`)+"var __t, __p = ''"+(Qe?", __e = _.escape":"")+(et?`, __j = Array.prototype.join;-function print() { __p += __j.call(arguments, '') }-`:`;-`)+Ot+`return __p-}`;var Qn=WO(function(){return Ze(Le,an+"return "+Ot).apply(n,Ee)});if(Qn.source=Ot,BA(Qn))throw Qn;return Qn}function VO(b){return Cr(b).toLowerCase()}function jA(b){return Cr(b).toUpperCase()}function UO(b,L,D){if(b=Cr(b),b&&(D||L===n))return Nc(b);if(!b||!(L=Qo(L)))return b;var q=W(b),ve=W(L),Le=np(q,ve),Ee=Dy(q,ve)+1;return ef(q,Le,Ee).join("")}function _U(b,L,D){if(b=Cr(b),b&&(D||L===n))return b.slice(0,J(b)+1);if(!b||!(L=Qo(L)))return b;var q=W(b),ve=Dy(q,W(L))+1;return ef(q,0,ve).join("")}function S3(b,L,D){if(b=Cr(b),b&&(D||L===n))return b.replace(Ar,"");if(!b||!(L=Qo(L)))return b;var q=W(b),ve=np(q,W(L));return ef(q,ve).join("")}function J0(b,L){var D=T,q=O;if(pa(L)){var ve="separator"in L?L.separator:ve;D="length"in L?Yn(L.length):D,q="omission"in L?Qo(L.omission):q}b=Cr(b);var Le=b.length;if(Fl(b)){var Ee=W(b);Le=Ee.length}if(D>=Le)return b;var Qe=D-k(q);if(Qe<1)return q;var et=Ee?ef(Ee,0,Qe).join(""):b.slice(0,Qe);if(ve===n)return et+q;if(Ee&&(Qe+=et.length-Qe),ZA(ve)){if(b.slice(Qe).search(ve)){var xt,St=et;for(ve.global||(ve=ot(ve.source,Cr(jf.exec(ve))+"g")),ve.lastIndex=0;xt=ve.exec(St);)var Ot=xt.index;et=et.slice(0,Ot===n?Qe:Ot)}}else if(b.indexOf(Qo(ve),Qe)!=Qe){var Kt=et.lastIndexOf(ve);Kt>-1&&(et=et.slice(0,Kt))}return et+q}function j0(b){return b=Cr(b),b&&En.test(b)?b.replace(fn,ue):b}var M3=pp(function(b,L,D){return b+(D?" ":"")+L.toUpperCase()}),qA=O4("toUpperCase");function _3(b,L,D){return b=Cr(b),L=D?n:L,L===n?Zo(b)?Pe(b):kl(b):b.match(L)||[]}var WO=zn(function(b,L){try{return Ri(b,n,L)}catch(D){return BA(D)?D:new ke(D)}}),wU=$s(function(b,L){return Xa(L,function(D){D=Ql(D),Xc(b,D,UA(b[D],b))}),b});function YO(b){var L=b==null?0:b.length,D=yn();return b=L?Xr(b,function(q){if(typeof q[1]!="function")throw new st(o);return[D(q[0]),q[1]]}):[],zn(function(q){for(var ve=-1;++ve<L;){var Le=b[ve];if(Ri(Le[0],this,q))return Ri(Le[1],this,q)}})}function LU(b){return hL(bs(b,f))}function _d(b){return function(){return b}}function TU(b,L){return b==null||b!==b?L:b}var BO=C4(),ZO=C4(!0);function Ro(b){return b}function eR(b){return d4(typeof b=="function"?b:bs(b,f))}function QO(b){return v4(bs(b,f))}function OU(b,L){return g4(b,bs(L,f))}var PU=zn(function(b,L){return function(D){return md(D,b,L)}}),CU=zn(function(b,L){return function(D){return md(b,D,L)}});function w3(b,L,D){var q=ci(L),ve=rA(L,q);D==null&&!(pa(L)&&(ve.length||!q.length))&&(D=L,L=b,b=this,ve=rA(L,ci(L)));var Le=!(pa(D)&&"chain"in D)||!!D.chain,Ee=Uc(b);return Xa(ve,function(Qe){var et=L[Qe];b[Qe]=et,Ee&&(b.prototype[Qe]=function(){var xt=this.__chain__;if(Le||xt){var St=b(this.__wrapped__),Ot=St.__actions__=mo(this.__actions__);return Ot.push({func:et,args:arguments,thisArg:b}),St.__chain__=xt,St}return et.apply(b,Gs([this.value()],arguments))})}),b}function KO(){return si._===this&&(si._=Wn),this}function tR(){}function HO(b){return b=Yn(b),zn(function(L){return xL(L,b)})}var NU=AA(Xr),IU=AA(cd),kU=AA(Il);function L3(b){return LA(b)?ud(Ql(b)):_L(b)}function nR(b){return function(L){return b==null?n:fp(b,L)}}var rR=I4(),aR=I4(!0);function iR(){return[]}function q0(){return!1}function T3(){return{}}function GO(){return""}function oR(){return!0}function $O(b,L){if(b=Yn(b),b<1||b>Q)return[];var D=Z,q=to(b,Z);L=yn(L),b-=Z;for(var ve=dd(q,L);++D<b;)L(D);return ve}function sR(b){return Fn(b)?Xr(b,Ql):Ko(b)?[b]:mo(Z4(Cr(b)))}function zO(b){var L=++Bt;return Cr(b)+L}var O3=yA(function(b,L){return b+L},0),EU=bA("ceil"),FU=yA(function(b,L){return b/L},1),JO=bA("floor");function lR(b){return b&&b.length?tA(b,Ro,aA):n}function cR(b,L){return b&&b.length?tA(b,yn(L,2),aA):n}function uR(b){return _g(b,Ro)}function jO(b,L){return _g(b,yn(L,2))}function qO(b){return b&&b.length?tA(b,Ro,Z0):n}function fR(b,L){return b&&b.length?tA(b,yn(L,2),Z0):n}var dR=yA(function(b,L){return b*L},1),P3=bA("round"),C3=yA(function(b,L){return b-L},0);function N3(b){return b&&b.length?E0(b,Ro):0}function im(b,L){return b&&b.length?E0(b,yn(L,2)):0}return Me.after=RT,Me.ary=n3,Me.assign=nO,Me.assignIn=g3,Me.assignInWith=qg,Me.assignWith=rO,Me.at=aO,Me.before=r3,Me.bind=UA,Me.bindAll=wU,Me.bindKey=a3,Me.castArray=LT,Me.chain=q4,Me.chunk=qL,Me.compact=e6,Me.concat=t6,Me.cond=YO,Me.conforms=LU,Me.constant=_d,Me.countBy=J6,Me.create=iO,Me.curry=i3,Me.curryRight=o3,Me.debounce=s3,Me.defaults=oO,Me.defaultsDeep=sO,Me.defer=Lr,Me.delay=Tr,Me.difference=n6,Me.differenceBy=r6,Me.differenceWith=a6,Me.drop=EA,Me.dropRight=FA,Me.dropRightWhile=i6,Me.dropWhile=o6,Me.fill=s6,Me.filter=q6,Me.flatMap=nT,Me.flatMapDeep=rT,Me.flatMapDepth=aT,Me.flatten=G4,Me.flattenDeep=l6,Me.flattenDepth=c6,Me.flip=Sd,Me.flow=BO,Me.flowRight=ZO,Me.fromPairs=u6,Me.functions=pO,Me.functionsIn=vO,Me.groupBy=iT,Me.initial=d6,Me.intersection=h6,Me.intersectionBy=p6,Me.intersectionWith=v6,Me.invert=mO,Me.invertBy=yO,Me.invokeMap=sT,Me.iteratee=eR,Me.keyBy=lT,Me.keys=ci,Me.keysIn=Ao,Me.map=$g,Me.mapKeys=RO,Me.mapValues=bO,Me.matches=QO,Me.matchesProperty=OU,Me.memoize=Kl,Me.merge=xO,Me.mergeWith=m3,Me.method=PU,Me.methodOf=CU,Me.mixin=w3,Me.negate=gp,Me.nthArg=HO,Me.omit=SO,Me.omitBy=em,Me.once=WA,Me.orderBy=cT,Me.over=NU,Me.overArgs=l3,Me.overEvery=IU,Me.overSome=kU,Me.partial=YA,Me.partialRight=c3,Me.partition=uT,Me.pick=tm,Me.pickBy=nm,Me.property=L3,Me.propertyOf=nR,Me.pull=A6,Me.pullAll=z4,Me.pullAllBy=R6,Me.pullAllWith=b6,Me.pullAt=x6,Me.range=rR,Me.rangeRight=aR,Me.rearg=bT,Me.reject=hT,Me.remove=ha,Me.rest=xT,Me.reverse=ta,Me.sampleSize=vT,Me.set=GA,Me.setWith=MO,Me.shuffle=gT,Me.slice=Kg,Me.sortBy=AT,Me.sortedUniq=S6,Me.sortedUniqBy=M6,Me.split=am,Me.spread=ST,Me.tail=_6,Me.take=w6,Me.takeRight=L6,Me.takeRightWhile=T6,Me.takeWhile=O6,Me.tap=Z6,Me.throttle=MT,Me.thru=Gg,Me.toArray=h3,Me.toPairs=rm,Me.toPairsIn=y3,Me.toPath=sR,Me.toPlainObject=v3,Me.transform=A3,Me.unary=_T,Me.union=P6,Me.unionBy=C6,Me.unionWith=N6,Me.uniq=I6,Me.uniqBy=k6,Me.uniqWith=E6,Me.unset=R3,Me.unzip=VA,Me.unzipWith=j4,Me.update=_O,Me.updateWith=wO,Me.values=yp,Me.valuesIn=LO,Me.without=F6,Me.words=_3,Me.wrap=wT,Me.xor=X6,Me.xorBy=D6,Me.xorWith=V6,Me.zip=U6,Me.zipObject=W6,Me.zipObjectDeep=Y6,Me.zipWith=B6,Me.entries=rm,Me.entriesIn=y3,Me.extend=g3,Me.extendWith=qg,w3(Me,Me),Me.add=O3,Me.attempt=WO,Me.camelCase=RU,Me.capitalize=OO,Me.ceil=EU,Me.clamp=$A,Me.clone=TT,Me.cloneDeep=PT,Me.cloneDeepWith=CT,Me.cloneWith=OT,Me.conformsTo=NT,Me.deburr=x3,Me.defaultTo=TU,Me.divide=FU,Me.endsWith=PO,Me.eq=zs,Me.escape=CO,Me.escapeRegExp=zA,Me.every=j6,Me.find=eT,Me.findIndex=K4,Me.findKey=lO,Me.findLast=tT,Me.findLastIndex=H4,Me.findLastKey=cO,Me.floor=JO,Me.forEach=e3,Me.forEachRight=t3,Me.forIn=uO,Me.forInRight=fO,Me.forOwn=dO,Me.forOwnRight=hO,Me.get=QA,Me.gt=IT,Me.gte=kT,Me.has=gO,Me.hasIn=KA,Me.head=$4,Me.identity=Ro,Me.includes=oT,Me.indexOf=f6,Me.inRange=b3,Me.invoke=AO,Me.isArguments=Md,Me.isArray=Fn,Me.isArrayBuffer=ET,Me.isArrayLike=yo,Me.isArrayLikeObject=Pa,Me.isBoolean=FT,Me.isBuffer=tf,Me.isDate=XT,Me.isElement=DT,Me.isEmpty=VT,Me.isEqual=UT,Me.isEqualWith=WT,Me.isError=BA,Me.isFinite=YT,Me.isFunction=Uc,Me.isInteger=u3,Me.isLength=Jg,Me.isMap=f3,Me.isMatch=BT,Me.isMatchWith=ZT,Me.isNaN=QT,Me.isNative=KT,Me.isNil=GT,Me.isNull=HT,Me.isNumber=nf,Me.isObject=pa,Me.isObjectLike=Sa,Me.isPlainObject=Js,Me.isRegExp=ZA,Me.isSafeInteger=$T,Me.isSet=d3,Me.isString=jg,Me.isSymbol=Ko,Me.isTypedArray=mp,Me.isUndefined=zT,Me.isWeakMap=JT,Me.isWeakSet=jT,Me.join=g6,Me.kebabCase=NO,Me.last=Ms,Me.lastIndexOf=m6,Me.lowerCase=bU,Me.lowerFirst=z0,Me.lt=qT,Me.lte=eO,Me.max=lR,Me.maxBy=cR,Me.mean=uR,Me.meanBy=jO,Me.min=qO,Me.minBy=fR,Me.stubArray=iR,Me.stubFalse=q0,Me.stubObject=T3,Me.stubString=GO,Me.stubTrue=oR,Me.multiply=dR,Me.nth=y6,Me.noConflict=KO,Me.noop=tR,Me.now=zg,Me.pad=IO,Me.padEnd=kO,Me.padStart=EO,Me.parseInt=JA,Me.random=TO,Me.reduce=fT,Me.reduceRight=dT,Me.repeat=FO,Me.replace=xU,Me.result=HA,Me.round=P3,Me.runInContext=Ae,Me.sample=pT,Me.size=mT,Me.snakeCase=XO,Me.some=yT,Me.sortedIndex=Hg,Me.sortedIndexBy=yU,Me.sortedIndexOf=AU,Me.sortedLastIndex=XA,Me.sortedLastIndexBy=DA,Me.sortedLastIndexOf=J4,Me.startCase=DO,Me.startsWith=SU,Me.subtract=C3,Me.sum=N3,Me.sumBy=im,Me.template=MU,Me.times=$O,Me.toFinite=Wc,Me.toInteger=Yn,Me.toLength=p3,Me.toLower=VO,Me.toNumber=_s,Me.toSafeInteger=tO,Me.toString=Cr,Me.toUpper=jA,Me.trim=UO,Me.trimEnd=_U,Me.trimStart=S3,Me.truncate=J0,Me.unescape=j0,Me.uniqueId=zO,Me.upperCase=M3,Me.upperFirst=qA,Me.each=e3,Me.eachRight=t3,Me.first=$4,w3(Me,function(){var b={};return Wl(Me,function(L,D){Tt.call(Me.prototype,D)||(b[D]=L)}),b}(),{chain:!1}),Me.VERSION=r,Xa(["bind","bindKey","curry","curryRight","partial","partialRight"],function(b){Me[b].placeholder=Me}),Xa(["drop","take"],function(b,L){lr.prototype[b]=function(D){D=D===n?1:Ga(Yn(D),0);var q=this.__filtered__&&!L?new lr(this):this.clone();return q.__filtered__?q.__takeCount__=to(D,q.__takeCount__):q.__views__.push({size:to(D,Z),type:b+(q.__dir__<0?"Right":"")}),q},lr.prototype[b+"Right"]=function(D){return this.reverse()[b](D).reverse()}}),Xa(["filter","map","takeWhile"],function(b,L){var D=L+1,q=D==C||D==F;lr.prototype[b]=function(ve){var Le=this.clone();return Le.__iteratees__.push({iteratee:yn(ve,3),type:D}),Le.__filtered__=Le.__filtered__||q,Le}}),Xa(["head","last"],function(b,L){var D="take"+(L?"Right":"");lr.prototype[b]=function(){return this[D](1).value()[0]}}),Xa(["initial","tail"],function(b,L){var D="drop"+(L?"":"Right");lr.prototype[b]=function(){return this.__filtered__?new lr(this):this[D](1)}}),lr.prototype.compact=function(){return this.filter(Ro)},lr.prototype.find=function(b){return this.filter(b).head()},lr.prototype.findLast=function(b){return this.reverse().find(b)},lr.prototype.invokeMap=zn(function(b,L){return typeof b=="function"?new lr(this):this.map(function(D){return md(D,b,L)})}),lr.prototype.reject=function(b){return this.filter(gp(yn(b)))},lr.prototype.slice=function(b,L){b=Yn(b);var D=this;return D.__filtered__&&(b>0||L<0)?new lr(D):(b<0?D=D.takeRight(-b):b&&(D=D.drop(b)),L!==n&&(L=Yn(L),D=L<0?D.dropRight(-L):D.take(L-b)),D)},lr.prototype.takeRightWhile=function(b){return this.reverse().takeWhile(b).reverse()},lr.prototype.toArray=function(){return this.take(Z)},Wl(lr.prototype,function(b,L){var D=/^(?:filter|find|map|reject)|While$/.test(L),q=/^(?:head|last)$/.test(L),ve=Me[q?"take"+(L=="last"?"Right":""):L],Le=q||/^find/.test(L);ve&&(Me.prototype[L]=function(){var Ee=this.__wrapped__,Qe=q?[1]:arguments,et=Ee instanceof lr,xt=Qe[0],St=et||Fn(Ee),Ot=function(rr){var cr=ve.apply(Me,Gs([rr],Qe));return q&&Kt?cr[0]:cr};St&&D&&typeof xt=="function"&&xt.length!=1&&(et=St=!1);var Kt=this.__chain__,an=!!this.__actions__.length,An=Le&&!Kt,Qn=et&&!an;if(!Le&&St){Ee=Qn?Ee:new lr(this);var Rn=b.apply(Ee,Qe);return Rn.__actions__.push({func:Gg,args:[Ot],thisArg:n}),new As(Rn,Kt)}return An&&Qn?b.apply(this,Qe):(Rn=this.thru(Ot),An?q?Rn.value()[0]:Rn.value():Rn)})}),Xa(["pop","push","shift","sort","splice","unshift"],function(b){var L=Rt[b],D=/^(?:push|sort|unshift)$/.test(b)?"tap":"thru",q=/^(?:pop|shift)$/.test(b);Me.prototype[b]=function(){var ve=arguments;if(q&&!this.__chain__){var Le=this.value();return L.apply(Fn(Le)?Le:[],ve)}return this[D](function(Ee){return L.apply(Fn(Ee)?Ee:[],ve)})}}),Wl(lr.prototype,function(b,L){var D=Me[L];if(D){var q=D.name+"";Tt.call($u,q)||($u[q]=[]),$u[q].push({name:L,func:D})}}),$u[Dg(n,y).name]=[{name:"wrapper",func:n}],lr.prototype.clone=rL,lr.prototype.reverse=kc,lr.prototype.value=nU,Me.prototype.at=Q6,Me.prototype.chain=K6,Me.prototype.commit=H6,Me.prototype.next=G6,Me.prototype.plant=G0,Me.prototype.reverse=$0,Me.prototype.toJSON=Me.prototype.valueOf=Me.prototype.value=z6,Me.prototype.first=Me.prototype.head,ip&&(Me.prototype[ip]=$6),Me},Ke=Ie();Ks?((Ks.exports=Ke)._=Ke,Tc._=Ke):si._=Ke}).call(cn)})(DF,DF.exports);var Vr=DF.exports;const It=l8("slides",{state:()=>({title:"未命名演示文稿",theme:{themeColors:["#5b9bd5","#ed7d31","#a5a5a5","#ffc000","#4472c4","#70ad47"],fontColor:"#333",fontName:"",backgroundColor:"#fff",shadow:{h:3,v:3,blur:2,color:"#808080"},outline:{width:2,color:"#525252",style:"solid"}},slides:[],slideIndex:0,viewportSize:1e3,viewportRatio:.5625,templates:[{name:"山河映红",id:"template_1",cover:"./imgs/template_1.webp",origin:"官方制作"},{name:"都市蓝调",id:"template_2",cover:"./imgs/template_2.webp",origin:"官方制作"},{name:"智感几何",id:"template_3",cover:"./imgs/template_3.webp",origin:"官方制作"},{name:"柔光莫兰迪",id:"template_4",cover:"./imgs/template_4.webp",origin:"官方制作"},{name:"简约绿意",id:"template_5",cover:"./imgs/template_5.webp",origin:"社区贡献+官方深度完善优化"},{name:"暖色复古",id:"template_6",cover:"./imgs/template_6.webp",origin:"社区贡献+官方深度完善优化"},{name:"深邃沉稳",id:"template_7",cover:"./imgs/template_7.webp",origin:"社区贡献+官方深度完善优化"},{name:"浅蓝小清新",id:"template_8",cover:"./imgs/template_8.webp",origin:"社区贡献+官方深度完善优化"}]}),getters:{currentSlide(t){return t.slides[t.slideIndex]},currentSlideAnimations(t){const e=t.slides[t.slideIndex];if(!(e!=null&&e.animations))return[];const r=e.elements.map(a=>a.id);return e.animations.filter(a=>r.includes(a.elId))},formatedAnimations(t){const e=t.slides[t.slideIndex];if(!(e!=null&&e.animations))return[];const r=e.elements.map(o=>o.id),a=e.animations.filter(o=>r.includes(o.elId)),i=[];for(const o of a)if(o.trigger==="click"||!i.length)i.push({animations:[o],autoNext:!1});else if(o.trigger==="meantime"){const s=i[i.length-1];s.animations=s.animations.filter(l=>l.elId!==o.elId),s.animations.push(o),i[i.length-1]=s}else if(o.trigger==="auto"){const s=i[i.length-1];s.autoNext=!0,i[i.length-1]=s,i.push({animations:[o],autoNext:!1})}return i}},actions:{setTitle(t){t?this.title=t:this.title="未命名演示文稿"},setTheme(t){this.theme={...this.theme,...t}},setViewportSize(t){this.viewportSize=t},setViewportRatio(t){this.viewportRatio=t},setSlides(t,e){this.slides=t,e&&this.setTheme(e)},setTemplates(t){this.templates=t},addSlide(t){const e=Array.isArray(t)?t:[t];for(const r of e)r.sectionTag&&delete r.sectionTag;const n=this.slideIndex+1;this.slides.splice(n,0,...e),this.slideIndex=n},updateSlide(t,e){const n=e?this.slides.findIndex(r=>r.id===e):this.slideIndex;this.slides[n]={...this.slides[n],...t}},removeSlideProps(t){const{id:e,propName:n}=t,r=this.slides.map(a=>a.id===e?Vr.omit(a,n):a);this.slides=r},deleteSlide(t){const e=Array.isArray(t)?t:[t],n=JSON.parse(JSON.stringify(this.slides)),r=[];for(const o of e){const s=n.findIndex(c=>c.id===o);r.push(s);const l=n[s].sectionTag;if(l){const c=n[s+1];c&&!c.sectionTag&&(delete n[s].sectionTag,n[s+1].sectionTag=l)}n.splice(s,1)}let a=Math.min(...r);const i=n.length-1;a>i&&(a=i),this.slideIndex=a,this.slides=n},updateSlideIndex(t){this.slideIndex=t},addElement(t){const e=Array.isArray(t)?t:[t],r=[...this.slides[this.slideIndex].elements,...e];this.slides[this.slideIndex].elements=r},deleteElement(t){const e=Array.isArray(t)?t:[t],r=this.slides[this.slideIndex].elements.filter(a=>!e.includes(a.id));this.slides[this.slideIndex].elements=r},updateElement(t){const{id:e,props:n,slideId:r}=t,a=typeof e=="string"?[e]:e,i=r?this.slides.findIndex(l=>l.id===r):this.slideIndex,s=this.slides[i].elements.map(l=>a.includes(l.id)?{...l,...n}:l);this.slides[i].elements=s},removeElementProps(t){const{id:e,propName:n}=t,r=typeof n=="string"?[n]:n,a=this.slideIndex,o=this.slides[a].elements.map(s=>s.id===e?Vr.omit(s,r):s);this.slides[a].elements=o}}}),FXe=uFe("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"),QSe=FXe(10),Wt=l8("main",{state:()=>({activeElementIdList:[],handleElementId:"",activeGroupElementId:"",hiddenElementIdList:[],canvasPercentage:90,canvasScale:1,canvasDragged:!1,thumbnailsFocus:!1,editorAreaFocus:!1,disableHotkeys:!1,gridLineSize:0,showRuler:!1,creatingElement:null,creatingCustomShape:!1,toolbarState:xo.SLIDE_DESIGN,clipingImageElementId:"",richTextAttrs:EXe,selectedTableCells:[],isScaling:!1,selectedSlidesIndex:[],dialogForExport:"",databaseId:QSe,textFormatPainter:null,shapeFormatPainter:null,showSelectPanel:!1,showSearchPanel:!1,showNotesPanel:!1,showSymbolPanel:!1,showMarkupPanel:!1,showImageLibPanel:!1}),getters:{activeElementList(t){const n=It().currentSlide;return!n||!n.elements?[]:n.elements.filter(r=>t.activeElementIdList.includes(r.id))},handleElement(t){const n=It().currentSlide;return!n||!n.elements?null:n.elements.find(r=>t.handleElementId===r.id)||null}},actions:{setActiveElementIdList(t){t.length===1?this.handleElementId=t[0]:this.handleElementId="",this.activeElementIdList=t},setHandleElementId(t){this.handleElementId=t},setActiveGroupElementId(t){this.activeGroupElementId=t},setHiddenElementIdList(t){this.hiddenElementIdList=t},setCanvasPercentage(t){this.canvasPercentage=t},setCanvasScale(t){this.canvasScale=t},setCanvasDragged(t){this.canvasDragged=t},setThumbnailsFocus(t){this.thumbnailsFocus=t},setEditorareaFocus(t){this.editorAreaFocus=t},setDisableHotkeysState(t){this.disableHotkeys=t},setGridLineSize(t){this.gridLineSize=t},setRulerState(t){this.showRuler=t},setCreatingElement(t){this.creatingElement=t},setCreatingCustomShapeState(t){this.creatingCustomShape=t},setToolbarState(t){this.toolbarState=t},setClipingImageElementId(t){this.clipingImageElementId=t},setRichtextAttrs(t){this.richTextAttrs=t},setSelectedTableCells(t){this.selectedTableCells=t},setScalingState(t){this.isScaling=t},updateSelectedSlidesIndex(t){this.selectedSlidesIndex=t},setDialogForExport(t){this.dialogForExport=t},setTextFormatPainter(t){this.textFormatPainter=t},setShapeFormatPainter(t){this.shapeFormatPainter=t},setSelectPanelState(t){this.showSelectPanel=t},setSearchPanelState(t){this.showSearchPanel=t},setNotesPanelState(t){this.showNotesPanel=t},setSymbolPanelState(t){this.showSymbolPanel=t},setMarkupPanelState(t){this.showMarkupPanel=t},setImageLibPanelState(t){this.showImageLibPanel=t}}});var KSe={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(cn,function(){var n=function(k,W){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,ue){J.__proto__=ue}||function(J,ue){for(var he in ue)Object.prototype.hasOwnProperty.call(ue,he)&&(J[he]=ue[he])})(k,W)},r=function(){return(r=Object.assign||function(k){for(var W,J=1,ue=arguments.length;J<ue;J++)for(var he in W=arguments[J])Object.prototype.hasOwnProperty.call(W,he)&&(k[he]=W[he]);return k}).apply(this,arguments)};function a(k,W,J){for(var ue,he=0,Re=W.length;he<Re;he++)!ue&&he in W||((ue=ue||Array.prototype.slice.call(W,0,he))[he]=W[he]);return k.concat(ue||Array.prototype.slice.call(W))}var i=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:cn,o=Object.keys,s=Array.isArray;function l(k,W){return typeof W!="object"||o(W).forEach(function(J){k[J]=W[J]}),k}typeof Promise>"u"||i.Promise||(i.Promise=Promise);var c=Object.getPrototypeOf,u={}.hasOwnProperty;function f(k,W){return u.call(k,W)}function d(k,W){typeof W=="function"&&(W=W(c(k))),(typeof Reflect>"u"?o:Reflect.ownKeys)(W).forEach(function(J){p(k,J,W[J])})}var h=Object.defineProperty;function p(k,W,J,ue){h(k,W,l(J&&f(J,"get")&&typeof J.get=="function"?{get:J.get,set:J.set,configurable:!0}:{value:J,configurable:!0,writable:!0},ue))}function v(k){return{from:function(W){return k.prototype=Object.create(W.prototype),p(k.prototype,"constructor",k),{extend:d.bind(null,k.prototype)}}}}var g=Object.getOwnPropertyDescriptor,y=[].slice;function m(k,W,J){return y.call(k,W,J)}function R(k,W){return W(k)}function A(k){if(!k)throw new Error("Assertion Failed")}function x(k){i.setImmediate?setImmediate(k):setTimeout(k,0)}function M(k,W){if(typeof W=="string"&&f(k,W))return k[W];if(!W)return k;if(typeof W!="string"){for(var J=[],ue=0,he=W.length;ue<he;++ue){var Re=M(k,W[ue]);J.push(Re)}return J}var Pe=W.indexOf(".");if(Pe!==-1){var Ie=k[W.substr(0,Pe)];return Ie==null?void 0:M(Ie,W.substr(Pe+1))}}function S(k,W,J){if(k&&W!==void 0&&!("isFrozen"in Object&&Object.isFrozen(k)))if(typeof W!="string"&&"length"in W){A(typeof J!="string"&&"length"in J);for(var ue=0,he=W.length;ue<he;++ue)S(k,W[ue],J[ue])}else{var Re,Pe,Ie=W.indexOf(".");Ie!==-1?(Re=W.substr(0,Ie),(Pe=W.substr(Ie+1))===""?J===void 0?s(k)&&!isNaN(parseInt(Re))?k.splice(Re,1):delete k[Re]:k[Re]=J:S(Ie=!(Ie=k[Re])||!f(k,Re)?k[Re]={}:Ie,Pe,J)):J===void 0?s(k)&&!isNaN(parseInt(W))?k.splice(W,1):delete k[W]:k[W]=J}}function w(k){var W,J={};for(W in k)f(k,W)&&(J[W]=k[W]);return J}var _=[].concat;function T(k){return _.apply([],k)}var Je="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(T([8,16,32,64].map(function(k){return["Int","Uint","Float"].map(function(W){return W+k+"Array"})}))).filter(function(k){return i[k]}),O=new Set(Je.map(function(k){return i[k]})),N=null;function P(k){return N=new WeakMap,k=function W(J){if(!J||typeof J!="object")return J;var ue=N.get(J);if(ue)return ue;if(s(J)){ue=[],N.set(J,ue);for(var he=0,Re=J.length;he<Re;++he)ue.push(W(J[he]))}else if(O.has(J.constructor))ue=J;else{var Pe,Ie=c(J);for(Pe in ue=Ie===Object.prototype?{}:Object.create(Ie),N.set(J,ue),J)f(J,Pe)&&(ue[Pe]=W(J[Pe]))}return ue}(k),N=null,k}var C={}.toString;function E(k){return C.call(k).slice(8,-1)}var F=typeof Symbol<"u"?Symbol.iterator:"@@iterator",Y=typeof F=="symbol"?function(k){var W;return k!=null&&(W=k[F])&&W.apply(k)}:function(){return null};function Q(k,W){return W=k.indexOf(W),0<=W&&k.splice(W,1),0<=W}var K={};function ne(k){var W,J,ue,he;if(arguments.length===1){if(s(k))return k.slice();if(this===K&&typeof k=="string")return[k];if(he=Y(k)){for(J=[];!(ue=he.next()).done;)J.push(ue.value);return J}if(k==null)return[k];if(typeof(W=k.length)!="number")return[k];for(J=new Array(W);W--;)J[W]=k[W];return J}for(W=arguments.length,J=new Array(W);W--;)J[W]=arguments[W];return J}var Z=typeof Symbol<"u"?function(k){return k[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},Ye=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Zo=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Ye),$={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function G(k,W){this.name=k,this.message=W}function ee(k,W){return k+". Errors: "+Object.keys(W).map(function(J){return W[J].toString()}).filter(function(J,ue,he){return he.indexOf(J)===ue}).join(`-`)}function ce(k,W,J,ue){this.failures=W,this.failedKeys=ue,this.successCount=J,this.message=ee(k,W)}function B(k,W){this.name="BulkError",this.failures=Object.keys(W).map(function(J){return W[J]}),this.failuresByPos=W,this.message=ee(k,this.failures)}v(G).from(Error).extend({toString:function(){return this.name+": "+this.message}}),v(ce).from(G),v(B).from(G);var xe=Zo.reduce(function(k,W){return k[W]=W+"Error",k},{}),_e=G,se=Zo.reduce(function(k,W){var J=W+"Error";function ue(he,Re){this.name=J,he?typeof he=="string"?(this.message="".concat(he).concat(Re?`- `+Re:""),this.inner=Re||null):typeof he=="object"&&(this.message="".concat(he.name," ").concat(he.message),this.inner=he):(this.message=$[W]||J,this.inner=null)}return v(ue).from(_e),k[W]=ue,k},{});se.Syntax=SyntaxError,se.Type=TypeError,se.Range=RangeError;var z=Ye.reduce(function(k,W){return k[W+"Error"]=se[W],k},{}),de=Zo.reduce(function(k,W){return["Syntax","Type","Range"].indexOf(W)===-1&&(k[W+"Error"]=se[W]),k},{});function fe(){}function re(k){return k}function X(k,W){return k==null||k===re?W:function(J){return W(k(J))}}function j(k,W){return function(){k.apply(this,arguments),W.apply(this,arguments)}}function oe(k,W){return k===fe?W:function(){var J=k.apply(this,arguments);J!==void 0&&(arguments[0]=J);var ue=this.onsuccess,he=this.onerror;this.onsuccess=null,this.onerror=null;var Re=W.apply(this,arguments);return ue&&(this.onsuccess=this.onsuccess?j(ue,this.onsuccess):ue),he&&(this.onerror=this.onerror?j(he,this.onerror):he),Re!==void 0?Re:J}}function ae(k,W){return k===fe?W:function(){k.apply(this,arguments);var J=this.onsuccess,ue=this.onerror;this.onsuccess=this.onerror=null,W.apply(this,arguments),J&&(this.onsuccess=this.onsuccess?j(J,this.onsuccess):J),ue&&(this.onerror=this.onerror?j(ue,this.onerror):ue)}}function le(k,W){return k===fe?W:function(J){var ue=k.apply(this,arguments);l(J,ue);var he=this.onsuccess,Re=this.onerror;return this.onsuccess=null,this.onerror=null,J=W.apply(this,arguments),he&&(this.onsuccess=this.onsuccess?j(he,this.onsuccess):he),Re&&(this.onerror=this.onerror?j(Re,this.onerror):Re),ue===void 0?J===void 0?void 0:J:l(ue,J)}}function ge(k,W){return k===fe?W:function(){return W.apply(this,arguments)!==!1&&k.apply(this,arguments)}}function Se(k,W){return k===fe?W:function(){var J=k.apply(this,arguments);if(J&&typeof J.then=="function"){for(var ue=this,he=arguments.length,Re=new Array(he);he--;)Re[he]=arguments[he];return J.then(function(){return W.apply(ue,Re)})}return W.apply(this,arguments)}}de.ModifyError=ce,de.DexieError=G,de.BulkError=B;var me=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function ye(k){me=k}var Ve={},De=100,Je=typeof Promise>"u"?[]:function(){var k=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[k,c(k),k];var W=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[W,c(W),k]}(),Ye=Je[0],Zo=Je[1],Je=Je[2],Zo=Zo&&Zo.then,wt=Ye&&Ye.constructor,Lt=!!Je,Ne=function(k,W){it.push([k,W]),ze&&(queueMicrotask(Ys),ze=!1)},Te=!0,ze=!0,He=[],pt=[],Ce=re,ut={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:fe,pgp:!1,env:{},finalize:fe},je=ut,it=[],Pt=0,Yt=[];function dt(k){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var W=this._PSD=je;if(typeof k!="function"){if(k!==Ve)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&En(this,this._value))}this._state=null,this._value=null,++W.ref,function J(ue,he){try{he(function(Re){if(ue._state===null){if(Re===ue)throw new TypeError("A promise cannot be resolved with itself.");var Pe=ue._lib&&eo();Re&&typeof Re.then=="function"?J(ue,function(Ie,Ke){Re instanceof dt?Re._then(Ie,Ke):Re.then(Ie,Ke)}):(ue._state=!0,ue._value=Re,yi(ue)),Pe&&Ei()}},En.bind(null,ue))}catch(Re){En(ue,Re)}}(this,k)}var fn={get:function(){var k=je,W=P0;function J(ue,he){var Re=this,Pe=!k.global&&(k!==je||W!==P0),Ie=Pe&&!vo(),Ke=new dt(function(Ae,Oe){qi(Re,new pn(Cy(ue,k,Pe,Ie),Cy(he,k,Pe,Ie),Ae,Oe,k))});return this._consoleTask&&(Ke._consoleTask=this._consoleTask),Ke}return J.prototype=Ve,J},set:function(k){p(this,"then",k&&k.prototype===Ve?fn:{get:function(){return k},set:fn.set})}};function pn(k,W,J,ue,he){this.onFulfilled=typeof k=="function"?k:null,this.onRejected=typeof W=="function"?W:null,this.resolve=J,this.reject=ue,this.psd=he}function En(k,W){var J,ue;pt.push(W),k._state===null&&(J=k._lib&&eo(),W=Ce(W),k._state=!1,k._value=W,ue=k,He.some(function(he){return he._value===ue._value})||He.push(ue),yi(k),J&&Ei())}function yi(k){var W=k._listeners;k._listeners=[];for(var J=0,ue=W.length;J<ue;++J)qi(k,W[J]);var he=k._PSD;--he.ref||he.finalize(),Pt===0&&(++Pt,Ne(function(){--Pt==0&&Jf()},[]))}function qi(k,W){if(k._state!==null){var J=k._state?W.onFulfilled:W.onRejected;if(J===null)return(k._state?W.resolve:W.reject)(k._value);++W.psd.ref,++Pt,Ne(Ta,[J,k,W])}else k._listeners.push(W)}function Ta(k,W,J){try{var ue,he=W._value;!W._state&&pt.length&&(pt=[]),ue=me&&W._consoleTask?W._consoleTask.run(function(){return k(he)}):k(he),W._state||pt.indexOf(he)!==-1||function(Re){for(var Pe=He.length;Pe;)if(He[--Pe]._value===Re._value)return He.splice(Pe,1)}(W),J.resolve(ue)}catch(Re){J.reject(Re)}finally{--Pt==0&&Jf(),--J.psd.ref||J.psd.finalize()}}function Ys(){go(ut,function(){eo()&&Ei()})}function eo(){var k=Te;return ze=Te=!1,k}function Ei(){var k,W,J;do for(;0<it.length;)for(k=it,it=[],J=k.length,W=0;W<J;++W){var ue=k[W];ue[0].apply(null,ue[1])}while(0<it.length);ze=Te=!0}function Jf(){var k=He;He=[],k.forEach(function(ue){ue._PSD.onunhandled.call(null,ue._value,ue)});for(var W=Yt.slice(0),J=W.length;J;)W[--J]()}function Bs(k){return new dt(Ve,!1,k)}function Vn(k,W){var J=je;return function(){var ue=eo(),he=je;try{return Uo(J,!0),k.apply(this,arguments)}catch(Re){W&&W(Re)}finally{Uo(he,!1),ue&&Ei()}}}d(dt.prototype,{then:fn,_then:function(k,W){qi(this,new pn(null,null,k,W,je))},catch:function(k){if(arguments.length===1)return this.then(null,k);var W=k,J=arguments[1];return typeof W=="function"?this.then(null,function(ue){return(ue instanceof W?J:Bs)(ue)}):this.then(null,function(ue){return(ue&&ue.name===W?J:Bs)(ue)})},finally:function(k){return this.then(function(W){return dt.resolve(k()).then(function(){return W})},function(W){return dt.resolve(k()).then(function(){return Bs(W)})})},timeout:function(k,W){var J=this;return k<1/0?new dt(function(ue,he){var Re=setTimeout(function(){return he(new se.Timeout(W))},k);J.then(ue,he).finally(clearTimeout.bind(null,Re))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&p(dt.prototype,Symbol.toStringTag,"Dexie.Promise"),ut.env=Vh(),d(dt,{all:function(){var k=ne.apply(null,arguments).map(jf);return new dt(function(W,J){k.length===0&&W([]);var ue=k.length;k.forEach(function(he,Re){return dt.resolve(he).then(function(Pe){k[Re]=Pe,--ue||W(k)},J)})})},resolve:function(k){return k instanceof dt?k:k&&typeof k.then=="function"?new dt(function(W,J){k.then(W,J)}):new dt(Ve,!0,k)},reject:Bs,race:function(){var k=ne.apply(null,arguments).map(jf);return new dt(function(W,J){k.map(function(ue){return dt.resolve(ue).then(W,J)})})},PSD:{get:function(){return je},set:function(k){return je=k}},totalEchoes:{get:function(){return P0}},newPSD:Ll,usePSD:go,scheduler:{get:function(){return Ne},set:function(k){Ne=k}},rejectionMapper:{get:function(){return Ce},set:function(k){Ce=k}},follow:function(k,W){return new dt(function(J,ue){return Ll(function(he,Re){var Pe=je;Pe.unhandleds=[],Pe.onunhandled=Re,Pe.finalize=j(function(){var Ie,Ke=this;Ie=function(){Ke.unhandleds.length===0?he():Re(Ke.unhandleds[0])},Yt.push(function Ae(){Ie(),Yt.splice(Yt.indexOf(Ae),1)}),++Pt,Ne(function(){--Pt==0&&Jf()},[])},Pe.finalize),k()},W,J,ue)})}}),wt&&(wt.allSettled&&p(dt,"allSettled",function(){var k=ne.apply(null,arguments).map(jf);return new dt(function(W){k.length===0&&W([]);var J=k.length,ue=new Array(J);k.forEach(function(he,Re){return dt.resolve(he).then(function(Pe){return ue[Re]={status:"fulfilled",value:Pe}},function(Pe){return ue[Re]={status:"rejected",reason:Pe}}).then(function(){return--J||W(ue)})})})}),wt.any&&typeof AggregateError<"u"&&p(dt,"any",function(){var k=ne.apply(null,arguments).map(jf);return new dt(function(W,J){k.length===0&&J(new AggregateError([]));var ue=k.length,he=new Array(ue);k.forEach(function(Re,Pe){return dt.resolve(Re).then(function(Ie){return W(Ie)},function(Ie){he[Pe]=Ie,--ue||J(new AggregateError(he))})})})}),wt.withResolvers&&(dt.withResolvers=wt.withResolvers));var Ar={awaits:0,echoes:0,id:0},Xh=0,Zs=[],Dh=0,P0=0,jS=0;function Ll(k,W,J,ue){var he=je,Re=Object.create(he);return Re.parent=he,Re.ref=0,Re.global=!1,Re.id=++jS,ut.env,Re.env=Lt?{Promise:dt,PromiseProp:{value:dt,configurable:!0,writable:!0},all:dt.all,race:dt.race,allSettled:dt.allSettled,any:dt.any,resolve:dt.resolve,reject:dt.reject}:{},W&&l(Re,W),++he.ref,Re.finalize=function(){--this.parent.ref||this.parent.finalize()},ue=go(Re,k,J,ue),Re.ref===0&&Re.finalize(),ue}function Mc(){return Ar.id||(Ar.id=++Xh),++Ar.awaits,Ar.echoes+=De,Ar.id}function vo(){return!!Ar.awaits&&(--Ar.awaits==0&&(Ar.id=0),Ar.echoes=Ar.awaits*De,!0)}function jf(k){return Ar.echoes&&k&&k.constructor===wt?(Mc(),k.then(function(W){return vo(),W},function(W){return vo(),$r(W)})):k}function C0(){var k=Zs[Zs.length-1];Zs.pop(),Uo(k,!1)}function Uo(k,W){var J,ue=je;(W?!Ar.echoes||Dh++&&k===je:!Dh||--Dh&&k===je)||queueMicrotask(W?(function(he){++P0,Ar.echoes&&--Ar.echoes!=0||(Ar.echoes=Ar.awaits=Ar.id=0),Zs.push(je),Uo(he,!0)}).bind(null,k):C0),k!==je&&(je=k,ue===ut&&(ut.env=Vh()),Lt&&(J=ut.env.Promise,W=k.env,(ue.global||k.global)&&(Object.defineProperty(i,"Promise",W.PromiseProp),J.all=W.all,J.race=W.race,J.resolve=W.resolve,J.reject=W.reject,W.allSettled&&(J.allSettled=W.allSettled),W.any&&(J.any=W.any))))}function Vh(){var k=i.Promise;return Lt?{Promise:k,PromiseProp:Object.getOwnPropertyDescriptor(i,"Promise"),all:k.all,race:k.race,allSettled:k.allSettled,any:k.any,resolve:k.resolve,reject:k.reject}:{}}function go(k,W,J,ue,he){var Re=je;try{return Uo(k,!0),W(J,ue,he)}finally{Uo(Re,!1)}}function Cy(k,W,J,ue){return typeof k!="function"?k:function(){var he=je;J&&Mc(),Uo(W,!0);try{return k.apply(this,arguments)}finally{Uo(he,!1),ue&&queueMicrotask(vo)}}}function Wo(k){Promise===wt&&Ar.echoes===0?Dh===0?k():enqueueNativeMicroTask(k):setTimeout(k,0)}(""+Zo).indexOf("[native code]")===-1&&(Mc=vo=fe);var $r=dt.reject,Pu="",Yo="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",gg="String expected.",Cu=[],Uh="__dbnames",Wh="readonly",Yh="readwrite";function Tl(k,W){return k?W?function(){return k.apply(this,arguments)&&W.apply(this,arguments)}:k:W}var mg={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function _c(k){return typeof k!="string"||/\./.test(k)?function(W){return W}:function(W){return W[k]===void 0&&k in W&&delete(W=P(W))[k],W}}function Ny(){throw se.Type()}function ar(k,W){try{var J=Nu(k),ue=Nu(W);if(J!==ue)return J==="Array"?1:ue==="Array"?-1:J==="binary"?1:ue==="binary"?-1:J==="string"?1:ue==="string"?-1:J==="Date"?1:ue!=="Date"?NaN:-1;switch(J){case"number":case"Date":case"string":return W<k?1:k<W?-1:0;case"binary":return function(he,Re){for(var Pe=he.length,Ie=Re.length,Ke=Pe<Ie?Pe:Ie,Ae=0;Ae<Ke;++Ae)if(he[Ae]!==Re[Ae])return he[Ae]<Re[Ae]?-1:1;return Pe===Ie?0:Pe<Ie?-1:1}(Ol(k),Ol(W));case"Array":return function(he,Re){for(var Pe=he.length,Ie=Re.length,Ke=Pe<Ie?Pe:Ie,Ae=0;Ae<Ke;++Ae){var Oe=ar(he[Ae],Re[Ae]);if(Oe!==0)return Oe}return Pe===Ie?0:Pe<Ie?-1:1}(k,W)}}catch{}return NaN}function Nu(k){var W=typeof k;return W!="object"?W:ArrayBuffer.isView(k)?"binary":(k=E(k),k==="ArrayBuffer"?"binary":k)}function Ol(k){return k instanceof Uint8Array?k:ArrayBuffer.isView(k)?new Uint8Array(k.buffer,k.byteOffset,k.byteLength):new Uint8Array(k)}var qf=(sr.prototype._trans=function(k,W,J){var ue=this._tx||je.trans,he=this.name,Re=me&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(k==="readonly"?"read":"write"," ").concat(this.name));function Pe(Ae,Oe,be){if(!be.schema[he])throw new se.NotFound("Table "+he+" not part of transaction");return W(be.idbtrans,be)}var Ie=eo();try{var Ke=ue&&ue.db._novip===this.db._novip?ue===je.trans?ue._promise(k,Pe,J):Ll(function(){return ue._promise(k,Pe,J)},{trans:ue,transless:je.transless||je}):function Ae(Oe,be,Xe,ke){if(Oe.idbdb&&(Oe._state.openComplete||je.letThrough||Oe._vip)){var Ze=Oe._createTransaction(be,Xe,Oe._dbSchema);try{Ze.create(),Oe._state.PR1398_maxLoop=3}catch($e){return $e.name===xe.InvalidState&&Oe.isOpen()&&0<--Oe._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),Oe.close({disableAutoOpen:!1}),Oe.open().then(function(){return Ae(Oe,be,Xe,ke)})):$r($e)}return Ze._promise(be,function($e,Be){return Ll(function(){return je.trans=Ze,ke($e,Be,Ze)})}).then(function($e){if(be==="readwrite")try{Ze.idbtrans.commit()}catch{}return be==="readonly"?$e:Ze._completion.then(function(){return $e})})}if(Oe._state.openComplete)return $r(new se.DatabaseClosed(Oe._state.dbOpenError));if(!Oe._state.isBeingOpened){if(!Oe._state.autoOpen)return $r(new se.DatabaseClosed);Oe.open().catch(fe)}return Oe._state.dbReadyPromise.then(function(){return Ae(Oe,be,Xe,ke)})}(this.db,k,[this.name],Pe);return Re&&(Ke._consoleTask=Re,Ke=Ke.catch(function(Ae){return console.trace(Ae),$r(Ae)})),Ke}finally{Ie&&Ei()}},sr.prototype.get=function(k,W){var J=this;return k&&k.constructor===Object?this.where(k).first(W):k==null?$r(new se.Type("Invalid argument to Table.get()")):this._trans("readonly",function(ue){return J.core.get({trans:ue,key:k}).then(function(he){return J.hook.reading.fire(he)})}).then(W)},sr.prototype.where=function(k){if(typeof k=="string")return new this.db.WhereClause(this,k);if(s(k))return new this.db.WhereClause(this,"[".concat(k.join("+"),"]"));var W=o(k);if(W.length===1)return this.where(W[0]).equals(k[W[0]]);var J=this.schema.indexes.concat(this.schema.primKey).filter(function(Ie){if(Ie.compound&&W.every(function(Ae){return 0<=Ie.keyPath.indexOf(Ae)})){for(var Ke=0;Ke<W.length;++Ke)if(W.indexOf(Ie.keyPath[Ke])===-1)return!1;return!0}return!1}).sort(function(Ie,Ke){return Ie.keyPath.length-Ke.keyPath.length})[0];if(J&&this.db._maxKey!==Pu){var Re=J.keyPath.slice(0,W.length);return this.where(Re).equals(Re.map(function(Ke){return k[Ke]}))}!J&&me&&console.warn("The query ".concat(JSON.stringify(k)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(W.join("+"),"]"));var ue=this.schema.idxByName;function he(Ie,Ke){return ar(Ie,Ke)===0}var Pe=W.reduce(function(be,Ke){var Ae=be[0],Oe=be[1],be=ue[Ke],Xe=k[Ke];return[Ae||be,Ae||!be?Tl(Oe,be&&be.multi?function(ke){return ke=M(ke,Ke),s(ke)&&ke.some(function(Ze){return he(Xe,Ze)})}:function(ke){return he(Xe,M(ke,Ke))}):Oe]},[null,null]),Re=Pe[0],Pe=Pe[1];return Re?this.where(Re.name).equals(k[Re.keyPath]).filter(Pe):J?this.filter(Pe):this.where(W).equals("")},sr.prototype.filter=function(k){return this.toCollection().and(k)},sr.prototype.count=function(k){return this.toCollection().count(k)},sr.prototype.offset=function(k){return this.toCollection().offset(k)},sr.prototype.limit=function(k){return this.toCollection().limit(k)},sr.prototype.each=function(k){return this.toCollection().each(k)},sr.prototype.toArray=function(k){return this.toCollection().toArray(k)},sr.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},sr.prototype.orderBy=function(k){return new this.db.Collection(new this.db.WhereClause(this,s(k)?"[".concat(k.join("+"),"]"):k))},sr.prototype.reverse=function(){return this.toCollection().reverse()},sr.prototype.mapToClass=function(k){var W,J=this.db,ue=this.name;function he(){return W!==null&&W.apply(this,arguments)||this}(this.schema.mappedClass=k).prototype instanceof Ny&&(function(Ke,Ae){if(typeof Ae!="function"&&Ae!==null)throw new TypeError("Class extends value "+String(Ae)+" is not a constructor or null");function Oe(){this.constructor=Ke}n(Ke,Ae),Ke.prototype=Ae===null?Object.create(Ae):(Oe.prototype=Ae.prototype,new Oe)}(he,W=k),Object.defineProperty(he.prototype,"db",{get:function(){return J},enumerable:!1,configurable:!0}),he.prototype.table=function(){return ue},k=he);for(var Re=new Set,Pe=k.prototype;Pe;Pe=c(Pe))Object.getOwnPropertyNames(Pe).forEach(function(Ke){return Re.add(Ke)});function Ie(Ke){if(!Ke)return Ke;var Ae,Oe=Object.create(k.prototype);for(Ae in Ke)if(!Re.has(Ae))try{Oe[Ae]=Ke[Ae]}catch{}return Oe}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=Ie,this.hook("reading",Ie),k},sr.prototype.defineClass=function(){return this.mapToClass(function(k){l(this,k)})},sr.prototype.add=function(k,W){var J=this,ue=this.schema.primKey,he=ue.auto,Re=ue.keyPath,Pe=k;return Re&&he&&(Pe=_c(Re)(k)),this._trans("readwrite",function(Ie){return J.core.mutate({trans:Ie,type:"add",keys:W!=null?[W]:null,values:[Pe]})}).then(function(Ie){return Ie.numFailures?dt.reject(Ie.failures[0]):Ie.lastResult}).then(function(Ie){if(Re)try{S(k,Re,Ie)}catch{}return Ie})},sr.prototype.update=function(k,W){return typeof k!="object"||s(k)?this.where(":id").equals(k).modify(W):(k=M(k,this.schema.primKey.keyPath),k===void 0?$r(new se.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(k).modify(W))},sr.prototype.put=function(k,W){var J=this,ue=this.schema.primKey,he=ue.auto,Re=ue.keyPath,Pe=k;return Re&&he&&(Pe=_c(Re)(k)),this._trans("readwrite",function(Ie){return J.core.mutate({trans:Ie,type:"put",values:[Pe],keys:W!=null?[W]:null})}).then(function(Ie){return Ie.numFailures?dt.reject(Ie.failures[0]):Ie.lastResult}).then(function(Ie){if(Re)try{S(k,Re,Ie)}catch{}return Ie})},sr.prototype.delete=function(k){var W=this;return this._trans("readwrite",function(J){return W.core.mutate({trans:J,type:"delete",keys:[k]})}).then(function(J){return J.numFailures?dt.reject(J.failures[0]):void 0})},sr.prototype.clear=function(){var k=this;return this._trans("readwrite",function(W){return k.core.mutate({trans:W,type:"deleteRange",range:mg})}).then(function(W){return W.numFailures?dt.reject(W.failures[0]):void 0})},sr.prototype.bulkGet=function(k){var W=this;return this._trans("readonly",function(J){return W.core.getMany({keys:k,trans:J}).then(function(ue){return ue.map(function(he){return W.hook.reading.fire(he)})})})},sr.prototype.bulkAdd=function(k,W,J){var ue=this,he=Array.isArray(W)?W:void 0,Re=(J=J||(he?void 0:W))?J.allKeys:void 0;return this._trans("readwrite",function(Pe){var Ae=ue.schema.primKey,Ie=Ae.auto,Ae=Ae.keyPath;if(Ae&&he)throw new se.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(he&&he.length!==k.length)throw new se.InvalidArgument("Arguments objects and keys must have the same length");var Ke=k.length,Ae=Ae&&Ie?k.map(_c(Ae)):k;return ue.core.mutate({trans:Pe,type:"add",keys:he,values:Ae,wantResults:Re}).then(function(Ze){var be=Ze.numFailures,Xe=Ze.results,ke=Ze.lastResult,Ze=Ze.failures;if(be===0)return Re?Xe:ke;throw new B("".concat(ue.name,".bulkAdd(): ").concat(be," of ").concat(Ke," operations failed"),Ze)})})},sr.prototype.bulkPut=function(k,W,J){var ue=this,he=Array.isArray(W)?W:void 0,Re=(J=J||(he?void 0:W))?J.allKeys:void 0;return this._trans("readwrite",function(Pe){var Ae=ue.schema.primKey,Ie=Ae.auto,Ae=Ae.keyPath;if(Ae&&he)throw new se.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(he&&he.length!==k.length)throw new se.InvalidArgument("Arguments objects and keys must have the same length");var Ke=k.length,Ae=Ae&&Ie?k.map(_c(Ae)):k;return ue.core.mutate({trans:Pe,type:"put",keys:he,values:Ae,wantResults:Re}).then(function(Ze){var be=Ze.numFailures,Xe=Ze.results,ke=Ze.lastResult,Ze=Ze.failures;if(be===0)return Re?Xe:ke;throw new B("".concat(ue.name,".bulkPut(): ").concat(be," of ").concat(Ke," operations failed"),Ze)})})},sr.prototype.bulkUpdate=function(k){var W=this,J=this.core,ue=k.map(function(Pe){return Pe.key}),he=k.map(function(Pe){return Pe.changes}),Re=[];return this._trans("readwrite",function(Pe){return J.getMany({trans:Pe,keys:ue,cache:"clone"}).then(function(Ie){var Ke=[],Ae=[];k.forEach(function(be,Xe){var ke=be.key,Ze=be.changes,$e=Ie[Xe];if($e){for(var Be=0,ot=Object.keys(Ze);Be<ot.length;Be++){var ft=ot[Be],st=Ze[ft];if(ft===W.schema.primKey.keyPath){if(ar(st,ke)!==0)throw new se.Constraint("Cannot update primary key in bulkUpdate()")}else S($e,ft,st)}Re.push(Xe),Ke.push(ke),Ae.push($e)}});var Oe=Ke.length;return J.mutate({trans:Pe,type:"put",keys:Ke,values:Ae,updates:{keys:ue,changeSpecs:he}}).then(function(be){var Xe=be.numFailures,ke=be.failures;if(Xe===0)return Oe;for(var Ze=0,$e=Object.keys(ke);Ze<$e.length;Ze++){var Be,ot=$e[Ze],ft=Re[Number(ot)];ft!=null&&(Be=ke[ot],delete ke[ot],ke[ft]=Be)}throw new B("".concat(W.name,".bulkUpdate(): ").concat(Xe," of ").concat(Oe," operations failed"),ke)})})})},sr.prototype.bulkDelete=function(k){var W=this,J=k.length;return this._trans("readwrite",function(ue){return W.core.mutate({trans:ue,type:"delete",keys:k})}).then(function(Pe){var he=Pe.numFailures,Re=Pe.lastResult,Pe=Pe.failures;if(he===0)return Re;throw new B("".concat(W.name,".bulkDelete(): ").concat(he," of ").concat(J," operations failed"),Pe)})},sr);function sr(){}function ed(k){function W(Pe,Ie){if(Ie){for(var Ke=arguments.length,Ae=new Array(Ke-1);--Ke;)Ae[Ke-1]=arguments[Ke];return J[Pe].subscribe.apply(null,Ae),k}if(typeof Pe=="string")return J[Pe]}var J={};W.addEventType=Re;for(var ue=1,he=arguments.length;ue<he;++ue)Re(arguments[ue]);return W;function Re(Pe,Ie,Ke){if(typeof Pe!="object"){var Ae;Ie=Ie||ge;var Oe={subscribers:[],fire:Ke=Ke||fe,subscribe:function(be){Oe.subscribers.indexOf(be)===-1&&(Oe.subscribers.push(be),Oe.fire=Ie(Oe.fire,be))},unsubscribe:function(be){Oe.subscribers=Oe.subscribers.filter(function(Xe){return Xe!==be}),Oe.fire=Oe.subscribers.reduce(Ie,Ke)}};return J[Pe]=W[Pe]=Oe}o(Ae=Pe).forEach(function(be){var Xe=Ae[be];if(s(Xe))Re(be,Ae[be][0],Ae[be][1]);else{if(Xe!=="asap")throw new se.InvalidArgument("Invalid event config");var ke=Re(be,re,function(){for(var Ze=arguments.length,$e=new Array(Ze);Ze--;)$e[Ze]=arguments[Ze];ke.subscribers.forEach(function(Be){x(function(){Be.apply(null,$e)})})})}})}}function Iu(k,W){return v(W).from({prototype:k}),W}function Qs(k,W){return!(k.filter||k.algorithm||k.or)&&(W?k.justLimit:!k.replayFilter)}function Bh(k,W){k.filter=Tl(k.filter,W)}function td(k,W,J){var ue=k.replayFilter;k.replayFilter=ue?function(){return Tl(ue(),W())}:W,k.justLimit=J&&!ue}function nd(k,W){if(k.isPrimKey)return W.primaryKey;var J=W.getIndexByKeyPath(k.index);if(!J)throw new se.Schema("KeyPath "+k.index+" on object store "+W.name+" is not indexed");return J}function rd(k,W,J){var ue=nd(k,W.schema);return W.openCursor({trans:J,values:!k.keysOnly,reverse:k.dir==="prev",unique:!!k.unique,query:{index:ue,range:k.range}})}function ku(k,W,J,ue){var he=k.replayFilter?Tl(k.filter,k.replayFilter()):k.filter;if(k.or){var Re={},Pe=function(Ie,Ke,Ae){var Oe,be;he&&!he(Ke,Ae,function(Xe){return Ke.stop(Xe)},function(Xe){return Ke.fail(Xe)})||((be=""+(Oe=Ke.primaryKey))=="[object ArrayBuffer]"&&(be=""+new Uint8Array(Oe)),f(Re,be)||(Re[be]=!0,W(Ie,Ke,Ae)))};return Promise.all([k.or._iterate(Pe,J),yg(rd(k,ue,J),k.algorithm,Pe,!k.keysOnly&&k.valueMapper)])}return yg(rd(k,ue,J),Tl(k.algorithm,he),W,!k.keysOnly&&k.valueMapper)}function yg(k,W,J,ue){var he=Vn(ue?function(Re,Pe,Ie){return J(ue(Re),Pe,Ie)}:J);return k.then(function(Re){if(Re)return Re.start(function(){var Pe=function(){return Re.continue()};W&&!W(Re,function(Ie){return Pe=Ie},function(Ie){Re.stop(Ie),Pe=fe},function(Ie){Re.fail(Ie),Pe=fe})||he(Re.value,Re,function(Ie){return Pe=Ie}),Pe()})})}var Eu=(ad.prototype.execute=function(k){var W=this["@@propmod"];if(W.add!==void 0){var J=W.add;if(s(J))return a(a([],s(k)?k:[],!0),J).sort();if(typeof J=="number")return(Number(k)||0)+J;if(typeof J=="bigint")try{return BigInt(k)+J}catch{return BigInt(0)+J}throw new TypeError("Invalid term ".concat(J))}if(W.remove!==void 0){var ue=W.remove;if(s(ue))return s(k)?k.filter(function(he){return!ue.includes(he)}).sort():[];if(typeof ue=="number")return Number(k)-ue;if(typeof ue=="bigint")try{return BigInt(k)-ue}catch{return BigInt(0)-ue}throw new TypeError("Invalid subtrahend ".concat(ue))}return J=(J=W.replacePrefix)===null||J===void 0?void 0:J[0],J&&typeof k=="string"&&k.startsWith(J)?W.replacePrefix[1]+k.substring(J.length):k},ad);function ad(k){this["@@propmod"]=k}var Ag=(nr.prototype._read=function(k,W){var J=this._ctx;return J.error?J.table._trans(null,$r.bind(null,J.error)):J.table._trans("readonly",k).then(W)},nr.prototype._write=function(k){var W=this._ctx;return W.error?W.table._trans(null,$r.bind(null,W.error)):W.table._trans("readwrite",k,"locked")},nr.prototype._addAlgorithm=function(k){var W=this._ctx;W.algorithm=Tl(W.algorithm,k)},nr.prototype._iterate=function(k,W){return ku(this._ctx,k,W,this._ctx.table.core)},nr.prototype.clone=function(k){var W=Object.create(this.constructor.prototype),J=Object.create(this._ctx);return k&&l(J,k),W._ctx=J,W},nr.prototype.raw=function(){return this._ctx.valueMapper=null,this},nr.prototype.each=function(k){var W=this._ctx;return this._read(function(J){return ku(W,k,J,W.table.core)})},nr.prototype.count=function(k){var W=this;return this._read(function(J){var ue=W._ctx,he=ue.table.core;if(Qs(ue,!0))return he.count({trans:J,query:{index:nd(ue,he.schema),range:ue.range}}).then(function(Pe){return Math.min(Pe,ue.limit)});var Re=0;return ku(ue,function(){return++Re,!1},J,he).then(function(){return Re})}).then(k)},nr.prototype.sortBy=function(k,W){var J=k.split(".").reverse(),ue=J[0],he=J.length-1;function Re(Ke,Ae){return Ae?Re(Ke[J[Ae]],Ae-1):Ke[ue]}var Pe=this._ctx.dir==="next"?1:-1;function Ie(Ke,Ae){return ar(Re(Ke,he),Re(Ae,he))*Pe}return this.toArray(function(Ke){return Ke.sort(Ie)}).then(W)},nr.prototype.toArray=function(k){var W=this;return this._read(function(J){var ue=W._ctx;if(ue.dir==="next"&&Qs(ue,!0)&&0<ue.limit){var he=ue.valueMapper,Re=nd(ue,ue.table.core.schema);return ue.table.core.query({trans:J,limit:ue.limit,values:!0,query:{index:Re,range:ue.range}}).then(function(Ie){return Ie=Ie.result,he?Ie.map(he):Ie})}var Pe=[];return ku(ue,function(Ie){return Pe.push(Ie)},J,ue.table.core).then(function(){return Pe})},k)},nr.prototype.offset=function(k){var W=this._ctx;return k<=0||(W.offset+=k,Qs(W)?td(W,function(){var J=k;return function(ue,he){return J===0||(J===1?--J:he(function(){ue.advance(J),J=0}),!1)}}):td(W,function(){var J=k;return function(){return--J<0}})),this},nr.prototype.limit=function(k){return this._ctx.limit=Math.min(this._ctx.limit,k),td(this._ctx,function(){var W=k;return function(J,ue,he){return--W<=0&&ue(he),0<=W}},!0),this},nr.prototype.until=function(k,W){return Bh(this._ctx,function(J,ue,he){return!k(J.value)||(ue(he),W)}),this},nr.prototype.first=function(k){return this.limit(1).toArray(function(W){return W[0]}).then(k)},nr.prototype.last=function(k){return this.reverse().first(k)},nr.prototype.filter=function(k){var W;return Bh(this._ctx,function(J){return k(J.value)}),(W=this._ctx).isMatch=Tl(W.isMatch,k),this},nr.prototype.and=function(k){return this.filter(k)},nr.prototype.or=function(k){return new this.db.WhereClause(this._ctx.table,k,this)},nr.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},nr.prototype.desc=function(){return this.reverse()},nr.prototype.eachKey=function(k){var W=this._ctx;return W.keysOnly=!W.isMatch,this.each(function(J,ue){k(ue.key,ue)})},nr.prototype.eachUniqueKey=function(k){return this._ctx.unique="unique",this.eachKey(k)},nr.prototype.eachPrimaryKey=function(k){var W=this._ctx;return W.keysOnly=!W.isMatch,this.each(function(J,ue){k(ue.primaryKey,ue)})},nr.prototype.keys=function(k){var W=this._ctx;W.keysOnly=!W.isMatch;var J=[];return this.each(function(ue,he){J.push(he.key)}).then(function(){return J}).then(k)},nr.prototype.primaryKeys=function(k){var W=this._ctx;if(W.dir==="next"&&Qs(W,!0)&&0<W.limit)return this._read(function(ue){var he=nd(W,W.table.core.schema);return W.table.core.query({trans:ue,values:!1,limit:W.limit,query:{index:he,range:W.range}})}).then(function(ue){return ue.result}).then(k);W.keysOnly=!W.isMatch;var J=[];return this.each(function(ue,he){J.push(he.primaryKey)}).then(function(){return J}).then(k)},nr.prototype.uniqueKeys=function(k){return this._ctx.unique="unique",this.keys(k)},nr.prototype.firstKey=function(k){return this.limit(1).keys(function(W){return W[0]}).then(k)},nr.prototype.lastKey=function(k){return this.reverse().firstKey(k)},nr.prototype.distinct=function(){var k=this._ctx,k=k.index&&k.table.schema.idxByName[k.index];if(!k||!k.multi)return this;var W={};return Bh(this._ctx,function(he){var ue=he.primaryKey.toString(),he=f(W,ue);return W[ue]=!0,!he}),this},nr.prototype.modify=function(k){var W=this,J=this._ctx;return this._write(function(ue){var he,Re,Pe;Pe=typeof k=="function"?k:(he=o(k),Re=he.length,function(Be){for(var ot=!1,ft=0;ft<Re;++ft){var st=he[ft],Rt=k[st],Ft=M(Be,st);Rt instanceof Eu?(S(Be,st,Rt.execute(Ft)),ot=!0):Ft!==Rt&&(S(Be,st,Rt),ot=!0)}return ot});var Ie=J.table.core,be=Ie.schema.primaryKey,Ke=be.outbound,Ae=be.extractKey,Oe=200,be=W.db._options.modifyChunkSize;be&&(Oe=typeof be=="object"?be[Ie.name]||be["*"]||200:be);function Xe(Be,st){var ft=st.failures,st=st.numFailures;Ze+=Be-st;for(var Rt=0,Ft=o(ft);Rt<Ft.length;Rt++){var Ut=Ft[Rt];ke.push(ft[Ut])}}var ke=[],Ze=0,$e=[];return W.clone().primaryKeys().then(function(Be){function ot(st){var Rt=Math.min(Oe,Be.length-st);return Ie.getMany({trans:ue,keys:Be.slice(st,st+Rt),cache:"immutable"}).then(function(Ft){for(var Ut=[],kt=[],Dt=Ke?[]:null,Tt=[],Bt=0;Bt<Rt;++Bt){var zt=Ft[Bt],Mn={value:P(zt),primKey:Be[st+Bt]};Pe.call(Mn,Mn.value,Mn)!==!1&&(Mn.value==null?Tt.push(Be[st+Bt]):Ke||ar(Ae(zt),Ae(Mn.value))===0?(kt.push(Mn.value),Ke&&Dt.push(Be[st+Bt])):(Tt.push(Be[st+Bt]),Ut.push(Mn.value)))}return Promise.resolve(0<Ut.length&&Ie.mutate({trans:ue,type:"add",values:Ut}).then(function(Un){for(var Wn in Un.failures)Tt.splice(parseInt(Wn),1);Xe(Ut.length,Un)})).then(function(){return(0<kt.length||ft&&typeof k=="object")&&Ie.mutate({trans:ue,type:"put",keys:Dt,values:kt,criteria:ft,changeSpec:typeof k!="function"&&k,isAdditionalChunk:0<st}).then(function(Un){return Xe(kt.length,Un)})}).then(function(){return(0<Tt.length||ft&&k===Zh)&&Ie.mutate({trans:ue,type:"delete",keys:Tt,criteria:ft,isAdditionalChunk:0<st}).then(function(Un){return Xe(Tt.length,Un)})}).then(function(){return Be.length>st+Rt&&ot(st+Oe)})})}var ft=Qs(J)&&J.limit===1/0&&(typeof k!="function"||k===Zh)&&{index:J.index,range:J.range};return ot(0).then(function(){if(0<ke.length)throw new ce("Error modifying one or more objects",ke,Ze,$e);return Be.length})})})},nr.prototype.delete=function(){var k=this._ctx,W=k.range;return Qs(k)&&(k.isPrimKey||W.type===3)?this._write(function(J){var ue=k.table.core.schema.primaryKey,he=W;return k.table.core.count({trans:J,query:{index:ue,range:he}}).then(function(Re){return k.table.core.mutate({trans:J,type:"deleteRange",range:he}).then(function(Pe){var Ie=Pe.failures;if(Pe.lastResult,Pe.results,Pe=Pe.numFailures,Pe)throw new ce("Could not delete some values",Object.keys(Ie).map(function(Ke){return Ie[Ke]}),Re-Pe);return Re-Pe})})}):this.modify(Zh)},nr);function nr(){}var Zh=function(k,W){return W.value=null};function Iy(k,W){return k<W?-1:k===W?0:1}function N0(k,W){return W<k?-1:k===W?0:1}function la(k,W,J){return k=k instanceof bg?new k.Collection(k):k,k._ctx.error=new(J||TypeError)(W),k}function Fi(k){return new k.Collection(k,function(){return Rg("")}).limit(0)}function id(k,W,J,ue){var he,Re,Pe,Ie,Ke,Ae,Oe,be=J.length;if(!J.every(function(Ze){return typeof Ze=="string"}))return la(k,gg);function Xe(Ze){he=Ze==="next"?function(Be){return Be.toUpperCase()}:function(Be){return Be.toLowerCase()},Re=Ze==="next"?function(Be){return Be.toLowerCase()}:function(Be){return Be.toUpperCase()},Pe=Ze==="next"?Iy:N0;var $e=J.map(function(Be){return{lower:Re(Be),upper:he(Be)}}).sort(function(Be,ot){return Pe(Be.lower,ot.lower)});Ie=$e.map(function(Be){return Be.upper}),Ke=$e.map(function(Be){return Be.lower}),Oe=(Ae=Ze)==="next"?"":ue}Xe("next"),k=new k.Collection(k,function(){return zr(Ie[0],Ke[be-1]+ue)}),k._ondirectionchange=function(Ze){Xe(Ze)};var ke=0;return k._addAlgorithm(function(Ze,$e,Be){var ot=Ze.key;if(typeof ot!="string")return!1;var ft=Re(ot);if(W(ft,Ke,ke))return!0;for(var st=null,Rt=ke;Rt<be;++Rt){var Ft=function(Ut,kt,Dt,Tt,Bt,zt){for(var Mn=Math.min(Ut.length,Tt.length),Un=-1,Wn=0;Wn<Mn;++Wn){var Di=kt[Wn];if(Di!==Tt[Wn])return Bt(Ut[Wn],Dt[Wn])<0?Ut.substr(0,Wn)+Dt[Wn]+Dt.substr(Wn+1):Bt(Ut[Wn],Tt[Wn])<0?Ut.substr(0,Wn)+Tt[Wn]+Dt.substr(Wn+1):0<=Un?Ut.substr(0,Un)+kt[Un]+Dt.substr(Un+1):null;Bt(Ut[Wn],Di)<0&&(Un=Wn)}return Mn<Tt.length&&zt==="next"?Ut+Dt.substr(Ut.length):Mn<Ut.length&&zt==="prev"?Ut.substr(0,Dt.length):Un<0?null:Ut.substr(0,Un)+Tt[Un]+Dt.substr(Un+1)}(ot,ft,Ie[Rt],Ke[Rt],Pe,Ae);Ft===null&&st===null?ke=Rt+1:(st===null||0<Pe(st,Ft))&&(st=Ft)}return $e(st!==null?function(){Ze.continue(st+Oe)}:Be),!1}),k}function zr(k,W,J,ue){return{type:2,lower:k,upper:W,lowerOpen:J,upperOpen:ue}}function Rg(k){return{type:1,lower:k,upper:k}}var bg=(Object.defineProperty(Fa.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),Fa.prototype.between=function(k,W,J,ue){J=J!==!1,ue=ue===!0;try{return 0<this._cmp(k,W)||this._cmp(k,W)===0&&(J||ue)&&(!J||!ue)?Fi(this):new this.Collection(this,function(){return zr(k,W,!J,!ue)})}catch{return la(this,Yo)}},Fa.prototype.equals=function(k){return k==null?la(this,Yo):new this.Collection(this,function(){return Rg(k)})},Fa.prototype.above=function(k){return k==null?la(this,Yo):new this.Collection(this,function(){return zr(k,void 0,!0)})},Fa.prototype.aboveOrEqual=function(k){return k==null?la(this,Yo):new this.Collection(this,function(){return zr(k,void 0,!1)})},Fa.prototype.below=function(k){return k==null?la(this,Yo):new this.Collection(this,function(){return zr(void 0,k,!1,!0)})},Fa.prototype.belowOrEqual=function(k){return k==null?la(this,Yo):new this.Collection(this,function(){return zr(void 0,k)})},Fa.prototype.startsWith=function(k){return typeof k!="string"?la(this,gg):this.between(k,k+Pu,!0,!0)},Fa.prototype.startsWithIgnoreCase=function(k){return k===""?this.startsWith(k):id(this,function(W,J){return W.indexOf(J[0])===0},[k],Pu)},Fa.prototype.equalsIgnoreCase=function(k){return id(this,function(W,J){return W===J[0]},[k],"")},Fa.prototype.anyOfIgnoreCase=function(){var k=ne.apply(K,arguments);return k.length===0?Fi(this):id(this,function(W,J){return J.indexOf(W)!==-1},k,"")},Fa.prototype.startsWithAnyOfIgnoreCase=function(){var k=ne.apply(K,arguments);return k.length===0?Fi(this):id(this,function(W,J){return J.some(function(ue){return W.indexOf(ue)===0})},k,Pu)},Fa.prototype.anyOf=function(){var k=this,W=ne.apply(K,arguments),J=this._cmp;try{W.sort(J)}catch{return la(this,Yo)}if(W.length===0)return Fi(this);var ue=new this.Collection(this,function(){return zr(W[0],W[W.length-1])});ue._ondirectionchange=function(Re){J=Re==="next"?k._ascending:k._descending,W.sort(J)};var he=0;return ue._addAlgorithm(function(Re,Pe,Ie){for(var Ke=Re.key;0<J(Ke,W[he]);)if(++he===W.length)return Pe(Ie),!1;return J(Ke,W[he])===0||(Pe(function(){Re.continue(W[he])}),!1)}),ue},Fa.prototype.notEqual=function(k){return this.inAnyRange([[-1/0,k],[k,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},Fa.prototype.noneOf=function(){var k=ne.apply(K,arguments);if(k.length===0)return new this.Collection(this);try{k.sort(this._ascending)}catch{return la(this,Yo)}var W=k.reduce(function(J,ue){return J?J.concat([[J[J.length-1][1],ue]]):[[-1/0,ue]]},null);return W.push([k[k.length-1],this.db._maxKey]),this.inAnyRange(W,{includeLowers:!1,includeUppers:!1})},Fa.prototype.inAnyRange=function(ot,W){var J=this,ue=this._cmp,he=this._ascending,Re=this._descending,Pe=this._min,Ie=this._max;if(ot.length===0)return Fi(this);if(!ot.every(function(ft){return ft[0]!==void 0&&ft[1]!==void 0&&he(ft[0],ft[1])<=0}))return la(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",se.InvalidArgument);var Ke=!W||W.includeLowers!==!1,Ae=W&&W.includeUppers===!0,Oe,be=he;function Xe(ft,st){return be(ft[0],st[0])}try{(Oe=ot.reduce(function(ft,st){for(var Rt=0,Ft=ft.length;Rt<Ft;++Rt){var Ut=ft[Rt];if(ue(st[0],Ut[1])<0&&0<ue(st[1],Ut[0])){Ut[0]=Pe(Ut[0],st[0]),Ut[1]=Ie(Ut[1],st[1]);break}}return Rt===Ft&&ft.push(st),ft},[])).sort(Xe)}catch{return la(this,Yo)}var ke=0,Ze=Ae?function(ft){return 0<he(ft,Oe[ke][1])}:function(ft){return 0<=he(ft,Oe[ke][1])},$e=Ke?function(ft){return 0<Re(ft,Oe[ke][0])}:function(ft){return 0<=Re(ft,Oe[ke][0])},Be=Ze,ot=new this.Collection(this,function(){return zr(Oe[0][0],Oe[Oe.length-1][1],!Ke,!Ae)});return ot._ondirectionchange=function(ft){be=ft==="next"?(Be=Ze,he):(Be=$e,Re),Oe.sort(Xe)},ot._addAlgorithm(function(ft,st,Rt){for(var Ft,Ut=ft.key;Be(Ut);)if(++ke===Oe.length)return st(Rt),!1;return!Ze(Ft=Ut)&&!$e(Ft)||(J._cmp(Ut,Oe[ke][1])===0||J._cmp(Ut,Oe[ke][0])===0||st(function(){be===he?ft.continue(Oe[ke][0]):ft.continue(Oe[ke][1])}),!1)}),ot},Fa.prototype.startsWithAnyOf=function(){var k=ne.apply(K,arguments);return k.every(function(W){return typeof W=="string"})?k.length===0?Fi(this):this.inAnyRange(k.map(function(W){return[W,W+Pu]})):la(this,"startsWithAnyOf() only works with strings")},Fa);function Fa(){}function gs(k){return Vn(function(W){return wc(W),k(W.target.error),!1})}function wc(k){k.stopPropagation&&k.stopPropagation(),k.preventDefault&&k.preventDefault()}var Qh="storagemutated",xg="x-storagemutated-1",Pl=ed(null,Qh),I0=(ms.prototype._lock=function(){return A(!je.global),++this._reculock,this._reculock!==1||je.global||(je.lockOwnerFor=this),this},ms.prototype._unlock=function(){if(A(!je.global),--this._reculock==0)for(je.global||(je.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var k=this._blockedFuncs.shift();try{go(k[1],k[0])}catch{}}return this},ms.prototype._locked=function(){return this._reculock&&je.lockOwnerFor!==this},ms.prototype.create=function(k){var W=this;if(!this.mode)return this;var J=this.db.idbdb,ue=this.db._state.dbOpenError;if(A(!this.idbtrans),!k&&!J)switch(ue&&ue.name){case"DatabaseClosedError":throw new se.DatabaseClosed(ue);case"MissingAPIError":throw new se.MissingAPI(ue.message,ue);default:throw new se.OpenFailed(ue)}if(!this.active)throw new se.TransactionInactive;return A(this._completion._state===null),(k=this.idbtrans=k||(this.db.core||J).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=Vn(function(he){wc(he),W._reject(k.error)}),k.onabort=Vn(function(he){wc(he),W.active&&W._reject(new se.Abort(k.error)),W.active=!1,W.on("abort").fire(he)}),k.oncomplete=Vn(function(){W.active=!1,W._resolve(),"mutatedParts"in k&&Pl.storagemutated.fire(k.mutatedParts)}),this},ms.prototype._promise=function(k,W,J){var ue=this;if(k==="readwrite"&&this.mode!=="readwrite")return $r(new se.ReadOnly("Transaction is readonly"));if(!this.active)return $r(new se.TransactionInactive);if(this._locked())return new dt(function(Re,Pe){ue._blockedFuncs.push([function(){ue._promise(k,W,J).then(Re,Pe)},je])});if(J)return Ll(function(){var Re=new dt(function(Pe,Ie){ue._lock();var Ke=W(Pe,Ie,ue);Ke&&Ke.then&&Ke.then(Pe,Ie)});return Re.finally(function(){return ue._unlock()}),Re._lib=!0,Re});var he=new dt(function(Re,Pe){var Ie=W(Re,Pe,ue);Ie&&Ie.then&&Ie.then(Re,Pe)});return he._lib=!0,he},ms.prototype._root=function(){return this.parent?this.parent._root():this},ms.prototype.waitFor=function(k){var W,J=this._root(),ue=dt.resolve(k);J._waitingFor?J._waitingFor=J._waitingFor.then(function(){return ue}):(J._waitingFor=ue,J._waitingQueue=[],W=J.idbtrans.objectStore(J.storeNames[0]),function Re(){for(++J._spinCount;J._waitingQueue.length;)J._waitingQueue.shift()();J._waitingFor&&(W.get(-1/0).onsuccess=Re)}());var he=J._waitingFor;return new dt(function(Re,Pe){ue.then(function(Ie){return J._waitingQueue.push(Vn(Re.bind(null,Ie)))},function(Ie){return J._waitingQueue.push(Vn(Pe.bind(null,Ie)))}).finally(function(){J._waitingFor===he&&(J._waitingFor=null)})})},ms.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new se.Abort))},ms.prototype.table=function(k){var W=this._memoizedTables||(this._memoizedTables={});if(f(W,k))return W[k];var J=this.schema[k];if(!J)throw new se.NotFound("Table "+k+" not part of transaction");return J=new this.db.Table(k,J,this),J.core=this.db.core.table(k),W[k]=J},ms);function ms(){}function Kh(k,W,J,ue,he,Re,Pe){return{name:k,keyPath:W,unique:J,multi:ue,auto:he,compound:Re,src:(J&&!Pe?"&":"")+(ue?"*":"")+(he?"++":"")+Sg(W)}}function Sg(k){return typeof k=="string"?k:k?"["+[].join.call(k,"+")+"]":""}function k0(k,W,J){return{name:k,primKey:W,indexes:J,mappedClass:null,idxByName:(ue=function(he){return[he.name,he]},J.reduce(function(he,Re,Pe){return Pe=ue(Re,Pe),Pe&&(he[Pe[0]]=Pe[1]),he},{}))};var ue}var od=function(k){try{return k.only([[]]),od=function(){return[[]]},[[]]}catch{return od=function(){return Pu},Pu}};function Er(k){return k==null?function(){}:typeof k=="string"?(W=k).split(".").length===1?function(J){return J[W]}:function(J){return M(J,W)}:function(J){return M(J,k)};var W}function Fr(k){return[].slice.call(k)}var ky=0;function Cl(k){return k==null?":id":typeof k=="string"?k:"[".concat(k.join("+"),"]")}function Ey(k,W,Ke){function ue(Be){if(Be.type===3)return null;if(Be.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var ke=Be.lower,Ze=Be.upper,$e=Be.lowerOpen,Be=Be.upperOpen;return ke===void 0?Ze===void 0?null:W.upperBound(Ze,!!Be):Ze===void 0?W.lowerBound(ke,!!$e):W.bound(ke,Ze,!!$e,!!Be)}function he(Xe){var ke,Ze=Xe.name;return{name:Ze,schema:Xe,mutate:function($e){var Be=$e.trans,ot=$e.type,ft=$e.keys,st=$e.values,Rt=$e.range;return new Promise(function(Ft,Ut){Ft=Vn(Ft);var kt=Be.objectStore(Ze),Dt=kt.keyPath==null,Tt=ot==="put"||ot==="add";if(!Tt&&ot!=="delete"&&ot!=="deleteRange")throw new Error("Invalid operation type: "+ot);var Bt,zt=(ft||st||{length:1}).length;if(ft&&st&&ft.length!==st.length)throw new Error("Given keys array must have same length as given values array.");if(zt===0)return Ft({numFailures:0,failures:{},results:[],lastResult:void 0});function Mn(da){++Di,wc(da)}var Un=[],Wn=[],Di=0;if(ot==="deleteRange"){if(Rt.type===4)return Ft({numFailures:Di,failures:Wn,results:[],lastResult:void 0});Rt.type===3?Un.push(Bt=kt.clear()):Un.push(Bt=kt.delete(ue(Rt)))}else{var Dt=Tt?Dt?[st,ft]:[st,null]:[ft,null],_n=Dt[0],ea=Dt[1];if(Tt)for(var Oa=0;Oa<zt;++Oa)Un.push(Bt=ea&&ea[Oa]!==void 0?kt[ot](_n[Oa],ea[Oa]):kt[ot](_n[Oa])),Bt.onerror=Mn;else for(Oa=0;Oa<zt;++Oa)Un.push(Bt=kt[ot](_n[Oa])),Bt.onerror=Mn}function hd(da){da=da.target.result,Un.forEach(function(ys,Hu){return ys.error!=null&&(Wn[Hu]=ys.error)}),Ft({numFailures:Di,failures:Wn,results:ot==="delete"?ft:Un.map(function(ys){return ys.result}),lastResult:da})}Bt.onerror=function(da){Mn(da),hd(da)},Bt.onsuccess=hd})},getMany:function($e){var Be=$e.trans,ot=$e.keys;return new Promise(function(ft,st){ft=Vn(ft);for(var Rt,Ft=Be.objectStore(Ze),Ut=ot.length,kt=new Array(Ut),Dt=0,Tt=0,Bt=function(Un){Un=Un.target,kt[Un._pos]=Un.result,++Tt===Dt&&ft(kt)},zt=gs(st),Mn=0;Mn<Ut;++Mn)ot[Mn]!=null&&((Rt=Ft.get(ot[Mn]))._pos=Mn,Rt.onsuccess=Bt,Rt.onerror=zt,++Dt);Dt===0&&ft(kt)})},get:function($e){var Be=$e.trans,ot=$e.key;return new Promise(function(ft,st){ft=Vn(ft);var Rt=Be.objectStore(Ze).get(ot);Rt.onsuccess=function(Ft){return ft(Ft.target.result)},Rt.onerror=gs(st)})},query:(ke=Ae,function($e){return new Promise(function(Be,ot){Be=Vn(Be);var ft,st,Rt,Dt=$e.trans,Ft=$e.values,Ut=$e.limit,Bt=$e.query,kt=Ut===1/0?void 0:Ut,Tt=Bt.index,Bt=Bt.range,Dt=Dt.objectStore(Ze),Tt=Tt.isPrimaryKey?Dt:Dt.index(Tt.name),Bt=ue(Bt);if(Ut===0)return Be({result:[]});ke?((kt=Ft?Tt.getAll(Bt,kt):Tt.getAllKeys(Bt,kt)).onsuccess=function(zt){return Be({result:zt.target.result})},kt.onerror=gs(ot)):(ft=0,st=!Ft&&"openKeyCursor"in Tt?Tt.openKeyCursor(Bt):Tt.openCursor(Bt),Rt=[],st.onsuccess=function(zt){var Mn=st.result;return Mn?(Rt.push(Ft?Mn.value:Mn.primaryKey),++ft===Ut?Be({result:Rt}):void Mn.continue()):Be({result:Rt})},st.onerror=gs(ot))})}),openCursor:function($e){var Be=$e.trans,ot=$e.values,ft=$e.query,st=$e.reverse,Rt=$e.unique;return new Promise(function(Ft,Ut){Ft=Vn(Ft);var Tt=ft.index,kt=ft.range,Dt=Be.objectStore(Ze),Dt=Tt.isPrimaryKey?Dt:Dt.index(Tt.name),Tt=st?Rt?"prevunique":"prev":Rt?"nextunique":"next",Bt=!ot&&"openKeyCursor"in Dt?Dt.openKeyCursor(ue(kt),Tt):Dt.openCursor(ue(kt),Tt);Bt.onerror=gs(Ut),Bt.onsuccess=Vn(function(zt){var Mn,Un,Wn,Di,_n=Bt.result;_n?(_n.___id=++ky,_n.done=!1,Mn=_n.continue.bind(_n),Un=(Un=_n.continuePrimaryKey)&&Un.bind(_n),Wn=_n.advance.bind(_n),Di=function(){throw new Error("Cursor not stopped")},_n.trans=Be,_n.stop=_n.continue=_n.continuePrimaryKey=_n.advance=function(){throw new Error("Cursor not started")},_n.fail=Vn(Ut),_n.next=function(){var ea=this,Oa=1;return this.start(function(){return Oa--?ea.continue():ea.stop()}).then(function(){return ea})},_n.start=function(ea){function Oa(){if(Bt.result)try{ea()}catch(da){_n.fail(da)}else _n.done=!0,_n.start=function(){throw new Error("Cursor behind last entry")},_n.stop()}var hd=new Promise(function(da,ys){da=Vn(da),Bt.onerror=gs(ys),_n.fail=ys,_n.stop=function(Hu){_n.stop=_n.continue=_n.continuePrimaryKey=_n.advance=Di,da(Hu)}});return Bt.onsuccess=Vn(function(da){Bt.onsuccess=Oa,Oa()}),_n.continue=Mn,_n.continuePrimaryKey=Un,_n.advance=Wn,Oa(),hd},Ft(_n)):Ft(null)},Ut)})},count:function($e){var Be=$e.query,ot=$e.trans,ft=Be.index,st=Be.range;return new Promise(function(Rt,Ft){var Ut=ot.objectStore(Ze),kt=ft.isPrimaryKey?Ut:Ut.index(ft.name),Ut=ue(st),kt=Ut?kt.count(Ut):kt.count();kt.onsuccess=Vn(function(Dt){return Rt(Dt.target.result)}),kt.onerror=gs(Ft)})}}}var Re,Pe,Ie,Oe=(Pe=Ke,Ie=Fr((Re=k).objectStoreNames),{schema:{name:Re.name,tables:Ie.map(function(Xe){return Pe.objectStore(Xe)}).map(function(Xe){var ke=Xe.keyPath,Be=Xe.autoIncrement,Ze=s(ke),$e={},Be={name:Xe.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:ke==null,compound:Ze,keyPath:ke,autoIncrement:Be,unique:!0,extractKey:Er(ke)},indexes:Fr(Xe.indexNames).map(function(ot){return Xe.index(ot)}).map(function(Rt){var ft=Rt.name,st=Rt.unique,Ft=Rt.multiEntry,Rt=Rt.keyPath,Ft={name:ft,compound:s(Rt),keyPath:Rt,unique:st,multiEntry:Ft,extractKey:Er(Rt)};return $e[Cl(Rt)]=Ft}),getIndexByKeyPath:function(ot){return $e[Cl(ot)]}};return $e[":id"]=Be.primaryKey,ke!=null&&($e[Cl(ke)]=Be.primaryKey),Be})},hasGetAll:0<Ie.length&&"getAll"in Pe.objectStore(Ie[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),Ke=Oe.schema,Ae=Oe.hasGetAll,Oe=Ke.tables.map(he),be={};return Oe.forEach(function(Xe){return be[Xe.name]=Xe}),{stack:"dbcore",transaction:k.transaction.bind(k),table:function(Xe){if(!be[Xe])throw new Error("Table '".concat(Xe,"' not found"));return be[Xe]},MIN_KEY:-1/0,MAX_KEY:od(W),schema:Ke}}function Fy(k,W,J,ue){var he=J.IDBKeyRange;return J.indexedDB,{dbcore:(ue=Ey(W,he,ue),k.dbcore.reduce(function(Re,Pe){return Pe=Pe.create,r(r({},Re),Pe(Re))},ue))}}function Fu(k,ue){var J=ue.db,ue=Fy(k._middlewares,J,k._deps,ue);k.core=ue.dbcore,k.tables.forEach(function(he){var Re=he.name;k.core.schema.tables.some(function(Pe){return Pe.name===Re})&&(he.core=k.core.table(Re),k[Re]instanceof k.Table&&(k[Re].core=he.core))})}function Xu(k,W,J,ue){J.forEach(function(he){var Re=ue[he];W.forEach(function(Pe){var Ie=function Ke(Ae,Oe){return g(Ae,Oe)||(Ae=c(Ae))&&Ke(Ae,Oe)}(Pe,he);(!Ie||"value"in Ie&&Ie.value===void 0)&&(Pe===k.Transaction.prototype||Pe instanceof k.Transaction?p(Pe,he,{get:function(){return this.table(he)},set:function(Ke){h(this,he,{value:Ke,writable:!0,configurable:!0,enumerable:!0})}}):Pe[he]=new k.Table(he,Re))})})}function Hh(k,W){W.forEach(function(J){for(var ue in J)J[ue]instanceof k.Table&&delete J[ue]})}function Lc(k,W){return k._cfg.version-W._cfg.version}function si(k,W,J,ue){var he=k._dbSchema;J.objectStoreNames.contains("$meta")&&!he.$meta&&(he.$meta=k0("$meta",Pc("")[0],[]),k._storeNames.push("$meta"));var Re=k._createTransaction("readwrite",k._storeNames,he);Re.create(J),Re._completion.catch(ue);var Pe=Re._reject.bind(Re),Ie=je.transless||je;Ll(function(){return je.trans=Re,je.transless=Ie,W!==0?(Fu(k,J),Ae=W,((Ke=Re).storeNames.includes("$meta")?Ke.table("$meta").get("version").then(function(Oe){return Oe??Ae}):dt.resolve(Ae)).then(function(Oe){return Xe=Oe,ke=Re,Ze=J,$e=[],Oe=(be=k)._versions,Be=be._dbSchema=sd(0,be.idbdb,Ze),(Oe=Oe.filter(function(ot){return ot._cfg.version>=Xe})).length!==0?(Oe.forEach(function(ot){$e.push(function(){var ft=Be,st=ot._cfg.dbschema;Oc(be,ft,Ze),Oc(be,st,Ze),Be=be._dbSchema=st;var Rt=Ks(ft,st);Rt.add.forEach(function(Tt){Gh(Ze,Tt[0],Tt[1].primKey,Tt[1].indexes)}),Rt.change.forEach(function(Tt){if(Tt.recreate)throw new se.Upgrade("Not yet support for changing primary key");var Bt=Ze.objectStore(Tt.name);Tt.add.forEach(function(zt){return Ai(Bt,zt)}),Tt.change.forEach(function(zt){Bt.deleteIndex(zt.name),Ai(Bt,zt)}),Tt.del.forEach(function(zt){return Bt.deleteIndex(zt)})});var Ft=ot._cfg.contentUpgrade;if(Ft&&ot._cfg.version>Xe){Fu(be,Ze),ke._memoizedTables={};var Ut=w(st);Rt.del.forEach(function(Tt){Ut[Tt]=ft[Tt]}),Hh(be,[be.Transaction.prototype]),Xu(be,[be.Transaction.prototype],o(Ut),Ut),ke.schema=Ut;var kt,Dt=Z(Ft);return Dt&&Mc(),Rt=dt.follow(function(){var Tt;(kt=Ft(ke))&&Dt&&(Tt=vo.bind(null,null),kt.then(Tt,Tt))}),kt&&typeof kt.then=="function"?dt.resolve(kt):Rt.then(function(){return kt})}}),$e.push(function(ft){var st,Rt,Ft=ot._cfg.dbschema;st=Ft,Rt=ft,[].slice.call(Rt.db.objectStoreNames).forEach(function(Ut){return st[Ut]==null&&Rt.db.deleteObjectStore(Ut)}),Hh(be,[be.Transaction.prototype]),Xu(be,[be.Transaction.prototype],be._storeNames,be._dbSchema),ke.schema=be._dbSchema}),$e.push(function(ft){be.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(be.idbdb.version/10)===ot._cfg.version?(be.idbdb.deleteObjectStore("$meta"),delete be._dbSchema.$meta,be._storeNames=be._storeNames.filter(function(st){return st!=="$meta"})):ft.objectStore("$meta").put(ot._cfg.version,"version"))})}),function ot(){return $e.length?dt.resolve($e.shift()(ke.idbtrans)).then(ot):dt.resolve()}().then(function(){Hs(Be,Ze)})):dt.resolve();var be,Xe,ke,Ze,$e,Be}).catch(Pe)):(o(he).forEach(function(Oe){Gh(J,Oe,he[Oe].primKey,he[Oe].indexes)}),Fu(k,J),void dt.follow(function(){return k.on.populate.fire(Re)}).catch(Pe));var Ke,Ae})}function Tc(k,W){Hs(k._dbSchema,W),W.db.version%10!=0||W.objectStoreNames.contains("$meta")||W.db.createObjectStore("$meta").add(Math.ceil(W.db.version/10-1),"version");var J=sd(0,k.idbdb,W);Oc(k,k._dbSchema,W);for(var ue=0,he=Ks(J,k._dbSchema).change;ue<he.length;ue++){var Re=function(Pe){if(Pe.change.length||Pe.recreate)return console.warn("Unable to patch indexes of table ".concat(Pe.name," because it has changes on the type of index or primary key.")),{value:void 0};var Ie=W.objectStore(Pe.name);Pe.add.forEach(function(Ke){me&&console.debug("Dexie upgrade patch: Creating missing index ".concat(Pe.name,".").concat(Ke.src)),Ai(Ie,Ke)})}(he[ue]);if(typeof Re=="object")return Re.value}}function Ks(k,W){var J,ue={del:[],add:[],change:[]};for(J in k)W[J]||ue.del.push(J);for(J in W){var he=k[J],Re=W[J];if(he){var Pe={name:J,def:Re,recreate:!1,del:[],add:[],change:[]};if(""+(he.primKey.keyPath||"")!=""+(Re.primKey.keyPath||"")||he.primKey.auto!==Re.primKey.auto)Pe.recreate=!0,ue.change.push(Pe);else{var Ie=he.idxByName,Ke=Re.idxByName,Ae=void 0;for(Ae in Ie)Ke[Ae]||Pe.del.push(Ae);for(Ae in Ke){var Oe=Ie[Ae],be=Ke[Ae];Oe?Oe.src!==be.src&&Pe.change.push(be):Pe.add.push(be)}(0<Pe.del.length||0<Pe.add.length||0<Pe.change.length)&&ue.change.push(Pe)}}else ue.add.push([J,Re])}return ue}function Gh(k,W,J,ue){var he=k.db.createObjectStore(W,J.keyPath?{keyPath:J.keyPath,autoIncrement:J.auto}:{autoIncrement:J.auto});return ue.forEach(function(Re){return Ai(he,Re)}),he}function Hs(k,W){o(k).forEach(function(J){W.db.objectStoreNames.contains(J)||(me&&console.debug("Dexie: Creating missing table",J),Gh(W,J,k[J].primKey,k[J].indexes))})}function Ai(k,W){k.createIndex(W.name,W.keyPath,{unique:W.unique,multiEntry:W.multi})}function sd(k,W,J){var ue={};return m(W.objectStoreNames,0).forEach(function(he){for(var Re=J.objectStore(he),Pe=Kh(Sg(Ae=Re.keyPath),Ae||"",!0,!1,!!Re.autoIncrement,Ae&&typeof Ae!="string",!0),Ie=[],Ke=0;Ke<Re.indexNames.length;++Ke){var Oe=Re.index(Re.indexNames[Ke]),Ae=Oe.keyPath,Oe=Kh(Oe.name,Ae,!!Oe.unique,!!Oe.multiEntry,!1,Ae&&typeof Ae!="string",!1);Ie.push(Oe)}ue[he]=k0(he,Pe,Ie)}),ue}function Oc(k,W,J){for(var ue=J.db.objectStoreNames,he=0;he<ue.length;++he){var Re=ue[he],Pe=J.objectStore(Re);k._hasGetAll="getAll"in Pe;for(var Ie=0;Ie<Pe.indexNames.length;++Ie){var Ke=Pe.indexNames[Ie],Ae=Pe.index(Ke).keyPath,Oe=typeof Ae=="string"?Ae:"["+m(Ae).join("+")+"]";!W[Re]||(Ae=W[Re].idxByName[Oe])&&(Ae.name=Ke,delete W[Re].idxByName[Oe],W[Re].idxByName[Ke]=Ae)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&i.WorkerGlobalScope&&i instanceof i.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(k._hasGetAll=!1)}function Pc(k){return k.split(",").map(function(W,J){var ue=(W=W.trim()).replace(/([&*]|\+\+)/g,""),he=/^\[/.test(ue)?ue.match(/^\[(.*)\]$/)[1].split("+"):ue;return Kh(ue,he||null,/\&/.test(W),/\*/.test(W),/\+\+/.test(W),s(he),J===0)})}var Xy=($h.prototype._parseStoresSpec=function(k,W){o(k).forEach(function(J){if(k[J]!==null){var ue=Pc(k[J]),he=ue.shift();if(he.unique=!0,he.multi)throw new se.Schema("Primary key cannot be multi-valued");ue.forEach(function(Re){if(Re.auto)throw new se.Schema("Only primary key can be marked as autoIncrement (++)");if(!Re.keyPath)throw new se.Schema("Index must have a name and cannot be an empty string")}),W[J]=k0(J,he,ue)}})},$h.prototype.stores=function(J){var W=this.db;this._cfg.storesSource=this._cfg.storesSource?l(this._cfg.storesSource,J):J;var J=W._versions,ue={},he={};return J.forEach(function(Re){l(ue,Re._cfg.storesSource),he=Re._cfg.dbschema={},Re._parseStoresSpec(ue,he)}),W._dbSchema=he,Hh(W,[W._allTables,W,W.Transaction.prototype]),Xu(W,[W._allTables,W,W.Transaction.prototype,this._cfg.tables],o(he),he),W._storeNames=o(he),this},$h.prototype.upgrade=function(k){return this._cfg.contentUpgrade=Se(this._cfg.contentUpgrade||fe,k),this},$h);function $h(){}function ld(k,W){var J=k._dbNamesDB;return J||(J=k._dbNamesDB=new li(Uh,{addons:[],indexedDB:k,IDBKeyRange:W})).version(1).stores({dbnames:"name"}),J.table("dbnames")}function Ri(k){return k&&typeof k.databases=="function"}function Mg(k){return Ll(function(){return je.letThrough=!0,k()})}function Xa(k){return!("from"in k)}var bi=function(k,W){if(!this){var J=new bi;return k&&"d"in k&&l(J,k),J}l(this,arguments.length?{d:1,from:k,to:1<arguments.length?W:k}:{d:0})};function cd(k,W,J){var ue=ar(W,J);if(!isNaN(ue)){if(0<ue)throw RangeError();if(Xa(k))return l(k,{from:W,to:J,d:1});var he=k.l,ue=k.r;if(ar(J,k.from)<0)return he?cd(he,W,J):k.l={from:W,to:J,d:1,l:null,r:null},Xr(k);if(0<ar(W,k.to))return ue?cd(ue,W,J):k.r={from:W,to:J,d:1,l:null,r:null},Xr(k);ar(W,k.from)<0&&(k.from=W,k.l=null,k.d=ue?ue.d+1:1),0<ar(J,k.to)&&(k.to=J,k.r=null,k.d=k.l?k.l.d+1:1),J=!k.r,he&&!k.l&&Bo(k,he),ue&&J&&Bo(k,ue)}}function Bo(k,W){Xa(W)||function J(ue,Ke){var Re=Ke.from,Pe=Ke.to,Ie=Ke.l,Ke=Ke.r;cd(ue,Re,Pe),Ie&&J(ue,Ie),Ke&&J(ue,Ke)}(k,W)}function zh(k,W){var J=Du(W),ue=J.next();if(ue.done)return!1;for(var he=ue.value,Re=Du(k),Pe=Re.next(he.from),Ie=Pe.value;!ue.done&&!Pe.done;){if(ar(Ie.from,he.to)<=0&&0<=ar(Ie.to,he.from))return!0;ar(he.from,Ie.from)<0?he=(ue=J.next(Ie.from)).value:Ie=(Pe=Re.next(he.from)).value}return!1}function Du(k){var W=Xa(k)?null:{s:0,n:k};return{next:function(J){for(var ue=0<arguments.length;W;)switch(W.s){case 0:if(W.s=1,ue)for(;W.n.l&&ar(J,W.n.from)<0;)W={up:W,n:W.n.l,s:1};else for(;W.n.l;)W={up:W,n:W.n.l,s:1};case 1:if(W.s=2,!ue||ar(J,W.n.to)<=0)return{value:W.n,done:!1};case 2:if(W.n.r){W.s=3,W={up:W,n:W.n.r,s:0};continue}case 3:W=W.up}return{done:!0}}}}function Xr(k){var W,J,ue=(((W=k.r)===null||W===void 0?void 0:W.d)||0)-(((J=k.l)===null||J===void 0?void 0:J.d)||0),he=1<ue?"r":ue<-1?"l":"";he&&(W=he=="r"?"l":"r",J=r({},k),ue=k[he],k.from=ue.from,k.to=ue.to,k[he]=ue[he],J[he]=ue[W],(k[W]=J).d=Gs(J)),k.d=Gs(k)}function Gs(J){var W=J.r,J=J.l;return(W?J?Math.max(W.d,J.d):W.d:J?J.d:0)+1}function Nl(k,W){return o(W).forEach(function(J){k[J]?Bo(k[J],W[J]):k[J]=function ue(he){var Re,Pe,Ie={};for(Re in he)f(he,Re)&&(Pe=he[Re],Ie[Re]=!Pe||typeof Pe!="object"||O.has(Pe.constructor)?Pe:ue(Pe));return Ie}(W[J])}),k}function Vu(k,W){return k.all||W.all||Object.keys(k).some(function(J){return W[J]&&zh(W[J],k[J])})}d(bi.prototype,((Zo={add:function(k){return Bo(this,k),this},addKey:function(k){return cd(this,k,k),this},addKeys:function(k){var W=this;return k.forEach(function(J){return cd(W,J,J)}),this},hasKey:function(k){var W=Du(this).next(k).value;return W&&ar(W.from,k)<=0&&0<=ar(W.to,k)}})[F]=function(){return Du(this)},Zo));var Il={},Uu={},Jh=!1;function kl(k){Nl(Uu,k),Jh||(Jh=!0,setTimeout(function(){Jh=!1,jh(Uu,!(Uu={}))},0))}function jh(k,W){W===void 0&&(W=!1);var J=new Set;if(k.all)for(var ue=0,he=Object.values(Il);ue<he.length;ue++)qh(Pe=he[ue],k,J,W);else for(var Re in k){var Pe,Ie=/^idb\:\/\/(.*)\/(.*)\//.exec(Re);Ie&&(Re=Ie[1],Ie=Ie[2],(Pe=Il["idb://".concat(Re,"/").concat(Ie)])&&qh(Pe,k,J,W))}J.forEach(function(Ke){return Ke()})}function qh(k,W,J,ue){for(var he=[],Re=0,Pe=Object.entries(k.queries.query);Re<Pe.length;Re++){for(var Ie=Pe[Re],Ke=Ie[0],Ae=[],Oe=0,be=Ie[1];Oe<be.length;Oe++){var Xe=be[Oe];Vu(W,Xe.obsSet)?Xe.subscribers.forEach(function(Be){return J.add(Be)}):ue&&Ae.push(Xe)}ue&&he.push([Ke,Ae])}if(ue)for(var ke=0,Ze=he;ke<Ze.length;ke++){var $e=Ze[ke],Ke=$e[0],Ae=$e[1];k.queries.query[Ke]=Ae}}function Cc(k){var W=k._state,J=k._deps.indexedDB;if(W.isBeingOpened||k.idbdb)return W.dbReadyPromise.then(function(){return W.dbOpenError?$r(W.dbOpenError):k});W.isBeingOpened=!0,W.dbOpenError=null,W.openComplete=!1;var ue=W.openCanceller,he=Math.round(10*k.verno),Re=!1;function Pe(){if(W.openCanceller!==ue)throw new se.DatabaseClosed("db.open() was cancelled")}function Ie(){return new dt(function(Xe,ke){if(Pe(),!J)throw new se.MissingAPI;var Ze=k.name,$e=W.autoSchema||!he?J.open(Ze):J.open(Ze,he);if(!$e)throw new se.MissingAPI;$e.onerror=gs(ke),$e.onblocked=Vn(k._fireOnBlocked),$e.onupgradeneeded=Vn(function(Be){var ot;Oe=$e.transaction,W.autoSchema&&!k._options.allowEmptyDB?($e.onerror=wc,Oe.abort(),$e.result.close(),(ot=J.deleteDatabase(Ze)).onsuccess=ot.onerror=Vn(function(){ke(new se.NoSuchDatabase("Database ".concat(Ze," doesnt exist")))})):(Oe.onerror=gs(ke),Be=Be.oldVersion>Math.pow(2,62)?0:Be.oldVersion,be=Be<1,k.idbdb=$e.result,Re&&Tc(k,Oe),si(k,Be/10,Oe,ke))},ke),$e.onsuccess=Vn(function(){Oe=null;var Be,ot,ft,st,Rt,Ft=k.idbdb=$e.result,Ut=m(Ft.objectStoreNames);if(0<Ut.length)try{var kt=Ft.transaction((st=Ut).length===1?st[0]:st,"readonly");if(W.autoSchema)ot=Ft,ft=kt,(Be=k).verno=ot.version/10,ft=Be._dbSchema=sd(0,ot,ft),Be._storeNames=m(ot.objectStoreNames,0),Xu(Be,[Be._allTables],o(ft),ft);else if(Oc(k,k._dbSchema,kt),((Rt=Ks(sd(0,(Rt=k).idbdb,kt),Rt._dbSchema)).add.length||Rt.change.some(function(Dt){return Dt.add.length||Dt.change.length}))&&!Re)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),Ft.close(),he=Ft.version+1,Re=!0,Xe(Ie());Fu(k,kt)}catch{}Cu.push(k),Ft.onversionchange=Vn(function(Dt){W.vcFired=!0,k.on("versionchange").fire(Dt)}),Ft.onclose=Vn(function(Dt){k.on("close").fire(Dt)}),be&&(Rt=k._deps,kt=Ze,Ft=Rt.indexedDB,Rt=Rt.IDBKeyRange,Ri(Ft)||kt===Uh||ld(Ft,Rt).put({name:kt}).catch(fe)),Xe()},ke)}).catch(function(Xe){switch(Xe==null?void 0:Xe.name){case"UnknownError":if(0<W.PR1398_maxLoop)return W.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),Ie();break;case"VersionError":if(0<he)return he=0,Ie()}return dt.reject(Xe)})}var Ke,Ae=W.dbReadyResolve,Oe=null,be=!1;return dt.race([ue,(typeof navigator>"u"?dt.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(Xe){function ke(){return indexedDB.databases().finally(Xe)}Ke=setInterval(ke,100),ke()}).finally(function(){return clearInterval(Ke)}):Promise.resolve()).then(Ie)]).then(function(){return Pe(),W.onReadyBeingFired=[],dt.resolve(Mg(function(){return k.on.ready.fire(k.vip)})).then(function Xe(){if(0<W.onReadyBeingFired.length){var ke=W.onReadyBeingFired.reduce(Se,fe);return W.onReadyBeingFired=[],dt.resolve(Mg(function(){return ke(k.vip)})).then(Xe)}})}).finally(function(){W.openCanceller===ue&&(W.onReadyBeingFired=null,W.isBeingOpened=!1)}).catch(function(Xe){W.dbOpenError=Xe;try{Oe&&Oe.abort()}catch{}return ue===W.openCanceller&&k._close(),$r(Xe)}).finally(function(){W.openComplete=!0,Ae()}).then(function(){var Xe;return be&&(Xe={},k.tables.forEach(function(ke){ke.schema.indexes.forEach(function(Ze){Ze.name&&(Xe["idb://".concat(k.name,"/").concat(ke.name,"/").concat(Ze.name)]=new bi(-1/0,[[[]]]))}),Xe["idb://".concat(k.name,"/").concat(ke.name,"/")]=Xe["idb://".concat(k.name,"/").concat(ke.name,"/:dels")]=new bi(-1/0,[[[]]])}),Pl(Qh).fire(Xe),jh(Xe,!0)),k})}function ep(k){function W(Re){return k.next(Re)}var J=he(W),ue=he(function(Re){return k.throw(Re)});function he(Re){return function(Ke){var Ie=Re(Ke),Ke=Ie.value;return Ie.done?Ke:Ke&&typeof Ke.then=="function"?Ke.then(J,ue):s(Ke)?Promise.all(Ke).then(J,ue):J(Ke)}}return he(W)()}function tp(k,W,J){for(var ue=s(k)?k.slice():[k],he=0;he<J;++he)ue.push(W);return ue}var _g={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(k){return r(r({},k),{table:function(W){var J=k.table(W),ue=J.schema,he={},Re=[];function Pe(be,Xe,ke){var Ze=Cl(be),$e=he[Ze]=he[Ze]||[],Be=be==null?0:typeof be=="string"?1:be.length,ot=0<Xe,ot=r(r({},ke),{name:ot?"".concat(Ze,"(virtual-from:").concat(ke.name,")"):ke.name,lowLevelIndex:ke,isVirtual:ot,keyTail:Xe,keyLength:Be,extractKey:Er(be),unique:!ot&&ke.unique});return $e.push(ot),ot.isPrimaryKey||Re.push(ot),1<Be&&Pe(Be===2?be[0]:be.slice(0,Be-1),Xe+1,ke),$e.sort(function(ft,st){return ft.keyTail-st.keyTail}),ot}W=Pe(ue.primaryKey.keyPath,0,ue.primaryKey),he[":id"]=[W];for(var Ie=0,Ke=ue.indexes;Ie<Ke.length;Ie++){var Ae=Ke[Ie];Pe(Ae.keyPath,0,Ae)}function Oe(be){var Xe,ke=be.query.index;return ke.isVirtual?r(r({},be),{query:{index:ke.lowLevelIndex,range:(Xe=be.query.range,ke=ke.keyTail,{type:Xe.type===1?2:Xe.type,lower:tp(Xe.lower,Xe.lowerOpen?k.MAX_KEY:k.MIN_KEY,ke),lowerOpen:!0,upper:tp(Xe.upper,Xe.upperOpen?k.MIN_KEY:k.MAX_KEY,ke),upperOpen:!0})}}):be}return r(r({},J),{schema:r(r({},ue),{primaryKey:W,indexes:Re,getIndexByKeyPath:function(be){return(be=he[Cl(be)])&&be[0]}}),count:function(be){return J.count(Oe(be))},query:function(be){return J.query(Oe(be))},openCursor:function(be){var Xe=be.query.index,ke=Xe.keyTail,Ze=Xe.isVirtual,$e=Xe.keyLength;return Ze?J.openCursor(Oe(be)).then(function(ot){return ot&&Be(ot)}):J.openCursor(be);function Be(ot){return Object.create(ot,{continue:{value:function(ft){ft!=null?ot.continue(tp(ft,be.reverse?k.MAX_KEY:k.MIN_KEY,ke)):be.unique?ot.continue(ot.key.slice(0,$e).concat(be.reverse?k.MIN_KEY:k.MAX_KEY,ke)):ot.continue()}},continuePrimaryKey:{value:function(ft,st){ot.continuePrimaryKey(tp(ft,k.MAX_KEY,ke),st)}},primaryKey:{get:function(){return ot.primaryKey}},key:{get:function(){var ft=ot.key;return $e===1?ft[0]:ft.slice(0,$e)}},value:{get:function(){return ot.value}}})}}})}})}};function ud(k,W,J,ue){return J=J||{},ue=ue||"",o(k).forEach(function(he){var Re,Pe,Ie;f(W,he)?(Re=k[he],Pe=W[he],typeof Re=="object"&&typeof Pe=="object"&&Re&&Pe?(Ie=E(Re))!==E(Pe)?J[ue+he]=W[he]:Ie==="Object"?ud(Re,Pe,J,ue+he+"."):Re!==Pe&&(J[ue+he]=W[he]):Re!==Pe&&(J[ue+he]=W[he])):J[ue+he]=void 0}),o(W).forEach(function(he){f(k,he)||(J[ue+he]=W[he])}),J}function Wu(k,W){return W.type==="delete"?W.keys:W.keys||W.values.map(k.extractKey)}var fd={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(k){return r(r({},k),{table:function(W){var J=k.table(W),ue=J.schema.primaryKey;return r(r({},J),{mutate:function(he){var Re=je.trans,Pe=Re.table(W).hook,Ie=Pe.deleting,Ke=Pe.creating,Ae=Pe.updating;switch(he.type){case"add":if(Ke.fire===fe)break;return Re._promise("readwrite",function(){return Oe(he)},!0);case"put":if(Ke.fire===fe&&Ae.fire===fe)break;return Re._promise("readwrite",function(){return Oe(he)},!0);case"delete":if(Ie.fire===fe)break;return Re._promise("readwrite",function(){return Oe(he)},!0);case"deleteRange":if(Ie.fire===fe)break;return Re._promise("readwrite",function(){return function be(Xe,ke,Ze){return J.query({trans:Xe,values:!1,query:{index:ue,range:ke},limit:Ze}).then(function($e){var Be=$e.result;return Oe({type:"delete",keys:Be,trans:Xe}).then(function(ot){return 0<ot.numFailures?Promise.reject(ot.failures[0]):Be.length<Ze?{failures:[],numFailures:0,lastResult:void 0}:be(Xe,r(r({},ke),{lower:Be[Be.length-1],lowerOpen:!0}),Ze)})})}(he.trans,he.range,1e4)},!0)}return J.mutate(he);function Oe(be){var Xe,ke,Ze,$e=je.trans,Be=be.keys||Wu(ue,be);if(!Be)throw new Error("Keys missing");return(be=be.type==="add"||be.type==="put"?r(r({},be),{keys:Be}):r({},be)).type!=="delete"&&(be.values=a([],be.values)),be.keys&&(be.keys=a([],be.keys)),Xe=J,Ze=Be,((ke=be).type==="add"?Promise.resolve([]):Xe.getMany({trans:ke.trans,keys:Ze,cache:"immutable"})).then(function(ot){var ft=Be.map(function(st,Rt){var Ft,Ut,kt,Dt=ot[Rt],Tt={onerror:null,onsuccess:null};return be.type==="delete"?Ie.fire.call(Tt,st,Dt,$e):be.type==="add"||Dt===void 0?(Ft=Ke.fire.call(Tt,st,be.values[Rt],$e),st==null&&Ft!=null&&(be.keys[Rt]=st=Ft,ue.outbound||S(be.values[Rt],ue.keyPath,st))):(Ft=ud(Dt,be.values[Rt]),(Ut=Ae.fire.call(Tt,Ft,st,Dt,$e))&&(kt=be.values[Rt],Object.keys(Ut).forEach(function(Bt){f(kt,Bt)?kt[Bt]=Ut[Bt]:S(kt,Bt,Ut[Bt])}))),Tt});return J.mutate(be).then(function(st){for(var Rt=st.failures,Ft=st.results,Ut=st.numFailures,st=st.lastResult,kt=0;kt<Be.length;++kt){var Dt=(Ft||Be)[kt],Tt=ft[kt];Dt==null?Tt.onerror&&Tt.onerror(Rt[kt]):Tt.onsuccess&&Tt.onsuccess(be.type==="put"&&ot[kt]?be.values[kt]:Dt)}return{failures:Rt,results:Ft,numFailures:Ut,lastResult:st}}).catch(function(st){return ft.forEach(function(Rt){return Rt.onerror&&Rt.onerror(st)}),Promise.reject(st)})})}}})}})}};function wg(k,W,J){try{if(!W||W.keys.length<k.length)return null;for(var ue=[],he=0,Re=0;he<W.keys.length&&Re<k.length;++he)ar(W.keys[he],k[Re])===0&&(ue.push(J?P(W.values[he]):W.values[he]),++Re);return ue.length===k.length?ue:null}catch{return null}}var E0={stack:"dbcore",level:-1,create:function(k){return{table:function(W){var J=k.table(W);return r(r({},J),{getMany:function(ue){if(!ue.cache)return J.getMany(ue);var he=wg(ue.keys,ue.trans._cache,ue.cache==="clone");return he?dt.resolve(he):J.getMany(ue).then(function(Re){return ue.trans._cache={keys:ue.keys,values:ue.cache==="clone"?P(Re):Re},Re})},mutate:function(ue){return ue.type!=="add"&&(ue.trans._cache=null),J.mutate(ue)}})}}}};function dd(k,W){return k.trans.mode==="readonly"&&!!k.subscr&&!k.trans.explicit&&k.trans.db._options.cache!=="disabled"&&!W.schema.primaryKey.outbound}function Yu(k,W){switch(k){case"query":return W.values&&!W.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var Nc={stack:"dbcore",level:0,name:"Observability",create:function(k){var W=k.schema.name,J=new bi(k.MIN_KEY,k.MAX_KEY);return r(r({},k),{transaction:function(ue,he,Re){if(je.subscr&&he!=="readonly")throw new se.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(je.querier));return k.transaction(ue,he,Re)},table:function(ue){var he=k.table(ue),Re=he.schema,Pe=Re.primaryKey,be=Re.indexes,Ie=Pe.extractKey,Ke=Pe.outbound,Ae=Pe.autoIncrement&&be.filter(function(ke){return ke.compound&&ke.keyPath.includes(Pe.keyPath)}),Oe=r(r({},he),{mutate:function(ke){function Ze(Bt){return Bt="idb://".concat(W,"/").concat(ue,"/").concat(Bt),st[Bt]||(st[Bt]=new bi)}var $e,Be,ot,ft=ke.trans,st=ke.mutatedParts||(ke.mutatedParts={}),Rt=Ze(""),Ft=Ze(":dels"),Ut=ke.type,Tt=ke.type==="deleteRange"?[ke.range]:ke.type==="delete"?[ke.keys]:ke.values.length<50?[Wu(Pe,ke).filter(function(Bt){return Bt}),ke.values]:[],kt=Tt[0],Dt=Tt[1],Tt=ke.trans._cache;return s(kt)?(Rt.addKeys(kt),(Tt=Ut==="delete"||kt.length===Dt.length?wg(kt,Tt):null)||Ft.addKeys(kt),(Tt||Dt)&&($e=Ze,Be=Tt,ot=Dt,Re.indexes.forEach(function(Bt){var zt=$e(Bt.name||"");function Mn(Wn){return Wn!=null?Bt.extractKey(Wn):null}function Un(Wn){return Bt.multiEntry&&s(Wn)?Wn.forEach(function(Di){return zt.addKey(Di)}):zt.addKey(Wn)}(Be||ot).forEach(function(Wn,ea){var _n=Be&&Mn(Be[ea]),ea=ot&&Mn(ot[ea]);ar(_n,ea)!==0&&(_n!=null&&Un(_n),ea!=null&&Un(ea))})}))):kt?(Dt={from:(Dt=kt.lower)!==null&&Dt!==void 0?Dt:k.MIN_KEY,to:(Dt=kt.upper)!==null&&Dt!==void 0?Dt:k.MAX_KEY},Ft.add(Dt),Rt.add(Dt)):(Rt.add(J),Ft.add(J),Re.indexes.forEach(function(Bt){return Ze(Bt.name).add(J)})),he.mutate(ke).then(function(Bt){return!kt||ke.type!=="add"&&ke.type!=="put"||(Rt.addKeys(Bt.results),Ae&&Ae.forEach(function(zt){for(var Mn=ke.values.map(function(_n){return zt.extractKey(_n)}),Un=zt.keyPath.findIndex(function(_n){return _n===Pe.keyPath}),Wn=0,Di=Bt.results.length;Wn<Di;++Wn)Mn[Wn][Un]=Bt.results[Wn];Ze(zt.name).addKeys(Mn)})),ft.mutatedParts=Nl(ft.mutatedParts||{},st),Bt})}}),be=function(Ze){var $e=Ze.query,Ze=$e.index,$e=$e.range;return[Ze,new bi((Ze=$e.lower)!==null&&Ze!==void 0?Ze:k.MIN_KEY,($e=$e.upper)!==null&&$e!==void 0?$e:k.MAX_KEY)]},Xe={get:function(ke){return[Pe,new bi(ke.key)]},getMany:function(ke){return[Pe,new bi().addKeys(ke.keys)]},count:be,query:be,openCursor:be};return o(Xe).forEach(function(ke){Oe[ke]=function(Ze){var $e=je.subscr,Be=!!$e,ot=dd(je,he)&&Yu(ke,Ze)?Ze.obsSet={}:$e;if(Be){var ft=function(Dt){return Dt="idb://".concat(W,"/").concat(ue,"/").concat(Dt),ot[Dt]||(ot[Dt]=new bi)},st=ft(""),Rt=ft(":dels"),$e=Xe[ke](Ze),Be=$e[0],$e=$e[1];if((ke==="query"&&Be.isPrimaryKey&&!Ze.values?Rt:ft(Be.name||"")).add($e),!Be.isPrimaryKey){if(ke!=="count"){var Ft=ke==="query"&&Ke&&Ze.values&&he.query(r(r({},Ze),{values:!1}));return he[ke].apply(this,arguments).then(function(Dt){if(ke==="query"){if(Ke&&Ze.values)return Ft.then(function(Mn){return Mn=Mn.result,st.addKeys(Mn),Dt});var Tt=Ze.values?Dt.result.map(Ie):Dt.result;(Ze.values?st:Rt).addKeys(Tt)}else if(ke==="openCursor"){var Bt=Dt,zt=Ze.values;return Bt&&Object.create(Bt,{key:{get:function(){return Rt.addKey(Bt.primaryKey),Bt.key}},primaryKey:{get:function(){var Mn=Bt.primaryKey;return Rt.addKey(Mn),Mn}},value:{get:function(){return zt&&st.addKey(Bt.primaryKey),Bt.value}}})}return Dt})}Rt.add(J)}}return he[ke].apply(this,arguments)}}),Oe}})}};function xi(k,W,J){if(J.numFailures===0)return W;if(W.type==="deleteRange")return null;var ue=W.keys?W.keys.length:"values"in W&&W.values?W.values.length:1;return J.numFailures===ue?null:(W=r({},W),s(W.keys)&&(W.keys=W.keys.filter(function(he,Re){return!(Re in J.failures)})),"values"in W&&s(W.values)&&(W.values=W.values.filter(function(he,Re){return!(Re in J.failures)})),W)}function El(k,W){return J=k,((ue=W).lower===void 0||(ue.lowerOpen?0<ar(J,ue.lower):0<=ar(J,ue.lower)))&&(k=k,(W=W).upper===void 0||(W.upperOpen?ar(k,W.upper)<0:ar(k,W.upper)<=0));var J,ue}function Bu(k,W,Xe,ue,he,Re){if(!Xe||Xe.length===0)return k;var Pe=W.query.index,Ie=Pe.multiEntry,Ke=W.query.range,Ae=ue.schema.primaryKey.extractKey,Oe=Pe.extractKey,be=(Pe.lowLevelIndex||Pe).extractKey,Xe=Xe.reduce(function(ke,Ze){var $e=ke,Be=[];if(Ze.type==="add"||Ze.type==="put")for(var ot=new bi,ft=Ze.values.length-1;0<=ft;--ft){var st,Rt=Ze.values[ft],Ft=Ae(Rt);ot.hasKey(Ft)||(st=Oe(Rt),(Ie&&s(st)?st.some(function(Bt){return El(Bt,Ke)}):El(st,Ke))&&(ot.addKey(Ft),Be.push(Rt)))}switch(Ze.type){case"add":var Ut=new bi().addKeys(W.values?ke.map(function(zt){return Ae(zt)}):ke),$e=ke.concat(W.values?Be.filter(function(zt){return zt=Ae(zt),!Ut.hasKey(zt)&&(Ut.addKey(zt),!0)}):Be.map(function(zt){return Ae(zt)}).filter(function(zt){return!Ut.hasKey(zt)&&(Ut.addKey(zt),!0)}));break;case"put":var kt=new bi().addKeys(Ze.values.map(function(zt){return Ae(zt)}));$e=ke.filter(function(zt){return!kt.hasKey(W.values?Ae(zt):zt)}).concat(W.values?Be:Be.map(function(zt){return Ae(zt)}));break;case"delete":var Dt=new bi().addKeys(Ze.keys);$e=ke.filter(function(zt){return!Dt.hasKey(W.values?Ae(zt):zt)});break;case"deleteRange":var Tt=Ze.range;$e=ke.filter(function(zt){return!El(Ae(zt),Tt)})}return $e},k);return Xe===k?k:(Xe.sort(function(ke,Ze){return ar(be(ke),be(Ze))||ar(Ae(ke),Ae(Ze))}),W.limit&&W.limit<1/0&&(Xe.length>W.limit?Xe.length=W.limit:k.length===W.limit&&Xe.length<W.limit&&(he.dirty=!0)),Re?Object.freeze(Xe):Xe)}function np(k,W){return ar(k.lower,W.lower)===0&&ar(k.upper,W.upper)===0&&!!k.lowerOpen==!!W.lowerOpen&&!!k.upperOpen==!!W.upperOpen}function Dy(k,W){return function(J,ue,he,Re){if(J===void 0)return ue!==void 0?-1:0;if(ue===void 0)return 1;if((ue=ar(J,ue))===0){if(he&&Re)return 0;if(he)return 1;if(Re)return-1}return ue}(k.lower,W.lower,k.lowerOpen,W.lowerOpen)<=0&&0<=function(J,ue,he,Re){if(J===void 0)return ue!==void 0?1:0;if(ue===void 0)return-1;if((ue=ar(J,ue))===0){if(he&&Re)return 0;if(he)return-1;if(Re)return 1}return ue}(k.upper,W.upper,k.upperOpen,W.upperOpen)}function Vy(k,W,J,ue){k.subscribers.add(J),ue.addEventListener("abort",function(){var he,Re;k.subscribers.delete(J),k.subscribers.size===0&&(he=k,Re=W,setTimeout(function(){he.subscribers.size===0&&Q(Re,he)},3e3))})}var Lg={stack:"dbcore",level:0,name:"Cache",create:function(k){var W=k.schema.name;return r(r({},k),{transaction:function(J,ue,he){var Re,Pe,Ie=k.transaction(J,ue,he);return ue==="readwrite"&&(Pe=(Re=new AbortController).signal,he=function(Ke){return function(){if(Re.abort(),ue==="readwrite"){for(var Ae=new Set,Oe=0,be=J;Oe<be.length;Oe++){var Xe=be[Oe],ke=Il["idb://".concat(W,"/").concat(Xe)];if(ke){var Ze=k.table(Xe),$e=ke.optimisticOps.filter(function(zt){return zt.trans===Ie});if(Ie._explicit&&Ke&&Ie.mutatedParts)for(var Be=0,ot=Object.values(ke.queries.query);Be<ot.length;Be++)for(var ft=0,st=(Ut=ot[Be]).slice();ft<st.length;ft++)Vu((kt=st[ft]).obsSet,Ie.mutatedParts)&&(Q(Ut,kt),kt.subscribers.forEach(function(zt){return Ae.add(zt)}));else if(0<$e.length){ke.optimisticOps=ke.optimisticOps.filter(function(zt){return zt.trans!==Ie});for(var Rt=0,Ft=Object.values(ke.queries.query);Rt<Ft.length;Rt++)for(var Ut,kt,Dt,Tt=0,Bt=(Ut=Ft[Rt]).slice();Tt<Bt.length;Tt++)(kt=Bt[Tt]).res!=null&&Ie.mutatedParts&&(Ke&&!kt.dirty?(Dt=Object.isFrozen(kt.res),Dt=Bu(kt.res,kt.req,$e,Ze,kt,Dt),kt.dirty?(Q(Ut,kt),kt.subscribers.forEach(function(zt){return Ae.add(zt)})):Dt!==kt.res&&(kt.res=Dt,kt.promise=dt.resolve({result:Dt}))):(kt.dirty&&Q(Ut,kt),kt.subscribers.forEach(function(zt){return Ae.add(zt)})))}}}Ae.forEach(function(zt){return zt()})}}},Ie.addEventListener("abort",he(!1),{signal:Pe}),Ie.addEventListener("error",he(!1),{signal:Pe}),Ie.addEventListener("complete",he(!0),{signal:Pe})),Ie},table:function(J){var ue=k.table(J),he=ue.schema.primaryKey;return r(r({},ue),{mutate:function(Re){var Pe=je.trans;if(he.outbound||Pe.db._options.cache==="disabled"||Pe.explicit||Pe.idbtrans.mode!=="readwrite")return ue.mutate(Re);var Ie=Il["idb://".concat(W,"/").concat(J)];return Ie?(Pe=ue.mutate(Re),Re.type!=="add"&&Re.type!=="put"||!(50<=Re.values.length||Wu(he,Re).some(function(Ke){return Ke==null}))?(Ie.optimisticOps.push(Re),Re.mutatedParts&&kl(Re.mutatedParts),Pe.then(function(Ke){0<Ke.numFailures&&(Q(Ie.optimisticOps,Re),(Ke=xi(0,Re,Ke))&&Ie.optimisticOps.push(Ke),Re.mutatedParts&&kl(Re.mutatedParts))}),Pe.catch(function(){Q(Ie.optimisticOps,Re),Re.mutatedParts&&kl(Re.mutatedParts)})):Pe.then(function(Ke){var Ae=xi(0,r(r({},Re),{values:Re.values.map(function(Oe,be){var Xe;return Ke.failures[be]?Oe:(Oe=(Xe=he.keyPath)!==null&&Xe!==void 0&&Xe.includes(".")?P(Oe):r({},Oe),S(Oe,he.keyPath,Ke.results[be]),Oe)})}),Ke);Ie.optimisticOps.push(Ae),queueMicrotask(function(){return Re.mutatedParts&&kl(Re.mutatedParts)})}),Pe):ue.mutate(Re)},query:function(Re){if(!dd(je,ue)||!Yu("query",Re))return ue.query(Re);var Pe=((Ae=je.trans)===null||Ae===void 0?void 0:Ae.db._options.cache)==="immutable",be=je,Ie=be.requery,Ke=be.signal,Ae=function(Ze,$e,Be,ot){var ft=Il["idb://".concat(Ze,"/").concat($e)];if(!ft)return[];if(!($e=ft.queries[Be]))return[null,!1,ft,null];var st=$e[(ot.query?ot.query.index.name:null)||""];if(!st)return[null,!1,ft,null];switch(Be){case"query":var Rt=st.find(function(Ft){return Ft.req.limit===ot.limit&&Ft.req.values===ot.values&&np(Ft.req.query.range,ot.query.range)});return Rt?[Rt,!0,ft,st]:[st.find(function(Ft){return("limit"in Ft.req?Ft.req.limit:1/0)>=ot.limit&&(!ot.values||Ft.req.values)&&Dy(Ft.req.query.range,ot.query.range)}),!1,ft,st];case"count":return Rt=st.find(function(Ft){return np(Ft.req.query.range,ot.query.range)}),[Rt,!!Rt,ft,st]}}(W,J,"query",Re),Oe=Ae[0],be=Ae[1],Xe=Ae[2],ke=Ae[3];return Oe&&be?Oe.obsSet=Re.obsSet:(be=ue.query(Re).then(function(Ze){var $e=Ze.result;if(Oe&&(Oe.res=$e),Pe){for(var Be=0,ot=$e.length;Be<ot;++Be)Object.freeze($e[Be]);Object.freeze($e)}else Ze.result=P($e);return Ze}).catch(function(Ze){return ke&&Oe&&Q(ke,Oe),Promise.reject(Ze)}),Oe={obsSet:Re.obsSet,promise:be,subscribers:new Set,type:"query",req:Re,dirty:!1},ke?ke.push(Oe):(ke=[Oe],(Xe=Xe||(Il["idb://".concat(W,"/").concat(J)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[Re.query.index.name||""]=ke)),Vy(Oe,ke,Ie,Ke),Oe.promise.then(function(Ze){return{result:Bu(Ze.result,Re,Xe==null?void 0:Xe.optimisticOps,ue,Oe,Pe)}})}})}})}};function rp(k,W){return new Proxy(k,{get:function(J,ue,he){return ue==="db"?W:Reflect.get(J,ue,he)}})}var li=(wr.prototype.version=function(k){if(isNaN(k)||k<.1)throw new se.Type("Given version is not a positive number");if(k=Math.round(10*k)/10,this.idbdb||this._state.isBeingOpened)throw new se.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,k);var W=this._versions,J=W.filter(function(ue){return ue._cfg.version===k})[0];return J||(J=new this.Version(k),W.push(J),W.sort(Lc),J.stores({}),this._state.autoSchema=!1,J)},wr.prototype._whenReady=function(k){var W=this;return this.idbdb&&(this._state.openComplete||je.letThrough||this._vip)?k():new dt(function(J,ue){if(W._state.openComplete)return ue(new se.DatabaseClosed(W._state.dbOpenError));if(!W._state.isBeingOpened){if(!W._state.autoOpen)return void ue(new se.DatabaseClosed);W.open().catch(fe)}W._state.dbReadyPromise.then(J,ue)}).then(k)},wr.prototype.use=function(k){var W=k.stack,J=k.create,ue=k.level,he=k.name;return he&&this.unuse({stack:W,name:he}),k=this._middlewares[W]||(this._middlewares[W]=[]),k.push({stack:W,create:J,level:ue??10,name:he}),k.sort(function(Re,Pe){return Re.level-Pe.level}),this},wr.prototype.unuse=function(k){var W=k.stack,J=k.name,ue=k.create;return W&&this._middlewares[W]&&(this._middlewares[W]=this._middlewares[W].filter(function(he){return ue?he.create!==ue:!!J&&he.name!==J})),this},wr.prototype.open=function(){var k=this;return go(ut,function(){return Cc(k)})},wr.prototype._close=function(){var k=this._state,W=Cu.indexOf(this);if(0<=W&&Cu.splice(W,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}k.isBeingOpened||(k.dbReadyPromise=new dt(function(J){k.dbReadyResolve=J}),k.openCanceller=new dt(function(J,ue){k.cancelOpen=ue}))},wr.prototype.close=function(J){var W=(J===void 0?{disableAutoOpen:!0}:J).disableAutoOpen,J=this._state;W?(J.isBeingOpened&&J.cancelOpen(new se.DatabaseClosed),this._close(),J.autoOpen=!1,J.dbOpenError=new se.DatabaseClosed):(this._close(),J.autoOpen=this._options.autoOpen||J.isBeingOpened,J.openComplete=!1,J.dbOpenError=null)},wr.prototype.delete=function(k){var W=this;k===void 0&&(k={disableAutoOpen:!0});var J=0<arguments.length&&typeof arguments[0]!="object",ue=this._state;return new dt(function(he,Re){function Pe(){W.close(k);var Ie=W._deps.indexedDB.deleteDatabase(W.name);Ie.onsuccess=Vn(function(){var Ke,Ae,Oe;Ke=W._deps,Ae=W.name,Oe=Ke.indexedDB,Ke=Ke.IDBKeyRange,Ri(Oe)||Ae===Uh||ld(Oe,Ke).delete(Ae).catch(fe),he()}),Ie.onerror=gs(Re),Ie.onblocked=W._fireOnBlocked}if(J)throw new se.InvalidArgument("Invalid closeOptions argument to db.delete()");ue.isBeingOpened?ue.dbReadyPromise.then(Pe):Pe()})},wr.prototype.backendDB=function(){return this.idbdb},wr.prototype.isOpen=function(){return this.idbdb!==null},wr.prototype.hasBeenClosed=function(){var k=this._state.dbOpenError;return k&&k.name==="DatabaseClosed"},wr.prototype.hasFailed=function(){return this._state.dbOpenError!==null},wr.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(wr.prototype,"tables",{get:function(){var k=this;return o(this._allTables).map(function(W){return k._allTables[W]})},enumerable:!1,configurable:!0}),wr.prototype.transaction=function(){var k=(function(W,J,ue){var he=arguments.length;if(he<2)throw new se.InvalidArgument("Too few arguments");for(var Re=new Array(he-1);--he;)Re[he-1]=arguments[he];return ue=Re.pop(),[W,T(Re),ue]}).apply(this,arguments);return this._transaction.apply(this,k)},wr.prototype._transaction=function(k,W,J){var ue=this,he=je.trans;he&&he.db===this&&k.indexOf("!")===-1||(he=null);var Re,Pe,Ie=k.indexOf("?")!==-1;k=k.replace("!","").replace("?","");try{if(Pe=W.map(function(Ae){if(Ae=Ae instanceof ue.Table?Ae.name:Ae,typeof Ae!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return Ae}),k=="r"||k===Wh)Re=Wh;else{if(k!="rw"&&k!=Yh)throw new se.InvalidArgument("Invalid transaction mode: "+k);Re=Yh}if(he){if(he.mode===Wh&&Re===Yh){if(!Ie)throw new se.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");he=null}he&&Pe.forEach(function(Ae){if(he&&he.storeNames.indexOf(Ae)===-1){if(!Ie)throw new se.SubTransaction("Table "+Ae+" not included in parent transaction.");he=null}}),Ie&&he&&!he.active&&(he=null)}}catch(Ae){return he?he._promise(null,function(Oe,be){be(Ae)}):$r(Ae)}var Ke=(function Ae(Oe,be,Xe,ke,Ze){return dt.resolve().then(function(){var $e=je.transless||je,Be=Oe._createTransaction(be,Xe,Oe._dbSchema,ke);if(Be.explicit=!0,$e={trans:Be,transless:$e},ke)Be.idbtrans=ke.idbtrans;else try{Be.create(),Be.idbtrans._explicit=!0,Oe._state.PR1398_maxLoop=3}catch(st){return st.name===xe.InvalidState&&Oe.isOpen()&&0<--Oe._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),Oe.close({disableAutoOpen:!1}),Oe.open().then(function(){return Ae(Oe,be,Xe,null,Ze)})):$r(st)}var ot,ft=Z(Ze);return ft&&Mc(),$e=dt.follow(function(){var st;(ot=Ze.call(Be,Be))&&(ft?(st=vo.bind(null,null),ot.then(st,st)):typeof ot.next=="function"&&typeof ot.throw=="function"&&(ot=ep(ot)))},$e),(ot&&typeof ot.then=="function"?dt.resolve(ot).then(function(st){return Be.active?st:$r(new se.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):$e.then(function(){return ot})).then(function(st){return ke&&Be._resolve(),Be._completion.then(function(){return st})}).catch(function(st){return Be._reject(st),$r(st)})})}).bind(null,this,Re,Pe,he,J);return he?he._promise(Re,Ke,"lock"):je.trans?go(je.transless,function(){return ue._whenReady(Ke)}):this._whenReady(Ke)},wr.prototype.table=function(k){if(!f(this._allTables,k))throw new se.InvalidTable("Table ".concat(k," does not exist"));return this._allTables[k]},wr);function wr(k,W){var J=this;this._middlewares={},this.verno=0;var ue=wr.dependencies;this._options=W=r({addons:wr.addons,autoOpen:!0,indexedDB:ue.indexedDB,IDBKeyRange:ue.IDBKeyRange,cache:"cloned"},W),this._deps={indexedDB:W.indexedDB,IDBKeyRange:W.IDBKeyRange},ue=W.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var he,Re,Pe,Ie,Ke,Ae={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:fe,dbReadyPromise:null,cancelOpen:fe,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:W.autoOpen};Ae.dbReadyPromise=new dt(function(be){Ae.dbReadyResolve=be}),Ae.openCanceller=new dt(function(be,Xe){Ae.cancelOpen=Xe}),this._state=Ae,this.name=k,this.on=ed(this,"populate","blocked","versionchange","close",{ready:[Se,fe]}),this.on.ready.subscribe=R(this.on.ready.subscribe,function(be){return function(Xe,ke){wr.vip(function(){var Ze,$e=J._state;$e.openComplete?($e.dbOpenError||dt.resolve().then(Xe),ke&&be(Xe)):$e.onReadyBeingFired?($e.onReadyBeingFired.push(Xe),ke&&be(Xe)):(be(Xe),Ze=J,ke||be(function Be(){Ze.on.ready.unsubscribe(Xe),Ze.on.ready.unsubscribe(Be)}))})}}),this.Collection=(he=this,Iu(Ag.prototype,function(ot,Be){this.db=he;var ke=mg,Ze=null;if(Be)try{ke=Be()}catch(ft){Ze=ft}var $e=ot._ctx,Be=$e.table,ot=Be.hook.reading.fire;this._ctx={table:Be,index:$e.index,isPrimKey:!$e.index||Be.schema.primKey.keyPath&&$e.index===Be.schema.primKey.name,range:ke,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:Ze,or:$e.or,valueMapper:ot!==re?ot:null}})),this.Table=(Re=this,Iu(qf.prototype,function(be,Xe,ke){this.db=Re,this._tx=ke,this.name=be,this.schema=Xe,this.hook=Re._allTables[be]?Re._allTables[be].hook:ed(null,{creating:[oe,fe],reading:[X,re],updating:[le,fe],deleting:[ae,fe]})})),this.Transaction=(Pe=this,Iu(I0.prototype,function(be,Xe,ke,Ze,$e){var Be=this;this.db=Pe,this.mode=be,this.storeNames=Xe,this.schema=ke,this.chromeTransactionDurability=Ze,this.idbtrans=null,this.on=ed(this,"complete","error","abort"),this.parent=$e||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new dt(function(ot,ft){Be._resolve=ot,Be._reject=ft}),this._completion.then(function(){Be.active=!1,Be.on.complete.fire()},function(ot){var ft=Be.active;return Be.active=!1,Be.on.error.fire(ot),Be.parent?Be.parent._reject(ot):ft&&Be.idbtrans&&Be.idbtrans.abort(),$r(ot)})})),this.Version=(Ie=this,Iu(Xy.prototype,function(be){this.db=Ie,this._cfg={version:be,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(Ke=this,Iu(bg.prototype,function(be,Xe,ke){if(this.db=Ke,this._ctx={table:be,index:Xe===":id"?null:Xe,or:ke},this._cmp=this._ascending=ar,this._descending=function(Ze,$e){return ar($e,Ze)},this._max=function(Ze,$e){return 0<ar(Ze,$e)?Ze:$e},this._min=function(Ze,$e){return ar(Ze,$e)<0?Ze:$e},this._IDBKeyRange=Ke._deps.IDBKeyRange,!this._IDBKeyRange)throw new se.MissingAPI})),this.on("versionchange",function(be){0<be.newVersion?console.warn("Another connection wants to upgrade database '".concat(J.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(J.name,"'. Closing db now to resume the delete request.")),J.close({disableAutoOpen:!1})}),this.on("blocked",function(be){!be.newVersion||be.newVersion<be.oldVersion?console.warn("Dexie.delete('".concat(J.name,"') was blocked")):console.warn("Upgrade '".concat(J.name,"' blocked by other connection holding version ").concat(be.oldVersion/10))}),this._maxKey=od(W.IDBKeyRange),this._createTransaction=function(be,Xe,ke,Ze){return new J.Transaction(be,Xe,ke,J._options.chromeTransactionDurability,Ze)},this._fireOnBlocked=function(be){J.on("blocked").fire(be),Cu.filter(function(Xe){return Xe.name===J.name&&Xe!==J&&!Xe._state.vcFired}).map(function(Xe){return Xe.on("versionchange").fire(be)})},this.use(E0),this.use(Lg),this.use(Nc),this.use(_g),this.use(fd);var Oe=new Proxy(this,{get:function(be,Xe,ke){if(Xe==="_vip")return!0;if(Xe==="table")return function($e){return rp(J.table($e),Oe)};var Ze=Reflect.get(be,Xe,ke);return Ze instanceof qf?rp(Ze,Oe):Xe==="tables"?Ze.map(function($e){return rp($e,Oe)}):Xe==="_createTransaction"?function(){return rp(Ze.apply(this,arguments),Oe)}:Ze}});this.vip=Oe,ue.forEach(function(be){return be(J)})}var Fl,Zo=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",ap=(Xl.prototype.subscribe=function(k,W,J){return this._subscribe(k&&typeof k!="function"?k:{next:k,error:W,complete:J})},Xl.prototype[Zo]=function(){return this},Xl);function Xl(k){this._subscribe=k}try{Fl={indexedDB:i.indexedDB||i.mozIndexedDB||i.webkitIndexedDB||i.msIndexedDB,IDBKeyRange:i.IDBKeyRange||i.webkitIDBKeyRange}}catch{Fl={indexedDB:null,IDBKeyRange:null}}function Zu(k){var W,J=!1,ue=new ap(function(he){var Re=Z(k),Pe,Ie=!1,Ke={},Ae={},Oe={get closed(){return Ie},unsubscribe:function(){Ie||(Ie=!0,Pe&&Pe.abort(),be&&Pl.storagemutated.unsubscribe(ke))}};he.start&&he.start(Oe);var be=!1,Xe=function(){return Wo(Ze)},ke=function($e){Nl(Ke,$e),Vu(Ae,Ke)&&Xe()},Ze=function(){var $e,Be,ot;!Ie&&Fl.indexedDB&&(Ke={},$e={},Pe&&Pe.abort(),Pe=new AbortController,ot=function(ft){var st=eo();try{Re&&Mc();var Rt=Ll(k,ft);return Rt=Re?Rt.finally(vo):Rt}finally{st&&Ei()}}(Be={subscr:$e,signal:Pe.signal,requery:Xe,querier:k,trans:null}),Promise.resolve(ot).then(function(ft){J=!0,W=ft,Ie||Be.signal.aborted||(Ke={},function(st){for(var Rt in st)if(f(st,Rt))return;return 1}(Ae=$e)||be||(Pl(Qh,ke),be=!0),Wo(function(){return!Ie&&he.next&&he.next(ft)}))},function(ft){J=!1,["DatabaseClosedError","AbortError"].includes(ft==null?void 0:ft.name)||Ie||Wo(function(){Ie||he.error&&he.error(ft)})}))};return setTimeout(Xe,0),Oe});return ue.hasValue=function(){return J},ue.getValue=function(){return W},ue}var Xi=li;function Qu(k){var W=Dl;try{Dl=!0,Pl.storagemutated.fire(k),jh(k,!0)}finally{Dl=W}}d(Xi,r(r({},de),{delete:function(k){return new Xi(k,{addons:[]}).delete()},exists:function(k){return new Xi(k,{addons:[]}).open().then(function(W){return W.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(k){try{return W=Xi.dependencies,J=W.indexedDB,W=W.IDBKeyRange,(Ri(J)?Promise.resolve(J.databases()).then(function(ue){return ue.map(function(he){return he.name}).filter(function(he){return he!==Uh})}):ld(J,W).toCollection().primaryKeys()).then(k)}catch{return $r(new se.MissingAPI)}var W,J},defineClass:function(){return function(k){l(this,k)}},ignoreTransaction:function(k){return je.trans?go(je.transless,k):k()},vip:Mg,async:function(k){return function(){try{var W=ep(k.apply(this,arguments));return W&&typeof W.then=="function"?W:dt.resolve(W)}catch(J){return $r(J)}}},spawn:function(k,W,J){try{var ue=ep(k.apply(J,W||[]));return ue&&typeof ue.then=="function"?ue:dt.resolve(ue)}catch(he){return $r(he)}},currentTransaction:{get:function(){return je.trans||null}},waitFor:function(k,W){return W=dt.resolve(typeof k=="function"?Xi.ignoreTransaction(k):k).timeout(W||6e4),je.trans?je.trans.waitFor(W):W},Promise:dt,debug:{get:function(){return me},set:function(k){ye(k)}},derive:v,extend:l,props:d,override:R,Events:ed,on:Pl,liveQuery:Zu,extendObservabilitySet:Nl,getByKeyPath:M,setByKeyPath:S,delByKeyPath:function(k,W){typeof W=="string"?S(k,W,void 0):"length"in W&&[].map.call(W,function(J){S(k,J,void 0)})},shallowClone:w,deepClone:P,getObjectDiff:ud,cmp:ar,asap:x,minKey:-1/0,addons:[],connections:Cu,errnames:xe,dependencies:Fl,cache:Il,semVer:"4.0.11",version:"4.0.11".split(".").map(function(k){return parseInt(k)}).reduce(function(k,W,J){return k+W/Math.pow(10,2*J)})})),Xi.maxKey=od(Xi.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Pl(Qh,function(k){Dl||(k=new CustomEvent(xg,{detail:k}),Dl=!0,dispatchEvent(k),Dl=!1)}),addEventListener(xg,function(k){k=k.detail,Dl||Qu(k)}));var Ku,Dl=!1,Tg=function(){};return typeof BroadcastChannel<"u"&&((Tg=function(){(Ku=new BroadcastChannel(xg)).onmessage=function(k){return k.data&&Qu(k.data)}})(),typeof Ku.unref=="function"&&Ku.unref(),Pl(Qh,function(k){Dl||Ku.postMessage(k)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(k){if(!li.disableBfCache&&k.persisted){me&&console.debug("Dexie: handling persisted pagehide"),Ku!=null&&Ku.close();for(var W=0,J=Cu;W<J.length;W++)J[W].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(k){!li.disableBfCache&&k.persisted&&(me&&console.debug("Dexie: handling persisted pageshow"),Tg(),Qu({all:new bi(-1/0,[[]])}))})),dt.rejectionMapper=function(k,W){return!k||k instanceof G||k instanceof TypeError||k instanceof SyntaxError||!k.name||!z[k.name]?k:(W=new z[k.name](W||k.message,k),"stack"in k&&p(W,"stack",{get:function(){return this.inner.stack}}),W)},ye(me),r(li,Object.freeze({__proto__:null,Dexie:li,liveQuery:Zu,Entity:Ny,cmp:ar,PropModification:Eu,replacePrefix:function(k,W){return new Eu({replacePrefix:[k,W]})},add:function(k){return new Eu({add:k})},remove:function(k){return new Eu({remove:k})},default:li,RangeSet:bi,mergeRanges:Bo,rangesOverlap:zh}),{default:li}),li})})(KSe);var XXe=KSe.exports;const bG=ng(XXe),ppe=Symbol.for("Dexie"),nS=globalThis[ppe]||(globalThis[ppe]=bG);if(bG.semVer!==nS.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${bG.semVer} and ${nS.semVer}`);const{liveQuery:eEt,mergeRanges:tEt,rangesOverlap:nEt,RangeSet:rEt,cmp:aEt,Entity:iEt,PropModification:oEt,replacePrefix:sEt,add:lEt,remove:cEt}=nS,VF="PPTIST_DISCARDED_DB",xG="PPTist",DXe=async()=>{const t=new Date().getTime(),e=localStorage.getItem(VF),n=e?JSON.parse(e):[],a=(await nS.getDatabaseNames()).filter(i=>{if(i.indexOf(xG)===-1)return!1;const[o,s,l]=i.split("_");return!!(o!==xG||!s||!l||n.includes(s)||t-+l>=1e3*60*60*12)});for(const i of a)nS.delete(i);localStorage.removeItem(VF)},iu=new nS(`${xG}_${QSe}_${new Date().getTime()}`);iu.version(1).stores({snapshots:"++id",writingBoardImgs:"id"});const TD=l8("snapshot",{state:()=>({snapshotCursor:-1,snapshotLength:0}),getters:{canUndo(t){return t.snapshotCursor>0},canRedo(t){return t.snapshotCursor<t.snapshotLength-1}},actions:{setSnapshotCursor(t){this.snapshotCursor=t},setSnapshotLength(t){this.snapshotLength=t},async initSnapshotDatabase(){const t=It(),e={index:t.slideIndex,slides:JSON.parse(JSON.stringify(t.slides))};await iu.snapshots.add(e),this.setSnapshotCursor(0),this.setSnapshotLength(1)},async addSnapshot(){const t=It(),e=await iu.snapshots.orderBy("id").keys();let n=[];this.snapshotCursor>=0&&this.snapshotCursor<e.length-1&&(n=e.slice(this.snapshotCursor+1));const r={index:t.slideIndex,slides:JSON.parse(JSON.stringify(t.slides))};await iu.snapshots.add(r);let a=e.length-n.length+1;a>20&&(n.push(e[0]),a--),a>=2&&iu.snapshots.update(e[a-2],{index:t.slideIndex}),await iu.snapshots.bulkDelete(n),this.setSnapshotCursor(a-1),this.setSnapshotLength(a)},async unDo(){if(this.snapshotCursor<=0)return;const t=It(),e=Wt(),n=this.snapshotCursor-1,a=(await iu.snapshots.orderBy("id").toArray())[n],{index:i,slides:o}=a,s=i>o.length-1?o.length-1:i;t.setSlides(o),t.updateSlideIndex(s),this.setSnapshotCursor(n),e.setActiveElementIdList([])},async reDo(){if(this.snapshotCursor>=this.snapshotLength-1)return;const t=It(),e=Wt(),n=this.snapshotCursor+1,a=(await iu.snapshots.orderBy("id").toArray())[n],{index:i,slides:o}=a,s=i>o.length-1?o.length-1:i;t.setSlides(o),t.updateSlideIndex(s),this.setSnapshotCursor(n),e.setActiveElementIdList([])}}}),xc=l8("keyboard",{state:()=>({ctrlKeyState:!1,shiftKeyState:!1,spaceKeyState:!1}),getters:{ctrlOrShiftKeyActive(t){return t.ctrlKeyState||t.shiftKeyState}},actions:{setCtrlKeyState(t){this.ctrlKeyState=t},setShiftKeyState(t){this.shiftKeyState=t},setSpaceKeyState(t){this.spaceKeyState=t}}}),HSe=l8("screen",{state:()=>({screening:!1}),actions:{setScreening(t){this.screening=t}}}),H5=(t,e)=>Vr.padStart(""+t,e,"0"),VXe=()=>!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|Mobile|BlackBerry|Symbian|Windows Phone)/i),UXe=t=>/^(https?:\/\/)([\w-]+\.)+[\w-]{2,}(\/[\w-./?%&=]*)?$/i.test(t),gZ=(t,e,n=1e-10)=>Math.abs(t-e)<n;function GSe(t,e){return function(){return t.apply(e,arguments)}}const{toString:WXe}=Object.prototype,{getPrototypeOf:Rj}=Object,OD=(t=>e=>{const n=WXe.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Bf=t=>(t=t.toLowerCase(),e=>OD(e)===t),PD=t=>e=>typeof e===t,{isArray:NS}=Array,Sw=PD("undefined");function YXe(t){return t!==null&&!Sw(t)&&t.constructor!==null&&!Sw(t.constructor)&&vc(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const $Se=Bf("ArrayBuffer");function BXe(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&$Se(t.buffer),e}const ZXe=PD("string"),vc=PD("function"),zSe=PD("number"),CD=t=>t!==null&&typeof t=="object",QXe=t=>t===!0||t===!1,OE=t=>{if(OD(t)!=="object")return!1;const e=Rj(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},KXe=Bf("Date"),HXe=Bf("File"),GXe=Bf("Blob"),$Xe=Bf("FileList"),zXe=t=>CD(t)&&vc(t.pipe),JXe=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||vc(t.append)&&((e=OD(t))==="formdata"||e==="object"&&vc(t.toString)&&t.toString()==="[object FormData]"))},jXe=Bf("URLSearchParams"),[qXe,eDe,tDe,nDe]=["ReadableStream","Request","Response","Headers"].map(Bf),rDe=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function u8(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,a;if(typeof t!="object"&&(t=[t]),NS(t))for(r=0,a=t.length;r<a;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(r=0;r<o;r++)s=i[r],e.call(null,t[s],s,t)}}function JSe(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,a;for(;r-- >0;)if(a=n[r],e===a.toLowerCase())return a;return null}const P2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jSe=t=>!Sw(t)&&t!==P2;function SG(){const{caseless:t}=jSe(this)&&this||{},e={},n=(r,a)=>{const i=t&&JSe(e,a)||a;OE(e[i])&&OE(r)?e[i]=SG(e[i],r):OE(r)?e[i]=SG({},r):NS(r)?e[i]=r.slice():e[i]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&u8(arguments[r],n);return e}const aDe=(t,e,n,{allOwnKeys:r}={})=>(u8(e,(a,i)=>{n&&vc(a)?t[i]=GSe(a,n):t[i]=a},{allOwnKeys:r}),t),iDe=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),oDe=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},sDe=(t,e,n,r)=>{let a,i,o;const s={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),i=a.length;i-- >0;)o=a[i],(!r||r(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=n!==!1&&Rj(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},lDe=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},cDe=t=>{if(!t)return null;if(NS(t))return t;let e=t.length;if(!zSe(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},uDe=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Rj(Uint8Array)),fDe=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let a;for(;(a=r.next())&&!a.done;){const i=a.value;e.call(t,i[0],i[1])}},dDe=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},hDe=Bf("HTMLFormElement"),pDe=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),vpe=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),vDe=Bf("RegExp"),qSe=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};u8(n,(a,i)=>{let o;(o=e(a,i,t))!==!1&&(r[i]=o||a)}),Object.defineProperties(t,r)},gDe=t=>{qSe(t,(e,n)=>{if(vc(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(vc(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},mDe=(t,e)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return NS(t)?r(t):r(String(t).split(e)),n},yDe=()=>{},ADe=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,mZ="abcdefghijklmnopqrstuvwxyz",gpe="0123456789",e4e={DIGIT:gpe,ALPHA:mZ,ALPHA_DIGIT:mZ+mZ.toUpperCase()+gpe},RDe=(t=16,e=e4e.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function bDe(t){return!!(t&&vc(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const xDe=t=>{const e=new Array(10),n=(r,a)=>{if(CD(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[a]=r;const i=NS(r)?[]:{};return u8(r,(o,s)=>{const l=n(o,a+1);!Sw(l)&&(i[s]=l)}),e[a]=void 0,i}}return r};return n(t,0)},SDe=Bf("AsyncFunction"),MDe=t=>t&&(CD(t)||vc(t))&&vc(t.then)&&vc(t.catch),t4e=((t,e)=>t?setImmediate:e?((n,r)=>(P2.addEventListener("message",({source:a,data:i})=>{a===P2&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),P2.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",vc(P2.postMessage)),_De=typeof queueMicrotask<"u"?queueMicrotask.bind(P2):typeof process<"u"&&process.nextTick||t4e,At={isArray:NS,isArrayBuffer:$Se,isBuffer:YXe,isFormData:JXe,isArrayBufferView:BXe,isString:ZXe,isNumber:zSe,isBoolean:QXe,isObject:CD,isPlainObject:OE,isReadableStream:qXe,isRequest:eDe,isResponse:tDe,isHeaders:nDe,isUndefined:Sw,isDate:KXe,isFile:HXe,isBlob:GXe,isRegExp:vDe,isFunction:vc,isStream:zXe,isURLSearchParams:jXe,isTypedArray:uDe,isFileList:$Xe,forEach:u8,merge:SG,extend:aDe,trim:rDe,stripBOM:iDe,inherits:oDe,toFlatObject:sDe,kindOf:OD,kindOfTest:Bf,endsWith:lDe,toArray:cDe,forEachEntry:fDe,matchAll:dDe,isHTMLForm:hDe,hasOwnProperty:vpe,hasOwnProp:vpe,reduceDescriptors:qSe,freezeMethods:gDe,toObjectSet:mDe,toCamelCase:pDe,noop:yDe,toFiniteNumber:ADe,findKey:JSe,global:P2,isContextDefined:jSe,ALPHABET:e4e,generateString:RDe,isSpecCompliantForm:bDe,toJSONObject:xDe,isAsyncFn:SDe,isThenable:MDe,setImmediate:t4e,asap:_De};function tr(t,e,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}At.inherits(tr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:At.toJSONObject(this.config),code:this.code,status:this.status}}});const n4e=tr.prototype,r4e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{r4e[t]={value:t}});Object.defineProperties(tr,r4e);Object.defineProperty(n4e,"isAxiosError",{value:!0});tr.from=(t,e,n,r,a,i)=>{const o=Object.create(n4e);return At.toFlatObject(t,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),tr.call(o,t.message,e,n,r,a),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const wDe=null;function MG(t){return At.isPlainObject(t)||At.isArray(t)}function a4e(t){return At.endsWith(t,"[]")?t.slice(0,-2):t}function mpe(t,e,n){return t?t.concat(e).map(function(a,i){return a=a4e(a),!n&&i?"["+a+"]":a}).join(n?".":""):e}function LDe(t){return At.isArray(t)&&!t.some(MG)}const TDe=At.toFlatObject(At,{},null,function(e){return/^is[A-Z]/.test(e)});function ND(t,e,n){if(!At.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=At.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,g){return!At.isUndefined(g[v])});const r=n.metaTokens,a=n.visitor||u,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&At.isSpecCompliantForm(e);if(!At.isFunction(a))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(At.isDate(p))return p.toISOString();if(!l&&At.isBlob(p))throw new tr("Blob is not supported. Use a Buffer instead.");return At.isArrayBuffer(p)||At.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,v,g){let y=p;if(p&&!g&&typeof p=="object"){if(At.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(At.isArray(p)&&LDe(p)||(At.isFileList(p)||At.endsWith(v,"[]"))&&(y=At.toArray(p)))return v=a4e(v),y.forEach(function(R,A){!(At.isUndefined(R)||R===null)&&e.append(o===!0?mpe([v],A,i):o===null?v:v+"[]",c(R))}),!1}return MG(p)?!0:(e.append(mpe(g,v,i),c(p)),!1)}const f=[],d=Object.assign(TDe,{defaultVisitor:u,convertValue:c,isVisitable:MG});function h(p,v){if(!At.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(p),At.forEach(p,function(y,m){(!(At.isUndefined(y)||y===null)&&a.call(e,y,At.isString(m)?m.trim():m,v,d))===!0&&h(y,v?v.concat(m):[m])}),f.pop()}}if(!At.isObject(t))throw new TypeError("data must be an object");return h(t),e}function ype(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function bj(t,e){this._pairs=[],t&&ND(t,this,e)}const i4e=bj.prototype;i4e.append=function(e,n){this._pairs.push([e,n])};i4e.toString=function(e){const n=e?function(r){return e.call(this,r,ype)}:ype;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function ODe(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function o4e(t,e,n){if(!e)return t;const r=n&&n.encode||ODe;At.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let i;if(a?i=a(e,n):i=At.isURLSearchParams(e)?e.toString():new bj(e,n).toString(r),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Ape{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){At.forEach(this.handlers,function(r){r!==null&&e(r)})}}const s4e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},PDe=typeof URLSearchParams<"u"?URLSearchParams:bj,CDe=typeof FormData<"u"?FormData:null,NDe=typeof Blob<"u"?Blob:null,IDe={isBrowser:!0,classes:{URLSearchParams:PDe,FormData:CDe,Blob:NDe},protocols:["http","https","file","blob","url","data"]},xj=typeof window<"u"&&typeof document<"u",_G=typeof navigator=="object"&&navigator||void 0,kDe=xj&&(!_G||["ReactNative","NativeScript","NS"].indexOf(_G.product)<0),EDe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",FDe=xj&&window.location.href||"http://localhost",XDe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xj,hasStandardBrowserEnv:kDe,hasStandardBrowserWebWorkerEnv:EDe,navigator:_G,origin:FDe},Symbol.toStringTag,{value:"Module"})),cs={...XDe,...IDe};function DDe(t,e){return ND(t,new cs.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return cs.isNode&&At.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function VDe(t){return At.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function UDe(t){const e={},n=Object.keys(t);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],e[i]=t[i];return e}function l4e(t){function e(n,r,a,i){let o=n[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=i>=n.length;return o=!o&&At.isArray(a)?a.length:o,l?(At.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!At.isObject(a[o]))&&(a[o]=[]),e(n,r,a[o],i)&&At.isArray(a[o])&&(a[o]=UDe(a[o])),!s)}if(At.isFormData(t)&&At.isFunction(t.entries)){const n={};return At.forEachEntry(t,(r,a)=>{e(VDe(r),a,n,0)}),n}return null}function WDe(t,e,n){if(At.isString(t))try{return(e||JSON.parse)(t),At.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const f8={transitional:s4e,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=At.isObject(e);if(i&&At.isHTMLForm(e)&&(e=new FormData(e)),At.isFormData(e))return a?JSON.stringify(l4e(e)):e;if(At.isArrayBuffer(e)||At.isBuffer(e)||At.isStream(e)||At.isFile(e)||At.isBlob(e)||At.isReadableStream(e))return e;if(At.isArrayBufferView(e))return e.buffer;if(At.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return DDe(e,this.formSerializer).toString();if((s=At.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ND(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),WDe(e)):e}],transformResponse:[function(e){const n=this.transitional||f8.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(At.isResponse(e)||At.isReadableStream(e))return e;if(e&&At.isString(e)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?tr.from(s,tr.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:cs.classes.FormData,Blob:cs.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};At.forEach(["delete","get","head","post","put","patch"],t=>{f8.headers[t]={}});const YDe=At.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),BDe=t=>{const e={};let n,r,a;return t&&t.split(`-`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||e[n]&&YDe[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Rpe=Symbol("internals");function l5(t){return t&&String(t).trim().toLowerCase()}function PE(t){return t===!1||t==null?t:At.isArray(t)?t.map(PE):String(t)}function ZDe(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const QDe=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function yZ(t,e,n,r,a){if(At.isFunction(r))return r.call(this,e,n);if(a&&(e=n),!!At.isString(e)){if(At.isString(r))return e.indexOf(r)!==-1;if(At.isRegExp(r))return r.test(e)}}function KDe(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function HDe(t,e){const n=At.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(a,i,o){return this[r].call(this,e,a,i,o)},configurable:!0})})}let yl=class{constructor(e){e&&this.set(e)}set(e,n,r){const a=this;function i(s,l,c){const u=l5(l);if(!u)throw new Error("header name must be a non-empty string");const f=At.findKey(a,u);(!f||a[f]===void 0||c===!0||c===void 0&&a[f]!==!1)&&(a[f||l]=PE(s))}const o=(s,l)=>At.forEach(s,(c,u)=>i(c,u,l));if(At.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(At.isString(e)&&(e=e.trim())&&!QDe(e))o(BDe(e),n);else if(At.isHeaders(e))for(const[s,l]of e.entries())i(l,s,r);else e!=null&&i(n,e,r);return this}get(e,n){if(e=l5(e),e){const r=At.findKey(this,e);if(r){const a=this[r];if(!n)return a;if(n===!0)return ZDe(a);if(At.isFunction(n))return n.call(this,a,r);if(At.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=l5(e),e){const r=At.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||yZ(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let a=!1;function i(o){if(o=l5(o),o){const s=At.findKey(r,o);s&&(!n||yZ(r,r[s],s,n))&&(delete r[s],a=!0)}}return At.isArray(e)?e.forEach(i):i(e),a}clear(e){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!e||yZ(this,this[i],i,e,!0))&&(delete this[i],a=!0)}return a}normalize(e){const n=this,r={};return At.forEach(this,(a,i)=>{const o=At.findKey(r,i);if(o){n[o]=PE(a),delete n[i];return}const s=e?KDe(i):String(i).trim();s!==i&&delete n[i],n[s]=PE(a),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return At.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=e&&At.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`-`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(a=>r.set(a)),r}static accessor(e){const r=(this[Rpe]=this[Rpe]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=l5(o);r[s]||(HDe(a,o),r[s]=!0)}return At.isArray(e)?e.forEach(i):i(e),this}};yl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);At.reduceDescriptors(yl.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});At.freezeMethods(yl);function AZ(t,e){const n=this||f8,r=e||n,a=yl.from(r.headers);let i=r.data;return At.forEach(t,function(s){i=s.call(n,i,a.normalize(),e?e.status:void 0)}),a.normalize(),i}function c4e(t){return!!(t&&t.__CANCEL__)}function IS(t,e,n){tr.call(this,t??"canceled",tr.ERR_CANCELED,e,n),this.name="CanceledError"}At.inherits(IS,tr,{__CANCEL__:!0});function u4e(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new tr("Request failed with status code "+n.status,[tr.ERR_BAD_REQUEST,tr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function GDe(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function $De(t,e){t=t||10;const n=new Array(t),r=new Array(t);let a=0,i=0,o;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=r[i];o||(o=c),n[a]=l,r[a]=c;let f=i,d=0;for(;f!==a;)d+=n[f++],f=f%t;if(a=(a+1)%t,a===i&&(i=(i+1)%t),c-o<e)return;const h=u&&c-u;return h?Math.round(d*1e3/h):void 0}}function zDe(t,e){let n=0,r=1e3/e,a,i;const o=(c,u=Date.now())=>{n=u,a=null,i&&(clearTimeout(i),i=null),t.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?o(c,u):(a=c,i||(i=setTimeout(()=>{i=null,o(a)},r-f)))},()=>a&&o(a)]}const UF=(t,e,n=3)=>{let r=0;const a=$De(50,250);return zDe(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-r,c=a(l),u=o<=s;r=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:i,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(f)},n)},bpe=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},xpe=t=>(...e)=>At.asap(()=>t(...e)),JDe=cs.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,cs.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(cs.origin),cs.navigator&&/(msie|trident)/i.test(cs.navigator.userAgent)):()=>!0,jDe=cs.hasStandardBrowserEnv?{write(t,e,n,r,a,i){const o=[t+"="+encodeURIComponent(e)];At.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),At.isString(r)&&o.push("path="+r),At.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function qDe(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function eVe(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function f4e(t,e){return t&&!qDe(e)?eVe(t,e):e}const Spe=t=>t instanceof yl?{...t}:t;function fy(t,e){e=e||{};const n={};function r(c,u,f,d){return At.isPlainObject(c)&&At.isPlainObject(u)?At.merge.call({caseless:d},c,u):At.isPlainObject(u)?At.merge({},u):At.isArray(u)?u.slice():u}function a(c,u,f,d){if(At.isUndefined(u)){if(!At.isUndefined(c))return r(void 0,c,f,d)}else return r(c,u,f,d)}function i(c,u){if(!At.isUndefined(u))return r(void 0,u)}function o(c,u){if(At.isUndefined(u)){if(!At.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in e)return r(c,u);if(f in t)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u,f)=>a(Spe(c),Spe(u),f,!0)};return At.forEach(Object.keys(Object.assign({},t,e)),function(u){const f=l[u]||a,d=f(t[u],e[u],u);At.isUndefined(d)&&f!==s||(n[u]=d)}),n}const d4e=t=>{const e=fy({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=e;e.headers=o=yl.from(o),e.url=o4e(f4e(e.baseURL,e.url),t.params,t.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(At.isFormData(n)){if(cs.hasStandardBrowserEnv||cs.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...u].join("; "))}}if(cs.hasStandardBrowserEnv&&(r&&At.isFunction(r)&&(r=r(e)),r||r!==!1&&JDe(e.url))){const c=a&&i&&jDe.read(i);c&&o.set(a,c)}return e},tVe=typeof XMLHttpRequest<"u",nVe=tVe&&function(t){return new Promise(function(n,r){const a=d4e(t);let i=a.data;const o=yl.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=a,u,f,d,h,p;function v(){h&&h(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(a.method.toUpperCase(),a.url,!0),g.timeout=a.timeout;function y(){if(!g)return;const R=yl.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:R,config:t,request:g};u4e(function(S){n(S),v()},function(S){r(S),v()},x),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(r(new tr("Request aborted",tr.ECONNABORTED,t,g)),g=null)},g.onerror=function(){r(new tr("Network Error",tr.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let A=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const x=a.transitional||s4e;a.timeoutErrorMessage&&(A=a.timeoutErrorMessage),r(new tr(A,x.clarifyTimeoutError?tr.ETIMEDOUT:tr.ECONNABORTED,t,g)),g=null},i===void 0&&o.setContentType(null),"setRequestHeader"in g&&At.forEach(o.toJSON(),function(A,x){g.setRequestHeader(x,A)}),At.isUndefined(a.withCredentials)||(g.withCredentials=!!a.withCredentials),s&&s!=="json"&&(g.responseType=a.responseType),c&&([d,p]=UF(c,!0),g.addEventListener("progress",d)),l&&g.upload&&([f,h]=UF(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(u=R=>{g&&(r(!R||R.type?new IS(null,t,g):R),g.abort(),g=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const m=GDe(a.url);if(m&&cs.protocols.indexOf(m)===-1){r(new tr("Unsupported protocol "+m+":",tr.ERR_BAD_REQUEST,t));return}g.send(i||null)})},rVe=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,a;const i=function(c){if(!a){a=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof tr?u:new IS(u instanceof Error?u.message:u))}};let o=e&&setTimeout(()=>{o=null,i(new tr(`timeout ${e} of ms exceeded`,tr.ETIMEDOUT))},e);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),t=null)};t.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>At.asap(s),l}},aVe=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,a;for(;r<n;)a=r+e,yield t.slice(r,a),r=a},iVe=async function*(t,e){for await(const n of oVe(t))yield*aVe(n,e)},oVe=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Mpe=(t,e,n,r)=>{const a=iVe(t,e);let i=0,o,s=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await a.next();if(c){s(),l.close();return}let f=u.byteLength;if(n){let d=i+=f;n(d)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},ID=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",h4e=ID&&typeof ReadableStream=="function",sVe=ID&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),p4e=(t,...e)=>{try{return!!t(...e)}catch{return!1}},lVe=h4e&&p4e(()=>{let t=!1;const e=new Request(cs.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),_pe=64*1024,wG=h4e&&p4e(()=>At.isReadableStream(new Response("").body)),WF={stream:wG&&(t=>t.body)};ID&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!WF[e]&&(WF[e]=At.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new tr(`Response type '${e}' is not supported`,tr.ERR_NOT_SUPPORT,r)})})})(new Response);const cVe=async t=>{if(t==null)return 0;if(At.isBlob(t))return t.size;if(At.isSpecCompliantForm(t))return(await new Request(cs.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(At.isArrayBufferView(t)||At.isArrayBuffer(t))return t.byteLength;if(At.isURLSearchParams(t)&&(t=t+""),At.isString(t))return(await sVe(t)).byteLength},uVe=async(t,e)=>{const n=At.toFiniteNumber(t.getContentLength());return n??cVe(e)},fVe=ID&&(async t=>{let{url:e,method:n,data:r,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:d}=d4e(t);c=c?(c+"").toLowerCase():"text";let h=rVe([a,i&&i.toAbortSignal()],o),p;const v=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&lVe&&n!=="get"&&n!=="head"&&(g=await uVe(u,r))!==0){let x=new Request(e,{method:"POST",body:r,duplex:"half"}),M;if(At.isFormData(r)&&(M=x.headers.get("content-type"))&&u.setContentType(M),x.body){const[S,w]=bpe(g,UF(xpe(l)));r=Mpe(x.body,_pe,S,w)}}At.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;p=new Request(e,{...d,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?f:void 0});let m=await fetch(p);const R=wG&&(c==="stream"||c==="response");if(wG&&(s||R&&v)){const x={};["status","statusText","headers"].forEach(_=>{x[_]=m[_]});const M=At.toFiniteNumber(m.headers.get("content-length")),[S,w]=s&&bpe(M,UF(xpe(s),!0))||[];m=new Response(Mpe(m.body,_pe,S,()=>{w&&w(),v&&v()}),x)}c=c||"text";let A=await WF[At.findKey(WF,c)||"text"](m,t);return!R&&v&&v(),await new Promise((x,M)=>{u4e(x,M,{data:A,headers:yl.from(m.headers),status:m.status,statusText:m.statusText,config:t,request:p})})}catch(y){throw v&&v(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new tr("Network Error",tr.ERR_NETWORK,t,p),{cause:y.cause||y}):tr.from(y,y&&y.code,t,p)}}),LG={http:wDe,xhr:nVe,fetch:fVe};At.forEach(LG,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const wpe=t=>`- ${t}`,dVe=t=>At.isFunction(t)||t===null||t===!1,v4e={getAdapter:t=>{t=At.isArray(t)?t:[t];const{length:e}=t;let n,r;const a={};for(let i=0;i<e;i++){n=t[i];let o;if(r=n,!dVe(n)&&(r=LG[(o=String(n)).toLowerCase()],r===void 0))throw new tr(`Unknown adapter '${o}'`);if(r)break;a[o||"#"+i]=r}if(!r){const i=Object.entries(a).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?i.length>1?`since :-`+i.map(wpe).join(`-`):" "+wpe(i[0]):"as no adapter specified";throw new tr("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:LG};function RZ(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new IS(null,t)}function Lpe(t){return RZ(t),t.headers=yl.from(t.headers),t.data=AZ.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),v4e.getAdapter(t.adapter||f8.adapter)(t).then(function(r){return RZ(t),r.data=AZ.call(t,t.transformResponse,r),r.headers=yl.from(r.headers),r},function(r){return c4e(r)||(RZ(t),r&&r.response&&(r.response.data=AZ.call(t,t.transformResponse,r.response),r.response.headers=yl.from(r.response.headers))),Promise.reject(r)})}const g4e="1.7.9",kD={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{kD[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Tpe={};kD.transitional=function(e,n,r){function a(i,o){return"[Axios v"+g4e+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new tr(a(o," has been removed"+(n?" in "+n:"")),tr.ERR_DEPRECATED);return n&&!Tpe[o]&&(Tpe[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,s):!0}};kD.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function hVe(t,e,n){if(typeof t!="object")throw new tr("options must be an object",tr.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let a=r.length;for(;a-- >0;){const i=r[a],o=e[i];if(o){const s=t[i],l=s===void 0||o(s,i,t);if(l!==!0)throw new tr("option "+i+" must be "+l,tr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new tr("Unknown option "+i,tr.ERR_BAD_OPTION)}}const CE={assertOptions:hVe,validators:kD},Vd=CE.validators;let H2=class{constructor(e){this.defaults=e,this.interceptors={request:new Ape,response:new Ape}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`-`+i):r.stack=i}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=fy(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&CE.assertOptions(r,{silentJSONParsing:Vd.transitional(Vd.boolean),forcedJSONParsing:Vd.transitional(Vd.boolean),clarifyTimeoutError:Vd.transitional(Vd.boolean)},!1),a!=null&&(At.isFunction(a)?n.paramsSerializer={serialize:a}:CE.assertOptions(a,{encode:Vd.function,serialize:Vd.function},!0)),CE.assertOptions(n,{baseUrl:Vd.spelling("baseURL"),withXsrfToken:Vd.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&At.merge(i.common,i[n.method]);i&&At.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=yl.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let u,f=0,d;if(!l){const p=[Lpe.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,c),d=p.length,u=Promise.resolve(n);f<d;)u=u.then(p[f++],p[f++]);return u}d=s.length;let h=n;for(f=0;f<d;){const p=s[f++],v=s[f++];try{h=p(h)}catch(g){v.call(this,g);break}}try{u=Lpe.call(this,h)}catch(p){return Promise.reject(p)}for(f=0,d=c.length;f<d;)u=u.then(c[f++],c[f++]);return u}getUri(e){e=fy(this.defaults,e);const n=f4e(e.baseURL,e.url);return o4e(n,e.params,e.paramsSerializer)}};At.forEach(["delete","get","head","options"],function(e){H2.prototype[e]=function(n,r){return this.request(fy(r||{},{method:e,url:n,data:(r||{}).data}))}});At.forEach(["post","put","patch"],function(e){function n(r){return function(i,o,s){return this.request(fy(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}H2.prototype[e]=n(),H2.prototype[e+"Form"]=n(!0)});let pVe=class m4e{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},e(function(i,o,s){r.reason||(r.reason=new IS(i,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new m4e(function(a){e=a}),cancel:e}}};function vVe(t){return function(n){return t.apply(null,n)}}function gVe(t){return At.isObject(t)&&t.isAxiosError===!0}const TG={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(TG).forEach(([t,e])=>{TG[e]=t});function y4e(t){const e=new H2(t),n=GSe(H2.prototype.request,e);return At.extend(n,H2.prototype,e,{allOwnKeys:!0}),At.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return y4e(fy(t,a))},n}const gi=y4e(f8);gi.Axios=H2;gi.CanceledError=IS;gi.CancelToken=pVe;gi.isCancel=c4e;gi.VERSION=g4e;gi.toFormData=ND;gi.AxiosError=tr;gi.Cancel=gi.CanceledError;gi.all=function(e){return Promise.all(e)};gi.spread=vVe;gi.isAxiosError=gVe;gi.mergeConfig=fy;gi.AxiosHeaders=yl;gi.formToJSON=t=>l4e(At.isHTMLForm(t)?new FormData(t):t);gi.getAdapter=v4e.getAdapter;gi.HttpStatusCode=TG;gi.default=gi;const{Axios:dEt,AxiosError:hEt,CanceledError:pEt,isCancel:vEt,CancelToken:gEt,VERSION:mEt,all:yEt,Cancel:AEt,isAxiosError:REt,spread:bEt,toFormData:xEt,AxiosHeaders:SEt,HttpStatusCode:MEt,formToJSON:_Et,getAdapter:wEt,mergeConfig:LEt}=gi,mVe={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function yVe(t,e){return V(),H("svg",mVe,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"m14 14l20 20m-20 0l20-20"},null,-1)]))}const Sj=vt({name:"icon-park-outline-close-small",render:yVe}),AVe={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function RVe(t,e){return V(),H("svg",AVe,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M4 24c0 11.046 8.954 20 20 20s20-8.954 20-20S35.046 4 24 4"},null,-1)]))}const bVe=vt({name:"icon-park-outline-loading-four",render:RVe}),xVe={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"},SVe=["id"],MVe=["mask"];function _Ve(t,e){return V(),H("svg",xVe,[I("defs",null,[I("mask",{id:t.idMap.SVGX9qUOAmp},e[0]||(e[0]=[I("g",{fill:"none"},[I("path",{fill:"#fff",stroke:"#fff","stroke-linejoin":"round","stroke-width":"4",d:"M24 44a19.94 19.94 0 0 0 14.142-5.858A19.94 19.94 0 0 0 44 24a19.94 19.94 0 0 0-5.858-14.142A19.94 19.94 0 0 0 24 4A19.94 19.94 0 0 0 9.858 9.858A19.94 19.94 0 0 0 4 24a19.94 19.94 0 0 0 5.858 14.142A19.94 19.94 0 0 0 24 44Z"}),I("path",{fill:"#000","fill-rule":"evenodd",d:"M24 11a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5","clip-rule":"evenodd"}),I("path",{stroke:"#000","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M24.5 34V20h-2M21 34h7"})],-1)]),8,SVe)]),I("path",{fill:"currentColor",d:"M0 0h48v48H0z",mask:"url(#"+t.idMap.SVGX9qUOAmp+")"},null,8,MVe)])}const wVe=vt({name:"icon-park-solid-info",render:_Ve,setup(){return{idMap:{SVGX9qUOAmp:"uicons-"+Math.random().toString(36).substr(2,10)}}}}),LVe={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"},TVe=["id"],OVe=["mask"];function PVe(t,e){return V(),H("svg",LVe,[I("defs",null,[I("mask",{id:t.idMap.SVG55HJweZj},e[0]||(e[0]=[I("g",{fill:"none","stroke-linejoin":"round","stroke-width":"4"},[I("path",{fill:"#fff",stroke:"#fff",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4S4 12.954 4 24s8.954 20 20 20Z"}),I("path",{stroke:"#000","stroke-linecap":"round",d:"M29.657 18.343L18.343 29.657m0-11.314l11.314 11.314"})],-1)]),8,TVe)]),I("path",{fill:"currentColor",d:"M0 0h48v48H0z",mask:"url(#"+t.idMap.SVG55HJweZj+")"},null,8,OVe)])}const CVe=vt({name:"icon-park-solid-close-one",render:PVe,setup(){return{idMap:{SVG55HJweZj:"uicons-"+Math.random().toString(36).substr(2,10)}}}}),NVe={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"},IVe=["id"],kVe=["mask"];function EVe(t,e){return V(),H("svg",NVe,[I("defs",null,[I("mask",{id:t.idMap.SVGIQLGgV2F},e[0]||(e[0]=[I("g",{fill:"none","stroke-linejoin":"round","stroke-width":"4"},[I("path",{fill:"#fff",stroke:"#fff",d:"M24 44a19.94 19.94 0 0 0 14.142-5.858A19.94 19.94 0 0 0 44 24a19.94 19.94 0 0 0-5.858-14.142A19.94 19.94 0 0 0 24 4A19.94 19.94 0 0 0 9.858 9.858A19.94 19.94 0 0 0 4 24a19.94 19.94 0 0 0 5.858 14.142A19.94 19.94 0 0 0 24 44Z"}),I("path",{stroke:"#000","stroke-linecap":"round",d:"m16 24l6 6l12-12"})],-1)]),8,IVe)]),I("path",{fill:"currentColor",d:"M0 0h48v48H0z",mask:"url(#"+t.idMap.SVGIQLGgV2F+")"},null,8,kVe)])}const FVe=vt({name:"icon-park-solid-check-one",render:EVe,setup(){return{idMap:{SVGIQLGgV2F:"uicons-"+Math.random().toString(36).substr(2,10)}}}}),XVe={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"},DVe=["id"],VVe=["mask"];function UVe(t,e){return V(),H("svg",XVe,[I("defs",null,[I("mask",{id:t.idMap.SVGkYaseeMx},e[0]||(e[0]=[I("g",{fill:"none"},[I("path",{fill:"#fff",stroke:"#fff","stroke-linejoin":"round","stroke-width":"4",d:"M24 44a19.94 19.94 0 0 0 14.142-5.858A19.94 19.94 0 0 0 44 24a19.94 19.94 0 0 0-5.858-14.142A19.94 19.94 0 0 0 24 4A19.94 19.94 0 0 0 9.858 9.858A19.94 19.94 0 0 0 4 24a19.94 19.94 0 0 0 5.858 14.142A19.94 19.94 0 0 0 24 44Z"}),I("path",{fill:"#000","fill-rule":"evenodd",d:"M24 37a2.5 2.5 0 1 0 0-5a2.5 2.5 0 0 0 0 5","clip-rule":"evenodd"}),I("path",{stroke:"#000","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M24 12v16"})],-1)]),8,DVe)]),I("path",{fill:"currentColor",d:"M0 0h48v48H0z",mask:"url(#"+t.idMap.SVGkYaseeMx+")"},null,8,VVe)])}const WVe=vt({name:"icon-park-solid-attention",render:UVe,setup(){return{idMap:{SVGkYaseeMx:"uicons-"+Math.random().toString(36).substr(2,10)}}}}),YVe=["id"],BVe={class:"icons"},ZVe={class:"content"},QVe={key:0,class:"title"},KVe={class:"description"},HVe={key:0,class:"control"},GVe=tt({__name:"Message",props:{id:{},message:{},type:{default:"success"},title:{default:""},duration:{default:3e3},closable:{type:Boolean,default:!1}},emits:["close","destroy"],setup(t,{expose:e,emit:n}){const r=t,a=n,i=we(!0),o=we(null),s=()=>{r.duration<=0||(o.value=setTimeout(c,r.duration))},l=()=>{o.value&&clearTimeout(o.value)},c=()=>i.value=!1;return qJ(()=>{l()}),mn(()=>{s()}),e({close:c}),(u,f)=>{const d=WVe,h=FVe,p=CVe,v=wVe,g=bVe,y=Sj;return V(),Ue(Aw,{name:"message-fade",appear:"",mode:"in-out",onBeforeLeave:f[3]||(f[3]=m=>a("close")),onAfterLeave:f[4]||(f[4]=m=>a("destroy"))},{default:pe(()=>[i.value?(V(),H("div",{key:0,class:"message",id:u.id},[I("div",{class:"message-container",onMouseenter:f[1]||(f[1]=m=>l()),onMouseleave:f[2]||(f[2]=m=>s())},[I("div",BVe,[u.type==="warning"?(V(),Ue(d,{key:0,style:{"font-size":"18px",color:"#faad14"}})):at("",!0),u.type==="success"?(V(),Ue(h,{key:1,style:{"font-size":"18px",color:"#52c41a"}})):at("",!0),u.type==="error"?(V(),Ue(p,{key:2,style:{"font-size":"18px",color:"#ff4d4f"}})):at("",!0),u.type==="info"?(V(),Ue(v,{key:3,style:{"font-size":"18px",color:"#1677ff"}})):at("",!0),u.type==="loading"?(V(),Ue(g,{key:4,class:"loading-icon",style:{"font-size":"18px",color:"#d14424"}})):at("",!0)]),I("div",ZVe,[u.title?(V(),H("div",QVe,Vt(u.title),1)):at("",!0),I("div",KVe,Vt(u.message),1)]),u.closable?(V(),H("div",HVe,[I("span",{class:"close-btn",onClick:f[0]||(f[0]=m=>c())},[U(y)])])):at("",!0)],32)],8,YVe)):at("",!0)]),_:1})}}}),lt=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},$Ve=lt(GVe,[["__scopeId","data-v-208c1220"]]),OG=[];let Ud=null,zVe=0;const JVe={duration:3e3},Dn=t=>{const e="message-"+zVe++,n={...JVe,...t,id:e};Ud||(Ud=document.createElement("div"),Ud.className="message-wrap",Ud.style.cssText=`- width: 100%;- position: fixed;- top: 0;- left: 0;- z-index: 6000;- pointer-events: none;- display: flex;- flex-direction: column;- box-sizing: border-box;- padding: 15px;- background-color: rgba(255, 255, 255, 0);- transition: all 1s ease-in-out;- align-items: center;- `,document.body.appendChild(Ud));const r=U($Ve,n,null),a=document.createElement("div");r.appContext=t.ctx||Dn._context||null,r.props.onClose=t.onClose,r.props.onDestroy=()=>{Ud&&Ud.childNodes.length<=1&&(Ud.remove(),Ud=null),i0(null,a)},i0(r,a),Ud.appendChild(a.firstElementChild);const i={id:e,close:()=>{var o,s;return(s=(o=r==null?void 0:r.component)==null?void 0:o.exposed)==null?void 0:s.close()}};return OG.push(i),i};Dn.success=(t,e)=>Dn({...e,type:"success",message:t});Dn.info=(t,e)=>Dn({...e,type:"info",message:t});Dn.warning=(t,e)=>Dn({...e,type:"warning",message:t});Dn.error=(t,e)=>Dn({...e,type:"error",message:t});Dn.loading=(t,e)=>Dn({...e,type:"loading",message:t});Dn.closeAll=function(){for(let t=OG.length-1;t>=0;t--)OG[t].close()};const PG=gi.create({timeout:1e3*300});PG.interceptors.response.use(t=>t.status>=200&&t.status<400?Promise.resolve(t.data):(Dn.error("未知的请求错误!"),Promise.reject(t)),t=>t&&t.response?(t.response.status>=400&&t.response.status<500||t.response.status>=500||Dn.error("服务器遇到未知错误!"),Promise.reject(t.message)):(Dn.error("连接到服务器失败 或 服务器响应超时!"),Promise.reject(t)));const jVe="https://server.pptist.cn",YF={getMockData(t){return PG.get(`./mocks/${t}.json`)},searchImage(t){return PG.post(`${jVe}/tools/img_search`,t)}},A4e="canvasanvil-pptist-bootstrap",qVe="canvasanvil:pptist-bootstrap",R4e=1e3,b4e=562.5,d1=t=>typeof t=="number"&&Number.isFinite(t),BF=(t,e)=>d1(t)?t>=0&&t<=1?t*R4e:t:e,ZF=(t,e)=>d1(t)?t>=0&&t<=1?t*b4e:t:e,eUe=t=>t.type!=="text"?null:{id:t.id,type:"text",left:BF(t.left,0),top:ZF(t.top,0),width:BF(t.width,240),height:ZF(t.height,80),rotate:d1(t.rotate)?t.rotate:0,content:String(t.content||"<p></p>"),defaultFontName:t.defaultFontName||"Microsoft YaHei",defaultColor:t.defaultColor||"#111111",lineHeight:d1(t.lineHeight)?t.lineHeight:1.3,wordSpace:d1(t.wordSpace)?t.wordSpace:0,opacity:d1(t.opacity)?t.opacity:1,paragraphSpace:d1(t.paragraphSpace)?t.paragraphSpace:5,vertical:!!t.vertical,textType:t.textType},tUe=t=>t.type!=="image"?null:{id:t.id,type:"image",left:BF(t.left,0),top:ZF(t.top,0),width:BF(t.width,R4e),height:ZF(t.height,b4e),rotate:d1(t.rotate)?t.rotate:0,fixedRatio:!!t.fixedRatio,src:String(t.src||""),lock:!!t.lock,imageType:t.imageType},nUe=t=>{const e=[];for(const n of t.elements){if(n.type==="text"){const r=eUe(n);r&&e.push(r);continue}if(n.type==="image"){const r=tUe(n);r&&e.push(r)}}return{id:t.id,elements:e}},x4e=t=>{try{const e=t;return!e||e.source!=="canvasanvil"||!Array.isArray(e.slides)?null:e.slides.map(nUe)}catch{return null}},rUe=()=>{const t=localStorage.getItem(A4e);if(!t)return null;try{return x4e(JSON.parse(t))}catch{return null}},aUe=()=>{localStorage.removeItem(A4e)};var Qa=(t=>(t.UP="up",t.DOWN="down",t.TOP="top",t.BOTTOM="bottom",t))(Qa||{}),qn=(t=>(t.TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right",t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t.CENTER="center",t))(qn||{}),G5=(t=>(t.T="top",t.B="bottom",t.L="left",t.R="right",t))(G5||{}),$t=(t=>(t.LEFT_TOP="left-top",t.TOP="top",t.RIGHT_TOP="right-top",t.LEFT="left",t.RIGHT="right",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.RIGHT_BOTTOM="right-bottom",t))($t||{}),sl=(t=>(t.START="start",t.END="end",t.C="ctrl",t.C1="ctrl1",t.C2="ctrl2",t))(sl||{}),Ht=(t=>(t.C="C",t.X="X",t.Z="Z",t.Y="Y",t.A="A",t.G="G",t.L="L",t.F="F",t.D="D",t.B="B",t.P="P",t.O="O",t.R="R",t.T="T",t.MINUS="-",t.EQUAL="=",t.DIGIT_0="0",t.DELETE="DELETE",t.UP="ARROWUP",t.DOWN="ARROWDOWN",t.LEFT="ARROWLEFT",t.RIGHT="ARROWRIGHT",t.ENTER="ENTER",t.SPACE=" ",t.TAB="TAB",t.BACKSPACE="BACKSPACE",t.ESC="ESCAPE",t.PAGEUP="PAGEUP",t.PAGEDOWN="PAGEDOWN",t.F5="F5",t))(Ht||{});const iUe=[{type:"通用",children:[{label:"剪切",value:"Ctrl + X"},{label:"复制",value:"Ctrl + C"},{label:"粘贴",value:"Ctrl + V"},{label:"粘贴为纯文本",value:"Ctrl + Shift + V"},{label:"快速复制粘贴",value:"Ctrl + D"},{label:"全选",value:"Ctrl + A"},{label:"撤销",value:"Ctrl + Z"},{label:"恢复",value:"Ctrl + Y"},{label:"删除",value:"Delete / Backspace"},{label:"多选",value:"按住 Ctrl 或 Shift"},{label:"打开搜索替换",value:"Ctrl + F"},{label:"打印",value:"Ctrl + P"},{label:"关闭弹窗",value:"ESC"}]},{type:"幻灯片放映",children:[{label:"从头开始放映幻灯片",value:"F5"},{label:"从当前开始放映幻灯片",value:"Shift + F5"},{label:"切换上一页",value:"↑ / ← / PgUp"},{label:"切换下一页",value:"↓ / → / PgDown"},{label:"切换下一页",value:"Enter / Space"},{label:"退出放映",value:"ESC"}]},{type:"幻灯片编辑",children:[{label:"新建幻灯片",value:"Enter"},{label:"移动画布",value:"Space + 鼠标拖拽"},{label:"缩放画布",value:"Ctrl + 鼠标滚轮"},{label:"放大画布",value:"Ctrl + ="},{label:"缩小画布",value:"Ctrl + -"},{label:"使画布适应当前屏幕",value:"Ctrl + 0"},{label:"上一页(未选中元素)",value:"↑"},{label:"下一页(未选中元素)",value:"↓"},{label:"上一页",value:"鼠标上滚 / PgUp"},{label:"下一页",value:"鼠标下滚 / PgDown"},{label:"快速创建文本",value:"双击空白处 / T"},{label:"快速创建矩形",value:"R"},{label:"快速创建圆形",value:"O"},{label:"快速创建线条",value:"L"},{label:"退出绘制状态",value:"鼠标右键"}]},{type:"元素操作",children:[{label:"移动",value:"↑ / ← / ↓ / →"},{label:"锁定",value:"Ctrl + L"},{label:"组合",value:"Ctrl + G"},{label:"取消组合",value:"Ctrl + Shift + G"},{label:"置顶层",value:"Alt + F"},{label:"置底层",value:"Alt + B"},{label:"锁定宽高比例",value:"按住 Ctrl 或 Shift"},{label:"快速复制",value:"按住 Ctrl + 拖拽"},{label:"创建水平 / 垂直线条",value:"按住 Ctrl 或 Shift"},{label:"切换焦点元素",value:"Tab"},{label:"确认图片裁剪",value:"Enter"},{label:"完成自定义形状绘制",value:"Enter"}]},{type:"表格编辑",children:[{label:"聚焦到下一个单元格",value:"Tab"},{label:"移动焦点单元格",value:"↑ / ← / ↓ / →"},{label:"在上方插入一行",value:"Ctrl + ↑"},{label:"在下方插入一行",value:"Ctrl + ↓"},{label:"在左侧插入一列",value:"Ctrl + ←"},{label:"在右侧插入一列",value:"Ctrl + →"}]},{type:"图表数据编辑",children:[{label:"聚焦到下一行",value:"Enter"}]},{type:"文本编辑",children:[{label:"加粗",value:"Ctrl + B"},{label:"斜体",value:"Ctrl + I"},{label:"下划线",value:"Ctrl + U"},{label:"行内代码",value:"Ctrl + E"},{label:"上角标",value:"Ctrl + ;"},{label:"下角标",value:"Ctrl + '"},{label:"选中段落",value:"ESC"}]},{type:"其他快捷操作",children:[{label:"添加图片 - 粘贴来自系统剪贴板的图片"},{label:"添加图片 - 将本地图片拖拽到画布中"},{label:"添加图片 - 在画布中粘贴SVG代码"},{label:"添加图片 - 粘贴来自 pexels 的图片链接"},{label:"添加文本 - 粘贴来自系统剪贴板的文字"},{label:"添加文本 - 将外部选中文字拖拽到画布中"},{label:"文本编辑 - 支持 markdown 语法创建列表和引用"}]}];var S4e={exports:{}};/*!- * clipboard.js v2.0.11- * https://clipboardjs.com/- *- * Licensed MIT © Zeno Rocha- */(function(t,e){(function(r,a){t.exports=a()})(cn,function(){return function(){var n={686:function(i,o,s){s.d(o,{default:function(){return Z}});var l=s(279),c=s.n(l),u=s(370),f=s.n(u),d=s(817),h=s.n(d);function p($){try{return document.execCommand($)}catch{return!1}}var v=function(G){var ee=h()(G);return p("cut"),ee},g=v;function y($){var G=document.documentElement.getAttribute("dir")==="rtl",ee=document.createElement("textarea");ee.style.fontSize="12pt",ee.style.border="0",ee.style.padding="0",ee.style.margin="0",ee.style.position="absolute",ee.style[G?"right":"left"]="-9999px";var ce=window.pageYOffset||document.documentElement.scrollTop;return ee.style.top="".concat(ce,"px"),ee.setAttribute("readonly",""),ee.value=$,ee}var m=function(G,ee){var ce=y(G);ee.container.appendChild(ce);var B=h()(ce);return p("copy"),ce.remove(),B},R=function(G){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},ce="";return typeof G=="string"?ce=m(G,ee):G instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(G==null?void 0:G.type)?ce=m(G.value,ee):(ce=h()(G),p("copy")),ce},A=R;function x($){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(ee){return typeof ee}:x=function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},x($)}var M=function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ee=G.action,ce=ee===void 0?"copy":ee,B=G.container,xe=G.target,_e=G.text;if(ce!=="copy"&&ce!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(xe!==void 0)if(xe&&x(xe)==="object"&&xe.nodeType===1){if(ce==="copy"&&xe.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(ce==="cut"&&(xe.hasAttribute("readonly")||xe.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(_e)return A(_e,{container:B});if(xe)return ce==="cut"?g(xe):A(xe,{container:B})},S=M;function w($){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(ee){return typeof ee}:w=function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},w($)}function _($,G){if(!($ instanceof G))throw new TypeError("Cannot call a class as a function")}function T($,G){for(var ee=0;ee<G.length;ee++){var ce=G[ee];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty($,ce.key,ce)}}function O($,G,ee){return G&&T($.prototype,G),ee&&T($,ee),$}function N($,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(G&&G.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),G&&P($,G)}function P($,G){return P=Object.setPrototypeOf||function(ce,B){return ce.__proto__=B,ce},P($,G)}function C($){var G=Y();return function(){var ce=Q($),B;if(G){var xe=Q(this).constructor;B=Reflect.construct(ce,arguments,xe)}else B=ce.apply(this,arguments);return E(this,B)}}function E($,G){return G&&(w(G)==="object"||typeof G=="function")?G:F($)}function F($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function Y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Q($){return Q=Object.setPrototypeOf?Object.getPrototypeOf:function(ee){return ee.__proto__||Object.getPrototypeOf(ee)},Q($)}function K($,G){var ee="data-clipboard-".concat($);if(G.hasAttribute(ee))return G.getAttribute(ee)}var ne=function($){N(ee,$);var G=C(ee);function ee(ce,B){var xe;return _(this,ee),xe=G.call(this),xe.resolveOptions(B),xe.listenClick(ce),xe}return O(ee,[{key:"resolveOptions",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof B.action=="function"?B.action:this.defaultAction,this.target=typeof B.target=="function"?B.target:this.defaultTarget,this.text=typeof B.text=="function"?B.text:this.defaultText,this.container=w(B.container)==="object"?B.container:document.body}},{key:"listenClick",value:function(B){var xe=this;this.listener=f()(B,"click",function(_e){return xe.onClick(_e)})}},{key:"onClick",value:function(B){var xe=B.delegateTarget||B.currentTarget,_e=this.action(xe)||"copy",se=S({action:_e,container:this.container,target:this.target(xe),text:this.text(xe)});this.emit(se?"success":"error",{action:_e,text:se,trigger:xe,clearSelection:function(){xe&&xe.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(B){return K("action",B)}},{key:"defaultTarget",value:function(B){var xe=K("target",B);if(xe)return document.querySelector(xe)}},{key:"defaultText",value:function(B){return K("text",B)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(B){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return A(B,xe)}},{key:"cut",value:function(B){return g(B)}},{key:"isSupported",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],xe=typeof B=="string"?[B]:B,_e=!!document.queryCommandSupported;return xe.forEach(function(se){_e=_e&&!!document.queryCommandSupported(se)}),_e}}]),ee}(c()),Z=ne},828:function(i){var o=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==o;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}i.exports=l},438:function(i,o,s){var l=s(828);function c(d,h,p,v,g){var y=f.apply(this,arguments);return d.addEventListener(p,y,g),{destroy:function(){d.removeEventListener(p,y,g)}}}function u(d,h,p,v,g){return typeof d.addEventListener=="function"?c.apply(null,arguments):typeof p=="function"?c.bind(null,document).apply(null,arguments):(typeof d=="string"&&(d=document.querySelectorAll(d)),Array.prototype.map.call(d,function(y){return c(y,h,p,v,g)}))}function f(d,h,p,v){return function(g){g.delegateTarget=l(g.target,h),g.delegateTarget&&v.call(d,g)}}i.exports=u},879:function(i,o){o.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},o.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||o.node(s[0]))},o.string=function(s){return typeof s=="string"||s instanceof String},o.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}},370:function(i,o,s){var l=s(879),c=s(438);function u(p,v,g){if(!p&&!v&&!g)throw new Error("Missing required arguments");if(!l.string(v))throw new TypeError("Second argument must be a String");if(!l.fn(g))throw new TypeError("Third argument must be a Function");if(l.node(p))return f(p,v,g);if(l.nodeList(p))return d(p,v,g);if(l.string(p))return h(p,v,g);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(p,v,g){return p.addEventListener(v,g),{destroy:function(){p.removeEventListener(v,g)}}}function d(p,v,g){return Array.prototype.forEach.call(p,function(y){y.addEventListener(v,g)}),{destroy:function(){Array.prototype.forEach.call(p,function(y){y.removeEventListener(v,g)})}}}function h(p,v,g){return c(document.body,p,v,g)}i.exports=u},817:function(i){function o(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var c=s.hasAttribute("readonly");c||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),c||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var u=window.getSelection(),f=document.createRange();f.selectNodeContents(s),u.removeAllRanges(),u.addRange(f),l=u.toString()}return l}i.exports=o},279:function(i){function o(){}o.prototype={on:function(s,l,c){var u=this.e||(this.e={});return(u[s]||(u[s]=[])).push({fn:l,ctx:c}),this},once:function(s,l,c){var u=this;function f(){u.off(s,f),l.apply(c,arguments)}return f._=l,this.on(s,f,c)},emit:function(s){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[s]||[]).slice(),u=0,f=c.length;for(u;u<f;u++)c[u].fn.apply(c[u].ctx,l);return this},off:function(s,l){var c=this.e||(this.e={}),u=c[s],f=[];if(u&&l)for(var d=0,h=u.length;d<h;d++)u[d].fn!==l&&u[d].fn._!==l&&f.push(u[d]);return f.length?c[s]=f:delete c[s],this}},i.exports=o,i.exports.TinyEmitter=o}},r={};function a(i){if(r[i])return r[i].exports;var o=r[i]={exports:{}};return n[i](o,o.exports,a),o.exports}return function(){a.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(o,{a:o}),o}}(),function(){a.d=function(i,o){for(var s in o)a.o(o,s)&&!a.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:o[s]})}}(),function(){a.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)}}(),a(686)}().default})})(S4e);var oUe=S4e.exports;const sUe=ng(oUe);var M4e={exports:{}};function $5(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var bZ={exports:{}};const lUe={},cUe=Object.freeze(Object.defineProperty({__proto__:null,default:lUe},Symbol.toStringTag,{value:"Module"})),uUe=Aj(cUe);var Ope;function _r(){return Ope||(Ope=1,function(t,e){(function(n,r){t.exports=r()})(cn,function(){var n=n||function(r,a){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof cn<"u"&&cn.crypto&&(i=cn.crypto),!i&&typeof $5=="function")try{i=uUe}catch{}var o=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function m(){}return function(R){var A;return m.prototype=R,A=new m,m.prototype=null,A}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(m){var R=s(this);return m&&R.mixIn(m),(!R.hasOwnProperty("init")||this.init===R.init)&&(R.init=function(){R.$super.init.apply(this,arguments)}),R.init.prototype=R,R.$super=this,R},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var R in m)m.hasOwnProperty(R)&&(this[R]=m[R]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=c.WordArray=u.extend({init:function(m,R){m=this.words=m||[],R!=a?this.sigBytes=R:this.sigBytes=m.length*4},toString:function(m){return(m||h).stringify(this)},concat:function(m){var R=this.words,A=m.words,x=this.sigBytes,M=m.sigBytes;if(this.clamp(),x%4)for(var S=0;S<M;S++){var w=A[S>>>2]>>>24-S%4*8&255;R[x+S>>>2]|=w<<24-(x+S)%4*8}else for(var _=0;_<M;_+=4)R[x+_>>>2]=A[_>>>2];return this.sigBytes+=M,this},clamp:function(){var m=this.words,R=this.sigBytes;m[R>>>2]&=4294967295<<32-R%4*8,m.length=r.ceil(R/4)},clone:function(){var m=u.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var R=[],A=0;A<m;A+=4)R.push(o());return new f.init(R,m)}}),d=l.enc={},h=d.Hex={stringify:function(m){for(var R=m.words,A=m.sigBytes,x=[],M=0;M<A;M++){var S=R[M>>>2]>>>24-M%4*8&255;x.push((S>>>4).toString(16)),x.push((S&15).toString(16))}return x.join("")},parse:function(m){for(var R=m.length,A=[],x=0;x<R;x+=2)A[x>>>3]|=parseInt(m.substr(x,2),16)<<24-x%8*4;return new f.init(A,R/2)}},p=d.Latin1={stringify:function(m){for(var R=m.words,A=m.sigBytes,x=[],M=0;M<A;M++){var S=R[M>>>2]>>>24-M%4*8&255;x.push(String.fromCharCode(S))}return x.join("")},parse:function(m){for(var R=m.length,A=[],x=0;x<R;x++)A[x>>>2]|=(m.charCodeAt(x)&255)<<24-x%4*8;return new f.init(A,R)}},v=d.Utf8={stringify:function(m){try{return decodeURIComponent(escape(p.stringify(m)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(m){return p.parse(unescape(encodeURIComponent(m)))}},g=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=v.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var R,A=this._data,x=A.words,M=A.sigBytes,S=this.blockSize,w=S*4,_=M/w;m?_=r.ceil(_):_=r.max((_|0)-this._minBufferSize,0);var T=_*S,O=r.min(T*4,M);if(T){for(var N=0;N<T;N+=S)this._doProcessBlock(x,N);R=x.splice(0,T),A.sigBytes-=O}return new f.init(R,O)},clone:function(){var m=u.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});c.Hasher=g.extend({cfg:u.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var R=this._doFinalize();return R},blockSize:16,_createHelper:function(m){return function(R,A){return new m.init(A).finalize(R)}},_createHmacHelper:function(m){return function(R,A){return new y.HMAC.init(m,A).finalize(R)}}});var y=l.algo={};return l}(Math);return n})}(bZ)),bZ.exports}var xZ={exports:{}},Ppe;function ED(){return Ppe||(Ppe=1,function(t,e){(function(n,r){t.exports=r(_r())})(cn,function(n){return function(r){var a=n,i=a.lib,o=i.Base,s=i.WordArray,l=a.x64={};l.Word=o.extend({init:function(c,u){this.high=c,this.low=u}}),l.WordArray=o.extend({init:function(c,u){c=this.words=c||[],u!=r?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,f=[],d=0;d<u;d++){var h=c[d];f.push(h.high),f.push(h.low)}return s.create(f,this.sigBytes)},clone:function(){for(var c=o.clone.call(this),u=c.words=this.words.slice(0),f=u.length,d=0;d<f;d++)u[d]=u[d].clone();return c}})}(),n})}(xZ)),xZ.exports}var SZ={exports:{}},Cpe;function fUe(){return Cpe||(Cpe=1,function(t,e){(function(n,r){t.exports=r(_r())})(cn,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,a=r.lib,i=a.WordArray,o=i.init,s=i.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var c=l.byteLength,u=[],f=0;f<c;f++)u[f>>>2]|=l[f]<<24-f%4*8;o.call(this,u,c)}else o.apply(this,arguments)};s.prototype=i}}(),n.lib.WordArray})}(SZ)),SZ.exports}var MZ={exports:{}},Npe;function dUe(){return Npe||(Npe=1,function(t,e){(function(n,r){t.exports=r(_r())})(cn,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var c=l.words,u=l.sigBytes,f=[],d=0;d<u;d+=2){var h=c[d>>>2]>>>16-d%4*8&65535;f.push(String.fromCharCode(h))}return f.join("")},parse:function(l){for(var c=l.length,u=[],f=0;f<c;f++)u[f>>>1]|=l.charCodeAt(f)<<16-f%2*16;return i.create(u,c*2)}},o.Utf16LE={stringify:function(l){for(var c=l.words,u=l.sigBytes,f=[],d=0;d<u;d+=2){var h=s(c[d>>>2]>>>16-d%4*8&65535);f.push(String.fromCharCode(h))}return f.join("")},parse:function(l){for(var c=l.length,u=[],f=0;f<c;f++)u[f>>>1]|=s(l.charCodeAt(f)<<16-f%2*16);return i.create(u,c*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}}(),n.enc.Utf16})}(MZ)),MZ.exports}var _Z={exports:{}},Ipe;function Ay(){return Ipe||(Ipe=1,function(t,e){(function(n,r){t.exports=r(_r())})(cn,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=r.enc;o.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,f=this._map;l.clamp();for(var d=[],h=0;h<u;h+=3)for(var p=c[h>>>2]>>>24-h%4*8&255,v=c[h+1>>>2]>>>24-(h+1)%4*8&255,g=c[h+2>>>2]>>>24-(h+2)%4*8&255,y=p<<16|v<<8|g,m=0;m<4&&h+m*.75<u;m++)d.push(f.charAt(y>>>6*(3-m)&63));var R=f.charAt(64);if(R)for(;d.length%4;)d.push(R);return d.join("")},parse:function(l){var c=l.length,u=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var d=0;d<u.length;d++)f[u.charCodeAt(d)]=d}var h=u.charAt(64);if(h){var p=l.indexOf(h);p!==-1&&(c=p)}return s(l,c,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,c,u){for(var f=[],d=0,h=0;h<c;h++)if(h%4){var p=u[l.charCodeAt(h-1)]<<h%4*2,v=u[l.charCodeAt(h)]>>>6-h%4*2,g=p|v;f[d>>>2]|=g<<24-d%4*8,d++}return i.create(f,d)}}(),n.enc.Base64})}(_Z)),_Z.exports}var wZ={exports:{}},kpe;function hUe(){return kpe||(kpe=1,function(t,e){(function(n,r){t.exports=r(_r())})(cn,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=r.enc;o.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var u=l.words,f=l.sigBytes,d=c?this._safe_map:this._map;l.clamp();for(var h=[],p=0;p<f;p+=3)for(var v=u[p>>>2]>>>24-p%4*8&255,g=u[p+1>>>2]>>>24-(p+1)%4*8&255,y=u[p+2>>>2]>>>24-(p+2)%4*8&255,m=v<<16|g<<8|y,R=0;R<4&&p+R*.75<f;R++)h.push(d.charAt(m>>>6*(3-R)&63));var A=d.charAt(64);if(A)for(;h.length%4;)h.push(A);return h.join("")},parse:function(l,c){c===void 0&&(c=!0);var u=l.length,f=c?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var h=0;h<f.length;h++)d[f.charCodeAt(h)]=h}var p=f.charAt(64);if(p){var v=l.indexOf(p);v!==-1&&(u=v)}return s(l,u,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(l,c,u){for(var f=[],d=0,h=0;h<c;h++)if(h%4){var p=u[l.charCodeAt(h-1)]<<h%4*2,v=u[l.charCodeAt(h)]>>>6-h%4*2,g=p|v;f[d>>>2]|=g<<24-d%4*8,d++}return i.create(f,d)}}(),n.enc.Base64url})}(wZ)),wZ.exports}var LZ={exports:{}},Epe;function Ry(){return Epe||(Epe=1,function(t,e){(function(n,r){t.exports=r(_r())})(cn,function(n){return function(r){var a=n,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,c=[];(function(){for(var v=0;v<64;v++)c[v]=r.abs(r.sin(v+1))*4294967296|0})();var u=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,g){for(var y=0;y<16;y++){var m=g+y,R=v[m];v[m]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var A=this._hash.words,x=v[g+0],M=v[g+1],S=v[g+2],w=v[g+3],_=v[g+4],T=v[g+5],O=v[g+6],N=v[g+7],P=v[g+8],C=v[g+9],E=v[g+10],F=v[g+11],Y=v[g+12],Q=v[g+13],K=v[g+14],ne=v[g+15],Z=A[0],$=A[1],G=A[2],ee=A[3];Z=f(Z,$,G,ee,x,7,c[0]),ee=f(ee,Z,$,G,M,12,c[1]),G=f(G,ee,Z,$,S,17,c[2]),$=f($,G,ee,Z,w,22,c[3]),Z=f(Z,$,G,ee,_,7,c[4]),ee=f(ee,Z,$,G,T,12,c[5]),G=f(G,ee,Z,$,O,17,c[6]),$=f($,G,ee,Z,N,22,c[7]),Z=f(Z,$,G,ee,P,7,c[8]),ee=f(ee,Z,$,G,C,12,c[9]),G=f(G,ee,Z,$,E,17,c[10]),$=f($,G,ee,Z,F,22,c[11]),Z=f(Z,$,G,ee,Y,7,c[12]),ee=f(ee,Z,$,G,Q,12,c[13]),G=f(G,ee,Z,$,K,17,c[14]),$=f($,G,ee,Z,ne,22,c[15]),Z=d(Z,$,G,ee,M,5,c[16]),ee=d(ee,Z,$,G,O,9,c[17]),G=d(G,ee,Z,$,F,14,c[18]),$=d($,G,ee,Z,x,20,c[19]),Z=d(Z,$,G,ee,T,5,c[20]),ee=d(ee,Z,$,G,E,9,c[21]),G=d(G,ee,Z,$,ne,14,c[22]),$=d($,G,ee,Z,_,20,c[23]),Z=d(Z,$,G,ee,C,5,c[24]),ee=d(ee,Z,$,G,K,9,c[25]),G=d(G,ee,Z,$,w,14,c[26]),$=d($,G,ee,Z,P,20,c[27]),Z=d(Z,$,G,ee,Q,5,c[28]),ee=d(ee,Z,$,G,S,9,c[29]),G=d(G,ee,Z,$,N,14,c[30]),$=d($,G,ee,Z,Y,20,c[31]),Z=h(Z,$,G,ee,T,4,c[32]),ee=h(ee,Z,$,G,P,11,c[33]),G=h(G,ee,Z,$,F,16,c[34]),$=h($,G,ee,Z,K,23,c[35]),Z=h(Z,$,G,ee,M,4,c[36]),ee=h(ee,Z,$,G,_,11,c[37]),G=h(G,ee,Z,$,N,16,c[38]),$=h($,G,ee,Z,E,23,c[39]),Z=h(Z,$,G,ee,Q,4,c[40]),ee=h(ee,Z,$,G,x,11,c[41]),G=h(G,ee,Z,$,w,16,c[42]),$=h($,G,ee,Z,O,23,c[43]),Z=h(Z,$,G,ee,C,4,c[44]),ee=h(ee,Z,$,G,Y,11,c[45]),G=h(G,ee,Z,$,ne,16,c[46]),$=h($,G,ee,Z,S,23,c[47]),Z=p(Z,$,G,ee,x,6,c[48]),ee=p(ee,Z,$,G,N,10,c[49]),G=p(G,ee,Z,$,K,15,c[50]),$=p($,G,ee,Z,T,21,c[51]),Z=p(Z,$,G,ee,Y,6,c[52]),ee=p(ee,Z,$,G,w,10,c[53]),G=p(G,ee,Z,$,E,15,c[54]),$=p($,G,ee,Z,M,21,c[55]),Z=p(Z,$,G,ee,P,6,c[56]),ee=p(ee,Z,$,G,ne,10,c[57]),G=p(G,ee,Z,$,O,15,c[58]),$=p($,G,ee,Z,Q,21,c[59]),Z=p(Z,$,G,ee,_,6,c[60]),ee=p(ee,Z,$,G,F,10,c[61]),G=p(G,ee,Z,$,S,15,c[62]),$=p($,G,ee,Z,C,21,c[63]),A[0]=A[0]+Z|0,A[1]=A[1]+$|0,A[2]=A[2]+G|0,A[3]=A[3]+ee|0},_doFinalize:function(){var v=this._data,g=v.words,y=this._nDataBytes*8,m=v.sigBytes*8;g[m>>>5]|=128<<24-m%32;var R=r.floor(y/4294967296),A=y;g[(m+64>>>9<<4)+15]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,g[(m+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,v.sigBytes=(g.length+1)*4,this._process();for(var x=this._hash,M=x.words,S=0;S<4;S++){var w=M[S];M[S]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}return x},clone:function(){var v=s.clone.call(this);return v._hash=this._hash.clone(),v}});function f(v,g,y,m,R,A,x){var M=v+(g&y|~g&m)+R+x;return(M<<A|M>>>32-A)+g}function d(v,g,y,m,R,A,x){var M=v+(g&m|y&~m)+R+x;return(M<<A|M>>>32-A)+g}function h(v,g,y,m,R,A,x){var M=v+(g^y^m)+R+x;return(M<<A|M>>>32-A)+g}function p(v,g,y,m,R,A,x){var M=v+(y^(g|~m))+R+x;return(M<<A|M>>>32-A)+g}a.MD5=s._createHelper(u),a.HmacMD5=s._createHmacHelper(u)}(Math),n.MD5})}(LZ)),LZ.exports}var TZ={exports:{}},Fpe;function _4e(){return Fpe||(Fpe=1,function(t,e){(function(n,r){t.exports=r(_r())})(cn,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=a.Hasher,s=r.algo,l=[],c=s.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,f){for(var d=this._hash.words,h=d[0],p=d[1],v=d[2],g=d[3],y=d[4],m=0;m<80;m++){if(m<16)l[m]=u[f+m]|0;else{var R=l[m-3]^l[m-8]^l[m-14]^l[m-16];l[m]=R<<1|R>>>31}var A=(h<<5|h>>>27)+y+l[m];m<20?A+=(p&v|~p&g)+1518500249:m<40?A+=(p^v^g)+1859775393:m<60?A+=(p&v|p&g|v&g)-1894007588:A+=(p^v^g)-899497514,y=g,g=v,v=p<<30|p>>>2,p=h,h=A}d[0]=d[0]+h|0,d[1]=d[1]+p|0,d[2]=d[2]+v|0,d[3]=d[3]+g|0,d[4]=d[4]+y|0},_doFinalize:function(){var u=this._data,f=u.words,d=this._nDataBytes*8,h=u.sigBytes*8;return f[h>>>5]|=128<<24-h%32,f[(h+64>>>9<<4)+14]=Math.floor(d/4294967296),f[(h+64>>>9<<4)+15]=d,u.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var u=o.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA1=o._createHelper(c),r.HmacSHA1=o._createHmacHelper(c)}(),n.SHA1})}(TZ)),TZ.exports}var OZ={exports:{}},Xpe;function Mj(){return Xpe||(Xpe=1,function(t,e){(function(n,r){t.exports=r(_r())})(cn,function(n){return function(r){var a=n,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,c=[],u=[];(function(){function h(y){for(var m=r.sqrt(y),R=2;R<=m;R++)if(!(y%R))return!1;return!0}function p(y){return(y-(y|0))*4294967296|0}for(var v=2,g=0;g<64;)h(v)&&(g<8&&(c[g]=p(r.pow(v,1/2))),u[g]=p(r.pow(v,1/3)),g++),v++})();var f=[],d=l.SHA256=s.extend({_doReset:function(){this._hash=new o.init(c.slice(0))},_doProcessBlock:function(h,p){for(var v=this._hash.words,g=v[0],y=v[1],m=v[2],R=v[3],A=v[4],x=v[5],M=v[6],S=v[7],w=0;w<64;w++){if(w<16)f[w]=h[p+w]|0;else{var _=f[w-15],T=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,O=f[w-2],N=(O<<15|O>>>17)^(O<<13|O>>>19)^O>>>10;f[w]=T+f[w-7]+N+f[w-16]}var P=A&x^~A&M,C=g&y^g&m^y&m,E=(g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22),F=(A<<26|A>>>6)^(A<<21|A>>>11)^(A<<7|A>>>25),Y=S+F+P+u[w]+f[w],Q=E+C;S=M,M=x,x=A,A=R+Y|0,R=m,m=y,y=g,g=Y+Q|0}v[0]=v[0]+g|0,v[1]=v[1]+y|0,v[2]=v[2]+m|0,v[3]=v[3]+R|0,v[4]=v[4]+A|0,v[5]=v[5]+x|0,v[6]=v[6]+M|0,v[7]=v[7]+S|0},_doFinalize:function(){var h=this._data,p=h.words,v=this._nDataBytes*8,g=h.sigBytes*8;return p[g>>>5]|=128<<24-g%32,p[(g+64>>>9<<4)+14]=r.floor(v/4294967296),p[(g+64>>>9<<4)+15]=v,h.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});a.SHA256=s._createHelper(d),a.HmacSHA256=s._createHmacHelper(d)}(Math),n.SHA256})}(OZ)),OZ.exports}var PZ={exports:{}},Dpe;function pUe(){return Dpe||(Dpe=1,function(t,e){(function(n,r,a){t.exports=r(_r(),Mj())})(cn,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=r.algo,s=o.SHA256,l=o.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=s._createHelper(l),r.HmacSHA224=s._createHmacHelper(l)}(),n.SHA224})}(PZ)),PZ.exports}var CZ={exports:{}},Vpe;function w4e(){return Vpe||(Vpe=1,function(t,e){(function(n,r,a){t.exports=r(_r(),ED())})(cn,function(n){return function(){var r=n,a=r.lib,i=a.Hasher,o=r.x64,s=o.Word,l=o.WordArray,c=r.algo;function u(){return s.create.apply(s,arguments)}var f=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],d=[];(function(){for(var p=0;p<80;p++)d[p]=u()})();var h=c.SHA512=i.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(p,v){for(var g=this._hash.words,y=g[0],m=g[1],R=g[2],A=g[3],x=g[4],M=g[5],S=g[6],w=g[7],_=y.high,T=y.low,O=m.high,N=m.low,P=R.high,C=R.low,E=A.high,F=A.low,Y=x.high,Q=x.low,K=M.high,ne=M.low,Z=S.high,$=S.low,G=w.high,ee=w.low,ce=_,B=T,xe=O,_e=N,se=P,z=C,de=E,fe=F,re=Y,X=Q,j=K,oe=ne,ae=Z,le=$,ge=G,Se=ee,me=0;me<80;me++){var ye,Ve,De=d[me];if(me<16)Ve=De.high=p[v+me*2]|0,ye=De.low=p[v+me*2+1]|0;else{var Ye=d[me-15],Je=Ye.high,wt=Ye.low,Lt=(Je>>>1|wt<<31)^(Je>>>8|wt<<24)^Je>>>7,Ne=(wt>>>1|Je<<31)^(wt>>>8|Je<<24)^(wt>>>7|Je<<25),Te=d[me-2],ze=Te.high,He=Te.low,pt=(ze>>>19|He<<13)^(ze<<3|He>>>29)^ze>>>6,Ce=(He>>>19|ze<<13)^(He<<3|ze>>>29)^(He>>>6|ze<<26),ut=d[me-7],je=ut.high,it=ut.low,Pt=d[me-16],Yt=Pt.high,dt=Pt.low;ye=Ne+it,Ve=Lt+je+(ye>>>0<Ne>>>0?1:0),ye=ye+Ce,Ve=Ve+pt+(ye>>>0<Ce>>>0?1:0),ye=ye+dt,Ve=Ve+Yt+(ye>>>0<dt>>>0?1:0),De.high=Ve,De.low=ye}var fn=re&j^~re&ae,pn=X&oe^~X&le,En=ce&xe^ce&se^xe&se,yi=B&_e^B&z^_e&z,qi=(ce>>>28|B<<4)^(ce<<30|B>>>2)^(ce<<25|B>>>7),Ta=(B>>>28|ce<<4)^(B<<30|ce>>>2)^(B<<25|ce>>>7),Ys=(re>>>14|X<<18)^(re>>>18|X<<14)^(re<<23|X>>>9),eo=(X>>>14|re<<18)^(X>>>18|re<<14)^(X<<23|re>>>9),Ei=f[me],Jf=Ei.high,Bs=Ei.low,Vn=Se+eo,Ar=ge+Ys+(Vn>>>0<Se>>>0?1:0),Vn=Vn+pn,Ar=Ar+fn+(Vn>>>0<pn>>>0?1:0),Vn=Vn+Bs,Ar=Ar+Jf+(Vn>>>0<Bs>>>0?1:0),Vn=Vn+ye,Ar=Ar+Ve+(Vn>>>0<ye>>>0?1:0),Xh=Ta+yi,Zs=qi+En+(Xh>>>0<Ta>>>0?1:0);ge=ae,Se=le,ae=j,le=oe,j=re,oe=X,X=fe+Vn|0,re=de+Ar+(X>>>0<fe>>>0?1:0)|0,de=se,fe=z,se=xe,z=_e,xe=ce,_e=B,B=Vn+Xh|0,ce=Ar+Zs+(B>>>0<Vn>>>0?1:0)|0}T=y.low=T+B,y.high=_+ce+(T>>>0<B>>>0?1:0),N=m.low=N+_e,m.high=O+xe+(N>>>0<_e>>>0?1:0),C=R.low=C+z,R.high=P+se+(C>>>0<z>>>0?1:0),F=A.low=F+fe,A.high=E+de+(F>>>0<fe>>>0?1:0),Q=x.low=Q+X,x.high=Y+re+(Q>>>0<X>>>0?1:0),ne=M.low=ne+oe,M.high=K+j+(ne>>>0<oe>>>0?1:0),$=S.low=$+le,S.high=Z+ae+($>>>0<le>>>0?1:0),ee=w.low=ee+Se,w.high=G+ge+(ee>>>0<Se>>>0?1:0)},_doFinalize:function(){var p=this._data,v=p.words,g=this._nDataBytes*8,y=p.sigBytes*8;v[y>>>5]|=128<<24-y%32,v[(y+128>>>10<<5)+30]=Math.floor(g/4294967296),v[(y+128>>>10<<5)+31]=g,p.sigBytes=v.length*4,this._process();var m=this._hash.toX32();return m},clone:function(){var p=i.clone.call(this);return p._hash=this._hash.clone(),p},blockSize:1024/32});r.SHA512=i._createHelper(h),r.HmacSHA512=i._createHmacHelper(h)}(),n.SHA512})}(CZ)),CZ.exports}var NZ={exports:{}},Upe;function vUe(){return Upe||(Upe=1,function(t,e){(function(n,r,a){t.exports=r(_r(),ED(),w4e())})(cn,function(n){return function(){var r=n,a=r.x64,i=a.Word,o=a.WordArray,s=r.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=16,u}});r.SHA384=l._createHelper(c),r.HmacSHA384=l._createHmacHelper(c)}(),n.SHA384})}(NZ)),NZ.exports}var IZ={exports:{}},Wpe;function gUe(){return Wpe||(Wpe=1,function(t,e){(function(n,r,a){t.exports=r(_r(),ED())})(cn,function(n){return function(r){var a=n,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.x64,c=l.Word,u=a.algo,f=[],d=[],h=[];(function(){for(var g=1,y=0,m=0;m<24;m++){f[g+5*y]=(m+1)*(m+2)/2%64;var R=y%5,A=(2*g+3*y)%5;g=R,y=A}for(var g=0;g<5;g++)for(var y=0;y<5;y++)d[g+5*y]=y+(2*g+3*y)%5*5;for(var x=1,M=0;M<24;M++){for(var S=0,w=0,_=0;_<7;_++){if(x&1){var T=(1<<_)-1;T<32?w^=1<<T:S^=1<<T-32}x&128?x=x<<1^113:x<<=1}h[M]=c.create(S,w)}})();var p=[];(function(){for(var g=0;g<25;g++)p[g]=c.create()})();var v=u.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var g=this._state=[],y=0;y<25;y++)g[y]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(g,y){for(var m=this._state,R=this.blockSize/2,A=0;A<R;A++){var x=g[y+2*A],M=g[y+2*A+1];x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,M=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360;var S=m[A];S.high^=M,S.low^=x}for(var w=0;w<24;w++){for(var _=0;_<5;_++){for(var T=0,O=0,N=0;N<5;N++){var S=m[_+5*N];T^=S.high,O^=S.low}var P=p[_];P.high=T,P.low=O}for(var _=0;_<5;_++)for(var C=p[(_+4)%5],E=p[(_+1)%5],F=E.high,Y=E.low,T=C.high^(F<<1|Y>>>31),O=C.low^(Y<<1|F>>>31),N=0;N<5;N++){var S=m[_+5*N];S.high^=T,S.low^=O}for(var Q=1;Q<25;Q++){var T,O,S=m[Q],K=S.high,ne=S.low,Z=f[Q];Z<32?(T=K<<Z|ne>>>32-Z,O=ne<<Z|K>>>32-Z):(T=ne<<Z-32|K>>>64-Z,O=K<<Z-32|ne>>>64-Z);var $=p[d[Q]];$.high=T,$.low=O}var G=p[0],ee=m[0];G.high=ee.high,G.low=ee.low;for(var _=0;_<5;_++)for(var N=0;N<5;N++){var Q=_+5*N,S=m[Q],ce=p[Q],B=p[(_+1)%5+5*N],xe=p[(_+2)%5+5*N];S.high=ce.high^~B.high&xe.high,S.low=ce.low^~B.low&xe.low}var S=m[0],_e=h[w];S.high^=_e.high,S.low^=_e.low}},_doFinalize:function(){var g=this._data,y=g.words;this._nDataBytes*8;var m=g.sigBytes*8,R=this.blockSize*32;y[m>>>5]|=1<<24-m%32,y[(r.ceil((m+1)/R)*R>>>5)-1]|=128,g.sigBytes=y.length*4,this._process();for(var A=this._state,x=this.cfg.outputLength/8,M=x/8,S=[],w=0;w<M;w++){var _=A[w],T=_.high,O=_.low;T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,S.push(O),S.push(T)}return new o.init(S,x)},clone:function(){for(var g=s.clone.call(this),y=g._state=this._state.slice(0),m=0;m<25;m++)y[m]=y[m].clone();return g}});a.SHA3=s._createHelper(v),a.HmacSHA3=s._createHmacHelper(v)}(Math),n.SHA3})}(IZ)),IZ.exports}var kZ={exports:{}},Ype;function mUe(){return Ype||(Ype=1,function(t,e){(function(n,r){t.exports=r(_r())})(cn,function(n){/** @preserve- (c) 2012 by Cédric Mesnil. All rights reserved.-- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:-- - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.- - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.- */return function(r){var a=n,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,c=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),f=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=o.create([0,1518500249,1859775393,2400959708,2840853838]),p=o.create([1352829926,1548603684,1836072691,2053994217,0]),v=l.RIPEMD160=s.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(M,S){for(var w=0;w<16;w++){var _=S+w,T=M[_];M[_]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}var O=this._hash.words,N=h.words,P=p.words,C=c.words,E=u.words,F=f.words,Y=d.words,Q,K,ne,Z,$,G,ee,ce,B,xe;G=Q=O[0],ee=K=O[1],ce=ne=O[2],B=Z=O[3],xe=$=O[4];for(var _e,w=0;w<80;w+=1)_e=Q+M[S+C[w]]|0,w<16?_e+=g(K,ne,Z)+N[0]:w<32?_e+=y(K,ne,Z)+N[1]:w<48?_e+=m(K,ne,Z)+N[2]:w<64?_e+=R(K,ne,Z)+N[3]:_e+=A(K,ne,Z)+N[4],_e=_e|0,_e=x(_e,F[w]),_e=_e+$|0,Q=$,$=Z,Z=x(ne,10),ne=K,K=_e,_e=G+M[S+E[w]]|0,w<16?_e+=A(ee,ce,B)+P[0]:w<32?_e+=R(ee,ce,B)+P[1]:w<48?_e+=m(ee,ce,B)+P[2]:w<64?_e+=y(ee,ce,B)+P[3]:_e+=g(ee,ce,B)+P[4],_e=_e|0,_e=x(_e,Y[w]),_e=_e+xe|0,G=xe,xe=B,B=x(ce,10),ce=ee,ee=_e;_e=O[1]+ne+B|0,O[1]=O[2]+Z+xe|0,O[2]=O[3]+$+G|0,O[3]=O[4]+Q+ee|0,O[4]=O[0]+K+ce|0,O[0]=_e},_doFinalize:function(){var M=this._data,S=M.words,w=this._nDataBytes*8,_=M.sigBytes*8;S[_>>>5]|=128<<24-_%32,S[(_+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,M.sigBytes=(S.length+1)*4,this._process();for(var T=this._hash,O=T.words,N=0;N<5;N++){var P=O[N];O[N]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360}return T},clone:function(){var M=s.clone.call(this);return M._hash=this._hash.clone(),M}});function g(M,S,w){return M^S^w}function y(M,S,w){return M&S|~M&w}function m(M,S,w){return(M|~S)^w}function R(M,S,w){return M&w|S&~w}function A(M,S,w){return M^(S|~w)}function x(M,S){return M<<S|M>>>32-S}a.RIPEMD160=s._createHelper(v),a.HmacRIPEMD160=s._createHmacHelper(v)}(),n.RIPEMD160})}(kZ)),kZ.exports}var EZ={exports:{}},Bpe;function _j(){return Bpe||(Bpe=1,function(t,e){(function(n,r){t.exports=r(_r())})(cn,function(n){(function(){var r=n,a=r.lib,i=a.Base,o=r.enc,s=o.Utf8,l=r.algo;l.HMAC=i.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=s.parse(u));var f=c.blockSize,d=f*4;u.sigBytes>d&&(u=c.finalize(u)),u.clamp();for(var h=this._oKey=u.clone(),p=this._iKey=u.clone(),v=h.words,g=p.words,y=0;y<f;y++)v[y]^=1549556828,g[y]^=909522486;h.sigBytes=p.sigBytes=d,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,f=u.finalize(c);u.reset();var d=u.finalize(this._oKey.clone().concat(f));return d}})})()})}(EZ)),EZ.exports}var FZ={exports:{}},Zpe;function yUe(){return Zpe||(Zpe=1,function(t,e){(function(n,r,a){t.exports=r(_r(),Mj(),_j())})(cn,function(n){return function(){var r=n,a=r.lib,i=a.Base,o=a.WordArray,s=r.algo,l=s.SHA256,c=s.HMAC,u=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:25e4}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,d){for(var h=this.cfg,p=c.create(h.hasher,f),v=o.create(),g=o.create([1]),y=v.words,m=g.words,R=h.keySize,A=h.iterations;y.length<R;){var x=p.update(d).finalize(g);p.reset();for(var M=x.words,S=M.length,w=x,_=1;_<A;_++){w=p.finalize(w),p.reset();for(var T=w.words,O=0;O<S;O++)M[O]^=T[O]}v.concat(x),m[0]++}return v.sigBytes=R*4,v}});r.PBKDF2=function(f,d,h){return u.create(h).compute(f,d)}}(),n.PBKDF2})}(FZ)),FZ.exports}var XZ={exports:{}},Qpe;function rg(){return Qpe||(Qpe=1,function(t,e){(function(n,r,a){t.exports=r(_r(),_4e(),_j())})(cn,function(n){return function(){var r=n,a=r.lib,i=a.Base,o=a.WordArray,s=r.algo,l=s.MD5,c=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,f){for(var d,h=this.cfg,p=h.hasher.create(),v=o.create(),g=v.words,y=h.keySize,m=h.iterations;g.length<y;){d&&p.update(d),d=p.update(u).finalize(f),p.reset();for(var R=1;R<m;R++)d=p.finalize(d),p.reset();v.concat(d)}return v.sigBytes=y*4,v}});r.EvpKDF=function(u,f,d){return c.create(d).compute(u,f)}}(),n.EvpKDF})}(XZ)),XZ.exports}var DZ={exports:{}},Kpe;function po(){return Kpe||(Kpe=1,function(t,e){(function(n,r,a){t.exports=r(_r(),rg())})(cn,function(n){n.lib.Cipher||function(r){var a=n,i=a.lib,o=i.Base,s=i.WordArray,l=i.BufferedBlockAlgorithm,c=a.enc;c.Utf8;var u=c.Base64,f=a.algo,d=f.EvpKDF,h=i.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(T,O){return this.create(this._ENC_XFORM_MODE,T,O)},createDecryptor:function(T,O){return this.create(this._DEC_XFORM_MODE,T,O)},init:function(T,O,N){this.cfg=this.cfg.extend(N),this._xformMode=T,this._key=O,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(T){return this._append(T),this._process()},finalize:function(T){T&&this._append(T);var O=this._doFinalize();return O},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function T(O){return typeof O=="string"?_:M}return function(O){return{encrypt:function(N,P,C){return T(P).encrypt(O,N,P,C)},decrypt:function(N,P,C){return T(P).decrypt(O,N,P,C)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var T=this._process(!0);return T},blockSize:1});var p=a.mode={},v=i.BlockCipherMode=o.extend({createEncryptor:function(T,O){return this.Encryptor.create(T,O)},createDecryptor:function(T,O){return this.Decryptor.create(T,O)},init:function(T,O){this._cipher=T,this._iv=O}}),g=p.CBC=function(){var T=v.extend();T.Encryptor=T.extend({processBlock:function(N,P){var C=this._cipher,E=C.blockSize;O.call(this,N,P,E),C.encryptBlock(N,P),this._prevBlock=N.slice(P,P+E)}}),T.Decryptor=T.extend({processBlock:function(N,P){var C=this._cipher,E=C.blockSize,F=N.slice(P,P+E);C.decryptBlock(N,P),O.call(this,N,P,E),this._prevBlock=F}});function O(N,P,C){var E,F=this._iv;F?(E=F,this._iv=r):E=this._prevBlock;for(var Y=0;Y<C;Y++)N[P+Y]^=E[Y]}return T}(),y=a.pad={},m=y.Pkcs7={pad:function(T,O){for(var N=O*4,P=N-T.sigBytes%N,C=P<<24|P<<16|P<<8|P,E=[],F=0;F<P;F+=4)E.push(C);var Y=s.create(E,P);T.concat(Y)},unpad:function(T){var O=T.words[T.sigBytes-1>>>2]&255;T.sigBytes-=O}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:m}),reset:function(){var T;h.reset.call(this);var O=this.cfg,N=O.iv,P=O.mode;this._xformMode==this._ENC_XFORM_MODE?T=P.createEncryptor:(T=P.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==T?this._mode.init(this,N&&N.words):(this._mode=T.call(P,this,N&&N.words),this._mode.__creator=T)},_doProcessBlock:function(T,O){this._mode.processBlock(T,O)},_doFinalize:function(){var T,O=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(O.pad(this._data,this.blockSize),T=this._process(!0)):(T=this._process(!0),O.unpad(T)),T},blockSize:128/32});var R=i.CipherParams=o.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),A=a.format={},x=A.OpenSSL={stringify:function(T){var O,N=T.ciphertext,P=T.salt;return P?O=s.create([1398893684,1701076831]).concat(P).concat(N):O=N,O.toString(u)},parse:function(T){var O,N=u.parse(T),P=N.words;return P[0]==1398893684&&P[1]==1701076831&&(O=s.create(P.slice(2,4)),P.splice(0,4),N.sigBytes-=16),R.create({ciphertext:N,salt:O})}},M=i.SerializableCipher=o.extend({cfg:o.extend({format:x}),encrypt:function(T,O,N,P){P=this.cfg.extend(P);var C=T.createEncryptor(N,P),E=C.finalize(O),F=C.cfg;return R.create({ciphertext:E,key:N,iv:F.iv,algorithm:T,mode:F.mode,padding:F.padding,blockSize:T.blockSize,formatter:P.format})},decrypt:function(T,O,N,P){P=this.cfg.extend(P),O=this._parse(O,P.format);var C=T.createDecryptor(N,P).finalize(O.ciphertext);return C},_parse:function(T,O){return typeof T=="string"?O.parse(T,this):T}}),S=a.kdf={},w=S.OpenSSL={execute:function(T,O,N,P,C){if(P||(P=s.random(64/8)),C)var E=d.create({keySize:O+N,hasher:C}).compute(T,P);else var E=d.create({keySize:O+N}).compute(T,P);var F=s.create(E.words.slice(O),N*4);return E.sigBytes=O*4,R.create({key:E,iv:F,salt:P})}},_=i.PasswordBasedCipher=M.extend({cfg:M.cfg.extend({kdf:w}),encrypt:function(T,O,N,P){P=this.cfg.extend(P);var C=P.kdf.execute(N,T.keySize,T.ivSize,P.salt,P.hasher);P.iv=C.iv;var E=M.encrypt.call(this,T,O,C.key,P);return E.mixIn(C),E},decrypt:function(T,O,N,P){P=this.cfg.extend(P),O=this._parse(O,P.format);var C=P.kdf.execute(N,T.keySize,T.ivSize,O.salt,P.hasher);P.iv=C.iv;var E=M.decrypt.call(this,T,O,C.key,P);return E}})}()})}(DZ)),DZ.exports}var VZ={exports:{}},Hpe;function AUe(){return Hpe||(Hpe=1,function(t,e){(function(n,r,a){t.exports=r(_r(),po())})(cn,function(n){return n.mode.CFB=function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize;a.call(this,i,o,l,s),this._prevBlock=i.slice(o,o+l)}}),r.Decryptor=r.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,c=i.slice(o,o+l);a.call(this,i,o,l,s),this._prevBlock=c}});function a(i,o,s,l){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var f=0;f<s;f++)i[o+f]^=c[f]}return r}(),n.mode.CFB})}(VZ)),VZ.exports}var UZ={exports:{}},Gpe;function RUe(){return Gpe||(Gpe=1,function(t,e){(function(n,r,a){t.exports=r(_r(),po())})(cn,function(n){return n.mode.CTR=function(){var r=n.lib.BlockCipherMode.extend(),a=r.Encryptor=r.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var f=u.slice(0);s.encryptBlock(f,0),u[l-1]=u[l-1]+1|0;for(var d=0;d<l;d++)i[o+d]^=f[d]}});return r.Decryptor=a,r}(),n.mode.CTR})}(UZ)),UZ.exports}var WZ={exports:{}},$pe;function bUe(){return $pe||($pe=1,function(t,e){(function(n,r,a){t.exports=r(_r(),po())})(cn,function(n){/** @preserve- * Counter block mode compatible with Dr Brian Gladman fileenc.c- * derived from CryptoJS.mode.CTR- * Jan Hruby [email protected]- */return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function a(s){if((s>>24&255)===255){var l=s>>16&255,c=s>>8&255,u=s&255;l===255?(l=0,c===255?(c=0,u===255?u=0:++u):++c):++l,s=0,s+=l<<16,s+=c<<8,s+=u}else s+=1<<24;return s}function i(s){return(s[0]=a(s[0]))===0&&(s[1]=a(s[1])),s}var o=r.Encryptor=r.extend({processBlock:function(s,l){var c=this._cipher,u=c.blockSize,f=this._iv,d=this._counter;f&&(d=this._counter=f.slice(0),this._iv=void 0),i(d);var h=d.slice(0);c.encryptBlock(h,0);for(var p=0;p<u;p++)s[l+p]^=h[p]}});return r.Decryptor=o,r}(),n.mode.CTRGladman})}(WZ)),WZ.exports}var YZ={exports:{}},zpe;function xUe(){return zpe||(zpe=1,function(t,e){(function(n,r,a){t.exports=r(_r(),po())})(cn,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),a=r.Encryptor=r.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),s.encryptBlock(u,0);for(var f=0;f<l;f++)i[o+f]^=u[f]}});return r.Decryptor=a,r}(),n.mode.OFB})}(YZ)),YZ.exports}var BZ={exports:{}},Jpe;function SUe(){return Jpe||(Jpe=1,function(t,e){(function(n,r,a){t.exports=r(_r(),po())})(cn,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(a,i){this._cipher.encryptBlock(a,i)}}),r.Decryptor=r.extend({processBlock:function(a,i){this._cipher.decryptBlock(a,i)}}),r}(),n.mode.ECB})}(BZ)),BZ.exports}var ZZ={exports:{}},jpe;function MUe(){return jpe||(jpe=1,function(t,e){(function(n,r,a){t.exports=r(_r(),po())})(cn,function(n){return n.pad.AnsiX923={pad:function(r,a){var i=r.sigBytes,o=a*4,s=o-i%o,l=i+s-1;r.clamp(),r.words[l>>>2]|=s<<24-l%4*8,r.sigBytes+=s},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},n.pad.Ansix923})}(ZZ)),ZZ.exports}var QZ={exports:{}},qpe;function _Ue(){return qpe||(qpe=1,function(t,e){(function(n,r,a){t.exports=r(_r(),po())})(cn,function(n){return n.pad.Iso10126={pad:function(r,a){var i=a*4,o=i-r.sigBytes%i;r.concat(n.lib.WordArray.random(o-1)).concat(n.lib.WordArray.create([o<<24],1))},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},n.pad.Iso10126})}(QZ)),QZ.exports}var KZ={exports:{}},e0e;function wUe(){return e0e||(e0e=1,function(t,e){(function(n,r,a){t.exports=r(_r(),po())})(cn,function(n){return n.pad.Iso97971={pad:function(r,a){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,a)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(KZ)),KZ.exports}var HZ={exports:{}},t0e;function LUe(){return t0e||(t0e=1,function(t,e){(function(n,r,a){t.exports=r(_r(),po())})(cn,function(n){return n.pad.ZeroPadding={pad:function(r,a){var i=a*4;r.clamp(),r.sigBytes+=i-(r.sigBytes%i||i)},unpad:function(r){for(var a=r.words,i=r.sigBytes-1,i=r.sigBytes-1;i>=0;i--)if(a[i>>>2]>>>24-i%4*8&255){r.sigBytes=i+1;break}}},n.pad.ZeroPadding})}(HZ)),HZ.exports}var GZ={exports:{}},n0e;function TUe(){return n0e||(n0e=1,function(t,e){(function(n,r,a){t.exports=r(_r(),po())})(cn,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(GZ)),GZ.exports}var $Z={exports:{}},r0e;function OUe(){return r0e||(r0e=1,function(t,e){(function(n,r,a){t.exports=r(_r(),po())})(cn,function(n){return function(r){var a=n,i=a.lib,o=i.CipherParams,s=a.enc,l=s.Hex,c=a.format;c.Hex={stringify:function(u){return u.ciphertext.toString(l)},parse:function(u){var f=l.parse(u);return o.create({ciphertext:f})}}}(),n.format.Hex})}($Z)),$Z.exports}var zZ={exports:{}},a0e;function PUe(){return a0e||(a0e=1,function(t,e){(function(n,r,a){t.exports=r(_r(),Ay(),Ry(),rg(),po())})(cn,function(n){return function(){var r=n,a=r.lib,i=a.BlockCipher,o=r.algo,s=[],l=[],c=[],u=[],f=[],d=[],h=[],p=[],v=[],g=[];(function(){for(var R=[],A=0;A<256;A++)A<128?R[A]=A<<1:R[A]=A<<1^283;for(var x=0,M=0,A=0;A<256;A++){var S=M^M<<1^M<<2^M<<3^M<<4;S=S>>>8^S&255^99,s[x]=S,l[S]=x;var w=R[x],_=R[w],T=R[_],O=R[S]*257^S*16843008;c[x]=O<<24|O>>>8,u[x]=O<<16|O>>>16,f[x]=O<<8|O>>>24,d[x]=O;var O=T*16843009^_*65537^w*257^x*16843008;h[S]=O<<24|O>>>8,p[S]=O<<16|O>>>16,v[S]=O<<8|O>>>24,g[S]=O,x?(x=w^R[R[R[T^w]]],M^=R[R[M]]):x=M=1}})();var y=[0,1,2,4,8,16,32,64,128,27,54],m=o.AES=i.extend({_doReset:function(){var R;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var A=this._keyPriorReset=this._key,x=A.words,M=A.sigBytes/4,S=this._nRounds=M+6,w=(S+1)*4,_=this._keySchedule=[],T=0;T<w;T++)T<M?_[T]=x[T]:(R=_[T-1],T%M?M>6&&T%M==4&&(R=s[R>>>24]<<24|s[R>>>16&255]<<16|s[R>>>8&255]<<8|s[R&255]):(R=R<<8|R>>>24,R=s[R>>>24]<<24|s[R>>>16&255]<<16|s[R>>>8&255]<<8|s[R&255],R^=y[T/M|0]<<24),_[T]=_[T-M]^R);for(var O=this._invKeySchedule=[],N=0;N<w;N++){var T=w-N;if(N%4)var R=_[T];else var R=_[T-4];N<4||T<=4?O[N]=R:O[N]=h[s[R>>>24]]^p[s[R>>>16&255]]^v[s[R>>>8&255]]^g[s[R&255]]}}},encryptBlock:function(R,A){this._doCryptBlock(R,A,this._keySchedule,c,u,f,d,s)},decryptBlock:function(R,A){var x=R[A+1];R[A+1]=R[A+3],R[A+3]=x,this._doCryptBlock(R,A,this._invKeySchedule,h,p,v,g,l);var x=R[A+1];R[A+1]=R[A+3],R[A+3]=x},_doCryptBlock:function(R,A,x,M,S,w,_,T){for(var O=this._nRounds,N=R[A]^x[0],P=R[A+1]^x[1],C=R[A+2]^x[2],E=R[A+3]^x[3],F=4,Y=1;Y<O;Y++){var Q=M[N>>>24]^S[P>>>16&255]^w[C>>>8&255]^_[E&255]^x[F++],K=M[P>>>24]^S[C>>>16&255]^w[E>>>8&255]^_[N&255]^x[F++],ne=M[C>>>24]^S[E>>>16&255]^w[N>>>8&255]^_[P&255]^x[F++],Z=M[E>>>24]^S[N>>>16&255]^w[P>>>8&255]^_[C&255]^x[F++];N=Q,P=K,C=ne,E=Z}var Q=(T[N>>>24]<<24|T[P>>>16&255]<<16|T[C>>>8&255]<<8|T[E&255])^x[F++],K=(T[P>>>24]<<24|T[C>>>16&255]<<16|T[E>>>8&255]<<8|T[N&255])^x[F++],ne=(T[C>>>24]<<24|T[E>>>16&255]<<16|T[N>>>8&255]<<8|T[P&255])^x[F++],Z=(T[E>>>24]<<24|T[N>>>16&255]<<16|T[P>>>8&255]<<8|T[C&255])^x[F++];R[A]=Q,R[A+1]=K,R[A+2]=ne,R[A+3]=Z},keySize:256/32});r.AES=i._createHelper(m)}(),n.AES})}(zZ)),zZ.exports}var JZ={exports:{}},i0e;function CUe(){return i0e||(i0e=1,function(t,e){(function(n,r,a){t.exports=r(_r(),Ay(),Ry(),rg(),po())})(cn,function(n){return function(){var r=n,a=r.lib,i=a.WordArray,o=a.BlockCipher,s=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=s.DES=o.extend({_doReset:function(){for(var y=this._key,m=y.words,R=[],A=0;A<56;A++){var x=l[A]-1;R[A]=m[x>>>5]>>>31-x%32&1}for(var M=this._subKeys=[],S=0;S<16;S++){for(var w=M[S]=[],_=u[S],A=0;A<24;A++)w[A/6|0]|=R[(c[A]-1+_)%28]<<31-A%6,w[4+(A/6|0)]|=R[28+(c[A+24]-1+_)%28]<<31-A%6;w[0]=w[0]<<1|w[0]>>>31;for(var A=1;A<7;A++)w[A]=w[A]>>>(A-1)*4+3;w[7]=w[7]<<5|w[7]>>>27}for(var T=this._invSubKeys=[],A=0;A<16;A++)T[A]=M[15-A]},encryptBlock:function(y,m){this._doCryptBlock(y,m,this._subKeys)},decryptBlock:function(y,m){this._doCryptBlock(y,m,this._invSubKeys)},_doCryptBlock:function(y,m,R){this._lBlock=y[m],this._rBlock=y[m+1],p.call(this,4,252645135),p.call(this,16,65535),v.call(this,2,858993459),v.call(this,8,16711935),p.call(this,1,1431655765);for(var A=0;A<16;A++){for(var x=R[A],M=this._lBlock,S=this._rBlock,w=0,_=0;_<8;_++)w|=f[_][((S^x[_])&d[_])>>>0];this._lBlock=S,this._rBlock=M^w}var T=this._lBlock;this._lBlock=this._rBlock,this._rBlock=T,p.call(this,1,1431655765),v.call(this,8,16711935),v.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),y[m]=this._lBlock,y[m+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function p(y,m){var R=(this._lBlock>>>y^this._rBlock)&m;this._rBlock^=R,this._lBlock^=R<<y}function v(y,m){var R=(this._rBlock>>>y^this._lBlock)&m;this._lBlock^=R,this._rBlock^=R<<y}r.DES=o._createHelper(h);var g=s.TripleDES=o.extend({_doReset:function(){var y=this._key,m=y.words;if(m.length!==2&&m.length!==4&&m.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var R=m.slice(0,2),A=m.length<4?m.slice(0,2):m.slice(2,4),x=m.length<6?m.slice(0,2):m.slice(4,6);this._des1=h.createEncryptor(i.create(R)),this._des2=h.createEncryptor(i.create(A)),this._des3=h.createEncryptor(i.create(x))},encryptBlock:function(y,m){this._des1.encryptBlock(y,m),this._des2.decryptBlock(y,m),this._des3.encryptBlock(y,m)},decryptBlock:function(y,m){this._des3.decryptBlock(y,m),this._des2.encryptBlock(y,m),this._des1.decryptBlock(y,m)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=o._createHelper(g)}(),n.TripleDES})}(JZ)),JZ.exports}var jZ={exports:{}},o0e;function NUe(){return o0e||(o0e=1,function(t,e){(function(n,r,a){t.exports=r(_r(),Ay(),Ry(),rg(),po())})(cn,function(n){return function(){var r=n,a=r.lib,i=a.StreamCipher,o=r.algo,s=o.RC4=i.extend({_doReset:function(){for(var u=this._key,f=u.words,d=u.sigBytes,h=this._S=[],p=0;p<256;p++)h[p]=p;for(var p=0,v=0;p<256;p++){var g=p%d,y=f[g>>>2]>>>24-g%4*8&255;v=(v+h[p]+y)%256;var m=h[p];h[p]=h[v],h[v]=m}this._i=this._j=0},_doProcessBlock:function(u,f){u[f]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var u=this._S,f=this._i,d=this._j,h=0,p=0;p<4;p++){f=(f+1)%256,d=(d+u[f])%256;var v=u[f];u[f]=u[d],u[d]=v,h|=u[(u[f]+u[d])%256]<<24-p*8}return this._i=f,this._j=d,h}r.RC4=i._createHelper(s);var c=o.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)l.call(this)}});r.RC4Drop=i._createHelper(c)}(),n.RC4})}(jZ)),jZ.exports}var qZ={exports:{}},s0e;function IUe(){return s0e||(s0e=1,function(t,e){(function(n,r,a){t.exports=r(_r(),Ay(),Ry(),rg(),po())})(cn,function(n){return function(){var r=n,a=r.lib,i=a.StreamCipher,o=r.algo,s=[],l=[],c=[],u=o.Rabbit=i.extend({_doReset:function(){for(var d=this._key.words,h=this.cfg.iv,p=0;p<4;p++)d[p]=(d[p]<<8|d[p]>>>24)&16711935|(d[p]<<24|d[p]>>>8)&4278255360;var v=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],g=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var p=0;p<4;p++)f.call(this);for(var p=0;p<8;p++)g[p]^=v[p+4&7];if(h){var y=h.words,m=y[0],R=y[1],A=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,x=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,M=A>>>16|x&4294901760,S=x<<16|A&65535;g[0]^=A,g[1]^=M,g[2]^=x,g[3]^=S,g[4]^=A,g[5]^=M,g[6]^=x,g[7]^=S;for(var p=0;p<4;p++)f.call(this)}},_doProcessBlock:function(d,h){var p=this._X;f.call(this),s[0]=p[0]^p[5]>>>16^p[3]<<16,s[1]=p[2]^p[7]>>>16^p[5]<<16,s[2]=p[4]^p[1]>>>16^p[7]<<16,s[3]=p[6]^p[3]>>>16^p[1]<<16;for(var v=0;v<4;v++)s[v]=(s[v]<<8|s[v]>>>24)&16711935|(s[v]<<24|s[v]>>>8)&4278255360,d[h+v]^=s[v]},blockSize:128/32,ivSize:64/32});function f(){for(var d=this._X,h=this._C,p=0;p<8;p++)l[p]=h[p];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<l[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<l[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<l[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<l[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<l[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<l[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<l[6]>>>0?1:0)|0,this._b=h[7]>>>0<l[7]>>>0?1:0;for(var p=0;p<8;p++){var v=d[p]+h[p],g=v&65535,y=v>>>16,m=((g*g>>>17)+g*y>>>15)+y*y,R=((v&4294901760)*v|0)+((v&65535)*v|0);c[p]=m^R}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=i._createHelper(u)}(),n.Rabbit})}(qZ)),qZ.exports}var eQ={exports:{}},l0e;function kUe(){return l0e||(l0e=1,function(t,e){(function(n,r,a){t.exports=r(_r(),Ay(),Ry(),rg(),po())})(cn,function(n){return function(){var r=n,a=r.lib,i=a.StreamCipher,o=r.algo,s=[],l=[],c=[],u=o.RabbitLegacy=i.extend({_doReset:function(){var d=this._key.words,h=this.cfg.iv,p=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],v=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var g=0;g<4;g++)f.call(this);for(var g=0;g<8;g++)v[g]^=p[g+4&7];if(h){var y=h.words,m=y[0],R=y[1],A=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,x=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,M=A>>>16|x&4294901760,S=x<<16|A&65535;v[0]^=A,v[1]^=M,v[2]^=x,v[3]^=S,v[4]^=A,v[5]^=M,v[6]^=x,v[7]^=S;for(var g=0;g<4;g++)f.call(this)}},_doProcessBlock:function(d,h){var p=this._X;f.call(this),s[0]=p[0]^p[5]>>>16^p[3]<<16,s[1]=p[2]^p[7]>>>16^p[5]<<16,s[2]=p[4]^p[1]>>>16^p[7]<<16,s[3]=p[6]^p[3]>>>16^p[1]<<16;for(var v=0;v<4;v++)s[v]=(s[v]<<8|s[v]>>>24)&16711935|(s[v]<<24|s[v]>>>8)&4278255360,d[h+v]^=s[v]},blockSize:128/32,ivSize:64/32});function f(){for(var d=this._X,h=this._C,p=0;p<8;p++)l[p]=h[p];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<l[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<l[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<l[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<l[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<l[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<l[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<l[6]>>>0?1:0)|0,this._b=h[7]>>>0<l[7]>>>0?1:0;for(var p=0;p<8;p++){var v=d[p]+h[p],g=v&65535,y=v>>>16,m=((g*g>>>17)+g*y>>>15)+y*y,R=((v&4294901760)*v|0)+((v&65535)*v|0);c[p]=m^R}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=i._createHelper(u)}(),n.RabbitLegacy})}(eQ)),eQ.exports}var tQ={exports:{}},c0e;function EUe(){return c0e||(c0e=1,function(t,e){(function(n,r,a){t.exports=r(_r(),Ay(),Ry(),rg(),po())})(cn,function(n){return function(){var r=n,a=r.lib,i=a.BlockCipher,o=r.algo;const s=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function f(g,y){let m=y>>24&255,R=y>>16&255,A=y>>8&255,x=y&255,M=g.sbox[0][m]+g.sbox[1][R];return M=M^g.sbox[2][A],M=M+g.sbox[3][x],M}function d(g,y,m){let R=y,A=m,x;for(let M=0;M<s;++M)R=R^g.pbox[M],A=f(g,R)^A,x=R,R=A,A=x;return x=R,R=A,A=x,A=A^g.pbox[s],R=R^g.pbox[s+1],{left:R,right:A}}function h(g,y,m){let R=y,A=m,x;for(let M=s+1;M>1;--M)R=R^g.pbox[M],A=f(g,R)^A,x=R,R=A,A=x;return x=R,R=A,A=x,A=A^g.pbox[1],R=R^g.pbox[0],{left:R,right:A}}function p(g,y,m){for(let S=0;S<4;S++){g.sbox[S]=[];for(let w=0;w<256;w++)g.sbox[S][w]=c[S][w]}let R=0;for(let S=0;S<s+2;S++)g.pbox[S]=l[S]^y[R],R++,R>=m&&(R=0);let A=0,x=0,M=0;for(let S=0;S<s+2;S+=2)M=d(g,A,x),A=M.left,x=M.right,g.pbox[S]=A,g.pbox[S+1]=x;for(let S=0;S<4;S++)for(let w=0;w<256;w+=2)M=d(g,A,x),A=M.left,x=M.right,g.sbox[S][w]=A,g.sbox[S][w+1]=x;return!0}var v=o.Blowfish=i.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var g=this._keyPriorReset=this._key,y=g.words,m=g.sigBytes/4;p(u,y,m)}},encryptBlock:function(g,y){var m=d(u,g[y],g[y+1]);g[y]=m.left,g[y+1]=m.right},decryptBlock:function(g,y){var m=h(u,g[y],g[y+1]);g[y]=m.left,g[y+1]=m.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=i._createHelper(v)}(),n.Blowfish})}(tQ)),tQ.exports}(function(t,e){(function(n,r,a){t.exports=r(_r(),ED(),fUe(),dUe(),Ay(),hUe(),Ry(),_4e(),Mj(),pUe(),w4e(),vUe(),gUe(),mUe(),_j(),yUe(),rg(),po(),AUe(),RUe(),bUe(),xUe(),SUe(),MUe(),_Ue(),wUe(),LUe(),TUe(),OUe(),PUe(),CUe(),NUe(),IUe(),kUe(),EUe())})(cn,function(n){return n})})(M4e);var FUe=M4e.exports;const CG=ng(FUe),L4e="pptist",T4e=t=>CG.AES.encrypt(t,L4e).toString(),XUe=t=>CG.AES.decrypt(t,L4e).toString(CG.enc.Utf8),O4e=t=>new Promise((e,n)=>{const r=document.createElement("button"),a=new sUe(r,{text:()=>t,action:()=>"copy",container:document.body});a.on("success",i=>{a.destroy(),e(i)}),a.on("error",i=>{a.destroy(),n(i)}),document.body.appendChild(r),r.click(),document.body.removeChild(r)}),P4e=()=>new Promise((t,e)=>{var n;(n=navigator.clipboard)!=null&&n.readText?navigator.clipboard.readText().then(r=>(r||e("剪贴板为空或者不包含文本"),t(r))):e("浏览器不支持或禁止访问剪贴板,请使用快捷键 Ctrl + V")}),wj=t=>{let e;try{e=JSON.parse(XUe(t))}catch{e=t}return e},C4e=t=>{const e=t.split(`\r-`);e[e.length-1]===""&&e.pop();let n=-1;const r=[];for(const a in e){if(r[a]=e[a].split(" "),r[a].length===1)return null;if(n===-1)n=r[a].length;else if(n!==r[a].length)return null}return r},N4e=t=>{const r=new DOMParser().parseFromString(t,"text/html").querySelector("table"),a=[];if(!r)return a;const i=r.querySelectorAll("tr");for(const o of i){const s=[],l=o.querySelectorAll("td, th");for(const c of l){const u=c.textContent?c.textContent.trim():"",f=parseInt(c.getAttribute("colspan")||"1",10);for(let d=0;d<f;d++)s.push(u)}a.push(s)}return a};function QF(t){"@babel/helpers - typeof";return QF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QF(t)}var DUe=/^\s+/,VUe=/\s+$/;function Ct(t,e){if(t=t||"",e=e||{},t instanceof Ct)return t;if(!(this instanceof Ct))return new Ct(t,e);var n=UUe(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}Ct.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),n,r,a,i,o,s;return n=e.r/255,r=e.g/255,a=e.b/255,n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),.2126*i+.7152*o+.0722*s},setAlpha:function(e){return this._a=I4e(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=f0e(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f0e(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),a=Math.round(e.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+a+"%)":"hsva("+n+", "+r+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var e=u0e(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=u0e(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),a=Math.round(e.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+a+"%)":"hsla("+n+", "+r+"%, "+a+"%, "+this._roundA+")"},toHex:function(e){return d0e(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return ZUe(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ia(this._r,255)*100)+"%",g:Math.round(Ia(this._g,255)*100)+"%",b:Math.round(Ia(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ia(this._r,255)*100)+"%, "+Math.round(Ia(this._g,255)*100)+"%, "+Math.round(Ia(this._b,255)*100)+"%)":"rgba("+Math.round(Ia(this._r,255)*100)+"%, "+Math.round(Ia(this._g,255)*100)+"%, "+Math.round(Ia(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:nWe[d0e(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var n="#"+h0e(this._r,this._g,this._b,this._a),r=n,a=this._gradientType?"GradientType = 1, ":"";if(e){var i=Ct(e);r="#"+h0e(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+n+",endColorstr="+r+")"},toString:function(e){var n=!!e;e=e||this._format;var r=!1,a=this._a<1&&this._a>=0,i=!n&&a&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Ct(this.toString())},_applyModification:function(e,n){var r=e.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(GUe,arguments)},brighten:function(){return this._applyModification($Ue,arguments)},darken:function(){return this._applyModification(zUe,arguments)},desaturate:function(){return this._applyModification(QUe,arguments)},saturate:function(){return this._applyModification(KUe,arguments)},greyscale:function(){return this._applyModification(HUe,arguments)},spin:function(){return this._applyModification(JUe,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(eWe,arguments)},complement:function(){return this._applyCombination(jUe,arguments)},monochromatic:function(){return this._applyCombination(tWe,arguments)},splitcomplement:function(){return this._applyCombination(qUe,arguments)},triad:function(){return this._applyCombination(p0e,[3])},tetrad:function(){return this._applyCombination(p0e,[4])}};Ct.fromRatio=function(t,e){if(QF(t)=="object"){var n={};for(var r in t)t.hasOwnProperty(r)&&(r==="a"?n[r]=t[r]:n[r]=z5(t[r]));t=n}return Ct(t,e)};function UUe(t){var e={r:0,g:0,b:0},n=1,r=null,a=null,i=null,o=!1,s=!1;return typeof t=="string"&&(t=oWe(t)),QF(t)=="object"&&(Fp(t.r)&&Fp(t.g)&&Fp(t.b)?(e=WUe(t.r,t.g,t.b),o=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Fp(t.h)&&Fp(t.s)&&Fp(t.v)?(r=z5(t.s),a=z5(t.v),e=BUe(t.h,r,a),o=!0,s="hsv"):Fp(t.h)&&Fp(t.s)&&Fp(t.l)&&(r=z5(t.s),i=z5(t.l),e=YUe(t.h,r,i),o=!0,s="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=I4e(n),{ok:o,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}function WUe(t,e,n){return{r:Ia(t,255)*255,g:Ia(e,255)*255,b:Ia(n,255)*255}}function u0e(t,e,n){t=Ia(t,255),e=Ia(e,255),n=Ia(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),i,o,s=(r+a)/2;if(r==a)i=o=0;else{var l=r-a;switch(o=s>.5?l/(2-r-a):l/(r+a),r){case t:i=(e-n)/l+(e<n?6:0);break;case e:i=(n-t)/l+2;break;case n:i=(t-e)/l+4;break}i/=6}return{h:i,s:o,l:s}}function YUe(t,e,n){var r,a,i;t=Ia(t,360),e=Ia(e,100),n=Ia(n,100);function o(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(e===0)r=a=i=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;r=o(l,s,t+1/3),a=o(l,s,t),i=o(l,s,t-1/3)}return{r:r*255,g:a*255,b:i*255}}function f0e(t,e,n){t=Ia(t,255),e=Ia(e,255),n=Ia(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),i,o,s=r,l=r-a;if(o=r===0?0:l/r,r==a)i=0;else{switch(r){case t:i=(e-n)/l+(e<n?6:0);break;case e:i=(n-t)/l+2;break;case n:i=(t-e)/l+4;break}i/=6}return{h:i,s:o,v:s}}function BUe(t,e,n){t=Ia(t,360)*6,e=Ia(e,100),n=Ia(n,100);var r=Math.floor(t),a=t-r,i=n*(1-e),o=n*(1-a*e),s=n*(1-(1-a)*e),l=r%6,c=[n,o,i,i,s,n][l],u=[s,n,n,o,i,i][l],f=[i,i,s,n,n,o][l];return{r:c*255,g:u*255,b:f*255}}function d0e(t,e,n,r){var a=[Tf(Math.round(t).toString(16)),Tf(Math.round(e).toString(16)),Tf(Math.round(n).toString(16))];return r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function ZUe(t,e,n,r,a){var i=[Tf(Math.round(t).toString(16)),Tf(Math.round(e).toString(16)),Tf(Math.round(n).toString(16)),Tf(k4e(r))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function h0e(t,e,n,r){var a=[Tf(k4e(r)),Tf(Math.round(t).toString(16)),Tf(Math.round(e).toString(16)),Tf(Math.round(n).toString(16))];return a.join("")}Ct.equals=function(t,e){return!t||!e?!1:Ct(t).toRgbString()==Ct(e).toRgbString()};Ct.random=function(){return Ct.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function QUe(t,e){e=e===0?0:e||10;var n=Ct(t).toHsl();return n.s-=e/100,n.s=FD(n.s),Ct(n)}function KUe(t,e){e=e===0?0:e||10;var n=Ct(t).toHsl();return n.s+=e/100,n.s=FD(n.s),Ct(n)}function HUe(t){return Ct(t).desaturate(100)}function GUe(t,e){e=e===0?0:e||10;var n=Ct(t).toHsl();return n.l+=e/100,n.l=FD(n.l),Ct(n)}function $Ue(t,e){e=e===0?0:e||10;var n=Ct(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),Ct(n)}function zUe(t,e){e=e===0?0:e||10;var n=Ct(t).toHsl();return n.l-=e/100,n.l=FD(n.l),Ct(n)}function JUe(t,e){var n=Ct(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,Ct(n)}function jUe(t){var e=Ct(t).toHsl();return e.h=(e.h+180)%360,Ct(e)}function p0e(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=Ct(t).toHsl(),r=[Ct(t)],a=360/e,i=1;i<e;i++)r.push(Ct({h:(n.h+i*a)%360,s:n.s,l:n.l}));return r}function qUe(t){var e=Ct(t).toHsl(),n=e.h;return[Ct(t),Ct({h:(n+72)%360,s:e.s,l:e.l}),Ct({h:(n+216)%360,s:e.s,l:e.l})]}function eWe(t,e,n){e=e||6,n=n||30;var r=Ct(t).toHsl(),a=360/n,i=[Ct(t)];for(r.h=(r.h-(a*e>>1)+720)%360;--e;)r.h=(r.h+a)%360,i.push(Ct(r));return i}function tWe(t,e){e=e||6;for(var n=Ct(t).toHsv(),r=n.h,a=n.s,i=n.v,o=[],s=1/e;e--;)o.push(Ct({h:r,s:a,v:i})),i=(i+s)%1;return o}Ct.mix=function(t,e,n){n=n===0?0:n||50;var r=Ct(t).toRgb(),a=Ct(e).toRgb(),i=n/100,o={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return Ct(o)};Ct.readability=function(t,e){var n=Ct(t),r=Ct(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Ct.isReadable=function(t,e,n){var r=Ct.readability(t,e),a,i;switch(i=!1,a=sWe(n),a.level+a.size){case"AAsmall":case"AAAlarge":i=r>=4.5;break;case"AAlarge":i=r>=3;break;case"AAAsmall":i=r>=7;break}return i};Ct.mostReadable=function(t,e,n){var r=null,a=0,i,o,s,l;n=n||{},o=n.includeFallbackColors,s=n.level,l=n.size;for(var c=0;c<e.length;c++)i=Ct.readability(t,e[c]),i>a&&(a=i,r=Ct(e[c]));return Ct.isReadable(t,r,{level:s,size:l})||!o?r:(n.includeFallbackColors=!1,Ct.mostReadable(t,["#fff","#000"],n))};var NG=Ct.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",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",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},nWe=Ct.hexNames=rWe(NG);function rWe(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function I4e(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Ia(t,e){aWe(t)&&(t="100%");var n=iWe(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function FD(t){return Math.min(1,Math.max(0,t))}function ql(t){return parseInt(t,16)}function aWe(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function iWe(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Tf(t){return t.length==1?"0"+t:""+t}function z5(t){return t<=1&&(t=t*100+"%"),t}function k4e(t){return Math.round(parseFloat(t)*255).toString(16)}function v0e(t){return ql(t)/255}var hf=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",n="(?:"+e+")|(?:"+t+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Fp(t){return!!hf.CSS_UNIT.exec(t)}function oWe(t){t=t.replace(DUe,"").replace(VUe,"").toLowerCase();var e=!1;if(NG[t])t=NG[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=hf.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=hf.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=hf.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=hf.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=hf.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=hf.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=hf.hex8.exec(t))?{r:ql(n[1]),g:ql(n[2]),b:ql(n[3]),a:v0e(n[4]),format:e?"name":"hex8"}:(n=hf.hex6.exec(t))?{r:ql(n[1]),g:ql(n[2]),b:ql(n[3]),format:e?"name":"hex"}:(n=hf.hex4.exec(t))?{r:ql(n[1]+""+n[1]),g:ql(n[2]+""+n[2]),b:ql(n[3]+""+n[3]),a:v0e(n[4]+""+n[4]),format:e?"name":"hex8"}:(n=hf.hex3.exec(t))?{r:ql(n[1]+""+n[1]),g:ql(n[2]+""+n[2]),b:ql(n[3]+""+n[3]),format:e?"name":"hex"}:!1}function sWe(t){var e,n;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:e,size:n}}const Ux=t=>{const{left:e,top:n,width:r,height:a,rotate:i=0}=t,o=Math.sqrt(Math.pow(r,2)+Math.pow(a,2))/2,s=Math.atan(a/r)*180/Math.PI,l=(180-i-s)*Math.PI/180,c=(s-i)*Math.PI/180,u=e+r/2,f=n+a/2,d=[u+o*Math.cos(l),u+o*Math.cos(c),u-o*Math.cos(l),u-o*Math.cos(c)],h=[f-o*Math.sin(l),f-o*Math.sin(c),f+o*Math.sin(l),f+o*Math.sin(c)];return{xRange:[Math.min(...d),Math.max(...d)],yRange:[Math.min(...h),Math.max(...h)]}},hx=t=>{const{xRange:e,yRange:n}=Ux({left:t.left,top:t.top,width:t.width,height:t.height,rotate:0}),{xRange:r,yRange:a}=Ux({left:t.left,top:t.top,width:t.width,height:t.height,rotate:t.rotate});return{offsetX:r[0]-e[0],offsetY:a[0]-n[0]}},fl=t=>{let e,n,r,a;if(t.type==="line")e=t.left,n=t.left+Math.max(t.start[0],t.end[0]),r=t.top,a=t.top+Math.max(t.start[1],t.end[1]);else if("rotate"in t&&t.rotate){const{left:i,top:o,width:s,height:l,rotate:c}=t,{xRange:u,yRange:f}=Ux({left:i,top:o,width:s,height:l,rotate:c});e=u[0],n=u[1],r=f[0],a=f[1]}else e=t.left,n=t.left+t.width,r=t.top,a=t.top+t.height;return{minX:e,maxX:n,minY:r,maxY:a}},o0=t=>{const e=[],n=[],r=[],a=[];t.forEach(c=>{const{minX:u,maxX:f,minY:d,maxY:h}=fl(c);e.push(u),n.push(d),r.push(f),a.push(h)});const i=Math.min(...e),o=Math.max(...r),s=Math.min(...n),l=Math.max(...a);return{minX:i,maxX:o,minY:s,maxY:l}},lWe=["text","image","shape","line"],cWe=t=>{if(t.length<2)return!1;const e=t[0].groupId;return e?t.every(n=>n.groupId===e):!1},E4e=t=>cWe(t)?t.every(e=>!(!lWe.includes(e.type)||e.type==="line"&&(e.broken||e.broken2||e.curve||e.cubic))):!1,uWe=(t,e=0)=>{const{minX:n,maxX:r,minY:a,maxY:i}=hWe(t,e),o={x:(n+r)/2,y:(a+i)/2};return e?xf(o,{x:0,y:0},e):o},fWe=t=>{const e={x:t.left+t.width/2,y:t.top+t.height/2},n=[{x:e.x-t.width/2,y:e.y-t.height/2},{x:e.x+t.width/2,y:e.y-t.height/2},{x:e.x+t.width/2,y:e.y+t.height/2},{x:e.x-t.width/2,y:e.y+t.height/2}];return t.rotate?n.map(r=>xf(r,e,t.rotate)):n},dWe=t=>{const e=F4e(t);return[e.start,e.end]},hWe=(t,e)=>{const n=[],r=[];return t.forEach(a=>{const i=a.type==="line"?dWe(a):fWe(a),o=e?i.map(s=>xf(s,{x:0,y:0},-e)):i;n.push(...o.map(s=>s.x)),r.push(...o.map(s=>s.y))}),{minX:Math.min(...n),maxX:Math.max(...n),minY:Math.min(...r),maxY:Math.max(...r)}},C_=t=>{let e=t;for(;e>180;)e-=360;for(;e<-180;)e+=360;return e},xf=(t,e,n)=>{const r=n*Math.PI/180,a=t.x-e.x,i=t.y-e.y;return{x:e.x+a*Math.cos(r)-i*Math.sin(r),y:e.y+a*Math.sin(r)+i*Math.cos(r)}},pWe=(t,e,n)=>{const r={x:t.left+t.width/2,y:t.top+t.height/2},a=xf(r,e,n);return{...t,left:a.x-t.width/2,top:a.y-t.height/2,rotate:C_(t.rotate+n)}},F4e=t=>{const e=r=>({x:t.left+r[0],y:t.top+r[1]}),n={start:e(t.start),end:e(t.end)};return t.broken&&(n.broken=e(t.broken)),t.broken2&&(n.broken2=e(t.broken2)),t.curve&&(n.curve=e(t.curve)),t.cubic&&(n.cubic=[e(t.cubic[0]),e(t.cubic[1])]),n},vWe=(t,e,n)=>{const r={start:xf(t.start,e,n),end:xf(t.end,e,n)};return t.broken&&(r.broken=xf(t.broken,e,n)),t.broken2&&(r.broken2=xf(t.broken2,e,n)),t.curve&&(r.curve=xf(t.curve,e,n)),t.cubic&&(r.cubic=[xf(t.cubic[0],e,n),xf(t.cubic[1],e,n)]),r},gWe=(t,e)=>{const n=[e.start,e.end];e.broken&&n.push(e.broken),e.broken2&&n.push(e.broken2),e.curve&&n.push(e.curve),e.cubic&&n.push(...e.cubic);const r=Math.min(...n.map(s=>s.x)),a=Math.min(...n.map(s=>s.y)),i=s=>[s.x-r,s.y-a],o={...t,left:r,top:a,start:i(e.start),end:i(e.end)};return e.broken?o.broken=i(e.broken):delete o.broken,e.broken2?o.broken2=i(e.broken2):delete o.broken2,e.curve?o.curve=i(e.curve):delete o.curve,e.cubic?o.cubic=[i(e.cubic[0]),i(e.cubic[1])]:delete o.cubic,o},mWe=(t,e,n)=>{const r=F4e(t),a=vWe(r,e,n);return gWe(t,a)},yWe=t=>{const e=t.end[0]-t.start[0],n=t.end[1]-t.start[1];return Math.sqrt(e*e+n*n)},KF=t=>{const e=[];return t.forEach(n=>{const r=e.findIndex(a=>a.value===n.value);if(r===-1)e.push(n);else{const a=e[r],i=Math.min(a.range[0],n.range[0]),o=Math.max(a.range[1],n.range[1]),s=[i,o],l={value:n.value,range:s};e[r]=l}}),e},AWe=t=>{const e={};for(const n of t)e[n.id]=Gn(10);return e},HF=t=>{const e={},n={};for(const r of t){const a=r.groupId;a&&!e[a]&&(e[a]=Gn(10)),n[r.id]=Gn(10)}return{groupIdMap:e,elIdMap:n}},X4e=t=>{const e=Ct(t);return[e.setAlpha(.3).toRgbString(),e.setAlpha(.1).toRgbString()]},Lj=t=>{const e=t.start.join(","),n=t.end.join(",");if(t.broken){const r=t.broken.join(",");return`M${e} L${r} L${n}`}else if(t.broken2){const{minX:r,maxX:a,minY:i,maxY:o}=fl(t);return a-r>=o-i?`M${e} L${t.broken2[0]},${t.start[1]} L${t.broken2[0]},${t.end[1]} ${n}`:`M${e} L${t.start[0]},${t.broken2[1]} L${t.end[0]},${t.broken2[1]} ${n}`}else if(t.curve){const r=t.curve.join(",");return`M${e} Q${r} ${n}`}else if(t.cubic){const[r,a]=t.cubic,i=r.join(","),o=a.join(",");return`M${e} C${i} ${o} ${n}`}return`M${e} L${n}`},g0e=(t,e)=>{const n=e<2?2:e;return t==="arrow"?n:t==="dot"?n/2:0},IG=(t,e)=>{const n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)},m0e=(t,e,n)=>{const r=IG(t,e);if(!r)return t;const a=n/r;return[t[0]+(e[0]-t[0])*a,t[1]+(e[1]-t[1])*a]},RWe=t=>{if(t.broken)return[t.broken];if(t.broken2){const{minX:e,maxX:n,minY:r,maxY:a}=fl(t);return n-e>=a-r?[[t.broken2[0],t.start[1]],[t.broken2[0],t.end[1]]]:[[t.start[0],t.broken2[1]],[t.end[0],t.broken2[1]]]}return t.curve?[t.curve]:t.cubic?[t.cubic[0],t.cubic[1]]:[]},D4e=t=>{const e=RWe(t);let n=t.start,r=t.end;const a=g0e(t.points[0],t.width),i=g0e(t.points[1],t.width);if(a){const l=e[0]||t.end,c=Math.min(a,IG(t.start,l)/2);n=m0e(t.start,l,c)}if(i){const l=e[e.length-1]||t.start,c=Math.min(i,IG(l,t.end)/2);r=m0e(t.end,l,c)}const o=n.join(","),s=r.join(",");if(t.broken){const l=t.broken.join(",");return`M${o} L${l} L${s}`}else if(t.broken2){const{minX:l,maxX:c,minY:u,maxY:f}=fl(t);return c-l>=f-u?`M${o} L${t.broken2[0]},${t.start[1]} L${t.broken2[0]},${t.end[1]} ${s}`:`M${o} L${t.start[0]},${t.broken2[1]} L${t.end[0]},${t.broken2[1]} ${s}`}else if(t.curve){const l=t.curve.join(",");return`M${o} Q${l} ${s}`}else if(t.cubic){const[l,c]=t.cubic,u=l.join(","),f=c.join(",");return`M${o} C${u} ${f} ${s}`}return`M${o} L${s}`},bWe=(t,e)=>{const n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top>=r.top&&n.bottom<=r.bottom},GF=t=>{const n=t.replace(/[\n\r]+/g,"<br>").split("<br>");let r="";for(const a of n)a&&(r+=`<div>${a}</div>`);return r},V4e=t=>new Promise(e=>{const n=document.createElement("img");n.src=t,n.style.opacity="0",document.body.appendChild(n),n.onload=()=>{const r=n.clientWidth,a=n.clientHeight;n.onload=null,n.onerror=null,document.body.removeChild(n),e({width:r,height:a})},n.onerror=()=>{n.onload=null,n.onerror=null}}),ag=t=>new Promise(e=>{const n=new FileReader;n.addEventListener("load",()=>{e(n.result)}),n.readAsDataURL(t)}),xWe=t=>{if(!/<svg[\s\S]*?>[\s\S]*?<\/svg>/i.test(t))return!1;try{return new DOMParser().parseFromString(t,"image/svg+xml").documentElement.nodeName==="svg"}catch{return!1}},SWe=t=>{const e=new Blob([t],{type:"image/svg+xml"});return new File([e],`${Date.now()}.svg`,{type:"image/svg+xml"})};var Hn=(t=>(t.ROUND_RECT="roundRect",t.ROUND_RECT_DIAGONAL="roundRectDiagonal",t.ROUND_RECT_SINGLE="roundRectSingle",t.ROUND_RECT_SAMESIDE="roundRectSameSide",t.CUT_RECT_DIAGONAL="cutRectDiagonal",t.CUT_RECT_SINGLE="cutRectSingle",t.CUT_RECT_SAMESIDE="cutRectSameSide",t.CUT_ROUND_RECT="cutRoundRect",t.MESSAGE="message",t.ROUND_MESSAGE="roundMessage",t.L="L",t.RING_RECT="ringRect",t.PLUS="plus",t.TRIANGLE="triangle",t.PARALLELOGRAM_LEFT="parallelogramLeft",t.PARALLELOGRAM_RIGHT="parallelogramRight",t.TRAPEZOID="trapezoid",t.BULLET="bullet",t.INDICATOR="indicator",t.DONUT="donut",t.DIAGSTRIPE="diagStripe",t))(Hn||{}),vn=(t=>(t.TEXT="text",t.IMAGE="image",t.SHAPE="shape",t.LINE="line",t.CHART="chart",t.TABLE="table",t.LATEX="latex",t.VIDEO="video",t.AUDIO="audio",t))(vn||{});const by={[Hn.ROUND_RECT]:{editable:!0,defaultValue:[.125],range:[[0,.5]],relative:["left"],getBaseSize:[(t,e)=>Math.min(t,e)],formula:(t,e,n)=>{const r=Math.min(t,e)*n[0];return`M ${r} 0 L ${t-r} 0 Q ${t} 0 ${t} ${r} L ${t} ${e-r} Q ${t} ${e} ${t-r} ${e} L ${r} ${e} Q 0 ${e} 0 ${e-r} L 0 ${r} Q 0 0 ${r} 0 Z`}},[Hn.CUT_RECT_DIAGONAL]:{editable:!0,defaultValue:[.2],range:[[0,.95]],relative:["right"],getBaseSize:[(t,e)=>Math.min(t,e)],formula:(t,e,n)=>{const r=Math.min(t,e)*n[0];return`M 0 ${e-r} L 0 0 L ${t-r} 0 L ${t} ${r} L ${t} ${e} L ${r} ${e} Z`}},[Hn.CUT_RECT_SINGLE]:{editable:!0,defaultValue:[.2],range:[[0,1]],relative:["right"],getBaseSize:[(t,e)=>Math.min(t,e)],formula:(t,e,n)=>{const r=Math.min(t,e)*n[0];return`M 0 ${e} L 0 0 L ${t-r} 0 L ${t} ${r} L ${t} ${e} Z`}},[Hn.CUT_RECT_SAMESIDE]:{editable:!0,defaultValue:[.2],range:[[0,.5]],relative:["left"],getBaseSize:[(t,e)=>Math.min(t,e)],formula:(t,e,n)=>{const r=Math.min(t,e)*n[0];return`M 0 ${r} L ${r} 0 L ${t-r} 0 L ${t} ${r} L ${t} ${e} L 0 ${e} Z`}},[Hn.ROUND_RECT_DIAGONAL]:{editable:!0,defaultValue:[.125],range:[[0,1]],relative:["left"],getBaseSize:[(t,e)=>Math.min(t,e)],formula:(t,e,n)=>{const r=Math.min(t,e)*n[0];return`M ${r} 0 L ${t} 0 L ${t} ${e-r} Q ${t} ${e} ${t-r} ${e} L 0 ${e} L 0 ${r} Q 0 0 ${r} 0 Z`}},[Hn.ROUND_RECT_SINGLE]:{editable:!0,defaultValue:[.125],range:[[0,1]],relative:["right"],getBaseSize:[(t,e)=>Math.min(t,e)],formula:(t,e,n)=>{const r=Math.min(t,e)*n[0];return`M 0 0 L ${t-r} 0 Q ${t} 0 ${t} ${r} L ${t} ${e} L 0 ${e} L 0 0 Z`}},[Hn.ROUND_RECT_SAMESIDE]:{editable:!0,defaultValue:[.125],range:[[0,.5]],relative:["left"],getBaseSize:[(t,e)=>Math.min(t,e)],formula:(t,e,n)=>{const r=Math.min(t,e)*n[0];return`M 0 ${r} Q 0 0 ${r} 0 L ${t-r} 0 Q ${t} 0 ${t} ${r} L ${t} ${e} L 0 ${e} Z`}},[Hn.CUT_ROUND_RECT]:{editable:!0,defaultValue:[.125],range:[[0,.5]],relative:["left"],getBaseSize:[(t,e)=>Math.min(t,e)],formula:(t,e,n)=>{const r=Math.min(t,e)*n[0];return`M ${r} 0 L ${t-r} 0 L ${t} ${r} L ${t} ${e} L 0 ${e} L 0 ${r} Q 0 0 ${r} 0 Z`}},[Hn.MESSAGE]:{editable:!0,range:[[0,.8],[.1,.3]],defaultValue:[.3,.2],relative:["left_bottom","bottom"],getBaseSize:[t=>t,(t,e)=>e],formula:(t,e,n)=>{const r=t*n[0],a=t*.2,i=e*n[1];return`M 0 0 L ${t} 0 L ${t} ${e-i} L ${r+a} ${e-i} L ${r} ${e} L ${r} ${e-i} L 0 ${e-i} Z`}},[Hn.ROUND_MESSAGE]:{formula:(t,e)=>{const n=Math.min(t,e)*.125,r=Math.min(t,e)*.2,a=Math.min(t,e)*.2;return`M 0 ${n} Q 0 0 ${n} 0 L ${t-n} 0 Q ${t} 0 ${t} ${n} L ${t} ${e-n-a} Q ${t} ${e-a} ${t-n} ${e-a} L ${t/2} ${e-a} L ${t/2-r} ${e} L ${t/2-r} ${e-a} L ${n} ${e-a} Q 0 ${e-a} 0 ${e-n-a} L 0 ${n} Z`}},[Hn.L]:{editable:!0,defaultValue:[.25],range:[[.05,1]],relative:["left"],getBaseSize:[(t,e)=>Math.min(t,e)],formula:(t,e,n)=>{const r=Math.min(t,e)*n[0];return`M 0 0 L 0 ${e} L ${t} ${e} L ${t} ${e-r} L ${r} ${e-r} L ${r} 0 Z`}},[Hn.RING_RECT]:{editable:!0,defaultValue:[.25],range:[[.05,.5]],relative:["left"],getBaseSize:[(t,e)=>Math.min(t,e)],formula:(t,e,n)=>{const r=Math.min(t,e)*n[0];return`M 0 0 ${t} 0 ${t} ${e} L 0 ${e} L 0 0 Z M ${r} ${r} L ${r} ${e-r} L ${t-r} ${e-r} L ${t-r} ${r} Z`}},[Hn.DONUT]:{editable:!0,defaultValue:[.25],range:[[.05,.5]],relative:["left"],getBaseSize:[(t,e)=>Math.min(t,e)],formula:(t,e,n)=>{const r=Math.min(t,e)*n[0],a=t/2,i=e/2,o=t/2,s=e/2,l=o-r,c=s-r;return`M ${a-o} ${i} A ${o} ${s} 0 1 1 ${a-o} ${i+1} Z M ${a+l} ${i} A ${l} ${c} 0 1 0 ${a+l} ${i+1} Z`}},[Hn.DIAGSTRIPE]:{editable:!0,defaultValue:[.5],range:[[0,.95]],relative:["left"],getBaseSize:[t=>t],formula:(t,e,n)=>{const r=Math.min(t,e)*n[0];if(t>=e){const i=t/e*r;return`M ${t} 0 L ${i} 0 L 0 ${r} L 0 ${e} Z`}const a=e/t*r;return`M ${t} 0 L ${r} 0 L 0 ${a} L 0 ${e} Z`}},[Hn.PLUS]:{editable:!0,defaultValue:[.6],range:[[.05,1]],relative:["center"],getBaseSize:[(t,e)=>Math.min(t,e)],formula:(t,e,n)=>{const r=Math.min(t,e)*n[0];return`M ${t/2-r/2} 0 L ${t/2-r/2} ${e/2-r/2} L 0 ${e/2-r/2} L 0 ${e/2+r/2} L ${t/2-r/2} ${e/2+r/2} L ${t/2-r/2} ${e} L ${t/2+r/2} ${e} L ${t/2+r/2} ${e/2+r/2} L ${t} ${e/2+r/2} L ${t} ${e/2-r/2} L ${t/2+r/2} ${e/2-r/2} L ${t/2+r/2} 0 Z`}},[Hn.TRIANGLE]:{editable:!0,defaultValue:[.5],range:[[0,1]],relative:["left"],getBaseSize:[t=>t],formula:(t,e,n)=>`M ${t*n[0]} 0 L 0 ${e} L ${t} ${e} Z`},[Hn.PARALLELOGRAM_LEFT]:{editable:!0,defaultValue:[.25],range:[[0,.95]],relative:["left"],getBaseSize:[t=>t],formula:(t,e,n)=>{const r=t*n[0];return`M ${r} 0 L ${t} 0 L ${t-r} ${e} L 0 ${e} Z`}},[Hn.PARALLELOGRAM_RIGHT]:{editable:!0,defaultValue:[.25],range:[[0,.95]],relative:["right"],getBaseSize:[t=>t],formula:(t,e,n)=>{const r=t*n[0];return`M 0 0 L ${t-r} 0 L ${t} ${e} L ${r} ${e} Z`}},[Hn.TRAPEZOID]:{editable:!0,defaultValue:[.25],range:[[0,.5]],relative:["left"],getBaseSize:[t=>t],formula:(t,e,n)=>{const r=t*n[0];return`M ${r} 0 L ${t-r} 0 L ${t} ${e} L 0 ${e} Z`}},[Hn.BULLET]:{editable:!0,defaultValue:[.2],range:[[0,1]],relative:["top"],getBaseSize:[(t,e)=>e],formula:(t,e,n)=>{const r=e*n[0];return`M ${t/2} 0 L 0 ${r} L 0 ${e} L ${t} ${e} L ${t} ${r} Z`}},[Hn.INDICATOR]:{editable:!0,defaultValue:[.2],range:[[0,.95]],relative:["right"],getBaseSize:[t=>t],formula:(t,e,n)=>{const r=t*n[0];return`M ${t} ${e/2} L ${t-r} 0 L 0 0 L ${r} ${e/2} L 0 ${e} L ${t-r} ${e} Z`}}},Tj=[{type:"矩形",children:[{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",pptxShapeType:"rect"},{viewBox:[200,200],path:"M 50 0 L 150 0 Q 200 0 200 50 L 200 150 Q 200 200 150 200 L 50 200 Q 0 200 0 150 L 0 50 Q 0 0 50 0 Z",pathFormula:Hn.ROUND_RECT,pptxShapeType:"roundRect"},{viewBox:[200,200],path:"M 0 200 L 0 0 L 150 0 L 200 50 L 200 200 Z",pathFormula:Hn.CUT_RECT_SINGLE,pptxShapeType:"snip1Rect"},{viewBox:[200,200],path:"M 0 50 L 50 0 L 150 0 L 200 50 L 200 200 L 0 200 Z",pathFormula:Hn.CUT_RECT_SAMESIDE,pptxShapeType:"snip2SameRect"},{viewBox:[200,200],path:"M 0 150 L 0 0 L 150 0 L 200 50 L 200 200 L 50 200 Z",pathFormula:Hn.CUT_RECT_DIAGONAL,pptxShapeType:"snip2DiagRect"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 50 L 200 200 L 0 200 L 0 50 Q 0 0 50 0 Z",pathFormula:Hn.CUT_ROUND_RECT,pptxShapeType:"snipRoundRect"},{viewBox:[200,200],path:"M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 L 0 0 Z",pathFormula:Hn.ROUND_RECT_SINGLE,pptxShapeType:"round1Rect"},{viewBox:[200,200],path:"M 0 50 Q 0 0 50 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 Z",pathFormula:Hn.ROUND_RECT_SAMESIDE,pptxShapeType:"round2SameRect"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 200 150 Q 200 200 150 200 L 0 200 L 0 50 Q 0 0 50 0 Z",pathFormula:Hn.ROUND_RECT_DIAGONAL,pptxShapeType:"round2DiagRect"}]},{type:"常用形状",children:[{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",pptxShapeType:"ellipse"},{viewBox:[200,200],path:"M 100 0 L 0 200 L 200 200 L 100 0 Z",pathFormula:Hn.TRIANGLE,pptxShapeType:"triangle"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z"},{viewBox:[200,200],path:"M 70 20 L 0 160 Q 0 200 40 200 L 160 200 Q 200 200 200 160 L 130 20 Q 100 -20 70 20 Z"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 150 200 L 0 200 L 50 0 Z",pathFormula:Hn.PARALLELOGRAM_LEFT},{viewBox:[200,200],path:"M 0 0 L 150 0 L 200 200 L 50 200 L 0 0 Z",pathFormula:Hn.PARALLELOGRAM_RIGHT},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 200 L 0 200 L 50 0 Z",pathFormula:Hn.TRAPEZOID,pptxShapeType:"trapezoid"},{viewBox:[200,200],path:"M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 50 L 0 200 L 200 200 L 200 50 L 100 0 Z",pathFormula:Hn.BULLET},{viewBox:[200,200],path:"M 200 100 L 150 0 L 0 0 L 50 100 L 0 200 L 150 200 L 200 100 Z",pathFormula:Hn.INDICATOR},{viewBox:[200,200],path:"M 0 0 C 80 20 120 20 200 0 C 180 80 180 120 200 200 C 80 180 120 180 0 200 C 20 120 20 80 0 0 Z"},{viewBox:[200,200],path:"M 10 10 C 60 0 140 0 190 10 C 200 60 200 140 190 190 C 140 200 60 200 10 190 C 0 140 0 60 10 10 Z"},{viewBox:[200,200],path:"M 0 200 A 50 100 0 1 1 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 20 A 100 100 0 1 0 200 100 L 100 100 L 40 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z"},{viewBox:[200,200],path:"M 160 20 A 100 100 0 1 0 200 100 L 100 100 L 160 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 200 0 L 100 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 0 Q 200 200 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M100,0 L200,76.6 L161.8,200 L38.2,200 L0,76.6 Z"},{viewBox:[200,200],path:"M 40 0 L 160 0 L 200 100 L 160 200 L 40 200 L 0 100 Z"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 0 140 L 100 200 L 200 140 L 200 60 L 100 0 Z"},{viewBox:[200,200],path:"M100,0 L170.71,29.29 L200,100 L170.71,170.71 L100,200 L29.29,170.71 L0,100 L29.29,29.29 Z"},{viewBox:[200,200],path:"M 60 0 L 140 0 L 200 60 L 200 140 L 140 200 L 60 200 L 0 140 L 0 60 L 60 0 Z"},{viewBox:[200,200],path:"M 75 0 L 125 0 L 175 25 L 200 75 L 200 125 L 175 175 L 125 200 L 75 200 L 25 175 L 0 125 L 0 75 L 25 25 L 75 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 L 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 50 0 A 25 50 0 1 0 50 200 L 150 200 A 25 50 0 1 0 150 0 L 50 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 A 50 100 0 0 0 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 200 0 L 200 200 L 0 200 L 0 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 200 200 L 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 150 C 110 140 110 240 0 180 Z"},{viewBox:[200,200],path:"M 200 0 L 100 0 L 0 100 L 0 200 L 200 0 Z",pathFormula:Hn.DIAGSTRIPE,pptxShapeType:"diagStripe"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 150 50 L 200 50 L 200 150 L 150 150 L 150 200 L 50 200 L 50 150 L 0 150 L 0 50 L 50 50 L 50 0 Z",pathFormula:Hn.PLUS,pptxShapeType:"plus"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 L 200 140 L 60 140 L 60 0 L 0 0 Z",pathFormula:Hn.L,pptxShapeType:"corner"},{viewBox:[200,200],path:"M0 0 L200 0 L200 200 L0 200 L0 0 Z M50 50 L50 150 L150 150 L150 50 Z",pathFormula:Hn.RING_RECT,pptxShapeType:"frame"},{viewBox:[200,200],path:"M0 100 A100 100 0 1 1 0 101 Z M150 100 A50 50 0 1 0 150 101 Z",pathFormula:Hn.DONUT,pptxShapeType:"donut"},{viewBox:[200,200],path:"M 70 0 L 70 70 L 0 70 L 0 130 L 70 130 L 70 200 L 130 200 L 130 130 L 200 130 L 200 70 L 130 70 L 130 0 L 70 0 Z",pptxShapeType:"mathPlus"},{viewBox:[200,200],path:"M 0 70 L 200 70 L 200 130 L 0 130 Z",pptxShapeType:"mathMinus"},{viewBox:[200,200],path:"M 40 0 L 0 40 L 60 100 L 0 160 L 40 200 L 100 140 L 160 200 L 200 160 L 140 100 L 200 40 L 160 0 L 100 60 L 40 0 Z",pptxShapeType:"mathMultiply"},{viewBox:[200,200],path:"M 0 80 L 200 80 L 200 120 L 0 120 Z M 100 0 A 25 25 0 1 1 100 50 A 25 25 0 1 1 100 0 M 100 200 A 25 25 0 1 1 100 150 A 25 25 0 1 1 100 200",pptxShapeType:"mathDivide"},{viewBox:[200,200],path:"M 0 30 L 200 30 L 200 80 L 0 80 Z M 0 120 L 200 120 L 200 170 L 0 170 Z",pptxShapeType:"mathEqual"},{viewBox:[200,200],path:"M 120 0 L 170 0 L 150 40 L 200 40 L 200 80 L 130 80 L 110 120 L 200 120 L 200 160 L 90 160 L 70 200 L 20 200 L 40 160 L 0 160 L 0 120 L 60 120 L 80 80 L 0 80 L 0 40 L 100 40 Z",pptxShapeType:"mathNotEqual"},{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 160 L 100 160 L 60 200 L 60 160 L 0 160 Z",pathFormula:Hn.MESSAGE},{viewBox:[200,200],path:"M 0 40 Q 0 0 40 0 L 160 0 Q 200 0 200 40 L 200 120 Q 200 160 160 160 L 100 160 L 60 200 L 60 160 L 40 160 Q 0 160 0 120 L 0 40 Z",pathFormula:Hn.ROUND_MESSAGE},{viewBox:[200,200],path:"M 180 160 A 100 100 0 1 0 100 200 L 200 200 L 200 160 L 180 160 Z"},{viewBox:[200,200],path:"M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 0 20 C 60 60 140 -40 200 20 L 200 180 C 140 140 60 240 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 100 0 Q 0 50 0 175 Q 100 225 200 175 Q 200 50 100 0 Z"},{viewBox:[200,200],path:"M 0 100 A 50 50 0 1 1 200 100 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 100 0 L 120 80 L 200 100 L 120 120 L 100 200 L 80 120 L 0 100 L 80 80 L 100 0 Z"},{viewBox:[1024,1024],path:"M1018.67652554 400.05983681l-382.95318779-5.89158658L512 34.78141155 388.27666225 394.16825023l-382.95318779 5.89158658L311.68602415 629.83174977l-117.83174978 365.27842665 312.25413766-223.88032637 312.25413904 223.88032637-117.83175116-365.27842665 318.14572563-229.77191296z"},{viewBox:[200,200],path:"M 100 0 L 60 60 L 0 100 L 60 140 L 100 200 L 140 140 L 200 100 L 140 60 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 140 60 L 200 60 L 160 100 L 200 140 L 140 140 L 100 200 L 60 140 L 0 140 L 40 100 L 0 60 L 60 60 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 130 30 L 170 30 L 170 70 L 200 100 L 170 130 L 170 170 L 130 170 L 100 200 L 70 170 L 30 170 L 30 130 L 0 100 L 30 70 L 30 30 L 70 30 L 100 0"},{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 0 200 120 A 100 100 0 1 1 100 0 Z"},{viewBox:[200,200],path:"M 120 0 L 100 80 L 200 80 L 80 200 L 100 120 L 0 120 L 120 0 Z"},{viewBox:[200,200],path:"M 30 50 Q 40 -20 120 10 Q 180 -10 180 40 Q 210 70 190 100 C 210 140 180 170 160 170 Q 140 210 100 180 C 70 210 20 190 30 150 C -10 140 -10 80 30 50"},{viewBox:[200,200],path:"M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z M 200 100 L 0 100",withborder:!0},{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z M 170 30 L 30 170",withborder:!0},{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z M 30 30 L 170 170",withborder:!0},{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z M 170 30 L 30 170 M 30 30 L 170 170",withborder:!0},{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z M 200 100 L 0 100 M 100 0 L 100 200",withborder:!0},{viewBox:[200,200],path:"M 160 0 A 40 100 0 1 1 160 200 L 40 200 A 40 100 0 1 1 40 0 L 160 0 Z M 160 200 A 40 100 0 1 1 160 0",withborder:!0,pptxShapeType:"flowChartMagneticDrum"},{viewBox:[200,200],path:"M 0 40 A 50 20 0 1 1 200 40 L 200 160 A 50 20 0 1 1 0 160 L 0 40 Z M 200 40 A 50 20 0 1 1 0 40",withborder:!0},{viewBox:[200,200],path:"M 200 0 L 50 0 L 0 50 L 0 200 L 150 200 L 200 150 L 200 0 Z M 200 0 L 150 50 M 150 50 L 0 50 M 150 50 L 150 200",withborder:!0}]},{type:"箭头",children:[{viewBox:[200,200],path:"M 100 0 L 0 100 L 50 100 L 50 200 L 150 200 L 150 100 L 200 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 200 L 200 100 L 150 100 L 150 0 L 50 0 L 50 100 L 0 100 L 100 200 Z"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 0 150 L 100 150 L 100 200 L 200 100 Z"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 60 60 L 60 140 L 0 140 L 100 200 L 200 140 L 140 140 L 140 60 L 200 60 L 100 0 Z"},{viewBox:[200,200],path:"M 0 100 L 60 0 L 60 60 L 140 60 L 140 0 L 200 100 L 140 200 L 140 140 L 60 140 L 60 200 L 0 100 Z"},{viewBox:[200,200],path:"M 100 0 L 60 40 L 80 40 L 80 80 L 40 80 L 40 60 L 0 100 L 40 140 L 40 120 L 80 120 L 80 160 L 60 160 L 100 200 L 140 160 L 120 160 L 120 120 L 160 120 L 160 140 L 200 100 L 160 60 L 160 80 L 120 80 L 120 40 L 140 40 L 100 0 Z"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 150 100 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 50 100 L 0 150 L 100 150 L 100 200 L 200 100 Z"},{viewBox:[200,200],path:"M 0 100 L 80 20 L 80 80 L 120 80 L 120 0 L 200 0 L 200 200 L 120 200 L 120 120 L 80 120 L 80 180 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 120 20 L 120 80 L 80 80 L 80 0 L 0 0 L 0 200 L 80 200 L 80 120 L 120 120 L 120 180 L 200 100 Z"},{viewBox:[200,200],path:"M 0 0 L 120 0 L 200 100 L 120 200 L 0 200 L 80 100 L 0 0 Z"},{viewBox:[200,200],path:"M 80 0 L 200 0 L 120 100 L 200 200 L 80 200 L 0 100 L 80 0 Z"},{viewBox:[200,200],path:"M 0 0 L 140 0 L 200 100 L 140 200 L 0 200 L 0 100 L 0 0 Z"},{viewBox:[200,200],path:"M 60 0 L 200 0 L 200 100 L 200 200 L 60 200 L 0 100 L 60 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 0 200 L 60 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 0 100 L 200 200 L 140 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 80 0 L 200 100 L 80 200 L 0 200 L 120 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 120 0 L 0 100 L 120 200 L 200 200 L 80 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 200 L 180 200 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 160 L 0 160 L 0 200 Z"},{viewBox:[200,200],path:"M 0 200 L 0 20 L 160 20 L 160 0 L 200 40 L 160 80 L 160 60 L 40 60 L 40 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 180 L 180 180 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 140 L 40 140 L 40 120 L 0 160 L 40 200 L 40 180 Z"},{viewBox:[1024,1024],path:"M398.208 302.912V64L0 482.112l398.208 418.176V655.36c284.48 0 483.584 95.552 625.792 304.64-56.896-298.688-227.584-597.312-625.792-657.088z"},{viewBox:[1024,1024],path:"M625.792 302.912V64L1024 482.112l-398.208 418.176V655.36C341.312 655.36 142.208 750.912 0 960c56.896-298.688 227.584-597.312 625.792-657.088z"}]},{type:"其他形状",children:[{viewBox:[1024,1024],path:"M995.336 243.4016c-15.7584-36.5736-38.3376-69.26639999-66.91440001-97.37280001-28.5768-27.98879999-61.73999999-49.8624-98.78399999-65.26799998-38.22-15.876-78.6744-23.8728-120.4224-23.87280001-57.97680001 0-114.5424 15.876-163.69919999 45.864-11.76 7.17360001-22.932 15.05279999-33.51600001 23.63760001-10.584-8.5848-21.75600001-16.46400001-33.51600001-23.63760001-49.1568-29.98799999-105.7224-45.86399999-163.69919999-45.864-41.74799999 0-82.2024 7.9968-120.4224 23.87280001-36.9264 15.28799999-70.2072 37.27919999-98.78399999 65.26799998-28.6944 28.10640001-51.156 60.79919999-66.91440001 97.37280001-16.34639999 37.9848-24.696 78.3216-24.696 119.83439999 0 39.1608 7.9968 79.96800001 23.8728 121.48080001 13.28880001 34.692 32.34000001 70.67760001 56.6832 107.016 38.57279999 57.5064 91.61040001 117.4824 157.4664 178.28160001 109.1328 100.78319999 217.2072 170.4024 221.79359999 173.22479998l27.87120001 17.8752c12.348 7.8792 28.224 7.8792 40.572 0l27.87119999-17.8752c4.58639999-2.94 112.54319999-72.44159999 221.79360001-173.22479998 65.85599999-60.79919999 118.89359999-120.7752 157.4664-178.28160001 24.3432-36.33839999 43.512-72.324 56.68319999-107.016 15.876-41.5128 23.8728-82.32 23.87280001-121.48080001 0.1176-41.5128-8.232-81.8496-24.5784-119.83439999z"},{viewBox:[1024,1024],path:"M985.20746667 343.50079998l-303.32586667-44.08319999L546.28693333 24.5248c-3.70346666-7.5264-9.79626667-13.6192-17.32266665-17.32266668-18.87573334-9.3184-41.81333333-1.55306667-51.25120001 17.32266668L342.1184 299.41759999l-303.32586667 44.08319999c-8.36266667 1.19466667-16.00853333 5.13706667-21.8624 11.11040001-14.69440001 15.17226667-14.45546667 39.30453334 0.71679999 54.1184l219.46026668 213.9648-51.84853333 302.1312c-1.43359999 8.24320001-0.11946667 16.8448 3.82293333 24.25173333 9.79626667 18.6368 32.9728 25.92426667 51.6096 16.00853334L512 822.44266665l271.3088 142.64320001c7.40693333 3.9424 16.00853333 5.25653333 24.25173333 3.82293333 20.78719999-3.584 34.7648-23.296 31.1808-44.0832l-51.84853333-302.1312 219.46026668-213.9648c5.97333334-5.85386666 9.91573333-13.49973334 11.11039999-21.8624 3.2256-20.90666667-11.34933333-40.26026667-32.256-43.36640001z"},{viewBox:[1024,1024],path:"M852.65066667 405.84533333C800.54044445 268.40177778 667.76177778 170.66666667 512.22755555 170.66666667S223.91466667 268.288 171.80444445 405.73155555C74.29688889 431.33155555 2.27555555 520.07822222 2.27555555 625.77777778c0 125.72444445 101.83111111 227.55555555 227.44177778 227.55555555h564.56533334C919.89333333 853.33333333 1021.72444445 751.50222222 1021.72444445 625.77777778c0-105.472-71.79377778-194.21866667-169.07377778-219.93244445z"},{viewBox:[1024,1024],path:"M926.25224691 323.7371485H654.6457886L898.88200917 15.14388241c5.05486373-6.53433603 0.49315743-16.02761669-7.76722963-16.02761668H418.30008701c-3.45210206 0-6.78091476 1.84934039-8.50696579 4.93157436L90.35039154 555.76772251c-3.82197013 6.53433603 0.86302552 14.7947231 8.50696578 14.79472311h215.01664245l-110.22068713 440.88274851c-2.34249783 9.61657002 9.24670194 16.39748478 16.39748477 9.49328065L933.03316167 340.62779071c6.41104668-6.0411786 2.09591911-16.8906422-6.78091476-16.89064221z"},{viewBox:[1024,1024],path:"M878.47822222 463.30311111c-22.18666667-49.83466667-53.93066667-93.98044445-94.32177777-131.072l-33.10933334-30.37866666c-4.89244445-4.32355555-12.62933333-2.38933333-14.79111111 3.75466666l-14.79111111 42.43911111c-9.216 26.624-26.16888889 53.81688889-50.176 80.55466667-1.59288889 1.70666667-3.41333333 2.16177778-4.66488889 2.27555556-1.25155555 0.11377778-3.18577778-0.11377778-4.89244445-1.70666667-1.59288889-1.36533333-2.38933333-3.41333333-2.27555555-5.46133333 4.20977778-68.49422222-16.27022222-145.74933333-61.09866667-229.83111112C561.26577778 124.01777778 509.72444445 69.51822222 445.32622222 31.51644445l-46.99022222-27.648c-6.144-3.64088889-13.99466667 1.13777778-13.65333333 8.30577777l2.50311111 54.61333333c1.70666667 37.31911111-2.61688889 70.31466667-12.85688889 97.73511112-12.51555555 33.56444445-30.49244445 64.73955555-53.47555556 92.72888888-16.15644445 19.56977778-34.24711111 37.20533333-54.04444444 52.45155556-47.90044445 36.75022222-87.38133333 84.65066667-114.11911111 138.24C125.72444445 502.10133333 111.50222222 562.74488889 111.50222222 623.50222222c0 53.70311111 10.58133333 105.69955555 31.51644445 154.73777778 20.25244445 47.21777778 49.152 89.77066667 85.90222222 126.17955555 36.864 36.40888889 79.64444445 65.08088889 127.31733333 84.992C405.61777778 1010.11911111 457.95555555 1020.58666667 512 1020.58666667s106.38222222-10.46755555 155.76177778-31.06133334c47.67288889-19.91111111 90.56711111-48.46933333 127.31733333-84.992 36.864-36.40888889 65.76355555-78.96177778 85.90222222-126.17955555 20.93511111-49.03822222 31.51644445-101.03466667 31.51644445-154.73777778 0-55.52355555-11.37777778-109.45422222-34.01955556-160.31288889z"},{viewBox:[1024,1024],path:"M968.20337778 20.11591112H705.44042667c-22.17301333 0-41.92483556 15.16430222-47.14951111 37.33731555C642.36202666 124.73685332 582.08711111 173.03324444 512 173.03324444s-130.36202666-48.29639112-146.29091556-115.58001777c-5.22467555-22.17301333-24.84906667-37.33731556-47.14951111-37.33731555H55.79662222c-30.96576 0-56.06968889 25.10392889-56.06968888 56.06968888v321.12639999c0 30.96576 25.10392889 56.06968889 56.06968888 56.06968889h95.57333334v494.43271112c0 30.96576 25.10392889 56.06968889 56.06968889 56.06968888h609.1207111c30.96576 0 56.06968889-25.10392889 56.06968889-56.06968888V453.38168888h95.57333334c30.96576 0 56.06968889-25.10392889 56.06968888-56.06968889V76.1856c0-30.96576-25.10392889-56.06968889-56.06968888-56.06968888z"},{viewBox:[1024,1024],path:"M980.94648889 239.80714666H523.46880001L373.99210666 96.82944c-1.91146667-1.78403556-4.46008889-2.80348444-7.00871111-2.80348445H43.05351111c-22.55530667 0-40.77795555 18.22264888-40.77795555 40.77795557v754.39217776c0 22.55530667 18.22264888 40.77795555 40.77795555 40.77795557h937.89297778c22.55530667 0 40.77795555-18.22264888 40.77795555-40.77795557V280.58510222c0-22.55530667-18.22264888-40.77795555-40.77795555-40.77795556z"},{viewBox:[1024,1024],path:"M972.60904597 164.57058577L841.30587843 33.39070759c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480282-29.3428675-26.75379095 0-51.90482023 10.47959553-70.76809219 29.3428675L558.60337778 174.68031322c-18.86327195 18.86327195-29.34286748 44.1375906-29.34286749 70.64480283 0 26.75379095 10.47959553 51.90482023 29.34286749 70.76809218l103.31648301 103.31648302c-24.28800376 53.50758189-57.69942011 101.59043198-99.24793416 143.13894603-41.42522469 41.67180341-89.63136414 75.08321976-143.13894603 99.61780223L316.21649759 558.84995649c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480283-29.34286747-26.75379095 0-51.90482023 10.47959553-70.76809217 29.34286747L33.39070759 700.01627278c-18.86327195 18.86327195-29.34286748 44.1375906-29.3428675 70.76809217 0 26.75379095 10.47959553 51.90482023 29.3428675 70.76809219l131.05658883 131.05658883c30.08260365 30.205893 71.63111769 47.34311394 114.28923598 47.34311394 9.00012323 0 17.63037836-0.73973616 26.13734414-2.21920846 166.19405621-27.37023774 331.03192945-115.76870829 464.06114804-248.67463751C901.84095379 636.27567408 990.11613498 471.56109018 1017.85624079 304.87387654c8.38367642-50.91850535-8.50696579-103.31648302-45.24719482-140.30329077z"},{viewBox:[1024,1024],path:"M910.60451556 640.96028445c-20.38897778-65.49959112-43.83630221-120.54983112-79.89930667-210.64362666C836.31217778 193.67708444 737.93535999 2.27555556 511.36284444 2.27555556 282.24170667 2.27555556 186.03121778 197.50001778 192.14791111 430.31665779c-36.19043555 90.22122667-59.51032888 144.88917333-79.89930667 210.64362666-43.32657778 139.53706668-29.30915556 197.26336001-18.60494222 198.53767111 22.9376 2.80348444 89.32920888-105.00323556 89.32920889-105.00323556 0 62.44124445 32.11264001 143.86972444 101.69002667 202.61546667-33.64181333 10.32192-109.20846222 38.10190221-91.24067556 68.55793777 14.52714667 24.59420444 250.01984 15.67402668 317.94062222 8.02816 67.92078222 7.64586667 303.41347556 16.56604444 317.94062223-8.02816 17.96778667-30.32860444-57.72629333-58.23601779-91.24067555-68.55793777 69.57738667-58.87317334 101.69002667-140.30165333 101.69002667-202.61546667 0 0 66.39160889 107.80672 89.32920888 105.00323556 10.83164445-1.40174222 24.84906667-59.12803556-18.47751111-198.53767111z"},{viewBox:[1024,1024],path:"M1016.86992592 199.24764445c-37.13706667 16.01991111-77.55093333 27.54939259-119.17842962 32.03982222 42.96248889-25.60758518 75.60912592-66.02145185 91.02222222-114.08118519-39.68568889 23.66577778-84.58998518 41.02068148-131.31472593 50.00154074C819.53374815 126.79395555 765.76995555 101.79318518 706.18074075 101.79318518c-114.688 0-206.92385185 92.96402963-206.92385186 207.04521482 0 16.01991111 1.94180741 32.03982222 5.09724444 47.45291852-171.72859259-8.98085925-324.88865185-91.02222222-426.71217778-216.63288889-17.96171852 30.82619259-28.15620741 66.02145185-28.1562074 104.49351112 0 71.84687408 36.53025185 135.19834075 92.23585185 172.45677036-33.98162963-1.33499259-66.02145185-10.92266667-93.57084445-26.33576296v2.54862222c0 100.6098963 71.1186963 183.98625185 165.90317037 203.1616-17.3549037 4.49042963-35.92343703 7.03905185-54.49197037 7.03905185-13.47128889 0-26.2144-1.33499259-39.07887407-3.15543704C146.69748148 681.90814815 223.03478518 741.49736297 313.93564445 743.43917037c-71.1186963 55.7056-160.19911111 88.4736-256.9253926 88.4736-17.3549037 0-33.37481482-0.60681482-50.00154074-2.54862222C98.75911111 888.22518518 207.62168889 922.20681482 324.85831111 922.20681482 705.45256297 922.20681482 913.71140741 606.90583703 913.71140741 333.23235555c0-8.98085925 0-17.96171852-0.60681482-26.94257777 40.2925037-29.4912 75.60912592-66.02145185 103.76533333-107.04213333z"},{viewBox:[1024,1024],path:"M917.96720197 1.08889505H106.03279803C53.56084718 1.08889505 9.37393998 45.27580225 9.37393998 97.74775309v5.52336372c0 19.33177108 8.28504494 41.42522469 22.0934536 55.23363205l331.40179753 392.15879462v325.87843379c0 16.57008987 8.28504494 30.37849854 22.09345359 35.90186098l209.88780469 104.94390299 2.76168121 2.76168121c27.61681602 11.04672615 55.23363335-8.28504494 55.23363335-38.66354218V550.66354348l331.40179753-392.15879462c35.90186097-41.42522469 30.37849854-102.18222047-11.04672616-135.32240022-11.04672615-13.80840865-33.14017975-22.0934536-55.23363335-22.09345359z"},{viewBox:[1024,1024],path:"M491.70164031 97.48884502a25.89076502 25.89076502 0 0 1 40.59671938 0L745.66415762 367.01171317a25.89076502 25.89076502 0 0 0 30.49932208 7.72839349l208.00640948-89.14190458a25.89076502 25.89076502 0 0 1 35.56096592 29.06238339l-115.18801541 554.96855704A103.56306132 103.56306132 0 0 1 803.14165689 952.14301275H220.85834311a103.56306132 103.56306132 0 0 1-101.4011828-82.51387024l-115.18801541-554.96855704a25.89076502 25.89076502 0 0 1 35.54802012-29.06238339l208.01935528 89.14190458a25.89076502 25.89076502 0 0 0 30.49932208-7.72839349l213.36579793-269.52286815z"},{viewBox:[1024,1024],path:"M643.02466884 387.7801525c19.85376751-88.69205333 33.718272-152.84087467 41.61900049-192.57389433C704.52292267 95.17283515 652.90057916 2.27555515 550.58614084 2.27555515c-92.26012484 0-138.59407685 45.84971417-165.91530666 137.49816969l-0.70087152 2.67605334c-16.40038399 74.13942085-41.47882668 131.61085116-74.6746315 172.73287031a189.06953915 189.06953915 0 0 1-143.04142182 70.44391902l-26.17434983 0.5606965C77.66380049 387.52529067 27.76177817 438.90551468 27.76177817 501.84374084V881.55022182c0 77.4144 62.25009818 140.17422182 139.05282766 140.17422303h492.82707951c101.23127467 0 191.59267516-63.995904 225.93535999-159.98976l102.37815468-286.22301868c26.04691951-72.82688-11.39234134-153.15945284-83.63303784-179.42300483a138.04612267 138.04612267 0 0 0-47.17499733-8.30850884H643.02466884z"},{viewBox:[1024,1024],path:"M512 512c140.82958222 0 254.86222222-114.03264 254.86222222-254.86222222S652.82958222 2.27555555 512 2.27555555a254.78940445 254.78940445 0 0 0-254.86222222 254.86222223C257.13777778 397.96736 371.17041778 512 512 512z m0 72.81777778c-170.10232889 0-509.72444445 97.57582222-509.72444445 291.27111111v145.63555556h1019.4488889v-145.63555556c0-193.69528889-339.62211555-291.27111111-509.72444445-291.27111111z"},{viewBox:[1024,1024],path:"M1019.81297778 564.50161779l-138.89991111-472.51456c-8.66531556-25.99594668-29.43658667-43.45400889-57.21656889-43.45400891s-50.33528889 15.67402668-59.00060446 41.66997334l-92.00526221 274.48661334H351.69166222L259.6864 90.33045333c-8.66531556-25.99594668-31.22062222-41.66997333-59.00060444-41.66997332s-50.33528889 17.33063112-57.2165689 43.45400887L4.69674667 564.50161779c-5.22467555 17.33063112 1.78403556 36.44529778 15.67402667 46.89464887l491.11950221 368.27591113 492.77610666-368.27591113c13.76256-10.32192 20.77127111-29.43658667 15.54659557-46.89464887z"},{viewBox:[1024,1024],path:"M927.78951111 340.39277037c-12.01493333-47.81700741 12.01493333-124.03294815 89.08041481-150.97552592l-82.40545184-4.36906667s-31.19028148-109.22666667-174.27721483-118.9357037c-143.08693333-9.8304-236.65777778-3.64088889-236.65777777-3.6408889s106.07122963 67.47780741 63.5941926 187.74850371c-31.06891852 63.71555555-79.85682963 116.02299259-132.04290371 175.61220741-1.57771852 1.57771852-3.03407408 3.15543703-4.2477037 4.49042962C278.25493333 624.86755555 7.13007408 934.34311111 7.13007408 934.34311111c298.43152592 78.15774815 498.43768889-7.64586667 616.76657777-110.56165926 24.87940741-0.24272592 43.5693037-0.36408889 56.19105185-0.36408888 164.8109037 0 304.13558518-142.72284445 298.43152593-301.4656-3.88361482-109.1053037-38.71478518-133.74198518-50.72971852-181.5589926z"},{viewBox:[1024,1024],path:"M997.8886764 504.17210418L537.2729208 43.89182982c-13.97838539-13.97838539-36.56745619-13.97838539-50.5458416 0L26.1113236 504.17210418c-13.41924998 13.41924998-21.02349164 31.64706454-21.02349163 50.65766867 0 39.47496036 32.09437288 71.56933323 71.56933324 71.56933323h48.53295408V954.83524937c0 19.79339373 15.99127289 35.78466661 35.78466663 35.78466662H440.43066677V740.12724968h125.24633315v250.49266631h297.34821416c19.79339373 0 35.78466661-15.99127289 35.78466663-35.78466662V626.39910608h48.53295408c19.01060414 0 37.23841869-7.49241457 50.65766869-21.02349163 27.84494371-27.95677079 27.84494371-73.24673948-0.11182708-101.20351027z"},{viewBox:[1024,1024],path:"M1009.13013121 349.27572283L674.72427717 14.86986879c-8.82158299-8.82158299-20.35749924-13.16451618-31.89341544-13.16451618s-23.07183245 4.34293316-31.89341547 13.16451618L392.29790453 233.6451272c-16.5574327-1.90003326-33.25058207-2.71433322-49.94373146-2.71433324-99.34459624 0-198.68919249 32.70771543-280.25490606 98.12314628-20.90036589 16.69314938-22.52896582 48.04369819-3.66434987 67.04403081l246.59717401 246.59717401-292.33368895 292.06225564c-3.52863319 3.52863319-5.83581644 8.27871636-6.24296642 13.30023282l-4.61436649 50.48659809c-1.22144996 12.75736619 8.95729967 23.6146991 21.57894918 23.6146991 0.6785833 0 1.35716662 0 2.03574992-0.13571666l50.48659809-4.61436649c5.02151649-0.40714999 9.77159962-2.71433322 13.30023282-6.24296643l292.33368896-292.33368896 246.59717402 246.59717401c8.82158299 8.82158299 20.35749924 13.16451618 31.89341544 13.16451618 13.16451618 0 26.19331567-5.70009979 35.15061536-16.82886604 76.40848044-95.40881307 108.16617924-214.83947521 95.27309638-330.33435417l218.63954175-218.63954173c17.50744934-17.37173267 17.50744934-45.8722316 0-63.51539759z"},{viewBox:[1024,1024],path:"M976.62005979 160.47737905c-0.39452595-0.39452595-80.35178503 78.64217259-239.47725131 237.50462156l-111.6508437-111.65084369 237.89914752-237.89914752c-125.19623464-75.35445635-286.03131335-56.02268482-390.31767264 48.26367449-81.92988882 81.92988882-112.57140424 200.15616502-83.37648398 310.09739626l2.36715569 8.81107954-372.82702222 372.69551356c-8.15353628 8.15353628-8.15353628 21.56741857 0 29.72095487l185.95323084 185.95323084c8.15353628 8.15353628 21.56741857 8.15353628 29.72095485 0l372.56400493-372.56400493 8.81107953 2.3671557c110.07273989 29.32642892 228.29901608-1.18357785 310.36041356-83.24497533 104.41786795-104.2863593 123.74963948-265.12143802 49.97328693-390.05465535z"},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m220.16 343.26755556l-239.616 332.23111111c-14.44977778 20.13866667-44.37333333 20.13866667-58.82311111 0L291.84 481.16622222c-4.32355555-6.03022222 0-14.44977778 7.39555555-14.44977777h53.36177778c11.60533333 0 22.64177778 5.57511111 29.46844445 15.13244444l81.00977777 112.41244444 178.85866667-248.03555555c6.82666667-9.44355555 17.74933333-15.13244445 29.46844445-15.13244445H724.76444445c7.39555555 0 11.71911111 8.41955555 7.39555555 14.44977778z"},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m218.45333333 537.03111112c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222H302.64888889c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222v-54.61333334c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h418.70222222c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v54.61333334z"},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m188.18844445 703.37422223l-75.09333334-0.34133333L512 570.48177778l-112.98133333 134.71288889-75.20711112 0.34133333c-5.00622222 0-9.10222222-3.98222222-9.10222222-9.10222222 0-2.16177778 0.79644445-4.20977778 2.16177778-5.91644445l148.02488889-176.35555555L316.87111111 337.92c-1.36533333-1.70666667-2.16177778-3.75466667-2.16177778-5.91644445 0-5.00622222 4.096-9.10222222 9.10222222-9.10222222l75.20711112 0.34133334L512 458.06933333l112.98133333-134.71288888 75.09333334-0.34133334c5.00622222 0 9.10222222 3.98222222 9.10222222 9.10222222 0 2.16177778-0.79644445 4.20977778-2.16177778 5.91644445L559.21777778 514.27555555l147.91111111 176.35555556c1.36533333 1.70666667 2.16177778 3.75466667 2.16177778 5.91644444 0 5.00622222-4.096 9.10222222-9.10222222 9.10222223z"},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m218.45333333 537.03111112c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222H548.40888889v172.94222222c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222h-54.61333334c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222V548.40888889H302.64888889c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222v-54.61333334c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h172.94222222V302.64888889c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h54.61333334c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v172.94222222h172.94222222c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v54.61333334z"},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m163.95377778 517.57511112L427.46311111 700.64355555c-1.59288889 1.13777778-3.41333333 1.70666667-5.34755556 1.70666667-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222V331.88977778c0-1.93422222 0.56888889-3.75466667 1.70666667-5.34755556 2.95822222-4.096 8.64711111-5.00622222 12.74311111-2.048L675.95377778 505.17333333c0.79644445 0.56888889 1.47911111 1.25155555 2.048 2.048 2.95822222 3.98222222 2.048 9.67111111-2.048 12.62933334z"},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m200.81777778 666.39644445l-32.54044445 44.37333333c-2.95822222 4.096-8.64711111 4.89244445-12.74311111 1.93422222L479.34577778 577.76355555c-2.38933333-1.70666667-3.75466667-4.43733333-3.75466667-7.39555555V257.13777778c0-5.00622222 4.096-9.10222222 9.10222222-9.10222223h54.72711112c5.00622222 0 9.10222222 4.096 9.10222222 9.10222223v281.6l162.24711111 117.30488889c4.096 2.84444445 5.00622222 8.53333333 2.048 12.62933333z"},{viewBox:[1024,1024],path:"M981.10577778 314.48177778c-25.6-61.09866667-62.464-115.93955555-109.34044445-163.04355556-46.87644445-46.99022222-101.60355555-83.968-162.70222222-109.568C646.59911111 15.58755555 580.38044445 2.27555555 512 2.27555555h-2.27555555c-68.83555555 0.34133333-135.39555555 13.99466667-198.08711112 40.84622223-60.52977778 25.94133333-114.80177778 62.80533333-161.22311111 109.79555555-46.42133333 46.99022222-82.83022222 101.60355555-108.08888889 162.47466667C16.27022222 378.42488889 3.072 445.44 3.41333333 514.38933333c0.34133333 78.96177778 19.22844445 157.35466667 54.49955556 227.44177778v172.94222222c0 28.89955555 23.43822222 52.33777778 52.224 52.33777778h172.71466666c69.97333333 35.38488889 148.13866667 54.272 226.98666667 54.61333334h2.38933333c68.03911111 0 133.91644445-13.19822222 196.03911112-39.02577778 60.75733333-25.37244445 115.37066667-61.78133333 162.13333333-108.31644445 46.87644445-46.53511111 83.74044445-100.92088889 109.568-161.56444444 26.73777778-62.80533333 40.39111111-129.59288889 40.73244445-198.54222223 0.22755555-69.29066667-13.19822222-136.53333333-39.59466667-199.79377777zM284.89955555 566.61333333c-30.03733333 0-54.49955555-24.46222222-54.49955555-54.61333333s24.46222222-54.61333333 54.49955555-54.61333333 54.49955555 24.46222222 54.49955556 54.61333333-24.34844445 54.61333333-54.49955556 54.61333333z m227.10044445 0c-30.03733333 0-54.49955555-24.46222222-54.49955555-54.61333333s24.46222222-54.61333333 54.49955555-54.61333333 54.49955555 24.46222222 54.49955555 54.61333333-24.46222222 54.61333333-54.49955555 54.61333333z m227.10044445 0c-30.03733333 0-54.49955555-24.46222222-54.49955556-54.61333333s24.46222222-54.61333333 54.49955556-54.61333333 54.49955555 24.46222222 54.49955555 54.61333333-24.46222222 54.61333333-54.49955555 54.61333333z"},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM745.4750693 325.8561164l-267.95558363 371.52436096c-16.15876501 22.52048353-49.62140436 22.52048353-65.78016939 0L253.07805667 477.51948567c-4.83490607-6.74342161 0-16.15876501 8.27023406-16.15876499h59.67291961c12.97790576 0 25.31963967 6.23448413 32.95370188 16.92217123l90.59087157 125.70755774 200.01242995-277.37092701c7.63406221-10.56045272 19.84856175-16.92217125 32.95370189-16.92217124H737.20483524c8.27023407 0 13.10514012 9.41534338 8.27023406 16.158765z"},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM756.28999077 542.53624885c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962H277.88875885c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962v-61.0724977c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h468.2224823c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v61.0724977z"},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM720.79160148 697.63494611c5.59831228 6.61618726 0.8906406 16.6677025-7.76129658 16.66770249h-74.94104404c-5.98001539 0-11.70556205-2.67192177-15.64982754-7.25235911L512 575.36271635l-110.43943332 131.68757314c-3.81703111 4.58043732-9.54257777 7.25235911-15.64982754 7.25235911H310.9696951c-8.65193717 0-13.35960887-10.05151525-7.76129658-16.66770249L458.81603326 512 303.20839852 326.36505389c-5.59831228-6.61618726-0.8906406-16.6677025 7.76129658-16.66770249h74.94104404c5.98001539 0 11.70556205 2.67192177 15.64982754 7.25235911L512 448.63728365l110.43943332-131.68757314c3.81703111-4.58043732 9.54257777-7.25235911 15.64982754-7.25235911H713.0303049c8.65193717 0 13.35960887 10.05151525 7.76129658 16.66770249L565.18396674 512l155.60763474 185.63494611z"},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM677.02297814 523.19662459L423.31764398 722.70011704c-9.41534338 7.37959347-23.28388974 0.76340622-23.28388975-11.19662459V312.62374191c0-11.9600308 13.86854636-18.70345241 23.28388975-11.19662457l253.70533416 199.37625807c7.25235911 5.72554666 7.25235911 16.6677025 0 22.39324918z"},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM756.28999077 542.53624885c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962H552.71499847v193.39624268c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962h-61.0724977c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962V552.71499847H277.88875885c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962v-61.0724977c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h193.39624268V277.88875885c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h61.0724977c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v193.39624268h193.39624268c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v61.0724977z"},{viewBox:[1024,1024],path:"M902.67315697 135.41705551L528.62204754 7.94466448C524.10877635 6.40354749 518.05438818 5.63298899 512 5.63298899s-12.10877635 0.7705585-16.62204754 2.31167549L121.32684303 135.41705551c-9.13662215 3.08223399-16.62204754 13.64989334-16.62204753 23.33691443v531.02488283c0 9.68702108 6.27454775 22.45627614 13.87005291 28.51066431L498.0198673 1013.9638196c3.85279247 2.9721542 8.8063828 4.51327118 13.87005291 4.51327118s10.12734022-1.54111698 13.87005291-4.51327118l379.4450189-295.67430252c7.59550517-5.94430839 13.87005291-18.71356345 13.87005291-28.51066431V158.75396994c0.22015956-9.68702108-7.26526581-20.14460066-16.40188796-23.33691443zM712.89560763 323.43332829L478.86598471 645.63685899c-7.04510625 9.68702108-21.57563786 9.68702108-28.6207441 0l-139.14084824-191.5388259c-4.18303182-5.8342286 0-13.9801327 7.15518603-13.9801327h60.76404132c5.61406904 0 11.0079785 2.75199463 14.31037204 7.26526582l71.22162091 97.97100864 166.11039557-228.74579323c3.30239355-4.51327118 8.58622323-7.26526581 14.31037204-7.26526581H705.7404216c7.15518602 0.11007979 11.33821785 8.25598388 7.15518603 14.09021248z"},{viewBox:[1024,1024],path:"M959.86498307 186.28001231H797.00498922v-101.78749614c0-44.91373267-36.51626425-81.42999692-81.42999691-81.42999693H308.42500769c-44.91373267 0-81.42999692 36.51626425-81.42999691 81.42999693v101.78749614H64.13501693c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499847v40.71499845c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874962h76.8495596l31.42688945 665.43575611c2.03574992 43.38692024 37.91584233 77.61296581 81.30276254 77.6129658h577.64404066c43.5141546 0 79.26701262-34.09881122 81.30276254-77.6129658l31.42688945-665.43575611H990.40123192c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874962v-40.71499845c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499847z m-254.46874039 0H318.60375732v-91.60874653h386.79248536v91.60874653z"},{viewBox:[1024,1024],path:"M980.2224823 248.62485371H654.50249462V104.85001539c0-22.52048353-18.19451494-40.71499847-40.71499847-40.71499846H94.67126578v-50.89374808c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961h-71.25124732c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v997.5174623c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h71.25124732c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961V674.85999383h315.54123807v143.77483833c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h529.29497999c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V289.33985217c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846z"},{viewBox:[1024,1024],path:"M804.63905145 265.16532183V94.67126578h109.42155836c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-71.25124732c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961H109.93939019c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v71.25124732c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h109.42155836v170.49405605c0 103.6960117 53.94737296 194.92305513 135.3773699 246.83467817-81.42999692 51.91162303-135.37736988 143.13866646-135.3773699 246.83467817v170.49405605h-109.42155836c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v71.25124732c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h804.12121962c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-71.25124732c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961h-109.42155836V758.83467817c0-103.6960117-53.94737296-194.92305513-135.3773699-246.83467817 81.42999692-51.91162303 135.37736988-143.13866646 135.3773699-246.83467817z"},{viewBox:[1024,1024],path:"M1020.928 448.44373333l-35.36213334-373.4528c-1.79200001-19.3536-17.2032-34.64533332-36.55679999-36.55679999L575.55626667 3.072h-0.47786666c-3.82293334 0-6.8096 1.19466667-9.07946669 3.46453333L6.53653333 565.99893332c-4.65919999 4.65919999-4.65919999 12.1856 0 16.84480001l434.61973334 434.61973334c2.26986667 2.26986667 5.25653333 3.46453333 8.48213333 3.46453333s6.21226667-1.19466667 8.48213333-3.46453333l559.46239999-559.46239999c2.38933332-2.5088 3.584-5.97333334 3.34506668-9.55733335zM735.40266668 362.66666667c-42.17173333 0-76.45866667-34.28693333-76.45866667-76.45866667s34.28693333-76.45866667 76.45866667-76.45866667 76.45866667 34.28693333 76.45866665 76.45866667-34.28693333 76.45866667-76.45866665 76.45866667z"}]},{type:"线性",children:[{viewBox:[1024,1024],path:"M1009.55537674 75.96950982l-61.38012212-61.38012214c-4.48769762-4.48769762-11.870684-4.48769762-16.3583816 0L14.44462326 931.67210859c-4.48769762 4.48769762-4.48769762 11.870684 0 16.35838159l61.38012212 61.38012214c4.48769762 4.48769762 11.870684 4.48769762 16.3583816 0L1009.41061232 92.18312698c4.63246205-4.34293316 4.63246205-11.72591956 0.14476442-16.21361716zM210.88996692 419.35075905c114.94296453 0 208.46079213-93.51782759 208.46079213-208.46079213s-93.51782759-208.46079213-208.46079213-208.4607921-208.46079213 93.51782759-208.4607921 208.4607921 93.51782759 208.46079213 208.4607921 208.46079213z m0-312.69118816c57.47148228 0 104.23039605 46.75891379 104.23039607 104.23039603s-46.75891379 104.23039605-104.23039607 104.23039607-104.23039605-46.75891379-104.23039603-104.23039607 46.75891379-104.23039605 104.23039603-104.23039603zM813.11003308 604.64924095c-114.94296453 0-208.46079213 93.51782759-208.46079213 208.46079213s93.51782759 208.46079213 208.46079213 208.4607921 208.46079213-93.51782759 208.4607921-208.4607921-93.51782759-208.46079213-208.4607921-208.46079213z m0 312.69118816c-57.47148228 0-104.23039605-46.75891379-104.23039607-104.23039603s46.75891379-104.23039605 104.23039607-104.23039607 104.23039605 46.75891379 104.23039603 104.23039607-46.75891379 104.23039605-104.23039603 104.23039603z",outlined:!0},{viewBox:[1024,1024],path:"M1004.96017383 478.58365209L483.27851088 25.80594621c-4.00443838-3.45210207-9.11354943-5.3852792-14.49882864-5.38527921h-122.20441284c-10.21822208 0-14.91308089 12.70373557-7.18037228 19.33177152l483.57045622 419.77561022H14.8973037c-6.07569962 0-11.04672658 4.97102697-11.04672658 11.04672657v82.85044938c0 6.07569962 4.97102697 11.04672658 11.04672658 11.04672657h807.92996557L339.25681303 984.24756148c-7.7327086 6.76612003-3.0378498 19.33177153 7.18037229 19.33177152h126.34693531c2.62359757 0 5.24719513-0.96658859 7.18037228-2.76168164L1004.96017383 545.41634791c20.2983601-17.67476253 20.2983601-49.1579333 0-66.83269582z",outlined:!0},{viewBox:[1024,1024],path:"M1011.38217956 558.9924242L545.80649025 22.43713295c-17.81503843-20.62055629-49.79794206-20.62055629-67.75325638 0L12.61782044 558.9924242c-6.31241519 7.29434645-1.12220714 18.51641789 8.41655359 18.51641789h113.62347344c6.45269109 0 12.62483038-2.80551785 16.97338308-7.71517411L458.69516062 215.87758959V1005.77114384c0 6.1721393 5.04993216 11.22207145 11.22207144 11.22207145h84.16553588c6.1721393 0 11.22207145-5.04993216 11.22207144-11.22207145V215.87758959l307.06393007 353.91607839c4.20827679 4.90965626 10.38041608 7.71517413 16.97338308 7.71517411h113.62347344c9.53876074 0 14.72896878-11.22207145 8.41655359-18.51641789z",outlined:!0},{viewBox:[1024,1024],path:"M1009.1026963 459.52804874H201.17273073l483.57045624-419.77561022c7.7327086-6.76612003 3.0378498-19.33177153-7.18037229-19.33177152h-122.20441283c-5.3852792 0-10.49439025 1.93317715-14.49882866 5.38527921L19.03982617 478.58365209c-20.2983601 17.67476253-20.2983601 49.1579333 0 66.69461175L543.89742302 1000.81765136c2.07126124 1.79509307 4.55677472 2.76168163 7.18037228 2.76168164h126.3469353c10.21822208 0 14.91308089-12.70373557 7.18037228-19.33177152L201.17273073 564.47195126H1009.1026963c6.07569962 0 11.04672658-4.97102697 11.04672658-11.04672657v-82.85044938c0-6.07569962-4.97102697-11.04672658-11.04672658-11.04672657z",outlined:!0},{viewBox:[1024,1024],path:"M1002.96562597 446.49115791h-113.62347344c-6.45269109 0-12.62483038 2.80551785-16.97338308 7.71517411L565.30483938 808.12241041V18.22885616c0-6.1721393-5.04993216-11.22207145-11.22207144-11.22207145h-84.16553588c-6.1721393 0-11.22207145 5.04993216-11.22207144 11.22207145v789.89355425L151.63123055 454.20633202c-4.20827679-4.90965626-10.38041608-7.71517413-16.97338308-7.71517411h-113.62347344c-9.53876074 0-14.72896878 11.36234735-8.41655359 18.51641789L478.19350975 1001.56286705c17.81503843 20.62055629 49.79794206 20.62055629 67.75325638 0L1011.38217956 465.0075758c6.31241519-7.29434645 1.12220714-18.51641789-8.41655359-18.51641789z",outlined:!0},{viewBox:[1024,1024],path:"M975.82443246 622.46726585H14.8973037c-6.07569962 0-11.04672658 4.97102697-11.04672658 11.04672658v82.85044937c0 6.07569962 4.97102697 11.04672658 11.04672658 11.04672659h835.6848661L651.32683905 980.10503902c-5.66144737 7.18037229-0.55233633 17.9509307 8.69929718 17.9509307h100.11095967c6.76612003 0 13.11798782-3.0378498 17.39859437-8.42312903l233.08593092-295.63802022c22.78387358-28.99765728 2.20934532-71.52755463-34.79718873-71.52755462zM1009.1026963 296.58883161H173.4178302l199.25533075-252.69387063c5.66144737-7.18037229 0.55233633-17.9509307-8.69929718-17.9509307h-100.11095967c-6.76612003 0-13.11798782 3.0378498-17.39859437 8.42312903L13.37837881 330.00517953c-22.78387358 28.99765728-2.20934532 71.52755463 34.65910466 71.52755462h961.06521283c6.07569962 0 11.04672658-4.97102697 11.04672658-11.04672658v-82.85044937c0-6.07569962-4.97102697-11.04672658-11.04672658-11.04672659z",outlined:!0},{viewBox:[1024,1024],path:"M1010.75873115 64.13501693H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v81.42999691c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874964h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874964v-81.42999691c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961zM1010.75873115 858.07748691H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874964v81.42999691c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-81.42999691c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874964zM1010.75873115 461.10625194H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874959v81.42999694c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874959h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874959v-81.42999694c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874959z",outlined:!0},{viewBox:[1024,1024],path:"M591.98717801 512l405.34042913-483.16579151c6.79427767-8.02960089 1.08090782-20.22841761-9.41933951-20.2284176h-123.22349044c-7.25752386 0-14.20621693 3.24272343-18.99309439 8.80167789L511.38233839 415.95362022 177.07299399 17.40746878c-4.63246205-5.55895447-11.58115512-8.80167789-18.99309439-8.80167789H34.85640916c-10.50024731 0-16.21361717 12.19881672-9.41933952 20.2284176L430.77749876 512 25.43706964 995.16579151c-6.79427767 8.02960089-1.08090782 20.22841761 9.41933952 20.2284176h123.22349044c7.25752386 0 14.20621693-3.24272343 18.99309439-8.80167789l334.3093444-398.54615144 334.30934441 398.54615144c4.63246205 5.55895447 11.58115512 8.80167789 18.99309439 8.80167789h123.22349044c10.50024731 0 16.21361717-12.19881672 9.41933951-20.2284176L591.98717801 512z",outlined:!0},{viewBox:[1024,1024],path:"M953.5488 832.61667556c-24.08448-57.08913778-58.74574221-108.31644445-102.70947556-152.28017777-43.96373333-43.96373333-95.19104-78.49756444-152.28017777-102.70947558-0.50972445-0.25486222-1.01944888-0.38229333-1.52917334-0.63715555C776.41955556 519.64586667 828.02915556 426.23886221 828.02915556 320.85333332c0-174.58062221-141.44853334-316.02915556-316.02915556-316.02915554S195.97084444 146.27271111 195.97084444 320.85333332c0 105.38552889 51.6096 198.79253333 130.99918223 256.26396447-0.50972445 0.25486222-1.01944888 0.38229333-1.52917334 0.63715555-57.08913778 24.08448-108.31644445 58.61831112-152.28017777 102.70947554-43.96373333 43.96373333-78.49756444 95.19104-102.70947556 152.28017779C46.74901333 888.55893332 34.13333334 947.8144 32.85902222 1008.72647111c-0.12743111 5.7344 4.46008889 10.44935111 10.19448889 10.44935111h76.45866667c5.60696888 0 10.06705778-4.46008889 10.19448889-9.93962666 2.54862221-98.37681778 42.05226667-190.50951112 111.88451555-260.34176001 72.25344-72.25344 168.20906666-112.01194667 270.40881778-112.01194667s198.15537778 39.75850667 270.40881778 112.01194667C852.24106667 818.72668444 891.74471111 910.85937779 894.29333333 1009.23619556c0.12743111 5.60696888 4.58752 9.93962667 10.19448889 9.93962666h76.45866667c5.7344 0 10.32192-4.71495112 10.19448889-10.44935111-1.27431111-60.91207112-13.88999112-120.16753779-37.59217778-176.10979555zM512 540.03484444c-58.49088 0-113.54112-22.81016889-154.95623111-64.22527999S292.81848888 379.34421333 292.81848888 320.85333332c0-58.49088 22.81016889-113.54112 64.22528001-154.9562311S453.50912 101.67182221 512 101.67182221s113.54112 22.81016889 154.95623111 64.22528001S731.18151112 262.36245333 731.18151112 320.85333332c0 58.49088-22.81016889 113.54112-64.22528001 154.95623113S570.49088 540.03484444 512 540.03484444z",outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 111.50222222H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888889v728.17777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h946.6311111c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V147.91111111c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888889z m-45.5111111 126.06577778V830.57777778H84.19555555V237.568l-31.40266666-24.46222222 44.71466666-57.45777778 48.6968889 37.888h731.70488888l48.69688889-37.888 44.71466667 57.45777778-31.51644444 24.46222222z M877.90933333 193.42222222L512 477.86666667 146.09066667 193.42222222l-48.69688889-37.888-44.71466667 57.45777778 31.40266667 24.46222222 388.66488889 302.19377778c22.98311111 17.86311111 55.18222222 17.86311111 78.16533333 0L939.80444445 237.568l31.40266666-24.46222222-44.71466666-57.45777778-48.58311112 37.77422222z",outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 88.74666667H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888888v564.33777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h432.35555555v127.43111111H275.34222222c-10.01244445 0-18.20444445 8.192-18.20444444 18.20444445v54.61333333c0 5.00622222 4.096 9.10222222 9.10222222 9.10222222h491.52c5.00622222 0 9.10222222-4.096 9.10222222-9.10222222v-54.61333333c0-10.01244445-8.192-18.20444445-18.20444444-18.20444445H552.96V725.90222222h432.35555555c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V125.15555555c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888888z m-45.5111111 555.23555555H84.19555555V170.66666667h855.6088889v473.31555555z",outlined:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m0 932.97777778c-233.69955555 0-423.25333333-189.55377778-423.25333333-423.25333333 0-101.26222222 35.61244445-194.33244445 95.00444444-267.15022222l595.39911111 595.39911111C706.33244445 899.64088889 613.26222222 935.25333333 512 935.25333333z m328.24888889-156.10311111L244.84977778 183.75111111C317.66755555 124.35911111 410.73777778 88.74666667 512 88.74666667c233.69955555 0 423.25333333 189.55377778 423.25333333 423.25333333 0 101.26222222-35.61244445 194.33244445-95.00444444 267.15022222z",outlined:!0},{viewBox:[1024,1024],path:"M901.80266667 257.82044445L656.95288889 12.97066667c-6.82666667-6.82666667-16.04266667-10.69511111-25.71377778-10.69511112H147.91111111c-20.13866667 0-36.40888889 16.27022222-36.40888889 36.4088889v946.6311111c0 20.13866667 16.27022222 36.40888889 36.40888889 36.4088889h728.17777778c20.13866667 0 36.40888889-16.27022222 36.40888889-36.4088889V283.648c0-9.67111111-3.86844445-19.00088889-10.69511111-25.82755555zM828.52977778 300.37333333H614.4V86.24355555L828.52977778 300.37333333z m2.048 639.43111112H193.42222222V84.19555555h343.60888889v245.76c0 26.39644445 21.39022222 47.78666667 47.78666667 47.78666667h245.76v562.06222223z",outlined:!0},{viewBox:[1024,1024],path:"M981.07392 55.79662222H42.92608c-31.22062222 0-50.71758221 34.02410666-35.04355556 61.16693334L304.28728889 620.82616888V927.42542221c0 22.55530667 18.09521779 40.77795555 40.52309333 40.77795557h334.37923556c22.42787556 0 40.52309333-18.22264888 40.52309333-40.77795557V620.82616888L1016.24490667 116.96355556c15.54659555-27.14282666-3.95036444-61.16693333-35.17098667-61.16693334zM628.47203556 876.45297779H395.52796444V677.66044445h233.07150222v198.79253334z m12.23338666-301.50200891l-12.10595556 21.15356445h-233.19893332l-12.10595556-21.15356445L130.59868445 147.54702221h762.8026311L640.70542222 574.95096888z",outlined:!0},{viewBox:[1024,1024],path:"M980.62285431 4.54099753H654.39920987c-4.2719763 0-7.76722963 3.49525333-7.76722962 7.76722964v72.4941432c0 4.2719763 3.49525333 7.76722963 7.76722962 7.76722963h207.64393877L604.04167111 350.57107753c-64.72691358-49.83972347-143.69374815-76.7661195-226.67365136-76.7661195-99.54999309 0-193.27456395 38.83614815-263.5679921 109.25903012S4.54099753 547.08198717 4.54099753 646.63198025s38.83614815 193.27456395 109.25903012 263.5679921C184.09345581 980.62285431 277.81802667 1019.45900247 377.36801975 1019.45900247s193.27456395-38.83614815 263.5679921-109.25903012C711.35889383 839.90654419 750.19504197 746.18197333 750.19504197 646.63198025c0-82.9799032-26.92639605-161.68783013-76.63666567-226.41474372L931.4304 162.34521283V369.60079013c0 4.2719763 3.49525333 7.76722963 7.76722963 7.76722962h72.4941432c4.2719763 0 7.76722963-3.49525333 7.76722964-7.76722962V43.37714569c0-21.35988148-17.47626667-38.83614815-38.83614816-38.83614816zM377.36801975 921.07409383c-151.33152395 0-274.44211358-123.11058963-274.44211358-274.44211358s123.11058963-274.44211358 274.44211358-274.44211358 274.44211358 123.11058963 274.44211358 274.44211358-123.11058963 274.44211358-274.44211358 274.44211358z",outlined:!0}]}],kG={bar:"柱状图",column:"条形图",line:"折线图",area:"面积图",scatter:"散点图",pie:"饼图",ring:"环形图",radar:"雷达图"},MWe={bar:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1","系列2"],series:[[12,19,5,2,18],[7,11,13,21,9]]},column:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1","系列2"],series:[[12,19,5,2,18],[7,11,13,21,9]]},line:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1","系列2"],series:[[12,19,5,2,18],[7,11,13,21,9]]},pie:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["值"],series:[[12,19,5,2,18]]},ring:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["值"],series:[[12,19,5,2,18]]},area:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1","系列2"],series:[[12,19,5,2,18],[7,11,13,21,9]]},radar:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1","系列2"],series:[[12,19,5,2,18],[7,11,13,21,9]]},scatter:{labels:["坐标1","坐标2","坐标3","坐标4","坐标5"],legends:["X","Y"],series:[[12,19,5,2,18],[7,11,13,21,9]]}},_We=[["#d87c7c","#919e8b","#d7ab82","#6e7074","#61a0a8","#efa18d"],["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78"],["#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],["#893448","#d95850","#eb8146","#ffb248","#f2d643","#ebdba4"],["#4ea397","#22c3aa","#7bd9a5","#d0648a","#f58db2","#f2b3c9"],["#3fb1e3","#6be6c1","#626c91","#a0a7e6","#c4ebad","#96dee8"],["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb"],["#c1232b","#27727b","#fcce10","#e87c25","#b5c334","#fe8463"],["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3"],["#e01f54","#001852","#f5e8c8","#b8d2c7","#c6b38e","#a4d8c2"],["#c12e34","#e6b600","#0098d9","#2b821d","#005eaa","#339ca8"],["#8a7ca8","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc"]],Pn=()=>{const t=TD(),e=Vr.debounce(function(){t.addSnapshot()},300,{trailing:!0}),n=Vr.throttle(function(){t.reDo()},100,{leading:!0,trailing:!1}),r=Vr.throttle(function(){t.unDo()},100,{leading:!0,trailing:!1});return{addHistorySnapshot:e,redo:n,undo:r}},M0=()=>{const t=Wt(),e=It(),{creatingElement:n}=nt(t),{theme:r,viewportRatio:a,viewportSize:i}=nt(e),{addHistorySnapshot:o}=Pn(),s=(y,m)=>{e.addElement(y),t.setActiveElementIdList([y.id]),n.value&&t.setCreatingElement(null),setTimeout(()=>{t.setEditorareaFocus(!0)},0),m&&m(),o()};return{createImageElement:y=>{V4e(y).then(({width:m,height:R})=>{const A=R/m;A<a.value&&m>i.value?(m=i.value,R=m*A):R>i.value*a.value&&(R=i.value*a.value,m=R/A),s({type:"image",id:Gn(10),src:y,width:m,height:R,left:(i.value-m)/2,top:(i.value*a.value-R)/2,fixedRatio:!0,rotate:0})})},createChartElement:y=>{s({type:"chart",id:Gn(10),chartType:y,left:300,top:81.25,width:400,height:400,rotate:0,themeColors:r.value.themeColors,textColor:r.value.fontColor,data:MWe[y]})},createTableElement:(y,m)=>{const R={fontname:r.value.fontName,color:r.value.fontColor},A=[];for(let T=0;T<y;T++){const O=[];for(let N=0;N<m;N++)O.push({id:Gn(10),colspan:1,rowspan:1,text:"",style:R});A.push(O)}const x=100,M=36,S=new Array(m).fill(1/m),w=m*x,_=y*M;s({type:"table",id:Gn(10),width:w,height:_,colWidths:S,rotate:0,data:A,left:(i.value-w)/2,top:(i.value*a.value-_)/2,outline:{width:2,style:"solid",color:"#eeece1"},theme:{color:r.value.themeColors[0],rowHeader:!0,rowFooter:!1,colHeader:!1,colFooter:!1},cellMinHeight:36})},createTextElement:(y,m)=>{const{left:R,top:A,width:x,height:M}=y,S=(m==null?void 0:m.content)||"",w=(m==null?void 0:m.vertical)||!1,_=Gn(10);s({type:"text",id:_,left:R,top:A,width:x,height:M,content:S,rotate:0,defaultFontName:r.value.fontName,defaultColor:r.value.fontColor,vertical:w},()=>{setTimeout(()=>{const T=document.querySelector(`#editable-element-${_} .ProseMirror`);T&&T.focus()},0)})},createShapeElement:(y,m,R={})=>{const{left:A,top:x,width:M,height:S}=y,w={type:"shape",id:Gn(10),left:A,top:x,width:M,height:S,viewBox:m.viewBox,path:m.path,fill:r.value.themeColors[0],fixedRatio:!1,rotate:0,...R};if(m.withborder&&(w.outline=r.value.outline),m.special&&(w.special=!0),m.pathFormula){w.pathFormula=m.pathFormula,w.viewBox=[M,S];const _=by[m.pathFormula];"editable"in _&&_.editable?(w.path=_.formula(M,S,_.defaultValue),w.keypoints=_.defaultValue):w.path=_.formula(M,S)}s(w)},createLineElement:(y,m)=>{const{left:R,top:A,start:x,end:M}=y,S={type:"line",id:Gn(10),left:R,top:A,start:x,end:M,points:m.points,color:r.value.themeColors[0],style:m.style,width:2};m.isBroken&&(S.broken=[(x[0]+M[0])/2,(x[1]+M[1])/2]),m.isBroken2&&(S.broken2=[(x[0]+M[0])/2,(x[1]+M[1])/2]),m.isCurve&&(S.curve=[(x[0]+M[0])/2,(x[1]+M[1])/2]),m.isCubic&&(S.cubic=[[(x[0]+M[0])/2,(x[1]+M[1])/2],[(x[0]+M[0])/2,(x[1]+M[1])/2]]),s(S)},createLatexElement:y=>{s({type:"latex",id:Gn(10),width:y.w,height:y.h,rotate:0,left:(i.value-y.w)/2,top:(i.value*a.value-y.h)/2,path:y.path,latex:y.latex,color:r.value.fontColor,strokeWidth:2,viewBox:[y.w,y.h],fixedRatio:!0})},createVideoElement:(y,m)=>{const R={type:"video",id:Gn(10),width:500,height:300,rotate:0,left:(i.value-500)/2,top:(i.value*a.value-300)/2,src:y,autoplay:!1};m&&(R.ext=m),s(R)},createAudioElement:(y,m)=>{const R={type:"audio",id:Gn(10),width:50,height:50,rotate:0,left:(i.value-50)/2,top:(i.value*a.value-50)/2,loop:!1,autoplay:!1,fixedRatio:!0,color:r.value.themeColors[0],src:y};m&&(R.ext=m),s(R)}}},d8=()=>{const t=Wt(),e=It(),{currentSlide:n}=nt(e),{addHistorySnapshot:r}=Pn();return{addElementsFromData:o=>{const{groupIdMap:s,elIdMap:l}=HF(o),c=o[0];let u=0,f;do f=n.value.elements.find(d=>{if(d.type!==c.type)return!1;const{minX:h,maxX:p,minY:v,maxY:g}=fl(d),{minX:y,maxX:m,minY:R,maxY:A}=fl({...c,left:c.left+u,top:c.top+u});return h===y&&p===m&&v===R&&g===A}),f&&(u+=10);while(f);for(const d of o)d.id=l[d.id],d.left=d.left+u,d.top=d.top+u,d.groupId&&(d.groupId=s[d.groupId]);e.addElement(o),t.setActiveElementIdList(Object.values(l)),r()},addSlidesFromData:o=>{const s=AWe(o),l=o.map(c=>{const{groupIdMap:u,elIdMap:f}=HF(c.elements);for(const d of c.elements)d.id=f[d.id],d.groupId&&(d.groupId=u[d.groupId]),d.link&&d.link.type==="slide"&&(s[d.link.target]?d.link.target=s[d.link.target]:delete d.link);if(c.animations)for(const d of c.animations)d.id=Gn(10),d.elId=f[d.elId];return{...c,id:s[c.id]}});e.addSlide(l),r()}}},wWe=t=>{const e=/^https?:\/\/(?:[a-zA-Z0-9-]+\.)*pexels\.com\/[^\s]+\.(?:jpg|jpeg|png|svg|webp)(?:\?.*)?$/i.test(t),n=/^https?:\/\/(?:[a-zA-Z0-9-]+\.)*pptist\.cn\/[^\s]+\.(?:jpg|jpeg|png|svg|webp)(?:\?.*)?$/i.test(t);return e||n},Oj=()=>{const{shiftKeyState:t}=nt(xc()),{createTextElement:e,createImageElement:n}=M0(),{addElementsFromData:r,addSlidesFromData:a}=d8(),i=s=>{e({left:0,top:0,width:600,height:50},{content:s})};return{pasteTextClipboardData:(s,l)=>{const c=(l==null?void 0:l.onlySlide)||!1,u=(l==null?void 0:l.onlyElements)||!1,f=wj(s);if(typeof f=="object"){const{type:d,data:h}=f;d==="elements"&&!c?r(h):d==="slides"&&!u&&a(h)}else if(!u&&!c)if(t.value){const d=GF(f);i(d)}else if(wWe(f))n(f);else if(UXe(f))i(`<a href="${f}" title="${f}" target="_blank">${f}</a>`);else if(xWe(f)){const d=SWe(f);ag(d).then(h=>n(h))}else{const d=GF(f);i(d)}}}},ig=()=>{const t=Wt(),e=It(),{selectedSlidesIndex:n,activeElementIdList:r}=nt(t),{currentSlide:a,slides:i,theme:o,slideIndex:s}=nt(e),l=Fe(()=>[...n.value,s.value]),c=Fe(()=>i.value.filter((T,O)=>l.value.includes(O))),u=Fe(()=>c.value.map(T=>T.id)),{pasteTextClipboardData:f}=Oj(),{addSlidesFromData:d}=d8(),{addHistorySnapshot:h}=Pn(),p=()=>{const T={id:Gn(10),elements:[],background:{type:"solid",color:o.value.backgroundColor}};e.updateSlideIndex(0),t.setActiveElementIdList([]),e.setSlides([T])},v=T=>{T===Ht.UP&&s.value>0?(r.value.length&&t.setActiveElementIdList([]),e.updateSlideIndex(s.value-1)):T===Ht.DOWN&&s.value<i.value.length-1&&(r.value.length&&t.setActiveElementIdList([]),e.updateSlideIndex(s.value+1))},g=()=>{const T=T4e(JSON.stringify({type:"slides",data:c.value}));O4e(T).then(()=>{t.setThumbnailsFocus(!0)})},y=()=>{P4e().then(T=>{f(T,{onlySlide:!0})}).catch(T=>Dn.warning(T))},m=()=>{const T={id:Gn(10),elements:[],background:{type:"solid",color:o.value.backgroundColor}};t.setActiveElementIdList([]),e.addSlide(T),h()},R=T=>{const{groupIdMap:O,elIdMap:N}=HF(T.elements);for(const C of T.elements)C.id=N[C.id],C.groupId&&(C.groupId=O[C.groupId]);const P={...T,id:Gn(10)};t.setActiveElementIdList([]),e.addSlide(P),h()},A=()=>{const T=JSON.parse(JSON.stringify(a.value));d([T])},x=(T=u.value)=>{i.value.length===T.length?p():e.deleteSlide(T),t.updateSelectedSlidesIndex([]),h()},M=()=>{const T=[...u.value];g(),x(T)},S=()=>{const T=Array.from(Array(i.value.length),(O,N)=>N);t.setActiveElementIdList([]),t.updateSelectedSlidesIndex(T)},w=(T,O)=>{if(O===T)return;const N=JSON.parse(JSON.stringify(i.value)),P=N[O],C=P.sectionTag;if(C){const F=N[O+1];delete P.sectionTag,F&&!F.sectionTag&&(F.sectionTag=C)}if(T===0){const F=N[0].sectionTag;F&&(delete N[0].sectionTag,P.sectionTag=F)}const E=N[O];N.splice(O,1),N.splice(T,0,E),e.setSlides(N),e.updateSlideIndex(T)},_=Fe(()=>!(i.value.length>1||i.value[0].elements.length>0));return{resetSlides:p,updateSlideIndex:v,copySlide:g,pasteSlide:y,createSlide:m,createSlideByTemplate:R,copyAndPasteSlide:A,deleteSlide:x,cutSlide:M,selectAllSlide:S,sortSlides:w,isEmptySlide:_}},Pj=()=>{const t=Wt(),e=It(),{activeElementIdList:n}=nt(t),{currentSlide:r}=nt(e),{addHistorySnapshot:a}=Pn();return{lockElement:()=>{const s=JSON.parse(JSON.stringify(r.value.elements));for(const l of s)n.value.includes(l.id)&&(l.lock=!0);e.updateSlide({elements:s}),t.setActiveElementIdList([]),a()},unlockElement:s=>{const l=JSON.parse(JSON.stringify(r.value.elements));if(s.groupId){const c=[];for(const u of l)u.groupId===s.groupId&&(u.lock=!1,c.push(u.id));e.updateSlide({elements:l}),t.setActiveElementIdList(c)}else{for(const c of l)if(c.id===s.id){c.lock=!1;break}e.updateSlide({elements:l}),t.setActiveElementIdList([s.id])}a()}}},h8=()=>{const t=Wt(),e=It(),{activeElementIdList:n,activeGroupElementId:r}=nt(t),{currentSlide:a}=nt(e),{addHistorySnapshot:i}=Pn();return{deleteElement:()=>{if(!n.value.length)return;let l=[];r.value?l=a.value.elements.filter(c=>c.id!==r.value):l=a.value.elements.filter(c=>!n.value.includes(c.id)),t.setActiveElementIdList([]),e.updateSlide({elements:l}),i()},deleteAllElements:()=>{a.value.elements.length&&(t.setActiveElementIdList([]),e.updateSlide({elements:[]}),i())}}},Cj=()=>{const t=Wt(),e=It(),{activeElementIdList:n,activeElementList:r,handleElementId:a}=nt(t),{currentSlide:i}=nt(e),{addHistorySnapshot:o}=Pn();return{canCombine:Fe(()=>{if(r.value.length<2)return!1;const u=r.value[0].groupId;return u?!r.value.every(d=>(d.groupId&&d.groupId)===u):!0}),combineElements:()=>{if(!r.value.length)return;let u=JSON.parse(JSON.stringify(i.value.elements));const f=Gn(10),d=[];for(const g of u)n.value.includes(g.id)&&(g.groupId=f,d.push(g));const h=u.findIndex(g=>g.id===d[d.length-1].id),p=d.map(g=>g.id);u=u.filter(g=>!p.includes(g.id));const v=h-d.length+1;u.splice(v,0,...d),e.updateSlide({elements:u}),o()},uncombineElements:()=>{if(!r.value.length||!r.value.some(h=>h.groupId))return;const f=JSON.parse(JSON.stringify(i.value.elements));for(const h of f)n.value.includes(h.id)&&h.groupId&&delete h.groupId;e.updateSlide({elements:f});const d=a.value?[a.value]:[];t.setActiveElementIdList(d),o()}}},Nj=()=>{const t=Wt(),{activeElementIdList:e,activeElementList:n}=nt(t),{pasteTextClipboardData:r}=Oj(),{deleteElement:a}=h8(),i=()=>{if(!e.value.length)return;const c=T4e(JSON.stringify({type:"elements",data:n.value}));O4e(c).then(()=>{t.setEditorareaFocus(!0)})},o=()=>{i(),a()},s=()=>{P4e().then(c=>{r(c)}).catch(c=>Dn.warning(c))};return{copyElement:i,cutElement:o,pasteElement:s,quickCopyElement:()=>{i(),s()}}},p8=()=>{const t=Wt(),{currentSlide:e}=nt(It()),{hiddenElementIdList:n,handleElementId:r}=nt(t);return{selectAllElements:()=>{const s=e.value.elements.filter(l=>!l.lock&&!n.value.includes(l.id)).map(l=>l.id);t.setActiveElementIdList(s)},selectElement:o=>{r.value===o||n.value.includes(o)||e.value.elements.filter(l=>l.lock).some(l=>l.id===o)||t.setActiveElementIdList([o])}}},LWe=()=>{const t=It(),{activeElementIdList:e,activeGroupElementId:n}=nt(Wt()),{currentSlide:r}=nt(t),{addHistorySnapshot:a}=Pn();return{moveElement:(o,s=1)=>{let l=[];const c=u=>{let{left:f,top:d}=u;switch(o){case Ht.LEFT:f=f-s;break;case Ht.RIGHT:f=f+s;break;case Ht.UP:d=d-s;break;case Ht.DOWN:d=d+s;break}return{...u,left:f,top:d}};n.value?l=r.value.elements.map(u=>n.value===u.id?c(u):u):l=r.value.elements.map(u=>e.value.includes(u.id)?c(u):u),t.updateSlide({elements:l}),a()}}},v8=()=>{const t=It(),{currentSlide:e}=nt(t),{addHistorySnapshot:n}=Pn(),r=(c,u)=>({minLevel:c.findIndex(f=>f.id===u[0].id),maxLevel:c.findIndex(f=>f.id===u[u.length-1].id)}),a=(c,u)=>{const f=JSON.parse(JSON.stringify(c));if(u.groupId){const d=f.filter(y=>y.groupId===u.groupId),{minLevel:h,maxLevel:p}=r(c,d);if(p===c.length-1)return;const v=f[p+1],g=f.splice(h,d.length);if(v.groupId){const y=f.filter(m=>m.groupId===v.groupId);f.splice(h+y.length,0,...g)}else f.splice(h+1,0,...g)}else{const d=c.findIndex(v=>v.id===u.id);if(d===c.length-1)return;const h=f[d+1],p=f.splice(d,1)[0];if(h.groupId){const v=f.filter(g=>g.groupId===h.groupId);f.splice(d+v.length,0,p)}else f.splice(d+1,0,p)}return f},i=(c,u)=>{const f=JSON.parse(JSON.stringify(c));if(u.groupId){const d=f.filter(g=>g.groupId===u.groupId),{minLevel:h}=r(c,d);if(h===0)return;const p=f[h-1],v=f.splice(h,d.length);if(p.groupId){const g=f.filter(y=>y.groupId===p.groupId);f.splice(h-g.length,0,...v)}else f.splice(h-1,0,...v)}else{const d=c.findIndex(v=>v.id===u.id);if(d===0)return;const h=f[d-1],p=f.splice(d,1)[0];if(h.groupId){const v=f.filter(g=>g.groupId===h.groupId);f.splice(d-v.length,0,p)}else f.splice(d-1,0,p)}return f},o=(c,u)=>{const f=JSON.parse(JSON.stringify(c));if(u.groupId){const d=f.filter(g=>g.groupId===u.groupId),{minLevel:h,maxLevel:p}=r(c,d);if(p===c.length-1)return null;const v=f.splice(h,d.length);f.push(...v)}else{const d=c.findIndex(h=>h.id===u.id);if(d===c.length-1)return null;f.splice(d,1),f.push(u)}return f},s=(c,u)=>{const f=JSON.parse(JSON.stringify(c));if(u.groupId){const d=f.filter(v=>v.groupId===u.groupId),{minLevel:h}=r(c,d);if(h===0)return;const p=f.splice(h,d.length);f.unshift(...p)}else{const d=c.findIndex(h=>h.id===u.id);if(d===0)return;f.splice(d,1),f.unshift(u)}return f};return{orderElement:(c,u)=>{let f;u===Qa.UP?f=a(e.value.elements,c):u===Qa.DOWN?f=i(e.value.elements,c):u===Qa.TOP?f=o(e.value.elements,c):u===Qa.BOTTOM&&(f=s(e.value.elements,c)),f&&(t.updateSlide({elements:f}),n())}}},Ij=()=>{const t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},U4e=()=>{document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},EG=()=>!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement),og=()=>{const t=HSe(),e=It(),n=()=>{Ij(),t.setScreening(!0)};return{enterScreening:n,enterScreeningFromStart:()=>{e.updateSlideIndex(0),n()},exitScreening:()=>{t.setScreening(!1),EG()&&U4e()}}},kj=()=>{const t=Wt(),{canvasPercentage:e,canvasScale:n,canvasDragged:r}=nt(t);return{canvasScalePercentage:Fe(()=>Math.round(n.value*100)+"%"),setCanvasScalePercentage:l=>{const c=Math.round(l/n.value*e.value)/100;t.setCanvasPercentage(c)},scaleCanvas:l=>{let c=e.value;const u=5,f=200,d=30;l==="+"&&c<=f&&(c+=u),l==="-"&&c>=d&&(c-=u),t.setCanvasPercentage(c)},resetCanvas:()=>{t.setCanvasPercentage(90),r&&t.setCanvasDragged(!1)}}},TWe=()=>{const t=Wt(),e=xc(),{activeElementIdList:n,disableHotkeys:r,handleElement:a,handleElementId:i,editorAreaFocus:o,thumbnailsFocus:s,showSearchPanel:l}=nt(t),{currentSlide:c}=nt(It()),{ctrlKeyState:u,shiftKeyState:f,spaceKeyState:d}=nt(e),{updateSlideIndex:h,copySlide:p,createSlide:v,deleteSlide:g,cutSlide:y,copyAndPasteSlide:m,selectAllSlide:R}=ig(),{combineElements:A,uncombineElements:x}=Cj(),{deleteElement:M}=h8(),{lockElement:S}=Pj(),{copyElement:w,cutElement:_,quickCopyElement:T}=Nj(),{selectAllElements:O}=p8(),{moveElement:N}=LWe(),{orderElement:P}=v8(),{redo:C,undo:E}=Pn(),{enterScreening:F,enterScreeningFromStart:Y}=og(),{scaleCanvas:Q,resetCanvas:K}=kj(),ne=()=>{n.value.length?w():s.value&&p()},Z=()=>{n.value.length?_():s.value&&y()},$=()=>{n.value.length?T():s.value&&m()},G=()=>{o.value&&O(),s.value&&R()},ee=()=>{o.value&&S()},ce=()=>{o.value&&A()},B=()=>{o.value&&x()},xe=()=>{n.value.length?M():s.value&&g()},_e=j=>{n.value.length?N(j):(j===Ht.UP||j===Ht.DOWN)&&h(j)},se=j=>{j===Ht.PAGEUP?h(Ht.UP):j===Ht.PAGEDOWN&&h(Ht.DOWN)},z=j=>{a.value&&P(a.value,j)},de=()=>{s.value&&v()},fe=()=>{if(!c.value.elements.length)return;if(!i.value){const le=c.value.elements[0];t.setActiveElementIdList([le.id]);return}const j=c.value.elements.findIndex(le=>le.id===i.value),oe=j>=c.value.elements.length-1?0:j+1,ae=c.value.elements[oe].id;t.setActiveElementIdList([ae])},re=j=>{const{ctrlKey:oe,shiftKey:ae,altKey:le,metaKey:ge}=j,Se=oe||ge,me=j.key.toUpperCase();if(Se&&!u.value&&e.setCtrlKeyState(!0),ae&&!f.value&&e.setShiftKeyState(!0),!r.value&&me===Ht.SPACE&&e.setSpaceKeyState(!0),Se&&me===Ht.P){j.preventDefault(),t.setDialogForExport("pdf");return}if(ae&&me===Ht.F5){j.preventDefault(),F(),e.setShiftKeyState(!1);return}if(me===Ht.F5){j.preventDefault(),Y();return}if(oe&&me===Ht.F){j.preventDefault(),t.setSearchPanelState(!l.value);return}if(oe&&me===Ht.MINUS){j.preventDefault(),Q("-");return}if(oe&&me===Ht.EQUAL){j.preventDefault(),Q("+");return}if(oe&&me===Ht.DIGIT_0){j.preventDefault(),K();return}if(!(!o.value&&!s.value)){if(Se&&me===Ht.C){if(r.value)return;j.preventDefault(),ne()}if(Se&&me===Ht.X){if(r.value)return;j.preventDefault(),Z()}if(Se&&me===Ht.D){if(r.value)return;j.preventDefault(),$()}if(Se&&me===Ht.Z){if(r.value)return;j.preventDefault(),E()}if(Se&&me===Ht.Y){if(r.value)return;j.preventDefault(),C()}if(Se&&me===Ht.A){if(r.value)return;j.preventDefault(),G()}if(Se&&me===Ht.L){if(r.value)return;j.preventDefault(),ee()}if(!ae&&Se&&me===Ht.G){if(r.value)return;j.preventDefault(),ce()}if(ae&&Se&&me===Ht.G){if(r.value)return;j.preventDefault(),B()}if(le&&me===Ht.F){if(r.value)return;j.preventDefault(),z(Qa.TOP)}if(le&&me===Ht.B){if(r.value)return;j.preventDefault(),z(Qa.BOTTOM)}if(me===Ht.DELETE||me===Ht.BACKSPACE){if(r.value)return;j.preventDefault(),xe()}if(me===Ht.UP){if(r.value)return;j.preventDefault(),_e(Ht.UP)}if(me===Ht.DOWN){if(r.value)return;j.preventDefault(),_e(Ht.DOWN)}if(me===Ht.LEFT){if(r.value)return;j.preventDefault(),_e(Ht.LEFT)}if(me===Ht.RIGHT){if(r.value)return;j.preventDefault(),_e(Ht.RIGHT)}if(me===Ht.PAGEUP){if(r.value)return;j.preventDefault(),se(Ht.PAGEUP)}if(me===Ht.PAGEDOWN){if(r.value)return;j.preventDefault(),se(Ht.PAGEDOWN)}if(me===Ht.ENTER){if(r.value)return;j.preventDefault(),de()}if(me===Ht.TAB){if(r.value)return;j.preventDefault(),fe()}o.value&&!ae&&!Se&&!r.value&&(me===Ht.T?t.setCreatingElement({type:"text"}):me===Ht.R?t.setCreatingElement({type:"shape",data:{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"}}):me===Ht.O?t.setCreatingElement({type:"shape",data:{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"}}):me===Ht.L&&t.setCreatingElement({type:"line",data:{path:"M 0 0 L 20 20",style:"solid",points:["",""]}}))}},X=()=>{u.value&&e.setCtrlKeyState(!1),f.value&&e.setShiftKeyState(!1),d.value&&e.setSpaceKeyState(!1)};mn(()=>{document.addEventListener("keydown",re),document.addEventListener("keyup",X),window.addEventListener("blur",X)}),or(()=>{document.removeEventListener("keydown",re),document.removeEventListener("keyup",X),window.removeEventListener("blur",X)})},$F={"audio/aac":"aac","audio/mpeg":"mp3","audio/ogg":"oga","audio/wav":"wav","audio/webm":"weba","audio/flac":"flac","audio/mp4":"m4a","audio/x-aiff":"aif","audio/x-ms-wma":"wma","audio/midi":"mid","video/mp4":"mp4","video/mpeg":"mpeg","video/ogg":"ogv","video/webm":"webm","video/x-msvideo":"avi","video/quicktime":"mov","video/x-ms-wmv":"wmv","video/x-flv":"flv","video/3gpp":"3gp","video/3gpp2":"3g2"};function nQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ej(t){return function(e){if(Array.isArray(e))return nQ(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,n){if(e){if(typeof e=="string")return nQ(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nQ(e,n):void 0}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Fj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y0e(t,e,n,r,a,i,o){try{var s=t[i](o),l=s.value}catch(c){return void n(c)}s.done?e(l):Promise.resolve(l).then(r,a)}function Pr(t){return function(){var e=this,n=arguments;return new Promise(function(r,a){var i=t.apply(e,n);function o(l){y0e(i,r,a,o,s,"next",l)}function s(l){y0e(i,r,a,o,s,"throw",l)}o(void 0)})}}var rc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function XD(t){var e=t.default;if(typeof e=="function"){var n=function(){return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var W4e={exports:{}},A0e={exports:{}};(function(t){function e(n){return t.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(A0e),function(t){var e=A0e.exports.default;function n(){t.exports=n=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var r={},a=Object.prototype,i=a.hasOwnProperty,o=Object.defineProperty||function(E,F,Y){E[F]=Y.value},s=typeof Symbol=="function"?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function f(E,F,Y){return Object.defineProperty(E,F,{value:Y,enumerable:!0,configurable:!0,writable:!0}),E[F]}try{f({},"")}catch{f=function(F,Y,Q){return F[Y]=Q}}function d(E,F,Y,Q){var K=F&&F.prototype instanceof v?F:v,ne=Object.create(K.prototype),Z=new N(Q||[]);return o(ne,"_invoke",{value:w(E,Y,Z)}),ne}function h(E,F,Y){try{return{type:"normal",arg:E.call(F,Y)}}catch(Q){return{type:"throw",arg:Q}}}r.wrap=d;var p={};function v(){}function g(){}function y(){}var m={};f(m,l,function(){return this});var R=Object.getPrototypeOf,A=R&&R(R(P([])));A&&A!==a&&i.call(A,l)&&(m=A);var x=y.prototype=v.prototype=Object.create(m);function M(E){["next","throw","return"].forEach(function(F){f(E,F,function(Y){return this._invoke(F,Y)})})}function S(E,F){function Y(K,ne,Z,$){var G=h(E[K],E,ne);if(G.type!=="throw"){var ee=G.arg,ce=ee.value;return ce&&e(ce)=="object"&&i.call(ce,"__await")?F.resolve(ce.__await).then(function(B){Y("next",B,Z,$)},function(B){Y("throw",B,Z,$)}):F.resolve(ce).then(function(B){ee.value=B,Z(ee)},function(B){return Y("throw",B,Z,$)})}$(G.arg)}var Q;o(this,"_invoke",{value:function(K,ne){function Z(){return new F(function($,G){Y(K,ne,$,G)})}return Q=Q?Q.then(Z,Z):Z()}})}function w(E,F,Y){var Q="suspendedStart";return function(K,ne){if(Q==="executing")throw new Error("Generator is already running");if(Q==="completed"){if(K==="throw")throw ne;return C()}for(Y.method=K,Y.arg=ne;;){var Z=Y.delegate;if(Z){var $=_(Z,Y);if($){if($===p)continue;return $}}if(Y.method==="next")Y.sent=Y._sent=Y.arg;else if(Y.method==="throw"){if(Q==="suspendedStart")throw Q="completed",Y.arg;Y.dispatchException(Y.arg)}else Y.method==="return"&&Y.abrupt("return",Y.arg);Q="executing";var G=h(E,F,Y);if(G.type==="normal"){if(Q=Y.done?"completed":"suspendedYield",G.arg===p)continue;return{value:G.arg,done:Y.done}}G.type==="throw"&&(Q="completed",Y.method="throw",Y.arg=G.arg)}}}function _(E,F){var Y=E.iterator[F.method];if(Y===void 0){if(F.delegate=null,F.method==="throw"){if(E.iterator.return&&(F.method="return",F.arg=void 0,_(E,F),F.method==="throw"))return p;F.method="throw",F.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var Q=h(Y,E.iterator,F.arg);if(Q.type==="throw")return F.method="throw",F.arg=Q.arg,F.delegate=null,p;var K=Q.arg;return K?K.done?(F[E.resultName]=K.value,F.next=E.nextLoc,F.method!=="return"&&(F.method="next",F.arg=void 0),F.delegate=null,p):K:(F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,p)}function T(E){var F={tryLoc:E[0]};1 in E&&(F.catchLoc=E[1]),2 in E&&(F.finallyLoc=E[2],F.afterLoc=E[3]),this.tryEntries.push(F)}function O(E){var F=E.completion||{};F.type="normal",delete F.arg,E.completion=F}function N(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(T,this),this.reset(!0)}function P(E){if(E){var F=E[l];if(F)return F.call(E);if(typeof E.next=="function")return E;if(!isNaN(E.length)){var Y=-1,Q=function K(){for(;++Y<E.length;)if(i.call(E,Y))return K.value=E[Y],K.done=!1,K;return K.value=void 0,K.done=!0,K};return Q.next=Q}}return{next:C}}function C(){return{value:void 0,done:!0}}return g.prototype=y,o(x,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:g,configurable:!0}),g.displayName=f(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(E){var F=typeof E=="function"&&E.constructor;return!!F&&(F===g||(F.displayName||F.name)==="GeneratorFunction")},r.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,y):(E.__proto__=y,f(E,u,"GeneratorFunction")),E.prototype=Object.create(x),E},r.awrap=function(E){return{__await:E}},M(S.prototype),f(S.prototype,c,function(){return this}),r.AsyncIterator=S,r.async=function(E,F,Y,Q,K){K===void 0&&(K=Promise);var ne=new S(d(E,F,Y,Q),K);return r.isGeneratorFunction(F)?ne:ne.next().then(function(Z){return Z.done?Z.value:ne.next()})},M(x),f(x,u,"Generator"),f(x,l,function(){return this}),f(x,"toString",function(){return"[object Generator]"}),r.keys=function(E){var F=Object(E),Y=[];for(var Q in F)Y.push(Q);return Y.reverse(),function K(){for(;Y.length;){var ne=Y.pop();if(ne in F)return K.value=ne,K.done=!1,K}return K.done=!0,K}},r.values=P,N.prototype={constructor:N,reset:function(E){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!E)for(var F in this)F.charAt(0)==="t"&&i.call(this,F)&&!isNaN(+F.slice(1))&&(this[F]=void 0)},stop:function(){this.done=!0;var E=this.tryEntries[0].completion;if(E.type==="throw")throw E.arg;return this.rval},dispatchException:function(E){if(this.done)throw E;var F=this;function Y(G,ee){return ne.type="throw",ne.arg=E,F.next=G,ee&&(F.method="next",F.arg=void 0),!!ee}for(var Q=this.tryEntries.length-1;Q>=0;--Q){var K=this.tryEntries[Q],ne=K.completion;if(K.tryLoc==="root")return Y("end");if(K.tryLoc<=this.prev){var Z=i.call(K,"catchLoc"),$=i.call(K,"finallyLoc");if(Z&&$){if(this.prev<K.catchLoc)return Y(K.catchLoc,!0);if(this.prev<K.finallyLoc)return Y(K.finallyLoc)}else if(Z){if(this.prev<K.catchLoc)return Y(K.catchLoc,!0)}else{if(!$)throw new Error("try statement without catch or finally");if(this.prev<K.finallyLoc)return Y(K.finallyLoc)}}}},abrupt:function(E,F){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var Q=this.tryEntries[Y];if(Q.tryLoc<=this.prev&&i.call(Q,"finallyLoc")&&this.prev<Q.finallyLoc){var K=Q;break}}K&&(E==="break"||E==="continue")&&K.tryLoc<=F&&F<=K.finallyLoc&&(K=null);var ne=K?K.completion:{};return ne.type=E,ne.arg=F,K?(this.method="next",this.next=K.finallyLoc,p):this.complete(ne)},complete:function(E,F){if(E.type==="throw")throw E.arg;return E.type==="break"||E.type==="continue"?this.next=E.arg:E.type==="return"?(this.rval=this.arg=E.arg,this.method="return",this.next="end"):E.type==="normal"&&F&&(this.next=F),p},finish:function(E){for(var F=this.tryEntries.length-1;F>=0;--F){var Y=this.tryEntries[F];if(Y.finallyLoc===E)return this.complete(Y.completion,Y.afterLoc),O(Y),p}},catch:function(E){for(var F=this.tryEntries.length-1;F>=0;--F){var Y=this.tryEntries[F];if(Y.tryLoc===E){var Q=Y.completion;if(Q.type==="throw"){var K=Q.arg;O(Y)}return K}}throw new Error("illegal catch attempt")},delegateYield:function(E,F,Y){return this.delegate={iterator:P(E),resultName:F,nextLoc:Y},this.method==="next"&&(this.arg=void 0),p}},r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(W4e);var NE=W4e.exports(),en=NE;try{regeneratorRuntime=NE}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=NE:Function("r","regeneratorRuntime = r")(NE)}var kS={},R0e={},rS=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},oh=[],tu=[],OWe=typeof Uint8Array<"u"?Uint8Array:Array,Xj=!1;function Y4e(){Xj=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=t.length;e<n;++e)oh[e]=t[e],tu[t.charCodeAt(e)]=e;tu[45]=62,tu[95]=63}function PWe(t,e,n){for(var r,a,i=[],o=e;o<n;o+=3)r=(t[o]<<16)+(t[o+1]<<8)+t[o+2],i.push(oh[(a=r)>>18&63]+oh[a>>12&63]+oh[a>>6&63]+oh[63&a]);return i.join("")}function b0e(t){var e;Xj||Y4e();for(var n=t.length,r=n%3,a="",i=[],o=16383,s=0,l=n-r;s<l;s+=o)i.push(PWe(t,s,s+o>l?l:s+o));return r===1?(e=t[n-1],a+=oh[e>>2],a+=oh[e<<4&63],a+="=="):r===2&&(e=(t[n-2]<<8)+t[n-1],a+=oh[e>>10],a+=oh[e>>4&63],a+=oh[e<<2&63],a+="="),i.push(a),i.join("")}function i9(t,e,n,r,a){var i,o,s=8*a-r-1,l=(1<<s)-1,c=l>>1,u=-7,f=n?a-1:0,d=n?-1:1,h=t[e+f];for(f+=d,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+t[e+f],f+=d,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=r;u>0;o=256*o+t[e+f],f+=d,u-=8);if(i===0)i=1-c;else{if(i===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),i-=c}return(h?-1:1)*o*Math.pow(2,i-r)}function B4e(t,e,n,r,a,i){var o,s,l,c=8*i-a-1,u=(1<<c)-1,f=u>>1,d=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,v=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(e*l-1)*Math.pow(2,a),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;t[n+h]=255&s,h+=p,s/=256,a-=8);for(o=o<<a|s,c+=a;c>0;t[n+h]=255&o,h+=p,o/=256,c-=8);t[n+h-p]|=128*v}var CWe={}.toString,Z4e=Array.isArray||function(t){return CWe.call(t)=="[object Array]"};_t.TYPED_ARRAY_SUPPORT=rS.TYPED_ARRAY_SUPPORT===void 0||rS.TYPED_ARRAY_SUPPORT;var NWe=zF();function zF(){return _t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s0(t,e){if(zF()<e)throw new RangeError("Invalid typed array length");return _t.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=_t.prototype:(t===null&&(t=new _t(e)),t.length=e),t}function _t(t,e,n){if(!(_t.TYPED_ARRAY_SUPPORT||this instanceof _t))return new _t(t,e,n);if(typeof t=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return FG(this,t)}return Q4e(this,t,e,n)}function Q4e(t,e,n,r){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?function(a,i,o,s){if(i.byteLength,o<0||i.byteLength<o)throw new RangeError("'offset' is out of bounds");if(i.byteLength<o+(s||0))throw new RangeError("'length' is out of bounds");return i=o===void 0&&s===void 0?new Uint8Array(i):s===void 0?new Uint8Array(i,o):new Uint8Array(i,o,s),_t.TYPED_ARRAY_SUPPORT?(a=i).__proto__=_t.prototype:a=rQ(a,i),a}(t,e,n,r):typeof e=="string"?function(a,i,o){if(typeof o=="string"&&o!==""||(o="utf8"),!_t.isEncoding(o))throw new TypeError('"encoding" must be a valid string encoding');var s=0|H4e(i,o),l=(a=s0(a,s)).write(i,o);return l!==s&&(a=a.slice(0,l)),a}(t,e,n):function(a,i){if(sh(i)){var o=0|Dj(i.length);return(a=s0(a,o)).length===0||i.copy(a,0,0,o),a}if(i){if(typeof ArrayBuffer<"u"&&i.buffer instanceof ArrayBuffer||"length"in i)return typeof i.length!="number"||(s=i.length)!=s?s0(a,0):rQ(a,i);if(i.type==="Buffer"&&Z4e(i.data))return rQ(a,i.data)}var s;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function K4e(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function FG(t,e){if(K4e(e),t=s0(t,e<0?0:0|Dj(e)),!_t.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function rQ(t,e){var n=e.length<0?0:0|Dj(e.length);t=s0(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function Dj(t){if(t>=zF())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+zF().toString(16)+" bytes");return 0|t}function sh(t){return!(t==null||!t._isBuffer)}function H4e(t,e){if(sh(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var n=t.length;if(n===0)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return JF(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J4e(t).length;default:if(r)return JF(t).length;e=(""+e).toLowerCase(),r=!0}}function IWe(t,e,n){var r=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return YWe(this,e,n);case"utf8":case"utf-8":return $4e(this,e,n);case"ascii":return UWe(this,e,n);case"latin1":case"binary":return WWe(this,e,n);case"base64":return VWe(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return BWe(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function Ym(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function x0e(t,e,n,r,a){if(t.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(a)return-1;n=t.length-1}else if(n<0){if(!a)return-1;n=0}if(typeof e=="string"&&(e=_t.from(e,r)),sh(e))return e.length===0?-1:S0e(t,e,n,r,a);if(typeof e=="number")return e&=255,_t.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):S0e(t,[e],n,r,a);throw new TypeError("val must be string, number or Buffer")}function S0e(t,e,n,r,a){var i,o=1,s=t.length,l=e.length;if(r!==void 0&&((r=String(r).toLowerCase())==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(h,p){return o===1?h[p]:h.readUInt16BE(p*o)}if(a){var u=-1;for(i=n;i<s;i++)if(c(t,i)===c(e,u===-1?0:i-u)){if(u===-1&&(u=i),i-u+1===l)return u*o}else u!==-1&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var f=!0,d=0;d<l;d++)if(c(t,i+d)!==c(e,d)){f=!1;break}if(f)return i}return-1}function kWe(t,e,n,r){n=Number(n)||0;var a=t.length-n;r?(r=Number(r))>a&&(r=a):r=a;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var o=0;o<r;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[n+o]=s}return o}function EWe(t,e,n,r){return DD(JF(e,t.length-n),t,n,r)}function G4e(t,e,n,r){return DD(function(a){for(var i=[],o=0;o<a.length;++o)i.push(255&a.charCodeAt(o));return i}(e),t,n,r)}function FWe(t,e,n,r){return G4e(t,e,n,r)}function XWe(t,e,n,r){return DD(J4e(e),t,n,r)}function DWe(t,e,n,r){return DD(function(a,i){for(var o,s,l,c=[],u=0;u<a.length&&!((i-=2)<0);++u)s=(o=a.charCodeAt(u))>>8,l=o%256,c.push(l),c.push(s);return c}(e,t.length-n),t,n,r)}function VWe(t,e,n){return e===0&&n===t.length?b0e(t):b0e(t.slice(e,n))}function $4e(t,e,n){n=Math.min(t.length,n);for(var r=[],a=e;a<n;){var i,o,s,l,c=t[a],u=null,f=c>239?4:c>223?3:c>191?2:1;if(a+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:(192&(i=t[a+1]))==128&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=t[a+1],o=t[a+2],(192&i)==128&&(192&o)==128&&(l=(15&c)<<12|(63&i)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=t[a+1],o=t[a+2],s=t[a+3],(192&i)==128&&(192&o)==128&&(192&s)==128&&(l=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}u===null?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),a+=f}return function(d){var h=d.length;if(h<=4096)return String.fromCharCode.apply(String,d);for(var p="",v=0;v<h;)p+=String.fromCharCode.apply(String,d.slice(v,v+=4096));return p}(r)}_t.poolSize=8192,_t._augment=function(t){return t.__proto__=_t.prototype,t},_t.from=function(t,e,n){return Q4e(null,t,e,n)},_t.TYPED_ARRAY_SUPPORT&&(_t.prototype.__proto__=Uint8Array.prototype,_t.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&_t[Symbol.species]),_t.alloc=function(t,e,n){return function(r,a,i,o){return K4e(a),a<=0?s0(r,a):i!==void 0?typeof o=="string"?s0(r,a).fill(i,o):s0(r,a).fill(i):s0(r,a)}(null,t,e,n)},_t.allocUnsafe=function(t){return FG(null,t)},_t.allocUnsafeSlow=function(t){return FG(null,t)},_t.isBuffer=g8,_t.compare=function(t,e){if(!sh(t)||!sh(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,a=0,i=Math.min(n,r);a<i;++a)if(t[a]!==e[a]){n=t[a],r=e[a];break}return n<r?-1:r<n?1:0},_t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},_t.concat=function(t,e){if(!Z4e(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return _t.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=_t.allocUnsafe(e),a=0;for(n=0;n<t.length;++n){var i=t[n];if(!sh(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,a),a+=i.length}return r},_t.byteLength=H4e,_t.prototype._isBuffer=!0,_t.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)Ym(this,e,e+1);return this},_t.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)Ym(this,e,e+3),Ym(this,e+1,e+2);return this},_t.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)Ym(this,e,e+7),Ym(this,e+1,e+6),Ym(this,e+2,e+5),Ym(this,e+3,e+4);return this},_t.prototype.toString=function(){var t=0|this.length;return t===0?"":arguments.length===0?$4e(this,0,t):IWe.apply(this,arguments)},_t.prototype.equals=function(t){if(!sh(t))throw new TypeError("Argument must be a Buffer");return this===t||_t.compare(this,t)===0},_t.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},_t.prototype.compare=function(t,e,n,r,a){if(!sh(t))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),n===void 0&&(n=t?t.length:0),r===void 0&&(r=0),a===void 0&&(a=this.length),e<0||n>t.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&e>=n)return 0;if(r>=a)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(e>>>=0),s=Math.min(i,o),l=this.slice(r,a),c=t.slice(e,n),u=0;u<s;++u)if(l[u]!==c[u]){i=l[u],o=c[u];break}return i<o?-1:o<i?1:0},_t.prototype.includes=function(t,e,n){return this.indexOf(t,e,n)!==-1},_t.prototype.indexOf=function(t,e,n){return x0e(this,t,e,n,!0)},_t.prototype.lastIndexOf=function(t,e,n){return x0e(this,t,e,n,!1)},_t.prototype.write=function(t,e,n,r){if(e===void 0)r="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,r===void 0&&(r="utf8")):(r=n,n=void 0)}var a=this.length-e;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return kWe(this,t,e,n);case"utf8":case"utf-8":return EWe(this,t,e,n);case"ascii":return G4e(this,t,e,n);case"latin1":case"binary":return FWe(this,t,e,n);case"base64":return XWe(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return DWe(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},_t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function UWe(t,e,n){var r="";n=Math.min(t.length,n);for(var a=e;a<n;++a)r+=String.fromCharCode(127&t[a]);return r}function WWe(t,e,n){var r="";n=Math.min(t.length,n);for(var a=e;a<n;++a)r+=String.fromCharCode(t[a]);return r}function YWe(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var a="",i=e;i<n;++i)a+=QWe(t[i]);return a}function BWe(t,e,n){for(var r=t.slice(e,n),a="",i=0;i<r.length;i+=2)a+=String.fromCharCode(r[i]+256*r[i+1]);return a}function so(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function tl(t,e,n,r,a,i){if(!sh(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function o9(t,e,n,r){e<0&&(e=65535+e+1);for(var a=0,i=Math.min(t.length-n,2);a<i;++a)t[n+a]=(e&255<<8*(r?a:1-a))>>>8*(r?a:1-a)}function s9(t,e,n,r){e<0&&(e=4294967295+e+1);for(var a=0,i=Math.min(t.length-n,4);a<i;++a)t[n+a]=e>>>8*(r?a:3-a)&255}function z4e(t,e,n,r,a,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M0e(t,e,n,r,a){return a||z4e(t,0,n,4),B4e(t,e,n,r,23,4),n+4}function _0e(t,e,n,r,a){return a||z4e(t,0,n,8),B4e(t,e,n,r,52,8),n+8}_t.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=e===void 0?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),_t.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=_t.prototype;else{var a=e-t;n=new _t(a,void 0);for(var i=0;i<a;++i)n[i]=this[i+t]}return n},_t.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||so(t,e,this.length);for(var r=this[t],a=1,i=0;++i<e&&(a*=256);)r+=this[t+i]*a;return r},_t.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||so(t,e,this.length);for(var r=this[t+--e],a=1;e>0&&(a*=256);)r+=this[t+--e]*a;return r},_t.prototype.readUInt8=function(t,e){return e||so(t,1,this.length),this[t]},_t.prototype.readUInt16LE=function(t,e){return e||so(t,2,this.length),this[t]|this[t+1]<<8},_t.prototype.readUInt16BE=function(t,e){return e||so(t,2,this.length),this[t]<<8|this[t+1]},_t.prototype.readUInt32LE=function(t,e){return e||so(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},_t.prototype.readUInt32BE=function(t,e){return e||so(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},_t.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||so(t,e,this.length);for(var r=this[t],a=1,i=0;++i<e&&(a*=256);)r+=this[t+i]*a;return r>=(a*=128)&&(r-=Math.pow(2,8*e)),r},_t.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||so(t,e,this.length);for(var r=e,a=1,i=this[t+--r];r>0&&(a*=256);)i+=this[t+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*e)),i},_t.prototype.readInt8=function(t,e){return e||so(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},_t.prototype.readInt16LE=function(t,e){e||so(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},_t.prototype.readInt16BE=function(t,e){e||so(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},_t.prototype.readInt32LE=function(t,e){return e||so(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},_t.prototype.readInt32BE=function(t,e){return e||so(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},_t.prototype.readFloatLE=function(t,e){return e||so(t,4,this.length),i9(this,t,!0,23,4)},_t.prototype.readFloatBE=function(t,e){return e||so(t,4,this.length),i9(this,t,!1,23,4)},_t.prototype.readDoubleLE=function(t,e){return e||so(t,8,this.length),i9(this,t,!0,52,8)},_t.prototype.readDoubleBE=function(t,e){return e||so(t,8,this.length),i9(this,t,!1,52,8)},_t.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||tl(this,t,e,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[e]=255&t;++i<n&&(a*=256);)this[e+i]=t/a&255;return e+n},_t.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||tl(this,t,e,n,Math.pow(2,8*n)-1,0);var a=n-1,i=1;for(this[e+a]=255&t;--a>=0&&(i*=256);)this[e+a]=t/i&255;return e+n},_t.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||tl(this,t,e,1,255,0),_t.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},_t.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||tl(this,t,e,2,65535,0),_t.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):o9(this,t,e,!0),e+2},_t.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||tl(this,t,e,2,65535,0),_t.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):o9(this,t,e,!1),e+2},_t.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||tl(this,t,e,4,4294967295,0),_t.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):s9(this,t,e,!0),e+4},_t.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||tl(this,t,e,4,4294967295,0),_t.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):s9(this,t,e,!1),e+4},_t.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var a=Math.pow(2,8*n-1);tl(this,t,e,n,a-1,-a)}var i=0,o=1,s=0;for(this[e]=255&t;++i<n&&(o*=256);)t<0&&s===0&&this[e+i-1]!==0&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+n},_t.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var a=Math.pow(2,8*n-1);tl(this,t,e,n,a-1,-a)}var i=n-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&s===0&&this[e+i+1]!==0&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+n},_t.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||tl(this,t,e,1,127,-128),_t.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},_t.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||tl(this,t,e,2,32767,-32768),_t.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):o9(this,t,e,!0),e+2},_t.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||tl(this,t,e,2,32767,-32768),_t.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):o9(this,t,e,!1),e+2},_t.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||tl(this,t,e,4,2147483647,-2147483648),_t.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):s9(this,t,e,!0),e+4},_t.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||tl(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),_t.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):s9(this,t,e,!1),e+4},_t.prototype.writeFloatLE=function(t,e,n){return M0e(this,t,e,!0,n)},_t.prototype.writeFloatBE=function(t,e,n){return M0e(this,t,e,!1,n)},_t.prototype.writeDoubleLE=function(t,e,n){return _0e(this,t,e,!0,n)},_t.prototype.writeDoubleBE=function(t,e,n){return _0e(this,t,e,!1,n)},_t.prototype.copy=function(t,e,n,r){if(n||(n=0),r||r===0||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n||t.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var a,i=r-n;if(this===t&&n<e&&e<r)for(a=i-1;a>=0;--a)t[a+e]=this[a+n];else if(i<1e3||!_t.TYPED_ARRAY_SUPPORT)for(a=0;a<i;++a)t[a+e]=this[a+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),e);return i},_t.prototype.fill=function(t,e,n,r){if(typeof t=="string"){if(typeof e=="string"?(r=e,e=0,n=this.length):typeof n=="string"&&(r=n,n=this.length),t.length===1){var a=t.charCodeAt(0);a<256&&(t=a)}if(r!==void 0&&typeof r!="string")throw new TypeError("encoding must be a string");if(typeof r=="string"&&!_t.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else typeof t=="number"&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=n===void 0?this.length:n>>>0,t||(t=0),typeof t=="number")for(i=e;i<n;++i)this[i]=t;else{var o=sh(t)?t:JF(new _t(t,r).toString()),s=o.length;for(i=0;i<n-e;++i)this[i+e]=o[i%s]}return this};var ZWe=/[^+\/0-9A-Za-z-_]/g;function QWe(t){return t<16?"0"+t.toString(16):t.toString(16)}function JF(t,e){var n;e=e||1/0;for(var r=t.length,a=null,i=[],o=0;o<r;++o){if((n=t.charCodeAt(o))>55295&&n<57344){if(!a){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(e-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(e-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function J4e(t){return function(e){var n,r,a,i,o,s;Xj||Y4e();var l=e.length;if(l%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=e[l-2]==="="?2:e[l-1]==="="?1:0,s=new OWe(3*l/4-o),a=o>0?l-4:l;var c=0;for(n=0,r=0;n<a;n+=4,r+=3)i=tu[e.charCodeAt(n)]<<18|tu[e.charCodeAt(n+1)]<<12|tu[e.charCodeAt(n+2)]<<6|tu[e.charCodeAt(n+3)],s[c++]=i>>16&255,s[c++]=i>>8&255,s[c++]=255&i;return o===2?(i=tu[e.charCodeAt(n)]<<2|tu[e.charCodeAt(n+1)]>>4,s[c++]=255&i):o===1&&(i=tu[e.charCodeAt(n)]<<10|tu[e.charCodeAt(n+1)]<<4|tu[e.charCodeAt(n+2)]>>2,s[c++]=i>>8&255,s[c++]=255&i),s}(function(e){if((e=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}(e).replace(ZWe,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(t))}function DD(t,e,n,r){for(var a=0;a<r&&!(a+n>=e.length||a>=t.length);++a)e[a+n]=t[a];return a}function g8(t){return t!=null&&(!!t._isBuffer||w0e(t)||function(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&w0e(e.slice(0,0))}(t))}function w0e(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}var KWe=Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:NWe,Buffer:_t,SlowBuffer:function(t){return+t!=t&&(t=0),_t.alloc(+t)},isBuffer:g8}),Ti={};function j4e(){throw new Error("setTimeout has not been defined")}function q4e(){throw new Error("clearTimeout has not been defined")}var $v=j4e,zv=q4e;function e3e(t){if($v===setTimeout)return setTimeout(t,0);if(($v===j4e||!$v)&&setTimeout)return $v=setTimeout,setTimeout(t,0);try{return $v(t,0)}catch{try{return $v.call(null,t,0)}catch{return $v.call(this,t,0)}}}typeof rS.setTimeout=="function"&&($v=setTimeout),typeof rS.clearTimeout=="function"&&(zv=clearTimeout);var C2,l0=[],Wx=!1,IE=-1;function HWe(){Wx&&C2&&(Wx=!1,C2.length?l0=C2.concat(l0):IE=-1,l0.length&&t3e())}function t3e(){if(!Wx){var t=e3e(HWe);Wx=!0;for(var e=l0.length;e;){for(C2=l0,l0=[];++IE<e;)C2&&C2[IE].run();IE=-1,e=l0.length}C2=null,Wx=!1,function(n){if(zv===clearTimeout)return clearTimeout(n);if((zv===q4e||!zv)&&clearTimeout)return zv=clearTimeout,clearTimeout(n);try{zv(n)}catch{try{return zv.call(null,n)}catch{return zv.call(this,n)}}}(t)}}function uo(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l0.push(new n3e(t,e)),l0.length!==1||Wx||e3e(t3e)}function n3e(t,e){this.fun=t,this.array=e}n3e.prototype.run=function(){this.fun.apply(null,this.array)};var c5=rS.performance||{};c5.now||c5.mozNow||c5.msNow||c5.oNow||c5.webkitNow;var G2={env:{}},aQ={exports:{}};function Jv(){}function gr(){gr.init.call(this)}function r3e(t){return t._maxListeners===void 0?gr.defaultMaxListeners:t._maxListeners}function GWe(t,e,n){if(e)t.call(n);else for(var r=t.length,a=m8(t,r),i=0;i<r;++i)a[i].call(n)}function $We(t,e,n,r){if(e)t.call(n,r);else for(var a=t.length,i=m8(t,a),o=0;o<a;++o)i[o].call(n,r)}function zWe(t,e,n,r,a){if(e)t.call(n,r,a);else for(var i=t.length,o=m8(t,i),s=0;s<i;++s)o[s].call(n,r,a)}function JWe(t,e,n,r,a,i){if(e)t.call(n,r,a,i);else for(var o=t.length,s=m8(t,o),l=0;l<o;++l)s[l].call(n,r,a,i)}function jWe(t,e,n,r){if(e)t.apply(n,r);else for(var a=t.length,i=m8(t,a),o=0;o<a;++o)i[o].apply(n,r)}function L0e(t,e,n,r){var a,i,o,s;if(typeof n!="function")throw new TypeError('"listener" argument must be a function');if((i=t._events)?(i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),o=i[e]):(i=t._events=new Jv,t._eventsCount=0),o){if(typeof o=="function"?o=i[e]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),!o.warned&&(a=r3e(t))&&a>0&&o.length>a){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=o.length,s=l,typeof console.warn=="function"?console.warn(s):console.log(s)}}else o=i[e]=n,++t._eventsCount;return t}function T0e(t,e,n){var r=!1;function a(){t.removeListener(e,a),r||(r=!0,n.apply(t,arguments))}return a.listener=n,a}function O0e(t){var e=this._events;if(e){var n=e[t];if(typeof n=="function")return 1;if(n)return n.length}return 0}function m8(t,e){for(var n=new Array(e);e--;)n[e]=t[e];return n}Jv.prototype=Object.create(null),gr.EventEmitter=gr,gr.usingDomains=!1,gr.prototype.domain=void 0,gr.prototype._events=void 0,gr.prototype._maxListeners=void 0,gr.defaultMaxListeners=10,gr.init=function(){this.domain=null,gr.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Jv,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},gr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},gr.prototype.getMaxListeners=function(){return r3e(this)},gr.prototype.emit=function(t){var e,n,r,a,i,o,s,l=t==="error";if(o=this._events)l=l&&o.error==null;else if(!l)return!1;if(s=this.domain,l){if(e=arguments[1],!s){if(e instanceof Error)throw e;var c=new Error('Uncaught, unspecified "error" event. ('+e+")");throw c.context=e,c}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=s,e.domainThrown=!1,s.emit("error",e),!1}if(!(n=o[t]))return!1;var u=typeof n=="function";switch(r=arguments.length){case 1:GWe(n,u,this);break;case 2:$We(n,u,this,arguments[1]);break;case 3:zWe(n,u,this,arguments[1],arguments[2]);break;case 4:JWe(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(a=new Array(r-1),i=1;i<r;i++)a[i-1]=arguments[i];jWe(n,u,this,a)}return!0},gr.prototype.addListener=function(t,e){return L0e(this,t,e,!1)},gr.prototype.on=gr.prototype.addListener,gr.prototype.prependListener=function(t,e){return L0e(this,t,e,!0)},gr.prototype.once=function(t,e){if(typeof e!="function")throw new TypeError('"listener" argument must be a function');return this.on(t,T0e(this,t,e)),this},gr.prototype.prependOnceListener=function(t,e){if(typeof e!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(t,T0e(this,t,e)),this},gr.prototype.removeListener=function(t,e){var n,r,a,i,o;if(typeof e!="function")throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[t]))return this;if(n===e||n.listener&&n.listener===e)--this._eventsCount==0?this._events=new Jv:(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if(typeof n!="function"){for(a=-1,i=n.length;i-- >0;)if(n[i]===e||n[i].listener&&n[i].listener===e){o=n[i].listener,a=i;break}if(a<0)return this;if(n.length===1){if(n[0]=void 0,--this._eventsCount==0)return this._events=new Jv,this;delete r[t]}else(function(s,l){for(var c=l,u=c+1,f=s.length;u<f;c+=1,u+=1)s[c]=s[u];s.pop()})(n,a);r.removeListener&&this.emit("removeListener",t,o||e)}return this},gr.prototype.removeAllListeners=function(t){var e,n;if(!(n=this._events))return this;if(!n.removeListener)return arguments.length===0?(this._events=new Jv,this._eventsCount=0):n[t]&&(--this._eventsCount==0?this._events=new Jv:delete n[t]),this;if(arguments.length===0){for(var r,a=Object.keys(n),i=0;i<a.length;++i)(r=a[i])!=="removeListener"&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new Jv,this._eventsCount=0,this}if(typeof(e=n[t])=="function")this.removeListener(t,e);else if(e)do this.removeListener(t,e[e.length-1]);while(e[0]);return this},gr.prototype.listeners=function(t){var e,n,r=this._events;return n=r&&(e=r[t])?typeof e=="function"?[e.listener||e]:function(a){for(var i=new Array(a.length),o=0;o<i.length;++o)i[o]=a[o].listener||a[o];return i}(e):[],n},gr.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):O0e.call(t,e)},gr.prototype.listenerCount=O0e,gr.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var qWe=Object.freeze({__proto__:null,default:gr,EventEmitter:gr}),O1=typeof Object.create=="function"?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t},eYe=/%[sdj%]/g;function VD(t){if(!Mw(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(Ah(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,a=r.length,i=String(t).replace(eYe,function(s){if(s==="%%")return"%";if(n>=a)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}default:return s}}),o=r[n];n<a;o=r[++n])y8(o)||!xy(o)?i+=" "+o:i+=" "+Ah(o);return i}function UD(t,e){if(ph(rS.process))return function(){return UD(t,e).apply(this,arguments)};if(G2.noDeprecation===!0)return t;var n=!1;return function(){if(!n){if(G2.throwDeprecation)throw new Error(e);G2.traceDeprecation?console.trace(e):console.error(e),n=!0}return t.apply(this,arguments)}}var iQ,l9={};function Vj(t){return ph(iQ)&&(iQ=G2.env.NODE_DEBUG||""),t=t.toUpperCase(),!l9[t]&&(new RegExp("\\b"+t+"\\b","i").test(iQ)?l9[t]=function(){var e=VD.apply(null,arguments);console.error("%s %d: %s",t,0,e)}:l9[t]=function(){}),l9[t]}function Ah(t,e){var n={seen:[],stylize:nYe};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),WD(e)?n.showHidden=e:e&&Bj(n,e),ph(n.showHidden)&&(n.showHidden=!1),ph(n.depth)&&(n.depth=2),ph(n.colors)&&(n.colors=!1),ph(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=tYe),jF(n,t,n.depth)}function tYe(t,e){var n=Ah.styles[e];return n?"\x1B["+Ah.colors[n][0]+"m"+t+"\x1B["+Ah.colors[n][1]+"m":t}function nYe(t,e){return t}function jF(t,e,n){if(t.customInspect&&e&&k_(e.inspect)&&e.inspect!==Ah&&(!e.constructor||e.constructor.prototype!==e)){var r=e.inspect(n,t);return Mw(r)||(r=jF(t,r,n)),r}var a=function(d,h){if(ph(h))return d.stylize("undefined","undefined");if(Mw(h)){var p="'"+JSON.stringify(h).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return d.stylize(p,"string")}if(Wj(h))return d.stylize(""+h,"number");if(WD(h))return d.stylize(""+h,"boolean");if(y8(h))return d.stylize("null","null")}(t,e);if(a)return a;var i=Object.keys(e),o=function(d){var h={};return d.forEach(function(p,v){h[p]=!0}),h}(i);if(t.showHidden&&(i=Object.getOwnPropertyNames(e)),I_(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return oQ(e);if(i.length===0){if(k_(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(N_(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(qF(e))return t.stylize(Date.prototype.toString.call(e),"date");if(I_(e))return oQ(e)}var l,c="",u=!1,f=["{","}"];return Uj(e)&&(u=!0,f=["[","]"]),k_(e)&&(c=" [Function"+(e.name?": "+e.name:"")+"]"),N_(e)&&(c=" "+RegExp.prototype.toString.call(e)),qF(e)&&(c=" "+Date.prototype.toUTCString.call(e)),I_(e)&&(c=" "+oQ(e)),i.length!==0||u&&e.length!=0?n<0?N_(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),l=u?function(d,h,p,v,g){for(var y=[],m=0,R=h.length;m<R;++m)c3e(h,String(m))?y.push(sQ(d,h,p,v,String(m),!0)):y.push("");return g.forEach(function(A){A.match(/^\d+$/)||y.push(sQ(d,h,p,v,A,!0))}),y}(t,e,n,o,i):i.map(function(d){return sQ(t,e,n,o,d,u)}),t.seen.pop(),function(d,h,p){return d.reduce(function(v,g){return g.indexOf(`-`),v+g.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?p[0]+(h===""?"":h+`- `)+" "+d.join(`,- `)+" "+p[1]:p[0]+h+" "+d.join(", ")+" "+p[1]}(l,c,f)):f[0]+c+f[1]}function oQ(t){return"["+Error.prototype.toString.call(t)+"]"}function sQ(t,e,n,r,a,i){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,a)||{value:e[a]}).get?s=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),c3e(r,a)||(o="["+a+"]"),s||(t.seen.indexOf(l.value)<0?(s=y8(n)?jF(t,l.value,null):jF(t,l.value,n-1)).indexOf(`-`)>-1&&(s=i?s.split(`-`).map(function(c){return" "+c}).join(`-`).substr(2):`-`+s.split(`-`).map(function(c){return" "+c}).join(`-`)):s=t.stylize("[Circular]","special")),ph(o)){if(i&&a.match(/^\d+$/))return s;(o=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function Uj(t){return Array.isArray(t)}function WD(t){return typeof t=="boolean"}function y8(t){return t===null}function a3e(t){return t==null}function Wj(t){return typeof t=="number"}function Mw(t){return typeof t=="string"}function i3e(t){return typeof t=="symbol"}function ph(t){return t===void 0}function N_(t){return xy(t)&&Yj(t)==="[object RegExp]"}function xy(t){return typeof t=="object"&&t!==null}function qF(t){return xy(t)&&Yj(t)==="[object Date]"}function I_(t){return xy(t)&&(Yj(t)==="[object Error]"||t instanceof Error)}function k_(t){return typeof t=="function"}function o3e(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||t===void 0}function s3e(t){return g8(t)}function Yj(t){return Object.prototype.toString.call(t)}function lQ(t){return t<10?"0"+t.toString(10):t.toString(10)}Ah.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Ah.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var rYe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function aYe(){var t=new Date,e=[lQ(t.getHours()),lQ(t.getMinutes()),lQ(t.getSeconds())].join(":");return[t.getDate(),rYe[t.getMonth()],e].join(" ")}function l3e(){console.log("%s - %s",aYe(),VD.apply(null,arguments))}function Bj(t,e){if(!e||!xy(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}function c3e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var iYe={inherits:O1,_extend:Bj,log:l3e,isBuffer:s3e,isPrimitive:o3e,isFunction:k_,isError:I_,isDate:qF,isObject:xy,isRegExp:N_,isUndefined:ph,isSymbol:i3e,isString:Mw,isNumber:Wj,isNullOrUndefined:a3e,isNull:y8,isBoolean:WD,isArray:Uj,inspect:Ah,deprecate:UD,format:VD,debuglog:Vj},oYe=Object.freeze({__proto__:null,format:VD,deprecate:UD,debuglog:Vj,inspect:Ah,isArray:Uj,isBoolean:WD,isNull:y8,isNullOrUndefined:a3e,isNumber:Wj,isString:Mw,isSymbol:i3e,isUndefined:ph,isRegExp:N_,isObject:xy,isDate:qF,isError:I_,isFunction:k_,isPrimitive:o3e,isBuffer:s3e,log:l3e,inherits:O1,_extend:Bj,default:iYe});function A2(){this.head=null,this.tail=null,this.length=0}A2.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},A2.prototype.unshift=function(t){var e={data:t,next:this.head};this.length===0&&(this.tail=e),this.head=e,++this.length},A2.prototype.shift=function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},A2.prototype.clear=function(){this.head=this.tail=null,this.length=0},A2.prototype.join=function(t){if(this.length===0)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},A2.prototype.concat=function(t){if(this.length===0)return _t.alloc(0);if(this.length===1)return this.head.data;for(var e=_t.allocUnsafe(t>>>0),n=this.head,r=0;n;)n.data.copy(e,r),r+=n.data.length,n=n.next;return e};var sYe=_t.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function E_(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!sYe(e))throw new Error("Unknown encoding: "+e)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=cYe;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=uYe;break;default:return void(this.write=lYe)}this.charBuffer=new _t(6),this.charReceived=0,this.charLength=0}function lYe(t){return t.toString(this.encoding)}function cYe(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function uYe(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}E_.prototype.write=function(t){for(var e="";this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(t=t.slice(n,t.length),!((a=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&a<=56319)){if(this.charReceived=this.charLength=0,t.length===0)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var r=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,r),r-=this.charReceived);var a;if(r=(e+=t.toString(this.encoding,0,r)).length-1,(a=e.charCodeAt(r))>=55296&&a<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),t.copy(this.charBuffer,0,0,i),e.substring(0,r)}return e},E_.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var n=t[t.length-e];if(e==1&&n>>5==6){this.charLength=2;break}if(e<=2&&n>>4==14){this.charLength=3;break}if(e<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=e},E_.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var n=this.charReceived,r=this.charBuffer,a=this.encoding;e+=r.slice(0,n).toString(a)}return e},Ba.ReadableState=u3e;var Jr=Vj("stream");function u3e(t,e){t=t||{},this.objectMode=!!t.objectMode,e instanceof gc&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||n===0?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new A2,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(this.decoder=new E_(t.encoding),this.encoding=t.encoding)}function Ba(t){if(!(this instanceof Ba))return new Ba(t);this._readableState=new u3e(t,this),this.readable=!0,t&&typeof t.read=="function"&&(this._read=t.read),gr.call(this)}function P0e(t,e,n,r,a){var i=function(c,u){var f=null;return g8(u)||typeof u=="string"||u==null||c.objectMode||(f=new TypeError("Invalid non-string/buffer chunk")),f}(e,n);if(i)t.emit("error",i);else if(n===null)e.reading=!1,function(c,u){if(!u.ended){if(u.decoder){var f=u.decoder.end();f&&f.length&&(u.buffer.push(f),u.length+=u.objectMode?1:f.length)}u.ended=!0,eX(c)}}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!a){var o=new Error("stream.push() after EOF");t.emit("error",o)}else if(e.endEmitted&&a){var s=new Error("stream.unshift() after end event");t.emit("error",s)}else{var l;!e.decoder||a||r||(n=e.decoder.write(n),l=!e.objectMode&&n.length===0),a||(e.reading=!1),l||(e.flowing&&e.length===0&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,a?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&eX(t))),function(c,u){u.readingMore||(u.readingMore=!0,uo(fYe,c,u))}(t,e)}else a||(e.reading=!1);return function(c){return!c.ended&&(c.needReadable||c.length<c.highWaterMark||c.length===0)}(e)}O1(Ba,gr),Ba.prototype.push=function(t,e){var n=this._readableState;return n.objectMode||typeof t!="string"||(e=e||n.defaultEncoding)!==n.encoding&&(t=_t.from(t,e),e=""),P0e(this,n,t,e,!1)},Ba.prototype.unshift=function(t){return P0e(this,this._readableState,t,"",!0)},Ba.prototype.isPaused=function(){return this._readableState.flowing===!1},Ba.prototype.setEncoding=function(t){return this._readableState.decoder=new E_(t),this._readableState.encoding=t,this};function C0e(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(n){return n>=8388608?n=8388608:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function eX(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Jr("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?uo(N0e,t):N0e(t))}function N0e(t){Jr("emit readable"),t.emit("readable"),Zj(t)}function fYe(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Jr("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function dYe(t){Jr("readable nexttick read 0"),t.read(0)}function hYe(t,e){e.reading||(Jr("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Zj(t),e.flowing&&!e.reading&&t.read(0)}function Zj(t){var e=t._readableState;for(Jr("flow",e.flowing);e.flowing&&t.read()!==null;);}function I0e(t,e){return e.length===0?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):e.buffer.length===1?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(r,a,i){var o;return r<a.head.data.length?(o=a.head.data.slice(0,r),a.head.data=a.head.data.slice(r)):o=r===a.head.data.length?a.shift():i?function(s,l){var c=l.head,u=1,f=c.data;for(s-=f.length;c=c.next;){var d=c.data,h=s>d.length?d.length:s;if(h===d.length?f+=d:f+=d.slice(0,s),(s-=h)===0){h===d.length?(++u,c.next?l.head=c.next:l.head=l.tail=null):(l.head=c,c.data=d.slice(h));break}++u}return l.length-=u,f}(r,a):function(s,l){var c=_t.allocUnsafe(s),u=l.head,f=1;for(u.data.copy(c),s-=u.data.length;u=u.next;){var d=u.data,h=s>d.length?d.length:s;if(d.copy(c,c.length-s,0,h),(s-=h)===0){h===d.length?(++f,u.next?l.head=u.next:l.head=l.tail=null):(l.head=u,u.data=d.slice(h));break}++f}return l.length-=f,c}(r,a),o}(t,e.buffer,e.decoder),n);var n}function cQ(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,uo(pYe,e,t))}function pYe(t,e){t.endEmitted||t.length!==0||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function k0e(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function vYe(){}function gYe(t,e,n){this.chunk=t,this.encoding=e,this.callback=n,this.next=null}function XG(t,e){Object.defineProperty(this,"buffer",{get:UD(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),t=t||{},this.objectMode=!!t.objectMode,e instanceof gc&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||n===0?n:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var a=t.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){(function(o,s){var l=o._writableState,c=l.sync,u=l.writecb;if(function(d){d.writing=!1,d.writecb=null,d.length-=d.writelen,d.writelen=0}(l),s)(function(d,h,p,v,g){--h.pendingcb,p?uo(g,v):g(v),d._writableState.errorEmitted=!0,d.emit("error",v)})(o,l,c,s,u);else{var f=d3e(l);f||l.corked||l.bufferProcessing||!l.bufferedRequest||f3e(o,l),c?uo(E0e,o,l,f,u):E0e(o,l,f,u)}})(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new p3e(this)}function Lo(t){if(!(this instanceof Lo||this instanceof gc))return new Lo(t);this._writableState=new XG(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev)),gr.call(this)}function DG(t,e,n,r,a,i,o){e.writelen=r,e.writecb=o,e.writing=!0,e.sync=!0,n?t._writev(a,e.onwrite):t._write(a,i,e.onwrite),e.sync=!1}function E0e(t,e,n,r){n||function(a,i){i.length===0&&i.needDrain&&(i.needDrain=!1,a.emit("drain"))}(t,e),e.pendingcb--,r(),h3e(t,e)}function f3e(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,a=new Array(r),i=e.corkedRequestsFree;i.entry=n;for(var o=0;n;)a[o]=n,n=n.next,o+=1;DG(t,e,!0,e.length,a,"",i.finish),e.pendingcb++,e.lastBufferedRequest=null,i.next?(e.corkedRequestsFree=i.next,i.next=null):e.corkedRequestsFree=new p3e(e)}else{for(;n;){var s=n.chunk,l=n.encoding,c=n.callback;if(DG(t,e,!1,e.objectMode?1:s.length,s,l,c),n=n.next,e.writing)break}n===null&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=n,e.bufferProcessing=!1}function d3e(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function F0e(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function h3e(t,e){var n=d3e(e);return n&&(e.pendingcb===0?(F0e(t,e),e.finished=!0,t.emit("finish")):F0e(t,e)),n}function p3e(t){var e=this;this.next=null,this.entry=null,this.finish=function(n){var r=e.entry;for(e.entry=null;r;){var a=r.callback;t.pendingcb--,a(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}Ba.prototype.read=function(t){Jr("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Jr("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?cQ(this):eX(this),null;if((t=C0e(t,e))===0&&e.ended)return e.length===0&&cQ(this),null;var r,a=e.needReadable;return Jr("need readable",a),(e.length===0||e.length-t<e.highWaterMark)&&Jr("length less than watermark",a=!0),e.ended||e.reading?Jr("reading or ended",a=!1):a&&(Jr("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=C0e(n,e))),(r=t>0?I0e(t,e):null)===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&cQ(this)),r!==null&&this.emit("data",r),r},Ba.prototype._read=function(t){this.emit("error",new Error("not implemented"))},Ba.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,Jr("pipe count=%d opts=%j",r.pipesCount,e);var a=!e||e.end!==!1?o:c;function i(g){Jr("onunpipe"),g===n&&c()}function o(){Jr("onend"),t.end()}r.endEmitted?uo(a):n.once("end",a),t.on("unpipe",i);var s=function(g){return function(){var y=g._readableState;Jr("pipeOnDrain",y.awaitDrain),y.awaitDrain&&y.awaitDrain--,y.awaitDrain===0&&g.listeners("data").length&&(y.flowing=!0,Zj(g))}}(n);t.on("drain",s);var l=!1;function c(){Jr("cleanup"),t.removeListener("close",h),t.removeListener("finish",p),t.removeListener("drain",s),t.removeListener("error",d),t.removeListener("unpipe",i),n.removeListener("end",o),n.removeListener("end",c),n.removeListener("data",f),l=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||s()}var u=!1;function f(g){Jr("ondata"),u=!1,t.write(g)!==!1||u||((r.pipesCount===1&&r.pipes===t||r.pipesCount>1&&k0e(r.pipes,t)!==-1)&&!l&&(Jr("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,u=!0),n.pause())}function d(g){var y;Jr("onerror",g),v(),t.removeListener("error",d),y="error",t.listeners(y).length===0&&t.emit("error",g)}function h(){t.removeListener("finish",p),v()}function p(){Jr("onfinish"),t.removeListener("close",h),v()}function v(){Jr("unpipe"),n.unpipe(t)}return n.on("data",f),function(g,y,m){if(typeof g.prependListener=="function")return g.prependListener(y,m);g._events&&g._events[y]?Array.isArray(g._events[y])?g._events[y].unshift(m):g._events[y]=[m,g._events[y]]:g.on(y,m)}(t,"error",d),t.once("close",h),t.once("finish",p),t.emit("pipe",n),r.flowing||(Jr("pipe resume"),n.resume()),t},Ba.prototype.unpipe=function(t){var e=this._readableState;if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this)),this;if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<r;a++)n[a].emit("unpipe",this);return this}var i=k0e(e.pipes,t);return i===-1||(e.pipes.splice(i,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},Ba.prototype.on=function(t,e){var n=gr.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&eX(this):uo(dYe,this))}return n},Ba.prototype.addListener=Ba.prototype.on,Ba.prototype.resume=function(){var t=this._readableState;return t.flowing||(Jr("resume"),t.flowing=!0,function(e,n){n.resumeScheduled||(n.resumeScheduled=!0,uo(hYe,e,n))}(this,t)),this},Ba.prototype.pause=function(){return Jr("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Jr("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Ba.prototype.wrap=function(t){var e=this._readableState,n=!1,r=this;for(var a in t.on("end",function(){if(Jr("wrapped end"),e.decoder&&!e.ended){var i=e.decoder.end();i&&i.length&&r.push(i)}r.push(null)}),t.on("data",function(i){Jr("wrapped data"),e.decoder&&(i=e.decoder.write(i)),e.objectMode&&i==null||(e.objectMode||i&&i.length)&&(r.push(i)||(n=!0,t.pause()))}),t)this[a]===void 0&&typeof t[a]=="function"&&(this[a]=function(i){return function(){return t[i].apply(t,arguments)}}(a));return function(i,o){for(var s=0,l=i.length;s<l;s++)o(i[s],s)}(["error","close","destroy","pause","resume"],function(i){t.on(i,r.emit.bind(r,i))}),r._read=function(i){Jr("wrapped _read",i),n&&(n=!1,t.resume())},r},Ba._fromList=I0e,Lo.WritableState=XG,O1(Lo,gr),XG.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},Lo.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Lo.prototype.write=function(t,e,n){var r=this._writableState,a=!1;return typeof e=="function"&&(n=e,e=null),_t.isBuffer(t)?e="buffer":e||(e=r.defaultEncoding),typeof n!="function"&&(n=vYe),r.ended?function(i,o){var s=new Error("write after end");i.emit("error",s),uo(o,s)}(this,n):function(i,o,s,l){var c=!0,u=!1;return s===null?u=new TypeError("May not write null values to stream"):_t.isBuffer(s)||typeof s=="string"||s===void 0||o.objectMode||(u=new TypeError("Invalid non-string/buffer chunk")),u&&(i.emit("error",u),uo(l,u),c=!1),c}(this,r,t,n)&&(r.pendingcb++,a=function(i,o,s,l,c){s=function(h,p,v){return h.objectMode||h.decodeStrings===!1||typeof p!="string"||(p=_t.from(p,v)),p}(o,s,l),_t.isBuffer(s)&&(l="buffer");var u=o.objectMode?1:s.length;o.length+=u;var f=o.length<o.highWaterMark;if(f||(o.needDrain=!0),o.writing||o.corked){var d=o.lastBufferedRequest;o.lastBufferedRequest=new gYe(s,l,c),d?d.next=o.lastBufferedRequest:o.bufferedRequest=o.lastBufferedRequest,o.bufferedRequestCount+=1}else DG(i,o,!1,u,s,l,c);return f}(this,r,t,e,n)),a},Lo.prototype.cork=function(){this._writableState.corked++},Lo.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||f3e(this,t))},Lo.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Lo.prototype._write=function(t,e,n){n(new Error("not implemented"))},Lo.prototype._writev=null,Lo.prototype.end=function(t,e,n){var r=this._writableState;typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null),t!=null&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(a,i,o){i.ending=!0,h3e(a,i),o&&(i.finished?uo(o):a.once("finish",o)),i.ended=!0,a.writable=!1}(this,r,n)},O1(gc,Ba);for(var X0e=Object.keys(Lo.prototype),uQ=0;uQ<X0e.length;uQ++){var fQ=X0e[uQ];gc.prototype[fQ]||(gc.prototype[fQ]=Lo.prototype[fQ])}function gc(t){if(!(this instanceof gc))return new gc(t);Ba.call(this,t),Lo.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",mYe)}function mYe(){this.allowHalfOpen||this._writableState.ended||uo(yYe,this)}function yYe(t){t.end()}function AYe(t){this.afterTransform=function(e,n){return function(r,a,i){var o=r._transformState;o.transforming=!1;var s=o.writecb;if(!s)return r.emit("error",new Error("no writecb in Transform class"));o.writechunk=null,o.writecb=null,i!=null&&r.push(i),s(a);var l=r._readableState;l.reading=!1,(l.needReadable||l.length<l.highWaterMark)&&r._read(l.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Sf(t){if(!(this instanceof Sf))return new Sf(t);gc.call(this,t),this._transformState=new AYe(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.once("prefinish",function(){typeof this._flush=="function"?this._flush(function(n){D0e(e,n)}):D0e(e)})}function D0e(t,e){if(e)return t.emit("error",e);var n=t._writableState,r=t._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}function Yx(t){if(!(this instanceof Yx))return new Yx(t);Sf.call(this,t)}function yf(){gr.call(this)}O1(Sf,gc),Sf.prototype.push=function(t,e){return this._transformState.needTransform=!1,gc.prototype.push.call(this,t,e)},Sf.prototype._transform=function(t,e,n){throw new Error("Not implemented")},Sf.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var a=this._readableState;(r.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},Sf.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},O1(Yx,Sf),Yx.prototype._transform=function(t,e,n){n(null,t)},O1(yf,gr),yf.Readable=Ba,yf.Writable=Lo,yf.Duplex=gc,yf.Transform=Sf,yf.PassThrough=Yx,yf.Stream=yf,yf.prototype.pipe=function(t,e){var n=this;function r(u){t.writable&&t.write(u)===!1&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",r),t.on("drain",a),t._isStdio||e&&e.end===!1||(n.on("end",o),n.on("close",s));var i=!1;function o(){i||(i=!0,t.end())}function s(){i||(i=!0,typeof t.destroy=="function"&&t.destroy())}function l(u){if(c(),gr.listenerCount(this,"error")===0)throw u}function c(){n.removeListener("data",r),t.removeListener("drain",a),n.removeListener("end",o),n.removeListener("close",s),n.removeListener("error",l),t.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),t.removeListener("close",c)}return n.on("error",l),t.on("error",l),n.on("end",c),n.on("close",c),t.on("close",c),t.emit("pipe",n),t};var V0e,U0e,W0e,v3e=XD(Object.freeze({__proto__:null,default:yf,Readable:Ba,Writable:Lo,Duplex:gc,Transform:Sf,PassThrough:Yx,Stream:yf})),dQ={exports:{}};function YD(){return V0e||(V0e=1,dQ.exports={nextTick:function(t,e,n,r){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var a,i,o=arguments.length;switch(o){case 0:case 1:return uo(t);case 2:return uo(function(){t.call(null,e)});case 3:return uo(function(){t.call(null,e,n)});case 4:return uo(function(){t.call(null,e,n,r)});default:for(a=new Array(o-1),i=0;i<a.length;)a[i++]=arguments[i];return uo(function(){t.apply(null,a)})}}}),dQ.exports}var Y0e,RYe=XD(qWe),B0e={exports:{}};function g3e(){return Y0e?B0e.exports:(Y0e=1,B0e.exports=v3e)}var Z0e,hQ={exports:{}},m3e=XD(KWe);function BD(){return Z0e||(Z0e=1,function(t,e){var n=m3e,r=n.Buffer;function a(o,s){for(var l in o)s[l]=o[l]}function i(o,s,l){return r(o,s,l)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(a(n,e),e.Buffer=i),a(r,i),i.from=function(o,s,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return r(o,s,l)},i.alloc=function(o,s,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var c=r(o);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},i.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r(o)},i.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(o)}}(hQ,hQ.exports)),hQ.exports}var Q0e,bo={};function A8(){if(Q0e)return bo;function t(e){return Object.prototype.toString.call(e)}return Q0e=1,bo.isArray=function(e){return Array.isArray?Array.isArray(e):t(e)==="[object Array]"},bo.isBoolean=function(e){return typeof e=="boolean"},bo.isNull=function(e){return e===null},bo.isNullOrUndefined=function(e){return e==null},bo.isNumber=function(e){return typeof e=="number"},bo.isString=function(e){return typeof e=="string"},bo.isSymbol=function(e){return typeof e=="symbol"},bo.isUndefined=function(e){return e===void 0},bo.isRegExp=function(e){return t(e)==="[object RegExp]"},bo.isObject=function(e){return typeof e=="object"&&e!==null},bo.isDate=function(e){return t(e)==="[object Date]"},bo.isError=function(e){return t(e)==="[object Error]"||e instanceof Error},bo.isFunction=function(e){return typeof e=="function"},bo.isPrimitive=function(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||e===void 0},bo.isBuffer=m3e.Buffer.isBuffer,bo}var K0e,H0e,G0e={exports:{}},ZD=XD(oYe),pQ={exports:{}};function R8(){return H0e||(H0e=1,function(t){try{var e=ZD;if(typeof e.inherits!="function")throw"";t.exports=e.inherits}catch{t.exports=(K0e||(K0e=1,typeof Object.create=="function"?pQ.exports=function(r,a){a&&(r.super_=a,r.prototype=Object.create(a.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:pQ.exports=function(r,a){if(a){r.super_=a;var i=function(){};i.prototype=a.prototype,r.prototype=new i,r.prototype.constructor=r}}),pQ.exports)}}(G0e)),G0e.exports}var $0e,vQ,z0e,J0e,j0e,gQ,q0e,mQ,eve,tve={exports:{}};function bYe(){return $0e||($0e=1,function(t){var e=BD().Buffer,n=ZD;t.exports=function(){function r(){(function(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")})(this,r),this.head=null,this.tail=null,this.length=0}return r.prototype.push=function(a){var i={data:a,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},r.prototype.unshift=function(a){var i={data:a,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},r.prototype.shift=function(){if(this.length!==0){var a=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},r.prototype.clear=function(){this.head=this.tail=null,this.length=0},r.prototype.join=function(a){if(this.length===0)return"";for(var i=this.head,o=""+i.data;i=i.next;)o+=a+i.data;return o},r.prototype.concat=function(a){if(this.length===0)return e.alloc(0);if(this.length===1)return this.head.data;for(var i,o,s,l=e.allocUnsafe(a>>>0),c=this.head,u=0;c;)i=c.data,o=l,s=u,i.copy(o,s),u+=c.data.length,c=c.next;return l},r}(),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var r=n.inspect({length:this.length});return this.constructor.name+" "+r})}(tve)),tve.exports}function y3e(){if(z0e)return vQ;z0e=1;var t=YD();function e(n,r){n.emit("error",r)}return vQ={destroy:function(n,r){var a=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(r?r(n):!n||this._writableState&&this._writableState.errorEmitted||t.nextTick(e,this,n),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(s){!r&&s?(t.nextTick(e,a,s),a._writableState&&(a._writableState.errorEmitted=!0)):r&&r(s)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}},vQ}function A3e(){if(q0e)return gQ;q0e=1;var t=YD();function e(A){var x=this;this.next=null,this.entry=null,this.finish=function(){(function(M,S,w){var _=M.entry;for(M.entry=null;_;){var T=_.callback;S.pendingcb--,T(w),_=_.next}S.corkedRequestsFree?S.corkedRequestsFree.next=M:S.corkedRequestsFree=M})(x,A)}}gQ=h;var n,r=t.nextTick;h.WritableState=d;var a=Object.create(A8());a.inherits=R8();var i={deprecate:j0e?J0e:(j0e=1,J0e=ZD.deprecate)},o=g3e(),s=BD().Buffer,l=rc.Uint8Array||function(){},c,u=y3e();function f(){}function d(A,x){n=n||aS(),A=A||{};var M=x instanceof n;this.objectMode=!!A.objectMode,M&&(this.objectMode=this.objectMode||!!A.writableObjectMode);var S=A.highWaterMark,w=A.writableHighWaterMark,_=this.objectMode?16:16384;this.highWaterMark=S||S===0?S:M&&(w||w===0)?w:_,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var T=A.decodeStrings===!1;this.decodeStrings=!T,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(O){(function(N,P){var C=N._writableState,E=C.sync,F=C.writecb;if(function(Q){Q.writing=!1,Q.writecb=null,Q.length-=Q.writelen,Q.writelen=0}(C),P)(function(Q,K,ne,Z,$){--K.pendingcb,ne?(t.nextTick($,Z),t.nextTick(R,Q,K),Q._writableState.errorEmitted=!0,Q.emit("error",Z)):($(Z),Q._writableState.errorEmitted=!0,Q.emit("error",Z),R(Q,K))})(N,C,E,P,F);else{var Y=y(C);Y||C.corked||C.bufferProcessing||!C.bufferedRequest||g(N,C),E?r(v,N,C,Y,F):v(N,C,Y,F)}})(x,O)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function h(A){if(n=n||aS(),!(c.call(h,this)||this instanceof n))return new h(A);this._writableState=new d(A,this),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),o.call(this)}function p(A,x,M,S,w,_,T){x.writelen=S,x.writecb=T,x.writing=!0,x.sync=!0,M?A._writev(w,x.onwrite):A._write(w,_,x.onwrite),x.sync=!1}function v(A,x,M,S){M||function(w,_){_.length===0&&_.needDrain&&(_.needDrain=!1,w.emit("drain"))}(A,x),x.pendingcb--,S(),R(A,x)}function g(A,x){x.bufferProcessing=!0;var M=x.bufferedRequest;if(A._writev&&M&&M.next){var S=x.bufferedRequestCount,w=new Array(S),_=x.corkedRequestsFree;_.entry=M;for(var T=0,O=!0;M;)w[T]=M,M.isBuf||(O=!1),M=M.next,T+=1;w.allBuffers=O,p(A,x,!0,x.length,w,"",_.finish),x.pendingcb++,x.lastBufferedRequest=null,_.next?(x.corkedRequestsFree=_.next,_.next=null):x.corkedRequestsFree=new e(x),x.bufferedRequestCount=0}else{for(;M;){var N=M.chunk,P=M.encoding,C=M.callback;if(p(A,x,!1,x.objectMode?1:N.length,N,P,C),M=M.next,x.bufferedRequestCount--,x.writing)break}M===null&&(x.lastBufferedRequest=null)}x.bufferedRequest=M,x.bufferProcessing=!1}function y(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function m(A,x){A._final(function(M){x.pendingcb--,M&&A.emit("error",M),x.prefinished=!0,A.emit("prefinish"),R(A,x)})}function R(A,x){var M=y(x);return M&&(function(S,w){w.prefinished||w.finalCalled||(typeof S._final=="function"?(w.pendingcb++,w.finalCalled=!0,t.nextTick(m,S,w)):(w.prefinished=!0,S.emit("prefinish")))}(A,x),x.pendingcb===0&&(x.finished=!0,A.emit("finish"))),M}return a.inherits(h,o),d.prototype.getBuffer=function(){for(var A=this.bufferedRequest,x=[];A;)x.push(A),A=A.next;return x},function(){try{Object.defineProperty(d.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(h,Symbol.hasInstance,{value:function(A){return!!c.call(this,A)||this===h&&A&&A._writableState instanceof d}})):c=function(A){return A instanceof this},h.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},h.prototype.write=function(A,x,M){var S,w=this._writableState,_=!1,T=!w.objectMode&&(S=A,s.isBuffer(S)||S instanceof l);return T&&!s.isBuffer(A)&&(A=function(O){return s.from(O)}(A)),typeof x=="function"&&(M=x,x=null),T?x="buffer":x||(x=w.defaultEncoding),typeof M!="function"&&(M=f),w.ended?function(O,N){var P=new Error("write after end");O.emit("error",P),t.nextTick(N,P)}(this,M):(T||function(O,N,P,C){var E=!0,F=!1;return P===null?F=new TypeError("May not write null values to stream"):typeof P=="string"||P===void 0||N.objectMode||(F=new TypeError("Invalid non-string/buffer chunk")),F&&(O.emit("error",F),t.nextTick(C,F),E=!1),E}(this,w,A,M))&&(w.pendingcb++,_=function(O,N,P,C,E,F){if(!P){var Y=function(Z,$,G){return Z.objectMode||Z.decodeStrings===!1||typeof $!="string"||($=s.from($,G)),$}(N,C,E);C!==Y&&(P=!0,E="buffer",C=Y)}var Q=N.objectMode?1:C.length;N.length+=Q;var K=N.length<N.highWaterMark;if(K||(N.needDrain=!0),N.writing||N.corked){var ne=N.lastBufferedRequest;N.lastBufferedRequest={chunk:C,encoding:E,isBuf:P,callback:F,next:null},ne?ne.next=N.lastBufferedRequest:N.bufferedRequest=N.lastBufferedRequest,N.bufferedRequestCount+=1}else p(O,N,!1,Q,C,E,F);return K}(this,w,T,A,x,M)),_},h.prototype.cork=function(){this._writableState.corked++},h.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,A.writing||A.corked||A.finished||A.bufferProcessing||!A.bufferedRequest||g(this,A))},h.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+A);return this._writableState.defaultEncoding=A,this},Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),h.prototype._write=function(A,x,M){M(new Error("_write() is not implemented"))},h.prototype._writev=null,h.prototype.end=function(A,x,M){var S=this._writableState;typeof A=="function"?(M=A,A=null,x=null):typeof x=="function"&&(M=x,x=null),A!=null&&this.write(A,x),S.corked&&(S.corked=1,this.uncork()),S.ending||S.finished||function(w,_,T){_.ending=!0,R(w,_),T&&(_.finished?t.nextTick(T):w.once("finish",T)),_.ended=!0,w.writable=!1}(this,S,M)},Object.defineProperty(h.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(A){this._writableState&&(this._writableState.destroyed=A)}}),h.prototype.destroy=u.destroy,h.prototype._undestroy=u.undestroy,h.prototype._destroy=function(A,x){this.end(),x(A)},gQ}function aS(){if(eve)return mQ;eve=1;var t=YD(),e=Object.keys||function(f){var d=[];for(var h in f)d.push(h);return d};mQ=l;var n=Object.create(A8());n.inherits=R8();var r=R3e(),a=A3e();n.inherits(l,r);for(var i=e(a.prototype),o=0;o<i.length;o++){var s=i[o];l.prototype[s]||(l.prototype[s]=a.prototype[s])}function l(f){if(!(this instanceof l))return new l(f);r.call(this,f),a.call(this,f),f&&f.readable===!1&&(this.readable=!1),f&&f.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,f&&f.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||t.nextTick(u,this)}function u(f){f.end()}return Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(f){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=f,this._writableState.destroyed=f)}}),l.prototype._destroy=function(f,d){this.push(null),this.end(),t.nextTick(d,f)},mQ}var nve,yQ,rve,AQ,ave,RQ,ive,ove,bQ={};function sve(){if(nve)return bQ;nve=1;var t=BD().Buffer,e=t.isEncoding||function(f){switch((f=""+f)&&f.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(f){var d;switch(this.encoding=function(h){var p=function(v){if(!v)return"utf8";for(var g;;)switch(v){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return v;default:if(g)return;v=(""+v).toLowerCase(),g=!0}}(h);if(typeof p!="string"&&(t.isEncoding===e||!e(h)))throw new Error("Unknown encoding: "+h);return p||h}(f),this.encoding){case"utf16le":this.text=i,this.end=o,d=4;break;case"utf8":this.fillLast=a,d=4;break;case"base64":this.text=s,this.end=l,d=3;break;default:return this.write=c,void(this.end=u)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(d)}function r(f){return f<=127?0:f>>5==6?2:f>>4==14?3:f>>3==30?4:f>>6==2?-1:-2}function a(f){var d=this.lastTotal-this.lastNeed,h=function(p,v,g){if((192&v[0])!=128)return p.lastNeed=0,"�";if(p.lastNeed>1&&v.length>1){if((192&v[1])!=128)return p.lastNeed=1,"�";if(p.lastNeed>2&&v.length>2&&(192&v[2])!=128)return p.lastNeed=2,"�"}}(this,f);return h!==void 0?h:this.lastNeed<=f.length?(f.copy(this.lastChar,d,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(f.copy(this.lastChar,d,0,f.length),void(this.lastNeed-=f.length))}function i(f,d){if((f.length-d)%2==0){var h=f.toString("utf16le",d);if(h){var p=h.charCodeAt(h.length-1);if(p>=55296&&p<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1],h.slice(0,-1)}return h}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=f[f.length-1],f.toString("utf16le",d,f.length-1)}function o(f){var d=f&&f.length?this.write(f):"";if(this.lastNeed){var h=this.lastTotal-this.lastNeed;return d+this.lastChar.toString("utf16le",0,h)}return d}function s(f,d){var h=(f.length-d)%3;return h===0?f.toString("base64",d):(this.lastNeed=3-h,this.lastTotal=3,h===1?this.lastChar[0]=f[f.length-1]:(this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1]),f.toString("base64",d,f.length-h))}function l(f){var d=f&&f.length?this.write(f):"";return this.lastNeed?d+this.lastChar.toString("base64",0,3-this.lastNeed):d}function c(f){return f.toString(this.encoding)}function u(f){return f&&f.length?this.write(f):""}return bQ.StringDecoder=n,n.prototype.write=function(f){if(f.length===0)return"";var d,h;if(this.lastNeed){if((d=this.fillLast(f))===void 0)return"";h=this.lastNeed,this.lastNeed=0}else h=0;return h<f.length?d?d+this.text(f,h):this.text(f,h):d||""},n.prototype.end=function(f){var d=f&&f.length?this.write(f):"";return this.lastNeed?d+"�":d},n.prototype.text=function(f,d){var h=function(v,g,y){var m=g.length-1;if(m<y)return 0;var R=r(g[m]);return R>=0?(R>0&&(v.lastNeed=R-1),R):--m<y||R===-2?0:(R=r(g[m]))>=0?(R>0&&(v.lastNeed=R-2),R):--m<y||R===-2?0:(R=r(g[m]))>=0?(R>0&&(R===2?R=0:v.lastNeed=R-3),R):0}(this,f,d);if(!this.lastNeed)return f.toString("utf8",d);this.lastTotal=h;var p=f.length-(h-this.lastNeed);return f.copy(this.lastChar,0,p),f.toString("utf8",d,p)},n.prototype.fillLast=function(f){if(this.lastNeed<=f.length)return f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,f.length),this.lastNeed-=f.length},bQ}function R3e(){if(rve)return yQ;rve=1;var t=YD();yQ=v;var e,n=function(){if(W0e)return U0e;W0e=1;var E={}.toString;return U0e=Array.isArray||function(F){return E.call(F)=="[object Array]"}}();v.ReadableState=p,RYe.EventEmitter;var r=function(E,F){return E.listeners(F).length},a=g3e(),i=BD().Buffer,o=rc.Uint8Array||function(){},s=Object.create(A8());s.inherits=R8();var l=ZD,c=void 0;c=l&&l.debuglog?l.debuglog("stream"):function(){};var u,f=bYe(),d=y3e();s.inherits(v,a);var h=["error","close","destroy","pause","resume"];function p(E,F){E=E||{};var Y=F instanceof(e=e||aS());this.objectMode=!!E.objectMode,Y&&(this.objectMode=this.objectMode||!!E.readableObjectMode);var Q=E.highWaterMark,K=E.readableHighWaterMark,ne=this.objectMode?16:16384;this.highWaterMark=Q||Q===0?Q:Y&&(K||K===0)?K:ne,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=E.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,E.encoding&&(u||(u=sve().StringDecoder),this.decoder=new u(E.encoding),this.encoding=E.encoding)}function v(E){if(e=e||aS(),!(this instanceof v))return new v(E);this._readableState=new p(E,this),this.readable=!0,E&&(typeof E.read=="function"&&(this._read=E.read),typeof E.destroy=="function"&&(this._destroy=E.destroy)),a.call(this)}function g(E,F,Y,Q,K){var ne,Z=E._readableState;return F===null?(Z.reading=!1,function($,G){if(!G.ended){if(G.decoder){var ee=G.decoder.end();ee&&ee.length&&(G.buffer.push(ee),G.length+=G.objectMode?1:ee.length)}G.ended=!0,A($)}}(E,Z)):(K||(ne=function($,G){var ee;ce=G,i.isBuffer(ce)||ce instanceof o||typeof G=="string"||G===void 0||$.objectMode||(ee=new TypeError("Invalid non-string/buffer chunk"));var ce;return ee}(Z,F)),ne?E.emit("error",ne):Z.objectMode||F&&F.length>0?(typeof F=="string"||Z.objectMode||Object.getPrototypeOf(F)===i.prototype||(F=function($){return i.from($)}(F)),Q?Z.endEmitted?E.emit("error",new Error("stream.unshift() after end event")):y(E,Z,F,!0):Z.ended?E.emit("error",new Error("stream.push() after EOF")):(Z.reading=!1,Z.decoder&&!Y?(F=Z.decoder.write(F),Z.objectMode||F.length!==0?y(E,Z,F,!1):M(E,Z)):y(E,Z,F,!1))):Q||(Z.reading=!1)),function($){return!$.ended&&($.needReadable||$.length<$.highWaterMark||$.length===0)}(Z)}function y(E,F,Y,Q){F.flowing&&F.length===0&&!F.sync?(E.emit("data",Y),E.read(0)):(F.length+=F.objectMode?1:Y.length,Q?F.buffer.unshift(Y):F.buffer.push(Y),F.needReadable&&A(E)),M(E,F)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(E){this._readableState&&(this._readableState.destroyed=E)}}),v.prototype.destroy=d.destroy,v.prototype._undestroy=d.undestroy,v.prototype._destroy=function(E,F){this.push(null),F(E)},v.prototype.push=function(E,F){var Y,Q=this._readableState;return Q.objectMode?Y=!0:typeof E=="string"&&((F=F||Q.defaultEncoding)!==Q.encoding&&(E=i.from(E,F),F=""),Y=!0),g(this,E,F,!1,Y)},v.prototype.unshift=function(E){return g(this,E,null,!0,!1)},v.prototype.isPaused=function(){return this._readableState.flowing===!1},v.prototype.setEncoding=function(E){return u||(u=sve().StringDecoder),this._readableState.decoder=new u(E),this._readableState.encoding=E,this};var m=8388608;function R(E,F){return E<=0||F.length===0&&F.ended?0:F.objectMode?1:E!=E?F.flowing&&F.length?F.buffer.head.data.length:F.length:(E>F.highWaterMark&&(F.highWaterMark=function(Y){return Y>=m?Y=m:(Y--,Y|=Y>>>1,Y|=Y>>>2,Y|=Y>>>4,Y|=Y>>>8,Y|=Y>>>16,Y++),Y}(E)),E<=F.length?E:F.ended?F.length:(F.needReadable=!0,0))}function A(E){var F=E._readableState;F.needReadable=!1,F.emittedReadable||(c("emitReadable",F.flowing),F.emittedReadable=!0,F.sync?t.nextTick(x,E):x(E))}function x(E){c("emit readable"),E.emit("readable"),T(E)}function M(E,F){F.readingMore||(F.readingMore=!0,t.nextTick(S,E,F))}function S(E,F){for(var Y=F.length;!F.reading&&!F.flowing&&!F.ended&&F.length<F.highWaterMark&&(c("maybeReadMore read 0"),E.read(0),Y!==F.length);)Y=F.length;F.readingMore=!1}function w(E){c("readable nexttick read 0"),E.read(0)}function _(E,F){F.reading||(c("resume read 0"),E.read(0)),F.resumeScheduled=!1,F.awaitDrain=0,E.emit("resume"),T(E),F.flowing&&!F.reading&&E.read(0)}function T(E){var F=E._readableState;for(c("flow",F.flowing);F.flowing&&E.read()!==null;);}function O(E,F){return F.length===0?null:(F.objectMode?Y=F.buffer.shift():!E||E>=F.length?(Y=F.decoder?F.buffer.join(""):F.buffer.length===1?F.buffer.head.data:F.buffer.concat(F.length),F.buffer.clear()):Y=function(Q,K,ne){var Z;return Q<K.head.data.length?(Z=K.head.data.slice(0,Q),K.head.data=K.head.data.slice(Q)):Z=Q===K.head.data.length?K.shift():ne?function($,G){var ee=G.head,ce=1,B=ee.data;for($-=B.length;ee=ee.next;){var xe=ee.data,_e=$>xe.length?xe.length:$;if(_e===xe.length?B+=xe:B+=xe.slice(0,$),($-=_e)===0){_e===xe.length?(++ce,ee.next?G.head=ee.next:G.head=G.tail=null):(G.head=ee,ee.data=xe.slice(_e));break}++ce}return G.length-=ce,B}(Q,K):function($,G){var ee=i.allocUnsafe($),ce=G.head,B=1;for(ce.data.copy(ee),$-=ce.data.length;ce=ce.next;){var xe=ce.data,_e=$>xe.length?xe.length:$;if(xe.copy(ee,ee.length-$,0,_e),($-=_e)===0){_e===xe.length?(++B,ce.next?G.head=ce.next:G.head=G.tail=null):(G.head=ce,ce.data=xe.slice(_e));break}++B}return G.length-=B,ee}(Q,K),Z}(E,F.buffer,F.decoder),Y);var Y}function N(E){var F=E._readableState;if(F.length>0)throw new Error('"endReadable()" called on non-empty stream');F.endEmitted||(F.ended=!0,t.nextTick(P,F,E))}function P(E,F){E.endEmitted||E.length!==0||(E.endEmitted=!0,F.readable=!1,F.emit("end"))}function C(E,F){for(var Y=0,Q=E.length;Y<Q;Y++)if(E[Y]===F)return Y;return-1}return v.prototype.read=function(E){c("read",E),E=parseInt(E,10);var F=this._readableState,Y=E;if(E!==0&&(F.emittedReadable=!1),E===0&&F.needReadable&&(F.length>=F.highWaterMark||F.ended))return c("read: emitReadable",F.length,F.ended),F.length===0&&F.ended?N(this):A(this),null;if((E=R(E,F))===0&&F.ended)return F.length===0&&N(this),null;var Q,K=F.needReadable;return c("need readable",K),(F.length===0||F.length-E<F.highWaterMark)&&c("length less than watermark",K=!0),F.ended||F.reading?c("reading or ended",K=!1):K&&(c("do read"),F.reading=!0,F.sync=!0,F.length===0&&(F.needReadable=!0),this._read(F.highWaterMark),F.sync=!1,F.reading||(E=R(Y,F))),(Q=E>0?O(E,F):null)===null?(F.needReadable=!0,E=0):F.length-=E,F.length===0&&(F.ended||(F.needReadable=!0),Y!==E&&F.ended&&N(this)),Q!==null&&this.emit("data",Q),Q},v.prototype._read=function(E){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(E,F){var Y=this,Q=this._readableState;switch(Q.pipesCount){case 0:Q.pipes=E;break;case 1:Q.pipes=[Q.pipes,E];break;default:Q.pipes.push(E)}Q.pipesCount+=1,c("pipe count=%d opts=%j",Q.pipesCount,F);var K=(!F||F.end!==!1)&&E!==G2.stdout&&E!==G2.stderr?Z:se;function ne(z,de){c("onunpipe"),z===Y&&de&&de.hasUnpiped===!1&&(de.hasUnpiped=!0,c("cleanup"),E.removeListener("close",xe),E.removeListener("finish",_e),E.removeListener("drain",$),E.removeListener("error",B),E.removeListener("unpipe",ne),Y.removeListener("end",Z),Y.removeListener("end",se),Y.removeListener("data",ce),G=!0,!Q.awaitDrain||E._writableState&&!E._writableState.needDrain||$())}function Z(){c("onend"),E.end()}Q.endEmitted?t.nextTick(K):Y.once("end",K),E.on("unpipe",ne);var $=function(z){return function(){var de=z._readableState;c("pipeOnDrain",de.awaitDrain),de.awaitDrain&&de.awaitDrain--,de.awaitDrain===0&&r(z,"data")&&(de.flowing=!0,T(z))}}(Y);E.on("drain",$);var G=!1,ee=!1;function ce(z){c("ondata"),ee=!1,E.write(z)!==!1||ee||((Q.pipesCount===1&&Q.pipes===E||Q.pipesCount>1&&C(Q.pipes,E)!==-1)&&!G&&(c("false write response, pause",Y._readableState.awaitDrain),Y._readableState.awaitDrain++,ee=!0),Y.pause())}function B(z){c("onerror",z),se(),E.removeListener("error",B),r(E,"error")===0&&E.emit("error",z)}function xe(){E.removeListener("finish",_e),se()}function _e(){c("onfinish"),E.removeListener("close",xe),se()}function se(){c("unpipe"),Y.unpipe(E)}return Y.on("data",ce),function(z,de,fe){if(typeof z.prependListener=="function")return z.prependListener(de,fe);z._events&&z._events[de]?n(z._events[de])?z._events[de].unshift(fe):z._events[de]=[fe,z._events[de]]:z.on(de,fe)}(E,"error",B),E.once("close",xe),E.once("finish",_e),E.emit("pipe",Y),Q.flowing||(c("pipe resume"),Y.resume()),E},v.prototype.unpipe=function(E){var F=this._readableState,Y={hasUnpiped:!1};if(F.pipesCount===0)return this;if(F.pipesCount===1)return E&&E!==F.pipes||(E||(E=F.pipes),F.pipes=null,F.pipesCount=0,F.flowing=!1,E&&E.emit("unpipe",this,Y)),this;if(!E){var Q=F.pipes,K=F.pipesCount;F.pipes=null,F.pipesCount=0,F.flowing=!1;for(var ne=0;ne<K;ne++)Q[ne].emit("unpipe",this,Y);return this}var Z=C(F.pipes,E);return Z===-1||(F.pipes.splice(Z,1),F.pipesCount-=1,F.pipesCount===1&&(F.pipes=F.pipes[0]),E.emit("unpipe",this,Y)),this},v.prototype.on=function(E,F){var Y=a.prototype.on.call(this,E,F);if(E==="data")this._readableState.flowing!==!1&&this.resume();else if(E==="readable"){var Q=this._readableState;Q.endEmitted||Q.readableListening||(Q.readableListening=Q.needReadable=!0,Q.emittedReadable=!1,Q.reading?Q.length&&A(this):t.nextTick(w,this))}return Y},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var E=this._readableState;return E.flowing||(c("resume"),E.flowing=!0,function(F,Y){Y.resumeScheduled||(Y.resumeScheduled=!0,t.nextTick(_,F,Y))}(this,E)),this},v.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(E){var F=this,Y=this._readableState,Q=!1;for(var K in E.on("end",function(){if(c("wrapped end"),Y.decoder&&!Y.ended){var Z=Y.decoder.end();Z&&Z.length&&F.push(Z)}F.push(null)}),E.on("data",function(Z){c("wrapped data"),Y.decoder&&(Z=Y.decoder.write(Z)),Y.objectMode&&Z==null||(Y.objectMode||Z&&Z.length)&&(F.push(Z)||(Q=!0,E.pause()))}),E)this[K]===void 0&&typeof E[K]=="function"&&(this[K]=function(Z){return function(){return E[Z].apply(E,arguments)}}(K));for(var ne=0;ne<h.length;ne++)E.on(h[ne],this.emit.bind(this,h[ne]));return this._read=function(Z){c("wrapped _read",Z),Q&&(Q=!1,E.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=O,yQ}function lve(){if(ave)return AQ;ave=1,AQ=r;var t=aS(),e=Object.create(A8());function n(o,s){var l=this._transformState;l.transforming=!1;var c=l.writecb;if(!c)return this.emit("error",new Error("write callback called multiple times"));l.writechunk=null,l.writecb=null,s!=null&&this.push(s),c(o);var u=this._readableState;u.reading=!1,(u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}function r(o){if(!(this instanceof r))return new r(o);t.call(this,o),this._transformState={afterTransform:n.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,o&&(typeof o.transform=="function"&&(this._transform=o.transform),typeof o.flush=="function"&&(this._flush=o.flush)),this.on("prefinish",a)}function a(){var o=this;typeof this._flush=="function"?this._flush(function(s,l){i(o,s,l)}):i(this,null,null)}function i(o,s,l){if(s)return o.emit("error",s);if(l!=null&&o.push(l),o._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(o._transformState.transforming)throw new Error("Calling transform done when still transforming");return o.push(null)}return e.inherits=R8(),e.inherits(r,t),r.prototype.push=function(o,s){return this._transformState.needTransform=!1,t.prototype.push.call(this,o,s)},r.prototype._transform=function(o,s,l){throw new Error("_transform() is not implemented")},r.prototype._write=function(o,s,l){var c=this._transformState;if(c.writecb=l,c.writechunk=o,c.writeencoding=s,!c.transforming){var u=this._readableState;(c.needTransform||u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}},r.prototype._read=function(o){var s=this._transformState;s.writechunk!==null&&s.writecb&&!s.transforming?(s.transforming=!0,this._transform(s.writechunk,s.writeencoding,s.afterTransform)):s.needTransform=!0},r.prototype._destroy=function(o,s){var l=this;t.prototype._destroy.call(this,o,function(c){s(c),l.emit("close")})},AQ}function b3e(){return ove||(ove=1,function(t,e){var n=v3e;G2.env.READABLE_STREAM==="disable"&&n?(t.exports=n,(e=t.exports=n.Readable).Readable=n.Readable,e.Writable=n.Writable,e.Duplex=n.Duplex,e.Transform=n.Transform,e.PassThrough=n.PassThrough,e.Stream=n):((e=t.exports=R3e()).Stream=n||e,e.Readable=e,e.Writable=A3e(),e.Duplex=aS(),e.Transform=lve(),e.PassThrough=function(){if(ive)return RQ;ive=1,RQ=i;var r=lve(),a=Object.create(A8());function i(o){if(!(this instanceof i))return new i(o);r.call(this,o)}return a.inherits=R8(),a.inherits(i,r),i.prototype._transform=function(o,s,l){l(null,o)},RQ}())}(aQ,aQ.exports)),aQ.exports}if(Ti.base64=!0,Ti.array=!0,Ti.string=!0,Ti.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",Ti.nodebuffer=!0,Ti.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")Ti.blob=!1;else{var cve=new ArrayBuffer(0);try{Ti.blob=new Blob([cve],{type:"application/zip"}).size===0}catch{try{var uve=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);uve.append(cve),Ti.blob=uve.getBlob("application/zip").size===0}catch{Ti.blob=!1}}}try{Ti.nodestream=!!b3e().Readable}catch{Ti.nodestream=!1}var fve,c9={};function x3e(){if(fve)return c9;fve=1;var t=oi(),e=Ti,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return c9.encode=function(r){for(var a,i,o,s,l,c,u,f=[],d=0,h=r.length,p=h,v=t.getTypeOf(r)!=="string";d<r.length;)p=h-d,v?(a=r[d++],i=d<h?r[d++]:0,o=d<h?r[d++]:0):(a=r.charCodeAt(d++),i=d<h?r.charCodeAt(d++):0,o=d<h?r.charCodeAt(d++):0),s=a>>2,l=(3&a)<<4|i>>4,c=p>1?(15&i)<<2|o>>6:64,u=p>2?63&o:64,f.push(n.charAt(s)+n.charAt(l)+n.charAt(c)+n.charAt(u));return f.join("")},c9.decode=function(r){var a,i,o,s,l,c,u=0,f=0,d="data:";if(r.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,p=3*(r=r.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(r.charAt(r.length-1)===n.charAt(64)&&p--,r.charAt(r.length-2)===n.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=e.uint8array?new Uint8Array(0|p):new Array(0|p);u<r.length;)a=n.indexOf(r.charAt(u++))<<2|(s=n.indexOf(r.charAt(u++)))>>4,i=(15&s)<<4|(l=n.indexOf(r.charAt(u++)))>>2,o=(3&l)<<6|(c=n.indexOf(r.charAt(u++))),h[f++]=a,l!==64&&(h[f++]=i),c!==64&&(h[f++]=o);return h},c9}var dve,hve,xQ,pve,QD={isNode:!0,newBufferFrom:function(t,e){if(_t.from&&_t.from!==Uint8Array.from)return _t.from(t,e);if(typeof t=="number")throw new Error('The "data" argument must not be a number');return new _t(t,e)},allocBuffer:function(t){if(_t.alloc)return _t.alloc(t);var e=new _t(t);return e.fill(0),e},isBuffer:function(t){return g8(t)},isStream:function(t){return t&&typeof t.on=="function"&&typeof t.pause=="function"&&typeof t.resume=="function"}},S3e=null;S3e=typeof Promise<"u"?Promise:function(){if(pve)return xQ;pve=1;var t=function(){if(hve)return dve;hve=1;var d,h,p=rc.MutationObserver||rc.WebKitMutationObserver;if(p){var v=0,g=new p(A),y=rc.document.createTextNode("");g.observe(y,{characterData:!0}),d=function(){y.data=v=++v%2}}else if(rc.setImmediate||rc.MessageChannel===void 0)d="document"in rc&&"onreadystatechange"in rc.document.createElement("script")?function(){var x=rc.document.createElement("script");x.onreadystatechange=function(){A(),x.onreadystatechange=null,x.parentNode.removeChild(x),x=null},rc.document.documentElement.appendChild(x)}:function(){setTimeout(A,0)};else{var m=new rc.MessageChannel;m.port1.onmessage=A,d=function(){m.port2.postMessage(0)}}var R=[];function A(){var x,M;h=!0;for(var S=R.length;S;){for(M=R,R=[],x=-1;++x<S;)M[x]();S=R.length}h=!1}return dve=function(x){R.push(x)!==1||h||d()}}();function e(){}var n={},r=["REJECTED"],a=["FULFILLED"],i=["PENDING"];function o(d){if(typeof d!="function")throw new TypeError("resolver must be a function");this.state=i,this.queue=[],this.outcome=void 0,d!==e&&u(this,d)}function s(d,h,p){this.promise=d,typeof h=="function"&&(this.onFulfilled=h,this.callFulfilled=this.otherCallFulfilled),typeof p=="function"&&(this.onRejected=p,this.callRejected=this.otherCallRejected)}function l(d,h,p){t(function(){var v;try{v=h(p)}catch(g){return n.reject(d,g)}v===d?n.reject(d,new TypeError("Cannot resolve promise with itself")):n.resolve(d,v)})}function c(d){var h=d&&d.then;if(d&&(typeof d=="object"||typeof d=="function")&&typeof h=="function")return function(){h.apply(d,arguments)}}function u(d,h){var p=!1;function v(m){p||(p=!0,n.reject(d,m))}function g(m){p||(p=!0,n.resolve(d,m))}var y=f(function(){h(g,v)});y.status==="error"&&v(y.value)}function f(d,h){var p={};try{p.value=d(h),p.status="success"}catch(v){p.status="error",p.value=v}return p}return xQ=o,o.prototype.finally=function(d){if(typeof d!="function")return this;var h=this.constructor;return this.then(function(p){return h.resolve(d()).then(function(){return p})},function(p){return h.resolve(d()).then(function(){throw p})})},o.prototype.catch=function(d){return this.then(null,d)},o.prototype.then=function(d,h){if(typeof d!="function"&&this.state===a||typeof h!="function"&&this.state===r)return this;var p=new this.constructor(e);return this.state!==i?l(p,this.state===a?d:h,this.outcome):this.queue.push(new s(p,d,h)),p},s.prototype.callFulfilled=function(d){n.resolve(this.promise,d)},s.prototype.otherCallFulfilled=function(d){l(this.promise,this.onFulfilled,d)},s.prototype.callRejected=function(d){n.reject(this.promise,d)},s.prototype.otherCallRejected=function(d){l(this.promise,this.onRejected,d)},n.resolve=function(d,h){var p=f(c,h);if(p.status==="error")return n.reject(d,p.value);var v=p.value;if(v)u(d,v);else{d.state=a,d.outcome=h;for(var g=-1,y=d.queue.length;++g<y;)d.queue[g].callFulfilled(h)}return d},n.reject=function(d,h){d.state=r,d.outcome=h;for(var p=-1,v=d.queue.length;++p<v;)d.queue[p].callRejected(h);return d},o.resolve=function(d){return d instanceof this?d:n.resolve(new this(e),d)},o.reject=function(d){var h=new this(e);return n.reject(h,d)},o.all=function(d){var h=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var p=d.length,v=!1;if(!p)return this.resolve([]);for(var g=new Array(p),y=0,m=-1,R=new this(e);++m<p;)A(d[m],m);return R;function A(x,M){h.resolve(x).then(function(S){g[M]=S,++y!==p||v||(v=!0,n.resolve(R,g))},function(S){v||(v=!0,n.reject(R,S))})}},o.race=function(d){var h=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var p=d.length,v=!1;if(!p)return this.resolve([]);for(var g,y=-1,m=new this(e);++y<p;)g=d[y],h.resolve(g).then(function(R){v||(v=!0,n.resolve(m,R))},function(R){v||(v=!0,n.reject(m,R))});return m},xQ}();var vve,b8={Promise:S3e};function oi(){return vve||(vve=1,function(t){var e=Ti,n=x3e(),r=QD,a=b8;function i(f){return f}function o(f,d){for(var h=0;h<f.length;++h)d[h]=255&f.charCodeAt(h);return d}t.newBlob=function(f,d){t.checkSupport("blob");try{return new Blob([f],{type:d})}catch{try{var h=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return h.append(f),h.getBlob(d)}catch{throw new Error("Bug : can't construct the Blob.")}}};var s={stringifyByChunk:function(f,d,h){var p=[],v=0,g=f.length;if(g<=h)return String.fromCharCode.apply(null,f);for(;v<g;)d==="array"||d==="nodebuffer"?p.push(String.fromCharCode.apply(null,f.slice(v,Math.min(v+h,g)))):p.push(String.fromCharCode.apply(null,f.subarray(v,Math.min(v+h,g)))),v+=h;return p.join("")},stringifyByChar:function(f){for(var d="",h=0;h<f.length;h++)d+=String.fromCharCode(f[h]);return d},applyCanBeUsed:{uint8array:function(){try{return e.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return e.nodebuffer&&String.fromCharCode.apply(null,r.allocBuffer(1)).length===1}catch{return!1}}()}};function l(f){var d=65536,h=t.getTypeOf(f),p=!0;if(h==="uint8array"?p=s.applyCanBeUsed.uint8array:h==="nodebuffer"&&(p=s.applyCanBeUsed.nodebuffer),p)for(;d>1;)try{return s.stringifyByChunk(f,h,d)}catch{d=Math.floor(d/2)}return s.stringifyByChar(f)}function c(f,d){for(var h=0;h<f.length;h++)d[h]=f[h];return d}t.applyFromCharCode=l;var u={};u.string={string:i,array:function(f){return o(f,new Array(f.length))},arraybuffer:function(f){return u.string.uint8array(f).buffer},uint8array:function(f){return o(f,new Uint8Array(f.length))},nodebuffer:function(f){return o(f,r.allocBuffer(f.length))}},u.array={string:l,array:i,arraybuffer:function(f){return new Uint8Array(f).buffer},uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return r.newBufferFrom(f)}},u.arraybuffer={string:function(f){return l(new Uint8Array(f))},array:function(f){return c(new Uint8Array(f),new Array(f.byteLength))},arraybuffer:i,uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return r.newBufferFrom(new Uint8Array(f))}},u.uint8array={string:l,array:function(f){return c(f,new Array(f.length))},arraybuffer:function(f){return f.buffer},uint8array:i,nodebuffer:function(f){return r.newBufferFrom(f)}},u.nodebuffer={string:l,array:function(f){return c(f,new Array(f.length))},arraybuffer:function(f){return u.nodebuffer.uint8array(f).buffer},uint8array:function(f){return c(f,new Uint8Array(f.length))},nodebuffer:i},t.transformTo=function(f,d){if(d||(d=""),!f)return d;t.checkSupport(f);var h=t.getTypeOf(d);return u[h][f](d)},t.resolve=function(f){for(var d=f.split("/"),h=[],p=0;p<d.length;p++){var v=d[p];v==="."||v===""&&p!==0&&p!==d.length-1||(v===".."?h.pop():h.push(v))}return h.join("/")},t.getTypeOf=function(f){return typeof f=="string"?"string":Object.prototype.toString.call(f)==="[object Array]"?"array":e.nodebuffer&&r.isBuffer(f)?"nodebuffer":e.uint8array&&f instanceof Uint8Array?"uint8array":e.arraybuffer&&f instanceof ArrayBuffer?"arraybuffer":void 0},t.checkSupport=function(f){if(!e[f.toLowerCase()])throw new Error(f+" is not supported by this platform")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(f){var d,h,p="";for(h=0;h<(f||"").length;h++)p+="\\x"+((d=f.charCodeAt(h))<16?"0":"")+d.toString(16).toUpperCase();return p},t.delay=function(f,d,h){setImmediate(function(){f.apply(h||null,d||[])})},t.inherits=function(f,d){var h=function(){};h.prototype=d.prototype,f.prototype=new h},t.extend=function(){var f,d,h={};for(f=0;f<arguments.length;f++)for(d in arguments[f])Object.prototype.hasOwnProperty.call(arguments[f],d)&&h[d]===void 0&&(h[d]=arguments[f][d]);return h},t.prepareContent=function(f,d,h,p,v){return a.Promise.resolve(d).then(function(g){return e.blob&&(g instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(g))!==-1)&&typeof FileReader<"u"?new a.Promise(function(y,m){var R=new FileReader;R.onload=function(A){y(A.target.result)},R.onerror=function(A){m(A.target.error)},R.readAsArrayBuffer(g)}):g}).then(function(g){var y,m=t.getTypeOf(g);return m?(m==="arraybuffer"?g=t.transformTo("uint8array",g):m==="string"&&(v?g=n.decode(g):h&&p!==!0&&(g=o(y=g,e.uint8array?new Uint8Array(y.length):new Array(y.length)))),g):a.Promise.reject(new Error("Can't read the data of '"+f+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}}(R0e)),R0e}function M3e(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}(function(t,e){if(!t.setImmediate){var n,r,a,i,o,s=1,l={},c=!1,u=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,{}.toString.call(t.process)==="[object process]"?n=function(p){uo(function(){h(p)})}:function(){if(t.postMessage&&!t.importScripts){var p=!0,v=t.onmessage;return t.onmessage=function(){p=!1},t.postMessage("","*"),t.onmessage=v,p}}()?(i="setImmediate$"+Math.random()+"$",o=function(p){p.source===t&&typeof p.data=="string"&&p.data.indexOf(i)===0&&h(+p.data.slice(i.length))},t.addEventListener?t.addEventListener("message",o,!1):t.attachEvent("onmessage",o),n=function(p){t.postMessage(i+p,"*")}):t.MessageChannel?((a=new MessageChannel).port1.onmessage=function(p){h(p.data)},n=function(p){a.port2.postMessage(p)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,n=function(p){var v=u.createElement("script");v.onreadystatechange=function(){h(p),v.onreadystatechange=null,r.removeChild(v),v=null},r.appendChild(v)}):n=function(p){setTimeout(h,0,p)},f.setImmediate=function(p){typeof p!="function"&&(p=new Function(""+p));for(var v=new Array(arguments.length-1),g=0;g<v.length;g++)v[g]=arguments[g+1];var y={callback:p,args:v};return l[s]=y,n(s),s++},f.clearImmediate=d}function d(p){delete l[p]}function h(p){if(c)setTimeout(h,0,p);else{var v=l[p];if(v){c=!0;try{(function(g){var y=g.callback,m=g.args;switch(m.length){case 0:y();break;case 1:y(m[0]);break;case 2:y(m[0],m[1]);break;case 3:y(m[0],m[1],m[2]);break;default:y.apply(void 0,m)}})(v)}finally{d(p),c=!1}}}}})(typeof self>"u"?rc:self),M3e.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",function(n){e.processChunk(n)}),t.on("end",function(){e.end()}),t.on("error",function(n){e.error(n)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var t=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}};var Lu=M3e;(function(t){for(var e=oi(),n=Ti,r=QD,a=Lu,i=new Array(256),o=0;o<256;o++)i[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;i[254]=i[254]=1;function s(){a.call(this,"utf-8 decode"),this.leftOver=null}function l(){a.call(this,"utf-8 encode")}t.utf8encode=function(c){return n.nodebuffer?r.newBufferFrom(c,"utf-8"):function(u){var f,d,h,p,v,g=u.length,y=0;for(p=0;p<g;p++)(64512&(d=u.charCodeAt(p)))==55296&&p+1<g&&(64512&(h=u.charCodeAt(p+1)))==56320&&(d=65536+(d-55296<<10)+(h-56320),p++),y+=d<128?1:d<2048?2:d<65536?3:4;for(f=n.uint8array?new Uint8Array(y):new Array(y),v=0,p=0;v<y;p++)(64512&(d=u.charCodeAt(p)))==55296&&p+1<g&&(64512&(h=u.charCodeAt(p+1)))==56320&&(d=65536+(d-55296<<10)+(h-56320),p++),d<128?f[v++]=d:d<2048?(f[v++]=192|d>>>6,f[v++]=128|63&d):d<65536?(f[v++]=224|d>>>12,f[v++]=128|d>>>6&63,f[v++]=128|63&d):(f[v++]=240|d>>>18,f[v++]=128|d>>>12&63,f[v++]=128|d>>>6&63,f[v++]=128|63&d);return f}(c)},t.utf8decode=function(c){return n.nodebuffer?e.transformTo("nodebuffer",c).toString("utf-8"):function(u){var f,d,h,p,v=u.length,g=new Array(2*v);for(d=0,f=0;f<v;)if((h=u[f++])<128)g[d++]=h;else if((p=i[h])>4)g[d++]=65533,f+=p-1;else{for(h&=p===2?31:p===3?15:7;p>1&&f<v;)h=h<<6|63&u[f++],p--;p>1?g[d++]=65533:h<65536?g[d++]=h:(h-=65536,g[d++]=55296|h>>10&1023,g[d++]=56320|1023&h)}return g.length!==d&&(g.subarray?g=g.subarray(0,d):g.length=d),e.applyFromCharCode(g)}(c=e.transformTo(n.uint8array?"uint8array":"array",c))},e.inherits(s,a),s.prototype.processChunk=function(c){var u=e.transformTo(n.uint8array?"uint8array":"array",c.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var f=u;(u=new Uint8Array(f.length+this.leftOver.length)).set(this.leftOver,0),u.set(f,this.leftOver.length)}else u=this.leftOver.concat(u);this.leftOver=null}var d=function(p,v){var g;for((v=v||p.length)>p.length&&(v=p.length),g=v-1;g>=0&&(192&p[g])==128;)g--;return g<0||g===0?v:g+i[p[g]]>v?g:v}(u),h=u;d!==u.length&&(n.uint8array?(h=u.subarray(0,d),this.leftOver=u.subarray(d,u.length)):(h=u.slice(0,d),this.leftOver=u.slice(d,u.length))),this.push({data:t.utf8decode(h),meta:c.meta})},s.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=s,e.inherits(l,a),l.prototype.processChunk=function(c){this.push({data:t.utf8encode(c.data),meta:c.meta})},t.Utf8EncodeWorker=l})(kS);var _3e=Lu,gve=oi();function VG(t){_3e.call(this,"ConvertWorker to "+t),this.destType=t}gve.inherits(VG,_3e),VG.prototype.processChunk=function(t){this.push({data:gve.transformTo(this.destType,t.data),meta:t.meta})};var mve,yve,xYe=VG,$2=oi(),SYe=xYe,MYe=Lu,_Ye=x3e(),wYe=b8,w3e=null;if(Ti.nodestream)try{w3e=function(){if(yve)return mve;yve=1;var t=b3e().Readable;function e(n,r,a){t.call(this,r),this._helper=n;var i=this;n.on("data",function(o,s){i.push(o)||i._helper.pause(),a&&a(s)}).on("error",function(o){i.emit("error",o)}).on("end",function(){i.push(null)})}return oi().inherits(e,t),e.prototype._read=function(){this._helper.resume()},mve=e}()}catch{}function LYe(t,e){return new wYe.Promise(function(n,r){var a=[],i=t._internalType,o=t._outputType,s=t._mimeType;t.on("data",function(l,c){a.push(l),e&&e(c)}).on("error",function(l){a=[],r(l)}).on("end",function(){try{var l=function(c,u,f){switch(c){case"blob":return $2.newBlob($2.transformTo("arraybuffer",u),f);case"base64":return _Ye.encode(u);default:return $2.transformTo(c,u)}}(o,function(c,u){var f,d=0,h=null,p=0;for(f=0;f<u.length;f++)p+=u[f].length;switch(c){case"string":return u.join("");case"array":return Array.prototype.concat.apply([],u);case"uint8array":for(h=new Uint8Array(p),f=0;f<u.length;f++)h.set(u[f],d),d+=u[f].length;return h;case"nodebuffer":return _t.concat(u);default:throw new Error("concat : unsupported type '"+c+"'")}}(i,a),s);n(l)}catch(c){r(c)}a=[]}).resume()})}function L3e(t,e,n){var r=e;switch(e){case"blob":case"arraybuffer":r="uint8array";break;case"base64":r="string"}try{this._internalType=r,this._outputType=e,this._mimeType=n,$2.checkSupport(r),this._worker=t.pipe(new SYe(r)),t.lock()}catch(a){this._worker=new MYe("error"),this._worker.error(a)}}L3e.prototype={accumulate:function(t){return LYe(this,t)},on:function(t,e){var n=this;return t==="data"?this._worker.on(t,function(r){e.call(n,r.data,r.meta)}):this._worker.on(t,function(){$2.delay(e,arguments,n)}),this},resume:function(){return $2.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if($2.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new w3e(this,{objectMode:this._outputType!=="nodebuffer"},t)}};var T3e=L3e,O3e={base64:!1,binary:!1,dir:!1,createFolders:!0,date:null,compression:null,compressionOptions:null,comment:null,unixPermissions:null,dosPermissions:null},kE=oi(),EE=Lu;function ex(t){EE.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(n){e.dataIsReady=!0,e.data=n,e.max=n&&n.length||0,e.type=kE.getTypeOf(n),e.isPaused||e._tickAndRepeat()},function(n){e.error(n)})}kE.inherits(ex,EE),ex.prototype.cleanUp=function(){EE.prototype.cleanUp.call(this),this.data=null},ex.prototype.resume=function(){return!!EE.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,kE.delay(this._tickAndRepeat,[],this)),!0)},ex.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(kE.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},ex.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};var P3e=ex,TYe=oi(),Ave=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}(),Qj=function(t,e){return t!==void 0&&t.length?TYe.getTypeOf(t)!=="string"?function(n,r,a,i){var o=Ave,s=i+a;n^=-1;for(var l=i;l<s;l++)n=n>>>8^o[255&(n^r[l])];return-1^n}(0|e,t,t.length,0):function(n,r,a,i){var o=Ave,s=i+a;n^=-1;for(var l=i;l<s;l++)n=n>>>8^o[255&(n^r.charCodeAt(l))];return-1^n}(0|e,t,t.length,0):0},C3e=Lu,OYe=Qj;function UG(){C3e.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}oi().inherits(UG,C3e),UG.prototype.processChunk=function(t){this.streamInfo.crc32=OYe(t.data,this.streamInfo.crc32||0),this.push(t)};var N3e=UG,PYe=oi(),WG=Lu;function YG(t){WG.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}PYe.inherits(YG,WG),YG.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}WG.prototype.processChunk.call(this,t)};var Rve=b8,bve=P3e,CYe=N3e,SQ=YG;function BG(t,e,n,r,a){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=r,this.compressedContent=a}BG.prototype={getContentWorker:function(){var t=new bve(Rve.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new SQ("data_length")),e=this;return t.on("end",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),t},getCompressedWorker:function(){return new bve(Rve.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},BG.createWorkerFrom=function(t,e,n){return t.pipe(new CYe).pipe(new SQ("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new SQ("compressedSize")).withStreamInfo("compression",e)};var Kj=BG,NYe=T3e,IYe=P3e,MQ=kS,_Q=Kj,xve=Lu,Hj=function(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}};Hj.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var r=(n=t.toLowerCase())==="string"||n==="text";n!=="binarystring"&&n!=="text"||(n="string"),e=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(e=e.pipe(new MQ.Utf8EncodeWorker)),!a&&r&&(e=e.pipe(new MQ.Utf8DecodeWorker))}catch(i){(e=new xve("error")).error(i)}return new NYe(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof _Q&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new MQ.Utf8EncodeWorker)),_Q.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof _Q?this._data.getContentWorker():this._data instanceof xve?this._data:new IYe(this._data)}};for(var Sve=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],kYe=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},wQ=0;wQ<Sve.length;wQ++)Hj.prototype[Sve[wQ]]=kYe;var EYe=Hj,I3e={},tX={},FE={},_0={};(function(t){var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function n(i,o){return Object.prototype.hasOwnProperty.call(i,o)}t.assign=function(i){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var s=o.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var l in s)n(s,l)&&(i[l]=s[l])}}return i},t.shrinkBuf=function(i,o){return i.length===o?i:i.subarray?i.subarray(0,o):(i.length=o,i)};var r={arraySet:function(i,o,s,l,c){if(o.subarray&&i.subarray)i.set(o.subarray(s,s+l),c);else for(var u=0;u<l;u++)i[c+u]=o[s+u]},flattenChunks:function(i){var o,s,l,c,u,f;for(l=0,o=0,s=i.length;o<s;o++)l+=i[o].length;for(f=new Uint8Array(l),c=0,o=0,s=i.length;o<s;o++)u=i[o],f.set(u,c),c+=u.length;return f}},a={arraySet:function(i,o,s,l,c){for(var u=0;u<l;u++)i[c+u]=o[s+u]},flattenChunks:function(i){return[].concat.apply([],i)}};t.setTyped=function(i){i?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,r)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(e)})(_0);var J5={},zd={},tx={},FYe=_0;function ES(t){for(var e=t.length;--e>=0;)t[e]=0}var ZG=[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],XE=[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],XYe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Mve=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Qp=new Array(576);ES(Qp);var j5=new Array(60);ES(j5);var _w=new Array(512);ES(_w);var F_=new Array(256);ES(F_);var Gj=new Array(29);ES(Gj);var _ve,wve,Lve,nX=new Array(30);function LQ(t,e,n,r,a){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=a,this.has_stree=t&&t.length}function TQ(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function k3e(t){return t<256?_w[t]:_w[256+(t>>>7)]}function ww(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function cl(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,ww(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function lh(t,e,n){cl(t,n[2*e],n[2*e+1])}function E3e(t,e){var n=0;do n|=1&t,t>>>=1,n<<=1;while(--e>0);return n>>>1}function F3e(t,e,n){var r,a,i=new Array(16),o=0;for(r=1;r<=15;r++)i[r]=o=o+n[r-1]<<1;for(a=0;a<=e;a++){var s=t[2*a+1];s!==0&&(t[2*a]=E3e(i[s]++,s))}}function Tve(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function X3e(t){t.bi_valid>8?ww(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Ove(t,e,n,r){var a=2*e,i=2*n;return t[a]<t[i]||t[a]===t[i]&&r[e]<=r[n]}function OQ(t,e,n){for(var r=t.heap[n],a=n<<1;a<=t.heap_len&&(a<t.heap_len&&Ove(e,t.heap[a+1],t.heap[a],t.depth)&&a++,!Ove(e,r,t.heap[a],t.depth));)t.heap[n]=t.heap[a],n=a,a<<=1;t.heap[n]=r}function Pve(t,e,n){var r,a,i,o,s=0;if(t.last_lit!==0)do r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],a=t.pending_buf[t.l_buf+s],s++,r===0?lh(t,a,e):(lh(t,(i=F_[a])+256+1,e),(o=ZG[i])!==0&&cl(t,a-=Gj[i],o),lh(t,i=k3e(--r),n),(o=XE[i])!==0&&cl(t,r-=nX[i],o));while(s<t.last_lit);lh(t,256,e)}function PQ(t,e){var n,r,a,i=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<l;n++)i[2*n]!==0?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):i[2*n+1]=0;for(;t.heap_len<2;)i[2*(a=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[a]=0,t.opt_len--,s&&(t.static_len-=o[2*a+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)OQ(t,i,n);a=l;do n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],OQ(t,i,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,i[2*a]=i[2*n]+i[2*r],t.depth[a]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,i[2*n+1]=i[2*r+1]=a,t.heap[1]=a++,OQ(t,i,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(u,f){var d,h,p,v,g,y,m=f.dyn_tree,R=f.max_code,A=f.stat_desc.static_tree,x=f.stat_desc.has_stree,M=f.stat_desc.extra_bits,S=f.stat_desc.extra_base,w=f.stat_desc.max_length,_=0;for(v=0;v<=15;v++)u.bl_count[v]=0;for(m[2*u.heap[u.heap_max]+1]=0,d=u.heap_max+1;d<573;d++)(v=m[2*m[2*(h=u.heap[d])+1]+1]+1)>w&&(v=w,_++),m[2*h+1]=v,h>R||(u.bl_count[v]++,g=0,h>=S&&(g=M[h-S]),y=m[2*h],u.opt_len+=y*(v+g),x&&(u.static_len+=y*(A[2*h+1]+g)));if(_!==0){do{for(v=w-1;u.bl_count[v]===0;)v--;u.bl_count[v]--,u.bl_count[v+1]+=2,u.bl_count[w]--,_-=2}while(_>0);for(v=w;v!==0;v--)for(h=u.bl_count[v];h!==0;)(p=u.heap[--d])>R||(m[2*p+1]!==v&&(u.opt_len+=(v-m[2*p+1])*m[2*p],m[2*p+1]=v),h--)}}(t,e),F3e(i,c,t.bl_count)}function Cve(t,e,n){var r,a,i=-1,o=e[1],s=0,l=7,c=4;for(o===0&&(l=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)a=o,o=e[2*(r+1)+1],++s<l&&a===o||(s<c?t.bl_tree[2*a]+=s:a!==0?(a!==i&&t.bl_tree[2*a]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,i=a,o===0?(l=138,c=3):a===o?(l=6,c=3):(l=7,c=4))}function Nve(t,e,n){var r,a,i=-1,o=e[1],s=0,l=7,c=4;for(o===0&&(l=138,c=3),r=0;r<=n;r++)if(a=o,o=e[2*(r+1)+1],!(++s<l&&a===o)){if(s<c)do lh(t,a,t.bl_tree);while(--s!=0);else a!==0?(a!==i&&(lh(t,a,t.bl_tree),s--),lh(t,16,t.bl_tree),cl(t,s-3,2)):s<=10?(lh(t,17,t.bl_tree),cl(t,s-3,3)):(lh(t,18,t.bl_tree),cl(t,s-11,7));s=0,i=a,o===0?(l=138,c=3):a===o?(l=6,c=3):(l=7,c=4)}}ES(nX);var Ive=!1;function kve(t,e,n,r){cl(t,0+(r?1:0),3),function(a,i,o,s){X3e(a),ww(a,o),ww(a,~o),FYe.arraySet(a.pending_buf,a.window,i,o,a.pending),a.pending+=o}(t,e,n)}tx._tr_init=function(t){Ive||(function(){var e,n,r,a,i,o=new Array(16);for(r=0,a=0;a<28;a++)for(Gj[a]=r,e=0;e<1<<ZG[a];e++)F_[r++]=a;for(F_[r-1]=a,i=0,a=0;a<16;a++)for(nX[a]=i,e=0;e<1<<XE[a];e++)_w[i++]=a;for(i>>=7;a<30;a++)for(nX[a]=i<<7,e=0;e<1<<XE[a]-7;e++)_w[256+i++]=a;for(n=0;n<=15;n++)o[n]=0;for(e=0;e<=143;)Qp[2*e+1]=8,e++,o[8]++;for(;e<=255;)Qp[2*e+1]=9,e++,o[9]++;for(;e<=279;)Qp[2*e+1]=7,e++,o[7]++;for(;e<=287;)Qp[2*e+1]=8,e++,o[8]++;for(F3e(Qp,287,o),e=0;e<30;e++)j5[2*e+1]=5,j5[2*e]=E3e(e,5);_ve=new LQ(Qp,ZG,257,286,15),wve=new LQ(j5,XE,0,30,15),Lve=new LQ(new Array(0),XYe,0,19,7)}(),Ive=!0),t.l_desc=new TQ(t.dyn_ltree,_ve),t.d_desc=new TQ(t.dyn_dtree,wve),t.bl_desc=new TQ(t.bl_tree,Lve),t.bi_buf=0,t.bi_valid=0,Tve(t)},tx._tr_stored_block=kve,tx._tr_flush_block=function(t,e,n,r){var a,i,o=0;t.level>0?(t.strm.data_type===2&&(t.strm.data_type=function(s){var l,c=4093624447;for(l=0;l<=31;l++,c>>>=1)if(1&c&&s.dyn_ltree[2*l]!==0)return 0;if(s.dyn_ltree[18]!==0||s.dyn_ltree[20]!==0||s.dyn_ltree[26]!==0)return 1;for(l=32;l<256;l++)if(s.dyn_ltree[2*l]!==0)return 1;return 0}(t)),PQ(t,t.l_desc),PQ(t,t.d_desc),o=function(s){var l;for(Cve(s,s.dyn_ltree,s.l_desc.max_code),Cve(s,s.dyn_dtree,s.d_desc.max_code),PQ(s,s.bl_desc),l=18;l>=3&&s.bl_tree[2*Mve[l]+1]===0;l--);return s.opt_len+=3*(l+1)+5+5+4,l}(t),a=t.opt_len+3+7>>>3,(i=t.static_len+3+7>>>3)<=a&&(a=i)):a=i=n+5,n+4<=a&&e!==-1?kve(t,e,n,r):t.strategy===4||i===a?(cl(t,2+(r?1:0),3),Pve(t,Qp,j5)):(cl(t,4+(r?1:0),3),function(s,l,c,u){var f;for(cl(s,l-257,5),cl(s,c-1,5),cl(s,u-4,4),f=0;f<u;f++)cl(s,s.bl_tree[2*Mve[f]+1],3);Nve(s,s.dyn_ltree,l-1),Nve(s,s.dyn_dtree,c-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),Pve(t,t.dyn_ltree,t.dyn_dtree)),Tve(t),r&&X3e(t)},tx._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,e===0?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(F_[n]+256+1)]++,t.dyn_dtree[2*k3e(e)]++),t.last_lit===t.lit_bufsize-1},tx._tr_align=function(t){cl(t,2,3),lh(t,256,Qp),function(e){e.bi_valid===16?(ww(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(t)};var D3e=function(t,e,n,r){for(var a=65535&t|0,i=t>>>16&65535|0,o=0;n!==0;){n-=o=n>2e3?2e3:n;do i=i+(a=a+e[r++]|0)|0;while(--o);a%=65521,i%=65521}return a|i<<16|0},DYe=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}(),px,V3e=function(t,e,n,r){var a=DYe,i=r+n;t^=-1;for(var o=r;o<i;o++)t=t>>>8^a[255&(t^e[o])];return-1^t},$j={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"},Xs=_0,fu=tx,U3e=D3e,jv=V3e,VYe=$j;function o1(t,e){return t.msg=VYe[e],e}function Eve(t){return(t<<1)-(t>4?9:0)}function h1(t){for(var e=t.length;--e>=0;)t[e]=0}function qv(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),n!==0&&(Xs.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,e.pending===0&&(e.pending_out=0))}function To(t,e){fu._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,qv(t.strm)}function Dr(t,e){t.pending_buf[t.pending++]=e}function u5(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function W3e(t,e){var n,r,a=t.max_chain_length,i=t.strstart,o=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,c=t.window,u=t.w_mask,f=t.prev,d=t.strstart+258,h=c[i+o-1],p=c[i+o];t.prev_length>=t.good_match&&(a>>=2),s>t.lookahead&&(s=t.lookahead);do if(c[(n=e)+o]===p&&c[n+o-1]===h&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do;while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<d);if(r=258-(d-i),i=d-258,r>o){if(t.match_start=e,o=r,r>=s)break;h=c[i+o-1],p=c[i+o]}}while((e=f[e&u])>l&&--a!=0);return o<=t.lookahead?o:t.lookahead}function _2(t){var e,n,r,a,i,o,s,l,c,u,f=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-262)){Xs.arraySet(t.window,t.window,f,f,0),t.match_start-=f,t.strstart-=f,t.block_start-=f,e=n=t.hash_size;do r=t.head[--e],t.head[e]=r>=f?r-f:0;while(--n);e=n=f;do r=t.prev[--e],t.prev[e]=r>=f?r-f:0;while(--n);a+=f}if(t.strm.avail_in===0)break;if(o=t.strm,s=t.window,l=t.strstart+t.lookahead,c=a,u=void 0,(u=o.avail_in)>c&&(u=c),n=u===0?0:(o.avail_in-=u,Xs.arraySet(s,o.input,o.next_in,u,l),o.state.wrap===1?o.adler=U3e(o.adler,s,u,l):o.state.wrap===2&&(o.adler=jv(o.adler,s,u,l)),o.next_in+=u,o.total_in+=u,u),t.lookahead+=n,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=(t.ins_h<<t.hash_shift^t.window[i+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[i+3-1])&t.hash_mask,t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&t.strm.avail_in!==0)}function CQ(t,e){for(var n,r;;){if(t.lookahead<262){if(_2(t),t.lookahead<262&&e===0)return 1;if(t.lookahead===0)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),n!==0&&t.strstart-n<=t.w_size-262&&(t.match_length=W3e(t,n)),t.match_length>=3)if(r=fu._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!=0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=fu._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(To(t,!1),t.strm.avail_out===0))return 1}return t.insert=t.strstart<2?t.strstart:2,e===4?(To(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(To(t,!1),t.strm.avail_out===0)?1:2}function mb(t,e){for(var n,r,a;;){if(t.lookahead<262){if(_2(t),t.lookahead<262&&e===0)return 1;if(t.lookahead===0)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,n!==0&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-262&&(t.match_length=W3e(t,n),t.match_length<=5&&(t.strategy===1||t.match_length===3&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){a=t.strstart+t.lookahead-3,r=fu._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=a&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!=0);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(To(t,!1),t.strm.avail_out===0))return 1}else if(t.match_available){if((r=fu._tr_tally(t,0,t.window[t.strstart-1]))&&To(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=fu._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===4?(To(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(To(t,!1),t.strm.avail_out===0)?1:2}function Wd(t,e,n,r,a){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=a}function UYe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Xs.Buf16(1146),this.dyn_dtree=new Xs.Buf16(122),this.bl_tree=new Xs.Buf16(78),h1(this.dyn_ltree),h1(this.dyn_dtree),h1(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Xs.Buf16(16),this.heap=new Xs.Buf16(573),h1(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Xs.Buf16(573),h1(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Y3e(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=e.wrap===2?0:1,e.last_flush=0,fu._tr_init(e),0):o1(t,-2)}function B3e(t){var e,n=Y3e(t);return n===0&&((e=t.state).window_size=2*e.w_size,h1(e.head),e.max_lazy_match=px[e.level].max_lazy,e.good_match=px[e.level].good_length,e.nice_match=px[e.level].nice_length,e.max_chain_length=px[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),n}function Fve(t,e,n,r,a,i){if(!t)return-2;var o=1;if(e===-1&&(e=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),a<1||a>9||n!==8||r<8||r>15||e<0||e>9||i<0||i>4)return o1(t,-2);r===8&&(r=9);var s=new UYe;return t.state=s,s.strm=t,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=a+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Xs.Buf8(2*s.w_size),s.head=new Xs.Buf16(s.hash_size),s.prev=new Xs.Buf16(s.w_size),s.lit_bufsize=1<<a+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Xs.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=i,s.method=n,B3e(t)}px=[new Wd(0,0,0,0,function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(_2(t),t.lookahead===0&&e===0)return 1;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((t.strstart===0||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,To(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-262&&(To(t,!1),t.strm.avail_out===0))return 1}return t.insert=0,e===4?(To(t,!0),t.strm.avail_out===0?3:4):(t.strstart>t.block_start&&(To(t,!1),t.strm.avail_out),1)}),new Wd(4,4,8,4,CQ),new Wd(4,5,16,8,CQ),new Wd(4,6,32,32,CQ),new Wd(4,4,16,16,mb),new Wd(8,16,32,32,mb),new Wd(8,16,128,128,mb),new Wd(8,32,128,256,mb),new Wd(32,128,258,1024,mb),new Wd(32,258,258,4096,mb)],zd.deflateInit=function(t,e){return Fve(t,e,8,15,8,0)},zd.deflateInit2=Fve,zd.deflateReset=B3e,zd.deflateResetKeep=Y3e,zd.deflateSetHeader=function(t,e){return t&&t.state?t.state.wrap!==2?-2:(t.state.gzhead=e,0):-2},zd.deflate=function(t,e){var n,r,a,i;if(!t||!t.state||e>5||e<0)return t?o1(t,-2):-2;if(r=t.state,!t.output||!t.input&&t.avail_in!==0||r.status===666&&e!==4)return o1(t,t.avail_out===0?-5:-2);if(r.strm=t,n=r.last_flush,r.last_flush=e,r.status===42)if(r.wrap===2)t.adler=0,Dr(r,31),Dr(r,139),Dr(r,8),r.gzhead?(Dr(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Dr(r,255&r.gzhead.time),Dr(r,r.gzhead.time>>8&255),Dr(r,r.gzhead.time>>16&255),Dr(r,r.gzhead.time>>24&255),Dr(r,r.level===9?2:r.strategy>=2||r.level<2?4:0),Dr(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Dr(r,255&r.gzhead.extra.length),Dr(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=jv(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Dr(r,0),Dr(r,0),Dr(r,0),Dr(r,0),Dr(r,0),Dr(r,r.level===9?2:r.strategy>=2||r.level<2?4:0),Dr(r,3),r.status=113);else{var o=8+(r.w_bits-8<<4)<<8;o|=(r.strategy>=2||r.level<2?0:r.level<6?1:r.level===6?2:3)<<6,r.strstart!==0&&(o|=32),o+=31-o%31,r.status=113,u5(r,o),r.strstart!==0&&(u5(r,t.adler>>>16),u5(r,65535&t.adler)),t.adler=1}if(r.status===69)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=jv(t.adler,r.pending_buf,r.pending-a,a)),qv(t),a=r.pending,r.pending!==r.pending_buf_size));)Dr(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=jv(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(r.status===73)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=jv(t.adler,r.pending_buf,r.pending-a,a)),qv(t),a=r.pending,r.pending===r.pending_buf_size)){i=1;break}i=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Dr(r,i)}while(i!==0);r.gzhead.hcrc&&r.pending>a&&(t.adler=jv(t.adler,r.pending_buf,r.pending-a,a)),i===0&&(r.gzindex=0,r.status=91)}else r.status=91;if(r.status===91)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=jv(t.adler,r.pending_buf,r.pending-a,a)),qv(t),a=r.pending,r.pending===r.pending_buf_size)){i=1;break}i=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Dr(r,i)}while(i!==0);r.gzhead.hcrc&&r.pending>a&&(t.adler=jv(t.adler,r.pending_buf,r.pending-a,a)),i===0&&(r.status=103)}else r.status=103;if(r.status===103&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&qv(t),r.pending+2<=r.pending_buf_size&&(Dr(r,255&t.adler),Dr(r,t.adler>>8&255),t.adler=0,r.status=113)):r.status=113),r.pending!==0){if(qv(t),t.avail_out===0)return r.last_flush=-1,0}else if(t.avail_in===0&&Eve(e)<=Eve(n)&&e!==4)return o1(t,-5);if(r.status===666&&t.avail_in!==0)return o1(t,-5);if(t.avail_in!==0||r.lookahead!==0||e!==0&&r.status!==666){var s=r.strategy===2?function(l,c){for(var u;;){if(l.lookahead===0&&(_2(l),l.lookahead===0)){if(c===0)return 1;break}if(l.match_length=0,u=fu._tr_tally(l,0,l.window[l.strstart]),l.lookahead--,l.strstart++,u&&(To(l,!1),l.strm.avail_out===0))return 1}return l.insert=0,c===4?(To(l,!0),l.strm.avail_out===0?3:4):l.last_lit&&(To(l,!1),l.strm.avail_out===0)?1:2}(r,e):r.strategy===3?function(l,c){for(var u,f,d,h,p=l.window;;){if(l.lookahead<=258){if(_2(l),l.lookahead<=258&&c===0)return 1;if(l.lookahead===0)break}if(l.match_length=0,l.lookahead>=3&&l.strstart>0&&(f=p[d=l.strstart-1])===p[++d]&&f===p[++d]&&f===p[++d]){h=l.strstart+258;do;while(f===p[++d]&&f===p[++d]&&f===p[++d]&&f===p[++d]&&f===p[++d]&&f===p[++d]&&f===p[++d]&&f===p[++d]&&d<h);l.match_length=258-(h-d),l.match_length>l.lookahead&&(l.match_length=l.lookahead)}if(l.match_length>=3?(u=fu._tr_tally(l,1,l.match_length-3),l.lookahead-=l.match_length,l.strstart+=l.match_length,l.match_length=0):(u=fu._tr_tally(l,0,l.window[l.strstart]),l.lookahead--,l.strstart++),u&&(To(l,!1),l.strm.avail_out===0))return 1}return l.insert=0,c===4?(To(l,!0),l.strm.avail_out===0?3:4):l.last_lit&&(To(l,!1),l.strm.avail_out===0)?1:2}(r,e):px[r.level].func(r,e);if(s!==3&&s!==4||(r.status=666),s===1||s===3)return t.avail_out===0&&(r.last_flush=-1),0;if(s===2&&(e===1?fu._tr_align(r):e!==5&&(fu._tr_stored_block(r,0,0,!1),e===3&&(h1(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),qv(t),t.avail_out===0))return r.last_flush=-1,0}return e!==4?0:r.wrap<=0?1:(r.wrap===2?(Dr(r,255&t.adler),Dr(r,t.adler>>8&255),Dr(r,t.adler>>16&255),Dr(r,t.adler>>24&255),Dr(r,255&t.total_in),Dr(r,t.total_in>>8&255),Dr(r,t.total_in>>16&255),Dr(r,t.total_in>>24&255)):(u5(r,t.adler>>>16),u5(r,65535&t.adler)),qv(t),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?0:1)},zd.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==42&&e!==69&&e!==73&&e!==91&&e!==103&&e!==113&&e!==666?o1(t,-2):(t.state=null,e===113?o1(t,-3):0):-2},zd.deflateSetDictionary=function(t,e){var n,r,a,i,o,s,l,c,u=e.length;if(!t||!t.state||(i=(n=t.state).wrap)===2||i===1&&n.status!==42||n.lookahead)return-2;for(i===1&&(t.adler=U3e(t.adler,e,u,0)),n.wrap=0,u>=n.w_size&&(i===0&&(h1(n.head),n.strstart=0,n.block_start=0,n.insert=0),c=new Xs.Buf8(n.w_size),Xs.arraySet(c,e,u-n.w_size,n.w_size,0),e=c,u=n.w_size),o=t.avail_in,s=t.next_in,l=t.input,t.avail_in=u,t.next_in=0,t.input=e,_2(n);n.lookahead>=3;){r=n.strstart,a=n.lookahead-2;do n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++;while(--a);n.strstart=r,n.lookahead=2,_2(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=s,t.input=l,t.avail_in=o,n.wrap=i,0},zd.deflateInfo="pako deflate (from Nodeca project)";var w2={},rX=_0,Z3e=!0,Q3e=!0;try{String.fromCharCode.apply(null,[0])}catch{Z3e=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Q3e=!1}for(var q5=new rX.Buf8(256),Iv=0;Iv<256;Iv++)q5[Iv]=Iv>=252?6:Iv>=248?5:Iv>=240?4:Iv>=224?3:Iv>=192?2:1;function Xve(t,e){if(e<65534&&(t.subarray&&Q3e||!t.subarray&&Z3e))return String.fromCharCode.apply(null,rX.shrinkBuf(t,e));for(var n="",r=0;r<e;r++)n+=String.fromCharCode(t[r]);return n}q5[254]=q5[254]=1,w2.string2buf=function(t){var e,n,r,a,i,o=t.length,s=0;for(a=0;a<o;a++)(64512&(n=t.charCodeAt(a)))==55296&&a+1<o&&(64512&(r=t.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),a++),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new rX.Buf8(s),i=0,a=0;i<s;a++)(64512&(n=t.charCodeAt(a)))==55296&&a+1<o&&(64512&(r=t.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?e[i++]=n:n<2048?(e[i++]=192|n>>>6,e[i++]=128|63&n):n<65536?(e[i++]=224|n>>>12,e[i++]=128|n>>>6&63,e[i++]=128|63&n):(e[i++]=240|n>>>18,e[i++]=128|n>>>12&63,e[i++]=128|n>>>6&63,e[i++]=128|63&n);return e},w2.buf2binstring=function(t){return Xve(t,t.length)},w2.binstring2buf=function(t){for(var e=new rX.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},w2.buf2string=function(t,e){var n,r,a,i,o=e||t.length,s=new Array(2*o);for(r=0,n=0;n<o;)if((a=t[n++])<128)s[r++]=a;else if((i=q5[a])>4)s[r++]=65533,n+=i-1;else{for(a&=i===2?31:i===3?15:7;i>1&&n<o;)a=a<<6|63&t[n++],i--;i>1?s[r++]=65533:a<65536?s[r++]=a:(a-=65536,s[r++]=55296|a>>10&1023,s[r++]=56320|1023&a)}return Xve(s,r)},w2.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&(192&t[n])==128;)n--;return n<0||n===0?e:n+q5[t[n]]>e?n:e};var K3e=function(){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},X_=zd,e_=_0,QG=w2,KG=$j,WYe=K3e,H3e=Object.prototype.toString;function N2(t){if(!(this instanceof N2))return new N2(t);this.options=e_.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new WYe,this.strm.avail_out=0;var n=X_.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==0)throw new Error(KG[n]);if(e.header&&X_.deflateSetHeader(this.strm,e.header),e.dictionary){var r;if(r=typeof e.dictionary=="string"?QG.string2buf(e.dictionary):H3e.call(e.dictionary)==="[object ArrayBuffer]"?new Uint8Array(e.dictionary):e.dictionary,(n=X_.deflateSetDictionary(this.strm,r))!==0)throw new Error(KG[n]);this._dict_set=!0}}function NQ(t,e){var n=new N2(e);if(n.push(t,!0),n.err)throw n.msg||KG[n.err];return n.result}N2.prototype.push=function(t,e){var n,r,a=this.strm,i=this.options.chunkSize;if(this.ended)return!1;r=e===~~e?e:e===!0?4:0,typeof t=="string"?a.input=QG.string2buf(t):H3e.call(t)==="[object ArrayBuffer]"?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(a.avail_out===0&&(a.output=new e_.Buf8(i),a.next_out=0,a.avail_out=i),(n=X_.deflate(a,r))!==1&&n!==0)return this.onEnd(n),this.ended=!0,!1;a.avail_out!==0&&(a.avail_in!==0||r!==4&&r!==2)||(this.options.to==="string"?this.onData(QG.buf2binstring(e_.shrinkBuf(a.output,a.next_out))):this.onData(e_.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||a.avail_out===0)&&n!==1);return r===4?(n=X_.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===0):r!==2||(this.onEnd(0),a.avail_out=0,!0)},N2.prototype.onData=function(t){this.chunks.push(t)},N2.prototype.onEnd=function(t){t===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=e_.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},J5.Deflate=N2,J5.deflate=NQ,J5.deflateRaw=function(t,e){return(e=e||{}).raw=!0,NQ(t,e)},J5.gzip=function(t,e){return(e=e||{}).gzip=!0,NQ(t,e)};var t_={},pf={},Dve=_0,YYe=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],BYe=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],ZYe=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],QYe=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],fc=_0,IQ=D3e,Yd=V3e,KYe=function(t,e){var n,r,a,i,o,s,l,c,u,f,d,h,p,v,g,y,m,R,A,x,M,S,w,_,T;n=t.state,r=t.next_in,_=t.input,a=r+(t.avail_in-5),i=t.next_out,T=t.output,o=i-(e-t.avail_out),s=i+(t.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,f=n.wnext,d=n.window,h=n.hold,p=n.bits,v=n.lencode,g=n.distcode,y=(1<<n.lenbits)-1,m=(1<<n.distbits)-1;e:do{p<15&&(h+=_[r++]<<p,p+=8,h+=_[r++]<<p,p+=8),R=v[h&y];t:for(;;){if(h>>>=A=R>>>24,p-=A,(A=R>>>16&255)===0)T[i++]=65535&R;else{if(!(16&A)){if(!(64&A)){R=v[(65535&R)+(h&(1<<A)-1)];continue t}if(32&A){n.mode=12;break e}t.msg="invalid literal/length code",n.mode=30;break e}x=65535&R,(A&=15)&&(p<A&&(h+=_[r++]<<p,p+=8),x+=h&(1<<A)-1,h>>>=A,p-=A),p<15&&(h+=_[r++]<<p,p+=8,h+=_[r++]<<p,p+=8),R=g[h&m];n:for(;;){if(h>>>=A=R>>>24,p-=A,!(16&(A=R>>>16&255))){if(!(64&A)){R=g[(65535&R)+(h&(1<<A)-1)];continue n}t.msg="invalid distance code",n.mode=30;break e}if(M=65535&R,p<(A&=15)&&(h+=_[r++]<<p,(p+=8)<A&&(h+=_[r++]<<p,p+=8)),(M+=h&(1<<A)-1)>l){t.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=A,p-=A,M>(A=i-o)){if((A=M-A)>u&&n.sane){t.msg="invalid distance too far back",n.mode=30;break e}if(S=0,w=d,f===0){if(S+=c-A,A<x){x-=A;do T[i++]=d[S++];while(--A);S=i-M,w=T}}else if(f<A){if(S+=c+f-A,(A-=f)<x){x-=A;do T[i++]=d[S++];while(--A);if(S=0,f<x){x-=A=f;do T[i++]=d[S++];while(--A);S=i-M,w=T}}}else if(S+=f-A,A<x){x-=A;do T[i++]=d[S++];while(--A);S=i-M,w=T}for(;x>2;)T[i++]=w[S++],T[i++]=w[S++],T[i++]=w[S++],x-=3;x&&(T[i++]=w[S++],x>1&&(T[i++]=w[S++]))}else{S=i-M;do T[i++]=T[S++],T[i++]=T[S++],T[i++]=T[S++],x-=3;while(x>2);x&&(T[i++]=T[S++],x>1&&(T[i++]=T[S++]))}break}}break}}while(r<a&&i<s);r-=x=p>>3,h&=(1<<(p-=x<<3))-1,t.next_in=r,t.next_out=i,t.avail_in=r<a?a-r+5:5-(r-a),t.avail_out=i<s?s-i+257:257-(i-s),n.hold=h,n.bits=p},D_=function(t,e,n,r,a,i,o,s){var l,c,u,f,d,h,p,v,g,y=s.bits,m=0,R=0,A=0,x=0,M=0,S=0,w=0,_=0,T=0,O=0,N=null,P=0,C=new Dve.Buf16(16),E=new Dve.Buf16(16),F=null,Y=0;for(m=0;m<=15;m++)C[m]=0;for(R=0;R<r;R++)C[e[n+R]]++;for(M=y,x=15;x>=1&&C[x]===0;x--);if(M>x&&(M=x),x===0)return a[i++]=20971520,a[i++]=20971520,s.bits=1,0;for(A=1;A<x&&C[A]===0;A++);for(M<A&&(M=A),_=1,m=1;m<=15;m++)if(_<<=1,(_-=C[m])<0)return-1;if(_>0&&(t===0||x!==1))return-1;for(E[1]=0,m=1;m<15;m++)E[m+1]=E[m]+C[m];for(R=0;R<r;R++)e[n+R]!==0&&(o[E[e[n+R]]++]=R);if(t===0?(N=F=o,h=19):t===1?(N=YYe,P-=257,F=BYe,Y-=257,h=256):(N=ZYe,F=QYe,h=-1),O=0,R=0,m=A,d=i,S=M,w=0,u=-1,f=(T=1<<M)-1,t===1&&T>852||t===2&&T>592)return 1;for(;;){p=m-w,o[R]<h?(v=0,g=o[R]):o[R]>h?(v=F[Y+o[R]],g=N[P+o[R]]):(v=96,g=0),l=1<<m-w,A=c=1<<S;do a[d+(O>>w)+(c-=l)]=p<<24|v<<16|g|0;while(c!==0);for(l=1<<m-1;O&l;)l>>=1;if(l!==0?(O&=l-1,O+=l):O=0,R++,--C[m]==0){if(m===x)break;m=e[n+o[R]]}if(m>M&&(O&f)!==u){for(w===0&&(w=M),d+=A,_=1<<(S=m-w);S+w<x&&!((_-=C[S+w])<=0);)S++,_<<=1;if(T+=1<<S,t===1&&T>852||t===2&&T>592)return 1;a[u=O&f]=M<<24|S<<16|d-i|0}}return O!==0&&(a[d+O]=m-w<<24|64<<16|0),s.bits=M,0};function Vve(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function HYe(){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 fc.Buf16(320),this.work=new fc.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function G3e(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new fc.Buf32(852),e.distcode=e.distdyn=new fc.Buf32(592),e.sane=1,e.back=-1,0):-2}function $3e(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,G3e(t)):-2}function z3e(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(r.window!==null&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,$3e(t))):-2}function Uve(t,e){var n,r;return t?(r=new HYe,t.state=r,r.window=null,(n=z3e(t,e))!==0&&(t.state=null),n):-2}var kQ,EQ,Wve=!0;function GYe(t){if(Wve){var e;for(kQ=new fc.Buf32(512),EQ=new fc.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(D_(1,t.lens,0,288,kQ,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;D_(2,t.lens,0,32,EQ,0,t.work,{bits:5}),Wve=!1}t.lencode=kQ,t.lenbits=9,t.distcode=EQ,t.distbits=5}function Yve(t,e,n,r){var a,i=t.state;return i.window===null&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new fc.Buf8(i.wsize)),r>=i.wsize?(fc.arraySet(i.window,e,n-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):((a=i.wsize-i.wnext)>r&&(a=r),fc.arraySet(i.window,e,n-r,a,i.wnext),(r-=a)?(fc.arraySet(i.window,e,n-r,r,0),i.wnext=r,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=a))),0}pf.inflateReset=$3e,pf.inflateReset2=z3e,pf.inflateResetKeep=G3e,pf.inflateInit=function(t){return Uve(t,15)},pf.inflateInit2=Uve,pf.inflate=function(t,e){var n,r,a,i,o,s,l,c,u,f,d,h,p,v,g,y,m,R,A,x,M,S,w,_,T=0,O=new fc.Buf8(4),N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&t.avail_in!==0)return-2;(n=t.state).mode===12&&(n.mode=13),o=t.next_out,a=t.output,l=t.avail_out,i=t.next_in,r=t.input,s=t.avail_in,c=n.hold,u=n.bits,f=s,d=l,S=0;e:for(;;)switch(n.mode){case 1:if(n.wrap===0){n.mode=13;break}for(;u<16;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}if(2&n.wrap&&c===35615){n.check=0,O[0]=255&c,O[1]=c>>>8&255,n.check=Yd(n.check,O,2,0),c=0,u=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",n.mode=30;break}if((15&c)!=8){t.msg="unknown compression method",n.mode=30;break}if(u-=4,M=8+(15&(c>>>=4)),n.wbits===0)n.wbits=M;else if(M>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<M,t.adler=n.check=1,n.mode=512&c?10:12,c=0,u=0;break;case 2:for(;u<16;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}if(n.flags=c,(255&n.flags)!=8){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&(O[0]=255&c,O[1]=c>>>8&255,n.check=Yd(n.check,O,2,0)),c=0,u=0,n.mode=3;case 3:for(;u<32;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}n.head&&(n.head.time=c),512&n.flags&&(O[0]=255&c,O[1]=c>>>8&255,O[2]=c>>>16&255,O[3]=c>>>24&255,n.check=Yd(n.check,O,4,0)),c=0,u=0,n.mode=4;case 4:for(;u<16;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&(O[0]=255&c,O[1]=c>>>8&255,n.check=Yd(n.check,O,2,0)),c=0,u=0,n.mode=5;case 5:if(1024&n.flags){for(;u<16;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&(O[0]=255&c,O[1]=c>>>8&255,n.check=Yd(n.check,O,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((h=n.length)>s&&(h=s),h&&(n.head&&(M=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),fc.arraySet(n.head.extra,r,i,h,M)),512&n.flags&&(n.check=Yd(n.check,r,h,i)),s-=h,i+=h,n.length-=h),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(s===0)break e;h=0;do M=r[i+h++],n.head&&M&&n.length<65536&&(n.head.name+=String.fromCharCode(M));while(M&&h<s);if(512&n.flags&&(n.check=Yd(n.check,r,h,i)),s-=h,i+=h,M)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(s===0)break e;h=0;do M=r[i+h++],n.head&&M&&n.length<65536&&(n.head.comment+=String.fromCharCode(M));while(M&&h<s);if(512&n.flags&&(n.check=Yd(n.check,r,h,i)),s-=h,i+=h,M)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;u<16;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}if(c!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;u<32;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}t.adler=n.check=Vve(c),c=0,u=0,n.mode=11;case 11:if(n.havedict===0)return t.next_out=o,t.avail_out=l,t.next_in=i,t.avail_in=s,n.hold=c,n.bits=u,2;t.adler=n.check=1,n.mode=12;case 12:if(e===5||e===6)break e;case 13:if(n.last){c>>>=7&u,u-=7&u,n.mode=27;break}for(;u<3;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}switch(n.last=1&c,u-=1,3&(c>>>=1)){case 0:n.mode=14;break;case 1:if(GYe(n),n.mode=20,e===6){c>>>=2,u-=2;break e}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}c>>>=2,u-=2;break;case 14:for(c>>>=7&u,u-=7&u;u<32;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}if((65535&c)!=(c>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&c,c=0,u=0,n.mode=15,e===6)break e;case 15:n.mode=16;case 16:if(h=n.length){if(h>s&&(h=s),h>l&&(h=l),h===0)break e;fc.arraySet(a,r,i,h,o),s-=h,i+=h,l-=h,o+=h,n.length-=h;break}n.mode=12;break;case 17:for(;u<14;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}if(n.nlen=257+(31&c),c>>>=5,u-=5,n.ndist=1+(31&c),c>>>=5,u-=5,n.ncode=4+(15&c),c>>>=4,u-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;u<3;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}n.lens[N[n.have++]]=7&c,c>>>=3,u-=3}for(;n.have<19;)n.lens[N[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,w={bits:n.lenbits},S=D_(0,n.lens,0,19,n.lencode,0,n.work,w),n.lenbits=w.bits,S){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;y=(T=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,m=65535&T,!((g=T>>>24)<=u);){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}if(m<16)c>>>=g,u-=g,n.lens[n.have++]=m;else{if(m===16){for(_=g+2;u<_;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}if(c>>>=g,u-=g,n.have===0){t.msg="invalid bit length repeat",n.mode=30;break}M=n.lens[n.have-1],h=3+(3&c),c>>>=2,u-=2}else if(m===17){for(_=g+3;u<_;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}u-=g,M=0,h=3+(7&(c>>>=g)),c>>>=3,u-=3}else{for(_=g+7;u<_;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}u-=g,M=0,h=11+(127&(c>>>=g)),c>>>=7,u-=7}if(n.have+h>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;h--;)n.lens[n.have++]=M}}if(n.mode===30)break;if(n.lens[256]===0){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,w={bits:n.lenbits},S=D_(1,n.lens,0,n.nlen,n.lencode,0,n.work,w),n.lenbits=w.bits,S){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,w={bits:n.distbits},S=D_(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,w),n.distbits=w.bits,S){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,e===6)break e;case 20:n.mode=21;case 21:if(s>=6&&l>=258){t.next_out=o,t.avail_out=l,t.next_in=i,t.avail_in=s,n.hold=c,n.bits=u,KYe(t,d),o=t.next_out,a=t.output,l=t.avail_out,i=t.next_in,r=t.input,s=t.avail_in,c=n.hold,u=n.bits,n.mode===12&&(n.back=-1);break}for(n.back=0;y=(T=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,m=65535&T,!((g=T>>>24)<=u);){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}if(y&&!(240&y)){for(R=g,A=y,x=m;y=(T=n.lencode[x+((c&(1<<R+A)-1)>>R)])>>>16&255,m=65535&T,!(R+(g=T>>>24)<=u);){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}c>>>=R,u-=R,n.back+=R}if(c>>>=g,u-=g,n.back+=g,n.length=m,y===0){n.mode=26;break}if(32&y){n.back=-1,n.mode=12;break}if(64&y){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&y,n.mode=22;case 22:if(n.extra){for(_=n.extra;u<_;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;y=(T=n.distcode[c&(1<<n.distbits)-1])>>>16&255,m=65535&T,!((g=T>>>24)<=u);){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}if(!(240&y)){for(R=g,A=y,x=m;y=(T=n.distcode[x+((c&(1<<R+A)-1)>>R)])>>>16&255,m=65535&T,!(R+(g=T>>>24)<=u);){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}c>>>=R,u-=R,n.back+=R}if(c>>>=g,u-=g,n.back+=g,64&y){t.msg="invalid distance code",n.mode=30;break}n.offset=m,n.extra=15&y,n.mode=24;case 24:if(n.extra){for(_=n.extra;u<_;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(l===0)break e;if(h=d-l,n.offset>h){if((h=n.offset-h)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}h>n.wnext?(h-=n.wnext,p=n.wsize-h):p=n.wnext-h,h>n.length&&(h=n.length),v=n.window}else v=a,p=o-n.offset,h=n.length;h>l&&(h=l),l-=h,n.length-=h;do a[o++]=v[p++];while(--h);n.length===0&&(n.mode=21);break;case 26:if(l===0)break e;a[o++]=n.length,l--,n.mode=21;break;case 27:if(n.wrap){for(;u<32;){if(s===0)break e;s--,c|=r[i++]<<u,u+=8}if(d-=l,t.total_out+=d,n.total+=d,d&&(t.adler=n.check=n.flags?Yd(n.check,a,d,o-d):IQ(n.check,a,d,o-d)),d=l,(n.flags?c:Vve(c))!==n.check){t.msg="incorrect data check",n.mode=30;break}c=0,u=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;u<32;){if(s===0)break e;s--,c+=r[i++]<<u,u+=8}if(c!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}c=0,u=0}n.mode=29;case 29:S=1;break e;case 30:S=-3;break e;case 31:return-4;default:return-2}return t.next_out=o,t.avail_out=l,t.next_in=i,t.avail_in=s,n.hold=c,n.bits=u,(n.wsize||d!==t.avail_out&&n.mode<30&&(n.mode<27||e!==4))&&Yve(t,t.output,t.next_out,d-t.avail_out),f-=t.avail_in,d-=t.avail_out,t.total_in+=f,t.total_out+=d,n.total+=d,n.wrap&&d&&(t.adler=n.check=n.flags?Yd(n.check,a,d,t.next_out-d):IQ(n.check,a,d,t.next_out-d)),t.data_type=n.bits+(n.last?64:0)+(n.mode===12?128:0)+(n.mode===20||n.mode===15?256:0),(f===0&&d===0||e===4)&&S===0&&(S=-5),S},pf.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},pf.inflateGetHeader=function(t,e){var n;return t&&t.state&&2&(n=t.state).wrap?(n.head=e,e.done=!1,0):-2},pf.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?(n=t.state).wrap!==0&&n.mode!==11?-2:n.mode===11&&IQ(1,e,r,0)!==n.check?-3:Yve(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},pf.inflateInfo="pako inflate (from Nodeca project)";var J3e={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},Bx=pf,n_=_0,DE=w2,di=J3e,HG=$j,$Ye=K3e,zYe=function(){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},j3e=Object.prototype.toString;function I2(t){if(!(this instanceof I2))return new I2(t);this.options=n_.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&!(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $Ye,this.strm.avail_out=0;var n=Bx.inflateInit2(this.strm,e.windowBits);if(n!==di.Z_OK)throw new Error(HG[n]);if(this.header=new zYe,Bx.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=DE.string2buf(e.dictionary):j3e.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=Bx.inflateSetDictionary(this.strm,e.dictionary))!==di.Z_OK))throw new Error(HG[n])}function FQ(t,e){var n=new I2(e);if(n.push(t,!0),n.err)throw n.msg||HG[n.err];return n.result}I2.prototype.push=function(t,e){var n,r,a,i,o,s=this.strm,l=this.options.chunkSize,c=this.options.dictionary,u=!1;if(this.ended)return!1;r=e===~~e?e:e===!0?di.Z_FINISH:di.Z_NO_FLUSH,typeof t=="string"?s.input=DE.binstring2buf(t):j3e.call(t)==="[object ArrayBuffer]"?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(s.avail_out===0&&(s.output=new n_.Buf8(l),s.next_out=0,s.avail_out=l),(n=Bx.inflate(s,di.Z_NO_FLUSH))===di.Z_NEED_DICT&&c&&(n=Bx.inflateSetDictionary(this.strm,c)),n===di.Z_BUF_ERROR&&u===!0&&(n=di.Z_OK,u=!1),n!==di.Z_STREAM_END&&n!==di.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(s.avail_out!==0&&n!==di.Z_STREAM_END&&(s.avail_in!==0||r!==di.Z_FINISH&&r!==di.Z_SYNC_FLUSH)||(this.options.to==="string"?(a=DE.utf8border(s.output,s.next_out),i=s.next_out-a,o=DE.buf2string(s.output,a),s.next_out=i,s.avail_out=l-i,i&&n_.arraySet(s.output,s.output,a,i,0),this.onData(o)):this.onData(n_.shrinkBuf(s.output,s.next_out)))),s.avail_in===0&&s.avail_out===0&&(u=!0)}while((s.avail_in>0||s.avail_out===0)&&n!==di.Z_STREAM_END);return n===di.Z_STREAM_END&&(r=di.Z_FINISH),r===di.Z_FINISH?(n=Bx.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===di.Z_OK):r!==di.Z_SYNC_FLUSH||(this.onEnd(di.Z_OK),s.avail_out=0,!0)},I2.prototype.onData=function(t){this.chunks.push(t)},I2.prototype.onEnd=function(t){t===di.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=n_.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},t_.Inflate=I2,t_.inflate=FQ,t_.inflateRaw=function(t,e){return(e=e||{}).raw=!0,FQ(t,e)},t_.ungzip=FQ;var q3e={};(0,_0.assign)(q3e,J5,t_,J3e);var JYe=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",jYe=q3e,Bve=oi(),VE=Lu,qYe=JYe?"uint8array":"array";function Bm(t,e){VE.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}FE.magic="\b\0",Bve.inherits(Bm,VE),Bm.prototype.processChunk=function(t){this.meta=t.meta,this._pako===null&&this._createPako(),this._pako.push(Bve.transformTo(qYe,t.data),!1)},Bm.prototype.flush=function(){VE.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},Bm.prototype.cleanUp=function(){VE.prototype.cleanUp.call(this),this._pako=null},Bm.prototype._createPako=function(){this._pako=new jYe[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},FE.compressWorker=function(t){return new Bm("Deflate",t)},FE.uncompressWorker=function(){return new Bm("Inflate",{})};var Zve=Lu;tX.STORE={magic:"\0\0",compressWorker:function(){return new Zve("STORE compression")},uncompressWorker:function(){return new Zve("STORE decompression")}},tX.DEFLATE=FE;var eMe={LOCAL_FILE_HEADER:"PK",CENTRAL_FILE_HEADER:"PK",CENTRAL_DIRECTORY_END:"PK",ZIP64_CENTRAL_DIRECTORY_LOCATOR:"PK\x07",ZIP64_CENTRAL_DIRECTORY_END:"PK",DATA_DESCRIPTOR:"PK\x07\b"},vx=oi(),nx=Lu,XQ=kS,Qve=Qj,aX=eMe,ma=function(t,e){var n,r="";for(n=0;n<e;n++)r+=String.fromCharCode(255&t),t>>>=8;return r},Kve=function(t,e,n,r,a,i){var o,s,l=t.file,c=t.compression,u=i!==XQ.utf8encode,f=vx.transformTo("string",i(l.name)),d=vx.transformTo("string",XQ.utf8encode(l.name)),h=l.comment,p=vx.transformTo("string",i(h)),v=vx.transformTo("string",XQ.utf8encode(h)),g=d.length!==l.name.length,y=v.length!==h.length,m="",R="",A="",x=l.dir,M=l.date,S={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(S.crc32=t.crc32,S.compressedSize=t.compressedSize,S.uncompressedSize=t.uncompressedSize);var w=0;e&&(w|=8),u||!g&&!y||(w|=2048);var _,T,O,N=0,P=0;x&&(N|=16),a==="UNIX"?(P=798,N|=(_=l.unixPermissions,T=x,O=_,_||(O=T?16893:33204),(65535&O)<<16)):(P=20,N|=63&(l.dosPermissions||0)),o=M.getUTCHours(),o<<=6,o|=M.getUTCMinutes(),o<<=5,o|=M.getUTCSeconds()/2,s=M.getUTCFullYear()-1980,s<<=4,s|=M.getUTCMonth()+1,s<<=5,s|=M.getUTCDate(),g&&(R=ma(1,1)+ma(Qve(f),4)+d,m+="up"+ma(R.length,2)+R),y&&(A=ma(1,1)+ma(Qve(p),4)+v,m+="uc"+ma(A.length,2)+A);var C="";return C+=`-\0`,C+=ma(w,2),C+=c.magic,C+=ma(o,2),C+=ma(s,2),C+=ma(S.crc32,4),C+=ma(S.compressedSize,4),C+=ma(S.uncompressedSize,4),C+=ma(f.length,2),C+=ma(m.length,2),{fileRecord:aX.LOCAL_FILE_HEADER+C+f+m,dirRecord:aX.CENTRAL_FILE_HEADER+ma(P,2)+C+ma(p.length,2)+"\0\0\0\0"+ma(N,4)+ma(r,4)+f+m+p}},eBe=function(t){return aX.DATA_DESCRIPTOR+ma(t.crc32,4)+ma(t.compressedSize,4)+ma(t.uncompressedSize,4)};function vf(t,e,n,r){nx.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}vx.inherits(vf,nx),vf.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,nx.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-r-1))/n:100}}))},vf.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=Kve(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},vf.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=Kve(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:eBe(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},vf.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,r=function(a,i,o,s,l){var c=vx.transformTo("string",l(s));return aX.CENTRAL_DIRECTORY_END+"\0\0\0\0"+ma(a,2)+ma(a,2)+ma(i,4)+ma(o,4)+ma(c.length,2)+c}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},vf.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},vf.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",function(n){e.processChunk(n)}),t.on("end",function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()}),t.on("error",function(n){e.error(n)}),this},vf.prototype.resume=function(){return!!nx.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},vf.prototype.error=function(t){var e=this._sources;if(!nx.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch{}return!0},vf.prototype.lock=function(){nx.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()};var tBe=tX,nBe=vf;I3e.generateWorker=function(t,e,n){var r=new nBe(e.streamFiles,n,e.platform,e.encodeFileName),a=0;try{t.forEach(function(i,o){a++;var s=function(f,d){var h=f||d,p=tBe[h];if(!p)throw new Error(h+" is not a valid compression method !");return p}(o.options.compression,e.compression),l=o.options.compressionOptions||e.compressionOptions||{},c=o.dir,u=o.date;o._compressWorker(s,l).withStreamInfo("file",{name:i,dir:c,date:u,comment:o.comment||"",unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions}).pipe(r)}),r.entriesCount=a}catch(i){r.error(i)}return r};var rBe=oi(),UE=Lu;function r_(t,e){UE.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}rBe.inherits(r_,UE),r_.prototype._bindStream=function(t){var e=this;this._stream=t,t.pause(),t.on("data",function(n){e.push({data:n,meta:{percent:0}})}).on("error",function(n){e.isPaused?this.generatedError=n:e.error(n)}).on("end",function(){e.isPaused?e._upstreamEnded=!0:e.end()})},r_.prototype.pause=function(){return!!UE.prototype.pause.call(this)&&(this._stream.pause(),!0)},r_.prototype.resume=function(){return!!UE.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)};var aBe=r_,iBe=kS,V_=oi(),tMe=Lu,oBe=T3e,nMe=O3e,Hve=Kj,sBe=EYe,lBe=I3e,Gve=QD,cBe=aBe,rMe=function(t,e,n){var r,a=V_.getTypeOf(e),i=V_.extend(n||{},nMe);i.date=i.date||new Date,i.compression!==null&&(i.compression=i.compression.toUpperCase()),typeof i.unixPermissions=="string"&&(i.unixPermissions=parseInt(i.unixPermissions,8)),i.unixPermissions&&16384&i.unixPermissions&&(i.dir=!0),i.dosPermissions&&16&i.dosPermissions&&(i.dir=!0),i.dir&&(t=aMe(t)),i.createFolders&&(r=uBe(t))&&iMe.call(this,r,!0);var o=a==="string"&&i.binary===!1&&i.base64===!1;n&&n.binary!==void 0||(i.binary=!o),(e instanceof Hve&&e.uncompressedSize===0||i.dir||!e||e.length===0)&&(i.base64=!1,i.binary=!0,e="",i.compression="STORE",a="string");var s=null;s=e instanceof Hve||e instanceof tMe?e:Gve.isNode&&Gve.isStream(e)?new cBe(t,e):V_.prepareContent(t,e,i.binary,i.optimizedBinaryString,i.base64);var l=new sBe(t,s,i);this.files[t]=l},uBe=function(t){t.slice(-1)==="/"&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return e>0?t.substring(0,e):""},aMe=function(t){return t.slice(-1)!=="/"&&(t+="/"),t},iMe=function(t,e){return e=e!==void 0?e:nMe.createFolders,t=aMe(t),this.files[t]||rMe.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function $ve(t){return Object.prototype.toString.call(t)==="[object RegExp]"}var fBe={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,r;for(e in this.files)r=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,r)},filter:function(t){var e=[];return this.forEach(function(n,r){t(n,r)&&e.push(r)}),e},file:function(t,e,n){if(arguments.length===1){if($ve(t)){var r=t;return this.filter(function(i,o){return!o.dir&&r.test(i)})}var a=this.files[this.root+t];return a&&!a.dir?a:null}return t=this.root+t,rMe.call(this,t,e,n),this},folder:function(t){if(!t)return this;if($ve(t))return this.filter(function(a,i){return i.dir&&t.test(a)});var e=this.root+t,n=iMe.call(this,e),r=this.clone();return r.root=n.name,r},remove:function(t){t=this.root+t;var e=this.files[t];if(e||(t.slice(-1)!=="/"&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter(function(a,i){return i.name.slice(0,t.length)===t}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=V_.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:iBe.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),n.type==="binarystring"&&(n.type="string"),!n.type)throw new Error("No output type specified.");V_.checkSupport(n.type),n.platform!=="darwin"&&n.platform!=="freebsd"&&n.platform!=="linux"&&n.platform!=="sunos"||(n.platform="UNIX"),n.platform==="win32"&&(n.platform="DOS");var r=n.comment||this.comment||"";e=lBe.generateWorker(this,n,r)}catch(a){(e=new tMe("error")).error(a)}return new oBe(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}},dBe=fBe,hBe=oi();function oMe(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}oMe.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return hBe.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}};var sMe=oMe,lMe=sMe;function rx(t){lMe.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}oi().inherits(rx,lMe),rx.prototype.byteAt=function(t){return this.data[this.zero+t]},rx.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),a=t.charCodeAt(3),i=this.length-4;i>=0;--i)if(this.data[i]===e&&this.data[i+1]===n&&this.data[i+2]===r&&this.data[i+3]===a)return i-this.zero;return-1},rx.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),a=t.charCodeAt(3),i=this.readData(4);return e===i[0]&&n===i[1]&&r===i[2]&&a===i[3]},rx.prototype.readData=function(t){if(this.checkOffset(t),t===0)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var cMe=rx,uMe=sMe;function ax(t){uMe.call(this,t)}oi().inherits(ax,uMe),ax.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},ax.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},ax.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},ax.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var pBe=ax,fMe=cMe;function GG(t){fMe.call(this,t)}oi().inherits(GG,fMe),GG.prototype.readData=function(t){if(this.checkOffset(t),t===0)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var dMe=GG,hMe=dMe;function $G(t){hMe.call(this,t)}oi().inherits($G,hMe),$G.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var vBe=$G,u9=oi(),zve=Ti,gBe=cMe,mBe=pBe,yBe=vBe,ABe=dMe,pMe=function(t){var e=u9.getTypeOf(t);return u9.checkSupport(e),e!=="string"||zve.uint8array?e==="nodebuffer"?new yBe(t):zve.uint8array?new ABe(u9.transformTo("uint8array",t)):new gBe(u9.transformTo("array",t)):new mBe(t)},DQ=pMe,kv=oi(),RBe=Kj,Jve=Qj,f9=kS,d9=tX,bBe=Ti;function vMe(t,e){this.options=t,this.loadOptions=e}vMe.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(e=function(r){for(var a in d9)if(Object.prototype.hasOwnProperty.call(d9,a)&&d9[a].magic===r)return d9[a];return null}(this.compressionMethod),e===null)throw new Error("Corrupted zip : compression "+kv.pretty(this.compressionMethod)+" unknown (inner file : "+kv.transformTo("string",this.fileName)+")");this.decompressed=new RBe(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),t===0&&(this.dosPermissions=63&this.externalFileAttributes),t===3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=DQ(this.extraFields[1].value);this.uncompressedSize===kv.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===kv.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===kv.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===kv.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,r,a=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<a;)e=t.readInt(2),n=t.readInt(2),r=t.readData(n),this.extraFields[e]={id:e,length:n,value:r};t.setIndex(a)},handleUTF8:function(){var t=bBe.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=f9.utf8decode(this.fileName),this.fileCommentStr=f9.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(e!==null)this.fileNameStr=e;else{var n=kv.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(r!==null)this.fileCommentStr=r;else{var a=kv.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=DQ(t.value);return e.readInt(1)!==1||Jve(this.fileName)!==e.readInt(4)?null:f9.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=DQ(t.value);return e.readInt(1)!==1||Jve(this.fileComment)!==e.readInt(4)?null:f9.utf8decode(e.readData(t.length-5))}return null}};var xBe=vMe,SBe=pMe,Xp=oi(),cf=eMe,MBe=xBe,_Be=Ti;function gMe(t){this.files=[],this.loadOptions=t}gMe.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+Xp.pretty(e)+", expected "+Xp.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var r=this.reader.readString(4)===e;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=_Be.uint8array?"uint8array":"array",n=Xp.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,r=this.zip64EndOfCentralSize-44;0<r;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(cf.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(cf.CENTRAL_FILE_HEADER);)(t=new MBe({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(cf.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,cf.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(cf.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===Xp.MAX_VALUE_16BITS||this.diskWithCentralDirStart===Xp.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===Xp.MAX_VALUE_16BITS||this.centralDirRecords===Xp.MAX_VALUE_16BITS||this.centralDirSize===Xp.MAX_VALUE_32BITS||this.centralDirOffset===Xp.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(cf.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(cf.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,cf.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(cf.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(cf.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=e-n;if(r>0)this.isSignature(e,cf.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(t){this.reader=SBe(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};var wBe=gMe,VQ=oi(),WE=b8,LBe=kS,TBe=wBe,OBe=N3e,jve=QD;function PBe(t){return new WE.Promise(function(e,n){var r=t.decompressed.getContentWorker().pipe(new OBe);r.on("error",function(a){n(a)}).on("end",function(){r.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()}).resume()})}function ru(){if(!(this instanceof ru))return new ru;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new ru;for(var e in this)typeof this[e]!="function"&&(t[e]=this[e]);return t}}ru.prototype=dBe,ru.prototype.loadAsync=function(t,e){var n=this;return e=VQ.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:LBe.utf8decode}),jve.isNode&&jve.isStream(t)?WE.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):VQ.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then(function(r){var a=new TBe(e);return a.load(r),a}).then(function(r){var a=[WE.Promise.resolve(r)],i=r.files;if(e.checkCRC32)for(var o=0;o<i.length;o++)a.push(PBe(i[o]));return WE.Promise.all(a)}).then(function(r){for(var a=r.shift(),i=a.files,o=0;o<i.length;o++){var s=i[o],l=s.fileNameStr,c=VQ.resolve(s.fileNameStr);n.file(c,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:e.createFolders}),s.dir||(n.file(c).unsafeOriginalName=l)}return a.zipComment.length&&(n.comment=a.zipComment),n})},ru.support=Ti,ru.defaults=O3e,ru.version="3.10.1",ru.loadAsync=function(t,e){return new ru().loadAsync(t,e)},ru.external=b8;var CBe=ru;function iS(t){return iS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iS(t)}function NBe(t,e){var n=(e=e||{}).pos||0,r=!!e.keepComments,a=!!e.keepWhitespace,i=60,o=62,s=45,l=47,c=33,u=39,f=34,d=91,h=93;function p(M){for(var S=[];t[n];)if(t.charCodeAt(n)==i){if(t.charCodeAt(n+1)===l){var w=n+2;if(n=t.indexOf(">",n),t.substring(w,n).indexOf(M)==-1){var _=t.substring(0,n).split(`-`);throw new Error(`Unexpected close tag-Line: `+(_.length-1)+`-Column: `+(_[_.length-1].length+1)+`-Char: `+t[n])}return n+1&&(n+=1),S}if(t.charCodeAt(n+1)===c){if(t.charCodeAt(n+2)==s){const E=n;for(;n!==-1&&(t.charCodeAt(n)!==o||t.charCodeAt(n-1)!=s||t.charCodeAt(n-2)!=s||n==-1);)n=t.indexOf(">",n+1);n===-1&&(n=t.length),r&&S.push(t.substring(E,n+1))}else{if(t.charCodeAt(n+2)===d&&t.charCodeAt(n+8)===d&&t.substr(n+3,5).toLowerCase()==="cdata"){var T=t.indexOf("]]>",n);T==-1?(S.push(t.substr(n+9)),n=t.length):(S.push(t.substring(n+9,T)),n=T+3);continue}{const E=n+1;n+=2;for(var O=!1;(t.charCodeAt(n)!==o||O===!0)&&t[n];)t.charCodeAt(n)===d?O=!0:O===!0&&t.charCodeAt(n)===h&&(O=!1),n++;S.push(t.substring(E,n))}}n++;continue}var N=m();S.push(N),N.tagName[0]==="?"&&(S.push(...N.children),N.children=[])}else{var P=v();if(a)P.length>0&&S.push(P);else{var C=P.trim();C.length>0&&S.push(C)}n++}return S}function v(){var M=n;return(n=t.indexOf("<",n)-1)===-2&&(n=t.length),t.slice(M,n+1)}function g(){for(var M=n;`\r- >/= `.indexOf(t[n])===-1&&t[n];)n++;return t.slice(M,n)}var y=e.noChildNodes||["img","br","input","meta","link","hr"];function m(){n++;const M=g(),S={};let w=[];for(;t.charCodeAt(n)!==o&&t[n];){var _=t.charCodeAt(n);if(_>64&&_<91||_>96&&_<123){for(var T=g(),O=t.charCodeAt(n);O&&O!==u&&O!==f&&!(O>64&&O<91||O>96&&O<123)&&O!==o;)n++,O=t.charCodeAt(n);if(O===u||O===f){var N=R();if(n===-1)return{tagName:M,attributes:S,children:w}}else N=null,n--;S[T]=N}n++}if(t.charCodeAt(n-1)!==l)if(M=="script"){var P=n+1;n=t.indexOf("<\/script>",n),w=[t.slice(P,n)],n+=9}else M=="style"?(P=n+1,n=t.indexOf("</style>",n),w=[t.slice(P,n)],n+=8):y.indexOf(M)===-1?(n++,w=p(M)):n++;else n++;return{tagName:M,attributes:S,children:w}}function R(){var M=t[n],S=n+1;return n=t.indexOf(M,S),t.slice(S,n)}var A,x=null;if(e.attrValue!==void 0)for(e.attrName=e.attrName||"id",x=[];A=void 0,A=new RegExp("\\s"+e.attrName+`\\s*=['"]`+e.attrValue+`['"]`).exec(t),(n=A?A.index:-1)!==-1;)(n=t.lastIndexOf("<",n))!==-1&&x.push(m()),t=t.substr(n),n=0;else x=e.parseNode?m():p("");return e.filter&&(x=yMe(x,e.filter)),e.simplify?mMe(Array.isArray(x)?x:[x]):(e.setPos&&(x.pos=n),x)}function mMe(t){var e={};if(!t.length)return"";if(t.length===1&&typeof t[0]=="string")return t[0];for(var n in t.forEach(function(r){if(typeof r=="object"){e[r.tagName]||(e[r.tagName]=[]);var a=mMe(r.children);e[r.tagName].push(a),Object.keys(r.attributes).length&&typeof a!="string"&&(a._attributes=r.attributes)}}),e)e[n].length==1&&(e[n]=e[n][0]);return e}function yMe(t,e,n=0,r=""){var a=[];return t.forEach(function(i,o){if(typeof i=="object"&&e(i,o,n,r)&&a.push(i),i.children){var s=yMe(i.children,e,n+1,(r?r+".":"")+o+"."+i.tagName);a=a.concat(s)}}),a}function IBe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(l,c){if(l){if(typeof l=="string")return qve(l,c);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(l);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return qve(l,c)}}(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return o=l.done,l},e:function(l){s=!0,i=l},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw i}}}}function qve(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function e1e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function UQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?e1e(Object(n),!0).forEach(function(r){Fj(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e1e(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var WQ=0;function kBe(t){return typeof t=="string"&&t.trim()===""}function AMe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n={};if(!t.length)return n;if(t.length===1&&typeof t[0]=="string")return Object.keys(e).length?{attrs:UQ({order:WQ++},e),value:t[0]}:t[0];var r,a=IBe(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(!kBe(i)){if(iS(i)!=="object")return;if(i.tagName!=="?xml"){n[i.tagName]||(n[i.tagName]=[]);var o=AMe(i.children||[],i.attributes);iS(o)==="object"&&(o.attrs?o.attrs.order=WQ++:o.attrs={order:WQ++}),Object.keys(i.attributes||{}).length&&(o.attrs=UQ(UQ({},o.attrs),i.attributes)),n[i.tagName].push(o)}}}}catch(l){a.e(l)}finally{a.f()}for(var s in n)n[s].length===1&&(n[s]=n[s][0]);return n}function Oo(t,e){return RMe.apply(this,arguments)}function RMe(){return(RMe=Pr(en.mark(function t(e,n){var r;return en.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.file(n).async("string");case 3:return r=a.sent,a.abrupt("return",AMe(NBe(r,{keepWhitespace:!0})));case 7:return a.prev=7,a.t0=a.catch(0),a.abrupt("return",null);case 10:case"end":return a.stop()}},t,null,[[0,7]])}))).apply(this,arguments)}function iX(t){return iX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iX(t)}var EBe=/^\s+/,FBe=/\s+$/;function Gt(t,e){if(e=e||{},(t=t||"")instanceof Gt)return t;if(!(this instanceof Gt))return new Gt(t,e);var n=function(r){var a={r:0,g:0,b:0},i=1,o=null,s=null,l=null,c=!1,u=!1;typeof r=="string"&&(r=function(p){p=p.replace(EBe,"").replace(FBe,"").toLowerCase();var v,g=!1;if(zG[p])p=zG[p],g=!0;else if(p=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(v=gf.rgb.exec(p))?{r:v[1],g:v[2],b:v[3]}:(v=gf.rgba.exec(p))?{r:v[1],g:v[2],b:v[3],a:v[4]}:(v=gf.hsl.exec(p))?{h:v[1],s:v[2],l:v[3]}:(v=gf.hsla.exec(p))?{h:v[1],s:v[2],l:v[3],a:v[4]}:(v=gf.hsv.exec(p))?{h:v[1],s:v[2],v:v[3]}:(v=gf.hsva.exec(p))?{h:v[1],s:v[2],v:v[3],a:v[4]}:(v=gf.hex8.exec(p))?{r:ec(v[1]),g:ec(v[2]),b:ec(v[3]),a:o1e(v[4]),format:g?"name":"hex8"}:(v=gf.hex6.exec(p))?{r:ec(v[1]),g:ec(v[2]),b:ec(v[3]),format:g?"name":"hex"}:(v=gf.hex4.exec(p))?{r:ec(v[1]+""+v[1]),g:ec(v[2]+""+v[2]),b:ec(v[3]+""+v[3]),a:o1e(v[4]+""+v[4]),format:g?"name":"hex8"}:(v=gf.hex3.exec(p))?{r:ec(v[1]+""+v[1]),g:ec(v[2]+""+v[2]),b:ec(v[3]+""+v[3]),format:g?"name":"hex"}:!1}(r)),iX(r)=="object"&&(Dp(r.r)&&Dp(r.g)&&Dp(r.b)?(f=r.r,d=r.g,h=r.b,a={r:255*ka(f,255),g:255*ka(d,255),b:255*ka(h,255)},c=!0,u=String(r.r).substr(-1)==="%"?"prgb":"rgb"):Dp(r.h)&&Dp(r.s)&&Dp(r.v)?(o=a_(r.s),s=a_(r.v),a=function(p,v,g){p=6*ka(p,360),v=ka(v,100),g=ka(g,100);var y=Math.floor(p),m=p-y,R=g*(1-v),A=g*(1-m*v),x=g*(1-(1-m)*v),M=y%6;return{r:255*[g,A,R,R,x,g][M],g:255*[x,g,g,A,R,R][M],b:255*[R,R,x,g,g,A][M]}}(r.h,o,s),c=!0,u="hsv"):Dp(r.h)&&Dp(r.s)&&Dp(r.l)&&(o=a_(r.s),l=a_(r.l),a=function(p,v,g){var y,m,R;function A(S,w,_){return _<0&&(_+=1),_>1&&(_-=1),_<1/6?S+6*(w-S)*_:_<.5?w:_<2/3?S+(w-S)*(2/3-_)*6:S}if(p=ka(p,360),v=ka(v,100),g=ka(g,100),v===0)y=m=R=g;else{var x=g<.5?g*(1+v):g+v-g*v,M=2*g-x;y=A(M,x,p+1/3),m=A(M,x,p),R=A(M,x,p-1/3)}return{r:255*y,g:255*m,b:255*R}}(r.h,o,l),c=!0,u="hsl"),r.hasOwnProperty("a")&&(i=r.a));var f,d,h;return i=bMe(i),{ok:c,format:r.format||u,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:i}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function t1e(t,e,n){t=ka(t,255),e=ka(e,255),n=ka(n,255);var r,a,i=Math.max(t,e,n),o=Math.min(t,e,n),s=(i+o)/2;if(i==o)r=a=0;else{var l=i-o;switch(a=s>.5?l/(2-i-o):l/(i+o),i){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:a,l:s}}function n1e(t,e,n){t=ka(t,255),e=ka(e,255),n=ka(n,255);var r,a,i=Math.max(t,e,n),o=Math.min(t,e,n),s=i,l=i-o;if(a=i===0?0:l/i,i==o)r=0;else{switch(i){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:a,v:s}}function r1e(t,e,n,r){var a=[Of(Math.round(t).toString(16)),Of(Math.round(e).toString(16)),Of(Math.round(n).toString(16))];return r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function a1e(t,e,n,r){return[Of(xMe(r)),Of(Math.round(t).toString(16)),Of(Math.round(e).toString(16)),Of(Math.round(n).toString(16))].join("")}function XBe(t,e){e=e===0?0:e||10;var n=Gt(t).toHsl();return n.s-=e/100,n.s=KD(n.s),Gt(n)}function DBe(t,e){e=e===0?0:e||10;var n=Gt(t).toHsl();return n.s+=e/100,n.s=KD(n.s),Gt(n)}function VBe(t){return Gt(t).desaturate(100)}function UBe(t,e){e=e===0?0:e||10;var n=Gt(t).toHsl();return n.l+=e/100,n.l=KD(n.l),Gt(n)}function WBe(t,e){e=e===0?0:e||10;var n=Gt(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),Gt(n)}function YBe(t,e){e=e===0?0:e||10;var n=Gt(t).toHsl();return n.l-=e/100,n.l=KD(n.l),Gt(n)}function BBe(t,e){var n=Gt(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,Gt(n)}function ZBe(t){var e=Gt(t).toHsl();return e.h=(e.h+180)%360,Gt(e)}function i1e(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=Gt(t).toHsl(),r=[Gt(t)],a=360/e,i=1;i<e;i++)r.push(Gt({h:(n.h+i*a)%360,s:n.s,l:n.l}));return r}function QBe(t){var e=Gt(t).toHsl(),n=e.h;return[Gt(t),Gt({h:(n+72)%360,s:e.s,l:e.l}),Gt({h:(n+216)%360,s:e.s,l:e.l})]}function KBe(t,e,n){e=e||6,n=n||30;var r=Gt(t).toHsl(),a=360/n,i=[Gt(t)];for(r.h=(r.h-(a*e>>1)+720)%360;--e;)r.h=(r.h+a)%360,i.push(Gt(r));return i}function HBe(t,e){e=e||6;for(var n=Gt(t).toHsv(),r=n.h,a=n.s,i=n.v,o=[],s=1/e;e--;)o.push(Gt({h:r,s:a,v:i})),i=(i+s)%1;return o}Gt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=bMe(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=n1e(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=n1e(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return this._a==1?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=t1e(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=t1e(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return this._a==1?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return r1e(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(e,n,r,a,i){var o=[Of(Math.round(e).toString(16)),Of(Math.round(n).toString(16)),Of(Math.round(r).toString(16)),Of(xMe(a))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*ka(this._r,255))+"%",g:Math.round(100*ka(this._g,255))+"%",b:Math.round(100*ka(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*ka(this._r,255))+"%, "+Math.round(100*ka(this._g,255))+"%, "+Math.round(100*ka(this._b,255))+"%)":"rgba("+Math.round(100*ka(this._r,255))+"%, "+Math.round(100*ka(this._g,255))+"%, "+Math.round(100*ka(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(GBe[r1e(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+a1e(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var a=Gt(t);n="#"+a1e(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||t!=="hex"&&t!=="hex6"&&t!=="hex3"&&t!=="hex4"&&t!=="hex8"&&t!=="name"?(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),t!=="hex"&&t!=="hex6"||(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString()):t==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return Gt(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(UBe,arguments)},brighten:function(){return this._applyModification(WBe,arguments)},darken:function(){return this._applyModification(YBe,arguments)},desaturate:function(){return this._applyModification(XBe,arguments)},saturate:function(){return this._applyModification(DBe,arguments)},greyscale:function(){return this._applyModification(VBe,arguments)},spin:function(){return this._applyModification(BBe,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(KBe,arguments)},complement:function(){return this._applyCombination(ZBe,arguments)},monochromatic:function(){return this._applyCombination(HBe,arguments)},splitcomplement:function(){return this._applyCombination(QBe,arguments)},triad:function(){return this._applyCombination(i1e,[3])},tetrad:function(){return this._applyCombination(i1e,[4])}},Gt.fromRatio=function(t,e){if(iX(t)=="object"){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=r==="a"?t[r]:a_(t[r]));t=n}return Gt(t,e)},Gt.equals=function(t,e){return!(!t||!e)&&Gt(t).toRgbString()==Gt(e).toRgbString()},Gt.random=function(){return Gt.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Gt.mix=function(t,e,n){n=n===0?0:n||50;var r=Gt(t).toRgb(),a=Gt(e).toRgb(),i=n/100;return Gt({r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a})},Gt.readability=function(t,e){var n=Gt(t),r=Gt(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Gt.isReadable=function(t,e,n){var r,a,i=Gt.readability(t,e);switch(a=!1,(r=function(o){var s,l;return s=((o=o||{level:"AA",size:"small"}).level||"AA").toUpperCase(),l=(o.size||"small").toLowerCase(),s!=="AA"&&s!=="AAA"&&(s="AA"),l!=="small"&&l!=="large"&&(l="small"),{level:s,size:l}}(n)).level+r.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},Gt.mostReadable=function(t,e,n){var r,a,i,o,s=null,l=0;a=(n=n||{}).includeFallbackColors,i=n.level,o=n.size;for(var c=0;c<e.length;c++)(r=Gt.readability(t,e[c]))>l&&(l=r,s=Gt(e[c]));return Gt.isReadable(t,s,{level:i,size:o})||!a?s:(n.includeFallbackColors=!1,Gt.mostReadable(t,["#fff","#000"],n))};var zG=Gt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",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",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},GBe=Gt.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(zG);function bMe(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function ka(t,e){(function(r){return typeof r=="string"&&r.indexOf(".")!=-1&&parseFloat(r)===1})(t)&&(t="100%");var n=function(r){return typeof r=="string"&&r.indexOf("%")!=-1}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function KD(t){return Math.min(1,Math.max(0,t))}function ec(t){return parseInt(t,16)}function Of(t){return t.length==1?"0"+t:""+t}function a_(t){return t<=1&&(t=100*t+"%"),t}function xMe(t){return Math.round(255*parseFloat(t)).toString(16)}function o1e(t){return ec(t)/255}var Ev,h9,p9,gf=(h9="[\\s|\\(]+("+(Ev="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Ev+")[,|\\s]+("+Ev+")\\s*\\)?",p9="[\\s|\\(]+("+Ev+")[,|\\s]+("+Ev+")[,|\\s]+("+Ev+")[,|\\s]+("+Ev+")\\s*\\)?",{CSS_UNIT:new RegExp(Ev),rgb:new RegExp("rgb"+h9),rgba:new RegExp("rgba"+p9),hsl:new RegExp("hsl"+h9),hsla:new RegExp("hsla"+p9),hsv:new RegExp("hsv"+h9),hsva:new RegExp("hsva"+p9),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Dp(t){return!!gf.CSS_UNIT.exec(t)}function $Be(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(l,c){if(l){if(typeof l=="string")return s1e(l,c);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(l);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return s1e(l,c)}}(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return o=l.done,l},e:function(l){s=!0,i=l},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw i}}}}function s1e(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function zBe(t){for(var e,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(t),a=r.byteLength,i=a%3,o=a-i,s="",l=0;l<o;l+=3)s+=n[(16515072&(e=r[l]<<16|r[l+1]<<8|r[l+2]))>>18]+n[(258048&e)>>12]+n[(4032&e)>>6]+n[63&e];return i===1?s+=n[(252&(e=r[o]))>>2]+n[(3&e)<<4]+"==":i===2&&(s+=n[(64512&(e=r[o]<<8|r[o+1]))>>10]+n[(1008&e)>>4]+n[(15&e)<<2]+"="),s}function l1e(t){return t.substr(2+(~-t.lastIndexOf(".")>>>0))}function yb(t,e){if(!t)return t;var n="";if(t.constructor===Array)for(var r=0;r<t.length;r++)n+=e(t[r],r);else n+=e(t,0);return n}function ie(t,e){if(!t)return t;var n,r=$Be(e);try{for(r.s();!(n=r.n()).done;)if(!(t=t[n.value]))return t}catch(a){r.e(a)}finally{r.f()}return t}function oS(t){return t?Math.round(t/6e4):0}function SMe(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.replace(/[&<>"']/g,function(n){return e[n]})}function JBe(t){var e="";switch(t.toLowerCase()){case"jpg":case"jpeg":e="image/jpeg";break;case"png":e="image/png";break;case"gif":e="image/gif";break;case"emf":e="image/x-emf";break;case"wmf":e="image/x-wmf";break;case"svg":e="image/svg+xml";break;case"mp4":e="video/mp4";break;case"webm":e="video/webm";break;case"ogg":e="video/ogg";break;case"avi":e="video/avi";break;case"mpg":e="video/mpg";break;case"wmv":e="video/wmv";break;case"mp3":e="audio/mpeg";break;case"wav":e="audio/wav";break;case"tif":case"tiff":e="image/tiff"}return e}function jBe(t){return/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,})(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(t)}function Ab(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e}function qBe(t){if(typeof DOMParser>"u")return t.replace(/<[^>]+>/g,"").replace(/\s+/g," ").trim()!=="";var e=new DOMParser().parseFromString(t,"text/html");return(e.body.textContent||e.body.innerText).trim()!==""}function _o(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:4;return parseFloat(t.toFixed(e))}function JG(t,e,n,r){var a,i;if(n)i=n;else{var o=ie(e.slideContent,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);i=o||(o=ie(e.slideLayoutContent,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]))||ie(e.slideMasterContent,["p:sldMaster","p:clrMap","attrs"])}var s=t.substr(2);if(s==="phClr"&&r)a=r;else{if(i)switch(s){case"tx1":case"tx2":case"bg1":case"bg2":t="a:"+i[s]}else switch(s){case"tx1":t="a:dk1";break;case"tx2":t="a:dk2";break;case"bg1":t="a:lt1";break;case"bg2":t="a:lt2"}var l=ie(e.themeContent,["a:theme","a:themeElements","a:clrScheme",t]);!(a=ie(l,["a:srgbClr","attrs","val"]))&&l&&(a=ie(l,["a:sysClr","attrs","lastClr"]))}return a}function vh(t,e,n){var r=ie(t,["p:spPr","a:ln"]);if(!r){var a=ie(t,["p:style","a:lnRef"]);if(a){var i=ie(a,["attrs","idx"]);r=n.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:lnStyleLst"]["a:ln"][Number(i)-1]}}r||(r=t);var o=ie(r,["a:noFill"])?0:parseInt(ie(r,["attrs","w"]))/12700;isNaN(o)&&(o=r||e!=="obj"?0:1);var s=ie(r,["a:solidFill","a:srgbClr","attrs","val"]);if(!s){var l=ie(r,["a:solidFill","a:schemeClr"]);s=JG("a:"+ie(l,["attrs","val"]),n)}if(!s){var c=ie(t,["p:style","a:lnRef","a:schemeClr"]);if(s=JG("a:"+ie(c,["attrs","val"]),n)){var u=ie(c,["a:shade","attrs","val"]);if(u){u=parseInt(u)/1e5;var f=Gt("#"+s).toHsl();s=Gt({h:f.h,s:f.s,l:f.l*u,a:f.a}).toHex()}}}s=s?"#".concat(s):"#000000";var d="solid",h="0";switch(ie(r,["a:prstDash","attrs","val"])){case"solid":d="solid",h="0";break;case"dash":d="dashed",h="5";break;case"dashDot":d="dashed",h="5, 5, 1, 5";break;case"dot":d="dotted",h="1, 5";break;case"lgDash":d="dashed",h="10, 5";break;case"lgDashDotDot":d="dotted",h="10, 5, 1, 5, 1, 5";break;case"sysDash":d="dashed",h="5, 2";break;case"sysDashDot":d="dotted",h="5, 2, 1, 5";break;case"sysDashDotDot":d="dotted",h="5, 2, 1, 5, 1, 5";break;case"sysDot":d="dotted",h="2, 5"}return{borderColor:s,borderWidth:o,borderType:d,strokeDasharray:h}}function YQ(t,e,n){return n<0&&(n+=6),n>=6&&(n-=6),n<1?(e-t)*n+t:n<3?e:n<4?(e-t)*(4-n)+t:t}function MMe(t,e,n){var r=Gt(t).toHsl();e>=1&&(e=1);var a=r.l*e+(1-e);return n?Gt({h:r.h,s:r.s,l:a,a:r.a}).toHex8():Gt({h:r.h,s:r.s,l:a,a:r.a}).toHex()}function jG(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(l,c){if(l){if(typeof l=="string")return c1e(l,c);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(l);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return c1e(l,c)}}(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return o=l.done,l},e:function(l){s=!0,i=l},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw i}}}}function c1e(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jp(t){var e="";return t["a:noFill"]&&(e="NO_FILL"),t["a:solidFill"]&&(e="SOLID_FILL"),t["a:gradFill"]&&(e="GRADIENT_FILL"),t["a:pattFill"]&&(e="PATTERN_FILL"),t["a:blipFill"]&&(e="PIC_FILL"),t["a:grpFill"]&&(e="GROUP_FILL"),e}function qG(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return{ref:t,base64:"",blob:""}}function _Me(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return{ref:t,blob:""}}function eZe(t,e){var n=t[e]||{};return t[e]=n,n}function zj(t,e,n){return e$.apply(this,arguments)}function e$(){return e$=Pr(en.mark(function t(e,n,r){var a,i,o,s,l,c,u,f=arguments;return en.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(a=f.length>3&&f[3]!==void 0?f[3]:"base64",e&&(a==="base64"||a==="blob")){d.next=3;break}return d.abrupt("return","");case 3:if(i=SMe(e),o=eZe(n,r),s=o[i]||{base64:"",blob:""},o[i]=s,!s[a]){d.next=9;break}return d.abrupt("return",s[a]);case 9:if((l=i.split(".").pop().toLowerCase())!=="xml"){d.next=12;break}return d.abrupt("return","");case 12:return d.next=14,n.zip.file(i).async("arraybuffer");case 14:return c=d.sent,u=JBe(l),a==="base64"?s.base64="data:".concat(u,";base64,").concat(zBe(c)):a==="blob"&&(s.blob=URL.createObjectURL(new Blob([c],u?{type:u}:void 0))),d.abrupt("return",s[a]);case 18:case"end":return d.stop()}},t)})),e$.apply(this,arguments)}function u1e(t,e){return t$.apply(this,arguments)}function t$(){return t$=Pr(en.mark(function t(e,n){var r,a=arguments;return en.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=a.length>2&&a[2]!==void 0?a[2]:"base64",i.next=3,zj(e,n,"loadedImages",r);case 3:return i.abrupt("return",i.sent);case 4:case"end":return i.stop()}},t)})),t$.apply(this,arguments)}function tZe(t,e){return n$.apply(this,arguments)}function n$(){return n$=Pr(en.mark(function t(e,n){var r=arguments;return en.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if((r.length>2&&r[2]!==void 0?r[2]:"blob")==="blob"){a.next=3;break}return a.abrupt("return","");case 3:return a.next=5,zj(e,n,"loadedVideos","blob");case 5:return a.abrupt("return",a.sent);case 6:case"end":return a.stop()}},t)})),n$.apply(this,arguments)}function nZe(t,e){return r$.apply(this,arguments)}function r$(){return r$=Pr(en.mark(function t(e,n){var r=arguments;return en.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if((r.length>2&&r[2]!==void 0?r[2]:"blob")==="blob"){a.next=3;break}return a.abrupt("return","");case 3:return a.next=5,zj(e,n,"loadedAudios","blob");case 5:return a.abrupt("return",a.sent);case 6:case"end":return a.stop()}},t)})),r$.apply(this,arguments)}function rZe(t){var e=ie(t,["options","imageMode"]);return e==="blob"||e==="both"||e==="none"?e:"base64"}function aZe(t){return ie(t,["options","videoMode"])==="blob"?"blob":"none"}function iZe(t){return ie(t,["options","audioMode"])==="blob"?"blob":"none"}function wMe(t,e){return LMe.apply(this,arguments)}function LMe(){return(LMe=Pr(en.mark(function t(e,n){var r,a;return en.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(r=qG(e||""),e){i.next=3;break}return i.abrupt("return",r);case 3:if((a=rZe(n))!=="base64"&&a!=="both"){i.next=8;break}return i.next=7,u1e(e,n,"base64");case 7:r.base64=i.sent;case 8:if(a!=="blob"&&a!=="both"){i.next=12;break}return i.next=11,u1e(e,n,"blob");case 11:r.blob=i.sent;case 12:return i.abrupt("return",r);case 13:case"end":return i.stop()}},t)}))).apply(this,arguments)}function oZe(t,e){return TMe.apply(this,arguments)}function TMe(){return(TMe=Pr(en.mark(function t(e,n){var r;return en.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(r=_Me(e||""),e){a.next=3;break}return a.abrupt("return",r);case 3:if(aZe(n)!=="blob"){a.next=7;break}return a.next=6,tZe(e,n,"blob");case 6:r.blob=a.sent;case 7:return a.abrupt("return",r);case 8:case"end":return a.stop()}},t)}))).apply(this,arguments)}function sZe(t,e){return OMe.apply(this,arguments)}function OMe(){return(OMe=Pr(en.mark(function t(e,n){var r;return en.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(r=_Me(e||""),e){a.next=3;break}return a.abrupt("return",r);case 3:if(iZe(n)!=="blob"){a.next=7;break}return a.next=6,nZe(e,n,"blob");case 6:r.blob=a.sent;case 7:return a.abrupt("return",r);case 8:case"end":return a.stop()}},t)}))).apply(this,arguments)}function HD(t,e,n){return a$.apply(this,arguments)}function a$(){return a$=Pr(en.mark(function t(e,n,r){var a,i;return en.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(n){o.next=2;break}return o.abrupt("return",qG());case 2:if(a=ie(n,["a:blip","attrs","r:embed"]),e==="slideBg"||e==="slide"?i=ie(r,["slideResObj",a,"target"]):e==="slideLayoutBg"?i=ie(r,["layoutResObj",a,"target"]):e==="slideMasterBg"?i=ie(r,["masterResObj",a,"target"]):e==="themeBg"?i=ie(r,["themeResObj",a,"target"]):e==="diagramBg"&&(i=ie(r,["diagramResObj",a,"target"])),i){o.next=6;break}return o.abrupt("return",qG());case 6:return o.next=8,wMe(i,r);case 8:return o.abrupt("return",o.sent);case 9:case"end":return o.stop()}},t)})),a$.apply(this,arguments)}function PMe(t){var e=ie(t["a:blip"],["a:alphaModFix","attrs"]),n=1;return e&&e.amt&&e.amt!==""&&(n=parseInt(e.amt)/1e5),n}function lZe(t){if(!t)return null;var e=t["a:blip"];if(!e)return null;var n={},r=e["a:extLst"];if(r&&r["a:ext"]){var a,i=jG(Array.isArray(r["a:ext"])?r["a:ext"]:[r["a:ext"]]);try{for(i.s();!(a=i.n()).done;){var o=a.value;if(o["a14:imgProps"]&&o["a14:imgProps"]["a14:imgLayer"]){var s=o["a14:imgProps"]["a14:imgLayer"]["a14:imgEffect"];if(s){var l,c=jG(Array.isArray(s)?s:[s]);try{for(c.s();!(l=c.n()).done;){var u=l.value;if(u["a14:saturation"]){var f=ie(u,["a14:saturation","attrs","sat"]);f&&(n.saturation=parseInt(f)/1e5)}if(u["a14:brightnessContrast"]){var d=ie(u,["a14:brightnessContrast","attrs","bright"]),h=ie(u,["a14:brightnessContrast","attrs","contrast"]);d&&(n.brightness=parseInt(d)/1e5),h&&(n.contrast=parseInt(h)/1e5)}if(u["a14:sharpenSoften"]){var p=ie(u,["a14:sharpenSoften","attrs","amount"]);if(p){var v=parseInt(p)/1e5;v>0?n.sharpen=v:n.soften=Math.abs(v)}}if(u["a14:colorTemperature"]){var g=ie(u,["a14:colorTemperature","attrs","colorTemp"]);g&&(n.colorTemperature=parseInt(g))}}}catch(y){c.e(y)}finally{c.f()}}}}}catch(y){i.e(y)}finally{i.f()}}return Object.keys(n).length>0?n:null}function f5(t,e,n){return CMe.apply(this,arguments)}function CMe(){return(CMe=Pr(en.mark(function t(e,n,r){var a,i,o,s;return en.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,HD(n,e["a:blipFill"],r);case 2:return a=l.sent,i=e["a:blipFill"]["a:blip"],o=ie(i,["a:alphaModFix","attrs"]),s=1,o&&o.amt&&o.amt!==""&&(s=parseInt(o.amt)/1e5),l.abrupt("return",{ref:a.ref,base64:a.base64,blob:a.blob,opacity:s});case 8:case"end":return l.stop()}},t)}))).apply(this,arguments)}function Jj(t,e){for(var n=t["a:gsLst"]["a:gs"],r=[],a=0;a<n.length;a++){var i=Kr(n[a],void 0,void 0,e),o=ie(n[a],["attrs","pos"]);r[a]={pos:o?o/1e3+"%":"",color:i}}var s=t["a:lin"],l=0,c="line";if(s)l=oS(s.attrs.ang);else{var u=t["a:path"];u&&u.attrs&&u.attrs.path&&(c=u.attrs.path)}return{rot:l,path:c,colors:r.sort(function(f,d){return parseInt(f.pos)-parseInt(d.pos)})}}function L2(t,e){if(!t)return null;var n=t["a:pattFill"];if(!n)return null;var r=ie(n,["attrs","prst"]),a=n["a:fgClr"],i=n["a:bgClr"],o="#000000",s="#FFFFFF";return a&&(o=Kr(a,void 0,void 0,e)),i&&(s=Kr(i,void 0,void 0,e)),{type:r,foregroundColor:o,backgroundColor:s}}function Rb(t,e,n,r){if(t){for(var a=t["a:gradFill"],i=a["a:gsLst"]["a:gs"],o=[],s=0;s<i.length;s++){var l=Kr(i[s],n["p:sldMaster"]["p:clrMap"].attrs,e,r),c=ie(i[s],["attrs","pos"]);o[s]={pos:c?c/1e3+"%":"",color:l}}var u=a["a:lin"],f=0,d="line";if(u)f=oS(u.attrs.ang)+0;else{var h=a["a:path"];h&&h.attrs&&h.attrs.path&&(d=h.attrs.path)}return{rot:f,path:d,colors:o.sort(function(p,v){return parseInt(p.pos)-parseInt(v.pos)})}}return e?e.indexOf("#")===-1?"#".concat(e):e:null}function cZe(t){return i$.apply(this,arguments)}function i$(){return i$=Pr(en.mark(function t(e){var n,r,a,i,o,s,l,c,u,f,d,h,p,v,g,y,m,R,A,x,M,S,w,_,T,O,N,P,C,E,F,Y,Q,K,ne,Z,$,G,ee,ce,B,xe,_e,se,z,de,fe,re,X,j,oe,ae,le,ge,Se,me,ye,Ve,De,Ye,Je,wt,Lt,Ne,Te,ze;return en.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:if(n=e.slideContent,r=e.slideLayoutContent,a=e.slideMasterContent,i=ie(n,["p:sld","p:cSld","p:bg","p:bgPr"]),o=ie(n,["p:sld","p:cSld","p:bg","p:bgRef"]),s="#fff",l="color",!i){He.next=32;break}if((c=jp(i))!=="SOLID_FILL"){He.next=17;break}u=i["a:solidFill"],(d=ie(n,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]))?f=d:(h=ie(r,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),f=h||ie(a,["p:sldMaster","p:clrMap","attrs"])),p=Kr(u,f,void 0,e),s=p,He.next=30;break;case 17:if(c!=="GRADIENT_FILL"){He.next=22;break}typeof(v=Rb(i,void 0,a,e))=="string"?s=v:v&&(s=v,l="gradient"),He.next=30;break;case 22:if(c!=="PIC_FILL"){He.next=29;break}return He.next=25,f5(i,"slideBg",e);case 25:s=He.sent,l="image",He.next=30;break;case 29:c==="PATTERN_FILL"&&(g=L2(i,e))&&(s=g,l="pattern");case 30:He.next=157;break;case 32:if(!o){He.next=40;break}(m=ie(n,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]))?y=m:(R=ie(r,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),y=R||ie(a,["p:sldMaster","p:clrMap","attrs"])),A=Kr(o,y,void 0,e),(x=Number(o.attrs.idx))>1e3&&(M=x-1e3,S=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],w=[],Object.keys(S).forEach(function(pt){var Ce=S[pt];if(pt!=="attrs")if(Ce.constructor===Array)for(var ut=0;ut<Ce.length;ut++){var je={};je[pt]=Ce[ut],Ce[ut].attrs&&(je.idex=Ce[ut].attrs.order,je.attrs={order:Ce[ut].attrs.order}),w.push(je)}else{var it={};it[pt]=Ce,Ce.attrs&&(it.idex=Ce.attrs.order,it.attrs={order:Ce.attrs.order}),w.push(it)}}),(_=w.slice(0)).sort(function(pt,Ce){return pt.idex-Ce.idex}),T=_[M-1],(O=jp(T))==="SOLID_FILL"?(N=T["a:solidFill"],P=Kr(N,y,void 0,e),s=P):O==="GRADIENT_FILL"&&(typeof(C=Rb(T,A,a,e))=="string"?s=C:C&&(s=C,l="gradient"))),He.next=157;break;case 40:if(i=ie(r,["p:sldLayout","p:cSld","p:bg","p:bgPr"]),o=ie(r,["p:sldLayout","p:cSld","p:bg","p:bgRef"]),F=ie(r,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),E=F||ie(a,["p:sldMaster","p:clrMap","attrs"]),!i){He.next=67;break}if((Y=jp(i))!=="SOLID_FILL"){He.next=52;break}Q=i["a:solidFill"],K=Kr(Q,E,void 0,e),s=K,He.next=65;break;case 52:if(Y!=="GRADIENT_FILL"){He.next=57;break}typeof(ne=Rb(i,void 0,a,e))=="string"?s=ne:ne&&(s=ne,l="gradient"),He.next=65;break;case 57:if(Y!=="PIC_FILL"){He.next=64;break}return He.next=60,f5(i,"slideLayoutBg",e);case 60:s=He.sent,l="image",He.next=65;break;case 64:Y==="PATTERN_FILL"&&(Z=L2(i,e))&&(s=Z,l="pattern");case 65:He.next=157;break;case 67:if(!o){He.next=100;break}if($=Kr(o,E,void 0,e),!((G=Number(o.attrs.idx))>1e3)){He.next=98;break}if(ee=G-1e3,ce=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],B=[],Object.keys(ce).forEach(function(pt){var Ce=ce[pt];if(pt!=="attrs")if(Ce.constructor===Array)for(var ut=0;ut<Ce.length;ut++){var je={};je[pt]=Ce[ut],Ce[ut].attrs&&(je.idex=Ce[ut].attrs.order,je.attrs={order:Ce[ut].attrs.order}),B.push(je)}else{var it={};it[pt]=Ce,Ce.attrs&&(it.idex=Ce.attrs.order,it.attrs={order:Ce.attrs.order}),B.push(it)}}),(xe=B.slice(0)).sort(function(pt,Ce){return pt.idex-Ce.idex}),_e=xe[ee-1],(se=jp(_e))!=="SOLID_FILL"){He.next=85;break}z=_e["a:solidFill"],de=Kr(z,E,void 0,e),s=de,He.next=98;break;case 85:if(se!=="GRADIENT_FILL"){He.next=90;break}typeof(fe=Rb(_e,$,a,e))=="string"?s=fe:fe&&(s=fe,l="gradient"),He.next=98;break;case 90:if(se!=="PIC_FILL"){He.next=97;break}return He.next=93,f5(_e,"themeBg",e);case 93:s=He.sent,l="image",He.next=98;break;case 97:se==="PATTERN_FILL"&&(re=L2(_e,e))&&(s=re,l="pattern");case 98:He.next=157;break;case 100:if(i=ie(a,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),o=ie(a,["p:sldMaster","p:cSld","p:bg","p:bgRef"]),X=ie(a,["p:sldMaster","p:clrMap","attrs"]),!i){He.next=126;break}if((j=jp(i))!=="SOLID_FILL"){He.next=111;break}oe=i["a:solidFill"],ae=Kr(oe,X,void 0,e),s=ae,He.next=124;break;case 111:if(j!=="GRADIENT_FILL"){He.next=116;break}typeof(le=Rb(i,void 0,a,e))=="string"?s=le:le&&(s=le,l="gradient"),He.next=124;break;case 116:if(j!=="PIC_FILL"){He.next=123;break}return He.next=119,f5(i,"slideMasterBg",e);case 119:s=He.sent,l="image",He.next=124;break;case 123:j==="PATTERN_FILL"&&(ge=L2(i,e))&&(s=ge,l="pattern");case 124:He.next=157;break;case 126:if(!o){He.next=157;break}if(Se=Kr(o,X,void 0,e),!((me=Number(o.attrs.idx))>1e3)){He.next=157;break}if(ye=me-1e3,Ve=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],De=[],Object.keys(Ve).forEach(function(pt){var Ce=Ve[pt];if(pt!=="attrs")if(Ce.constructor===Array)for(var ut=0;ut<Ce.length;ut++){var je={};je[pt]=Ce[ut],Ce[ut].attrs&&(je.idex=Ce[ut].attrs.order,je.attrs={order:Ce[ut].attrs.order}),De.push(je)}else{var it={};it[pt]=Ce,Ce.attrs&&(it.idex=Ce.attrs.order,it.attrs={order:Ce.attrs.order}),De.push(it)}}),(Ye=De.slice(0)).sort(function(pt,Ce){return pt.idex-Ce.idex}),Je=Ye[ye-1],(wt=jp(Je))!=="SOLID_FILL"){He.next=144;break}Lt=Je["a:solidFill"],Ne=Kr(Lt,E,void 0,e),s=Ne,He.next=157;break;case 144:if(wt!=="GRADIENT_FILL"){He.next=149;break}typeof(Te=Rb(Je,Se,a,e))=="string"?s=Te:Te&&(s=Te,l="gradient"),He.next=157;break;case 149:if(wt!=="PIC_FILL"){He.next=156;break}return He.next=152,f5(Je,"themeBg",e);case 152:s=He.sent,l="image",He.next=157;break;case 156:wt==="PATTERN_FILL"&&(ze=L2(Je,e))&&(s=ze,l="pattern");case 157:return He.abrupt("return",{type:l,value:s});case 158:case"end":return He.stop()}},t)})),i$.apply(this,arguments)}function NMe(t,e,n){return o$.apply(this,arguments)}function o$(){return o$=Pr(en.mark(function t(e,n,r){var a,i,o,s,l,c,u,f,d,h,p,v=arguments;return en.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(a=v.length>3&&v[3]!==void 0?v[3]:[],i=jp(ie(e,["p:spPr"])),o="color",s="",i!=="NO_FILL"){g.next=8;break}return g.abrupt("return",null);case 8:if(i!=="SOLID_FILL"){g.next=14;break}l=e["p:spPr"]["a:solidFill"],s=Kr(l,void 0,void 0,n),o="color",g.next=38;break;case 14:if(i!=="GRADIENT_FILL"){g.next=20;break}c=e["p:spPr"]["a:gradFill"],s=Jj(c,n),o="gradient",g.next=38;break;case 20:if(i!=="PIC_FILL"){g.next=30;break}return u=e["p:spPr"]["a:blipFill"],g.next=24,HD(r,u,n);case 24:f=g.sent,d=PMe(u),s={ref:f.ref,base64:f.base64,blob:f.blob,opacity:d},o="image",g.next=38;break;case 30:if(i!=="PATTERN_FILL"){g.next=36;break}h=e["p:spPr"]["a:pattFill"],s=L2({"a:pattFill":h},n),o="pattern",g.next=38;break;case 36:if(i!=="GROUP_FILL"){g.next=38;break}return g.abrupt("return",uZe(a,n,r));case 38:if(s||(p=ie(e,["p:style","a:fillRef"]),s=Kr(p,void 0,void 0,n),o="color"),s){g.next=41;break}return g.abrupt("return",null);case 41:return g.abrupt("return",{type:o,value:s});case 42:case"end":return g.stop()}},t)})),o$.apply(this,arguments)}function uZe(t,e,n){return IMe.apply(this,arguments)}function IMe(){return(IMe=Pr(en.mark(function t(e,n,r){var a,i,o,s,l,c,u,f,d,h,p,v,g,y;return en.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:a=jG(e),m.prev=1,a.s();case 3:if((i=a.n()).done){m.next=40;break}if((o=i.value)&&o["p:grpSpPr"]){m.next=7;break}return m.abrupt("continue",38);case 7:if(s=o["p:grpSpPr"],(l=jp(s))!=="SOLID_FILL"){m.next=16;break}if(c=s["a:solidFill"],!(u=Kr(c,void 0,void 0,n))){m.next=14;break}return m.abrupt("return",{type:"color",value:u});case 14:m.next=38;break;case 16:if(l!=="GRADIENT_FILL"){m.next=23;break}if(f=s["a:gradFill"],!(d=Jj(f,n))){m.next=21;break}return m.abrupt("return",{type:"gradient",value:d});case 21:m.next=38;break;case 23:if(l!=="PIC_FILL"){m.next=33;break}return h=s["a:blipFill"],m.next=27,HD(r,h,n);case 27:if(p=m.sent,v=PMe(h),!(p.ref||p.base64||p.blob)){m.next=31;break}return m.abrupt("return",{type:"image",value:{ref:p.ref,base64:p.base64,blob:p.blob,opacity:v}});case 31:m.next=38;break;case 33:if(l!=="PATTERN_FILL"){m.next=38;break}if(g=s["a:pattFill"],!(y=L2({"a:pattFill":g},n))){m.next=38;break}return m.abrupt("return",{type:"pattern",value:y});case 38:m.next=3;break;case 40:m.next=45;break;case 42:m.prev=42,m.t0=m.catch(1),a.e(m.t0);case 45:return m.prev=45,a.f(),m.finish(45);case 48:return m.abrupt("return",null);case 49:case"end":return m.stop()}},t,null,[[1,42,45,48]])}))).apply(this,arguments)}function Kr(t,e,n,r){if(!t)return"";var a,i,o,s,l="";if(t["a:srgbClr"])l=ie(a=t["a:srgbClr"],["attrs","val"]);else if(t["a:schemeClr"])l=JG("a:"+ie(a=t["a:schemeClr"],["attrs","val"]),r,e,n)||"";else if(t["a:scrgbClr"]){var c=(a=t["a:scrgbClr"]).attrs,u=c.r.indexOf("%")!==-1?c.r.split("%").shift():c.r,f=c.g.indexOf("%")!==-1?c.g.split("%").shift():c.g,d=c.b.indexOf("%")!==-1?c.b.split("%").shift():c.b;l=Ab(Number(u)/100*255)+Ab(Number(f)/100*255)+Ab(Number(d)/100*255)}else if(t["a:prstClr"]){var h=ie(a=t["a:prstClr"],["attrs","val"]);o=h.toLowerCase(),(s=["AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"].findIndex(function(T){return T.toLowerCase()===o}))!==-1&&(i=["f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"][s]),l=i}else if(t["a:hslClr"]){var p=(a=t["a:hslClr"]).attrs,v=function(T,O,N){var P,C=2*N-(P=N<=.5?N*(O+1):N+O-N*O);return{r:255*YQ(C,P,2+(T/=60)),g:255*YQ(C,P,T),b:255*YQ(C,P,T-2)}}(Number(p.hue)/1e5,Number(p.sat.indexOf("%")!==-1?p.sat.split("%").shift():p.sat)/100,Number(p.lum.indexOf("%")!==-1?p.lum.split("%").shift():p.lum)/100);l=Ab(v.r)+Ab(v.g)+Ab(v.b)}else if(t["a:sysClr"]){var g=ie(a=t["a:sysClr"],["attrs","lastClr"]);g&&(l=g)}var y=!1,m=parseInt(ie(a,["a:alpha","attrs","val"]))/1e5;if(!isNaN(m)){var R=Gt(l);R.setAlpha(m),l=R.toHex8(),y=!0}var A=parseInt(ie(a,["a:hueMod","attrs","val"]))/1e5;isNaN(A)||(l=function(T,O,N){var P=Gt(T).toHsl(),C=P.h*O;return C>=360&&(C-=360),N?Gt({h:C,s:P.s,l:P.l,a:P.a}).toHex8():Gt({h:C,s:P.s,l:P.l,a:P.a}).toHex()}(l,A,y));var x=parseInt(ie(a,["a:lumMod","attrs","val"]))/1e5;isNaN(x)||(l=function(T,O,N){var P=Gt(T).toHsl(),C=P.l*O;return C>=1&&(C=1),N?Gt({h:P.h,s:P.s,l:C,a:P.a}).toHex8():Gt({h:P.h,s:P.s,l:C,a:P.a}).toHex()}(l,x,y));var M=parseInt(ie(a,["a:lumOff","attrs","val"]))/1e5;isNaN(M)||(l=function(T,O,N){var P=Gt(T).toHsl(),C=O+P.l;return C>=1?N?Gt({h:P.h,s:P.s,l:1,a:P.a}).toHex8():Gt({h:P.h,s:P.s,l:1,a:P.a}).toHex():N?Gt({h:P.h,s:P.s,l:C,a:P.a}).toHex8():Gt({h:P.h,s:P.s,l:C,a:P.a}).toHex()}(l,M,y));var S=parseInt(ie(a,["a:satMod","attrs","val"]))/1e5;isNaN(S)||(l=function(T,O,N){var P=Gt(T).toHsl(),C=P.s*O;return C>=1&&(C=1),N?Gt({h:P.h,s:C,l:P.l,a:P.a}).toHex8():Gt({h:P.h,s:C,l:P.l,a:P.a}).toHex()}(l,S,y));var w=parseInt(ie(a,["a:shade","attrs","val"]))/1e5;isNaN(w)||(l=function(T,O,N){var P=Gt(T).toHsl();O>=1&&(O=1);var C=Math.min(P.l*O,1);return N?Gt({h:P.h,s:P.s,l:C,a:P.a}).toHex8():Gt({h:P.h,s:P.s,l:C,a:P.a}).toHex()}(l,w,y));var _=parseInt(ie(a,["a:tint","attrs","val"]))/1e5;return isNaN(_)||(l=MMe(l,_,y)),l&&l.indexOf("#")===-1&&(l="#"+l),l}function fZe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(l,c){if(l){if(typeof l=="string")return f1e(l,c);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(l);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return f1e(l,c)}}(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return o=l.done,l},e:function(l){s=!0,i=l},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw i}}}}function f1e(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function nl(t,e){if(!t)return[];t.constructor!==Array&&(t=[t]);var n,r=[],a=fZe(t);try{for(a.s();!(n=a.n()).done;){var i=n.value,o=ie(i,["c:spPr","a:solidFill","a:schemeClr"]);o||(o=ie(i,["c:spPr","a:ln","a:solidFill","a:schemeClr"])),o||(o=ie(i,["c:marker","c:spPr","a:ln","a:solidFill","a:schemeClr"]));var s=ie(o,["attrs","val"]);if(s){s=ie(e.themeContent,["a:theme","a:themeElements","a:clrScheme","a:".concat(s),"a:srgbClr","attrs","val"]);var l=ie(o,["a:tint","attrs","val"])/1e5;s&&!isNaN(l)&&(s=MMe(s,l))}else s=ie(i,["c:spPr","a:solidFill","a:srgbClr","attrs","val"]);s&&(s="#"+s),r.push(s)}}catch(c){a.e(c)}finally{a.f()}return r}function Ts(t){var e=[];if(!t)return e;if(t["c:xVal"]){var n=[];yb(t["c:xVal"]["c:numRef"]["c:numCache"]["c:pt"],function(r){return n.push(parseFloat(r["c:v"])),""}),e.push(n),n=[],yb(t["c:yVal"]["c:numRef"]["c:numCache"]["c:pt"],function(r){return n.push(parseFloat(r["c:v"])),""}),e.push(n)}else yb(t,function(r,a){var i=[],o=ie(r,["c:tx","c:strRef","c:strCache","c:pt","c:v"])||a,s={};return ie(r,["c:cat","c:strRef","c:strCache","c:pt"])?yb(r["c:cat"]["c:strRef"]["c:strCache"]["c:pt"],function(l){return s[l.attrs.idx]=l["c:v"],""}):ie(r,["c:cat","c:numRef","c:numCache","c:pt"])&&yb(r["c:cat"]["c:numRef"]["c:numCache"]["c:pt"],function(l){return s[l.attrs.idx]=l["c:v"],""}),ie(r,["c:val","c:numRef","c:numCache","c:pt"])&&yb(r["c:val"]["c:numRef"]["c:numCache"]["c:pt"],function(l){return i.push({x:l.attrs.idx,y:parseFloat(l["c:v"])}),""}),e.push({key:o,values:i,xlabels:s}),""});return e}function dZe(t,e){var n=null;for(var r in t)if(t[r]["c:ser"])switch(r){case"c:lineChart":n={type:"lineChart",data:Ts(t[r]["c:ser"]),colors:nl(t[r]["c:ser"],e),grouping:ie(t[r],["c:grouping","attrs","val"]),marker:!!t[r]["c:marker"]};break;case"c:line3DChart":n={type:"line3DChart",data:Ts(t[r]["c:ser"]),colors:nl(t[r]["c:ser"],e),grouping:ie(t[r],["c:grouping","attrs","val"])};break;case"c:barChart":n={type:"barChart",data:Ts(t[r]["c:ser"]),colors:nl(t[r]["c:ser"],e),grouping:ie(t[r],["c:grouping","attrs","val"]),barDir:ie(t[r],["c:barDir","attrs","val"])};break;case"c:bar3DChart":n={type:"bar3DChart",data:Ts(t[r]["c:ser"]),colors:nl(t[r]["c:ser"],e),grouping:ie(t[r],["c:grouping","attrs","val"]),barDir:ie(t[r],["c:barDir","attrs","val"])};break;case"c:pieChart":n={type:"pieChart",data:Ts(t[r]["c:ser"]),colors:nl(t[r]["c:ser"]["c:dPt"],e)};break;case"c:pie3DChart":n={type:"pie3DChart",data:Ts(t[r]["c:ser"]),colors:nl(t[r]["c:ser"]["c:dPt"],e)};break;case"c:doughnutChart":n={type:"doughnutChart",data:Ts(t[r]["c:ser"]),colors:nl(t[r]["c:ser"]["c:dPt"],e),holeSize:ie(t[r],["c:holeSize","attrs","val"])};break;case"c:areaChart":n={type:"areaChart",data:Ts(t[r]["c:ser"]),colors:nl(t[r]["c:ser"],e),grouping:ie(t[r],["c:grouping","attrs","val"])};break;case"c:area3DChart":n={type:"area3DChart",data:Ts(t[r]["c:ser"]),colors:nl(t[r]["c:ser"],e),grouping:ie(t[r],["c:grouping","attrs","val"])};break;case"c:scatterChart":n={type:"scatterChart",data:Ts(t[r]["c:ser"]),colors:nl(t[r]["c:ser"],e),style:ie(t[r],["c:scatterStyle","attrs","val"])};break;case"c:bubbleChart":n={type:"bubbleChart",data:Ts(t[r]["c:ser"]),colors:nl(t[r]["c:ser"],e)};break;case"c:radarChart":n={type:"radarChart",data:Ts(t[r]["c:ser"]),colors:nl(t[r]["c:ser"],e),style:ie(t[r],["c:radarStyle","attrs","val"])};break;case"c:surfaceChart":n={type:"surfaceChart",data:Ts(t[r]["c:ser"]),colors:nl(t[r]["c:ser"],e)};break;case"c:surface3DChart":n={type:"surface3DChart",data:Ts(t[r]["c:ser"]),colors:nl(t[r]["c:ser"],e)};break;case"c:stockChart":n={type:"stockChart",data:Ts(t[r]["c:ser"]),colors:[]}}return n}function hZe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(l,c){if(l){if(typeof l=="string")return d1e(l,c);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(l);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return d1e(l,c)}}(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return o=l.done,l},e:function(l){s=!0,i=l},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw i}}}}function d1e(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function kMe(t){var e=1,n=ie(t,["a:pPr","attrs","lvl"]);return n!==void 0&&(e=parseInt(n)+1),e}function h1e(t,e){if(!t)return"";var n=ie(t,["p:txBody","a:lstStyle",e,"attrs","algn"]);return n||(n=ie(t,["p:txBody","a:p","a:pPr","attrs","algn"])),n||""}function pZe(t,e,n,r,a,i){var o=ie(t,["a:pPr","attrs","algn"]);if(o||(o=ie(e,["p:txBody","a:p","a:pPr","attrs","algn"])),!o){var s="a:lvl"+kMe(t)+"pPr";(o=h1e(r,s))||(o=h1e(a,s)),o||n!=="title"&&n!=="ctrTitle"&&n!=="subTitle"?o||n!=="body"?o||(o=ie(i,["slideMasterTextStyles","p:otherStyle",s,"attrs","algn"])):o=ie(i,["slideMasterTextStyles","p:bodyStyle",s,"attrs","algn"]):(o=ie(i,["slideMasterTextStyles","p:titleStyle",s,"attrs","algn"]))||n!=="subTitle"||(o=ie(i,["slideMasterTextStyles","p:bodyStyle",s,"attrs","algn"]))}var l="left";if(o)switch(o){case"l":l="left";break;case"r":l="right";break;case"ctr":l="center";break;case"just":case"dist":l="justify";break;default:l="inherit"}return l}function vZe(t,e,n){var r=ie(t,["p:txBody","a:bodyPr","attrs","anchor"]);return r||(r=ie(e,["p:txBody","a:bodyPr","attrs","anchor"]))||(r=ie(n,["p:txBody","a:bodyPr","attrs","anchor"]))||(r="t"),r==="ctr"?"mid":r==="b"?"down":"up"}function gZe(t,e,n){function r(s){if(!s)return null;if(s["a:noAutofit"])return{result:null};if(s["a:spAutoFit"])return{result:{type:"shape"}};if(s["a:normAutofit"]){var l=ie(s["a:normAutofit"],["attrs","fontScale"]);return l?{result:{type:"text",fontScale:parseInt(l)/1e3}}:{result:{type:"text"}}}return null}var a=r(ie(t,["p:txBody","a:bodyPr"]));if(a)return a.result;var i=r(ie(e,["p:txBody","a:bodyPr"]));if(i)return i.result;var o=r(ie(n,["p:txBody","a:bodyPr"]));return o?o.result:null}function Hp(t,e){e&&t.push(e)}function p1e(t,e,n){e&&(Hp(t,ie(e,["p:txBody","a:lstStyle","a:lvl".concat(n,"pPr")])),Hp(t,ie(e,["p:txBody","a:p","a:pPr"])))}function mZe(t,e,n,r,a,i,o){if(!t)return null;var s=t["a:pPr"],l=kMe(t),c=[];return Hp(c,s),function(u,f,d){f&&Hp(u,ie(f,["a:lstStyle","a:lvl".concat(d,"pPr")]))}(c,e,l),p1e(c,n,l),p1e(c,r,l),function(u,f,d,h){if(h){var p="a:lvl".concat(d,"pPr");f==="title"||f==="ctrTitle"||f==="subTitle"?(Hp(u,ie(h,["p:titleStyle",p])),f==="subTitle"&&Hp(u,ie(h,["p:bodyStyle",p]))):Hp(u,ie(h,f==="body"?["p:bodyStyle",p]:["p:otherStyle",p]))}}(c,a,l,i),function(u,f,d){f&&(Hp(u,ie(f,["a:lvl".concat(d,"pPr")])),Hp(u,ie(f,["a:defPPr"])))}(c,ie(o,["defaultTextStyle"]),l),c}function v1e(t){var e=ie(t,["a:spcPct","attrs","val"]),n=ie(t,["a:spcPts","attrs","val"]);return e?parseInt(e)/1e3+"em":n?parseInt(n)/100+"pt":void 0}function yZe(t,e,n,r,a,i,o){var s=mZe(t,e,n,r,a,i,o);if(!s)return null;var l,c,u,f,d={},h=hZe(s);try{for(h.s();!(l=h.n()).done;){var p=l.value;if(d.lineSpacing===void 0){var v=(c=p["a:lnSpc"],u=void 0,f=void 0,u=ie(c,["a:spcPct","attrs","val"]),f=ie(c,["a:spcPts","attrs","val"]),u?parseInt(u)/1e3/100:f?parseInt(f)/100+"pt":void 0);v!==void 0&&(d.lineSpacing=v)}if(d.spaceBefore===void 0){var g=v1e(p["a:spcBef"]);g!==void 0&&(d.spaceBefore=g)}if(d.spaceAfter===void 0){var y=v1e(p["a:spcAft"]);y!==void 0&&(d.spaceAfter=y)}}}catch(m){h.e(m)}finally{h.f()}return Object.keys(d).length>0?d:null}var ct=72/914400;function FS(t,e,n){var r;return t?r=t["a:off"].attrs:e?r=e["a:off"].attrs:n&&(r=n["a:off"].attrs),r?{top:_o(parseInt(r.y)*ct),left:_o(parseInt(r.x)*ct)}:{top:0,left:0}}function XS(t,e,n){var r;return t?r=t["a:ext"].attrs:e?r=e["a:ext"].attrs:n&&(r=n["a:ext"].attrs),r?{width:_o(parseInt(r.cx)*ct),height:_o(parseInt(r.cy)*ct)}:{width:0,height:0}}function EMe(t,e){var n=Kr(t,void 0,void 0,e),r=t.attrs,a=r.dir?parseInt(r.dir)/6e4:0,i=r.dist?parseInt(r.dist)*ct:0,o=r.blurRad?parseInt(r.blurRad)*ct:"",s=i*Math.sin(a*Math.PI/180);return{h:i*Math.cos(a*Math.PI/180),v:s,blur:o,color:n}}function GD(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(l,c){if(l){if(typeof l=="string")return g1e(l,c);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(l);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return g1e(l,c)}}(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return o=l.done,l},e:function(l){s=!0,i=l},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw i}}}}function g1e(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Pf(t,e){e&&t.push(e)}function $D(t){return"a:lvl".concat(t,"pPr")}function m1e(t,e,n){e&&(Pf(t,ie(e,["p:txBody","a:lstStyle",$D(n),"a:defRPr"])),Pf(t,ie(e,["p:txBody","a:p","a:pPr","a:defRPr"])))}function FMe(t,e,n,r){if(r){var a=$D(n);e==="title"||e==="ctrTitle"||e==="subTitle"?(Pf(t,ie(r,["p:titleStyle",a,"a:defRPr"])),e==="subTitle"&&Pf(t,ie(r,["p:bodyStyle",a,"a:defRPr"]))):Pf(t,ie(r,e==="body"?["p:bodyStyle",a,"a:defRPr"]:["p:otherStyle",a,"a:defRPr"]))}}function XMe(t,e,n,r,a,i){var o=[],s=ie(t,["a:rPr"]);return Pf(o,s),s||Pf(o,ie(e,["a:endParaRPr"])),Pf(o,ie(e,["a:pPr","a:defRPr"])),function(l,c,u){c&&Pf(l,ie(c,["a:lstStyle",$D(u),"a:defRPr"]))}(o,n,i),m1e(o,r,i),m1e(o,a,i),o}function qp(t,e,n,r,a,i,o,s){var l=XMe(t,e,n,r,a,s);return FMe(l,i,s,o),l}function R2(t,e){var n,r=GD(t);try{for(r.s();!(n=r.n()).done;){var a=ie(n.value,["attrs",e]);if(a!==void 0&&a!=="")return a}}catch(i){r.e(i)}finally{r.f()}return""}function AZe(t,e){if(!t)return"";var n=jp(t);return n==="SOLID_FILL"?Kr(t["a:solidFill"],void 0,void 0,e):n==="GRADIENT_FILL"?Jj(t["a:gradFill"],e):""}function y1e(t,e){var n,r=GD(t);try{for(r.s();!(n=r.n()).done;){var a=AZe(n.value,e);if(a)return a}}catch(i){r.e(i)}finally{r.f()}return""}function RZe(t,e,n,r,a,i,o,s,l){var c=function(f){var d,h=GD(f);try{for(h.s();!(d=h.n()).done;){var p=d.value,v=ie(p,["a:latin","attrs","typeface"])||ie(p,["a:ea","attrs","typeface"]);if(v)return v}}catch(g){h.e(g)}finally{h.f()}return""}(qp(t,e,n,r,a,i,o,s));if(!c||c.startsWith("+")){var u=ie(l.themeContent,["a:theme","a:themeElements","a:fontScheme"]);if(u&&c&&c.startsWith("+"))switch(c){case"+mj-lt":return ie(u,["a:majorFont","a:latin","attrs","typeface"]);case"+mn-lt":return ie(u,["a:minorFont","a:latin","attrs","typeface"]);case"+mj-ea":return ie(u,["a:majorFont","a:ea","attrs","typeface"]);case"+mn-ea":return ie(u,["a:minorFont","a:ea","attrs","typeface"]);default:return c.replace(/^\+/,"")}c=i==="title"||i==="subTitle"||i==="ctrTitle"?ie(u,["a:majorFont","a:latin","attrs","typeface"])||ie(u,["a:majorFont","a:ea","attrs","typeface"]):ie(u,["a:minorFont","a:latin","attrs","typeface"])}return c||""}function bZe(t,e,n,r,a,i,o,s,l){var c=qp(t,e,n,r,a,i,o,s);(function(d,h,p){p&&(Pf(d,ie(p,[$D(h),"a:defRPr"])),Pf(d,ie(p,["a:defPPr","a:defRPr"])))})(c,s,l);var u=R2(c,"sz"),f=u?parseInt(u)/100:void 0;return!isNaN(f)&&f||i!=="dt"&&i!=="sldNum"||(f=12),(f=isNaN(f)||!f?18:f)+"pt"}function xZe(t,e,n,r,a,i,o,s,l){var c=function(p,v){var g,y=GD(p);try{for(y.s();!(g=y.n()).done;){var m=ie(g.value,["a:effectLst","a:outerShdw"]);if(m){var R=EMe(m,v);if(R)return R}}}catch(A){y.e(A)}finally{y.f()}return null}(qp(t,e,n,r,a,i,o,s),l);if(c){var u=c.h,f=c.v,d=c.blur,h=c.color;if(!isNaN(f)&&!isNaN(u))return u+"pt "+f+"pt "+(d?d+"pt":"")+" "+h}return""}function A1e(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(l,c){if(l){if(typeof l=="string")return R1e(l,c);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(l);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return R1e(l,c)}}(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return o=l.done,l},e:function(l){s=!0,i=l},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw i}}}}function R1e(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function oX(t){return typeof t=="string"?t:t&&typeof t.value=="string"?t.value:void 0}function sX(t,e,n,r,a,i){if(!t)return"";var o,s="",l=ie(e,["p:style","a:fontRef"]),c=e&&e["a:tcPr"]?void 0:i.slideMasterTextStyles,u=e&&e["a:tcPr"]?i.defaultTextStyle:void 0,f=t["a:p"],d=[],h=A1e(f.constructor===Array?f:[f]);try{for(h.s();!(o=h.n()).done;){var p=o.value,v=p["a:r"],g=p["a:fld"],y=p["a:br"];v&&(v=v.constructor===Array?v:[v],g&&(g=g.constructor===Array?g:[g],v=v.concat(g)),y&&((y=y.constructor===Array?y:[y]).forEach(function(Q){return Q.type="br"}),y.length>1&&y.shift(),(v=v.concat(y)).sort(function(Q,K){return!Q.attrs||!K.attrs||Q.attrs.order-K.attrs.order})));var m=pZe(p,e,a,n,r,i),R=yZe(p,t,n,r,a,c,i),A="text-align: ".concat(m,";");R&&(R.lineSpacing&&(A+="line-height: ".concat(R.lineSpacing,";")),R.spaceBefore&&(A+="margin-top: ".concat(R.spaceBefore,";")),R.spaceAfter&&(A+="margin-bottom: ".concat(R.spaceAfter,";")));var x=SZe(p),M=MZe(p);if(x){for(;d.length>M+1;){var S=d.pop();s+="</".concat(S,">")}d[M]===void 0?(s+="<".concat(x,">"),d[M]=x):d[M]!==x&&(s+="</".concat(d[M],">"),s+="<".concat(x,">"),d[M]=x),s+='<li style="'.concat(A,'">')}else{for(;d.length>0;){var w=d.pop();s+="</".concat(w,">")}s+='<p style="'.concat(A,'">')}if(v){var _,T=null,O="",N=A1e(v);try{for(N.s();!(_=N.n()).done;){var P=DMe(_.value,p,t,l,n,r,a,c,u,i);if(!T||T.styleText!==P.styleText||T.hasLink!==P.hasLink||P.hasLink){if(O){var C=O.replace(/\t/g," ").replace(/\s/g," ");s+='<span style="'.concat(T.styleText,'">').concat(C,"</span>"),O=""}if(P.hasLink){var E=P.text.replace(/\t/g," ").replace(/\s/g," ");s+='<span style="'.concat(P.styleText,'"><a href="').concat(P.linkURL,'" target="_blank">').concat(E,"</a></span>"),T=null}else T=P,O=P.text}else O+=P.text}}catch(Q){N.e(Q)}finally{N.f()}if(O&&T){var F=O.replace(/\t/g," ").replace(/\s/g," ");s+='<span style="'.concat(T.styleText,'">').concat(F,"</span>")}}else s+=_Ze(p,e,t,l,n,r,a,c,u,i);s+=x?"</li>":"</p>"}}catch(Q){h.e(Q)}finally{h.f()}for(;d.length>0;){var Y=d.pop();s+="</".concat(Y,">")}return s}function SZe(t){var e=t["a:pPr"];return e?e["a:buChar"]?"ul":e["a:buAutoNum"]?"ol":"":""}function MZe(t){var e=t["a:pPr"];if(!e)return-1;var n=ie(e,["attrs","lvl"]);return n!==void 0?parseInt(n):0}function _Ze(t,e,n,r,a,i,o,s,l,c){var u=DMe(t,e,n,r,a,i,o,s,l,c),f=u.styleText,d=u.text,h=u.hasLink,p=u.linkURL,v=d.replace(/\t/g," ").replace(/\s/g," ");return h?'<span style="'.concat(f,'"><a href="').concat(p,'" target="_blank">').concat(v,"</a></span>"):'<span style="'.concat(f,'">').concat(v,"</span>")}function DMe(t,e,n,r,a,i,o,s,l,c){var u=1,f=ie(e["a:pPr"],["attrs","lvl"]);f!==void 0&&(u=parseInt(f)+1);var d=oX(t["a:t"]);typeof d!="string"&&(d=oX(ie(t,["a:fld","a:t"]))),typeof d!="string"&&(d=" ");var h="",p=function(C,E,F,Y,Q,K,ne,Z,$,G){var ee=XMe(C,E,F,Y,Q,Z),ce=y1e(ee,G);if(!ce){if($&&(ce=Kr($,void 0,void 0,G)),!ce){var B=ie(Y,["p:style","a:fontRef"]);B&&(ce=Kr(B,void 0,void 0,G))}if(!ce){var xe=ie(Q,["p:style","a:fontRef"]);xe&&(ce=Kr(xe,void 0,void 0,G))}}return ce||(FMe(ee,K,Z,ne),ce=y1e(ee,G)),ce||""}(t,e,n,a,i,o,s,u,r,c),v=bZe(t,e,n,a,i,o,s,u,l),g=RZe(t,e,n,a,i,o,s,u,c),y=function(C,E,F,Y,Q,K,ne,Z){return R2(qp(C,E,F,Y,Q,K,ne,Z),"b")==="1"?"bold":""}(t,e,n,a,i,o,s,u),m=function(C,E,F,Y,Q,K,ne,Z){return R2(qp(C,E,F,Y,Q,K,ne,Z),"i")==="1"?"italic":""}(t,e,n,a,i,o,s,u),R=function(C,E,F,Y,Q,K,ne,Z){return R2(qp(C,E,F,Y,Q,K,ne,Z),"u")==="sng"?"underline":""}(t,e,n,a,i,o,s,u),A=function(C,E,F,Y,Q,K,ne,Z){return R2(qp(C,E,F,Y,Q,K,ne,Z),"strike")==="sngStrike"?"line-through":""}(t,e,n,a,i,o,s,u),x=function(C,E,F,Y,Q,K,ne,Z){var $=R2(qp(C,E,F,Y,Q,K,ne,Z),"spc");return $&&parseInt($)!==0?parseInt($)/100+"pt":""}(t,e,n,a,i,o,s,u),M=xZe(t,e,n,a,i,o,s,u,c),S=function(C,E,F,Y,Q,K,ne,Z){var $=R2(qp(C,E,F,Y,Q,K,ne,Z),"baseline");return $&&parseInt($)!==0?parseInt($)>0?"super":"sub":""}(t,e,n,a,i,o,s,u);if(p){if(typeof p=="string")h+="color: ".concat(p,";");else if(p.colors){var w=p.colors,_=p.rot,T=w.map(function(C){return"".concat(C.color," ").concat(C.pos)}).join(", "),O="linear-gradient(".concat(_+90,"deg, ").concat(T,")");h+="background: ".concat(O,"; background-clip: text; color: transparent;")}}v&&(h+="font-size: ".concat(v,";")),g&&(h+="font-family: ".concat(g,";")),y&&(h+="font-weight: ".concat(y,";")),m&&(h+="font-style: ".concat(m,";")),R&&(h+="text-decoration: ".concat(R,";")),A&&(h+="text-decoration-line: ".concat(A,";")),x&&(h+="letter-spacing: ".concat(x,";")),S&&(h+="vertical-align: ".concat(S,";")),M&&(h+="text-shadow: ".concat(M,";"));var N=ie(t,["a:rPr","a:hlinkClick","attrs","r:id"]),P=N&&c.slideResObj[N];return{styleText:h,text:d,hasLink:P,linkURL:P?c.slideResObj[N].target:null}}function wZe(t,e,n,r,a,i,o){var s,l=a;if(i>=a)for(;l<=i;){var c=l*(Math.PI/180),u=t+Math.cos(c)*n,f=e+Math.sin(c)*r;l===a&&(s=" M"+u+" "+f),s+=" L"+u+" "+f,l++}else for(;l>i;){var d=l*(Math.PI/180),h=t+Math.cos(d)*n,p=e+Math.sin(d)*r;l===a&&(s=" M "+h+" "+p),s+=" L "+h+" "+p,l--}return s+=""}function LZe(t,e,n){var r=ie(t,["a:pathLst"]),a=ie(r,["a:path"]);Array.isArray(a)&&(a=a.shift());var i=parseInt(a.attrs.w),o=parseInt(a.attrs.h),s=i===0?0:1/i*e,l=o===0?0:1/o*n,c="",u=ie(a,["a:moveTo"]),f=a["a:lnTo"],d=a["a:cubicBezTo"],h=a["a:quadBezTo"],p=a["a:arcTo"],v=ie(a,["a:close"]);Array.isArray(u)||(u=[u]);var g=[];if(u.length>0){if(Object.keys(u).forEach(function(S){var w=u[S]["a:pt"];w&&Object.keys(w).forEach(function(_){var T=w[_],O=T.x,N=T.y,P=T.order;g.push({type:"movto",x:O,y:N,order:P})})}),f&&(Array.isArray(f)||(f=[f]),Object.keys(f).forEach(function(S){var w=f[S]["a:pt"];w&&Object.keys(w).forEach(function(_){var T=w[_],O=T.x,N=T.y,P=T.order;g.push({type:"lnto",x:O,y:N,order:P})})})),d){var y=[];Array.isArray(d)||(d=[d]),Object.keys(d).forEach(function(S){y.push(d[S]["a:pt"])}),y.forEach(function(S){var w=[];S.forEach(function(T){var O={x:T.attrs.x,y:T.attrs.y};w.push(O)});var _=S[0].attrs.order;g.push({type:"cubicBezTo",cubBzPt:w,order:_})})}if(h){var m=[];Array.isArray(h)||(h=[h]),Object.keys(h).forEach(function(S){m.push(h[S]["a:pt"])}),m.forEach(function(S){var w=[];S.forEach(function(T){var O={x:T.attrs.x,y:T.attrs.y};w.push(O)});var _=S[0].attrs.order;g.push({type:"quadBezTo",quadBzPt:w,order:_})})}p&&(Array.isArray(p)?p:[p]).forEach(function(S){var w=S.attrs,_=w.order,T=w.hR,O=w.wR,N=w.stAng,P=w.swAng,C=0,E=0,F=ie(S,["a:pt","attrs"]);F&&(C=F.x,E=F.y),g.push({type:"arcTo",hR:T,wR:O,stAng:N,swAng:P,shftX:C,shftY:E,order:_})}),v&&(Array.isArray(v)||(v=[v]),Object.keys(v).forEach(function(){g.push({type:"close",order:1/0})})),g.sort(function(S,w){return S.order-w.order});for(var R=0;R<g.length;){if(g[R].type==="movto")c+=" M"+parseInt(g[R].x)*s+","+parseInt(g[R].y)*l;else if(g[R].type==="lnto")c+=" L"+parseInt(g[R].x)*s+","+parseInt(g[R].y)*l;else if(g[R].type==="cubicBezTo")c+=" C"+parseInt(g[R].cubBzPt[0].x)*s+","+parseInt(g[R].cubBzPt[0].y)*l+" "+parseInt(g[R].cubBzPt[1].x)*s+","+parseInt(g[R].cubBzPt[1].y)*l+" "+parseInt(g[R].cubBzPt[2].x)*s+","+parseInt(g[R].cubBzPt[2].y)*l;else if(g[R].type==="quadBezTo")c+=" Q"+parseInt(g[R].quadBzPt[0].x)*s+","+parseInt(g[R].quadBzPt[0].y)*l+" "+parseInt(g[R].quadBzPt[1].x)*s+","+parseInt(g[R].quadBzPt[1].y)*l;else if(g[R].type==="arcTo"){var A=parseInt(g[R].hR)*s,x=parseInt(g[R].wR)*l,M=parseInt(g[R].stAng)/6e4;c+=wZe(x,A,x,A,M,M+parseInt(g[R].swAng)/6e4)}else g[R].type==="close"&&(c+="z");R++}}return c}function TZe(t){var e,n,r=t["a:pathLst"];if(!r||!r["a:path"])return"custom";var a=r["a:path"],i=parseInt((e=a.attrs)===null||e===void 0?void 0:e.w)||0,o=parseInt((n=a.attrs)===null||n===void 0?void 0:n.h)||0,s=function(c){var u=[];if(c["a:moveTo"]){var f,d,h=c["a:moveTo"]["a:pt"];h&&u.push({type:"moveTo",points:[{x:parseInt((f=h.attrs)===null||f===void 0?void 0:f.x)||0,y:parseInt((d=h.attrs)===null||d===void 0?void 0:d.y)||0}]})}return bb(c["a:lnTo"]).forEach(function(p){var v,g,y=p["a:pt"];y&&u.push({type:"lineTo",points:[{x:parseInt((v=y.attrs)===null||v===void 0?void 0:v.x)||0,y:parseInt((g=y.attrs)===null||g===void 0?void 0:g.y)||0}]})}),bb(c["a:cubicBezTo"]).forEach(function(p){var v=bb(p["a:pt"]).map(function(g){var y,m;return{x:parseInt((y=g.attrs)===null||y===void 0?void 0:y.x)||0,y:parseInt((m=g.attrs)===null||m===void 0?void 0:m.y)||0}});v.length===3&&u.push({type:"cubicBezTo",points:v})}),bb(c["a:arcTo"]).forEach(function(p){var v,g,y,m;u.push({type:"arcTo",wR:parseInt((v=p.attrs)===null||v===void 0?void 0:v.wR)||0,hR:parseInt((g=p.attrs)===null||g===void 0?void 0:g.hR)||0,stAng:parseInt((y=p.attrs)===null||y===void 0?void 0:y.stAng)||0,swAng:parseInt((m=p.attrs)===null||m===void 0?void 0:m.swAng)||0})}),bb(c["a:quadBezTo"]).forEach(function(p){var v=bb(p["a:pt"]).map(function(g){var y,m;return{x:parseInt((y=g.attrs)===null||y===void 0?void 0:y.x)||0,y:parseInt((m=g.attrs)===null||m===void 0?void 0:m.y)||0}});u.push({type:"quadBezTo",points:v})}),c["a:close"]&&u.push({type:"close"}),u}(a);if(s.length===0)return"custom";var l=function(c,u,f){var d={lineCount:0,curveCount:0,arcCount:0,isClosed:!1,vertices:[],aspectRatio:f!==0?u/f:1,pathWidth:u,pathHeight:f,hasCurves:!1,isCircular:!1,commands:c};return c.forEach(function(h){switch(h.type){case"moveTo":d.vertices.push(h.points[0]);break;case"lineTo":d.lineCount++,d.vertices.push(h.points[0]);break;case"cubicBezTo":d.curveCount++,d.hasCurves=!0,h.points.length===3&&d.vertices.push(h.points[2]);break;case"quadBezTo":d.curveCount++,d.hasCurves=!0,h.points.length>=2&&d.vertices.push(h.points[h.points.length-1]);break;case"arcTo":d.arcCount++,d.hasCurves=!0;break;case"close":d.isClosed=!0}}),d.curveCount===4&&d.lineCount===0&&d.isClosed&&(d.isCircular=function(h,p,v){var g=h.filter(function(M){return M.type==="cubicBezTo"});if(g.length!==4)return!1;var y=g.map(function(M){return M.points[2]}),m=y.some(function(M){return Math.abs(M.y)<.1*v}),R=y.some(function(M){return Math.abs(M.y-v)<.1*v}),A=y.some(function(M){return Math.abs(M.x)<.1*p}),x=y.some(function(M){return Math.abs(M.x-p)<.1*p});return(m||R)&&(A||x)}(c,u,f)),d}(s,i,o);return function(c){var u=c.lineCount,f=c.curveCount,d=c.isClosed,h=c.vertices,p=c.hasCurves,v=c.isCircular;if(v||c.arcCount>=2&&d&&u===0)return"ellipse";if(!p&&d&&h.length>=3)return function(y,m,R){var A=function(M){var S=100,w=[];return M.forEach(function(_){w.some(function(T){return Math.abs(T.x-_.x)<S&&Math.abs(T.y-_.y)<S})||w.push(_)}),w}(y),x=A.length;switch(x){case 3:return"triangle";case 4:return function(M){if(M.length!==4)return"custom";for(var S=[],w=0;w<4;w++){var _=M[w],T=M[(w+1)%4];S.push({dx:T.x-_.x,dy:T.y-_.y,length:Math.sqrt(Math.pow(T.x-_.x,2)+Math.pow(T.y-_.y,2))})}return function(O){var N=.1,P=Math.abs(O[0].length-O[2].length)/Math.max(O[0].length,O[2].length)<N,C=Math.abs(O[1].length-O[3].length)/Math.max(O[1].length,O[3].length)<N;if(!P||!C)return!1;for(var E=0;E<4;E++){var F=O[E],Y=O[(E+1)%4],Q=(F.dx*Y.dx+F.dy*Y.dy)/(F.length*Y.length);if(Math.abs(Q)>.1)return!1}return!0}(S)?"roundRect":function(O){var N=.1,P=O.reduce(function(C,E){return C+E.length},0)/4;return O.every(function(C){return Math.abs(C.length-P)/P<N})}(S)?"rhombus":function(O){var N=.15,P=O[0].dx!==0?O[0].dy/O[0].dx:1/0,C=O[2].dx!==0?O[2].dy/O[2].dx:1/0,E=O[1].dx!==0?O[1].dy/O[1].dx:1/0,F=O[3].dx!==0?O[3].dy/O[3].dx:1/0,Y=Math.abs(P-C)<N||Math.abs(P)>1e3&&Math.abs(C)>1e3,Q=Math.abs(E-F)<N||Math.abs(E)>1e3&&Math.abs(F)>1e3;return Y&&Q}(S)?"parallelogram":function(O){var N=.15,P=O[0].dx!==0?O[0].dy/O[0].dx:1/0,C=O[2].dx!==0?O[2].dy/O[2].dx:1/0,E=O[1].dx!==0?O[1].dy/O[1].dx:1/0,F=O[3].dx!==0?O[3].dy/O[3].dx:1/0,Y=Math.abs(P-C)<N||Math.abs(P)>1e3&&Math.abs(C)>1e3,Q=Math.abs(E-F)<N||Math.abs(E)>1e3&&Math.abs(F)>1e3;return Y&&!Q||!Y&&Q}(S)?"trapezoid":"custom"}(A);case 5:return"pentagon";case 6:return"hexagon";case 7:return"heptagon";case 8:return"octagon";default:return x>8?"ellipse":"custom"}}(h);if(u===4&&f===4&&d)return"roundRect";if(u>=3&&f>0&&f<=u&&d){var g=function(y){switch(y){case 3:return"triangle";case 4:return"rectangle";case 5:return"pentagon";case 6:return"hexagon";case 7:return"heptagon";case 8:return"octagon";default:return"custom"}}(u);if(g!=="custom")return g==="rectangle"?"roundRect":g}return"custom"}(l)}function bb(t){return t?Array.isArray(t)?t:[t]:[]}function ix(t,e){if(t)return Kr(t["a:solidFill"]||t,void 0,void 0,e)}function OZe(t,e){var n={};if(t["a:bottom"]){var r=vh({"p:spPr":{"a:ln":t["a:bottom"]["a:ln"]}},void 0,e);n.bottom=r}if(t["a:top"]){var a=vh({"p:spPr":{"a:ln":t["a:top"]["a:ln"]}},void 0,e);n.top=a}if(t["a:right"]){var i=vh({"p:spPr":{"a:ln":t["a:right"]["a:ln"]}},void 0,e);n.right=i}if(t["a:left"]){var o=vh({"p:spPr":{"a:ln":t["a:left"]["a:ln"]}},void 0,e);n.left=o}return n}function b1e(t,e,n,r){return VMe.apply(this,arguments)}function VMe(){return(VMe=Pr(en.mark(function t(e,n,r,a){var i,o,s,l,c,u,f,d,h,p,v,g,y,m,R,A,x,M;return en.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(i=ie(e,["attrs","rowSpan"]),o=ie(e,["attrs","gridSpan"]),s=ie(e,["attrs","vMerge"]),l=ie(e,["attrs","hMerge"]),c=ie(e,["a:tcPr","attrs","anchor"]),!(h=ie(e,["a:tcPr"]))){S.next=12;break}return p={"p:spPr":h},S.next=10,NMe(p,a,"slide");case 10:(v=S.sent)&&v.type==="color"&&v.value&&(u=v.value);case 12:return u||(r&&(g=ie(n,[r,"a:tcStyle","a:fill","a:solidFill"])),g&&(u=Kr(g,void 0,void 0,a))),r&&(y=ie(n,[r,"a:tcTxStyle"])),y&&(f=ix(y,a),ie(y,["attrs","b"])==="on"&&(d=!0)),(m=ie(e,["a:tcPr","a:lnB"]))||(r&&(m=ie(n[r],["a:tcStyle","a:tcBdr","a:bottom","a:ln"])),m||(m=ie(n,["a:wholeTbl","a:tcStyle","a:tcBdr","a:bottom","a:ln"]))),(R=ie(e,["a:tcPr","a:lnT"]))||(r&&(R=ie(n[r],["a:tcStyle","a:tcBdr","a:top","a:ln"])),R||(R=ie(n,["a:wholeTbl","a:tcStyle","a:tcBdr","a:top","a:ln"]))),(A=ie(e,["a:tcPr","a:lnL"]))||(r&&(A=ie(n[r],["a:tcStyle","a:tcBdr","a:left","a:ln"])),A||(A=ie(n,["a:wholeTbl","a:tcStyle","a:tcBdr","a:left","a:ln"]))),(x=ie(e,["a:tcPr","a:lnR"]))||(r&&(x=ie(n[r],["a:tcStyle","a:tcBdr","a:right","a:ln"])),x||(x=ie(n,["a:wholeTbl","a:tcStyle","a:tcBdr","a:right","a:ln"]))),M={},m&&(M.bottom=vh(m,void 0,a)),R&&(M.top=vh(R,void 0,a)),A&&(M.left=vh(A,void 0,a)),x&&(M.right=vh(x,void 0,a)),S.abrupt("return",{fillColor:u,fontColor:f,fontBold:d,borders:M,vAlign:c==="ctr"?"mid":c==="b"?"down":"up",rowSpan:i?+i:void 0,colSpan:o?+o:void 0,vMerge:s?+s:void 0,hMerge:l?+l:void 0});case 29:case"end":return S.stop()}},t)}))).apply(this,arguments)}function PZe(t,e,n,r,a){var i,o,s;if(r&&r["a:wholeTbl"]){var l=ie(r,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]);if(l){var c=Kr(l,void 0,void 0,a);c&&(i=c)}var u=ie(r,["a:wholeTbl","a:tcTxStyle"]);if(u){var f=ix(u,a);f&&(o=f),ie(u,["attrs","b"])==="on"&&(s=!0)}}if(e===0&&n.isFrstRowAttr===1&&r){var d=ie(r,["a:firstRow","a:tcStyle","a:fill","a:solidFill"]);if(d){var h=Kr(d,void 0,void 0,a);h&&(i=h)}var p=ie(r,["a:firstRow","a:tcTxStyle"]);if(p){var v=ix(p,a);v&&(o=v),ie(p,["attrs","b"])==="on"&&(s=!0)}}else if(e>0&&n.isBandRowAttr===1&&r){if(i="",e%2==0&&r["a:band2H"]){var g=ie(r,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);if(g){var y=Kr(g,void 0,void 0,a);y&&(i=y)}var m=ie(r,["a:band2H","a:tcTxStyle"]);if(m){var R=ix(m,a);R&&(o=R)}ie(m,["attrs","b"])==="on"&&(s=!0)}if(e%2!=0&&r["a:band1H"]){var A=ie(r,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);if(A){var x=Kr(A,void 0,void 0,a);x&&(i=x)}var M=ie(r,["a:band1H","a:tcTxStyle"]);if(M){var S=ix(M,a);S&&(o=S),ie(M,["attrs","b"])==="on"&&(s=!0)}}}if(e===t.length-1&&n.isLstRowAttr===1&&r){var w=ie(r,["a:lastRow","a:tcStyle","a:fill","a:solidFill"]);if(w){var _=Kr(w,void 0,void 0,a);_&&(i=_)}var T=ie(r,["a:lastRow","a:tcTxStyle"]);if(T){var O=ix(T,a);O&&(o=O),ie(T,["attrs","b"])==="on"&&(s=!0)}}return{fillColor:i,fontColor:o,fontBold:s}}function UMe(t){var e=[];return iS(t)!=="object"||(t["m:oMath"]&&(e=e.concat(t["m:oMath"])),Object.values(t).forEach(function(n){(Array.isArray(n)||iS(n)==="object")&&(e=e.concat(UMe(n)))})),e}function x1e(t,e){var n=_a(t["m:e"]),r=_a(t["m:lim"]);return e==="low"?"".concat(n,"_{").concat(r,"}"):"".concat(n,"^{").concat(r,"}")}function _a(t){if(!t)return"";if(Array.isArray(t))return t.map(function(o){return _a(o)}).join("");for(var e=[],n=Object.keys(t),r=function(){var o=i[a];Array.isArray(t[o])?e.push.apply(e,Ej(t[o].map(function(s){return{key:o,value:s}}))):e.push({key:o,value:t[o]})},a=0,i=n;a<i.length;a++)r();return e.sort(function(o,s){var l=0;o.key==="m:r"&&o.value&&o.value["a:rPr"]?l=o.value["a:rPr"].attrs.order:o.value["".concat(o.key,"Pr")]&&o.value["".concat(o.key,"Pr")]["m:ctrlPr"]&&o.value["".concat(o.key,"Pr")]["m:ctrlPr"]["a:rPr"]&&(l=o.value["".concat(o.key,"Pr")]&&o.value["".concat(o.key,"Pr")]["m:ctrlPr"]&&o.value["".concat(o.key,"Pr")]["m:ctrlPr"]["a:rPr"]&&o.value["".concat(o.key,"Pr")]["m:ctrlPr"]["a:rPr"].attrs.order);var c=0;return s.key==="m:r"&&s.value&&s.value["a:rPr"]?c=s.value["a:rPr"].attrs.order:s.value["".concat(s.key,"Pr")]&&s.value["".concat(s.key,"Pr")]["m:ctrlPr"]&&s.value["".concat(s.key,"Pr")]["m:ctrlPr"]["a:rPr"]&&(c=s.value["".concat(s.key,"Pr")]&&s.value["".concat(s.key,"Pr")]["m:ctrlPr"]&&s.value["".concat(s.key,"Pr")]["m:ctrlPr"]["a:rPr"]&&s.value["".concat(s.key,"Pr")]["m:ctrlPr"]["a:rPr"].attrs.order),l-c}),e.map(function(o){var s,l,c,u,f,d,h,p,v,g,y,m,R,A,x,M,S,w=o.key,_=o.value;return w==="m:f"?(l=_a((s=_)["m:num"]),c=_a(s["m:den"]),"\\frac{".concat(l,"}{").concat(c,"}")):w==="m:sSup"?(f=_a((u=_)["m:e"]),d=_a(u["m:sup"]),"".concat(f,"^{").concat(d,"}")):w==="m:sSub"?function(T){var O=_a(T["m:e"]),N=_a(T["m:sub"]);return"".concat(O,"_{").concat(N,"}")}(_):w==="m:rad"?(p=_a((h=_)["m:deg"]),v=_a(h["m:e"]),p?"\\sqrt[".concat(p,"]{").concat(v,"}"):"\\sqrt{".concat(v,"}")):w==="m:nary"?function(T){var O=ie(T,["m:naryPr","m:chr","attrs","m:val"])||"∫",N=_a(T["m:sub"]),P=_a(T["m:sup"]),C=_a(T["m:e"]);return"".concat(O,"_{").concat(N,"}^{").concat(P,"}{").concat(C,"}")}(_):w==="m:limLow"?x1e(_,"low"):w==="m:limUpp"?x1e(_,"upp"):w==="m:d"?function(T){var O=ie(T,["m:dPr","m:begChr","attrs","m:val"]),N=ie(T,["m:dPr","m:endChr","attrs","m:val"]);O||N||(O="(",N=")"),O&&N&&(O="\\left".concat(O),N="\\right".concat(N));var P=_a(T["m:e"]);return"".concat(O).concat(P).concat(N)}(_):w==="m:func"?(y=_a((g=_)["m:fName"]),m=_a(g["m:e"]),"\\".concat(y,"{").concat(m,"}")):w==="m:groupChr"?(A=ie(R=_,["m:groupChrPr","m:chr","attrs","m:val"]),x=_a(R["m:e"]),"".concat(A).concat(x).concat(A)):w==="m:eqArr"?(M=_["m:e"].map(function(T){return _a(T)}).join(" \\\\ "),"\\begin{cases} ".concat(M," \\end{cases}")):w==="m:bar"?function(T){var O=_a(T["m:e"]);return ie(T,["m:barPr","m:pos","attrs","m:val"])==="top"?"\\overline{".concat(O,"}"):"\\underline{".concat(O,"}")}(_):w==="m:acc"?function(T){var O=ie(T,["m:accPr","m:chr","attrs","m:val"])||"^",N=_a(T["m:e"]);switch(O){case"́":return"\\acute{".concat(N,"}");case"̀":return"\\grave{".concat(N,"}");case"̂":return"\\hat{".concat(N,"}");case"̃":return"\\tilde{".concat(N,"}");case"̄":return"\\bar{".concat(N,"}");case"̆":return"\\breve{".concat(N,"}");case"̇":return"\\dot{".concat(N,"}");case"̈":return"\\ddot{".concat(N,"}");case"̊":return"\\mathring{".concat(N,"}");case"̋":return"\\H{".concat(N,"}");case"̌":return"\\check{".concat(N,"}");case"̧":return"\\c{".concat(N,"}");default:return"\\".concat(O,"{").concat(N,"}")}}(_):w==="m:borderBox"?function(T){var O=_a(T["m:e"]);return"\\boxed{".concat(O,"}")}(_):w==="m:m"?(S=_["m:mr"].map(function(T){return T["m:e"].map(function(O){return _a(O)}).join(" & ")}),"\\begin{matrix} ".concat(S.join(" \\\\ ")," \\end{matrix}")):w==="m:r"?_a(_):w==="m:t"?_:""}).join("")}function CZe(t){return t.replaceAll(/</g,"<").replaceAll(/>/g,">").replaceAll(/&/g,"&").replaceAll(/'/g,"'").replaceAll(/"/g,'"')}function Xn(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(l,c){if(l){if(typeof l=="string")return S1e(l,c);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(l);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return S1e(l,c)}}(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return o=l.done,l},e:function(l){s=!0,i=l},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw i}}}}function S1e(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ht(t,e,n,r,a,i,o){for(var s,l="",c=i>=a?1:-1,u=a;s=u,c>0?s<=i:s>=i;){var f=u*(Math.PI/180),d=t+Math.cos(f)*n,h=e+Math.sin(f)*r;u===a&&(l=" M".concat(d," ").concat(h)),l+=" L".concat(d," ").concat(h),u+=c}return o&&(l+=" z"),l}function NZe(t,e,n,r){var a="";switch(t){case"rect":case"actionButtonBlank":case"leftRightCircularArrow":case"chartPlus":case"chartStar":case"chartX":case"cornerTabs":case"flowChartOfflineStorage":case"folderCorner":case"funnel":case"lineInv":case"nonIsoscelesTrapezoid":case"plaqueTabs":case"squareTabs":case"upDownArrowCallout":default:a="M 0 0 L ".concat(e," 0 L ").concat(e," ").concat(n," L 0 ").concat(n," Z");break;case"flowChartPredefinedProcess":a="M 0 0 L ".concat(e," 0 L ").concat(e," ").concat(n," L 0 ").concat(n," Z M ").concat(e*(1/8)," 0 L ").concat(e*(1/8)," ").concat(n," M ").concat(e*(7/8)," 0 L ").concat(e*(7/8)," ").concat(n);break;case"flowChartInternalStorage":a="M 0 0 L ".concat(e," 0 L ").concat(e," ").concat(n," L 0 ").concat(n," Z M ").concat(e*(1/8)," 0 L ").concat(e*(1/8)," ").concat(n," M 0 ").concat(n*(1/8)," L ").concat(e," ").concat(n*(1/8));break;case"flowChartCollate":a="M 0,0 L ".concat(e,",0 L 0,").concat(n," L ").concat(e,",").concat(n," z");break;case"flowChartDocument":var i=10800*e/21600,o=17322*n/21600,s=20172*n/21600,l=23922*n/21600;a="M 0,0 L ".concat(e,",0 L ").concat(e,",").concat(o," C ").concat(i,",").concat(o," ").concat(i,",").concat(l," 0,").concat(s," z");break;case"flowChartMultidocument":var c=18022*n/21600,u=3675*n/21600,f=23542*n/21600,d=1815*n/21600,h=16252*n/21600,p=16352*n/21600,v=14392*n/21600,g=20782*n/21600,y=14467*n/21600,m=1532*e/21600,R=2e4*e/21600,A=9298*e/21600,x=19298*e/21600,M=18595*e/21600,S=2972*e/21600,w=20800*e/21600;a="M 0,".concat(u," L ").concat(M,",").concat(u," L ").concat(M,",").concat(c," C ").concat(A,",").concat(c," ").concat(A,",").concat(f," 0,").concat(g," z M ").concat(m,",").concat(u," L ").concat(m,",").concat(d," L ").concat(R,",").concat(d," L ").concat(R,",").concat(h," C ").concat(x,",").concat(h," ").concat(M,",").concat(p," ").concat(M,",").concat(p," M ").concat(S,",").concat(d," L ").concat(S,",0 L ").concat(e,",0 L ").concat(e,",").concat(v," C ").concat(w,",").concat(v," ").concat(R,",").concat(y," ").concat(R,",").concat(y);break;case"actionButtonBackPrevious":var _=e/2,T=n/2,O=3*Math.min(e,n)/8,N=T-O,P=T+O,C=_-O,E=_+O;a="M 0,0 L ".concat(e,",0 L ").concat(e,",").concat(n," L 0,").concat(n," z M ").concat(C,",").concat(T," L ").concat(E,",").concat(N," L ").concat(E,",").concat(P," z");break;case"actionButtonBeginning":var F=e/2,Y=n/2,Q=Math.min(e,n),K=3*Q/8,ne=Y-K,Z=Y+K,$=F-K,G=F+K,ee=3*Q/4,ce=$+ee/8,B=$+ee/4;a="M 0,0 L ".concat(e,",0 L ").concat(e,",").concat(n," L 0,").concat(n," z M ").concat(B,",").concat(Y," L ").concat(G,",").concat(ne," L ").concat(G,",").concat(Z," z M ").concat(ce,",").concat(ne," L ").concat($,",").concat(ne," L ").concat($,",").concat(Z," L ").concat(ce,",").concat(Z," z");break;case"actionButtonDocument":var xe=e/2,_e=n/2,se=Math.min(e,n),z=3*se/8,de=_e-z,fe=_e+z,re=9*se/32,X=xe-re,j=xe+re,oe=3*se/16,ae=j-oe,le=de+oe;a="M 0,0 L ".concat(e,",0 L ").concat(e,",").concat(n," L 0,").concat(n," z M ").concat(X,",").concat(de," L ").concat(ae,",").concat(de," L ").concat(j,",").concat(le," L ").concat(j,",").concat(fe," L ").concat(X,",").concat(fe," z M ").concat(ae,",").concat(de," L ").concat(ae,",").concat(le," L ").concat(j,",").concat(le," z");break;case"actionButtonEnd":var ge=e/2,Se=n/2,me=Math.min(e,n),ye=3*me/8,Ve=Se-ye,De=Se+ye,Ye=ge-ye,Je=ge+ye,wt=3*me/4,Lt=Ye+3*wt/4,Ne=Ye+7*wt/8;a="M 0,".concat(n," L ").concat(e,",").concat(n," L ").concat(e,",0 L 0,0 z M ").concat(Ne,",").concat(Ve," L ").concat(Je,",").concat(Ve," L ").concat(Je,",").concat(De," L ").concat(Ne,",").concat(De," z M ").concat(Lt,",").concat(Se," L ").concat(Ye,",").concat(Ve," L ").concat(Ye,",").concat(De," z");break;case"actionButtonForwardNext":var Te=e/2,ze=n/2,He=3*Math.min(e,n)/8,pt=ze-He,Ce=ze+He,ut=Te-He,je=Te+He;a="M 0,".concat(n," L ").concat(e,",").concat(n," L ").concat(e,",0 L 0,0 z M ").concat(je,",").concat(ze," L ").concat(ut,",").concat(pt," L ").concat(ut,",").concat(Ce," z");break;case"actionButtonHelp":var it=e/2,Pt=n/2,Yt=Math.min(e,n),dt=3*Yt/8,fn=Pt-dt,pn=it-dt,En=3*Yt/4,yi=En/7,qi=3*En/14,Ta=2*En/7,Ys=fn+Ta,eo=fn+17*En/28,Ei=fn+21*En/28,Jf=fn+11*En/14,Bs=pn+qi,Vn=pn+3*En/7,Ar=pn+4*En/7,Xh=En/14,Zs=3*En/28,Dh=Bs+Ta,P0=Vn+yi,jS=Jf+Zs,Ll=(Ar+Vn+Ta)/2;a="M 0,0 L ".concat(e,",0 L ").concat(e,",").concat(n," L 0,").concat(n," z M ").concat(Bs,",").concat(Ys," ").concat(ht(Dh,Ys,Ta,Ta,180,360,!1).replace("M","L")," ").concat(ht(Ll,Ys,yi,qi,0,90,!1).replace("M","L")," ").concat(ht(Ll,eo,Xh,Zs,270,180,!1).replace("M","L")," L ").concat(Ar,",").concat(Ei," L ").concat(Vn,",").concat(Ei," L ").concat(Vn,",").concat(eo," ").concat(ht(P0,eo,yi,qi,180,270,!1).replace("M","L")," ").concat(ht(Ar,Ys,Xh,Zs,90,0,!1).replace("M","L")," ").concat(ht(Dh,Ys,yi,yi,0,-180,!1).replace("M","L")," z M ").concat(it,",").concat(Jf," ").concat(ht(it,jS,Zs,Zs,270,630,!1).replace("M","L")," z");break;case"actionButtonHome":var Mc=e/2,vo=n/2,jf=Math.min(e,n),C0=3*jf/8,Uo=vo-C0,Vh=vo+C0,go=Mc-C0,Cy=Mc+C0,Wo=3*jf/4,$r=Uo+Wo/16,Pu=Uo+3*Wo/16,Yo=Uo+5*Wo/16,gg=Uo+3*Wo/4,Cu=go+Wo/8,Uh=go+7*Wo/16,Wh=go+9*Wo/16,Yh=go+11*Wo/16,Tl=go+13*Wo/16,mg=go+7*Wo/8;a="M 0,0 L ".concat(e,",0 L ").concat(e,",").concat(n," L 0,").concat(n," z M ").concat(Mc,",").concat(Uo," L ").concat(go,",").concat(vo," L ").concat(Cu,",").concat(vo," L ").concat(Cu,",").concat(Vh," L ").concat(mg,",").concat(Vh," L ").concat(mg,",").concat(vo," L ").concat(Cy,",").concat(vo," L ").concat(Tl,",").concat(Yo," L ").concat(Tl,",").concat($r," L ").concat(Yh,",").concat($r," L ").concat(Yh,",").concat(Pu," z M ").concat(Uh,",").concat(gg," L ").concat(Wh,",").concat(gg," L ").concat(Wh,",").concat(Vh," L ").concat(Uh,",").concat(Vh," z");break;case"actionButtonInformation":var _c=e/2,Ny=n/2,ar=Math.min(e,n),Nu=3*ar/8,Ol=Ny-Nu,qf=_c-Nu,sr=3*ar/4,ed=5*sr/16,Iu=Ol+sr/32,Qs=Ol+ed,Bh=Ol+3*sr/8,td=Ol+13*sr/16,nd=Ol+7*sr/8,rd=qf+ed,ku=qf+13*sr/32,yg=qf+19*sr/32,Eu=qf+11*sr/16,ad=3*sr/32,Ag=Ol+Nu,nr=Iu+ad;a="M 0,0 L ".concat(e,",0 L ").concat(e,",").concat(n," L 0,").concat(n," z M ").concat(_c,",").concat(Ol," ").concat(ht(_c,Ag,Nu,Nu,270,630,!1).replace("M","L")," z M ").concat(_c,",").concat(Iu," ").concat(ht(_c,nr,ad,ad,270,630,!1).replace("M","L")," M ").concat(rd,",").concat(Qs," L ").concat(yg,",").concat(Qs," L ").concat(yg,",").concat(td," L ").concat(Eu,",").concat(td," L ").concat(Eu,",").concat(nd," L ").concat(rd,",").concat(nd," L ").concat(rd,",").concat(td," L ").concat(ku,",").concat(td," L ").concat(ku,",").concat(Bh," L ").concat(rd,",").concat(Bh," z");break;case"actionButtonMovie":var Zh=e/2,Iy=n/2,N0=Math.min(e,n),la=Zh-3*N0/8,Fi=Iy-3*N0/8,id=Zh+3*N0/8,zr=3*N0/4,Rg=la+1455*zr/21600,bg=la+1905*zr/21600,Fa=la+2325*zr/21600,gs=la+16155*zr/21600,wc=la+17010*zr/21600,Qh=la+19335*zr/21600,xg=la+19725*zr/21600,Pl=la+20595*zr/21600,I0=Fi+5280*zr/21600,ms=Fi+5730*zr/21600,Kh=Fi+6630*zr/21600,Sg=Fi+7492*zr/21600,k0=Fi+9067*zr/21600,od=Fi+9555*zr/21600,Er=Fi+13342*zr/21600,Fr=Fi+14580*zr/21600,ky=Fi+15592*zr/21600;a="M 0,".concat(n," L ").concat(e,",").concat(n," L ").concat(e,",0 L 0,0 z M ").concat(la,",").concat(I0," L ").concat(la,",").concat(od," L ").concat(Rg,",").concat(od," L ").concat(bg,",").concat(k0," L ").concat(Fa,",").concat(k0," L ").concat(Fa,",").concat(ky," L ").concat(wc,",").concat(ky," L ").concat(wc,",").concat(Er," L ").concat(Qh,",").concat(Er," L ").concat(Pl,",").concat(Fr," L ").concat(id,",").concat(Fr," L ").concat(id,",").concat(Kh," L ").concat(Pl,",").concat(Kh," L ").concat(xg,",").concat(Sg," L ").concat(wc,",").concat(Sg," L ").concat(wc,",").concat(Kh," L ").concat(gs,",").concat(ms," L ").concat(bg,",").concat(ms," L ").concat(Rg,",").concat(I0," z");break;case"actionButtonReturn":var Cl=e/2,Ey=n/2,Fy=Math.min(e,n),Fu=3*Fy/8,Xu=Ey-Fu,Hh=Ey+Fu,Lc=Cl-Fu,si=Cl+Fu,Tc=3*Fy/4,Ks=3*Tc/4,Gh=5*Tc/8,Hs=3*Tc/8,Ai=Tc/4,sd=Xu+Ks,Oc=Xu+Gh,Pc=Xu+Ai,Xy=Lc+7*Tc/8,$h=Lc+Ks,ld=Lc+Gh,Ri=Lc+Hs,Mg=Lc+Ai,Xa=Tc/8,bi=ld-Xa,cd=sd-Xa,Bo=Lc+Hs,zh=Hh-Hs;a="M 0,".concat(n," L ").concat(e,",").concat(n," L ").concat(e,",0 L 0,0 z M ").concat(si,",").concat(Pc," L ").concat($h,",").concat(Xu," L ").concat(Cl,",").concat(Pc," L ").concat(ld,",").concat(Pc," L ").concat(ld,",").concat(Oc," ").concat(ht(bi,Oc,Xa,Xa,0,90,!1).replace("M","L")," L ").concat(Ri,",").concat(sd," ").concat(ht(Ri,cd,Xa,Xa,90,180,!1).replace("M","L")," L ").concat(Mg,",").concat(Pc," L ").concat(Lc,",").concat(Pc," L ").concat(Lc,",").concat(Oc," ").concat(ht(Bo,Oc,Hs,Hs,180,90,!1).replace("M","L")," L ").concat(Cl,",").concat(Hh," ").concat(ht(Cl,zh,Hs,Hs,90,0,!1).replace("M","L")," L ").concat(Xy,",").concat(Pc," z");break;case"actionButtonSound":var Du=e/2,Xr=n/2,Gs=Math.min(e,n),Nl=3*Gs/8,Vu=Xr-Nl,Il=Xr+Nl,Uu=Du-Nl,Jh=Du+Nl,kl=3*Gs/4,jh=5*kl/16,qh=Vu+kl/8,Cc=Vu+jh,ep=Vu+11*kl/16,tp=Vu+7*kl/8,_g=Uu+jh,ud=Uu+5*kl/8,Wu=Uu+3*kl/4;a="M 0,0 L ".concat(e,",0 L ").concat(e,",").concat(n," L 0,").concat(n," z M ").concat(Uu,",").concat(Cc," L ").concat(_g,",").concat(Cc," L ").concat(ud,",").concat(Vu," L ").concat(ud,",").concat(Il," L ").concat(_g,",").concat(ep," L ").concat(Uu,",").concat(ep," z M ").concat(Wu,",").concat(Cc," L ").concat(Jh,",").concat(qh," M ").concat(Wu,",").concat(Xr," L ").concat(Jh,",").concat(Xr," M ").concat(Wu,",").concat(ep," L ").concat(Jh,",").concat(tp);break;case"irregularSeal1":a="M ".concat(10800*e/21600,",").concat(5800*n/21600," L ").concat(14522*e/21600,",0 L ").concat(14155*e/21600,",").concat(5325*n/21600," L ").concat(18380*e/21600,",").concat(4457*n/21600," L ").concat(16702*e/21600,",").concat(7315*n/21600," L ").concat(21097*e/21600,",").concat(8137*n/21600," L ").concat(17607*e/21600,",").concat(10475*n/21600," L ").concat(e,",").concat(13290*n/21600," L ").concat(16837*e/21600,",").concat(12942*n/21600," L ").concat(18145*e/21600,",").concat(18095*n/21600," L ").concat(14020*e/21600,",").concat(14457*n/21600," L ").concat(13247*e/21600,",").concat(19737*n/21600," L ").concat(10532*e/21600,",").concat(14935*n/21600," L ").concat(8485*e/21600,",").concat(n," L ").concat(7715*e/21600,",").concat(15627*n/21600," L ").concat(4762*e/21600,",").concat(17617*n/21600," L ").concat(5667*e/21600,",").concat(13937*n/21600," L ").concat(135*e/21600,",").concat(14587*n/21600," L ").concat(3722*e/21600,",").concat(11775*n/21600," L 0,").concat(8615*n/21600," L ").concat(4627*e/21600,",").concat(7617*n/21600," L ").concat(370*e/21600,",").concat(2295*n/21600," L ").concat(7312*e/21600,",").concat(6320*n/21600," L ").concat(8352*e/21600,",").concat(2295*n/21600," z");break;case"irregularSeal2":a="M ".concat(11462*e/21600,",").concat(4342*n/21600," L ").concat(14790*e/21600,",0 L ").concat(14525*e/21600,",").concat(5777*n/21600," L ").concat(18007*e/21600,",").concat(3172*n/21600," L ").concat(16380*e/21600,",").concat(6532*n/21600," L ").concat(e,",").concat(6645*n/21600," L ").concat(16985*e/21600,",").concat(9402*n/21600," L ").concat(18270*e/21600,",").concat(11290*n/21600," L ").concat(16380*e/21600,",").concat(12310*n/21600," L ").concat(18877*e/21600,",").concat(15632*n/21600," L ").concat(14640*e/21600,",").concat(14350*n/21600," L ").concat(14942*e/21600,",").concat(17370*n/21600," L ").concat(12180*e/21600,",").concat(15935*n/21600," L ").concat(11612*e/21600,",").concat(18842*n/21600," L ").concat(9872*e/21600,",").concat(17370*n/21600," L ").concat(8700*e/21600,",").concat(19712*n/21600," L ").concat(7527*e/21600,",").concat(18125*n/21600," L ").concat(4917*e/21600,",").concat(n," L ").concat(4805*e/21600,",").concat(18240*n/21600," L ").concat(1285*e/21600,",").concat(17825*n/21600," L ").concat(3330*e/21600,",").concat(15370*n/21600," L 0,").concat(12877*n/21600," L ").concat(3935*e/21600,",").concat(11592*n/21600," L ").concat(1172*e/21600,",").concat(8270*n/21600," L ").concat(5372*e/21600,",").concat(7817*n/21600," L ").concat(4502*e/21600,",").concat(3625*n/21600," L ").concat(8550*e/21600,",").concat(6382*n/21600," L ").concat(9722*e/21600,",").concat(1887*n/21600," z");break;case"flowChartTerminator":var fd=3475*e/21600,wg=18125*e/21600,E0=10800*n/21600;a="M ".concat(fd,",0 L ").concat(wg,",0 ").concat(ht(wg,n/2,fd,E0,270,450,!1).replace("M","L")," L ").concat(fd,",").concat(n," ").concat(ht(fd,n/2,fd,E0,90,270,!1).replace("M","L")," z");break;case"flowChartPunchedTape":var dd=180,Yu=5*e/20,Nc=2*n/20,xi=18*n/20;a="M 0,".concat(Nc," ").concat(ht(Yu,Nc,Yu,Nc,dd,0,!1).replace("M","L")," ").concat(ht(e*(3/4),Nc,Yu,Nc,dd,360,!1).replace("M","L")," L ").concat(e,",").concat(xi," ").concat(ht(e*(3/4),xi,Yu,Nc,0,-180,!1).replace("M","L")," ").concat(ht(Yu,xi,Yu,Nc,0,dd,!1).replace("M","L")," z");break;case"flowChartOnlineStorage":var El=1*e/6,Bu=3*n/6;a="M ".concat(El,",0 L ").concat(e,",0 ").concat(ht(e,n/2,El,Bu,270,90,!1).replace("M","L")," L ").concat(El,",").concat(n," ").concat(ht(El,n/2,El,Bu,90,270,!1).replace("M","L")," z");break;case"flowChartDisplay":var np=1*e/6,Dy=5*e/6,Vy=3*n/6;a="M 0,".concat(Vy," L ").concat(np,",0 L ").concat(Dy,",0 ").concat(ht(e,n/2,np,Vy,270,450,!1).replace("M","L")," L ").concat(np,",").concat(n," z");break;case"flowChartDelay":var Lg=e/2,rp=n/2;a="M 0,0 L ".concat(Lg,",0 ").concat(ht(Lg,rp,Lg,rp,270,450,!1).replace("M","L")," L 0,").concat(n," z");break;case"flowChartMagneticTape":var li=e/2,wr=n/2,Fl=wr+wr*Math.sin(Math.PI/4),Zo=180*Math.atan(n/e)/Math.PI;a="M ".concat(li,",").concat(n," ").concat(ht(li,wr,li,wr,90,180,!1).replace("M","L")," ").concat(ht(li,wr,li,wr,180,270,!1).replace("M","L")," ").concat(ht(li,wr,li,wr,270,360,!1).replace("M","L")," ").concat(ht(li,wr,li,wr,0,Zo,!1).replace("M","L")," L ").concat(e,",").concat(Fl," L ").concat(e,",").concat(n," z");break;case"ellipse":case"flowChartConnector":case"flowChartSummingJunction":case"flowChartOr":var ap=e/2,Xl=n/2,Zu=e/2,Xi=n/2;if(a="M ".concat(ap-Zu,",").concat(Xl," A ").concat(Zu,",").concat(Xi," 0 1,0 ").concat(ap+Zu,",").concat(Xl," A ").concat(Zu,",").concat(Xi," 0 1,0 ").concat(ap-Zu,",").concat(Xl," Z"),t==="flowChartOr")a+=" M ".concat(e/2," 0 L ").concat(e/2," ").concat(n," M 0 ").concat(n/2," L ").concat(e," ").concat(n/2);else if(t==="flowChartSummingJunction"){var Qu=Math.PI/4,Ku=e/2*Math.cos(Qu),Dl=n/2*Math.sin(Qu),Tg=ap-Ku,k=ap+Ku,W=Xl-Dl,J=Xl+Dl;a+=" M ".concat(Tg," ").concat(W," L ").concat(k," ").concat(J," M ").concat(k," ").concat(W," L ").concat(Tg," ").concat(J)}break;case"roundRect":case"round1Rect":case"round2DiagRect":case"round2SameRect":case"snip1Rect":case"snip2DiagRect":case"snip2SameRect":case"flowChartAlternateProcess":case"flowChartPunchedCard":var ue,he,Re,Pe,Ie=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);if(Ie&&Array.isArray(Ie)){var Ke,Ae=Xn(Ie);try{for(Ae.s();!(Ke=Ae.n()).done;){var Oe=Ke.value,be=ie(Oe,["attrs","name"]);if(be==="adj1"){var Xe=ie(Oe,["attrs","fmla"]);ue=parseInt(Xe.substring(4))/5e4}else if(be==="adj2"){var ke=ie(Oe,["attrs","fmla"]);he=parseInt(ke.substring(4))/5e4}}}catch(gt){Ae.e(gt)}finally{Ae.f()}}else if(Ie){var Ze=ie(Ie,["attrs","fmla"]);ue=parseInt(Ze.substring(4))/5e4,he=0}switch(t){case"roundRect":case"flowChartAlternateProcess":Re="round",Pe="cornrAll",ue===void 0&&(ue=.33334),he=0;break;case"round1Rect":Re="round",Pe="cornr1",ue===void 0&&(ue=.33334),he=0;break;case"round2DiagRect":Re="round",Pe="diag",ue===void 0&&(ue=.33334),he===void 0&&(he=0);break;case"round2SameRect":Re="round",Pe="cornr2",ue===void 0&&(ue=.33334),he===void 0&&(he=0);break;case"snip1Rect":Re="snip",Pe="cornr1",ue===void 0&&(ue=.33334),he=0;break;case"flowChartPunchedCard":Re="snip",Pe="cornrTL",ue===void 0&&(ue=.33334),he=0;break;case"snip2DiagRect":Re="snip",Pe="diag",ue===void 0&&(ue=0),he===void 0&&(he=.33334);break;case"snip2SameRect":Re="snip",Pe="cornr2",ue===void 0&&(ue=.33334),he===void 0&&(he=0)}a=function(gt,Jn,Ua,Bi,Zi,lf){var Wa,Ya,fi,za;switch(lf){case"cornr1":Wa=0,Ya=0,fi=0,za=Ua;break;case"cornr2":Wa=Ua,Ya=Bi,fi=Bi,za=Ua;break;case"cornrAll":Wa=Ua,Ya=Ua,fi=Ua,za=Ua;break;case"diag":Wa=Ua,Ya=Bi,fi=Ua,za=Bi;break;case"cornrTL":Wa=Ua,Ya=0,fi=0,za=0;break;default:Wa=Ya=fi=za=0}return Zi==="round"?"M0,".concat(Jn/2+Jn/2*(1-Ya)," Q0,").concat(Jn," ").concat(Ya*(gt/2),",").concat(Jn," L").concat(gt/2+gt/2*(1-fi),",").concat(Jn," Q").concat(gt,",").concat(Jn," ").concat(gt,",").concat(Jn/2+Jn/2*(1-fi)," L").concat(gt,",").concat(Jn/2*za," Q").concat(gt,",0 ").concat(gt/2+gt/2*(1-za),",0 L").concat(gt/2*Wa,",0 Q0,0 0,").concat(Jn/2*Wa," z"):Zi==="snip"?"M0,".concat(Wa*(Jn/2)," L0,").concat(Jn/2+Jn/2*(1-Ya)," L").concat(Ya*(gt/2),",").concat(Jn," L").concat(gt/2+gt/2*(1-fi),",").concat(Jn," L").concat(gt,",").concat(Jn/2+Jn/2*(1-fi)," L").concat(gt,",").concat(za*(Jn/2)," L").concat(gt/2+gt/2*(1-za),",0 L").concat(gt/2*Wa,",0 z"):""}(e,n,ue,he,Re,Pe);break;case"snipRoundRect":var $e=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),Be=.33334,ot=.33334;if($e){var ft,st=Xn($e);try{for(st.s();!(ft=st.n()).done;){var Rt=ft.value,Ft=ie(Rt,["attrs","name"]);if(Ft==="adj1"){var Ut=ie(Rt,["attrs","fmla"]);Be=parseInt(Ut.substring(4))/5e4}else if(Ft==="adj2"){var kt=ie(Rt,["attrs","fmla"]);ot=parseInt(kt.substring(4))/5e4}}}catch(gt){st.e(gt)}finally{st.f()}}a="M0,".concat(n," L").concat(e,",").concat(n," L").concat(e,",").concat(n/2*ot," L").concat(e/2+e/2*(1-ot),",0 L").concat(e/2*Be,",0 Q0,0 0,").concat(n/2*Be," z");break;case"bentConnector2":a="M ".concat(e," 0 L ").concat(e," ").concat(n," L 0 ").concat(n);break;case"rtTriangle":a="M 0 0 L 0 ".concat(n," L ").concat(e," ").concat(n," Z");break;case"triangle":case"flowChartExtract":case"flowChartMerge":var Dt=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Tt=.5;Dt&&(Tt=parseInt(Dt.substring(4))*ct);var Bt=e*Tt,zt=0,Mn=0,Un=n,Wn=e,Di=n;if(t==="flowChartMerge"){var _n=[e-Bt,n-zt];Bt=_n[0],zt=_n[1];var ea=[e-Mn,n-Un];Mn=ea[0],Un=ea[1];var Oa=[e-Wn,n-Di];Wn=Oa[0],Di=Oa[1]}a="M ".concat(Bt," ").concat(zt," L ").concat(Mn," ").concat(Un," L ").concat(Wn," ").concat(Di," Z");break;case"diamond":case"flowChartDecision":case"flowChartSort":a="M ".concat(e/2," 0 L 0 ").concat(n/2," L ").concat(e/2," ").concat(n," L ").concat(e," ").concat(n/2," Z"),t==="flowChartSort"&&(a+=" M 0 ".concat(n/2," L ").concat(e," ").concat(n/2));break;case"trapezoid":case"flowChartManualOperation":case"flowChartManualInput":var hd=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),da=.2;hd&&(da=.5*(parseInt(hd.substring(4))*ct)/.7407);var ys=e*da,Hu=0,F0=0,Uy=n,ip=e,Gu=n,op=(1-da)*e,qS=0;if(t==="flowChartManualInput"&&(Hu=n/5,ys=e*(da=0),op=(1-da)*e),t==="flowChartManualOperation"){var $8=[e-ys,n-Hu];ys=$8[0],Hu=$8[1];var z8=[e-F0,n-Uy];F0=z8[0],Uy=z8[1];var Og=[e-ip,n-Gu];ip=Og[0],Gu=Og[1];var Pg=[e-op,n-qS];op=Pg[0],qS=Pg[1]}a="M ".concat(ys," ").concat(Hu," L ").concat(F0," ").concat(Uy," L ").concat(ip," ").concat(Gu," L ").concat(op," ").concat(qS," Z");break;case"parallelogram":case"flowChartInputOutput":var Wy=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),e4=.25;if(Wy){var J8=e>n?e/n:n/e;e4=parseInt(Wy.substring(4))/1e5/J8}a="M ".concat(e4*e," 0 L 0 ").concat(n," L ").concat((1-e4)*e," ").concat(n," L ").concat(e," 0 Z");break;case"pentagon":a="M ".concat(.5*e," 0 L 0 ").concat(.375*n," L ").concat(.15*e," ").concat(n," L ").concat(.85*e," ").concat(n," L ").concat(e," ").concat(.375*n," Z");break;case"hexagon":case"flowChartPreparation":var j8=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Yy=1.9685039370078738;j8&&(Yy=parseInt(j8.substring(4))*ct);var Ga=7.874015748031495,to=60*Math.PI/180,q8=Math.min(e,n),eL=3.9370078740157477*e/q8,By=q8*(Yy<0?0:Yy>eL?eL:Yy)/Ga,tL=e-By,Zy=9.092125984251968*(n/2)/Ga*Math.sin(to),pd=n/2,Qy=pd-Zy,sp=pd+Zy;a="M 0,".concat(pd," L ").concat(By,",").concat(Qy," L ").concat(tL,",").concat(Qy," L ").concat(e,",").concat(pd," L ").concat(tL,",").concat(sp," L ").concat(By,",").concat(sp," z");break;case"heptagon":a="M ".concat(.5*e," 0 L ").concat(e/8," ").concat(n/4," L 0 ").concat(5/8*n," L ").concat(e/4," ").concat(n," L ").concat(3/4*e," ").concat(n," L ").concat(e," ").concat(5/8*n," L ").concat(7/8*e," ").concat(n/4," Z");break;case"octagon":var X0=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Ic=.25;X0&&(Ic=parseInt(X0.substring(4))/1e5);var lp=1-Ic;a="M ".concat(Ic*e," 0 L 0 ").concat(Ic*n," L 0 ").concat(lp*n," L ").concat(Ic*e," ").concat(n," L ").concat(lp*e," ").concat(n," L ").concat(e," ").concat(lp*n," L ").concat(e," ").concat(Ic*n," L ").concat(lp*e," 0 Z");break;case"decagon":a="M ".concat(3/8*e," 0 L ").concat(e/8," ").concat(n/8," L 0 ").concat(n/2," L ").concat(e/8," ").concat(7/8*n," L ").concat(3/8*e," ").concat(n," L ").concat(5/8*e," ").concat(n," L ").concat(7/8*e," ").concat(7/8*n," L ").concat(e," ").concat(n/2," L ").concat(7/8*e," ").concat(n/8," L ").concat(5/8*e," 0 Z");break;case"dodecagon":a="M ".concat(3/8*e," 0 L ").concat(e/8," ").concat(n/8," L 0 ").concat(3/8*n," L 0 ").concat(5/8*n," L ").concat(e/8," ").concat(7/8*n," L ").concat(3/8*e," ").concat(n," L ").concat(5/8*e," ").concat(n," L ").concat(7/8*e," ").concat(7/8*n," L ").concat(e," ").concat(5/8*n," L ").concat(e," ").concat(3/8*n," L ").concat(7/8*e," ").concat(n/8," L ").concat(5/8*e," 0 Z");break;case"star4":var $u=e/2,Ky=n/2,eU=e/2,tU=n/2,Hy=1.503779527559055,Gy=3.9370078740157477,D0=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);D0&&D0.attrs.name==="adj"&&(Hy=parseInt(D0.attrs.fmla.substring(4))*ct);var V0=Hy<0?0:Hy>Gy?Gy:Hy,nL=tU*V0/Gy,Me=eU*V0/Gy*Math.cos(.7853981634),cp=nL*Math.sin(.7853981634),Cg=$u-Me,As=$u+Me,lr=Ky-cp,rL=Ky+cp;a="M 0,".concat(Ky," L ").concat(Cg,",").concat(lr," L ").concat($u,",0 L ").concat(As,",").concat(lr," L ").concat(e,",").concat(Ky," L ").concat(As,",").concat(rL," L ").concat($u,",").concat(n," L ").concat(Cg,",").concat(rL," z");break;case"star5":var kc=e/2,nU=n/2,up=e/2,rU=n/2,$y=1.503779527559055,aL=8.279212598425197,t4=8.70527559055118,zy=3.9370078740157477,Vl=7.874015748031495,U0=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);U0&&Object.keys(U0).forEach(function(gt){var Jn=U0[gt].attrs.name;Jn==="adj"?$y=parseInt(U0[gt].attrs.fmla.substring(4))*ct:Jn==="hf"?aL=parseInt(U0[gt].attrs.fmla.substring(4))*ct:Jn==="vf"&&(t4=parseInt(U0[gt].attrs.fmla.substring(4))*ct)});var iL=$y<0?0:$y>zy?zy:$y,n4=up*aL/Vl,r4=rU*t4/Vl,Ng=nU*t4/Vl,Ec=n4*Math.cos(.31415926536),oL=n4*Math.cos(5.3407075111),aU=kc-Ec,iU=kc-oL,oU=kc+oL,sU=kc+Ec,vd=Ng-r4*Math.sin(.31415926536),sL=Ng-r4*Math.sin(5.3407075111),lL=n4*iL/zy,Rs=r4*iL/zy,cL=lL*Math.cos(5.9690260418),uL=lL*Math.cos(.94247779608),lU=kc-cL,cU=kc-uL,uU=kc+uL,fL=kc+cL,a4=Ng-Rs*Math.sin(.94247779608),dL=Ng-Rs*Math.sin(5.9690260418),fU=Ng+Rs;a="M ".concat(aU,",").concat(vd," L ").concat(cU,",").concat(a4," L ").concat(kc,",0 L ").concat(uU,",").concat(a4," L ").concat(sU,",").concat(vd," L ").concat(fL,",").concat(dL," L ").concat(oU,",").concat(sL," L ").concat(kc,",").concat(fU," L ").concat(iU,",").concat(sL," L ").concat(lU,",").concat(dL," z");break;case"star6":var Fc=e/2,zu=n/2,Jy=e/2,dU=n/2,jy=n/4,qy=2.2730708661417323,Xc=9.092125984251968,W0=3.9370078740157477,Ul=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);Ul&&Object.keys(Ul).forEach(function(gt){var Jn=Ul[gt].attrs.name;Jn==="adj"?qy=parseInt(Ul[gt].attrs.fmla.substring(4))*ct:Jn==="hf"&&(Xc=parseInt(Ul[gt].attrs.fmla.substring(4))*ct)});var bs=qy<0?0:qy>W0?W0:qy,hL=Jy*Xc/7.874015748031495,i4=hL*Math.cos(.5235987756),o4=Fc-i4,Y0=Fc+i4,Ju=zu+jy,eA=hL*bs/W0,pL=eA/2,tA=Fc-eA,vL=Fc-pL,s4=Fc+pL,Vi=Fc+eA,nA=dU*bs/W0*Math.sin(1.0471975512),l4=zu-nA,Wl=zu+nA;a="M ".concat(o4,",").concat(jy," L ").concat(vL,",").concat(l4," L ").concat(Fc,",0 L ").concat(s4,",").concat(l4," L ").concat(Y0,",").concat(jy," L ").concat(Vi,",").concat(zu," L ").concat(Y0,",").concat(Ju," L ").concat(s4,",").concat(Wl," L ").concat(Fc,",").concat(n," L ").concat(vL,",").concat(Wl," L ").concat(o4,",").concat(Ju," L ").concat(tA,",").concat(zu," z");break;case"star7":var no=e/2,rA=n/2,fp=e/2,gL=n/2,Si=2.7244881889763777,aA=8.076535433070866,c4=8.284251968503936,iA=3.9370078740157477,u4=7.874015748031495,gd=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);gd&&Object.keys(gd).forEach(function(gt){var Jn=gd[gt].attrs.name;Jn==="adj"?Si=parseInt(gd[gt].attrs.fmla.substring(4))*ct:Jn==="hf"?aA=parseInt(gd[gt].attrs.fmla.substring(4))*ct:Jn==="vf"&&(c4=parseInt(gd[gt].attrs.fmla.substring(4))*ct)});var mL=Si<0?0:Si>iA?iA:Si,md=fp*aA/u4,Ig=gL*c4/u4,dp=rA*c4/u4,yL=97493*md/1e5,B0=78183*md/1e5,AL=43388*md/1e5,hU=no-B0,f4=no-AL,RL=no+AL,pU=no+B0,vU=no+yL,bL=dp-62349*Ig/1e5,d4=dp+22252*Ig/1e5,oA=dp+90097*Ig/1e5,h4=md*mL/iA,Z0=Ig*mL/iA,p4=97493*h4/1e5,v4=78183*h4/1e5,g4=43388*h4/1e5,sA=no-p4,gU=no-v4,xL=no-g4,SL=no+g4,mU=no+v4,ML=no+p4,_L=dp-90097*Z0/1e5,lA=dp-22252*Z0/1e5,m4=dp+62349*Z0/1e5,y4=dp+Z0;a="M ".concat(no-yL,",").concat(d4," L ").concat(sA,",").concat(lA," L ").concat(hU,",").concat(bL," L ").concat(xL,",").concat(_L," L ").concat(no,",0 L ").concat(SL,",").concat(_L," L ").concat(pU,",").concat(bL," L ").concat(ML,",").concat(lA," L ").concat(vU,",").concat(d4," L ").concat(mU,",").concat(m4," L ").concat(RL,",").concat(oA," L ").concat(no,",").concat(y4," L ").concat(f4,",").concat(oA," L ").concat(gU,",").concat(m4," z");break;case"star8":var yd=e/2,Dc=n/2,zn=e/2,wL=n/2,cA=2.9527559055118107,Ad=3.9370078740157477,uA=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);uA&&uA.attrs.name==="adj"&&(cA=parseInt(uA.attrs.fmla.substring(4))*ct);var LL=cA<0?0:cA>Ad?Ad:cA,TL=zn*Math.cos(.7853981634),xs=yd-TL,OL=yd+TL,kg=wL*Math.sin(.7853981634),fA=Dc-kg,A4=Dc+kg,R4=zn*LL/Ad,Qo=wL*LL/Ad,ju=92388*R4/1e5,dA=38268*R4/1e5,b4=92388*Qo/1e5,Eg=38268*Qo/1e5,x4=yd-ju,hA=yd-dA,S4=yd+dA,pA=yd+ju,vA=Dc-b4,qu=Dc-Eg,PL=Dc+Eg,ef=Dc+b4;a="M 0,".concat(Dc," L ").concat(x4,",").concat(qu," L ").concat(xs,",").concat(fA," L ").concat(hA,",").concat(vA," L ").concat(yd,",0 L ").concat(S4,",").concat(vA," L ").concat(OL,",").concat(fA," L ").concat(pA,",").concat(qu," L ").concat(e,",").concat(Dc," L ").concat(pA,",").concat(PL," L ").concat(OL,",").concat(A4," L ").concat(S4,",").concat(ef," L ").concat(yd,",").concat(n," L ").concat(hA,",").concat(ef," L ").concat(xs,",").concat(A4," L ").concat(x4,",").concat(PL," z");break;case"star10":var Ss=e/2,Yl=n/2,M4=e/2,_4=n/2,gA=3.349055118110236,CL=8.279212598425197,Fg=3.9370078740157477,Q0=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);Q0&&Object.keys(Q0).forEach(function(gt){var Jn=Q0[gt].attrs.name;Jn==="adj"?gA=parseInt(Q0[gt].attrs.fmla.substring(4))*ct:Jn==="hf"&&(CL=parseInt(Q0[gt].attrs.fmla.substring(4))*ct)});var NL=gA<0?0:gA>Fg?Fg:gA,mA=M4*CL/7.874015748031495,w4=95106*mA/1e5,mo=58779*mA/1e5,Bl=Ss-w4,IL=Ss-mo,kL=Ss+mo,Xg=Ss+w4,hp=80902*_4/1e5,L4=30902*_4/1e5,T4=Yl-hp,EL=Yl-L4,O4=Yl+L4,pp=Yl+hp,Rd=mA*NL/Fg,FL=_4*NL/Fg,P4=80902*Rd/1e5,C4=30902*Rd/1e5,Dg=95106*FL/1e5,N4=58779*FL/1e5,yA=Ss-Rd,AA=Ss-P4,Vg=Ss-C4,XL=Ss+C4,I4=Ss+P4,RA=Ss+Rd,k4=Yl-Dg,bA=Yl-N4,DL=Yl+N4,E4=Yl+Dg;a="M ".concat(Bl,",").concat(EL," L ").concat(AA,",").concat(bA," L ").concat(IL,",").concat(T4," L ").concat(Vg,",").concat(k4," L ").concat(Ss,",0 L ").concat(XL,",").concat(k4," L ").concat(kL,",").concat(T4," L ").concat(I4,",").concat(bA," L ").concat(Xg,",").concat(EL," L ").concat(RA,",").concat(Yl," L ").concat(Xg,",").concat(O4," L ").concat(I4,",").concat(DL," L ").concat(kL,",").concat(pp," L ").concat(XL,",").concat(E4," L ").concat(Ss,",").concat(n," L ").concat(Vg,",").concat(E4," L ").concat(IL,",").concat(pp," L ").concat(AA,",").concat(DL," L ").concat(Bl,",").concat(O4," L ").concat(yA,",").concat(Yl," z");break;case"star12":var Mi=e/2,Zl=n/2,F4=e/2,VL=n/2,X4=n/4,UL=e/4,xA=2.9527559055118107,$s=3.9370078740157477,Ug=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);Ug&&Ug.attrs.name==="adj"&&(xA=parseInt(Ug.attrs.fmla.substring(4))*ct);var SA=xA<0?0:xA>$s?$s:xA,MA=F4*Math.cos(.5235987756),Wg=VL*Math.sin(1.0471975512),vp=Mi-MA,yn=3*e/4,Yg=Mi+MA,_A=Zl-Wg,bd=3*n/4,WL=Zl+Wg,Bg=F4*SA/$s,wA=VL*SA/$s,Ui=Bg*Math.cos(.2617993878),YL=Bg*Math.cos(.7853981634),BL=Bg*Math.cos(1.308996939),D4=wA*Math.sin(1.308996939),ZL=wA*Math.sin(.7853981634),V4=wA*Math.sin(.2617993878),QL=Mi-Ui,KL=Mi-YL,HL=Mi-BL,Vc=Mi+BL,ro=Mi+YL,LA=Mi+Ui,GL=Zl-D4,TA=Zl-ZL,$L=Zl-V4,zL=Zl+V4,K0=Zl+ZL,U4=Zl+D4;a="M 0,".concat(Zl," L ").concat(QL,",").concat($L," L ").concat(vp,",").concat(X4," L ").concat(KL,",").concat(TA," L ").concat(UL,",").concat(_A," L ").concat(HL,",").concat(GL," L ").concat(Mi,",0 L ").concat(Vc,",").concat(GL," L ").concat(yn,",").concat(_A," L ").concat(ro,",").concat(TA," L ").concat(Yg,",").concat(X4," L ").concat(LA,",").concat($L," L ").concat(e,",").concat(Zl," L ").concat(LA,",").concat(zL," L ").concat(Yg,",").concat(bd," L ").concat(ro,",").concat(K0," L ").concat(yn,",").concat(WL," L ").concat(Vc,",").concat(U4," L ").concat(Mi,",").concat(n," L ").concat(HL,",").concat(U4," L ").concat(UL,",").concat(WL," L ").concat(KL,",").concat(K0," L ").concat(vp,",").concat(bd," L ").concat(QL,",").concat(zL," z");break;case"star16":var Wi=e/2,ao=n/2,OA=e/2,PA=n/2,CA=2.9527559055118107,Zg=3.9370078740157477,NA=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);NA&&NA.attrs.name==="adj"&&(CA=parseInt(NA.attrs.fmla.substring(4))*ct);var JL=CA<0?0:CA>Zg?Zg:CA,IA=92388*OA/1e5,W4=70711*OA/1e5,H0=38268*OA/1e5,kA=92388*PA/1e5,Y4=70711*PA/1e5,B4=38268*PA/1e5,Qg=Wi-IA,Z4=Wi-W4,Ql=Wi-H0,xd=Wi+H0,jL=Wi+W4,Q4=Wi+IA,qL=ao-kA,e6=ao-Y4,t6=ao-B4,n6=ao+B4,r6=ao+Y4,a6=ao+kA,EA=OA*JL/Zg,FA=PA*JL/Zg,i6=98079*EA/1e5,o6=83147*EA/1e5,s6=55557*EA/1e5,K4=19509*EA/1e5,H4=98079*FA/1e5,G4=83147*FA/1e5,l6=55557*FA/1e5,c6=19509*FA/1e5,u6=Wi-i6,$4=Wi-o6,f6=Wi-s6,d6=Wi-K4,h6=Wi+K4,p6=Wi+s6,v6=Wi+o6,g6=Wi+i6,Ms=ao-H4,m6=ao-G4,y6=ao-l6,A6=ao-c6,z4=ao+c6,R6=ao+l6,b6=ao+G4,x6=ao+H4;a="M 0,".concat(ao," L ").concat(u6,",").concat(A6," L ").concat(Qg,",").concat(t6," L ").concat($4,",").concat(y6," L ").concat(Z4,",").concat(e6," L ").concat(f6,",").concat(m6," L ").concat(Ql,",").concat(qL," L ").concat(d6,",").concat(Ms," L ").concat(Wi,",0 L ").concat(h6,",").concat(Ms," L ").concat(xd,",").concat(qL," L ").concat(p6,",").concat(m6," L ").concat(jL,",").concat(e6," L ").concat(v6,",").concat(y6," L ").concat(Q4,",").concat(t6," L ").concat(g6,",").concat(A6," L ").concat(e,",").concat(ao," L ").concat(g6,",").concat(z4," L ").concat(Q4,",").concat(n6," L ").concat(v6,",").concat(R6," L ").concat(jL,",").concat(r6," L ").concat(p6,",").concat(b6," L ").concat(xd,",").concat(a6," L ").concat(h6,",").concat(x6," L ").concat(Wi,",").concat(n," L ").concat(d6,",").concat(x6," L ").concat(Ql,",").concat(a6," L ").concat(f6,",").concat(b6," L ").concat(Z4,",").concat(r6," L ").concat($4,",").concat(R6," L ").concat(Qg,",").concat(n6," L ").concat(u6,",").concat(z4," z");break;case"star24":var ha=e/2,ta=n/2,Kg=e/2,Hg=n/2,yU=n/4,AU=e/4,XA=2.9527559055118107,DA=3.9370078740157477,J4=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);J4&&J4.attrs.name==="adj"&&(XA=parseInt(J4.attrs.fmla.substring(4))*ct);var S6=XA<0?0:XA>DA?DA:XA,M6=Kg*Math.cos(.2617993878),_6=Kg*Math.cos(.5235987756),w6=Kg*Math.cos(.7853981634),L6=AU,T6=Kg*Math.cos(1.308996939),O6=Hg*Math.sin(1.308996939),P6=Hg*Math.sin(1.0471975512),C6=Hg*Math.sin(.7853981634),N6=yU,I6=Hg*Math.sin(.2617993878),k6=ha-M6,E6=ha-_6,VA=ha-w6,j4=ha-L6,F6=ha-T6,X6=ha+T6,D6=ha+L6,V6=ha+w6,U6=ha+_6,W6=ha+M6,Y6=ta-O6,B6=ta-P6,q4=ta-C6,Z6=ta-N6,Gg=ta-I6,Q6=ta+I6,K6=ta+N6,H6=ta+C6,G6=ta+P6,$6=ta+O6,G0=Kg*S6/DA,$0=Hg*S6/DA,z6=99144*G0/1e5,J6=92388*G0/1e5,j6=79335*G0/1e5,q6=60876*G0/1e5,eT=38268*G0/1e5,tT=13053*G0/1e5,nT=99144*$0/1e5,rT=92388*$0/1e5,aT=79335*$0/1e5,e3=60876*$0/1e5,t3=38268*$0/1e5,iT=13053*$0/1e5,oT=ha-z6,sT=ha-J6,lT=ha-j6,$g=ha-q6,cT=ha-eT,uT=ha-tT,fT=ha+tT,dT=ha+eT,hT=ha+q6,pT=ha+j6,vT=ha+J6,gT=ha+z6,mT=ta-nT,yT=ta-rT,AT=ta-aT,zg=ta-e3,RT=ta-t3,n3=ta-iT,r3=ta+iT,UA=ta+t3,a3=ta+e3,i3=ta+aT,o3=ta+rT,s3=ta+nT;a="M 0,".concat(ta," L ").concat(oT,",").concat(n3," L ").concat(k6,",").concat(Gg," L ").concat(sT,",").concat(RT," L ").concat(E6,",").concat(Z6," L ").concat(lT,",").concat(zg," L ").concat(VA,",").concat(q4," L ").concat($g,",").concat(AT," L ").concat(j4,",").concat(B6," L ").concat(cT,",").concat(yT," L ").concat(F6,",").concat(Y6," L ").concat(uT,",").concat(mT," L ").concat(ha,",0 L ").concat(fT,",").concat(mT," L ").concat(X6,",").concat(Y6," L ").concat(dT,",").concat(yT," L ").concat(D6,",").concat(B6," L ").concat(hT,",").concat(AT," L ").concat(V6,",").concat(q4," L ").concat(pT,",").concat(zg," L ").concat(U6,",").concat(Z6," L ").concat(vT,",").concat(RT," L ").concat(W6,",").concat(Gg," L ").concat(gT,",").concat(n3," L ").concat(e,",").concat(ta," L ").concat(gT,",").concat(r3," L ").concat(W6,",").concat(Q6," L ").concat(vT,",").concat(UA," L ").concat(U6,",").concat(K6," L ").concat(pT,",").concat(a3," L ").concat(V6,",").concat(H6," L ").concat(hT,",").concat(i3," L ").concat(D6,",").concat(G6," L ").concat(dT,",").concat(o3," L ").concat(X6,",").concat($6," L ").concat(fT,",").concat(s3," L ").concat(ha,",").concat(n," L ").concat(uT,",").concat(s3," L ").concat(F6,",").concat($6," L ").concat(cT,",").concat(o3," L ").concat(j4,",").concat(G6," L ").concat($g,",").concat(i3," L ").concat(VA,",").concat(H6," L ").concat(lT,",").concat(a3," L ").concat(E6,",").concat(K6," L ").concat(sT,",").concat(UA," L ").concat(k6,",").concat(Q6," L ").concat(oT,",").concat(r3," z");break;case"star32":var Lr=e/2,Tr=n/2,Sd=e/2,Kl=n/2,gp=2.9527559055118107,WA=3.9370078740157477,l3=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);l3&&l3.attrs.name==="adj"&&(gp=parseInt(l3.attrs.fmla.substring(4))*ct);var YA=gp<0?0:gp>WA?WA:gp,c3=98079*Sd/1e5,bT=92388*Sd/1e5,xT=83147*Sd/1e5,ST=Sd*Math.cos(.7853981634),MT=55557*Sd/1e5,_T=38268*Sd/1e5,wT=19509*Sd/1e5,LT=98079*Kl/1e5,TT=92388*Kl/1e5,OT=83147*Kl/1e5,PT=Kl*Math.sin(.7853981634),CT=55557*Kl/1e5,NT=38268*Kl/1e5,zs=19509*Kl/1e5,IT=Lr-c3,kT=Lr-bT,Md=Lr-xT,Fn=Lr-ST,ET=Lr-MT,yo=Lr-_T,Pa=Lr-wT,FT=Lr+wT,tf=Lr+_T,XT=Lr+MT,DT=Lr+ST,VT=Lr+xT,UT=Lr+bT,WT=Lr+c3,BA=Tr-LT,YT=Tr-TT,Uc=Tr-OT,u3=Tr-PT,Jg=Tr-CT,pa=Tr-NT,Sa=Tr-zs,f3=Tr+zs,BT=Tr+NT,ZT=Tr+CT,QT=Tr+PT,KT=Tr+OT,HT=Tr+TT,GT=Tr+LT,nf=Sd*YA/WA,Js=Kl*YA/WA,ZA=99518*nf/1e5,$T=95694*nf/1e5,d3=88192*nf/1e5,jg=77301*nf/1e5,Ko=63439*nf/1e5,mp=47140*nf/1e5,zT=29028*nf/1e5,JT=9802*nf/1e5,jT=99518*Js/1e5,qT=95694*Js/1e5,eO=88192*Js/1e5,h3=77301*Js/1e5,Wc=63439*Js/1e5,Yn=47140*Js/1e5,p3=29028*Js/1e5,_s=9802*Js/1e5,v3=Lr-ZA,tO=Lr-$T,Cr=Lr-d3,nO=Lr-jg,g3=Lr-Ko,qg=Lr-mp,rO=Lr-zT,aO=Lr-JT,iO=Lr+JT,oO=Lr+zT,sO=Lr+mp,lO=Lr+Ko,cO=Lr+jg,uO=Lr+d3,fO=Lr+$T,dO=Lr+ZA,hO=Tr-jT,pO=Tr-qT,vO=Tr-eO,QA=Tr-h3,gO=Tr-Wc,KA=Tr-Yn,mO=Tr-p3,yO=Tr-_s,AO=Tr+_s,ci=Tr+p3,Ao=Tr+Yn,RO=Tr+Wc,bO=Tr+h3,xO=Tr+eO,m3=Tr+qT,SO=Tr+jT;a="M 0,".concat(Tr," L ").concat(v3,",").concat(yO," L ").concat(IT,",").concat(Sa," L ").concat(tO,",").concat(mO," L ").concat(kT,",").concat(pa," L ").concat(Cr,",").concat(KA," L ").concat(Md,",").concat(Jg," L ").concat(nO,",").concat(gO," L ").concat(Fn,",").concat(u3," L ").concat(g3,",").concat(QA," L ").concat(ET,",").concat(Uc," L ").concat(qg,",").concat(vO," L ").concat(yo,",").concat(YT," L ").concat(rO,",").concat(pO," L ").concat(Pa,",").concat(BA," L ").concat(aO,",").concat(hO," L ").concat(Lr,",0 L ").concat(iO,",").concat(hO," L ").concat(FT,",").concat(BA," L ").concat(oO,",").concat(pO," L ").concat(tf,",").concat(YT," L ").concat(sO,",").concat(vO," L ").concat(XT,",").concat(Uc," L ").concat(lO,",").concat(QA," L ").concat(DT,",").concat(u3," L ").concat(cO,",").concat(gO," L ").concat(VT,",").concat(Jg," L ").concat(uO,",").concat(KA," L ").concat(UT,",").concat(pa," L ").concat(fO,",").concat(mO," L ").concat(WT,",").concat(Sa," L ").concat(dO,",").concat(yO," L ").concat(e,",").concat(Tr," L ").concat(dO,",").concat(AO," L ").concat(WT,",").concat(f3," L ").concat(fO,",").concat(ci," L ").concat(UT,",").concat(BT," L ").concat(uO,",").concat(Ao," L ").concat(VT,",").concat(ZT," L ").concat(cO,",").concat(RO," L ").concat(DT,",").concat(QT," L ").concat(lO,",").concat(bO," L ").concat(XT,",").concat(KT," L ").concat(sO,",").concat(xO," L ").concat(tf,",").concat(HT," L ").concat(oO,",").concat(m3," L ").concat(FT,",").concat(GT," L ").concat(iO,",").concat(SO," L ").concat(Lr,",").concat(n," L ").concat(aO,",").concat(SO," L ").concat(Pa,",").concat(GT," L ").concat(rO,",").concat(m3," L ").concat(yo,",").concat(HT," L ").concat(qg,",").concat(xO," L ").concat(ET,",").concat(KT," L ").concat(g3,",").concat(bO," L ").concat(Fn,",").concat(QT," L ").concat(nO,",").concat(RO," L ").concat(Md,",").concat(ZT," L ").concat(Cr,",").concat(Ao," L ").concat(kT,",").concat(BT," L ").concat(tO,",").concat(ci," L ").concat(IT,",").concat(f3," L ").concat(v3,",").concat(AO," z");break;case"pie":case"pieWedge":case"arc":var em,tm,nm,HA,GA=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);if(t==="pie"?(em=0,tm=270,nm=n,HA=!0):t==="pieWedge"?(em=180,tm=270,nm=2*n,HA=!0):t==="arc"&&(em=270,tm=0,nm=n,HA=!1),GA){var MO,rm=Xn(Array.isArray(GA)?GA:[GA]);try{for(rm.s();!(MO=rm.n()).done;){var y3=MO.value,A3=ie(y3,["attrs","name"]),R3=ie(y3,["attrs","fmla"]);A3&&R3&&(A3==="adj1"?em=parseInt(R3.substring(4))/6e4:A3==="adj2"&&(tm=parseInt(R3.substring(4))/6e4))}}catch(gt){rm.e(gt)}finally{rm.f()}}a=function(gt,Jn,Ua,Bi,Zi){var lf=parseFloat(Bi),Wa=parseFloat(Ua),Ya=parseInt(gt)/2,fi=Jn/2,za=fi,Pv=Ya,ws=lf-Wa;ws<0&&(ws=360+ws),ws=Math.min(Math.max(ws,0),360);var Ls,Dm,Cv=Wa*Math.PI/180,the=(Wa+ws)*Math.PI/180,nhe=za+Math.cos(Cv)*fi,rhe=Pv+Math.sin(Cv)*Ya,ahe=za+Math.cos(the)*fi,ihe=Pv+Math.sin(the)*Ya;return Zi?(Ls=ws<=180?0:1,Dm="M".concat(za,",").concat(Pv," L").concat(nhe,",").concat(rhe," A").concat(fi,",").concat(Ya," 0 ").concat(Ls,",1 ").concat(ahe,",").concat(ihe," z")):(Ls=ws<=180?0:1,Dm="M".concat(nhe,",").concat(rhe," A").concat(fi,",").concat(Ya," 0 ").concat(Ls,",1 ").concat(ahe,",").concat(ihe)),Dm}(nm,e,em,tm,HA);break;case"chord":var _O=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),wO=45,yp=270;if(_O){var LO,$A=Xn(_O);try{for($A.s();!(LO=$A.n()).done;){var b3=LO.value,TO=ie(b3,["attrs","name"]);if(TO==="adj1"){var RU=ie(b3,["attrs","fmla"]);wO=parseInt(RU.substring(4))/6e4}else if(TO==="adj2"){var OO=ie(b3,["attrs","fmla"]);yp=parseInt(OO.substring(4))/6e4}}}catch(gt){$A.e(gt)}finally{$A.f()}}var x3=n/2,PO=e/2;a=ht(PO,x3,PO,x3,wO,yp,!0);break;case"frame":var CO=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),zA=.9842519685039369,NO=3.9370078740157477;CO&&(zA=parseInt(CO.substring(4))*ct);var bU=zA<0?0:zA>NO?NO:zA,z0=Math.min(e,n)*bU/7.874015748031495,IO=e-z0,kO=n-z0;a="M 0,0 L ".concat(e,",0 L ").concat(e,",").concat(n," L 0,").concat(n," z M ").concat(z0,",").concat(z0," L ").concat(z0,",").concat(kO," L ").concat(IO,",").concat(kO," L ").concat(IO,",").concat(z0," z");break;case"donut":var EO=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),JA=1.9685039370078738,FO=3.9370078740157477;EO&&(JA=parseInt(EO.substring(4))*ct);var xU=JA<0?0:JA>FO?FO:JA,XO=Math.min(e,n)*xU/7.874015748031495,am=e/2-XO,DO=n/2-XO,SU="M ".concat(e/2-e/2,",").concat(n/2," A ").concat(e/2,",").concat(n/2," 0 1,0 ").concat(e/2+e/2,",").concat(n/2," A ").concat(e/2,",").concat(n/2," 0 1,0 ").concat(e/2-e/2,",").concat(n/2," Z"),MU="M ".concat(e/2+am,",").concat(n/2," A ").concat(am,",").concat(DO," 0 1,0 ").concat(e/2-am,",").concat(n/2," A ").concat(am,",").concat(DO," 0 1,0 ").concat(e/2+am,",").concat(n/2," Z");a="".concat(SU," ").concat(MU);break;case"noSmoking":var VO=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),jA=1.4763779527559053,UO=3.9370078740157477;VO&&(jA=parseInt(VO.substring(4))*ct);var _U=jA<0?0:jA>UO?UO:jA,S3=Math.min(e,n)*_U/7.874015748031495,J0=e/2-S3,j0=n/2-S3,M3=Math.atan(n/e),qA=j0*Math.cos(M3),_3=J0*Math.sin(M3),WO=J0*j0/Math.sqrt(qA*qA+_3*_3),wU=S3/2,YO=Math.atan(wU/WO),LU=-Math.PI+2*YO,_d=M3-YO,TU=_d-Math.PI,BO=j0*Math.cos(_d),ZO=J0*Math.sin(_d),Ro=J0*j0/Math.sqrt(BO*BO+ZO*ZO),eR=Ro*Math.cos(_d),QO=Ro*Math.sin(_d),OU=e/2+eR,PU=n/2+QO,CU=e/2-eR,w3=n/2-QO,KO=180*_d/Math.PI,tR=180*TU/Math.PI,HO=180*LU/Math.PI,NU="M ".concat(e/2-e/2,",").concat(n/2," A ").concat(e/2,",").concat(n/2," 0 1,0 ").concat(e/2+e/2,",").concat(n/2," A ").concat(e/2,",").concat(n/2," 0 1,0 ").concat(e/2-e/2,",").concat(n/2," Z"),IU="M ".concat(OU,",").concat(PU," ").concat(ht(e/2,n/2,J0,j0,KO,KO+HO,!1).replace("M","L")," z"),kU="M ".concat(CU,",").concat(w3," ").concat(ht(e/2,n/2,J0,j0,tR,tR+HO,!1).replace("M","L")," z");a="".concat(NU," ").concat(IU," ").concat(kU);break;case"halfFrame":var L3=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),nR=3.5,rR=3.5,aR=7.874015748031495;if(L3){var iR,q0=Xn(L3);try{for(q0.s();!(iR=q0.n()).done;){var T3=iR.value,GO=ie(T3,["attrs","name"]);GO==="adj1"?nR=parseInt(ie(T3,["attrs","fmla"]).substring(4))*ct:GO==="adj2"&&(rR=parseInt(ie(T3,["attrs","fmla"]).substring(4))*ct)}}catch(gt){q0.e(gt)}finally{q0.f()}}var oR=Math.min(e,n),$O=aR*e/oR,sR=oR*(rR<0?0:rR>$O?$O:rR)/aR,zO=aR*(n-n*sR/e)/oR,O3=oR*(nR<0?0:nR>zO?zO:nR)/aR,EU=e-O3*e/n,FU=n-sR*n/e;a="M 0,0 L ".concat(e,",0 L ").concat(EU,",").concat(O3," L ").concat(sR,",").concat(O3," L ").concat(sR,",").concat(FU," L 0,").concat(n," z");break;case"blockArc":var JO=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),lR=180,cR=0,uR=1.9685039370078738,jO=3.9370078740157477;if(JO){var qO,fR=Xn(JO);try{for(fR.s();!(qO=fR.n()).done;){var dR=qO.value,P3=ie(dR,["attrs","name"]);P3==="adj1"?lR=parseInt(ie(dR,["attrs","fmla"]).substring(4))/6e4:P3==="adj2"?cR=parseInt(ie(dR,["attrs","fmla"]).substring(4))/6e4:P3==="adj3"&&(uR=parseInt(ie(dR,["attrs","fmla"]).substring(4))*ct)}}catch(gt){fR.e(gt)}finally{fR.f()}}var C3,N3,im=360,b=lR<0?0:lR>im?im:lR,L=cR<0?0:cR>im?im:cR,D=uR<0?0:uR>jO?jO:uR,q=L-b,ve=q>0?q:q+im,Le=b+ve,Ee=L+-ve,Qe=b*Math.PI/180,et=L*Math.PI/180,xt=e/2,St=n/2,Ot=e/2,Kt=n/2;if(b>90&&b<270){var an=xt*Math.sin(Math.PI/2-Qe),An=St*Math.cos(Math.PI/2-Qe);C3=Ot-xt*Math.cos(Math.atan(An/an)),N3=Kt-St*Math.sin(Math.atan(An/an))}else{var Qn=xt*Math.sin(Qe),Rn=St*Math.cos(Qe);C3=Ot+xt*Math.cos(Math.atan(Qn/Rn)),N3=Kt+St*Math.sin(Math.atan(Qn/Rn))}var rr,cr,Ho=Math.min(e,n)*D/7.874015748031495,ui=xt-Ho,Yi=St-Ho;if(Le<=450&&Le>270||Le>=630&&Le<720){var Ca=ui*Math.sin(et),js=Yi*Math.cos(et);rr=Ot+ui*Math.cos(Math.atan(Ca/js)),cr=Kt+Yi*Math.sin(Math.atan(Ca/js))}else{var Yc=ui*Math.sin(Math.PI/2-et),I3=Yi*Math.cos(Math.PI/2-et);rr=Ot-ui*Math.cos(Math.atan(I3/Yc)),cr=Kt-Yi*Math.sin(Math.atan(I3/Yc))}a="M ".concat(C3,",").concat(N3," ").concat(ht(xt,St,xt,St,b,Le,!1).replace("M","L")," L ").concat(rr,",").concat(cr," ").concat(ht(xt,St,ui,Yi,L,Ee,!1).replace("M","L")," z");break;case"bracePair":var Ste=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),eP=.6561417322834645,Mte=1.9685039370078738;Ste&&(eP=parseInt(Ste.substring(4))*ct);var _te=n/2,tP=180,wte=eP<0?0:eP>Mte?Mte:eP,Lte=Math.min(e,n),Ma=Lte*wte/7.874015748031495,nP=Lte*wte/3.9370078740157477,XU=e-nP,Tte=e-Ma,DU=_te-Ma,VU=_te+Ma,UU=n-Ma;a="M ".concat(nP,",").concat(n," ").concat(ht(nP,UU,Ma,Ma,90,tP,!1).replace("M","L")," L ").concat(Ma,",").concat(VU," ").concat(ht(0,VU,Ma,Ma,0,-90,!1).replace("M","L")," ").concat(ht(0,DU,Ma,Ma,90,0,!1).replace("M","L")," L ").concat(Ma,",").concat(Ma," ").concat(ht(nP,Ma,Ma,Ma,tP,270,!1).replace("M","L")," M ").concat(XU,",0 ").concat(ht(XU,Ma,Ma,Ma,270,360,!1).replace("M","L")," L ").concat(Tte,",").concat(DU," ").concat(ht(e,DU,Ma,Ma,tP,90,!1).replace("M","L")," ").concat(ht(e,VU,Ma,Ma,270,tP,!1).replace("M","L")," L ").concat(Tte,",").concat(UU," ").concat(ht(XU,UU,Ma,Ma,0,90,!1).replace("M","L"));break;case"leftBrace":var Ote=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),rP=.6561417322834645,aP=3.9370078740157477,k3=7.874015748031495;if(Ote){var Pte,iP=Xn(Ote);try{for(iP.s();!(Pte=iP.n()).done;){var WU=Pte.value,Cte=ie(WU,["attrs","name"]);Cte==="adj1"?rP=parseInt(ie(WU,["attrs","fmla"]).substring(4))*ct:Cte==="adj2"&&(aP=parseInt(ie(WU,["attrs","fmla"]).substring(4))*ct)}}catch(gt){iP.e(gt)}finally{iP.f()}}var oP=aP<0?0:aP>k3?k3:aP,Nte=Math.min(e,n),Ite=k3-oP,kte=(Ite<oP?Ite:oP)/2*n/Nte,Ap=Nte*(rP<0?0:rP>kte?kte:rP)/k3,Ete=n*oP/k3,RPe=Ete-Ap,Fte=Ete+Ap;a="M ".concat(e,",").concat(n," ").concat(ht(e,n-Ap,e/2,Ap,90,180,!1).replace("M","L")," L ").concat(e/2,",").concat(Fte," ").concat(ht(0,Fte,e/2,Ap,0,-90,!1).replace("M","L")," ").concat(ht(0,RPe,e/2,Ap,90,0,!1).replace("M","L")," L ").concat(e/2,",").concat(Ap," ").concat(ht(e,Ap,e/2,Ap,180,270,!1).replace("M","L"));break;case"rightBrace":var Xte=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),sP=.6561417322834645,lP=3.9370078740157477,E3=7.874015748031495;if(Xte){var Dte,cP=Xn(Xte);try{for(cP.s();!(Dte=cP.n()).done;){var YU=Dte.value,Vte=ie(YU,["attrs","name"]);Vte==="adj1"?sP=parseInt(ie(YU,["attrs","fmla"]).substring(4))*ct:Vte==="adj2"&&(lP=parseInt(ie(YU,["attrs","fmla"]).substring(4))*ct)}}catch(gt){cP.e(gt)}finally{cP.f()}}var uP=lP<0?0:lP>E3?E3:lP,Ute=Math.min(e,n),Wte=E3-uP,Yte=(Wte<uP?Wte:uP)/2*n/Ute,ev=Ute*(sP<0?0:sP>Yte?Yte:sP)/E3,Bte=n*uP/E3,Zte=Bte-ev,Qte=n-ev;a="M 0,0 ".concat(ht(0,ev,e/2,ev,270,360,!1).replace("M","L")," L ").concat(e/2,",").concat(Zte," ").concat(ht(e,Zte,e/2,ev,180,90,!1).replace("M","L")," ").concat(ht(e,Bte+ev,e/2,ev,270,180,!1).replace("M","L")," L ").concat(e/2,",").concat(Qte," ").concat(ht(0,Qte,e/2,ev,0,90,!1).replace("M","L"));break;case"bracketPair":var Kte=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),fP=1.3123622047244095,Hte=3.9370078740157477;Kte&&(fP=parseInt(Kte.substring(4))*ct);var bPe=fP<0?0:fP>Hte?Hte:fP,qs=Math.min(e,n)*bPe/7.874015748031495,Gte=e-qs,$te=n-qs;a="".concat(ht(qs,qs,qs,qs,270,180,!1)," ").concat(ht(qs,$te,qs,qs,180,90,!1).replace("M","L")," ").concat(ht(Gte,qs,qs,qs,270,360,!1)," ").concat(ht(Gte,$te,qs,qs,0,90,!1).replace("M","L"));break;case"leftBracket":var zte=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),dP=.6561417322834645,Jte=3.9370078740157477*n/Math.min(e,n);zte&&(dP=parseInt(zte.substring(4))*ct);var xPe=dP<0?0:dP>Jte?Jte:dP,rf=Math.min(e,n)*xPe/7.874015748031495;rf>e&&(rf=e);var SPe=n-rf;a="M ".concat(e,",").concat(n," ").concat(ht(rf,SPe,rf,rf,90,180,!1).replace("M","L")," L 0,").concat(rf," ").concat(ht(rf,rf,rf,rf,180,270,!1).replace("M","L")," L ").concat(e,",0");break;case"rightBracket":var jte=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),hP=.6561417322834645,qte=3.9370078740157477*n/Math.min(e,n);jte&&(hP=parseInt(jte.substring(4))*ct);var MPe=hP<0?0:hP>qte?qte:hP,om=Math.min(e,n)*MPe/7.874015748031495,_Pe=n-om,ene=e-om;a="M 0,".concat(n," ").concat(ht(ene,_Pe,om,om,90,0,!1).replace("M","L")," L ").concat(e,",").concat(n/2," ").concat(ht(ene,om,om,om,360,270,!1).replace("M","L")," L 0,0");break;case"moon":var tne=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),nne=.5;tne&&(nne=parseInt(tne.substring(4))/1e5);var pP=n/2,wPe=(1-nne)*e;a="M ".concat(e,",").concat(n," ").concat(ht(e,pP,e,pP,90,270,!1).replace("M","L")," ").concat(ht(e,pP,wPe,pP,270,90,!1).replace("M","L")," z");break;case"corner":var rne=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),vP=3.9370078740157477,gP=3.9370078740157477,mP=7.874015748031495;if(rne){var ane,yP=Xn(rne);try{for(yP.s();!(ane=yP.n()).done;){var BU=ane.value,ine=ie(BU,["attrs","name"]);ine==="adj1"?vP=parseInt(ie(BU,["attrs","fmla"]).substring(4))*ct:ine==="adj2"&&(gP=parseInt(ie(BU,["attrs","fmla"]).substring(4))*ct)}}catch(gt){yP.e(gt)}finally{yP.f()}}var AP=Math.min(e,n),one=mP*n/AP,sne=mP*e/AP,lne=AP*(gP<0?0:gP>sne?sne:gP)/mP,cne=n-AP*(vP<0?0:vP>one?one:vP)/mP;a="M 0,0 L ".concat(lne,",0 L ").concat(lne,",").concat(cne," L ").concat(e,",").concat(cne," L ").concat(e,",").concat(n," L 0,").concat(n," z");break;case"diagStripe":var une=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),RP=3.9370078740157477,bP=7.874015748031495;une&&(RP=parseInt(une.substring(4))*ct);var fne=RP<0?0:RP>bP?bP:RP,LPe=e*fne/bP;a="M 0,".concat(n*fne/bP," L ").concat(LPe,",0 L ").concat(e,",0 L 0,").concat(n," z");break;case"gear6":case"gear9":a=function(gt,Jn){for(var Ua=1.5*gt,Bi=Ua,Zi=Ua,lf=Jn,Wa=Ua,Ya=gt,fi=2*Math.PI,za=fi/(2*lf),Pv=35*za*.005,ws=50*za*.005,Ls=za,Dm=!1,Cv=" M"+(Bi+Wa*Math.cos(ws))+" "+(Zi+Wa*Math.sin(ws));Ls<=fi+za;Ls+=za)Dm?(Cv+=" L"+(Bi+Ya*Math.cos(Ls-Pv))+","+(Zi+Ya*Math.sin(Ls-Pv)),Cv+=" L"+(Bi+Wa*Math.cos(Ls+ws))+","+(Zi+Wa*Math.sin(Ls+ws))):(Cv+=" L"+(Bi+Wa*Math.cos(Ls-ws))+","+(Zi+Wa*Math.sin(Ls-ws)),Cv+=" L"+(Bi+Ya*Math.cos(Ls+Pv))+","+(Zi+Ya*Math.sin(Ls+Pv))),Dm=!Dm;return Cv+" "}(e,n/3.5,parseInt(t.substring(4)));break;case"bentConnector3":var dne=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),ZU=.5;dne&&(ZU=parseInt(dne.substring(4))/1e5),a="M 0 0 L ".concat(ZU*e," 0 L ").concat(ZU*e," ").concat(n," L ").concat(e," ").concat(n);break;case"plus":var hne=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),wd=.25;hne&&(wd=parseInt(hne.substring(4))/1e5);var tv=1-wd;a="M ".concat(wd*e," 0 L ").concat(wd*e," ").concat(wd*n," L 0 ").concat(wd*n," L 0 ").concat(tv*n," L ").concat(wd*e," ").concat(tv*n," L ").concat(wd*e," ").concat(n," L ").concat(tv*e," ").concat(n," L ").concat(tv*e," ").concat(tv*n," L ").concat(e," ").concat(tv*n," L ").concat(e," ").concat(wd*n," L ").concat(tv*e," ").concat(wd*n," L ").concat(tv*e," 0 Z");break;case"teardrop":var pne=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),F3=7.874015748031495,vne=F3,gne=15.74803149606299;pne&&(F3=parseInt(pne.substring(4))*ct);var mne=F3<0?0:F3>gne?gne:F3,yne=Math.sqrt(2),TPe=yne*(e/2)*mne/vne,OPe=yne*(n/2)*mne/vne,Ane=45*Math.PI/180,PPe=TPe*Math.cos(Ane),CPe=OPe*Math.cos(Ane),Rne=e/2+PPe,bne=n/2-CPe,NPe=(e/2+Rne)/2,IPe=(n/2+bne)/2;a="".concat(ht(e/2,n/2,e/2,n/2,180,270,!1)," Q ").concat(NPe,",0 ").concat(Rne,",").concat(bne," Q ").concat(e,",").concat(IPe," ").concat(e,",").concat(n/2," ").concat(ht(e/2,n/2,e/2,n/2,0,90,!1).replace("M","L")," ").concat(ht(e/2,n/2,e/2,n/2,90,180,!1).replace("M","L")," z");break;case"plaque":var xne=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),xP=1.3123622047244095,Sne=3.9370078740157477;xne&&(xP=parseInt(xne.substring(4))*ct);var Bc=(xP<0?0:xP>Sne?Sne:xP)*Math.min(e,n)/7.874015748031495,kPe=e-Bc,EPe=n-Bc;a="M 0,".concat(Bc," ").concat(ht(0,0,Bc,Bc,90,0,!1).replace("M","L")," L ").concat(kPe,",0 ").concat(ht(e,0,Bc,Bc,180,90,!1).replace("M","L")," L ").concat(e,",").concat(EPe," ").concat(ht(e,n,Bc,Bc,270,180,!1).replace("M","L")," L ").concat(Bc,",").concat(n," ").concat(ht(0,n,Bc,Bc,0,-90,!1).replace("M","L")," z");break;case"sun":var Mne=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Rp=ct,SP=25e3*Rp,_ne=12500*Rp,wne=46875*Rp;Mne&&(SP=parseInt(Mne.substring(4))*Rp);var Lne=SP<_ne?_ne:SP>wne?wne:SP,QU=5e4*Rp,Da=1e5*Rp,MP=QU-Lne,_P=3*(QU-30274*MP/32768)/4,Tne=3*(QU-12540*MP/32768)/4,KU=_P+3662*Rp,HU=Tne+36620*Rp,GU=Tne+12500*Rp,One=Da-_P,Pne=Da-KU,Cne=Da-HU,Nne=Da-GU,Ine=18436*e/21600,kne=3163*n/21600,Ene=3163*e/21600,Fne=18436*n/21600,Xne=e*_P/Da,Dne=e*KU/Da,Vne=e*HU/Da,Une=e*GU/Da,Wne=e*One/Da,Yne=e*Pne/Da,Bne=e*Cne/Da,Zne=e*Nne/Da,FPe=e*Lne/Da,XPe=e*MP/Da,DPe=n*MP/Da,Qne=n*_P/Da,Kne=n*KU/Da,Hne=n*HU/Da,Gne=n*GU/Da,$ne=n*One/Da,zne=n*Pne/Da,Jne=n*Cne/Da,jne=n*Nne/Da;a="M ".concat(e,",").concat(n/2," L ").concat(Wne,",").concat(jne," L ").concat(Wne,",").concat(Gne," z M ").concat(Ine,",").concat(kne," L ").concat(Yne,",").concat(Jne," L ").concat(Vne,",").concat(Kne," z M ").concat(e/2,",0 L ").concat(Zne,",").concat(Qne," L ").concat(Une,",").concat(Qne," z M ").concat(Ene,",").concat(kne," L ").concat(Bne,",").concat(Kne," L ").concat(Dne,",").concat(Jne," z M 0,").concat(n/2," L ").concat(Xne,",").concat(Gne," L ").concat(Xne,",").concat(jne," z M ").concat(Ene,",").concat(Fne," L ").concat(Dne,",").concat(Hne," L ").concat(Bne,",").concat(zne," z M ").concat(e/2,",").concat(n," L ").concat(Une,",").concat($ne," L ").concat(Zne,",").concat($ne," z M ").concat(Ine,",").concat(Fne," L ").concat(Vne,",").concat(zne," L ").concat(Yne,",").concat(Hne," z M ").concat(FPe,",").concat(n/2," ").concat(ht(e/2,n/2,XPe,DPe,180,540,!1).replace("M","L")," z");break;case"heart":var qne=49*e/48,ere=10*e/48,VPe=e/2-qne,UPe=e/2-ere,WPe=e/2+ere,YPe=e/2+qne,tre=-n/3;a="M ".concat(e/2,",").concat(n/4," C ").concat(WPe,",").concat(tre," ").concat(YPe,",").concat(n/4," ").concat(e/2,",").concat(n," C ").concat(VPe,",").concat(n/4," ").concat(UPe,",").concat(tre," ").concat(e/2,",").concat(n/4," z");break;case"lightningBolt":var BPe=5022*e/21600,ZPe=11050*e/21600,QPe=10012*e/21600,KPe=14767*e/21600,HPe=12222*e/21600,GPe=12860*e/21600,$Pe=7602*e/21600,zPe=16577*e/21600,JPe=3890*n/21600,jPe=6080*n/21600,qPe=6797*n/21600,eCe=12877*n/21600,tCe=9705*n/21600,nCe=12007*n/21600,rCe=13987*n/21600,aCe=8382*n/21600,iCe=14915*n/21600;a="M ".concat(8472*e/21600,",0 L ").concat(GPe,",").concat(jPe," L ").concat(ZPe,",").concat(qPe," L ").concat(zPe,",").concat(nCe," L ").concat(KPe,",").concat(eCe," L ").concat(e,",").concat(n," L ").concat(QPe,",").concat(iCe," L ").concat(HPe,",").concat(rCe," L ").concat(BPe,",").concat(tCe," L ").concat($Pe,",").concat(aCe," L 0,").concat(JPe," z");break;case"cube":var nre=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),$U=ct,wP=25e3*$U;nre&&(wP=parseInt(nre.substring(4))*$U);var zU=1e5*$U,nv=Math.min(e,n)*(wP<0?0:wP>zU?zU:wP)/zU,oCe=n-nv,X3=e-nv;a="M 0,".concat(nv," L ").concat(nv,",0 L ").concat(e,",0 L ").concat(e,",").concat(oCe," L ").concat(X3,",").concat(n," L 0,").concat(n," z M 0,").concat(nv," L ").concat(X3,",").concat(nv," M ").concat(X3,",").concat(nv," L ").concat(e,",0 M ").concat(X3,",").concat(nv," L ").concat(X3,",").concat(n);break;case"bevel":var rre=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),JU=ct,LP=12500*JU;rre&&(LP=parseInt(rre.substring(4))*JU);var are=5e4*JU,Ld=Math.min(e,n)*(LP<0?0:LP>are?are:LP)/7.874015748031495,TP=e-Ld,OP=n-Ld;a="M 0,0 L ".concat(e,",0 L ").concat(e,",").concat(n," L 0,").concat(n," z M ").concat(Ld,",").concat(Ld," L ").concat(TP,",").concat(Ld," L ").concat(TP,",").concat(OP," L ").concat(Ld,",").concat(OP," z M 0,0 L ").concat(Ld,",").concat(Ld," M 0,").concat(n," L ").concat(Ld,",").concat(OP," M ").concat(e,",0 L ").concat(TP,",").concat(Ld," M ").concat(e,",").concat(n," L ").concat(TP,",").concat(OP);break;case"foldedCorner":var ire=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),jU=ct,PP=16667*jU;ire&&(PP=parseInt(ire.substring(4))*jU);var ore=5e4*jU,qU=Math.min(e,n)*(PP<0?0:PP>ore?ore:PP)/7.874015748031495,sre=qU/5,eW=e-qU,sCe=eW+sre,tW=n-qU,lCe=tW+sre;a="M ".concat(eW,",").concat(n," L ").concat(sCe,",").concat(lCe," L ").concat(e,",").concat(tW," L ").concat(eW,",").concat(n," L 0,").concat(n," L 0,0 L ").concat(e,",0 L ").concat(e,",").concat(tW);break;case"cloud":case"cloudCallout":for(var lre=3900*e/43200,cre=14370*n/43200,cCe=6753*e/43200,uCe=9190*n/43200,ure=5333*e/43200,fCe=7267*n/43200,dCe=4365*e/43200,fre=5945*n/43200,hCe=4857*e/43200,pCe=6595*n/43200,vCe=7273*n/43200,gCe=6775*e/43200,mCe=9220*n/43200,yCe=5785*e/43200,ACe=7867*n/43200,RCe=6752*e/43200,bCe=9215*n/43200,xCe=7720*e/43200,SCe=10543*n/43200,MCe=4360*e/43200,_Ce=5918*n/43200,wCe=4345*e/43200,LCe=function(gt,Jn,Ua,Bi,Zi,lf){return ht(gt-Ua*Math.cos(Zi*Math.PI/180),Jn-Bi*Math.sin(Zi*Math.PI/180),Ua,Bi,Zi,Zi+lf,!1).replace("M","L")},CP="M ".concat(lre,",").concat(cre),nW=[lre,cre],rW=0,dre=[[cCe,uCe,-11429249/6e4,7426832/6e4],[ure,fCe,-8646143/6e4,5396714/6e4],[dCe,fre,-8748475/6e4,5983381/6e4],[hCe,pCe,-7859164/6e4,7034504/6e4],[ure,vCe,-4722533/6e4,6541615/6e4],[gCe,mCe,-46.26725,130.269],[yCe,ACe,37501/6e4,6842e3/6e4],[RCe,bCe,22.4516,115.17255],[xCe,SCe,3974558/6e4,4542661/6e4],[MCe,_Ce,-16496525/6e4,8804134/6e4],[wCe,fre,-246.8285,152.51885]];rW<dre.length;rW++){var TCe=dre[rW],aW=LCe.apply(void 0,[nW[0],nW[1]].concat(Ej(TCe)));CP+=aW;var OCe=aW.lastIndexOf("L"),hre=aW.substring(OCe+1).split(" ");nW=[parseFloat(hre[0]),parseFloat(hre[1])]}if(CP+=" z",t==="cloudCallout"){var pre=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),D3=ct,NP=-20833*D3,vre=62500*D3;if(pre){var gre,IP=Xn(pre);try{for(IP.s();!(gre=IP.n()).done;){var iW=gre.value,mre=ie(iW,["attrs","name"]);mre==="adj1"?NP=parseInt(ie(iW,["attrs","fmla"]).substring(4))*D3:mre==="adj2"&&(vre=parseInt(ie(iW,["attrs","fmla"]).substring(4))*D3)}}catch(gt){IP.e(gt)}finally{IP.f()}}var yre=1e5*D3,V3=Math.min(e,n),U3=e/2,W3=n/2,oW=e*NP/yre,sW=n*vre/yre,kP=U3+oW,EP=W3+sW,Are=W3*Math.cos(Math.atan(sW/oW)),Rre=U3*Math.sin(Math.atan(sW/oW)),bre=U3*Math.cos(Math.atan(Rre/Are)),xre=W3*Math.sin(Math.atan(Rre/Are)),FP=(NP>=0?U3+bre:U3-bre)-kP,XP=(NP>=0?W3+xre:W3-xre)-EP,Y3=Math.sqrt(FP*FP+XP*XP),Sre=(Y3-6600*V3/21600)/3,B3=1800*V3/21600,Mre=Sre+B3,_re=Mre*XP/Y3+EP,wre=4800*V3/21600+2*Sre,Lre=wre*XP/Y3+EP,DP=1200*V3/21600,VP=600*V3/21600,Tre=Mre*FP/Y3+kP+DP,Ore=wre*FP/Y3+kP+B3;CP+="".concat(ht(kP+VP-VP,EP,VP,VP,0,360,!0)," M ").concat(Tre,",").concat(_re," ").concat(ht(Tre-DP,_re,DP,DP,0,360,!0).replace("M","L")," M ").concat(Ore,",").concat(Lre," ").concat(ht(Ore-B3,Lre,B3,B3,0,360,!0).replace("M","L"))}a=CP;break;case"smileyFace":var Pre=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),lW=ct,UP=4653*lW;Pre&&(UP=parseInt(Pre.substring(4))*lW);var WP=4653*lW,YP=e/2,cW=n/2,Cre=UP<-WP?-WP:UP>WP?WP:UP,PCe=16640*e/21600,Nre=16515*n/21600,Ire=n*Cre/7.874015748031495,uW=Nre-Ire,kre=Nre+Ire+n*Cre/3.9370078740157477,Ere=1125*e/21600,Fre=1125*n/21600,Xre=7570*n/21600,CCe=13135*e/21600,Dre=4969*e/21699;a="".concat(ht(6215*e/21600,Xre,Ere,Fre,0,360,!0)," ").concat(ht(CCe,Xre,Ere,Fre,0,360,!0)," M ").concat(Dre,",").concat(uW," Q ").concat(YP,",").concat(kre," ").concat(PCe,",").concat(uW," Q ").concat(YP,",").concat(kre," ").concat(Dre,",").concat(uW," M 0,").concat(cW," ").concat(ht(YP,cW,YP,cW,180,540,!1).replace("M","L")," z");break;case"verticalScroll":case"horizontalScroll":var Vre=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),fW=ct,BP=12500*fW;Vre&&(BP=parseInt(Vre.substring(4))*fW);var Ure=25e3*fW,NCe=Math.min(e,n),Z3=n,Q3=e,na=NCe*(BP<0?0:BP>Ure?Ure:BP)/7.874015748031495,wn=na/2,rv=na/4;if(t==="verticalScroll"){var hR=na+wn,ICe=na+na,ZP=Q3-na,Wre=Q3-wn,kCe=ZP-wn,dW=Z3-na,sm=Z3-wn;a="M ".concat(na,",").concat(dW," L ").concat(na,",").concat(wn," ").concat(ht(hR,wn,wn,wn,180,270,!1).replace("M","L")," L ").concat(Wre,",").concat(0," ").concat(ht(Wre,wn,wn,wn,270,450,!1).replace("M","L")," L ").concat(ZP,",").concat(na," L ").concat(ZP,",").concat(sm," ").concat(ht(kCe,sm,wn,wn,0,90,!1).replace("M","L")," L ").concat(wn,",").concat(Z3," ").concat(ht(wn,sm,wn,wn,90,270,!1).replace("M","L")," z M ").concat(hR,",").concat(0," ").concat(ht(hR,wn,wn,wn,270,450,!1).replace("M","L")," ").concat(ht(hR,hR/2,rv,rv,90,270,!1).replace("M","L")," L ").concat(ICe,",").concat(wn," M ").concat(ZP,",").concat(na," L ").concat(hR,",").concat(na," M ").concat(na,",").concat(sm," ").concat(ht(wn,sm,wn,wn,0,270,!1).replace("M","L")," ").concat(ht(wn,(sm+dW)/2,rv,rv,270,450,!1).replace("M","L")," z M ").concat(na,",").concat(sm," L ").concat(na,",").concat(dW)}else if(t==="horizontalScroll"){var lm=na+wn,ECe=na+na,hW=Z3-na,Yre=Z3-wn,Bre=hW-wn,QP=Q3-na,pR=Q3-wn;a="M ".concat(0,",").concat(lm," ").concat(ht(wn,lm,wn,wn,180,270,!1).replace("M","L")," L ").concat(QP,",").concat(na," L ").concat(QP,",").concat(wn," ").concat(ht(pR,wn,wn,wn,180,360,!1).replace("M","L")," L ").concat(Q3,",").concat(Bre," ").concat(ht(pR,Bre,wn,wn,0,90,!1).replace("M","L")," L ").concat(na,",").concat(hW," L ").concat(na,",").concat(Yre," ").concat(ht(wn,Yre,wn,wn,0,180,!1).replace("M","L")," z M ").concat(pR,",").concat(na," ").concat(ht(pR,wn,wn,wn,90,-180,!1).replace("M","L")," ").concat(ht((QP+pR)/2,wn,rv,rv,180,0,!1).replace("M","L")," z M ").concat(pR,",").concat(na," L ").concat(QP,",").concat(na," M ").concat(wn,",").concat(ECe," L ").concat(wn,",").concat(lm," ").concat(ht(lm/2,lm,rv,rv,180,360,!1).replace("M","L")," ").concat(ht(wn,lm,wn,wn,0,180,!1).replace("M","L")," M ").concat(na,",").concat(lm," L ").concat(na,",").concat(hW)}break;case"wedgeEllipseCallout":var Zre=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),KP=ct,Qre=-20833*KP,Kre=62500*KP;if(Zre){var Hre,HP=Xn(Zre);try{for(HP.s();!(Hre=HP.n()).done;){var pW=Hre.value,Gre=ie(pW,["attrs","name"]);Gre==="adj1"?Qre=parseInt(ie(pW,["attrs","fmla"]).substring(4))*KP:Gre==="adj2"&&(Kre=parseInt(ie(pW,["attrs","fmla"]).substring(4))*KP)}}catch(gt){HP.e(gt)}finally{HP.f()}}var $re=7.874015748031495,zre=11*Math.PI/180,cm=n/2,um=e/2,Jre=e*Qre/$re,jre=n*Kre/$re,FCe=um+Jre,XCe=cm+jre,qre=Math.atan2(jre*e,Jre*n),vW=qre+zre,gW=qre-zre,DCe=um*Math.cos(vW),VCe=cm+cm*Math.sin(vW),UCe=um+um*Math.cos(gW),WCe=cm+cm*Math.sin(gW);a="M ".concat(um+DCe,",").concat(VCe," L ").concat(FCe,",").concat(XCe," L ").concat(UCe,",").concat(WCe," ").concat(ht(um,cm,um,cm,180*gW/Math.PI,180*vW/Math.PI,!0).replace("M","L"));break;case"wedgeRectCallout":var eae=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),GP=ct,tae=-20833*GP,nae=62500*GP;if(eae){var rae,$P=Xn(eae);try{for($P.s();!(rae=$P.n()).done;){var mW=rae.value,aae=ie(mW,["attrs","name"]);aae==="adj1"?tae=parseInt(ie(mW,["attrs","fmla"]).substring(4))*GP:aae==="adj2"&&(nae=parseInt(ie(mW,["attrs","fmla"]).substring(4))*GP)}}catch(gt){$P.e(gt)}finally{$P.f()}}var iae=7.874015748031495,av=e*tae/iae,iv=n*nae/iae,zP=e/2+av,JP=n/2+iv,YCe=av*n/e,ov=Math.abs(iv)-Math.abs(YCe),K3=e*(av>0?7:2)/12,oae=e*(av>0?10:5)/12,H3=n*(iv>0?7:2)/12,sae=n*(iv>0?10:5)/12,BCe=ov>0||av>0?0:zP,ZCe=ov>0?iv>0?K3:zP:K3,QCe=ov>0?e:av>0?zP:e,KCe=ov>0&&iv>0?zP:K3,HCe=ov>0||av>0?H3:JP,GCe=ov>0?iv>0?0:JP:0,$Ce=ov>0?H3:av>0?JP:H3,zCe=ov>0&&iv>0?JP:n;a="M 0,0 L ".concat(K3,",0 L ").concat(ZCe,",").concat(GCe," L ").concat(oae,",0 L ").concat(e,",0 L ").concat(e,",").concat(H3," L ").concat(QCe,",").concat($Ce," L ").concat(e,",").concat(sae," L ").concat(e,",").concat(n," L ").concat(oae,",").concat(n," L ").concat(KCe,",").concat(zCe," L ").concat(K3,",").concat(n," L 0,").concat(n," L 0,").concat(sae," L ").concat(BCe,",").concat(HCe," L 0,").concat(H3," z");break;case"wedgeRoundRectCallout":var lae=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),vR=ct,cae=-20833*vR,uae=62500*vR,fae=16667*vR;if(lae){var dae,jP=Xn(lae);try{for(jP.s();!(dae=jP.n()).done;){var qP=dae.value,yW=ie(qP,["attrs","name"]);yW==="adj1"?cae=parseInt(ie(qP,["attrs","fmla"]).substring(4))*vR:yW==="adj2"?uae=parseInt(ie(qP,["attrs","fmla"]).substring(4))*vR:yW==="adj3"&&(fae=parseInt(ie(qP,["attrs","fmla"]).substring(4))*vR)}}catch(gt){jP.e(gt)}finally{jP.f()}}var AW=7.874015748031495,JCe=Math.min(e,n),sv=e*cae/AW,lv=n*uae/AW,eC=e/2+sv,tC=n/2+lv,jCe=sv*n/e,cv=Math.abs(lv)-Math.abs(jCe),G3=e*(sv>0?7:2)/12,hae=e*(sv>0?10:5)/12,$3=n*(lv>0?7:2)/12,pae=n*(lv>0?10:5)/12,qCe=cv>0||sv>0?0:eC,e7e=cv>0?lv>0?G3:eC:G3,t7e=cv>0?e:sv>0?eC:e,n7e=cv>0&&lv>0?eC:G3,r7e=cv>0||sv>0?$3:tC,a7e=cv>0?lv>0?0:tC:0,i7e=cv>0?$3:sv>0?tC:$3,o7e=cv>0&&lv>0?tC:n,Go=JCe*fae/AW,RW=e-Go,bW=n-Go;a="M 0,".concat(Go," ").concat(ht(Go,Go,Go,Go,180,270,!1).replace("M","L")," L ").concat(G3,",0 L ").concat(e7e,",").concat(a7e," L ").concat(hae,",0 L ").concat(RW,",0 ").concat(ht(RW,Go,Go,Go,270,360,!1).replace("M","L")," L ").concat(e,",").concat($3," L ").concat(t7e,",").concat(i7e," L ").concat(e,",").concat(pae," L ").concat(e,",").concat(bW," ").concat(ht(RW,bW,Go,Go,0,90,!1).replace("M","L")," L ").concat(hae,",").concat(n," L ").concat(n7e,",").concat(o7e," L ").concat(G3,",").concat(n," L ").concat(Go,",").concat(n," ").concat(ht(Go,bW,Go,Go,90,180,!1).replace("M","L")," L 0,").concat(pae," L ").concat(qCe,",").concat(r7e," L 0,").concat($3," z");break;case"accentBorderCallout1":case"accentBorderCallout2":case"accentBorderCallout3":case"borderCallout1":case"borderCallout2":case"borderCallout3":case"accentCallout1":case"accentCallout2":case"accentCallout3":case"callout1":case"callout2":case"callout3":var uv=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),bn=ct,Hl=18750*bn,Gl=-8333*bn,$l=18750*bn,zl=-16667*bn,bp=1e5*bn,xp=-16667*bn,z3=112963*bn,J3=-8333*bn;if(uv){var vae,nC=Xn(uv);try{for(nC.s();!(vae=nC.n()).done;){var Sp=vae.value,fv=ie(Sp,["attrs","name"]);fv==="adj1"?Hl=parseInt(ie(Sp,["attrs","fmla"]).substring(4))*bn:fv==="adj2"?Gl=parseInt(ie(Sp,["attrs","fmla"]).substring(4))*bn:fv==="adj3"?$l=parseInt(ie(Sp,["attrs","fmla"]).substring(4))*bn:fv==="adj4"?zl=parseInt(ie(Sp,["attrs","fmla"]).substring(4))*bn:fv==="adj5"?bp=parseInt(ie(Sp,["attrs","fmla"]).substring(4))*bn:fv==="adj6"?xp=parseInt(ie(Sp,["attrs","fmla"]).substring(4))*bn:fv==="adj7"?z3=parseInt(ie(Sp,["attrs","fmla"]).substring(4))*bn:fv==="adj8"&&(J3=parseInt(ie(Sp,["attrs","fmla"]).substring(4))*bn)}}catch(gt){nC.e(gt)}finally{nC.f()}}var io,Zc,Qc,Kc,dv,hv,rC,aC,vr=1e5*bn,gR="M 0,0 L ".concat(e,",0 L ").concat(e,",").concat(n," L 0,").concat(n," z");switch(t){case"borderCallout1":case"callout1":uv||(Hl=18750*bn,Gl=-8333*bn,$l=112500*bn,zl=-38333*bn),Zc=n*Hl/vr,io=e*Gl/vr,Kc=n*$l/vr,Qc=e*zl/vr,a="".concat(gR," M ").concat(io,",").concat(Zc," L ").concat(Qc,",").concat(Kc);break;case"borderCallout2":case"callout2":uv||(Hl=18750*bn,Gl=-8333*bn,$l=18750*bn,zl=-16667*bn,bp=112500*bn,xp=-46667*bn),Zc=n*Hl/vr,io=e*Gl/vr,Kc=n*$l/vr,Qc=e*zl/vr,hv=n*bp/vr,dv=e*xp/vr,a="".concat(gR," M ").concat(io,",").concat(Zc," L ").concat(Qc,",").concat(Kc," L ").concat(dv,",").concat(hv);break;case"borderCallout3":case"callout3":uv||(Hl=18750*bn,Gl=-8333*bn,$l=18750*bn,zl=-16667*bn,bp=1e5*bn,xp=-16667*bn,z3=112963*bn,J3=-8333*bn),Zc=n*Hl/vr,io=e*Gl/vr,Kc=n*$l/vr,Qc=e*zl/vr,hv=n*bp/vr,dv=e*xp/vr,aC=n*z3/vr,rC=e*J3/vr,a="".concat(gR," M ").concat(io,",").concat(Zc," L ").concat(Qc,",").concat(Kc," L ").concat(dv,",").concat(hv," L ").concat(rC,",").concat(aC);break;case"accentBorderCallout1":case"accentCallout1":uv||(Hl=18750*bn,Gl=-8333*bn,$l=112500*bn,zl=-38333*bn),Zc=n*Hl/vr,io=e*Gl/vr,Kc=n*$l/vr,Qc=e*zl/vr,a="".concat(gR," M ").concat(io,",").concat(Zc," L ").concat(Qc,",").concat(Kc," M ").concat(io,",0 L ").concat(io,",").concat(n);break;case"accentBorderCallout2":case"accentCallout2":uv||(Hl=18750*bn,Gl=-8333*bn,$l=18750*bn,zl=-16667*bn,bp=112500*bn,xp=-46667*bn),Zc=n*Hl/vr,io=e*Gl/vr,Kc=n*$l/vr,Qc=e*zl/vr,hv=n*bp/vr,dv=e*xp/vr,a="".concat(gR," M ").concat(io,",").concat(Zc," L ").concat(Qc,",").concat(Kc," L ").concat(dv,",").concat(hv," M ").concat(io,",0 L ").concat(io,",").concat(n);break;case"accentBorderCallout3":case"accentCallout3":uv||(Hl=18750*bn,Gl=-8333*bn,$l=18750*bn,zl=-16667*bn,bp=1e5*bn,xp=-16667*bn,z3=112963*bn,J3=-8333*bn),Zc=n*Hl/vr,io=e*Gl/vr,Kc=n*$l/vr,Qc=e*zl/vr,hv=n*bp/vr,dv=e*xp/vr,aC=n*z3/vr,rC=e*J3/vr,a="".concat(gR," M ").concat(io,",").concat(Zc," L ").concat(Qc,",").concat(Kc," L ").concat(dv,",").concat(hv," L ").concat(rC,",").concat(aC," M ").concat(io,",0 L ").concat(io,",").concat(n)}break;case"leftRightRibbon":var gae=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),Mp=ct,iC=5e4*Mp,oC=5e4*Mp,sC=16667*Mp;if(gae){var mae,lC=Xn(gae);try{for(lC.s();!(mae=lC.n()).done;){var cC=mae.value,xW=ie(cC,["attrs","name"]);xW==="adj1"?iC=parseInt(ie(cC,["attrs","fmla"]).substring(4))*Mp:xW==="adj2"?oC=parseInt(ie(cC,["attrs","fmla"]).substring(4))*Mp:xW==="adj3"&&(sC=parseInt(ie(cC,["attrs","fmla"]).substring(4))*Mp)}}catch(gt){lC.e(gt)}finally{lC.f()}}var yae=33333*Mp,SW=1e5*Mp,Aae=2e5*Mp,MW=Math.min(e,n),pv=e/2,Rae=n/2,_W=sC<0?0:sC>yae?yae:sC,bae=SW-_W,xae=SW*(pv-e/32)/MW,j3=MW*(oC<0?0:oC>xae?xae:oC)/SW,uC=e-j3,wW=n*(iC<0?0:iC>bae?bae:iC)/Aae,Sae=n*_W/-Aae,vv=Rae+Sae-wW,LW=Rae+wW-Sae,TW=vv+wW,s7e=n-TW,mR=2*TW,OW=n-(mR-vv),yR=_W*MW/31.49606299212598,PW=pv-e/32,Mae=pv+e/32,_ae=vv+yR,wae=OW-yR;a="M 0,".concat(TW," L ").concat(j3,",0 L ").concat(j3,",").concat(vv," L ").concat(pv,",").concat(vv," ").concat(ht(pv,_ae,e/32,yR,270,450,!1).replace("M","L")," ").concat(ht(pv,wae,e/32,yR,270,90,!1).replace("M","L")," L ").concat(uC,",").concat(OW," L ").concat(uC,",").concat(n-mR," L ").concat(e,",").concat(s7e," L ").concat(uC,",").concat(n," L ").concat(uC,",").concat(LW," L ").concat(pv,",").concat(LW," ").concat(ht(pv,LW-yR,e/32,yR,90,180,!1).replace("M","L")," L ").concat(PW,",").concat(mR-vv," L ").concat(j3,",").concat(mR-vv," L ").concat(j3,",").concat(mR," z M ").concat(Mae,",").concat(_ae," L ").concat(Mae,",").concat(OW," M ").concat(PW,",").concat(wae," L ").concat(PW,",").concat(mR-vv);break;case"ribbon":case"ribbon2":var Lae=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),fC=1.3123622047244095,dC=3.9370078740157477;if(Lae){var Tae,hC=Xn(Lae);try{for(hC.s();!(Tae=hC.n()).done;){var CW=Tae.value,Oae=ie(CW,["attrs","name"]);Oae==="adj1"?fC=parseInt(ie(CW,["attrs","fmla"]).substring(4))*ct:Oae==="adj2"&&(dC=parseInt(ie(CW,["attrs","fmla"]).substring(4))*ct)}}catch(gt){hC.e(gt)}finally{hC.f()}}var Pae=1.9685039370078738,Cae=2.6246456692913385,Nae=5.905511811023621,Iae=7.874015748031495,NW=15.74803149606299,kae=e/2,Td=n,q3=e,eM=e/8,$o=e/32,tM=fC<0?0:fC>Cae?Cae:fC,Eae=q3-eM,Fae=e*(dC<Pae?Pae:dC>Nae?Nae:dC)/NW,_p=kae-Fae,wp=kae+Fae,fm=_p+$o,dm=wp-$o,nM=_p+eM,rM=wp-eM,pC=nM-$o,vC=rM+$o,Va=n*tM/31.49606299212598;if(t==="ribbon2"){var IW=Td-n*tM/NW,Xae=n*tM/Iae,kW=Td-Xae,hm=0+Xae,Dae=(hm+Td)/2,gC=Td-Va,mC=IW-Va;a="M ".concat(0,",").concat(Td," L ").concat(eM,",").concat(Dae," L ").concat(0,",").concat(hm," L ").concat(_p,",").concat(hm," L ").concat(_p,",").concat(Va," ").concat(ht(fm,Va,$o,Va,180,270,!1).replace("M","L")," L ").concat(dm,",").concat(0," ").concat(ht(dm,Va,$o,Va,270,360,!1).replace("M","L")," L ").concat(wp,",").concat(hm," L ").concat(q3,",").concat(hm," L ").concat(Eae,",").concat(Dae," L ").concat(q3,",").concat(Td," L ").concat(vC,",").concat(Td," ").concat(ht(vC,gC,$o,Va,90,270,!1).replace("M","L")," L ").concat(dm,",").concat(IW," ").concat(ht(dm,mC,$o,Va,90,-90,!1).replace("M","L")," L ").concat(fm,",").concat(kW," ").concat(ht(fm,mC,$o,Va,270,90,!1).replace("M","L")," L ").concat(pC,",").concat(IW," ").concat(ht(pC,gC,$o,Va,270,450,!1).replace("M","L")," z M ").concat(nM,",").concat(kW," L ").concat(nM,",").concat(gC," M ").concat(rM,",").concat(gC," L ").concat(rM,",").concat(kW," M ").concat(_p,",").concat(mC," L ").concat(_p,",").concat(hm," M ").concat(wp,",").concat(hm," L ").concat(wp,",").concat(mC)}else if(t==="ribbon"){var Vae=n*tM/NW,aM=n*tM/Iae,pm=Td-aM,Uae=pm/2,EW=Td-Va,yC=aM-Va;a="M ".concat(0,",").concat(0," L ").concat(pC,",").concat(0," ").concat(ht(pC,Va,$o,Va,270,450,!1).replace("M","L")," L ").concat(fm,",").concat(Vae," ").concat(ht(fm,yC,$o,Va,270,90,!1).replace("M","L")," L ").concat(dm,",").concat(aM," ").concat(ht(dm,yC,$o,Va,90,-90,!1).replace("M","L")," L ").concat(vC,",").concat(Vae," ").concat(ht(vC,Va,$o,Va,90,270,!1).replace("M","L")," L ").concat(q3,",").concat(0," L ").concat(Eae,",").concat(Uae," L ").concat(q3,",").concat(pm," L ").concat(wp,",").concat(pm," L ").concat(wp,",").concat(EW," ").concat(ht(dm,EW,$o,Va,0,90,!1).replace("M","L")," L ").concat(fm,",").concat(Td," ").concat(ht(fm,EW,$o,Va,90,180,!1).replace("M","L")," L ").concat(_p,",").concat(pm," L ").concat(0,",").concat(pm," L ").concat(eM,",").concat(Uae," z M ").concat(nM,",").concat(Va," L ").concat(nM,",").concat(aM," M ").concat(rM,",").concat(aM," L ").concat(rM,",").concat(Va," M ").concat(_p,",").concat(pm," L ").concat(_p,",").concat(yC," M ").concat(wp,",").concat(yC," L ").concat(wp,",").concat(pm)}break;case"doubleWave":case"wave":var Wae=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),vm=t==="doubleWave"?.49212598425196846:.9842519685039369,gm=0;if(Wae){var Yae,AC=Xn(Wae);try{for(AC.s();!(Yae=AC.n()).done;){var FW=Yae.value,Bae=ie(FW,["attrs","name"]);Bae==="adj1"?vm=parseInt(ie(FW,["attrs","fmla"]).substring(4))*ct:Bae==="adj2"&&(gm=parseInt(ie(FW,["attrs","fmla"]).substring(4))*ct)}}catch(gt){AC.e(gt)}finally{AC.f()}}var RC=-.7874015748031495,Zae=3.9370078740157477,AR=7.874015748031495,Qae=n,bC=e;if(t==="doubleWave"){var Kae=.9842519685039369,mm=n*(vm<0?0:vm>Kae?Kae:vm)/AR,xC=10*mm/3,Hae=mm-xC,Gae=mm+xC,iM=Qae-mm,$ae=iM-xC,zae=iM+xC,SC=e*(gm<RC?RC:gm>AR?AR:gm)/Zae,MC=SC>0?0:SC,_C=0-MC,Jae=SC>0?SC:0,oM=bC-Jae,wC=(MC+oM)/6,l7e=_C+wC,jae=(MC+oM)/3,c7e=_C+jae,qae=(_C+oM)/2,eie=qae+wC,u7e=(eie+oM)/2,LC=0+Jae,XW=bC+MC,f7e=LC+wC,d7e=LC+jae,tie=(LC+XW)/2,nie=tie+wC,h7e=(nie+XW)/2;a="M ".concat(_C,",").concat(mm," C ").concat(l7e,",").concat(Hae," ").concat(c7e,",").concat(Gae," ").concat(qae,",").concat(mm," C ").concat(eie,",").concat(Hae," ").concat(u7e,",").concat(Gae," ").concat(oM,",").concat(mm," L ").concat(XW,",").concat(iM," C ").concat(h7e,",").concat(zae," ").concat(nie,",").concat($ae," ").concat(tie,",").concat(iM," C ").concat(d7e,",").concat(zae," ").concat(f7e,",").concat($ae," ").concat(LC,",").concat(iM," z")}else if(t==="wave"){var rie=1.574803149606299,RR=n*(vm<0?0:vm>rie?rie:vm)/AR,TC=10*RR/3,p7e=RR-TC,v7e=RR+TC,OC=Qae-RR,g7e=OC-TC,m7e=OC+TC,PC=e*(gm<RC?RC:gm>AR?AR:gm)/Zae,DW=PC>0?0:PC,aie=0-DW,iie=PC>0?PC:0,VW=bC-iie,oie=(DW+VW)/3,sie=aie+oie,y7e=(sie+VW)/2,lie=0+iie,cie=bC+DW,uie=lie+oie,A7e=(uie+cie)/2;a="M ".concat(aie,",").concat(RR," C ").concat(sie,",").concat(p7e," ").concat(y7e,",").concat(v7e," ").concat(VW,",").concat(RR," L ").concat(cie,",").concat(OC," C ").concat(A7e,",").concat(m7e," ").concat(uie,",").concat(g7e," ").concat(lie,",").concat(OC," z")}break;case"ellipseRibbon":case"ellipseRibbon2":var fie=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),CC=1.9685039370078738,NC=3.9370078740157477,IC=.9842519685039369;if(fie){var die,kC=Xn(fie);try{for(kC.s();!(die=kC.n()).done;){var EC=die.value,UW=ie(EC,["attrs","name"]);UW==="adj1"?CC=parseInt(ie(EC,["attrs","fmla"]).substring(4))*ct:UW==="adj2"?NC=parseInt(ie(EC,["attrs","fmla"]).substring(4))*ct:UW==="adj3"&&(IC=parseInt(ie(EC,["attrs","fmla"]).substring(4))*ct)}}catch(gt){kC.e(gt)}finally{kC.f()}}var hie=1.9685039370078738,pie=5.905511811023621,sM=7.874015748031495,lM=e/2,el=n,Lp=e,FC=e/8,bR=CC<0?0:CC>sM?sM:CC,vie=sM-bR,gie=bR-vie/2>0?bR-vie/2:0,zo=lM-e*(NC<hie?hie:NC>pie?pie:NC)/15.74803149606299,af=zo+FC,xR=Lp-af,Od=Lp-zo,mie=Lp-FC,ym=n*(IC<gie?gie:IC>bR?bR:IC)/sM,SR=4*ym/e,yie=af-af*af/e,cM=af/2,Aie=Lp-cM,XC=n*bR/sM,gv=XC-ym,DC=SR*(zo-zo*zo/e),Hc=el-XC,Rie=14*ym/16,VC=zo/2,bie=SR*VC,xie=Lp-VC;if(t==="ellipseRibbon"){var uM=SR*yie,Sie=SR*cM,MR=DC+gv,Mie=ym+gv-MR+ym+gv,_ie=(Rie+Hc)/2,UC=DC+Hc,wie=MR+Hc,Lie=bie+Hc,R7e=Mie+Hc,Tie=uM+gv;a="M ".concat(0,",").concat(0," Q ").concat(cM,",").concat(Sie," ").concat(af,",").concat(uM," L ").concat(zo,",").concat(MR," Q ").concat(lM,",").concat(Mie," ").concat(Od,",").concat(MR," L ").concat(xR,",").concat(uM," Q ").concat(Aie,",").concat(Sie," ").concat(Lp,",").concat(0," L ").concat(mie,",").concat(_ie," L ").concat(Lp,",").concat(Hc," Q ").concat(xie,",").concat(Lie," ").concat(Od,",").concat(UC," L ").concat(Od,",").concat(wie," Q ").concat(lM,",").concat(R7e," ").concat(zo,",").concat(wie," L ").concat(zo,",").concat(UC," Q ").concat(VC,",").concat(Lie," ").concat(0,",").concat(Hc," L ").concat(FC,",").concat(_ie," z M ").concat(zo,",").concat(UC," L ").concat(zo,",").concat(MR," M ").concat(Od,",").concat(MR," L ").concat(Od,",").concat(UC," M ").concat(af,",").concat(uM," L ").concat(af,",").concat(Tie," M ").concat(xR,",").concat(Tie," L ").concat(xR,",").concat(uM)}else if(t==="ellipseRibbon2"){var Oie=SR*yie,WC=el-Oie,Pie=el-SR*cM,WW=DC+gv,YC=el-WW,Cie=ym+gv-WW+ym+gv,b7e=el-Cie,Nie=el-(Rie+Hc)/2,BC=el-(DC+Hc),Iie=el-(WW+Hc),kie=el-(bie+Hc),x7e=el-(Cie+Hc),Eie=el-(Oie+gv);a="M ".concat(0,",").concat(el," L ").concat(FC,",").concat(Nie," L ").concat(0,",").concat(XC," Q ").concat(VC,",").concat(kie," ").concat(zo,",").concat(BC," L ").concat(zo,",").concat(Iie," Q ").concat(lM,",").concat(x7e," ").concat(Od,",").concat(Iie," L ").concat(Od,",").concat(BC," Q ").concat(xie,",").concat(kie," ").concat(Lp,",").concat(XC," L ").concat(mie,",").concat(Nie," L ").concat(Lp,",").concat(el," Q ").concat(Aie,",").concat(Pie," ").concat(xR,",").concat(WC," L ").concat(Od,",").concat(YC," Q ").concat(lM,",").concat(b7e," ").concat(zo,",").concat(YC," L ").concat(af,",").concat(WC," Q ").concat(cM,",").concat(Pie," ").concat(0,",").concat(el," z M ").concat(zo,",").concat(YC," L ").concat(zo,",").concat(BC," M ").concat(Od,",").concat(BC," L ").concat(Od,",").concat(YC," M ").concat(af,",").concat(Eie," L ").concat(af,",").concat(WC," M ").concat(xR,",").concat(WC," L ").concat(xR,",").concat(Eie)}break;case"line":case"straightConnector1":case"bentConnector4":case"bentConnector5":case"curvedConnector2":case"curvedConnector3":case"curvedConnector4":case"curvedConnector5":a="M 0 0 L ".concat(e," ").concat(n);break;case"rightArrow":var Fie=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),fM=.25,dM=.5;if(Fie){var Xie,S7e=e/n,ZC=Xn(Fie);try{for(ZC.s();!(Xie=ZC.n()).done;){var YW=Xie.value,Die=ie(YW,["attrs","name"]);Die==="adj1"?fM=.5-parseInt(ie(YW,["attrs","fmla"]).substring(4))/2e5:Die==="adj2"&&(dM=1-parseInt(ie(YW,["attrs","fmla"]).substring(4))/1e5/S7e)}}catch(gt){ZC.e(gt)}finally{ZC.f()}}a="M ".concat(e," ").concat(n/2," L ").concat(dM*e," 0 L ").concat(dM*e," ").concat(fM*n," L 0 ").concat(fM*n," L 0 ").concat((1-fM)*n," L ").concat(dM*e," ").concat((1-fM)*n," L ").concat(dM*e," ").concat(n," Z");break;case"leftArrow":var Vie=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),hM=.25,pM=.5;if(Vie){var Uie,M7e=e/n,QC=Xn(Vie);try{for(QC.s();!(Uie=QC.n()).done;){var BW=Uie.value,Wie=ie(BW,["attrs","name"]);Wie==="adj1"?hM=.5-parseInt(ie(BW,["attrs","fmla"]).substring(4))/2e5:Wie==="adj2"&&(pM=parseInt(ie(BW,["attrs","fmla"]).substring(4))/1e5/M7e)}}catch(gt){QC.e(gt)}finally{QC.f()}}a="M 0 ".concat(n/2," L ").concat(pM*e," ").concat(n," L ").concat(pM*e," ").concat((1-hM)*n," L ").concat(e," ").concat((1-hM)*n," L ").concat(e," ").concat(hM*n," L ").concat(pM*e," ").concat(hM*n," L ").concat(pM*e," 0 Z");break;case"downArrow":case"flowChartOffpageConnector":var Yie=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),_R=.25,wR=.5;if(Yie){var Bie,_7e=n/e,KC=Xn(Yie);try{for(KC.s();!(Bie=KC.n()).done;){var ZW=Bie.value,Zie=ie(ZW,["attrs","name"]);Zie==="adj1"?_R=parseInt(ie(ZW,["attrs","fmla"]).substring(4))/2e5:Zie==="adj2"&&(wR=parseInt(ie(ZW,["attrs","fmla"]).substring(4))/1e5/_7e)}}catch(gt){KC.e(gt)}finally{KC.f()}}t==="flowChartOffpageConnector"&&(_R=.5,wR=.212),a="M ".concat((.5-_R)*e," 0 L ").concat((.5-_R)*e," ").concat((1-wR)*n," L 0 ").concat((1-wR)*n," L ").concat(e/2," ").concat(n," L ").concat(e," ").concat((1-wR)*n," L ").concat((.5+_R)*e," ").concat((1-wR)*n," L ").concat((.5+_R)*e," 0 Z");break;case"upArrow":var Qie=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),vM=.25,gM=.5;if(Qie){var Kie,w7e=n/e,HC=Xn(Qie);try{for(HC.s();!(Kie=HC.n()).done;){var QW=Kie.value,Hie=ie(QW,["attrs","name"]);Hie==="adj1"?vM=parseInt(ie(QW,["attrs","fmla"]).substring(4))/2e5:Hie==="adj2"&&(gM=parseInt(ie(QW,["attrs","fmla"]).substring(4))/1e5/w7e)}}catch(gt){HC.e(gt)}finally{HC.f()}}a="M ".concat(e/2," 0 L 0 ").concat(gM*n," L ").concat((.5-vM)*e," ").concat(gM*n," L ").concat((.5-vM)*e," ").concat(n," L ").concat((.5+vM)*e," ").concat(n," L ").concat((.5+vM)*e," ").concat(gM*n," L ").concat(e," ").concat(gM*n," Z");break;case"leftRightArrow":var Gie=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),mM=.25,Tp=.25;if(Gie){var $ie,L7e=e/n,GC=Xn(Gie);try{for(GC.s();!($ie=GC.n()).done;){var KW=$ie.value,zie=ie(KW,["attrs","name"]);zie==="adj1"?mM=.5-parseInt(ie(KW,["attrs","fmla"]).substring(4))/2e5:zie==="adj2"&&(Tp=parseInt(ie(KW,["attrs","fmla"]).substring(4))/1e5/L7e)}}catch(gt){GC.e(gt)}finally{GC.f()}}a="M 0 ".concat(n/2," L ").concat(Tp*e," ").concat(n," L ").concat(Tp*e," ").concat((1-mM)*n," L ").concat((1-Tp)*e," ").concat((1-mM)*n," L ").concat((1-Tp)*e," ").concat(n," L ").concat(e," ").concat(n/2," L ").concat((1-Tp)*e," 0 L ").concat((1-Tp)*e," ").concat(mM*n," L ").concat(Tp*e," ").concat(mM*n," L ").concat(Tp*e," 0 Z");break;case"upDownArrow":var Jie=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),yM=.25,Op=.25;if(Jie){var jie,T7e=n/e,$C=Xn(Jie);try{for($C.s();!(jie=$C.n()).done;){var HW=jie.value,qie=ie(HW,["attrs","name"]);qie==="adj1"?yM=.5-parseInt(ie(HW,["attrs","fmla"]).substring(4))/2e5:qie==="adj2"&&(Op=parseInt(ie(HW,["attrs","fmla"]).substring(4))/1e5/T7e)}}catch(gt){$C.e(gt)}finally{$C.f()}}a="M ".concat(e/2," 0 L 0 ").concat(Op*n," L ").concat(yM*e," ").concat(Op*n," L ").concat(yM*e," ").concat((1-Op)*n," L 0 ").concat((1-Op)*n," L ").concat(e/2," ").concat(n," L ").concat(e," ").concat((1-Op)*n," L ").concat((1-yM)*e," ").concat((1-Op)*n," L ").concat((1-yM)*e," ").concat(Op*n," L ").concat(e," ").concat(Op*n," Z");break;case"quadArrow":var eoe=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),zC=1.7716535433070866,JC=1.7716535433070866,jC=1.7716535433070866,toe=3.9370078740157477,GW=7.874015748031495;if(eoe){var noe,qC=Xn(eoe);try{for(qC.s();!(noe=qC.n()).done;){var e7=noe.value,$W=ie(e7,["attrs","name"]);$W==="adj1"?zC=parseInt(ie(e7,["attrs","fmla"]).substring(4))*ct:$W==="adj2"?JC=parseInt(ie(e7,["attrs","fmla"]).substring(4))*ct:$W==="adj3"&&(jC=parseInt(ie(e7,["attrs","fmla"]).substring(4))*ct)}}catch(gt){qC.e(gt)}finally{qC.f()}}var LR=n/2,TR=e/2,zW=Math.min(e,n),roe=JC<0?0:JC>toe?toe:JC,JW=2*roe,aoe=(GW-JW)/2,Pd=zW*(jC<0?0:jC>aoe?aoe:jC)/GW,t7=zW*roe/GW,ioe=TR-t7,ooe=TR+t7,n7=zW*(zC<0?0:zC>JW?JW:zC)/15.74803149606299,r7=TR-n7,a7=TR+n7,i7=e-Pd,soe=LR-t7,loe=LR+t7,o7=LR-n7,s7=LR+n7,l7=n-Pd;a="M 0,".concat(LR," L ").concat(Pd,",").concat(soe," L ").concat(Pd,",").concat(o7," L ").concat(r7,",").concat(o7," L ").concat(r7,",").concat(Pd," L ").concat(ioe,",").concat(Pd," L ").concat(TR,",0 L ").concat(ooe,",").concat(Pd," L ").concat(a7,",").concat(Pd," L ").concat(a7,",").concat(o7," L ").concat(i7,",").concat(o7," L ").concat(i7,",").concat(soe," L ").concat(e,",").concat(LR," L ").concat(i7,",").concat(loe," L ").concat(i7,",").concat(s7," L ").concat(a7,",").concat(s7," L ").concat(a7,",").concat(l7," L ").concat(ooe,",").concat(l7," L ").concat(TR,",").concat(n," L ").concat(ioe,",").concat(l7," L ").concat(r7,",").concat(l7," L ").concat(r7,",").concat(s7," L ").concat(Pd,",").concat(s7," L ").concat(Pd,",").concat(loe," z");break;case"leftRightUpArrow":var coe=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),c7=1.9685039370078738,u7=1.9685039370078738,f7=1.9685039370078738,jW=3.9370078740157477,qW=7.874015748031495;if(coe){var uoe,d7=Xn(coe);try{for(d7.s();!(uoe=d7.n()).done;){var h7=uoe.value,eY=ie(h7,["attrs","name"]);eY==="adj1"?c7=parseInt(ie(h7,["attrs","fmla"]).substring(4))*ct:eY==="adj2"?u7=parseInt(ie(h7,["attrs","fmla"]).substring(4))*ct:eY==="adj3"&&(f7=parseInt(ie(h7,["attrs","fmla"]).substring(4))*ct)}}catch(gt){d7.e(gt)}finally{d7.f()}}var AM=e/2,p7=Math.min(e,n),tY=u7<0?0:u7>jW?jW:u7,nY=2*tY,foe=(qW-nY)/2,Pp=p7*(f7<0?0:f7>foe?foe:f7)/qW,rY=p7*tY/qW,O7e=AM-rY,P7e=AM+rY,v7=p7*(c7<0?0:c7>nY?nY:c7)/15.74803149606299,doe=AM-v7,hoe=AM+v7,g7=e-Pp,poe=n-p7*tY/jW,m7=n-rY,y7=m7-v7,voe=m7+v7;a="M 0,".concat(m7," L ").concat(Pp,",").concat(poe," L ").concat(Pp,",").concat(y7," L ").concat(doe,",").concat(y7," L ").concat(doe,",").concat(Pp," L ").concat(O7e,",").concat(Pp," L ").concat(AM,",0 L ").concat(P7e,",").concat(Pp," L ").concat(hoe,",").concat(Pp," L ").concat(hoe,",").concat(y7," L ").concat(g7,",").concat(y7," L ").concat(g7,",").concat(poe," L ").concat(e,",").concat(m7," L ").concat(g7,",").concat(n," L ").concat(g7,",").concat(voe," L ").concat(Pp,",").concat(voe," L ").concat(Pp,",").concat(n," z");break;case"leftUpArrow":var goe=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),A7=1.9685039370078738,R7=1.9685039370078738,b7=1.9685039370078738,aY=3.9370078740157477,iY=7.874015748031495;if(goe){var moe,x7=Xn(goe);try{for(x7.s();!(moe=x7.n()).done;){var S7=moe.value,oY=ie(S7,["attrs","name"]);oY==="adj1"?A7=parseInt(ie(S7,["attrs","fmla"]).substring(4))*ct:oY==="adj2"?R7=parseInt(ie(S7,["attrs","fmla"]).substring(4))*ct:oY==="adj3"&&(b7=parseInt(ie(S7,["attrs","fmla"]).substring(4))*ct)}}catch(gt){x7.e(gt)}finally{x7.f()}}var M7=Math.min(e,n),sY=R7<0?0:R7>aY?aY:R7,lY=2*sY,yoe=iY-lY,mv=M7*(b7<0?0:b7>yoe?yoe:b7)/iY,Aoe=M7*sY/aY,C7e=e-Aoe,N7e=n-Aoe,Roe=M7*sY/iY,cY=e-Roe,uY=n-Roe,_7=M7*(A7<0?0:A7>lY?lY:A7)/15.74803149606299,boe=cY-_7,xoe=cY+_7,Soe=uY-_7,Moe=uY+_7;a="M 0,".concat(uY," L ").concat(mv,",").concat(N7e," L ").concat(mv,",").concat(Soe," L ").concat(boe,",").concat(Soe," L ").concat(boe,",").concat(mv," L ").concat(C7e,",").concat(mv," L ").concat(cY,",0 L ").concat(e,",").concat(mv," L ").concat(xoe,",").concat(mv," L ").concat(xoe,",").concat(Moe," L ").concat(mv,",").concat(Moe," L ").concat(mv,",").concat(n," z");break;case"bentUpArrow":var _oe=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),w7=1.9685039370078738,L7=1.9685039370078738,T7=1.9685039370078738,Am=3.9370078740157477,fY=7.874015748031495;if(_oe){var woe,O7=Xn(_oe);try{for(O7.s();!(woe=O7.n()).done;){var P7=woe.value,dY=ie(P7,["attrs","name"]);dY==="adj1"?w7=parseInt(ie(P7,["attrs","fmla"]).substring(4))*ct:dY==="adj2"?L7=parseInt(ie(P7,["attrs","fmla"]).substring(4))*ct:dY==="adj3"&&(T7=parseInt(ie(P7,["attrs","fmla"]).substring(4))*ct)}}catch(gt){O7.e(gt)}finally{O7.f()}}var RM=Math.min(e,n),Loe=w7<0?0:w7>Am?Am:w7,Toe=L7<0?0:L7>Am?Am:L7,C7=RM*(T7<0?0:T7>Am?Am:T7)/fY,I7e=e-RM*Toe/Am,hY=e-RM*Toe/fY,Ooe=RM*Loe/15.74803149606299,Poe=hY-Ooe,Coe=hY+Ooe,Noe=n-RM*Loe/fY;a="M 0,".concat(Noe," L ").concat(Poe,",").concat(Noe," L ").concat(Poe,",").concat(C7," L ").concat(I7e,",").concat(C7," L ").concat(hY,",0 L ").concat(e,",").concat(C7," L ").concat(Coe,",").concat(C7," L ").concat(Coe,",").concat(n," L 0,").concat(n," z");break;case"bentArrow":var Ioe=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),N7=1.9685039370078738,I7=1.9685039370078738,k7=1.9685039370078738,E7=3.444881889763779,F7=3.9370078740157477,bM=7.874015748031495;if(Ioe){var koe,X7=Xn(Ioe);try{for(X7.s();!(koe=X7.n()).done;){var xM=koe.value,D7=ie(xM,["attrs","name"]);D7==="adj1"?N7=parseInt(ie(xM,["attrs","fmla"]).substring(4))*ct:D7==="adj2"?I7=parseInt(ie(xM,["attrs","fmla"]).substring(4))*ct:D7==="adj3"?k7=parseInt(ie(xM,["attrs","fmla"]).substring(4))*ct:D7==="adj4"&&(E7=parseInt(ie(xM,["attrs","fmla"]).substring(4))*ct)}}catch(gt){X7.e(gt)}finally{X7.f()}}var SM=Math.min(e,n),Eoe=I7<0?0:I7>F7?F7:I7,Foe=2*Eoe,MM=SM*(N7<0?0:N7>Foe?Foe:N7)/bM,Xoe=SM*Eoe/bM,_M=Xoe-MM/2,Doe=SM*(k7<0?0:k7>F7?F7:k7)/bM,Voe=e-Doe,Uoe=n-_M,Woe=bM*(Voe<Uoe?Voe:Uoe)/SM,wM=SM*(E7<0?0:E7>Woe?Woe:E7)/bM,Yoe=wM-MM,V7=Yoe>0?Yoe:0,Boe=MM+V7,U7=e-Doe,W7=_M+MM,k7e=W7+_M,Zoe=_M+wM,E7e=W7+V7;a="M 0,".concat(n," L 0,").concat(Zoe," ").concat(ht(wM,Zoe,wM,wM,180,270,!1).replace("M","L")," L ").concat(U7,",").concat(_M," L ").concat(U7,",0 L ").concat(e,",").concat(Xoe," L ").concat(U7,",").concat(k7e," L ").concat(U7,",").concat(W7," L ").concat(Boe,",").concat(W7," ").concat(ht(Boe,E7e,V7,V7,270,180,!1).replace("M","L")," L ").concat(MM,",").concat(n," z");break;case"uturnArrow":var Qoe=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),Y7=1.9685039370078738,B7=1.9685039370078738,Z7=1.9685039370078738,Q7=3.444881889763779,K7=5.905511811023621,Koe=1.9685039370078738,Cp=7.874015748031495;if(Qoe){var Hoe,H7=Xn(Qoe);try{for(H7.s();!(Hoe=H7.n()).done;){var OR=Hoe.value,LM=ie(OR,["attrs","name"]);LM==="adj1"?Y7=parseInt(ie(OR,["attrs","fmla"]).substring(4))*ct:LM==="adj2"?B7=parseInt(ie(OR,["attrs","fmla"]).substring(4))*ct:LM==="adj3"?Z7=parseInt(ie(OR,["attrs","fmla"]).substring(4))*ct:LM==="adj4"?Q7=parseInt(ie(OR,["attrs","fmla"]).substring(4))*ct:LM==="adj5"&&(K7=parseInt(ie(OR,["attrs","fmla"]).substring(4))*ct)}}catch(gt){H7.e(gt)}finally{H7.f()}}var yv=Math.min(e,n),Goe=B7<0?0:B7>Koe?Koe:B7,$oe=2*Goe,pY=Y7<0?0:Y7>$oe?$oe:Y7,zoe=(Cp-pY*yv/n)*n/yv,Joe=Z7<0?0:Z7>zoe?zoe:Z7,joe=(Joe+pY)*yv/n,TM=yv*pY/Cp,vY=yv*Goe/Cp,qoe=vY-TM/2,ese=n*(K7<joe?joe:K7>Cp?Cp:K7)/Cp,PR=ese-yv*Joe/Cp,gY=e-qoe,tse=gY/2,nse=Cp*(tse<PR?tse:PR)/yv,Cd=yv*(Q7<0?0:Q7>nse?nse:Q7)/Cp,rse=Cd-TM,CR=rse>0?rse:0,OM=TM+CR,ase=e-vY,ise=ase-vY,mY=ise+qoe,ose=gY-Cd,F7e=mY-CR;a="M 0,".concat(n," L 0,").concat(Cd," ").concat(ht(Cd,Cd,Cd,Cd,180,270,!1).replace("M","L")," L ").concat(ose,",0 ").concat(ht(ose,Cd,Cd,Cd,270,360,!1).replace("M","L")," L ").concat(gY,",").concat(PR," L ").concat(e,",").concat(PR," L ").concat(ase,",").concat(ese," L ").concat(ise,",").concat(PR," L ").concat(mY,",").concat(PR," L ").concat(mY,",").concat(OM," ").concat(ht(F7e,OM,CR,CR,0,-90,!1).replace("M","L")," L ").concat(OM,",").concat(TM," ").concat(ht(OM,OM,CR,CR,270,180,!1).replace("M","L")," L ").concat(TM,",").concat(n," z");break;case"stripedRightArrow":var sse=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),G7=3.9370078740157477,$7=3.9370078740157477,yY=7.874015748031495;if(sse){var lse,z7=Xn(sse);try{for(z7.s();!(lse=z7.n()).done;){var AY=lse.value,cse=ie(AY,["attrs","name"]);cse==="adj1"?G7=parseInt(ie(AY,["attrs","fmla"]).substring(4))*ct:cse==="adj2"&&($7=parseInt(ie(AY,["attrs","fmla"]).substring(4))*ct)}}catch(gt){z7.e(gt)}finally{z7.f()}}var RY=n/2,NR=Math.min(e,n),use=6.643700787401574*e/NR,fse=5*NR/32,J7=e-NR*($7<0?0:$7>use?use:$7)/yY,dse=n*(G7<0?0:G7>yY?yY:G7)/15.74803149606299,IR=RY-dse,kR=RY+dse,hse=NR/8,pse=NR/16,vse=NR/32;a="M 0,".concat(IR," L ").concat(vse,",").concat(IR," L ").concat(vse,",").concat(kR," L 0,").concat(kR," z M ").concat(pse,",").concat(IR," L ").concat(hse,",").concat(IR," L ").concat(hse,",").concat(kR," L ").concat(pse,",").concat(kR," z M ").concat(fse,",").concat(IR," L ").concat(J7,",").concat(IR," L ").concat(J7,",0 L ").concat(e,",").concat(RY," L ").concat(J7,",").concat(n," L ").concat(J7,",").concat(kR," L ").concat(fse,",").concat(kR," z");break;case"notchedRightArrow":var gse=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),j7=3.9370078740157477,q7=3.9370078740157477,eN=7.874015748031495;if(gse){var mse,tN=Xn(gse);try{for(tN.s();!(mse=tN.n()).done;){var bY=mse.value,yse=ie(bY,["attrs","name"]);yse==="adj1"?j7=parseInt(ie(bY,["attrs","fmla"]).substring(4))*ct:yse==="adj2"&&(q7=parseInt(ie(bY,["attrs","fmla"]).substring(4))*ct)}}catch(gt){tN.e(gt)}finally{tN.f()}}var PM=n/2,X7e=PM,Ase=Math.min(e,n),Rse=eN*e/Ase,bse=Ase*(q7<0?0:q7>Rse?Rse:q7)/eN,nN=e-bse,xY=n*(j7<0?0:j7>eN?eN:j7)/15.74803149606299,xse=PM-xY,Sse=PM+xY,D7e=xY*bse/X7e;a="M 0,".concat(xse," L ").concat(nN,",").concat(xse," L ").concat(nN,",0 L ").concat(e,",").concat(PM," L ").concat(nN,",").concat(n," L ").concat(nN,",").concat(Sse," L 0,").concat(Sse," L ").concat(D7e,",").concat(PM," z");break;case"homePlate":var Mse=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),rN=3.9370078740157477,_se=7.874015748031495;Mse&&(rN=parseInt(Mse.substring(4))*ct);var V7e=n/2,wse=Math.min(e,n),Lse=_se*e/wse,Tse=e-wse*(rN<0?0:rN>Lse?Lse:rN)/_se;a="M 0,0 L ".concat(Tse,",0 L ").concat(e,",").concat(V7e," L ").concat(Tse,",").concat(n," L 0,").concat(n," z");break;case"chevron":var Ose=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),aN=3.9370078740157477,Pse=7.874015748031495;Ose&&(aN=parseInt(Ose.substring(4))*ct);var Cse=n/2,Nse=Math.min(e,n),Ise=Pse*e/Nse,kse=Nse*(aN<0?0:aN>Ise?Ise:aN)/Pse,Ese=e-kse;a="M 0,0 L ".concat(Ese,",0 L ").concat(e,",").concat(Cse," L ").concat(Ese,",").concat(n," L 0,").concat(n," L ").concat(kse,",").concat(Cse," z");break;case"rightArrowCallout":var Fse=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),iN=1.9685039370078738,oN=1.9685039370078738,sN=1.9685039370078738,lN=5.116299212598425,CM=7.874015748031495;if(Fse){var Xse,cN=Xn(Fse);try{for(cN.s();!(Xse=cN.n()).done;){var NM=Xse.value,uN=ie(NM,["attrs","name"]);uN==="adj1"?iN=parseInt(ie(NM,["attrs","fmla"]).substring(4))*ct:uN==="adj2"?oN=parseInt(ie(NM,["attrs","fmla"]).substring(4))*ct:uN==="adj3"?sN=parseInt(ie(NM,["attrs","fmla"]).substring(4))*ct:uN==="adj4"&&(lN=parseInt(ie(NM,["attrs","fmla"]).substring(4))*ct)}}catch(gt){cN.e(gt)}finally{cN.f()}}var IM=n/2,Dse=e,Vse=n,ER=Math.min(e,n),Use=3.9370078740157477*n/ER,Wse=oN<0?0:oN>Use?Use:oN,Yse=2*Wse,Bse=CM*e/ER,Zse=sN<0?0:sN>Bse?Bse:sN,Qse=CM-Zse*ER/e,Kse=ER*Wse/CM,Hse=ER*(iN<0?0:iN>Yse?Yse:iN)/15.74803149606299,U7e=IM-Kse,Gse=IM-Hse,$se=IM+Hse,W7e=IM+Kse,fN=Dse-ER*Zse/CM,dN=e*(lN<0?0:lN>Qse?Qse:lN)/CM;a="M ".concat(0,",").concat(0," L ").concat(dN,",").concat(0," L ").concat(dN,",").concat(Gse," L ").concat(fN,",").concat(Gse," L ").concat(fN,",").concat(U7e," L ").concat(Dse,",").concat(IM," L ").concat(fN,",").concat(W7e," L ").concat(fN,",").concat($se," L ").concat(dN,",").concat($se," L ").concat(dN,",").concat(Vse," L ").concat(0,",").concat(Vse," z");break;case"downArrowCallout":var zse=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),hN=1.9685039370078738,pN=1.9685039370078738,vN=1.9685039370078738,gN=5.116299212598425,kM=7.874015748031495;if(zse){var Jse,mN=Xn(zse);try{for(mN.s();!(Jse=mN.n()).done;){var EM=Jse.value,yN=ie(EM,["attrs","name"]);yN==="adj1"?hN=parseInt(ie(EM,["attrs","fmla"]).substring(4))*ct:yN==="adj2"?pN=parseInt(ie(EM,["attrs","fmla"]).substring(4))*ct:yN==="adj3"?vN=parseInt(ie(EM,["attrs","fmla"]).substring(4))*ct:yN==="adj4"&&(gN=parseInt(ie(EM,["attrs","fmla"]).substring(4))*ct)}}catch(gt){mN.e(gt)}finally{mN.f()}}var FM=e/2,jse=e,qse=n,FR=Math.min(e,n),ele=3.9370078740157477*e/FR,tle=pN<0?0:pN>ele?ele:pN,nle=2*tle,rle=kM*n/FR,ale=vN<0?0:vN>rle?rle:vN,ile=kM-ale*FR/n,ole=FR*tle/kM,sle=FR*(hN<0?0:hN>nle?nle:hN)/15.74803149606299,Y7e=FM-ole,lle=FM-sle,cle=FM+sle,B7e=FM+ole,AN=qse-FR*ale/kM,RN=n*(gN<0?0:gN>ile?ile:gN)/kM;a="M ".concat(0,",").concat(0," L ").concat(jse,",").concat(0," L ").concat(jse,",").concat(RN," L ").concat(cle,",").concat(RN," L ").concat(cle,",").concat(AN," L ").concat(B7e,",").concat(AN," L ").concat(FM,",").concat(qse," L ").concat(Y7e,",").concat(AN," L ").concat(lle,",").concat(AN," L ").concat(lle,",").concat(RN," L ").concat(0,",").concat(RN," z");break;case"leftArrowCallout":var ule=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),bN=1.9685039370078738,xN=1.9685039370078738,SN=1.9685039370078738,MN=5.116299212598425,XM=7.874015748031495;if(ule){var fle,_N=Xn(ule);try{for(_N.s();!(fle=_N.n()).done;){var DM=fle.value,wN=ie(DM,["attrs","name"]);wN==="adj1"?bN=parseInt(ie(DM,["attrs","fmla"]).substring(4))*ct:wN==="adj2"?xN=parseInt(ie(DM,["attrs","fmla"]).substring(4))*ct:wN==="adj3"?SN=parseInt(ie(DM,["attrs","fmla"]).substring(4))*ct:wN==="adj4"&&(MN=parseInt(ie(DM,["attrs","fmla"]).substring(4))*ct)}}catch(gt){_N.e(gt)}finally{_N.f()}}var VM=n/2,SY=e,dle=n,XR=Math.min(e,n),hle=3.9370078740157477*n/XR,ple=xN<0?0:xN>hle?hle:xN,vle=2*ple,gle=XM*e/XR,mle=SN<0?0:SN>gle?gle:SN,yle=XM-mle*XR/e,Ale=XR*ple/XM,Rle=XR*(bN<0?0:bN>vle?vle:bN)/15.74803149606299,Z7e=VM-Ale,ble=VM-Rle,xle=VM+Rle,Q7e=VM+Ale,LN=XR*mle/XM,TN=SY-e*(MN<0?0:MN>yle?yle:MN)/XM;a="M ".concat(0,",").concat(VM," L ").concat(LN,",").concat(Z7e," L ").concat(LN,",").concat(ble," L ").concat(TN,",").concat(ble," L ").concat(TN,",").concat(0," L ").concat(SY,",").concat(0," L ").concat(SY,",").concat(dle," L ").concat(TN,",").concat(dle," L ").concat(TN,",").concat(xle," L ").concat(LN,",").concat(xle," L ").concat(LN,",").concat(Q7e," z");break;case"upArrowCallout":var Sle=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),ON=1.9685039370078738,PN=1.9685039370078738,CN=1.9685039370078738,NN=5.116299212598425,UM=7.874015748031495;if(Sle){var Mle,IN=Xn(Sle);try{for(IN.s();!(Mle=IN.n()).done;){var WM=Mle.value,kN=ie(WM,["attrs","name"]);kN==="adj1"?ON=parseInt(ie(WM,["attrs","fmla"]).substring(4))*ct:kN==="adj2"?PN=parseInt(ie(WM,["attrs","fmla"]).substring(4))*ct:kN==="adj3"?CN=parseInt(ie(WM,["attrs","fmla"]).substring(4))*ct:kN==="adj4"&&(NN=parseInt(ie(WM,["attrs","fmla"]).substring(4))*ct)}}catch(gt){IN.e(gt)}finally{IN.f()}}var YM=e/2,_le=e,MY=n,DR=Math.min(e,n),wle=3.9370078740157477*e/DR,Lle=PN<0?0:PN>wle?wle:PN,Tle=2*Lle,Ole=UM*n/DR,Ple=CN<0?0:CN>Ole?Ole:CN,Cle=UM-Ple*DR/n,Nle=DR*Lle/UM,Ile=DR*(ON<0?0:ON>Tle?Tle:ON)/15.74803149606299,K7e=YM-Nle,kle=YM-Ile,Ele=YM+Ile,H7e=YM+Nle,EN=DR*Ple/UM,FN=MY-n*(NN<0?0:NN>Cle?Cle:NN)/UM;a="M ".concat(0,",").concat(FN," L ").concat(kle,",").concat(FN," L ").concat(kle,",").concat(EN," L ").concat(K7e,",").concat(EN," L ").concat(YM,",").concat(0," L ").concat(H7e,",").concat(EN," L ").concat(Ele,",").concat(EN," L ").concat(Ele,",").concat(FN," L ").concat(_le,",").concat(FN," L ").concat(_le,",").concat(MY," L ").concat(0,",").concat(MY," z");break;case"leftRightArrowCallout":var Fle=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),XN=1.9685039370078738,DN=1.9685039370078738,VN=1.9685039370078738,UN=3.7892125984251965,Xle=3.9370078740157477,_Y=7.874015748031495,Dle=15.74803149606299;if(Fle){var Vle,WN=Xn(Fle);try{for(WN.s();!(Vle=WN.n()).done;){var BM=Vle.value,YN=ie(BM,["attrs","name"]);YN==="adj1"?XN=parseInt(ie(BM,["attrs","fmla"]).substring(4))*ct:YN==="adj2"?DN=parseInt(ie(BM,["attrs","fmla"]).substring(4))*ct:YN==="adj3"?VN=parseInt(ie(BM,["attrs","fmla"]).substring(4))*ct:YN==="adj4"&&(UN=parseInt(ie(BM,["attrs","fmla"]).substring(4))*ct)}}catch(gt){WN.e(gt)}finally{WN.f()}}var VR=n/2,Ule=e/2,Wle=e,Yle=n,UR=Math.min(e,n),Ble=Xle*n/UR,Zle=DN<0?0:DN>Ble?Ble:DN,Qle=2*Zle,Kle=Xle*e/UR,Hle=VN<0?0:VN>Kle?Kle:VN,Gle=_Y-Hle*UR/(e/2),$le=UR*Zle/_Y,zle=UR*(XN<0?0:XN>Qle?Qle:XN)/Dle,Jle=VR-$le,BN=VR-zle,ZN=VR+zle,jle=VR+$le,ZM=UR*Hle/_Y,QN=Wle-ZM,qle=e*(UN<0?0:UN>Gle?Gle:UN)/Dle,KN=Ule-qle,HN=Ule+qle;a="M ".concat(0,",").concat(VR," L ").concat(ZM,",").concat(Jle," L ").concat(ZM,",").concat(BN," L ").concat(KN,",").concat(BN," L ").concat(KN,",").concat(0," L ").concat(HN,",").concat(0," L ").concat(HN,",").concat(BN," L ").concat(QN,",").concat(BN," L ").concat(QN,",").concat(Jle," L ").concat(Wle,",").concat(VR," L ").concat(QN,",").concat(jle," L ").concat(QN,",").concat(ZN," L ").concat(HN,",").concat(ZN," L ").concat(HN,",").concat(Yle," L ").concat(KN,",").concat(Yle," L ").concat(KN,",").concat(ZN," L ").concat(ZM,",").concat(ZN," L ").concat(ZM,",").concat(jle," z");break;case"quadArrowCallout":var ece=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),GN=1.4578740157480314,$N=1.4578740157480314,zN=1.4578740157480314,JN=3.7892125984251965,wY=3.9370078740157477,LY=7.874015748031495,TY=15.74803149606299;if(ece){var tce,jN=Xn(ece);try{for(jN.s();!(tce=jN.n()).done;){var QM=tce.value,qN=ie(QM,["attrs","name"]);qN==="adj1"?GN=parseInt(ie(QM,["attrs","fmla"]).substring(4))*ct:qN==="adj2"?$N=parseInt(ie(QM,["attrs","fmla"]).substring(4))*ct:qN==="adj3"?zN=parseInt(ie(QM,["attrs","fmla"]).substring(4))*ct:qN==="adj4"&&(JN=parseInt(ie(QM,["attrs","fmla"]).substring(4))*ct)}}catch(gt){jN.e(gt)}finally{jN.f()}}var Av=n/2,Rv=e/2,nce=e,rce=n,OY=Math.min(e,n),PY=$N<0?0:$N>wY?wY:$N,ace=2*PY,CY=GN<0?0:GN>ace?ace:GN,ice=wY-PY,oce=zN<0?0:zN>ice?ice:zN,sce=LY-2*oce,lce=JN<CY?CY:JN>sce?sce:JN,eI=OY*PY/LY,tI=OY*CY/TY,Nd=OY*oce/LY,cce=e*lce/TY,uce=n*lce/TY,nI=nce-Nd,rI=Rv-cce,aI=Rv+cce,fce=Rv-eI,dce=Rv+eI,iI=Rv-tI,oI=Rv+tI,sI=rce-Nd,lI=Av-uce,cI=Av+uce,hce=Av-eI,pce=Av+eI,uI=Av-tI,fI=Av+tI;a="M ".concat(0,",").concat(Av," L ").concat(Nd,",").concat(hce," L ").concat(Nd,",").concat(uI," L ").concat(rI,",").concat(uI," L ").concat(rI,",").concat(lI," L ").concat(iI,",").concat(lI," L ").concat(iI,",").concat(Nd," L ").concat(fce,",").concat(Nd," L ").concat(Rv,",").concat(0," L ").concat(dce,",").concat(Nd," L ").concat(oI,",").concat(Nd," L ").concat(oI,",").concat(lI," L ").concat(aI,",").concat(lI," L ").concat(aI,",").concat(uI," L ").concat(nI,",").concat(uI," L ").concat(nI,",").concat(hce," L ").concat(nce,",").concat(Av," L ").concat(nI,",").concat(pce," L ").concat(nI,",").concat(fI," L ").concat(aI,",").concat(fI," L ").concat(aI,",").concat(cI," L ").concat(oI,",").concat(cI," L ").concat(oI,",").concat(sI," L ").concat(dce,",").concat(sI," L ").concat(Rv,",").concat(rce," L ").concat(fce,",").concat(sI," L ").concat(iI,",").concat(sI," L ").concat(iI,",").concat(cI," L ").concat(rI,",").concat(cI," L ").concat(rI,",").concat(fI," L ").concat(Nd,",").concat(fI," L ").concat(Nd,",").concat(pce," z");break;case"curvedDownArrow":var vce=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),dI=1.9685039370078738,hI=3.9370078740157477,pI=1.9685039370078738,WR=7.874015748031495;if(vce){var gce,vI=Xn(vce);try{for(vI.s();!(gce=vI.n()).done;){var gI=gce.value,NY=ie(gI,["attrs","name"]);NY==="adj1"?dI=parseInt(ie(gI,["attrs","fmla"]).substring(4))*ct:NY==="adj2"?hI=parseInt(ie(gI,["attrs","fmla"]).substring(4))*ct:NY==="adj3"&&(pI=parseInt(ie(gI,["attrs","fmla"]).substring(4))*ct)}}catch(gt){vI.e(gt)}finally{vI.f()}}var G7e=e/2,$7e=e,mce=n,mI=270,KM=Math.min(e,n),yce=3.9370078740157477*e/KM,Rm=KM*(dI<0?0:dI>WR?WR:dI)/WR,IY=KM*(hI<0?0:hI>yce?yce:hI)/WR,Id=G7e-(Rm+IY)/4,kY=2*Id,Ace=Math.sqrt(kY*kY-Rm*Rm)*n/kY,Rce=WR*Ace/KM,yI=KM*(pI<0?0:pI>Rce?Rce:pI)/WR,HM=Id+Rm,EY=Math.sqrt(n*n-yI*yI)*Id/n,FY=Id+EY,bce=(IY-Rm)/2,z7e=FY-bce,J7e=HM+EY+bce,j7e=$7e-IY/2,AI=mce-yI,XY=180*Math.atan(EY/yI)/Math.PI,q7e=-XY,DY=180*Math.atan(Rm/2/Ace)/Math.PI,xce=mI+XY,Sce=mI-DY,eNe=DY-90,tNe=90+DY;a="M ".concat(j7e,",").concat(mce," L ").concat(z7e,",").concat(AI," L ").concat(FY,",").concat(AI," ").concat(ht(Id,n,Id,n,xce,xce+q7e,!1).replace("M","L")," L ").concat(HM,",").concat(0," ").concat(ht(HM,n,Id,n,mI,mI+XY,!1).replace("M","L")," L ").concat(FY+Rm,",").concat(AI," L ").concat(J7e,",").concat(AI," z M ").concat(HM,",").concat(0," ").concat(ht(HM,n,Id,n,Sce,Sce+eNe,!1).replace("M","L")," ").concat(ht(Id,n,Id,n,180,180+tNe,!1).replace("M","L"));break;case"curvedLeftArrow":var Mce=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),RI=1.9685039370078738,bI=3.9370078740157477,xI=1.9685039370078738,SI=7.874015748031495;if(Mce){var _ce,MI=Xn(Mce);try{for(MI.s();!(_ce=MI.n()).done;){var _I=_ce.value,VY=ie(_I,["attrs","name"]);VY==="adj1"?RI=parseInt(ie(_I,["attrs","fmla"]).substring(4))*ct:VY==="adj2"?bI=parseInt(ie(_I,["attrs","fmla"]).substring(4))*ct:VY==="adj3"&&(xI=parseInt(ie(_I,["attrs","fmla"]).substring(4))*ct)}}catch(gt){MI.e(gt)}finally{MI.f()}}var nNe=n/2,wce=e,rNe=n,Lce=270,GM=Math.min(e,n),Tce=3.9370078740157477*n/GM,UY=bI<0?0:bI>Tce?Tce:bI,YR=GM*(RI<0?0:RI>UY?UY:RI)/SI,WY=GM*UY/SI,Jl=nNe-(YR+WY)/4,YY=2*Jl,Oce=Math.sqrt(YY*YY-YR*YR)*e/YY,Pce=SI*Oce/GM,wI=GM*(xI<0?0:xI>Pce?Pce:xI)/SI,BR=Jl+YR,BY=Math.sqrt(e*e-wI*wI)*Jl/e,Cce=Jl+BY,Nce=BR+BY,Ice=(WY-YR)/2,aNe=Cce-Ice,iNe=Nce+Ice,oNe=rNe-WY/2,LI=0+wI,kce=Math.atan(BY/wI),sNe=Math.atan(YR/2/Oce)-kce,ZY=180*kce/Math.PI,lNe=180*sNe/Math.PI;a="M ".concat(wce,",").concat(BR," ").concat(ht(0,Jl,e,Jl,0,-90,!1).replace("M","L")," L ").concat(0,",").concat(0," ").concat(ht(0,BR,e,Jl,Lce,360,!1).replace("M","L")," L ").concat(wce,",").concat(BR," ").concat(ht(0,BR,e,Jl,0,ZY,!1).replace("M","L")," L ").concat(LI,",").concat(Nce," L ").concat(LI,",").concat(iNe," L ").concat(0,",").concat(oNe," L ").concat(LI,",").concat(aNe," L ").concat(LI,",").concat(Cce," ").concat(ht(0,Jl,e,Jl,ZY,ZY+lNe,!1).replace("M","L")," ").concat(ht(0,Jl,e,Jl,0,-90,!1).replace("M","L")," ").concat(ht(0,BR,e,Jl,Lce,360,!1).replace("M","L"));break;case"curvedRightArrow":var Ece=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),TI=1.9685039370078738,OI=3.9370078740157477,PI=1.9685039370078738,CI=7.874015748031495;if(Ece){var Fce,NI=Xn(Ece);try{for(NI.s();!(Fce=NI.n()).done;){var II=Fce.value,QY=ie(II,["attrs","name"]);QY==="adj1"?TI=parseInt(ie(II,["attrs","fmla"]).substring(4))*ct:QY==="adj2"?OI=parseInt(ie(II,["attrs","fmla"]).substring(4))*ct:QY==="adj3"&&(PI=parseInt(ie(II,["attrs","fmla"]).substring(4))*ct)}}catch(gt){NI.e(gt)}finally{NI.f()}}var cNe=n/2,KY=e,uNe=n,HY=180,$M=Math.min(e,n),Xce=3.9370078740157477*n/$M,GY=OI<0?0:OI>Xce?Xce:OI,bm=$M*(TI<0?0:TI>GY?GY:TI)/CI,$Y=$M*GY/CI,Gc=cNe-(bm+$Y)/4,zY=2*Gc,Dce=Math.sqrt(zY*zY-bm*bm)*e/zY,Vce=CI*Dce/$M,kI=$M*(PI<0?0:PI>Vce?Vce:PI)/CI,JY=Gc+bm,jY=Math.sqrt(e*e-kI*kI)*Gc/e,Uce=Gc+jY,Wce=JY+jY,Yce=($Y-bm)/2,fNe=Uce-Yce,dNe=Wce+Yce,hNe=uNe-$Y/2,EI=KY-kI,qY=Math.atan(jY/kI),pNe=Math.PI-qY,vNe=-qY,gNe=Math.atan(bm/2/Dce)-Math.PI/2,Bce=180*pNe/Math.PI,mNe=180*vNe/Math.PI,yNe=180*qY/Math.PI,ANe=180*gNe/Math.PI;a="M ".concat(0,",").concat(Gc," ").concat(ht(e,Gc,e,Gc,HY,HY+mNe,!1).replace("M","L")," L ").concat(EI,",").concat(Uce," L ").concat(EI,",").concat(fNe," L ").concat(KY,",").concat(hNe," L ").concat(EI,",").concat(dNe," L ").concat(EI,",").concat(Wce," ").concat(ht(e,JY,e,Gc,Bce,Bce+yNe,!1).replace("M","L")," L ").concat(0,",").concat(Gc," ").concat(ht(e,Gc,e,Gc,HY,270,!1).replace("M","L")," L ").concat(KY,",").concat(bm," ").concat(ht(e,JY,e,Gc,270,270+ANe,!1).replace("M","L"));break;case"curvedUpArrow":var Zce=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),FI=1.9685039370078738,XI=3.9370078740157477,DI=1.9685039370078738,ZR=7.874015748031495;if(Zce){var Qce,VI=Xn(Zce);try{for(VI.s();!(Qce=VI.n()).done;){var UI=Qce.value,eB=ie(UI,["attrs","name"]);eB==="adj1"?FI=parseInt(ie(UI,["attrs","fmla"]).substring(4))*ct:eB==="adj2"?XI=parseInt(ie(UI,["attrs","fmla"]).substring(4))*ct:eB==="adj3"&&(DI=parseInt(ie(UI,["attrs","fmla"]).substring(4))*ct)}}catch(gt){VI.e(gt)}finally{VI.f()}}var RNe=e/2,bNe=e,xNe=n,zM=Math.min(e,n),Kce=3.9370078740157477*e/zM,xm=zM*(FI<0?0:FI>ZR?ZR:FI)/ZR,tB=zM*(XI<0?0:XI>Kce?Kce:XI)/ZR,of=RNe-(xm+tB)/4,nB=2*of,Hce=Math.sqrt(nB*nB-xm*xm)*n/nB,Gce=ZR*Hce/zM,WI=zM*(DI<0?0:DI>Gce?Gce:DI)/ZR,rB=of+xm,aB=Math.sqrt(n*n-WI*WI)*of/n,$ce=of+aB,zce=rB+aB,Jce=(tB-xm)/2,SNe=$ce-Jce,MNe=zce+Jce,_Ne=bNe-tB/2,YI=0+WI,iB=Math.atan(aB/WI),jce=Math.atan(xm/2/Hce),wNe=jce-iB,LNe=Math.PI/2-iB,qce=180*(Math.PI/2-jce)/Math.PI,TNe=180*wNe/Math.PI,eue=180*LNe/Math.PI,ONe=180*iB/Math.PI;a="".concat(ht(of,0,of,n,qce,qce+TNe,!1)," L ").concat($ce,",").concat(YI," L ").concat(SNe,",").concat(YI," L ").concat(_Ne,",").concat(0," L ").concat(MNe,",").concat(YI," L ").concat(zce,",").concat(YI," ").concat(ht(rB,0,of,n,eue,eue+ONe,!1).replace("M","L")," L ").concat(of,",").concat(xNe," ").concat(ht(of,0,of,n,90,180,!1).replace("M","L")," L ").concat(xm,",").concat(0," ").concat(ht(rB,0,of,n,180,90,!1).replace("M","L"));break;case"mathDivide":case"mathEqual":case"mathMinus":case"mathMultiply":case"mathNotEqual":case"mathPlus":var Rr,oo,$c,BI=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);if(BI)if(Array.isArray(BI)){var tue,ZI=Xn(BI);try{for(ZI.s();!(tue=ZI.n()).done;){var QI=tue.value,oB=ie(QI,["attrs","name"]);oB==="adj1"?Rr=parseInt(ie(QI,["attrs","fmla"]).substring(4)):oB==="adj2"?oo=parseInt(ie(QI,["attrs","fmla"]).substring(4)):oB==="adj3"&&($c=parseInt(ie(QI,["attrs","fmla"]).substring(4)))}}catch(gt){ZI.e(gt)}finally{ZI.f()}}else Rr=parseInt(ie(BI,["attrs","fmla"]).substring(4));var nue=3.9370078740157477,kd=7.874015748031495,sf=15.74803149606299,$a=e/2,Jo=n/2,Np=n/2;if(t==="mathNotEqual"){Rr===void 0&&(Rr=23520),oo===void 0&&(oo=66e5),$c===void 0&&($c=11760),Rr*=ct,oo=oo/6e4*Math.PI/180,$c*=ct;var rue=70*Math.PI/180,aue=110*Math.PI/180,iue=Rr<0?0:Rr>nue?nue:Rr,oue=kd-2*iue,JM=n*iue/kd,sue=n*($c<0?0:$c>oue?oue:$c)/sf,lue=5.7866141732283465*e/sf,KI=$a-lue,HI=$a+lue,QR=Jo-sue,KR=Jo+sue,jM=QR-JM,qM=KR+JM,e5=(oo<rue?rue:oo>aue?aue:oo)-Math.PI/2,bv=Np*Math.tan(e5),sB=Math.sqrt(bv*bv+Np*Np),Sm=sB*JM/Np,xv=$a+bv-Sm/2,cue=xv-bv*jM/Np,uue=xv-bv*QR/Np,fue=xv-bv*KR/Np,due=xv-bv*qM/Np,PNe=cue+Sm,CNe=uue+Sm,NNe=fue+Sm,INe=due+Sm,hue=JM*Np/sB,pue=e5>0?xv+hue:xv+Sm,vue=e5>0?xv:xv+Sm-hue,gue=JM*bv/sB,mue=e5>0?gue:0,yue=e5>0?0:-gue,kNe=e-pue,ENe=e-vue,FNe=n-mue,XNe=n-yue;a="M ".concat(KI,",").concat(jM," L ").concat(cue,",").concat(jM," L ").concat(vue,",").concat(yue," L ").concat(pue,",").concat(mue," L ").concat(PNe,",").concat(jM," L ").concat(HI,",").concat(jM," L ").concat(HI,",").concat(QR," L ").concat(CNe,",").concat(QR," L ").concat(NNe,",").concat(KR," L ").concat(HI,",").concat(KR," L ").concat(HI,",").concat(qM," L ").concat(INe,",").concat(qM," L ").concat(ENe,",").concat(XNe," L ").concat(kNe,",").concat(FNe," L ").concat(due,",").concat(qM," L ").concat(KI,",").concat(qM," L ").concat(KI,",").concat(KR," L ").concat(fue,",").concat(KR," L ").concat(uue,",").concat(QR," L ").concat(KI,",").concat(QR," z")}else if(t==="mathDivide"){Rr===void 0&&(Rr=23520),oo===void 0&&(oo=5880),$c===void 0&&($c=11760);var GI=.07874015748031496,lB=2.8933070866141732,cB=5.7866141732283465,uB=(Rr*=ct)<GI?GI:Rr>lB?lB:Rr,Aue=(cB-uB)/4,Rue=lB*e/n,bue=Aue<Rue?Aue:Rue,xue=($c*=ct)<GI?GI:$c>bue?bue:$c,Sue=cB-4*xue-uB,Mue=n*uB/sf,zc=n*xue/kd,_ue=e*cB/sf,fB=Jo-Mue,wue=Jo+Mue,$I=fB-(n*((oo*=ct)<0?0:oo>Sue?Sue:oo)/kd+zc)-zc,dB=n-$I,Lue=$a-_ue,Tue=$a+_ue;a="M ".concat($a,",").concat($I," A ").concat(zc,",").concat(zc," 0 1,0 ").concat($a,",").concat($I+2*zc," A ").concat(zc,",").concat(zc," 0 1,0 ").concat($a,",").concat($I," z M ").concat($a,",").concat(dB," A ").concat(zc,",").concat(zc," 0 1,1 ").concat($a,",").concat(dB-2*zc," A ").concat(zc,",").concat(zc," 0 1,1 ").concat($a,",").concat(dB," z M ").concat(Lue,",").concat(fB," L ").concat(Tue,",").concat(fB," L ").concat(Tue,",").concat(wue," L ").concat(Lue,",").concat(wue," z")}else if(t==="mathEqual"){Rr===void 0&&(Rr=23520),oo===void 0&&(oo=11760);var Oue=2.8933070866141732,Pue=(Rr*=ct)<0?0:Rr>Oue?Oue:Rr,Cue=kd-2*Pue,Nue=n*Pue/kd,Iue=n*((oo*=ct)<0?0:oo>Cue?Cue:oo)/sf,kue=5.7866141732283465*e/sf,hB=Jo-Iue,pB=Jo+Iue,Eue=hB-Nue,Fue=pB+Nue,zI=$a-kue,JI=$a+kue;a="M ".concat(zI,",").concat(Eue," L ").concat(JI,",").concat(Eue," L ").concat(JI,",").concat(hB," L ").concat(zI,",").concat(hB," z M ").concat(zI,",").concat(pB," L ").concat(JI,",").concat(pB," L ").concat(JI,",").concat(Fue," L ").concat(zI,",").concat(Fue," z")}else if(t==="mathMinus"){Rr===void 0&&(Rr=23520);var Xue=n*((Rr*=ct)<0?0:Rr>kd?kd:Rr)/sf,Due=5.7866141732283465*e/sf,Vue=Jo-Xue,Uue=Jo+Xue,Wue=$a-Due,Yue=$a+Due;a="M ".concat(Wue,",").concat(Vue," L ").concat(Yue,",").concat(Vue," L ").concat(Yue,",").concat(Uue," L ").concat(Wue,",").concat(Uue," z")}else if(t==="mathMultiply"){Rr===void 0&&(Rr=23520),Rr*=ct;var vB=4.091732283464567,Bue=Math.min(e,n)*(Rr<0?0:Rr>vB?vB:Rr)/kd,gB=Math.atan(n/e),Zue=Math.sin(gB),Que=Math.cos(gB),mB=Math.tan(gB),Kue=Math.sqrt(e*e+n*n),Hue=Kue-Kue*vB/kd,Gue=Que*Hue/2,$ue=Zue*Hue/2,zue=Zue*Bue/2,Jue=Que*Bue/2,jI=Gue-zue,t5=$ue+Jue,qI=Gue+zue,ek=$ue-Jue,jue=($a-qI)*mB+ek,que=e-qI,yB=e-jI,DNe=yB-(Jo-t5)/mB,VNe=jI+(Jo-t5)/mB,efe=n-t5,tfe=n-ek,UNe=n-jue;a="M ".concat(jI,",").concat(t5," L ").concat(qI,",").concat(ek," L ").concat($a,",").concat(jue," L ").concat(que,",").concat(ek," L ").concat(yB,",").concat(t5," L ").concat(DNe,",").concat(Jo," L ").concat(yB,",").concat(efe," L ").concat(que,",").concat(tfe," L ").concat($a,",").concat(UNe," L ").concat(qI,",").concat(tfe," L ").concat(jI,",").concat(efe," L ").concat(VNe,",").concat(Jo," z")}else if(t==="mathPlus"){Rr===void 0&&(Rr=23520),Rr*=ct;var tk=5.7866141732283465,WNe=Math.min(e,n),nfe=e*tk/sf,rfe=n*tk/sf,nk=WNe*(Rr<0?0:Rr>tk?tk:Rr)/sf,afe=$a-nfe,rk=$a-nk,ak=$a+nk,ife=$a+nfe,ofe=Jo-rfe,ik=Jo-nk,ok=Jo+nk,sfe=Jo+rfe;a="M ".concat(afe,",").concat(ik," L ").concat(rk,",").concat(ik," L ").concat(rk,",").concat(ofe," L ").concat(ak,",").concat(ofe," L ").concat(ak,",").concat(ik," L ").concat(ife,",").concat(ik," L ").concat(ife,",").concat(ok," L ").concat(ak,",").concat(ok," L ").concat(ak,",").concat(sfe," L ").concat(rk,",").concat(sfe," L ").concat(rk,",").concat(ok," L ").concat(afe,",").concat(ok," z")}break;case"can":case"flowChartMagneticDisk":case"flowChartMagneticDrum":var lfe=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),n5=1.9685039370078738;lfe&&(n5=parseInt(lfe.substring(4))*ct),t!=="flowChartMagneticDisk"&&t!=="flowChartMagneticDrum"||(n5=3.9370078740157477);var cfe=Math.min(e,n),ufe=3.9370078740157477*n/cfe,Mm=cfe*(n5<0?0:n5>ufe?ufe:n5)/15.74803149606299,ffe=n-Mm,AB=180,HR=e/2,RB="".concat(ht(HR,Mm,HR,Mm,0,AB,!1)," ").concat(ht(HR,Mm,HR,Mm,AB,360,!1).replace("M","L")," L ").concat(e,",").concat(ffe," ").concat(ht(HR,ffe,HR,Mm,0,AB,!1).replace("M","L")," L 0,").concat(Mm);t==="flowChartMagneticDrum"&&(RB=RB.replace(/([MLQC])\s*([-\d.e]+)\s*([-\d.e]+)/gi,function(gt,Jn,Ua,Bi){var Zi=e/2-(parseFloat(Bi)-n/2),lf=n/2+(parseFloat(Ua)-e/2);return"".concat(Jn).concat(Zi," ").concat(lf)}).replace(/([MLQC])\s*([-\d.e]+)\s*([-\d.e]+)\s*([-\d.e]+)\s*([-\d.e]+)/gi,function(gt,Jn,Ua,Bi,Zi,lf){var Wa=e/2-(parseFloat(Bi)-n/2),Ya=n/2+(parseFloat(Ua)-e/2),fi=e/2-(parseFloat(lf)-n/2),za=n/2+(parseFloat(Zi)-e/2);return"".concat(Jn).concat(Wa," ").concat(Ya," ").concat(fi," ").concat(za)})),a=RB;break;case"swooshArrow":var dfe=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),_m=ct,sk=25e3*_m,lk=16667*_m;if(dfe){var hfe,ck=Xn(dfe);try{for(ck.s();!(hfe=ck.n()).done;){var bB=hfe.value,pfe=ie(bB,["attrs","name"]);pfe==="adj1"?sk=parseInt(ie(bB,["attrs","fmla"]).substring(4))*_m:pfe==="adj2"&&(lk=parseInt(ie(bB,["attrs","fmla"]).substring(4))*_m)}}catch(gt){ck.e(gt)}finally{ck.f()}}var vfe=1*_m,gfe=75e3*_m,mfe=1e5*_m,xB=Math.min(e,n),SB=xB/8,MB=n/6,yfe=5.511811023622047*e/xB,Afe=n*(sk<vfe?vfe:sk>gfe?gfe:sk)/mfe,_B=e-xB*(lk<0?0:lk>yfe?yfe:lk)/mfe,Rfe=SB,bfe=Math.PI/2/14,xfe=SB*Math.tan(bfe),YNe=_B-xfe,wB=Rfe+Afe,Sfe=_B+Afe*Math.tan(bfe),BNe=Sfe+xfe,Mfe=wB+SB,ZNe=Mfe/2-n/20,QNe=MB+MB,KNe=e/6,HNe=wB+MB/2,GNe=e/4;a="M 0,".concat(n," Q ").concat(KNe,",").concat(QNe," ").concat(_B,",").concat(Rfe," L ").concat(YNe,",0 L ").concat(e,",").concat(ZNe," L ").concat(BNe,",").concat(Mfe," L ").concat(Sfe,",").concat(wB," Q ").concat(GNe,",").concat(HNe," 0,").concat(n," z");break;case"circularArrow":var _fe=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),uk=.9842519685039369,fk=19.03865*Math.PI/180,dk=340.96135*Math.PI/180,hk=180*Math.PI/180,pk=.9842519685039369;if(_fe){var wfe,vk=Xn(_fe);try{for(vk.s();!(wfe=vk.n()).done;){var GR=wfe.value,r5=ie(GR,["attrs","name"]);r5==="adj1"?uk=parseInt(ie(GR,["attrs","fmla"]).substring(4))*ct:r5==="adj2"?fk=parseInt(ie(GR,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:r5==="adj3"?dk=parseInt(ie(GR,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:r5==="adj4"?hk=parseInt(ie(GR,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:r5==="adj5"&&(pk=parseInt(ie(GR,["attrs","fmla"]).substring(4))*ct)}}catch(gt){vk.e(gt)}finally{vk.f()}}var wm=e/2,Lm=n/2,$Ne=e/2,zNe=n/2,Lfe=Math.min(e,n),Tfe=1.9685039370078738,Ofe=7.874015748031495,Pfe=1/6e4*Math.PI/180,gk=21599999/6e4*Math.PI/180,Tm=2*Math.PI,Cfe=pk<0?0:pk>Tfe?Tfe:pk,Nfe=2*Cfe,$R=dk<Pfe?Pfe:dk>gk?gk:dk,LB=hk<0?0:hk>gk?gk:hk,TB=Lfe*(uk<0?0:uk>Nfe?Nfe:uk)/Ofe,Om=Lfe*Cfe/Ofe,mk=TB/2,zR=$Ne+mk-Om,JR=zNe+mk-Om,Pm=zR-TB,Cm=JR-TB,yk=Pm+mk,Ak=Cm+mk,Ife=yk*Math.sin($R),kfe=Ak*Math.cos($R),Sv=yk*Math.cos(Math.atan2(Ife,kfe)),jR=Ak*Math.sin(Math.atan2(Ife,kfe)),Efe=wm+Sv,Ffe=Lm+jR,jo=Math.min(Pm,Cm),JNe=1-(Sv*Sv-jo*jo)*(jR*jR-jo*jo)/(Sv*Sv*jR*jR),OB=(1+Math.sqrt(JNe))/((Sv*Sv-jo*jo)/Sv/jR),PB=Math.atan2(OB,1)>0?Math.atan2(OB,1):Math.atan2(OB,1)+Tm,CB=PB-$R>0?PB-$R:PB-$R+Tm,jNe=CB-Math.PI>0?CB-Tm:CB,Xfe=Math.abs(jNe),qR=$R+(fk<0?0:fk>Xfe?Xfe:fk),Dfe=yk*Math.sin(qR),Vfe=Ak*Math.cos(qR),qNe=wm+yk*Math.cos(Math.atan2(Dfe,Vfe)),eIe=Lm+Ak*Math.sin(Math.atan2(Dfe,Vfe)),Ufe=Efe+Om*Math.cos(qR),Wfe=Ffe+Om*Math.sin(qR),Yfe=Efe-Om*Math.cos(qR),Bfe=Ffe-Om*Math.sin(qR),Zfe=Yfe-wm,Qfe=Bfe-Lm,Kfe=Ufe-wm,Hfe=Wfe-Lm,Mv=Math.min(zR,JR),Gfe=Zfe*Mv/zR,$fe=Qfe*Mv/JR,Rk=Kfe*Mv/zR,bk=Hfe*Mv/JR,eb=Rk-Gfe,Nm=bk-$fe,Ed=Math.sqrt(eb*eb+Nm*Nm),tb=Gfe*bk-Rk*$fe,xk=Math.sqrt(Math.max(0,Mv*Mv*Ed*Ed-tb*tb)),Sk=-1*Nm>0?-1:1,zfe=(tb*Nm+Sk*eb*xk)/(Ed*Ed),Jfe=(tb*Nm-Sk*eb*xk)/(Ed*Ed),jfe=(-tb*eb+Math.abs(Nm)*xk)/(Ed*Ed),qfe=(-tb*eb-Math.abs(Nm)*xk)/(Ed*Ed),ede=Math.sqrt(Math.pow(Rk-Jfe,2)+Math.pow(bk-qfe,2))-Math.sqrt(Math.pow(Rk-zfe,2)+Math.pow(bk-jfe,2)),NB=wm+(ede>0?zfe:Jfe)*zR/Mv,IB=Lm+(ede>0?jfe:qfe)*JR/Mv,Mk=Zfe*jo/Pm,_k=Qfe*jo/Cm,tde=Kfe*jo/Pm,nde=Hfe*jo/Cm,nb=tde-Mk,rb=nde-_k,Fd=Math.sqrt(nb*nb+rb*rb),ab=Mk*nde-tde*_k,wk=Math.sqrt(Math.max(0,jo*jo*Fd*Fd-ab*ab)),rde=(ab*rb+Sk*nb*wk)/(Fd*Fd),ade=(ab*rb-Sk*nb*wk)/(Fd*Fd),ide=(-ab*nb+Math.abs(rb)*wk)/(Fd*Fd),ode=(-ab*nb-Math.abs(rb)*wk)/(Fd*Fd),sde=Math.sqrt(Math.pow(Mk-ade,2)+Math.pow(_k-ode,2))-Math.sqrt(Math.pow(Mk-rde,2)+Math.pow(_k-ide,2)),lde=sde>0?rde:ade,cde=sde>0?ide:ode,kB=wm+lde*Pm/jo,EB=Lm+cde*Cm/jo,FB=Math.atan2(cde*Cm/jo,lde*Pm/jo),ude=FB>0?FB:FB+Tm,XB=LB-ude,tIe=XB>0?XB-Tm:XB,Lk=Math.sqrt(Math.pow(NB-kB,2)+Math.pow(IB-EB,2))/2-Om,nIe=Lk>0?NB:Ufe,rIe=Lk>0?IB:Wfe,aIe=Lk>0?kB:Yfe,iIe=Lk>0?EB:Bfe,DB=Math.atan2(IB-Lm,NB-wm),VB=(DB>0?DB:DB+Tm)-LB,oIe=VB>0?VB:VB+Tm,fde=180*LB/Math.PI,sIe=fde+180*oIe/Math.PI,dde=180*ude/Math.PI,lIe=dde+180*tIe/Math.PI;a="".concat(ht(e/2,n/2,zR,JR,fde,sIe,!1)," L ").concat(nIe,",").concat(rIe," L ").concat(qNe,",").concat(eIe," L ").concat(aIe,",").concat(iIe," L ").concat(kB,",").concat(EB," ").concat(ht(e/2,n/2,Pm,Cm,dde,lIe,!1).replace("M","L")," z");break;case"leftCircularArrow":var hde=ie(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),Tk=.9842519685039369,Ok=-19.03865*Math.PI/180,Pk=19.03865*Math.PI/180,Ck=180*Math.PI/180,Nk=.9842519685039369;if(hde){var pde,Ik=Xn(hde);try{for(Ik.s();!(pde=Ik.n()).done;){var ib=pde.value,a5=ie(ib,["attrs","name"]);a5==="adj1"?Tk=parseInt(ie(ib,["attrs","fmla"]).substring(4))*ct:a5==="adj2"?Ok=parseInt(ie(ib,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:a5==="adj3"?Pk=parseInt(ie(ib,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:a5==="adj4"?Ck=parseInt(ie(ib,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:a5==="adj5"&&(Nk=parseInt(ie(ib,["attrs","fmla"]).substring(4))*ct)}}catch(gt){Ik.e(gt)}finally{Ik.f()}}var Ip=e/2,kp=n/2,cIe=e/2,uIe=n/2,vde=Math.min(e,n),gde=1.9685039370078738,mde=7.874015748031495,yde=1/6e4*Math.PI/180,kk=21599999/6e4*Math.PI/180,Im=2*Math.PI,Ade=Nk<0?0:Nk>gde?gde:Nk,Rde=2*Ade,ob=Pk<yde?yde:Pk>kk?kk:Pk,_v=Ck<0?0:Ck>kk?kk:Ck,UB=vde*(Tk<0?0:Tk>Rde?Rde:Tk)/mde,km=vde*Ade/mde,Ek=UB/2,Em=cIe+Ek-km,Fm=uIe+Ek-km,wv=Em-UB,Lv=Fm-UB,bde=wv+Ek,xde=Lv+Ek,Tv=bde*Math.cos(ob),sb=xde*Math.sin(ob),Sde=Ip+Tv,Mde=kp+sb,qo=Math.min(wv,Lv),fIe=1-(Tv*Tv-qo*qo)*(sb*sb-qo*qo)/(Tv*Tv*sb*sb),WB=(1+Math.sqrt(fIe))/((Tv*Tv-qo*qo)/Tv/sb),YB=Math.atan2(WB,1)>0?Math.atan2(WB,1):Math.atan2(WB,1)+Im,BB=YB-ob>0?YB-ob:YB-ob+Im,dIe=BB-Math.PI>0?BB-Im:BB,_de=-Math.abs(dIe),lb=ob+(Ok<_de?_de:Ok>0?0:Ok),hIe=Ip+bde*Math.cos(lb),pIe=kp+xde*Math.sin(lb),vIe=Ip+Em*Math.cos(_v),gIe=kp+Fm*Math.sin(_v),mIe=Ip+wv*Math.cos(_v),yIe=kp+Lv*Math.sin(_v),wde=Sde+km*Math.cos(lb),Lde=Mde+km*Math.sin(lb),Tde=Sde-km*Math.cos(lb),Ode=Mde-km*Math.sin(lb),Pde=Tde-Ip,Cde=Ode-kp,Nde=wde-Ip,Ide=Lde-kp,Ov=Math.min(Em,Fm),kde=Pde*Ov/Em,Ede=Cde*Ov/Fm,Fk=Nde*Ov/Em,Xk=Ide*Ov/Fm,cb=Fk-kde,Xm=Xk-Ede,Xd=Math.sqrt(cb*cb+Xm*Xm),ub=kde*Xk-Fk*Ede,Dk=Math.sqrt(Math.max(0,Ov*Ov*Xd*Xd-ub*ub)),Vk=-1*Xm>0?-1:1,Fde=(ub*Xm+Vk*cb*Dk)/(Xd*Xd),Xde=(ub*Xm-Vk*cb*Dk)/(Xd*Xd),Dde=(-ub*cb+Math.abs(Xm)*Dk)/(Xd*Xd),Vde=(-ub*cb-Math.abs(Xm)*Dk)/(Xd*Xd),Ude=Math.sqrt(Math.pow(Fk-Xde,2)+Math.pow(Xk-Vde,2))-Math.sqrt(Math.pow(Fk-Fde,2)+Math.pow(Xk-Dde,2)),Uk=Ip+(Ude>0?Fde:Xde)*Em/Ov,Wk=kp+(Ude>0?Dde:Vde)*Fm/Ov,Yk=Pde*qo/wv,Bk=Cde*qo/Lv,Wde=Nde*qo/wv,Yde=Ide*qo/Lv,fb=Wde-Yk,db=Yde-Bk,Dd=Math.sqrt(fb*fb+db*db),hb=Yk*Yde-Wde*Bk,Zk=Math.sqrt(Math.max(0,qo*qo*Dd*Dd-hb*hb)),Bde=(hb*db+Vk*fb*Zk)/(Dd*Dd),Zde=(hb*db-Vk*fb*Zk)/(Dd*Dd),Qde=(-hb*fb+Math.abs(db)*Zk)/(Dd*Dd),Kde=(-hb*fb-Math.abs(db)*Zk)/(Dd*Dd),Hde=Math.sqrt(Math.pow(Yk-Zde,2)+Math.pow(Bk-Kde,2))-Math.sqrt(Math.pow(Yk-Bde,2)+Math.pow(Bk-Qde,2)),Gde=Hde>0?Bde:Zde,$de=Hde>0?Qde:Kde,zde=Ip+Gde*wv/qo,Jde=kp+$de*Lv/qo,ZB=Math.atan2($de*Lv/qo,Gde*wv/qo),jde=ZB>0?ZB:ZB+Im,QB=_v-jde,qde=QB>0?QB:QB+Im,AIe=jde+qde,RIe=-qde,Qk=Math.sqrt(Math.pow(Uk-zde,2)+Math.pow(Wk-Jde,2))/2-km,bIe=Qk>0?Uk:wde,xIe=Qk>0?Wk:Lde,SIe=Qk>0?zde:Tde,MIe=Qk>0?Jde:Ode,KB=Math.atan2(Wk-kp,Uk-Ip),HB=(KB>0?KB:KB+Im)-_v,_Ie=180*(_v+(HB>0?HB-Im:HB))/Math.PI,wIe=180*_v/Math.PI,ehe=180*AIe/Math.PI,LIe=ehe+180*RIe/Math.PI;a="M ".concat(vIe,",").concat(gIe," L ").concat(mIe,",").concat(yIe," ").concat(ht(e/2,n/2,wv,Lv,ehe,LIe,!1).replace("M","L")," L ").concat(SIe,",").concat(MIe," L ").concat(hIe,",").concat(pIe," L ").concat(bIe,",").concat(xIe," L ").concat(Uk,",").concat(Wk," ").concat(ht(e/2,n/2,Em,Fm,_Ie,wIe,!1).replace("M","L")," z")}return a}function BQ(t,e){if(!t||!e)return null;var n=ie(t,[e,"p:transition"]);return n||((n=ie(t,[e,"mc:AlternateContent","mc:Choice","p:transition"]))?n:n=ie(t,[e,"mc:AlternateContent","mc:Fallback","p:transition"]))}function IZe(t){if(!t)return null;var e={type:"none",duration:1e3,direction:null},n=t.attrs||{},r=!1,a=/^p\d{2}:dur$/;for(var i in n)if(a.test(i)&&!isNaN(parseInt(n[i],10))){e.duration=parseInt(n[i],10),r=!0;break}if(!r&&n.spd)switch(n.spd){case"slow":default:e.duration=1e3;break;case"med":e.duration=800;break;case"fast":e.duration=500}n.advClick==="0"&&n.advTm&&(e.autoNextAfter=parseInt(n.advTm,10));var o=/^(p|p\d{2}):/;for(var s in t)if(s!=="attrs"&&o.test(s)){var l=t[s];if(e.type=s.substring(s.indexOf(":")+1),l&&l.attrs){var c=l.attrs;c.dur&&!isNaN(parseInt(c.dur,10))&&(r||(e.duration=parseInt(c.dur,10))),c.dir&&(e.direction=c.dir)}break}return e}function M1e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function _1e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?M1e(Object(n),!0).forEach(function(r){Fj(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M1e(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function jj(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(l,c){if(l){if(typeof l=="string")return w1e(l,c);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(l);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return w1e(l,c)}}(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return o=l.done,l},e:function(l){s=!0,i=l},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw i}}}}function w1e(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function d5(t,e){return s$.apply(this,arguments)}function s$(){return s$=Pr(en.mark(function t(e,n){var r,a,i,o,s=arguments;return en.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(r=s.length>2&&s[2]!==void 0&&s[2],n){l.next=3;break}return l.abrupt("return",null);case 3:if(a="".concat(r?"drawing:":"xml:").concat(n),!e.diagramFileCache[a]){l.next=6;break}return l.abrupt("return",e.diagramFileCache[a]);case 6:return l.next=8,Oo(e.zip,n);case 8:return(i=l.sent)&&r&&(o=JSON.stringify(i).replace(/dsp:/g,"p:"),i=JSON.parse(o)),e.diagramFileCache[a]=i,l.abrupt("return",i);case 12:case"end":return l.stop()}},t)})),s$.apply(this,arguments)}function kZe(t){var e=ie(t,["dgm:dataModel","dgm:extLst","a:ext"]);if(!e)return"";Array.isArray(e)||(e=[e]);var n,r=jj(e);try{for(r.s();!(n=r.n()).done;){var a=ie(n.value,["dsp:dataModelExt","attrs","relId"]);if(a)return a}}catch(i){r.e(i)}finally{r.f()}return""}function EZe(t,e){return l$.apply(this,arguments)}function l$(){return l$=Pr(en.mark(function t(e,n){var r,a,i,o,s,l,c,u,f,d,h,p,v,g,y,m,R,A;return en.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(r=ie(e,["a:graphic","a:graphicData","dgm:relIds","attrs"])||{},a={data:null,layout:null,quickStyle:null,colors:null,drawing:null},i={},o={},s=ie(n.slideResObj,[r["r:dm"],"target"]),l=ie(n.slideResObj,[r["r:lo"],"target"]),c=ie(n.slideResObj,[r["r:qs"],"target"]),u=ie(n.slideResObj,[r["r:cs"],"target"]),!s){x.next=12;break}return x.next=11,d5(n,s);case 11:a.data=x.sent;case 12:if(!l){x.next=16;break}return x.next=15,d5(n,l);case 15:a.layout=x.sent;case 16:if(!c){x.next=20;break}return x.next=19,d5(n,c);case 19:a.quickStyle=x.sent;case 20:if(!u){x.next=24;break}return x.next=23,d5(n,u);case 23:a.colors=x.sent;case 24:if(f=a.data?kZe(a.data):"",!(d=ie(n.slideResObj,[f,"target"]))){x.next=40;break}return x.next=29,d5(n,d,!0);case 29:if(x.t0=x.sent,x.t0){x.next=32;break}x.t0={};case 32:return i=x.t0,a.drawing=i,h=d.split("/").pop(),p=d.replace(h,"_rels/"+h)+".rels",x.next=38,Oo(n.zip,p);case 38:if((v=x.sent)&&((g=v.Relationships.Relationship)&&g.constructor!==Array&&(g=[g]),g)){y=jj(g);try{for(y.s();!(m=y.n()).done;)R=m.value,A=(A=R.attrs.Target).indexOf("../")!==-1?A.replace("../","ppt/"):d.replace(h,"")+A,o[R.attrs.Id]={type:R.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:A}}catch(M){y.e(M)}finally{y.f()}}case 40:return x.abrupt("return",_1e(_1e({},n),{},{digramFileContent:i,diagramResObj:o,diagramContent:a}));case 41:case"end":return x.stop()}},t)})),l$.apply(this,arguments)}function FZe(t){var e=[],n=ie(t,["dgm:dataModel","dgm:ptLst","dgm:pt"]);if(!n)return e;Array.isArray(n)||(n=[n]);var r,a=jj(n);try{for(a.s();!(r=a.n()).done;){var i=ie(r.value,["dgm:t"]);i&&function(){var o="",s=ie(i,["a:p"]);s&&(Array.isArray(s)||(s=[s]),s.forEach(function(c){var u=ie(c,["a:r"]);u&&(Array.isArray(u)||(u=[u]),u.forEach(function(f){var d=oX(ie(f,["a:t"]));d&&typeof d=="string"&&(o+=d)})),o.length>0&&(o+=`-`)}));var l=o.trim();l&&e.push(l)}()}}catch(o){a.e(o)}finally{a.f()}return e}function L1e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function ll(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?L1e(Object(n),!0).forEach(function(r){Fj(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L1e(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Eo(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(l,c){if(l){if(typeof l=="string")return T1e(l,c);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(l);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return T1e(l,c)}}(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return o=l.done,l},e:function(l){s=!0,i=l},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw i}}}}function T1e(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function XZe(t){return c$.apply(this,arguments)}function c$(){return c$=Pr(en.mark(function t(e){var n,r,a,i,o,s,l,c,u,f,d,h,p,v,g,y,m,R,A,x,M=arguments;return en.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return n=M.length>1&&M[1]!==void 0?M[1]:{},r=[],a={},i={},o={},s=ll(ll({},n),{},{imageMode:n.imageMode||"base64",videoMode:n.videoMode||"none",audioMode:n.audioMode||"none"}),S.next=8,CBe.loadAsync(e);case 8:return l=S.sent,S.next=11,DZe(l);case 11:return c=S.sent,S.next=14,UZe(l);case 14:return u=S.sent,f=u.width,d=u.height,h=u.defaultTextStyle,S.next=20,WZe(l);case 20:return p=S.sent,v=p.themeContent,g=p.themeColors,S.next=25,VZe(l);case 25:y=S.sent,m=Eo(c.slides),S.prev=27,m.s();case 29:if((R=m.n()).done){S.next=37;break}return A=R.value,S.next=33,YZe(l,A,v,h,a,i,o,s);case 33:x=S.sent,r.push(x);case 35:S.next=29;break;case 37:S.next=42;break;case 39:S.prev=39,S.t0=S.catch(27),m.e(S.t0);case 42:return S.prev=42,m.f(),S.finish(42);case 45:return S.abrupt("return",{slides:r,usedFonts:y,themeColors:g,size:{width:f,height:d}});case 46:case"end":return S.stop()}},t,null,[[27,39,42,45]])})),c$.apply(this,arguments)}function DZe(t){return WMe.apply(this,arguments)}function WMe(){return(WMe=Pr(en.mark(function t(e){var n,r,a,i,o,s,l,c;return en.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Oo(e,"[Content_Types].xml");case 2:n=u.sent,r=n.Types.Override,a=[],i=[],o=Eo(r),u.prev=7,o.s();case 9:if((s=o.n()).done){u.next=20;break}l=s.value,u.t0=l.attrs.ContentType,u.next=u.t0==="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"?14:u.t0==="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"?16:18;break;case 14:return a.push(l.attrs.PartName.substr(1)),u.abrupt("break",18);case 16:return i.push(l.attrs.PartName.substr(1)),u.abrupt("break",18);case 18:u.next=9;break;case 20:u.next=25;break;case 22:u.prev=22,u.t1=u.catch(7),o.e(u.t1);case 25:return u.prev=25,o.f(),u.finish(25);case 28:return c=function(f,d){return+/(\d+)\.xml/.exec(f)[1]-+/(\d+)\.xml/.exec(d)[1]},a=a.sort(c),i=i.sort(c),u.abrupt("return",{slides:a,slideLayouts:i});case 32:case"end":return u.stop()}},t,null,[[7,22,25,28]])}))).apply(this,arguments)}function VZe(t){return u$.apply(this,arguments)}function u$(){return u$=Pr(en.mark(function t(e){var n,r,a,i,o,s,l,c;return en.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Oo(e,"ppt/presentation.xml");case 2:if(n=u.sent,r=ie(n,["p:presentation","p:embeddedFontLst","p:embeddedFont"]),a=[],r){u.next=7;break}return u.abrupt("return",a);case 7:i=r.constructor===Array?r:[r],o=Eo(i);try{for(o.s();!(s=o.n()).done;)l=s.value,(c=ie(l,["p:font","attrs","typeface"]))&&!a.includes(c)&&a.push(c)}catch(f){o.e(f)}finally{o.f()}return u.abrupt("return",a);case 11:case"end":return u.stop()}},t)})),u$.apply(this,arguments)}function UZe(t){return YMe.apply(this,arguments)}function YMe(){return(YMe=Pr(en.mark(function t(e){var n,r,a;return en.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Oo(e,"ppt/presentation.xml");case 2:return n=i.sent,r=n["p:presentation"]["p:sldSz"].attrs,a=n["p:presentation"]["p:defaultTextStyle"],i.abrupt("return",{width:parseInt(r.cx)*ct,height:parseInt(r.cy)*ct,defaultTextStyle:a});case 6:case"end":return i.stop()}},t)}))).apply(this,arguments)}function WZe(t){return f$.apply(this,arguments)}function f$(){return f$=Pr(en.mark(function t(e){var n,r,a,i,o,s,l,c,u,f,d;return en.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Oo(e,"ppt/_rels/presentation.xml.rels");case 2:if(n=h.sent,(r=n.Relationships.Relationship).constructor!==Array){h.next=25;break}i=Eo(r),h.prev=6,i.s();case 8:if((o=i.n()).done){h.next=15;break}if((s=o.value).attrs.Type!=="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"){h.next=13;break}return a=s.attrs.Target,h.abrupt("break",15);case 13:h.next=8;break;case 15:h.next=20;break;case 17:h.prev=17,h.t0=h.catch(6),i.e(h.t0);case 20:return h.prev=20,i.f(),h.finish(20);case 23:h.next=26;break;case 25:r.attrs.Type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"&&(a=r.attrs.Target);case 26:return h.next=28,Oo(e,"ppt/"+a);case 28:if(l=h.sent,c=[],!(u=ie(l,["a:theme","a:themeElements","a:clrScheme"]))){h.next=41;break}f=1;case 33:if(!(f<=6)){h.next=41;break}if(u["a:accent".concat(f)]!==void 0){h.next=36;break}return h.abrupt("break",41);case 36:(d=ie(u,["a:accent".concat(f),"a:srgbClr","attrs","val"]))&&c.push("#"+d);case 38:f++,h.next=33;break;case 41:return h.abrupt("return",{themeContent:l,themeColors:c});case 42:case"end":return h.stop()}},t,null,[[6,17,20,23]])})),f$.apply(this,arguments)}function YZe(t,e,n,r,a,i,o,s){return d$.apply(this,arguments)}function d$(){return d$=Pr(en.mark(function t(e,n,r,a,i,o,s,l){var c,u,f,d,h,p,v,g,y,m,R,A,x,M,S,w,_,T,O,N,P,C,E,F,Y,Q,K,ne,Z,$,G,ee,ce,B,xe,_e,se,z,de,fe,re,X,j,oe,ae,le,ge,Se,me,ye,Ve,De,Ye,Je,wt,Lt,Ne;return en.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return c=n.replace("slides/slide","slides/_rels/slide")+".rels",Te.next=3,Oo(e,c);case 3:u=Te.sent,(f=u.Relationships.Relationship).constructor!==Array&&(f=[f]),d="",h="",p="",v="",g={},y={},m={},R={},A=Eo(f),Te.prev=15,A.s();case 17:if((x=A.n()).done){Te.next=37;break}M=x.value,S=M.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),w=M.attrs.Target,M.attrs.TargetMode==="External"||(w=w.indexOf("../")!==-1?w.replace("../","ppt/"):"ppt/slides/"+w),Te.t0=M.attrs.Type,Te.next=Te.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"?26:Te.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"?29:Te.t0==="http://schemas.microsoft.com/office/2007/relationships/diagramDrawing"||Te.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData"||Te.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout"||Te.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle"||Te.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors"?32:(Te.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"||Te.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"||Te.t0,34);break;case 26:return h=w,g[M.attrs.Id]={type:S,target:w},Te.abrupt("break",35);case 29:return d=w,g[M.attrs.Id]={type:S,target:w},Te.abrupt("break",35);case 32:return g[M.attrs.Id]={type:S,target:w},Te.abrupt("break",35);case 34:g[M.attrs.Id]={type:S,target:w};case 35:Te.next=17;break;case 37:Te.next=42;break;case 39:Te.prev=39,Te.t1=Te.catch(15),A.e(Te.t1);case 42:return Te.prev=42,A.f(),Te.finish(42);case 45:return Te.next=47,Oo(e,d);case 47:return _=Te.sent,T=BZe(_),Te.next=51,Oo(e,h);case 51:return O=Te.sent,Te.next=54,O1e(O);case 54:return N=Te.sent,P=h.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels",Te.next=58,Oo(e,P);case 58:C=Te.sent,(f=C.Relationships.Relationship).constructor!==Array&&(f=[f]),E=Eo(f),Te.prev=62,E.s();case 64:if((F=E.n()).done){Te.next=77;break}Y=F.value,Q=Y.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),K=(K=Y.attrs.Target).indexOf("../")!==-1?K.replace("../","ppt/"):"ppt/slideLayouts/"+K,Te.t2=Y.attrs.Type,Te.next=Te.t2==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"?72:74;break;case 72:return p=K,Te.abrupt("break",75);case 74:y[Y.attrs.Id]={type:Q,target:K};case 75:Te.next=64;break;case 77:Te.next=82;break;case 79:Te.prev=79,Te.t3=Te.catch(62),E.e(Te.t3);case 82:return Te.prev=82,E.f(),Te.finish(82);case 85:return Te.next=87,Oo(e,p);case 87:return ne=Te.sent,Z=ie(ne,["p:sldMaster","p:txStyles"]),$=O1e(ne),G=p.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels",Te.next=93,Oo(e,G);case 93:ee=Te.sent,(f=ee.Relationships.Relationship).constructor!==Array&&(f=[f]),ce=Eo(f),Te.prev=97,ce.s();case 99:if((B=ce.n()).done){Te.next=112;break}xe=B.value,_e=xe.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),se=(se=xe.attrs.Target).indexOf("../")!==-1?se.replace("../","ppt/"):"ppt/slideMasters/"+se,Te.t4=xe.attrs.Type,Te.next=Te.t4==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"?107:109;break;case 107:return v=se,Te.abrupt("break",110);case 109:m[xe.attrs.Id]={type:_e,target:se};case 110:Te.next=99;break;case 112:Te.next=117;break;case 114:Te.prev=114,Te.t5=Te.catch(97),ce.e(Te.t5);case 117:return Te.prev=117,ce.f(),Te.finish(117);case 120:if(!v){Te.next=127;break}return z=v.split("/").pop(),de=v.replace(z,"_rels/"+z)+".rels",Te.next=125,Oo(e,de);case 125:if((fe=Te.sent)&&(f=fe.Relationships.Relationship)){f.constructor!==Array&&(f=[f]),re=Eo(f);try{for(re.s();!(X=re.n()).done;)j=X.value,R[j.attrs.Id]={type:j.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:j.attrs.Target.replace("../","ppt/")}}catch(ze){re.e(ze)}finally{re.f()}}case 127:return Te.next=129,Oo(e,"ppt/tableStyles.xml");case 129:return oe=Te.sent,Te.next=132,Oo(e,n);case 132:return ae=Te.sent,le=ae["p:sld"]["p:cSld"]["p:spTree"],ge={zip:e,loadedImages:i,loadedVideos:o,loadedAudios:s,options:l,slideLayoutContent:O,slideLayoutTables:N,slideMasterContent:ne,slideMasterTables:$,slideContent:ae,tableStyles:oe,slideResObj:g,slideMasterTextStyles:Z,layoutResObj:y,masterResObj:m,themeContent:r,themeResObj:R,diagramFileCache:{},defaultTextStyle:a},Te.next=137,ZZe(ge);case 137:return Se=Te.sent,Te.next=140,cZe(ge);case 140:me=Te.sent,ye=[],Te.t6=en.keys(le);case 143:if((Te.t7=Te.t6()).done){Te.next=167;break}Ve=Te.t7.value,le[Ve].constructor!==Array&&(le[Ve]=[le[Ve]]),De=Eo(le[Ve]),Te.prev=147,De.s();case 149:if((Ye=De.n()).done){Te.next=157;break}return Je=Ye.value,Te.next=153,k2(Ve,Je,ge,"slide");case 153:(wt=Te.sent)&&ye.push(wt);case 155:Te.next=149;break;case 157:Te.next=162;break;case 159:Te.prev=159,Te.t8=Te.catch(147),De.e(Te.t8);case 162:return Te.prev=162,De.f(),Te.finish(162);case 165:Te.next=143;break;case 167:return(Lt=BQ(ae,"p:sld"))||(Lt=BQ(O,"p:sldLayout")),Lt||(Lt=BQ(ne,"p:sldMaster")),Ne=IZe(Lt),Te.abrupt("return",{fill:me,elements:ye,layoutElements:Se,note:T,transition:Ne});case 172:case"end":return Te.stop()}},t,null,[[15,39,42,45],[62,79,82,85],[97,114,117,120],[147,159,162,165]])})),d$.apply(this,arguments)}function qj(t,e){var n=ie(t,["a:hlinkClick","attrs"]);if(!n)return null;var r=n["r:id"];if(!r)return null;var a=e.slideResObj[r];if(!a||a.type!=="hyperlink")return null;var i=a.target;return i&&/^https?:\/\//.test(i)?i:null}function BZe(t){var e="",n=ie(t,["p:notes","p:cSld","p:spTree","p:sp"]);if(!n)return"";n.constructor!==Array&&(n=[n]);var r,a=Eo(n);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(ie(i,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])==="body"){var o=ie(i,["p:txBody"]);if(o){var s=o["a:p"];if(s){s.constructor!==Array&&(s=[s]);var l,c=[],u=Eo(s);try{for(u.s();!(l=u.n()).done;){var f=l.value,d=f["a:pPr"],h=ie(d,["attrs","algn"]),p="left";if(h)switch(h){case"r":p="right";break;case"ctr":p="center";break;case"just":case"dist":p="justify"}var v="";d&&(d["a:buChar"]?v="ul":d["a:buAutoNum"]&&(v="ol"));var g=ie(d,["attrs","lvl"]),y=g!==void 0?parseInt(g):0;if(v){for(;c.length>y+1;)e+="</".concat(c.pop(),">");c[y]===void 0?(e+="<".concat(v,">"),c[y]=v):c[y]!==v&&(e+="</".concat(c[y],">"),e+="<".concat(v,">"),c[y]=v),e+='<li style="text-align:'.concat(p,';">')}else{for(;c.length>0;)e+="</".concat(c.pop(),">");e+='<p style="text-align:'.concat(p,';">')}var m=f["a:r"];if(m){m.constructor!==Array&&(m=[m]);var R,A=Eo(m);try{for(A.s();!(R=A.n()).done;){var x=oX(ie(R.value,["a:t"]));x&&typeof x=="string"&&(e+=x)}}catch(M){A.e(M)}finally{A.f()}}e+=v?"</li>":"</p>"}}catch(M){u.e(M)}finally{u.f()}for(;c.length>0;)e+="</".concat(c.pop(),">")}}}}}catch(M){a.e(M)}finally{a.f()}return e}function ZZe(t){return h$.apply(this,arguments)}function h$(){return h$=Pr(en.mark(function t(e){var n,r,a,i,o,s,l,c,u,f,d,h,p,v;return en.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(n=[],r=e.slideLayoutContent,a=e.slideMasterContent,i=ie(r,["p:sldLayout","p:cSld","p:spTree"]),o=ie(a,["p:sldMaster","p:cSld","p:spTree"]),s=ie(r,["p:sldLayout","attrs","showMasterSp"]),!i){g.next=32;break}g.t0=en.keys(i);case 8:if((g.t1=g.t0()).done){g.next=32;break}if(l=g.t1.value,i[l].constructor!==Array){g.next=24;break}c=0;case 12:if(!(c<i[l].length)){g.next=22;break}if(ie(i[l][c],["p:nvSpPr","p:nvPr","p:ph"])){g.next=19;break}return g.next=17,k2(l,i[l][c],e,"slideLayoutBg");case 17:(u=g.sent)&&n.push(u);case 19:c++,g.next=12;break;case 22:g.next=30;break;case 24:if(ie(i[l],["p:nvSpPr","p:nvPr","p:ph"])){g.next=30;break}return g.next=28,k2(l,i[l],e,"slideLayoutBg");case 28:(f=g.sent)&&n.push(f);case 30:g.next=8;break;case 32:if(!o||s==="0"){g.next=58;break}g.t2=en.keys(o);case 34:if((g.t3=g.t2()).done){g.next=58;break}if(d=g.t3.value,o[d].constructor!==Array){g.next=50;break}h=0;case 38:if(!(h<o[d].length)){g.next=48;break}if(ie(o[d][h],["p:nvSpPr","p:nvPr","p:ph"])){g.next=45;break}return g.next=43,k2(d,o[d][h],e,"slideMasterBg");case 43:(p=g.sent)&&n.push(p);case 45:h++,g.next=38;break;case 48:g.next=56;break;case 50:if(ie(o[d],["p:nvSpPr","p:nvPr","p:ph"])){g.next=56;break}return g.next=54,k2(d,o[d],e,"slideMasterBg");case 54:(v=g.sent)&&n.push(v);case 56:g.next=34;break;case 58:return g.abrupt("return",n);case 59:case"end":return g.stop()}},t)})),h$.apply(this,arguments)}function O1e(t){var e=t[Object.keys(t)[0]]["p:cSld"]["p:spTree"],n={},r={},a={};for(var i in e)if(i!=="p:nvGrpSpPr"&&i!=="p:grpSpPr"){var o=e[i];if(o.constructor===Array){var s,l=Eo(o);try{for(l.s();!(s=l.n()).done;){var c=s.value,u=c["p:nvSpPr"],f=ie(u,["p:cNvPr","attrs","id"]),d=ie(u,["p:nvPr","p:ph","attrs","idx"]),h=ie(u,["p:nvPr","p:ph","attrs","type"]);f&&(n[f]=c),d&&(r[d]=c),h&&!a[h]&&(a[h]=c)}}catch(m){l.e(m)}finally{l.f()}}else{var p=o["p:nvSpPr"],v=ie(p,["p:cNvPr","attrs","id"]),g=ie(p,["p:nvPr","p:ph","attrs","idx"]),y=ie(p,["p:nvPr","p:ph","attrs","type"]);v&&(n[v]=o),g&&(r[g]=o),y&&!a[y]&&(a[y]=o)}}return{idTable:n,idxTable:r,typeTable:a}}function k2(t,e,n,r){return p$.apply(this,arguments)}function p$(){return p$=Pr(en.mark(function t(e,n,r,a){var i,o,s=arguments;return en.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:i=s.length>4&&s[4]!==void 0?s[4]:[],l.t0=e,l.next=l.t0==="p:sp"?4:l.t0==="p:cxnSp"?8:l.t0==="p:pic"?12:l.t0==="p:graphicFrame"?16:l.t0==="p:grpSp"?20:l.t0==="mc:AlternateContent"?24:35;break;case 4:return l.next=6,BMe(n,r,a,i);case 6:return o=l.sent,l.abrupt("break",35);case 8:return l.next=10,KZe(n,r,a);case 10:return o=l.sent,l.abrupt("break",35);case 12:return l.next=14,HZe(n,r,a);case 14:return o=l.sent,l.abrupt("break",35);case 16:return l.next=18,GZe(n,r,a);case 18:return o=l.sent,l.abrupt("break",35);case 20:return l.next=22,g$(n,r,a,i);case 22:return o=l.sent,l.abrupt("break",35);case 24:if(!ie(n,["mc:Fallback","p:grpSpPr","a:xfrm"])){l.next=30;break}return l.next=27,g$(ie(n,["mc:Fallback"]),r,a,i);case 27:o=l.sent,l.next=34;break;case 30:if(!ie(n,["mc:Choice"])){l.next=34;break}return l.next=33,QZe(n,r,a);case 33:o=l.sent;case 34:return l.abrupt("break",35);case 35:return l.abrupt("return",o);case 36:case"end":return l.stop()}},t)})),p$.apply(this,arguments)}function QZe(t,e,n){return v$.apply(this,arguments)}function v$(){return v$=Pr(en.mark(function t(e,n,r){var a,i,o,s,l,c,u,f,d,h,p,v,g,y,m,R;return en.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return a=ie(e,["mc:Choice"]),i=ie(e,["mc:Fallback"]),o=e.attrs.order,s=ie(a,["p:sp","p:spPr","a:xfrm"]),l=FS(s,void 0,void 0),c=l.top,u=l.left,f=XS(s,void 0,void 0),d=f.width,h=f.height,p=UMe(a)[0],v=CZe(_a(p)),g=ie(i,["p:sp","p:spPr","a:blipFill"]),A.next=11,HD(r,g,n);case 11:return y=A.sent,m="",ie(a,["p:sp","p:txBody","a:p","a:r"])&&(R=ie(a,["p:sp"]),m=sX(R["p:txBody"],R,void 0,void 0,void 0,n)),A.abrupt("return",{type:"math",top:c,left:u,width:d,height:h,latex:v,picRef:y.ref,picBase64:y.base64,picBlob:y.blob,text:m,order:o});case 15:case"end":return A.stop()}},t)})),v$.apply(this,arguments)}function g$(t,e,n){return m$.apply(this,arguments)}function m$(){return m$=Pr(en.mark(function t(e,n,r){var a,i,o,s,l,c,u,f,d,h,p,v,g,y,m,R,A,x,M,S,w,_,T,O,N,P,C=arguments;return en.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(P=function(F,Y,Q){var K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return K>10?F:F.map(function(ne){var Z=ll(ll({},ne),{},{left:_o(ne.left*Y),top:_o(ne.top*Q),width:_o(ne.width*Y),height:_o(ne.height*Q)});return ne.type==="group"&&ne.elements&&(Z.elements=P(ne.elements,Y,Q,K+1)),Z})},a=C.length>3&&C[3]!==void 0?C[3]:[],i=e.attrs.order,o=ie(e,["p:grpSpPr","a:xfrm"])){E.next=6;break}return E.abrupt("return",null);case 6:s=parseInt(o["a:off"].attrs.x)*ct,l=parseInt(o["a:off"].attrs.y)*ct,c=parseInt(o["a:chOff"].attrs.x)*ct,u=parseInt(o["a:chOff"].attrs.y)*ct,f=parseInt(o["a:ext"].attrs.cx)*ct,d=parseInt(o["a:ext"].attrs.cy)*ct,h=parseInt(o["a:chExt"].attrs.cx)*ct,p=parseInt(o["a:chExt"].attrs.cy)*ct,v=ie(o,["attrs","flipV"])==="1",g=ie(o,["attrs","flipH"])==="1",(y=ie(o,["attrs","rot"])||0)&&(y=oS(y)),m=f/h,R=d/p,A=[].concat(Ej(a),[e]),x=[],E.t0=en.keys(e);case 23:if((E.t1=E.t0()).done){E.next=53;break}if(M=E.t1.value,e[M].constructor!==Array){E.next=47;break}S=Eo(e[M]),E.prev=27,S.s();case 29:if((w=S.n()).done){E.next=37;break}return _=w.value,E.next=33,k2(M,_,n,r,A);case 33:(T=E.sent)&&x.push(T);case 35:E.next=29;break;case 37:E.next=42;break;case 39:E.prev=39,E.t2=E.catch(27),S.e(E.t2);case 42:return E.prev=42,S.f(),E.finish(42);case 45:E.next=51;break;case 47:return E.next=49,k2(M,e[M],n,r,A);case 49:(O=E.sent)&&x.push(O);case 51:E.next=23;break;case 53:return N=x.map(function(F){return ll(ll({},F),{},{left:_o((F.left-c)*m),top:_o((F.top-u)*R),width:_o(F.width*m),height:_o(F.height*R)},F.type==="group"&&F.elements?{elements:P(F.elements,m,R)}:{})}),E.abrupt("return",{type:"group",top:_o(l),left:_o(s),width:_o(f),height:_o(d),rotate:y,order:i,isFlipV:v,isFlipH:g,elements:N});case 55:case"end":return E.stop()}},t,null,[[27,39,42,45]])})),m$.apply(this,arguments)}function BMe(t,e,n){return y$.apply(this,arguments)}function y$(){return y$=Pr(en.mark(function t(e,n,r){var a,i,o,s,l,c,u,f,d,h=arguments;return en.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a=h.length>3&&h[3]!==void 0?h[3]:[],i=ie(e,["p:nvSpPr","p:cNvPr"]),o=ie(i,["attrs","name"]),s=ie(e,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),l=ie(e,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]),c=ie(e,["attrs","order"]),l?s?(u=n.slideLayoutTables.idxTable[s],f=n.slideMasterTables.idxTable[s],u||(u=n.slideLayoutTables.typeTable[l]),f||(f=n.slideMasterTables.typeTable[l])):(u=n.slideLayoutTables.typeTable[l],f=n.slideMasterTables.typeTable[l]):s&&(u=n.slideLayoutTables.idxTable[s],f=n.slideMasterTables.idxTable[s]),l||ie(e,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"&&(l="text"),l||(l=ie(u,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),l||(l=ie(f,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),f||l!=="ctrTitle"||(f=n.slideMasterTables.typeTable.title),l||(l=r==="diagramBg"?"diagram":"obj"),d=qj(i,n),p.next=15,ZMe(e,u,f,o,l,c,n,r,d,a);case 15:return p.abrupt("return",p.sent);case 16:case"end":return p.stop()}},t)})),y$.apply(this,arguments)}function KZe(t,e,n){return A$.apply(this,arguments)}function A$(){return A$=Pr(en.mark(function t(e,n,r){var a,i,o,s,l;return en.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return a=ie(e,["p:nvCxnSpPr","p:cNvPr"]),i=ie(a,["attrs","name"]),o=e["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]===void 0?void 0:e["p:nvCxnSpPr"]["p:nvPr"]["p:ph"].attrs.type,s=e.attrs.order,l=qj(a,n),c.next=7,ZMe(e,void 0,void 0,i,o,s,n,r,l);case 7:return c.abrupt("return",c.sent);case 8:case"end":return c.stop()}},t)})),A$.apply(this,arguments)}function ZMe(t,e,n,r,a,i,o,s,l){return R$.apply(this,arguments)}function R$(){return R$=Pr(en.mark(function t(e,n,r,a,i,o,s,l,c){var u,f,d,h,p,v,g,y,m,R,A,x,M,S,w,_,T,O,N,P,C,E,F,Y,Q,K,ne,Z,$,G,ee,ce,B,xe,_e,se,z,de,fe,re,X,j,oe,ae,le,ge,Se=arguments;return en.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(u=Se.length>9&&Se[9]!==void 0?Se[9]:[],d=ie(e,f=["p:spPr","a:xfrm"]),h=ie(n,f),p=ie(r,f),v=ie(e,["p:spPr","a:prstGeom","attrs","prst"]),g=ie(e,["p:spPr","a:custGeom"]),y={},v&&(m=ie(e,["p:spPr","a:prstGeom","a:avLst","a:gd"]))){R=Array.isArray(m)?m:[m],A=Eo(R);try{for(A.s();!(x=A.n()).done;)M=x.value,S=ie(M,["attrs","name"]),w=ie(M,["attrs","fmla"]),S&&w&&w.startsWith("val ")&&(y[S]=parseInt(w.substring(4))/5e4)}catch(ye){A.e(ye)}finally{A.f()}}return _=FS(d,h,p),T=_.top,O=_.left,N=XS(d,h,p),P=N.width,C=N.height,E=ie(d,["attrs","flipV"])==="1",F=ie(d,["attrs","flipH"])==="1",Y=oS(ie(d,["attrs","rot"])),(Q=ie(e,["p:txXfrm"]))?(ne=ie(Q,["attrs","rot"]))&&(K=oS(ne)+90):K=Y,Z="",e["p:txBody"]&&(Z=sX(e["p:txBody"],e,n,r,i,s)),$=vh(e,i,s),G=$.borderColor,ee=$.borderWidth,ce=$.borderType,B=$.strokeDasharray,me.next=21,NMe(e,s,l,u);case 21:if(xe=me.sent,(se=ie(e,["p:spPr","a:effectLst","a:outerShdw"]))&&(_e=EMe(se,s)),z=vZe(e,n,r),de=ie(e,["p:txBody","a:bodyPr","attrs","vert"])==="eaVert",fe=gZe(e,n,r),re={left:O,top:T,width:P,height:C,borderColor:G,borderWidth:ee,borderType:ce,borderStrokeDasharray:B,fill:xe,content:Z,isFlipV:E,isFlipH:F,rotate:Y,vAlign:z,name:a,order:o},_e&&(re.shadow=_e),fe&&(re.autoFit=fe),c&&(re.link=c),X=re.content&&qBe(re.content),!g||i==="diagram"){me.next=39;break}return j=ie(d,["a:ext","attrs"]),oe=parseInt(j.cx)*ct,ae=parseInt(j.cy)*ct,le=LZe(g,oe,ae),X||(re.content=""),me.abrupt("return",ll(ll({},re),{},{type:"shape",shapType:"custom",path:le}));case 39:if(ge="",v&&(ge=NZe(v,P,C,e)),!v||i!=="obj"&&i&&v==="rect"){me.next=44;break}return X||(re.content=""),me.abrupt("return",ll(ll({},re),{},{type:"shape",shapType:v,path:ge,keypoints:y}));case 44:if(!v||X||!xe&&!ee){me.next=46;break}return me.abrupt("return",ll(ll({},re),{},{type:"shape",content:"",shapType:v,path:ge,keypoints:y}));case 46:return me.abrupt("return",ll(ll({},re),{},{type:"text",isVertical:de,rotate:K}));case 47:case"end":return me.stop()}},t)})),R$.apply(this,arguments)}function HZe(t,e,n){return b$.apply(this,arguments)}function b$(){return b$=Pr(en.mark(function t(e,n,r){var a,i,o,s,l,c,u,f,d,h,p,v,g,y,m,R,A,x,M,S,w,_,T,O,N,P,C,E,F,Y,Q,K,ne,Z,$,G,ee,ce,B,xe,_e,se;return en.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(a=r==="slideMasterBg"?n.masterResObj:r==="slideLayoutBg"?n.layoutResObj:n.slideResObj,i=ie(e,["p:nvPicPr","p:cNvPr"]),o=qj(i,n),s=e.attrs.order,(l=e["p:blipFill"]["a:blip"].attrs["r:embed"])&&a[l]){z.next=7;break}return z.abrupt("return",null);case 7:return c=a[l].target,(u=e["p:spPr"]["a:xfrm"])||(f=ie(e,["p:nvPicPr","p:nvPr","p:ph","attrs","idx"]))&&(u=ie(n.slideLayoutTables,["idxTable",f,"p:spPr","a:xfrm"])),d=FS(u,void 0,void 0),h=d.top,p=d.left,v=XS(u,void 0,void 0),g=v.width,y=v.height,z.next=14,wMe(c,n);case 14:if(m=z.sent,R=ie(u,["attrs","flipV"])==="1",A=ie(u,["attrs","flipH"])==="1",x=0,(M=ie(e,["p:spPr","a:xfrm","attrs","rot"]))&&(x=oS(M)),S=ie(e,["p:nvPicPr","p:nvPr","a:videoFile"]),O={ref:"",blob:""},N=!1,!S){z.next=40;break}if(w=S.attrs["r:link"],!jBe(_=a[w].target)){z.next=31;break}_=SMe(_),N=!0,z.next=39;break;case 31:if((T=l1e(_).toLowerCase())!=="mp4"&&T!=="webm"&&T!=="ogg"){z.next=38;break}return z.next=35,oZe(_,n);case 35:O=z.sent,z.next=39;break;case 38:O={ref:_,blob:""};case 39:N&&(O={ref:_,blob:""});case 40:if(P=ie(e,["p:nvPicPr","p:nvPr","a:audioFile"]),Y={ref:"",blob:""},!P){z.next=53;break}if(C=P.attrs["r:link"],E=a[C].target,(F=l1e(E).toLowerCase())!=="mp3"&&F!=="wav"&&F!=="ogg"){z.next=52;break}return z.next=49,sZe(E,n);case 49:Y=z.sent,z.next=53;break;case 52:Y={ref:E,blob:""};case 53:if(!S||N){z.next=55;break}return z.abrupt("return",{type:"video",top:h,left:p,width:g,height:y,rotate:x,ref:O.ref,blob:O.blob,order:s});case 55:if(!S||!N){z.next=57;break}return z.abrupt("return",{type:"video",top:h,left:p,width:g,height:y,rotate:x,ref:O.ref,blob:O.blob,order:s});case 57:if(!P){z.next=59;break}return z.abrupt("return",{type:"audio",top:h,left:p,width:g,height:y,rotate:x,ref:Y.ref,blob:Y.blob,order:s});case 59:return(K=ie(e,["p:blipFill","a:srcRect","attrs"]))&&(K.t||K.b||K.l||K.r)&&(Q={},K.t&&(Q.t=K.t/1e3),K.b&&(Q.b=K.b/1e3),K.l&&(Q.l=K.l/1e3),K.r&&(Q.r=K.r/1e3)),ne="rect",Z=ie(e,["p:spPr","a:prstGeom","attrs","prst"]),$=ie(e,["p:spPr","a:custGeom"]),Z?ne=Z:$&&(ne=TZe($))!=="custom"&&(ne="custom:".concat(ne)),G=vh(e,void 0,n),ee=G.borderColor,ce=G.borderWidth,B=G.borderType,xe=G.strokeDasharray,_e=lZe(e["p:blipFill"]),se={type:"image",top:h,left:p,width:g,height:y,rotate:x,ref:m.ref,base64:m.base64,blob:m.blob,isFlipV:R,isFlipH:A,order:s,rect:Q,geom:ne,borderColor:ee,borderWidth:ce,borderType:B,borderStrokeDasharray:xe},_e&&(se.filters=_e),o&&(se.link=o),z.abrupt("return",se);case 71:case"end":return z.stop()}},t)})),b$.apply(this,arguments)}function GZe(t,e,n){return x$.apply(this,arguments)}function x$(){return x$=Pr(en.mark(function t(e,n,r){var a,i,o;return en.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:a=ie(e,["a:graphic","a:graphicData","attrs","uri"]),s.t0=a,s.next=s.t0==="http://schemas.openxmlformats.org/drawingml/2006/table"?4:s.t0==="http://schemas.openxmlformats.org/drawingml/2006/chart"?8:s.t0==="http://schemas.openxmlformats.org/drawingml/2006/diagram"?12:s.t0==="http://schemas.openxmlformats.org/presentationml/2006/ole"?16:23;break;case 4:return s.next=6,$Ze(e,n);case 6:return i=s.sent,s.abrupt("break",23);case 8:return s.next=10,zZe(e,n);case 10:return i=s.sent,s.abrupt("break",23);case 12:return s.next=14,JZe(e,n);case 14:return i=s.sent,s.abrupt("break",23);case 16:if((o=ie(e,["a:graphic","a:graphicData","mc:AlternateContent","mc:Fallback","p:oleObj"]))||(o=ie(e,["a:graphic","a:graphicData","p:oleObj"])),!o){s.next=22;break}return s.next=21,g$(o,n,r);case 21:i=s.sent;case 22:return s.abrupt("break",23);case 23:return s.abrupt("return",i);case 24:case"end":return s.stop()}},t)})),x$.apply(this,arguments)}function $Ze(t,e){return S$.apply(this,arguments)}function S$(){return S$=Pr(en.mark(function t(e,n){var r,a,i,o,s,l,c,u,f,d,h,p,v,g,y,m,R,A,x,M,S,w,_,T,O,N,P,C,E,F,Y,Q,K,ne,Z,$,G,ee,ce,B,xe,_e,se,z,de,fe,re,X,j,oe,ae,le,ge,Se,me,ye,Ve;return en.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(r=e.attrs.order,a=ie(e,["a:graphic","a:graphicData","a:tbl"]),i=ie(e,["p:xfrm"]),o=FS(i,void 0,void 0),s=o.top,l=o.left,c=XS(i,void 0,void 0),u=c.width,f=c.height,d=ie(e,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),(h=ie(e,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"])).constructor!==Array&&(h=[h]),p=[],h){v=Eo(h);try{for(v.s();!(g=v.n()).done;)y=g.value,m=ie(y,["attrs","w"])||0,R=parseInt(m)*ct,p.push(R)}catch(Ye){v.e(Ye)}finally{v.f()}}if(A=d.attrs?d.attrs.firstRow:void 0,x=d.attrs?d.attrs.firstCol:void 0,M=d.attrs?d.attrs.lastRow:void 0,S=d.attrs?d.attrs.lastCol:void 0,w=d.attrs?d.attrs.bandRow:void 0,_=d.attrs?d.attrs.bandCol:void 0,T={isFrstRowAttr:A&&A==="1"?1:0,isFrstColAttr:x&&x==="1"?1:0,isLstRowAttr:M&&M==="1"?1:0,isLstColAttr:S&&S==="1"?1:0,isBandRowAttr:w&&w==="1"?1:0,isBandColAttr:_&&_==="1"?1:0},(N=d["a:tableStyleId"])&&(P=n.tableStyles["a:tblStyleLst"]["a:tblStyle"]))if(P.constructor===Array)for(C=0;C<P.length;C++)P[C].attrs.styleId===N&&(O=P[C]);else P.attrs.styleId===N&&(O=P);O&&(O.tblStylAttrObj=T),E={},F=ie(O,["a:wholeTbl","a:tcStyle"]),(Y=ie(F,["a:tcBdr"]))&&(E=OZe(Y,n)),Q="",(K=ie(O,["a:tblBg","a:fillRef"]))&&(Q=Kr(K,void 0,void 0,n)),K===void 0&&(K=ie(O,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]),Q=Kr(K,void 0,void 0,n)),(ne=a["a:tr"]).constructor!==Array&&(ne=[ne]),Z=[],$=[],G=0;case 33:if(!(G<ne.length)){De.next=90;break}if(ee=ne[G],ce=ie(ne[G],["attrs","h"])||0,B=parseInt(ce)*ct,$.push(B),xe=PZe(ne,G,T,O,n),_e=xe.fillColor,se=xe.fontColor,z=xe.fontBold,de=ee["a:tc"],fe=[],de.constructor!==Array){De.next=68;break}re=0;case 43:if(!(re<de.length)){De.next=66;break}return X=de[re],j=void 0,re===0&&T.isFrstColAttr===1?(j="a:firstCol",T.isLstRowAttr===1&&G===ne.length-1&&ie(O,["a:seCell"])?j="a:seCell":T.isFrstRowAttr===1&&G===0&&ie(O,["a:neCell"])&&(j="a:neCell")):!(re>0&&T.isBandColAttr===1)||T.isFrstColAttr===1&&G===0||T.isLstRowAttr===1&&G===ne.length-1||re===de.length-1||re%2!=0&&(ie(O,["a:band2V"])===void 0?ie(O,["a:band1V"])&&(j="a:band2V"):j="a:band2V"),re===de.length-1&&T.isLstColAttr===1&&(j="a:lastCol",T.isLstRowAttr===1&&G===ne.length-1&&ie(O,["a:swCell"])?j="a:swCell":T.isFrstRowAttr===1&&G===0&&ie(O,["a:nwCell"])&&(j="a:nwCell")),oe=sX(X["a:txBody"],X,void 0,void 0,void 0,n),De.next=51,b1e(X,O,j,n);case 51:ae=De.sent,le={text:oe},ae.rowSpan&&(le.rowSpan=ae.rowSpan),ae.colSpan&&(le.colSpan=ae.colSpan),ae.vMerge&&(le.vMerge=ae.vMerge),ae.hMerge&&(le.hMerge=ae.hMerge),ae.vAlign&&(le.vAlign=ae.vAlign),(ae.fontBold||z)&&(le.fontBold=ae.fontBold||z),(ae.fontColor||se)&&(le.fontColor=ae.fontColor||se),(ae.fillColor||_e||Q)&&(le.fillColor=ae.fillColor||_e||Q),ae.borders&&(le.borders=ae.borders),fe.push(le);case 63:re++,De.next=43;break;case 66:De.next=86;break;case 68:return ge=void 0,T.isFrstColAttr===1&&T.isLstRowAttr!==1?ge="a:firstCol":T.isBandColAttr===1&&T.isLstRowAttr!==1&&(ie(O,["a:band2V"])||ie(O,["a:band1V"]))&&(ge="a:band2V"),T.isLstColAttr===1&&T.isLstRowAttr!==1&&(ge="a:lastCol"),Se=sX(de["a:txBody"],de,void 0,void 0,void 0,n),De.next=74,b1e(de,O,ge,n);case 74:me=De.sent,ye={text:Se},me.rowSpan&&(ye.rowSpan=me.rowSpan),me.colSpan&&(ye.colSpan=me.colSpan),me.vMerge&&(ye.vMerge=me.vMerge),me.hMerge&&(ye.hMerge=me.hMerge),me.vAlign&&(ye.vAlign=me.vAlign),(me.fontBold||z)&&(ye.fontBold=me.fontBold||z),(me.fontColor||se)&&(ye.fontColor=me.fontColor||se),(me.fillColor||_e||Q)&&(ye.fillColor=me.fillColor||_e||Q),me.borders&&(ye.borders=me.borders),fe.push(ye);case 86:Z.push(fe);case 87:G++,De.next=33;break;case 90:return Ve=p.reduce(function(Ye,Je){return Ye+Je},0),Ve&&(Ve=_o(Ve)),De.abrupt("return",{type:"table",top:s,left:l,width:Ve||u,height:f,data:Z,order:r,borders:E,rowHeights:$,colWidths:p});case 93:case"end":return De.stop()}},t)})),S$.apply(this,arguments)}function zZe(t,e){return M$.apply(this,arguments)}function M$(){return M$=Pr(en.mark(function t(e,n){var r,a,i,o,s,l,c,u,f,d,h,p,v,g;return en.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(r=e.attrs.order,a=ie(e,["p:xfrm"]),i=FS(a,void 0,void 0),o=i.top,s=i.left,l=XS(a,void 0,void 0),c=l.width,u=l.height,f=e["a:graphic"]["a:graphicData"]["c:chart"].attrs["r:id"],(d=ie(n.slideResObj,[f,"target"]))||(d=ie(n.layoutResObj,[f,"target"])),d||(d=ie(n.masterResObj,[f,"target"])),d){y.next=10;break}return y.abrupt("return",null);case 10:return y.next=12,Oo(n.zip,d);case 12:if(h=y.sent,p=ie(h,["c:chartSpace","c:chart","c:plotArea"]),v=dZe(p,n)){y.next=17;break}return y.abrupt("return",null);case 17:return g={type:"chart",top:o,left:s,width:c,height:u,data:v.data,colors:v.colors,chartType:v.type,order:r},v.marker!==void 0&&(g.marker=v.marker),v.barDir!==void 0&&(g.barDir=v.barDir),v.holeSize!==void 0&&(g.holeSize=v.holeSize),v.grouping!==void 0&&(g.grouping=v.grouping),v.style!==void 0&&(g.style=v.style),y.abrupt("return",g);case 24:case"end":return y.stop()}},t)})),M$.apply(this,arguments)}function JZe(t,e){return _$.apply(this,arguments)}function _$(){return _$=Pr(en.mark(function t(e,n){var r,a,i,o,s,l,c,u,f,d,h,p,v,g,y,m,R;return en.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return r=e.attrs.order,a=ie(e,["p:xfrm"]),i=FS(a,void 0,void 0),o=i.left,s=i.top,l=XS(a,void 0,void 0),c=l.width,u=l.height,A.next=6,EZe(e,n);case 6:if(f=A.sent,d=ie(f.digramFileContent,["p:drawing","p:spTree","p:sp"]),h=[],p=[],!d){A.next=31;break}v=Array.isArray(d)?d:[d],g=Eo(v),A.prev=13,g.s();case 15:if((y=g.n()).done){A.next=23;break}return m=y.value,A.next=19,BMe(m,f,"diagramBg");case 19:(R=A.sent)&&h.push(R);case 21:A.next=15;break;case 23:A.next=28;break;case 25:A.prev=25,A.t0=A.catch(13),g.e(A.t0);case 28:return A.prev=28,g.f(),A.finish(28);case 31:return f.diagramContent&&f.diagramContent.data&&(p=FZe(f.diagramContent.data)),A.abrupt("return",{type:"diagram",left:o,top:s,width:c,height:u,elements:h,textList:p,order:r});case 33:case"end":return A.stop()}},t,null,[[13,25,28,31]])})),_$.apply(this,arguments)}const _i=" ";function jZe(t){let e="";Array.isArray(t)||(t=[t]);for(let n=0;n<t.length;n++){const r=t[n];if(r.type===Nt.CLOSE_PATH)e+="z";else if(r.type===Nt.HORIZ_LINE_TO)e+=(r.relative?"h":"H")+r.x;else if(r.type===Nt.VERT_LINE_TO)e+=(r.relative?"v":"V")+r.y;else if(r.type===Nt.MOVE_TO)e+=(r.relative?"m":"M")+r.x+_i+r.y;else if(r.type===Nt.LINE_TO)e+=(r.relative?"l":"L")+r.x+_i+r.y;else if(r.type===Nt.CURVE_TO)e+=(r.relative?"c":"C")+r.x1+_i+r.y1+_i+r.x2+_i+r.y2+_i+r.x+_i+r.y;else if(r.type===Nt.SMOOTH_CURVE_TO)e+=(r.relative?"s":"S")+r.x2+_i+r.y2+_i+r.x+_i+r.y;else if(r.type===Nt.QUAD_TO)e+=(r.relative?"q":"Q")+r.x1+_i+r.y1+_i+r.x+_i+r.y;else if(r.type===Nt.SMOOTH_QUAD_TO)e+=(r.relative?"t":"T")+r.x+_i+r.y;else if(r.type===Nt.ARC)e+=(r.relative?"a":"A")+r.rX+_i+r.rY+_i+r.xRot+_i+ +r.lArcFlag+_i+ +r.sweepFlag+_i+r.x+_i+r.y;else throw new Error(`Unexpected command type "${r==null?void 0:r.type}" at index ${n}.`)}return e}function w$([t,e],n){return[t*Math.cos(n)-e*Math.sin(n),t*Math.sin(n)+e*Math.cos(n)]}function Zf(...t){for(let e=0;e<t.length;e++)if(typeof t[e]!="number")throw new Error(`assertNumbers arguments[${e}] is not a number. ${typeof t[e]} == typeof ${t[e]}`);return!0}const s1=Math.PI;function eq(t,e,n){t.lArcFlag=t.lArcFlag===0?0:1,t.sweepFlag=t.sweepFlag===0?0:1;let{rX:r,rY:a}=t;const{x:i,y:o}=t;r=Math.abs(t.rX),a=Math.abs(t.rY);const[s,l]=w$([(e-i)/2,(n-o)/2],-t.xRot/180*s1),c=Math.pow(s,2)/Math.pow(r,2)+Math.pow(l,2)/Math.pow(a,2);1<c&&(r*=Math.sqrt(c),a*=Math.sqrt(c)),t.rX=r,t.rY=a;const u=Math.pow(r,2)*Math.pow(l,2)+Math.pow(a,2)*Math.pow(s,2),f=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(a,2)-u)/u)),d=r*l/a*f,h=-a*s/r*f,p=w$([d,h],t.xRot/180*s1);t.cX=p[0]+(e+i)/2,t.cY=p[1]+(n+o)/2,t.phi1=Math.atan2((l-h)/a,(s-d)/r),t.phi2=Math.atan2((-l-h)/a,(-s-d)/r),t.sweepFlag===0&&t.phi2>t.phi1&&(t.phi2-=2*s1),t.sweepFlag===1&&t.phi2<t.phi1&&(t.phi2+=2*s1),t.phi1*=180/s1,t.phi2*=180/s1}function P1e(t,e,n){Zf(t,e,n);const r=t*t+e*e-n*n;if(0>r)return[];if(r===0)return[[t*n/(t*t+e*e),e*n/(t*t+e*e)]];const a=Math.sqrt(r);return[[(t*n+e*a)/(t*t+e*e),(e*n-t*a)/(t*t+e*e)],[(t*n-e*a)/(t*t+e*e),(e*n+t*a)/(t*t+e*e)]]}const Vp=Math.PI/180;function C1e(t,e,n){return(1-n)*t+n*e}function N1e(t,e,n,r){return t+Math.cos(r/180*s1)*e+Math.sin(r/180*s1)*n}function I1e(t,e,n,r){const i=e-t,o=n-e,s=r-n,l=3*i+3*s-6*o,c=(o-i)*6,u=3*i;return Math.abs(l)<1e-6?[-u/c]:qZe(c/l,u/l,1e-6)}function k1e(t,e,n,r,a){const i=1-a,o=i*i*i,s=3*i*i*a,l=3*i*a*a,c=a*a*a;return t*o+e*s+n*l+r*c}function qZe(t,e,n=1e-6){const r=t*t/4-e;if(r<-n)return[];if(r<=n)return[-t/2];const a=Math.sqrt(r);return[-(t/2)-a,-(t/2)+a]}function eQe(t,e,n){t.cX||eq(t,e,n);const r=Math.min(t.phi1,t.phi2),a=Math.max(t.phi1,t.phi2),i=a-r,o=Math.ceil(i/90),s=new Array(o);let l=e,c=n;for(let u=0;u<o;u++){const f=C1e(t.phi1,t.phi2,u/o),d=C1e(t.phi1,t.phi2,(u+1)/o),h=d-f,p=4/3*Math.tan(h*Vp/4),[v,g]=[Math.cos(f*Vp)-p*Math.sin(f*Vp),Math.sin(f*Vp)+p*Math.cos(f*Vp)],[y,m]=[Math.cos(d*Vp),Math.sin(d*Vp)],[R,A]=[y+p*Math.sin(d*Vp),m-p*Math.cos(d*Vp)],x={relative:t.relative,type:Nt.CURVE_TO},M=(S,w)=>{const[_,T]=w$([S*t.rX,w*t.rY],t.xRot);return[t.cX+_,t.cY+T]};[x.x1,x.y1]=M(v,g),[x.x2,x.y2]=M(R,A),[x.x,x.y]=M(y,m),t.relative&&(x.x1-=l,x.y1-=c,x.x2-=l,x.y2-=c,x.x-=l,x.y-=c),[l,c]=[x.x,x.y],s[u]=x}return s}function tQe(t=1e13){Zf(t);function e(n){return Math.round(n*t)/t}return function(r){return"x1"in r&&typeof r.x1<"u"&&(r.x1=e(r.x1)),"y1"in r&&typeof r.y1<"u"&&(r.y1=e(r.y1)),"x2"in r&&typeof r.x2<"u"&&(r.x2=e(r.x2)),"y2"in r&&typeof r.y2<"u"&&(r.y2=e(r.y2)),"x"in r&&typeof r.x<"u"&&(r.x=e(r.x)),"y"in r&&typeof r.y<"u"&&(r.y=e(r.y)),"rX"in r&&typeof r.rX<"u"&&(r.rX=e(r.rX)),"rY"in r&&typeof r.rY<"u"&&(r.rY=e(r.rY)),r}}function QMe(){return Qf((t,e,n)=>(t.relative&&(typeof t.x1<"u"&&(t.x1+=e),typeof t.y1<"u"&&(t.y1+=n),typeof t.x2<"u"&&(t.x2+=e),typeof t.y2<"u"&&(t.y2+=n),typeof t.x<"u"&&(t.x+=e),typeof t.y<"u"&&(t.y+=n),t.relative=!1),t))}function nQe(){return Qf((t,e,n)=>(t.relative||(typeof t.x1<"u"&&(t.x1-=e),typeof t.y1<"u"&&(t.y1-=n),typeof t.x2<"u"&&(t.x2-=e),typeof t.y2<"u"&&(t.y2-=n),typeof t.x<"u"&&(t.x-=e),typeof t.y<"u"&&(t.y-=n),t.relative=!0),t))}function rQe(t=!0,e=!0,n=!0){return Qf((r,a,i,o,s)=>{if(isNaN(o)&&!(r.type&Nt.MOVE_TO))throw new Error("path must start with moveto");return e&&r.type&Nt.HORIZ_LINE_TO&&(r.type=Nt.LINE_TO,r.y=r.relative?0:i),n&&r.type&Nt.VERT_LINE_TO&&(r.type=Nt.LINE_TO,r.x=r.relative?0:a),t&&r.type&Nt.CLOSE_PATH&&(r.type=Nt.LINE_TO,r.x=r.relative?o-a:o,r.y=r.relative?s-i:s),r.type&Nt.ARC&&(r.rX===0||r.rY===0)&&(r.type=Nt.LINE_TO,delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag),r})}function KMe(){let t=NaN,e=NaN,n=NaN,r=NaN;return Qf((a,i,o)=>(a.type&Nt.SMOOTH_CURVE_TO&&(a.type=Nt.CURVE_TO,t=isNaN(t)?i:t,e=isNaN(e)?o:e,a.x1=a.relative?i-t:2*i-t,a.y1=a.relative?o-e:2*o-e),a.type&Nt.CURVE_TO?(t=a.relative?i+a.x2:a.x2,e=a.relative?o+a.y2:a.y2):(t=NaN,e=NaN),a.type&Nt.SMOOTH_QUAD_TO&&(a.type=Nt.QUAD_TO,n=isNaN(n)?i:n,r=isNaN(r)?o:r,a.x1=a.relative?i-n:2*i-n,a.y1=a.relative?o-r:2*o-r),a.type&Nt.QUAD_TO?(n=a.relative?i+a.x1:a.x1,r=a.relative?o+a.y1:a.y1):(n=NaN,r=NaN),a))}function HMe(){let t=NaN,e=NaN;return Qf((n,r,a)=>{if(n.type&Nt.SMOOTH_QUAD_TO&&(n.type=Nt.QUAD_TO,t=isNaN(t)?r:t,e=isNaN(e)?a:e,n.x1=n.relative?r-t:2*r-t,n.y1=n.relative?a-e:2*a-e),n.type&Nt.QUAD_TO){t=n.relative?r+n.x1:n.x1,e=n.relative?a+n.y1:n.y1;const i=n.x1,o=n.y1;n.type=Nt.CURVE_TO,n.x1=((n.relative?0:r)+i*2)/3,n.y1=((n.relative?0:a)+o*2)/3,n.x2=(n.x+i*2)/3,n.y2=(n.y+o*2)/3}else t=NaN,e=NaN;return n})}function Qf(t){let e=0,n=0,r=NaN,a=NaN;return function(o){if(isNaN(r)&&!(o.type&Nt.MOVE_TO))throw new Error("path must start with moveto");const s=t(o,e,n,r,a);return o.type&Nt.CLOSE_PATH&&(e=r,n=a),"x"in o&&typeof o.x<"u"&&(e=o.relative?e+o.x:o.x),"y"in o&&typeof o.y<"u"&&(n=o.relative?n+o.y:o.y),o.type&Nt.MOVE_TO&&(r=e,a=n),s}}function aQe(t=0){Zf(t);let e=NaN,n=NaN,r=NaN,a=NaN;return Qf((i,o,s,l,c)=>{const u=Math.abs;let f=!1,d=0,h=0;if(i.type&Nt.SMOOTH_CURVE_TO&&(d=isNaN(e)?0:o-e,h=isNaN(n)?0:s-n),i.type&(Nt.CURVE_TO|Nt.SMOOTH_CURVE_TO)?(e=i.relative?o+i.x2:i.x2,n=i.relative?s+i.y2:i.y2):(e=NaN,n=NaN),i.type&Nt.SMOOTH_QUAD_TO?(r=isNaN(r)?o:2*o-r,a=isNaN(a)?s:2*s-a):i.type&Nt.QUAD_TO?(r=i.relative?o+i.x1:i.x1,a=i.relative?s+i.y1:i.y2):(r=NaN,a=NaN),i.type&Nt.LINE_COMMANDS||i.type&Nt.ARC&&(i.rX===0||i.rY===0||!i.lArcFlag)||i.type&Nt.CURVE_TO||i.type&Nt.SMOOTH_CURVE_TO||i.type&Nt.QUAD_TO||i.type&Nt.SMOOTH_QUAD_TO){const p=typeof i.x>"u"?0:i.relative?i.x:i.x-o,v=typeof i.y>"u"?0:i.relative?i.y:i.y-s;d=isNaN(r)?typeof i.x1>"u"?d:i.relative?i.x:i.x1-o:r-o,h=isNaN(a)?typeof i.y1>"u"?h:i.relative?i.y:i.y1-s:a-s;const g=typeof i.x2>"u"?0:i.relative?i.x:i.x2-o,y=typeof i.y2>"u"?0:i.relative?i.y:i.y2-s;u(p)<=t&&u(v)<=t&&u(d)<=t&&u(h)<=t&&u(g)<=t&&u(y)<=t&&(f=!0)}return i.type&Nt.CLOSE_PATH&&u(o-l)<=t&&u(s-c)<=t&&(f=!0),f?[]:i})}function sg(t,e,n,r,a,i){return Zf(t,e,n,r,a,i),Qf((o,s,l,c)=>{const u=o.x1,f=o.x2,d=o.relative&&!isNaN(c),h=typeof o.x<"u"?o.x:d?0:s,p=typeof o.y<"u"?o.y:d?0:l;o.type&Nt.HORIZ_LINE_TO&&e!==0&&(o.type=Nt.LINE_TO,o.y=o.relative?0:l),o.type&Nt.VERT_LINE_TO&&n!==0&&(o.type=Nt.LINE_TO,o.x=o.relative?0:s),typeof o.x<"u"&&(o.x=o.x*t+p*n+(d?0:a)),typeof o.y<"u"&&(o.y=h*e+o.y*r+(d?0:i)),typeof o.x1<"u"&&(o.x1=o.x1*t+o.y1*n+(d?0:a)),typeof o.y1<"u"&&(o.y1=u*e+o.y1*r+(d?0:i)),typeof o.x2<"u"&&(o.x2=o.x2*t+o.y2*n+(d?0:a)),typeof o.y2<"u"&&(o.y2=f*e+o.y2*r+(d?0:i));function v(y){return y*y}const g=t*r-e*n;if(typeof o.xRot<"u"&&(t!==1||e!==0||n!==0||r!==1))if(g===0)delete o.rX,delete o.rY,delete o.xRot,delete o.lArcFlag,delete o.sweepFlag,o.type=Nt.LINE_TO;else{const y=o.xRot*Math.PI/180,m=Math.sin(y),R=Math.cos(y),A=1/v(o.rX),x=1/v(o.rY),M=v(R)*A+v(m)*x,S=2*m*R*(A-x),w=v(m)*A+v(R)*x,_=M*r*r-S*e*r+w*e*e,T=S*(t*r+e*n)-2*(M*n*r+w*t*e),O=M*n*n-S*t*n+w*t*t,N=(Math.atan2(T,_-O)+Math.PI)%Math.PI/2,P=Math.sin(N),C=Math.cos(N);o.rX=Math.abs(g)/Math.sqrt(_*v(C)+T*P*C+O*v(P)),o.rY=Math.abs(g)/Math.sqrt(_*v(P)-T*P*C+O*v(C)),o.xRot=N*180/Math.PI}return typeof o.sweepFlag<"u"&&0>g&&(o.sweepFlag=+!o.sweepFlag),o})}function iQe(t,e=0,n=0){Zf(t,e,n);const r=Math.sin(t),a=Math.cos(t);return sg(a,r,-r,a,e-e*a+n*r,n-e*r-n*a)}function oQe(t,e=0){return Zf(t,e),sg(1,0,0,1,t,e)}function sQe(t,e=t){return Zf(t,e),sg(t,0,0,e,0,0)}function lQe(t){return Zf(t),sg(1,0,Math.atan(t),1,0,0)}function cQe(t){return Zf(t),sg(1,Math.atan(t),0,1,0,0)}function uQe(t=0){return Zf(t),sg(-1,0,0,1,t,0)}function fQe(t=0){return Zf(t),sg(1,0,0,-1,0,t)}function dQe(){return Qf((t,e,n)=>Nt.ARC===t.type?eQe(t,t.relative?0:e,t.relative?0:n):t)}function hQe(){return Qf((t,e,n)=>(t.relative&&(e=0,n=0),Nt.ARC===t.type&&eq(t,e,n),t))}function GMe(){return t=>({...t})}function pQe(){const t=GMe(),e=QMe(),n=HMe(),r=KMe(),a=Qf((i,o,s)=>{const l=r(n(e(t(i))));function c(f){f>a.maxX&&(a.maxX=f),f<a.minX&&(a.minX=f)}function u(f){f>a.maxY&&(a.maxY=f),f<a.minY&&(a.minY=f)}if(l.type&Nt.DRAWING_COMMANDS&&(c(o),u(s)),l.type&Nt.HORIZ_LINE_TO&&c(l.x),l.type&Nt.VERT_LINE_TO&&u(l.y),l.type&Nt.LINE_TO&&(c(l.x),u(l.y)),l.type&Nt.CURVE_TO){c(l.x),u(l.y);const f=I1e(o,l.x1,l.x2,l.x);for(const h of f)0<h&&1>h&&c(k1e(o,l.x1,l.x2,l.x,h));const d=I1e(s,l.y1,l.y2,l.y);for(const h of d)0<h&&1>h&&u(k1e(s,l.y1,l.y2,l.y,h))}if(l.type&Nt.ARC){c(l.x),u(l.y),eq(l,o,s);const f=l.xRot/180*Math.PI,d=Math.cos(f)*l.rX,h=Math.sin(f)*l.rX,p=-Math.sin(f)*l.rY,v=Math.cos(f)*l.rY,[g,y]=l.phi1<l.phi2?[l.phi1,l.phi2]:-180>l.phi2?[l.phi2+360,l.phi1+360]:[l.phi2,l.phi1],m=([x,M])=>{const w=Math.atan2(M,x)*180/Math.PI;return w<g?w+360:w},R=P1e(p,-d,0).map(m);for(const x of R)x>g&&x<y&&c(N1e(l.cX,d,p,x));const A=P1e(v,-h,0).map(m);for(const x of A)x>g&&x<y&&u(N1e(l.cY,h,v,x))}return i});return a.minX=1/0,a.maxX=-1/0,a.minY=1/0,a.maxY=-1/0,a}const ra={ROUND:tQe,TO_ABS:QMe,TO_REL:nQe,NORMALIZE_HVZ:rQe,NORMALIZE_ST:KMe,QT_TO_C:HMe,INFO:Qf,SANITIZE:aQe,MATRIX:sg,ROTATE:iQe,TRANSLATE:oQe,SCALE:sQe,SKEW_X:lQe,SKEW_Y:cQe,X_AXIS_SYMMETRY:uQe,Y_AXIS_SYMMETRY:fQe,A_TO_C:dQe,ANNOTATE_ARCS:hQe,CLONE:GMe,CALCULATE_BOUNDS:pQe};class $Me{round(e){return this.transform(ra.ROUND(e))}toAbs(){return this.transform(ra.TO_ABS())}toRel(){return this.transform(ra.TO_REL())}normalizeHVZ(e,n,r){return this.transform(ra.NORMALIZE_HVZ(e,n,r))}normalizeST(){return this.transform(ra.NORMALIZE_ST())}qtToC(){return this.transform(ra.QT_TO_C())}aToC(){return this.transform(ra.A_TO_C())}sanitize(e){return this.transform(ra.SANITIZE(e))}translate(e,n){return this.transform(ra.TRANSLATE(e,n))}scale(e,n){return this.transform(ra.SCALE(e,n))}rotate(e,n,r){return this.transform(ra.ROTATE(e,n,r))}matrix(e,n,r,a,i,o){return this.transform(ra.MATRIX(e,n,r,a,i,o))}skewX(e){return this.transform(ra.SKEW_X(e))}skewY(e){return this.transform(ra.SKEW_Y(e))}xSymmetry(e){return this.transform(ra.X_AXIS_SYMMETRY(e))}ySymmetry(e){return this.transform(ra.Y_AXIS_SYMMETRY(e))}annotateArcs(){return this.transform(ra.ANNOTATE_ARCS())}}const vQe=t=>t===" "||t===" "||t==="\r"||t===`-`,E1e=t=>48<=t.charCodeAt(0)&&t.charCodeAt(0)<=57;class gQe extends $Me{constructor(){super();Ja(this,"curNumber","");Ja(this,"curCommandType",-1);Ja(this,"curCommandRelative",!1);Ja(this,"canParseCommandOrComma",!0);Ja(this,"curNumberHasExp",!1);Ja(this,"curNumberHasExpDigits",!1);Ja(this,"curNumberHasDecimal",!1);Ja(this,"curArgs",[])}finish(n=[]){if(this.parse(" ",n),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return n}parse(n,r=[]){const a=i=>{r.push(i),this.curArgs.length=0,this.canParseCommandOrComma=!0};for(let i=0;i<n.length;i++){const o=n[i],s=this.curCommandType===Nt.ARC&&(this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber.length===1&&(this.curNumber==="0"||this.curNumber==="1"),l=E1e(o)&&(this.curNumber==="0"&&o==="0"||s);if(E1e(o)&&!l){this.curNumber+=o,this.curNumberHasExpDigits=this.curNumberHasExp;continue}if(o==="e"||o==="E"){this.curNumber+=o,this.curNumberHasExp=!0;continue}if((o==="-"||o==="+")&&this.curNumberHasExp&&!this.curNumberHasExpDigits){this.curNumber+=o;continue}if(o==="."&&!this.curNumberHasExp&&!this.curNumberHasDecimal&&!s){this.curNumber+=o,this.curNumberHasDecimal=!0;continue}if(this.curNumber&&this.curCommandType!==-1){const c=Number(this.curNumber);if(isNaN(c))throw new SyntaxError(`Invalid number ending at ${i}`);if(this.curCommandType===Nt.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>c)throw new SyntaxError(`Expected positive number, got "${c}" at index "${i}"`)}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError(`Expected a flag, got "${this.curNumber}" at index "${i}"`)}this.curArgs.push(c),this.curArgs.length===mQe[this.curCommandType]&&(Nt.HORIZ_LINE_TO===this.curCommandType?a({type:Nt.HORIZ_LINE_TO,relative:this.curCommandRelative,x:c}):Nt.VERT_LINE_TO===this.curCommandType?a({type:Nt.VERT_LINE_TO,relative:this.curCommandRelative,y:c}):this.curCommandType===Nt.MOVE_TO||this.curCommandType===Nt.LINE_TO||this.curCommandType===Nt.SMOOTH_QUAD_TO?(a({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Nt.MOVE_TO===this.curCommandType&&(this.curCommandType=Nt.LINE_TO)):this.curCommandType===Nt.CURVE_TO?a({type:Nt.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===Nt.SMOOTH_CURVE_TO?a({type:Nt.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Nt.QUAD_TO?a({type:Nt.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Nt.ARC&&a({type:Nt.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!vQe(o)){if(o===","&&this.canParseCommandOrComma){this.canParseCommandOrComma=!1;continue}if(o==="+"||o==="-"||o==="."){this.curNumber=o,this.curNumberHasDecimal=o===".";continue}if(l){this.curNumber=o,this.curNumberHasDecimal=!1;continue}if(this.curArgs.length!==0)throw new SyntaxError(`Unterminated command at index ${i}.`);if(!this.canParseCommandOrComma)throw new SyntaxError(`Unexpected character "${o}" at index ${i}. Command cannot follow comma`);if(this.canParseCommandOrComma=!1,o==="z"||o==="Z"){r.push({type:Nt.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1;continue}else if(o==="h"||o==="H")this.curCommandType=Nt.HORIZ_LINE_TO,this.curCommandRelative=o==="h";else if(o==="v"||o==="V")this.curCommandType=Nt.VERT_LINE_TO,this.curCommandRelative=o==="v";else if(o==="m"||o==="M")this.curCommandType=Nt.MOVE_TO,this.curCommandRelative=o==="m";else if(o==="l"||o==="L")this.curCommandType=Nt.LINE_TO,this.curCommandRelative=o==="l";else if(o==="c"||o==="C")this.curCommandType=Nt.CURVE_TO,this.curCommandRelative=o==="c";else if(o==="s"||o==="S")this.curCommandType=Nt.SMOOTH_CURVE_TO,this.curCommandRelative=o==="s";else if(o==="q"||o==="Q")this.curCommandType=Nt.QUAD_TO,this.curCommandRelative=o==="q";else if(o==="t"||o==="T")this.curCommandType=Nt.SMOOTH_QUAD_TO,this.curCommandRelative=o==="t";else if(o==="a"||o==="A")this.curCommandType=Nt.ARC,this.curCommandRelative=o==="a";else throw new SyntaxError(`Unexpected character "${o}" at index ${i}.`)}}return r}transform(n){return Object.create(this,{parse:{value(a,i=[]){const o=Object.getPrototypeOf(this).parse.call(this,a);for(const s of o){const l=n(s);Array.isArray(l)?i.push(...l):i.push(l)}return i}}})}}const ca=class ca extends $Me{constructor(n){super();Ja(this,"commands");typeof n=="string"?this.commands=ca.parse(n):this.commands=n}encode(){return ca.encode(this.commands)}getBounds(){const n=ra.CALCULATE_BOUNDS();return this.transform(n),n}transform(n){const r=[];for(const a of this.commands){const i=n(a);Array.isArray(i)?r.push(...i):r.push(i)}return this.commands=r,this}static encode(n){return jZe(n)}static parse(n){const r=new gQe,a=[];return r.parse(n,a),r.finish(a),a}};Ja(ca,"CLOSE_PATH",1),Ja(ca,"MOVE_TO",2),Ja(ca,"HORIZ_LINE_TO",4),Ja(ca,"VERT_LINE_TO",8),Ja(ca,"LINE_TO",16),Ja(ca,"CURVE_TO",32),Ja(ca,"SMOOTH_CURVE_TO",64),Ja(ca,"QUAD_TO",128),Ja(ca,"SMOOTH_QUAD_TO",256),Ja(ca,"ARC",512),Ja(ca,"LINE_COMMANDS",ca.LINE_TO|ca.HORIZ_LINE_TO|ca.VERT_LINE_TO),Ja(ca,"DRAWING_COMMANDS",ca.HORIZ_LINE_TO|ca.VERT_LINE_TO|ca.LINE_TO|ca.CURVE_TO|ca.SMOOTH_CURVE_TO|ca.QUAD_TO|ca.SMOOTH_QUAD_TO|ca.ARC);let Nt=ca;const mQe={[Nt.MOVE_TO]:2,[Nt.LINE_TO]:2,[Nt.HORIZ_LINE_TO]:1,[Nt.VERT_LINE_TO]:1,[Nt.CLOSE_PATH]:0,[Nt.QUAD_TO]:4,[Nt.SMOOTH_QUAD_TO]:2,[Nt.CURVE_TO]:6,[Nt.SMOOTH_CURVE_TO]:4,[Nt.ARC]:7},F1e=t=>{const e=new Nt(t).transform(ra.TO_ABS()).transform(ra.NORMALIZE_HVZ()).transform(ra.NORMALIZE_ST()).transform(ra.QT_TO_C()).transform(ra.A_TO_C()),n=[];for(const r of e.commands)r.type===Nt.MOVE_TO?n.push({x:r.x,y:r.y,type:"M",relative:!1}):r.type===Nt.LINE_TO?n.push({x:r.x,y:r.y,type:"L",relative:!1}):r.type===Nt.CURVE_TO?n.push({x:r.x,y:r.y,type:"C",relative:!1,curve:{type:"cubic",x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2}}):r.type===Nt.CLOSE_PATH&&n.push({close:!0,type:"Z"});return n},X1e=t=>{try{const e=new Nt(t).transform(ra.TO_ABS()).transform(ra.NORMALIZE_HVZ()).transform(ra.NORMALIZE_ST()).transform(ra.QT_TO_C()).transform(ra.A_TO_C()),n=[],r=[];for(const a of e.commands)"x"in a&&n.push(a.x),"y"in a&&r.push(a.y);return{minX:Math.min(...n),minY:Math.min(...r),maxX:Math.max(...n),maxY:Math.max(...r)}}catch{return{minX:0,minY:0,maxX:0,maxY:0}}},ZQ={mid:"middle",down:"bottom",up:"top"},D1e=(t,e)=>{if(!t||!e)return .5625;let n=e/t;return gZ(n,.625)?n=.625:gZ(n,.75)?n=.75:gZ(n,.5625)&&(n=.5625),n},QQ=(t,e)=>t.replace(/font-size:\s*([\d.]+)pt/g,(n,r)=>`font-size: ${Math.floor(parseFloat(r)*e)}px`).replace(/ /g," ").replace(/style="([^"]*)"/g,(n,r)=>{const a=r.match(/background:\s*(linear-gradient\([^)]+\))/);if(!a)return n;const i=a[1].match(/#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgba?\([^)]+\)/g);if(!i||!i.length)return n;const o=i.map(u=>Ct(u)),s=o.reduce((u,f)=>{const d=f.toRgb();return{r:u.r+d.r/o.length,g:u.g+d.g/o.length,b:u.b+d.b/o.length}},{r:0,g:0,b:0}),l=Ct(s).toHexString();let c=r.replace(/background:\s*linear-gradient\([^)]+\)\s*;?/g,"").replace(/background-clip:\s*text\s*;?/g,"").replace(/color:\s*transparent\s*;?/g,"");return c=`color: ${l}; ${c}`.replace(/;\s*;/g,";").replace(/;\s*$/,";"),`style="${c}"`}),yQe=(t,e=18)=>{const n=/font-size\s*:\s*(\d+(?:\.\d+)?)\s*pt/gi,r=[e];let a;for(;(a=n.exec(t))!==null;){const i=parseFloat(a[1]);i>0&&r.push(i)}return Math.max(...r)},KQ=(t,e)=>{const n=/<(div|p|li)(?![a-z0-9])[^>]*>/gi,r=[],a=[];let i=0,o,s=0;for(;(o=n.exec(t))!==null;){const u=o[0];i++;const f=/\bstyle\s*=\s*(['"])(.*?)\1/i,d=u.match(f);let h="";d&&d[2]&&(h=d[2]);const p=T=>{if(!h)return null;const O=new RegExp(`${T}\\s*:\\s*([^;]+)`,"i"),N=h.match(O);return N?N[1].trim():null},v=p("margin-top"),g=p("margin-bottom"),y=p("line-height"),m=o.index,R=o[1];let A=t.indexOf("</"+R+">",m);A===-1&&(A=m+u.length);const x=t.substring(m,A),M=yQe(x,18);let S=1;y&&(y.indexOf("pt")!==-1?S=parseFloat(y.replace("pt",""))/M:S=parseFloat(y)),r.push(S);const w=s===0,_=o.index+u.length>=t.lastIndexOf("</"+R+">");if(v&&!w){let T=0;v.indexOf("pt")!==-1?T=parseFloat(v.replace("pt","")):v.indexOf("em")!==-1&&(T=parseFloat(v.replace("em",""))*M),T>0&&a.push(T)}if(g&&!_){let T=0;g.indexOf("pt")!==-1?T=parseFloat(g.replace("pt","")):g.indexOf("em")!==-1&&(T=parseFloat(g.replace("em",""))*M),T>0&&a.push(T)}s++}let l=1;r.length&&(l=+(r.reduce((u,f)=>u+f,0)/i).toFixed(2));let c=0;return a.length&&i>1&&(c=a.reduce((u,f)=>u+f,0)/(i-1)),{lineHeight:l,margin:c?+(c*e).toFixed(1):null}},zMe=()=>{const t=It(),{theme:e,viewportRatio:n,viewportSize:r}=nt(t),{addHistorySnapshot:a}=Pn(),{addSlidesFromData:i}=d8(),{isEmptySlide:o}=ig(),s=we(!1),l=(p,v=!1)=>{const g=p[0],y=new FileReader;y.addEventListener("load",()=>{try{const{slides:m,theme:R,width:A,height:x}=JSON.parse(y.result),M=D1e(A,x);v?(t.updateSlideIndex(0),t.setSlides(m,R||{}),M!==n.value&&t.setViewportRatio(M),A&&A!==r&&t.setViewportSize(A),a()):o.value?(t.setSlides(m,R||{}),M!==n.value&&t.setViewportRatio(M),A&&A!==r&&t.setViewportSize(A),a()):i(m)}catch{Dn.error("无法正确读取 / 解析该文件")}}),y.readAsText(g)},c=(p,v)=>{const{start:g,end:y}=p,m=v*Math.PI/180,R=(g[0]+y[0])/2,A=(g[1]+y[1])/2,x=g[0]-R,M=g[1]-A,S=y[0]-R,w=y[1]-A,_=Math.cos(m),T=Math.sin(m),O=x*_-M*T,N=x*T+M*_,P=S*_-w*T,C=S*T+w*_,E=O+R,F=N+A,Y=P+R,Q=C+A,K=Math.min(g[0],y[0]),ne=Math.min(g[1],y[1]),Z=Math.min(E,Y),$=Math.min(F,Q),G=E-Z,ee=F-$,ce=Y-Z,B=Q-$,xe=[G,ee],_e=[ce,B],se=[Z-K,$-ne];return{start:xe,end:_e,offset:se}},u=(p,v)=>{let g=[0,0],y=[0,0];!p.isFlipV&&!p.isFlipH?(g=[0,0],y=[p.width,p.height]):p.isFlipV&&p.isFlipH?(g=[p.width,p.height],y=[0,0]):p.isFlipV&&!p.isFlipH?(g=[0,p.height],y=[p.width,0]):(g=[p.width,0],y=[0,p.height]);const m={type:"line",id:Gn(10),width:+((p.borderWidth||1)*v).toFixed(2),left:p.left,top:p.top,start:g,end:y,style:p.borderType,color:p.borderColor,points:["",/straightConnector/.test(p.shapType)?"arrow":""]};if(p.rotate){const{start:R,end:A,offset:x}=c(m,p.rotate);m.start=R,m.end=A,m.left=m.left+x[0],m.top=m.top+x[1]}if(/bentConnector/.test(p.shapType)&&(m.broken2=[Math.abs(m.start[0]-m.end[0])/2,Math.abs(m.start[1]-m.end[1])/2]),/curvedConnector/.test(p.shapType)){const R=[Math.abs(m.start[0]-m.end[0])/2,Math.abs(m.start[1]-m.end[1])/2];m.cubic=[R,R]}return m},f=(p,v)=>{const g=Math.min(...p.map(M=>M.left)),y=Math.max(...p.map(M=>M.left+M.width)),m=Math.min(...p.map(M=>M.top)),R=Math.max(...p.map(M=>M.top+M.height)),A=(g+y)/2,x=(m+R)/2;return p.map(M=>{const S={...M};return v==="y"&&(S.left=2*A-M.left-M.width),v==="x"&&(S.top=2*x-M.top-M.height),S})},d=(p,v,g,y,m,R,A,x,M,S)=>{const w=M*(Math.PI/180),_=Math.cos(w),T=Math.sin(w),O=p+g/2,N=v+y/2,P=[{ox:m,oy:R},{ox:m+A,oy:R},{ox:m+A,oy:R+x},{ox:m,oy:R+x}];let C=1/0,E=1/0;for(const Y of P){const Q=Y.ox-g/2,K=Y.oy-y/2,ne=Q*_+K*T,Z=-Q*T+K*_,$=O+ne,G=N+Z;C=Math.min(C,$),E=Math.min(E,G)}const F=(S+M)%360;return{x:C,y:E,globalRotation:F}};return{importJSON:l,importPPTXFile:(p,v)=>{const g={cover:!1,fixedViewport:!1},{cover:y,fixedViewport:m}={...g,...v},R=p[0];if(!R)return;s.value=!0;const A=[];for(const M of Tj)A.push(...M.children);const x=new FileReader;x.onload=async M=>{let S=null;try{S=await XZe(M.target.result,{imageMode:"base64",videoMode:"blob",audioMode:"blob"})}catch{s.value=!1,Dn.error("无法正确读取 / 解析该文件");return}let w=96/72;const _=S.size.width,T=S.size.height,O=D1e(_,T);m?w=1e3/_:t.setViewportSize(_*w),t.setTheme({themeColors:S.themeColors});const N=[];for(const P of S.slides){const{type:C,value:E}=P.fill;let F;C==="image"?F={type:"image",image:{src:E.base64,size:"cover"}}:C==="gradient"?F={type:"gradient",gradient:{type:E.path==="line"?"linear":"radial",colors:E.colors.map(K=>({...K,pos:parseInt(K.pos)})),rotate:E.rot}}:C==="pattern"?F={type:"solid",color:"#fff"}:F={type:"solid",color:E||"#fff"};const Y={id:Gn(10),elements:[],background:F,remark:P.note||""},Q=K=>{var Z,$,G,ee,ce;const ne=K.sort((B,xe)=>B.order-xe.order);for(const B of ne){const xe=B.width||1,_e=B.height||1,se=B.left,z=B.top;if(B.width=B.width*w,B.height=B.height*w,B.left=B.left*w,B.top=B.top*w,B.type==="text")if(B.autoFit&&B.autoFit.type==="text"){const de=w*(B.autoFit.fontScale||100)/100,fe=KQ(B.content,de),re={type:"shape",id:Gn(10),width:B.width,height:B.height,left:B.left,top:B.top,rotate:B.rotate,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:((Z=B.fill)==null?void 0:Z.type)==="color"?B.fill.value:"",fixedRatio:!1,outline:{color:B.borderColor,width:+(B.borderWidth*w).toFixed(2),style:B.borderType},text:{content:QQ(B.content,de),defaultFontName:e.value.fontName,defaultColor:e.value.fontColor,align:ZQ[B.vAlign]||"middle",lineHeight:1}};B.link&&(re.link={type:"web",target:B.link}),fe.lineHeight&&(re.text.lineHeight=fe.lineHeight),fe.margin&&(re.text.paragraphSpace=fe.margin),Y.elements.push(re)}else{const de=KQ(B.content,w),fe={type:"text",id:Gn(10),width:B.width,height:B.height,left:B.left,top:B.top,rotate:B.rotate,defaultFontName:e.value.fontName,defaultColor:e.value.fontColor,content:QQ(B.content,w),lineHeight:1,outline:{color:B.borderColor,width:+(B.borderWidth*w).toFixed(2),style:B.borderType},fill:(($=B.fill)==null?void 0:$.type)==="color"?B.fill.value:"",vertical:B.isVertical};B.shadow&&(fe.shadow={h:B.shadow.h*w,v:B.shadow.v*w,blur:B.shadow.blur*w,color:B.shadow.color}),B.link&&(fe.link={type:"web",target:B.link}),de.lineHeight&&(fe.lineHeight=de.lineHeight),de.margin&&(fe.paragraphSpace=de.margin),Y.elements.push(fe)}else if(B.type==="image"){const de={type:"image",id:Gn(10),src:B.base64,width:B.width,height:B.height,left:B.left,top:B.top,fixedRatio:!0,rotate:B.rotate,flipH:B.isFlipH,flipV:B.isFlipV};B.borderWidth&&(de.outline={color:B.borderColor,width:+(B.borderWidth*w).toFixed(2),style:B.borderType});const fe=["rect","snip1Rect","snip2DiagRect","roundRect","ellipse","triangle","rtTriangle","diamond","pentagon","hexagon","heptagon","octagon","chevron","homePlate","rightArrow","parallelogram","trapezoid"];let re=B.geom||"rect";re.indexOf("custom:")!==-1&&(re=re.replace("custom:","")),fe.includes(re)||(re="rect"),B.rect?de.clip={shape:re,range:[[B.rect.l||0,B.rect.t||0],[100-(B.rect.r||0),100-(B.rect.b||0)]]}:B.geom&&(de.clip={shape:re,range:[[0,0],[100,100]]}),B.link&&(de.link={type:"web",target:B.link}),Y.elements.push(de)}else if(B.type==="math")Y.elements.push({type:"image",id:Gn(10),src:B.picBase64,width:B.width,height:B.height,left:B.left,top:B.top,fixedRatio:!0,rotate:0});else if(B.type==="audio"&&B.blob)Y.elements.push({type:"audio",id:Gn(10),src:B.blob,width:B.width,height:B.height,left:B.left,top:B.top,rotate:0,fixedRatio:!1,color:e.value.themeColors[0],loop:!1,autoplay:!1});else if(B.type==="video"&&B.blob)Y.elements.push({type:"video",id:Gn(10),src:B.blob,width:B.width,height:B.height,left:B.left,top:B.top,rotate:0,autoplay:!1});else if(B.type==="shape")if(B.shapType==="line"||/straightConnector/.test(B.shapType)||/bentConnector/.test(B.shapType)||/curvedConnector/.test(B.shapType)){const de=u(B,w);Y.elements.push(de)}else{const de=A.find(ae=>ae.pptxShapeType===B.shapType),fe=((G=B.fill)==null?void 0:G.type)==="gradient"?{type:B.fill.value.path==="line"?"linear":"radial",colors:B.fill.value.colors.map(ae=>({...ae,pos:parseInt(ae.pos)})),rotate:B.fill.value.rot}:void 0,re=((ee=B.fill)==null?void 0:ee.type)==="image"?B.fill.value.base64:void 0,X=((ce=B.fill)==null?void 0:ce.type)==="color"?B.fill.value:"",j=KQ(B.content,w),oe={type:"shape",id:Gn(10),width:B.width,height:B.height,left:B.left,top:B.top,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:X,gradient:fe,pattern:re,fixedRatio:!1,rotate:B.rotate,outline:{color:B.borderColor,width:+(B.borderWidth*w).toFixed(2),style:B.borderType},text:{content:QQ(B.content,w),defaultFontName:e.value.fontName,defaultColor:e.value.fontColor,align:ZQ[B.vAlign]||"middle"},flipH:B.isFlipH,flipV:B.isFlipV};if(B.link&&(oe.link={type:"web",target:B.link}),j.lineHeight&&(oe.text.lineHeight=j.lineHeight),j.margin&&(oe.text.paragraphSpace=j.margin),B.shadow&&(oe.shadow={h:B.shadow.h*w,v:B.shadow.v*w,blur:B.shadow.blur*w,color:B.shadow.color}),de){if(oe.path=de.path,oe.viewBox=de.viewBox,de.pathFormula){oe.pathFormula=de.pathFormula,oe.viewBox=[B.width,B.height];const ae=by[de.pathFormula];if("editable"in ae&&ae.editable){let le=ae.defaultValue;if(B.keypoints){let ge=0;if(B.shapType==="roundRect"&&(ge=(B.keypoints.adj===void 0?.334:B.keypoints.adj)*.5),B.shapType==="snip1Rect"&&(ge=(B.keypoints.adj===void 0?.334:B.keypoints.adj)*.5),B.shapType==="snip2SameRect"&&(ge=(B.keypoints.adj1===void 0?.334:B.keypoints.adj1)*.5),B.shapType==="snip2DiagRect"&&(ge=(B.keypoints.adj2===void 0?.334:B.keypoints.adj2)*.5),B.shapType==="snipRoundRect"){const Se=B.keypoints.adj1===void 0?.334:B.keypoints.adj1,me=B.keypoints.adj2===void 0?.334:B.keypoints.adj2;ge=(Se+me)/2*.5}if(B.shapType==="round1Rect"&&(ge=(B.keypoints.adj===void 0?.334:B.keypoints.adj)*.5),B.shapType==="round2SameRect"&&(ge=(B.keypoints.adj1===void 0?.334:B.keypoints.adj1)*.5),B.shapType==="round2DiagRect"&&(ge=(B.keypoints.adj1===void 0?.334:B.keypoints.adj1)*.5),B.shapType==="triangle"&&(ge=(B.keypoints.adj===void 0?1:B.keypoints.adj)*.5),B.shapType==="trapezoid"&&(ge=(B.keypoints.adj===void 0?.5:B.keypoints.adj)*.5),B.shapType==="frame"&&(ge=(B.keypoints.adj1===void 0?.25:B.keypoints.adj1)*.5),B.shapType==="corner"){const Se=B.keypoints.adj1===void 0?1:B.keypoints.adj1,me=B.keypoints.adj2===void 0?1:B.keypoints.adj2;ge=(Se+me)/2*.5}B.shapType==="diagStripe"&&(ge=(B.keypoints.adj===void 0?1:B.keypoints.adj)*.5),B.shapType==="donut"&&(ge=(B.keypoints.adj===void 0?.5:B.keypoints.adj)*.5),B.shapType==="plus"&&(ge=1-(B.keypoints.adj===void 0?.5:B.keypoints.adj)),ae.range&&ge<ae.range[0][0]&&(ge=ae.range[0][0]),ae.range&&ge>ae.range[0][1]&&(ge=ae.range[0][1]),le=[ge]}oe.path=ae.formula(B.width,B.height,le),oe.keypoints=le}else oe.path=ae.formula(B.width,B.height)}}else if(B.path&&B.path.indexOf("NaN")===-1){const{maxX:ae,maxY:le}=X1e(B.path);oe.path=B.path,ae/le>xe/_e?oe.viewBox=[ae,ae*_e/xe]:oe.viewBox=[le*xe/_e,le]}if(B.shapType==="custom"){B.path.indexOf("NaN")!==-1?(oe.width===0&&(oe.width=.1),oe.height===0&&(oe.height=.1),oe.path=B.path.replace(/NaN/g,"0")):oe.path=B.path;const{maxX:ae,maxY:le}=X1e(oe.path);ae/le>xe/_e?oe.viewBox=[ae,ae*_e/xe]:oe.viewBox=[le*xe/_e,le]}oe.path&&oe.viewBox[0]&&oe.viewBox[1]&&Y.elements.push(oe)}else if(B.type==="table"){const de=B.data.length,fe=B.data[0].length,re={fontname:e.value.fontName,color:e.value.fontColor},X=[];for(let ye=0;ye<de;ye++){const Ve=[];for(let De=0;De<fe;De++){const Ye=B.data[ye][De];let Je=document.createElement("div");Je.innerHTML=Ye.text;const wt=Je.querySelector("p"),Lt=(wt==null?void 0:wt.style.textAlign)||"left",Ne=Je.querySelector("span"),Te=Ne!=null&&Ne.style.fontSize?(parseInt(Ne==null?void 0:Ne.style.fontSize)*w).toFixed(1)+"px":"",ze=(Ne==null?void 0:Ne.style.fontFamily)||"",He=(Ne==null?void 0:Ne.style.color)||Ye.fontColor;Ve.push({id:Gn(10),colspan:Ye.colSpan||1,rowspan:Ye.rowSpan||1,text:Je.innerText,style:{...re,vAlign:ZQ[Ye.vAlign]||"middle",align:["left","right","center"].includes(Lt)?Lt:"left",fontsize:Te,fontname:ze,color:He,bold:Ye.fontBold,backcolor:Ye.fillColor}}),Je=null}X.push(Ve)}const j=B.colWidths.reduce((ye,Ve)=>ye+Ve,0),oe=B.colWidths.map(ye=>ye/j),ae=B.data[0][0],le=ae.borders.top||ae.borders.bottom||B.borders.top||B.borders.bottom||ae.borders.left||ae.borders.right||B.borders.left||B.borders.right,ge=(le==null?void 0:le.borderWidth)||0,Se=(le==null?void 0:le.borderType)||"solid",me=(le==null?void 0:le.borderColor)||"#eeece1";Y.elements.push({type:"table",id:Gn(10),width:B.width,height:B.height,left:B.left,top:B.top,colWidths:oe,rotate:0,data:X,outline:{width:+(ge*w||2).toFixed(2),style:Se,color:me},cellMinHeight:B.rowHeights[0]?B.rowHeights[0]*w:36})}else if(B.type==="chart"){let de,fe,re;if(B.chartType==="scatterChart"||B.chartType==="bubbleChart")de=B.data[0].map((oe,ae)=>`坐标${ae+1}`),fe=["X","Y"],re=B.data;else{const oe=B.data;de=Object.values(oe[0].xlabels),fe=oe.map(ae=>ae.key),re=oe.map(ae=>ae.values.map(le=>le.y))}const X={};let j="bar";switch(B.chartType){case"barChart":case"bar3DChart":j="bar",B.barDir==="bar"&&(j="column"),(B.grouping==="stacked"||B.grouping==="percentStacked")&&(X.stack=!0);break;case"lineChart":case"line3DChart":(B.grouping==="stacked"||B.grouping==="percentStacked")&&(X.stack=!0),j="line";break;case"areaChart":case"area3DChart":(B.grouping==="stacked"||B.grouping==="percentStacked")&&(X.stack=!0),j="area";break;case"scatterChart":case"bubbleChart":j="scatter";break;case"pieChart":case"pie3DChart":j="pie";break;case"radarChart":j="radar";break;case"doughnutChart":j="ring";break}Y.elements.push({type:"chart",id:Gn(10),chartType:j,width:B.width,height:B.height,left:B.left,top:B.top,rotate:0,themeColors:B.colors.length?B.colors:e.value.themeColors,textColor:e.value.fontColor,data:{labels:de,legends:fe,series:re},options:X})}else if(B.type==="group"){let de=B.elements.map(fe=>{let re=fe.left+se,X=fe.top+z,j=0;if("rotate"in fe&&(j=fe.rotate),B.rotate){const{x:ae,y:le,globalRotation:ge}=d(se,z,xe,_e,fe.left,fe.top,fe.width,fe.height,B.rotate,j);re=ae,X=le,j=ge}const oe={...fe,left:re,top:X};return B.isFlipH&&"isFlipH"in oe&&(oe.isFlipH=!0),B.isFlipV&&"isFlipV"in oe&&(oe.isFlipV=!0),"rotate"in oe&&B.rotate&&(oe.rotate=j),oe});B.isFlipH&&(de=f(de,"y")),B.isFlipV&&(de=f(de,"x")),Q(de)}else if(B.type==="diagram"){const de=B.elements.map(fe=>({...fe,left:fe.left+se,top:fe.top+z}));Q(de)}}};Q([...P.elements,...P.layoutElements]),N.push(Y)}y?(t.updateSlideIndex(0),t.setSlides(N),O!==n.value&&t.setViewportRatio(O),a()):o.value?(t.setSlides(N),O!==n.value&&t.setViewportRatio(O),a()):i(N),s.value=!1},x.readAsArrayBuffer(R)},exporting:s}},JMe=()=>{const{createImageElement:t,createVideoElement:e,createAudioElement:n}=M0(),{importPPTXFile:r}=zMe();return{pasteDataTransfer:i=>{const o=i.items,s=o[0];let l=!1;for(const c of o)if(c.kind==="file"){if(c.type.indexOf("image")!==-1){const u=c.getAsFile();u&&(ag(u).then(f=>t(f)),l=!0)}else if(c.type.indexOf("video")!==-1){const u=c.getAsFile();if(u){const f=URL.createObjectURL(u),d=$F[u.type]||"";e(f,d),l=!0}}else if(c.type.indexOf("audio")!==-1){const u=c.getAsFile();if(u){const f=URL.createObjectURL(u),d=$F[u.type]||"";n(f,d),l=!0}}}if(!l&&s&&s.kind==="file"&&!l&&s.type==="application/vnd.openxmlformats-officedocument.presentationml.presentation"){const c=s.getAsFile();c&&(r([c]),l=!0)}return{isFile:l,dataTransferFirstItem:s}}}},AQe=()=>{const{editorAreaFocus:t,thumbnailsFocus:e,disableHotkeys:n}=nt(Wt()),{pasteTextClipboardData:r}=Oj(),{pasteDataTransfer:a}=JMe(),i=o=>{if(!t.value&&!e.value||n.value||!o.clipboardData)return;const{isFile:s,dataTransferFirstItem:l}=a(o.clipboardData);s||l&&l.kind==="string"&&l.type==="text/plain"&&l.getAsString(c=>r(c))};mn(()=>{document.addEventListener("paste",i)}),or(()=>{document.removeEventListener("paste",i)})},RQe={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function bQe(t,e){return V(),H("svg",RQe,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M36 18L24 30L12 18"},null,-1)]))}const Tu=vt({name:"icon-park-outline-down",render:bQe}),xQe={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function SQe(t,e){return V(),H("svg",xQe,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M4 8h40"}),I("path",{d:"M8 8h32v26H8z","clip-rule":"evenodd"}),I("path",{d:"m31 18l3 3l-3 3m-14 0l-3-3l3-3m-1 24l8-8l8 8"})],-1)]))}const MQe=vt({name:"icon-park-outline-slide-two",render:SQe}),_Qe={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function wQe(t,e){return V(),H("svg",_Qe,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M4 8h40"}),I("path",{d:"M8 8h32v26H8z","clip-rule":"evenodd"}),I("path",{d:"m22 16l5 5l-5 5m-6 16l8-8l8 8"})],-1)]))}const LQe=vt({name:"icon-park-outline-ppt",render:wQe}),TQe={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function OQe(t,e){return V(),H("svg",TQe,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M7.95 11.95h32m-32 12h32m-32 12h32"},null,-1)]))}const PQe=vt({name:"icon-park-outline-hamburger-button",render:OQe}),CQe={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function NQe(t,e){return V(),H("svg",CQe,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M9.455 14.91h5.454V9.454a5.455 5.455 0 1 0-5.454 5.454Zm0 18.18h5.454v5.455a5.455 5.455 0 1 1-5.454-5.454Z"}),I("path",{"stroke-linecap":"round",d:"M14.909 14.909h18.182v18.182H14.909z"}),I("path",{d:"M38.545 14.91h-5.454V9.454a5.455 5.455 0 1 1 5.454 5.454Zm0 18.18a5.455 5.455 0 1 1-5.454 5.455v-5.454z"})],-1)]))}const IQe=vt({name:"icon-park-outline-command",render:NQe}),kQe={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function EQe(t,e){return V(),H("svg",kQe,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{"stroke-linecap":"round",d:"M11 6v36"}),I("path",{d:"M11 9h14l7 3h7a2 2 0 0 1 2 2v17a2 2 0 0 1-2 2h-7l-7-3H11z"}),I("path",{"stroke-linecap":"round",d:"M7 42h8"})],-1)]))}const FQe=vt({name:"icon-park-outline-mark",render:EQe}),XQe={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function DQe(t,e){return V(),H("svg",XQe,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M42 8v16M6 24v16m36-16c0-9.941-8.059-18-18-18a17.95 17.95 0 0 0-12.952 5.5M6 24c0 9.941 8.059 18 18 18a17.94 17.94 0 0 0 12.5-5.048"},null,-1)]))}const VQe=vt({name:"icon-park-outline-refresh",render:DQe}),UQe={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function WQe(t,e){return V(),H("svg",UQe,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M6 24.008V42h36V24"}),I("path",{d:"m33 23l-9 9l-9-9m8.992-17v26"})],-1)]))}const x8=vt({name:"icon-park-outline-download",render:WQe}),YQe={class:"i-icon",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 48 48"};function BQe(t,e){return V(),H("svg",YQe,e[0]||(e[0]=[lj('<g fill="none" stroke-width="4"><path fill="#d14424" stroke="#333333" stroke-linejoin="round" d="M10 4H30L40 14V42C40 43.1046 39.1046 44 38 44H10C8.89543 44 8 43.1046 8 42V6C8 4.89543 8.89543 4 10 4Z"></path><path stroke="#ffffff" stroke-linecap="round" stroke-linejoin="round" d="M31 18H21"></path><path stroke="#ffffff" stroke-linecap="round" stroke-linejoin="round" d="M26 18V30"></path><path stroke="#ffffff" stroke-linecap="round" d="M18 30C18 32.2091 19.7909 34 22 34C24.2091 34 26 32.2091 26 30"></path></g>',1)]))}const ZQe=vt({name:"custom-file-jpg",render:BQe}),QQe={class:"i-icon",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 48 48"};function KQe(t,e){return V(),H("svg",QQe,e[0]||(e[0]=[I("g",{fill:"none","stroke-width":"4"},[I("path",{fill:"#d14424",stroke:"#333333","stroke-linejoin":"round",d:"M10 4H30L40 14V42C40 43.1046 39.1046 44 38 44H10C8.89543 44 8 43.1046 8 42V6C8 4.89543 8.89543 4 10 4Z"}),I("path",{stroke:"#ffffff","stroke-linecap":"round","stroke-linejoin":"round",d:"M18 18H30V25.9917L18.0083 26L18 18Z","clip-rule":"evenodd"}),I("path",{stroke:"#ffffff","stroke-linecap":"round",d:"M18 18V34"})],-1)]))}const HQe=vt({name:"custom-file-ppt",render:KQe}),GQe={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function $Qe(t,e){return V(),H("svg",GQe,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M31 36L19 24l12-12"},null,-1)]))}const jMe=vt({name:"icon-park-outline-left",render:$Qe}),zQe={class:"hotkey-doc"},JQe={class:"title"},jQe={class:"label"},qQe={class:"value"},eKe={key:1,class:"row"},tKe=tt({__name:"HotkeyDoc",setup(t){return(e,n)=>(V(),H("div",zQe,[(V(!0),H(qe,null,bt(te(iUe),r=>(V(),H(qe,{key:r.type},[I("div",JQe,Vt(r.type),1),(V(!0),H(qe,null,bt(r.children,a=>(V(),H("div",{class:"hotkey-item",key:a.label},[a.value?(V(),H(qe,{key:0},[I("div",jQe,Vt(a.label),1),I("div",qQe,Vt(a.value),1)],64)):(V(),H("div",eKe,Vt(a.label),1))]))),128))],64))),128))]))}}),nKe=lt(tKe,[["__scopeId","data-v-d3c56b7b"]]),rKe=["accept"],aKe=tt({__name:"FileInput",props:{accept:{default:"image/*"}},emits:["change"],setup(t,{emit:e}){const n=e,r=un("inputRef"),a=()=>{r.value&&(r.value.value="",r.value.click())},i=o=>{const s=o.target.files;s&&n("change",s)};return(o,s)=>(V(),H("div",{class:"file-input",onClick:s[2]||(s[2]=l=>a())},[Hr(o.$slots,"default",{},void 0,!0),I("input",{class:"input",type:"file",name:"upload",ref_key:"inputRef",ref:r,accept:o.accept,onChange:s[0]||(s[0]=l=>i(l)),onClick:s[1]||(s[1]=on(()=>{},["stop"]))},null,40,rKe)]))}}),Df=lt(aKe,[["__scopeId","data-v-13c092ad"]]),iKe={class:"spin"},oKe={class:"text"},sKe=tt({__name:"FullscreenSpin",props:{loading:{type:Boolean,default:!1},mask:{type:Boolean,default:!0},tip:{default:""}},setup(t){return(e,n)=>e.loading?(V(),H("div",{key:0,class:mt(["fullscreen-spin",{mask:e.mask}])},[I("div",iKe,[n[0]||(n[0]=I("div",{class:"spinner"},null,-1)),I("div",oKe,Vt(e.tip),1)])],2)):at("",!0)}}),zD=lt(sKe,[["__scopeId","data-v-1076325d"]]),lKe={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function cKe(t,e){return V(),H("svg",lKe,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"m8 8l32 32M8 40L40 8"},null,-1)]))}const Sy=vt({name:"icon-park-outline-close",render:cKe}),uKe={class:"header"},fKe=tt({__name:"Drawer",props:{visible:{type:Boolean},width:{default:320},contentStyle:{},placement:{default:"right"}},emits:["update:visible"],setup(t,{emit:e}){const n=t,r=e,a=we(!1),i=Fe(()=>({width:n.width+"px",...n.contentStyle||{}}));return(o,s)=>{const l=Sy;return V(),Ue($J,{to:"body"},[U(Aw,{name:`drawer-slide-${o.placement}`,onAfterLeave:s[1]||(s[1]=c=>a.value=!1),onBeforeEnter:s[2]||(s[2]=c=>a.value=!0)},{default:pe(()=>[yt(I("div",{class:mt(["drawer",o.placement]),style:We({width:n.width+"px"})},[I("div",uKe,[Hr(o.$slots,"title",{},void 0,!0),I("span",{class:"close-btn",onClick:s[0]||(s[0]=c=>r("update:visible",!1))},[U(l)])]),a.value?(V(),H("div",{key:0,class:"content",style:We(i.value)},[Hr(o.$slots,"default",{},void 0,!0)],4)):at("",!0)],6),[[y0,o.visible]])]),_:3},8,["name"])])}}}),dKe=lt(fKe,[["__scopeId","data-v-12215289"]]),hKe={class:"prefix"},pKe=["disabled","value","placeholder","maxlength"],vKe={class:"suffix"},gKe=tt({__name:"Input",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},simple:{type:Boolean,default:!1},maxlength:{}},emits:["update:value","input","change","blur","focus","enter","backspace"],setup(t,{expose:e,emit:n}){const r=n,a=we(!1),i=u=>{r("update:value",u.target.value)},o=u=>{a.value=!1,r("blur",u)},s=u=>{a.value=!0,r("focus",u)},l=un("inputRef");return e({focus:()=>{l.value&&l.value.focus()}}),(u,f)=>(V(),H("div",{class:mt(["input",{disabled:u.disabled,focused:a.value,simple:u.simple}])},[I("span",hKe,[Hr(u.$slots,"prefix",{},void 0,!0)]),I("input",{type:"text",ref_key:"inputRef",ref:l,disabled:u.disabled,value:u.value,placeholder:u.placeholder,maxlength:u.maxlength,onInput:f[0]||(f[0]=d=>i(d)),onFocus:f[1]||(f[1]=d=>s(d)),onBlur:f[2]||(f[2]=d=>o(d)),onChange:f[3]||(f[3]=d=>r("change",d)),onKeydown:[f[4]||(f[4]=Xf(d=>r("enter",d),["enter"])),f[5]||(f[5]=Xf(d=>r("backspace",d),["backspace"]))]},null,40,pKe),I("span",vKe,[Hr(u.$slots,"suffix",{},void 0,!0)])],2))}}),A0=lt(gKe,[["__scopeId","data-v-0d233f64"]]);var Al="top",bu="bottom",xu="right",Rl="left",tq="auto",S8=[Al,bu,xu,Rl],sS="start",Lw="end",mKe="clippingParents",qMe="viewport",h5="popper",yKe="reference",V1e=S8.reduce(function(t,e){return t.concat([e+"-"+sS,e+"-"+Lw])},[]),e5e=[].concat(S8,[tq]).reduce(function(t,e){return t.concat([e,e+"-"+sS,e+"-"+Lw])},[]),AKe="beforeRead",RKe="read",bKe="afterRead",xKe="beforeMain",SKe="main",MKe="afterMain",_Ke="beforeWrite",wKe="write",LKe="afterWrite",TKe=[AKe,RKe,bKe,xKe,SKe,MKe,_Ke,wKe,LKe];function Th(t){return t?(t.nodeName||"").toLowerCase():null}function yc(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function dy(t){var e=yc(t).Element;return t instanceof e||t instanceof Element}function mu(t){var e=yc(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function nq(t){if(typeof ShadowRoot>"u")return!1;var e=yc(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function OKe(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},a=e.attributes[n]||{},i=e.elements[n];!mu(i)||!Th(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(o){var s=a[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function PKe(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var a=e.elements[r],i=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=o.reduce(function(l,c){return l[c]="",l},{});!mu(a)||!Th(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}const t5e={name:"applyStyles",enabled:!0,phase:"write",fn:OKe,effect:PKe,requires:["computeStyles"]};function Rh(t){return t.split("-")[0]}var z2=Math.max,lX=Math.min,lS=Math.round;function L$(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function n5e(){return!/^((?!chrome|android).)*safari/i.test(L$())}function cS(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),a=1,i=1;e&&mu(t)&&(a=t.offsetWidth>0&&lS(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&lS(r.height)/t.offsetHeight||1);var o=dy(t)?yc(t):window,s=o.visualViewport,l=!n5e()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/a,u=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/a,d=r.height/i;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function rq(t){var e=cS(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function r5e(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&nq(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function R0(t){return yc(t).getComputedStyle(t)}function CKe(t){return["table","td","th"].indexOf(Th(t))>=0}function lg(t){return((dy(t)?t.ownerDocument:t.document)||window.document).documentElement}function JD(t){return Th(t)==="html"?t:t.assignedSlot||t.parentNode||(nq(t)?t.host:null)||lg(t)}function U1e(t){return!mu(t)||R0(t).position==="fixed"?null:t.offsetParent}function NKe(t){var e=/firefox/i.test(L$()),n=/Trident/i.test(L$());if(n&&mu(t)){var r=R0(t);if(r.position==="fixed")return null}var a=JD(t);for(nq(a)&&(a=a.host);mu(a)&&["html","body"].indexOf(Th(a))<0;){var i=R0(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function M8(t){for(var e=yc(t),n=U1e(t);n&&CKe(n)&&R0(n).position==="static";)n=U1e(n);return n&&(Th(n)==="html"||Th(n)==="body"&&R0(n).position==="static")?e:n||NKe(t)||e}function aq(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function U_(t,e,n){return z2(t,lX(e,n))}function IKe(t,e,n){var r=U_(t,e,n);return r>n?n:r}function a5e(){return{top:0,right:0,bottom:0,left:0}}function i5e(t){return Object.assign({},a5e(),t)}function o5e(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var kKe=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,i5e(typeof e!="number"?e:o5e(e,S8))};function EKe(t){var e,n=t.state,r=t.name,a=t.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Rh(n.placement),l=aq(s),c=[Rl,xu].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!o)){var f=kKe(a.padding,n),d=rq(i),h=l==="y"?Al:Rl,p=l==="y"?bu:xu,v=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],g=o[l]-n.rects.reference[l],y=M8(i),m=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,R=v/2-g/2,A=f[h],x=m-d[u]-f[p],M=m/2-d[u]/2+R,S=U_(A,M,x),w=l;n.modifiersData[r]=(e={},e[w]=S,e.centerOffset=S-M,e)}}function FKe(t){var e=t.state,n=t.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||r5e(e.elements.popper,a)&&(e.elements.arrow=a))}const XKe={name:"arrow",enabled:!0,phase:"main",fn:EKe,effect:FKe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function uS(t){return t.split("-")[1]}var DKe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VKe(t,e){var n=t.x,r=t.y,a=e.devicePixelRatio||1;return{x:lS(n*a)/a||0,y:lS(r*a)/a||0}}function W1e(t){var e,n=t.popper,r=t.popperRect,a=t.placement,i=t.variation,o=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,f=t.isFixed,d=o.x,h=d===void 0?0:d,p=o.y,v=p===void 0?0:p,g=typeof u=="function"?u({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var y=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),R=Rl,A=Al,x=window;if(c){var M=M8(n),S="clientHeight",w="clientWidth";if(M===yc(n)&&(M=lg(n),R0(M).position!=="static"&&s==="absolute"&&(S="scrollHeight",w="scrollWidth")),M=M,a===Al||(a===Rl||a===xu)&&i===Lw){A=bu;var _=f&&M===x&&x.visualViewport?x.visualViewport.height:M[S];v-=_-r.height,v*=l?1:-1}if(a===Rl||(a===Al||a===bu)&&i===Lw){R=xu;var T=f&&M===x&&x.visualViewport?x.visualViewport.width:M[w];h-=T-r.width,h*=l?1:-1}}var O=Object.assign({position:s},c&&DKe),N=u===!0?VKe({x:h,y:v},yc(n)):{x:h,y:v};if(h=N.x,v=N.y,l){var P;return Object.assign({},O,(P={},P[A]=m?"0":"",P[R]=y?"0":"",P.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",P))}return Object.assign({},O,(e={},e[A]=m?v+"px":"",e[R]=y?h+"px":"",e.transform="",e))}function UKe(t){var e=t.state,n=t.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Rh(e.placement),variation:uS(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,W1e(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,W1e(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const WKe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:UKe,data:{}};var v9={passive:!0};function YKe(t){var e=t.state,n=t.instance,r=t.options,a=r.scroll,i=a===void 0?!0:a,o=r.resize,s=o===void 0?!0:o,l=yc(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,v9)}),s&&l.addEventListener("resize",n.update,v9),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,v9)}),s&&l.removeEventListener("resize",n.update,v9)}}const BKe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:YKe,data:{}};var ZKe={left:"right",right:"left",bottom:"top",top:"bottom"};function YE(t){return t.replace(/left|right|bottom|top/g,function(e){return ZKe[e]})}var QKe={start:"end",end:"start"};function Y1e(t){return t.replace(/start|end/g,function(e){return QKe[e]})}function iq(t){var e=yc(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function oq(t){return cS(lg(t)).left+iq(t).scrollLeft}function KKe(t,e){var n=yc(t),r=lg(t),a=n.visualViewport,i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;var c=n5e();(c||!c&&e==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s+oq(t),y:l}}function HKe(t){var e,n=lg(t),r=iq(t),a=(e=t.ownerDocument)==null?void 0:e.body,i=z2(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=z2(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+oq(t),l=-r.scrollTop;return R0(a||n).direction==="rtl"&&(s+=z2(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function sq(t){var e=R0(t),n=e.overflow,r=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function s5e(t){return["html","body","#document"].indexOf(Th(t))>=0?t.ownerDocument.body:mu(t)&&sq(t)?t:s5e(JD(t))}function W_(t,e){var n;e===void 0&&(e=[]);var r=s5e(t),a=r===((n=t.ownerDocument)==null?void 0:n.body),i=yc(r),o=a?[i].concat(i.visualViewport||[],sq(r)?r:[]):r,s=e.concat(o);return a?s:s.concat(W_(JD(o)))}function T$(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function GKe(t,e){var n=cS(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function B1e(t,e,n){return e===qMe?T$(KKe(t,n)):dy(e)?GKe(e,n):T$(HKe(lg(t)))}function $Ke(t){var e=W_(JD(t)),n=["absolute","fixed"].indexOf(R0(t).position)>=0,r=n&&mu(t)?M8(t):t;return dy(r)?e.filter(function(a){return dy(a)&&r5e(a,r)&&Th(a)!=="body"}):[]}function zKe(t,e,n,r){var a=e==="clippingParents"?$Ke(t):[].concat(e),i=[].concat(a,[n]),o=i[0],s=i.reduce(function(l,c){var u=B1e(t,c,r);return l.top=z2(u.top,l.top),l.right=lX(u.right,l.right),l.bottom=lX(u.bottom,l.bottom),l.left=z2(u.left,l.left),l},B1e(t,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function l5e(t){var e=t.reference,n=t.element,r=t.placement,a=r?Rh(r):null,i=r?uS(r):null,o=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(a){case Al:l={x:o,y:e.y-n.height};break;case bu:l={x:o,y:e.y+e.height};break;case xu:l={x:e.x+e.width,y:s};break;case Rl:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var c=a?aq(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case sS:l[c]=l[c]-(e[u]/2-n[u]/2);break;case Lw:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function Tw(t,e){e===void 0&&(e={});var n=e,r=n.placement,a=r===void 0?t.placement:r,i=n.strategy,o=i===void 0?t.strategy:i,s=n.boundary,l=s===void 0?mKe:s,c=n.rootBoundary,u=c===void 0?qMe:c,f=n.elementContext,d=f===void 0?h5:f,h=n.altBoundary,p=h===void 0?!1:h,v=n.padding,g=v===void 0?0:v,y=i5e(typeof g!="number"?g:o5e(g,S8)),m=d===h5?yKe:h5,R=t.rects.popper,A=t.elements[p?m:d],x=zKe(dy(A)?A:A.contextElement||lg(t.elements.popper),l,u,o),M=cS(t.elements.reference),S=l5e({reference:M,element:R,placement:a}),w=T$(Object.assign({},R,S)),_=d===h5?w:M,T={top:x.top-_.top+y.top,bottom:_.bottom-x.bottom+y.bottom,left:x.left-_.left+y.left,right:_.right-x.right+y.right},O=t.modifiersData.offset;if(d===h5&&O){var N=O[a];Object.keys(T).forEach(function(P){var C=[xu,bu].indexOf(P)>=0?1:-1,E=[Al,bu].indexOf(P)>=0?"y":"x";T[P]+=N[E]*C})}return T}function JKe(t,e){e===void 0&&(e={});var n=e,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?e5e:l,u=uS(r),f=u?s?V1e:V1e.filter(function(p){return uS(p)===u}):S8,d=f.filter(function(p){return c.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,v){return p[v]=Tw(t,{placement:v,boundary:a,rootBoundary:i,padding:o})[Rh(v)],p},{});return Object.keys(h).sort(function(p,v){return h[p]-h[v]})}function jKe(t){if(Rh(t)===tq)return[];var e=YE(t);return[Y1e(t),e,Y1e(e)]}function qKe(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,v=n.allowedAutoPlacements,g=e.options.placement,y=Rh(g),m=y===g,R=l||(m||!p?[YE(g)]:jKe(g)),A=[g].concat(R).reduce(function(ee,ce){return ee.concat(Rh(ce)===tq?JKe(e,{placement:ce,boundary:u,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:v}):ce)},[]),x=e.rects.reference,M=e.rects.popper,S=new Map,w=!0,_=A[0],T=0;T<A.length;T++){var O=A[T],N=Rh(O),P=uS(O)===sS,C=[Al,bu].indexOf(N)>=0,E=C?"width":"height",F=Tw(e,{placement:O,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),Y=C?P?xu:Rl:P?bu:Al;x[E]>M[E]&&(Y=YE(Y));var Q=YE(Y),K=[];if(i&&K.push(F[N]<=0),s&&K.push(F[Y]<=0,F[Q]<=0),K.every(function(ee){return ee})){_=O,w=!1;break}S.set(O,K)}if(w)for(var ne=p?3:1,Z=function(ce){var B=A.find(function(xe){var _e=S.get(xe);if(_e)return _e.slice(0,ce).every(function(se){return se})});if(B)return _=B,"break"},$=ne;$>0;$--){var G=Z($);if(G==="break")break}e.placement!==_&&(e.modifiersData[r]._skip=!0,e.placement=_,e.reset=!0)}}const eHe={name:"flip",enabled:!0,phase:"main",fn:qKe,requiresIfExists:["offset"],data:{_skip:!1}};function Z1e(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Q1e(t){return[Al,xu,bu,Rl].some(function(e){return t[e]>=0})}function tHe(t){var e=t.state,n=t.name,r=e.rects.reference,a=e.rects.popper,i=e.modifiersData.preventOverflow,o=Tw(e,{elementContext:"reference"}),s=Tw(e,{altBoundary:!0}),l=Z1e(o,r),c=Z1e(s,a,i),u=Q1e(l),f=Q1e(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const nHe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tHe};function rHe(t,e,n){var r=Rh(t),a=[Rl,Al].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[Rl,xu].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function aHe(t){var e=t.state,n=t.options,r=t.name,a=n.offset,i=a===void 0?[0,0]:a,o=e5e.reduce(function(u,f){return u[f]=rHe(f,e.rects,i),u},{}),s=o[e.placement],l=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=o}const iHe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:aHe};function oHe(t){var e=t.state,n=t.name;e.modifiersData[n]=l5e({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const sHe={name:"popperOffsets",enabled:!0,phase:"read",fn:oHe,data:{}};function lHe(t){return t==="x"?"y":"x"}function cHe(t){var e=t.state,n=t.options,r=t.name,a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,p=n.tetherOffset,v=p===void 0?0:p,g=Tw(e,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),y=Rh(e.placement),m=uS(e.placement),R=!m,A=aq(y),x=lHe(A),M=e.modifiersData.popperOffsets,S=e.rects.reference,w=e.rects.popper,_=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,T=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),O=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,N={x:0,y:0};if(M){if(i){var P,C=A==="y"?Al:Rl,E=A==="y"?bu:xu,F=A==="y"?"height":"width",Y=M[A],Q=Y+g[C],K=Y-g[E],ne=h?-w[F]/2:0,Z=m===sS?S[F]:w[F],$=m===sS?-w[F]:-S[F],G=e.elements.arrow,ee=h&&G?rq(G):{width:0,height:0},ce=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:a5e(),B=ce[C],xe=ce[E],_e=U_(0,S[F],ee[F]),se=R?S[F]/2-ne-_e-B-T.mainAxis:Z-_e-B-T.mainAxis,z=R?-S[F]/2+ne+_e+xe+T.mainAxis:$+_e+xe+T.mainAxis,de=e.elements.arrow&&M8(e.elements.arrow),fe=de?A==="y"?de.clientTop||0:de.clientLeft||0:0,re=(P=O==null?void 0:O[A])!=null?P:0,X=Y+se-re-fe,j=Y+z-re,oe=U_(h?lX(Q,X):Q,Y,h?z2(K,j):K);M[A]=oe,N[A]=oe-Y}if(s){var ae,le=A==="x"?Al:Rl,ge=A==="x"?bu:xu,Se=M[x],me=x==="y"?"height":"width",ye=Se+g[le],Ve=Se-g[ge],De=[Al,Rl].indexOf(y)!==-1,Ye=(ae=O==null?void 0:O[x])!=null?ae:0,Je=De?ye:Se-S[me]-w[me]-Ye+T.altAxis,wt=De?Se+S[me]+w[me]-Ye-T.altAxis:Ve,Lt=h&&De?IKe(Je,Se,wt):U_(h?Je:ye,Se,h?wt:Ve);M[x]=Lt,N[x]=Lt-Se}e.modifiersData[r]=N}}const uHe={name:"preventOverflow",enabled:!0,phase:"main",fn:cHe,requiresIfExists:["offset"]};function fHe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function dHe(t){return t===yc(t)||!mu(t)?iq(t):fHe(t)}function hHe(t){var e=t.getBoundingClientRect(),n=lS(e.width)/t.offsetWidth||1,r=lS(e.height)/t.offsetHeight||1;return n!==1||r!==1}function pHe(t,e,n){n===void 0&&(n=!1);var r=mu(e),a=mu(e)&&hHe(e),i=lg(e),o=cS(t,a,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Th(e)!=="body"||sq(i))&&(s=dHe(e)),mu(e)?(l=cS(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=oq(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function vHe(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function a(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=e.get(s);l&&a(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||a(i)}),r}function gHe(t){var e=vHe(t);return TKe.reduce(function(n,r){return n.concat(e.filter(function(a){return a.phase===r}))},[])}function mHe(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function yHe(t){var e=t.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var K1e={placement:"bottom",modifiers:[],strategy:"absolute"};function H1e(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function AHe(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,a=e.defaultOptions,i=a===void 0?K1e:a;return function(s,l,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},K1e,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:u,setOptions:function(y){var m=typeof y=="function"?y(u.options):y;v(),u.options=Object.assign({},i,u.options,m),u.scrollParents={reference:dy(s)?W_(s):s.contextElement?W_(s.contextElement):[],popper:W_(l)};var R=gHe(yHe([].concat(r,u.options.modifiers)));return u.orderedModifiers=R.filter(function(A){return A.enabled}),p(),h.update()},forceUpdate:function(){if(!d){var y=u.elements,m=y.reference,R=y.popper;if(H1e(m,R)){u.rects={reference:pHe(m,M8(R),u.options.strategy==="fixed"),popper:rq(R)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(T){return u.modifiersData[T.name]=Object.assign({},T.data)});for(var A=0;A<u.orderedModifiers.length;A++){if(u.reset===!0){u.reset=!1,A=-1;continue}var x=u.orderedModifiers[A],M=x.fn,S=x.options,w=S===void 0?{}:S,_=x.name;typeof M=="function"&&(u=M({state:u,options:w,name:_,instance:h})||u)}}}},update:mHe(function(){return new Promise(function(g){h.forceUpdate(),g(u)})}),destroy:function(){v(),d=!0}};if(!H1e(s,l))return h;h.setOptions(c).then(function(g){!d&&c.onFirstUpdate&&c.onFirstUpdate(g)});function p(){u.orderedModifiers.forEach(function(g){var y=g.name,m=g.options,R=m===void 0?{}:m,A=g.effect;if(typeof A=="function"){var x=A({state:u,name:y,instance:h,options:R}),M=function(){};f.push(x||M)}})}function v(){f.forEach(function(g){return g()}),f=[]}return h}}var RHe=[BKe,sHe,WKe,t5e,iHe,eHe,uHe,XKe,nHe],bHe=AHe({defaultModifiers:RHe}),xHe="tippy-box",c5e="tippy-content",SHe="tippy-backdrop",u5e="tippy-arrow",f5e="tippy-svg-arrow",b2={passive:!0,capture:!0},d5e=function(){return document.body};function HQ(t,e,n){if(Array.isArray(t)){var r=t[e];return r??(Array.isArray(n)?n[e]:n)}return t}function lq(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function h5e(t,e){return typeof t=="function"?t.apply(void 0,e):t}function G1e(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function MHe(t){return t.split(/\s+/).filter(Boolean)}function ox(t){return[].concat(t)}function $1e(t,e){t.indexOf(e)===-1&&t.push(e)}function _He(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function wHe(t){return t.split("-")[0]}function cX(t){return[].slice.call(t)}function z1e(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function Y_(){return document.createElement("div")}function jD(t){return["Element","Fragment"].some(function(e){return lq(t,e)})}function LHe(t){return lq(t,"NodeList")}function THe(t){return lq(t,"MouseEvent")}function OHe(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function PHe(t){return jD(t)?[t]:LHe(t)?cX(t):Array.isArray(t)?t:cX(document.querySelectorAll(t))}function GQ(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function J1e(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function CHe(t){var e,n=ox(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function NHe(t,e){var n=e.clientX,r=e.clientY;return t.every(function(a){var i=a.popperRect,o=a.popperState,s=a.props,l=s.interactiveBorder,c=wHe(o.placement),u=o.modifiersData.offset;if(!u)return!0;var f=c==="bottom"?u.top.y:0,d=c==="top"?u.bottom.y:0,h=c==="right"?u.left.x:0,p=c==="left"?u.right.x:0,v=i.top-r+f>l,g=r-i.bottom-d>l,y=i.left-n+h>l,m=n-i.right-p>l;return v||g||y||m})}function $Q(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){t[r](a,n)})}function j1e(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var ih={isTouch:!1},q1e=0;function IHe(){ih.isTouch||(ih.isTouch=!0,window.performance&&document.addEventListener("mousemove",p5e))}function p5e(){var t=performance.now();t-q1e<20&&(ih.isTouch=!1,document.removeEventListener("mousemove",p5e)),q1e=t}function kHe(){var t=document.activeElement;if(OHe(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function EHe(){document.addEventListener("touchstart",IHe,b2),window.addEventListener("blur",kHe)}var FHe=typeof window<"u"&&typeof document<"u",XHe=FHe?!!window.msCrypto:!1,DHe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},VHe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Cf=Object.assign({appendTo:d5e,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},DHe,VHe),UHe=Object.keys(Cf),WHe=function(e){var n=Object.keys(e);n.forEach(function(r){Cf[r]=e[r]})};function v5e(t){var e=t.plugins||[],n=e.reduce(function(r,a){var i=a.name,o=a.defaultValue;if(i){var s;r[i]=t[i]!==void 0?t[i]:(s=Cf[i])!=null?s:o}return r},{});return Object.assign({},t,n)}function YHe(t,e){var n=e?Object.keys(v5e(Object.assign({},Cf,{plugins:e}))):UHe,r=n.reduce(function(a,i){var o=(t.getAttribute("data-tippy-"+i)||"").trim();if(!o)return a;if(i==="content")a[i]=o;else try{a[i]=JSON.parse(o)}catch{a[i]=o}return a},{});return r}function ege(t,e){var n=Object.assign({},e,{content:h5e(e.content,[t])},e.ignoreAttributes?{}:YHe(t,e.plugins));return n.aria=Object.assign({},Cf.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}var BHe=function(){return"innerHTML"};function O$(t,e){t[BHe()]=e}function tge(t){var e=Y_();return t===!0?e.className=u5e:(e.className=f5e,jD(t)?e.appendChild(t):O$(e,t)),e}function nge(t,e){jD(e.content)?(O$(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?O$(t,e.content):t.textContent=e.content)}function P$(t){var e=t.firstElementChild,n=cX(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(c5e)}),arrow:n.find(function(r){return r.classList.contains(u5e)||r.classList.contains(f5e)}),backdrop:n.find(function(r){return r.classList.contains(SHe)})}}function g5e(t){var e=Y_(),n=Y_();n.className=xHe,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Y_();r.className=c5e,r.setAttribute("data-state","hidden"),nge(r,t.props),e.appendChild(n),n.appendChild(r),a(t.props,t.props);function a(i,o){var s=P$(e),l=s.box,c=s.content,u=s.arrow;o.theme?l.setAttribute("data-theme",o.theme):l.removeAttribute("data-theme"),typeof o.animation=="string"?l.setAttribute("data-animation",o.animation):l.removeAttribute("data-animation"),o.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth,o.role?l.setAttribute("role",o.role):l.removeAttribute("role"),(i.content!==o.content||i.allowHTML!==o.allowHTML)&&nge(c,t.props),o.arrow?u?i.arrow!==o.arrow&&(l.removeChild(u),l.appendChild(tge(o.arrow))):l.appendChild(tge(o.arrow)):u&&l.removeChild(u)}return{popper:e,onUpdate:a}}g5e.$$tippy=!0;var ZHe=1,g9=[],zQ=[];function QHe(t,e){var n=ege(t,Object.assign({},Cf,v5e(z1e(e)))),r,a,i,o=!1,s=!1,l=!1,c=!1,u,f,d,h=[],p=G1e(X,n.interactiveDebounce),v,g=ZHe++,y=null,m=_He(n.plugins),R={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},A={id:g,reference:t,popper:Y_(),popperInstance:y,props:n,state:R,plugins:m,clearDelayTimeouts:Je,setProps:wt,setContent:Lt,show:Ne,hide:Te,hideWithInteractivity:ze,enable:De,disable:Ye,unmount:He,destroy:pt};if(!n.render)return A;var x=n.render(A),M=x.popper,S=x.onUpdate;M.setAttribute("data-tippy-root",""),M.id="tippy-"+A.id,A.popper=M,t._tippy=A,M._tippy=A;var w=m.map(function(Ce){return Ce.fn(A)}),_=t.hasAttribute("aria-expanded");return de(),ne(),Y(),Q("onCreate",[A]),n.showOnCreate&&ye(),M.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),M.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&C().addEventListener("mousemove",p)}),A;function T(){var Ce=A.props.touch;return Array.isArray(Ce)?Ce:[Ce,0]}function O(){return T()[0]==="hold"}function N(){var Ce;return!!((Ce=A.props.render)!=null&&Ce.$$tippy)}function P(){return v||t}function C(){var Ce=P().parentNode;return Ce?CHe(Ce):document}function E(){return P$(M)}function F(Ce){return A.state.isMounted&&!A.state.isVisible||ih.isTouch||u&&u.type==="focus"?0:HQ(A.props.delay,Ce?0:1,Cf.delay)}function Y(Ce){Ce===void 0&&(Ce=!1),M.style.pointerEvents=A.props.interactive&&!Ce?"":"none",M.style.zIndex=""+A.props.zIndex}function Q(Ce,ut,je){if(je===void 0&&(je=!0),w.forEach(function(Pt){Pt[Ce]&&Pt[Ce].apply(Pt,ut)}),je){var it;(it=A.props)[Ce].apply(it,ut)}}function K(){var Ce=A.props.aria;if(Ce.content){var ut="aria-"+Ce.content,je=M.id,it=ox(A.props.triggerTarget||t);it.forEach(function(Pt){var Yt=Pt.getAttribute(ut);if(A.state.isVisible)Pt.setAttribute(ut,Yt?Yt+" "+je:je);else{var dt=Yt&&Yt.replace(je,"").trim();dt?Pt.setAttribute(ut,dt):Pt.removeAttribute(ut)}})}}function ne(){if(!(_||!A.props.aria.expanded)){var Ce=ox(A.props.triggerTarget||t);Ce.forEach(function(ut){A.props.interactive?ut.setAttribute("aria-expanded",A.state.isVisible&&ut===P()?"true":"false"):ut.removeAttribute("aria-expanded")})}}function Z(){C().removeEventListener("mousemove",p),g9=g9.filter(function(Ce){return Ce!==p})}function $(Ce){if(!(ih.isTouch&&(l||Ce.type==="mousedown"))){var ut=Ce.composedPath&&Ce.composedPath()[0]||Ce.target;if(!(A.props.interactive&&j1e(M,ut))){if(ox(A.props.triggerTarget||t).some(function(je){return j1e(je,ut)})){if(ih.isTouch||A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else Q("onClickOutside",[A,Ce]);A.props.hideOnClick===!0&&(A.clearDelayTimeouts(),A.hide(),s=!0,setTimeout(function(){s=!1}),A.state.isMounted||B())}}}function G(){l=!0}function ee(){l=!1}function ce(){var Ce=C();Ce.addEventListener("mousedown",$,!0),Ce.addEventListener("touchend",$,b2),Ce.addEventListener("touchstart",ee,b2),Ce.addEventListener("touchmove",G,b2)}function B(){var Ce=C();Ce.removeEventListener("mousedown",$,!0),Ce.removeEventListener("touchend",$,b2),Ce.removeEventListener("touchstart",ee,b2),Ce.removeEventListener("touchmove",G,b2)}function xe(Ce,ut){se(Ce,function(){!A.state.isVisible&&M.parentNode&&M.parentNode.contains(M)&&ut()})}function _e(Ce,ut){se(Ce,ut)}function se(Ce,ut){var je=E().box;function it(Pt){Pt.target===je&&($Q(je,"remove",it),ut())}if(Ce===0)return ut();$Q(je,"remove",f),$Q(je,"add",it),f=it}function z(Ce,ut,je){je===void 0&&(je=!1);var it=ox(A.props.triggerTarget||t);it.forEach(function(Pt){Pt.addEventListener(Ce,ut,je),h.push({node:Pt,eventType:Ce,handler:ut,options:je})})}function de(){O()&&(z("touchstart",re,{passive:!0}),z("touchend",j,{passive:!0})),MHe(A.props.trigger).forEach(function(Ce){if(Ce!=="manual")switch(z(Ce,re),Ce){case"mouseenter":z("mouseleave",j);break;case"focus":z(XHe?"focusout":"blur",oe);break;case"focusin":z("focusout",oe);break}})}function fe(){h.forEach(function(Ce){var ut=Ce.node,je=Ce.eventType,it=Ce.handler,Pt=Ce.options;ut.removeEventListener(je,it,Pt)}),h=[]}function re(Ce){var ut,je=!1;if(!(!A.state.isEnabled||ae(Ce)||s)){var it=((ut=u)==null?void 0:ut.type)==="focus";u=Ce,v=Ce.currentTarget,ne(),!A.state.isVisible&&THe(Ce)&&g9.forEach(function(Pt){return Pt(Ce)}),Ce.type==="click"&&(A.props.trigger.indexOf("mouseenter")<0||o)&&A.props.hideOnClick!==!1&&A.state.isVisible?je=!0:ye(Ce),Ce.type==="click"&&(o=!je),je&&!it&&Ve(Ce)}}function X(Ce){var ut=Ce.target,je=P().contains(ut)||M.contains(ut);if(!(Ce.type==="mousemove"&&je)){var it=me().concat(M).map(function(Pt){var Yt,dt=Pt._tippy,fn=(Yt=dt.popperInstance)==null?void 0:Yt.state;return fn?{popperRect:Pt.getBoundingClientRect(),popperState:fn,props:n}:null}).filter(Boolean);NHe(it,Ce)&&(Z(),Ve(Ce))}}function j(Ce){var ut=ae(Ce)||A.props.trigger.indexOf("click")>=0&&o;if(!ut){if(A.props.interactive){A.hideWithInteractivity(Ce);return}Ve(Ce)}}function oe(Ce){A.props.trigger.indexOf("focusin")<0&&Ce.target!==P()||A.props.interactive&&Ce.relatedTarget&&M.contains(Ce.relatedTarget)||Ve(Ce)}function ae(Ce){return ih.isTouch?O()!==Ce.type.indexOf("touch")>=0:!1}function le(){ge();var Ce=A.props,ut=Ce.popperOptions,je=Ce.placement,it=Ce.offset,Pt=Ce.getReferenceClientRect,Yt=Ce.moveTransition,dt=N()?P$(M).arrow:null,fn=Pt?{getBoundingClientRect:Pt,contextElement:Pt.contextElement||P()}:t,pn={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(qi){var Ta=qi.state;if(N()){var Ys=E(),eo=Ys.box;["placement","reference-hidden","escaped"].forEach(function(Ei){Ei==="placement"?eo.setAttribute("data-placement",Ta.placement):Ta.attributes.popper["data-popper-"+Ei]?eo.setAttribute("data-"+Ei,""):eo.removeAttribute("data-"+Ei)}),Ta.attributes.popper={}}}},En=[{name:"offset",options:{offset:it}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Yt}},pn];N()&&dt&&En.push({name:"arrow",options:{element:dt,padding:3}}),En.push.apply(En,(ut==null?void 0:ut.modifiers)||[]),A.popperInstance=bHe(fn,M,Object.assign({},ut,{placement:je,onFirstUpdate:d,modifiers:En}))}function ge(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function Se(){var Ce=A.props.appendTo,ut,je=P();A.props.interactive&&Ce===d5e||Ce==="parent"?ut=je.parentNode:ut=h5e(Ce,[je]),ut.contains(M)||ut.appendChild(M),A.state.isMounted=!0,le()}function me(){return cX(M.querySelectorAll("[data-tippy-root]"))}function ye(Ce){A.clearDelayTimeouts(),Ce&&Q("onTrigger",[A,Ce]),ce();var ut=F(!0),je=T(),it=je[0],Pt=je[1];ih.isTouch&&it==="hold"&&Pt&&(ut=Pt),ut?r=setTimeout(function(){A.show()},ut):A.show()}function Ve(Ce){if(A.clearDelayTimeouts(),Q("onUntrigger",[A,Ce]),!A.state.isVisible){B();return}if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Ce.type)>=0&&o)){var ut=F(!1);ut?a=setTimeout(function(){A.state.isVisible&&A.hide()},ut):i=requestAnimationFrame(function(){A.hide()})}}function De(){A.state.isEnabled=!0}function Ye(){A.hide(),A.state.isEnabled=!1}function Je(){clearTimeout(r),clearTimeout(a),cancelAnimationFrame(i)}function wt(Ce){if(!A.state.isDestroyed){Q("onBeforeUpdate",[A,Ce]),fe();var ut=A.props,je=ege(t,Object.assign({},ut,z1e(Ce),{ignoreAttributes:!0}));A.props=je,de(),ut.interactiveDebounce!==je.interactiveDebounce&&(Z(),p=G1e(X,je.interactiveDebounce)),ut.triggerTarget&&!je.triggerTarget?ox(ut.triggerTarget).forEach(function(it){it.removeAttribute("aria-expanded")}):je.triggerTarget&&t.removeAttribute("aria-expanded"),ne(),Y(),S&&S(ut,je),A.popperInstance&&(le(),me().forEach(function(it){requestAnimationFrame(it._tippy.popperInstance.forceUpdate)})),Q("onAfterUpdate",[A,Ce])}}function Lt(Ce){A.setProps({content:Ce})}function Ne(){var Ce=A.state.isVisible,ut=A.state.isDestroyed,je=!A.state.isEnabled,it=ih.isTouch&&!A.props.touch,Pt=HQ(A.props.duration,0,Cf.duration);if(!(Ce||ut||je||it)&&!P().hasAttribute("disabled")&&(Q("onShow",[A],!1),A.props.onShow(A)!==!1)){if(A.state.isVisible=!0,N()&&(M.style.visibility="visible"),Y(),ce(),A.state.isMounted||(M.style.transition="none"),N()){var Yt=E(),dt=Yt.box,fn=Yt.content;GQ([dt,fn],0)}d=function(){var En;if(!(!A.state.isVisible||c)){if(c=!0,M.offsetHeight,M.style.transition=A.props.moveTransition,N()&&A.props.animation){var yi=E(),qi=yi.box,Ta=yi.content;GQ([qi,Ta],Pt),J1e([qi,Ta],"visible")}K(),ne(),$1e(zQ,A),(En=A.popperInstance)==null||En.forceUpdate(),Q("onMount",[A]),A.props.animation&&N()&&_e(Pt,function(){A.state.isShown=!0,Q("onShown",[A])})}},Se()}}function Te(){var Ce=!A.state.isVisible,ut=A.state.isDestroyed,je=!A.state.isEnabled,it=HQ(A.props.duration,1,Cf.duration);if(!(Ce||ut||je)&&(Q("onHide",[A],!1),A.props.onHide(A)!==!1)){if(A.state.isVisible=!1,A.state.isShown=!1,c=!1,o=!1,N()&&(M.style.visibility="hidden"),Z(),B(),Y(!0),N()){var Pt=E(),Yt=Pt.box,dt=Pt.content;A.props.animation&&(GQ([Yt,dt],it),J1e([Yt,dt],"hidden"))}K(),ne(),A.props.animation?N()&&xe(it,A.unmount):A.unmount()}}function ze(Ce){C().addEventListener("mousemove",p),$1e(g9,p),p(Ce)}function He(){A.state.isVisible&&A.hide(),A.state.isMounted&&(ge(),me().forEach(function(Ce){Ce._tippy.unmount()}),M.parentNode&&M.parentNode.removeChild(M),zQ=zQ.filter(function(Ce){return Ce!==A}),A.state.isMounted=!1,Q("onHidden",[A]))}function pt(){A.state.isDestroyed||(A.clearDelayTimeouts(),A.unmount(),fe(),delete t._tippy,A.state.isDestroyed=!0,Q("onDestroy",[A]))}}function My(t,e){e===void 0&&(e={});var n=Cf.plugins.concat(e.plugins||[]);EHe();var r=Object.assign({},e,{plugins:n}),a=PHe(t),i=a.reduce(function(o,s){var l=s&&QHe(s,r);return l&&o.push(l),o},[]);return jD(t)?i[0]:i}My.defaultProps=Cf;My.setDefaultProps=WHe;My.currentInput=ih;Object.assign({},t5e,{effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});My.setDefaultProps({render:g5e});const KHe=tt({__name:"Popover",props:{value:{type:Boolean,default:!1},trigger:{default:"click"},placement:{default:"bottom"},appendTo:{},contentStyle:{},center:{type:Boolean,default:!1},offset:{default:8}},emits:["update:value","show","hide"],setup(t,{emit:e}){const n=t,r=e,a=we(),i=we(!1),o=un("triggerRef"),s=un("contentRef"),l=Fe(()=>n.contentStyle||{});return qt(()=>n.value,()=>{a.value&&(n.value?a.value.show():a.value.hide())}),or(()=>{a.value&&a.value.destroy()}),mn(()=>{a.value=My(o.value,{content:s.value,allowHTML:!0,trigger:n.trigger,placement:n.placement,interactive:!0,appendTo:n.appendTo||document.body,maxWidth:"none",offset:[0,n.offset],duration:200,animation:"scale",theme:"popover",onShow(){i.value=!0},onShown(){n.value||(r("update:value",!0),r("show"))},onHidden(){n.value&&(r("update:value",!1),r("hide")),i.value=!1}})}),(c,u)=>(V(),H("div",{class:mt(["popover",{center:c.center}]),ref_key:"triggerRef",ref:o},[I("div",{class:"popover-content",style:We(l.value),ref_key:"contentRef",ref:s},[i.value?Hr(c.$slots,"content",{key:0},void 0,!0):at("",!0)],4),Hr(c.$slots,"default",{},void 0,!0)],2))}}),sn=lt(KHe,[["__scopeId","data-v-ac105817"]]),HHe=tt({__name:"PopoverMenuItem",props:{center:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:e}){const n=e;return(r,a)=>(V(),H("div",{class:mt(["popover-menu-item",{center:r.center}]),onClick:a[0]||(a[0]=i=>n("click"))},[Hr(r.$slots,"default",{},void 0,!0)],2))}}),ti=lt(HHe,[["__scopeId","data-v-3500cf99"]]),GHe=tt({__name:"Divider",props:{type:{default:"horizontal"},margin:{default:-1}},setup(t){return(e,n)=>(V(),H("div",{class:mt(["divider",e.type]),style:We({margin:e.type==="horizontal"?`${e.margin>=0?e.margin:24}px 0`:`0 ${e.margin>=0?e.margin:8}px`})},null,6))}}),hn=lt(GHe,[["__scopeId","data-v-def6106d"]]),$He={class:"editor-header"},zHe={class:"left"},JHe={class:"import-section"},jHe={class:"import-grid"},qHe={class:"icon"},eGe={class:"icon"},tGe={class:"menu-item"},nGe={class:"title"},rGe=["title"],aGe={class:"right"},iGe={class:"group-menu-item"},oGe={class:"arrow-btn"},sGe="CanvasAnvil-app-view-v1",lGe="CanvasAnvil-active-workspace-v1",cGe="CanvasAnvil-ppt-return-stage-v1",uGe="canvasanvil:ppt-return",fGe=tt({__name:"index",setup(t){const e=Wt(),n=It(),{title:r}=nt(n),{enterScreening:a,enterScreeningFromStart:i}=og(),{importPPTXFile:o,importJSON:s,exporting:l}=zMe(),{resetSlides:c}=ig(),u=we(!1),f=we(!1),d=we(!1),h=we(""),p=un("titleInputRef"),v=new URLSearchParams(window.location.search).get("canvasanvil")==="embedded",g=()=>"/",y=()=>{try{localStorage.setItem(sGe,"workspace"),localStorage.setItem(lGe,"ppt"),localStorage.setItem(cGe,"start")}catch{}},m=()=>{if(u.value=!1,v){window.parent.postMessage({type:uGe},`${window.location.protocol}//${window.location.hostname}:8001`);return}if(y(),window.opener&&!window.opener.closed){window.opener.focus(),window.close();return}window.location.href=g()},R=()=>{h.value=r.value,d.value=!0,qr(()=>{var S;return(S=p.value)==null?void 0:S.focus()})},A=()=>{n.setTitle(h.value),d.value=!1},x=S=>{e.setDialogForExport(S),u.value=!1},M=()=>{e.setMarkupPanelState(!0)};return(S,w)=>{const _=jMe,T=HQe,O=ZQe,N=x8,P=VQe,C=FQe,E=IQe,F=PQe,Y=LQe,Q=MQe,K=Tu,ne=pr("tooltip");return V(),H("div",$He,[I("div",zHe,[I("div",{class:"menu-item return-entry",onClick:w[0]||(w[0]=Z=>m())},[U(_,{class:"icon"}),w[17]||(w[17]=I("span",{class:"label"},"返回",-1))]),U(hn,{type:"vertical",margin:8}),U(sn,{trigger:"click",placement:"bottom-start",value:u.value,"onUpdate:value":w[8]||(w[8]=Z=>u.value=Z)},{content:pe(()=>[I("div",JHe,[w[22]||(w[22]=I("div",{class:"import-label"},"导入文件",-1)),I("div",jHe,[U(Df,{class:"import-block",accept:"application/vnd.openxmlformats-officedocument.presentationml.presentation",onChange:w[1]||(w[1]=Z=>{te(o)(Z),u.value=!1})},{default:pe(()=>[I("span",qHe,[U(T)]),w[18]||(w[18]=I("span",{class:"label"},"PPTX",-1)),w[19]||(w[19]=I("span",{class:"sub-label"},"仅供测试",-1))]),_:1,__:[18,19]}),U(Df,{class:"import-block",accept:".json",onChange:w[2]||(w[2]=Z=>{te(s)(Z),u.value=!1})},{default:pe(()=>[I("span",eGe,[U(O)]),w[20]||(w[20]=I("span",{class:"label"},"JSON",-1)),w[21]||(w[21]=I("span",{class:"sub-label"},"仅供测试",-1))]),_:1,__:[20,21]})])]),U(hn,{margin:10}),U(ti,{class:"popover-menu-item",onClick:w[3]||(w[3]=Z=>m())},{default:pe(()=>[U(_,{class:"icon"}),w[23]||(w[23]=rt(" 返回 "))]),_:1,__:[23]}),U(hn,{margin:10}),U(ti,{class:"popover-menu-item",onClick:w[4]||(w[4]=Z=>x("pptx"))},{default:pe(()=>[U(N,{class:"icon"}),w[24]||(w[24]=rt(" 导出文件 "))]),_:1,__:[24]}),U(hn,{margin:10}),U(ti,{class:"popover-menu-item",onClick:w[5]||(w[5]=Z=>{te(c)(),u.value=!1})},{default:pe(()=>[U(P,{class:"icon"}),w[25]||(w[25]=rt(" 重置幻灯片 "))]),_:1,__:[25]}),U(ti,{class:"popover-menu-item",onClick:w[6]||(w[6]=Z=>{M(),u.value=!1})},{default:pe(()=>[U(C,{class:"icon"}),w[26]||(w[26]=rt(" 幻灯片类型标注 "))]),_:1,__:[26]}),U(ti,{class:"popover-menu-item",onClick:w[7]||(w[7]=Z=>{u.value=!1,f.value=!0})},{default:pe(()=>[U(E,{class:"icon"}),w[27]||(w[27]=rt(" 快捷操作 "))]),_:1,__:[27]}),U(hn,{margin:10}),w[28]||(w[28]=I("div",{class:"statement"},"提示:本项目仅作演示和测试使用。",-1))]),default:pe(()=>[I("div",tGe,[U(F,{class:"icon"})])]),_:1},8,["value"]),I("div",nGe,[d.value?(V(),Ue(A0,{key:0,ref_key:"titleInputRef",ref:p,value:h.value,"onUpdate:value":w[9]||(w[9]=Z=>h.value=Z),class:"title-input",onBlur:w[10]||(w[10]=Z=>A())},null,8,["value"])):(V(),H("div",{key:1,title:te(r),class:"title-text",onClick:w[11]||(w[11]=Z=>R())},Vt(te(r)),9,rGe))])]),I("div",aGe,[I("div",iGe,[yt((V(),H("div",{class:"menu-item",onClick:w[12]||(w[12]=Z=>te(a)())},[U(Y,{class:"icon"})])),[[ne,"幻灯片放映(F5)"]]),U(sn,{trigger:"click",center:""},{content:pe(()=>[U(ti,{class:"popover-menu-item",onClick:w[13]||(w[13]=Z=>te(i)())},{default:pe(()=>[U(Q,{class:"icon"}),w[29]||(w[29]=rt(" 从头开始 "))]),_:1,__:[29]}),U(ti,{class:"popover-menu-item",onClick:w[14]||(w[14]=Z=>te(a)())},{default:pe(()=>[U(Y,{class:"icon"}),w[30]||(w[30]=rt(" 从当前页开始 "))]),_:1,__:[30]})]),default:pe(()=>[I("div",oGe,[U(K,{class:"arrow"})])]),_:1})]),yt((V(),H("div",{class:"menu-item",onClick:w[15]||(w[15]=Z=>x("pptx"))},[U(N,{class:"icon"})])),[[ne,"导出"]])]),U(dKe,{visible:f.value,"onUpdate:visible":w[16]||(w[16]=Z=>f.value=Z),width:320,placement:"right"},{title:pe(()=>w[31]||(w[31]=[rt("快捷操作")])),default:pe(()=>[U(nKe)]),_:1},8,["visible"]),U(zD,{loading:te(l),tip:"正在导入..."},null,8,["loading"])])}}}),dGe=lt(fGe,[["__scopeId","data-v-0ff9d74d"]]),_8=Symbol(),cq=Symbol(),m5e=Symbol(),hGe=()=>{const t=window.getSelection();t&&t.removeAllRanges()},pGe=t=>{const e=we(0),n=we(0),r=Wt(),{canvasPercentage:a,canvasDragged:i}=nt(r),{viewportRatio:o,viewportSize:s}=nt(It()),l=()=>{if(!t.value)return;const h=t.value.clientWidth,p=t.value.clientHeight;if(p/h>o.value){const v=h*(a.value/100);r.setCanvasScale(v/s.value),e.value=(h-v)/2,n.value=(p-v*o.value)/2}else{const v=p*(a.value/100);r.setCanvasScale(v/(s.value*o.value)),e.value=(h-v/o.value)/2,n.value=(p-v)/2}};qt(a,(h,p)=>{if(!t.value)return;const v=t.value.clientWidth,g=t.value.clientHeight;if(g/v>o.value){const y=v*(h/100),m=v*(p/100),R=y*o.value,A=m*o.value;r.setCanvasScale(y/s.value),e.value=e.value-(y-m)/2,n.value=n.value-(R-A)/2}else{const y=g*(h/100),m=g*(p/100),R=y/o.value,A=m/o.value;r.setCanvasScale(y/(s.value*o.value)),e.value=e.value-(R-A)/2,n.value=n.value-(y-m)/2}}),qt(o,l),qt(s,l),qt(i,()=>{i.value||l()});const u=Fe(()=>({width:s.value,height:s.value*o.value,left:e.value,top:n.value})),f=new ResizeObserver(l);return mn(()=>{t.value&&f.observe(t.value)}),or(()=>{t.value&&f.unobserve(t.value)}),{viewportStyles:u,dragViewport:h=>{let p=!0;const v=h.pageX,g=h.pageY,y=e.value,m=n.value;document.onmousemove=R=>{if(!p)return;const A=R.pageX,x=R.pageY;e.value=y+(A-v),n.value=m+(x-g)},document.onmouseup=()=>{p=!1,document.onmousemove=null,document.onmouseup=null,r.setCanvasDragged(!0)}}}},vGe=(t,e)=>{const n=Wt(),{canvasScale:r,hiddenElementIdList:a}=nt(n),{ctrlOrShiftKeyActive:i}=nt(xc()),o=we(!1),s=we(1),l=we({top:0,left:0,width:0,height:0});return{mouseSelection:l,mouseSelectionVisible:o,mouseSelectionQuadrant:s,updateMouseSelection:u=>{if(!e.value)return;let f=!0;const d=e.value.getBoundingClientRect(),h=5,p=u.pageX,v=u.pageY,g=(p-d.x)/r.value,y=(v-d.y)/r.value;l.value={top:y,left:g,width:0,height:0},o.value=!1,s.value=4,document.onmousemove=m=>{if(!f)return;const R=m.pageX,A=m.pageY,x=(R-p)/r.value,M=(A-v)/r.value,S=Math.abs(x),w=Math.abs(M);if(S<h||w<h)return;let _=0;x>0&&M>0?_=4:x<0&&M<0?_=2:x>0&&M<0?_=1:x<0&&M>0&&(_=3),l.value={...l.value,width:S,height:w},o.value=!0,s.value=_},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,f=!1;let m=[];for(let A=0;A<t.value.length;A++){const x=t.value[A],M=l.value.left,S=l.value.top,w=l.value.width,_=l.value.height,{minX:T,maxX:O,minY:N,maxY:P}=fl(x);let C=!1;i.value?s.value===4?C=O>M&&T<M+w&&P>S&&N<S+_:s.value===2?C=O>M-w&&T<M-w+w&&P>S-_&&N<S-_+_:s.value===1?C=O>M&&T<M+w&&P>S-_&&N<S-_+_:s.value===3&&(C=O>M-w&&T<M-w+w&&P>S&&N<S+_):s.value===4?C=T>M&&O<M+w&&N>S&&P<S+_:s.value===2?C=T>M-w&&O<M-w+w&&N>S-_&&P<S-_+_:s.value===1?C=T>M&&O<M+w&&N>S-_&&P<S-_+_:s.value===3&&(C=T>M-w&&O<M-w+w&&N>S&&P<S+_),C&&!x.lock&&!a.value.includes(x.id)&&m.push(x)}m=m.filter(A=>{if(A.groupId){const x=m.map(S=>S.id);return t.value.filter(S=>S.groupId===A.groupId).every(S=>x.includes(S.id))}return!0});const R=m.map(A=>A.id);n.setActiveElementIdList(R),o.value=!1}}}},gGe=t=>{const{disableHotkeys:e}=nt(Wt()),{createTextElement:n}=M0(),{pasteDataTransfer:r}=JMe(),a=i=>{if(!i.dataTransfer||i.dataTransfer.items.length===0)return;const{isFile:o,dataTransferFirstItem:s}=r(i.dataTransfer);o||s&&s.kind==="string"&&s.type==="text/plain"&&s.getAsString(l=>{if(e.value)return;const c=GF(l);n({left:0,top:0,width:600,height:50},{content:c})})};mn(()=>{t.value&&t.value.addEventListener("drop",a),document.ondragleave=i=>i.preventDefault(),document.ondrop=i=>i.preventDefault(),document.ondragenter=i=>i.preventDefault(),document.ondragover=i=>i.preventDefault()}),or(()=>{t.value&&t.value.removeEventListener("drop",a),document.ondragleave=null,document.ondrop=null,document.ondragenter=null,document.ondragover=null})},mGe=(t,e)=>{const n=Math.atan2(t,e);return 180/Math.PI*n},y5e=(t,e,n)=>{const r=It(),{addHistorySnapshot:a}=Pn();return{rotateElement:(o,s)=>{const l=!(o instanceof MouseEvent);if(l&&(!o.changedTouches||!o.changedTouches[0]))return;let c=!0,u=0;const f=s.rotate||0,d=s.left,h=s.top,p=s.width,v=s.height,g=d+p/2,y=h+v/2;if(!e.value)return;const m=e.value.getBoundingClientRect(),R=x=>{if(!c)return;const M=x instanceof MouseEvent?x.pageX:x.changedTouches[0].pageX,S=x instanceof MouseEvent?x.pageY:x.changedTouches[0].pageY,w=(M-m.left)/n.value,_=(S-m.top)/n.value,T=w-g,O=y-_;u=mGe(T,O);const N=5;Math.abs(u)<=N?u=0:u>0&&Math.abs(u-45)<=N?u-=u-45:u<0&&Math.abs(u+45)<=N?u-=u+45:u>0&&Math.abs(u-90)<=N?u-=u-90:u<0&&Math.abs(u+90)<=N?u-=u+90:u>0&&Math.abs(u-135)<=N?u-=u-135:u<0&&Math.abs(u+135)<=N?u-=u+135:u>0&&Math.abs(u-180)<=N?u-=u-180:u<0&&Math.abs(u+180)<=N&&(u-=u+180),t.value=t.value.map(P=>s.id===P.id?{...P,rotate:u}:P)},A=()=>{c=!1,document.onmousemove=null,document.onmouseup=null,f!==u&&(r.updateSlide({elements:t.value}),a())};l?(document.ontouchmove=R,document.ontouchend=A):(document.onmousemove=R,document.onmouseup=A)}}},rge=(t,e)=>{const n=Math.atan2(t,e);return 180/Math.PI*n},yGe=t=>{let n=t;return Math.abs(n)<=5?n=0:n>0&&Math.abs(n-45)<=5?n-=n-45:n<0&&Math.abs(n+45)<=5?n-=n+45:n>0&&Math.abs(n-90)<=5?n-=n-90:n<0&&Math.abs(n+90)<=5?n-=n+90:n>0&&Math.abs(n-135)<=5?n-=n-135:n<0&&Math.abs(n+135)<=5?n-=n+135:n>0&&Math.abs(n-180)<=5?n-=n-180:n<0&&Math.abs(n+180)<=5&&(n-=n+180),n},AGe=t=>{const e=t.filter(i=>i.type!=="line");if(!e.length)return null;const n=e[0].rotate,r=.1;return e.every(i=>Math.abs(C_(i.rotate-n))<=r)?n:null},RGe=(t,e,n)=>{const r=It(),{addHistorySnapshot:a}=Pn();return{rotateGroupElement:(o,s)=>{if(!E4e(s)||!e.value)return;let l=!0,c=0;const u=s.map(x=>x.id),f=JSON.parse(JSON.stringify(t.value)),d=new Map(f.map(x=>[x.id,x])),h=AGe(s),p=uWe(s,h??0),v=e.value.getBoundingClientRect(),g=(o.pageX-v.left)/n.value,y=(o.pageY-v.top)/n.value,m=rge(g-p.x,p.y-y),R=x=>{if(!l)return;const M=(x.pageX-v.left)/n.value,S=(x.pageY-v.top)/n.value,w=rge(M-p.x,p.y-S),_=C_(w-m);if(h===null)c=_;else{const T=C_(h+_),O=yGe(T);c=C_(O-h)}t.value=f.map(T=>{if(!u.includes(T.id))return T;const O=d.get(T.id);return O?O.type==="line"?mWe(O,p,c):pWe(O,p,c):T})},A=()=>{l=!1,document.onmousemove=null,document.onmouseup=null,c&&(r.updateSlide({elements:t.value}),a())};document.onmousemove=R,document.onmouseup=A}}},i_={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格",video:"视频",audio:"音频",latex:"公式"},A5e={text:40,image:20,shape:20,chart:200,table:30,video:250,audio:20,latex:20},age=(t,e)=>{const{left:n,top:r,width:a,height:i}=t,o=Math.sqrt(Math.pow(a,2)+Math.pow(i,2))/2,s=Math.atan(i/a)*180/Math.PI,l=(180-e-s)*Math.PI/180,c=(s-e)*Math.PI/180,u=(90-e)*Math.PI/180,f=e*Math.PI/180,d=a/2,h=i/2,p=n+d,v=r+h,g={left:p+o*Math.cos(l),top:v-o*Math.sin(l)},y={left:p+h*Math.cos(u),top:v-h*Math.sin(u)},m={left:p+o*Math.cos(c),top:v-o*Math.sin(c)},R={left:p+d*Math.cos(f),top:v+d*Math.sin(f)},A={left:p-o*Math.cos(l),top:v+o*Math.sin(l)},x={left:p-h*Math.sin(f),top:v+h*Math.cos(f)},M={left:p-o*Math.cos(c),top:v+o*Math.sin(c)},S={left:p-d*Math.cos(f),top:v-d*Math.sin(f)};return{leftTopPoint:g,topPoint:y,rightTopPoint:m,rightPoint:R,rightBottomPoint:A,bottomPoint:x,leftBottomPoint:M,leftPoint:S}},ige=(t,e)=>({[$t.RIGHT_BOTTOM]:e.leftTopPoint,[$t.LEFT_BOTTOM]:e.rightTopPoint,[$t.LEFT_TOP]:e.rightBottomPoint,[$t.RIGHT_TOP]:e.leftBottomPoint,[$t.TOP]:e.bottomPoint,[$t.BOTTOM]:e.topPoint,[$t.LEFT]:e.rightPoint,[$t.RIGHT]:e.leftPoint})[t],R5e=(t,e,n)=>{const r=Wt(),a=It(),{activeElementIdList:i,activeGroupElementId:o}=nt(r),{viewportRatio:s,viewportSize:l}=nt(a),{ctrlOrShiftKeyActive:c}=nt(xc()),{addHistorySnapshot:u}=Pn();return{scaleElement:(h,p,v)=>{const g=!(h instanceof MouseEvent);if(g&&(!h.changedTouches||!h.changedTouches[0]))return;let y=!0;r.setScalingState(!0);const m=p.left,R=p.top,A=p.width,x=p.height,M=p.type==="table"?p.cellMinHeight:0,S="rotate"in p&&p.rotate?p.rotate:0,w=Math.PI*S/180,_=c.value||"fixedRatio"in p&&p.fixedRatio,T=A/x,O=g?h.changedTouches[0].pageX:h.pageX,N=g?h.changedTouches[0].pageY:h.pageY,P=A5e[p.type]||20,C=(G,ee)=>{if(!_)return G<P?P:G;let ce=P,B=P;const xe=p.width/p.height;return xe<1&&(B=P/xe),xe>1&&(ce=P*xe),ee==="width"?G<ce?ce:G:G<B?B:G};let E,F=0,Y=0,Q=[],K=[];if("rotate"in p&&p.rotate){const{left:G,top:ee,width:ce,height:B}=p;E=age({left:G,top:ee,width:ce,height:B},S);const xe=ige(v,E);F=xe.left,Y=xe.top}else{const G=l.value,ee=l.value*s.value,ce=p.id===o.value;for(const fe of t.value){if("rotate"in fe&&fe.rotate||fe.type==="line"||ce&&fe.id===p.id||!ce&&i.value.includes(fe.id))continue;const re=fe.left,X=fe.top,j=fe.width,oe=fe.height,ae=re+j,le=X+oe,ge={value:X,range:[re,ae]},Se={value:le,range:[re,ae]},me={value:re,range:[X,le]},ye={value:ae,range:[X,le]};Q.push(ge,Se),K.push(me,ye)}const B={value:0,range:[0,G]},xe={value:ee,range:[0,G]},_e={value:ee/2,range:[0,G]},se={value:0,range:[0,ee]},z={value:G,range:[0,ee]},de={value:G/2,range:[0,ee]};Q.push(B,xe,_e),K.push(se,z,de),Q=KF(Q),K=KF(K)}const ne=(G,ee)=>{const B=[];let xe=!1,_e=!1;const se={offsetX:0,offsetY:0};if(ee||ee===0)for(let z=0;z<Q.length;z++){const{value:de,range:fe}=Q[z],re=Math.min(...fe,G||0),X=Math.max(...fe,G||0);Math.abs(ee-de)<5&&!_e&&(se.offsetY=ee-de,_e=!0,B.push({type:"horizontal",axis:{x:re-50,y:de},length:X-re+100}))}if(G||G===0)for(let z=0;z<K.length;z++){const{value:de,range:fe}=K[z],re=Math.min(...fe,ee||0),X=Math.max(...fe,ee||0);Math.abs(G-de)<5&&!xe&&(se.offsetX=G-de,xe=!0,B.push({type:"vertical",axis:{x:de,y:re-50},length:X-re+100}))}return e.value=B,se},Z=G=>{if(!y)return;const ee=G instanceof MouseEvent?G.pageX:G.changedTouches[0].pageX,ce=G instanceof MouseEvent?G.pageY:G.changedTouches[0].pageY,B=ee-O,xe=ce-N;let _e=A,se=x,z=m,de=R;if(S){const fe=(Math.cos(w)*B+Math.sin(w)*xe)/n.value;let re=(Math.cos(w)*xe-Math.sin(w)*B)/n.value;_&&((v===$t.RIGHT_BOTTOM||v===$t.LEFT_TOP)&&(re=fe/T),(v===$t.LEFT_BOTTOM||v===$t.RIGHT_TOP)&&(re=-fe/T)),v===$t.RIGHT_BOTTOM?(_e=C(A+fe,"width"),se=C(x+re,"height")):v===$t.LEFT_BOTTOM?(_e=C(A-fe,"width"),se=C(x+re,"height"),z=m-(_e-A)):v===$t.LEFT_TOP?(_e=C(A-fe,"width"),se=C(x-re,"height"),z=m-(_e-A),de=R-(se-x)):v===$t.RIGHT_TOP?(_e=C(A+fe,"width"),se=C(x-re,"height"),de=R-(se-x)):v===$t.TOP?(se=C(x-re,"height"),de=R-(se-x)):v===$t.BOTTOM?se=C(x+re,"height"):v===$t.LEFT?(_e=C(A-fe,"width"),z=m-(_e-A)):v===$t.RIGHT&&(_e=C(A+fe,"width"));const X=age({width:_e,height:se,left:z,top:de},S),j=ige(v,X),oe=j.left,ae=j.top,le=oe-F,ge=ae-Y;z=z-le,de=de-ge}else{let fe=B/n.value,re=xe/n.value;if(_&&((v===$t.RIGHT_BOTTOM||v===$t.LEFT_TOP)&&(re=fe/T),(v===$t.LEFT_BOTTOM||v===$t.RIGHT_TOP)&&(re=-fe/T)),v===$t.RIGHT_BOTTOM){const{offsetX:X,offsetY:j}=ne(m+A+fe,R+x+re);fe=fe-X,re=re-j,_&&(j?fe=re*T:re=fe/T),_e=C(A+fe,"width"),se=C(x+re,"height")}else if(v===$t.LEFT_BOTTOM){const{offsetX:X,offsetY:j}=ne(m+fe,R+x+re);fe=fe-X,re=re-j,_&&(j?fe=-re*T:re=-fe/T),_e=C(A-fe,"width"),se=C(x+re,"height"),z=m-(_e-A)}else if(v===$t.LEFT_TOP){const{offsetX:X,offsetY:j}=ne(m+fe,R+re);fe=fe-X,re=re-j,_&&(j?fe=re*T:re=fe/T),_e=C(A-fe,"width"),se=C(x-re,"height"),z=m-(_e-A),de=R-(se-x)}else if(v===$t.RIGHT_TOP){const{offsetX:X,offsetY:j}=ne(m+A+fe,R+re);fe=fe-X,re=re-j,_&&(j?fe=-re*T:re=-fe/T),_e=C(A+fe,"width"),se=C(x-re,"height"),de=R-(se-x)}else if(v===$t.LEFT){const{offsetX:X}=ne(m+fe,null);fe=fe-X,_e=C(A-fe,"width"),z=m-(_e-A)}else if(v===$t.RIGHT){const{offsetX:X}=ne(m+A+fe,null);fe=fe-X,_e=C(A+fe,"width")}else if(v===$t.TOP){const{offsetY:X}=ne(null,R+re);re=re-X,se=C(x-re,"height"),de=R-(se-x)}else if(v===$t.BOTTOM){const{offsetY:X}=ne(null,R+x+re);re=re-X,se=C(x+re,"height")}}t.value=t.value.map(fe=>{if(p.id!==fe.id)return fe;if(fe.type==="shape"&&"pathFormula"in fe&&fe.pathFormula){const re=by[fe.pathFormula];let X="";return"editable"in re?X=re.formula(_e,se,fe.keypoints):X=re.formula(_e,se),{...fe,left:z,top:de,width:_e,height:se,viewBox:[_e,se],path:X}}if(fe.type==="table"){let re=M+(se-x)/fe.data.length;return re=re<36?36:re,re===M?{...fe,left:z,width:_e}:{...fe,left:z,top:de,width:_e,height:se,cellMinHeight:re<36?36:re}}return{...fe,left:z,top:de,width:_e,height:se}})},$=G=>{y=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,e.value=[];const ee=G instanceof MouseEvent?G.pageX:G.changedTouches[0].pageX,ce=G instanceof MouseEvent?G.pageY:G.changedTouches[0].pageY;O===ee&&N===ce||(a.updateSlide({elements:t.value}),r.setScalingState(!1),u())};g?(document.ontouchmove=Z,document.ontouchend=$):(document.onmousemove=Z,document.onmouseup=$)},scaleMultiElement:(h,p,v)=>{let g=!0;const{minX:y,maxX:m,minY:R,maxY:A}=p,x=m-y,M=A-R,S=x/M,w=h.pageX,_=h.pageY,T=JSON.parse(JSON.stringify(t.value));document.onmousemove=O=>{if(!g)return;const N=O.pageX,P=O.pageY,C=(N-w)/n.value;let E=(P-_)/n.value;c.value&&((v===$t.RIGHT_BOTTOM||v===$t.LEFT_TOP)&&(E=C/S),(v===$t.LEFT_BOTTOM||v===$t.RIGHT_TOP)&&(E=-C/S));let F=y,Y=m,Q=R,K=A;v===$t.RIGHT_BOTTOM?(Y=m+C,K=A+E):v===$t.LEFT_BOTTOM?(F=y+C,K=A+E):v===$t.LEFT_TOP?(F=y+C,Q=R+E):v===$t.RIGHT_TOP?(Y=m+C,Q=R+E):v===$t.TOP?Q=R+E:v===$t.BOTTOM?K=A+E:v===$t.LEFT?F=y+C:v===$t.RIGHT&&(Y=m+C);const ne=Y-F,Z=K-Q;let $=ne/x,G=Z/M;$<=0&&($=0),G<=0&&(G=0),t.value=t.value.map(ee=>{if((ee.type==="image"||ee.type==="shape")&&i.value.includes(ee.id)){const ce=T.find(B=>B.id===ee.id);return{...ee,width:ce.width*$,height:ce.height*G,left:F+(ce.left-y)*$,top:Q+(ce.top-R)*G}}return ee})},document.onmouseup=O=>{g=!1,document.onmousemove=null,document.onmouseup=null,!(w===O.pageX&&_===O.pageY)&&(a.updateSlide({elements:t.value}),u())}}}},bGe=(t,e)=>{const n=Wt(),{activeElementIdList:r,activeGroupElementId:a,handleElementId:i,editorAreaFocus:o}=nt(n),{ctrlKeyState:s,ctrlOrShiftKeyActive:l}=nt(xc());return{selectElement:(u,f,d=!0)=>{if(o.value||n.setEditorareaFocus(!0),r.value.includes(f.id)){if(s.value&&d){const h=u instanceof MouseEvent?u.pageX:u.changedTouches[0].pageX,p=u instanceof MouseEvent?u.pageY:u.changedTouches[0].pageY,v=u.target;v.onmouseup=g=>{const y=g.pageX,m=g.pageY;if(h===y&&p===m){let R=[];if(f.groupId){const A=[];t.value.forEach(x=>{x.groupId===f.groupId&&A.push(x.id)}),R=r.value.filter(x=>!A.includes(x))}else R=r.value.filter(A=>A!==f.id);R.length>0&&n.setActiveElementIdList(R)}v.onmouseup=null}}else if(l.value){let h=[];if(f.groupId){const p=[];t.value.forEach(v=>{v.groupId===f.groupId&&p.push(v.id)}),h=r.value.filter(v=>!p.includes(v))}else h=r.value.filter(p=>p!==f.id);h.length>0&&n.setActiveElementIdList(h)}else if(i.value!==f.id)n.setHandleElementId(f.id);else if(a.value!==f.id){const h=u instanceof MouseEvent?u.pageX:u.changedTouches[0].pageX,p=u instanceof MouseEvent?u.pageY:u.changedTouches[0].pageY;u.target.onmouseup=v=>{const g=v.pageX,y=v.pageY;h===g&&p===y&&(n.setActiveGroupElementId(f.id),v.target.onmouseup=null)}}}else{let h=[];if(l.value?h=[...r.value,f.id]:h=[f.id],f.groupId){const p=[];t.value.forEach(v=>{v.groupId===f.groupId&&p.push(v.id)}),h=[...h,...p]}n.setActiveElementIdList(Vr.uniq(h)),n.setHandleElementId(f.id)}d&&e(u,f)}}},b5e=(t,e,n)=>{const r=Wt(),a=It(),{activeElementIdList:i,activeGroupElementId:o}=nt(r),{ctrlKeyState:s,shiftKeyState:l}=nt(xc()),{viewportRatio:c,viewportSize:u}=nt(a),{addHistorySnapshot:f}=Pn();return{dragElement:(h,p)=>{const v=!(h instanceof MouseEvent);if(v&&(!h.changedTouches||!h.changedTouches[0])||!i.value.includes(p.id))return;let g=!0;const y=u.value,m=u.value*c.value,R=5;let x=JSON.parse(JSON.stringify(t.value)).filter(se=>i.value.includes(se.id)),M=p,S=p.left,w=p.top,_=p.width,T="height"in p&&p.height?p.height:0,O="rotate"in p&&p.rotate?p.rotate:0;const N=v?h.changedTouches[0].pageX:h.pageX,P=v?h.changedTouches[0].pageY:h.pageY;let C=null,E=!1;const F=p.id===o.value,Y=i.value.length===1||F;let Q=[],K=[];for(const se of t.value){if(se.type==="line"||F&&se.id===p.id||!F&&i.value.includes(se.id))continue;let z,de,fe,re;if("rotate"in se&&se.rotate){const{xRange:De,yRange:Ye}=Ux({left:se.left,top:se.top,width:se.width,height:se.height,rotate:se.rotate});z=De[0],de=Ye[0],fe=De[1]-De[0],re=Ye[1]-Ye[0]}else z=se.left,de=se.top,fe=se.width,re=se.height;const X=z+fe,j=de+re,oe=de+re/2,ae=z+fe/2,le={value:de,range:[z,X]},ge={value:j,range:[z,X]},Se={value:oe,range:[z,X]},me={value:z,range:[de,j]},ye={value:X,range:[de,j]},Ve={value:ae,range:[de,j]};Q.push(le,ge,Se),K.push(me,ye,Ve)}const ne={value:0,range:[0,y]},Z={value:m,range:[0,y]},$={value:m/2,range:[0,y]},G={value:0,range:[0,m]},ee={value:y,range:[0,m]},ce={value:y/2,range:[0,m]};Q.push(ne,Z,$),K.push(G,ee,ce),Q=KF(Q),K=KF(K);const B=()=>{const se=JSON.parse(JSON.stringify(Y?[M]:x)),{groupIdMap:z,elIdMap:de}=HF(se),fe=se.map(oe=>(oe.id=de[oe.id],F&&oe.groupId?delete oe.groupId:oe.groupId&&(oe.groupId=z[oe.groupId]),oe));t.value=[...t.value,...fe],a.updateSlide({elements:t.value});const re=fe.map(oe=>oe.id),X=de[M.id],j=fe.find(oe=>oe.id===X);j&&(r.setActiveElementIdList(re),r.setHandleElementId(X),r.setActiveGroupElementId(""),M=j,x=fe,S=j.left,w=j.top,_=j.width,T="height"in j&&j.height?j.height:0,O="rotate"in j&&j.rotate?j.rotate:0,E=!0)},xe=se=>{const z=se instanceof MouseEvent?se.pageX:se.changedTouches[0].pageX,de=se instanceof MouseEvent?se.pageY:se.changedTouches[0].pageY;if(C!==!1&&(C=Math.abs(N-z)<R&&Math.abs(P-de)<R),!g||C)return;!E&&s.value&&B();let fe=(z-N)/n.value,re=(de-P)/n.value;l.value&&(Math.abs(fe)>Math.abs(re)&&(re=0),Math.abs(fe)<Math.abs(re)&&(fe=0));let X=S+fe,j=w+re,oe,ae,le,ge;if(Y)if(O){const{xRange:Ye,yRange:Je}=Ux({left:X,top:j,width:_,height:T,rotate:O});oe=Ye[0],ae=Ye[1],le=Je[0],ge=Je[1]}else M.type==="line"?(oe=X,ae=X+Math.max(M.start[0],M.end[0]),le=j,ge=j+Math.max(M.start[1],M.end[1])):(oe=X,ae=X+_,le=j,ge=j+T);else{const Ye=[],Je=[],wt=[],Lt=[];for(let Ne=0;Ne<x.length;Ne++){const Te=x[Ne],ze=Te.left+fe,He=Te.top+re,pt=Te.width,Ce="height"in Te&&Te.height?Te.height:0,ut="rotate"in Te&&Te.rotate?Te.rotate:0;if("rotate"in Te&&Te.rotate){const{xRange:je,yRange:it}=Ux({left:ze,top:He,width:pt,height:Ce,rotate:ut});Ye.push(je[0]),Je.push(it[0]),wt.push(je[1]),Lt.push(it[1])}else Te.type==="line"?(Ye.push(ze),Je.push(He),wt.push(ze+Math.max(Te.start[0],Te.end[0])),Lt.push(He+Math.max(Te.start[1],Te.end[1]))):(Ye.push(ze),Je.push(He),wt.push(ze+pt),Lt.push(He+Ce))}oe=Math.min(...Ye),ae=Math.max(...wt),le=Math.min(...Je),ge=Math.max(...Lt)}const Se=oe+(ae-oe)/2,me=le+(ge-le)/2,ye=[];let Ve=!1,De=!1;for(let Ye=0;Ye<Q.length;Ye++){const{value:Je,range:wt}=Q[Ye],Lt=Math.min(...wt,oe,ae),Ne=Math.max(...wt,oe,ae);Math.abs(le-Je)<R&&!De&&(j=j-(le-Je),De=!0,ye.push({type:"horizontal",axis:{x:Lt-50,y:Je},length:Ne-Lt+100})),Math.abs(ge-Je)<R&&!De&&(j=j-(ge-Je),De=!0,ye.push({type:"horizontal",axis:{x:Lt-50,y:Je},length:Ne-Lt+100})),Math.abs(me-Je)<R&&!De&&(j=j-(me-Je),De=!0,ye.push({type:"horizontal",axis:{x:Lt-50,y:Je},length:Ne-Lt+100}))}for(let Ye=0;Ye<K.length;Ye++){const{value:Je,range:wt}=K[Ye],Lt=Math.min(...wt,le,ge),Ne=Math.max(...wt,le,ge);Math.abs(oe-Je)<R&&!Ve&&(X=X-(oe-Je),Ve=!0,ye.push({type:"vertical",axis:{x:Je,y:Lt-50},length:Ne-Lt+100})),Math.abs(ae-Je)<R&&!Ve&&(X=X-(ae-Je),Ve=!0,ye.push({type:"vertical",axis:{x:Je,y:Lt-50},length:Ne-Lt+100})),Math.abs(Se-Je)<R&&!Ve&&(X=X-(Se-Je),Ve=!0,ye.push({type:"vertical",axis:{x:Je,y:Lt-50},length:Ne-Lt+100}))}if(e.value=ye,Y)t.value=t.value.map(Ye=>Ye.id===M.id?{...Ye,left:X,top:j}:Ye);else{const Ye=t.value.find(Je=>Je.id===M.id);if(!Ye)return;t.value=t.value.map(Je=>i.value.includes(Je.id)?Je.id===M.id?{...Je,left:X,top:j}:{...Je,left:Je.left+(X-Ye.left),top:Je.top+(j-Ye.top)}:Je)}},_e=se=>{g=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,e.value=[];const z=se instanceof MouseEvent?se.pageX:se.changedTouches[0].pageX,de=se instanceof MouseEvent?se.pageY:se.changedTouches[0].pageY;N===z&&P===de||(a.updateSlide({elements:t.value}),f())};v?(document.ontouchmove=xe,document.ontouchend=_e):(document.onmousemove=xe,document.onmouseup=_e)}}},xGe=t=>{const e=It(),{canvasScale:n}=nt(Wt()),{viewportSize:r,viewportRatio:a}=nt(e),{ctrlOrShiftKeyActive:i}=nt(xc()),{addHistorySnapshot:o}=Pn();return{dragLineElement:(l,c,u)=>{let f=!0;const d=8,h=l.pageX,p=l.pageY,v=[],g=r.value,y=r.value*a.value;v.push({x:0,y:0},{x:g/2,y:0},{x:g,y:0},{x:0,y:y/2},{x:g,y:y/2},{x:0,y},{x:g/2,y},{x:g,y});for(let m=0;m<t.value.length;m++){const R=t.value[m];if(R.type==="line"||R.rotate)continue;const A=R.left,x=R.top,M=R.width,S=R.height,w=A+M,_=x+S,T=x+S/2,O=A+M/2,N={x:O,y:x},P={x:O,y:_},C={x:A,y:T},E={x:w,y:T},F={x:A,y:x},Y={x:w,y:x},Q={x:A,y:_},K={x:w,y:_};v.push(N,P,C,E,F,Y,Q,K)}document.onmousemove=m=>{if(!f)return;const R=m.pageX,A=m.pageY,x=(R-h)/n.value,M=(A-p)/n.value;let S=c.left+c.start[0],w=c.top+c.start[1],_=c.left+c.end[0],T=c.top+c.end[1];const O=c.broken||c.broken2||c.curve||[0,0];let N=c.left+O[0],P=c.top+O[1];const[C,E]=c.cubic||[[0,0],[0,0]];let F=c.left+C[0],Y=c.top+C[1],Q=c.left+E[0],K=c.top+E[1];if(u===sl.START){S=S+x,w=w+M,Math.abs(S-_)<d&&(S=_),Math.abs(w-T)<d&&(w=T);for(const B of v){const{x:xe,y:_e}=B;if(Math.abs(xe-S)<d&&Math.abs(_e-w)<d){S=xe,w=_e;break}}}else if(u===sl.END){_=_+x,T=T+M,Math.abs(S-_)<d&&(_=S),Math.abs(w-T)<d&&(T=w);for(const B of v){const{x:xe,y:_e}=B;if(Math.abs(xe-_)<d&&Math.abs(_e-T)<d){_=xe,T=_e;break}}}else u===sl.C?(N=N+x,P=P+M,Math.abs(N-S)<d&&(N=S),Math.abs(P-w)<d&&(P=w),Math.abs(N-_)<d&&(N=_),Math.abs(P-T)<d&&(P=T),Math.abs(N-(S+_)/2)<d&&Math.abs(P-(w+T)/2)<d&&(N=(S+_)/2,P=(w+T)/2)):u===sl.C1?(F=F+x,Y=Y+M,Math.abs(F-S)<d&&(F=S),Math.abs(Y-w)<d&&(Y=w),Math.abs(F-_)<d&&(F=_),Math.abs(Y-T)<d&&(Y=T)):u===sl.C2&&(Q=Q+x,K=K+M,Math.abs(Q-S)<d&&(Q=S),Math.abs(K-w)<d&&(K=w),Math.abs(Q-_)<d&&(Q=_),Math.abs(K-T)<d&&(K=T));const ne=Math.min(S,_),Z=Math.min(w,T),$=Math.max(S,_),G=Math.max(w,T),ee=[0,0],ce=[$-ne,G-Z];S>_&&(ee[0]=$-ne,ce[0]=0),w>T&&(ee[1]=G-Z,ce[1]=0),t.value=t.value.map(B=>{if(B.id===c.id){const xe={...B,left:ne,top:Z,start:ee,end:ce};return u===sl.START||u===sl.END?(i.value?(c.broken&&(xe.broken=[N-ne,P-Z]),c.curve&&(xe.curve=[N-ne,P-Z]),c.cubic&&(xe.cubic=[[F-ne,Y-Z],[Q-ne,K-Z]])):(c.broken&&(xe.broken=[(ee[0]+ce[0])/2,(ee[1]+ce[1])/2]),c.curve&&(xe.curve=[(ee[0]+ce[0])/2,(ee[1]+ce[1])/2]),c.cubic&&(xe.cubic=[[(ee[0]+ce[0])/2,(ee[1]+ce[1])/2],[(ee[0]+ce[0])/2,(ee[1]+ce[1])/2]])),c.broken2&&(xe.broken2=[(ee[0]+ce[0])/2,(ee[1]+ce[1])/2])):u===sl.C?(c.broken&&(xe.broken=[N-ne,P-Z]),c.curve&&(xe.curve=[N-ne,P-Z]),c.broken2&&($-ne>=G-Z?xe.broken2=[N-ne,xe.broken2[1]]:xe.broken2=[xe.broken2[0],P-Z])):c.cubic&&(xe.cubic=[[F-ne,Y-Z],[Q-ne,K-Z]]),xe}return B})},document.onmouseup=m=>{f=!1,document.onmousemove=null,document.onmouseup=null;const R=m.pageX,A=m.pageY;h===R&&p===A||(e.updateSlide({elements:t.value}),o())}}}},SGe=(t,e)=>{const n=It(),{addHistorySnapshot:r}=Pn();return{moveShapeKeypoint:(i,o,s=0)=>{const l=!(i instanceof MouseEvent);if(l&&(!i.changedTouches||!i.changedTouches[0]))return;let c=!0;const u=l?i.changedTouches[0].pageX:i.pageX,f=l?i.changedTouches[0].pageY:i.pageY,d=o.keypoints,h=by[o.pathFormula];let p=null;if("editable"in h&&h.editable){const y=h.getBaseSize[s],m=h.range[s],R=h.relative[s],A=d[s],x=y(o.width,o.height),M=x*A,[S,w]=m;p={baseSize:x,originPos:M,min:S,max:w,relative:R}}const v=y=>{if(!c)return;const m=y instanceof MouseEvent?y.pageX:y.changedTouches[0].pageX,R=y instanceof MouseEvent?y.pageY:y.changedTouches[0].pageY,A=(m-u)/e.value,x=(R-f)/e.value;t.value=t.value.map(M=>{if(M.id===o.id&&p){const{baseSize:S,originPos:w,min:_,max:T,relative:O}=p,N=M;let P=0;O==="center"?P=(w-A*2)/S:O==="left"?P=(w+A)/S:O==="right"?P=(w-A)/S:O==="top"?P=(w+x)/S:O==="bottom"?P=(w-x)/S:O==="left_bottom"?P=(w+A)/S:O==="right_bottom"?P=(w-A)/S:O==="top_right"?P=(w+x)/S:O==="bottom_right"&&(P=(w-x)/S),P<_&&(P=_),P>T&&(P=T);let C=[];return Array.isArray(d)?(C=[...d],C[s]=P):C=[P],{...M,keypoints:C,path:h.formula(N.width,N.height,C)}}return M})},g=y=>{c=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null;const m=y instanceof MouseEvent?y.pageX:y.changedTouches[0].pageX,R=y instanceof MouseEvent?y.pageY:y.changedTouches[0].pageY;u===m&&f===R||(n.updateSlide({elements:t.value}),r())};l?(document.ontouchmove=v,document.ontouchend=g):(document.onmousemove=v,document.onmouseup=g)}}},MGe=t=>{const e=Wt(),{canvasScale:n,creatingElement:r}=nt(e),a=u=>{const{start:f,end:d}=u;if(!t.value)return;const h=t.value.getBoundingClientRect(),[p,v]=f,[g,y]=d,m=Math.min(p,g),R=Math.max(p,g),A=Math.min(v,y),x=Math.max(v,y),M=(m-h.x)/n.value,S=(A-h.y)/n.value,w=(R-m)/n.value,_=(x-A)/n.value;return{left:M,top:S,width:w,height:_}},i=u=>{const{start:f,end:d}=u;if(!t.value)return;const h=t.value.getBoundingClientRect(),[p,v]=f,[g,y]=d,m=Math.min(p,g),R=Math.max(p,g),A=Math.min(v,y),x=Math.max(v,y),M=(m-h.x)/n.value,S=(A-h.y)/n.value,w=(R-m)/n.value,_=(x-A)/n.value;return{left:M,top:S,start:[p===m?0:w,v===A?0:_],end:[g===m?0:w,y===A?0:_]}},{createTextElement:o,createShapeElement:s,createLineElement:l}=M0();return{formatCreateSelection:a,insertElementFromCreateSelection:u=>{if(!r.value)return;const f=r.value.type;if(f==="text"){const d=a(u);d&&o(d,{vertical:r.value.vertical})}else if(f==="shape"){const d=a(u);d&&s(d,r.value.data)}else if(f==="line"){const d=i(u);d&&l(d,r.value.data)}e.setCreatingElement(null)}}},qD=()=>{const t=It(),{activeElementIdList:e,activeElementList:n}=nt(Wt()),{currentSlide:r,viewportRatio:a,viewportSize:i}=nt(t),{addHistorySnapshot:o}=Pn();return{alignElementToCanvas:l=>{const c=i.value,u=i.value*a.value,{minX:f,maxX:d,minY:h,maxY:p}=o0(n.value),v=JSON.parse(JSON.stringify(r.value.elements));for(const g of v)if(e.value.includes(g.id)){if(l===qn.CENTER){const y=h+(p-h)/2-u/2,m=f+(d-f)/2-c/2;g.top=g.top-y,g.left=g.left-m}if(l===qn.TOP){const y=h-0;g.top=g.top-y}else if(l===qn.VERTICAL){const y=h+(p-h)/2-u/2;g.top=g.top-y}else if(l===qn.BOTTOM){const y=p-u;g.top=g.top-y}else if(l===qn.LEFT){const y=f-0;g.left=g.left-y}else if(l===qn.HORIZONTAL){const y=f+(d-f)/2-c/2;g.left=g.left-y}else if(l===qn.RIGHT){const y=d-c;g.left=g.left-y}}t.updateSlide({elements:v}),o()}}},cg=t=>({shadowStyle:Fe(()=>{if(t.value){const{h:n,v:r,blur:a,color:i}=t.value;return`${n}px ${r}px ${a}px ${i}`}return""})}),eV=(t,e)=>({flipStyle:Fe(()=>{let r="";return t.value&&e.value?r="rotateX(180deg) rotateY(180deg)":e.value?r="rotateX(180deg)":t.value&&(r="rotateY(180deg)"),r})});var x5e=(t=>(t.RECT="rect",t.ELLIPSE="ellipse",t.POLYGON="polygon",t))(x5e||{});const C$={rect:{name:"矩形",type:"rect",radius:"0",style:""},snip1Rect:{name:"矩形2",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%)",createPath:(t,e)=>`M 0 0 L ${t*.8} 0 L ${t} ${e*.2} L ${t} ${e} L 0 ${e} Z`},snip2DiagRect:{name:"矩形3",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 20% 100%, 0% 80%)",createPath:(t,e)=>`M 0 0 L ${t*.8} 0 L ${t} ${e*.2} L ${t} ${e} L ${t*.2} ${e} L 0 ${e*.8} Z`},roundRect:{name:"圆角矩形",type:"rect",radius:"10px",style:"inset(0 round 10px)"},ellipse:{name:"圆形",type:"ellipse",style:"ellipse(50% 50% at 50% 50%)"},triangle:{name:"三角形",type:"polygon",style:"polygon(50% 0%, 0% 100%, 100% 100%)",createPath:(t,e)=>`M ${t*.5} 0 L 0 ${e} L ${t} ${e} Z`},rtTriangle:{name:"直角三角形",type:"polygon",style:"polygon(0% 0%, 0% 100%, 100% 100%)",createPath:(t,e)=>`M 0 0 L 0 ${e} L ${t} ${e} Z`},triangleReverse:{name:"倒三角形",type:"polygon",style:"polygon(50% 100%, 0% 0%, 100% 0%)",createPath:(t,e)=>`M ${t*.5} ${e} L 0 0 L ${t} 0 Z`},diamond:{name:"菱形",type:"polygon",style:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",createPath:(t,e)=>`M ${t*.5} 0 L ${t} ${e*.5} L ${t*.5} ${e} L 0 ${e*.5} Z`},pentagon:{name:"五边形",type:"polygon",style:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)",createPath:(t,e)=>`M ${t*.5} 0 L ${t} ${.38*e} L ${.82*t} ${e} L ${.18*t} ${e} L 0 ${.38*e} Z`},hexagon:{name:"六边形",type:"polygon",style:"polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%)",createPath:(t,e)=>`M ${t*.2} 0 L ${t*.8} 0 L ${t} ${e*.5} L ${t*.8} ${e} L ${t*.2} ${e} L 0 ${e*.5} Z`},heptagon:{name:"七边形",type:"polygon",style:"polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%)",createPath:(t,e)=>`M ${t*.5} 0 L ${t*.9} ${e*.2} L ${t} ${e*.6} L ${t*.75} ${e} L ${t*.25} ${e} L 0 ${e*.6} L ${t*.1} ${e*.2} Z`},octagon:{name:"八边形",type:"polygon",style:"polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)",createPath:(t,e)=>`M ${t*.3} 0 L ${t*.7} 0 L ${t} ${e*.3} L ${t} ${e*.7} L ${t*.7} ${e} L ${t*.3} ${e} L 0 ${e*.7} L 0 ${e*.3} Z`},chevron:{name:"人字形",type:"polygon",style:"polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)",createPath:(t,e)=>`M ${t*.75} 0 L ${t} ${e*.5} L ${t*.75} ${e} L 0 ${e} L ${t*.25} ${e*.5} L 0 0 Z`},homePlate:{name:"点",type:"polygon",style:"polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)",createPath:(t,e)=>`M 0 0 L ${t*.75} 0 L ${t} ${e*.5} L ${t*.75} ${e} L 0 ${e} Z`},rightArrow:{name:"箭头",type:"polygon",style:"polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)",createPath:(t,e)=>`M 0 ${e*.2} L ${t*.6} ${e*.2} L ${t*.6} 0 L ${t} ${e*.5} L ${t*.6} ${e} L ${t*.6} ${e*.8} L 0 ${e*.8} Z`},parallelogram:{name:"平行四边形",type:"polygon",style:"polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%)",createPath:(t,e)=>`M ${t*.3} 0 L ${t} 0 L ${t*.7} ${e} L 0 ${e} Z`},parallelogramReverse:{name:"反平行四边形",type:"polygon",style:"polygon(30% 100%, 100% 100%, 70% 0%, 0% 0%)",createPath:(t,e)=>`M ${t*.3} ${e} L ${t} ${e} L ${t*.7} 0 L 0 0 Z`},trapezoid:{name:"梯形",type:"polygon",style:"polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%)",createPath:(t,e)=>`M ${t*.25} 0 L ${t*.75} 0 L ${t} ${e} L 0 ${e} Z`},trapezoidReverse:{name:"倒梯形",type:"polygon",style:"polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%)",createPath:(t,e)=>`M 0 0 L ${t} 0 L ${t*.75} ${e} L ${t*.25} ${e} Z`}},uq=t=>{const e=Fe(()=>{let r=C$.rect;if(t.value.clip){const a=t.value.clip.shape||x5e.RECT;r=C$[a]}return r.radius!==void 0&&t.value.radius&&(r={...r,radius:`${t.value.radius}px`,style:`inset(0 round ${t.value.radius}px)`}),r}),n=Fe(()=>{if(!t.value.clip)return{top:"0",left:"0",width:"100%",height:"100%"};const[r,a]=t.value.clip.range,i=(a[0]-r[0])/100,o=(a[1]-r[1])/100,s=r[0]/i,l=r[1]/o;return{left:-s+"%",top:-l+"%",width:100/i+"%",height:100/o+"%"}});return{clipShape:e,imgPosition:n}},S5e=t=>({filter:Fe(()=>{if(!t.value)return"";let n="";const r=Object.keys(t.value);for(const a of r)n+=`${a}(${t.value[a]}) `;return n})}),DS=t=>{const e=Fe(()=>{var i;return((i=t.value)==null?void 0:i.width)??0}),n=Fe(()=>{var i;return((i=t.value)==null?void 0:i.style)||"solid"}),r=Fe(()=>{var i;return((i=t.value)==null?void 0:i.color)||"#d14424"}),a=Fe(()=>{const i=e.value;return n.value==="dashed"?i<=6?`${i*4.5} ${i*2}`:`${i*4} ${i*1.5}`:n.value==="dotted"?i<=6?`${i*1.8} ${i*1.6}`:`${i*1.5} ${i*1.2}`:"0 0"});return{outlineWidth:e,outlineStyle:n,outlineColor:r,strokeDashArray:a}},_Ge=["width","height"],wGe=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"],LGe=tt({__name:"ImageRectOutline",props:{width:{},height:{},outline:{},radius:{default:"0"}},setup(t){const e=t,{outlineWidth:n,outlineColor:r,strokeDashArray:a}=DS(wS(e,"outline"));return(i,o)=>i.outline?(V(),H("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:i.width,height:i.height},[I("rect",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",rx:i.radius,ry:i.radius,width:i.width,height:i.height,stroke:te(r),"stroke-width":te(n),"stroke-dasharray":te(a)},null,8,wGe)],8,_Ge)):at("",!0)}}),TGe=lt(LGe,[["__scopeId","data-v-801a8465"]]),OGe=["width","height"],PGe=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"],CGe=tt({__name:"ImageEllipseOutline",props:{width:{},height:{},outline:{}},setup(t){const e=t,{outlineWidth:n,outlineColor:r,strokeDashArray:a}=DS(wS(e,"outline"));return(i,o)=>i.outline?(V(),H("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:i.width,height:i.height},[I("ellipse",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",cx:i.width/2,cy:i.height/2,rx:i.width/2,ry:i.height/2,stroke:te(r),"stroke-width":te(n),"stroke-dasharray":te(a)},null,8,PGe)],8,OGe)):at("",!0)}}),NGe=lt(CGe,[["__scopeId","data-v-2528d7e2"]]),IGe=["width","height"],kGe=["d","stroke","stroke-width","stroke-dasharray"],EGe=tt({__name:"ImagePolygonOutline",props:{width:{},height:{},createPath:{type:Function},outline:{}},setup(t){const e=t,{outlineWidth:n,outlineColor:r,strokeDashArray:a}=DS(wS(e,"outline"));return(i,o)=>i.outline?(V(),H("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:i.width,height:i.height},[I("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:i.createPath(i.width,i.height),stroke:te(r),"stroke-width":te(n),"stroke-dasharray":te(a)},null,8,kGe)],8,IGe)):at("",!0)}}),FGe=lt(EGe,[["__scopeId","data-v-04ee0d7b"]]),XGe={class:"image-outline"},M5e=tt({__name:"index",props:{elementInfo:{}},setup(t){const e=t,n=Fe(()=>e.elementInfo),{clipShape:r}=uq(n);return(a,i)=>(V(),H("div",XGe,[te(r).type==="rect"?(V(),Ue(TGe,{key:0,width:a.elementInfo.width,height:a.elementInfo.height,radius:te(r).radius,outline:a.elementInfo.outline},null,8,["width","height","radius","outline"])):te(r).type==="ellipse"?(V(),Ue(NGe,{key:1,width:a.elementInfo.width,height:a.elementInfo.height,outline:a.elementInfo.outline},null,8,["width","height","outline"])):te(r).type==="polygon"?(V(),Ue(FGe,{key:2,width:a.elementInfo.width,height:a.elementInfo.height,outline:a.elementInfo.outline,createPath:te(r).createPath},null,8,["width","height","outline","createPath"])):at("",!0)]))}}),DGe=["src"],VGe=["src"],UGe=["onMousedown"],WGe=["onMousedown"],YGe=tt({__name:"ImageClipHandler",props:{src:{},clipPath:{},width:{},height:{},top:{},left:{},rotate:{},clipData:{}},emits:["clip"],setup(t,{emit:e}){const n=t,r=e,{canvasScale:a}=nt(Wt()),{ctrlOrShiftKeyActive:i}=nt(xc()),o=we({top:"0",left:"0"}),s=we(!1),l=we(null),c=()=>{const[w,_]=n.clipData?n.clipData.range:[[0,0],[100,100]],T=(_[0]-w[0])/100,O=(_[1]-w[1])/100,N=w[0]/T,P=w[1]/O;return{widthScale:T,heightScale:O,left:N,top:P}},u=Fe(()=>{const{widthScale:w,heightScale:_,left:T,top:O}=c();return{left:-T,top:-O,width:100/w,height:100/_}}),f=Fe(()=>({top:u.value.top+"%",left:u.value.left+"%",width:u.value.width+"%",height:u.value.height+"%"})),d=we({top:0,left:0,width:0,height:0}),h=Fe(()=>{const{top:w,left:_,width:T,height:O}=d.value;return{top:w+"%",left:_+"%",width:T+"%",height:O+"%"}}),p=Fe(()=>{const w=u.value.width,_=u.value.height,{top:T,left:O,width:N,height:P}=d.value;return{left:-O*(100/N)+"%",top:-T*(100/P)+"%",width:w/N*100+"%",height:_/P*100+"%"}}),v=()=>{const{left:w,top:_}=c();d.value={left:w,top:_,width:100,height:100},o.value={top:-_+"%",left:-w+"%"}},g=()=>{if(s.value)return;if(!l.value){r("clip",null);return}const{left:w,top:_}=c(),T={left:(d.value.left-w)/100*n.width,top:(d.value.top-_)/100*n.height,width:(d.value.width-100)/100*n.width,height:(d.value.height-100)/100*n.height},O={range:l.value,position:T};r("clip",O)},y=w=>{w.key.toUpperCase()===Ht.ENTER&&g()};mn(()=>{v(),document.addEventListener("keydown",y)}),or(()=>{document.removeEventListener("keydown",y)});const m=()=>{const w={left:parseInt(p.value.left),top:parseInt(p.value.top),width:parseInt(p.value.width),height:parseInt(p.value.height)},_=100/w.width,T=100/w.height,O=[-w.left*_,-w.top*T],N=[_*100+O[0],T*100+O[1]];l.value=[O,N]},R=w=>{s.value=!0;let _=!0;const T=w.pageX,O=w.pageY,N=u.value,P={...d.value};document.onmousemove=C=>{if(!_)return;const E=C.pageX,F=C.pageY,Y=(E-T)/a.value,Q=(F-O)/a.value,K=Math.sqrt(Y*Y+Q*Q),Z=Math.atan2(Q,Y)-n.rotate/180*Math.PI,$=K*Math.cos(Z)/n.width*100,G=K*Math.sin(Z)/n.height*100;let ee=P.left+$,ce=P.top+G;ee<0?ee=0:ee+P.width>N.width&&(ee=N.width-P.width),ce<0?ce=0:ce+P.height>N.height&&(ce=N.height-P.height),d.value={...d.value,left:ee,top:ce}},document.onmouseup=()=>{_=!1,document.onmousemove=null,document.onmouseup=null,m(),setTimeout(()=>{s.value=!1},0)}},A=(w,_)=>{s.value=!0;let T=!0;const O=50/n.width*100,N=50/n.height*100,P=w.pageX,C=w.pageY,E=u.value,F={...d.value},Y=d.value.width/d.value.height;document.onmousemove=Q=>{if(!T)return;const K=Q.pageX,ne=Q.pageY,Z=(K-P)/a.value,$=(ne-C)/a.value,G=Math.sqrt(Z*Z+$*$),ce=Math.atan2($,Z)-n.rotate/180*Math.PI;let B=G*Math.cos(ce)/n.width*100,xe=G*Math.sin(ce)/n.height*100;i.value&&((_===$t.RIGHT_BOTTOM||_===$t.LEFT_TOP)&&(xe=B/Y),(_===$t.LEFT_BOTTOM||_===$t.RIGHT_TOP)&&(xe=-B/Y));let _e,se,z,de;_===$t.LEFT_TOP?(F.left+B<0&&(B=-F.left),F.top+xe<0&&(xe=-F.top),F.width-B<O&&(B=F.width-O),F.height-xe<N&&(xe=F.height-N),z=F.width-B,de=F.height-xe,_e=F.left+B,se=F.top+xe):_===$t.RIGHT_TOP?(F.left+F.width+B>E.width&&(B=E.width-(F.left+F.width)),F.top+xe<0&&(xe=-F.top),F.width+B<O&&(B=O-F.width),F.height-xe<N&&(xe=F.height-N),z=F.width+B,de=F.height-xe,_e=F.left,se=F.top+xe):_===$t.LEFT_BOTTOM?(F.left+B<0&&(B=-F.left),F.top+F.height+xe>E.height&&(xe=E.height-(F.top+F.height)),F.width-B<O&&(B=F.width-O),F.height+xe<N&&(xe=N-F.height),z=F.width-B,de=F.height+xe,_e=F.left+B,se=F.top):_===$t.RIGHT_BOTTOM?(F.left+F.width+B>E.width&&(B=E.width-(F.left+F.width)),F.top+F.height+xe>E.height&&(xe=E.height-(F.top+F.height)),F.width+B<O&&(B=O-F.width),F.height+xe<N&&(xe=N-F.height),z=F.width+B,de=F.height+xe,_e=F.left,se=F.top):_===$t.TOP?(F.top+xe<0&&(xe=-F.top),F.height-xe<N&&(xe=F.height-N),z=F.width,de=F.height-xe,_e=F.left,se=F.top+xe):_===$t.BOTTOM?(F.top+F.height+xe>E.height&&(xe=E.height-(F.top+F.height)),F.height+xe<N&&(xe=N-F.height),z=F.width,de=F.height+xe,_e=F.left,se=F.top):_===$t.LEFT?(F.left+B<0&&(B=-F.left),F.width-B<O&&(B=F.width-O),z=F.width-B,de=F.height,_e=F.left+B,se=F.top):(F.left+F.width+B>E.width&&(B=E.width-(F.left+F.width)),F.width+B<O&&(B=O-F.width),de=F.height,z=F.width+B,_e=F.left,se=F.top),d.value={left:_e,top:se,width:z,height:de}},document.onmouseup=()=>{T=!1,document.onmousemove=null,document.onmouseup=null,m(),setTimeout(()=>s.value=!1,0)}},x=Fe(()=>{const w="rotate-",_=n.rotate;return _>-22.5&&_<=22.5?w+0:_>22.5&&_<=67.5?w+45:_>67.5&&_<=112.5?w+90:_>112.5&&_<=157.5?w+135:_>157.5||_<=-157.5?w+0:_>-157.5&&_<=-112.5?w+45:_>-112.5&&_<=-67.5?w+90:_>-67.5&&_<=-22.5?w+135:w+0}),M=[$t.LEFT_TOP,$t.RIGHT_TOP,$t.LEFT_BOTTOM,$t.RIGHT_BOTTOM],S=[$t.TOP,$t.BOTTOM,$t.LEFT,$t.RIGHT];return(w,_)=>{const T=pr("click-outside");return yt((V(),H("div",{class:"image-clip-handler",style:We(o.value)},[I("img",{class:"bottom-img",src:w.src,draggable:!1,alt:"",style:We(f.value)},null,12,DGe),I("div",{class:"top-image-content",style:We({...h.value,clipPath:w.clipPath})},[I("img",{class:"top-img",src:w.src,draggable:!1,alt:"",style:We(p.value)},null,12,VGe)],4),I("div",{class:"operate",style:We(h.value),onMousedown:_[0]||(_[0]=on(O=>R(O),["stop"]))},[(V(),H(qe,null,bt(M,O=>I("div",{class:mt(["clip-point",O,x.value]),key:O,onMousedown:on(N=>A(N,O),["stop"])},_[1]||(_[1]=[I("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[I("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 16 L 4 16 L 4 4 L 16 4 L 16 0 Z"})],-1)]),42,UGe)),64)),(V(),H(qe,null,bt(S,O=>I("div",{class:mt(["clip-point",O,x.value]),key:O,onMousedown:on(N=>A(N,O),["stop"])},_[2]||(_[2]=[I("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[I("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 4 L 16 4 Z"})],-1)]),42,WGe)),64))],36)],4)),[[T,g]])}}}),BGe=lt(YGe,[["__scopeId","data-v-f5a86b3f"]]),ZGe=["src"],QGe=tt({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(t){const e=t,n=Wt(),r=It(),{clipingImageElementId:a}=nt(n),i=Fe(()=>a.value===e.elementInfo.id),{addHistorySnapshot:o}=Pn(),s=Fe(()=>e.elementInfo.shadow),{shadowStyle:l}=cg(s),c=Fe(()=>e.elementInfo.flipH),u=Fe(()=>e.elementInfo.flipV),{flipStyle:f}=eV(c,u),d=Fe(()=>e.elementInfo),{clipShape:h,imgPosition:p}=uq(d),v=Fe(()=>e.elementInfo.filters),{filter:g}=S5e(v),y=R=>{e.elementInfo.lock||(R.stopPropagation(),e.selectElement(R,e.elementInfo))},m=R=>{if(n.setClipingImageElementId(""),!R)return;const{range:A,position:x}=R,M=e.elementInfo.clip||{shape:"rect",range:[[0,0],[100,100]]},S=e.elementInfo.left+x.left,w=e.elementInfo.top+x.top,_=e.elementInfo.width+x.width,T=e.elementInfo.height+x.height;let O=0,N=0;if(e.elementInfo.rotate){const C=S+_/2-(e.elementInfo.left+e.elementInfo.width/2),E=-(w+T/2-(e.elementInfo.top+e.elementInfo.height/2)),F=-e.elementInfo.rotate*Math.PI/180,Y=C*Math.cos(F)-E*Math.sin(F),Q=C*Math.sin(F)+E*Math.cos(F);O=Y-C,N=-(Q-E)}const P={clip:{...M,range:A},left:S+O,top:w+N,width:_,height:T};r.updateElement({id:e.elementInfo.id,props:P}),o()};return(R,A)=>{const x=pr("contextmenu");return V(),H("div",{class:mt(["editable-element-image",{lock:R.elementInfo.lock}]),style:We({top:R.elementInfo.top+"px",left:R.elementInfo.left+"px",width:R.elementInfo.width+"px",height:R.elementInfo.height+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${R.elementInfo.rotate}deg)`})},[i.value?(V(),Ue(BGe,{key:0,src:R.elementInfo.src,clipData:R.elementInfo.clip,width:R.elementInfo.width,height:R.elementInfo.height,top:R.elementInfo.top,left:R.elementInfo.left,rotate:R.elementInfo.rotate,clipPath:te(h).style,onClip:A[0]||(A[0]=M=>m(M))},null,8,["src","clipData","width","height","top","left","rotate","clipPath"])):yt((V(),H("div",{key:1,class:"element-content",style:We({filter:te(l)?`drop-shadow(${te(l)})`:"",transform:te(f)}),onMousedown:A[2]||(A[2]=M=>y(M)),onTouchstart:A[3]||(A[3]=M=>y(M))},[U(M5e,{elementInfo:R.elementInfo},null,8,["elementInfo"]),I("div",{class:"image-content",style:We({clipPath:te(h).style})},[I("img",{src:R.elementInfo.src,draggable:!1,style:We({top:te(p).top,left:te(p).left,width:te(p).width,height:te(p).height,filter:te(g)}),onDragstart:A[1]||(A[1]=on(()=>{},["prevent"])),alt:""},null,44,ZGe),R.elementInfo.colorMask?(V(),H("div",{key:0,class:"color-mask",style:We({backgroundColor:R.elementInfo.colorMask})},null,4)):at("",!0)],4)],36)),[[x,R.contextmenus]])],4)],6)}}}),_5e=lt(QGe,[["__scopeId","data-v-66e740ba"]]),KGe=["width","height"],HGe=["d","stroke","stroke-width","stroke-dasharray"],GGe=tt({__name:"ElementOutline",props:{width:{},height:{},outline:{}},setup(t){const e=t,{outlineWidth:n,outlineColor:r,strokeDashArray:a}=DS(wS(e,"outline"));return(i,o)=>i.outline?(V(),H("svg",{key:0,class:"element-outline",overflow:"visible",width:i.width,height:i.height},[I("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:`M0,0 L${i.width},0 L${i.width},${i.height} L0,${i.height} Z`,stroke:te(r),"stroke-width":te(n),"stroke-dasharray":te(a)},null,8,HGe)],8,KGe)):at("",!0)}}),tV=lt(GGe,[["__scopeId","data-v-813f8c74"]]),No=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Ow=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let N$=null;const Gp=function(t,e,n){let r=N$||(N$=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},$Ge=function(){N$=null},hy=function(t,e,n,r){return n&&(oge(t,e,n,r,-1)||oge(t,e,n,r,1))},zGe=/^(img|br|input|textarea|hr)$/i;function oge(t,e,n,r,a){for(;;){if(t==n&&e==r)return!0;if(e==(a<0?0:ch(t))){let i=t.parentNode;if(!i||i.nodeType!=1||w8(t)||zGe.test(t.nodeName)||t.contentEditable=="false")return!1;e=No(t)+(a<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(a<0?-1:0)],t.contentEditable=="false")return!1;e=a<0?ch(t):0}else return!1}}function ch(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function JGe(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=ch(t)}else if(t.parentNode&&!w8(t))e=No(t),t=t.parentNode;else return null}}function jGe(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!w8(t))e=No(t)+1,t=t.parentNode;else return null}}function qGe(t,e,n){for(let r=e==0,a=e==ch(t);r||a;){if(t==n)return!0;let i=No(t);if(t=t.parentNode,!t)return!1;r=r&&i==0,a=a&&i==ch(t)}}function w8(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const nV=function(t){return t.focusNode&&hy(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function T2(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function e$e(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function t$e(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const Oh=typeof navigator<"u"?navigator:null,sge=typeof document<"u"?document:null,ug=Oh&&Oh.userAgent||"",I$=/Edge\/(\d+)/.exec(ug),w5e=/MSIE \d/.exec(ug),k$=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ug),bl=!!(w5e||k$||I$),P1=w5e?document.documentMode:k$?+k$[1]:I$?+I$[1]:0,Vf=!bl&&/gecko\/(\d+)/i.test(ug);Vf&&+(/Firefox\/(\d+)/.exec(ug)||[0,0])[1];const E$=!bl&&/Chrome\/(\d+)/.exec(ug),ds=!!E$,L5e=E$?+E$[1]:0,Vs=!bl&&!!Oh&&/Apple Computer/.test(Oh.vendor),fS=Vs&&(/Mobile\/\w+/.test(ug)||!!Oh&&Oh.maxTouchPoints>2),ou=fS||(Oh?/Mac/.test(Oh.platform):!1),n$e=Oh?/Win/.test(Oh.platform):!1,_f=/Android \d/.test(ug),L8=!!sge&&"webkitFontSmoothing"in sge.documentElement.style,r$e=L8?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function a$e(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Up(t,e){return typeof t=="number"?t:t[e]}function i$e(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function lge(t,e,n){let r=t.someProp("scrollThreshold")||0,a=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let o=n||t.dom;o;o=Ow(o)){if(o.nodeType!=1)continue;let s=o,l=s==i.body,c=l?a$e(i):i$e(s),u=0,f=0;if(e.top<c.top+Up(r,"top")?f=-(c.top-e.top+Up(a,"top")):e.bottom>c.bottom-Up(r,"bottom")&&(f=e.bottom-e.top>c.bottom-c.top?e.top+Up(a,"top")-c.top:e.bottom-c.bottom+Up(a,"bottom")),e.left<c.left+Up(r,"left")?u=-(c.left-e.left+Up(a,"left")):e.right>c.right-Up(r,"right")&&(u=e.right-c.right+Up(a,"right")),u||f)if(l)i.defaultView.scrollBy(u,f);else{let d=s.scrollLeft,h=s.scrollTop;f&&(s.scrollTop+=f),u&&(s.scrollLeft+=u);let p=s.scrollLeft-d,v=s.scrollTop-h;e={left:e.left-p,top:e.top-v,right:e.right-p,bottom:e.bottom-v}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(o).position))break}}function o$e(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,a;for(let i=(e.left+e.right)/2,o=n+1;o<Math.min(innerHeight,e.bottom);o+=5){let s=t.root.elementFromPoint(i,o);if(!s||s==t.dom||!t.dom.contains(s))continue;let l=s.getBoundingClientRect();if(l.top>=n-20){r=s,a=l.top;break}}return{refDOM:r,refTop:a,stack:T5e(t.dom)}}function T5e(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=Ow(r));return e}function s$e({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;O5e(n,r==0?0:r-e)}function O5e(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:a,left:i}=t[n];r.scrollTop!=a+e&&(r.scrollTop=a+e),r.scrollLeft!=i&&(r.scrollLeft=i)}}let xb=null;function l$e(t){if(t.setActive)return t.setActive();if(xb)return t.focus(xb);let e=T5e(t);t.focus(xb==null?{get preventScroll(){return xb={preventScroll:!0},!0}}:void 0),xb||(xb=!1,O5e(e,0))}function P5e(t,e){let n,r=2e8,a,i=0,o=e.top,s=e.top,l,c;for(let u=t.firstChild,f=0;u;u=u.nextSibling,f++){let d;if(u.nodeType==1)d=u.getClientRects();else if(u.nodeType==3)d=Gp(u).getClientRects();else continue;for(let h=0;h<d.length;h++){let p=d[h];if(p.top<=o&&p.bottom>=s){o=Math.max(p.bottom,o),s=Math.min(p.top,s);let v=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(v<r){n=u,r=v,a=v&&n.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,u.nodeType==1&&v&&(i=f+(e.left>=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!l&&p.left<=e.left&&p.right>=e.left&&(l=u,c={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(i=f+1)}}return!n&&l&&(n=l,a=c,r=0),n&&n.nodeType==3?c$e(n,a):!n||r&&n.nodeType==1?{node:t,offset:i}:P5e(n,a)}function c$e(t,e){let n=t.nodeValue.length,r=document.createRange();for(let a=0;a<n;a++){r.setEnd(t,a+1),r.setStart(t,a);let i=e1(r,1);if(i.top!=i.bottom&&fq(e,i))return{node:t,offset:a+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function fq(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function u$e(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function f$e(t,e,n){let{node:r,offset:a}=P5e(e,n),i=-1;if(r.nodeType==1&&!r.firstChild){let o=r.getBoundingClientRect();i=o.left!=o.right&&n.left>(o.left+o.right)/2?1:-1}return t.docView.posFromDOM(r,a,i)}function d$e(t,e,n,r){let a=-1;for(let i=e,o=!1;i!=t.dom;){let s=t.docView.nearestDesc(i,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)){let l=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&(!o&&l.left>r.left||l.top>r.top?a=s.posBefore:(!o&&l.right<r.left||l.bottom<r.top)&&(a=s.posAfter),o=!0),!s.contentDOM&&a<0&&!s.node.isText)return(s.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?s.posBefore:s.posAfter}i=s.dom.parentNode}return a>-1?a:t.docView.posFromDOM(e,n,-1)}function C5e(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let a=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),i=a;;){let o=t.childNodes[i];if(o.nodeType==1){let s=o.getClientRects();for(let l=0;l<s.length;l++){let c=s[l];if(fq(e,c))return C5e(o,e,c)}}if((i=(i+1)%r)==a)break}return t}function h$e(t,e){let n=t.dom.ownerDocument,r,a=0,i=t$e(n,e.left,e.top);i&&({node:r,offset:a}=i);let o=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),s;if(!o||!t.dom.contains(o.nodeType!=1?o.parentNode:o)){let c=t.dom.getBoundingClientRect();if(!fq(e,c)||(o=C5e(t.dom,e,c),!o))return null}if(Vs)for(let c=o;r&&c;c=Ow(c))c.draggable&&(r=void 0);if(o=u$e(o,e),r){if(Vf&&r.nodeType==1&&(a=Math.min(a,r.childNodes.length),a<r.childNodes.length)){let u=r.childNodes[a],f;u.nodeName=="IMG"&&(f=u.getBoundingClientRect()).right<=e.left&&f.bottom>e.top&&a++}let c;L8&&a&&r.nodeType==1&&(c=r.childNodes[a-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&a--,r==t.dom&&a==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?s=t.state.doc.content.size:(a==0||r.nodeType!=1||r.childNodes[a-1].nodeName!="BR")&&(s=d$e(t,r,a,e))}s==null&&(s=f$e(t,o,e));let l=t.docView.nearestDesc(o,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function cge(t){return t.top<t.bottom||t.left<t.right}function e1(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(cge(r))return r}return Array.prototype.find.call(n,cge)||t.getBoundingClientRect()}const p$e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function N5e(t,e,n){let{node:r,offset:a,atom:i}=t.docView.domFromPos(e,n<0?-1:1),o=L8||Vf;if(r.nodeType==3)if(o&&(p$e.test(r.nodeValue)||(n<0?!a:a==r.nodeValue.length))){let l=e1(Gp(r,a,a),n);if(Vf&&a&&/\s/.test(r.nodeValue[a-1])&&a<r.nodeValue.length){let c=e1(Gp(r,a-1,a-1),-1);if(c.top==l.top){let u=e1(Gp(r,a,a+1),-1);if(u.top!=l.top)return p5(u,u.left<c.left)}}return l}else{let l=a,c=a,u=n<0?1:-1;return n<0&&!a?(c++,u=-1):n>=0&&a==r.nodeValue.length?(l--,u=1):n<0?l--:c++,p5(e1(Gp(r,l,c),u),u<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&a&&(n<0||a==ch(r))){let l=r.childNodes[a-1];if(l.nodeType==1)return JQ(l.getBoundingClientRect(),!1)}if(i==null&&a<ch(r)){let l=r.childNodes[a];if(l.nodeType==1)return JQ(l.getBoundingClientRect(),!0)}return JQ(r.getBoundingClientRect(),n>=0)}if(i==null&&a&&(n<0||a==ch(r))){let l=r.childNodes[a-1],c=l.nodeType==3?Gp(l,ch(l)-(o?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return p5(e1(c,1),!1)}if(i==null&&a<ch(r)){let l=r.childNodes[a];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let c=l?l.nodeType==3?Gp(l,0,o?0:1):l.nodeType==1?l:null:null;if(c)return p5(e1(c,-1),!0)}return p5(e1(r.nodeType==3?Gp(r):r,-n),n>=0)}function p5(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function JQ(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function I5e(t,e,n){let r=t.state,a=t.root.activeElement;r!=e&&t.updateState(e),a!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),a!=t.dom&&a&&a.focus()}}function v$e(t,e,n){let r=e.selection,a=n=="up"?r.$from:r.$to;return I5e(t,e,()=>{let{node:i}=t.docView.domFromPos(a.pos,n=="up"?-1:1);for(;;){let s=t.docView.nearestDesc(i,!0);if(!s)break;if(s.node.isBlock){i=s.contentDOM||s.dom;break}i=s.dom.parentNode}let o=N5e(t,a.pos,1);for(let s=i.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=Gp(s,0,s.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let u=l[c];if(u.bottom>u.top+1&&(n=="up"?o.top-u.top>(u.bottom-o.top)*2:u.bottom-o.bottom>(o.bottom-u.top)*2))return!1}}return!0})}const g$e=/[\u0590-\u08ac]/;function m$e(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let a=r.parentOffset,i=!a,o=a==r.parent.content.size,s=t.domSelection();return!g$e.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?i:o:I5e(t,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:f}=t.domSelectionRange(),d=s.caretBidiLevel;s.modify("move",n,"character");let h=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:p,focusOffset:v}=t.domSelectionRange(),g=p&&!h.contains(p.nodeType==1?p:p.parentNode)||l==p&&c==v;try{s.collapse(u,f),l&&(l!=u||c!=f)&&s.extend&&s.extend(l,c)}catch{}return d!=null&&(s.caretBidiLevel=d),g})}let uge=null,fge=null,dge=!1;function y$e(t,e,n){return uge==e&&fge==n?dge:(uge=e,fge=n,dge=n=="up"||n=="down"?v$e(t,e,n):m$e(t,e,n))}const yu=0,hge=1,E2=2,Ph=3;class T8{constructor(e,n,r,a){this.parent=e,this.children=n,this.dom=r,this.contentDOM=a,this.dirty=yu,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,r=this.posAtStart;;n++){let a=this.children[n];if(a==e)return r;r+=a.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let i,o;if(e==this.contentDOM)i=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((o=i.pmViewDesc)&&o.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(o)+o.size:this.posAtStart}else{let i,o;if(e==this.contentDOM)i=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((o=i.pmViewDesc)&&o.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(o):this.posAtEnd}let a;if(e==this.dom&&this.contentDOM)a=n>No(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))a=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=e;;i=i.parentNode){if(i==this.dom){a=!1;break}if(i.previousSibling)break}if(a==null&&n==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){a=!0;break}if(i.nextSibling)break}}return a??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,a=e;a;a=a.parentNode){let i=this.getDesc(a),o;if(i&&(!n||i.node))if(r&&(o=i.nodeDOM)&&!(o.nodeType==1?o.contains(e.nodeType==1?e:e.parentNode):o==e))r=!1;else return i}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let a=e;a;a=a.parentNode){let i=this.getDesc(a);if(i)return i.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let a=this.children[n],i=r+a.size;if(r==e&&i!=r){for(;!a.border&&a.children.length;)a=a.children[0];return a}if(e<i)return a.descAt(e-r-a.border);r=i}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,a=0;for(let i=0;r<this.children.length;r++){let o=this.children[r],s=i+o.size;if(s>e||o instanceof E5e){a=e-i;break}i=s}if(a)return this.children[r].domFromPos(a-this.children[r].border,n);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof k5e&&i.side>=0;r--);if(n<=0){let i,o=!0;for(;i=r?this.children[r-1]:null,!(!i||i.dom.parentNode==this.contentDOM);r--,o=!1);return i&&n&&o&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?No(i.dom)+1:0}}else{let i,o=!0;for(;i=r<this.children.length?this.children[r]:null,!(!i||i.dom.parentNode==this.contentDOM);r++,o=!1);return i&&o&&!i.border&&!i.domAtom?i.domFromPos(0,n):{node:this.contentDOM,offset:i?No(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let a=-1,i=-1;for(let o=r,s=0;;s++){let l=this.children[s],c=o+l.size;if(a==-1&&e<=c){let u=o+l.border;if(e>=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=o;for(let f=s;f>0;f--){let d=this.children[f-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){a=No(d.dom)+1;break}e-=d.size}a==-1&&(a=0)}if(a>-1&&(c>n||s==this.children.length-1)){n=c;for(let u=s+1;u<this.children.length;u++){let f=this.children[u];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){i=No(f.dom);break}n+=f.size}i==-1&&(i=this.contentDOM.childNodes.length);break}o=c}return{node:this.contentDOM,from:e,to:n,fromOffset:a,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,a=!1){let i=Math.min(e,n),o=Math.max(e,n);for(let d=0,h=0;d<this.children.length;d++){let p=this.children[d],v=h+p.size;if(i>h&&o<v)return p.setSelection(e-h-p.border,n-h-p.border,r,a);h=v}let s=this.domFromPos(e,e?-1:1),l=n==e?s:this.domFromPos(n,n?-1:1),c=r.getSelection(),u=!1;if((Vf||Vs)&&e==n){let{node:d,offset:h}=s;if(d.nodeType==3){if(u=!!(h&&d.nodeValue[h-1]==`-`),u&&h==d.nodeValue.length)for(let p=d,v;p;p=p.parentNode){if(v=p.nextSibling){v.nodeName=="BR"&&(s=l={node:v.parentNode,offset:No(v)+1});break}let g=p.pmViewDesc;if(g&&g.node&&g.node.isBlock)break}}else{let p=d.childNodes[h-1];u=p&&(p.nodeName=="BR"||p.contentEditable=="false")}}if(Vf&&c.focusNode&&c.focusNode!=l.node&&c.focusNode.nodeType==1){let d=c.focusNode.childNodes[c.focusOffset];d&&d.contentEditable=="false"&&(a=!0)}if(!(a||u&&Vs)&&hy(s.node,s.offset,c.anchorNode,c.anchorOffset)&&hy(l.node,l.offset,c.focusNode,c.focusOffset))return;let f=!1;if((c.extend||e==n)&&!u){c.collapse(s.node,s.offset);try{e!=n&&c.extend(l.node,l.offset),f=!0}catch{}}if(!f){if(e>n){let h=s;s=l,l=h}let d=document.createRange();d.setEnd(l.node,l.offset),d.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(d)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,a=0;a<this.children.length;a++){let i=this.children[a],o=r+i.size;if(r==o?e<=o&&n>=r:e<o&&n>r){let s=r+i.border,l=o-i.border;if(e>=s&&n<=l){this.dirty=e==r||n==o?E2:hge,e==s&&n==l&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Ph:i.markDirty(e-s,n-s);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?E2:Ph}r=o}this.dirty=E2}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?E2:hge;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class k5e extends T8{constructor(e,n,r,a){let i,o=n.type.toDOM;if(typeof o=="function"&&(o=o(r,()=>{if(!i)return a;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(o.nodeType!=1){let s=document.createElement("span");s.appendChild(o),o=s}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(e,[],o,null),this.widget=n,this.widget=n,i=this}matchesWidget(e){return this.dirty==yu&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class A$e extends T8{constructor(e,n,r,a){super(e,[],n,null),this.textDOM=r,this.text=a}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class py extends T8{constructor(e,n,r,a){super(e,[],r,a),this.mark=n}static create(e,n,r,a){let i=a.nodeViews[n.type.name],o=i&&i(n,a,r);return(!o||!o.dom)&&(o=OS.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new py(e,n,o.dom,o.contentDOM||o.dom)}parseRule(){return this.dirty&Ph||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Ph&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=yu){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=yu}}slice(e,n,r){let a=py.create(this.parent,this.mark,!0,r),i=this.children,o=this.size;n<o&&(i=D$(i,n,o,r)),e>0&&(i=D$(i,0,e,r));for(let s=0;s<i.length;s++)i[s].parent=a;return a.children=i,a}}class C1 extends T8{constructor(e,n,r,a,i,o,s,l,c){super(e,[],i,o),this.node=n,this.outerDeco=r,this.innerDeco=a,this.nodeDOM=s}static create(e,n,r,a,i,o){let s=i.nodeViews[n.type.name],l,c=s&&s(n,i,()=>{if(!l)return o;if(l.parent)return l.parent.posBeforeChild(l)},r,a),u=c&&c.dom,f=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:f}=OS.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!f&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let d=u;return u=D5e(u,r,n),c?l=new R$e(e,n,r,a,u,f||null,d,c,i,o+1):n.isText?new rV(e,n,r,a,u,d,i):new C1(e,n,r,a,u,f||null,d,i,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Xt.empty)}return e}matchesNode(e,n,r){return this.dirty==yu&&e.eq(this.node)&&X$(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,a=n,i=e.composing?this.localCompositionInfo(e,n):null,o=i&&i.pos>-1?i:null,s=i&&i.pos<0,l=new x$e(this,o&&o.node,e);_$e(this.node,this.innerDeco,(c,u,f)=>{c.spec.marks?l.syncToMarks(c.spec.marks,r,e):c.type.side>=0&&!f&&l.syncToMarks(u==this.node.childCount?Yr.none:this.node.child(u).marks,r,e),l.placeWidget(c,e,a)},(c,u,f,d)=>{l.syncToMarks(c.marks,r,e);let h;l.findNodeMatch(c,u,f,d)||s&&e.state.selection.from>a&&e.state.selection.to<a+c.nodeSize&&(h=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(c,u,f,h,e)||l.updateNextNode(c,u,f,e,d,a)||l.addNode(c,u,f,e,a),a+=c.nodeSize}),l.syncToMarks([],r,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==E2)&&(o&&this.protectLocalComposition(e,o),F5e(this.contentDOM,this.children,e),fS&&w$e(this.dom))}localCompositionInfo(e,n){let{from:r,to:a}=e.state.selection;if(!(e.state.selection instanceof Gr)||r<n||a>n+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let o=i.nodeValue,s=L$e(this.node.content,o,r-n,a-n);return s<0?null:{node:i,pos:s,text:o}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:a}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let o=new A$e(this,i,n,a);e.input.compositionNodes.push(o),this.children=D$(this.children,r,r+a.length,e,o)}update(e,n,r,a){return this.dirty==Ph||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,a),!0)}updateInner(e,n,r,a){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(a,this.posAtStart),this.dirty=yu}updateOuterDeco(e){if(X$(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=X5e(this.dom,this.nodeDOM,F$(this.outerDeco,this.node,n),F$(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function pge(t,e,n,r,a){D5e(r,e,t);let i=new C1(void 0,t,e,n,r,r,r,a,0);return i.contentDOM&&i.updateChildren(a,0),i}class rV extends C1{constructor(e,n,r,a,i,o,s){super(e,n,r,a,i,null,o,s,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,a){return this.dirty==Ph||this.dirty!=yu&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=yu||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,a.trackWrites==this.nodeDOM&&(a.trackWrites=null)),this.node=e,this.dirty=yu,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let a=this.node.cut(e,n),i=document.createTextNode(a.text);return new rV(this.parent,a,this.outerDeco,this.innerDeco,i,i,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Ph)}get domAtom(){return!1}isText(e){return this.node.text==e}}class E5e extends T8{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==yu&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class R$e extends C1{constructor(e,n,r,a,i,o,s,l,c,u){super(e,n,r,a,i,o,s,c,u),this.spec=l}update(e,n,r,a){if(this.dirty==Ph)return!1;if(this.spec.update){let i=this.spec.update(e,n,r);return i&&this.updateInner(e,n,r,a),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,a)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,a){this.spec.setSelection?this.spec.setSelection(e,n,r):super.setSelection(e,n,r,a)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function F5e(t,e,n){let r=t.firstChild,a=!1;for(let i=0;i<e.length;i++){let o=e[i],s=o.dom;if(s.parentNode==t){for(;s!=r;)r=vge(r),a=!0;r=r.nextSibling}else a=!0,t.insertBefore(s,r);if(o instanceof py){let l=r?r.previousSibling:t.lastChild;F5e(o.contentDOM,o.children,n),r=l?l.nextSibling:t.firstChild}}for(;r;)r=vge(r),a=!0;a&&n.trackWrites==t&&(n.trackWrites=null)}const B_=function(t){t&&(this.nodeName=t)};B_.prototype=Object.create(null);const F2=[new B_];function F$(t,e,n){if(t.length==0)return F2;let r=n?F2[0]:new B_,a=[r];for(let i=0;i<t.length;i++){let o=t[i].type.attrs;if(o){o.nodeName&&a.push(r=new B_(o.nodeName));for(let s in o){let l=o[s];l!=null&&(n&&a.length==1&&a.push(r=new B_(e.isInline?"span":"div")),s=="class"?r.class=(r.class?r.class+" ":"")+l:s=="style"?r.style=(r.style?r.style+";":"")+l:s!="nodeName"&&(r[s]=l))}}}return a}function X5e(t,e,n,r){if(n==F2&&r==F2)return e;let a=e;for(let i=0;i<r.length;i++){let o=r[i],s=n[i];if(i){let l;s&&s.nodeName==o.nodeName&&a!=t&&(l=a.parentNode)&&l.nodeName.toLowerCase()==o.nodeName||(l=document.createElement(o.nodeName),l.pmIsDeco=!0,l.appendChild(a),s=F2[0]),a=l}b$e(a,s||F2[0],o)}return a}function b$e(t,e,n){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&t.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],a=n.class?n.class.split(" ").filter(Boolean):[];for(let i=0;i<r.length;i++)a.indexOf(r[i])==-1&&t.classList.remove(r[i]);for(let i=0;i<a.length;i++)r.indexOf(a[i])==-1&&t.classList.add(a[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,a;for(;a=r.exec(e.style);)t.style.removeProperty(a[1])}n.style&&(t.style.cssText+=n.style)}}function D5e(t,e,n){return X5e(t,t,F2,F$(e,n,t.nodeType!=1))}function X$(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function vge(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class x$e{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=S$e(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r){let a=0,i=this.stack.length>>1,o=Math.min(i,e.length);for(;a<o&&(a==i-1?this.top:this.stack[a+1<<1]).matchesMark(e[a])&&e[a].type.spec.spanning!==!1;)a++;for(;a<i;)this.destroyRest(),this.top.dirty=yu,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let s=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let c=this.top.children[l];if(c.matchesMark(e[i])&&!this.isLocked(c.dom)){s=l;break}}if(s>-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let l=py.create(this.top,e[i],n,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,i++}}findNodeMatch(e,n,r,a){let i=-1,o;if(a>=this.preMatch.index&&(o=this.preMatch.matches[a-this.preMatch.index]).parent==this.top&&o.matchesNode(e,n,r))i=this.top.children.indexOf(o,this.index);else for(let s=this.index,l=Math.min(this.top.children.length,s+5);s<l;s++){let c=this.top.children[s];if(c.matchesNode(e,n,r)&&!this.preMatch.matched.has(c)){i=s;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,n,r,a,i){let o=this.top.children[a];return o.dirty==Ph&&o.dom==o.contentDOM&&(o.dirty=E2),o.update(e,n,r,i)?(this.destroyBetween(this.index,a),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let a=this.index;a<this.top.children.length;a++)if(this.top.children[a]==r)return a}return-1}e=n}}updateNextNode(e,n,r,a,i,o){for(let s=this.index;s<this.top.children.length;s++){let l=this.top.children[s];if(l instanceof C1){let c=this.preMatch.matched.get(l);if(c!=null&&c!=i)return!1;let u=l.dom,f,d=this.isLocked(u)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=Ph&&X$(n,l.outerDeco));if(!d&&l.update(e,n,r,a))return this.destroyBetween(this.index,s),l.dom!=u&&(this.changed=!0),this.index++,!0;if(!d&&(f=this.recreateWrapper(l,e,n,r,a,o)))return this.top.children[this.index]=f,f.contentDOM&&(f.dirty=E2,f.updateChildren(a,o+1),f.dirty=yu),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,a,i,o){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content))return null;let s=C1.create(this.top,n,r,a,i,o);if(s.contentDOM){s.children=e.children,e.children=[];for(let l of s.children)l.parent=s}return e.destroy(),s}addNode(e,n,r,a,i){let o=C1.create(this.top,e,n,r,a,i);o.contentDOM&&o.updateChildren(a,i+1),this.top.children.splice(this.index++,0,o),this.changed=!0}placeWidget(e,n,r){let a=this.index<this.top.children.length?this.top.children[this.index]:null;if(a&&a.matchesWidget(e)&&(e==a.widget||!a.widget.type.toDOM.parentNode))this.index++;else{let i=new k5e(this.top,e,n,r);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof py;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof rV)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Vs||ds)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let a=new E5e(this.top,[],r,null);n!=this.top?n.children.push(a):n.children.splice(this.index++,0,a),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function S$e(t,e){let n=e,r=n.children.length,a=t.childCount,i=new Map,o=[];e:for(;a>0;){let s;for(;;)if(r){let c=n.children[r-1];if(c instanceof py)n=c,r=c.children.length;else{s=c,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=t.child(a-1))break;--a,i.set(s,a),o.push(s)}}return{index:a,matched:i,matches:o.reverse()}}function M$e(t,e){return t.type.side-e.type.side}function _$e(t,e,n,r){let a=e.locals(t),i=0;if(a.length==0){for(let c=0;c<t.childCount;c++){let u=t.child(c);r(u,a,e.forChild(i,u),c),i+=u.nodeSize}return}let o=0,s=[],l=null;for(let c=0;;){let u,f;for(;o<a.length&&a[o].to==i;){let g=a[o++];g.widget&&(u?(f||(f=[u])).push(g):u=g)}if(u)if(f){f.sort(M$e);for(let g=0;g<f.length;g++)n(f[g],c,!!l)}else n(u,c,!!l);let d,h;if(l)h=-1,d=l,l=null;else if(c<t.childCount)h=c,d=t.child(c++);else break;for(let g=0;g<s.length;g++)s[g].to<=i&&s.splice(g--,1);for(;o<a.length&&a[o].from<=i&&a[o].to>i;)s.push(a[o++]);let p=i+d.nodeSize;if(d.isText){let g=p;o<a.length&&a[o].from<g&&(g=a[o].from);for(let y=0;y<s.length;y++)s[y].to<g&&(g=s[y].to);g<p&&(l=d.cut(g-i),d=d.cut(0,g-i),p=g,h=-1)}else for(;o<a.length&&a[o].to<p;)o++;let v=d.isInline&&!d.isLeaf?s.filter(g=>!g.inline):s.slice();r(d,v,e.forChild(i,d),h),i=p}}function w$e(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function L$e(t,e,n,r){for(let a=0,i=0;a<t.childCount&&i<=r;){let o=t.child(a++),s=i;if(i+=o.nodeSize,!o.isText)continue;let l=o.text;for(;a<t.childCount;){let c=t.child(a++);if(i+=c.nodeSize,!c.isText)break;l+=c.text}if(i>=n){if(i>=r&&l.slice(r-e.length-s,r-s)==e)return r-e.length;let c=s<r?l.lastIndexOf(e,r-s-1):-1;if(c>=0&&c+e.length+s>=n)return s+c;if(n==r&&l.length>=r+e.length-s&&l.slice(r-s,r-s+e.length)==e)return r}}return-1}function D$(t,e,n,r,a){let i=[];for(let o=0,s=0;o<t.length;o++){let l=t[o],c=s,u=s+=l.size;c>=n||u<=e?i.push(l):(c<e&&i.push(l.slice(0,e-c,r)),a&&(i.push(a),a=void 0),u>n&&i.push(l.slice(n-c,l.size,r)))}return i}function dq(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let a=t.docView.nearestDesc(n.focusNode),i=a&&a.size==0,o=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),l,c;if(nV(n)){for(l=s;a&&!a.node;)a=a.parent;let u=a.node;if(a&&u.isAtom&&On.isSelectable(u)&&a.parent&&!(u.isInline&&qGe(n.focusNode,n.focusOffset,a.dom))){let f=a.posBefore;c=new On(o==f?s:r.resolve(f))}}else{let u=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null;l=r.resolve(u)}if(!c){let u=e=="pointer"||t.state.selection.head<s.pos&&!i?1:-1;c=hq(t,l,s,u)}return c}function V5e(t){return t.editable?t.hasFocus():W5e(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function f0(t,e=!1){let n=t.state.selection;if(U5e(t,n),!!V5e(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&ds){let r=t.domSelectionRange(),a=t.domObserver.currentSelection;if(r.anchorNode&&a.anchorNode&&hy(r.anchorNode,r.anchorOffset,a.anchorNode,a.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)O$e(t);else{let{anchor:r,head:a}=n,i,o;gge&&!(n instanceof Gr)&&(n.$from.parent.inlineContent||(i=mge(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=mge(t,n.to))),t.docView.setSelection(r,a,t.root,e),gge&&(i&&yge(i),o&&yge(o)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&T$e(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const gge=Vs||ds&&L5e<63;function mge(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),a=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(Vs&&a&&a.contentEditable=="false")return jQ(a);if((!a||a.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(a)return jQ(a);if(i)return jQ(i)}}function jQ(t){return t.contentEditable="true",Vs&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function yge(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function T$e(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,a=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=a)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!V5e(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function O$e(t){let e=t.domSelection(),n=document.createRange(),r=t.cursorWrapper.dom,a=r.nodeName=="IMG";a?n.setEnd(r.parentNode,No(r)+1):n.setEnd(r,0),n.collapse(!1),e.removeAllRanges(),e.addRange(n),!a&&!t.state.selection.visible&&bl&&P1<=11&&(r.disabled=!0,r.disabled=!1)}function U5e(t,e){if(e instanceof On){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Age(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Age(t)}function Age(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function hq(t,e,n,r){return t.someProp("createSelectionBetween",a=>a(t,e,n))||Gr.between(e,n,r)}function Rge(t){return t.editable&&!t.hasFocus()?!1:W5e(t)}function W5e(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function P$e(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return hy(e.node,e.offset,n.anchorNode,n.anchorOffset)}function V$(t,e){let{$anchor:n,$head:r}=t.selection,a=e>0?n.max(r):n.min(r),i=a.parent.inlineContent?a.depth?t.doc.resolve(e>0?a.after():a.before()):null:a;return i&&Sr.findFrom(i,e)}function l1(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function bge(t,e,n){let r=t.state.selection;if(r instanceof Gr)if(n.indexOf("s")>-1){let{$head:a}=r,i=a.textOffset?null:e<0?a.nodeBefore:a.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let o=t.state.doc.resolve(a.pos+i.nodeSize*(e<0?-1:1));return l1(t,new Gr(r.$anchor,o))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let a=V$(t.state,e);return a&&a instanceof On?l1(t,a):!1}else if(!(ou&&n.indexOf("m")>-1)){let a=r.$head,i=a.textOffset?null:e<0?a.nodeBefore:a.nodeAfter,o;if(!i||i.isText)return!1;let s=e<0?a.pos-i.nodeSize:a.pos;return i.isAtom||(o=t.docView.descAt(s))&&!o.contentDOM?On.isSelectable(i)?l1(t,new On(e<0?t.state.doc.resolve(a.pos-i.nodeSize):a)):L8?l1(t,new Gr(t.state.doc.resolve(e<0?s:s+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof On&&r.node.isInline)return l1(t,new Gr(e>0?r.$to:r.$from));{let a=V$(t.state,e);return a?l1(t,a):!1}}}function uX(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Z_(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Sb(t,e){return e<0?C$e(t):N$e(t)}function C$e(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let a,i,o=!1;for(Vf&&n.nodeType==1&&r<uX(n)&&Z_(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(Z_(s,-1))a=n,i=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(Y5e(n))break;{let s=n.previousSibling;for(;s&&Z_(s,-1);)a=n.parentNode,i=No(s),s=s.previousSibling;if(s)n=s,r=uX(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}o?U$(t,n,r):a&&U$(t,a,i)}function N$e(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let a=uX(n),i,o;for(;;)if(r<a){if(n.nodeType!=1)break;let s=n.childNodes[r];if(Z_(s,1))i=n,o=++r;else break}else{if(Y5e(n))break;{let s=n.nextSibling;for(;s&&Z_(s,1);)i=s.parentNode,o=No(s)+1,s=s.nextSibling;if(s)n=s,r=0,a=uX(n);else{if(n=n.parentNode,n==t.dom)break;r=a=0}}}i&&U$(t,i,o)}function Y5e(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function I$e(t,e){for(;t&&e==t.childNodes.length&&!w8(t);)e=No(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function k$e(t,e){for(;t&&!e&&!w8(t);)e=No(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function U$(t,e,n){if(e.nodeType!=3){let i,o;(o=I$e(e,n))?(e=o,n=0):(i=k$e(e,n))&&(e=i,n=i.nodeValue.length)}let r=t.domSelection();if(nV(r)){let i=document.createRange();i.setEnd(e,n),i.setStart(e,n),r.removeAllRanges(),r.addRange(i)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:a}=t;setTimeout(()=>{t.state==a&&f0(t)},50)}function xge(t,e){let n=t.state.doc.resolve(e);if(!(ds||n$e)&&n.parent.inlineContent){let a=t.coordsAtPos(e);if(e>n.start()){let i=t.coordsAtPos(e-1),o=(i.top+i.bottom)/2;if(o>a.top&&o<a.bottom&&Math.abs(i.left-a.left)>1)return i.left<a.left?"ltr":"rtl"}if(e<n.end()){let i=t.coordsAtPos(e+1),o=(i.top+i.bottom)/2;if(o>a.top&&o<a.bottom&&Math.abs(i.left-a.left)>1)return i.left>a.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function Sge(t,e,n){let r=t.state.selection;if(r instanceof Gr&&!r.empty||n.indexOf("s")>-1||ou&&n.indexOf("m")>-1)return!1;let{$from:a,$to:i}=r;if(!a.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let o=V$(t.state,e);if(o&&o instanceof On)return l1(t,o)}if(!a.parent.inlineContent){let o=e<0?a:i,s=r instanceof ml?Sr.near(o,e):Sr.findFrom(o,e);return s?l1(t,s):!1}return!1}function Mge(t,e){if(!(t.state.selection instanceof Gr))return!0;let{$head:n,$anchor:r,empty:a}=t.state.selection;if(!n.sameParent(r))return!0;if(!a)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let o=t.state.tr;return e<0?o.delete(n.pos-i.nodeSize,n.pos):o.delete(n.pos,n.pos+i.nodeSize),t.dispatch(o),!0}return!1}function _ge(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function E$e(t){if(!Vs||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;_ge(t,r,"true"),setTimeout(()=>_ge(t,r,"false"),20)}return!1}function F$e(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function X$e(t,e){let n=e.keyCode,r=F$e(e);if(n==8||ou&&n==72&&r=="c")return Mge(t,-1)||Sb(t,-1);if(n==46&&!e.shiftKey||ou&&n==68&&r=="c")return Mge(t,1)||Sb(t,1);if(n==13||n==27)return!0;if(n==37||ou&&n==66&&r=="c"){let a=n==37?xge(t,t.state.selection.from)=="ltr"?-1:1:-1;return bge(t,a,r)||Sb(t,a)}else if(n==39||ou&&n==70&&r=="c"){let a=n==39?xge(t,t.state.selection.from)=="ltr"?1:-1:1;return bge(t,a,r)||Sb(t,a)}else{if(n==38||ou&&n==80&&r=="c")return Sge(t,-1,r)||Sb(t,-1);if(n==40||ou&&n==78&&r=="c")return E$e(t)||Sge(t,1,r)||Sb(t,1);if(r==(ou?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function B5e(t,e){t.someProp("transformCopied",h=>{e=h(e,t)});let n=[],{content:r,openStart:a,openEnd:i}=e;for(;a>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){a--,i--;let h=r.firstChild;n.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),r=h.content}let o=t.someProp("clipboardSerializer")||OS.fromSchema(t.state.schema),s=$5e(),l=s.createElement("div");l.appendChild(o.serializeFragment(r,{document:s}));let c=l.firstChild,u,f=0;for(;c&&c.nodeType==1&&(u=G5e[c.nodeName.toLowerCase()]);){for(let h=u.length-1;h>=0;h--){let p=s.createElement(u[h]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),f++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${a} ${i}${f?` -${f}`:""} ${JSON.stringify(n)}`);let d=t.someProp("clipboardTextSerializer",h=>h(e,t))||e.content.textBetween(0,e.content.size,`--`);return{dom:l,text:d,slice:e}}function Z5e(t,e,n,r,a){let i=a.parent.type.spec.code,o,s;if(!n&&!e)return null;let l=e&&(r||i||!n);if(l){if(t.someProp("transformPastedText",d=>{e=d(e,i||r,t)}),i)return e?new tn(Xt.from(t.state.schema.text(e.replace(/\r\n?/g,`-`))),0,0):tn.empty;let f=t.someProp("clipboardTextParser",d=>d(e,a,r,t));if(f)s=f;else{let d=a.marks(),{schema:h}=t.state,p=OS.fromSchema(h);o=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(v=>{let g=o.appendChild(document.createElement("p"));v&&g.appendChild(p.serializeNode(h.text(v,d)))})}}else t.someProp("transformPastedHTML",f=>{n=f(n,t)}),o=U$e(n),L8&&W$e(o);let c=o&&o.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let f=+u[3];f>0;f--){let d=o.firstChild;for(;d&&d.nodeType!=1;)d=d.nextSibling;if(!d)break;o=d}if(s||(s=(t.someProp("clipboardParser")||t.someProp("domParser")||hj.fromSchema(t.state.schema)).parseSlice(o,{preserveWhitespace:!!(l||u),context:a,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!D$e.test(d.parentNode.nodeName)?{ignore:!0}:null}})),u)s=Y$e(wge(s,+u[1],+u[2]),u[4]);else if(s=tn.maxOpen(V$e(s.content,a),!0),s.openStart||s.openEnd){let f=0,d=0;for(let h=s.content.firstChild;f<s.openStart&&!h.type.spec.isolating;f++,h=h.firstChild);for(let h=s.content.lastChild;d<s.openEnd&&!h.type.spec.isolating;d++,h=h.lastChild);s=wge(s,f,d)}return t.someProp("transformPasted",f=>{s=f(s,t)}),s}const D$e=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function V$e(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let a=e.node(n).contentMatchAt(e.index(n)),i,o=[];if(t.forEach(s=>{if(!o)return;let l=a.findWrapping(s.type),c;if(!l)return o=null;if(c=o.length&&i.length&&K5e(l,i,s,o[o.length-1],0))o[o.length-1]=c;else{o.length&&(o[o.length-1]=H5e(o[o.length-1],i.length));let u=Q5e(s,l);o.push(u),a=a.matchType(u.type),i=l}}),o)return Xt.from(o)}return t}function Q5e(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,Xt.from(t));return t}function K5e(t,e,n,r,a){if(a<t.length&&a<e.length&&t[a]==e[a]){let i=K5e(t,e,n,r.lastChild,a+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(a==t.length-1?n.type:t[a+1]))return r.copy(r.content.append(Xt.from(Q5e(n,t,a+1))))}}function H5e(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,H5e(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(Xt.empty,!0);return t.copy(n.append(r))}function W$(t,e,n,r,a,i){let o=e<0?t.firstChild:t.lastChild,s=o.content;return t.childCount>1&&(i=0),a<r-1&&(s=W$(s,e,n,r,a+1,i)),a>=n&&(s=e<0?o.contentMatchAt(0).fillBefore(s,i<=a).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(Xt.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,o.copy(s))}function wge(t,e,n){return e<t.openStart&&(t=new tn(W$(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new tn(W$(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const G5e={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Lge=null;function $5e(){return Lge||(Lge=document.implementation.createHTMLDocument("title"))}function U$e(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=$5e().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),a;if((a=r&&G5e[r[1].toLowerCase()])&&(t=a.map(i=>"<"+i+">").join("")+t+a.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=t,a)for(let i=0;i<a.length;i++)n=n.querySelector(a[i])||n;return n}function W$e(t){let e=t.querySelectorAll(ds?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function Y$e(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:a,openStart:i,openEnd:o}=t;for(let s=r.length-2;s>=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;a=Xt.from(l.create(r[s+1],a)),i++,o++}return new tn(a,i,o)}const Us={},Ws={},B$e={touchstart:!0,touchmove:!0};class Z$e{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Q$e(t){for(let e in Us){let n=Us[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{H$e(t,r)&&!pq(t,r)&&(t.editable||!(r.type in Ws))&&n(t,r)},B$e[e]?{passive:!0}:void 0)}Vs&&t.dom.addEventListener("input",()=>null),Y$(t)}function A1(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function K$e(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Y$(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>pq(t,r))})}function pq(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function H$e(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function G$e(t,e){!pq(t,e)&&Us[e.type]&&(t.editable||!(e.type in Ws))&&Us[e.type](t,e)}Ws.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!J5e(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(_f&&ds&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),fS&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",a=>a(t,T2(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||X$e(t,n)?n.preventDefault():A1(t,"key")};Ws.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};Ws.keypress=(t,e)=>{let n=e;if(J5e(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||ou&&n.metaKey)return;if(t.someProp("handleKeyPress",a=>a(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Gr)||!r.$from.sameParent(r.$to)){let a=String.fromCharCode(n.charCode);!/[\r\n]/.test(a)&&!t.someProp("handleTextInput",i=>i(t,r.$from.pos,r.$to.pos,a))&&t.dispatch(t.state.tr.insertText(a).scrollIntoView()),n.preventDefault()}};function aV(t){return{left:t.clientX,top:t.clientY}}function $$e(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function vq(t,e,n,r,a){if(r==-1)return!1;let i=t.state.doc.resolve(r);for(let o=i.depth+1;o>0;o--)if(t.someProp(e,s=>o>i.depth?s(t,n,i.nodeAfter,i.before(o),a,!0):s(t,n,i.node(o),i.before(o),a,!1)))return!0;return!1}function Zx(t,e,n){t.focused||t.focus();let r=t.state.tr.setSelection(e);r.setMeta("pointer",!0),t.dispatch(r)}function z$e(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&On.isSelectable(r)?(Zx(t,new On(n)),!0):!1}function J$e(t,e){if(e==-1)return!1;let n=t.state.selection,r,a;n instanceof On&&(r=n.node);let i=t.state.doc.resolve(e);for(let o=i.depth+1;o>0;o--){let s=o>i.depth?i.nodeAfter:i.node(o);if(On.isSelectable(s)){r&&n.$from.depth>0&&o>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?a=i.before(n.$from.depth):a=i.before(o);break}}return a!=null?(Zx(t,On.create(t.state.doc,a)),!0):!1}function j$e(t,e,n,r,a){return vq(t,"handleClickOn",e,n,r)||t.someProp("handleClick",i=>i(t,e,r))||(a?J$e(t,n):z$e(t,n))}function q$e(t,e,n,r){return vq(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",a=>a(t,e,r))}function eze(t,e,n,r){return vq(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",a=>a(t,e,r))||tze(t,n,r)}function tze(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(Zx(t,Gr.create(r,0,r.content.size)),!0):!1;let a=r.resolve(e);for(let i=a.depth+1;i>0;i--){let o=i>a.depth?a.nodeAfter:a.node(i),s=a.before(i);if(o.inlineContent)Zx(t,Gr.create(r,s+1,s+1+o.content.size));else if(On.isSelectable(o))Zx(t,On.create(r,s));else continue;return!0}}function gq(t){return fX(t)}const z5e=ou?"metaKey":"ctrlKey";Us.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=gq(t),a=Date.now(),i="singleClick";a-t.input.lastClick.time<500&&$$e(n,t.input.lastClick)&&!n[z5e]&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:a,x:n.clientX,y:n.clientY,type:i};let o=t.posAtCoords(aV(n));o&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new nze(t,o,n,!!r)):(i=="doubleClick"?q$e:eze)(t,o.pos,o.inside,n)?n.preventDefault():A1(t,"pointer"))};class nze{constructor(e,n,r,a){this.view=e,this.pos=n,this.event=r,this.flushed=a,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[z5e],this.allowDefault=r.shiftKey;let i,o;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),o=n.inside;else{let u=e.state.doc.resolve(n.pos);i=u.parent,o=u.depth?u.before():0}const s=a?null:r.target,l=s?e.docView.nearestDesc(s,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:c}=e.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof On&&c.from<=o&&c.to>o)&&(this.mightDrag={node:i,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Vf&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),A1(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>f0(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(aV(e))),this.updateAllowDefault(e),this.allowDefault||!n?A1(this.view,"pointer"):j$e(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Vs&&this.mightDrag&&!this.mightDrag.node.isAtom||ds&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Zx(this.view,Sr.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):A1(this.view,"pointer")}move(e){this.updateAllowDefault(e),A1(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Us.touchstart=t=>{t.input.lastTouch=Date.now(),gq(t),A1(t,"pointer")};Us.touchmove=t=>{t.input.lastTouch=Date.now(),A1(t,"pointer")};Us.contextmenu=t=>gq(t);function J5e(t,e){return t.composing?!0:Vs&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const rze=_f?5e3:-1;Ws.compositionstart=Ws.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),fX(t,!0),t.markCursor=null;else if(fX(t),Vf&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let a=r.focusNode,i=r.focusOffset;a&&a.nodeType==1&&i!=0;){let o=i<0?a.lastChild:a.childNodes[i-1];if(!o)break;if(o.nodeType==3){t.domSelection().collapse(o,o.nodeValue.length);break}else a=o,i=-1}}t.input.composing=!0}j5e(t,rze)};Ws.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,j5e(t,20))};function j5e(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>fX(t),e))}function q5e(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=ize());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function aze(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=JGe(e.focusNode,e.focusOffset),r=jGe(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let a=r.pmViewDesc,i=t.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!a||!a.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let o=n.pmViewDesc;if(!(!o||!o.isText(n.nodeValue)))return r}}return n||r}function ize(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function fX(t,e=!1){if(!(_f&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),q5e(t),e||t.docView&&t.docView.dirty){let n=dq(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):t.updateState(t.state),!0}return!1}}function oze(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),a=document.createRange();a.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(a),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Pw=bl&&P1<15||fS&&r$e<604;Us.copy=Ws.cut=(t,e)=>{let n=e,r=t.state.selection,a=n.type=="cut";if(r.empty)return;let i=Pw?null:n.clipboardData,o=r.content(),{dom:s,text:l}=B5e(t,o);i?(n.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",l)):oze(t,s),a&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function sze(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function lze(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let a=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Cw(t,r.value,null,a,e):Cw(t,r.textContent,r.innerHTML,a,e)},50)}function Cw(t,e,n,r,a){let i=Z5e(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,a,i||tn.empty)))return!0;if(!i)return!1;let o=sze(i),s=o?t.state.tr.replaceSelectionWith(o,r):t.state.tr.replaceSelection(i);return t.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function e_e(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Ws.paste=(t,e)=>{let n=e;if(t.composing&&!_f)return;let r=Pw?null:n.clipboardData,a=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&Cw(t,e_e(r),r.getData("text/html"),a,n)?n.preventDefault():lze(t,n)};class t_e{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const n_e=ou?"altKey":"ctrlKey";Us.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let a=t.state.selection,i=a.empty?null:t.posAtCoords(aV(n)),o;if(!(i&&i.pos>=a.from&&i.pos<=(a instanceof On?a.to-1:a.to))){if(r&&r.mightDrag)o=On.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let f=t.docView.nearestDesc(n.target,!0);f&&f.node.type.spec.draggable&&f!=t.docView&&(o=On.create(t.state.doc,f.posBefore))}}let s=(o||t.state.selection).content(),{dom:l,text:c,slice:u}=B5e(t,s);(!n.dataTransfer.files.length||!ds||L5e>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Pw?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Pw||n.dataTransfer.setData("text/plain",c),t.dragging=new t_e(u,!n[n_e],o)};Us.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};Ws.dragover=Ws.dragenter=(t,e)=>e.preventDefault();Ws.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let a=t.posAtCoords(aV(n));if(!a)return;let i=t.state.doc.resolve(a.pos),o=r&&r.slice;o?t.someProp("transformPasted",p=>{o=p(o,t)}):o=Z5e(t,e_e(n.dataTransfer),Pw?null:n.dataTransfer.getData("text/html"),!1,i);let s=!!(r&&!n[n_e]);if(t.someProp("handleDrop",p=>p(t,n,o||tn.empty,s))){n.preventDefault();return}if(!o)return;n.preventDefault();let l=o?xSe(t.state.doc,i.pos,o):i.pos;l==null&&(l=i.pos);let c=t.state.tr;if(s){let{node:p}=r;p?p.replace(c):c.deleteSelection()}let u=c.mapping.map(l),f=o.openStart==0&&o.openEnd==0&&o.content.childCount==1,d=c.doc;if(f?c.replaceRangeWith(u,u,o.content.firstChild):c.replaceRange(u,u,o),c.doc.eq(d))return;let h=c.doc.resolve(u);if(f&&On.isSelectable(o.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(o.content.firstChild))c.setSelection(new On(h));else{let p=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((v,g,y,m)=>p=m),c.setSelection(hq(t,h,c.doc.resolve(p)))}t.focus(),t.dispatch(c.setMeta("uiEvent","drop"))};Us.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&f0(t)},20))};Us.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};Us.beforeinput=(t,e)=>{if(ds&&_f&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,T2(8,"Backspace")))))return;let{$cursor:a}=t.state.selection;a&&a.pos>0&&t.dispatch(t.state.tr.delete(a.pos-1,a.pos).scrollIntoView())},50)}};for(let t in Ws)Us[t]=Ws[t];function Nw(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class dX{constructor(e,n){this.toDOM=e,this.spec=n||J2,this.side=this.spec.side||0}map(e,n,r,a){let{pos:i,deleted:o}=e.mapResult(n.from+a,this.side<0?-1:1);return o?null:new dc(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof dX&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Nw(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class N1{constructor(e,n){this.attrs=e,this.spec=n||J2}map(e,n,r,a){let i=e.map(n.from+a,this.spec.inclusiveStart?-1:1)-r,o=e.map(n.to+a,this.spec.inclusiveEnd?1:-1)-r;return i>=o?null:new dc(i,o,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof N1&&Nw(this.attrs,e.attrs)&&Nw(this.spec,e.spec)}static is(e){return e.type instanceof N1}destroy(){}}class mq{constructor(e,n){this.attrs=e,this.spec=n||J2}map(e,n,r,a){let i=e.mapResult(n.from+a,1);if(i.deleted)return null;let o=e.mapResult(n.to+a,-1);return o.deleted||o.pos<=i.pos?null:new dc(i.pos-r,o.pos-r,this)}valid(e,n){let{index:r,offset:a}=e.content.findIndex(n.from),i;return a==n.from&&!(i=e.child(r)).isText&&a+i.nodeSize==n.to}eq(e){return this==e||e instanceof mq&&Nw(this.attrs,e.attrs)&&Nw(this.spec,e.spec)}destroy(){}}class dc{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new dc(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new dc(e,e,new dX(n,r))}static inline(e,n,r,a){return new dc(e,n,new N1(r,a))}static node(e,n,r,a){return new dc(e,n,new mq(r,a))}get spec(){return this.type.spec}get inline(){return this.type instanceof N1}get widget(){return this.type instanceof dX}}const sx=[],J2={};class Pi{constructor(e,n){this.local=e.length?e:sx,this.children=n.length?n:sx}static create(e,n){return n.length?hX(n,e,0,J2):as}find(e,n,r){let a=[];return this.findInner(e??0,n??1e9,a,0,r),a}findInner(e,n,r,a,i){for(let o=0;o<this.local.length;o++){let s=this.local[o];s.from<=n&&s.to>=e&&(!i||i(s.spec))&&r.push(s.copy(s.from+a,s.to+a))}for(let o=0;o<this.children.length;o+=3)if(this.children[o]<n&&this.children[o+1]>e){let s=this.children[o]+1;this.children[o+2].findInner(e-s,n-s,r,a+s,i)}}map(e,n,r){return this==as||e.maps.length==0?this:this.mapInner(e,n,0,0,r||J2)}mapInner(e,n,r,a,i){let o;for(let s=0;s<this.local.length;s++){let l=this.local[s].map(e,r,a);l&&l.type.valid(n,l)?(o||(o=[])).push(l):i.onRemove&&i.onRemove(this.local[s].spec)}return this.children.length?cze(this.children,o||[],e,n,r,a,i):o?new Pi(o.sort(j2),sx):as}add(e,n){return n.length?this==as?Pi.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let a,i=0;e.forEach((s,l)=>{let c=l+r,u;if(u=a_e(n,s,c)){for(a||(a=this.children.slice());i<a.length&&a[i]<l;)i+=3;a[i]==l?a[i+2]=a[i+2].addInner(s,u,c+1):a.splice(i,0,l,l+s.nodeSize,hX(u,s,c+1,J2)),i+=3}});let o=r_e(i?i_e(n):n,-r);for(let s=0;s<o.length;s++)o[s].type.valid(e,o[s])||o.splice(s--,1);return new Pi(o.length?this.local.concat(o).sort(j2):this.local,a||this.children)}remove(e){return e.length==0||this==as?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,a=this.local;for(let i=0;i<r.length;i+=3){let o,s=r[i]+n,l=r[i+1]+n;for(let u=0,f;u<e.length;u++)(f=e[u])&&f.from>s&&f.to<l&&(e[u]=null,(o||(o=[])).push(f));if(!o)continue;r==this.children&&(r=this.children.slice());let c=r[i+2].removeInner(o,s+1);c!=as?r[i+2]=c:(r.splice(i,3),i-=3)}if(a.length){for(let i=0,o;i<e.length;i++)if(o=e[i])for(let s=0;s<a.length;s++)a[s].eq(o,n)&&(a==this.local&&(a=this.local.slice()),a.splice(s--,1))}return r==this.children&&a==this.local?this:a.length||r.length?new Pi(a,r):as}forChild(e,n){if(this==as)return this;if(n.isLeaf)return Pi.empty;let r,a;for(let s=0;s<this.children.length;s+=3)if(this.children[s]>=e){this.children[s]==e&&(r=this.children[s+2]);break}let i=e+1,o=i+n.content.size;for(let s=0;s<this.local.length;s++){let l=this.local[s];if(l.from<o&&l.to>i&&l.type instanceof N1){let c=Math.max(i,l.from)-i,u=Math.min(o,l.to)-i;c<u&&(a||(a=[])).push(l.copy(c,u))}}if(a){let s=new Pi(a.sort(j2),sx);return r?new p1([s,r]):s}return r||as}eq(e){if(this==e)return!0;if(!(e instanceof Pi)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return yq(this.localsInner(e))}localsInner(e){if(this==as)return sx;if(e.inlineContent||!this.local.some(N1.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof N1||n.push(this.local[r]);return n}}Pi.empty=new Pi([],[]);Pi.removeOverlap=yq;const as=Pi.empty;class p1{constructor(e){this.members=e}map(e,n){const r=this.members.map(a=>a.map(e,n,J2));return p1.from(r)}forChild(e,n){if(n.isLeaf)return Pi.empty;let r=[];for(let a=0;a<this.members.length;a++){let i=this.members[a].forChild(e,n);i!=as&&(i instanceof p1?r=r.concat(i.members):r.push(i))}return p1.from(r)}eq(e){if(!(e instanceof p1)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let a=0;a<this.members.length;a++){let i=this.members[a].localsInner(e);if(i.length)if(!n)n=i;else{r&&(n=n.slice(),r=!1);for(let o=0;o<i.length;o++)n.push(i[o])}}return n?yq(r?n:n.sort(j2)):sx}static from(e){switch(e.length){case 0:return as;case 1:return e[0];default:return new p1(e.every(n=>n instanceof Pi)?e:e.reduce((n,r)=>n.concat(r instanceof Pi?r:r.members),[]))}}}function cze(t,e,n,r,a,i,o){let s=t.slice();for(let c=0,u=i;c<n.maps.length;c++){let f=0;n.maps[c].forEach((d,h,p,v)=>{let g=v-p-(h-d);for(let y=0;y<s.length;y+=3){let m=s[y+1];if(m<0||d>m+u-f)continue;let R=s[y]+u-f;h>=R?s[y+1]=d<=R?-2:-1:d>=u&&g&&(s[y]+=g,s[y+1]+=g)}f+=g}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<s.length;c+=3)if(s[c+1]<0){if(s[c+1]==-2){l=!0,s[c+1]=-1;continue}let u=n.map(t[c]+i),f=u-a;if(f<0||f>=r.content.size){l=!0;continue}let d=n.map(t[c+1]+i,-1),h=d-a,{index:p,offset:v}=r.content.findIndex(f),g=r.maybeChild(p);if(g&&v==f&&v+g.nodeSize==h){let y=s[c+2].mapInner(n,g,u+1,t[c]+i+1,o);y!=as?(s[c]=f,s[c+1]=h,s[c+2]=y):(s[c+1]=-2,l=!0)}else l=!0}if(l){let c=uze(s,t,e,n,a,i,o),u=hX(c,r,0,o);e=u.local;for(let f=0;f<s.length;f+=3)s[f+1]<0&&(s.splice(f,3),f-=3);for(let f=0,d=0;f<u.children.length;f+=3){let h=u.children[f];for(;d<s.length&&s[d]<h;)d+=3;s.splice(d,0,u.children[f],u.children[f+1],u.children[f+2])}}return new Pi(e.sort(j2),s)}function r_e(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let a=t[r];n.push(new dc(a.from+e,a.to+e,a.type))}return n}function uze(t,e,n,r,a,i,o){function s(l,c){for(let u=0;u<l.local.length;u++){let f=l.local[u].map(r,a,c);f?n.push(f):o.onRemove&&o.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)s(l.children[u+2],l.children[u]+c+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&s(t[l+2],e[l]+i+1);return n}function a_e(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,a=null;for(let i=0,o;i<t.length;i++)(o=t[i])&&o.from>n&&o.to<r&&((a||(a=[])).push(o),t[i]=null);return a}function i_e(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function hX(t,e,n,r){let a=[],i=!1;e.forEach((s,l)=>{let c=a_e(t,s,l+n);if(c){i=!0;let u=hX(c,s,n+l+1,r);u!=as&&a.push(l,l+s.nodeSize,u)}});let o=r_e(i?i_e(t):t,-n).sort(j2);for(let s=0;s<o.length;s++)o[s].type.valid(e,o[s])||(r.onRemove&&r.onRemove(o[s].spec),o.splice(s--,1));return o.length||a.length?new Pi(o,a):as}function j2(t,e){return t.from-e.from||t.to-e.to}function yq(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let a=n+1;a<e.length;a++){let i=e[a];if(i.from==r.from){i.to!=r.to&&(e==t&&(e=t.slice()),e[a]=i.copy(i.from,r.to),Tge(e,a+1,i.copy(r.to,i.to)));continue}else{i.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,i.from),Tge(e,a,r.copy(i.from,r.to)));break}}}return e}function Tge(t,e,n){for(;e<t.length&&j2(n,t[e])>0;)e++;t.splice(e,0,n)}function qQ(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=as&&e.push(r)}),t.cursorWrapper&&e.push(Pi.create(t.state.doc,[t.cursorWrapper.deco])),p1.from(e)}const fze={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},dze=bl&&P1<=11;class hze{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class pze{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new hze,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let a=0;a<r.length;a++)this.queue.push(r[a]);bl&&P1<=11&&r.some(a=>a.type=="childList"&&a.removedNodes.length||a.type=="characterData"&&a.oldValue.length>a.target.nodeValue.length)?this.flushSoon():this.flush()}),dze&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,fze)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Rge(this.view)){if(this.suppressingSelectionUpdates)return f0(this.view);if(bl&&P1<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&hy(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let i=e.focusNode;i;i=Ow(i))n.add(i);for(let i=e.anchorNode;i;i=Ow(i))if(n.has(i)){r=i;break}let a=r&&this.view.docView.nearestDesc(r);if(a&&a.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),a=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Rge(e)&&!this.ignoreSelectionChange(r),i=-1,o=-1,s=!1,l=[];if(e.editable)for(let u=0;u<n.length;u++){let f=this.registerMutation(n[u],l);f&&(i=i<0?f.from:Math.min(f.from,i),o=o<0?f.to:Math.max(f.to,o),f.typeOver&&(s=!0))}if(Vf&&l.length){let u=l.filter(f=>f.nodeName=="BR");if(u.length==2){let[f,d]=u;f.parentNode&&f.parentNode.parentNode==d.parentNode?d.remove():f.remove()}else{let{focusNode:f}=this.currentSelection;for(let d of u){let h=d.parentNode;h&&h.nodeName=="LI"&&(!f||mze(e,f)!=h)&&d.remove()}}}let c=null;i<0&&a&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&nV(r)&&(c=dq(e))&&c.eq(Sr.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,f0(e),this.currentSelection.set(r),e.scrollToSelection()):(i>-1||a)&&(i>-1&&(e.docView.markDirty(i,o),vze(e)),this.handleDOMChange(i,o,s,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||f0(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let f=e.addedNodes[u];n.push(f),f.nodeType==3&&(this.lastChangedTextNode=f)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let a=e.previousSibling,i=e.nextSibling;if(bl&&P1<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:f,nextSibling:d}=e.addedNodes[u];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(a=f),(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(i=d)}let o=a&&a.parentNode==e.target?No(a)+1:0,s=r.localPosFromDOM(e.target,o,-1),l=i&&i.parentNode==e.target?No(i):e.target.childNodes.length,c=r.localPosFromDOM(e.target,l,1);return{from:s,to:c}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let Oge=new WeakMap,Pge=!1;function vze(t){if(!Oge.has(t)&&(Oge.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=Vf,Pge)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),Pge=!0}}function Cge(t,e){let n=e.startContainer,r=e.startOffset,a=e.endContainer,i=e.endOffset,o=t.domAtPos(t.state.selection.anchor);return hy(o.node,o.offset,a,i)&&([n,r,a,i]=[a,i,n,r]),{anchorNode:n,anchorOffset:r,focusNode:a,focusOffset:i}}function gze(t,e){if(e.getComposedRanges){let a=e.getComposedRanges(t.root)[0];if(a)return Cge(t,a)}let n;function r(a){a.preventDefault(),a.stopImmediatePropagation(),n=a.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",r,!0),n?Cge(t,n):null}function mze(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let r=t.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function yze(t,e,n){let{node:r,fromOffset:a,toOffset:i,from:o,to:s}=t.docView.parseRange(e,n),l=t.domSelectionRange(),c,u=l.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],nV(l)||c.push({node:l.focusNode,offset:l.focusOffset})),ds&&t.input.lastKeyCode===8)for(let g=i;g>a;g--){let y=r.childNodes[g-1],m=y.pmViewDesc;if(y.nodeName=="BR"&&!m){i=g;break}if(!m||m.size)break}let f=t.state.doc,d=t.someProp("domParser")||hj.fromSchema(t.state.schema),h=f.resolve(o),p=null,v=d.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:a,to:i,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:Aze,context:h});if(c&&c[0].pos!=null){let g=c[0].pos,y=c[1]&&c[1].pos;y==null&&(y=g),p={anchor:g+o,head:y+o}}return{doc:v,sel:p,from:o,to:s}}function Aze(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Vs&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||Vs&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Rze=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function bze(t,e,n,r,a){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let _=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,T=dq(t,_);if(T&&!t.state.selection.eq(T)){if(ds&&_f&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",N=>N(t,T2(13,"Enter"))))return;let O=t.state.tr.setSelection(T);_=="pointer"?O.setMeta("pointer",!0):_=="key"&&O.scrollIntoView(),i&&O.setMeta("composition",i),t.dispatch(O)}return}let o=t.state.doc.resolve(e),s=o.sharedDepth(n);e=o.before(s+1),n=t.state.doc.resolve(n).after(s+1);let l=t.state.selection,c=yze(t,e,n),u=t.state.doc,f=u.slice(c.from,c.to),d,h;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(d=t.state.selection.to,h="end"):(d=t.state.selection.from,h="start"),t.input.lastKeyCode=null;let p=Mze(f.content,c.doc.content,c.from,d,h);if((fS&&t.input.lastIOSEnter>Date.now()-225||_f)&&a.some(_=>_.nodeType==1&&!Rze.test(_.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",_=>_(t,T2(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(r&&l instanceof Gr&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let _=Nge(t,t.state.doc,c.sel);if(_&&!_.eq(t.state.selection)){let T=t.state.tr.setSelection(_);i&&T.setMeta("composition",i),t.dispatch(T)}}return}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&p.start==p.endB&&t.state.selection instanceof Gr&&(p.start>t.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?p.start=t.state.selection.from:p.endA<t.state.selection.to&&p.endA>=t.state.selection.to-2&&t.state.selection.to<=c.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),bl&&P1<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>c.from&&c.doc.textBetween(p.start-c.from-1,p.start-c.from+1)==" "&&(p.start--,p.endA--,p.endB--);let v=c.doc.resolveNoCache(p.start-c.from),g=c.doc.resolveNoCache(p.endB-c.from),y=u.resolve(p.start),m=v.sameParent(g)&&v.parent.inlineContent&&y.end()>=p.endA,R;if((fS&&t.input.lastIOSEnter>Date.now()-225&&(!m||a.some(_=>_.nodeName=="DIV"||_.nodeName=="P"))||!m&&v.pos<c.doc.content.size&&!v.sameParent(g)&&(R=Sr.findFrom(c.doc.resolve(v.pos+1),1,!0))&&R.head==g.pos)&&t.someProp("handleKeyDown",_=>_(t,T2(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&Sze(u,p.start,p.endA,v,g)&&t.someProp("handleKeyDown",_=>_(t,T2(8,"Backspace")))){_f&&ds&&t.domObserver.suppressSelectionUpdates();return}ds&&_f&&p.endB==p.start&&(t.input.lastAndroidDelete=Date.now()),_f&&!m&&v.start()!=g.start()&&g.parentOffset==0&&v.depth==g.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==p.endA&&(p.endB-=2,g=c.doc.resolveNoCache(p.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(_){return _(t,T2(13,"Enter"))})},20));let A=p.start,x=p.endA,M,S,w;if(m){if(v.pos==g.pos)bl&&P1<=11&&v.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>f0(t),20)),M=t.state.tr.delete(A,x),S=u.resolve(p.start).marksAcross(u.resolve(p.endA));else if(p.endA==p.endB&&(w=xze(v.parent.content.cut(v.parentOffset,g.parentOffset),y.parent.content.cut(y.parentOffset,p.endA-y.start()))))M=t.state.tr,w.type=="add"?M.addMark(A,x,w.mark):M.removeMark(A,x,w.mark);else if(v.parent.child(v.index()).isText&&v.index()==g.index()-(g.textOffset?0:1)){let _=v.parent.textBetween(v.parentOffset,g.parentOffset);if(t.someProp("handleTextInput",T=>T(t,A,x,_)))return;M=t.state.tr.insertText(_,A,x)}}if(M||(M=t.state.tr.replace(A,x,c.doc.slice(p.start-c.from,p.endB-c.from))),c.sel){let _=Nge(t,M.doc,c.sel);_&&!(ds&&_f&&t.composing&&_.empty&&(p.start!=p.endB||t.input.lastAndroidDelete<Date.now()-100)&&(_.head==A||_.head==M.mapping.map(x)-1)||bl&&_.empty&&_.head==A)&&M.setSelection(_)}S&&M.ensureMarks(S),i&&M.setMeta("composition",i),t.dispatch(M.scrollIntoView())}function Nge(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:hq(t,e.resolve(n.anchor),e.resolve(n.head))}function xze(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,a=n,i=r,o,s,l;for(let u=0;u<r.length;u++)a=r[u].removeFromSet(a);for(let u=0;u<n.length;u++)i=n[u].removeFromSet(i);if(a.length==1&&i.length==0)s=a[0],o="add",l=u=>u.mark(s.addToSet(u.marks));else if(a.length==0&&i.length==1)s=i[0],o="remove",l=u=>u.mark(s.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(l(e.child(u)));if(Xt.from(c).eq(t))return{mark:s,type:o}}function Sze(t,e,n,r,a){if(n-e<=a.pos-r.pos||eK(r,!0,!1)<a.pos)return!1;let i=t.resolve(e);if(!r.parent.isTextblock){let s=i.nodeAfter;return s!=null&&n==e+s.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let o=t.resolve(eK(i,!0,!0));return!o.parent.isTextblock||o.pos>n||eK(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function eK(t,e,n){let r=t.depth,a=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,a++,e=!1;if(n){let i=t.node(r).maybeChild(t.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,a++}return a}function Mze(t,e,n,r,a){let i=t.findDiffStart(e,n);if(i==null)return null;let{a:o,b:s}=t.findDiffEnd(e,n+t.size,n+e.size);if(a=="end"){let l=Math.max(0,i-Math.min(o,s));r-=o+l-i}if(o<i&&t.size<e.size){let l=r<=i&&r>=o?i-r:0;i-=l,i&&i<e.size&&Ige(e.textBetween(i-1,i+1))&&(i+=l?1:-1),s=i+(s-o),o=i}else if(s<i){let l=r<=i&&r>=s?i-r:0;i-=l,i&&i<t.size&&Ige(t.textBetween(i-1,i+1))&&(i+=l?1:-1),o=i+(o-s),s=i}return{start:i,endA:o,endB:s}}function Ige(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class _ze{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Z$e,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Dge),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Fge(this),Ege(this),this.nodeViews=Xge(this),this.docView=pge(this.state.doc,kge(this),qQ(this),this.dom,this),this.domObserver=new pze(this,(r,a,i,o)=>bze(this,r,a,i,o)),this.domObserver.start(),Q$e(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Y$(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Dge),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let a=this.state,i=!1,o=!1;e.storedMarks&&this.composing&&(q5e(this),o=!0),this.state=e;let s=a.plugins!=e.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=Xge(this);Lze(h,this.nodeViews)&&(this.nodeViews=h,i=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&Y$(this),this.editable=Fge(this),Ege(this);let l=qQ(this),c=kge(this),u=a.plugins!=e.plugins&&!a.doc.eq(e.doc)?"reset":e.scrollToSelection>a.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(e.doc,c,l);(f||!e.selection.eq(a.selection))&&(o=!0);let d=u=="preserve"&&o&&this.dom.style.overflowAnchor==null&&o$e(this);if(o){this.domObserver.stop();let h=f&&(bl||ds)&&!this.composing&&!a.selection.empty&&!e.selection.empty&&wze(a.selection,e.selection);if(f){let p=ds?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=aze(this)),(i||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=pge(e.doc,c,l,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&P$e(this))?f0(this,h):(U5e(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(a),!((r=this.dragging)===null||r===void 0)&&r.node&&!a.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,a),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():d&&s$e(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof On){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&lge(this,n.getBoundingClientRect(),e)}else lge(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}updateDraggedNode(e,n){let r=e.node,a=-1;if(this.state.doc.nodeAt(r.from)==r.node)a=r.from;else{let i=r.from+(this.state.doc.content.size-n.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==r.node&&(a=i)}this.dragging=new t_e(e.slice,e.move,a<0?void 0:On.create(this.state.doc,a))}someProp(e,n){let r=this._props&&this._props[e],a;if(r!=null&&(a=n?n(r):r))return a;for(let o=0;o<this.directPlugins.length;o++){let s=this.directPlugins[o].props[e];if(s!=null&&(a=n?n(s):s))return a}let i=this.state.plugins;if(i)for(let o=0;o<i.length;o++){let s=i[o].props[e];if(s!=null&&(a=n?n(s):s))return a}}hasFocus(){if(bl){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&l$e(this.dom),f0(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return h$e(this,e)}coordsAtPos(e,n=1){return N5e(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let a=this.docView.posFromDOM(e,n,r);if(a==null)throw new RangeError("DOM position not inside the editor");return a}endOfTextblock(e,n){return y$e(this,n||this.state,e)}pasteHTML(e,n){return Cw(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Cw(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(K$e(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],qQ(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,$Ge())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return G$e(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return Vs&&this.root.nodeType===11&&e$e(this.dom.ownerDocument)==this.dom&&gze(this,e)||e}domSelection(){return this.root.getSelection()}}function kge(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[dc.node(0,t.state.doc.content.size,e)]}function Ege(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:dc.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Fge(t){return!t.someProp("editable",e=>e(t.state)===!1)}function wze(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function Xge(t){let e=Object.create(null);function n(r){for(let a in r)Object.prototype.hasOwnProperty.call(e,a)||(e[a]=r[a])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function Lze(t,e){let n=0,r=0;for(let a in t){if(t[a]!=e[a])return!0;n++}for(let a in e)r++;return n!=r}function Dge(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Y1={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},pX={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Tze=typeof navigator<"u"&&/Mac/.test(navigator.platform),Oze=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Io=0;Io<10;Io++)Y1[48+Io]=Y1[96+Io]=String(Io);for(var Io=1;Io<=24;Io++)Y1[Io+111]="F"+Io;for(var Io=65;Io<=90;Io++)Y1[Io]=String.fromCharCode(Io+32),pX[Io]=String.fromCharCode(Io);for(var tK in Y1)pX.hasOwnProperty(tK)||(pX[tK]=Y1[tK]);function Pze(t){var e=Tze&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Oze&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?pX:Y1)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Cze=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Nze(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,a,i,o;for(let s=0;s<e.length-1;s++){let l=e[s];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))a=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))Cze?o=!0:a=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(n="Alt-"+n),a&&(n="Ctrl-"+n),o&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function Ize(t){let e=Object.create(null);for(let n in t)e[Nze(n)]=t[n];return e}function nK(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function Vge(t){return new CS({props:{handleKeyDown:o_e(t)}})}function o_e(t){let e=Ize(t);return function(n,r){let a=Pze(r),i,o=e[nK(a,r)];if(o&&o(n.state,n.dispatch,n))return!0;if(a.length==1&&a!=" "){if(r.shiftKey){let s=e[nK(a,r,!1)];if(s&&s(n.state,n.dispatch,n))return!0}if((r.shiftKey||r.altKey||r.metaKey||a.charCodeAt(0)>127)&&(i=Y1[r.keyCode])&&i!=a){let s=e[nK(i,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var vX=200,fo=function(){};fo.prototype.append=function(e){return e.length?(e=fo.from(e),!this.length&&e||e.length<vX&&this.leafAppend(e)||this.length<vX&&e.leafPrepend(this)||this.appendInner(e)):this};fo.prototype.prepend=function(e){return e.length?fo.from(e).append(this):this};fo.prototype.appendInner=function(e){return new kze(this,e)};fo.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?fo.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};fo.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};fo.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};fo.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var a=[];return this.forEach(function(i,o){return a.push(e(i,o))},n,r),a};fo.from=function(e){return e instanceof fo?e:e&&e.length?new s_e(e):fo.empty};var s_e=function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(a,i){return a==0&&i==this.length?this:new e(this.values.slice(a,i))},e.prototype.getInner=function(a){return this.values[a]},e.prototype.forEachInner=function(a,i,o,s){for(var l=i;l<o;l++)if(a(this.values[l],s+l)===!1)return!1},e.prototype.forEachInvertedInner=function(a,i,o,s){for(var l=i-1;l>=o;l--)if(a(this.values[l],s+l)===!1)return!1},e.prototype.leafAppend=function(a){if(this.length+a.length<=vX)return new e(this.values.concat(a.flatten()))},e.prototype.leafPrepend=function(a){if(this.length+a.length<=vX)return new e(a.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(fo);fo.empty=new s_e([]);var kze=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,a,i,o){var s=this.left.length;if(a<s&&this.left.forEachInner(r,a,Math.min(i,s),o)===!1||i>s&&this.right.forEachInner(r,Math.max(a-s,0),Math.min(this.length,i)-s,o+s)===!1)return!1},e.prototype.forEachInvertedInner=function(r,a,i,o){var s=this.left.length;if(a>s&&this.right.forEachInvertedInner(r,a-s,Math.max(i,s)-s,o+s)===!1||i<s&&this.left.forEachInvertedInner(r,Math.min(a,s),i,o)===!1)return!1},e.prototype.sliceInner=function(r,a){if(r==0&&a==this.length)return this;var i=this.left.length;return a<=i?this.left.slice(r,a):r>=i?this.right.slice(r-i,a-i):this.left.slice(r,i).append(this.right.slice(0,a-i))},e.prototype.leafAppend=function(r){var a=this.right.leafAppend(r);if(a)return new e(this.left,a)},e.prototype.leafPrepend=function(r){var a=this.left.leafPrepend(r);if(a)return new e(a,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(fo);const Eze=500;class Lf{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let a,i;n&&(a=this.remapping(r,this.items.length),i=a.maps.length);let o=e.tr,s,l,c=[],u=[];return this.items.forEach((f,d)=>{if(!f.step){a||(a=this.remapping(r,d+1),i=a.maps.length),i--,u.push(f);return}if(a){u.push(new eh(f.map));let h=f.step.map(a.slice(i)),p;h&&o.maybeStep(h).doc&&(p=o.mapping.maps[o.mapping.maps.length-1],c.push(new eh(p,void 0,void 0,c.length+u.length))),i--,p&&a.appendMap(p,i)}else o.maybeStep(f.step);if(f.selection)return s=a?f.selection.map(a.slice(i)):f.selection,l=new Lf(this.items.slice(0,r).append(u.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:o,selection:s}}addTransform(e,n,r,a){let i=[],o=this.eventCount,s=this.items,l=!a&&s.length?s.get(s.length-1):null;for(let u=0;u<e.steps.length;u++){let f=e.steps[u].invert(e.docs[u]),d=new eh(e.mapping.maps[u],f,n),h;(h=l&&l.merge(d))&&(d=h,u?i.pop():s=s.slice(0,s.length-1)),i.push(d),n&&(o++,n=void 0),a||(l=d)}let c=o-r.depth;return c>Xze&&(s=Fze(s,c),o-=c),new Lf(s.append(i),o)}remapping(e,n){let r=new Xx;return this.items.forEach((a,i)=>{let o=a.mirrorOffset!=null&&i-a.mirrorOffset>=e?r.maps.length-a.mirrorOffset:void 0;r.appendMap(a.map,o)},e,n),r}addMaps(e){return this.eventCount==0?this:new Lf(this.items.append(e.map(n=>new eh(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],a=Math.max(0,this.items.length-n),i=e.mapping,o=e.steps.length,s=this.eventCount;this.items.forEach(d=>{d.selection&&s--},a);let l=n;this.items.forEach(d=>{let h=i.getMirror(--l);if(h==null)return;o=Math.min(o,h);let p=i.maps[h];if(d.step){let v=e.steps[h].invert(e.docs[h]),g=d.selection&&d.selection.map(i.slice(l+1,h));g&&s++,r.push(new eh(p,v,g))}else r.push(new eh(p))},a);let c=[];for(let d=n;d<o;d++)c.push(new eh(i.maps[d]));let u=this.items.slice(0,a).append(c).append(r),f=new Lf(u,s);return f.emptyItemCount()>Eze&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,a=[],i=0;return this.items.forEach((o,s)=>{if(s>=e)a.push(o),o.selection&&i++;else if(o.step){let l=o.step.map(n.slice(r)),c=l&&l.getMap();if(r--,c&&n.appendMap(c,r),l){let u=o.selection&&o.selection.map(n.slice(r));u&&i++;let f=new eh(c.invert(),l,u),d,h=a.length-1;(d=a.length&&a[h].merge(f))?a[h]=d:a.push(f)}}else o.map&&r--},this.items.length,0),new Lf(fo.from(a.reverse()),i)}}Lf.empty=new Lf(fo.empty,0);function Fze(t,e){let n;return t.forEach((r,a)=>{if(r.selection&&e--==0)return n=a,!1}),t.slice(n)}class eh{constructor(e,n,r,a){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=a}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new eh(n.getMap().invert(),n,this.selection)}}}class c1{constructor(e,n,r,a,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=a,this.prevComposition=i}}const Xze=20;function Dze(t,e,n,r){let a=n.getMeta(I1),i;if(a)return a.historyState;n.getMeta(Uze)&&(t=new c1(t.done,t.undone,null,0,-1));let o=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(o&&o.getMeta(I1))return o.getMeta(I1).redo?new c1(t.done.addTransform(n,void 0,r,BE(e)),t.undone,Uge(n.mapping.maps[n.steps.length-1]),t.prevTime,t.prevComposition):new c1(t.done,t.undone.addTransform(n,void 0,r,BE(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),l=t.prevTime==0||!o&&t.prevComposition!=s&&(t.prevTime<(n.time||0)-r.newGroupDelay||!Vze(n,t.prevRanges)),c=o?rK(t.prevRanges,n.mapping):Uge(n.mapping.maps[n.steps.length-1]);return new c1(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,BE(e)),Lf.empty,c,n.time,s??t.prevComposition)}else return(i=n.getMeta("rebased"))?new c1(t.done.rebased(n,i),t.undone.rebased(n,i),rK(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new c1(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),rK(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function Vze(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,a)=>{for(let i=0;i<e.length;i+=2)r<=e[i+1]&&a>=e[i]&&(n=!0)}),n}function Uge(t){let e=[];return t.forEach((n,r,a,i)=>e.push(a,i)),e}function rK(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let a=e.map(t[r],1),i=e.map(t[r+1],-1);a<=i&&n.push(a,i)}return n}function l_e(t,e,n,r){let a=BE(e),i=I1.get(e).spec.config,o=(r?t.undone:t.done).popEvent(e,a);if(!o)return;let s=o.selection.resolve(o.transform.doc),l=(r?t.done:t.undone).addTransform(o.transform,e.selection.getBookmark(),i,a),c=new c1(r?l:o.remaining,r?o.remaining:l,null,0,-1);n(o.transform.setSelection(s).setMeta(I1,{redo:r,historyState:c}).scrollIntoView())}let aK=!1,Wge=null;function BE(t){let e=t.plugins;if(Wge!=e){aK=!1,Wge=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){aK=!0;break}}return aK}const I1=new OSe("history"),Uze=new OSe("closeHistory");function Wze(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new CS({key:I1,state:{init(){return new c1(Lf.empty,Lf.empty,null,0,-1)},apply(e,n,r){return Dze(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,a=r=="historyUndo"?c_e:r=="historyRedo"?u_e:null;return a?(n.preventDefault(),a(e.state,e.dispatch)):!1}}}})}const c_e=(t,e)=>{let n=I1.getState(t);return!n||n.done.eventCount==0?!1:(e&&l_e(n,t,e,!1),!0)},u_e=(t,e)=>{let n=I1.getState(t);return!n||n.undone.eventCount==0?!1:(e&&l_e(n,t,e,!0),!0)};function Yze(t={}){return new CS({view(e){return new Bze(e,t)}})}class Bze{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(a=>{let i=o=>{this[a](o)};return e.dom.addEventListener(a,i),{name:a,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r;if(n){let s=e.nodeBefore,l=e.nodeAfter;if(s||l){let c=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(c){let u=c.getBoundingClientRect(),f=s?u.bottom:u.top;s&&l&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:u.left,right:u.right,top:f-this.width/2,bottom:f+this.width/2}}}}if(!r){let s=this.editorView.coordsAtPos(this.cursorPos);r={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let a=this.editorView.dom.offsetParent;this.element||(this.element=a.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let i,o;if(!a||a==document.body&&getComputedStyle(a).position=="static")i=-pageXOffset,o=-pageYOffset;else{let s=a.getBoundingClientRect();i=s.left-a.scrollLeft,o=s.top-a.scrollTop}this.element.style.left=r.left-i+"px",this.element.style.top=r.top-o+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),a=r&&r.type.spec.disableDropCursor,i=typeof a=="function"?a(this.editorView,n,e):a;if(n&&!i){let o=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=xSe(this.editorView.state.doc,o,this.editorView.dragging.slice);s!=null&&(o=s)}this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}class ii extends Sr{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return ii.valid(r)?new ii(r):Sr.near(r)}content(){return tn.empty}eq(e){return e instanceof ii&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ii(e.resolve(n.pos))}getBookmark(){return new Aq(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!Zze(e)||!Qze(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let a=n.contentMatchAt(e.index()).defaultType;return a&&a.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&ii.valid(e))return e;let a=e.pos,i=null;for(let o=e.depth;;o--){let s=e.node(o);if(n>0?e.indexAfter(o)<s.childCount:e.index(o)>0){i=s.child(n>0?e.indexAfter(o):e.index(o)-1);break}else if(o==0)return null;a+=n;let l=e.doc.resolve(a);if(ii.valid(l))return l}for(;;){let o=n>0?i.firstChild:i.lastChild;if(!o){if(i.isAtom&&!i.isText&&!On.isSelectable(i)){e=e.doc.resolve(a+i.nodeSize*n),r=!1;continue e}break}i=o,a+=n;let s=e.doc.resolve(a);if(ii.valid(s))return s}return null}}}ii.prototype.visible=!1;ii.findFrom=ii.findGapCursorFrom;Sr.jsonID("gapcursor",ii);class Aq{constructor(e){this.pos=e}map(e){return new Aq(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return ii.valid(n)?new ii(n):Sr.near(n)}}function Zze(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let a=r.child(n-1);;a=a.lastChild){if(a.childCount==0&&!a.inlineContent||a.isAtom||a.type.spec.isolating)return!0;if(a.inlineContent)return!1}}return!0}function Qze(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let a=r.child(n);;a=a.firstChild){if(a.childCount==0&&!a.inlineContent||a.isAtom||a.type.spec.isolating)return!0;if(a.inlineContent)return!1}}return!0}function Kze(){return new CS({props:{decorations:zze,createSelectionBetween(t,e,n){return e.pos==n.pos&&ii.valid(n)?new ii(n):null},handleClick:Gze,handleKeyDown:Hze,handleDOMEvents:{beforeinput:$ze}}})}const Hze=o_e({ArrowLeft:m9("horiz",-1),ArrowRight:m9("horiz",1),ArrowUp:m9("vert",-1),ArrowDown:m9("vert",1)});function m9(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,a,i){let o=r.selection,s=e>0?o.$to:o.$from,l=o.empty;if(o instanceof Gr){if(!i.endOfTextblock(n)||s.depth==0)return!1;l=!1,s=r.doc.resolve(e>0?s.after():s.before())}let c=ii.findGapCursorFrom(s,e,l);return c?(a&&a(r.tr.setSelection(new ii(c))),!0):!1}}function Gze(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!ii.valid(r))return!1;let a=t.posAtCoords({left:n.clientX,top:n.clientY});return a&&a.inside>-1&&On.isSelectable(t.state.doc.nodeAt(a.inside))?!1:(t.dispatch(t.state.tr.setSelection(new ii(r))),!0)}function $ze(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof ii))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let a=Xt.empty;for(let o=r.length-1;o>=0;o--)a=Xt.from(r[o].createAndFill(null,a));let i=t.state.tr.replace(n.pos,n.pos,new tn(a,0,0));return i.setSelection(Gr.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function zze(t){if(!(t.selection instanceof ii))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Pi.create(t.doc,[dc.widget(t.selection.head,e,{key:"gapcursor"})])}const Jze=["li",0],jze={parseDOM:[{tag:"li"}],toDOM(){return Jze},defining:!0};function qze(t,e=null){return function(n,r){let{$from:a,$to:i}=n.selection,o=a.blockRange(i),s=!1,l=o;if(!o)return!1;if(o.depth>=2&&a.node(o.depth-1).type.compatibleContent(t)&&o.startIndex==0){if(a.index(o.depth-1)==0)return!1;let u=n.doc.resolve(o.start-2);l=new IF(u,u,o.depth),o.endIndex<o.parent.childCount&&(o=new IF(a,n.doc.resolve(i.end(o.depth)),o.depth)),s=!0}let c=vj(l,t,e,o);return c?(r&&r(eJe(n.tr,o,c,s,t).scrollIntoView()),!0):!1}}function eJe(t,e,n,r,a){let i=Xt.empty;for(let u=n.length-1;u>=0;u--)i=Xt.from(n[u].type.create(n[u].attrs,i));t.step(new Vo(e.start-(r?2:0),e.end,e.start,e.end,new tn(i,0,0),n.length,!0));let o=0;for(let u=0;u<n.length;u++)n[u].type==a&&(o=u+1);let s=n.length-o,l=e.start+n.length-(r?2:0),c=e.parent;for(let u=e.startIndex,f=e.endIndex,d=!0;u<f;u++,d=!1)!d&&Dx(t.doc,l,s)&&(t.split(l,s),l+=2*s),l+=c.child(u).nodeSize;return t}function tJe(t,e){return function(n,r){let{$from:a,$to:i,node:o}=n.selection;if(o&&o.isBlock||a.depth<2||!a.sameParent(i))return!1;let s=a.node(-1);if(s.type!=t)return!1;if(a.parent.content.size==0&&a.node(-1).childCount==a.indexAfter(-1)){if(a.depth==3||a.node(-3).type!=t||a.index(-2)!=a.node(-2).childCount-1)return!1;if(r){let f=Xt.empty,d=a.index(-1)?1:a.index(-2)?2:3;for(let y=a.depth-d;y>=a.depth-3;y--)f=Xt.from(a.node(y).copy(f));let h=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3;f=f.append(Xt.from(t.createAndFill()));let p=a.before(a.depth-(d-1)),v=n.tr.replace(p,a.after(-h),new tn(f,4-d,0)),g=-1;v.doc.nodesBetween(p,v.doc.content.size,(y,m)=>{if(g>-1)return!1;y.isTextblock&&y.content.size==0&&(g=m+1)}),g>-1&&v.setSelection(Sr.near(v.doc.resolve(g))),r(v.scrollIntoView())}return!0}let l=i.pos==a.end()?s.contentMatchAt(0).defaultType:null,c=n.tr.delete(a.pos,i.pos),u=l?[null,{type:l}]:void 0;return Dx(c.doc,a.pos,2,u)?(r&&r(c.split(a.pos,2,u).scrollIntoView()),!0):!1}}function f_e(t){return function(e,n){let{$from:r,$to:a}=e.selection,i=r.blockRange(a,o=>o.childCount>0&&o.firstChild.type==t);return i?n?r.node(i.depth-1).type==t?nJe(e,n,t,i):rJe(e,n,i):!0:!1}}function nJe(t,e,n,r){let a=t.tr,i=r.end,o=r.$to.end(r.depth);i<o&&(a.step(new Vo(i-1,o,i,o,new tn(Xt.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new IF(a.doc.resolve(r.$from.pos),a.doc.resolve(o),r.depth));const s=c8(r);if(s==null)return!1;a.lift(r,s);let l=a.mapping.map(i,-1)-1;return PS(a.doc,l)&&a.join(l),e(a.scrollIntoView()),!0}function rJe(t,e,n){let r=t.tr,a=n.parent;for(let h=n.end,p=n.endIndex-1,v=n.startIndex;p>v;p--)h-=a.child(p).nodeSize,r.delete(h-1,h+1);let i=r.doc.resolve(n.start),o=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==a.childCount,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(s?0:1),u+1,o.content.append(l?Xt.empty:Xt.from(a))))return!1;let f=i.pos,d=f+o.nodeSize;return r.step(new Vo(f-(s?1:0),d+(l?1:0),f+1,d-1,new tn((s?Xt.empty:Xt.from(a.copy(Xt.empty))).append(l?Xt.empty:Xt.from(a.copy(Xt.empty))),s?0:1,l?0:1),s?0:1)),e(r.scrollIntoView()),!0}function Yge(t){return function(e,n){let{$from:r,$to:a}=e.selection,i=r.blockRange(a,c=>c.childCount>0&&c.firstChild.type==t);if(!i)return!1;let o=i.startIndex;if(o==0)return!1;let s=i.parent,l=s.child(o-1);if(l.type!=t)return!1;if(n){let c=l.lastChild&&l.lastChild.type==s.type,u=Xt.from(c?t.create():null),f=new tn(Xt.from(t.create(null,Xt.from(s.type.create(null,u)))),c?3:1,0),d=i.start,h=i.end;n(e.tr.step(new Vo(d-(c?3:1),h,d,h,f,1,!0)).scrollIntoView())}return!0}}class w0{constructor(e,n,r={}){this.match=e,this.match=e,this.handler=typeof n=="string"?aJe(n):n,this.undoable=r.undoable!==!1,this.inCode=r.inCode||!1}}function aJe(t){return function(e,n,r,a){let i=t;if(n[1]){let o=n[0].lastIndexOf(n[1]);i+=n[0].slice(o+n[1].length),r+=o;let s=r-a;s>0&&(i=n[0].slice(o-s,o)+i,r=a)}return e.tr.insertText(i,r,a)}}const iJe=500;function oJe({rules:t}){let e=new CS({state:{init(){return null},apply(n,r){let a=n.getMeta(this);return a||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,a,i){return Bge(n,r,a,i,t,e)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&Bge(n,r.pos,r.pos,"",t,e)})}}},isInputRules:!0});return e}function Bge(t,e,n,r,a,i){if(t.composing)return!1;let o=t.state,s=o.doc.resolve(e),l=s.parent.textBetween(Math.max(0,s.parentOffset-iJe),s.parentOffset,null,"")+r;for(let c=0;c<a.length;c++){let u=a[c];if(s.parent.type.spec.code){if(!u.inCode)continue}else if(u.inCode==="only")continue;let f=u.match.exec(l),d=f&&u.handler(o,f,e-(f[0].length-r.length),n);if(d)return u.undoable&&d.setMeta(i,{transform:d,from:e,to:n,text:r}),t.dispatch(d),!0}return!1}const sJe=(t,e)=>{let n=t.plugins;for(let r=0;r<n.length;r++){let a=n[r],i;if(a.spec.isInputRules&&(i=a.getState(t))){if(e){let o=t.tr,s=i.transform;for(let l=s.steps.length-1;l>=0;l--)o.step(s.steps[l].invert(s.docs[l]));if(i.text){let l=o.doc.resolve(i.from).marks();o.replaceWith(i.from,i.to,t.schema.text(i.text,l))}else o.delete(i.from,i.to);e(o)}return!0}}return!1},lJe=new w0(/--$/,"—"),cJe=new w0(/\.\.\.$/,"…"),uJe=new w0(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),fJe=new w0(/"$/,"”"),dJe=new w0(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),hJe=new w0(/'$/,"’"),pJe=[uJe,fJe,dJe,hJe];function Rq(t,e,n=null,r){return new w0(t,(a,i,o,s)=>{let l=n instanceof Function?n(i):n,c=a.tr.delete(o,s),u=c.doc.resolve(o),f=u.blockRange(),d=f&&vj(f,e,l);if(!d)return null;c.wrap(f,d);let h=c.doc.resolve(o-1).nodeBefore;return h&&h.type==e&&PS(c.doc,o-1)&&(!r||r(i,h))&&c.join(o-1),c})}const vJe=t=>{const e={},n=(r,a)=>e[r]=a;return n("Alt-ArrowUp",vXe),n("Alt-ArrowDown",gXe),n("Mod-z",c_e),n("Mod-y",u_e),n("Backspace",sJe),n("Escape",bXe),n("Mod-b",Oi(t.marks.strong)),n("Mod-i",Oi(t.marks.em)),n("Mod-u",Oi(t.marks.underline)),n("Mod-d",Oi(t.marks.strikethrough)),n("Mod-e",Oi(t.marks.code)),n("Mod-;",Oi(t.marks.superscript)),n("Mod-'",Oi(t.marks.subscript)),n("Enter",LD(tJe(t.nodes.list_item),ISe,kSe,ESe,RXe)),n("Mod-[",f_e(t.nodes.list_item)),n("Mod-]",Yge(t.nodes.list_item)),n("Tab",Yge(t.nodes.list_item)),e},gJe=t=>Rq(/^\s*>\s$/,t),mJe=t=>Rq(/^(\d+)\.\s$/,t,e=>({order:+e[1]}),(e,n)=>n.childCount+n.attrs.order===+e[1]),yJe=t=>Rq(/^\s*([-+*])\s$/,t),AJe=()=>{const t=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;return new w0(t,(e,n,r,a)=>{const{schema:i}=e,o=e.tr.insertText(`${n[2]} `,r,a),s=i.marks.code.create();return o.addMark(r,r+n[2].length,s)})},RJe=()=>{const t=/(?:https?:\/\/)?[\w-]+(?:\.[\w-]+)+\.?(?:\d+)?(?:\/\S*)?$/;return new w0(t,(e,n,r,a)=>{const{schema:i}=e,o=e.tr.insertText(n[0],r,a),s=i.marks.link.create({href:n[0],title:n[0]});return o.addMark(r,r+n[0].length,s)})},bJe=t=>{const e=[...pJe,cJe,lJe];return e.push(gJe(t.nodes.blockquote)),e.push(mJe(t.nodes.ordered_list)),e.push(yJe(t.nodes.bullet_list)),e.push(AJe()),e.push(RJe()),oJe({rules:e})},xJe=t=>t.type.name==="paragraph"&&t.nodeSize===2,SJe=t=>new CS({props:{decorations(e){const{$from:n}=e.selection;if(xJe(n.parent)){const r=dc.node(n.before(),n.after(),{"data-placeholder":t});return Pi.create(e.doc,[r])}}}}),MJe=(t,e)=>{const n=e==null?void 0:e.placeholder,r=[bJe(t),Vge(vJe(t)),Vge(TXe),Yze(),Kze(),Wze()];return n&&r.push(SJe(n)),r},_Je=["p",0],wJe=["blockquote",0],LJe=["hr"],TJe=["pre",["code",0]],OJe=["br"],d_e={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return _Je}},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM(){return wJe}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return LJe}},heading:{attrs:{level:{default:1,validate:"number"}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM(t){return["h"+t.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM(){return TJe}},text:{group:"inline"},image:{inline:!0,attrs:{src:{validate:"string"},alt:{default:null,validate:"string|null"},title:{default:null,validate:"string|null"}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(t){return{src:t.getAttribute("src"),title:t.getAttribute("title"),alt:t.getAttribute("alt")}}}],toDOM(t){let{src:e,alt:n,title:r}=t.attrs;return["img",{src:e,alt:n,title:r}]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return OJe}}},PJe=["em",0],CJe=["strong",0],NJe=["code",0],h_e={link:{attrs:{href:{validate:"string"},title:{default:null,validate:"string|null"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(t){return{href:t.getAttribute("href"),title:t.getAttribute("title")}}}],toDOM(t){let{href:e,title:n}=t.attrs;return["a",{href:e,title:n},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:t=>t.type.name=="em"}],toDOM(){return PJe}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name=="strong"},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}],toDOM(){return CJe}},code:{parseDOM:[{tag:"code"}],toDOM(){return NJe}}};new dSe({nodes:d_e,marks:h_e});const IJe={attrs:{order:{default:1},listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ol",getAttrs:t=>{const n={order:+((t.hasAttribute("start")?t.getAttribute("start"):1)||1)},{listStyleType:r,fontSize:a,color:i}=t.style;return r&&(n.listStyleType=r),a&&(n.fontsize=a),i&&(n.color=i),n}}],toDOM:t=>{const{order:e,listStyleType:n,fontsize:r,color:a}=t.attrs;let i="";n&&(i+=`list-style-type: ${n};`),r&&(i+=`font-size: ${r};`),a&&(i+=`color: ${a};`);const o={style:i};return e!==1&&(o.start=e),["ol",o,0]}},kJe={attrs:{listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ul",getAttrs:t=>{const e={},{listStyleType:n,fontSize:r,color:a}=t.style;return n&&(e.listStyleType=n),r&&(e.fontsize=r),a&&(e.color=a),e}}],toDOM:t=>{const{listStyleType:e,fontsize:n,color:r}=t.attrs;let a="";return e&&(a+=`list-style-type: ${e};`),n&&(a+=`font-size: ${n};`),r&&(a+=`color: ${r};`),["ul",{style:a},0]}},EJe={...jze,content:"paragraph block*",group:"block"},FJe={attrs:{align:{default:""},indent:{default:0},textIndent:{default:0}},content:"inline*",group:"block",parseDOM:[{tag:"p",getAttrs:t=>{const{textAlign:e,textIndent:n}=t.style;let r=t.getAttribute("align")||e||"";r=/(left|right|center|justify)/.test(r)?r:"";let a=0;n&&(/em/.test(n)?a=parseInt(n):/px/.test(n)&&(a=Math.floor(parseInt(n)/16),a||(a=1)));const i=+(t.getAttribute("data-indent")||0);return{align:r,indent:i,textIndent:a}}},{tag:"img",ignore:!0},{tag:"pre",skip:!0}],toDOM:t=>{const{align:e,indent:n,textIndent:r}=t.attrs;let a="";e&&e!=="left"&&(a+=`text-align: ${e};`),r&&(a+=`text-indent: ${r}em;`);const i={style:a};return n&&(i["data-indent"]=n),["p",i,0]}},{doc:XJe,blockquote:DJe,text:VJe}=d_e,UJe={doc:XJe,paragraph:FJe,blockquote:DJe,text:VJe,ordered_list:IJe,bullet_list:kJe,list_item:EJe},WJe={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:t=>t==="sub"&&null}],toDOM:()=>["sub",0]},YJe={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:t=>t==="super"&&null}],toDOM:()=>["sup",0]},BJe={parseDOM:[{tag:"strike"},{style:"text-decoration",getAttrs:t=>t==="line-through"&&null},{style:"text-decoration-line",getAttrs:t=>t==="line-through"&&null}],toDOM:()=>["span",{style:"text-decoration-line: line-through;"},0]},ZJe={parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:t=>t==="underline"&&null},{style:"text-decoration-line",getAttrs:t=>t==="underline"&&null}],toDOM:()=>["span",{style:"text-decoration: underline;"},0]},QJe={attrs:{color:{}},inline:!0,group:"inline",parseDOM:[{style:"color",getAttrs:t=>t?{color:t}:{}}],toDOM:t=>{const{color:e}=t.attrs;let n="";return e&&(n+=`color: ${e};`),["span",{style:n},0]}},KJe={attrs:{backcolor:{}},inline:!0,group:"inline",parseDOM:[{style:"background-color",getAttrs:t=>t?{backcolor:t}:{}}],toDOM:t=>{const{backcolor:e}=t.attrs;let n="";return e&&(n+=`background-color: ${e};`),["span",{style:n},0]}},HJe={attrs:{gradient:{}},inline:!0,group:"inline",excludes:"",parseDOM:[{style:"background",getAttrs:t=>t&&typeof t=="string"&&t.includes("linear-gradient")?{gradient:t}:!1}],toDOM:t=>{const{gradient:e}=t.attrs;let n="";return e&&(n+=`background: ${e}; background-clip: text; -webkit-background-clip: text; color: transparent;`),["span",{style:n},0]}},GJe={attrs:{fontsize:{}},inline:!0,group:"inline",parseDOM:[{style:"font-size",getAttrs:t=>t?{fontsize:t}:{}}],toDOM:t=>{const{fontsize:e}=t.attrs;let n="";return e&&(n+=`font-size: ${e};`),["span",{style:n},0]}},$Je={attrs:{fontname:{}},inline:!0,group:"inline",parseDOM:[{style:"font-family",getAttrs:t=>({fontname:t&&typeof t=="string"?t.replace(/[\"\']/g,""):""})}],toDOM:t=>{const{fontname:e}=t.attrs;let n="";return e&&(n+=`font-family: ${e};`),["span",{style:n},0]}},zJe={attrs:{href:{},title:{default:null},target:{default:"_blank"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href"),n=t.getAttribute("title");return{href:e,title:n}}}],toDOM:t=>["a",t.attrs,0]},JJe={attrs:{index:{default:null}},parseDOM:[{tag:"mark",getAttrs:t=>({index:t.dataset.index})}],toDOM:t=>["mark",{"data-index":t.attrs.index},0]},{em:jJe,strong:qJe,code:eje}=h_e,tje={em:jJe,strong:qJe,fontsize:GJe,fontname:$Je,code:eje,textgradient:HJe,forecolor:QJe,backcolor:KJe,subscript:WJe,superscript:YJe,strikethrough:BJe,underline:ZJe,link:zJe,mark:JJe},nje=UJe,rje=tje,p_e=new dSe({nodes:nje,marks:rje}),bq=t=>{const e=`<div>${t}</div>`,r=new window.DOMParser().parseFromString(e,"text/html").body.firstElementChild;return hj.fromSchema(p_e).parse(r)},v_e=(t,e,n,r)=>new _ze(t,{state:dx.create({doc:bq(e),plugins:MJe(p_e,r)}),...n});function aje(t){return{all:t=t||new Map,on:function(e,n){var r=t.get(e);r?r.push(n):t.set(e,[n])},off:function(e,n){var r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);r&&r.slice().map(function(a){a(n)}),(r=t.get("*"))&&r.slice().map(function(a){a(e,n)})}}}var Ni=(t=>(t.RICH_TEXT_COMMAND="RICH_TEXT_COMMAND",t.SYNC_RICH_TEXT_ATTRS_TO_STORE="SYNC_RICH_TEXT_ATTRS_TO_STORE",t.OPEN_CHART_DATA_EDITOR="OPEN_CHART_DATA_EDITOR",t.OPEN_LATEX_EDITOR="OPEN_LATEX_EDITOR",t))(Ni||{});const zi=aje(),ije=(t,e,n)=>{const{selection:r,doc:a}=t;if(!r||!a)return t;const{from:i,to:o}=r,{nodes:s}=e,l=s.blockquote,c=s.list_item,u=s.paragraph,f=[];n=n||"";const d=new Set([l,c,u]);return a.nodesBetween(i,o,(h,p)=>{const v=h.type;return(h.attrs.align||"")!==n&&d.has(v)&&f.push({node:h,pos:p,nodeType:v}),!0}),f.length&&f.forEach(h=>{const{node:p,pos:v,nodeType:g}=h;let{attrs:y}=p;n?y={...y,align:n}:y={...y,align:null},t=t.setNodeMarkup(v,g,y,p.marks)}),t},oje=(t,e)=>{const{state:n}=t,{schema:r,selection:a}=n,i=ije(n.tr.setSelection(a),r,e);t.dispatch(i)};function sje(t,e,n,r){if(!t.doc)return t;const a=t.doc.nodeAt(e);if(!a)return t;const i=0,o=8;let s=(a.attrs[r]||0)+n;if(s<i&&(s=i),s>o&&(s=o),s===a.attrs[r])return t;const l={...a.attrs,[r]:s};return t.setNodeMarkup(e,a.type,l,a.marks)}const g_e=(t,e,n,r)=>{const{selection:a,doc:i}=t;if(!a||!i||!(a instanceof Gr||a instanceof ml))return t;const{from:o,to:s}=a;return i.nodesBetween(o,s,(l,c)=>{const u=l.type;return u.name==="paragraph"||u.name==="blockquote"?(t=sje(t,c,n,r),!1):!XF(l,e)}),t},lje=(t,e)=>{const{state:n}=t,{schema:r,selection:a}=n,i=g_e(n.tr.setSelection(a),r,e,"indent");return i.docChanged?(t.dispatch(i),!0):!1},cje=(t,e)=>{const{state:n}=t,{schema:r,selection:a}=n,i=g_e(n.tr.setSelection(a),r,e,"textIndent");return i.docChanged?(t.dispatch(i),!0):!1},gX=(t,e,n,r={})=>(a,i)=>{const{schema:o,selection:s}=a,{$from:l,$to:c}=s,u=l.blockRange(c);if(!u)return!1;const f=WSe(h=>XF(h,o))(s);if(u.depth>=1&&f&&u.depth-f.depth<=1){if(f.node.type===t&&!n)return f_e(e)(a,i);if(XF(f.node,o)&&t.validContent(f.node.content)){const{tr:h}=a,p={...f.node.attrs,...r};return n&&(p.listStyleType=n),h.setNodeMarkup(f.pos,t,p),i&&i(h),!1}}const d={...r};return n&&(d.listStyleType=n),qze(t,d)(a,i)},v5=(t,e)=>{const{state:n}=t,{schema:r,selection:a}=n,i=n.tr.setSelection(a),{doc:o}=i;if(!o)return i;const{from:s,to:l}=a;o.nodesBetween(s,l,(c,u)=>{if(XF(c,r)&&s-3<=u&&l+3>=u+c.nodeSize){const f=Array.isArray(e)?e:[e];for(const d of f)i.setNodeAttribute(u,d.key,d.value)}return!1}),t.dispatch(i)},uje=(t,e)=>{const{state:n}=t,{schema:r,doc:a}=n;let i=[],o=r.nodes.paragraph;if(a.content.size>2){const u=a.resolve(1);i=[...u.marks()],o=u.parent.type}const l=e.split(`-`).map(u=>{if(u.trim()==="")return o.create();const f=r.text(u,i);return o.create(null,f)}),c=n.tr;c.replaceWith(0,a.content.size,l),t.dispatch(c)},fje=tt({__name:"ProsemirrorEditor",props:{elementId:{},defaultColor:{},defaultFontName:{},value:{},editable:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1}},emits:["update","focus","blur","mousedown"],setup(t,{expose:e,emit:n}){const r=t,a=n,i=Wt(),{handleElementId:o,textFormatPainter:s,richTextAttrs:l,activeElementIdList:c}=nt(i),{ctrlOrShiftKeyActive:u}=nt(xc()),f=un("editorViewRef");let d;const h=Vr.debounce(function(S=!1){r.value.replace(/ style=\"\"/g,"")!==d.dom.innerHTML.replace(/ style=\"\"/g,"")&&a("update",{value:d.dom.innerHTML,ignore:S})},300,{trailing:!0}),p=()=>{(!u.value||c.value.length<=1)&&i.setDisableHotkeysState(!0),a("focus")},v=()=>{i.setDisableHotkeysState(!1),a("blur")},g=Vr.debounce(function(){const S=RG(d,{color:r.defaultColor,fontname:r.defaultFontName});i.setRichtextAttrs(S)},30,{trailing:!0}),y=(S,w)=>{const{ctrlKey:_,shiftKey:T,metaKey:O}=w,N=_||T||O,P=w.key.toUpperCase(),C=N&&(P===Ht.Z||P===Ht.Y);h(C),g()},m=Fe(()=>r.value);qt(m,()=>{if(!d||d.hasFocus())return;const{doc:S,tr:w}=d.state;d.dispatch(w.replaceRangeWith(0,S.content.size,bq(m.value)))}),qt(()=>r.editable,()=>{d.setProps({editable:()=>r.editable})}),e({focus:()=>d.focus()});const A=({target:S,action:w})=>{if(!S&&o.value!==r.elementId||S&&S!==r.elementId)return;const _="command"in w?[w]:w;for(const T of _)if(T.command==="fontname"&&T.value!==void 0){const O=d.state.schema.marks.fontname.create({fontname:T.value});Qi(d),qd(d,O),T.value&&!document.fonts.check(`16px ${T.value}`)&&Dn.warning("字体需要等待加载下载后生效,请稍等")}else if(T.command==="fontsize"&&T.value){const O=d.state.schema.marks.fontsize.create({fontsize:T.value});Qi(d),qd(d,O),v5(d,{key:"fontsize",value:T.value})}else if(T.command==="fontsize-add"){const O=T.value?+T.value:2;Qi(d);const N=hpe(d)+O+"px",P=d.state.schema.marks.fontsize.create({fontsize:N});qd(d,P),v5(d,{key:"fontsize",value:N})}else if(T.command==="fontsize-reduce"){const O=T.value?+T.value:2;Qi(d);let N=hpe(d)-O;N<12&&(N=12);const P=d.state.schema.marks.fontsize.create({fontsize:N+"px"});qd(d,P),v5(d,{key:"fontsize",value:N+"px"})}else if(T.command==="color"&&T.value){const O=d.state.schema.marks.forecolor.create({color:T.value});Qi(d),qd(d,O),v5(d,{key:"color",value:T.value})}else if(T.command==="backcolor"&&T.value){const O=d.state.schema.marks.backcolor.create({backcolor:T.value});Qi(d),qd(d,O)}else if(T.command==="bold")Qi(d),Oi(d.state.schema.marks.strong)(d.state,d.dispatch);else if(T.command==="em")Qi(d),Oi(d.state.schema.marks.em)(d.state,d.dispatch);else if(T.command==="underline")Qi(d),Oi(d.state.schema.marks.underline)(d.state,d.dispatch);else if(T.command==="strikethrough")Qi(d),Oi(d.state.schema.marks.strikethrough)(d.state,d.dispatch);else if(T.command==="subscript")Oi(d.state.schema.marks.subscript)(d.state,d.dispatch);else if(T.command==="superscript")Oi(d.state.schema.marks.superscript)(d.state,d.dispatch);else if(T.command==="blockquote")TE("blockquote",d.state)?mXe(d.state,d.dispatch):_Xe(d.state.schema.nodes.blockquote)(d.state,d.dispatch);else if(T.command==="code")Oi(d.state.schema.marks.code)(d.state,d.dispatch);else if(T.command==="align"&&T.value)oje(d,T.value);else if(T.command==="indent"&&T.value)lje(d,+T.value);else if(T.command==="textIndent"&&T.value)cje(d,+T.value);else if(T.command==="bulletList"){const O=T.value||"",{bullet_list:N,list_item:P}=d.state.schema.nodes,C={color:l.value.color,fontsize:l.value.fontsize};gX(N,P,O,C)(d.state,d.dispatch)}else if(T.command==="orderedList"){const O=T.value||"",{ordered_list:N,list_item:P}=d.state.schema.nodes,C={color:l.value.color,fontsize:l.value.fontsize};gX(N,P,O,C)(d.state,d.dispatch)}else if(T.command==="clear"){Qi(d);const{$from:O,$to:N}=d.state.selection;d.dispatch(d.state.tr.removeMark(O.pos,N.pos)),v5(d,[{key:"fontsize",value:""},{key:"color",value:""}])}else if(T.command==="link"){const O=d.state.schema.marks.link,{from:N,to:P}=d.state.selection,C=OXe(d.state.doc,N,P,O);if(C)if(T.value){const E=d.state.schema.marks.link.create({href:T.value,title:T.value});qd(d,E,{from:C.from.pos,to:C.to.pos+1})}else d.dispatch(d.state.tr.removeMark(C.from.pos,C.to.pos+1,O));else if(IXe(d.state,O))if(T.value){const E=d.state.schema.marks.link.create({href:T.value,title:T.value});qd(d,E)}else Oi(O)(d.state,d.dispatch);else T.value&&(Qi(d),Oi(O,{href:T.value,title:T.value})(d.state,d.dispatch))}else T.command==="insert"&&T.value?d.dispatch(d.state.tr.insertText(T.value)):T.command==="replace"&&T.value&&uje(d,T.value);d.focus(),h(),g()},x=()=>{if(!s.value)return;const{keep:S,...w}=s.value,_=[{command:"clear"}];for(const T of Object.keys(w)){const O=T,N=s.value[T];N===!0?_.push({command:O}):N&&_.push({command:O,value:N})}A({action:_}),S||i.setTextFormatPainter(null)};mn(()=>{d=v_e(f.value,m.value,{handleDOMEvents:{focus:p,blur:v,keydown:y,click:g,mouseup:x},editable:()=>r.editable}),r.autoFocus&&d.focus()}),or(()=>{d&&d.destroy()});const M=()=>{o.value===r.elementId&&g()};return zi.on(Ni.RICH_TEXT_COMMAND,A),zi.on(Ni.SYNC_RICH_TEXT_ATTRS_TO_STORE,M),or(()=>{zi.off(Ni.RICH_TEXT_COMMAND,A),zi.off(Ni.SYNC_RICH_TEXT_ATTRS_TO_STORE,M)}),(S,w)=>(V(),H("div",{class:mt(["prosemirror-editor",{"format-painter":te(s)}]),ref_key:"editorViewRef",ref:f,onMousedown:w[0]||(w[0]=_=>a("mousedown",_))},null,34))}}),m_e=lt(fje,[["__scopeId","data-v-3c60d5fc"]]),dje=tt({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(t){const e=t,n=Wt(),r=It(),{handleElementId:a,isScaling:i}=nt(n),{addHistorySnapshot:o}=Pn(),s=un("elementRef"),l=Fe(()=>e.elementInfo.shadow),{shadowStyle:c}=cg(l),u=(m,R=!0)=>{e.elementInfo.lock||(m.stopPropagation(),e.selectElement(m,e.elementInfo,R))},f=we(-1),d=we(-1);qt(i,()=>{a.value===e.elementInfo.id&&(i.value||(!e.elementInfo.vertical&&f.value!==-1&&(r.updateElement({id:e.elementInfo.id,props:{height:f.value}}),f.value=-1),e.elementInfo.vertical&&d.value!==-1&&(r.updateElement({id:e.elementInfo.id,props:{width:d.value}}),d.value=-1)))});const h=m=>{const R=m[0].contentRect;if(!s.value)return;const A=R.height+20,x=R.width+20;!e.elementInfo.vertical&&e.elementInfo.height!==A&&(i.value?f.value=A:r.updateElement({id:e.elementInfo.id,props:{height:A}})),e.elementInfo.vertical&&e.elementInfo.width!==x&&(i.value?d.value=x:r.updateElement({id:e.elementInfo.id,props:{width:x}}))},p=new ResizeObserver(h);mn(()=>{s.value&&p.observe(s.value)}),or(()=>{s.value&&p.unobserve(s.value)});const v=(m,R=!1)=>{r.updateElement({id:e.elementInfo.id,props:{content:m}}),R||o()},g=Vr.debounce(function(){e.elementInfo.content.replace(/<[^>]+>/g,"")||r.deleteElement(e.elementInfo.id)},300,{trailing:!0}),y=Fe(()=>a.value===e.elementInfo.id);return qt(y,()=>{y.value||g()}),(m,R)=>{const A=pr("contextmenu");return V(),H("div",{class:mt(["editable-element-text",{lock:m.elementInfo.lock}]),style:We({top:m.elementInfo.top+"px",left:m.elementInfo.left+"px",width:m.elementInfo.width+"px",height:m.elementInfo.height+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${m.elementInfo.rotate}deg)`})},[yt((V(),H("div",{class:"element-content",ref_key:"elementRef",ref:s,style:We({width:m.elementInfo.vertical?"auto":m.elementInfo.width+"px",height:m.elementInfo.vertical?m.elementInfo.height+"px":"auto",backgroundColor:m.elementInfo.fill,opacity:m.elementInfo.opacity,textShadow:te(c),lineHeight:m.elementInfo.lineHeight,letterSpacing:(m.elementInfo.wordSpace||0)+"px",color:m.elementInfo.defaultColor,fontFamily:m.elementInfo.defaultFontName,writingMode:m.elementInfo.vertical?"vertical-rl":"horizontal-tb","--paragraphSpace":`${m.elementInfo.paragraphSpace===void 0?5:m.elementInfo.paragraphSpace}px`}),onMousedown:R[2]||(R[2]=x=>u(x)),onTouchstart:R[3]||(R[3]=x=>u(x))},[U(tV,{width:m.elementInfo.width,height:m.elementInfo.height,outline:m.elementInfo.outline},null,8,["width","height","outline"]),U(m_e,{class:"text",elementId:m.elementInfo.id,defaultColor:m.elementInfo.defaultColor,defaultFontName:m.elementInfo.defaultFontName,editable:!m.elementInfo.lock,value:m.elementInfo.content,onUpdate:R[0]||(R[0]=({value:x,ignore:M})=>v(x,M)),onMousedown:R[1]||(R[1]=x=>u(x,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value"]),R[4]||(R[4]=I("div",{class:"drag-handler top"},null,-1)),R[5]||(R[5]=I("div",{class:"drag-handler bottom"},null,-1))],36)),[[A,m.contextmenus]])],4)],6)}}}),y_e=lt(dje,[["__scopeId","data-v-779ab7ee"]]),A_e=(t,e)=>({fill:Fe(()=>t.value.pattern?`url(#${e}-pattern-${t.value.id})`:t.value.gradient?`url(#${e}-gradient-${t.value.id})`:t.value.fill||"none")}),hje=["id","gradientTransform"],pje=["offset","stop-color"],vje=["id"],gje=["offset","stop-color"],R_e=tt({__name:"GradientDefs",props:{id:{},type:{},colors:{},rotate:{default:0}},setup(t){return(e,n)=>e.type==="linear"?(V(),H("linearGradient",{key:0,id:e.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${e.rotate},0.5,0.5)`},[(V(!0),H(qe,null,bt(e.colors,(r,a)=>(V(),H("stop",{key:a,offset:`${r.pos}%`,"stop-color":r.color},null,8,pje))),128))],8,hje)):(V(),H("radialGradient",{key:1,id:e.id},[(V(!0),H(qe,null,bt(e.colors,(r,a)=>(V(),H("stop",{key:a,offset:`${r.pos}%`,"stop-color":r.color},null,8,gje))),128))],8,vje))}}),mje=["id"],yje=["href"],b_e=tt({__name:"PatternDefs",props:{id:{},src:{}},setup(t){return(e,n)=>(V(),H("pattern",{id:e.id,patternContentUnits:"objectBoundingBox",patternUnits:"objectBoundingBox",width:"1",height:"1"},[I("image",{href:e.src,width:"1",height:"1",preserveAspectRatio:"xMidYMid slice"},null,8,yje)],8,mje))}}),Aje=["width","height"],Rje=["transform"],bje=["d","fill","stroke","stroke-width","stroke-dasharray"],xje=tt({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(t){const e=t,n=Wt(),r=It(),{theme:a}=nt(r),{handleElementId:i,shapeFormatPainter:o}=nt(n),{addHistorySnapshot:s}=Pn(),l=(O,N=!0)=>{e.elementInfo.lock||(O.stopPropagation(),e.selectElement(O,e.elementInfo,N))},c=()=>{if(!o.value)return;const{keep:O,...N}=o.value;r.updateElement({id:e.elementInfo.id,props:N}),s(),O||n.setShapeFormatPainter(null)},u=Fe(()=>e.elementInfo),{fill:f}=A_e(u,"editable"),d=Fe(()=>e.elementInfo.outline),{outlineWidth:h,outlineColor:p,strokeDashArray:v}=DS(d),g=Fe(()=>e.elementInfo.shadow),{shadowStyle:y}=cg(g),m=Fe(()=>e.elementInfo.flipH),R=Fe(()=>e.elementInfo.flipV),{flipStyle:A}=eV(m,R),x=we(!1);qt(i,()=>{i.value!==e.elementInfo.id&&x.value&&(x.value=!1)});const M=Fe(()=>{const O={content:"",align:"middle",defaultFontName:a.value.fontName,defaultColor:a.value.fontColor};return e.elementInfo.text?e.elementInfo.text:O}),S=(O,N=!1)=>{const P={...M.value,content:O};r.updateElement({id:e.elementInfo.id,props:{text:P}}),N||s()},w=()=>{if(!e.elementInfo.text)return;e.elementInfo.text.content.replace(/<[^>]+>/g,"")||(r.removeElementProps({id:e.elementInfo.id,propName:"text"}),s())},_=un("prosemirrorEditorRef"),T=()=>{x.value=!0,qr(()=>_.value&&_.value.focus())};return(O,N)=>{const P=pr("contextmenu");return V(),H("div",{class:mt(["editable-element-shape",{lock:O.elementInfo.lock,"format-painter":te(o)}]),style:We({top:O.elementInfo.top+"px",left:O.elementInfo.left+"px",width:O.elementInfo.width+"px",height:O.elementInfo.height+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${O.elementInfo.rotate}deg)`})},[yt((V(),H("div",{class:"element-content",style:We({opacity:O.elementInfo.opacity,filter:te(y)?`drop-shadow(${te(y)})`:"",transform:te(A),color:M.value.defaultColor,fontFamily:M.value.defaultFontName}),onMousedown:N[3]||(N[3]=C=>l(C)),onMouseup:N[4]||(N[4]=C=>c()),onTouchstart:N[5]||(N[5]=C=>l(C)),onDblclick:N[6]||(N[6]=C=>T())},[(V(),H("svg",{overflow:"visible",width:O.elementInfo.width,height:O.elementInfo.height},[I("defs",null,[O.elementInfo.pattern?(V(),Ue(b_e,{key:0,id:`editable-pattern-${O.elementInfo.id}`,src:O.elementInfo.pattern},null,8,["id","src"])):O.elementInfo.gradient?(V(),Ue(R_e,{key:1,id:`editable-gradient-${O.elementInfo.id}`,type:O.elementInfo.gradient.type,colors:O.elementInfo.gradient.colors,rotate:O.elementInfo.gradient.rotate},null,8,["id","type","colors","rotate"])):at("",!0)]),I("g",{transform:`scale(${O.elementInfo.width/O.elementInfo.viewBox[0]}, ${O.elementInfo.height/O.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[I("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:O.elementInfo.path,fill:te(f),stroke:te(p),"stroke-width":te(h),"stroke-dasharray":te(v)},null,8,bje)],8,Rje)],8,Aje)),I("div",{class:mt(["shape-text",[M.value.align,{editable:x.value||M.value.content}]]),style:We({lineHeight:M.value.lineHeight,letterSpacing:(M.value.wordSpace||0)+"px","--paragraphSpace":`${M.value.paragraphSpace===void 0?5:M.value.paragraphSpace}px`})},[x.value||M.value.content?(V(),Ue(m_e,{key:0,ref_key:"prosemirrorEditorRef",ref:_,elementId:O.elementInfo.id,defaultColor:M.value.defaultColor,defaultFontName:M.value.defaultFontName,editable:!O.elementInfo.lock,value:M.value.content,onUpdate:N[0]||(N[0]=({value:C,ignore:E})=>S(C,E)),onBlur:N[1]||(N[1]=C=>w()),onMousedown:N[2]||(N[2]=C=>l(C,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):at("",!0)],6)],36)),[[P,O.contextmenus]])],4)],6)}}}),x_e=lt(xje,[["__scopeId","data-v-87e8083f"]]),Sje=["id","markerWidth","markerHeight","refX","refY"],Mje=["d","fill","transform"],Ch=tt({__name:"LinePointMarker",props:{id:{},position:{},type:{},baseSize:{},color:{}},setup(t){const e=t,n={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},r={"arrow-start":180,"arrow-end":0},a=Fe(()=>n[e.type]),i=Fe(()=>r[`${e.type}-${e.position}`]||0),o=Fe(()=>e.baseSize<2?2:e.baseSize),s=Fe(()=>e.position==="start"?0:o.value*3),l=Fe(()=>o.value*1.5);return(c,u)=>(V(),H("marker",{id:`${c.id}-${c.type}-${c.position}`,markerUnits:"userSpaceOnUse",orient:"auto",markerWidth:o.value*3,markerHeight:o.value*3,refX:s.value,refY:l.value},[I("path",{d:a.value,fill:c.color,transform:`scale(${o.value*.3}, ${o.value*.3}) rotate(${i.value}, 5, 5)`},null,8,Mje)],8,Sje))}}),_je=["width","height"],wje=["d","stroke","stroke-width","stroke-dasharray"],Lje=["d","stroke-width","marker-start","marker-end"],Tje=["d"],Oje=tt({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(t){const e=t,n=u=>{e.elementInfo.lock||(u.stopPropagation(),e.selectElement(u,e.elementInfo))},r=Fe(()=>e.elementInfo.shadow),{shadowStyle:a}=cg(r),i=Fe(()=>{const u=Math.abs(e.elementInfo.start[0]-e.elementInfo.end[0]);return u<24?24:u}),o=Fe(()=>{const u=Math.abs(e.elementInfo.start[1]-e.elementInfo.end[1]);return u<24?24:u}),s=Fe(()=>{const u=e.elementInfo.width;return e.elementInfo.style==="dashed"?u<=8?`${u*5} ${u*2.5}`:`${u*5} ${u*1.5}`:e.elementInfo.style==="dotted"?u<=8?`${u*1.8} ${u*1.6}`:`${u*1.5} ${u*1.2}`:"0 0"}),l=Fe(()=>D4e(e.elementInfo)),c=Fe(()=>Lj(e.elementInfo));return(u,f)=>{const d=pr("contextmenu");return V(),H("div",{class:mt(["editable-element-shape",{lock:u.elementInfo.lock}]),style:We({top:u.elementInfo.top+"px",left:u.elementInfo.left+"px"})},[I("div",{class:"element-content",style:We({filter:te(a)?`drop-shadow(${te(a)})`:""}),onMousedown:f[0]||(f[0]=h=>n(h)),onTouchstart:f[1]||(f[1]=h=>n(h))},[(V(),H("svg",{overflow:"visible",width:i.value,height:o.value},[I("defs",null,[u.elementInfo.points[0]?(V(),Ue(Ch,{key:0,id:u.elementInfo.id,position:"start",type:u.elementInfo.points[0],color:u.elementInfo.color,baseSize:u.elementInfo.width},null,8,["id","type","color","baseSize"])):at("",!0),u.elementInfo.points[1]?(V(),Ue(Ch,{key:1,id:u.elementInfo.id,position:"end",type:u.elementInfo.points[1],color:u.elementInfo.color,baseSize:u.elementInfo.width},null,8,["id","type","color","baseSize"])):at("",!0)]),I("path",{class:"line-point",d:l.value,stroke:u.elementInfo.color,"stroke-width":u.elementInfo.width,"stroke-dasharray":s.value,fill:"none"},null,8,wje),I("path",{class:"line-marker",d:c.value,stroke:"transparent","stroke-width":u.elementInfo.width,fill:"none","marker-start":u.elementInfo.points[0]?`url(#${u.elementInfo.id}-${u.elementInfo.points[0]}-start)`:"","marker-end":u.elementInfo.points[1]?`url(#${u.elementInfo.id}-${u.elementInfo.points[1]}-end)`:""},null,8,Lje),yt(I("path",{class:"line-path",d:c.value,stroke:"transparent","stroke-width":"20",fill:"none"},null,8,Tje),[[d,u.contextmenus]])],8,_je))],36)],6)}}}),S_e=lt(Oje,[["__scopeId","data-v-1c2a1424"]]),Pje=({type:t,data:e,themeColors:n,textColor:r,lineColor:a,lineSmooth:i,stack:o})=>{const s=r?{color:r}:{},l=r?{lineStyle:{color:r}}:void 0,c=r?{color:r}:void 0,u=a?{lineStyle:{color:a}}:{},f=e.series.length>1?{top:"bottom",textStyle:s}:void 0;if(t==="bar")return{color:n,textStyle:s,legend:f,xAxis:{type:"category",data:e.labels,axisLine:l,axisLabel:c},yAxis:{type:"value",axisLine:l,axisLabel:c,splitLine:u},series:e.series.map((d,h)=>{const p={data:d,name:e.legends[h],type:"bar",label:{show:!0},itemStyle:{borderRadius:[2,2,0,0]}};return o&&(p.stack="A"),p})};if(t==="column")return{color:n,textStyle:s,legend:f,yAxis:{type:"category",data:e.labels,axisLine:l,axisLabel:c},xAxis:{type:"value",axisLine:l,axisLabel:c,splitLine:u},series:e.series.map((d,h)=>{const p={data:d,name:e.legends[h],type:"bar",label:{show:!0},itemStyle:{borderRadius:[0,2,2,0]}};return o&&(p.stack="A"),p})};if(t==="line")return{color:n,textStyle:s,legend:f,xAxis:{type:"category",data:e.labels,axisLine:l,axisLabel:c},yAxis:{type:"value",axisLine:l,axisLabel:c,splitLine:u},series:e.series.map((d,h)=>{const p={data:d,name:e.legends[h],type:"line",smooth:i,label:{show:!0}};return o&&(p.stack="A"),p})};if(t==="pie")return{color:n,textStyle:s,legend:{top:"bottom",textStyle:s},series:[{data:e.series[0].map((d,h)=>({value:d,name:e.labels[h]})),label:r?{color:r}:{},type:"pie",radius:"70%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{show:!0,fontSize:14,fontWeight:"bold"}}}]};if(t==="ring")return{color:n,textStyle:s,legend:{top:"bottom",textStyle:s},series:[{data:e.series[0].map((d,h)=>({value:d,name:e.labels[h]})),label:r?{color:r}:{},type:"pie",radius:["40%","70%"],padAngle:1,avoidLabelOverlap:!1,itemStyle:{borderRadius:4},emphasis:{label:{show:!0,fontSize:14,fontWeight:"bold"}}}]};if(t==="area")return{color:n,textStyle:s,legend:f,xAxis:{type:"category",boundaryGap:!1,data:e.labels,axisLine:l,axisLabel:c},yAxis:{type:"value",axisLine:l,axisLabel:c,splitLine:u},series:e.series.map((d,h)=>{const p={data:d,name:e.legends[h],type:"line",areaStyle:{},label:{show:!0}};return o&&(p.stack="A"),p})};if(t==="radar")return{color:n,textStyle:s,legend:f,radar:{indicator:e.labels.map(d=>({name:d})),splitLine:u,axisLine:a?{lineStyle:{color:a}}:void 0},series:[{data:e.series.map((d,h)=>({value:d,name:e.legends[h]})),type:"radar"}]};if(t==="scatter"){const d=[];for(let h=0;h<e.series[0].length;h++){const p=e.series[0][h],v=e.series[1]?e.series[1][h]:p;d.push([p,v])}return{color:n,textStyle:s,xAxis:{axisLine:l,axisLabel:c,splitLine:u},yAxis:{axisLine:l,axisLabel:c,splitLine:u},series:[{symbolSize:12,data:d,type:"scatter"}]}}return null};/*! *****************************************************************************-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 B$=function(t,e){return B$=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},B$(t,e)};function Jt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");B$(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Cje=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),Nje=function(){function t(){this.browser=new Cje,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t}(),jr=new Nje;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(jr.wxa=!0,jr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?jr.worker=!0:!jr.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(jr.node=!0,jr.svgSupported=!0):Ije(navigator.userAgent,jr);function Ije(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),i&&(n.edge=!0,n.version=i[1],n.newEdge=+i[1].split(".")[0]>18),o&&(n.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}var xq=12,M_e="sans-serif",b0=xq+"px "+M_e,kje=20,Eje=100,Fje="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Xje(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),a=(t.charCodeAt(n)-kje)/Eje;e[r]=a}return e}var Dje=Xje(Fje),B1={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var a=B1.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==r&&(e=t.font=r||b0),t.measureText(n);n=n||"",r=r||b0;var i=/((?:\d+)?\.?\d*)px/.exec(r),o=i&&+i[1]||xq,s=0;if(r.indexOf("mono")>=0)s=o*n.length;else for(var l=0;l<n.length;l++){var c=Dje[n[l]];s+=c==null?o:c*o}return{width:s}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}},__e=Z1(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),w_e=Z1(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),O8=Object.prototype.toString,iV=Array.prototype,Vje=iV.forEach,Uje=iV.filter,Sq=iV.slice,Wje=iV.map,Zge=(function(){}).constructor,y9=Zge?Zge.prototype:null,Mq="__proto__",Yje=2311;function L_e(){return Yje++}function T_e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Mr(t){if(t==null||typeof t!="object")return t;var e=t,n=O8.call(t);if(n==="[object Array]"){if(!Q_(t)){e=[];for(var r=0,a=t.length;r<a;r++)e[r]=Mr(t[r])}}else if(w_e[n]){if(!Q_(t)){var i=t.constructor;if(i.from)e=i.from(t);else{e=new i(t.length);for(var r=0,a=t.length;r<a;r++)e[r]=t[r]}}}else if(!__e[n]&&!Q_(t)&&!Z$(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Mq&&(e[o]=Mr(t[o]))}return e}function ia(t,e,n){if(!kn(e)||!kn(t))return n?Mr(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==Mq){var a=t[r],i=e[r];kn(i)&&kn(a)&&!dn(i)&&!dn(a)&&!Z$(i)&&!Z$(a)&&!Qge(i)&&!Qge(a)&&!Q_(i)&&!Q_(a)?ia(a,i,n):(n||!(r in t))&&(t[r]=Mr(e[r]))}return t}function Zt(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==Mq&&(t[n]=e[n]);return t}function Or(t,e,n){for(var r=kr(e),a=0,i=r.length;a<i;a++){var o=r[a];t[o]==null&&(t[o]=e[o])}return t}function aa(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function Bje(t,e){var n=t.prototype;function r(){}r.prototype=e.prototype,t.prototype=new r;for(var a in n)n.hasOwnProperty(a)&&(t.prototype[a]=n[a]);t.prototype.constructor=t,t.superClass=e}function Kf(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),a=0;a<r.length;a++){var i=r[a];i!=="constructor"&&t[i]==null&&(t[i]=e[i])}else Or(t,e)}function _l(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function Ge(t,e,n){if(t&&e)if(t.forEach&&t.forEach===Vje)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,a=t.length;r<a;r++)e.call(n,t[r],r,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function nn(t,e,n){if(!t)return[];if(!e)return wq(t);if(t.map&&t.map===Wje)return t.map(e,n);for(var r=[],a=0,i=t.length;a<i;a++)r.push(e.call(n,t[a],a,t));return r}function Z1(t,e,n,r){if(t&&e){for(var a=0,i=t.length;a<i;a++)n=e.call(r,n,t[a],a,t);return n}}function Hi(t,e,n){if(!t)return[];if(!e)return wq(t);if(t.filter&&t.filter===Uje)return t.filter(e,n);for(var r=[],a=0,i=t.length;a<i;a++)e.call(n,t[a],a,t)&&r.push(t[a]);return r}function O_e(t,e,n){if(t&&e){for(var r=0,a=t.length;r<a;r++)if(e.call(n,t[r],r,t))return t[r]}}function kr(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function Zje(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(Sq.call(arguments)))}}var Ha=y9&&$n(y9.bind)?y9.call.bind(y9.bind):Zje;function cc(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(Sq.call(arguments)))}}function dn(t){return Array.isArray?Array.isArray(t):O8.call(t)==="[object Array]"}function $n(t){return typeof t=="function"}function Sn(t){return typeof t=="string"}function Qje(t){return O8.call(t)==="[object String]"}function oa(t){return typeof t=="number"}function kn(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Qge(t){return!!__e[O8.call(t)]}function wl(t){return!!w_e[O8.call(t)]}function Z$(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function _q(t){return t.colorStops!=null}function Iw(t){return t!==t}function mX(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(t[n]!=null)return t[n]}function gn(t,e){return t??e}function q2(t,e,n){return t??e??n}function wq(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Sq.apply(t,e)}function Lq(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Nh(t,e){if(!t)throw new Error(e)}function R1(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var P_e="__ec_primitive__";function Q$(t){t[P_e]=!0}function Q_(t){return t[P_e]}var Kje=function(){function t(){this.data={}}return t.prototype.delete=function(e){var n=this.has(e);return n&&delete this.data[e],n},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,n){return this.data[e]=n,this},t.prototype.keys=function(){return kr(this.data)},t.prototype.forEach=function(e){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)},t}(),C_e=typeof Map=="function";function Hje(){return C_e?new Map:new Kje}var Gje=function(){function t(e){var n=dn(e);this.data=Hje();var r=this;e instanceof t?e.each(a):e&&Ge(e,a);function a(i,o){n?r.set(i,o):r.set(o,i)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,n){return this.data.set(e,n),n},t.prototype.each=function(e,n){this.data.forEach(function(r,a){e.call(n,r,a)})},t.prototype.keys=function(){var e=this.data.keys();return C_e?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function ir(t){return new Gje(t)}function $je(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var a=t.length,r=0;r<e.length;r++)n[r+a]=e[r];return n}function oV(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&Zt(n,e),n}function bh(t,e){return t.hasOwnProperty(e)}function mc(){}var ZE=180/Math.PI;function VS(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function zje(t){return[t[0],t[1]]}function Kge(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Jje(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function jje(t){return Math.sqrt(qje(t))}function qje(t){return t[0]*t[0]+t[1]*t[1]}function iK(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function eqe(t,e){var n=jje(e);return n===0?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function K$(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var H$=K$;function tqe(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Qx=tqe;function oK(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function Au(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a+n[4],t[1]=n[1]*r+n[3]*a+n[5],t}function gx(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function mx(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Mb=function(){function t(e,n){this.target=e,this.topTarget=n&&n.topTarget}return t}(),nqe=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var n=e.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Mb(n,e),"dragstart",e.event))},t.prototype._drag=function(e){var n=this._draggingTarget;if(n){var r=e.offsetX,a=e.offsetY,i=r-this._x,o=a-this._y;this._x=r,this._y=a,n.drift(i,o,e),this.handler.dispatchToElement(new Mb(n,e),"drag",e.event);var s=this.handler.findHover(r,a,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Mb(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Mb(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Mb(n,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Mb(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}(),L0=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,n,r,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof n=="function"&&(a=r,r=n,n=null),!r||!e)return this;var o=this._$eventProcessor;n!=null&&o&&o.normalizeQuery&&(n=o.normalizeQuery(n)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===r)return this;var l={h:r,query:n,ctx:a||this,callAtLast:r.zrEventfulCallAtLast},c=i[e].length-1,u=i[e][c];return u&&u.callAtLast?i[e].splice(c,0,l):i[e].push(l),this},t.prototype.isSilent=function(e){var n=this._$handlers;return!n||!n[e]||!n[e].length},t.prototype.off=function(e,n){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(n){if(r[e]){for(var a=[],i=0,o=r[e].length;i<o;i++)r[e][i].h!==n&&a.push(r[e][i]);r[e]=a}r[e]&&r[e].length===0&&delete r[e]}else delete r[e];return this},t.prototype.trigger=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=n.length,s=a.length,l=0;l<s;l++){var c=a[l];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,n[0]);break;case 2:c.h.call(c.ctx,n[0],n[1]);break;default:c.h.apply(c.ctx,n);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=n.length,s=n[o-1],l=a.length,c=0;c<l;c++){var u=a[c];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(s);break;case 1:u.h.call(s,n[0]);break;case 2:u.h.call(s,n[0],n[1]);break;default:u.h.apply(s,n.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t}(),rqe=Math.log(2);function G$(t,e,n,r,a,i){var o=r+"-"+a,s=t.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/rqe);return t[n][l]}for(var c=r|1<<n,u=n+1;r&1<<u;)u++;for(var f=0,d=0,h=0;d<s;d++){var p=1<<d;p&a||(f+=(h%2?-1:1)*t[n][d]*G$(t,e-1,u,c,a|p,i),h++)}return i[o]=f,f}function aqe(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},a=G$(n,8,0,0,0,r);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*G$(n,7,o===0?1:0,1<<o,1<<s,r)/a*e[o];return function(l,c,u){var f=c*i[6]+u*i[7]+1;l[0]=(c*i[0]+u*i[1]+i[2])/f,l[1]=(c*i[3]+u*i[4]+i[5])/f}}}var Hge="___zrEVENTSAVED";function iqe(t,e,n,r,a){if(e.getBoundingClientRect&&jr.domSupported&&!N_e(e)){var i=e[Hge]||(e[Hge]={}),o=oqe(e,i),s=sqe(o,i);if(s)return s(t,n,r),!0}return!1}function oqe(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,c=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[c]+":0",r[1-l]+":auto",a[1-c]+":auto",""].join("!important;"),t.appendChild(o),n.push(o)}return e.clearMarkers=function(){Ge(n,function(u){u.parentNode&&u.parentNode.removeChild(u)})},n}function sqe(t,e,n){for(var r="trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,c=0;c<4;c++){var u=t[c].getBoundingClientRect(),f=2*c,d=u.left,h=u.top;o.push(d,h),l=l&&i&&d===i[f]&&h===i[f+1],s.push(t[c].offsetLeft,t[c].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=aqe(o,s))}function N_e(t){return t.nodeName.toUpperCase()==="CANVAS"}var lqe=/([&<>"'])/g,cqe={"&":"&","<":"<",">":">",'"':""","'":"'"};function uqe(t){return t==null?"":(t+"").replace(lqe,function(e,n){return cqe[n]})}var fqe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,sK=[],dqe=jr.browser.firefox&&+jr.browser.version.split(".")[0]<39;function $$(t,e,n,r){return n=n||{},r?Gge(t,e,n):dqe&&e.layerX!=null&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):e.offsetX!=null?(n.zrX=e.offsetX,n.zrY=e.offsetY):Gge(t,e,n),n}function Gge(t,e,n){if(jr.domSupported&&t.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(N_e(t)){var i=t.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if(iqe(sK,t,r,a)){n.zrX=sK[0],n.zrY=sK[1];return}}n.zrX=n.zrY=0}function Tq(t){return t||window.event}function Af(t,e,n){if(e=Tq(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&$$(t,o,e,n)}else{$$(t,e,e,n);var i=hqe(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&fqe.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function hqe(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(n==null||r==null)return e;var a=Math.abs(r!==0?r:n),i=r>0?-1:r<0?1:n>0?-1:1;return 3*a*i}function pqe(t,e,n,r){t.addEventListener(e,n,r)}function vqe(t,e,n,r){t.removeEventListener(e,n,r)}var gqe=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},mqe=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,n,r){return this._doTrack(e,n,r),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,n,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:n,event:e},o=0,s=a.length;o<s;o++){var l=a[o],c=$$(r,l,{});i.points.push([c.zrX,c.zrY]),i.touches.push(l)}this._track.push(i)}},t.prototype._recognize=function(e){for(var n in lK)if(lK.hasOwnProperty(n)){var r=lK[n](this._track,e);if(r)return r}},t}();function $ge(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function yqe(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var lK={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,a=(t[n-2]||{}).points||r;if(a&&a.length>1&&r&&r.length>1){var i=$ge(r)/$ge(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=yqe(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function k1(){return[1,0,0,1,0,0]}function Oq(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function I_e(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function K_(t,e,n){var r=e[0]*n[0]+e[2]*n[1],a=e[1]*n[0]+e[3]*n[1],i=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=l,t}function zge(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function k_e(t,e,n,r){r===void 0&&(r=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],l=e[3],c=e[5],u=Math.sin(n),f=Math.cos(n);return t[0]=a*f+s*u,t[1]=-a*u+s*f,t[2]=i*f+l*u,t[3]=-i*u+f*l,t[4]=f*(o-r[0])+u*(c-r[1])+r[0],t[5]=f*(c-r[1])-u*(o-r[0])+r[1],t}function Aqe(t,e,n){var r=n[0],a=n[1];return t[0]=e[0]*r,t[1]=e[1]*a,t[2]=e[2]*r,t[3]=e[3]*a,t[4]=e[4]*r,t[5]=e[5]*a,t}function P8(t,e){var n=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=n*o-i*r;return l?(l=1/l,t[0]=o*l,t[1]=-i*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-o*a)*l,t[5]=(i*a-n*s)*l,t):null}var Zn=function(){function t(e,n){this.x=e||0,this.y=n||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,n){return this.x=e,this.y=n,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,n){this.x+=e.x*n,this.y+=e.y*n},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var n=this.x-e.x,r=this.y-e.y;return Math.sqrt(n*n+r*r)},t.prototype.distanceSquare=function(e){var n=this.x-e.x,r=this.y-e.y;return n*n+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var n=this.x,r=this.y;return this.x=e[0]*n+e[2]*r+e[4],this.y=e[1]*n+e[3]*r+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,n,r){e.x=n,e.y=r},t.copy=function(e,n){e.x=n.x,e.y=n.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,n){return e.x*n.x+e.y*n.y},t.add=function(e,n,r){e.x=n.x+r.x,e.y=n.y+r.y},t.sub=function(e,n,r){e.x=n.x-r.x,e.y=n.y-r.y},t.scale=function(e,n,r){e.x=n.x*r,e.y=n.y*r},t.scaleAndAdd=function(e,n,r,a){e.x=n.x+r.x*a,e.y=n.y+r.y*a},t.lerp=function(e,n,r,a){var i=1-a;e.x=i*n.x+a*r.x,e.y=i*n.y+a*r.y},t}(),X2=Math.min,yx=Math.max,z$=Math.abs,Jge=["x","y"],Rqe=["width","height"],Zm=new Zn,Qm=new Zn,Km=new Zn,Hm=new Zn,oc=E_e(),o_=oc.minTv,J$=oc.maxTv,H_=[0,0],fr=function(){function t(e,n,r,a){t.set(this,e,n,r,a)}return t.set=function(e,n,r,a,i){return a<0&&(n=n+a,a=-a),i<0&&(r=r+i,i=-i),e.x=n,e.y=r,e.width=a,e.height=i,e},t.prototype.union=function(e){var n=X2(e.x,this.x),r=X2(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=yx(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=yx(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=n,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var n=this,r=e.width/n.width,a=e.height/n.height,i=k1();return zge(i,i,[-n.x,-n.y]),Aqe(i,i,[r,a]),zge(i,i,[e.x,e.y]),i},t.prototype.intersect=function(e,n,r){return t.intersect(this,e,n,r)},t.intersect=function(e,n,r,a){r&&Zn.set(r,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!n)return!1;e instanceof t||(e=t.set(bqe,e.x,e.y,e.width,e.height)),n instanceof t||(n=t.set(xqe,n.x,n.y,n.width,n.height));var s=!!r;oc.reset(a,s);var l=oc.touchThreshold,c=e.x+l,u=e.x+e.width-l,f=e.y+l,d=e.y+e.height-l,h=n.x+l,p=n.x+n.width-l,v=n.y+l,g=n.y+n.height-l;if(c>u||f>d||h>p||v>g)return!1;var y=!(u<h||p<c||d<v||g<f);return(s||i)&&(H_[0]=1/0,H_[1]=0,jge(c,u,h,p,0,s,i,o),jge(f,d,v,g,1,s,i,o),s&&Zn.copy(r,y?oc.useDir?oc.dirMinTv:o_:J$)),y},t.contain=function(e,n,r){return n>=e.x&&n<=e.x+e.width&&r>=e.y&&r<=e.y+e.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,n){return e.x=n.x,e.y=n.y,e.width=n.width,e.height=n.height,e},t.applyTransform=function(e,n,r){if(!r){e!==n&&t.copy(e,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=n.x*a+o,e.y=n.y*i+s,e.width=n.width*a,e.height=n.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Zm.x=Km.x=n.x,Zm.y=Hm.y=n.y,Qm.x=Hm.x=n.x+n.width,Qm.y=Km.y=n.y+n.height,Zm.transform(r),Hm.transform(r),Qm.transform(r),Km.transform(r),e.x=X2(Zm.x,Qm.x,Km.x,Hm.x),e.y=X2(Zm.y,Qm.y,Km.y,Hm.y);var l=yx(Zm.x,Qm.x,Km.x,Hm.x),c=yx(Zm.y,Qm.y,Km.y,Hm.y);e.width=l-e.x,e.height=c-e.y},t}(),bqe=new fr(0,0,0,0),xqe=new fr(0,0,0,0);function jge(t,e,n,r,a,i,o,s){var l=z$(e-n),c=z$(r-t),u=X2(l,c),f=Jge[a],d=Jge[1-a],h=Rqe[a];e<n||r<t?l<c?(i&&(J$[f]=-l),s&&(o[f]=e,o[h]=0)):(i&&(J$[f]=c),s&&(o[f]=t,o[h]=0)):(o&&(o[f]=yx(t,n),o[h]=X2(e,r)-o[f]),i&&(u<H_[0]||oc.useDir)&&(H_[0]=X2(u,H_[0]),(l<c||!oc.bidirectional)&&(o_[f]=l,o_[d]=0,oc.useDir&&oc.calcDirMTV()),(l>=c||!oc.bidirectional)&&(o_[f]=-c,o_[d]=0,oc.useDir&&oc.calcDirMTV())))}function E_e(){var t=0,e=new Zn,n=new Zn,r={minTv:new Zn,maxTv:new Zn,useDir:!1,dirMinTv:new Zn,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=yx(0,i.touchThreshold)),r.negativeSize=!1,o&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),t=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var i=r.minTv,o=r.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(t),c=Math.cos(t),u=l*i.y+c*i.x;if(a(u)){a(i.x)&&a(i.y)&&o.set(0,0);return}if(n.x=s*c/u,n.y=s*l/u,a(n.x)&&a(n.y)){o.set(0,0);return}(r.bidirectional||e.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function a(i){return z$(i)<1e-10}return r}var F_e="silent";function Sqe(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Mqe}}function Mqe(){gqe(this.event)}var _qe=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handler=null,n}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(L0),g5=function(){function t(e,n){this.x=e,this.y=n}return t}(),wqe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],cK=new fr(0,0,0,0),X_e=function(t){Jt(e,t);function e(n,r,a,i,o){var s=t.call(this)||this;return s._hovered=new g5(0,0),s.storage=n,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new _qe,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new nqe(s),s}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(Ge(wqe,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},e.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,i=D_e(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new g5(r,a):this.findHover(r,a),c=l.target,u=this.proxy;u.setCursor&&u.setCursor(c?c.cursor:"default"),s&&c!==s&&this.dispatchToElement(o,"mouseout",n),this.dispatchToElement(l,"mousemove",n),c&&c!==s&&this.dispatchToElement(l,"mouseover",n)},e.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},e.prototype.resize=function(){this._hovered=new g5(0,0)},e.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},e.prototype.dispatchToElement=function(n,r,a){n=n||{};var i=n.target;if(!(i&&i.silent)){for(var o="on"+r,s=Sqe(r,n,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(n,r,a){var i=this.storage.getDisplayList(),o=new g5(n,r);if(qge(i,o,n,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,c=l/2,u=new fr(n-c,r-c,l,l),f=i.length-1;f>=0;f--){var d=i[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(cK.copy(d.getBoundingRect()),d.transform&&cK.applyTransform(d.transform),cK.intersect(u)&&s.push(d))}if(s.length)for(var h=4,p=Math.PI/12,v=Math.PI*2,g=0;g<c;g+=h)for(var y=0;y<v;y+=p){var m=n+g*Math.cos(y),R=r+g*Math.sin(y);if(qge(s,o,m,R,a),o.target)return o}}return o},e.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new mqe);var a=this._gestureMgr;r==="start"&&a.clear();var i=a.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&a.clear(),i){var o=i.type;n.gestureEvent=o;var s=new g5;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(L0);Ge(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){X_e.prototype[t]=function(e){var n=e.zrX,r=e.zrY,a=D_e(this,n,r),i,o;if((t!=="mouseup"||!a)&&(i=this.findHover(n,r),o=i.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||H$(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function Lqe(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,n))return!1}r.silent&&(a=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return a?F_e:!0}return!1}function qge(t,e,n,r,a){for(var i=t.length-1;i>=0;i--){var o=t[i],s=void 0;if(o!==a&&!o.ignore&&(s=Lqe(o,n,r))&&(!e.topTarget&&(e.topTarget=o),s!==F_e)){e.target=o;break}}}function D_e(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var V_e=32,m5=7;function Tqe(t){for(var e=0;t>=V_e;)e|=t&1,t>>=1;return t+e}function eme(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;a<n&&r(t[a],t[a-1])<0;)a++;Oqe(t,e,a)}else for(;a<n&&r(t[a],t[a-1])>=0;)a++;return a-e}function Oqe(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}function tme(t,e,n,r,a){for(r===e&&r++;r<n;r++){for(var i=t[r],o=e,s=r,l;o<s;)l=o+s>>>1,a(i,t[l])<0?s=l:o=l+1;var c=r-o;switch(c){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;c>0;)t[o+c]=t[o+c-1],c--}t[o]=i}}function uK(t,e,n,r,a,i){var o=0,s=0,l=1;if(i(t,e[n+a])>0){for(s=r-a;l<s&&i(t,e[n+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(t,e[n+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=o;o=a-l,l=a-c}for(o++;o<l;){var u=o+(l-o>>>1);i(t,e[n+u])>0?o=u+1:l=u}return l}function fK(t,e,n,r,a,i){var o=0,s=0,l=1;if(i(t,e[n+a])<0){for(s=a+1;l<s&&i(t,e[n+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=o;o=a-l,l=a-c}else{for(s=r-a;l<s&&i(t,e[n+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var u=o+(l-o>>>1);i(t,e[n+u])<0?l=u:o=u+1}return l}function Pqe(t,e){var n=m5,r,a,i=0,o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;u(h)}}function c(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,u(h)}}function u(h){var p=r[h],v=a[h],g=r[h+1],y=a[h+1];a[h]=v+y,h===i-3&&(r[h+1]=r[h+2],a[h+1]=a[h+2]),i--;var m=fK(t[g],t,p,v,0,e);p+=m,v-=m,v!==0&&(y=uK(t[p+v-1],t,g,y,y-1,e),y!==0&&(v<=y?f(p,v,g,y):d(p,v,g,y)))}function f(h,p,v,g){var y=0;for(y=0;y<p;y++)o[y]=t[h+y];var m=0,R=v,A=h;if(t[A++]=t[R++],--g===0){for(y=0;y<p;y++)t[A+y]=o[m+y];return}if(p===1){for(y=0;y<g;y++)t[A+y]=t[R+y];t[A+g]=o[m];return}for(var x=n,M,S,w;;){M=0,S=0,w=!1;do if(e(t[R],o[m])<0){if(t[A++]=t[R++],S++,M=0,--g===0){w=!0;break}}else if(t[A++]=o[m++],M++,S=0,--p===1){w=!0;break}while((M|S)<x);if(w)break;do{if(M=fK(t[R],o,m,p,0,e),M!==0){for(y=0;y<M;y++)t[A+y]=o[m+y];if(A+=M,m+=M,p-=M,p<=1){w=!0;break}}if(t[A++]=t[R++],--g===0){w=!0;break}if(S=uK(o[m],t,R,g,0,e),S!==0){for(y=0;y<S;y++)t[A+y]=t[R+y];if(A+=S,R+=S,g-=S,g===0){w=!0;break}}if(t[A++]=o[m++],--p===1){w=!0;break}x--}while(M>=m5||S>=m5);if(w)break;x<0&&(x=0),x+=2}if(n=x,n<1&&(n=1),p===1){for(y=0;y<g;y++)t[A+y]=t[R+y];t[A+g]=o[m]}else{if(p===0)throw new Error;for(y=0;y<p;y++)t[A+y]=o[m+y]}}function d(h,p,v,g){var y=0;for(y=0;y<g;y++)o[y]=t[v+y];var m=h+p-1,R=g-1,A=v+g-1,x=0,M=0;if(t[A--]=t[m--],--p===0){for(x=A-(g-1),y=0;y<g;y++)t[x+y]=o[y];return}if(g===1){for(A-=p,m-=p,M=A+1,x=m+1,y=p-1;y>=0;y--)t[M+y]=t[x+y];t[A]=o[R];return}for(var S=n;;){var w=0,_=0,T=!1;do if(e(o[R],t[m])<0){if(t[A--]=t[m--],w++,_=0,--p===0){T=!0;break}}else if(t[A--]=o[R--],_++,w=0,--g===1){T=!0;break}while((w|_)<S);if(T)break;do{if(w=p-fK(o[R],t,h,p,p-1,e),w!==0){for(A-=w,m-=w,p-=w,M=A+1,x=m+1,y=w-1;y>=0;y--)t[M+y]=t[x+y];if(p===0){T=!0;break}}if(t[A--]=o[R--],--g===1){T=!0;break}if(_=g-uK(t[m],o,0,g,g-1,e),_!==0){for(A-=_,R-=_,g-=_,M=A+1,x=R+1,y=0;y<_;y++)t[M+y]=o[x+y];if(g<=1){T=!0;break}}if(t[A--]=t[m--],--p===0){T=!0;break}S--}while(w>=m5||_>=m5);if(T)break;S<0&&(S=0),S+=2}if(n=S,n<1&&(n=1),g===1){for(A-=p,m-=p,M=A+1,x=m+1,y=p-1;y>=0;y--)t[M+y]=t[x+y];t[A]=o[R]}else{if(g===0)throw new Error;for(x=A-(g-1),y=0;y<g;y++)t[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:c,pushRun:s}}function QE(t,e,n,r){n||(n=0),r||(r=t.length);var a=r-n;if(!(a<2)){var i=0;if(a<V_e){i=eme(t,n,r,e),tme(t,n,r,n+i,e);return}var o=Pqe(t,e),s=Tqe(a);do{if(i=eme(t,n,r,e),i<s){var l=a;l>s&&(l=s),tme(t,n,n+l,n+i,e),i=l}o.pushRun(n,i),o.mergeRuns(),a-=i,n+=i}while(a!==0);o.forceMergeRuns()}}var uh=1,s_=2,lx=4,nme=!1;function dK(){nme||(nme=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function rme(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Cqe=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=rme}return t.prototype.traverse=function(e,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,n)},t.prototype.getDisplayList=function(e,n){n=n||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(n),r},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var n=this._roots,r=this._displayList,a=0,i=n.length;a<i;a++)this._updateAndAddDisplayable(n[a],null,e);r.length=this._displayListLen,QE(r,rme)},t.prototype._updateAndAddDisplayable=function(e,n,r){if(!(e.ignore&&!r)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath(),i=n&&n.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||a)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<n.length;l++)s[o++]=n[l];for(var c=a,u=e;c;)c.parent=u,c.updateTransform(),s[o++]=c,u=c,c=c.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var f=e.childrenRef(),d=0;d<f.length;d++){var h=f[d];e.__dirty&&(h.__dirty|=uh),this._updateAndAddDisplayable(h,s,r)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(dK(),p.z=0),isNaN(p.z2)&&(dK(),p.z2=0),isNaN(p.zlevel)&&(dK(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var v=e.getDecalElement&&e.getDecalElement();v&&this._updateAndAddDisplayable(v,s,r);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,r);var y=e.getTextContent();y&&this._updateAndAddDisplayable(y,s,r)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var n=0,r=e.length;n<r;n++)this.delRoot(e[n]);return}var a=aa(this._roots,e);a>=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),j$;j$=jr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var G_={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)))},elasticOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-G_.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?G_.bounceIn(t*2)*.5:G_.bounceOut(t*2-1)*.5+.5}},A9=Math.pow,E1=Math.sqrt,yX=1e-8,U_e=1e-4,ame=E1(3),R9=1/3,fh=VS(),su=VS(),Kx=VS();function b1(t){return t>-yX&&t<yX}function W_e(t){return t>yX||t<-yX}function ko(t,e,n,r,a){var i=1-a;return i*i*(i*t+3*a*e)+a*a*(a*r+3*i*n)}function ime(t,e,n,r,a){var i=1-a;return 3*(((e-t)*i+2*(n-e)*a)*i+(r-n)*a*a)}function AX(t,e,n,r,a,i){var o=r+3*(e-n)-t,s=3*(n-e*2+t),l=3*(e-t),c=t-a,u=s*s-3*o*l,f=s*l-9*o*c,d=l*l-3*s*c,h=0;if(b1(u)&&b1(f))if(b1(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var v=f*f-4*u*d;if(b1(v)){var g=f/u,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(v>0){var m=E1(v),R=u*s+1.5*o*(-f+m),A=u*s+1.5*o*(-f-m);R<0?R=-A9(-R,R9):R=A9(R,R9),A<0?A=-A9(-A,R9):A=A9(A,R9);var p=(-s-(R+A))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var x=(2*u*s-3*o*f)/(2*E1(u*u*u)),M=Math.acos(x)/3,S=E1(u),w=Math.cos(M),p=(-s-2*S*w)/(3*o),y=(-s+S*(w+ame*Math.sin(M)))/(3*o),_=(-s+S*(w-ame*Math.sin(M)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),_>=0&&_<=1&&(i[h++]=_)}}return h}function Y_e(t,e,n,r,a){var i=6*n-12*e+6*t,o=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(b1(o)){if(W_e(i)){var c=-s/i;c>=0&&c<=1&&(a[l++]=c)}}else{var u=i*i-4*o*s;if(b1(u))a[0]=-i/(2*o);else if(u>0){var f=E1(u),c=(-i+f)/(2*o),d=(-i-f)/(2*o);c>=0&&c<=1&&(a[l++]=c),d>=0&&d<=1&&(a[l++]=d)}}return l}function RX(t,e,n,r,a,i){var o=(e-t)*a+t,s=(n-e)*a+e,l=(r-n)*a+n,c=(s-o)*a+o,u=(l-s)*a+s,f=(u-c)*a+c;i[0]=t,i[1]=o,i[2]=c,i[3]=f,i[4]=f,i[5]=u,i[6]=l,i[7]=r}function Nqe(t,e,n,r,a,i,o,s,l,c,u){var f,d=.005,h=1/0,p,v,g,y;fh[0]=l,fh[1]=c;for(var m=0;m<1;m+=.05)su[0]=ko(t,n,a,o,m),su[1]=ko(e,r,i,s,m),g=Qx(fh,su),g<h&&(f=m,h=g);h=1/0;for(var R=0;R<32&&!(d<U_e);R++)p=f-d,v=f+d,su[0]=ko(t,n,a,o,p),su[1]=ko(e,r,i,s,p),g=Qx(su,fh),p>=0&&g<h?(f=p,h=g):(Kx[0]=ko(t,n,a,o,v),Kx[1]=ko(e,r,i,s,v),y=Qx(Kx,fh),v<=1&&y<h?(f=v,h=y):d*=.5);return E1(h)}function Iqe(t,e,n,r,a,i,o,s,l){for(var c=t,u=e,f=0,d=1/l,h=1;h<=l;h++){var p=h*d,v=ko(t,n,a,o,p),g=ko(e,r,i,s,p),y=v-c,m=g-u;f+=Math.sqrt(y*y+m*m),c=v,u=g}return f}function dl(t,e,n,r){var a=1-r;return a*(a*t+2*r*e)+r*r*n}function ome(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function kqe(t,e,n,r,a){var i=t-2*e+n,o=2*(e-t),s=t-r,l=0;if(b1(i)){if(W_e(o)){var c=-s/o;c>=0&&c<=1&&(a[l++]=c)}}else{var u=o*o-4*i*s;if(b1(u)){var c=-o/(2*i);c>=0&&c<=1&&(a[l++]=c)}else if(u>0){var f=E1(u),c=(-o+f)/(2*i),d=(-o-f)/(2*i);c>=0&&c<=1&&(a[l++]=c),d>=0&&d<=1&&(a[l++]=d)}}return l}function B_e(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function bX(t,e,n,r,a){var i=(e-t)*r+t,o=(n-e)*r+e,s=(o-i)*r+i;a[0]=t,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=n}function Eqe(t,e,n,r,a,i,o,s,l){var c,u=.005,f=1/0;fh[0]=o,fh[1]=s;for(var d=0;d<1;d+=.05){su[0]=dl(t,n,a,d),su[1]=dl(e,r,i,d);var h=Qx(fh,su);h<f&&(c=d,f=h)}f=1/0;for(var p=0;p<32&&!(u<U_e);p++){var v=c-u,g=c+u;su[0]=dl(t,n,a,v),su[1]=dl(e,r,i,v);var h=Qx(su,fh);if(v>=0&&h<f)c=v,f=h;else{Kx[0]=dl(t,n,a,g),Kx[1]=dl(e,r,i,g);var y=Qx(Kx,fh);g<=1&&y<f?(c=g,f=y):u*=.5}}return E1(f)}function Fqe(t,e,n,r,a,i,o){for(var s=t,l=e,c=0,u=1/o,f=1;f<=o;f++){var d=f*u,h=dl(t,n,a,d),p=dl(e,r,i,d),v=h-s,g=p-l;c+=Math.sqrt(v*v+g*g),s=h,l=p}return c}var Xqe=/cubic-bezier\(([0-9,\.e ]+)\)/;function Pq(t){var e=t&&Xqe.exec(t);if(e){var n=e[1].split(","),r=+R1(n[0]),a=+R1(n[1]),i=+R1(n[2]),o=+R1(n[3]);if(isNaN(r+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:AX(0,r,i,1,l,s)&&ko(0,a,o,1,s[0])}}}var Dqe=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||mc,this.ondestroy=e.ondestroy||mc,this.onrestart=e.onrestart||mc,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,n){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=$n(e)?e:G_[e]||Pq(e)},t}(),Z_e=function(){function t(e){this.value=e}return t}(),Vqe=function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new Z_e(e);return this.insertEntry(n),n},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var n=e.prev,r=e.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),dS=function(){function t(e){this._list=new Vqe,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,n){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new Z_e(n),s.key=e,r.insertEntry(s),a[e]=s}return i},t.prototype.get=function(e){var n=this._map[e],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),sme={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function F1(t){return t=Math.round(t),t<0?0:t>255?255:t}function q$(t){return t<0?0:t>1?1:t}function hK(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?F1(parseFloat(e)/100*255):F1(parseInt(e,10))}function ey(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?q$(parseFloat(e)/100):q$(parseFloat(e))}function pK(t,e,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?t+(e-t)*n*6:n*2<1?e:n*3<2?t+(e-t)*(2/3-n)*6:t}function b9(t,e,n){return t+(e-t)*n}function eu(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t}function ez(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Q_e=new dS(20),x9=null;function _b(t,e){x9&&ez(x9,e),x9=Q_e.put(t,x9||e.slice())}function Ef(t,e){if(t){e=e||[];var n=Q_e.get(t);if(n)return ez(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in sme)return ez(e,sme[r]),_b(t,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){eu(e,0,0,0,1);return}return eu(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),_b(t,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){eu(e,0,0,0,1);return}return eu(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),_b(t,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),c=r.substr(o+1,s-(o+1)).split(","),u=1;switch(l){case"rgba":if(c.length!==4)return c.length===3?eu(e,+c[0],+c[1],+c[2],1):eu(e,0,0,0,1);u=ey(c.pop());case"rgb":if(c.length>=3)return eu(e,hK(c[0]),hK(c[1]),hK(c[2]),c.length===3?u:ey(c[3])),_b(t,e),e;eu(e,0,0,0,1);return;case"hsla":if(c.length!==4){eu(e,0,0,0,1);return}return c[3]=ey(c[3]),tz(c,e),_b(t,e),e;case"hsl":if(c.length!==3){eu(e,0,0,0,1);return}return tz(c,e),_b(t,e),e;default:return}}eu(e,0,0,0,1)}}function tz(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=ey(t[1]),a=ey(t[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],eu(e,F1(pK(o,i,n+1/3)*255),F1(pK(o,i,n)*255),F1(pK(o,i,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function Uqe(t){if(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255,a=Math.min(e,n,r),i=Math.max(e,n,r),o=i-a,s=(i+a)/2,l,c;if(o===0)l=0,c=0;else{s<.5?c=o/(i+a):c=o/(2-i-a);var u=((i-e)/6+o/2)/o,f=((i-n)/6+o/2)/o,d=((i-r)/6+o/2)/o;e===i?l=d-f:n===i?l=1/3+u-d:r===i&&(l=2/3+f-u),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,c,s];return t[3]!=null&&h.push(t[3]),h}}function lme(t,e){var n=Ef(t);if(n){for(var r=0;r<3;r++)n[r]=n[r]*(1-e)|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return C8(n,n.length===4?"rgba":"rgb")}}function Wqe(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var r=t*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=Ef(e[a]),s=Ef(e[i]),l=r-a,c=C8([F1(b9(o[0],s[0],l)),F1(b9(o[1],s[1],l)),F1(b9(o[2],s[2],l)),q$(b9(o[3],s[3],l))],"rgba");return n?{color:c,leftIndex:a,rightIndex:i,value:r}:c}}function nz(t,e,n,r){var a=Ef(t);if(t)return a=Uqe(a),n!=null&&(a[1]=ey($n(n)?n(a[1]):n)),r!=null&&(a[2]=ey($n(r)?r(a[2]):r)),C8(tz(a),"rgba")}function C8(t,e){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(n+=","+t[3]),e+"("+n+")"}}function xX(t,e){var n=Ef(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var cme=new dS(100);function rz(t){if(Sn(t)){var e=cme.get(t);return e||(e=lme(t,-.1),cme.put(t,e)),e}else if(_q(t)){var n=Zt({},t);return n.colorStops=nn(t.colorStops,function(r){return{offset:r.offset,color:lme(r.color,-.1)}}),n}return t}var SX=Math.round;function kw(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var n=Ef(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}return{color:t,opacity:e??1}}var ume=1e-4;function x1(t){return t<ume&&t>-ume}function S9(t){return SX(t*1e3)/1e3}function az(t){return SX(t*1e4)/1e4}function Yqe(t){return"matrix("+S9(t[0])+","+S9(t[1])+","+S9(t[2])+","+S9(t[3])+","+az(t[4])+","+az(t[5])+")"}var Bqe={left:"start",right:"end",center:"middle",middle:"middle"};function Zqe(t,e,n){return n==="top"?t+=e/2:n==="bottom"&&(t-=e/2),t}function Qqe(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function Kqe(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function K_e(t){return t&&!!t.image}function Hqe(t){return t&&!!t.svgElement}function Cq(t){return K_e(t)||Hqe(t)}function H_e(t){return t.type==="linear"}function G_e(t){return t.type==="radial"}function $_e(t){return t&&(t.type==="linear"||t.type==="radial")}function sV(t){return"url(#"+t+")"}function z_e(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function J_e(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*ZE,a=gn(t.scaleX,1),i=gn(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+SX(o*ZE)+"deg, "+SX(s*ZE)+"deg)"),l.join(" ")}var Gqe=function(){return jr.hasGlobalWindow&&$n(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}}(),iz=Array.prototype.slice;function $p(t,e,n){return(e-t)*n+t}function vK(t,e,n,r){for(var a=e.length,i=0;i<a;i++)t[i]=$p(e[i],n[i],r);return t}function $qe(t,e,n,r){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=$p(e[o][s],n[o][s],r)}return t}function M9(t,e,n,r){for(var a=e.length,i=0;i<a;i++)t[i]=e[i]+n[i]*r;return t}function fme(t,e,n,r){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=e[o][s]+n[o][s]*r}return t}function zqe(t,e){for(var n=t.length,r=e.length,a=n>r?e:t,i=Math.min(n,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(n,r);s++)a.push({offset:o.offset,color:o.color.slice()})}function Jqe(t,e,n){var r=t,a=e;if(!(!r.push||!a.push)){var i=r.length,o=a.length;if(i!==o){var s=i>o;if(s)r.length=o;else for(var l=i;l<o;l++)r.push(n===1?a[l]:iz.call(a[l]))}for(var c=r[0]&&r[0].length,l=0;l<r.length;l++)if(n===1)isNaN(r[l])&&(r[l]=a[l]);else for(var u=0;u<c;u++)isNaN(r[l][u])&&(r[l][u]=a[l][u])}}function KE(t){if(_l(t)){var e=t.length;if(_l(t[0])){for(var n=[],r=0;r<e;r++)n.push(iz.call(t[r]));return n}return iz.call(t)}return t}function HE(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function jqe(t){return _l(t&&t[0])?2:1}var _9=0,GE=1,j_e=2,l_=3,oz=4,sz=5,dme=6;function hme(t){return t===oz||t===sz}function w9(t){return t===GE||t===j_e}var y5=[0,0,0,0],qqe=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,n,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=dme,l=n;if(_l(n)){var c=jqe(n);s=c,(c===1&&!oa(n[0])||c===2&&!oa(n[0][0]))&&(o=!0)}else if(oa(n)&&!Iw(n))s=_9;else if(Sn(n))if(!isNaN(+n))s=_9;else{var u=Ef(n);u&&(l=u,s=l_)}else if(_q(n)){var f=Zt({},l);f.colorStops=nn(n.colorStops,function(h){return{offset:h.offset,color:Ef(h.color)}}),H_e(n)?s=oz:G_e(n)&&(s=sz),l=f}i===0?this.valType=s:(s!==this.valType||s===dme)&&(o=!0),this.discrete=this.discrete||o;var d={time:e,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=$n(r)?r:G_[r]||Pq(r)),a.push(d),d},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(v,g){return v.time-g.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=w9(a),c=hme(a),u=0;u<i;u++){var f=r[u],d=f.value,h=o.value;f.percent=f.time/e,s||(l&&u!==i-1?Jqe(d,h,a):c&&zqe(d.colorStops,h.colorStops))}if(!s&&a!==sz&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var p=r[0].value,u=0;u<i;u++)a===_9?r[u].additiveValue=r[u].value-p:a===l_?r[u].additiveValue=M9([],r[u].value,p,-1):w9(a)&&(r[u].additiveValue=a===GE?M9([],r[u].value,p,-1):fme([],r[u].value,p,-1))}},t.prototype.step=function(e,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,a=r?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,c=i===l_,u,f=this._lastFr,d=Math.min,h,p;if(s===1)h=p=o[0];else{if(n<0)u=0;else if(n<this._lastFrP){var v=d(f+1,s-1);for(u=v;u>=0&&!(o[u].percent<=n);u--);u=d(u,s-2)}else{for(u=f;u<s&&!(o[u].percent>n);u++);u=d(u-1,s-2)}p=o[u+1],h=o[u]}if(h&&p){this._lastFr=u,this._lastFrP=n;var g=p.percent-h.percent,y=g===0?1:d((n-h.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=r?this._additiveValue:c?y5:e[l];if((w9(i)||c)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(w9(i))i===GE?vK(m,h[a],p[a],y):$qe(m,h[a],p[a],y);else if(hme(i)){var R=h[a],A=p[a],x=i===oz;e[l]={type:x?"linear":"radial",x:$p(R.x,A.x,y),y:$p(R.y,A.y,y),colorStops:nn(R.colorStops,function(S,w){var _=A.colorStops[w];return{offset:$p(S.offset,_.offset,y),color:HE(vK([],S.color,_.color,y))}}),global:A.global},x?(e[l].x2=$p(R.x2,A.x2,y),e[l].y2=$p(R.y2,A.y2,y)):e[l].r=$p(R.r,A.r,y)}else if(c)vK(m,h[a],p[a],y),r||(e[l]=HE(m));else{var M=$p(h[a],p[a],y);r?this._additiveValue=M:e[l]=M}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,a=this._additiveValue;n===_9?e[r]=e[r]+a:n===l_?(Ef(e[r],y5),M9(y5,y5,a,1),e[r]=HE(y5)):n===GE?M9(e[r],e[r],a,1):n===j_e&&fme(e[r],e[r],a,1)},t}(),Nq=function(){function t(e,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=n,n&&a){T_e("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,n,r){return this.whenWithKeys(e,n,kr(n),r)},t.prototype.whenWithKeys=function(e,n,r,a){for(var i=this._tracks,o=0;o<r.length;o++){var s=r[o],l=i[s];if(!l){l=i[s]=new qqe(s);var c=void 0,u=this._getAdditiveTrack(s);if(u){var f=u.keyframes,d=f[f.length-1];c=d&&d.value,u.valType===l_&&c&&(c=HE(c))}else c=this._target[s];if(c==null)continue;e>0&&l.addKeyframe(0,KE(c),a),this._trackKeys.push(s)}l.addKeyframe(e,KE(n[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var n=e.length,r=0;r<n;r++)e[r].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,n=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)e[n[r]].setFinished()},t.prototype._getAdditiveTrack=function(e){var n,r=this._additiveAnimators;if(r)for(var a=0;a<r.length;a++){var i=r[a].getTrack(e);i&&(n=i)}return n},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),c=s.keyframes,u=c.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=c[u-1];f&&(n._target[s.propName]=f.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var d=new Dqe({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){n._started=2;var p=n._additiveAnimators;if(p){for(var v=!1,g=0;g<p.length;g++)if(p[g]._clip){v=!0;break}v||(n._additiveAnimators=null)}for(var g=0;g<r.length;g++)r[g].step(n._target,h);var y=n._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](n._target,h)},ondestroy:function(){n._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var n=this._clip;e&&n.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return nn(this._trackKeys,function(n){return e._tracks[n]})},t.prototype.stopTracks=function(e,n){if(!e.length||!this._clip)return!0;for(var r=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=r[e[i]];o&&!o.isFinished()&&(n?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!r[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,n,r){if(e){n=n||this._trackKeys;for(var a=0;a<n.length;a++){var i=n[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[r?0:s.length-1];l&&(e[i]=KE(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,n){n=n||kr(e);for(var r=0;r<n.length;r++){var a=n[r],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();function Ax(){return new Date().getTime()}var eet=function(t){Jt(e,t);function e(n){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return e.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},e.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},e.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},e.prototype.update=function(n){for(var r=Ax()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(j$(r),!n._paused&&n.update())}j$(r)},e.prototype.start=function(){this._running||(this._time=Ax(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ax(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ax()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(n,r){r=r||{},this.start();var a=new Nq(n,r.loop);return this.addAnimator(a),a},e}(L0),tet=300,gK=jr.domSupported,mK=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=nn(t,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:t,touch:e,pointer:r}}(),pme={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},vme=!1;function lz(t){var e=t.pointerType;return e==="pen"||e==="touch"}function net(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function yK(t){t&&(t.zrByTouch=!0)}function ret(t,e){return Af(t.dom,new aet(t,e),!0)}function q_e(t,e){for(var n=e,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var aet=function(){function t(e,n){this.stopPropagation=mc,this.stopImmediatePropagation=mc,this.preventDefault=mc,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t}(),Rf={mousedown:function(t){t=Af(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Af(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Af(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Af(this.dom,t);var e=t.toElement||t.relatedTarget;q_e(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){vme=!0,t=Af(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){vme||(t=Af(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Af(this.dom,t),yK(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Rf.mousemove.call(this,t),Rf.mousedown.call(this,t)},touchmove:function(t){t=Af(this.dom,t),yK(t),this.handler.processGesture(t,"change"),Rf.mousemove.call(this,t)},touchend:function(t){t=Af(this.dom,t),yK(t),this.handler.processGesture(t,"end"),Rf.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<tet&&Rf.click.call(this,t)},pointerdown:function(t){Rf.mousedown.call(this,t)},pointermove:function(t){lz(t)||Rf.mousemove.call(this,t)},pointerup:function(t){Rf.mouseup.call(this,t)},pointerout:function(t){lz(t)||Rf.mouseout.call(this,t)}};Ge(["click","dblclick","contextmenu"],function(t){Rf[t]=function(e){e=Af(this.dom,e),this.trigger(t,e)}});var cz={pointermove:function(t){lz(t)||cz.mousemove.call(this,t)},pointerup:function(t){cz.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function iet(t,e){var n=e.domHandlers;jr.pointerEventsSupported?Ge(mK.pointer,function(r){$E(e,r,function(a){n[r].call(t,a)})}):(jr.touchEventsSupported&&Ge(mK.touch,function(r){$E(e,r,function(a){n[r].call(t,a),net(e)})}),Ge(mK.mouse,function(r){$E(e,r,function(a){a=Tq(a),e.touching||n[r].call(t,a)})}))}function oet(t,e){jr.pointerEventsSupported?Ge(pme.pointer,n):jr.touchEventsSupported||Ge(pme.mouse,n);function n(r){function a(i){i=Tq(i),q_e(t,i.target)||(i=ret(t,i),e.domHandlers[r].call(t,i))}$E(e,r,a,{capture:!0})}}function $E(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,pqe(t.domTarget,e,n,r)}function AK(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&vqe(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var gme=function(){function t(e,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=n}return t}(),set=function(t){Jt(e,t);function e(n,r){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=n,a.painterRoot=r,a._localHandlerScope=new gme(n,Rf),gK&&(a._globalHandlerScope=new gme(document,cz)),iet(a,a._localHandlerScope),a}return e.prototype.dispose=function(){AK(this._localHandlerScope),gK&&AK(this._globalHandlerScope)},e.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},e.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,gK&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?oet(this,r):AK(r)}},e}(L0),ewe=1;jr.hasGlobalWindow&&(ewe=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var mme=ewe,uz=.4,fz="#333",dz="#ccc",cet="#eee",yme=Oq,Ame=5e-5;function Gm(t){return t>Ame||t<-Ame}var $m=[],wb=[],RK=k1(),bK=Math.abs,Iq=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Gm(this.rotation)||Gm(this.x)||Gm(this.y)||Gm(this.scaleX-1)||Gm(this.scaleY-1)||Gm(this.skewX)||Gm(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&(yme(r),this.invTransform=null);return}r=r||k1(),n?this.getLocalTransform(r):yme(r),e&&(n?K_(r,e,r):I_e(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale($m);var r=$m[0]<0?-1:1,a=$m[1]<0?-1:1,i=(($m[0]-r)*n+r)/$m[0]||0,o=(($m[1]-a)*n+a)/$m[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||k1(),P8(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,n=[];e;)n.push(e),e=e.parent;for(;e=n.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var n=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),n=Math.sqrt(n),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,n=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||k1(),K_(wb,e.invTransform,n),n=wb);var r=this.originX,a=this.originY;(r||a)&&(RK[4]=r,RK[5]=a,K_(wb,n,RK),wb[4]-=r,wb[5]-=a,n=wb),this.setLocalTransform(n)}},t.prototype.getGlobalScale=function(e){var n=this.transform;return e=e||[],n?(e[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),e[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(e[0]=-e[0]),n[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,n){var r=[e,n],a=this.invTransform;return a&&Au(r,r,a),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],a=this.transform;return a&&Au(r,r,a),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&bK(e[0]-1)>1e-10&&bK(e[3]-1)>1e-10?Math.sqrt(bK(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){MX(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,c=e.rotation||0,u=e.x,f=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,v=a+l;n[4]=-p*i-d*v*o,n[5]=-v*o-h*p*i}else n[4]=n[5]=0;return n[0]=i,n[3]=o,n[1]=h*i,n[2]=d*o,c&&k_e(n,n,c),n[4]+=r+u,n[5]+=a+f,n},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Ew=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function MX(t,e){for(var n=0;n<Ew.length;n++){var r=Ew[n];t[r]=e[r]}}function xh(t){L9||(L9=new dS(100)),t=t||b0;var e=L9.get(t);return e||(e={font:t,strWidthCache:new dS(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:B1.measureText("国",t).width,asciiCharWidth:B1.measureText("a",t).width},L9.put(t,e)),e}var L9;function uet(t){if(!(xK>=Rme)){t=t||b0;for(var e=[],n=+new Date,r=0;r<=127;r++)e[r]=B1.measureText(String.fromCharCode(r),t).width;var a=+new Date-n;return a>16?xK=Rme:a>2&&xK++,e}}var xK=0,Rme=5;function twe(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=uet(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Sh(t,e){var n=t.strWidthCache,r=n.get(e);return r==null&&(r=B1.measureText(e,t.font).width,n.put(e,r)),r}function bme(t,e,n,r){var a=Sh(xh(e),t),i=N8(e),o=hS(0,a,n),s=ty(0,i,r),l=new fr(o,s,a,i);return l}function fet(t,e,n,r){var a=((t||"")+"").split(`-`),i=a.length;if(i===1)return bme(a[0],e,n,r);for(var o=new fr(0,0,0,0),s=0;s<a.length;s++){var l=bme(a[s],e,n,r);s===0?o.copy(l):o.union(l)}return o}function hS(t,e,n,r){return n==="right"?r?t+=e:t-=e:n==="center"&&(r?t+=e/2:t-=e/2),t}function ty(t,e,n,r){return n==="middle"?r?t+=e/2:t-=e/2:n==="bottom"&&(r?t+=e:t-=e),t}function N8(t){return xh(t).stWideCharWidth}function Q1(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function _X(t,e,n){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=n.height,o=n.width,s=i/2,l=n.x,c=n.y,u="left",f="top";if(r instanceof Array)l+=Q1(r[0],n.width),c+=Q1(r[1],n.height),u=null,f=null;else switch(r){case"left":l-=a,c+=s,u="right",f="middle";break;case"right":l+=a+o,c+=s,f="middle";break;case"top":l+=o/2,c-=a,u="center",f="bottom";break;case"bottom":l+=o/2,c+=i+a,u="center";break;case"inside":l+=o/2,c+=s,u="center",f="middle";break;case"insideLeft":l+=a,c+=s,f="middle";break;case"insideRight":l+=o-a,c+=s,u="right",f="middle";break;case"insideTop":l+=o/2,c+=a,u="center";break;case"insideBottom":l+=o/2,c+=i-a,u="center",f="bottom";break;case"insideTopLeft":l+=a,c+=a;break;case"insideTopRight":l+=o-a,c+=a,u="right";break;case"insideBottomLeft":l+=a,c+=i-a,f="bottom";break;case"insideBottomRight":l+=o-a,c+=i-a,u="right",f="bottom";break}return t=t||{},t.x=l,t.y=c,t.align=u,t.verticalAlign=f,t}var SK="__zr_normal__",MK=Ew.concat(["ignore"]),det=Z1(Ew,function(t,e){return t[e]=!0,t},{ignore:!1}),Lb={},het=new fr(0,0,0,0),T9=[],lV=function(){function t(e){this.id=L_e(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=n,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var n=this._textContent;if(n&&(!n.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=n.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var c=!1;i.copyTransform(n);var u=r.position!=null,f=r.autoOverflowArea,d=void 0;if((f||u)&&(d=het,r.layoutRect?d.copy(r.layoutRect):d.copy(this.getBoundingRect()),a||d.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(Lb,r,d):_X(Lb,r,d),i.x=Lb.x,i.y=Lb.y,o=Lb.align,s=Lb.verticalAlign;var h=r.origin;if(h&&r.rotation!=null){var p=void 0,v=void 0;h==="center"?(p=d.width*.5,v=d.height*.5):(p=Q1(h[0],d.width),v=Q1(h[1],d.height)),c=!0,i.originX=-i.x+p+(a?0:d.x),i.originY=-i.y+v+(a?0:d.y)}}r.rotation!=null&&(i.rotation=r.rotation);var g=r.offset;g&&(i.x+=g[0],i.y+=g[1],c||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var m=y.overflowRect=y.overflowRect||new fr(0,0,0,0);i.getLocalTransform(T9),P8(T9,T9),fr.copy(m,d),m.applyTransform(T9)}else y.overflowRect=null;var R=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,A=void 0,x=void 0,M=void 0;R&&this.canBeInsideText()?(A=r.insideFill,x=r.insideStroke,(A==null||A==="auto")&&(A=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(A),M=!0)):(A=r.outsideFill,x=r.outsideStroke,(A==null||A==="auto")&&(A=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(A),M=!0)),A=A||"#000",(A!==y.fill||x!==y.stroke||M!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=A,y.stroke=x,y.autoStroke=M,y.align=o,y.verticalAlign=s,n.setDefaultTextStyle(y)),n.__dirty|=uh,l&&n.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?dz:fz},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Ef(n);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,C8(r,"rgba")},t.prototype.traverse=function(e,n){},t.prototype.attrKV=function(e,n){e==="textConfig"?this.setTextConfig(n):e==="textContent"?this.setTextContent(n):e==="clipPath"?this.setClipPath(n):e==="extra"?(this.extra=this.extra||{},Zt(this.extra,n)):this[e]=n},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,n){if(typeof e=="string")this.attrKV(e,n);else if(kn(e))for(var r=e,a=kr(r),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var n=this._normalState,r=0;r<this.animators.length;r++){var a=this.animators[r],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==SK)){var o=a.targetName,s=o?n[o]:n;a.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var n=this._normalState;n||(n=this._normalState={}),e.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(e,n,MK)},t.prototype._savePrimaryToNormal=function(e,n,r){for(var a=0;a<r.length;a++){var i=r[a];e[i]!=null&&!(i in n)&&(n[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var n=this.states;return n[e]||(n[e]={}),n[e]},t.prototype.clearStates=function(e){this.useState(SK,!1,e)},t.prototype.useState=function(e,n,r,a){var i=e===SK,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(aa(s,e)>=0&&(n||s.length===1))){var c;if(this.stateProxy&&!i&&(c=this.stateProxy(e)),c||(c=this.states&&this.states[e]),!c&&!i){T_e("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(c);var u=!!(c&&c.hoverLayer||a);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,c,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(e,n,r,u),d&&d.useState(e,n,r,u),i?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~uh),c}}},t.prototype.useStates=function(e,n,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var c=e[l],u=void 0;this.stateProxy&&(u=this.stateProxy(c,e)),u||(u=this.states[c]),u&&a.push(u)}var f=a[o-1],d=!!(f&&f.hoverLayer||r);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!n&&!this.__inHover&&p&&p.duration>0,p);var v=this._textContent,g=this._textGuide;v&&v.useStates(e,n,d),g&&g.useStates(e,n,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~uh)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var n=e.__hostTarget;e=n?e.ignoreHostSilent?null:n:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var n=this.animators[e];n.targetName&&n.changeTarget(this[n.targetName])}},t.prototype.removeState=function(e){var n=aa(this.currentStates,e);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},t.prototype.replaceState=function(e,n,r){var a=this.currentStates.slice(),i=aa(a,e),o=aa(a,n)>=0;i>=0?o?a.splice(i,1):a[i]=n:r&&!o&&a.push(n),this.useStates(a)},t.prototype.toggleState=function(e,n){n?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n={},r,a=0;a<e.length;a++){var i=e[a];Zt(n,i),i.textConfig&&(r=r||{},Zt(r,i.textConfig))}return r&&(n.textConfig=r),n},t.prototype._applyStateObj=function(e,n,r,a,i,o){var s=!(n&&a);n&&n.textConfig?(this.textConfig=Zt({},a?this.textConfig:r.textConfig),Zt(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},c=!1,u=0;u<MK.length;u++){var f=MK[u],d=i&&det[f];n&&n[f]!=null?d?(c=!0,l[f]=n[f]):this[f]=n[f]:s&&r[f]!=null&&(d?(c=!0,l[f]=r[f]):this[f]=r[f])}if(!i)for(var u=0;u<this.animators.length;u++){var h=this.animators[u],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(n||r)[p]:n||r)}c&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var n=this.__zr;n&&e.addSelfToZr(n),e.__zr=n,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var n=this._textContent;n!==e&&(n&&n!==e&&this.removeTextContent(),e.innerTransformable=new Iq,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Zt(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=uh;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=e),r&&(r.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,n,r){var a=e?this[e]:this,i=new Nq(a,n,r);return e&&(i.targetName=e),this.addAnimator(i,e),i},t.prototype.addAnimator=function(e,n){var r=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(n)}).done(function(){var i=a.animators,o=aa(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,n){for(var r=this.animators,a=r.length,i=[],o=0;o<a;o++){var s=r[o];!e||e===s.scope?s.stop(n):i.push(s)}return this.animators=i,this},t.prototype.animateTo=function(e,n,r){_K(this,e,n,r)},t.prototype.animateFrom=function(e,n,r){_K(this,e,n,r,!0)},t.prototype._transitionState=function(e,n,r,a){for(var i=_K(this,n,r,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=uh;function n(r,a,i,o){Object.defineProperty(e,r,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,c){Object.defineProperty(c,0,{get:function(){return l[i]},set:function(u){l[i]=u}}),Object.defineProperty(c,1,{get:function(){return l[o]},set:function(u){l[o]=u}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();Kf(lV,L0);Kf(lV,Iq);function _K(t,e,n,r,a){n=n||{};var i=[];nwe(t,"",t,e,n,r,i,a);var o=i.length,s=!1,l=n.done,c=n.aborted,u=function(){s=!0,o--,o<=0&&(s?l&&l():c&&c())},f=function(){o--,o<=0&&(s?l&&l():c&&c())};o||l&&l(),i.length>0&&n.during&&i[0].during(function(p,v){n.during(v)});for(var d=0;d<i.length;d++){var h=i[d];u&&h.done(u),f&&h.aborted(f),n.force&&h.duration(n.duration),h.start(n.easing)}return i}function wK(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function pet(t){return _l(t[0])}function vet(t,e,n){if(_l(e[n]))if(_l(t[n])||(t[n]=[]),wl(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),wK(t[n],e[n],r))}else{var a=e[n],i=t[n],o=a.length;if(pet(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?wK(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else wK(i,a,o);i.length=a.length}else t[n]=e[n]}function get(t,e){return t===e||_l(t)&&_l(e)&&met(t,e)}function met(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function nwe(t,e,n,r,a,i,o,s){for(var l=kr(r),c=a.duration,u=a.delay,f=a.additive,d=a.setToFinal,h=!kn(i),p=t.animators,v=[],g=0;g<l.length;g++){var y=l[g],m=r[y];if(m!=null&&n[y]!=null&&(h||i[y]))if(kn(m)&&!_l(m)&&!_q(m)){if(e){s||(n[y]=m,t.updateDuringAnimation(e));continue}nwe(t,y,n[y],m,a,i&&i[y],o,s)}else v.push(y);else s||(n[y]=m,t.updateDuringAnimation(e),v.push(y))}var R=v.length;if(!f&&R)for(var A=0;A<p.length;A++){var x=p[A];if(x.targetName===e){var M=x.stopTracks(v);if(M){var S=aa(p,x);p.splice(S,1)}}}if(a.force||(v=Hi(v,function(O){return!get(r[O],n[O])}),R=v.length),R>0||a.force&&!o.length){var w=void 0,_=void 0,T=void 0;if(s){_={},d&&(w={});for(var A=0;A<R;A++){var y=v[A];_[y]=n[y],d?w[y]=r[y]:n[y]=r[y]}}else if(d){T={};for(var A=0;A<R;A++){var y=v[A];T[y]=KE(n[y]),vet(n,r,y)}}var x=new Nq(n,!1,!1,f?Hi(p,function(N){return N.targetName===e}):null);x.targetName=e,a.scope&&(x.scope=a.scope),d&&w&&x.whenWithKeys(0,w,v),T&&x.whenWithKeys(0,T,v),x.whenWithKeys(c??500,s?_:r,v).delay(u||0),t.addAnimator(x,e),o.push(x)}}var ki=function(t){Jt(e,t);function e(n){var r=t.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(n){return this._children[n]},e.prototype.childOfName=function(n){for(var r=this._children,a=0;a<r.length;a++)if(r[a].name===n)return r[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},e.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var a=this._children,i=a.indexOf(r);i>=0&&(a.splice(i,0,n),this._doAdd(n))}return this},e.prototype.replace=function(n,r){var a=aa(this._children,n);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(n,r){var a=this._children,i=a[r];if(n&&n!==this&&n.parent!==this&&n!==i){a[r]=n,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(n)}return this},e.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(n){var r=this.__zr,a=this._children,i=aa(a,n);return i<0?this:(a.splice(i,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,a=0;a<n.length;a++){var i=n[a];r&&i.removeSelfFromZr(r),i.parent=null}return n.length=0,this},e.prototype.eachChild=function(n,r){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];n.call(r,o,i)}return this},e.prototype.traverse=function(n,r){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=n.call(r,i);i.isGroup&&!o&&i.traverse(n,r)}return this},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.addSelfToZr(n)}},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.removeSelfFromZr(n)}},e.prototype.getBoundingRect=function(n){for(var r=new fr(0,0,0,0),a=n||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var c=l.getBoundingRect(),u=l.getLocalTransform(i);u?(fr.applyTransform(r,c,u),o=o||r.clone(),o.union(r)):(o=o||c.clone(),o.union(c))}}return o||r},e}(lV);ki.prototype.type="group";/*!-* ZRender, a high performance 2d drawing library.-*-* Copyright (c) 2013, Baidu Inc.-* All rights reserved.-*-* LICENSE-* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt-*/var zE={},rwe={};function yet(t){delete rwe[t]}function Aet(t){if(!t)return!1;if(typeof t=="string")return xX(t,1)<uz;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,a=0;a<r;a++)n+=xX(e[a].color,1);return n/=r,n<uz}return!1}var Ret=function(){function t(e,n,r){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=e;var i=new Cqe,o=r.renderer||"canvas";zE[o]||(o=kr(zE)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new zE[o](n,i,r,e),l=r.ssr||s.ssrOnly;this.storage=i,this.painter=s;var c=!jr.node&&!jr.worker&&!l?new set(s.getViewportRoot(),s.root):null,u=r.useCoarsePointer,f=u==null||u==="auto"?jr.touchEventsSupported:!!u,d=44,h;f&&(h=gn(r.pointerSize,d)),this.handler=new X_e(i,s,c,s.root,h),this.animation=new eet({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,n),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Aet(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var n,r=Ax();this._needsRefresh&&(n=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=Ax();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,n){if(!this._disposed)return this.handler.findHover(e,n)},t.prototype.on=function(e,n,r){return this._disposed||this.handler.on(e,n,r),this},t.prototype.off=function(e,n){this._disposed||this.handler.off(e,n)},t.prototype.trigger=function(e,n){this._disposed||this.handler.trigger(e,n)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),n=0;n<e.length;n++)e[n]instanceof ki&&e[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,yet(this.id))},t}();function xme(t,e){var n=new Ret(L_e(),t,e);return rwe[n.id]=n,n}function bet(t,e){zE[t]=e}var hz;function xet(t){if(typeof hz=="function")return hz(t)}function Met(t){hz=t}var Sme=1e-4,awe=20;function _et(t){return t.replace(/^\s+|\s+$/g,"")}var Fw=Math.min,hc=Math.max,gh=Math.abs;function pz(t,e,n,r){var a=e[0],i=e[1],o=n[0],s=n[1],l=i-a,c=s-o;if(l===0)return c===0?o:(o+s)/2;if(r)if(l>0){if(t<=a)return o;if(t>=i)return s}else{if(t>=a)return o;if(t<=i)return s}else{if(t===a)return o;if(t===i)return s}return(t-a)/l*c+o}var Aa=wet;function wet(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return vz(t,e,n)}function vz(t,e,n){return Sn(t)?_et(t).match(/%$/)?parseFloat(t)/100*e+(n||0):parseFloat(t):t==null?NaN:+t}function Fo(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),awe),t=(+t).toFixed(e),n?t:+t}function c0(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n}return Let(t)}function Let(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,a=n>0?n:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function Tet(t,e){var n=Math.log,r=Math.LN10,a=Math.floor(n(t[1]-t[0])/r),i=Math.round(n(gh(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Oet(t,e){var n=Z1(t,function(h,p){return h+(isNaN(p)?0:p)},0);if(n===0)return[];for(var r=Math.pow(10,e),a=nn(t,function(h){return(isNaN(h)?0:h)/n*r*100}),i=r*100,o=nn(a,function(h){return Math.floor(h)}),s=Z1(o,function(h,p){return h+p},0),l=nn(a,function(h,p){return h-o[p]});s<i;){for(var c=Number.NEGATIVE_INFINITY,u=null,f=0,d=l.length;f<d;++f)l[f]>c&&(c=l[f],u=f);++o[u],l[u]=0,++s}return nn(o,function(h){return h/r})}function Pet(t,e){var n=Math.max(c0(t),c0(e)),r=t+e;return n>awe?r:Fo(r,n)}function iwe(t){var e=Math.PI*2;return(t%e+e)%e}function wX(t){return t>-Sme&&t<Sme}var Cet=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function I8(t){if(t instanceof Date)return t;if(Sn(t)){var e=Cet.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function Net(t){return Math.pow(10,kq(t))}function kq(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function owe(t,e){var n=kq(t),r=Math.pow(10,n),a=t/r,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,t=i*r,n>=-20?+t.toFixed(n<0?-n:0):t}function Iet(t){var e=parseFloat(t);return e==t&&(e!==0||!Sn(t)||t.indexOf("x")<=0)?e:NaN}function ket(t){return!isNaN(Iet(t))}function Eet(){return Math.round(Math.random()*9)}function swe(t,e){return e===0?t:swe(e,t%e)}function Mme(t,e){return t==null?e:e==null?t:t*e/swe(t,e)}var Fet="[ECharts] ",Xet=typeof console<"u"&&console.warn&&console.log;function Det(t,e,n){Xet&&console[t](Fet+e)}function lwe(t,e){Det("error",t)}function sc(t){throw new Error(t)}function _me(t,e,n){return(e-t)*n+t}var cwe="series\0",Vet="\0_ec_\0";function Ds(t){return t instanceof Array?t:t==null?[]:[t]}function gz(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,a=n.length;r<a;r++){var i=n[r];!t.emphasis[e].hasOwnProperty(i)&&t[e].hasOwnProperty(i)&&(t.emphasis[e][i]=t[e][i])}}}var wme=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function k8(t){return kn(t)&&!dn(t)&&!(t instanceof Date)?t.value:t}function Uet(t){return kn(t)&&!(t instanceof Array)}function Wet(t,e,n){var r=n==="normalMerge",a=n==="replaceMerge",i=n==="replaceAll";t=t||[],e=(e||[]).slice();var o=ir();Ge(e,function(l,c){if(!kn(l)){e[c]=null;return}});var s=Yet(t,o,n);return(r||a)&&Bet(s,t,o,e),r&&Zet(s,e),r||a?Qet(s,e,a):i&&Ket(s,e),Het(s),s}function Yet(t,e,n){var r=[];if(n==="replaceAll")return r;for(var a=0;a<t.length;a++){var i=t[a];i&&i.id!=null&&e.set(i.id,a),r.push({existing:n==="replaceMerge"||Xw(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return r}function Bet(t,e,n,r){Ge(r,function(a,i){if(!(!a||a.id==null)){var o=$_(a.id),s=n.get(o);if(s!=null){var l=t[s];Nh(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],r[i]=null}}})}function Zet(t,e){Ge(e,function(n,r){if(!(!n||n.name==null))for(var a=0;a<t.length;a++){var i=t[a].existing;if(!t[a].newOption&&i&&(i.id==null||n.id==null)&&!Xw(n)&&!Xw(i)&&uwe("name",i,n)){t[a].newOption=n,e[r]=null;return}}})}function Qet(t,e,n){Ge(e,function(r){if(r){for(var a,i=0;(a=t[i])&&(a.newOption||Xw(a.existing)||a.existing&&r.id!=null&&!uwe("id",r,a.existing));)i++;a?(a.newOption=r,a.brandNew=n):t.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),i++}})}function Ket(t,e){Ge(e,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function Het(t){var e=ir();Ge(t,function(n){var r=n.existing;r&&e.set(r.id,n)}),Ge(t,function(n){var r=n.newOption;Nh(!r||r.id==null||!e.get(r.id)||e.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&e.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),Ge(t,function(n,r){var a=n.existing,i=n.newOption,o=n.keyInfo;if(kn(i)){if(o.name=i.name!=null?$_(i.name):a?a.name:cwe+r,a)o.id=$_(a.id);else if(i.id!=null)o.id=$_(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,n)}})}function uwe(t,e,n){var r=Mh(e[t],null),a=Mh(n[t],null);return r!=null&&a!=null&&r===a}function $_(t){return Mh(t,"")}function Mh(t,e){return t==null?e:Sn(t)?t:oa(t)||Qje(t)?t+"":e}function Eq(t){var e=t.name;return!!(e&&e.indexOf(cwe))}function Xw(t){return t&&t.id!=null&&$_(t.id).indexOf(Vet)===0}function Get(t,e,n){Ge(t,function(r){var a=r.newOption;kn(a)&&(r.keyInfo.mainType=e,r.keyInfo.subType=$et(e,a,r.existing,n))})}function $et(t,e,n,r){var a=e.type?e.type:n?n.subType:r.determineSubType(t,e);return a}function pS(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return dn(e.dataIndex)?nn(e.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return dn(e.name)?nn(e.name,function(n){return t.indexOfName(n)}):t.indexOfName(e.name)}function mi(){var t="__ec_inner_"+zet++;return function(e){return e[t]||(e[t]={})}}var zet=Eet();function LK(t,e,n){var r=fwe(e,n),a=r.mainTypeSpecified,i=r.queryOptionMap,o=r.others,s=o,l=n?n.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(c,u){var f=cV(t,u,c,{useDefault:l===u,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[u+"Models"]=f.models,s[u+"Model"]=f.models[0]}),s}function fwe(t,e){var n;if(Sn(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var a=ir(),i={},o=!1;return Ge(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var c=l.match(/^(\w+)(Index|Id|Name)$/)||[],u=c[1],f=(c[2]||"").toLowerCase();if(!(!u||!f||e&&e.includeMainTypes&&aa(e.includeMainTypes,u)<0)){o=o||!!u;var d=a.get(u)||a.set(u,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var du={useDefault:!0,enableAll:!1,enableNone:!1};function cV(t,e,n,r){r=r||du;var a=n.index,i=n.id,o=n.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(a==="none"||a===!1){if(r.enableNone)return s.models=[],s;a=-1}return a==="all"&&(r.enableAll?a=i=o=null:a=-1),s.models=t.queryComponents({mainType:e,index:a,id:i,name:o}),s}function dwe(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Jet(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function jet(t,e,n,r,a){var i=e==null||e==="auto";if(r==null)return r;if(oa(r)){var o=_me(n||0,r,a);return Fo(o,i?Math.max(c0(n||0),c0(r)):e)}else{if(Sn(r))return a<1?n:r;for(var s=[],l=n,c=r,u=Math.max(l?l.length:0,c.length),f=0;f<u;++f){var d=t.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(a<1&&l?l:c)[f];else{var h=l&&l[f]?l[f]:0,p=c[f],o=_me(h,p,a);s[f]=Fo(o,i?Math.max(c0(h),c0(p)):e)}}return s}}var qet=".",zm="___EC__COMPONENT__CONTAINER___",hwe="___EC__EXTENDED_CLASS___";function mh(t){var e={main:"",sub:""};if(t){var n=t.split(qet);e.main=n[0]||"",e.sub=n[1]||""}return e}function ett(t){Nh(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function ttt(t){return!!(t&&t[hwe])}function Fq(t,e){t.$constructor=t,t.extend=function(n){var r=this,a;return ntt(r)?a=function(i){Jt(o,i);function o(){return i.apply(this,arguments)||this}return o}(r):(a=function(){(n.$constructor||r).apply(this,arguments)},Bje(a,this)),Zt(a.prototype,n),a[hwe]=!0,a.extend=this.extend,a.superCall=itt,a.superApply=ott,a.superClass=r,a}}function ntt(t){return $n(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function pwe(t,e){t.extend=e.extend}var rtt=Math.round(Math.random()*10);function att(t){var e=["__\0is_clz",rtt++].join("_");t.prototype[e]=!0,t.isInstance=function(n){return!!(n&&n[e])}}function itt(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function ott(t,e,n){return this.superClass.prototype[e].apply(t,n)}function uV(t){var e={};t.registerClass=function(r){var a=r.type||r.prototype.type;if(a){ett(a),r.prototype.type=a;var i=mh(a);if(!i.sub)e[i.main]=r;else if(i.sub!==zm){var o=n(i);o[i.sub]=r}}return r},t.getClass=function(r,a,i){var o=e[r];if(o&&o[zm]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+r+"."+(a||"")+" is used but not imported.":r+".type should be specified.");return o},t.getClassesByMainType=function(r){var a=mh(r),i=[],o=e[a.main];return o&&o[zm]?Ge(o,function(s,l){l!==zm&&i.push(s)}):i.push(o),i},t.hasClass=function(r){var a=mh(r);return!!e[a.main]},t.getAllClassMainTypes=function(){var r=[];return Ge(e,function(a,i){r.push(i)}),r},t.hasSubTypes=function(r){var a=mh(r),i=e[a.main];return i&&i[zm]};function n(r){var a=e[r.main];return(!a||!a[zm])&&(a=e[r.main]={},a[zm]=!0),a}}function Dw(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(r,a,i){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(a&&aa(a,l)>=0||i&&aa(i,l)<0)){var c=r.getShallow(l,e);c!=null&&(o[t[s][0]]=c)}}return o}}var stt=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],ltt=Dw(stt),ctt=function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return ltt(this,e,n)},t}(),mz=new dS(50);function utt(t){if(typeof t=="string"){var e=mz.get(t);return e&&e.image}else return t}function Xq(t,e,n,r,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var i=mz.get(t),o={hostEl:n,cb:r,cbPayload:a};return i?(e=i.image,!fV(e)&&i.pending.push(o)):(e=B1.loadImage(t,Lme,Lme),e.__zrImageSrc=t,mz.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Lme(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function fV(t){return t&&t.width&&t.height}var TK=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ftt(t,e,n,r,a,i){if(!n){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`-`);i=vwe(n,r,a,i);for(var s=!1,l={},c=0,u=o.length;c<u;c++)gwe(l,o[c],i),o[c]=l.textLine,s=s||l.isTruncated;t.text=o.join(`-`),t.isTruncated=s}function vwe(t,e,n,r){r=r||{};var a=Zt({},r);n=gn(n,"..."),a.maxIterations=gn(r.maxIterations,2);var i=a.minChar=gn(r.minChar,0),o=a.fontMeasureInfo=xh(e),s=o.asciiCharWidth;a.placeholder=gn(r.placeholder,"");for(var l=t=Math.max(0,t-1),c=0;c<i&&l>=s;c++)l-=s;var u=Sh(o,n);return u>l&&(n="",u=0),l=t-u,a.ellipsis=n,a.ellipsisWidth=u,a.contentWidth=l,a.containerWidth=t,a}function gwe(t,e,n){var r=n.containerWidth,a=n.contentWidth,i=n.fontMeasureInfo;if(!r){t.textLine="",t.isTruncated=!1;return}var o=Sh(i,e);if(o<=r){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=n.maxIterations){e+=n.ellipsis;break}var l=s===0?dtt(e,a,i):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,l),o=Sh(i,e)}e===""&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function dtt(t,e,n){for(var r=0,a=0,i=t.length;a<i&&r<e;a++)r+=twe(n,t.charCodeAt(a));return a}function htt(t,e,n,r){var a=Dq(t),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,c=e.font,u=i==="truncate",f=N8(c),d=gn(e.lineHeight,f),h=e.lineOverflow==="truncate",p=!1,v=e.width;v==null&&n!=null&&(v=n-s);var g=e.height;g==null&&r!=null&&(g=r-l);var y;v!=null&&(i==="break"||i==="breakAll")?y=a?mwe(a,e.font,v,i==="breakAll",0).lines:[]:y=a?a.split(`-`):[];var m=y.length*d;if(g==null&&(g=m),m>g&&h){var R=Math.floor(g/d);p=p||y.length>R,y=y.slice(0,R),m=y.length*d}if(a&&u&&v!=null)for(var A=vwe(v,c,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x={},M=0;M<y.length;M++)gwe(x,y[M],A),y[M]=x.textLine,p=p||x.isTruncated;for(var S=g,w=0,_=xh(c),M=0;M<y.length;M++)w=Math.max(Sh(_,y[M]),w);v==null&&(v=w);var T=v;return S+=l,T+=s,{lines:y,height:g,outerWidth:T,outerHeight:S,lineHeight:d,calculatedLineHeight:f,contentWidth:w,contentHeight:m,width:v,isTruncated:p}}var ptt=function(){function t(){}return t}(),Tme=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),vtt=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t}();function gtt(t,e,n,r,a){var i=new vtt,o=Dq(t);if(!o)return i;var s=e.padding,l=s?s[1]+s[3]:0,c=s?s[0]+s[2]:0,u=e.width;u==null&&n!=null&&(u=n-l);var f=e.height;f==null&&r!=null&&(f=r-c);for(var d=e.overflow,h=(d==="break"||d==="breakAll")&&u!=null?{width:u,accumWidth:0,breakAll:d==="breakAll"}:null,p=TK.lastIndex=0,v;(v=TK.exec(o))!=null;){var g=v.index;g>p&&OK(i,o.substring(p,g),e,h),OK(i,v[2],e,h,v[1]),p=TK.lastIndex}p<o.length&&OK(i,o.substring(p,o.length),e,h);var y=[],m=0,R=0,A=d==="truncate",x=e.lineOverflow==="truncate",M={};function S(B,xe,_e){B.width=xe,B.lineHeight=_e,m+=_e,R=Math.max(R,xe)}e:for(var w=0;w<i.lines.length;w++){for(var _=i.lines[w],T=0,O=0,N=0;N<_.tokens.length;N++){var P=_.tokens[N],C=P.styleName&&e.rich[P.styleName]||{},E=P.textPadding=C.padding,F=E?E[1]+E[3]:0,Y=P.font=C.font||e.font;P.contentHeight=N8(Y);var Q=gn(C.height,P.contentHeight);if(P.innerHeight=Q,E&&(Q+=E[0]+E[2]),P.height=Q,P.lineHeight=q2(C.lineHeight,e.lineHeight,Q),P.align=C&&C.align||a,P.verticalAlign=C&&C.verticalAlign||"middle",x&&f!=null&&m+P.lineHeight>f){var K=i.lines.length;N>0?(_.tokens=_.tokens.slice(0,N),S(_,O,T),i.lines=i.lines.slice(0,w+1)):i.lines=i.lines.slice(0,w),i.isTruncated=i.isTruncated||i.lines.length<K;break e}var ne=C.width,Z=ne==null||ne==="auto";if(typeof ne=="string"&&ne.charAt(ne.length-1)==="%")P.percentWidth=ne,y.push(P),P.contentWidth=Sh(xh(Y),P.text);else{if(Z){var $=C.backgroundColor,G=$&&$.image;G&&(G=utt(G),fV(G)&&(P.width=Math.max(P.width,G.width*Q/G.height)))}var ee=A&&u!=null?u-O:null;ee!=null&&ee<P.width?!Z||ee<F?(P.text="",P.width=P.contentWidth=0):(ftt(M,P.text,ee-F,Y,e.ellipsis,{minChar:e.truncateMinChar}),P.text=M.text,i.isTruncated=i.isTruncated||M.isTruncated,P.width=P.contentWidth=Sh(xh(Y),P.text)):P.contentWidth=Sh(xh(Y),P.text)}P.width+=F,O+=P.width,C&&(T=Math.max(T,P.lineHeight))}S(_,O,T)}i.outerWidth=i.width=gn(u,R),i.outerHeight=i.height=gn(f,m),i.contentHeight=m,i.contentWidth=R,i.outerWidth+=l,i.outerHeight+=c;for(var w=0;w<y.length;w++){var P=y[w],ce=P.percentWidth;P.width=parseInt(ce,10)/100*i.width}return i}function OK(t,e,n,r,a){var i=e==="",o=a&&n.rich[a]||{},s=t.lines,l=o.font||n.font,c=!1,u,f;if(r){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var p=Q1(o.width,r.width)+h;s.length>0&&p+r.accumWidth>r.width&&(u=e.split(`-`),c=!0),r.accumWidth=p}else{var v=mwe(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=v.accumWidth+h,f=v.linesWidths,u=v.lines}}u||(u=e.split(`-`));for(var g=xh(l),y=0;y<u.length;y++){var m=u[y],R=new ptt;if(R.styleName=a,R.text=m,R.isLineHolder=!m&&!i,typeof o.width=="number"?R.width=o.width:R.width=f?f[y]:Sh(g,m),!y&&!c){var A=(s[s.length-1]||(s[0]=new Tme)).tokens,x=A.length;x===1&&A[0].isLineHolder?A[0]=R:(m||!x||i)&&A.push(R)}else s.push(new Tme([R]))}}function mtt(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var ytt=Z1(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Att(t){return mtt(t)?!!ytt[t]:!0}function mwe(t,e,n,r,a){for(var i=[],o=[],s="",l="",c=0,u=0,f=xh(e),d=0;d<t.length;d++){var h=t.charAt(d);if(h===`-`){l&&(s+=l,u+=c),i.push(s),o.push(u),s="",l="",c=0,u=0;continue}var p=twe(f,h.charCodeAt(0)),v=r?!1:!Att(h);if(i.length?u+p>n:a+u+p>n){u?(s||l)&&(v?(s||(s=l,l="",c=0,u=c),i.push(s),o.push(u-c),l+=h,c+=p,s="",u=c):(l&&(s+=l,l="",c=0),i.push(s),o.push(u),s=h,u=p)):v?(i.push(l),o.push(c),l=h,c=p):(i.push(h),o.push(p));continue}u+=p,v?(l+=h,c+=p):(l&&(s+=l,l="",c=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(u)),i.length===1&&(u+=a),{accumWidth:u,lines:i,linesWidths:o}}function Ome(t,e,n,r,a,i){if(t.baseX=n,t.baseY=r,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;fr.set(Pme,hS(n,o,a),ty(r,s,i),o,s),fr.intersect(e,Pme,null,Cme);var l=Cme.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=hS(l.x,l.width,a,!0),t.baseY=ty(l.y,l.height,i,!0)}}var Pme=new fr(0,0,0,0),Cme={outIntersectRect:{},clamp:!0};function Dq(t){return t!=null?t+="":t=""}function Rtt(t){var e=Dq(t.text),n=t.font,r=Sh(xh(n),e),a=N8(n);return yz(t,r,a,null)}function yz(t,e,n,r){var a=new fr(hS(t.x||0,e,t.textAlign),ty(t.y||0,n,t.textBaseline),e,n),i=r??(ywe(t)?t.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function ywe(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var Az="__zr_style_"+Math.round(Math.random()*10),ny={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},dV={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ny[Az]=!0;var Nme=["z","z2","invisible"],btt=["invisible"],E8=function(t){Jt(e,t);function e(n){return t.call(this,n)||this}return e.prototype._init=function(n){for(var r=kr(n),a=0;a<r.length;a++){var i=r[a];i==="style"?this.useStyle(n[i]):t.prototype.attrKV.call(this,i,n[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(n,r,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&xtt(this,n,r)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(n,r){return this.rectContain(n,r)},e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.rectContain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new fr(0,0,0,0)),r?fr.applyTransform(n,a,r):n.copy(a),(o||s||l)&&(n.width+=o*2+Math.abs(s),n.height+=o*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-o),n.y=Math.min(n.y,n.y+l-o));var c=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-c),n.y=Math.floor(n.y-c),n.width=Math.ceil(n.width+1+c*2),n.height=Math.ceil(n.height+1+c*2))}return n},e.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new fr(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(n){return this.animate("style",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(n,r){n!=="style"?t.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},e.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:Zt(this.style,n),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=s_,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&s_)},e.prototype.styleUpdated=function(){this.__dirty&=~s_},e.prototype.createStyle=function(n){return oV(ny,n)},e.prototype.useStyle=function(n){n[Az]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},e.prototype.isStyleObject=function(n){return n[Az]},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,Nme)},e.prototype._applyStateObj=function(n,r,a,i,o,s){t.prototype._applyStateObj.call(this,n,r,a,i,o,s);var l=!(r&&i),c;if(r&&r.style?o?i?c=r.style:(c=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(c,r.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(c,r.style)):l&&(c=a.style),c)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var f=kr(u),d=0;d<f.length;d++){var h=f[d];h in c&&(c[h]=c[h],this.style[h]=u[h])}for(var p=kr(c),d=0;d<p.length;d++){var h=p[d];this.style[h]=this.style[h]}this._transitionState(n,{style:c},s,this.getAnimationStyleProps())}else this.useStyle(c);for(var v=this.__inHover?btt:Nme,d=0;d<v.length;d++){var h=v[d];r&&r[h]!=null?this[h]=r[h]:l&&a[h]!=null&&(this[h]=a[h])}},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),a,i=0;i<n.length;i++){var o=n[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(r.style=a),r},e.prototype._mergeStyle=function(n,r){return Zt(n,r),n},e.prototype.getAnimationStyleProps=function(){return dV},e.initDefaultProps=function(){var n=e.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=uh|s_}(),e}(lV),PK=new fr(0,0,0,0),CK=new fr(0,0,0,0);function xtt(t,e,n){return PK.copy(t.getBoundingRect()),t.transform&&PK.applyTransform(t.transform),CK.width=e,CK.height=n,!PK.intersect(CK)}var lu=Math.min,cu=Math.max,NK=Math.sin,IK=Math.cos,Jm=Math.PI*2,O9=VS(),P9=VS(),C9=VS();function Ime(t,e,n,r,a,i){a[0]=lu(t,n),a[1]=lu(e,r),i[0]=cu(t,n),i[1]=cu(e,r)}var kme=[],Eme=[];function Stt(t,e,n,r,a,i,o,s,l,c){var u=Y_e,f=ko,d=u(t,n,a,o,kme);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var h=0;h<d;h++){var p=f(t,n,a,o,kme[h]);l[0]=lu(p,l[0]),c[0]=cu(p,c[0])}d=u(e,r,i,s,Eme);for(var h=0;h<d;h++){var v=f(e,r,i,s,Eme[h]);l[1]=lu(v,l[1]),c[1]=cu(v,c[1])}l[0]=lu(t,l[0]),c[0]=cu(t,c[0]),l[0]=lu(o,l[0]),c[0]=cu(o,c[0]),l[1]=lu(e,l[1]),c[1]=cu(e,c[1]),l[1]=lu(s,l[1]),c[1]=cu(s,c[1])}function Mtt(t,e,n,r,a,i,o,s){var l=B_e,c=dl,u=cu(lu(l(t,n,a),1),0),f=cu(lu(l(e,r,i),1),0),d=c(t,n,a,u),h=c(e,r,i,f);o[0]=lu(t,a,d),o[1]=lu(e,i,h),s[0]=cu(t,a,d),s[1]=cu(e,i,h)}function _tt(t,e,n,r,a,i,o,s,l){var c=gx,u=mx,f=Math.abs(a-i);if(f%Jm<1e-4&&f>1e-4){s[0]=t-n,s[1]=e-r,l[0]=t+n,l[1]=e+r;return}if(O9[0]=IK(a)*n+t,O9[1]=NK(a)*r+e,P9[0]=IK(i)*n+t,P9[1]=NK(i)*r+e,c(s,O9,P9),u(l,O9,P9),a=a%Jm,a<0&&(a=a+Jm),i=i%Jm,i<0&&(i=i+Jm),a>i&&!o?i+=Jm:a<i&&o&&(a+=Jm),o){var d=i;i=a,a=d}for(var h=0;h<i;h+=Math.PI/2)h>a&&(C9[0]=IK(h)*n+t,C9[1]=NK(h)*r+e,c(s,C9,s),u(l,C9,l))}var Qr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},jm=[],qm=[],Bd=[],Fv=[],Zd=[],Qd=[],kK=Math.min,EK=Math.max,e2=Math.cos,t2=Math.sin,Wp=Math.abs,Rz=Math.PI,t1=Rz*2,FK=typeof Float32Array<"u",A5=[];function XK(t){var e=Math.round(t/Rz*1e8)/1e8;return e%2*Rz}function Awe(t,e){var n=XK(t[0]);n<0&&(n+=t1);var r=n-t[0],a=t[1];a+=r,!e&&a-n>=t1?a=n+t1:e&&n-a>=t1?a=n-t1:!e&&n>a?a=n+(t1-XK(n-a)):e&&n<a&&(a=n-(t1-XK(a-n))),t[0]=n,t[1]=a}var K1=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,n,r){r=r||0,r>0&&(this._ux=Wp(r/mme/e)||0,this._uy=Wp(r/mme/n)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,n){return this._drawPendingPt(),this.addData(Qr.M,e,n),this._ctx&&this._ctx.moveTo(e,n),this._x0=e,this._y0=n,this._xi=e,this._yi=n,this},t.prototype.lineTo=function(e,n){var r=Wp(e-this._xi),a=Wp(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(Qr.L,e,n),this._ctx&&i&&this._ctx.lineTo(e,n),i)this._xi=e,this._yi=n,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=n,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,n,r,a,i,o){return this._drawPendingPt(),this.addData(Qr.C,e,n,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,n,r,a,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,n,r,a){return this._drawPendingPt(),this.addData(Qr.Q,e,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,n,r,a),this._xi=r,this._yi=a,this},t.prototype.arc=function(e,n,r,a,i,o){this._drawPendingPt(),A5[0]=a,A5[1]=i,Awe(A5,o),a=A5[0],i=A5[1];var s=i-a;return this.addData(Qr.A,e,n,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,n,r,a,i,o),this._xi=e2(i)*r+e,this._yi=t2(i)*r+n,this},t.prototype.arcTo=function(e,n,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,n,r,a,i),this},t.prototype.rect=function(e,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,n,r,a),this.addData(Qr.R,e,n,r,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Qr.Z);var e=this._ctx,n=this._x0,r=this._y0;return e&&e.closePath(),this._xi=n,this._yi=r,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var n=e.length;!(this.data&&this.data.length===n)&&FK&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=e[r];this._len=n}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var n=e.length,r=0,a=this._len,i=0;i<n;i++)r+=e[i].len();var o=this.data;if(FK&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+r),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var i=0;i<n;i++)for(var l=e[i].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},t.prototype.addData=function(e,n,r,a,i,o,s,l,c){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var f=0;f<arguments.length;f++)u[this._len++]=arguments[f]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],n=0;n<this._len;n++)e[n]=this.data[n];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,FK&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Bd[0]=Bd[1]=Zd[0]=Zd[1]=Number.MAX_VALUE,Fv[0]=Fv[1]=Qd[0]=Qd[1]=-Number.MAX_VALUE;var e=this.data,n=0,r=0,a=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(n=e[o],r=e[o+1],a=n,i=r),s){case Qr.M:n=a=e[o++],r=i=e[o++],Zd[0]=a,Zd[1]=i,Qd[0]=a,Qd[1]=i;break;case Qr.L:Ime(n,r,e[o],e[o+1],Zd,Qd),n=e[o++],r=e[o++];break;case Qr.C:Stt(n,r,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Zd,Qd),n=e[o++],r=e[o++];break;case Qr.Q:Mtt(n,r,e[o++],e[o++],e[o],e[o+1],Zd,Qd),n=e[o++],r=e[o++];break;case Qr.A:var c=e[o++],u=e[o++],f=e[o++],d=e[o++],h=e[o++],p=e[o++]+h;o+=1;var v=!e[o++];l&&(a=e2(h)*f+c,i=t2(h)*d+u),_tt(c,u,f,d,h,p,v,Zd,Qd),n=e2(p)*f+c,r=t2(p)*d+u;break;case Qr.R:a=n=e[o++],i=r=e[o++];var g=e[o++],y=e[o++];Ime(a,i,a+g,i+y,Zd,Qd);break;case Qr.Z:n=a,r=i;break}gx(Bd,Bd,Zd),mx(Fv,Fv,Qd)}return o===0&&(Bd[0]=Bd[1]=Fv[0]=Fv[1]=0),new fr(Bd[0],Bd[1],Fv[0]-Bd[0],Fv[1]-Bd[1])},t.prototype._calculateLength=function(){var e=this.data,n=this._len,r=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,u=0,f=0,d=0;d<n;){var h=e[d++],p=d===1;p&&(i=e[d],o=e[d+1],s=i,l=o);var v=-1;switch(h){case Qr.M:i=s=e[d++],o=l=e[d++];break;case Qr.L:{var g=e[d++],y=e[d++],m=g-i,R=y-o;(Wp(m)>r||Wp(R)>a||d===n-1)&&(v=Math.sqrt(m*m+R*R),i=g,o=y);break}case Qr.C:{var A=e[d++],x=e[d++],g=e[d++],y=e[d++],M=e[d++],S=e[d++];v=Iqe(i,o,A,x,g,y,M,S,10),i=M,o=S;break}case Qr.Q:{var A=e[d++],x=e[d++],g=e[d++],y=e[d++];v=Fqe(i,o,A,x,g,y,10),i=g,o=y;break}case Qr.A:var w=e[d++],_=e[d++],T=e[d++],O=e[d++],N=e[d++],P=e[d++],C=P+N;d+=1,p&&(s=e2(N)*T+w,l=t2(N)*O+_),v=EK(T,O)*kK(t1,Math.abs(P)),i=e2(C)*T+w,o=t2(C)*O+_;break;case Qr.R:{s=i=e[d++],l=o=e[d++];var E=e[d++],F=e[d++];v=E*2+F*2;break}case Qr.Z:{var m=s-i,R=l-o;v=Math.sqrt(m*m+R*R),i=s,o=l;break}}v>=0&&(c[f++]=v,u+=v)}return this._pathLen=u,u},t.prototype.rebuildPath=function(e,n){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,c,u,f,d,h=n<1,p,v,g=0,y=0,m,R=0,A,x;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,m=n*v,!m)))e:for(var M=0;M<o;){var S=r[M++],w=M===1;switch(w&&(c=r[M],u=r[M+1],s=c,l=u),S!==Qr.L&&R>0&&(e.lineTo(A,x),R=0),S){case Qr.M:s=c=r[M++],l=u=r[M++],e.moveTo(c,u);break;case Qr.L:{f=r[M++],d=r[M++];var _=Wp(f-c),T=Wp(d-u);if(_>a||T>i){if(h){var O=p[y++];if(g+O>m){var N=(m-g)/O;e.lineTo(c*(1-N)+f*N,u*(1-N)+d*N);break e}g+=O}e.lineTo(f,d),c=f,u=d,R=0}else{var P=_*_+T*T;P>R&&(A=f,x=d,R=P)}break}case Qr.C:{var C=r[M++],E=r[M++],F=r[M++],Y=r[M++],Q=r[M++],K=r[M++];if(h){var O=p[y++];if(g+O>m){var N=(m-g)/O;RX(c,C,F,Q,N,jm),RX(u,E,Y,K,N,qm),e.bezierCurveTo(jm[1],qm[1],jm[2],qm[2],jm[3],qm[3]);break e}g+=O}e.bezierCurveTo(C,E,F,Y,Q,K),c=Q,u=K;break}case Qr.Q:{var C=r[M++],E=r[M++],F=r[M++],Y=r[M++];if(h){var O=p[y++];if(g+O>m){var N=(m-g)/O;bX(c,C,F,N,jm),bX(u,E,Y,N,qm),e.quadraticCurveTo(jm[1],qm[1],jm[2],qm[2]);break e}g+=O}e.quadraticCurveTo(C,E,F,Y),c=F,u=Y;break}case Qr.A:var ne=r[M++],Z=r[M++],$=r[M++],G=r[M++],ee=r[M++],ce=r[M++],B=r[M++],xe=!r[M++],_e=$>G?$:G,se=Wp($-G)>.001,z=ee+ce,de=!1;if(h){var O=p[y++];g+O>m&&(z=ee+ce*(m-g)/O,de=!0),g+=O}if(se&&e.ellipse?e.ellipse(ne,Z,$,G,B,ee,z,xe):e.arc(ne,Z,_e,ee,z,xe),de)break e;w&&(s=e2(ee)*$+ne,l=t2(ee)*G+Z),c=e2(z)*$+ne,u=t2(z)*G+Z;break;case Qr.R:s=c=r[M],l=u=r[M+1],f=r[M++],d=r[M++];var fe=r[M++],re=r[M++];if(h){var O=p[y++];if(g+O>m){var X=m-g;e.moveTo(f,d),e.lineTo(f+kK(X,fe),d),X-=fe,X>0&&e.lineTo(f+fe,d+kK(X,re)),X-=re,X>0&&e.lineTo(f+EK(fe-X,0),d+re),X-=fe,X>0&&e.lineTo(f,d+EK(re-X,0));break e}g+=O}e.rect(f,d,fe,re);break;case Qr.Z:if(h){var O=p[y++];if(g+O>m){var N=(m-g)/O;e.lineTo(c*(1-N)+s*N,u*(1-N)+l*N);break e}g+=O}e.closePath(),c=s,u=l}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Qr,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function Tb(t,e,n,r,a,i,o){if(a===0)return!1;var s=a,l=0,c=t;if(o>e+s&&o>r+s||o<e-s&&o<r-s||i>t+s&&i>n+s||i<t-s&&i<n-s)return!1;if(t!==n)l=(e-r)/(t-n),c=(t*r-n*e)/(t-n);else return Math.abs(i-t)<=s/2;var u=l*i-o+c,f=u*u/(l*l+1);return f<=s/2*s/2}function wtt(t,e,n,r,a,i,o,s,l,c,u){if(l===0)return!1;var f=l;if(u>e+f&&u>r+f&&u>i+f&&u>s+f||u<e-f&&u<r-f&&u<i-f&&u<s-f||c>t+f&&c>n+f&&c>a+f&&c>o+f||c<t-f&&c<n-f&&c<a-f&&c<o-f)return!1;var d=Nqe(t,e,n,r,a,i,o,s,c,u);return d<=f/2}function Ltt(t,e,n,r,a,i,o,s,l){if(o===0)return!1;var c=o;if(l>e+c&&l>r+c&&l>i+c||l<e-c&&l<r-c&&l<i-c||s>t+c&&s>n+c&&s>a+c||s<t-c&&s<n-c&&s<a-c)return!1;var u=Eqe(t,e,n,r,a,i,s,l);return u<=c/2}var Fme=Math.PI*2;function N9(t){return t%=Fme,t<0&&(t+=Fme),t}var R5=Math.PI*2;function Ttt(t,e,n,r,a,i,o,s,l){if(o===0)return!1;var c=o;s-=t,l-=e;var u=Math.sqrt(s*s+l*l);if(u-c>n||u+c<n)return!1;if(Math.abs(r-a)%R5<1e-4)return!0;if(i){var f=r;r=N9(a),a=N9(f)}else r=N9(r),a=N9(a);r>a&&(a+=R5);var d=Math.atan2(l,s);return d<0&&(d+=R5),d>=r&&d<=a||d+R5>=r&&d+R5<=a}function n2(t,e,n,r,a,i){if(i>e&&i>r||i<e&&i<r||r===e)return 0;var o=(i-e)/(r-e),s=r<e?1:-1;(o===1||o===0)&&(s=r<e?.5:-.5);var l=o*(n-t)+t;return l===a?1/0:l>a?s:0}var Xv=K1.CMD,r2=Math.PI*2,Ott=1e-4;function Ptt(t,e){return Math.abs(t-e)<Ott}var Is=[-1,-1,-1],au=[-1,-1];function Ctt(){var t=au[0];au[0]=au[1],au[1]=t}function Ntt(t,e,n,r,a,i,o,s,l,c){if(c>e&&c>r&&c>i&&c>s||c<e&&c<r&&c<i&&c<s)return 0;var u=AX(e,r,i,s,c,Is);if(u===0)return 0;for(var f=0,d=-1,h=void 0,p=void 0,v=0;v<u;v++){var g=Is[v],y=g===0||g===1?.5:1,m=ko(t,n,a,o,g);m<l||(d<0&&(d=Y_e(e,r,i,s,au),au[1]<au[0]&&d>1&&Ctt(),h=ko(e,r,i,s,au[0]),d>1&&(p=ko(e,r,i,s,au[1]))),d===2?g<au[0]?f+=h<e?y:-y:g<au[1]?f+=p<h?y:-y:f+=s<p?y:-y:g<au[0]?f+=h<e?y:-y:f+=s<h?y:-y)}return f}function Itt(t,e,n,r,a,i,o,s){if(s>e&&s>r&&s>i||s<e&&s<r&&s<i)return 0;var l=kqe(e,r,i,s,Is);if(l===0)return 0;var c=B_e(e,r,i);if(c>=0&&c<=1){for(var u=0,f=dl(e,r,i,c),d=0;d<l;d++){var h=Is[d]===0||Is[d]===1?.5:1,p=dl(t,n,a,Is[d]);p<o||(Is[d]<c?u+=f<e?h:-h:u+=i<f?h:-h)}return u}else{var h=Is[0]===0||Is[0]===1?.5:1,p=dl(t,n,a,Is[0]);return p<o?0:i<e?h:-h}}function ktt(t,e,n,r,a,i,o,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Is[0]=-l,Is[1]=l;var c=Math.abs(r-a);if(c<1e-4)return 0;if(c>=r2-1e-4){r=0,a=r2;var u=i?1:-1;return o>=Is[0]+t&&o<=Is[1]+t?u:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=r2,a+=r2);for(var d=0,h=0;h<2;h++){var p=Is[h];if(p+t>o){var v=Math.atan2(s,p),u=i?1:-1;v<0&&(v=r2+v),(v>=r&&v<=a||v+r2>=r&&v+r2<=a)&&(v>Math.PI/2&&v<Math.PI*1.5&&(u=-u),d+=u)}}return d}function Rwe(t,e,n,r,a){for(var i=t.data,o=t.len(),s=0,l=0,c=0,u=0,f=0,d,h,p=0;p<o;){var v=i[p++],g=p===1;switch(v===Xv.M&&p>1&&(n||(s+=n2(l,c,u,f,r,a))),g&&(l=i[p],c=i[p+1],u=l,f=c),v){case Xv.M:u=i[p++],f=i[p++],l=u,c=f;break;case Xv.L:if(n){if(Tb(l,c,i[p],i[p+1],e,r,a))return!0}else s+=n2(l,c,i[p],i[p+1],r,a)||0;l=i[p++],c=i[p++];break;case Xv.C:if(n){if(wtt(l,c,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=Ntt(l,c,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],c=i[p++];break;case Xv.Q:if(n){if(Ltt(l,c,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=Itt(l,c,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],c=i[p++];break;case Xv.A:var y=i[p++],m=i[p++],R=i[p++],A=i[p++],x=i[p++],M=i[p++];p+=1;var S=!!(1-i[p++]);d=Math.cos(x)*R+y,h=Math.sin(x)*A+m,g?(u=d,f=h):s+=n2(l,c,d,h,r,a);var w=(r-y)*A/R+y;if(n){if(Ttt(y,m,A,x,x+M,S,e,w,a))return!0}else s+=ktt(y,m,A,x,x+M,S,w,a);l=Math.cos(x+M)*R+y,c=Math.sin(x+M)*A+m;break;case Xv.R:u=l=i[p++],f=c=i[p++];var _=i[p++],T=i[p++];if(d=u+_,h=f+T,n){if(Tb(u,f,d,f,e,r,a)||Tb(d,f,d,h,e,r,a)||Tb(d,h,u,h,e,r,a)||Tb(u,h,u,f,e,r,a))return!0}else s+=n2(d,f,d,h,r,a),s+=n2(u,h,u,f,r,a);break;case Xv.Z:if(n){if(Tb(l,c,u,f,e,r,a))return!0}else s+=n2(l,c,u,f,r,a);l=u,c=f;break}}return!n&&!Ptt(c,f)&&(s+=n2(l,c,u,f,r,a)||0),s!==0}function Ett(t,e,n){return Rwe(t,0,!1,e,n)}function Ftt(t,e,n,r){return Rwe(t,e,!0,n,r)}var LX=Or({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ny),Xtt={style:Or({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},dV.style)},DK=Ew.concat(["invisible","culling","z","z2","zlevel","parent"]),Zr=function(t){Jt(e,t);function e(n){return t.call(this,n)||this}return e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){n.buildPath(l,n.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s<DK.length;++s)a[DK[s]]=this[DK[s]];a.__dirty|=uh}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(n){var r=kr(n);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<r.length;i++){var o=r[i],s=n[o];o==="style"?this.style?Zt(this.style,s):this.useStyle(s):o==="shape"?Zt(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(Sn(n)){var r=xX(n,0);return r>.5?fz:r>.2?cet:dz}else if(n)return dz}return fz},e.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Sn(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=xX(n,0)<uz;if(i===o)return r}},e.prototype.buildPath=function(n,r,a){},e.prototype.pathUpdated=function(){this.__dirty&=~lx},e.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},e.prototype.createPathProxy=function(){this.path=new K1(!1)},e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&lx)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),n=o.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,c=r.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;c=Math.max(c,u??4)}l>1e-10&&(s.width+=c/l,s.height+=c/l,s.x-=c/l/2,s.y-=c/l/2)}return s}return n},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect(),o=this.style;if(n=a[0],r=a[1],i.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,c=o.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Ftt(s,l/c,n,r)))return!0}if(this.hasFill())return Ett(s,n,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=lx,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(n){return this.animate("shape",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):t.prototype.attrKV.call(this,n,r)},e.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:Zt(a,n),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&lx)},e.prototype.createStyle=function(n){return oV(LX,n)},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Zt({},this.shape))},e.prototype._applyStateObj=function(n,r,a,i,o,s){t.prototype._applyStateObj.call(this,n,r,a,i,o,s);var l=!(r&&i),c;if(r&&r.shape?o?i?c=r.shape:(c=Zt({},a.shape),Zt(c,r.shape)):(c=Zt({},i?this.shape:a.shape),Zt(c,r.shape)):l&&(c=a.shape),c)if(o){this.shape=Zt({},this.shape);for(var u={},f=kr(c),d=0;d<f.length;d++){var h=f[d];typeof c[h]=="object"?this.shape[h]=c[h]:u[h]=c[h]}this._transitionState(n,{shape:u},s)}else this.shape=c,this.dirtyShape()},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),a,i=0;i<n.length;i++){var o=n[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(r.shape=a),r},e.prototype.getAnimationStyleProps=function(){return Xtt},e.prototype.isZeroArea=function(){return!1},e.extend=function(n){var r=function(i){Jt(o,i);function o(s){var l=i.call(this,s)||this;return n.init&&n.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Mr(n.style)},o.prototype.getDefaultShape=function(){return Mr(n.shape)},o}(e);for(var a in n)typeof n[a]=="function"&&(r.prototype[a]=n[a]);return r},e.initDefaultProps=function(){var n=e.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=uh|s_|lx}(),e}(E8),Dtt=Or({strokeFirst:!0,font:b0,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},LX),Vw=function(t){Jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return ywe(this.style)},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(n){return oV(Dtt,n)},e.prototype.setBoundingRect=function(n){this._rect=n},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=Rtt(this.style)),this._rect},e.initDefaultProps=function(){var n=e.prototype;n.dirtyRectTolerance=10}(),e}(E8);Vw.prototype.type="tspan";var Vtt=Or({x:0,y:0},ny),Utt={style:Or({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},dV.style)};function Wtt(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Hf=function(t){Jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(n){return oV(Vtt,n)},e.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=Wtt(r.image)?r.image:this.__image;if(!i)return 0;var o=n==="width"?"height":"width",s=r[o];return s==null?i[n]:i[n]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Utt},e.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new fr(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},e}(E8);Hf.prototype.type="image";function Ytt(t,e){var n=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,c,u;a<0&&(n=n+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=c=u=o:o instanceof Array?o.length===1?s=l=c=u=o[0]:o.length===2?(s=c=o[0],l=u=o[1]):o.length===3?(s=o[0],l=u=o[1],c=o[2]):(s=o[0],l=o[1],c=o[2],u=o[3]):s=l=c=u=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),c+u>a&&(f=c+u,c*=a/f,u*=a/f),l+c>i&&(f=l+c,l*=i/f,c*=i/f),s+u>i&&(f=s+u,s*=i/f,u*=i/f),t.moveTo(n+s,r),t.lineTo(n+a-l,r),l!==0&&t.arc(n+a-l,r+l,l,-Math.PI/2,0),t.lineTo(n+a,r+i-c),c!==0&&t.arc(n+a-c,r+i-c,c,0,Math.PI/2),t.lineTo(n+u,r+i),u!==0&&t.arc(n+u,r+i-u,u,Math.PI/2,Math.PI),t.lineTo(n,r+s),s!==0&&t.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var Rx=Math.round;function bwe(t,e,n){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;t.x1=r,t.x2=a,t.y1=i,t.y2=o;var s=n&&n.lineWidth;return s&&(Rx(r*2)===Rx(a*2)&&(t.x1=t.x2=D2(r,s,!0)),Rx(i*2)===Rx(o*2)&&(t.y1=t.y2=D2(i,s,!0))),t}}function xwe(t,e,n){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;t.x=r,t.y=a,t.width=i,t.height=o;var s=n&&n.lineWidth;return s&&(t.x=D2(r,s,!0),t.y=D2(a,s,!0),t.width=Math.max(D2(r+i,s,!1)-t.x,i===0?0:1),t.height=Math.max(D2(a+o,s,!1)-t.y,o===0?0:1)),t}}function D2(t,e,n){if(!e)return t;var r=Rx(t*2);return(r+Rx(e))%2===0?r/2:(r+(n?1:-1))/2}var Btt=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),Ztt={},Ii=function(t){Jt(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Btt},e.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=xwe(Ztt,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?Ytt(n,r):n.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Zr);Ii.prototype.type="rect";var Xme={fill:"#000"},Dme=2,Kd={},Qtt={style:Or({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},dV.style)},Ac=function(t){Jt(e,t);function e(n){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=Xme,r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},e.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):t.prototype.getLocalTransform.call(this,n)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,Gtt(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new fr(0,0,0,0),r=this._children,a=[],i=null,o=0;o<r.length;o++){var s=r[o],l=s.getBoundingRect(),c=s.getLocalTransform(a);c?(n.copy(l),n.applyTransform(c),i=i||n.clone(),i.union(n)):(i=i||l.clone(),i.union(l))}this._rect=i||n}return this._rect},e.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||Xme},e.prototype.setTextContent=function(n){},e.prototype._mergeStyle=function(n,r){if(!r)return n;var a=r.rich,i=n.rich||a&&{};return Zt(n,r),a&&i?(this._mergeRich(i,a),n.rich=i):i&&(n.rich=i),n},e.prototype._mergeRich=function(n,r){for(var a=kr(r),i=0;i<a.length;i++){var o=a[i];n[o]=n[o]||{},Zt(n[o],r[o])}},e.prototype.getAnimationStyleProps=function(){return Qtt},e.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},e.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||b0,a=n.padding,i=this._defaultStyle,o=n.x||0,s=n.y||0,l=n.align||i.align||"left",c=n.verticalAlign||i.verticalAlign||"top";Ome(Kd,i.overflowRect,o,s,l,c),o=Kd.baseX,s=Kd.baseY;var u=Qme(n),f=htt(u,n,Kd.outerWidth,Kd.outerHeight),d=VK(n),h=!!n.backgroundColor,p=f.outerHeight,v=f.outerWidth,g=f.lines,y=f.lineHeight;this.isTruncated=!!f.isTruncated;var m=o,R=ty(s,f.contentHeight,c);if(d||a){var A=hS(o,v,l),x=ty(s,p,c);d&&this._renderBackground(n,n,A,x,v,p)}R+=y/2,a&&(m=Zme(o,l,a),c==="top"?R+=a[0]:c==="bottom"&&(R-=a[2]));for(var M=0,S=!1,w=!1,_=Bme("fill"in n?n.fill:(w=!0,i.fill)),T=Yme("stroke"in n?n.stroke:!h&&(!i.autoStroke||w)?(M=Dme,S=!0,i.stroke):null),O=n.textShadowBlur>0,N=0;N<g.length;N++){var P=this._getOrCreateChild(Vw),C=P.createStyle();P.useStyle(C),C.text=g[N],C.x=m,C.y=R,C.textAlign=l,C.textBaseline="middle",C.opacity=n.opacity,C.strokeFirst=!0,O&&(C.shadowBlur=n.textShadowBlur||0,C.shadowColor=n.textShadowColor||"transparent",C.shadowOffsetX=n.textShadowOffsetX||0,C.shadowOffsetY=n.textShadowOffsetY||0),C.stroke=T,C.fill=_,T&&(C.lineWidth=n.lineWidth||M,C.lineDash=n.lineDash,C.lineDashOffset=n.lineDashOffset||0),C.font=r,Ume(C,n),R+=y,P.setBoundingRect(yz(C,f.contentWidth,f.calculatedLineHeight,S?0:null))}},e.prototype._updateRichTexts=function(){var n=this.style,r=this._defaultStyle,a=n.align||r.align,i=n.verticalAlign||r.verticalAlign,o=n.x||0,s=n.y||0;Ome(Kd,r.overflowRect,o,s,a,i),o=Kd.baseX,s=Kd.baseY;var l=Qme(n),c=gtt(l,n,Kd.outerWidth,Kd.outerHeight,a),u=c.width,f=c.outerWidth,d=c.outerHeight,h=n.padding;this.isTruncated=!!c.isTruncated;var p=hS(o,f,a),v=ty(s,d,i),g=p,y=v;h&&(g+=h[3],y+=h[0]);var m=g+u;VK(n)&&this._renderBackground(n,n,p,v,f,d);for(var R=!!n.backgroundColor,A=0;A<c.lines.length;A++){for(var x=c.lines[A],M=x.tokens,S=M.length,w=x.lineHeight,_=x.width,T=0,O=g,N=m,P=S-1,C=void 0;T<S&&(C=M[T],!C.align||C.align==="left");)this._placeToken(C,n,w,y,O,"left",R),_-=C.width,O+=C.width,T++;for(;P>=0&&(C=M[P],C.align==="right");)this._placeToken(C,n,w,y,N,"right",R),_-=C.width,N-=C.width,P--;for(O+=(u-(O-g)-(m-N)-_)/2;T<=P;)C=M[T],this._placeToken(C,n,w,y,O+C.width/2,"center",R),O+=C.width,T++;y+=w}},e.prototype._placeToken=function(n,r,a,i,o,s,l){var c=r.rich[n.styleName]||{};c.text=n.text;var u=n.verticalAlign,f=i+a/2;u==="top"?f=i+n.height/2:u==="bottom"&&(f=i+a-n.height/2);var d=!n.isLineHolder&&VK(c);d&&this._renderBackground(c,r,s==="right"?o-n.width:s==="center"?o-n.width/2:o,f-n.height/2,n.width,n.height);var h=!!c.backgroundColor,p=n.textPadding;p&&(o=Zme(o,s,p),f-=n.height/2-p[0]-n.innerHeight/2);var v=this._getOrCreateChild(Vw),g=v.createStyle();v.useStyle(g);var y=this._defaultStyle,m=!1,R=0,A=!1,x=Bme("fill"in c?c.fill:"fill"in r?r.fill:(m=!0,y.fill)),M=Yme("stroke"in c?c.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||m)?(R=Dme,A=!0,y.stroke):null),S=c.textShadowBlur>0||r.textShadowBlur>0;g.text=n.text,g.x=o,g.y=f,S&&(g.shadowBlur=c.textShadowBlur||r.textShadowBlur||0,g.shadowColor=c.textShadowColor||r.textShadowColor||"transparent",g.shadowOffsetX=c.textShadowOffsetX||r.textShadowOffsetX||0,g.shadowOffsetY=c.textShadowOffsetY||r.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=n.font||b0,g.opacity=q2(c.opacity,r.opacity,1),Ume(g,c),M&&(g.lineWidth=q2(c.lineWidth,r.lineWidth,R),g.lineDash=gn(c.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=M),x&&(g.fill=x),v.setBoundingRect(yz(g,n.contentWidth,n.contentHeight,A?0:null))},e.prototype._renderBackground=function(n,r,a,i,o,s){var l=n.backgroundColor,c=n.borderWidth,u=n.borderColor,f=l&&l.image,d=l&&!f,h=n.borderRadius,p=this,v,g;if(d||n.lineHeight||c&&u){v=this._getOrCreateChild(Ii),v.useStyle(v.createStyle()),v.style.fill=null;var y=v.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,v.dirtyShape()}if(d){var m=v.style;m.fill=l||null,m.fillOpacity=gn(n.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Hf),g.onload=function(){p.dirtyStyle()};var R=g.style;R.image=l.image,R.x=a,R.y=i,R.width=o,R.height=s}if(c&&u){var m=v.style;m.lineWidth=c,m.stroke=u,m.strokeOpacity=gn(n.strokeOpacity,1),m.lineDash=n.borderDash,m.lineDashOffset=n.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var A=(v||g).style;A.shadowBlur=n.shadowBlur||0,A.shadowColor=n.shadowColor||"transparent",A.shadowOffsetX=n.shadowOffsetX||0,A.shadowOffsetY=n.shadowOffsetY||0,A.opacity=q2(n.opacity,r.opacity,1)},e.makeFont=function(n){var r="";return Mwe(n)&&(r=[n.fontStyle,n.fontWeight,Swe(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&R1(r)||n.textFont||n.font},e}(E8),Ktt={left:!0,right:1,center:1},Htt={top:1,bottom:1,middle:1},Vme=["fontStyle","fontWeight","fontSize","fontFamily"];function Swe(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?xq+"px":t+"px"}function Ume(t,e){for(var n=0;n<Vme.length;n++){var r=Vme[n],a=e[r];a!=null&&(t[r]=a)}}function Mwe(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function Gtt(t){return Wme(t),Ge(t.rich,Wme),t}function Wme(t){if(t){t.font=Ac.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||Ktt[e]?e:"left";var n=t.verticalAlign;n==="center"&&(n="middle"),t.verticalAlign=n==null||Htt[n]?n:"top";var r=t.padding;r&&(t.padding=Lq(t.padding))}}function Yme(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function Bme(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function Zme(t,e,n){return e==="right"?t-n[1]:e==="center"?t+n[3]/2-n[1]/2:t+n[3]}function Qme(t){var e=t.text;return e!=null&&(e+=""),e}function VK(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Ra=mi(),$tt=function(t,e,n,r){if(r){var a=Ra(r);a.dataIndex=n,a.dataType=e,a.seriesIndex=t,a.ssrType="chart",r.type==="group"&&r.traverse(function(i){var o=Ra(i);o.seriesIndex=t,o.dataIndex=n,o.dataType=e,o.ssrType="chart"})}},Kme=1,Hme={},_we=mi(),Vq=mi(),Uq=0,hV=1,pV=2,Su=["emphasis","blur","select"],TX=["normal","emphasis","blur","select"],ztt=10,Jtt=9,ry="highlight",JE="downplay",OX="select",bz="unselect",PX="toggleSelect",Wq="selectchanged";function Ob(t){return t!=null&&t!=="none"}function vV(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function wwe(t){vV(t,"emphasis",pV)}function Lwe(t){t.hoverState===pV&&vV(t,"normal",Uq)}function Yq(t){vV(t,"blur",hV)}function Twe(t){t.hoverState===hV&&vV(t,"normal",Uq)}function jtt(t){t.selected=!0}function qtt(t){t.selected=!1}function Gme(t,e,n){e(t,n)}function T0(t,e,n){Gme(t,e,n),t.isGroup&&t.traverse(function(r){Gme(r,e,n)})}function $me(t,e){switch(e){case"emphasis":t.hoverState=pV;break;case"normal":t.hoverState=Uq;break;case"blur":t.hoverState=hV;break;case"select":t.selected=!0}}function ent(t,e,n,r){for(var a=t.style,i={},o=0;o<e.length;o++){var s=e[o],l=a[s];i[s]=l??(r&&r[s])}for(var o=0;o<t.animators.length;o++){var c=t.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName==="style"&&c.saveTo(i,e)}return i}function tnt(t,e,n,r){var a=n&&aa(n,"select")>=0,i=!1;if(t instanceof Zr){var o=_we(t),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Ob(s)||Ob(l)){r=r||{};var c=r.style||{};c.fill==="inherit"?(i=!0,r=Zt({},r),c=Zt({},c),c.fill=s):!Ob(c.fill)&&Ob(s)?(i=!0,r=Zt({},r),c=Zt({},c),c.fill=rz(s)):!Ob(c.stroke)&&Ob(l)&&(i||(r=Zt({},r),c=Zt({},c)),c.stroke=rz(l)),r.style=c}}if(r&&r.z2==null){i||(r=Zt({},r));var u=t.z2EmphasisLift;r.z2=t.z2+(u??ztt)}return r}function nnt(t,e,n){if(n&&n.z2==null){n=Zt({},n);var r=t.z2SelectLift;n.z2=t.z2+(r??Jtt)}return n}function rnt(t,e,n){var r=aa(t.currentStates,e)>=0,a=t.style.opacity,i=r?null:ent(t,["opacity"],e,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=Zt({},n),o=Zt({opacity:r?a:i.opacity*.1},o),n.style=o),n}function UK(t,e){var n=this.states[t];if(this.style){if(t==="emphasis")return tnt(this,t,e,n);if(t==="blur")return rnt(this,t,n);if(t==="select")return nnt(this,t,n)}return n}function ant(t){t.stateProxy=UK;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=UK),n&&(n.stateProxy=UK)}function zme(t,e){!Nwe(t,e)&&!t.__highByOuter&&T0(t,wwe)}function Jme(t,e){!Nwe(t,e)&&!t.__highByOuter&&T0(t,Lwe)}function CX(t,e){t.__highByOuter|=1<<(e||0),T0(t,wwe)}function NX(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&T0(t,Lwe)}function int(t){T0(t,Yq)}function Owe(t){T0(t,Twe)}function Pwe(t){T0(t,jtt)}function Cwe(t){T0(t,qtt)}function Nwe(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Iwe(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(a,i){var o=Vq(i),s=a==="series",l=s?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(c){Twe(c)}),s&&n.push(i)),o.isBlured=!1}),Ge(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,e)})}function xz(t,e,n,r){var a=r.getModel();n=n||"coordinateSystem";function i(c,u){for(var f=0;f<u.length;f++){var d=c.getItemGraphicEl(u[f]);d&&Owe(d)}}if(t!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(c){var u=o===c,f=c.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:u;if(!(n==="series"&&!u||n==="coordinateSystem"&&!d||e==="series"&&u)){var h=r.getViewOfSeriesModel(c);if(h.group.traverse(function(g){g.__highByOuter&&u&&e==="self"||Yq(g)}),_l(e))i(c.getData(),e);else if(kn(e))for(var p=kr(e),v=0;v<p.length;v++)i(c.getData(p[v]),e[p[v]]);l.push(c),Vq(c).isBlured=!0}}),a.eachComponent(function(c,u){if(c!=="series"){var f=r.getViewOfComponentModel(u);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,a)}})}}function Sz(t,e,n){if(!(t==null||e==null)){var r=n.getModel().getComponent(t,e);if(r){Vq(r).isBlured=!0;var a=n.getViewOfComponentModel(r);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Yq(i)})}}}function ont(t,e,n){var r=t.seriesIndex,a=t.getData(e.dataType);if(a){var i=pS(a,e);i=(dn(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var c=Ra(o);xz(r,c.focus,c.blurScope,n)}else{var u=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);u!=null&&xz(r,u,f,n)}}}function Bq(t,e,n,r){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||n==null)return a;var i=r.getModel().getComponent(t,e);if(!i)return a;var o=r.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(n),l,c=0;c<s.length;c++)if(Ra(s[c]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function snt(t,e,n){var r=Ra(t),a=Bq(r.componentMainType,r.componentIndex,r.componentHighDownName,n),i=a.dispatchers,o=a.focusSelf;i?(o&&Sz(r.componentMainType,r.componentIndex,n),Ge(i,function(s){return zme(s,e)})):(xz(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&Sz(r.componentMainType,r.componentIndex,n),zme(t,e))}function lnt(t,e,n){Iwe(n);var r=Ra(t),a=Bq(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?Ge(a,function(i){return Jme(i,e)}):Jme(t,e)}function cnt(t,e,n){if(wz(e)){var r=e.dataType,a=t.getData(r),i=pS(a,e);dn(i)||(i=[i]),t[e.type===PX?"toggleSelect":e.type===OX?"select":"unselect"](i,r)}}function jme(t){var e=t.getAllData();Ge(e,function(n){var r=n.data,a=n.type;r.eachItemGraphicEl(function(i,o){t.isSelected(o,a)?Pwe(i):Cwe(i)})})}function unt(t){var e=[];return t.eachSeries(function(n){var r=n.getAllData();Ge(r,function(a){a.data;var i=a.type,o=n.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:n.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Mz(t,e,n){kwe(t,!0),T0(t,ant),dnt(t,e,n)}function fnt(t){kwe(t,!1)}function vS(t,e,n,r){r?fnt(t):Mz(t,e,n)}function dnt(t,e,n){var r=Ra(t);e!=null?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var qme=["emphasis","blur","select"],hnt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function gS(t,e,n,r){n=n||"itemStyle";for(var a=0;a<qme.length;a++){var i=qme[a],o=e.getModel([i,n]),s=t.ensureState(i);s.style=o[hnt[n]]()}}function kwe(t,e){var n=e===!1,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function _z(t){return!!(t&&t.__highDownDispatcher)}function pnt(t){var e=Hme[t];return e==null&&Kme<=32&&(e=Hme[t]=Kme++),e}function wz(t){var e=t.type;return e===OX||e===bz||e===PX}function e2e(t){var e=t.type;return e===ry||e===JE}function vnt(t){var e=_we(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var Pb=K1.CMD,gnt=[[],[],[]],t2e=Math.sqrt,mnt=Math.atan2;function ynt(t,e){if(e){var n=t.data,r=t.len(),a,i,o,s,l,c,u=Pb.M,f=Pb.C,d=Pb.L,h=Pb.R,p=Pb.A,v=Pb.Q;for(o=0,s=0;o<r;){switch(a=n[o++],s=o,i=0,a){case u:i=1;break;case d:i=1;break;case f:i=3;break;case v:i=2;break;case p:var g=e[4],y=e[5],m=t2e(e[0]*e[0]+e[1]*e[1]),R=t2e(e[2]*e[2]+e[3]*e[3]),A=mnt(-e[1]/R,e[0]/m);n[o]*=m,n[o++]+=g,n[o]*=R,n[o++]+=y,n[o++]*=m,n[o++]*=R,n[o++]+=A,n[o++]+=A,o+=2,s=o;break;case h:c[0]=n[o++],c[1]=n[o++],Au(c,c,e),n[s++]=c[0],n[s++]=c[1],c[0]+=n[o++],c[1]+=n[o++],Au(c,c,e),n[s++]=c[0],n[s++]=c[1]}for(l=0;l<i;l++){var x=gnt[l];x[0]=n[o++],x[1]=n[o++],Au(x,x,e),n[s++]=x[0],n[s++]=x[1]}}t.increaseVersion()}}var WK=Math.sqrt,I9=Math.sin,k9=Math.cos,b5=Math.PI;function n2e(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Lz(t,e){return(t[0]*e[0]+t[1]*e[1])/(n2e(t)*n2e(e))}function r2e(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Lz(t,e))}function a2e(t,e,n,r,a,i,o,s,l,c,u){var f=l*(b5/180),d=k9(f)*(t-n)/2+I9(f)*(e-r)/2,h=-1*I9(f)*(t-n)/2+k9(f)*(e-r)/2,p=d*d/(o*o)+h*h/(s*s);p>1&&(o*=WK(p),s*=WK(p));var v=(a===i?-1:1)*WK((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=v*o*h/s,y=v*-s*d/o,m=(t+n)/2+k9(f)*g-I9(f)*y,R=(e+r)/2+I9(f)*g+k9(f)*y,A=r2e([1,0],[(d-g)/o,(h-y)/s]),x=[(d-g)/o,(h-y)/s],M=[(-1*d-g)/o,(-1*h-y)/s],S=r2e(x,M);if(Lz(x,M)<=-1&&(S=b5),Lz(x,M)>=1&&(S=0),S<0){var w=Math.round(S/b5*1e6)/1e6;S=b5*2+w%2*b5}u.addData(c,m,R,o,s,A,S,f,i)}var Ant=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Rnt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function bnt(t){var e=new K1;if(!t)return e;var n=0,r=0,a=n,i=r,o,s=K1.CMD,l=t.match(Ant);if(!l)return e;for(var c=0;c<l.length;c++){for(var u=l[c],f=u.charAt(0),d=void 0,h=u.match(Rnt)||[],p=h.length,v=0;v<p;v++)h[v]=parseFloat(h[v]);for(var g=0;g<p;){var y=void 0,m=void 0,R=void 0,A=void 0,x=void 0,M=void 0,S=void 0,w=n,_=r,T=void 0,O=void 0;switch(f){case"l":n+=h[g++],r+=h[g++],d=s.L,e.addData(d,n,r);break;case"L":n=h[g++],r=h[g++],d=s.L,e.addData(d,n,r);break;case"m":n+=h[g++],r+=h[g++],d=s.M,e.addData(d,n,r),a=n,i=r,f="l";break;case"M":n=h[g++],r=h[g++],d=s.M,e.addData(d,n,r),a=n,i=r,f="L";break;case"h":n+=h[g++],d=s.L,e.addData(d,n,r);break;case"H":n=h[g++],d=s.L,e.addData(d,n,r);break;case"v":r+=h[g++],d=s.L,e.addData(d,n,r);break;case"V":r=h[g++],d=s.L,e.addData(d,n,r);break;case"C":d=s.C,e.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),n=h[g-2],r=h[g-1];break;case"c":d=s.C,e.addData(d,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r),n+=h[g-2],r+=h[g-1];break;case"S":y=n,m=r,T=e.len(),O=e.data,o===s.C&&(y+=n-O[T-4],m+=r-O[T-3]),d=s.C,w=h[g++],_=h[g++],n=h[g++],r=h[g++],e.addData(d,y,m,w,_,n,r);break;case"s":y=n,m=r,T=e.len(),O=e.data,o===s.C&&(y+=n-O[T-4],m+=r-O[T-3]),d=s.C,w=n+h[g++],_=r+h[g++],n+=h[g++],r+=h[g++],e.addData(d,y,m,w,_,n,r);break;case"Q":w=h[g++],_=h[g++],n=h[g++],r=h[g++],d=s.Q,e.addData(d,w,_,n,r);break;case"q":w=h[g++]+n,_=h[g++]+r,n+=h[g++],r+=h[g++],d=s.Q,e.addData(d,w,_,n,r);break;case"T":y=n,m=r,T=e.len(),O=e.data,o===s.Q&&(y+=n-O[T-4],m+=r-O[T-3]),n=h[g++],r=h[g++],d=s.Q,e.addData(d,y,m,n,r);break;case"t":y=n,m=r,T=e.len(),O=e.data,o===s.Q&&(y+=n-O[T-4],m+=r-O[T-3]),n+=h[g++],r+=h[g++],d=s.Q,e.addData(d,y,m,n,r);break;case"A":R=h[g++],A=h[g++],x=h[g++],M=h[g++],S=h[g++],w=n,_=r,n=h[g++],r=h[g++],d=s.A,a2e(w,_,n,r,M,S,R,A,x,d,e);break;case"a":R=h[g++],A=h[g++],x=h[g++],M=h[g++],S=h[g++],w=n,_=r,n+=h[g++],r+=h[g++],d=s.A,a2e(w,_,n,r,M,S,R,A,x,d,e);break}}(f==="z"||f==="Z")&&(d=s.Z,e.addData(d),n=a,r=i),o=d}return e.toStatic(),e}var Ewe=function(t){Jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(n){},e}(Zr);function Fwe(t){return t.setData!=null}function Xwe(t,e){var n=bnt(t),r=Zt({},e);return r.buildPath=function(a){var i=Fwe(a);if(i&&a.canSave()){a.appendPath(n);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=i?a.getContext():a;o&&n.rebuildPath(o,1)}},r.applyTransform=function(a){ynt(n,a),this.dirtyShape()},r}function xnt(t,e){return new Ewe(Xwe(t,e))}function Snt(t,e){var n=Xwe(t,e),r=function(a){Jt(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return i}(Ewe);return r}function Mnt(t,e){for(var n=[],r=t.length,a=0;a<r;a++){var i=t[a];n.push(i.getUpdatedPathProxy(!0))}var o=new Zr(e);return o.createPathProxy(),o.buildPath=function(s){if(Fwe(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var _nt=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),F8=function(t){Jt(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new _nt},e.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},e}(Zr);F8.prototype.type="circle";var wnt=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Zq=function(t){Jt(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new wnt},e.prototype.buildPath=function(n,r){var a=.5522848,i=r.cx,o=r.cy,s=r.rx,l=r.ry,c=s*a,u=l*a;n.moveTo(i-s,o),n.bezierCurveTo(i-s,o-u,i-c,o-l,i,o-l),n.bezierCurveTo(i+c,o-l,i+s,o-u,i+s,o),n.bezierCurveTo(i+s,o+u,i+c,o+l,i,o+l),n.bezierCurveTo(i-c,o+l,i-s,o+u,i-s,o),n.closePath()},e}(Zr);Zq.prototype.type="ellipse";var Dwe=Math.PI,YK=Dwe*2,a2=Math.sin,Cb=Math.cos,Lnt=Math.acos,es=Math.atan2,i2e=Math.abs,z_=Math.sqrt,c_=Math.max,Hd=Math.min,mf=1e-4;function Tnt(t,e,n,r,a,i,o,s){var l=n-t,c=r-e,u=o-a,f=s-i,d=f*l-u*c;if(!(d*d<mf))return d=(u*(e-i)-f*(t-a))/d,[t+d*l,e+d*c]}function E9(t,e,n,r,a,i,o){var s=t-n,l=e-r,c=(o?i:-i)/z_(s*s+l*l),u=c*l,f=-c*s,d=t+u,h=e+f,p=n+u,v=r+f,g=(d+p)/2,y=(h+v)/2,m=p-d,R=v-h,A=m*m+R*R,x=a-i,M=d*v-p*h,S=(R<0?-1:1)*z_(c_(0,x*x*A-M*M)),w=(M*R-m*S)/A,_=(-M*m-R*S)/A,T=(M*R+m*S)/A,O=(-M*m+R*S)/A,N=w-g,P=_-y,C=T-g,E=O-y;return N*N+P*P>C*C+E*E&&(w=T,_=O),{cx:w,cy:_,x0:-u,y0:-f,x1:w*(a/x-1),y1:_*(a/x-1)}}function Ont(t){var e;if(dn(t)){var n=t.length;if(!n)return t;n===1?e=[t[0],t[0],0,0]:n===2?e=[t[0],t[0],t[1],t[1]]:n===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function Pnt(t,e){var n,r=c_(e.r,0),a=c_(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,c=e.endAngle;if(!(isNaN(l)||isNaN(c))){var u=e.cx,f=e.cy,d=!!e.clockwise,h=i2e(c-l),p=h>YK&&h%YK;if(p>mf&&(h=p),!(r>mf))t.moveTo(u,f);else if(h>YK-mf)t.moveTo(u+r*Cb(l),f+r*a2(l)),t.arc(u,f,r,l,c,!d),a>mf&&(t.moveTo(u+a*Cb(c),f+a*a2(c)),t.arc(u,f,a,c,l,d));else{var v=void 0,g=void 0,y=void 0,m=void 0,R=void 0,A=void 0,x=void 0,M=void 0,S=void 0,w=void 0,_=void 0,T=void 0,O=void 0,N=void 0,P=void 0,C=void 0,E=r*Cb(l),F=r*a2(l),Y=a*Cb(c),Q=a*a2(c),K=h>mf;if(K){var ne=e.cornerRadius;ne&&(n=Ont(ne),v=n[0],g=n[1],y=n[2],m=n[3]);var Z=i2e(r-a)/2;if(R=Hd(Z,y),A=Hd(Z,m),x=Hd(Z,v),M=Hd(Z,g),_=S=c_(R,A),T=w=c_(x,M),(S>mf||w>mf)&&(O=r*Cb(c),N=r*a2(c),P=a*Cb(l),C=a*a2(l),h<Dwe)){var $=Tnt(E,F,P,C,O,N,Y,Q);if($){var G=E-$[0],ee=F-$[1],ce=O-$[0],B=N-$[1],xe=1/a2(Lnt((G*ce+ee*B)/(z_(G*G+ee*ee)*z_(ce*ce+B*B)))/2),_e=z_($[0]*$[0]+$[1]*$[1]);_=Hd(S,(r-_e)/(xe+1)),T=Hd(w,(a-_e)/(xe-1))}}}if(!K)t.moveTo(u+E,f+F);else if(_>mf){var se=Hd(y,_),z=Hd(m,_),de=E9(P,C,E,F,r,se,d),fe=E9(O,N,Y,Q,r,z,d);t.moveTo(u+de.cx+de.x0,f+de.cy+de.y0),_<S&&se===z?t.arc(u+de.cx,f+de.cy,_,es(de.y0,de.x0),es(fe.y0,fe.x0),!d):(se>0&&t.arc(u+de.cx,f+de.cy,se,es(de.y0,de.x0),es(de.y1,de.x1),!d),t.arc(u,f,r,es(de.cy+de.y1,de.cx+de.x1),es(fe.cy+fe.y1,fe.cx+fe.x1),!d),z>0&&t.arc(u+fe.cx,f+fe.cy,z,es(fe.y1,fe.x1),es(fe.y0,fe.x0),!d))}else t.moveTo(u+E,f+F),t.arc(u,f,r,l,c,!d);if(!(a>mf)||!K)t.lineTo(u+Y,f+Q);else if(T>mf){var se=Hd(v,T),z=Hd(g,T),de=E9(Y,Q,O,N,a,-z,d),fe=E9(E,F,P,C,a,-se,d);t.lineTo(u+de.cx+de.x0,f+de.cy+de.y0),T<w&&se===z?t.arc(u+de.cx,f+de.cy,T,es(de.y0,de.x0),es(fe.y0,fe.x0),!d):(z>0&&t.arc(u+de.cx,f+de.cy,z,es(de.y0,de.x0),es(de.y1,de.x1),!d),t.arc(u,f,a,es(de.cy+de.y1,de.cx+de.x1),es(fe.cy+fe.y1,fe.cx+fe.x1),d),se>0&&t.arc(u+fe.cx,f+fe.cy,se,es(fe.y1,fe.x1),es(fe.y0,fe.x0),!d))}else t.lineTo(u+Y,f+Q),t.arc(u,f,a,c,l,d)}t.closePath()}}}var Cnt=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),fg=function(t){Jt(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Cnt},e.prototype.buildPath=function(n,r){Pnt(n,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Zr);fg.prototype.type="sector";var Nnt=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),gV=function(t){Jt(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Nnt},e.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.PI*2;n.moveTo(a+r.r,i),n.arc(a,i,r.r,0,o,!1),n.moveTo(a+r.r0,i),n.arc(a,i,r.r0,0,o,!0)},e}(Zr);gV.prototype.type="ring";function Int(t,e,n,r){var a=[],i=[],o=[],s=[],l,c,u,f;if(r){u=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=t.length;d<h;d++)gx(u,u,t[d]),mx(f,f,t[d]);gx(u,u,r[0]),mx(f,f,r[1])}for(var d=0,h=t.length;d<h;d++){var p=t[d];if(n)l=t[d?d-1:h-1],c=t[(d+1)%h];else if(d===0||d===h-1){a.push(zje(t[d]));continue}else l=t[d-1],c=t[d+1];Jje(i,c,l),iK(i,i,e);var v=K$(p,l),g=K$(p,c),y=v+g;y!==0&&(v/=y,g/=y),iK(o,i,-v),iK(s,i,g);var m=Kge([],p,o),R=Kge([],p,s);r&&(mx(m,m,u),gx(m,m,f),mx(R,R,u),gx(R,R,f)),a.push(m),a.push(R)}return n&&a.push(a.shift()),a}function Vwe(t,e,n){var r=e.smooth,a=e.points;if(a&&a.length>=2){if(r){var i=Int(a,r,n,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(n?o:o-1);s++){var l=i[s*2],c=i[s*2+1],u=a[(s+1)%o];t.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;s<f;s++)t.lineTo(a[s][0],a[s][1])}n&&t.closePath()}}var knt=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),X8=function(t){Jt(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new knt},e.prototype.buildPath=function(n,r){Vwe(n,r,!0)},e}(Zr);X8.prototype.type="polygon";var Ent=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),_y=function(t){Jt(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ent},e.prototype.buildPath=function(n,r){Vwe(n,r,!1)},e}(Zr);_y.prototype.type="polyline";var Fnt={},Xnt=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),H1=function(t){Jt(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Xnt},e.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=bwe(Fnt,r,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=r.x1,i=r.y1,o=r.x2,s=r.y2;var c=r.percent;c!==0&&(n.moveTo(a,i),c<1&&(o=a*(1-c)+o*c,s=i*(1-c)+s*c),n.lineTo(o,s))},e.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},e}(Zr);H1.prototype.type="line";var rl=[],Dnt=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function o2e(t,e,n){var r=t.cpx2,a=t.cpy2;return r!=null||a!=null?[(n?ime:ko)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?ime:ko)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ome:dl)(t.x1,t.cpx1,t.x2,e),(n?ome:dl)(t.y1,t.cpy1,t.y2,e)]}var Qq=function(t){Jt(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Dnt},e.prototype.buildPath=function(n,r){var a=r.x1,i=r.y1,o=r.x2,s=r.y2,l=r.cpx1,c=r.cpy1,u=r.cpx2,f=r.cpy2,d=r.percent;d!==0&&(n.moveTo(a,i),u==null||f==null?(d<1&&(bX(a,l,o,d,rl),l=rl[1],o=rl[2],bX(i,c,s,d,rl),c=rl[1],s=rl[2]),n.quadraticCurveTo(l,c,o,s)):(d<1&&(RX(a,l,u,o,d,rl),l=rl[1],u=rl[2],o=rl[3],RX(i,c,f,s,d,rl),c=rl[1],f=rl[2],s=rl[3]),n.bezierCurveTo(l,c,u,f,o,s)))},e.prototype.pointAt=function(n){return o2e(this.shape,n,!1)},e.prototype.tangentAt=function(n){var r=o2e(this.shape,n,!0);return eqe(r,r)},e}(Zr);Qq.prototype.type="bezier-curve";var Vnt=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),mV=function(t){Jt(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Vnt},e.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,c=r.clockwise,u=Math.cos(s),f=Math.sin(s);n.moveTo(u*o+a,f*o+i),n.arc(a,i,o,s,l,!c)},e}(Zr);mV.prototype.type="arc";var Uwe=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="compound",n}return e.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),a=0;a<n.length;a++)r=r||n[a].shapeChanged();r&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),a=0;a<n.length;a++)n[a].path||n[a].createPathProxy(),n[a].path.setScale(r[0],r[1],n[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(n,r){for(var a=r.paths||[],i=0;i<a.length;i++)a[i].buildPath(n,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Zr.prototype.getBoundingRect.call(this)},e}(Zr),Wwe=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,n){this.colorStops.push({offset:e,color:n})},t}(),Ywe=function(t){Jt(e,t);function e(n,r,a,i,o,s){var l=t.call(this,o)||this;return l.x=n??0,l.y=r??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e}(Wwe),Unt=function(t){Jt(e,t);function e(n,r,a,i,o){var s=t.call(this,i)||this;return s.x=n??.5,s.y=r??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e}(Wwe),BK=Math.min,Wnt=Math.max,F9=Math.abs,i2=[0,0],o2=[0,0],co=E_e(),X9=co.minTv,D9=co.maxTv,Bwe=function(){function t(e,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Zn;for(var r=0;r<2;r++)this._axes[r]=new Zn;e&&this.fromBoundingRect(e,n)}return t.prototype.fromBoundingRect=function(e,n){var r=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(r[0].set(i,o),r[1].set(s,o),r[2].set(s,l),r[3].set(i,l),n)for(var c=0;c<4;c++)r[c].transform(n);Zn.sub(a[0],r[1],r[0]),Zn.sub(a[1],r[3],r[0]),a[0].normalize(),a[1].normalize();for(var c=0;c<2;c++)this._origin[c]=a[c].dot(r[0])},t.prototype.intersect=function(e,n,r){var a=!0,i=!n;return n&&Zn.set(n,0,0),co.reset(r,!i),!this._intersectCheckOneSide(this,e,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(a=!1,i)||!i&&!co.negativeSize&&Zn.copy(n,a?co.useDir?co.dirMinTv:X9:D9),a},t.prototype._intersectCheckOneSide=function(e,n,r,a){for(var i=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,i2),e._getProjMinMaxOnAxis(o,n._corners,o2),co.negativeSize||i2[1]<o2[0]||i2[0]>o2[1]){if(i=!1,co.negativeSize||r)return i;var l=F9(o2[0]-i2[1]),c=F9(i2[0]-o2[1]);BK(l,c)>D9.len()&&(l<c?Zn.scale(D9,s,-l*a):Zn.scale(D9,s,c*a))}else if(!r){var l=F9(o2[0]-i2[1]),c=F9(i2[0]-o2[1]);(co.useDir||BK(l,c)<X9.len())&&((l<c||!co.bidirectional)&&(Zn.scale(X9,s,l*a),co.useDir&&co.calcDirMTV()),(l>=c||!co.bidirectional)&&(Zn.scale(X9,s,-c*a),co.useDir&&co.calcDirMTV()))}}return i},t.prototype._getProjMinMaxOnAxis=function(e,n,r){for(var a=this._axes[e],i=this._origin,o=n[0].dot(a)+i[e],s=o,l=o,c=1;c<n.length;c++){var u=n[c].dot(a)+i[e];s=BK(u,s),l=Wnt(u,l)}r[0]=s+co.touchThreshold,r[1]=l-co.touchThreshold,co.negativeSize=r[1]<r[0]},t}(),Ynt=[],Bnt=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},e.prototype.addDisplayables=function(n,r){r=r||!1;for(var a=0;a<n.length;a++)this.addDisplayable(n[a],r)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},e.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new fr(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var a=this._displayables[r],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(Ynt)),n.union(i)}this._rect=n}return this._rect},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(n,r))return!0}return!1},e}(E8),Znt=mi();function Qnt(t,e,n,r,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var c=void 0,u=void 0,f=void 0;r?(c=gn(r.duration,200),u=gn(r.easing,"cubicOut"),f=0):(c=e.getShallow(l?"animationDurationUpdate":"animationDuration"),u=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(c=i.duration),i.easing!=null&&(u=i.easing),i.delay!=null&&(f=i.delay)),$n(f)&&(f=f(n,a)),$n(c)&&(c=c(n));var d={duration:c||0,delay:f,easing:u};return d}else return null}function Kq(t,e,n,r,a,i,o){var s=!1,l;$n(a)?(o=i,i=a,a=null):kn(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var c=t==="leave";c||e.stopAnimation("leave");var u=Qnt(t,r,a,c?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,a):null);if(u&&u.duration>0){var f=u.duration,d=u.delay,h=u.easing,p={duration:f,delay:d||0,easing:h,done:i,force:!!i||!!o,setToFinal:!c,scope:t,during:o};s?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!s&&e.attr(n),o&&o(1),i&&i()}function hs(t,e,n,r,a,i){Kq("update",t,e,n,r,a,i)}function xl(t,e,n,r,a,i){Kq("enter",t,e,n,r,a,i)}function J_(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if(n.scope==="leave")return!0}return!1}function IX(t,e,n,r,a,i){J_(t)||Kq("leave",t,e,n,r,a,i)}function s2e(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),IX(t,{style:{opacity:0}},e,n,r)}function j_(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||s2e(a,e,n,r)}):s2e(t,e,n,r)}function Uw(t){Znt(t).oldStyle=t.style}var Tz={},v1=["x","y"],mS=["width","height"];function Knt(t){return Zr.extend(t)}var Hnt=Snt;function Gnt(t,e){return Hnt(t,e)}function Gf(t,e){Tz[t]=e}function $nt(t){if(Tz.hasOwnProperty(t))return Tz[t]}function Hq(t,e,n,r){var a=xnt(t,e);return n&&(r==="center"&&(n=Qwe(n,a.getBoundingRect())),Kwe(a,n)),a}function Zwe(t,e,n){var r=new Hf({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(n==="center"){var i={width:a.width,height:a.height};r.setStyle(Qwe(e,i))}}});return r}function Qwe(t,e){var n=e.width/e.height,r=t.height*n,a;r<=t.width?a=t.height:(r=t.width,a=r/n);var i=t.x+t.width/2,o=t.y+t.height/2;return{x:i-r/2,y:o-a/2,width:r,height:a}}var Oz=Mnt;function Kwe(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function Ww(t,e){return bwe(t,t,{lineWidth:e}),t}function znt(t,e){return xwe(t,t,e),t}var Jnt=D2;function jnt(t,e){for(var n=Oq([]);t&&t!==e;)K_(n,t.getLocalTransform(),n),t=t.parent;return n}function Hwe(t,e,n){return e&&!_l(e)&&(e=Iq.getLocalTransform(e)),n&&(e=P8([],e)),Au([],t,e)}function qnt(t,e,n){var r=e[4]===0||e[5]===0||e[0]===0?1:gh(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:gh(2*e[4]/e[2]),i=[t==="left"?-r:t==="right"?r:0,t==="top"?-a:t==="bottom"?a:0];return i=Hwe(i,e,n),gh(i[0])>gh(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function l2e(t){return!t.isGroup}function ert(t){return t.shape!=null}function Gwe(t,e,n){if(!t||!e)return;function r(o){var s={};return o.traverse(function(l){l2e(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return ert(o)&&(s.shape=Mr(o.shape)),s}var i=r(t);e.traverse(function(o){if(l2e(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),hs(o,l,n,Ra(o).dataIndex)}}})}function trt(t,e){return nn(t,function(n){var r=n[0];r=hc(r,e.x),r=Fw(r,e.x+e.width);var a=n[1];return a=hc(a,e.y),a=Fw(a,e.y+e.height),[r,a]})}function nrt(t,e){var n=hc(t.x,e.x),r=Fw(t.x+t.width,e.x+e.width),a=hc(t.y,e.y),i=Fw(t.y+t.height,e.y+e.height);if(r>=n&&i>=a)return{x:n,y:a,width:r-n,height:i-a}}function $we(t,e,n){var r=Zt({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),Or(a,n),new Hf(r)):Hq(t.replace("path://",""),r,n,"center")}function rrt(t,e,n,r,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(zwe(t,e,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function zwe(t,e,n,r,a,i,o,s){var l=n-t,c=r-e,u=o-a,f=s-i,d=ZK(u,f,l,c);if(art(d))return!1;var h=t-a,p=e-i,v=ZK(h,p,l,c)/d;if(v<0||v>1)return!1;var g=ZK(h,p,u,f)/d;return!(g<0||g>1)}function ZK(t,e,n,r){return t*r-n*e}function art(t){return t<=1e-6&&t>=-1e-6}function kX(t,e,n,r,a){return e==null||(oa(e)?va[0]=va[1]=va[2]=va[3]=e:(va[0]=e[0],va[1]=e[1],va[2]=e[2],va[3]=e[3]),r&&(va[0]=hc(0,va[0]),va[1]=hc(0,va[1]),va[2]=hc(0,va[2]),va[3]=hc(0,va[3])),n&&(va[0]=-va[0],va[1]=-va[1],va[2]=-va[2],va[3]=-va[3]),c2e(t,va,"x","width",3,1,a&&a[0]||0),c2e(t,va,"y","height",0,2,a&&a[1]||0)),t}var va=[0,0,0,0];function c2e(t,e,n,r,a,i,o){var s=e[i]+e[a],l=t[r];t[r]+=s,o=hc(0,Fw(o,l)),t[r]<o?(t[r]=o,t[n]+=e[a]>=0?-e[a]:e[i]>=0?l+e[i]:gh(s)>1e-8?(l-o)*e[a]/s:0):t[n]-=e[a]}function yV(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,a=Sn(e)?{formatter:e}:e,i=n.mainType,o=n.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=t.formatterParamsExtra;l&&Ge(kr(l),function(u){bh(s,u)||(s[u]=l[u],s.$vars.push(u))});var c=Ra(t.el);c.componentMainType=i,c.componentIndex=o,c.tooltipConfig={name:r,option:Or({content:r,encodeHTMLContent:!0,formatterParams:s},a)}}function Pz(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function AV(t,e){if(t)if(dn(t))for(var n=0;n<t.length;n++)Pz(t[n],e);else Pz(t,e)}function Gq(t){return!t||gh(t[1])<V9&&gh(t[2])<V9||gh(t[0])<V9&&gh(t[3])<V9}var V9=1e-5;function Yw(t,e){return t?fr.copy(t,e):e.clone()}function $q(t,e){return e?I_e(t||k1(),e):void 0}function Jwe(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function irt(t){var e=-1/0,n=1/0;Pz(t,function(i){r(i),r(i.getTextContent()),r(i.getTextGuideLine())});function r(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>e&&(e=o),o<n&&(n=o)}}return n>e&&(n=e=0),{min:n,max:e}}function jwe(t,e,n){qwe(t,e,n,-1/0)}function qwe(t,e,n,r){if(t.ignoreModelZ)return r;var a=t.getTextContent(),i=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)r=hc(qwe(s[l],e,n,r),r);else t.z=e,t.zlevel=n,r=hc(t.z2||0,r);if(a&&(a.z=e,a.zlevel=n,isFinite(r)&&(a.z2=r+2)),i){var c=t.textGuideLineConfig;i.z=e,i.zlevel=n,isFinite(r)&&(i.z2=r+(c&&c.showAbove?1:-1))}return r}Gf("circle",F8);Gf("ellipse",Zq);Gf("sector",fg);Gf("ring",gV);Gf("polygon",X8);Gf("polyline",_y);Gf("rect",Ii);Gf("line",H1);Gf("bezierCurve",Qq);Gf("arc",mV);const ort=Object.freeze(Object.defineProperty({__proto__:null,Arc:mV,BezierCurve:Qq,BoundingRect:fr,Circle:F8,CompoundPath:Uwe,Ellipse:Zq,Group:ki,Image:Hf,IncrementalDisplayable:Bnt,Line:H1,LinearGradient:Ywe,OrientedBoundingRect:Bwe,Path:Zr,Point:Zn,Polygon:X8,Polyline:_y,RadialGradient:Unt,Rect:Ii,Ring:gV,Sector:fg,Text:Ac,WH:mS,XY:v1,applyTransform:Hwe,calcZ2Range:irt,clipPointsByRect:trt,clipRectByRect:nrt,createIcon:$we,ensureCopyRect:Yw,ensureCopyTransform:$q,expandOrShrinkRect:kX,extendPath:Gnt,extendShape:Knt,getShapeClass:$nt,getTransform:jnt,groupTransition:Gwe,initProps:xl,isBoundingRectAxisAligned:Gq,isElementRemoved:J_,lineLineIntersect:zwe,linePolygonIntersect:rrt,makeImage:Zwe,makePath:Hq,mergePath:Oz,registerShape:Gf,removeElement:IX,removeElementWithFadeOut:j_,resizePath:Kwe,retrieveZInfo:Jwe,setTooltipConfig:yV,subPixelOptimize:Jnt,subPixelOptimizeLine:Ww,subPixelOptimizeRect:znt,transformDirection:qnt,traverseElements:AV,traverseUpdateZ:jwe,updateProps:hs},Symbol.toStringTag,{value:"Module"}));var RV={};function srt(t,e){for(var n=0;n<Su.length;n++){var r=Su[n],a=e[r],i=t.ensureState(r);i.style=i.style||{},i.style.text=a}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function u2e(t,e,n){var r=t.labelFetcher,a=t.labelDataIndex,i=t.labelDimIndex,o=e.normal,s;r&&(s=r.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=$n(t.defaultText)?t.defaultText(a,t,n):t.defaultText);for(var l={normal:s},c=0;c<Su.length;c++){var u=Su[c],f=e[u];l[u]=gn(r?r.getFormattedLabel(a,u,null,i,f&&f.get("formatter")):null,s)}return l}function US(t,e,n,r){n=n||RV;for(var a=t instanceof Ac,i=!1,o=0;o<TX.length;o++){var s=e[TX[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?t:t.getTextContent();if(i){a||(l||(l=new Ac,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var c=u2e(n,e),u=e.normal,f=!!u.getShallow("show"),d=Bw(u,r&&r.normal,n,!1,!a);d.text=c.normal,a||t.setTextConfig(f2e(u,n,!1));for(var o=0;o<Su.length;o++){var h=Su[o],s=e[h];if(s){var p=l.ensureState(h),v=!!gn(s.getShallow("show"),f);if(v!==f&&(p.ignore=!v),p.style=Bw(s,r&&r[h],n,!0,!a),p.style.text=c[h],!a){var g=t.ensureState(h);g.textConfig=f2e(s,n,!0)}}}l.silent=!!u.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),n.enableTextSetter&&(bV(l).setLabelText=function(y){var m=u2e(n,e,y);srt(l,m)})}else l&&(l.ignore=!0);t.dirty()}function WS(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Su.length;r++){var a=Su[r];n[a]=t.getModel([a,e])}return n}function Bw(t,e,n,r,a){var i={};return lrt(i,t,n,r,a),e&&Zt(i,e),i}function f2e(t,e,n){e=e||{};var r={},a,i=t.getShallow("rotate"),o=gn(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return a=t.getShallow("position")||(n?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(r.position=a),s!=null&&(r.offset=s),i!=null&&(i*=Math.PI/180,r.rotation=i),o!=null&&(r.distance=o),r.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(r.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(r.layoutRect=e.layoutRect),r}function lrt(t,e,n,r,a){n=n||RV;var i=e.ecModel,o=i&&i.option.textStyle,s=crt(e),l;if(s){l={};var c="richInheritPlainLabel",u=gn(e.get(c),i?i.get(c):void 0);for(var f in s)if(s.hasOwnProperty(f)){var d=e.getModel(["rich",f]);v2e(l[f]={},d,o,e,u,n,r,a,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var p=e.get("lineOverflow");p&&(t.lineOverflow=p);var v=t,g=e.get("minMargin");if(g!=null)g=oa(g)?g/2:0,v.margin=[g,g,g,g],v.__marginType=bx.minMargin;else{var y=e.get("textMargin");y!=null&&(v.margin=Lq(y),v.__marginType=bx.textMargin)}v2e(t,e,o,null,null,n,r,a,!0,!1)}function crt(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||RV).rich;if(n){e=e||{};for(var r=kr(n),a=0;a<r.length;a++){var i=r[a];e[i]=1}}t=t.parentModel}return e}var d2e=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],h2e=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],p2e=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function v2e(t,e,n,r,a,i,o,s,l,c){n=!o&&n||RV;var u=i&&i.inheritColor,f=e.getShallow("color"),d=e.getShallow("textBorderColor"),h=gn(e.getShallow("opacity"),n.opacity);(f==="inherit"||f==="auto")&&(u?f=u:f=null),(d==="inherit"||d==="auto")&&(u?d=u:d=null),s||(f=f||n.color,d=d||n.textBorderColor),f!=null&&(t.fill=f),d!=null&&(t.stroke=d);var p=gn(e.getShallow("textBorderWidth"),n.textBorderWidth);p!=null&&(t.lineWidth=p);var v=gn(e.getShallow("textBorderType"),n.textBorderType);v!=null&&(t.lineDash=v);var g=gn(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);g!=null&&(t.lineDashOffset=g),!o&&h==null&&!c&&(h=i&&i.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&i.inheritColor&&(t.fill=i.inheritColor);for(var y=0;y<d2e.length;y++){var m=d2e[y],R=a!==!1&&r?q2(e.getShallow(m),r.getShallow(m),n[m]):gn(e.getShallow(m),n[m]);R!=null&&(t[m]=R)}for(var y=0;y<h2e.length;y++){var m=h2e[y],R=e.getShallow(m);R!=null&&(t[m]=R)}if(t.verticalAlign==null){var A=e.getShallow("baseline");A!=null&&(t.verticalAlign=A)}if(!l||!i.disableBox){for(var y=0;y<p2e.length;y++){var m=p2e[y],R=e.getShallow(m);R!=null&&(t[m]=R)}var x=e.getShallow("borderType");x!=null&&(t.borderDash=x),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&u&&(t.backgroundColor=u),(t.borderColor==="auto"||t.borderColor==="inherit")&&u&&(t.borderColor=u)}}function urt(t,e){var n=e&&e.getModel("textStyle");return R1([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var bV=mi();function frt(t,e,n,r){if(t){var a=bV(t);a.prevValue=a.value,a.value=n;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=r,a.statesModels=e)}}var bx={minMargin:1,textMargin:2},drt=["textStyle","color"],QK=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],KK=new Ac,hrt=function(){function t(){}return t.prototype.getTextColor=function(e){var n=this.ecModel;return this.getShallow("color")||(!e&&n?n.get(drt):null)},t.prototype.getFont=function(){return urt({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var n={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<QK.length;r++)n[QK[r]]=this.getShallow(QK[r]);return KK.useStyle(n),KK.update(),KK.getBoundingRect()},t}(),e8e=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],prt=Dw(e8e),vrt=function(){function t(){}return t.prototype.getLineStyle=function(e){return prt(this,e)},t}(),t8e=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],grt=Dw(t8e),mrt=function(){function t(){}return t.prototype.getItemStyle=function(e,n){return grt(this,e,n)},t}(),Ji=function(){function t(e,n,r){this.parentModel=n,this.ecModel=r,this.option=e}return t.prototype.init=function(e,n,r){},t.prototype.mergeOption=function(e,n){ia(this.option,e,!0)},t.prototype.get=function(e,n){return e==null?this.option:this._doGet(this.parsePath(e),!n&&this.parentModel)},t.prototype.getShallow=function(e,n){var r=this.option,a=r==null?r:r[e];if(a==null&&!n){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},t.prototype.getModel=function(e,n){var r=e!=null,a=r?this.parsePath(e):null,i=r?this._doGet(a):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(i,n,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Mr(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!jr.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,n){var r=this.option;if(!e)return r;for(var a=0;a<e.length&&!(e[a]&&(r=r&&typeof r=="object"?r[e[a]]:null,r==null));a++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(e),n.parentModel)),r},t}();Fq(Ji);att(Ji);Kf(Ji,vrt);Kf(Ji,mrt);Kf(Ji,ctt);Kf(Ji,hrt);var yrt=Math.round(Math.random()*10);function xV(t){return[t||"",yrt++].join("_")}function Art(t){var e={};t.registerSubTypeDefaulter=function(n,r){var a=mh(n);e[a.main]=r},t.determineSubType=function(n,r){var a=r.type;if(!a){var i=mh(n).main;t.hasSubTypes(n)&&e[i]&&(a=e[i](r))}return a}}function Rrt(t,e){t.topologicalTravel=function(i,o,s,l){if(!i.length)return;var c=n(o),u=c.graph,f=c.noEntryList,d={};for(Ge(i,function(m){d[m]=!0});f.length;){var h=f.pop(),p=u[h],v=!!d[h];v&&(s.call(l,h,p.originalDeps.slice()),delete d[h]),Ge(p.successor,v?y:g)}Ge(d,function(){var m="";throw new Error(m)});function g(m){u[m].entryCount--,u[m].entryCount===0&&f.push(m)}function y(m){d[m]=!0,g(m)}};function n(i){var o={},s=[];return Ge(i,function(l){var c=r(o,l),u=c.originalDeps=e(l),f=a(u,i);c.entryCount=f.length,c.entryCount===0&&s.push(l),Ge(f,function(d){aa(c.predecessor,d)<0&&c.predecessor.push(d);var h=r(o,d);aa(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function r(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return Ge(i,function(l){aa(o,l)>=0&&s.push(l)}),s}}function n8e(t,e){return ia(ia({},t,!0),e,!0)}const brt={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},xrt={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var EX="ZH",zq="EN",Hx=zq,jE={},Jq={},r8e=jr.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Hx).toUpperCase();return t.indexOf(EX)>-1?EX:Hx}():Hx;function a8e(t,e){t=t.toUpperCase(),Jq[t]=new Ji(e),jE[t]=e}function Srt(t){if(Sn(t)){var e=jE[t.toUpperCase()]||{};return t===EX||t===zq?Mr(e):ia(Mr(e),Mr(jE[Hx]),!1)}else return ia(Mr(t),Mr(jE[Hx]),!1)}function Mrt(t){return Jq[t]}function _rt(){return Jq[Hx]}a8e(zq,brt);a8e(EX,xrt);var wrt=null;function FX(){return wrt}var jq=1e3,qq=jq*60,q_=qq*60,hu=q_*24,g2e=hu*365,Lrt={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},qE={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Trt="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",U9="{yyyy}-{MM}-{dd}",m2e={year:"{yyyy}",month:"{yyyy}-{MM}",day:U9,hour:U9+" "+qE.hour,minute:U9+" "+qE.minute,second:U9+" "+qE.second,millisecond:Trt},ay=["year","month","day","hour","minute","second","millisecond"],Ort=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Prt(t){return!Sn(t)&&!$n(t)?Crt(t):t}function Crt(t){t=t||{};var e={},n=!0;return Ge(ay,function(r){n&&(n=t[r]==null)}),Ge(ay,function(r,a){var i=t[r];e[r]={};for(var o=null,s=a;s>=0;s--){var l=ay[s],c=kn(i)&&!dn(i)?i[l]:i,u=void 0;dn(c)?(u=c.slice(),o=u[0]||""):Sn(c)?(o=c,u=[o]):(o==null?o=qE[r]:Lrt[l].test(o)||(o=e[l][l][0]+" "+o),u=[o],n&&(u[1]="{primary|"+o+"}")),e[r][l]=u}}),e}function Dv(t,e){return t+="","0000".substr(0,e-t.length)+t}function ew(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Nrt(t){return t===ew(t)}function Irt(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function i8e(t,e,n,r){var a=I8(t),i=a[o8e(n)](),o=a[eee(n)]()+1,s=Math.floor((o-1)/3)+1,l=a[tee(n)](),c=a["get"+(n?"UTC":"")+"Day"](),u=a[nee(n)](),f=(u-1)%12+1,d=a[ree(n)](),h=a[aee(n)](),p=a[iee(n)](),v=u>=12?"pm":"am",g=v.toUpperCase(),y=r instanceof Ji?r:Mrt(r||r8e)||_rt(),m=y.getModel("time"),R=m.get("month"),A=m.get("monthAbbr"),x=m.get("dayOfWeek"),M=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,v+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Dv(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,R[o-1]).replace(/{MMM}/g,A[o-1]).replace(/{MM}/g,Dv(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Dv(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[c]).replace(/{ee}/g,M[c]).replace(/{e}/g,c+"").replace(/{HH}/g,Dv(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Dv(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Dv(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Dv(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Dv(p,3)).replace(/{S}/g,p+"")}function krt(t,e,n,r,a){var i=null;if(Sn(n))i=n;else if($n(n)){var o={time:t.time,level:t.time.level},s=FX();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),i=n(t.value,e,o)}else{var l=t.time;if(l){var c=n[l.lowerTimeUnit][l.upperTimeUnit];i=c[Math.min(l.level,c.length-1)]||""}else{var u=XX(t.value,a);i=n[u][u][0]}}return i8e(new Date(t.value),i,a,r)}function XX(t,e){var n=I8(t),r=n[eee(e)]()+1,a=n[tee(e)](),i=n[nee(e)](),o=n[ree(e)](),s=n[aee(e)](),l=n[iee(e)](),c=l===0,u=c&&s===0,f=u&&o===0,d=f&&i===0,h=d&&a===1,p=h&&r===1;return p?"year":h?"month":d?"day":f?"hour":u?"minute":c?"second":"millisecond"}function Cz(t,e,n){switch(e){case"year":t[s8e(n)](0);case"month":t[l8e(n)](1);case"day":t[c8e(n)](0);case"hour":t[u8e(n)](0);case"minute":t[f8e(n)](0);case"second":t[d8e(n)](0)}return t}function o8e(t){return t?"getUTCFullYear":"getFullYear"}function eee(t){return t?"getUTCMonth":"getMonth"}function tee(t){return t?"getUTCDate":"getDate"}function nee(t){return t?"getUTCHours":"getHours"}function ree(t){return t?"getUTCMinutes":"getMinutes"}function aee(t){return t?"getUTCSeconds":"getSeconds"}function iee(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Ert(t){return t?"setUTCFullYear":"setFullYear"}function s8e(t){return t?"setUTCMonth":"setMonth"}function l8e(t){return t?"setUTCDate":"setDate"}function c8e(t){return t?"setUTCHours":"setHours"}function u8e(t){return t?"setUTCMinutes":"setMinutes"}function f8e(t){return t?"setUTCSeconds":"setSeconds"}function d8e(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Frt(t){if(!ket(t))return Sn(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}var h8e=Lq,y2e=["a","b","c","d","e","f","g"],HK=function(t,e){return"{"+t+(e??"")+"}"};function Xrt(t,e,n){dn(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=y2e[i];t=t.replace(HK(o),HK(o,0))}for(var s=0;s<r;s++)for(var l=0;l<a.length;l++){var c=e[s][a[l]];t=t.replace(HK(y2e[l],s),c)}return t}function Nz(t,e){return e=e||"transparent",Sn(t)?t:kn(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var eF={},GK={},oee=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,n){this._nonSeriesBoxMasterList=r(eF),this._normalMasterList=r(GK);function r(a,i){var o=[];return Ge(a,function(s,l){var c=s.create(e,n);o=o.concat(c||[])}),o}},t.prototype.update=function(e,n){Ge(this._normalMasterList,function(r){r.update&&r.update(e,n)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,n){if(e==="matrix"||e==="calendar"){eF[e]=n;return}GK[e]=n},t.get=function(e){return GK[e]||eF[e]},t}();function Drt(t){return!!eF[t]}var Iz={coord:1,coord2:2};function Vrt(t){p8e.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var p8e=ir();function Urt(t){var e=t.getShallow("coord",!0),n=Iz.coord;if(e==null){var r=p8e.get(t.type);r&&r.getCoord2&&(n=Iz.coord2,e=r.getCoord2(t))}return{coord:e,from:n}}var r0={none:0,dataCoordSys:1,boxCoordSys:2};function Wrt(t,e){var n=t.getShallow("coordinateSystem"),r=t.getShallow("coordinateSystemUsage",!0),a=r0.none;if(n){var i=t.mainType==="series";r==null&&(r=i?"data":"box"),r==="data"?(a=r0.dataCoordSys,i||(a=r0.none)):r==="box"&&(a=r0.boxCoordSys,!i&&!Drt(n)&&(a=r0.none))}return{coordSysType:n,kind:a}}function Yrt(t){var e=t.targetModel,n=t.coordSysType,r=t.coordSysProvider,a=t.isDefaultDataCoordSys,i=Wrt(e),o=i.kind,s=i.coordSysType;if(a&&o!==r0.dataCoordSys&&(o=r0.dataCoordSys,s=n),o===r0.none||s!==n)return!1;var l=r(n,e);return l?(o===r0.dataCoordSys?e.coordinateSystem=l:e.boxCoordinateSystem=l,!0):!1}var tF=Ge,Brt=["left","right","top","bottom","width","height"],W9=[["width","left","right"],["height","top","bottom"]];function see(t,e,n,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,c){var u=l.getBoundingRect(),f=e.childAt(c+1),d=f&&f.getBoundingRect(),h,p;if(t==="horizontal"){var v=u.width+(d?-d.x+u.x:0);h=i+v,h>r||l.newline?(i=0,h=v,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(d?-d.y+u.y:0);p=o+g,p>a||l.newline?(i+=s+n,o=0,p=g,s=u.width):s=Math.max(s,u.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),t==="horizontal"?i=h+n:o=p+n)})}var tw=see;cc(see,"vertical");cc(see,"horizontal");function Zrt(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function Qrt(t,e){var n=SV(t,e,{enableLayoutOnlyByCenter:!0}),r=t.getBoxLayoutParams(),a,i;if(n.type===u_.point)i=n.refPoint,a=yS(r,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=dn(o)?o:[o,o];a=yS(r,n.refContainer),i=n.boxCoordFrom===Iz.coord2?n.refPoint:[Aa(s[0],a.width)+a.x,Aa(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function Krt(t,e){var n=Qrt(t,e),r=n.viewRect,a=n.center,i=t.get("radius");dn(i)||(i=[0,i]);var o=Aa(r.width,e.getWidth()),s=Aa(r.height,e.getHeight()),l=Math.min(o,s),c=Aa(i[0],l/2),u=Aa(i[1],l/2);return{cx:a[0],cy:a[1],r0:c,r:u,viewRect:r}}function yS(t,e,n){n=h8e(n||0);var r=e.width,a=e.height,i=Aa(t.left,r),o=Aa(t.top,a),s=Aa(t.right,r),l=Aa(t.bottom,a),c=Aa(t.width,r),u=Aa(t.height,a),f=n[2]+n[0],d=n[1]+n[3],h=t.aspect;switch(isNaN(c)&&(c=r-s-d-i),isNaN(u)&&(u=a-l-f-o),h!=null&&(isNaN(c)&&isNaN(u)&&(h>r/a?c=r*.8:u=a*.8),isNaN(c)&&(c=h*u),isNaN(u)&&(u=c/h)),isNaN(i)&&(i=r-s-c-d),isNaN(o)&&(o=a-l-u-f),t.left||t.right){case"center":i=r/2-c/2-n[3];break;case"right":i=r-c-d;break}switch(t.top||t.bottom){case"middle":case"center":o=a/2-u/2-n[0];break;case"bottom":o=a-u-f;break}i=i||0,o=o||0,isNaN(c)&&(c=r-d-i-(s||0)),isNaN(u)&&(u=a-f-o-(l||0));var p=new fr((e.x||0)+i+n[3],(e.y||0)+o+n[0],c,u);return p.margin=n,p}var u_={rect:1,point:2};function SV(t,e,n){var r,a,i,o=t.boxCoordinateSystem,s;if(o){var l=Urt(t),c=l.coord,u=l.from;if(o.dataToLayout){i=u_.rect,s=u;var f=o.dataToLayout(c);r=f.contentRect||f.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=u_.point,s=u,a=o.dataToPoint(c))}return i==null&&(i=u_.rect),i===u_.rect&&(r||(r={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[r.x+r.width/2,r.y+r.height/2]),{type:i,refContainer:r,refPoint:a,boxCoordFrom:s}}function Zw(t){var e=t.layoutMode||t.constructor.layoutMode;return kn(e)?e:e?{type:e}:null}function G1(t,e,n){var r=n&&n.ignoreSize;!dn(r)&&(r=[r,r]);var a=o(W9[0],0),i=o(W9[1],1);l(W9[0],t,a),l(W9[1],t,i);function o(c,u){var f={},d=0,h={},p=0,v=2;if(tF(c,function(m){h[m]=t[m]}),tF(c,function(m){bh(e,m)&&(f[m]=h[m]=e[m]),s(f,m)&&d++,s(h,m)&&p++}),r[u])return s(e,c[1])?h[c[2]]=null:s(e,c[2])&&(h[c[1]]=null),h;if(p===v||!d)return h;if(d>=v)return f;for(var g=0;g<c.length;g++){var y=c[g];if(!bh(f,y)&&bh(t,y)){f[y]=t[y];break}}return f}function s(c,u){return c[u]!=null&&c[u]!=="auto"}function l(c,u,f){tF(c,function(d){u[d]=f[d]})}}function D8(t){return Hrt({},t)}function Hrt(t,e){return e&&t&&tF(Brt,function(n){bh(e,n)&&(t[n]=e[n])}),t}var Grt=mi(),ua=function(t){Jt(e,t);function e(n,r,a){var i=t.call(this,n,r,a)||this;return i.uid=xV("ec_cpt_model"),i}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=Zw(this),i=a?D8(n):{},o=r.getTheme();ia(n,o.get(this.mainType)),ia(n,this.getDefaultOption()),a&&G1(n,i,a)},e.prototype.mergeOption=function(n,r){ia(this.option,n,!0);var a=Zw(this);a&&G1(this.option,n,a)},e.prototype.optionUpdated=function(n,r){},e.prototype.getDefaultOption=function(){var n=this.constructor;if(!ttt(n))return n.defaultOption;var r=Grt(this);if(!r.defaultOption){for(var a=[],i=n;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=ia(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return cV(this.ecModel,n,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){return Zrt(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(n){this.option.zlevel=n},e.protoInitialize=function(){var n=e.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),e}(Ji);pwe(ua,Ji);uV(ua);Art(ua);Rrt(ua,$rt);function $rt(t){var e=[];return Ge(ua.getClassesByMainType(t),function(n){e=e.concat(n.dependencies||n.prototype.dependencies||[])}),e=nn(e,function(n){return mh(n).main}),t!=="dataset"&&aa(e,"dataset")<=0&&e.unshift("dataset"),e}var er={color:{},darkColor:{},size:{}},ei=er.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};Zt(ei,{primary:ei.neutral80,secondary:ei.neutral70,tertiary:ei.neutral60,quaternary:ei.neutral50,disabled:ei.neutral20,border:ei.neutral30,borderTint:ei.neutral20,borderShade:ei.neutral40,background:ei.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ei.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ei.neutral70,axisLineTint:ei.neutral40,axisTick:ei.neutral70,axisTickMinor:ei.neutral60,axisLabel:ei.neutral70,axisSplitLine:ei.neutral15,axisMinorSplitLine:ei.neutral05});for(var s2 in ei)if(ei.hasOwnProperty(s2)){var A2e=ei[s2];s2==="theme"?er.darkColor.theme=ei.theme.slice():s2==="highlight"?er.darkColor.highlight="rgba(255,231,130,0.4)":s2.indexOf("accent")===0?er.darkColor[s2]=nz(A2e,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):er.darkColor[s2]=nz(A2e,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}er.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var v8e="";typeof navigator<"u"&&(v8e=navigator.platform||"");var Nb="rgba(0, 0, 0, 0.2)",g8e=er.color.theme[0],zrt=nz(g8e,null,null,.9);const Jrt={darkMode:"auto",colorBy:"series",color:er.color.theme,gradientColor:[zrt,g8e],aria:{decal:{decals:[{color:Nb,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Nb,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Nb,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Nb,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Nb,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Nb,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:v8e.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var m8e=ir(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Sc="original",ps="arrayRows",Ou="objectRows",$f="keyedColumns",X1="typedArray",y8e="unknown",_h="column",wy="row",wo={Must:1,Might:2,Not:3},A8e=mi();function jrt(t){A8e(t).datasetMap=ir()}function qrt(t,e,n){var r={},a=lee(e);if(!a||!t)return r;var i=[],o=[],s=e.ecModel,l=A8e(s).datasetMap,c=a.uid+"_"+n.seriesLayoutBy,u,f;t=t.slice(),Ge(t,function(v,g){var y=kn(v)?v:t[g]={name:v};y.type==="ordinal"&&u==null&&(u=g,f=p(y)),r[y.name]=[]});var d=l.get(c)||l.set(c,{categoryWayDim:f,valueWayDim:0});Ge(t,function(v,g){var y=v.name,m=p(v);if(u==null){var R=d.valueWayDim;h(r[y],R,m),h(o,R,m),d.valueWayDim+=m}else if(u===g)h(r[y],0,m),h(i,0,m);else{var R=d.categoryWayDim;h(r[y],R,m),h(o,R,m),d.categoryWayDim+=m}});function h(v,g,y){for(var m=0;m<y;m++)v.push(g+m)}function p(v){var g=v.dimsDef;return g?g.length:1}return i.length&&(r.itemName=i),o.length&&(r.seriesName=o),r}function eat(t,e,n){var r={},a=lee(t);if(!a)return r;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Ou||i===$f)&&Ge(o,function(u,f){(kn(u)?u.name:u)==="name"&&(s=f)});var l=function(){for(var u={},f={},d=[],h=0,p=Math.min(5,n);h<p;h++){var v=b8e(e.data,i,e.seriesLayoutBy,o,e.startIndex,h);d.push(v);var g=v===wo.Not;if(g&&u.v==null&&h!==s&&(u.v=h),(u.n==null||u.n===u.v||!g&&d[u.n]===wo.Not)&&(u.n=h),y(u)&&d[u.n]!==wo.Not)return u;g||(v===wo.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function y(m){return m.v!=null&&m.n!=null}return y(u)?u:y(f)?f:null}();if(l){r.value=[l.v];var c=s??l.n;r.itemName=[c],r.seriesName=[c]}return r}function lee(t){var e=t.get("data",!0);if(!e)return cV(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},du).models[0]}function tat(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:cV(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},du).models}function R8e(t,e){return b8e(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function b8e(t,e,n,r,a,i){var o,s=5;if(wl(t))return wo.Not;var l,c;if(r){var u=r[i];kn(u)?(l=u.name,c=u.type):Sn(u)&&(l=u)}if(c!=null)return c==="ordinal"?wo.Must:wo.Not;if(e===ps){var f=t;if(n===wy){for(var d=f[i],h=0;h<(d||[]).length&&h<s;h++)if((o=A(d[a+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var p=f[a+h];if(p&&(o=A(p[i]))!=null)return o}}else if(e===Ou){var v=t;if(!l)return wo.Not;for(var h=0;h<v.length&&h<s;h++){var g=v[h];if(g&&(o=A(g[l]))!=null)return o}}else if(e===$f){var y=t;if(!l)return wo.Not;var d=y[l];if(!d||wl(d))return wo.Not;for(var h=0;h<d.length&&h<s;h++)if((o=A(d[h]))!=null)return o}else if(e===Sc)for(var m=t,h=0;h<m.length&&h<s;h++){var g=m[h],R=k8(g);if(!dn(R))return wo.Not;if((o=A(R[i]))!=null)return o}function A(x){var M=Sn(x);if(x!=null&&Number.isFinite(Number(x))&&x!=="")return M?wo.Might:wo.Not;if(M&&x!=="-")return wo.Must}return wo.Not}var nat=ir();function rat(t,e,n){var r=nat.get(e);if(!r)return n;var a=r(t);return a?n.concat(a):n}var R2e=mi();mi();var cee=function(){function t(){}return t.prototype.getColorFromPalette=function(e,n,r){var a=Ds(this.get("color",!0)),i=this.get("colorLayer",!0);return iat(this,R2e,a,i,e,n,r)},t.prototype.clearColorPalette=function(){oat(this,R2e)},t}();function aat(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function iat(t,e,n,r,a,i,o){i=i||t;var s=e(i),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(a))return c[a];var u=o==null||!r?n:aat(r,o);if(u=u||n,!(!u||!u.length)){var f=u[l];return a&&(c[a]=f),s.paletteIdx=(l+1)%u.length,f}}function oat(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Y9,x5,b2e,x2e="\0_ec_inner",sat=1,uee=function(t){Jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Ji(i),this._locale=new Ji(o),this._optionManager=s},e.prototype.setOption=function(n,r,a){var i=_2e(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(n,r){return this._resetOption(n,_2e(r))},e.prototype._resetOption=function(n,r){var a=!1,i=this._optionManager;if(!n||n==="recreate"){var o=i.mountOption(n==="recreate");!this.option||n==="recreate"?b2e(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=i.getMediaOption(this);l.length&&Ge(l,function(c){a=!0,this._mergeOption(c,r)},this)}return a},e.prototype.mergeOption=function(n){this._mergeOption(n,null)},e.prototype._mergeOption=function(n,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ir(),c=r&&r.replaceMergeMainTypeMap;jrt(this),Ge(n,function(f,d){f!=null&&(ua.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?Mr(f):ia(a[d],f,!0))}),c&&c.each(function(f,d){ua.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),ua.topologicalTravel(s,ua.getAllClassMainTypes(),u,this);function u(f){var d=rat(this,f,Ds(n[f])),h=i.get(f),p=h?c&&c.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=Wet(h,d,p);Get(v,f,ua),a[f]=null,i.set(f,null),o.set(f,0);var g=[],y=[],m=0,R;Ge(v,function(A,x){var M=A.existing,S=A.newOption;if(!S)M&&(M.mergeOption({},this),M.optionUpdated({},!1));else{var w=f==="series",_=ua.getClass(f,A.keyInfo.subType,!w);if(!_)return;if(f==="tooltip"){if(R)return;R=!0}if(M&&M.constructor===_)M.name=A.keyInfo.name,M.mergeOption(S,this),M.optionUpdated(S,!1);else{var T=Zt({componentIndex:x},A.keyInfo);M=new _(S,this,this,T),Zt(M,T),A.brandNew&&(M.__requireNewView=!0),M.init(S,this,this),M.optionUpdated(null,!0)}}M?(g.push(M.option),y.push(M),m++):(g.push(void 0),y.push(void 0))},this),a[f]=g,i.set(f,y),o.set(f,m),f==="series"&&Y9(this)}this._seriesIndices||Y9(this)},e.prototype.getOption=function(){var n=Mr(this.option);return Ge(n,function(r,a){if(ua.hasClass(a)){for(var i=Ds(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Xw(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,n[a]=i}}),delete n[x2e],n},e.prototype.setTheme=function(n){this._theme=new Ji(n),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(n){this._payload=n},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var a=n.index,i=n.id,o=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return a!=null?(l=[],Ge(Ds(a),function(c){s[c]&&l.push(s[c])})):i!=null?l=S2e("id",i,s):o!=null?l=S2e("name",o,s):l=Hi(s,function(c){return!!c}),M2e(l,n)},e.prototype.findComponents=function(n){var r=n.query,a=n.mainType,i=s(r),o=i?this.queryComponents(i):Hi(this._componentsMap.get(a),function(c){return!!c});return l(M2e(o,n));function s(c){var u=a+"Index",f=a+"Id",d=a+"Name";return c&&(c[u]!=null||c[f]!=null||c[d]!=null)?{mainType:a,index:c[u],id:c[f],name:c[d]}:null}function l(c){return n.filter?Hi(c,n.filter):c}},e.prototype.eachComponent=function(n,r,a){var i=this._componentsMap;if($n(n)){var o=r,s=n;i.each(function(f,d){for(var h=0;f&&h<f.length;h++){var p=f[h];p&&s.call(o,d,p,p.componentIndex)}})}else for(var l=Sn(n)?i.get(n):kn(n)?this.findComponents(n):null,c=0;l&&c<l.length;c++){var u=l[c];u&&r.call(a,u,u.componentIndex)}},e.prototype.getSeriesByName=function(n){var r=Mh(n,null);return Hi(this._componentsMap.get("series"),function(a){return!!a&&r!=null&&a.name===r})},e.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},e.prototype.getSeriesByType=function(n){return Hi(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},e.prototype.getSeries=function(){return Hi(this._componentsMap.get("series"),function(n){return!!n})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(n,r){x5(this),Ge(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];n.call(r,i,a)},this)},e.prototype.eachRawSeries=function(n,r){Ge(this._componentsMap.get("series"),function(a){a&&n.call(r,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(n,r,a){x5(this),Ge(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===n&&r.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(n,r,a){return Ge(this.getSeriesByType(n),r,a)},e.prototype.isSeriesFiltered=function(n){return x5(this),this._seriesIndicesMap.get(n.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(n,r){x5(this);var a=[];Ge(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=ir(a)},e.prototype.restoreData=function(n){Y9(this);var r=this._componentsMap,a=[];r.each(function(i,o){ua.hasClass(o)&&a.push(o)}),ua.topologicalTravel(a,ua.getAllClassMainTypes(),function(i){Ge(r.get(i),function(o){o&&(i!=="series"||!lat(o,n))&&o.restoreData()})})},e.internalField=function(){Y9=function(n){var r=n._seriesIndices=[];Ge(n._componentsMap.get("series"),function(a){a&&r.push(a.componentIndex)}),n._seriesIndicesMap=ir(r)},x5=function(n){},b2e=function(n,r){n.option={},n.option[x2e]=sat,n._componentsMap=ir({series:[]}),n._componentsCount=ir();var a=r.aria;kn(a)&&a.enabled==null&&(a.enabled=!0),cat(r,n._theme.option),ia(r,Jrt,!1),n._mergeOption(r,null)}}(),e}(Ji);function lat(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,a=e.seriesName;return n!=null&&t.componentIndex!==n||r!=null&&t.id!==r||a!=null&&t.name!==a}}function cat(t,e){var n=t.color&&!t.colorLayer;Ge(e,function(r,a){a==="colorLayer"&&n||a==="color"&&t.color||ua.hasClass(a)||(typeof r=="object"?t[a]=t[a]?ia(t[a],r,!1):Mr(r):t[a]==null&&(t[a]=r))})}function S2e(t,e,n){if(dn(e)){var r=ir();return Ge(e,function(i){if(i!=null){var o=Mh(i,null);o!=null&&r.set(i,!0)}}),Hi(n,function(i){return i&&r.get(i[t])})}else{var a=Mh(e,null);return Hi(n,function(i){return i&&a!=null&&i[t]===a})}}function M2e(t,e){return e.hasOwnProperty("subType")?Hi(t,function(n){return n&&n.subType===e.subType}):t}function _2e(t){var e=ir();return t&&Ge(Ds(t.replaceMerge),function(n){e.set(n,!0)}),{replaceMergeMainTypeMap:e}}Kf(uee,cee);var uat=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],x8e=function(){function t(e){Ge(uat,function(n){this[n]=Ha(e[n],e)},this)}return t}(),fat=/^(min|max)?(.+)$/,dat=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,n,r){e&&(Ge(Ds(e.series),function(o){o&&o.data&&wl(o.data)&&Q$(o.data)}),Ge(Ds(e.dataset),function(o){o&&o.source&&wl(o.source)&&Q$(o.source)})),e=Mr(e);var a=this._optionBackup,i=hat(e,n,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(e){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],Mr(e?n.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var n,r=this._timelineOptions;if(r.length){var a=e.getComponent("timeline");a&&(n=Mr(r[a.getCurrentIndex()]))}return n},t.prototype.getMediaOption=function(e){var n=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,c=a.length;l<c;l++)pat(a[l].query,n,r)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!gat(o,this._currentMediaIndices)&&(s=nn(o,function(u){return Mr(u===-1?i.option:a[u].option)})),this._currentMediaIndices=o,s},t}();function hat(t,e,n){var r=[],a,i,o=t.baseOption,s=t.timeline,l=t.options,c=t.media,u=!!t.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||u)&&(t.options=t.media=null),i=t),u&&dn(c)&&Ge(c,function(h){h&&h.option&&(h.query?r.push(h):a||(a=h))}),d(i),Ge(l,function(h){return d(h)}),Ge(r,function(h){return d(h.option)});function d(h){Ge(e,function(p){p(h,n)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:r}}function pat(t,e,n){var r={width:e,height:n,aspectratio:e/n},a=!0;return Ge(t,function(i,o){var s=o.match(fat);if(!(!s||!s[1]||!s[2])){var l=s[1],c=s[2].toLowerCase();vat(r[c],i,l)||(a=!1)}}),a}function vat(t,e,n){return n==="min"?t>=e:n==="max"?t<=e:t===e}function gat(t,e){return t.join(",")===e.join(",")}var uf=Ge,Qw=kn,w2e=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function $K(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=w2e.length;n<r;n++){var a=w2e[n],i=e.normal,o=e.emphasis;i&&i[a]&&(t[a]=t[a]||{},t[a].normal?ia(t[a].normal,i[a]):t[a].normal=i[a],i[a]=null),o&&o[a]&&(t[a]=t[a]||{},t[a].emphasis?ia(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function is(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,a=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,Or(t[e],r)):t[e]=r),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function f_(t){is(t,"itemStyle"),is(t,"lineStyle"),is(t,"areaStyle"),is(t,"label"),is(t,"labelLine"),is(t,"upperLabel"),is(t,"edgeLabel")}function hi(t,e){var n=Qw(t)&&t[e],r=Qw(n)&&n.textStyle;if(r)for(var a=0,i=wme.length;a<i;a++){var o=wme[a];r.hasOwnProperty(o)&&(n[o]=r[o])}}function nu(t){t&&(f_(t),hi(t,"label"),t.emphasis&&hi(t.emphasis,"label"))}function mat(t){if(Qw(t)){$K(t),f_(t),hi(t,"label"),hi(t,"upperLabel"),hi(t,"edgeLabel"),t.emphasis&&(hi(t.emphasis,"label"),hi(t.emphasis,"upperLabel"),hi(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&($K(e),nu(e));var n=t.markLine;n&&($K(n),nu(n));var r=t.markArea;r&&nu(r);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var i=t.links||t.edges;if(i&&!wl(i))for(var o=0;o<i.length;o++)nu(i[o]);Ge(t.categories,function(c){f_(c)})}if(a&&!wl(a))for(var o=0;o<a.length;o++)nu(a[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)nu(s[o]);if(n=t.markLine,n&&n.data)for(var l=n.data,o=0;o<l.length;o++)dn(l[o])?(nu(l[o][0]),nu(l[o][1])):nu(l[o]);t.type==="gauge"?(hi(t,"axisLabel"),hi(t,"title"),hi(t,"detail")):t.type==="treemap"?(is(t.breadcrumb,"itemStyle"),Ge(t.levels,function(c){f_(c)})):t.type==="tree"&&f_(t.leaves)}}function Yp(t){return dn(t)?t:t?[t]:[]}function L2e(t){return(dn(t)?t[0]:t)||{}}function yat(t,e){uf(Yp(t.series),function(r){Qw(r)&&mat(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),uf(n,function(r){uf(Yp(t[r]),function(a){a&&(hi(a,"axisLabel"),hi(a.axisPointer,"label"))})}),uf(Yp(t.parallel),function(r){var a=r&&r.parallelAxisDefault;hi(a,"axisLabel"),hi(a&&a.axisPointer,"label")}),uf(Yp(t.calendar),function(r){is(r,"itemStyle"),hi(r,"dayLabel"),hi(r,"monthLabel"),hi(r,"yearLabel")}),uf(Yp(t.radar),function(r){hi(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),uf(Yp(t.geo),function(r){Qw(r)&&(nu(r),uf(Yp(r.regions),function(a){nu(a)}))}),uf(Yp(t.timeline),function(r){nu(r),is(r,"label"),is(r,"itemStyle"),is(r,"controlStyle",!0);var a=r.data;dn(a)&&Ge(a,function(i){kn(i)&&(is(i,"label"),is(i,"itemStyle"))})}),uf(Yp(t.toolbox),function(r){is(r,"iconStyle"),uf(r.feature,function(a){is(a,"iconStyle")})}),hi(L2e(t.axisPointer),"label"),hi(L2e(t.tooltip).axisPointer,"label")}function Aat(t,e){for(var n=e.split(","),r=t,a=0;a<n.length&&(r=r&&r[n[a]],r!=null);a++);return r}function Rat(t,e,n,r){for(var a=e.split(","),i=t,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=n)}function T2e(t){t&&Ge(bat,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var bat=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],xat=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],zK=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function S5(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<zK.length;n++){var r=zK[n][1],a=zK[n][0];e[r]!=null&&(e[a]=e[r])}}function O2e(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function P2e(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Sat(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function S8e(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&S8e(t[n].children,e)}function M8e(t,e){yat(t,e),t.series=Ds(t.series),Ge(t.series,function(n){if(kn(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),O2e(n.label);var a=n.data;if(a&&!wl(a))for(var i=0;i<a.length;i++)O2e(a[i]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var o=Aat(n,"pointer.color");o!=null&&Rat(n,"itemStyle.color",o)}else if(r==="bar"){S5(n),S5(n.backgroundStyle),S5(n.emphasis);var a=n.data;if(a&&!wl(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(S5(a[i]),S5(a[i]&&a[i].emphasis))}else if(r==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s)),P2e(n),S8e(n.data,P2e)}else r==="graph"||r==="sankey"?Sat(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&Or(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),T2e(n)}}),t.dataRange&&(t.visualMap=t.dataRange),Ge(xat,function(n){var r=t[n];r&&(dn(r)||(r=[r]),Ge(r,function(a){T2e(a)}))})}function Mat(t){var e=ir();t.eachSeries(function(n){var r=n.get("stack");if(r){var a=e.get(r)||e.set(r,[]),i=n.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:n};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),e.each(function(n){if(n.length!==0){var r=n[0].seriesModel,a=r.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&n.reverse(),Ge(n,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?n[o-1].seriesModel:null)}),_at(n)}})}function _at(t){Ge(t,function(e,n){var r=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(c,u,f){var d=o.get(e.stackedDimension,f);if(isNaN(d))return a;var h,p;s?p=o.getRawIndex(f):h=o.get(e.stackedByDimension,f);for(var v=NaN,g=n-1;g>=0;g--){var y=t[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&d>=0&&m>0||l==="samesign"&&d<=0&&m<0){d=Pet(d,m),v=m;break}}}return r[0]=d,r[1]=v,r})})}var MV=function(){function t(e){this.data=e.data||(e.sourceFormat===$f?{}:[]),this.sourceFormat=e.sourceFormat||y8e,this.seriesLayoutBy=e.seriesLayoutBy||_h,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var n=this.dimensionsDefine=e.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var a=n[r];a.type==null&&R8e(this,r)===wo.Must&&(a.type="ordinal")}}return t}();function fee(t){return t instanceof MV}function kz(t,e,n){n=n||w8e(t);var r=e.seriesLayoutBy,a=Lat(t,n,r,e.sourceHeader,e.dimensions),i=new MV({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Mr(e)});return i}function _8e(t){return new MV({data:t,sourceFormat:wl(t)?X1:Sc})}function wat(t){return new MV({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Mr(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function w8e(t){var e=y8e;if(wl(t))e=X1;else if(dn(t)){t.length===0&&(e=ps);for(var n=0,r=t.length;n<r;n++){var a=t[n];if(a!=null){if(dn(a)||wl(a)){e=ps;break}else if(kn(a)){e=Ou;break}}}}else if(kn(t)){for(var i in t)if(bh(t,i)&&_l(t[i])){e=$f;break}}return e}function Lat(t,e,n,r,a){var i,o;if(!t)return{dimensionsDefine:C2e(a),startIndex:o,dimensionsDetectedCount:i};if(e===ps){var s=t;r==="auto"||r==null?N2e(function(c){c!=null&&c!=="-"&&(Sn(c)?o==null&&(o=1):o=0)},n,s,10):o=oa(r)?r:r?1:0,!a&&o===1&&(a=[],N2e(function(c,u){a[u]=c!=null?c+"":""},n,s,1/0)),i=a?a.length:n===wy?s.length:s[0]?s[0].length:null}else if(e===Ou)a||(a=Tat(t));else if(e===$f)a||(a=[],Ge(t,function(c,u){a.push(u)}));else if(e===Sc){var l=k8(t[0]);i=dn(l)&&l.length||1}return{startIndex:o,dimensionsDefine:C2e(a),dimensionsDetectedCount:i}}function Tat(t){for(var e=0,n;e<t.length&&!(n=t[e++]););if(n)return kr(n)}function C2e(t){if(t){var e=ir();return nn(t,function(n,r){n=kn(n)?n:{name:n};var a={name:n.name,displayName:n.displayName,type:n.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function N2e(t,e,n,r){if(e===wy)for(var a=0;a<n.length&&a<r;a++)t(n[a]?n[a][0]:null,a);else for(var i=n[0]||[],a=0;a<i.length&&a<r;a++)t(i[a],a)}function L8e(t){var e=t.sourceFormat;return e===Ou||e===$f}var l2,c2,u2,f2,I2e,k2e,T8e=function(){function t(e,n){var r=fee(e)?e:_8e(e);this._source=r;var a=this._data=r.data,i=r.sourceFormat;r.seriesLayoutBy,i===X1&&(this._offset=0,this._dimSize=n,this._data=a),k2e(this,a,r)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,n){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;k2e=function(o,s,l){var c=l.sourceFormat,u=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=I2e[dee(c,u)];if(Zt(o,h),c===X1)o.getItem=n,o.count=a,o.fillStorage=r;else{var p=O8e(c,u);o.getItem=Ha(p,null,s,f,d);var v=P8e(c,u);o.count=Ha(v,null,s,f,d)}};var n=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,c=this._dimSize,u=c*o,f=0;f<c;f++)s[f]=l[u+f];return s},r=function(o,s,l,c){for(var u=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=c[d],p=h[0]==null?1/0:h[0],v=h[1]==null?-1/0:h[1],g=s-o,y=l[d],m=0;m<g;m++){var R=u[m*f+d];y[o+m]=R,R<p&&(p=R),R>v&&(v=R)}h[0]=p,h[1]=v}},a=function(){return this._data?this._data.length/this._dimSize:0};I2e=(e={},e[ps+"_"+_h]={pure:!0,appendData:i},e[ps+"_"+wy]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ou]={pure:!0,appendData:i},e[$f]={pure:!0,appendData:function(o){var s=this._data;Ge(o,function(l,c){for(var u=s[c]||(s[c]=[]),f=0;f<(l||[]).length;f++)u.push(l[f])})}},e[Sc]={appendData:i},e[X1]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),t}(),B9=function(t){dn(t)||lwe("series.data or dataset.source must be an array.")};l2={},l2[ps+"_"+_h]=B9,l2[ps+"_"+wy]=B9,l2[Ou]=B9,l2[$f]=function(t,e){for(var n=0;n<e.length;n++){var r=e[n].name;r==null&&lwe("dimension name must not be null/undefined.")}},l2[Sc]=B9;var E2e=function(t,e,n,r){return t[r]},Oat=(c2={},c2[ps+"_"+_h]=function(t,e,n,r){return t[r+e]},c2[ps+"_"+wy]=function(t,e,n,r,a){r+=e;for(var i=a||[],o=t,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[r]:null}return i},c2[Ou]=E2e,c2[$f]=function(t,e,n,r,a){for(var i=a||[],o=0;o<n.length;o++){var s=n[o].name,l=s!=null?t[s]:null;i[o]=l?l[r]:null}return i},c2[Sc]=E2e,c2);function O8e(t,e){var n=Oat[dee(t,e)];return n}var F2e=function(t,e,n){return t.length},Pat=(u2={},u2[ps+"_"+_h]=function(t,e,n){return Math.max(0,t.length-e)},u2[ps+"_"+wy]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},u2[Ou]=F2e,u2[$f]=function(t,e,n){var r=n[0].name,a=r!=null?t[r]:null;return a?a.length:0},u2[Sc]=F2e,u2);function P8e(t,e){var n=Pat[dee(t,e)];return n}var JK=function(t,e,n){return t[e]},Cat=(f2={},f2[ps]=JK,f2[Ou]=function(t,e,n){return t[n]},f2[$f]=JK,f2[Sc]=function(t,e,n){var r=k8(t);return r instanceof Array?r[e]:r},f2[X1]=JK,f2);function C8e(t){var e=Cat[t];return e}function dee(t,e){return t===ps?t+"_"+e:t}function AS(t,e,n){if(t){var r=t.getRawDataItem(e);if(r!=null){var a=t.getStore(),i=a.getSource().sourceFormat;if(n!=null){var o=t.getDimensionIndex(n),s=a.getDimensionProperty(o);return C8e(i)(r,o,s)}else{var l=r;return i===Sc&&(l=k8(r)),l}}}}var Nat=/\{@(.+?)\}/g,Iat=function(){function t(){}return t.prototype.getDataParams=function(e,n){var r=this.getData(n),a=this.getRawValue(e,n),i=r.getRawIndex(e),o=r.getName(e),s=r.getRawDataItem(e),l=r.getItemVisual(e,"style"),c=l&&l[r.getItemVisual(e,"drawType")||"fill"],u=l&&l.stroke,f=this.mainType,d=f==="series",h=r.userOutput&&r.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:i,data:s,dataType:n,value:a,color:c,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,n,r,a,i,o){n=n||"normal";var s=this.getData(r),l=this.getDataParams(e,r);if(o&&(l.value=o.interpolatedValue),a!=null&&dn(l.value)&&(l.value=l.value[a]),!i){var c=s.getItemModel(e);i=c.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if($n(i))return l.status=n,l.dimensionIndex=a,i(l);if(Sn(i)){var u=Xrt(i,l);return u.replace(Nat,function(f,d){var h=d.length,p=d;p.charAt(0)==="["&&p.charAt(h-1)==="]"&&(p=+p.slice(1,h-1));var v=AS(s,e,p);if(o&&dn(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(v=o.interpolatedValue[g])}return v!=null?v+"":""})}},t.prototype.getRawValue=function(e,n){return AS(this.getData(n),e)},t.prototype.formatTooltip=function(e,n,r){},t}();function nw(t){return new kat(t)}var kat=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=u(this._modBy),s=this._modDataCount||0,l=u(e&&e.modBy),c=e&&e.modDataCount||0;(o!==l||s!==c)&&(i="reset");function u(m){return!(m>=1)&&(m=1),m}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=c;var d=e&&e.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||h<p)){var v=this._progress;if(dn(v))for(var g=0;g<v.length;g++)this._doProgress(v[g],h,p,l,c);else this._doProgress(v,h,p,l,c)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,n,r,a,i){X2e.reset(n,r,a,i),this._callingProgress=e,this._callingProgress({start:n,end:r,count:r-n,next:X2e.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!e&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),dn(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),r},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),X2e=function(){var t,e,n,r,a,i={reset:function(l,c,u,f){e=l,t=c,n=u,r=f,a=Math.ceil(r/n),i.next=n>1&&r>0?s:o}};return i;function o(){return e<t?e++:null}function s(){var l=e%a*n+Math.ceil(e/a),c=e>=t?null:l<r?l:e;return e++,c}}();function nF(t,e){var n=e&&e.type;return n==="ordinal"?t:(n==="time"&&!oa(t)&&t!=null&&t!=="-"&&(t=+I8(t)),t==null||t===""?NaN:Number(t))}ir({number:function(t){return parseFloat(t)},time:function(t){return+I8(t)},trim:function(t){return Sn(t)?R1(t):t}});var Eat=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,n){},t.prototype.retrieveValueFromItem=function(e,n){},t.prototype.convertValue=function(e,n){return nF(e,n)},t}();function Fat(t,e){var n=new Eat,r=t.data,a=n.sourceFormat=t.sourceFormat,i=t.startIndex,o="";t.seriesLayoutBy!==_h&&sc(o);var s=[],l={},c=t.dimensionsDefine;if(c)Ge(c,function(v,g){var y=v.name,m={index:g,name:y,displayName:v.displayName};if(s.push(m),y!=null){var R="";bh(l,y)&&sc(R),l[y]=m}});else for(var u=0;u<t.dimensionsDetectedCount;u++)s.push({index:u});var f=O8e(a,_h);e.__isBuiltIn&&(n.getRawDataItem=function(v){return f(r,i,s,v)},n.getRawData=Ha(Xat,null,t)),n.cloneRawData=Ha(Dat,null,t);var d=P8e(a,_h);n.count=Ha(d,null,r,i,s);var h=C8e(a);n.retrieveValue=function(v,g){var y=f(r,i,s,v);return p(y,g)};var p=n.retrieveValueFromItem=function(v,g){if(v!=null){var y=s[g];if(y)return h(v,g,y.name)}};return n.getDimensionInfo=Ha(Vat,null,s,l),n.cloneAllDimensionInfo=Ha(Uat,null,s),n}function Xat(t){var e=t.sourceFormat;if(!hee(e)){var n="";sc(n)}return t.data}function Dat(t){var e=t.sourceFormat,n=t.data;if(!hee(e)){var r="";sc(r)}if(e===ps){for(var a=[],i=0,o=n.length;i<o;i++)a.push(n[i].slice());return a}else if(e===Ou){for(var a=[],i=0,o=n.length;i<o;i++)a.push(Zt({},n[i]));return a}}function Vat(t,e,n){if(n!=null){if(oa(n)||!isNaN(n)&&!bh(e,n))return t[n];if(bh(e,n))return e[n]}}function Uat(t){return Mr(t)}var N8e=ir();function Wat(t){t=Mr(t);var e=t.type,n="";e||sc(n);var r=e.split(":");r.length!==2&&sc(n);var a=!1;r[0]==="echarts"&&(e=r[1],a=!0),t.__isBuiltIn=a,N8e.set(e,t)}function Yat(t,e,n){var r=Ds(t),a=r.length,i="";a||sc(i);for(var o=0,s=a;o<s;o++){var l=r[o];e=Bat(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function Bat(t,e,n,r){var a="";e.length||sc(a),kn(t)||sc(a);var i=t.type,o=N8e.get(i);o||sc(a);var s=nn(e,function(c){return Fat(c,o)}),l=Ds(o.transform({upstream:s[0],upstreamList:s,config:Mr(t.config)}));return nn(l,function(c,u){var f="";kn(c)||sc(f),c.data||sc(f);var d=w8e(c.data);hee(d)||sc(f);var h,p=e[0];if(p&&u===0&&!c.dimensions){var v=p.startIndex;v&&(c.data=p.data.slice(0,v).concat(c.data)),h={seriesLayoutBy:_h,sourceHeader:v,dimensions:p.metaRawOption.dimensions}}else h={seriesLayoutBy:_h,sourceHeader:0,dimensions:c.dimensions};return kz(c.data,h,null)})}function hee(t){return t===ps||t===Ou}var _V="undefined",Zat=typeof Uint32Array===_V?Array:Uint32Array,Qat=typeof Uint16Array===_V?Array:Uint16Array,I8e=typeof Int32Array===_V?Array:Int32Array,D2e=typeof Float64Array===_V?Array:Float64Array,k8e={float:D2e,int:I8e,ordinal:Array,number:Array,time:D2e},jK;function Ib(t){return t>65535?Zat:Qat}function kb(){return[1/0,-1/0]}function Kat(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function V2e(t,e,n,r,a){var i=k8e[n||"float"];if(a){var o=t[e],s=o&&o.length;if(s!==r){for(var l=new i(r),c=0;c<s;c++)l[c]=o[c];t[e]=l}}else t[e]=new i(r)}var Ez=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ir()}return t.prototype.initData=function(e,n,r){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=jK[a.sourceFormat];this._dimValueGetter=r||i,this._rawExtent=[],L8e(a),this._dimensions=nn(n,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,n){var r=this._calcDimNameToIdx,a=this._dimensions,i=r.get(e);if(i!=null){if(a[i].type===n)return i}else i=a.length;return a[i]={type:n},r.set(e,i),this._chunks[i]=new k8e[n||"float"](this._rawCount),this._rawExtent[i]=kb(),i},t.prototype.collectOrdinalMeta=function(e,n){var r=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=r.length;o===0&&(i[e]=kb());for(var l=i[e],c=o;c<s;c++){var u=r[c]=n.parseAndCollect(r[c]);isNaN(u)||(l[0]=Math.min(u,l[0]),l[1]=Math.max(u,l[1]))}a.ordinalMeta=n,a.ordinalOffset=s,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var n=this._dimensions[e],r=n.ordinalMeta;return r},t.prototype.getDimensionProperty=function(e){var n=this._dimensions[e];return n&&n.property},t.prototype.appendData=function(e){var n=this._provider,r=this.count();n.appendData(e);var a=n.count();return n.persistent||(a+=r),r<a&&this._initDataFromProvider(r,a,!0),[r,a]},t.prototype.appendValues=function(e,n){for(var r=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,n||0),c=0;c<i;c++){var u=a[c];V2e(r,c,u.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,p=0;p<i;p++){var u=a[p],v=jK.arrayRows.call(this,e[h]||f,u.property,h,p);r[p][d]=v;var g=o[p];v<g[0]&&(g[0]=v),v>g[1]&&(g[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,n,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,c=nn(o,function(m){return m.property}),u=0;u<s;u++){var f=o[u];l[u]||(l[u]=kb()),V2e(i,u,f.type,n,r)}if(a.fillStorage)a.fillStorage(e,n,i,l);else for(var d=[],h=e;h<n;h++){d=a.getItem(h,d);for(var p=0;p<s;p++){var v=i[p],g=this._dimValueGetter(d,c[p],h,p);v[h]=g;var y=l[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=n,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[e];return r?r[this.getRawIndex(n)]:NaN},t.prototype.getValues=function(e,n){var r=[],a=[];if(n==null){n=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)r.push(this.get(a[i],n));return r},t.prototype.getByRawIndex=function(e,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[e];return r?r[n]:NaN},t.prototype.getSum=function(e){var n=this._chunks[e],r=0;if(n)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(r+=o)}return r},t.prototype.getMedian=function(e){var n=[];this.each([e],function(i){isNaN(i)||n.push(i)});var r=n.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?r[(a-1)/2]:(r[a/2]+r[a/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var n=this._indices,r=n[e];if(r!=null&&r<this._count&&r===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(n[o]<e)a=o+1;else if(n[o]>e)i=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,n=this._indices;if(n){var r=n.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i<a;i++)e[i]=n[i]}else e=new r(n.buffer,0,a)}else{var r=Ib(this._rawCount);e=new r(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},t.prototype.filter=function(e,n){if(!this._count)return this;for(var r=this.clone(),a=r.count(),i=Ib(r._rawCount),o=new i(a),s=[],l=e.length,c=0,u=e[0],f=r._chunks,d=0;d<a;d++){var h=void 0,p=r.getRawIndex(d);if(l===0)h=n(d);else if(l===1){var v=f[u][p];h=n(v,d)}else{for(var g=0;g<l;g++)s[g]=f[e[g]][p];s[g]=d,h=n.apply(null,s)}h&&(o[c++]=p)}return c<a&&(r._indices=o),r._count=c,r._extent=[],r._updateGetRawIdx(),r},t.prototype.selectRange=function(e){var n=this.clone(),r=n._count;if(!r)return this;var a=kr(e),i=a.length;if(!i)return this;var o=n.count(),s=Ib(n._rawCount),l=new s(o),c=0,u=a[0],f=e[u][0],d=e[u][1],h=n._chunks,p=!1;if(!n._indices){var v=0;if(i===1){for(var g=h[a[0]],y=0;y<r;y++){var m=g[y];(m>=f&&m<=d||isNaN(m))&&(l[c++]=v),v++}p=!0}else if(i===2){for(var g=h[a[0]],R=h[a[1]],A=e[a[1]][0],x=e[a[1]][1],y=0;y<r;y++){var m=g[y],M=R[y];(m>=f&&m<=d||isNaN(m))&&(M>=A&&M<=x||isNaN(M))&&(l[c++]=v),v++}p=!0}}if(!p)if(i===1)for(var y=0;y<o;y++){var S=n.getRawIndex(y),m=h[a[0]][S];(m>=f&&m<=d||isNaN(m))&&(l[c++]=S)}else for(var y=0;y<o;y++){for(var w=!0,S=n.getRawIndex(y),_=0;_<i;_++){var T=a[_],m=h[T][S];(m<e[T][0]||m>e[T][1])&&(w=!1)}w&&(l[c++]=n.getRawIndex(y))}return c<o&&(n._indices=l),n._count=c,n._extent=[],n._updateGetRawIdx(),n},t.prototype.map=function(e,n){var r=this.clone(e);return this._updateDims(r,e,n),r},t.prototype.modify=function(e,n){this._updateDims(this,e,n)},t.prototype._updateDims=function(e,n,r){for(var a=e._chunks,i=[],o=n.length,s=e.count(),l=[],c=e._rawExtent,u=0;u<n.length;u++)c[n[u]]=kb();for(var f=0;f<s;f++){for(var d=e.getRawIndex(f),h=0;h<o;h++)l[h]=a[n[h]][d];l[o]=f;var p=r&&r.apply(null,l);if(p!=null){typeof p!="object"&&(i[0]=p,p=i);for(var u=0;u<p.length;u++){var v=n[u],g=p[u],y=c[v],m=a[v];m&&(m[d]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(e,n){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/n),c=this.getRawIndex(0),u,f,d,h=new(Ib(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=c;for(var p=1;p<o-1;p+=l){for(var v=Math.min(p+l,o-1),g=Math.min(p+l*2,o),y=(g+v)/2,m=0,R=v;R<g;R++){var A=this.getRawIndex(R),x=i[A];isNaN(x)||(m+=x)}m/=g-v;var M=p,S=Math.min(p+l,o),w=p-1,_=i[c];u=-1,d=M;for(var T=-1,O=0,R=M;R<S;R++){var A=this.getRawIndex(R),x=i[A];if(isNaN(x)){O++,T<0&&(T=A);continue}f=Math.abs((w-y)*(x-_)-(w-R)*(m-_)),f>u&&(u=f,d=A)}O>0&&O<S-M&&(h[s++]=Math.min(T,d),d=Math.max(T,d)),h[s++]=d,c=d}return h[s++]=this.getRawIndex(o-1),r._count=s,r._indices=h,r.getRawIndex=this._getRawIdx,r},t.prototype.minmaxDownSample=function(e,n){for(var r=this.clone([e],!0),a=r._chunks,i=Math.floor(1/n),o=a[e],s=this.count(),l=new(Ib(this._rawCount))(Math.ceil(s/i)*2),c=0,u=0;u<s;u+=i){var f=u,d=o[this.getRawIndex(f)],h=u,p=o[this.getRawIndex(h)],v=i;u+i>s&&(v=s-u);for(var g=0;g<v;g++){var y=this.getRawIndex(u+g),m=o[y];m<d&&(d=m,f=u+g),m>p&&(p=m,h=u+g)}var R=this.getRawIndex(f),A=this.getRawIndex(h);f<h?(l[c++]=R,l[c++]=A):(l[c++]=A,l[c++]=R)}return r._count=c,r._indices=l,r._updateGetRawIdx(),r},t.prototype.downSample=function(e,n,r,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/n),c=o[e],u=this.count(),f=i._rawExtent[e]=kb(),d=new(Ib(this._rawCount))(Math.ceil(u/l)),h=0,p=0;p<u;p+=l){l>u-p&&(l=u-p,s.length=l);for(var v=0;v<l;v++){var g=this.getRawIndex(p+v);s[v]=c[g]}var y=r(s),m=this.getRawIndex(Math.min(p+a(s,y)||0,u-1));c[m]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),d[h++]=m}return i._count=h,i._indices=d,i._updateGetRawIdx(),i},t.prototype.each=function(e,n){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(r){case 0:n(i);break;case 1:n(a[e[0]][s],i);break;case 2:n(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,c=[];l<r;l++)c[l]=a[e[l]][s];c[l]=i,n.apply(null,c)}}},t.prototype.getDataExtent=function(e){var n=this._chunks[e],r=kb();if(!n)return r;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=r;for(var s=o[0],l=o[1],c=0;c<a;c++){var u=this.getRawIndex(c),f=n[u];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var n=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],a=this._chunks,i=0;i<a.length;i++)r.push(a[i][n]);return r},t.prototype.clone=function(e,n){var r=new t,a=this._chunks,i=e&&Z1(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)r._chunks[o]=i[o]?Kat(a[o]):a[o];else r._chunks=a;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Mr(this._extent),e._rawExtent=Mr(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,n=void 0;if(e===Array){var r=this._indices.length;n=new e(r);for(var a=0;a<r;a++)n[a]=this._indices[a]}else n=new e(this._indices);return n}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(n,r,a,i){return nF(n[i],this._dimensions[i])}jK={arrayRows:e,objectRows:function(n,r,a,i){return nF(n[r],this._dimensions[i])},keyedColumns:e,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return nF(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}}(),t}(),Hat=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,n){this._sourceList=e,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,a,i;if(Z9(e)){var o=e,s=void 0,l=void 0,c=void 0;if(r){var u=n[0];u.prepareSource(),c=u.getSource(),s=c.data,l=c.sourceFormat,i=[u._getVersionSign()]}else s=o.get("data",!0),l=wl(s)?X1:Sc,i=[];var f=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},h=gn(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=gn(f.sourceHeader,d.sourceHeader),v=gn(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||v;a=g?[kz(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:v},l)]:[]}else{var y=e;if(r){var m=this._applyTransform(n);a=m.sourceList,i=m.upstreamSignList}else{var R=y.get("source",!0);a=[kz(R,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var n=this._sourceHost,r=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&U2e(i)}var o,s=[],l=[];return Ge(e,function(c){c.prepareSource();var u=c.getSource(a||0),f="";a!=null&&!u&&U2e(f),s.push(u),l.push(c._getVersionSign())}),r?o=Yat(r,s,{datasetIndex:n.componentIndex}):a!=null&&(o=[wat(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),n=0;n<e.length;n++){var r=e[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var n=this._sourceList[e];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(e)}return n},t.prototype.getSharedDataStore=function(e){var n=e.makeStoreSchema();return this._innerGetDataStore(n.dimensions,e.source,n.hash)},t.prototype._innerGetDataStore=function(e,n,r){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[r];if(!s){var l=this._getUpstreamSourceManagers()[0];Z9(this._sourceHost)&&l?s=l._innerGetDataStore(e,n,r):(s=new Ez,s.initData(new T8e(n,e.length),e)),o[r]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Z9(e)){var n=lee(e);return n?[n.getSourceManager()]:[]}else return nn(tat(e),function(r){return r.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,n,r,a;if(Z9(e))n=e.get("seriesLayoutBy",!0),r=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;n=i.get("seriesLayoutBy",!0),r=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:a}},t}();function Z9(t){return t.mainType==="series"}function U2e(t){throw new Error(t)}function Kw(t,e){return e.type=t,e}function E8e(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return Nz(r)}function Gat(t){var e=t.series,n=t.dataIndex,r=t.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(n),l=dn(s),c=E8e(e,n),u,f,d,h;if(o>1||l&&!o){var p=$at(s,e,n,i,c);u=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,h=p.inlineValues[0]}else if(o){var v=a.getDimensionInfo(i[0]);h=u=AS(a,n,i[0]),f=v.type}else h=u=l?s[0]:s;var g=Eq(e),y=g&&e.name||"",m=a.getName(n),R=r?y:m;return Kw("section",{header:y,noHeader:r||!g,sortParam:h,blocks:[Kw("nameValue",{markerType:"item",markerColor:c,name:R,noName:!R1(R),value:u,valueType:f,dataIndex:n})].concat(d||[])})}function $at(t,e,n,r,a){var i=e.getData(),o=Z1(t,function(f,d,h){var p=i.getDimensionInfo(h);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],c=[];r.length?Ge(r,function(f){u(AS(i,n,f),f)}):Ge(t,u);function u(f,d){var h=i.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?c.push(Kw("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:c}}var Vv=mi();function Q9(t,e){return t.getName(e)||t.getId(e)}var zat="__universalTransitionEnabled",Rc=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return e.prototype.init=function(n,r,a){this.seriesIndex=this.componentIndex,this.dataTask=nw({count:jat,reset:qat}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=Vv(this).sourceManager=new Hat(this);i.prepareSource();var o=this.getInitialData(n,a);Y2e(o,this),this.dataTask.context.data=o,Vv(this).dataBeforeProcessed=o,W2e(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=Zw(this),i=a?D8(n):{},o=this.subType;ua.hasClass(o)&&(o+="Series"),ia(n,r.getTheme().get(this.subType)),ia(n,this.getDefaultOption()),gz(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&G1(n,i,a)},e.prototype.mergeOption=function(n,r){n=ia(this.option,n,!0),this.fillDataTextStyle(n.data);var a=Zw(this);a&&G1(this.option,n,a);var i=Vv(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);Y2e(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Vv(this).dataBeforeProcessed=o,W2e(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(n){if(n&&!wl(n))for(var r=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&gz(n[a],"label",r)},e.prototype.getInitialData=function(n,r){},e.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},e.prototype.getData=function(n){var r=Fz(this);if(r){var a=r.context.data;return n==null||!a.getLinkedData?a:a.getLinkedData(n)}else return Vv(this).data},e.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},e.prototype.setData=function(n){var r=Fz(this);if(r){var a=r.context;a.outputData=n,r!==this.dataTask&&(a.data=n)}Vv(this).data=n},e.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return ir(n)},e.prototype.getSourceManager=function(){return Vv(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Vv(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},e.prototype.indicesOfNearest=function(n,r,a,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(n);if(!s||!l)return[];var c=l.dataToCoord(a);i==null&&(i=1/0);var u=[],f=1/0,d=-1,h=0;return o.each(r,function(p,v){var g=l.dataToCoord(p),y=c-g,m=Math.abs(y);m<=i&&((m<f||m===f&&y>=0&&d<0)&&(f=m,d=y,h=0),y===d&&(u[h++]=v))}),u.length=h,u},e.prototype.formatTooltip=function(n,r,a){return Gat({series:this,dataIndex:n,multipleSeries:r})},e.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(jr.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(n,r,a){var i=this.ecModel,o=cee.prototype.getColorFromPalette.call(this,n,r,a);return o||(o=i.getColorFromPalette(n,r,a)),o},e.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},e.prototype.unselect=function(n,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<n.length;s++){var l=n[s],c=Q9(o,l);a[c]=!1,this._selectedDataIndicesMap[c]=-1}}},e.prototype.toggleSelect=function(n,r){for(var a=[],i=0;i<n.length;i++)a[0]=n[i],this.isSelected(n[i],r)?this.unselect(a,r):this.select(a,r)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=kr(n),a=[],i=0;i<r.length;i++){var o=n[r[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(n,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Q9(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[zat])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},e.prototype._innerSelect=function(n,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){kn(o.selectedMap)||(o.selectedMap={});for(var c=o.selectedMap,u=0;u<l;u++){var f=r[u],d=Q9(n,f);c[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var h=r[l-1],d=Q9(n,h);o.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(i={},i[d]=n.getRawIndex(h),i)}}},e.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(a){var i=n.getRawDataItem(a);i&&i.selected&&r.push(a)}),r.length>0&&this._innerSelect(n,r)}},e.registerClass=function(n){return ua.registerClass(n)},e.protoInitialize=function(){var n=e.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),e}(ua);Kf(Rc,Iat);Kf(Rc,cee);pwe(Rc,ua);function W2e(t){var e=t.name;Eq(t)||(t.name=Jat(t)||e)}function Jat(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return Ge(n,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function jat(t){return t.model.getRawData().count()}function qat(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),eit}function eit(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Y2e(t,e){Ge($je(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,cc(tit,e))})}function tit(t,e){var n=Fz(t);return n&&n.setOutputEnd((e||this).count()),e}function Fz(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(t.uid))}return r}}var x0=function(){function t(){this.group=new ki,this.uid=xV("viewComponent")}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,a){},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,a){},t.prototype.updateLayout=function(e,n,r,a){},t.prototype.updateVisual=function(e,n,r,a){},t.prototype.toggleBlurSeries=function(e,n,r){},t.prototype.eachRendered=function(e){var n=this.group;n&&n.traverse(e)},t}();Fq(x0);uV(x0);function pee(){var t=mi();return function(e){var n=t(e),r=e.pipelineContext,a=!!n.large,i=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var F8e=mi(),nit=pee(),Sl=function(){function t(){this.group=new ki,this.uid=xV("viewChart"),this.renderTask=nw({plan:rit,reset:ait}),this.renderTask.context={view:this}}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,a){},t.prototype.highlight=function(e,n,r,a){var i=e.getData(a&&a.dataType);i&&Z2e(i,a,"emphasis")},t.prototype.downplay=function(e,n,r,a){var i=e.getData(a&&a.dataType);i&&Z2e(i,a,"normal")},t.prototype.remove=function(e,n){this.group.removeAll()},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.updateLayout=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.updateVisual=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.eachRendered=function(e){AV(this.group,e)},t.markUpdateMethod=function(e,n){F8e(e).updateMethod=n},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function B2e(t,e,n){t&&_z(t)&&(e==="emphasis"?CX:NX)(t,n)}function Z2e(t,e,n){var r=pS(t,e),a=e&&e.highlightKey!=null?pnt(e.highlightKey):null;r!=null?Ge(Ds(r),function(i){B2e(t.getItemGraphicEl(i),n,a)}):t.eachItemGraphicEl(function(i){B2e(i,n,a)})}Fq(Sl);uV(Sl);function rit(t){return nit(t.model)}function ait(t){var e=t.model,n=t.ecModel,r=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=a&&F8e(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,n,r,a),iit[l]}var iit={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};function X8e(t,e,n){var r,a=0,i=0,o=null,s,l,c,u;e=e||0;function f(){i=new Date().getTime(),o=null,t.apply(l,c||[])}var d=function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];r=new Date().getTime(),l=this,c=h;var v=u||e,g=u||n;u=null,s=r-(g?a:i)-v,clearTimeout(o),g?o=setTimeout(f,v):s>=0?f():o=setTimeout(f,-s),a=r};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){u=h},d}var Q2e=mi(),K2e={itemStyle:Dw(t8e,!0),lineStyle:Dw(e8e,!0)},oit={lineStyle:"stroke",itemStyle:"fill"};function D8e(t,e){var n=t.visualStyleMapper||K2e[e];return n||(console.warn("Unknown style type '"+e+"'."),K2e.itemStyle)}function V8e(t,e){var n=t.visualDrawType||oit[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var sit={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=t.getModel(r),i=D8e(t,r),o=i(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=V8e(t,r),c=o[l],u=$n(c)?c:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||u||f){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=d,n.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||$n(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||$n(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var v=t.getDataParams(p),g=Zt({},o);g[l]=u(v),h.setItemVisual(p,"style",g)}}}},M5=new Ji,lit={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=D8e(t,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){M5.option=l[r];var c=a(M5),u=o.ensureUniqueItemVisual(s,"style");Zt(u,c),M5.option.decal&&(o.setItemVisual(s,"decal",M5.option.decal),M5.option.decal.dirty=!0),i in c&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},cit={performRawSeries:!0,overallReset:function(t){var e=ir();t.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),Q2e(n).scope=i}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=Q2e(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=V8e(n,s);i.each(function(c){var u=i.getRawIndex(c);a[u]=c}),r.each(function(c){var u=a[c],f=i.getItemVisual(u,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(u,"style"),h=r.getName(c)||c+"",p=r.count();d[l]=n.getColorFromPalette(h,o,p)}})}})}},K9=Math.PI;function uit(t,e){e=e||{},Or(e,{text:"loading",textColor:er.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:er.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new ki,r=new Ii({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var a=new Ac({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Ii({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(i);var o;return e.showSpinner&&(o=new mV({shape:{startAngle:-K9/2,endAngle:-K9/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:K9*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:K9*3/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,c=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),u=t.getHeight()/2;e.showSpinner&&o.setShape({cx:c,cy:u}),i.setShape({x:c-l,y:u-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var U8e=function(){function t(e,n,r,a){this._stageTaskMap=ir(),this.ecInstance=e,this.api=n,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return t.prototype.restoreData=function(e,n){e.restoreData(n),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,n){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!n&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,n){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&n.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var n=this,r=n._pipelineMap=ir();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,n=this.api.getModel(),r=this.api;Ge(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Nh(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,n,r),a.overallReset&&this._createOverallStageTask(a,i,n,r)},this)},t.prototype.prepareView=function(e,n,r,a){var i=e.renderTask,o=i.context;o.model=n,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(n,i)},t.prototype.performDataProcessorTasks=function(e,n){this._performStageTasks(this._dataProcessorHandlers,e,n,{block:!0})},t.prototype.performVisualTasks=function(e,n,r){this._performStageTasks(this._visualHandlers,e,n,r)},t.prototype._performStageTasks=function(e,n,r,a){a=a||{};var i=!1,o=this;Ge(e,function(l,c){if(!(a.visualType&&a.visualType!==l.visualType)){var u=o._stageTaskMap.get(l.uid),f=u.seriesTaskMap,d=u.overallTask;if(d){var h,p=d.agentStubMap;p.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,r);var v=o.getPerformArgs(d,a.block);p.each(function(g){g.perform(v)}),d.perform(v)&&(i=!0)}else f&&f.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&n.isSeriesFiltered(g.context.model),o.updatePayload(g,r),g.perform(m)&&(i=!0)})}});function s(l,c){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(c.__pipeline.id))}this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var n;e.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var n=e.tail;do{if(n.__block){e.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},t.prototype.updatePayload=function(e,n){n!=="remain"&&(e.context.payload=n)},t.prototype._createSeriesStageTask=function(e,n,r,a){var i=this,o=n.seriesTaskMap,s=n.seriesTaskMap=ir(),l=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(u):l?r.eachRawSeriesByType(l,u):c&&c(r,a).each(u);function u(f){var d=f.uid,h=s.set(d,o&&o.get(d)||nw({plan:vit,reset:git,count:yit}));h.context={model:f,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(f,h)}},t.prototype._createOverallStageTask=function(e,n,r,a){var i=this,o=n.overallTask=n.overallTask||nw({reset:fit});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ir(),c=e.seriesType,u=e.getTargetSeries,f=!0,d=!1,h="";Nh(!e.createOnAllSeries,h),c?r.eachRawSeriesByType(c,p):u?u(r,a).each(p):(f=!1,Ge(r.getSeries(),p));function p(v){var g=v.uid,y=l.set(g,s&&s.get(g)||(d=!0,nw({reset:dit,onDirty:pit})));y.context={model:v,overallProgress:f},y.agent=o,y.__block=f,i._pipe(v,y)}d&&o.dirty()},t.prototype._pipe=function(e,n){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},t.wrapStageHandler=function(e,n){return $n(e)&&(e={overallReset:e,seriesType:Ait(e)}),e.uid=xV("stageHandler"),n&&(e.visualType=n),e},t}();function fit(t){t.overallReset(t.ecModel,t.api,t.payload)}function dit(t){return t.overallProgress&&hit}function hit(){this.agent.dirty(),this.getDownstream().dirty()}function pit(){this.agent&&this.agent.dirty()}function vit(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function git(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ds(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?nn(e,function(n,r){return W8e(r)}):mit}var mit=W8e(0);function W8e(t){return function(e,n){var r=n.data,a=n.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(r,i);else a&&a.progress&&a.progress(e,r)}}function yit(t){return t.data.count()}function Ait(t){DX=null;try{t(Hw,Y8e)}catch{}return DX}var Hw={},Y8e={},DX;B8e(Hw,uee);B8e(Y8e,x8e);Hw.eachSeriesByType=Hw.eachRawSeriesByType=function(t){DX=t};Hw.eachComponent=function(t){t.mainType==="series"&&t.subType&&(DX=t.subType)};function B8e(t,e){for(var n in e.prototype)t[n]=mc}var jt=er.darkColor,Rit=jt.background,_5=function(){return{axisLine:{lineStyle:{color:jt.axisLine}},splitLine:{lineStyle:{color:jt.axisSplitLine}},splitArea:{areaStyle:{color:[jt.backgroundTint,jt.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:jt.axisMinorSplitLine}},axisLabel:{color:jt.axisLabel},axisName:{}}},H2e={label:{color:jt.secondary},itemStyle:{borderColor:jt.borderTint},dividerLineStyle:{color:jt.border}},Z8e={darkMode:!0,color:jt.theme,backgroundColor:Rit,axisPointer:{lineStyle:{color:jt.border},crossStyle:{color:jt.borderShade},label:{color:jt.tertiary}},legend:{textStyle:{color:jt.secondary},pageTextStyle:{color:jt.tertiary}},textStyle:{color:jt.secondary},title:{textStyle:{color:jt.primary},subtextStyle:{color:jt.quaternary}},toolbox:{iconStyle:{borderColor:jt.accent50}},tooltip:{backgroundColor:jt.neutral20,defaultBorderColor:jt.border,textStyle:{color:jt.tertiary}},dataZoom:{borderColor:jt.accent10,textStyle:{color:jt.tertiary},brushStyle:{color:jt.backgroundTint},handleStyle:{color:jt.neutral00,borderColor:jt.accent20},moveHandleStyle:{color:jt.accent40},emphasis:{handleStyle:{borderColor:jt.accent50}},dataBackground:{lineStyle:{color:jt.accent30},areaStyle:{color:jt.accent20}},selectedDataBackground:{lineStyle:{color:jt.accent50},areaStyle:{color:jt.accent30}}},visualMap:{textStyle:{color:jt.secondary},handleStyle:{borderColor:jt.neutral30}},timeline:{lineStyle:{color:jt.accent10},label:{color:jt.tertiary},controlStyle:{color:jt.accent30,borderColor:jt.accent30}},calendar:{itemStyle:{color:jt.neutral00,borderColor:jt.neutral20},dayLabel:{color:jt.tertiary},monthLabel:{color:jt.secondary},yearLabel:{color:jt.secondary}},matrix:{x:H2e,y:H2e,backgroundColor:{borderColor:jt.axisLine},body:{itemStyle:{borderColor:jt.borderTint}}},timeAxis:_5(),logAxis:_5(),valueAxis:_5(),categoryAxis:_5(),line:{symbol:"circle"},graph:{color:jt.theme},gauge:{title:{color:jt.secondary},axisLine:{lineStyle:{color:[[1,jt.neutral05]]}},axisLabel:{color:jt.axisLabel},detail:{color:jt.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:jt.background}},radar:function(){var t=_5();return t.axisName={color:jt.axisLabel},t.axisLine.lineStyle.color=jt.neutral20,t}(),treemap:{breadcrumb:{itemStyle:{color:jt.neutral20,textStyle:{color:jt.secondary}},emphasis:{itemStyle:{color:jt.neutral30}}}},sunburst:{itemStyle:{borderColor:jt.background}},map:{itemStyle:{borderColor:jt.border,areaColor:jt.neutral10},label:{color:jt.tertiary},emphasis:{label:{color:jt.primary},itemStyle:{areaColor:jt.highlight}},select:{label:{color:jt.primary},itemStyle:{areaColor:jt.highlight}}},geo:{itemStyle:{borderColor:jt.border,areaColor:jt.neutral10},emphasis:{label:{color:jt.primary},itemStyle:{areaColor:jt.highlight}},select:{label:{color:jt.primary},itemStyle:{color:jt.highlight}}}};Z8e.categoryAxis.splitLine.show=!1;var bit=function(){function t(){}return t.prototype.normalizeQuery=function(e){var n={},r={},a={};if(Sn(e)){var i=mh(e);n.mainType=i.main||null,n.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};Ge(e,function(l,c){for(var u=!1,f=0;f<o.length;f++){var d=o[f],h=c.lastIndexOf(d);if(h>0&&h===c.length-d.length){var p=c.slice(0,h);p!=="data"&&(n.mainType=p,n[d.toLowerCase()]=l,u=!0)}}s.hasOwnProperty(c)&&(r[c]=l,u=!0),u||(a[c]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},t.prototype.filter=function(e,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=n.cptQuery,c=n.dataQuery;return u(l,o,"mainType")&&u(l,o,"subType")&&u(l,o,"index","componentIndex")&&u(l,o,"name")&&u(l,o,"id")&&u(c,i,"name")&&u(c,i,"dataIndex")&&u(c,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,n.otherQuery,a,i));function u(f,d,h,p){return f[h]==null||d[p||h]===f[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Xz=["symbol","symbolSize","symbolRotate","symbolOffset"],G2e=Xz.concat(["symbolKeepAspect"]),xit={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o<Xz.length;o++){var s=Xz[o],l=t.get(s);$n(l)?(i=!0,a[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(Zt({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),e.isSeriesFiltered(t))return;var c=kr(a);function u(f,d){for(var h=t.getRawValue(d),p=t.getDataParams(d),v=0;v<c.length;v++){var g=c[v];f.setItemVisual(d,g,a[g](h,p))}}return{dataEach:i?u:null}}},Sit={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var n=t.getData();function r(a,i){for(var o=a.getItemModel(i),s=0;s<G2e.length;s++){var l=G2e[s],c=o.getShallow(l,!0);c!=null&&a.setItemVisual(i,l,c)}}return{dataEach:n.hasItemOption?r:null}}};function Mit(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function _it(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function wit(t,e){function n(r,a){var i=[];return r.eachComponent({mainType:"series",subType:t,query:a},function(o){i.push(o.seriesIndex)}),i}Ge([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(r){e(r[0],function(a,i,o){a=Zt({},a),o.dispatchAction(Zt(a,{type:r[1],seriesIndex:n(i,a)}))})})}function Eb(t,e,n,r,a){var i=t+e;n.isSilent(i)||r.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,c=a.selected,u=0;u<c.length;u++)if(c[u].seriesIndex===s){var f=o.getData(),d=pS(f,a.fromActionPayload);n.trigger(i,{type:i,seriesId:o.id,name:dn(d)?f.getName(d[0]):f.getName(d),selected:Sn(l)?l:Zt({},l)})}})}function Lit(t,e,n){t.on("selectchanged",function(r){var a=n.getModel();r.isFromClick?(Eb("map","selectchanged",e,a,r),Eb("pie","selectchanged",e,a,r)):r.fromAction==="select"?(Eb("map","selected",e,a,r),Eb("pie","selected",e,a,r)):r.fromAction==="unselect"&&(Eb("map","unselected",e,a,r),Eb("pie","unselected",e,a,r))})}function H9(t,e,n){for(var r;t&&!(e(t)&&(r=t,n));)t=t.__hostTarget||t.parent;return r}var Tit=Math.round(Math.random()*9),Oit=typeof Object.defineProperty=="function",Pit=function(){function t(){this._id="__ec_inner_"+Tit++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,n){var r=this._guard(e);return Oit?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}(),Cit=Zr.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,i=e.height/2;t.moveTo(n,r-i),t.lineTo(n+a,r+i),t.lineTo(n-a,r+i),t.closePath()}}),Nit=Zr.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,i=e.height/2;t.moveTo(n,r-i),t.lineTo(n+a,r),t.lineTo(n,r+i),t.lineTo(n-a,r),t.closePath()}}),Iit=Zr.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),l=r-i+o+s,c=Math.asin(s/o),u=Math.cos(c)*o,f=Math.sin(c),d=Math.cos(c),h=o*.6,p=o*.7;t.moveTo(n-u,l+s),t.arc(n,l,o,Math.PI-c,Math.PI*2+c),t.bezierCurveTo(n+u-f*h,l+s+d*h,n,r-p,n,r),t.bezierCurveTo(n,r-p,n-u+f*h,l+s+d*h,n-u,l+s),t.closePath()}}),kit=Zr.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,a=e.x,i=e.y,o=r/3*2;t.moveTo(a,i),t.lineTo(a+o,i+n),t.lineTo(a,i+n/4*3),t.lineTo(a-o,i+n),t.lineTo(a,i),t.closePath()}}),Eit={line:H1,rect:Ii,roundRect:Ii,square:Ii,circle:F8,diamond:Nit,pin:Iit,arrow:kit,triangle:Cit},Fit={line:function(t,e,n,r,a){a.x1=t,a.y1=e+r/2,a.x2=t+n,a.y2=e+r/2},rect:function(t,e,n,r,a){a.x=t,a.y=e,a.width=n,a.height=r},roundRect:function(t,e,n,r,a){a.x=t,a.y=e,a.width=n,a.height=r,a.r=Math.min(n,r)/4},square:function(t,e,n,r,a){var i=Math.min(n,r);a.x=t,a.y=e,a.width=i,a.height=i},circle:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.r=Math.min(n,r)/2},diamond:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.width=n,a.height=r},pin:function(t,e,n,r,a){a.x=t+n/2,a.y=e+r/2,a.width=n,a.height=r},arrow:function(t,e,n,r,a){a.x=t+n/2,a.y=e+r/2,a.width=n,a.height=r},triangle:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.width=n,a.height=r}},Dz={};Ge(Eit,function(t,e){Dz[e]=new t});var Xit=Zr.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=_X(t,e,n),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(t,e,n){var r=e.symbolType;if(r!=="none"){var a=Dz[r];a||(r="rect",a=Dz[r]),Fit[r](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,n)}}});function Dit(t,e){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||er.color.neutral00,n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=t:n.fill=t,this.markRedraw()}}function $1(t,e,n,r,a,i,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=Zwe(t.slice(8),new fr(e,n,r,a),o?"center":"cover"):t.indexOf("path://")===0?l=Hq(t.slice(7),{},new fr(e,n,r,a),o?"center":"cover"):l=new Xit({shape:{symbolType:t,x:e,y:n,width:r,height:a}}),l.__isEmptyBrush=s,l.setColor=Dit,i&&l.setColor(i),l}function Q8e(t){return dn(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function K8e(t,e){if(t!=null)return dn(t)||(t=[t,t]),[Aa(t[0],e[0])||0,Aa(gn(t[1],t[0]),e[1])||0]}function V2(t){return isFinite(t)}function Vit(t,e,n){var r=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(r=r*n.width+n.x,a=a*n.width+n.x,i=i*n.height+n.y,o=o*n.height+n.y),r=V2(r)?r:0,a=V2(a)?a:1,i=V2(i)?i:0,o=V2(o)?o:0;var s=t.createLinearGradient(r,i,a,o);return s}function Uit(t,e,n){var r=n.width,a=n.height,i=Math.min(r,a),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*r+n.x,s=s*a+n.y,l=l*i),o=V2(o)?o:.5,s=V2(s)?s:.5,l=l>=0&&V2(l)?l:.5;var c=t.createRadialGradient(o,s,0,o,s,l);return c}function $2e(t,e,n){for(var r=e.type==="radial"?Uit(t,e,n):Vit(t,e,n),a=e.colorStops,i=0;i<a.length;i++)r.addColorStop(a[i].offset,a[i].color);return r}function Wit(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function G9(t){return parseInt(t,10)}function z2e(t,e,n){var r=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[a]||G9(s[r])||G9(t.style[r]))-(G9(s[i])||0)-(G9(s[o])||0)|0}function Yit(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:oa(t)?[t]:dn(t)?t:null}function vee(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&Yit(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(n=nn(n,function(i){return i/a}),r/=a)}return[n,r]}var Bit=new K1(!0);function VX(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function J2e(t){return typeof t=="string"&&t!=="none"}function UX(t){var e=t.fill;return e!=null&&e!=="none"}function j2e(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function q2e(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function eye(t,e,n){var r=Xq(e.image,e.__image,n);if(fV(r)){var a=t.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*ZE),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function Zit(t,e,n,r){var a,i=VX(n),o=UX(n),s=n.strokePercent,l=s<1,c=!e.path;(!e.silent||l)&&c&&e.createPathProxy();var u=e.path||Bit,f=e.__dirty;if(!r){var d=n.fill,h=n.stroke,p=o&&!!d.colorStops,v=i&&!!h.colorStops,g=o&&!!d.image,y=i&&!!h.image,m=void 0,R=void 0,A=void 0,x=void 0,M=void 0;(p||v)&&(M=e.getBoundingRect()),p&&(m=f?$2e(t,d,M):e.__canvasFillGradient,e.__canvasFillGradient=m),v&&(R=f?$2e(t,h,M):e.__canvasStrokeGradient,e.__canvasStrokeGradient=R),g&&(A=f||!e.__canvasFillPattern?eye(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=A),y&&(x=f||!e.__canvasStrokePattern?eye(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),p?t.fillStyle=m:g&&(A?t.fillStyle=A:o=!1),v?t.strokeStyle=R:y&&(x?t.strokeStyle=x:i=!1)}var S=e.getGlobalScale();u.setScale(S[0],S[1],e.segmentIgnoreThreshold);var w,_;t.setLineDash&&n.lineDash&&(a=vee(e),w=a[0],_=a[1]);var T=!0;(c||f&lx)&&(u.setDPR(t.dpr),l?u.setContext(null):(u.setContext(t),T=!1),u.reset(),e.buildPath(u,e.shape,r),u.toStatic(),e.pathUpdated()),T&&u.rebuildPath(t,l?s:1),w&&(t.setLineDash(w),t.lineDashOffset=_),r||(n.strokeFirst?(i&&q2e(t,n),o&&j2e(t,n)):(o&&j2e(t,n),i&&q2e(t,n))),w&&t.setLineDash([])}function Qit(t,e,n){var r=e.__image=Xq(n.image,e.__image,e,e.onload);if(!(!r||!fV(r))){var a=n.x||0,i=n.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;t.drawImage(r,c,u,n.sWidth,n.sHeight,a,i,o,s)}else if(n.sx&&n.sy){var c=n.sx,u=n.sy,f=o-c,d=s-u;t.drawImage(r,c,u,f,d,a,i,o,s)}else t.drawImage(r,a,i,o,s)}}function Kit(t,e,n){var r,a=n.text;if(a!=null&&(a+=""),a){t.font=n.font||b0,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var i=void 0,o=void 0;t.setLineDash&&n.lineDash&&(r=vee(e),i=r[0],o=r[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),n.strokeFirst?(VX(n)&&t.strokeText(a,n.x,n.y),UX(n)&&t.fillText(a,n.x,n.y)):(UX(n)&&t.fillText(a,n.x,n.y),VX(n)&&t.strokeText(a,n.x,n.y)),i&&t.setLineDash([])}}var tye=["shadowBlur","shadowOffsetX","shadowOffsetY"],nye=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function H8e(t,e,n,r,a){var i=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){pl(t,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?ny.opacity:o}(r||e.blend!==n.blend)&&(i||(pl(t,a),i=!0),t.globalCompositeOperation=e.blend||ny.blend);for(var s=0;s<tye.length;s++){var l=tye[s];(r||e[l]!==n[l])&&(i||(pl(t,a),i=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(i||(pl(t,a),i=!0),t.shadowColor=e.shadowColor||ny.shadowColor),i}function rye(t,e,n,r,a){var i=Gw(e,a.inHover),o=r?null:n&&Gw(n,a.inHover)||{};if(i===o)return!1;var s=H8e(t,i,o,r,a);if((r||i.fill!==o.fill)&&(s||(pl(t,a),s=!0),J2e(i.fill)&&(t.fillStyle=i.fill)),(r||i.stroke!==o.stroke)&&(s||(pl(t,a),s=!0),J2e(i.stroke)&&(t.strokeStyle=i.stroke)),(r||i.opacity!==o.opacity)&&(s||(pl(t,a),s=!0),t.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,c=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==c&&(s||(pl(t,a),s=!0),t.lineWidth=c)}for(var u=0;u<nye.length;u++){var f=nye[u],d=f[0];(r||i[d]!==o[d])&&(s||(pl(t,a),s=!0),t[d]=i[d]||f[1])}return s}function Hit(t,e,n,r,a){return H8e(t,Gw(e,a.inHover),n&&Gw(n,a.inHover),r,a)}function G8e(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function Git(t,e,n){for(var r=!1,a=0;a<t.length;a++){var i=t[a];r=r||i.isZeroArea(),G8e(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}n.allClipped=r}function $it(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var aye=1,iye=2,oye=3,sye=4;function zit(t){var e=UX(t),n=VX(t);return!(t.lineDash||!(+e^+n)||e&&typeof t.fill!="string"||n&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function pl(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Gw(t,e){return e&&t.__hoverStyle||t.style}function Jit(t,e){Vz(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Vz(t,e,n,r){var a=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){e.__dirty&=~uh,e.__isRendered=!1;return}var i=e.__clipPaths,o=n.prevElClipPaths,s=!1,l=!1;if((!o||Wit(i,o))&&(o&&o.length&&(pl(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(pl(t,n),t.save(),Git(i,t,n),s=!0),n.prevElClipPaths=i),n.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var c=n.prevEl;c||(l=s=!0);var u=e instanceof Zr&&e.autoBatch&&zit(e.style);s||$it(a,c.transform)?(pl(t,n),G8e(t,e)):u||pl(t,n);var f=Gw(e,n.inHover);e instanceof Zr?(n.lastDrawType!==aye&&(l=!0,n.lastDrawType=aye),rye(t,e,c,l,n),(!u||!n.batchFill&&!n.batchStroke)&&t.beginPath(),Zit(t,e,f,u),u&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof Vw?(n.lastDrawType!==oye&&(l=!0,n.lastDrawType=oye),rye(t,e,c,l,n),Kit(t,e,f)):e instanceof Hf?(n.lastDrawType!==iye&&(l=!0,n.lastDrawType=iye),Hit(t,e,c,l,n),Qit(t,e,f)):e.getTemporalDisplayables&&(n.lastDrawType!==sye&&(l=!0,n.lastDrawType=sye),jit(t,e,n)),u&&r&&pl(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function jit(t,e,n){var r=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,s;for(o=e.getCursor(),s=r.length;o<s;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Vz(t,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var c=0,u=a.length;c<u;c++){var l=a[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Vz(t,l,i,c===u-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var qK=new Pit,lye=new dS(100),cye=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Uz(t,e){if(t==="none")return null;var n=e.getDevicePixelRatio(),r=e.getZr(),a=r.painter.type==="svg";t.dirty&&qK.delete(t);var i=qK.get(t);if(i)return i;var o=Or(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/n,qK.set(t,s),t.dirty=!1,s;function l(c){for(var u=[n],f=!0,d=0;d<cye.length;++d){var h=o[cye[d]];if(h!=null&&!dn(h)&&!Sn(h)&&!oa(h)&&typeof h!="boolean"){f=!1;break}u.push(h)}var p;if(f){p=u.join(",")+(a?"-svg":"");var v=lye.get(p);v&&(a?c.svgElement=v:c.image=v)}var g=z8e(o.dashArrayX),y=qit(o.dashArrayY),m=$8e(o.symbol),R=eot(g),A=J8e(y),x=!a&&B1.createCanvas(),M=a&&{tag:"g",attrs:{},key:"dcl",children:[]},S=_(),w;x&&(x.width=S.width*n,x.height=S.height*n,w=x.getContext("2d")),T(),f&&lye.put(p,x||M),c.image=x,c.svgElement=M,c.svgWidth=S.width,c.svgHeight=S.height;function _(){for(var O=1,N=0,P=R.length;N<P;++N)O=Mme(O,R[N]);for(var C=1,N=0,P=m.length;N<P;++N)C=Mme(C,m[N].length);O*=C;var E=A*R.length*m.length;return{width:Math.max(1,Math.min(O,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function T(){w&&(w.clearRect(0,0,x.width,x.height),o.backgroundColor&&(w.fillStyle=o.backgroundColor,w.fillRect(0,0,x.width,x.height)));for(var O=0,N=0;N<y.length;++N)O+=y[N];if(O<=0)return;for(var P=-A,C=0,E=0,F=0;P<S.height;){if(C%2===0){for(var Y=E/2%m.length,Q=0,K=0,ne=0;Q<S.width*2;){for(var Z=0,N=0;N<g[F].length;++N)Z+=g[F][N];if(Z<=0)break;if(K%2===0){var $=(1-o.symbolSize)*.5,G=Q+g[F][K]*$,ee=P+y[C]*$,ce=g[F][K]*o.symbolSize,B=y[C]*o.symbolSize,xe=ne/2%m[Y].length;_e(G,ee,ce,B,m[Y][xe])}Q+=g[F][K],++ne,++K,K===g[F].length&&(K=0)}++F,F===g.length&&(F=0)}P+=y[C],++E,++C,C===y.length&&(C=0)}function _e(se,z,de,fe,re){var X=a?1:n,j=$1(re,se*X,z*X,de*X,fe*X,o.color,o.symbolKeepAspect);if(a){var oe=r.painter.renderOneToVNode(j);oe&&M.children.push(oe)}else Jit(w,j)}}}}function $8e(t){if(!t||t.length===0)return[["rect"]];if(Sn(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Sn(t[n])){e=!1;break}if(e)return $8e([t]);for(var r=[],n=0;n<t.length;++n)Sn(t[n])?r.push([t[n]]):r.push(t[n]);return r}function z8e(t){if(!t||t.length===0)return[[0,0]];if(oa(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!oa(t[r])){n=!1;break}if(n)return z8e([t]);for(var a=[],r=0;r<t.length;++r)if(oa(t[r])){var e=Math.ceil(t[r]);a.push([e,e])}else{var e=nn(t[r],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function qit(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(oa(t)){var e=Math.ceil(t);return[e,e]}var n=nn(t,function(r){return Math.ceil(r)});return t.length%2?n.concat(n):n}function eot(t){return nn(t,function(e){return J8e(e)})}function J8e(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?e*2:e}function tot(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(o){var s=r.getItemVisual(o,"decal");if(s){var l=r.ensureUniqueItemVisual(o,"style");l.decal=Uz(s,e)}});var a=r.getVisual("decal");if(a){var i=r.getVisual("style");i.decal=Uz(a,e)}}})}var bf=new L0,j8e={};function not(t,e){j8e[t]=e}function rot(t){return j8e[t]}var aot=1,iot=800,oot=900,sot=1e3,lot=2e3,cot=5e3,q8e=1e3,uot=1100,gee=2e3,eLe=3e3,fot=4e3,wV=4500,dot=4600,hot=5e3,pot=6e3,tLe=7e3,vot={PROCESSOR:{FILTER:sot,SERIES_FILTER:iot,STATISTIC:cot},VISUAL:{LAYOUT:q8e,PROGRESSIVE_LAYOUT:uot,GLOBAL:gee,CHART:eLe,POST_CHART_LAYOUT:dot,COMPONENT:fot,BRUSH:hot,CHART_ITEM:wV,ARIA:pot,DECAL:tLe}},wi="__flagInMainProcess",$9="__mainProcessVersion",lo="__pendingUpdate",eH="__needsUpdateStatus",uye=/^[a-zA-Z0-9_]+$/,tH="__connectUpdateStatus",fye=0,got=1,mot=2;function nLe(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this.isDisposed()){this.id;return}return aLe(this,t,e)}}function rLe(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return aLe(this,t,e)}}function aLe(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),L0.prototype[e].apply(t,n)}var iLe=function(t){Jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(L0),oLe=iLe.prototype;oLe.on=rLe("on");oLe.off=rLe("off");var d2,nH,z9,Bp,J9,rH,aH,Fb,Xb,dye,hye,iH,pye,j9,vye,sLe,jc,gye,Db,lLe=function(t){Jt(e,t);function e(n,r,a){var i=t.call(this,new bit)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i._dom=n;var o="canvas",s="auto",l=!1;i[$9]=1,a.ssr&&Met(function(d){var h=Ra(d),p=h.dataIndex;if(p!=null){var v=ir();return v.set("series_index",h.seriesIndex),v.set("data_index",p),h.ssrType&&v.set("ssr_type",h.ssrType),v}});var c=i._zr=xme(n,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:gn(a.useDirtyRect,l),useCoarsePointer:gn(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=X8e(Ha(c.flush,c),17),i._updateTheme(r),i._locale=Srt(a.locale||r8e),i._coordSysMgr=new oee;var u=i._api=vye(i);function f(d,h){return d.__prio-h.__prio}return QE(YX,f),QE(Bz,f),i._scheduler=new U8e(i,u,Bz,YX),i._messageCenter=new iLe,i._initEvents(),i.resize=Ha(i.resize,i),c.animation.on("frame",i._onframe,i),dye(c,i),hye(c,i),Q$(i),i}return e.prototype._onframe=function(){if(!this._disposed){gye(this);var n=this._scheduler;if(this[lo]){var r=this[lo].silent;this[wi]=!0,Db(this);try{d2(this),Bp.update.call(this,null,this[lo].updateParams)}catch(l){throw this[wi]=!1,this[lo]=null,l}this._zr.flush(),this[wi]=!1,this[lo]=null,Fb.call(this,r),Xb.call(this,r)}else if(n.unfinished){var a=aot,i=this._model,o=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(i),n.performDataProcessorTasks(i),rH(this,i),n.performVisualTasks(i),j9(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&n.unfinished);n.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(n,r,a){if(!this[wi]){if(this._disposed){this.id;return}var i,o,s;if(kn(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[wi]=!0,Db(this),!this._model||r){var l=new dat(this._api),c=this._theme,u=this._model=new uee;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,c,this._locale,l)}this._model.setOption(n,{replaceMerge:o},Zz);var f={seriesTransition:s,optionChanged:!0};if(a)this[lo]={silent:i,updateParams:f},this[wi]=!1,this.getZr().wakeUp();else{try{d2(this),Bp.update.call(this,null,f)}catch(d){throw this[lo]=null,this[wi]=!1,d}this._ssr||this._zr.flush(),this[lo]=null,this[wi]=!1,Fb.call(this,i),Xb.call(this,i)}}},e.prototype.setTheme=function(n,r){if(!this[wi]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=r&&r.silent,o=null;this[lo]&&(i==null&&(i=this[lo].silent),o=this[lo].updateParams,this[lo]=null),this[wi]=!0,Db(this);try{this._updateTheme(n),a.setTheme(this._theme),d2(this),Bp.update.call(this,{type:"setTheme"},o)}catch(s){throw this[wi]=!1,s}this[wi]=!1,Fb.call(this,i),Xb.call(this,i)}}},e.prototype._updateTheme=function(n){Sn(n)&&(n=cLe[n]),n&&(n=Mr(n),n&&M8e(n,!0),this._theme=n)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||jr.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},e.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},e.prototype.getSvgDataURL=function(){var n=this._zr,r=n.storage.getDisplayList();return Ge(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()},e.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,a=this._model,i=[],o=this;Ge(r,function(l){a.eachComponent({mainType:l},function(c){var u=o._componentsMap[c.__viewId];u.group.ignore||(i.push(u),u.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return Ge(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(mye[a]){var l=s,c=s,u=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();Ge(rw,function(R,A){if(R.group===a){var x=r?R.getZr().painter.getSvgDom().innerHTML:R.renderToCanvas(Mr(n)),M=R.getDom().getBoundingClientRect();l=i(M.left,l),c=i(M.top,c),u=o(M.right,u),f=o(M.bottom,f),d.push({dom:x,left:M.left,top:M.top})}}),l*=h,c*=h,u*=h,f*=h;var p=u-l,v=f-c,g=B1.createCanvas(),y=xme(g,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:v}),r){var m="";return Ge(d,function(R){var A=R.left-l,x=R.top-c;m+='<g transform="translate('+A+","+x+')">'+R.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,n.connectedBackgroundColor&&y.painter.setBackgroundColor(n.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return n.connectedBackgroundColor&&y.add(new Ii({shape:{x:0,y:0,width:p,height:v},style:{fill:n.connectedBackgroundColor}})),Ge(d,function(R){var A=new Hf({style:{x:R.left*h-l,y:R.top*h-c,image:R.dom}});y.add(A)}),y.refreshImmediately(),g.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},e.prototype.convertToPixel=function(n,r,a){return J9(this,"convertToPixel",n,r,a)},e.prototype.convertToLayout=function(n,r,a){return J9(this,"convertToLayout",n,r,a)},e.prototype.convertFromPixel=function(n,r,a){return J9(this,"convertFromPixel",n,r,a)},e.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=LK(a,n);return Ge(o,function(s,l){l.indexOf("Models")>=0&&Ge(s,function(c){var u=c.coordinateSystem;if(u&&u.containPoint)i=i||!!u.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[c.__viewId];f&&f.containPoint&&(i=i||f.containPoint(r,c))}},this)},this),!!i},e.prototype.getVisual=function(n,r){var a=this._model,i=LK(a,n,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?Mit(s,l,r):_it(s,r)},e.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},e.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},e.prototype._initEvents=function(){var n=this;Ge(yot,function(a){var i=function(o){var s=n.getModel(),l=o.target,c,u=a==="globalout";if(u?c={}:l&&H9(l,function(v){var g=Ra(v);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return c=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return c=Zt({},g.eventData),!0},!0),c){var f=c.componentType,d=c.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",d=c.seriesIndex);var h=f&&d!=null&&s.getComponent(f,d),p=h&&n[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];c.event=o,c.type=a,n._$eventProcessor.eventInfo={targetEl:l,packedEvent:c,model:h,view:p},n.trigger(a,c)}};i.zrEventfulCallAtLast=!0,n._zr.on(a,i,n)});var r=this._messageCenter;Ge(Yz,function(a,i){r.on(i,function(o){n.trigger(i,o)})}),Lit(r,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&dwe(this.getDom(),yee,"");var r=this,a=r._api,i=r._model;Ge(r._componentsViews,function(o){o.dispose(i,a)}),Ge(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete rw[r.id]},e.prototype.resize=function(n){if(!this[wi]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=n&&n.silent;this[lo]&&(i==null&&(i=this[lo].silent),a=!0,this[lo]=null),this[wi]=!0,Db(this);try{a&&d2(this),Bp.update.call(this,{type:"resize",animation:Zt({duration:0},n&&n.animation)})}catch(o){throw this[wi]=!1,o}this[wi]=!1,Fb.call(this,i),Xb.call(this,i)}}},e.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(kn(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!Qz[n]){var a=Qz[n](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(n){var r=Zt({},n);return r.type=Wz[n.type],r},e.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(kn(r)||(r={silent:!!r}),!!WX[n.type]&&this._model){if(this[wi]){this._pendingActions.push(n);return}var a=r.silent;aH.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&jr.browser.weChat&&this._throttledZrFlush(),Fb.call(this,a),Xb.call(this,a)}},e.prototype.updateLabelLayout=function(){bf.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){d2=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),nH(f,!0),nH(f,!1),d.plan()},nH=function(f,d){for(var h=f._model,p=f._scheduler,v=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,y=f._zr,m=f._api,R=0;R<v.length;R++)v[R].__alive=!1;d?h.eachComponent(function(M,S){M!=="series"&&A(S)}):h.eachSeries(A);function A(M){var S=M.__requireNewView;M.__requireNewView=!1;var w="_ec_"+M.id+"_"+M.type,_=!S&&g[w];if(!_){var T=mh(M.type),O=d?x0.getClass(T.main,T.sub):Sl.getClass(T.sub);_=new O,_.init(h,m),g[w]=_,v.push(_),y.add(_.group)}M.__viewId=_.__id=w,_.__alive=!0,_.__model=M,_.group.__ecComponentInfo={mainType:M.mainType,index:M.componentIndex},!d&&p.prepareView(_,M,h,m)}for(var R=0;R<v.length;){var x=v[R];x.__alive?R++:(!d&&x.renderTask.dispose(),y.remove(x.group),x.dispose(h,m),v.splice(R,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},z9=function(f,d,h,p,v){var g=f._model;if(g.setUpdatePayload(h),!p){Ge([].concat(f._componentsViews).concat(f._chartsViews),x);return}var y={};y[p+"Id"]=h[p+"Id"],y[p+"Index"]=h[p+"Index"],y[p+"Name"]=h[p+"Name"];var m={mainType:p,query:y};v&&(m.subType=v);var R=h.excludeSeriesId,A;R!=null&&(A=ir(),Ge(Ds(R),function(M){var S=Mh(M,null);S!=null&&A.set(S,!0)})),g&&g.eachComponent(m,function(M){var S=A&&A.get(M.id)!=null;if(!S)if(e2e(h))if(M instanceof Rc)h.type===ry&&!h.notBlur&&!M.get(["emphasis","disabled"])&&ont(M,h,f._api);else{var w=Bq(M.mainType,M.componentIndex,h.name,f._api),_=w.focusSelf,T=w.dispatchers;h.type===ry&&_&&!h.notBlur&&Sz(M.mainType,M.componentIndex,f._api),T&&Ge(T,function(O){h.type===ry?CX(O):NX(O)})}else wz(h)&&M instanceof Rc&&(cnt(M,h,f._api),jme(M),jc(f))},f),g&&g.eachComponent(m,function(M){var S=A&&A.get(M.id)!=null;S||x(f[p==="series"?"_chartsMap":"_componentsMap"][M.__viewId])},f);function x(M){M&&M.__alive&&M[d]&&M[d](M.__model,g,f._api,h)}},Bp={prepareAndUpdate:function(f){d2(this),Bp.update.call(this,f,f&&{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,p=this._api,v=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){h.setUpdatePayload(f),y.restoreData(h,f),y.performSeriesTasks(h),g.create(h,p),y.performDataProcessorTasks(h,f),rH(this,h),g.update(h,p),r(h),y.performVisualTasks(h,f);var m=h.get("backgroundColor")||"transparent";v.setBackgroundColor(m);var R=h.get("darkMode");R!=null&&R!=="auto"&&v.setDarkMode(R),iH(this,h,p,f,d),bf.trigger("afterupdate",h,p)}},updateTransform:function(f){var d=this,h=this._model,p=this._api;if(h){h.setUpdatePayload(f);var v=[];h.eachComponent(function(y,m){if(y!=="series"){var R=d.getViewOfComponentModel(m);if(R&&R.__alive)if(R.updateTransform){var A=R.updateTransform(m,h,p,f);A&&A.update&&v.push(R)}else v.push(R)}});var g=ir();h.eachSeries(function(y){var m=d._chartsMap[y.__viewId];if(m.updateTransform){var R=m.updateTransform(y,h,p,f);R&&R.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),j9(this,h,p,f,{},g),bf.trigger("afterupdate",h,p)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),Sl.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),iH(this,d,this._api,f,{}),bf.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(p){p.getData().clearAllVisual()}),Sl.markUpdateMethod(f,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(p,v){if(p!=="series"){var g=d.getViewOfComponentModel(v);g&&g.__alive&&g.updateVisual(v,h,d._api,f)}}),h.eachSeries(function(p){var v=d._chartsMap[p.__viewId];v.updateVisual(p,h,d._api,f)}),bf.trigger("afterupdate",h,this._api))},updateLayout:function(f){Bp.update.call(this,f)}};function n(f,d,h,p,v){if(f._disposed){f.id;return}for(var g=f._model,y=f._coordSysMgr.getCoordinateSystems(),m,R=LK(g,h),A=0;A<y.length;A++){var x=y[A];if(x[d]&&(m=x[d](g,R,p,v))!=null)return m}}J9=n,rH=function(f,d){var h=f._chartsMap,p=f._scheduler;d.eachSeries(function(v){p.updateStreamModes(v,h[v.__viewId])})},aH=function(f,d){var h=this,p=this.getModel(),v=f.type,g=f.escapeConnect,y=WX[v],m=(y.update||"update").split(":"),R=m.pop(),A=m[0]!=null&&mh(m[0]);this[wi]=!0,Db(this);var x=[f],M=!1;f.batch&&(M=!0,x=nn(f.batch,function(F){return F=Or(Zt({},F),f),F.batch=null,F}));var S=[],w,_=[],T=y.nonRefinedEventType,O=wz(f),N=e2e(f);if(N&&Iwe(this._api),Ge(x,function(F){var Y=y.action(F,p,h._api);if(y.refineEvent?_.push(Y):w=Y,w=w||Zt({},F),w.type=T,S.push(w),N){var Q=fwe(f),K=Q.queryOptionMap,ne=Q.mainTypeSpecified,Z=ne?K.keys()[0]:"series";z9(h,R,F,Z),jc(h)}else O?(z9(h,R,F,"series"),jc(h)):A&&z9(h,R,F,A.main,A.sub)}),R!=="none"&&!N&&!O&&!A)try{this[lo]?(d2(this),Bp.update.call(this,f),this[lo]=null):Bp[R].call(this,f)}catch(F){throw this[wi]=!1,F}if(M?w={type:T,escapeConnect:g,batch:S}:w=S[0],this[wi]=!1,!d){var P=void 0;if(y.refineEvent){var C=y.refineEvent(_,f,p,this._api).eventContent;Nh(kn(C)),P=Or({type:y.refinedEventType},C),P.fromAction=f.type,P.fromActionPayload=f,P.escapeConnect=!0}var E=this._messageCenter;E.trigger(w.type,w),P&&E.trigger(P.type,P)}},Fb=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();aH.call(this,h,f)}},Xb=function(f){!f&&this.trigger("updated")},dye=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[lo]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},hye=function(f,d){f.on("mouseover",function(h){var p=h.target,v=H9(p,_z);v&&(snt(v,h,d._api),jc(d))}).on("mouseout",function(h){var p=h.target,v=H9(p,_z);v&&(lnt(v,h,d._api),jc(d))}).on("click",function(h){var p=h.target,v=H9(p,function(m){return Ra(m).dataIndex!=null},!0);if(v){var g=v.selected?"unselect":"select",y=Ra(v);d._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function a(f){var d=[],h=[],p=!1;if(f.eachComponent(function(m,R){var A=R.get("zlevel")||0,x=R.get("z")||0,M=R.getZLevelKey();p=p||!!M,(m==="series"?h:d).push({zlevel:A,z:x,idx:R.componentIndex,type:m,key:M})}),p){var v=d.concat(h),g,y;QE(v,function(m,R){return m.zlevel===R.zlevel?m.z-R.z:m.zlevel-R.zlevel}),Ge(v,function(m){var R=f.getComponent(m.type,m.idx),A=m.zlevel,x=m.key;g!=null&&(A=Math.max(g,A)),x?(A===g&&x!==y&&A++,y=x):y&&(A===g&&A++,y=""),g=A,R.setZLevel(A)})}}iH=function(f,d,h,p,v){a(d),pye(f,d,h,p,v),Ge(f._chartsViews,function(g){g.__alive=!1}),j9(f,d,h,p,v),Ge(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},pye=function(f,d,h,p,v,g){Ge(g||f._componentsViews,function(y){var m=y.__model;c(m,y),y.render(m,d,h,p),l(m,y),u(m,y)})},j9=function(f,d,h,p,v,g){var y=f._scheduler;v=Zt(v||{},{updatedSeries:d.getSeries()}),bf.trigger("series:beforeupdate",d,h,v);var m=!1;d.eachSeries(function(R){var A=f._chartsMap[R.__viewId];A.__alive=!0;var x=A.renderTask;y.updatePayload(x,p),c(R,A),g&&g.get(R.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(m=!0),A.group.silent=!!R.get("silent"),s(R,A),jme(R)}),y.unfinished=m||y.unfinished,bf.trigger("series:layoutlabels",d,h,v),bf.trigger("series:transition",d,h,v),d.eachSeries(function(R){var A=f._chartsMap[R.__viewId];l(R,A),u(R,A)}),o(f,d),bf.trigger("series:afterupdate",d,h,v)},jc=function(f){f[eH]=!0,f.getZr().wakeUp()},Db=function(f){f[$9]=(f[$9]+1)%1e3},gye=function(f){f[eH]&&(f.getZr().storage.traverse(function(d){J_(d)||i(d)}),f[eH]=!1)};function i(f){for(var d=[],h=f.currentStates,p=0;p<h.length;p++){var v=h[p];v==="emphasis"||v==="blur"||v==="select"||d.push(v)}f.selected&&f.states.select&&d.push("select"),f.hoverState===pV&&f.states.emphasis?d.push("emphasis"):f.hoverState===hV&&f.states.blur&&d.push("blur"),f.useStates(d)}function o(f,d){var h=f._zr,p=h.storage,v=0;p.traverse(function(g){g.isGroup||v++}),v>d.get("hoverLayerThreshold")&&!jr.node&&!jr.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=f._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function l(f,d){if(!f.preventAutoZ){var h=Jwe(f);d.eachRendered(function(p){return jwe(p,h.z,h.zlevel),!0})}}function c(f,d){d.eachRendered(function(h){if(!J_(h)){var p=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function u(f,d){var h=f.getModel("stateAnimation"),p=f.isAnimationEnabled(),v=h.get("duration"),g=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(J_(y))return;if(y instanceof Zr&&vnt(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var R=y.getTextContent(),A=y.getTextGuideLine();R&&(R.stateTransition=g),A&&(A.stateTransition=g)}y.__dirty&&i(y)}})}vye=function(f){return new(function(d){Jt(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);p=p.parent}},h.prototype.enterEmphasis=function(p,v){CX(p,v),jc(f)},h.prototype.leaveEmphasis=function(p,v){NX(p,v),jc(f)},h.prototype.enterBlur=function(p){int(p),jc(f)},h.prototype.leaveBlur=function(p){Owe(p),jc(f)},h.prototype.enterSelect=function(p){Pwe(p),jc(f)},h.prototype.leaveSelect=function(p){Cwe(p),jc(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},h.prototype.getMainProcessVersion=function(){return f[$9]},h}(x8e))(f)},sLe=function(f){function d(h,p){for(var v=0;v<h.length;v++){var g=h[v];g[tH]=p}}Ge(Wz,function(h,p){f._messageCenter.on(p,function(v){if(mye[f.group]&&f[tH]!==fye){if(v&&v.escapeConnect)return;var g=f.makeActionFromEvent(v),y=[];Ge(rw,function(m){m!==f&&m.group===f.group&&y.push(m)}),d(y,fye),Ge(y,function(m){m[tH]!==got&&m.dispatchAction(g)}),d(y,mot)}})})}}(),e}(L0),mee=lLe.prototype;mee.on=nLe("on");mee.off=nLe("off");mee.one=function(t,e,n){var r=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,a)}this.on.call(this,t,a,n)};var yot=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var WX={},Wz={},Yz={},Bz=[],Zz=[],YX=[],cLe={},Qz={},rw={},mye={},Aot=+new Date-0,yee="_echarts_instance_";function Rot(t,e,n){var r=!(n&&n.ssr);if(r){var a=bot(t);if(a)return a}var i=new lLe(t,e,n);return i.id="ec_"+Aot++,rw[i.id]=i,r&&dwe(t,yee,i.id),sLe(i),bf.trigger("afterinit",i),i}function bot(t){return rw[Jet(t,yee)]}function uLe(t,e){cLe[t]=e}function fLe(t){aa(Zz,t)<0&&Zz.push(t)}function dLe(t,e){Ree(Bz,t,e,lot)}function xot(t){Aee("afterinit",t)}function Sot(t){Aee("afterupdate",t)}function Aee(t,e){bf.on(t,e)}function YS(t,e,n){var r,a,i,o,s;$n(e)&&(n=e,e=""),kn(t)?(r=t.type,a=t.event,o=t.update,s=t.publishNonRefinedEvent,n||(n=t.action),i=t.refineEvent):(r=t,a=e);function l(u){return u.toLowerCase()}a=l(a||r);var c=i?l(r):a;WX[r]||(Nh(uye.test(r)&&uye.test(a)),i&&Nh(a!==r),WX[r]={actionType:r,refinedEventType:a,nonRefinedEventType:c,update:o,action:n,refineEvent:i},Yz[a]=1,i&&s&&(Yz[c]=1),Wz[c]=r)}function Mot(t,e){oee.register(t,e)}function _ot(t,e){Ree(YX,t,e,q8e,"layout")}function Ly(t,e){Ree(YX,t,e,eLe,"visual")}var yye=[];function Ree(t,e,n,r,a){if(($n(e)||kn(e))&&(n=e,e=r),!(aa(yye,n)>=0)){yye.push(n);var i=U8e.wrapStageHandler(n,a);i.__prio=e,i.__raw=n,t.push(i)}}function hLe(t,e){Qz[t]=e}function wot(t,e,n){var r=rot("registerMap");r&&r(t,e,n)}var Lot=Wat;Ly(gee,sit);Ly(wV,lit);Ly(wV,cit);Ly(gee,xit);Ly(wV,Sit);Ly(tLe,tot);fLe(M8e);dLe(oot,Mat);hLe("default",uit);YS({type:ry,event:ry,update:ry},mc);YS({type:JE,event:JE,update:JE},mc);YS({type:OX,event:Wq,update:OX,action:mc,refineEvent:bee,publishNonRefinedEvent:!0});YS({type:bz,event:Wq,update:bz,action:mc,refineEvent:bee,publishNonRefinedEvent:!0});YS({type:PX,event:Wq,update:PX,action:mc,refineEvent:bee,publishNonRefinedEvent:!0});function bee(t,e,n,r){return{eventContent:{selected:unt(n),isFromClick:e.isFromClick||!1}}}uLe("default",{});uLe("dark",Z8e);function w5(t){return t==null?0:t.length||1}function Aye(t){return t}var Tot=function(){function t(e,n,r,a,i,o){this._old=e,this._new=n,this._oldKeyGetter=r||Aye,this._newKeyGetter=a||Aye,this.context=i,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,n=this._new,r={},a=new Array(e.length),i=new Array(n.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(n,r,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=r[s],c=w5(l);if(c>1){var u=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(u,o)}else c===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},t.prototype._executeMultiple=function(){var e=this._old,n=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(n,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],c=r[l],u=a[l],f=w5(c),d=w5(u);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(u,c),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(u,c),a[l]=null;else if(f===1&&d===1)this._update&&this._update(u,c),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,c),a[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(c[h]);else this._remove&&this._remove(c)}this._performRestAdd(o,a)},t.prototype._performRestAdd=function(e,n){for(var r=0;r<e.length;r++){var a=e[r],i=n[a],o=w5(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);n[a]=null}},t.prototype._initIndexMap=function(e,n,r,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(r[o]=s),!!n){var l=n[s],c=w5(l);c===0?(n[s]=o,i&&r.push(s)):c===1?n[s]=[l,o]:l.push(o)}}},t}(),Oot=function(){function t(e,n){this._encode=e,this._schema=n}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function Pot(t,e){var n={},r=n.encode={},a=ir(),i=[],o=[],s={};Ge(t.dimensions,function(d){var h=t.getDimensionInfo(d),p=h.coordDim;if(p){var v=h.coordDimIndex;oH(r,p)[v]=d,h.isExtraCoord||(a.set(p,1),Not(h.type)&&(i[0]=d),oH(s,p)[v]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}m8e.each(function(g,y){var m=oH(r,y),R=h.otherDims[y];R!=null&&R!==!1&&(m[R]=h.name)})});var l=[],c={};a.each(function(d,h){var p=r[h];c[h]=p[0],l=l.concat(p)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=nn(l,function(d){return t.getDimensionInfo(d).storeDimIndex}),n.encodeFirstDimNotExtra=c;var u=r.label;u&&u.length&&(i=u.slice());var f=r.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),r.defaultedLabel=i,r.defaultedTooltip=o,n.userOutput=new Oot(s,e),n}function oH(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Cot(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function Not(t){return!(t==="ordinal"||t==="time")}var rF=function(){function t(e){this.otherDims={},e!=null&&Zt(this,e)}return t}(),Iot=mi(),kot={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},pLe=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=mLe(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return gn(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var n=this.source.dimensionsDefine;if(n)return n[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,n=L8e(this.source),r=!yLe(e),a="",i=[],o=0,s=0;o<e;o++){var l=void 0,c=void 0,u=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=n?f.name:null,c=f.type,u=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=n?d.name:null,c=d.type)}i.push({property:l,type:c,ordinalMeta:u}),n&&l!=null&&(!f||!f.isCalculationCoord)&&(a+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=kot[c]||"f",u&&(a+=u.uid),a+="$"}var h=this.source,p=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:p}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],n=0,r=0;n<this._fullDimCount;n++){var a=void 0,i=this.dimensions[r];if(i&&i.storeDimIndex===n)i.isCalculationCoord||(a=i.name),r++;else{var o=this.getSourceDimension(n);o&&(a=o.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function vLe(t){return t instanceof pLe}function gLe(t){for(var e=ir(),n=0;n<(t||[]).length;n++){var r=t[n],a=kn(r)?r.name:r;a!=null&&e.get(a)==null&&e.set(a,n)}return e}function mLe(t){var e=Iot(t);return e.dimNameMap||(e.dimNameMap=gLe(t.dimensionsDefine))}function yLe(t){return t>30}var L5=kn,Uv=nn,Eot=typeof Int32Array>"u"?Array:Int32Array,Fot="e\0\0",Rye=-1,Xot=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Dot=["_approximateExtent"],bye,q9,T5,O5,sH,P5,lH,ALe=function(){function t(e,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,a=!1;vLe(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,c={},u=0;u<r.length;u++){var f=r[u],d=Sn(f)?new rF({name:f}):f instanceof rF?f:new rF(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(h),i[h]=d,c[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]);var v=u;oa(d.storeDimIndex)&&(v=d.storeDimIndex),p.itemName===0&&(this._nameDimIdx=v),p.itemId===0&&(this._idDimIdx=v),a&&(d.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=ir();Ge(o,function(y){g.set(i[y].storeDimIndex,y)})}}return t.prototype.getDimension=function(e){var n=this._recognizeDimIndex(e);if(n==null)return e;if(n=e,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var a=this._schema.getSourceDimension(n);if(a)return a.name},t.prototype.getDimensionIndex=function(e){var n=this._recognizeDimIndex(e);if(n!=null)return n;if(e==null)return-1;var r=this._getDimInfo(e);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(oa(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var n=this.getDimensionIndex(e);return n},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var n=this._dimInfos;this._getDimInfo=e?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[e];var a=r.encode[e];return a?a[n]:null},t.prototype.mapDimensionsAll=function(e){var n=this._dimSummary,r=n.encode[e];return(r||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,n,r){var a=this,i;if(e instanceof Ez&&(i=e),!i){var o=this.dimensions,s=fee(e)||_l(e)?new T8e(e,o.length):e;i=new Ez;var l=Uv(o,function(c){return{type:a._dimInfos[c].type,property:c}});i.initData(s,l,r)}this._store=i,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Pot(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var n=this._store.appendData(e);this._doInit(n[0],n[1])},t.prototype.appendValues=function(e,n){var r=this._store.appendValues(e,n&&n.length),a=r.start,i=r.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=n[l],o&&lH(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,n=this.dimensions,r=0;r<n.length;r++){var a=this._dimInfos[n[r]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==X1&&!e.fillStorage},t.prototype._doInit=function(e,n){if(!(e>=n)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Sc;if(l&&!a.pure)for(var c=[],u=e;u<n;u++){var f=a.getItem(u,c);if(!this.hasItemOption&&Uet(f)&&(this.hasItemOption=!0),f){var d=f.name;i[u]==null&&d!=null&&(i[u]=Mh(d,null));var h=f.id;o[u]==null&&h!=null&&(o[u]=Mh(h,null))}}if(this._shouldMakeIdFromName())for(var u=e;u<n;u++)lH(this,u);bye(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,n){n=this.getDimension(n),this._approximateExtent[n]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,n){L5(e)?Zt(this._calculationInfo,e):this._calculationInfo[e]=n},t.prototype.getName=function(e){var n=this.getRawIndex(e),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=T5(this,this._nameDimIdx,n)),r==null&&(r=""),r},t.prototype._getCategory=function(e,n){var r=this._store.get(e,n),a=this._store.getOrdinalMeta(e);return a?a.categories[r]:r},t.prototype.getId=function(e){return q9(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,n){var r=this._store,a=this._dimInfos[e];if(a)return r.get(a.storeDimIndex,n)},t.prototype.getByRawIndex=function(e,n){var r=this._store,a=this._dimInfos[e];if(a)return r.getByRawIndex(a.storeDimIndex,n)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,n){var r=this,a=this._store;return dn(e)?a.getValues(Uv(e,function(i){return r._getStoreDimIndex(i)}),n):a.getValues(e)},t.prototype.hasValue=function(e){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,a=n.length;r<a;r++)if(isNaN(this._store.get(n[r],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===e)return n;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,n){var r=e&&this._invertedIndicesMap[e],a=r&&r[n];return a==null||isNaN(a)?Rye:a},t.prototype.each=function(e,n,r){$n(e)&&(r=n,n=e,e=[]);var a=r||this,i=Uv(O5(e),this._getStoreDimIndex,this);this._store.each(i,a?Ha(n,a):n)},t.prototype.filterSelf=function(e,n,r){$n(e)&&(r=n,n=e,e=[]);var a=r||this,i=Uv(O5(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?Ha(n,a):n),this},t.prototype.selectRange=function(e){var n=this,r={},a=kr(e);return Ge(a,function(i){var o=n._getStoreDimIndex(i);r[o]=e[i]}),this._store=this._store.selectRange(r),this},t.prototype.mapArray=function(e,n,r){$n(e)&&(r=n,n=e,e=[]),r=r||this;var a=[];return this.each(e,function(){a.push(n&&n.apply(this,arguments))},r),a},t.prototype.map=function(e,n,r,a){var i=r||a||this,o=Uv(O5(e),this._getStoreDimIndex,this),s=P5(this);return s._store=this._store.map(o,i?Ha(n,i):n),s},t.prototype.modify=function(e,n,r,a){var i=r||a||this,o=Uv(O5(e),this._getStoreDimIndex,this);this._store.modify(o,i?Ha(n,i):n)},t.prototype.downSample=function(e,n,r,a){var i=P5(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),n,r,a),i},t.prototype.minmaxDownSample=function(e,n){var r=P5(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),n),r},t.prototype.lttbDownSample=function(e,n){var r=P5(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(e),n),r},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var n=this.hostModel,r=this.getRawDataItem(e);return new Ji(r,n,n&&n.ecModel)},t.prototype.diff=function(e){var n=this;return new Tot(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return q9(e,r)},function(r){return q9(n,r)})},t.prototype.getVisual=function(e){var n=this._visual;return n&&n[e]},t.prototype.setVisual=function(e,n){this._visual=this._visual||{},L5(e)?Zt(this._visual,e):this._visual[e]=n},t.prototype.getItemVisual=function(e,n){var r=this._itemVisuals[e],a=r&&r[n];return a??this.getVisual(n)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,n){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[n];return i==null&&(i=this.getVisual(n),dn(i)?i=i.slice():L5(i)&&(i=Zt({},i)),a[n]=i),i},t.prototype.setItemVisual=function(e,n,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,L5(n)?Zt(a,n):a[n]=r},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,n){L5(e)?Zt(this._layout,e):this._layout[e]=n},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,n,r){this._itemLayouts[e]=r?Zt(this._itemLayouts[e]||{},n):n},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,n){var r=this.hostModel&&this.hostModel.seriesIndex;$tt(r,this.dataType,e,n),this._graphicEls[e]=n},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,n){Ge(this._graphicEls,function(r,a){r&&e&&e.call(n,r,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Uv(this.dimensions,this._getDimInfo,this),this.hostModel)),sH(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,n){var r=this[e];$n(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(wq(arguments)))})},t.internalField=function(){bye=function(e){var n=e._invertedIndicesMap;Ge(n,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=n[a]=new Eot(o.categories.length);for(var l=0;l<r.length;l++)r[l]=Rye;for(var l=0;l<s.count();l++)r[s.get(i.storeDimIndex,l)]=l}})},T5=function(e,n,r){return Mh(e._getCategory(n,r),null)},q9=function(e,n){var r=e._idList[n];return r==null&&e._idDimIdx!=null&&(r=T5(e,e._idDimIdx,n)),r==null&&(r=Fot+n),r},O5=function(e){return dn(e)||(e=e!=null?[e]:[]),e},P5=function(e){var n=new t(e._schema?e._schema:Uv(e.dimensions,e._getDimInfo,e),e.hostModel);return sH(n,e),n},sH=function(e,n){Ge(Xot.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(e[r]=n[r])}),e.__wrappedMethods=n.__wrappedMethods,Ge(Dot,function(r){e[r]=Mr(n[r])}),e._calculationInfo=Zt({},n._calculationInfo)},lH=function(e,n){var r=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=r[n],l=a[n];if(s==null&&i!=null&&(r[n]=s=T5(e,i,n)),l==null&&o!=null&&(a[n]=l=T5(e,o,n)),l==null&&s!=null){var c=e._nameRepeatCount,u=c[s]=(c[s]||0)+1;l=s,u>1&&(l+="__ec__"+u),a[n]=l}}}(),t}();function RLe(t,e){fee(t)||(t=_8e(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=ir(),i=[],o=Uot(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&yLe(o),l=r===t.dimensionsDefine,c=l?mLe(t):gLe(r),u=e.encodeDefine;!u&&e.encodeDefaulter&&(u=e.encodeDefaulter(t,o));for(var f=ir(u),d=new I8e(o),h=0;h<d.length;h++)d[h]=-1;function p(_){var T=d[_];if(T<0){var O=r[_],N=kn(O)?O:{name:O},P=new rF,C=N.name;C!=null&&c.get(C)!=null&&(P.name=P.displayName=C),N.type!=null&&(P.type=N.type),N.displayName!=null&&(P.displayName=N.displayName);var E=i.length;return d[_]=E,P.storeDimIndex=_,i.push(P),P}return i[T]}if(!s)for(var h=0;h<o;h++)p(h);f.each(function(_,T){var O=Ds(_).slice();if(O.length===1&&!Sn(O[0])&&O[0]<0){f.set(T,!1);return}var N=f.set(T,[]);Ge(O,function(P,C){var E=Sn(P)?c.get(P):P;E!=null&&E<o&&(N[C]=E,g(p(E),T,C))})});var v=0;Ge(n,function(_){var T,O,N,P;if(Sn(_))T=_,P={};else{P=_,T=P.name;var C=P.ordinalMeta;P.ordinalMeta=null,P=Zt({},P),P.ordinalMeta=C,O=P.dimsDef,N=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var E=f.get(T);if(E!==!1){if(E=Ds(E),!E.length)for(var F=0;F<(O&&O.length||1);F++){for(;v<o&&p(v).coordDim!=null;)v++;v<o&&E.push(v++)}Ge(E,function(Y,Q){var K=p(Y);if(l&&P.type!=null&&(K.type=P.type),g(Or(K,P),T,Q),K.name==null&&O){var ne=O[Q];!kn(ne)&&(ne={name:ne}),K.name=K.displayName=ne.name,K.defaultTooltip=ne.defaultTooltip}N&&Or(K.otherDims,N)})}});function g(_,T,O){m8e.get(T)!=null?_.otherDims[T]=O:(_.coordDim=T,_.coordDimIndex=O,a.set(T,!0))}var y=e.generateCoord,m=e.generateCoordCount,R=m!=null;m=y?m||1:0;var A=y||"value";function x(_){_.name==null&&(_.name=_.coordDim)}if(s)Ge(i,function(_){x(_)}),i.sort(function(_,T){return _.storeDimIndex-T.storeDimIndex});else for(var M=0;M<o;M++){var S=p(M),w=S.coordDim;w==null&&(S.coordDim=Wot(A,a,R),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),x(S),S.type==null&&(R8e(t,M)===wo.Must||S.isExtraCoord&&(S.otherDims.itemName!=null||S.otherDims.seriesName!=null))&&(S.type="ordinal")}return Vot(i),new pLe({source:t,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function Vot(t){for(var e=ir(),n=0;n<t.length;n++){var r=t[n],a=r.name,i=e.get(a)||0;i>0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function Uot(t,e,n,r){var a=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Ge(e,function(i){var o;kn(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function Wot(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var Yot=function(){function t(e){this.coordSysDims=[],this.axisMap=ir(),this.categoryAxisMap=ir(),this.coordSysName=e}return t}();function Bot(t){var e=t.get("coordinateSystem"),n=new Yot(e),r=Zot[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var Zot={cartesian2d:function(t,e,n,r){var a=t.getReferringComponents("xAxis",du).models[0],i=t.getReferringComponents("yAxis",du).models[0];e.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),Vb(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Vb(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var a=t.getReferringComponents("singleAxis",du).models[0];e.coordSysDims=["single"],n.set("single",a),Vb(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var a=t.getReferringComponents("polar",du).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),Vb(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Vb(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var a=t.ecModel,i=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();Ge(i.parallelAxisIndex,function(s,l){var c=a.getComponent("parallelAxis",s),u=o[l];n.set(u,c),Vb(c)&&(r.set(u,c),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,n,r){var a=t.getReferringComponents("matrix",du).models[0];e.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");n.set("x",i),n.set("y",o),r.set("x",i),r.set("y",o)}};function Vb(t){return t.get("type")==="category"}function Qot(t,e,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,s;Kot(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),c,u,f,d;if(Ge(i,function(m,R){Sn(m)&&(i[R]=m={name:m}),l&&!m.isExtraCoord&&(!r&&!c&&m.ordinalMeta&&(c=m),!u&&m.type!=="ordinal"&&m.type!=="time"&&(!a||a===m.coordDim)&&(u=m))}),u&&!r&&!c&&(r=!0),u){f="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var h=u.coordDim,p=u.type,v=0;Ge(i,function(m){m.coordDim===h&&v++});var g={name:f,coordDim:h,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:d,coordDim:d,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,p),y.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:c&&c.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function Kot(t){return!vLe(t.schema)}function RS(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Hot(t,e){return RS(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Got(t,e){var n=t.get("coordinateSystem"),r=oee.get(n),a;return e&&e.coordSysDims&&(a=nn(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Cot(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function $ot(t,e,n){var r,a;return n&&Ge(t,function(i,o){var s=i.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(t[r].otherDims.itemName=0),r}function LV(t,e,n){n=n||{};var r=e.getSourceManager(),a,i=!1;a=r.getSource(),i=a.sourceFormat===Sc;var o=Bot(e),s=Got(e,o),l=n.useEncodeDefaulter,c=$n(l)?l:l?cc(qrt,s,e):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!i},f=RLe(a,u),d=$ot(f.dimensions,n.createInvertedIndices,o),h=i?null:r.getSharedDataStore(f),p=Qot(e,{schema:f,store:h}),v=new ALe(f,e);v.setCalculationInfo(p);var g=d!=null&&zot(a)?function(y,m,R,A){return A===d?R:this.defaultDimValueGetter(y,m,R,A)}:null;return v.hasItemOption=!1,v.initData(i?a:h,null,g),v}function zot(t){if(t.sourceFormat===Sc){var e=Jot(t.data||[]);return!dn(k8(e))}}function Jot(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}function Kz(t){return t.type==="interval"||t.type==="log"}function jot(t,e,n,r,a){var i={},o=i.interval=owe(e/n);r!=null&&o<r&&(o=i.interval=r),a!=null&&o>a&&(o=i.interval=a);var s=i.intervalPrecision=$w(o),l=i.niceTickExtent=[Fo(Math.ceil(t[0]/o)*o,s),Fo(Math.floor(t[1]/o)*o,s)];return qot(l,t),i}function cH(t){var e=Math.pow(10,kq(t)),n=t/e;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Fo(n*e)}function $w(t){return c0(t)+2}function xye(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function qot(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),xye(t,0,e),xye(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function xee(t,e){return t>=e[0]&&t<=e[1]}var est=function(){function t(){this.normalize=Sye,this.scale=Mye}return t.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=Ha(e.normalize,e),this.scale=Ha(e.scale,e)):(this.normalize=Sye,this.scale=Mye)},t}();function Sye(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Mye(t,e){return t*(e[1]-e[0])+e[0]}function Hz(t,e,n){var r=Math.log(t);return[Math.log(n?e[0]:Math.max(0,e[0]))/r,Math.log(n?e[1]:Math.max(0,e[1]))/r]}var dg=function(){function t(e){this._calculator=new est,this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype._innerUnionExtent=function(e){var n=this._extent;this._innerSetExtent(e[0]<n[0]?e[0]:n[0],e[1]>n[1]?e[1]:n[1])},t.prototype.unionExtentFromData=function(e,n){this._innerUnionExtent(e.getApproximateExtent(n))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,n){this._innerSetExtent(e,n)},t.prototype._innerSetExtent=function(e,n){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(n)||(r[1]=n),this._brkCtx&&this._brkCtx.update(r)},t.prototype.setBreaksFromOption=function(e){},t.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();uV(dg);var tst=0,Gz=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++tst,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var n=e.option,r=n.data,a=r&&nn(r,nst);return new t({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var n,r=this._needCollect;if(!Sn(e)&&!r)return e;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=e,this._onCollect&&this._onCollect(e,n),n;var a=this._getOrCreateMap();return n=a.get(e),n==null&&(r?(n=this.categories.length,this.categories[n]=e,a.set(e,n),this._onCollect&&this._onCollect(e,n)):n=NaN),n},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ir(this.categories))},t}();function nst(t){return kn(t)&&t.value!=null?t.value:t+""}var bLe=function(t){Jt(e,t);function e(n){var r=t.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new Gz({})),dn(a)&&(a=new Gz({categories:nn(a,function(i){return kn(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(n){return n==null?NaN:Sn(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},e.prototype.contain=function(n){return xee(n,this._extent)&&n>=0&&n<this._ordinalMeta.categories.length},e.prototype.normalize=function(n){return n=this._getTickNumber(n),this._calculator.normalize(n,this._extent)},e.prototype.scale=function(n){return n=Math.round(this._calculator.scale(n,this._extent)),this.getRawOrdinalNumber(n)},e.prototype.getTicks=function(){for(var n=[],r=this._extent,a=r[0];a<=r[1];)n.push({value:a}),a++;return n},e.prototype.getMinorTicks=function(n){},e.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o<l;++o){var c=r[o];a[o]=c,i[c]=o}for(var u=0;o<s;++o){for(;i[u]!=null;)u++;a.push(u),i[u]=o}},e.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),a=this._ordinalMeta.categories[r];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(dg);dg.registerClass(bLe);var Wv=Fo,z1=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return e.prototype.parse=function(n){return n==null||n===""?NaN:Number(n)},e.prototype.contain=function(n){return xee(n,this._extent)},e.prototype.normalize=function(n){return this._calculator.normalize(n,this._extent)},e.prototype.scale=function(n){return this._calculator.scale(n,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=$w(n)},e.prototype.getTicks=function(n){n=n||{};var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=FX(),l=[];if(!r)return l;n.breakTicks;var c=1e4;a[0]<i[0]&&(n.expandToNicedExtent?l.push({value:Wv(i[0]-r,o)}):l.push({value:a[0]}));for(var u=function(p,v){return Math.round((v-p)/r)},f=i[0];f<=i[1];){if(l.push({value:f}),f=Wv(f+r,o),this._brkCtx){var d=this._brkCtx.calcNiceTickMultiple(f,u);d>=0&&(f=Wv(f+d*r,o))}if(l.length>0&&f===l[l.length-1].value)break;if(l.length>c)return[]}var h=l.length?l[l.length-1].value:i[1];return a[1]>h&&(n.expandToNicedExtent?l.push({value:Wv(h+r,o)}):l.push({value:a[1]})),n.breakTicks,l},e.prototype.getMinorTicks=function(n){for(var r=this.getTicks({expandToNicedExtent:!0}),a=[],i=this.getExtent(),o=1;o<r.length;o++){var s=r[o],l=r[o-1];if(!(l.break||s.break)){for(var c=0,u=[],f=s.value-l.value,d=f/n,h=$w(d);c<n-1;){var p=Wv(l.value+(c+1)*d,h);p>i[0]&&p<i[1]&&u.push(p),c++}var v=FX();v&&v.pruneTicksByBreak("auto",u,this._getNonTransBreaks(),function(g){return g},this._interval,i),a.push(u)}}return a},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(n,r){if(n==null)return"";var a=r&&r.precision;a==null?a=c0(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Wv(n.value,a,!0);return Frt(i)},e.prototype.calcNiceTicks=function(n,r,a){n=n||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=jot(i,o,n,r,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(n){var r=this._extent.slice();if(r[0]===r[1])if(r[0]!==0){var a=Math.abs(r[0]);n.fixMax||(r[1]+=a/2),r[0]-=a/2}else r[1]=1;var i=r[1]-r[0];isFinite(i)||(r[0]=0,r[1]=1),this._innerSetExtent(r[0],r[1]),r=this._extent.slice(),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var o=this._interval,s=this._intervalPrecision;n.fixMin||(r[0]=Wv(Math.floor(r[0]/o)*o,s)),n.fixMax||(r[1]=Wv(Math.ceil(r[1]/o)*o,s)),this._innerSetExtent(r[0],r[1])},e.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},e.type="interval",e}(dg);dg.registerClass(z1);var xLe=typeof Float32Array<"u",rst=xLe?Float32Array:Array;function u0(t){return dn(t)?xLe?new Float32Array(t):t:new rst(t)}var ast="__ec_stack_";function SLe(t){return t.get("stack")||ast+t.seriesIndex}function See(t){return t.dim+t.index}function MLe(t,e){var n=[];return e.eachSeriesByType(t,function(r){wLe(r)&&n.push(r)}),n}function ist(t){var e={};Ge(t,function(l){var c=l.coordinateSystem,u=c.getBaseAxis();if(!(u.type!=="time"&&u.type!=="value"))for(var f=l.getData(),d=u.dim+"_"+u.index,h=f.getDimensionIndex(f.mapDimension(u.dim)),p=f.getStore(),v=0,g=p.count();v<g;++v){var y=p.get(h,v);e[d]?e[d].push(y):e[d]=[y]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];if(a){a.sort(function(l,c){return l-c});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}n[r]=i}}return n}function _Le(t){var e=ist(t),n=[];return Ge(t,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,c=e[l],u=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=c?u/d*c:u}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=Aa(r.get("barWidth"),s),v=Aa(r.get("barMaxWidth"),s),g=Aa(r.get("barMinWidth")||(LLe(r)?.5:1),s),y=r.get("barGap"),m=r.get("barCategoryGap"),R=r.get("defaultBarGap");n.push({bandWidth:s,barWidth:p,barMaxWidth:v,barMinWidth:g,barGap:y,barCategoryGap:m,defaultBarGap:R,axisKey:See(i),stackId:SLe(r)})}),ost(n)}function ost(t){var e={};Ge(t,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:r.defaultBarGap||0,stacks:{}},l=s.stacks;e[i]=s;var c=r.stackId;l[c]||s.autoWidthCount++,l[c]=l[c]||{width:0,maxWidth:0};var u=r.barWidth;u&&!l[c].width&&(l[c].width=u,u=Math.min(s.remainedWidth,u),s.remainedWidth-=u);var f=r.barMaxWidth;f&&(l[c].maxWidth=f);var d=r.barMinWidth;d&&(l[c].minWidth=d);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var n={};return Ge(e,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=kr(i).length;s=Math.max(35-l*4,15)+"%"}var c=Aa(s,o),u=Aa(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,h=(f-c)/(d+(d-1)*u);h=Math.max(h,0),Ge(i,function(y){var m=y.maxWidth,R=y.minWidth;if(y.width){var A=y.width;m&&(A=Math.min(A,m)),R&&(A=Math.max(A,R)),y.width=A,f-=A+u*A,d--}else{var A=h;m&&m<A&&(A=Math.min(m,f)),R&&R>A&&(A=R),A!==h&&(y.width=A,f-=A+u*A,d--)}}),h=(f-c)/(d+(d-1)*u),h=Math.max(h,0);var p=0,v;Ge(i,function(y,m){y.width||(y.width=h),v=y,p+=y.width*(1+u)}),v&&(p-=v.width*u);var g=-p/2;Ge(i,function(y,m){n[a][m]=n[a][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+u)})}),n}function sst(t,e,n){if(t&&e){var r=t[See(e)];return r}}function lst(t,e){var n=MLe(t,e),r=_Le(n);Ge(n,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=SLe(a),c=r[See(s)][l],u=c.offset,f=c.width;i.setLayout({bandWidth:c.bandWidth,offset:u,size:f})})}function cst(t){return{seriesType:t,plan:pee(),reset:function(e){if(wLe(e)){var n=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=n.getDimensionIndex(n.mapDimension(i.dim)),s=n.getDimensionIndex(n.mapDimension(a.dim)),l=e.get("showBackground",!0),c=n.mapDimension(i.dim),u=n.getCalculationInfo("stackResultDimension"),f=RS(n,c)&&!!n.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=ust(a,i),p=LLe(e),v=e.get("barMinHeight")||0,g=u&&n.getDimensionIndex(u),y=n.getLayout("size"),m=n.getLayout("offset");return{progress:function(R,A){for(var x=R.count,M=p&&u0(x*3),S=p&&l&&u0(x*3),w=p&&u0(x),_=r.master.getRect(),T=d?_.width:_.height,O,N=A.getStore(),P=0;(O=R.next())!=null;){var C=N.get(f?g:o,O),E=N.get(s,O),F=h,Y=void 0;f&&(Y=+C-N.get(o,O));var Q=void 0,K=void 0,ne=void 0,Z=void 0;if(d){var $=r.dataToPoint([C,E]);if(f){var G=r.dataToPoint([Y,E]);F=G[0]}Q=F,K=$[1]+m,ne=$[0]-F,Z=y,Math.abs(ne)<v&&(ne=(ne<0?-1:1)*v)}else{var $=r.dataToPoint([E,C]);if(f){var G=r.dataToPoint([E,Y]);F=G[1]}Q=$[0]+m,K=F,ne=y,Z=$[1]-F,Math.abs(Z)<v&&(Z=(Z<=0?-1:1)*v)}p?(M[P]=Q,M[P+1]=K,M[P+2]=d?ne:Z,S&&(S[P]=d?_.x:Q,S[P+1]=d?K:_.y,S[P+2]=T),w[O]=O):A.setItemLayout(O,{x:Q,y:K,width:ne,height:Z}),P+=3}p&&A.setLayout({largePoints:M,largeDataIndices:w,largeBackgroundPoints:S,valueAxisHorizontal:d})}}}}}}function wLe(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function LLe(t){return t.pipelineContext&&t.pipelineContext.large}function ust(t,e){var n=e.model.get("startValue");return n||(n=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?n>0?n:1:n))}var fst=function(t,e,n,r){for(;n<r;){var a=n+r>>>1;t[a][1]<e?n=a+1:r=a}return n},TLe=function(t){Jt(e,t);function e(n){var r=t.call(this,n)||this;return r.type="time",r}return e.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return i8e(n.value,m2e[Irt(ew(this._minLevelUnit))]||m2e.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(n,r,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return krt(n,r,a,o,i)},e.prototype.getTicks=function(n){var r=this._interval,a=this._extent,i=[];if(!r)return i;var o=this.getSetting("useUTC"),s=XX(a[1],o);i.push({value:a[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=Ast(this._minLevelUnit,this._approxInterval,o,a,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(l);var c=XX(a[1],o);i.push({value:a[1],time:{level:0,upperTimeUnit:c,lowerTimeUnit:c}}),this.getSetting("useUTC");var u=ay.length-1,f=0;return Ge(i,function(d){u=Math.min(u,aa(ay,d.time.upperTimeUnit)),f=Math.max(f,d.time.level)}),i},e.prototype.calcNiceExtent=function(n){var r=this.getExtent();if(r[0]===r[1]&&(r[0]-=hu,r[1]+=hu),r[1]===-1/0&&r[0]===1/0){var a=new Date;r[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-hu}this._innerSetExtent(r[0],r[1]),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},e.prototype.calcNiceTicks=function(n,r,a){n=n||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var o=eE.length,s=Math.min(fst(eE,this._approxInterval,0,o),o-1);this._interval=eE[s][1],this._intervalPrecision=$w(this._interval),this._minLevelUnit=eE[Math.max(s-1,0)][0]},e.prototype.parse=function(n){return oa(n)?n:+I8(n)},e.prototype.contain=function(n){return xee(n,this._extent)},e.prototype.normalize=function(n){return this._calculator.normalize(n,this._extent)},e.prototype.scale=function(n){return this._calculator.scale(n,this._extent)},e.type="time",e}(z1),eE=[["second",jq],["minute",qq],["hour",q_],["quarter-day",q_*6],["half-day",q_*12],["day",hu*1.2],["half-week",hu*3.5],["week",hu*7],["month",hu*31],["quarter",hu*95],["half-year",g2e/2],["year",g2e]];function dst(t,e,n,r){return Cz(new Date(e),t,r).getTime()===Cz(new Date(n),t,r).getTime()}function hst(t,e){return t/=hu,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function pst(t){var e=30*hu;return t/=e,t>6?6:t>3?3:t>2?2:1}function vst(t){return t/=q_,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function _ye(t,e){return t/=e?qq:jq,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function gst(t){return owe(t)}function mst(t,e,n){var r=Math.max(0,aa(ay,e)-1);return Cz(new Date(t),ay[r],n).getTime()}function yst(t,e){var n=new Date(0);n[t](1);var r=n.getTime();n[t](1+e);var a=n.getTime()-r;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function Ast(t,e,n,r,a,i){var o=1e4,s=Ort,l=0;function c(P,C,E,F,Y,Q,K){for(var ne=yst(Y,P),Z=C,$=new Date(Z);Z<E&&Z<=r[1]&&(K.push({value:Z}),!(l++>o));)if($[Y]($[F]()+P),Z=$.getTime(),i){var G=i.calcNiceTickMultiple(Z,ne);G>0&&($[Y]($[F]()+G*P),Z=$.getTime())}K.push({value:Z,notAdd:!0})}function u(P,C,E){var F=[],Y=!C.length;if(!dst(ew(P),r[0],r[1],n)){Y&&(C=[{value:mst(r[0],P,n)},{value:r[1]}]);for(var Q=0;Q<C.length-1;Q++){var K=C[Q].value,ne=C[Q+1].value;if(K!==ne){var Z=void 0,$=void 0,G=void 0,ee=!1;switch(P){case"year":Z=Math.max(1,Math.round(e/hu/365)),$=o8e(n),G=Ert(n);break;case"half-year":case"quarter":case"month":Z=pst(e),$=eee(n),G=s8e(n);break;case"week":case"half-week":case"day":Z=hst(e),$=tee(n),G=l8e(n),ee=!0;break;case"half-day":case"quarter-day":case"hour":Z=vst(e),$=nee(n),G=c8e(n);break;case"minute":Z=_ye(e,!0),$=ree(n),G=u8e(n);break;case"second":Z=_ye(e,!1),$=aee(n),G=f8e(n);break;case"millisecond":Z=gst(e),$=iee(n),G=d8e(n);break}ne>=r[0]&&K<=r[1]&&c(Z,K,ne,$,G,ee,F),P==="year"&&E.length>1&&Q===0&&E.unshift({value:E[0].value-Z})}}for(var Q=0;Q<F.length;Q++)E.push(F[Q])}}for(var f=[],d=[],h=0,p=0,v=0;v<s.length;++v){var g=ew(s[v]);if(Nrt(s[v])){u(s[v],f[f.length-1]||[],d);var y=s[v+1]?ew(s[v+1]):null;if(g!==y){if(d.length){p=h,d.sort(function(P,C){return P.value-C.value});for(var m=[],R=0;R<d.length;++R){var A=d[R].value;(R===0||d[R-1].value!==A)&&(m.push(d[R]),A>=r[0]&&A<=r[1]&&h++)}var x=a/e;if(h>x*1.5&&p>x/1.5||(f.push(m),h>x||t===s[v]))break}d=[]}}}for(var M=Hi(nn(f,function(P){return Hi(P,function(C){return C.value>=r[0]&&C.value<=r[1]&&!C.notAdd})}),function(P){return P.length>0}),S=[],w=M.length-1,v=0;v<M.length;++v)for(var _=M[v],T=0;T<_.length;++T){var O=XX(_[T].value,n);S.push({value:_[T].value,time:{level:w-v,upperTimeUnit:O,lowerTimeUnit:O}})}S.sort(function(P,C){return P.value-C.value});for(var N=[],v=0;v<S.length;++v)(v===0||S[v].value!==S[v-1].value)&&N.push(S[v]);return N}dg.registerClass(TLe);var $z=Fo,Rst=Math.floor,bst=Math.ceil,tE=Math.pow,nE=Math.log,OLe=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new z1,n}return e.prototype.getTicks=function(n){n=n||{};var r=this._extent.slice(),a=this._originalScale.getExtent(),i=t.prototype.getTicks.call(this,n),o=this.base;return this._originalScale._innerGetBreaks(),nn(i,function(s){var l=s.value,c=null,u=tE(o,l);l===r[0]&&this._fixMin?c=a[0]:l===r[1]&&this._fixMax&&(c=a[1]);var f;return c!=null&&(u=uH(u,c)),{value:u,break:f}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(n,r){this._originalScale.setExtent(n,r);var a=Hz(this.base,[n,r]);t.prototype.setExtent.call(this,a[0],a[1])},e.prototype.getExtent=function(){var n=this.base,r=t.prototype.getExtent.call(this);r[0]=tE(n,r[0]),r[1]=tE(n,r[1]);var a=this._originalScale.getExtent();return this._fixMin&&(r[0]=uH(r[0],a[0])),this._fixMax&&(r[1]=uH(r[1],a[1])),r},e.prototype.unionExtentFromData=function(n,r){this._originalScale.unionExtentFromData(n,r);var a=Hz(this.base,n.getApproximateExtent(r),!0);this._innerUnionExtent(a)},e.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent.slice(),a=this._getExtentSpanWithBreaks();if(!(!isFinite(a)||a<=0)){var i=Net(a),o=n/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[$z(bst(r[0]/i)*i),$z(Rst(r[1]/i)*i)];this._interval=i,this._intervalPrecision=$w(i),this._niceExtent=s}},e.prototype.calcNiceExtent=function(n){t.prototype.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},e.prototype.contain=function(n){return n=nE(n)/nE(this.base),t.prototype.contain.call(this,n)},e.prototype.normalize=function(n){return n=nE(n)/nE(this.base),t.prototype.normalize.call(this,n)},e.prototype.scale=function(n){return n=t.prototype.scale.call(this,n),tE(this.base,n)},e.prototype.setBreaksFromOption=function(n){},e.type="log",e}(z1);function uH(t,e){return $z(t,c0(e))}dg.registerClass(OLe);var xst=function(){function t(e,n,r){this._prepareParams(e,n,r)}return t.prototype._prepareParams=function(e,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var i=n.get("min",!0);i==null&&(i=n.get("startValue",!0));var o=this._modelMinRaw=i;$n(o)?this._modelMinNum=rE(e,o({min:r[0],max:r[1]})):o!=="dataMin"&&(this._modelMinNum=rE(e,o));var s=this._modelMaxRaw=n.get("max",!0);if($n(s)?this._modelMaxNum=rE(e,s({min:r[0],max:r[1]})):s!=="dataMax"&&(this._modelMaxNum=rE(e,s)),a)this._axisDataLen=n.getCategories().length;else{var l=n.get("boundaryGap"),c=dn(l)?l:[l||0,l||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Q1(c[0],1),Q1(c[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,n=this._dataMin,r=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:r-n||Math.abs(n),s=this._modelMinRaw==="dataMin"?n:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,c=s!=null,u=l!=null;s==null&&(s=e?a?0:NaN:n-i[0]*o),l==null&&(l=e?a?a-1:NaN:r+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=Iw(s)||Iw(l)||e&&!a;this._needCrossZero&&(s>0&&l>0&&!c&&(s=0),s<0&&l<0&&!u&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,c=!0),h!=null&&(l=h,u=!0),{min:s,max:l,minFixed:c,maxFixed:u,isBlank:f}},t.prototype.modifyDataMinMax=function(e,n){this[Mst[e]]=n},t.prototype.setDeterminedMinMax=function(e,n){var r=Sst[e];this[r]=n},t.prototype.freeze=function(){this.frozen=!0},t}(),Sst={min:"_determinedMin",max:"_determinedMax"},Mst={min:"_dataMin",max:"_dataMax"};function _st(t,e,n){var r=t.rawExtentInfo;return r||(r=new xst(t,e,n),t.rawExtentInfo=r,r)}function rE(t,e){return e==null?null:Iw(e)?NaN:t.parse(e)}function PLe(t,e){var n=t.type,r=_st(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&n==="time"){var s=MLe("bar",o),l=!1;if(Ge(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var c=_Le(s),u=wst(a,i,e,c);a=u.min,i=u.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function wst(t,e,n,r){var a=n.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=sst(r,n.axis);if(o===void 0)return{min:t,max:e};var s=1/0;Ge(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;Ge(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=e-t,f=1-(s+l)/i,d=u/f-u;return e+=d*(l/c),t-=d*(s/c),{min:t,max:e}}function wye(t,e){var n=e,r=PLe(t,n),a=r.extent,i=n.get("splitNumber");t instanceof OLe&&(t.base=n.get("logBase"));var o=t.type,s=n.get("interval"),l=o==="interval"||o==="time";t.setBreaksFromOption(NLe(n)),t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function Lst(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new bLe({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new TLe({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(dg.getClass(e)||z1)}}function Tst(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function V8(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var n=Prt(e);return function(a,i){return t.scale.getFormattedLabel(a,i,n)}}else{if(Sn(e))return function(a){var i=t.scale.getLabel(a),o=e.replace("{value}",i??"");return o};if($n(e)){if(t.type==="category")return function(a,i){return e(Lye(t,a),a.value-t.scale.getExtent()[0],null)};var r=FX();return function(a,i){var o=null;return r&&(o=r.makeAxisLabelFormatterParamBreak(o,a.break)),e(Lye(t,a),i,o)}}else return function(a){return t.scale.getLabel(a)}}}function Lye(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function Mee(t){var e=t.get("interval");return e??"auto"}function CLe(t){return t.type==="category"&&Mee(t.getLabelModel())===0}function Ost(t,e){var n={};return Ge(t.mapDimensionsAll(e),function(r){n[Hot(t,r)]=!0}),kr(n)}function bS(t){return t==="middle"||t==="center"}function zw(t){return t.getShallow("show")}function NLe(t){var e=t.get("breaks",!0);e==null}var ILe=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}(),Tye=[],Pst={registerPreprocessor:fLe,registerProcessor:dLe,registerPostInit:xot,registerPostUpdate:Sot,registerUpdateLifecycle:Aee,registerAction:YS,registerCoordinateSystem:Mot,registerLayout:_ot,registerVisual:Ly,registerTransform:Lot,registerLoading:hLe,registerMap:wot,registerImpl:not,PRIORITY:vot,ComponentModel:ua,ComponentView:x0,SeriesModel:Rc,ChartView:Sl,registerComponentModel:function(t){ua.registerClass(t)},registerComponentView:function(t){x0.registerClass(t)},registerSeriesModel:function(t){Rc.registerClass(t)},registerChartView:function(t){Sl.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){ua.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){bet(t,e)}};function vy(t){if(dn(t)){Ge(t,function(e){vy(e)});return}aa(Tye,t)>=0||(Tye.push(t),$n(t)&&(t={install:t}),t.install(Pst))}var Cst=mi(),aw=mi(),Uf={estimate:1,determine:2};function BX(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function kLe(t,e){var n=nn(e,function(r){return t.scale.parse(r)});return t.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Nst(t,e){var n=t.getLabelModel().get("customValues");if(n){var r=V8(t),a=t.scale.getExtent(),i=kLe(t,n),o=Hi(i,function(s){return s>=a[0]&&s<=a[1]});return{labels:nn(o,function(s){var l={value:s};return{formattedLabel:r(l),rawLabel:t.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return t.type==="category"?kst(t,e):Fst(t)}function Ist(t,e,n){var r=t.getTickModel().get("customValues");if(r){var a=t.scale.getExtent(),i=kLe(t,r);return{ticks:Hi(i,function(o){return o>=a[0]&&o<=a[1]})}}return t.type==="category"?Est(t,e):{ticks:nn(t.scale.getTicks(n),function(o){return o.value})}}function kst(t,e){var n=t.getLabelModel(),r=ELe(t,n,e);return!n.get("show")||t.scale.isBlank()?{labels:[]}:r}function ELe(t,e,n){var r=Dst(t),a=Mee(e),i=n.kind===Uf.estimate;if(!i){var o=XLe(r,a);if(o)return o}var s,l;$n(a)?s=ULe(t,a):(l=a==="auto"?Vst(t,n):a,s=VLe(t,l));var c={labels:s,labelCategoryInterval:l};return i?n.out.noPxChangeTryDetermine.push(function(){return zz(r,a,c),!0}):zz(r,a,c),c}function Est(t,e){var n=Xst(t),r=Mee(e),a=XLe(n,r);if(a)return a;var i,o;if((!e.get("show")||t.scale.isBlank())&&(i=[]),$n(r))i=ULe(t,r,!0);else if(r==="auto"){var s=ELe(t,t.getLabelModel(),BX(Uf.determine));o=s.labelCategoryInterval,i=nn(s.labels,function(l){return l.tickValue})}else o=r,i=VLe(t,o,!0);return zz(n,r,{ticks:i,tickCategoryInterval:o})}function Fst(t){var e=t.scale.getTicks(),n=V8(t);return{labels:nn(e,function(r,a){return{formattedLabel:n(r,a),rawLabel:t.scale.getLabel(r),tickValue:r.value,time:r.time,break:r.break}})}}var Xst=FLe("axisTick"),Dst=FLe("axisLabel");function FLe(t){return function(n){return aw(n)[t]||(aw(n)[t]={list:[]})}}function XLe(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function zz(t,e,n){return t.list.push({key:e,value:n}),n}function Vst(t,e){if(e.kind===Uf.estimate){var n=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return aw(t).autoInterval=n,!0}),n}var r=aw(t).autoInterval;return r??(aw(t).autoInterval=t.calculateCategoryInterval(e))}function Ust(t,e){var n=e.kind,r=Yst(t),a=V8(t),i=(r.axisRotate-r.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var c=1,u=40;l>u&&(c=Math.max(1,Math.floor(l/u)));for(var f=s[0],d=t.dataToCoord(f+1)-t.dataToCoord(f),h=Math.abs(d*Math.cos(i)),p=Math.abs(d*Math.sin(i)),v=0,g=0;f<=s[1];f+=c){var y=0,m=0,R=fet(a({value:f}),r.font,"center","top");y=R.width*1.3,m=R.height*1.3,v=Math.max(v,y,7),g=Math.max(g,m,7)}var A=v/h,x=g/p;isNaN(A)&&(A=1/0),isNaN(x)&&(x=1/0);var M=Math.max(0,Math.floor(Math.min(A,x)));if(n===Uf.estimate)return e.out.noPxChangeTryDetermine.push(Ha(Wst,null,t,M,l)),M;var S=DLe(t,M,l);return S??M}function Wst(t,e,n){return DLe(t,e,n)==null}function DLe(t,e,n){var r=Cst(t.model),a=t.getExtent(),i=r.lastAutoInterval,o=r.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-n)<=1&&i>e&&r.axisExtent0===a[0]&&r.axisExtent1===a[1])return i;r.lastTickCount=n,r.lastAutoInterval=e,r.axisExtent0=a[0],r.axisExtent1=a[1]}function Yst(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function VLe(t,e,n){var r=V8(t),a=t.scale,i=a.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),c=i[0],u=a.count();c!==0&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var f=CLe(t),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&c!==i[0]&&v(i[0]);for(var p=c;p<=i[1];p+=l)v(p);h&&p-l!==i[1]&&v(i[1]);function v(g){var y={value:g};s.push(n?g:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:g,time:void 0,break:void 0})}return s}function ULe(t,e,n){var r=t.scale,a=V8(t),i=[];return Ge(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(n?l:{formattedLabel:a(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var Oye=[0,1],WLe=function(){function t(e,n,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=n,this._extent=r||[0,0]}return t.prototype.contain=function(e){var n=this._extent,r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return e>=r&&e<=a},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return Tet(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,n){var r=this._extent;r[0]=e,r[1]=n},t.prototype.dataToCoord=function(e,n){var r=this._extent,a=this.scale;return e=a.normalize(a.parse(e)),this.onBand&&a.type==="ordinal"&&(r=r.slice(),Pye(r,a.count())),pz(e,Oye,r,n)},t.prototype.coordToData=function(e,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),Pye(r,a.count()));var i=pz(e,r,Oye,n);return this.scale.scale(i)},t.prototype.pointToData=function(e,n){},t.prototype.getTicksCoords=function(e){e=e||{};var n=e.tickModel||this.getTickModel(),r=Ist(this,n,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),a=r.ticks,i=nn(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return Bst(this,i,o,e.clamp),i},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),n=e.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),a=nn(r,function(i){return nn(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},t.prototype.getViewLabels=function(e){return e=e||BX(Uf.determine),Nst(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},t.prototype.calculateCategoryInterval=function(e){return e=e||BX(Uf.determine),Ust(this,e)},t}();function Pye(t,e){var n=t[1]-t[0],r=e,a=n/r/2;t[0]+=a,t[1]-=a}function Bst(t,e,n,r){var a=e.length;if(!t.onBand||n||!a)return;var i=t.getExtent(),o,s;if(a===1)e[0].coord=i[0],e[0].onBand=!0,o=e[1]={coord:i[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[a-1].tickValue-e[0].tickValue,c=(e[a-1].coord-e[0].coord)/l;Ge(e,function(h){h.coord-=c/2,h.onBand=!0});var u=t.scale.getExtent();s=1+u[1]-e[a-1].tickValue,o={coord:e[a-1].coord+c*s,tickValue:u[1]+1,onBand:!0},e.push(o)}var f=i[0]>i[1];d(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&d(i[0],e[0].coord)&&e.unshift({coord:i[0],onBand:!0}),d(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&d(o.coord,i[1])&&e.push({coord:i[1],onBand:!0});function d(h,p){return h=Fo(h),p=Fo(p),f?h>p:h<p}}function YLe(t,e,n,r,a,i,o,s){var l=a-t,c=i-e,u=n-t,f=r-e,d=Math.sqrt(u*u+f*f);u/=d,f/=d;var h=l*u+c*f,p=h/d;p*=d;var v=o[0]=t+p*u,g=o[1]=e+p*f;return Math.sqrt((v-a)*(v-a)+(g-i)*(g-i))}var S1=new Zn,ni=new Zn,Po=new Zn,M1=new Zn,dh=new Zn,ZX=[],ks=new Zn;function Zst(t,e){if(e<=180&&e>0){e=e/180*Math.PI,S1.fromArray(t[0]),ni.fromArray(t[1]),Po.fromArray(t[2]),Zn.sub(M1,S1,ni),Zn.sub(dh,Po,ni);var n=M1.len(),r=dh.len();if(!(n<.001||r<.001)){M1.scale(1/n),dh.scale(1/r);var a=M1.dot(dh),i=Math.cos(e);if(i<a){var o=YLe(ni.x,ni.y,Po.x,Po.y,S1.x,S1.y,ZX);ks.fromArray(ZX),ks.scaleAndAdd(dh,o/Math.tan(Math.PI-e));var s=Po.x!==ni.x?(ks.x-ni.x)/(Po.x-ni.x):(ks.y-ni.y)/(Po.y-ni.y);if(isNaN(s))return;s<0?Zn.copy(ks,ni):s>1&&Zn.copy(ks,Po),ks.toArray(t[1])}}}}function Qst(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,S1.fromArray(t[0]),ni.fromArray(t[1]),Po.fromArray(t[2]),Zn.sub(M1,ni,S1),Zn.sub(dh,Po,ni);var r=M1.len(),a=dh.len();if(!(r<.001||a<.001)){M1.scale(1/r),dh.scale(1/a);var i=M1.dot(e),o=Math.cos(n);if(i<o){var s=YLe(ni.x,ni.y,Po.x,Po.y,S1.x,S1.y,ZX);ks.fromArray(ZX);var l=Math.PI/2,c=Math.acos(dh.dot(e)),u=l+c-n;if(u>=l)Zn.copy(ks,Po);else{ks.scaleAndAdd(dh,s/Math.tan(Math.PI/2-u));var f=Po.x!==ni.x?(ks.x-ni.x)/(Po.x-ni.x):(ks.y-ni.y)/(Po.y-ni.y);if(isNaN(f))return;f<0?Zn.copy(ks,ni):f>1&&Zn.copy(ks,Po)}ks.toArray(t[1])}}}}function fH(t,e,n,r){var a=n==="normal",i=a?t:t.ensureState(n);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?t.useStyle(s):i.style=s}function Kst(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var a=H$(r[0],r[1]),i=H$(r[1],r[2]);if(!a||!i){t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*n,s=oK([],r[1],r[0],o/a),l=oK([],r[1],r[2],o/i),c=oK([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)t.lineTo(r[u][0],r[u][1])}function Hst(t,e,n){var r=t.getTextGuideLine(),a=t.getTextContent();if(!a){r&&t.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<TX.length;l++){var c=TX[l],u=e[c],f=c==="normal";if(u){var d=u.get("show"),h=f?s:gn(a.states[c]&&a.states[c].ignore,s);if(h||!gn(d,o)){var p=f?r:r&&r.states[c];p&&(p.ignore=!0),r&&fH(r,!0,c,u);continue}r||(r=new _y,t.setTextGuideLine(r),!f&&(s||!o)&&fH(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),fH(r,!1,c,u)}}if(r){Or(r.style,n),r.style.fill=null;var v=i.get("showAbove"),g=t.textGuideLineConfig=t.textGuideLineConfig||{};g.showAbove=v||!1,r.buildPath=Kst}}function Gst(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Su.length;r++){var a=Su[r];n[a]=t.getModel([a,e])}return n}var Cye=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],$st=1,QX=2,BLe=$st|QX;function KX(t,e,n){n=n||BLe,e?t.dirty|=n:t.dirty&=~n}function ZLe(t,e){return e=e||BLe,t.dirty==null||!!(t.dirty&e)}function J1(t){if(t)return ZLe(t)&&QLe(t,t.label,t),t}function QLe(t,e,n){var r=e.getComputedTransform();t.transform=$q(t.transform,r);var a=t.localRect=Yw(t.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,c=n&&n.marginDefault,u=i.__marginType;u==null&&c&&(o=c,u=bx.textMargin);for(var f=0;f<4;f++)dH[f]=u===bx.minMargin&&l&&l[f]!=null?l[f]:s&&s[f]!=null?s[f]:o?o[f]:0;u===bx.textMargin&&kX(a,dH,!1,!1);var d=t.rect=Yw(t.rect,a);return r&&d.applyTransform(r),u===bx.minMargin&&kX(d,dH,!1,!1),t.axisAligned=Gq(r),(t.label=t.label||{}).ignore=e.ignore,KX(t,!1),KX(t,!0,QX),t}var dH=[0,0,0,0];function zst(t,e,n){return t.transform=$q(t.transform,n),t.localRect=Yw(t.localRect,e),t.rect=Yw(t.rect,e),n&&t.rect.applyTransform(n),t.axisAligned=Gq(n),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function Jst(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var n=t.transform;n&&(n[4]+=e.x,n[5]+=e.y);var r=t.rect;r&&(r.x+=e.x,r.y+=e.y);var a=t.obb;a&&a.fromBoundingRect(t.localRect,n)}}function Nye(t,e){for(var n=0;n<Cye.length;n++){var r=Cye[n];t[r]==null&&(t[r]=e[r])}return J1(t)}function Iye(t){var e=t.obb;return(!e||ZLe(t,QX))&&(t.obb=e=e||new Bwe,e.fromBoundingRect(t.localRect,t.transform),KX(t,!1,QX)),e}function jst(t,e,n,r,a){var i=t.length,o=v1[e],s=mS[e];if(i<2)return!1;t.sort(function(S,w){return S.rect[o]-w.rect[o]});for(var l=0,c,u=!1,f=0;f<i;f++){var d=t[f],h=d.rect;c=h[o]-l,c<0&&(h[o]-=c,d.label[o]-=c,u=!0),l=h[o]+h[s]}var p=t[0],v=t[i-1],g,y;m(),g<0&&x(-g,.8),y<0&&x(y,.8),m(),R(g,y,1),R(y,g,-1),m(),g<0&&M(-g),y<0&&M(y);function m(){g=p.rect[o]-n,y=r-v.rect[o]-v.rect[s]}function R(S,w,_){if(S<0){var T=Math.min(w,-S);if(T>0){A(T*_,0,i);var O=T+S;O<0&&x(-O*_,1)}else x(-S*_,1)}}function A(S,w,_){S!==0&&(u=!0);for(var T=w;T<_;T++){var O=t[T],N=O.rect;N[o]+=S,O.label[o]+=S}}function x(S,w){for(var _=[],T=0,O=1;O<i;O++){var N=t[O-1].rect,P=Math.max(t[O].rect[o]-N[o]-N[s],0);_.push(P),T+=P}if(T){var C=Math.min(Math.abs(S)/T,w);if(S>0)for(var O=0;O<i-1;O++){var E=_[O]*C;A(E,0,O+1)}else for(var O=i-1;O>0;O--){var E=_[O-1]*C;A(-E,O,i)}}}function M(S){var w=S<0?-1:1;S=Math.abs(S);for(var _=Math.ceil(S/(i-1)),T=0;T<i-1;T++)if(w>0?A(_,0,T+1):A(-_,i-T-1,i),S-=_,S<=0)return}return u}function qst(t){var e=[];t.sort(function(c,u){return(u.suggestIgnore?1:0)-(c.suggestIgnore?1:0)||u.priority-c.priority});function n(c){if(!c.ignore){var u=c.ensureState("emphasis");u.ignore==null&&(u.ignore=!1)}c.ignore=!0}for(var r=0;r<t.length;r++){var a=J1(t[r]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,l=0;l<e.length;l++)if(_ee(a,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(i),o&&n(o)):e.push(a)}}}function _ee(t,e,n,r){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,n,r)?!1:t.axisAligned&&e.axisAligned?!0:Iye(t).intersect(Iye(e),n,r)}var elt=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n){return LV(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(n){var r=new ki,a=$1("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(a),a.setStyle(n.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=n.itemHeight*.8,c=$1(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);r.add(c),c.setStyle(n.itemStyle);var u=n.iconRotate==="inherit"?o:n.iconRotate||0;return c.rotation=u*Math.PI/180,c.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill=er.color.neutral00,c.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Rc);function wee(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=AS(t,e,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o<n.length;o++)i.push(AS(t,e,n[o]));return i.join(" ")}}function KLe(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!dn(e))return e+"";for(var r=[],a=0;a<n.length;a++){var i=t.getDimensionIndex(n[a]);i>=0&&r.push(e[i])}return r.join(" ")}var Lee=function(t){Jt(e,t);function e(n,r,a,i){var o=t.call(this)||this;return o.updateData(n,r,a,i),o}return e.prototype._createSymbol=function(n,r,a,i,o,s){this.removeAll();var l=$1(n,-1,-1,2,2,null,s);l.attr({z2:gn(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=tlt,this._symbolType=n,this.add(l)},e.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){CX(this.childAt(0))},e.prototype.downplay=function(){NX(this.childAt(0))},e.prototype.setZ=function(n,r){var a=this.childAt(0);a.zlevel=n,a.z=r},e.prototype.setDraggable=function(n,r){var a=this.childAt(0);a.draggable=n,a.cursor=!r&&n?"move":a.cursor},e.prototype.updateData=function(n,r,a,i){this.silent=!1;var o=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=e.getSymbolSize(n,r),c=e.getSymbolZ2(n,r),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var d=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,n,r,l,c,d)}else{var h=this.childAt(0);h.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(p):hs(h,p,s,r),Uw(h)}if(this._updateCommon(n,r,l,a,i),u){var h=this.childAt(0);if(!f){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,xl(h,p,s,r)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(n,r,a,i,o){var s=this.childAt(0),l=n.hostModel,c,u,f,d,h,p,v,g,y;if(i&&(c=i.emphasisItemStyle,u=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,h=i.blurScope,v=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||n.hasItemOption){var m=i&&i.itemModel?i.itemModel:n.getItemModel(r),R=m.getModel("emphasis");c=R.getModel("itemStyle").getItemStyle(),f=m.getModel(["select","itemStyle"]).getItemStyle(),u=m.getModel(["blur","itemStyle"]).getItemStyle(),d=R.get("focus"),h=R.get("blurScope"),p=R.get("disabled"),v=WS(m),g=R.getShallow("scale"),y=m.getShallow("cursor")}var A=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(A||0)*Math.PI/180||0);var x=K8e(n.getItemVisual(r,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var M=n.getItemVisual(r,"style"),S=M.fill;if(s instanceof Hf){var w=s.style;s.useStyle(Zt({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},M))}else s.__isEmptyBrush?s.useStyle(Zt({},M)):s.useStyle(M),s.style.decal=null,s.setColor(S,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var _=n.getItemVisual(r,"liftZ"),T=this._z2;_!=null?T==null&&(this._z2=s.z2,s.z2+=_):T!=null&&(s.z2=T,this._z2=null);var O=o&&o.useNameLabel;US(s,v,{labelFetcher:l,labelDataIndex:r,defaultText:N,inheritColor:S,defaultOpacity:M.opacity});function N(E){return O?n.getName(E):wee(n,E)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var P=s.ensureState("emphasis");P.style=c,s.ensureState("select").style=f,s.ensureState("blur").style=u;var C=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*C,P.scaleY=this._sizeY*C,this.setSymbolScale(1),vS(this,d,h,p)},e.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},e.prototype.fadeOut=function(n,r,a){var i=this.childAt(0),o=Ra(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&IX(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();IX(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},e.getSymbolSize=function(n,r){return Q8e(n.getItemVisual(r,"symbolSize"))},e.getSymbolZ2=function(n,r){return n.getItemVisual(r,"z2")},e}(ki);function tlt(t,e){this.parent.drift(t,e)}function hH(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&t.getItemVisual(n,"symbol")!=="none"}function kye(t){return t!=null&&!kn(t)&&(t={isIgnore:t}),t||{}}function Eye(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:WS(e),cursorStyle:e.get("cursor")}}var HLe=function(){function t(e){this.group=new ki,this._SymbolCtor=e||Lee}return t.prototype.updateData=function(e,n){this._progressiveEls=null,n=kye(n);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=Eye(e),c={disableAnimation:s},u=n.getSymbolPoint||function(f){return e.getItemLayout(f)};i||r.removeAll(),e.diff(i).add(function(f){var d=u(f);if(hH(e,d,f,n)){var h=new o(e,f,l,c);h.setPosition(d),e.setItemGraphicEl(f,h),r.add(h)}}).update(function(f,d){var h=i.getItemGraphicEl(d),p=u(f);if(!hH(e,p,f,n)){r.remove(h);return}var v=e.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==v)r.remove(h),h=new o(e,f,l,c),h.setPosition(p);else{h.updateData(e,f,l,c);var y={x:p[0],y:p[1]};s?h.attr(y):hs(h,y,a)}r.add(h),e.setItemGraphicEl(f,h)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},a)}).execute(),this._getSymbolPoint=u,this._data=e},t.prototype.updateLayout=function(){var e=this,n=this._data;n&&n.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Eye(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n,r){this._progressiveEls=[],r=kye(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=n.getItemLayout(i);if(hH(n,o,i,r)){var s=new this._SymbolCtor(n,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),n.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){AV(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var n=this.group,r=this._data;r&&e?r.eachItemGraphicEl(function(a){a.fadeOut(function(){n.remove(a)},r.hostModel)}):n.removeAll()},t}();function GLe(t,e,n){var r=t.getBaseAxis(),a=t.getOtherAxis(r),i=nlt(a,n),o=r.dim,s=a.dim,l=e.mapDimension(s),c=e.mapDimension(o),u=s==="x"||s==="radius"?1:0,f=nn(t.dimensions,function(p){return e.mapDimension(p)}),d=!1,h=e.getCalculationInfo("stackResultDimension");return RS(e,f[0])&&(d=!0,f[0]=h),RS(e,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function nlt(t,e){var n=0,r=t.scale.getExtent();return e==="start"?n=r[0]:e==="end"?n=r[1]:oa(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function $Le(t,e,n,r){var a=NaN;t.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=t.valueStart);var i=t.baseDataOffset,o=[];return o[i]=n.get(t.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function rlt(t,e){var n=[];return e.diff(t).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,a){n.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function alt(t,e,n,r,a,i,o,s){for(var l=rlt(t,e),c=[],u=[],f=[],d=[],h=[],p=[],v=[],g=GLe(a,e,o),y=t.getLayout("points")||[],m=e.getLayout("points")||[],R=0;R<l.length;R++){var A=l[R],x=!0,M=void 0,S=void 0;switch(A.cmd){case"=":M=A.idx*2,S=A.idx1*2;var w=y[M],_=y[M+1],T=m[S],O=m[S+1];(isNaN(w)||isNaN(_))&&(w=T,_=O),c.push(w,_),u.push(T,O),f.push(n[M],n[M+1]),d.push(r[S],r[S+1]),v.push(e.getRawIndex(A.idx1));break;case"+":var N=A.idx,P=g.dataDimsForPoint,C=a.dataToPoint([e.get(P[0],N),e.get(P[1],N)]);S=N*2,c.push(C[0],C[1]),u.push(m[S],m[S+1]);var E=$Le(g,a,e,N);f.push(E[0],E[1]),d.push(r[S],r[S+1]),v.push(e.getRawIndex(N));break;case"-":x=!1}x&&(h.push(A),p.push(p.length))}p.sort(function(ce,B){return v[ce]-v[B]});for(var F=c.length,Y=u0(F),Q=u0(F),K=u0(F),ne=u0(F),Z=[],R=0;R<p.length;R++){var $=p[R],G=R*2,ee=$*2;Y[G]=c[ee],Y[G+1]=c[ee+1],Q[G]=u[ee],Q[G+1]=u[ee+1],K[G]=f[ee],K[G+1]=f[ee+1],ne[G]=d[ee],ne[G+1]=d[ee+1],Z[R]=h[$]}return{current:Y,next:Q,stackedOnCurrent:K,stackedOnNext:ne,status:Z}}var Yv=Math.min,Bv=Math.max;function iy(t,e){return isNaN(t)||isNaN(e)}function Jz(t,e,n,r,a,i,o,s,l){for(var c,u,f,d,h,p,v=n,g=0;g<r;g++){var y=e[v*2],m=e[v*2+1];if(v>=a||v<0)break;if(iy(y,m)){if(l){v+=i;continue}break}if(v===n)t[i>0?"moveTo":"lineTo"](y,m),f=y,d=m;else{var R=y-c,A=m-u;if(R*R+A*A<.5){v+=i;continue}if(o>0){for(var x=v+i,M=e[x*2],S=e[x*2+1];M===y&&S===m&&g<r;)g++,x+=i,v+=i,M=e[x*2],S=e[x*2+1],y=e[v*2],m=e[v*2+1],R=y-c,A=m-u;var w=g+1;if(l)for(;iy(M,S)&&w<r;)w++,x+=i,M=e[x*2],S=e[x*2+1];var _=.5,T=0,O=0,N=void 0,P=void 0;if(w>=r||iy(M,S))h=y,p=m;else{T=M-c,O=S-u;var C=y-c,E=M-y,F=m-u,Y=S-m,Q=void 0,K=void 0;if(s==="x"){Q=Math.abs(C),K=Math.abs(E);var ne=T>0?1:-1;h=y-ne*Q*o,p=m,N=y+ne*K*o,P=m}else if(s==="y"){Q=Math.abs(F),K=Math.abs(Y);var Z=O>0?1:-1;h=y,p=m-Z*Q*o,N=y,P=m+Z*K*o}else Q=Math.sqrt(C*C+F*F),K=Math.sqrt(E*E+Y*Y),_=K/(K+Q),h=y-T*o*(1-_),p=m-O*o*(1-_),N=y+T*o*_,P=m+O*o*_,N=Yv(N,Bv(M,y)),P=Yv(P,Bv(S,m)),N=Bv(N,Yv(M,y)),P=Bv(P,Yv(S,m)),T=N-y,O=P-m,h=y-T*Q/K,p=m-O*Q/K,h=Yv(h,Bv(c,y)),p=Yv(p,Bv(u,m)),h=Bv(h,Yv(c,y)),p=Bv(p,Yv(u,m)),T=y-h,O=m-p,N=y+T*K/Q,P=m+O*K/Q}t.bezierCurveTo(f,d,h,p,y,m),f=N,d=P}else t.lineTo(y,m)}c=y,u=m,v+=i}return g}var zLe=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),ilt=function(t){Jt(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:er.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new zLe},e.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&iy(a[o*2-2],a[o*2-1]);o--);for(;i<o&&iy(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=Jz(n,a,i,o,o,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},e.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=K1.CMD,s,l,c=r==="x",u=[],f=0;f<i.length;){var d=i[f++],h=void 0,p=void 0,v=void 0,g=void 0,y=void 0,m=void 0,R=void 0;switch(d){case o.M:s=i[f++],l=i[f++];break;case o.L:if(h=i[f++],p=i[f++],R=c?(n-s)/(h-s):(n-l)/(p-l),R<=1&&R>=0){var A=c?(p-l)*R+l:(h-s)*R+s;return c?[n,A]:[A,n]}s=h,l=p;break;case o.C:h=i[f++],p=i[f++],v=i[f++],g=i[f++],y=i[f++],m=i[f++];var x=c?AX(s,h,v,y,n,u):AX(l,p,g,m,n,u);if(x>0)for(var M=0;M<x;M++){var S=u[M];if(S<=1&&S>=0){var A=c?ko(l,p,g,m,S):ko(s,h,v,y,S);return c?[n,A]:[A,n]}}s=y,l=m;break}}},e}(Zr),olt=function(t){Jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(zLe),slt=function(t){Jt(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new olt},e.prototype.buildPath=function(n,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&iy(a[s*2-2],a[s*2-1]);s--);for(;o<s&&iy(a[o*2],a[o*2+1]);o++);}for(;o<s;){var c=Jz(n,a,o,s,s,1,r.smooth,l,r.connectNulls);Jz(n,i,o+c-1,c,s,-1,r.stackedOnSmooth,l,r.connectNulls),o+=c+1,n.closePath()}},e}(Zr);function JLe(t,e,n,r,a){var i=t.getArea(),o=i.x,s=i.y,l=i.width,c=i.height,u=n.get(["lineStyle","width"])||0;o-=u/2,s-=u/2,l+=u,c+=u,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new Ii({shape:{x:o,y:s,width:l,height:c}});if(e){var d=t.getBaseAxis(),h=d.isHorizontal(),p=d.inverse;h?(p&&(f.shape.x+=l),f.shape.width=0):(p||(f.shape.y+=c),f.shape.height=0);var v=$n(a)?function(g){a(g,f)}:null;xl(f,{shape:{width:l,height:c,x:o,y:s}},n,null,r,v)}return f}function jLe(t,e,n){var r=t.getArea(),a=Fo(r.r0,1),i=Fo(r.r,1),o=new fg({shape:{cx:Fo(t.cx,1),cy:Fo(t.cy,1),r0:a,r:i,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=r.startAngle:o.shape.r=a,xl(o,{shape:{endAngle:r.endAngle,r:i}},n)}return o}function llt(t,e,n,r,a){if(t){if(t.type==="polar")return jLe(t,e,n);if(t.type==="cartesian2d")return JLe(t,e,n,r,a)}else return null;return null}function Tee(t,e){return t.type===e}function Fye(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function Xye(t){for(var e=1/0,n=1/0,r=-1/0,a=-1/0,i=0;i<t.length;){var o=t[i++],s=t[i++];isNaN(o)||(e=Math.min(o,e),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),a=Math.max(s,a))}return[[e,n],[r,a]]}function Dye(t,e){var n=Xye(t),r=n[0],a=n[1],i=Xye(e),o=i[0],s=i[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function Vye(t){return oa(t)?t:t?.5:0}function clt(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),a=u0(r*2),i=0;i<r;i++){var o=$Le(n,t,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Zv(t,e,n,r,a){var i=n.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,c=[],u=[],f=[],d=[];if(a){for(l=0;l<t.length;l+=2){var h=e||t;!isNaN(h[l])&&!isNaN(h[l+1])&&d.push(t[l],t[l+1])}t=d}for(l=0;l<t.length-2;l+=2)switch(f[0]=t[l+2],f[1]=t[l+3],u[0]=t[l],u[1]=t[l+1],s.push(u[0],u[1]),r){case"end":c[o]=f[o],c[1-o]=u[1-o],s.push(c[0],c[1]);break;case"middle":var p=(u[o]+f[o])/2,v=[];c[o]=v[o]=p,c[1-o]=u[1-o],v[1-o]=f[1-o],s.push(c[0],c[1]),s.push(v[0],v[1]);break;default:c[o]=u[o],c[1-o]=f[1-o],s.push(c[0],c[1])}return s.push(t[l++],t[l++]),s}function ult(t,e){var n=[],r=t.length,a,i;function o(u,f,d){var h=u.coord,p=(d-h)/(f.coord-h),v=Wqe(p,[u.color,f.color]);return{coord:d,color:v}}for(var s=0;s<r;s++){var l=t[s],c=l.coord;if(c<0)a=l;else if(c>e){i?n.push(o(i,l,e)):a&&n.push(o(a,l,0),o(a,l,e));break}else a&&(n.push(o(a,l,0)),a=null),n.push(l),i=l}return n}function flt(t,e,n){var r=t.getVisual("visualMeta");if(!(!r||!r.length||!t.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=t.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),c=nn(i.stops,function(R){return{coord:l.toGlobalCoord(l.dataToCoord(R.value)),color:R.color}}),u=c.length,f=i.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),f.reverse());var d=ult(c,a==="x"?n.getWidth():n.getHeight()),h=d.length;if(!h&&u)return c[0].coord<0?f[1]?f[1]:c[u-1].color:f[0]?f[0]:c[0].color;var p=10,v=d[0].coord-p,g=d[h-1].coord+p,y=g-v;if(y<.001)return"transparent";Ge(d,function(R){R.offset=(R.coord-v)/y}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var m=new Ywe(0,0,0,0,d,!0);return m[a]=v,m[a+"2"]=g,m}}}function dlt(t,e,n){var r=t.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&hlt(i,e))){var o=e.mapDimension(i.dim),s={};return Ge(i.getViewLabels(),function(l){var c=i.scale.getRawOrdinalNumber(l.tickValue);s[c]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function hlt(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Lee.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>r)return!1;return!0}function plt(t,e){return isNaN(t)||isNaN(e)}function vlt(t){for(var e=t.length/2;e>0&&plt(t[e*2-2],t[e*2-1]);e--);return e-1}function Uye(t,e){return[t[e*2],t[e*2+1]]}function glt(t,e,n){for(var r=t.length/2,a=n==="x"?0:1,i,o,s=0,l=-1,c=0;c<r;c++)if(o=t[c*2+a],!(isNaN(o)||isNaN(t[c*2+1-a]))){if(c===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=c;break}s=c,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function qLe(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Su.length;e++)if(t.get([Su[e],"endLabel","show"]))return!0;return!1}function pH(t,e,n,r){if(Tee(e,"cartesian2d")){var a=r.getModel("endLabel"),i=a.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=qLe(r)?function(h,p){t._endLabelOnDuring(h,p,o,s,i,a,e)}:null,c=e.getBaseAxis().isHorizontal(),u=JLe(e,n,r,function(){var h=t._endLabel;h&&n&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var f=u.shape,d=Math.max(f.width,f.height);c?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,u),u}else return jLe(e,n,r)}function mlt(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),a=n.inverse,i=r?a?"right":"left":"center",o=r?"middle":a?"top":"bottom";return{normal:{align:t.get("align")||i,verticalAlign:t.get("verticalAlign")||o}}}var ylt=function(t){Jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var n=new ki,r=new HLe;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n,this._changePolyState=Ha(this._changePolyState,this)},e.prototype.render=function(n,r,a){var i=n.coordinateSystem,o=this.group,s=n.getData(),l=n.getModel("lineStyle"),c=n.getModel("areaStyle"),u=s.getLayout("points")||[],f=i.type==="polar",d=this._coordSys,h=this._symbolDraw,p=this._polyline,v=this._polygon,g=this._lineGroup,y=!r.ssr&&n.get("animation"),m=!c.isEmpty(),R=c.get("origin"),A=GLe(i,s,R),x=m&&clt(i,s,A),M=n.get("showSymbol"),S=n.get("connectNulls"),w=M&&!f&&dlt(n,s,i),_=this._data;_&&_.eachItemGraphicEl(function(ce,B){ce.__temp&&(o.remove(ce),_.setItemGraphicEl(B,null))}),M||h.remove(),o.add(g);var T=f?!1:n.get("step"),O;i&&i.getArea&&n.get("clip",!0)&&(O=i.getArea(),O.width!=null?(O.x-=.1,O.y-=.1,O.width+=.2,O.height+=.2):O.r0&&(O.r0-=.5,O.r+=.5)),this._clipShapeForSymbol=O;var N=flt(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(p&&d.type===i.type&&T===this._step))M&&h.updateData(s,{isIgnore:w,clipShape:O,disableAnimation:!0,getSymbolPoint:function(ce){return[u[ce*2],u[ce*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,O),T&&(x&&(x=Zv(x,u,i,T,S)),u=Zv(u,null,i,T,S)),p=this._newPolyline(u),m?v=this._newPolygon(u,x):v&&(g.remove(v),v=this._polygon=null),f||this._initOrUpdateEndLabel(n,i,Nz(N)),g.setClipPath(pH(this,i,!0,n));else{m&&!v?v=this._newPolygon(u,x):v&&!m&&(g.remove(v),v=this._polygon=null),f||this._initOrUpdateEndLabel(n,i,Nz(N));var P=g.getClipPath();if(P){var C=pH(this,i,!1,n);xl(P,{shape:C.shape},n)}else g.setClipPath(pH(this,i,!0,n));M&&h.updateData(s,{isIgnore:w,clipShape:O,disableAnimation:!0,getSymbolPoint:function(ce){return[u[ce*2],u[ce*2+1]]}}),(!Fye(this._stackedOnPoints,x)||!Fye(this._points,u))&&(y?this._doUpdateAnimation(s,x,i,a,T,R,S):(T&&(x&&(x=Zv(x,u,i,T,S)),u=Zv(u,null,i,T,S)),p.setShape({points:u}),v&&v.setShape({points:u,stackedOnPoints:x})))}var E=n.getModel("emphasis"),F=E.get("focus"),Y=E.get("blurScope"),Q=E.get("disabled");if(p.useStyle(Or(l.getLineStyle(),{fill:"none",stroke:N,lineJoin:"bevel"})),gS(p,n,"lineStyle"),p.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var K=p.getState("emphasis").style;K.lineWidth=+p.style.lineWidth+1}Ra(p).seriesIndex=n.seriesIndex,vS(p,F,Y,Q);var ne=Vye(n.get("smooth")),Z=n.get("smoothMonotone");if(p.setShape({smooth:ne,smoothMonotone:Z,connectNulls:S}),v){var $=s.getCalculationInfo("stackedOnSeries"),G=0;v.useStyle(Or(c.getAreaStyle(),{fill:N,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),$&&(G=Vye($.get("smooth"))),v.setShape({smooth:ne,stackedOnSmooth:G,smoothMonotone:Z,connectNulls:S}),gS(v,n,"areaStyle"),Ra(v).seriesIndex=n.seriesIndex,vS(v,F,Y,Q)}var ee=this._changePolyState;s.eachItemGraphicEl(function(ce){ce&&(ce.onHoverStateChange=ee)}),this._polyline.onHoverStateChange=ee,this._data=s,this._coordSys=i,this._stackedOnPoints=x,this._points=u,this._step=T,this._valueOrigin=R,n.get("triggerLineEvent")&&(this.packEventData(n,p),v&&this.packEventData(n,v))},e.prototype.packEventData=function(n,r){Ra(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},e.prototype.highlight=function(n,r,a,i){var o=n.getData(),s=pS(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),c=o.getItemGraphicEl(s);if(!c){var u=l[s*2],f=l[s*2+1];if(isNaN(u)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,f))return;var d=n.get("zlevel")||0,h=n.get("z")||0;c=new Lee(o,s),c.x=u,c.y=f,c.setZ(d,h);var p=c.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=h,p.z2=this._polyline.z2+1),c.__temp=!0,o.setItemGraphicEl(s,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else Sl.prototype.highlight.call(this,n,r,a,i)},e.prototype.downplay=function(n,r,a,i){var o=n.getData(),s=pS(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Sl.prototype.downplay.call(this,n,r,a,i)},e.prototype._changePolyState=function(n){var r=this._polygon;$me(this._polyline,n),r&&$me(r,n)},e.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new ilt({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(n,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new slt({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(n,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var c=n.hostModel,u=c.get("animationDuration");$n(u)&&(u=u(null));var f=c.get("animationDelay")||0,d=$n(f)?f(null):f;n.eachItemGraphicEl(function(h,p){var v=h;if(v){var g=[h.x,h.y],y=void 0,m=void 0,R=void 0;if(a)if(o){var A=a,x=r.pointToCoord(g);i?(y=A.startAngle,m=A.endAngle,R=-x[1]/180*Math.PI):(y=A.r0,m=A.r,R=x[0])}else{var M=a;i?(y=M.x,m=M.x+M.width,R=h.x):(y=M.y+M.height,m=M.y,R=h.y)}var S=m===y?0:(R-y)/(m-y);l&&(S=1-S);var w=$n(f)?f(p):u*S+d,_=v.getSymbolPath(),T=_.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:w}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:w}),_.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(qLe(n)){var o=n.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new Ac({z2:200}),c.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var u=vlt(l);u>=0&&(US(s,WS(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:u,defaultText:function(f,d,h){return h!=null?KLe(o,h):wee(o,f)},enableTextSetter:!0},mlt(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(n,r,a,i,o,s,l){var c=this._endLabel,u=this._polyline;if(c){n<1&&i.originalX==null&&(i.originalX=c.x,i.originalY=c.y);var f=a.getLayout("points"),d=a.hostModel,h=d.get("connectNulls"),p=s.get("precision"),v=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,R=r.shape,A=m?y?R.x:R.y+R.height:y?R.x+R.width:R.y,x=(y?v:0)*(m?-1:1),M=(y?0:-v)*(m?-1:1),S=y?"x":"y",w=glt(f,A,S),_=w.range,T=_[1]-_[0],O=void 0;if(T>=1){if(T>1&&!h){var N=Uye(f,_[0]);c.attr({x:N[0]+x,y:N[1]+M}),o&&(O=d.getRawValue(_[0]))}else{var N=u.getPointOn(A,S);N&&c.attr({x:N[0]+x,y:N[1]+M});var P=d.getRawValue(_[0]),C=d.getRawValue(_[1]);o&&(O=jet(a,p,P,C,w.t))}i.lastFrameIndex=_[0]}else{var E=n===1||i.lastFrameIndex>0?_[0]:0,N=Uye(f,E);o&&(O=d.getRawValue(E)),c.attr({x:N[0]+x,y:N[1]+M})}if(o){var F=bV(c);typeof F.setLabelText=="function"&&F.setLabelText(O)}}},e.prototype._doUpdateAnimation=function(n,r,a,i,o,s,l){var c=this._polyline,u=this._polygon,f=n.hostModel,d=alt(this._data,n,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=d.current,p=d.stackedOnCurrent,v=d.next,g=d.stackedOnNext;if(o&&(p=Zv(d.stackedOnCurrent,d.current,a,o,l),h=Zv(d.current,null,a,o,l),g=Zv(d.stackedOnNext,d.next,a,o,l),v=Zv(d.next,null,a,o,l)),Dye(h,v)>3e3||u&&Dye(p,g)>3e3){c.stopAnimation(),c.setShape({points:v}),u&&(u.stopAnimation(),u.setShape({points:v,stackedOnPoints:g}));return}c.shape.__points=d.current,c.shape.points=h;var y={shape:{points:v}};d.current!==h&&(y.shape.__points=d.next),c.stopAnimation(),hs(c,y,f),u&&(u.setShape({points:h,stackedOnPoints:p}),u.stopAnimation(),hs(u,{shape:{stackedOnPoints:g}},f),c.shape.points!==u.shape.points&&(u.shape.points=c.shape.points));for(var m=[],R=d.status,A=0;A<R.length;A++){var x=R[A].cmd;if(x==="="){var M=n.getItemGraphicEl(R[A].idx1);M&&m.push({el:M,ptIdx:A})}}c.animators&&c.animators.length&&c.animators[0].during(function(){u&&u.dirtyShape();for(var S=c.shape.__points,w=0;w<m.length;w++){var _=m[w].el,T=m[w].ptIdx*2;_.x=S[T],_.y=S[T+1],_.markRedraw()}})},e.prototype.remove=function(n){var r=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(r.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Sl);function Oee(t,e){return{seriesType:t,plan:pee(),reset:function(n){var r=n.getData(),a=n.coordinateSystem,i=n.pipelineContext,o=e||i.large;if(a){var s=nn(a.dimensions,function(h){return r.mapDimension(h)}).slice(0,2),l=s.length,c=r.getCalculationInfo("stackResultDimension");RS(r,s[0])&&(s[0]=c),RS(r,s[1])&&(s[1]=c);var u=r.getStore(),f=r.getDimensionIndex(s[0]),d=r.getDimensionIndex(s[1]);return l&&{progress:function(h,p){for(var v=h.end-h.start,g=o&&u0(v*l),y=[],m=[],R=h.start,A=0;R<h.end;R++){var x=void 0;if(l===1){var M=u.get(f,R);x=a.dataToPoint(M,null,m)}else y[0]=u.get(f,R),y[1]=u.get(d,R),x=a.dataToPoint(y,null,m);o?(g[A++]=x[0],g[A++]=x[1]):p.setItemLayout(R,x.slice())}o&&p.setLayout("points",g)}}}}}}var Alt={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return n===0?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},Rlt=function(t){return Math.round(t.length/2)};function e6e(t){return{seriesType:t,reset:function(e,n,r){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),c=o.getOtherAxis(l),u=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(c.dim),1/h)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(c.dim),1/h));var p=void 0;Sn(i)?p=Alt[i]:$n(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(c.dim),1/h,p,Rlt))}}}}}function blt(t){t.registerChartView(ylt),t.registerSeriesModel(elt),t.registerLayout(Oee("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var n=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,e6e("line"))}var jz=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return LV(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(n,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(n),s=i.dataToPoint(o);if(a)Ge(i.getAxes(),function(d,h){if(d.type==="category"&&r!=null){var p=d.getTicksCoords(),v=d.getTickModel().get("alignWithLabel"),g=o[h],y=r[h]==="x1"||r[h]==="y1";if(y&&!v&&(g+=1),p.length<2)return;if(p.length===2){s[h]=d.toGlobalCoord(d.getExtent()[y?1:0]);return}for(var m=void 0,R=void 0,A=1,x=0;x<p.length;x++){var M=p[x].coord,S=x===p.length-1?p[x-1].tickValue+A:p[x].tickValue;if(S===g){R=M;break}else if(S<g)m=M;else if(m!=null&&S>g){R=(M+m)/2;break}x===1&&(A=S-p[0].tickValue)}R==null&&(m?m&&(R=p[p.length-1].coord):R=p[0].coord),s[h]=d.toGlobalCoord(R)}});else{var l=this.getData(),c=l.getLayout("offset"),u=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=c+u/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(Rc);Rc.registerClass(jz);var xlt=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(){return LV(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},e.prototype.brushSelector=function(n,r,a){return a.rect(r.getItemLayout(n))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=n8e(jz.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:er.color.primary,borderWidth:2}},realtimeSort:!1}),e}(jz),Slt=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Wye=function(t){Jt(e,t);function e(n){var r=t.call(this,n)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new Slt},e.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,c=o+l,u=r.startAngle,f=r.endAngle,d=r.clockwise,h=Math.PI*2,p=d?f-u<h:u-f<h;p||(u=f-(d?h:-h));var v=Math.cos(u),g=Math.sin(u),y=Math.cos(f),m=Math.sin(f);p?(n.moveTo(v*o+a,g*o+i),n.arc(v*c+a,g*c+i,l,-Math.PI+u,u,!d)):n.moveTo(v*s+a,g*s+i),n.arc(a,i,s,u,f,!d),n.arc(y*c+a,m*c+i,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&n.arc(a,i,o,f,u,d)},e}(Zr);function Mlt(t,e){e=e||{};var n=e.isRoundCap;return function(r,a,i){var o=a.position;if(!o||o instanceof Array)return _X(r,a,i);var s=t(o),l=a.distance!=null?a.distance:5,c=this.shape,u=c.cx,f=c.cy,d=c.r,h=c.r0,p=(d+h)/2,v=c.startAngle,g=c.endAngle,y=(v+g)/2,m=n?Math.abs(d-h)/2:0,R=Math.cos,A=Math.sin,x=u+d*R(v),M=f+d*A(v),S="left",w="top";switch(s){case"startArc":x=u+(h-l)*R(y),M=f+(h-l)*A(y),S="center",w="top";break;case"insideStartArc":x=u+(h+l)*R(y),M=f+(h+l)*A(y),S="center",w="bottom";break;case"startAngle":x=u+p*R(v)+aE(v,l+m,!1),M=f+p*A(v)+iE(v,l+m,!1),S="right",w="middle";break;case"insideStartAngle":x=u+p*R(v)+aE(v,-l+m,!1),M=f+p*A(v)+iE(v,-l+m,!1),S="left",w="middle";break;case"middle":x=u+p*R(y),M=f+p*A(y),S="center",w="middle";break;case"endArc":x=u+(d+l)*R(y),M=f+(d+l)*A(y),S="center",w="bottom";break;case"insideEndArc":x=u+(d-l)*R(y),M=f+(d-l)*A(y),S="center",w="top";break;case"endAngle":x=u+p*R(g)+aE(g,l+m,!0),M=f+p*A(g)+iE(g,l+m,!0),S="left",w="middle";break;case"insideEndAngle":x=u+p*R(g)+aE(g,-l+m,!0),M=f+p*A(g)+iE(g,-l+m,!0),S="right",w="middle";break;default:return _X(r,a,i)}return r=r||{},r.x=x,r.y=M,r.align=S,r.verticalAlign=w,r}}function _lt(t,e,n,r){if(oa(r)){t.setTextConfig({rotation:r});return}else if(dn(e)){t.setTextConfig({rotation:0});return}var a=t.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,c=n(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var u=Math.PI*1.5-l;c==="middle"&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),t.setTextConfig({rotation:u})}function aE(t,e,n){return e*Math.sin(t)*(n?-1:1)}function iE(t,e,n){return e*Math.cos(t)*(n?1:-1)}function d_(t,e,n){var r=t.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;dn(r)||(r=[r,r,r,r]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:nn(r,function(i){return Q1(i,a)})}}var vH=Math.max,gH=Math.min;function wlt(t,e){var n=t.getArea&&t.getArea();if(Tee(t,"cartesian2d")){var r=t.getBaseAxis();if(r.type!=="category"||!r.onBand){var a=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=a,n.width+=a*2):(n.y-=a,n.height+=a*2)}}return n}var Llt=function(t){Jt(e,t);function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return e.prototype.render=function(n,r,a,i){this._model=n,this._removeOnRenderedListener(a),this._updateDrawMode(n);var o=n.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,a):this._renderNormal(n,r,a,i))},e.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},e.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},e.prototype.eachRendered=function(n){AV(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n,r,a,i){var o=this.group,s=n.getData(),l=this._data,c=n.coordinateSystem,u=c.getBaseAxis(),f;c.type==="cartesian2d"?f=u.isHorizontal():c.type==="polar"&&(f=u.dim==="angle");var d=n.isAnimationEnabled()?n:null,h=Tlt(n,c);h&&this._enableRealtimeSort(h,s,a);var p=n.get("clip",!0)||h,v=wlt(c,s);o.removeClipPath();var g=n.get("roundCap",!0),y=n.get("showBackground",!0),m=n.getModel("backgroundStyle"),R=m.get("borderRadius")||0,A=[],x=this._backgroundEls,M=i&&i.isInitSort,S=i&&i.type==="changeAxisOrder";function w(O){var N=oE[c.type](s,O);if(!N)return null;var P=Elt(c,f,N);return P.useStyle(m.getItemStyle()),c.type==="cartesian2d"?P.setShape("r",R):P.setShape("cornerRadius",R),A[O]=P,P}s.diff(l).add(function(O){var N=s.getItemModel(O),P=oE[c.type](s,O,N);if(P&&(y&&w(O),!(!s.hasValue(O)||!Kye[c.type](P)))){var C=!1;p&&(C=Yye[c.type](v,P));var E=Bye[c.type](n,s,O,P,f,d,u.model,!1,g);h&&(E.forceLabelAnimation=!0),Hye(E,s,O,N,P,n,f,c.type==="polar"),M?E.attr({shape:P}):h?Zye(h,d,E,P,O,f,!1,!1):xl(E,{shape:P},n,O),s.setItemGraphicEl(O,E),o.add(E),E.ignore=C}}).update(function(O,N){var P=s.getItemModel(O),C=oE[c.type](s,O,P);if(C){if(y){var E=void 0;x.length===0?E=w(N):(E=x[N],E.useStyle(m.getItemStyle()),c.type==="cartesian2d"?E.setShape("r",R):E.setShape("cornerRadius",R),A[O]=E);var F=oE[c.type](s,O),Y=n6e(f,F,c);hs(E,{shape:Y},d,O)}var Q=l.getItemGraphicEl(N);if(!s.hasValue(O)||!Kye[c.type](C)){o.remove(Q);return}var K=!1;p&&(K=Yye[c.type](v,C),K&&o.remove(Q));var ne=Q&&(Q.type==="sector"&&g||Q.type==="sausage"&&!g);if(ne&&(Q&&j_(Q,n,N),Q=null),Q?Uw(Q):Q=Bye[c.type](n,s,O,C,f,d,u.model,!0,g),h&&(Q.forceLabelAnimation=!0),S){var Z=Q.getTextContent();if(Z){var $=bV(Z);$.prevValue!=null&&($.prevValue=$.value)}}else Hye(Q,s,O,P,C,n,f,c.type==="polar");M?Q.attr({shape:C}):h?Zye(h,d,Q,C,O,f,!0,S):hs(Q,{shape:C},n,O,null),s.setItemGraphicEl(O,Q),Q.ignore=K,o.add(Q)}}).remove(function(O){var N=l.getItemGraphicEl(O);N&&j_(N,n,O)}).execute();var _=this._backgroundGroup||(this._backgroundGroup=new ki);_.removeAll();for(var T=0;T<A.length;++T)_.add(A[T]);o.add(_),this._backgroundEls=A,this._data=s},e.prototype._renderLarge=function(n,r,a){this._clear(),$ye(n,this.group),this._updateLargeClip(n)},e.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),$ye(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&llt(n.coordinateSystem,!1,n),a=this.group;r?a.setClipPath(r):a.removeClipPath()},e.prototype._enableRealtimeSort=function(n,r,a){var i=this;if(r.count()){var o=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,a),this._isFirstFrame=!1;else{var s=function(l){var c=r.getItemGraphicEl(l),u=c&&c.shape;return u&&Math.abs(o.isHorizontal()?u.height:u.width)||0};this._onRendered=function(){i._updateSortWithinSameData(r,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(n,r,a){var i=[];return n.each(n.mapDimension(r.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:nn(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(n,r,a){for(var i=a.scale,o=n.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,c=i.getOrdinalMeta().categories.length;l<c;++l){var u=n.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=u<0?Number.MIN_VALUE:r(n.indexOfRawIndex(u));if(f>s)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(n,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(n.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(n,r,a,i){if(this._isOrderChangedWithinSameData(n,r,a)){var o=this._dataSort(n,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(n,r,a){var i=r.baseAxis,o=this._dataSort(n,i,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(n){var r=this.group,a=this._data;n&&n.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){j_(i,n,Ra(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Sl),Yye={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,i=t.y+t.height,o=vH(e.x,t.x),s=gH(e.x+e.width,a),l=vH(e.y,t.y),c=gH(e.y+e.height,i),u=s<o,f=c<l;return e.x=u&&o>a?s:o,e.y=f&&l>i?c:l,e.width=u?0:s-o,e.height=f?0:c-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),u||f},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var a=gH(e.r,t.r),i=vH(e.r0,t.r0);e.r=a,e.r0=i;var o=a-i<0;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},Bye={cartesian2d:function(t,e,n,r,a,i,o,s,l){var c=new Ii({shape:Zt({},r),z2:1});if(c.__dataIndex=n,c.name="item",i){var u=c.shape,f=a?"height":"width";u[f]=0}return c},polar:function(t,e,n,r,a,i,o,s,l){var c=!a&&l?Wye:fg,u=new c({shape:r,z2:1});u.name="item";var f=t6e(a);if(u.calculateTextPosition=Mlt(f,{isRoundCap:c===Wye}),i){var d=u.shape,h=a?"r":"endAngle",p={};d[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?hs:xl)(u,{shape:p},i)}return u}};function Tlt(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function Zye(t,e,n,r,a,i,o,s){var l,c;i?(c={x:r.x,width:r.width},l={y:r.y,height:r.height}):(c={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?hs:xl)(n,{shape:l},e,a,null);var u=e?t.baseAxis.model:null;(o?hs:xl)(n,{shape:c},u,a)}function Qye(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var Olt=["x","y","width","height"],Plt=["cx","cy","r","startAngle","endAngle"],Kye={cartesian2d:function(t){return!Qye(t,Olt)},polar:function(t){return!Qye(t,Plt)}},oE={cartesian2d:function(t,e,n){var r=t.getItemLayout(e);if(!r)return null;var a=n?Nlt(n,r):0,i=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function Clt(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function t6e(t){return function(e){var n=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(t)}function Hye(t,e,n,r,a,i,o,s){var l=e.getItemVisual(n,"style");if(s){if(!i.get("roundCap")){var u=t.shape,f=d_(r.getModel("itemStyle"),u,!0);Zt(u,f),t.setShape(u)}}else{var c=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(l);var d=r.getShallow("cursor");d&&t.attr("cursor",d);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=WS(r);US(t,p,{labelFetcher:i,labelDataIndex:n,defaultText:wee(i.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=t.getTextContent();if(s&&v){var g=r.get(["label","position"]);t.textConfig.inside=g==="middle"?!0:null,_lt(t,g==="outside"?h:g,t6e(o),r.get(["label","rotate"]))}frt(v,p,i.getRawValue(n),function(m){return KLe(e,m)});var y=r.getModel(["emphasis"]);vS(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),gS(t,r),Clt(a)&&(t.style.fill="none",t.style.stroke="none",Ge(t.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function Nlt(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var Ilt=function(){function t(){}return t}(),Gye=function(t){Jt(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new Ilt},e.prototype.buildPath=function(n,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],c=this.barWidth,u=0;u<a.length;u+=3)l[i]=c,l[o]=a[u+2],s[i]=a[u+i],s[o]=a[u+o],n.rect(s[0],s[1],l[0],l[1])},e}(Zr);function $ye(t,e,n,r){var a=t.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=t.getModel("backgroundStyle"),c=a.getLayout("largeBackgroundPoints");if(c){var u=new Gye({shape:{points:c},incremental:!!r,silent:!0,z2:0});u.baseDimIdx=i,u.largeDataIndices=o,u.barWidth=s,u.useStyle(l.getItemStyle()),e.add(u),n&&n.push(u)}var f=new Gye({shape:{points:a.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,e.add(f),f.useStyle(a.getVisual("style")),f.style.stroke=null,Ra(f).seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",zye),f.on("mousemove",zye)),n&&n.push(f)}var zye=X8e(function(t){var e=this,n=klt(e,t.offsetX,t.offsetY);Ra(e).dataIndex=n>=0?n:null},30,!1);function klt(t,e,n){for(var r=t.baseDimIdx,a=1-r,i=t.shape.points,o=t.largeDataIndices,s=[],l=[],c=t.barWidth,u=0,f=i.length/3;u<f;u++){var d=u*3;if(l[r]=c,l[a]=i[d+2],s[r]=i[d+r],s[a]=i[d+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[u]}return-1}function n6e(t,e,n){if(Tee(n,"cartesian2d")){var r=e,a=n.getArea();return{x:t?r.x:a.x,y:t?a.y:r.y,width:t?r.width:a.width,height:t?a.height:r.height}}else{var a=n.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:i.r0,r:t?a.r:i.r,startAngle:t?i.startAngle:0,endAngle:t?i.endAngle:Math.PI*2}}}function Elt(t,e,n){var r=t.type==="polar"?fg:Ii;return new r({shape:n6e(e,n,t),silent:!0,z2:0})}function Flt(t){t.registerChartView(Llt),t.registerSeriesModel(xlt),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,cc(lst,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,cst("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,e6e("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,n){var r=e.componentType||"series";n.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var Jye=Math.PI*2,sE=Math.PI/180;function Xlt(t,e,n){e.eachSeriesByType(t,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Krt(r,n),s=o.cx,l=o.cy,c=o.r,u=o.r0,f=o.viewRect,d=-r.get("startAngle")*sE,h=r.get("endAngle"),p=r.get("padAngle")*sE;h=h==="auto"?d-Jye:-h*sE;var v=r.get("minAngle")*sE,g=v+p,y=0;a.each(i,function(Y){!isNaN(Y)&&y++});var m=a.getSum(i),R=Math.PI/(m||y)*2,A=r.get("clockwise"),x=r.get("roseType"),M=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var w=A?1:-1,_=[d,h],T=w*p/2;Awe(_,!A),d=_[0],h=_[1];var O=r6e(r);O.startAngle=d,O.endAngle=h,O.clockwise=A,O.cx=s,O.cy=l,O.r=c,O.r0=u;var N=Math.abs(h-d),P=N,C=0,E=d;if(a.setLayout({viewRect:f,r:c}),a.each(i,function(Y,Q){var K;if(isNaN(Y)){a.setItemLayout(Q,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:A,cx:s,cy:l,r0:u,r:x?NaN:c});return}x!=="area"?K=m===0&&M?R:Y*R:K=N/y,K<g?(K=g,P-=g):C+=Y;var ne=E+w*K,Z=0,$=0;p>K?(Z=E+w*K/2,$=Z):(Z=E+T,$=ne-T),a.setItemLayout(Q,{angle:K,startAngle:Z,endAngle:$,clockwise:A,cx:s,cy:l,r0:u,r:x?pz(Y,S,[u,c]):c}),E=ne}),P<Jye&&y)if(P<=.001){var F=N/y;a.each(i,function(Y,Q){if(!isNaN(Y)){var K=a.getItemLayout(Q);K.angle=F;var ne=0,Z=0;F<p?(ne=d+w*(Q+1/2)*F,Z=ne):(ne=d+w*Q*F+T,Z=d+w*(Q+1)*F-T),K.startAngle=ne,K.endAngle=Z}})}else R=P/C,E=d,a.each(i,function(Y,Q){if(!isNaN(Y)){var K=a.getItemLayout(Q),ne=K.angle===g?g:Y*R,Z=0,$=0;ne<p?(Z=E+w*ne/2,$=Z):(Z=E+T,$=E+w*ne-T),K.startAngle=Z,K.endAngle=$,E+=w*ne}})})}var r6e=mi();function a6e(t){return{seriesType:t,reset:function(e,n){var r=n.findComponents({mainType:"legend"});if(!(!r||!r.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<r.length;s++)if(!r[s].isSelected(o))return!1;return!0})}}}}var Dlt=Math.PI/180;function jye(t,e,n,r,a,i,o,s,l,c){if(t.length<2)return;function u(v){for(var g=v.rB,y=g*g,m=0;m<v.list.length;m++){var R=v.list[m],A=Math.abs(R.label.y-n),x=r+R.len,M=x*x,S=Math.sqrt(Math.abs((1-A*A/y)*M)),w=e+(S+R.len2)*a,_=w-R.label.x,T=R.targetTextWidth-_*a;i6e(R,T,!0),R.label.x=w}}function f(v){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<v.length;m++)if(v[m].labelAlignTo==="none"){var R=v[m],A=R.label.y>n?y:g,x=Math.abs(R.label.y-n);if(x>=A.maxY){var M=R.label.x-e-R.len2*a,S=r+R.len,w=Math.abs(M)<S?Math.sqrt(x*x/(1-M*M/S/S)):S;A.rB=w,A.maxY=x}A.list.push(R)}u(g),u(y)}for(var d=t.length,h=0;h<d;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var p=t[h].label.x-c;t[h].linePoints[1][0]+=p,t[h].label.x=c}jst(t,1,l,l+o)&&f(t)}function Vlt(t,e,n,r,a,i,o,s){for(var l=[],c=[],u=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<t.length;d++){var h=t[d].label;mH(t[d])||(h.x<e?(u=Math.min(u,h.x),l.push(t[d])):(f=Math.max(f,h.x),c.push(t[d])))}for(var d=0;d<t.length;d++){var p=t[d];if(!mH(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var h=p.label,v=p.linePoints,g=void 0;p.labelAlignTo==="edge"?h.x<e?g=v[2][0]-p.labelDistance-o-p.edgeDistance:g=o+a-p.edgeDistance-v[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?h.x<e?g=u-o-p.bleedMargin:g=o+a-f-p.bleedMargin:h.x<e?g=h.x-o-p.bleedMargin:g=o+a-h.x-p.bleedMargin,p.targetTextWidth=g,i6e(p,g,!1)}}jye(c,e,n,r,1,a,i,o,s,f),jye(l,e,n,r,-1,a,i,o,s,u);for(var d=0;d<t.length;d++){var p=t[d];if(!mH(p)&&p.linePoints){var h=p.label,v=p.linePoints,y=p.labelAlignTo==="edge",m=h.style.padding,R=m?m[1]+m[3]:0,A=h.style.backgroundColor?0:R,x=p.rect.width+A,M=v[1][0]-v[2][0];y?h.x<e?v[2][0]=o+p.edgeDistance+x+p.labelDistance:v[2][0]=o+a-p.edgeDistance-x-p.labelDistance:(h.x<e?v[2][0]=h.x+p.labelDistance:v[2][0]=h.x-p.labelDistance,v[1][0]=v[2][0]+M),v[1][1]=v[2][1]=h.y}}}function i6e(t,e,n){if(t.labelStyleWidth==null){var r=t.label,a=r.style,i=t.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,c=a.overflow,u=i.width+(o?0:l);if(e<u||n){if(c&&c.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var f=r.getBoundingRect();r.setStyle("width",Math.ceil(f.width)),r.setStyle("backgroundColor",o)}else{var d=e-l,h=e<u?d:n?d>t.unconstrainedWidth?null:d:null;r.setStyle("width",h)}o6e(i,r)}}}function o6e(t,e){qye.rect=t,QLe(qye,e,Ult)}var Ult={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},qye={};function mH(t){return t.position==="center"}function Wlt(t){var e=t.getData(),n=[],r,a,i=!1,o=(t.get("minShowLabelAngle")||0)*Dlt,s=e.getLayout("viewRect"),l=e.getLayout("r"),c=s.width,u=s.x,f=s.y,d=s.height;function h(M){M.ignore=!0}function p(M){if(!M.ignore)return!0;for(var S in M.states)if(M.states[S].ignore===!1)return!0;return!1}e.each(function(M){var S=e.getItemGraphicEl(M),w=S.shape,_=S.getTextContent(),T=S.getTextGuideLine(),O=e.getItemModel(M),N=O.getModel("label"),P=N.get("position")||O.get(["emphasis","label","position"]),C=N.get("distanceToLabelLine"),E=N.get("alignTo"),F=Aa(N.get("edgeDistance"),c),Y=N.get("bleedMargin");Y==null&&(Y=Math.min(c,d)>200?10:2);var Q=O.getModel("labelLine"),K=Q.get("length");K=Aa(K,c);var ne=Q.get("length2");if(ne=Aa(ne,c),Math.abs(w.endAngle-w.startAngle)<o){Ge(_.states,h),_.ignore=!0,T&&(Ge(T.states,h),T.ignore=!0);return}if(p(_)){var Z=(w.startAngle+w.endAngle)/2,$=Math.cos(Z),G=Math.sin(Z),ee,ce,B,xe;r=w.cx,a=w.cy;var _e=P==="inside"||P==="inner";if(P==="center")ee=w.cx,ce=w.cy,xe="center";else{var se=(_e?(w.r+w.r0)/2*$:w.r*$)+r,z=(_e?(w.r+w.r0)/2*G:w.r*G)+a;if(ee=se+$*3,ce=z+G*3,!_e){var de=se+$*(K+l-w.r),fe=z+G*(K+l-w.r),re=de+($<0?-1:1)*ne,X=fe;E==="edge"?ee=$<0?u+F:u+c-F:ee=re+($<0?-C:C),ce=X,B=[[se,z],[de,fe],[re,X]]}xe=_e?"center":E==="edge"?$>0?"right":"left":$>0?"left":"right"}var j=Math.PI,oe=0,ae=N.get("rotate");if(oa(ae))oe=ae*(j/180);else if(P==="center")oe=0;else if(ae==="radial"||ae===!0){var le=$<0?-Z+j:-Z;oe=le}else if(ae==="tangential"&&P!=="outside"&&P!=="outer"){var ge=Math.atan2($,G);ge<0&&(ge=j*2+ge);var Se=G>0;Se&&(ge=j+ge),oe=ge-j}if(i=!!oe,_.x=ee,_.y=ce,_.rotation=oe,_.setStyle({verticalAlign:"middle"}),_e){_.setStyle({align:xe});var ye=_.states.select;ye&&(ye.x+=_.x,ye.y+=_.y)}else{var me=new fr(0,0,0,0);o6e(me,_),n.push({label:_,labelLine:T,position:P,len:K,len2:ne,minTurnAngle:Q.get("minTurnAngle"),maxSurfaceAngle:Q.get("maxSurfaceAngle"),surfaceNormal:new Zn($,G),linePoints:B,textAlign:xe,labelDistance:C,labelAlignTo:E,edgeDistance:F,bleedMargin:Y,rect:me,unconstrainedWidth:me.width,labelStyleWidth:_.style.width})}S.setTextConfig({inside:_e})}}),!i&&t.get("avoidLabelOverlap")&&Vlt(n,r,a,l,c,d,u,f);for(var v=0;v<n.length;v++){var g=n[v],y=g.label,m=g.labelLine,R=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),R&&(Ge(y.states,h),y.ignore=!0);var A=y.states.select;A&&(A.x+=y.x,A.y+=y.y)}if(m){var x=g.linePoints;R||!x?(Ge(m.states,h),m.ignore=!0):(Zst(x,g.minTurnAngle),Qst(x,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new Zn(x[0][0],x[0][1])})}}}var Ylt=function(t){Jt(e,t);function e(n,r,a){var i=t.call(this)||this;i.z2=2;var o=new Ac;return i.setTextContent(o),i.updateData(n,r,a,!0),i}return e.prototype.updateData=function(n,r,a,i){var o=this,s=n.hostModel,l=n.getItemModel(r),c=l.getModel("emphasis"),u=n.getItemLayout(r),f=Zt(d_(l.getModel("itemStyle"),u,!0),u);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(xl(o,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=u.r0,xl(o,{shape:{r:u.r}},s,r)):a!=null?(o.setShape({startAngle:a,endAngle:a}),xl(o,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},s,r)):(o.shape.endAngle=u.startAngle,hs(o,{shape:{endAngle:u.endAngle}},s,r))}else Uw(o),hs(o,{shape:f},s,r);o.useStyle(n.getItemVisual(r,"style")),gS(o,l);var h=(u.startAngle+u.endAngle)/2,p=s.get("selectedOffset"),v=Math.cos(h)*p,g=Math.sin(h)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,n,r),o.ensureState("emphasis").shape=Zt({r:u.r+(c.get("scale")&&c.get("scaleSize")||0)},d_(c.getModel("itemStyle"),u)),Zt(o.ensureState("select"),{x:v,y:g,shape:d_(l.getModel(["select","itemStyle"]),u)}),Zt(o.ensureState("blur"),{shape:d_(l.getModel(["blur","itemStyle"]),u)});var m=o.getTextGuideLine(),R=o.getTextContent();m&&Zt(m.ensureState("select"),{x:v,y:g}),Zt(R.ensureState("select"),{x:v,y:g}),vS(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype._updateLabel=function(n,r,a){var i=this,o=r.getItemModel(a),s=o.getModel("labelLine"),l=r.getItemVisual(a,"style"),c=l&&l.fill,u=l&&l.opacity;US(i,WS(o),{labelFetcher:r.hostModel,labelDataIndex:a,inheritColor:c,defaultOpacity:u,defaultText:n.getFormattedLabel(a,"normal")||r.getName(a)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=o.get(["label","position"]);if(d!=="outside"&&d!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new _y,this.setTextGuideLine(h)),Hst(this,Gst(o),{stroke:c,opacity:q2(s.get(["lineStyle","opacity"]),u,1)})}},e}(fg),Blt=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return e.prototype.render=function(n,r,a,i){var o=n.getData(),s=this._data,l=this.group,c;if(!s&&o.count()>0){for(var u=o.getItemLayout(0),f=1;isNaN(u&&u.startAngle)&&f<o.count();++f)u=o.getItemLayout(f);u&&(c=u.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&n.get("showEmptyCircle")){var d=r6e(n),h=new fg({shape:Mr(d)});h.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(p){var v=new Ylt(o,p,c);o.setItemGraphicEl(p,v),l.add(v)}).update(function(p,v){var g=s.getItemGraphicEl(v);g.updateData(o,p,c),g.off("click"),l.add(g),o.setItemGraphicEl(p,g)}).remove(function(p){var v=s.getItemGraphicEl(p);j_(v,n,p)}).execute(),Wlt(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(n,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=n[0]-i.cx,s=n[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="pie",e}(Sl);function s6e(t,e,n){e=dn(e)&&{coordDimensions:e}||Zt({encodeDefine:t.getEncode()},e);var r=t.getSource(),a=RLe(r,e).dimensions,i=new ALe(a,t);return i.initData(r,n),i}var l6e=function(){function t(e,n){this._getDataWithEncodedVisual=e,this._getRawData=n}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var n=this._getRawData();return n.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var n=this._getDataWithEncodedVisual();return n.indexOfName(e)},t.prototype.getItemVisual=function(e,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,n)},t}(),Zlt=mi(),c6e=function(t){Jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new l6e(Ha(this.getData,this),Ha(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return s6e(this,{coordDimensions:["value"],encodeDefaulter:cc(eat,this)})},e.prototype.getDataParams=function(n){var r=this.getData(),a=Zlt(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Oet(o,r.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,n);return s.percent=i[n]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(n){gz(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Rc);Vrt({fullType:c6e.type,getCoord2:function(t){return t.getShallow("center")}});function Qlt(t){return{seriesType:t,reset:function(e,n){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(oa(o)&&!isNaN(o)&&o<0)})}}}function Klt(t){t.registerChartView(Blt),t.registerSeriesModel(c6e),wit("pie",t.registerAction),t.registerLayout(cc(Xlt,"pie")),t.registerProcessor(a6e("pie")),t.registerProcessor(Qlt("pie"))}var Hlt=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n,r){return LV(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:er.color.primary}},universalTransition:{divideShape:"clone"}},e}(Rc),u6e=4,Glt=function(){function t(){}return t}(),$lt=function(t){Jt(e,t);function e(n){var r=t.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new Glt},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(n,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=n.getContext?n.getContext():n,c=l&&i[0]<u6e,u=this.softClipShape,f;if(c){this._ctx=l;return}for(this._ctx=null,f=this._off;f<a.length;){var d=a[f++],h=a[f++];isNaN(d)||isNaN(h)||u&&!u.contain(d,h)||(s.x=d-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(n,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},e.prototype.afterBrush=function(){var n=this.shape,r=n.points,a=n.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<r.length;){var l=r[s++],c=r[s++];isNaN(l)||isNaN(c)||o&&!o.contain(l,c)||i.fillRect(l-a[0]/2,c-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(n,r){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),c=i.length/2-1;c>=0;c--){var u=c*2,f=i[u]-s/2,d=i[u+1]-l/2;if(n>=f&&r>=d&&n<=f+s&&r<=d+l)return c}return-1},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,c=1/0,u=-1/0,f=-1/0,d=0;d<a.length;){var h=a[d++],p=a[d++];l=Math.min(h,l),u=Math.max(h,u),c=Math.min(p,c),f=Math.max(p,f)}n=this._rect=new fr(l-o/2,c-s/2,u-l+o,f-c+s)}return n},e}(Zr),zlt=function(){function t(){this.group=new ki}return t.prototype.updateData=function(e,n){this._clear();var r=this._create();r.setShape({points:e.getLayout("points")}),this._setCommon(r,e,n)},t.prototype.updateLayout=function(e){var n=e.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var a=(r.endIndex-r.startIndex)*2,i=r.startIndex*4*2;n=new Float32Array(n.buffer,i,a)}r.setShape("points",n),r.reset()})},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,n,r){var a=this._newAdded[0],i=n.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=e.end,a.setShape({points:l})}else{this._newAdded=[];var c=this._create();c.startIndex=e.start,c.endIndex=e.end,c.incremental=!0,c.setShape({points:i}),this._setCommon(c,n,r)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new $lt({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,n,r){var a=n.hostModel;r=r||{};var i=n.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=r.clipShape||null,e.symbolProxy=$1(n.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<u6e;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=n.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var c=Ra(e);c.seriesIndex=a.seriesIndex,e.on("mousemove",function(u){c.dataIndex=null;var f=e.hoverDataIdx;f>=0&&(c.dataIndex=f+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),Jlt=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.updateData(i,{clipShape:this._getClipShape(n)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(n,r,a){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},e.prototype.updateTransform=function(n,r,a){var i=n.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Oee("").reset(n,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},e.prototype._getClipShape=function(n){if(n.get("clip",!0)){var r=n.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},e.prototype._updateSymbolDraw=function(n,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new zlt:new HLe,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Sl),f6e={left:0,right:0,top:0,bottom:0},HX=["25%","25%"],jlt=function(t){Jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(n,r){var a=D8(n.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&n.outerBounds&&G1(n.outerBounds,a)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&n.outerBounds&&G1(this.option.outerBounds,n.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:f6e,outerBoundsContain:"all",outerBoundsClampWidth:HX[0],outerBoundsClampHeight:HX[1],backgroundColor:er.color.transparent,borderWidth:1,borderColor:er.color.neutral30},e}(ua),qz=function(t){Jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",du).models[0]},e.type="cartesian2dAxis",e}(ua);Kf(qz,ILe);var d6e={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:er.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:er.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:er.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[er.color.backgroundTint,er.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:er.color.neutral00,borderColor:er.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},qlt=ia({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},d6e),Pee=ia({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:er.color.axisMinorSplitLine,width:1}}},d6e),ect=ia({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Pee),tct=Or({logBase:10},Pee);const h6e={category:qlt,value:Pee,time:ect,log:tct};var nct={value:1,category:1,time:1,log:1},rct=null;function act(){return rct}function eAe(t,e,n,r){Ge(nct,function(a,i){var o=ia(ia({},h6e[i],!0),r,!0),s=function(l){Jt(c,l);function c(){var u=l!==null&&l.apply(this,arguments)||this;return u.type=e+"Axis."+i,u}return c.prototype.mergeDefaultAndTheme=function(u,f){var d=Zw(this),h=d?D8(u):{},p=f.getTheme();ia(u,p.get(i+"Axis")),ia(u,this.getDefaultOption()),u.type=tAe(u),d&&G1(u,h,d)},c.prototype.optionUpdated=function(){var u=this.option;u.type==="category"&&(this.__ordinalMeta=Gz.createByAxisModel(this))},c.prototype.getCategories=function(u){var f=this.option;if(f.type==="category")return u?f.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.prototype.updateAxisBreaks=function(u){return{breaks:[]}},c.type=e+"Axis."+i,c.defaultOption=o,c}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",tAe)}function tAe(t){return t.type||(t.data?"category":"value")}var ict=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return nn(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Hi(this.getAxes(),function(n){return n.scale.type===e})},t.prototype.addAxis=function(e){var n=e.dim;this._axes[n]=e,this._dimList.push(n)},t}(),eJ=["x","y"];function nAe(t){return(t.type==="interval"||t.type==="time")&&!t.hasBreaks()}var oct=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=eJ,n}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!nAe(n)||!nAe(r))){var a=n.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],c=i[1]-i[0];if(!(!l||!c)){var u=(s[0]-o[0])/l,f=(s[1]-o[1])/c,d=o[0]-a[0]*u,h=o[1]-i[0]*f,p=this._transform=[u,0,0,f,d,h];this._invTransform=P8([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},e.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},e.prototype.containZone=function(n,r){var a=this.dataToPoint(n),i=this.dataToPoint(r),o=this.getArea(),s=new fr(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(n,r,a){a=a||[];var i=n[0],o=n[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Au(a,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(n,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(n[0]),c=i.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(n,r,a){if(a=a||[],this._invTransform)return Au(a,n,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(n[0]),r),a[1]=o.coordToData(o.toLocalCoord(n[1]),r),a},e.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},e.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1])-n,o=Math.min(a[0],a[1])-n,s=Math.max(r[0],r[1])-i+n,l=Math.max(a[0],a[1])-o+n;return new fr(i,o,s,l)},e}(ict),sct=function(t){Jt(e,t);function e(n,r,a,i,o){var s=t.call(this,n,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},e.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},e}(WLe),lct="expandAxisBreak",_1=Math.PI,cct=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],uct=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Jw=mi(),p6e=mi(),v6e=function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var n=e.axis.dim,r=e.componentIndex,a=this.recordMap,i=a[n]||(a[n]=[]);return i[r]||(i[r]={ready:{}})},t}();function fct(t,e,n,r){var a=n.axis,i=e.ensureRecord(n),o=[],s,l=Cee(t.axisName)&&bS(t.nameLocation);Ge(r,function(p){var v=J1(p);if(!(!v||v.label.ignore)){o.push(v);var g=i.transGroup;l&&(g.transform?P8(C5,g.transform):Oq(C5),v.transform&&K_(C5,C5,v.transform),fr.copy(lE,v.localRect),lE.applyTransform(C5),s?s.union(lE):fr.copy(s=new fr(0,0,0,0),lE))}});var c=Math.abs(i.dirVec.x)>.1?"x":"y",u=i.transGroup[c];if(o.sort(function(p,v){return Math.abs(p.label[c]-u)-Math.abs(v.label[c]-u)}),l&&s){var f=a.getExtent(),d=Math.min(f[0],f[1]),h=Math.max(f[0],f[1])-d;s.union(new fr(d,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var C5=k1(),lE=new fr(0,0,0,0),g6e=function(t,e,n,r,a,i){if(bS(t.nameLocation)){var o=i.stOccupiedRect;o&&m6e(zst({},o,i.transGroup.transform),r,a)}else y6e(i.labelInfoList,i.dirVec,r,a)};function m6e(t,e,n){var r=new Zn;_ee(t,e,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&Jst(e,r)}function y6e(t,e,n,r){for(var a=Zn.dot(r,e)>=0,i=0,o=t.length;i<o;i++){var s=t[a?i:o-1-i];s.label.ignore||m6e(s,n,r)}}var D1=function(){function t(e,n,r,a){this.group=new ki,this._axisModel=e,this._api=n,this._local={},this._shared=a||new v6e(g6e),this._resetCfgDetermined(r)}return t.prototype.updateCfg=function(e){var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var n=this._axisModel,r=n.getDefaultOption?n.getDefaultOption():{},a=gn(e.axisName,n.get("name")),i=n.get("nameMoveOverlap");(i==null||i==="auto")&&(i=gn(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:gn(e.nameDirection,1),tickDirection:gn(e.tickDirection,1),labelDirection:gn(e.labelDirection,1),labelOffset:gn(e.labelOffset,0),silent:gn(e.silent,!0),axisName:a,nameLocation:q2(n.get("nameLocation"),r.nameLocation,"end"),shouldNameMoveOverlap:Cee(a)&&i,optionHideOverlap:n.get(["axisLabel","hideOverlap"]),showMinorTicks:n.get(["minorTick","show"])};this._cfg=o;var s=new ki({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(n);l.transGroup=this._transformGroup,l.dirVec=new Zn(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,n){var r=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),Ge(dct,function(a){e[a]&&hct[a](r._cfg,r._local,r._shared,r._axisModel,r.group,r._transformGroup,r._api,n||{})}),this},t.innerTextLayout=function(e,n,r){var a=iwe(n-e),i,o;return wX(a)?(o=r>0?"top":"bottom",i="center"):wX(a-_1)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a<_1?i=r>0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var n={componentType:e.mainType,componentIndex:e.componentIndex};return n[e.mainType+"Index"]=e.componentIndex,n},t.isLabelSilent=function(e){var n=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||n&&n.show)},t}(),dct=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],hct={axisLine:function(t,e,n,r,a,i,o){var s=r.get(["axisLine","show"]);if(s==="auto"&&(s=!0,t.raw.axisLineAutoShow!=null&&(s=!!t.raw.axisLineAutoShow)),!!s){var l=r.axis.getExtent(),c=i.transform,u=[l[0],0],f=[l[1],0],d=u[0]>f[0];c&&(Au(u,u,c),Au(f,f,c));var h=Zt({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),p={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(r.get(["axisLine","breakLine"])&&r.axis.scale.hasBreaks())act().buildAxisBreakLine(r,a,i,p);else{var v=new H1(Zt({shape:{x1:u[0],y1:u[1],x2:f[0],y2:f[1]}},p));Ww(v.shape,v.style.lineWidth),v.anid="line",a.add(v)}var g=r.get(["axisLine","symbol"]);if(g!=null){var y=r.get(["axisLine","symbolSize"]);Sn(g)&&(g=[g,g]),(Sn(y)||oa(y))&&(y=[y,y]);var m=K8e(r.get(["axisLine","symbolOffset"])||0,y),R=y[0],A=y[1];Ge([{rotate:t.rotation+Math.PI/2,offset:m[0],r:0},{rotate:t.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((u[0]-f[0])*(u[0]-f[0])+(u[1]-f[1])*(u[1]-f[1]))}],function(x,M){if(g[M]!=="none"&&g[M]!=null){var S=$1(g[M],-R/2,-A/2,R,A,h.stroke,!0),w=x.r+x.offset,_=d?f:u;S.attr({rotation:x.rotate,x:_[0]+w*Math.cos(t.rotation),y:_[1]-w*Math.sin(t.rotation),silent:!0,z2:11}),a.add(S)}})}}},axisTickLabelEstimate:function(t,e,n,r,a,i,o,s){var l=aAe(e,a,s);l&&rAe(t,e,n,r,a,i,o,Uf.estimate)},axisTickLabelDetermine:function(t,e,n,r,a,i,o,s){var l=aAe(e,a,s);l&&rAe(t,e,n,r,a,i,o,Uf.determine);var c=mct(t,a,i,r);gct(t,e.labelLayoutList,c),yct(t,a,i,r,t.tickDirection)},axisName:function(t,e,n,r,a,i,o,s){var l=n.ensureRecord(r);e.nameEl&&(a.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var c=t.axisName;if(Cee(c)){var u=t.nameLocation,f=t.nameDirection,d=r.getModel("nameTextStyle"),h=r.get("nameGap")||0,p=r.axis.getExtent(),v=r.axis.inverse?-1:1,g=new Zn(0,0),y=new Zn(0,0);u==="start"?(g.x=p[0]-v*h,y.x=-v):u==="end"?(g.x=p[1]+v*h,y.x=v):(g.x=(p[0]+p[1])/2,g.y=t.labelOffset+f*h,y.y=f);var m=k1();y.transform(k_e(m,m,t.rotation));var R=r.get("nameRotate");R!=null&&(R=R*_1/180);var A,x;bS(u)?A=D1.innerTextLayout(t.rotation,R??t.rotation,f):(A=pct(t.rotation,u,R||0,p),x=t.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(A.rotation)),!isFinite(x)&&(x=null)));var M=d.getFont(),S=r.get("nameTruncate",!0)||{},w=S.ellipsis,_=mX(t.raw.nameTruncateMaxWidth,S.maxWidth,x),T=s.nameMarginLevel||0,O=new Ac({x:g.x,y:g.y,rotation:A.rotation,silent:D1.isLabelSilent(r),style:Bw(d,{text:c,font:M,overflow:"truncate",width:_,ellipsis:w,fill:d.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:d.get("align")||A.textAlign,verticalAlign:d.get("verticalAlign")||A.textVerticalAlign}),z2:1});if(yV({el:O,componentModel:r,itemName:c}),O.__fullText=c,O.anid="name",r.get("triggerEvent")){var N=D1.makeAxisEventDataBase(r);N.targetType="axisName",N.name=c,Ra(O).eventData=N}i.add(O),O.updateTransform(),e.nameEl=O;var P=l.nameLayout=J1({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:bS(u)?cct[T]:uct[T]});if(l.nameLocation=u,a.add(O),O.decomposeTransform(),t.shouldNameMoveOverlap&&P){var C=n.ensureRecord(r);n.resolveAxisNameOverlap(t,n,r,P,y,C)}}}};function rAe(t,e,n,r,a,i,o,s){R6e(e)||Act(t,e,a,s,r,o);var l=e.labelLayoutList;Rct(t,r,l,i),t.rotation;var c=t.optionHideOverlap;vct(r,l,c),c&&qst(Hi(l,function(u){return u&&!u.label.ignore})),fct(t,n,r,l)}function pct(t,e,n,r){var a=iwe(n-t),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return wX(a-_1/2)?(o=l?"bottom":"top",i="center"):wX(a-_1*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<_1*1.5&&a>_1/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function vct(t,e,n){if(CLe(t.axis))return;function r(s,l,c){var u=J1(e[l]),f=J1(e[c]);if(!(!u||!f)){if(s===!1||u.suggestIgnore){h_(u.label);return}if(f.suggestIgnore){h_(f.label);return}var d=.1;if(!n){var h=[0,0,0,0];u=Nye({marginForce:h},u),f=Nye({marginForce:h},f)}_ee(u,f,null,{touchThreshold:d})&&h_(s?f.label:u.label)}}var a=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]),o=e.length;r(a,0,1),r(i,o-1,o-2)}function gct(t,e,n){t.showMinorTicks||Ge(e,function(r){if(r&&r.label.ignore)for(var a=0;a<n.length;a++){var i=n[a],o=p6e(i),s=Jw(r.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){h_(i);return}}})}function h_(t){t&&(t.ignore=!0)}function A6e(t,e,n,r,a){for(var i=[],o=[],s=[],l=0;l<t.length;l++){var c=t[l].coord;o[0]=c,o[1]=0,s[0]=c,s[1]=n,e&&(Au(o,o,e),Au(s,s,e));var u=new H1({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Ww(u.shape,u.style.lineWidth),u.anid=a+"_"+t[l].tickValue,i.push(u);var f=p6e(u);f.onBand=!!t[l].onBand,f.tickValue=t[l].tickValue}return i}function mct(t,e,n,r){var a=r.axis,i=r.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=t.tickDirection*i.get("length"),c=a.getTicksCoords(),u=A6e(c,n.transform,l,Or(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<u.length;f++)e.add(u[f]);return u}function yct(t,e,n,r,a){var i=r.axis,o=r.getModel("minorTick");if(!(!t.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),c=a*o.get("length"),u=Or(l.getLineStyle(),Or(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<s.length;f++)for(var d=A6e(s[f],n.transform,c,u,"minorticks_"+f),h=0;h<d.length;h++)e.add(d[h])}}function aAe(t,e,n){if(R6e(t)){var r=t.axisLabelsCreationContext,a=r.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(e.remove(t.labelGroup),tJ(t,null,null,null))}return!0}function Act(t,e,n,r,a,i){var o=a.axis,s=mX(t.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new ki;n.add(l);var c=BX(r);if(!s||o.scale.isBlank()){tJ(e,[],l,c);return}var u=a.getModel("axisLabel"),f=o.getViewLabels(c),d=(mX(t.raw.labelRotate,u.get("rotate"))||0)*_1/180,h=D1.innerTextLayout(t.rotation,d,t.labelDirection),p=a.getCategories&&a.getCategories(!0),v=[],g=a.get("triggerEvent"),y=1/0,m=-1/0;Ge(f,function(A,x){var M,S=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(A.tickValue):A.tickValue,w=A.formattedLabel,_=A.rawLabel,T=u;if(p&&p[S]){var O=p[S];kn(O)&&O.textStyle&&(T=new Ji(O.textStyle,u,a.ecModel))}var N=T.getTextColor()||a.get(["axisLine","lineStyle","color"]),P=T.getShallow("align",!0)||h.textAlign,C=gn(T.getShallow("alignMinLabel",!0),P),E=gn(T.getShallow("alignMaxLabel",!0),P),F=T.getShallow("verticalAlign",!0)||T.getShallow("baseline",!0)||h.textVerticalAlign,Y=gn(T.getShallow("verticalAlignMinLabel",!0),F),Q=gn(T.getShallow("verticalAlignMaxLabel",!0),F),K=10+(((M=A.time)===null||M===void 0?void 0:M.level)||0);y=Math.min(y,K),m=Math.max(m,K);var ne=new Ac({x:0,y:0,rotation:0,silent:D1.isLabelSilent(a),z2:K,style:Bw(T,{text:w,align:x===0?C:x===f.length-1?E:P,verticalAlign:x===0?Y:x===f.length-1?Q:F,fill:$n(N)?N(o.type==="category"?_:o.type==="value"?S+"":S,x):N})});ne.anid="label_"+S;var Z=Jw(ne);if(Z.break=A.break,Z.tickValue=S,Z.layoutRotation=h.rotation,yV({el:ne,componentModel:a,itemName:w,formatterParamsExtra:{isTruncated:function(){return ne.isTruncated},value:_,tickIndex:x}}),g){var $=D1.makeAxisEventDataBase(a);$.targetType="axisLabel",$.value=_,$.tickIndex=x,A.break&&($.break={start:A.break.parsedBreak.vmin,end:A.break.parsedBreak.vmax}),o.type==="category"&&($.dataIndex=S),Ra(ne).eventData=$,A.break&&xct(a,i,ne,A.break)}v.push(ne),l.add(ne)});var R=nn(v,function(A){return{label:A,priority:Jw(A).break?A.z2+(m-y+1):A.z2,defaultAttr:{ignore:A.ignore}}});tJ(e,R,l,c)}function R6e(t){return!!t.labelLayoutList}function tJ(t,e,n,r){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=r}function Rct(t,e,n,r){var a=e.get(["axisLabel","margin"]);Ge(n,function(i,o){var s=J1(i);if(s){var l=s.label,c=Jw(l);s.suggestIgnore=l.ignore,l.ignore=!1,MX(Zp,bct),Zp.x=e.axis.dataToCoord(c.tickValue),Zp.y=t.labelOffset+t.labelDirection*a,Zp.rotation=c.layoutRotation,r.add(Zp),Zp.updateTransform(),r.remove(Zp),Zp.decomposeTransform(),MX(l,Zp),l.markRedraw(),KX(s,!0),J1(s)}})}var Zp=new Ii,bct=new Ii;function Cee(t){return!!t}function xct(t,e,n,r){n.on("click",function(a){var i={type:lct,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(i)})}function b6e(t,e,n){n=n||{};var r=e.axis,a={},i=r.getAxesOnZeroOf()[0],o=r.position,s=i?"onZero":o,l=r.dim,c=[t.x,t.x+t.width,t.y,t.y+t.height],u={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,d=l==="x"?[c[2]-f,c[3]+f]:[c[0]-f,c[1]+f];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));d[u.onZero]=Math.max(Math.min(h,d[1]),d[0])}a.position=[l==="y"?d[u[s]]:c[0],l==="x"?d[u[s]]:c[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[o],a.labelOffset=i?d[u[o]]-d[u.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),mX(n.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=e.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-v:v,a.z2=1,a}function Sct(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function iAe(t){var e={xAxisModel:null,yAxisModel:null};return Ge(e,function(n,r){var a=r.replace(/Model$/,""),i=t.getReferringComponents(a,du).models[0];e[r]=i}),e}function Mct(t,e,n,r,a,i){for(var o=b6e(t,n),s=!1,l=!1,c=0;c<e.length;c++)Kz(e[c].getOtherAxis(n.axis).scale)&&(s=l=!0,n.axis.type==="category"&&n.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new D1(n,r,o,a)}function _ct(t,e,n){var r=b6e(e,n);t.updateCfg(r)}function x6e(t,e,n){var r=z1.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,{expandToNicedExtent:!0}),o=a.length-1,s=r.getInterval.call(n),l=PLe(t,e),c=l.extent,u=l.fixMin,f=l.fixMax;t.type==="log"&&(c=Hz(t.base,c,!0)),t.setBreaksFromOption(NLe(e)),t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:o,fixMin:u,fixMax:f});var d=r.getExtent.call(t);u&&(c[0]=d[0]),f&&(c[1]=d[1]);var h=r.getInterval.call(t),p=c[0],v=c[1];if(u&&f)h=(v-p)/o;else if(u)for(v=c[0]+h*o;v<c[1]&&isFinite(v)&&isFinite(c[1]);)h=cH(h),v=c[0]+h*o;else if(f)for(p=c[1]-h*o;p>c[0]&&isFinite(p)&&isFinite(c[0]);)h=cH(h),p=c[1]-h*o;else{var g=t.getTicks().length-1;g>o&&(h=cH(h));var y=h*o;v=Math.ceil(c[1]/h)*h,p=Fo(v-y),p<0&&c[0]>=0?(p=0,v=Fo(y)):v>0&&c[1]<=0&&(v=0,p=-Fo(y))}var m=(a[0].value-i[0].value)/s,R=(a[o].value-i[o].value)/s;r.setExtent.call(t,p+h*m,v+h*R),r.setInterval.call(t,h),(m||R)&&r.setNiceExtent.call(t,p+h,v-h)}var oAe=[[3,1],[0,2]],wct=function(){function t(e,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=eJ,this._initCartesian(e,n,r),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,n){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=kr(o),c=l.length;if(c){for(var u=[],f=c-1;f>=0;f--){var d=+l[f],h=o[d],p=h.model,v=h.scale;Kz(v)&&p.get("alignTicks")&&p.get("interval")==null?u.push(h):(wye(v,p),Kz(v)&&(s=h))}u.length&&(s||(s=u.pop(),wye(s.scale,s.model)),Ge(u,function(g){x6e(g.scale,g.model,s.scale)}))}}a(r.x),a(r.y);var i={};Ge(r.x,function(o){sAe(r,"y",o,i)}),Ge(r.y,function(o){sAe(r,"x",o,i)}),this.resize(this.model,n)},t.prototype.resize=function(e,n,r){var a=SV(e,n),i=this._rect=yS(e.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(S6e(o,i),!r){var c=Tct(i,s,o,l,n),u=void 0;if(l)u=uAe(i.clone(),"axisLabel",null,i,o,c,a);else{var f=Oct(e,i,a),d=f.outerBoundsRect,h=f.parsedOuterBoundsContain,p=f.outerBoundsClamp;d&&(u=uAe(d,h,p,i,o,c,a))}M6e(i,o,Uf.determine,null,u,a)}Ge(this._coordsList,function(v){v.calcAffineTransform()})},t.prototype.getAxis=function(e,n){var r=this._axesMap[e];if(r!=null)return r[n||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,n){if(e!=null&&n!=null){var r="x"+e+"y"+n;return this._coordsMap[r]}kn(e)&&(n=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===n)return i[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.dataToPoint(r):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(r)):null},t.prototype.convertFromPixel=function(e,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.pointToData(r):a.axis?a.axis.coordToData(a.axis.toLocalCoord(r)):null},t.prototype._findConvertTarget=function(e){var n=e.seriesModel,r=e.xAxisModel||n&&n.getReferringComponents("xAxis",du).models[0],a=e.yAxisModel||n&&n.getReferringComponents("yAxis",du).models[0],i=e.gridModel,o=this._coordsList,s,l;if(n)s=n.coordinateSystem,aa(o,s)<0&&(s=null);else if(r&&a)s=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var c=i.coordinateSystem;c===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var n=this._coordsList[0];if(n)return n.containPoint(e)},t.prototype._initCartesian=function(e,n,r){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",c("x"),this),n.eachComponent("yAxis",c("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,Ge(s.x,function(u,f){Ge(s.y,function(d,h){var p="x"+f+"y"+h,v=new oct(p);v.master=a,v.model=e,a._coordsMap[p]=v,a._coordsList.push(v),v.addAxis(u),v.addAxis(d)})});function c(u){return function(f,d){if(yH(f,e)){var h=f.get("position");u==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var p=new sct(u,Lst(f),[0,0],f.get("type"),h),v=p.type==="category";p.onBand=v&&f.get("boundaryGap"),p.inverse=f.get("inverse"),f.axis=p,p.model=f,p.grid=i,p.index=d,i._axesList.push(p),s[u][d]=p,l[u]++}}}},t.prototype._updateScale=function(e,n){Ge(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),e.eachSeries(function(a){if(Sct(a)){var i=iAe(a),o=i.xAxisModel,s=i.yAxisModel;if(!yH(o,n)||!yH(s,n))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),c=a.getData(),u=l.getAxis("x"),f=l.getAxis("y");r(c,u),r(c,f)}},this);function r(a,i){Ge(Ost(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},t.prototype.getTooltipAxes=function(e){var n=[],r=[];return Ge(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);aa(n,i)<0&&n.push(i),aa(r,o)<0&&r.push(o)}),{baseAxes:n,otherAxes:r}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(a,i){var o=new t(a,e,n);o.name="grid_"+i,o.resize(a,n,!0),a.coordinateSystem=o,r.push(o)}),e.eachSeries(function(a){Yrt({targetModel:a,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=iAe(a),s=o.xAxisModel,l=o.yAxisModel,c=s.getCoordSysModel(),u=c.coordinateSystem;return u.getCartesian(s.componentIndex,l.componentIndex)}}),r},t.dimensions=eJ,t}();function yH(t,e){return t.getCoordSysModel()===e}function sAe(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var a=t[e],i,o=n.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)lAe(a[l])&&(i=a[l]);else for(var c in a)if(a.hasOwnProperty(c)&&lAe(a[c])&&!r[u(a[c])]){i=a[c];break}i&&(r[u(i)]=!0);function u(f){return f.dim+"_"+f.index}}function lAe(t){return t&&t.type!=="category"&&t.type!=="time"&&Tst(t)}function Lct(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+e}:function(a){return r-a+e},t.toLocalCoord=t.dim==="x"?function(a){return a-e}:function(a){return r-a+e}}function S6e(t,e){Ge(t.x,function(n){return cAe(n,e.x,e.width)}),Ge(t.y,function(n){return cAe(n,e.y,e.height)})}function cAe(t,e,n){var r=[0,n],a=t.inverse?1:0;t.setExtent(r[a],r[1-a]),Lct(t,e)}function uAe(t,e,n,r,a,i,o){M6e(r,a,Uf.estimate,e,!1,o);var s=[0,0,0,0];c(0),c(1),u(r,0,NaN),u(r,1,NaN);var l=O_e(s,function(d){return d>0})==null;return kX(r,s,!0,!0,n),S6e(a,r),l;function c(d){Ge(a[v1[d]],function(h){if(zw(h.model)){var p=i.ensureRecord(h.model),v=p.labelInfoList;if(v)for(var g=0;g<v.length;g++){var y=v[g],m=h.scale.normalize(Jw(y.label).tickValue);m=d===1?1-m:m,u(y.rect,d,m),u(y.rect,1-d,NaN)}var R=p.nameLayout;if(R){var m=bS(p.nameLocation)?.5:NaN;u(R.rect,d,m),u(R.rect,1-d,NaN)}}})}function u(d,h,p){var v=t[v1[h]]-d[v1[h]],g=d[mS[h]]+d[v1[h]]-(t[mS[h]]+t[v1[h]]);v=f(v,1-p),g=f(g,p);var y=oAe[h][0],m=oAe[h][1];s[y]=hc(s[y],v),s[m]=hc(s[m],g)}function f(d,h){return d>0&&!Iw(h)&&h>1e-4&&(d/=h),d}}function Tct(t,e,n,r,a){var i=new v6e(Pct);return Ge(n,function(o){return Ge(o,function(s){if(zw(s.model)){var l=!r;s.axisBuilder=Mct(t,e,s.model,a,i,l)}})}),i}function M6e(t,e,n,r,a,i){var o=n===Uf.determine;Ge(e,function(c){return Ge(c,function(u){zw(u.model)&&(_ct(u.axisBuilder,t,u.model),u.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(c){s[v1[1-c]]=t[mS[c]]<=i.refContainer[mS[c]]*.5?0:1-c===1?2:1}Ge(e,function(c,u){return Ge(c,function(f){zw(f.model)&&((r==="all"||o)&&f.axisBuilder.build({axisName:!0},{nameMarginLevel:s[u]}),o&&f.axisBuilder.build({axisLine:!0}))})})}function Oct(t,e,n){var r,a=t.get("outerBoundsMode",!0);a==="same"?r=e.clone():(a==null||a==="auto")&&(r=yS(t.get("outerBounds",!0)||f6e,n.refContainer));var i=t.get("outerBoundsContain",!0),o;i==null||i==="auto"||aa(["all","axisLabel"],i)<0?o="all":o=i;var s=[vz(gn(t.get("outerBoundsClampWidth",!0),HX[0]),e.width),vz(gn(t.get("outerBoundsClampHeight",!0),HX[1]),e.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Pct=function(t,e,n,r,a,i){var o=n.axis.dim==="x"?"y":"x";g6e(t,e,n,r,a,i),bS(t.nameLocation)||Ge(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&y6e(s.labelInfoList,s.dirVec,r,a)})};function Cct(t){var e=_6e(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,a=n.option,i=n.get("status"),o=n.get("value");o!=null&&(o=r.parse(o));var s=Ict(n);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function _6e(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[kct(t)]}function Nct(t){var e=_6e(t);return e&&e.axisPointerModel}function Ict(t){return!!t.get(["handle","show"])}function kct(t){return t.type+"||"+t.id}var fAe={},Ect=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,i){this.axisPointerClass&&Cct(n),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,a,!0)},e.prototype.updateAxisPointer=function(n,r,a,i){this._doUpdateAxisPointerClass(n,a,!1)},e.prototype.remove=function(n,r){var a=this._axisPointer;a&&a.remove(r)},e.prototype.dispose=function(n,r){this._disposeAxisPointer(r),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(n,r,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=Nct(n);o?(this._axisPointer||(this._axisPointer=new i)).render(n,o,r,a):this._disposeAxisPointer(r)}},e.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},e.registerAxisPointerClass=function(n,r){fAe[n]=r},e.getAxisPointerClass=function(n){return n&&fAe[n]},e.type="axis",e}(x0),nJ=mi();function Fct(t,e,n,r){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=r.coordinateSystem.getRect(),c=a.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(c.length){var u=s.length,f=nJ(t).splitAreaColors,d=ir(),h=0;if(f)for(var p=0;p<c.length;p++){var v=f.get(c[p].tickValue);if(v!=null){h=(v+(u-1)*p)%u;break}}var g=a.toGlobalCoord(c[0].coord),y=o.getAreaStyle();s=dn(s)?s:[s];for(var p=1;p<c.length;p++){var m=a.toGlobalCoord(c[p].coord),R=void 0,A=void 0,x=void 0,M=void 0;a.isHorizontal()?(R=g,A=l.y,x=m-R,M=l.height,g=R+x):(R=l.x,A=g,x=l.width,M=m-A,g=A+M);var S=c[p-1].tickValue;S!=null&&d.set(S,h),e.add(new Ii({anid:S!=null?"area_"+S:null,shape:{x:R,y:A,width:x,height:M},style:Or({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%u}nJ(t).splitAreaColors=d}}}function Xct(t){nJ(t).splitAreaColors=null}var Dct=["splitArea","splitLine","minorSplitLine","breakArea"],w6e=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return e.prototype.render=function(n,r,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ki,this.group.add(this._axisGroup),!!zw(n)){this._axisGroup.add(n.axis.axisBuilder.group),Ge(Dct,function(l){n.get([l,"show"])&&Vct[l](this,this._axisGroup,n,n.getCoordSysModel(),a)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||Gwe(o,this._axisGroup,n),t.prototype.render.call(this,n,r,a,i)}},e.prototype.remove=function(){Xct(this)},e.type="cartesianAxis",e}(Ect),Vct={splitLine:function(t,e,n,r,a){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),c=o.get("showMinLine")!==!1,u=o.get("showMaxLine")!==!1;l=dn(l)?l:[l];for(var f=r.coordinateSystem.getRect(),d=i.isHorizontal(),h=0,p=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),v=[],g=[],y=s.getLineStyle(),m=0;m<p.length;m++){var R=i.toGlobalCoord(p[m].coord);if(!(m===0&&!c||m===p.length-1&&!u)){var A=p[m].tickValue;d?(v[0]=R,v[1]=f.y,g[0]=R,g[1]=f.y+f.height):(v[0]=f.x,v[1]=R,g[0]=f.x+f.width,g[1]=R);var x=h++%l.length,M=new H1({anid:A!=null?"line_"+A:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},style:Or({stroke:l[x]},y),silent:!0});Ww(M.shape,y.lineWidth),e.add(M)}}}},minorSplitLine:function(t,e,n,r,a){var i=n.axis,o=n.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=r.coordinateSystem.getRect(),c=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var f=[],d=[],h=s.getLineStyle(),p=0;p<u.length;p++)for(var v=0;v<u[p].length;v++){var g=i.toGlobalCoord(u[p][v].coord);c?(f[0]=g,f[1]=l.y,d[0]=g,d[1]=l.y+l.height):(f[0]=l.x,f[1]=g,d[0]=l.x+l.width,d[1]=g);var y=new H1({anid:"minor_line_"+u[p][v].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:h,silent:!0});Ww(y.shape,h.lineWidth),e.add(y)}},splitArea:function(t,e,n,r,a){Fct(t,e,n,r)},breakArea:function(t,e,n,r,a){n.axis.scale}},L6e=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="xAxis",e}(w6e),Uct=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=L6e.type,n}return e.type="yAxis",e}(w6e),Wct=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="grid",n}return e.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new Ii({shape:n.coordinateSystem.getRect(),style:Or({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(x0),dAe={offset:0};function Yct(t){t.registerComponentView(Wct),t.registerComponentModel(jlt),t.registerCoordinateSystem("cartesian2d",wct),eAe(t,"x",qz,dAe),eAe(t,"y",qz,dAe),t.registerComponentView(L6e),t.registerComponentView(Uct),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function Bct(t){vy(Yct),t.registerSeriesModel(Hlt),t.registerChartView(Jlt),t.registerLayout(Oee("scatter"))}function Zct(t){t.eachSeriesByType("radar",function(e){var n=e.getData(),r=[],a=e.coordinateSystem;if(a){var i=a.getIndicatorAxes();Ge(i,function(o,s){n.each(n.mapDimension(i[s].dim),function(l,c){r[c]=r[c]||[];var u=a.dataToPoint(l,s);r[c][s]=hAe(u)?u:pAe(a)})}),n.each(function(o){var s=O_e(r[o],function(l){return hAe(l)})||pAe(a);r[o].push(s.slice()),n.setItemLayout(o,r[o])})}})}function hAe(t){return!isNaN(t[0])&&!isNaN(t[1])}function pAe(t){return[t.cx,t.cy]}function Qct(t){var e=t.polar;if(e){dn(e)||(e=[e]);var n=[];Ge(e,function(r,a){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),t.radar=t.radar||[],dn(t.radar)||(t.radar=[t.radar]),t.radar.push(r)):n.push(r)}),t.polar=n}Ge(t.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var Kct=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=n.coordinateSystem,o=this.group,s=n.getData(),l=this._data;function c(d,h){var p=d.getItemVisual(h,"symbol")||"circle";if(p!=="none"){var v=Q8e(d.getItemVisual(h,"symbolSize")),g=$1(p,-1,-1,2,2),y=d.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:y*Math.PI/180||0}),g}}function u(d,h,p,v,g,y){p.removeAll();for(var m=0;m<h.length-1;m++){var R=c(v,g);R&&(R.__dimIdx=m,d[m]?(R.setPosition(d[m]),ort[y?"initProps":"updateProps"](R,{x:h[m][0],y:h[m][1]},n,g)):R.setPosition(h[m]),p.add(R))}}function f(d){return nn(d,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var p=new X8,v=new _y,g={shape:{points:h}};p.shape.points=f(h),v.shape.points=f(h),xl(p,g,n,d),xl(v,g,n,d);var y=new ki,m=new ki;y.add(v),y.add(p),y.add(m),u(v.shape.points,h,m,s,d,!0),s.setItemGraphicEl(d,y)}}).update(function(d,h){var p=l.getItemGraphicEl(h),v=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(d)}};m.shape.points&&(u(v.shape.points,m.shape.points,y,s,d,!1),Uw(g),Uw(v),hs(v,m,n),hs(g,m,n),s.setItemGraphicEl(d,p))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,h){var p=s.getItemModel(h),v=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m=s.getItemVisual(h,"style"),R=m.fill;o.add(d),v.useStyle(Or(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:R})),gS(v,p,"lineStyle"),gS(g,p,"areaStyle");var A=p.getModel("areaStyle"),x=A.isEmpty()&&A.parentModel.isEmpty();g.ignore=x,Ge(["emphasis","select","blur"],function(S){var w=p.getModel([S,"areaStyle"]),_=w.isEmpty()&&w.parentModel.isEmpty();g.ensureState(S).ignore=_&&x;var T=p.getModel([S,"lineStyle"]).getLineStyle();v.ensureState(S).style=T;var O=w.getAreaStyle();g.ensureState(S).style=O;var N=p.getModel([S,"itemStyle"]).getItemStyle();y.eachChild(function(P){P.ensureState(S).style=Mr(N)})}),g.useStyle(Or(p.getModel("areaStyle").getAreaStyle(),{fill:R,opacity:.7,decal:m.decal}));var M=p.getModel("emphasis");y.eachChild(function(S){if(S instanceof Hf){var w=S.style;S.useStyle(Zt({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},m))}else S.useStyle(m),S.setColor(R),S.style.strokeNoScale=!0;var _=s.getStore().get(s.getDimensionIndex(S.__dimIdx),h);(_==null||isNaN(_))&&(_=""),US(S,WS(p),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:S.__dimIdx,defaultText:_,inheritColor:R,defaultOpacity:m.opacity})}),vS(d,M.get("focus"),M.get("blurScope"),M.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Sl),Hct=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new l6e(Ha(this.getData,this),Ha(this.getRawData,this))},e.prototype.getInitialData=function(n,r){return s6e(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(n),c=l===""?this.name:l,u=E8e(this,n);return Kw("section",{header:c,sortBlocks:!0,blocks:nn(s,function(f){var d=i.get(i.mapDimension(f.dim),n);return Kw("nameValue",{markerType:"subItem",markerColor:u,name:f.name,value:d,sortParam:d})})})},e.prototype.getTooltipPosition=function(n){if(n!=null){for(var r=this.getData(),a=this.coordinateSystem,i=r.getValues(nn(a.dimensions,function(c){return r.mapDimension(c)}),n),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Rc),N5=h6e.value;function cE(t,e){return Or({show:e},t)}var Gct=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),r=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),c=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),h=nn(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var v=l;p.color!=null&&(v=Or({color:p.color},l));var g=ia(Mr(p),{boundaryGap:n,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:c,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:d},!1);if(Sn(u)){var y=g.name;g.name=u.replace("{value}",y??"")}else $n(u)&&(g.name=u(g.name,g));var m=new Ji(g,null,this.ecModel);return Kf(m,ILe.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:er.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ia({lineStyle:{color:er.color.neutral20}},N5.axisLine),axisLabel:cE(N5.axisLabel,!1),axisTick:cE(N5.axisTick,!1),splitLine:cE(N5.splitLine,!0),splitArea:cE(N5.splitArea,!0),indicator:[]},e}(ua),$ct=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=this.group;i.removeAll(),this._buildAxes(n,a),this._buildSplitLineAndArea(n)},e.prototype._buildAxes=function(n,r){var a=n.coordinateSystem,i=a.getIndicatorAxes(),o=nn(i,function(s){var l=s.model.get("showName")?s.name:"",c=new D1(s.model,r,{axisName:l,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return c});Ge(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=n.get("shape"),o=n.getModel("splitLine"),s=n.getModel("splitArea"),l=o.getModel("lineStyle"),c=s.getModel("areaStyle"),u=o.get("show"),f=s.get("show"),d=l.get("color"),h=c.get("color"),p=dn(d)?d:[d],v=dn(h)?h:[h],g=[],y=[];function m(E,F,Y){var Q=Y%F.length;return E[Q]=E[Q]||[],Q}if(i==="circle")for(var R=a[0].getTicksCoords(),A=r.cx,x=r.cy,M=0;M<R.length;M++){if(u){var S=m(g,p,M);g[S].push(new F8({shape:{cx:A,cy:x,r:R[M].coord}}))}if(f&&M<R.length-1){var S=m(y,v,M);y[S].push(new gV({shape:{cx:A,cy:x,r0:R[M].coord,r:R[M+1].coord}}))}}else for(var w,_=nn(a,function(E,F){var Y=E.getTicksCoords();return w=w==null?Y.length-1:Math.min(Y.length-1,w),nn(Y,function(Q){return r.coordToPoint(Q.coord,F)})}),T=[],M=0;M<=w;M++){for(var O=[],N=0;N<a.length;N++)O.push(_[N][M]);if(O[0]&&O.push(O[0].slice()),u){var S=m(g,p,M);g[S].push(new _y({shape:{points:O}}))}if(f&&T){var S=m(y,v,M-1);y[S].push(new X8({shape:{points:O.concat(T)}}))}T=O.slice().reverse()}var P=l.getLineStyle(),C=c.getAreaStyle();Ge(y,function(E,F){this.group.add(Oz(E,{style:Or({stroke:"none",fill:v[F%v.length]},C),silent:!0}))},this),Ge(g,function(E,F){this.group.add(Oz(E,{style:Or({fill:"none",stroke:p[F%p.length]},P),silent:!0}))},this)},e.type="radar",e}(x0),zct=function(t){Jt(e,t);function e(n,r,a){var i=t.call(this,n,r,a)||this;return i.type="value",i.angle=0,i.name="",i}return e}(WLe),Jct=function(){function t(e,n,r){this.dimensions=[],this._model=e,this._indicatorAxes=nn(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new zct(o,new z1);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,r)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,n){var r=this._indicatorAxes[n];return this.coordToPoint(r.dataToCoord(e),n)},t.prototype.coordToPoint=function(e,n){var r=this._indicatorAxes[n],a=r.angle,i=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[i,o]},t.prototype.pointToData=function(e){var n=e[0]-this.cx,r=e[1]-this.cy,a=Math.sqrt(n*n+r*r);n/=a,r/=a;for(var i=Math.atan2(-r,n),o=1/0,s,l=-1,c=0;c<this._indicatorAxes.length;c++){var u=this._indicatorAxes[c],f=Math.abs(i-u.angle);f<o&&(s=u,l=c,o=f)}return[l,+(s&&s.coordToData(a))]},t.prototype.resize=function(e,n){var r=SV(e,n).refContainer,a=e.get("center"),i=Math.min(r.width,r.height)/2;this.cx=Aa(a[0],r.width)+r.x,this.cy=Aa(a[1],r.height)+r.y,this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");(Sn(o)||oa(o))&&(o=[0,o]),this.r0=Aa(o[0],i),this.r=Aa(o[1],i),Ge(this._indicatorAxes,function(s,l){s.setExtent(this.r0,this.r);var c=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),s.angle=c},this)},t.prototype.update=function(e,n){var r=this._indicatorAxes,a=this._model;Ge(r,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==a)){var c=s.getData();Ge(r,function(u){u.scale.unionExtentFromData(c,c.mapDimension(u.dim))})}},this);var i=a.get("splitNumber"),o=new z1;o.setExtent(0,i),o.setInterval(1),Ge(r,function(s,l){x6e(s.scale,s.model,o)})},t.prototype.convertToPixel=function(e,n,r){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,n,r){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,n){var r=[];return e.eachComponent("radar",function(a){var i=new t(a,e,n);r.push(i),a.coordinateSystem=i}),e.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=r[a.get("radarIndex")||0])}),r},t.dimensions=[],t}();function jct(t){t.registerCoordinateSystem("radar",Jct),t.registerComponentModel(Gct),t.registerComponentView($ct),t.registerVisual({seriesType:"radar",reset:function(e){var n=e.getData();n.each(function(r){n.setItemVisual(r,"legendIcon","roundRect")}),n.setVisual("legendIcon","roundRect")}})}function qct(t){vy(jct),t.registerChartView(Kct),t.registerSeriesModel(Hct),t.registerLayout(Zct),t.registerProcessor(a6e("radar")),t.registerPreprocessor(Qct)}function eut(t,e){var n=h8e(e.get("padding")),r=e.getItemStyle(["color","opacity"]);r.fill=e.get("backgroundColor");var a=new Ii({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1});return a}var tut=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},rJ=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},e.prototype._updateSelector=function(n){var r=n.selector,a=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),dn(r)&&Ge(r,function(i,o){Sn(i)&&(i={type:i}),r[o]=ia(i,tut(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a<n.length;a++){var i=n[a].get("name");if(this.isSelected(i)){this.select(i),r=!0;break}}!r&&this.select(n[0].get("name"))}},e.prototype._updateData=function(n){var r=[],a=[];n.eachRawSeries(function(l){var c=l.name;a.push(c);var u;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();n.isSeriesFiltered(l)||(a=a.concat(d)),d.length?r=r.concat(d):u=!0}else u=!0;u&&Eq(l)&&r.push(l.name)}),this._availableNames=a;var i=this.get("data")||r,o=ir(),s=nn(i,function(l){return(Sn(l)||oa(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ji(l,this,this.ecModel))},this);this._data=Hi(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(n){var r=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;Ge(i,function(o){r[o.get("name")]=!1})}r[n]=!0},e.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},e.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},e.prototype.allSelect=function(){var n=this._data,r=this.option.selected;Ge(n,function(a){r[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;Ge(n,function(a){var i=a.get("name",!0);r.hasOwnProperty(i)||(r[i]=!0),r[i]=!r[i]})},e.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&aa(this._availableNames,n)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:er.size.m,align:"auto",backgroundColor:er.color.transparent,borderColor:er.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:er.color.disabled,inactiveBorderColor:er.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:er.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:er.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:er.color.tertiary,borderWidth:1,borderColor:er.color.border},emphasis:{selectorLabel:{show:!0,color:er.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(ua),Ub=cc,aJ=Ge,uE=ki,T6e=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return e.prototype.init=function(){this.group.add(this._contentGroup=new uE),this.group.add(this._selectorGroup=new uE),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(n,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var o=n.get("align"),s=n.get("orient");(!o||o==="auto")&&(o=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),c=n.get("selectorPosition",!0);l&&(!c||c==="auto")&&(c=s==="horizontal"?"end":"start"),this.renderInner(o,n,r,a,l,s,c);var u=SV(n,a).refContainer,f=n.getBoxLayoutParams(),d=n.get("padding"),h=yS(f,u,d),p=this.layoutInner(n,o,h,i,l,c),v=yS(Or({width:p.width,height:p.height},f),u,d);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=eut(p,n))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(n,r,a,i,o,s,l){var c=this.getContentGroup(),u=ir(),f=r.get("selectedMode"),d=r.get("triggerEvent"),h=[];a.eachRawSeries(function(p){!p.get("legendHoverLink")&&h.push(p.id)}),aJ(r.getData(),function(p,v){var g=this,y=p.get("name");if(!this.newlineDisabled&&(y===""||y===`-`)){var m=new uE;m.newline=!0,c.add(m);return}var R=a.getSeriesByName(y)[0];if(!u.get(y))if(R){var A=R.getData(),x=A.getVisual("legendLineStyle")||{},M=A.getVisual("legendIcon"),S=A.getVisual("style"),w=this._createItem(R,y,v,p,r,n,x,S,M,f,i);w.on("click",Ub(vAe,y,null,i,h)).on("mouseover",Ub(iJ,R.name,null,i,h)).on("mouseout",Ub(oJ,R.name,null,i,h)),a.ssr&&w.eachChild(function(_){var T=Ra(_);T.seriesIndex=R.seriesIndex,T.dataIndex=v,T.ssrType="legend"}),d&&w.eachChild(function(_){g.packEventData(_,r,R,v,y)}),u.set(y,!0)}else a.eachRawSeries(function(_){var T=this;if(!u.get(y)&&_.legendVisualProvider){var O=_.legendVisualProvider;if(!O.containName(y))return;var N=O.indexOfName(y),P=O.getItemVisual(N,"style"),C=O.getItemVisual(N,"legendIcon"),E=Ef(P.fill);E&&E[3]===0&&(E[3]=.2,P=Zt(Zt({},P),{fill:C8(E,"rgba")}));var F=this._createItem(_,y,v,p,r,n,{},P,C,f,i);F.on("click",Ub(vAe,null,y,i,h)).on("mouseover",Ub(iJ,null,y,i,h)).on("mouseout",Ub(oJ,null,y,i,h)),a.ssr&&F.eachChild(function(Y){var Q=Ra(Y);Q.seriesIndex=_.seriesIndex,Q.dataIndex=v,Q.ssrType="legend"}),d&&F.eachChild(function(Y){T.packEventData(Y,r,_,v,y)}),u.set(y,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype.packEventData=function(n,r,a,i,o){var s={componentType:"legend",componentIndex:r.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};Ra(n).eventData=s},e.prototype._createSelector=function(n,r,a,i,o){var s=this.getSelectorGroup();aJ(n,function(c){var u=c.type,f=new Ac({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});s.add(f);var d=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);US(f,{normal:d,emphasis:h},{defaultText:c.title}),Mz(f)})},e.prototype._createItem=function(n,r,a,i,o,s,l,c,u,f,d){var h=n.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(r),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),R=i.get("icon");u=R||u||"roundRect";var A=nut(u,i,l,c,h,g,d),x=new uE,M=i.getModel("textStyle");if($n(n.getLegendIcon)&&(!R||R==="inherit"))x.add(n.getLegendIcon({itemWidth:p,itemHeight:v,icon:u,iconRotate:y,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:m}));else{var S=R==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;x.add(rut({itemWidth:p,itemHeight:v,icon:u,iconRotate:S,itemStyle:A.itemStyle,symbolKeepAspect:m}))}var w=s==="left"?p+5:-5,_=s,T=o.get("formatter"),O=r;Sn(T)&&T?O=T.replace("{name}",r??""):$n(T)&&(O=T(r));var N=g?M.getTextColor():i.get("inactiveColor");x.add(new Ac({style:Bw(M,{text:O,x:w,y:v/2,fill:N,align:_,verticalAlign:"middle"},{inheritColor:N})}));var P=new Ii({shape:x.getBoundingRect(),style:{fill:"transparent"}}),C=i.getModel("tooltip");return C.get("show")&&yV({el:P,componentModel:o,itemName:r,itemTooltipOption:C.option}),x.add(P),x.eachChild(function(E){E.silent=!0}),P.silent=!f,this.getContentGroup().add(x),Mz(x),x.__legendDataIndex=a,x},e.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getContentGroup(),c=this.getSelectorGroup();tw(n.get("orient"),l,n.get("itemGap"),a.width,a.height);var u=l.getBoundingRect(),f=[-u.x,-u.y];if(c.markRedraw(),l.markRedraw(),o){tw("horizontal",c,n.get("selectorItemGap",!0));var d=c.getBoundingRect(),h=[-d.x,-d.y],p=n.get("selectorButtonGap",!0),v=n.getOrient().index,g=v===0?"width":"height",y=v===0?"height":"width",m=v===0?"y":"x";s==="end"?h[v]+=u[g]+p:f[v]+=d[g]+p,h[1-v]+=u[y]/2-d[y]/2,c.x=h[0],c.y=h[1],l.x=f[0],l.y=f[1];var R={x:0,y:0};return R[g]=u[g]+p+d[g],R[y]=Math.max(u[y],d[y]),R[m]=Math.min(0,d[m]+h[1-v]),R}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(x0);function nut(t,e,n,r,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),aJ(g,function(m,R){g[R]==="inherit"&&(g[R]=y[R])})}var l=e.getModel("itemStyle"),c=l.getItemStyle(),u=t.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");c.decal=!f||f==="inherit"?r.decal:Uz(f,o),c.fill==="inherit"&&(c.fill=r[a]),c.stroke==="inherit"&&(c.stroke=r[u]),c.opacity==="inherit"&&(c.opacity=(a==="fill"?r:n).opacity),s(c,r);var d=e.getModel("lineStyle"),h=d.getLineStyle();if(s(h,n),c.fill==="auto"&&(c.fill=r.fill),c.stroke==="auto"&&(c.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),v=c[u];c.lineWidth=p==="auto"?r.lineWidth>0&&v?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:c,lineStyle:h}}function rut(t){var e=t.icon||"roundRect",n=$1(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=er.color.neutral00,n.style.lineWidth=2),n}function vAe(t,e,n,r){oJ(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:t??e}),iJ(t,e,n,r)}function O6e(t){for(var e=t.getZr().storage.getDisplayList(),n,r=0,a=e.length;r<a&&!(n=e[r].states.emphasis);)r++;return n&&n.hoverLayer}function iJ(t,e,n,r){O6e(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function oJ(t,e,n,r){O6e(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}function aut(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(n){for(var r=0;r<e.length;r++)if(!e[r].isSelected(n.name))return!1;return!0})}function I5(t,e,n){var r=t==="allSelect"||t==="inverseSelect",a={},i=[];n.eachComponent({mainType:"legend",query:e},function(s){r?s[t]():s[t](e.name),gAe(s,a),i.push(s.componentIndex)});var o={};return n.eachComponent("legend",function(s){Ge(a,function(l,c){s[l?"select":"unSelect"](c)}),gAe(s,o)}),r?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function gAe(t,e){var n=e||{};return Ge(t.getData(),function(r){var a=r.get("name");if(!(a===`-`||a==="")){var i=t.isSelected(a);bh(n,a)?n[a]=n[a]&&i:n[a]=i}}),n}function iut(t){t.registerAction("legendToggleSelect","legendselectchanged",cc(I5,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",cc(I5,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",cc(I5,"inverseSelect")),t.registerAction("legendSelect","legendselected",cc(I5,"select")),t.registerAction("legendUnSelect","legendunselected",cc(I5,"unSelect"))}function P6e(t){t.registerComponentModel(rJ),t.registerComponentView(T6e),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,aut),t.registerSubTypeDefaulter("legend",function(){return"plain"}),iut(t)}var out=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},e.prototype.init=function(n,r,a){var i=D8(n);t.prototype.init.call(this,n,r,a),mAe(this,n,i)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),mAe(this,this.option,n)},e.type="legend.scroll",e.defaultOption=n8e(rJ.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:er.color.accent50,pageIconInactiveColor:er.color.accent10,pageIconSize:15,pageTextStyle:{color:er.color.tertiary},animationDurationUpdate:800}),e}(rJ);function mAe(t,e,n){var r=t.getOrient(),a=[1,1];a[r.index]=0,G1(e,n,{type:"box",ignoreSize:!!a})}var yAe=ki,AH=["width","height"],RH=["x","y"],sut=function(t){Jt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new yAe),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new yAe)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(n,r,a,i,o,s,l){var c=this;t.prototype.renderInner.call(this,n,r,a,i,o,s,l);var u=this._controllerGroup,f=r.get("pageIconSize",!0),d=dn(f)?f:[f,f];p("pagePrev",0);var h=r.getModel("pageTextStyle");u.add(new Ac({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(v,g){var y=v+"DataIndex",m=$we(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:Ha(c._pageGo,c,y,r,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});m.name=v,u.add(m)}},e.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getSelectorGroup(),c=n.getOrient().index,u=AH[c],f=RH[c],d=AH[1-c],h=RH[1-c];o&&tw("horizontal",l,n.get("selectorItemGap",!0));var p=n.get("selectorButtonGap",!0),v=l.getBoundingRect(),g=[-v.x,-v.y],y=Mr(a);o&&(y[u]=a[u]-v[u]-p);var m=this._layoutContentAndController(n,i,y,c,u,d,h,f);if(o){if(s==="end")g[c]+=m[u]+p;else{var R=v[u]+p;g[c]-=R,m[f]-=R}m[u]+=v[u]+p,g[1-c]+=m[h]+m[d]/2-v[d]/2,m[d]=Math.max(m[d],v[d]),m[h]=Math.min(m[h],v[h]+g[1-c]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(n,r,a,i,o,s,l,c){var u=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;tw(n.get("orient"),u,n.get("itemGap"),i?a.width:null,i?null:a.height),tw("horizontal",d,n.get("pageButtonItemGap",!0));var h=u.getBoundingRect(),p=d.getBoundingRect(),v=this._showController=h[o]>a[o],g=[-h.x,-h.y];r||(g[i]=u[c]);var y=[0,0],m=[-p.x,-p.y],R=gn(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(v){var A=n.get("pageButtonPosition",!0);A==="end"?m[i]+=a[o]-p[o]:y[i]+=p[o]+R}m[1-i]+=h[s]/2-p[s]/2,u.setPosition(g),f.setPosition(y),d.setPosition(m);var x={x:0,y:0};if(x[o]=v?a[o]:h[o],x[s]=Math.max(h[s],p[s]),x[l]=Math.min(0,p[l]+m[1-i]),f.__rectSize=a[o],v){var M={x:0,y:0};M[o]=Math.max(a[o]-p[o]-R,0),M[s]=x[s],f.setClipPath(new Ii({shape:M})),f.__rectSize=M[o]}else d.eachChild(function(w){w.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(n);return S.pageIndex!=null&&hs(u,{x:S.contentPosition[0],y:S.contentPosition[1]},v?n:null),this._updatePageInfoView(n,S),x},e.prototype._pageGo=function(n,r,a){var i=this._getPageInfo(r)[n];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(n,r){var a=this._controllerGroup;Ge(["pagePrev","pageNext"],function(u){var f=u+"DataIndex",d=r[f]!=null,h=a.childOfName(u);h&&(h.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,c=r.pageCount;i&&o&&i.setStyle("text",Sn(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",c==null?"":c+""):o({current:l,total:c}))},e.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=n.getOrient().index,s=AH[o],l=RH[o],c=this._findTargetItemIndex(r),u=a.children(),f=u[c],d=u.length,h=d?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=A(f);p.contentPosition[o]=-v.s;for(var g=c+1,y=v,m=v,R=null;g<=d;++g)R=A(u[g]),(!R&&m.e>y.s+i||R&&!x(R,y.s))&&(m.i>y.i?y=m:y=R,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=R;for(var g=c-1,y=v,m=v,R=null;g>=-1;--g)R=A(u[g]),(!R||!x(m,R.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=R;return p;function A(M){if(M){var S=M.getBoundingRect(),w=S[l]+M[l];return{s:w,e:w+S[s],i:M.__legendDataIndex}}}function x(M,S){return M.e>=S&&M.s<=S+i}},e.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===n&&(r=s)}),r??i},e.type="legend.scroll",e}(T6e);function lut(t){t.registerAction("legendScroll","legendscroll",function(e,n){var r=e.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function cut(t){vy(P6e),t.registerComponentModel(out),t.registerComponentView(sut),lut(t)}function uut(t){vy(P6e),vy(cut)}var bH=Math.sin,xH=Math.cos,C6e=Math.PI,h2=Math.PI*2,fut=180/C6e,N6e=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,n){this._add("M",e,n)},t.prototype.lineTo=function(e,n){this._add("L",e,n)},t.prototype.bezierCurveTo=function(e,n,r,a,i,o){this._add("C",e,n,r,a,i,o)},t.prototype.quadraticCurveTo=function(e,n,r,a){this._add("Q",e,n,r,a)},t.prototype.arc=function(e,n,r,a,i,o){this.ellipse(e,n,r,r,0,a,i,o)},t.prototype.ellipse=function(e,n,r,a,i,o,s,l){var c=s-o,u=!l,f=Math.abs(c),d=x1(f-h2)||(u?c>=h2:-c>=h2),h=c>0?c%h2:c%h2+h2,p=!1;d?p=!0:x1(f)?p=!1:p=h>=C6e==!!u;var v=e+r*xH(o),g=n+a*bH(o);this._start&&this._add("M",v,g);var y=Math.round(i*fut);if(d){var m=1/this._p,R=(u?1:-1)*(h2-m);this._add("A",r,a,y,1,+u,e+r*xH(o+R),n+a*bH(o+R)),m>.01&&this._add("A",r,a,y,0,+u,v,g)}else{var A=e+r*xH(s),x=n+a*bH(s);this._add("A",r,a,y,+p,+u,A,x)}},t.prototype.rect=function(e,n,r,a){this._add("M",e,n),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,n,r,a,i,o,s,l,c){for(var u=[],f=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h)){this._invalid=!0;return}u.push(Math.round(h*f)/f)}this._d.push(e+u.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),Nee="none",dut=Math.round;function hut(t){var e=t.fill;return e!=null&&e!==Nee}function put(t){var e=t.stroke;return e!=null&&e!==Nee}var sJ=["lineCap","miterLimit","lineJoin"],vut=nn(sJ,function(t){return"stroke-"+t.toLowerCase()});function gut(t,e,n,r){var a=e.opacity==null?1:e.opacity;if(n instanceof Hf){t("opacity",a);return}if(hut(e)){var i=kw(e.fill);t("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*a:i.opacity*a;o<1&&t("fill-opacity",o)}else t("fill",Nee);if(put(e)){var s=kw(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,c=l?(e.lineWidth||0)/l:0,u=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*a:s.opacity*a,f=e.strokeFirst;if(c!==1&&t("stroke-width",c),f&&t("paint-order",f?"stroke":"fill"),u<1&&t("stroke-opacity",u),e.lineDash){var d=vee(n),h=d[0],p=d[1];h&&(p=dut(p||0),t("stroke-dasharray",h.join(",")),(p||r)&&t("stroke-dashoffset",p))}for(var v=0;v<sJ.length;v++){var g=sJ[v];if(e[g]!==LX[g]){var y=e[g]||LX[g];y&&t(vut[v],y)}}}}var I6e="http://www.w3.org/2000/svg",k6e="http://www.w3.org/1999/xlink",mut="http://www.w3.org/2000/xmlns/",yut="http://www.w3.org/XML/1998/namespace",AAe="ecmeta_";function E6e(t){return document.createElementNS(I6e,t)}function ji(t,e,n,r,a){return{tag:t,attrs:n||{},children:r,text:a,key:e}}function Aut(t,e){var n=[];if(e)for(var r in e){var a=e[r],i=r;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),n.push(i))}return"<"+t+" "+n.join(" ")+">"}function Rut(t){return"</"+t+">"}function Iee(t,e){e=e||{};var n=e.newline?`-`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return Aut(o,s)+(o!=="style"?uqe(l):l||"")+(i?""+n+nn(i,function(c){return r(c)}).join(n)+n:"")+Rut(o)}return r(t)}function but(t,e,n){n=n||{};var r=n.newline?`-`:"",a=" {"+r,i=r+"}",o=nn(kr(t),function(l){return l+a+nn(kr(t[l]),function(c){return c+":"+t[l][c]+";"}).join(r)+i}).join(r),s=nn(kr(e),function(l){return"@keyframes "+l+a+nn(kr(e[l]),function(c){return c+a+nn(kr(e[l][c]),function(u){var f=e[l][c][u];return u==="d"&&(f='path("'+f+'")'),u+":"+f+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(r)}function lJ(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function RAe(t,e,n,r){return ji("svg","root",{width:t,height:e,xmlns:I6e,"xmlns:xlink":k6e,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+t+" "+e:!1},n)}var xut=0;function F6e(){return xut++}var bAe={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},x2="transform-origin";function Sut(t,e,n){var r=Zt({},t.shape);Zt(r,e),t.buildPath(n,r);var a=new N6e;return a.reset(z_e(t)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function Mut(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[x2]=n+"px "+r+"px")}var _ut={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function X6e(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function wut(t,e,n){var r=t.shape.paths,a={},i,o;if(Ge(r,function(l){var c=lJ(n.zrId);c.animation=!0,TV(l,{},c,!0);var u=c.cssAnims,f=c.cssNodes,d=kr(u),h=d.length;if(h){o=d[h-1];var p=u[o];for(var v in p){var g=p[v];a[v]=a[v]||{d:""},a[v].d+=g.d||""}for(var y in f){var m=f[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=X6e(a,n);return i.replace(o,s)}}function xAe(t){return Sn(t)?bAe[t]?"cubic-bezier("+bAe[t]+")":Pq(t)?t:"":""}function TV(t,e,n,r){var a=t.animators,i=a.length,o=[];if(t instanceof Uwe){var s=wut(t,e,n);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},c=0;c<i;c++){var u=a[c],f=[u.getMaxTime()/1e3+"s"],d=xAe(u.getClip().easing),h=u.getDelay();d?f.push(d):f.push("linear"),h&&f.push(h/1e3+"s"),u.getLoop()&&f.push("infinite");var p=f.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(u)}function v(m){var R=m[1],A=R.length,x={},M={},S={},w="animation-timing-function";function _(_e,se,z){for(var de=_e.getTracks(),fe=_e.getMaxTime(),re=0;re<de.length;re++){var X=de[re];if(X.needsAnimate()){var j=X.keyframes,oe=X.propName;if(z&&(oe=z(oe)),oe)for(var ae=0;ae<j.length;ae++){var le=j[ae],ge=Math.round(le.time/fe*100)+"%",Se=xAe(le.easing),me=le.rawValue;(Sn(me)||oa(me))&&(se[ge]=se[ge]||{},se[ge][oe]=le.rawValue,Se&&(se[ge][w]=Se))}}}}for(var T=0;T<A;T++){var O=R[T],N=O.targetName;N?N==="shape"&&_(O,M):!r&&_(O,x)}for(var P in x){var C={};MX(C,t),Zt(C,x[P]);var E=J_e(C),F=x[P][w];S[P]=E?{transform:E}:{},Mut(S[P],C),F&&(S[P][w]=F)}var Y,Q=!0;for(var P in M){S[P]=S[P]||{};var K=!Y,F=M[P][w];K&&(Y=new K1);var ne=Y.len();Y.reset(),S[P].d=Sut(t,M[P],Y);var Z=Y.len();if(!K&&ne!==Z){Q=!1;break}F&&(S[P][w]=F)}if(!Q)for(var P in S)delete S[P].d;if(!r)for(var T=0;T<A;T++){var O=R[T],N=O.targetName;N==="style"&&_(O,S,function(de){return _ut[de]})}for(var $=kr(S),G=!0,ee,T=1;T<$.length;T++){var ce=$[T-1],B=$[T];if(S[ce][x2]!==S[B][x2]){G=!1;break}ee=S[ce][x2]}if(G&&ee){for(var P in S)S[P][x2]&&delete S[P][x2];e[x2]=ee}if(Hi($,function(_e){return kr(S[_e]).length>0}).length){var xe=X6e(S,n);return xe+" "+m[0]+" both"}}for(var g in l){var s=v(l[g]);s&&o.push(s)}if(o.length){var y=n.zrId+"-cls-"+F6e();n.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function Lut(t,e,n){if(!t.ignore)if(t.isSilent()){var r={"pointer-events":"none"};SAe(r,e,n)}else{var a=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},i=a.fill;if(!i){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(i=rz(l))}var c=a.lineWidth;if(c){var u=!a.strokeNoScale&&t.transform?t.transform[0]:1;c=c/u}var r={cursor:"pointer"};i&&(r.fill=i),a.stroke&&(r.stroke=a.stroke),c&&(r["stroke-width"]=c),SAe(r,e,n)}}function SAe(t,e,n,r){var a=JSON.stringify(t),i=n.cssStyleCache[a];i||(i=n.zrId+"-cls-"+F6e(),n.cssStyleCache[a]=i,n.cssNodes["."+i+":hover"]=t),e.class=e.class?e.class+" "+i:i}var jw=Math.round;function D6e(t){return t&&Sn(t.src)}function V6e(t){return t&&$n(t.toDataURL)}function kee(t,e,n,r){gut(function(a,i){var o=a==="fill"||a==="stroke";o&&$_e(i)?W6e(e,t,a,r):o&&Cq(i)?Y6e(n,t,a,r):t[a]=i,o&&r.ssr&&i==="none"&&(t["pointer-events"]="visible")},e,n,!1),kut(n,t,r)}function Eee(t,e){var n=xet(e);n&&(n.each(function(r,a){r!=null&&(t[(AAe+a).toLowerCase()]=r+"")}),e.isSilent()&&(t[AAe+"silent"]="true"))}function MAe(t){return x1(t[0]-1)&&x1(t[1])&&x1(t[2])&&x1(t[3]-1)}function Tut(t){return x1(t[4])&&x1(t[5])}function Fee(t,e,n){if(e&&!(Tut(e)&&MAe(e))){var r=1e4;t.transform=MAe(e)?"translate("+jw(e[4]*r)/r+" "+jw(e[5]*r)/r+")":Yqe(e)}}function _Ae(t,e,n){for(var r=t.points,a=[],i=0;i<r.length;i++)a.push(jw(r[i][0]*n)/n),a.push(jw(r[i][1]*n)/n);e.points=a.join(" ")}function wAe(t){return!t.smooth}function Out(t){var e=nn(t,function(n){return typeof n=="string"?[n,n]:n});return function(n,r,a){for(var i=0;i<e.length;i++){var o=e[i],s=n[o[0]];s!=null&&(r[o[1]]=jw(s*a)/a)}}}var Put={circle:[Out(["cx","cy","r"])],polyline:[_Ae,wAe],polygon:[_Ae,wAe]};function Cut(t){for(var e=t.animators,n=0;n<e.length;n++)if(e[n].targetName==="shape")return!0;return!1}function U6e(t,e){var n=t.style,r=t.shape,a=Put[t.type],i={},o=e.animation,s="path",l=t.style.strokePercent,c=e.compress&&z_e(t)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](r))&&!(o&&Cut(t))&&!(l<1)){s=t.type;var u=Math.pow(10,c);a[0](r,i,u)}else{var f=!t.path||t.shapeChanged();t.path||t.createPathProxy();var d=t.path;f&&(d.beginPath(),t.buildPath(d,t.shape),t.pathUpdated());var h=d.getVersion(),p=t,v=p.__svgPathBuilder;(p.__svgPathVersion!==h||!v||l!==p.__svgPathStrokePercent)&&(v||(v=p.__svgPathBuilder=new N6e),v.reset(c),d.rebuildPath(v,l),v.generateStr(),p.__svgPathVersion=h,p.__svgPathStrokePercent=l),i.d=v.getStr()}return Fee(i,t.transform),kee(i,n,t,e),Eee(i,t),e.animation&&TV(t,i,e),e.emphasis&&Lut(t,i,e),ji(s,t.id+"",i)}function Nut(t,e){var n=t.style,r=n.image;if(r&&!Sn(r)&&(D6e(r)?r=r.src:V6e(r)&&(r=r.toDataURL())),!!r){var a=n.x||0,i=n.y||0,o=n.width,s=n.height,l={href:r,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),Fee(l,t.transform),kee(l,n,t,e),Eee(l,t),e.animation&&TV(t,l,e),ji("image",t.id+"",l)}}function Iut(t,e){var n=t.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var a=n.font||b0,i=n.x||0,o=Zqe(n.y||0,N8(a),n.textBaseline),s=Bqe[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Mwe(n)){var c="",u=n.fontStyle,f=Swe(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||M_e,h=n.fontWeight;c+="font-size:"+f+";font-family:"+d+";",u&&u!=="normal"&&(c+="font-style:"+u+";"),h&&h!=="normal"&&(c+="font-weight:"+h+";"),l.style=c}else l.style="font: "+a;return r.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),Fee(l,t.transform),kee(l,n,t,e),Eee(l,t),e.animation&&TV(t,l,e),ji("text",t.id+"",l,void 0,r)}}function LAe(t,e){if(t instanceof Zr)return U6e(t,e);if(t instanceof Hf)return Nut(t,e);if(t instanceof Vw)return Iut(t,e)}function kut(t,e,n){var r=t.style;if(Qqe(r)){var a=Kqe(t),i=n.shadowCache,o=i[a];if(!o){var s=t.getGlobalScale(),l=s[0],c=s[1];if(!l||!c)return;var u=r.shadowOffsetX||0,f=r.shadowOffsetY||0,d=r.shadowBlur,h=kw(r.shadowColor),p=h.opacity,v=h.color,g=d/2/l,y=d/2/c,m=g+" "+y;o=n.zrId+"-s"+n.shadowIdx++,n.defs[o]=ji("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ji("feDropShadow","",{dx:u/l,dy:f/c,stdDeviation:m,"flood-color":v,"flood-opacity":p})]),i[a]=o}e.filter=sV(o)}}function W6e(t,e,n,r){var a=t[n],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(H_e(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(G_e(a))i="radialGradient",o.cx=gn(a.x,.5),o.cy=gn(a.y,.5),o.r=gn(a.r,.5);else return;for(var s=a.colorStops,l=[],c=0,u=s.length;c<u;++c){var f=az(s[c].offset)*100+"%",d=s[c].color,h=kw(d),p=h.color,v=h.opacity,g={offset:f};g["stop-color"]=p,v<1&&(g["stop-opacity"]=v),l.push(ji("stop",c+"",g))}var y=ji(i,"",o,l),m=Iee(y),R=r.gradientCache,A=R[m];A||(A=r.zrId+"-g"+r.gradientIdx++,R[m]=A,o.id=A,r.defs[A]=ji(i,A,o,l)),e[n]=sV(A)}function Y6e(t,e,n,r){var a=t.style[n],i=t.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",c=s==="repeat-x",u=s==="repeat-y",f;if(K_e(a)){var d=a.imageWidth,h=a.imageHeight,p=void 0,v=a.image;if(Sn(v)?p=v:D6e(v)?p=v.src:V6e(v)&&(p=v.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Nh(d,g),Nh(h,g)}else if(d==null||h==null){var y=function(T,O){if(T){var N=T.elm,P=d||O.width,C=h||O.height;T.tag==="pattern"&&(c?(C=1,P/=i.width):u&&(P=1,C/=i.height)),T.attrs.width=P,T.attrs.height=C,N&&(N.setAttribute("width",P),N.setAttribute("height",C))}},m=Xq(p,null,t,function(T){l||y(M,T),y(f,T)});m&&m.width&&m.height&&(d=d||m.width,h=h||m.height)}f=ji("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else a.svgElement&&(f=Mr(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var R,A;l?R=A=1:c?(A=1,R=o.width/i.width):u?(R=1,A=o.height/i.height):o.patternUnits="userSpaceOnUse",R!=null&&!isNaN(R)&&(o.width=R),A!=null&&!isNaN(A)&&(o.height=A);var x=J_e(a);x&&(o.patternTransform=x);var M=ji("pattern","",o,[f]),S=Iee(M),w=r.patternCache,_=w[S];_||(_=r.zrId+"-p"+r.patternIdx++,w[S]=_,o.id=_,M=r.defs[_]=ji("pattern",_,o,[f])),e[n]=sV(_)}}function Eut(t,e,n){var r=n.clipPathCache,a=n.defs,i=r[t.id];if(!i){i=n.zrId+"-c"+n.clipPathIdx++;var o={id:i};r[t.id]=i,a[i]=ji("clipPath",i,o,[U6e(t,n)])}e["clip-path"]=sV(i)}function TAe(t){return document.createTextNode(t)}function O2(t,e,n){t.insertBefore(e,n)}function OAe(t,e){t.removeChild(e)}function PAe(t,e){t.appendChild(e)}function B6e(t){return t.parentNode}function Z6e(t){return t.nextSibling}function SH(t,e){t.textContent=e}var CAe=58,Fut=120,Xut=ji("","");function cJ(t){return t===void 0}function ah(t){return t!==void 0}function Dut(t,e,n){for(var r={},a=e;a<=n;++a){var i=t[a].key;i!==void 0&&(r[i]=a)}return r}function p_(t,e){var n=t.key===e.key,r=t.tag===e.tag;return r&&n}function qw(t){var e,n=t.children,r=t.tag;if(ah(r)){var a=t.elm=E6e(r);if(Xee(Xut,t),dn(n))for(e=0;e<n.length;++e){var i=n[e];i!=null&&PAe(a,qw(i))}else ah(t.text)&&!kn(t.text)&&PAe(a,TAe(t.text))}else t.elm=TAe(t.text);return t.elm}function Q6e(t,e,n,r,a){for(;r<=a;++r){var i=n[r];i!=null&&O2(t,qw(i),e)}}function GX(t,e,n,r){for(;n<=r;++n){var a=e[n];if(a!=null)if(ah(a.tag)){var i=B6e(a.elm);OAe(i,a.elm)}else OAe(t,a.elm)}}function Xee(t,e){var n,r=e.elm,a=t&&t.attrs||{},i=e.attrs||{};if(a!==i){for(n in i){var o=i[n],s=a[n];s!==o&&(o===!0?r.setAttribute(n,""):o===!1?r.removeAttribute(n):n==="style"?r.style.cssText=o:n.charCodeAt(0)!==Fut?r.setAttribute(n,o):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(mut,n,o):n.charCodeAt(3)===CAe?r.setAttributeNS(yut,n,o):n.charCodeAt(5)===CAe?r.setAttributeNS(k6e,n,o):r.setAttribute(n,o))}for(n in a)n in i||r.removeAttribute(n)}}function Vut(t,e,n){for(var r=0,a=0,i=e.length-1,o=e[0],s=e[i],l=n.length-1,c=n[0],u=n[l],f,d,h,p;r<=i&&a<=l;)o==null?o=e[++r]:s==null?s=e[--i]:c==null?c=n[++a]:u==null?u=n[--l]:p_(o,c)?(cx(o,c),o=e[++r],c=n[++a]):p_(s,u)?(cx(s,u),s=e[--i],u=n[--l]):p_(o,u)?(cx(o,u),O2(t,o.elm,Z6e(s.elm)),o=e[++r],u=n[--l]):p_(s,c)?(cx(s,c),O2(t,s.elm,o.elm),s=e[--i],c=n[++a]):(cJ(f)&&(f=Dut(e,r,i)),d=f[c.key],cJ(d)?O2(t,qw(c),o.elm):(h=e[d],h.tag!==c.tag?O2(t,qw(c),o.elm):(cx(h,c),e[d]=void 0,O2(t,h.elm,o.elm))),c=n[++a]);(r<=i||a<=l)&&(r>i?(p=n[l+1]==null?null:n[l+1].elm,Q6e(t,p,n,a,l)):GX(t,e,r,i))}function cx(t,e){var n=e.elm=t.elm,r=t.children,a=e.children;t!==e&&(Xee(t,e),cJ(e.text)?ah(r)&&ah(a)?r!==a&&Vut(n,r,a):ah(a)?(ah(t.text)&&SH(n,""),Q6e(n,null,a,0,a.length-1)):ah(r)?GX(n,r,0,r.length-1):ah(t.text)&&SH(n,""):t.text!==e.text&&(ah(r)&&GX(n,r,0,r.length-1),SH(n,e.text)))}function Uut(t,e){if(p_(t,e))cx(t,e);else{var n=t.elm,r=B6e(n);qw(e),r!==null&&(O2(r,e.elm,Z6e(n)),GX(r,[t],0,0))}return e}var Wut=0,Yut=function(){function t(e,n,r){if(this.type="svg",this.refreshHover=NAe(),this.configLayer=NAe(),this.storage=n,this._opts=r=Zt({},r),this.root=e,this._id="zr"+Wut++,this._oldVNode=RAe(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=E6e("svg");Xee(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Uut(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return LAe(e,lJ(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=lJ(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=But(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=ji("g","main",{},[]);this._paintList(n,i,l?l.children:o),l&&o.push(l);var c=nn(kr(i.defs),function(d){return i.defs[d]});if(c.length&&o.push(ji("defs","defs",{},c)),e.animation){var u=but(i.cssNodes,i.cssAnims,{newline:!0});if(u){var f=ji("style","stl",{},[],u);o.push(f)}}return RAe(r,a,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},Iee(this.renderToVNode({animation:gn(e.cssAnimation,!0),emphasis:gn(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:gn(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,n,r){for(var a=e.length,i=[],o=0,s,l,c=0,u=0;u<a;u++){var f=e[u];if(!f.invisible){var d=f.__clipPaths,h=d&&d.length||0,p=l&&l.length||0,v=void 0;for(v=Math.max(h-1,p-1);v>=0&&!(d&&l&&d[v]===l[v]);v--);for(var g=p-1;g>v;g--)o--,s=i[o-1];for(var y=v+1;y<h;y++){var m={};Eut(d[y],m,n);var R=ji("g","clip-g-"+c++,m,[]);(s?s.children:r).push(R),i[o++]=R,s=R}l=d;var A=LAe(f,n);A&&(s?s.children:r).push(A)}}},t.prototype.resize=function(e,n){var r=this._opts,a=this.root,i=this._viewport;if(e!=null&&(r.width=e),n!=null&&(r.height=n),a&&i&&(i.style.display="none",e=z2e(a,0,r),n=z2e(a,1,r),i.style.display=""),this._width!==e||this._height!==n){if(this._width=e,this._height=n,i){var o=i.style;o.width=e+"px",o.height=n+"px"}if(Cq(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",n));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",n))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var n=this.renderToString(),r="data:image/svg+xml;";return e?(n=Gqe(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},t}();function NAe(t){return function(){}}function But(t,e,n,r){var a;if(n&&n!=="none")if(a=ji("rect","bg",{width:t,height:e,x:"0",y:"0"}),$_e(n))W6e({fill:n},a.attrs,"fill",r);else if(Cq(n))Y6e({style:{fill:n},dirty:mc,getBoundingRect:function(){return{width:t,height:e}}},a.attrs,"fill",r);else{var i=kw(n),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}function Zut(t){t.registerPainter("svg",Yut)}const Qut=tt({__name:"Chart",props:{width:{},height:{},type:{},data:{},themeColors:{},textColor:{},lineColor:{},options:{}},setup(t){vy([Flt,blt,Klt,Bct,qct,uut,Zut]);const e=t;let n=null;const r=un("chartRef"),a=Fe(()=>{let o=[];if(e.themeColors.length>=10)o=e.themeColors;else if(e.themeColors.length===1)o=Ct(e.themeColors[0]).analogous(10).map(s=>s.toRgbString());else{const s=e.themeColors.length,l=Ct(e.themeColors[s-1]).analogous(11-s).map(c=>c.toRgbString());o=[...e.themeColors.slice(0,s-1),...l]}return o}),i=()=>{var s,l;const o=Pje({type:e.type,data:e.data,themeColors:a.value,textColor:e.textColor,lineColor:e.lineColor,lineSmooth:((s=e.options)==null?void 0:s.lineSmooth)||!1,stack:((l=e.options)==null?void 0:l.stack)||!1});o&&n.setOption(o,!0)};return mn(()=>{n=Rot(r.value,null,{renderer:"svg"}),i();const o=()=>n.resize();new ResizeObserver(o).observe(r.value)}),qt(()=>e.type,i),qt(()=>e.data,i),qt(()=>e.themeColors,i),qt(()=>e.textColor,i),(o,s)=>(V(),H("div",{class:"chart",ref_key:"chartRef",ref:r},null,512))}}),K6e=lt(Qut,[["__scopeId","data-v-50bd8d30"]]),Kut=tt({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(t){const e=t,n=a=>{e.elementInfo.lock||(a.stopPropagation(),e.selectElement(a,e.elementInfo))},r=()=>{zi.emit(Ni.OPEN_CHART_DATA_EDITOR)};return(a,i)=>{const o=pr("contextmenu");return V(),H("div",{class:mt(["editable-element-chart",{lock:a.elementInfo.lock}]),style:We({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${a.elementInfo.rotate}deg)`})},[yt((V(),H("div",{class:"element-content",style:We({backgroundColor:a.elementInfo.fill}),onMousedown:i[0]||(i[0]=s=>n(s)),onTouchstart:i[1]||(i[1]=s=>n(s)),onDblclick:i[2]||(i[2]=s=>r())},[U(tV,{width:a.elementInfo.width,height:a.elementInfo.height,outline:a.elementInfo.outline},null,8,["width","height","outline"]),U(K6e,{width:a.elementInfo.width,height:a.elementInfo.height,type:a.elementInfo.chartType,data:a.elementInfo.data,themeColors:a.elementInfo.themeColors,textColor:a.elementInfo.textColor,lineColor:a.elementInfo.lineColor,options:a.elementInfo.options},null,8,["width","height","type","data","themeColors","textColor","lineColor","options"])],36)),[[o,a.contextmenus]])],4)],6)}}}),H6e=lt(Kut,[["__scopeId","data-v-f0d388fc"]]),G6e=(t,e)=>e?{backgroundColor:e.backcolor||"",borderStyle:t.style,borderColor:t.color,borderWidth:t.width+"px"}:{},uJ=(t,e)=>{if(!e)return{};const{bold:n,em:r,underline:a,strikethrough:i,color:o,fontsize:s,fontname:l,align:c,vAlign:u}=e,f={top:"flex-start",middle:"center",bottom:"flex-end"};let d=`${a?"underline":""} ${i?"line-through":""}`;return d===" "&&(d="none"),{fontWeight:n?"bold":"normal",fontStyle:r?"italic":"normal",textDecoration:d,color:o||"#000",fontSize:s||"14px",fontFamily:l||"",justifyContent:f[u||"top"],textAlign:c||"left",minHeight:t-4+"px"}},$6e=t=>t.replace(/\n/g,"</br>").replace(/ /g," "),z6e=t=>({hideCells:Fe(()=>{const n=[];for(let r=0;r<t.value.length;r++){const a=t.value[r];for(let i=0;i<a.length;i++){const o=a[i];if(o.colspan>1||o.rowspan>1)for(let s=r;s<r+o.rowspan;s++)for(let l=s===r?i+1:i;l<i+o.colspan;l++)n.push(`${s}_${l}`)}}return n})}),J6e=t=>{const e=we(["",""]);return qt(()=>t.value,()=>{t.value&&(e.value=X4e(t.value.color))},{immediate:!0}),{subThemeColor:e}},Hut=["innerHTML"],Gut=tt({__name:"CustomTextarea",props:{value:{default:""}},emits:["updateValue","insertExcelData"],setup(t,{emit:e}){const n=t,r=e,a=un("textareaRef"),i=we(""),o=we(!1);qt(()=>n.value,()=>{o.value||(i.value=n.value,a.value&&(a.value.innerHTML=n.value))},{immediate:!0});const s=()=>{if(!a.value)return;const u=a.value.innerHTML;r("updateValue",u)},l=()=>{o.value=!0,a.value&&(a.value.onpaste=u=>{if(u.preventDefault(),!u.clipboardData)return;const f=u.clipboardData.items[0];f&&f.kind==="string"&&(f.type==="text/plain"?f.getAsString(d=>{if(typeof wj(d)=="object")return;const p=C4e(d);if(p){r("insertExcelData",p),a.value&&(a.value.innerHTML=p[0][0]);return}document.execCommand("insertText",!1,d)}):f.type==="text/html"&&f.getAsString(d=>{const h=N4e(d);h&&(r("insertExcelData",h),a.value&&(a.value.innerHTML=h[0][0]))}))})},c=()=>{o.value=!1,a.value&&(a.value.onpaste=null)};return tg(()=>{a.value&&(a.value.onpaste=null)}),(u,f)=>(V(),H("div",{class:"custom-textarea",ref_key:"textareaRef",ref:a,contenteditable:!0,onFocus:f[0]||(f[0]=d=>l()),onBlur:f[1]||(f[1]=d=>c()),onInput:f[2]||(f[2]=d=>s()),innerHTML:i.value},null,40,Hut))}}),$ut=lt(Gut,[["__scopeId","data-v-9745bb3c"]]),zut={key:0,class:"handler"},Jut=["onMousedown"],jut=["width"],qut=["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"],eft=["innerHTML"],tft=tt({__name:"EditableTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},emits:["change","changeColWidths","changeSelectedCells"],setup(t,{emit:e}){const n=t,r=e,{canvasScale:a}=nt(Wt()),i=we(!1),o=we([]),s=we([]),l=Fe({get(){return n.data},set(z){r("change",z)}}),c=Fe(()=>n.theme),{subThemeColor:u}=J6e(c),f=we([]),d=Fe(()=>f.value.reduce((z,de)=>z+de));qt([()=>n.colWidths,()=>n.width],()=>{f.value=n.colWidths.map(z=>z*n.width)},{immediate:!0});const h=()=>{o.value=[],s.value=[]};qt(()=>n.editable,()=>{n.editable||h()});const p=Fe(()=>{const z=[];for(let de=1;de<f.value.length+1;de++){const fe=f.value.slice(0,de).reduce((re,X)=>re+X);z.push(fe)}return z}),v=Fe(()=>n.data),{hideCells:g}=z6e(v),y=Fe(()=>{if(!o.value.length)return[];const[z,de]=o.value;if(!s.value.length)return[`${z}_${de}`];const[fe,re]=s.value;if(z===fe&&de===re)return[`${z}_${de}`];const X=[],j=Math.min(z,fe),oe=Math.min(de,re),ae=Math.max(z,fe),le=Math.max(de,re);for(let ge=0;ge<l.value.length;ge++){const Se=l.value[ge];for(let me=0;me<Se.length;me++)ge>=j&&ge<=ae&&me>=oe&&me<=le&&X.push(`${ge}_${me}`)}return X});qt(y,(z,de)=>{Vr.isEqual(z,de)||r("changeSelectedCells",y.value)});const m=Fe(()=>y.value.length>1?null:y.value[0]),R=()=>i.value=!1,A=(z,de,fe)=>{z.button===0&&(s.value=[],i.value=!0,o.value=[de,fe])},x=(z,de)=>{i.value&&(s.value=[z,de])};mn(()=>{document.addEventListener("mouseup",R)}),or(()=>{document.removeEventListener("mouseup",R)});const M=(z,de)=>g.value.includes(`${z}_${de}`),S=z=>{const de=l.value.length-1;o.value=[0,z],s.value=[de,z]},w=z=>{const de=l.value[z].length-1;o.value=[z,0],s.value=[z,de]},_=()=>{const z=l.value.length-1,de=l.value[z].length-1;o.value=[0,0],s.value=[z,de]},T=z=>{const de=JSON.parse(JSON.stringify(l.value)),fe=l.value[z],re=[];for(let X=0;X<fe.length;X++)M(z,X)&&re.push(X);for(const X of re)for(let j=z;j>=0;j--)if(!M(j,X)){de[j][X].rowspan=de[j][X].rowspan-1;break}de.splice(z,1),l.value=de},O=z=>{const de=JSON.parse(JSON.stringify(l.value)),fe=[];for(let re=0;re<l.value.length;re++)M(re,z)&&fe.push(re);for(const re of fe)for(let X=z;X>=0;X--)if(!M(re,X)){de[re][X].colspan=de[re][X].colspan-1;break}l.value=de.map(re=>(re.splice(z,1),re)),f.value.splice(z,1),r("changeColWidths",f.value)},N=z=>{const de=JSON.parse(JSON.stringify(l.value)),fe=[];for(let re=0;re<de[0].length;re++)fe.push({colspan:1,rowspan:1,text:"",id:Gn(10)});de.splice(z,0,fe),l.value=de},P=z=>{l.value=l.value.map(de=>{const fe={colspan:1,rowspan:1,text:"",id:Gn(10)};return de.splice(z,0,fe),de}),f.value.splice(z,0,100),r("changeColWidths",f.value)},C=(z,de)=>{let fe=JSON.parse(JSON.stringify(l.value));const re={colspan:1,rowspan:1,text:""};if(z){const X=[];for(let j=0;j<z;j++){const oe=[];for(let ae=0;ae<fe[0].length;ae++)oe.push({...re,id:Gn(10)});X.push(oe)}fe=[...fe,...X]}de&&(fe=fe.map(X=>{const j=[];for(let oe=0;oe<de;oe++){const ae={...re,id:Gn(10)};j.push(ae)}return[...X,...j]}),f.value=[...f.value,...new Array(de).fill(100)],r("changeColWidths",f.value)),l.value=fe},E=()=>{const[z,de]=o.value,[fe,re]=s.value,X=Math.min(z,fe),j=Math.min(de,re),oe=Math.max(z,fe),ae=Math.max(de,re),le=JSON.parse(JSON.stringify(l.value));le[X][j].rowspan=oe-X+1,le[X][j].colspan=ae-j+1,l.value=le,h()},F=(z,de)=>{const fe=JSON.parse(JSON.stringify(l.value));fe[z][de].rowspan=1,fe[z][de].colspan=1,l.value=fe,h()},Y=(z,de)=>{h();let fe=!0;const re=f.value[de],X=z.pageX,j=50;document.onmousemove=oe=>{if(!fe)return;const ae=(oe.pageX-X)/a.value,le=re+ae<j?j:Math.round(re+ae);f.value[de]=le},document.onmouseup=()=>{fe=!1,document.onmousemove=null,document.onmouseup=null,r("changeColWidths",f.value)}},Q=()=>{const z=JSON.parse(JSON.stringify(l.value));for(let de=0;de<z.length;de++)for(let fe=0;fe<z[de].length;fe++)y.value.includes(`${de}_${fe}`)&&(z[de][fe].text="");l.value=z},K=()=>{qr(()=>{const z=document.querySelector(".cell-text.active");z&&z.focus()})},ne=()=>{const z=(X,j)=>l.value[X]?l.value[X][j]?M(X,j)?z(X,j+1):[X,j]:z(X+1,0):null;s.value=[];const de=o.value[0],fe=o.value[1]+1,re=z(de,fe);re?o.value=re:(N(de+1),o.value=[de+1,0]),K()},Z=z=>{const de=+y.value[0].split("_")[0],fe=+y.value[0].split("_")[1],re=l.value.length,X=l.value[0].length,j=oe=>{if(oe[0]<0||oe[1]<0||oe[0]>re-1||oe[1]>X-1)return[0,0];const ae=`${oe[0]}_${oe[1]}`;return g.value.includes(ae)?z==="UP"?j([oe[0],oe[1]-1]):z==="DOWN"?j([oe[0],oe[1]-1]):z==="LEFT"?j([oe[0]-1,oe[1]]):z==="RIGHT"?j([oe[0]-1,oe[1]]):[0,0]:oe};if(z==="UP"){const oe=de-1;if(oe<0)return;s.value=[],o.value=j([oe,fe])}else if(z==="DOWN"){const oe=de+1;if(oe>re-1)return;s.value=[],o.value=j([oe,fe])}else if(z==="LEFT"){const oe=fe-1;if(oe<0)return;s.value=[],o.value=j([de,oe])}else if(z==="RIGHT"){const oe=fe+1;if(oe>X-1)return;s.value=[],o.value=j([de,oe])}K()},$=z=>{var fe;const de=window.getSelection();if(de&&de.rangeCount>0){const re=de.getRangeAt(0),X=re.cloneRange();X.selectNodeContents(z),X.setEnd(re.startContainer,re.startOffset);const j=X.toString().length;X.setEnd(re.endContainer,re.endOffset);const oe=X.toString().length,ae=((fe=z.textContent)==null?void 0:fe.length)||0;return{start:j,end:oe,len:ae}}return null},G=z=>{if(!n.editable||!y.value.length)return;const de=z.key.toUpperCase();if(y.value.length<2){if(de===Ht.TAB)z.preventDefault(),ne();else if(z.ctrlKey&&de===Ht.UP){z.preventDefault();const fe=+y.value[0].split("_")[0];N(fe)}else if(z.ctrlKey&&de===Ht.DOWN){z.preventDefault();const fe=+y.value[0].split("_")[0];N(fe+1)}else if(z.ctrlKey&&de===Ht.LEFT){z.preventDefault();const fe=+y.value[0].split("_")[1];P(fe)}else if(z.ctrlKey&&de===Ht.RIGHT){z.preventDefault();const fe=+y.value[0].split("_")[1];P(fe+1)}else if(de===Ht.UP){const fe=$(z.target);fe&&fe.start===fe.end&&fe.start===0&&Z("UP")}else if(de===Ht.DOWN){const fe=$(z.target);fe&&fe.start===fe.end&&fe.start===fe.len&&Z("DOWN")}else if(de===Ht.LEFT){const fe=$(z.target);fe&&fe.start===fe.end&&fe.start===0&&Z("LEFT")}else if(de===Ht.RIGHT){const fe=$(z.target);fe&&fe.start===fe.end&&fe.start===fe.len&&Z("RIGHT")}}else de===Ht.DELETE&&Q()};mn(()=>{document.addEventListener("keydown",G)}),or(()=>{document.removeEventListener("keydown",G)});const ee=Vr.debounce(function(z,de,fe){l.value[de][fe].text=z,r("change",l.value)},300,{trailing:!0}),ce=(z,de,fe)=>{const re=z.length,X=z[0].length;let j=0,oe=0;de+re>l.value.length&&(j=de+re-l.value.length),fe+X>l.value[0].length&&(oe=fe+X-l.value[0].length),(j||oe)&&C(j,oe),qr(()=>{for(let ae=0;ae<re;ae++)for(let le=0;le<X;le++)l.value[de+ae][fe+le]&&(l.value[de+ae][fe+le].text=z[ae][le]);r("change",l.value)})},B=()=>{const z=[];for(let de=0;de<l.value.length;de++){const fe=l.value[de],re=[];for(let X=0;X<fe.length;X++)M(de,X)||re.push(fe[X]);re.length&&z.push(re)}return z},xe=()=>{const z=B(),de=z.length>1,fe=z[0].length>1;return{canDeleteRow:de,canDeleteCol:fe}},_e=(z,de)=>{const fe=y.value.length>1,re=l.value[z][de],X=fe,j=!fe&&(re.rowspan>1||re.colspan>1);return{canMerge:X,canSplit:j}},se=z=>{const de=z.dataset.cellIndex,fe=+de.split("_")[0],re=+de.split("_")[1];y.value.includes(`${fe}_${re}`)||(o.value=[fe,re],s.value=[]);const{canMerge:X,canSplit:j}=_e(fe,re),{canDeleteRow:oe,canDeleteCol:ae}=xe();return[{text:"插入列",children:[{text:"到左侧",handler:()=>P(re)},{text:"到右侧",handler:()=>P(re+1)}]},{text:"插入行",children:[{text:"到上方",handler:()=>N(fe)},{text:"到下方",handler:()=>N(fe+1)}]},{text:"删除列",disable:!ae,handler:()=>O(re)},{text:"删除行",disable:!oe,handler:()=>T(fe)},{divider:!0},{text:"合并单元格",disable:!X,handler:E},{text:"取消合并单元格",disable:!j,handler:()=>F(fe,re)},{divider:!0},{text:"选中当前列",handler:()=>S(re)},{text:"选中当前行",handler:()=>w(fe)},{text:"选中全部单元格",handler:_}]};return(z,de)=>{var re,X,j,oe,ae;const fe=pr("contextmenu");return V(),H("div",{class:"editable-table",style:We({width:d.value+"px"})},[z.editable?(V(),H("div",zut,[(V(!0),H(qe,null,bt(p.value,(le,ge)=>(V(),H("div",{class:"drag-line",key:ge,style:We({left:le+"px"}),onMousedown:Se=>Y(Se,ge)},null,44,Jut))),128))])):at("",!0),I("table",{class:mt({theme:c.value,"row-header":(re=c.value)==null?void 0:re.rowHeader,"row-footer":(X=c.value)==null?void 0:X.rowFooter,"col-header":(j=c.value)==null?void 0:j.colHeader,"col-footer":(oe=c.value)==null?void 0:oe.colFooter}),style:We(`--themeColor: ${(ae=c.value)==null?void 0:ae.color}; --subThemeColor1: ${te(u)[0]}; --subThemeColor2: ${te(u)[1]}`)},[I("colgroup",null,[(V(!0),H(qe,null,bt(f.value,(le,ge)=>(V(),H("col",{span:"1",key:ge,width:le},null,8,jut))),128))]),I("tbody",null,[(V(!0),H(qe,null,bt(l.value,(le,ge)=>(V(),H("tr",{key:ge,style:We({height:z.cellMinHeight+"px"})},[(V(!0),H(qe,null,bt(le,(Se,me)=>yt((V(),H("td",{class:mt(["cell",{selected:y.value.includes(`${ge}_${me}`)&&y.value.length>1,active:m.value===`${ge}_${me}`}]),style:We(te(G6e)(z.outline,Se.style)),key:Se.id,rowspan:Se.rowspan,colspan:Se.colspan,"data-cell-index":`${ge}_${me}`,onMousedown:ye=>A(ye,ge,me),onMouseenter:ye=>x(ge,me)},[m.value===`${ge}_${me}`?(V(),Ue($ut,{key:0,class:mt(["cell-text",{active:m.value===`${ge}_${me}`}]),style:We(te(uJ)(z.cellMinHeight,Se.style)),value:Se.text,onUpdateValue:ye=>te(ee)(ye,ge,me),onInsertExcelData:ye=>ce(ye,ge,me)},null,8,["class","style","value","onUpdateValue","onInsertExcelData"])):(V(),H("div",{key:1,class:"cell-text",style:We(te(uJ)(z.cellMinHeight,Se.style)),innerHTML:te($6e)(Se.text)},null,12,eft))],46,qut)),[[y0,!te(g).includes(`${ge}_${me}`)],[fe,ye=>se(ye)]])),128))],4))),128))])],6)],4)}}}),nft=lt(tft,[["__scopeId","data-v-530d7877"]]),rft={class:"element-content"},aft=tt({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(t){const e=t,n=Wt(),r=It(),{canvasScale:a,handleElementId:i,isScaling:o}=nt(n),s=un("elementRef"),{addHistorySnapshot:l}=Pn(),c=m=>{e.elementInfo.lock||(m.stopPropagation(),e.selectElement(m,e.elementInfo))},u=we(!1);qt(i,()=>{i.value!==e.elementInfo.id&&(u.value=!1)}),qt(u,()=>{n.setDisableHotkeysState(u.value)});const f=()=>{e.elementInfo.lock||(u.value=!0)},d=we(-1);qt(o,()=>{i.value===e.elementInfo.id&&(o.value&&(u.value=!1),!o.value&&d.value!==-1&&(r.updateElement({id:e.elementInfo.id,props:{height:d.value}}),d.value=-1))});const h=m=>{const R=m[0].contentRect;if(!s.value)return;const A=R.height;e.elementInfo.height!==A&&(o.value?d.value=A:r.updateElement({id:e.elementInfo.id,props:{height:A}}))},p=new ResizeObserver(h);mn(()=>{s.value&&p.observe(s.value)}),or(()=>{s.value&&p.unobserve(s.value)});const v=m=>{r.updateElement({id:e.elementInfo.id,props:{data:m}}),l()},g=m=>{const R=m.reduce((x,M)=>x+M),A=m.map(x=>x/R);r.updateElement({id:e.elementInfo.id,props:{width:R,colWidths:A}}),l()},y=m=>{qr(()=>n.setSelectedTableCells(m))};return(m,R)=>{const A=pr("contextmenu");return V(),H("div",{class:mt(["editable-element-table",{lock:m.elementInfo.lock}]),ref_key:"elementRef",ref:s,style:We({top:m.elementInfo.top+"px",left:m.elementInfo.left+"px",width:m.elementInfo.width+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${m.elementInfo.rotate}deg)`})},[yt((V(),H("div",rft,[U(nft,{onMousedown:R[0]||(R[0]=on(()=>{},["stop"])),data:m.elementInfo.data,width:m.elementInfo.width,cellMinHeight:m.elementInfo.cellMinHeight,colWidths:m.elementInfo.colWidths,outline:m.elementInfo.outline,theme:m.elementInfo.theme,editable:u.value,onChange:R[1]||(R[1]=x=>v(x)),onChangeColWidths:R[2]||(R[2]=x=>g(x)),onChangeSelectedCells:R[3]||(R[3]=x=>y(x))},null,8,["data","width","cellMinHeight","colWidths","outline","theme","editable"]),!u.value||m.elementInfo.lock?(V(),H("div",{key:0,class:mt(["table-mask",{lock:m.elementInfo.lock}]),onDblclick:R[4]||(R[4]=x=>f()),onMousedown:R[5]||(R[5]=x=>c(x)),onTouchstart:R[6]||(R[6]=x=>c(x))},[te(i)===m.elementInfo.id?(V(),H("div",{key:0,class:"mask-tip",style:We({transform:`scale(${1/te(a)})`})},"双击编辑",4)):at("",!0)],34)):at("",!0)])),[[A,m.contextmenus]])],4)],6)}}}),j6e=lt(aft,[["__scopeId","data-v-c9af96de"]]),ift=["width","height","stroke","stroke-width"],oft=["transform"],sft=["d"],lft=tt({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(t){const e=t,n=a=>{e.elementInfo.lock||(a.stopPropagation(),e.selectElement(a,e.elementInfo))},r=()=>{zi.emit(Ni.OPEN_LATEX_EDITOR)};return(a,i)=>{const o=pr("contextmenu");return V(),H("div",{class:mt(["editable-element-latex",{lock:a.elementInfo.lock}]),style:We({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${a.elementInfo.rotate}deg)`})},[yt((V(),H("div",{class:"element-content",onMousedown:i[0]||(i[0]=s=>n(s)),onTouchstart:i[1]||(i[1]=s=>n(s)),onDblclick:i[2]||(i[2]=s=>r())},[(V(),H("svg",{overflow:"visible",width:a.elementInfo.width,height:a.elementInfo.height,stroke:a.elementInfo.color,"stroke-width":a.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[I("g",{transform:`scale(${a.elementInfo.width/a.elementInfo.viewBox[0]}, ${a.elementInfo.height/a.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[I("path",{d:a.elementInfo.path},null,8,sft)],8,oft)],8,ift))],32)),[[o,a.contextmenus]])],4)],6)}}}),q6e=lt(lft,[["__scopeId","data-v-5bce8e7e"]]),cft={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function uft(t,e){return V(),H("svg",cft,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M24 6v36c-7 0-12.201-9.16-12.201-9.16H6a2 2 0 0 1-2-2V17.01a2 2 0 0 1 2-2h5.799S17 6 24 6Z"}),I("path",{"stroke-linecap":"round",d:"M32 15a12 12 0 0 1 1.684 1.859A12.07 12.07 0 0 1 36 24c0 2.654-.846 5.107-2.278 7.09A12 12 0 0 1 32 33"})],-1)]))}const eTe=vt({name:"icon-park-outline-volume-small",render:uft}),fft={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function dft(t,e){return V(),H("svg",fft,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-width":"4"},[I("path",{"stroke-linejoin":"round",d:"M24 6v36c-7 0-12.201-9.16-12.201-9.16H6a2 2 0 0 1-2-2V17.01a2 2 0 0 1 2-2h5.799S17 6 24 6Z"}),I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M32 15a12 12 0 0 1 1.684 1.859A12.07 12.07 0 0 1 36 24c0 2.654-.846 5.107-2.278 7.09A12 12 0 0 1 32 33"}),I("path",{"stroke-linecap":"round",d:"M34.236 41.186C40.084 37.696 44 31.305 44 24c0-7.192-3.796-13.496-9.493-17.02"})],-1)]))}const U8=vt({name:"icon-park-outline-volume-notice",render:dft}),hft={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"},pft=["id"],vft={fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},gft=["mask"];function mft(t,e){return V(),H("svg",hft,[I("mask",{id:t.idMap.SVGLLP5OdyS,width:"13",height:"13",x:"30",y:"18",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"}},e[0]||(e[0]=[I("path",{fill:"currentColor",d:"M30 18h13v13H30z"},null,-1)]),8,pft),I("g",vft,[I("g",{"stroke-linecap":"round",mask:"url(#"+t.idMap.SVGLLP5OdyS+")"},e[1]||(e[1]=[I("path",{d:"m40.735 20.286l-8.486 8.485m.001-8.485l8.485 8.485"},null,-1)]),8,gft),e[2]||(e[2]=I("path",{d:"M24 6v36c-7 0-12.201-9.16-12.201-9.16H6a2 2 0 0 1-2-2V17.01a2 2 0 0 1 2-2h5.799S17 6 24 6Z"},null,-1))])])}const tTe=vt({name:"icon-park-outline-volume-mute",render:mft,setup(){return{idMap:{SVGLLP5OdyS:"uicons-"+Math.random().toString(36).substr(2,10)}}}}),yft={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Aft(t,e){return V(),H("svg",yft,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4",d:"M15 24V11.876l10.5 6.062L36 24l-10.5 6.062L15 36.124z"},null,-1)]))}const OV=vt({name:"icon-park-outline-play-one",render:Aft}),Rft={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function bft(t,e){return V(),H("svg",Rft,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M16 12v24m16-24v24"},null,-1)]))}const Dee=vt({name:"icon-park-outline-pause",render:bft}),xft=(t,e)=>{mn(()=>{if(!e.value)return;let n="normal";if(/m3u8(#|\?|$)/i.exec(t)?n="hls":/.flv(#|\?|$)/i.exec(t)&&(n="flv"),e.value&&n==="hls"&&(e.value.canPlayType("application/x-mpegURL")||e.value.canPlayType("application/vnd.apple.mpegURL"))&&(n="normal"),n==="hls"){const r=window.Hls;if(r&&r.isSupported()){const a=new r;a.loadSource(t),a.attachMedia(e.value)}}else if(n==="flv"){const r=window.flvjs;if(r&&r.isSupported()){const a=r.createPlayer({type:"flv",url:t});a.attachMediaElement(e.value),a.load()}}})},Sft={key:0,class:"load-error"},Mft=["src","autoplay","poster"],_ft={class:"bezel"},wft={class:"controller"},Lft={class:"icons icons-left"},Tft={class:"icon-content"},Oft={class:"volume"},Pft={class:"icon-content"},Cft={class:"time"},Nft={class:"ptime"},Ift={class:"dtime"},kft={class:"icons icons-right"},Eft={class:"speed"},Fft={class:"icon speed-icon"},Xft=["onClick"],Dft={class:"icon-content"},Vft={class:"bar"},Uft=tt({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(t){const e=t,n=(j=0)=>{if(j===0||isNaN(j))return"00:00";const oe=Se=>Se<10?"0"+Se:""+Se,ae=Math.floor(j/3600),le=Math.floor((j-ae*3600)/60),ge=Math.floor(j-ae*3600-le*60);return(ae>0?[ae,le,ge]:[le,ge]).map(oe).join(":")},r=j=>j.getBoundingClientRect().left,a=un("videoRef"),i=un("playBarWrapRef"),o=un("volumeBarRef"),s=we(.5),l=we(!0),c=we(0),u=we(0),f=we(0),d=we(!1),h=we(!1),p=we(1),v=we(!1),g=we("00:00"),y=we("0"),m=Fe(()=>n(c.value)),R=Fe(()=>n(u.value)),A=Fe(()=>c.value/u.value*100+"%"),x=Fe(()=>f.value/u.value*100+"%"),M=Fe(()=>s.value*100+"%"),S=we(!1),w=[{label:"2x",value:2},{label:"1.5x",value:1.5},{label:"1.25x",value:1.25},{label:"1x",value:1},{label:"0.75x",value:.75},{label:"0.5x",value:.5}],_=j=>{a.value&&(j=Math.max(j,0),j=Math.min(j,u.value),a.value.currentTime=j,c.value=j)},T=()=>{a.value&&(l.value=!1,a.value.play(),h.value=!0)},O=()=>{a.value&&(l.value=!0,a.value.pause(),h.value=!0)},N=()=>{l.value?T():O()},P=j=>{a.value&&(j=Math.max(j,0),j=Math.min(j,1),a.value.volume=j,s.value=j,a.value.muted&&j!==0&&(a.value.muted=!1))},C=j=>{a.value&&(a.value.playbackRate=j),p.value=j},E=()=>{var j;u.value=((j=a.value)==null?void 0:j.duration)||0},F=()=>{var j;c.value=((j=a.value)==null?void 0:j.currentTime)||0},Y=()=>{d.value?(_(0),T()):O()},Q=()=>{var j;f.value=(j=a.value)!=null&&j.buffered.length?a.value.buffered.end(a.value.buffered.length-1):0},K=we(!1),ne=()=>K.value=!0,Z=j=>{if(!a.value||!i.value)return;let ae=(("clientX"in j?j.clientX:j.changedTouches[0].clientX)-r(i.value))/i.value.clientWidth;ae=Math.max(ae,0),ae=Math.min(ae,1);const le=ae*u.value;a.value.currentTime=le,c.value=le},$=j=>{if(!a.value||!i.value)return;let ae=(("clientX"in j?j.clientX:j.changedTouches[0].clientX)-r(i.value))/i.value.clientWidth;ae=Math.max(ae,0),ae=Math.min(ae,1);const le=ae*u.value;a.value.currentTime=le,c.value=le,document.removeEventListener("mousemove",Z),document.removeEventListener("touchmove",Z),document.removeEventListener("mouseup",$),document.removeEventListener("touchend",$)},G=()=>{document.addEventListener("mousemove",Z),document.addEventListener("touchmove",Z),document.addEventListener("mouseup",$),document.addEventListener("touchend",$)},ee=j=>{if(!o.value)return;const ae=(("clientX"in j?j.clientX:j.changedTouches[0].clientX)-r(o.value))/45;P(ae)},ce=()=>{document.removeEventListener("mousemove",ee),document.removeEventListener("touchmove",ee),document.removeEventListener("mouseup",ce),document.removeEventListener("touchend",ce)},B=()=>{document.addEventListener("mousemove",ee),document.addEventListener("touchmove",ee),document.addEventListener("mouseup",ce),document.addEventListener("touchend",ce)},xe=j=>{if(!o.value)return;const oe=(j.clientX-r(o.value))/45;P(oe)},_e=j=>{if(u.value&&i.value){const oe=i.value.getBoundingClientRect().left,ae=j.clientX-oe;if(ae<0||ae>i.value.offsetWidth)return;const le=u.value*(ae/i.value.offsetWidth);y.value=`${ae-(le>=3600?25:20)}px`,g.value=n(le),v.value=!0}},se=()=>{a.value&&(a.value.muted?(a.value.muted=!1,P(.5)):(a.value.muted=!0,P(0)))},z=()=>{d.value=!d.value},de=we(-1),fe=we(!1),re=()=>{fe.value=!1,clearTimeout(de.value),de.value=setTimeout(()=>{var j;(j=a.value)!=null&&j.played.length&&(fe.value=!0)},3e3)},X=un("bgCanvasRef");return mn(()=>{if(!X.value||!a.value)return;const j=X.value.getContext("2d");j&&a.value.addEventListener("loadedmetadata",()=>{a.value.requestVideoFrameCallback(()=>{j.drawImage(a.value,0,0,X.value.width,X.value.height)})},{once:!0})}),xft(e.src,a),(j,oe)=>{const ae=Dee,le=OV,ge=tTe,Se=U8,me=eTe;return V(),H("div",{class:mt(["video-player",{"hide-controller":fe.value}]),style:We({width:j.width*j.scale+"px",height:j.height*j.scale+"px",transform:`scale(${1/j.scale})`}),onMousemove:oe[22]||(oe[22]=ye=>re()),onClick:oe[23]||(oe[23]=ye=>re())},[I("div",{class:"video-wrap",onClick:oe[8]||(oe[8]=ye=>N())},[K.value?(V(),H("div",Sft,"视频加载失败")):at("",!0),I("canvas",{ref_key:"bgCanvasRef",ref:X,class:"bg-canvas"},null,512),I("video",{class:"video",ref_key:"videoRef",ref:a,src:j.src,autoplay:j.autoplay,poster:j.poster,"webkit-playsinline":"",playsinline:"",crossOrigin:"anonymous",onDurationchange:oe[0]||(oe[0]=ye=>E()),onTimeupdate:oe[1]||(oe[1]=ye=>F()),onEnded:oe[2]||(oe[2]=ye=>Y()),onProgress:oe[3]||(oe[3]=ye=>Q()),onPlay:oe[4]||(oe[4]=ye=>{re(),l.value=!1}),onPause:oe[5]||(oe[5]=ye=>re()),onError:oe[6]||(oe[6]=ye=>ne())},null,40,Mft),I("div",_ft,[I("span",{class:mt(["bezel-icon",{"bezel-transition":h.value}]),onAnimationend:oe[7]||(oe[7]=ye=>h.value=!1)},[l.value?(V(),Ue(ae,{key:0})):(V(),Ue(le,{key:1}))],34)])]),oe[27]||(oe[27]=I("div",{class:"controller-mask"},null,-1)),I("div",wft,[I("div",Lft,[I("div",{class:"icon play-icon",onClick:oe[9]||(oe[9]=ye=>N())},[I("span",Tft,[l.value?(V(),Ue(le,{key:0})):(V(),Ue(ae,{key:1}))])]),I("div",Oft,[I("div",{class:"icon volume-icon",onClick:oe[10]||(oe[10]=ye=>se())},[I("span",Pft,[s.value===0?(V(),Ue(ge,{key:0})):s.value===1?(V(),Ue(Se,{key:1})):(V(),Ue(me,{key:2}))])]),I("div",{class:"volume-bar-wrap",onMousedown:oe[11]||(oe[11]=ye=>B()),onTouchstart:oe[12]||(oe[12]=ye=>B()),onClick:oe[13]||(oe[13]=ye=>xe(ye))},[I("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:o},[I("div",{class:"volume-bar-inner",style:We({width:M.value})},oe[24]||(oe[24]=[I("span",{class:"thumb"},null,-1)]),4)],512)],32)]),I("span",Cft,[I("span",Nft,Vt(m.value),1),oe[25]||(oe[25]=rt(" / ")),I("span",Ift,Vt(R.value),1)])]),I("div",kft,[I("div",Eft,[I("div",Fft,[I("span",{class:"icon-content",onClick:oe[14]||(oe[14]=ye=>S.value=!S.value)},Vt(p.value===1?"倍速":p.value+"x"),1),S.value?(V(),H("div",{key:0,class:"speed-menu",onMouseleave:oe[15]||(oe[15]=ye=>S.value=!1)},[(V(),H(qe,null,bt(w,ye=>I("div",{class:mt(["speed-menu-item",{active:ye.value===p.value}]),key:ye.label,onClick:Ve=>C(ye.value)},Vt(ye.label),11,Xft)),64))],32)):at("",!0)])]),I("div",{class:"loop",onClick:oe[16]||(oe[16]=ye=>z())},[I("div",{class:mt(["icon loop-icon",{active:d.value}])},[I("span",Dft,"循环"+Vt(d.value?"开":"关"),1)],2)])]),I("div",{class:"bar-wrap",ref_key:"playBarWrapRef",ref:i,onMousedown:oe[17]||(oe[17]=ye=>G()),onTouchstart:oe[18]||(oe[18]=ye=>G()),onMousemove:oe[19]||(oe[19]=ye=>_e(ye)),onMouseenter:oe[20]||(oe[20]=ye=>v.value=!0),onMouseleave:oe[21]||(oe[21]=ye=>v.value=!1)},[I("div",{class:mt(["bar-time",{hidden:!v.value}]),style:We({left:y.value})},Vt(g.value),7),I("div",Vft,[I("div",{class:"loaded",style:We({width:x.value})},null,4),I("div",{class:"played",style:We({width:A.value})},oe[26]||(oe[26]=[I("span",{class:"thumb"},null,-1)]),4)])],544)])],38)}}}),nTe=lt(Uft,[["__scopeId","data-v-9309a786"]]),Wft=tt({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(t){const e=t,{canvasScale:n}=nt(Wt()),r=(a,i=!0)=>{e.elementInfo.lock||(a.stopPropagation(),e.selectElement(a,e.elementInfo,i))};return(a,i)=>{const o=pr("contextmenu");return V(),H("div",{class:mt(["editable-element-video",{lock:a.elementInfo.lock}]),style:We({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${a.elementInfo.rotate}deg)`})},[yt((V(),H("div",{class:"element-content",onMousedown:i[2]||(i[2]=s=>r(s,!1)),onTouchstart:i[3]||(i[3]=s=>r(s,!1))},[U(nTe,{width:a.elementInfo.width,height:a.elementInfo.height,src:a.elementInfo.src,poster:a.elementInfo.poster,scale:te(n)},null,8,["width","height","src","poster","scale"]),(V(),H(qe,null,bt(["t","b","l","r"],s=>I("div",{class:mt(["handler-border",s]),key:s,onMousedown:i[0]||(i[0]=l=>r(l)),onTouchstart:i[1]||(i[1]=l=>r(l))},null,34)),64))],32)),[[o,a.contextmenus]])],4)],6)}}}),rTe=lt(Wft,[["__scopeId","data-v-1d545cfa"]]),Yft=["src","autoplay"],Bft={class:"controller"},Zft={class:"icons"},Qft={class:"icon-content"},Kft={class:"volume"},Hft={class:"icon-content"},Gft={class:"time"},$ft={class:"ptime"},zft={class:"dtime"},Jft={class:"bar"},jft=tt({__name:"AudioPlayer",props:{src:{},loop:{type:Boolean},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(t,{expose:e}){const n=t,r=(ce=0)=>{if(ce===0||isNaN(ce))return"00:00";const B=z=>z<10?"0"+z:""+z,xe=Math.floor(ce/3600),_e=Math.floor((ce-xe*3600)/60),se=Math.floor(ce-xe*3600-_e*60);return(xe>0?[xe,_e,se]:[_e,se]).map(B).join(":")},a=ce=>ce.getBoundingClientRect().left,i=un("audioRef"),o=un("playBarWrapRef"),s=un("volumeBarRef"),l=we(.5),c=we(!0),u=we(0),f=we(0),d=we(0),h=we(!1),p=we("00:00"),v=we("0"),g=Fe(()=>r(u.value)),y=Fe(()=>r(f.value)),m=Fe(()=>u.value/f.value*100+"%"),R=Fe(()=>d.value/f.value*100+"%"),A=Fe(()=>l.value*100+"%"),x=ce=>{i.value&&(ce=Math.max(ce,0),ce=Math.min(ce,f.value),i.value.currentTime=ce,u.value=ce)},M=()=>{i.value&&(c.value=!1,i.value.play())},S=()=>{i.value&&(c.value=!0,i.value.pause())},w=()=>{c.value?M():S()},_=ce=>{i.value&&(ce=Math.max(ce,0),ce=Math.min(ce,1),i.value.volume=ce,l.value=ce,i.value.muted&&ce!==0&&(i.value.muted=!1))},T=()=>{var ce;f.value=((ce=i.value)==null?void 0:ce.duration)||0},O=()=>{var ce;u.value=((ce=i.value)==null?void 0:ce.currentTime)||0},N=()=>{c.value=!1},P=()=>{n.loop?(x(0),M()):S()},C=()=>{var ce;d.value=(ce=i.value)!=null&&ce.buffered.length?i.value.buffered.end(i.value.buffered.length-1):0},E=()=>Dn.error("视频加载失败"),F=ce=>{if(!i.value||!o.value)return;let xe=(("clientX"in ce?ce.clientX:ce.changedTouches[0].clientX)-a(o.value))/o.value.clientWidth;xe=Math.max(xe,0),xe=Math.min(xe,1);const _e=xe*f.value;i.value.currentTime=_e,u.value=_e},Y=ce=>{if(!i.value||!o.value)return;let xe=(("clientX"in ce?ce.clientX:ce.changedTouches[0].clientX)-a(o.value))/o.value.clientWidth;xe=Math.max(xe,0),xe=Math.min(xe,1);const _e=xe*f.value;i.value.currentTime=_e,u.value=_e,document.removeEventListener("mousemove",F),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",Y),document.removeEventListener("touchend",Y)},Q=()=>{document.addEventListener("mousemove",F),document.addEventListener("touchmove",F),document.addEventListener("mouseup",Y),document.addEventListener("touchend",Y)},K=ce=>{if(!s.value)return;const xe=(("clientX"in ce?ce.clientX:ce.changedTouches[0].clientX)-a(s.value))/45;_(xe)},ne=()=>{document.removeEventListener("mousemove",K),document.removeEventListener("touchmove",K),document.removeEventListener("mouseup",ne),document.removeEventListener("touchend",ne)},Z=()=>{document.addEventListener("mousemove",K),document.addEventListener("touchmove",K),document.addEventListener("mouseup",ne),document.addEventListener("touchend",ne)},$=ce=>{if(!s.value)return;const B=(ce.clientX-a(s.value))/45;_(B)},G=ce=>{if(f.value&&o.value){const B=o.value.getBoundingClientRect().left,xe=ce.clientX-B;if(xe<0||xe>o.value.offsetWidth)return;const _e=f.value*(xe/o.value.offsetWidth);v.value=`${xe-(_e>=3600?25:20)}px`,p.value=r(_e),h.value=!0}},ee=()=>{i.value&&(i.value.muted?(i.value.muted=!1,_(.5)):(i.value.muted=!0,_(0)))};return e({toggle:w}),(ce,B)=>{const xe=OV,_e=Dee,se=tTe,z=U8,de=eTe;return V(),H("div",{class:"audio-player",style:We({transform:`scale(${1/ce.scale})`})},[I("audio",{class:"audio",ref_key:"audioRef",ref:i,src:ce.src,autoplay:ce.autoplay,onDurationchange:B[0]||(B[0]=fe=>T()),onTimeupdate:B[1]||(B[1]=fe=>O()),onPlay:B[2]||(B[2]=fe=>N()),onEnded:B[3]||(B[3]=fe=>P()),onProgress:B[4]||(B[4]=fe=>C()),onError:B[5]||(B[5]=fe=>E())},null,40,Yft),I("div",Bft,[I("div",Zft,[I("div",{class:"icon play-icon",onClick:B[6]||(B[6]=fe=>w())},[I("span",Qft,[c.value?(V(),Ue(xe,{key:0})):(V(),Ue(_e,{key:1}))])]),I("div",Kft,[I("div",{class:"icon volume-icon",onClick:B[7]||(B[7]=fe=>ee())},[I("span",Hft,[l.value===0?(V(),Ue(se,{key:0})):l.value===1?(V(),Ue(z,{key:1})):(V(),Ue(de,{key:2}))])]),I("div",{class:"volume-bar-wrap",onMousedown:B[8]||(B[8]=fe=>Z()),onTouchstart:B[9]||(B[9]=fe=>Z()),onClick:B[10]||(B[10]=fe=>$(fe))},[I("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[I("div",{class:"volume-bar-inner",style:We({width:A.value})},B[16]||(B[16]=[I("span",{class:"thumb"},null,-1)]),4)],512)],32)])]),I("span",Gft,[I("span",$ft,Vt(g.value),1),B[17]||(B[17]=rt(" / ")),I("span",zft,Vt(y.value),1)]),I("div",{class:"bar-wrap",ref_key:"playBarWrapRef",ref:o,onMousedown:B[11]||(B[11]=fe=>Q()),onTouchstart:B[12]||(B[12]=fe=>Q()),onMousemove:B[13]||(B[13]=fe=>G(fe)),onMouseenter:B[14]||(B[14]=fe=>h.value=!0),onMouseleave:B[15]||(B[15]=fe=>h.value=!1)},[I("div",{class:mt(["bar-time",{hidden:!h.value}]),style:We({left:v.value})},Vt(p.value),7),I("div",Jft,[I("div",{class:"loaded",style:We({width:R.value})},null,4),I("div",{class:"played",style:We({width:m.value})},B[18]||(B[18]=[I("span",{class:"thumb"},null,-1)]),4)])],544)])],4)}}}),aTe=lt(jft,[["__scopeId","data-v-c5845387"]]),qft=tt({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(t){const e=t,{canvasScale:n,handleElementId:r}=nt(Wt()),{viewportRatio:a,viewportSize:i}=nt(It()),o=Fe(()=>Math.min(e.elementInfo.width,e.elementInfo.height)+"px"),s=Fe(()=>{const c=i.value,u=i.value*a.value,f=280/n.value,d=50/n.value,h=e.elementInfo.width,p=e.elementInfo.height,v=e.elementInfo.left,g=e.elementInfo.top;let y=0,m=p;return v+f>=c&&(y=h-f),g+p+d>=u&&(m=-d),{left:y+"px",top:m+"px"}}),l=c=>{e.elementInfo.lock||(c.stopPropagation(),e.selectElement(c,e.elementInfo))};return(c,u)=>{const f=U8,d=pr("contextmenu");return V(),H("div",{class:mt(["editable-element-audio",{lock:c.elementInfo.lock}]),style:We({top:c.elementInfo.top+"px",left:c.elementInfo.left+"px",width:c.elementInfo.width+"px",height:c.elementInfo.height+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${c.elementInfo.rotate}deg)`})},[yt((V(),H("div",{class:"element-content",onMousedown:u[1]||(u[1]=h=>l(h)),onTouchstart:u[2]||(u[2]=h=>l(h))},[U(f,{class:"audio-icon",style:We({fontSize:o.value,color:c.elementInfo.color})},null,8,["style"]),te(r)===c.elementInfo.id?(V(),Ue(aTe,{key:0,class:"audio-player",style:We({...s.value}),src:c.elementInfo.src,loop:c.elementInfo.loop,scale:te(n),onMousedown:u[0]||(u[0]=on(()=>{},["stop"]))},null,8,["style","src","loop","scale"])):at("",!0)],32)),[[d,c.contextmenus]])],4)],6)}}}),iTe=lt(qft,[["__scopeId","data-v-a2612c3d"]]),edt=["id"],tdt=tt({__name:"EditableElement",props:{elementInfo:{},elementIndex:{},isMultiSelect:{type:Boolean},selectElement:{type:Function},openLinkDialog:{type:Function}},setup(t){const e=t,n=Fe(()=>({[vn.IMAGE]:_5e,[vn.TEXT]:y_e,[vn.SHAPE]:x_e,[vn.LINE]:S_e,[vn.CHART]:H6e,[vn.TABLE]:j6e,[vn.LATEX]:q6e,[vn.VIDEO]:rTe,[vn.AUDIO]:iTe})[e.elementInfo.type]||null),{orderElement:r}=v8(),{alignElementToCanvas:a}=qD(),{combineElements:i,uncombineElements:o}=Cj(),{deleteElement:s}=h8(),{lockElement:l,unlockElement:c}=Pj(),{copyElement:u,pasteElement:f,cutElement:d}=Nj(),{selectAllElements:h}=p8(),p=()=>e.elementInfo.lock?[{text:"解锁",handler:()=>c(e.elementInfo)}]:[{text:"剪切",subText:"Ctrl + X",handler:d},{text:"复制",subText:"Ctrl + C",handler:u},{text:"粘贴",subText:"Ctrl + V",handler:f},{divider:!0},{text:"水平居中",handler:()=>a(qn.HORIZONTAL),children:[{text:"水平垂直居中",handler:()=>a(qn.CENTER)},{text:"水平居中",handler:()=>a(qn.HORIZONTAL)},{text:"左对齐",handler:()=>a(qn.LEFT)},{text:"右对齐",handler:()=>a(qn.RIGHT)}]},{text:"垂直居中",handler:()=>a(qn.VERTICAL),children:[{text:"水平垂直居中",handler:()=>a(qn.CENTER)},{text:"垂直居中",handler:()=>a(qn.VERTICAL)},{text:"顶部对齐",handler:()=>a(qn.TOP)},{text:"底部对齐",handler:()=>a(qn.BOTTOM)}]},{divider:!0},{text:"置于顶层",disable:e.isMultiSelect&&!e.elementInfo.groupId,handler:()=>r(e.elementInfo,Qa.TOP),children:[{text:"置于顶层",handler:()=>r(e.elementInfo,Qa.TOP)},{text:"上移一层",handler:()=>r(e.elementInfo,Qa.UP)}]},{text:"置于底层",disable:e.isMultiSelect&&!e.elementInfo.groupId,handler:()=>r(e.elementInfo,Qa.BOTTOM),children:[{text:"置于底层",handler:()=>r(e.elementInfo,Qa.BOTTOM)},{text:"下移一层",handler:()=>r(e.elementInfo,Qa.DOWN)}]},{divider:!0},{text:"设置链接",handler:e.openLinkDialog},{text:e.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:e.elementInfo.groupId?o:i,hide:!e.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:h},{text:"锁定",subText:"Ctrl + L",handler:l},{text:"删除",subText:"Delete",handler:s}];return(v,g)=>(V(),H("div",{class:"editable-element",ref:"elementRef",id:`editable-element-${v.elementInfo.id}`,style:We({zIndex:v.elementIndex})},[(V(),Ue(Eh(n.value),{elementInfo:v.elementInfo,selectElement:v.selectElement,contextmenus:p},null,8,["elementInfo","selectElement"]))],12,edt))}}),ndt=tt({__name:"MouseSelection",props:{top:{},left:{},width:{},height:{},quadrant:{}},setup(t){return(e,n)=>(V(),H("div",{class:mt(`mouse-selection quadrant-${e.quadrant}`),style:We({top:e.top+"px",left:e.left+"px",width:e.width+"px",height:e.height+"px"})},null,6))}}),rdt=lt(ndt,[["__scopeId","data-v-c1acfb75"]]),adt={class:"grid-lines"},idt=["d","stroke"],odt=tt({__name:"GridLines",setup(t){const{canvasScale:e,gridLineSize:n}=nt(Wt()),{currentSlide:r,viewportRatio:a,viewportSize:i}=nt(It()),o=Fe(()=>{var c;return(c=r.value)==null?void 0:c.background}),s=Fe(()=>{var f;const c=((f=o.value)==null?void 0:f.color)||"#fff",u=["#000","#fff"];return Ct.mostReadable(c,u,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()}),l=Fe(()=>{const c=i.value,u=i.value*a.value;let f="";for(let d=0;d<=Math.floor(u/n.value);d++)f+=`M0 ${d*n.value} L${c} ${d*n.value} `;for(let d=0;d<=Math.floor(c/n.value);d++)f+=`M${d*n.value} 0 L${d*n.value} ${u} `;return f});return(c,u)=>(V(),H("svg",adt,[I("path",{style:We({transform:`scale(${te(e)})`}),d:l.value,fill:"none",stroke:s.value,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,idt)]))}}),sdt=lt(odt,[["__scopeId","data-v-a0656213"]]),PV=t=>({backgroundStyle:Fe(()=>{if(!t.value)return{backgroundColor:"#fff"};const{type:n,color:r,image:a,gradient:i}=t.value;if(n==="solid")return{backgroundColor:r};if(n==="image"&&a){const{src:o,size:s}=a;return o?s==="repeat"?{backgroundImage:`url(${o}`,backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:`url(${o}`,backgroundRepeat:"no-repeat",backgroundSize:s||"cover"}:{backgroundColor:"#fff"}}else if(n==="gradient"&&i){const{type:o,colors:s,rotate:l}=i,c=s.map(u=>`${u.color} ${u.pos}%`);return o==="radial"?{backgroundImage:`radial-gradient(${c.join(",")}`}:{backgroundImage:`linear-gradient(${l+90}deg, ${c.join(",")}`}}return{backgroundColor:"#fff"}})}),ldt=tt({__name:"ViewportBackground",setup(t){const{gridLineSize:e}=nt(Wt()),{currentSlide:n}=nt(It()),r=Fe(()=>{var i;return(i=n.value)==null?void 0:i.background}),{backgroundStyle:a}=PV(r);return(i,o)=>(V(),H("div",{class:"viewport-background",style:We(te(a))},[te(e)?(V(),Ue(sdt,{key:0})):at("",!0)],4))}}),cdt=lt(ldt,[["__scopeId","data-v-af32677c"]]),udt=tt({__name:"AlignmentLine",props:{type:{},axis:{},length:{},canvasScale:{}},setup(t){const e=t,n=Fe(()=>e.axis.x*e.canvasScale+"px"),r=Fe(()=>e.axis.y*e.canvasScale+"px"),a=Fe(()=>e.type==="vertical"?{height:e.length*e.canvasScale+"px"}:{width:e.length*e.canvasScale+"px"});return(i,o)=>(V(),H("div",{class:"alignment-line",style:We({left:n.value,top:r.value})},[I("div",{class:mt(["line",i.type]),style:We(a.value)},null,6)],4))}}),oTe=lt(udt,[["__scopeId","data-v-b479d842"]]),fdt={class:"ruler"},ddt={key:0},hdt={key:0},pdt=tt({__name:"Ruler",props:{viewportStyles:{},elementList:{}},setup(t){const e=t,{canvasScale:n,activeElementIdList:r}=nt(Wt()),{viewportRatio:a,viewportSize:i}=nt(It()),o=we(null);TS(()=>{const l=e.elementList.filter(c=>r.value.includes(c.id));if(!l.length)return o.value=null;o.value=o0(l)});const s=Fe(()=>e.viewportStyles.width*n.value/(i.value/100));return(l,c)=>(V(),H("div",fdt,[I("div",{class:"h",style:We({width:l.viewportStyles.width*te(n)+"px",left:l.viewportStyles.left+"px"})},[(V(),H(qe,null,bt(20,u=>I("div",{class:mt(["ruler-marker-100",{hide:s.value<36,omit:s.value<72}]),key:`h-marker-100-${u}`,style:We({width:s.value+"px"})},[u*100<=te(i)?(V(),H("span",ddt,Vt(u*100),1)):at("",!0)],6)),64)),o.value?(V(),H("div",{key:0,class:"range",style:We({left:o.value.minX*te(n)+"px",width:(o.value.maxX-o.value.minX)*te(n)+"px"})},null,4)):at("",!0)],4),I("div",{class:"v",style:We({height:l.viewportStyles.height*te(n)+"px",top:l.viewportStyles.top+"px"})},[(V(),H(qe,null,bt(20,u=>I("div",{class:mt(["ruler-marker-100",{hide:s.value<36,omit:s.value<72}]),key:`v-marker-100-${u}`,style:We({height:s.value+"px"})},[u*100<=te(i)*te(a)?(V(),H("span",hdt,Vt(u*100),1)):at("",!0)],6)),64)),o.value?(V(),H("div",{key:0,class:"range",style:We({top:o.value.minY*te(n)+"px",height:(o.value.maxY-o.value.minY)*te(n)+"px"})},null,4)):at("",!0)],4)]))}}),vdt=lt(pdt,[["__scopeId","data-v-dba47cf5"]]),gdt=["width","height"],mdt=["d"],ydt=tt({__name:"ElementCreateSelection",emits:["created"],setup(t,{emit:e}){const n=e,r=Wt(),{creatingElement:a}=nt(r),{ctrlOrShiftKeyActive:i}=nt(xc()),o=we(),s=we(),l=un("selectionRef"),c=we({x:0,y:0});mn(()=>{if(!l.value)return;const{x:h,y:p}=l.value.getBoundingClientRect();c.value={x:h,y:p}});const u=h=>{let p=!0;const v=h.pageX,g=h.pageY;o.value=[v,g],document.onmousemove=y=>{if(!a.value||!p)return;let m=y.pageX,R=y.pageY;if(i.value){const A=m-v,x=R-g,M=Math.abs(A),S=Math.abs(x);if(a.value.type==="shape"){const w=x>0&&A<0||x<0&&A>0;M>S?R=w?g-A:g+A:m=w?v-x:v+x}else a.value.type==="line"&&(M>S?R=g:m=v)}s.value=[m,R]},document.onmouseup=y=>{var x,M;if(document.onmousemove=null,document.onmouseup=null,y.button===2){setTimeout(()=>r.setCreatingElement(null),0);return}p=!1;const m=y.pageX,R=y.pageY,A=30;if(((x=a.value)==null?void 0:x.type)==="line"&&(Math.abs(m-v)>=A||Math.abs(R-g)>=A))n("created",{start:o.value,end:s.value});else if(((M=a.value)==null?void 0:M.type)!=="line"&&Math.abs(m-v)>=A&&Math.abs(R-g)>=A)n("created",{start:o.value,end:s.value});else{const w=Math.min(m,v),_=Math.min(R,g),T=Math.max(m,v),O=Math.max(R,g),N=T-w>=A?T-w:200,P=O-_>=A?O-_:200;n("created",{start:[w,_],end:[w+N,_+P]})}}},f=Fe(()=>{if(!o.value||!s.value||!a.value||a.value.type!=="line")return null;const[h,p]=o.value,[v,g]=s.value,y=Math.min(h,v),m=Math.max(h,v),R=Math.min(p,g),A=Math.max(p,g),x=m-y>=24?m-y:24,M=A-R>=24?A-R:24,S=h===y?0:m-y,w=p===R?0:A-R,_=v===y?0:m-y,T=g===R?0:A-R,O=`M${S}, ${w} L${_}, ${T}`;return{svgWidth:x,svgHeight:M,startX:S,startY:w,endX:_,endY:T,path:O}}),d=Fe(()=>{if(!o.value||!s.value)return{};const[h,p]=o.value,[v,g]=s.value,y=Math.min(h,v),m=Math.max(h,v),R=Math.min(p,g),A=Math.max(p,g),x=m-y,M=A-R;return{left:y-c.value.x+"px",top:R-c.value.y+"px",width:x+"px",height:M+"px"}});return(h,p)=>{var v,g;return V(),H("div",{class:"element-create-selection",ref_key:"selectionRef",ref:l,onMousedown:p[0]||(p[0]=on(y=>u(y),["stop"])),onContextmenu:p[1]||(p[1]=on(()=>{},["stop","prevent"]))},[o.value&&s.value?(V(),H("div",{key:0,class:mt(["selection",(v=te(a))==null?void 0:v.type]),style:We(d.value)},[((g=te(a))==null?void 0:g.type)==="line"&&f.value?(V(),H("svg",{key:0,overflow:"visible",width:f.value.svgWidth,height:f.value.svgHeight},[I("path",{d:f.value.path,stroke:"#d14424",fill:"none","stroke-width":"2"},null,8,mdt)],8,gdt)):at("",!0)],6)):at("",!0)],544)}}}),Adt=lt(ydt,[["__scopeId","data-v-19db286b"]]),Rdt={overflow:"visible"},bdt=["d","fill"],xdt=tt({__name:"ShapeCreateCanvas",emits:["created"],setup(t,{emit:e}){const n=e,r=Wt(),{ctrlOrShiftKeyActive:a}=nt(xc()),{theme:i}=nt(It()),o=un("shapeCanvasRef"),s=we(!1),l=we({x:0,y:0});mn(()=>{if(!o.value)return;const{x:A,y:x}=o.value.getBoundingClientRect();l.value={x:A,y:x}});const c=we(null),u=we([]),f=we(!1),d=(A,x=!1)=>{let M=A.pageX-l.value.x,S=A.pageY-l.value.y;if(x)return{pageX:M,pageY:S};if(a.value&&u.value.length){const[w,_]=u.value[u.value.length-1];Math.abs(w-M)-Math.abs(_-S)>0?S=_:M=w}return{pageX:M,pageY:S}},h=A=>{if(s.value){const{pageX:S,pageY:w}=d(A,!0);u.value.push([S,w]),c.value=null;return}const{pageX:x,pageY:M}=d(A);if(c.value=[x,M],u.value.length>=2){const[S,w]=u.value[0];Math.abs(S-x)<5&&Math.abs(w-M)<5?f.value=!0:f.value=!1}else f.value=!1},p=Fe(()=>{let A="";for(let x=0;x<u.value.length;x++){const M=u.value[x];x===0?A+=`M ${M[0]} ${M[1]} `:A+=`L ${M[0]} ${M[1]} `}return u.value.length&&c.value&&(A+=`L ${c.value[0]} ${c.value[1]}`),A}),v=(A=!0)=>{const x=u.value.map(F=>F[0]),M=u.value.map(F=>F[1]),S=Math.min(...x),w=Math.min(...M),_=Math.max(...x),T=Math.max(...M),O=u.value.map(F=>[F[0]-S,F[1]-w]);let N="";for(let F=0;F<O.length;F++){const Y=O[F];F===0?N+=`M ${Y[0]} ${Y[1]} `:N+=`L ${Y[0]} ${Y[1]} `}A&&(N+="Z");const P=[S+l.value.x,w+l.value.y],C=[_+l.value.x,T+l.value.y],E=[_-S,T-w];return{start:P,end:C,path:N,viewBox:E}},g=A=>{const{pageX:x,pageY:M}=d(A);s.value=!0,f.value?n("created",v()):u.value.push([x,M]),document.onmouseup=()=>{s.value=!1}},y=()=>{r.setCreatingCustomShapeState(!1)},m=()=>{n("created",{...v(!1),fill:"rgba(0, 0, 0, 0)",outline:{width:2,color:i.value.themeColors[0],style:"solid"}}),y()},R=A=>{const x=A.key.toUpperCase();x===Ht.ESC&&y(),x===Ht.ENTER&&m()};return mn(()=>{Dn.success("点击绘制任意形状,首尾闭合完成绘制,按 ESC 键或鼠标右键取消,按 ENTER 键提前完成",{duration:0}),document.addEventListener("keydown",R)}),or(()=>{document.removeEventListener("keydown",R),Dn.closeAll()}),(A,x)=>(V(),H("div",{class:"shape-create-canvas",ref_key:"shapeCanvasRef",ref:o,onMousedown:x[0]||(x[0]=on(M=>g(M),["stop"])),onMousemove:x[1]||(x[1]=M=>h(M)),onContextmenu:x[2]||(x[2]=on(M=>y(),["stop","prevent"]))},[(V(),H("svg",Rdt,[I("path",{d:p.value,stroke:"#d14424",fill:f.value?"rgba(226, 83, 77, 0.15)":"none","stroke-width":"2"},null,8,bdt)]))],544))}}),Sdt=lt(xdt,[["__scopeId","data-v-3096ca17"]]),Ty=(t,e)=>{const n=Fe(()=>[{direction:$t.LEFT_TOP,style:{}},{direction:$t.TOP,style:{left:t.value/2+"px"}},{direction:$t.RIGHT_TOP,style:{left:t.value+"px"}},{direction:$t.LEFT,style:{top:e.value/2+"px"}},{direction:$t.RIGHT,style:{left:t.value+"px",top:e.value/2+"px"}},{direction:$t.LEFT_BOTTOM,style:{top:e.value+"px"}},{direction:$t.BOTTOM,style:{left:t.value/2+"px",top:e.value+"px"}},{direction:$t.RIGHT_BOTTOM,style:{left:t.value+"px",top:e.value+"px"}}]),r=Fe(()=>[{direction:$t.LEFT,style:{top:e.value/2+"px"}},{direction:$t.RIGHT,style:{left:t.value+"px",top:e.value/2+"px"}}]),a=Fe(()=>[{direction:$t.TOP,style:{left:t.value/2+"px"}},{direction:$t.BOTTOM,style:{left:t.value/2+"px",top:e.value+"px"}}]),i=Fe(()=>[{type:G5.T,style:{width:t.value+"px"}},{type:G5.B,style:{top:e.value+"px",width:t.value+"px"}},{type:G5.L,style:{height:e.value+"px"}},{type:G5.R,style:{left:t.value+"px",height:e.value+"px"}}]);return{resizeHandlers:n,textElementResizeHandlers:r,verticalTextElementResizeHandlers:a,borderLines:i}},Mdt=tt({__name:"ResizeHandler",props:{type:{},rotate:{default:0}},setup(t){const e=t,n=Fe(()=>{const r="rotate-",a=e.rotate;return a>-22.5&&a<=22.5?r+0:a>22.5&&a<=67.5?r+45:a>67.5&&a<=112.5?r+90:a>112.5&&a<=157.5?r+135:a>157.5||a<=-157.5?r+0:a>-157.5&&a<=-112.5?r+45:a>-112.5&&a<=-67.5?r+90:a>-67.5&&a<=-22.5?r+135:r+0});return(r,a)=>(V(),H("div",{class:mt(["resize-handler",n.value,r.type])},null,2))}}),hg=lt(Mdt,[["__scopeId","data-v-844cb182"]]),_dt=tt({__name:"BorderLine",props:{type:{},isWide:{type:Boolean,default:!1}},setup(t){return(e,n)=>(V(),H("div",{class:mt(["border-line",e.type,{wide:e.isWide}])},null,2))}}),Oy=lt(_dt,[["__scopeId","data-v-21e6061f"]]),wdt={},Ldt={class:"rotate-handler"};function Tdt(t,e){return V(),H("div",Ldt)}const Py=lt(wdt,[["render",Tdt],["__scopeId","data-v-7f7f964f"]]),Odt=tt({__name:"MultiSelectOperate",props:{elementList:{},scaleMultiElement:{type:Function},rotateGroupElement:{type:Function}},setup(t){const e=t,{activeElementIdList:n,activeGroupElementId:r,canvasScale:a}=nt(Wt()),i=Fe(()=>e.elementList.filter(p=>n.value.includes(p.id))),o=we({minX:0,maxX:0,minY:0,maxY:0}),s=Fe(()=>(o.value.maxX-o.value.minX)*a.value),l=Fe(()=>(o.value.maxY-o.value.minY)*a.value),{resizeHandlers:c,borderLines:u}=Ty(s,l);TS(()=>{const{minX:p,maxX:v,minY:g,maxY:y}=o0(i.value);o.value={minX:p,maxX:v,minY:g,maxY:y}});const d=Fe(()=>i.value.some(p=>!((p.type==="image"||p.type==="shape")&&!p.rotate))),h=Fe(()=>!r.value&&E4e(i.value));return(p,v)=>(V(),H("div",{class:"multi-select-operate",style:We({left:o.value.minX*te(a)+"px",top:o.value.minY*te(a)+"px"})},[(V(!0),H(qe,null,bt(te(u),g=>(V(),Ue(Oy,{key:g.type,type:g.type,style:We(g.style)},null,8,["type","style"]))),128)),d.value?at("",!0):(V(!0),H(qe,{key:0},bt(te(c),g=>(V(),Ue(hg,{key:g.direction,type:g.direction,style:We(g.style),onMousedown:on(y=>p.scaleMultiElement(y,o.value,g.direction),["stop"])},null,8,["type","style","onMousedown"]))),128)),h.value?(V(),Ue(Py,{key:1,style:We({left:s.value/2+"px"}),onMousedown:v[0]||(v[0]=on(g=>p.rotateGroupElement(g,i.value),["stop"]))},null,8,["style"])):at("",!0)],4))}}),Pdt=lt(Odt,[["__scopeId","data-v-9add93e0"]]),Cdt={inheritAttrs:!1},Ndt=tt({...Cdt,__name:"ImageElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(t){const e=t,{canvasScale:n,clipingImageElementId:r}=nt(Wt()),a=Fe(()=>r.value===e.elementInfo.id),i=Fe(()=>e.elementInfo.width*n.value),o=Fe(()=>e.elementInfo.height*n.value),{resizeHandlers:s,borderLines:l}=Ty(i,o);return(c,u)=>(V(),H("div",{class:mt(["image-element-operate",{cliping:a.value}])},[(V(!0),H(qe,null,bt(te(l),f=>(V(),Ue(Oy,{class:"operate-border-line",key:f.type,type:f.type,style:We(f.style)},null,8,["type","style"]))),128)),c.handlerVisible?(V(),H(qe,{key:0},[(V(!0),H(qe,null,bt(te(s),f=>(V(),Ue(hg,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:c.elementInfo.rotate,style:We(f.style),onMousedown:on(d=>c.scaleElement(d,c.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),U(Py,{class:"operate-rotate-handler",style:We({left:i.value/2+"px"}),onMousedown:u[0]||(u[0]=on(f=>c.rotateElement(f,c.elementInfo),["stop"]))},null,8,["style"])],64)):at("",!0)],2))}}),Idt=lt(Ndt,[["__scopeId","data-v-1086ac56"]]),kdt={class:"text-element-operate"},Edt={inheritAttrs:!1},Fdt=tt({...Edt,__name:"TextElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(t){const e=t,{canvasScale:n}=nt(Wt()),r=Fe(()=>e.elementInfo.width*n.value),a=Fe(()=>e.elementInfo.height*n.value),{textElementResizeHandlers:i,verticalTextElementResizeHandlers:o,borderLines:s}=Ty(r,a),l=Fe(()=>e.elementInfo.vertical?o.value:i.value);return(c,u)=>(V(),H("div",kdt,[(V(!0),H(qe,null,bt(te(s),f=>(V(),Ue(Oy,{class:"operate-border-line",key:f.type,type:f.type,style:We(f.style)},null,8,["type","style"]))),128)),c.handlerVisible?(V(),H(qe,{key:0},[(V(!0),H(qe,null,bt(l.value,f=>(V(),Ue(hg,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:c.elementInfo.rotate,style:We(f.style),onMousedown:on(d=>c.scaleElement(d,c.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),U(Py,{class:"operate-rotate-handler",style:We({left:r.value/2+"px"}),onMousedown:u[0]||(u[0]=on(f=>c.rotateElement(f,c.elementInfo),["stop"]))},null,8,["style"])],64)):at("",!0)]))}}),Xdt={class:"shape-element-operate"},Ddt=["onMousedown"],Vdt={inheritAttrs:!1},Udt=tt({...Vdt,__name:"ShapeElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},moveShapeKeypoint:{type:Function}},setup(t){const e=t,{canvasScale:n}=nt(Wt()),r=Fe(()=>e.elementInfo.width*n.value),a=Fe(()=>e.elementInfo.height*n.value),{resizeHandlers:i,borderLines:o}=Ty(r,a),s=Fe(()=>{if(!e.elementInfo.pathFormula||e.elementInfo.keypoints===void 0)return[];const l=by[e.elementInfo.pathFormula];return e.elementInfo.keypoints.map((c,u)=>{const f=l.getBaseSize[u],d=l.relative[u],h=f(e.elementInfo.width,e.elementInfo.height)*c;let p={};return d==="left"?p={left:h*n.value+"px"}:d==="right"?p={left:(e.elementInfo.width-h)*n.value+"px"}:d==="center"?p={left:(e.elementInfo.width-h)/2*n.value+"px"}:d==="top"?p={top:h*n.value+"px"}:d==="bottom"?p={top:(e.elementInfo.height-h)*n.value+"px"}:d==="left_bottom"?p={left:h*n.value+"px",top:e.elementInfo.height*n.value+"px"}:d==="right_bottom"?p={left:(e.elementInfo.width-h)*n.value+"px",top:e.elementInfo.height*n.value+"px"}:d==="top_right"?p={left:e.elementInfo.width*n.value+"px",top:h*n.value+"px"}:d==="bottom_right"&&(p={left:e.elementInfo.width*n.value+"px",top:(e.elementInfo.height-h)*n.value+"px"}),{keypoint:c,styles:p}})});return(l,c)=>(V(),H("div",Xdt,[(V(!0),H(qe,null,bt(te(o),u=>(V(),Ue(Oy,{class:"operate-border-line",key:u.type,type:u.type,style:We(u.style)},null,8,["type","style"]))),128)),l.handlerVisible?(V(),H(qe,{key:0},[(V(!0),H(qe,null,bt(te(i),u=>(V(),Ue(hg,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:l.elementInfo.rotate,style:We(u.style),onMousedown:on(f=>l.scaleElement(f,l.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),U(Py,{class:"operate-rotate-handler",style:We({left:r.value/2+"px"}),onMousedown:c[0]||(c[0]=on(u=>l.rotateElement(u,l.elementInfo),["stop"]))},null,8,["style"]),(V(!0),H(qe,null,bt(s.value,(u,f)=>(V(),H("div",{class:"operate-keypoint-handler",key:f,style:We(u.styles),onMousedown:on(d=>l.moveShapeKeypoint(d,l.elementInfo,f),["stop"])},null,44,Ddt))),128))],64)):at("",!0)]))}}),Wdt=lt(Udt,[["__scopeId","data-v-5248540a"]]),Ydt={class:"line-element-operate"},Bdt=["width","height","stroke"],Zdt={key:0},Qdt=["x1","y1","x2","y2"],Kdt=["x1","y1","x2","y2"],Hdt=["x1","y1","x2","y2"],Gdt=["x1","y1","x2","y2"],$dt={inheritAttrs:!1},zdt=tt({...$dt,__name:"LineElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},dragLineElement:{type:Function}},setup(t){const e=t,{canvasScale:n}=nt(Wt()),r=Fe(()=>Math.max(e.elementInfo.start[0],e.elementInfo.end[0])),a=Fe(()=>Math.max(e.elementInfo.start[1],e.elementInfo.end[1])),i=Fe(()=>{const o=[{handler:sl.START,style:{left:e.elementInfo.start[0]*n.value+"px",top:e.elementInfo.start[1]*n.value+"px"}},{handler:sl.END,style:{left:e.elementInfo.end[0]*n.value+"px",top:e.elementInfo.end[1]*n.value+"px"}}];if(e.elementInfo.curve||e.elementInfo.broken||e.elementInfo.broken2){const s=e.elementInfo.curve||e.elementInfo.broken||e.elementInfo.broken2;o.push({handler:sl.C,style:{left:s[0]*n.value+"px",top:s[1]*n.value+"px"}})}else if(e.elementInfo.cubic){const[s,l]=e.elementInfo.cubic;o.push({handler:sl.C1,style:{left:s[0]*n.value+"px",top:s[1]*n.value+"px"}}),o.push({handler:sl.C2,style:{left:l[0]*n.value+"px",top:l[1]*n.value+"px"}})}return o});return(o,s)=>(V(),H("div",Ydt,[o.handlerVisible?(V(),H(qe,{key:0},[(V(!0),H(qe,null,bt(i.value,l=>(V(),Ue(hg,{class:"operate-resize-handler",key:l.handler,style:We(l.style),onMousedown:on(c=>o.dragLineElement(c,o.elementInfo,l.handler),["stop"])},null,8,["style","onMousedown"]))),128)),(V(),H("svg",{width:r.value||1,height:a.value||1,stroke:o.elementInfo.color,overflow:"visible",style:We({transform:`scale(${te(n)})`})},[o.elementInfo.curve?(V(),H("g",Zdt,[I("line",{class:"anchor-line",x1:o.elementInfo.start[0],y1:o.elementInfo.start[1],x2:o.elementInfo.curve[0],y2:o.elementInfo.curve[1]},null,8,Qdt),I("line",{class:"anchor-line",x1:o.elementInfo.end[0],y1:o.elementInfo.end[1],x2:o.elementInfo.curve[0],y2:o.elementInfo.curve[1]},null,8,Kdt)])):at("",!0),o.elementInfo.cubic?(V(!0),H(qe,{key:1},bt(o.elementInfo.cubic,(l,c)=>(V(),H("g",{key:c},[c===0?(V(),H("line",{key:0,class:"anchor-line",x1:o.elementInfo.start[0],y1:o.elementInfo.start[1],x2:l[0],y2:l[1]},null,8,Hdt)):at("",!0),c===1?(V(),H("line",{key:1,class:"anchor-line",x1:o.elementInfo.end[0],y1:o.elementInfo.end[1],x2:l[0],y2:l[1]},null,8,Gdt)):at("",!0)]))),128)):at("",!0)],12,Bdt))],64)):at("",!0)]))}}),Jdt=lt(zdt,[["__scopeId","data-v-08a40a09"]]),jdt={class:"table-element-operate"},qdt={inheritAttrs:!1},eht=tt({...qdt,__name:"TableElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(t){const e=t,{canvasScale:n}=nt(Wt()),r=Fe(()=>e.elementInfo.outline.width||1),a=Fe(()=>(e.elementInfo.width+r.value)*n.value),i=Fe(()=>e.elementInfo.height*n.value),{resizeHandlers:o,borderLines:s}=Ty(a,i);return(l,c)=>(V(),H("div",jdt,[(V(!0),H(qe,null,bt(te(s),u=>(V(),Ue(Oy,{class:"operate-border-line",key:u.type,type:u.type,style:We(u.style)},null,8,["type","style"]))),128)),l.handlerVisible?(V(),H(qe,{key:0},[(V(!0),H(qe,null,bt(te(o),u=>(V(),Ue(hg,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:l.elementInfo.rotate,style:We(u.style),onMousedown:on(f=>l.scaleElement(f,l.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),U(Py,{class:"operate-rotate-handler",style:We({left:a.value/2+"px"}),onMousedown:c[0]||(c[0]=on(u=>l.rotateElement(u,l.elementInfo),["stop"]))},null,8,["style"])],64)):at("",!0)]))}}),tht={class:"common-element-operate"},nht={inheritAttrs:!1},fE=tt({...nht,__name:"CommonElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(t){const e=t,{canvasScale:n}=nt(Wt()),r=Fe(()=>e.elementInfo.width*n.value),a=Fe(()=>e.elementInfo.height*n.value),{resizeHandlers:i,borderLines:o}=Ty(r,a),s=Fe(()=>["chart","video","audio"].includes(e.elementInfo.type));return(l,c)=>(V(),H("div",tht,[(V(!0),H(qe,null,bt(te(o),u=>(V(),Ue(Oy,{class:"operate-border-line",key:u.type,type:u.type,style:We(u.style)},null,8,["type","style"]))),128)),l.handlerVisible?(V(),H(qe,{key:0},[(V(!0),H(qe,null,bt(te(i),u=>(V(),Ue(hg,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:l.elementInfo.rotate,style:We(u.style),onMousedown:on(f=>l.scaleElement(f,l.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),s.value?at("",!0):(V(),Ue(Py,{key:0,class:"operate-rotate-handler",style:We({left:r.value/2+"px"}),onMousedown:c[0]||(c[0]=on(u=>l.rotateElement(u,l.elementInfo),["stop"]))},null,8,["style"]))],64)):at("",!0)]))}}),sTe=()=>{const t=It(),{addHistorySnapshot:e}=Pn();return{setLink:(a,i)=>{const o=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if(i.type==="web"&&!o.test(i.target))return Dn.error("不是正确的网页链接地址"),!1;if(i.type==="slide"&&!i.target)return Dn.error("请先选择链接目标"),!1;const s={link:i};return t.updateElement({id:a.id,props:s}),e(),!0},removeLink:a=>{t.removeElementProps({id:a.id,propName:"link"}),e()}}},rht=["href"],aht={class:"btns"},iht=tt({__name:"LinkHandler",props:{elementInfo:{},link:{},openLinkDialog:{type:Function}},setup(t){const e=t,n=Wt(),r=It(),{canvasScale:a}=nt(n),{slides:i}=nt(r),{removeLink:o}=sTe(),s=Fe(()=>e.elementInfo.type==="line"?0:e.elementInfo.height),l=c=>{const u=i.value.findIndex(f=>f.id===c);u!==-1&&(n.setActiveElementIdList([]),r.updateSlideIndex(u))};return(c,u)=>(V(),H("div",{class:"link-handler",style:We({top:s.value*te(a)+10+"px"})},[c.link.type==="web"?(V(),H("a",{key:0,class:"link",href:c.link.target,target:"_blank"},Vt(c.link.target),9,rht)):(V(),H("a",{key:1,class:"link",onClick:u[0]||(u[0]=f=>l(c.link.target))},"幻灯片页面 "+Vt(c.link.target),1)),I("div",aht,[I("div",{class:"btn",onClick:u[1]||(u[1]=f=>c.openLinkDialog())},"更换"),U(hn,{type:"vertical"}),I("div",{class:"btn",onClick:u[2]||(u[2]=f=>te(o)(c.elementInfo))},"移除")])],4))}}),oht=lt(iht,[["__scopeId","data-v-d6289c36"]]),sht={key:1,class:"animation-index"},lht=tt({__name:"index",props:{elementInfo:{},isSelected:{type:Boolean},isActive:{type:Boolean},isActiveGroupElement:{type:Boolean},isMultiSelect:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},dragLineElement:{type:Function},moveShapeKeypoint:{type:Function},openLinkDialog:{type:Function}},setup(t){const e=t,{canvasScale:n,toolbarState:r}=nt(Wt()),{formatedAnimations:a}=nt(It()),i=Fe(()=>({[vn.IMAGE]:Idt,[vn.TEXT]:Fdt,[vn.SHAPE]:Wdt,[vn.LINE]:Jdt,[vn.TABLE]:eht,[vn.CHART]:fE,[vn.LATEX]:fE,[vn.VIDEO]:fE,[vn.AUDIO]:fE})[e.elementInfo.type]||null),o=Fe(()=>{const c=[];for(let u=0;u<a.value.length;u++)a.value[u].animations.map(d=>d.elId).includes(e.elementInfo.id)&&c.push(u);return c}),s=Fe(()=>"rotate"in e.elementInfo?e.elementInfo.rotate:0),l=Fe(()=>"height"in e.elementInfo?e.elementInfo.height:0);return(c,u)=>(V(),H("div",{class:mt(["operate",{"multi-select":c.isMultiSelect&&!c.isActive}]),style:We({top:c.elementInfo.top*te(n)+"px",left:c.elementInfo.left*te(n)+"px",transform:`rotate(${s.value}deg)`,transformOrigin:`${c.elementInfo.width*te(n)/2}px ${l.value*te(n)/2}px`})},[c.isSelected?(V(),Ue(Eh(i.value),{key:0,elementInfo:c.elementInfo,handlerVisible:!c.elementInfo.lock&&(c.isActiveGroupElement||!c.isMultiSelect),rotateElement:c.rotateElement,scaleElement:c.scaleElement,dragLineElement:c.dragLineElement,moveShapeKeypoint:c.moveShapeKeypoint},null,8,["elementInfo","handlerVisible","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])):at("",!0),te(r)==="elAnimation"&&o.value.length?(V(),H("div",sht,[(V(!0),H(qe,null,bt(o.value,f=>(V(),H("div",{class:"index-item",key:f},Vt(f+1),1))),128))])):at("",!0),c.isActive&&c.elementInfo.link?(V(),Ue(oht,{key:2,elementInfo:c.elementInfo,link:c.elementInfo.link,openLinkDialog:c.openLinkDialog,onMousedown:u[0]||(u[0]=on(()=>{},["stop"]))},null,8,["elementInfo","link","openLinkDialog"])):at("",!0)],6))}}),cht=lt(lht,[["__scopeId","data-v-7c6be7e7"]]),uht=["src"],fht=tt({__name:"BaseImageElement",props:{elementInfo:{}},setup(t){const e=t,n=Fe(()=>e.elementInfo.shadow),{shadowStyle:r}=cg(n),a=Fe(()=>e.elementInfo.flipH),i=Fe(()=>e.elementInfo.flipV),{flipStyle:o}=eV(a,i),s=Fe(()=>e.elementInfo),{clipShape:l,imgPosition:c}=uq(s),u=Fe(()=>e.elementInfo.filters),{filter:f}=S5e(u);return(d,h)=>(V(),H("div",{class:"base-element-image",style:We({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${d.elementInfo.rotate}deg)`})},[I("div",{class:"element-content",style:We({filter:te(r)?`drop-shadow(${te(r)})`:"",transform:te(o)})},[U(M5e,{elementInfo:d.elementInfo},null,8,["elementInfo"]),I("div",{class:"image-content",style:We({clipPath:te(l).style})},[I("img",{src:d.elementInfo.src,draggable:!1,style:We({top:te(c).top,left:te(c).left,width:te(c).width,height:te(c).height,filter:te(f)}),alt:""},null,12,uht),d.elementInfo.colorMask?(V(),H("div",{key:0,class:"color-mask",style:We({backgroundColor:d.elementInfo.colorMask})},null,4)):at("",!0)],4)],4)],4)],4))}}),lTe=lt(fht,[["__scopeId","data-v-99c3586e"]]),dht=["innerHTML"],hht=tt({__name:"BaseTextElement",props:{elementInfo:{},target:{}},setup(t){const e=t,n=Fe(()=>e.elementInfo.shadow),{shadowStyle:r}=cg(n);return(a,i)=>(V(),H("div",{class:"base-element-text",style:We({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${a.elementInfo.rotate}deg)`})},[I("div",{class:"element-content",style:We({width:a.elementInfo.vertical?"auto":a.elementInfo.width+"px",height:a.elementInfo.vertical?a.elementInfo.height+"px":"auto",backgroundColor:a.elementInfo.fill,opacity:a.elementInfo.opacity,textShadow:te(r),lineHeight:a.elementInfo.lineHeight,letterSpacing:(a.elementInfo.wordSpace||0)+"px",color:a.elementInfo.defaultColor,fontFamily:a.elementInfo.defaultFontName,writingMode:a.elementInfo.vertical?"vertical-rl":"horizontal-tb","--paragraphSpace":`${a.elementInfo.paragraphSpace===void 0?5:a.elementInfo.paragraphSpace}px`})},[U(tV,{width:a.elementInfo.width,height:a.elementInfo.height,outline:a.elementInfo.outline},null,8,["width","height","outline"]),I("div",{class:mt(["text ProseMirror-static",{thumbnail:a.target==="thumbnail"}]),innerHTML:a.elementInfo.content},null,10,dht)],4)],4)],4))}}),cTe=lt(hht,[["__scopeId","data-v-9c80b115"]]),pht=["width","height"],vht=["transform"],ght=["d","fill","stroke","stroke-width","stroke-dasharray"],mht=["innerHTML"],yht=tt({__name:"BaseShapeElement",props:{elementInfo:{}},setup(t){const e=t,{theme:n}=nt(It()),r=Fe(()=>e.elementInfo),{fill:a}=A_e(r,"base"),i=Fe(()=>e.elementInfo.outline),{outlineWidth:o,outlineColor:s,strokeDashArray:l}=DS(i),c=Fe(()=>e.elementInfo.shadow),{shadowStyle:u}=cg(c),f=Fe(()=>e.elementInfo.flipH),d=Fe(()=>e.elementInfo.flipV),{flipStyle:h}=eV(f,d),p=Fe(()=>{const v={content:"",align:"middle",defaultFontName:n.value.fontName,defaultColor:n.value.fontColor};return e.elementInfo.text?e.elementInfo.text:v});return(v,g)=>(V(),H("div",{class:"base-element-shape",style:We({top:v.elementInfo.top+"px",left:v.elementInfo.left+"px",width:v.elementInfo.width+"px",height:v.elementInfo.height+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${v.elementInfo.rotate}deg)`})},[I("div",{class:"element-content",style:We({opacity:v.elementInfo.opacity,filter:te(u)?`drop-shadow(${te(u)})`:"",transform:te(h),color:p.value.defaultColor,fontFamily:p.value.defaultFontName})},[(V(),H("svg",{overflow:"visible",width:v.elementInfo.width,height:v.elementInfo.height},[I("defs",null,[v.elementInfo.pattern?(V(),Ue(b_e,{key:0,id:`base-pattern-${v.elementInfo.id}`,src:v.elementInfo.pattern},null,8,["id","src"])):v.elementInfo.gradient?(V(),Ue(R_e,{key:1,id:`base-gradient-${v.elementInfo.id}`,type:v.elementInfo.gradient.type,colors:v.elementInfo.gradient.colors,rotate:v.elementInfo.gradient.rotate},null,8,["id","type","colors","rotate"])):at("",!0)]),I("g",{transform:`scale(${v.elementInfo.width/v.elementInfo.viewBox[0]}, ${v.elementInfo.height/v.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[I("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:v.elementInfo.path,fill:te(a),stroke:te(s),"stroke-width":te(o),"stroke-dasharray":te(l)},null,8,ght)],8,vht)],8,pht)),I("div",{class:mt(["shape-text",p.value.align]),style:We({lineHeight:p.value.lineHeight,letterSpacing:(p.value.wordSpace||0)+"px","--paragraphSpace":`${p.value.paragraphSpace===void 0?5:p.value.paragraphSpace}px`})},[I("div",{class:"ProseMirror-static",innerHTML:p.value.content},null,8,mht)],6)],4)],4)],4))}}),Vee=lt(yht,[["__scopeId","data-v-c280cef7"]]),Aht=["width","height"],Rht=["d","stroke","stroke-width","stroke-dasharray"],bht=["d","stroke-width","marker-start","marker-end"],xht=tt({__name:"BaseLineElement",props:{elementInfo:{}},setup(t){const e=t,n=Fe(()=>e.elementInfo.shadow),{shadowStyle:r}=cg(n),a=Fe(()=>{const c=Math.abs(e.elementInfo.start[0]-e.elementInfo.end[0]);return c<24?24:c}),i=Fe(()=>{const c=Math.abs(e.elementInfo.start[1]-e.elementInfo.end[1]);return c<24?24:c}),o=Fe(()=>{const c=e.elementInfo.width;return e.elementInfo.style==="dashed"?c<=8?`${c*5} ${c*2.5}`:`${c*5} ${c*1.5}`:e.elementInfo.style==="dotted"?c<=8?`${c*1.8} ${c*1.6}`:`${c*1.5} ${c*1.2}`:"0 0"}),s=Fe(()=>D4e(e.elementInfo)),l=Fe(()=>Lj(e.elementInfo));return(c,u)=>(V(),H("div",{class:"base-element-line",style:We({top:c.elementInfo.top+"px",left:c.elementInfo.left+"px"})},[I("div",{class:"element-content",style:We({filter:te(r)?`drop-shadow(${te(r)})`:""})},[(V(),H("svg",{overflow:"visible",width:a.value,height:i.value},[I("defs",null,[c.elementInfo.points[0]?(V(),Ue(Ch,{key:0,id:c.elementInfo.id,position:"start",type:c.elementInfo.points[0],color:c.elementInfo.color,baseSize:c.elementInfo.width},null,8,["id","type","color","baseSize"])):at("",!0),c.elementInfo.points[1]?(V(),Ue(Ch,{key:1,id:c.elementInfo.id,position:"end",type:c.elementInfo.points[1],color:c.elementInfo.color,baseSize:c.elementInfo.width},null,8,["id","type","color","baseSize"])):at("",!0)]),I("path",{d:s.value,stroke:c.elementInfo.color,"stroke-width":c.elementInfo.width,"stroke-dasharray":o.value,fill:"none"},null,8,Rht),I("path",{d:l.value,stroke:"transparent","stroke-width":c.elementInfo.width,fill:"none","marker-start":c.elementInfo.points[0]?`url(#${c.elementInfo.id}-${c.elementInfo.points[0]}-start)`:"","marker-end":c.elementInfo.points[1]?`url(#${c.elementInfo.id}-${c.elementInfo.points[1]}-end)`:""},null,8,bht)],8,Aht))],4)],4))}}),uTe=lt(xht,[["__scopeId","data-v-c769b040"]]),Sht=tt({__name:"BaseChartElement",props:{elementInfo:{},target:{}},setup(t){return(e,n)=>(V(),H("div",{class:mt(["base-element-chart",{"is-thumbnail":e.target==="thumbnail"}]),style:We({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${e.elementInfo.rotate}deg)`})},[I("div",{class:"element-content",style:We({backgroundColor:e.elementInfo.fill})},[U(tV,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),U(K6e,{width:e.elementInfo.width,height:e.elementInfo.height,type:e.elementInfo.chartType,data:e.elementInfo.data,themeColors:e.elementInfo.themeColors,textColor:e.elementInfo.textColor,lineColor:e.elementInfo.lineColor,options:e.elementInfo.options},null,8,["width","height","type","data","themeColors","textColor","lineColor","options"])],4)],4)],6))}}),fTe=lt(Sht,[["__scopeId","data-v-39138f9a"]]),Mht=["width"],_ht=["rowspan","colspan"],wht=["innerHTML"],Lht=tt({__name:"StaticTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},setup(t){const e=t,n=we([]),r=Fe(()=>n.value.reduce((l,c)=>l+c));qt([()=>e.colWidths,()=>e.width],()=>{n.value=e.colWidths.map(l=>l*e.width)},{immediate:!0});const a=Fe(()=>e.data),{hideCells:i}=z6e(a),o=Fe(()=>e.theme),{subThemeColor:s}=J6e(o);return(l,c)=>{var u,f,d,h,p;return V(),H("div",{class:"static-table",style:We({width:r.value+"px"})},[I("table",{class:mt({theme:o.value,"row-header":(u=o.value)==null?void 0:u.rowHeader,"row-footer":(f=o.value)==null?void 0:f.rowFooter,"col-header":(d=o.value)==null?void 0:d.colHeader,"col-footer":(h=o.value)==null?void 0:h.colFooter}),style:We(`--themeColor: ${(p=o.value)==null?void 0:p.color}; --subThemeColor1: ${te(s)[0]}; --subThemeColor2: ${te(s)[1]}`)},[I("colgroup",null,[(V(!0),H(qe,null,bt(n.value,(v,g)=>(V(),H("col",{span:"1",key:g,width:v},null,8,Mht))),128))]),I("tbody",null,[(V(!0),H(qe,null,bt(l.data,(v,g)=>(V(),H("tr",{key:g,style:We({height:l.cellMinHeight+"px"})},[(V(!0),H(qe,null,bt(v,(y,m)=>yt((V(),H("td",{class:"cell",style:We(te(G6e)(l.outline,y.style)),key:y.id,rowspan:y.rowspan,colspan:y.colspan},[I("div",{class:"cell-text",style:We(te(uJ)(l.cellMinHeight,y.style)),innerHTML:te($6e)(y.text)},null,12,wht)],12,_ht)),[[y0,!te(i).includes(`${g}_${m}`)]])),128))],4))),128))])],6)],4)}}}),Tht=lt(Lht,[["__scopeId","data-v-886362d7"]]),Oht={class:"element-content"},Pht=tt({__name:"BaseTableElement",props:{elementInfo:{}},setup(t){return(e,n)=>(V(),H("div",{class:"base-element-table",style:We({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${e.elementInfo.rotate}deg)`})},[I("div",Oht,[U(Tht,{data:e.elementInfo.data,width:e.elementInfo.width,cellMinHeight:e.elementInfo.cellMinHeight,colWidths:e.elementInfo.colWidths,outline:e.elementInfo.outline,theme:e.elementInfo.theme},null,8,["data","width","cellMinHeight","colWidths","outline","theme"])])],4)],4))}}),dTe=lt(Pht,[["__scopeId","data-v-5cedb433"]]),Cht={class:"element-content"},Nht=["width","height","stroke","stroke-width"],Iht=["transform"],kht=["d"],Eht=tt({__name:"BaseLatexElement",props:{elementInfo:{}},setup(t){return(e,n)=>(V(),H("div",{class:"base-element-latex",style:We({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${e.elementInfo.rotate}deg)`})},[I("div",Cht,[(V(),H("svg",{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height,stroke:e.elementInfo.color,"stroke-width":e.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[I("g",{transform:`scale(${e.elementInfo.width/e.elementInfo.viewBox[0]}, ${e.elementInfo.height/e.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[I("path",{d:e.elementInfo.path},null,8,kht)],8,Iht)],8,Nht))])],4)],4))}}),Uee=lt(Eht,[["__scopeId","data-v-0dac0976"]]),Fht=tt({__name:"BaseVideoElement",props:{elementInfo:{}},setup(t){return(e,n)=>{const r=OV;return V(),H("div",{class:"base-element-video",style:We({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${e.elementInfo.rotate}deg)`})},[I("div",{class:"element-content",style:We({backgroundImage:e.elementInfo.poster?`url(${e.elementInfo.poster})`:""})},[U(r,{class:"icon"})],4)],4)],4)}}}),Xht=lt(Fht,[["__scopeId","data-v-641065ad"]]),Dht={class:"element-content"},Vht=tt({__name:"BaseAudioElement",props:{elementInfo:{}},setup(t){const e=t,n=Fe(()=>Math.min(e.elementInfo.width,e.elementInfo.height)+"px");return(r,a)=>{const i=U8;return V(),H("div",{class:"base-element-audio",style:We({top:r.elementInfo.top+"px",left:r.elementInfo.left+"px",width:r.elementInfo.width+"px",height:r.elementInfo.height+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${r.elementInfo.rotate}deg)`})},[I("div",Dht,[U(i,{class:"audio-icon",style:We({fontSize:n.value,color:r.elementInfo.color})},null,8,["style"])])],4)],4)}}}),Uht=lt(Vht,[["__scopeId","data-v-a49a216f"]]),Wht=tt({__name:"ThumbnailElement",props:{elementInfo:{},elementIndex:{}},setup(t){const e=t,n=Fe(()=>({[vn.IMAGE]:lTe,[vn.TEXT]:cTe,[vn.SHAPE]:Vee,[vn.LINE]:uTe,[vn.CHART]:fTe,[vn.TABLE]:dTe,[vn.LATEX]:Uee,[vn.VIDEO]:Xht,[vn.AUDIO]:Uht})[e.elementInfo.type]||null);return(r,a)=>(V(),H("div",{class:mt(["base-element",`base-element-${r.elementInfo.id}`]),style:We({zIndex:r.elementIndex})},[(V(),Ue(Eh(n.value),{elementInfo:r.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6))}}),Yht={key:1,class:"placeholder"},Bht=tt({__name:"index",props:{slide:{},size:{},visible:{type:Boolean,default:!0}},setup(t){const e=t,{viewportRatio:n,viewportSize:r}=nt(It()),a=Fe(()=>e.slide.background),{backgroundStyle:i}=PV(a),o=Fe(()=>e.size/r.value);return yy(_8,o),(s,l)=>(V(),H("div",{class:"thumbnail-slide",style:We({width:s.size+"px",height:s.size*te(n)+"px"})},[s.visible?(V(),H("div",{key:0,class:"elements",style:We({width:te(r)+"px",height:te(r)*te(n)+"px",transform:`scale(${o.value})`})},[I("div",{class:"background",style:We(te(i))},null,4),(V(!0),H(qe,null,bt(s.slide.elements,(c,u)=>(V(),Ue(Wht,{key:c.id,elementInfo:c,elementIndex:u+1},null,8,["elementInfo","elementIndex"]))),128))],4)):(V(),H("div",Yht,"加载中 ..."))],4))}}),bc=lt(Bht,[["__scopeId","data-v-4e580b0e"]]),Zht=["onClick"],Qht=tt({__name:"Tabs",props:{value:{},tabs:{},card:{type:Boolean,default:!1},tabsStyle:{},tabStyle:{},spaceAround:{type:Boolean,default:!1},spaceBetween:{type:Boolean,default:!1}},emits:["update:value"],setup(t,{emit:e}){const n=e;return(r,a)=>(V(),H("div",{class:mt(["tabs",{card:r.card,"space-around":r.spaceAround,"space-between":r.spaceBetween}]),style:We(r.tabsStyle||{})},[(V(!0),H(qe,null,bt(r.tabs,i=>(V(),H("div",{class:mt(["tab",{active:i.key===r.value,disabled:i.disabled}]),key:i.key,style:We({...r.tabStyle||{},"--color":i.color}),onClick:o=>!i.disabled&&n("update:value",i.key)},Vt(i.label),15,Zht))),128))],6))}}),Wf=lt(Qht,[["__scopeId","data-v-1e602785"]]),Kht=tt({__name:"Button",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{default:"default"},size:{default:"normal"},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,a=()=>{n.disabled||r("click")};return(i,o)=>(V(),H("button",{class:mt(["button",{disabled:i.disabled,checked:!i.disabled&&i.checked,default:!i.disabled&&i.type==="default",primary:!i.disabled&&i.type==="primary",checkbox:!i.disabled&&i.type==="checkbox",radio:!i.disabled&&i.type==="radio",small:i.size==="small",first:i.first,last:i.last}]),onClick:o[0]||(o[0]=s=>a())},[Hr(i.$slots,"default",{},void 0,!0)],2))}}),Mt=lt(Kht,[["__scopeId","data-v-a85d4d53"]]),Hht={key:0,class:"select-wrap"},Ght={class:"selector"},$ht={class:"icon"},zht=["onClick"],Jht={class:"selector"},jht={class:"icon"},qht=tt({__name:"Select",props:{value:{},options:{},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},search:{type:Boolean,default:!1},searchLabel:{default:"搜索"}},emits:["update:value"],setup(t,{emit:e}){const n=t,r=e,a=we(!1),i=we(0),o=we(""),s=un("selectRef"),l=un("optionsRef"),c=un("searchInputRef"),u=Fe(()=>{var v;return((v=n.options.find(g=>g.value===n.value))==null?void 0:v.label)||n.value}),f=Fe(()=>{if(!n.search||!o.value.trim())return n.options;const v=n.options.filter(g=>g.label.toLowerCase().indexOf(o.value.toLowerCase())!==-1);return v.length?v:n.options});qt(a,()=>{a.value?qr(()=>{var v;c.value&&c.value.focus(),n.autofocus&&l.value&&((v=l.value.querySelector(".option.selected"))==null||v.scrollIntoView({block:"center"}))}):o.value=""}),tg(()=>{o.value=""});const d=()=>{s.value&&(i.value=s.value.clientWidth)},h=new ResizeObserver(d);mn(()=>{s.value&&h.observe(s.value)}),or(()=>{s.value&&h.unobserve(s.value)});const p=v=>{v.disabled||(r("update:value",v.value),a.value=!1)};return(v,g)=>{const y=Tu;return v.disabled?(V(),H("div",Hht,[I("div",{class:"select disabled",ref_key:"selectRef",ref:s},[I("div",Ght,Vt(v.value),1),I("div",$ht,[Hr(v.$slots,"icon",{},()=>[U(y)],!0)])],512)])):(V(),Ue(sn,{key:1,class:"select-wrap",trigger:"click",value:a.value,"onUpdate:value":g[1]||(g[1]=m=>a.value=m),placement:"bottom",contentStyle:{padding:0,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08)"}},{content:pe(()=>[v.search?(V(),H(qe,{key:0},[U(A0,{ref_key:"searchInputRef",ref:c,simple:"",placeholder:v.searchLabel,value:o.value,"onUpdate:value":g[0]||(g[0]=m=>o.value=m),style:We({width:i.value+2+"px"})},null,8,["placeholder","value","style"]),U(hn,{margin:0})],64)):at("",!0),I("div",{class:"options",ref_key:"optionsRef",ref:l,style:We({width:i.value+2+"px"})},[(V(!0),H(qe,null,bt(f.value,m=>(V(),H("div",{class:mt(["option",{disabled:m.disabled,selected:m.value===v.value}]),key:m.value,onClick:R=>p(m)},Vt(m.label),11,zht))),128))],4)]),default:pe(()=>[I("div",{class:"select",ref_key:"selectRef",ref:s},[I("div",Jht,Vt(u.value),1),I("div",jht,[Hr(v.$slots,"icon",{},()=>[U(y)],!0)])],512)]),_:3},8,["value"]))}}}),La=lt(qht,[["__scopeId","data-v-9199df91"]]),ept={class:"link-dialog"},tpt={key:2,class:"preview"},npt={class:"btns"},rpt=tt({__name:"LinkDialog",emits:["close"],setup(t,{emit:e}){var g;const n=e,r=Wt(),{handleElement:a}=nt(r),{slides:i,currentSlide:o}=nt(It()),s=we("web"),l=we(""),c=we(""),u=un("inputRef"),f=Fe(()=>i.value.map((y,m)=>({label:`幻灯片 ${m+1}`,value:y.id,disabled:o.value.id===y.id})));c.value=((g=i.value.find(y=>y.id!==o.value.id))==null?void 0:g.id)||"";const d=Fe(()=>c.value&&i.value.find(y=>y.id===c.value)||null),h=Fe(()=>[{key:"web",label:"网页链接"},{key:"slide",label:"幻灯片页面",disabled:i.value.length<=1}]),{setLink:p}=sTe();mn(()=>{var y;r.setDisableHotkeysState(!0),(y=a.value)!=null&&y.link&&(a.value.link.type==="web"?l.value=a.value.link.target:a.value.link.type==="slide"&&(c.value=a.value.link.target),s.value=a.value.link.type),s.value==="web"&&qr(()=>{u.value.focus()})}),or(()=>{r.setDisableHotkeysState(!1)});const v=()=>{const y={type:s.value,target:s.value==="web"?l.value:c.value};a.value&&(p(a.value,y)?n("close"):l.value="")};return(y,m)=>(V(),H("div",ept,[U(Wf,{tabs:h.value,value:s.value,"onUpdate:value":m[0]||(m[0]=R=>s.value=R),tabsStyle:{marginBottom:"20px"}},null,8,["tabs","value"]),s.value==="web"?(V(),Ue(A0,{key:0,class:"input",ref_key:"inputRef",ref:u,value:l.value,"onUpdate:value":m[1]||(m[1]=R=>l.value=R),placeholder:"请输入网页链接地址",onEnter:m[2]||(m[2]=R=>v())},null,8,["value"])):at("",!0),s.value==="slide"?(V(),Ue(La,{key:1,class:"input",value:c.value,"onUpdate:value":m[3]||(m[3]=R=>c.value=R),options:f.value},null,8,["value","options"])):at("",!0),s.value==="slide"&&d.value?(V(),H("div",tpt,[m[6]||(m[6]=I("div",null,"预览:",-1)),U(bc,{class:"thumbnail",slide:d.value,size:500},null,8,["slide"])])):at("",!0),I("div",npt,[U(Mt,{onClick:m[4]||(m[4]=R=>n("close")),style:{"margin-right":"10px"}},{default:pe(()=>m[7]||(m[7]=[rt("取消")])),_:1,__:[7]}),U(Mt,{type:"primary",onClick:m[5]||(m[5]=R=>v())},{default:pe(()=>m[8]||(m[8]=[rt("确认")])),_:1,__:[8]})])]))}}),apt=lt(rpt,[["__scopeId","data-v-4ff5354d"]]),ipt=tt({__name:"Modal",props:{visible:{type:Boolean},width:{default:480},closeButton:{type:Boolean,default:!1},closeOnClickMask:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},contentStyle:{},wrapStyle:{}},emits:["update:visible","closed"],setup(t,{emit:e}){const n=t,r=un("modalRef"),a=e,i=we(!1),o=Fe(()=>({width:n.width+"px",...n.contentStyle||{}}));qt(()=>n.visible,()=>{n.visible&&qr(()=>r.value.focus())});const s=()=>{a("update:visible",!1),a("closed")},l=()=>{n.visible&&n.closeOnEsc&&s()},c=()=>{n.closeOnClickMask&&s()};return(u,f)=>{const d=Sy;return V(),Ue($J,{to:"body"},[U(Aw,{name:"modal-fade"},{default:pe(()=>[yt(I("div",{class:"modal",ref_key:"modalRef",ref:r,style:We(u.wrapStyle||{}),tabindex:"-1",onKeyup:f[4]||(f[4]=Xf(h=>l(),["esc"]))},[I("div",{class:"mask",onClick:f[0]||(f[0]=h=>c())}),U(Aw,{name:"modal-zoom",onAfterLeave:f[2]||(f[2]=h=>i.value=!1),onBeforeEnter:f[3]||(f[3]=h=>i.value=!0)},{default:pe(()=>[yt(I("div",{class:"modal-content",style:We(o.value)},[u.closeButton?(V(),H("span",{key:0,class:"close-btn",onClick:f[1]||(f[1]=h=>s())},[U(d)])):at("",!0),i.value?Hr(u.$slots,"default",{key:1},void 0,!0):at("",!0)],4),[[y0,u.visible]])]),_:3})],36),[[y0,u.visible]])]),_:3})])}}}),j1=lt(ipt,[["__scopeId","data-v-7bc56200"]]),opt={class:"operates"},spt={key:2,class:"drag-mask"},lpt=tt({__name:"index",setup(t){const e=Wt(),{activeElementIdList:n,activeGroupElementId:r,handleElementId:a,hiddenElementIdList:i,editorAreaFocus:o,gridLineSize:s,showRuler:l,creatingElement:c,creatingCustomShape:u,canvasScale:f,textFormatPainter:d}=nt(e),{currentSlide:h}=nt(It()),{ctrlKeyState:p,spaceKeyState:v}=nt(xc()),g=un("viewportRef"),y=we([]),m=we(!1),R=()=>m.value=!0;qt(a,()=>{e.setActiveGroupElementId("")});const A=we([]);TS(()=>{A.value=h.value?JSON.parse(JSON.stringify(h.value.elements)):[]});const M=un("canvasRef"),{dragViewport:S,viewportStyles:w}=pGe(M);gGe(M);const{mouseSelection:_,mouseSelectionVisible:T,mouseSelectionQuadrant:O,updateMouseSelection:N}=vGe(A,g),{dragElement:P}=b5e(A,y,f),{dragLineElement:C}=xGe(A),{selectElement:E}=bGe(A,P),{scaleElement:F,scaleMultiElement:Y}=R5e(A,y,f),{rotateElement:Q}=y5e(A,g,f),{rotateGroupElement:K}=RGe(A,g,f),{moveShapeKeypoint:ne}=SGe(A,f),{selectAllElements:Z}=p8(),{deleteAllElements:$}=h8(),{pasteElement:G}=Nj(),{enterScreeningFromStart:ee}=og(),{updateSlideIndex:ce}=ig(),{createTextElement:B,createShapeElement:xe}=M0();mn(()=>{n.value.length&&qr(()=>e.setActiveElementIdList([]))});const _e=Se=>{n.value.length&&e.setActiveElementIdList([]),v.value?S(Se):N(Se),o.value||e.setEditorareaFocus(!0),d.value&&e.setTextFormatPainter(null),hGe()},se=Se=>{if(n.value.length||c.value||u.value||!g.value)return;const me=g.value.getBoundingClientRect(),ye=(Se.pageX-me.x)/f.value,Ve=(Se.pageY-me.y)/f.value;B({left:ye,top:Ve,width:200/f.value,height:0})};or(()=>{d.value&&e.setTextFormatPainter(null)});const z=()=>{o.value&&e.setEditorareaFocus(!1)},{scaleCanvas:de}=kj(),fe=Vr.throttle(de,100,{leading:!0,trailing:!1}),re=Vr.throttle(ce,300,{leading:!0,trailing:!1}),X=Se=>{Se.preventDefault(),p.value?Se.deltaY>0?fe("-"):Se.deltaY<0&&fe("+"):Se.deltaY>0?re(Ht.DOWN):Se.deltaY<0&&re(Ht.UP)},j=()=>{e.setRulerState(!l.value)},{insertElementFromCreateSelection:oe,formatCreateSelection:ae}=MGe(g),le=Se=>{const{start:me,end:ye,path:Ve,viewBox:De}=Se,Ye=ae({start:me,end:ye});if(Ye){const Je={};Se.fill&&(Je.fill=Se.fill),Se.outline&&(Je.outline=Se.outline),xe(Ye,{path:Ve,viewBox:De},Je)}e.setCreatingCustomShapeState(!1)},ge=()=>[{text:"粘贴",subText:"Ctrl + V",handler:G},{text:"全选",subText:"Ctrl + A",handler:Z},{text:"标尺",subText:l.value?"√":"",handler:j},{text:"网格线",handler:()=>e.setGridLineSize(s.value?0:50),children:[{text:"无",subText:s.value===0?"√":"",handler:()=>e.setGridLineSize(0)},{text:"小",subText:s.value===25?"√":"",handler:()=>e.setGridLineSize(25)},{text:"中",subText:s.value===50?"√":"",handler:()=>e.setGridLineSize(50)},{text:"大",subText:s.value===100?"√":"",handler:()=>e.setGridLineSize(100)}]},{text:"重置当前页",handler:$},{divider:!0},{text:"幻灯片放映",subText:"F5",handler:ee}];return yy(_8,f),(Se,me)=>{const ye=pr("contextmenu"),Ve=pr("click-outside");return yt((V(),H("div",{class:"canvas",ref_key:"canvasRef",ref:M,onWheel:me[4]||(me[4]=De=>X(De)),onMousedown:me[5]||(me[5]=De=>_e(De)),onDblclick:me[6]||(me[6]=De=>se(De))},[te(c)?(V(),Ue(Adt,{key:0,onCreated:me[0]||(me[0]=De=>te(oe)(De))})):at("",!0),te(u)?(V(),Ue(Sdt,{key:1,onCreated:me[1]||(me[1]=De=>le(De))})):at("",!0),I("div",{class:"viewport-wrapper",style:We({width:te(w).width*te(f)+"px",height:te(w).height*te(f)+"px",left:te(w).left+"px",top:te(w).top+"px"})},[I("div",opt,[(V(!0),H(qe,null,bt(y.value,(De,Ye)=>(V(),Ue(oTe,{key:Ye,type:De.type,axis:De.axis,length:De.length,canvasScale:te(f)},null,8,["type","axis","length","canvasScale"]))),128)),te(n).length>1?(V(),Ue(Pdt,{key:0,elementList:A.value,scaleMultiElement:te(Y),rotateGroupElement:te(K)},null,8,["elementList","scaleMultiElement","rotateGroupElement"])):at("",!0),(V(!0),H(qe,null,bt(A.value,De=>yt((V(),Ue(cht,{key:De.id,elementInfo:De,isSelected:te(n).includes(De.id),isActive:te(a)===De.id,isActiveGroupElement:te(r)===De.id,isMultiSelect:te(n).length>1,rotateElement:te(Q),scaleElement:te(F),openLinkDialog:R,dragLineElement:te(C),moveShapeKeypoint:te(ne)},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])),[[y0,!te(i).includes(De.id)]])),128)),U(cdt)]),I("div",{class:"viewport",ref_key:"viewportRef",ref:g,style:We({transform:`scale(${te(f)})`})},[te(T)?(V(),Ue(rdt,{key:0,top:te(_).top,left:te(_).left,width:te(_).width,height:te(_).height,quadrant:te(O)},null,8,["top","left","width","height","quadrant"])):at("",!0),(V(!0),H(qe,null,bt(A.value,(De,Ye)=>yt((V(),Ue(tdt,{key:De.id,elementInfo:De,elementIndex:Ye+1,isMultiSelect:te(n).length>1,selectElement:te(E),openLinkDialog:R},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement"])),[[y0,!te(i).includes(De.id)]])),128))],4)],4),te(v)?(V(),H("div",spt)):at("",!0),te(l)?(V(),Ue(vdt,{key:3,viewportStyles:te(w),elementList:A.value},null,8,["viewportStyles","elementList"])):at("",!0),U(j1,{visible:m.value,"onUpdate:visible":me[3]||(me[3]=De=>m.value=De),width:540},{default:pe(()=>[U(apt,{onClose:me[2]||(me[2]=De=>m.value=!1)})]),_:1},8,["visible"])],32)),[[ye,ge],[Ve,z]])}}}),cpt=lt(lpt,[["__scopeId","data-v-ec58172d"]]),upt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function fpt(t,e){return V(),H("svg",upt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M33 6h9v9m0 18v9h-9m-18 0H6v-9m0-18V6h9"},null,-1)]))}const dpt=vt({name:"icon-park-outline-full-screen",render:fpt}),hpt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function ppt(t,e){return V(),H("svg",hpt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"m24.06 10l-.036 28M10 24h28"},null,-1)]))}const zf=vt({name:"icon-park-outline-plus",render:ppt}),vpt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function gpt(t,e){return V(),H("svg",vpt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M10.5 24h28"},null,-1)]))}const Wee=vt({name:"icon-park-outline-minus",render:gpt}),mpt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function ypt(t,e){return V(),H("svg",mpt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M4 40.003h14.004Q8 33.452 8 24c0-9.453 7.017-16 16.008-16C33 8 40 15 40 24q0 9-9.993 16.003H44"},null,-1)]))}const Apt=vt({name:"icon-park-outline-symbol",render:ypt}),Rpt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function bpt(t,e){return V(),H("svg",Rpt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M39 6H9a3 3 0 0 0-3 3v30a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3"}),I("path",{d:"M20.5 28v-6.062l5.25 3.03L31 28l-5.25 3.031l-5.25 3.031zM6 15h36m-9-9l-6 9m-6-9l-6 9"})],-1)]))}const xpt=vt({name:"icon-park-outline-video-two",render:bpt}),Spt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Mpt(t,e){return V(),H("svg",Spt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"m40 9l-3-3H8l18 18L8 42h29l3-3"},null,-1)]))}const _pt=vt({name:"icon-park-outline-formula",render:Mpt}),wpt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Lpt(t,e){return V(),H("svg",wpt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-width":"4"},[I("path",{d:"M39.3 6H8.7A2.7 2.7 0 0 0 6 8.7v30.6A2.7 2.7 0 0 0 8.7 42h30.6a2.7 2.7 0 0 0 2.7-2.7V8.7A2.7 2.7 0 0 0 39.3 6Z"}),I("path",{"stroke-linecap":"round",d:"M18 6v36M30 6v36M6 18h36M6 30h36"})],-1)]))}const Tpt=vt({name:"icon-park-outline-insert-table",render:Lpt}),Opt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Ppt(t,e){return V(),H("svg",Opt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{"stroke-linecap":"round",d:"M16.345 5.518a20 20 0 0 0-6.487 4.34A19.94 19.94 0 0 0 4 24c0 11.046 8.954 20 20 20v0a19.94 19.94 0 0 0 14.142-5.858a20 20 0 0 0 4.34-6.487"}),I("path",{d:"M24 24h20c0-11.046-8.954-20-20-20z"})],-1)]))}const Cpt=vt({name:"icon-park-outline-chart-proportion",render:Ppt}),Npt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Ipt(t,e){return V(),H("svg",Npt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{"stroke-linecap":"round",d:"m39 34l5 5l-5 5"}),I("path",{d:"M8 12a4 4 0 1 0 0-8a4 4 0 0 0 0 8Z"}),I("path",{"stroke-linecap":"round",d:"M12 8h8a4 4 0 0 1 4 4v23a4 4 0 0 0 4 4h16"})],-1)]))}const kpt=vt({name:"icon-park-outline-connection",render:Ipt}),Ept={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"},Fpt=["id"],Xpt=["mask"];function Dpt(t,e){return V(),H("svg",Ept,[I("mask",{id:t.idMap.SVGmUZuRdkM,width:"48",height:"48",x:"0",y:"0",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"}},e[0]||(e[0]=[I("path",{fill:"currentColor",d:"M48 0H0v48h48z"},null,-1)]),8,Fpt),I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",mask:"url(#"+t.idMap.SVGmUZuRdkM+")"},e[1]||(e[1]=[I("path",{d:"M6 24.008V42h36V24m-9-9l-9-9l-9 9m8.992 17V6"},null,-1)]),8,Xpt)])}const hTe=vt({name:"icon-park-outline-upload",render:Dpt,setup(){return{idMap:{SVGmUZuRdkM:"uicons-"+Math.random().toString(36).substr(2,10)}}}}),Vpt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Upt(t,e){return V(),H("svg",Vpt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M39 6H9a3 3 0 0 0-3 3v30a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3"}),I("path",{d:"M18 23a5 5 0 1 0 0-10a5 5 0 0 0 0 10m9.79 3.22a2 2 0 0 1 3.243.053l8.775 12.583c.924 1.326-.025 3.144-1.64 3.144H16z"})],-1)]))}const pTe=vt({name:"icon-park-outline-picture",render:Upt}),Wpt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Ypt(t,e){return V(),H("svg",Wpt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M24 24v-5L39 4l5 5l-15 15z","clip-rule":"evenodd"}),I("path",{d:"M16 24H9a5 5 0 0 0 0 10h30a5 5 0 0 1 0 10H18"})],-1)]))}const Bpt=vt({name:"icon-park-outline-writing-fluently",render:Ypt}),Zpt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Qpt(t,e){return V(),H("svg",Zpt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M19 32c-7.732 0-14-6.268-14-14S11.268 4 19 4s14 6.268 14 14"}),I("path",{d:"M44 18H18v26h26z"})],-1)]))}const vTe=vt({name:"icon-park-outline-graphic-design",render:Qpt}),Kpt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Hpt(t,e){return V(),H("svg",Kpt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"m29 35l-8-3.667M29 13l-8 3.667m0 0L17 18.5L5 24l12 5.5l4 1.833m0-14.666v14.666M37 6v36l6-6"},null,-1)]))}const Gpt=vt({name:"icon-park-outline-text-rotation-down",render:Hpt}),$pt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function zpt(t,e){return V(),H("svg",$pt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"m13 29l3.667-8M35 29l-3.667-8m0 0L29.5 17L24 5l-5.5 12l-1.833 4m14.666 0H16.667M6 37h36l-6 6"},null,-1)]))}const Jpt=vt({name:"icon-park-outline-text-rotation-none",render:zpt}),jpt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function qpt(t,e){return V(),H("svg",jpt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M8 10.933V6h32v4.933M24 6v36m-8 0h16"},null,-1)]))}const BS=vt({name:"icon-park-outline-font-size",render:qpt}),e0t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function t0t(t,e){return V(),H("svg",e0t,e[0]||(e[0]=[I("circle",{cx:"12",cy:"24",r:"3",fill:"currentColor"},null,-1),I("circle",{cx:"24",cy:"24",r:"3",fill:"currentColor"},null,-1),I("circle",{cx:"36",cy:"24",r:"3",fill:"currentColor"},null,-1)]))}const n0t=vt({name:"icon-park-outline-more",render:t0t}),r0t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function a0t(t,e){return V(),H("svg",r0t,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M21 38c9.389 0 17-7.611 17-17S30.389 4 21 4S4 11.611 4 21s7.611 17 17 17Z"}),I("path",{"stroke-linecap":"round",d:"M26.657 14.343A7.98 7.98 0 0 0 21 12a7.98 7.98 0 0 0-5.657 2.343m17.879 18.879l8.485 8.485"})],-1)]))}const gTe=vt({name:"icon-park-outline-search",render:a0t}),i0t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function o0t(t,e){return V(),H("svg",i0t,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4",d:"m8 6l35 19l-19 2l-10.005 17z"},null,-1)]))}const s0t=vt({name:"icon-park-outline-move-one",render:o0t}),l0t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function c0t(t,e){return V(),H("svg",l0t,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M44 6H4v30h9v5l10-5h21zM14 19.5v3m10-3v3m10-3v3"},null,-1)]))}const u0t=vt({name:"icon-park-outline-comment",render:c0t}),f0t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function d0t(t,e){return V(),H("svg",f0t,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4",d:"M4 40.836q7.34-8.96 13.036-10.168t10.846-.365V41L44 23.545L27.882 7v10.167Q18.359 17.242 11.69 24Q5.023 30.758 4 40.836Z","clip-rule":"evenodd"},null,-1)]))}const mTe=vt({name:"icon-park-outline-next",render:d0t}),h0t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function p0t(t,e){return V(),H("svg",h0t,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4",d:"M44 40.836q-7.34-8.96-13.036-10.168t-10.846-.365V41L4 23.545L20.118 7v10.167q9.523.075 16.192 6.833q6.668 6.758 7.69 16.836Z","clip-rule":"evenodd"},null,-1)]))}const yTe=vt({name:"icon-park-outline-back",render:p0t}),v0t={class:"shape-item-thumbnail"},g0t={class:"shape-content"},m0t={overflow:"visible",width:"18",height:"18"},y0t=["transform"],A0t=["fill","stroke","d"],R0t=tt({__name:"ShapeItemThumbnail",props:{shape:{}},setup(t){return(e,n)=>(V(),H("div",v0t,[I("div",g0t,[(V(),H("svg",m0t,[I("g",{transform:`scale(${18/e.shape.viewBox[0]}, ${18/e.shape.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[I("path",{class:mt(["shape-path",{outlined:e.shape.outlined}]),"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:e.shape.outlined?"#999":"transparent",stroke:e.shape.outlined?"transparent":"#999","stroke-width":"2",d:e.shape.path},null,10,A0t)],8,y0t)]))])]))}}),ATe=lt(R0t,[["__scopeId","data-v-d79f730f"]]),b0t={class:"shape-pool"},x0t={class:"category-name"},S0t={class:"shape-list"},M0t=tt({__name:"ShapePool",emits:["select"],setup(t,{emit:e}){const n=e,r=a=>{n("select",a)};return(a,i)=>(V(),H("div",b0t,[(V(!0),H(qe,null,bt(te(Tj),o=>(V(),H("div",{class:"category",key:o.type},[I("div",x0t,Vt(o.type),1),I("div",S0t,[(V(!0),H(qe,null,bt(o.children,(s,l)=>(V(),Ue(ATe,{class:"shape-item",key:l,shape:s,onClick:c=>r(s)},null,8,["shape","onClick"]))),128))])]))),128))]))}}),_0t=lt(M0t,[["__scopeId","data-v-bfed4bc8"]]),w0t=[{type:"直线",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"]}]},{type:"折线、曲线",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0},{path:"M 0 0 L 10 0 L 10 20 L 20 20",style:"solid",points:["","arrow"],isBroken2:!0},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0},{path:"M 0 0 C 20 0 0 20 20 20",style:"solid",points:["","arrow"],isCubic:!0}]}],L0t={class:"line-pool"},T0t={class:"category-name"},O0t={class:"line-list"},P0t=["onClick"],C0t={overflow:"visible",width:"20",height:"20"},N0t=["d","stroke-dasharray","marker-start","marker-end"],I0t=tt({__name:"LinePool",emits:["select"],setup(t,{emit:e}){const n=e,r=a=>{n("select",a)};return(a,i)=>(V(),H("div",L0t,[(V(!0),H(qe,null,bt(te(w0t),(o,s)=>(V(),H("div",{class:"category",key:o.type},[I("div",T0t,Vt(o.type),1),I("div",O0t,[(V(!0),H(qe,null,bt(o.children,(l,c)=>(V(),H("div",{class:"line-item",key:c},[I("div",{class:"line-content",onClick:u=>r(l)},[(V(),H("svg",C0t,[I("defs",null,[l.points[0]?(V(),Ue(Ch,{key:0,class:"line-marker",id:`preset-line-${s}-${c}`,position:"start",type:l.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):at("",!0),l.points[1]?(V(),Ue(Ch,{key:1,class:"line-marker",id:`preset-line-${s}-${c}`,position:"end",type:l.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):at("",!0)]),I("path",{class:"line-path",d:l.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":l.style==="solid"?"0, 0":"4, 1","marker-start":l.points[0]?`url(#${`preset-line-${s}-${c}`}-${l.points[0]}-start)`:"","marker-end":l.points[1]?`url(#${`preset-line-${s}-${c}`}-${l.points[1]}-end)`:""},null,8,N0t)]))],8,P0t)]))),128))])]))),128))]))}}),k0t=lt(I0t,[["__scopeId","data-v-2fdfc0a5"]]),E0t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function F0t(t,e){return V(),H("svg",E0t,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"m24 3l21.874 15.893L38 45H10L2.125 18.893z"}),I("path",{"stroke-linecap":"round",d:"m38 45l-7-8m-21 8l7-8M2 19l10 3m34-3l-10 3M24 3v10"}),I("path",{d:"m24 13l6.007 4.57L36 22l-5 15H17l-5-15l5.993-4.43zM7.594 14.92l-5.469 3.973l1.97 6.526m3.936 13.054L10 45h7m14 0h7l1.968-6.527m.437-23.553l5.469 3.973l-1.969 6.526M29.468 6.973L24 3l-5.47 3.973"})],-1)]))}const X0t=vt({name:"icon-park-outline-radar-chart",render:F0t}),D0t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function V0t(t,e){return V(),H("svg",D0t,e[0]||(e[0]=[I("g",{fill:"none"},[I("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M6 6v36h36"}),I("path",{fill:"currentColor","fill-rule":"evenodd",d:"M20 24a4 4 0 1 0 0-8a4 4 0 0 0 0 8m17-8a5 5 0 1 0 0-10a5 5 0 0 0 0 10M15 36a3 3 0 1 0 0-6a3 3 0 0 0 0 6m18-4a3 3 0 1 0 0-6a3 3 0 0 0 0 6","clip-rule":"evenodd"})],-1)]))}const U0t=vt({name:"icon-park-outline-chart-scatter",render:V0t}),W0t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Y0t(t,e){return V(),H("svg",W0t,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{"stroke-linecap":"round",d:"M43.776 20.994c-1.303-8.638-8.13-15.466-16.768-16.77m-6.032.003C11.366 5.685 4 13.982 4 24c0 10.02 7.37 18.32 16.986 19.774a20.2 20.2 0 0 0 6.018.002C35.646 42.474 42.476 35.643 43.776 27"}),I("path",{d:"M24 16a8 8 0 1 0 0 16a8 8 0 0 0 0-16Z"})],-1)]))}const B0t=vt({name:"icon-park-outline-chart-ring",render:Y0t}),Z0t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Q0t(t,e){return V(),H("svg",Z0t,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{"stroke-linecap":"round",d:"M6 6v36h36"}),I("path",{d:"m14 34l8-16l10 9L42 6v28z"})],-1)]))}const K0t=vt({name:"icon-park-outline-chart-line-area",render:Q0t}),H0t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function G0t(t,e){return V(),H("svg",H0t,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M6 6v36h36m-24-8h-4m12-8H14m28-8H14m20-8H14"},null,-1)]))}const $0t=vt({name:"icon-park-outline-chart-histogram-one",render:G0t}),z0t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function J0t(t,e){return V(),H("svg",z0t,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M44 24c0 11.046-8.954 20-20 20S4 35.046 4 24S12.954 4 24 4v20z"}),I("path",{d:"M43.084 18H30V4.916A20.05 20.05 0 0 1 43.084 18"})],-1)]))}const j0t=vt({name:"icon-park-outline-chart-pie",render:J0t}),q0t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function evt(t,e){return V(),H("svg",q0t,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M6 6v36h36M14 30v4m8-12v12m8-28v28m8-20v20"},null,-1)]))}const tvt=vt({name:"icon-park-outline-chart-histogram",render:evt}),nvt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function rvt(t,e){return V(),H("svg",nvt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M6 6v36h36"}),I("path",{d:"m14 34l8-16l10 9L42 6"})],-1)]))}const avt=vt({name:"icon-park-outline-chart-line",render:rvt}),ivt={class:"chart-pool"},ovt=["onClick"],svt={class:"name"},lvt=tt({__name:"ChartPool",emits:["select"],setup(t,{emit:e}){const n=e,r=["bar","column","line","area","scatter","pie","ring","radar"],a=i=>{n("select",i)};return(i,o)=>{const s=avt,l=tvt,c=j0t,u=$0t,f=K0t,d=B0t,h=U0t,p=X0t;return V(),H("ul",ivt,[(V(),H(qe,null,bt(r,(v,g)=>I("li",{class:"chart-item",key:g},[I("div",{class:"chart-content",onClick:y=>a(v)},[v==="line"?(V(),Ue(s,{key:0,style:{"font-size":"24px"}})):v==="bar"?(V(),Ue(l,{key:1,style:{"font-size":"24px"}})):v==="pie"?(V(),Ue(c,{key:2,style:{"font-size":"24px"}})):v==="column"?(V(),Ue(u,{key:3,style:{"font-size":"24px"}})):v==="area"?(V(),Ue(f,{key:4,style:{"font-size":"24px"}})):v==="ring"?(V(),Ue(d,{key:5,style:{"font-size":"24px"}})):v==="scatter"?(V(),Ue(h,{key:6,style:{"font-size":"24px"}})):v==="radar"?(V(),Ue(p,{key:7,style:{"font-size":"23px"}})):at("",!0),I("div",svt,Vt(te(kG)[v]),1)],8,ovt)])),64))])}}}),cvt=lt(lvt,[["__scopeId","data-v-e94851e6"]]),uvt={class:"prefix"},fvt={class:"input-wrap"},dvt=["disabled","placeholder"],hvt={class:"handlers"},pvt={class:"suffix"},vvt=tt({__name:"NumberInput",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},min:{default:0},max:{default:1/0},step:{default:1}},emits:["update:value","input","change","blur","focus","enter"],setup(t,{emit:e}){const n=t,r=e,a=we(0),i=we(!1);qt(()=>n.value,()=>{n.value!==a.value&&(a.value=n.value)},{immediate:!0}),qt(a,()=>{const u=+a.value;if(!isNaN(u)){{if(u>n.max)return;if(u<n.min)return}a.value=u,r("update:value",a.value)}});const o=()=>{let u=+a.value;isNaN(u)?u=n.min:u>n.max?u=n.max:u<n.min&&(u=n.min),a.value=u,r("update:value",a.value)},s=u=>{o(),r("enter",u)},l=u=>{o(),i.value=!1,r("blur",u)},c=u=>{i.value=!0,r("focus",u)};return(u,f)=>(V(),H("div",{class:mt(["number-input",{disabled:u.disabled,focused:i.value}])},[I("span",uvt,[Hr(u.$slots,"prefix",{},void 0,!0)]),I("div",fvt,[yt(I("input",{type:"text",disabled:u.disabled,"onUpdate:modelValue":f[0]||(f[0]=d=>a.value=d),placeholder:u.placeholder,onInput:f[1]||(f[1]=d=>r("input",d)),onFocus:f[2]||(f[2]=d=>c(d)),onBlur:f[3]||(f[3]=d=>l(d)),onChange:f[4]||(f[4]=d=>r("change",d)),onKeydown:f[5]||(f[5]=Xf(d=>s(d),["enter"]))},null,40,dvt),[[Rw,a.value]]),I("div",hvt,[I("span",{class:"handler",onClick:f[6]||(f[6]=d=>a.value+=u.step)},f[8]||(f[8]=[I("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[I("path",{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"})],-1)])),I("span",{class:"handler",onClick:f[7]||(f[7]=d=>a.value-=u.step)},f[9]||(f[9]=[I("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[I("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"})],-1)]))])]),I("span",pvt,[Hr(u.$slots,"suffix",{},void 0,!0)])],2))}}),vl=lt(vvt,[["__scopeId","data-v-310f5bf7"]]),gvt={class:"table-generator"},mvt={class:"title"},yvt={class:"lef"},Avt=["onMouseenter"],Rvt={key:1,class:"custom"},bvt={class:"row"},xvt={class:"row"},Svt={class:"btns"},Mvt=tt({__name:"TableGenerator",emits:["insert","close"],setup(t,{emit:e}){const n=e,r=we([]),a=we(3),i=we(3),o=we(!1),s=()=>{if(!r.value.length)return;const[u,f]=r.value;n("insert",{row:u,col:f})},l=()=>{if(a.value<1||a.value>20||i.value<1||i.value>20)return Dn.warning("行数/列数必须在0~20之间!");n("insert",{row:a.value,col:i.value}),o.value=!1},c=()=>{n("close"),o.value=!1};return(u,f)=>(V(),H("div",gvt,[I("div",mvt,[I("div",yvt,"表格 "+Vt(r.value.length?`${r.value[0]} x ${r.value[1]}`:""),1),I("div",{class:"right",onClick:f[0]||(f[0]=d=>o.value=!o.value)},Vt(o.value?"返回":"自定义"),1)]),o.value?(V(),H("div",Rvt,[I("div",bvt,[f[7]||(f[7]=I("div",{class:"label",style:{width:"25%"}},"行数:",-1)),U(vl,{min:1,max:20,value:a.value,"onUpdate:value":f[3]||(f[3]=d=>a.value=d),style:{width:"75%"}},null,8,["value"])]),I("div",xvt,[f[8]||(f[8]=I("div",{class:"label",style:{width:"25%"}},"列数:",-1)),U(vl,{min:1,max:20,value:i.value,"onUpdate:value":f[4]||(f[4]=d=>i.value=d),style:{width:"75%"}},null,8,["value"])]),I("div",Svt,[U(Mt,{class:"btn",onClick:f[5]||(f[5]=d=>c())},{default:pe(()=>f[9]||(f[9]=[rt("取消")])),_:1,__:[9]}),U(Mt,{class:"btn",type:"primary",onClick:f[6]||(f[6]=d=>l())},{default:pe(()=>f[10]||(f[10]=[rt("确认")])),_:1,__:[10]})])])):(V(),H("table",{key:0,onMouseleave:f[1]||(f[1]=d=>r.value=[]),onClick:f[2]||(f[2]=d=>s())},[I("tbody",null,[(V(),H(qe,null,bt(10,d=>I("tr",{key:d},[(V(),H(qe,null,bt(10,h=>I("td",{onMouseenter:p=>r.value=[d,h],key:h},[I("div",{class:mt(["cell",{active:r.value.length&&d<=r.value[0]&&h<=r.value[1]}])},null,2)],40,Avt)),64))])),64))])],32))]))}}),_vt=lt(Mvt,[["__scopeId","data-v-f869c45f"]]),wvt={class:"media-input"},Lvt={class:"btns"},Tvt={class:"group"},Ovt={class:"btns"},Pvt={class:"group"},Cvt=tt({__name:"MediaInput",emits:["insertVideo","insertAudio","close"],setup(t,{emit:e}){const n=e,r=we("video"),a=we("https://videos.pexels.com/video-files/29261597/12623866_640_360_24fps.mp4"),i=we("https://freesound.org/data/previews/614/614107_11861866-lq.mp3"),o=[{key:"video",label:"视频"},{key:"audio",label:"音频"}],s=()=>{if(!a.value)return Dn.error("请先输入正确的视频地址");n("insertVideo",{src:a.value})},l=()=>{if(!i.value)return Dn.error("请先输入正确的音频地址");n("insertAudio",{src:i.value})},c=f=>{const d=f[0];if(!d)return;const h=$F[d.type]||"";n("insertVideo",{src:URL.createObjectURL(d),ext:h})},u=f=>{const d=f[0];if(!d)return;const h=$F[d.type]||"";n("insertAudio",{src:URL.createObjectURL(d),ext:h})};return(f,d)=>{const h=hTe;return V(),H("div",wvt,[U(Wf,{tabs:o,value:r.value,"onUpdate:value":d[0]||(d[0]=p=>r.value=p),tabsStyle:{marginBottom:"15px"}},null,8,["value"]),r.value==="video"?(V(),H(qe,{key:0},[U(A0,{value:a.value,"onUpdate:value":d[1]||(d[1]=p=>a.value=p),placeholder:"请输入视频地址,e.g. https://xxx.mp4"},null,8,["value"]),I("div",Lvt,[U(Df,{accept:"video/*",onChange:d[2]||(d[2]=p=>c(p))},{default:pe(()=>[U(Mt,null,{default:pe(()=>[U(h),d[9]||(d[9]=rt(" 上传本地视频"))]),_:1,__:[9]})]),_:1}),I("div",Tvt,[U(Mt,{onClick:d[3]||(d[3]=p=>n("close")),style:{"margin-right":"10px"}},{default:pe(()=>d[10]||(d[10]=[rt("取消")])),_:1,__:[10]}),U(Mt,{type:"primary",onClick:d[4]||(d[4]=p=>s())},{default:pe(()=>d[11]||(d[11]=[rt("确认")])),_:1,__:[11]})])])],64)):at("",!0),r.value==="audio"?(V(),H(qe,{key:1},[U(A0,{value:i.value,"onUpdate:value":d[5]||(d[5]=p=>i.value=p),placeholder:"请输入音频地址,e.g. https://xxx.mp3"},null,8,["value"]),I("div",Ovt,[U(Df,{accept:"audio/*",onChange:d[6]||(d[6]=p=>u(p))},{default:pe(()=>[U(Mt,null,{default:pe(()=>[U(h),d[12]||(d[12]=rt(" 上传本地音频"))]),_:1,__:[12]})]),_:1}),I("div",Pvt,[U(Mt,{onClick:d[7]||(d[7]=p=>n("close")),style:{"margin-right":"10px"}},{default:pe(()=>d[13]||(d[13]=[rt("取消")])),_:1,__:[13]}),U(Mt,{type:"primary",onClick:d[8]||(d[8]=p=>l())},{default:pe(()=>d[14]||(d[14]=[rt("确认")])),_:1,__:[14]})])])],64)):at("",!0)])}}}),Nvt=lt(Cvt,[["__scopeId","data-v-c9811bc3"]]);var dE=82;function xx(t){return fJ[t]==null&&Ivt(t),fJ[t]}function Ivt(t){var e=kvt[t];if(e!=null){for(var n=e.substring(3,5),r=1*n.charCodeAt(0)-dE,a=1*n.charCodeAt(1)-dE,i=e.substring(5),o=[[]],s=1/0,l=-1/0,c=1/0,u=-1/0,f=0;f<i.length;){var d=i.substring(f,f+2);if(d==" R")o.push([]);else{var h=d.charCodeAt(0)-dE-r,p=d.charCodeAt(1)-dE;s=Math.min(p,s),l=Math.max(p,l),c=Math.min(h,c),u=Math.max(h,u),o[o.length-1].push([h,p])}f+=2}fJ[t]={w:a-r,xmin:c,xmax:u,ymin:s,ymax:l,polylines:o}}}var fJ={},kvt={1:" 9MWRMNV RRMVV RPSTS",2:" 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV",3:" 11MXVNTMRMPNOPOSPURVTVVU",4:" 12MWOMOV ROMRMTNUPUSTURVOV",5:" 12MWOMOV ROMUM ROQSQ ROVUV",6:" 9MVOMOV ROMUM ROQSQ",7:" 15MXVNTMRMPNOPOSPURVTVVUVR RSRVR",8:" 9MWOMOV RUMUV ROQUQ",9:" 3PTRMRV",10:" 7NUSMSTRVPVOTOS",11:" 9MWOMOV RUMOS RQQUV",12:" 6MVOMOV ROVUV",13:" 12LXNMNV RNMRV RVMRV RVMVV",14:" 9MWOMOV ROMUV RUMUV",15:" 14MXRMPNOPOSPURVSVUUVSVPUNSMRM",16:" 10MWOMOV ROMSMUNUQSROR",17:" 17MXRMPNOPOSPURVSVUUVSVPUNSMRM RSTVW",18:" 13MWOMOV ROMSMUNUQSROR RRRUV",19:" 13MWUNSMQMONOOPPTRUSUUSVQVOU",20:" 6MWRMRV RNMVM",21:" 9MXOMOSPURVSVUUVSVM",22:" 6MWNMRV RVMRV",23:" 12LXNMPV RRMPV RRMTV RVMTV",24:" 6MWOMUV RUMOV",25:" 7MWNMRQRV RVMRQ",26:" 9MWUMOV ROMUM ROVUV",27:" 9MWRMNV RRMVV RPSTS",28:" 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV",29:" 6MVOMOV ROMUM",30:" 9MWRMNV RRMVV RNVVV",31:" 12MWOMOV ROMUM ROQSQ ROVUV",32:" 9MWUMOV ROMUM ROVUV",33:" 9MWOMOV RUMUV ROQUQ",34:" 20MXRMPNOPOSPURVSVUUVSVPUNSMRM RQQTR RTQQR",35:" 3PTRMRV",36:" 9MWOMOV RUMOS RQQUV",37:" 6MWRMNV RRMVV",38:" 12LXNMNV RNMRV RVMRV RVMVV",39:" 9MWOMOV ROMUV RUMUV",40:" 12MWOMUM RPQTR RTQPR ROVUV",41:" 14MXRMPNOPOSPURVSVUUVSVPUNSMRM",42:" 9MWOMOV RUMUV ROMUM",43:" 10MWOMOV ROMSMUNUQSROR",44:" 10MWOMRQOV ROMUM ROVUV",45:" 6MWRMRV RNMVM",46:" 15MWNONNOMPMQNRPRV RVOVNUMTMSNRP",47:" 13LXRMRV RPONPNSPTTTVSVPTOPO",48:" 6MWOMUV RUMOV",49:" 12LXRMRV RNOOPOSQTSTUSUPVO",50:" 13MXOVQVOROPPNRMSMUNVPVRTVVV",200:" 12MWRMPNOPOSPURVTUUSUPTNRM",201:" 4MWPORMRV",202:" 9MWONQMSMUNUPTROVUV",203:" 15MWONQMSMUNUPSQ RRQSQURUUSVQVOU",204:" 7MWSMSV RSMNSVS",205:" 14MWPMOQQPRPTQUSTURVQVOU RPMTM",206:" 14MWTMRMPNOPOSPURVTUUSTQRPPQOS",207:" 6MWUMQV ROMUM",208:" 19MWQMONOPQQSQUPUNSMQM RQQOROUQVSVUUURSQ",209:" 14MWUPTRRSPROPPNRMTNUPUSTURVPV",210:" 6PURURVSVSURU",211:" 7PUSVRVRUSUSWRY",212:" 12PURPRQSQSPRP RRURVSVSURU",213:" 13PURPRQSQSPRP RSVRVRUSUSWRY",214:" 12PURMRR RSMSR RRURVSVSURU",215:" 17NWPNRMSMUNUPRQRRSRSQUP RRURVSVSURU",216:" 3PTRMRQ",217:" 6NVPMPQ RTMTQ",218:" 10NVQMPNPPQQSQTPTNSMQM",219:" 16MWUNSMQMONOPQQTRUSUUSVQVOU RRLRW",220:" 3MWVLNW",221:" 7OVTLRNQPQSRUTW",222:" 7NUPLRNSPSSRUPW",223:" 3PTRLRW",224:" 3LXNRVR",225:" 6LXRNRV RNRVR",226:" 6LXNPVP RNTVT",227:" 6MWOOUU RUOOU",228:" 9MWRORU ROPUT RUPOT",229:" 6PURQRRSRSQRQ",230:" 7PUSMRORQSQSPRP",231:" 7PUSNRNRMSMSORQ",232:" 7LXSOVRSU RNRVR",233:" 12MXRLPW RULSW ROPVP ROSVS",234:" 21LXVRURTSSURVOVNUNSORRQSPSNRMPMONOPQSSUUVVV",235:" 20LXNNOQOSNV RVNUQUSVV RNNQOSOVN RNVQUSUVV",501:" 9I[RFJ[ RRFZ[ RMTWT",502:" 24G\\KFK[ RKFTFWGXHYJYLXNWOTP RKPTPWQXRYTYWXYWZT[K[",503:" 19H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZV",504:" 16G\\KFK[ RKFRFUGWIXKYNYSXVWXUZR[K[",505:" 12H[LFL[ RLFYF RLPTP RL[Y[",506:" 9HZLFL[ RLFYF RLPTP",507:" 23H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZVZS RUSZS",508:" 9G]KFK[ RYFY[ RKPYP",509:" 3NVRFR[",510:" 11JZVFVVUYTZR[P[NZMYLVLT",511:" 9G\\KFK[ RYFKT RPOY[",512:" 6HYLFL[ RL[X[",513:" 12F^JFJ[ RJFR[ RZFR[ RZFZ[",514:" 9G]KFK[ RKFY[ RYFY[",515:" 22G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF",516:" 14G\\KFK[ RKFTFWGXHYJYMXOWPTQKQ",517:" 25G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF RSWY]",518:" 17G\\KFK[ RKFTFWGXHYJYLXNWOTPKP RRPY[",519:" 21H\\YIWGTFPFMGKIKKLMMNOOUQWRXSYUYXWZT[P[MZKX",520:" 6JZRFR[ RKFYF",521:" 11G]KFKULXNZQ[S[VZXXYUYF",522:" 6I[JFR[ RZFR[",523:" 12F^HFM[ RRFM[ RRFW[ R\\FW[",524:" 6H\\KFY[ RYFK[",525:" 7I[JFRPR[ RZFRP",526:" 9H\\YFK[ RKFYF RK[Y[",527:" 9I[RFJ[ RRFZ[ RMTWT",528:" 24G\\KFK[ RKFTFWGXHYJYLXNWOTP RKPTPWQXRYTYWXYWZT[K[",529:" 6HYLFL[ RLFXF",530:" 9I[RFJ[ RRFZ[ RJ[Z[",531:" 12H[LFL[ RLFYF RLPTP RL[Y[",532:" 9H\\YFK[ RKFYF RK[Y[",533:" 9G]KFK[ RYFY[ RKPYP",534:" 25G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF ROPUP",535:" 3NVRFR[",536:" 9G\\KFK[ RYFKT RPOY[",537:" 6I[RFJ[ RRFZ[",538:" 12F^JFJ[ RJFR[ RZFR[ RZFZ[",539:" 9G]KFK[ RKFY[ RYFY[",540:" 9I[KFYF ROPUP RK[Y[",541:" 22G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF",542:" 9G]KFK[ RYFY[ RKFYF",543:" 14G\\KFK[ RKFTFWGXHYJYMXOWPTQKQ",544:" 10I[KFRPK[ RKFYF RK[Y[",545:" 6JZRFR[ RKFYF",546:" 19I[KKKILGMFOFPGQIRMR[ RYKYIXGWFUFTGSIRM",547:" 21H\\RFR[ RPKMLLMKOKRLTMUPVTVWUXTYRYOXMWLTKPK",548:" 6H\\KFY[ RK[YF",549:" 18G]RFR[ RILJLKMLQMSNTQUSUVTWSXQYMZL[L",550:" 17H\\K[O[LTKPKLLINGQFSFVGXIYLYPXTU[Y[",551:" 20G[G[IZLWOSSLVFV[UXSUQSNQLQKRKTLVNXQZT[Y[",552:" 41F]SHTITLSPRSQUOXMZK[J[IZIWJRKOLMNJPHRGUFXFZG[I[KZMYNWOTP RSPTPWQXRYTYWXYWZU[R[PZOX",553:" 24H\\TLTMUNWNYMZKZIYGWFTFQGOIMLLNKRKVLYMZO[Q[TZVXWV",554:" 35G^TFRGQIPMOSNVMXKZI[G[FZFXGWIWKXMZP[S[VZXXZT[O[KZHYGWFTFRHRJSMUPWRZT\\U",555:" 28H\\VJVKWLYLZKZIYGVFRFOGNINLONPOSPPPMQLRKTKWLYMZP[S[VZXXYV",556:" 28H\\RLPLNKMINGQFTFXG[G]F RXGVNTTRXPZN[L[JZIXIVJULUNV RQPZP",557:" 29G^G[IZMVPQQNRJRGQFPFOGNINLONQOUOXNYMZKZQYVXXVZS[O[LZJXIVIT",558:" 38F^MMKLJJJIKGMFNFPGQIQKPONULYJ[H[GZGX RMRVOXN[L]J^H^G]F\\FZHXLVRUWUZV[W[YZZY\\V",559:" 25IZWVUTSQROQLQIRGSFUFVGWIWLVQTVSXQZO[M[KZJXJVKUMUOV",560:" 25JYT^R[PVOPOJPGRFTFUGVJVMURR[PaOdNfLgKfKdLaN^P\\SZWX",561:" 39F^MMKLJJJIKGMFNFPGQIQKPONULYJ[H[GZGX R^I^G]F\\FZGXIVLTNROPO RROSQSXTZU[V[XZYY[V",562:" 29I\\MRORSQVOXMYKYHXFVFUGTISNRSQVPXNZL[J[IZIXJWLWNXQZT[V[YZ[X",563:" 45@aEMCLBJBICGEFFFHGIIIKHPGTE[ RGTJLLHMGOFPFRGSISKRPQTO[ RQTTLVHWGYFZF\\G]I]K\\PZWZZ[[\\[^Z_YaV",564:" 32E]JMHLGJGIHGJFKFMGNINKMPLTJ[ RLTOLQHRGTFVFXGYIYKXPVWVZW[X[ZZ[Y]V",565:" 29H]TFQGOIMLLNKRKVLYMZO[Q[TZVXXUYSZOZKYHXGVFTFRHRKSNUQWSZU\\V",566:" 31F_SHTITLSPRSQUOXMZK[J[IZIWJRKOLMNJPHRGUFZF\\G]H^J^M]O\\PZQWQUPTO",567:" 32H^ULTNSOQPOPNNNLOIQGTFWFYGZIZMYPWSSWPYNZK[I[HZHXIWKWMXPZS[V[YZ[X",568:" 38F_SHTITLSPRSQUOXMZK[J[IZIWJRKOLMNJPHRGUFYF[G\\H]J]M\\O[PYQVQSPTQUSUXVZX[ZZ[Y]V",569:" 28H\\H[JZLXOTQQSMTJTGSFRFQGPIPKQMSOVQXSYUYWXYWZT[P[MZKXJVJT",570:" 25H[RLPLNKMINGQFTFXG[G]F RXGVNTTRXPZN[L[JZIXIVJULUNV",571:" 33E]JMHLGJGIHGJFKFMGNINKMOLRKVKXLZN[P[RZSYUUXMZF RXMWQVWVZW[X[ZZ[Y]V",572:" 32F]KMILHJHIIGKFLFNGOIOKNOMRLVLYM[O[QZTWVTXPYMZIZGYFXFWGVIVKWNYP[Q",573:" 25C_HMFLEJEIFGHFIFKGLILLK[ RUFK[ RUFS[ RaF_G\\JYNVTS[",574:" 36F^NLLLKKKILGNFPFRGSISLQUQXRZT[V[XZYXYVXUVU R]I]G\\FZFXGVITLPUNXLZJ[H[GZGX",575:" 38F]KMILHJHIIGKFLFNGOIOKNOMRLVLXMZN[P[RZTXVUWSYM R[FYMVWT]RbPfNgMfMdNaP^S[VY[V",576:" 40H]ULTNSOQPOPNNNLOIQGTFWFYGZIZMYPWTTWPZN[K[JZJXKWNWPXQYR[R^QaPcNfLgKfKdLaN^Q[TYZV",583:" 9I[JFR[ RZFR[ RJFZF",601:" 18I\\XMX[ RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",602:" 18H[LFL[ RLPNNPMSMUNWPXSXUWXUZS[P[NZLX",603:" 15I[XPVNTMQMONMPLSLUMXOZQ[T[VZXX",604:" 18I\\XFX[ RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",605:" 18I[LSXSXQWOVNTMQMONMPLSLUMXOZQ[T[VZXX",606:" 9MYWFUFSGRJR[ ROMVM",607:" 23I\\XMX]W`VaTbQbOa RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",608:" 11I\\MFM[ RMQPNRMUMWNXQX[",609:" 9NVQFRGSFREQF RRMR[",610:" 12MWRFSGTFSERF RSMS^RaPbNb",611:" 9IZMFM[ RWMMW RQSX[",612:" 3NVRFR[",613:" 19CaGMG[ RGQJNLMOMQNRQR[ RRQUNWMZM\\N]Q][",614:" 11I\\MMM[ RMQPNRMUMWNXQX[",615:" 18I\\QMONMPLSLUMXOZQ[T[VZXXYUYSXPVNTMQM",616:" 18H[LMLb RLPNNPMSMUNWPXSXUWXUZS[P[NZLX",617:" 18I\\XMXb RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",618:" 9KXOMO[ ROSPPRNTMWM",619:" 18J[XPWNTMQMNNMPNRPSUTWUXWXXWZT[Q[NZMX",620:" 9MYRFRWSZU[W[ ROMVM",621:" 11I\\MMMWNZP[S[UZXW RXMX[",622:" 6JZLMR[ RXMR[",623:" 12G]JMN[ RRMN[ RRMV[ RZMV[",624:" 6J[MMX[ RXMM[",625:" 10JZLMR[ RXMR[P_NaLbKb",626:" 9J[XMM[ RMMXM RM[X[",627:" 24H]QMONMPLRKUKXLZN[P[RZUWWTYPZM RQMSMTNUPWXXZY[Z[",628:" 31I\\UFSGQIOMNPMTLZKb RUFWFYHYKXMWNUORO RROTPVRWTWWVYUZS[Q[OZNYMV",629:" 17I\\JPLNNMOMQNROSRSVR[ RZMYPXRR[P_Ob",630:" 24I[TMQMONMPLSLVMYNZP[R[TZVXWUWRVOTMRKQIQGRFTFVGXI",631:" 19JZWOVNTMQMONOPPRSS RSSOTMVMXNZP[S[UZWX",632:" 23JYTFRGQHQIRJUKXK RXKTMQONRMUMWNYP[S]T_TaSbQbP`",633:" 19H\\IQJOLMNMONOPNTL[ RNTPPRNTMVMXOXRWWTb",634:" 27G\\HQIOKMMMNNNPMUMXNZO[Q[SZUWVUWRXMXJWGUFSFRHRJSMUPWRZT",635:" 9LWRMPTOXOZP[R[TYUW",636:" 19I[OMK[ RYNXMWMUNQROSNS RNSPTQUSZT[U[VZ",637:" 9JZKFMFOGPHX[ RRML[",638:" 21H]OMIb RNQMVMYO[Q[SZUXWT RYMWTVXVZW[Y[[Y\\W",639:" 14I[LMOMNSMXL[ RYMXPWRUURXOZL[",640:" 29JZTFRGQHQIRJUKXK RUKRLPMOOOQQSTTVT RTTPUNVMXMZO\\S^T_TaRbPb",641:" 18J[RMPNNPMSMVNYOZQ[S[UZWXXUXRWOVNTMRM",642:" 13G]PML[ RUMVSWXX[ RIPKNNM[M",643:" 19I[MSMVNYOZQ[S[UZWXXUXRWOVNTMRMPNNPMSIb",644:" 18I][MQMONMPLSLVMYNZP[R[TZVXWUWRVOUNSM",645:" 8H\\SMP[ RJPLNOMZM",646:" 16H\\IQJOLMNMONOPMVMYO[Q[TZVXXTYPYM",647:" 21G]ONMOKQJTJWKYLZN[Q[TZWXYUZRZOXMVMTORSPXMb",648:" 14I[KMMMOOU`WbYb RZMYOWRM]K`Jb",649:" 20F]VFNb RGQHOJMLMMNMPLULXMZO[Q[TZVXXUZP[M",650:" 23F]NMLNJQITIWJZK[M[OZQW RRSQWRZS[U[WZYWZTZQYNXM",651:" 22L\\UUTSRRPRNSMTLVLXMZO[Q[SZTXVRUWUZV[W[YZZY\\V",652:" 23M[MVOSRNSLTITGSFQGPIOMNTNZO[P[RZTXUUURVVWWYW[V",653:" 14MXTTTSSRQROSNTMVMXNZP[S[VYXV",654:" 24L\\UUTSRRPRNSMTLVLXMZO[Q[SZTXZF RVRUWUZV[W[YZZY\\V",655:" 17NXOYQXRWSUSSRRQROSNUNXOZQ[S[UZVYXV",656:" 24OWOVSQUNVLWIWGVFTGSIQQNZKaJdJfKgMfNcOZP[R[TZUYWV",657:" 28L[UUTSRRPRNSMTLVLXMZO[Q[SZTY RVRTYPdOfMgLfLdMaP^S\\U[XY[V",658:" 29M\\MVOSRNSLTITGSFQGPIOMNSM[ RM[NXOVQSSRURVSVUUXUZV[W[YZZY\\V",659:" 16PWSMSNTNTMSM RPVRRPXPZQ[R[TZUYWV",660:" 20PWSMSNTNTMSM RPVRRLdKfIgHfHdIaL^O\\Q[TYWV",661:" 33M[MVOSRNSLTITGSFQGPIOMNSM[ RM[NXOVQSSRURVSVUTVQV RQVSWTZU[V[XZYY[V",662:" 18OWOVQSTNULVIVGUFSGRIQMPTPZQ[R[TZUYWV",663:" 33E^EVGSIRJSJTIXH[ RIXJVLSNRPRQSQTPXO[ RPXQVSSURWRXSXUWXWZX[Y[[Z\\Y^V",664:" 23J\\JVLSNROSOTNXM[ RNXOVQSSRURVSVUUXUZV[W[YZZY\\V",665:" 23LZRRPRNSMTLVLXMZO[Q[SZTYUWUUTSRRQSQURWTXWXYWZV",666:" 24KZKVMSNQMUGg RMUNSPRRRTSUUUWTYSZQ[ RMZO[R[UZWYZV",667:" 27L[UUTSRRPRNSMTLVLXMZO[Q[SZ RVRUUSZPaOdOfPgRfScS\\U[XY[V",668:" 15MZMVOSPQPSSSTTTVSYSZT[U[WZXYZV",669:" 16NYNVPSQQQSSVTXTZR[ RNZP[T[VZWYYV",670:" 16OXOVQSSO RVFPXPZQ[S[UZVYXV RPNWN",671:" 19L[LVNRLXLZM[O[QZSXUU RVRTXTZU[V[XZYY[V",672:" 17L[LVNRMWMZN[O[RZTXUUUR RURVVWWYW[V",673:" 25I^LRJTIWIYJ[L[NZPX RRRPXPZQ[S[UZWXXUXR RXRYVZW\\W^V",674:" 20JZJVLSNRPRQSQZR[U[XYZV RWSVRTRSSOZN[L[KZ",675:" 23L[LVNRLXLZM[O[QZSXUU RVRPdOfMgLfLdMaP^S\\U[XY[V",676:" 23LZLVNSPRRRTTTVSXQZN[P\\Q^QaPdOfMgLfLdMaP^S\\WYZV",677:" 22J\\K[NZQXSVUSWOXKXIWGUFSGRHQJPOPTQXRZT[V[XZYY",683:" 26I[WUWRVOUNSMQMONMPLSLVMYNZP[R[TZVXWUXPXKWHVGTFRFPGNI",684:" 16JZWNUMRMPNNPMSMVNYOZQ[T[VZ RMTUT",685:" 23J[TFRGPJOLNOMTMXNZO[Q[SZUWVUWRXMXIWGVFTF RNPWP",686:" 21H\\VFNb RQMNNLPKSKVLXNZQ[S[VZXXYUYRXPVNSMQM",687:" 16I[XOWNTMQMNNMOLQLSMUOWSZT\\T^S_Q_",700:" 18H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF",701:" 5H\\NJPISFS[",702:" 15H\\LKLJMHNGPFTFVGWHXJXLWNUQK[Y[",703:" 16H\\MFXFRNUNWOXPYSYUXXVZS[P[MZLYKW",704:" 7H\\UFKTZT RUFU[",705:" 18H\\WFMFLOMNPMSMVNXPYSYUXXVZS[P[MZLYKW",706:" 24H\\XIWGTFRFOGMJLOLTMXOZR[S[VZXXYUYTXQVOSNRNOOMQLT",707:" 6H\\YFO[ RKFYF",708:" 30H\\PFMGLILKMMONSOVPXRYTYWXYWZT[P[MZLYKWKTLRNPQOUNWMXKXIWGTFPF",709:" 24H\\XMWPURRSQSNRLPKMKLLINGQFRFUGWIXMXRWWUZR[P[MZLX",710:" 6MWRYQZR[SZRY",711:" 9MWSZR[QZRYSZS\\R^Q_",712:" 12MWRMQNROSNRM RRYQZR[SZRY",713:" 15MWRMQNROSNRM RSZR[QZRYSZS\\R^Q_",714:" 9MWRFRT RRYQZR[SZRY",715:" 21I[LKLJMHNGPFTFVGWHXJXLWNVORQRT RRYQZR[SZRY",716:" 3NVRFRM",717:" 6JZNFNM RVFVM",718:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",719:" 27H\\PBP_ RTBT_ RYIWGTFPFMGKIKKLMMNOOUQWRXSYUYXWZT[P[MZKX",720:" 3G][BIb",721:" 11KYVBTDRGPKOPOTPYR]T`Vb",722:" 11KYNBPDRGTKUPUTTYR]P`Nb",723:" 3NVRBRb",724:" 3E_IR[R",725:" 6E_RIR[ RIR[R",726:" 6E_IO[O RIU[U",727:" 6G]KKYY RYKKY",728:" 9JZRLRX RMOWU RWOMU",729:" 6MWRQQRRSSRRQ",730:" 8MWSFRGQIQKRLSKRJ",731:" 8MWRHQGRFSGSIRKQL",732:" 9E_UMXP[RXTUW RIR[R",733:" 12H]SBLb RYBRb RLOZO RKUYU",734:" 35E_\\O\\N[MZMYNXPVUTXRZP[L[JZIYHWHUISJRQNRMSKSIRGPFNGMIMKNNPQUXWZY[[[\\Z\\Y",735:" 28G]IIJKKOKUJYI[ R[IZKYOYUZY[[ RIIKJOKUKYJ[I RI[KZOYUYYZ[[",737:" 6KYOBO[ RUBU[",738:" 6F^RBR[ RI[[[",739:" 4F^[BI[[[",740:" 18E_RIQJRKSJRI RIYHZI[JZIY R[YZZ[[\\Z[Y",741:" 33F^RHNLKPJSJUKWMXOXQWRU RRHVLYPZSZUYWWXUXSWRU RRUQYP\\ RRUSYT\\ RP\\T\\",742:" 26F^RNQKPINHMHKIJKJOKRLTNWR\\ RRNSKTIVHWHYIZKZOYRXTVWR\\",743:" 20F^RGPJLOIR RRGTJXO[R RIRLUPZR] R[RXUTZR]",744:" 48F^RTTWVXXXZW[U[SZQXPVPSQ RSQUOVMVKUISHQHOINKNMOOQQ RQQNPLPJQISIUJWLXNXPWRT RRTQYP\\ RRTSYT\\ RP\\T\\",745:" 55F^RRR[Q\\ RRVQ\\ RRIQHOHNINKONRR RRISHUHVIVKUNRR RRRNOLNJNIOIQJR RRRVOXNZN[O[QZR RRRNULVJVIUISJR RRRVUXVZV[U[SZR",746:" 55F^ISJSLTMVMXLZ RISIRJQLQMRNTNWMYLZ RRGPIOLOOQUQXPZR\\ RRGTIULUOSUSXTZR\\ R[S[RZQXQWRVTVWWYXZ R[SZSXTWVWXXZ RKVYV",750:" 18PSSRRSQSPRPQQPRPSQSSRUQV RQQQRRRRQQQ",751:" 16PTQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",752:" 9NVPOTU RTOPU RNRVR",753:" 28MWRKQMOPMR RRKSMUPWR RRMOQ RRMUQ RROPQ RROTQ RQQSQ RMRWR",754:" 26MWMRMQNOONQMSMUNVOWQWR RPNTN ROOUO RNPVP RNQVQ RMRWR",755:" 14LRLFLRRRLF RLIPQ RLLOR RLOMQ",756:" 10MWRKQMOPMR RRKSMUPWR",757:" 11MWWRWQVOUNSMQMONNOMQMR",758:" 13G]]R]P\\MZJWHTGPGMHJJHMGPGR",759:" 11MWMRMSNUOVQWSWUVVUWSWR",760:" 7LXLPNRQSSSVRXP",761:" 6RURUTTURTPRO",762:" 7RVRRUPVNVLUKTK",763:" 7NRRROPNNNLOKPK",764:" 21MWWHVGTFQFOGNHMJMLNNOOUSVTWVWXVZU[S\\P\\N[MZ",765:" 21G]IWHVGTGQHOINKMMMONPOTUUVWWYW[V\\U]S]P\\N[M",766:" 31G]RRTUUVWWYW[V\\U]S]Q\\O[NYMWMUNTOPUOVMWKWIVHUGSGQHOINKMMMONPORR",767:" 22H\\KFK[ RHF[FQP[Z RZV[Y\\[ RZVZY RWYZY RWYZZ\\[",768:" 30KYUARBPCNELHKLKRLUNWQXSXVWXUYR RKPLMNKQJSJVKXMYPYVXZV]T_R`Oa",796:" 3>f>RfR",797:" 3D`D``D",798:" 3RRR>Rf",799:" 3D`DD``",800:" 3D`DR`R",801:" 3F^FY^K",802:" 3KYK^YF",803:" 3RRRDR`",804:" 3KYKFY^",805:" 3F^FK^Y",806:" 3KYKRYR",807:" 3MWMWWM",808:" 3RRRKRY",809:" 3MWMMWW",810:" 8GRRGPGMHJJHMGPGR",811:" 8GRGRGTHWJZM\\P]R]",812:" 8R]R]T]W\\ZZ\\W]T]R",813:" 8R]]R]P\\MZJWHTGRG",814:" 9D`DOGQKSPTTTYS]Q`O",815:" 9PUUDSGQKPPPTQYS]U`",816:" 9OTODQGSKTPTTSYQ]O`",817:" 9D`DUGSKQPPTPYQ]S`U",818:" 5KYRJYNKVRZ",819:" 5JZJRNKVYZR",820:" 5KYKVKNYVYN",821:" 5JZLXJPZTXL",822:" 23JZJ]L]O\\Q[TXUVVSVOULTJSIQIPJOLNONSOVPXS[U\\X]Z]",823:" 23I]]Z]X\\U[SXPVOSNONLOJPIQISJTLUOVSVVUXT[Q\\O]L]J",824:" 23JZZGXGUHSIPLONNQNUOXPZQ[S[TZUXVUVQUNTLQIOHLGJG",825:" 23G[GJGLHOIQLTNUQVUVXUZT[S[QZPXOUNQNNOLPISHUGXGZ",826:" 21E[EPFRHTJUMVQVUUXSZP[NZLWLSMQNNPLSKVKYL\\M^",827:" 19EYETHVKWPWSVVTXQYNYLXKVKSLPNNQMTMYN\\P_",828:" 26OUQOOQOSQUSUUSUQSOQO RQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",829:" 11RWRMSMUNVOWQWSVUUVSWRW",830:" 9D`DRJR RORUR RZR`R",831:" 5D`DUDO`O`U",832:" 6JZRDJR RRDZR",833:" 9D`DR`R RJYZY RP`T`",834:" 9D`DR`R RDRRb R`RRb",840:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",841:" 6LXLLLXXXXLLL",842:" 5KYRJKVYVRJ",843:" 6LXRHLRR\\XRRH",844:" 12JZRIPOJOOSMYRUWYUSZOTORI",845:" 6KYRKRY RKRYR",846:" 6MWMMWW RWMMW",847:" 9MWRLRX RMOWU RWOMU",850:" 35NVQNOONQNSOUQVSVUUVSVQUOSNQN ROQOS RPPPT RQOQU RRORU RSOSU RTPTT RUQUS",851:" 27NVNNNVVVVNNN ROOOU RPOPU RQOQU RRORU RSOSU RTOTU RUOUU",852:" 17MWRLMUWURL RROOT RROUT RRRQT RRRST",853:" 17LULRUWUMLR RORTU RORTO RRRTS RRRTQ",854:" 17MWRXWOMORX RRUUP RRUOP RRRSP RRRQP",855:" 17OXXROMOWXR RURPO RURPU RRRPQ RRRPS",856:" 22LXRLNWXPLPVWRL RRRRL RRRLP RRRNW RRRVW RRRXP",857:" 11RYRKRY RRKYNRQ RSMVNSO",860:" 13MWRLRX ROOUO RMUOWQXSXUWWU",861:" 11LXRLRX RLQMOWOXQ RPWTW",862:" 14KYMNWX RWNMX ROLLOKQ RULXOYQ",863:" 18I[NII[ RVI[[ RMM[[ RWMI[ RNIVI RMMWM",864:" 21I[RGRV RMJWP RWJMP RIVL\\ R[VX\\ RIV[V RL\\X\\",865:" 11G[MJSV RKPSL RG\\[\\[RG\\",866:" 14LXPLPPLPLTPTPXTXTTXTXPTPTLPL",867:" 32KYYPXNVLSKQKNLLNKQKSLVNXQYSYVXXVYT RYPWNUMSMQNPOOQOSPUQVSWUWWVYT",868:" 10KYRJKVYVRJ RRZYNKNRZ",869:" 34G]PIPGQFSFTGTI RGZHXJVKTLPLKMJOIUIWJXKXPYTZV\\X]Z RGZ]Z RQZP[Q\\S\\T[SZ",870:" 64JZRMRS RRSQ\\ RRSS\\ RQ\\S\\ RRMQJPHNG RQJNG RRMSJTHVG RSJVG RRMNKLKJM RPLLLJM RRMVKXKZM RTLXLZM RRMPNOOOR RRMPOOR RRMTNUOUR RRMTOUR",871:" 94JZRIRK RRNRP RRSRU RRYQ\\ RRYS\\ RQ\\S\\ RRGQIPJ RRGSITJ RPJRITJ RRKPNNOMN RRKTNVOWN RNOPORNTOVO RRPPSNTLTKRKSLT RRPTSVTXTYRYSXT RNTPTRSTTVT RRUPXOYMZLZKYJWJYLZ RRUTXUYWZXZYYZWZYXZ RMZOZRYUZWZ",872:" 40JZRYQ\\ RRYS\\ RQ\\S\\ RRYUZXZZXZUYTWTYRZOYMWLUMVJUHSGQGOHNJOMMLKMJOKRMTKTJUJXLZOZRY",873:" 32JZRYQ\\ RRYS\\ RQ\\S\\ RRYVXVVXUXRZQZLYIXHVHTGPGNHLHKIJLJQLRLUNVNXRY",874:" 15I[IPKR RLKNP RRGRO RXKVP R[PYR",899:" 6QSRQQRRSSRRQ",900:" 10PTQPPQPSQTSTTSTQSPQP",901:" 14NVQNOONQNSOUQVSVUUVSVQUOSNQN",902:" 18MWQMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM",903:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",904:" 22G]PGMHJJHMGPGTHWJZM\\P]T]W\\ZZ\\W]T]P\\MZJWHTGPG",905:" 34AcPALBJCGEEGCJBLAPATBXCZE]G_JaLbPcTcXbZa]__]aZbXcTcPbLaJ_G]EZCXBTAPA",906:" 34<hP<K=G?DAAD?G=K<P<T=Y?]A`DcGeKgPhThYg]e`cc`e]gYhThPgKeGcD`A]?Y=T<P<",907:" 50){O)I*E+@-;073370;-@+E*I)O)U*[+_-d0i3m7q;t@wEyIzO{U{[z_ydwitmqqmtiwdy_z[{U{OzIyEw@t;q7m3i0d-_+[*U)O)",908:" 34>fRAPCMDJDGCEA>H@JAMAZB]D_G`M`PaRc RRATCWDZD]C_AfHdJcMcZb]`_]`W`TaRc",909:" 33AcRAPCMDJDGCEABGAKAPBTDXG\\L`Rc RRATCWDZD]C_AbGcKcPbT`X]\\X`Rc RBHbH",997:" 3MWMXWX",998:" 3JZJZZZ",999:" 3JZJ]Z]",1001:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1002:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1003:" 24KYVLWKWOVLTKQKOLNMMPMSNVOWQXTXVWWU RQKOMNPNSOVQX",1004:" 26JZNKNX ROKOX RLKSKVLWMXPXSWVVWSXLX RSKULVMWPWSVVUWSX",1005:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1006:" 20JXNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXQX",1007:" 36K[VLWKWOVLTKQKOLNMMPMSNVOWQXTXVW RQKOMNPNSOVQX RTXUWVU RVSVX RWSWX RTSYS",1008:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1009:" 12NWRKRX RSKSX RPKUK RPXUX",1010:" 19LXSKSURWQX RTKTUSWQXPXNWMUNTOUNV RQKVK",1011:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1012:" 14KXOKOX RPKPX RMKRK RMXWXWTVX",1013:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1014:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1015:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1016:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1017:" 47KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RPWPUQTSTTUUZV[W[XZ RTUUXVZW[",1018:" 37JZNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX RSRTSUWVXWXXW RSRUSVWWX",1019:" 32KZVMWKWOVMULSKQKOLNMNOOPQQTRVSWT RNNOOQPTQVRWSWVVWTXRXPWOVNTNXOV",1020:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1021:" 20J[NKNUOWQXTXVWWUWK ROKOUPWQX RLKQK RUKYK",1022:" 15KYMKRX RNKRU RWKRX RKKPK RTKYK",1023:" 24I[LKOX RMKOT RRKOX RRKUX RSKUT RXKUX RJKOK RVKZK",1024:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1025:" 20LYNKRRRX ROKSR RWKSRSX RLKQK RTKYK RPXUX",1026:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1027:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1028:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1029:" 14KXOKOX RPKPX RMKWKWOVK RMXRX",1030:" 15KYRKLX RRMWX RRKXX RMWVW RLXXX",1031:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1032:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1033:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1034:" 44KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RQOQT RTOTT RQQTQ RQRTR",1035:" 12NWRKRX RSKSX RPKUK RPXUX",1036:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1037:" 15KYRKMX RRNVX RRKWX RKXPX RTXYX",1038:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1039:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1040:" 36JZMJLM RXJWM RPPOS RUPTS RMVLY RXVWY RMKWK RMLWL RPQTQ RPRTR RMWWW RMXWX",1041:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1042:" 21J[NKNX ROKOX RVKVX RWKWX RLKYK RLXQX RTXYX",1043:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1044:" 20K[MKRQ RNKSQMX RMKWKXOVK RNWWW RMXWXXTVX",1045:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1046:" 33KZMONLOKPKQLRORX RXOWLVKUKTLSOSX RMONMOLPLQMRO RXOWMVLULTMSO RPXUX",1047:" 40KZRKRX RSKSX RQNNOMQMRNTQUTUWTXRXQWOTNQN RQNOONQNROTQU RTUVTWRWQVOTN RPKUK RPXUX",1048:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1049:" 33J[RKRX RSKSX RLPMONOOSQU RTUVSWOXOYP RMONROTQUTUVTWRXO RPKUK RPXUX",1050:" 35KZMVNXQXMRMONMOLQKTKVLWMXOXRTXWXXV ROUNRNOOMQK RTKVMWOWRVU RNWPW RUWWW",1051:" 18KYTKKX RSMTX RTKUX RNTTT RIXNX RRXWX",1052:" 34JYPKLX RQKMX RNKUKWLWNVPSQ RUKVLVNUPSQ ROQRQTRUSUUTWQXJX RRQTSTUSWQX",1053:" 25KXVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUU RRKPMOONRNVPX",1054:" 26JYPKLX RQKMX RNKTKVLWNWQVTUVTWQXJX RTKULVNVQUTTVSWQX",1055:" 22JYPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXTXUUSX",1056:" 20JXPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXOX",1057:" 33KYVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUVVS RRKPMOONRNVPX RRXTVUS RSSXS",1058:" 27J[PKLX RQKMX RXKTX RYKUX RNKSK RVK[K ROQVQ RJXOX RRXWX",1059:" 12NWTKPX RUKQX RRKWK RNXSX",1060:" 19LXUKRUQWPX RVKSURWPXOXMWLUMTNUMV RSKXK",1061:" 27JZPKLX RQKMX RYKOR RRPTX RSPUX RNKSK RVK[K RJXOX RRXWX",1062:" 14KXQKMX RRKNX ROKTK RKXUXVUTX",1063:" 30I\\OKKX ROMPX RPKQV RYKPX RYKUX RZKVX RMKPK RYK\\K RIXMX RSXXX",1064:" 21JZPKLX RPKTX RQKTU RXKTX RNKQK RVKZK RJXNX",1065:" 32KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK",1066:" 24JYPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RJXOX",1067:" 46KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK ROWOVPUQURVRZS[T[UZ RRVSZT[",1068:" 35JZPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RSRTWUXVXWW RSRTSUWVX RJXOX",1069:" 28KZWLXLYKXNWLUKRKPLOMOOPPUSVT RONPOURVSVVUWSXPXNWMULXMWNW",1070:" 16KZTKPX RUKQX RPKNNOKZKYNYK RNXSX",1071:" 20J[PKMUMWOXSXUWVUYK RQKNUNWOX RNKSK RWK[K",1072:" 15KYOKPX RPKQV RYKPX RMKRK RVK[K",1073:" 24I[NKMX ROKNV RTKMX RTKSX RUKTV RZKSX RLKQK RXK\\K",1074:" 21KZPKTX RQKUX RYKLX RNKSK RVK[K RJXOX RRXWX",1075:" 20LYPKRQPX RQKSQ RYKSQQX RNKSK RVK[K RNXSX",1076:" 16LYXKLX RYKMX RQKONPKYK RLXUXVUTX",1101:" 32LZQOPPPQOQOPQOTOVQVWWXXX RTOUQUWWX RURRSPTOUOWPXSXTWUU RRSPUPWQX",1102:" 29JYNKNX ROKOX RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLKOK",1103:" 24LXVQUQURVRVQUPSOQOOPNRNUOWQXSXUWVV RQOPPOROUPWQX",1104:" 32L[VKVX RWKWX RVRUPSOQOOPNRNUOWQXSXUWVU RQOPPOROUPWQX RTKWK RVXYX",1105:" 26LXOSVSVRUPSOQOOPNRNUOWQXSXUWVV RUSUQSO RQOPPOROUPWQX",1106:" 20LWTKULUMVMVLTKRKPMPX RRKQMQX RNOSO RNXSX",1107:" 42LYQOOQOSQUSUUSUQSOQO RQOPQPSQU RSUTSTQSO RTPUOVO RPTOUOXPYTYVZ ROWPXTXVYV[T\\P\\N[NYPX",1108:" 28J[NKNX ROKOX RORPPROTOVPWRWX RTOUPVRVX RLKOK RLXQX RTXYX",1109:" 18NWRKRLSLSKRK RRORX RSOSX RPOSO RPXUX",1110:" 23NWSKSLTLTKSK RSOSZR\\ RTOTZR\\P\\O[OZPZP[O[ RQOTO",1111:" 27JZNKNX ROKOX RWOOU RRSVX RSSWX RLKOK RTOYO RLXQX RTXYX",1112:" 12NWRKRX RSKSX RPKSK RPXUX",1113:" 44F_JOJX RKOKX RKRLPNOPORPSRSX RPOQPRRRX RSRTPVOXOZP[R[X RXOYPZRZX RHOKO RHXMX RPXUX RXX]X",1114:" 28J[NONX ROOOX RORPPROTOVPWRWX RTOUPVRVX RLOOO RLXQX RTXYX",1115:" 28LYQOOPNRNUOWQXTXVWWUWRVPTOQO RQOPPOROUPWQX RTXUWVUVRUPTO",1116:" 32JYNON\\ ROOO\\ RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLOOO RL\\Q\\",1117:" 29KYUOU\\ RVOV\\ RURTPROPONPMRMUNWPXRXTWUU RPOOPNRNUOWPX RS\\X\\",1118:" 22KXOOOX RPOPX RPRQPSOUOVPVQUQUPVP RMOPO RMXRX",1119:" 26LYTOUPUQVQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWOVPVPWQX",1120:" 14LWPKPVRXTXUWUV RQKQVRX RNOTO",1121:" 28J[NONUOWQXSXUWVU ROOOUPWQX RVOVX RWOWX RLOOO RTOWO RVXYX",1122:" 15KYNORX ROORV RVORX RLOQO RTOXO",1123:" 24I[LOOX RMOOU RROOX RROUX RSOUU RXOUX RJOOO RVOZO",1124:" 21KYNOUX ROOVX RVONX RLOQO RTOXO RLXPX RSXXX",1125:" 23KYNORX ROORV RVORXP[N\\M\\L[LZMZM[L[ RLOQO RTOXO",1126:" 16LXUONX RVOOX ROONQNOVO RNXVXVVUX",1127:" 32K[QOOPNQMSMUNWPXQXSWUUWRXO RQOOQNSNUOWPX RQOSOUPWWXX RSOTPVWXXYX",1128:" 40KXRKPMOOMUK\\ RQLPNNTL\\ RRKTKVLVNUPRQ RTKULUNTPRQ RRQTRUTUVTWRXQXOWNT RRQSRTTTVRX",1129:" 19KYLQNOPORPSSSXR\\ RLQNPPPRQSS RWOVRSXQ\\",1130:" 39KYSOQOOPNQMSMUNWPXRXTWUVVTVRUPRNQLQKRJTJUKVM RQOOQNSNVPX RRXTVUTUQSO RQLRKTKVM",1131:" 27LXVPTOQOOPOQPRRS RQOPPPQRS RRSOTNUNWPXSXUW RRSPTOUOWPX",1132:" 28LWRKQLQMSNVNVMSNPOOPNRNTOVPWRXSYS[R\\P\\O[ RSNQOPPOROTPVRX",1133:" 26IYJRKPLONOOPOQMX RMONPNQLX ROQPPROTOVPVRS\\ RTOUPURR\\",1134:" 35IYJSKQLPNPOQOVPX RMPNQNUOWPXQXSWTVUTVQVNULTKRKQLQNRPURWS RQXSVTTUQUNTK",1135:" 13NWROPVPWQXSXUWVU RSOQVQWRX",1136:" 26KYOOLX RPOMX RUOVPWPVOTORQOR RORPSRWTXVWWU RORQSSWTX",1137:" 15LXLKNKPLWX RNKOLVX RRPMX RRPNX",1138:" 26KZOOK\\ RPOL\\ RNUNWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1139:" 19JYNOMX ROONUMX RVRVOWOVRTUQWNXMX RLOOO",1140:" 36MXRKQLQMSNVN RTNQOPPPRRSUS RTNROQPQRRS RSSPTOUOWQXSYTZT[S\\Q\\ RSSQTPUPWQX",1141:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1142:" 20IZPPMX RPPNX RTPSX RTPTX RKQMOXO RKQMPXP",1143:" 29JXSOQOOPNQMSJ\\ RQOOQNSK\\ RSOUPVRVTUVTWRXPXNWMU RSOUQUTTVRX",1144:" 28K[YOQOOPNQMSMUNWPXRXTWUVVTVRUPYP RQOOQNSNVPX RRXTVUTUQSO",1145:" 14KZSPQX RSPRX RMQOOXO RMQOPXP",1146:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1147:" 35KZOPNQMSMUNWPXRXUWWUXRXPWOUOTPSRRUO\\ RMUNVPWRWUVWTXR RXQWPUPSR RRUQXP\\",1148:" 17KXMONOPPS[T\\ RNOOPR[T\\U\\ RVOTRNYL\\",1149:" 28I[TKQ\\ RUKP\\ RJRKPLONOOPOVPWSWUVWT RMONPNTOWPXSXUWWTXRYO",1150:" 36JZNPPPPONPMQLSLUMWNXPXQWRUSR RLUNWPWRU RRRRWSXUXWVXTXRWPVOVPWP RRUSWUWWV",1151:" 32KZVOTVTWUXWXXWYU RWOUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1152:" 32JXOKMR RPKNRNVPX RNROPQOSOUPVRVTUVTWRXPXNWMUMR RSOUQUTTVRX RMKPK",1153:" 22KXUPUQVQUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1154:" 35KZWKTVTWUXWXXWYU RXKUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RUKXK",1155:" 23KWNURTTSURUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1156:" 23MXWKXLXKVKTLSNPYO[N\\ RVKULTNQYP[N\\L\\L[M\\ RPOVO",1157:" 34KYVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1158:" 29KZPKLX RQKMX ROQPPROTOVPVRUUUWVX RTOUPURTUTWUXWXXWYU RNKQK",1159:" 26MWSKSLTLTKSK RNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1160:" 26MWTKTLULUKTK RORPPQOSOTPTRRYQ[O\\M\\M[N\\ RROSPSRQYP[O\\",1161:" 32KXPKLX RQKMX RVPUQVQVPUOTORQPROR RORPSQWRXTXUWVU RORQSRWSX RNKQK",1162:" 16NVSKPVPWQXSXTWUU RTKQVQWRX RQKTK",1163:" 46F^GRHPIOKOLPLQJX RJOKPKQIX RLQMPOOQOSPSQQX RQORPRQPX RSQTPVOXOZPZRYUYWZX RXOYPYRXUXWYX[X\\W]U",1164:" 33J[KRLPMOOOPPPQNX RNOOPOQMX RPQQPSOUOWPWRVUVWWX RUOVPVRUUUWVXXXYWZU",1165:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1166:" 35JYKRLPMOOOPPPQM\\ RNOOPOQL\\ RPQROTOVPWRWTVVUWSXQXOVOT RTOVQVTUVSX RJ\\O\\",1167:" 28KYVOR\\ RWOS\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RP\\U\\",1168:" 22LXMRNPOOQORPRQPX RPOQPQQOX RRQSPUOVOWPWQVQWP",1169:" 24LYVPVQWQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWNVOVOW",1170:" 16NWSKPVPWQXSXTWUU RTKQVQWRX RPOUO",1171:" 33IZJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1172:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1173:" 37H\\IRJPKOMONPNRMUMWNX RLOMPMRLULWNXOXQWRV RTORVRWTX RUOSVSWTXUXWWYUZRZOYOZP",1174:" 38JZMRNPPOROSPSR RQORPRRQUPWNXMXLWLVMVLW RXPWQXQXPWOVOTPSRRURWSX RQUQWRXTXVWWU",1175:" 35IYJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\",1176:" 27KYWOWPVQNVMWMX RNQOOROUQ ROPRPUQVQ RNVOVRWUW ROVRXUXVV",1177:" 39H[RKSLSMTMTLRKOKMLLNLX ROKNLMNMX RXKYLYMZMZLXKVKTMTX RVKUMUX RJOWO RJXOX RRXWX",1178:" 29J[UKVLWLWKQKOLNNNX RQKPLONOX RVOVX RWOWX RLOWO RLXQX RTXYX",1179:" 27J[WKQKOLNNNX RQKPLONOX RUKVLVX RWKWX RLOVO RLXQX RTXYX",1180:" 48F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX RYKZL[L[KUKSLRNRX RUKTLSNSX RZOZX R[O[X RHO[O RHXMX RPXUX RXX]X",1181:" 46F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX R[KUKSLRNRX RUKTLSNSX RYKZLZX R[K[X RHOZO RHXMX RPXUX RXX]X",1182:" 12NWRORX RSOSX RPOSO RPXUX",1184:" 21LXVPTOROPPOQNSNUOWQXSXUW RROPQOSOVQX ROSSS",1185:" 35LYSKQLPMOONRNUOWPXRXTWUVVTWQWNVLUKSK RSKQMPOOSOVPX RRXTVUTVPVMUK ROQVQ",1186:" 34KZTKQ\\ RUKP\\ RQONPMRMUNWQXTXWWXUXRWPTOQO RQOOPNRNUOWQX RTXVWWUWRVPTO",1187:" 22LXUPVRVQUPSOQOOPNRNTOVRX RQOOQOTPVRXSYS[R\\P\\",1191:" 45I[VKWLXLVKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RZK[L[KYKWLVNSYR[Q\\ RYKXLWNTYS[Q\\O\\O[P\\ RLOYO",1192:" 38IZVKWLXLXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RVOTVTWUXWXXWYU RWOUVUWVX RLOWO",1193:" 38IZVKWL RXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RWKTVTWUXWXXWYU RXKUVUWVX RLOVO",1194:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L\\L\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ RZOXVXWYX[X\\W]U R[OYVYWZX RIO[O",1195:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L R\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ R[KXVXWYX[X\\W]U R\\KYVYWZX RIOZO",1196:" 20MWNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1200:" 28LYQKOLNONTOWQXTXVWWTWOVLTKQK RQKPLOOOTPWQX RTXUWVTVOULTK",1201:" 10LYPNSKSX RRLRX ROXVX",1202:" 35LYOMONNNNMOLQKTKVLWNVPTQQROSNUNX RTKULVNUPTQ RNWOVPVSWVWWV RPVSXVXWVWU",1203:" 39LYOMONNNNMOLQKTKVLWNVPTQ RTKULVNUPTQ RRQTQVRWTWUVWTXQXOWNVNUOUOV RTQURVTVUUWTX",1204:" 13LYSMSX RTKTX RTKMTXT RQXVX",1205:" 33LYOKNQ ROKVK ROLSLVK RNQOPQOTOVPWRWUVWTXQXOWNVNUOUOV RTOUPVRVUUWTX",1206:" 36LYVMVNWNWMVLTKRKPLOMNPNUOWQXTXVWWUWSVQTPQPNR RRKPMOPOUPWQX RTXUWVUVSUQTP",1207:" 22LYNKNO RVMRTPX RWKTQQX RNMPKRKUM RNMPLRLUMVM",1208:" 51LYQKOLNNOPQQTQVPWNVLTKQK RQKPLONPPQQ RTQUPVNULTK RQQORNTNUOWQXTXVWWUWTVRTQ RQQPROTOUPWQX RTXUWVUVTURTQ",1209:" 36LYOVOUNUNVOWQXSXUWVVWSWNVLTKQKOLNNNPORQSTSWQ RSXUVVSVNULTK RQKPLONOPPRQS",1210:" 6NVRVQWRXSWRV",1211:" 8NVSWRXQWRVSWSYQ[",1212:" 12NVROQPRQSPRO RRVQWRXSWRV",1213:" 14NVROQPRQSPRO RSWRXQWRVSWSYQ[",1214:" 15NVRKQLRSSLRK RRLRO RRVQWRXSWRV",1215:" 29LYNNONOONONNOLQKTKVLWNWOVQSRRSRTST RTKVMVPUQSR RRWRXSXSWRW",1216:" 6OVRKRP RSKRP",1217:" 12LXOKOP RPKOP RUKUP RVKUP",1218:" 10MWQKPLPNQOSOTNTLSKQK",1219:" 9MWRJRP ROKUO RUKOO",1220:" 3KZXHM\\",1221:" 16MWUHSJQMPPPTQWSZU\\ RSJRLQPQTRXSZ",1222:" 16MWOHQJSMTPTTSWQZO\\ RQJRLSPSTRXQZ",1223:" 12MWPHP\\ RQHQ\\ RPHUH RP\\U\\",1224:" 12MWSHS\\ RTHT\\ ROHTH RO\\T\\",1225:" 38LWSHQIPJPLRNSP RQIPL RSNRQ RPJQLSNSPRQPRRSSTSVQXPZ RRSSV RPXQ[ RSTRVPXPZQ[S\\",1226:" 38MXQHSITJTLRNQP RSITL RQNRQ RTJSLQNQPRQTRRSQTQVSXTZ RRSQV RTXS[ RQTRVTXTZS[Q\\",1227:" 4MWTHPRT\\",1228:" 4MWPHTRP\\",1229:" 3OURHR\\",1230:" 6MWPHP\\ RTHT\\",1231:" 3I[LRXR",1232:" 6I[RLRX RLRXR",1233:" 9JZRMRX RMRWR RMXWX",1234:" 9JZRMRX RMMWM RMRWR",1235:" 6JZMMWW RWMMW",1236:" 6NVRQQRRSSRRQ",1237:" 15I[RLQMRNSMRL RLRXR RRVQWRXSWRV",1238:" 6I[LPXP RLTXT",1239:" 9I[WLMX RLPXP RLTXT",1240:" 9I[LNXN RLRXR RLVXV",1241:" 4JZWLMRWX",1242:" 4JZMLWRMX",1243:" 10JZWKMOWS RMTWT RMXWX",1244:" 10JZMKWOMS RMTWT RMXWX",1245:" 21H[YUWUUTTSRPQOONNNLOKQKRLTNUOUQTRSTPUOWNYN",1246:" 16JZLTLRMPOPUSWSXR RLRMQOQUTWTXRXP",1247:" 8JZMSRPWS RMSRQWS",1248:" 7NVSKPO RSKTLPO",1249:" 7NVQKTO RQKPLTO",1250:" 14LXNKOMQNSNUMVK RNKONQOSOUNVK",1251:" 8NVSLRMQLRKSLSNQP",1252:" 8NVSKQMQORPSORNQO",1253:" 8NVQLRMSLRKQLQNSP",1254:" 8NVQKSMSORPQORNSO",1256:" 11JZWMQMONNOMQMSNUOVQWWW",1257:" 11JZMMMSNUOVQWSWUVVUWSWM",1258:" 11JZMMSMUNVOWQWSVUUVSWMW",1259:" 11JZMWMQNOONQMSMUNVOWQWW",1260:" 14JZWMQMONNOMQMSNUOVQWWW RMRUR",1261:" 13I[TOUPXRUTTU RUPWRUT RLRWR",1262:" 13MWRMRX ROPPORLTOUP RPORMTO",1263:" 13I[POOPLROTPU ROPMROT RMRXR",1264:" 13MWRLRW ROTPURXTUUT RPURWTU",1265:" 37KYVSUPSOQOOPNQMSMUNWPXRXTWUVVTWQWNVLTKQKPLQLRK RQOOQNSNVPX RRXTVUTVQVNULTK",1266:" 15JZLKRX RMKRV RXKRX RLKXK RNLWL",1267:" 10G[IOLORW RKORX R[FRX",1268:" 26I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[",1269:" 40I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[ RQNOONQNSOUQVSVUUVSVQUOSNQN",1270:" 26H\\ZRYTWUVUTTSSQPPONNMNKOJQJRKTMUNUPTQSSPTOVNWNYOZQZR",1271:" 26JZXKLX ROKPLPNOOMOLNLLMKOKSLVLXK RUTTUTWUXWXXWXUWTUT",1272:" 41J[YPXPXQYQYPXOWOVPUTTVSWQXOXMWLVLTMSORRPSNSLRKPKOLONPQUWWXXXYW ROXMVMTOR RONPPVWWX",1273:" 29J[UPSOQOPQPRQTSTUS RUOUSVTXTYRYQXNVLSKRKOLMNLQLRMUOWRXSXVW",1274:" 34KZQHQ\\ RTHT\\ RWLVLVMWMWLUKPKNLNNOPVSWT RNNOOVRWTWVVWTXQXOWNVNUOUOVNV",1275:" 12KYRKN\\ RVKR\\ RNQWQ RMVVV",1276:" 40LXTLSLSMTMTLSKQKPLPNQPTRUS RPNQOTQUSUUSW RQPOROTPVSXTY ROTPUSWTYT[S\\Q\\P[PZQZQ[P[",1277:" 29LXRKQLRMSLRK RRMRQ RRQQSRVSSRQ RRVR\\ RPOONNOOPPOTOUNVOUPTO",1278:" 42LXRMSLRKQLRMRQQRSURV RRQSRQURVRZQ[R\\S[RZ RPOONNOOPPOTOUNVOUPTO RPXOWNXOYPXTXUWVXUYTX",1279:" 12LYVKVX RNKVK RQQVQ RNXVX",1281:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRQQRRSSRRQ",1282:" 33LYQKPLPMQN RTKULUMTN RRNPOOQORPTRUSUUTVRVQUOSNRN RRURY RSUSY ROWVW",1283:" 23LYRKPLONOOPQRRSRUQVOVNULSKRK RRRRX RSRSX ROUVU",1284:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRKRY RKRYR",1285:" 25JYRRPQOQMRLTLUMWOXPXRWSUSTRR RWMRR RRMWMWR RRMVNWR",1286:" 25JZLLMKOKQLRNRPQRPSNT ROKPLQNQQPS RVKUX RWKTX RNTXT",1287:" 27JYNKNU ROKNR RNROPQOSOUPVQVTTVTXUYVYWX RSOUQUTTV RLKOK",1288:" 27LYONRKRQ RVNSKSQ RRQPROTOUPWRXSXUWVUVTURSQ RRTRUSUSTRT",1289:" 27JZRKRY RMKMPNRPSTSVRWPWK RLMMKNM RQMRKSM RVMWKXM ROVUV",1290:" 27JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXVXVUUX",1291:" 20LYWKTKQLONNQNSOVQXTYWY RWKTLRNQQQSRVTXWY",1292:" 23JZRRPQOQMRLTLUMWOXPXRWSUSTRR RSLQQ RWMRR RXQSS",1293:" 12KYPMTW RTMPW RMPWT RWPMT",1294:" 34J[OUMULVLXMYOYPXPVNTMRMONMOLQKTKVLWMXOXRWTUVUXVYXYYXYVXUVU RNMPLULWM",1295:" 34J[OOMOLNLLMKOKPLPNNPMRMUNWOXQYTYVXWWXUXRWPUNULVKXKYLYNXOVO RNWPXUXWW",1401:" 21F^KHK\\ RLHL\\ RXHX\\ RYHY\\ RHH\\H RH\\O\\ RU\\\\\\",1402:" 20H]KHRQJ\\ RJHQQ RJHYHZMXH RK[X[ RJ\\Y\\ZWX\\",1403:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",1404:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",1405:" 12KYOBOb RPBPb ROBVB RObVb",1406:" 12KYTBTb RUBUb RNBUB RNbUb",1407:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",1408:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",1409:" 24KYU@RCPFOIOLPOSVTYT\\S_Ra RRCQEPHPKQNTUUXU[T^RaOd",1410:" 24KYO@RCTFUIULTOQVPYP\\Q_Ra RRCSETHTKSNPUOXO[P^RaUd",1411:" 13AXCRGRR` RGSRa RFSRb RX:Rb",1412:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2001:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2002:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2003:" 32G\\XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXXYV RQFOGMILKKNKSLVMXOZQ[",2004:" 30G]LFL[ RMFM[ RIFSFVGXIYKZNZSYVXXVZS[I[ RSFUGWIXKYNYSXVWXUZS[",2005:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2006:" 20G[LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[P[",2007:" 40G^XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXX RQFOGMILKKNKSLVMXOZQ[ RXSX[ RYSY[ RUS\\S",2008:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2009:" 12MXRFR[ RSFS[ ROFVF RO[V[",2010:" 20KZUFUWTZR[P[NZMXMVNUOVNW RTFTWSZR[ RQFXF",2011:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2012:" 14I[NFN[ ROFO[ RKFRF RK[Z[ZUY[",2013:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2014:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2015:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2016:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2017:" 64G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF RNYNXOVQURUTVUXV_W`Y`Z^Z] RUXV\\W^X_Y_Z^",2018:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUPMP RUFWGXHYJYLXNWOUP RI[P[ RRPTQURXYYZZZ[Y RTQUSWZX[Z[[Y[X",2019:" 34H\\XIYFYLXIVGSFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[Q[NZLXKUK[LX",2020:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2021:" 23F^KFKULXNZQ[S[VZXXYUYF RLFLUMXOZQ[ RHFOF RVF\\F",2022:" 15H\\KFR[ RLFRX RYFR[ RIFOF RUF[F",2023:" 24F^JFN[ RKFNV RRFN[ RRFV[ RSFVV RZFV[ RGFNF RWF]F",2024:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2025:" 20H]KFRQR[ RLFSQS[ RZFSQ RIFOF RVF\\F RO[V[",2026:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2027:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2028:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2029:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2030:" 15H\\RFJ[ RRFZ[ RRIY[ RKZYZ RJ[Z[",2031:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2032:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2033:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2034:" 56G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF ROMOT RUMUT ROPUP ROQUQ",2035:" 12MXRFR[ RSFS[ ROFVF RO[V[",2036:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2037:" 15H\\RFK[ RRFY[ RRIX[ RI[O[ RU[[[",2038:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2039:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2040:" 36G]KEJJ RZEYJ RONNS RVNUS RKWJ\\ RZWY\\ RKGYG RKHYH ROPUP ROQUQ RKYYY RKZYZ",2041:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2042:" 21F^KFK[ RLFL[ RXFX[ RYFY[ RHF\\F RH[O[ RU[\\[",2043:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2044:" 20H]KFRPJ[ RJFQP RJFYFZLXF RKZXZ RJ[Y[ZUX[",2045:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2046:" 33I\\KKKILGMFOFPGQIRMR[ RKIMGOGQI RZKZIYGXFVFUGTISMS[ RZIXGVGTI RO[V[",2047:" 48H]RFR[ RSFS[ RPKMLLMKOKRLTMUPVUVXUYTZRZOYMXLUKPK RPKNLMMLOLRMTNUPV RUVWUXTYRYOXMWLUK ROFVF RO[V[",2048:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2049:" 41G^RFR[ RSFS[ RIMJLLMMQNSOTQU RJLKMLQMSNTQUTUWTXSYQZM[L RTUVTWSXQYM[L\\M ROFVF RO[V[",2050:" 43G]JXK[O[MWKSJPJLKIMGPFTFWGYIZLZPYSWWU[Y[ZX RMWLTKPKLLINGPF RTFVGXIYLYPXTWW RKZNZ RVZYZ",2051:" 18H\\UFH[ RUFV[ RTHU[ RLUUU RF[L[ RR[X[",2052:" 41F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVP RWFYGZIZKYNXOVP RMPVPXQYSYUXXVZR[F[ RVPWQXSXUWXUZR[",2053:" 34H]ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[S[UZWXXV RTFRGPINLMOLSLVMYNZP[",2054:" 30F]OFI[ RPFJ[ RLFUFXGYHZKZOYSWWUYSZO[F[ RUFWGXHYKYOXSVWTYRZO[",2055:" 22F]OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[U[WVT[",2056:" 20F\\OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[M[",2057:" 42H^ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[R[UZWXYT RTFRGPINLMOLSLVMYNZP[ RR[TZVXXT RUT\\T",2058:" 27E_NFH[ ROFI[ R[FU[ R\\FV[ RKFRF RXF_F RLPXP RE[L[ RR[Y[",2059:" 12LYUFO[ RVFP[ RRFYF RL[S[",2060:" 21I[XFSWRYQZO[M[KZJXJVKULVKW RWFRWQYO[ RTF[F",2061:" 27F]OFI[ RPFJ[ R]FLS RSOW[ RROV[ RLFSF RYF_F RF[M[ RS[Y[",2062:" 14H\\QFK[ RRFL[ RNFUF RH[W[YUV[",2063:" 30E`NFH[ RNFO[ ROFPY R\\FO[ R\\FV[ R]FW[ RKFOF R\\F`F RE[K[ RS[Z[",2064:" 21F_OFI[ ROFVX ROIV[ R\\FV[ RLFOF RYF_F RF[L[",2065:" 42G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF",2066:" 27F]OFI[ RPFJ[ RLFXF[G\\I\\K[NYPUQMQ RXFZG[I[KZNXPUQ RF[M[",2067:" 61G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF RLYLXMVOUPURVSXS_T`V`W^W] RSXT^U_V_W^",2068:" 42F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVPMP RWFYGZIZKYNXOVP RRPTQURVZW[Y[ZYZX RURWYXZYZZY RF[M[",2069:" 35G^ZH[H\\F[L[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJUI[JYKY",2070:" 16H]UFO[ RVFP[ ROFLLNF]F\\L\\F RL[S[",2071:" 25F_NFKQJUJXKZN[R[UZWXXU\\F ROFLQKUKXLZN[ RKFRF RYF_F",2072:" 15H\\NFO[ ROFPY R\\FO[ RLFRF RXF^F",2073:" 24E_MFK[ RNFLY RUFK[ RUFS[ RVFTY R]FS[ RJFQF RZF`F",2074:" 21G]NFU[ ROFV[ R\\FH[ RLFRF RXF^F RF[L[ RR[X[",2075:" 20H]NFRPO[ ROFSPP[ R]FSP RLFRF RYF_F RL[S[",2076:" 16G][FH[ R\\FI[ ROFLLNF\\F RH[V[XUU[",2077:" 46H\\KILKXWYYY[ RLLXX RKIKKLMXYY[ RPPLTKVKXLZK[ RKVMZ RLTLVMXMZK[ RSSXN RVIVLWNYNYLWKVI RVIWLYN",2101:" 39I]NONPMPMONNPMTMVNWOXQXXYZZ[ RWOWXXZZ[[[ RWQVRPSMTLVLXMZP[S[UZWX RPSNTMVMXNZP[",2102:" 33G\\LFL[ RMFM[ RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIFMF",2103:" 28H[WPVQWRXQXPVNTMQMNNLPKSKULXNZQ[S[VZXX RQMONMPLSLUMXOZQ[",2104:" 36H]WFW[ RXFX[ RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTFXF RW[[[",2105:" 31H[LSXSXQWOVNTMQMNNLPKSKULXNZQ[S[VZXX RWSWPVN RQMONMPLSLUMXOZQ[",2106:" 22KXUGTHUIVHVGUFSFQGPIP[ RSFRGQIQ[ RMMUM RM[T[",2107:" 60I\\QMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM RONNPNTOV RUVVTVPUN RVOWNYMYNWN RNUMVLXLYM[P\\U\\X]Y^ RLYMZP[U[X\\Y^Y_XaUbObLaK_K^L\\O[",2108:" 28G]LFL[ RMFM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIFMF RI[P[ RT[[[",2109:" 18MXRFQGRHSGRF RRMR[ RSMS[ ROMSM RO[V[",2110:" 25MXSFRGSHTGSF RTMT_SaQbObNaN`O_P`Oa RSMS_RaQb RPMTM",2111:" 27G\\LFL[ RMFM[ RWMMW RRSX[ RQSW[ RIFMF RTMZM RI[P[ RT[Z[",2112:" 12MXRFR[ RSFS[ ROFSF RO[V[",2113:" 44BcGMG[ RHMH[ RHPJNMMOMRNSPS[ ROMQNRPR[ RSPUNXMZM]N^P^[ RZM\\N]P][ RDMHM RD[K[ RO[V[ RZ[a[",2114:" 28G]LML[ RMMM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIMMM RI[P[ RT[[[",2115:" 36H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2116:" 36G\\LMLb RMMMb RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIMMM RIbPb",2117:" 33H\\WMWb RXMXb RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTb[b",2118:" 23IZNMN[ ROMO[ ROSPPRNTMWMXNXOWPVOWN RKMOM RK[R[",2119:" 32J[WOXMXQWOVNTMPMNNMOMQNRPSUUWVXW RMPNQPRUTWUXVXYWZU[Q[OZNYMWM[NY",2120:" 16KZPFPWQZS[U[WZXX RQFQWRZS[ RMMUM",2121:" 28G]LMLXMZP[R[UZWX RMMMXNZP[ RWMW[ RXMX[ RIMMM RTMXM RW[[[",2122:" 15I[LMR[ RMMRY RXMR[ RJMPM RTMZM",2123:" 24F^JMN[ RKMNX RRMN[ RRMV[ RSMVX RZMV[ RGMNM RWM]M",2124:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2125:" 22H[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2126:" 16I[WML[ RXMM[ RMMLQLMXM RL[X[XWW[",2127:" 40G^QMNNLPKRJUJXKZN[P[RZUWWTYPZM RQMONMPLRKUKXLZN[ RQMSMUNVPXXYZZ[ RSMTNUPWXXZZ[[[",2128:" 57G\\TFQGOIMMLPKTJZIb RTFRGPINMMPLTKZJb RTFVFXGYHYKXMWNTOPO RVFXHXKWMVNTO RPOTPVRWTWWVYUZR[P[NZMYLV RPOSPURVTVWUYTZR[",2129:" 28H\\IPKNMMOMQNROSRSVRZOb RJOLNPNRO RZMYPXRSYP^Nb RYMXPWRSY",2130:" 44I\\VNTMRMONMQLTLWMYNZP[R[UZWWXTXQWOSJRHRFSEUEWFYH RRMPNNQMTMXNZ RR[TZVWWTWPVNTKSISGTFVFYH",2131:" 32I[XPVNTMPMNNNPPRSS RPMONOPQRSS RSSNTLVLXMZP[S[UZWX RSSOTMVMXNZP[",2132:" 31I[TFRGQHQIRJUKZKZJWKSMPOMRLULWMYP[S]T_TaSbQbPa RULQONRMUMWNYP[",2133:" 32G]HQIOKMNMONOPNTL[ RMMNNNPMTK[ RNTPPRNTMVMXNYOYRXWUb RVMXOXRWWTb",2134:" 44F]GQHOJMMMNNNPMUMXNZO[ RLMMNMPLULXMZO[Q[SZUXWUXRYMYIXGVFTFRHRJSMUPWRZT RSZUWVUWRXMXIWGVF",2135:" 15LXRMPTOXOZP[S[UYVW RSMQTPXPZQ[",2136:" 29H\\NMJ[ ROMK[ RXMYNZNYMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW",2137:" 23H\\KFMFOGPHQJWXXZY[ RMFOHPJVXWZY[Z[ RRMJ[ RRMK[",2138:" 28F]MMGb RNMHb RMPLVLYN[P[RZTXVU RXMUXUZV[Y[[Y\\W RYMVXVZW[",2139:" 24H\\NML[ ROMNSMXL[ RYMXQVU RZMYPXRVUTWQYOZL[ RKMOM",2140:" 45IZTFRGQHQIRJUKXK RUKQLOMNONQPSSTVT RUKRLPMOOOQQSST RSTOUMVLXLZN\\S^T_TaRbPb RSTPUNVMXMZO\\S^",2141:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2142:" 22G]PNL[ RPNM[ RVNV[ RVNW[ RIPKNNM[M RIPKONN[N",2143:" 31H[LVMYNZP[R[UZWWXTXQWOVNTMRMONMQLTHb RR[TZVWWTWPVN RRMPNNQMTIb",2144:" 35H][MQMNNLQKTKWLYMZO[Q[TZVWWTWQVOUNSM RQMONMQLTLXMZ RQ[SZUWVTVPUN RUN[N",2145:" 16H\\SNP[ RSNQ[ RJPLNOMZM RJPLOONZN",2146:" 31H\\IQJOLMOMPNPPNVNYP[ RNMONOPMVMYNZP[Q[TZVXXUYRYOXMWNXOYR RXUYO",2147:" 37G]ONMOKQJTJWKYLZN[Q[TZWXYUZRZOXMVMTORSPXMb RJWLYNZQZTYWWYU RZOXNVNTPRSPYNb",2148:" 23I[KMMMONPPU_VaWb RMMNNOPT_UaWbYb RZMYOWRM]K`Jb",2149:" 34F]UFOb RVFNb RGQHOJMMMNNNPMUMXOZRZTYWVYS RLMMNMPLULXMZO[R[TZVXXUYS[M",2150:" 44F]JQLOONNMLNJQITIWJZK[M[OZQWRT RIWJYKZMZOYQW RQTQWRZS[U[WZYWZTZQYNXMWNYOZQ RQWRYSZUZWYYW",2151:" 39H]XMVTUXUZV[Y[[Y\\W RYMWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2152:" 36H[PFLSLVMYNZ RQFMS RMSNPPNRMTMVNWOXQXTWWUZR[P[NZMWMS RVNWPWTVWTZR[ RMFQF",2153:" 25I[WPWQXQXPWNUMRMONMQLTLWMYNZP[R[UZWW RRMPNNQMTMXNZ",2154:" 42H]ZFVTUXUZV[Y[[Y\\W R[FWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RWF[F",2155:" 26I[MVQUTTWRXPWNUMRMONMQLTLWMYNZP[R[UZWX RRMPNNQMTMXNZ",2156:" 35KZZGYHZI[H[GZFXFVGUHTJSMP[O_Na RXFVHUJTNRWQ[P^O`NaLbJbIaI`J_K`Ja ROMYM",2157:" 43H\\YMU[T^RaObLbJaI`I_J^K_J` RXMT[S^QaOb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2158:" 31H]PFJ[ RQFK[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W RMFQF",2159:" 26LYUFTGUHVGUF RMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2160:" 32LYVFUGVHWGVF RNQOOQMTMUNUQR[Q^P`OaMbKbJaJ`K_L`Ka RSMTNTQQ[P^O`Mb",2161:" 34H\\PFJ[ RQFK[ RXNWOXPYOYNXMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW RMFQF",2162:" 18MYUFQTPXPZQ[T[VYWW RVFRTQXQZR[ RRFVF",2163:" 52AbBQCOEMHMINIPHTF[ RGMHNHPGTE[ RHTJPLNNMPMRNSOSQP[ RPMRORQO[ RRTTPVNXMZM\\N]O]Q[W[Z\\[ RZM\\O\\QZWZZ[[^[`YaW",2164:" 37F]GQHOJMMMNNNPMTK[ RLMMNMPLTJ[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W",2165:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2166:" 42G\\HQIOKMNMONOPNTJb RMMNNNPMTIb RNTOQQNSMUMWNXOYQYTXWVZS[Q[OZNWNT RWNXPXTWWUZS[ RFbMb",2167:" 33H\\XMRb RYMSb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RObVb",2168:" 26IZJQKOMMPMQNQPPTN[ ROMPNPPOTM[ RPTRPTNVMXMYNYOXPWOXN",2169:" 28J[XOXPYPYOXNUMRMONNONQORVVWW RNPOQVUWVWYVZS[P[MZLYLXMXMY",2170:" 18KYTFPTOXOZP[S[UYVW RUFQTPXPZQ[ RNMWM",2171:" 37F]GQHOJMMMNNNQLWLYN[ RLMMNMQKWKYLZN[P[RZTXVT RXMVTUXUZV[Y[[Y\\W RYMWTVXVZW[",2172:" 26H\\IQJOLMOMPNPQNWNYP[ RNMONOQMWMYNZP[Q[TZVXXUYQYMXMYO",2173:" 41C`DQEOGMJMKNKQIWIYK[ RIMJNJQHWHYIZK[M[OZQXRV RTMRVRYSZU[W[YZ[X\\V]R]M\\M]O RUMSVSYU[",2174:" 42H\\KQMNOMRMSOSR RQMRORRQVPXNZL[K[JZJYKXLYKZ RQVQYR[U[WZYW RYNXOYPZOZNYMXMVNTPSRRVRYS[",2175:" 41G\\HQIOKMNMONOQMWMYO[ RMMNNNQLWLYMZO[Q[SZUXWT RZMV[U^SaPbMbKaJ`J_K^L_K` RYMU[T^RaPb",2176:" 31H\\YMXOVQNWLYK[ RLQMOOMRMVO RMOONRNVOXO RLYNYRZUZWY RNYR[U[WYXW",2177:" 43G^VGUHVIWHWGUFRFOGMILLL[ RRFPGNIMLM[ R\\G[H\\I]H]G\\FZFXGWIW[ RZFYGXIX[ RIM[M RI[P[ RT[[[",2178:" 33G]WGVHWIXHWGUFRFOGMILLL[ RRFPGNIMLM[ RWMW[ RXMX[ RIMXM RI[P[ RT[[[",2179:" 35G]VGUHVIWHWGUF RXFRFOGMILLL[ RRFPGNIMLM[ RWHW[ RXFX[ RIMWM RI[P[ RT[[[",2180:" 54BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R]G\\H]I^H]G[FXFUGSIRLR[ RXFVGTISLS[ R]M][ R^M^[ RDM^M RD[K[ RO[V[ RZ[a[",2181:" 56BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R\\G[H\\I]H]G[F R^FXFUGSIRLR[ RXFVGTISLS[ R]H][ R^F^[ RDM]M RD[K[ RO[V[ RZ[a[",2182:" 12MXRMR[ RSMS[ ROMSM RO[V[",2184:" 25IZWNUMRMONMPLSLVMYNZQ[T[VZ RRMPNNPMSMVNYOZQ[ RMTUT",2185:" 43I\\TFQGOJNLMOLTLXMZO[Q[TZVWWUXRYMYIXGVFTF RTFRGPJOLNOMTMXNZO[ RQ[SZUWVUWRXMXIWGVF RNPWP",2186:" 42G]UFOb RVFNb RQMMNKPJSJVKXMZP[S[WZYXZUZRYPWNTMQM RQMNNLPKSKVLXNZP[ RS[VZXXYUYRXPVNTM",2187:" 27I[TMVNXPXOWNTMQMNNMOLQLSMUOWSZ RQMONNOMQMSNUSZT\\T^S_Q_",2190:" 45G]LMKNJPJRKUOYP[ RJRKTOXP[P]O`MbLbKaJ_J\\KXMTOQRNTMVMYNZPZTYXWZU[T[SZSXTWUXTY RVMXNYPYTXXWZ",2191:" 69E_YGXHYIZHYGWFTFQGOINKMNLRJ[I_Ha RTFRGPIOKNNLWK[J^I`HaFbDbCaC`D_E`Da R_G^H_I`H`G_F]F[GZHYJXMU[T_Sa R]F[HZJYNWWV[U^T`SaQbObNaN`O_P`Oa RIM^M",2192:" 52F^[GZH[I\\H[GXFUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea RYMWTVXVZW[Z[\\Y]W RZMXTWXWZX[ RJMZM",2193:" 54F^YGXHYIZHZGXF R\\FUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea R[FWTVXVZW[Z[\\Y]W R\\FXTWXWZX[ RJMYM",2194:" 86@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R`G_H`IaH`G]FZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R^M\\T[X[Z\\[_[aYbW R_M]T\\X\\Z][ RDM_M",2195:" 88@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R^G]H^I_H_G]F RaFZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R`F\\T[X[Z\\[_[aYbW RaF]T\\X\\Z][ RDM^M",2196:" 20LYMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2200:" 40H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF RQFOGNHMJLOLRMWNYOZQ[ RS[UZVYWWXRXOWJVHUGSF",2201:" 11H\\NJPISFS[ RRGR[ RN[W[",2202:" 45H\\LJMKLLKKKJLHMGPFTFWGXHYJYLXNUPPRNSLUKXK[ RTFVGWHXJXLWNTPPR RKYLXNXSZVZXYYX RNXS[W[XZYXYV",2203:" 47H\\LJMKLLKKKJLHMGPFTFWGXIXLWNTOQO RTFVGWIWLVNTO RTOVPXRYTYWXYWZT[P[MZLYKWKVLUMVLW RWQXTXWWYVZT[",2204:" 13H\\THT[ RUFU[ RUFJUZU RQ[X[",2205:" 39H\\MFKP RKPMNPMSMVNXPYSYUXXVZS[P[MZLYKWKVLUMVLW RSMUNWPXSXUWXUZS[ RMFWF RMGRGWF",2206:" 48H\\WIVJWKXJXIWGUFRFOGMILKKOKULXNZQ[S[VZXXYUYTXQVOSNRNOOMQLT RRFPGNIMKLOLUMXOZQ[ RS[UZWXXUXTWQUOSN",2207:" 31H\\KFKL RKJLHNFPFUIWIXHYF RLHNGPGUI RYFYIXLTQSSRVR[ RXLSQRSQVQ[",2208:" 63H\\PFMGLILLMNPOTOWNXLXIWGTFPF RPFNGMIMLNNPO RTOVNWLWIVGTF RPOMPLQKSKWLYMZP[T[WZXYYWYSXQWPTO RPONPMQLSLWMYNZP[ RT[VZWYXWXSWQVPTO",2209:" 48H\\XMWPURRSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNWMX RQSORMPLMLLMIOGQF RSFUGWIXLXRWVVXTZR[",2210:" 6MWRYQZR[SZRY",2211:" 8MWR[QZRYSZS\\R^Q_",2212:" 12MWRMQNROSNRM RRYQZR[SZRY",2213:" 14MWRMQNROSNRM RR[QZRYSZS\\R^Q_",2214:" 15MWRFQHRTSHRF RRHRN RRYQZR[SZRY",2215:" 32I[MJNKMLLKLJMHNGPFSFVGWHXJXLWNVORQRT RSFUGVHWJWLVNTP RRYQZR[SZRY",2216:" 6NVRFQM RSFQM",2217:" 12JZNFMM ROFMM RVFUM RWFUM",2218:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",2219:" 9JZRFRR RMIWO RWIMO",2220:" 3G][BIb",2221:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",2222:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",2223:" 12KYOBOb RPBPb ROBVB RObVb",2224:" 12KYTBTb RUBUb RNBUB RNbUb",2225:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",2226:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",2227:" 4KYUBNRUb",2228:" 4KYOBVROb",2229:" 3NVRBRb",2230:" 6KYOBOb RUBUb",2231:" 3E_IR[R",2232:" 6E_RIR[ RIR[R",2233:" 9F^RJR[ RJRZR RJ[Z[",2234:" 9F^RJR[ RJJZJ RJRZR",2235:" 6G]KKYY RYKKY",2236:" 6MWRQQRRSSRRQ",2237:" 15E_RIQJRKSJRI RIR[R RRYQZR[SZRY",2238:" 6E_IO[O RIU[U",2239:" 9E_YIK[ RIO[O RIU[U",2240:" 9E_IM[M RIR[R RIW[W",2241:" 4F^ZIJRZ[",2242:" 4F^JIZRJ[",2243:" 10F^ZFJMZT RJVZV RJ[Z[",2244:" 10F^JFZMJT RJVZV RJ[Z[",2245:" 21F_[WYWWVUTRPQOONMNKOJQJSKUMVOVQURTUPWNYM[M",2246:" 24F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",2247:" 8G]JTROZT RJTRPZT",2248:" 7LXTFOL RTFUGOL",2249:" 7LXPFUL RPFOGUL",2250:" 18H\\KFLHNJQKSKVJXHYF RKFLINKQLSLVKXIYF",2251:" 8MWRHQGRFSGSIRKQL",2252:" 8MWSFRGQIQKRLSKRJ",2253:" 8MWRHSGRFQGQIRKSL",2254:" 8MWQFRGSISKRLQKRJ",2255:" 10E[HMLMRY RKMR[ R[BR[",2256:" 13F^ZJSJOKMLKNJQJSKVMXOYSZZZ",2257:" 13F^JJJQKULWNYQZSZVYXWYUZQZJ",2258:" 13F^JJQJUKWLYNZQZSYVWXUYQZJZ",2259:" 13F^JZJSKOLMNKQJSJVKXMYOZSZZ",2260:" 16F^ZJSJOKMLKNJQJSKVMXOYSZZZ RJRVR",2261:" 11E_XP[RXT RUMZRUW RIRZR",2262:" 11JZPLRITL RMORJWO RRJR[",2263:" 11E_LPIRLT ROMJROW RJR[R",2264:" 11JZPXR[TX RMURZWU RRIRZ",2265:" 44I\\XRWOVNTMRMONMQLTLWMYNZP[R[UZWXXUYPYKXHWGUFRFPGOHOIPIPH RRMPNNQMTMXNZ RR[TZVXWUXPXKWHUF",2266:" 15H\\JFR[ RKFRY RZFR[ RJFZF RKGYG",2267:" 10AbDMIMRY RHNR[ Rb:R[",2268:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2269:" 50F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia RQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",2270:" 26F_\\S[UYVWVUUTTQPPONNLNJOIQISJULVNVPUQTTPUOWNYN[O\\Q\\S",2271:" 32F^[FI[ RNFPHPJOLMMKMIKIIJGLFNFPGSHVHYG[F RWTUUTWTYV[X[ZZ[X[VYTWT",2272:" 49F_[NZO[P\\O\\N[MZMYNXPVUTXRZP[M[JZIXIUJSPORMSKSIRGPFNGMIMKNNPQUXWZZ[[[\\Z\\Y RM[KZJXJUKSMQ RMKNMVXXZZ[",2273:" 56E`WNVLTKQKOLNMMPMSNUPVSVUUVS RQKOMNPNSOUPV RWKVSVUXVZV\\T]Q]O\\L[JYHWGTFQFNGLHJJILHOHRIUJWLYNZQ[T[WZYYZX RXKWSWUXV",2274:" 42H\\PBP_ RTBT_ RXIWJXKYJYIWGTFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[P[MZKXKWLVMWLX",2275:" 12H]SFLb RYFRb RLQZQ RKWYW",2276:" 46JZUITJUKVJVIUGSFQFOGNINKOMQOVR ROMTPVRWTWVVXTZ RPNNPMRMTNVPXU[ RNVSYU[V]V_UaSbQbOaN_N^O]P^O_",2277:" 30JZRFQHRJSHRF RRFRb RRQQTRbSTRQ RLMNNPMNLLM RLMXM RTMVNXMVLTM",2278:" 56JZRFQHRJSHRF RRFRT RRPQRSVRXQVSRRP RRTRb RR^Q`RbS`R^ RLMNNPMNLLM RLMXM RTMVNXMVLTM RL[N\\P[NZL[ RL[X[ RT[V\\X[VZT[",2279:" 12I\\XFX[ RKFXF RPPXP RK[X[",2281:" 38E`QFNGKIILHOHRIUKXNZQ[T[WZZX\\U]R]O\\LZIWGTFQF RROQPQQRRSRTQTPSORO RRPRQSQSPRP",2282:" 45J[PFNGOIQJ RPFOGOI RUFWGVITJ RUFVGVI RQJOKNLMNMQNSOTQUTUVTWSXQXNWLVKTJQJ RRUR[ RSUS[ RNXWX",2283:" 27I\\RFOGMILLLMMPORRSSSVRXPYMYLXIVGSFRF RRSR[ RSSS[ RNWWW",2284:" 28D`PFMGJIHLGOGSHVJYM[P\\T\\W[ZY\\V]S]O\\LZIWGTFPF RRFR\\ RGQ]Q",2285:" 31G`PMMNKPJSJTKWMYPZQZTYVWWTWSVPTNQMPM R]GWG[HUN R]G]M\\IVO R\\HVN",2286:" 28F\\IIJGLFOFQGRIRLQOPQNSKU ROFPGQIQMPPNS RVFT[ RWFS[ RKUYU",2287:" 30I\\MFMU RNFMQ RMQNOONQMTMWNXPXRWTUV RTMVNWPWRTXTZU[W[YY RKFNF",2288:" 44I\\RNOOMQLTLUMXOZR[S[VZXXYUYTXQVOSNRN RRHNJRFRN RSHWJSFSN RRSQTQURVSVTUTTSSRS RRTRUSUSTRT",2289:" 37G^QHRFR[ RTHSFS[ RJHKFKMLPNRQSRS RMHLFLNMQ R[HZFZMYPWRTSSS RXHYFYNXQ RNWWW",2290:" 31G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[Y[YVX[",2291:" 24H[YGUGQHNJLMKPKSLVNYQ[U\\Y\\ RYGVHSJQMPPPSQVSYV[Y\\",2292:" 27F_OQMQKRJSIUIWJYKZM[O[QZRYSWSURSQROQ RSHPQ RZJRR R\\QST",2293:" 12H\\OKUY RUKOY RKOYU RYOKU",2294:" 48F^NVLUKUIVHXHYI[K\\L\\N[OYOXNVKRJOJMKJMHPGTGWHYJZMZOYRVVUXUYV[X\\Y\\[[\\Y\\X[VYUXUVV RJMKKMIPHTHWIYKZM",2295:" 48F^NMLNKNIMHKHJIHKGLGNHOJOKNMKQJTJVKYM[P\\T\\W[YYZVZTYQVMUKUJVHXGYG[H\\J\\K[MYNXNVM RJVKXMZP[T[WZYXZV",2301:" 40F_JMILIJJHLGNGPHQIRKSP RIJKHMHOIPJQLRPR[ R[M\\L\\J[HYGWGUHTISKRP R\\JZHXHVIUJTLSPS[",2302:" 51F^IGJKKMMOPPTPWOYMZK[G RIGJJKLMNPOTOWNYLZJ[G RPONPMQLSLVMXOZQ[S[UZWXXVXSWQVPTO RPPNQMSMVNY RVYWVWSVQTP",2303:" 30F^MJMV RNKNU RVKVU RWJWV RIGKIMJPKTKWJYI[G RIYKWMVPUTUWVYW[Y",2304:" 48F^[ILIJJILINJPLQNQPPQNQLPJ[J RIMJOKPMQ RQMPKOJMI RIXXXZW[U[SZQXPVPTQSSSUTWIW R[TZRYQWP RSTTVUWWX",2305:" 48F]OUMTLTJUIWIXJZL[M[OZPXPWOUJPINIKJILHOGSGWHYJZLZOYRVUUWUYV[X[YZZX RMSKPJNJKKILH RSGVHXJYLYOXRVU",2306:" 48G_HKKHMKMV RJILLLV RMKPHRKRU ROIQLQU RRKUHWKW[ RTIVLV[ RWKZH[J\\M\\P[SZUXWUYP[ RYIZJ[M[PZSYUWWTYP[",2307:" 41F^ISMSLRKOKMLJNHQGSGVHXJYMYOXRWS[S RITOTMRLOLMMJOHQG RSGUHWJXMXOWRUT[T RKXYX RKYYY",2308:" 30F_GLJIMLMX RIJLMLX RMLPISLSX ROJRMRX RSLVIYLYW[Y RUJXMXXZZ]W",2309:" 33G]ZIJY RZIWJQJ RXKUKQJ RZIYLYR RXKXNYR RQRJR RPSMSJR RQRQY RPSPVQY",2310:" 33F^HOJKOU RJMOWRPWPZO[M[KZIXHWHUITKTMUPVRWUWXUZ RWHVIUKUMWQXTXWWYUZ",2311:" 36F^IOLLPN RKMOORLUN RQMTOWLYN RVMXO[L RIULRPT RKSOURRUT RQSTUWRYT RVSXU[R",2312:" 48F^JHNJPLQOQRPUNWJY RJHMIOJQLRO RRRQUOWMXJY RZHWIUJSLRO RRRSUUWWXZY RZHVJTLSOSRTUVWZY RIP[P RIQ[Q",2317:" 12NVQQQSSSSQQQ RQQSS RSQQS",2318:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2319:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2320:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2321:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2322:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2323:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2324:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2325:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2326:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2327:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2328:" 49JZMLWX RMLONQOTOVNWMWKUKUMTO RONTO RQOWM RVKVN RULWL RWXUVSUPUNVMWMYOYOWPU RUVPU RSUMW RNVNY RMXOX",2329:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLWY",2330:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2331:"103EfNSOUQVSVUUVSVQUOSNQNOONPMSMVNYP[S\\V\\Y[[Y\\W]T]P\\MZJXIUHRHOIMJKLIOHSHXI]KaMcPeTfYf]e`cba RKLJNIRIXJ\\L`NbQdUeYe]d_cba RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU RaLaNcNcLaL RbLbN RaMcM RaVaXcXcVaV RbVbX RaWcW",2332:" 30D`H@Hd RM@Md RW@Wd R\\@\\d RMMWK RMNWL RMOWM RMWWU RMXWV RMYWW",2367:" 12NVQQQSSSSQQQ RQQSS RSQQS",2368:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2369:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2370:" 32H\\PMMNLOKQKSLUMVPWTWWVXUYSYQXOWNTMPM RMNLPLSMUNVPW RWVXTXQWOVNTM",2371:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2372:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2373:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2374:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2375:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2376:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2377:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2378:" 36JZQCVMRTRU RULQS RTITKPRRUUY RW\\UYSXQXOYN[N]O_Ra RW\\UZSYOYO]P_Ra RSXPZN]",2379:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLSY",2380:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2381:" 89IjNQOOQNSNUOVQVSUUSVQVOUNTMQMNNKPISHWH[I^K`NaRaW`[_]]`ZcVfQiMk RWHZI]K_N`R`W_[^]\\`YcTgQi RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU ReLeNgNgLeL RfLfN ReMgM ReVeXgXgVeV RfVfX ReWgW",2382:" 85D`H>Hf RI>If RM>Mf RQBSBSDQDQAR?T>W>Y?[A\\D\\I[LYNWOUOSNRLQNOQNROSQVRXSVUUWUYV[X\\[\\`[cYeWfTfReQcQ`S`SbQb RRBRD RQCSC RY?ZA[D[IZLYN RRLRNPQNRPSRVRX RYVZX[[[`ZcYe RR`Rb RQaSa",2401:" 21AcHBHb RIBIb R[B[b R\\B\\b RDB`B RDbMb RWb`b",2402:" 23BaGBQPFb RFBPP REBPQ REB\\B^I[B RGa\\a RFb\\b^[[b",2403:" 28I[X+U1R8P=OANFMNMVN^OcPgRlUsXy RU1S6Q<P@OFNNNVO^PdQhSnUs",2404:" 28I[L+O1R8T=UAVFWNWVV^UcTgRlOsLy RO1Q6S<T@UFVNVVU^TdShQnOs",2405:" 14I[M+MRMy RN+NRNy RM+X+ RMyXy",2406:" 14I[V+VRVy RW+WRWy RL+W+ RLyWy",2407:" 48I[V+S-Q/P1O4O8P<TDUGUJTMRP RS-Q0P4P8Q;UCVGVJUMRPNRRTUWVZV]UaQiPlPpQtSw RRTTWUZU]T`PhOlOpPsQuSwVy",2408:" 48I[N+Q-S/T1U4U8T<PDOGOJPMRP RQ-S0T4T8S;OCNGNJOMRPVRRTOWNZN]OaSiTlTpStQw RRTPWOZO]P`ThUlUpTsSuQwNy",2409:" 32I[V.S1Q4O8N=NCOIPMSXT\\UbUgTlSoQs RS1Q5P8O=OBPHQLTWU[VaVgUlSpQsNv",2410:" 32I[N.Q1S4U8V=VCUITMQXP\\ObOgPlQoSs RQ1S5T8U=UBTHSLPWO[NaNgOlQpSsVv",2411:' 147Z:RARRo R@RQo R?RRr RZ"VJRr',2412:" 57Ca].\\.[/[0\\1]1^0^.],[+Y+W,U.T0S3R:QJQjPsOv R\\/\\0]0]/\\/ RR:Rj RU.T1S:SZRjQqPtOvMxKyIyGxFvFtGsHsItIuHvGv RGtGuHuHtGt",2501:" 20H\\RFJ[ RRIK[J[ RRIY[Z[ RRFZ[ RMUWU RLVXV",2502:" 44H\\LFL[ RMGMZ RLFTFWGXHYJYMXOWPTQ RMGTGWHXJXMWOTP RMPTPWQXRYTYWXYWZT[L[ RMQTQWRXTXWWYTZMZ",2503:" 38H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZV RZKYKXIWHUGQGOHMKLNLSMVOYQZUZWYXXYVZV",2504:" 32H]LFL[ RMGMZ RLFSFVGXIYKZNZSYVXXVZS[L[ RMGSGVHWIXKYNYSXVWXVYSZMZ",2505:" 27I\\MFM[ RNGNZ RMFYF RNGYGYF RNPTPTQ RNQTQ RNZYZY[ RM[Y[",2506:" 21I[MFM[ RNGN[M[ RMFYF RNGYGYF RNPTPTQ RNQTQ",2507:" 44H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZVZRUR RZKYKXIWHUGQGOHNIMKLNLSMVNXOYQZUZWYXXYVYSUSUR",2508:" 22G]KFK[ RKFLFL[K[ RYFXFX[Y[ RYFY[ RLPXP RLQXQ",2509:" 8NWRFR[S[ RRFSFS[",2510:" 20J[VFVVUYSZQZOYNVMV RVFWFWVVYUZS[Q[OZNYMV",2511:" 22H]LFL[M[ RLFMFM[ RZFYFMR RZFMS RPOY[Z[ RQOZ[",2512:" 14IZMFM[ RMFNFNZ RNZYZY[ RM[Y[",2513:" 26F^JFJ[ RKKK[J[ RKKR[ RJFRX RZFRX RYKR[ RYKY[Z[ RZFZ[",2514:" 20G]KFK[ RLIL[K[ RLIY[ RKFXX RXFXX RXFYFY[",2515:" 40G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF RQGNHLKKNKSLVNYQZSZVYXVYSYNXKVHSGQG",2516:" 27H\\LFL[ RMGM[L[ RLFUFWGXHYJYMXOWPUQMQ RMGUGWHXJXMWOUPMP",2517:" 48G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF RQGNHLKKNKSLVNYQZSZVYXVYSYNXKVHSGQG RSXX]Y] RSXTXY]",2518:" 34H\\LFL[ RMGM[L[ RLFTFWGXHYJYMXOWPTQMQ RMGTGWHXJXMWOTPMP RRQX[Y[ RSQY[",2519:" 43H\\YIWGTFPFMGKIKKLMMNOOTQVRWSXUXXWYTZPZNYMXKX RYIWIVHTGPGMHLILKMMONTPVQXSYUYXWZT[P[MZKX",2520:" 15J[RGR[ RSGS[R[ RLFYFYG RLFLGYG",2521:" 24G]KFKULXNZQ[S[VZXXYUYF RKFLFLUMXNYQZSZVYWXXUXFYF",2522:" 14H\\JFR[ RJFKFRX RZFYFRX RZFR[",2523:" 26E_GFM[ RGFHFMX RRFMX RRIM[ RRIW[ RRFWX R]F\\FWX R]FW[",2524:" 16H\\KFX[Y[ RKFLFY[ RYFXFK[ RYFL[K[",2525:" 17I\\KFRPR[S[ RKFLFSP RZFYFRP RZFSPS[",2526:" 20H\\XFK[ RYFL[ RKFYF RKFKGXG RLZYZY[ RK[Y[",2551:" 38E\\XFVHTKQPOSLWIZG[E[DZDXEWFXEY RXFWJUTT[ RXFU[ RT[TYSVRTPRNQLQKRKTLWOZR[V[XZ",2552:" 70F^UGTHSJQOOUNWLZJ[ RTHSKQSPVOXMZJ[H[GZGXHWIXHY ROLNNMOKOJNJLKJMHOGRFXFZG[I[KZMXNTORO RXFYGZIZKYMXN RTOWPXQYSYVXYWZU[S[RZRXSU RTOVPWQXSXVWYU[",2553:" 41H]KHJJJLKNNOQOUNWMYKZIZGYFWFTGQJOMMQLULXMZP[R[UZWXXVXTWRURSSRU RWFUGRJPMNQMUMXNZP[",2554:" 43F]UGTHSJQOOUNWLZJ[ RTHSKQSPVOXMZJ[H[GZGXHWJWLXNZP[S[UZWXYTZOZLYIWGUFPFMGKIJKJMKNMNNMOK",2555:" 49I\\WIVJVLWMYMZKZIYGWFTFRGQHPJPLQNSO RTFRHQJQMSO RSOQONPLRKTKWLYMZO[R[UZWXXVXTWRURSSRU RQOOPMRLTLXMZ",2556:" 46G\\WHVJTORUQWOZM[ RQLPNNOLOKMKKLINGQF[FXGWHVKTSSVRXPZM[K[IZHYHXIWJXIY RSFWGXG ROSPRRQVQXPZMXT",2557:" 53G]JIIKIMJOLPOPROTNWKXHXGWFVFTGRIQKPNPQQSSTUTWSYQZO RWFUGSIRKQNQRST RZOYSWWUYSZO[L[JZIXIWJVKWJX RYSWVUXRZO[",2558:" 55F^LLKKKILGOFRFOQMWLYKZI[G[FZFXGWHXGY RRFOONRLWKYI[ RJTKSMRVOXN[L]J^H^G]F\\FZGXJWLURTVTYV[W[YZ[X R\\FZHXLVRUVUYV[",2559:" 33IYWHUKSPQUPWNZL[ RYLWNTOQOONNLNJOHQGUFYFWHVJTPRVQXOZL[J[IZIXJWKXJY",2560:" 34IZYFWHUKSPPYN] RYMWOTPQPOONMNKOIQGUFYFWIVKSTQXPZN]M^K_J^J\\KZMXOWRVVU",2561:" 59F^LLKKKIMGPFRFOQMWLYKZI[G[FZFXGWHXGY RRFOONRLWKYI[ RZGWKUMSNPO R]G\\H]I^H^G]F\\FZGWLVMTNPO RPOSPTRUYV[ RPORPSRTYV[W[YZ[X",2562:" 40I[MILKLMMOOPRPUOWNZK[H[GZFYFWGVHTKPUOWMZK[ RVHTLRSQVPXNZK[I[HZHXIWKWMXPZR[U[WZYX",2563:" 49D`RFNOKUIXGZE[C[BZBXCWDXCY RRFPMOQNVNZP[ RRFQJPOOVOZP[ R[FWORXP[ R[FYMXQWVWZY[Z[\\Z^X R[FZJYOXVXZY[",2564:" 38G^RFQJOPMULWJZH[F[EZEXFWGXFY RRFRKSVT[ RRFSKTVT[ R`G_H`IaHaG`F^F\\GZJYLWQUWT[",2565:" 34H]SFQGOIMLLNKRKVLYMZO[Q[TZVXXUYSZOZKYHXGWGUHSJQNPSPV RQGOJMNLRLVMYO[",2566:" 53F]UGTHSJQOOUNWLZJ[ RTHSKQSPVOXMZJ[H[GZGXHWIXHY ROLNNMOKOJNJLKJMHOGRFVFYGZH[J[MZOYPVQTQRP RVFXGYHZJZMYOXPVQ",2567:" 43H]UJULTNSOQPOPNNNLOIQGTFWFYGZIZMYPWSSWPYNZK[I[HZHXIWKWMXPZS[V[XZZX RWFXGYIYMXPVSSVOYK[",2568:" 65F^UGTHSJQOOUNWLZJ[ RTHSKQSPVOXMZJ[H[GZGXHWIXHY ROLNNMOKOJNJLKJMHOGRFWFZG[I[KZMYNVORO RWFYGZIZKYMXNVO RROUPVRWYX[ RROTPURVYX[Y[[Z]X",2569:" 36H\\NIMKMMNOPPSPVOXN[K\\H\\G[FZFXGWHVJUMSTRWPZN[ RVJUNTUSXQZN[K[IZHXHWIVJWIX",2570:" 38I[YHXJVOTUSWQZO[ RSLRNPONOMMMKNIPGSF\\FZGYHXKVSUVTXRZO[M[KZJYJXKWLXKY RUFYGZG",2571:" 39G]HJJGLFMFOHOKNNKVKYL[ RMFNHNKKSJVJYL[N[PZSWUTVR RZFVRUVUYW[X[ZZ\\X R[FWRVVVYW[",2572:" 36G\\HJJGLFMFOHOKNOLVLYM[ RMFNHNKLRKVKYM[N[QZTWVTXPYMZIZGYFXFWGVIVLWNYP[Q]Q",2573:" 41F]ILHLGKGIHGJFNFMHLLKUJ[ RLLLUK[ RVFTHRLOUMYK[ RVFUHTLSUR[ RTLTUS[ R`F^G\\IZLWUUYS[",2574:" 52H\\PKOLMLLKLIMGOFQFSGTITLSPQUOXMZJ[H[GZGXHWIXHY RQFRGSISLRPPUNXLZJ[ R]G\\H]I^H^G]F[FYGWIULSPRURXSZT[U[WZYX",2575:" 42G]JJLGNFOFQGQIOOORPT ROFPGPINONRPTRTUSWQYNZL R\\FZLWTUX R]F[LYQWUUXSZP[L[JZIXIWJVKWJX",2576:" 44G\\ZHYJWOVRUTSWQYOZL[ RSLRNPONOMMMKNIPGSF]F[GZHYKXOVUTXQZL[H[GZGXHWJWLXOZQ[T[WZYX RVFZG[G",2601:" 36H\\WMW[X[ RWMXMX[ RWPUNSMPMNNLPKSKULXNZP[S[UZWX RWPSNPNNOMPLSLUMXNYPZSZWX",2602:" 36H\\LFL[M[ RLFMFM[ RMPONQMTMVNXPYSYUXXVZT[Q[OZMX RMPQNTNVOWPXSXUWXVYTZQZMX",2603:" 32I[XPVNTMQMONMPLSLUMXOZQ[T[VZXX RXPWQVOTNQNOONPMSMUNXOYQZTZVYWWXX",2604:" 36H\\WFW[X[ RWFXFX[ RWPUNSMPMNNLPKSKULXNZP[S[UZWX RWPSNPNNOMPLSLUMXNYPZSZWX",2605:" 36I[MTXTXQWOVNTMQMONMPLSLUMXOZQ[T[VZXX RMSWSWQVOTNQNOONPMSMUNXOYQZTZVYWWXX",2606:" 24LZWFUFSGRJR[S[ RWFWGUGSH RTGSJS[ ROMVMVN ROMONVN",2607:" 48H\\XMWMW\\V_U`SaQaO`N_L_ RXMX\\W_UaSbPbNaL_ RWPUNSMPMNNLPKSKULXNZP[S[UZWX RWPSNPNNOMPLSLUMXNYPZSZWX",2608:" 25H\\LFL[M[ RLFMFM[ RMQPNRMUMWNXQX[ RMQPORNTNVOWQW[X[",2609:" 24NWRFQGQHRISITHTGSFRF RRGRHSHSGRG RRMR[S[ RRMSMS[",2610:" 24NWRFQGQHRISITHTGSFRF RRGRHSHSGRG RRMRbSb RRMSMSb",2611:" 22H[LFL[M[ RLFMFM[ RXMWMMW RXMMX RPTV[X[ RQSX[",2612:" 8NWRFR[S[ RRFSFS[",2613:" 42CbGMG[H[ RGMHMH[ RHQKNMMPMRNSQS[ RHQKOMNONQORQR[S[ RSQVNXM[M]N^Q^[ RSQVOXNZN\\O]Q][^[",2614:" 25H\\LML[M[ RLMMMM[ RMQPNRMUMWNXQX[ RMQPORNTNVOWQW[X[",2615:" 36I\\QMONMPLSLUMXOZQ[T[VZXXYUYSXPVNTMQM RQNOONPMSMUNXOYQZTZVYWXXUXSWPVOTNQN",2616:" 36H\\LMLbMb RLMMMMb RMPONQMTMVNXPYSYUXXVZT[Q[OZMX RMPQNTNVOWPXSXUWXVYTZQZMX",2617:" 36H\\WMWbXb RWMXMXb RWPUNSMPMNNLPKSKULXNZP[S[UZWX RWPSNPNNOMPLSLUMXNYPZSZWX",2618:" 21KYOMO[P[ ROMPMP[ RPSQPSNUMXM RPSQQSOUNXNXM",2619:" 50J[XPWNTMQMNNMPNRPSUUWV RVUWWWXVZ RWYTZQZNY ROZNXMX RXPWPVN RWOTNQNNO RONNPOR RNQPRUTWUXWXXWZT[Q[NZMX",2620:" 16MXRFR[S[ RRFSFS[ ROMVMVN ROMONVN",2621:" 25H\\LMLWMZO[R[TZWW RLMMMMWNYPZRZTYWW RWMW[X[ RWMXMX[",2622:" 14JZLMR[ RLMMMRY RXMWMRY RXMR[",2623:" 26F^IMN[ RIMJMNX RRMNX RRPN[ RRPV[ RRMVX R[MZMVX R[MV[",2624:" 16I[LMW[X[ RLMMMX[ RXMWML[ RXMM[L[",2625:" 17JZLMR[ RLMMMRY RXMWMRYNb RXMR[ObNb",2626:" 20I[VNL[ RXMNZ RLMXM RLMLNVN RNZXZX[ RL[X[",2651:" 33K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RVRTXTZV[XZYY[V RWRUXUZV[",2652:" 23LZLVNSPO RSFMXMZO[P[RZTXUUURVVWWXWZV RTFNXNZO[",2653:" 22LXTSSTTTTSSRQROSNTMVMXNZP[S[VYXV RQROTNVNYP[",2654:" 33K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RZFTXTZV[XZYY[V R[FUXUZV[",2655:" 23LXOYQXRWSUSSRRQROSNTMVMXNZP[S[VYXV RQROTNVNYP[",2656:" 27OXRRUOWLXIXGWFUGTIKdKfLgNfOcPZQ[S[UZVYXV RTISNRRO[M`Kd",2657:" 38K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RVRPd RWRT[R`PdOfMgLfLdMaO_R]V[YY[V",2658:" 30L[LVNSPO RSFL[ RTFM[ ROUQSSRTRVSVUUXUZV[ RTRUSUUTXTZV[XZYY[V",2659:" 19NVSLRMSNTMSL RQROXOZQ[SZTYVV RRRPXPZQ[",2660:" 24NVSLRMSNTMSL RQRKd RRRO[M`KdJfHgGfGdHaJ_M]Q[TYVV",2661:" 31LZLVNSPO RSFL[ RTFM[ RURUSVSURTRRTOU ROURVSZT[ ROUQVRZT[U[XYZV",2662:" 17NVNVPSRO RUFOXOZQ[SZTYVV RVFPXPZQ[",2663:" 45E^EVGSIRKSKUI[ RIRJSJUH[ RKUMSORPRRSRUP[ RPRQSQUO[ RRUTSVRWRYSYUXXXZY[ RWRXSXUWXWZY[[Z\\Y^V",2664:" 32I[IVKSMROSOUM[ RMRNSNUL[ ROUQSSRTRVSVUUXUZV[ RTRUSUUTXTZV[XZYY[V",2665:" 29KYRRPRNSMTLVLXMZO[Q[SZTYUWUUTSRRQSQURWTXVXXWYV RPRNTMVMYO[",2666:" 30L[LVNSPO RQLHg RRLIg ROUQSSRTRVSVUUXUZV[ RTRUSUUTXTZV[XZYY[V",2667:" 35K[UUTSRRPRNSMTLVLXMZO[Q[SZ RPRNTMVMYO[ RVRPdPfQgSfTcT[V[YY[V RWRT[R`Pd",2668:" 24LZLVNSPRRSRUP[ RPRQSQUO[ RRUTSVRWRVU RVRVUWWXWZV",2669:" 22NZNVPSQQQSTUUWUYTZR[ RQSSUTWTYR[ RNZP[U[XYZV",2670:" 20NVNVPSRO RUFOXOZQ[SZTYVV RVFPXPZQ[ RPNVN",2671:" 27K[NRLXLZN[O[QZSXUU RORMXMZN[ RVRTXTZV[XZYY[V RWRUXUZV[",2672:" 23KZNRMTLWLZN[O[RZTXUUUR RORNTMWMZN[ RURVVWWXWZV",2673:" 36H]LRJTIWIZK[L[NZPX RMRKTJWJZK[ RRRPXPZR[S[UZWXXUXR RSRQXQZR[ RXRYVZW[W]V",2674:" 42JZJVLSNRPRQSQUPXOZM[L[KZKYLYKZ RWSVTWTWSVRURSSRUQXQZR[U[XYZV RQSRU RSSQU RPXQZ RQXOZ",2675:" 32K[NRLXLZN[O[QZSXUU RORMXMZN[ RVRPd RWRT[R`PdOfMgLfLdMaO_R]V[YY[V",2676:" 38LYLVNSPRRRTSTVSXPZN[ RRRSSSVRXPZ RN[P\\Q^QaPdNfLgKfKdLaO^R\\VYYV RN[O\\P^PaOdNf",2700:" 42H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF ROGMJLOLRMWOZ RNYQZSZVY RUZWWXRXOWJUG RVHSGQGNH",2701:" 12H\\NJPISFS[ RNJNKPJRHR[S[",2702:" 34H\\LKLJMHNGPFTFVGWHXJXLWNUQL[ RLKMKMJNHPGTGVHWJWLVNTQK[ RLZYZY[ RK[Y[",2703:" 48H\\MFXFQO RMFMGWG RWFPO RQNSNVOXQYTYUXXVZS[P[MZLYKWLW RPOSOVPXS RTOWQXTXUWXTZ RXVVYSZPZMYLW ROZLX",2704:" 18H\\UIU[V[ RVFV[ RVFKVZV RUILV RLUZUZV",2705:" 53H\\MFLO RNGMN RMFWFWG RNGWG RMNPMSMVNXPYSYUXXVZS[P[MZLYKWLW RLOMOONSNVOXR RTNWPXSXUWXTZ RXVVYSZPZMYLW ROZLX",2706:" 62H\\VGWIXIWGTFRFOGMJLOLTMXOZR[S[VZXXYUYTXQVOSNRNOOMQ RWHTGRGOH RPGNJMOMTNXQZ RMVOYRZSZVYXV RTZWXXUXTWQTO RXSVPSOROOPMS RQONQMT",2707:" 12H\\KFYFO[ RKFKGXG RXFN[O[",2708:" 68H\\PFMGLILKMMNNPOTPVQWRXTXWWYTZPZMYLWLTMRNQPPTOVNWMXKXIWGTFPF RNGMIMKNMPNTOVPXRYTYWXYWZT[P[MZLYKWKTLRNPPOTNVMWKWIVG RWHTGPGMH RLXOZ RUZXX",2709:" 62H\\WPURRSQSNRLPKMKLLINGQFRFUGWIXMXRWWUZR[P[MZLXMXNZ RWMVPSR RWNUQRRQRNQLN RPRMPLMLLMIPG RLKNHQGRGUHWK RSGVIWMWRVWTZ RUYRZPZMY",2710:" 16MXRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",2711:" 24MXTZS[R[QZQYRXSXTYT\\S^Q_ RRYRZSZSYRY RS[T\\ RTZS^",2712:" 32MXRMQNQORPSPTOTNSMRM RRNROSOSNRN RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",2713:" 40MXRMQNQORPSPTOTNSMRM RRNROSOSNRN RTZS[R[QZQYRXSXTYT\\S^Q_ RRYRZSZSYRY RS[T\\ RTZS^",2714:" 24MXRFRTST RRFSFST RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",2715:" 58I\\LKLJMHNGQFTFWGXHYJYLXNWOUPRQ RLKMKMJNHQGTGWHXJXLWNUORP RMIPG RUGXI RXMTP RRPRTSTSP RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",2716:" 24MXTFRGQIQLRMSMTLTKSJRJQK RRKRLSLSKRK RRGQK RQIRJ",2717:" 24MXTHSIRIQHQGRFSFTGTJSLQM RRGRHSHSGRG RSITJ RTHSL",2718:" 71F_\\MZMXNWPUVTXSYQZMZKYJWJUKSLRQOSMTKTISGQFPFNGMIMKNNPQUWXZZ[\\[ R\\M\\NZNXO RYNXPVVUXSZQ[M[KZJYIWIUJSLQQNRMSKSIRG RSHQGPGNH ROGNINKONQQVWXYZZ\\Z\\[",2719:" 51I\\RBR_S_ RRBSBS_ RWIYIWGTFQFNGLILKMMNNVRWSXUXWWYTZQZOYNX RWIVHTGQGNHMIMKNMVQXSYUYWXYWZT[Q[NZLXNX RXXUZ",2720:" 8G^[BIbJb R[B\\BJb",2721:" 24KYUBSDQGOKNPNTOYQ]S`UbVb RUBVBTDRGPKOPOTPYR]T`Vb",2722:" 24KYNBPDRGTKUPUTTYR]P`NbOb RNBOBQDSGUKVPVTUYS]Q`Ob",2723:" 39JZRFQGSQRR RRFRR RRFSGQQRR RMINIVOWO RMIWO RMIMJWNWO RWIVINOMO RWIMO RWIWJMNMO",2724:" 8F_JQ[Q[R RJQJR[R",2725:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",2726:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",2727:" 11NWSFRGRM RSGRM RSFTGRM",2728:" 22I[NFMGMM RNGMM RNFOGMM RWFVGVM RWGVM RWFXGVM",2729:" 30KYQFOGNINKOMQNSNUMVKVIUGSFQF RQFNIOMSNVKUGQF RSFOGNKQNUMVISF",2750:" 42H]TFQGOIMLLOKSKVLYMZO[Q[TZVXXUYRZNZKYHXGVFTF RTFRGPINLMOLSLVMYO[ RQ[SZUXWUXRYNYKXHVF",2751:" 15H]TJO[ RVFP[ RVFSIPKNL RUIQKNL",2752:" 42H]OJPKOLNKNJOHPGSFVFYGZIZKYMWOTQPSMUKWI[ RVFXGYIYKXMVOPS RJYKXMXRZUZWYXW RMXR[U[WZXW",2753:" 50H]OJPKOLNKNJOHPGSFVFYGZIZKYMVOSP RVFXGYIYKXMVO RQPSPVQWRXTXWWYVZS[O[LZKYJWJVKULVKW RSPUQVRWTWWVYUZS[",2754:" 10H]XGR[ RYFS[ RYFJUZU",2755:" 39H]QFLP RQF[F RQGVG[F RLPMOPNSNVOWPXRXUWXUZR[O[LZKYJWJVKULVKW RSNUOVPWRWUVXTZR[",2756:" 46H]YIXJYKZJZIYGWFTFQGOIMLLOKSKWLYMZO[R[UZWXXVXSWQVPTOQOOPMRLT RTFRGPINLMOLSLXMZ RR[TZVXWVWRVP",2757:" 30H]NFLL R[FZIXLSRQUPWO[ RXLRRPUOWN[ RMIPFRFWI RNHPGRGWIYIZH[F",2758:" 63H]SFPGOHNJNMOOQPTPXOYNZLZIYGVFSF RSFQGPHOJOMPOQP RTPWOXNYLYIXGVF RQPMQKSJUJXKZN[R[VZWYXWXTWRVQTP RQPNQLSKUKXLZN[ RR[UZVYWWWSVQ",2759:" 46H]YMXOVQTRQROQNPMNMKNIPGSFVFXGYHZJZNYRXUVXTZQ[N[LZKXKWLVMWLX ROQNONKOIQGSF RXGYIYNXRWUUXSZQ[",2760:" 6MXPYOZP[QZPY",2761:" 8MXP[OZPYQZQ[P]N_",2762:" 11MXSMRNSOTNSM RPYOZP[QZ",2763:" 14MXSMRNSOTNSM RP[OZPYQZQ[P]N_",2764:" 17MXUFTGRS RUGRS RUFVGRS RPYOZP[QZPY",2765:" 34H]OJPKOLNKNJOHPGSFWFZG[I[KZMYNSPQQQSRTTT RWFYGZIZKYMXNVO RPYOZP[QZPY",2766:" 8MXVFTHSJSKTLUKTJ",2767:" 8MXUHTGUFVGVHUJSL",2768:" 55E_\\N[O\\P]O]N\\M[MYNWPRXPZN[K[HZGXGVHTISKRPPROTMUKUITGRFPGOIOLPRQUSXUZW[Y[ZYZX RK[IZHXHVITJSPP ROLPQQTSWUYWZYZZY",2769:" 41H]TBL_ RYBQ_ RZJYKZL[K[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJVKULVKW",2770:" 3G]_BEb",2771:" 20KZZBVESHQKOONTNXO]P`Qb RVESIQMPPOUOZP_Qb",2772:" 20JYSBTDUGVLVPUUSYQ\\N_Jb RSBTEUJUOTTSWQ[N_",2773:" 9J[TFTR ROIYO RYIOO",2774:" 3E_IR[R",2775:" 6E_RIR[ RIR[R",2776:" 6E_IO[O RIU[U",2777:" 6NWUFSM RVFSM",2778:" 12I[PFNM RQFNM RYFWM RZFWM",2779:" 14KZSFQGPIPKQMSNUNWMXKXIWGUFSF",2801:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2802:" 31G]LFL[ RMFM[ RIFYFYLXF RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2803:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2804:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2805:" 31F^NFNLMTLXKZJ[ RXFX[ RYFY[ RKF\\F RG[\\[ RG[Gb RH[Gb R[[\\b R\\[\\b",2806:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2807:" 71CbRFR[ RSFS[ ROFVF RGGHHGIFHFGGFHFIGJIKMLONPWPYOZM[I\\G]F^F_G_H^I]H^G RNPLQKSJXIZH[ RNPMQLSKXJZI[G[FZEX RWPYQZS[X\\Z][ RWPXQYSZX[Z\\[^[_Z`X RO[V[",2808:" 45H\\LIKFKLLINGPFTFWGXIXLWNTOQO RTFVGWIWLVNTO RTOVPXRYTYWXYWZT[O[MZLYKWKVLUMVLW RWQXTXWWYVZT[",2809:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RXHLY RH[O[ RU[\\[",2810:" 37F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RXHLY RH[O[ RU[\\[ RN@N?M?M@NBPCTCVBW@",2811:" 43F^KFK[ RLFL[ RHFOF RLPSPUOVMWIXGYFZF[G[HZIYHZG RSPUQVSWXXZY[ RSPTQUSVXWZX[Z[[Z\\X RH[O[",2812:" 25E^MFMLLTKXJZI[H[GZGYHXIYHZ RXFX[ RYFY[ RJF\\F RU[\\[",2813:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2814:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2815:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2816:" 21F^KFK[ RLFL[ RXFX[ RYFY[ RHF\\F RH[O[ RU[\\[",2817:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2818:" 32G\\XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXXYV RQFOGMILKKNKSLVMXOZQ[",2819:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2820:" 24H]KFRV RLFSV RZFSVQYPZN[M[LZLYMXNYMZ RIFOF RVF\\F",2821:" 48F_RFR[ RSFS[ ROFVF RPILJJLIOIRJULWPXUXYW[U\\R\\O[LYJUIPI RPIMJKLJOJRKUMWPX RUXXWZU[R[OZLXJUI RO[V[",2822:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2823:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RH[\\[ R[[\\b R\\[\\b",2824:" 28F]KFKQLSOTRTUSWQ RLFLQMSOT RWFW[ RXFX[ RHFOF RTF[F RT[[[",2825:" 30BcGFG[ RHFH[ RRFR[ RSFS[ R]F][ R^F^[ RDFKF ROFVF RZFaF RD[a[",2826:" 36BcGFG[ RHFH[ RRFR[ RSFS[ R]F][ R^F^[ RDFKF ROFVF RZFaF RD[a[ R`[ab Ra[ab",2827:" 31F`PFP[ RQFQ[ RIFHLHFTF RQPXP[Q\\R]T]W\\Y[ZX[M[ RXPZQ[R\\T\\W[YZZX[",2828:" 41CaHFH[ RIFI[ REFLF RIPPPSQTRUTUWTYSZP[E[ RPPRQSRTTTWSYRZP[ R[F[[ R\\F\\[ RXF_F RX[_[",2829:" 29H]MFM[ RNFN[ RJFQF RNPUPXQYRZTZWYYXZU[J[ RUPWQXRYTYWXYWZU[",2830:" 39H]LIKFKLLINGQFSFVGXIYKZNZSYVXXVZS[P[MZLYKWKVLUMVLW RSFUGWIXKYNYSXVWXUZS[ RPPYP",2831:" 59CbHFH[ RIFI[ REFLF RE[L[ RVFSGQIPKOOORPVQXSZV[X[[Z]X^V_R_O^K]I[GXFVF RVFTGRIQKPOPRQVRXTZV[ RX[ZZ\\X]V^R^O]K\\IZGXF RIPOP",2832:" 45G]WFW[ RXFX[ R[FOFLGKHJJJLKNLOOPWP ROFMGLHKJKLLNMOOP RRPPQORLYKZJZIY RPQOSMZL[J[IYIX RT[[[",2901:" 39I]NONPMPMONNPMTMVNWOXQXXYZZ[ RWOWXXZZ[[[ RWQVRPSMTLVLXMZP[S[UZWX RPSNTMVMXNZP[",2902:" 48H\\XFWGQINKLNKQKULXNZQ[S[VZXXYUYSXPVNSMQMNNLPKS RXFWHUIQJNLLN RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2903:" 37H\\MMM[ RNMN[ RJMUMXNYPYQXSUT RUMWNXPXQWSUT RNTUTXUYWYXXZU[J[ RUTWUXWXXWZU[",2904:" 14HZMMM[ RNMN[ RJMXMXRWM RJ[Q[",2905:" 22F]NMNQMWLZK[ RWMW[ RXMX[ RKM[M RI[H`H[[[[`Z[",2906:" 31H[LSXSXQWOVNTMQMNNLPKSKULXNZQ[S[VZXX RWSWPVN RQMONMPLSLUMXOZQ[",2907:" 59E`RMR[ RSMS[ ROMVM RJNIOHNIMJMKNMRNSPTUTWSXRZN[M\\M]N\\O[N RPTNUMVKZJ[ RPTNVLZK[I[HZGX RUTWUXVZZ[[ RUTWVYZZ[\\[]Z^X RO[V[",2908:" 42I[MOLMLQMONNPMTMWNXPXQWSTT RTMVNWPWQVSTT RQTTTWUXWXXWZT[P[MZLXLWMVNWMX RTTVUWWWXVZT[",2909:" 27G]LML[ RMMM[ RWMW[ RXMX[ RIMPM RTM[M RI[P[ RT[[[ RWNMZ",2910:" 37G]LML[ RMMM[ RWMW[ RXMX[ RIMPM RTM[M RI[P[ RT[[[ RWNMZ ROGOFNFNGOIQJSJUIVG",2911:" 38H\\MMM[ RNMN[ RJMQM RNTPTSSTRVNWMXMYNXOWN RPTSUTVVZW[ RPTRUSVUZV[X[YZZX RJ[Q[",2912:" 22G]NMNQMWLZK[J[IZJYKZ RWMW[ RXMX[ RKM[M RT[[[",2913:" 30G^LML[ RLMR[ RMMRY RXMR[ RXMX[ RYMY[ RIMMM RXM\\M RI[O[ RU[\\[",2914:" 27G]LML[ RMMM[ RWMW[ RXMX[ RIMPM RTM[M RMTWT RI[P[ RT[[[",2915:" 36H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2916:" 21G]LML[ RMMM[ RWMW[ RXMX[ RIM[M RI[P[ RT[[[",2917:" 36G\\LMLb RMMMb RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIMMM RIbPb",2918:" 28H[WPVQWRXQXPVNTMQMNNLPKSKULXNZQ[S[VZXX RQMONMPLSLUMXOZQ[",2919:" 16I\\RMR[ RSMS[ RMMLRLMYMYRXM RO[V[",2920:" 22I[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2921:" 52H]RFRb RSFSb ROFSF RRPQNPMNMLNKQKWLZN[P[QZRX RNMMNLQLWMZN[ RWMXNYQYWXZW[ RSPTNUMWMYNZQZWYZW[U[TZSX RObVb",2922:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2923:" 23G]LML[ RMMM[ RWMW[ RXMX[ RIMPM RTM[M RI[[[[`Z[",2924:" 28G]LMLTMVPWRWUVWT RMMMTNVPW RWMW[ RXMX[ RIMPM RTM[M RT[[[",2925:" 30CbHMH[ RIMI[ RRMR[ RSMS[ R\\M\\[ R]M][ REMLM ROMVM RYM`M RE[`[",2926:" 32CbHMH[ RIMI[ RRMR[ RSMS[ R\\M\\[ R]M][ REMLM ROMVM RYM`M RE[`[``_[",2927:" 27H]QMQ[ RRMR[ RLMKRKMUM RRTVTYUZWZXYZV[N[ RVTXUYWYXXZV[",2928:" 37E_JMJ[ RKMK[ RGMNM RKTOTRUSWSXRZO[G[ ROTQURWRXQZO[ RYMY[ RZMZ[ RVM]M RV[][",2929:" 25J[OMO[ RPMP[ RLMSM RPTTTWUXWXXWZT[L[ RTTVUWWWXVZT[",2930:" 34I\\MOLMLQMONNPMSMVNXPYSYUXXVZS[P[NZLXLWMVNWMX RSMUNWPXSXUWXUZS[ RRTXT",2931:" 51DaIMI[ RJMJ[ RFMMM RF[M[ RVMSNQPPSPUQXSZV[X[[Z]X^U^S]P[NXMVM RVMTNRPQSQURXTZV[ RX[ZZ\\X]U]S\\PZNXM RJTPT",2932:" 40G\\VMV[ RWMW[ RZMOMLNKPKQLSOTVT ROMMNLPLQMSOT RTTQUPVNZM[ RTTRUQVOZN[L[KZJX RS[Z[",3001:" 36H\\RFKZ RQIW[ RRIX[ RRFY[ RMUVU RI[O[ RT[[[ RKZJ[ RKZM[ RWZU[ RWYV[ RXYZ[",3002:" 78G]LFL[ RMGMZ RNFN[ RIFUFXGYHZJZLYNXOUP RXHYJYLXN RUFWGXIXMWOUP RNPUPXQYRZTZWYYXZU[I[ RXRYTYWXY RUPWQXSXXWZU[ RJFLG RKFLH ROFNH RPFNG RLZJ[ RLYK[ RNYO[ RNZP[",3003:" 37G\\XIYFYLXIVGTFQFNGLIKKJNJSKVLXNZQ[T[VZXXYV RMILKKNKSLVMX RQFOGMJLNLSMWOZQ[",3004:" 62G]LFL[ RMGMZ RNFN[ RIFSFVGXIYKZNZSYVXXVZS[I[ RWIXKYNYSXVWX RSFUGWJXNXSWWUZS[ RJFLG RKFLH ROFNH RPFNG RLZJ[ RLYK[ RNYO[ RNZP[",3005:" 83G\\LFL[ RMGMZ RNFN[ RIFYFYL RNPTP RTLTT RI[Y[YU RJFLG RKFLH ROFNH RPFNG RTFYG RVFYH RWFYI RXFYL RTLSPTT RTNRPTR RTOPPTQ RLZJ[ RLYK[ RNYO[ RNZP[ RT[YZ RV[YY RW[YX RX[YU",3006:" 70G[LFL[ RMGMZ RNFN[ RIFYFYL RNPTP RTLTT RI[Q[ RJFLG RKFLH ROFNH RPFNG RTFYG RVFYH RWFYI RXFYL RTLSPTT RTNRPTR RTOPPTQ RLZJ[ RLYK[ RNYO[ RNZP[",3007:" 60G^XIYFYLXIVGTFQFNGLIKKJNJSKVLXNZQ[T[VZXZY[YS RMILKKNKSLVMX RQFOGMJLNLSMWOZQ[ RXTXY RWSWYVZ RTS\\S RUSWT RVSWU RZSYU R[SYT",3008:" 81F^KFK[ RLGLZ RMFM[ RWFW[ RXGXZ RYFY[ RHFPF RTF\\F RMPWP RH[P[ RT[\\[ RIFKG RJFKH RNFMH ROFMG RUFWG RVFWH RZFYH R[FYG RKZI[ RKYJ[ RMYN[ RMZO[ RWZU[ RWYV[ RYYZ[ RYZ[[",3009:" 39LXQFQ[ RRGRZ RSFS[ RNFVF RN[V[ ROFQG RPFQH RTFSH RUFSG RQZO[ RQYP[ RSYT[ RSZU[",3010:" 45JYSFSWRZQ[ RTGTWSZ RUFUWTZQ[O[MZLXLVMUNUOVOWNXMX RMVMWNWNVMV RPFXF RQFSG RRFSH RVFUH RWFUG",3011:" 69F\\KFK[ RLGLZ RMFM[ RXGMR RPPW[ RQPX[ RQNY[ RHFPF RUF[F RH[P[ RT[[[ RIFKG RJFKH RNFMH ROFMG RWFXG RZFXG RKZI[ RKYJ[ RMYN[ RMZO[ RWYU[ RWYZ[",3012:" 52I[NFN[ ROGOZ RPFP[ RKFSF RK[Z[ZU RLFNG RMFNH RQFPH RRFPG RNZL[ RNYM[ RPYQ[ RPZR[ RU[ZZ RW[ZY RX[ZX RY[ZU",3013:" 63E_JFJZ RJFQ[ RKFQX RLFRX RXFQ[ RXFX[ RYGYZ RZFZ[ RGFLF RXF]F RG[M[ RU[][ RHFJG R[FZH R\\FZG RJZH[ RJZL[ RXZV[ RXYW[ RZY[[ RZZ\\[",3014:" 39F^KFKZ RKFY[ RLFXX RMFYX RYGY[ RHFMF RVF\\F RH[N[ RIFKG RWFYG R[FYG RKZI[ RKZM[",3015:" 54G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RMILKKNKSLVMX RWXXVYSYNXKWI RQFOGMJLNLSMWOZQ[ RS[UZWWXSXNWJUGSF",3016:" 59G]LFL[ RMGMZ RNFN[ RIFUFXGYHZJZMYOXPUQNQ RXHYJYMXO RUFWGXIXNWPUQ RI[Q[ RJFLG RKFLH ROFNH RPFNG RLZJ[ RLYK[ RNYO[ RNZP[",3017:" 77G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RMILKKNKSLVMX RWXXVYSYNXKWI RQFOGMJLNLSMWOZQ[ RS[UZWWXSXNWJUGSF RNXOVQURUTVUXV^W`Y`Z^Z\\ RV\\W^X_Y_ RUXW]X^Y^Z]",3018:" 80G]LFL[ RMGMZ RNFN[ RIFUFXGYHZJZLYNXOUPNP RXHYJYLXN RUFWGXIXMWOUP RRPTQUSWYX[Z[[Y[W RWWXYYZZZ RTQURXXYYZY[X RI[Q[ RJFLG RKFLH ROFNH RPFNG RLZJ[ RLYK[ RNYO[ RNZP[",3019:" 44H\\XIYFYLXIVGSFPFMGKIKLLNOPURWSXUXXWZ RLLMNOOUQWRXT RMGLILKMMONUPXRYTYWXYWZT[Q[NZLXKUK[LX",3020:" 57H\\JFJL RQFQ[ RRGRZ RSFS[ RZFZL RJFZF RN[V[ RKFJL RLFJI RMFJH ROFJG RUFZG RWFZH RXFZI RYFZL RQZO[ RQYP[ RSYT[ RSZU[",3021:" 45F^KFKULXNZQ[S[VZXXYUYG RLGLVMX RMFMVNYOZQ[ RHFPF RVF\\F RIFKG RJFKH RNFMH ROFMG RWFYG R[FYG",3022:" 34H\\KFR[ RLFRXR[ RMFSX RYGR[ RIFPF RUF[F RJFLH RNFMH ROFMG RWFYG RZFYG",3023:" 55F^JFN[ RKFNVN[ RLFOV RRFOVN[ RRFV[ RSFVVV[ RTFWV RZGWVV[ RGFOF RRFTF RWF]F RHFKG RIFKH RMFLH RNFLG RXFZG R\\FZG",3024:" 54H\\KFW[ RLFX[ RMFY[ RXGLZ RIFPF RUF[F RI[O[ RT[[[ RJFMH RNFMH ROFMG RVFXG RZFXG RLZJ[ RLZN[ RWZU[ RWYV[ RWYZ[",3025:" 48G]JFQQQ[ RKFRQRZ RLFSQS[ RYGSQ RHFOF RVF\\F RN[V[ RIFKG RNFLG RWFYG R[FYG RQZO[ RQYP[ RSYT[ RSZU[",3026:" 41H\\YFKFKL RWFK[ RXFL[ RYFM[ RK[Y[YU RLFKL RMFKI RNFKH RPFKG RT[YZ RV[YY RW[YX RX[YU",3051:" 38H\\UFIZ RSJT[ RTHUZ RUFUHVYV[ RLUTU RF[L[ RQ[X[ RIZG[ RIZK[ RTZR[ RTYS[ RVYW[",3052:" 78F^OFI[ RPFJ[ RQFK[ RLFWFZG[I[KZNYOVP RYGZIZKYNXO RWFXGYIYKXNVP RNPVPXQYSYUXXVZR[F[ RWQXSXUWXUZ RVPWRWUVXTZR[ RMFPG RNFOH RRFPH RSFPG RJZG[ RJYH[ RKYL[ RJZM[",3053:" 41H]ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[S[UZWXXV RQHOJNLMOLSLWMY RTFRGPJOLNOMSMXNZP[",3054:" 63F]OFI[ RPFJ[ RQFK[ RLFUFXGYHZKZOYSWWUYSZO[F[ RWGXHYKYOXSVWTY RUFWHXKXOWSUWRZO[ RMFPG RNFOH RRFPH RSFPG RJZG[ RJYH[ RKYL[ RJZM[",3055:" 80F]OFI[ RPFJ[ RQFK[ RULST RLF[FZL RNPTP RF[U[WV RMFPG RNFOH RRFPH RSFPG RWFZG RXFZH RYFZI RZFZL RULSPST RTNRPSR RTOQPSQ RJZG[ RJYH[ RKYL[ RJZM[ RP[UZ RR[UY RUYWV",3056:" 70F\\OFI[ RPFJ[ RQFK[ RULST RLF[FZL RNPTP RF[N[ RMFPG RNFOH RRFPH RSFPG RWFZG RXFZH RYFZI RZFZL RULSPST RTNRPSR RTOQPSQ RJZG[ RJYH[ RKYL[ RJZM[",3057:" 65H^ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[R[UZWXYT RQHOJNLMOLSLWMY RVXWWXT RTFRGPJOLNOMSMXNZP[ RR[TZVWWT RTT\\T RUTWU RVTWW RZTXV R[TXU",3058:" 81E_NFH[ ROFI[ RPFJ[ RZFT[ R[FU[ R\\FV[ RKFSF RWF_F RLPXP RE[M[ RQ[Y[ RLFOG RMFNH RQFOH RRFOG RXF[G RYFZH R]F[H R^F[G RIZF[ RIYG[ RJYK[ RIZL[ RUZR[ RUYS[ RVYW[ RUZX[",3059:" 39KYTFN[ RUFO[ RVFP[ RQFYF RK[S[ RRFUG RSFTH RWFUH RXFUG ROZL[ ROYM[ RPYQ[ ROZR[",3060:" 47I\\WFRWQYO[ RXFTSSVRX RYFUSSXQZO[M[KZJXJVKULUMVMWLXKX RKVKWLWLVKV RTF\\F RUFXG RVFWH RZFXH R[FXG",3061:" 72F]OFI[ RPFJ[ RQFK[ R\\GMR RQOU[ RROV[ RSNWZ RLFTF RYF_F RF[N[ RR[Y[ RMFPG RNFOH RRFPH RSFPG RZF\\G R^F\\G RJZG[ RJYH[ RKYL[ RJZM[ RUZS[ RUYT[ RVYX[",3062:" 49H\\QFK[ RRFL[ RSFM[ RNFVF RH[W[YU ROFRG RPFQH RTFRH RUFRG RLZI[ RLYJ[ RMYN[ RLZO[ RR[WZ RT[XX RV[YU",3063:" 68D`MFGZ RMGNYN[ RNFOY ROFPX R[FPXN[ R[FU[ R\\FV[ R]FW[ RJFOF R[F`F RD[J[ RR[Z[ RKFMG RLFMH R^F\\H R_F\\G RGZE[ RGZI[ RVZS[ RVYT[ RWYX[ RVZY[",3064:" 43F_OFIZ ROFV[ RPFVX RQFWX R\\GWXV[ RLFQF RYF_F RF[L[ RMFPG RNFPH RZF\\G R^F\\G RIZG[ RIZK[",3065:" 56G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF ROIMLLOKSKWLY RUXWUXRYNYJXH RSFQGOJNLMOLSLXMZN[ RQ[SZUWVUWRXNXIWGVF",3066:" 60F]OFI[ RPFJ[ RQFK[ RLFXF[G\\I\\K[NYPUQMQ RZG[I[KZNXP RXFYGZIZKYNWPUQ RF[N[ RMFPG RNFOH RRFPH RSFPG RJZG[ RJYH[ RKYL[ RJZM[",3067:" 78G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF ROIMLLOKSKWLY RUXWUXRYNYJXH RSFQGOJNLMOLSLXMZN[ RQ[SZUWVUWRXNXIWGVF RLXMVOUPURVSXT]U^V^W] RT^U_V_ RSXS_T`V`W]W\\",3068:" 78F^OFI[ RPFJ[ RQFK[ RLFWFZG[I[KZNYOVPNP RYGZIZKYNXO RWFXGYIYKXNVP RRPTQURWXXYYYZX RWYXZYZ RURVZW[Y[ZXZW RF[N[ RMFPG RNFOH RRFPH RSFPG RJZG[ RJYH[ RKYL[ RJZM[",3069:" 44G^ZH[H\\F[L[JZHYGVFRFOGMIMLNNPPVSWUWXVZ RNLONVRWT ROGNINKOMUPWRXTXWWYVZS[O[LZKYJWJUI[JYKY",3070:" 54G]TFN[ RUFO[ RVFP[ RMFKL R]F\\L RMF]F RK[S[ RNFKL RPFLI RRFMG RYF\\G RZF\\H R[F\\I R\\F\\L ROZL[ ROYM[ RPYQ[ ROZR[",3071:" 48F_NFKQJUJXKZN[R[UZWXXU\\G ROFLQKUKYLZ RPFMQLULYN[ RKFSF RYF_F RLFOG RMFNH RQFOH RRFOG RZF\\G R^F\\G",3072:" 35H\\NFNHOYO[ ROGPX RPFQW R[GO[ RLFSF RXF^F RMFNH RQFPH RRFOG RYF[G R]F[G",3073:" 57E_MFMHKYK[ RNGLX ROFMW RUFMWK[ RUFUHSYS[ RVGTX RWFUW R]GUWS[ RJFRF RUFWF RZF`F RKFNG RLFMH RPFNI RQFNG R[F]G R_F]G",3074:" 54G]NFT[ ROFU[ RPFV[ R[GIZ RLFSF RXF^F RF[L[ RQ[X[ RMFOH RQFPH RRFPG RYF[G R]F[G RIZG[ RIZK[ RTZR[ RTYS[ RUYW[",3075:" 51G]MFQPN[ RNFRPO[ ROFSPP[ R\\GSP RKFRF RYF_F RK[S[ RLFNG RPFOH RQFNG RZF\\G R^F\\G ROZL[ ROYM[ RPYQ[ ROZR[",3076:" 35G]ZFH[ R[FI[ R\\FJ[ R\\FNFLL RH[V[XU ROFLL RPFMI RRFNG RR[VZ RT[WX RU[XU",3101:" 54I]NPNOOOOQMQMONNPMTMVNWOXQXXYZZ[ RVOWQWXXZ RTMUNVPVXWZZ[[[ RVRUSPTMULWLXMZP[S[UZVX RNUMWMXNZ RUSQTOUNWNXOZP[",3102:" 47G\\LFL[MZOZ RMGMY RIFNFNZ RNPONQMSMVNXPYSYUXXVZS[Q[OZNX RWPXRXVWX RSMUNVOWRWVVYUZS[ RJFLG RKFLH",3103:" 34H[WQWPVPVRXRXPVNTMQMNNLPKSKULXNZQ[S[VZXX RMPLRLVMX RQMONNOMRMVNYOZQ[",3104:" 52H]VFV[[[ RWGWZ RSFXFX[ RVPUNSMQMNNLPKSKULXNZQ[S[UZVX RMPLRLVMX RQMONNOMRMVNYOZQ[ RTFVG RUFVH RXYY[ RXZZ[",3105:" 41H[MSXSXQWOVNSMQMNNLPKSKULXNZQ[S[VZXX RWRWQVO RMPLRLVMX RVSVPUNSM RQMONNOMRMVNYOZQ[",3106:" 40KYWHWGVGVIXIXGWFTFRGQHPKP[ RRHQKQZ RTFSGRIR[ RMMVM RM[U[ RPZN[ RPYO[ RRYS[ RRZT[",3107:" 89I\\XNYOZNYMXMVNUO RQMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM ROONQNSOU RUUVSVQUO RQMPNOPOTPVQW RSWTVUTUPTNSM RNUMVLXLYM[N\\Q]U]X^Y_ RN[Q\\U\\X] RLYMZP[U[X\\Y^Y_XaUbObLaK_K^L\\O[ RObMaL_L^M\\O[",3108:" 65G^LFL[ RMGMZ RIFNFN[ RNQOOPNRMUMWNXOYRY[ RWOXRXZ RUMVNWQW[ RI[Q[ RT[\\[ RJFLG RKFLH RLZJ[ RLYK[ RNYO[ RNZP[ RWZU[ RWYV[ RYYZ[ RYZ[[",3109:" 43LXQFQHSHSFQF RRFRH RQGSG RQMQ[ RRNRZ RNMSMS[ RN[V[ ROMQN RPMQO RQZO[ RQYP[ RSYT[ RSZU[",3110:" 41KXRFRHTHTFRF RSFSH RRGTG RRMR^QaPb RSNS]R` ROMTMT]S`RaPbMbLaL_N_NaMaM` RPMRN RQMRO",3111:" 61G]LFL[ RMGMZ RIFNFN[ RWNNW RRSY[ RRTX[ RQTW[ RTM[M RI[Q[ RT[[[ RJFLG RKFLH RUMWN RZMWN RLZJ[ RLYK[ RNYO[ RNZP[ RWYU[ RVYZ[",3112:" 31LXQFQ[ RRGRZ RNFSFS[ RN[V[ ROFQG RPFQH RQZO[ RQYP[ RSYT[ RSZU[",3113:" 99AcFMF[ RGNGZ RCMHMH[ RHQIOJNLMOMQNROSRS[ RQORRRZ ROMPNQQQ[ RSQTOUNWMZM\\N]O^R^[ R\\O]R]Z RZM[N\\Q\\[ RC[K[ RN[V[ RY[a[ RDMFN REMFO RFZD[ RFYE[ RHYI[ RHZJ[ RQZO[ RQYP[ RSYT[ RSZU[ R\\ZZ[ R\\Y[[ R^Y_[ R^Z`[",3114:" 65G^LML[ RMNMZ RIMNMN[ RNQOOPNRMUMWNXOYRY[ RWOXRXZ RUMVNWQW[ RI[Q[ RT[\\[ RJMLN RKMLO RLZJ[ RLYK[ RNYO[ RNZP[ RWZU[ RWYV[ RYYZ[ RYZ[[",3115:" 46H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RMPLRLVMX RWXXVXRWP RQMONNOMRMVNYOZQ[ RS[UZVYWVWRVOUNSM",3116:" 60G\\LMLb RMNMa RIMNMNb RNPONQMSMVNXPYSYUXXVZS[Q[OZNX RWPXRXVWX RSMUNVOWRWVVYUZS[ RIbQb RJMLN RKMLO RLaJb RL`Kb RN`Ob RNaPb",3117:" 55H\\VNVb RWOWa RUNWNXMXb RVPUNSMQMNNLPKSKULXNZQ[S[UZVX RMPLRLVMX RQMONNOMRMVNYOZQ[ RSb[b RVaTb RV`Ub RX`Yb RXaZb",3118:" 43IZNMN[ RONOZ RKMPMP[ RWOWNVNVPXPXNWMUMSNQPPS RK[S[ RLMNN RMMNO RNZL[ RNYM[ RPYQ[ RPZR[",3119:" 43J[WOXMXQWOVNTMPMNNMOMQNSPTUUWVXY RNNMQ RNRPSUTWU RXVWZ RMONQPRUSWTXVXYWZU[Q[OZNYMWM[NY",3120:" 22KZPHPVQYRZT[V[XZYX RQHQWRY RPHRFRWSZT[ RMMVM",3121:" 43G^LMLVMYNZP[S[UZVYWW RMNMWNY RIMNMNWOZP[ RWMW[\\[ RXNXZ RTMYMY[ RJMLN RKMLO RYYZ[ RYZ[[",3122:" 31I[LMR[ RMMRY RNMSY RXNSYR[ RJMQM RTMZM RKMNO RPMNN RVMXN RYMXN",3123:" 45F^JMN[ RKMNX RLMOX RRMOXN[ RRMV[ RSMVX RRMTMWX RZNWXV[ RGMOM RWM]M RHMKN RNMLN RXMZN R\\MZN",3124:" 48H\\LMV[ RMMW[ RNMX[ RWNMZ RJMQM RTMZM RJ[P[ RS[Z[ RKMMN RPMNN RUMWN RYMWN RMZK[ RMZO[ RVZT[ RWZY[",3125:" 40H[LMR[ RMMRY RNMSY RXNSYP_NaLbJbIaI_K_KaJaJ` RJMQM RTMZM RKMNO RPMNN RVMXN RYMXN",3126:" 41I[VML[ RWMM[ RXMN[ RXMLMLQ RL[X[XW RMMLQ RNMLP ROMLO RQMLN RS[XZ RU[XY RV[XX RW[XW",3151:" 50G]WMUTUXVZW[Y[[Y\\W RXMVTVZ RWMYMWTVX RUTUQTNRMPMMNKQJTJVKYLZN[P[RZSYTWUT RNNLQKTKWLY RPMNOMQLTLWMZN[",3152:" 52I\\PFNMMSMWNYOZQ[S[VZXWYTYRXOWNUMSMQNPOOQNT RQFOMNQNWOZ RVYWWXTXQWO RMFRFPMNT RS[UYVWWTWQVNUM RNFQG ROFPH",3153:" 34I[WQWPVPVRXRXPWNUMRMONMQLTLVMYNZP[R[UZWW ROONQMTMWNY RRMPOOQNTNWOZP[",3154:" 58G]YFVQUUUXVZW[Y[[Y\\W RZFWQVUVZ RVF[FWTVX RUTUQTNRMPMMNKQJTJVKYLZN[P[RZSYTWUT RMOLQKTKWLY RPMNOMQLTLWMZN[ RWFZG RXFYH",3155:" 33I[MVQUTTWRXPWNUMRMONMQLTLVMYNZP[R[UZWX ROONQMTMWNY RRMPOOQNTNWOZP[",3156:" 45JZZHZGYGYI[I[GZFXFVGTISKRNQRO[N^M`Kb RTJSMRRP[O^ RXFVHUJTMSRQZP]O_MaKbIbHaH_J_JaIaI` RNMYM",3157:" 57H]XMT[S^QaOb RYMU[S_ RXMZMV[T_RaObLbJaI`I^K^K`J`J_ RVTVQUNSMQMNNLQKTKVLYMZO[Q[SZTYUWVT RNOMQLTLWMY RQMOONQMTMWNZO[",3158:" 41G]OFI[K[ RPFJ[ RLFQFK[ RMTOPQNSMUMWNXPXSVX RWNWRVVVZ RWPUUUXVZW[Y[[Y\\W RMFPG RNFOH",3159:" 35KXSFSHUHUFSF RTFTH RSGUG RLQMOOMQMRNSPSSQX RRNRRQVQZ RRPPUPXQZR[T[VYWW",3160:" 45KXUFUHWHWFUF RVFVH RUGWG RMQNOPMRMSNTPTSRZQ]P_NaLbJbIaI_K_KaJaJ` RSNSSQZP]O_ RSPRTP[O^N`Lb",3161:" 49G]OFI[K[ RPFJ[ RLFQFK[ RYOYNXNXPZPZNYMWMUNQROS RMSOSQTRUTYUZWZ RQUSYTZ ROSPTRZS[U[WZYW RMFPG RNFOH",3162:" 26LXTFQQPUPXQZR[T[VYWW RUFRQQUQZ RQFVFRTQX RRFUG RSFTH",3163:" 61@cAQBODMFMGNHPHSF[ RGNGSE[ RGPFTD[F[ RHSJPLNNMPMRNSPSSQ[ RRNRSP[ RRPQTO[Q[ RSSUPWNYM[M]N^P^S\\X R]N]R\\V\\Z R]P[U[X\\Z][_[aYbW",3164:" 42F^GQHOJMLMMNNPNSL[ RMNMSK[ RMPLTJ[L[ RNSPPRNTMVMXNYPYSWX RXNXRWVWZ RXPVUVXWZX[Z[\\Y]W",3165:" 46H\\QMNNLQKTKVLYMZP[S[VZXWYTYRXOWNTMQM RNOMQLTLWMY RVYWWXTXQWO RQMOONQMTMWNZP[ RS[UYVWWTWQVNTM",3166:" 66G]HQIOKMMMNNOPOSNWKb RNNNSMWJb RNPMTIb ROTPQQORNTMVMXNYOZRZTYWWZT[R[PZOWOT RXOYQYTXWWY RVMWNXQXTWWVYT[ RFbNb RJaGb RJ`Hb RK`Lb RJaMb",3167:" 57G\\WMQb RXMRb RWMYMSb RUTUQTNRMPMMNKQJTJVKYLZN[P[RZSYTWUT RMOLQKTKWLY RPMNOMQLTLWMZN[ RNbVb RRaOb RR`Pb RS`Tb RRaUb",3168:" 30I[JQKOMMOMPNQPQTO[ RPNPTN[ RPPOTM[O[ RYOYNXNXPZPZNYMWMUNSPQT",3169:" 47J[XPXOWOWQYQYOXNUMRMONNONQOSQTTUVVWX RONNQ RORQSTTVU RWVVZ RNOOQQRTSVTWVWXVZS[P[MZLYLWNWNYMYMX",3170:" 23KYTFQQPUPXQZR[T[VYWW RUFRQQUQZ RTFVFRTQX RNMXM",3171:" 42F^GQHOJMLMMNNPNSLX RMNMRLVLZ RMPKUKXLZN[P[RZTXVU RXMVUVXWZX[Z[\\Y]W RYMWUWZ RXMZMXTWX",3172:" 29H\\IQJOLMNMONPPPSNX RONORNVNZ ROPMUMXNZP[R[TZVXXUYQYMXMXNYP",3173:" 48CaDQEOGMIMJNKPKSIX RJNJRIVIZ RJPHUHXIZK[M[OZQXRU RTMRURXSZU[W[YZ[X]U^Q^M]M]N^P RUMSUSZ RTMVMTTSX",3174:" 51G]JQLNNMPMRNSPSR RPMQNQRPVOXMZK[I[HZHXJXJZIZIY RRORRQVQY RZOZNYNYP[P[NZMXMVNTPSRRVRZS[ RPVPXQZS[U[WZYW",3175:" 49G]HQIOKMMMNNOPOSMX RNNNRMVMZ RNPLULXMZO[Q[SZUXWT RYMU[T^RaPb RZMV[T_ RYM[MW[U_SaPbMbKaJ`J^L^L`K`K_",3176:" 39H\\YMXOVQNWLYK[ RXOOOMPLR RVORNONNO RVORMOMMOLR RLYUYWXXV RNYRZUZVY RNYR[U[WYXV",3200:" 50H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF RNHMJLNLSMWNY RVYWWXSXNWJVH RQFOGNIMNMSNXOZQ[ RS[UZVXWSWNVIUGSF",3201:" 28H\\QHQ[ RRHRZ RSFS[ RSFPINJ RM[W[ RQZO[ RQYP[ RSYT[ RSZU[",3202:" 62H\\LJLKMKMJLJ RLIMINJNKMLLLKKKJLHMGPFTFWGXHYJYLXNUPPRNSLUKXK[ RWHXJXLWN RTFVGWJWLVNTPPR RKYLXNXSYWYYX RNXSZWZXY RNXS[W[XZYXYV",3203:" 76H\\LJLKMKMJLJ RLIMINJNKMLLLKKKJLHMGPFTFWGXIXLWNTO RVGWIWLVN RSFUGVIVLUNSO RQOTOVPXRYTYWXYWZT[P[MZLYKWKVLUMUNVNWMXLX RWRXTXWWY RSOUPVQWTWWVZT[ RLVLWMWMVLV",3204:" 28H\\SIS[ RTHTZ RUFU[ RUFJUZU RP[X[ RSZQ[ RSYR[ RUYV[ RUZW[",3205:" 55H\\MFKPMNPMSMVNXPYSYUXXVZS[P[MZLYKWKVLUMUNVNWMXLX RWPXRXVWX RSMUNVOWRWVVYUZS[ RLVLWMWMVLV RMFWF RMGUG RMHQHUGWF",3206:" 69H\\VIVJWJWIVI RWHVHUIUJVKWKXJXIWGUFRFOGMILKKOKULXNZQ[S[VZXXYUYTXQVOSNQNOONPMR RNIMKLOLUMXNY RWXXVXSWQ RRFPGOHNJMNMUNXOZQ[ RS[UZVYWVWSVPUOSN",3207:" 43H\\KFKL RYFYIXLTQSSRWR[ RSRRTQWQ[ RXLSQQTPWP[R[ RKJLHNFPFUIWIXHYF RMHNGPGRH RKJLINHPHUI",3208:" 79H\\PFMGLILLMNPOTOWNXLXIWGTFPF RNGMIMLNN RVNWLWIVG RPFOGNINLONPO RTOUNVLVIUGTF RPOMPLQKSKWLYMZP[T[WZXYYWYSXQWPTO RMQLSLWMY RWYXWXSWQ RPONPMSMWNZP[ RT[VZWWWSVPTO",3209:" 69H\\MWMXNXNWMW RWOVQURSSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNVOWOXNYMY RMPLNLKMI RVHWIXLXRWVVX RQSORNQMNMKNHOGQF RSFUGVIWLWSVWUYTZR[",3210:" 16MXRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",3211:" 24MXTZS[R[QZQYRXSXTYT\\S^Q_ RRYRZSZSYRY RS[T\\ RTZS^",3212:" 32MXRMQNQORPSPTOTNSMRM RRNROSOSNRN RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",3213:" 40MXRMQNQORPSPTOTNSMRM RRNROSOSNRN RTZS[R[QZQYRXSXTYT\\S^Q_ RRYRZSZSYRY RS[T\\ RTZS^",3214:" 34MXRFQGQIRQ RRFRTST RRFSFST RSFTGTISQ RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",3215:" 52I\\MKMJNJNLLLLJMHNGPFTFWGXHYJYLXNWOSQ RWHXIXMWN RTFVGWIWMVOUP RRQRTSTSQRQ RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",3216:" 24MXTFRGQIQLRMSMTLTKSJRJQK RRKRLSLSKRK RRGQK RQIRJ",3217:" 24MXTHSIRIQHQGRFSFTGTJSLQM RRGRHSHSGRG RSITJ RTHSL",3218:" 74E_[O[NZNZP\\P\\N[MZMYNXPVUTXRZP[L[JZIXIUJSPORMSKSIRGPFNGMIMLNOPRTWWZY[[[\\Y\\X RKZJXJUKSLR RRMSI RSKRG RNGMK RNNPQTVWYYZ RN[LZKXKULSPO RMINMQQUVXYZZ[Z\\Y",3219:" 56H\\PBP_ RTBT_ RXKXJWJWLYLYJXHWGTFPFMGKIKLLNOPURWSXUXXWZ RLLMNOOUQWRXT RMGLILKMMONUPXRYTYWXYWZT[P[MZLYKWKUMUMWLWLV",3220:" 8G^[BIbJb R[B\\BJb",3221:" 27KYUBSDQGOKNPNTOYQ]S`Ub RQHPKOOOUPYQ\\ RSDRFQIPOPUQ[R^S`",3222:" 27KYOBQDSGUKVPVTUYS]Q`Ob RSHTKUOUUTYS\\ RQDRFSITOTUS[R^Q`",3223:" 39JZRFQGSQRR RRFRR RRFSGQQRR RMINIVOWO RMIWO RMIMJWNWO RWIVINOMO RWIMO RWIWJMNMO",3224:" 8F_JQ[Q[R RJQJR[R",3225:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",3226:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",3227:" 11NWSFRGRM RSGRM RSFTGRM",3228:" 22I[NFMGMM RNGMM RNFOGMM RWFVGVM RWGVM RWFXGVM",3229:" 30KYQFOGNINKOMQNSNUMVKVIUGSFQF RQFNIOMSNVKUGQF RSFOGNKQNUMVISF",3250:" 58H]TFQGOIMLLOKSKVLYMZO[Q[TZVXXUYRZNZKYHXGVFTF RQHOJNLMOLSLWMY RTYVWWUXRYNYJXH RTFRGPJOLNOMSMXNZO[ RQ[SZUWVUWRXNXIWGVF",3251:" 20H]TJO[Q[ RWFUJP[ RWFQ[ RWFTIQKOL RTJRKOL",3252:" 52H]OKOJPJPLNLNJOHPGSFVFYGZIZKYMWOMUKWI[ RXGYIYKXMVOSQ RVFWGXIXKWMUOMU RJYKXMXRYWYXX RMXRZWZ RMXR[U[WZXXXW",3253:" 64H]OKOJPJPLNLNJOHPGSFVFYGZIZKYMXNVOSP RXGYIYKXMWN RVFWGXIXKWMUOSP RQPSPVQWRXTXWWYUZR[O[LZKYJWJULULWKWKV RVRWTWWVY RSPUQVSVWUYTZR[",3254:" 15H]WJR[T[ RZFXJS[ RZFT[ RZFJUZU",3255:" 49H]QFLP RQF[F RQGYG RPHUHYG[F RLPMOPNSNVOWPXRXUWXUZQ[N[LZKYJWJULULWKWKV RVPWRWUVXTZ RSNUOVQVUUXSZQ[",3256:" 61H]YJYIXIXKZKZIYGWFTFQGOIMLLOKSKVLYMZO[R[UZWXXVXSWQVPTOQOOPNQMS RPINLMOLSLWMY RVXWVWSVQ RTFRGPJOLNOMSMXNZO[ RR[TZUYVVVRUPTO",3257:" 39H]NFLL R[FZIXLTQRTQWP[ RRSPWO[ RXLRRPUOWN[P[ RMIPFRFWI ROGRGWI RMIOHRHWIYIZH[F",3258:"104H]SFPGOHNJNMOOQPTPWOYNZLZIYGWFSF RUFPG RPHOJONPO ROORP RSPWO RXNYLYIXG RYGUF RSFQHPJPNQP RTPVOWNXLXHWF RQPMQKSJUJXKZN[R[VZWYXWXTWRVQTP RRPMQ RNQLSKUKXLZ RKZP[VZ RVYWWWTVR RVQSP RQPOQMSLULXMZN[ RR[TZUYVWVSUQTP",3259:" 61H]XNWPVQTRQROQNPMNMKNIPGSFVFXGYHZKZNYRXUVXTZQ[N[LZKXKVMVMXLXLW ROPNNNKOI RXHYJYNXRWUUX RQRPQOOOKPHQGSF RVFWGXIXNWRVUUWSZQ[",3260:" 16MXPXOYOZP[Q[RZRYQXPX RPYPZQZQYPY",3261:" 22MXQ[P[OZOYPXQXRYR[Q]P^N_ RPYPZQZQYPY RQ[Q\\P^",3262:" 32MXSMRNROSPTPUOUNTMSM RSNSOTOTNSN RPXOYOZP[Q[RZRYQXPX RPYPZQZQYPY",3263:" 38MXSMRNROSPTPUOUNTMSM RSNSOTOTNSN RQ[P[OZOYPXQXRYR[Q]P^N_ RPYPZQZQYPY RQ[Q\\P^",3264:" 34MXVFUFTGRT RVGUGRT RVGVHRT RVFWGWHRT RPXOYOZP[Q[RZRYQXPX RPYPZQZQYPY",3265:" 59H]OKOJPJPLNLNJOHPGSFWFZG[I[KZMYNWOSPQQQSSTTT RUFZG RYGZIZKYMXNVO RWFXGYIYKXMWNSPRQRSST RPXOYOZP[Q[RZRYQXPX RPYPZQZQYPY",3266:" 22MXWFUGTHSJSLTMUMVLVKUJTJ RUGTITJ RTKTLULUKTK",3267:" 22MXVIUITHTGUFVFWGWIVKULSM RUGUHVHVGUG RVIVJUL",3268:" 72E_\\O\\N[N[P]P]N\\M[MYNWPRXPZN[K[HZGXGVHTISKRPPROTMUKUITGRFPGOIOLPRQURWTZV[X[YYYX RL[HZ RIZHXHVITJSLR RPPQSTYVZ RK[JZIXIVJTKSMRRO ROLPOQRSVUYWZXZYY",3269:" 52H]TBL_ RYBQ_ RZKZJYJYL[L[JZHYGVFRFOGMIMLNNPPVSWUWXVZ RNLONVRWT ROGNINKOMUPWRXTXWWYVZS[O[LZKYJWJULULWKWKV",3270:" 8G^_BEbFb R_B`BFb",3271:" 32JZZBXCUERHPKNOMSMXN\\O_Qb RSHQKOONTN\\ RZBWDTGRJQLPOOSN\\ RNTO]P`Qb",3272:" 32JZSBUEVHWLWQVUTYR\\O_LaJb RVHVPUUSYQ\\ RSBTDUGVP RVHUQTUSXRZP]M`Jb",3273:" 39J[TFSGUQTR RTFTR RTFUGSQTR ROIPIXOYO ROIYO ROIOJYNYO RYIXIPOOO RYIOO RYIYJONOO",3274:" 8F_JQ[Q[R RJQJR[R",3275:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",3276:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",3277:" 11MWUFTGRM RUGRM RUFVGRM",3278:" 22H\\PFOGMM RPGMM RPFQGMM RZFYGWM RZGWM RZF[GWM",3279:" 30KZSFQGPIPKQMSNUNWMXKXIWGUFSF RSFPIQMUNXKWGSF RUFQGPKSNWMXIUF",3301:" 62F^IHJIIJHIIGKFMFOGPHQKQOPRNTLUIV ROHPKPPOR RMFNGOJOPNSLU RLVOY RKVOZ RIVN[UV R\\G[H\\H\\G[FYFWGVHUJUYW[[W RWHVJVXXZ RYFXGWJWWYY",3302:"101E_GQGRHSJSLRLOKMIJIHKF RKOIK RJSKRKPIMHKHIIGKFNFPGQHRJRRQUOW RPHQJQT RNFOGPJPUOW RRISGUFWFYGZH[J\\K RYHZJ RWFXGYJZK\\K R\\KRP RYM[O\\R\\U[XYZV[S[PZJWIWHX RXNYN[P RVNYO[Q\\S RTZRZLWKW RZYXZUZRYNWKVIVHXHZI[JZIY",3303:" 79F^RHPFNFLGJJINIRJVLYNZQ[T[WZYY[W RLHKJJMJRKVMYPZ RNFMGLIKMKQLUMWOYRZUZXY[W RUFRHQIPKPLQNTPURUT RQKQLUPUQ RQIQJRLUNVPVRUTSURUPTOR RUFVGXHZH RUGVHWH RTGVIXIZH[G",3304:" 79E_HLHKIIKGNFRFUGWHYJ[M\\Q\\U[XYZV[S[PZJWIWHX RKHMGRGUHWIYK[N RTZRZLWKW RHKJIMHRHUIWJYL[O\\R RZYXZUZRYNWKVIVHXHZI[JZIY RPHMKLMLONSNU RMNMONQNR RMKMMOQOSNUMVKVJUJT",3305:" 95F^RHPFNFLGJJINIRJVLYNZQ[T[WZYY[W RLHKJJMJRKVMYPZ RNFMGLIKMKQLUMWOYRZUZXY[W RUFRHQIPKPLQNTPURUT RQKQLUPUQ RQIQJRLUNVPVRUTSURUPTOR RUFVGXHZH RUGVHWH RTGVIXIZH[G RUNYK RYKZL\\L RXLYMZM RWMXNZN\\L",3306:" 94F^MNKMJKJIKGNFQFTGXI RKHMGRGUH RJKKIMHRHXIZI[H[GZFYF RSHRIQKQMROVSWVWYV\\U]S^ RTPWSXVXYW[ RQMSOVQXSYVYYX[V]S^O^L]K\\JZJWLTLRKQ RL\\K[KWLU RO^M]L[LWMTMRLQJQIRIS RUPYL RYLZM\\M RXMYNZN RWNXOZO\\M",3307:" 99E_UJTHSGQFNFKGIJHNHRIUJWLYNZQ[T[WZYY[W\\T\\Q[NYL RKHJJIMIRJUKW RZW[U[QZNYM RNFLGKIJMJRKVLXNZ RWZYXZUZQYOWM RUFRHPJOLOMPOSQTSTU RPLPMTQTR RPJPKQMTOUQUSTURVQVOUNS RTOYLZJ R\\FZJ RYG]I R\\F[GYGZHZJ[I]I\\H\\F",3308:" 92F_RFPGNIMKMMNOPQQSQU RNLNMQQQR RNINKOMQORQRSQUPVNWLWJVIUHSHQIPJQIR RRFTHVHXG RQGSH RPGQHSIUIXG RRPYK RYK[N\\Q\\T[WYYVZR[ RXLZN[Q[UZW RVMWMYOZRZVYXXYVZ RVZTZRYPYNZM\\N^P_R_T^ RSZQZ RR[PZNZ",3309:" 83F_PPNPLOKNJLJJKHLGOFQFTGWJYK RLHNGRGTHUI RJJKIMHQHTIVJYK[K\\J\\H[GYG RJXKYJZIYIWJVLVNWPYR\\T^ RNXOYQ\\R] RLVMWNYP\\Q]S^V^X]Y\\ZZZWYUWRVPVO RYXYWVRVQ RX]Y[YYXWVTURUPWNYNZOZP",3310:" 83F_PPNPLOKNJLJJKHLGOFQFTGWJYK RLHNGRGTHUI RJJKIMHQHTIVJYK[K\\J\\H[GYG RJXKYJZIYIWJVLVNWPYR\\T^ RNXOYQ\\R] RLVMWNYP\\Q]S^V^X]Y\\ZZZWYUWRVPVO RYXYWVRVQ RX]Y[YYXWVTURUPWNYNZOZP",3311:" 81E_[KZIXGUFRFOGMILKLNMQPWPYN[ RMNMOPUPV RNHMJMMNOPSQVQXPZN[L[JZ RHVJZ RGYKW RHVHXGYIYJZJXKWIWHV RNONMOKQJTJVKXMYM RUKWM RRJTKULVN RYMPQ RUOYXZY[Y RTPXXZZ RSPWYY[\\X",3312:" 73G^ZSYTVTUSUQVOXLYJYH RVQVPYLYK RWTVSVRWPYNZLZJYHXGUFPFMGLHKJKLLNNQOSOTNV RLKLLOQOR RLHLJMLOOPQPSOUMWJY RMWOWRYUZXZZY RNXOXSZTZ RJYLXMXQZT[V[YZZY[W",3313:"128BbEQERFSHSJRJOIMGJGHIF RIOGK RHSIRIPGMFKFIGGIFKFMGOIPLPROUNWLYI[HZGZ RNIOLORNUMW RJZIYHY RKFMHNKNRMVLXKYJXIXF[ RNGPFRFTGVIWLWRVUUWSYQ[PZOZ RUIVLVRUV RRZQYPY RRFTHUKUSTWSYRXQXN[ RUHVGXFZF\\G]H^J_K R\\H]J RZF[G\\J]K_K R_K\\M[NZQZT[X][`X R\\N[P[T\\W^Z R_K]M\\O\\S]W_Y",3314:" 96D`GQGRHSJSLRLOKMIJIHKF RKOIK RJSKRKPIMHKHIIGKFNFPGRISLSRRUQWOYL[KZIZG[ RQIRKRRQUPWOX RMZKYIY RNFPHQKQRPVNYLXJXG[ RRHSGUFWFYGZH[J\\K RYHZJ RWFXGYJZK\\K R\\KYMXNWQWTXXZ[]X RYNXPXTYW[Z R\\KZMYOYSZW\\Y",3315:" 72D`PFNGLIKKKMMQMS RLLLMMOMP RLILKNONQMSLTJTISIR RPFQGWIZK[M\\P\\S[VZXXZU[R[OZIWHWGX RPGQHWJYKZL RPFPHQIWKYL[N\\P RSZQZKWJW RYYWZTZQYMWJVHVGXGZH[IZHY",3316:"100E`HQHRISKSMRMOLMJJJHLF RLOJK RKSLRLPJMIKIIJGLFOFQGRHSJSU RSWS\\R^P_M_L^L\\M[N\\M] RQHRJR\\Q^ ROFPGQJQU RQWQ\\P^O_ RSJXF RXFZI[K\\O\\R[UYXV[ RWGZK[N[O RVHXJZM[P[SZVYX RWYUVSU RQUOVMX RWZUWSVPV RV[TXSW RQWOWMX",3317:" 88D`PFNGLIKKKMMQMS RLLLMMOMP RLILKNONQMSLTJTISIR RPFQGWIZK[M\\P\\S[VZX RXZU[R[OZIWHWGX RPGQHWJYKZL RPFPHQIWKYL[N\\P RSZQZKWJW RXZTZQYMWJVHVGXGZH[IZHY RTXVVXV\\Z]Z RWWXW[Z RUWVWZ[\\[^Y",3318:" 96D`GQGRHSJSLRLOKMIJIHKF RKOIK RJSKRKPIMHKHIIGKFNFPGQHRJRVQXOZM[K[IZ RPHQJQVPX RNFOGPJPVOYM[ RGVIZ RFYJW RGVGXFYHYIZIXJWHWGV RRISGUFWFYGZH[J\\K RYHZJ RWFXGYJZK\\K R\\KRP RTOXYZ[]X RUOYX[Z RVNZX[Y\\Y",3319:" 83E`\\H[G\\F]G]I\\KZKVISHOHKIIK RYJVHSGOGLH R]I\\JZJVGSFOFLGJIIKHNHRIUJWLYNZQ[U[XZZY\\W]T]Q\\OZNWNUOSRQSOS RLXNYQZUZYY RIUKWMXPYUYYX[W\\V]T RXOWOSSRS R]Q[OYOWPUSSTQTOSNQNOOMQL",3320:" 81F_LNJMIKIIJGMFRFUGYJ[J\\I RJHLGRGUHXJ RIKJILHRHUIYK[K\\I\\G[FZG[H RUIRLQNQPSTSV RRORPSRSS RRLRNTRTTSVRWPWOVOT RJYKZJ[IZIXJVLVOWSYVZYZ[Y RLWMWSZUZ RIXJWKWMXQZT[W[ZZ\\X",3321:" 45G]JHKHLILWJX RKGMHMXPZ RIILFNHNWPYRY RJXKXMYO[RYVV RTHUHVIVYX[[X RUGWHWYYZ RSIVFYHXIXXYYZY",3322:"100D`GQGRHSJSLRLOKMIJIHKF RKOIK RJSKRKPIMHKHIIGKFNFPGQHRJRRQUOW RPHQJQT RNFOGPJPUOW RRISGUFWFYG[J\\K RYHZJ RWFXGYJZK\\K RZKXKWLWNXP[R\\T RXO[Q RWMXN[P\\R\\V[XYZW[S[PZJWIWHX RTZRZLWKW RZYXZUZRYNWKVIVHXHZI[JZIY",3323:"143BcEQERFSHSJRJOIMGJGHIF RIOGK RHSIRIPGMFKFIGGIFLFNGOHPJPNOQMTKV RNHOJOONR RLFMGNJNOMSKV RNGPFSFUG RWFTGSISMTPVSWUWWVY RTMTNWSWT RWFUGTITLUNWQXTXVWXUZS[O[MZKXIWGWFX RNZKWJW RQ[OZLWJVGVFXFZG[HZGY RWFZF\\G^J_K R\\H]J RZF[G\\J]K_K R]K[KZLZN[P^R_T R[O^Q RZM[N^P_R_W^Y]Z[[X[UZ RYZXZVY R^Y\\ZZZXYWX",3324:" 86F^KHMHOIPJQMQO RQQQUPXM[KZI[ RNZLYKY ROYNYLXI[ RMGPHQIRLRUSWUYWZ RIINFPGRISLSO RSQSTTWUXWYYY RQURXTZV[[X RSLTIWFYG[F RVGXHYH RUHVHXI[F RKSMOQO RSOWOYM RMPWP RKSMQQQ RSQWQYM",3325:" 74E_HQHRISKSMRMOLMJJJHLF RLOJK RKSLRLPJMIKIIJGLFOFQGRHSJSORRQTQUSWTW RQHRJRPQSPUSX ROFPGQJQPPTOVRYUV RSJ[F RYGYZX] RZGZXY[ R[F[VZZY\\W^T_P_M^K\\JZKYLZK[",3326:" 74F^NIOGQFTFVGWHXJXMWOVPTQ RQQOPNN RVHWIWNVO RTFUGVIVNUPTQ RMUNSORQQTQWRYTZVZZY\\W^T_P_N^KZJY RXTYVYZX\\ RTQWSXUX[W]V^T_ RO^N]LZKY RR_P^O]MZLYIYHZH\\I]J]",3401:" 46J[TMQNOONPMSMVNYO[UX RNVOYPZ RQNOPNSNUOXQZ RRNSOUPUYW[ZX RSNVPVXXZ RTMUNWOXO RWPXO RWPWXXYYY",3402:" 50J[LHMINK RTFQGOINKNXMY RPIOKOXRZ RTFRGQHPKPXRYSZ RMYNYPZQ[TZ RPPVMWOXRXUWXVYTZ RUNVOWQ RTNVPWSWUVXTZ",3403:" 27KXRNTPVOTMRNOPNRNWOYQ[UY RSNUO RPPOROWPYQZ RQOPQPVQXSZ",3404:" 47J[QFNINKOLSNVPWRWUVXTZ ROJOKSMVOWP ROHOIPJUMWOXRXUWXTZQ[ RRNNPNXMY ROPOXRZ RPOPXRYSZ RMYNYPZQ[",3405:" 27KXPUVQSMOPNRNWOYQ[UY RUQRN RPPOROWPYQZ RTRROQOPQPVQXSZ",3406:" 49LYXFWGUGSFQFPHPMOONP RVHTHRGQG RXFWHVITIRHQHPI RPKQMRNTOVOVP RNPPP RRPVP RPPPTQ` RSOPOQNQ[ RRPRTQ`",3407:" 53J[TMQNOONPMSMVNYO[UX RNWOYPZ RQNOPNSNUOXQZ RRNSOUPUXV[V]U_ RSNVPVZ RTMUNWOXO RWPXO RWPW\\V^U_S`P`N_M^M]N]N^",3408:" 50J[LHMINK RTFQGOINKNXMY RPIOKOYPZ RTFRGQHPKPXQYRY RMYOZP[SX RPPVMWOXSXWWZV\\T^Q` RUNVOWR RTNVQWTWWV[T^",3409:" 39MWRFQGQHRISHSGRF RQGSH RQHSG ROOPOQPQYS[VX RPNRORXTZ RNPQMRNTO RSPTO RSPSXTYUY",3410:" 45MWRFQGQHRISHSGRF RQGSH RQHSG ROOPOQPQ[P^O_M` RPNROR[Q] RNPQMRNTO RSPTO RSPS[R]P_M` RS[T]U^",3411:" 63KYNHOIPK RUFSGQIPKPMOONP RPPPXOY RRIQKQM RQOPOQMQXSZ RUFSHRKRO RRPRXSYTY ROYQZR[UX RRLVIWJWLUNSO RUJVKVLUN RROWOWP RNPPP RRPWP",3412:" 29MWOHPIQK RWFTGRIQKQXPY RSIRKRYTZ RWFUGTHSKSXTYUY RPYRZS[VX",3413:" 74E_GOHOIPIXHYJ[ RHNJPJXIYJZKYJX RFPIMKOKXLYJ[ RNNPOQQQXPYR[ RPNQORQRXQYRZSYRX RKPNNPMRNSPSXTYR[ RVNWOYPYY[[^X RWNZPZX\\Z RSPVNXMYN[O\\O R[P\\O R[P[X\\Y]Y",3414:" 49I[KOLOMPMXLYN[ RLNNPNXMYNZOYNX RJPMMOOOXPYN[ RRNSOUPUYW[ZX RSNVPVXXZ ROPRNTMUNWOXO RWPXO RWPWXXYYY",3415:" 41J[NPNXMY ROPOXRZ RQOPPPXRYSZ RMYNYPZQ[TZ RNPQOVMWOXRXUWXVYTZ RUNVOWQ RTNVPWSWUVXTZ",3416:" 57J[OJMLMNNQNXLZ RNYO` RNMNNOQO[ RNKNLONPQPXQXSYTZ RPYO` RSZQY RTZR[PY RNYLZ RPPVMWOXRXUWXVYTZ RUNVOWQ RTNVPWSWUVXTZ",3417:" 43J[TMQNOONPMSMVNYO[UX RNWOYPZ RQNOPNSNUOXQZ RRNSOUPUXV` RSNVPV[ RTMUNWOXO RWPXO RWPWXV`",3418:" 32KYNOOOPPPXOY RONQPQYSZ RMPPMRORXSYTY ROYQZR[UX RTNUPWOVMRO RUNVO",3419:" 42LWXFWGUGSFQFPHPMOONP RVHTHRGQG RXFWHVITIRHQHPI RPKRP RPPPTQ` RQOPOQNQ[ RRPRTQ` RNPPP",3420:" 37LXSIRLQNPONP RSISOVOVP RNPQP RSPVP RQPQXPY RROQORMRXTZ RSPSXTYUY RPYRZS[VX",3421:" 47I[KOLOMPMXLY RLNNPNXPZ RJPMMOOOXQYRZ RLYMYOZP[RZUX RVMTOUPUYW[ZX RVPWOVNUOVPVXXZ RVMXOWPWXXYYY",3422:" 47J[OKMMMONRNXMY RNNNOOROXRZ RNLNMOOPRPXRYSZ RMYNYPZQ[TZ RPPVMWOXRXUWXVYTZ RUNVOWQ RTNVPWSWUVXTZ",3423:" 72F_KKIMIOJRJXIYK[ RJNJOKRKXJYKZLYKX RJLJMKOLRLXMYK[ RONQORQRXQY RQNROSQSXVZ RLPONQMSNTPTXVYWZ RQYRYTZU[XZ RTPZM[O\\R\\T[XZYXZ RYNZO[Q RXNZP[S[UZXXZ",3424:" 44KZOOPOQPQXPXNYM[M]N_P`S`V_V^U^U_ RPNRPRXUZ RNPQMSOSXUYVZ RXYT[SZQYOYM[ RUNVPXOWMSO RVNWO",3425:" 47J[OKMMMONRNXMY RNNNOOROYQZ RNLNMOOPRPXQYRY RMYOZP[SX RPPVMWOXSXWWZV\\T^Q` RUNVOWR RTNVQWTWWV[T^",3426:" 43KYNPSMUNVPVRUTQV RSNUO RRNTOUQURTTSU RSUUWVYV]U_S`Q`O_N]N[OYQXWV RRVTWUY RQVTXUZU]T_S`",3427:" 61JZRMPNMPMRNU RNPNROT RPNOOORPT RPNROTOVNWMWKVJTJ RQNSN RRMTNVN RNUVRWUWWVYR[ RUSVUVXUY RTSUUUXTZ RTZRYOYL[ RSZQZ RR[PZNZL[",3428:" 78J[VFUGSGQFOFNHNMMOLP RTHRHPGOG RVFUHTIRIPHOHNI RNKPP RNPNTO` ROONOONO[ RPPPTO` RLPNP RPPUMWNXPXRWTSV RUNWO RTNVOWQWRVTUU RUUWVXXX[W]U_R` RUVWW RSVTVVWWYW\\V^",3429:" 62J[PIOLNNMOKP RPIPXQYO[ ROONOONOXNYOZPYOX RKPNPNXMYO[ RPPUMWNXPXRWTSV RUNWO RTNVOWQWRVTUU RUUWVXXX[W]U_R` RUVWW RSVTVVWWYW\\V^",3501:" 60G]LINGPFRFSGZW[X]X RQGRHYXZZ[YYX RNGPGQHXXYZZ[[[]X RLMMLOKPKQL RPLPM RMLOLPN RG[IYKXNXPY RJYNYOZ RG[JZMZN[PY RRJLX RNSVS",3502:"110F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RRIQJPLPU RQKQS RRIRRQTPU RRIXFZG[I[KYMUO RXGZIZK RVGXHYIYLWN RWNZP[R[X RYPZRZW RWNXOYQYX RJ[MYPXTXWY RLZOYTYVZ RJ[NZSZU[WYYX[X RUOUX RURYR RUUYU",3503:" 69E]NGLHJJILHOHSIVJXMZP[S[VZXYZW[U RJKINISKWNYQZTZWY RNGLIKKJNJRKUNXQYTYWXYW[U RPJPV RQJQT RRIRSQUPV RPJRIUFWGYGZF RTGVHXH RSHUIWIYHZF RWIWX",3504:" 72G^IFWFYGZIZX RKGWGYIYW RIFJGLHWHXIXX ROKNLMNMOKOJPJRKQMQMV RNMNT RKPNP ROKOSNUMV RI[LYOXSXVY RKZNYSYUZ RI[MZRZT[VYXXZX RRHRX RRMTNVNXM RRSTRVRXS",3505:" 94G]IHKFMFOGQF RLGNG RIHKGMHOHQF RNKMLLNLOJOIPIRJQLQLW RMMMU RJPMP RNKNTMVLW RQMRJSHTGVFXF[G RTHVGXGZH RRJSIUHWHYI[G RQURRSPTOVOXP RTPVPWQ RRRSQUQVRXP RK[NYRXWX[Y RMZPYWYZZ RK[OZVZY[[Y RQMQX",3506:" 91F]JHLFOFQGSF RMGPG RJHLGNHQHSF RPKOLNNNOLOKPKRLQNQNV ROMOT RLPOP RPKPSOUNV RSJSYRZQZMXKXIYG[ RTJTX RTPXP RPZOZMYJY RUIUOXO RXQUQUWTYP[N[LZJZG[ RSJUIXFZG\\G]F RWGYH[H RVHXIZI\\H]F RXIXW",3507:" 87E^NGLHJJILHOHRIUJWLYNZQ[U[XZZX[V[SZQYPWOUO RJKINISJV RNGLIKKJNJSKVLXNZ RYXZWZSYQ RU[WZXYYWYSXQWPUO RPJPW RQJQU RRIRTQVPW RPJRIUFWGYGZF RTGVHXH RSHUIWIYHZF RYHUOU[ RUSYS RUVYV",3508:"112F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RJ[MYPXSXUY RLZOYRYTZ RJ[NZQZS[UY RRIQJPLPU RQKQS RRIRRQTPU RRITGVFXFZG RWGXGYH RTGVGXIZG RUOWNYLZM[P[TZXX[ RXMYNZPZUYX RWNXNYPYUX[ RUOUY RURYR RUUYU",3509:" 67I\\LHNFQFTGVF ROGSG RLHNGQHTHVF RSKRLQNQOOONPNROQQQQV RRMRT ROPRP RSKSSRUQV RYHWJVMVXUZSZOXMXKYI[ RWKWW RRZQZOYLY RYHXJXVWXUZS[P[NZKZI[",3510:" 65H\\LHNFQFTGVF ROGSG RLHNGQHTHVF RSKRLQNQOOONPNROQQQQV RRMRT ROPRP RSKSSRUQV RYHWJVMVXUZ RWKWW RYHXJXVWXUZR[O[LZJXJVKULUMVLWKW RJVMV",3511:"115F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RJ[MYPXSXUY RLZNYRYTZ RJ[NZQZS[UY RRIQJPLPU RQKQS RRIRRQTPU RRITGVFXFZG RWGXGYH RTGVGXIZG RUOXLYM[N RWMYN[N R[NYQWSUU RWSYTZX[Z\\Z RYVZZ RWSXTYZZ[[[\\Z RUOUY",3512:" 85G]IHKFNFPGRF RLGOG RIHKGMHPHRF RNKMLLNLOJOIPIRJQLQLW RMMMU RJPMP RNKNTMVLW RK[NYRXWX[Y RMZPYWYZZ RK[OZVZY[[Y RSIRJQLQU RRKRS RSISRRTQU RSIUGWFYF[G RXGYGZH RUGWGYI[G RWGWX",3513:"107D`LJKKJMJOHOGPGRHQJQJU RKLKS RHPKP RLJLRKTJU RE[GYIXKXMYNYOX RHYKYMZ RE[GZJZL[M[NZOX RLJPFTJTWUYVY RPGSJSXRYSZTYSX RPPSP RNHOHRKROOO ROQRQRXQYS[VYWX RTJXF\\J\\W]Y^Y RXG[J[X]Z RXP[P RVHWHZKZOWO RWQZQZY\\[^Y ROHOX RWHWX",3514:" 84E^GIIGKFMFOGQJVUXXYY RMGOIPKVWYZ RIGKGMHOKTVVYWZY[ RVHXIZI\\H]F RWGYH[H RVHXFZG\\G]F RKOIOHPHRIQKQ RIPKP RG[IYKXNXPY RJYMYOZ RG[JZMZN[PY RKGKX RYIY[ RRLSMUNWNYM RKTMSQSST",3515:" 79E_NFLGJIIKHNHRIUJWLYNZQ[S[VZXYZW[U\\R\\N[KZIXGVFUGRIOJ RJJIMISJV RNFLHKJJMJSKVLXNZ RZV[S[MYIXH RVZXXYVZSZMYKWHUG ROJOW RPJPU RQJQTPVOW RUGUZ RUMWNXNZM RUSWRXRZS",3516:" 70H^KFLGMIMOKOJPJRKQMQMYJ[MZMbO` RMHNJN` RKPNP RKFMGNHOJO` ROKRIVFZJZX RVGYJYX RTHUHXKXY RRXUXXY RSYUYWZ RRZTZV[XYZX RRIR_ RRMTNVNXM RRSTRVRXS",3517:" 99E_NFLGJIIKHNHRIUJWLYNZP[T[VZXYZW[U\\R\\N[KZIXGVFUGRIOJ RJJIMISJV RNFLHKJJMJSKVLXNZ RZV[S[MYIXH RVZXXYVZSZMYKWHUG ROJOW RPJPU RQJQTPVOW RUGUZ RUMWNXNZM RUSWRXRZS RP[QZRZT[X`Za[a RT\\V_XaYa RRZS[VaXbZb[a",3518:"108F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RJ[MYPXRXUY RLZNYRYTZ RJ[NZQZS[UY RRIQJPLPU RQKQS RRIRRQTPU RRIUGWFYGZIZLYNXOTQRR RWGXGYIYMXN RUGWHXJXMWOTQ RTQVRWSZX[Y\\Y RWTYX[Z RTQVSXYZ[\\Y",3519:" 94G^UITHRGOF RVHTG RWGSFOFLGKHJJKLLMONWNYOZPZRYU RKKLLOMXMZN[O[QZS RKHKJLKOLYL[M\\O\\QYUU[ RIOJPLQUQVRVSUU RJQLRTRUS RIOIPJRLSSSUTUU RI[LYPXSXVY RKZNYRYUZ RI[MZRZU[ RWGUISL RRNPQ ROSMUKVJVJUKV",3520:" 71E]JJILHOHSIVKYMZP[S[VZXYZW[U RISJVLXNYQZTZWY RJJIMIQJTLWNXQYTYWXYW[U RHIIGKFOFUGYG[F RPGTHXH RHIIHKGNGTIWIYH[F RSIRJPKPV RQKQT RRJRSQUPV RWIWX",3521:" 89F^HHJFLFOGQF RKGNG RHHJGMHOHQF RKJJLIOISJVKXMZP[S[VZXYZ[\\Y RJSKVNYQZTZ RKJJNJQKTLVNXQYUYXX RUIQJPLPV RQKQT RRJRSQUPV RUIWHYFZG\\HZIZW[Y\\Y RYIZHYGXHYIYX[Z RWHXIXX RUIUY RUNXN RURXR",3522:" 72G^JFKGLILOJOIPIRJQLQLXJY RLHMJMX RJPMP RNYQYSZ RJFLGMHNJNXRXUY RJYMYPZR[UYXXZX RRJUIWHYFZG\\HZIZX RYIZHYGXHYIYW RWHXIXX RRJRX RRMTNVNXM RRSTRVRXS",3523:" 95E`HFIGJIJOHOGPGRHQJQJXHY RJHKJKX RHPKP RLYNYPZ RHFJGKHLJLXOXQY RHYKYNZO[QYTXVYW[YY\\X ROHRFTHTXWXYY RRGSHSX ROHQHRIRXQY RWYXZ RWHZF\\H\\X RZG[H[X RWHYHZIZXYY ROHOX RWHWX RONRN RORRR RWNZN RWRZR",3524:" 65G]HIJGLFNFOGWYXZZZ RMGNHVYWZ RJGLGMHUZV[X[ZZ\\X RWFYG[G\\F RWGXHZH RVHWIYI[H\\F RH[IYKXMXNY RJYLYMZ RH[IZKZM[ RWFSO RQRM[ RLPPP RSPXP",3525:" 86G^JFKGLILOJOIPIRJQLQLXJY RLHMJMX RJPMP RNYQYSZ RJFLGMHNJNXRXUY RJYMYPZR[UYXX RRJUIWHYFZG\\HZIZ^Y`WbUaQ`L` RYIZHYGXHYIYY RWHXIXXZ[ RXaV`S` RY`V_P_L` RRJRX RRMTNVNXM RRSTRVRXS",3526:" 57H\\XGWIROOSMWJ[ RVKNV RZFWJUNRRMXLZ RJHLFOGUGZF RKGOHSHWG RJHNIRIVHXG RLZNYRXVXZY RMZQYUYYZ RJ[OZUZX[ZY RMPQP RTPXP",3601:" 53J[PRNTMVMXNZP[RYUX RMVNXOYQZ RNTNVOXQYRY RNPPPSOUNVMXOWPWXXYYY RONNOQO RTOWOVNVYWZ RMOOMPNROUPUYW[YY RMORT",3602:" 44I[LHMJMXKY RNJMHNGNXQZ RLHOFOXQYRZ RKYMYOZP[RZUYWY ROPROTNUMVNXOYOWPWY RTNVOVX RROSOUPUY",3603:" 35JXNONXLYMYOZP[ ROOOYQZ RPOPXRYSYQZP[ RNORNTMUNWOXO RSNTOVO RPORNTPVPXO",3604:" 41IZRMPNMOMXKY RNONXQZ RRMOOOXQYRZ RKYMYOZP[RZUYWY RMHPFQIWOWY RPINHOGPIVOVX RMHUPUY",3605:" 32JXNONXLYMYOZP[ ROOOYQZ RPOPXRYSYQZP[ RNORNTMWQURPU RSNVQ RPORNUR",3606:" 41JWNHNXLYMYOZP[ ROHOYQZ RPHPXRYSYQZP[ RNHQGSFTGVHWH RRGSHUH RPHQGSIUIWH RKMNM RPMTM",3607:" 56I[MOMXKYLYNZO[PZRYUX RNPNYPZ ROOOXQYRY RMOOORNTMUNWOYOWPW\\V_TaRbQaO`M` RSNVPV\\ RSaQ`P` RRNSOUPUZV]V_ RTaS`Q_O_M`",3608:" 47I[LHMJMXKYLYNZO[ RNJMHNGNYPZ RLHOFOXQYO[ ROPROTNUMVNXOYOWPWYU[T] RTNVOVYU[ RROSOUPUYT]T`UbVbT`",3609:" 35MWRFPHRITHRF RRGQHSHRG RRMQNOOQPQYS[UY RRPSORNQORPRYSZ RRMSNUOSPSXTYUY",3610:" 39MWRFPHRITHRF RRGQHSHRG RRMQNOOQPQYS[T] RRPSORNQORPRYS[ RRMSNUOSPSYT]T`RbPbPaRb",3611:" 50IZLHMJMXKYLYNZO[ RNJMHNGNYPZ RLHOFOXQYO[ ROPRNTMVPSROU RSNUP RRNTQ RSRTSVXWYXY RSSTTUYVZ RRSSTTYV[XY",3612:" 22MWPHQJQXOYPYRZS[ RRJQHRGRYTZ RPHSFSXUYVYTZS[",3613:" 67E_GOHOIPIXGYHYJZK[ RINJOJYLZ RGOIMKOKXMYK[ RKPNOPNQMSOSXUYS[ RPNRORYTZ RNOOOQPQXPYRZS[ RSPVOXNYMZN\\O]O[P[X\\Y]Y RXNZOZY[Z RVOWOYPYY[[]Y",3614:" 45I[KOLOMPMXKYLYNZO[ RMNNONYPZ RKOMMOOOXQYO[ ROPROTNUMVNXOYOWPWXXYYY RTNVOVYWZ RROSOUPUYW[YY",3615:" 40I[MOMXKY RNPNXQZ ROOOXQYRZ RKYMYOZP[RZUYWY RMOOORNTMUNWOYOWPWY RSNVPVX RRNSOUPUY",3616:" 54I[LMMOMXKYMYMb RMNNONaO`N^ RNYOYQZ RLMNNOOOXQYRZ ROZP[RZUYWY ROZO^P`Mb ROPROTNUMVNXOYOWPWY RTNVOVX RROSOUPUY",3617:" 44I[MOMXKY RNPNYPZ ROOOXQYRY RKYLYNZO[PZRYUX RMOOORNTMUNWOYOWPWb RSNVPVaU`V^ RRNSOUPU^T`Wb",3618:" 38JXLOMONPNXLYMYOZP[ RMNOOOYQZ RLONMPOPXRYSYQZP[ RPOTMUNWOXO RSNTOVO RRNTPVPXO",3619:" 59JZMOMSOTUTWUWY RNONS RVUVY RPNOOOSQT RSTUUUYTZ RMOPNRMTNVNWM RQNSN RPNROTOVN RWYTZR[PZNZL[ RSZQZ RTZRYOYL[ RWMVOTROWL[",3620:" 28MWPHQJQXOYPYRZS[ RRJQHRGRYTZ RPHSFSXUYVYTZS[ RNMQM RSMVM",3621:" 47I[KOLOMPMXKY RLNNONYPZ RKOMMOOOXQYRY RKYLYNZO[PZRYUX RUMVNXOYOWPWXXYYY RTNVOVYWZ RUMSOUPUYW[YY",3622:" 36I[LMMOMXP[RYUXWX RMNNONXQZ RLMNNOOOWPXRY RUMVNXOYOWPWX RTNVOVW RUMSOUPUX",3623:" 57E_HMIOIXL[NYQX RINJOJXMZ RHMJNKOKWLXNY RQMOOQPQXT[VYYX[X RPNRORXUZ RQMRNTOSPSWTXVY RYMZN\\O]O[P[X RXNZOZW RYMWOYPYX",3624:" 59H[KOLONPOQSYTZV[XY RMNOOTYVZ RKOMMONPOTWUXWYXY RRSUMVNXNYM RUNVOWO RTOVPXOYM RQUN[MZKZJ[ RNZMYLY ROYMXKYJ[ RMTPT RSTVT",3625:" 60I[KOLOMPMXKY RLNNONYPZ RKOMMOOOXQYRY RKYLYNZO[PZRYUX RUMVNXOYOWPW\\V_TaRbQaO`M` RTNVOV\\ RSaQ`P` RUMSOUPUZV]V_ RTaS`Q_O_M`",3626:" 38I[XML[ RLONPQPTOXM RMNOOSO RLONMPNTNXM RL[PYSXVXXY RQYUYWZ RL[PZTZV[XY RNTVT",3700:" 42H\\LHLXJY RMIMXPZ RNHNXPYQZ RLHNHSGUF RSGTHVIVY RTGWIWX RUFVGXHZHXIXY RJYLYNZO[QZVYXY",3701:" 27H\\OHPIQKQXOY RQIPHQGRIRYTZ ROHRFSHSXUYVY ROYPYRZS[TZVY",3702:" 48H\\LHNHPGQFSGVHXH RPHRG RLHNIPIRHSG RVHVP RWIWO RXHXPQPNQLSKVK[ RK[OYSXVXZY RNZQYVYYZ RK[PZUZX[ZY",3703:" 57H\\LHMHOGPFRGVHXH ROHQG RLHNIPIRG RVHVO RWIWN RXHXOVOSPQQ RQPSQVRXRXY RWSWX RVRVY RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3704:" 41H\\UFKPKUTU RVUZU[V[TZU RLPLT RMNMU RTGTXRY RUJVHUGUYWZ RUFWHVJVXXYYY RRYSYUZV[WZYY",3705:" 53H\\LFLO RLFXF RMGVG RLHUHWGXF RVLUMSNOOLO RSNTNVOVY RUMWNWX RVLWMYNZNXOXY RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3706:" 59H\\LHLXJY RMIMXPZ RNHNXPYQZ RLHNHRGTFUGWHXH RSGUH RRGTIVIXH RNPOPSOUNVM RSOTOVPVY RUNWPWX RVMWNYOZOXPXY RJYLYNZO[QZVYXY",3707:" 38H\\KHMFPGUGZF RLGOHTHWG RKHOIRIVHZF RZFYHWKSOQRPUPXQ[ RRQQTQWRZ RUMSPRSRVSYQ[",3708:" 71H\\LILO RMJMN RNINO RLINISHUGVF RSHTHVIVO RUGWHWN RVFWGYHZHXIXO RLONOVRXR RXOVONRLR RLRLXJY RMSMXPZ RNRNXPYQZ RVRVY RWSWX RXRXY RJYLYNZO[QZVYXY",3709:" 60H\\LHLQJR RMIMROS RNHNQPRQR RLHNHSGUF RSGTHVIVY RTGWIWX RUFVGXHZHXIXY RJRKRMSNTOSQRUQVQ RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3710:" 11LXRXPZR[TZRX RRYQZSZRY",3711:" 14LXR^R\\PZRXSZS\\R^P_ RRYQZR[RY",3712:" 22LXRMPORPTORM RRNQOSORN RRXPZR[TZRX RRYQZSZRY",3713:" 25LXRMPORPTORM RRNQOSORN RR^R\\PZRXSZS\\R^P_ RRYQZR[RY",3714:" 30LXRFQGOHQIRT RRISHRGQHRIRT RRFSGUHSIRT RRXPZR[TZRX RRYQZSZRY",3715:" 51I[LJMHNGQFSFVGWHXJXLWNUPSQ RMJNH RVHWIWMVN RLJNKNIOGQF RSFUGVIVMUOSQ RRQRTSQQQRT RRXPZR[TZRX RRYQZSZRY",3716:" 14LXTFRGQIQKRMTKRIRG RRJRLSKRJ",3717:" 14LXRLRJPHRFSHSJRLPM RRGQHRIRG",3718:" 62E_YNZO[O\\N RXOYP[P RXPYQZQ[P\\N RYNST RRUL[HVNP ROOSKOFJLPRTXVZX[Z[[Z\\X RLZIV RRKOG RKLPQTWVYXZ[Z RMZIU RRLNG RKKQQUWVXXY[Y\\X",3719:" 60H\\PBP_ RTBT_ RTFVGWIWKYJXHWGTFPFMGKIKLLNOPURWSXUXXWZ RXJWH RLLMNOOUQWRXT RMYLW RMGLILKMMONUPXRYTYWXYWZT[P[MZLYKWMVMXNZP[",3720:" 8G^[BIbJb R[B\\BJb",3721:" 27KYUBSDQGOKNPNTOYQ]S`Ub RQHPKOOOUPYQ\\ RSDRFQIPOPUQ[R^S`",3722:" 27KYOBQDSGUKVPVTUYS]Q`Ob RSHTKUOUUTYS\\ RQDRFSITOTUS[R^Q`",3723:" 39JZRFQGSQRR RRFRR RRFSGQQRR RMINIVOWO RMIWO RMIMJWNWO RWIVINOMO RWIMO RWIWJMNMO",3724:" 8F_JQ[Q[R RJQJR[R",3725:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",3726:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",3727:" 11NWSFRGRM RSGRM RSFTGRM",3728:" 22I[NFMGMM RNGMM RNFOGMM RWFVGVM RWGVM RWFXGVM",3729:" 30KYQFOGNINKOMQNSNUMVKVIUGSFQF RQFNIOMSNVKUGQF RSFOGNKQNUMVISF",3801:" 52E_NHLIJKIMHPHSIUKV RJLIOISJU RNHLJKLJOJRKVKXJZH[ RVHXHXYVY RYHYY RZGZZ RHFKGQHVHZG\\F RJPXP RH[KZQYVYZZ\\[",3802:" 65E_LGLZ RMGMZ RPFNGNZP[ RHJJHLGPFUFXGZIZKYM RXHYIYKXM RUFWGXIXKWL RQUOTNRNPONPMSLVLYM[O\\Q\\T[WYYWZT[P[LZJYHW RZO[Q[UZW RVLYNZQZUYXWZ",3803:" 60E_\\F[HZJXHVGSFQFNGLHJJILHOHRIUJWLYNZQ[S[VZXYZW[Y\\[ R[HZMZT[Y RZKYJ RZNYKXIVG RJKINISJV RNGLIKKJNJSKVLXNZ RYWZV RVZXXYVZS",3804:" 46E_KGKZ RLGLZ RNFMGMZN[ RHKIIKGNFSFVGXHZJ[L\\O\\R[UZWXYVZS[N[KZIXHV RZK[N[SZV RVGXIYKZNZSYVXXVZ",3805:" 86E_\\F[HZJXHVGSFQFNGLHJJILHOHRIUJWLYNZQ[S[VZXYZW[Y\\[ R[HZMZT[Y RZKYJ RZMXIVG RJKINISJV RNGLIKKJNJSKVLXNZ RYWZV RVZXXYVZS RJPKONOUQXQZP RPPRQURWRYQ RMORRUSWSYRZP RZMYLXLWMXNYM",3806:" 69E_JHJZ RMGKHKY ROFMGLILYNY RHJJHLGOFSFVGXHYI\\F R\\F[HZLZO[S\\U RZIYK RVGXIYLZO RLPMOOOTPWPYO RQPTQVQXP RNOTRVRXQYOYLXKWKVLWMXL RH[JZNYSYYZ\\[",3807:" 90E_\\F[HZJXHVGSFQFNGLHJJILHOHRIUJWLYNZQ[T[VZXYYXZV[Y\\[ R[HZMZT[Y RZKYJ RZNYKXIVG RJKINISJV RNGLIKKJNJSKVLXNZ RXXYVYR RVZWYXVXQ RKSLRMSLTKTJS RJPKNMMOMRNUPWQ RKOMNONROTP RJPLOOOUQYQZP",3808:" 50E_JGJZH[ RKHKZ RNHLHLZ RHFJGNHSHYG\\F RLPMNOLRKVKYL[N\\Q\\T[UYV RZN[P[SZU RVKXLYMZOZSYVYXZZ\\[ RH[LZPZU[",3809:" 23E_QIQY RRJRX RSISY RHFLHPITIXH\\F RH[KZOYUYYZ\\[",3810:" 42E_TIVIVXUZS[ RWIWXVY RXHXY RHFLHPITIXH\\F RIOHQHUIXKZN[S[VZXYZW\\T RIUJXKY RHSJUKXLZN[",3811:" 70E_JGJZH[ RKHKZ RNHLHLZ RHFJGNHSHYG\\F RLPMNOLRKUKXLYMYOXPSRQSPTPUQVRUQT RWLXMXOWP RUKWMWOVPSR RSRVRYSZUZWYX RWSYUYW RSRVSXUYXZZ[[\\[ RH[LZPZU[",3812:" 45E_JGJZ RKHKY RNHLHLYNY R\\KZNYPXSXUYW[X RZOYRYUZW R\\K[MZQZT[X\\[ RHFJGNHSHYG\\F RH[JZNYSYYZ\\[",3813:" 68E_QIQY RRJRX RSISY RNYLWJVIUHRHMIJKHMGPFTFWGYH[J\\M\\R[UZVXWVY RJUIRIMJJ RLWKUJRJLKIMG RZJ[M[RZU RWGYIZLZRYUXW RHFLHPITIXH\\F RH[KZOYUYYZ\\[",3814:" 48E_JHJZH[ RLHKIKZ ROFMGLILZ RHJJHLGOFSFVGXHZJ[L\\O\\S[UYV RZK[N[RZU RVGXIYKZNZRYVYXZZ[[\\[ RH[LZPZU[",3815:" 54E_QFNGLHJJILHOHRIUJWLYNZQ[S[VZXYZW[U\\R\\O[LZJXHVGSFQF RJKINISJV RNGLIKKJNJSKVLXNZ RZV[S[NZK RVZXXYVZSZNYKXIVG",3816:" 51E_JIJZ RMHKJKY RQFOGMILKLYNY RHKJINGQFTFWGYH[J\\M\\O[RYTVURUOTMRLO RZJ[L[PZR RWGYIZLZPYSVU RH[JZNYSYYZ\\[",3817:" 74E_QFNGLHJJILHOHRIUJWLYNZQ[S[VZXYZW[U\\R\\O[LZJXHVGSFQF RJKINISJV RNGLIKKJNJSKVLXNZ RZV[S[NZK RVZXXYVZSZNYKXIVG RJSKUNVTW[W\\X\\Z[[[Z\\Y RPWRW RKUNWQXSXTW",3818:" 69E_JIJZH[ RKIKZ RLHLZ RHKJILHNGQFUFYG[I\\K\\N[PZQ RYHZI[K[NZP RUFWGYIZKZOYQ RXRUSRSPRPPROUOXPZR\\U\\W[XZX RXQYR[V[WZT RTOVPXRYTZX[Z\\[ RH[LZPZU[",3819:" 94E_TFZG\\F[H[JYHWGTFPFMGJJIMIOJRLTOURUTTUSVQVP R[GZH[J RJPKRLSOTRTTS RKIJKJNKPMRPSRSTRVPWOXO RLQMQNPPNRMUMWNYPZRZUYXWZ RPMRLULXMZO[R[UZW RIWJYIZ RNPNOOMPLRKUKXL[O\\R\\T[WYYWZT[P[MZKYIWIYH[JZP[",3820:" 66E_QHMHKIJJILHOHSIVJXKYMZP[S[VZXYZW[U\\R\\N[KYIWH RUHTITKULVKUJ RISJVLXNYQZTZWY RJJINIQJTLWNXQYTYWXYW[T\\R RHFKI RKHLG RIGJGKFMGQHWHZG\\F",3821:" 51E_LHJJILHOHRIUJWLYNZQ[U[XZZY RKJJLIOISJV RKILJLKKMJPJSKVLXNZ RVHXHXXWZU[ RYHYXXY RZGZY\\[ RHFKGQHVHZG\\F",3822:" 31E_HFR[ RIGJHQWRY RJGKHRWSX R\\FR[ RWNUS RYLUQTTTV RHFJGOHUHZG\\F",3823:" 67E_LHJJILHOHRIUJWLYNZQ[S[VZXYZW[U\\R\\O[LZJXH RJLIOIRJUKW RJJKKKLJOJRKVLXNZ RYWZU[R[OZL RVZXXYVZRZOYLYKZJ RQIQ[ RRJRZ RSIS[ RHFLHPITIXH\\F",3824:" 41E_HFXYYZ RIGKHZZ RLH\\[ R\\FSP RQRJZ RPSMULW RQRMTLUKWKY RHFLHPITIXH\\F RH[JZNYSYYZ\\[",3825:" 47E_XHXZ RYHYY RZGZY RKHIJHMHPISKUMVPWSWVVXU RLUOVUV RHPIRKTNUTUVV RHFLHPITIXH\\F RHWJYLZP[T[XZ\\X",3826:" 73E_HFIGKHNHSFVFYGZIZKYM RXGYIYKXM RVFWGXIXL RXNTOROPNPLRKTKXL RTKVLWMVNTO RYM[O\\R\\T[WYYWZT[P[MZKYIWHTHRIOJNLMNMPNPPOQNPOO RXMZO[Q[UZW RXNYOZQZUYXWZ",3901:" 42J[PQMTMXP[TY RNTNXPZ ROROWRZ RRSMNNMONNO RONSNUMWOWXXY RUNVOVXUYVZWYVX RSNUPUXTYV[XY",3902:" 31IZNHLFMJMXP[UYWX RNHNXPZ RNHPFOJOWRZ ROOTMWPWX RTNVPVX RRNUQUY",3903:" 23KWNPNYP[RY ROPOYPZ RPOPXQYRY RNPTMVOTPRN RSNUO",3904:" 32JZRMMPMXP[RZUYWY RNPNXPZ ROOOWRZ RPIPFQIWPWY RPIVPVX RPIMIPJUPUY",3905:" 25KXNPNYP[RY ROPOYPZ RPOPXQYRY RNPTMWQPU RSNVQ RRNUR",3906:" 32KWOIOXNYP[ RPIPXOYPZQYPX RQHQXRYP[ ROIUFWHUISG RTGVH RLMOM RQMUM",3907:" 41J[MPMXP[UY RNPNXPZ ROOOWRZ RMPOOTMWPW]V_U`SaQaO`MaObQa RTNVPV]U_ RPaNa RRNUQU^T`Sa",3908:" 42I[NHLFMJMXLYN[ RNHNXMYNZOYNX RNHPFOJOXPYN[ ROORNTMWPWYT]T`UbVbT` RTNVPVYU[ RRNUQUZT]",3909:" 37MWRFPHRJTHRF RRGQHRISHRG RRMPOQPQXPYR[ RRPSORNQORPRXQYRZSYRX RRMTOSPSXTYR[",3910:" 37MWRFPHRJTHRF RRGQHRISHRG RRMPOQPQYT] RRPSORNQORPRYS[ RRMTOSPSZT]T`RbPaPbRb",3911:" 51IZNHLFMJMXLYN[ RNHNXMYNZOYNX RNHPFOJOXPYN[ ROPRNTMVPSROU RSNUP RRNTQ RRSSTTYV[XY RSSTUUYVZ RSRTSVXWYXY",3912:" 21MWRHPFQJQXPYR[ RRHRXQYRZSYRX RRHTFSJSXTYR[",3913:" 66E_GOHOIPIXHYJ[ RINJOJXIYJZKYJX RGOIMKOKXLYJ[ RKONNPMSOSXTYR[ RPNRORXQYRZSYRX RNNQPQXPYR[ RSOVNXM[O[X\\YZ[ RXNZOZXYYZZ[YZX RVNYPYXXYZ[",3914:" 44I[KOLOMPMXLYN[ RMNNONXMYNZOYNX RKOMMOOOXPYN[ ROORNTMWOWXXYV[ RTNVOVXUYVZWYVX RRNUPUXTYV[",3915:" 28JZMPMXP[UYWX RNPNXPZ ROOOWRZ RMPOOTMWPWX RTNVPVX RRNUQUY",3916:" 47IZLMMOMXKYMYM_LbN` RNON` RLMNNOOOXQYRZ RNYOYQZ ROZP[UYWX ROZO_PbN` ROORNTMWPWX RTNVPVX RRNUQUY",3917:" 31J[MPMXP[UY RNPNXPZ ROOOWRZ RMPOOTMWPW_XbV` RTNVPV` RRNUQU_TbV`",3918:" 31KXMONOOPOXNYP[ RONPOPXOYPZQYPX RMOOMQOQXRYP[ RQOUMWOUPSN RTNVO",3919:" 41JZMPMSOUURWTWX RNPNSOT ROOOSPT RUSVTVX RTSUTUY RMPSMVNTOQN RRNUN RWXQ[MYOXSZ ROYQZ",3920:" 27MWRHPFQJQXPYR[ RRHRXQYRZSYRX RRHTFSJSXTYR[ RNMQM RSMVM",3921:" 40I[KOLOMPMYP[UY RMNNONYPZ RKOMMOOOXRZ RVMXOWPWXXYYY RVPWOVNUOVPVYWZ RVMTOUPUYW[YY",3922:" 36I[LMMOMXQ[SYWW RMNNONXQZ RLMNNOOOWRYSY RVMXOWPWW RVPWOVNUOVPVW RVMTOUPUX",3923:" 59E_HMIOIXM[OYQX RINJOJXMZ RHMJNKOKWNYOY RRMPOQPQXU[WY[W RRPSORNQORPRXUZ RRMTOSPSWVYWY RZM\\O[P[W RZP[OZNYOZPZW RZMXOYPYX",3924:" 39I[LONPUZV[XY RMNOOUYWZ RLONMONVXXY RXMVMVOXOXMVOSS RQUNYL[N[NYLYL[ RNTQT RSTVT",3925:" 49I[KOLOMPMYP[UY RMNNONYPZ RKOMMOOOXRZ RVMXOWPW]V_U`SaQaO`MaObQa RVPWOVNUOVPV^U_ RPaNa RVMTOUPU^T`Sa",3926:" 43L[RNOPOORNTMWOWSRU RTNVOVS RRNUPUSTT RRUWWW]V_U`SaQaO`MaObQa RVWV^U_ RPaNa RTVUWU^T`Sa"},hr={"\\frac":{glyph:0,arity:2,flags:{}},"\\binom":{glyph:0,arity:2,flags:{}},"\\sqrt":{glyph:2267,arity:1,flags:{opt:!0,xfl:!0,yfl:!0}},"^":{glyph:0,arity:1,flags:{}},_:{glyph:0,arity:1,flags:{}},"(":{glyph:2221,arity:0,flags:{yfl:!0}},")":{glyph:2222,arity:0,flags:{yfl:!0}},"[":{glyph:2223,arity:0,flags:{yfl:!0}},"]":{glyph:2224,arity:0,flags:{yfl:!0}},"\\langle":{glyph:2227,arity:0,flags:{yfl:!0}},"\\rangle":{glyph:2228,arity:0,flags:{yfl:!0}},"|":{glyph:2229,arity:0,flags:{yfl:!0}},"\\|":{glyph:2230,arity:0,flags:{yfl:!0}},"\\{":{glyph:2225,arity:0,flags:{yfl:!0}},"\\}":{glyph:2226,arity:0,flags:{yfl:!0}},"\\#":{glyph:2275,arity:0,flags:{}},"\\$":{glyph:2274,arity:0,flags:{}},"\\&":{glyph:2273,arity:0,flags:{}},"\\%":{glyph:2271,arity:0,flags:{}},"\\begin":{glyph:0,arity:1,flags:{}},"\\end":{glyph:0,arity:1,flags:{}},"\\left":{glyph:0,arity:1,flags:{}},"\\right":{glyph:0,arity:1,flags:{}},"\\middle":{glyph:0,arity:1,flags:{}},"\\cdot":{glyph:2236,arity:0,flags:{}},"\\pm":{glyph:2233,arity:0,flags:{}},"\\mp":{glyph:2234,arity:0,flags:{}},"\\times":{glyph:2235,arity:0,flags:{}},"\\div":{glyph:2237,arity:0,flags:{}},"\\leqq":{glyph:2243,arity:0,flags:{}},"\\geqq":{glyph:2244,arity:0,flags:{}},"\\leq":{glyph:2243,arity:0,flags:{}},"\\geq":{glyph:2244,arity:0,flags:{}},"\\propto":{glyph:2245,arity:0,flags:{}},"\\sim":{glyph:2246,arity:0,flags:{}},"\\equiv":{glyph:2240,arity:0,flags:{}},"\\dagger":{glyph:2277,arity:0,flags:{}},"\\ddagger":{glyph:2278,arity:0,flags:{}},"\\ell":{glyph:662,arity:0,flags:{}},"\\vec":{glyph:2261,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\overrightarrow":{glyph:2261,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\overleftarrow":{glyph:2263,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\bar":{glyph:2231,arity:1,flags:{hat:!0,xfl:!0}},"\\overline":{glyph:2231,arity:1,flags:{hat:!0,xfl:!0}},"\\widehat":{glyph:2247,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\hat":{glyph:2247,arity:1,flags:{hat:!0}},"\\acute":{glyph:2248,arity:1,flags:{hat:!0}},"\\grave":{glyph:2249,arity:1,flags:{hat:!0}},"\\breve":{glyph:2250,arity:1,flags:{hat:!0}},"\\tilde":{glyph:2246,arity:1,flags:{hat:!0}},"\\underline":{glyph:2231,arity:1,flags:{mat:!0,xfl:!0}},"\\not":{glyph:2220,arity:1,flags:{}},"\\neq":{glyph:2239,arity:1,flags:{}},"\\ne":{glyph:2239,arity:1,flags:{}},"\\exists":{glyph:2279,arity:0,flags:{}},"\\in":{glyph:2260,arity:0,flags:{}},"\\subset":{glyph:2256,arity:0,flags:{}},"\\supset":{glyph:2258,arity:0,flags:{}},"\\cup":{glyph:2257,arity:0,flags:{}},"\\cap":{glyph:2259,arity:0,flags:{}},"\\infty":{glyph:2270,arity:0,flags:{}},"\\partial":{glyph:2265,arity:0,flags:{}},"\\nabla":{glyph:2266,arity:0,flags:{}},"\\aleph":{glyph:2077,arity:0,flags:{}},"\\wp":{glyph:2190,arity:0,flags:{}},"\\therefore":{glyph:740,arity:0,flags:{}},"\\mid":{glyph:2229,arity:0,flags:{}},"\\sum":{glyph:2402,arity:0,flags:{big:!0}},"\\prod":{glyph:2401,arity:0,flags:{big:!0}},"\\bigoplus":{glyph:2284,arity:0,flags:{big:!0}},"\\bigodot":{glyph:2281,arity:0,flags:{big:!0}},"\\int":{glyph:2412,arity:0,flags:{yfl:!0}},"\\oint":{glyph:2269,arity:0,flags:{yfl:!0}},"\\oplus":{glyph:1284,arity:0,flags:{}},"\\odot":{glyph:1281,arity:0,flags:{}},"\\perp":{glyph:738,arity:0,flags:{}},"\\angle":{glyph:739,arity:0,flags:{}},"\\triangle":{glyph:842,arity:0,flags:{}},"\\Box":{glyph:841,arity:0,flags:{}},"\\rightarrow":{glyph:2261,arity:0,flags:{}},"\\to":{glyph:2261,arity:0,flags:{}},"\\leftarrow":{glyph:2263,arity:0,flags:{}},"\\gets":{glyph:2263,arity:0,flags:{}},"\\circ":{glyph:902,arity:0,flags:{}},"\\bigcirc":{glyph:904,arity:0,flags:{}},"\\bullet":{glyph:828,arity:0,flags:{}},"\\star":{glyph:856,arity:0,flags:{}},"\\diamond":{glyph:743,arity:0,flags:{}},"\\ast":{glyph:728,arity:0,flags:{}},"\\log":{glyph:0,arity:0,flags:{txt:!0}},"\\ln":{glyph:0,arity:0,flags:{txt:!0}},"\\exp":{glyph:0,arity:0,flags:{txt:!0}},"\\mod":{glyph:0,arity:0,flags:{txt:!0}},"\\lim":{glyph:0,arity:0,flags:{txt:!0,big:!0}},"\\sin":{glyph:0,arity:0,flags:{txt:!0}},"\\cos":{glyph:0,arity:0,flags:{txt:!0}},"\\tan":{glyph:0,arity:0,flags:{txt:!0}},"\\csc":{glyph:0,arity:0,flags:{txt:!0}},"\\sec":{glyph:0,arity:0,flags:{txt:!0}},"\\cot":{glyph:0,arity:0,flags:{txt:!0}},"\\sinh":{glyph:0,arity:0,flags:{txt:!0}},"\\cosh":{glyph:0,arity:0,flags:{txt:!0}},"\\tanh":{glyph:0,arity:0,flags:{txt:!0}},"\\csch":{glyph:0,arity:0,flags:{txt:!0}},"\\sech":{glyph:0,arity:0,flags:{txt:!0}},"\\coth":{glyph:0,arity:0,flags:{txt:!0}},"\\arcsin":{glyph:0,arity:0,flags:{txt:!0}},"\\arccos":{glyph:0,arity:0,flags:{txt:!0}},"\\arctan":{glyph:0,arity:0,flags:{txt:!0}},"\\arccsc":{glyph:0,arity:0,flags:{txt:!0}},"\\arcsec":{glyph:0,arity:0,flags:{txt:!0}},"\\arccot":{glyph:0,arity:0,flags:{txt:!0}},"\\text":{glyph:0,arity:1,flags:{}},"\\mathnormal":{glyph:0,arity:1,flags:{}},"\\mathrm":{glyph:0,arity:1,flags:{}},"\\mathit":{glyph:0,arity:1,flags:{}},"\\mathbf":{glyph:0,arity:1,flags:{}},"\\mathsf":{glyph:0,arity:1,flags:{}},"\\mathtt":{glyph:0,arity:1,flags:{}},"\\mathfrak":{glyph:0,arity:1,flags:{}},"\\mathcal":{glyph:0,arity:1,flags:{}},"\\mathbb":{glyph:0,arity:1,flags:{}},"\\mathscr":{glyph:0,arity:1,flags:{}},"\\rm":{glyph:0,arity:1,flags:{}},"\\it":{glyph:0,arity:1,flags:{}},"\\bf":{glyph:0,arity:1,flags:{}},"\\sf":{glyph:0,arity:1,flags:{}},"\\tt":{glyph:0,arity:1,flags:{}},"\\frak":{glyph:0,arity:1,flags:{}},"\\cal":{glyph:0,arity:1,flags:{}},"\\bb":{glyph:0,arity:1,flags:{}},"\\scr":{glyph:0,arity:1,flags:{}},"\\quad":{glyph:0,arity:0,flags:{}},"\\,":{glyph:0,arity:0,flags:{}},"\\.":{glyph:0,arity:0,flags:{}},"\\;":{glyph:0,arity:0,flags:{}},"\\!":{glyph:0,arity:0,flags:{}},"\\alpha":{glyph:2127,flags:{}},"\\beta":{glyph:2128,flags:{}},"\\gamma":{glyph:2129,flags:{}},"\\delta":{glyph:2130,flags:{}},"\\varepsilon":{glyph:2131,flags:{}},"\\zeta":{glyph:2132,flags:{}},"\\eta":{glyph:2133,flags:{}},"\\vartheta":{glyph:2134,flags:{}},"\\iota":{glyph:2135,flags:{}},"\\kappa":{glyph:2136,flags:{}},"\\lambda":{glyph:2137,flags:{}},"\\mu":{glyph:2138,flags:{}},"\\nu":{glyph:2139,flags:{}},"\\xi":{glyph:2140,flags:{}},"\\omicron":{glyph:2141,flags:{}},"\\pi":{glyph:2142,flags:{}},"\\rho":{glyph:2143,flags:{}},"\\sigma":{glyph:2144,flags:{}},"\\tau":{glyph:2145,flags:{}},"\\upsilon":{glyph:2146,flags:{}},"\\varphi":{glyph:2147,flags:{}},"\\chi":{glyph:2148,flags:{}},"\\psi":{glyph:2149,flags:{}},"\\omega":{glyph:2150,flags:{}},"\\epsilon":{glyph:2184,flags:{}},"\\theta":{glyph:2185,flags:{}},"\\phi":{glyph:2186,flags:{}},"\\varsigma":{glyph:2187,flags:{}},"\\Alpha":{glyph:2027,flags:{}},"\\Beta":{glyph:2028,flags:{}},"\\Gamma":{glyph:2029,flags:{}},"\\Delta":{glyph:2030,flags:{}},"\\Epsilon":{glyph:2031,flags:{}},"\\Zeta":{glyph:2032,flags:{}},"\\Eta":{glyph:2033,flags:{}},"\\Theta":{glyph:2034,flags:{}},"\\Iota":{glyph:2035,flags:{}},"\\Kappa":{glyph:2036,flags:{}},"\\Lambda":{glyph:2037,flags:{}},"\\Mu":{glyph:2038,flags:{}},"\\Nu":{glyph:2039,flags:{}},"\\Xi":{glyph:2040,flags:{}},"\\Omicron":{glyph:2041,flags:{}},"\\Pi":{glyph:2042,flags:{}},"\\Rho":{glyph:2043,flags:{}},"\\Sigma":{glyph:2044,flags:{}},"\\Tau":{glyph:2045,flags:{}},"\\Upsilon":{glyph:2046,flags:{}},"\\Phi":{glyph:2047,flags:{}},"\\Chi":{glyph:2048,flags:{}},"\\Psi":{glyph:2049,flags:{}},"\\Omega":{glyph:2050,flags:{}}};function aF(t,e="math"){let n=t.charCodeAt(0);if(65<=n&&n<=90){let r=n-65;return e=="text"||e=="rm"?r+2001:e=="tt"?r+501:e=="bf"||e=="bb"?r+3001:e=="sf"?r+2501:e=="frak"?r+3301:e=="scr"||e=="cal"?r+2551:r+2051}if(97<=n&&n<=122){let r=n-97;return e=="text"||e=="rm"?r+2101:e=="tt"?r+601:e=="bf"||e=="bb"?r+3101:e=="sf"?r+2601:e=="frak"?r+3401:e=="scr"||e=="cal"?r+2651:r+2151}if(48<=n&&n<=57){let r=n-48;return e=="it"?r+2750:e=="bf"?r+3200:e=="tt"?r+700:r+2200}return{".":2210,",":2211,":":2212,";":2213,"!":2214,"?":2215,"'":2216,'"':2217,"*":2219,"/":2220,"-":2231,"+":2232,"=":2238,"<":2241,">":2242,"~":2246,"@":2273,"\\":804}[t]}var ic={SUB_SUP_SCALE:.75,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function Evt(t){t=t.replace(/\n/g," ");let e=0,n=[],r="";for(;e<t.length;)t[e]==" "?r.length&&(n.push(r),r=""):t[e]=="\\"?r.length==1&&r[0]=="\\"?r+=t[e]:(r.length&&n.push(r),r=t[e]):/[A-Za-z0-9\.]/.test(t[e])?r+=t[e]:(r.length&&r!="\\"&&(n.push(r),r=""),r+=t[e],n.push(r),r=""),e++;return r.length&&n.push(r),n}function Fvt(t){return{type:hr[t]?"symb":"char",mode:"math",text:t,chld:[],bbox:null}}function dJ(t){let e=0,n={type:"node",text:"",mode:"math",chld:[],bbox:null};function r(){if(t[e]!="[")return null;let i=0,o=e,s;for(;o<t.length;){if(t[o]=="[")i++;else if(t[o]=="]"&&(i--,!i))break;o++}return s=dJ(t.slice(e+1,o)),e=o,s}function a(i){let o=e,s=o,l=0,c=0,u=[];for(;o<t.length;){if(t[o]=="{")l||(s=o),l++;else if(t[o]=="}"){if(l--,!l&&(u.push(dJ(t.slice(s+1,o))),c++,c==i))break}else if(l==0&&(u.push(Fvt(t[o])),c++,c==i))break;o++}return e=o,u}for(e=0;e<t.length;e++){let i=hr[t[e]],o={type:"",text:t[e],mode:"math",chld:[],bbox:null};if(i)if(i.arity){e++,o.type="func";let s=null;i.flags.opt&&(s=r(),s&&e++);let l=a(i.arity);o.chld=l,s&&o.chld.push(s)}else o.type="symb";else t[e]=="{"?(o.type="node",o.text="",o.chld=a(1)):o.type="char";n.chld.push(o)}return n.chld.length==1&&(n=n.chld[0]),n}function RTe(t){let e=0;for(;e<t.length;){if(t[e].text=="\\begin"){let n;for(n=e;n<t.length&&t[n].text!="\\end";n++);let r=t.splice(e+1,n-(e+1));RTe(r),t[e].text=t[e].chld[0].text,t[e].chld=r,t.splice(e+1,1)}e++}}function Cs(t,e,n,r,a,i){if(n==null&&(n=e),!!t.bbox){i&&(t.bbox.x*=e,t.bbox.y*=n),t.bbox.w*=e,t.bbox.h*=n;for(var o=0;o<t.chld.length;o++)Cs(t.chld[o],e,n,0,0,!0);t.bbox.x+=r,t.bbox.y+=a}}function bTe(t){let e=1/0,n=-1/0,r=1/0,a=-1/0;for(let i=0;i<t.length;i++)t[i].bbox&&(e=Math.min(e,t[i].bbox.x),r=Math.min(r,t[i].bbox.y),n=Math.max(n,t[i].bbox.x+t[i].bbox.w),a=Math.max(a,t[i].bbox.y+t[i].bbox.h));return{x:e,y:r,w:n-e,h:a-r}}function Xvt(t){if(!t.length)return null;let e=bTe(t);for(let r=0;r<t.length;r++)t[r].bbox&&(t[r].bbox.x-=e.x,t[r].bbox.y-=e.y);return{type:"node",text:"",mode:"math",chld:t,bbox:e}}function Dvt(t,e="center"){for(let c=0;c<t.length;c++)if(t[c].text=="^"||t[c].text=="'"){let u=0,f=c;for(;f>0&&(t[f].text=="^"||t[f].text=="_"||t[f].text=="'");)f--;u=t[f].bbox.y,t[c].text=="'"?t[c].bbox.y=u:(Cs(t[c],ic.SUB_SUP_SCALE,null,0,0),hr[t[f].text]&&hr[t[f].text].flags.big?t[c].bbox.y=u-t[c].bbox.h:t[f].text=="\\int"?t[c].bbox.y=u:t[c].bbox.y=u-t[c].bbox.h/2)}else if(t[c].text=="_"){let u=1,f=c;for(;f>0&&(t[f].text=="^"||t[f].text=="_"||t[f].text=="'");)f--;u=t[f].bbox.y+t[f].bbox.h,Cs(t[c],ic.SUB_SUP_SCALE,null,0,0),hr[t[f].text]&&hr[t[f].text].flags.big?t[c].bbox.y=u:t[f].text=="\\int"?t[c].bbox.y=u-t[c].bbox.h:t[c].bbox.y=u-t[c].bbox.h/2}function n(c,u,f,d,h){let p=c,v=h,g=1/0,y=-1/0;for(;d>0?p<t.length:p>=0;){if(t[p].text==u)v++;else if(t[p].text==f){if(v--,v==0)break}else t[p].text=="^"||t[p].text=="_"||t[p].bbox&&(g=Math.min(g,t[p].bbox.y),y=Math.max(y,t[p].bbox.y+t[p].bbox.h));p+=d}return[g,y]}for(let c=0;c<t.length;c++)if(t[c].text=="\\left"){const[u,f]=n(c,"\\left","\\right",1,0);u!=1/0&&f!=-1/0&&(t[c].bbox.y=u,Cs(t[c],1,(f-u)/t[c].bbox.h,0,0))}else if(t[c].text=="\\right"){const[u,f]=n(c,"\\right","\\left",-1,0);u!=1/0&&f!=-1/0&&(t[c].bbox.y=u,Cs(t[c],1,(f-u)/t[c].bbox.h,0,0))}else if(t[c].text=="\\middle"){const[u,f]=n(c,"\\right","\\left",-1,1),[d,h]=n(c,"\\left","\\right",1,1);let p=Math.min(u,d),v=Math.max(f,h);p!=1/0&&v!=-1/0&&(t[c].bbox.y=p,Cs(t[c],1,(v-p)/t[c].bbox.h,0,0))}if(!t.some(c=>c.text=="&"||c.text=="\\\\"))return;let r=[],a=[],i=[];for(let c=0;c<t.length;c++)t[c].text=="&"?(a.push(i),i=[]):t[c].text=="\\\\"?(i.length&&(a.push(i),i=[]),r.push(a),a=[]):i.push(t[c]);i.length&&a.push(i),a.length&&r.push(a);let o=[],s=[];for(let c=0;c<r.length;c++){let u=[];for(let f=0;f<r[c].length;f++){let d=Xvt(r[c][f]);d&&(o[f]=o[f]||0,o[f]=Math.max(d.bbox.w+1,o[f])),u[f]=d}s.push(u)}let l=[];for(let c=0;c<s.length;c++){let u=1/0,f=-1/0;for(let d=0;d<s[c].length;d++)s[c][d]&&(u=Math.min(u,s[c][d].bbox.y),f=Math.max(f,s[c][d].bbox.y+s[c][d].bbox.h));l.push([u,f])}for(let c=0;c<l.length;c++)(l[c][0]==1/0||l[c][1]==1/0)&&(l[c][0]=c==0?0:l[c-1][1],l[c][1]=l[c][0]+2);for(let c=1;c<s.length;c++){let u=l[c-1][1]-l[c][0]+ic.LINE_SPACING;for(let f=0;f<s[c].length;f++)s[c][f]&&(s[c][f].bbox.y+=u);l[c][0]+=u,l[c][1]+=u}t.splice(0,t.length);for(let c=0;c<s.length;c++){let u=0;for(let f=0;f<s[c].length;f++){let d=s[c][f];if(!d){u+=o[f];continue}d.bbox.x+=u,u+=o[f]-d.bbox.w,e=="center"?d.bbox.x+=(o[f]-d.bbox.w)/2:e=="left"||(e=="right"||e=="equation"&&f!=s[c].length-1)&&(d.bbox.x+=o[f]-d.bbox.w),t.push(d)}}}function Jd(t,e="math"){var n,r,a;let i=(n={"\\text":"text","\\mathnormal":"math","\\mathrm":"rm","\\mathit":"it","\\mathbf":"bf","\\mathsf":"sf","\\mathtt":"tt","\\mathfrak":"frak","\\mathcal":"cal","\\mathbb":"bb","\\mathscr":"scr","\\rm":"rm","\\it":"it","\\bf":"bf","\\sf":"tt","\\tt":"tt","\\frak":"frak","\\cal":"cal","\\bb":"bb","\\scr":"scr"}[t.text])!=null?n:e;if(!t.chld.length){if(hr[t.text])if(hr[t.text].flags.big)t.text=="\\lim"?t.bbox={x:0,y:0,w:3.5,h:2}:t.bbox={x:0,y:-.5,w:3,h:3};else if(hr[t.text].flags.txt){let s=0;for(var o=1;o<t.text.length;o++)s+=xx(aF(t.text[o],"text")).w;s/=16,t.bbox={x:0,y:0,w:s,h:2}}else if(hr[t.text].glyph){let s=xx(hr[t.text].glyph).w;s/=16,t.text=="\\int"||t.text=="\\oint"?t.bbox={x:0,y:-1.5,w:s,h:5}:t.bbox={x:0,y:0,w:s,h:2}}else t.bbox={x:0,y:0,w:1,h:2};else{let s=0;for(var o=0;o<t.text.length;o++)xx(aF(t.text[o],i))&&(i=="tt"?s+=16:s+=xx(aF(t.text[o],i)).w);s/=16,t.bbox={x:0,y:0,w:s,h:2}}t.mode=i;return}if(t.text=="\\frac"){let s=t.chld[0],l=t.chld[1],c=ic.FRAC_SCALE;Jd(s),Jd(l),s.bbox.x=0,s.bbox.y=0,l.bbox.x=0,l.bbox.y=0;let u=Math.max(s.bbox.w,l.bbox.w)*c;Cs(s,c,null,(u-s.bbox.w*c)/2,0),Cs(l,c,null,(u-l.bbox.w*c)/2,s.bbox.h+ic.FRAC_SPACING),t.bbox={x:0,y:-s.bbox.h+1-ic.FRAC_SPACING/2,w:u,h:s.bbox.h+l.bbox.h+ic.FRAC_SPACING}}else if(t.text=="\\binom"){let s=t.chld[0],l=t.chld[1];Jd(s),Jd(l),s.bbox.x=0,s.bbox.y=0,l.bbox.x=0,l.bbox.y=0;let c=Math.max(s.bbox.w,l.bbox.w);Cs(s,1,null,(c-s.bbox.w)/2+1,0),Cs(l,1,null,(c-l.bbox.w)/2+1,s.bbox.h),t.bbox={x:0,y:-s.bbox.h+1,w:c+2,h:s.bbox.h+l.bbox.h}}else if(t.text=="\\sqrt"){let s=t.chld[0];Jd(s);let l=t.chld[1],c=0;l&&(Jd(l),c=Math.max(l.bbox.w*ic.SQRT_MAG_SCALE-.5,0),Cs(l,ic.SQRT_MAG_SCALE,null,0,.5)),Cs(s,1,null,1+c,.5),t.bbox={x:0,y:2-s.bbox.h-.5,w:s.bbox.w+1+c,h:s.bbox.h+.5}}else if(hr[t.text]&&hr[t.text].flags.hat){let s=t.chld[0];Jd(s),Cs(s,1,null,0,.5),t.bbox={x:0,y:-.5,w:s.bbox.w,h:s.bbox.h+.5}}else if(hr[t.text]&&hr[t.text].flags.mat){let s=t.chld[0];Jd(s),t.bbox={x:0,y:0,w:s.bbox.w,h:s.bbox.h+.5}}else{let s=0,l=0,c=1;for(let v=0;v<t.chld.length;v++){let g=t.chld[v],y=(r={"\\quad":2,"\\,":2*3/18,"\\:":2*4/18,"\\;":2*5/18,"\\!":2*-3/18}[g.text])!=null?r:null;if(g.text=="\\\\"){l+=c,s=0,c=1;continue}else{if(g.text=="&")continue;if(y!=null){s+=y;continue}else{if(Jd(g,i),Cs(g,1,null,s,l),g.text=="^"||g.text=="_"||g.text=="'"){let m=v;for(;m>0&&(t.chld[m].text=="^"||t.chld[m].text=="_"||t.chld[m].text=="'");)m--;let R=hr[t.chld[m].text]&&hr[t.chld[m].text].flags.big;if(g.text=="'"){let A=m+1,x=0;for(;A<v;)t.chld[A].text=="'"&&x++,A++;g.bbox.x=t.chld[m].bbox.x+t.chld[m].bbox.w+g.bbox.w*x,s=Math.max(s,g.bbox.x+g.bbox.w)}else if(R){let A=t.chld[m].bbox.x+(t.chld[m].bbox.w-g.bbox.w*ic.SUB_SUP_SCALE)/2;g.bbox.x=A,s=Math.max(s,t.chld[m].bbox.x+t.chld[m].bbox.w+(g.bbox.w*ic.SUB_SUP_SCALE-t.chld[m].bbox.w)/2)}else g.bbox.x=t.chld[m].bbox.x+t.chld[m].bbox.w,s=Math.max(s,g.bbox.x+g.bbox.w*ic.SUB_SUP_SCALE)}else s+=g.bbox.w;e=="text"&&(s+=1),c=Math.max(g.bbox.y+g.bbox.h-l,c)}}}l+=c;let u={bmatrix:["[","]"],pmatrix:["(",")"],Bmatrix:["\\{","\\}"],cases:["\\{"]},f=(a={bmatrix:"center",pmatrix:"center",Bmatrix:"center",cases:"left",matrix:"center",aligned:"equation"}[t.text])!=null?a:"left",d=!!u[t.text],h=!!u[t.text]&&u[t.text].length>1;Dvt(t.chld,f);let p=bTe(t.chld);t.text=="\\text"&&(p.x-=1,p.w+=2);for(let v=0;v<t.chld.length;v++)Cs(t.chld[v],1,null,-p.x+(d?1.5:0),-p.y);t.bbox={x:0,y:0,w:p.w+1.5*Number(d)+1.5*Number(h),h:p.h},d&&t.chld.unshift({type:"symb",text:u[t.text][0],mode:t.mode,chld:[],bbox:{x:0,y:0,w:1,h:p.h}}),h&&t.chld.push({type:"symb",text:u[t.text][1],mode:t.mode,chld:[],bbox:{x:p.w+2,y:0,w:1,h:p.h}}),(d||h||t.text=="matrix")&&(t.type="node",t.text="",t.bbox.y-=(t.bbox.h-2)/2)}}function Vvt(t){function e(r,a,i){let o=[];if(r.bbox){if(a+=r.bbox.x,i+=r.bbox.y,r.text=="\\frac"){let l=r.chld[1].bbox.y-(r.chld[0].bbox.y+r.chld[0].bbox.h),c={type:"symb",mode:r.mode,text:"\\bar",bbox:{x:a,y:i+(r.chld[1].bbox.y-l/2)-l/2,w:r.bbox.w,h:l},chld:[]};o.push(c)}else if(r.text=="\\sqrt"){let l=r.chld[0].bbox.y,c=Math.max(0,r.chld[0].bbox.x-r.chld[0].bbox.h/2),u={type:"symb",mode:r.mode,text:"\\sqrt",bbox:{x:a+c,y:i+l/2,w:r.chld[0].bbox.x-c,h:r.bbox.h-l/2},chld:[]};o.push(u),o.push({type:"symb",text:"\\bar",mode:r.mode,bbox:{x:a+r.chld[0].bbox.x,y:i,w:r.bbox.w-r.chld[0].bbox.x,h:l},chld:[]})}else if(r.text=="\\binom"){let l=Math.min(r.chld[0].bbox.x,r.chld[1].bbox.x),c={type:"symb",mode:r.mode,text:"(",bbox:{x:a,y:i,w:l,h:r.bbox.h},chld:[]};o.push(c),o.push({type:"symb",text:")",mode:r.mode,bbox:{x:a+r.bbox.w-l,y:i,w:l,h:r.bbox.h},chld:[]})}else if(hr[r.text]&&hr[r.text].flags.hat){let l=r.chld[0].bbox.y,c={type:"symb",mode:r.mode,text:r.text,bbox:{x:a,y:i,w:r.bbox.w,h:l},chld:[]};o.push(c)}else if(hr[r.text]&&hr[r.text].flags.mat){let l=r.chld[0].bbox.h,c={type:"symb",text:r.text,mode:r.mode,bbox:{x:a,y:i+l,w:r.bbox.w,h:r.bbox.h-l},chld:[]};o.push(c)}else if(r.type!="node"&&r.text!="^"&&r.text!="_"){let l={type:r.type=="func"?"symb":r.type,text:r.text,mode:r.mode,bbox:{x:a,y:i,w:r.bbox.w,h:r.bbox.h},chld:[]};o.push(l)}}for(var s=0;s<r.chld.length;s++){let l=e(r.chld[s],a,i);o.push(...l)}return o}let n=e(t,-t.bbox.x,-t.bbox.y);t.type="node",t.text="",t.chld=n}function Uvt(t){let e=[];for(let n=0;n<t.chld.length;n++){let r=t.chld[n],a=r.bbox.h/2,i=!1;if(hr[r.text]&&hr[r.text].flags.hat&&!hr[r.text].flags.xfl&&!hr[r.text].flags.yfl&&(a*=4,i=!0),hr[r.text]&&hr[r.text].glyph){let o=xx(hr[r.text].glyph);for(let s=0;s<o.polylines.length;s++){let l=[];for(let c=0;c<o.polylines[s].length;c++){let u=o.polylines[s][c][0],f=o.polylines[s][c][1];if(hr[r.text].flags.xfl)u=(u-o.xmin)/Math.max(o.xmax-o.xmin,1)*r.bbox.w,u+=r.bbox.x;else if(o.w/16*a>r.bbox.w)u=u/Math.max(o.w,1)*r.bbox.w,u+=r.bbox.x;else{u=u/16*a;let d=(r.bbox.w-o.w/16*a)/2;u+=r.bbox.x+d}if(hr[r.text].flags.yfl)f=(f-o.ymin)/Math.max(o.ymax-o.ymin,1)*r.bbox.h,f+=r.bbox.y;else{if(f=f/16*a,i){let d=(o.ymax+o.ymin)/2;f-=d/16*a}f+=r.bbox.y+r.bbox.h/2}l.push([u,f])}e.push(l)}}else if(hr[r.text]&&hr[r.text].flags.txt||r.type=="char"){let o=r.bbox.x,s=!!(hr[r.text]&&hr[r.text].flags.txt);for(let l=Number(s);l<r.text.length;l++){let c=xx(aF(r.text[l],s?"text":r.mode));if(!c){console.warn("unmapped character: "+r.text[l]);continue}for(let u=0;u<c.polylines.length;u++){let f=[];for(let d=0;d<c.polylines[u].length;d++){let h=c.polylines[u][d][0],p=c.polylines[u][d][1];h/=16,p/=16,h*=a,p*=a,r.mode=="tt"&&(c.w>16?h*=16/c.w:h+=(16-c.w)/2/16),h+=o,p+=r.bbox.y+r.bbox.h/2,f.push([h,p])}e.push(f)}r.mode=="tt"?o+=a:o+=c.w/16*a}}}return e}function Gd(t){return Math.round(t*100)/100}var Yee=class{constructor(t){this._latex=t,this._tokens=Evt(t),this._tree=dJ(this._tokens),RTe(this._tree.chld),Jd(this._tree),Vvt(this._tree),this._polylines=Uvt(this._tree)}resolveScale(t){var e,n,r,a;if(t==null)return[16,16,16,16];let i=(e=t.SCALE_X)!=null?e:16,o=(n=t.SCALE_Y)!=null?n:16;if(t.MIN_CHAR_H!=null){let c=0;for(let f=0;f<this._tree.chld.length;f++){let d=this._tree.chld[f];(d.type=="char"||hr[d.text]&&(hr[d.text].flags.txt||!Object.keys(hr[d.text].flags).length))&&(c=Math.min(d.bbox.h,c))}let u=Math.max(1,t.MIN_CHAR_H/c);i*=u,o*=u}if(t.MAX_W!=null){let c=i;i=Math.min(i,t.MAX_W/this._tree.bbox.w),o*=i/c}if(t.MAX_H!=null){let c=o;o=Math.min(o,t.MAX_H/this._tree.bbox.h),i*=o/c}let s=(r=t.MARGIN_X)!=null?r:i,l=(a=t.MARGIN_Y)!=null?a:o;return[s,l,i,o]}polylines(t){t||(t={});let e=[],[n,r,a,i]=this.resolveScale(t);for(let o=0;o<this._polylines.length;o++){e.push([]);for(let s=0;s<this._polylines[o].length;s++){let[l,c]=this._polylines[o][s];e[e.length-1].push([n+l*a,r+c*i])}}return e}pathd(t){t||(t={});let e="",[n,r,a,i]=this.resolveScale(t);for(let o=0;o<this._polylines.length;o++)for(let s=0;s<this._polylines[o].length;s++){let[l,c]=this._polylines[o][s];e+=s?"L":"M",e+=`${Gd(n+l*a)} ${Gd(r+c*i)}`}return e}svg(t){var e,n;t||(t={});let[r,a,i,o]=this.resolveScale(t),s=Gd(this._tree.bbox.w*i+r*2),l=Gd(this._tree.bbox.h*o+a*2),c=`<svg- xmlns="http://www.w3.org/2000/svg"- width="${s}" height="${l}"- fill="none" stroke="${(e=t.FG_COLOR)!=null?e:"black"}" stroke-width="${(n=t.STROKE_W)!=null?n:1}"- stroke-linecap="round" stroke-linejoin="round"- >`;t.BG_COLOR&&(c+=`<rect x="0" y="0" width="${s}" height="${l}" fill="${t.BG_COLOR}" stroke="none"></rect>`),c+='<path d="';for(let u=0;u<this._polylines.length;u++){c+="M";for(let f=0;f<this._polylines[u].length;f++){let[d,h]=this._polylines[u][f];c+=Gd(r+d*i)+" "+Gd(a+h*o)+" "}}return c+='"/>',c+="</svg>",c}pdf(t){var e;t||(t={});let[n,r,a,i]=this.resolveScale(t),o=Gd(this._tree.bbox.w*a+n*2),s=Gd(this._tree.bbox.h*i+r*2),l=`%PDF-1.1-%%¥±ë-1 0 obj-<< /Type /Catalog-/Pages 2 0 R->>endobj- 2 0 obj-<< /Type /Pages-/Kids [3 0 R]-/Count 1-/MediaBox [0 0 ${o} ${s}]->>-endobj- 3 0 obj-<< /Type /Page-/Parent 2 0 R-/Resources-<< /Font-<< /F1-<< /Type /Font- /Subtype /Type1-/BaseFont /Times-Roman->>->>->>-/Contents [`,c="",u=4;for(let p=0;p<this._polylines.length;p++){c+=`${u} 0 obj-<< /Length 0 >>- stream- 1 j 1 J ${(e=t.STROKE_W)!=null?e:1} w-`;for(var f=0;f<this._polylines[p].length;f++){var[d,h]=this._polylines[p][f];c+=`${Gd(n+d*a)} ${Gd(s-(r+h*i))} ${f?"l":"m"} `}c+=`-S-endstream-endobj-`,l+=`${u} 0 R `,u++}return l+=`]->>-endobj-`,c+=`-trailer-<< /Root 1 0 R- /Size 0- >>startxref--%%EOF-`,l+c}boxes(t){t||(t={});let[e,n,r,a]=this.resolveScale(t),i=[];for(let o=0;o<this._tree.chld.length;o++){let{x:s,y:l,w:c,h:u}=this._tree.chld[o].bbox;i.push({x:e+s*r,y:n+l*a,w:c*r,h:u*a})}return i}box(t){t||(t={});let[e,n,r,a]=this.resolveScale(t);return{x:e+this._tree.bbox.x*r,y:n+this._tree.bbox.y*a,w:this._tree.bbox.w*r,h:this._tree.bbox.h*a}}};ic.SUB_SUP_SCALE=.5;const Wvt=[{label:"高斯公式",latex:"\\int\\int\\int _ { \\Omega } \\left( \\frac { \\partial {P} } { \\partial {x} } + \\frac { \\partial {Q} } { \\partial {y} } + \\frac { \\partial {R} }{ \\partial {z} } \\right) \\mathrm { d } V = \\oint _ { \\partial \\Omega } ( P \\cos \\alpha + Q \\cos \\beta + R \\cos \\gamma ) \\mathrm{ d} S"},{label:"傅里叶级数",latex:"f(x) = \\frac {a_0} 2 + \\sum_{n = 1}^\\infty {({a_n}\\cos {nx} + {b_n}\\sin {nx})}"},{label:"泰勒展开式",latex:"e ^ { x } = 1 + \\frac { x } { 1 ! } + \\frac { x ^ { 2 } } { 2 ! } + \\frac { x ^ { 3 } } { 3 ! } + ... , \\quad - \\infty < x < \\infty"},{label:"定积分",latex:"\\lim_ { n \\rightarrow + \\infty } \\sum _ { i = 1 } ^ { n } f \\left[ a + \\frac { i } { n } ( b - a ) \\right] \\frac { b - a } { n } = \\int _ { a } ^ { b } f ( x ) dx"},{label:"三角恒等式1",latex:"\\sin \\alpha \\pm \\sin \\beta = 2 \\sin \\frac { 1 } { 2 } ( \\alpha \\pm \\beta ) \\cos \\frac { 1 } { 2 } ( \\alpha \\mp \\beta )"},{label:"三角恒等式2",latex:"\\cos \\alpha + \\cos \\beta = 2 \\cos \\frac { 1 } { 2 } ( \\alpha + \\beta ) \\cos \\frac { 1 } { 2 } ( \\alpha - \\beta )"},{label:"和的展开式",latex:"( 1 + x ) ^ { n } = 1 + \\frac { n x } { 1 ! } + \\frac { n ( n - 1 ) x ^ { 2 } } { 2 ! } + ..."},{label:"欧拉公式",latex:" e^{ix} = \\cos {x} + i\\sin {x}"},{label:"贝努利方程",latex:"\\frac {dy} {dx} + P(x)y = Q(x) y^n ({n} \\not= {0,1})"},{label:"全微分方程",latex:"du(x,y) = P(x,y)dx + Q(x,y)dy = 0"},{label:"非齐次方程",latex:"y = (\\int Q(x) e^{\\int {P(x)dx}}dx + C)e^{-\\int {P(x)dx}}"},{label:"柯西中值定理",latex:"\\frac{{f(b) - f(a)}}{{F(b) - F(a)}} = \\frac{{f'(\\xi )}}{{F'(\\xi )}}"},{label:"拉格朗日中值定理",latex:"f(b) - f(a) = f'(\\xi )(b - a)"},{label:"导数公式",latex:"(\\arcsin x)' = \\frac{1}{{\\sqrt {1 - x^2} }}"},{label:"三角函数积分",latex:"\\int {tgxdx = - \\ln \\left| {\\cos x} \\right| + C}"},{label:"二次曲面",latex:"\\frac{{{x^2}}}{{{a^2}}} + \\frac{{{y^2}}}{{{b^2}}} - \\frac{{{z^2}}}{{{c^2}}} = 1"},{label:"二阶微分",latex:"\\frac {{d^2}y} {dx^2} + P(x) \\frac {dy} {dx} + Q(x)y = f(x)"},{label:"方向导数",latex:"\\frac{{\\partial f}}{{\\partial l}} = \\frac{{\\partial f}}{{\\partial x}}\\cos \\phi + \\frac{{\\partial f}}{{\\partial y}}\\sin \\phi"}],MH=[{type:"operators",label:"数学",children:[{latex:"\\cdot"},{latex:"\\pm"},{latex:"\\mp"},{latex:"+"},{latex:"-"},{latex:"\\times"},{latex:"\\div"},{latex:"<"},{latex:">"},{latex:"="},{latex:"\\neq\\ne"},{latex:"\\leqq"},{latex:"\\geqq"},{latex:"\\leq"},{latex:"\\geq"},{latex:"\\propto"},{latex:"\\sim"},{latex:"\\equiv"},{latex:"\\dagger"},{latex:"\\ddagger"},{latex:"\\ell"},{latex:"\\#"},{latex:"\\$"},{latex:"\\&"},{latex:"\\%"},{latex:"\\langle\\rangle"},{latex:"()"},{latex:"[]"},{latex:"\\{\\}"},{latex:"||"},{latex:"\\|"},{latex:"\\exists"},{latex:"\\in"},{latex:"\\subset"},{latex:"\\supset"},{latex:"\\cup"},{latex:"\\cap"},{latex:"\\infty"},{latex:"\\partial"},{latex:"\\nabla"},{latex:"\\aleph"},{latex:"\\wp"},{latex:"\\therefore"},{latex:"\\mid"},{latex:"\\sum"},{latex:"\\prod"},{latex:"\\bigoplus"},{latex:"\\bigodot"},{latex:"\\int"},{latex:"\\oint"},{latex:"\\oplus"},{latex:"\\odot"},{latex:"\\perp"},{latex:"\\angle"},{latex:"\\triangle"},{latex:"\\Box"},{latex:"\\rightarrow"},{latex:"\\to"},{latex:"\\leftarrow"},{latex:"\\gets"},{latex:"\\circ"},{latex:"\\bigcirc"},{latex:"\\bullet"},{latex:"\\star"},{latex:"\\diamond"},{latex:"\\ast"},{latex:","},{latex:"."},{latex:";"},{latex:"!"}]},{type:"group",label:"组合",children:[{latex:"\\frac{a}{b}"},{latex:"\\frac{dx}{dx}"},{latex:"\\frac{\\partial a}{\\partial b}"},{latex:"\\sqrt{x}"},{latex:"\\sqrt[n]{x}"},{latex:"x^{n}"},{latex:"x_{n}"},{latex:"x_a^b"},{latex:"\\int_{a}^{b}"},{latex:"\\oint_a^b"},{latex:"\\lim_{a \\rightarrow b}"},{latex:"\\prod_a^b"},{latex:"\\sum_a^b"},{latex:"\\left(\\begin{array}a \\\\ b\\end{array}\\right)"},{latex:"\\begin{bmatrix}a & b \\\\ c & d \\end{bmatrix}"},{latex:"\\begin{cases}a & x = 0 \\\\ b & x > 0\\end{cases}"},{latex:"\\hat{a}"},{latex:"\\breve{a}"},{latex:"\\acute{a}"},{latex:"\\grave{a}"},{latex:"\\tilde{a}"},{latex:"\\bar{a}"},{latex:"\\vec{a}"},{latex:"\\underline{a}"},{latex:"\\overline{a}"},{latex:"\\widehat{ab}"},{latex:"\\overleftarrow{ab}"},{latex:"\\overrightarrow{ab}"}]},{type:"verbatim",label:"函数",children:[{latex:"\\log"},{latex:"\\ln"},{latex:"\\exp"},{latex:"\\mod"},{latex:"\\lim"},{latex:"\\sin"},{latex:"\\cos"},{latex:"\\tan"},{latex:"\\csc"},{latex:"\\sec"},{latex:"\\cot"},{latex:"\\sinh"},{latex:"\\cosh"},{latex:"\\tanh"},{latex:"\\csch"},{latex:"\\sech"},{latex:"\\coth"},{latex:"\\arcsin"},{latex:"\\arccos"},{latex:"\\arctan"},{latex:"\\arccsc"},{latex:"\\arcsec"},{latex:"\\arccot"}]},{type:"greek",label:"希腊字母",children:[{latex:"\\alpha"},{latex:"\\beta"},{latex:"\\gamma"},{latex:"\\delta"},{latex:"\\varepsilon"},{latex:"\\zeta"},{latex:"\\eta"},{latex:"\\vartheta"},{latex:"\\iota"},{latex:"\\kappa"},{latex:"\\lambda"},{latex:"\\mu"},{latex:"\\nu"},{latex:"\\xi"},{latex:"\\omicron"},{latex:"\\pi"},{latex:"\\rho"},{latex:"\\sigma"},{latex:"\\tau"},{latex:"\\upsilon"},{latex:"\\varphi"},{latex:"\\chi"},{latex:"\\psi"},{latex:"\\omega"},{latex:"\\epsilon"},{latex:"\\theta"},{latex:"\\phi"},{latex:"\\varsigma"},{latex:"\\Alpha"},{latex:"\\Beta"},{latex:"\\Gamma"},{latex:"\\Delta"},{latex:"\\Epsilon"},{latex:"\\Zeta"},{latex:"\\Eta"},{latex:"\\Theta"},{latex:"\\Iota"},{latex:"\\Kappa"},{latex:"\\Lambda"},{latex:"\\Mu"},{latex:"\\Nu"},{latex:"\\Xi"},{latex:"\\Omicron"},{latex:"\\Pi"},{latex:"\\Rho"},{latex:"\\Sigma"},{latex:"\\Tau"},{latex:"\\Upsilon"},{latex:"\\Phi"},{latex:"\\Chi"},{latex:"\\Psi"},{latex:"\\Omega"}]}],Yvt=["width","height"],Bvt=["transform"],Zvt=["d"],Qvt=tt({__name:"FormulaContent",props:{latex:{},width:{},height:{}},setup(t){const e=t,n=we({x:0,y:0,w:0,h:0}),r=we("");qt(()=>e.latex,()=>{const i=new Yee(e.latex);r.value=i.pathd({}),n.value=i.box({})},{immediate:!0});const a=Fe(()=>{const i=n.value.w+32,o=n.value.h+32;return i>e.width||o>e.height?i/o>e.width/e.height?e.width/i:e.height/o:1});return(i,o)=>(V(),H("svg",{class:"formula-content",overflow:"visible",width:n.value.w+32,height:n.value.h+32,stroke:"#000","stroke-width":"1",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[I("g",{transform:`scale(${a.value}, ${a.value}) translate(0,0) matrix(1,0,0,1,0,0)`,"transform-origin":"0 50%"},[I("path",{d:r.value},null,8,Zvt)],8,Bvt)],8,Yvt))}}),IAe=lt(Qvt,[["__scopeId","data-v-3b4e4b30"]]),Kvt=["innerHTML"],Hvt=tt({__name:"SymbolContent",props:{latex:{}},setup(t){const e=t,n=Fe(()=>new Yee(e.latex).svg({SCALE_X:10,SCALE_Y:10}));return(r,a)=>(V(),H("div",{class:"symbol-content",innerHTML:n.value},null,8,Kvt))}}),Gvt=["disabled","value","rows","placeholder"],$vt=tt({__name:"TextArea",props:{value:{},rows:{default:4},padding:{},disabled:{type:Boolean,default:!1},resizable:{type:Boolean,default:!1},placeholder:{default:""}},emits:["update:value","focus","blur","enter"],setup(t,{expose:e,emit:n}){const r=n,a=s=>{r("update:value",s.target.value)},i=un("textareaRef");return e({focus:()=>{i.value&&i.value.focus()}}),(s,l)=>(V(),H("textarea",{class:mt(["textarea",{disabled:s.disabled,resizable:s.resizable}]),ref_key:"textareaRef",ref:i,disabled:s.disabled,value:s.value,rows:s.rows,placeholder:s.placeholder,style:We({padding:s.padding?`${s.padding}px`:"10px"}),onInput:l[0]||(l[0]=c=>a(c)),onFocus:l[1]||(l[1]=c=>r("focus",c)),onBlur:l[2]||(l[2]=c=>r("blur",c)),onKeydown:l[3]||(l[3]=Xf(c=>r("enter",c),["enter"]))},null,46,Gvt))}}),hJ=lt($vt,[["__scopeId","data-v-172b7a69"]]),zvt={class:"latex-editor"},Jvt={class:"container"},jvt={class:"left"},qvt={class:"input-area"},e1t={class:"preview"},t1t={key:0,class:"placeholder"},n1t={key:1,class:"preview-content"},r1t={class:"right"},a1t={class:"content"},i1t={key:0,class:"symbol"},o1t={class:"symbol-pool"},s1t=["onClick"],l1t={key:1,class:"formula"},c1t={class:"formula-title"},u1t=["onClick"],f1t={class:"footer"},d1t=tt({__name:"index",props:{value:{default:""}},emits:["update","close"],setup(t,{emit:e}){const n=[{label:"常用符号",key:"symbol"},{label:"预置公式",key:"formula"}],r=t,a=e,i=Wvt,o=MH.map(p=>({label:p.label,key:p.type})),s=we(""),l=we("symbol"),c=un("textAreaRef"),u=we(MH[0].type),f=Fe(()=>{const p=MH.find(v=>v.type===u.value);return(p==null?void 0:p.children)||[]});mn(()=>{r.value&&(s.value=r.value),setTimeout(()=>{c.value&&c.value.focus()},0)});const d=()=>{if(!s.value)return Dn.error("公式不能为空");const p=new Yee(s.value),v=p.pathd({}),g=p.box({});a("update",{latex:s.value,path:v,w:g.w+32,h:g.h+32})},h=p=>{c.value&&(c.value.focus(),document.execCommand("insertText",!1,p))};return(p,v)=>(V(),H("div",zvt,[I("div",Jvt,[I("div",jvt,[I("div",qvt,[U(hJ,{value:s.value,"onUpdate:value":v[0]||(v[0]=g=>s.value=g),placeholder:"输入 LaTeX 公式",ref_key:"textAreaRef",ref:c},null,8,["value"])]),I("div",e1t,[s.value?(V(),H("div",n1t,[U(IAe,{width:518,height:138,latex:s.value},null,8,["latex"])])):(V(),H("div",t1t,"公式预览"))])]),I("div",r1t,[U(Wf,{tabs:n,value:l.value,"onUpdate:value":v[1]||(v[1]=g=>l.value=g),card:""},null,8,["value"]),I("div",a1t,[l.value==="symbol"?(V(),H("div",i1t,[U(Wf,{tabs:te(o),value:u.value,"onUpdate:value":v[2]||(v[2]=g=>u.value=g),spaceBetween:"",tabsStyle:{margin:"10px 10px 0"}},null,8,["tabs","value"]),I("div",o1t,[(V(!0),H(qe,null,bt(f.value,g=>(V(),H("div",{class:"symbol-item",key:g.latex,onClick:y=>h(g.latex)},[U(Hvt,{latex:g.latex},null,8,["latex"])],8,s1t))),128))])])):(V(),H("div",l1t,[(V(!0),H(qe,null,bt(te(i),g=>(V(),H("div",{class:"formula-item",key:g.label},[I("div",c1t,Vt(g.label),1),I("div",{class:"formula-item-content",onClick:y=>s.value=g.latex},[U(IAe,{width:236,height:60,latex:g.latex},null,8,["latex"])],8,u1t)]))),128))]))])])]),I("div",f1t,[U(Mt,{class:"btn",onClick:v[3]||(v[3]=g=>a("close"))},{default:pe(()=>v[5]||(v[5]=[rt("取消")])),_:1,__:[5]}),U(Mt,{class:"btn",type:"primary",onClick:v[4]||(v[4]=g=>d())},{default:pe(()=>v[6]||(v[6]=[rt("确定")])),_:1,__:[6]})])]))}}),xTe=lt(d1t,[["__scopeId","data-v-5764978b"]]),h1t={class:"canvas-tool"},p1t={class:"left-handler"},v1t={class:"more"},g1t={class:"handler-item"},m1t={class:"add-element-handler"},y1t={class:"arrow"},A1t={class:"group-btn-main"},R1t={class:"arrow"},b1t={class:"insert-handler-item group-btn"},x1t={class:"group-btn-main"},S1t={class:"arrow"},M1t={class:"insert-handler-item"},_1t={class:"insert-handler-item"},w1t={class:"insert-handler-item"},L1t={class:"right-handler"},T1t={class:"text"},O1t=tt({__name:"index",setup(t){const e=Wt(),{creatingElement:n,creatingCustomShape:r,showSelectPanel:a,showSearchPanel:i,showNotesPanel:o,showSymbolPanel:s}=nt(e),{canUndo:l,canRedo:c}=nt(TD()),{redo:u,undo:f}=Pn(),{scaleCanvas:d,setCanvasScalePercentage:h,resetCanvas:p,canvasScalePercentage:v}=kj(),g=[200,150,125,100,75,50],y=we(!1),m=se=>{h(se),y.value=!1},{createImageElement:R,createChartElement:A,createTableElement:x,createLatexElement:M,createVideoElement:S,createAudioElement:w}=M0(),_=se=>{const z=se[0];z&&ag(z).then(de=>R(de))},T=we(!1),O=we(!1),N=we(!1),P=we(!1),C=we(!1),E=we(!1),F=we(!1),Y=we(!1),Q=we(!1),K=we(!1),ne=(se=!1)=>{e.setCreatingElement({type:"text",vertical:se})},Z=se=>{e.setCreatingElement({type:"shape",data:se}),T.value=!1},$=()=>{e.setCreatingCustomShapeState(!0),T.value=!1},G=se=>{e.setCreatingElement({type:"line",data:se}),O.value=!1},ee=()=>{e.setSelectPanelState(!a.value)},ce=()=>{e.setSearchPanelState(!i.value)},B=()=>{e.setNotesPanelState(!o.value)},xe=()=>{e.setSymbolPanelState(!s.value)},_e=()=>{e.setImageLibPanelState(!0)};return(se,z)=>{var ut,je;const de=yTe,fe=mTe,re=u0t,X=s0t,j=gTe,oe=n0t,ae=BS,le=Jpt,ge=Gpt,Se=Tu,me=vTe,ye=Bpt,Ve=pTe,De=hTe,Ye=kpt,Je=Cpt,wt=Tpt,Lt=_pt,Ne=xpt,Te=Apt,ze=Wee,He=zf,pt=dpt,Ce=pr("tooltip");return V(),H("div",h1t,[I("div",p1t,[yt((V(),H("span",{class:mt(["handler-item",{disable:!te(l)}]),onClick:z[0]||(z[0]=it=>te(f)())},[U(de)],2)),[[Ce,"撤销(Ctrl + Z)"]]),yt((V(),H("span",{class:mt(["handler-item",{disable:!te(c)}]),onClick:z[1]||(z[1]=it=>te(u)())},[U(fe)],2)),[[Ce,"重做(Ctrl + Y)"]]),I("div",v1t,[U(hn,{type:"vertical",style:{height:"20px"}}),U(sn,{class:"more-icon",trigger:"click",value:K.value,"onUpdate:value":z[5]||(z[5]=it=>K.value=it),offset:10},{content:pe(()=>[U(ti,{class:"popover-menu-item",center:"",onClick:z[2]||(z[2]=it=>{B(),K.value=!1})},{default:pe(()=>[U(re,{class:"icon"}),z[43]||(z[43]=rt("批注面板"))]),_:1,__:[43]}),U(ti,{class:"popover-menu-item",center:"",onClick:z[3]||(z[3]=it=>{ee(),K.value=!1})},{default:pe(()=>[U(X,{class:"icon"}),z[44]||(z[44]=rt("选择窗格"))]),_:1,__:[44]}),U(ti,{class:"popover-menu-item",center:"",onClick:z[4]||(z[4]=it=>{ce(),K.value=!1})},{default:pe(()=>[U(j,{class:"icon"}),z[45]||(z[45]=rt("查找替换"))]),_:1,__:[45]})]),default:pe(()=>[I("span",g1t,[U(oe)])]),_:1},8,["value"]),yt((V(),H("span",{class:mt(["handler-item",{active:te(o)}]),onClick:z[6]||(z[6]=it=>B())},[U(re)],2)),[[Ce,"批注面板"]]),yt((V(),H("span",{class:mt(["handler-item",{active:te(a)}]),onClick:z[7]||(z[7]=it=>ee())},[U(X)],2)),[[Ce,"选择窗格"]]),yt((V(),H("span",{class:mt(["handler-item",{active:te(i)}]),onClick:z[8]||(z[8]=it=>ce())},[U(j)],2)),[[Ce,"查找/替换(Ctrl + F)"]])])]),I("div",m1t,[yt((V(),H("div",{class:mt(["insert-handler-item group-btn",{active:((ut=te(n))==null?void 0:ut.type)==="text"}])},[I("div",{class:"group-btn-main",onClick:z[9]||(z[9]=it=>ne())},[U(ae,{class:"icon"}),z[46]||(z[46]=rt()),z[47]||(z[47]=I("span",{class:"text"},"文本框",-1))]),U(sn,{trigger:"click",value:F.value,"onUpdate:value":z[12]||(z[12]=it=>F.value=it),style:{height:"100%"},offset:10},{content:pe(()=>[U(ti,{center:"",onClick:z[10]||(z[10]=()=>{ne(),F.value=!1})},{default:pe(()=>[U(le,{class:"icon"}),z[48]||(z[48]=rt(" 横向文本框"))]),_:1,__:[48]}),U(ti,{center:"",onClick:z[11]||(z[11]=()=>{ne(!0),F.value=!1})},{default:pe(()=>[U(ge,{class:"icon"}),z[49]||(z[49]=rt(" 竖向文本框"))]),_:1,__:[49]})]),default:pe(()=>[I("span",y1t,[U(Se)])]),_:1},8,["value"])],2)),[[Ce,"插入文字"]]),yt((V(),H("div",{class:mt(["insert-handler-item group-btn",{active:te(r)||((je=te(n))==null?void 0:je.type)==="shape"}]),offset:10},[U(sn,{trigger:"click",style:{height:"100%"},value:T.value,"onUpdate:value":z[14]||(z[14]=it=>T.value=it),offset:10},{content:pe(()=>[U(_0t,{onSelect:z[13]||(z[13]=it=>Z(it))})]),default:pe(()=>[I("div",A1t,[U(me,{class:"icon"}),z[50]||(z[50]=rt()),z[51]||(z[51]=I("span",{class:"text"},"形状",-1))])]),_:1},8,["value"]),U(sn,{trigger:"click",value:Y.value,"onUpdate:value":z[17]||(z[17]=it=>Y.value=it),style:{height:"100%"},offset:10},{content:pe(()=>[U(ti,{center:"",onClick:z[15]||(z[15]=it=>{Y.value=!1,T.value=!0})},{default:pe(()=>[U(me,{class:"icon"}),z[52]||(z[52]=rt("预设形状"))]),_:1,__:[52]}),U(ti,{center:"",onClick:z[16]||(z[16]=()=>{$(),Y.value=!1})},{default:pe(()=>[U(ye,{class:"icon"}),z[53]||(z[53]=rt("自由绘制"))]),_:1,__:[53]})]),default:pe(()=>[I("span",R1t,[U(Se)])]),_:1},8,["value"])],2)),[[Ce,"插入形状"]]),yt((V(),H("div",b1t,[U(Df,{style:{height:"100%"},onChange:z[18]||(z[18]=it=>_(it))},{default:pe(()=>[I("div",x1t,[U(Ve,{class:"icon"}),z[54]||(z[54]=rt()),z[55]||(z[55]=I("span",{class:"text"},"图片",-1))])]),_:1}),U(sn,{trigger:"click",value:Q.value,"onUpdate:value":z[21]||(z[21]=it=>Q.value=it),style:{height:"100%"},offset:10},{content:pe(()=>[U(Df,{onChange:z[19]||(z[19]=it=>{_(it),Q.value=!1})},{default:pe(()=>[U(ti,{center:""},{default:pe(()=>[U(De,{class:"icon"}),z[56]||(z[56]=rt(" 上传图片"))]),_:1,__:[56]})]),_:1}),U(ti,{center:"",onClick:z[20]||(z[20]=it=>{_e(),Q.value=!1})},{default:pe(()=>[U(Ve,{class:"icon"}),z[57]||(z[57]=rt(" 在线图库"))]),_:1,__:[57]})]),default:pe(()=>[I("span",S1t,[U(Se)])]),_:1},8,["value"])])),[[Ce,"插入图片"]]),U(sn,{trigger:"click",value:O.value,"onUpdate:value":z[23]||(z[23]=it=>O.value=it),offset:10},{content:pe(()=>[U(k0t,{onSelect:z[22]||(z[22]=it=>G(it))})]),default:pe(()=>{var it;return[yt((V(),H("div",{class:mt(["insert-handler-item",{active:((it=te(n))==null?void 0:it.type)==="line"}])},[U(Ye,{class:"icon"}),z[58]||(z[58]=rt()),z[59]||(z[59]=I("span",{class:"text"},"线条",-1))],2)),[[Ce,"插入线条"]])]}),_:1},8,["value"]),U(sn,{trigger:"click",value:N.value,"onUpdate:value":z[25]||(z[25]=it=>N.value=it),offset:10},{content:pe(()=>[U(cvt,{onSelect:z[24]||(z[24]=it=>{te(A)(it),N.value=!1})})]),default:pe(()=>[yt((V(),H("div",M1t,[U(Je,{class:"icon"}),z[60]||(z[60]=rt()),z[61]||(z[61]=I("span",{class:"text"},"图表",-1))])),[[Ce,"插入图表"]])]),_:1},8,["value"]),U(sn,{trigger:"click",value:P.value,"onUpdate:value":z[28]||(z[28]=it=>P.value=it),offset:10},{content:pe(()=>[U(_vt,{onClose:z[26]||(z[26]=it=>P.value=!1),onInsert:z[27]||(z[27]=({row:it,col:Pt})=>{te(x)(it,Pt),P.value=!1})})]),default:pe(()=>[yt((V(),H("div",_1t,[U(wt,{class:"icon"}),z[62]||(z[62]=rt()),z[63]||(z[63]=I("span",{class:"text"},"表格",-1))])),[[Ce,"插入表格"]])]),_:1},8,["value"]),yt((V(),H("div",{class:"insert-handler-item",onClick:z[29]||(z[29]=it=>E.value=!0)},[U(Lt,{class:"icon"}),z[64]||(z[64]=rt()),z[65]||(z[65]=I("span",{class:"text"},"公式",-1))])),[[Ce,"插入公式"]]),U(sn,{trigger:"click",value:C.value,"onUpdate:value":z[33]||(z[33]=it=>C.value=it),offset:10},{content:pe(()=>[U(Nvt,{onClose:z[30]||(z[30]=it=>C.value=!1),onInsertVideo:z[31]||(z[31]=({src:it,ext:Pt})=>{te(S)(it,Pt),C.value=!1}),onInsertAudio:z[32]||(z[32]=({src:it,ext:Pt})=>{te(w)(it,Pt),C.value=!1})})]),default:pe(()=>[yt((V(),H("div",w1t,[U(Ne,{class:"icon"}),z[66]||(z[66]=rt()),z[67]||(z[67]=I("span",{class:"text"},"音视频",-1))])),[[Ce,"插入音视频"]])]),_:1},8,["value"]),yt((V(),H("div",{class:mt(["insert-handler-item",{active:te(s)}]),onClick:z[34]||(z[34]=it=>xe())},[U(Te,{class:"icon"}),z[68]||(z[68]=rt()),z[69]||(z[69]=I("span",{class:"text"},"符号",-1))],2)),[[Ce,"插入符号"]])]),I("div",L1t,[yt((V(),H("span",{class:"handler-item viewport-size",onClick:z[35]||(z[35]=it=>te(d)("-"))},[U(ze)])),[[Ce,"画布缩小(Ctrl + -)"]]),U(sn,{trigger:"click",value:y.value,"onUpdate:value":z[37]||(z[37]=it=>y.value=it)},{content:pe(()=>[(V(),H(qe,null,bt(g,it=>U(ti,{center:"",key:it,onClick:Pt=>m(it)},{default:pe(()=>[rt(Vt(it)+"%",1)]),_:2},1032,["onClick"])),64)),U(ti,{center:"",onClick:z[36]||(z[36]=it=>{te(p)(),y.value=!1})},{default:pe(()=>z[70]||(z[70]=[rt("适应屏幕")])),_:1,__:[70]})]),default:pe(()=>[I("span",T1t,Vt(te(v)),1)]),_:1},8,["value"]),yt((V(),H("span",{class:"handler-item viewport-size",onClick:z[38]||(z[38]=it=>te(d)("+"))},[U(He)])),[[Ce,"画布放大(Ctrl + =)"]]),yt((V(),H("span",{class:"handler-item viewport-size-adaptation",onClick:z[39]||(z[39]=it=>te(p)())},[U(pt)])),[[Ce,"适应屏幕(Ctrl + 0)"]])]),U(j1,{visible:E.value,"onUpdate:visible":z[42]||(z[42]=it=>E.value=it),width:880},{default:pe(()=>[U(xTe,{onClose:z[40]||(z[40]=it=>E.value=!1),onUpdate:z[41]||(z[41]=it=>{te(M)(it),E.value=!1})})]),_:1},8,["visible"])])}}}),P1t=lt(O1t,[["__scopeId","data-v-383878b4"]]),C1t=()=>{const t=It(),{slides:e}=nt(t),{addHistorySnapshot:n}=Pn(),{deleteSlide:r}=ig();return{createSection:()=>{t.updateSlide({sectionTag:{id:Gn(6)}}),n()},removeSection:c=>{if(!c)return;const u=e.value.find(f=>{var d;return((d=f.sectionTag)==null?void 0:d.id)===c});t.removeSlideProps({id:u.id,propName:"sectionTag"}),n()},removeAllSection:()=>{const c=e.value.map(u=>(u.sectionTag&&delete u.sectionTag,u));t.setSlides(c),n()},removeSectionSlides:c=>{let u=0;c&&(u=e.value.findIndex(d=>{var h;return((h=d.sectionTag)==null?void 0:h.id)===c}));const f=[];for(let d=u;d<e.value.length;d++){const h=e.value[d];if(d!==u&&h.sectionTag)break;f.push(h.id)}r(f)},updateSectionTitle:(c,u)=>{if(u){if(c==="default")t.updateSlide({sectionTag:{id:Gn(6),title:u}},e.value[0].id);else{const f=e.value.find(d=>{var h;return((h=d.sectionTag)==null?void 0:h.id)===c});if(!f)return;t.updateSlide({sectionTag:{...f.sectionTag,title:u}},f.id)}n()}}}},ZS=()=>{const{slides:t}=nt(It()),e=we(null),n=we(50),r=()=>{t.value.length>n.value?e.value=setTimeout(()=>{n.value=n.value+20,r()},600):n.value=9999};return mn(r),or(()=>{e.value&&clearTimeout(e.value)}),{slidesLoadLimit:n}},N1t={class:"templates"},I1t={class:"catalogs"},k1t=["onClick"],E1t={class:"content"},F1t={class:"header"},X1t={class:"types"},D1t=["onClick"],V1t={key:0,class:"slide-item"},U1t={class:"btns"},W1t=tt({__name:"Templates",emits:["select","selectAll"],setup(t,{emit:e}){const n=e,r=It(),{templates:a}=nt(r),i=we([]),o=we({}),s=un("listRef"),l=we([{label:"全部",value:"all"},{label:"封面",value:"cover"},{label:"目录",value:"contents"},{label:"过渡",value:"transition"},{label:"内容",value:"content"},{label:"结束",value:"end"}]),c=we("all"),u=we(""),f=we(!1),d=v=>{n("select",v)},h=({slides:v,theme:g})=>{n("selectAll",{slides:v,theme:g})},p=v=>{f.value=!0,u.value=v,YF.getMockData(u.value).then(g=>{i.value=g.slides,g.theme&&(o.value=g.theme),f.value=!1,s.value&&s.value.scrollTo(0,0)}).catch(()=>{f.value=!1})};return mn(()=>{p(a.value[0].id)}),(v,g)=>{const y=pr("loading");return V(),H("div",N1t,[I("div",I1t,[(V(!0),H(qe,null,bt(te(a),m=>(V(),H("div",{class:mt(["catalog",{active:u.value===m.id}]),key:m.id,onClick:R=>p(m.id)},Vt(m.name),11,k1t))),128))]),yt((V(),H("div",E1t,[I("div",F1t,[I("div",X1t,[(V(!0),H(qe,null,bt(l.value,m=>(V(),H("div",{class:mt(["type",{active:c.value===m.value}]),key:m.value,onClick:R=>c.value=m.value},Vt(m.label),11,D1t))),128))]),I("div",{class:"insert-all",onClick:g[0]||(g[0]=m=>h({slides:i.value,theme:o.value}))},"插入全部")]),I("div",{class:"list",ref_key:"listRef",ref:s},[(V(!0),H(qe,null,bt(i.value,m=>(V(),H(qe,{key:m.id},[m.type===c.value||c.value==="all"?(V(),H("div",V1t,[U(bc,{class:"thumbnail",slide:m,size:180},null,8,["slide"]),I("div",U1t,[U(Mt,{class:"btn",type:"primary",size:"small",onClick:R=>d(m)},{default:pe(()=>g[1]||(g[1]=[rt("插入模板")])),_:2,__:[1]},1032,["onClick"])])])):at("",!0)],64))),128))],512)])),[[y,{state:f.value,text:"加载中..."}]])])}}}),Y1t=lt(W1t,[["__scopeId","data-v-c1217010"]]);var STe={exports:{}};const B1t=Aj(eFe);/**!- * Sortable 1.14.0- * @author RubaXa <[email protected]>- * @author owenm <[email protected]>- * @license MIT- */function kAe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Ih(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kAe(Object(n),!0).forEach(function(r){Z1t(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kAe(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function iF(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?iF=function(e){return typeof e}:iF=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iF(t)}function Z1t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mu(){return Mu=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Mu.apply(this,arguments)}function Q1t(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,i;for(i=0;i<r.length;i++)a=r[i],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}function K1t(t,e){if(t==null)return{};var n=Q1t(t,e),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)r=i[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function H1t(t){return G1t(t)||$1t(t)||z1t(t)||J1t()}function G1t(t){if(Array.isArray(t))return pJ(t)}function $1t(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function z1t(t,e){if(t){if(typeof t=="string")return pJ(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pJ(t,e)}}function pJ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function J1t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j1t="1.14.0";function d0(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var O0=d0(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),W8=d0(/Edge/i),EAe=d0(/firefox/i),iw=d0(/safari/i)&&!d0(/chrome/i)&&!d0(/android/i),MTe=d0(/iP(ad|od|hone)/i),q1t=d0(/chrome/i)&&d0(/android/i),_Te={capture:!1,passive:!1};function mr(t,e,n){t.addEventListener(e,n,!O0&&_Te)}function ur(t,e,n){t.removeEventListener(e,n,!O0&&_Te)}function $X(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function egt(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Mf(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&$X(t,e):$X(t,e))||r&&t===n)return t;if(t===n)break}while(t=egt(t))}return null}var FAe=/\s+/g;function Za(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(FAe," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(FAe," ")}}function ln(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function oy(t,e){var n="";if(typeof t=="string")n=t;else do{var r=ln(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function wTe(t,e,n){if(t){var r=t.getElementsByTagName(e),a=0,i=r.length;if(n)for(;a<i;a++)n(r[a],a);return r}return[]}function wh(){var t=document.scrollingElement;return t||document.documentElement}function Ea(t,e,n,r,a){if(!(!t.getBoundingClientRect&&t!==window)){var i,o,s,l,c,u,f;if(t!==window&&t.parentNode&&t!==wh()?(i=t.getBoundingClientRect(),o=i.top,s=i.left,l=i.bottom,c=i.right,u=i.height,f=i.width):(o=0,s=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,f=window.innerWidth),(e||n)&&t!==window&&(a=a||t.parentNode,!O0))do if(a&&a.getBoundingClientRect&&(ln(a,"transform")!=="none"||n&&ln(a,"position")!=="static")){var d=a.getBoundingClientRect();o-=d.top+parseInt(ln(a,"border-top-width")),s-=d.left+parseInt(ln(a,"border-left-width")),l=o+i.height,c=s+i.width;break}while(a=a.parentNode);if(r&&t!==window){var h=oy(a||t),p=h&&h.a,v=h&&h.d;h&&(o/=v,s/=p,f/=p,u/=v,l=o+u,c=s+f)}return{top:o,left:s,bottom:l,right:c,width:f,height:u}}}function XAe(t,e,n){for(var r=w1(t,!0),a=Ea(t)[e];r;){var i=Ea(r)[n],o=void 0;if(o=a>=i,!o)return r;if(r===wh())break;r=w1(r,!1)}return!1}function xS(t,e,n,r){for(var a=0,i=0,o=t.children;i<o.length;){if(o[i].style.display!=="none"&&o[i]!==Tn.ghost&&(r||o[i]!==Tn.dragged)&&Mf(o[i],n.draggable,t,!1)){if(a===e)return o[i];a++}i++}return null}function Bee(t,e){for(var n=t.lastElementChild;n&&(n===Tn.ghost||ln(n,"display")==="none"||e&&!$X(n,e));)n=n.previousElementSibling;return n||null}function ai(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Tn.clone&&(!e||$X(t,e))&&n++;return n}function DAe(t){var e=0,n=0,r=wh();if(t)do{var a=oy(t),i=a.a,o=a.d;e+=t.scrollLeft*i,n+=t.scrollTop*o}while(t!==r&&(t=t.parentNode));return[e,n]}function tgt(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function w1(t,e){if(!t||!t.getBoundingClientRect)return wh();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var a=ln(n);if(n.clientWidth<n.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return wh();if(r||e)return n;r=!0}}while(n=n.parentNode);return wh()}function ngt(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function _H(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var ow;function LTe(t,e){return function(){if(!ow){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),ow=setTimeout(function(){ow=void 0},e)}}}function rgt(){clearTimeout(ow),ow=void 0}function TTe(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function Zee(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function VAe(t,e){ln(t,"position","absolute"),ln(t,"top",e.top),ln(t,"left",e.left),ln(t,"width",e.width),ln(t,"height",e.height)}function wH(t){ln(t,"position",""),ln(t,"top",""),ln(t,"left",""),ln(t,"width",""),ln(t,"height","")}var us="Sortable"+new Date().getTime();function agt(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(a){if(!(ln(a,"display")==="none"||a===Tn.ghost)){t.push({target:a,rect:Ea(a)});var i=Ih({},t[t.length-1].rect);if(a.thisAnimationDuration){var o=oy(a,!0);o&&(i.top-=o.f,i.left-=o.e)}a.fromRect=i}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(tgt(t,{target:r}),1)},animateAll:function(r){var a=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var i=!1,o=0;t.forEach(function(s){var l=0,c=s.target,u=c.fromRect,f=Ea(c),d=c.prevFromRect,h=c.prevToRect,p=s.rect,v=oy(c,!0);v&&(f.top-=v.f,f.left-=v.e),c.toRect=f,c.thisAnimationDuration&&_H(d,f)&&!_H(u,f)&&(p.top-f.top)/(p.left-f.left)===(u.top-f.top)/(u.left-f.left)&&(l=ogt(p,d,h,a.options)),_H(f,u)||(c.prevFromRect=u,c.prevToRect=f,l||(l=a.options.animation),a.animate(c,p,f,l)),l&&(i=!0,o=Math.max(o,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(e),i?e=setTimeout(function(){typeof r=="function"&&r()},o):typeof r=="function"&&r(),t=[]},animate:function(r,a,i,o){if(o){ln(r,"transition",""),ln(r,"transform","");var s=oy(this.el),l=s&&s.a,c=s&&s.d,u=(a.left-i.left)/(l||1),f=(a.top-i.top)/(c||1);r.animatingX=!!u,r.animatingY=!!f,ln(r,"transform","translate3d("+u+"px,"+f+"px,0)"),this.forRepaintDummy=igt(r),ln(r,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),ln(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){ln(r,"transition",""),ln(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},o)}}}}function igt(t){return t.offsetWidth}function ogt(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var Wb=[],LH={initializeByDefault:!0},Y8={mount:function(e){for(var n in LH)LH.hasOwnProperty(n)&&!(n in e)&&(e[n]=LH[n]);Wb.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Wb.push(e)},pluginEvent:function(e,n,r){var a=this;this.eventCanceled=!1,r.cancel=function(){a.eventCanceled=!0};var i=e+"Global";Wb.forEach(function(o){n[o.pluginName]&&(n[o.pluginName][i]&&n[o.pluginName][i](Ih({sortable:n},r)),n.options[o.pluginName]&&n[o.pluginName][e]&&n[o.pluginName][e](Ih({sortable:n},r)))})},initializePlugins:function(e,n,r,a){Wb.forEach(function(s){var l=s.pluginName;if(!(!e.options[l]&&!s.initializeByDefault)){var c=new s(e,n,e.options);c.sortable=e,c.options=e.options,e[l]=c,Mu(r,c.defaults)}});for(var i in e.options)if(e.options.hasOwnProperty(i)){var o=this.modifyOption(e,i,e.options[i]);typeof o<"u"&&(e.options[i]=o)}},getEventProperties:function(e,n){var r={};return Wb.forEach(function(a){typeof a.eventProperties=="function"&&Mu(r,a.eventProperties.call(n[a.pluginName],e))}),r},modifyOption:function(e,n,r){var a;return Wb.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[n]=="function"&&(a=i.optionListeners[n].call(e[i.pluginName],r))}),a}};function v_(t){var e=t.sortable,n=t.rootEl,r=t.name,a=t.targetEl,i=t.cloneEl,o=t.toEl,s=t.fromEl,l=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,f=t.newDraggableIndex,d=t.originalEvent,h=t.putSortable,p=t.extraEventProperties;if(e=e||n&&n[us],!!e){var v,g=e.options,y="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!O0&&!W8?v=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(r,!0,!0)),v.to=o||n,v.from=s||n,v.item=a||n,v.clone=i,v.oldIndex=l,v.newIndex=c,v.oldDraggableIndex=u,v.newDraggableIndex=f,v.originalEvent=d,v.pullMode=h?h.lastPutMode:void 0;var m=Ih(Ih({},p),Y8.getEventProperties(r,e));for(var R in m)v[R]=m[R];n&&n.dispatchEvent(v),g[y]&&g[y].call(e,v)}}var sgt=["evt"],al=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=r.evt,i=K1t(r,sgt);Y8.pluginEvent.bind(Tn)(e,n,Ih({dragEl:Qt,parentEl:ja,ghostEl:jn,rootEl:Na,nextEl:S2,lastDownEl:oF,cloneEl:qa,cloneHidden:g1,dragStarted:g_,putSortable:So,activeSortable:Tn.active,originalEvent:a,oldIndex:Sx,oldDraggableIndex:sw,newIndex:nc,newDraggableIndex:u1,hideGhostForTarget:NTe,unhideGhostForTarget:ITe,cloneNowHidden:function(){g1=!0},cloneNowShown:function(){g1=!1},dispatchSortableEvent:function(s){Ps({sortable:n,name:s,originalEvent:a})}},i))};function Ps(t){v_(Ih({putSortable:So,cloneEl:qa,targetEl:Qt,rootEl:Na,oldIndex:Sx,oldDraggableIndex:sw,newIndex:nc,newDraggableIndex:u1},t))}var Qt,ja,jn,Na,S2,oF,qa,g1,Sx,nc,sw,u1,hE,So,ux=!1,zX=!1,JX=[],p2,ff,TH,OH,UAe,WAe,g_,Yb,lw,cw=!1,pE=!1,sF,ts,PH=[],vJ=!1,jX=[],CV=typeof document<"u",vE=MTe,YAe=W8||O0?"cssFloat":"float",lgt=CV&&!q1t&&!MTe&&"draggable"in document.createElement("div"),OTe=function(){if(CV){if(O0)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),PTe=function(e,n){var r=ln(e),a=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=xS(e,0,n),o=xS(e,1,n),s=i&&ln(i),l=o&&ln(o),c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Ea(i).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Ea(o).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&s.float&&s.float!=="none"){var f=s.float==="left"?"left":"right";return o&&(l.clear==="both"||l.clear===f)?"vertical":"horizontal"}return i&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||c>=a&&r[YAe]==="none"||o&&r[YAe]==="none"&&c+u>a)?"vertical":"horizontal"},cgt=function(e,n,r){var a=r?e.left:e.top,i=r?e.right:e.bottom,o=r?e.width:e.height,s=r?n.left:n.top,l=r?n.right:n.bottom,c=r?n.width:n.height;return a===s||i===l||a+o/2===s+c/2},ugt=function(e,n){var r;return JX.some(function(a){var i=a[us].options.emptyInsertThreshold;if(!(!i||Bee(a))){var o=Ea(a),s=e>=o.left-i&&e<=o.right+i,l=n>=o.top-i&&n<=o.bottom+i;if(s&&l)return r=a}}),r},CTe=function(e){function n(i,o){return function(s,l,c,u){var f=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(i==null&&(o||f))return!0;if(i==null||i===!1)return!1;if(o&&i==="clone")return i;if(typeof i=="function")return n(i(s,l,c,u),o)(s,l,c,u);var d=(o?s:l).options.group.name;return i===!0||typeof i=="string"&&i===d||i.join&&i.indexOf(d)>-1}}var r={},a=e.group;(!a||iF(a)!="object")&&(a={name:a}),r.name=a.name,r.checkPull=n(a.pull,!0),r.checkPut=n(a.put),r.revertClone=a.revertClone,e.group=r},NTe=function(){!OTe&&jn&&ln(jn,"display","none")},ITe=function(){!OTe&&jn&&ln(jn,"display","")};CV&&document.addEventListener("click",function(t){if(zX)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),zX=!1,!1},!0);var v2=function(e){if(Qt){e=e.touches?e.touches[0]:e;var n=ugt(e.clientX,e.clientY);if(n){var r={};for(var a in e)e.hasOwnProperty(a)&&(r[a]=e[a]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[us]._onDragOver(r)}}},fgt=function(e){Qt&&Qt.parentNode[us]._isOutsideThisEl(e.target)};function Tn(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Mu({},e),t[us]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return PTe(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,s){o.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Tn.supportPointer!==!1&&"PointerEvent"in window&&!iw,emptyInsertThreshold:5};Y8.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);CTe(e);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=e.forceFallback?!1:lgt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?mr(t,"pointerdown",this._onTapStart):(mr(t,"mousedown",this._onTapStart),mr(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(mr(t,"dragover",this),mr(t,"dragenter",this)),JX.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Mu(this,agt())}Tn.prototype={constructor:Tn,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Yb=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,Qt):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,r=this.el,a=this.options,i=a.preventOnFilter,o=e.type,s=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(s||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=a.filter;if(Agt(r),!Qt&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||a.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&iw&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Mf(l,a.draggable,r,!1),!(l&&l.animated)&&oF!==l)){if(Sx=ai(l),sw=ai(l,a.draggable),typeof u=="function"){if(u.call(this,e,l,this)){Ps({sortable:n,rootEl:c,name:"filter",targetEl:l,toEl:r,fromEl:r}),al("filter",n,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(f){if(f=Mf(c,f.trim(),r,!1),f)return Ps({sortable:n,rootEl:f,name:"filter",targetEl:l,fromEl:r,toEl:r}),al("filter",n,{evt:e}),!0}),u)){i&&e.cancelable&&e.preventDefault();return}a.handle&&!Mf(c,a.handle,r,!1)||this._prepareDragStart(e,s,l)}}},_prepareDragStart:function(e,n,r){var a=this,i=a.el,o=a.options,s=i.ownerDocument,l;if(r&&!Qt&&r.parentNode===i){var c=Ea(r);if(Na=i,Qt=r,ja=Qt.parentNode,S2=Qt.nextSibling,oF=r,hE=o.group,Tn.dragged=Qt,p2={target:Qt,clientX:(n||e).clientX,clientY:(n||e).clientY},UAe=p2.clientX-c.left,WAe=p2.clientY-c.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,Qt.style["will-change"]="all",l=function(){if(al("delayEnded",a,{evt:e}),Tn.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!EAe&&a.nativeDraggable&&(Qt.draggable=!0),a._triggerDragStart(e,n),Ps({sortable:a,name:"choose",originalEvent:e}),Za(Qt,o.chosenClass,!0)},o.ignore.split(",").forEach(function(u){wTe(Qt,u.trim(),CH)}),mr(s,"dragover",v2),mr(s,"mousemove",v2),mr(s,"touchmove",v2),mr(s,"mouseup",a._onDrop),mr(s,"touchend",a._onDrop),mr(s,"touchcancel",a._onDrop),EAe&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Qt.draggable=!0),al("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(W8||O0))){if(Tn.eventCanceled){this._onDrop();return}mr(s,"mouseup",a._disableDelayedDrag),mr(s,"touchend",a._disableDelayedDrag),mr(s,"touchcancel",a._disableDelayedDrag),mr(s,"mousemove",a._delayedDragTouchMoveHandler),mr(s,"touchmove",a._delayedDragTouchMoveHandler),o.supportPointer&&mr(s,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(l,o.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Qt&&CH(Qt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ur(e,"mouseup",this._disableDelayedDrag),ur(e,"touchend",this._disableDelayedDrag),ur(e,"touchcancel",this._disableDelayedDrag),ur(e,"mousemove",this._delayedDragTouchMoveHandler),ur(e,"touchmove",this._delayedDragTouchMoveHandler),ur(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?mr(document,"pointermove",this._onTouchMove):n?mr(document,"touchmove",this._onTouchMove):mr(document,"mousemove",this._onTouchMove):(mr(Qt,"dragend",this),mr(Na,"dragstart",this._onDragStart));try{document.selection?lF(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(ux=!1,Na&&Qt){al("dragStarted",this,{evt:n}),this.nativeDraggable&&mr(document,"dragover",fgt);var r=this.options;!e&&Za(Qt,r.dragClass,!1),Za(Qt,r.ghostClass,!0),Tn.active=this,e&&this._appendGhost(),Ps({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ff){this._lastX=ff.clientX,this._lastY=ff.clientY,NTe();for(var e=document.elementFromPoint(ff.clientX,ff.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ff.clientX,ff.clientY),e!==n);)n=e;if(Qt.parentNode[us]._isOutsideThisEl(e),n)do{if(n[us]){var r=void 0;if(r=n[us]._onDragOver({clientX:ff.clientX,clientY:ff.clientY,target:e,rootEl:n}),r&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);ITe()}},_onTouchMove:function(e){if(p2){var n=this.options,r=n.fallbackTolerance,a=n.fallbackOffset,i=e.touches?e.touches[0]:e,o=jn&&oy(jn,!0),s=jn&&o&&o.a,l=jn&&o&&o.d,c=vE&&ts&&DAe(ts),u=(i.clientX-p2.clientX+a.x)/(s||1)+(c?c[0]-PH[0]:0)/(s||1),f=(i.clientY-p2.clientY+a.y)/(l||1)+(c?c[1]-PH[1]:0)/(l||1);if(!Tn.active&&!ux){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(jn){o?(o.e+=u-(TH||0),o.f+=f-(OH||0)):o={a:1,b:0,c:0,d:1,e:u,f};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");ln(jn,"webkitTransform",d),ln(jn,"mozTransform",d),ln(jn,"msTransform",d),ln(jn,"transform",d),TH=u,OH=f,ff=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!jn){var e=this.options.fallbackOnBody?document.body:Na,n=Ea(Qt,!0,vE,!0,e),r=this.options;if(vE){for(ts=e;ln(ts,"position")==="static"&&ln(ts,"transform")==="none"&&ts!==document;)ts=ts.parentNode;ts!==document.body&&ts!==document.documentElement?(ts===document&&(ts=wh()),n.top+=ts.scrollTop,n.left+=ts.scrollLeft):ts=wh(),PH=DAe(ts)}jn=Qt.cloneNode(!0),Za(jn,r.ghostClass,!1),Za(jn,r.fallbackClass,!0),Za(jn,r.dragClass,!0),ln(jn,"transition",""),ln(jn,"transform",""),ln(jn,"box-sizing","border-box"),ln(jn,"margin",0),ln(jn,"top",n.top),ln(jn,"left",n.left),ln(jn,"width",n.width),ln(jn,"height",n.height),ln(jn,"opacity","0.8"),ln(jn,"position",vE?"absolute":"fixed"),ln(jn,"zIndex","100000"),ln(jn,"pointerEvents","none"),Tn.ghost=jn,e.appendChild(jn),ln(jn,"transform-origin",UAe/parseInt(jn.style.width)*100+"% "+WAe/parseInt(jn.style.height)*100+"%")}},_onDragStart:function(e,n){var r=this,a=e.dataTransfer,i=r.options;if(al("dragStart",this,{evt:e}),Tn.eventCanceled){this._onDrop();return}al("setupClone",this),Tn.eventCanceled||(qa=Zee(Qt),qa.draggable=!1,qa.style["will-change"]="",this._hideClone(),Za(qa,this.options.chosenClass,!1),Tn.clone=qa),r.cloneId=lF(function(){al("clone",r),!Tn.eventCanceled&&(r.options.removeCloneOnHide||Na.insertBefore(qa,Qt),r._hideClone(),Ps({sortable:r,name:"clone"}))}),!n&&Za(Qt,i.dragClass,!0),n?(zX=!0,r._loopId=setInterval(r._emulateDragOver,50)):(ur(document,"mouseup",r._onDrop),ur(document,"touchend",r._onDrop),ur(document,"touchcancel",r._onDrop),a&&(a.effectAllowed="move",i.setData&&i.setData.call(r,a,Qt)),mr(document,"drop",r),ln(Qt,"transform","translateZ(0)")),ux=!0,r._dragStartId=lF(r._dragStarted.bind(r,n,e)),mr(document,"selectstart",r),g_=!0,iw&&ln(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,r=e.target,a,i,o,s=this.options,l=s.group,c=Tn.active,u=hE===l,f=s.sort,d=So||c,h,p=this,v=!1;if(vJ)return;function g(Q,K){al(Q,p,Ih({evt:e,isOwner:u,axis:h?"vertical":"horizontal",revert:o,dragRect:a,targetRect:i,canSort:f,fromSortable:d,target:r,completed:m,onMove:function(Z,$){return gE(Na,n,Qt,a,Z,Ea(Z),e,$)},changed:R},K))}function y(){g("dragOverAnimationCapture"),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function m(Q){return g("dragOverCompleted",{insertion:Q}),Q&&(u?c._hideClone():c._showClone(p),p!==d&&(Za(Qt,So?So.options.ghostClass:c.options.ghostClass,!1),Za(Qt,s.ghostClass,!0)),So!==p&&p!==Tn.active?So=p:p===Tn.active&&So&&(So=null),d===p&&(p._ignoreWhileAnimating=r),p.animateAll(function(){g("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(r===Qt&&!Qt.animated||r===n&&!r.animated)&&(Yb=null),!s.dragoverBubble&&!e.rootEl&&r!==document&&(Qt.parentNode[us]._isOutsideThisEl(e.target),!Q&&v2(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),v=!0}function R(){nc=ai(Qt),u1=ai(Qt,s.draggable),Ps({sortable:p,name:"change",toEl:n,newIndex:nc,newDraggableIndex:u1,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=Mf(r,s.draggable,n,!0),g("dragOver"),Tn.eventCanceled)return v;if(Qt.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||p._ignoreWhileAnimating===r)return m(!1);if(zX=!1,c&&!s.disabled&&(u?f||(o=ja!==Na):So===this||(this.lastPutMode=hE.checkPull(this,c,Qt,e))&&l.checkPut(this,c,Qt,e))){if(h=this._getDirection(e,r)==="vertical",a=Ea(Qt),g("dragOverValid"),Tn.eventCanceled)return v;if(o)return ja=Na,y(),this._hideClone(),g("revert"),Tn.eventCanceled||(S2?Na.insertBefore(Qt,S2):Na.appendChild(Qt)),m(!0);var A=Bee(n,s.draggable);if(!A||vgt(e,h,this)&&!A.animated){if(A===Qt)return m(!1);if(A&&n===e.target&&(r=A),r&&(i=Ea(r)),gE(Na,n,Qt,a,r,i,e,!!r)!==!1)return y(),n.appendChild(Qt),ja=n,R(),m(!0)}else if(A&&pgt(e,h,this)){var x=xS(n,0,s,!0);if(x===Qt)return m(!1);if(r=x,i=Ea(r),gE(Na,n,Qt,a,r,i,e,!1)!==!1)return y(),n.insertBefore(Qt,x),ja=n,R(),m(!0)}else if(r.parentNode===n){i=Ea(r);var M=0,S,w=Qt.parentNode!==n,_=!cgt(Qt.animated&&Qt.toRect||a,r.animated&&r.toRect||i,h),T=h?"top":"left",O=XAe(r,"top","top")||XAe(Qt,"top","top"),N=O?O.scrollTop:void 0;Yb!==r&&(S=i[T],cw=!1,pE=!_&&s.invertSwap||w),M=ggt(e,r,i,h,_?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,pE,Yb===r);var P;if(M!==0){var C=ai(Qt);do C-=M,P=ja.children[C];while(P&&(ln(P,"display")==="none"||P===jn))}if(M===0||P===r)return m(!1);Yb=r,lw=M;var E=r.nextElementSibling,F=!1;F=M===1;var Y=gE(Na,n,Qt,a,r,i,e,F);if(Y!==!1)return(Y===1||Y===-1)&&(F=Y===1),vJ=!0,setTimeout(hgt,30),y(),F&&!E?n.appendChild(Qt):r.parentNode.insertBefore(Qt,F?E:r),O&&TTe(O,0,N-O.scrollTop),ja=Qt.parentNode,S!==void 0&&!pE&&(sF=Math.abs(S-Ea(r)[T])),R(),m(!0)}if(n.contains(Qt))return m(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ur(document,"mousemove",this._onTouchMove),ur(document,"touchmove",this._onTouchMove),ur(document,"pointermove",this._onTouchMove),ur(document,"dragover",v2),ur(document,"mousemove",v2),ur(document,"touchmove",v2)},_offUpEvents:function(){var e=this.el.ownerDocument;ur(e,"mouseup",this._onDrop),ur(e,"touchend",this._onDrop),ur(e,"pointerup",this._onDrop),ur(e,"touchcancel",this._onDrop),ur(document,"selectstart",this)},_onDrop:function(e){var n=this.el,r=this.options;if(nc=ai(Qt),u1=ai(Qt,r.draggable),al("drop",this,{evt:e}),ja=Qt&&Qt.parentNode,nc=ai(Qt),u1=ai(Qt,r.draggable),Tn.eventCanceled){this._nulling();return}ux=!1,pE=!1,cw=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),gJ(this.cloneId),gJ(this._dragStartId),this.nativeDraggable&&(ur(document,"drop",this),ur(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),iw&&ln(document.body,"user-select",""),ln(Qt,"transform",""),e&&(g_&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),jn&&jn.parentNode&&jn.parentNode.removeChild(jn),(Na===ja||So&&So.lastPutMode!=="clone")&&qa&&qa.parentNode&&qa.parentNode.removeChild(qa),Qt&&(this.nativeDraggable&&ur(Qt,"dragend",this),CH(Qt),Qt.style["will-change"]="",g_&&!ux&&Za(Qt,So?So.options.ghostClass:this.options.ghostClass,!1),Za(Qt,this.options.chosenClass,!1),Ps({sortable:this,name:"unchoose",toEl:ja,newIndex:null,newDraggableIndex:null,originalEvent:e}),Na!==ja?(nc>=0&&(Ps({rootEl:ja,name:"add",toEl:ja,fromEl:Na,originalEvent:e}),Ps({sortable:this,name:"remove",toEl:ja,originalEvent:e}),Ps({rootEl:ja,name:"sort",toEl:ja,fromEl:Na,originalEvent:e}),Ps({sortable:this,name:"sort",toEl:ja,originalEvent:e})),So&&So.save()):nc!==Sx&&nc>=0&&(Ps({sortable:this,name:"update",toEl:ja,originalEvent:e}),Ps({sortable:this,name:"sort",toEl:ja,originalEvent:e})),Tn.active&&((nc==null||nc===-1)&&(nc=Sx,u1=sw),Ps({sortable:this,name:"end",toEl:ja,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){al("nulling",this),Na=Qt=ja=jn=S2=qa=oF=g1=p2=ff=g_=nc=u1=Sx=sw=Yb=lw=So=hE=Tn.dragged=Tn.ghost=Tn.clone=Tn.active=null,jX.forEach(function(e){e.checked=!0}),jX.length=TH=OH=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Qt&&(this._onDragOver(e),dgt(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,r=this.el.children,a=0,i=r.length,o=this.options;a<i;a++)n=r[a],Mf(n,o.draggable,this.el,!1)&&e.push(n.getAttribute(o.dataIdAttr)||ygt(n));return e},sort:function(e,n){var r={},a=this.el;this.toArray().forEach(function(i,o){var s=a.children[o];Mf(s,this.options.draggable,a,!1)&&(r[i]=s)},this),n&&this.captureAnimationState(),e.forEach(function(i){r[i]&&(a.removeChild(r[i]),a.appendChild(r[i]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return Mf(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var r=this.options;if(n===void 0)return r[e];var a=Y8.modifyOption(this,e,n);typeof a<"u"?r[e]=a:r[e]=n,e==="group"&&CTe(r)},destroy:function(){al("destroy",this);var e=this.el;e[us]=null,ur(e,"mousedown",this._onTapStart),ur(e,"touchstart",this._onTapStart),ur(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(ur(e,"dragover",this),ur(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),JX.splice(JX.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!g1){if(al("hideClone",this),Tn.eventCanceled)return;ln(qa,"display","none"),this.options.removeCloneOnHide&&qa.parentNode&&qa.parentNode.removeChild(qa),g1=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(g1){if(al("showClone",this),Tn.eventCanceled)return;Qt.parentNode==Na&&!this.options.group.revertClone?Na.insertBefore(qa,Qt):S2?Na.insertBefore(qa,S2):Na.appendChild(qa),this.options.group.revertClone&&this.animate(Qt,qa),ln(qa,"display",""),g1=!1}}};function dgt(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function gE(t,e,n,r,a,i,o,s){var l,c=t[us],u=c.options.onMove,f;return window.CustomEvent&&!O0&&!W8?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=t,l.dragged=n,l.draggedRect=r,l.related=a||e,l.relatedRect=i||Ea(e),l.willInsertAfter=s,l.originalEvent=o,t.dispatchEvent(l),u&&(f=u.call(c,l,o)),f}function CH(t){t.draggable=!1}function hgt(){vJ=!1}function pgt(t,e,n){var r=Ea(xS(n.el,0,n.options,!0)),a=10;return e?t.clientX<r.left-a||t.clientY<r.top&&t.clientX<r.right:t.clientY<r.top-a||t.clientY<r.bottom&&t.clientX<r.left}function vgt(t,e,n){var r=Ea(Bee(n.el,n.options.draggable)),a=10;return e?t.clientX>r.right+a||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+a}function ggt(t,e,n,r,a,i,o,s){var l=r?t.clientY:t.clientX,c=r?n.height:n.width,u=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!o){if(s&&sF<c*a){if(!cw&&(lw===1?l>u+c*i/2:l<f-c*i/2)&&(cw=!0),cw)d=!0;else if(lw===1?l<u+sF:l>f-sF)return-lw}else if(l>u+c*(1-a)/2&&l<f-c*(1-a)/2)return mgt(e)}return d=d||o,d&&(l<u+c*i/2||l>f-c*i/2)?l>u+c/2?1:-1:0}function mgt(t){return ai(Qt)<ai(t)?1:-1}function ygt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function Agt(t){jX.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&jX.push(r)}}function lF(t){return setTimeout(t,0)}function gJ(t){return clearTimeout(t)}CV&&mr(document,"touchmove",function(t){(Tn.active||ux)&&t.cancelable&&t.preventDefault()});Tn.utils={on:mr,off:ur,css:ln,find:wTe,is:function(e,n){return!!Mf(e,n,e,!1)},extend:ngt,throttle:LTe,closest:Mf,toggleClass:Za,clone:Zee,index:ai,nextTick:lF,cancelNextTick:gJ,detectDirection:PTe,getChild:xS};Tn.get=function(t){return t[us]};Tn.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Tn.utils=Ih(Ih({},Tn.utils),r.utils)),Y8.mount(r)})};Tn.create=function(t,e){return new Tn(t,e)};Tn.version=j1t;var Li=[],m_,mJ,yJ=!1,NH,IH,qX,y_;function Rgt(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?mr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?mr(document,"pointermove",this._handleFallbackAutoScroll):r.touches?mr(document,"touchmove",this._handleFallbackAutoScroll):mr(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?ur(document,"dragover",this._handleAutoScroll):(ur(document,"pointermove",this._handleFallbackAutoScroll),ur(document,"touchmove",this._handleFallbackAutoScroll),ur(document,"mousemove",this._handleFallbackAutoScroll)),BAe(),cF(),rgt()},nulling:function(){qX=mJ=m_=yJ=y_=NH=IH=null,Li.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var a=this,i=(n.touches?n.touches[0]:n).clientX,o=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(i,o);if(qX=n,r||this.options.forceAutoScrollFallback||W8||O0||iw){kH(n,this.options,s,r);var l=w1(s,!0);yJ&&(!y_||i!==NH||o!==IH)&&(y_&&BAe(),y_=setInterval(function(){var c=w1(document.elementFromPoint(i,o),!0);c!==l&&(l=c,cF()),kH(n,a.options,c,r)},10),NH=i,IH=o)}else{if(!this.options.bubbleScroll||w1(s,!0)===wh()){cF();return}kH(n,this.options,w1(s,!1),!1)}}},Mu(t,{pluginName:"scroll",initializeByDefault:!0})}function cF(){Li.forEach(function(t){clearInterval(t.pid)}),Li=[]}function BAe(){clearInterval(y_)}var kH=LTe(function(t,e,n,r){if(e.scroll){var a=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,o=e.scrollSensitivity,s=e.scrollSpeed,l=wh(),c=!1,u;mJ!==n&&(mJ=n,cF(),m_=e.scroll,u=e.scrollFn,m_===!0&&(m_=w1(n,!0)));var f=0,d=m_;do{var h=d,p=Ea(h),v=p.top,g=p.bottom,y=p.left,m=p.right,R=p.width,A=p.height,x=void 0,M=void 0,S=h.scrollWidth,w=h.scrollHeight,_=ln(h),T=h.scrollLeft,O=h.scrollTop;h===l?(x=R<S&&(_.overflowX==="auto"||_.overflowX==="scroll"||_.overflowX==="visible"),M=A<w&&(_.overflowY==="auto"||_.overflowY==="scroll"||_.overflowY==="visible")):(x=R<S&&(_.overflowX==="auto"||_.overflowX==="scroll"),M=A<w&&(_.overflowY==="auto"||_.overflowY==="scroll"));var N=x&&(Math.abs(m-a)<=o&&T+R<S)-(Math.abs(y-a)<=o&&!!T),P=M&&(Math.abs(g-i)<=o&&O+A<w)-(Math.abs(v-i)<=o&&!!O);if(!Li[f])for(var C=0;C<=f;C++)Li[C]||(Li[C]={});(Li[f].vx!=N||Li[f].vy!=P||Li[f].el!==h)&&(Li[f].el=h,Li[f].vx=N,Li[f].vy=P,clearInterval(Li[f].pid),(N!=0||P!=0)&&(c=!0,Li[f].pid=setInterval((function(){r&&this.layer===0&&Tn.active._onTouchMove(qX);var E=Li[this.layer].vy?Li[this.layer].vy*s:0,F=Li[this.layer].vx?Li[this.layer].vx*s:0;typeof u=="function"&&u.call(Tn.dragged.parentNode[us],F,E,t,qX,Li[this.layer].el)!=="continue"||TTe(Li[this.layer].el,F,E)}).bind({layer:f}),24))),f++}while(e.bubbleScroll&&d!==l&&(d=w1(d,!1)));yJ=c}},30),kTe=function(e){var n=e.originalEvent,r=e.putSortable,a=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,s=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(n){var c=r||i;s();var u=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(u.clientX,u.clientY);l(),c&&!c.el.contains(f)&&(o("spill"),this.onSpill({dragEl:a,putSortable:r}))}};function Qee(){}Qee.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var a=xS(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(n,a):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:kTe};Mu(Qee,{pluginName:"revertOnSpill"});function Kee(){}Kee.prototype={onSpill:function(e){var n=e.dragEl,r=e.putSortable,a=r||this.sortable;a.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),a.animateAll()},drop:kTe};Mu(Kee,{pluginName:"removeOnSpill"});var qc;function bgt(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(n){var r=n.dragEl;qc=r},dragOverValid:function(n){var r=n.completed,a=n.target,i=n.onMove,o=n.activeSortable,s=n.changed,l=n.cancel;if(o.options.swap){var c=this.sortable.el,u=this.options;if(a&&a!==c){var f=qc;i(a)!==!1?(Za(a,u.swapClass,!0),qc=a):qc=null,f&&f!==qc&&Za(f,u.swapClass,!1)}s(),r(!0),l()}},drop:function(n){var r=n.activeSortable,a=n.putSortable,i=n.dragEl,o=a||this.sortable,s=this.options;qc&&Za(qc,s.swapClass,!1),qc&&(s.swap||a&&a.options.swap)&&i!==qc&&(o.captureAnimationState(),o!==r&&r.captureAnimationState(),xgt(i,qc),o.animateAll(),o!==r&&r.animateAll())},nulling:function(){qc=null}},Mu(t,{pluginName:"swap",eventProperties:function(){return{swapItem:qc}}})}function xgt(t,e){var n=t.parentNode,r=e.parentNode,a,i;!n||!r||n.isEqualNode(e)||r.isEqualNode(t)||(a=ai(t),i=ai(e),n.isEqualNode(r)&&a<i&&i++,n.insertBefore(e,n.children[a]),r.insertBefore(t,r.children[i]))}var Bn=[],tc=[],k5,df,E5=!1,il=!1,Bb=!1,ga,F5,mE;function Sgt(){function t(e){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));e.options.supportPointer?mr(document,"pointerup",this._deselectMultiDrag):(mr(document,"mouseup",this._deselectMultiDrag),mr(document,"touchend",this._deselectMultiDrag)),mr(document,"keydown",this._checkKeyDown),mr(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(a,i){var o="";Bn.length&&df===e?Bn.forEach(function(s,l){o+=(l?", ":"")+s.textContent}):o=i.textContent,a.setData("Text",o)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;ga=r},delayEnded:function(){this.isMultiDrag=~Bn.indexOf(ga)},setupClone:function(n){var r=n.sortable,a=n.cancel;if(this.isMultiDrag){for(var i=0;i<Bn.length;i++)tc.push(Zee(Bn[i])),tc[i].sortableIndex=Bn[i].sortableIndex,tc[i].draggable=!1,tc[i].style["will-change"]="",Za(tc[i],this.options.selectedClass,!1),Bn[i]===ga&&Za(tc[i],this.options.chosenClass,!1);r._hideClone(),a()}},clone:function(n){var r=n.sortable,a=n.rootEl,i=n.dispatchSortableEvent,o=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Bn.length&&df===r&&(ZAe(!0,a),i("clone"),o()))},showClone:function(n){var r=n.cloneNowShown,a=n.rootEl,i=n.cancel;this.isMultiDrag&&(ZAe(!1,a),tc.forEach(function(o){ln(o,"display","")}),r(),mE=!1,i())},hideClone:function(n){var r=this;n.sortable;var a=n.cloneNowHidden,i=n.cancel;this.isMultiDrag&&(tc.forEach(function(o){ln(o,"display","none"),r.options.removeCloneOnHide&&o.parentNode&&o.parentNode.removeChild(o)}),a(),mE=!0,i())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&df&&df.multiDrag._deselectMultiDrag(),Bn.forEach(function(r){r.sortableIndex=ai(r)}),Bn=Bn.sort(function(r,a){return r.sortableIndex-a.sortableIndex}),Bb=!0},dragStarted:function(n){var r=this,a=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(a.captureAnimationState(),this.options.animation)){Bn.forEach(function(o){o!==ga&&ln(o,"position","absolute")});var i=Ea(ga,!1,!0,!0);Bn.forEach(function(o){o!==ga&&VAe(o,i)}),il=!0,E5=!0}a.animateAll(function(){il=!1,E5=!1,r.options.animation&&Bn.forEach(function(o){wH(o)}),r.options.sort&&yE()})}},dragOver:function(n){var r=n.target,a=n.completed,i=n.cancel;il&&~Bn.indexOf(r)&&(a(!1),i())},revert:function(n){var r=n.fromSortable,a=n.rootEl,i=n.sortable,o=n.dragRect;Bn.length>1&&(Bn.forEach(function(s){i.addAnimationState({target:s,rect:il?Ea(s):o}),wH(s),s.fromRect=o,r.removeAnimationState(s)}),il=!1,Mgt(!this.options.removeCloneOnHide,a))},dragOverCompleted:function(n){var r=n.sortable,a=n.isOwner,i=n.insertion,o=n.activeSortable,s=n.parentEl,l=n.putSortable,c=this.options;if(i){if(a&&o._hideClone(),E5=!1,c.animation&&Bn.length>1&&(il||!a&&!o.options.sort&&!l)){var u=Ea(ga,!1,!0,!0);Bn.forEach(function(d){d!==ga&&(VAe(d,u),s.appendChild(d))}),il=!0}if(!a)if(il||yE(),Bn.length>1){var f=mE;o._showClone(r),o.options.animation&&!mE&&f&&tc.forEach(function(d){o.addAnimationState({target:d,rect:F5}),d.fromRect=F5,d.thisAnimationDuration=null})}else o._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,a=n.isOwner,i=n.activeSortable;if(Bn.forEach(function(s){s.thisAnimationDuration=null}),i.options.animation&&!a&&i.multiDrag.isMultiDrag){F5=Mu({},r);var o=oy(ga,!0);F5.top-=o.f,F5.left-=o.e}},dragOverAnimationComplete:function(){il&&(il=!1,yE())},drop:function(n){var r=n.originalEvent,a=n.rootEl,i=n.parentEl,o=n.sortable,s=n.dispatchSortableEvent,l=n.oldIndex,c=n.putSortable,u=c||this.sortable;if(r){var f=this.options,d=i.children;if(!Bb)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Za(ga,f.selectedClass,!~Bn.indexOf(ga)),~Bn.indexOf(ga))Bn.splice(Bn.indexOf(ga),1),k5=null,v_({sortable:o,rootEl:a,name:"deselect",targetEl:ga});else{if(Bn.push(ga),v_({sortable:o,rootEl:a,name:"select",targetEl:ga}),r.shiftKey&&k5&&o.el.contains(k5)){var h=ai(k5),p=ai(ga);if(~h&&~p&&h!==p){var v,g;for(p>h?(g=h,v=p):(g=p,v=h+1);g<v;g++)~Bn.indexOf(d[g])||(Za(d[g],f.selectedClass,!0),Bn.push(d[g]),v_({sortable:o,rootEl:a,name:"select",targetEl:d[g]}))}}else k5=ga;df=u}if(Bb&&this.isMultiDrag){if(il=!1,(i[us].options.sort||i!==a)&&Bn.length>1){var y=Ea(ga),m=ai(ga,":not(."+this.options.selectedClass+")");if(!E5&&f.animation&&(ga.thisAnimationDuration=null),u.captureAnimationState(),!E5&&(f.animation&&(ga.fromRect=y,Bn.forEach(function(A){if(A.thisAnimationDuration=null,A!==ga){var x=il?Ea(A):y;A.fromRect=x,u.addAnimationState({target:A,rect:x})}})),yE(),Bn.forEach(function(A){d[m]?i.insertBefore(A,d[m]):i.appendChild(A),m++}),l===ai(ga))){var R=!1;Bn.forEach(function(A){if(A.sortableIndex!==ai(A)){R=!0;return}}),R&&s("update")}Bn.forEach(function(A){wH(A)}),u.animateAll()}df=u}(a===i||c&&c.lastPutMode!=="clone")&&tc.forEach(function(A){A.parentNode&&A.parentNode.removeChild(A)})}},nullingGlobal:function(){this.isMultiDrag=Bb=!1,tc.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ur(document,"pointerup",this._deselectMultiDrag),ur(document,"mouseup",this._deselectMultiDrag),ur(document,"touchend",this._deselectMultiDrag),ur(document,"keydown",this._checkKeyDown),ur(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Bb<"u"&&Bb)&&df===this.sortable&&!(n&&Mf(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Bn.length;){var r=Bn[0];Za(r,this.options.selectedClass,!1),Bn.shift(),v_({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Mu(t,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[us];!r||!r.options.multiDrag||~Bn.indexOf(n)||(df&&df!==r&&(df.multiDrag._deselectMultiDrag(),df=r),Za(n,r.options.selectedClass,!0),Bn.push(n))},deselect:function(n){var r=n.parentNode[us],a=Bn.indexOf(n);!r||!r.options.multiDrag||!~a||(Za(n,r.options.selectedClass,!1),Bn.splice(a,1))}},eventProperties:function(){var n=this,r=[],a=[];return Bn.forEach(function(i){r.push({multiDragElement:i,index:i.sortableIndex});var o;il&&i!==ga?o=-1:il?o=ai(i,":not(."+n.options.selectedClass+")"):o=ai(i),a.push({multiDragElement:i,index:o})}),{items:H1t(Bn),clones:[].concat(tc),oldIndicies:r,newIndicies:a}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function Mgt(t,e){Bn.forEach(function(n,r){var a=e.children[n.sortableIndex+(t?Number(r):0)];a?e.insertBefore(n,a):e.appendChild(n)})}function ZAe(t,e){tc.forEach(function(n,r){var a=e.children[n.sortableIndex+(t?Number(r):0)];a?e.insertBefore(n,a):e.appendChild(n)})}function yE(){Bn.forEach(function(t){t!==ga&&t.parentNode&&t.parentNode.removeChild(t)})}Tn.mount(new Rgt);Tn.mount(Kee,Qee);const _gt=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:Sgt,Sortable:Tn,Swap:bgt,default:Tn},Symbol.toStringTag,{value:"Module"})),wgt=Aj(_gt);(function(t,e){(function(r,a){t.exports=a(B1t,wgt)})(typeof self<"u"?self:cn,function(n,r){return function(a){var i={};function o(s){if(i[s])return i[s].exports;var l=i[s]={i:s,l:!1,exports:{}};return a[s].call(l.exports,l,l.exports,o),l.l=!0,l.exports}return o.m=a,o.c=i,o.d=function(s,l,c){o.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:c})},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},o.t=function(s,l){if(l&1&&(s=o(s)),l&8||l&4&&typeof s=="object"&&s&&s.__esModule)return s;var c=Object.create(null);if(o.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:s}),l&2&&typeof s!="string")for(var u in s)o.d(c,u,(function(f){return s[f]}).bind(null,u));return c},o.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(l,"a",l),l},o.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},o.p="",o(o.s="fb15")}({"00ee":function(a,i,o){var s=o("b622"),l=s("toStringTag"),c={};c[l]="z",a.exports=String(c)==="[object z]"},"0366":function(a,i,o){var s=o("1c0b");a.exports=function(l,c,u){if(s(l),c===void 0)return l;switch(u){case 0:return function(){return l.call(c)};case 1:return function(f){return l.call(c,f)};case 2:return function(f,d){return l.call(c,f,d)};case 3:return function(f,d,h){return l.call(c,f,d,h)}}return function(){return l.apply(c,arguments)}}},"057f":function(a,i,o){var s=o("fc6a"),l=o("241c").f,c={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(d){try{return l(d)}catch{return u.slice()}};a.exports.f=function(h){return u&&c.call(h)=="[object Window]"?f(h):l(s(h))}},"06cf":function(a,i,o){var s=o("83ab"),l=o("d1e7"),c=o("5c6c"),u=o("fc6a"),f=o("c04e"),d=o("5135"),h=o("0cfb"),p=Object.getOwnPropertyDescriptor;i.f=s?p:function(g,y){if(g=u(g),y=f(y,!0),h)try{return p(g,y)}catch{}if(d(g,y))return c(!l.f.call(g,y),g[y])}},"0cfb":function(a,i,o){var s=o("83ab"),l=o("d039"),c=o("cc12");a.exports=!s&&!l(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(a,i,o){var s=o("23e7"),l=o("d58f").left,c=o("a640"),u=o("ae40"),f=c("reduce"),d=u("reduce",{1:0});s({target:"Array",proto:!0,forced:!f||!d},{reduce:function(p){return l(this,p,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(a,i,o){var s=o("c6b6"),l=o("9263");a.exports=function(c,u){var f=c.exec;if(typeof f=="function"){var d=f.call(c,u);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(s(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(c,u)}},"159b":function(a,i,o){var s=o("da84"),l=o("fdbc"),c=o("17c2"),u=o("9112");for(var f in l){var d=s[f],h=d&&d.prototype;if(h&&h.forEach!==c)try{u(h,"forEach",c)}catch{h.forEach=c}}},"17c2":function(a,i,o){var s=o("b727").forEach,l=o("a640"),c=o("ae40"),u=l("forEach"),f=c("forEach");a.exports=!u||!f?function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(a,i,o){var s=o("d066");a.exports=s("document","documentElement")},"1c0b":function(a,i){a.exports=function(o){if(typeof o!="function")throw TypeError(String(o)+" is not a function");return o}},"1c7e":function(a,i,o){var s=o("b622"),l=s("iterator"),c=!1;try{var u=0,f={next:function(){return{done:!!u++}},return:function(){c=!0}};f[l]=function(){return this},Array.from(f,function(){throw 2})}catch{}a.exports=function(d,h){if(!h&&!c)return!1;var p=!1;try{var v={};v[l]=function(){return{next:function(){return{done:p=!0}}}},d(v)}catch{}return p}},"1d80":function(a,i){a.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},"1dde":function(a,i,o){var s=o("d039"),l=o("b622"),c=o("2d00"),u=l("species");a.exports=function(f){return c>=51||!s(function(){var d=[],h=d.constructor={};return h[u]=function(){return{foo:1}},d[f](Boolean).foo!==1})}},"23cb":function(a,i,o){var s=o("a691"),l=Math.max,c=Math.min;a.exports=function(u,f){var d=s(u);return d<0?l(d+f,0):c(d,f)}},"23e7":function(a,i,o){var s=o("da84"),l=o("06cf").f,c=o("9112"),u=o("6eeb"),f=o("ce4e"),d=o("e893"),h=o("94ca");a.exports=function(p,v){var g=p.target,y=p.global,m=p.stat,R,A,x,M,S,w;if(y?A=s:m?A=s[g]||f(g,{}):A=(s[g]||{}).prototype,A)for(x in v){if(S=v[x],p.noTargetGet?(w=l(A,x),M=w&&w.value):M=A[x],R=h(y?x:g+(m?".":"#")+x,p.forced),!R&&M!==void 0){if(typeof S==typeof M)continue;d(S,M)}(p.sham||M&&M.sham)&&c(S,"sham",!0),u(A,x,S,p)}}},"241c":function(a,i,o){var s=o("ca84"),l=o("7839"),c=l.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(f){return s(f,c)}},"25f0":function(a,i,o){var s=o("6eeb"),l=o("825a"),c=o("d039"),u=o("ad6d"),f="toString",d=RegExp.prototype,h=d[f],p=c(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),v=h.name!=f;(p||v)&&s(RegExp.prototype,f,function(){var y=l(this),m=String(y.source),R=y.flags,A=String(R===void 0&&y instanceof RegExp&&!("flags"in d)?u.call(y):R);return"/"+m+"/"+A},{unsafe:!0})},"2ca0":function(a,i,o){var s=o("23e7"),l=o("06cf").f,c=o("50c4"),u=o("5a34"),f=o("1d80"),d=o("ab13"),h=o("c430"),p="".startsWith,v=Math.min,g=d("startsWith"),y=!h&&!g&&!!function(){var m=l(String.prototype,"startsWith");return m&&!m.writable}();s({target:"String",proto:!0,forced:!y&&!g},{startsWith:function(R){var A=String(f(this));u(R);var x=c(v(arguments.length>1?arguments[1]:void 0,A.length)),M=String(R);return p?p.call(A,M,x):A.slice(x,x+M.length)===M}})},"2d00":function(a,i,o){var s=o("da84"),l=o("342f"),c=s.process,u=c&&c.versions,f=u&&u.v8,d,h;f?(d=f.split("."),h=d[0]+d[1]):l&&(d=l.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=l.match(/Chrome\/(\d+)/),d&&(h=d[1]))),a.exports=h&&+h},"342f":function(a,i,o){var s=o("d066");a.exports=s("navigator","userAgent")||""},"35a1":function(a,i,o){var s=o("f5df"),l=o("3f8c"),c=o("b622"),u=c("iterator");a.exports=function(f){if(f!=null)return f[u]||f["@@iterator"]||l[s(f)]}},"37e8":function(a,i,o){var s=o("83ab"),l=o("9bf2"),c=o("825a"),u=o("df75");a.exports=s?Object.defineProperties:function(d,h){c(d);for(var p=u(h),v=p.length,g=0,y;v>g;)l.f(d,y=p[g++],h[y]);return d}},"3bbe":function(a,i,o){var s=o("861d");a.exports=function(l){if(!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(a,i,o){var s=o("6547").charAt,l=o("69f3"),c=o("7dd0"),u="String Iterator",f=l.set,d=l.getterFor(u);c(String,"String",function(h){f(this,{type:u,string:String(h),index:0})},function(){var p=d(this),v=p.string,g=p.index,y;return g>=v.length?{value:void 0,done:!0}:(y=s(v,g),p.index+=y.length,{value:y,done:!1})})},"3f8c":function(a,i){a.exports={}},4160:function(a,i,o){var s=o("23e7"),l=o("17c2");s({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(a,i,o){var s=o("da84");a.exports=s},"44ad":function(a,i,o){var s=o("d039"),l=o("c6b6"),c="".split;a.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return l(u)=="String"?c.call(u,""):Object(u)}:Object},"44d2":function(a,i,o){var s=o("b622"),l=o("7c73"),c=o("9bf2"),u=s("unscopables"),f=Array.prototype;f[u]==null&&c.f(f,u,{configurable:!0,value:l(null)}),a.exports=function(d){f[u][d]=!0}},"44e7":function(a,i,o){var s=o("861d"),l=o("c6b6"),c=o("b622"),u=c("match");a.exports=function(f){var d;return s(f)&&((d=f[u])!==void 0?!!d:l(f)=="RegExp")}},4930:function(a,i,o){var s=o("d039");a.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},"4d64":function(a,i,o){var s=o("fc6a"),l=o("50c4"),c=o("23cb"),u=function(f){return function(d,h,p){var v=s(d),g=l(v.length),y=c(p,g),m;if(f&&h!=h){for(;g>y;)if(m=v[y++],m!=m)return!0}else for(;g>y;y++)if((f||y in v)&&v[y]===h)return f||y||0;return!f&&-1}};a.exports={includes:u(!0),indexOf:u(!1)}},"4de4":function(a,i,o){var s=o("23e7"),l=o("b727").filter,c=o("1dde"),u=o("ae40"),f=c("filter"),d=u("filter");s({target:"Array",proto:!0,forced:!f||!d},{filter:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(a,i,o){var s=o("0366"),l=o("7b0b"),c=o("9bdd"),u=o("e95a"),f=o("50c4"),d=o("8418"),h=o("35a1");a.exports=function(v){var g=l(v),y=typeof this=="function"?this:Array,m=arguments.length,R=m>1?arguments[1]:void 0,A=R!==void 0,x=h(g),M=0,S,w,_,T,O,N;if(A&&(R=s(R,m>2?arguments[2]:void 0,2)),x!=null&&!(y==Array&&u(x)))for(T=x.call(g),O=T.next,w=new y;!(_=O.call(T)).done;M++)N=A?c(T,R,[_.value,M],!0):_.value,d(w,M,N);else for(S=f(g.length),w=new y(S);S>M;M++)N=A?R(g[M],M):g[M],d(w,M,N);return w.length=M,w}},"4fad":function(a,i,o){var s=o("23e7"),l=o("6f53").entries;s({target:"Object",stat:!0},{entries:function(u){return l(u)}})},"50c4":function(a,i,o){var s=o("a691"),l=Math.min;a.exports=function(c){return c>0?l(s(c),9007199254740991):0}},5135:function(a,i){var o={}.hasOwnProperty;a.exports=function(s,l){return o.call(s,l)}},5319:function(a,i,o){var s=o("d784"),l=o("825a"),c=o("7b0b"),u=o("50c4"),f=o("a691"),d=o("1d80"),h=o("8aa5"),p=o("14c3"),v=Math.max,g=Math.min,y=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,R=/\$([$&'`]|\d\d?)/g,A=function(x){return x===void 0?x:String(x)};s("replace",2,function(x,M,S,w){var _=w.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,T=w.REPLACE_KEEPS_$0,O=_?"$":"$0";return[function(C,E){var F=d(this),Y=C==null?void 0:C[x];return Y!==void 0?Y.call(C,F,E):M.call(String(F),C,E)},function(P,C){if(!_&&T||typeof C=="string"&&C.indexOf(O)===-1){var E=S(M,P,this,C);if(E.done)return E.value}var F=l(P),Y=String(this),Q=typeof C=="function";Q||(C=String(C));var K=F.global;if(K){var ne=F.unicode;F.lastIndex=0}for(var Z=[];;){var $=p(F,Y);if($===null||(Z.push($),!K))break;var G=String($[0]);G===""&&(F.lastIndex=h(Y,u(F.lastIndex),ne))}for(var ee="",ce=0,B=0;B<Z.length;B++){$=Z[B];for(var xe=String($[0]),_e=v(g(f($.index),Y.length),0),se=[],z=1;z<$.length;z++)se.push(A($[z]));var de=$.groups;if(Q){var fe=[xe].concat(se,_e,Y);de!==void 0&&fe.push(de);var re=String(C.apply(void 0,fe))}else re=N(xe,Y,_e,se,de,C);_e>=ce&&(ee+=Y.slice(ce,_e)+re,ce=_e+xe.length)}return ee+Y.slice(ce)}];function N(P,C,E,F,Y,Q){var K=E+P.length,ne=F.length,Z=R;return Y!==void 0&&(Y=c(Y),Z=m),M.call(Q,Z,function($,G){var ee;switch(G.charAt(0)){case"$":return"$";case"&":return P;case"`":return C.slice(0,E);case"'":return C.slice(K);case"<":ee=Y[G.slice(1,-1)];break;default:var ce=+G;if(ce===0)return $;if(ce>ne){var B=y(ce/10);return B===0?$:B<=ne?F[B-1]===void 0?G.charAt(1):F[B-1]+G.charAt(1):$}ee=F[ce-1]}return ee===void 0?"":ee})}})},5692:function(a,i,o){var s=o("c430"),l=o("c6cd");(a.exports=function(c,u){return l[c]||(l[c]=u!==void 0?u:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(a,i,o){var s=o("d066"),l=o("241c"),c=o("7418"),u=o("825a");a.exports=s("Reflect","ownKeys")||function(d){var h=l.f(u(d)),p=c.f;return p?h.concat(p(d)):h}},"5a34":function(a,i,o){var s=o("44e7");a.exports=function(l){if(s(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(a,i){a.exports=function(o,s){return{enumerable:!(o&1),configurable:!(o&2),writable:!(o&4),value:s}}},"5db7":function(a,i,o){var s=o("23e7"),l=o("a2bf"),c=o("7b0b"),u=o("50c4"),f=o("1c0b"),d=o("65f0");s({target:"Array",proto:!0},{flatMap:function(p){var v=c(this),g=u(v.length),y;return f(p),y=d(v,0),y.length=l(y,v,v,g,0,1,p,arguments.length>1?arguments[1]:void 0),y}})},6547:function(a,i,o){var s=o("a691"),l=o("1d80"),c=function(u){return function(f,d){var h=String(l(f)),p=s(d),v=h.length,g,y;return p<0||p>=v?u?"":void 0:(g=h.charCodeAt(p),g<55296||g>56319||p+1===v||(y=h.charCodeAt(p+1))<56320||y>57343?u?h.charAt(p):g:u?h.slice(p,p+2):(g-55296<<10)+(y-56320)+65536)}};a.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(a,i,o){var s=o("861d"),l=o("e8b5"),c=o("b622"),u=c("species");a.exports=function(f,d){var h;return l(f)&&(h=f.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:s(h)&&(h=h[u],h===null&&(h=void 0))),new(h===void 0?Array:h)(d===0?0:d)}},"69f3":function(a,i,o){var s=o("7f9a"),l=o("da84"),c=o("861d"),u=o("9112"),f=o("5135"),d=o("f772"),h=o("d012"),p=l.WeakMap,v,g,y,m=function(_){return y(_)?g(_):v(_,{})},R=function(_){return function(T){var O;if(!c(T)||(O=g(T)).type!==_)throw TypeError("Incompatible receiver, "+_+" required");return O}};if(s){var A=new p,x=A.get,M=A.has,S=A.set;v=function(_,T){return S.call(A,_,T),T},g=function(_){return x.call(A,_)||{}},y=function(_){return M.call(A,_)}}else{var w=d("state");h[w]=!0,v=function(_,T){return u(_,w,T),T},g=function(_){return f(_,w)?_[w]:{}},y=function(_){return f(_,w)}}a.exports={set:v,get:g,has:y,enforce:m,getterFor:R}},"6eeb":function(a,i,o){var s=o("da84"),l=o("9112"),c=o("5135"),u=o("ce4e"),f=o("8925"),d=o("69f3"),h=d.get,p=d.enforce,v=String(String).split("String");(a.exports=function(g,y,m,R){var A=R?!!R.unsafe:!1,x=R?!!R.enumerable:!1,M=R?!!R.noTargetGet:!1;if(typeof m=="function"&&(typeof y=="string"&&!c(m,"name")&&l(m,"name",y),p(m).source=v.join(typeof y=="string"?y:"")),g===s){x?g[y]=m:u(y,m);return}else A?!M&&g[y]&&(x=!0):delete g[y];x?g[y]=m:l(g,y,m)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||f(this)})},"6f53":function(a,i,o){var s=o("83ab"),l=o("df75"),c=o("fc6a"),u=o("d1e7").f,f=function(d){return function(h){for(var p=c(h),v=l(p),g=v.length,y=0,m=[],R;g>y;)R=v[y++],(!s||u.call(p,R))&&m.push(d?[R,p[R]]:p[R]);return m}};a.exports={entries:f(!0),values:f(!1)}},"73d9":function(a,i,o){var s=o("44d2");s("flatMap")},7418:function(a,i){i.f=Object.getOwnPropertySymbols},"746f":function(a,i,o){var s=o("428f"),l=o("5135"),c=o("e538"),u=o("9bf2").f;a.exports=function(f){var d=s.Symbol||(s.Symbol={});l(d,f)||u(d,f,{value:c.f(f)})}},7839:function(a,i){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(a,i,o){var s=o("1d80");a.exports=function(l){return Object(s(l))}},"7c73":function(a,i,o){var s=o("825a"),l=o("37e8"),c=o("7839"),u=o("d012"),f=o("1be4"),d=o("cc12"),h=o("f772"),p=">",v="<",g="prototype",y="script",m=h("IE_PROTO"),R=function(){},A=function(_){return v+y+p+_+v+"/"+y+p},x=function(_){_.write(A("")),_.close();var T=_.parentWindow.Object;return _=null,T},M=function(){var _=d("iframe"),T="java"+y+":",O;return _.style.display="none",f.appendChild(_),_.src=String(T),O=_.contentWindow.document,O.open(),O.write(A("document.F=Object")),O.close(),O.F},S,w=function(){try{S=document.domain&&new ActiveXObject("htmlfile")}catch{}w=S?x(S):M();for(var _=c.length;_--;)delete w[g][c[_]];return w()};u[m]=!0,a.exports=Object.create||function(T,O){var N;return T!==null?(R[g]=s(T),N=new R,R[g]=null,N[m]=T):N=w(),O===void 0?N:l(N,O)}},"7dd0":function(a,i,o){var s=o("23e7"),l=o("9ed3"),c=o("e163"),u=o("d2bb"),f=o("d44e"),d=o("9112"),h=o("6eeb"),p=o("b622"),v=o("c430"),g=o("3f8c"),y=o("ae93"),m=y.IteratorPrototype,R=y.BUGGY_SAFARI_ITERATORS,A=p("iterator"),x="keys",M="values",S="entries",w=function(){return this};a.exports=function(_,T,O,N,P,C,E){l(O,T,N);var F=function(B){if(B===P&&Z)return Z;if(!R&&B in K)return K[B];switch(B){case x:return function(){return new O(this,B)};case M:return function(){return new O(this,B)};case S:return function(){return new O(this,B)}}return function(){return new O(this)}},Y=T+" Iterator",Q=!1,K=_.prototype,ne=K[A]||K["@@iterator"]||P&&K[P],Z=!R&&ne||F(P),$=T=="Array"&&K.entries||ne,G,ee,ce;if($&&(G=c($.call(new _)),m!==Object.prototype&&G.next&&(!v&&c(G)!==m&&(u?u(G,m):typeof G[A]!="function"&&d(G,A,w)),f(G,Y,!0,!0),v&&(g[Y]=w))),P==M&&ne&&ne.name!==M&&(Q=!0,Z=function(){return ne.call(this)}),(!v||E)&&K[A]!==Z&&d(K,A,Z),g[T]=Z,P)if(ee={values:F(M),keys:C?Z:F(x),entries:F(S)},E)for(ce in ee)(R||Q||!(ce in K))&&h(K,ce,ee[ce]);else s({target:T,proto:!0,forced:R||Q},ee);return ee}},"7f9a":function(a,i,o){var s=o("da84"),l=o("8925"),c=s.WeakMap;a.exports=typeof c=="function"&&/native code/.test(l(c))},"825a":function(a,i,o){var s=o("861d");a.exports=function(l){if(!s(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(a,i,o){var s=o("d039");a.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(a,i,o){var s=o("c04e"),l=o("9bf2"),c=o("5c6c");a.exports=function(u,f,d){var h=s(f);h in u?l.f(u,h,c(0,d)):u[h]=d}},"861d":function(a,i){a.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},8875:function(a,i,o){var s,l,c;(function(u,f){l=[],s=f,c=typeof s=="function"?s.apply(i,l):s,c!==void 0&&(a.exports=c)})(typeof self<"u"?self:this,function(){function u(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==u&&document.currentScript)return document.currentScript;try{throw new Error}catch(S){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,p=d.exec(S.stack)||h.exec(S.stack),v=p&&p[1]||!1,g=p&&p[2]||!1,y=document.location.href.replace(document.location.hash,""),m,R,A,x=document.getElementsByTagName("script");v===y&&(m=document.documentElement.outerHTML,R=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),A=m.replace(R,"$1").trim());for(var M=0;M<x.length;M++)if(x[M].readyState==="interactive"||x[M].src===v||v===y&&x[M].innerHTML&&x[M].innerHTML.trim()===A)return x[M];return null}}return u})},8925:function(a,i,o){var s=o("c6cd"),l=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(c){return l.call(c)}),a.exports=s.inspectSource},"8aa5":function(a,i,o){var s=o("6547").charAt;a.exports=function(l,c,u){return c+(u?s(l,c).length:1)}},"8bbf":function(a,i){a.exports=n},"90e3":function(a,i){var o=0,s=Math.random();a.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++o+s).toString(36)}},9112:function(a,i,o){var s=o("83ab"),l=o("9bf2"),c=o("5c6c");a.exports=s?function(u,f,d){return l.f(u,f,c(1,d))}:function(u,f,d){return u[f]=d,u}},9263:function(a,i,o){var s=o("ad6d"),l=o("9f7f"),c=RegExp.prototype.exec,u=String.prototype.replace,f=c,d=function(){var g=/a/,y=/b*/g;return c.call(g,"a"),c.call(y,"a"),g.lastIndex!==0||y.lastIndex!==0}(),h=l.UNSUPPORTED_Y||l.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,v=d||p||h;v&&(f=function(y){var m=this,R,A,x,M,S=h&&m.sticky,w=s.call(m),_=m.source,T=0,O=y;return S&&(w=w.replace("y",""),w.indexOf("g")===-1&&(w+="g"),O=String(y).slice(m.lastIndex),m.lastIndex>0&&(!m.multiline||m.multiline&&y[m.lastIndex-1]!==`-`)&&(_="(?: "+_+")",O=" "+O,T++),A=new RegExp("^(?:"+_+")",w)),p&&(A=new RegExp("^"+_+"$(?!\\s)",w)),d&&(R=m.lastIndex),x=c.call(S?A:m,O),S?x?(x.input=x.input.slice(T),x[0]=x[0].slice(T),x.index=m.lastIndex,m.lastIndex+=x[0].length):m.lastIndex=0:d&&x&&(m.lastIndex=m.global?x.index+x[0].length:R),p&&x&&x.length>1&&u.call(x[0],A,function(){for(M=1;M<arguments.length-2;M++)arguments[M]===void 0&&(x[M]=void 0)}),x}),a.exports=f},"94ca":function(a,i,o){var s=o("d039"),l=/#|\.prototype\./,c=function(p,v){var g=f[u(p)];return g==h?!0:g==d?!1:typeof v=="function"?s(v):!!v},u=c.normalize=function(p){return String(p).replace(l,".").toLowerCase()},f=c.data={},d=c.NATIVE="N",h=c.POLYFILL="P";a.exports=c},"99af":function(a,i,o){var s=o("23e7"),l=o("d039"),c=o("e8b5"),u=o("861d"),f=o("7b0b"),d=o("50c4"),h=o("8418"),p=o("65f0"),v=o("1dde"),g=o("b622"),y=o("2d00"),m=g("isConcatSpreadable"),R=9007199254740991,A="Maximum allowed index exceeded",x=y>=51||!l(function(){var _=[];return _[m]=!1,_.concat()[0]!==_}),M=v("concat"),S=function(_){if(!u(_))return!1;var T=_[m];return T!==void 0?!!T:c(_)},w=!x||!M;s({target:"Array",proto:!0,forced:w},{concat:function(T){var O=f(this),N=p(O,0),P=0,C,E,F,Y,Q;for(C=-1,F=arguments.length;C<F;C++)if(Q=C===-1?O:arguments[C],S(Q)){if(Y=d(Q.length),P+Y>R)throw TypeError(A);for(E=0;E<Y;E++,P++)E in Q&&h(N,P,Q[E])}else{if(P>=R)throw TypeError(A);h(N,P++,Q)}return N.length=P,N}})},"9bdd":function(a,i,o){var s=o("825a");a.exports=function(l,c,u,f){try{return f?c(s(u)[0],u[1]):c(u)}catch(h){var d=l.return;throw d!==void 0&&s(d.call(l)),h}}},"9bf2":function(a,i,o){var s=o("83ab"),l=o("0cfb"),c=o("825a"),u=o("c04e"),f=Object.defineProperty;i.f=s?f:function(h,p,v){if(c(h),p=u(p,!0),c(v),l)try{return f(h,p,v)}catch{}if("get"in v||"set"in v)throw TypeError("Accessors not supported");return"value"in v&&(h[p]=v.value),h}},"9ed3":function(a,i,o){var s=o("ae93").IteratorPrototype,l=o("7c73"),c=o("5c6c"),u=o("d44e"),f=o("3f8c"),d=function(){return this};a.exports=function(h,p,v){var g=p+" Iterator";return h.prototype=l(s,{next:c(1,v)}),u(h,g,!1,!0),f[g]=d,h}},"9f7f":function(a,i,o){var s=o("d039");function l(c,u){return RegExp(c,u)}i.UNSUPPORTED_Y=s(function(){var c=l("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),i.BROKEN_CARET=s(function(){var c=l("^r","gy");return c.lastIndex=2,c.exec("str")!=null})},a2bf:function(a,i,o){var s=o("e8b5"),l=o("50c4"),c=o("0366"),u=function(f,d,h,p,v,g,y,m){for(var R=v,A=0,x=y?c(y,m,3):!1,M;A<p;){if(A in h){if(M=x?x(h[A],A,d):h[A],g>0&&s(M))R=u(f,d,M,l(M.length),R,g-1)-1;else{if(R>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[R]=M}R++}A++}return R};a.exports=u},a352:function(a,i){a.exports=r},a434:function(a,i,o){var s=o("23e7"),l=o("23cb"),c=o("a691"),u=o("50c4"),f=o("7b0b"),d=o("65f0"),h=o("8418"),p=o("1dde"),v=o("ae40"),g=p("splice"),y=v("splice",{ACCESSORS:!0,0:0,1:2}),m=Math.max,R=Math.min,A=9007199254740991,x="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!g||!y},{splice:function(S,w){var _=f(this),T=u(_.length),O=l(S,T),N=arguments.length,P,C,E,F,Y,Q;if(N===0?P=C=0:N===1?(P=0,C=T-O):(P=N-2,C=R(m(c(w),0),T-O)),T+P-C>A)throw TypeError(x);for(E=d(_,C),F=0;F<C;F++)Y=O+F,Y in _&&h(E,F,_[Y]);if(E.length=C,P<C){for(F=O;F<T-C;F++)Y=F+C,Q=F+P,Y in _?_[Q]=_[Y]:delete _[Q];for(F=T;F>T-C+P;F--)delete _[F-1]}else if(P>C)for(F=T-C;F>O;F--)Y=F+C-1,Q=F+P-1,Y in _?_[Q]=_[Y]:delete _[Q];for(F=0;F<P;F++)_[F+O]=arguments[F+2];return _.length=T-C+P,E}})},a4d3:function(a,i,o){var s=o("23e7"),l=o("da84"),c=o("d066"),u=o("c430"),f=o("83ab"),d=o("4930"),h=o("fdbf"),p=o("d039"),v=o("5135"),g=o("e8b5"),y=o("861d"),m=o("825a"),R=o("7b0b"),A=o("fc6a"),x=o("c04e"),M=o("5c6c"),S=o("7c73"),w=o("df75"),_=o("241c"),T=o("057f"),O=o("7418"),N=o("06cf"),P=o("9bf2"),C=o("d1e7"),E=o("9112"),F=o("6eeb"),Y=o("5692"),Q=o("f772"),K=o("d012"),ne=o("90e3"),Z=o("b622"),$=o("e538"),G=o("746f"),ee=o("d44e"),ce=o("69f3"),B=o("b727").forEach,xe=Q("hidden"),_e="Symbol",se="prototype",z=Z("toPrimitive"),de=ce.set,fe=ce.getterFor(_e),re=Object[se],X=l.Symbol,j=c("JSON","stringify"),oe=N.f,ae=P.f,le=T.f,ge=C.f,Se=Y("symbols"),me=Y("op-symbols"),ye=Y("string-to-symbol-registry"),Ve=Y("symbol-to-string-registry"),De=Y("wks"),Ye=l.QObject,Je=!Ye||!Ye[se]||!Ye[se].findChild,wt=f&&p(function(){return S(ae({},"a",{get:function(){return ae(this,"a",{value:7}).a}})).a!=7})?function(Pt,Yt,dt){var fn=oe(re,Yt);fn&&delete re[Yt],ae(Pt,Yt,dt),fn&&Pt!==re&&ae(re,Yt,fn)}:ae,Lt=function(Pt,Yt){var dt=Se[Pt]=S(X[se]);return de(dt,{type:_e,tag:Pt,description:Yt}),f||(dt.description=Yt),dt},Ne=h?function(Pt){return typeof Pt=="symbol"}:function(Pt){return Object(Pt)instanceof X},Te=function(Yt,dt,fn){Yt===re&&Te(me,dt,fn),m(Yt);var pn=x(dt,!0);return m(fn),v(Se,pn)?(fn.enumerable?(v(Yt,xe)&&Yt[xe][pn]&&(Yt[xe][pn]=!1),fn=S(fn,{enumerable:M(0,!1)})):(v(Yt,xe)||ae(Yt,xe,M(1,{})),Yt[xe][pn]=!0),wt(Yt,pn,fn)):ae(Yt,pn,fn)},ze=function(Yt,dt){m(Yt);var fn=A(dt),pn=w(fn).concat(je(fn));return B(pn,function(En){(!f||pt.call(fn,En))&&Te(Yt,En,fn[En])}),Yt},He=function(Yt,dt){return dt===void 0?S(Yt):ze(S(Yt),dt)},pt=function(Yt){var dt=x(Yt,!0),fn=ge.call(this,dt);return this===re&&v(Se,dt)&&!v(me,dt)?!1:fn||!v(this,dt)||!v(Se,dt)||v(this,xe)&&this[xe][dt]?fn:!0},Ce=function(Yt,dt){var fn=A(Yt),pn=x(dt,!0);if(!(fn===re&&v(Se,pn)&&!v(me,pn))){var En=oe(fn,pn);return En&&v(Se,pn)&&!(v(fn,xe)&&fn[xe][pn])&&(En.enumerable=!0),En}},ut=function(Yt){var dt=le(A(Yt)),fn=[];return B(dt,function(pn){!v(Se,pn)&&!v(K,pn)&&fn.push(pn)}),fn},je=function(Yt){var dt=Yt===re,fn=le(dt?me:A(Yt)),pn=[];return B(fn,function(En){v(Se,En)&&(!dt||v(re,En))&&pn.push(Se[En])}),pn};if(d||(X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor");var Yt=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),dt=ne(Yt),fn=function(pn){this===re&&fn.call(me,pn),v(this,xe)&&v(this[xe],dt)&&(this[xe][dt]=!1),wt(this,dt,M(1,pn))};return f&&Je&&wt(re,dt,{configurable:!0,set:fn}),Lt(dt,Yt)},F(X[se],"toString",function(){return fe(this).tag}),F(X,"withoutSetter",function(Pt){return Lt(ne(Pt),Pt)}),C.f=pt,P.f=Te,N.f=Ce,_.f=T.f=ut,O.f=je,$.f=function(Pt){return Lt(Z(Pt),Pt)},f&&(ae(X[se],"description",{configurable:!0,get:function(){return fe(this).description}}),u||F(re,"propertyIsEnumerable",pt,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:X}),B(w(De),function(Pt){G(Pt)}),s({target:_e,stat:!0,forced:!d},{for:function(Pt){var Yt=String(Pt);if(v(ye,Yt))return ye[Yt];var dt=X(Yt);return ye[Yt]=dt,Ve[dt]=Yt,dt},keyFor:function(Yt){if(!Ne(Yt))throw TypeError(Yt+" is not a symbol");if(v(Ve,Yt))return Ve[Yt]},useSetter:function(){Je=!0},useSimple:function(){Je=!1}}),s({target:"Object",stat:!0,forced:!d,sham:!f},{create:He,defineProperty:Te,defineProperties:ze,getOwnPropertyDescriptor:Ce}),s({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:ut,getOwnPropertySymbols:je}),s({target:"Object",stat:!0,forced:p(function(){O.f(1)})},{getOwnPropertySymbols:function(Yt){return O.f(R(Yt))}}),j){var it=!d||p(function(){var Pt=X();return j([Pt])!="[null]"||j({a:Pt})!="{}"||j(Object(Pt))!="{}"});s({target:"JSON",stat:!0,forced:it},{stringify:function(Yt,dt,fn){for(var pn=[Yt],En=1,yi;arguments.length>En;)pn.push(arguments[En++]);if(yi=dt,!(!y(dt)&&Yt===void 0||Ne(Yt)))return g(dt)||(dt=function(qi,Ta){if(typeof yi=="function"&&(Ta=yi.call(this,qi,Ta)),!Ne(Ta))return Ta}),pn[1]=dt,j.apply(null,pn)}})}X[se][z]||E(X[se],z,X[se].valueOf),ee(X,_e),K[xe]=!0},a630:function(a,i,o){var s=o("23e7"),l=o("4df4"),c=o("1c7e"),u=!c(function(f){Array.from(f)});s({target:"Array",stat:!0,forced:u},{from:l})},a640:function(a,i,o){var s=o("d039");a.exports=function(l,c){var u=[][l];return!!u&&s(function(){u.call(null,c||function(){throw 1},1)})}},a691:function(a,i){var o=Math.ceil,s=Math.floor;a.exports=function(l){return isNaN(l=+l)?0:(l>0?s:o)(l)}},ab13:function(a,i,o){var s=o("b622"),l=s("match");a.exports=function(c){var u=/./;try{"/./"[c](u)}catch{try{return u[l]=!1,"/./"[c](u)}catch{}}return!1}},ac1f:function(a,i,o){var s=o("23e7"),l=o("9263");s({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(a,i,o){var s=o("825a");a.exports=function(){var l=s(this),c="";return l.global&&(c+="g"),l.ignoreCase&&(c+="i"),l.multiline&&(c+="m"),l.dotAll&&(c+="s"),l.unicode&&(c+="u"),l.sticky&&(c+="y"),c}},ae40:function(a,i,o){var s=o("83ab"),l=o("d039"),c=o("5135"),u=Object.defineProperty,f={},d=function(h){throw h};a.exports=function(h,p){if(c(f,h))return f[h];p||(p={});var v=[][h],g=c(p,"ACCESSORS")?p.ACCESSORS:!1,y=c(p,0)?p[0]:d,m=c(p,1)?p[1]:void 0;return f[h]=!!v&&!l(function(){if(g&&!s)return!0;var R={length:-1};g?u(R,1,{enumerable:!0,get:d}):R[1]=1,v.call(R,y,m)})}},ae93:function(a,i,o){var s=o("e163"),l=o("9112"),c=o("5135"),u=o("b622"),f=o("c430"),d=u("iterator"),h=!1,p=function(){return this},v,g,y;[].keys&&(y=[].keys(),"next"in y?(g=s(s(y)),g!==Object.prototype&&(v=g)):h=!0),v==null&&(v={}),!f&&!c(v,d)&&l(v,d,p),a.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:h}},b041:function(a,i,o){var s=o("00ee"),l=o("f5df");a.exports=s?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(a,i,o){var s=o("83ab"),l=o("9bf2").f,c=Function.prototype,u=c.toString,f=/^\s*function ([^ (]*)/,d="name";s&&!(d in c)&&l(c,d,{configurable:!0,get:function(){try{return u.call(this).match(f)[1]}catch{return""}}})},b622:function(a,i,o){var s=o("da84"),l=o("5692"),c=o("5135"),u=o("90e3"),f=o("4930"),d=o("fdbf"),h=l("wks"),p=s.Symbol,v=d?p:p&&p.withoutSetter||u;a.exports=function(g){return c(h,g)||(f&&c(p,g)?h[g]=p[g]:h[g]=v("Symbol."+g)),h[g]}},b64b:function(a,i,o){var s=o("23e7"),l=o("7b0b"),c=o("df75"),u=o("d039"),f=u(function(){c(1)});s({target:"Object",stat:!0,forced:f},{keys:function(h){return c(l(h))}})},b727:function(a,i,o){var s=o("0366"),l=o("44ad"),c=o("7b0b"),u=o("50c4"),f=o("65f0"),d=[].push,h=function(p){var v=p==1,g=p==2,y=p==3,m=p==4,R=p==6,A=p==5||R;return function(x,M,S,w){for(var _=c(x),T=l(_),O=s(M,S,3),N=u(T.length),P=0,C=w||f,E=v?C(x,N):g?C(x,0):void 0,F,Y;N>P;P++)if((A||P in T)&&(F=T[P],Y=O(F,P,_),p)){if(v)E[P]=Y;else if(Y)switch(p){case 3:return!0;case 5:return F;case 6:return P;case 2:d.call(E,F)}else if(m)return!1}return R?-1:y||m?m:E}};a.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}},c04e:function(a,i,o){var s=o("861d");a.exports=function(l,c){if(!s(l))return l;var u,f;if(c&&typeof(u=l.toString)=="function"&&!s(f=u.call(l))||typeof(u=l.valueOf)=="function"&&!s(f=u.call(l))||!c&&typeof(u=l.toString)=="function"&&!s(f=u.call(l)))return f;throw TypeError("Can't convert object to primitive value")}},c430:function(a,i){a.exports=!1},c6b6:function(a,i){var o={}.toString;a.exports=function(s){return o.call(s).slice(8,-1)}},c6cd:function(a,i,o){var s=o("da84"),l=o("ce4e"),c="__core-js_shared__",u=s[c]||l(c,{});a.exports=u},c740:function(a,i,o){var s=o("23e7"),l=o("b727").findIndex,c=o("44d2"),u=o("ae40"),f="findIndex",d=!0,h=u(f);f in[]&&Array(1)[f](function(){d=!1}),s({target:"Array",proto:!0,forced:d||!h},{findIndex:function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}}),c(f)},c8ba:function(a,i){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}a.exports=o},c975:function(a,i,o){var s=o("23e7"),l=o("4d64").indexOf,c=o("a640"),u=o("ae40"),f=[].indexOf,d=!!f&&1/[1].indexOf(1,-0)<0,h=c("indexOf"),p=u("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:d||!h||!p},{indexOf:function(g){return d?f.apply(this,arguments)||0:l(this,g,arguments.length>1?arguments[1]:void 0)}})},ca84:function(a,i,o){var s=o("5135"),l=o("fc6a"),c=o("4d64").indexOf,u=o("d012");a.exports=function(f,d){var h=l(f),p=0,v=[],g;for(g in h)!s(u,g)&&s(h,g)&&v.push(g);for(;d.length>p;)s(h,g=d[p++])&&(~c(v,g)||v.push(g));return v}},caad:function(a,i,o){var s=o("23e7"),l=o("4d64").includes,c=o("44d2"),u=o("ae40"),f=u("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!f},{includes:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}}),c("includes")},cc12:function(a,i,o){var s=o("da84"),l=o("861d"),c=s.document,u=l(c)&&l(c.createElement);a.exports=function(f){return u?c.createElement(f):{}}},ce4e:function(a,i,o){var s=o("da84"),l=o("9112");a.exports=function(c,u){try{l(s,c,u)}catch{s[c]=u}return u}},d012:function(a,i){a.exports={}},d039:function(a,i){a.exports=function(o){try{return!!o()}catch{return!0}}},d066:function(a,i,o){var s=o("428f"),l=o("da84"),c=function(u){return typeof u=="function"?u:void 0};a.exports=function(u,f){return arguments.length<2?c(s[u])||c(l[u]):s[u]&&s[u][f]||l[u]&&l[u][f]}},d1e7:function(a,i,o){var s={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c=l&&!s.call({1:2},1);i.f=c?function(f){var d=l(this,f);return!!d&&d.enumerable}:s},d28b:function(a,i,o){var s=o("746f");s("iterator")},d2bb:function(a,i,o){var s=o("825a"),l=o("3bbe");a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,u={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(u,[]),c=u instanceof Array}catch{}return function(h,p){return s(h),l(p),c?f.call(h,p):h.__proto__=p,h}}():void 0)},d3b7:function(a,i,o){var s=o("00ee"),l=o("6eeb"),c=o("b041");s||l(Object.prototype,"toString",c,{unsafe:!0})},d44e:function(a,i,o){var s=o("9bf2").f,l=o("5135"),c=o("b622"),u=c("toStringTag");a.exports=function(f,d,h){f&&!l(f=h?f:f.prototype,u)&&s(f,u,{configurable:!0,value:d})}},d58f:function(a,i,o){var s=o("1c0b"),l=o("7b0b"),c=o("44ad"),u=o("50c4"),f=function(d){return function(h,p,v,g){s(p);var y=l(h),m=c(y),R=u(y.length),A=d?R-1:0,x=d?-1:1;if(v<2)for(;;){if(A in m){g=m[A],A+=x;break}if(A+=x,d?A<0:R<=A)throw TypeError("Reduce of empty array with no initial value")}for(;d?A>=0:R>A;A+=x)A in m&&(g=p(g,m[A],A,y));return g}};a.exports={left:f(!1),right:f(!0)}},d784:function(a,i,o){o("ac1f");var s=o("6eeb"),l=o("d039"),c=o("b622"),u=o("9263"),f=o("9112"),d=c("species"),h=!l(function(){var m=/./;return m.exec=function(){var R=[];return R.groups={a:"7"},R},"".replace(m,"$<a>")!=="7"}),p=function(){return"a".replace(/./,"$0")==="$0"}(),v=c("replace"),g=function(){return/./[v]?/./[v]("a","$0")==="":!1}(),y=!l(function(){var m=/(?:)/,R=m.exec;m.exec=function(){return R.apply(this,arguments)};var A="ab".split(m);return A.length!==2||A[0]!=="a"||A[1]!=="b"});a.exports=function(m,R,A,x){var M=c(m),S=!l(function(){var P={};return P[M]=function(){return 7},""[m](P)!=7}),w=S&&!l(function(){var P=!1,C=/a/;return m==="split"&&(C={},C.constructor={},C.constructor[d]=function(){return C},C.flags="",C[M]=/./[M]),C.exec=function(){return P=!0,null},C[M](""),!P});if(!S||!w||m==="replace"&&!(h&&p&&!g)||m==="split"&&!y){var _=/./[M],T=A(M,""[m],function(P,C,E,F,Y){return C.exec===u?S&&!Y?{done:!0,value:_.call(C,E,F)}:{done:!0,value:P.call(E,C,F)}:{done:!1}},{REPLACE_KEEPS_$0:p,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:g}),O=T[0],N=T[1];s(String.prototype,m,O),s(RegExp.prototype,M,R==2?function(P,C){return N.call(P,this,C)}:function(P){return N.call(P,this)})}x&&f(RegExp.prototype[M],"sham",!0)}},d81d:function(a,i,o){var s=o("23e7"),l=o("b727").map,c=o("1dde"),u=o("ae40"),f=c("map"),d=u("map");s({target:"Array",proto:!0,forced:!f||!d},{map:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})},da84:function(a,i,o){(function(s){var l=function(c){return c&&c.Math==Math&&c};a.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof s=="object"&&s)||Function("return this")()}).call(this,o("c8ba"))},dbb4:function(a,i,o){var s=o("23e7"),l=o("83ab"),c=o("56ef"),u=o("fc6a"),f=o("06cf"),d=o("8418");s({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(p){for(var v=u(p),g=f.f,y=c(v),m={},R=0,A,x;y.length>R;)x=g(v,A=y[R++]),x!==void 0&&d(m,A,x);return m}})},dbf1:function(a,i,o){(function(s){o.d(i,"a",function(){return c});function l(){return typeof window<"u"?window.console:s.console}var c=l()}).call(this,o("c8ba"))},ddb0:function(a,i,o){var s=o("da84"),l=o("fdbc"),c=o("e260"),u=o("9112"),f=o("b622"),d=f("iterator"),h=f("toStringTag"),p=c.values;for(var v in l){var g=s[v],y=g&&g.prototype;if(y){if(y[d]!==p)try{u(y,d,p)}catch{y[d]=p}if(y[h]||u(y,h,v),l[v]){for(var m in c)if(y[m]!==c[m])try{u(y,m,c[m])}catch{y[m]=c[m]}}}}},df75:function(a,i,o){var s=o("ca84"),l=o("7839");a.exports=Object.keys||function(u){return s(u,l)}},e01a:function(a,i,o){var s=o("23e7"),l=o("83ab"),c=o("da84"),u=o("5135"),f=o("861d"),d=o("9bf2").f,h=o("e893"),p=c.Symbol;if(l&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var v={},g=function(){var M=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),S=this instanceof g?new p(M):M===void 0?p():p(M);return M===""&&(v[S]=!0),S};h(g,p);var y=g.prototype=p.prototype;y.constructor=g;var m=y.toString,R=String(p("test"))=="Symbol(test)",A=/^Symbol\((.*)\)[^)]+$/;d(y,"description",{configurable:!0,get:function(){var M=f(this)?this.valueOf():this,S=m.call(M);if(u(v,M))return"";var w=R?S.slice(7,-1):S.replace(A,"$1");return w===""?void 0:w}}),s({global:!0,forced:!0},{Symbol:g})}},e163:function(a,i,o){var s=o("5135"),l=o("7b0b"),c=o("f772"),u=o("e177"),f=c("IE_PROTO"),d=Object.prototype;a.exports=u?Object.getPrototypeOf:function(h){return h=l(h),s(h,f)?h[f]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?d:null}},e177:function(a,i,o){var s=o("d039");a.exports=!s(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(a,i,o){var s=o("fc6a"),l=o("44d2"),c=o("3f8c"),u=o("69f3"),f=o("7dd0"),d="Array Iterator",h=u.set,p=u.getterFor(d);a.exports=f(Array,"Array",function(v,g){h(this,{type:d,target:s(v),index:0,kind:g})},function(){var v=p(this),g=v.target,y=v.kind,m=v.index++;return!g||m>=g.length?(v.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:m,done:!1}:y=="values"?{value:g[m],done:!1}:{value:[m,g[m]],done:!1}},"values"),c.Arguments=c.Array,l("keys"),l("values"),l("entries")},e439:function(a,i,o){var s=o("23e7"),l=o("d039"),c=o("fc6a"),u=o("06cf").f,f=o("83ab"),d=l(function(){u(1)}),h=!f||d;s({target:"Object",stat:!0,forced:h,sham:!f},{getOwnPropertyDescriptor:function(v,g){return u(c(v),g)}})},e538:function(a,i,o){var s=o("b622");i.f=s},e893:function(a,i,o){var s=o("5135"),l=o("56ef"),c=o("06cf"),u=o("9bf2");a.exports=function(f,d){for(var h=l(d),p=u.f,v=c.f,g=0;g<h.length;g++){var y=h[g];s(f,y)||p(f,y,v(d,y))}}},e8b5:function(a,i,o){var s=o("c6b6");a.exports=Array.isArray||function(c){return s(c)=="Array"}},e95a:function(a,i,o){var s=o("b622"),l=o("3f8c"),c=s("iterator"),u=Array.prototype;a.exports=function(f){return f!==void 0&&(l.Array===f||u[c]===f)}},f5df:function(a,i,o){var s=o("00ee"),l=o("c6b6"),c=o("b622"),u=c("toStringTag"),f=l(function(){return arguments}())=="Arguments",d=function(h,p){try{return h[p]}catch{}};a.exports=s?l:function(h){var p,v,g;return h===void 0?"Undefined":h===null?"Null":typeof(v=d(p=Object(h),u))=="string"?v:f?l(p):(g=l(p))=="Object"&&typeof p.callee=="function"?"Arguments":g}},f772:function(a,i,o){var s=o("5692"),l=o("90e3"),c=s("keys");a.exports=function(u){return c[u]||(c[u]=l(u))}},fb15:function(a,i,o){if(o.r(i),typeof window<"u"){var s=window.document.currentScript;{var l=o("8875");s=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var c=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(o.p=c[1])}o("99af"),o("4de4"),o("4160"),o("c975"),o("d81d"),o("a434"),o("159b"),o("a4d3"),o("e439"),o("dbb4"),o("b64b");function u(Ne,Te,ze){return Te in Ne?Object.defineProperty(Ne,Te,{value:ze,enumerable:!0,configurable:!0,writable:!0}):Ne[Te]=ze,Ne}function f(Ne,Te){var ze=Object.keys(Ne);if(Object.getOwnPropertySymbols){var He=Object.getOwnPropertySymbols(Ne);Te&&(He=He.filter(function(pt){return Object.getOwnPropertyDescriptor(Ne,pt).enumerable})),ze.push.apply(ze,He)}return ze}function d(Ne){for(var Te=1;Te<arguments.length;Te++){var ze=arguments[Te]!=null?arguments[Te]:{};Te%2?f(Object(ze),!0).forEach(function(He){u(Ne,He,ze[He])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ne,Object.getOwnPropertyDescriptors(ze)):f(Object(ze)).forEach(function(He){Object.defineProperty(Ne,He,Object.getOwnPropertyDescriptor(ze,He))})}return Ne}function h(Ne){if(Array.isArray(Ne))return Ne}o("e01a"),o("d28b"),o("e260"),o("d3b7"),o("3ca3"),o("ddb0");function p(Ne,Te){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(Ne)))){var ze=[],He=!0,pt=!1,Ce=void 0;try{for(var ut=Ne[Symbol.iterator](),je;!(He=(je=ut.next()).done)&&(ze.push(je.value),!(Te&&ze.length===Te));He=!0);}catch(it){pt=!0,Ce=it}finally{try{!He&&ut.return!=null&&ut.return()}finally{if(pt)throw Ce}}return ze}}o("a630"),o("fb6a"),o("b0c0"),o("25f0");function v(Ne,Te){(Te==null||Te>Ne.length)&&(Te=Ne.length);for(var ze=0,He=new Array(Te);ze<Te;ze++)He[ze]=Ne[ze];return He}function g(Ne,Te){if(Ne){if(typeof Ne=="string")return v(Ne,Te);var ze=Object.prototype.toString.call(Ne).slice(8,-1);if(ze==="Object"&&Ne.constructor&&(ze=Ne.constructor.name),ze==="Map"||ze==="Set")return Array.from(Ne);if(ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ze))return v(Ne,Te)}}function y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(Ne,Te){return h(Ne)||p(Ne,Te)||g(Ne,Te)||y()}function R(Ne){if(Array.isArray(Ne))return v(Ne)}function A(Ne){if(typeof Symbol<"u"&&Symbol.iterator in Object(Ne))return Array.from(Ne)}function x(){throw new TypeError(`Invalid attempt to spread non-iterable instance.-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M(Ne){return R(Ne)||A(Ne)||g(Ne)||x()}var S=o("a352"),w=o.n(S);function _(Ne){Ne.parentElement!==null&&Ne.parentElement.removeChild(Ne)}function T(Ne,Te,ze){var He=ze===0?Ne.children[0]:Ne.children[ze-1].nextSibling;Ne.insertBefore(Te,He)}var O=o("dbf1");o("13d5"),o("4fad"),o("ac1f"),o("5319");function N(Ne){var Te=Object.create(null);return function(He){var pt=Te[He];return pt||(Te[He]=Ne(He))}}var P=/-(\w)/g,C=N(function(Ne){return Ne.replace(P,function(Te,ze){return ze.toUpperCase()})});o("5db7"),o("73d9");var E=["Start","Add","Remove","Update","End"],F=["Choose","Unchoose","Sort","Filter","Clone"],Y=["Move"],Q=[Y,E,F].flatMap(function(Ne){return Ne}).map(function(Ne){return"on".concat(Ne)}),K={manage:Y,manageAndEmit:E,emit:F};function ne(Ne){return Q.indexOf(Ne)!==-1}o("caad"),o("2ca0");var Z=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function $(Ne){return Z.includes(Ne)}function G(Ne){return["transition-group","TransitionGroup"].includes(Ne)}function ee(Ne){return["id","class","role","style"].includes(Ne)||Ne.startsWith("data-")||Ne.startsWith("aria-")||Ne.startsWith("on")}function ce(Ne){return Ne.reduce(function(Te,ze){var He=m(ze,2),pt=He[0],Ce=He[1];return Te[pt]=Ce,Te},{})}function B(Ne){var Te=Ne.$attrs,ze=Ne.componentData,He=ze===void 0?{}:ze,pt=ce(Object.entries(Te).filter(function(Ce){var ut=m(Ce,2),je=ut[0];return ut[1],ee(je)}));return d(d({},pt),He)}function xe(Ne){var Te=Ne.$attrs,ze=Ne.callBackBuilder,He=ce(_e(Te));Object.entries(ze).forEach(function(Ce){var ut=m(Ce,2),je=ut[0],it=ut[1];K[je].forEach(function(Pt){He["on".concat(Pt)]=it(Pt)})});var pt="[data-draggable]".concat(He.draggable||"");return d(d({},He),{},{draggable:pt})}function _e(Ne){return Object.entries(Ne).filter(function(Te){var ze=m(Te,2),He=ze[0];return ze[1],!ee(He)}).map(function(Te){var ze=m(Te,2),He=ze[0],pt=ze[1];return[C(He),pt]}).filter(function(Te){var ze=m(Te,2),He=ze[0];return ze[1],!ne(He)})}o("c740");function se(Ne,Te){if(!(Ne instanceof Te))throw new TypeError("Cannot call a class as a function")}function z(Ne,Te){for(var ze=0;ze<Te.length;ze++){var He=Te[ze];He.enumerable=He.enumerable||!1,He.configurable=!0,"value"in He&&(He.writable=!0),Object.defineProperty(Ne,He.key,He)}}function de(Ne,Te,ze){return Te&&z(Ne.prototype,Te),Ne}var fe=function(Te){var ze=Te.el;return ze},re=function(Te,ze){return Te.__draggable_context=ze},X=function(Te){return Te.__draggable_context},j=function(){function Ne(Te){var ze=Te.nodes,He=ze.header,pt=ze.default,Ce=ze.footer,ut=Te.root,je=Te.realList;se(this,Ne),this.defaultNodes=pt,this.children=[].concat(M(He),M(pt),M(Ce)),this.externalComponent=ut.externalComponent,this.rootTransition=ut.transition,this.tag=ut.tag,this.realList=je}return de(Ne,[{key:"render",value:function(ze,He){var pt=this.tag,Ce=this.children,ut=this._isRootComponent,je=ut?{default:function(){return Ce}}:Ce;return ze(pt,He,je)}},{key:"updated",value:function(){var ze=this.defaultNodes,He=this.realList;ze.forEach(function(pt,Ce){re(fe(pt),{element:He[Ce],index:Ce})})}},{key:"getUnderlyingVm",value:function(ze){return X(ze)}},{key:"getVmIndexFromDomIndex",value:function(ze,He){var pt=this.defaultNodes,Ce=pt.length,ut=He.children,je=ut.item(ze);if(je===null)return Ce;var it=X(je);if(it)return it.index;if(Ce===0)return 0;var Pt=fe(pt[0]),Yt=M(ut).findIndex(function(dt){return dt===Pt});return ze<Yt?0:Ce}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),Ne}(),oe=o("8bbf");function ae(Ne,Te){var ze=Ne[Te];return ze?ze():[]}function le(Ne){var Te=Ne.$slots,ze=Ne.realList,He=Ne.getKey,pt=ze||[],Ce=["header","footer"].map(function(dt){return ae(Te,dt)}),ut=m(Ce,2),je=ut[0],it=ut[1],Pt=Te.item;if(!Pt)throw new Error("draggable element must have an item slot");var Yt=pt.flatMap(function(dt,fn){return Pt({element:dt,index:fn}).map(function(pn){return pn.key=He(dt),pn.props=d(d({},pn.props||{}),{},{"data-draggable":!0}),pn})});if(Yt.length!==pt.length)throw new Error("Item slot must have only one child");return{header:je,footer:it,default:Yt}}function ge(Ne){var Te=G(Ne),ze=!$(Ne)&&!Te;return{transition:Te,externalComponent:ze,tag:ze?Object(oe.resolveComponent)(Ne):Te?oe.TransitionGroup:Ne}}function Se(Ne){var Te=Ne.$slots,ze=Ne.tag,He=Ne.realList,pt=Ne.getKey,Ce=le({$slots:Te,realList:He,getKey:pt}),ut=ge(ze);return new j({nodes:Ce,root:ut,realList:He})}function me(Ne,Te){var ze=this;Object(oe.nextTick)(function(){return ze.$emit(Ne.toLowerCase(),Te)})}function ye(Ne){var Te=this;return function(ze,He){if(Te.realList!==null)return Te["onDrag".concat(Ne)](ze,He)}}function Ve(Ne){var Te=this,ze=ye.call(this,Ne);return function(He,pt){ze.call(Te,He,pt),me.call(Te,Ne,He)}}var De=null,Ye={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(Te){return Te}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Je=["update:modelValue","change"].concat(M([].concat(M(K.manageAndEmit),M(K.emit)).map(function(Ne){return Ne.toLowerCase()}))),wt=Object(oe.defineComponent)({name:"draggable",inheritAttrs:!1,props:Ye,emits:Je,data:function(){return{error:!1}},render:function(){try{this.error=!1;var Te=this.$slots,ze=this.$attrs,He=this.tag,pt=this.componentData,Ce=this.realList,ut=this.getKey,je=Se({$slots:Te,tag:He,realList:Ce,getKey:ut});this.componentStructure=je;var it=B({$attrs:ze,componentData:pt});return je.render(oe.h,it)}catch(Pt){return this.error=!0,Object(oe.h)("pre",{style:{color:"red"}},Pt.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&O.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var Te=this;if(!this.error){var ze=this.$attrs,He=this.$el,pt=this.componentStructure;pt.updated();var Ce=xe({$attrs:ze,callBackBuilder:{manageAndEmit:function(it){return Ve.call(Te,it)},emit:function(it){return me.bind(Te,it)},manage:function(it){return ye.call(Te,it)}}}),ut=He.nodeType===1?He:He.parentElement;this._sortable=new w.a(ut,Ce),this.targetDomElement=ut,ut.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var Te=this.list;return Te||this.modelValue},getKey:function(){var Te=this.itemKey;return typeof Te=="function"?Te:function(ze){return ze[Te]}}},watch:{$attrs:{handler:function(Te){var ze=this._sortable;ze&&_e(Te).forEach(function(He){var pt=m(He,2),Ce=pt[0],ut=pt[1];ze.option(Ce,ut)})},deep:!0}},methods:{getUnderlyingVm:function(Te){return this.componentStructure.getUnderlyingVm(Te)||null},getUnderlyingPotencialDraggableComponent:function(Te){return Te.__draggable_component__},emitChanges:function(Te){var ze=this;Object(oe.nextTick)(function(){return ze.$emit("change",Te)})},alterList:function(Te){if(this.list){Te(this.list);return}var ze=M(this.modelValue);Te(ze),this.$emit("update:modelValue",ze)},spliceList:function(){var Te=arguments,ze=function(pt){return pt.splice.apply(pt,M(Te))};this.alterList(ze)},updatePosition:function(Te,ze){var He=function(Ce){return Ce.splice(ze,0,Ce.splice(Te,1)[0])};this.alterList(He)},getRelatedContextFromMoveEvent:function(Te){var ze=Te.to,He=Te.related,pt=this.getUnderlyingPotencialDraggableComponent(ze);if(!pt)return{component:pt};var Ce=pt.realList,ut={list:Ce,component:pt};if(ze!==He&&Ce){var je=pt.getUnderlyingVm(He)||{};return d(d({},je),ut)}return ut},getVmIndexFromDomIndex:function(Te){return this.componentStructure.getVmIndexFromDomIndex(Te,this.targetDomElement)},onDragStart:function(Te){this.context=this.getUnderlyingVm(Te.item),Te.item._underlying_vm_=this.clone(this.context.element),De=Te.item},onDragAdd:function(Te){var ze=Te.item._underlying_vm_;if(ze!==void 0){_(Te.item);var He=this.getVmIndexFromDomIndex(Te.newIndex);this.spliceList(He,0,ze);var pt={element:ze,newIndex:He};this.emitChanges({added:pt})}},onDragRemove:function(Te){if(T(this.$el,Te.item,Te.oldIndex),Te.pullMode==="clone"){_(Te.clone);return}var ze=this.context,He=ze.index,pt=ze.element;this.spliceList(He,1);var Ce={element:pt,oldIndex:He};this.emitChanges({removed:Ce})},onDragUpdate:function(Te){_(Te.item),T(Te.from,Te.item,Te.oldIndex);var ze=this.context.index,He=this.getVmIndexFromDomIndex(Te.newIndex);this.updatePosition(ze,He);var pt={element:this.context.element,oldIndex:ze,newIndex:He};this.emitChanges({moved:pt})},computeFutureIndex:function(Te,ze){if(!Te.element)return 0;var He=M(ze.to.children).filter(function(je){return je.style.display!=="none"}),pt=He.indexOf(ze.related),Ce=Te.component.getVmIndexFromDomIndex(pt),ut=He.indexOf(De)!==-1;return ut||!ze.willInsertAfter?Ce:Ce+1},onDragMove:function(Te,ze){var He=this.move,pt=this.realList;if(!He||!pt)return!0;var Ce=this.getRelatedContextFromMoveEvent(Te),ut=this.computeFutureIndex(Ce,Te),je=d(d({},this.context),{},{futureIndex:ut}),it=d(d({},Te),{},{relatedContext:Ce,draggedContext:je});return He(it,ze)},onDragEnd:function(){De=null}}}),Lt=wt;i.default=Lt},fb6a:function(a,i,o){var s=o("23e7"),l=o("861d"),c=o("e8b5"),u=o("23cb"),f=o("50c4"),d=o("fc6a"),h=o("8418"),p=o("b622"),v=o("1dde"),g=o("ae40"),y=v("slice"),m=g("slice",{ACCESSORS:!0,0:0,1:2}),R=p("species"),A=[].slice,x=Math.max;s({target:"Array",proto:!0,forced:!y||!m},{slice:function(S,w){var _=d(this),T=f(_.length),O=u(S,T),N=u(w===void 0?T:w,T),P,C,E;if(c(_)&&(P=_.constructor,typeof P=="function"&&(P===Array||c(P.prototype))?P=void 0:l(P)&&(P=P[R],P===null&&(P=void 0)),P===Array||P===void 0))return A.call(_,O,N);for(C=new(P===void 0?Array:P)(x(N-O,0)),E=0;O<N;O++,E++)O in _&&h(C,E,_[O]);return C.length=E,C}})},fc6a:function(a,i,o){var s=o("44ad"),l=o("1d80");a.exports=function(c){return s(l(c))}},fdbc:function(a,i){a.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(a,i,o){var s=o("4930");a.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(STe);var Lgt=STe.exports;const NV=ng(Lgt),Tgt={class:"add-slide"},Ogt={class:"select-btn"},Pgt={class:"thumbnail-container"},Cgt=["data-section-id","onDblclick"],Ngt=["id","value"],Igt={key:1,class:"text"},kgt={class:"text-content"},Egt=["onMousedown"],Fgt={class:"page-number"},Xgt=tt({__name:"index",setup(t){const e=Wt(),n=It(),r=xc(),{selectedSlidesIndex:a,thumbnailsFocus:i}=nt(e),{slides:o,slideIndex:s,currentSlide:l}=nt(n),{ctrlKeyState:c,shiftKeyState:u}=nt(r),{slidesLoadLimit:f}=ZS(),d=Fe(()=>[...a.value,s.value]),h=we(!1),p=Fe(()=>o.value.some(z=>z.sectionTag)),{addSlidesFromData:v}=d8(),{copySlide:g,pasteSlide:y,createSlide:m,createSlideByTemplate:R,copyAndPasteSlide:A,deleteSlide:x,cutSlide:M,selectAllSlide:S,sortSlides:w,isEmptySlide:_}=ig(),{createSection:T,removeSection:O,removeAllSection:N,removeSectionSlides:P,updateSectionTitle:C}=C1t(),E=un("thumbnailsRef");qt(()=>s.value,()=>{d.value.length&&e.updateSelectedSlidesIndex([]),qr(()=>{var de,fe;const z=(fe=(de=E.value)==null?void 0:de.$el)==null?void 0:fe.querySelector(".thumbnail-item.active");E.value&&z&&!bWe(z,E.value.$el)&&setTimeout(()=>{z.scrollIntoView({behavior:"smooth"})},100)})},{immediate:!0});const F=z=>{e.setActiveElementIdList([]),s.value!==z&&n.updateSlideIndex(z)},Y=(z,de)=>{if(Z.value)return;const fe=d.value.length>1;if(!(fe&&d.value.includes(de)&&z.button!==0))if(c.value)if(s.value===de){if(!fe)return;const re=d.value.filter(X=>X!==de);e.updateSelectedSlidesIndex(re),F(d.value[0])}else if(d.value.includes(de)){const re=d.value.filter(X=>X!==de);e.updateSelectedSlidesIndex(re)}else{const re=[...d.value,de];e.updateSelectedSlidesIndex(re)}else if(u.value){if(s.value===de&&!fe)return;let re=Math.min(...d.value),X=de;de<re&&(X=Math.max(...d.value),re=de);const j=[];for(let oe=re;oe<=X;oe++)j.push(oe);e.updateSelectedSlidesIndex(j)}else e.updateSelectedSlidesIndex([]),F(de)},Q=z=>{i.value!==z&&(e.setThumbnailsFocus(z),z||e.updateSelectedSlidesIndex([]))},K=z=>{const{newIndex:de,oldIndex:fe}=z;de===void 0||fe===void 0||de===fe||w(de,fe)},ne=()=>{e.setNotesPanelState(!0)},Z=we(""),$=z=>{e.setDisableHotkeysState(!0),Z.value=z||"default",qr(()=>{document.querySelector(`#section-title-input-${z||"default"}`).focus()})},G=z=>{const de=z.target.value;C(Z.value,de),Z.value="",e.setDisableHotkeysState(!1)},ee=({slides:z,theme:de})=>{_.value?n.setSlides(z,de):v(z)},ce=z=>{const de=z.dataset.sectionId;return[{text:"删除节",handler:()=>O(de)},{text:"删除节和幻灯片",handler:()=>{e.setActiveElementIdList([]),P(de)}},{text:"删除所有节",handler:N},{text:"重命名节",handler:()=>$(de)}]},{enterScreening:B,enterScreeningFromStart:xe}=og(),_e=()=>[{text:"粘贴",subText:"Ctrl + V",handler:y},{text:"全选",subText:"Ctrl + A",handler:S},{text:"新建页面",subText:"Enter",handler:m},{text:"幻灯片放映",subText:"F5",handler:xe}],se=()=>[{text:"剪切",subText:"Ctrl + X",handler:M},{text:"复制",subText:"Ctrl + C",handler:g},{text:"粘贴",subText:"Ctrl + V",handler:y},{text:"全选",subText:"Ctrl + A",handler:S},{divider:!0},{text:"新建页面",subText:"Enter",handler:m},{text:"复制页面",subText:"Ctrl + D",handler:A},{text:"删除页面",subText:"Delete",handler:()=>x()},{text:"增加节",handler:T,disable:!!l.value.sectionTag},{divider:!0},{text:"从当前放映",subText:"Shift + F5",handler:B}];return(z,de)=>{const fe=zf,re=Tu,X=pr("contextmenu"),j=pr("click-outside");return yt((V(),H("div",{class:"thumbnails",onMousedown:de[8]||(de[8]=()=>Q(!0))},[I("div",Tgt,[I("div",{class:"btn",onClick:de[0]||(de[0]=oe=>te(m)())},[U(fe,{class:"icon"}),de[9]||(de[9]=rt("添加幻灯片"))]),U(sn,{trigger:"click",placement:"bottom-start",value:h.value,"onUpdate:value":de[3]||(de[3]=oe=>h.value=oe),center:""},{content:pe(()=>[U(Y1t,{onSelect:de[1]||(de[1]=oe=>{te(R)(oe),h.value=!1}),onSelectAll:de[2]||(de[2]=({slides:oe,theme:ae})=>{ee({slides:oe,theme:ae}),h.value=!1})})]),default:pe(()=>[I("div",Ogt,[U(re)])]),_:1},8,["value"])]),yt((V(),Ue(te(NV),{class:"thumbnail-list",ref_key:"thumbnailsRef",ref:E,modelValue:te(o),animation:200,scroll:!0,scrollSensitivity:50,disabled:Z.value,onEnd:K,itemKey:"id"},{item:pe(({element:oe,index:ae})=>{var le,ge,Se,me,ye;return[I("div",Pgt,[oe.sectionTag||p.value&&ae===0?yt((V(),H("div",{key:0,class:"section-title","data-section-id":((le=oe==null?void 0:oe.sectionTag)==null?void 0:le.id)||"",onDblclick:()=>{var Ve;return $(((Ve=oe==null?void 0:oe.sectionTag)==null?void 0:Ve.id)||"")}},[Z.value===((ge=oe==null?void 0:oe.sectionTag)==null?void 0:ge.id)||ae===0&&Z.value==="default"?(V(),H("input",{key:0,id:`section-title-input-${((Se=oe==null?void 0:oe.sectionTag)==null?void 0:Se.id)||"default"}`,type:"text",value:((me=oe==null?void 0:oe.sectionTag)==null?void 0:me.title)||"",placeholder:"输入节名称",onBlur:de[4]||(de[4]=Ve=>G(Ve)),onKeydown:de[5]||(de[5]=Xf(on(Ve=>G(Ve),["stop"]),["enter"]))},null,40,Ngt)):(V(),H("span",Igt,[I("div",kgt,Vt(oe!=null&&oe.sectionTag?((ye=oe==null?void 0:oe.sectionTag)==null?void 0:ye.title)||"无标题节":"默认节"),1)]))],40,Cgt)),[[X,ce]]):at("",!0),yt((V(),H("div",{class:mt(["thumbnail-item",{active:te(s)===ae,selected:d.value.includes(ae)}]),onMousedown:Ve=>Y(Ve,ae),onDblclick:de[7]||(de[7]=Ve=>te(B)())},[I("div",{class:mt(["label",{"offset-left":ae>=99}])},Vt(te(H5)(ae+1,2)),3),U(bc,{class:"thumbnail",slide:oe,size:120,visible:ae<te(f)},null,8,["slide","visible"]),oe.notes&&oe.notes.length?(V(),H("div",{key:0,class:"note-flag",onClick:de[6]||(de[6]=Ve=>ne())},Vt(oe.notes.length),1)):at("",!0)],42,Egt)),[[X,se]])])]}),_:1},8,["modelValue","disabled"])),[[X,_e]]),I("div",Fgt,"幻灯片 "+Vt(te(s)+1)+" / "+Vt(te(o).length),1)],32)),[[j,()=>Q(!1)]])}}}),Dgt=lt(Xgt,[["__scopeId","data-v-e60b3877"]]),Vgt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Ugt(t,e){return V(),H("svg",Vgt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M42 6v36M17 19l-5 5m0 0l5 5m-5-5h24m-5-5l5 5m0 0l-5 5M6 6v36"},null,-1)]))}const ETe=vt({name:"icon-park-outline-fullwidth",render:Ugt}),Wgt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Ygt(t,e){return V(),H("svg",Wgt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"4"},[I("path",{"stroke-linejoin":"round",d:"M8 6v6h32V6"}),I("path",{d:"M14 24h20"}),I("path",{"stroke-linejoin":"round",d:"M8 42v-6h32v6"})],-1)]))}const FTe=vt({name:"icon-park-outline-vertical-spacing-between-items",render:Ygt}),Bgt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Zgt(t,e){return V(),H("svg",Bgt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"m16 35l-6 6l-6-6m12-22l-6-6l-6 6m6-6v34M44 9H22m14 10H22m22 10H22m14 10H22"},null,-1)]))}const XTe=vt({name:"icon-park-outline-row-height",render:Zgt});function Hee(t,e){return e===void 0&&(e=15),+parseFloat(Number(t).toPrecision(e))}function kh(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}function e8(t){if(t.toString().indexOf("e")===-1)return Number(t.toString().replace(".",""));var e=kh(t);return e>0?Hee(Number(t)*Math.pow(10,e)):Number(t)}function AJ(t){VTe&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)&&console.warn(t+" is beyond boundary when transfer to integer, the results may not be accurate")}function IV(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],a=e.slice(1);return a.reduce(function(i,o){return t(i,o)},r)}}var q1=IV(function(t,e){var n=e8(t),r=e8(e),a=kh(t)+kh(e),i=n*r;return AJ(i),i/Math.pow(10,a)}),Qgt=IV(function(t,e){var n=Math.pow(10,Math.max(kh(t),kh(e)));return(q1(t,n)+q1(e,n))/n}),Kgt=IV(function(t,e){var n=Math.pow(10,Math.max(kh(t),kh(e)));return(q1(t,n)-q1(e,n))/n}),DTe=IV(function(t,e){var n=e8(t),r=e8(e);return AJ(n),AJ(r),q1(n/r,Hee(Math.pow(10,kh(e)-kh(t))))});function Hgt(t,e){var n=Math.pow(10,e),r=DTe(Math.round(Math.abs(q1(t,n))),n);return t<0&&r!==0&&(r=q1(r,-1)),r}var VTe=!0;function Ggt(t){t===void 0&&(t=!0),VTe=t}var $gt={strip:Hee,plus:Qgt,minus:Kgt,times:q1,divide:DTe,round:Hgt,digitLength:kh,float2Fixed:e8,enableBoundaryChecking:Ggt};const zgt={class:"bar"},Jgt=["data-tooltip"],jgt=["data-tooltip"],qgt=["data-tooltip"],emt=tt({__name:"Slider",props:{value:{},disabled:{type:Boolean,default:!1},min:{default:0},max:{default:100},step:{default:1},range:{type:Boolean,default:!1}},emits:["update:value"],setup(t,{emit:e}){const n=A=>A.getBoundingClientRect().left,r=t,a=e,i=un("sliderRef"),o=we(0),s=we(0),l=we(0),c=we("end"),u=A=>{let x=A/100*(r.max-r.min);if(r.step>=1)x=Math.fround(x);else{const M=r.step.toString(),S=M.match(/^[0.]*([1-9])/);if(S){const w=S[1],_=M.indexOf(w)-1;if(_>0){const T=Math.pow(10,_);x=Math.fround(x*T)/T}}}return $gt.plus(x,r.min)},f=Fe(()=>u(o.value)),d=Fe(()=>u(s.value)),h=Fe(()=>u(l.value));qt(()=>r.value,()=>{r.max!==r.min&&(typeof r.value=="number"?o.value=(r.value-r.min)/(r.max-r.min)*100:(s.value=(r.value[0]-r.min)/(r.max-r.min)*100,l.value=(r.value[1]-r.min)/(r.max-r.min)*100))},{immediate:!0});const p=A=>{if(!i.value)return 0;let M=(("clientX"in A?A.clientX:A.changedTouches[0].clientX)-n(i.value))/i.value.clientWidth;M=Math.max(M,0),M=Math.min(M,1);let S=M*100;const w=r.step/(r.max-r.min)*100,_=S%w;return _>0&&(_<=w/2?S=S-_:S=S-_+w),S},v=A=>{const x=p(A);c.value==="start"?s.value=x:l.value=x},g=A=>{y(A);const x=u(o.value),M=r.value,S=c.value==="start"?[x,M[1]]:[M[0],x];S[0]>S[1]&&([S[0],S[1]]=[S[1],S[0]]),a("update:value",S),document.removeEventListener("mousemove",v),document.removeEventListener("touchmove",v),document.removeEventListener("mouseup",g),document.removeEventListener("touchend",g)},y=A=>{o.value=p(A)},m=A=>{y(A);const x=u(o.value);a("update:value",x),document.removeEventListener("mousemove",y),document.removeEventListener("touchmove",y),document.removeEventListener("mouseup",m),document.removeEventListener("touchend",m)},R=A=>{if(!r.disabled)if(r.range){const x=p(A);Math.abs(x-s.value)<Math.abs(x-l.value)?c.value="start":c.value="end",document.addEventListener("mousemove",v),document.addEventListener("touchmove",v),document.addEventListener("mouseup",g),document.addEventListener("touchend",g)}else document.addEventListener("mousemove",y),document.addEventListener("touchmove",y),document.addEventListener("mouseup",m),document.addEventListener("touchend",m)};return(A,x)=>(V(),H("div",{class:mt(["slider",{disabled:A.disabled}]),ref_key:"sliderRef",ref:i,onMousedown:x[0]||(x[0]=M=>R(M))},[I("div",zgt,[A.range?(V(),H(qe,{key:1},[I("div",{class:"track",style:We({width:`${l.value-s.value}%`,left:`${s.value}%`})},null,4),I("div",{class:"thumb",style:We({left:`${s.value}%`}),"data-tooltip":d.value},null,12,jgt),I("div",{class:"thumb",style:We({left:`${l.value}%`}),"data-tooltip":h.value},null,12,qgt)],64)):(V(),H(qe,{key:0},[I("div",{class:"track",style:We({width:`${o.value}%`})},null,4),I("div",{class:"thumb",style:We({left:`${o.value}%`}),"data-tooltip":f.value},null,12,Jgt)],64))])],34))}}),Xo=lt(emt,[["__scopeId","data-v-3e6313a1"]]),tmt={class:"element-opacity"},nmt={class:"row"},rmt=tt({__name:"ElementOpacity",setup(t){const e=It(),{handleElement:n}=nt(Wt()),r=we(1);qt(n,()=>{n.value&&(r.value="opacity"in n.value&&n.value.opacity!==void 0?n.value.opacity:1)},{deep:!0,immediate:!0});const{addHistorySnapshot:a}=Pn(),i=o=>{if(!n.value)return;const s={opacity:o};e.updateElement({id:n.value.id,props:s}),a()};return(o,s)=>(V(),H("div",tmt,[I("div",nmt,[s[1]||(s[1]=I("div",{style:{width:"40%"}},"不透明度:",-1)),U(Xo,{min:0,max:1,step:.1,value:r.value,"onUpdate:value":s[0]||(s[0]=l=>i(l)),style:{width:"60%"}},null,8,["value"])])]))}}),UTe=lt(rmt,[["__scopeId","data-v-d83f2a68"]]),amt={width:"100%",height:"100%",viewBox:"0 0 100 10"},imt=["x1","x2","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],uu=tt({__name:"SVGLine",props:{width:{default:2},color:{default:"#333"},markers:{},type:{},padding:{default:0}},setup(t){const e=t,n=we("");mn(()=>{n.value=Gn()});const r=Fe(()=>{const a=e.width;return e.type==="dashed"?a<=8?`${a*5} ${a*2.5}`:`${a*5} ${a*1.5}`:e.type==="dotted"?a<=8?`${a*1.8} ${a*1.6}`:`${a*1.5} ${a*1.2}`:"0 0"});return(a,i)=>(V(),H("svg",amt,[I("defs",null,[a.markers&&a.markers[0]?(V(),Ue(Ch,{key:0,id:n.value,position:"start",type:a.markers[0],color:a.color,baseSize:a.width},null,8,["id","type","color","baseSize"])):at("",!0),a.markers&&a.markers[1]?(V(),Ue(Ch,{key:1,id:n.value,position:"end",type:a.markers[1],color:a.color,baseSize:a.width},null,8,["id","type","color","baseSize"])):at("",!0)]),I("line",{x1:a.padding,y1:5,x2:100-a.padding,y2:5,stroke:a.color,"stroke-width":a.width,"stroke-dasharray":r.value,"marker-start":a.markers&&a.markers[0]?`url(#${n.value}-${a.markers[0]}-start)`:"","marker-end":a.markers&&a.markers[1]?`url(#${n.value}-${a.markers[1]}-end)`:""},null,8,imt)]))}}),omt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function smt(t,e){return V(),H("svg",omt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M24 44c5.96 0 2.336-8.864 6-13c3.126-3.53 14-1.914 14-7c0-11.046-8.954-20-20-20S4 12.954 4 24s8.954 20 20 20Z"}),I("path",{d:"M28 17a3 3 0 1 0 0-6a3 3 0 0 0 0 6Zm-12 4a3 3 0 1 0 0-6a3 3 0 0 0 0 6Zm1 13a3 3 0 1 0 0-6a3 3 0 0 0 0 6Z"})],-1)]))}const Gee=vt({name:"icon-park-outline-platte",render:smt}),lmt={class:"color-block"},cmt=tt({__name:"ColorButton",props:{color:{}},setup(t){return(e,n)=>{const r=Gee;return V(),Ue(Mt,{class:"color-btn"},{default:pe(()=>[I("div",lmt,[I("div",{class:"content",style:We({backgroundColor:e.color})},null,4)]),U(r,{class:"color-btn-icon"})]),_:1})}}}),Ka=lt(cmt,[["__scopeId","data-v-c97a3266"]]),umt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function fmt(t,e){return V(),H("svg",umt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{"stroke-linecap":"round",d:"M39 23L25 9m19 8L31 4m3.999 14.999l5-5m-11-1l5-5M11 37l-5 5"}),I("path",{d:"M28 12L12 28l-1 9l9-1l16-16z"})],-1)]))}const dmt=vt({name:"icon-park-outline-needle",render:fmt});function hmt(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),a=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(a),e&&(r.href=e),a.href=t,a.href}const pmt=(()=>{let t=0;const e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function V1(t){const e=[];for(let n=0,r=t.length;n<r;n++)e.push(t[n]);return e}let Zb=null;function WTe(t={}){return Zb||(t.includeStyleProperties?(Zb=t.includeStyleProperties,Zb):(Zb=V1(window.getComputedStyle(document.documentElement)),Zb))}function eD(t,e){const r=(t.ownerDocument.defaultView||window).getComputedStyle(t).getPropertyValue(e);return r?parseFloat(r.replace("px","")):0}function vmt(t){const e=eD(t,"border-left-width"),n=eD(t,"border-right-width");return t.clientWidth+e+n}function gmt(t){const e=eD(t,"border-top-width"),n=eD(t,"border-bottom-width");return t.clientHeight+e+n}function YTe(t,e={}){const n=e.width||vmt(t),r=e.height||gmt(t);return{width:n,height:r}}function mmt(){let t,e;try{e=process}catch{}const n=e&&e.env?e.env.devicePixelRatio:null;return n&&(t=parseInt(n,10),Number.isNaN(t)&&(t=1)),t||window.devicePixelRatio||1}const jl=16384;function ymt(t){(t.width>jl||t.height>jl)&&(t.width>jl&&t.height>jl?t.width>t.height?(t.height*=jl/t.width,t.width=jl):(t.width*=jl/t.height,t.height=jl):t.width>jl?(t.height*=jl/t.width,t.width=jl):(t.width*=jl/t.height,t.height=jl))}function tD(t){return new Promise((e,n)=>{const r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>e(r))})},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=t})}async function Amt(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Rmt(t,e,n){const r="http://www.w3.org/2000/svg",a=document.createElementNS(r,"svg"),i=document.createElementNS(r,"foreignObject");return a.setAttribute("width",`${e}`),a.setAttribute("height",`${n}`),a.setAttribute("viewBox",`0 0 ${e} ${n}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),a.appendChild(i),i.appendChild(t),Amt(a)}const Ml=(t,e)=>{if(t instanceof e)return!0;const n=Object.getPrototypeOf(t);return n===null?!1:n.constructor.name===e.name||Ml(n,e)};function bmt(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function xmt(t,e){return WTe(e).map(n=>{const r=t.getPropertyValue(n),a=t.getPropertyPriority(n);return`${n}: ${r}${a?" !important":""};`}).join(" ")}function Smt(t,e,n,r){const a=`.${t}:${e}`,i=n.cssText?bmt(n):xmt(n,r);return document.createTextNode(`${a}{${i}}`)}function QAe(t,e,n,r){const a=window.getComputedStyle(t,n),i=a.getPropertyValue("content");if(i===""||i==="none")return;const o=pmt();try{e.className=`${e.className} ${o}`}catch{return}const s=document.createElement("style");s.appendChild(Smt(o,n,a,r)),e.appendChild(s)}function Mmt(t,e,n){QAe(t,e,":before",n),QAe(t,e,":after",n)}const KAe="application/font-woff",HAe="image/jpeg",_mt={woff:KAe,woff2:KAe,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:HAe,jpeg:HAe,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function wmt(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function $ee(t){const e=wmt(t).toLowerCase();return _mt[e]||""}function Lmt(t){return t.split(/,/)[1]}function RJ(t){return t.search(/^(data:)/)!==-1}function Tmt(t,e){return`data:${e};base64,${t}`}async function BTe(t,e,n){const r=await fetch(t,e);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const a=await r.blob();return new Promise((i,o)=>{const s=new FileReader;s.onerror=o,s.onloadend=()=>{try{i(n({res:r,result:s.result}))}catch(l){o(l)}},s.readAsDataURL(a)})}const EH={};function Omt(t,e,n){let r=t.replace(/\?.*/,"");return n&&(r=t),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),e?`[${e}]${r}`:r}async function zee(t,e,n){const r=Omt(t,e,n.includeQueryParams);if(EH[r]!=null)return EH[r];n.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());let a;try{const i=await BTe(t,n.fetchRequestInit,({res:o,result:s})=>(e||(e=o.headers.get("Content-Type")||""),Lmt(s)));a=Tmt(i,e)}catch(i){a=n.imagePlaceholder||"";let o=`Failed to fetch resource: ${t}`;i&&(o=typeof i=="string"?i:i.message),o&&console.warn(o)}return EH[r]=a,a}async function Pmt(t){const e=t.toDataURL();return e==="data:,"?t.cloneNode(!1):tD(e)}async function Cmt(t,e){if(t.currentSrc){const i=document.createElement("canvas"),o=i.getContext("2d");i.width=t.clientWidth,i.height=t.clientHeight,o==null||o.drawImage(t,0,0,i.width,i.height);const s=i.toDataURL();return tD(s)}const n=t.poster,r=$ee(n),a=await zee(n,r,e);return tD(a)}async function Nmt(t,e){var n;try{if(!((n=t==null?void 0:t.contentDocument)===null||n===void 0)&&n.body)return await kV(t.contentDocument.body,e,!0)}catch{}return t.cloneNode(!1)}async function Imt(t,e){return Ml(t,HTMLCanvasElement)?Pmt(t):Ml(t,HTMLVideoElement)?Cmt(t,e):Ml(t,HTMLIFrameElement)?Nmt(t,e):t.cloneNode(ZTe(t))}const kmt=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SLOT",ZTe=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SVG";async function Emt(t,e,n){var r,a;if(ZTe(e))return e;let i=[];return kmt(t)&&t.assignedNodes?i=V1(t.assignedNodes()):Ml(t,HTMLIFrameElement)&&(!((r=t.contentDocument)===null||r===void 0)&&r.body)?i=V1(t.contentDocument.body.childNodes):i=V1(((a=t.shadowRoot)!==null&&a!==void 0?a:t).childNodes),i.length===0||Ml(t,HTMLVideoElement)||await i.reduce((o,s)=>o.then(()=>kV(s,n)).then(l=>{l&&e.appendChild(l)}),Promise.resolve()),e}function Fmt(t,e,n){const r=e.style;if(!r)return;const a=window.getComputedStyle(t);a.cssText?(r.cssText=a.cssText,r.transformOrigin=a.transformOrigin):WTe(n).forEach(i=>{let o=a.getPropertyValue(i);i==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),Ml(t,HTMLIFrameElement)&&i==="display"&&o==="inline"&&(o="block"),i==="d"&&e.getAttribute("d")&&(o=`path(${e.getAttribute("d")})`),r.setProperty(i,o,a.getPropertyPriority(i))})}function Xmt(t,e){Ml(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),Ml(t,HTMLInputElement)&&e.setAttribute("value",t.value)}function Dmt(t,e){if(Ml(t,HTMLSelectElement)){const n=e,r=Array.from(n.children).find(a=>t.value===a.getAttribute("value"));r&&r.setAttribute("selected","")}}function Vmt(t,e,n){return Ml(e,Element)&&(Fmt(t,e,n),Mmt(t,e,n),Xmt(t,e),Dmt(t,e)),e}async function Umt(t,e){const n=t.querySelectorAll?t.querySelectorAll("use"):[];if(n.length===0)return t;const r={};for(let i=0;i<n.length;i++){const s=n[i].getAttribute("xlink:href");if(s){const l=t.querySelector(s),c=document.querySelector(s);!l&&c&&!r[s]&&(r[s]=await kV(c,e,!0))}}const a=Object.values(r);if(a.length){const i="http://www.w3.org/1999/xhtml",o=document.createElementNS(i,"svg");o.setAttribute("xmlns",i),o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.overflow="hidden",o.style.display="none";const s=document.createElementNS(i,"defs");o.appendChild(s);for(let l=0;l<a.length;l++)s.appendChild(a[l]);t.appendChild(o)}return t}async function kV(t,e,n){return!n&&e.filter&&!e.filter(t)?null:Promise.resolve(t).then(r=>Imt(r,e)).then(r=>Emt(t,r,e)).then(r=>Vmt(t,r,e)).then(r=>Umt(r,e))}const QTe=/url\((['"]?)([^'"]+?)\1\)/g,Wmt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Ymt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Bmt(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function Zmt(t){const e=[];return t.replace(QTe,(n,r,a)=>(e.push(a),n)),e.filter(n=>!RJ(n))}async function Qmt(t,e,n,r,a){try{const i=n?hmt(e,n):e,o=$ee(e);let s;return a||(s=await zee(i,o,r)),t.replace(Bmt(e),`$1${s}$3`)}catch{}return t}function Kmt(t,{preferredFontFormat:e}){return e?t.replace(Ymt,n=>{for(;;){const[r,,a]=Wmt.exec(n)||[];if(!a)return"";if(a===e)return`src: ${r};`}}):t}function KTe(t){return t.search(QTe)!==-1}async function HTe(t,e,n){if(!KTe(t))return t;const r=Kmt(t,n);return Zmt(r).reduce((i,o)=>i.then(s=>Qmt(s,o,e,n)),Promise.resolve(r))}async function Qb(t,e,n){var r;const a=(r=e.style)===null||r===void 0?void 0:r.getPropertyValue(t);if(a){const i=await HTe(a,null,n);return e.style.setProperty(t,i,e.style.getPropertyPriority(t)),!0}return!1}async function Hmt(t,e){await Qb("background",t,e)||await Qb("background-image",t,e),await Qb("mask",t,e)||await Qb("-webkit-mask",t,e)||await Qb("mask-image",t,e)||await Qb("-webkit-mask-image",t,e)}async function Gmt(t,e){const n=Ml(t,HTMLImageElement);if(!(n&&!RJ(t.src))&&!(Ml(t,SVGImageElement)&&!RJ(t.href.baseVal)))return;const r=n?t.src:t.href.baseVal,a=await zee(r,$ee(r),e);await new Promise((i,o)=>{t.onload=i,t.onerror=e.onImageErrorHandler?(...l)=>{try{i(e.onImageErrorHandler(...l))}catch(c){o(c)}}:o;const s=t;s.decode&&(s.decode=i),s.loading==="lazy"&&(s.loading="eager"),n?(t.srcset="",t.src=a):t.href.baseVal=a})}async function $mt(t,e){const r=V1(t.childNodes).map(a=>GTe(a,e));await Promise.all(r).then(()=>t)}async function GTe(t,e){Ml(t,Element)&&(await Hmt(t,e),await Gmt(t,e),await $mt(t,e))}function zmt(t,e){const{style:n}=t;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width=`${e.width}px`),e.height&&(n.height=`${e.height}px`);const r=e.style;return r!=null&&Object.keys(r).forEach(a=>{n[a]=r[a]}),t}const GAe={};async function $Ae(t){let e=GAe[t];if(e!=null)return e;const r=await(await fetch(t)).text();return e={url:t,cssText:r},GAe[t]=e,e}async function zAe(t,e){let n=t.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(async o=>{let s=o.replace(r,"$1");return s.startsWith("https://")||(s=new URL(s,t.url).href),BTe(s,e.fetchRequestInit,({result:l})=>(n=n.replace(o,`url(${l})`),[o,l]))});return Promise.all(i).then(()=>n)}function JAe(t){if(t==null)return[];const e=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=t.replace(n,"");const a=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=a.exec(r);if(l===null)break;e.push(l[0])}r=r.replace(a,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(o,"gi");for(;;){let l=i.exec(r);if(l===null){if(l=s.exec(r),l===null)break;i.lastIndex=s.lastIndex}else s.lastIndex=i.lastIndex;e.push(l[0])}return e}async function Jmt(t,e){const n=[],r=[];return t.forEach(a=>{if("cssRules"in a)try{V1(a.cssRules||[]).forEach((i,o)=>{if(i.type===CSSRule.IMPORT_RULE){let s=o+1;const l=i.href,c=$Ae(l).then(u=>zAe(u,e)).then(u=>JAe(u).forEach(f=>{try{a.insertRule(f,f.startsWith("@import")?s+=1:a.cssRules.length)}catch(d){console.error("Error inserting rule from remote css",{rule:f,error:d})}})).catch(u=>{console.error("Error loading remote css",u.toString())});r.push(c)}})}catch(i){const o=t.find(s=>s.href==null)||document.styleSheets[0];a.href!=null&&r.push($Ae(a.href).then(s=>zAe(s,e)).then(s=>JAe(s).forEach(l=>{o.insertRule(l,o.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",i)}}),Promise.all(r).then(()=>(t.forEach(a=>{if("cssRules"in a)try{V1(a.cssRules||[]).forEach(i=>{n.push(i)})}catch(i){console.error(`Error while reading CSS rules from ${a.href}`,i)}}),n))}function jmt(t){return t.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>KTe(e.style.getPropertyValue("src")))}async function qmt(t,e){if(t.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=V1(t.ownerDocument.styleSheets),r=await Jmt(n,e);return jmt(r)}function $Te(t){return t.trim().replace(/["']/g,"")}function e2t(t){const e=new Set;function n(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(i=>{e.add($Te(i))}),Array.from(r.children).forEach(i=>{i instanceof HTMLElement&&n(i)})}return n(t),e}async function t2t(t,e){const n=await qmt(t,e),r=e2t(t);return(await Promise.all(n.filter(i=>r.has($Te(i.style.fontFamily))).map(i=>{const o=i.parentStyleSheet?i.parentStyleSheet.href:null;return HTe(i.cssText,o,e)}))).join(`-`)}async function n2t(t,e){const n=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await t2t(t,e);if(n){const r=document.createElement("style"),a=document.createTextNode(n);r.appendChild(a),t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r)}}async function r2t(t,e={}){const{width:n,height:r}=YTe(t,e),a=await kV(t,e,!0);return await n2t(a,e),await GTe(a,e),zmt(a,e),await Rmt(a,n,r)}async function Jee(t,e={}){const{width:n,height:r}=YTe(t,e),a=await r2t(t,e),i=await tD(a),o=document.createElement("canvas"),s=o.getContext("2d"),l=e.pixelRatio||mmt(),c=e.canvasWidth||n,u=e.canvasHeight||r;return o.width=c*l,o.height=u*l,e.skipAutoScale||ymt(o),o.style.width=`${c}`,o.style.height=`${u}`,e.backgroundColor&&(s.fillStyle=e.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(i,0,0,o.width,o.height),o}async function a2t(t,e={}){return(await Jee(t,e)).toDataURL()}async function jAe(t,e={}){return(await Jee(t,e)).toDataURL("image/jpeg",e.quality||1)}const i2t=tt({__name:"Checkboard",props:{size:{default:8},white:{default:"#fff"},grey:{default:"#e6e6e6"}},setup(t){const e=t,n={},r=(o,s,l)=>{const c=document.createElement("canvas");c.width=c.height=l*2;const u=c.getContext("2d");return u?(u.fillStyle=o,u.fillRect(0,0,c.width,c.height),u.fillStyle=s,u.fillRect(0,0,l,l),u.translate(l,l),u.fillRect(0,0,l,l),c.toDataURL()):null},a=(o,s,l)=>{const c=o+","+s+","+l;if(n[c])return n[c];const u=r(o,s,l);return n[c]=u,u},i=Fe(()=>({backgroundImage:`url(${a(e.white,e.grey,e.size)})`}));return(o,s)=>(V(),H("div",{class:"checkerboard",style:We(i.value)},null,4))}}),bJ=lt(i2t,[["__scopeId","data-v-24864a41"]]),o2t={class:"alpha"},s2t={class:"alpha-checkboard-wrap"},l2t=tt({__name:"Alpha",props:{value:{}},emits:["colorChange"],setup(t,{emit:e}){const n=t,r=e,a=Fe(()=>n.value),i=Fe(()=>{const u=[a.value.r,a.value.g,a.value.b].join(",");return`linear-gradient(to right, rgba(${u}, 0) 0%, rgba(${u}, 1) 100%)`}),o=un("alphaRef"),s=u=>{if(u.preventDefault(),!o.value)return;const f=!(u instanceof MouseEvent);if(f&&(!u.changedTouches||!u.changedTouches[0]))return;const d=f?u.changedTouches[0].pageX:u.pageX,h=o.value.clientWidth,p=o.value.getBoundingClientRect().left+window.pageXOffset,v=d-p;let g;v<0?g=0:v>h?g=1:g=Math.round(v*100/h)/100,a.value.a!==g&&r("colorChange",{r:a.value.r,g:a.value.g,b:a.value.b,a:g})},l=()=>{window.removeEventListener("mousemove",s),window.removeEventListener("touchmove",s),window.removeEventListener("mouseup",l),window.removeEventListener("touchend",l)},c=u=>{s(u),window.addEventListener("mousemove",s),window.addEventListener("touchmove",s),window.addEventListener("mouseup",l),window.addEventListener("touchend",l)};return or(l),(u,f)=>(V(),H("div",o2t,[I("div",s2t,[U(bJ)]),I("div",{class:"alpha-gradient",style:We({background:i.value})},null,4),I("div",{class:"alpha-container",ref_key:"alphaRef",ref:o,onMousedown:f[0]||(f[0]=d=>c(d)),onTouchstart:f[1]||(f[1]=d=>c(d))},[I("div",{class:"alpha-pointer",style:We({left:a.value.a*100+"%"})},f[2]||(f[2]=[I("div",{class:"alpha-picker"},null,-1)]),4)],544)]))}}),c2t=lt(l2t,[["__scopeId","data-v-954e5c35"]]),u2t={class:"hue"},f2t=tt({__name:"Hue",props:{value:{},hue:{}},emits:["colorChange"],setup(t,{emit:e}){const n=t,r=e,a=we(0),i=we(""),o=Fe(()=>{const d=Ct(n.value).toHsl();return n.hue!==-1&&(d.h=n.hue),d}),s=Fe(()=>o.value.h===0&&i.value==="right"?"100%":o.value.h*100/360+"%");qt(()=>n.value,()=>{const d=Ct(n.value).toHsl(),h=d.s===0?n.hue:d.h;h!==0&&h-a.value>0&&(i.value="right"),h!==0&&h-a.value<0&&(i.value="left"),a.value=h});const l=un("hueRef"),c=d=>{if(d.preventDefault(),!l.value)return;const h=!(d instanceof MouseEvent);if(h&&(!d.changedTouches||!d.changedTouches[0]))return;const p=h?d.changedTouches[0].pageX:d.pageX,v=l.value.clientWidth,g=l.value.getBoundingClientRect().left+window.pageXOffset,y=p-g;let m,R;y<0?m=0:y>v?m=360:(R=y*100/v,m=360*R/100),(n.hue===-1||o.value.h!==m)&&r("colorChange",{h:m,l:o.value.l,s:o.value.s,a:o.value.a})},u=()=>{window.removeEventListener("mousemove",c),window.removeEventListener("touchmove",c),window.removeEventListener("mouseup",u),window.removeEventListener("touchend",u)},f=d=>{c(d),window.addEventListener("mousemove",c),window.addEventListener("touchmove",c),window.addEventListener("mouseup",u),window.addEventListener("touchend",u)};return or(u),(d,h)=>(V(),H("div",u2t,[I("div",{class:"hue-container",ref_key:"hueRef",ref:l,onMousedown:h[0]||(h[0]=p=>f(p)),onTouchstart:h[1]||(h[1]=p=>f(p))},[I("div",{class:"hue-pointer",style:We({left:s.value})},h[2]||(h[2]=[I("div",{class:"hue-picker"},null,-1)]),4)],544)]))}}),d2t=lt(f2t,[["__scopeId","data-v-be23da13"]]),h2t=tt({__name:"Saturation",props:{value:{},hue:{}},emits:["colorChange"],setup(t,{emit:e}){const n=t,r=e,a=Fe(()=>{const h=Ct(n.value).toHsv();return n.hue!==-1&&(h.h=n.hue),h}),i=Fe(()=>`hsl(${a.value.h}, 100%, 50%)`),o=Fe(()=>-(a.value.v*100)+1+100+"%"),s=Fe(()=>a.value.s*100+"%"),l=Vr.throttle(function(h){r("colorChange",h)},20,{leading:!0,trailing:!1}),c=un("saturationRef"),u=h=>{if(h.preventDefault(),!c.value)return;const p=!(h instanceof MouseEvent);if(p&&(!h.changedTouches||!h.changedTouches[0]))return;const v=p?h.changedTouches[0].pageX:h.pageX,g=p?h.changedTouches[0].pageY:h.pageY,y=c.value.clientWidth,m=c.value.clientHeight,R=c.value.getBoundingClientRect().left+window.pageXOffset,A=c.value.getBoundingClientRect().top+window.pageYOffset,x=Vr.clamp(v-R,0,y),M=Vr.clamp(g-A,0,m),S=x/y,w=Vr.clamp(-(M/m)+1,0,1);l({h:a.value.h,s:S,v:w,a:a.value.a})},f=()=>{window.removeEventListener("mousemove",u),window.removeEventListener("touchmove",u),window.removeEventListener("mouseup",f),window.removeEventListener("touchend",f)},d=h=>{u(h),window.addEventListener("mousemove",u),window.addEventListener("touchmove",u),window.addEventListener("mouseup",f),window.addEventListener("touchend",f)};return or(f),(h,p)=>(V(),H("div",{class:"saturation",ref_key:"saturationRef",ref:c,style:We({background:i.value}),onMousedown:p[0]||(p[0]=v=>d(v)),onTouchstart:p[1]||(p[1]=v=>d(v))},[p[3]||(p[3]=I("div",{class:"saturation-white"},null,-1)),p[4]||(p[4]=I("div",{class:"saturation-black"},null,-1)),I("div",{class:"saturation-pointer",style:We({top:o.value,left:s.value})},p[2]||(p[2]=[I("div",{class:"saturation-circle"},null,-1)]),4)],36))}}),p2t=lt(h2t,[["__scopeId","data-v-b63df0ce"]]),v2t={class:"editable-input"},g2t=["value"],m2t=tt({__name:"EditableInput",props:{value:{}},emits:["colorChange"],setup(t,{emit:e}){const n=t,r=e,a=Fe(()=>{let o="";return n.value.a<1?o=Ct(n.value).toHex8String().toUpperCase():o=Ct(n.value).toHexString().toUpperCase(),o.replace("#","")}),i=o=>{const s=o.target.value;if(s.length>=6){const l=Ct(s);l.isValid()&&r("colorChange",l.toRgb())}};return(o,s)=>(V(),H("div",v2t,[I("input",{class:"input-content",value:a.value,onInput:s[0]||(s[0]=l=>i(l))},null,40,g2t)]))}}),y2t=lt(m2t,[["__scopeId","data-v-70979e7e"]]),A2t={class:"color-picker"},R2t={class:"picker-saturation-wrap"},b2t={class:"picker-controls"},x2t={class:"picker-color-wrap"},S2t={class:"picker-sliders"},M2t={class:"picker-hue-wrap"},_2t={class:"picker-alpha-wrap"},w2t={class:"picker-field"},L2t={class:"picker-presets"},T2t=["onClick"],O2t={class:"picker-gradient-presets"},P2t=["onClick"],C2t={class:"picker-presets"},N2t=["onClick"],I2t={key:0,class:"recent-colors-title"},k2t={class:"picker-presets"},E2t=["onClick"],qAe="RECENT_COLORS",F2t=tt({__name:"index",props:{modelValue:{default:"#ffffff"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,a=[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],i=(A,x,M)=>{const S=Ct(A).toRgb(),w=Ct(x).toRgb(),_=(w.r-S.r)/M,T=(w.g-S.g)/M,O=(w.b-S.b)/M,N=[];for(let P=0;P<M;P++){const C=Ct({r:S.r+_*P,g:S.g+T*P,b:S.b+O*P}).toRgbString();N.push(C)}return N},o=()=>{const A=[];for(const x of a)A.push(i(x[1],x[0],5));return A},s=["#000000","#ffffff","#eeece1","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c"],l=["#c21401","#ff1e02","#ffc12a","#ffff3a","#90cf5b","#00af57","#00afee","#0071be","#00215f","#72349d"],c=we(-1),u=we([]),f=Fe({get(){return Ct(n.modelValue).toRgb()},set(A){const x=`rgba(${[A.r,A.g,A.b,A.a].join(",")})`;r("update:modelValue",x)}}),d=o(),h=Fe(()=>`rgba(${[f.value.r,f.value.g,f.value.b,f.value.a].join(",")})`),p=A=>{c.value=Ct(A).toHsl().h,r("update:modelValue",A)},v=Vr.debounce(function(){const A=Ct(f.value).toRgbString();if(!u.value.includes(A)){u.value=[A,...u.value];const x=10;u.value.length>x&&(u.value=u.value.slice(0,x))}},300,{trailing:!0});mn(()=>{const A=localStorage.getItem(qAe);A&&(u.value=JSON.parse(A))}),qt(u,()=>{const A=JSON.stringify(u.value);localStorage.setItem(qAe,A)});const g=A=>{"h"in A?(c.value=A.h,f.value=Ct(A).toRgb()):(c.value=Ct(A).toHsl().h,f.value=A),v()},y=()=>{"EyeDropper"in window?m():R()},m=()=>{Dn.success("按 ESC 键关闭取色吸管",{duration:0}),new window.EyeDropper().open().then(x=>{const M=Ct(x.sRGBHex);c.value=M.toHsl().h,f.value=M.toRgb(),Dn.closeAll(),v()}).catch(()=>{Dn.closeAll()})},R=()=>{const A=document.querySelector(".canvas");if(!A)return;const x=document.createElement("div");x.style.cssText="position: fixed; top: 0; left: 0; bottom: 0; right: 0; z-index: 9999; cursor: wait;",document.body.appendChild(x);const M=document.createElement("div");M.style.cssText="position: absolute; top: -100px; left: -100px; width: 16px; height: 16px; border: 1px solid #000; z-index: 999",x.appendChild(M);const{left:S,top:w,width:_,height:T}=A.getBoundingClientRect();Jee(A,{filter:N=>!(N.tagName&&N.tagName.toUpperCase()==="FOREIGNOBJECT"||N.classList&&N.classList.contains("operate")),fontEmbedCSS:"",width:_,height:T,canvasWidth:_,canvasHeight:T,pixelRatio:1}).then(N=>{N.style.cssText=`position: absolute; top: ${w}px; left: ${S}px; cursor: crosshair;`,x.style.cursor="default",x.appendChild(N);const P=N.getContext("2d");if(!P)return;let C="";const E=Q=>{const K=Q.x,ne=Q.y,Z=K-S,$=ne-w,[G,ee,ce,B]=P.getImageData(Z,$,1,1).data;C=`rgba(${G}, ${ee}, ${ce}, ${(B/255).toFixed(2)})`,M.style.left=K+10+"px",M.style.top=ne+10+"px",M.style.backgroundColor=C},F=()=>{C="",M.style.left="-100px",M.style.top="-100px",M.style.backgroundColor=""},Y=Q=>{if(C&&Q.button===0){const K=Ct(C);c.value=K.toHsl().h,f.value=K.toRgb(),v()}document.body.removeChild(x),N.removeEventListener("mousemove",E),N.removeEventListener("mouseleave",F),window.removeEventListener("mousedown",Y)};N.addEventListener("mousemove",E),N.addEventListener("mouseleave",F),window.addEventListener("mousedown",Y)}).catch(()=>{Dn.error("取色吸管初始化失败"),document.body.removeChild(x)})};return(A,x)=>{const M=dmt;return V(),H("div",A2t,[I("div",R2t,[U(p2t,{value:f.value,hue:c.value,onColorChange:x[0]||(x[0]=S=>g(S))},null,8,["value","hue"])]),I("div",b2t,[I("div",x2t,[I("div",{class:"picker-current-color",style:We({background:h.value})},null,4),U(bJ)]),I("div",S2t,[I("div",M2t,[U(d2t,{value:f.value,hue:c.value,onColorChange:x[1]||(x[1]=S=>g(S))},null,8,["value","hue"])]),I("div",_2t,[U(c2t,{value:f.value,onColorChange:x[2]||(x[2]=S=>g(S))},null,8,["value"])])])]),I("div",w2t,[U(y2t,{class:"input",value:f.value,onColorChange:x[3]||(x[3]=S=>g(S))},null,8,["value"]),I("div",{class:"straw",onClick:x[4]||(x[4]=S=>y())},[U(M)]),I("div",{class:"transparent",onClick:x[5]||(x[5]=S=>p("#00000000"))},[U(bJ)])]),I("div",L2t,[(V(),H(qe,null,bt(s,S=>I("div",{class:mt(["picker-presets-color",{white:S==="#ffffff"||S==="#fff"||S==="rgb(255, 255, 255)"}]),key:S,style:We({background:S}),onClick:w=>p(S)},null,14,T2t)),64))]),I("div",O2t,[(V(!0),H(qe,null,bt(te(d),(S,w)=>(V(),H("div",{class:"picker-gradient-col",key:w},[(V(!0),H(qe,null,bt(S,_=>(V(),H("div",{class:"picker-gradient-color",key:_,style:We({background:_}),onClick:T=>p(_)},null,12,P2t))),128))]))),128))]),I("div",C2t,[(V(),H(qe,null,bt(l,S=>I("div",{class:"picker-presets-color",key:S,style:We({background:S}),onClick:w=>p(S)},null,12,N2t)),64))]),u.value.length?(V(),H("div",I2t,"最近使用:")):at("",!0),I("div",k2t,[(V(!0),H(qe,null,bt(u.value,S=>(V(),H("div",{class:mt(["picker-presets-color alpha",{white:S==="#ffffff"||S==="#fff"||S==="rgb(255, 255, 255)"}]),key:S,onClick:w=>p(S)},[I("div",{class:"picker-presets-color-content",style:We({background:S})},null,4)],10,E2t))),128))])])}}}),Ir=lt(F2t,[["__scopeId","data-v-1464f8b7"]]),X2t=tt({__name:"Switch",props:{value:{type:Boolean},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(t,{emit:e}){const n=t,r=e,a=()=>{n.disabled||r("update:value",!n.value)};return(i,o)=>(V(),H("span",{class:mt(["switch",{active:i.value,disabled:i.disabled}]),onClick:o[0]||(o[0]=s=>a())},o[1]||(o[1]=[I("span",{class:"switch-core"},null,-1)]),2))}}),_u=lt(X2t,[["__scopeId","data-v-0ae5f9b9"]]),D2t={key:0,class:"select-wrap"},V2t={class:"selector"},U2t={class:"icon"},W2t={class:"selector"},Y2t={class:"icon"},B2t=tt({__name:"SelectCustom",props:{disabled:{type:Boolean,default:!1}},setup(t){const e=we(!1),n=un("selectRef"),r=we(0),a=()=>{n.value&&(r.value=n.value.clientWidth)},i=new ResizeObserver(a);return mn(()=>{n.value&&i.observe(n.value)}),or(()=>{n.value&&i.unobserve(n.value)}),(o,s)=>{const l=Tu;return o.disabled?(V(),H("div",D2t,[I("div",{class:"select disabled",ref_key:"selectRef",ref:n},[I("div",V2t,[Hr(o.$slots,"label",{},void 0,!0)]),I("div",U2t,[Hr(o.$slots,"icon",{},()=>[U(l)],!0)])],512)])):(V(),Ue(sn,{key:1,class:"select-wrap",trigger:"click",value:e.value,"onUpdate:value":s[1]||(s[1]=c=>e.value=c),placement:"bottom",contentStyle:{padding:0,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08)"}},{content:pe(()=>[I("div",{class:"options",style:We({width:r.value+2+"px"}),onClick:s[0]||(s[0]=c=>e.value=!1)},[Hr(o.$slots,"options",{},void 0,!0)],4)]),default:pe(()=>[I("div",{class:"select",ref_key:"selectRef",ref:n},[I("div",W2t,[Hr(o.$slots,"label",{},void 0,!0)]),I("div",Y2t,[Hr(o.$slots,"icon",{},()=>[U(l)],!0)])],512)]),_:3},8,["value"]))}}}),Gx=lt(B2t,[["__scopeId","data-v-d4fb2ed7"]]),Z2t={class:"element-outline"},Q2t={key:0,class:"row"},K2t={class:"switch-wrapper",style:{width:"60%"}},H2t={class:"row"},G2t=["onClick"],$2t={class:"row"},z2t={class:"row"},J2t=tt({__name:"ElementOutline",props:{fixed:{type:Boolean,default:!1}},setup(t){const e=It(),{theme:n}=nt(e),{handleElement:r}=nt(Wt()),a=we(),i=we(!1),o=we(["solid","dashed","dotted"]);qt(r,()=>{r.value&&(a.value="outline"in r.value?r.value.outline:void 0,i.value=!!a.value)},{deep:!0,immediate:!0});const{addHistorySnapshot:s}=Pn(),l=u=>{if(!r.value)return;const f={outline:{...a.value,...u}};e.updateElement({id:r.value.id,props:f}),s()},c=u=>{if(r.value){if(u){const f=n.value.outline;e.updateElement({id:r.value.id,props:{outline:f}})}else e.removeElementProps({id:r.value.id,propName:"outline"});s()}};return(u,f)=>(V(),H("div",Z2t,[u.fixed?at("",!0):(V(),H("div",Q2t,[f[3]||(f[3]=I("div",{style:{width:"40%"}},"启用边框:",-1)),I("div",K2t,[U(_u,{value:i.value,"onUpdate:value":f[0]||(f[0]=d=>c(d))},null,8,["value"])])])),i.value&&a.value?(V(),H(qe,{key:1},[I("div",H2t,[f[4]||(f[4]=I("div",{style:{width:"40%"}},"边框样式:",-1)),U(Gx,{style:{width:"60%"}},{options:pe(()=>[(V(!0),H(qe,null,bt(o.value,d=>(V(),H("div",{class:"option",key:d,onClick:h=>l({style:d})},[U(uu,{type:d},null,8,["type"])],8,G2t))),128))]),label:pe(()=>[U(uu,{type:a.value.style},null,8,["type"])]),_:1})]),I("div",$2t,[f[5]||(f[5]=I("div",{style:{width:"40%"}},"边框颜色:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:a.value.color,"onUpdate:modelValue":f[1]||(f[1]=d=>l({color:d}))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:a.value.color||"#000"},null,8,["color"])]),_:1})]),I("div",z2t,[f[6]||(f[6]=I("div",{style:{width:"40%"}},"边框粗细:",-1)),U(vl,{value:a.value.width||0,"onUpdate:value":f[2]||(f[2]=d=>l({width:d})),style:{width:"60%"}},null,8,["value"])])],64)):at("",!0)]))}}),B8=lt(J2t,[["__scopeId","data-v-95f329a1"]]),j2t={class:"element-shadow"},q2t={class:"row"},eyt={class:"switch-wrapper",style:{width:"60%"}},tyt={class:"row"},nyt={class:"row"},ryt={class:"row"},ayt={class:"row"},iyt=tt({__name:"ElementShadow",setup(t){const e=It(),{theme:n}=nt(e),{handleElement:r}=nt(Wt()),a=we(),i=we(!1);qt(r,()=>{r.value&&(a.value="shadow"in r.value?r.value.shadow:void 0,i.value=!!a.value)},{deep:!0,immediate:!0});const{addHistorySnapshot:o}=Pn(),s=c=>{if(!r.value||!a.value)return;const u={...a.value,...c};e.updateElement({id:r.value.id,props:{shadow:u}}),o()},l=c=>{if(r.value){if(c){const u=n.value.shadow;e.updateElement({id:r.value.id,props:{shadow:u}})}else e.removeElementProps({id:r.value.id,propName:"shadow"});o()}};return(c,u)=>(V(),H("div",j2t,[I("div",q2t,[u[5]||(u[5]=I("div",{style:{width:"40%"}},"启用阴影:",-1)),I("div",eyt,[U(_u,{value:i.value,"onUpdate:value":u[0]||(u[0]=f=>l(f))},null,8,["value"])])]),i.value&&a.value?(V(),H(qe,{key:0},[I("div",tyt,[u[6]||(u[6]=I("div",{style:{width:"40%"}},"水平阴影:",-1)),U(Xo,{style:{width:"60%"},min:-10,max:10,step:1,value:a.value.h,"onUpdate:value":u[1]||(u[1]=f=>s({h:f}))},null,8,["value"])]),I("div",nyt,[u[7]||(u[7]=I("div",{style:{width:"40%"}},"垂直阴影:",-1)),U(Xo,{style:{width:"60%"},min:-10,max:10,step:1,value:a.value.v,"onUpdate:value":u[2]||(u[2]=f=>s({v:f}))},null,8,["value"])]),I("div",ryt,[u[8]||(u[8]=I("div",{style:{width:"40%"}},"模糊距离:",-1)),U(Xo,{style:{width:"60%"},min:1,max:20,step:1,value:a.value.blur,"onUpdate:value":u[3]||(u[3]=f=>s({blur:f}))},null,8,["value"])]),I("div",ayt,[u[9]||(u[9]=I("div",{style:{width:"40%"}},"阴影颜色:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:a.value.color,"onUpdate:modelValue":u[4]||(u[4]=f=>s({color:f}))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:a.value.color},null,8,["color"])]),_:1})])],64)):at("",!0)]))}}),EV=lt(iyt,[["__scopeId","data-v-c05b3547"]]),oyt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function syt(t,e){return V(),H("svg",oyt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M42 9H6m23 10H6m23 10H6m31-10l5 5l-5 5m5 10H6"},null,-1)]))}const lyt=vt({name:"icon-park-outline-indent-right",render:syt}),cyt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function uyt(t,e){return V(),H("svg",cyt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M6 9h36M19 19h23M19 29h23M11 19l-5 5l5 5M6 39h36"},null,-1)]))}const fyt=vt({name:"icon-park-outline-indent-left",render:uyt}),dyt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function hyt(t,e){return V(),H("svg",dyt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M9 4v9m3 0H6m6 14H6m0-7s3-3 5 0s-5 7-5 7m0 7.5s2-3 5-1s0 4.5 0 4.5s3 2.5 0 4.5s-5-1-5-1m5-3.5H9M9 4L6 6m15 18h22M21 38h22M21 10h22"},null,-1)]))}const zTe=vt({name:"icon-park-outline-ordered-list",render:hyt}),pyt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function vyt(t,e){return V(),H("svg",pyt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"m5 10l3 3l6-6M5 24l3 3l6-6M5 38l3 3l6-6m7-11h22M21 38h22M21 10h22"},null,-1)]))}const JTe=vt({name:"icon-park-outline-list",render:vyt}),gyt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function myt(t,e){return V(),H("svg",gyt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M42 19H6M42 9H6m36 20H6m36 10H6"},null,-1)]))}const jee=vt({name:"icon-park-outline-align-text-both",render:myt}),yyt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Ayt(t,e){return V(),H("svg",yyt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M42 9H6m36 10H14m28 10H6m36 10H14"},null,-1)]))}const FV=vt({name:"icon-park-outline-align-text-right",render:Ayt}),Ryt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function byt(t,e){return V(),H("svg",Ryt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M36 19H12M42 9H6m36 20H6m30 10H12"},null,-1)]))}const XV=vt({name:"icon-park-outline-align-text-center",render:byt}),xyt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Syt(t,e){return V(),H("svg",xyt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M42 9H6m28 10H6m36 10H6m28 10H6"},null,-1)]))}const DV=vt({name:"icon-park-outline-align-text-left",render:Syt}),Myt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function _yt(t,e){return V(),H("svg",Myt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"m26.24 16.373l-9.14-9.14c-2.661-2.661-7.035-2.603-9.768.131s-2.793 7.107-.131 9.769l7.935 7.935m17.767-2.065l7.935 7.935c2.661 2.662 2.603 7.035-.13 9.769c-2.735 2.734-7.108 2.792-9.77.13l-9.14-9.14"}),I("path",{d:"M26.11 26.142c2.733-2.734 2.792-7.108.13-9.769m-4.441 5.425c-2.734 2.734-2.792 7.108-.131 9.769"})],-1)]))}const wyt=vt({name:"icon-park-outline-link-one",render:_yt}),Lyt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Tyt(t,e){return V(),H("svg",Lyt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M34 5H6v15h28z"}),I("path",{"stroke-linecap":"round",d:"M34.025 12H43v16.101l-24 3.1V43"})],-1)]))}const jTe=vt({name:"icon-park-outline-format-brush",render:Tyt}),Oyt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Pyt(t,e){return V(),H("svg",Oyt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"4"},[I("path",{"stroke-linejoin":"round",d:"M8 24h32v18H8zM4 13h14V6h12v7h14v11H4z"}),I("path",{d:"M16 32v10"})],-1)]))}const qTe=vt({name:"icon-park-outline-format",render:Pyt}),Cyt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Nyt(t,e){return V(),H("svg",Cyt,e[0]||(e[0]=[I("path",{fill:"currentColor","fill-rule":"evenodd",d:"M18.853 9.116Q7.558 16.37 6.303 26.003C5 36 13.94 40.893 18.47 36.497s1.815-9.977-1.465-11.503s-5.286-.994-4.936-3.033s5.016-7.69 9.116-10.322a.75.75 0 0 0 .114-1.02L20.285 9.3c-.44-.572-.862-.55-1.432-.185m19.826.001q-11.295 7.254-12.55 16.887C24.825 36 33.765 40.893 38.295 36.497s1.815-9.977-1.466-11.503s-5.286-.994-4.936-3.033s5.017-7.69 9.117-10.322a.75.75 0 0 0 .113-1.02L40.11 9.3c-.44-.572-.862-.55-1.431-.185","clip-rule":"evenodd"},null,-1)]))}const Iyt=vt({name:"icon-park-outline-quote",render:Nyt}),kyt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Eyt(t,e){return V(),H("svg",kyt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"4"},[I("path",{"stroke-linejoin":"round",d:"M16 13L4 25.432L16 37m16-24l12 12.432L32 37"}),I("path",{d:"m28 4l-7 40"})],-1)]))}const Fyt=vt({name:"icon-park-outline-code",render:Eyt}),Xyt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Dyt(t,e){return V(),H("svg",Xyt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M5 24h38m-19 0c16 6 10 20 0 20s-12-8-12-8m24-24s-3-8-12-8s-12.564 7.6-8.39 14"}),I("path",{d:"M12 36s4 8 12 8s12.564-7.6 8.39-14"})],-1)]))}const VV=vt({name:"icon-park-outline-strikethrough",render:Dyt}),Vyt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Uyt(t,e){return V(),H("svg",Vyt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"4"},[I("path",{"stroke-linejoin":"round",d:"M8 44h32"}),I("path",{d:"M37 6.097V22c0 7.18-5.82 13-13 13s-13-5.82-13-13V6.097"})],-1)]))}const UV=vt({name:"icon-park-outline-text-underline",render:Uyt}),Wyt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Yyt(t,e){return V(),H("svg",Wyt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M20 6h16M12 42h16m1-36.048L19 42"},null,-1)]))}const WV=vt({name:"icon-park-outline-text-italic",render:Yyt}),Byt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Zyt(t,e){return V(),H("svg",Byt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M24 24c5.506 0 9.969-4.477 9.969-10S29.506 4 24 4H11v20zm4.031 20C33.537 44 38 39.523 38 34s-4.463-10-9.969-10H11v20z","clip-rule":"evenodd"},null,-1)]))}const YV=vt({name:"icon-park-outline-text-bold",render:Zyt}),Qyt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Kyt(t,e){return V(),H("svg",Qyt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M6 44V25h6v-8h24v8h6v19z"}),I("path",{"stroke-linecap":"round",d:"M17 17V8l14-4v13"})],-1)]))}const Z8=vt({name:"icon-park-outline-high-light",render:Kyt}),Hyt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Gyt(t,e){return V(),H("svg",Hyt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("rect",{width:"36",height:"36",x:"6",y:"6",rx:"3"}),I("path",{"stroke-linecap":"round",d:"M16 19v-3h16v3M22 34h4m-2-16v16"})],-1)]))}const BV=vt({name:"icon-park-outline-text",render:Gyt}),$yt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function zyt(t,e){return V(),H("svg",$yt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"4",d:"M4 8h28m-4 13h16M18 42V8m18 34V21"},null,-1)]))}const qee=vt({name:"icon-park-outline-add-text",render:zyt}),Q8=[{label:"默认字体",value:""},{label:"思源黑体",value:"SourceHanSans"},{label:"思源宋体",value:"SourceHanSerif"},{label:"文鼎PL楷体",value:"WenDingPLKaiTi"},{label:"文鼎PL宋体",value:"WenDingPLSongTi"},{label:"朱雀仿宋",value:"ZhuqueFangSong"},{label:"霞鹜文楷",value:"LXGWWenKai"},{label:"阿里巴巴普惠体",value:"AlibabaPuHuiTi"},{label:"MiSans",value:"MiSans"},{label:"得意黑",value:"DeYiHei"},{label:"仓耳小丸子",value:"CangerXiaowanzi"},{label:"优设标题黑",value:"YousheTitleBlack"},{label:"峰广明锐体",value:"FengguangMingrui"},{label:"摄图摩登小方体",value:"ShetuModernSquare"},{label:"站酷快乐体",value:"ZcoolHappy"},{label:"字制区喜脉体",value:"ZizhiQuXiMai"},{label:"素材集市康康体",value:"SucaiJishiKangkang"},{label:"素材集市酷方体",value:"SucaiJishiCoolSquare"},{label:"途牛类圆体",value:"TuniuRounded"},{label:"锐字真言体",value:"RuiziZhenyan"},{label:"Source Serif 4",value:"SourceSerif4"},{label:"JetBrains Mono",value:"JetBrainsMono"},{label:"Literata",value:"Literata"},{label:"Inter",value:"Inter"},{label:"Roboto",value:"Roboto"},{label:"Open Sans",value:"OpenSans"},{label:"Montserrat",value:"Montserrat"},{label:"Source Sans Pro",value:"SourceSansPro"},{label:"Merriweather",value:"Merriweather"}],Jyt=()=>{const t=Wt(),{richTextAttrs:e,textFormatPainter:n}=nt(t);return{toggleTextFormatPainter:(a=!1)=>{n.value?t.setTextFormatPainter(null):t.setTextFormatPainter({keep:a,bold:e.value.bold,em:e.value.em,underline:e.value.underline,strikethrough:e.value.strikethrough,color:e.value.color,backcolor:e.value.backcolor,fontname:e.value.fontname,fontsize:e.value.fontsize,align:e.value.align})}}},jyt={class:"text-color-block"},qyt=tt({__name:"TextColorButton",props:{color:{}},setup(t){return(e,n)=>(V(),Ue(Mt,{class:"text-color-btn"},{default:pe(()=>[Hr(e.$slots,"default",{},void 0,!0),I("div",jyt,[I("div",{class:"text-color-block-content",style:We({backgroundColor:e.color})},null,4)])]),_:3}))}}),SS=lt(qyt,[["__scopeId","data-v-79358407"]]),ri=tt({__name:"CheckboxButton",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(t){return(e,n)=>(V(),Ue(Mt,{checked:e.checked,disabled:e.disabled,type:"checkbox"},{default:pe(()=>[Hr(e.$slots,"default")]),_:3},8,["checked","disabled"]))}}),eAt=tt({__name:"ButtonGroup",props:{passive:{type:Boolean,default:!1}},setup(t){return(e,n)=>(V(),H("div",{class:mt(["button-group",{passive:e.passive}]),ref:"groupRef"},[Hr(e.$slots,"default",{},void 0,!0)],2))}}),Br=lt(eAt,[["__scopeId","data-v-22d6e97c"]]),tAt={},nAt={class:"select-group"};function rAt(t,e){return V(),H("div",nAt,[Hr(t.$slots,"default",{},void 0,!0)])}const ete=lt(tAt,[["render",rAt],["__scopeId","data-v-6a2eb73a"]]),Nr=tt({__name:"RadioButton",props:{value:{},disabled:{type:Boolean,default:!1}},setup(t){const{value:e,updateValue:n}=kf(m5e);return(r,a)=>(V(),Ue(Mt,{checked:!r.disabled&&te(e)===r.value,disabled:r.disabled,type:"radio",onClick:a[0]||(a[0]=i=>!r.disabled&&te(n)(r.value))},{default:pe(()=>[Hr(r.$slots,"default")]),_:3},8,["checked","disabled"]))}}),Yf=tt({__name:"RadioGroup",props:{value:{},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(t,{emit:e}){const n=t,r=e,a=o=>{n.disabled||r("update:value",o)},i=Fe(()=>n.value);return yy(m5e,{value:i,updateValue:a}),(o,s)=>(V(),Ue(Br,{class:"radio-group"},{default:pe(()=>[Hr(o.$slots,"default")]),_:3}))}}),aAt={class:"rich-text-base"},iAt={class:"link-popover"},oAt={class:"btns"},sAt={class:"row",passive:""},lAt={class:"list-wrap"},cAt=["onClick"],uAt={class:"list-wrap"},fAt=["onClick"],dAt={class:"row"},hAt=tt({__name:"RichTextBase",setup(t){const{richTextAttrs:e,textFormatPainter:n}=nt(Wt()),{toggleTextFormatPainter:r}=Jyt(),a=["12px","14px","16px","18px","20px","22px","24px","28px","32px","36px","40px","44px","48px","54px","60px","66px","72px","76px","80px","88px","96px","104px","112px","120px"],i=(y,m)=>{zi.emit(Ni.RICH_TEXT_COMMAND,{action:{command:y,value:m}})},o=we(!1),s=we(!1),l=we(!1),c=we(!1),u=we(["disc","circle","square"]),f=we(["decimal","lower-roman","upper-roman","lower-alpha","upper-alpha","lower-greek"]),d=we(""),h=we(!1);qt(e,()=>h.value=!1);const p=()=>{d.value=e.value.link},v=y=>{if(!y||!/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/.test(y))return Dn.error("涓嶆槸姝g‘鐨勭綉椤甸摼鎺ュ湴鍧€");i("link",y),h.value=!1},g=()=>{i("link"),h.value=!1};return(y,m)=>{const R=BS,A=qee,x=BV,M=Z8,S=YV,w=WV,_=UV,T=VV,O=Fyt,N=Iyt,P=qTe,C=jTe,E=wyt,F=DV,Y=XV,Q=FV,K=jee,ne=JTe,Z=Tu,$=zTe,G=fyt,ee=lyt,ce=pr("tooltip");return V(),H("div",aAt,[U(ete,{class:"row"},{default:pe(()=>[U(La,{style:{width:"60%"},value:te(e).fontname,search:"",searchLabel:"鎼滅储瀛椾綋",autofocus:"","onUpdate:value":m[0]||(m[0]=B=>i("fontname",B)),options:te(Q8)},{icon:pe(()=>[U(R)]),_:1},8,["value","options"]),U(La,{style:{width:"40%"},value:te(e).fontsize,search:"",searchLabel:"鎼滅储瀛楀彿",autofocus:"","onUpdate:value":m[1]||(m[1]=B=>i("fontsize",B)),options:a.map(B=>({label:B,value:B}))},{icon:pe(()=>[U(A)]),_:1},8,["value","options"])]),_:1}),U(Br,{class:"row",passive:""},{default:pe(()=>[U(sn,{trigger:"click",style:{width:"30%"}},{content:pe(()=>[U(Ir,{modelValue:te(e).color,"onUpdate:modelValue":m[2]||(m[2]=B=>i("color",B))},null,8,["modelValue"])]),default:pe(()=>[yt((V(),Ue(SS,{first:"",color:te(e).color},{default:pe(()=>[U(x)]),_:1},8,["color"])),[[ce,"鏂囧瓧棰滆壊"]])]),_:1}),U(sn,{trigger:"click",style:{width:"30%"}},{content:pe(()=>[U(Ir,{modelValue:te(e).backcolor,"onUpdate:modelValue":m[3]||(m[3]=B=>i("backcolor",B))},null,8,["modelValue"])]),default:pe(()=>[yt((V(),Ue(SS,{color:te(e).backcolor},{default:pe(()=>[U(M)]),_:1},8,["color"])),[[ce,"鏂囧瓧楂樹寒"]])]),_:1}),yt((V(),Ue(Mt,{class:"font-size-btn",style:{width:"20%"},onClick:m[4]||(m[4]=B=>i("fontsize-add"))},{default:pe(()=>[U(R),m[33]||(m[33]=rt("+"))]),_:1,__:[33]})),[[ce,"澧炲ぇ瀛楀彿"]]),yt((V(),Ue(Mt,{last:"",class:"font-size-btn",style:{width:"20%"},onClick:m[5]||(m[5]=B=>i("fontsize-reduce"))},{default:pe(()=>[U(R),m[34]||(m[34]=rt("-"))]),_:1,__:[34]})),[[ce,"鍑忓皬瀛楀彿"]])]),_:1}),U(Br,{class:"row"},{default:pe(()=>[yt((V(),Ue(ri,{style:{flex:"1"},checked:te(e).bold,onClick:m[6]||(m[6]=B=>i("bold"))},{default:pe(()=>[U(S)]),_:1},8,["checked"])),[[ce,"鍔犵矖"]]),yt((V(),Ue(ri,{style:{flex:"1"},checked:te(e).em,onClick:m[7]||(m[7]=B=>i("em"))},{default:pe(()=>[U(w)]),_:1},8,["checked"])),[[ce,"鏂滀綋"]]),yt((V(),Ue(ri,{style:{flex:"1"},checked:te(e).underline,onClick:m[8]||(m[8]=B=>i("underline"))},{default:pe(()=>[U(_)]),_:1},8,["checked"])),[[ce,"涓嬪垝绾?"]]),yt((V(),Ue(ri,{style:{flex:"1"},checked:te(e).strikethrough,onClick:m[9]||(m[9]=B=>i("strikethrough"))},{default:pe(()=>[U(T)]),_:1},8,["checked"])),[[ce,"鍒犻櫎绾?"]])]),_:1}),U(Br,{class:"row"},{default:pe(()=>[yt((V(),Ue(ri,{style:{flex:"1"},checked:te(e).superscript,onClick:m[10]||(m[10]=B=>i("superscript"))},{default:pe(()=>m[35]||(m[35]=[rt("A²")])),_:1,__:[35]},8,["checked"])),[[ce,"上标"]]),yt((V(),Ue(ri,{style:{flex:"1"},checked:te(e).subscript,onClick:m[11]||(m[11]=B=>i("subscript"))},{default:pe(()=>m[36]||(m[36]=[rt("A₂")])),_:1,__:[36]},8,["checked"])),[[ce,"下标"]]),yt((V(),Ue(ri,{style:{flex:"1"},checked:te(e).code,onClick:m[12]||(m[12]=B=>i("code"))},{default:pe(()=>[U(O)]),_:1},8,["checked"])),[[ce,"琛屽唴浠g爜"]]),yt((V(),Ue(ri,{style:{flex:"1"},checked:te(e).blockquote,onClick:m[13]||(m[13]=B=>i("blockquote"))},{default:pe(()=>[U(N)]),_:1},8,["checked"])),[[ce,"寮曠敤"]])]),_:1}),U(Br,{class:"row",passive:""},{default:pe(()=>[yt((V(),Ue(ri,{first:"",style:{flex:"1"},onClick:m[14]||(m[14]=B=>i("clear"))},{default:pe(()=>[U(P)]),_:1})),[[ce,"清除格式"]]),yt((V(),Ue(ri,{style:{flex:"1"},checked:!!te(n),onClick:m[15]||(m[15]=B=>te(r)()),onDblclick:m[16]||(m[16]=B=>te(r)(!0))},{default:pe(()=>[U(C)]),_:1},8,["checked"])),[[ce,"格式刷(双击连续使用)"]]),U(sn,{placement:"bottom-end",trigger:"click",value:h.value,"onUpdate:value":m[21]||(m[21]=B=>h.value=B),style:{width:"25%"}},{content:pe(()=>[I("div",iAt,[U(A0,{value:d.value,"onUpdate:value":m[17]||(m[17]=B=>d.value=B),placeholder:"请输入超链接"},null,8,["value"]),I("div",oAt,[U(Mt,{size:"small",disabled:!te(e).link,onClick:m[18]||(m[18]=B=>g()),style:{"margin-right":"5px"}},{default:pe(()=>m[37]||(m[37]=[rt("移除")])),_:1,__:[37]},8,["disabled"]),U(Mt,{size:"small",type:"primary",onClick:m[19]||(m[19]=B=>v(d.value))},{default:pe(()=>m[38]||(m[38]=[rt("确认")])),_:1,__:[38]})])])]),default:pe(()=>[yt((V(),Ue(ri,{last:"",style:{width:"100%"},checked:!!te(e).link,onClick:m[20]||(m[20]=B=>p())},{default:pe(()=>[U(E)]),_:1},8,["checked"])),[[ce,"超链接"]])]),_:1},8,["value"])]),_:1}),U(hn),U(Yf,{class:"row","button-style":"solid",value:te(e).align,"onUpdate:value":m[22]||(m[22]=B=>i("align",B))},{default:pe(()=>[yt((V(),Ue(Nr,{value:"left",style:{flex:"1"}},{default:pe(()=>[U(F)]),_:1})),[[ce,"宸﹀榻?"]]),yt((V(),Ue(Nr,{value:"center",style:{flex:"1"}},{default:pe(()=>[U(Y)]),_:1})),[[ce,"灞呬腑"]]),yt((V(),Ue(Nr,{value:"right",style:{flex:"1"}},{default:pe(()=>[U(Q)]),_:1})),[[ce,"鍙冲榻?"]]),yt((V(),Ue(Nr,{value:"justify",style:{flex:"1"}},{default:pe(()=>[U(K)]),_:1})),[[ce,"涓ょ瀵归綈"]])]),_:1},8,["value"]),I("div",sAt,[U(Br,{style:{flex:"1"}},{default:pe(()=>[yt((V(),Ue(Mt,{first:"",type:te(e).bulletList?"primary":"default",style:{flex:"1"},onClick:m[23]||(m[23]=B=>i("bulletList"))},{default:pe(()=>[U(ne)]),_:1},8,["type"])),[[ce,"椤圭洰绗﹀彿"]]),U(sn,{trigger:"click",value:o.value,"onUpdate:value":m[24]||(m[24]=B=>o.value=B)},{content:pe(()=>[I("div",lAt,[(V(!0),H(qe,null,bt(u.value,B=>(V(),H("ul",{class:"list",key:B,style:We({listStyleType:B}),onClick:xe=>i("bulletList",B)},[(V(),H(qe,null,bt(3,xe=>I("li",{class:"list-item",key:xe},m[39]||(m[39]=[I("span",null,null,-1)]))),64))],12,cAt))),128))])]),default:pe(()=>[U(Mt,{last:"",class:"popover-btn"},{default:pe(()=>[U(Z)]),_:1})]),_:1},8,["value"])]),_:1}),m[41]||(m[41]=I("div",{style:{width:"10px"}},null,-1)),U(Br,{style:{flex:"1"},passive:""},{default:pe(()=>[yt((V(),Ue(Mt,{first:"",type:te(e).orderedList?"primary":"default",style:{flex:"1"},onClick:m[25]||(m[25]=B=>i("orderedList"))},{default:pe(()=>[U($)]),_:1},8,["type"])),[[ce,"缂栧彿"]]),U(sn,{trigger:"click",value:s.value,"onUpdate:value":m[26]||(m[26]=B=>s.value=B)},{content:pe(()=>[I("div",uAt,[(V(!0),H(qe,null,bt(f.value,B=>(V(),H("ul",{class:"list",key:B,style:We({listStyleType:B}),onClick:xe=>i("orderedList",B)},[(V(),H(qe,null,bt(3,xe=>I("li",{class:"list-item",key:xe},m[40]||(m[40]=[I("span",null,null,-1)]))),64))],12,fAt))),128))])]),default:pe(()=>[U(Mt,{last:"",class:"popover-btn"},{default:pe(()=>[U(Z)]),_:1})]),_:1},8,["value"])]),_:1})]),I("div",dAt,[U(Br,{style:{flex:"1"},passive:""},{default:pe(()=>[yt((V(),Ue(Mt,{first:"",style:{flex:"1"},onClick:m[27]||(m[27]=B=>i("indent","-1"))},{default:pe(()=>[U(G)]),_:1})),[[ce,"鍑忓皬娈佃惤缂╄繘"]]),U(sn,{trigger:"click",value:l.value,"onUpdate:value":m[29]||(m[29]=B=>l.value=B)},{content:pe(()=>[U(ti,{center:"",onClick:m[28]||(m[28]=B=>i("textIndent","-1"))},{default:pe(()=>m[42]||(m[42]=[rt("鍑忓皬棣栬缂╄繘")])),_:1,__:[42]})]),default:pe(()=>[U(Mt,{last:"",class:"popover-btn"},{default:pe(()=>[U(Z)]),_:1})]),_:1},8,["value"])]),_:1}),m[44]||(m[44]=I("div",{style:{width:"10px"}},null,-1)),U(Br,{style:{flex:"1"},passive:""},{default:pe(()=>[yt((V(),Ue(Mt,{first:"",style:{flex:"1"},onClick:m[30]||(m[30]=B=>i("indent","+1"))},{default:pe(()=>[U(ee)]),_:1})),[[ce,"澧炲ぇ娈佃惤缂╄繘"]]),U(sn,{trigger:"click",value:c.value,"onUpdate:value":m[32]||(m[32]=B=>c.value=B)},{content:pe(()=>[U(ti,{center:"",onClick:m[31]||(m[31]=B=>i("textIndent","+1"))},{default:pe(()=>m[43]||(m[43]=[rt("澧炲ぇ棣栬缂╄繘")])),_:1,__:[43]})]),default:pe(()=>[U(Mt,{last:"",class:"popover-btn"},{default:pe(()=>[U(Z)]),_:1})]),_:1},8,["value"])]),_:1})])])}}}),eOe=lt(hAt,[["__scopeId","data-v-9a8d2556"]]),pAt={class:"text-style-panel"},vAt={class:"preset-style"},gAt=["onClick"],mAt={class:"row"},yAt={class:"row"},AAt={class:"row"},RAt={class:"row"},bAt=tt({__name:"TextStylePanel",setup(t){const e=[{label:"大标题",style:{fontSize:"26px",fontWeight:700},cmd:[{command:"clear"},{command:"bold"},{command:"fontsize",value:"66px"},{command:"align",value:"center"}]},{label:"小标题",style:{fontSize:"22px",fontWeight:700},cmd:[{command:"clear"},{command:"bold"},{command:"fontsize",value:"40px"},{command:"align",value:"center"}]},{label:"正文",style:{fontSize:"20px"},cmd:[{command:"clear"},{command:"fontsize",value:"20px"}]},{label:"正文[小]",style:{fontSize:"18px"},cmd:[{command:"clear"},{command:"fontsize",value:"18px"}]},{label:"注释 1",style:{fontSize:"16px",fontStyle:"italic"},cmd:[{command:"clear"},{command:"fontsize",value:"16px"},{command:"em"}]},{label:"注释 2",style:{fontSize:"16px",textDecoration:"underline"},cmd:[{command:"clear"},{command:"fontsize",value:"16px"},{command:"underline"}]}],n=Wt(),r=It(),{handleElement:a,handleElementId:i}=nt(n),{addHistorySnapshot:o}=Pn(),s=g=>{r.updateElement({id:i.value,props:g}),o()},l=we("#000"),c=we(),u=we(),f=we();qt(a,()=>{!a.value||a.value.type!=="text"||(l.value=a.value.fill||"#fff",c.value=a.value.lineHeight||1.5,u.value=a.value.wordSpace||0,f.value=a.value.paragraphSpace===void 0?5:a.value.paragraphSpace,zi.emit(Ni.SYNC_RICH_TEXT_ATTRS_TO_STORE))},{deep:!0,immediate:!0});const d=[.9,1,1.15,1.2,1.4,1.5,1.8,2,2.5,3],h=[0,1,2,3,4,5,6,8,10],p=[0,5,10,15,20,25,30,40,50,80],v=g=>{zi.emit(Ni.RICH_TEXT_COMMAND,{action:g})};return(g,y)=>{const m=XTe,R=FTe,A=ETe;return V(),H("div",pAt,[I("div",vAt,[(V(),H(qe,null,bt(e,x=>I("div",{class:"preset-style-item",key:x.label,style:We(x.style),onClick:M=>v(x.cmd)},Vt(x.label),13,gAt)),64))]),U(hn),U(eOe),U(hn),I("div",mAt,[y[4]||(y[4]=I("div",{style:{width:"40%"}},"行间距:",-1)),U(La,{style:{width:"60%"},value:c.value||1,"onUpdate:value":y[0]||(y[0]=x=>s({lineHeight:x})),options:d.map(x=>({label:x+"倍",value:x}))},{icon:pe(()=>[U(m)]),_:1},8,["value","options"])]),I("div",yAt,[y[5]||(y[5]=I("div",{style:{width:"40%"}},"段间距:",-1)),U(La,{style:{width:"60%"},value:f.value||0,"onUpdate:value":y[1]||(y[1]=x=>s({paragraphSpace:x})),options:p.map(x=>({label:x+"px",value:x}))},{icon:pe(()=>[U(R)]),_:1},8,["value","options"])]),I("div",AAt,[y[6]||(y[6]=I("div",{style:{width:"40%"}},"字间距:",-1)),U(La,{style:{width:"60%"},value:u.value||0,"onUpdate:value":y[2]||(y[2]=x=>s({wordSpace:x})),options:h.map(x=>({label:x+"px",value:x}))},{icon:pe(()=>[U(A)]),_:1},8,["value","options"])]),I("div",RAt,[y[7]||(y[7]=I("div",{style:{width:"40%"}},"文本框填充:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:l.value,"onUpdate:modelValue":y[3]||(y[3]=x=>s({fill:x}))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:l.value},null,8,["color"])]),_:1})]),U(hn),U(B8),U(hn),U(EV),U(hn),U(UTe)])}}}),xAt=lt(bAt,[["__scopeId","data-v-898460d3"]]),SAt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function MAt(t,e){return V(),H("svg",SAt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4",d:"M18 6a6 6 0 0 0 12 0h5.455L42 15.818l-5.727 4.91V42H11.727V20.727L6 15.818L12.546 6z"},null,-1)]))}const _At=vt({name:"icon-park-outline-theme",render:MAt}),wAt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function LAt(t,e){return V(),H("svg",wAt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M11.272 36.728A17.94 17.94 0 0 0 24 42c9.941 0 18-8.059 18-18S33.941 6 24 6c-4.97 0-9.47 2.015-12.728 5.272C9.614 12.93 6 17 6 17"}),I("path",{d:"M6 9v8h8"})],-1)]))}const tOe=vt({name:"icon-park-outline-undo",render:LAt}),TAt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function OAt(t,e){return V(),H("svg",TAt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[I("circle",{cx:"13.715",cy:"13.714",r:"6.857"}),I("circle",{cx:"34.286",cy:"34.285",r:"6.857"}),I("path",{d:"M24.001 44c-11.046 0-20-8.954-20-20l6.667 3.333M24.001 4c11.046 0 20 8.954 20 20l-6.667-3.333"})],-1)]))}const PAt=vt({name:"icon-park-outline-transform",render:OAt}),CAt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function NAt(t,e){return V(),H("svg",CAt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"4"},[I("path",{"stroke-linejoin":"round",d:"M12 4v32h32"}),I("path",{"stroke-linejoin":"round",d:"M20 12h16v16"}),I("path",{d:"M12 12H4m32 32v-8"})],-1)]))}const IAt=vt({name:"icon-park-outline-tailoring",render:NAt}),kAt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function EAt(t,e){return V(),H("svg",kAt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{"stroke-linecap":"round",d:"M24 6v36"}),I("path",{d:"m4 34l12-22v22zm40 0H32V12z"})],-1)]))}const FAt=vt({name:"icon-park-outline-flip-horizontally",render:EAt}),XAt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function DAt(t,e){return V(),H("svg",XAt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{"stroke-linecap":"round",d:"M42 24H6"}),I("path",{d:"m14 4l22 12H14zm0 40V32h22z"})],-1)]))}const VAt=vt({name:"icon-park-outline-flip-vertically",render:DAt}),UAt={class:"element-flip"},WAt=tt({__name:"ElementFlip",setup(t){const e=It(),{handleElement:n}=nt(Wt()),r=we(!1),a=we(!1);qt(n,()=>{n.value&&(n.value.type==="image"||n.value.type==="shape")&&(r.value=!!n.value.flipH,a.value=!!n.value.flipV)},{deep:!0,immediate:!0});const{addHistorySnapshot:i}=Pn(),o=s=>{n.value&&(e.updateElement({id:n.value.id,props:s}),i())};return(s,l)=>{const c=VAt,u=FAt;return V(),H("div",UAt,[U(Br,{class:"row"},{default:pe(()=>[U(ri,{style:{flex:"1"},checked:a.value,onClick:l[0]||(l[0]=f=>o({flipV:!a.value}))},{default:pe(()=>[U(c),l[2]||(l[2]=rt(" 垂直翻转"))]),_:1,__:[2]},8,["checked"]),U(ri,{style:{flex:"1"},checked:r.value,onClick:l[1]||(l[1]=f=>o({flipH:!r.value}))},{default:pe(()=>[U(u),l[3]||(l[3]=rt(" 水平翻转"))]),_:1,__:[3]},8,["checked"])]),_:1})])}}}),nOe=lt(WAt,[["__scopeId","data-v-4a4273cd"]]),YAt={class:"element-filter"},BAt={class:"row"},ZAt={class:"switch-wrapper",style:{flex:"3"}},QAt={class:"presets"},KAt=["onClick"],HAt=["src"],GAt={class:"preset-label"},$At={class:"filter"},zAt={class:"name"},JAt=tt({__name:"ElementFilter",setup(t){const e=[{label:"模糊",key:"blur",default:0,value:0,unit:"px",max:10,step:1},{label:"亮度",key:"brightness",default:100,value:100,unit:"%",max:200,step:5},{label:"对比度",key:"contrast",default:100,value:100,unit:"%",max:200,step:5},{label:"灰度",key:"grayscale",default:0,value:0,unit:"%",max:100,step:5},{label:"饱和度",key:"saturate",default:100,value:100,unit:"%",max:200,step:5},{label:"色相",key:"hue-rotate",default:0,value:0,unit:"deg",max:360,step:10},{label:"褐色",key:"sepia",default:0,value:0,unit:"%",max:100,step:5},{label:"反转",key:"invert",default:0,value:0,unit:"%",max:100,step:5},{label:"不透明度",key:"opacity",default:100,value:100,unit:"%",max:100,step:5}],n=[{label:"黑白",values:{grayscale:"100%"}},{label:"复古",values:{sepia:"50%",contrast:"110%",brightness:"90%"}},{label:"锐化",values:{contrast:"150%"}},{label:"柔和",values:{brightness:"110%",contrast:"90%"}},{label:"暖色",values:{sepia:"30%",saturate:"135%"}},{label:"明亮",values:{brightness:"110%",contrast:"110%"}},{label:"鲜艳",values:{saturate:"200%"}},{label:"模糊",values:{blur:"2px"}},{label:"反转",values:{invert:"100%"}}],r=It(),{handleElement:a,handleElementId:i}=nt(Wt()),o=a,s=we(JSON.parse(JSON.stringify(e))),l=we(!1),{addHistorySnapshot:c}=Pn();qt(a,()=>{if(!a.value||a.value.type!=="image")return;const p=a.value.filters;p?(s.value=e.map(v=>{const g=p[v.key];return g?{...v,value:parseInt(g)}:v}),l.value=!0):(s.value=JSON.parse(JSON.stringify(e)),l.value=!1)},{deep:!0,immediate:!0});const u=p=>{let v="";const g=Object.keys(p);for(const y of g)v+=`${y}(${p[y]}) `;return v},f=(p,v)=>{const m={...a.value.filters||{},[p.key]:`${v}${p.unit}`};r.updateElement({id:i.value,props:{filters:m}}),c()},d=p=>{a.value&&(p?r.updateElement({id:a.value.id,props:{filters:{}}}):r.removeElementProps({id:a.value.id,propName:"filters"}),c())},h=p=>{r.updateElement({id:i.value,props:{filters:p}}),c()};return(p,v)=>(V(),H("div",YAt,[I("div",BAt,[v[1]||(v[1]=I("div",{style:{flex:"2"}},"启用滤镜:",-1)),I("div",ZAt,[U(_u,{value:l.value,"onUpdate:value":v[0]||(v[0]=g=>d(g))},null,8,["value"])])]),l.value?(V(),H(qe,{key:0},[I("div",QAt,[(V(),H(qe,null,bt(n,(g,y)=>I("div",{class:"preset-item",key:y,onClick:m=>h(g.values)},[I("img",{src:te(o).src,alt:"",style:We({filter:u(g.values)})},null,12,HAt),I("span",GAt,Vt(g.label),1)],8,KAt)),64))]),I("div",$At,[(V(!0),H(qe,null,bt(s.value,g=>(V(),H("div",{class:"filter-item",key:g.key},[I("div",zAt,Vt(g.label),1),U(Xo,{class:"filter-slider",max:g.max,min:0,step:g.step,value:g.value,"onUpdate:value":y=>f(g,y)},null,8,["max","step","value","onUpdate:value"])]))),128))])],64)):at("",!0)]))}}),jAt=lt(JAt,[["__scopeId","data-v-0742dbd7"]]),qAt={class:"element-color-mask"},eRt={class:"row"},tRt={class:"switch-wrapper",style:{width:"60%"}},nRt={key:0,class:"row",style:{"margin-top":"15px"}},rRt=tt({__name:"ElementColorMask",setup(t){const e=It(),{handleElement:n,handleElementId:r}=nt(Wt()),{theme:a}=nt(e),{addHistorySnapshot:i}=Pn(),o=Fe(()=>{const f=a.value.themeColors[0];return Ct(f).setAlpha(.5).toRgbString()}),s=we(""),l=we(!1);qt(n,()=>{!n.value||n.value.type!=="image"||(n.value.colorMask?(s.value=n.value.colorMask,l.value=!0):l.value=!1)},{deep:!0,immediate:!0});const c=f=>{n.value&&(f?e.updateElement({id:n.value.id,props:{colorMask:o.value}}):e.removeElementProps({id:n.value.id,propName:"colorMask"}),i())},u=f=>{e.updateElement({id:r.value,props:{colorMask:f}}),i()};return(f,d)=>(V(),H("div",qAt,[I("div",eRt,[d[2]||(d[2]=I("div",{style:{width:"40%"}},"着色(蒙版):",-1)),I("div",tRt,[U(_u,{value:l.value,"onUpdate:value":d[0]||(d[0]=h=>c(h))},null,8,["value"])])]),l.value?(V(),H("div",nRt,[d[3]||(d[3]=I("div",{style:{width:"40%"}},"蒙版颜色:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=h=>u(h))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:s.value},null,8,["color"])]),_:1})])):at("",!0)]))}}),aRt=lt(rRt,[["__scopeId","data-v-2b1110c3"]]),iRt={class:"image-style-panel"},oRt={class:"clip"},sRt={class:"shape-clip"},lRt=["onClick"],cRt={key:0,class:"title"},uRt={class:"row"},fRt=tt({__name:"ImageStylePanel",setup(t){const e=C$,n=[{label:"纵横比(正方形)",children:[{key:"1:1",ratio:1/1}]},{label:"纵横比(纵向)",children:[{key:"2:3",ratio:3/2},{key:"3:4",ratio:4/3},{key:"3:5",ratio:5/3},{key:"4:5",ratio:5/4}]},{label:"纵横比(横向)",children:[{key:"3:2",ratio:2/3},{key:"4:3",ratio:3/4},{key:"5:3",ratio:3/5},{key:"5:4",ratio:4/5}]},{children:[{key:"16:9",ratio:9/16},{key:"16:10",ratio:10/16}]}],r=Wt(),a=It(),{handleElement:i,handleElementId:o}=nt(r),{currentSlide:s}=nt(a),l=i,c=we(!1),{addHistorySnapshot:u}=Pn(),f=()=>{r.setClipingImageElementId(o.value),c.value=!1},d=()=>{const m=i.value,R=m.width,A=m.height,x=m.left,M=m.top,S=m.clip?m.clip.range:[[0,0],[100,100]],w=R/((S[1][0]-S[0][0])/100),_=A/((S[1][1]-S[0][1])/100),T=x-w*(S[0][0]/100),O=M-_*(S[0][1]/100);return{originClipRange:S,originWidth:w,originHeight:_,originLeft:T,originTop:O}},h=m=>{i.value&&(a.updateElement({id:o.value,props:m}),u())},p=(m,R=0)=>{const A=i.value,{originClipRange:x,originWidth:M,originHeight:S,originLeft:w,originTop:_}=d();if(R){const T=S/M,O=0,N=100;let P;if(T>R){const C=(1-R/T)/2*100;P=[[O,C],[N,N-C]]}else{const C=(1-T/R)/2*100;P=[[C,O],[N-C,N]]}h({clip:{...A.clip,shape:m,range:P},left:w+M*(P[0][0]/100),top:_+S*(P[0][1]/100),width:M*(P[1][0]-P[0][0])/100,height:S*(P[1][1]-P[0][1])/100})}else{const T={...A.clip,shape:m,range:x};let O={clip:T};m==="rect"&&(O={clip:T,radius:0}),h(O)}f()},v=m=>{const R=m[0];R&&ag(R).then(A=>{const x=l.value.width,M=l.value.height,S=l.value.left,w=l.value.top,_=S+x/2,T=w+M/2;V4e(A).then(({width:O,height:N})=>{const P=M,C=O*(M/N),E=_-C/2,F=T-P/2;a.removeElementProps({id:o.value,propName:"clip"}),h({src:A,width:C,height:P,left:E,top:F})})})},g=()=>{if(i.value.clip){const{originWidth:R,originHeight:A,originLeft:x,originTop:M}=d();h({left:x,top:M,width:R,height:A})}a.removeElementProps({id:o.value,propName:["clip","outline","flip","shadow","filters","colorMask","radius"]}),u()},y=()=>{const m=i.value,R={...s.value.background,type:"image",image:{src:m.src,size:"cover"}};a.updateSlide({background:R}),u()};return(m,R)=>{const A=IAt,x=Tu,M=PAt,S=tOe,w=_At;return V(),H("div",iRt,[I("div",{class:"origin-image",style:We({backgroundImage:`url(${te(l).src})`})},null,4),U(nOe),U(Br,{class:"row",passive:""},{default:pe(()=>[U(Mt,{first:"",style:{width:"calc(100% / 6 * 5)"},onClick:R[0]||(R[0]=_=>f())},{default:pe(()=>[U(A),R[6]||(R[6]=rt(" 裁剪图片"))]),_:1,__:[6]}),U(sn,{trigger:"click",value:c.value,"onUpdate:value":R[1]||(R[1]=_=>c.value=_),style:{width:"calc(100% / 6)"}},{content:pe(()=>[I("div",oRt,[R[7]||(R[7]=I("div",{class:"title"},"按形状:",-1)),I("div",sRt,[(V(!0),H(qe,null,bt(te(e),(_,T)=>(V(),H("div",{class:"shape-clip-item",key:T,onClick:O=>p(T)},[I("div",{class:"shape",style:We({clipPath:_.style})},null,4)],8,lRt))),128))]),(V(),H(qe,null,bt(n,_=>(V(),H(qe,{key:_.label},[_.label?(V(),H("div",cRt,"按"+Vt(_.label)+":",1)):at("",!0),U(Br,{class:"row"},{default:pe(()=>[(V(!0),H(qe,null,bt(_.children,T=>(V(),Ue(Mt,{style:{flex:"1"},key:T.key,onClick:O=>p("rect",T.ratio)},{default:pe(()=>[rt(Vt(T.key),1)]),_:2},1032,["onClick"]))),128))]),_:2},1024)],64))),64))])]),default:pe(()=>[U(Mt,{last:"",class:"popover-btn",style:{width:"100%"}},{default:pe(()=>[U(x)]),_:1})]),_:1},8,["value"])]),_:1}),I("div",uRt,[R[8]||(R[8]=I("div",{style:{width:"40%"}},"圆角半径:",-1)),U(vl,{value:te(l).radius||0,"onUpdate:value":R[2]||(R[2]=_=>h({radius:_})),style:{width:"60%"}},null,8,["value"])]),U(hn),U(aRt),U(hn),U(jAt),U(hn),U(B8),U(hn),U(EV),U(hn),U(Df,{onChange:R[3]||(R[3]=_=>v(_))},{default:pe(()=>[U(Mt,{class:"full-width-btn"},{default:pe(()=>[U(M),R[9]||(R[9]=rt(" 替换图片"))]),_:1,__:[9]})]),_:1}),U(Mt,{class:"full-width-btn",onClick:R[4]||(R[4]=_=>g())},{default:pe(()=>[U(S),R[10]||(R[10]=rt(" 重置样式"))]),_:1,__:[10]}),U(Mt,{class:"full-width-btn",onClick:R[5]||(R[5]=_=>y())},{default:pe(()=>[U(w),R[11]||(R[11]=rt(" 设为背景"))]),_:1,__:[11]})])}}}),dRt=lt(fRt,[["__scopeId","data-v-d24a0e73"]]),hRt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function pRt(t,e){return V(),H("svg",hRt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("rect",{width:"36",height:"36",x:"6",y:"6",rx:"3"}),I("path",{"stroke-linecap":"round",d:"M34 27H14m13 7H14"})],-1)]))}const rOe=vt({name:"icon-park-outline-align-text-bottom-one",render:pRt}),vRt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function gRt(t,e){return V(),H("svg",vRt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("rect",{width:"36",height:"36",x:"6",y:"6",rx:"3"}),I("path",{"stroke-linecap":"round",d:"M34 20H14m12 7H14"})],-1)]))}const aOe=vt({name:"icon-park-outline-align-text-middle-one",render:gRt}),mRt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function yRt(t,e){return V(),H("svg",mRt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("rect",{width:"36",height:"36",x:"6",y:"6",rx:"3"}),I("path",{"stroke-linecap":"round",d:"M26 20H14m20-7H14"})],-1)]))}const iOe=vt({name:"icon-park-outline-align-text-top-one",render:yRt}),ARt=()=>{const t=Wt(),{shapeFormatPainter:e,handleElement:n}=nt(t);return{toggleShapeFormatPainter:(a=!1)=>{const i=n.value;e.value?t.setShapeFormatPainter(null):t.setShapeFormatPainter({keep:a,fill:i.fill,gradient:i.gradient,outline:i.outline,opacity:i.opacity,shadow:i.shadow})}}},RRt={class:"gradient-bar"},bRt=["onMousedown","onContextmenu"],xRt=tt({__name:"GradientBar",props:{value:{},index:{}},emits:["update:value","update:index"],setup(t,{emit:e}){const n=t,r=e,a=we([]),i=un("barRef");TS(()=>{a.value=n.value,n.index>n.value.length-1&&r("update:index",0)});const o=Fe(()=>`linear-gradient(to right, ${a.value.map(f=>`${f.color} ${f.pos}%`).join(",")})`),s=u=>{if(n.value.length<=2)return;let f=0;u===n.index?f=u-1<0?0:u-1:n.index===n.value.length-1&&(f=n.value.length-2);const d=n.value.filter((h,p)=>p!==u);r("update:index",f),r("update:value",d)},l=u=>{let f=!0;document.onmousemove=d=>{if(!f||!i.value)return;let h=Math.round((d.clientX-i.value.getBoundingClientRect().left)/i.value.clientWidth*100);h>100&&(h=100),h<0&&(h=0),a.value=a.value.map((p,v)=>v===u?{...p,pos:h}:p)},document.onmouseup=()=>{f=!1;const d=a.value[u],h=[...a.value];h.splice(u,1);let p=0;for(let v=0;v<h.length;v++)d.pos>h[v].pos&&(p=v+1);h.splice(p,0,d),r("update:index",p),r("update:value",h),document.onmousemove=null,document.onmouseup=null}},c=u=>{if(n.value.length>=6||!i.value)return;const f=Math.round((u.clientX-i.value.getBoundingClientRect().left)/i.value.clientWidth*100);let d=0;for(let v=0;v<n.value.length;v++)f>n.value[v].pos&&(d=v+1);const h=n.value[d-1]?n.value[d-1].color:n.value[d].color,p=[...n.value];p.splice(d,0,{pos:f,color:h}),r("update:index",d),r("update:value",p)};return(u,f)=>(V(),H("div",RRt,[I("div",{class:"bar",ref_key:"barRef",ref:i,style:We({backgroundImage:o.value}),onClick:f[0]||(f[0]=d=>c(d))},null,4),(V(!0),H(qe,null,bt(a.value,(d,h)=>(V(),H("div",{class:mt(["point",{active:u.index===h}]),key:d.pos+"-"+h,style:We({backgroundColor:d.color,left:`calc(${d.pos}% - 5px)`}),onMousedown:on(p=>l(h),["left"]),onContextmenu:on(p=>s(h),["right"])},null,46,bRt))),128))]))}}),oOe=lt(xRt,[["__scopeId","data-v-9590a0d2"]]),SRt={class:"shape-style-panel"},MRt={class:"title"},_Rt={class:"shape-pool"},wRt={class:"shape-list"},LRt={class:"row"},TRt={key:0,style:{width:"10px"}},ORt={class:"row"},PRt={class:"row"},CRt={key:0,class:"row"},NRt={key:1,class:"pattern-image-wrapper"},IRt={class:"pattern-image"},kRt={class:"row"},ERt={class:"row"},FRt={class:"row"},XRt={class:"row"},DRt=tt({__name:"ShapeStylePanel",setup(t){const e=Wt(),n=It(),{handleElement:r,handleElementId:a,shapeFormatPainter:i}=nt(e),o=r,s=we("#000"),l=we(""),c=we({type:"linear",rotate:0,colors:[{pos:0,color:"#fff"},{pos:100,color:"#fff"}]}),u=we("fill"),f=we("middle"),d=we(),h=we(),p=we(),v=we(0),g=[.9,1,1.15,1.2,1.4,1.5,1.8,2,2.5,3],y=[0,1,2,3,4,5,6,8,10],m=[0,5,10,15,20,25,30,40,50,80];qt(r,()=>{var C,E,F,Y,Q,K,ne,Z,$,G,ee;if(!r.value||r.value.type!=="shape")return;s.value=r.value.fill||"#fff";const P=[{pos:0,color:s.value},{pos:100,color:"#fff"}];c.value=r.value.gradient||{type:"linear",rotate:0,colors:P},l.value=r.value.pattern||"",u.value=r.value.pattern!==void 0?"pattern":r.value.gradient?"gradient":"fill",f.value=((E=(C=r.value)==null?void 0:C.text)==null?void 0:E.align)||"middle",d.value=((Y=(F=r.value)==null?void 0:F.text)==null?void 0:Y.lineHeight)||1.5,h.value=((K=(Q=r.value)==null?void 0:Q.text)==null?void 0:K.wordSpace)||0,p.value=((Z=(ne=r.value)==null?void 0:ne.text)==null?void 0:Z.paragraphSpace)===void 0?5:(G=($=r.value)==null?void 0:$.text)==null?void 0:G.paragraphSpace,(ee=r.value.text)!=null&&ee.content&&zi.emit(Ni.SYNC_RICH_TEXT_ATTRS_TO_STORE)},{deep:!0,immediate:!0}),qt(a,()=>{v.value=0});const{addHistorySnapshot:R}=Pn(),{toggleShapeFormatPainter:A}=ARt(),x=P=>{n.updateElement({id:a.value,props:P}),R()},M=P=>{P==="fill"?(n.removeElementProps({id:a.value,propName:["gradient","pattern"]}),R()):P==="gradient"?(v.value=0,n.removeElementProps({id:a.value,propName:"pattern"}),x({gradient:c.value})):P==="pattern"&&(n.removeElementProps({id:a.value,propName:"gradient"}),x({pattern:""}))},S=P=>{if(!c.value)return;const C={...c.value,...P};x({gradient:C})},w=P=>{const C=c.value.colors.map((E,F)=>F===v.value?{...E,color:P}:E);S({colors:C})},_=P=>{const C=P[0];C&&ag(C).then(E=>{l.value=E,x({pattern:E})})},T=P=>{x({fill:P})},O=P=>{const{width:C,height:E}=r.value,F={viewBox:P.viewBox,path:P.path,special:P.special};if(P.pathFormula){F.pathFormula=P.pathFormula,F.viewBox=[C,E];const Y=by[P.pathFormula];"editable"in Y?(F.path=Y.formula(C,E,Y.defaultValue),F.keypoints=Y.defaultValue):F.path=Y.formula(C,E)}else F.pathFormula=void 0,F.keypoints=void 0;x(F)},N=P=>{const C=r.value,E={content:"",defaultFontName:"",defaultColor:"#000",align:"middle"},F=C.text||E;x({text:{...F,...P}})};return(P,C)=>{var ce;const E=Tu,F=zf,Y=XTe,Q=FTe,K=ETe,ne=iOe,Z=aOe,$=rOe,G=jTe,ee=pr("tooltip");return V(),H("div",SRt,[I("div",MRt,[C[14]||(C[14]=I("span",null,"点击替换形状",-1)),U(E)]),I("div",_Rt,[(V(!0),H(qe,null,bt(te(Tj),B=>(V(),H("div",{class:"category",key:B.type},[I("div",wRt,[(V(!0),H(qe,null,bt(B.children,(xe,_e)=>(V(),Ue(ATe,{class:"shape-item",key:_e,shape:xe,onClick:se=>O(xe)},null,8,["shape","onClick"]))),128))])]))),128))]),I("div",LRt,[U(La,{style:{flex:"1"},value:u.value,"onUpdate:value":C[0]||(C[0]=B=>M(B)),options:[{label:"纯色填充",value:"fill"},{label:"渐变填充",value:"gradient"},{label:"图片填充",value:"pattern"}]},null,8,["value"]),u.value!=="pattern"?(V(),H("div",TRt)):at("",!0),u.value==="fill"?(V(),Ue(sn,{key:1,trigger:"click",style:{flex:"1"}},{content:pe(()=>[U(Ir,{modelValue:s.value,"onUpdate:modelValue":C[1]||(C[1]=B=>T(B))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:s.value},null,8,["color"])]),_:1})):u.value==="gradient"?(V(),Ue(La,{key:2,style:{flex:"1"},value:c.value.type,"onUpdate:value":C[2]||(C[2]=B=>S({type:B})),options:[{label:"线性渐变",value:"linear"},{label:"径向渐变",value:"radial"}]},null,8,["value"])):at("",!0)]),u.value==="gradient"?(V(),H(qe,{key:0},[I("div",ORt,[U(oOe,{value:c.value.colors,index:v.value,"onUpdate:value":C[3]||(C[3]=B=>S({colors:B})),"onUpdate:index":C[4]||(C[4]=B=>v.value=B)},null,8,["value","index"])]),I("div",PRt,[C[15]||(C[15]=I("div",{style:{width:"40%"}},"当前色块:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:c.value.colors[v.value].color,"onUpdate:modelValue":C[5]||(C[5]=B=>w(B))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:c.value.colors[v.value].color},null,8,["color"])]),_:1})]),c.value.type==="linear"?(V(),H("div",CRt,[C[16]||(C[16]=I("div",{style:{width:"40%"}},"渐变角度:",-1)),U(Xo,{style:{width:"60%"},min:0,max:360,step:15,value:c.value.rotate,"onUpdate:value":C[6]||(C[6]=B=>S({rotate:B}))},null,8,["value"])])):at("",!0)],64)):at("",!0),u.value==="pattern"?(V(),H("div",NRt,[U(Df,{onChange:C[7]||(C[7]=B=>_(B))},{default:pe(()=>[I("div",IRt,[I("div",{class:"content",style:We({backgroundImage:`url(${l.value})`})},[U(F)],4)])]),_:1})])):at("",!0),U(nOe),U(hn),(ce=te(o).text)!=null&&ce.content?(V(),H(qe,{key:2},[U(eOe),U(hn),I("div",kRt,[C[17]||(C[17]=I("div",{style:{width:"40%"}},"行间距:",-1)),U(La,{style:{width:"60%"},value:d.value||1,"onUpdate:value":C[8]||(C[8]=B=>N({lineHeight:B})),options:g.map(B=>({label:B+"倍",value:B}))},{icon:pe(()=>[U(Y)]),_:1},8,["value","options"])]),I("div",ERt,[C[18]||(C[18]=I("div",{style:{width:"40%"}},"段间距:",-1)),U(La,{style:{width:"60%"},value:p.value||0,"onUpdate:value":C[9]||(C[9]=B=>N({paragraphSpace:B})),options:m.map(B=>({label:B+"px",value:B}))},{icon:pe(()=>[U(Q)]),_:1},8,["value","options"])]),I("div",FRt,[C[19]||(C[19]=I("div",{style:{width:"40%"}},"字间距:",-1)),U(La,{style:{width:"60%"},value:h.value||0,"onUpdate:value":C[10]||(C[10]=B=>N({wordSpace:B})),options:y.map(B=>({label:B+"px",value:B}))},{icon:pe(()=>[U(K)]),_:1},8,["value","options"])]),U(hn),U(Yf,{class:"row","button-style":"solid",value:f.value,"onUpdate:value":C[11]||(C[11]=B=>N({align:B}))},{default:pe(()=>[yt((V(),Ue(Nr,{value:"top",style:{flex:"1"}},{default:pe(()=>[U(ne)]),_:1})),[[ee,"顶对齐"]]),yt((V(),Ue(Nr,{value:"middle",style:{flex:"1"}},{default:pe(()=>[U(Z)]),_:1})),[[ee,"居中"]]),yt((V(),Ue(Nr,{value:"bottom",style:{flex:"1"}},{default:pe(()=>[U($)]),_:1})),[[ee,"底对齐"]])]),_:1},8,["value"]),U(hn)],64)):at("",!0),U(B8),U(hn),U(EV),U(hn),U(UTe),U(hn),I("div",XRt,[yt((V(),Ue(ri,{style:{flex:"1"},checked:!!te(i),onClick:C[12]||(C[12]=B=>te(A)()),onDblclick:C[13]||(C[13]=B=>te(A)(!0))},{default:pe(()=>[U(G),C[20]||(C[20]=rt(" 形状格式刷"))]),_:1,__:[20]},8,["checked"])),[[ee,"双击连续使用"]])])])}}}),VRt=lt(DRt,[["__scopeId","data-v-21836779"]]),URt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function WRt(t,e){return V(),H("svg",URt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M42 19H6M30 7l12 12M6.799 29h36m-36 0l12 12"},null,-1)]))}const sOe=vt({name:"icon-park-outline-switch",render:WRt}),YRt={class:"line-style-panel"},BRt={class:"title"},ZRt={class:"line-pool-wrapper"},QRt={class:"line-type-list"},KRt=["onClick"],HRt={class:"line-type-content"},GRt={overflow:"visible",width:"24",height:"24"},$Rt=["d","stroke-dasharray","marker-start","marker-end"],zRt={class:"row"},JRt=["onClick"],jRt={class:"row"},qRt={class:"row"},ebt={class:"row"},tbt=["onClick"],nbt={class:"row"},rbt=["onClick"],abt={class:"row"},ibt=tt({__name:"LineStylePanel",setup(t){const e=It(),{handleElement:n}=nt(Wt()),r=n,{addHistorySnapshot:a}=Pn(),i=we(["solid","dashed","dotted"]),o=we(["","arrow","dot"]),s=[{key:"straight",path:"M 2 2 L 22 22"},{key:"broken",path:"M 2 2 L 2 22 L 22 22",isBroken:!0},{key:"broken2",path:"M 2 2 L 12 2 L 12 22 L 22 22",isBroken2:!0},{key:"curve",path:"M 2 2 Q 2 22 22 22",isCurve:!0},{key:"cubic",path:"M 2 2 C 22 2 2 22 22 22",isCubic:!0}],l=u=>{if(!n.value)return;const{id:f,start:d,end:h}=n.value,p=[(d[0]+h[0])/2,(d[1]+h[1])/2];e.removeElementProps({id:f,propName:["broken","broken2","curve","cubic"]});const v={};u.isBroken&&(v.broken=p),u.isBroken2&&(v.broken2=p),u.isCurve&&(v.curve=p),u.isCubic&&(v.cubic=[p,p]),e.updateElement({id:f,props:v}),a()},c=u=>{n.value&&(e.updateElement({id:n.value.id,props:u}),a())};return(u,f)=>{const d=Tu,h=sOe;return V(),H("div",YRt,[I("div",BRt,[f[3]||(f[3]=I("span",null,"点击替换线条类型",-1)),U(d)]),I("div",ZRt,[I("div",QRt,[(V(),H(qe,null,bt(s,p=>I("div",{class:"line-type-item",key:p.key,onClick:v=>l(p)},[I("div",HRt,[(V(),H("svg",GRt,[I("defs",null,[te(r).points[0]?(V(),Ue(Ch,{key:0,id:`replace-line-${p.key}`,position:"start",type:te(r).points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):at("",!0),te(r).points[1]?(V(),Ue(Ch,{key:1,id:`replace-line-${p.key}`,position:"end",type:te(r).points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):at("",!0)]),I("path",{d:p.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":te(r).style==="solid"?"0, 0":"4, 1","marker-start":te(r).points[0]?`url(#${`replace-line-${p.key}`}-${te(r).points[0]}-start)`:"","marker-end":te(r).points[1]?`url(#${`replace-line-${p.key}`}-${te(r).points[1]}-end)`:""},null,8,$Rt)]))])],8,KRt)),64))])]),I("div",zRt,[f[4]||(f[4]=I("div",{style:{width:"40%"}},"线条样式:",-1)),U(Gx,{style:{width:"60%"}},{options:pe(()=>[(V(!0),H(qe,null,bt(i.value,p=>(V(),H("div",{class:"option",key:p,onClick:v=>c({style:p})},[U(uu,{type:p},null,8,["type"])],8,JRt))),128))]),label:pe(()=>[U(uu,{type:te(r).style},null,8,["type"])]),_:1})]),I("div",jRt,[f[5]||(f[5]=I("div",{style:{width:"40%"}},"线条颜色:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:te(r).color,"onUpdate:modelValue":f[0]||(f[0]=p=>c({color:p}))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:te(r).color},null,8,["color"])]),_:1})]),I("div",qRt,[f[6]||(f[6]=I("div",{style:{width:"40%"}},"线条宽度:",-1)),U(vl,{value:te(r).width,"onUpdate:value":f[1]||(f[1]=p=>c({width:p})),style:{width:"60%"}},null,8,["value"])]),I("div",ebt,[f[7]||(f[7]=I("div",{style:{width:"40%"}},"起点样式:",-1)),U(Gx,{style:{width:"60%"}},{options:pe(()=>[(V(!0),H(qe,null,bt(o.value,p=>(V(),H("div",{class:"option",key:p,onClick:v=>c({points:[p,te(r).points[1]]})},[U(uu,{padding:5,markers:[p,""]},null,8,["markers"])],8,tbt))),128))]),label:pe(()=>[U(uu,{padding:5,markers:[te(r).points[0],""]},null,8,["markers"])]),_:1})]),I("div",nbt,[f[8]||(f[8]=I("div",{style:{width:"40%"}},"终点样式:",-1)),U(Gx,{style:{width:"60%"}},{options:pe(()=>[(V(!0),H(qe,null,bt(o.value,p=>(V(),H("div",{class:"option",key:p,onClick:v=>c({points:[te(r).points[0],p]})},[U(uu,{padding:5,markers:["",p]},null,8,["markers"])],8,rbt))),128))]),label:pe(()=>[U(uu,{padding:5,markers:["",te(r).points[1]]},null,8,["markers"])]),_:1})]),U(hn),I("div",abt,[U(Mt,{style:{flex:"1"},onClick:f[2]||(f[2]=p=>c({start:te(r).end,end:te(r).start}))},{default:pe(()=>[U(h),f[9]||(f[9]=rt(" 交换方向"))]),_:1,__:[9]})]),U(hn),U(EV)])}}}),obt=lt(ibt,[["__scopeId","data-v-eca79d22"]]),sbt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function lbt(t,e){return V(),H("svg",sbt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{"stroke-linecap":"round",d:"M7 42h36"}),I("path",{d:"M11 26.72V34h7.317L39 13.308L31.695 6z"})],-1)]))}const tte=vt({name:"icon-park-outline-edit",render:lbt}),cbt={class:"chart-data-editor"},ubt={class:"editor-content"},fbt={class:"handler"},dbt={class:"col-header"},hbt={class:"col-key"},pbt={class:"row-header"},vbt={class:"row-key"},gbt={class:"range-box"},mbt=["id","onFocus","onPaste"],ybt={class:"btns"},Abt={class:"left"},Rbt={class:"right"},bbt="ABCDEFGHIJKLMNOPQRSTUVWXYZ",Qv=100,Kv=32,xbt=tt({__name:"ChartDataEditor",props:{type:{},data:{}},emits:["save","close"],setup(t,{emit:e}){const n=t,r=e,a=["bar","column","line","area","scatter","pie","ring","radar"],i=we(!1),o=we([0,0]),s=we({width:0,height:0}),l=we(null),c=we("bar"),u=Fe(()=>{const x=o.value[0]*Qv,M=o.value[1]*Kv;return[{type:"t",style:{width:x+"px"}},{type:"b",style:{top:M+"px",width:x+"px"}},{type:"l",style:{height:M+"px"}},{type:"r",style:{left:x+"px",height:M+"px"}}]}),f=Fe(()=>{const x=o.value[0]*Qv,M=o.value[1]*Kv;return{left:x+"px",top:M+"px"}});mn(()=>{c.value=n.type;const x=[],{labels:M,legends:S,series:w}=n.data,_=M.length,T=w.length;x.push(["",...S]);for(let O=0;O<_;O++){const N=[M[O]];for(let P=0;P<T;P++)N.push(w[P][O]+"");x.push(N)}for(let O=0;O<_+1;O++)for(let N=0;N<T+1;N++){const P=document.querySelector(`#cell-${O}-${N}`);P&&(P.value=x[O][N]+"")}o.value=[T+1,_+1]});const h=()=>{if(!l.value)return;const[x,M]=l.value,S=document.querySelector(`#cell-${x+1}-${M}`);S&&S.focus()},p=x=>{x.key.toUpperCase()===Ht.ENTER&&h()};mn(()=>{document.addEventListener("keydown",p)}),or(()=>{document.removeEventListener("keydown",p)});const v=()=>{const[x,M]=o.value,S=[];let w=[],_=[];for(let T=1;T<M;T++){let O=`类别${T}`;const N=document.querySelector(`#cell-${T}-0`);N&&N.value&&(O=N.value),S.push(O)}for(let T=1;T<x;T++){let O=`系列${T}`;const N=document.querySelector(`#cell-0-${T}`);N&&N.value&&(O=N.value),w.push(O)}for(let T=1;T<x;T++){const O=[];for(let N=1;N<M;N++){const P=document.querySelector(`#cell-${N}-${T}`);let C=0;P&&P.value&&+P.value&&(C=+P.value),O.push(C)}_.push(O)}c.value==="scatter"&&(w.length>2&&(w=w.slice(0,2),_=_.slice(0,2)),w.length<2&&(w.push("Y"),_.push(_[0]))),(c.value==="ring"||c.value==="pie")&&w.length>1&&(w=w.slice(0,1),_=_.slice(0,1)),r("save",{data:{labels:S,legends:w,series:_},type:c.value})},g=()=>{for(let x=1;x<31;x++)for(let M=1;M<7;M++){const S=document.querySelector(`#cell-${x}-${M}`);S&&(S.value="")}},y=(x,M,S)=>{const w=M+x.length,_=S+x[0].length;for(let T=M;T<w;T++)for(let O=S;O<_;O++){const N=document.querySelector(`#cell-${T}-${O}`);N&&(N.value=x[T-M][O-S])}},m=(x,M,S)=>{if(x.preventDefault(),!x.clipboardData)return;const w=x.clipboardData.items[0];w&&w.kind==="string"&&(w.type==="text/plain"?w.getAsString(_=>{if(typeof wj(_)=="object")return;const O=C4e(_);if(O){y(O,M,S);return}document.execCommand("insertText",!1,_)}):w.type==="text/html"&&w.getAsString(_=>{const T=N4e(_);T&&y(T,M,S)}))},R=()=>r("close"),A=x=>{let M=!0;const S=x.pageX,w=x.pageY,_=o.value[0]*Qv,T=o.value[1]*Kv;document.onmousemove=O=>{if(!M)return;const N=O.pageX,P=O.pageY,C=N-S,E=P-w,F=_+C,Y=T+E;s.value={width:F,height:Y}},document.onmouseup=O=>{M=!1,document.onmousemove=null,document.onmouseup=null;const N=O.pageX,P=O.pageY;if(S===N&&w===P)return;let C=s.value.width,E=s.value.height;C%Qv>Qv*.5&&(C=C+(Qv-C%Qv)),E%Kv>Kv*.5&&(E=E+(Kv-E%Kv));let F=Math.round(E/Kv),Y=Math.round(C/Qv);F<3&&(F=3),Y<2&&(Y=2),o.value=[Y,F],s.value={width:0,height:0}}};return(x,M)=>(V(),H("div",cbt,[I("div",ubt,[I("div",fbt,[I("div",dbt,[(V(),H(qe,null,bt(7,S=>I("div",{class:"col-header-item",key:S},[I("div",hbt,Vt(bbt[S-1]),1)])),64))]),I("div",pbt,[(V(),H(qe,null,bt(31,S=>I("div",{class:"row-header-item",key:S},[I("div",vbt,Vt(S),1)])),64))]),M[5]||(M[5]=I("div",{class:"all-header"},[I("svg",{class:"triangle",width:"8",height:"8",viewBox:"0 0 8 8",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M8,0 L8,8 L0,8 L8,0",fill:"#ccc"})])],-1))]),I("div",gbt,[I("div",{class:"temp-range",style:We({width:s.value.width+"px",height:s.value.height+"px"})},null,4),(V(!0),H(qe,null,bt(u.value,S=>(V(),H("div",{class:mt(["range-line",S.type]),key:S.type,style:We(S.style)},null,6))),128)),I("div",{class:"resizable",style:We(f.value),onMousedown:M[0]||(M[0]=on(S=>A(S),["stop"]))},null,36)]),I("table",null,[I("tbody",null,[(V(),H(qe,null,bt(31,S=>I("tr",{key:S},[(V(),H(qe,null,bt(7,w=>I("td",{key:w,class:mt({head:w===1&&S<=o.value[1]||S===1&&w<=o.value[0]})},[S===1&&w===1?at("",!0):(V(),H("input",{key:0,class:mt(["item",{selected:S<=o.value[1]&&w<=o.value[0]}]),id:`cell-${S-1}-${w-1}`,autocomplete:"off",onFocus:_=>l.value=[S-1,w-1],onPaste:_=>m(_,S-1,w-1)},null,42,mbt))],2)),64))])),64))])])]),I("div",ybt,[I("div",Abt,[rt(" 图表类型:"+Vt(te(kG)[c.value])+" ",1),U(sn,{trigger:"click",placement:"top",value:i.value,"onUpdate:value":M[1]||(M[1]=S=>i.value=S)},{content:pe(()=>[(V(),H(qe,null,bt(a,S=>U(ti,{center:"",key:S,onClick:w=>{c.value=S,i.value=!1}},{default:pe(()=>[rt(Vt(te(kG)[S]),1)]),_:2},1032,["onClick"])),64))]),default:pe(()=>[M[6]||(M[6]=I("span",{class:"change"},"点击更换",-1))]),_:1,__:[6]},8,["value"])]),I("div",Rbt,[U(Mt,{class:"btn",onClick:M[2]||(M[2]=S=>R())},{default:pe(()=>M[7]||(M[7]=[rt("取消")])),_:1,__:[7]}),U(Mt,{class:"btn",onClick:M[3]||(M[3]=S=>g())},{default:pe(()=>M[8]||(M[8]=[rt("清空数据")])),_:1,__:[8]}),U(Mt,{type:"primary",class:"btn",onClick:M[4]||(M[4]=S=>v())},{default:pe(()=>M[9]||(M[9]=[rt("确认")])),_:1,__:[9]})])])]))}}),Sbt=lt(xbt,[["__scopeId","data-v-cf4d53bd"]]),Mbt={class:"theme-colors-setting"},_bt={class:"list"},wbt={class:"label",style:{width:"40%"}},Lbt={class:"color-btn-wrap",style:{width:"100%"}},Tbt=["onClick"],Obt=tt({__name:"ThemeColorsSetting",props:{colors:{}},emits:["update"],setup(t,{emit:e}){const n=t,r=e,a=we([]);mn(()=>{a.value=[...n.colors]});const i=()=>{r("update",a.value)},o=()=>{const l=[...a.value,"#00000000"];a.value=l},s=l=>{const c=a.value.filter((u,f)=>f!==l);a.value=c};return(l,c)=>{const u=Sj,f=zf,d=pr("tooltip");return V(),H("div",Mbt,[c[4]||(c[4]=I("div",{class:"title"},"图表主题配色",-1)),I("div",_bt,[(V(!0),H(qe,null,bt(a.value,(h,p)=>(V(),H("div",{class:"row",key:p},[I("div",wbt,"主题配色"+Vt(p+1)+":",1),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:h,"onUpdate:modelValue":v=>a.value[p]=v},null,8,["modelValue","onUpdate:modelValue"])]),default:pe(()=>[I("div",Lbt,[U(Ka,{color:h},null,8,["color"]),p!==0?yt((V(),H("div",{key:0,class:"delete-color-btn",onClick:on(v=>s(p),["stop"])},[U(u)],8,Tbt)),[[d,"删除"]]):at("",!0)])]),_:2},1024)]))),128)),U(Mt,{style:{width:"100%"},disabled:a.value.length>=10,onClick:c[0]||(c[0]=h=>o())},{default:pe(()=>[U(f),c[2]||(c[2]=rt(" 添加主题色 "))]),_:1,__:[2]},8,["disabled"])]),U(Mt,{class:"btn",type:"primary",onClick:c[1]||(c[1]=h=>i())},{default:pe(()=>c[3]||(c[3]=[rt("确认")])),_:1,__:[3]})])}}}),Pbt=lt(Obt,[["__scopeId","data-v-1bb755bd"]]),Cbt={class:"blocks"},Nbt=tt({__name:"ColorListButton",props:{colors:{}},setup(t){const e=t,n=Fe(()=>e.colors.length>12?e.colors.slice(0,12):e.colors);return(r,a)=>{const i=Gee;return V(),Ue(Mt,{class:"color-btn"},{default:pe(()=>[I("div",Cbt,[(V(!0),H(qe,null,bt(n.value,(o,s)=>(V(),H("div",{class:"color-block",key:s},[I("div",{class:"content",style:We({backgroundColor:o})},null,4)]))),128))]),U(i,{class:"color-btn-icon"})]),_:1})}}}),lOe=lt(Nbt,[["__scopeId","data-v-13a5bc7f"]]),Ibt=["checked"],kbt={class:"checkbox-label"},Ebt=tt({__name:"Checkbox",props:{value:{type:Boolean},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(t,{emit:e}){const n=t,r=e,a=i=>{n.disabled||r("update:value",i.target.checked)};return(i,o)=>(V(),H("label",{class:mt(["checkbox",{checked:i.value,disabled:i.disabled}]),onChange:o[0]||(o[0]=s=>a(s))},[o[1]||(o[1]=I("span",{class:"checkbox-input"},null,-1)),I("input",{class:"checkbox-original",type:"checkbox",checked:i.value},null,8,Ibt),I("span",kbt,[Hr(i.$slots,"default",{},void 0,!0)])],34))}}),Mx=lt(Ebt,[["__scopeId","data-v-714bf49f"]]),Fbt={class:"chart-style-panel"},Xbt={class:"row"},Dbt={class:"row"},Vbt={class:"row"},Ubt={class:"row"},Wbt={class:"row"},Ybt={class:"themes"},Bbt={class:"preset-themes"},Zbt=["onClick"],Qbt={class:"preset-themes",style:{marginBottom:"-10px"}},Kbt=tt({__name:"index",setup(t){const e=Wt(),n=It(),{handleElement:r,handleElementId:a}=nt(e),{theme:i}=nt(n),o=r,s=we(!1),l=we(!1),c=we(!1),{addHistorySnapshot:u}=Pn(),f=we("#000"),d=we([]),h=we(""),p=we(""),v=we(!1),g=we(!1);qt(r,()=>{if(!(!r.value||r.value.type!=="chart")){if(f.value=r.value.fill||"#fff",v.value=!1,g.value=!1,r.value.options){const{lineSmooth:M,stack:S}=r.value.options;M!==void 0&&(v.value=M),S!==void 0&&(g.value=S)}d.value=r.value.themeColors,h.value=r.value.textColor||"#333",p.value=r.value.lineColor||"#e8ecf4"}},{deep:!0,immediate:!0});const y=M=>{n.updateElement({id:a.value,props:M}),u()},m=M=>{s.value=!1,y({data:M.data,chartType:M.type})},R=M=>{const w={...r.value.options,...M};y({options:w})},A=M=>{y({themeColors:M}),l.value=!1,c.value=!1},x=()=>s.value=!0;return zi.on(Ni.OPEN_CHART_DATA_EDITOR,x),or(()=>{zi.off(Ni.OPEN_CHART_DATA_EDITOR,x)}),(M,S)=>{const w=tte;return V(),H("div",Fbt,[U(Mt,{class:"full-width-btn",onClick:S[0]||(S[0]=_=>s.value=!0)},{default:pe(()=>[U(w),S[15]||(S[15]=rt(" 编辑图表 "))]),_:1,__:[15]}),U(hn),["bar","column","area","line"].includes(te(o).chartType)?(V(),H(qe,{key:0},[I("div",Xbt,[U(Mx,{"onUpdate:value":S[1]||(S[1]=_=>R({stack:_})),value:g.value,style:{flex:"2"}},{default:pe(()=>S[16]||(S[16]=[rt("堆叠样式")])),_:1,__:[16]},8,["value"]),te(o).chartType==="line"?(V(),Ue(Mx,{key:0,"onUpdate:value":S[2]||(S[2]=_=>R({lineSmooth:_})),value:v.value,style:{flex:"3"}},{default:pe(()=>S[17]||(S[17]=[rt("使用平滑曲线")])),_:1,__:[17]},8,["value"])):at("",!0)]),U(hn)],64)):at("",!0),I("div",Dbt,[S[18]||(S[18]=I("div",{style:{width:"40%"}},"背景填充:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:f.value,"onUpdate:modelValue":S[3]||(S[3]=_=>y({fill:_}))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:f.value},null,8,["color"])]),_:1})]),I("div",Vbt,[S[19]||(S[19]=I("div",{style:{width:"40%"}},"坐标与文字:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:h.value,"onUpdate:modelValue":S[4]||(S[4]=_=>y({textColor:_}))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:h.value},null,8,["color"])]),_:1})]),I("div",Ubt,[S[20]||(S[20]=I("div",{style:{width:"40%"}},"网格颜色:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:p.value,"onUpdate:modelValue":S[5]||(S[5]=_=>y({lineColor:_}))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:p.value},null,8,["color"])]),_:1})]),I("div",Wbt,[S[24]||(S[24]=I("div",{style:{width:"40%"}},"主题配色:",-1)),U(sn,{trigger:"click",value:l.value,"onUpdate:value":S[8]||(S[8]=_=>l.value=_),style:{width:"60%"}},{content:pe(()=>[I("div",Ybt,[S[22]||(S[22]=I("div",{class:"label"},"预置图表主题:",-1)),I("div",Bbt,[(V(!0),H(qe,null,bt(te(_We),(_,T)=>(V(),H("div",{class:"preset-theme",key:T,onClick:O=>A(_)},[(V(!0),H(qe,null,bt(_,O=>(V(),H("div",{class:"preset-theme-color",key:O,style:We({backgroundColor:O})},null,4))),128))],8,Zbt))),128))]),S[23]||(S[23]=I("div",{class:"label"},"幻灯片主题:",-1)),I("div",Qbt,[I("div",{class:"preset-theme",onClick:S[6]||(S[6]=_=>A(te(i).themeColors))},[(V(!0),H(qe,null,bt(te(i).themeColors,_=>(V(),H("div",{class:"preset-theme-color",key:_,style:We({backgroundColor:_})},null,4))),128))])]),U(hn,{margin:10}),U(Mt,{class:"full-width-btn",onClick:S[7]||(S[7]=_=>{l.value=!1,c.value=!0})},{default:pe(()=>S[21]||(S[21]=[rt("自定义配色")])),_:1,__:[21]})])]),default:pe(()=>[U(lOe,{colors:d.value},null,8,["colors"])]),_:1},8,["value"])]),U(hn),U(B8),U(j1,{visible:s.value,"onUpdate:visible":S[11]||(S[11]=_=>s.value=_),width:640},{default:pe(()=>[U(Sbt,{type:te(o).chartType,data:te(o).data,onClose:S[9]||(S[9]=_=>s.value=!1),onSave:S[10]||(S[10]=_=>m(_))},null,8,["type","data"])]),_:1},8,["visible"]),U(j1,{visible:c.value,"onUpdate:visible":S[13]||(S[13]=_=>c.value=_),width:310,onClosed:S[14]||(S[14]=_=>c.value=!1)},{default:pe(()=>[U(Pbt,{colors:d.value,onUpdate:S[12]||(S[12]=_=>A(_))},null,8,["colors"])]),_:1},8,["visible"])])}}}),Hbt=lt(Kbt,[["__scopeId","data-v-761d54fe"]]),Gbt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function $bt(t,e){return V(),H("svg",Gbt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[I("rect",{width:"36",height:"36",x:"6",y:"6",rx:"3"}),I("path",{d:"M14 14h20v20H14zm20 9L23 34m2-20L14 25m20-11L14 34"}),I("path",{d:"M14 22v12h12m-4-20h12v12"})],-1)]))}const cOe=vt({name:"icon-park-outline-fill",render:$bt}),zbt={class:"table-style-panel"},Jbt={class:"row"},jbt={class:"set-count",style:{width:"60%"}},qbt={class:"count-text"},ext={class:"row"},txt={class:"set-count",style:{width:"60%"}},nxt={class:"count-text"},rxt={class:"row theme-switch"},axt={class:"switch-wrapper",style:{width:"60%"}},ixt={class:"row"},oxt={class:"row"},sxt={class:"row"},lxt=tt({__name:"TableStylePanel",setup(t){const e=It(),{handleElement:n,handleElementId:r,selectedTableCells:a}=nt(Wt()),i=Fe(()=>e.theme.themeColors[0]),o=["12px","14px","16px","18px","20px","22px","24px","28px","32px"],s=we({bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"",fontsize:"12px",fontname:"",align:"left",vAlign:"top"}),l=we(),c=we(!1),u=we(0),f=we(0),d=we(0),h=we(0);qt(n,()=>{!n.value||n.value.type!=="table"||(l.value=n.value.theme,c.value=!!l.value,u.value=n.value.data.length,f.value=n.value.data[0].length,d.value=n.value.data.length,h.value=n.value.data[0].length)},{deep:!0,immediate:!0});const{addHistorySnapshot:p}=Pn(),v=()=>{if(!n.value||n.value.type!=="table")return;let M=0,S=0;if(a.value.length){const _=a.value[0];M=+_.split("_")[0],S=+_.split("_")[1]}const w=n.value.data[M][S].style;w?s.value={bold:!!w.bold,em:!!w.em,underline:!!w.underline,strikethrough:!!w.strikethrough,color:w.color||"#000",backcolor:w.backcolor||"",fontsize:w.fontsize||"12px",fontname:w.fontname||"",align:w.align||"left",vAlign:w.vAlign||"top"}:s.value={bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"",fontsize:"12px",fontname:"",align:"left",vAlign:"top"}};mn(()=>{v()}),qt(a,v);const g=M=>{e.updateElement({id:r.value,props:M}),p()},y=M=>{const S=n.value,w=JSON.parse(JSON.stringify(S.data));for(let _=0;_<w.length;_++)for(let T=0;T<w[_].length;T++)if(!a.value.length||a.value.includes(`${_}_${T}`)){const O=w[_][T].style||{};w[_][T].style={...O,...M}}g({data:w}),v()},m=M=>{if(!l.value)return;const S={...l.value,...M};g({theme:S})},R=M=>{if(M){const S={theme:{color:i.value,rowHeader:!0,rowFooter:!1,colHeader:!1,colFooter:!1}};g(S)}else e.removeElementProps({id:r.value,propName:"theme"}),p()},A=M=>{const S=n.value,w=S.data.length;if(M>w){const _=new Array(f.value).fill({id:Gn(10),colspan:1,rowspan:1,text:""}),T=new Array(M-w).fill(_),O=JSON.parse(JSON.stringify(S.data));O.push(...T),g({data:O})}else{const _=S.data.slice(0,M);g({data:_})}},x=M=>{const S=n.value,w=S.data[0].length;let _=S.data,T=S.colWidths.map(C=>C*S.width);if(M>w){_=_.map(E=>{const F=new Array(M-w).fill({id:Gn(10),colspan:1,rowspan:1,text:""});return E.push(...F),E});const C=new Array(M-w).fill(100);T.push(...C)}else _=_.map(C=>C.slice(0,M)),T=T.slice(0,M);const O=T.reduce((C,E)=>C+E),N=T.map(C=>C/O);g({width:O,data:_,colWidths:N})};return(M,S)=>{const w=BS,_=qee,T=BV,O=cOe,N=YV,P=WV,C=UV,E=VV,F=DV,Y=XV,Q=FV,K=jee,ne=iOe,Z=aOe,$=rOe,G=Wee,ee=zf,ce=pr("tooltip");return V(),H("div",zbt,[U(ete,{class:"row"},{default:pe(()=>[U(La,{style:{width:"50%"},value:s.value.fontname,search:"",searchLabel:"搜索字体",autofocus:"","onUpdate:value":S[0]||(S[0]=B=>y({fontname:B})),options:te(Q8)},{icon:pe(()=>[U(w)]),_:1},8,["value","options"]),U(La,{style:{width:"50%"},value:s.value.fontsize,search:"",searchLabel:"搜索字号",autofocus:"","onUpdate:value":S[1]||(S[1]=B=>y({fontsize:B})),options:o.map(B=>({label:B,value:B}))},{icon:pe(()=>[U(_)]),_:1},8,["value","options"])]),_:1}),U(Br,{class:"row",passive:""},{default:pe(()=>[U(sn,{trigger:"click",style:{width:"50%"}},{content:pe(()=>[U(Ir,{modelValue:s.value.color,"onUpdate:modelValue":S[2]||(S[2]=B=>y({color:B}))},null,8,["modelValue"])]),default:pe(()=>[yt((V(),Ue(SS,{first:"",color:s.value.color},{default:pe(()=>[U(T)]),_:1},8,["color"])),[[ce,"文字颜色"]])]),_:1}),U(sn,{trigger:"click",style:{width:"50%"}},{content:pe(()=>[U(Ir,{modelValue:s.value.backcolor,"onUpdate:modelValue":S[3]||(S[3]=B=>y({backcolor:B}))},null,8,["modelValue"])]),default:pe(()=>[yt((V(),Ue(SS,{last:"",color:s.value.backcolor},{default:pe(()=>[U(O)]),_:1},8,["color"])),[[ce,"单元格填充"]])]),_:1})]),_:1}),U(Br,{class:"row"},{default:pe(()=>[yt((V(),Ue(ri,{style:{flex:"1"},checked:s.value.bold,onClick:S[4]||(S[4]=B=>y({bold:!s.value.bold}))},{default:pe(()=>[U(N)]),_:1},8,["checked"])),[[ce,"加粗"]]),yt((V(),Ue(ri,{style:{flex:"1"},checked:s.value.em,onClick:S[5]||(S[5]=B=>y({em:!s.value.em}))},{default:pe(()=>[U(P)]),_:1},8,["checked"])),[[ce,"斜体"]]),yt((V(),Ue(ri,{style:{flex:"1"},checked:s.value.underline,onClick:S[6]||(S[6]=B=>y({underline:!s.value.underline}))},{default:pe(()=>[U(C)]),_:1},8,["checked"])),[[ce,"下划线"]]),yt((V(),Ue(ri,{style:{flex:"1"},checked:s.value.strikethrough,onClick:S[7]||(S[7]=B=>y({strikethrough:!s.value.strikethrough}))},{default:pe(()=>[U(E)]),_:1},8,["checked"])),[[ce,"删除线"]])]),_:1}),U(Yf,{class:"row","button-style":"solid",value:s.value.align,"onUpdate:value":S[8]||(S[8]=B=>y({align:B}))},{default:pe(()=>[yt((V(),Ue(Nr,{value:"left",style:{flex:"1"}},{default:pe(()=>[U(F)]),_:1})),[[ce,"左对齐"]]),yt((V(),Ue(Nr,{value:"center",style:{flex:"1"}},{default:pe(()=>[U(Y)]),_:1})),[[ce,"居中"]]),yt((V(),Ue(Nr,{value:"right",style:{flex:"1"}},{default:pe(()=>[U(Q)]),_:1})),[[ce,"右对齐"]]),yt((V(),Ue(Nr,{value:"justify",style:{flex:"1"}},{default:pe(()=>[U(K)]),_:1})),[[ce,"两端对齐"]])]),_:1},8,["value"]),U(Yf,{class:"row","button-style":"solid",value:s.value.vAlign,"onUpdate:value":S[9]||(S[9]=B=>y({vAlign:B}))},{default:pe(()=>[yt((V(),Ue(Nr,{value:"top",style:{flex:"1"}},{default:pe(()=>[U(ne)]),_:1})),[[ce,"顶对齐"]]),yt((V(),Ue(Nr,{value:"middle",style:{flex:"1"}},{default:pe(()=>[U(Z)]),_:1})),[[ce,"居中"]]),yt((V(),Ue(Nr,{value:"bottom",style:{flex:"1"}},{default:pe(()=>[U($)]),_:1})),[[ce,"底对齐"]])]),_:1},8,["value"]),U(hn),U(B8,{fixed:!0}),U(hn),I("div",Jbt,[S[20]||(S[20]=I("div",{style:{width:"40%"}},"行数:",-1)),I("div",jbt,[U(Mt,{class:"btn",disabled:u.value<=1,onClick:S[10]||(S[10]=B=>A(u.value-1))},{default:pe(()=>[U(G)]),_:1},8,["disabled"]),I("div",qbt,Vt(u.value),1),U(Mt,{class:"btn",disabled:u.value>=30,onClick:S[11]||(S[11]=B=>A(u.value+1))},{default:pe(()=>[U(ee)]),_:1},8,["disabled"])])]),I("div",ext,[S[21]||(S[21]=I("div",{style:{width:"40%"}},"列数:",-1)),I("div",txt,[U(Mt,{class:"btn",disabled:f.value<=1,onClick:S[12]||(S[12]=B=>x(f.value-1))},{default:pe(()=>[U(G)]),_:1},8,["disabled"]),I("div",nxt,Vt(f.value),1),U(Mt,{class:"btn",disabled:f.value>=30,onClick:S[13]||(S[13]=B=>x(f.value+1))},{default:pe(()=>[U(ee)]),_:1},8,["disabled"])])]),U(hn),I("div",rxt,[S[22]||(S[22]=I("div",{style:{width:"40%"}},"启用主题表格:",-1)),I("div",axt,[U(_u,{value:c.value,"onUpdate:value":S[14]||(S[14]=B=>R(B))},null,8,["value"])])]),l.value?(V(),H(qe,{key:0},[I("div",ixt,[U(Mx,{"onUpdate:value":S[15]||(S[15]=B=>m({rowHeader:B})),value:l.value.rowHeader,style:{flex:"1"}},{default:pe(()=>S[23]||(S[23]=[rt("标题行")])),_:1,__:[23]},8,["value"]),U(Mx,{"onUpdate:value":S[16]||(S[16]=B=>m({rowFooter:B})),value:l.value.rowFooter,style:{flex:"1"}},{default:pe(()=>S[24]||(S[24]=[rt("汇总行")])),_:1,__:[24]},8,["value"])]),I("div",oxt,[U(Mx,{"onUpdate:value":S[17]||(S[17]=B=>m({colHeader:B})),value:l.value.colHeader,style:{flex:"1"}},{default:pe(()=>S[25]||(S[25]=[rt("第一列")])),_:1,__:[25]},8,["value"]),U(Mx,{"onUpdate:value":S[18]||(S[18]=B=>m({colFooter:B})),value:l.value.colFooter,style:{flex:"1"}},{default:pe(()=>S[26]||(S[26]=[rt("最后一列")])),_:1,__:[26]},8,["value"])]),I("div",sxt,[S[27]||(S[27]=I("div",{style:{width:"40%"}},"主题颜色:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:l.value.color,"onUpdate:modelValue":S[19]||(S[19]=B=>m({color:B}))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:l.value.color},null,8,["color"])]),_:1})])],64)):at("",!0)])}}}),cxt=lt(lxt,[["__scopeId","data-v-acfb4872"]]),uxt={class:"latex-style-panel"},fxt={class:"row"},dxt={class:"row"},hxt={class:"row"},pxt=tt({__name:"LatexStylePanel",setup(t){const e=It(),{handleElement:n}=nt(Wt()),r=n,a=we(!1),{addHistorySnapshot:i}=Pn(),o=c=>{n.value&&(e.updateElement({id:n.value.id,props:c}),i())},s=c=>{o({path:c.path,latex:c.latex,width:c.w,height:c.h,viewBox:[c.w,c.h]})},l=()=>a.value=!0;return zi.on(Ni.OPEN_LATEX_EDITOR,l),or(()=>{zi.off(Ni.OPEN_LATEX_EDITOR,l)}),(c,u)=>{const f=tte;return V(),H("div",uxt,[I("div",fxt,[U(Mt,{style:{flex:"1"},onClick:u[0]||(u[0]=d=>a.value=!0)},{default:pe(()=>[U(f),u[6]||(u[6]=rt(" 编辑 LaTeX"))]),_:1,__:[6]})]),U(hn),I("div",dxt,[u[7]||(u[7]=I("div",{style:{width:"40%"}},"颜色:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:te(r).color,"onUpdate:modelValue":u[1]||(u[1]=d=>o({color:d}))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:te(r).color},null,8,["color"])]),_:1})]),I("div",hxt,[u[8]||(u[8]=I("div",{style:{width:"40%"}},"粗细:",-1)),U(vl,{min:1,max:3,value:te(r).strokeWidth,"onUpdate:value":u[2]||(u[2]=d=>o({strokeWidth:d})),style:{width:"60%"}},null,8,["value"])]),U(j1,{visible:a.value,"onUpdate:visible":u[5]||(u[5]=d=>a.value=d),width:880},{default:pe(()=>[U(xTe,{value:te(r).latex,onClose:u[3]||(u[3]=d=>a.value=!1),onUpdate:u[4]||(u[4]=d=>{s(d),a.value=!1})},null,8,["value"])]),_:1},8,["visible"])])}}}),vxt=lt(pxt,[["__scopeId","data-v-7e278e64"]]),gxt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function mxt(t,e){return V(),H("svg",gxt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-width":"4"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16 6H8a2 2 0 0 0-2 2v8m10 26H8a2 2 0 0 1-2-2v-8m26 10h8a2 2 0 0 0 2-2v-8M32 6h8a2 2 0 0 1 2 2v8"}),I("rect",{width:"20",height:"20",x:"14",y:"14",rx:"2"})],-1)]))}const yxt=vt({name:"icon-park-outline-screenshot-one",render:mxt}),Axt={class:"video-style-panel"},Rxt={class:"background-image-wrapper"},bxt={class:"background-image"},xxt={class:"row"},Sxt={key:0,class:"row"},Mxt={class:"row switch-row"},_xt={class:"switch-wrapper",style:{width:"60%"}},wxt=tt({__name:"VideoStylePanel",setup(t){const e=It(),{handleElement:n}=nt(Wt()),r=n,{addHistorySnapshot:a}=Pn(),i=l=>{n.value&&(e.updateElement({id:n.value.id,props:l}),a())},o=l=>{const c=l[0];c&&ag(c).then(u=>i({poster:u}))},s=()=>{const l=document.createElement("canvas"),c=l.getContext("2d"),u=document.createElement("video");u.crossOrigin="anonymous",u.preload="metadata",u.muted=!0,u.playsInline=!0,u.addEventListener("error",()=>{i({poster:""})}),u.addEventListener("loadedmetadata",()=>{u.requestVideoFrameCallback(()=>{l.width=u.videoWidth,l.height=u.videoHeight,c.drawImage(u,0,0,l.width,l.height);const f=l.toDataURL("image/jpeg",.8);u.remove(),l.remove(),i({poster:f})})},{once:!0}),u.src=r.value.src};return(l,c)=>{const u=zf,f=yxt,d=tOe;return V(),H("div",Axt,[c[7]||(c[7]=I("div",{class:"title"},"视频预览封面",-1)),I("div",Rxt,[U(Df,{onChange:c[0]||(c[0]=h=>o(h))},{default:pe(()=>[I("div",bxt,[I("div",{class:"content",style:We({backgroundImage:te(r).poster?`url(${te(r).poster})`:""})},[U(u)],4)])]),_:1})]),I("div",xxt,[U(Mt,{style:{flex:"1"},onClick:c[1]||(c[1]=h=>s())},{default:pe(()=>[U(f),c[4]||(c[4]=rt(" 设置首帧为封面"))]),_:1,__:[4]})]),te(r).poster?(V(),H("div",Sxt,[U(Mt,{style:{flex:"1"},onClick:c[2]||(c[2]=h=>i({poster:""}))},{default:pe(()=>[U(d),c[5]||(c[5]=rt(" 重置封面"))]),_:1,__:[5]})])):at("",!0),U(hn),I("div",Mxt,[c[6]||(c[6]=I("div",{style:{width:"40%"}},"自动播放:",-1)),I("div",_xt,[U(_u,{value:te(r).autoplay,"onUpdate:value":c[3]||(c[3]=h=>i({autoplay:h}))},null,8,["value"])])])])}}}),Lxt=lt(wxt,[["__scopeId","data-v-8465b2f0"]]),Txt={class:"audio-style-panel"},Oxt={class:"row"},Pxt={class:"row switch-row"},Cxt={class:"switch-wrapper",style:{width:"60%"}},Nxt={class:"row switch-row"},Ixt={class:"switch-wrapper",style:{width:"60%"}},kxt=tt({__name:"AudioStylePanel",setup(t){const e=It(),{handleElement:n}=nt(Wt()),r=n,{addHistorySnapshot:a}=Pn(),i=o=>{n.value&&(e.updateElement({id:n.value.id,props:o}),a())};return(o,s)=>(V(),H("div",Txt,[I("div",Oxt,[s[3]||(s[3]=I("div",{style:{width:"40%"}},"图标颜色:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:te(r).color,"onUpdate:modelValue":s[0]||(s[0]=l=>i({color:l}))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:te(r).color},null,8,["color"])]),_:1})]),I("div",Pxt,[s[4]||(s[4]=I("div",{style:{width:"40%"}},"自动播放:",-1)),I("div",Cxt,[U(_u,{value:te(r).autoplay,"onUpdate:value":s[1]||(s[1]=l=>i({autoplay:l}))},null,8,["value"])])]),I("div",Nxt,[s[5]||(s[5]=I("div",{style:{width:"40%"}},"循环播放:",-1)),I("div",Ixt,[U(_u,{value:te(r).loop,"onUpdate:value":s[2]||(s[2]=l=>i({loop:l}))},null,8,["value"])])])]))}}),Ext=lt(kxt,[["__scopeId","data-v-f70950aa"]]),Fxt={class:"element-style-panel"},Xxt=tt({__name:"index",setup(t){const e={[vn.TEXT]:xAt,[vn.IMAGE]:dRt,[vn.SHAPE]:VRt,[vn.LINE]:obt,[vn.CHART]:Hbt,[vn.TABLE]:cxt,[vn.LATEX]:vxt,[vn.VIDEO]:Lxt,[vn.AUDIO]:Ext},{handleElement:n}=nt(Wt()),r=Fe(()=>n.value&&e[n.value.type]||null);return(a,i)=>(V(),H("div",Fxt,[(V(),Ue(Eh(r.value)))]))}}),Dxt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Vxt(t,e){return V(),H("svg",Dxt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M12 24h30v18H12z"}),I("path",{"stroke-linecap":"round",d:"M6 8v9h9"}),I("path",{"stroke-linecap":"round",d:"M38.475 13.299C35.195 8.87 29.933 6 24 6c-5.821 0-10.997 2.763-14.287 7.05L6 17"})],-1)]))}const Uxt=vt({name:"icon-park-outline-rotate",render:Vxt}),Wxt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Yxt(t,e){return V(),H("svg",Wxt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("rect",{width:"34",height:"22",x:"7",y:"22.048",rx:"2"}),I("path",{"stroke-linecap":"round",d:"M14 22v-7.995c-.005-5.135 3.923-9.438 9.086-9.954S32.967 6.974 34 12.006M24 30v6"})],-1)]))}const Bxt=vt({name:"icon-park-outline-unlock",render:Yxt}),Zxt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Qxt(t,e){return V(),H("svg",Zxt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("rect",{width:"36",height:"22",x:"6",y:"22",rx:"2"}),I("path",{"stroke-linecap":"round",d:"M14 22v-8c0-5.523 4.477-10 10-10s10 4.477 10 10v8m-10 8v6"})],-1)]))}const uOe=vt({name:"icon-park-outline-lock",render:Qxt}),Kxt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Hxt(t,e){return V(),H("svg",Kxt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M17 6h14v28H17z"}),I("path",{"stroke-linecap":"round",d:"M42 42H6"})],-1)]))}const nte=vt({name:"icon-park-outline-align-bottom",render:Hxt}),Gxt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function $xt(t,e){return V(),H("svg",Gxt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M7 17h34v14H7z"}),I("path",{"stroke-linecap":"round",d:"M24 6v36"})],-1)]))}const rte=vt({name:"icon-park-outline-align-horizontally",render:$xt}),zxt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Jxt(t,e){return V(),H("svg",zxt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M17 14.5h14v28H17z"}),I("path",{"stroke-linecap":"round",d:"M42 6.5H6"})],-1)]))}const ate=vt({name:"icon-park-outline-align-top",render:Jxt}),jxt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function qxt(t,e){return V(),H("svg",jxt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M6 17h28v14H6z"}),I("path",{"stroke-linecap":"round",d:"M42 6v36"})],-1)]))}const ite=vt({name:"icon-park-outline-align-right",render:qxt}),eSt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function tSt(t,e){return V(),H("svg",eSt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M17 7h14v34H17z"}),I("path",{"stroke-linecap":"round",d:"M42 24H6"})],-1)]))}const ote=vt({name:"icon-park-outline-align-vertically",render:tSt}),nSt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function rSt(t,e){return V(),H("svg",nSt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M14.5 17h28v14h-28z"}),I("path",{"stroke-linecap":"round",d:"M6.5 6v36"})],-1)]))}const ste=vt({name:"icon-park-outline-align-left",render:rSt}),aSt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function iSt(t,e){return V(),H("svg",aSt,e[0]||(e[0]=[lj('<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="4"><path stroke-linejoin="round" d="M30 18h11a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1H19a1 1 0 0 1-1-1V30M9.97 6H6v4.034M9.997 30H6v-3.988"></path><path stroke-linejoin="round" d="M26 30h3.997v-3.988M26.002 6H30v3.998"></path><path d="M16.028 6h3.98"></path><path stroke-linejoin="round" d="M6 16v4.015M30 16v4.015M15.992 30H20"></path></g>',1)]))}const fOe=vt({name:"icon-park-outline-sent-to-back",render:iSt}),oSt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function sSt(t,e){return V(),H("svg",oSt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-width":"4"},[I("path",{"stroke-linejoin":"round",d:"M41 18H19a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1V19a1 1 0 0 0-1-1Z"}),I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.97 6H6v4.034M9.997 30H6v-3.988M26.002 6H30v4.015M16.028 6h3.98M6 16v4m24-4v2.007"}),I("path",{"stroke-linecap":"round",d:"M15.992 30H18"})],-1)]))}const dOe=vt({name:"icon-park-outline-bring-to-front",render:sSt}),lSt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function cSt(t,e){return V(),H("svg",lSt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M14 21v13h13m-6-20h13v13M5 21V5h16v16zm22 22V27h16v16z"},null,-1)]))}const hOe=vt({name:"icon-park-outline-bring-to-front-one",render:cSt}),uSt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function fSt(t,e){return V(),H("svg",uSt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M14 21H5V5h16v9"}),I("path",{"stroke-linecap":"round",d:"M32 27h11v16H27V32"}),I("path",{d:"M14 32V14h18v18z"})],-1)]))}const pOe=vt({name:"icon-park-outline-send-to-back",render:fSt}),dSt={class:"element-positopn-panel"},hSt={class:"row"},pSt={key:0,class:"row"},vSt={key:1,style:{width:"10%"}},gSt={class:"row"},mSt=tt({__name:"ElementPositionPanel",setup(t){const e=It(),{handleElement:n,handleElementId:r}=nt(Wt()),a=we(0),i=we(0),o=we(0),s=we(0),l=we(0),c=we(!1),u=Fe(()=>n.value&&A5e[n.value.type]||20),f=Fe(()=>{var w;return((w=n.value)==null?void 0:w.type)==="text"&&!n.value.vertical}),d=Fe(()=>{var w;return((w=n.value)==null?void 0:w.type)==="text"&&n.value.vertical});qt(n,()=>{n.value&&(a.value=Vr.round(n.value.left,1),i.value=Vr.round(n.value.top,1),c.value="fixedRatio"in n.value&&!!n.value.fixedRatio,n.value.type!=="line"&&(o.value=Vr.round(n.value.width,1),s.value=Vr.round(n.value.height,1),l.value="rotate"in n.value&&n.value.rotate!==void 0?Vr.round(n.value.rotate,1):0))},{deep:!0,immediate:!0});const{orderElement:h}=v8(),{alignElementToCanvas:p}=qD(),{addHistorySnapshot:v}=Pn(),g=w=>{const _={left:w};e.updateElement({id:r.value,props:_}),v()},y=w=>{const _={top:w};e.updateElement({id:r.value,props:_}),v()},m=(w,_)=>{if(n.value&&n.value.type==="shape"&&"pathFormula"in n.value&&n.value.pathFormula){const T=by[n.value.pathFormula];let O="";return"editable"in T&&T.editable?O=T.formula(w,_,n.value.keypoints):O=T.formula(w,_),{viewBox:[w,_],path:O}}return null},R=w=>{if(!n.value||n.value.type==="line"||d.value)return;let _=s.value;if(c.value){const N=o.value/s.value;_=w/N<u.value?u.value:w/N}let T={width:w,height:_};const O=m(w,_);O&&(T={width:w,height:_,...O}),e.updateElement({id:r.value,props:T}),v()},A=w=>{if(!n.value||n.value.type==="line"||n.value.type==="table"||f.value)return;let _=o.value;if(c.value){const N=o.value/s.value;_=w*N<u.value?u.value:w*N}let T={width:_,height:w};const O=m(_,w);O&&(T={width:_,height:w,...O}),e.updateElement({id:r.value,props:T}),v()},x=w=>{const _={rotate:w};e.updateElement({id:r.value,props:_}),v()},M=w=>{const _={fixedRatio:w};e.updateElement({id:r.value,props:_}),v()},S=w=>{let _=Math.floor(l.value/45)*45;w==="+"?_=_+45:w==="-"&&(_=_-45),_<-180&&(_=-180),_>180&&(_=180);const T={rotate:_};e.updateElement({id:r.value,props:T}),v()};return(w,_)=>{const T=pOe,O=hOe,N=dOe,P=fOe,C=ste,E=ote,F=ite,Y=ate,Q=rte,K=nte,ne=uOe,Z=Bxt,$=Uxt,G=pr("tooltip");return V(),H("div",dSt,[_[31]||(_[31]=I("div",{class:"title"},"层级:",-1)),U(Br,{class:"row"},{default:pe(()=>[U(Mt,{style:{flex:"1"},onClick:_[0]||(_[0]=ee=>te(h)(te(n),te(Qa).TOP))},{default:pe(()=>[U(T),_[18]||(_[18]=rt(" 置顶"))]),_:1,__:[18]}),U(Mt,{style:{flex:"1"},onClick:_[1]||(_[1]=ee=>te(h)(te(n),te(Qa).BOTTOM))},{default:pe(()=>[U(O),_[19]||(_[19]=rt(" 置底"))]),_:1,__:[19]})]),_:1}),U(Br,{class:"row"},{default:pe(()=>[U(Mt,{style:{flex:"1"},onClick:_[2]||(_[2]=ee=>te(h)(te(n),te(Qa).UP))},{default:pe(()=>[U(N),_[20]||(_[20]=rt(" 上移"))]),_:1,__:[20]}),U(Mt,{style:{flex:"1"},onClick:_[3]||(_[3]=ee=>te(h)(te(n),te(Qa).DOWN))},{default:pe(()=>[U(P),_[21]||(_[21]=rt(" 下移"))]),_:1,__:[21]})]),_:1}),U(hn),_[32]||(_[32]=I("div",{class:"title"},"对齐:",-1)),U(Br,{class:"row"},{default:pe(()=>[yt((V(),Ue(Mt,{style:{flex:"1"},onClick:_[4]||(_[4]=ee=>te(p)(te(qn).LEFT))},{default:pe(()=>[U(C)]),_:1})),[[G,"左对齐"]]),yt((V(),Ue(Mt,{style:{flex:"1"},onClick:_[5]||(_[5]=ee=>te(p)(te(qn).HORIZONTAL))},{default:pe(()=>[U(E)]),_:1})),[[G,"水平居中"]]),yt((V(),Ue(Mt,{style:{flex:"1"},onClick:_[6]||(_[6]=ee=>te(p)(te(qn).RIGHT))},{default:pe(()=>[U(F)]),_:1})),[[G,"右对齐"]])]),_:1}),U(Br,{class:"row"},{default:pe(()=>[yt((V(),Ue(Mt,{style:{flex:"1"},onClick:_[7]||(_[7]=ee=>te(p)(te(qn).TOP))},{default:pe(()=>[U(Y)]),_:1})),[[G,"上对齐"]]),yt((V(),Ue(Mt,{style:{flex:"1"},onClick:_[8]||(_[8]=ee=>te(p)(te(qn).VERTICAL))},{default:pe(()=>[U(Q)]),_:1})),[[G,"垂直居中"]]),yt((V(),Ue(Mt,{style:{flex:"1"},onClick:_[9]||(_[9]=ee=>te(p)(te(qn).BOTTOM))},{default:pe(()=>[U(K)]),_:1})),[[G,"下对齐"]])]),_:1}),U(hn),I("div",hSt,[U(vl,{min:-1e3,step:5,value:a.value,"onUpdate:value":_[10]||(_[10]=ee=>g(ee)),style:{width:"45%"}},{prefix:pe(()=>_[22]||(_[22]=[rt(" 水平: ")])),_:1},8,["value"]),_[24]||(_[24]=I("div",{style:{width:"10%"}},null,-1)),U(vl,{min:-1e3,step:5,value:i.value,"onUpdate:value":_[11]||(_[11]=ee=>y(ee)),style:{width:"45%"}},{prefix:pe(()=>_[23]||(_[23]=[rt(" 垂直: ")])),_:1},8,["value"])]),te(n).type!=="line"?(V(),H("div",pSt,[U(vl,{min:u.value,max:1500,step:5,disabled:d.value,value:o.value,"onUpdate:value":_[12]||(_[12]=ee=>R(ee)),style:{width:"45%"}},{prefix:pe(()=>_[25]||(_[25]=[rt(" 宽度: ")])),_:1},8,["min","disabled","value"]),["image","shape","audio"].includes(te(n).type)?yt((V(),H("span",{key:0,style:{width:"10%"},class:mt(["icon-btn",{active:c.value}]),onClick:_[13]||(_[13]=ee=>M(!c.value))},[c.value?(V(),Ue(ne,{key:0})):(V(),Ue(Z,{key:1}))],2)),[[G,c.value?"解除宽高比锁定":"宽高比锁定"]]):(V(),H("div",vSt)),U(vl,{min:u.value,max:800,step:5,disabled:f.value||te(n).type==="table",value:s.value,"onUpdate:value":_[14]||(_[14]=ee=>A(ee)),style:{width:"45%"}},{prefix:pe(()=>_[26]||(_[26]=[rt(" 高度: ")])),_:1},8,["min","disabled","value"])])):at("",!0),["line","video","audio"].includes(te(n).type)?at("",!0):(V(),H(qe,{key:1},[U(hn),I("div",gSt,[U(vl,{min:-180,max:180,step:5,value:l.value,"onUpdate:value":_[15]||(_[15]=ee=>x(ee)),style:{width:"45%"}},{prefix:pe(()=>_[27]||(_[27]=[rt(" 旋转: ")])),_:1},8,["value"]),_[30]||(_[30]=I("div",{style:{width:"7%"}},null,-1)),I("div",{class:"text-btn",onClick:_[16]||(_[16]=ee=>S("-")),style:{width:"24%"}},[U($),_[28]||(_[28]=rt(" -45°"))]),I("div",{class:"text-btn",onClick:_[17]||(_[17]=ee=>S("+")),style:{width:"24%"}},[U($,{style:{transform:"rotateY(180deg)"}}),_[29]||(_[29]=rt(" +45°"))])])],64))])}}}),ySt=lt(mSt,[["__scopeId","data-v-f2f4c77e"]]),ASt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function RSt(t,e){return V(),H("svg",ASt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M24 4v8"}),I("path",{d:"m22 22l20 4l-6 4l6 6l-6 6l-6-6l-4 6z","clip-rule":"evenodd"}),I("path",{d:"m38.142 9.858l-5.657 5.657M9.858 38.142l5.657-5.657M4 24h8M9.858 9.858l5.657 5.657"})],-1)]))}const bSt=vt({name:"icon-park-outline-click",render:RSt}),xSt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function SSt(t,e){return V(),H("svg",xSt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"m24.95 42.36l5.466-11.99l12.689-3.72l-9.767-8.88l.368-13.163l-11.502 6.503l-12.46-4.416l2.657 12.9l-8.069 10.433l13.145 1.47zm11.228-6.306l8 7.964"},null,-1)]))}const MSt=vt({name:"icon-park-outline-effects",render:SSt}),FH=1e3,_St="click",Ns="animate__",eRe=[{type:"bounce",name:"弹跳",children:[{name:"弹入",value:"bounceIn"},{name:"向右弹入",value:"bounceInLeft"},{name:"向左弹入",value:"bounceInRight"},{name:"向上弹入",value:"bounceInUp"},{name:"向下弹入",value:"bounceInDown"}]},{type:"fade",name:"浮现",children:[{name:"浮入",value:"fadeIn"},{name:"向下浮入",value:"fadeInDown"},{name:"向下长距浮入",value:"fadeInDownBig"},{name:"向右浮入",value:"fadeInLeft"},{name:"向右长距浮入",value:"fadeInLeftBig"},{name:"向左浮入",value:"fadeInRight"},{name:"向左长距浮入",value:"fadeInRightBig"},{name:"向上浮入",value:"fadeInUp"},{name:"向上长距浮入",value:"fadeInUpBig"},{name:"从左上浮入",value:"fadeInTopLeft"},{name:"从右上浮入",value:"fadeInTopRight"},{name:"从左下浮入",value:"fadeInBottomLeft"},{name:"从右下浮入",value:"fadeInBottomRight"}]},{type:"rotate",name:"旋转",children:[{name:"旋转进入",value:"rotateIn"},{name:"绕左下进入",value:"rotateInDownLeft"},{name:"绕右下进入",value:"rotateInDownRight"},{name:"绕左上进入",value:"rotateInUpLeft"},{name:"绕右上进入",value:"rotateInUpRight"}]},{type:"zoom",name:"缩放",children:[{name:"放大进入",value:"zoomIn"},{name:"向下放大进入",value:"zoomInDown"},{name:"从左放大进入",value:"zoomInLeft"},{name:"从右放大进入",value:"zoomInRight"},{name:"向上放大进入",value:"zoomInUp"}]},{type:"slide",name:"滑入",children:[{name:"向下滑入",value:"slideInDown"},{name:"从右滑入",value:"slideInLeft"},{name:"从左滑入",value:"slideInRight"},{name:"向上滑入",value:"slideInUp"}]},{type:"flip",name:"翻转",children:[{name:"X轴翻转进入",value:"flipInX"},{name:"Y轴翻转进入",value:"flipInY"}]},{type:"back",name:"放大滑入",children:[{name:"向下放大滑入",value:"backInDown"},{name:"从左放大滑入",value:"backInLeft"},{name:"从右放大滑入",value:"backInRight"},{name:"向上放大滑入",value:"backInUp"}]},{type:"lightSpeed",name:"飞入",children:[{name:"从右飞入",value:"lightSpeedInRight"},{name:"从左飞入",value:"lightSpeedInLeft"}]}],tRe=[{type:"bounce",name:"弹跳",children:[{name:"弹出",value:"bounceOut"},{name:"向左弹出",value:"bounceOutLeft"},{name:"向右弹出",value:"bounceOutRight"},{name:"向上弹出",value:"bounceOutUp"},{name:"向下弹出",value:"bounceOutDown"}]},{type:"fade",name:"浮现",children:[{name:"浮出",value:"fadeOut"},{name:"向下浮出",value:"fadeOutDown"},{name:"向下长距浮出",value:"fadeOutDownBig"},{name:"向左浮出",value:"fadeOutLeft"},{name:"向左长距浮出",value:"fadeOutLeftBig"},{name:"向右浮出",value:"fadeOutRight"},{name:"向右长距浮出",value:"fadeOutRightBig"},{name:"向上浮出",value:"fadeOutUp"},{name:"向上长距浮出",value:"fadeOutUpBig"},{name:"从左上浮出",value:"fadeOutTopLeft"},{name:"从右上浮出",value:"fadeOutTopRight"},{name:"从左下浮出",value:"fadeOutBottomLeft"},{name:"从右下浮出",value:"fadeOutBottomRight"}]},{type:"rotate",name:"旋转",children:[{name:"旋转退出",value:"rotateOut"},{name:"绕左下退出",value:"rotateOutDownLeft"},{name:"绕右下退出",value:"rotateOutDownRight"},{name:"绕左上退出",value:"rotateOutUpLeft"},{name:"绕右上退出",value:"rotateOutUpRight"}]},{type:"zoom",name:"缩放",children:[{name:"缩小退出",value:"zoomOut"},{name:"向下缩小退出",value:"zoomOutDown"},{name:"从左缩小退出",value:"zoomOutLeft"},{name:"从右缩小退出",value:"zoomOutRight"},{name:"向上缩小退出",value:"zoomOutUp"}]},{type:"slide",name:"滑出",children:[{name:"向下滑出",value:"slideOutDown"},{name:"从左滑出",value:"slideOutLeft"},{name:"从右滑出",value:"slideOutRight"},{name:"向上滑出",value:"slideOutUp"}]},{type:"flip",name:"翻转",children:[{name:"X轴翻转退出",value:"flipOutX"},{name:"Y轴翻转退出",value:"flipOutY"}]},{type:"back",name:"缩小滑出",children:[{name:"向下缩小滑出",value:"backOutDown"},{name:"从左缩小滑出",value:"backOutLeft"},{name:"从右缩小滑出",value:"backOutRight"},{name:"向上缩小滑出",value:"backOutUp"}]},{type:"lightSpeed",name:"飞出",children:[{name:"从右飞出",value:"lightSpeedOutRight"},{name:"从左飞出",value:"lightSpeedOutLeft"}]}],nRe=[{type:"shake",name:"晃动",children:[{name:"左右摇晃",value:"shakeX"},{name:"上下摇晃",value:"shakeY"},{name:"摇头",value:"headShake"},{name:"摆动",value:"swing"},{name:"晃动",value:"wobble"},{name:"惊恐",value:"tada"},{name:"果冻",value:"jello"}]},{type:"other",name:"其他",children:[{name:"弹跳",value:"bounce"},{name:"闪烁",value:"flash"},{name:"脉搏",value:"pulse"},{name:"橡皮筋",value:"rubberBand"},{name:"心跳(快)",value:"heartBeat"}]}],vOe=[{label:"无",value:"no"},{label:"随机",value:"random"},{label:"左右推移",value:"slideX"},{label:"上下推移",value:"slideY"},{label:"左右推移(3D)",value:"slideX3D"},{label:"上下推移(3D)",value:"slideY3D"},{label:"淡入淡出",value:"fade"},{label:"旋转",value:"rotate"},{label:"上下展开",value:"scaleY"},{label:"左右展开",value:"scaleX"},{label:"放大",value:"scale"},{label:"缩小",value:"scaleReverse"}],wSt={class:"element-animation-panel"},LSt={key:0,class:"element-animation"},TSt={class:"type-title"},OSt={class:"pool-item-wrapper"},PSt=["onMouseenter","onClick"],CSt={key:0,class:"mask"},NSt={key:1,class:"tip"},ISt=["onClick"],kSt={class:"sequence-content"},ESt={class:"index"},FSt={class:"text"},XSt={class:"handler"},DSt={key:0,class:"configs"},VSt={class:"config-item"},USt={class:"config-item"},WSt={class:"config-item"},YSt=tt({__name:"ElementAnimationPanel",setup(t){const e={};for(const E of eRe)for(const F of E.children)e[F.value]=F.name;for(const E of tRe)for(const F of E.children)e[F.value]=F.name;for(const E of nRe)for(const F of E.children)e[F.value]=F.name;const n=["in","out","attention"],r=It(),{handleElement:a,handleElementId:i}=nt(Wt()),{currentSlide:o,formatedAnimations:s,currentSlideAnimations:l}=nt(r),c=[{key:"in",label:"入场",color:"#68a490"},{key:"out",label:"退场",color:"#d86344"},{key:"attention",label:"强调",color:"#e8b76a"}],u=we("in"),f=we(!1);qt(()=>i.value,()=>{h.value=!1});const d=we(""),h=we(!1),{addHistorySnapshot:p}=Pn(),{selectElement:v}=p8(),g=Fe(()=>{const E=[];for(let F=0;F<s.value.length;F++){const Y=s.value[F];for(let Q=0;Q<Y.animations.length;Q++){const K=Y.animations[Q],ne=o.value.elements.find(G=>G.id===K.elId);if(!ne)continue;const Z=i_[ne.type],$=e[K.effect];E.push({...K,index:Q===0?F+1:"",elType:Z,animationEffect:$})}}return E}),y=Fe(()=>l.value.filter(Y=>Y.elId===i.value)||[]),m=E=>{const F=l.value.filter(Y=>Y.id!==E);r.updateSlide({animations:F}),p()},R=E=>{const{newIndex:F,oldIndex:Y}=E;if(F===void 0||Y===void 0||F===Y)return;const Q=JSON.parse(JSON.stringify(l.value)),K=Q[Y];Q.splice(Y,1),Q.splice(F,0,K),r.updateSlide({animations:Q}),p()},A=(E,F,Y)=>{const Q=document.querySelector(`#editable-element-${E} [class^=editable-element-]`);if(Q){const K=`${Ns}${F}`;document.documentElement.style.setProperty("--animate-duration",`${Y}ms`),Q.classList.add(`${Ns}animated`,K);const ne=()=>{document.documentElement.style.removeProperty("--animate-duration"),Q.classList.remove(`${Ns}animated`,K)};Q.addEventListener("animationend",ne,{once:!0})}},x=async()=>{f.value=!f.value;for(let E=0;E<g.value.length&&f.value;E++){const F=g.value[E];F.index!==1&&F.trigger!=="meantime"&&await new Promise(Y=>setTimeout(Y,F.duration+100)),A(F.elId,F.effect,F.duration),E>=g.value.length-1&&(f.value=!1)}},M=(E,F)=>{if(F<100||F>5e3)return;const Y=l.value.map(Q=>Q.id===E?{...Q,duration:F}:Q);r.updateSlide({animations:Y}),p()},S=(E,F)=>{const Y=l.value.map(Q=>Q.id===E?{...Q,trigger:F}:Q);r.updateSlide({animations:Y}),p()},w=(E,F)=>{const Y=l.value.map(ne=>ne.id===_.value?{...ne,type:E,effect:F}:ne);r.updateSlide({animations:Y}),h.value=!1,p();const Q=l.value.find(ne=>ne.elId===i.value),K=(Q==null?void 0:Q.duration)||FH;setTimeout(()=>{A(i.value,F,K)},0)},_=we(""),T=(E,F)=>{if(_.value){w(E,F);return}const Y=JSON.parse(JSON.stringify(l.value));Y.push({id:Gn(10),elId:i.value,type:E,effect:F,duration:FH,trigger:_St}),r.updateSlide({animations:Y}),h.value=!1,p(),setTimeout(()=>{A(i.value,F,FH)},0)},O=we(!1),N=E=>{E?setTimeout(()=>O.value=!0,600):O.value=!1},P=E=>{h.value=!0,_.value=E,N(!0)},C={in:eRe,out:tRe,attention:nRe};return(E,F)=>{const Y=MSt,Q=bSt,K=OV,ne=Sj,Z=sOe,$=Dee,G=pr("tooltip");return V(),H("div",wSt,[te(a)?(V(),H("div",LSt,[U(sn,{trigger:"click",value:h.value,"onUpdate:value":[F[3]||(F[3]=ee=>h.value=ee),F[4]||(F[4]=ee=>N(ee))],style:{width:"100%"}},{content:pe(()=>[U(Wf,{tabs:c,value:u.value,"onUpdate:value":F[0]||(F[0]=ee=>u.value=ee),tabsStyle:{marginBottom:"20px"},tabStyle:{width:"33.333%"},spaceAround:""},null,8,["value"]),(V(),H(qe,null,bt(n,ee=>(V(),H(qe,null,[u.value===ee?(V(),H("div",{class:mt(["animation-pool",ee]),key:ee},[(V(!0),H(qe,null,bt(C[ee],ce=>(V(),H("div",{class:"pool-type",key:ce.name},[I("div",TSt,Vt(ce.name)+":",1),I("div",OSt,[(V(!0),H(qe,null,bt(ce.children,B=>(V(),H("div",{class:"pool-item",key:B.name,onMouseenter:xe=>d.value=B.value,onMouseleave:F[1]||(F[1]=xe=>d.value=""),onClick:xe=>T(ee,B.value)},[I("div",{class:mt(["animation-box",[`${te(Ns)}animated`,`${te(Ns)}fast`,d.value===B.value&&`${te(Ns)}${B.value}`]])},Vt(B.name),3)],40,PSt))),128))])]))),128)),O.value?at("",!0):(V(),H("div",CSt))],2)):at("",!0)],64))),64))]),default:pe(()=>[U(Mt,{class:"element-animation-btn",onClick:F[2]||(F[2]=ee=>_.value="")},{default:pe(()=>[U(Y),F[6]||(F[6]=rt(" 添加动画 "))]),_:1,__:[6]})]),_:1},8,["value"])])):(V(),H("div",NSt,[U(Q,{style:{"margin-right":"5px"}}),F[7]||(F[7]=rt(" 选中画布中的元素添加动画"))])),U(hn),U(te(NV),{class:"animation-sequence",modelValue:g.value,animation:200,scroll:!0,scrollSensitivity:50,handle:".sequence-content",itemKey:"id",onEnd:R},{item:pe(({element:ee})=>{var ce,B;return[I("div",{class:mt(["sequence-item",[ee.type,{active:((ce=te(a))==null?void 0:ce.id)===ee.elId}]]),onClick:xe=>te(v)(ee.elId)},[I("div",kSt,[I("div",ESt,Vt(ee.index),1),I("div",FSt,"「"+Vt(ee.elType)+"」"+Vt(ee.animationEffect),1),I("div",XSt,[yt(U(K,{class:"handler-btn",onClick:on(xe=>A(ee.elId,ee.effect,ee.duration),["stop"])},null,8,["onClick"]),[[G,"预览"]]),yt(U(ne,{class:"handler-btn",onClick:on(xe=>m(ee.id),["stop"])},null,8,["onClick"]),[[G,"删除"]])])]),((B=y.value[0])==null?void 0:B.elId)===ee.elId?(V(),H("div",DSt,[U(hn,{margin:16}),I("div",VSt,[F[8]||(F[8]=I("div",{style:{width:"35%"}},"持续时长:",-1)),U(vl,{min:500,max:3e3,step:500,value:ee.duration,"onUpdate:value":xe=>M(ee.id,xe),style:{width:"65%"}},null,8,["value","onUpdate:value"])]),I("div",USt,[F[9]||(F[9]=I("div",{style:{width:"35%"}},"触发方式:",-1)),U(La,{value:ee.trigger,"onUpdate:value":xe=>S(ee.id,xe),style:{width:"65%"},options:[{label:"主动触发",value:"click"},{label:"与上一动画同时",value:"meantime"},{label:"上一动画之后",value:"auto"}]},null,8,["value","onUpdate:value"])]),I("div",WSt,[U(Mt,{style:{width:"100%"},onClick:xe=>P(ee.id)},{default:pe(()=>[U(Z),F[10]||(F[10]=rt(" 更换动画"))]),_:2,__:[10]},1032,["onClick"])])])):at("",!0)],10,ISt)]}),_:1},8,["modelValue"]),g.value.length>=2?(V(),H(qe,{key:2},[U(hn),U(Mt,{onClick:F[5]||(F[5]=ee=>x())},{default:pe(()=>[f.value?(V(),Ue($,{key:0})):(V(),Ue(K,{key:1})),rt(" "+Vt(f.value?"停止预览":"预览全部"),1)]),_:1})],64)):at("",!0)])}}}),BSt=lt(YSt,[["__scopeId","data-v-e6ffcd02"]]),ZSt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function QSt(t,e){return V(),H("svg",ZSt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"m19 12l12 12l-12 12"},null,-1)]))}const gOe=vt({name:"icon-park-outline-right",render:QSt}),KSt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function HSt(t,e){return V(),H("svg",KSt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M43 11L16.875 37L5 25.182"},null,-1)]))}const lte=vt({name:"icon-park-outline-check",render:HSt}),GSt=[{background:"#ffffff",fontColor:"#333333",borderColor:"#41719c",fontname:"",colors:["#5b9bd5","#ed7d31","#a5a5a5","#ffc000","#4472c4","#70ad47"]},{background:"#ffffff",fontColor:"#333333",borderColor:"#5f6f1c",fontname:"",colors:["#83992a","#3c9670","#44709d","#a23b32","#d87728","#deb340"]},{background:"#ffffff",fontColor:"#333333",borderColor:"#a75f0a",fontname:"",colors:["#e48312","#bd582c","#865640","#9b8357","#c2bc80","#94a088"]},{background:"#ffffff",fontColor:"#333333",borderColor:"#7c91a8",fontname:"",colors:["#bdc8df","#003fa9","#f5ba00","#ff7567","#7676d9","#923ffc"]},{background:"#ffffff",fontColor:"#333333",borderColor:"#688e19",fontname:"",colors:["#90c225","#54a121","#e6b91e","#e86618","#c42f19","#918756"]},{background:"#ffffff",fontColor:"#333333",borderColor:"#4495b0",fontname:"",colors:["#1cade4","#2683c6","#27ced7","#42ba97","#3e8853","#62a39f"]},{background:"#e9efd6",fontColor:"#333333",borderColor:"#782009",fontname:"",colors:["#a5300f","#de7e18","#9f8351","#728653","#92aa4c","#6aac91"]},{background:"#17444e",fontColor:"#ffffff",borderColor:"#800c0b",fontname:"",colors:["#b01513","#ea6312","#e6b729","#6bab90","#55839a","#9e5d9d"]},{background:"#36234d",fontColor:"#ffffff",borderColor:"#830949",fontname:"",colors:["#b31166","#e33d6f","#e45f3c","#e9943a","#9b6bf2","#d63cd0"]},{background:"#247fad",fontColor:"#ffffff",borderColor:"#032e45",fontname:"",colors:["#052f61","#a50e82","#14967c","#6a9e1f","#e87d37","#c62324"]},{background:"#103f55",fontColor:"#ffffff",borderColor:"#2d7f8a",fontname:"",colors:["#40aebd","#97e8d5","#a1cf49","#628f3e","#f2df3a","#fcb01c"]},{background:"#242367",fontColor:"#ffffff",borderColor:"#7d2b8d",fontname:"",colors:["#ac3ec1","#477bd1","#46b298","#90ba4c","#dd9d31","#e25345"]},{background:"#e4b75e",fontColor:"#333333",borderColor:"#b68317",fontname:"",colors:["#a5644e","#b58b80","#c3986d","#a19574","#c17529","#826277"]},{background:"#333333",fontColor:"#ffffff",borderColor:"#7c91a8",fontname:"",colors:["#bdc8df","#003fa9","#f5ba00","#ff7567","#7676d9","#923ffc"]},{background:"#2b2b2d",fontColor:"#ffffff",borderColor:"#893011",fontname:"",colors:["#bc451b","#d3ba68","#bb8640","#ad9277","#a55a43","#ad9d7b"]},{background:"#171b1e",fontColor:"#ffffff",borderColor:"#505050",fontname:"",colors:["#6f6f6f","#bfbfa5","#dbd084","#e7bf5f","#e9a039","#cf7133"]}],mOe=()=>{const t=It(),{slides:e,theme:n}=nt(t),{addHistorySnapshot:r}=Pn(),a=f=>{var x,M,S,w,_,T,O,N,P;const d=Array.isArray(f)?f:[f],h=[],p=[],v=[],g=[];for(const C of d){if(C.background)if(C.background.type==="solid"&&C.background.color)h.push({area:1,value:C.background.color});else if(C.background.type==="gradient"&&C.background.gradient){const E=C.background.gradient.colors.length;h.push(...C.background.gradient.colors.map(F=>({area:1/E,value:F.color})))}else h.push({area:1,value:n.value.backgroundColor});for(const E of C.elements){const F=E.width;let Y=0;if(E.type==="line"){const[K,ne]=E.start,[Z,$]=E.end;Y=Math.sqrt(Math.pow(Math.abs(K-Z),2)+Math.pow(Math.abs(ne-$),2))}else Y=E.height;const Q=F*Y;if(E.type==="shape"||E.type==="text"){if(E.fill&&p.push({area:Q,value:E.fill}),E.type==="shape"&&E.gradient){const ce=E.gradient.colors.length;p.push(...E.gradient.colors.map(B=>({area:1/ce*Q,value:B.color})))}const K=(E.type==="shape"?(x=E.text)==null?void 0:x.content:E.content)||"";if(!K)continue;const ne=K.replace(/<[^>]+>/g,"").replace(/\s*/g,""),Z=K.match(/<[^>]+color: .+?<\/.+?>/g),$=K.match(/<[^>]+font-family: .+?<\/.+?>/g);let G=1,ee=1;if(Z)for(const ce of Z){const B=ce.match(/color: (.+?);/);if(!B)continue;const xe=ce.replace(/<[^>]+>/g,"").replace(/\s*/g,""),_e=B[1],se=xe.length/ne.length;G=G-se,v.push({area:Q*se,value:_e})}if($)for(const ce of $){const B=ce.match(/font-family: (.+?);/);if(!B)continue;const xe=ce.replace(/<[^>]+>/g,"").replace(/\s*/g,""),_e=B[1],se=xe.length/ne.length;ee=ee-se,g.push({area:Q*se,value:_e})}if(G){const B=(E.type==="shape"?(M=E.text)==null?void 0:M.defaultColor:E.defaultColor)||n.value.fontColor;v.push({area:Q*G,value:B})}if(ee){const B=(E.type==="shape"?(S=E.text)==null?void 0:S.defaultFontName:E.defaultFontName)||n.value.fontName;g.push({area:Q*ee,value:B})}}else if(E.type==="table"){const K=E.data.length*E.data[0].length;let ne=0;for(const Z of E.data)for(const $ of Z)if((w=$.style)!=null&&w.backcolor&&(ne+=1,p.push({area:Q/K,value:(_=$.style)==null?void 0:_.backcolor})),$.text){const G=$.text.length>=10?1:$.text.length/10;(T=$.style)!=null&&T.color&&v.push({area:Q/K*G,value:(O=$.style)==null?void 0:O.color}),(N=$.style)!=null&&N.fontname&&v.push({area:Q/K*G,value:(P=$.style)==null?void 0:P.fontname})}if(E.theme){const Z=1-ne/K;p.push({area:Q*Z,value:E.theme.color})}}else if(E.type==="chart"){E.fill&&p.push({area:Q*.6,value:E.fill}),E.themeColors[0]&&p.push({area:Q*.3,value:E.themeColors[0]});for(const K of E.themeColors)Ct(K).getAlpha()!==0&&p.push({area:Q/E.themeColors.length*.1,value:K})}else E.type==="line"?p.push({area:Q,value:E.color}):E.type==="audio"?p.push({area:Q,value:E.color}):E.type==="latex"&&v.push({area:Q,value:E.color})}}const y={};for(const C of h){const E=Ct(C.value).toRgbString();E!=="rgba(0, 0, 0, 0)"&&(y[E]?y[E]+=C.area:y[E]=C.area)}const m={};for(const C of p){const E=Ct(C.value).toRgbString();E!=="rgba(0, 0, 0, 0)"&&(m[E]?m[E]+=C.area:m[E]=C.area)}const R={};for(const C of v){const E=Ct(C.value).toRgbString();E!=="rgba(0, 0, 0, 0)"&&(R[E]?R[E]+=C.area:R[E]=C.area)}const A={};for(const C of g)A[C.value]?A[C.value]+=C.area:A[C.value]=C.area;return{backgroundColors:Object.keys(y).sort((C,E)=>y[E]-y[C]),themeColors:Object.keys(m).sort((C,E)=>m[E]-m[C]),fontColors:Object.keys(R).sort((C,E)=>R[E]-R[C]),fontNames:Object.keys(A).sort((C,E)=>A[E]-A[C])}},i=f=>{const d={},h=(v,g)=>{const y=Ct(v).setAlpha(1).toRgbString();d[y]?d[y]=d[y]+g:d[y]=g};for(const v of f.elements){const g=v.width,y=v.type==="line"?yWe(v):v.height,m=g*y;if(v.type==="shape"&&Ct(v.fill).getAlpha()!==0&&h(v.fill,m),v.type==="text"&&v.fill&&Ct(v.fill).getAlpha()!==0&&h(v.fill,m),v.type==="image"&&v.colorMask&&Ct(v.colorMask).getAlpha()!==0&&h(v.colorMask,m),v.type==="table"&&v.theme&&Ct(v.theme.color).getAlpha()!==0&&h(v.theme.color,m),v.type==="chart"){for(const R of v.themeColors)Ct(R).getAlpha()!==0&&h(R,m/v.themeColors.length*.1);v.themeColors[0]&&Ct(v.themeColors[0]).getAlpha()!==0&&h(v.themeColors[0],m*.3),v.fill&&Ct(v.fill).getAlpha()!==0&&h(v.fill,m*.6)}v.type==="line"&&Ct(v.color).getAlpha()!==0&&h(v.color,m),v.type==="audio"&&Ct(v.color).getAlpha()!==0&&h(v.color,m)}return Object.keys(d).sort((v,g)=>d[g]-d[v])},o=(f,d)=>{const h=[...d],p=i(f),v={};if(p.length>h.length){const y=Ct(h[0]).analogous(p.length-h.length+10).map(m=>m.toHexString()).slice(1);h.push(...y)}for(let g=0;g<p.length;g++)v[p[g]]=h[g];return v},s=(f,d)=>{const h=o(f,d.colors),p=v=>{const g=Ct(v).getAlpha(),y=h[Ct(v).setAlpha(1).toRgbString()];return y?Ct(y).setAlpha(g).toRgbString():v};(!f.background||f.background.type!=="image")&&(f.background={type:"solid",color:d.background});for(const v of f.elements){if(v.type==="shape"&&(v.fill&&(v.fill=p(v.fill)),v.gradient&&delete v.gradient,v.text&&(v.text.defaultColor=d.fontColor,v.text.defaultFontName=d.fontname,v.text.content&&(v.text.content=v.text.content.replace(/color: .+?;/g,"").replace(/font-family: .+?;/g,"")))),v.type==="text"&&(v.fill&&(v.fill=p(v.fill)),v.defaultColor=d.fontColor,v.defaultFontName=d.fontname,v.content&&(v.content=v.content.replace(/color: .+?;/g,"").replace(/font-family: .+?;/g,""))),v.type==="image"&&v.colorMask&&(v.colorMask=p(v.colorMask)),v.type==="table"){v.theme&&(v.theme.color=p(v.theme.color));for(const g of v.data)for(const y of g)y.style&&(y.style.color=d.fontColor,y.style.fontname=d.fontname)}v.type==="chart"&&(v.themeColors=[...d.colors],v.textColor=d.fontColor),v.type==="line"&&(v.color=p(v.color)),v.type==="audio"&&(v.color=p(v.color)),v.type==="latex"&&(v.color=d.fontColor),"outline"in v&&v.outline&&(d.outline&&(v.outline={...d.outline}),d.borderColor&&(v.outline.color=d.borderColor)),"shadow"in v&&v.shadow&&d.shadow&&(v.shadow=d.shadow)}};return{getSlidesThemeStyles:a,applyPresetTheme:(f,d=!1)=>{if(t.setTheme({backgroundColor:f.background,themeColors:f.colors,fontColor:f.fontColor,outline:{width:2,style:"solid",color:f.borderColor},fontName:f.fontname}),d){const h=JSON.parse(JSON.stringify(e.value));for(const p of h)s(p,f);t.setSlides(h),r()}},applyThemeToAllSlides:(f=!1)=>{const d=JSON.parse(JSON.stringify(e.value)),h={background:n.value.backgroundColor,fontColor:n.value.fontColor,borderColor:f?n.value.outline.color:void 0,fontname:n.value.fontName,colors:n.value.themeColors,outline:f?n.value.outline:void 0,shadow:f?n.value.shadow:void 0};for(const p of d)s(p,h);t.setSlides(d),r()},applyFontToAllSlides:f=>{const d=JSON.parse(JSON.stringify(e.value));for(const h of d)for(const p of h.elements)if(p.type==="shape"&&p.text&&(p.text.defaultFontName=f,p.text.content&&(p.text.content=p.text.content.replace(/font-family: .+?;/g,""))),p.type==="text"&&(p.defaultFontName=f,p.content&&(p.content=p.content.replace(/font-family: .+?;/g,""))),p.type==="table")for(const v of p.data)for(const g of v)g.style&&(g.style.fontname=f);t.setSlides(d),r()}}},$St={class:"theme-styles-extract"},zSt={class:"content"},JSt={key:0,class:"config-item"},jSt={class:"values"},qSt={class:"handler"},e4t=["onClick"],t4t=["onClick"],n4t={key:1,class:"config-item"},r4t={class:"values"},a4t={class:"handler"},i4t=["onClick"],o4t=["onClick"],s4t={key:2,class:"config-item"},l4t={class:"values"},c4t={class:"handler"},u4t=["onClick"],f4t=["onClick"],d4t={key:3,class:"config-item"},h4t={class:"values inline"},p4t=["onClick"],v4t={class:"btns"},g4t=tt({__name:"ThemeStylesExtract",emits:["close"],setup(t,{emit:e}){const n=e,r=It(),{slides:a,currentSlide:i}=nt(r),{getSlidesThemeStyles:o}=mOe(),s=[{key:"single",label:"从当前页中提取"},{key:"all",label:"从全部幻灯片提取"}],l=we("single"),c=we({});mn(()=>{const y={};for(const m of Q8)y[m.value]=m.label;c.value=y});const u=we({backgroundColors:[],themeColors:[],fontColors:[],fontNames:[]}),f=we({backgroundColor:0,themeColors:[0],fontColor:0,fontName:0});qt(l,()=>{l.value==="single"?u.value=o(i.value):u.value=o(a.value);const y=[];for(let m=0;m<Math.min(u.value.themeColors.length);m++)y.push(m);f.value={backgroundColor:0,fontColor:0,fontName:0,themeColors:y}},{immediate:!0});const d=y=>{r.setTheme(y)},h=()=>{let y=u.value.themeColors.filter((M,S)=>f.value.themeColors.includes(S));y.length>6&&(y=y.slice(0,6),Dn.warning("主题色超出数量限制,已自动选取前6个"));const m=u.value.backgroundColors[f.value.backgroundColor],R=u.value.fontColors[f.value.fontColor],A=u.value.fontNames[f.value.fontName],x={};m&&(x.backgroundColor=m),R&&(x.fontColor=R),A&&(x.fontName=A),y.length&&(x.themeColors=y),r.setTheme(x),n("close")},p=y=>{f.value.themeColors.includes(y)?f.value.themeColors=f.value.themeColors.filter(m=>m!==y):f.value.themeColors.push(y)},v=y=>{const m=["#000","#fff"];return Ct.mostReadable(y,m,{includeFallbackColors:!0}).toRgbString()},g=y=>{const m=Ct(y);return m.getAlpha()<1?m.toHex8String().toUpperCase():m.toHexString().toUpperCase()};return(y,m)=>{const R=lte;return V(),H("div",$St,[U(Wf,{tabs:s,value:l.value,"onUpdate:value":m[0]||(m[0]=A=>l.value=A),tabsStyle:{marginBottom:"12px"},tabStyle:{padding:"8px 12px"}},null,8,["value"]),I("div",zSt,[u.value.fontNames.length?(V(),H("div",JSt,[m[2]||(m[2]=I("div",{class:"label"},"字体:",-1)),I("div",jSt,[(V(!0),H(qe,null,bt(u.value.fontNames,(A,x)=>(V(),H("div",{class:"value-wrap",key:A},[I("div",{class:"value",style:We({fontFamily:A})},Vt(c.value[A]||A),5),I("div",qSt,[I("div",{class:mt(["state",{active:f.value.fontName===x}])},[U(R)],2),I("div",{class:"config-btn",onClick:M=>f.value.fontName=x},"选择",8,e4t),I("div",{class:"config-btn",onClick:M=>{d({fontName:A}),f.value.fontName=x}},"应用到主题",8,t4t)])]))),128))])])):at("",!0),u.value.fontColors.length?(V(),H("div",n4t,[m[3]||(m[3]=I("div",{class:"label"},"文字颜色:",-1)),I("div",r4t,[(V(!0),H(qe,null,bt(u.value.fontColors,(A,x)=>(V(),H("div",{class:"value-wrap",key:A},[I("div",{class:"value",style:We({backgroundColor:A,color:v(A)})},Vt(g(A)),5),I("div",a4t,[I("div",{class:mt(["state",{active:f.value.fontColor===x}])},[U(R)],2),I("div",{class:"config-btn",onClick:M=>f.value.fontColor=x},"选择",8,i4t),I("div",{class:"config-btn",onClick:M=>{d({fontColor:A}),f.value.fontColor=x}},"应用到主题",8,o4t)])]))),128))])])):at("",!0),u.value.backgroundColors.length?(V(),H("div",s4t,[m[4]||(m[4]=I("div",{class:"label"},"背景颜色:",-1)),I("div",l4t,[(V(!0),H(qe,null,bt(u.value.backgroundColors,(A,x)=>(V(),H("div",{class:"value-wrap",key:A},[I("div",{class:"value",style:We({backgroundColor:A,color:v(A)})},Vt(g(A)),5),I("div",c4t,[I("div",{class:mt(["state",{active:f.value.backgroundColor===x}])},[U(R)],2),I("div",{class:"config-btn",onClick:M=>f.value.backgroundColor=x},"选择",8,u4t),I("div",{class:"config-btn",onClick:M=>{d({backgroundColor:A}),f.value.backgroundColor=x}},"应用到主题",8,f4t)])]))),128))])])):at("",!0),u.value.themeColors.length?(V(),H("div",d4t,[m[5]||(m[5]=I("div",{class:"label"},[rt("主题色:"),I("span",{class:"tip"},"(点击色块排除不要的颜色)")],-1)),I("div",h4t,[(V(!0),H(qe,null,bt(u.value.themeColors,(A,x)=>(V(),H("div",{class:"value-wrap",key:A,onClick:M=>p(x)},[I("div",{class:mt(["value",{disabled:!f.value.themeColors.includes(x)}]),style:We({backgroundColor:A})},null,6)],8,p4t))),128))])])):at("",!0)]),I("div",v4t,[U(Mt,{class:"btn",type:"primary",onClick:m[1]||(m[1]=A=>h())},{default:pe(()=>[U(R),m[6]||(m[6]=rt(" 将选中配置保存为主题"))]),_:1,__:[6]})])])}}}),m4t=lt(g4t,[["__scopeId","data-v-72b2924e"]]),y4t={class:"theme-colors-setting"},A4t={class:"row"},R4t={class:"label",style:{width:"40%"}},b4t=tt({__name:"ThemeColorsSetting",emits:["close"],setup(t,{emit:e}){const n=e,r=It(),{theme:a}=nt(r),i=we([]);mn(()=>{const l=[...a.value.themeColors];for(;l.length<6;)l.push("#00000000");i.value=[...l]});const o=()=>{let l=i.value.filter(c=>c!=="#00000000");l.length||(l=["#00000000"]),r.setTheme({themeColors:l}),n("close")},s=l=>{const{newIndex:c,oldIndex:u}=l;if(c===void 0||u===void 0||c===u)return;const f=i.value[u];i.value.splice(u,1),i.value.splice(c,0,f)};return(l,c)=>(V(),H("div",y4t,[c[2]||(c[2]=I("div",{class:"title"},"编辑主题色",-1)),U(te(NV),{class:"list",modelValue:i.value,animation:200,scroll:!0,scrollSensitivity:50,handle:".label",onEnd:s,itemKey:"id"},{item:pe(({element:u,index:f})=>[I("div",A4t,[I("div",R4t,"幻灯片主题色"+Vt(f+1)+":",1),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:u,"onUpdate:modelValue":d=>i.value[f]=d},null,8,["modelValue","onUpdate:modelValue"])]),default:pe(()=>[U(Ka,{color:u},null,8,["color"])]),_:2},1024)])]),_:1},8,["modelValue"]),U(Mt,{class:"btn",type:"primary",onClick:c[0]||(c[0]=u=>o())},{default:pe(()=>c[1]||(c[1]=[rt("确认")])),_:1,__:[1]})]))}}),x4t=lt(b4t,[["__scopeId","data-v-ede8a98b"]]),S4t={class:"slide-design-panel"},M4t={class:"row"},_4t={key:0,class:"background-image-wrapper"},w4t={class:"background-image"},L4t={key:1,class:"background-gradient-wrapper"},T4t={class:"row"},O4t={class:"row"},P4t={key:0,class:"row"},C4t={class:"row"},N4t={class:"row"},I4t={class:"row"},k4t={class:"canvas-size"},E4t={class:"title"},F4t={class:"row"},X4t={class:"row"},D4t={class:"row"},V4t={class:"row"},U4t={class:"row"},W4t=["onClick"],Y4t={class:"row"},B4t={class:"row"},Z4t={class:"row",style:{height:"30px"}},Q4t={class:"row",style:{height:"30px"}},K4t={class:"row",style:{height:"30px"}},H4t={class:"row"},G4t={class:"row"},$4t={class:"row"},z4t={class:"row"},J4t={class:"theme-list"},j4t={class:"theme-item-content"},q4t={class:"colors"},e3t={class:"btns"},t3t=tt({__name:"index",setup(t){const e=It(),{slides:n,currentSlide:r,slideIndex:a,viewportRatio:i,viewportSize:o,theme:s}=nt(e),l=we(!1),c=we(!1),u=we(!1),f=we(0),d=we(["solid","dashed","dotted"]),h=Fe(()=>r.value.background?r.value.background:{type:"solid",value:"#fff"}),{addHistorySnapshot:p}=Pn(),{applyPresetTheme:v,applyThemeToAllSlides:g,applyFontToAllSlides:y}=mOe();qt(a,()=>{f.value=0});const m=N=>{if(N==="solid"){const P={...h.value,type:"solid",color:h.value.color||"#fff"};e.updateSlide({background:P})}else if(N==="image"){const P={...h.value,type:"image",image:h.value.image||{src:"",size:"cover"}};e.updateSlide({background:P})}else{const P={...h.value,type:"gradient",gradient:h.value.gradient||{type:"linear",colors:[{pos:0,color:"#fff"},{pos:100,color:"#fff"}],rotate:0}};f.value=0,e.updateSlide({background:P})}p()},R=N=>{e.updateSlide({background:{...h.value,...N}}),p()},A=N=>{R({gradient:{...h.value.gradient,...N}})},x=N=>{const P=h.value.gradient.colors.map((C,E)=>E===f.value?{...C,color:N}:C);A({colors:P})},M=N=>{R({image:{...h.value.image,...N}})},S=N=>{const P=N[0];P&&ag(P).then(C=>M({src:C}))},w=()=>{const N=n.value.map(P=>({...P,background:r.value.background}));e.setSlides(N),p()},_=N=>{e.setTheme(N)},T=N=>{e.setViewportRatio(N)},O=N=>N%1!==0?parseFloat(N.toFixed(1)):Math.floor(N);return(N,P)=>{var K,ne,Z,$;const C=zf,E=lte,F=Tu,Y=gOe,Q=Gee;return V(),H(qe,null,[I("div",S4t,[P[53]||(P[53]=I("div",{class:"title"},"背景填充",-1)),I("div",M4t,[U(La,{style:{flex:"1"},value:h.value.type,"onUpdate:value":P[0]||(P[0]=G=>m(G)),options:[{label:"纯色填充",value:"solid"},{label:"图片填充",value:"image"},{label:"渐变填充",value:"gradient"}]},null,8,["value"]),P[31]||(P[31]=I("div",{style:{width:"10px"}},null,-1)),h.value.type==="solid"?(V(),Ue(sn,{key:0,trigger:"click",style:{flex:"1"}},{content:pe(()=>[U(Ir,{modelValue:h.value.color,"onUpdate:modelValue":P[1]||(P[1]=G=>R({color:G}))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:h.value.color||"#fff"},null,8,["color"])]),_:1})):h.value.type==="image"?(V(),Ue(La,{key:1,style:{flex:"1"},value:((K=h.value.image)==null?void 0:K.size)||"cover","onUpdate:value":P[2]||(P[2]=G=>M({size:G})),options:[{label:"缩放",value:"contain"},{label:"拼贴",value:"repeat"},{label:"缩放铺满",value:"cover"}]},null,8,["value"])):(V(),Ue(La,{key:2,style:{flex:"1"},value:((ne=h.value.gradient)==null?void 0:ne.type)||"","onUpdate:value":P[3]||(P[3]=G=>A({type:G})),options:[{label:"线性渐变",value:"linear"},{label:"径向渐变",value:"radial"}]},null,8,["value"]))]),h.value.type==="image"?(V(),H("div",_4t,[U(Df,{onChange:P[4]||(P[4]=G=>S(G))},{default:pe(()=>{var G;return[I("div",w4t,[I("div",{class:"content",style:We({backgroundImage:`url(${(G=h.value.image)==null?void 0:G.src})`})},[U(C)],4)])]}),_:1})])):at("",!0),h.value.type==="gradient"?(V(),H("div",L4t,[I("div",T4t,[U(oOe,{value:((Z=h.value.gradient)==null?void 0:Z.colors)||[],index:f.value,"onUpdate:value":P[5]||(P[5]=G=>A({colors:G})),"onUpdate:index":P[6]||(P[6]=G=>f.value=G)},null,8,["value","index"])]),I("div",O4t,[P[32]||(P[32]=I("div",{style:{width:"40%"}},"当前色块:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:h.value.gradient.colors[f.value].color,"onUpdate:modelValue":P[7]||(P[7]=G=>x(G))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:h.value.gradient.colors[f.value].color},null,8,["color"])]),_:1})]),(($=h.value.gradient)==null?void 0:$.type)==="linear"?(V(),H("div",P4t,[P[33]||(P[33]=I("div",{style:{width:"40%"}},"渐变角度:",-1)),U(Xo,{min:0,max:360,step:15,value:h.value.gradient.rotate||0,"onUpdate:value":P[8]||(P[8]=G=>A({rotate:G})),style:{width:"60%"}},null,8,["value"])])):at("",!0)])):at("",!0),I("div",C4t,[U(Mt,{style:{flex:"1"},onClick:P[9]||(P[9]=G=>w())},{default:pe(()=>[U(E),P[34]||(P[34]=rt(" 应用背景到全部"))]),_:1,__:[34]})]),U(hn),I("div",N4t,[U(La,{style:{width:"100%"},value:te(i),"onUpdate:value":P[10]||(P[10]=G=>T(G)),options:[{label:"宽屏 16 : 9",value:.5625},{label:"宽屏 16 : 10",value:.625},{label:"标准 4 : 3",value:.75},{label:"纸张 A3 / A4",value:.70710678},{label:"竖向 A3 / A4",value:1.41421356}]},null,8,["value"])]),I("div",I4t,[I("div",k4t,"画布尺寸:"+Vt(te(o))+" × "+Vt(O(te(o)*te(i))),1)]),U(hn),I("div",E4t,[P[36]||(P[36]=I("span",null,"全局主题",-1)),I("span",{class:"more",onClick:P[11]||(P[11]=G=>l.value=!l.value)},[P[35]||(P[35]=I("span",{class:"text"},"更多",-1)),l.value?(V(),Ue(F,{key:0})):(V(),Ue(Y,{key:1}))])]),I("div",F4t,[P[37]||(P[37]=I("div",{style:{width:"40%"}},"字体:",-1)),U(La,{style:{width:"60%"},value:te(s).fontName,search:"",searchLabel:"搜索字体",autofocus:"","onUpdate:value":P[12]||(P[12]=G=>_({fontName:G})),options:te(Q8)},null,8,["value","options"])]),I("div",X4t,[P[38]||(P[38]=I("div",{style:{width:"40%"}},"字体颜色:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:te(s).fontColor,"onUpdate:modelValue":P[13]||(P[13]=G=>_({fontColor:G}))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:te(s).fontColor},null,8,["color"])]),_:1})]),I("div",D4t,[P[39]||(P[39]=I("div",{style:{width:"40%"}},"背景颜色:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:te(s).backgroundColor,"onUpdate:modelValue":P[14]||(P[14]=G=>_({backgroundColor:G}))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:te(s).backgroundColor},null,8,["color"])]),_:1})]),I("div",V4t,[P[40]||(P[40]=I("div",{style:{width:"40%"}},"主题色:",-1)),U(lOe,{style:{width:"60%"},colors:te(s).themeColors,onClick:P[15]||(P[15]=G=>u.value=!0)},null,8,["colors"])]),l.value?(V(),H(qe,{key:2},[I("div",U4t,[P[41]||(P[41]=I("div",{style:{width:"40%"}},"边框样式:",-1)),U(Gx,{style:{width:"60%"}},{options:pe(()=>[(V(!0),H(qe,null,bt(d.value,G=>(V(),H("div",{class:"option",key:G,onClick:ee=>_({outline:{...te(s).outline,style:G}})},[U(uu,{type:G},null,8,["type"])],8,W4t))),128))]),label:pe(()=>[U(uu,{type:te(s).outline.style},null,8,["type"])]),_:1})]),I("div",Y4t,[P[42]||(P[42]=I("div",{style:{width:"40%"}},"边框颜色:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:te(s).outline.color,"onUpdate:modelValue":P[16]||(P[16]=G=>_({outline:{...te(s).outline,color:G}}))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:te(s).outline.color||"#000"},null,8,["color"])]),_:1})]),I("div",B4t,[P[43]||(P[43]=I("div",{style:{width:"40%"}},"边框粗细:",-1)),U(vl,{value:te(s).outline.width||0,"onUpdate:value":P[17]||(P[17]=G=>_({outline:{...te(s).outline,width:G}})),style:{width:"60%"}},null,8,["value"])]),I("div",Z4t,[P[44]||(P[44]=I("div",{style:{width:"40%"}},"水平阴影:",-1)),U(Xo,{style:{width:"60%"},min:-10,max:10,step:1,value:te(s).shadow.h,"onUpdate:value":P[18]||(P[18]=G=>_({shadow:{...te(s).shadow,h:G}}))},null,8,["value"])]),I("div",Q4t,[P[45]||(P[45]=I("div",{style:{width:"40%"}},"垂直阴影:",-1)),U(Xo,{style:{width:"60%"},min:-10,max:10,step:1,value:te(s).shadow.v,"onUpdate:value":P[19]||(P[19]=G=>_({shadow:{...te(s).shadow,v:G}}))},null,8,["value"])]),I("div",K4t,[P[46]||(P[46]=I("div",{style:{width:"40%"}},"模糊距离:",-1)),U(Xo,{style:{width:"60%"},min:1,max:20,step:1,value:te(s).shadow.blur,"onUpdate:value":P[20]||(P[20]=G=>_({shadow:{...te(s).shadow,blur:G}}))},null,8,["value"])]),I("div",H4t,[P[47]||(P[47]=I("div",{style:{width:"40%"}},"阴影颜色:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:te(s).shadow.color,"onUpdate:modelValue":P[21]||(P[21]=G=>_({shadow:{...te(s).shadow,color:G}}))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:te(s).shadow.color},null,8,["color"])]),_:1})])],64)):at("",!0),I("div",G4t,[U(Mt,{style:{flex:"1"},onClick:P[22]||(P[22]=G=>te(g)(l.value))},{default:pe(()=>[U(E),P[48]||(P[48]=rt(" 应用主题到全部"))]),_:1,__:[48]})]),I("div",$4t,[U(Mt,{style:{flex:"1"},onClick:P[23]||(P[23]=G=>te(y)(te(s).fontName))},{default:pe(()=>[U(E),P[49]||(P[49]=rt(" 全局统一字体"))]),_:1,__:[49]})]),I("div",z4t,[U(Mt,{style:{flex:"1"},onClick:P[24]||(P[24]=G=>c.value=!0)},{default:pe(()=>[U(Q),P[50]||(P[50]=rt(" 从幻灯片提取主题"))]),_:1,__:[50]})]),U(hn),P[54]||(P[54]=I("div",{class:"title"},"预置主题",-1)),I("div",J4t,[(V(!0),H(qe,null,bt(te(GSt),(G,ee)=>(V(),H("div",{class:"theme-item",key:ee,style:We({backgroundColor:G.background,fontFamily:G.fontname})},[I("div",j4t,[I("div",{class:"text",style:We({color:G.fontColor})},"文字 Aa",4),I("div",q4t,[(V(!0),H(qe,null,bt(G.colors,(ce,B)=>(V(),H("div",{class:"color-block",key:B,style:We({backgroundColor:ce})},null,4))),128))]),I("div",e3t,[U(Mt,{type:"primary",size:"small",onClick:ce=>te(v)(G)},{default:pe(()=>P[51]||(P[51]=[rt("设置")])),_:2,__:[51]},1032,["onClick"]),U(Mt,{type:"primary",size:"small",style:{"margin-top":"3px"},onClick:ce=>te(v)(G,!0)},{default:pe(()=>P[52]||(P[52]=[rt("设置并应用")])),_:2,__:[52]},1032,["onClick"])])])],4))),128))])]),U(j1,{visible:c.value,"onUpdate:visible":P[26]||(P[26]=G=>c.value=G),width:320,onClosed:P[27]||(P[27]=G=>c.value=!1)},{default:pe(()=>[U(m4t,{onClose:P[25]||(P[25]=G=>c.value=!1)})]),_:1},8,["visible"]),U(j1,{visible:u.value,"onUpdate:visible":P[29]||(P[29]=G=>u.value=G),width:310,onClosed:P[30]||(P[30]=G=>u.value=!1)},{default:pe(()=>[U(x4t,{onClose:P[28]||(P[28]=G=>u.value=!1)})]),_:1},8,["visible"])],64)}}}),n3t=lt(t3t,[["__scopeId","data-v-b5ac0ef7"]]),r3t={class:"slide-animation-panel"},a3t={class:"animation-pool"},i3t=["onClick"],o3t={class:"animation-text"},s3t=tt({__name:"SlideAnimationPanel",setup(t){const e=It(),{slides:n,currentSlide:r}=nt(e),a=Fe(()=>r.value.turningMode||"slideY"),i=vOe,{addHistorySnapshot:o}=Pn(),s=c=>{c!==a.value&&(e.updateSlide({turningMode:c}),o())},l=()=>{const c=n.value.map(u=>({...u,turningMode:r.value.turningMode}));e.setSlides(c),Dn.success("已应用到全部"),o()};return(c,u)=>{const f=lte;return V(),H("div",r3t,[I("div",a3t,[(V(!0),H(qe,null,bt(te(i),d=>(V(),H("div",{class:mt(["animation-item",{active:a.value===d.value}]),key:d.label,onClick:h=>s(d.value)},[I("div",{class:mt(["animation-block",d.value])},"P",2),I("div",o3t,Vt(d.label),1)],10,i3t))),128))]),U(Mt,{style:{width:"100%"},onClick:u[0]||(u[0]=d=>l())},{default:pe(()=>[U(f),u[1]||(u[1]=rt(" 应用到全部"))]),_:1,__:[1]})])}}}),l3t=lt(s3t,[["__scopeId","data-v-28f5a463"]]),c3t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function u3t(t,e){return V(),H("svg",c3t,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M11.273 4H4v7.273h7.273zM44 36.727h-7.273V44H44zM11.273 24H4v7.273h7.273zM24 36.727h-7.273V44H24zM31.273 4H24v7.273h7.273zM44 16.727h-7.273V24H44z"}),I("path",{"stroke-linecap":"round",d:"M11.273 7.636H24m0 32.728h12.727M11.273 27.637h16.364V11.273m1.191 9.09h7.899M20.363 36.727v-9.099zM7.637 11.273V24m32.726 0v12.727"})],-1)]))}const f3t=vt({name:"icon-park-outline-ungroup",render:u3t}),d3t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function h3t(t,e){return V(),H("svg",d3t,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M12 4H4v8h8zm32 32h-8v8h8zm-32 0H4v8h8zM44 4h-8v8h8z"}),I("path",{"stroke-linecap":"round",d:"M8 36V12m32 24V12M12 8h24M12 40h24"}),I("path",{"stroke-linecap":"round",d:"M16 16h9.6v6.4H32V32h-9.6v-6.4H16z","clip-rule":"evenodd"})],-1)]))}const p3t=vt({name:"icon-park-outline-group",render:h3t}),v3t=()=>{const t=It(),{activeElementIdList:e,activeElementList:n}=nt(Wt()),{currentSlide:r}=nt(t),{addHistorySnapshot:a}=Pn();return{alignActiveElement:o=>{const{minX:s,maxX:l,minY:c,maxY:u}=o0(n.value),f=JSON.parse(JSON.stringify(r.value.elements)),d={};for(const h of n.value)if(h.groupId&&!d[h.groupId]){const p=n.value.filter(v=>v.groupId===h.groupId);d[h.groupId]=o0(p)}if(o===qn.LEFT)f.forEach(h=>{if(e.value.includes(h.id))if(h.groupId){const v=d[h.groupId].minX-s;h.left=h.left-v}else if("rotate"in h&&h.rotate){const{offsetX:p}=hx({left:h.left,top:h.top,width:h.width,height:h.height,rotate:h.rotate});h.left=s-p}else h.left=s});else if(o===qn.RIGHT)f.forEach(h=>{if(e.value.includes(h.id))if(h.groupId){const v=d[h.groupId].maxX-l;h.left=h.left-v}else{const p=h.type==="line"?Math.max(h.start[0],h.end[0]):h.width;if("rotate"in h&&h.rotate){const{offsetX:v}=hx({left:h.left,top:h.top,width:h.width,height:h.height,rotate:h.rotate});h.left=l-p+v}else h.left=l-p}});else if(o===qn.TOP)f.forEach(h=>{if(e.value.includes(h.id))if(h.groupId){const v=d[h.groupId].minY-c;h.top=h.top-v}else if("rotate"in h&&h.rotate){const{offsetY:p}=hx({left:h.left,top:h.top,width:h.width,height:h.height,rotate:h.rotate});h.top=c-p}else h.top=c});else if(o===qn.BOTTOM)f.forEach(h=>{if(e.value.includes(h.id))if(h.groupId){const v=d[h.groupId].maxY-u;h.top=h.top-v}else{const p=h.type==="line"?Math.max(h.start[1],h.end[1]):h.height;if("rotate"in h&&h.rotate){const{offsetY:v}=hx({left:h.left,top:h.top,width:h.width,height:h.height,rotate:h.rotate});h.top=u-p+v}else h.top=u-p}});else if(o===qn.HORIZONTAL){const h=(s+l)/2;f.forEach(p=>{if(e.value.includes(p.id))if(p.groupId){const v=d[p.groupId],y=(v.maxX+v.minX)/2-h;p.left=p.left-y}else{const v=p.type==="line"?Math.max(p.start[0],p.end[0]):p.width;p.left=h-v/2}})}else if(o===qn.VERTICAL){const h=(c+u)/2;f.forEach(p=>{if(e.value.includes(p.id))if(p.groupId){const v=d[p.groupId],y=(v.maxY+v.minY)/2-h;p.top=p.top-y}else{const v=p.type==="line"?Math.max(p.start[1],p.end[1]):p.height;p.top=h-v/2}})}t.updateSlide({elements:f}),a()}}},g3t=()=>{const t=It(),{activeElementIdList:e,activeElementList:n}=nt(Wt()),{currentSlide:r}=nt(t),{addHistorySnapshot:a}=Pn();return{displayItemCount:Fe(()=>{let l=0;const c=[];for(const u of n.value)u.groupId?c.includes(u.groupId)||(c.push(u.groupId),l+=1):l+=1;return l}),uniformHorizontalDisplay:()=>{const{minX:l,maxX:c}=o0(n.value),u=JSON.parse(JSON.stringify(n.value)),f=JSON.parse(JSON.stringify(r.value.elements)),d=[];let h=[];for(const x of u)if(x.groupId)h.find(S=>S.groupId===x.groupId)?h=h.map(S=>S.groupId===x.groupId?{...S,els:[...S.els,x]}:S):h.push({groupId:x.groupId,els:[x]});else{const{minX:M,maxX:S}=fl(x);d.push({min:M,max:S,el:x})}const p=[];for(const x of h){const{minX:M,maxX:S}=o0(x.els);p.push({min:M,max:S,els:x.els})}const v=[...d,...p];v.sort((x,M)=>x.min-M.min);let g=0;for(const x of v){const M=x.max-x.min;g+=M}const y=(c-l-g)/(v.length-1),m=[],R=v[0];let A={min:R.min,max:R.max};if("el"in R)m.push({pos:R.min,el:R.el});else for(const x of R.els){const{minX:M}=fl(x);m.push({pos:M,el:x})}for(let x=1;x<v.length;x++){const M=v[x],S=A.max-A.min,w=A.min+S+y,_=M.max-M.min;if(A={min:w,max:w+_},"el"in M)m.push({pos:w,el:M.el});else for(const T of M.els){const{minX:O}=fl(T),N=O-M.min;m.push({pos:w+N,el:T})}}for(const x of f)if(e.value.includes(x.id)){for(const M of m)if(M.el.id===x.id)if("rotate"in x&&x.rotate){const{offsetX:S}=hx({left:x.left,top:x.top,width:x.width,height:x.height,rotate:x.rotate});x.left=M.pos-S}else x.left=M.pos}t.updateSlide({elements:f}),a()},uniformVerticalDisplay:()=>{const{minY:l,maxY:c}=o0(n.value),u=JSON.parse(JSON.stringify(n.value)),f=JSON.parse(JSON.stringify(r.value.elements)),d=[];let h=[];for(const x of u)if(x.groupId)h.find(S=>S.groupId===x.groupId)?h=h.map(S=>S.groupId===x.groupId?{...S,els:[...S.els,x]}:S):h.push({groupId:x.groupId,els:[x]});else{const{minY:M,maxY:S}=fl(x);d.push({min:M,max:S,el:x})}const p=[];for(const x of h){const{minY:M,maxY:S}=o0(x.els);p.push({min:M,max:S,els:x.els})}const v=[...d,...p];v.sort((x,M)=>x.min-M.min);let g=0;for(const x of v){const M=x.max-x.min;g+=M}const y=(c-l-g)/(v.length-1),m=[],R=v[0];let A={min:R.min,max:R.max};if("el"in R)m.push({pos:R.min,el:R.el});else for(const x of R.els){const{minY:M}=fl(x);m.push({pos:M,el:x})}for(let x=1;x<v.length;x++){const M=v[x],S=A.max-A.min,w=A.min+S+y,_=M.max-M.min;if(A={min:w,max:w+_},"el"in M)m.push({pos:w,el:M.el});else for(const T of M.els){const{minY:O}=fl(T),N=O-M.min;m.push({pos:w+N,el:T})}}for(const x of f)if(e.value.includes(x.id)){for(const M of m)if(M.el.id===x.id)if("rotate"in x&&x.rotate){const{offsetY:S}=hx({left:x.left,top:x.top,width:x.width,height:x.height,rotate:x.rotate});x.top=M.pos-S}else x.top=M.pos}t.updateSlide({elements:f}),a()}}},m3t={class:"multi-position-panel"},y3t=tt({__name:"MultiPositionPanel",setup(t){const{canCombine:e,combineElements:n,uncombineElements:r}=Cj(),{alignActiveElement:a}=v3t(),{alignElementToCanvas:i}=qD(),{displayItemCount:o,uniformHorizontalDisplay:s,uniformVerticalDisplay:l}=g3t(),c=u=>{e.value?a(u):i(u)};return(u,f)=>{const d=ste,h=rte,p=ite,v=ate,g=ote,y=nte,m=p3t,R=f3t,A=pr("tooltip");return V(),H("div",m3t,[U(Br,{class:"row"},{default:pe(()=>[yt((V(),Ue(Mt,{style:{flex:"1"},onClick:f[0]||(f[0]=x=>c(te(qn).LEFT))},{default:pe(()=>[U(d)]),_:1})),[[A,"左对齐"]]),yt((V(),Ue(Mt,{style:{flex:"1"},onClick:f[1]||(f[1]=x=>c(te(qn).HORIZONTAL))},{default:pe(()=>[U(h)]),_:1})),[[A,"水平居中"]]),yt((V(),Ue(Mt,{style:{flex:"1"},onClick:f[2]||(f[2]=x=>c(te(qn).RIGHT))},{default:pe(()=>[U(p)]),_:1})),[[A,"右对齐"]])]),_:1}),U(Br,{class:"row"},{default:pe(()=>[yt((V(),Ue(Mt,{style:{flex:"1"},onClick:f[3]||(f[3]=x=>c(te(qn).TOP))},{default:pe(()=>[U(v)]),_:1})),[[A,"上对齐"]]),yt((V(),Ue(Mt,{style:{flex:"1"},onClick:f[4]||(f[4]=x=>c(te(qn).VERTICAL))},{default:pe(()=>[U(g)]),_:1})),[[A,"垂直居中"]]),yt((V(),Ue(Mt,{style:{flex:"1"},onClick:f[5]||(f[5]=x=>c(te(qn).BOTTOM))},{default:pe(()=>[U(y)]),_:1})),[[A,"下对齐"]])]),_:1}),te(o)>2?(V(),Ue(Br,{key:0,class:"row"},{default:pe(()=>[U(Mt,{style:{flex:"1"},onClick:f[6]||(f[6]=x=>te(s)())},{default:pe(()=>f[10]||(f[10]=[rt("水平均匀分布")])),_:1,__:[10]}),U(Mt,{style:{flex:"1"},onClick:f[7]||(f[7]=x=>te(l)())},{default:pe(()=>f[11]||(f[11]=[rt("垂直均匀分布")])),_:1,__:[11]})]),_:1})):at("",!0),U(hn),U(Br,{class:"row"},{default:pe(()=>[U(Mt,{disabled:!te(e),onClick:f[8]||(f[8]=x=>te(n)()),style:{flex:"1"}},{default:pe(()=>[U(m,{style:{"margin-right":"3px"}}),f[12]||(f[12]=rt("组合"))]),_:1,__:[12]},8,["disabled"]),U(Mt,{disabled:te(e),onClick:f[9]||(f[9]=x=>te(r)()),style:{flex:"1"}},{default:pe(()=>[U(R,{style:{"margin-right":"3px"}}),f[13]||(f[13]=rt("取消组合"))]),_:1,__:[13]},8,["disabled"])]),_:1})])}}}),A3t=lt(y3t,[["__scopeId","data-v-246f4303"]]),R3t={class:"multi-style-panel"},b3t={class:"row"},x3t={class:"row"},S3t=["onClick"],M3t={class:"row"},_3t={class:"row"},w3t=tt({__name:"MultiStylePanel",setup(t){const e=It(),{richTextAttrs:n,activeElementList:r}=nt(Wt()),{addHistorySnapshot:a}=Pn(),i=(h,p)=>{e.updateElement({id:h,props:p}),a()},o=we(["solid","dashed","dotted"]),s=["12px","14px","16px","18px","20px","22px","24px","28px","32px","36px","40px","44px","48px","54px","60px","66px","72px","76px","80px","88px","96px","104px","112px","120px"],l=we("#fff"),c=we({width:0,color:"#fff",style:"solid"}),u=h=>{for(const p of r.value){if((p.type==="text"||p.type==="shape"||p.type==="chart")&&i(p.id,{fill:h}),p.type==="table"){const v=JSON.parse(JSON.stringify(p.data));for(let g=0;g<v.length;g++)for(let y=0;y<v[g].length;y++){const m=v[g][y].style||{};v[g][y].style={...m,backcolor:h}}i(p.id,{data:v})}p.type==="audio"&&i(p.id,{color:h})}l.value=h},f=h=>{for(const p of r.value){if(p.type==="text"||p.type==="image"||p.type==="shape"||p.type==="table"||p.type==="chart"){const g={outline:{...p.outline||{width:2,color:"#000",style:"solid"},...h}};i(p.id,g)}p.type==="line"&&i(p.id,h)}c.value={...c.value,...h}},d=(h,p)=>{var v;for(const g of r.value){if((g.type==="text"||g.type==="shape"&&((v=g.text)!=null&&v.content))&&zi.emit(Ni.RICH_TEXT_COMMAND,{target:g.id,action:{command:h,value:p}}),g.type==="table"){const y=JSON.parse(JSON.stringify(g.data));for(let m=0;m<y.length;m++)for(let R=0;R<y[m].length;R++){const A=y[m][R].style||{};y[m][R].style={...A,[h]:p}}i(g.id,{data:y})}g.type==="latex"&&h==="color"&&i(g.id,{color:p})}};return(h,p)=>{const v=BS,g=qee,y=BV,m=Z8,R=DV,A=XV,x=FV,M=jee,S=pr("tooltip");return V(),H("div",R3t,[I("div",b3t,[p[10]||(p[10]=I("div",{style:{width:"40%"}},"填充颜色:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:l.value,"onUpdate:modelValue":p[0]||(p[0]=w=>u(w))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:l.value},null,8,["color"])]),_:1})]),U(hn),I("div",x3t,[p[11]||(p[11]=I("div",{style:{width:"40%"}},"边框样式:",-1)),U(Gx,{style:{width:"60%"}},{options:pe(()=>[(V(!0),H(qe,null,bt(o.value,w=>(V(),H("div",{class:"option",key:w,onClick:_=>f({style:w})},[U(uu,{type:w},null,8,["type"])],8,S3t))),128))]),label:pe(()=>[U(uu,{type:c.value.style},null,8,["type"])]),_:1})]),I("div",M3t,[p[12]||(p[12]=I("div",{style:{width:"40%"}},"边框颜色:",-1)),U(sn,{trigger:"click",style:{width:"60%"}},{content:pe(()=>[U(Ir,{modelValue:c.value.color,"onUpdate:modelValue":p[1]||(p[1]=w=>f({color:w}))},null,8,["modelValue"])]),default:pe(()=>[U(Ka,{color:c.value.color||"#000"},null,8,["color"])]),_:1})]),I("div",_3t,[p[13]||(p[13]=I("div",{style:{width:"40%"}},"边框粗细:",-1)),U(vl,{value:c.value.width||0,"onUpdate:value":p[2]||(p[2]=w=>f({width:w})),style:{width:"60%"}},null,8,["value"])]),U(hn),U(ete,{class:"row"},{default:pe(()=>[U(La,{style:{width:"60%"},value:te(n).fontname,search:"",searchLabel:"搜索字体",autofocus:"","onUpdate:value":p[3]||(p[3]=w=>d("fontname",w)),options:te(Q8)},{icon:pe(()=>[U(v)]),_:1},8,["value","options"]),U(La,{style:{width:"40%"},value:te(n).fontsize,search:"",searchLabel:"搜索字号",autofocus:"","onUpdate:value":p[4]||(p[4]=w=>d("fontsize",w)),options:s.map(w=>({label:w,value:w}))},{icon:pe(()=>[U(g)]),_:1},8,["value","options"])]),_:1}),U(Br,{class:"row",passive:""},{default:pe(()=>[U(sn,{trigger:"click",style:{width:"30%"}},{content:pe(()=>[U(Ir,{modelValue:te(n).color,"onUpdate:modelValue":p[5]||(p[5]=w=>d("color",w))},null,8,["modelValue"])]),default:pe(()=>[yt((V(),Ue(SS,{first:"",color:te(n).color},{default:pe(()=>[U(y)]),_:1},8,["color"])),[[S,"文字颜色"]])]),_:1}),U(sn,{trigger:"click",style:{width:"30%"}},{content:pe(()=>[U(Ir,{modelValue:te(n).backcolor,"onUpdate:modelValue":p[6]||(p[6]=w=>d("backcolor",w))},null,8,["modelValue"])]),default:pe(()=>[yt((V(),Ue(SS,{color:te(n).backcolor},{default:pe(()=>[U(m)]),_:1},8,["color"])),[[S,"文字高亮"]])]),_:1}),yt((V(),Ue(Mt,{class:"font-size-btn",style:{width:"20%"},onClick:p[7]||(p[7]=w=>d("fontsize-add","2"))},{default:pe(()=>[U(v),p[14]||(p[14]=rt("+"))]),_:1,__:[14]})),[[S,"增大字号"]]),yt((V(),Ue(Mt,{last:"",class:"font-size-btn",style:{width:"20%"},onClick:p[8]||(p[8]=w=>d("fontsize-reduce","2"))},{default:pe(()=>[U(v),p[15]||(p[15]=rt("-"))]),_:1,__:[15]})),[[S,"减小字号"]])]),_:1}),U(Yf,{class:"row","button-style":"solid",value:te(n).align,"onUpdate:value":p[9]||(p[9]=w=>d("align",w))},{default:pe(()=>[yt((V(),Ue(Nr,{value:"left",style:{flex:"1"}},{default:pe(()=>[U(R)]),_:1})),[[S,"左对齐"]]),yt((V(),Ue(Nr,{value:"center",style:{flex:"1"}},{default:pe(()=>[U(A)]),_:1})),[[S,"居中"]]),yt((V(),Ue(Nr,{value:"right",style:{flex:"1"}},{default:pe(()=>[U(x)]),_:1})),[[S,"右对齐"]]),yt((V(),Ue(Nr,{value:"justify",style:{flex:"1"}},{default:pe(()=>[U(M)]),_:1})),[[S,"两端对齐"]])]),_:1},8,["value"])])}}}),L3t=lt(w3t,[["__scopeId","data-v-c9ba774f"]]),T3t={class:"toolbar"},O3t={class:"content"},P3t=tt({__name:"index",setup(t){const e=Wt(),{activeElementIdList:n,activeElementList:r,activeGroupElementId:a,toolbarState:i}=nt(e),o=[{label:"样式",key:xo.EL_STYLE},{label:"位置",key:xo.EL_POSITION},{label:"动画",key:xo.EL_ANIMATION}],s=[{label:"设计",key:xo.SLIDE_DESIGN},{label:"切换",key:xo.SLIDE_ANIMATION},{label:"动画",key:xo.EL_ANIMATION}],l=[{label:"样式(多选)",key:xo.MULTI_STYLE},{label:"位置(多选)",key:xo.MULTI_POSITION}],c=d=>{e.setToolbarState(d)},u=Fe(()=>{if(n.value.length){if(n.value.length>1)return a.value&&r.value.find(h=>h.id===a.value)?o:l}else return s;return o});qt(u,()=>{const d=u.value.map(h=>h.key);d.includes(i.value)||e.setToolbarState(d[0])});const f=Fe(()=>({[xo.EL_STYLE]:Xxt,[xo.EL_POSITION]:ySt,[xo.EL_ANIMATION]:BSt,[xo.SLIDE_DESIGN]:n3t,[xo.SLIDE_ANIMATION]:l3t,[xo.MULTI_STYLE]:L3t,[xo.MULTI_POSITION]:A3t})[i.value]||null);return(d,h)=>(V(),H("div",T3t,[U(Wf,{tabs:u.value,value:te(i),card:"","onUpdate:value":h[0]||(h[0]=p=>c(p))},null,8,["tabs","value"]),I("div",O3t,[(V(),Ue(Eh(f.value)))])]))}}),C3t=lt(P3t,[["__scopeId","data-v-0756032c"]]),N3t={class:"editor"},I3t=tt({__name:"Editor",props:{value:{}},emits:["update"],setup(t,{expose:e,emit:n}){const r=t,a=n,i=Wt(),o=un("editorViewRef");let s;const l=we(),c=we(),u=un("menuRef"),f=()=>{c.value&&c.value.hide()},d=Vr.debounce(function(){a("update",s.dom.innerHTML)},300,{trailing:!0}),h=()=>{i.setDisableHotkeysState(!0)},p=()=>{i.setDisableHotkeysState(!1)};e({updateTextContent:()=>{if(!s)return;const{doc:m,tr:R}=s.state;s.dispatch(R.replaceRangeWith(0,m.content.size,bq(r.value)))}});const g=()=>{const m=window.getSelection();if(!m||!m.anchorNode||!m.focusNode||m.isCollapsed||m.type==="Caret"||m.type==="None")return;const R=m.getRangeAt(0);if(c.value){l.value=RG(s);const{x:A,y:x,left:M,top:S}=R.getBoundingClientRect();c.value.setProps({getReferenceClientRect:()=>({x:A,y:x,left:M,top:S,height:0,width:0,right:M,bottom:S})}),c.value.show()}},y=(m,R)=>{if(m==="color"&&R){const A=s.state.schema.marks.forecolor.create({color:R});Qi(s),qd(s,A)}else if(m==="backcolor"&&R){const A=s.state.schema.marks.backcolor.create({backcolor:R});Qi(s),qd(s,A)}else if(m==="bold")Qi(s),Oi(s.state.schema.marks.strong)(s.state,s.dispatch);else if(m==="em")Qi(s),Oi(s.state.schema.marks.em)(s.state,s.dispatch);else if(m==="underline")Qi(s),Oi(s.state.schema.marks.underline)(s.state,s.dispatch);else if(m==="strikethrough")Qi(s),Oi(s.state.schema.marks.strikethrough)(s.state,s.dispatch);else if(m==="bulletList"){const{bullet_list:A,list_item:x}=s.state.schema.nodes;gX(A,x,"")(s.state,s.dispatch)}else if(m==="orderedList"){const{ordered_list:A,list_item:x}=s.state.schema.nodes;gX(A,x,"")(s.state,s.dispatch)}else if(m==="clear"){Qi(s);const{$from:A,$to:x}=s.state.selection;s.dispatch(s.state.tr.removeMark(A.pos,x.pos))}s.focus(),d(),l.value=RG(s)};return mn(()=>{s=v_e(o.value,r.value,{handleDOMEvents:{focus:h,blur:p,mouseup:g,mousedown:()=>{var m;(m=window.getSelection())==null||m.removeAllRanges(),f()},keydown:f,input:d}},{placeholder:"点击输入演讲者备注"}),c.value=My(o.value,{duration:0,content:u.value,interactive:!0,trigger:"manual",placement:"top-start",hideOnClick:"toggle",offset:[0,6]})}),or(()=>{s&&s.destroy()}),(m,R)=>{var C,E,F,Y,Q,K;const A=YV,x=WV,M=UV,S=VV,w=BV,_=Z8,T=JTe,O=zTe,N=qTe,P=pr("click-outside");return yt((V(),H("div",N3t,[I("div",{class:"prosemirror-editor",ref_key:"editorViewRef",ref:o},null,512),I("div",{class:"menu",ref_key:"menuRef",ref:u},[I("button",{class:mt({active:(C=l.value)==null?void 0:C.bold}),onClick:R[0]||(R[0]=ne=>y("bold"))},[U(A)],2),I("button",{class:mt({active:(E=l.value)==null?void 0:E.em}),onClick:R[1]||(R[1]=ne=>y("em"))},[U(x)],2),I("button",{class:mt({active:(F=l.value)==null?void 0:F.underline}),onClick:R[2]||(R[2]=ne=>y("underline"))},[U(M)],2),I("button",{class:mt({active:(Y=l.value)==null?void 0:Y.strikethrough}),onClick:R[3]||(R[3]=ne=>y("strikethrough"))},[U(S)],2),U(sn,{trigger:"click",style:{width:"30%"}},{content:pe(()=>{var ne;return[U(Ir,{modelValue:(ne=l.value)==null?void 0:ne.color,"onUpdate:modelValue":R[4]||(R[4]=Z=>y("color",Z))},null,8,["modelValue"])]}),default:pe(()=>[I("button",null,[U(w)])]),_:1}),U(sn,{trigger:"click",style:{width:"30%"}},{content:pe(()=>{var ne;return[U(Ir,{modelValue:(ne=l.value)==null?void 0:ne.backcolor,"onUpdate:modelValue":R[5]||(R[5]=Z=>y("backcolor",Z))},null,8,["modelValue"])]}),default:pe(()=>[I("button",null,[U(_)])]),_:1}),I("button",{class:mt({active:(Q=l.value)==null?void 0:Q.bulletList}),onClick:R[6]||(R[6]=ne=>y("bulletList"))},[U(T)],2),I("button",{class:mt({active:(K=l.value)==null?void 0:K.orderedList}),onClick:R[7]||(R[7]=ne=>y("orderedList"))},[U(O)],2),I("button",{onClick:R[8]||(R[8]=ne=>y("clear"))},[U(N)])],512)])),[[P,f]])}}}),k3t=lt(I3t,[["__scopeId","data-v-3acbe3b9"]]),E3t={class:"remark"},F3t=tt({__name:"index",props:{height:{}},emits:["update:height"],setup(t,{emit:e}){const n=t,r=e,a=It(),{currentSlide:i}=nt(a),o=un("editorRef");qt(()=>i.value.id,()=>{qr(()=>{o.value.updateTextContent()})},{immediate:!0});const s=Fe(()=>{var u;return((u=i.value)==null?void 0:u.remark)||""}),l=u=>{a.updateSlide({remark:u})},c=u=>{let f=!0;const d=u.pageY,h=n.height;document.onmousemove=p=>{if(!f)return;let y=-(p.pageY-d)+h;y<40&&(y=40),y>360&&(y=360),r("update:height",y)},document.onmouseup=()=>{f=!1,document.onmousemove=null,document.onmouseup=null}};return(u,f)=>(V(),H("div",E3t,[I("div",{class:"resize-handler",onMousedown:f[0]||(f[0]=d=>c(d))},null,32),U(k3t,{value:s.value,ref_key:"editorRef",ref:o,onUpdate:f[1]||(f[1]=d=>l(d))},null,8,["value"])]))}}),X3t=lt(F3t,[["__scopeId","data-v-f081de02"]]);var yOe={exports:{}};(function(t,e){(function(n,r){r()})(cn,function(){function n(c,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function r(c,u,f){var d=new XMLHttpRequest;d.open("GET",c),d.responseType="blob",d.onload=function(){l(d.response,u,f)},d.onerror=function(){console.error("could not download file")},d.send()}function a(c){var u=new XMLHttpRequest;u.open("HEAD",c,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function i(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(u)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof cn=="object"&&cn.global===cn?cn:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(c,u,f){var d=o.URL||o.webkitURL,h=document.createElement("a");u=u||c.name||"download",h.download=u,h.rel="noopener",typeof c=="string"?(h.href=c,h.origin===location.origin?i(h):a(h.href)?r(c,u,f):i(h,h.target="_blank")):(h.href=d.createObjectURL(c),setTimeout(function(){d.revokeObjectURL(h.href)},4e4),setTimeout(function(){i(h)},0))}:"msSaveOrOpenBlob"in navigator?function(c,u,f){if(u=u||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,f),u);else if(a(c))r(c,u,f);else{var d=document.createElement("a");d.href=c,d.target="_blank",setTimeout(function(){i(d)})}}:function(c,u,f,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof c=="string")return r(c,u,f);var h=c.type==="application/octet-stream",p=/constructor/i.test(o.HTMLElement)||o.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||h&&p||s)&&typeof FileReader<"u"){var g=new FileReader;g.onloadend=function(){var R=g.result;R=v?R:R.replace(/^data:[^;]*;/,"data:attachment/file;"),d?d.location.href=R:location=R,d=null},g.readAsDataURL(c)}else{var y=o.URL||o.webkitURL,m=y.createObjectURL(c);d?d.location=m:location.href=m,d=null,setTimeout(function(){y.revokeObjectURL(m)},4e4)}});o.saveAs=l.saveAs=l,t.exports=l})})(yOe);var rRe=yOe.exports,AOe={exports:{}};/*!--JSZip v3.10.1 - A JavaScript class for generating and reading zip files-<http://stuartk.com/jszip>--(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>-Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.--JSZip uses the library pako released under the MIT license :-https://github.com/nodeca/pako/blob/main/LICENSE-*/(function(t,e){(function(n){t.exports=n()})(function(){return function n(r,a,i){function o(c,u){if(!a[c]){if(!r[c]){var f=typeof $5=="function"&&$5;if(!u&&f)return f(c,!0);if(s)return s(c,!0);var d=new Error("Cannot find module '"+c+"'");throw d.code="MODULE_NOT_FOUND",d}var h=a[c]={exports:{}};r[c][0].call(h.exports,function(p){var v=r[c][1][p];return o(v||p)},h,h.exports,n,r,a,i)}return a[c].exports}for(var s=typeof $5=="function"&&$5,l=0;l<i.length;l++)o(i[l]);return o}({1:[function(n,r,a){var i=n("./utils"),o=n("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.encode=function(l){for(var c,u,f,d,h,p,v,g=[],y=0,m=l.length,R=m,A=i.getTypeOf(l)!=="string";y<l.length;)R=m-y,f=A?(c=l[y++],u=y<m?l[y++]:0,y<m?l[y++]:0):(c=l.charCodeAt(y++),u=y<m?l.charCodeAt(y++):0,y<m?l.charCodeAt(y++):0),d=c>>2,h=(3&c)<<4|u>>4,p=1<R?(15&u)<<2|f>>6:64,v=2<R?63&f:64,g.push(s.charAt(d)+s.charAt(h)+s.charAt(p)+s.charAt(v));return g.join("")},a.decode=function(l){var c,u,f,d,h,p,v=0,g=0,y="data:";if(l.substr(0,y.length)===y)throw new Error("Invalid base64 input, it looks like a data url.");var m,R=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===s.charAt(64)&&R--,l.charAt(l.length-2)===s.charAt(64)&&R--,R%1!=0)throw new Error("Invalid base64 input, bad content length.");for(m=o.uint8array?new Uint8Array(0|R):new Array(0|R);v<l.length;)c=s.indexOf(l.charAt(v++))<<2|(d=s.indexOf(l.charAt(v++)))>>4,u=(15&d)<<4|(h=s.indexOf(l.charAt(v++)))>>2,f=(3&h)<<6|(p=s.indexOf(l.charAt(v++))),m[g++]=c,h!==64&&(m[g++]=u),p!==64&&(m[g++]=f);return m}},{"./support":30,"./utils":32}],2:[function(n,r,a){var i=n("./external"),o=n("./stream/DataWorker"),s=n("./stream/Crc32Probe"),l=n("./stream/DataLengthProbe");function c(u,f,d,h,p){this.compressedSize=u,this.uncompressedSize=f,this.crc32=d,this.compression=h,this.compressedContent=p}c.prototype={getContentWorker:function(){var u=new o(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),f=this;return u.on("end",function(){if(this.streamInfo.data_length!==f.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new o(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(u,f,d){return u.pipe(new s).pipe(new l("uncompressedSize")).pipe(f.compressWorker(d)).pipe(new l("compressedSize")).withStreamInfo("compression",f)},r.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,a){var i=n("./stream/GenericWorker");a.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},a.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,a){var i=n("./utils"),o=function(){for(var s,l=[],c=0;c<256;c++){s=c;for(var u=0;u<8;u++)s=1&s?3988292384^s>>>1:s>>>1;l[c]=s}return l}();r.exports=function(s,l){return s!==void 0&&s.length?i.getTypeOf(s)!=="string"?function(c,u,f,d){var h=o,p=d+f;c^=-1;for(var v=d;v<p;v++)c=c>>>8^h[255&(c^u[v])];return-1^c}(0|l,s,s.length,0):function(c,u,f,d){var h=o,p=d+f;c^=-1;for(var v=d;v<p;v++)c=c>>>8^h[255&(c^u.charCodeAt(v))];return-1^c}(0|l,s,s.length,0):0}},{"./utils":32}],5:[function(n,r,a){a.base64=!1,a.binary=!1,a.dir=!1,a.createFolders=!0,a.date=null,a.compression=null,a.compressionOptions=null,a.comment=null,a.unixPermissions=null,a.dosPermissions=null},{}],6:[function(n,r,a){var i=null;i=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:i}},{lie:37}],7:[function(n,r,a){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=n("pako"),s=n("./utils"),l=n("./stream/GenericWorker"),c=i?"uint8array":"array";function u(f,d){l.call(this,"FlateWorker/"+f),this._pako=null,this._pakoAction=f,this._pakoOptions=d,this.meta={}}a.magic="\b\0",s.inherits(u,l),u.prototype.processChunk=function(f){this.meta=f.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(c,f.data),!1)},u.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var f=this;this._pako.onData=function(d){f.push({data:d,meta:f.meta})}},a.compressWorker=function(f){return new u("Deflate",f)},a.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,a){function i(h,p){var v,g="";for(v=0;v<p;v++)g+=String.fromCharCode(255&h),h>>>=8;return g}function o(h,p,v,g,y,m){var R,A,x=h.file,M=h.compression,S=m!==c.utf8encode,w=s.transformTo("string",m(x.name)),_=s.transformTo("string",c.utf8encode(x.name)),T=x.comment,O=s.transformTo("string",m(T)),N=s.transformTo("string",c.utf8encode(T)),P=_.length!==x.name.length,C=N.length!==T.length,E="",F="",Y="",Q=x.dir,K=x.date,ne={crc32:0,compressedSize:0,uncompressedSize:0};p&&!v||(ne.crc32=h.crc32,ne.compressedSize=h.compressedSize,ne.uncompressedSize=h.uncompressedSize);var Z=0;p&&(Z|=8),S||!P&&!C||(Z|=2048);var $=0,G=0;Q&&($|=16),y==="UNIX"?(G=798,$|=function(ce,B){var xe=ce;return ce||(xe=B?16893:33204),(65535&xe)<<16}(x.unixPermissions,Q)):(G=20,$|=function(ce){return 63&(ce||0)}(x.dosPermissions)),R=K.getUTCHours(),R<<=6,R|=K.getUTCMinutes(),R<<=5,R|=K.getUTCSeconds()/2,A=K.getUTCFullYear()-1980,A<<=4,A|=K.getUTCMonth()+1,A<<=5,A|=K.getUTCDate(),P&&(F=i(1,1)+i(u(w),4)+_,E+="up"+i(F.length,2)+F),C&&(Y=i(1,1)+i(u(O),4)+N,E+="uc"+i(Y.length,2)+Y);var ee="";return ee+=`-\0`,ee+=i(Z,2),ee+=M.magic,ee+=i(R,2),ee+=i(A,2),ee+=i(ne.crc32,4),ee+=i(ne.compressedSize,4),ee+=i(ne.uncompressedSize,4),ee+=i(w.length,2),ee+=i(E.length,2),{fileRecord:f.LOCAL_FILE_HEADER+ee+w+E,dirRecord:f.CENTRAL_FILE_HEADER+i(G,2)+ee+i(O.length,2)+"\0\0\0\0"+i($,4)+i(g,4)+w+E+O}}var s=n("../utils"),l=n("../stream/GenericWorker"),c=n("../utf8"),u=n("../crc32"),f=n("../signature");function d(h,p,v,g){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=v,this.encodeFileName=g,this.streamFiles=h,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(d,l),d.prototype.push=function(h){var p=h.meta.percent||0,v=this.entriesCount,g=this._sources.length;this.accumulate?this.contentBuffer.push(h):(this.bytesWritten+=h.data.length,l.prototype.push.call(this,{data:h.data,meta:{currentFile:this.currentFile,percent:v?(p+100*(v-g-1))/v:100}}))},d.prototype.openedSource=function(h){this.currentSourceOffset=this.bytesWritten,this.currentFile=h.file.name;var p=this.streamFiles&&!h.file.dir;if(p){var v=o(h,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:v.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(h){this.accumulate=!1;var p=this.streamFiles&&!h.file.dir,v=o(h,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(v.dirRecord),p)this.push({data:function(g){return f.DATA_DESCRIPTOR+i(g.crc32,4)+i(g.compressedSize,4)+i(g.uncompressedSize,4)}(h),meta:{percent:100}});else for(this.push({data:v.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var h=this.bytesWritten,p=0;p<this.dirRecords.length;p++)this.push({data:this.dirRecords[p],meta:{percent:100}});var v=this.bytesWritten-h,g=function(y,m,R,A,x){var M=s.transformTo("string",x(A));return f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(y,2)+i(y,2)+i(m,4)+i(R,4)+i(M.length,2)+M}(this.dirRecords.length,v,h,this.zipComment,this.encodeFileName);this.push({data:g,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(h){this._sources.push(h);var p=this;return h.on("data",function(v){p.processChunk(v)}),h.on("end",function(){p.closedSource(p.previous.streamInfo),p._sources.length?p.prepareNextSource():p.end()}),h.on("error",function(v){p.error(v)}),this},d.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(h){var p=this._sources;if(!l.prototype.error.call(this,h))return!1;for(var v=0;v<p.length;v++)try{p[v].error(h)}catch{}return!0},d.prototype.lock=function(){l.prototype.lock.call(this);for(var h=this._sources,p=0;p<h.length;p++)h[p].lock()},r.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,a){var i=n("../compressions"),o=n("./ZipFileWorker");a.generateWorker=function(s,l,c){var u=new o(l.streamFiles,c,l.platform,l.encodeFileName),f=0;try{s.forEach(function(d,h){f++;var p=function(m,R){var A=m||R,x=i[A];if(!x)throw new Error(A+" is not a valid compression method !");return x}(h.options.compression,l.compression),v=h.options.compressionOptions||l.compressionOptions||{},g=h.dir,y=h.date;h._compressWorker(p,v).withStreamInfo("file",{name:d,dir:g,date:y,comment:h.comment||"",unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions}).pipe(u)}),u.entriesCount=f}catch(d){u.error(d)}return u}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,a){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new i;for(var s in this)typeof this[s]!="function"&&(o[s]=this[s]);return o}}(i.prototype=n("./object")).loadAsync=n("./load"),i.support=n("./support"),i.defaults=n("./defaults"),i.version="3.10.1",i.loadAsync=function(o,s){return new i().loadAsync(o,s)},i.external=n("./external"),r.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,a){var i=n("./utils"),o=n("./external"),s=n("./utf8"),l=n("./zipEntries"),c=n("./stream/Crc32Probe"),u=n("./nodejsUtils");function f(d){return new o.Promise(function(h,p){var v=d.decompressed.getContentWorker().pipe(new c);v.on("error",function(g){p(g)}).on("end",function(){v.streamInfo.crc32!==d.decompressed.crc32?p(new Error("Corrupted zip : CRC32 mismatch")):h()}).resume()})}r.exports=function(d,h){var p=this;return h=i.extend(h||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),u.isNode&&u.isStream(d)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",d,!0,h.optimizedBinaryString,h.base64).then(function(v){var g=new l(h);return g.load(v),g}).then(function(v){var g=[o.Promise.resolve(v)],y=v.files;if(h.checkCRC32)for(var m=0;m<y.length;m++)g.push(f(y[m]));return o.Promise.all(g)}).then(function(v){for(var g=v.shift(),y=g.files,m=0;m<y.length;m++){var R=y[m],A=R.fileNameStr,x=i.resolve(R.fileNameStr);p.file(x,R.decompressed,{binary:!0,optimizedBinaryString:!0,date:R.date,dir:R.dir,comment:R.fileCommentStr.length?R.fileCommentStr:null,unixPermissions:R.unixPermissions,dosPermissions:R.dosPermissions,createFolders:h.createFolders}),R.dir||(p.file(x).unsafeOriginalName=A)}return g.zipComment.length&&(p.comment=g.zipComment),p})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,a){var i=n("../utils"),o=n("../stream/GenericWorker");function s(l,c){o.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(c)}i.inherits(s,o),s.prototype._bindStream=function(l){var c=this;(this._stream=l).pause(),l.on("data",function(u){c.push({data:u,meta:{percent:0}})}).on("error",function(u){c.isPaused?this.generatedError=u:c.error(u)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},s.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,a){var i=n("readable-stream").Readable;function o(s,l,c){i.call(this,l),this._helper=s;var u=this;s.on("data",function(f,d){u.push(f)||u._helper.pause(),c&&c(d)}).on("error",function(f){u.emit("error",f)}).on("end",function(){u.push(null)})}n("../utils").inherits(o,i),o.prototype._read=function(){this._helper.resume()},r.exports=o},{"../utils":32,"readable-stream":16}],14:[function(n,r,a){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,o);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,o)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var o=new Buffer(i);return o.fill(0),o},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(n,r,a){function i(x,M,S){var w,_=s.getTypeOf(M),T=s.extend(S||{},u);T.date=T.date||new Date,T.compression!==null&&(T.compression=T.compression.toUpperCase()),typeof T.unixPermissions=="string"&&(T.unixPermissions=parseInt(T.unixPermissions,8)),T.unixPermissions&&16384&T.unixPermissions&&(T.dir=!0),T.dosPermissions&&16&T.dosPermissions&&(T.dir=!0),T.dir&&(x=y(x)),T.createFolders&&(w=g(x))&&m.call(this,w,!0);var O=_==="string"&&T.binary===!1&&T.base64===!1;S&&S.binary!==void 0||(T.binary=!O),(M instanceof f&&M.uncompressedSize===0||T.dir||!M||M.length===0)&&(T.base64=!1,T.binary=!0,M="",T.compression="STORE",_="string");var N=null;N=M instanceof f||M instanceof l?M:p.isNode&&p.isStream(M)?new v(x,M):s.prepareContent(x,M,T.binary,T.optimizedBinaryString,T.base64);var P=new d(x,N,T);this.files[x]=P}var o=n("./utf8"),s=n("./utils"),l=n("./stream/GenericWorker"),c=n("./stream/StreamHelper"),u=n("./defaults"),f=n("./compressedObject"),d=n("./zipObject"),h=n("./generate"),p=n("./nodejsUtils"),v=n("./nodejs/NodejsStreamInputAdapter"),g=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var M=x.lastIndexOf("/");return 0<M?x.substring(0,M):""},y=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},m=function(x,M){return M=M!==void 0?M:u.createFolders,x=y(x),this.files[x]||i.call(this,x,null,{dir:!0,createFolders:M}),this.files[x]};function R(x){return Object.prototype.toString.call(x)==="[object RegExp]"}var A={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(x){var M,S,w;for(M in this.files)w=this.files[M],(S=M.slice(this.root.length,M.length))&&M.slice(0,this.root.length)===this.root&&x(S,w)},filter:function(x){var M=[];return this.forEach(function(S,w){x(S,w)&&M.push(w)}),M},file:function(x,M,S){if(arguments.length!==1)return x=this.root+x,i.call(this,x,M,S),this;if(R(x)){var w=x;return this.filter(function(T,O){return!O.dir&&w.test(T)})}var _=this.files[this.root+x];return _&&!_.dir?_:null},folder:function(x){if(!x)return this;if(R(x))return this.filter(function(_,T){return T.dir&&x.test(_)});var M=this.root+x,S=m.call(this,M),w=this.clone();return w.root=S.name,w},remove:function(x){x=this.root+x;var M=this.files[x];if(M||(x.slice(-1)!=="/"&&(x+="/"),M=this.files[x]),M&&!M.dir)delete this.files[x];else for(var S=this.filter(function(_,T){return T.name.slice(0,x.length)===x}),w=0;w<S.length;w++)delete this.files[S[w].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(x){var M,S={};try{if((S=s.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=S.type.toLowerCase(),S.compression=S.compression.toUpperCase(),S.type==="binarystring"&&(S.type="string"),!S.type)throw new Error("No output type specified.");s.checkSupport(S.type),S.platform!=="darwin"&&S.platform!=="freebsd"&&S.platform!=="linux"&&S.platform!=="sunos"||(S.platform="UNIX"),S.platform==="win32"&&(S.platform="DOS");var w=S.comment||this.comment||"";M=h.generateWorker(this,S,w)}catch(_){(M=new l("error")).error(_)}return new c(M,S.type||"string",S.mimeType)},generateAsync:function(x,M){return this.generateInternalStream(x).accumulate(M)},generateNodeStream:function(x,M){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(M)}};r.exports=A},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,a){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,a){var i=n("./DataReader");function o(s){i.call(this,s);for(var l=0;l<this.data.length;l++)s[l]=255&s[l]}n("../utils").inherits(o,i),o.prototype.byteAt=function(s){return this.data[this.zero+s]},o.prototype.lastIndexOfSignature=function(s){for(var l=s.charCodeAt(0),c=s.charCodeAt(1),u=s.charCodeAt(2),f=s.charCodeAt(3),d=this.length-4;0<=d;--d)if(this.data[d]===l&&this.data[d+1]===c&&this.data[d+2]===u&&this.data[d+3]===f)return d-this.zero;return-1},o.prototype.readAndCheckSignature=function(s){var l=s.charCodeAt(0),c=s.charCodeAt(1),u=s.charCodeAt(2),f=s.charCodeAt(3),d=this.readData(4);return l===d[0]&&c===d[1]&&u===d[2]&&f===d[3]},o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=o},{"../utils":32,"./DataReader":18}],18:[function(n,r,a){var i=n("../utils");function o(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var l,c=0;for(this.checkOffset(s),l=this.index+s-1;l>=this.index;l--)c=(c<<8)+this.byteAt(l);return this.index+=s,c},readString:function(s){return i.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},r.exports=o},{"../utils":32}],19:[function(n,r,a){var i=n("./Uint8ArrayReader");function o(s){i.call(this,s)}n("../utils").inherits(o,i),o.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,a){var i=n("./DataReader");function o(s){i.call(this,s)}n("../utils").inherits(o,i),o.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},o.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},o.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},o.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=o},{"../utils":32,"./DataReader":18}],21:[function(n,r,a){var i=n("./ArrayReader");function o(s){i.call(this,s)}n("../utils").inherits(o,i),o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,a){var i=n("../utils"),o=n("../support"),s=n("./ArrayReader"),l=n("./StringReader"),c=n("./NodeBufferReader"),u=n("./Uint8ArrayReader");r.exports=function(f){var d=i.getTypeOf(f);return i.checkSupport(d),d!=="string"||o.uint8array?d==="nodebuffer"?new c(f):o.uint8array?new u(i.transformTo("uint8array",f)):new s(i.transformTo("array",f)):new l(f)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,a){a.LOCAL_FILE_HEADER="PK",a.CENTRAL_FILE_HEADER="PK",a.CENTRAL_DIRECTORY_END="PK",a.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",a.ZIP64_CENTRAL_DIRECTORY_END="PK",a.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,a){var i=n("./GenericWorker"),o=n("../utils");function s(l){i.call(this,"ConvertWorker to "+l),this.destType=l}o.inherits(s,i),s.prototype.processChunk=function(l){this.push({data:o.transformTo(this.destType,l.data),meta:l.meta})},r.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,a){var i=n("./GenericWorker"),o=n("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(s,i),s.prototype.processChunk=function(l){this.streamInfo.crc32=o(l.data,this.streamInfo.crc32||0),this.push(l)},r.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,a){var i=n("../utils"),o=n("./GenericWorker");function s(l){o.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}i.inherits(s,o),s.prototype.processChunk=function(l){if(l){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+l.data.length}o.prototype.processChunk.call(this,l)},r.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,a){var i=n("../utils"),o=n("./GenericWorker");function s(l){o.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(u){c.dataIsReady=!0,c.data=u,c.max=u&&u.length||0,c.type=i.getTypeOf(u),c.isPaused||c._tickAndRepeat()},function(u){c.error(u)})}i.inherits(s,o),s.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,c);break;case"uint8array":l=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":l=this.data.slice(this.index,c)}return this.index=c,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,a){function i(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,s){return this._listeners[o].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,s){if(this._listeners[o])for(var l=0;l<this._listeners[o].length;l++)this._listeners[o][l].call(this,s)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var s=this;return o.on("data",function(l){s.processChunk(l)}),o.on("end",function(){s.end()}),o.on("error",function(l){s.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,s){return this.extraStreamInfo[o]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},r.exports=i},{}],29:[function(n,r,a){var i=n("../utils"),o=n("./ConvertWorker"),s=n("./GenericWorker"),l=n("../base64"),c=n("../support"),u=n("../external"),f=null;if(c.nodestream)try{f=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function d(p,v){return new u.Promise(function(g,y){var m=[],R=p._internalType,A=p._outputType,x=p._mimeType;p.on("data",function(M,S){m.push(M),v&&v(S)}).on("error",function(M){m=[],y(M)}).on("end",function(){try{var M=function(S,w,_){switch(S){case"blob":return i.newBlob(i.transformTo("arraybuffer",w),_);case"base64":return l.encode(w);default:return i.transformTo(S,w)}}(A,function(S,w){var _,T=0,O=null,N=0;for(_=0;_<w.length;_++)N+=w[_].length;switch(S){case"string":return w.join("");case"array":return Array.prototype.concat.apply([],w);case"uint8array":for(O=new Uint8Array(N),_=0;_<w.length;_++)O.set(w[_],T),T+=w[_].length;return O;case"nodebuffer":return Buffer.concat(w);default:throw new Error("concat : unsupported type '"+S+"'")}}(R,m),x);g(M)}catch(S){y(S)}m=[]}).resume()})}function h(p,v,g){var y=v;switch(v){case"blob":case"arraybuffer":y="uint8array";break;case"base64":y="string"}try{this._internalType=y,this._outputType=v,this._mimeType=g,i.checkSupport(y),this._worker=p.pipe(new o(y)),p.lock()}catch(m){this._worker=new s("error"),this._worker.error(m)}}h.prototype={accumulate:function(p){return d(this,p)},on:function(p,v){var g=this;return p==="data"?this._worker.on(p,function(y){v.call(g,y.data,y.meta)}):this._worker.on(p,function(){i.delay(v,arguments,g)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(p){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new f(this,{objectMode:this._outputType!=="nodebuffer"},p)}},r.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,a){if(a.base64=!0,a.array=!0,a.string=!0,a.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",a.nodebuffer=typeof Buffer<"u",a.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")a.blob=!1;else{var i=new ArrayBuffer(0);try{a.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(i),a.blob=o.getBlob("application/zip").size===0}catch{a.blob=!1}}}try{a.nodestream=!!n("readable-stream").Readable}catch{a.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,a){for(var i=n("./utils"),o=n("./support"),s=n("./nodejsUtils"),l=n("./stream/GenericWorker"),c=new Array(256),u=0;u<256;u++)c[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;c[254]=c[254]=1;function f(){l.call(this,"utf-8 decode"),this.leftOver=null}function d(){l.call(this,"utf-8 encode")}a.utf8encode=function(h){return o.nodebuffer?s.newBufferFrom(h,"utf-8"):function(p){var v,g,y,m,R,A=p.length,x=0;for(m=0;m<A;m++)(64512&(g=p.charCodeAt(m)))==55296&&m+1<A&&(64512&(y=p.charCodeAt(m+1)))==56320&&(g=65536+(g-55296<<10)+(y-56320),m++),x+=g<128?1:g<2048?2:g<65536?3:4;for(v=o.uint8array?new Uint8Array(x):new Array(x),m=R=0;R<x;m++)(64512&(g=p.charCodeAt(m)))==55296&&m+1<A&&(64512&(y=p.charCodeAt(m+1)))==56320&&(g=65536+(g-55296<<10)+(y-56320),m++),g<128?v[R++]=g:(g<2048?v[R++]=192|g>>>6:(g<65536?v[R++]=224|g>>>12:(v[R++]=240|g>>>18,v[R++]=128|g>>>12&63),v[R++]=128|g>>>6&63),v[R++]=128|63&g);return v}(h)},a.utf8decode=function(h){return o.nodebuffer?i.transformTo("nodebuffer",h).toString("utf-8"):function(p){var v,g,y,m,R=p.length,A=new Array(2*R);for(v=g=0;v<R;)if((y=p[v++])<128)A[g++]=y;else if(4<(m=c[y]))A[g++]=65533,v+=m-1;else{for(y&=m===2?31:m===3?15:7;1<m&&v<R;)y=y<<6|63&p[v++],m--;1<m?A[g++]=65533:y<65536?A[g++]=y:(y-=65536,A[g++]=55296|y>>10&1023,A[g++]=56320|1023&y)}return A.length!==g&&(A.subarray?A=A.subarray(0,g):A.length=g),i.applyFromCharCode(A)}(h=i.transformTo(o.uint8array?"uint8array":"array",h))},i.inherits(f,l),f.prototype.processChunk=function(h){var p=i.transformTo(o.uint8array?"uint8array":"array",h.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var v=p;(p=new Uint8Array(v.length+this.leftOver.length)).set(this.leftOver,0),p.set(v,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var g=function(m,R){var A;for((R=R||m.length)>m.length&&(R=m.length),A=R-1;0<=A&&(192&m[A])==128;)A--;return A<0||A===0?R:A+c[m[A]]>R?A:R}(p),y=p;g!==p.length&&(o.uint8array?(y=p.subarray(0,g),this.leftOver=p.subarray(g,p.length)):(y=p.slice(0,g),this.leftOver=p.slice(g,p.length))),this.push({data:a.utf8decode(y),meta:h.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=f,i.inherits(d,l),d.prototype.processChunk=function(h){this.push({data:a.utf8encode(h.data),meta:h.meta})},a.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,a){var i=n("./support"),o=n("./base64"),s=n("./nodejsUtils"),l=n("./external");function c(v){return v}function u(v,g){for(var y=0;y<v.length;++y)g[y]=255&v.charCodeAt(y);return g}n("setimmediate"),a.newBlob=function(v,g){a.checkSupport("blob");try{return new Blob([v],{type:g})}catch{try{var y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return y.append(v),y.getBlob(g)}catch{throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(v,g,y){var m=[],R=0,A=v.length;if(A<=y)return String.fromCharCode.apply(null,v);for(;R<A;)g==="array"||g==="nodebuffer"?m.push(String.fromCharCode.apply(null,v.slice(R,Math.min(R+y,A)))):m.push(String.fromCharCode.apply(null,v.subarray(R,Math.min(R+y,A)))),R+=y;return m.join("")},stringifyByChar:function(v){for(var g="",y=0;y<v.length;y++)g+=String.fromCharCode(v[y]);return g},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}}()}};function d(v){var g=65536,y=a.getTypeOf(v),m=!0;if(y==="uint8array"?m=f.applyCanBeUsed.uint8array:y==="nodebuffer"&&(m=f.applyCanBeUsed.nodebuffer),m)for(;1<g;)try{return f.stringifyByChunk(v,y,g)}catch{g=Math.floor(g/2)}return f.stringifyByChar(v)}function h(v,g){for(var y=0;y<v.length;y++)g[y]=v[y];return g}a.applyFromCharCode=d;var p={};p.string={string:c,array:function(v){return u(v,new Array(v.length))},arraybuffer:function(v){return p.string.uint8array(v).buffer},uint8array:function(v){return u(v,new Uint8Array(v.length))},nodebuffer:function(v){return u(v,s.allocBuffer(v.length))}},p.array={string:d,array:c,arraybuffer:function(v){return new Uint8Array(v).buffer},uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return s.newBufferFrom(v)}},p.arraybuffer={string:function(v){return d(new Uint8Array(v))},array:function(v){return h(new Uint8Array(v),new Array(v.byteLength))},arraybuffer:c,uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return s.newBufferFrom(new Uint8Array(v))}},p.uint8array={string:d,array:function(v){return h(v,new Array(v.length))},arraybuffer:function(v){return v.buffer},uint8array:c,nodebuffer:function(v){return s.newBufferFrom(v)}},p.nodebuffer={string:d,array:function(v){return h(v,new Array(v.length))},arraybuffer:function(v){return p.nodebuffer.uint8array(v).buffer},uint8array:function(v){return h(v,new Uint8Array(v.length))},nodebuffer:c},a.transformTo=function(v,g){if(g=g||"",!v)return g;a.checkSupport(v);var y=a.getTypeOf(g);return p[y][v](g)},a.resolve=function(v){for(var g=v.split("/"),y=[],m=0;m<g.length;m++){var R=g[m];R==="."||R===""&&m!==0&&m!==g.length-1||(R===".."?y.pop():y.push(R))}return y.join("/")},a.getTypeOf=function(v){return typeof v=="string"?"string":Object.prototype.toString.call(v)==="[object Array]"?"array":i.nodebuffer&&s.isBuffer(v)?"nodebuffer":i.uint8array&&v instanceof Uint8Array?"uint8array":i.arraybuffer&&v instanceof ArrayBuffer?"arraybuffer":void 0},a.checkSupport=function(v){if(!i[v.toLowerCase()])throw new Error(v+" is not supported by this platform")},a.MAX_VALUE_16BITS=65535,a.MAX_VALUE_32BITS=-1,a.pretty=function(v){var g,y,m="";for(y=0;y<(v||"").length;y++)m+="\\x"+((g=v.charCodeAt(y))<16?"0":"")+g.toString(16).toUpperCase();return m},a.delay=function(v,g,y){setImmediate(function(){v.apply(y||null,g||[])})},a.inherits=function(v,g){function y(){}y.prototype=g.prototype,v.prototype=new y},a.extend=function(){var v,g,y={};for(v=0;v<arguments.length;v++)for(g in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],g)&&y[g]===void 0&&(y[g]=arguments[v][g]);return y},a.prepareContent=function(v,g,y,m,R){return l.Promise.resolve(g).then(function(A){return i.blob&&(A instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(A))!==-1)&&typeof FileReader<"u"?new l.Promise(function(x,M){var S=new FileReader;S.onload=function(w){x(w.target.result)},S.onerror=function(w){M(w.target.error)},S.readAsArrayBuffer(A)}):A}).then(function(A){var x=a.getTypeOf(A);return x?(x==="arraybuffer"?A=a.transformTo("uint8array",A):x==="string"&&(R?A=o.decode(A):y&&m!==!0&&(A=function(M){return u(M,i.uint8array?new Uint8Array(M.length):new Array(M.length))}(A))),A):l.Promise.reject(new Error("Can't read the data of '"+v+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,a){var i=n("./reader/readerFor"),o=n("./utils"),s=n("./signature"),l=n("./zipEntry"),c=n("./support");function u(f){this.files=[],this.loadOptions=f}u.prototype={checkSignature:function(f){if(!this.reader.readAndCheckSignature(f)){this.reader.index-=4;var d=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(d)+", expected "+o.pretty(f)+")")}},isSignature:function(f,d){var h=this.reader.index;this.reader.setIndex(f);var p=this.reader.readString(4)===d;return this.reader.setIndex(h),p},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var f=this.reader.readData(this.zipCommentLength),d=c.uint8array?"uint8array":"array",h=o.transformTo(d,f);this.zipComment=this.loadOptions.decodeFileName(h)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var f,d,h,p=this.zip64EndOfCentralSize-44;0<p;)f=this.reader.readInt(2),d=this.reader.readInt(4),h=this.reader.readData(d),this.zip64ExtensibleData[f]={id:f,length:d,value:h}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var f,d;for(f=0;f<this.files.length;f++)d=this.files[f],this.reader.setIndex(d.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),d.readLocalPart(this.reader),d.handleUTF8(),d.processAttributes()},readCentralDir:function(){var f;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(f=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(f);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var f=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(f<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(f);var d=f;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(f=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(f),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var h=this.centralDirOffset+this.centralDirSize;this.zip64&&(h+=20,h+=12+this.zip64EndOfCentralSize);var p=d-h;if(0<p)this.isSignature(d,s.CENTRAL_FILE_HEADER)||(this.reader.zero=p);else if(p<0)throw new Error("Corrupted zip: missing "+Math.abs(p)+" bytes.")},prepareReader:function(f){this.reader=i(f)},load:function(f){this.prepareReader(f),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,a){var i=n("./reader/readerFor"),o=n("./utils"),s=n("./compressedObject"),l=n("./crc32"),c=n("./utf8"),u=n("./compressions"),f=n("./support");function d(h,p){this.options=h,this.loadOptions=p}d.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(h){var p,v;if(h.skip(22),this.fileNameLength=h.readInt(2),v=h.readInt(2),this.fileName=h.readData(this.fileNameLength),h.skip(v),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((p=function(g){for(var y in u)if(Object.prototype.hasOwnProperty.call(u,y)&&u[y].magic===g)return u[y];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,p,h.readData(this.compressedSize))},readCentralPart:function(h){this.versionMadeBy=h.readInt(2),h.skip(2),this.bitFlag=h.readInt(2),this.compressionMethod=h.readString(2),this.date=h.readDate(),this.crc32=h.readInt(4),this.compressedSize=h.readInt(4),this.uncompressedSize=h.readInt(4);var p=h.readInt(2);if(this.extraFieldsLength=h.readInt(2),this.fileCommentLength=h.readInt(2),this.diskNumberStart=h.readInt(2),this.internalFileAttributes=h.readInt(2),this.externalFileAttributes=h.readInt(4),this.localHeaderOffset=h.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");h.skip(p),this.readExtraFields(h),this.parseZIP64ExtraField(h),this.fileComment=h.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var h=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),h==0&&(this.dosPermissions=63&this.externalFileAttributes),h==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var h=i(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=h.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=h.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=h.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=h.readInt(4))}},readExtraFields:function(h){var p,v,g,y=h.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});h.index+4<y;)p=h.readInt(2),v=h.readInt(2),g=h.readData(v),this.extraFields[p]={id:p,length:v,value:g};h.setIndex(y)},handleUTF8:function(){var h=f.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var p=this.findExtraFieldUnicodePath();if(p!==null)this.fileNameStr=p;else{var v=o.transformTo(h,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(v)}var g=this.findExtraFieldUnicodeComment();if(g!==null)this.fileCommentStr=g;else{var y=o.transformTo(h,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(y)}}},findExtraFieldUnicodePath:function(){var h=this.extraFields[28789];if(h){var p=i(h.value);return p.readInt(1)!==1||l(this.fileName)!==p.readInt(4)?null:c.utf8decode(p.readData(h.length-5))}return null},findExtraFieldUnicodeComment:function(){var h=this.extraFields[25461];if(h){var p=i(h.value);return p.readInt(1)!==1||l(this.fileComment)!==p.readInt(4)?null:c.utf8decode(p.readData(h.length-5))}return null}},r.exports=d},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,a){function i(p,v,g){this.name=p,this.dir=g.dir,this.date=g.date,this.comment=g.comment,this.unixPermissions=g.unixPermissions,this.dosPermissions=g.dosPermissions,this._data=v,this._dataBinary=g.binary,this.options={compression:g.compression,compressionOptions:g.compressionOptions}}var o=n("./stream/StreamHelper"),s=n("./stream/DataWorker"),l=n("./utf8"),c=n("./compressedObject"),u=n("./stream/GenericWorker");i.prototype={internalStream:function(p){var v=null,g="string";try{if(!p)throw new Error("No output type specified.");var y=(g=p.toLowerCase())==="string"||g==="text";g!=="binarystring"&&g!=="text"||(g="string"),v=this._decompressWorker();var m=!this._dataBinary;m&&!y&&(v=v.pipe(new l.Utf8EncodeWorker)),!m&&y&&(v=v.pipe(new l.Utf8DecodeWorker))}catch(R){(v=new u("error")).error(R)}return new o(v,g,"")},async:function(p,v){return this.internalStream(p).accumulate(v)},nodeStream:function(p,v){return this.internalStream(p||"nodebuffer").toNodejsStream(v)},_compressWorker:function(p,v){if(this._data instanceof c&&this._data.compression.magic===p.magic)return this._data.getCompressedWorker();var g=this._decompressWorker();return this._dataBinary||(g=g.pipe(new l.Utf8EncodeWorker)),c.createWorkerFrom(g,p,v)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof u?this._data:new s(this._data)}};for(var f=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],d=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<f.length;h++)i.prototype[f[h]]=d;r.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,a){(function(i){var o,s,l=i.MutationObserver||i.WebKitMutationObserver;if(l){var c=0,u=new l(p),f=i.document.createTextNode("");u.observe(f,{characterData:!0}),o=function(){f.data=c=++c%2}}else if(i.setImmediate||i.MessageChannel===void 0)o="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var v=i.document.createElement("script");v.onreadystatechange=function(){p(),v.onreadystatechange=null,v.parentNode.removeChild(v),v=null},i.document.documentElement.appendChild(v)}:function(){setTimeout(p,0)};else{var d=new i.MessageChannel;d.port1.onmessage=p,o=function(){d.port2.postMessage(0)}}var h=[];function p(){var v,g;s=!0;for(var y=h.length;y;){for(g=h,h=[],v=-1;++v<y;)g[v]();y=h.length}s=!1}r.exports=function(v){h.push(v)!==1||s||o()}}).call(this,typeof cn<"u"?cn:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,a){var i=n("immediate");function o(){}var s={},l=["REJECTED"],c=["FULFILLED"],u=["PENDING"];function f(y){if(typeof y!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,y!==o&&v(this,y)}function d(y,m,R){this.promise=y,typeof m=="function"&&(this.onFulfilled=m,this.callFulfilled=this.otherCallFulfilled),typeof R=="function"&&(this.onRejected=R,this.callRejected=this.otherCallRejected)}function h(y,m,R){i(function(){var A;try{A=m(R)}catch(x){return s.reject(y,x)}A===y?s.reject(y,new TypeError("Cannot resolve promise with itself")):s.resolve(y,A)})}function p(y){var m=y&&y.then;if(y&&(typeof y=="object"||typeof y=="function")&&typeof m=="function")return function(){m.apply(y,arguments)}}function v(y,m){var R=!1;function A(S){R||(R=!0,s.reject(y,S))}function x(S){R||(R=!0,s.resolve(y,S))}var M=g(function(){m(x,A)});M.status==="error"&&A(M.value)}function g(y,m){var R={};try{R.value=y(m),R.status="success"}catch(A){R.status="error",R.value=A}return R}(r.exports=f).prototype.finally=function(y){if(typeof y!="function")return this;var m=this.constructor;return this.then(function(R){return m.resolve(y()).then(function(){return R})},function(R){return m.resolve(y()).then(function(){throw R})})},f.prototype.catch=function(y){return this.then(null,y)},f.prototype.then=function(y,m){if(typeof y!="function"&&this.state===c||typeof m!="function"&&this.state===l)return this;var R=new this.constructor(o);return this.state!==u?h(R,this.state===c?y:m,this.outcome):this.queue.push(new d(R,y,m)),R},d.prototype.callFulfilled=function(y){s.resolve(this.promise,y)},d.prototype.otherCallFulfilled=function(y){h(this.promise,this.onFulfilled,y)},d.prototype.callRejected=function(y){s.reject(this.promise,y)},d.prototype.otherCallRejected=function(y){h(this.promise,this.onRejected,y)},s.resolve=function(y,m){var R=g(p,m);if(R.status==="error")return s.reject(y,R.value);var A=R.value;if(A)v(y,A);else{y.state=c,y.outcome=m;for(var x=-1,M=y.queue.length;++x<M;)y.queue[x].callFulfilled(m)}return y},s.reject=function(y,m){y.state=l,y.outcome=m;for(var R=-1,A=y.queue.length;++R<A;)y.queue[R].callRejected(m);return y},f.resolve=function(y){return y instanceof this?y:s.resolve(new this(o),y)},f.reject=function(y){var m=new this(o);return s.reject(m,y)},f.all=function(y){var m=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=y.length,A=!1;if(!R)return this.resolve([]);for(var x=new Array(R),M=0,S=-1,w=new this(o);++S<R;)_(y[S],S);return w;function _(T,O){m.resolve(T).then(function(N){x[O]=N,++M!==R||A||(A=!0,s.resolve(w,x))},function(N){A||(A=!0,s.reject(w,N))})}},f.race=function(y){var m=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=y.length,A=!1;if(!R)return this.resolve([]);for(var x=-1,M=new this(o);++x<R;)S=y[x],m.resolve(S).then(function(w){A||(A=!0,s.resolve(M,w))},function(w){A||(A=!0,s.reject(M,w))});var S;return M}},{immediate:36}],38:[function(n,r,a){var i={};(0,n("./lib/utils/common").assign)(i,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,a){var i=n("./zlib/deflate"),o=n("./utils/common"),s=n("./utils/strings"),l=n("./zlib/messages"),c=n("./zlib/zstream"),u=Object.prototype.toString,f=0,d=-1,h=0,p=8;function v(y){if(!(this instanceof v))return new v(y);this.options=o.assign({level:d,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},y||{});var m=this.options;m.raw&&0<m.windowBits?m.windowBits=-m.windowBits:m.gzip&&0<m.windowBits&&m.windowBits<16&&(m.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var R=i.deflateInit2(this.strm,m.level,m.method,m.windowBits,m.memLevel,m.strategy);if(R!==f)throw new Error(l[R]);if(m.header&&i.deflateSetHeader(this.strm,m.header),m.dictionary){var A;if(A=typeof m.dictionary=="string"?s.string2buf(m.dictionary):u.call(m.dictionary)==="[object ArrayBuffer]"?new Uint8Array(m.dictionary):m.dictionary,(R=i.deflateSetDictionary(this.strm,A))!==f)throw new Error(l[R]);this._dict_set=!0}}function g(y,m){var R=new v(m);if(R.push(y,!0),R.err)throw R.msg||l[R.err];return R.result}v.prototype.push=function(y,m){var R,A,x=this.strm,M=this.options.chunkSize;if(this.ended)return!1;A=m===~~m?m:m===!0?4:0,typeof y=="string"?x.input=s.string2buf(y):u.call(y)==="[object ArrayBuffer]"?x.input=new Uint8Array(y):x.input=y,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new o.Buf8(M),x.next_out=0,x.avail_out=M),(R=i.deflate(x,A))!==1&&R!==f)return this.onEnd(R),!(this.ended=!0);x.avail_out!==0&&(x.avail_in!==0||A!==4&&A!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(o.shrinkBuf(x.output,x.next_out))):this.onData(o.shrinkBuf(x.output,x.next_out)))}while((0<x.avail_in||x.avail_out===0)&&R!==1);return A===4?(R=i.deflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===f):A!==2||(this.onEnd(f),!(x.avail_out=0))},v.prototype.onData=function(y){this.chunks.push(y)},v.prototype.onEnd=function(y){y===f&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},a.Deflate=v,a.deflate=g,a.deflateRaw=function(y,m){return(m=m||{}).raw=!0,g(y,m)},a.gzip=function(y,m){return(m=m||{}).gzip=!0,g(y,m)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,a){var i=n("./zlib/inflate"),o=n("./utils/common"),s=n("./utils/strings"),l=n("./zlib/constants"),c=n("./zlib/messages"),u=n("./zlib/zstream"),f=n("./zlib/gzheader"),d=Object.prototype.toString;function h(v){if(!(this instanceof h))return new h(v);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},v||{});var g=this.options;g.raw&&0<=g.windowBits&&g.windowBits<16&&(g.windowBits=-g.windowBits,g.windowBits===0&&(g.windowBits=-15)),!(0<=g.windowBits&&g.windowBits<16)||v&&v.windowBits||(g.windowBits+=32),15<g.windowBits&&g.windowBits<48&&!(15&g.windowBits)&&(g.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var y=i.inflateInit2(this.strm,g.windowBits);if(y!==l.Z_OK)throw new Error(c[y]);this.header=new f,i.inflateGetHeader(this.strm,this.header)}function p(v,g){var y=new h(g);if(y.push(v,!0),y.err)throw y.msg||c[y.err];return y.result}h.prototype.push=function(v,g){var y,m,R,A,x,M,S=this.strm,w=this.options.chunkSize,_=this.options.dictionary,T=!1;if(this.ended)return!1;m=g===~~g?g:g===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof v=="string"?S.input=s.binstring2buf(v):d.call(v)==="[object ArrayBuffer]"?S.input=new Uint8Array(v):S.input=v,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new o.Buf8(w),S.next_out=0,S.avail_out=w),(y=i.inflate(S,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&_&&(M=typeof _=="string"?s.string2buf(_):d.call(_)==="[object ArrayBuffer]"?new Uint8Array(_):_,y=i.inflateSetDictionary(this.strm,M)),y===l.Z_BUF_ERROR&&T===!0&&(y=l.Z_OK,T=!1),y!==l.Z_STREAM_END&&y!==l.Z_OK)return this.onEnd(y),!(this.ended=!0);S.next_out&&(S.avail_out!==0&&y!==l.Z_STREAM_END&&(S.avail_in!==0||m!==l.Z_FINISH&&m!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(R=s.utf8border(S.output,S.next_out),A=S.next_out-R,x=s.buf2string(S.output,R),S.next_out=A,S.avail_out=w-A,A&&o.arraySet(S.output,S.output,R,A,0),this.onData(x)):this.onData(o.shrinkBuf(S.output,S.next_out)))),S.avail_in===0&&S.avail_out===0&&(T=!0)}while((0<S.avail_in||S.avail_out===0)&&y!==l.Z_STREAM_END);return y===l.Z_STREAM_END&&(m=l.Z_FINISH),m===l.Z_FINISH?(y=i.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===l.Z_OK):m!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(S.avail_out=0))},h.prototype.onData=function(v){this.chunks.push(v)},h.prototype.onEnd=function(v){v===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},a.Inflate=h,a.inflate=p,a.inflateRaw=function(v,g){return(g=g||{}).raw=!0,p(v,g)},a.ungzip=p},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,a){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";a.assign=function(l){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var u=c.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var f in u)u.hasOwnProperty(f)&&(l[f]=u[f])}}return l},a.shrinkBuf=function(l,c){return l.length===c?l:l.subarray?l.subarray(0,c):(l.length=c,l)};var o={arraySet:function(l,c,u,f,d){if(c.subarray&&l.subarray)l.set(c.subarray(u,u+f),d);else for(var h=0;h<f;h++)l[d+h]=c[u+h]},flattenChunks:function(l){var c,u,f,d,h,p;for(c=f=0,u=l.length;c<u;c++)f+=l[c].length;for(p=new Uint8Array(f),c=d=0,u=l.length;c<u;c++)h=l[c],p.set(h,d),d+=h.length;return p}},s={arraySet:function(l,c,u,f,d){for(var h=0;h<f;h++)l[d+h]=c[u+h]},flattenChunks:function(l){return[].concat.apply([],l)}};a.setTyped=function(l){l?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,o)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,s))},a.setTyped(i)},{}],42:[function(n,r,a){var i=n("./common"),o=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var l=new i.Buf8(256),c=0;c<256;c++)l[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(f,d){if(d<65537&&(f.subarray&&s||!f.subarray&&o))return String.fromCharCode.apply(null,i.shrinkBuf(f,d));for(var h="",p=0;p<d;p++)h+=String.fromCharCode(f[p]);return h}l[254]=l[254]=1,a.string2buf=function(f){var d,h,p,v,g,y=f.length,m=0;for(v=0;v<y;v++)(64512&(h=f.charCodeAt(v)))==55296&&v+1<y&&(64512&(p=f.charCodeAt(v+1)))==56320&&(h=65536+(h-55296<<10)+(p-56320),v++),m+=h<128?1:h<2048?2:h<65536?3:4;for(d=new i.Buf8(m),v=g=0;g<m;v++)(64512&(h=f.charCodeAt(v)))==55296&&v+1<y&&(64512&(p=f.charCodeAt(v+1)))==56320&&(h=65536+(h-55296<<10)+(p-56320),v++),h<128?d[g++]=h:(h<2048?d[g++]=192|h>>>6:(h<65536?d[g++]=224|h>>>12:(d[g++]=240|h>>>18,d[g++]=128|h>>>12&63),d[g++]=128|h>>>6&63),d[g++]=128|63&h);return d},a.buf2binstring=function(f){return u(f,f.length)},a.binstring2buf=function(f){for(var d=new i.Buf8(f.length),h=0,p=d.length;h<p;h++)d[h]=f.charCodeAt(h);return d},a.buf2string=function(f,d){var h,p,v,g,y=d||f.length,m=new Array(2*y);for(h=p=0;h<y;)if((v=f[h++])<128)m[p++]=v;else if(4<(g=l[v]))m[p++]=65533,h+=g-1;else{for(v&=g===2?31:g===3?15:7;1<g&&h<y;)v=v<<6|63&f[h++],g--;1<g?m[p++]=65533:v<65536?m[p++]=v:(v-=65536,m[p++]=55296|v>>10&1023,m[p++]=56320|1023&v)}return u(m,p)},a.utf8border=function(f,d){var h;for((d=d||f.length)>f.length&&(d=f.length),h=d-1;0<=h&&(192&f[h])==128;)h--;return h<0||h===0?d:h+l[f[h]]>d?h:d}},{"./common":41}],43:[function(n,r,a){r.exports=function(i,o,s,l){for(var c=65535&i|0,u=i>>>16&65535|0,f=0;s!==0;){for(s-=f=2e3<s?2e3:s;u=u+(c=c+o[l++]|0)|0,--f;);c%=65521,u%=65521}return c|u<<16|0}},{}],44:[function(n,r,a){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,a){var i=function(){for(var o,s=[],l=0;l<256;l++){o=l;for(var c=0;c<8;c++)o=1&o?3988292384^o>>>1:o>>>1;s[l]=o}return s}();r.exports=function(o,s,l,c){var u=i,f=c+l;o^=-1;for(var d=c;d<f;d++)o=o>>>8^u[255&(o^s[d])];return-1^o}},{}],46:[function(n,r,a){var i,o=n("../utils/common"),s=n("./trees"),l=n("./adler32"),c=n("./crc32"),u=n("./messages"),f=0,d=4,h=0,p=-2,v=-1,g=4,y=2,m=8,R=9,A=286,x=30,M=19,S=2*A+1,w=15,_=3,T=258,O=T+_+1,N=42,P=113,C=1,E=2,F=3,Y=4;function Q(X,j){return X.msg=u[j],j}function K(X){return(X<<1)-(4<X?9:0)}function ne(X){for(var j=X.length;0<=--j;)X[j]=0}function Z(X){var j=X.state,oe=j.pending;oe>X.avail_out&&(oe=X.avail_out),oe!==0&&(o.arraySet(X.output,j.pending_buf,j.pending_out,oe,X.next_out),X.next_out+=oe,j.pending_out+=oe,X.total_out+=oe,X.avail_out-=oe,j.pending-=oe,j.pending===0&&(j.pending_out=0))}function $(X,j){s._tr_flush_block(X,0<=X.block_start?X.block_start:-1,X.strstart-X.block_start,j),X.block_start=X.strstart,Z(X.strm)}function G(X,j){X.pending_buf[X.pending++]=j}function ee(X,j){X.pending_buf[X.pending++]=j>>>8&255,X.pending_buf[X.pending++]=255&j}function ce(X,j){var oe,ae,le=X.max_chain_length,ge=X.strstart,Se=X.prev_length,me=X.nice_match,ye=X.strstart>X.w_size-O?X.strstart-(X.w_size-O):0,Ve=X.window,De=X.w_mask,Ye=X.prev,Je=X.strstart+T,wt=Ve[ge+Se-1],Lt=Ve[ge+Se];X.prev_length>=X.good_match&&(le>>=2),me>X.lookahead&&(me=X.lookahead);do if(Ve[(oe=j)+Se]===Lt&&Ve[oe+Se-1]===wt&&Ve[oe]===Ve[ge]&&Ve[++oe]===Ve[ge+1]){ge+=2,oe++;do;while(Ve[++ge]===Ve[++oe]&&Ve[++ge]===Ve[++oe]&&Ve[++ge]===Ve[++oe]&&Ve[++ge]===Ve[++oe]&&Ve[++ge]===Ve[++oe]&&Ve[++ge]===Ve[++oe]&&Ve[++ge]===Ve[++oe]&&Ve[++ge]===Ve[++oe]&&ge<Je);if(ae=T-(Je-ge),ge=Je-T,Se<ae){if(X.match_start=j,me<=(Se=ae))break;wt=Ve[ge+Se-1],Lt=Ve[ge+Se]}}while((j=Ye[j&De])>ye&&--le!=0);return Se<=X.lookahead?Se:X.lookahead}function B(X){var j,oe,ae,le,ge,Se,me,ye,Ve,De,Ye=X.w_size;do{if(le=X.window_size-X.lookahead-X.strstart,X.strstart>=Ye+(Ye-O)){for(o.arraySet(X.window,X.window,Ye,Ye,0),X.match_start-=Ye,X.strstart-=Ye,X.block_start-=Ye,j=oe=X.hash_size;ae=X.head[--j],X.head[j]=Ye<=ae?ae-Ye:0,--oe;);for(j=oe=Ye;ae=X.prev[--j],X.prev[j]=Ye<=ae?ae-Ye:0,--oe;);le+=Ye}if(X.strm.avail_in===0)break;if(Se=X.strm,me=X.window,ye=X.strstart+X.lookahead,Ve=le,De=void 0,De=Se.avail_in,Ve<De&&(De=Ve),oe=De===0?0:(Se.avail_in-=De,o.arraySet(me,Se.input,Se.next_in,De,ye),Se.state.wrap===1?Se.adler=l(Se.adler,me,De,ye):Se.state.wrap===2&&(Se.adler=c(Se.adler,me,De,ye)),Se.next_in+=De,Se.total_in+=De,De),X.lookahead+=oe,X.lookahead+X.insert>=_)for(ge=X.strstart-X.insert,X.ins_h=X.window[ge],X.ins_h=(X.ins_h<<X.hash_shift^X.window[ge+1])&X.hash_mask;X.insert&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[ge+_-1])&X.hash_mask,X.prev[ge&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=ge,ge++,X.insert--,!(X.lookahead+X.insert<_)););}while(X.lookahead<O&&X.strm.avail_in!==0)}function xe(X,j){for(var oe,ae;;){if(X.lookahead<O){if(B(X),X.lookahead<O&&j===f)return C;if(X.lookahead===0)break}if(oe=0,X.lookahead>=_&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+_-1])&X.hash_mask,oe=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart),oe!==0&&X.strstart-oe<=X.w_size-O&&(X.match_length=ce(X,oe)),X.match_length>=_)if(ae=s._tr_tally(X,X.strstart-X.match_start,X.match_length-_),X.lookahead-=X.match_length,X.match_length<=X.max_lazy_match&&X.lookahead>=_){for(X.match_length--;X.strstart++,X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+_-1])&X.hash_mask,oe=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart,--X.match_length!=0;);X.strstart++}else X.strstart+=X.match_length,X.match_length=0,X.ins_h=X.window[X.strstart],X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+1])&X.hash_mask;else ae=s._tr_tally(X,0,X.window[X.strstart]),X.lookahead--,X.strstart++;if(ae&&($(X,!1),X.strm.avail_out===0))return C}return X.insert=X.strstart<_-1?X.strstart:_-1,j===d?($(X,!0),X.strm.avail_out===0?F:Y):X.last_lit&&($(X,!1),X.strm.avail_out===0)?C:E}function _e(X,j){for(var oe,ae,le;;){if(X.lookahead<O){if(B(X),X.lookahead<O&&j===f)return C;if(X.lookahead===0)break}if(oe=0,X.lookahead>=_&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+_-1])&X.hash_mask,oe=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart),X.prev_length=X.match_length,X.prev_match=X.match_start,X.match_length=_-1,oe!==0&&X.prev_length<X.max_lazy_match&&X.strstart-oe<=X.w_size-O&&(X.match_length=ce(X,oe),X.match_length<=5&&(X.strategy===1||X.match_length===_&&4096<X.strstart-X.match_start)&&(X.match_length=_-1)),X.prev_length>=_&&X.match_length<=X.prev_length){for(le=X.strstart+X.lookahead-_,ae=s._tr_tally(X,X.strstart-1-X.prev_match,X.prev_length-_),X.lookahead-=X.prev_length-1,X.prev_length-=2;++X.strstart<=le&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+_-1])&X.hash_mask,oe=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart),--X.prev_length!=0;);if(X.match_available=0,X.match_length=_-1,X.strstart++,ae&&($(X,!1),X.strm.avail_out===0))return C}else if(X.match_available){if((ae=s._tr_tally(X,0,X.window[X.strstart-1]))&&$(X,!1),X.strstart++,X.lookahead--,X.strm.avail_out===0)return C}else X.match_available=1,X.strstart++,X.lookahead--}return X.match_available&&(ae=s._tr_tally(X,0,X.window[X.strstart-1]),X.match_available=0),X.insert=X.strstart<_-1?X.strstart:_-1,j===d?($(X,!0),X.strm.avail_out===0?F:Y):X.last_lit&&($(X,!1),X.strm.avail_out===0)?C:E}function se(X,j,oe,ae,le){this.good_length=X,this.max_lazy=j,this.nice_length=oe,this.max_chain=ae,this.func=le}function z(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*S),this.dyn_dtree=new o.Buf16(2*(2*x+1)),this.bl_tree=new o.Buf16(2*(2*M+1)),ne(this.dyn_ltree),ne(this.dyn_dtree),ne(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(w+1),this.heap=new o.Buf16(2*A+1),ne(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*A+1),ne(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function de(X){var j;return X&&X.state?(X.total_in=X.total_out=0,X.data_type=y,(j=X.state).pending=0,j.pending_out=0,j.wrap<0&&(j.wrap=-j.wrap),j.status=j.wrap?N:P,X.adler=j.wrap===2?0:1,j.last_flush=f,s._tr_init(j),h):Q(X,p)}function fe(X){var j=de(X);return j===h&&function(oe){oe.window_size=2*oe.w_size,ne(oe.head),oe.max_lazy_match=i[oe.level].max_lazy,oe.good_match=i[oe.level].good_length,oe.nice_match=i[oe.level].nice_length,oe.max_chain_length=i[oe.level].max_chain,oe.strstart=0,oe.block_start=0,oe.lookahead=0,oe.insert=0,oe.match_length=oe.prev_length=_-1,oe.match_available=0,oe.ins_h=0}(X.state),j}function re(X,j,oe,ae,le,ge){if(!X)return p;var Se=1;if(j===v&&(j=6),ae<0?(Se=0,ae=-ae):15<ae&&(Se=2,ae-=16),le<1||R<le||oe!==m||ae<8||15<ae||j<0||9<j||ge<0||g<ge)return Q(X,p);ae===8&&(ae=9);var me=new z;return(X.state=me).strm=X,me.wrap=Se,me.gzhead=null,me.w_bits=ae,me.w_size=1<<me.w_bits,me.w_mask=me.w_size-1,me.hash_bits=le+7,me.hash_size=1<<me.hash_bits,me.hash_mask=me.hash_size-1,me.hash_shift=~~((me.hash_bits+_-1)/_),me.window=new o.Buf8(2*me.w_size),me.head=new o.Buf16(me.hash_size),me.prev=new o.Buf16(me.w_size),me.lit_bufsize=1<<le+6,me.pending_buf_size=4*me.lit_bufsize,me.pending_buf=new o.Buf8(me.pending_buf_size),me.d_buf=1*me.lit_bufsize,me.l_buf=3*me.lit_bufsize,me.level=j,me.strategy=ge,me.method=oe,fe(X)}i=[new se(0,0,0,0,function(X,j){var oe=65535;for(oe>X.pending_buf_size-5&&(oe=X.pending_buf_size-5);;){if(X.lookahead<=1){if(B(X),X.lookahead===0&&j===f)return C;if(X.lookahead===0)break}X.strstart+=X.lookahead,X.lookahead=0;var ae=X.block_start+oe;if((X.strstart===0||X.strstart>=ae)&&(X.lookahead=X.strstart-ae,X.strstart=ae,$(X,!1),X.strm.avail_out===0)||X.strstart-X.block_start>=X.w_size-O&&($(X,!1),X.strm.avail_out===0))return C}return X.insert=0,j===d?($(X,!0),X.strm.avail_out===0?F:Y):(X.strstart>X.block_start&&($(X,!1),X.strm.avail_out),C)}),new se(4,4,8,4,xe),new se(4,5,16,8,xe),new se(4,6,32,32,xe),new se(4,4,16,16,_e),new se(8,16,32,32,_e),new se(8,16,128,128,_e),new se(8,32,128,256,_e),new se(32,128,258,1024,_e),new se(32,258,258,4096,_e)],a.deflateInit=function(X,j){return re(X,j,m,15,8,0)},a.deflateInit2=re,a.deflateReset=fe,a.deflateResetKeep=de,a.deflateSetHeader=function(X,j){return X&&X.state?X.state.wrap!==2?p:(X.state.gzhead=j,h):p},a.deflate=function(X,j){var oe,ae,le,ge;if(!X||!X.state||5<j||j<0)return X?Q(X,p):p;if(ae=X.state,!X.output||!X.input&&X.avail_in!==0||ae.status===666&&j!==d)return Q(X,X.avail_out===0?-5:p);if(ae.strm=X,oe=ae.last_flush,ae.last_flush=j,ae.status===N)if(ae.wrap===2)X.adler=0,G(ae,31),G(ae,139),G(ae,8),ae.gzhead?(G(ae,(ae.gzhead.text?1:0)+(ae.gzhead.hcrc?2:0)+(ae.gzhead.extra?4:0)+(ae.gzhead.name?8:0)+(ae.gzhead.comment?16:0)),G(ae,255&ae.gzhead.time),G(ae,ae.gzhead.time>>8&255),G(ae,ae.gzhead.time>>16&255),G(ae,ae.gzhead.time>>24&255),G(ae,ae.level===9?2:2<=ae.strategy||ae.level<2?4:0),G(ae,255&ae.gzhead.os),ae.gzhead.extra&&ae.gzhead.extra.length&&(G(ae,255&ae.gzhead.extra.length),G(ae,ae.gzhead.extra.length>>8&255)),ae.gzhead.hcrc&&(X.adler=c(X.adler,ae.pending_buf,ae.pending,0)),ae.gzindex=0,ae.status=69):(G(ae,0),G(ae,0),G(ae,0),G(ae,0),G(ae,0),G(ae,ae.level===9?2:2<=ae.strategy||ae.level<2?4:0),G(ae,3),ae.status=P);else{var Se=m+(ae.w_bits-8<<4)<<8;Se|=(2<=ae.strategy||ae.level<2?0:ae.level<6?1:ae.level===6?2:3)<<6,ae.strstart!==0&&(Se|=32),Se+=31-Se%31,ae.status=P,ee(ae,Se),ae.strstart!==0&&(ee(ae,X.adler>>>16),ee(ae,65535&X.adler)),X.adler=1}if(ae.status===69)if(ae.gzhead.extra){for(le=ae.pending;ae.gzindex<(65535&ae.gzhead.extra.length)&&(ae.pending!==ae.pending_buf_size||(ae.gzhead.hcrc&&ae.pending>le&&(X.adler=c(X.adler,ae.pending_buf,ae.pending-le,le)),Z(X),le=ae.pending,ae.pending!==ae.pending_buf_size));)G(ae,255&ae.gzhead.extra[ae.gzindex]),ae.gzindex++;ae.gzhead.hcrc&&ae.pending>le&&(X.adler=c(X.adler,ae.pending_buf,ae.pending-le,le)),ae.gzindex===ae.gzhead.extra.length&&(ae.gzindex=0,ae.status=73)}else ae.status=73;if(ae.status===73)if(ae.gzhead.name){le=ae.pending;do{if(ae.pending===ae.pending_buf_size&&(ae.gzhead.hcrc&&ae.pending>le&&(X.adler=c(X.adler,ae.pending_buf,ae.pending-le,le)),Z(X),le=ae.pending,ae.pending===ae.pending_buf_size)){ge=1;break}ge=ae.gzindex<ae.gzhead.name.length?255&ae.gzhead.name.charCodeAt(ae.gzindex++):0,G(ae,ge)}while(ge!==0);ae.gzhead.hcrc&&ae.pending>le&&(X.adler=c(X.adler,ae.pending_buf,ae.pending-le,le)),ge===0&&(ae.gzindex=0,ae.status=91)}else ae.status=91;if(ae.status===91)if(ae.gzhead.comment){le=ae.pending;do{if(ae.pending===ae.pending_buf_size&&(ae.gzhead.hcrc&&ae.pending>le&&(X.adler=c(X.adler,ae.pending_buf,ae.pending-le,le)),Z(X),le=ae.pending,ae.pending===ae.pending_buf_size)){ge=1;break}ge=ae.gzindex<ae.gzhead.comment.length?255&ae.gzhead.comment.charCodeAt(ae.gzindex++):0,G(ae,ge)}while(ge!==0);ae.gzhead.hcrc&&ae.pending>le&&(X.adler=c(X.adler,ae.pending_buf,ae.pending-le,le)),ge===0&&(ae.status=103)}else ae.status=103;if(ae.status===103&&(ae.gzhead.hcrc?(ae.pending+2>ae.pending_buf_size&&Z(X),ae.pending+2<=ae.pending_buf_size&&(G(ae,255&X.adler),G(ae,X.adler>>8&255),X.adler=0,ae.status=P)):ae.status=P),ae.pending!==0){if(Z(X),X.avail_out===0)return ae.last_flush=-1,h}else if(X.avail_in===0&&K(j)<=K(oe)&&j!==d)return Q(X,-5);if(ae.status===666&&X.avail_in!==0)return Q(X,-5);if(X.avail_in!==0||ae.lookahead!==0||j!==f&&ae.status!==666){var me=ae.strategy===2?function(ye,Ve){for(var De;;){if(ye.lookahead===0&&(B(ye),ye.lookahead===0)){if(Ve===f)return C;break}if(ye.match_length=0,De=s._tr_tally(ye,0,ye.window[ye.strstart]),ye.lookahead--,ye.strstart++,De&&($(ye,!1),ye.strm.avail_out===0))return C}return ye.insert=0,Ve===d?($(ye,!0),ye.strm.avail_out===0?F:Y):ye.last_lit&&($(ye,!1),ye.strm.avail_out===0)?C:E}(ae,j):ae.strategy===3?function(ye,Ve){for(var De,Ye,Je,wt,Lt=ye.window;;){if(ye.lookahead<=T){if(B(ye),ye.lookahead<=T&&Ve===f)return C;if(ye.lookahead===0)break}if(ye.match_length=0,ye.lookahead>=_&&0<ye.strstart&&(Ye=Lt[Je=ye.strstart-1])===Lt[++Je]&&Ye===Lt[++Je]&&Ye===Lt[++Je]){wt=ye.strstart+T;do;while(Ye===Lt[++Je]&&Ye===Lt[++Je]&&Ye===Lt[++Je]&&Ye===Lt[++Je]&&Ye===Lt[++Je]&&Ye===Lt[++Je]&&Ye===Lt[++Je]&&Ye===Lt[++Je]&&Je<wt);ye.match_length=T-(wt-Je),ye.match_length>ye.lookahead&&(ye.match_length=ye.lookahead)}if(ye.match_length>=_?(De=s._tr_tally(ye,1,ye.match_length-_),ye.lookahead-=ye.match_length,ye.strstart+=ye.match_length,ye.match_length=0):(De=s._tr_tally(ye,0,ye.window[ye.strstart]),ye.lookahead--,ye.strstart++),De&&($(ye,!1),ye.strm.avail_out===0))return C}return ye.insert=0,Ve===d?($(ye,!0),ye.strm.avail_out===0?F:Y):ye.last_lit&&($(ye,!1),ye.strm.avail_out===0)?C:E}(ae,j):i[ae.level].func(ae,j);if(me!==F&&me!==Y||(ae.status=666),me===C||me===F)return X.avail_out===0&&(ae.last_flush=-1),h;if(me===E&&(j===1?s._tr_align(ae):j!==5&&(s._tr_stored_block(ae,0,0,!1),j===3&&(ne(ae.head),ae.lookahead===0&&(ae.strstart=0,ae.block_start=0,ae.insert=0))),Z(X),X.avail_out===0))return ae.last_flush=-1,h}return j!==d?h:ae.wrap<=0?1:(ae.wrap===2?(G(ae,255&X.adler),G(ae,X.adler>>8&255),G(ae,X.adler>>16&255),G(ae,X.adler>>24&255),G(ae,255&X.total_in),G(ae,X.total_in>>8&255),G(ae,X.total_in>>16&255),G(ae,X.total_in>>24&255)):(ee(ae,X.adler>>>16),ee(ae,65535&X.adler)),Z(X),0<ae.wrap&&(ae.wrap=-ae.wrap),ae.pending!==0?h:1)},a.deflateEnd=function(X){var j;return X&&X.state?(j=X.state.status)!==N&&j!==69&&j!==73&&j!==91&&j!==103&&j!==P&&j!==666?Q(X,p):(X.state=null,j===P?Q(X,-3):h):p},a.deflateSetDictionary=function(X,j){var oe,ae,le,ge,Se,me,ye,Ve,De=j.length;if(!X||!X.state||(ge=(oe=X.state).wrap)===2||ge===1&&oe.status!==N||oe.lookahead)return p;for(ge===1&&(X.adler=l(X.adler,j,De,0)),oe.wrap=0,De>=oe.w_size&&(ge===0&&(ne(oe.head),oe.strstart=0,oe.block_start=0,oe.insert=0),Ve=new o.Buf8(oe.w_size),o.arraySet(Ve,j,De-oe.w_size,oe.w_size,0),j=Ve,De=oe.w_size),Se=X.avail_in,me=X.next_in,ye=X.input,X.avail_in=De,X.next_in=0,X.input=j,B(oe);oe.lookahead>=_;){for(ae=oe.strstart,le=oe.lookahead-(_-1);oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[ae+_-1])&oe.hash_mask,oe.prev[ae&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=ae,ae++,--le;);oe.strstart=ae,oe.lookahead=_-1,B(oe)}return oe.strstart+=oe.lookahead,oe.block_start=oe.strstart,oe.insert=oe.lookahead,oe.lookahead=0,oe.match_length=oe.prev_length=_-1,oe.match_available=0,X.next_in=me,X.input=ye,X.avail_in=Se,oe.wrap=ge,h},a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,a){r.exports=function(){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}},{}],48:[function(n,r,a){r.exports=function(i,o){var s,l,c,u,f,d,h,p,v,g,y,m,R,A,x,M,S,w,_,T,O,N,P,C,E;s=i.state,l=i.next_in,C=i.input,c=l+(i.avail_in-5),u=i.next_out,E=i.output,f=u-(o-i.avail_out),d=u+(i.avail_out-257),h=s.dmax,p=s.wsize,v=s.whave,g=s.wnext,y=s.window,m=s.hold,R=s.bits,A=s.lencode,x=s.distcode,M=(1<<s.lenbits)-1,S=(1<<s.distbits)-1;e:do{R<15&&(m+=C[l++]<<R,R+=8,m+=C[l++]<<R,R+=8),w=A[m&M];t:for(;;){if(m>>>=_=w>>>24,R-=_,(_=w>>>16&255)===0)E[u++]=65535&w;else{if(!(16&_)){if(!(64&_)){w=A[(65535&w)+(m&(1<<_)-1)];continue t}if(32&_){s.mode=12;break e}i.msg="invalid literal/length code",s.mode=30;break e}T=65535&w,(_&=15)&&(R<_&&(m+=C[l++]<<R,R+=8),T+=m&(1<<_)-1,m>>>=_,R-=_),R<15&&(m+=C[l++]<<R,R+=8,m+=C[l++]<<R,R+=8),w=x[m&S];n:for(;;){if(m>>>=_=w>>>24,R-=_,!(16&(_=w>>>16&255))){if(!(64&_)){w=x[(65535&w)+(m&(1<<_)-1)];continue n}i.msg="invalid distance code",s.mode=30;break e}if(O=65535&w,R<(_&=15)&&(m+=C[l++]<<R,(R+=8)<_&&(m+=C[l++]<<R,R+=8)),h<(O+=m&(1<<_)-1)){i.msg="invalid distance too far back",s.mode=30;break e}if(m>>>=_,R-=_,(_=u-f)<O){if(v<(_=O-_)&&s.sane){i.msg="invalid distance too far back",s.mode=30;break e}if(P=y,(N=0)===g){if(N+=p-_,_<T){for(T-=_;E[u++]=y[N++],--_;);N=u-O,P=E}}else if(g<_){if(N+=p+g-_,(_-=g)<T){for(T-=_;E[u++]=y[N++],--_;);if(N=0,g<T){for(T-=_=g;E[u++]=y[N++],--_;);N=u-O,P=E}}}else if(N+=g-_,_<T){for(T-=_;E[u++]=y[N++],--_;);N=u-O,P=E}for(;2<T;)E[u++]=P[N++],E[u++]=P[N++],E[u++]=P[N++],T-=3;T&&(E[u++]=P[N++],1<T&&(E[u++]=P[N++]))}else{for(N=u-O;E[u++]=E[N++],E[u++]=E[N++],E[u++]=E[N++],2<(T-=3););T&&(E[u++]=E[N++],1<T&&(E[u++]=E[N++]))}break}}break}}while(l<c&&u<d);l-=T=R>>3,m&=(1<<(R-=T<<3))-1,i.next_in=l,i.next_out=u,i.avail_in=l<c?c-l+5:5-(l-c),i.avail_out=u<d?d-u+257:257-(u-d),s.hold=m,s.bits=R}},{}],49:[function(n,r,a){var i=n("../utils/common"),o=n("./adler32"),s=n("./crc32"),l=n("./inffast"),c=n("./inftrees"),u=1,f=2,d=0,h=-2,p=1,v=852,g=592;function y(N){return(N>>>24&255)+(N>>>8&65280)+((65280&N)<<8)+((255&N)<<24)}function m(){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 i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function R(N){var P;return N&&N.state?(P=N.state,N.total_in=N.total_out=P.total=0,N.msg="",P.wrap&&(N.adler=1&P.wrap),P.mode=p,P.last=0,P.havedict=0,P.dmax=32768,P.head=null,P.hold=0,P.bits=0,P.lencode=P.lendyn=new i.Buf32(v),P.distcode=P.distdyn=new i.Buf32(g),P.sane=1,P.back=-1,d):h}function A(N){var P;return N&&N.state?((P=N.state).wsize=0,P.whave=0,P.wnext=0,R(N)):h}function x(N,P){var C,E;return N&&N.state?(E=N.state,P<0?(C=0,P=-P):(C=1+(P>>4),P<48&&(P&=15)),P&&(P<8||15<P)?h:(E.window!==null&&E.wbits!==P&&(E.window=null),E.wrap=C,E.wbits=P,A(N))):h}function M(N,P){var C,E;return N?(E=new m,(N.state=E).window=null,(C=x(N,P))!==d&&(N.state=null),C):h}var S,w,_=!0;function T(N){if(_){var P;for(S=new i.Buf32(512),w=new i.Buf32(32),P=0;P<144;)N.lens[P++]=8;for(;P<256;)N.lens[P++]=9;for(;P<280;)N.lens[P++]=7;for(;P<288;)N.lens[P++]=8;for(c(u,N.lens,0,288,S,0,N.work,{bits:9}),P=0;P<32;)N.lens[P++]=5;c(f,N.lens,0,32,w,0,N.work,{bits:5}),_=!1}N.lencode=S,N.lenbits=9,N.distcode=w,N.distbits=5}function O(N,P,C,E){var F,Y=N.state;return Y.window===null&&(Y.wsize=1<<Y.wbits,Y.wnext=0,Y.whave=0,Y.window=new i.Buf8(Y.wsize)),E>=Y.wsize?(i.arraySet(Y.window,P,C-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize):(E<(F=Y.wsize-Y.wnext)&&(F=E),i.arraySet(Y.window,P,C-E,F,Y.wnext),(E-=F)?(i.arraySet(Y.window,P,C-E,E,0),Y.wnext=E,Y.whave=Y.wsize):(Y.wnext+=F,Y.wnext===Y.wsize&&(Y.wnext=0),Y.whave<Y.wsize&&(Y.whave+=F))),0}a.inflateReset=A,a.inflateReset2=x,a.inflateResetKeep=R,a.inflateInit=function(N){return M(N,15)},a.inflateInit2=M,a.inflate=function(N,P){var C,E,F,Y,Q,K,ne,Z,$,G,ee,ce,B,xe,_e,se,z,de,fe,re,X,j,oe,ae,le=0,ge=new i.Buf8(4),Se=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!N||!N.state||!N.output||!N.input&&N.avail_in!==0)return h;(C=N.state).mode===12&&(C.mode=13),Q=N.next_out,F=N.output,ne=N.avail_out,Y=N.next_in,E=N.input,K=N.avail_in,Z=C.hold,$=C.bits,G=K,ee=ne,j=d;e:for(;;)switch(C.mode){case p:if(C.wrap===0){C.mode=13;break}for(;$<16;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}if(2&C.wrap&&Z===35615){ge[C.check=0]=255&Z,ge[1]=Z>>>8&255,C.check=s(C.check,ge,2,0),$=Z=0,C.mode=2;break}if(C.flags=0,C.head&&(C.head.done=!1),!(1&C.wrap)||(((255&Z)<<8)+(Z>>8))%31){N.msg="incorrect header check",C.mode=30;break}if((15&Z)!=8){N.msg="unknown compression method",C.mode=30;break}if($-=4,X=8+(15&(Z>>>=4)),C.wbits===0)C.wbits=X;else if(X>C.wbits){N.msg="invalid window size",C.mode=30;break}C.dmax=1<<X,N.adler=C.check=1,C.mode=512&Z?10:12,$=Z=0;break;case 2:for(;$<16;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}if(C.flags=Z,(255&C.flags)!=8){N.msg="unknown compression method",C.mode=30;break}if(57344&C.flags){N.msg="unknown header flags set",C.mode=30;break}C.head&&(C.head.text=Z>>8&1),512&C.flags&&(ge[0]=255&Z,ge[1]=Z>>>8&255,C.check=s(C.check,ge,2,0)),$=Z=0,C.mode=3;case 3:for(;$<32;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}C.head&&(C.head.time=Z),512&C.flags&&(ge[0]=255&Z,ge[1]=Z>>>8&255,ge[2]=Z>>>16&255,ge[3]=Z>>>24&255,C.check=s(C.check,ge,4,0)),$=Z=0,C.mode=4;case 4:for(;$<16;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}C.head&&(C.head.xflags=255&Z,C.head.os=Z>>8),512&C.flags&&(ge[0]=255&Z,ge[1]=Z>>>8&255,C.check=s(C.check,ge,2,0)),$=Z=0,C.mode=5;case 5:if(1024&C.flags){for(;$<16;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}C.length=Z,C.head&&(C.head.extra_len=Z),512&C.flags&&(ge[0]=255&Z,ge[1]=Z>>>8&255,C.check=s(C.check,ge,2,0)),$=Z=0}else C.head&&(C.head.extra=null);C.mode=6;case 6:if(1024&C.flags&&(K<(ce=C.length)&&(ce=K),ce&&(C.head&&(X=C.head.extra_len-C.length,C.head.extra||(C.head.extra=new Array(C.head.extra_len)),i.arraySet(C.head.extra,E,Y,ce,X)),512&C.flags&&(C.check=s(C.check,E,ce,Y)),K-=ce,Y+=ce,C.length-=ce),C.length))break e;C.length=0,C.mode=7;case 7:if(2048&C.flags){if(K===0)break e;for(ce=0;X=E[Y+ce++],C.head&&X&&C.length<65536&&(C.head.name+=String.fromCharCode(X)),X&&ce<K;);if(512&C.flags&&(C.check=s(C.check,E,ce,Y)),K-=ce,Y+=ce,X)break e}else C.head&&(C.head.name=null);C.length=0,C.mode=8;case 8:if(4096&C.flags){if(K===0)break e;for(ce=0;X=E[Y+ce++],C.head&&X&&C.length<65536&&(C.head.comment+=String.fromCharCode(X)),X&&ce<K;);if(512&C.flags&&(C.check=s(C.check,E,ce,Y)),K-=ce,Y+=ce,X)break e}else C.head&&(C.head.comment=null);C.mode=9;case 9:if(512&C.flags){for(;$<16;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}if(Z!==(65535&C.check)){N.msg="header crc mismatch",C.mode=30;break}$=Z=0}C.head&&(C.head.hcrc=C.flags>>9&1,C.head.done=!0),N.adler=C.check=0,C.mode=12;break;case 10:for(;$<32;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}N.adler=C.check=y(Z),$=Z=0,C.mode=11;case 11:if(C.havedict===0)return N.next_out=Q,N.avail_out=ne,N.next_in=Y,N.avail_in=K,C.hold=Z,C.bits=$,2;N.adler=C.check=1,C.mode=12;case 12:if(P===5||P===6)break e;case 13:if(C.last){Z>>>=7&$,$-=7&$,C.mode=27;break}for(;$<3;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}switch(C.last=1&Z,$-=1,3&(Z>>>=1)){case 0:C.mode=14;break;case 1:if(T(C),C.mode=20,P!==6)break;Z>>>=2,$-=2;break e;case 2:C.mode=17;break;case 3:N.msg="invalid block type",C.mode=30}Z>>>=2,$-=2;break;case 14:for(Z>>>=7&$,$-=7&$;$<32;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}if((65535&Z)!=(Z>>>16^65535)){N.msg="invalid stored block lengths",C.mode=30;break}if(C.length=65535&Z,$=Z=0,C.mode=15,P===6)break e;case 15:C.mode=16;case 16:if(ce=C.length){if(K<ce&&(ce=K),ne<ce&&(ce=ne),ce===0)break e;i.arraySet(F,E,Y,ce,Q),K-=ce,Y+=ce,ne-=ce,Q+=ce,C.length-=ce;break}C.mode=12;break;case 17:for(;$<14;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}if(C.nlen=257+(31&Z),Z>>>=5,$-=5,C.ndist=1+(31&Z),Z>>>=5,$-=5,C.ncode=4+(15&Z),Z>>>=4,$-=4,286<C.nlen||30<C.ndist){N.msg="too many length or distance symbols",C.mode=30;break}C.have=0,C.mode=18;case 18:for(;C.have<C.ncode;){for(;$<3;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}C.lens[Se[C.have++]]=7&Z,Z>>>=3,$-=3}for(;C.have<19;)C.lens[Se[C.have++]]=0;if(C.lencode=C.lendyn,C.lenbits=7,oe={bits:C.lenbits},j=c(0,C.lens,0,19,C.lencode,0,C.work,oe),C.lenbits=oe.bits,j){N.msg="invalid code lengths set",C.mode=30;break}C.have=0,C.mode=19;case 19:for(;C.have<C.nlen+C.ndist;){for(;se=(le=C.lencode[Z&(1<<C.lenbits)-1])>>>16&255,z=65535&le,!((_e=le>>>24)<=$);){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}if(z<16)Z>>>=_e,$-=_e,C.lens[C.have++]=z;else{if(z===16){for(ae=_e+2;$<ae;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}if(Z>>>=_e,$-=_e,C.have===0){N.msg="invalid bit length repeat",C.mode=30;break}X=C.lens[C.have-1],ce=3+(3&Z),Z>>>=2,$-=2}else if(z===17){for(ae=_e+3;$<ae;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}$-=_e,X=0,ce=3+(7&(Z>>>=_e)),Z>>>=3,$-=3}else{for(ae=_e+7;$<ae;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}$-=_e,X=0,ce=11+(127&(Z>>>=_e)),Z>>>=7,$-=7}if(C.have+ce>C.nlen+C.ndist){N.msg="invalid bit length repeat",C.mode=30;break}for(;ce--;)C.lens[C.have++]=X}}if(C.mode===30)break;if(C.lens[256]===0){N.msg="invalid code -- missing end-of-block",C.mode=30;break}if(C.lenbits=9,oe={bits:C.lenbits},j=c(u,C.lens,0,C.nlen,C.lencode,0,C.work,oe),C.lenbits=oe.bits,j){N.msg="invalid literal/lengths set",C.mode=30;break}if(C.distbits=6,C.distcode=C.distdyn,oe={bits:C.distbits},j=c(f,C.lens,C.nlen,C.ndist,C.distcode,0,C.work,oe),C.distbits=oe.bits,j){N.msg="invalid distances set",C.mode=30;break}if(C.mode=20,P===6)break e;case 20:C.mode=21;case 21:if(6<=K&&258<=ne){N.next_out=Q,N.avail_out=ne,N.next_in=Y,N.avail_in=K,C.hold=Z,C.bits=$,l(N,ee),Q=N.next_out,F=N.output,ne=N.avail_out,Y=N.next_in,E=N.input,K=N.avail_in,Z=C.hold,$=C.bits,C.mode===12&&(C.back=-1);break}for(C.back=0;se=(le=C.lencode[Z&(1<<C.lenbits)-1])>>>16&255,z=65535&le,!((_e=le>>>24)<=$);){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}if(se&&!(240&se)){for(de=_e,fe=se,re=z;se=(le=C.lencode[re+((Z&(1<<de+fe)-1)>>de)])>>>16&255,z=65535&le,!(de+(_e=le>>>24)<=$);){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}Z>>>=de,$-=de,C.back+=de}if(Z>>>=_e,$-=_e,C.back+=_e,C.length=z,se===0){C.mode=26;break}if(32&se){C.back=-1,C.mode=12;break}if(64&se){N.msg="invalid literal/length code",C.mode=30;break}C.extra=15&se,C.mode=22;case 22:if(C.extra){for(ae=C.extra;$<ae;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}C.length+=Z&(1<<C.extra)-1,Z>>>=C.extra,$-=C.extra,C.back+=C.extra}C.was=C.length,C.mode=23;case 23:for(;se=(le=C.distcode[Z&(1<<C.distbits)-1])>>>16&255,z=65535&le,!((_e=le>>>24)<=$);){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}if(!(240&se)){for(de=_e,fe=se,re=z;se=(le=C.distcode[re+((Z&(1<<de+fe)-1)>>de)])>>>16&255,z=65535&le,!(de+(_e=le>>>24)<=$);){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}Z>>>=de,$-=de,C.back+=de}if(Z>>>=_e,$-=_e,C.back+=_e,64&se){N.msg="invalid distance code",C.mode=30;break}C.offset=z,C.extra=15&se,C.mode=24;case 24:if(C.extra){for(ae=C.extra;$<ae;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}C.offset+=Z&(1<<C.extra)-1,Z>>>=C.extra,$-=C.extra,C.back+=C.extra}if(C.offset>C.dmax){N.msg="invalid distance too far back",C.mode=30;break}C.mode=25;case 25:if(ne===0)break e;if(ce=ee-ne,C.offset>ce){if((ce=C.offset-ce)>C.whave&&C.sane){N.msg="invalid distance too far back",C.mode=30;break}B=ce>C.wnext?(ce-=C.wnext,C.wsize-ce):C.wnext-ce,ce>C.length&&(ce=C.length),xe=C.window}else xe=F,B=Q-C.offset,ce=C.length;for(ne<ce&&(ce=ne),ne-=ce,C.length-=ce;F[Q++]=xe[B++],--ce;);C.length===0&&(C.mode=21);break;case 26:if(ne===0)break e;F[Q++]=C.length,ne--,C.mode=21;break;case 27:if(C.wrap){for(;$<32;){if(K===0)break e;K--,Z|=E[Y++]<<$,$+=8}if(ee-=ne,N.total_out+=ee,C.total+=ee,ee&&(N.adler=C.check=C.flags?s(C.check,F,ee,Q-ee):o(C.check,F,ee,Q-ee)),ee=ne,(C.flags?Z:y(Z))!==C.check){N.msg="incorrect data check",C.mode=30;break}$=Z=0}C.mode=28;case 28:if(C.wrap&&C.flags){for(;$<32;){if(K===0)break e;K--,Z+=E[Y++]<<$,$+=8}if(Z!==(4294967295&C.total)){N.msg="incorrect length check",C.mode=30;break}$=Z=0}C.mode=29;case 29:j=1;break e;case 30:j=-3;break e;case 31:return-4;case 32:default:return h}return N.next_out=Q,N.avail_out=ne,N.next_in=Y,N.avail_in=K,C.hold=Z,C.bits=$,(C.wsize||ee!==N.avail_out&&C.mode<30&&(C.mode<27||P!==4))&&O(N,N.output,N.next_out,ee-N.avail_out)?(C.mode=31,-4):(G-=N.avail_in,ee-=N.avail_out,N.total_in+=G,N.total_out+=ee,C.total+=ee,C.wrap&&ee&&(N.adler=C.check=C.flags?s(C.check,F,ee,N.next_out-ee):o(C.check,F,ee,N.next_out-ee)),N.data_type=C.bits+(C.last?64:0)+(C.mode===12?128:0)+(C.mode===20||C.mode===15?256:0),(G==0&&ee===0||P===4)&&j===d&&(j=-5),j)},a.inflateEnd=function(N){if(!N||!N.state)return h;var P=N.state;return P.window&&(P.window=null),N.state=null,d},a.inflateGetHeader=function(N,P){var C;return N&&N.state&&2&(C=N.state).wrap?((C.head=P).done=!1,d):h},a.inflateSetDictionary=function(N,P){var C,E=P.length;return N&&N.state?(C=N.state).wrap!==0&&C.mode!==11?h:C.mode===11&&o(1,P,E,0)!==C.check?-3:O(N,P,E,E)?(C.mode=31,-4):(C.havedict=1,d):h},a.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,a){var i=n("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(u,f,d,h,p,v,g,y){var m,R,A,x,M,S,w,_,T,O=y.bits,N=0,P=0,C=0,E=0,F=0,Y=0,Q=0,K=0,ne=0,Z=0,$=null,G=0,ee=new i.Buf16(16),ce=new i.Buf16(16),B=null,xe=0;for(N=0;N<=15;N++)ee[N]=0;for(P=0;P<h;P++)ee[f[d+P]]++;for(F=O,E=15;1<=E&&ee[E]===0;E--);if(E<F&&(F=E),E===0)return p[v++]=20971520,p[v++]=20971520,y.bits=1,0;for(C=1;C<E&&ee[C]===0;C++);for(F<C&&(F=C),N=K=1;N<=15;N++)if(K<<=1,(K-=ee[N])<0)return-1;if(0<K&&(u===0||E!==1))return-1;for(ce[1]=0,N=1;N<15;N++)ce[N+1]=ce[N]+ee[N];for(P=0;P<h;P++)f[d+P]!==0&&(g[ce[f[d+P]]++]=P);if(S=u===0?($=B=g,19):u===1?($=o,G-=257,B=s,xe-=257,256):($=l,B=c,-1),N=C,M=v,Q=P=Z=0,A=-1,x=(ne=1<<(Y=F))-1,u===1&&852<ne||u===2&&592<ne)return 1;for(;;){for(w=N-Q,T=g[P]<S?(_=0,g[P]):g[P]>S?(_=B[xe+g[P]],$[G+g[P]]):(_=96,0),m=1<<N-Q,C=R=1<<Y;p[M+(Z>>Q)+(R-=m)]=w<<24|_<<16|T|0,R!==0;);for(m=1<<N-1;Z&m;)m>>=1;if(m!==0?(Z&=m-1,Z+=m):Z=0,P++,--ee[N]==0){if(N===E)break;N=f[d+g[P]]}if(F<N&&(Z&x)!==A){for(Q===0&&(Q=F),M+=C,K=1<<(Y=N-Q);Y+Q<E&&!((K-=ee[Y+Q])<=0);)Y++,K<<=1;if(ne+=1<<Y,u===1&&852<ne||u===2&&592<ne)return 1;p[A=Z&x]=F<<24|Y<<16|M-v|0}}return Z!==0&&(p[M+Z]=N-Q<<24|64<<16|0),y.bits=F,0}},{"../utils/common":41}],51:[function(n,r,a){r.exports={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"}},{}],52:[function(n,r,a){var i=n("../utils/common"),o=0,s=1;function l(le){for(var ge=le.length;0<=--ge;)le[ge]=0}var c=0,u=29,f=256,d=f+1+u,h=30,p=19,v=2*d+1,g=15,y=16,m=7,R=256,A=16,x=17,M=18,S=[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],w=[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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],O=new Array(2*(d+2));l(O);var N=new Array(2*h);l(N);var P=new Array(512);l(P);var C=new Array(256);l(C);var E=new Array(u);l(E);var F,Y,Q,K=new Array(h);function ne(le,ge,Se,me,ye){this.static_tree=le,this.extra_bits=ge,this.extra_base=Se,this.elems=me,this.max_length=ye,this.has_stree=le&&le.length}function Z(le,ge){this.dyn_tree=le,this.max_code=0,this.stat_desc=ge}function $(le){return le<256?P[le]:P[256+(le>>>7)]}function G(le,ge){le.pending_buf[le.pending++]=255&ge,le.pending_buf[le.pending++]=ge>>>8&255}function ee(le,ge,Se){le.bi_valid>y-Se?(le.bi_buf|=ge<<le.bi_valid&65535,G(le,le.bi_buf),le.bi_buf=ge>>y-le.bi_valid,le.bi_valid+=Se-y):(le.bi_buf|=ge<<le.bi_valid&65535,le.bi_valid+=Se)}function ce(le,ge,Se){ee(le,Se[2*ge],Se[2*ge+1])}function B(le,ge){for(var Se=0;Se|=1&le,le>>>=1,Se<<=1,0<--ge;);return Se>>>1}function xe(le,ge,Se){var me,ye,Ve=new Array(g+1),De=0;for(me=1;me<=g;me++)Ve[me]=De=De+Se[me-1]<<1;for(ye=0;ye<=ge;ye++){var Ye=le[2*ye+1];Ye!==0&&(le[2*ye]=B(Ve[Ye]++,Ye))}}function _e(le){var ge;for(ge=0;ge<d;ge++)le.dyn_ltree[2*ge]=0;for(ge=0;ge<h;ge++)le.dyn_dtree[2*ge]=0;for(ge=0;ge<p;ge++)le.bl_tree[2*ge]=0;le.dyn_ltree[2*R]=1,le.opt_len=le.static_len=0,le.last_lit=le.matches=0}function se(le){8<le.bi_valid?G(le,le.bi_buf):0<le.bi_valid&&(le.pending_buf[le.pending++]=le.bi_buf),le.bi_buf=0,le.bi_valid=0}function z(le,ge,Se,me){var ye=2*ge,Ve=2*Se;return le[ye]<le[Ve]||le[ye]===le[Ve]&&me[ge]<=me[Se]}function de(le,ge,Se){for(var me=le.heap[Se],ye=Se<<1;ye<=le.heap_len&&(ye<le.heap_len&&z(ge,le.heap[ye+1],le.heap[ye],le.depth)&&ye++,!z(ge,me,le.heap[ye],le.depth));)le.heap[Se]=le.heap[ye],Se=ye,ye<<=1;le.heap[Se]=me}function fe(le,ge,Se){var me,ye,Ve,De,Ye=0;if(le.last_lit!==0)for(;me=le.pending_buf[le.d_buf+2*Ye]<<8|le.pending_buf[le.d_buf+2*Ye+1],ye=le.pending_buf[le.l_buf+Ye],Ye++,me===0?ce(le,ye,ge):(ce(le,(Ve=C[ye])+f+1,ge),(De=S[Ve])!==0&&ee(le,ye-=E[Ve],De),ce(le,Ve=$(--me),Se),(De=w[Ve])!==0&&ee(le,me-=K[Ve],De)),Ye<le.last_lit;);ce(le,R,ge)}function re(le,ge){var Se,me,ye,Ve=ge.dyn_tree,De=ge.stat_desc.static_tree,Ye=ge.stat_desc.has_stree,Je=ge.stat_desc.elems,wt=-1;for(le.heap_len=0,le.heap_max=v,Se=0;Se<Je;Se++)Ve[2*Se]!==0?(le.heap[++le.heap_len]=wt=Se,le.depth[Se]=0):Ve[2*Se+1]=0;for(;le.heap_len<2;)Ve[2*(ye=le.heap[++le.heap_len]=wt<2?++wt:0)]=1,le.depth[ye]=0,le.opt_len--,Ye&&(le.static_len-=De[2*ye+1]);for(ge.max_code=wt,Se=le.heap_len>>1;1<=Se;Se--)de(le,Ve,Se);for(ye=Je;Se=le.heap[1],le.heap[1]=le.heap[le.heap_len--],de(le,Ve,1),me=le.heap[1],le.heap[--le.heap_max]=Se,le.heap[--le.heap_max]=me,Ve[2*ye]=Ve[2*Se]+Ve[2*me],le.depth[ye]=(le.depth[Se]>=le.depth[me]?le.depth[Se]:le.depth[me])+1,Ve[2*Se+1]=Ve[2*me+1]=ye,le.heap[1]=ye++,de(le,Ve,1),2<=le.heap_len;);le.heap[--le.heap_max]=le.heap[1],function(Lt,Ne){var Te,ze,He,pt,Ce,ut,je=Ne.dyn_tree,it=Ne.max_code,Pt=Ne.stat_desc.static_tree,Yt=Ne.stat_desc.has_stree,dt=Ne.stat_desc.extra_bits,fn=Ne.stat_desc.extra_base,pn=Ne.stat_desc.max_length,En=0;for(pt=0;pt<=g;pt++)Lt.bl_count[pt]=0;for(je[2*Lt.heap[Lt.heap_max]+1]=0,Te=Lt.heap_max+1;Te<v;Te++)pn<(pt=je[2*je[2*(ze=Lt.heap[Te])+1]+1]+1)&&(pt=pn,En++),je[2*ze+1]=pt,it<ze||(Lt.bl_count[pt]++,Ce=0,fn<=ze&&(Ce=dt[ze-fn]),ut=je[2*ze],Lt.opt_len+=ut*(pt+Ce),Yt&&(Lt.static_len+=ut*(Pt[2*ze+1]+Ce)));if(En!==0){do{for(pt=pn-1;Lt.bl_count[pt]===0;)pt--;Lt.bl_count[pt]--,Lt.bl_count[pt+1]+=2,Lt.bl_count[pn]--,En-=2}while(0<En);for(pt=pn;pt!==0;pt--)for(ze=Lt.bl_count[pt];ze!==0;)it<(He=Lt.heap[--Te])||(je[2*He+1]!==pt&&(Lt.opt_len+=(pt-je[2*He+1])*je[2*He],je[2*He+1]=pt),ze--)}}(le,ge),xe(Ve,wt,le.bl_count)}function X(le,ge,Se){var me,ye,Ve=-1,De=ge[1],Ye=0,Je=7,wt=4;for(De===0&&(Je=138,wt=3),ge[2*(Se+1)+1]=65535,me=0;me<=Se;me++)ye=De,De=ge[2*(me+1)+1],++Ye<Je&&ye===De||(Ye<wt?le.bl_tree[2*ye]+=Ye:ye!==0?(ye!==Ve&&le.bl_tree[2*ye]++,le.bl_tree[2*A]++):Ye<=10?le.bl_tree[2*x]++:le.bl_tree[2*M]++,Ve=ye,wt=(Ye=0)===De?(Je=138,3):ye===De?(Je=6,3):(Je=7,4))}function j(le,ge,Se){var me,ye,Ve=-1,De=ge[1],Ye=0,Je=7,wt=4;for(De===0&&(Je=138,wt=3),me=0;me<=Se;me++)if(ye=De,De=ge[2*(me+1)+1],!(++Ye<Je&&ye===De)){if(Ye<wt)for(;ce(le,ye,le.bl_tree),--Ye!=0;);else ye!==0?(ye!==Ve&&(ce(le,ye,le.bl_tree),Ye--),ce(le,A,le.bl_tree),ee(le,Ye-3,2)):Ye<=10?(ce(le,x,le.bl_tree),ee(le,Ye-3,3)):(ce(le,M,le.bl_tree),ee(le,Ye-11,7));Ve=ye,wt=(Ye=0)===De?(Je=138,3):ye===De?(Je=6,3):(Je=7,4)}}l(K);var oe=!1;function ae(le,ge,Se,me){ee(le,(c<<1)+(me?1:0),3),function(ye,Ve,De,Ye){se(ye),G(ye,De),G(ye,~De),i.arraySet(ye.pending_buf,ye.window,Ve,De,ye.pending),ye.pending+=De}(le,ge,Se)}a._tr_init=function(le){oe||(function(){var ge,Se,me,ye,Ve,De=new Array(g+1);for(ye=me=0;ye<u-1;ye++)for(E[ye]=me,ge=0;ge<1<<S[ye];ge++)C[me++]=ye;for(C[me-1]=ye,ye=Ve=0;ye<16;ye++)for(K[ye]=Ve,ge=0;ge<1<<w[ye];ge++)P[Ve++]=ye;for(Ve>>=7;ye<h;ye++)for(K[ye]=Ve<<7,ge=0;ge<1<<w[ye]-7;ge++)P[256+Ve++]=ye;for(Se=0;Se<=g;Se++)De[Se]=0;for(ge=0;ge<=143;)O[2*ge+1]=8,ge++,De[8]++;for(;ge<=255;)O[2*ge+1]=9,ge++,De[9]++;for(;ge<=279;)O[2*ge+1]=7,ge++,De[7]++;for(;ge<=287;)O[2*ge+1]=8,ge++,De[8]++;for(xe(O,d+1,De),ge=0;ge<h;ge++)N[2*ge+1]=5,N[2*ge]=B(ge,5);F=new ne(O,S,f+1,d,g),Y=new ne(N,w,0,h,g),Q=new ne(new Array(0),_,0,p,m)}(),oe=!0),le.l_desc=new Z(le.dyn_ltree,F),le.d_desc=new Z(le.dyn_dtree,Y),le.bl_desc=new Z(le.bl_tree,Q),le.bi_buf=0,le.bi_valid=0,_e(le)},a._tr_stored_block=ae,a._tr_flush_block=function(le,ge,Se,me){var ye,Ve,De=0;0<le.level?(le.strm.data_type===2&&(le.strm.data_type=function(Ye){var Je,wt=4093624447;for(Je=0;Je<=31;Je++,wt>>>=1)if(1&wt&&Ye.dyn_ltree[2*Je]!==0)return o;if(Ye.dyn_ltree[18]!==0||Ye.dyn_ltree[20]!==0||Ye.dyn_ltree[26]!==0)return s;for(Je=32;Je<f;Je++)if(Ye.dyn_ltree[2*Je]!==0)return s;return o}(le)),re(le,le.l_desc),re(le,le.d_desc),De=function(Ye){var Je;for(X(Ye,Ye.dyn_ltree,Ye.l_desc.max_code),X(Ye,Ye.dyn_dtree,Ye.d_desc.max_code),re(Ye,Ye.bl_desc),Je=p-1;3<=Je&&Ye.bl_tree[2*T[Je]+1]===0;Je--);return Ye.opt_len+=3*(Je+1)+5+5+4,Je}(le),ye=le.opt_len+3+7>>>3,(Ve=le.static_len+3+7>>>3)<=ye&&(ye=Ve)):ye=Ve=Se+5,Se+4<=ye&&ge!==-1?ae(le,ge,Se,me):le.strategy===4||Ve===ye?(ee(le,2+(me?1:0),3),fe(le,O,N)):(ee(le,4+(me?1:0),3),function(Ye,Je,wt,Lt){var Ne;for(ee(Ye,Je-257,5),ee(Ye,wt-1,5),ee(Ye,Lt-4,4),Ne=0;Ne<Lt;Ne++)ee(Ye,Ye.bl_tree[2*T[Ne]+1],3);j(Ye,Ye.dyn_ltree,Je-1),j(Ye,Ye.dyn_dtree,wt-1)}(le,le.l_desc.max_code+1,le.d_desc.max_code+1,De+1),fe(le,le.dyn_ltree,le.dyn_dtree)),_e(le),me&&se(le)},a._tr_tally=function(le,ge,Se){return le.pending_buf[le.d_buf+2*le.last_lit]=ge>>>8&255,le.pending_buf[le.d_buf+2*le.last_lit+1]=255&ge,le.pending_buf[le.l_buf+le.last_lit]=255&Se,le.last_lit++,ge===0?le.dyn_ltree[2*Se]++:(le.matches++,ge--,le.dyn_ltree[2*(C[Se]+f+1)]++,le.dyn_dtree[2*$(ge)]++),le.last_lit===le.lit_bufsize-1},a._tr_align=function(le){ee(le,2,3),ce(le,R,O),function(ge){ge.bi_valid===16?(G(ge,ge.bi_buf),ge.bi_buf=0,ge.bi_valid=0):8<=ge.bi_valid&&(ge.pending_buf[ge.pending++]=255&ge.bi_buf,ge.bi_buf>>=8,ge.bi_valid-=8)}(le)}},{"../utils/common":41}],53:[function(n,r,a){r.exports=function(){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}},{}],54:[function(n,r,a){(function(i){(function(o,s){if(!o.setImmediate){var l,c,u,f,d=1,h={},p=!1,v=o.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(o);g=g&&g.setTimeout?g:o,l={}.toString.call(o.process)==="[object process]"?function(A){process.nextTick(function(){m(A)})}:function(){if(o.postMessage&&!o.importScripts){var A=!0,x=o.onmessage;return o.onmessage=function(){A=!1},o.postMessage("","*"),o.onmessage=x,A}}()?(f="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",R,!1):o.attachEvent("onmessage",R),function(A){o.postMessage(f+A,"*")}):o.MessageChannel?((u=new MessageChannel).port1.onmessage=function(A){m(A.data)},function(A){u.port2.postMessage(A)}):v&&"onreadystatechange"in v.createElement("script")?(c=v.documentElement,function(A){var x=v.createElement("script");x.onreadystatechange=function(){m(A),x.onreadystatechange=null,c.removeChild(x),x=null},c.appendChild(x)}):function(A){setTimeout(m,0,A)},g.setImmediate=function(A){typeof A!="function"&&(A=new Function(""+A));for(var x=new Array(arguments.length-1),M=0;M<x.length;M++)x[M]=arguments[M+1];var S={callback:A,args:x};return h[d]=S,l(d),d++},g.clearImmediate=y}function y(A){delete h[A]}function m(A){if(p)setTimeout(m,0,A);else{var x=h[A];if(x){p=!0;try{(function(M){var S=M.callback,w=M.args;switch(w.length){case 0:S();break;case 1:S(w[0]);break;case 2:S(w[0],w[1]);break;case 3:S(w[0],w[1],w[2]);break;default:S.apply(s,w)}})(x)}finally{y(A),p=!1}}}}function R(A){A.source===o&&typeof A.data=="string"&&A.data.indexOf(f)===0&&m(+A.data.slice(f.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof cn<"u"?cn:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(AOe);var D3t=AOe.exports;const ROe=ng(D3t);var pi=function(){return pi=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},pi.apply(this,arguments)};function th(t,e,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):a(u.value).then(s,l)}c((r=r.apply(t,[])).next())})}function nh(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(n=0)),n;)try{if(r=1,a&&(i=c[0]&2?a.return:c[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,c[1])).done)return i;switch(a=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(u){c=[6,u],a=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function uF(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,i;r<a;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}var Cn=914400,K8=12700,ho=`\r-`,V3t=2147483649,XH=/^[0-9a-fA-F]{6}$/,U3t=1.67,W3t=27,Kb={type:"solid",color:"666666",pt:1},bOe=[.05,.1,.05,.1],Hb={color:"363636",pt:1},U2={color:"888888",style:"solid",size:1,cap:"flat"},gl="000000",pu=12,Y3t=18,Gb="LAYOUT_16x9",xJ="DEFAULT",xOe="333333",g2={type:"outer",blur:3,offset:23e3/12700,angle:90,color:"000000",opacity:.35,rotateWithShape:!0},t8=[.5,.5,.5,.5],aRe={color:"000000"},B3t={size:8,color:"FFFFFF",opacity:.75},zp="2094734552",fF="2094734553",A_="2094734554",SJ="2094734555",SOe="2094734556",X5="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),R_=["C0504D","4F81BD","9BBB59","8064A2","4BACC6","F79646","628FC6","C86360","C0504D","4F81BD","9BBB59","8064A2","4BACC6","F79646","628FC6","C86360"],Z3t=["5DA5DA","FAA43A","60BD68","F17CB0","B2912F","B276B2","DECF3F","F15854","A7A7A7","5DA5DA","FAA43A","60BD68","F17CB0","B2912F","B276B2","DECF3F","F15854","A7A7A7"],_x;(function(t){t.left="left",t.center="center",t.right="right",t.justify="justify"})(_x||(_x={}));var Lx;(function(t){t.b="b",t.ctr="ctr",t.t="t"})(Lx||(Lx={}));var MOe="{F7021451-1387-4CA6-816F-3879F97B5CBC}",MJ;(function(t){t.arraybuffer="arraybuffer",t.base64="base64",t.binarystring="binarystring",t.blob="blob",t.nodebuffer="nodebuffer",t.uint8array="uint8array"})(MJ||(MJ={}));var _J;(function(t){t.area="area",t.bar="bar",t.bar3d="bar3D",t.bubble="bubble",t.bubble3d="bubble3D",t.doughnut="doughnut",t.line="line",t.pie="pie",t.radar="radar",t.scatter="scatter"})(_J||(_J={}));var wJ;(function(t){t.accentBorderCallout1="accentBorderCallout1",t.accentBorderCallout2="accentBorderCallout2",t.accentBorderCallout3="accentBorderCallout3",t.accentCallout1="accentCallout1",t.accentCallout2="accentCallout2",t.accentCallout3="accentCallout3",t.actionButtonBackPrevious="actionButtonBackPrevious",t.actionButtonBeginning="actionButtonBeginning",t.actionButtonBlank="actionButtonBlank",t.actionButtonDocument="actionButtonDocument",t.actionButtonEnd="actionButtonEnd",t.actionButtonForwardNext="actionButtonForwardNext",t.actionButtonHelp="actionButtonHelp",t.actionButtonHome="actionButtonHome",t.actionButtonInformation="actionButtonInformation",t.actionButtonMovie="actionButtonMovie",t.actionButtonReturn="actionButtonReturn",t.actionButtonSound="actionButtonSound",t.arc="arc",t.bentArrow="bentArrow",t.bentUpArrow="bentUpArrow",t.bevel="bevel",t.blockArc="blockArc",t.borderCallout1="borderCallout1",t.borderCallout2="borderCallout2",t.borderCallout3="borderCallout3",t.bracePair="bracePair",t.bracketPair="bracketPair",t.callout1="callout1",t.callout2="callout2",t.callout3="callout3",t.can="can",t.chartPlus="chartPlus",t.chartStar="chartStar",t.chartX="chartX",t.chevron="chevron",t.chord="chord",t.circularArrow="circularArrow",t.cloud="cloud",t.cloudCallout="cloudCallout",t.corner="corner",t.cornerTabs="cornerTabs",t.cube="cube",t.curvedDownArrow="curvedDownArrow",t.curvedLeftArrow="curvedLeftArrow",t.curvedRightArrow="curvedRightArrow",t.curvedUpArrow="curvedUpArrow",t.custGeom="custGeom",t.decagon="decagon",t.diagStripe="diagStripe",t.diamond="diamond",t.dodecagon="dodecagon",t.donut="donut",t.doubleWave="doubleWave",t.downArrow="downArrow",t.downArrowCallout="downArrowCallout",t.ellipse="ellipse",t.ellipseRibbon="ellipseRibbon",t.ellipseRibbon2="ellipseRibbon2",t.flowChartAlternateProcess="flowChartAlternateProcess",t.flowChartCollate="flowChartCollate",t.flowChartConnector="flowChartConnector",t.flowChartDecision="flowChartDecision",t.flowChartDelay="flowChartDelay",t.flowChartDisplay="flowChartDisplay",t.flowChartDocument="flowChartDocument",t.flowChartExtract="flowChartExtract",t.flowChartInputOutput="flowChartInputOutput",t.flowChartInternalStorage="flowChartInternalStorage",t.flowChartMagneticDisk="flowChartMagneticDisk",t.flowChartMagneticDrum="flowChartMagneticDrum",t.flowChartMagneticTape="flowChartMagneticTape",t.flowChartManualInput="flowChartManualInput",t.flowChartManualOperation="flowChartManualOperation",t.flowChartMerge="flowChartMerge",t.flowChartMultidocument="flowChartMultidocument",t.flowChartOfflineStorage="flowChartOfflineStorage",t.flowChartOffpageConnector="flowChartOffpageConnector",t.flowChartOnlineStorage="flowChartOnlineStorage",t.flowChartOr="flowChartOr",t.flowChartPredefinedProcess="flowChartPredefinedProcess",t.flowChartPreparation="flowChartPreparation",t.flowChartProcess="flowChartProcess",t.flowChartPunchedCard="flowChartPunchedCard",t.flowChartPunchedTape="flowChartPunchedTape",t.flowChartSort="flowChartSort",t.flowChartSummingJunction="flowChartSummingJunction",t.flowChartTerminator="flowChartTerminator",t.folderCorner="folderCorner",t.frame="frame",t.funnel="funnel",t.gear6="gear6",t.gear9="gear9",t.halfFrame="halfFrame",t.heart="heart",t.heptagon="heptagon",t.hexagon="hexagon",t.homePlate="homePlate",t.horizontalScroll="horizontalScroll",t.irregularSeal1="irregularSeal1",t.irregularSeal2="irregularSeal2",t.leftArrow="leftArrow",t.leftArrowCallout="leftArrowCallout",t.leftBrace="leftBrace",t.leftBracket="leftBracket",t.leftCircularArrow="leftCircularArrow",t.leftRightArrow="leftRightArrow",t.leftRightArrowCallout="leftRightArrowCallout",t.leftRightCircularArrow="leftRightCircularArrow",t.leftRightRibbon="leftRightRibbon",t.leftRightUpArrow="leftRightUpArrow",t.leftUpArrow="leftUpArrow",t.lightningBolt="lightningBolt",t.line="line",t.lineInv="lineInv",t.mathDivide="mathDivide",t.mathEqual="mathEqual",t.mathMinus="mathMinus",t.mathMultiply="mathMultiply",t.mathNotEqual="mathNotEqual",t.mathPlus="mathPlus",t.moon="moon",t.noSmoking="noSmoking",t.nonIsoscelesTrapezoid="nonIsoscelesTrapezoid",t.notchedRightArrow="notchedRightArrow",t.octagon="octagon",t.parallelogram="parallelogram",t.pentagon="pentagon",t.pie="pie",t.pieWedge="pieWedge",t.plaque="plaque",t.plaqueTabs="plaqueTabs",t.plus="plus",t.quadArrow="quadArrow",t.quadArrowCallout="quadArrowCallout",t.rect="rect",t.ribbon="ribbon",t.ribbon2="ribbon2",t.rightArrow="rightArrow",t.rightArrowCallout="rightArrowCallout",t.rightBrace="rightBrace",t.rightBracket="rightBracket",t.round1Rect="round1Rect",t.round2DiagRect="round2DiagRect",t.round2SameRect="round2SameRect",t.roundRect="roundRect",t.rtTriangle="rtTriangle",t.smileyFace="smileyFace",t.snip1Rect="snip1Rect",t.snip2DiagRect="snip2DiagRect",t.snip2SameRect="snip2SameRect",t.snipRoundRect="snipRoundRect",t.squareTabs="squareTabs",t.star10="star10",t.star12="star12",t.star16="star16",t.star24="star24",t.star32="star32",t.star4="star4",t.star5="star5",t.star6="star6",t.star7="star7",t.star8="star8",t.stripedRightArrow="stripedRightArrow",t.sun="sun",t.swooshArrow="swooshArrow",t.teardrop="teardrop",t.trapezoid="trapezoid",t.triangle="triangle",t.upArrow="upArrow",t.upArrowCallout="upArrowCallout",t.upDownArrow="upDownArrow",t.upDownArrowCallout="upDownArrowCallout",t.uturnArrow="uturnArrow",t.verticalScroll="verticalScroll",t.wave="wave",t.wedgeEllipseCallout="wedgeEllipseCallout",t.wedgeRectCallout="wedgeRectCallout",t.wedgeRoundRectCallout="wedgeRoundRectCallout"})(wJ||(wJ={}));var ac;(function(t){t.text1="tx1",t.text2="tx2",t.background1="bg1",t.background2="bg2",t.accent1="accent1",t.accent2="accent2",t.accent3="accent3",t.accent4="accent4",t.accent5="accent5",t.accent6="accent6"})(ac||(ac={}));var LJ;(function(t){t.left="left",t.center="center",t.right="right",t.justify="justify"})(LJ||(LJ={}));var TJ;(function(t){t.top="top",t.middle="middle",t.bottom="bottom"})(TJ||(TJ={}));var eg;(function(t){t.ACTION_BUTTON_BACK_OR_PREVIOUS="actionButtonBackPrevious",t.ACTION_BUTTON_BEGINNING="actionButtonBeginning",t.ACTION_BUTTON_CUSTOM="actionButtonBlank",t.ACTION_BUTTON_DOCUMENT="actionButtonDocument",t.ACTION_BUTTON_END="actionButtonEnd",t.ACTION_BUTTON_FORWARD_OR_NEXT="actionButtonForwardNext",t.ACTION_BUTTON_HELP="actionButtonHelp",t.ACTION_BUTTON_HOME="actionButtonHome",t.ACTION_BUTTON_INFORMATION="actionButtonInformation",t.ACTION_BUTTON_MOVIE="actionButtonMovie",t.ACTION_BUTTON_RETURN="actionButtonReturn",t.ACTION_BUTTON_SOUND="actionButtonSound",t.ARC="arc",t.BALLOON="wedgeRoundRectCallout",t.BENT_ARROW="bentArrow",t.BENT_UP_ARROW="bentUpArrow",t.BEVEL="bevel",t.BLOCK_ARC="blockArc",t.CAN="can",t.CHART_PLUS="chartPlus",t.CHART_STAR="chartStar",t.CHART_X="chartX",t.CHEVRON="chevron",t.CHORD="chord",t.CIRCULAR_ARROW="circularArrow",t.CLOUD="cloud",t.CLOUD_CALLOUT="cloudCallout",t.CORNER="corner",t.CORNER_TABS="cornerTabs",t.CROSS="plus",t.CUBE="cube",t.CURVED_DOWN_ARROW="curvedDownArrow",t.CURVED_DOWN_RIBBON="ellipseRibbon",t.CURVED_LEFT_ARROW="curvedLeftArrow",t.CURVED_RIGHT_ARROW="curvedRightArrow",t.CURVED_UP_ARROW="curvedUpArrow",t.CURVED_UP_RIBBON="ellipseRibbon2",t.CUSTOM_GEOMETRY="custGeom",t.DECAGON="decagon",t.DIAGONAL_STRIPE="diagStripe",t.DIAMOND="diamond",t.DODECAGON="dodecagon",t.DONUT="donut",t.DOUBLE_BRACE="bracePair",t.DOUBLE_BRACKET="bracketPair",t.DOUBLE_WAVE="doubleWave",t.DOWN_ARROW="downArrow",t.DOWN_ARROW_CALLOUT="downArrowCallout",t.DOWN_RIBBON="ribbon",t.EXPLOSION1="irregularSeal1",t.EXPLOSION2="irregularSeal2",t.FLOWCHART_ALTERNATE_PROCESS="flowChartAlternateProcess",t.FLOWCHART_CARD="flowChartPunchedCard",t.FLOWCHART_COLLATE="flowChartCollate",t.FLOWCHART_CONNECTOR="flowChartConnector",t.FLOWCHART_DATA="flowChartInputOutput",t.FLOWCHART_DECISION="flowChartDecision",t.FLOWCHART_DELAY="flowChartDelay",t.FLOWCHART_DIRECT_ACCESS_STORAGE="flowChartMagneticDrum",t.FLOWCHART_DISPLAY="flowChartDisplay",t.FLOWCHART_DOCUMENT="flowChartDocument",t.FLOWCHART_EXTRACT="flowChartExtract",t.FLOWCHART_INTERNAL_STORAGE="flowChartInternalStorage",t.FLOWCHART_MAGNETIC_DISK="flowChartMagneticDisk",t.FLOWCHART_MANUAL_INPUT="flowChartManualInput",t.FLOWCHART_MANUAL_OPERATION="flowChartManualOperation",t.FLOWCHART_MERGE="flowChartMerge",t.FLOWCHART_MULTIDOCUMENT="flowChartMultidocument",t.FLOWCHART_OFFLINE_STORAGE="flowChartOfflineStorage",t.FLOWCHART_OFFPAGE_CONNECTOR="flowChartOffpageConnector",t.FLOWCHART_OR="flowChartOr",t.FLOWCHART_PREDEFINED_PROCESS="flowChartPredefinedProcess",t.FLOWCHART_PREPARATION="flowChartPreparation",t.FLOWCHART_PROCESS="flowChartProcess",t.FLOWCHART_PUNCHED_TAPE="flowChartPunchedTape",t.FLOWCHART_SEQUENTIAL_ACCESS_STORAGE="flowChartMagneticTape",t.FLOWCHART_SORT="flowChartSort",t.FLOWCHART_STORED_DATA="flowChartOnlineStorage",t.FLOWCHART_SUMMING_JUNCTION="flowChartSummingJunction",t.FLOWCHART_TERMINATOR="flowChartTerminator",t.FOLDED_CORNER="folderCorner",t.FRAME="frame",t.FUNNEL="funnel",t.GEAR_6="gear6",t.GEAR_9="gear9",t.HALF_FRAME="halfFrame",t.HEART="heart",t.HEPTAGON="heptagon",t.HEXAGON="hexagon",t.HORIZONTAL_SCROLL="horizontalScroll",t.ISOSCELES_TRIANGLE="triangle",t.LEFT_ARROW="leftArrow",t.LEFT_ARROW_CALLOUT="leftArrowCallout",t.LEFT_BRACE="leftBrace",t.LEFT_BRACKET="leftBracket",t.LEFT_CIRCULAR_ARROW="leftCircularArrow",t.LEFT_RIGHT_ARROW="leftRightArrow",t.LEFT_RIGHT_ARROW_CALLOUT="leftRightArrowCallout",t.LEFT_RIGHT_CIRCULAR_ARROW="leftRightCircularArrow",t.LEFT_RIGHT_RIBBON="leftRightRibbon",t.LEFT_RIGHT_UP_ARROW="leftRightUpArrow",t.LEFT_UP_ARROW="leftUpArrow",t.LIGHTNING_BOLT="lightningBolt",t.LINE_CALLOUT_1="borderCallout1",t.LINE_CALLOUT_1_ACCENT_BAR="accentCallout1",t.LINE_CALLOUT_1_BORDER_AND_ACCENT_BAR="accentBorderCallout1",t.LINE_CALLOUT_1_NO_BORDER="callout1",t.LINE_CALLOUT_2="borderCallout2",t.LINE_CALLOUT_2_ACCENT_BAR="accentCallout2",t.LINE_CALLOUT_2_BORDER_AND_ACCENT_BAR="accentBorderCallout2",t.LINE_CALLOUT_2_NO_BORDER="callout2",t.LINE_CALLOUT_3="borderCallout3",t.LINE_CALLOUT_3_ACCENT_BAR="accentCallout3",t.LINE_CALLOUT_3_BORDER_AND_ACCENT_BAR="accentBorderCallout3",t.LINE_CALLOUT_3_NO_BORDER="callout3",t.LINE_CALLOUT_4="borderCallout3",t.LINE_CALLOUT_4_ACCENT_BAR="accentCallout3",t.LINE_CALLOUT_4_BORDER_AND_ACCENT_BAR="accentBorderCallout3",t.LINE_CALLOUT_4_NO_BORDER="callout3",t.LINE="line",t.LINE_INVERSE="lineInv",t.MATH_DIVIDE="mathDivide",t.MATH_EQUAL="mathEqual",t.MATH_MINUS="mathMinus",t.MATH_MULTIPLY="mathMultiply",t.MATH_NOT_EQUAL="mathNotEqual",t.MATH_PLUS="mathPlus",t.MOON="moon",t.NON_ISOSCELES_TRAPEZOID="nonIsoscelesTrapezoid",t.NOTCHED_RIGHT_ARROW="notchedRightArrow",t.NO_SYMBOL="noSmoking",t.OCTAGON="octagon",t.OVAL="ellipse",t.OVAL_CALLOUT="wedgeEllipseCallout",t.PARALLELOGRAM="parallelogram",t.PENTAGON="homePlate",t.PIE="pie",t.PIE_WEDGE="pieWedge",t.PLAQUE="plaque",t.PLAQUE_TABS="plaqueTabs",t.QUAD_ARROW="quadArrow",t.QUAD_ARROW_CALLOUT="quadArrowCallout",t.RECTANGLE="rect",t.RECTANGULAR_CALLOUT="wedgeRectCallout",t.REGULAR_PENTAGON="pentagon",t.RIGHT_ARROW="rightArrow",t.RIGHT_ARROW_CALLOUT="rightArrowCallout",t.RIGHT_BRACE="rightBrace",t.RIGHT_BRACKET="rightBracket",t.RIGHT_TRIANGLE="rtTriangle",t.ROUNDED_RECTANGLE="roundRect",t.ROUNDED_RECTANGULAR_CALLOUT="wedgeRoundRectCallout",t.ROUND_1_RECTANGLE="round1Rect",t.ROUND_2_DIAG_RECTANGLE="round2DiagRect",t.ROUND_2_SAME_RECTANGLE="round2SameRect",t.SMILEY_FACE="smileyFace",t.SNIP_1_RECTANGLE="snip1Rect",t.SNIP_2_DIAG_RECTANGLE="snip2DiagRect",t.SNIP_2_SAME_RECTANGLE="snip2SameRect",t.SNIP_ROUND_RECTANGLE="snipRoundRect",t.SQUARE_TABS="squareTabs",t.STAR_10_POINT="star10",t.STAR_12_POINT="star12",t.STAR_16_POINT="star16",t.STAR_24_POINT="star24",t.STAR_32_POINT="star32",t.STAR_4_POINT="star4",t.STAR_5_POINT="star5",t.STAR_6_POINT="star6",t.STAR_7_POINT="star7",t.STAR_8_POINT="star8",t.STRIPED_RIGHT_ARROW="stripedRightArrow",t.SUN="sun",t.SWOOSH_ARROW="swooshArrow",t.TEAR="teardrop",t.TRAPEZOID="trapezoid",t.UP_ARROW="upArrow",t.UP_ARROW_CALLOUT="upArrowCallout",t.UP_DOWN_ARROW="upDownArrow",t.UP_DOWN_ARROW_CALLOUT="upDownArrowCallout",t.UP_RIBBON="ribbon2",t.U_TURN_ARROW="uturnArrow",t.VERTICAL_SCROLL="verticalScroll",t.WAVE="wave"})(eg||(eg={}));var Et;(function(t){t.AREA="area",t.BAR="bar",t.BAR3D="bar3D",t.BUBBLE="bubble",t.BUBBLE3D="bubble3D",t.DOUGHNUT="doughnut",t.LINE="line",t.PIE="pie",t.RADAR="radar",t.SCATTER="scatter"})(Et||(Et={}));var OJ;(function(t){t.TEXT1="tx1",t.TEXT2="tx2",t.BACKGROUND1="bg1",t.BACKGROUND2="bg2",t.ACCENT1="accent1",t.ACCENT2="accent2",t.ACCENT3="accent3",t.ACCENT4="accent4",t.ACCENT5="accent5",t.ACCENT6="accent6"})(OJ||(OJ={}));var f1;(function(t){t.chart="chart",t.image="image",t.line="line",t.rect="rect",t.text="text",t.placeholder="placeholder"})(f1||(f1={}));var In;(function(t){t.chart="chart",t.hyperlink="hyperlink",t.image="image",t.media="media",t.online="online",t.placeholder="placeholder",t.table="table",t.tablecell="tablecell",t.text="text",t.notes="notes"})(In||(In={}));var uw;(function(t){t.title="title",t.body="body",t.image="pic",t.chart="chart",t.table="tbl",t.media="media"})(uw||(uw={}));var Tx;(function(t){t.DEFAULT="•",t.CHECK="✓",t.STAR="★",t.TRIANGLE="▶"})(Tx||(Tx={}));var Ox="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAB3CAYAAAD1oOVhAAAGAUlEQVR4Xu2dT0xcRRzHf7tAYSsc0EBSIq2xEg8mtTGebVzEqOVIolz0siRE4gGTStqKwdpWsXoyGhMuyAVJOHBgqyvLNgonDkabeCBYW/8kTUr0wsJC+Wfm0bfuvn37Znbem9mR9303mJnf/Pb7ed95M7PDI5JIJPYJV5EC7e3t1N/fT62trdqViQCIu+bVgpIHEo/Hqbe3V/sdYVKHyWSSZmZm8ilVA0oeyNjYmEnaVC2Xvr6+qg5fAOJAz4DU1dURGzFSqZRVqtMpAFIGyMjICC0vL9PExIRWKADiAYTNshYWFrRCARAOEFZcCKWtrY0GBgaUTYkBRACIE4rKZwqACALR5RQAqQCIDqcASIVAVDsFQCSAqHQKgEgCUeUUAPEBRIVTAMQnEBvK5OQkbW9vk991CoAEAMQJxc86BUACAhKUUwAkQCBBOAVAAgbi1ykAogCIH6cAiCIgsk4BEIVAZJwCIIqBVLqiBxANQFgXS0tLND4+zl08AogmIG5OSSQS1gGKwgtANAIRcQqAaAbCe6YASBWA2E6xDyeyDUl7+AKQMkDYYevm5mZHabA/Li4uUiaTsYLau8QA4gLE/hU7wajyYtv1hReDAiAOxQcHBymbzark4BkbQKom/X8dp9Npmpqasn4BIAYAYSnYp+4BBEAMUcCwNOCQsAKZnp62NtQOw8WmwT09PUo+ijaHsOMx7GppaaH6+nolH0Z10K2tLVpdXbW6UfV3mNqBdHd3U1NTk2rtlMRfW1uj2dlZAFGirkRQAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAGHqrm8caPzQ0WC1logbeiC7X3xJm0PvUmRzh45cuki1588FAmVn9BO6P3yF9utrqGH0MtW82S8UN9RA9v/4k7InjhcJFTs/TLVXLwmJV67S7vD7tHF5pKi46fYdosdOcOOGG8j1OcqefbFEJD9Q3GCwDhqT31HklS4A8VRgfYM2Op6k3bt/BQJl58J7lPvwg5JYNccepaMry0LPqFA7hCm39+NNyp2J0172b19QysGINj5CsRtpij57musOViH0QPJQXn6J9u7dlYJSFkbrMYolrwvDAJAC+WWdEpQz7FTgECeUCpzi6YxvvqXoM6eEhqnCSgDikEzUKUE7Aw7xuHctKB5OYU3dZlNR9syQdAaAcAYTC0pXF+39c09o2Ik+3EqxVKqiB7hbYAxZkk4pbBaEM+AQofv+wTrFwylBOQNABIGwavdfe4O2pg5elO+86l99nY58/VUF0byrYsjiSFluNlXYrOHcBar7+EogUADEQ0YRGHbzoKAASBkg2+9cpM1rV0tK2QOcXW7bLEFAARAXIF4w2DrDWoeUWaf4hQIgDiA8GPZ2iNfi0Q8UACkAIgrDbrJ385eDxaPLLrEsFAB5oG6lMPJQPLZZZKAACBGVhcG2Q+bmuLu2nk55e4jqPv1IeEoceiBeX7s2zCa5MAqdstl91vfXwaEGsv/rb5TtOFk6tWXOuJGh6KmnhO9sayrMninPx103JBtXblHkice58cINZP4Hyr5wpkgkdiChEmc4FWazLzenNKa/p0jncwDiqcD6BuWePk07t1asatZGoYQzSqA4nFJ7soNiP/+EUyfc25GI2GG53dHPrKo1g/1Cw4pIXLrzO+1c+/wg7tBbFDle/EbQcjFCPWQJCau5EoBoFpzXHYDwFNJcDiCaBed1ByA8hTSXA4hmwXndAQhPIc3lAKJZcF53AMJTSHM5gGgWnNcdgPAU0lwOIJoF53UHIDyFNJcfSiCdnZ0Ui8U0SxlMd7lcjubn561gh+Y1scFIU/0o/3sgeLO12E2k7UXKYumgFoAYdg8ACIAYpoBh6cAhAGKYAoalA4cAiGEKGJYOHAIghilgWDpwCIAYpoBh6cAhAGKYAoalA4cAiGEKGJYOHAIghilgWDpwCIAYpoBh6ZQ4JB6PKzviYthnNy4d9h+1M5mMlVckkUjsG5dhiBMCEMPg/wuOfrZZ/RSywQAAAABJRU5ErkJggg==",Q3t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAAAVnCAYAAACzfHDVAAAAYHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjaVcjJDYAwDEXBu6ughBfH+YnLQSwSHVA+Yrkwx7HtPHabHuEWrQ+lBBAZ6TMweBWoCwUH8quZH6VWFXVT696zxp12ARkVFEqn8wB8AAAACXBIWXMAAC4jAAAuIwF4pT92AADZLklEQVR42uzdd5hV9Z0/8M+dmcsUZmDovYOhKCiKYhR7JJuoSTCWGFI0WUxijBoTTXazVlyza4maYm9rTRSJigVsqCDNQhHBAogKCEgRMjMMU+7vj93sL8kqClLmnPt6PY+PeXZM9vP9vO8jZ+Y955xMfJLjorBrRMuSgmiViyjN1Ee2oSCyucbIBAAAAAAAAADbXaYgcoWNUZcrirpMbdRsysa69wbF+rggGrf439vSF7seF12aFUTnxvoosGIAAAAAAACAXacgoqEgF++/VRgr4r5o+Kh/pvD//F8uiII+LaPrum/EXzqui2b1ddHGKgEAAAAAAAB2rVxEQWMmWrQtjHZlA6N2w2tR84//zP8pgHu3ib6NBdG+zdqorK6KVUXZaB85j3sGAAAAAAAAaAoaG6OwIBdtyneP2PBabPzbr/1dAdx3VHRtyESHiIhcYzQrLo7WmVzkcjmPgAYAAAAAAABoSgpy0eIfS+D/LYD7fy3abC6Inn/7X2hsjELlLwAAAAAAAEDT9D8lcM1fHwddFBFxyAVR9M686PVp/gfqayKiJiLqLBMAAAAAAABgh8hGRGlEUekn/6PFEb3ikNgQk6O+KCJi6dzoksv83/cB/1X9xoiaJdmoWxlRV1dk2QAAAAAAAAA7QTZbH9muERX96v7n9t7/q6Exinq3i86LI94pjOOisHUu+uYykfmof7h+Y8Sa6aVRt74gGhs9DRoAAAAAAABgZ2lsLIi69QWxeUUmSjs0/vedwR8hk4uydSfE+wVd6qOyMfMx7/mtj9jwUtbjngEAAAAAAAB2obrqolg7IxtR/9Ffb4wo7P5GtCwobRaVH/c/UvNmNuqqPfIZAAAAAAAAYFerqy6KmjezH/v1ktpoVZBr/PgCeMN7yl8AAAAAAACApmJLHW5jUVQWNDSP+Q3ZeLco4i9/+8X6teHRzwAAAAAAAABNSd3/dLn/oLAoqqIuVhXFxhhSGB/xqGjlLwAAAAAAAECTU1eTjaK/KXSLIv7SWB+bc5ko9YxnAAAAAAAAgATJFv393bz1EeV//c8F1gMAAAAAAACQDgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKREkRUAAACwrUpLSwuGDRvWfMCAAS26du3avKysrLiioqKkZcuWzZs1a1bcvHnz0tLS0rJsNtusuLi4ebNmzUoLCgo+8/eijY2N9Zs3b66pra2tqqur21xTU1NdVVVVs2nTptqNGzdWbdiwoeYvf/nL5hUrVlQtWLBgw6xZs6pqamoaJQYAAEDaKYABAACIiIghQ4aUHnTQQW379u3bql27dq3at2/fpkWLFq2bN29eWVpa2qpZs2bNCwsLm2ez2fLCwsLyoqKi8sLCwtKknK+hoaG6vr6+qqGh4S91dXV/aWhoqNq8eXNVTU3NuqqqqvUbNmxYu2rVqjWrV69e99Zbb6177rnnPpgzZ06NTwYAAABJogAGAADIA8OGDWt+xBFHdBwwYECnLl26dGjdunXHFi1adCgtLe1YUlLSvlmzZq0KCgqK07yDwsLCssLCwrKIaPdp/zuNjY21mzdvXrdp06ZVNTU172/YsGHl2rVr31+2bNnKBQsWrHjyySffnzVrVpVPGAAAAE1Fpuexsd9HfaF+ZcSal0ptCAAAIAE6deqUPf744zvtueeeXbp3796lbdu2XSorKzuXlpZ2KS0t7VBYWFhhSztGQ0PDxpqampU1NTXL169fv+yDDz5Y9s477yybPXv2sj/96U8rVqxYUWdLAAAAbE9t9q6Jog4f/TUFMAAAQEJks9nMt7/97Y4jRozo1bdv397t2rXrXl5e3rWsrKxzcXFx+4gosKUmp7G2tnZVTU3Nso0bNy5btWrV0tdff/2tJ598cvG999672noAAADYFgpgAACAhPne977X6a9Fb/v27Xu1bNmyV1lZWa8kvXOXLauvr9/wl7/8ZdG6desWL1u2bNHChQsX/fGPf1w8derUjbYDAADAliiAAQAAmqhsNps59dRTuxx66KH9+/Tp87n27dv3Ly8v719UVOSRzXlq06ZNKzZu3Pj6+++//8abb775xqOPPvrG3XffvcpmAAAA+CsFMAAAQBNx6qmndvniF784qHfv3v3btWv3uYqKis8VFhaW2wxbUl9fv37Dhg1vfPDBB68vXrz4jccee2z+jTfeuNxmAAAA8pMCGAAAYBc45phjWn/rW9/aq3///kPatGnTv6Kiop9HOLO9NDQ0VG/cuPGtNWvWLFy4cOGcO+6445WHHnporc0AAACknwIYAABgJzjjjDO6f+lLX9qrV69eg1u3bj2orKysR0RkbIadJFddXb103bp18xcvXjz30UcffeXqq69+x1oAAADSRwEMAACwnZWWlhb86le/2u3QQw8d1r17931btmw5qLCwsMxmaEoaGhqqP/zww/nvvPPOzGeeeWbW2LFj36ipqWm0GQAAgGRTAAMAAGwHP/7xj7t+9atf3bdXr15D27Ztu1c2m21jKyRJXV3dmg8++OCVRYsWvfznP/95xh/+8IdltgIAAJA8CmAAAIBtcOKJJ7Y75ZRTDujXr9+w1q1bD81ms61shTSpq6tbt3bt2pfffPPNWbfccsvUe++9d7WtAAAANH0KYAAAgE+hoqKi4IILLhg0YsSI/bp27bpfy5YtB2YymUKbIR/kcrmGDz/8cP6777474/nnn59x4YUXvrZx40aPiwYAAGiCFMAAAAAf4/jjj2/7/e9//8D+/fsf2Lp1630KCgpKbAUiGhsbN61fv37eW2+9NeWGG2545u67715lKwAAAE2DAhgAAOB/ZLPZzAUXXPC5I4888sDu3bsfWFFRsVtEFNgMbFl1dfWSd999d8qsWbNmnnvuuS+vW7euwVYAAAB2DQUwAACQ10pLSwsuvfTSQYcccsjBXbt2HVFWVtbDVmDb1dbWrnr//fdfmDp16uRf/vKXL65evbreVgAAAHYeBTAAAJB3Bg0aVHrBBRd8fs899zywQ4cOBxQVFbWwFdj+Ghsba9euXTtrzpw5T59//vmTX3755WpbAQAA2LEUwAAAQF4YNmxY8/POO+/gIUOGHOZ9vrDz/W0ZfNFFFz07a9asKlsBAADY/hTAAABAarVq1arwyiuv3HfEiBEjO3TocFBhYWGZrcCu19DQUP3+++8/O2XKlIk/+clPZm7cuLHRVgAAALYPBTAAAJAqrVq1Kvztb3+7/3777Xd4x44dRxQWFpbbCjRdDQ0NG99///0pM2bMeOqHP/zhC8pgAACAz0YBDAAApMJZZ53V45vf/OaRvXr1GllaWtrVRiB5ampq3l28ePHEO++8c9LVV1/9jo0AAABsPQUwAACQWMOHDy+/6KKLvjB48OCjW7RoMdBGID0+/PDDV+fNmzfhvPPOe3L69Ol/sREAAIBPRwEMAAAkSqtWrQpvuOGGQ/bbb79/atOmzX6ZTCZrK5BeuVyubs2aNTNmzJjx2JgxYyavW7euwVYAAAA+ngIYAABIhB//+Mddv/e9732lZ8+e/1RcXNzWRiD/1NbWfvD2228/dssttzz029/+9l0bAQAA+L8UwAAAQJNVUVFRcO21137+4IMPPrZ169b7ZTKZAlsBIqJxzZo1M59//vnxp5122hR3BQMAAPx/CmAAAKDJOeWUUzqefvrpx/bu3ftL2Wy2jY0AH6e+vn7j0qVLH/vd7373x+uvv36ZjQAAAPlOAQwAADQJ2Ww2c+uttx5wyCGHnNC6deu9I8LdvsDWaFy7du1L06ZN+/OPfvSjZ1evXl1vJQAAQD5SAAMAALtU//79S6655pp/2nPPPY8tLy/vayPAZ1VTU7NswYIF488999wHp06dutFGAACAfKIABgAAdomf//znPU855ZQTu3btemRhYWGZjQDbW2NjY92KFSuevOWWW+689NJLF9kIAACQDxTAAADATuMxz8Cusn79+rlPP/30f5188slT6+rqcjYCAACklQIYAADY4fr27Vv8hz/84a+Pee5nI8CuUlNT8+68efPu/8EPfvDgwoULN9kIAACQNgpgAABghxkyZEjpNddc89XBgwefWFxc3MFGgKaitrZ21dy5c+/5yU9+8uc5c+bU2AgAAJAWWyqAPYoNAADYJqNHj+4wb968n06ZMuXRYcOGnaH8BZqa4uLi9sOGDTtjypQpj86bN++nJ510UntbAQAA0s4dwAAAwFY599xze33/+9//dufOnY/IZDJZGwGSIpfL1S1fvvzJG2644fbLLrvsbRsBAACSyiOgAQCAz+y8887r+53vfOfbHTt2PDyTyRTaCJBUuVyuYcWKFU/cdNNN//XrX/96sY0AAABJowAGAAC22WWXXTboG9/4xg9at249zDaAtFm7du2su++++9pzzjnnNdsAAACSQgEMAABsNcUvkE8UwQAAQJIogAEAgE9N8Qvks7Vr18665557rvv5z38+3zYAAICmaksFcGHlwOj6UV9orIqoWZG1PQAAyBO/+MUvet9xxx3nHHrooT8pLS3tYiNAPiotLe2y7777HvP973+/X1lZ2ZIpU6assxUAAKCpKetcHwXlH/01BTAAAOS5M844o/u99957zpe//OWflZeX94qIjK0AeS5TXl7e8+CDDx71/e9/v3dEvDVjxowPrQUAAGgqFMAAAMD/ceKJJ7a77777fjJq1Kh/KS8v7xOKX4B/lCkvL+99+OGHj/rWt77VfvXq1Qvnz59fbS0AAMCutqUC2DuAAQAgzwwdOrTs+uuvP6l///4nFRYWltkI20NjY2Ns2rQpqquro6amJurr62PTpk2xefPmqK+vj+rq6qivr4/NmzfHpk2boqGhYZv/fxUWFkZJSUk0a9YsioqKoqysLIqKiqJZs2ZRUlISRUVFUVpa+r9/FRQUCIjtoqGhoeq11167a8yYMffMmTOnxkYAAIBdZUvvAFYAAwBAnujUqVP2nnvuGbXXXnudnM1mK22Ej9PQ0BAbN26MDRs2/J+/Nm7cGBs3boyamprYtGlTbNq0KWpqaqK2trbJnqe4uDhKSkqitLT0f/9eUVERFRUV0aJFi//zV0VFRRQWFvog8LHq6urWvvjii7eceOKJf169enW9jQAAADubAhgAAPLcXXfdddAXv/jF00tLS7vZRn7L5XKxYcOGWLt2baxbty7Wrl37d3+tW7cuNmzYkPd7atGiRbRu3TpatWoVrVu3jjZt2vzvf27dunW0aNHCh4morq5e+sgjj1zzne98Z6ptAAAAO5MCGAAA8tTVV189+MQTTzyzoqJioG3kj8bGxli5cmUsX748Pvjgg1i9evX//n3t2rXR2NhoSZ9RYWFhtGrVKtq1axdt27b937937tw5OnTo4LHTeWbDhg3z77333qvOPPPMebYBAADsDApgAADIM1/72tfaXHrppad27979qIjQRKVUQ0NDrFq1KlasWBHvv//+//595cqVTfqRzGlXXFwcHTp0iI4dO0bnzp2jY8eO0alTp2jXrp1HS6dYLpdrfOeddx76+c9/fv2ECRPW2QgAALAjKYABACBP9OrVq9ldd931jT322OM7hYWFZTaSHh9++GG88847sXTp0njvvfdixYoVsXr16mhoaLCchCgsLIz27dtHp06dolu3btG9e/fo3r27x0mnTENDQ9W8efNu++Y3v/nHJUuWbLYRAABgR1AAAwBAHrjrrrtG/NM//dOZJSUlXWwj2davXx9Lly6Nd955539L3w8//NBiUqqysvJ/y+C//tWqVSuLSbiamppljz322G9Gjx49xTYAAIDtTQEMAAAp9qtf/arPD3/4w5+1atVqL9tIno0bN8aSJUvirbfeikWLFsV7770XmzZtspg8V1JSEl27do0+ffpE3759o3fv3lFeXm4xCbRu3bqXr7322ivGjh27yDYAAIDtRQEMAAApNGjQoNI77rjju7vttttJBQUFWRtJhtWrV8ebb74ZixcvjiVLlsTy5cujsbHRYtiigoKC6Ny5c/Tu3Tt69+4d/fr1i7Zt21pMQjQ2Nta98cYbd33rW9+6ff78+TU2AgAAfFYKYAAASJHS0tKCBx988Jj99tvvn7PZbBsbaboaGhri7bffjrfeeisWLFgQS5YscXcv201FRUX06tUr+vbtG3379o2ePXtGYWGhxTRhdXV1a2bMmHHjV77ylYdqamr85gcAALDNFMAAAJASp59+erdf/vKX51ZWVu5jG03T6tWr47XXXouFCxfGm2++GRs3brQUdooWLVpE3759Y8CAATFw4EB3CDdh69evf/E//uM//vPqq69+xzYAAIBtoQAGAICEGzRoUOm99977w969ex+byWTc4teErF+/PubNmxcLFiyIN954Q+FLk9GiRYvo169fDBgwIPbYY4+orKy0lCYkl8s1LF68eNyJJ554rcdCAwAAW0sBDAAACXbNNdcMOemkk35RVlbWyzZ2vVwuF++++27MnTs3XnvttViyZIl3+NLkFRQURK9evWLQoEExePDg6Natm6U0EdXV1UvuvvvuX//kJz+ZYxsAAMCnpQAGAIAEOuqoo1r99re//VmHDh0Ot41da9OmTTF79uyYO3duLFy4MKqqqiyFRGvevHn0798/Bg8eHHvuuWeUlJRYyi62cuXKp04//fTLJ0yYsM42AACAT6IABgCAhBk3btwRRxxxxFnZbLaNbewaVVVVMXfu3Jg7d27Mnz8/amtrLYVUKi4ujoEDB8bgwYNj8ODBUV5ebim7SF1d3ZqnnnrqqlGjRj1hGwAAwJYogAEAICFOOeWUjhdddNEvW7duvZ9t7HwrV66MWbNmxdy5c+Odd96JXC5nKeSdzp07x9577x3Dhg2LDh06WMgusHbt2hnnnXfepbfccsv7tgEAAHwUBTAAADRxpaWlBU899dQ3Bw8e/L2CggLPYt2JVqxYES+99FK89NJLsXz5cguBv/HXMnjvvfeOTp06WchO1NjYuGnu3Lk3H3744XfV1NR40TgAAPB3FMAAANCEjR49usOll176yzZt2gy3jZ1j/fr18eKLL8bMmTNj6dKlFgKfQs+ePWPfffeNYcOGRYsWLSxkJ1mzZs0L55577q/vvvvuVbYBAAD8lQIYAACaoIqKioKJEyd+c/Dgwd8vKCgotpEda8OGDfHiiy/G9OnTlb7wGfXo0SOGDx8ew4YNi4qKCgvZwdwNDAAA/CMFMAAANDGnnHJKx7Fjx/5rZWXlMNvYcerr6+PVV1+NGTNmxLx586Kurs5SYDvKZrMxZMiQ2HfffWP33XePwsJCS9mB1q5dO+MXv/jFv995550rbQMAAPKbAhgAAJqIbDabeeKJJ47fZ599fuSu3x0jl8vFwoULY/r06TF79uzYtGmTpcBOUFpaGkOGDInhw4fHgAEDLGQHaWhoqJ42bdo1Rx555J9tAwAA8pcCGAAAmoDjjz++7ZVXXvmr1q1be9fvDrBmzZqYNm1azJw5M1audHMc7EodO3aMz3/+87H//vt7X/CO+3fetDPPPPOScePGfWAbAACQfxTAAACwi9100037HXvssf9WXFzc1ja2n1wuF6+99lo8//zzMW/evKivr7cUaEKKiopizz33jBEjRsTnPve5yGQylrId1dbWrvrjH/948Q9+8INZtgEAAPlFAQwAALvIkCFDSu+///5zunTp8k+2sf2sXbs2Jk+eHNOnT48PP/zQQiABKisrY8SIEXHIIYdEeXm5hWxHy5Yte+zrX//6f86ZM6fGNgAAID9sqQAurBwYXT/qC41VETUrsrYHAADb6IILLtjt97///VVt2rQZZhvbx+LFi2P8+PFx9913xxtvvBG1tbWWAgmxadOmeOONN+LZZ5+NtWvXRps2bTweejtp0aJFv5NOOumg0tLSuc8+++xaGwEAgPQr61wfBR/zu7XuAAYAgO0sm81mJk2a9PVhw4b9pKCgwG9VfkZ1dXUxY8aMeOaZZ+K9996zEEiRfv36xSGHHBJDhw6NgoICC/mMGhsbN8+YMeOaL37xi+Pq6upyNgIAAOnlEdAAALCTHH/88W2vuuqqCyorK/exjc9mzZo18dRTT8XUqVNj06ZNFgIpVlFREZ///OfjsMMOi8rKSgv5jNavXz/r9NNPv3DcuHEf2AYAAKSTAhgAAHaC22677fNf+9rXzstms5W2se0WLVoUjz/+eMybNy9yOTewQT4pKiqKIUOGxBFHHBG9e/e2kM+grq5u3QMPPHDRySefPM02AAAgfRTAAACwA1VUVBQ8/fTTpwwcOPCUTCbjGabbIJfLxauvvhpPPvlkLFy40EIgz2UymRgwYEAcccQRMWjQIAvZ9n+3Ns6fP/+Www8//JaNGzc22ggAAKTHlgrgwsqB0fWjvtBYFVGzwuvKAABgS0488cR2EyZMuLx79+5fzmQyGRvZOo2NjTFr1qy49dZb48knn4wPPvC0UuC/rV69OmbMmBFz5syJ0tLS6NSpU/jX7NbJZDKZ9u3bD/3+978/dPny5TNfffXValsBAIB0KOtcHwXlH/O9gDuAAQBg29x66637H3vssRcWFRW1sI2tU1NTE0899VQ8++yzsWHDBgsBPlGLFi3i4IMPjsMPPzxKS/28YmvV19d/OG7cuPNPPvnk6bYBAADJ5xHQAACwHWWz2cyzzz77rSFDhvzAI5+3zqZNm2Ly5Mnx1FNPKX6BbdKiRYs47LDD4pBDDlEEb6VcLtfwyiuvXHfooYfeWVdX5yXrAACQYApgAADYTo455pjW11133cWVlZV728ant2HDhnj88cdjypQpUVtbayHAZ1ZcXBwHHnhgfPGLX4wWLTyIYWusWbNm2re//e3zn3nmGb+JAwAACeUdwAAAsB1cfvnlu1900UW/LS8v72cbn05VVVVMmDAhbrnllnjzzTejoaHBUoDtoqGhIZYsWRLPPfdc1NTURI8ePSKb9XOMT6OsrKzb17/+9SPbtm0774knnlhtIwAAkMDreu8ABgCAz+bhhx/+8qGHHnpOQUFBsW18sk2bNsUzzzwTTzzxRFRVVVkIsMOVl5fHkUceGYccckgUF/tX9afR2Ni46emnn/71Mccc87htAABAsngENAAAbKN27doVTZ48+YxevXodZxufrK6uLp5++umYOHGi4hfYJSoqKuKLX/xiHHzwwe4I/pQWLVr0x4MOOuiadevWeUwDAAAkhEdAAwDANjj22GPbPvzww7/p2LHjobaxZXV1dfHkk0/GddddF3Pnzo26ujpLAXaJzZs3x2uvvRbPPfdcRET06NEjCgsLLWYLWrduvfv3vve9fd9+++1pCxYsqLYRAABo+rb0CGgFMAAAfITLL7989wsuuOB3zZs372UbH6+xsTGmTJkS119/fbzyyiuKX6DJ2Lx5cyxYsCCmT58excXF0a1bt8hkMhbzMUpKSjp8+ctfPrJt27ZzvBcYAACaPu8ABgCArTB+/Pgjv/CFL/xLQUFBiW18vAULFsT48eNj6dKllgE0eT169IivfOUrMWjQIMvYgsbGxpqJEydecuyxxz5pGwAA0HR5BzAAAHwK7dq1K3ruued+1qNHj6/axsdbtGhR3H///bF48WLLABKnV69ecdxxx0WfPn0sYwuWLl3654MOOujy1atX19sGAAA0Pd4BDAAAn2DYsGHNn3766V936tTpC7bx0TZs2BD33Xdf/PGPf4y1a9daCJBI69evj2nTpsW6deuiZ8+eUVLiYQ8fpbKysv+3v/3t/lOmTJmyfPlyz/cHAIAmxjuAAQBgC372s5/1uP76669t0aKF54J+hJqamhg/fnzcfPPN8fbbb0cul7MUINFyuVy888478cwzz0RVVVX07t07slk/A/lHZWVl3U488cTD6+rqZkyfPv1DGwEAgCZ0va4ABgCAj3bFFVfscdZZZ11dXFzcwTb+Xi6XixkzZsR1110XCxYsiMbGRksBUqWxsTGWLFkSM2bMiPLy8ujSpUtkMhmL+RvZbLbFQQcddHibNm1mP/HEE6ttBAAAmoYtFcDeAQwAQN6aNGnSqAMOOODsTCZTaBt/b9GiRXHPPffEu+++axlA3ujWrVucdNJJ0bt3b8v4B7lcrm7y5Mm//vKXv/yIbQAAwK63pXcAK4ABAMg7paWlBTNnzjyzT58+x9vG39uwYUOMGzcuZsyY4VHPQF7KZDKx3377xde//vWoqKiwkH+waNGiP+27775X1dTUeCwEAADsQgpgAAD4H926dctOnjz5V506dRppG/9fLpeLqVOnxp///OfYuHGjhQB5r6KiIkaNGhX777+/x0L/g+XLlz9+6KGHXvLuu+/W2QYAAOwaWyqAvQMYAIC8MXz48PInnnjiynbt2o2wjf/vnXfeiWuvvTaee+652Lx5s4UARMTmzZtjzpw58dprr0XPnj2jRYsWlvI/Kioq+n7rW98aMnXq1Ofee+89f3AAAMAusKV3ACuAAQDIC9/+9rc73n777X9o0aLFANv4b1VVVXHXXXfFvffeG+vXr7cQgI+wbt26eP7552P9+vWx2267RVFRkaVERElJSefjjjvuoA8++GDKK6+88hcbAQCAnUsBDABAXjv//PP7XXzxxX8oKSnpbBv/bfr06XHttdfGokWLLAPgU3jnnXdi2rRp0bp16+jc2R8nERHZbLbyC1/4whElJSUvTp48eY2NAADAzqMABgAgb/3ud7/b60c/+tFVRUVFrWwjYs2aNXHzzTfHpEmTora21kIAtkJtbW289NJL8c4770Tfvn2jtLQ073dSWFhYNnz48C/26dNn4UMPPbTMpwQAAHYOBTAAAHnp1ltv3f+b3/zmfxYWFjbP913kcrl4/vnn4/rrr4/ly5f7cAB8BitXroxp06ZFRUVFdOvWLTKZTF7vo6CgIDto0KBDBw0atOiBBx54xycEAAB2vC0VwJmex8Z+H/WF+pURa17ym6wAACTTww8//KXDDjvsXzKZTN6/rPGDDz6I22+/Pd544w0fDIDtbMCAAfGtb30r2rRpk/e7yOVyjVOmTPn1yJEjH/LJAACAHavN3jVR1OGjv6YABgAgdV555ZXTPve5z30r3/fQ0NAQjz32WDz++ONRV1fngwGwg2Sz2Tj66KPjC1/4QhQUFOT9Pl5//fU79tprr9/7ZAAAwI6jAAYAIC9ks9nMyy+/fFafPn2Oz/ddvPvuu3HbbbfFe++954MBsJN069YtvvOd70S3bt3yfhdLliy5f5999rmypqam0ScDAAC2PwUwAACpV1paWjBr1qyzevfufVw+7yGXy8WTTz4ZDz74oLt+AXaBbDYbxxxzTBxxxBF5fzfw0qVLHxg6dOjlSmAAANj+FMAAAKRar169mk2ePHlsu3btDsrnPaxcuTJuueWWePvtt30oAHaxnj17ximnnBIdOnTI6z2sXr16yiGHHPIvS5Ys2exTAQAA28+WCuDCyoHR9aO+0FgVUbMia3sAADRpQ4cOLXvqqacub9Omzf75uoNcLhfPPPNMXH/99bF27VofCoAmYP369TFlypQoKSmJnj17RiaTycs9NG/evPtJJ500ZPLkyc+sWLHCoykAAGA7KetcHwXlH/01BTAAAIk1ZMiQ0kceeeSKVq1a7Z2vO6iuro7bb789nnjiiWhs9IRNgKaksbEx5s+fH++//34MGDAgstn8/DlLaWlpp6997WuDn3rqqadXrlxZ75MBAACfnQIYAIDUOfTQQ1s8+OCDv2/ZsuUe+bqDOXPmxNVXX+2RzwBN3PLly+OFF16Ijh075u0joUtLSzudcMIJ+7/00ktPv/3227U+FQAA8NkogAEASJVhw4Y1v++++37TsmXLQfl4/vr6+hg/fnz88Y9/jNpaP0MHSILNmzfHiy++GJs3b47ddtstCgoK8m4HxcXFbY866qg9n3vuuaeXL1/ucdAAAPAZKIABAEiNI488snLcuHG/b9GixcB8PP97770XV111VcyZM8eHASCBFi1aFC+//HL069cvWrRokXfnLykp6XDcccftP2fOnGcWLVq0yScCAAC2jQIYAIBUOPLIIyvvvPPO35aXl++Wj+d/+umn48Ybb4wPP/zQhwEgwf7yl7/ECy+8ECUlJdGrV6+8O3+zZs3aHHXUUfspgQEAYNspgAEASLxjjz227W233faH5s2b98m3s1dVVcXNN98cTz31VDQ2NvowAKRAY2NjzJ8/P5YtWxYDBgyIZs2a5dX5mzVr1uaYY4458M0333xm4cKFNT4RAACwdRTAAAAk2qGHHtritttuuzofy9+33347rrnmmli8eLEPAkAKvf/++/HKK69Enz59orKyMq/Ons1mK4888sh9Zs6c+dTSpUs3+zQAAMCnpwAGACCxjjjiiJb33nvvteXl5f3y6dy5XC4mTZoUN998c1RVVfkgAKRYVVVVTJ06NbLZbPTp0ycymUzenL24uLjtV7/61c+/8sorTy1evLjWpwEAAD4dBTAAAIl06KGHtrj33nt/l2/lb3V1ddx0000xefLkyOVyPggAeSCXy8WCBQvi3Xffjd133z2y2fz5mUyzZs1aH3300fvNmDHjSXcCAwDAp6MABgAgcYYOHVo2fvz4qysqKgbk07mXLVsWV111lUc+A+SplStXxiuvvBKf+9znoqKiIm/O3axZszZHH3300GeeeebJFStW1PkkAADAlimAAQBIlCFDhpQ++uij17Rs2XL3fDr31KlT49prr42NGzf6EADksaqqqpg+fXq0bds2unTpkjfnLikpaT9q1KihTz755JMrV66s90kAAICPt6UCuMB6AABoSjp16pSdMGHCv1dWVu6RL2dubGyMcePGxR133BF1dW56AiCitrY2br755hg/fnw0NjbmzbkrKyv3mDBhwr9369bNXQkAALCNFMAAADQZrVq1Kpw+ffolbdq02T9fzlxdXR2/+93vYtKkSd73C8DfyeVy8fjjj8fvf//7qK6uzptzt2nTZv8pU6Zc0qpVq0KfAgAA2HoKYAAAmoSKioqC2bNnX9KuXbuD8uXMS5cujYsuuijmz5/vAwDAx3r11VfjoosuiqVLl+bNmdu1a3fQ7Nmz/72iosLPrgAAYCu5iAYAoEmYOXPmz9q1a3dIvpz35ZdfjiuuuCLWrVsnfAA+0bp16+KKK66Il19+OW/O3K5du4Nnzpz5M+kDAMDWUQADALDLvfjii2N69OgxKh/Omsvl4oEHHogbbrghamtrhQ/Ap1ZbWxs33HBDPPDAA3nz2oAePXqMevHFF8dIHwAAPj0FMAAAu9SkSZO+NnDgwFPy4ax1dXVx8803x8SJE73vF4BtksvlYuLEiXHLLbdEXV1dXpx54MCBJ0+aNOlr0gcAgE9HAQwAwC7z6KOPHnXggQeekw9nXbduXfz617+OWbNmCR6Az2zmzJnx61//Ol9eJZA58MADz3n00UePkjwAAHyywsqB0fWjvtBYFVGzImtDAADsEDfeeOO+Rx999EWZTKYw7Wddvnx5XHXVVbFy5UrBA7DdbNiwIWbPnh0DBw6MioqKtB8307179/179uz56sMPP7xc+gAA5LuyzvVRUP7RX1MAAwCw011xxRV7fPe7372qoKCgWdrPOmfOnPjtb38bGzduFDwA2111dXVMmzYtOnfuHB07dkz1WTOZTOHuu+9+eJs2bV6aNGnSKukDAJDPFMAAADQZZ5xxRvef/exnvy0sLCxP+1knTJgQd999d9TX1wsegB2moaEhXnrppchms9G3b99UnzWTyRTttddeB/3lL395dubMmRukDwBAvlIAAwDQJBx00EEVf/jDH64pLi7ulOZz5nK5eOCBB+Kxxx4TOgA77c+eBQsWRF1dXfTv3z8ymUxqz1pQUFBywAEHDJs+ffqkpUuXbpY+AAD5aEsFcIH1AACwMwwaNKj0vvvuu7qsrKxXms9ZV1cX1113XUyaNEnoAOx0EydOjOuvvz7q6upSfc6ysrJef/rTn67u379/idQBAODvKYABANjhKioqCh577LGLKyoqBqb5nNXV1XHNNdfE7NmzhQ7ALvPKK6/ElVdeGVVVVak+Z4sWLQZOnDhxbEVFhZ9vAQDA33CBDADADjdz5syftW3b9sA0n3HdunVx2WWXxRtvvCFwAHa5xYsXx2WXXRZr165N9TnbtWt34MyZM38mcQAA+P8UwAAA7FBPPvnkqB49eoxK8xlXrVoVV1xxRSxfvlzgADQZK1asiCuuuCJWrlyZ6nP26NFj1KRJk0ZJHAAA/lth5cDo+lFfaKyKqFmRtSEAALbZjTfeuO+XvvSlCzOZTGp/8fDdd9+NK6+8MtatWydwAJqc6urqmDVrVvTv3z8qKytTe85u3boN79mz57yHH37Yb2MBAJAXyjrXR0H5R39NAQwAwA5x3nnn9T311FOvLigoKE7rGV977bW45pprorq6WuAANFmbN2+OGTNmRI8ePaJ9+/apPGMmkykYNGjQIYWFhVOee+45v5UFAEDqKYABANipjjrqqFb/8R//8YdmzZq1SusZX3755bj++uujrq5O4AA0eQ0NDfHSSy9Fp06dolOnTqk8Y0FBQXbYsGGfnz9//qQ33nhjk9QBAEizLRXA3gEMAMB21a1bt+wNN9zwnyUlJR3TesYpU6bEjTfeGPX19QIHIDHq6+vjxhtvjKlTp6b2jCUlJZ1uuOGG/+jWrZu7GgAAyFsKYAAAtqunn376XyorK/dI6/kmTZoUd955ZzQ2NgobgMRpbGyMO+64I5588snUnrGysnLw008//UtpAwCQrxTAAABsN88///w3unTp8k9pPd/EiRNj3LhxkcvlhA1AYuVyubj//vtTXQJ36dLlS88+++yJ0gYAIB95BzAAANvFTTfdNPzII488L5PJZNJ4vsceeyzGjx8vaABS47XXXotmzZpF3759U3m+zp0779urV695Dz/88DJpAwCQNlt6B7ACGACAz+wXv/hF7x/+8IdXFxQUNEvj+R544IF45JFHBA1A6ixYsCDq6upiwIABqTtbJpPJDBo06ODGxsbnpk6dul7aAACkiQIYAIAd5oADDqj43e9+99tmzZq1TeP5xo0bF5MmTRI0AKm1aNGi2Lx5cwwcODB1ZysoKMjut99+w5577rnH33vvvc3SBgAgLbZUAHsHMAAA2yybzWbuvPPOfyktLe2exvNNmDBB+QtAXpg0aVI89NBDqTxbaWlpj3vuuedfstlsRtIAAOQDBTAAANvs+eef/06HDh0OTePZHn744Xj44YeFDEDeeOSRR+LPf/5zKs/WoUOHw5599tlvSxkAgHygAAYAYJvcd999hw8ePPjUNJ7t/vvvjwkTJggZgLzz2GOPxX333ZfKs+25554/+NOf/nSYlAEASDvvAAYAYKudccYZ3ceMGXN5QUFBcdrONnHixHjkkUeEDEDeWrx4cWSz2ejbt2/ajpbp06fPvn/5y18mz5w5c4OkAQBIsi29A1gBDADAVhk2bFjzG2+88Q/NmjVrl7azPfroo6l99CUAbI2FCxdGUVFR9OvXL1XnKigoKD7wwAP3e/LJJx9dsWJFnaQBAEiqLRXAHgENAMBWuffee39ZWlraPW3nevzxx+PBBx8UMAD8jz//+c8xceLE1J2rtLS0x3333fdLCQMAkFYKYAAAPrVJkyaN6tSp0xEpPFeMHz9ewADwD8aPHx+TJ09O3bk6der0hUmTJn1VwgAApJFHQAMA8Kmcd955fU888cR/z2QyRWk618yZM+Puu+8WMAB8jNdeey06duwYnTt3TtW5unbtuk9BQcHzzz333DopAwCQNN4BDADAZ3LEEUe0vOKKK67NZrOVaTrXyy+/HDfffHPkcjkhA8DHyOVyMXv27OjSpUt06tQpNefKZDJF++yzz/CpU6c+9u67726WNAAASeIdwAAAbLNsNpu55ZZb/q2kpKRjms61YMGCuPnmm6OxsVHIAPAJGhsb4+abb44333wzVecqLS3tcvfdd5+fzWYzUgYAIC0UwAAAbNGkSZO+3rZt2wPTdKZly5bFDTfcEPX19QIGgE+prq4urr322li+fHmqztWuXbsDH3/88VESBgAgLTwCGgCAj3XZZZcN+upXvzo2k8mk5hcH33///bjyyiujqqpKwACwlerq6uLll1+OIUOGRHl5eWrO1aVLl31LS0unPvPMM2ukDABAEngENAAAW61///4lJ5988q8ymUxRWs60YcOG+P3vfx8bN24UMABso40bN8bvfve7VP15WlBQkP3hD394ft++fYslDABA4q9vrQAAgI/y4IMPnl1WVtYrLeeprq6O3/zmN7Fq1SrhAsBntGrVqrjyyiujuro6NWcqKyvr8/DDD58lXQAAkk4BDADA/zF+/Pgju3XrdnRazlNfX5/KdxYCwK60fPnyuO6666K+vj41Z+rRo8dXx40bd4R0AQBIMgUwAAB/53vf+16nI4444py0nCeXy8Vtt90Wb7zxhnABYDt7/fXX47bbbotcLpeaMx155JHnfvvb3+4oXQAAkkoBDADA/6qoqCi4+OKLLywsLCxPy5nGjx8fs2bNEi4A7CCzZs2Khx56KDXnKSwsrPj1r399QUVFhZ+bAQCQSC5kAQD4XxMnThxdWVk5OC3nef7552PixImCBYAd7LHHHosXXnghNeeprKzc89FHHz1RsgAAJFFh5cDo+lFfaKyKqFmRtSEAgDxxwQUX7DZq1KgLM5lMYRrO8+qrr8Ytt9ySqkdSAkBT/7O3d+/e0a5du1Scp2PHjkNzudxzU6ZMWSddAACamrLO9VHwMc/wcwcwAADRt2/f4h//+McXZzKZVPwG4HvvvRc33HBDNDY2ChcAdpKGhoa47rrrYtmyZak4T0FBQfbss88e27dv32LpAgCQqGtZKwAAYPz48T8qKyvrkYazbNiwIX7/+99HbW2tYAFgJ9u0aVP8/ve/j40bN6biPGVlZb3GjRs3RrIAACSJAhgAIM/ddNNNw/v06XN8Gs5SX18f1157baxdu1awALCLrFmzJq699tqor69PxXn69ev3jd///vdDJQsAQFIogAEA8thBBx1Uceyxx/5rRGTScJ477rgjFi9eLFgA2MUWLVoUd955Z1qOU/CNb3zj34YNG9ZcsgAAJOIC1goAAPLXzTfffFZxcXG7NJxl4sSJMX36dKECQBMxbdq0mDRpUirOUlJS0unOO+88Q6oAACSBAhgAIE/913/914FdunT5UhrO8tprr8Wf//xnoQJAEzN+/PhYsGBBKs7SrVu3o2+66abhUgUAoKlTAAMA5KEvfelLlV/5yld+lYazrFixIq6//vpobGwULAA0MY2NjXHdddfFihUr0nCczHHHHfergw46qEKyAAA0ZQpgAIA8dPXVV5+ezWYrk36OmpqauPbaa2PTpk1CBYAmatOmTXHttddGTU1N4s+SzWbb3njjjT+RKgAATZkCGAAgz9x6663Du3Tp8uWknyOXy8Utt9wSK1euFCoANHErV66MW2+9NXK5XOLP4lHQAAA0dQpgAIA8MnTo0LKvfvWrv0jDWSZMmBBz584VKgAkxJw5c+Kxxx5LxVlGjRr1i6FDh5ZJFQCApkgBDACQR+64444fFRcXd0z6OV5++eV45JFHBAoACfPQQw+l4he4SkpKOt5xxx0/lCgAAE2RAhgAIE9cfvnlu/fs2XNU0s/xwQcfxB133JGKR0gCQL7J5XJx2223xZo1axJ/lp49ex57+eWX7y5VAACaGgUwAEAe6NatW/a73/3uv2YymURf/9XX18cNN9wQ1dXVQgWAhKqqqoobb7wx6uvrE32OTCZT8N3vfvdX3bp1y0oVAICmRAEMAJAHxo8ff0pZWVmvpJ/jnnvuiaVLlwoUABJuyZIlcd999yX+HGVlZT3Hjx9/ikQBAGhKFMAAACn385//vOeAAQNGJ/0c06dPjylTpggUAFJi8uTJMWPGjMSfY8CAAaN//vOf95QoAABNhQIYACDFstls5qyzzjo3k8kk+tGEK1asiLvvvlugAJAyd911V6xYsSLRZ8hkMtmzzjrr3Gw2m5EoAABNgQIYACDFxo0b98XKysq9knyG2trauOGGG6K2tlagAJAyf/1zfvPmzYk+R2Vl5V7jxo0bKVEAAJoCBTAAQEoNHz68/OCDDz4t6ee4//77Y/ny5QIFgJRavnx5jBs3LvHnGDFixI+HDRvWXKIAAOxqCmAAgJS69dZbT8tms22TfIYZM2bEc889J0wASLnJkyfHzJkzE32G4uLitrfffvtp0gQAYFdTAAMApNBVV121R48ePb6S5DOsXLky7rrrLmECQJ64++6744MPPkj0GXr27PnVK664Yg9pAgCwKymAAQBSprS0tOAb3/jGT5N8rdfY2Bi333679/4CQB6pqamJ2267LRobG5N8jIJvfvObZ5aWlvqZGwAAu+6i1AoAANJlwoQJX6uoqBiQ5DOMHz8+Fi1aJEwAyDNvvvlmPPjgg4k+Q4sWLQY9+OCDx0gTAIBdRQEMAJAiRx55ZOWwYcN+kOQzzJ07N5544glhAkCemjhxYixYsCDRZxg+fPiPjjjiiJbSBABgV1AAAwCkyBVXXHFyUVFRRVLnr6qqijvvvDNyuZwwASBP5XK5uP3226O6ujqxZygqKmrxm9/85mRpAgCwKyiAAQBS4vzzz+/Xu3fv45J8httvvz0+/PBDYQJAnlu3bl3cfvvtiT5D7969jz///PP7SRMAgJ1NAQwAkALZbDZz6qmn/jyTyST2+m769OkxZ84cYQIAERExe/bsmDFjRmLnz2QyBaeeeurPs9lsRpoAAOxMCmAAgBT44x//eERlZeXgpM6/du3auPfeewUJAPyde+65J9atW5fY+SsrKwf/6U9/+oIkAQDYmRTAAAAJ17dv3+JDDjnkR0k+w9133x01NTXCBAD+Tk1NTdx9992JPsPBBx/8o759+xZLEwCAnUUBDACQcHfdddc3S0pKOiV1/smTJ8e8efMECQB8pLlz58azzz6b2PlLSko63nPPPd+SJAAAO4sCGAAgwb70pS9VDhw48KSkzr9mzZoYP368IAGALXrggQdizZo1iZ2/f//+Jx111FGtJAkAwM6gAAYASLArrrji1MLCwvIkzp7L5eK2226LTZs2CRIA2KJNmzbFbbfdFrlcLpHzFxYWll1++eU/kCQAADuDAhgAIKF+8Ytf9O7evftXkjr/s88+G2+88YYgAYBP5Y033ojnn38+sfN369bt6F/96ld9JAkAwI6mAAYASKgf/vCHP8pkMom8nvvggw/igQceECIAsFXGjRsX69atS+TsmUym4NRTT/2xFAEA2NEUwAAACXTdddcNa9eu3YFJnD2Xy8Udd9wRtbW1ggQAtsqmTZvizjvvTOz8bdq02f+mm27aT5IAAOxICmAAgIQpLS0t+NrXvnZ6Uud/4YUXYuHChYIEALbJq6++GjNmzEjs/Mccc8zpFRUVfiYHAMAO42ITACBhbr/99oMrKip2S+LsGzZsiHHjxgkRAPhM7r///qiqqkrk7OXl5X3/67/+6wgpAgCwoyiAAQASpKKiouCwww47Nanz33vvvYn9YS0A0HRs2LAh7r///sTOf9BBB/1zq1atCiUJAMCOoAAGAEiQ+++//+iysrKeSZx9zpw58dJLLwkRANguXnjhhViwYEEiZy8tLe32xz/+8StSBABgR1AAAwAkRN++fYv33Xfff07i7LW1tXHvvfcKEQDYru6+++6oq6tL5Oz77bffKf379y+RIgAA25sCGAAgIW6++eZRxcXFbZM4+yOPPBJr164VIgCwXa1atSoee+yxRM6ezWbb3njjjV+TIgAA25sCGAAgAYYOHVq21157fSeJs7/33nvxxBNPCBEA2CEmTpwYK1asSOTsQ4YM+c7QoUPLpAgAwPakAAYASIBrr732xKKiosqkzZ3L5eKee+6JxsZGIQIAO0R9fX3cddddkcvlEjd7UVFR5bXXXnuCFAEA2J4UwAAATdwBBxxQMWDAgG8kcfYZM2bEW2+9JUQAYId6880348UXX0zk7AMGDPjG8OHDy6UIAMD2ogAGAGjirrrqqhOKiooqkjb3pk2b4oEHHhAgALBT3H///VFbW5u4uYuKilpcffXV7gIGAGC7UQADADRhBx10UEX//v0Teffvww8/HB9++KEQAYCdYv369TFhwoREzj5w4MBvHHDAARVSBABge1AAAwA0Yf/5n/95bGFhYfOkzb1q1aqYPHmyAAGAnerpp5+O1atXJ27uwsLC8ssuu2yUBAEA2B4UwAAATdQBBxxQMWjQoNFJnP3uu++O+vp6IQIAO1V9fX3cddddiZx99913/+bQoUPLpAgAwGelAAYAaKIuv/zyYwsLC8uTNvfcuXNjwYIFAgQAdokFCxbE3LlzEzd3UVFRi9/97ndflyAAAJ+VAhgAoAkaOnRo2aBBgxL37t+6urr405/+JEAAYJf605/+FHV1dYmbe/fdd//mkCFDSiUIAMBnoQAGAGiCfvOb33ylqKioZdLmfu655xL53j0AIF1Wr14dzz33XOLmLioqann11VcfLUEAAD4LBTAAQBPTq1evZoMHD/5m0uaurq6ORx55RIAAQJPwyCOPRHV1deLmHjJkyLe6deuWlSAAANtKAQwA0MTcdNNNxxQXF7dN2twTJkyIqqoqAQIATUJVVVUifzmtuLi43a233uouYAAAtpkCGACgCWnVqlXhXnvtdVLS5l61alU8++yzAgQAmpTJkyfHqlWrEjf30KFDR7dq1apQggAAbAsFMABAE3LLLbccXlJS0jlpcz/44INRX18vQACgSamvr48HH3wwcXOXlJR0vummmw6VIAAA20IBDADQRGSz2cwBBxzw7aTNvWjRonjppZcECAA0SS+99FIsXrw4cXOPGDHiO9lsNiNBAAC2lgIYAKCJuOaaa/YuLy/vm7S5H3roocjlcgIEAJqkXC6XyLuAy8vL+1111VV7SRAAgK2lAAYAaCK+8pWvfDdpM8+bNy8WLlwoPACgSVu4cGG8+uqrrg8BAMgLCmAAgCbgsssuG1RZWblPkmbO5XIxfvx44QEAifDAAw8k7qklrVu33veSSy7pLz0AALaGAhgAoAkYNWrUCUmbefbs2bFs2TLhAQCJsGzZsnjllVcSN/cJJ5xwovQAANgaCmAAgF3sn//5nzt37NjxiCTN3NjYGA888IDwAIBEGT9+fDQ0NCRq5k6dOn1h9OjRHaQHAMCnpQAGANjFfvSjH30tk8kk6rps2rRpsWrVKuEBAImyatWqeOGFFxI1cyaTKfzpT386SnoAAHxaCmAAgF1o0KBBpX369Plqkmaur6+PCRMmCA8ASKQJEyZEXV1dombu27fvV/r27VssPQAAPg0FMADALnTZZZcdXlRUVJGkmadOnRpr164VHgCQSOvXr48pU6YkauaioqLK3/zmN0dIDwCAT0MBDACwi2Sz2cy+++57UpJmrqurc/cvAJB4jz76aOLuAt5///1PymazGekBAPBJFMAAALvI1VdfPbSsrKx3kmaeMmVKbNiwQXgAQKJt2LAhnn/++UTNXFZW1ueqq67aS3oAAHwSBTAAwC7y5S9/+bgkzVtfXx8TJ04UHACQCo8//nji7gL+0pe+dLzkAAD4JApgAIBdYPTo0R3atm07IkkzT5s2LdatWyc8ACAVPvzww5g+fXqiZm7fvv2I0aNHd5AeAABbogAGANgFfvrTn47KZDKFSZm3vr4+HnnkEcEBAKnyyCOPRH19fWLmzWQyhT/96U+/JjkAALZEAQwAsJN16tQp26dPn6OTNLO7fwGANFq3bl1MmzYtUTP36dPnmE6dOmWlBwDAx1EAAwDsZFddddUB2Wy2dVLmbWxsjEmTJgmOVOvYsWN06OCJmgD5aNKkSdHY2JiYebPZbOurrrrqAMkBAPBxFMAAADvZiBEjvp6keV988cVYtWqV4Ei1Ll26xIUXXhinnXZadO3a1UIA8siqVavipZdecj0JAEBqKIABAHaiM844o3tlZeXeSZk3l8vFxIkTBUdeyGQyMXjw4PjVr34VY8aMcUcwQB55/PHHI5fLJWbeysrKvc8444zukgMA4KMogAEAdqJTTjnlqxGRScq8CxYsiPfee09w5JVMJhN77713XHjhhTFmzJho3769pQCk3HvvvRcLFy5M1B9X/3NdCQAA/4cCGABgJ+nVq1ezXr16fTlJM3v3L/nsr0XwBRdcECeffHK0bdvWUgBSLGnXPb169fpyr169mkkOAIB/pAAGANhJrrjiioOLiopaJmXeBN4JAztEYWFhDB8+PC688MIYPXp0VFZWWgpACi1YsCCWLVuWmHmLiopaXnnllYdIDgCAf6QABgDYSYYPH/6VJM2btHfhwY5WVFQUI0aMiEsuuSRGjx4dLVu2tBSAFMnlcvH4448naub99tvvK5IDAOAfKYABAHaC0aNHd6isrByalHnXrl0bL7/8suDgI/y1CL744ovjhBNOiBYtWlgKQEq89NJLsW7dusTMW1lZudfo0aM7SA4AgL+lAAYA2AlOP/30o5J07fXMM89EQ0OD4GALiouL47DDDouxY8fGqFGjoqyszFIAEq6hoSGeeeaZJI1c8D/XmQAA8P8vEq0AAGDHymazmX79+n05KfPW1tbGlClTBAefUnFxcYwcOTIuvfTSGDVqVJSWlloKQII9//zzUVtbm5h5+/Xr9+VsNpuRHAAAf6UABgDYwX7zm9/sWVJS0jkp886YMSOqq6sFB1uppKQkRo4cGZdcckkcffTRUVJSYikACVRdXR0zZ85M0p8/na+44orBkgMA4K8UwAAAO9gXvvCFLyVl1lwuF08//bTQ4DNo3rx5HHXUUXHJJZfEyJEjI5vNWgpAwjz11FORy+USM++RRx75ZakBAPBXCmAAgB1oyJAhpZ07dz4iKfO+/vrrsWLFCsHBdlBeXh6jRo2KSy+9VBEMkDArVqyI119/PTHzdunS5fD+/ft79AQAABGhAAYA2KHGjh17aGFhYWJeCOruX9j+KioqYtSoUXHxxRfH4YcfHkVFRZYC4LpouyosLGz+H//xHwdLDQCACAUwAMAOteeeex6ZlFnXrl0b8+bNExrsIK1atYrjjz8+LrroohgxYkQUFPh2DKApmzdvXqxZsyYx8+61115HSg0AgAgFMADADnPMMce0bt269b5Jmfe5556LxsZGwcEO1qZNmxg9enRcfPHFimCAJqyxsTGee+65JP35MvyYY45pLTkAAPykAQBgBznzzDMPz2Qyibjeqq+vj6lTpwoNdqK2bdvG6NGj47zzzovhw4crggGaoBdeeCHq6+sTMWsmkyk844wzDpUaAAB+wgAAsIP079//C0mZdc6cObFhwwahwS7QqVOnOPnkk+Pf/u3fYu+9945MJmMpAE3Ehg0bYvbs2YmZd8CAAR4DDQCAAhgAYEf43ve+16mysnKPpMybpMcbQlp17tw5xowZE7/61a8UwQBNyPPPP5+YWSsrKwd/73vf6yQ1AID8pgAGANgBTj755CMiIhHtzcqVK+P1118XGjQRXbt2jTFjxsQ555wTgwcPthCAXez111+PlStXJmXczMknn3y41AAA8psCGABgB+jXr19iHv88ZcqUyOVyQoMmpnfv3nHaaafFOeecE/3797cQgF0kl8vFlClTknQd6jHQAAB5TgEMALCdnX766d0qKip2S8Ks9fX1MW3aNKFBE9anT58466yz4pxzzonddtvNQgB2gWnTpkV9fX0iZq2oqNjt9NNP7yY1AID8pQAGANjORo8efURSZp03b15s3LhRaJAAffr0ibPPPjvOPPPM6Nmzp4UA7EQbN26MefPmuR4FACARFMAAANtZr169EvPetSQ9zhD4bwMGDIhf/vKXceaZZ0b37t0tBGAnmTp1apKuRw+TGABA/lIAAwBsR2eccUb38vLyvkmYdf369fHaa68JDRJqwIAB8S//8i9x2mmnRbdunvQJsKPNnz8/Pvzww0TMWl5e3u9HP/pRF6kBAOQnBTAAwHZ03HHHHZSUWWfMmBGNjY1CgwTLZDIxePDg+Nd//dcYM2ZMdOjQwVIAdpDGxsaYMWNGYub9xje+cYjUAADykwIYAGA76tOnz8FJmDOXyyXqMYbAlmUymdh7773jwgsvjDFjxkT79u0tBWAHeOGFF5J0XXqIxAAA8pMCGABgOznppJPat2zZcvckzLpkyZJYuXKl0CBl/loEX3DBBXHyySdH27ZtLQVgO1qxYkW8/fbbiZi1srJy0PHHH+8PAgCAPKQABgDYTr773e8eGBGZJMyapMcXAluvsLAwhg8fHhdeeGGMHj06KisrLQVgO5k+fXpSRi34/ve/f6DEAADyjwIYAGA72X333Q9Nwpz19fUxc+ZMgUEeKCoqihEjRsQll1wSo0ePjpYtW1oKwGc0c+bMqK+vT8SsAwcOPFRiAAD5RwEMALAdHHTQQRUtW7bcKwmzLly4MKqrq4UGeeSvRfDFF18cJ5xwQrRo0cJSALZRVVVVvP7664mYtVWrVkOHDx9eLjUAgPyiAAYA2A7OPvvsz2cymaIkzOrxz5C/iouL47DDDouxY8fGqFGjoqyszFIAtkFSnqaSyWSy55577uclBgCQXxTAAADbwe67735AEuasra2NOXPmCAzyXHFxcYwcOTIuvfRSRTDANpg9e3bU1dUlYtY99tjjAIkBAOQXBTAAwGfUqlWrwnbt2u2fhFnnzZsXtbW1QgMiIqKkpCRGjhwZY8eOjaOPPjpKSkosBeBT2LRpU8ybNy8Rs7Zv337/iooKPwMEAMgjLv4AAD6jCy+8cPeioqKKJMz64osvCgz4P5o3bx5HHXVUXHLJJTFy5MjIZrOWAvAJZs2alYg5i4qKWlx88cWDJAYAkD8UwAAAn9GBBx6YiMfqVVdXJ+ZOFWDXKC8vj1GjRsWll16qCAb4BPPmzYuamppEzHrQQQd5DDQAQB5RAAMAfEZdu3YdnoQ5582bF/X19QIDPlFFRUWMGjUqLr744jj88MOjqKjIUgD+QV1dXbz66quJmLVLly77SwwAIH8ogAEAPoNTTjmlY3l5+W5JmPXll18WGLBVWrVqFccff3xcdNFFMWLEiCgo8C0kwN966aWXEjFnRUXFbieddFJ7iQEA5AffvQMAfAYnnnji55MwZ21tbcyfP19gwDZp06ZNjB49OsaOHasIBvgb8+fPj9ra2iSMmvnud7/7eYkBAOQH37UDAHwGn/vc5/ZLwpwLFy6Muro6gQGfyV+L4PPOOy+GDx+uCAby3ubNm2PhwoWJmLVfv37DJQYAkB98tw4AsI1atWpV2Lp1672TMKvHPwPbU6dOneLkk0+Oc889NwYNGmQhQF6bPXt2IuZs06bN3hUVFX4WCACQB1z0AQBso/PPP39gYWFheVOfs76+PubMmSMwYLvr2bNn/OQnP4nzzjsv9t5778hkMpYC5J3Zs2dHfX19k5+zqKio4vzzzx8oMQCA9FMAAwBso/3333/fJMz5+uuvR01NjcCAHaZLly4xZsyYOOecc2Lw4MEWAuSV6urqeOONNxIx64EHHriPxAAA0k8BDACwjbp27ZqIxz/PnTtXWMBO0bt37zjttNPinHPOif79+1sIkDeScr3VvXv3vaUFAJB+CmAAgG0wZMiQ0srKyj2a+py5XM7jn4Gdrk+fPnHWWWfFOeecE7vttpuFAKk3e/bsyOVyTX7Oli1b7jlo0KBSiQEApJsCGABgG5x55pl7ZjKZbFOfc9myZbFu3TqBAbtEnz594uyzz44zzzwzevbsaSFAaq1bty6WL1/e5OfMZDLZs846a4jEAADSrcgKAAC23tChQ4clYc558+YJC9jlBgwYEAMGDIgFCxbE+PHjY+nSpZYCpM68efOiS5cuTX7OffbZZ5+ImC4xAID0cgcwAMA26Nix4z5JmHP+/PnCApqMAQMGxC9/+cs47bTTolu3bhYCpEpSrrs6deq0j7QAANJNAQwAsJWOOOKIlhUVFf2a+pxVVVWxaNEigQFNSiaTicGDB8e//uu/xpgxY6JDhw6WAqTCW2+9FVVVVU1+zoqKis8deuihLSQGAJBeCmAAgK108sknD46ITFOfc/78+dHY2CgwoEnKZDKx9957x4UXXhhjxoyJ9u3bWwqQaI2NjbFgwYJE/Cv4u9/97h4SAwBILwUwAMBW2n333fdMwpze/wskwV+L4AsuuCBOPvnkaNu2raUAiZWU66/BgwfvKS0AgPQqsgIAgK3Trl27wU19xlwul5Q7UAAiIqKwsDCGDx8e++yzT0ybNi0mTJgQ69evtxggURYsWBC5XC4ymab9sJgOHToMlhYAQHq5AxgAYCsMGjSotGXLlgOa+pzvvfdebNy4UWBA4hQVFcWIESPikksuidGjR0fLli0tBUiMDz/8MJYtW9bk52zZsuXA/v37l0gMACCdFMAAAFvhxz/+8aBMJtPkn6Li7l8g6f5aBI8dOzZOOOGEaNGihaUAibBw4cImP2Mmk8n+5Cc/GSAtAIB0UgADAGyFvffee88kzJmEHzwCfBrNmjWLww47LMaOHRujRo2KsrIySwGatKT8Il5SrmsBANh63gEMALAVunbtOqSpz1hfXx9vvvmmsIBUKS4ujpEjR8bBBx8czz77bDz++ONRXV1tMUCT8+abb0Z9fX0UFTXtH7t16dJlT2kBAKSTO4ABAD6lioqKgoqKikFNfc4lS5bE5s2bBQakUklJSYwcOTLGjh0bRx99dJSUeIUl0LTU1tbG0qVLm/ycLVu2HFRaWupngwAAKeQiDwDgUzr77LP7FhYWNvlnj7722mvCAlKvefPmcdRRR8Ull1wSI0eOjGbNmlkK4HpsKxQWFpafffbZvaQFAJA+CmAAgE9p//3375+EOV9//XVhAXmjvLw8Ro0aFf/+7/8eI0eOjGw2aymA67FP6fOf//xAaQEApI8CGADgU+rRo8fuTX3G2traePvtt4UF5J2KiooYNWpUXHzxxXH44Yc3+XdvAum2ePHiRLySo1evXoOkBQCQPgpgAIBPqXXr1k3+DoklS5ZEQ0ODsIC81apVqzj++OPj4osvjhEjRkRBgW97gZ2voaEhlixZ0uTnbNOmjQIYACCFfCcMAPApDBkypLR58+a9m/qcb775prAAIqJ169YxevToGDt2rCIYcF32MZo3b95n0KBBpdICAEgX3wEDAHwKp556av9MJtPkr53eeustYQH8jTZt2sTo0aPjvPPOi+HDhyuCAddlfyOTyRT84Ac/+Jy0AADSxXe+AACfwuDBg5v84/Hq6+tj0aJFwgL4CJ06dYqTTz45/u3f/i323nvvyGQylgLsUIsXL07Eqzn23HPPgdICAEgXBTAAwKfQpUuXAU19xnfeeSfq6uqEBbAFnTt3jjFjxiiCgR2utrY23n333SRc53oPMABAyiiAAQA+hZYtW/Zv6jN6/DPAp9elS5cYM2ZMnHvuuTF48GALAfL2+iwJ17kAAGwdBTAAwCcYPnx4eUlJSeemPqfHPwNsvV69esVpp50W55xzTvTvrwMB8u/6rLS0tPPw4cPLpQUAkB4KYACAT/Ctb31rt4ho8s8IXbx4sbAAtlGfPn3irLPOinPOOSd22203CwG2i4T8gl7m29/+dj9pAQCkhwIYAOAT7L777k2+CVi7dm1s2LBBWACfUZ8+feLss8+OM888M3r27GkhwGfy4Ycfxrp165r8nAMHDlQAAwCkSJEVAABsWadOnZr8D8TefvttQQFsRwMGDIgBAwbEggULYvz48bF06VJLAbb5Oq1Vq1audwEA2GkUwAAAn6CyslIBDJCnBgwYEP3794958+bFQw89FO+++66lAFtlyZIlsddeezX1613PvgcASBEFMADAFnTq1CnbvHnzXk19ziVLlggLYAfJZDIxePDg2GOPPeLll1+OBx98MFauXGkxQGqu05o3b967Xbt2RatXr66XGABA8nkHMADAFowZM6ZnJpPJNuUZGxsbPZoUYCfIZDKx9957x4UXXhhjxoyJ9u3bWwrwiZYuXRqNjY1NesaCgoLsqaee2kNaAADp4A5gAIAt2Hvvvfs29RlXrlwZtbW1wgLYSf5aBO+5554xa9asmDBhQqxevdpigI9UW1sb77//fnTu3LlJzzls2LC+EbFIYgAAyecOYACALejRo0eTL4DfeecdQQHsAoWFhTF8+PC48MILY/To0VFZWWkpQGKv15Jw3QsAwKejAAYA2ILWrVs3+ff/vvvuu4IC2IUKCwtjxIgRcckll8To0aOjZcuWlgIk7notCde9AAB8Oh4BDQCwBc2bN+/Z1GdUAAM0kW+wi4pixIgRsd9++8WUKVPiscceiw0bNlgMEO+9914SrnsVwAAAKeEOYACAj9G/f/+SkpKSjk19TgUwQNPSrFmzOOyww2Ls2LExatSoKCsrsxTIc0m4XistLe3Ut2/fYmkBACSfAhgA4GOccMIJ3Zr69dK6deuiqqpKWABNUHFxcYwcOTJ+/etfK4Ihz1VVVcX69eub+pgF3/zmN7tLCwAg+RTAAAAfY8iQIT2b+oxJeJwgQL77axE8duzYOProo6OkpMRSIA8l4botCde/AAB8MgUwAMDH6N69e8+mPqPHPwMkR/PmzeOoo46KSy65JEaOHBnNmjWzFMgjSbhuS8L1LwAAn0wBDADwMVq1atWjqc+4bNkyQQEkTHl5eYwaNSr+/d//PUaOHBnZbNZSIA8k4botCde/AAB8MgUwAMDHqKio6NXUZ1y+fLmgAJL750yMGjUqLr744jj88MOjqKjIUiDFknDd1rJly16SAgBIPgUwAMBHyGazmbKysq5NecbGxsZYtWqVsAASrlWrVnH88cfHxRdfHCNGjIiCAt+qQxqtWrUqGhsbm/SMJSUlXbPZbEZaAADJ5rtKAICPcNxxx7UrKCgobsozrl69Ourr64UFkBKtW7eO0aNHx9ixYxXBkEJ1dXXxwQcfNOkZCwoKio877rh20gIASDbfTQIAfITPf/7zXZr6jO+//76gAFKoTZs2MXr06Dj//PNj+PDhimBIkRUrVrgOBgBgh/NdJP+PvTuPr7I888d/nSwEkhD2HUQEUVRAoIiouCtq64Jabd1arVorbqO2tlXbaavTOu38Rqffdmpbu9rWpYogsqgFRXCttAIKArJDgAAJBLKQ5JzfH8WO4+DOcp6T9/v18jWvTv657ut6hNvnk/t+AICd2G+//bL+xVcSXiAC8PF17do1Lr300rj99ttj2LBhkUq5lRWSLgn7tyTsgwEAeH8FWgAA8H917txZAAxAVujevXtceeWVsXr16njiiSdi9uzZkclkNAYSKAn7tyTsgwEAeH8CYACAnWjXrp0roAHIKj169Igrr7wyli5dGpMmTYo5c+ZoCiRMEvZvSdgHAwDw/gTAAAA7UVxc3D3baxQAAzRPffr0ibFjx8aSJUti/PjxsWDBAk2BhEjC/i0J+2AAAN6fbwADAOxESUlJz2yur7q6Ourq6gwKoBnbb7/94l/+5V/ia1/7WhxwwAEaAglQV1cX1dXV9sEAAOxWAmAAgHc5/PDDSwsKCtpmc40VFRUGBUBERPTt2zduvPHGuOGGG2LffffVEMhy2b6PKygoaDt8+PASkwIASC4BMADAu5x44oldsr3GDRs2GBQA/8uAAQPiG9/4Rtxwww3Ru3dvDQH7uE+yH+5qUgAAyeUbwAAA79KvX7+sD4DXr19vUADs1IABA+LAAw+MuXPnxoQJE2LlypWaAlkkCTe5HHDAAV0i4i3TAgBIJgEwAMC7dO/evXO21+gEMADvJ5VKxaBBg2LgwIExe/bsGD9+fKxbt05jwD4uZ/bDAAC8NwEwAMC7tG/fvlO21ygABuDDSKVSMWzYsBg6dGjMnj07HnvsMbdIwF6WhBPASdgPAwDw3gTAAADv0rp166w/8ZCEF4cAZI+3g+BDDz00XnnllZg4caK/S8A+LtH7YQAA3psAGADgXUpKSrL6xENjY2Ns3rzZoAD4yPLz8+Pwww+P4cOHx/PPPx8TJ06MqqoqjYE9aPPmzdHY2BgFBdn7Wi7b98MAALw/ATAAwLu0bNmySzbXV1lZGZlMxqAA+Njy8/Nj1KhRMXLkyHjhhRcEwbAHZTKZqKqqio4dO9oPAwCwWwiAAQDepaioKKuvvKusrDQkAHaJgoKCGDVqVIwYMSJmzpwZkydPji1btmgM7IH9XDYHwNm+HwYA4P3laQEAwP8YPnx4SX5+fkk21ygABmBXa9GiRRx//PFxxx13xNlnnx0lJSWaAs14P5efn18yfPhwfxAAACSUABgA4B2OOOKIDtleo+//ArC7FBUVxejRo+P73/9+nH322VFcXKwpsBsk4cr1JOyLAQDYOQEwAMA79O3bt1221+gEMAC729tB8B133BGnn356tGrVSlOgme3n9ttvv7YmBQCQTAJgAIB36NSpkwAYAHYoKSmJz3zmM3HnnXfG6NGjo0WLFpoCzWQ/l4R9MQAAOycABgB4hw4dOrTN9hqTcGUgALmlpKQkzj777PjOd74To0aNivz8fE2BHN/PJWFfDADAzgmAAQDeoaysrG221ygABmBvad++fVx00UVx5513xgknnBCFhYWaAjm6nysrK3MCGAAgoQTAAADvUFJS0j6b68tkMlFdXW1QAOxV7dq1i/POOy+++93vxqhRoyIvz+sF+CiSsJ8rLS0VAAMAJJT/QgMAeIfi4uK22VxfXV1dNDY2GhQAWeHtE8F33HGHIBg+gsbGxqirq7MvBgBgt/BfZgAA79CqVausPung9C8A2ahDhw5x0UUXxbe//e04/PDDBcGQA/u6oqIiJ4ABABLKf5EBALxDQUGBABgAPqauXbvGpZdeGt/61rdi2LBhkUqlNAUSuq9r0aJFW1MCAEimAi0AAPgfhYWFZdlc39atWw0JgKzXrVu3uPLKK2P16tXxxBNPxOzZsyOTyWgMJGhfl+37YgAA3psAGADgnZujgoLW2VyfE8AAJEmPHj3iyiuvjKVLl8akSZNizpw5mgIJ2ddl+74YAID35gpoAIAdWrdunZefn98ym2sUAAOQRH369ImxY8fGLbfcEgMGDNAQSMC+Lj8/v1WrVq28OwQASCCbOACAHQYNGlQSEVn9scJt27YZFACJtd9++8UNN9wQX/va1+KAAw7QEJq1BOzr8gYPHlxsUgAAySMABgDY4YADDijJ9hpramoMCoDE69u3b9x4441xww03xL777qshNEu1tbVZX2P//v1LTQoAIHl8AxgAYIeePXtm/QuuJLwoBIAPa8CAATFgwICYP39+jBs3LpYvX64pNBtJ2Nf16NGjxKQAAJJHAAwAsEOnTp0EwACwFwwYMCAOPPDAmDt3bkyYMCFWrlypKeS8JOzrunbtKgAGAEggATAAwA5lZWVZ/4Krrq7OoADISalUKgYNGhQDBw6M2bNnx4QJE2Lt2rUaQ85KQgDcpk0bV0ADACSQABgAYIeysjIngAFgL0ulUjFs2LAYOnRozJ49O8aPHx/r1q3TGHKOABgAgN1FAAwAsENJSUlxttfoBDAAzcXbQfCQIUPi5ZdfjokTJ0ZFRYXGkDOSEAAnYX8MAMD/JQAGANihqKioKNtrrKmpMSgAmpW8vLw4/PDDY/jw4fH888/HE088EZWVlRpD4iUhAG7RokWRSQEAJI8AGABgh8LCwhbZXF86nY7t27cbFADNUn5+fowaNSpGjhwZL7zwQkycODGqqqo0hsTavn17ZDKZSKVSWVtjixYtWpgUAEDyCIABAHbI9gC4oaHBkABo9goKCmLUqFExYsSImDlzZkyePDm2bNmiMSROJpOJhoaGyOaMtbCw0AlgAIAk/neTFgAA7NgYFRRk9QuuxsZGQwKAHVq0aBHHH398HHnkkfHMM8/E1KlTY9u2bRpDomR7AJzt+2MAAN5jH6cFAAA7NkZZ/oLL9c8A8H8VFRXF6NGj49hjj41nnnkmpkyZEjU1NRpDImT7DS8FBQWugAYASCABMADA2xujLH/B5QpoAHhvbwfBRx11VEyfPj2efvrpqK2t1RiymgAYAIDdIU8LAAD+QQAMAMlXUlISn/nMZ+LOO++M0aNHZ/X1uiAABgBgdxAAAwDskO1XQAuAAeDDKykpibPPPjv+7d/+LUaPHh2FhYWagv3dR5Sfn9/SlAAAkkcADADw9sYoL88JYADIMa1bt46zzz47vve978UJJ5wgCMb+7iPIz8/3LwwAQAIJgAEAdkilUlm9N2psbDQkAPiY2rVrF+edd15897vfjRNOOCEKCgo0Bfu7D94f55sSAEDyCIABAHbI9gA4nU4bEgB8Qu3bt/9nEDxq1KjIy/NqBPu799kfp0wJACB5/FcOAMAOXnABQPPRoUOHuOiii+J73/ueIJi9JpPJZHuJ/sUAAEggmzgAgP+R1QFwAl4QAkDidOzYMS666KL41re+FYcffnj4fTDs796xOc7yG3IAANg5mzgAgITsjQTAALD7dOvWLS699NL41re+FcOGDRMEs0dk+xXQeXl5/kUAAEigAi0AAPiHbH/BJQAGgN2ve/fuceWVV8ayZcviiSeeiDlz5mgKzXl/5/AIAEACCYABAHbIZDJOAAMAERGx7777xtixY2PJkiUxYcKEmD9/vqZgfwwAQCIIgAEA/ocr7gCA/2W//faLG264Id56660YP358vPnmm5rCLpPtV0Cn3IUOAJBIAmAAgB2y/QVXtr8gBIBc1rdv37jxxhvjrbfeinHjxsWiRYs0hU/MFdAAANjEAQDsXln9Bs4BDADY+/r27Rs333xz3HDDDdG7d28NIdf3d75BAgCQQE4AAwDskO0nMATAAJA9BgwYEAMGDIj58+fHI488EitXrtQUcnF/5woaAIAEcgIYAGCHVCqVzvL6DAkAssyAAQPi1ltvjbFjx0bPnj01hJza32UScEc1AAD/lxPAAAD/QwAMAHysv6MHDRoUBx98cDz//PMxadKk2LRpk8aQ+P1dtv+CJAAAO+cEMADADul0dr/fEgADQHarr6+PioqK2LZtm2aQE/u7dDrtBDAAQAI5AQwA8D+cAAYAPrK6urp4+umnY9q0acJfcm1/5wQwAEACCYABAP6HEw4AwIfW0NAQ06ZNiyeffDK2bt2qIXxkCfgGsAAYACCBBMAAADtkMpmsDoDz8ny9AwCywdvB71NPPRXV1dUaQs7u7wTAAADJJAAGANgh219wCYABYO9qbGyMGTNmxJNPPhmVlZUawieWn5+f9VtkUwIASB4BMADADplMpiGb6yssLDQkANgL0ul0zJo1KyZPnhwbN27UEHaZgoLsfjXX1NTUaEoAAAncZ2oBAMA/NDY2bs/m+gTAALBnpdPpePnll2Py5Mmxdu1aDWGXa9GiRbb/O1BvSgAAySMABgDYoampSQAMAEQmk4nZs2fH448/HuXl5RpCs93fNTY2CoABABJIAAwAsENDQ0NWv+ASAAPA7vV28PvEE0/E6tWrNYTdLtuvgM72G3IAAHiPfaYWAAD8gyugAaD5mjNnTkyaNCmWLl2qGewx2X4FtAAYACCZBMAAADs0NTU5AQwAzcyCBQtiwoQJ8dZbb2kG9nfv0tDQIAAGAEggATAAwA7Z/oJLAAwAu87ChQtj/PjxsXjxYs1gr8n2K6Cz/RckAQB4j32mFgAA/EO2B8AFBQWRl5cX6XTasADgY1q+fHmMGzcu5s+frxnsVXl5eVkfAG/fvt0JYACABBIAAwDs0NDQkPUnHFq1ahXbtm0zLAD4iFauXBmPPPKI4Jes2tclYH8sAAYASCABMADADrW1tXXZXqMAGAA+mnXr1sX48eNj9uzZkclkNISs2tdlu7q6ulqTAgBIHgEwAMAOW7du3ZrtNSbhRSEAZIP169fHY489JvjFvu4TqK6u3mpSAADJIwAGANihqqpKAAwACbdhw4Z4/PHH45VXXommpiYNwb7uE6isrHT1DABAAgmAAQB22LRpU9a/4GrZsqVBAcBOVFVVxcSJE+OFF16IxsZGDSHrJSEA3rRpkxPAAAAJJAAGANhh3bp1WR8AOwEMAP/bli1bYsKECYJfEicJ+7ry8nIBMABAAgmAAQB2WLZsmSugASAhqqurY/LkyTFz5syor6/XEBInCfu6pUuXCoABABJIAAwAsMP8+fOz/gRwcXGxQQHQrNXU1MSUKVPimWeeEfySaEnY173++uu+AQwAkEACYACAHRYsWFCXyWQaUqlUYbbW2Lp1a4MCoFmqq6uLp59+OqZNmxbbtsmkSL5s39el0+mGpUuXbjcpAIDkEQADALxDU1PTtoKCgrbZWp8AGIDmZvv27TF9+vR48sknY+tWt9GSO7J9X9fU1ORfOACAhBIAAwC8Q0NDw9ZsDoBLS0sNCYDm8ndyTJs2LZ566qmorq7WEHJOtu/rGhsb/YsHAJBQAmAAgHeor6+vbNWqVc9src8JYAByXWNjY8yYMSOefPLJqKys1BByVrbv6+rr66tMCQAgmQTAAADv0NDQkNVvmgXAAOSqdDods2bNismTJ8fGjRs1hJyX7fu6bN8XAwDw3gTAAADvUFdXV5XN9ZWWlkYqlYpMJmNYAOSETCYTr732Wjz++OOxatUqDaFZSKVSUVJSktU11tbWVpkUAEAyCYABAN5h27Ztm7K5vvz8/GjVqlXU1NQYFgCJlslkYvbs2fH4449HeXm5htCstGrVKvLz87O6xq1btzoBDACQUAJgAIB3qK6u3pztNZaVlQmAAUist4PfiRMnxpo1azSEZqmsrCzra9y2bVuVSQEAJJMAGADgHaqqqjZle43t2rWLtWvXGhYAiTNnzpyYNGlSLF26VDNo1tq1a5f1NW7atMkJYACALNbQWBgFjQ0REZFKRSavMJre/pkAGADgHSoqKqqyvcYkvDAEgHdasGBBTJgwId566y3NgITs5zZs2CAABgDIYoUFDf9MejMRqab0/+S+AmAAgHdYtWpV1r/oatu2rUEBkAgLFy6M8ePHx+LFizUD3iEJAfDq1aurTAoAIJkEwAAA77BgwYKsD4CdAAYg2y1fvjzGjRsX8+fP1wzYiST8Ql8S9sUAAOycABgA4B2eeOKJjZlMpimVSuVna41OAAOQrVauXBmPPPKI4Bc+QLb/Ql8mk2l64oknNpoUAEAyCYABAN6huro6vX379g1FRUVdsrVGJ4AByDZr166NCRMmxOzZsyOTyWgIJHw/t3379g3V1dVpkwIASCYBMADAu9TV1a0XAAPAB1u/fn089thjgl/Isf1cXV3delMCAEguATAAwLvU1dVVtGnTJmvrKykpiRYtWsT27dsNC4C9oqKiIiZOnBivvPJKNDU1aQh8BEVFRVFcXJz1+2GTAgBILgEwAMC7bN26dV2XLll7ADhSqVR07Ngx1qxZY1gA7FFVVVUxceLEeP755wW/8DF17NgxUqlU1u+HTQoAILkEwAAA71JVVZX1Jx46deokAAZgj9m8eXM8/vjj8cILL0RjY6OGwCfcx9kPAwCwOwmAAQDeZf369Vn/zbMkvDgEIPm2bNkSU6ZMiZkzZ0Z9fb2GwC7QsWNH+2EAAHYrATAAwLusXr066088JOHFIQDJVVNTE1OmTIlnnnlG8Au7WBJ+kW/VqlUCYACABBMAAwC8y9///ves/+aZABiA3aG2tjYmT54czz77bNTV1WkINNN93KuvvioABgBIMAEwAMC7PPzww+t//OMfN6RSqcJsrbFz584GBcAus3379pg+fXpMnTo1tm3bpiGwG2X7CeB0Ot3w8MMPC4ABABJMAAwA8C7V1dXpurq68latWu2TrTV26NAh8vLyIp1OGxgAH1tDQ0NMmzYtnnrqqaiurtYQ2M3y8vKiQ4cOWV1jfX39mtraWptMAIAEEwADAOxEbW3tmmwOgAsKCqJdu3axceNGwwLgI2tsbIwZM2bEk08+GZWVlRoCe0j79u2joCC7X8fV1NSUmxQAQLIJgAEAdmLz5s2r2rdvn9U1duvWTQAMwEeSTqdj1qxZMXnyZH+HwF7av2W7LVu2rDQpAIBkEwADAOzEpk2bVvfp0yera+zWrVvMmzfPsAD4QG8Hv1OmTIkNGzZoCOzF/Vu227BhwxqTAgBINgEwAMBOrFixYvWwYcOyusYkvEAEYO/KZDLx0ksvxZQpU6K83K2usLd17do162tctWrVKpMCAEg2ATAAwE7Mnz9/9ZgxY7K6xiS8QARg78hkMjF79uyYOHFirFnjMB9kiyT8At+8efP8oQEAkHACYACAnRg3btyab37zm5mISGVrjU4AA7Azc+bMiSeeeCKWLVumGZBlEvALfJlx48atNikAgGQTAAMA7MTrr79e29DQsKmwsLBDttZYXFwcZWVlsWXLFgMDIBYsWBDjx4+PJUuWaAZkobKysiguLs7qGhsaGjYuWLCgzrQAAJJNAAwA8B62bt26vF27dh2yucauXbsKgAGauYULF8b48eNj8eLFmgFZLAm3t2zbtm25SQEAJJ8AGADgPVRVVS1t167d0GyusWfPnrFw4ULDAmiGli1bFo899ljMnz9fMyABevbsmfU1VlZWLjUpAIDkEwADALyHdevWLevTp09W15iEF4kA7ForVqyIRx99VPALCZOEfdvatWuXmRQAQPIJgAEA3sPChQuXHX744VldY69evQwKoJlYtWpVjB8/PubOnRuZTEZDIGGSsG9buHDhMpMCAEg+ATAAwHuYNm3a0ksuuSSra+zevXvk5+dHU1OTgQHkqHXr1sX48eNj9uzZgl9IqIKCgkR8A/jpp59eZloAADmw/9QCAICde+ihhzbcd999W/Pz80uzdjNXUBBdunSJNWvWGBhAjqmoqIiJEyfGyy+/HOl0WkMgwbp27RoFBdn9Gq6xsbH6kUce2WBaAADJJwAGAHgf27ZtW15WVnZwNtfYq1cvATBADqmqqoqJEyfG888/74YHyBFJ+P7vtm3blpsUAEBuEAADALyPLVu2LMv2ALhnz57x0ksvGRZAwm3evDkef/zxeOGFF6KxsVFDIIck4fu/W7ZsWWpSAAC5QQAMAPA+1q9fvyzbT2z06NHDoAASbMuWLTFlypSYOXNm1NfXawjkoCTs19avX7/MpAAAcoMAGADgfSxYsGDh0KFDs7rGfffdN1KpVGQyGQMDSJCampqYMmVKPPPMM4JfyGGpVCr23XffrK9z/vz5C00LACA3CIABAN7Ho48++uYFF1yQ1TWWlJRE586dY926dQYGkAC1tbUxefLkePbZZ6Ourk5DIMd17do1WrVqlfV1/vnPf15kWgAAuUEADADwPiZNmlRVX1+/oaioqGM217nvvvsKgAGy3Pbt22P69OkxderU2LZtm4ZAM9GnT5+sr7G+vr7iySefrDItAIDcIAAGAPgAW7duXZTtAXCfPn3ipZdeMiyALNTQ0BDTpk2Lp556KqqrqzUEmpkkXP+8detWp38BAHKIABgA4ANUVFQs7NChw8hsrjEJLxYBmpvGxsaYMWNGPPnkk1FZWakh0EwlYZ9WUVHh+78AADlEAAwA8AGWLl266MADD8zqGnv16hUFBQXR2NhoYAB7WTqdjlmzZsWkSZNi06ZNGgLNWGFhYfTs2TMR+13TAgDIHQJgAIAPMHPmzEWnnnpqdm/qCgqiZ8+esWzZMgMD2EveDn4nT54cGzdu1BAg9tlnn8jPz0/CfnexaQEA5I48LQAAeH+//OUvV6bT6bpsr7NPnz6GBbAXZDKZePHFF+O73/1u3H///cJf4J+ScP1zOp2u++Uvf7nStAAAcocTwAAAH6C6ujpdXV29uE2bNodkc539+vWL6dOnGxjAHpLJZGL27NkxceLEWLNmjYYAO92fJWCvu7i6ujptWgAAuUMADADwIWzYsGFetgfA/fv3NyiAPeTVV1+NSZMmxapVqzQD2KlUKpWI/dmGDRvmmhYAQG4RAAMAfAiLFy9+o2/fvlldY1lZWXTu3DnWr19vYAC7yYIFC2L8+PGxZMkSzQDeV5cuXaK0tDQJ+9z5pgUAkFsEwAAAH8JTTz31+ujRo7O+zv33318ADLAbLFy4MMaPHx+LFy/WDOBD78uSYMqUKa+bFgBAbsnTAgCAD/aLX/xiTWNjY1W215mUF40ASbFs2bK4++674z/+4z+Ev8BHkoTv/zY0NFTee++9q00LACC3OAEMAPAhNDQ0ZDZv3jy/Q4cOI7O5TgEwwK6xYsWKePTRR2P+fDejArm7L9uyZYs/5AAAcpAAGADgQ1q3bl3WB8AdO3aMNm3axObNmw0M4GNYtWpVjB8/PubOnRuZTEZDgI+lbdu20aFDh0Tsb00LACD3CIABAD6kefPmzTvooIOyvs4DDzwwXnrpJQMD+AjWrVsX48ePj9mzZwt+gV2yH0uCuXPnzjMtAIDcIwAGAPiQ/vznP88/77zzsr7OAw44QAAM8CFVVFTEuHHjBL/ALt+PJcHDDz/sBDAAQA4SAAMAfEgTJ06srK2tXdGqVat9srnOgw8+2LAAPkBVVVVMnDgxnn/++WhqatIQYJdKwq0xNTU1yydNmlRlWgAAuUcADADwEWzYsOHvvXr1yuoAuG3bttG1a9dYu3atgQG8y+bNm+Pxxx+PF154IRobGzUE2OW6desWbdu2TcS+1rQAAHKTABgA4CNYuHDha7169Toj2+scMGCAABjgHbZs2RJTpkyJ5557LrZv364hwG6TlO//Lly48O+mBQCQmwTAAAAfwcSJE/9+wgknZH2dBx54YEyfPt3AgGavpqYmpkyZEs8880zU19drCLDbDRgwIBF1jh8//u+mBQCQmwTAAAAfwb333rv6Bz/4wfqioqLO2VznAQccEHl5eZFOpw0NaJZqa2tj8uTJ8eyzz0ZdXZ2GAHtEXl5e9O/fP+vrrK+vX3ffffeVmxgAQG4SAAMAfESVlZVzu3btmtXHgFu1ahX77LNPLFu2zMCAZqWuri6efvrpmDZtWmzbtk1DgD1qn332iVatWmV9nZs2bZpjWgAAuUsADADwES1dunR2tgfAERGDBg0SAAPNRkNDQ0ybNi2eeuqpqK6u1hBgr+2/kuCtt976m2kBAOQuATAAwEc0ffr0v48cOTLr6xw4cGBMmDDBwICc1tDQEM8991w8+eSTUVlZqSHAXt9/JcG0adP+bloAALlLAAwA8BH9x3/8x9JbbrmlOj8/v3U219mrV68oKyuLLVu2GBqQc9LpdMyaNSsmTZoUmzZt0hBgrysrK4tevXplfZ2NjY1b7rnnnmUmBgCQuwTAAAAfUW1tbXrDhg1/7dKly3HZXGcqlYqBAwfGrFmzDA3IGW8Hv5MnT46NGzdqCJA1Bg4cGKlUKuvr3Lhx4yu1tbVpEwMAyF0CYACAj+Gtt956JdsD4IgQAAM5I51Ox8svvxxTpkyJ8vJyDQGyct+VBIsWLXrFtAAAcpsAGADgYxg/fvwrRxxxRNbXedBBB0VBQUE0NjYaGpBImUwmZs+eHRMnTow1a9ZoCJCVCgoK4qCDDkpErY888ogAGAAgx+VpAQDAR/fjH/94ZX19/fpsr7OoqCj69etnYEAivfrqq3HHHXfEz3/+c+EvkNX69esXRUVFWV9nXV1d+b333rvaxAAAcpsTwAAAH9OGDRte6dGjx6ezvc5BgwbFggULDAxIjCVLlsSECRNi/vz5mgEkwuDBgxNR5/r1653+BQBoBgTAAAAf07x5815OQgA8bNiwePjhhyOTyRgakNXefPPNmDBhQixevFgzgMRIpVIxdOjQRNQ6d+7cl0wMACD3CYABAD6m++677+XRo0dnIiKVzXW2bds2evfuHcuWLTM0ICstW7YsHnvsMSd+gUTq06dPtG3bNgmlpu+9996/mhgAQO4TAAMAfEwTJ06s3Lp165LS0tK+2V7rkCFDBMBA1lmxYkU8+uijgl8g0YYMGZKIOqurqxc+/fTTm00MACD3CYABAD6B8vLyl/fff/+sD4AHDx4c48aNMzAgK6xcuTImTJgQc+fOdT09kHhJ+f7vmjVrfP8XAKCZEAADAHwCM2fOfG7//ff/fLbX2a1bt+jWrVuUl5cbGrDXrFu3LsaPHx+zZ88W/AI5oWfPntGlS5dE1DpjxoznTAwAoHkQAAMAfAK33Xbba5dcckl1fn5+62yvdciQIQJgYK9Yv359PPbYY4JfIOck5frnxsbGzbfddts8EwMAaB4EwAAAn0BlZWXThg0b/tqlS5fjsr3WQw89NCZNmmRowJ78MzKeeOKJeP7556OpqUlDgJxz6KGHJqLOioqKV6qrq9MmBgDQPAiAAQA+oXnz5s1MQgDcu3dv10ADe0RVVVVMnDgxXnjhhWhsbNQQICd17949evbsmZT9quufAQCakTwtAAD4ZP77v/97VkQk4kTFpz71KQMDdpstW7bEQw89FLfffns899xzwl8gpw0fPjwRdWYymfTdd9/9gokBADQfTgADAHxCkyZNqtqyZcuCsrKyg7K91uHDh8fjjz9uaMAuVVNTE1OmTIlnnnkm6uvrNQTIealUKg477LBE1Lply5bXp0+fvsXUAACaDwEwAMAusHz58lkDBw7M+gC4S5cu0atXr1i5cqWhAZ9YbW1tTJ48OZ599tmoq6vTEKDZ6N27d3Ts2DEx+1QTAwBoXgTAAAC7wLPPPvvCwIEDr0hCrcOGDRMAA59IXV1dPP300zFt2rTYtm2bhgDNzrBhwxJT61/+8pcXTQwAoHnxDWAAgF3g1ltvnV9fX782CbUefvjhkUqlDA34yBoaGmLq1Klx6623xuOPPy78BZqlJF3/XFdXt/rWW29dYGoAAM2LE8AAALtAQ0NDZs2aNc/16dPns9lea7t27aJPnz6xZMkSgwM+7J9xMW3atHjqqaeiurpaQ4Bmbb/99ou2bdsmotbVq1fPNDEAgOZHAAwAsIs8++yz05IQAEdEHHHEEQJg4AOl0+mYNWtWTJo0KTZt2qQhABFx5JFHJqbW6dOnTzMxAIDmxxXQAAC7yC233PJaQ0NDZRJqHT58eLRo0cLQgJ1Kp9Px3HPPxW233Rb333+/8Bdgh6KiovjUpz6ViFobGho23HLLLXNNDQCg+XECGABgF6murk6Xl5c/t88++5yR7bW2bNkyDj300Hj55ZcNDvindDodL7/8ckyZMiXKy8s1BOBdhgwZEkVFRYmodc2aNc/V1tamTQ0AoPkRAAMA7EIvvvjiM0kIgCMiRo4cKQAGIiIik8nE7NmzY+LEibFmzRoNAXif/VNSzJo161kTAwBongTAAAC70O233/7KOeecszU/P78022sdMGBAtG/f3tWu0My9+uqrMWnSpFi1apVmALyPjh07xgEHHJCIWhsbG6u/8Y1v/NXUAACaJwEwAMAutHLlyob169fP6tat2+hsrzWVSsXhhx8ekyZNMjhohubMmROTJ0+OJUuWaAbAh3D44YdHKpVKRK3r16+fVVFR0WhqAADNU54WAADsWq+++mpirts77LDDDAyamTfffDP+/d//PX7yk58IfwE+pFQqFSNGjEhMva+88sozpgYA0Hw5AQwAsIvddNNNz5166qnV+fn5rbO91m7dukX//v1j4cKFBgc5btmyZfHYY4/F/PnzNQPgIzrggAOic+fOiai1sbFxy4033jjL1AAAmi8BMADALrZy5cqG8vLyGT179vx0Euo9+uijBcCQw5YvXx7jxo0T/AJ8wv1SUpSXlz9TXl7eYGoAAM2XABgAYDeYMWPGUxdccEEiAuAhQ4ZE69ato7q62uAgh6xcuTImTJgQc+fOjUwmoyEAH1ObNm3i0EMPTUy9zz777FOmBgDQvPkGMADAbvDVr371lYaGhk1JqLWgoCCOOOIIQ4McsW7duvj5z38ed955Z8yZM0f4C/AJjRw5MvLz8xNRa0NDw8abbrrpVVMDAGjenAAGANgNKisrm1atWjW9T58+5ySh3qOPPjqefPJJQREk2Pr16+Oxxx6L2bNn+3cZYBdJpVIxatSoxNS7cuXKadXV1WmTAwBo3pwABgDYTaZNm5aY6/c6duwYAwYMMDRIoA0bNsSvf/3r+Nd//dd49dVXhb8Au9CAAQOiY8eOian36aefftLUAAAQAAMA7CZf+9rX5tTX11ckpd6jjjrK0CBBqqqq4v77749vf/vb8eKLL0ZTU5OmAOxiRx55ZGJqra+vX/eNb3zjdVMDAMAV0AAAu0ltbW16xYoVT++///6fT0K9hx56aLRt2zaqqqoMD7LYli1bYsqUKfHcc8/F9u3bNQRgN2nbtm0MGTIkMfUuX778qdraWtc/AwDgBDAAwO70xz/+cUJSas3Pz4/jjjvO0CBL1dTUxKOPPhq33XZb/OUvfxH+Auxmxx57bOTn5yel3Myvf/3rCaYGAECEABgAYLe66667llZXV89PSr1HH310tGjRwuAgi7wd/H7jG9+IqVOnRn19vaYA7GYtWrSIo48+OjH1btmy5Y177rlnhckBABDhCmgAgN3u9ddfn3T44YcPSEKtxcXFcdhhh8XMmTMNDvayurq6ePrpp2PatGmxbds2DQHYgw477LAoKSlJTL3z5s17wtQAAHibE8AAALvZ9773vanpdLohKfWecMIJkUqlDA72koaGhpg6dWrceuut8fjjjwt/AfawVCoVJ5xwQmLqTafT27/73e8+ZXIAALzNCWAAgN1s+vTpWyoqKmZ26dIlER/Y7d69e/Tv3z/efPNNw4M9qKGhIaZNmxZPPfVUVFdXawjAXnLAAQdE9+7dE1NvRUXFczNmzPAXBwAA/+QEMADAHjBr1qxEXcuXpFMvkHTpdDqee+65uP322+PRRx8V/gLsZccff3yi6p0xY8YkUwMA4J2cAAYA2AO++tWvvnT66adXFRYWtk1CvQMHDoyOHTvGhg0bDA92k3Q6HbNmzYrJkyfHxo0bNQQgC3Ts2DEGDhyYmHobGhoqb7755pdMDgCAd3ICGABgDygvL29YsWLF1MRsEvPy4sQTTzQ42A3S6XS8+OKL8Z3vfCfuv/9+4S9AFjnppJMiLy85r8tWrFgxpaKiotHkAAB4JwEwAMAe8qtf/erRiMgkpd6jjjoqysrKDA52kUwmE6+++mp873vfi1//+texdu1aTQHIImVlZXHUUUcl6q+W//7v//6zyQEA8G4CYACAPeQ///M/l1dWVv4tKfUWFhbGMcccY3CwC7wd/P785z+PNWvWaAhAFjruuOOioCA5X0urqqqa/dOf/nS1yQEA8G4CYACAPeill14al6R6jzvuuCgqKjI4+JjmzJkTd911V/z85z+P1au9owfIVkVFRYn7xbcXXnhhnMkBALAzBVoAALDnjB079pkFCxZUFhYWtktCvSUlJXHEEUfE9OnTDQ8+gjfffDPGjx8fb731lmYAJMCRRx4ZJSUliam3oaFh0zXXXPOsyQEAsDMCYACAPai8vLxh6dKlE/v3739xUmo+8cQT49lnn410Om2A8AEWLVoUjz32WCxevFgzABIiLy8vTjzxxETVvGTJkifKy8sbTA8AgJ3ucbUAAGDP+u1vfzsxIjJJqbdjx44xdOhQg4P3sXz58rj77rvjRz/6kfAXIGGGDRsWHTp0SFLJmd/85jePmxwAAO9FAAwAsIf953/+5/JNmza9kqSaTz/99EilUoYH77Jy5cr4yU9+Et///vdj/vz5GgKQMHl5eXHGGWckquZNmza9fM8996wwPQAA3osroAEA9oKXXnpp/KmnnnpYUurt2rVrDBkyJGbPnm14EBHr1q2L8ePHx+zZsyOTyWgIQEINHTo0OnfunKiaX3jhhQkmBwDA+xEAAwDsBZdffvkzS5YsWVdUVNQlKTWfccYZ8be//U3YRbO2fv36eOyxxwS/ADkglUrF6aefnqia6+rq1lx22WXTTQ8AgPcjAAYA2AsqKyub5s+f/8ihhx56dVJq7tatm1PANFsbNmyIxx9/PF555ZVoamrSEIAc8KlPfSq6du2aqJrfeOONcdXV1WnTAwDg/fgGMADAXvL1r399XDqdrktSzb4FTHNTVVUV999/f3z729+OF198UfgLkCNSqVR8+tOfTlTN6XS69pvf/OZjpgcAwAdxAhgAYC+ZMWNG9Zo1a/7Ss2fPxLx97N69ewwcODDmzJljgOS0LVu2xIQJE+KFF16IxsZGDQHIMYceemh069YtUTWvXr36qRkzZlSbHgAAH8QJYACAvejXv/71HyMiUR8SPeuss5wCJmdt27YtHn300bjtttviueeeE/4C5KC8vLwYM2ZM0srO/OpXv/qT6QEA8KH2vFoAALD3fP/733+rqqoqUR/V7dGjR3zqU58yPHJKfX19TJ06Nb71rW/F1KlTo76+XlMActSIESOiS5cuiap506ZNf73rrruWmh4AAB+GABgAYC975plnHkpazWeccUbk5dlKkjvmzZsXjz76aGzdulUzAHJYQUFBnH766Ymre9q0aQ+aHgAAH5a3dgAAe9nYsWNn1tfXr01SzZ07d47DDjvM8ACARBk5cmR06NAhUTXX1dWtHjt27POmBwDAhyUABgDYyyorK5tee+21Pyat7jPPPDMKCgoMEABIhBYtWiTy9O/s2bP/UF1dnTZBAAA+LAEwAEAWuOqqqyY0NjZWJanm9u3bx9FHH214AEAiHHfccdGmTZtE1dzQ0LDxiiuumGh6AAB8FAJgAIAssGDBgrqFCxc+lrS6R48eHYWFhQYIAGS1li1bxsknn5y4uhcuXDhu6dKl200QAICPQgAMAJAlvv71r/8pnU7XJqnmtm3bximnnGJ4AEBWO+2006K0tDRRNTc1NdV+7Wtfe8j0AAD4qATAAABZ4umnn968fPnyxF3xN3r06GjXrp0BAgBZqUOHDnH88ccnru5ly5ZNmD59+hYTBADgoxIAAwBkkbvvvvtPmUymKUk1FxYWxumnn254AEBWOvPMMxP3yYpMJtN41113/dH0AAD4OATAAABZ5Be/+MWatWvXTkta3UcccUT06tXLAAGArNK7d+847LDDEld3eXn5X+6///51JggAwMchAAYAyDIPP/zwn5JWcyqVijPPPNPwAICsMmbMmEilUomr+8EHH/yT6QEA8HEJgAEAsszXv/71NzZs2DAraXUPHDgwDj74YAMEALLCoEGDYsCAAYmru6KiYuatt966wAQBAPi4BMAAAFlo3Lhxv01i3WPGjIm8PFtMAGDvysvLizFjxiSy9j//+c+/NUEAAD7RflgLAACyz/XXXz+nqqrqr0mru1evXnHUUUcZIACwVx1zzDHRvXv3xNW9adOmV2666aa5JggAwCchAAYAyFJ/+tOf7k1i3WPGjInS0lIDBAD2ijZt2sRZZ52VyNofeOCBe00QAIBPSgAMAJClbrrpprlJPAVcXFwcZ555pgECAHvFWWedFS1btkxc3Zs2bXrl5ptvnmeCAAB8UgJgAIAsNm7cuF8lse5Ro0ZF7969DRAA2KP69OkTI0eOTGTtjz322K9MEACAXUEADACQxcaOHTu7qqrqb0mrO5VKxfnnnx+pVMoQAYA9tv/4/Oc/n8j9R2Vl5d+uueaav5kiAAC7ggAYACDLTZ069bdJrLtv374xZMgQAwQA9ojDDjsssTeQTJ48+TcmCADAriIABgDIcpdeeumLVVVVryax9s9//vNRXFxsiADAblVaWhrnn39+Imuvqqr66+WXX/6SKQIAsKsIgAEAEuChhx76WRLrLisri9NPP90AAYDd6qyzzoqSkpIklp753e9+91MTBABgVxIAAwAkwA033DB3w4YNs5JY+3HHHRd9+vQxRABgt+jbt28cddRRiay9oqJi1te//vU3TBEAgF1JAAwAkBA///nPfxoR6aTVnUql4vOf/3zk5dl6AgC7Vn5+flx00UWRSqWSWH76F7/4xX+bIgAAu5q3cAAACXHHHXe8tW7duulJrL13795xzDHHGCIAsEudcMIJ0b1790TWXl5e/pc77rjjLVMEAGBXEwADACTI3XfffW8mk2lKYu1nnXVWtG3b1hABgF2iQ4cOcfrppyey9kwm03T33Xf/3BQBANgdBMAAAAlyzz33rCgvL386ibW3bNkyzj33XEMEAHaJc889N1q0aJHI2tesWTP1xz/+8UpTBABgdxAAAwAkzA9/+MOfZzKZhiTWPnz48Bg0aJAhAgCfyKGHHhpDhw5NZO3pdLrhBz/4wS9MEQCA3UUADACQMPfee+/qRYsWPZDU+i+++OIoKSkxSADgY2ndunVcfPHFia1/4cKFf7jvvvvKTRIAgN1FAAwAkECXXXbZrxsaGjYlsfaysjJXQQMAH9u5554bpaWliay9oaFh4+WXX/47UwQAYHcSAAMAJNDs2bNrXn311V8ntf4jjjgiDj74YIMEAD6SwYMHx+GHH57Y+l955ZX7Zs+eXWOSAADsTgJgAICEOueccx6tqalZmtT6L7roomjZsqVBAgAfSsuWLeNzn/tcYuuvqalZMmbMmMdMEgCA3U0ADACQUJWVlU3Tpk37RVLrb9++fZx++ukGCQB8KGeccUa0b98+sfU/+eST91ZXV6dNEgCA3U0ADACQYOedd960qqqqV5Ja/wknnOAqaADgAx188MFx/PHHJ7b+TZs2vXzBBRc8a5IAAOwJAmAAgIT74x//eG9EZJJYeyqVigsuuMBV0ADAe2rZsmVccMEFkUqlkrqEzP333/8zkwQAYE8RAAMAJNzNN988b9WqVU8ktf6OHTsm+nt+AMDudcEFF0THjh0TW/+KFSse//rXv/6GSQIAsKcIgAEAcsCNN974k6ampq1JrX/kyJExdOhQgwQA/pdPfepTMWLEiMTW39TUVH3zzTf/t0kCALAnCYABAHLAxIkTK//+97//KslruPDCC6OsrMwwAYCIiGjTpk18/vOfT/QaZs+efd/EiRMrTRMAgD1JAAwAkCPOPvvsh2pqapYntf7S0tK46KKLDBIAiFQqFV/84hejtLQ0sWuoqal566yzznrYNAEA2NMEwAAAOaKioqJx0qRJP07yGgYPHhwjR440TABo5o444og46KCDEr2GJ5544qeVlZVNpgkAwJ4mAAYAyCGXXHLJzIqKihlJXsMFF1wQ3bp1M0wAaKZ69uyZ+KufKyoqZnzhC1+YZZoAAOwNAmAAgBzzb//2b/ek0+ntSa2/RYsWceWVV0ZhYaFhAkAzU1hYGF/60pcSvQ9Ip9Pb/+3f/u0e0wQAYG8RAAMA5Jh777139aJFix5M8hq6d+8eZ555pmECQDNzxhlnRPfu3RO9hsWLFz947733rjZNAAD2FgEwAEAO+uxnP/vL2traRL94PPHEE2Pw4MGGCQDNxKBBg+Kkk05K9Bpqa2tXn3vuub80TQAA9iYBMABADlq8eHH9uHHj/j3Ja0ilUnHJJZdE27ZtDRQAclybNm3ikksuiVQqleh1jBs37t8XL15cb6IAAOxNAmAAgBx1+eWXv1RRUTEjyWsoLS2NL3zhC4l/GQwAvLe3f+mrdevWiV5HRUXFM5dffvlLJgoAwN4mAAYAyGE33HDDXU1NTVuTvIaDDjrI94ABIId95jOfiUMOOSTRa2hqaqq+4YYbfmiaAABkAwEwAEAOGzdu3MbZs2cn/jt0p5xyiu8BA0AOOuSQQ+LTn/504tfx17/+9efjxo3baKIAAGQDATAAQI77zGc+81B1dfXCJK8hlUrFF7/4xejQoYOBAkCO6NixY3zpS19K/KceNm/ePO+00057xEQBAMgWAmAAgBxXXV2dfuCBB34UEekkr6O4uDguvfTSyMuzhQWApMvPz4/LLrssiouLk76U9P333/+ftbW1aVMFACBbeHsGANAMXH/99XMWLVr0YNLXsf/++8e5555roACQcOedd1707ds38etYuHDhH7/61a++bqIAAGQTATAAQDNxySWX/Lyurq486es4/vjjfQ8YABJs2LBhccwxxyR+HXV1dWsuvPDC+0wUAIBsIwAGAGgmXnvttdoHHnjguxGRSfI6UqlUfOlLX4oePXoYKgAkTO/evePSSy9N/Hd/IyLzwAMPfO/111+vNVUAALKNABgAoBm5+uqr/7Z06dJHk76OoqKiGDt2bJSWlhoqACRE69at46qrrorCwsLEr2X58uXjrr766r+ZKgAA2UgADADQzJx33nn/r66ubnXS19GhQ4e4/PLLIy/PlhYAsl1eXl5cfvnl0b59+8Svpb6+ft0ll1zyE1MFACBr999aAADQvLz++uu1Dz744Pcj4VdBR0QMGDAgzjrrLEMFgCw3ZsyYOPDAA3NiLY899tgPXnnllW2mCgBAthIAAwA0Q1/5ylf+umbNmqm5sJaTTz45Dj30UEMFgCw1ZMiQOOmkk3JiLWvXrv3LpZde+oKpAgCQzQTAAADN1GWXXfYf9fX1FUlfRyqViksvvTS6d+9uqACQZXr06BFf/OIXI5VKJX4tDQ0Nm6655pofmioAANlOAAwA0EzNmDGj+oEHHvhO5MBV0C1btozrr78+2rZta7AAkCXatWsX1113XbRs2TIXlpN56KGH/nXSpElVJgsAQLYTAAMANGNf+cpX/rpkyZI/58Ja2rZtG1dffXW0aNHCYAFgL2vRokVcffXVOfPLWUuXLn30iiuueNlkAQBIAgEwAEAzd+655/6ktrZ2eS6spXfv3jlzzSQAJNXbn2fYZ599cmI9tbW1y88555wfmywAAEkhAAYAaOYWLFhQ97Of/ezbmUymMRfWM2zYsDjllFMMFgD2kk9/+tMxdOjQnFhLJpNp/NnPfvbtBQsW1JksAABJIQAGACBuvfXWBfPnz78/V9Zz5plnxuDBgw0WAPaw4cOHx2c+85mcWc/8+fN/d+utty4wWQAAkkQADABARESMGTPmvpqamrdyYS2pVCouu+yy6Nmzp8ECwB7Su3fvuPjii3PmUwxbt25ddPrpp//aZAEASBoBMAAAERGxcuXKhh/+8Ie3pdPpnLjisGXLlvEv//Iv0aVLF8MFgN2sS5cucf3110dRUVFOrKepqanmu9/97jfKy8sbTBcAgKQRAAMA8E933XXX0ueff/6eXFlPaWlpXHvttVFWVma4ALCblJWVxXXXXRclJSU5s6aZM2fe/f/+3/9bZboAACSRABgAgP/l5JNPHldeXv50rqynU6dOMXbs2Jw5kQQA2aSoqCiuueaa6NixY86sqby8/MlTTz11gukCAJBUAmAAAP6PSy655K66urq1ubKefffdN6644orIy7P9BYBdJS8vL6688sro3bt3zqyprq6u/JJLLvmh6QIAkOi9uhYAAPBus2bNqn7ooYfujIh0rqxp4MCBcd555xkuAOwi559/fhxyyCG5tKT0gw8+eOesWbOqTRcAgCTLb3tQ9NzpjndbRG15oQ4BADRTEydOXDNmzJi8Tp06Dc2VNfXp0yfy8/PjzTffNGAA+ATOOuusOOmkk3JqTa+//vp9Z5555kTTBQAgCYq7N0Ze6c5/5gQwAADv6dRTT/31li1bXs+lNZ122mlx9NFHGy4AfEzHHntsnHrqqTm1pi1btrxx2mmn/cZ0AQDIBQJgAADeU0VFReONN974jcbGxqpcWtcFF1wQRx55pAEDwEd05JFHxuc+97mcWlNjY2PVzTff/I2KiopGEwYAIBcIgAEAeF9//OMf1z/yyCPfiRz6HnAqlYqLLroohgwZYsAA8CENHTo0LrrookilUrm0rPQjjzzynfvvv3+dCQMAkCsEwAAAfKBLL730hQULFvwupzbCeXnxpS99Kfbff38DBoAPcNBBB8WXvvSlyMvLrVdJCxYs+N2ll176ggkDAJBLBMAAAHwoo0eP/mVVVdXcXFpTYWFhfOUrX4kePXoYMAC8h169esUVV1wRBQUFObWuqqqqOaNHj/6lCQMAkGsEwAAAfCgVFRWNV1111S0NDQ0bcmldJSUlcfPNN8c+++xjyADwLr17946bbropiouLc2pdDQ0NG6666qqv++4vAAC5SAAMAMCHNmHChE3333//tzKZTDqX1lVcXBzXXXdddO/e3ZABYIfu3bvHtddeG61atcqpdWUymfT999//rQkTJmwyZQAAcpEAGACAj2Ts2LGz58+f/9tcW1fr1q3juuuuiw4dOhgyAM1ehw4d4rrrrovWrVvn3Nrmz5//m7Fjx842ZQAAcpUAGACAj+y44477xaZNm17MtXW1a9cubrzxxmjXrp0hA9BstW3bNmf/Pty4ceOLxx13nO/+AgCQ0wTAAAB8ZNXV1emLL774W3V1datzbW0dO3aMG2+8Mdq0aWPQADQ7ZWVlceONN0bHjh1zbm21tbWrL7zwwturq6vTJg0AQC7Lb3tQ9NzZD9LbImrLC3UIAICdWrZsWf327dtfOvbYY0/Ny8trkUtrKykpiaFDh8Zrr70WNTU1hg1As9ChQ4f42te+Fp06dcq5tTU1NW39zne+M/bBBx9cb9IAAOSC4u6NkVe6858JgAEA+NhefPHFzYcccsiyAQMGnBgRqZzaRBcXx5AhQ4TAADQLHTt2jJtuuik6dOiQi8tLjx8//ravfvWrc0waAIBc8X4BsCugAQD4RC688MIZb7zxxm9ycW3t27ePm266KSdPQgHA2zp16pTL4W+88cYbv77wwgufM2kAAJoLATAAAJ/YqFGjfrFhw4aZubi2t0Pgzp07GzQAOadz585x0003Rfv27XNyfRs2bJg5atSo+0waAIDmRAAMAMAnVltbm77sssu+V1dXtzoX19euXbu44YYbomPHjoYNQM7o0KFDXH/99dGuXbtc3Z+s/sIXvvDd2tratGkDANCc+AYwAAC7xJIlS+oj4pVRo0admpeX1yLX1ldcXBxDhw6NuXPnxrZt2wwcgETr0qVL3HjjjTl77XNTU1P1nXfeec0f/vCHdaYNAEAuer9vAAuAAQDYZWbNmlXVo0ePuYceeujoVCqVn2vra9WqVYwYMSIWLVoUlZWVBg5AIu23335x0003RVlZWU6uL51ON/z617++4fbbb3/TtAEAyFUCYAAA9phJkyatPeqoozbsu+++R+fi+goLC2P48OGxbNmy2LBhg4EDkCgDBgyIa6+9Nlq1apWza5w2bdq/XXLJJc+ZNgAAuez9AmDfAAYAYJc77bTTHn/rrbcezNX1FRUVxTXXXBNDhgwxbAASY8iQIXHNNddEUVFRzq5xwYIFvzv99NOfMG0AAJozATAAALvFEUcccc+GDRtm5ur6CgoK4sorr4wjjjjCsAFIwt/LceWVV0ZBQUHOrrG8vPypESNG/LdpAwDQ3AmAAQDYLaqrq9MXXXTRd2pra1fk7GY6Ly8uvvjiOPLIIw0cgKw1atSouPjiiyMvL3dfA23dunXxZz/72e83NDRkTBwAgObON4ABANhtli9fvr2mpuaFY4899uT8/PyWubjGVCoVgwYNikwmE4sWLTJ0ALLK6aefHueee26kUqmcXWN9fX3FDTfccM3UqVOrTBwAgObi/b4BLAAGAGC3evnll7cUFBS8cMQRR4zOy8trkYtrTKVSccABB0SnTp1i7ty5kck4fATA3lVYWBhXXHFFHHPMMTm9zsbGxuo777zzKz/72c9WmzoAAM2JABgAgL1qxowZlb169Xp98ODBJ6dSqfxcXWfPnj2jb9++8fe//z0aGxsNHoC9olWrVnH11VfHwIEDc3qd6XS64be//e2Nt9122wJTBwCguREAAwCw1z3xxBPlw4cPX9OvX79jIyJn76Hs2LFjDBw4MObMmRN1dXUGD8Ae1a5du7jxxhujT58+ub7U9JQpU779xS9+8XlTBwCgOXq/ADhPewAA2FPGjBkz9Y033vh1rq+zZ8+eceONN0bHjh0NHYA9pkuXLnHTTTdF9+7dc36tc+fO/eU555zzF1MHAID/SwAMAMAe9alPfernS5cufTjX19mlS5e49dZb48ADDzR0AHa7gQMHxje/+c3o1KlTzq/1rbfeemjEiBG/MnUAANg5ATAAAHvcsccee8/GjRtfyPV1FhcXx7XXXhsjRowwdAB2m8MPPzyuuuqqaNmyZc6vdePGjc8fffTR95g6AAC8NwEwAAB7XEVFReNxxx339crKyr/l+loLCgrisssui/PPPz9SqZThA7DLpFKpOP/88+PSSy+NgoKCnF/vpk2bXj7ssMNuqaysbDJ9AAB4bwJgAAD2isWLF9efddZZN1dXV7/ZHNZ7/PHHx5e//OUoKioyfAA+sRYtWsSXv/zlOP7445vFequrq98cM2bMN8rLyxtMHwAA3l9+24Oi585+kN4WUVteqEMAAOw2a9asaVi1atWs0aNHH1dQUNA619fbrVu3OOCAA2LevHlRX1/vAQDgYykrK4trrrkmDjrooGax3rq6uvKxY8de89RTT202fQAA+Ifi7o2RV7rznwmAAQDYq+bNm1ezevXqZ04++eTjCwoKSnN9ve3atYuRI0fG8uXLY+PGjR4AAD6S/v37x0033RRdu3ZtFuutr69fd9111335T3/6U4XpAwDA/xAAAwCQ1ebMmbMtlUq9fOSRR56Ul5eX83ckt2jRIkaMGBG1tbWxdOlSDwAAH8rxxx8fX/rSl5rN5wQaGxu33HXXXdf99Kc/XWn6AADwvwmAAQDIejNnzqzs2bPn64MHDz4plUrl5/p6U6lUHHLIIdGqVatYsGBBZDIZDwEAO5WXlxef/exn4/TTT49UKtUs1pxOp7f//ve//+o3vvGN1z0BAADwfwmAAQBIhEmTJpXvs88+8wYOHHhCKpUqaA5r3m+//WLAgAExd+5c3wUG4P8oKyuL6667LoYNG9Zs1pxOp7f/8Y9/vOmqq676qycAAAB2TgAMAEBiTJw4cc3BBx+85MADDzwulUrlNYc1t2/fPoYOHRqLFi2KLVu2eAgAiIiIffbZJ66//vro2bNns1lzJpNpnDBhwm1f/OIXn/cEAADAexMAAwCQKI8++ujy/fff/42DDjrohOZwHXRERHFxcRx11FHR2NgYb731locAoJkbPXp0XHHFFVFSUtJs1pxOpxsefvjhr15yySWzPAEAAPD+BMAAACTO+PHjVw0cOHDpAQcccGxzOQmcSqViwIAB0aVLl3jjjTeiqanJgwDQzBQVFcWll14aJ554YrP53m/EP07+Pv7447dffPHFMz0FAADwwQTAAAAk0iOPPLLs0EMPXbb//vs3mxA4IqJHjx4xZMiQePPNN2Pr1q0eBIBmonv37vEv//IvccABBzSrdWcymaYnnnji9s997nPPeAoAAODDEQADAJBYDz/88NJjjjlmY+/evY+KiGZzFKq0tDSGDx8eq1evjvXr13sQAHLcwIED45prrol27do1t6VnZsyY8YOzzjprqqcAAAA+PAEwAACJdv/99795zDHHVO6zzz5HRDMKgVu0aBGHHXZYtGzZMhYuXBjpdNrDAJBjCgoK4pxzzonzzz8/WrRo0dyWn37uuefuOuWUUyZ4EgAA4KMRAAMAkHi///3v5w8bNmxF3759j2lO10GnUqno27dvDB06NBYvXhxbtmzxMADkiJ49e8YNN9wQgwcPblbf+434x7XPU6ZM+fbpp58+2ZMAAAAfnQAYAICc8OCDDy4ZNmzYin79+jWrEDgionXr1nHEEUdEfX19LF261MMAkGCpVCpOOOGEuOKKK6JNmzbNbv07wt9vnXPOOX/xNAAAwMcjAAYAIGc89NBDS4YNG7a8X79+xza3EDg/Pz8OPvjg6NWrV8yfPz8aGho8EAAJU1JSEpdffnmccMIJkZ+f3+zWn8lkGp944olvffazn53maQAAgI9PAAwAQE556KGHlo4cOXJdnz59RqWa252ZEdG1a9cYNmxYLFu2LCorKz0QAAnRt2/fuO6662K//fZrluvPZDLpp59++rvnnHPO054GAAD4ZATAAADknD/96U+LDj300KX7779/s7sOOiKiuLg4jjzyyCgpKYk333wz0um0hwIgSxUUFMRnP/vZuPDCC6OkpKRZ9iCdTjc88sgjt5x//vnTPREAAPDJCYABAMhJDz/88NId3wQelUqlmt09mqlUKvr06RMHH3xwLFy4MLZt2+ahAMgynTt3jrFjx8bQoUOjGV5aERH/CH+feOKJ2y+88MLnPBEAALBrCIABAMhZDz300JIePXq8NmjQoGPz8vJaNMcetG3bNkaNGhVNTU2xZMkSDwVAFkilUjF69Oi48soro0OHDs22D01NTdt++9vf/stll132oqcCAAB2HQEwAAA5bdKkSeXdu3efM3jw4GYbAufn58eAAQOiV69esWDBgti+fbsHA2Avad26dVx66aVx/PHHR35+frPtQ2NjY/WvfvWrf7nuuute81QAAMCuJQAGACDnTZ48eW1jY+OMI4444uiCgoKS5tqHrl27xqhRo2Lbtm2xcuVKDwbAHpRKpWLUqFExduzY6NWrV7PuRX19/fo77rjjK9/61rcWejIAAGDXEwADANAsPP/881UbNmx45rjjjjuqsLCwrLn2obCwMAYNGhT77bdfLF68OGpraz0cALtZ+/bt44orrogTTzwxCgub9/uU2tralTfffPPVP/nJT1Z7MgAAYPcQAAMA0Gz87W9/27p27doZJ5xwwsjCwsK2zbkXnTp1ipEjR0Z1dbXTwAC70ciRI+Pqq6+OHj16NPte1NTULL/hhhuu/e1vf7vOkwEAALuPABgAgGbltdde2zpv3rynTznllKFFRUWdmnMvCgsL49BDD4399tsvFi1a5DQwwC709qnfk08+udmf+o2I2Lx587yLL774unHjxm30dAAAwO71fgFwat9zYsTOftC4LmLjq610DwCAxOrVq1fhs88++69du3Y9QTciGhoaYurUqTF58uRobGzUEICPqaCgIE499dQYPXq04HeH8vLyp4499tjvrly5skE3AABg9+swrDYKuuz8ZwJgAAByWuvWrfNeeumlm/fdd9+zdeMfVq9eHffff38sWbJEMwA+ov322y8uuugi1z2/w8KFC38/fPjwnzY0NGR0AwAA9gwBMAAAzd7zzz9/8aGHHnp1RKR0IyKTycTMmTPjz3/+c9TV1WkIwAcoKSmJ8847L0aMGBGplL9Kdki//PLL9xx77LEPagUAAOxZ7xcA+wYwAADNwn333Tfn+OOP39yrV6/DQwgcqVQqevfuHcOHD49169ZFRUWFhwTgPRxyyCExduzY6N+/v/B3h0wm0/jMM8/828knnzxONwAAYM97v28AC4ABAGg2fve7370xePDgJf369Ts6lUrl60hEcXFxjBgxInr06BFLly6N2tpaTQHYoUOHDvGFL3whzjzzzCguLtaQHZqammoeeOCBWz73uc9N1w0AANg7BMAAALDDww8/vKygoOC54cOHH1FQUFCqI//QrVu3OO6446K0tDQWL14cTU1NmgI0Wy1btoxzzjknLr300ujevbuGvENtbe2K22677arbbrvtDd0AAIC9RwAMAADv8Oyzz25avHjx0yeddNKQoqKiTjryD3l5edGnT58YOXJkbN26NVatWqUpQLNz+OGHx1e+8pUYMGBA5OXlacg7VFVV/e3CCy+8/oEHHvDdAAAA2MsEwAAA8C7z58+vefbZZ58+44wz+hcXF/fSkf/RsmXLGDJkSOyzzz6xdOnSqKmp0RQg53Xs2DG++MUvximnnBItW7bUkHdZt27dMyeffPI3Xn755W26AQAAe9/7BcCpfc+JETv7QeO6iI2vttI9AAByWmFhYer555//0sEHH3y5bvxfTU1N8fzzz8f48eOjurpaQ4Cc07p16zjzzDPjyCOPdOJ35zJ///vff3rMMcfc39DQkNEOAADIDh2G1UZBl53/TAAMAAARMWnSpM8cc8wxt6RSKdfg7ERNTU1MmTIlpk2bFg0NDRoCJF5hYWGccsopcdJJJ0VRUZGG7EQ6na6fOnXqd88555y/6AYAAGSX9wuAXQENAAAR8Yc//GHhfvvt98aAAQOOysvLkwS8S2FhYQwYMCCGDh0amzZtinXr1mkKkFiDBw+Oq666KoYOHRoFBQUashONjY1Vv//972/5whe+MEs3AAAg+/gGMAAAfAgTJkxYXV1dPf3II4/8VGFhYTsd+b9KS0vjsMMOi/79+8eaNWti8+bNmgIkRu/evePyyy+PU045JUpLSzXkPWzdunXxLbfccs33vve9hboBAADZyTeAAQDgI+jTp0+LJ5988us9evQ4TTfe3/z58+ORRx6JlStXagaQtXr16hXnnHNODBgwQDM+wKpVq5444YQTfrBy5Ur3/QMAQBbzDWAAAPgYnnnmmfOHDx9+fSqVytON95bJZGL27Nkxbty4qKio0BAga3Tu3DnOOuusGDp0aKRSKQ15/z/Lm2bNmvXDk08++THdAACA7OcbwAAA8DH85je/eX3//fd//cADDzzSd4HfWyqViu7du8cxxxwT7dq1i2XLlkV9fb3GAHtN27Zt49xzz42LL744evToIfz9AI2NjdUPPvjgLZ/97Gf/ohsAAJAMvgEMAAAf0/jx41dFxPOHHXbYiMLCwjIdeW95eXnRu3fvOOqoo6KgoCBWrlwZjY2NGgPsMcXFxXHKKafEl770pejbt2/k5bnA4YPU1tau+MEPfnD9LbfcMk83AAAgQf/94xvAAADwyQwePLjVo48++s1u3bqdpBsfTn19fTzzzDMxderU2LZtm4YAu01ZWVmceuqpceSRR0ZRkQsbPqyVK1c+/ulPf/pHixcvdm0DAAAkjG8AAwDALvLkk0+edeSRR96USqVcl/MhCYKB3eXtE7/HHnus4PcjyGQyDbNmzfoP3/sFAIDk8g1gAADYRX7/+98v6NGjx2uHHHLIyPz8fL8x+SEUFBREv3794qijjoq8vLxYtWqVq6GBT6Rly5ZxwgknxBVXXBEHHXRQFBQUaMqH1NDQsOG3v/3t1z7/+c8/oxsAAJBcroAGAIBd7Lzzzut4991339m2bdvBuvHR1NTUxLPPPhvTpk2LLVu2aAjwoZWVlcXxxx8fxxxzTBQXF2vIR1RVVfW3a6+99vZHHnlkg24AAECyuQIaAAB2g06dOhVMmzZtbN++fT8XESkd+WgaGhri+eefjyeffDI2bJBFAO/7522cdNJJccQRR0RhodvKPobMokWL/nTsscf+pLKyskk7AAAg+QTAAACwG/3hD38Ydfrpp99WUFDQRjc+unQ6Ha+++mpMnTo1Vq5cqSHAP/Xq1StOOeWUGDp0aOTl5WnIx9DY2Fg1YcKEOy666KKZugEAALlDAAwAALvZaaed1vbee+/9docOHUbqxse3fPnymDZtWrz88suRTqc1BJqhvLy8OOyww+L444+P3r17a8gnsHHjxue//OUvf3fSpElVugEAALlFAAwAAHtAYWFh6qmnnjpv+PDh16RSKXeUfgIbNmyIGTNmxHPPPRc1NTUaAs1AcXFxjBo1Ko4++ujo2LGjhnwCmUym4ZVXXvl/J5100kMNDQ0ZHQEAgNzzfgFwftuDoufOfpDeFlFb7p0VAAB8WOl0On7zm9+8Xlpa+uLgwYM/VVhYWKYrH09xcXEMGDAgjj322GjTpk2sXbs2amtrNQZyUIcOHeKMM86ISy+9NAYOHBjFxcWa8gnU1tau+slPfnLjxRdf/IybFAAAIHcVd2+MvNKd/8wJYAAA2A1OPPHENvfdd9+tnTp1Olo3PrnGxsb429/+Fs8++2wsWrRIQyAH9OvXL44++ugYNmxYFBQUaMguUFFR8cwXv/jFf5s+ffoW3QAAgNzmCmgAANhLHn744RNGjx799YKCgta6sWusX78+Zs6cGc8//3xUV1drCCRIaWlpHHnkkXHUUUdF586dNWQXaWxs3DJ16tS7PvvZz/5FNwAAoHkQAAMAwF50ySWXdP3+97//rXbt2g3VjV2nsbExXnvttXjuuedi/vz5GgJZbMCAATFq1KgYPHiw0767WFVV1atf//rXv/e73/1urW4AAEDzIQAGAIC9rF27dvlTp0699OCDD740lUrl68iutXz58nj++efj5ZdfjpqaGg2BLFBSUhLDhw+PI444Inr37q0hu1gmk2mcN2/efSeeeOJvq6urfewXAACaGQEwAABkia9//ev73Xjjjf9aWlraXzd2vXQ6HW+++WY899xz8dprr0VjY6OmwB5UUFAQgwcPjlGjRsUBBxwQeXl5mrIbVFdXL/zP//zPf/3BD36wRDcAAKB5EgADAEAWOfjgg1v9+c9/vrZ3795jIiKlI7tHZWVlvPjii/HCCy/EunXrNAR2o65du8bIkSPj8MMPj7Zt22rI7pNZunTpn88888z/t3jx4nrtAACA5ksADAAAWejuu+8eePHFF9/WqlUrd6PuZuXl5fHqq6/GSy+9FOvXr9cQ2AU6d+4cI0aMiGHDhkW3bt00ZDerqalZ9tvf/vbOm266aa5uAAAAAmAAAMhS/fr1K3r44Ycv79+//4WpVMpdqXvA8uXL46WXXoqXX345qqurNQQ+grKyshg+fHiMGDHCd333kEwmk164cOEfzj777F8sXbp0u44AAAARAmAAAMh6P/3pT4d97nOf+2bLli176Mae0dDQEHPnzo2//vWvMXfu3Ni+Xa4CO9OyZcsYNGhQDBs2LA455JAoKCjQlD2ktrZ21R//+Mc7rr322r/rBgAA8E4CYAAASIA+ffq0ePTRR69wGnjPS6fTsXTp0nj11VedDIaIaNu2bQwbNiyGDRsWffr0ibw8fyTtSZlMpuG11177+ZlnnvmnioqKRh0BAADeTQAMAAAJ8uMf//jQCy644JutWrXaRzf2vLdPBs+ePTvmzp0bdXV1mkKzUFZWFoMHD45hw4ZF//79Iz8/X1P2gpqammX333//nTfccINv/QIAAO9JAAwAAAnTrl27/HHjxp37qU996qq8vDwb870kk8nEihUrYu7cuTFnzpxYsWJFZDIZjSEnpFKp6Nu3bwwbNiwGDRoUHTt21JS9qKmpqfbVV1/92ZgxY/5cWVnZpCMAAMD7EQADAEBCffnLX+5x++23f7V9+/aH68bet2XLlnjjjTdizpw5MW/evKivr9cUEqVly5Zx8MEHx6BBg+KQQw6J0tJSTckCGzdufPG73/3uv//iF79YoxsAAMCHIQAGAIAEKywsTE2cOPGMkSNHXlNQUNBaR7JDXV1dvPnmm/HGG2/EG2+8EevXr9cUslKXLl3ioIMOioMOOigOOOCAKCoq0pQs0djYuGXmzJk/PvPMMyc2NDS4XgAAAPjQBMAAAJADjjzyyNY/+9nPrujbt++5EZGnI9mluro6Fi5cGPPnz4958+ZFZWWlprBXtGvXLg455JAYMGBA9O/fP1q39nsjWSj91ltv/fmqq676xaxZs6q1AwAA+KgEwAAAkEN++ctfjhgzZsyNrVq16q0b2SmdTsfKlStj0aJFsXDhwli8eHFs27ZNY9gtSkpKol+/ftG/f//Yf//9o1evXpGX53dEslVNTc3yRx999EdXXnnlK7oBAAB8XAJgAADIMd26dSt8+OGHPzd48ODL8vPzbdyzXCaTiTVr1sTChQtj0aJFsWjRotiyZYvG8LGUlZVF//79/xn6du/ePVKplMZkuaampprXXnvtV2PGjHmgoqKiUUcAAIBPQgAMAAA56rjjjiv7r//6r8tdC508mzdvjuXLl8eKFSti+fLlsXjx4qipqdEY/pfi4uLo169f9O7dO/bZZ5/Yd999o6ysTGMSJJPJpJcsWfLn66677pfTp0/3mx8AAMAuIQAGAIAc99Of/nTIueeee3NpaWlf3UimxsbGWLlyZSxdujSWLVsWy5cvj3Xr1kUmk9GcZiKVSkWXLl1in332iT59+kSfPn2iV69eUVBQoDkJtXXr1sUPPvjgj6699tq/6wYAALArCYABAKAZaNeuXf64cePOGTp06BUFBQWtdST56uvrY+XKlf88KbxixYpYu3ZtpNNpzUm4vLy86Nq1a+yzzz7//KdXr17RsmVLzckBjY2NW/7617/+4pxzznm0srKySUcAAIBdTQAMAADNyIknntjmnnvuuXzfffcdk0qlHB3MMdu3b481a9bEmjVrYu3atbF27dooLy+PDRs2CIazUF5eXnTs2DG6desWXbt2jW7dukW3bt2iR48eUVhYqEE5JpPJNC5ZsuRR1z0DAAC7mwAYAACaoa9+9av7Xnfdddd16NDhCN3IfY2Njf8MhNetWxfr1q2LioqKWLduXWzbtk2DdrPS0tLo3LnzP//p0qVLdO3aNbp27eoK52Ziw4YNM//rv/7rxz/60Y+W6wYAALC7CYABAKAZ++UvfznirLPOuq64uNj3gZupmpqaWL9+/T//qaioiMrKyqisrIxNmzZFY2OjJn2AgoKCaN++fbRr1y7at28fHTt2jC5dukSnTp2ic+fOUVxcrEnN1NatW98aP378PVdcccXLugEAAOwpAmAAAGjm2rVrl//ggw+eOWLEiCsLCwvb6gjvtHnz5n+GwZs2bYrKysqorq6OLVu2xJYtW6K6ujqqq6sjk8nk3NpTqVS0bt06WrduHWVlZdGmTZsoLS39X2Fvu3btok2bNh4U/peGhobKl1566efnnHPO+OrqavevAwAAe5QAGAAAiIiIoUOHFt97770XHHjggRfk5+c7ssiHlk6n/xkEV1dXR01Nzfv+k8lkora2NtLpdNTX10dTU1PU1dXt0u8U5+XlRcuWLSM/Pz+KiooiLy8vWrVqFalUKoqLi3f6T0lJSbRq1eqfgW9paWnk5eUZMB9aU1NTzYIFC/745S9/+Y+zZ8+u0REAAGBvEAADAAD/y2mnndb2rrvuurRPnz5n5+XlFeoIe9LbgfDbtm/f/r7XUBcUFESLFi3++b/fDnxhT8pkMg1LliwZd8stt/xq0qRJVToCAADsTQJgAABgp0477bS2d95554X777//5wTBAP9XJpNpWLhw4QO33nrrHwS/AABAtni/ADi/7UHRc2c/SG+LqC33/gcAAHLZokWL6u69995X0un0swcddFCnkpKS3roC8A8VFRUz/7//7/+77aKLLpq6aNGiOh0BAACyRXH3xsgr3fnPBMAAAEDMnDmz8u67736qqalpWr9+/Ypbt27dN5VKpXQGaG4ymUx6zZo1U+65555/Peeccx6cOXNmpa4AAADZRgAMAAB8KDNnzqz88Y9//Gw6nZ4uCAaak7eD37vvvvtfzz///McEvwAAQDYTAAMAAB+JIBhoLgS/AABAEgmAAQCAj+XtILisrOyFvn37diwuLu4VEYJgIBdkKioqnrv33nu/PWbMmEcEvwAAQJK8XwCc2vecGLGzHzSui9j4aivdAwAA/unqq6/u8ZWvfOX8Pn36nJWXl9dCR4CkSafT9UuXLh3/X//1Xw/84he/WKMjAABAEnUYVhsFXXb+MwEwAADwkZ1xxhntb7/99rMPPPDA8/Pz81vrCJDtmpqaqhcsWPDgd77znUcmTpzotC8AAJBoAmAAAGC3GD58eMkPf/jDzwwePPjioqKijjoCZJv6+voNr7322u9vvPHGx2fPnl2jIwAAQC4QAAMAALvV0KFDi++5556zDjnkkPOKioq66giwt9XV1a19/fXXH7z++uvHC34BAIBcIwAGAAD2iFatWuXdc889w0455ZTzO3bseJSOAHtYZsOGDbOmTJny4PXXX/9qbW1tWksAAIBcJAAGAAD2uH/913/tf/7555/dq1ev0/Ly8lroCLC7pNPp+pUrV05+4IEHHvnOd76zSEcAAIBcJwAGAAD2mjPOOKP97bfffvYBBxzw2YKCgjY6AuwqjY2NVW+++eafv/e97z06YcKETToCAAA0FwJgAABgrxs+fHjJ97///dGDBg0aU1paur+OAB9XdXX1wtdee+3Rr371q1Nfe+21Wh0BAACaGwEwAACQVb761a/ue8EFF3y6b9++ZxUUFLTWEeCDNDY2bnnrrbfG/+EPf5j4ox/9aLmOAAAAzZkAGAAAyEpDhw4t/sEPfnDy4MGDz27dunV/HQHerbq6+s2XX375weuuu+7ppUuXbtcRAAAAATAAAJDlCgsLU3ffffeQ0aNHn9G1a9fj8vLyinQFmq90Ol1XXl4+bcqUKROuvfbav+sIAADA/yYABgAAEqNPnz4t/v3f/33UyJEjz2rfvv2nIiKlK9AsZDZt2vTXF1544bGvfe1rzzntCwAA8N4EwAAAQCJddNFFXa6++uqTDzzwwLNbtmzZTUcg99TV1a1ZsGDBuJ/+9KdP3n///et0BAAA4IMJgAEAgETr1q1b4d13333k4YcffmqHDh2OyMvLK9QVSK50Ot2wcePGWbNmzZp8/fXXz6qoqGjUFQAAgA9PAAwAAOSMo48+uvWtt956/CGHHHJKu3btBkdEnq5AIqQrKytfmzdv3uQ777xz+owZM6q1BAAA4OMRAAMAADnpuOOOK/vGN75x/CGHHHJa27ZtB4bvBUO2yVRVVc2dN2/epO9///vTpk+fvkVLAAAAPjkBMAAAkPNuu+22vmedddZJffr0Oa5Vq1a9dQT2ntra2uXLly+f/uijjz51xx13vKUjAAAAu5YAGAAAaFa+9KUvdbv44ouP7t+//wlOBsMekamqqpq7cOHCv/z+97+fcd9995VrCQAAwO4jAAYAAJqtSy65pOtll112jDAYdrl0VVXVvIULF/7lV7/61bO/+93v1moJAADAniEABgAAiIirr766x/nnnz9q//33P7JNmzZDUqlUga7Ah5fJZBoqKyv/vnjx4uf+9Kc/zbr33ntX6woAAMCeJwAGAAB4l379+hV97WtfGzRy5MhRPXv2PLaoqKizrsD/VV9fv37VqlXPvPDCC8/9+7//+5zFixfX6woAAMDeJQAGAAB4H61bt8678847Bx599NFHde/efURpaen+4apomq/M1q1bF69Zs+bF5557btY3v/nNOdXV1WltAQAAyB4CYAAAgI9g8ODBrcaOHXvI8OHDD+vevfvw1q1bHxACYXJXprq6+s01a9a88sorr7z8k5/8ZN5rr71Wqy0AAADZSwAMAADwCVx//fX7nHHGGYf169dvePv27Yfm5+e31hWSrLGxsXrjxo2vvvXWWy+PHz/+lR//+McrdQUAACA5BMAAAAC70Je//OUe55xzzvA+ffoM7tix45CioqKuukI2q6+vX7t27doXFy9ePGfixImv3Xvvvat1BQAAILkEwAAAALvRl7/85R6f+cxnBvfr129Qly5dDm/ZsqVAmL2qrq5u7bp16wS+AAAAOUoADAAAsIe0atUq75prrtnn2GOPPXi//fY7uH379oeUlpb2TaVS+brDbpKuqalZtnHjxnlvvfXW3GeffXbef/3Xfy2vra1Naw0AAEBuEgADAADsRQceeGDLq6+++oAhQ4Yc3LNnz4Pbtm17sGuj+biampqqq6qqXi8vL583Z86ceb/85S/nvfjii1t1BgAAoPkQAAMAAGSZoUOHFn/xi1/cf9CgQQf26NHjwHbt2h3YqlWr3qlUKk932CFdU1OzvLKycsHq1asXzJkzZ8Gf//znJTNmzKjWGgAAgOZNAAwAAJAAxx13XNkFF1xw4MEHH3xA165dDywtLd23pKRkn1QqVag7uS2TyTRs27ZtRXV19dJ169YtfOONNxZOmDBh4YQJEzbpDgAAAO8mAAYAAEiw8847r+OJJ57Yp3///vt16dKlT5s2bfZr3bp1v/z8/GLdSZampqaa6urqxZs3b16ybt26pQsXLlzy9NNPL33ooYc26A4AAAAflgAYAAAgx7Rr1y7/kksu6TFkyJCe++67b89OnTr1Kisr61VcXNyzZcuW3VKpVL4u7R2ZTKaprq6uvKamZtWWLVtWVlRUrFy6dOnK2bNnr7r//vvXVFZWNukSAAAAn4QAGAAAoBnp1KlTwec+97luQ4cO7bnPPvv0aNeuXafWrVt3Li4u7tqyZcvORUVFnfLy8lro1MeTTqe319fXr6+rq6uoqalZW11dvb6ysnL9ihUrVr/66qurHnzwwbUVFRWNOgUAAMDuIgAGAADgfznjjDPaH3bYYZ369OnTuUuXLp3Kysral5SUtC0uLu5YVFTUrqioqG2LFi065OfnlzaXnjQ1NW3dvn37xvr6+qr6+vrKmpqaDdu2bavasmXLpnXr1lUsXbp0/Ysvvrh+4sSJlZ4gAAAA9iYBMAAAAB9Lr169CkeNGtXuoIMOatexY8ey9u3bl7Zp06Z1SUlJWXFxcetWrVq1btGiRVlRUVHrwsLC1hGRX1hYWBoR+QUFBSV5eXkFeXl5u/0/LtPpdG06nW5sbGzcFhFNDQ0NW3f83+r6+vrq7du3b6mtra2uqamp3rZtW/XmzZurN23aVL1hw4YtCxYsqJo1a1bl0qVLt5s4AAAASSAABgAAYK/q169fUffu3Vvss88+xSUlJQVv//8LCwtT3bp1+8BTxuXl5VsbGhoyb//vbdu2Na5YsaJmzZo12xcvXlyvwwAAADQn7xcAF2gPAAAAu9vixYvrdwS11boBAAAAu0+eFgAAAAAAAADkBgEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4o0AIAAAAAAACA5GhoLIyCxoaIiEilIpNXGE1v/0wADAAAAAAAAJAghQUN/0x6MxGppvT/5L6ugAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAIb/v5272ZHiusM4/FZ1NUkz9sQwOF4EyZJtpJCwysa5jSy4n1xPEqRIuQFvvfGSgIwBOzGRQAQERnx0d1UW0cgWGvKxsMGvnmfVdc7/1OJsf+oCAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoMY3JP//9K8My551lzpAk293a7QAAAAAAAAD8iIw3r+SL7TpPxuSt4/ibJJuz20QDBgAAAAAAAHhzrJPp6NvHYcyyjLl7dJTPbl/Jp6sPLufSsM+5ec7q5YOrF0OeP/SVaAAAAAAAAIA3weH7u6zfm79dWDIMSw6225w785vsx3XyzasOby5ssz69c4sAAAAAAAAAr9n69C6bC9sT93a7rKdnORin5Otxynzi1JQcfiwCAwAAAAAAALxO69O7HH68TaaT98cp85R8vbp3Nfszv8q0LHn7xMF1sjk/ZzUPmZ/MmWefhAYAAAAAAAD4oayPdjn7223Gn7x6ZrXPnetX8mBKkpv3cufDd/Pufn5FL56SzcVtNheT3dNt8tQlAwAAAAAAAHyv1sm0ySv/9XtsNWZ3I/lHkgzHi7/4XY7WYz5yiwAAAAAAAAA/Ivtcv/3nPEyS1fHa42t5+vNLyX7JoRsCAAAAAAAAePPt1/nbV3/KvePn1Xc371/NYxEYAAAAAAAA4M0yTHk2rvNo2WdzvHZqzN9v/SF3vju3evng/at5fPDLPDu1yuGyZHSVAAAAAAAAAK/XOGe4ueSvZ4e8M8xZbVe5ceuPufvy3Oqkw4+v5emDX+fuuTlLhhwsEYIBAAAAAAAAXpclGR8OuXP0TR4cPM/9z/+SRyfNDf/1TZezOp/87KdjzizJZkhO7edMy/w/nAUAAAAAAADg/zaMWcZkP8/ZLsmLacr2/MV8+cnvs/tP5/4FmLjAq1ifcioAAAAASUVORK5CYII=";function Kn(t,e,n){return typeof t=="string"&&!isNaN(Number(t))&&(t=Number(t)),typeof t=="number"&&t<100?dr(t):typeof t=="number"&&t>=100?t:typeof t=="string"&&t.includes("%")?Math.round(e&&e==="X"?parseFloat(t)/100*n.width:e&&e==="Y"?parseFloat(t)/100*n.height:parseFloat(t)/100*n.width):0}function dF(t){return t.replace(/[xy]/g,function(e){var n=Math.random()*16|0,r=e==="x"?n:n&3|8;return r.toString(16)})}function Nn(t){return typeof t>"u"||t==null?"":t.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function dr(t){return typeof t=="number"&&t>100?t:(typeof t=="string"&&(t=Number(t.replace(/in*/gi,""))),Math.round(Cn*t))}function xn(t){var e=Number(t)||0;return isNaN(e)?0:Math.round(e*K8)}function W2(t){return t=t||0,Math.round((t>360?t-360:t)*6e4)}function DH(t){var e=t.toString(16);return e.length===1?"0"+e:e}function VH(t,e,n){return(DH(t)+DH(e)+DH(n)).toUpperCase()}function br(t,e){var n=(t||"").replace("#","");!XH.test(n)&&n!==ac.background1&&n!==ac.background2&&n!==ac.text1&&n!==ac.text2&&n!==ac.accent1&&n!==ac.accent2&&n!==ac.accent3&&n!==ac.accent4&&n!==ac.accent5&&n!==ac.accent6&&(console.warn('"'.concat(n,'" is not a valid scheme color or hex RGB! "').concat(gl,`" used instead. Only provide 6-digit RGB or 'pptx.SchemeColor' values!`)),n=gl);var r=XH.test(n)?"srgbClr":"schemeClr",a='val="'+(XH.test(n)?n.toUpperCase():n)+'"';return e?"<a:".concat(r," ").concat(a,">").concat(e,"</a:").concat(r,">"):"<a:".concat(r," ").concat(a,"/>")}function K3t(t,e){var n="",r=pi(pi({},e),t),a=Math.round(r.size*K8),i=r.color,o=Math.round(r.opacity*1e5);return n+='<a:glow rad="'.concat(a,'">'),n+=br(i,'<a:alpha val="'.concat(o,'"/>')),n+="</a:glow>",n}function uc(t){var e="solid",n="",r="",a="";if(t)switch(typeof t=="string"?n=t:(t.type&&(e=t.type),t.color&&(n=t.color),t.alpha&&(r+='<a:alpha val="'.concat(Math.round((100-t.alpha)*1e3),'"/>')),t.transparency&&(r+='<a:alpha val="'.concat(Math.round((100-t.transparency)*1e3),'"/>'))),e){case"solid":a+="<a:solidFill>".concat(br(n,r),"</a:solidFill>");break;default:a+="";break}return a}function a0(t){return t._rels.length+t._relsChart.length+t._relsMedia.length+1}function cte(t){if(!(!t||typeof t!="object"))return t.type!=="outer"&&t.type!=="inner"&&t.type!=="none"&&(console.warn("Warning: shadow.type options are `outer`, `inner` or `none`."),t.type="outer"),t.angle&&((isNaN(Number(t.angle))||t.angle<0||t.angle>359)&&(console.warn("Warning: shadow.angle can only be 0-359"),t.angle=270),t.angle=Math.round(Number(t.angle))),t.opacity&&((isNaN(Number(t.opacity))||t.opacity<0||t.opacity>1)&&(console.warn("Warning: shadow.opacity can only be 0-1"),t.opacity=.75),t.opacity=Number(t.opacity)),t.color&&t.color.startsWith("#")&&(console.warn('Warning: shadow.color should not include hash (#) character, , e.g. "FF0000"'),t.color=t.color.replace("#","")),t}function H3t(t,e,n){var r,a,i=2.3+(!((r=t.options)===null||r===void 0)&&r.autoPageCharWeight?t.options.autoPageCharWeight:0),o=Math.floor(e/K8*Cn)/((!((a=t.options)===null||a===void 0)&&a.fontSize?t.options.fontSize:pu)/i),s=[],l=[],c=[],u=[];t.text&&t.text.toString().trim().length===0?l.push({_type:In.tablecell,text:" "}):typeof t.text=="number"||typeof t.text=="string"?l.push({_type:In.tablecell,text:(t.text||"").toString().trim()}):Array.isArray(t.text)&&(l=t.text);var f=[];return l.forEach(function(d){var h;typeof d.text=="string"&&(d.text.split(`-`).length>1?d.text.split(`-`).forEach(function(p){f.push({_type:In.tablecell,text:p,options:pi(pi({},d.options),{breakLine:!0})})}):f.push({_type:In.tablecell,text:d.text.trim(),options:d.options}),!((h=d.options)===null||h===void 0)&&h.breakLine&&(c.push(f),f=[])),f.length>0&&(c.push(f),f=[])}),c.forEach(function(d){d.forEach(function(h){var p=[],v=String(h.text),g=v.split(" ");g.forEach(function(y,m){var R=pi({},h.options);R!=null&&R.breakLine&&(R.breakLine=m+1===g.length),p.push({_type:In.tablecell,text:y+(m+1<g.length?" ":""),options:R})}),u.push(p)})}),u.forEach(function(d){var h=[],p="";d.forEach(function(v){p.length+v.text.length>o&&(s.push(h),h=[],p=""),h.push(v),p+=v.text.toString()}),h.length>0&&s.push(h)}),s}function _Oe(t,e,n,r){t===void 0&&(t=[]),e===void 0&&(e={});var a=t8,i=Cn*1,o=Cn*1,s=0,l=0,c=[],u=Kn(e.x,"X",n),f=Kn(e.y,"Y",n),d=Kn(e.w,"X",n),h=Kn(e.h,"Y",n),p=d;function v(){var A=0;c.length===0&&(A=f||dr(a[0])),c.length>0&&(A=dr(e.autoPageSlideStartY||e.newSlideStartY||a[0])),o=(h||n.height)-A-dr(a[2]),c.length>1&&(typeof e.autoPageSlideStartY=="number"?o=(h||n.height)-dr(e.autoPageSlideStartY+a[2]):typeof e.newSlideStartY=="number"?o=(h||n.height)-dr(e.newSlideStartY+a[2]):f&&(o=(h||n.height)-dr((f/Cn<a[0]?f/Cn:a[0])+a[2]),o<h&&(o=h)))}e.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- TABLE PROPS --------------------------------------------------------|"),console.log("| presLayout.width ................................ = ".concat((n.width/Cn).toFixed(1))),console.log("| presLayout.height ............................... = ".concat((n.height/Cn).toFixed(1))),console.log("| tableProps.x .................................... = ".concat(typeof e.x=="number"?(e.x/Cn).toFixed(1):e.x)),console.log("| tableProps.y .................................... = ".concat(typeof e.y=="number"?(e.y/Cn).toFixed(1):e.y)),console.log("| tableProps.w .................................... = ".concat(typeof e.w=="number"?(e.w/Cn).toFixed(1):e.w)),console.log("| tableProps.h .................................... = ".concat(typeof e.h=="number"?(e.h/Cn).toFixed(1):e.h)),console.log("| tableProps.slideMargin .......................... = ".concat(e.slideMargin?String(e.slideMargin):"")),console.log("| tableProps.margin ............................... = ".concat(String(e.margin))),console.log("| tableProps.colW ................................. = ".concat(String(e.colW))),console.log("| tableProps.autoPageSlideStartY .................. = ".concat(e.autoPageSlideStartY)),console.log("| tableProps.autoPageCharWeight ................... = ".concat(e.autoPageCharWeight)),console.log("|-- CALCULATIONS -------------------------------------------------------|"),console.log("| tablePropX ...................................... = ".concat(u/Cn)),console.log("| tablePropY ...................................... = ".concat(f/Cn)),console.log("| tablePropW ...................................... = ".concat(d/Cn)),console.log("| tablePropH ...................................... = ".concat(h/Cn)),console.log("| tableCalcW ...................................... = ".concat(p/Cn))),!e.slideMargin&&e.slideMargin!==0&&(e.slideMargin=t8[0]),r&&typeof r._margin<"u"?Array.isArray(r._margin)?a=r._margin:isNaN(Number(r._margin))||(a=[Number(r._margin),Number(r._margin),Number(r._margin),Number(r._margin)]):(e.slideMargin||e.slideMargin===0)&&(Array.isArray(e.slideMargin)?a=e.slideMargin:isNaN(e.slideMargin)||(a=[e.slideMargin,e.slideMargin,e.slideMargin,e.slideMargin])),e.verbose&&console.log("| arrInchMargins .................................. = [".concat(a.join(", "),"]"));{var g=t[0]||[];g.forEach(function(A){A||(A={_type:In.tablecell});var x=A.options||null;l+=Number(x!=null&&x.colspan?x.colspan:1)}),e.verbose&&console.log("| numCols ......................................... = ".concat(l))}if(!d&&e.colW&&(p=Array.isArray(e.colW)?e.colW.reduce(function(A,x){return A+x})*Cn:e.colW*l||0,e.verbose&&console.log("| tableCalcW ...................................... = ".concat(p/Cn))),i=p||dr((u?u/Cn:a[1])+a[3]),e.verbose&&console.log("| emuSlideTabW .................................... = ".concat((i/Cn).toFixed(1))),!e.colW||!Array.isArray(e.colW))if(e.colW&&!isNaN(Number(e.colW))){var y=[],g=t[0]||[];g.forEach(function(){return y.push(e.colW)}),e.colW=[],y.forEach(function(x){Array.isArray(e.colW)&&e.colW.push(x)})}else{e.colW=[];for(var m=0;m<l;m++)e.colW.push(i/Cn/l)}var R={rows:[]};return t.forEach(function(A,x){var M=[],S=0,w=0,_=[];A.forEach(function(Q){var K,ne,Z,$;_.push({_type:In.tablecell,text:[],options:Q.options}),Q.options.margin&&Q.options.margin[0]>=1?(!((K=Q.options)===null||K===void 0)&&K.margin&&Q.options.margin[0]&&xn(Q.options.margin[0])>S?S=xn(Q.options.margin[0]):e!=null&&e.margin&&e.margin[0]&&xn(e.margin[0])>S&&(S=xn(e.margin[0])),!((ne=Q.options)===null||ne===void 0)&&ne.margin&&Q.options.margin[2]&&xn(Q.options.margin[2])>w?w=xn(Q.options.margin[2]):e!=null&&e.margin&&e.margin[2]&&xn(e.margin[2])>w&&(w=xn(e.margin[2]))):(!((Z=Q.options)===null||Z===void 0)&&Z.margin&&Q.options.margin[0]&&dr(Q.options.margin[0])>S?S=dr(Q.options.margin[0]):e!=null&&e.margin&&e.margin[0]&&dr(e.margin[0])>S&&(S=dr(e.margin[0])),!(($=Q.options)===null||$===void 0)&&$.margin&&Q.options.margin[2]&&dr(Q.options.margin[2])>w?w=dr(Q.options.margin[2]):e!=null&&e.margin&&e.margin[2]&&dr(e.margin[2])>w&&(w=dr(e.margin[2])))}),v(),s+=S+w,e.verbose&&x===0&&console.log("| SLIDE [".concat(c.length,"]: emuSlideTabH ...... = ").concat((o/Cn).toFixed(1)," ")),A.forEach(function(Q,K){var ne,Z={_type:In.tablecell,_lines:null,_lineHeight:dr((!((ne=Q.options)===null||ne===void 0)&&ne.fontSize?Q.options.fontSize:e.fontSize?e.fontSize:pu)*(U3t+(e.autoPageLineWeight?e.autoPageLineWeight:0))/100),text:[],options:Q.options};Z.options.rowspan&&(Z._lineHeight=0),Z.options.autoPageCharWeight=e.autoPageCharWeight?e.autoPageCharWeight:null;var $=e.colW[K];Q.options.colspan&&Array.isArray(e.colW)&&($=e.colW.filter(function(G,ee){return ee>=K&&ee<ee+Q.options.colspan}).reduce(function(G,ee){return G+ee})),Z._lines=H3t(Q,$),M.push(Z)}),e.verbose&&console.log(`-| SLIDE [`.concat(c.length,"]: ROW [").concat(x,"]: START..."));for(var T=0,O=0,N=!1;!N;){var P=M[T],C=_[T];if(M.forEach(function(Q){Q._lineHeight>=O&&(O=Q._lineHeight)}),s+O>o){e.verbose&&(console.log(`-|-----------------------------------------------------------------------|`),console.log("|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => ".concat((s/Cn).toFixed(2)," + ").concat((P._lineHeight/Cn).toFixed(2)," > ").concat(o/Cn)),console.log(`|-----------------------------------------------------------------------|--`)),_.length>0&&_.map(function(Q){return Q.text.length}).reduce(function(Q,K){return Q+K})>0&&R.rows.push(_),c.push(R);var E=[];R={rows:E},_=[],A.forEach(function(Q){return _.push({_type:In.tablecell,text:[],options:Q.options})}),v(),s+=S+w,e.verbose&&console.log("| SLIDE [".concat(c.length,"]: emuSlideTabH ...... = ").concat((o/Cn).toFixed(1)," ")),s=0,(e.addHeaderToEach||e.autoPageRepeatHeader)&&e._arrObjTabHeadRows&&e._arrObjTabHeadRows.forEach(function(Q){var K=[],ne=0;Q.forEach(function(Z){K.push(Z),Z._lineHeight>ne&&(ne=Z._lineHeight)}),R.rows.push(K),s+=ne}),C=_[T]}var F=P._lines.shift();Array.isArray(C.text)&&(F?C.text=C.text.concat(F):C.text.length===0&&(C.text=C.text.concat({_type:In.tablecell,text:""}))),T===M.length-1&&(s+=O),T=T<M.length-1?T+1:0;var Y=M.map(function(Q){return Q._lines.length}).reduce(function(Q,K){return Q+K});Y===0&&(N=!0)}_.length>0&&R.rows.push(_),e.verbose&&console.log("- SLIDE [".concat(c.length,"]: ROW [").concat(x,"]: ...COMPLETE ...... emuTabCurrH = ").concat((s/Cn).toFixed(2)," ( emuSlideTabH = ").concat((o/Cn).toFixed(2)," )"))}),c.push(R),e.verbose&&(console.log(`-|================================================|`),console.log("| FINAL: tableRowSlides.length = ".concat(c.length)),c.forEach(function(A){return console.log(A)}),console.log(`|================================================|--`)),c}function G3t(t,e,n,r){n===void 0&&(n={});var a=n||{};a.slideMargin=a.slideMargin||a.slideMargin===0?a.slideMargin:.5;var i=a.w||t.presLayout.width,o=[],s=[],l=[],c=[],u=[],f=[.5,.5,.5,.5],d=0;if(!document.getElementById(e))throw new Error('tableToSlides: Table ID "'+e+'" does not exist!');r!=null&&r._margin?(Array.isArray(r._margin)?f=r._margin:isNaN(r._margin)||(f=[r._margin,r._margin,r._margin,r._margin]),a.slideMargin=f):a!=null&&a.slideMargin&&(Array.isArray(a.slideMargin)?f=a.slideMargin:isNaN(a.slideMargin)||(f=[a.slideMargin,a.slideMargin,a.slideMargin,a.slideMargin])),i=(a.w?dr(a.w):t.presLayout.width)-dr(f[1]+f[3]),a.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- `tableToSlides` ----------------------------------------------------|"),console.log("| tableProps.h .................................... = ".concat(a.h)),console.log("| tableProps.w .................................... = ".concat(a.w)),console.log("| pptx.presLayout.width ........................... = ".concat((t.presLayout.width/Cn).toFixed(1))),console.log("| pptx.presLayout.height .......................... = ".concat((t.presLayout.height/Cn).toFixed(1))),console.log("| emuSlideTabW .................................... = ".concat((i/Cn).toFixed(1))));var h=document.querySelectorAll("#".concat(e," tr:first-child th"));h.length===0&&(h=document.querySelectorAll("#".concat(e," tr:first-child td"))),h.forEach(function(v){if(v.getAttribute("colspan"))for(var g=0;g<Number(v.getAttribute("colspan"));g++)u.push(Math.round(v.offsetWidth/Number(v.getAttribute("colspan"))));else u.push(v.offsetWidth)}),u.forEach(function(v){d+=v}),u.forEach(function(v,g){var y=Number((Number(i)*(v/d*100)/100/Cn).toFixed(2)),m=0,R=document.querySelector("#".concat(e," thead tr:first-child th:nth-child(").concat(g+1,")"));R&&(m=Number(R.getAttribute("data-pptx-min-width")));var A=document.querySelector("#".concat(e," thead tr:first-child th:nth-child(").concat(g+1,")"));A&&(m=Number(A.getAttribute("data-pptx-width"))),c.push(m>y?m:y)}),a.verbose&&console.log("| arrColW ......................................... = [".concat(c.join(", "),"]"));var p=["thead","tbody","tfoot"];p.forEach(function(v){document.querySelectorAll("#".concat(e," ").concat(v," tr")).forEach(function(g){var y=[];switch(Array.from(g.cells).forEach(function(m){var R=window.getComputedStyle(m).getPropertyValue("color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(","),A=window.getComputedStyle(m).getPropertyValue("background-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");(window.getComputedStyle(m).getPropertyValue("background-color")==="rgba(0, 0, 0, 0)"||window.getComputedStyle(m).getPropertyValue("transparent"))&&(A=["255","255","255"]);var x={align:null,bold:window.getComputedStyle(m).getPropertyValue("font-weight")==="bold"||Number(window.getComputedStyle(m).getPropertyValue("font-weight"))>=500,border:null,color:VH(Number(R[0]),Number(R[1]),Number(R[2])),fill:{color:VH(Number(A[0]),Number(A[1]),Number(A[2]))},fontFace:(window.getComputedStyle(m).getPropertyValue("font-family")||"").split(",")[0].replace(/"/g,"").replace("inherit","").replace("initial","")||null,fontSize:Number(window.getComputedStyle(m).getPropertyValue("font-size").replace(/[a-z]/gi,"")),margin:null,colspan:Number(m.getAttribute("colspan"))||null,rowspan:Number(m.getAttribute("rowspan"))||null,valign:null};if(["left","center","right","start","end"].includes(window.getComputedStyle(m).getPropertyValue("text-align"))){var M=window.getComputedStyle(m).getPropertyValue("text-align").replace("start","left").replace("end","right");x.align=M==="center"?"center":M==="left"?"left":M==="right"?"right":null}if(["top","middle","bottom"].includes(window.getComputedStyle(m).getPropertyValue("vertical-align"))){var S=window.getComputedStyle(m).getPropertyValue("vertical-align");x.valign=S==="top"?"top":S==="middle"?"middle":S==="bottom"?"bottom":null}if(window.getComputedStyle(m).getPropertyValue("padding-left")){x.margin=[0,0,0,0];var w=["padding-top","padding-right","padding-bottom","padding-left"];w.forEach(function(T,O){x.margin[O]=Math.round(Number(window.getComputedStyle(m).getPropertyValue(T).replace(/\D/gi,"")))})}if(window.getComputedStyle(m).getPropertyValue("border-top-width")||window.getComputedStyle(m).getPropertyValue("border-right-width")||window.getComputedStyle(m).getPropertyValue("border-bottom-width")||window.getComputedStyle(m).getPropertyValue("border-left-width")){x.border=[null,null,null,null];var _=["top","right","bottom","left"];_.forEach(function(T,O){var N=Math.round(Number(window.getComputedStyle(m).getPropertyValue("border-"+T+"-width").replace("px",""))),P=[];P=window.getComputedStyle(m).getPropertyValue("border-"+T+"-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");var C=VH(Number(P[0]),Number(P[1]),Number(P[2]));x.border[O]={pt:N,color:C}})}y.push({_type:In.tablecell,text:m.innerText,options:x})}),v){case"thead":o.push(y);break;case"tbody":s.push(y);break;case"tfoot":l.push(y);break;default:console.log("table parsing: unexpected table part: ".concat(v));break}})}),a._arrObjTabHeadRows=o||null,a.colW=c,_Oe(uF(uF(uF([],o,!0),s,!0),l,!0),a,t.presLayout,r).forEach(function(v,g){var y=t.addSlide({masterName:a.masterSlideName||null});g===0&&(a.y=a.y||f[0]),g>0&&(a.y=a.autoPageSlideStartY||a.newSlideStartY||f[0]),a.verbose&&console.log("| opts.autoPageSlideStartY: ".concat(a.autoPageSlideStartY," / arrInchMargins[0]: ").concat(f[0]," => opts.y = ").concat(a.y)),y.addTable(v.rows,{x:a.x||f[3],y:a.y,w:Number(i)/Cn,colW:c,autoPage:!1}),a.addImage&&(a.addImage.options=a.addImage.options||{},!a.addImage.image||!a.addImage.image.path&&!a.addImage.image.data?console.warn("Warning: tableToSlides.addImage requires either `path` or `data`"):y.addImage({path:a.addImage.image.path,data:a.addImage.image.data,x:a.addImage.options.x,y:a.addImage.options.y,w:a.addImage.options.w,h:a.addImage.options.h})),a.addShape&&y.addShape(a.addShape.shapeName,a.addShape.options||{}),a.addTable&&y.addTable(a.addTable.rows,a.addTable.options||{}),a.addText&&y.addText(a.addText.text,a.addText.options||{})})}var $3t=0;function z3t(t,e){t.bkgd&&(e.bkgd=t.bkgd),t.objects&&Array.isArray(t.objects)&&t.objects.length>0&&t.objects.forEach(function(n,r){var a=Object.keys(n)[0],i=e;f1[a]&&a==="chart"?wOe(i,n[a].type,n[a].data,n[a].opts):f1[a]&&a==="image"?LOe(i,n[a]):f1[a]&&a==="line"?PJ(i,eg.LINE,n[a]):f1[a]&&a==="rect"?PJ(i,eg.RECTANGLE,n[a]):f1[a]&&a==="text"?nD(i,[{text:n[a].text}],n[a].options,!1):f1[a]&&a==="placeholder"&&(n[a].options.placeholder=n[a].options.name,delete n[a].options.name,n[a].options._placeholderType=n[a].options.type,delete n[a].options.type,n[a].options._placeholderIdx=100+r,nD(i,[{text:n[a].text}],n[a].options,!0))}),t.slideNumber&&typeof t.slideNumber=="object"&&(e._slideNumberProps=t.slideNumber)}function wOe(t,e,n,r){var a;function i(f){!f||f.style==="none"||(f.size!==void 0&&(isNaN(Number(f.size))||f.size<=0)&&(console.warn("Warning: chart.gridLine.size must be greater than 0."),delete f.size),f.style&&!["solid","dash","dot"].includes(f.style)&&(console.warn("Warning: chart.gridLine.style options: `solid`, `dash`, `dot`."),delete f.style),f.cap&&!["flat","square","round"].includes(f.cap)&&(console.warn("Warning: chart.gridLine.cap options: `flat`, `square`, `round`."),delete f.cap))}var o=++$3t,s={_type:null,text:null,options:null,chartRid:null},l=null,c=[];Array.isArray(e)?(e.forEach(function(f){c=c.concat(f.data)}),l=n||r):(c=n,l=r),c.forEach(function(f,d){f._dataIndex=d,f.labels!==void 0&&!Array.isArray(f.labels[0])&&(f.labels=[f.labels])});var u=l&&typeof l=="object"?l:{};return u._type=e,u.x=typeof u.x<"u"&&u.x!=null&&!isNaN(Number(u.x))?u.x:1,u.y=typeof u.y<"u"&&u.y!=null&&!isNaN(Number(u.y))?u.y:1,u.w=u.w||"50%",u.h=u.h||"50%",u.objectName=u.objectName?Nn(u.objectName):"Chart ".concat(t._slideObjects.filter(function(f){return f._type===In.chart}).length),["bar","col"].includes(u.barDir||"")||(u.barDir="col"),u._type===Et.AREA&&(["stacked","standard","percentStacked"].includes(u.barGrouping||"")||(u.barGrouping="standard")),u._type===Et.BAR&&(["clustered","stacked","percentStacked"].includes(u.barGrouping||"")||(u.barGrouping="clustered")),u._type===Et.BAR3D&&(["clustered","stacked","standard","percentStacked"].includes(u.barGrouping||"")||(u.barGrouping="standard")),!((a=u.barGrouping)===null||a===void 0)&&a.includes("tacked")&&(u.barGapWidthPct||(u.barGapWidthPct=50)),u.dataLabelPosition&&((u._type===Et.AREA||u._type===Et.BAR3D||u._type===Et.DOUGHNUT||u._type===Et.RADAR)&&delete u.dataLabelPosition,u._type===Et.PIE&&(["bestFit","ctr","inEnd","outEnd"].includes(u.dataLabelPosition)||delete u.dataLabelPosition),(u._type===Et.BUBBLE||u._type===Et.BUBBLE3D||u._type===Et.LINE||u._type===Et.SCATTER)&&(["b","ctr","l","r","t"].includes(u.dataLabelPosition)||delete u.dataLabelPosition),u._type===Et.BAR&&(["stacked","percentStacked"].includes(u.barGrouping||"")||["ctr","inBase","inEnd"].includes(u.dataLabelPosition)||delete u.dataLabelPosition,["clustered"].includes(u.barGrouping||"")||["ctr","inBase","inEnd","outEnd"].includes(u.dataLabelPosition)||delete u.dataLabelPosition)),u.dataLabelBkgrdColors=u.dataLabelBkgrdColors||!u.dataLabelBkgrdColors?u.dataLabelBkgrdColors:!1,["b","l","r","t","tr"].includes(u.legendPos||"")||(u.legendPos="r"),["cone","coneToMax","box","cylinder","pyramid","pyramidToMax"].includes(u.bar3DShape||"")||(u.bar3DShape="box"),["circle","dash","diamond","dot","none","square","triangle"].includes(u.lineDataSymbol||"")||(u.lineDataSymbol="circle"),["gap","span"].includes(u.displayBlanksAs||"")||(u.displayBlanksAs="span"),["standard","marker","filled"].includes(u.radarStyle||"")||(u.radarStyle="standard"),u.lineDataSymbolSize=u.lineDataSymbolSize&&!isNaN(u.lineDataSymbolSize)?u.lineDataSymbolSize:6,u.lineDataSymbolLineSize=u.lineDataSymbolLineSize&&!isNaN(u.lineDataSymbolLineSize)?xn(u.lineDataSymbolLineSize):xn(.75),u.layout&&["x","y","w","h"].forEach(function(f){var d=u.layout[f];(isNaN(Number(d))||d<0||d>1)&&(console.warn("Warning: chart.layout."+f+" can only be 0-1"),delete u.layout[f])}),u.catGridLine=u.catGridLine||(u._type===Et.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),u.valGridLine=u.valGridLine||(u._type===Et.SCATTER?{color:"D9D9D9",size:1}:{}),u.serGridLine=u.serGridLine||(u._type===Et.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),i(u.catGridLine),i(u.valGridLine),i(u.serGridLine),cte(u.shadow),u.showDataTable=u.showDataTable||!u.showDataTable?u.showDataTable:!1,u.showDataTableHorzBorder=u.showDataTableHorzBorder||!u.showDataTableHorzBorder?u.showDataTableHorzBorder:!0,u.showDataTableVertBorder=u.showDataTableVertBorder||!u.showDataTableVertBorder?u.showDataTableVertBorder:!0,u.showDataTableOutline=u.showDataTableOutline||!u.showDataTableOutline?u.showDataTableOutline:!0,u.showDataTableKeys=u.showDataTableKeys||!u.showDataTableKeys?u.showDataTableKeys:!0,u.showLabel=u.showLabel||!u.showLabel?u.showLabel:!1,u.showLegend=u.showLegend||!u.showLegend?u.showLegend:!1,u.showPercent=u.showPercent||!u.showPercent?u.showPercent:!0,u.showTitle=u.showTitle||!u.showTitle?u.showTitle:!1,u.showValue=u.showValue||!u.showValue?u.showValue:!1,u.showLeaderLines=u.showLeaderLines||!u.showLeaderLines?u.showLeaderLines:!1,u.catAxisLineShow=typeof u.catAxisLineShow<"u"?u.catAxisLineShow:!0,u.valAxisLineShow=typeof u.valAxisLineShow<"u"?u.valAxisLineShow:!0,u.serAxisLineShow=typeof u.serAxisLineShow<"u"?u.serAxisLineShow:!0,u.v3DRotX=!isNaN(u.v3DRotX)&&u.v3DRotX>=-90&&u.v3DRotX<=90?u.v3DRotX:30,u.v3DRotY=!isNaN(u.v3DRotY)&&u.v3DRotY>=0&&u.v3DRotY<=360?u.v3DRotY:30,u.v3DRAngAx=u.v3DRAngAx||!u.v3DRAngAx?u.v3DRAngAx:!0,u.v3DPerspective=!isNaN(u.v3DPerspective)&&u.v3DPerspective>=0&&u.v3DPerspective<=240?u.v3DPerspective:30,u.barGapWidthPct=!isNaN(u.barGapWidthPct)&&u.barGapWidthPct>=0&&u.barGapWidthPct<=1e3?u.barGapWidthPct:150,u.barGapDepthPct=!isNaN(u.barGapDepthPct)&&u.barGapDepthPct>=0&&u.barGapDepthPct<=1e3?u.barGapDepthPct:150,u.chartColors=Array.isArray(u.chartColors)?u.chartColors:u._type===Et.PIE||u._type===Et.DOUGHNUT?Z3t:R_,u.chartColorsOpacity=u.chartColorsOpacity&&!isNaN(u.chartColorsOpacity)?u.chartColorsOpacity:null,u.border=u.border&&typeof u.border=="object"?u.border:null,u.border&&(!u.border.pt||isNaN(u.border.pt))&&(u.border.pt=Hb.pt),u.border&&(!u.border.color||typeof u.border.color!="string")&&(u.border.color=Hb.color),u.plotArea=u.plotArea||{},u.plotArea.border=u.plotArea.border&&typeof u.plotArea.border=="object"?u.plotArea.border:null,u.plotArea.border&&(!u.plotArea.border.pt||isNaN(u.plotArea.border.pt))&&(u.plotArea.border.pt=Hb.pt),u.plotArea.border&&(!u.plotArea.border.color||typeof u.plotArea.border.color!="string")&&(u.plotArea.border.color=Hb.color),u.border&&(u.plotArea.border=u.border),u.plotArea.fill=u.plotArea.fill||{color:null,transparency:null},u.fill&&(u.plotArea.fill.color=u.fill),u.chartArea=u.chartArea||{},u.chartArea.border=u.chartArea.border&&typeof u.chartArea.border=="object"?u.chartArea.border:null,u.chartArea.border&&(u.chartArea.border={color:u.chartArea.border.color||Hb.color,pt:u.chartArea.border.pt||Hb.pt}),u.chartArea.roundedCorners=typeof u.chartArea.roundedCorners=="boolean"?u.chartArea.roundedCorners:!0,u.dataBorder=u.dataBorder&&typeof u.dataBorder=="object"?u.dataBorder:null,u.dataBorder&&(!u.dataBorder.pt||isNaN(u.dataBorder.pt))&&(u.dataBorder.pt=.75),u.dataBorder&&(!u.dataBorder.color||typeof u.dataBorder.color!="string"||u.dataBorder.color.length!==6)&&(u.dataBorder.color="F9F9F9"),!u.dataLabelFormatCode&&u._type===Et.SCATTER&&(u.dataLabelFormatCode="General"),!u.dataLabelFormatCode&&(u._type===Et.PIE||u._type===Et.DOUGHNUT)&&(u.dataLabelFormatCode=u.showPercent?"0%":"General"),u.dataLabelFormatCode=u.dataLabelFormatCode&&typeof u.dataLabelFormatCode=="string"?u.dataLabelFormatCode:"#,##0",!u.dataLabelFormatScatter&&u._type===Et.SCATTER&&(u.dataLabelFormatScatter="custom"),u.lineSize=typeof u.lineSize=="number"?u.lineSize:2,u.valAxisMajorUnit=typeof u.valAxisMajorUnit=="number"?u.valAxisMajorUnit:null,u._type===Et.AREA||u._type===Et.BAR||u._type===Et.BAR3D||u._type===Et.LINE?u.catAxisMultiLevelLabels=!!u.catAxisMultiLevelLabels:delete u.catAxisMultiLevelLabels,s._type="chart",s.options=u,s.chartRid=a0(t),t._relsChart.push({rId:a0(t),data:c,opts:u,type:u._type,globalId:o,fileName:"chart".concat(o,".xml"),Target:"/ppt/charts/chart".concat(o,".xml")}),t._slideObjects.push(s),s}function LOe(t,e){var n={_type:null,text:null,options:null,image:null,imageRid:null,hyperlink:null},r=e.x||0,a=e.y||0,i=e.w||0,o=e.h||0,s=e.sizing||null,l=e.hyperlink||"",c=e.data||"",u=e.path||"",f=a0(t),d=e.objectName?Nn(e.objectName):"Image ".concat(t._slideObjects.filter(function(v){return v._type===In.image}).length);if(!u&&!c)return console.error("ERROR: addImage() requires either 'data' or 'path' parameter!"),null;if(u&&typeof u!="string")return console.error("ERROR: addImage() 'path' should be a string, ex: {path:'/img/sample.png'} - you sent ".concat(String(u))),null;if(c&&typeof c!="string")return console.error("ERROR: addImage() 'data' should be a string, ex: {data:'image/png;base64,NMP[...]'} - you sent ".concat(String(c))),null;if(c&&typeof c=="string"&&!c.toLowerCase().includes("base64,"))return console.error("ERROR: Image `data` value lacks a base64 header! Ex: 'image/png;base64,NMP[...]')"),null;var h=(u.substring(u.lastIndexOf("/")+1).split("?")[0].split(".").pop().split("#")[0]||"png").toLowerCase();if(c&&/image\/(\w+);/.exec(c)&&/image\/(\w+);/.exec(c).length>0?h=/image\/(\w+);/.exec(c)[1]:c!=null&&c.toLowerCase().includes("image/svg+xml")&&(h="svg"),n._type=In.image,n.image=u||"preencoded.png",n.options={x:r||0,y:a||0,w:i||1,h:o||1,altText:e.altText||"",rounding:typeof e.rounding=="boolean"?e.rounding:!1,sizing:s,placeholder:e.placeholder,rotate:e.rotate||0,flipV:e.flipV||!1,flipH:e.flipH||!1,transparency:e.transparency||0,objectName:d,shadow:cte(e.shadow)},h==="svg")t._relsMedia.push({path:u||c+"png",type:"image/png",extn:"png",data:c||"",rId:f,Target:"../media/image-".concat(t._slideNum,"-").concat(t._relsMedia.length+1,".png"),isSvgPng:!0,svgSize:{w:Kn(n.options.w,"X",t._presLayout),h:Kn(n.options.h,"Y",t._presLayout)}}),n.imageRid=f,t._relsMedia.push({path:u||c,type:"image/svg+xml",extn:h,data:c||"",rId:f+1,Target:"../media/image-".concat(t._slideNum,"-").concat(t._relsMedia.length+1,".").concat(h)}),n.imageRid=f+1;else{var p=t._relsMedia.filter(function(v){return v.path&&v.path===u&&v.type==="image/"+h&&!v.isDuplicate})[0];t._relsMedia.push({path:u||"preencoded."+h,type:"image/"+h,extn:h,data:c||"",rId:f,isDuplicate:!!(p!=null&&p.Target),Target:p!=null&&p.Target?p.Target:"../media/image-".concat(t._slideNum,"-").concat(t._relsMedia.length+1,".").concat(h)}),n.imageRid=f}if(typeof l=="object"){if(!l.url&&!l.slide)throw new Error("ERROR: `hyperlink` option requires either: `url` or `slide`");f++,t._rels.push({type:In.hyperlink,data:l.slide?"slide":"dummy",rId:f,Target:l.url||l.slide.toString()}),l._rId=f,n.hyperlink=l}t._slideObjects.push(n)}function J3t(t,e){var n=e.x||0,r=e.y||0,a=e.w||2,i=e.h||2,o=e.data||"",s=e.link||"",l=e.path||"",c=e.type||"audio",u="",f=e.cover||Q3t,d=e.objectName?Nn(e.objectName):"Media ".concat(t._slideObjects.filter(function(g){return g._type===In.media}).length),h={_type:In.media};if(!l&&!o&&c!=="online")throw new Error("addMedia() error: either `data` or `path` are required!");if(o&&!o.toLowerCase().includes("base64,"))throw new Error("addMedia() error: `data` value lacks a base64 header! Ex: 'video/mpeg;base64,NMP[...]')");if(!f.toLowerCase().includes("base64,"))throw new Error("addMedia() error: `cover` value lacks a base64 header! Ex: 'data:image/png;base64,iV[...]')");if(c==="online"&&!s)throw new Error("addMedia() error: online videos require `link` value");if(u=e.extn||(o?o.split(";")[0].split("/")[1]:l.split(".").pop())||"mp3",h.mtype=c,h.media=l||"preencoded.mov",h.options={},h.options.x=n,h.options.y=r,h.options.w=a,h.options.h=i,h.options.objectName=d,c==="online"){var p=a0(t);t._relsMedia.push({path:l||"preencoded"+u,data:"dummy",type:"online",extn:u,rId:p,Target:s}),h.mediaRid=p,t._relsMedia.push({path:"preencoded.png",data:f,type:"image/png",extn:"png",rId:a0(t),Target:"../media/image-".concat(t._slideNum,"-").concat(t._relsMedia.length+1,".png")})}else{var v=t._relsMedia.filter(function(y){return y.path&&y.path===l&&y.type===c+"/"+u&&!y.isDuplicate})[0],p=a0(t);t._relsMedia.push({path:l||"preencoded"+u,type:c+"/"+u,extn:u,data:o||"",rId:p,isDuplicate:!!(v!=null&&v.Target),Target:v!=null&&v.Target?v.Target:"../media/media-".concat(t._slideNum,"-").concat(t._relsMedia.length+1,".").concat(u)}),h.mediaRid=p,t._relsMedia.push({path:l||"preencoded"+u,type:c+"/"+u,extn:u,data:o||"",rId:a0(t),isDuplicate:!!(v!=null&&v.Target),Target:v!=null&&v.Target?v.Target:"../media/media-".concat(t._slideNum,"-").concat(t._relsMedia.length+0,".").concat(u)}),t._relsMedia.push({path:"preencoded.png",type:"image/png",extn:"png",data:f,rId:a0(t),Target:"../media/image-".concat(t._slideNum,"-").concat(t._relsMedia.length+1,".png")})}t._slideObjects.push(h)}function j3t(t,e){t._slideObjects.push({_type:In.notes,text:[{text:e}]})}function PJ(t,e,n){var r=typeof n=="object"?n:{};r.line=r.line||{type:"none"};var a={_type:In.text,shape:e||eg.RECTANGLE,options:r,text:null};if(!e)throw new Error("Missing/Invalid shape parameter! Example: `addShape(pptxgen.shapes.LINE, {x:1, y:1, w:1, h:1});`");var i={type:r.line.type||"solid",color:r.line.color||xOe,transparency:r.line.transparency||0,width:r.line.width||1,dashType:r.line.dashType||"solid",beginArrowType:r.line.beginArrowType||null,endArrowType:r.line.endArrowType||null};if(typeof r.line=="object"&&r.line.type!=="none"&&(r.line=i),r.x=r.x||(r.x===0?0:1),r.y=r.y||(r.y===0?0:1),r.w=r.w||(r.w===0?0:1),r.h=r.h||(r.h===0?0:1),r.objectName=r.objectName?Nn(r.objectName):"Shape ".concat(t._slideObjects.filter(function(s){return s._type===In.text}).length),typeof r.line=="string"){var o=i;o.color=String(r.line),r.line=o}typeof r.lineSize=="number"&&(r.line.width=r.lineSize),typeof r.lineDash=="string"&&(r.line.dashType=r.lineDash),typeof r.lineHead=="string"&&(r.line.beginArrowType=r.lineHead),typeof r.lineTail=="string"&&(r.line.endArrowType=r.lineTail),MS(t,a),t._slideObjects.push(a)}function q3t(t,e,n,r,a,i,o){var s=[t],l=n&&typeof n=="object"?n:{};l.objectName=l.objectName?Nn(l.objectName):"Table ".concat(t._slideObjects.filter(function(h){return h._type===In.table}).length);{if(e===null||e.length===0||!Array.isArray(e))throw new Error("addTable: Array expected! EX: 'slide.addTable( [rows], {options} );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)");if(!e[0]||!Array.isArray(e[0]))throw new Error("addTable: 'rows' should be an array of cells! EX: 'slide.addTable( [ ['A'], ['B'], {text:'C',options:{align:'center'}} ] );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)")}var c=[];e.forEach(function(h){var p=[];Array.isArray(h)?h.forEach(function(v){var g={_type:In.tablecell,text:"",options:typeof v=="object"&&v.options?v.options:{}};typeof v=="string"||typeof v=="number"?g.text=v.toString():v.text&&(typeof v.text=="string"||typeof v.text=="number"?g.text=v.text.toString():v.text&&(g.text=v.text),v.options&&typeof v.options=="object"&&(g.options=v.options)),g.options.border=g.options.border||l.border||[{type:"none"},{type:"none"},{type:"none"},{type:"none"}];var y=g.options.border;!Array.isArray(y)&&typeof y=="object"&&(g.options.border=[y,y,y,y]),g.options.border[0]||(g.options.border[0]={type:"none"}),g.options.border[1]||(g.options.border[1]={type:"none"}),g.options.border[2]||(g.options.border[2]={type:"none"}),g.options.border[3]||(g.options.border[3]={type:"none"});var m=[0,1,2,3];m.forEach(function(R){g.options.border[R]={type:g.options.border[R].type||Kb.type,color:g.options.border[R].color||Kb.color,pt:typeof g.options.border[R].pt=="number"?g.options.border[R].pt:Kb.pt}}),p.push(g)}):(console.log("addTable: tableRows has a bad row. A row should be an array of cells. You provided:"),console.log(h)),c.push(p)}),l.x=Kn(l.x||(l.x===0?0:Cn/2),"X",a),l.y=Kn(l.y||(l.y===0?0:Cn/2),"Y",a),l.h&&(l.h=Kn(l.h,"Y",a)),l.fontSize=l.fontSize||pu,l.margin=l.margin===0||l.margin?l.margin:bOe,typeof l.margin=="number"&&(l.margin=[Number(l.margin),Number(l.margin),Number(l.margin),Number(l.margin)]),l.color||(l.color=l.color||gl),typeof l.border=="string"?(console.warn("addTable `border` option must be an object. Ex: `{border: {type:'none'}}`"),l.border=null):Array.isArray(l.border)&&[0,1,2,3].forEach(function(h){l.border[h]=l.border[h]?{type:l.border[h].type||Kb.type,color:l.border[h].color||Kb.color,pt:l.border[h].pt||Kb.pt}:{type:"none"}}),l.autoPage=typeof l.autoPage=="boolean"?l.autoPage:!1,l.autoPageRepeatHeader=typeof l.autoPageRepeatHeader=="boolean"?l.autoPageRepeatHeader:!1,l.autoPageHeaderRows=typeof l.autoPageHeaderRows<"u"&&!isNaN(Number(l.autoPageHeaderRows))?Number(l.autoPageHeaderRows):1,l.autoPageLineWeight=typeof l.autoPageLineWeight<"u"&&!isNaN(Number(l.autoPageLineWeight))?Number(l.autoPageLineWeight):0,l.autoPageLineWeight&&(l.autoPageLineWeight>1?l.autoPageLineWeight=1:l.autoPageLineWeight<-1&&(l.autoPageLineWeight=-1));var u=t8;if(r&&typeof r._margin<"u"&&(Array.isArray(r._margin)?u=r._margin:isNaN(Number(r._margin))||(u=[Number(r._margin),Number(r._margin),Number(r._margin),Number(r._margin)])),l.colW){var f=c[0].reduce(function(h,p){var v;return!((v=p==null?void 0:p.options)===null||v===void 0)&&v.colspan&&typeof p.options.colspan=="number"?h+=p.options.colspan:h+=1,h},0);typeof l.colW=="string"||typeof l.colW=="number"||l.colW&&Array.isArray(l.colW)&&l.colW.length===1&&f>1?(l.w=Math.floor(Number(l.colW)*f),l.colW=null):l.colW&&Array.isArray(l.colW)&&l.colW.length!==f&&(console.warn("addTable: mismatch: (colW.length != data.length) Therefore, defaulting to evenly distributed col widths."),l.colW=null)}else l.w?l.w=Kn(l.w,"X",a):l.w=Math.floor(a._sizeW/Cn-u[1]-u[3]);l.x&&l.x<20&&(l.x=dr(l.x)),l.y&&l.y<20&&(l.y=dr(l.y)),l.w&&l.w<20&&(l.w=dr(l.w)),l.h&&l.h<20&&(l.h=dr(l.h)),c.forEach(function(h){h.forEach(function(p,v){typeof p=="number"||typeof p=="string"?h[v]={_type:In.tablecell,text:String(h[v]),options:l}:typeof p=="object"&&(typeof p.text=="number"?h[v].text=h[v].text.toString():(typeof p.text>"u"||p.text===null)&&(h[v].text=""),h[v].options=p.options||{},h[v]._type=In.tablecell)})});var d=[];return l&&!l.autoPage?(MS(t,c),t._slideObjects.push({_type:In.table,arrTabRows:c,options:Object.assign({},l)})):(l.autoPageRepeatHeader&&(l._arrObjTabHeadRows=c.filter(function(h,p){return p<l.autoPageHeaderRows})),_Oe(c,l,a,r).forEach(function(h,p){o(t._slideNum+p)||s.push(i({masterName:(r==null?void 0:r._name)||null})),p>0&&(l.y=dr(l.autoPageSlideStartY||l.newSlideStartY||u[0]));{var v=o(t._slideNum+p);l.autoPage=!1,MS(v,h.rows),v.addTable(h.rows,Object.assign({},l)),p>0&&d.push(v)}})),d}function nD(t,e,n,r){var a={_type:r?In.placeholder:In.text,shape:(n==null?void 0:n.shape)||eg.RECTANGLE,text:!e||e.length===0?[{text:"",options:null}]:e,options:n||{}};function i(o){{if(o.placeholder||(o.color=o.color||a.options.color||t.color||gl),(o.placeholder||r)&&(o.bullet=o.bullet||!1),o.placeholder&&t._slideLayout&&t._slideLayout._slideObjects){var s=t._slideLayout._slideObjects.filter(function(u){return u._type==="placeholder"&&u.options&&u.options.placeholder&&u.options.placeholder===o.placeholder})[0];s!=null&&s.options&&(o=pi(pi({},o),s.options))}if(o.objectName=o.objectName?Nn(o.objectName):"Text ".concat(t._slideObjects.filter(function(u){return u._type===In.text}).length),o.shape===eg.LINE){var l={type:o.line.type||"solid",color:o.line.color||xOe,transparency:o.line.transparency||0,width:o.line.width||1,dashType:o.line.dashType||"solid",beginArrowType:o.line.beginArrowType||null,endArrowType:o.line.endArrowType||null};if(typeof o.line=="object"&&(o.line=l),typeof o.line=="string"){var c=l;typeof o.line=="string"&&(c.color=o.line),o.line=c}typeof o.lineSize=="number"&&(o.line.width=o.lineSize),typeof o.lineDash=="string"&&(o.line.dashType=o.lineDash),typeof o.lineHead=="string"&&(o.line.beginArrowType=o.lineHead),typeof o.lineTail=="string"&&(o.line.endArrowType=o.lineTail)}o.line=o.line||{},o.lineSpacing=o.lineSpacing&&!isNaN(o.lineSpacing)?o.lineSpacing:null,o.lineSpacingMultiple=o.lineSpacingMultiple&&!isNaN(o.lineSpacingMultiple)?o.lineSpacingMultiple:null,o._bodyProp=o._bodyProp||{},o._bodyProp.autoFit=o.autoFit||!1,o._bodyProp.anchor=o.placeholder?null:Lx.ctr,o._bodyProp.vert=o.vert||null,o._bodyProp.wrap=typeof o.wrap=="boolean"?o.wrap:!0,(o.inset&&!isNaN(Number(o.inset))||o.inset===0)&&(o._bodyProp.lIns=dr(o.inset),o._bodyProp.rIns=dr(o.inset),o._bodyProp.tIns=dr(o.inset),o._bodyProp.bIns=dr(o.inset)),typeof o.underline=="boolean"&&o.underline===!0&&(o.underline={style:"sng"})}return(o.align||"").toLowerCase().indexOf("c")===0?o._bodyProp.align=_x.center:(o.align||"").toLowerCase().indexOf("l")===0?o._bodyProp.align=_x.left:(o.align||"").toLowerCase().indexOf("r")===0?o._bodyProp.align=_x.right:(o.align||"").toLowerCase().indexOf("j")===0&&(o._bodyProp.align=_x.justify),(o.valign||"").toLowerCase().indexOf("b")===0?o._bodyProp.anchor=Lx.b:(o.valign||"").toLowerCase().indexOf("m")===0?o._bodyProp.anchor=Lx.ctr:(o.valign||"").toLowerCase().indexOf("t")===0&&(o._bodyProp.anchor=Lx.t),cte(o.shadow),o}a.options=i(a.options),a.text.forEach(function(o){return o.options=i(o.options||{})}),MS(t,a.text||""),t._slideObjects.push(a)}function eMt(t){(t._slideLayout._slideObjects||[]).forEach(function(e){e._type===In.placeholder&&t._slideObjects.filter(function(n){return n.options&&n.options.placeholder===e.options.placeholder}).length===0&&nD(t,[{text:""}],e.options,!1)})}function TOe(t,e){var n;if(e.bkgd&&(e.background||(e.background={}),typeof e.bkgd=="string"?e.background.color=e.bkgd:(e.bkgd.data&&(e.background.data=e.bkgd.data),e.bkgd.path&&(e.background.path=e.bkgd.path),e.bkgd.src&&(e.background.path=e.bkgd.src))),!((n=e.background)===null||n===void 0)&&n.fill&&(e.background.color=e.background.fill),t&&(t.path||t.data)){t.path=t.path||"preencoded.png";var r=(t.path.split(".").pop()||"png").split("?")[0];r==="jpg"&&(r="jpeg"),e._relsMedia=e._relsMedia||[];var a=e._relsMedia.length+1;e._relsMedia.push({path:t.path,type:In.image,extn:r,data:t.data||null,rId:a,Target:"../media/".concat((e._name||"").replace(/\s+/gi,"-"),"-image-").concat(e._relsMedia.length+1,".").concat(r)}),e._bkgdImgRid=a}}function MS(t,e){var n=[];typeof e=="string"||typeof e=="number"||(Array.isArray(e)?n=e:typeof e=="object"&&(n=[e]),n.forEach(function(r){if(Array.isArray(r))MS(t,r);else if(Array.isArray(r.text))MS(t,r.text);else if(r&&typeof r=="object"&&r.options&&r.options.hyperlink&&!r.options.hyperlink._rId)if(typeof r.options.hyperlink!="object")console.log("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink: {url:'https://github.com'}` ");else if(!r.options.hyperlink.url&&!r.options.hyperlink.slide)console.log("ERROR: 'hyperlink requires either: `url` or `slide`'");else{var a=a0(t);t._rels.push({type:In.hyperlink,data:r.options.hyperlink.slide?"slide":"dummy",rId:a,Target:Nn(r.options.hyperlink.url)||r.options.hyperlink.slide.toString()}),r.options.hyperlink._rId=a}}))}var tMt=function(){function t(e){var n;this.addSlide=e.addSlide,this.getSlide=e.getSlide,this._name="Slide ".concat(e.slideNumber),this._presLayout=e.presLayout,this._rId=e.slideRId,this._rels=[],this._relsChart=[],this._relsMedia=[],this._setSlideNum=e.setSlideNum,this._slideId=e.slideId,this._slideLayout=e.slideLayout||null,this._slideNum=e.slideNumber,this._slideObjects=[],this._slideNumberProps=!((n=this._slideLayout)===null||n===void 0)&&n._slideNumberProps?this._slideLayout._slideNumberProps:null}return Object.defineProperty(t.prototype,"bkgd",{get:function(){return this._bkgd},set:function(e){this._bkgd=e,(!this._background||!this._background.color)&&(this._background||(this._background={}),typeof e=="string"&&(this._background.color=e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"background",{get:function(){return this._background},set:function(e){this._background=e,e&&TOe(e,this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hidden",{get:function(){return this._hidden},set:function(e){this._hidden=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"slideNumber",{get:function(){return this._slideNumberProps},set:function(e){this._slideNumberProps=e,this._setSlideNum(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newAutoPagedSlides",{get:function(){return this._newAutoPagedSlides},enumerable:!1,configurable:!0}),t.prototype.addChart=function(e,n,r){var a=r||{};return a._type=e,wOe(this,e,n,r),this},t.prototype.addImage=function(e){return LOe(this,e),this},t.prototype.addMedia=function(e){return J3t(this,e),this},t.prototype.addNotes=function(e){return j3t(this,e),this},t.prototype.addShape=function(e,n){return PJ(this,e,n),this},t.prototype.addTable=function(e,n){return this._newAutoPagedSlides=q3t(this,e,n,this._slideLayout,this._presLayout,this.addSlide,this.getSlide),this},t.prototype.addText=function(e,n){var r=typeof e=="string"||typeof e=="number"?[{text:e,options:n}]:e;return nD(this,r,n,!1),this},t}();function nMt(t,e){return th(this,void 0,void 0,function(){var n;return nh(this,function(r){switch(r.label){case 0:return n=t.data,[4,new Promise(function(a,i){var o,s,l=new ROe,c=(n.length-1)*2+1,u=((s=(o=n[0])===null||o===void 0?void 0:o.labels)===null||s===void 0?void 0:s.length)>1;l.folder("_rels"),l.folder("docProps"),l.folder("xl/_rels"),l.folder("xl/tables"),l.folder("xl/theme"),l.folder("xl/worksheets"),l.folder("xl/worksheets/_rels"),l.file("[Content_Types].xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"> <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/> <Default Extension="xml" ContentType="application/xml"/> <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/> <Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/> <Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/> <Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/> <Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/> <Override PartName="/xl/tables/table1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"/> <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/> <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>-`),l.file("_rels/.rels",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>-`),l.file("docProps/app.xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Macintosh Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company></Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>-`),l.file("docProps/core.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator>PptxGenJS</dc:creator><cp:lastModifiedBy>PptxGenJS</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">'+new Date().toISOString()+'</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">'+new Date().toISOString()+"</dcterms:modified></cp:coreProperties>"),l.file("xl/_rels/workbook.xml.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>'),l.file("xl/styles.xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><numFmts count="1"><numFmt numFmtId="0" formatCode="General"/></numFmts><fonts count="4"><font><sz val="9"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="9"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="10"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="18"/><color indexed="8"/><name val="Arial"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><dxfs count="0"/><tableStyles count="0"/><colors><indexedColors><rgbColor rgb="ff000000"/><rgbColor rgb="ffffffff"/><rgbColor rgb="ffff0000"/><rgbColor rgb="ff00ff00"/><rgbColor rgb="ff0000ff"/><rgbColor rgb="ffffff00"/><rgbColor rgb="ffff00ff"/><rgbColor rgb="ff00ffff"/><rgbColor rgb="ff000000"/><rgbColor rgb="ffffffff"/><rgbColor rgb="ff878787"/><rgbColor rgb="fff9f9f9"/></indexedColors></colors></styleSheet>-`),l.file("xl/theme/theme1.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="Yu Gothic Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="DengXian Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="Yu Gothic"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="DengXian"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme>'),l.file("xl/workbook.xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x15" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><fileVersion appName="xl" lastEdited="7" lowestEdited="6" rupBuild="10507"/><workbookPr/><bookViews><workbookView xWindow="0" yWindow="500" windowWidth="20960" windowHeight="15960"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><calcPr calcId="0" concurrentCalc="0"/></workbook>-`),l.file("xl/worksheets/_rels/sheet1.xml.rels",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" Target="../tables/table1.xml"/></Relationships>-`);{var f='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';if(t.opts._type===Et.BUBBLE||t.opts._type===Et.BUBBLE3D)f+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat(c,'" uniqueCount="').concat(c,'">');else if(t.opts._type===Et.SCATTER)f+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat(n.length,'" uniqueCount="').concat(n.length,'">');else if(u){var d=n.length;n[0].labels.forEach(function(S){return d+=S.filter(function(w){return w&&w!==""}).length}),f+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat(d,'" uniqueCount="').concat(d,'">'),f+="<si><t/></si>"}else{var h=n.length+n[0].labels.length*n[0].labels[0].length+n[0].labels.length,p=n.length+n[0].labels.length*n[0].labels[0].length+1;f+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat(h,'" uniqueCount="').concat(p,'">'),f+='<si><t xml:space="preserve"></t></si>'}t.opts._type===Et.BUBBLE||t.opts._type===Et.BUBBLE3D?n.forEach(function(S,w){w===0?f+="<si><t>X-Axis</t></si>":(f+="<si><t>".concat(Nn(S.name||"Y-Axis".concat(w)),"</t></si>"),f+="<si><t>".concat(Nn("Size".concat(w)),"</t></si>"))}):n.forEach(function(S){f+="<si><t>".concat(Nn((S.name||" ").replace("X-Axis","X-Values")),"</t></si>")}),t.opts._type!==Et.BUBBLE&&t.opts._type!==Et.BUBBLE3D&&t.opts._type!==Et.SCATTER&&n[0].labels.slice().reverse().forEach(function(S){S.filter(function(w){return w&&w!==""}).forEach(function(w){f+="<si><t>".concat(Nn(w),"</t></si>")})}),f+=`</sst>-`,l.file("xl/sharedStrings.xml",f)}{var v='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';if(t.opts._type===Et.BUBBLE||t.opts._type===Et.BUBBLE3D){v+='<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" id="1" name="Table1" displayName="Table1" ref="A1:'.concat(Ur(c)).concat(c,'" totalsRowShown="0">'),v+='<tableColumns count="'.concat(c,'">');var g=1;n.forEach(function(S,w){w===0?v+='<tableColumn id="'.concat(w+1,'" name="X-Values"/>'):(v+='<tableColumn id="'.concat(w+g,'" name="').concat(S.name,'"/>'),g++,v+='<tableColumn id="'.concat(w+g,'" name="Size').concat(w,'"/>'))})}else t.opts._type===Et.SCATTER?(v+='<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" id="1" name="Table1" displayName="Table1" ref="A1:'.concat(Ur(n.length)).concat(n[0].values.length+1,'" totalsRowShown="0">'),v+='<tableColumns count="'.concat(n.length,'">'),n.forEach(function(S,w){v+='<tableColumn id="'.concat(w+1,'" name="').concat(w===0?"X-Values":"Y-Value ").concat(w,'"/>')})):(v+='<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" id="1" name="Table1" displayName="Table1" ref="A1:'.concat(Ur(n.length+n[0].labels.length)).concat(n[0].labels[0].length+1,`'" totalsRowShown="0">`),v+='<tableColumns count="'.concat(n.length+n[0].labels.length,'">'),n[0].labels.forEach(function(S,w){v+='<tableColumn id="'.concat(w+1,'" name="Column').concat(w+1,'"/>')}),n.forEach(function(S,w){v+='<tableColumn id="'.concat(w+n[0].labels.length+1,'" name="').concat(Nn(S.name),'"/>')}));v+="</tableColumns>",v+='<tableStyleInfo showFirstColumn="0" showLastColumn="0" showRowStripes="1" showColumnStripes="0"/>',v+="</table>",l.file("xl/tables/table1.xml",v)}{var y='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';if(y+='<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">',t.opts._type===Et.BUBBLE||t.opts._type===Et.BUBBLE3D?y+='<dimension ref="A1:'.concat(Ur(c)).concat(n[0].values.length+1,'"/>'):t.opts._type===Et.SCATTER?y+='<dimension ref="A1:'.concat(Ur(n.length)).concat(n[0].values.length+1,'"/>'):y+='<dimension ref="A1:'.concat(Ur(n.length+1)).concat(n[0].values.length+1,'"/>'),y+='<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="B1" sqref="B1"/></sheetView></sheetViews>',y+='<sheetFormatPr baseColWidth="10" defaultRowHeight="16"/>',t.opts._type===Et.BUBBLE||t.opts._type===Et.BUBBLE3D){y+="<sheetData>",y+='<row r="1" spans="1:'.concat(c,'">'),y+='<c r="A1" t="s"><v>0</v></c>';for(var m=1;m<c;m++)y+='<c r="'.concat(Ur(m+1),'1" t="s"><v>').concat(m,"</v></c>");y+="</row>",n[0].values.forEach(function(S,w){y+='<row r="'.concat(w+2,'" spans="1:').concat(c,'">'),y+='<c r="A'.concat(w+2,'"><v>').concat(S,"</v></c>");for(var _=2,T=1;T<n.length;T++)y+='<c r="'.concat(Ur(_)).concat(w+2,'"><v>').concat(n[T].values[w]||"","</v></c>"),_++,y+='<c r="'.concat(Ur(_)).concat(w+2,'"><v>').concat(n[T].sizes[w]||"","</v></c>"),_++;y+="</row>"})}else if(t.opts._type===Et.SCATTER){y+="<sheetData>",y+='<row r="1" spans="1:'.concat(n.length,'">');for(var m=0;m<n.length;m++)y+='<c r="'.concat(Ur(m+1),'1" t="s"><v>').concat(m,"</v></c>");y+="</row>",n[0].values.forEach(function(S,w){y+='<row r="'.concat(w+2,'" spans="1:').concat(n.length,'">'),y+='<c r="A'.concat(w+2,'"><v>').concat(S,"</v></c>");for(var _=1;_<n.length;_++)y+='<c r="'.concat(Ur(_+1)).concat(w+2,'"><v>').concat(n[_].values[w]||n[_].values[w]===0?n[_].values[w]:"","</v></c>");y+="</row>"})}else if(y+="<sheetData>",u){y+='<row r="1" spans="1:'.concat(n.length+n[0].labels.length,'">');for(var m=0;m<n[0].labels.length;m++)y+='<c r="'.concat(Ur(m+1),'1" t="s"><v>0</v></c>');for(var m=n[0].labels.length-1;m<n.length+n[0].labels.length-1;m++)y+='<c r="'.concat(Ur(m+n[0].labels.length),'1" t="s"><v>').concat(m,"</v></c>");y+="</row>";for(var R=n.length,A=n[0].labels[0].length,x=n[0].labels.length,M=function(S){y+='<row r="'.concat(S+2,'" spans="1:').concat(R+x,'">');var w=R,_=n[0].labels.slice().reverse();_.forEach(function(O,N){var P=O[S];if(P){var C=N===0?1:_[N-1].filter(function(E){return E&&E!==""}).length;w+=C,y+='<c r="'.concat(Ur(S+1+N)).concat(S+2,'" t="s"><v>').concat(w,"</v></c>")}});for(var T=0;T<R;T++)y+='<c r="'.concat(Ur(x+T+1)).concat(S+2,'"><v>').concat(n[T].values[S]||0,"</v></c>");y+="</row>"},m=0;m<A;m++)M(m)}else{y+='<row r="1" spans="1:'.concat(n.length+n[0].labels.length,'">'),n[0].labels.forEach(function(S,w){y+='<c r="'.concat(Ur(w+1),'1" t="s"><v>0</v></c>')});for(var m=0;m<n.length;m++)y+='<c r="'.concat(Ur(m+1+n[0].labels.length),'1" t="s"><v>').concat(m+1,"</v></c>");y+="</row>",n[0].labels[0].forEach(function(S,w){y+='<row r="'.concat(w+2,'" spans="1:').concat(n.length+n[0].labels.length,'">');for(var _=n[0].labels.length-1;_>=0;_--)y+='<c r="'.concat(Ur(n[0].labels.length-_)).concat(w+2,'" t="s">'),y+="<v>".concat(n.length+w+1,"</v>"),y+="</c>";for(var T=0;T<n.length;T++)y+='<c r="'.concat(Ur(n[0].labels.length+T+1)).concat(w+2,'"><v>').concat(n[T].values[w]||"","</v></c>");y+="</row>"})}y+="</sheetData>",y+='<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/>',y+=`</worksheet>-`,l.file("xl/worksheets/sheet1.xml",y)}l.generateAsync({type:"base64"}).then(function(S){e.file("ppt/embeddings/Microsoft_Excel_Worksheet".concat(t.globalId,".xlsx"),S,{base64:!0}),e.file("ppt/charts/_rels/"+t.fileName+".rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+'<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/package" Target="../embeddings/Microsoft_Excel_Worksheet'.concat(t.globalId,'.xlsx"/>')+"</Relationships>"),e.file("ppt/charts/".concat(t.fileName),rMt(t)),a("")}).catch(function(S){i(S)})})];case 1:return[2,r.sent()]}})})}function rMt(t){var e,n,r,a,i='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',o=!1;if(i+='<c:chartSpace xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">',i+='<c:date1904 val="0"/>',i+='<c:roundedCorners val="'.concat(t.opts.chartArea.roundedCorners?"1":"0",'"/>'),i+="<c:chart>",t.opts.showTitle?(i+=ZV({title:t.opts.title||"Chart Title",color:t.opts.titleColor,fontFace:t.opts.titleFontFace,fontSize:t.opts.titleFontSize||Y3t,titleAlign:t.opts.titleAlign,titleBold:t.opts.titleBold,titlePos:t.opts.titlePos,titleRotate:t.opts.titleRotate},t.opts.x,t.opts.y),i+='<c:autoTitleDeleted val="0"/>'):i+='<c:autoTitleDeleted val="1"/>',t.opts._type===Et.BAR3D&&(i+='<c:view3D><c:rotX val="'.concat(t.opts.v3DRotX,'"/><c:rotY val="').concat(t.opts.v3DRotY,'"/><c:rAngAx val="').concat(t.opts.v3DRAngAx?1:0,'"/><c:perspective val="').concat(t.opts.v3DPerspective,'"/></c:view3D>')),i+="<c:plotArea>",t.opts.layout?(i+="<c:layout>",i+=" <c:manualLayout>",i+=' <c:layoutTarget val="inner" />',i+=' <c:xMode val="edge" />',i+=' <c:yMode val="edge" />',i+=' <c:x val="'+(t.opts.layout.x||0)+'" />',i+=' <c:y val="'+(t.opts.layout.y||0)+'" />',i+=' <c:w val="'+(t.opts.layout.w||1)+'" />',i+=' <c:h val="'+(t.opts.layout.h||1)+'" />',i+=" </c:manualLayout>",i+="</c:layout>"):i+="<c:layout/>",Array.isArray(t.opts._type)?t.opts._type.forEach(function(s){var l=pi(pi({},t.opts),s.options),c=l.secondaryValAxis?fF:zp,u=l.secondaryCatAxis?SJ:A_;o=o||l.secondaryValAxis,i+=iRe(s.type,s.data,l,c,u)}):i+=iRe(t.opts._type,t.data,t.opts,zp,A_),t.opts._type!==Et.PIE&&t.opts._type!==Et.DOUGHNUT){if(t.opts.valAxes&&t.opts.valAxes.length>1&&!o)throw new Error("Secondary axis must be used by one of the multiple charts");if(t.opts.catAxes){if(!t.opts.valAxes||t.opts.valAxes.length!==t.opts.catAxes.length)throw new Error("There must be the same number of value and category axes.");i+=UH(pi(pi({},t.opts),t.opts.catAxes[0]),A_,zp)}else i+=UH(t.opts,A_,zp);t.opts.valAxes?(i+=WH(pi(pi({},t.opts),t.opts.valAxes[0]),zp),t.opts.valAxes[1]&&(i+=WH(pi(pi({},t.opts),t.opts.valAxes[1]),fF))):(i+=WH(t.opts,zp),t.opts._type===Et.BAR3D&&(i+=aMt(t.opts,SOe,zp))),!((e=t.opts)===null||e===void 0)&&e.catAxes&&(!((n=t.opts)===null||n===void 0)&&n.catAxes[1])&&(i+=UH(pi(pi({},t.opts),t.opts.catAxes[1]),SJ,fF))}return t.opts.showDataTable&&(i+="<c:dTable>",i+=' <c:showHorzBorder val="'.concat(t.opts.showDataTableHorzBorder?1:0,'"/>'),i+=' <c:showVertBorder val="'.concat(t.opts.showDataTableVertBorder?1:0,'"/>'),i+=' <c:showOutline val="'.concat(t.opts.showDataTableOutline?1:0,'"/>'),i+=' <c:showKeys val="'.concat(t.opts.showDataTableKeys?1:0,'"/>'),i+=" <c:spPr>",i+=" <a:noFill/>",i+=' <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill><a:round/></a:ln>',i+=" <a:effectLst/>",i+=" </c:spPr>",i+=" <c:txPr>",i+=' <a:bodyPr rot="0" spcFirstLastPara="1" vertOverflow="ellipsis" vert="horz" wrap="square" anchor="ctr" anchorCtr="1"/>',i+=" <a:lstStyle/>",i+=" <a:p>",i+=' <a:pPr rtl="0">',i+=' <a:defRPr sz="'.concat(Math.round((t.opts.dataTableFontSize||pu)*100),'" b="0" i="0" u="none" strike="noStrike" kern="1200" baseline="0">'),i+=' <a:solidFill><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></a:solidFill>',i+=' <a:latin typeface="+mn-lt"/>',i+=' <a:ea typeface="+mn-ea"/>',i+=' <a:cs typeface="+mn-cs"/>',i+=" </a:defRPr>",i+=" </a:pPr>",i+=' <a:endParaRPr lang="en-US"/>',i+=" </a:p>",i+=" </c:txPr>",i+="</c:dTable>"),i+=" <c:spPr>",i+=!((r=t.opts.plotArea.fill)===null||r===void 0)&&r.color?uc(t.opts.plotArea.fill):"<a:noFill/>",i+=t.opts.plotArea.border?'<a:ln w="'.concat(xn(t.opts.plotArea.border.pt),'" cap="flat">').concat(uc(t.opts.plotArea.border.color),"</a:ln>"):"<a:ln><a:noFill/></a:ln>",i+=" <a:effectLst/>",i+=" </c:spPr>",i+="</c:plotArea>",t.opts.showLegend&&(i+="<c:legend>",i+='<c:legendPos val="'+t.opts.legendPos+'"/>',i+='<c:overlay val="0"/>',(t.opts.legendFontFace||t.opts.legendFontSize||t.opts.legendColor)&&(i+="<c:txPr>",i+=" <a:bodyPr/>",i+=" <a:lstStyle/>",i+=" <a:p>",i+=" <a:pPr>",i+=t.opts.legendFontSize?'<a:defRPr sz="'.concat(Math.round(Number(t.opts.legendFontSize)*100),'">'):"<a:defRPr>",t.opts.legendColor&&(i+=uc(t.opts.legendColor)),t.opts.legendFontFace&&(i+='<a:latin typeface="'+t.opts.legendFontFace+'"/>'),t.opts.legendFontFace&&(i+='<a:cs typeface="'+t.opts.legendFontFace+'"/>'),i+=" </a:defRPr>",i+=" </a:pPr>",i+=' <a:endParaRPr lang="en-US"/>',i+=" </a:p>",i+="</c:txPr>"),i+="</c:legend>"),i+=' <c:plotVisOnly val="1"/>',i+=' <c:dispBlanksAs val="'+t.opts.displayBlanksAs+'"/>',t.opts._type===Et.SCATTER&&(i+='<c:showDLblsOverMax val="1"/>'),i+="</c:chart>",i+="<c:spPr>",i+=!((a=t.opts.chartArea.fill)===null||a===void 0)&&a.color?uc(t.opts.chartArea.fill):"<a:noFill/>",i+=t.opts.chartArea.border?'<a:ln w="'.concat(xn(t.opts.chartArea.border.pt),'" cap="flat">').concat(uc(t.opts.chartArea.border.color),"</a:ln>"):"<a:ln><a:noFill/></a:ln>",i+=" <a:effectLst/>",i+="</c:spPr>",i+='<c:externalData r:id="rId1"><c:autoUpdate val="0"/></c:externalData>',i+="</c:chartSpace>",i}function iRe(t,e,n,r,a,i){var o=-1,s=1,l=null,c="";switch(t){case Et.AREA:case Et.BAR:case Et.BAR3D:case Et.LINE:case Et.RADAR:c+="<c:".concat(t,"Chart>"),t===Et.AREA&&n.barGrouping==="stacked"&&(c+='<c:grouping val="'+n.barGrouping+'"/>'),(t===Et.BAR||t===Et.BAR3D)&&(c+='<c:barDir val="'+n.barDir+'"/>',c+='<c:grouping val="'+(n.barGrouping||"clustered")+'"/>'),t===Et.RADAR&&(c+='<c:radarStyle val="'+n.radarStyle+'"/>'),c+='<c:varyColors val="0"/>',e.forEach(function(u){var f;o++,c+="<c:ser>",c+=' <c:idx val="'.concat(u._dataIndex,'"/><c:order val="').concat(u._dataIndex,'"/>'),c+=" <c:tx>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$"+Ur(u._dataIndex+u.labels.length+1)+"$1</c:f>",c+=' <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>'+Nn(u.name)+"</c:v></c:pt></c:strCache>",c+=" </c:strRef>",c+=" </c:tx>";var d=n.chartColors?n.chartColors[o%n.chartColors.length]:null;c+=" <c:spPr>",d==="transparent"?c+="<a:noFill/>":n.chartColorsOpacity?c+="<a:solidFill>"+br(d,'<a:alpha val="'.concat(Math.round(n.chartColorsOpacity*1e3),'"/>'))+"</a:solidFill>":c+="<a:solidFill>"+br(d)+"</a:solidFill>",t===Et.LINE||t===Et.RADAR?n.lineSize===0?c+="<a:ln><a:noFill/></a:ln>":(c+='<a:ln w="'.concat(xn(n.lineSize),'" cap="').concat(hF(n.lineCap),'"><a:solidFill>').concat(br(d),"</a:solidFill>"),c+='<a:prstDash val="'+(n.lineDash||"solid")+'"/><a:round/></a:ln>'):n.dataBorder&&(c+='<a:ln w="'.concat(xn(n.dataBorder.pt),'" cap="').concat(hF(n.lineCap),'"><a:solidFill>').concat(br(n.dataBorder.color),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>')),c+=m2(n.shadow,g2),c+=" </c:spPr>",c+=' <c:invertIfNegative val="0"/>',t!==Et.RADAR&&(c+="<c:dLbls>",c+='<c:numFmt formatCode="'.concat(Nn(n.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),n.dataLabelBkgrdColors&&(c+="<c:spPr><a:solidFill>".concat(br(d),"</a:solidFill></c:spPr>")),c+="<c:txPr><a:bodyPr/><a:lstStyle/><a:p><a:pPr>",c+='<a:defRPr b="'.concat(n.dataLabelFontBold?1:0,'" i="').concat(n.dataLabelFontItalic?1:0,'" strike="noStrike" sz="').concat(Math.round((n.dataLabelFontSize||pu)*100),'" u="none">'),c+="<a:solidFill>".concat(br(n.dataLabelColor||gl),"</a:solidFill>"),c+='<a:latin typeface="'.concat(n.dataLabelFontFace||"Arial",'"/>'),c+="</a:defRPr></a:pPr></a:p></c:txPr>",n.dataLabelPosition&&(c+='<c:dLblPos val="'.concat(n.dataLabelPosition,'"/>')),c+='<c:showLegendKey val="0"/>',c+='<c:showVal val="'.concat(n.showValue?"1":"0",'"/>'),c+='<c:showCatName val="0"/><c:showSerName val="'.concat(n.showSerName?"1":"0",'"/><c:showPercent val="0"/><c:showBubbleSize val="0"/>'),c+='<c:showLeaderLines val="'.concat(n.showLeaderLines?"1":"0",'"/>'),c+="</c:dLbls>"),(t===Et.LINE||t===Et.RADAR)&&(c+="<c:marker>",c+=' <c:symbol val="'+n.lineDataSymbol+'"/>',n.lineDataSymbolSize&&(c+='<c:size val="'.concat(n.lineDataSymbolSize,'"/>')),c+=" <c:spPr>",c+=" <a:solidFill>".concat(br(n.chartColors[u._dataIndex+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):u._dataIndex]),"</a:solidFill>"),c+=' <a:ln w="'.concat(n.lineDataSymbolLineSize,'" cap="flat"><a:solidFill>').concat(br(n.lineDataSymbolLineColor||d),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>'),c+=" <a:effectLst/>",c+=" </c:spPr>",c+="</c:marker>"),(t===Et.BAR||t===Et.BAR3D)&&e.length===1&&(n.chartColors&&n.chartColors!==R_&&n.chartColors.length>1||!((f=n.invertedColors)===null||f===void 0)&&f.length)&&u.values.forEach(function(h,p){var v=h<0?n.invertedColors||n.chartColors||R_:n.chartColors||[];c+=" <c:dPt>",c+=' <c:idx val="'.concat(p,'"/>'),c+=' <c:invertIfNegative val="0"/>',c+=' <c:bubble3D val="0"/>',c+=" <c:spPr>",n.lineSize===0?c+="<a:ln><a:noFill/></a:ln>":t===Et.BAR?(c+="<a:solidFill>",c+=' <a:srgbClr val="'+v[p%v.length]+'"/>',c+="</a:solidFill>"):(c+="<a:ln>",c+=" <a:solidFill>",c+=' <a:srgbClr val="'+v[p%v.length]+'"/>',c+=" </a:solidFill>",c+="</a:ln>"),c+=m2(n.shadow,g2),c+=" </c:spPr>",c+=" </c:dPt>"}),c+="<c:cat>",n.catLabelFormatCode?(c+=" <c:numRef>",c+=" <c:f>Sheet1!$A$2:$A$".concat(u.labels[0].length+1,"</c:f>"),c+=" <c:numCache>",c+=" <c:formatCode>"+(n.catLabelFormatCode||"General")+"</c:formatCode>",c+=' <c:ptCount val="'.concat(u.labels[0].length,'"/>'),u.labels[0].forEach(function(h,p){return c+='<c:pt idx="'.concat(p,'"><c:v>').concat(Nn(h),"</c:v></c:pt>")}),c+=" </c:numCache>",c+=" </c:numRef>"):(c+=" <c:multiLvlStrRef>",c+=" <c:f>Sheet1!$A$2:$".concat(Ur(u.labels.length),"$").concat(u.labels[0].length+1,"</c:f>"),c+=" <c:multiLvlStrCache>",c+=' <c:ptCount val="'.concat(u.labels[0].length,'"/>'),u.labels.forEach(function(h){c+="<c:lvl>",h.forEach(function(p,v){return c+='<c:pt idx="'.concat(v,'"><c:v>').concat(Nn(p),"</c:v></c:pt>")}),c+="</c:lvl>"}),c+=" </c:multiLvlStrCache>",c+=" </c:multiLvlStrRef>"),c+="</c:cat>",c+="<c:val>",c+=" <c:numRef>",c+="<c:f>Sheet1!$".concat(Ur(u._dataIndex+u.labels.length+1),"$2:$").concat(Ur(u._dataIndex+u.labels.length+1),"$").concat(u.labels[0].length+1,"</c:f>"),c+=" <c:numCache>",c+=" <c:formatCode>"+(n.valLabelFormatCode||n.dataTableFormatCode||"General")+"</c:formatCode>",c+=' <c:ptCount val="'.concat(u.labels[0].length,'"/>'),u.values.forEach(function(h,p){return c+='<c:pt idx="'.concat(p,'"><c:v>').concat(h||h===0?h:"","</c:v></c:pt>")}),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:val>",t===Et.LINE&&(c+='<c:smooth val="'+(n.lineSmooth?"1":"0")+'"/>'),c+="</c:ser>"}),c+=" <c:dLbls>",c+=' <c:numFmt formatCode="'.concat(Nn(n.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),c+=" <c:txPr>",c+=" <a:bodyPr/>",c+=" <a:lstStyle/>",c+=" <a:p><a:pPr>",c+=' <a:defRPr b="'.concat(n.dataLabelFontBold?1:0,'" i="').concat(n.dataLabelFontItalic?1:0,'" strike="noStrike" sz="').concat(Math.round((n.dataLabelFontSize||pu)*100),'" u="none">'),c+=" <a:solidFill>"+br(n.dataLabelColor||gl)+"</a:solidFill>",c+=' <a:latin typeface="'+(n.dataLabelFontFace||"Arial")+'"/>',c+=" </a:defRPr>",c+=" </a:pPr></a:p>",c+=" </c:txPr>",n.dataLabelPosition&&(c+=' <c:dLblPos val="'+n.dataLabelPosition+'"/>'),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="'+(n.showValue?"1":"0")+'"/>',c+=' <c:showCatName val="0"/>',c+=' <c:showSerName val="'+(n.showSerName?"1":"0")+'"/>',c+=' <c:showPercent val="0"/>',c+=' <c:showBubbleSize val="0"/>',c+=' <c:showLeaderLines val="'.concat(n.showLeaderLines?"1":"0",'"/>'),c+=" </c:dLbls>",t===Et.BAR?(c+=' <c:gapWidth val="'.concat(n.barGapWidthPct,'"/>'),c+=' <c:overlap val="'.concat((n.barGrouping||"").includes("tacked")?100:n.barOverlapPct?n.barOverlapPct:0,'"/>')):t===Et.BAR3D?(c+=' <c:gapWidth val="'.concat(n.barGapWidthPct,'"/>'),c+=' <c:gapDepth val="'.concat(n.barGapDepthPct,'"/>'),c+=' <c:shape val="'+n.bar3DShape+'"/>'):t===Et.LINE&&(c+=' <c:marker val="1"/>'),c+='<c:axId val="'.concat(a,'"/><c:axId val="').concat(r,'"/><c:axId val="').concat(SOe,'"/>'),c+="</c:".concat(t,"Chart>");break;case Et.SCATTER:c+="<c:"+t+"Chart>",c+='<c:scatterStyle val="lineMarker"/>',c+='<c:varyColors val="0"/>',o=-1,e.filter(function(u,f){return f>0}).forEach(function(u,f){o++,c+="<c:ser>",c+=' <c:idx val="'.concat(f,'"/>'),c+=' <c:order val="'.concat(f,'"/>'),c+=" <c:tx>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$".concat(Ur(f+2),"$1</c:f>"),c+=' <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>'+Nn(u.name)+"</c:v></c:pt></c:strCache>",c+=" </c:strRef>",c+=" </c:tx>",c+=" <c:spPr>";{var d=n.chartColors[o%n.chartColors.length];d==="transparent"?c+="<a:noFill/>":n.chartColorsOpacity?c+="<a:solidFill>"+br(d,'<a:alpha val="'+Math.round(n.chartColorsOpacity*1e3).toString()+'"/>')+"</a:solidFill>":c+="<a:solidFill>"+br(d)+"</a:solidFill>",n.lineSize===0?c+="<a:ln><a:noFill/></a:ln>":(c+='<a:ln w="'.concat(xn(n.lineSize),'" cap="').concat(hF(n.lineCap),'"><a:solidFill>').concat(br(d),"</a:solidFill>"),c+='<a:prstDash val="'.concat(n.lineDash||"solid",'"/><a:round/></a:ln>')),c+=m2(n.shadow,g2)}if(c+=" </c:spPr>",c+="<c:marker>",c+=' <c:symbol val="'+n.lineDataSymbol+'"/>',n.lineDataSymbolSize&&(c+='<c:size val="'.concat(n.lineDataSymbolSize,'"/>')),c+="<c:spPr>",c+="<a:solidFill>".concat(br(n.chartColors[f+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):f]),"</a:solidFill>"),c+='<a:ln w="'.concat(n.lineDataSymbolLineSize,'" cap="flat"><a:solidFill>').concat(br(n.lineDataSymbolLineColor||n.chartColors[o%n.chartColors.length]),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>'),c+="<a:effectLst/>",c+="</c:spPr>",c+="</c:marker>",n.showLabel){var h=dF("-xxxx-xxxx-xxxx-xxxxxxxxxxxx");u.labels[0]&&(n.dataLabelFormatScatter==="custom"||n.dataLabelFormatScatter==="customXY")&&(c+="<c:dLbls>",u.labels[0].forEach(function(p,v){(n.dataLabelFormatScatter==="custom"||n.dataLabelFormatScatter==="customXY")&&(c+=" <c:dLbl>",c+=' <c:idx val="'.concat(v,'"/>'),c+=" <c:tx>",c+=" <c:rich>",c+=" <a:bodyPr>",c+=" <a:spAutoFit/>",c+=" </a:bodyPr>",c+=" <a:lstStyle/>",c+=" <a:p>",c+=" <a:pPr>",c+=" <a:defRPr/>",c+=" </a:pPr>",c+=" <a:r>",c+=' <a:rPr lang="'+(n.lang||"en-US")+'" dirty="0"/>',c+=" <a:t>"+Nn(p)+"</a:t>",c+=" </a:r>",n.dataLabelFormatScatter==="customXY"&&!/^ *$/.test(p)&&(c+=" <a:r>",c+=' <a:rPr lang="'+(n.lang||"en-US")+'" baseline="0" dirty="0"/>',c+=" <a:t> (</a:t>",c+=" </a:r>",c+=' <a:fld id="{'+dF("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")+'}" type="XVALUE">',c+=' <a:rPr lang="'+(n.lang||"en-US")+'" baseline="0"/>',c+=" <a:pPr>",c+=" <a:defRPr/>",c+=" </a:pPr>",c+=" <a:t>["+Nn(u.name)+"</a:t>",c+=" </a:fld>",c+=" <a:r>",c+=' <a:rPr lang="'+(n.lang||"en-US")+'" baseline="0" dirty="0"/>',c+=" <a:t>, </a:t>",c+=" </a:r>",c+=' <a:fld id="{'+dF("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")+'}" type="YVALUE">',c+=' <a:rPr lang="'+(n.lang||"en-US")+'" baseline="0"/>',c+=" <a:pPr>",c+=" <a:defRPr/>",c+=" </a:pPr>",c+=" <a:t>["+Nn(u.name)+"]</a:t>",c+=" </a:fld>",c+=" <a:r>",c+=' <a:rPr lang="'+(n.lang||"en-US")+'" baseline="0" dirty="0"/>',c+=" <a:t>)</a:t>",c+=" </a:r>",c+=' <a:endParaRPr lang="'+(n.lang||"en-US")+'" dirty="0"/>'),c+=" </a:p>",c+=" </c:rich>",c+=" </c:tx>",c+=" <c:spPr>",c+=" <a:noFill/>",c+=" <a:ln>",c+=" <a:noFill/>",c+=" </a:ln>",c+=" <a:effectLst/>",c+=" </c:spPr>",n.dataLabelPosition&&(c+=' <c:dLblPos val="'+n.dataLabelPosition+'"/>'),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="0"/>',c+=' <c:showCatName val="0"/>',c+=' <c:showSerName val="0"/>',c+=' <c:showPercent val="0"/>',c+=' <c:showBubbleSize val="0"/>',c+=' <c:showLeaderLines val="1"/>',c+=" <c:extLst>",c+=' <c:ext uri="{CE6537A1-D6FC-4f65-9D91-7224C49458BB}" xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart"/>',c+=' <c:ext uri="{C3380CC4-5D6E-409C-BE32-E72D297353CC}" xmlns:c16="http://schemas.microsoft.com/office/drawing/2014/chart">',c+=' <c16:uniqueId val="{'.concat("00000000".substring(0,8-(v+1).toString().length).toString()).concat(v+1).concat(h,'}"/>'),c+=" </c:ext>",c+=" </c:extLst>",c+="</c:dLbl>")}),c+="</c:dLbls>"),n.dataLabelFormatScatter==="XY"&&(c+="<c:dLbls>",c+=" <c:spPr>",c+=" <a:noFill/>",c+=" <a:ln>",c+=" <a:noFill/>",c+=" </a:ln>",c+=" <a:effectLst/>",c+=" </c:spPr>",c+=" <c:txPr>",c+=" <a:bodyPr>",c+=" <a:spAutoFit/>",c+=" </a:bodyPr>",c+=" <a:lstStyle/>",c+=" <a:p>",c+=" <a:pPr>",c+=" <a:defRPr/>",c+=" </a:pPr>",c+=' <a:endParaRPr lang="en-US"/>',c+=" </a:p>",c+=" </c:txPr>",n.dataLabelPosition&&(c+=' <c:dLblPos val="'+n.dataLabelPosition+'"/>'),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="'.concat(n.showLabel?"1":"0",'"/>'),c+=' <c:showCatName val="'.concat(n.showLabel?"1":"0",'"/>'),c+=' <c:showSerName val="'.concat(n.showSerName?"1":"0",'"/>'),c+=' <c:showPercent val="0"/>',c+=' <c:showBubbleSize val="0"/>',c+=" <c:extLst>",c+=' <c:ext uri="{CE6537A1-D6FC-4f65-9D91-7224C49458BB}" xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart">',c+=' <c15:showLeaderLines val="1"/>',c+=" </c:ext>",c+=" </c:extLst>",c+="</c:dLbls>")}e.length===1&&n.chartColors!==R_&&u.values.forEach(function(p,v){var g=p<0?n.invertedColors||n.chartColors||R_:n.chartColors||[];c+=" <c:dPt>",c+=' <c:idx val="'.concat(v,'"/>'),c+=' <c:invertIfNegative val="0"/>',c+=' <c:bubble3D val="0"/>',c+=" <c:spPr>",n.lineSize===0?c+="<a:ln><a:noFill/></a:ln>":(c+="<a:solidFill>",c+=' <a:srgbClr val="'+g[v%g.length]+'"/>',c+="</a:solidFill>"),c+=m2(n.shadow,g2),c+=" </c:spPr>",c+=" </c:dPt>"}),c+="<c:xVal>",c+=" <c:numRef>",c+=" <c:f>Sheet1!$A$2:$A$".concat(e[0].values.length+1,"</c:f>"),c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=' <c:ptCount val="'.concat(e[0].values.length,'"/>'),e[0].values.forEach(function(p,v){c+='<c:pt idx="'.concat(v,'"><c:v>').concat(p||p===0?p:"","</c:v></c:pt>")}),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:xVal>",c+="<c:yVal>",c+=" <c:numRef>",c+=" <c:f>Sheet1!$".concat(Ur(f+2),"$2:$").concat(Ur(f+2),"$").concat(e[0].values.length+1,"</c:f>"),c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=' <c:ptCount val="'.concat(e[0].values.length,'"/>'),e[0].values.forEach(function(p,v){c+='<c:pt idx="'.concat(v,'"><c:v>').concat(u.values[v]||u.values[v]===0?u.values[v]:"","</c:v></c:pt>")}),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:yVal>",c+='<c:smooth val="'+(n.lineSmooth?"1":"0")+'"/>',c+="</c:ser>"}),c+=" <c:dLbls>",c+=' <c:numFmt formatCode="'.concat(Nn(n.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),c+=" <c:txPr>",c+=" <a:bodyPr/>",c+=" <a:lstStyle/>",c+=" <a:p><a:pPr>",c+=' <a:defRPr b="'.concat(n.dataLabelFontBold?"1":"0",'" i="').concat(n.dataLabelFontItalic?"1":"0",'" strike="noStrike" sz="').concat(Math.round((n.dataLabelFontSize||pu)*100),'" u="none">'),c+=" <a:solidFill>"+br(n.dataLabelColor||gl)+"</a:solidFill>",c+=' <a:latin typeface="'+(n.dataLabelFontFace||"Arial")+'"/>',c+=" </a:defRPr>",c+=" </a:pPr></a:p>",c+=" </c:txPr>",n.dataLabelPosition&&(c+=' <c:dLblPos val="'+n.dataLabelPosition+'"/>'),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="'+(n.showValue?"1":"0")+'"/>',c+=' <c:showCatName val="0"/>',c+=' <c:showSerName val="'+(n.showSerName?"1":"0")+'"/>',c+=' <c:showPercent val="0"/>',c+=' <c:showBubbleSize val="0"/>',c+=" </c:dLbls>",c+='<c:axId val="'.concat(a,'"/><c:axId val="').concat(r,'"/>'),c+="</c:"+t+"Chart>";break;case Et.BUBBLE:case Et.BUBBLE3D:c+="<c:bubbleChart>",c+='<c:varyColors val="0"/>',o=-1,e.filter(function(u,f){return f>0}).forEach(function(u,f){o++,c+="<c:ser>",c+=' <c:idx val="'.concat(f,'"/>'),c+=' <c:order val="'.concat(f,'"/>'),c+=" <c:tx>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$"+Ur(s+1)+"$1</c:f>",c+=' <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>'+Nn(u.name)+"</c:v></c:pt></c:strCache>",c+=" </c:strRef>",c+=" </c:tx>";{c+="<c:spPr>";var d=n.chartColors[o%n.chartColors.length];d==="transparent"?c+="<a:noFill/>":n.chartColorsOpacity?c+="<a:solidFill>".concat(br(d,'<a:alpha val="'+Math.round(n.chartColorsOpacity*1e3).toString()+'"/>'),"</a:solidFill>"):c+="<a:solidFill>"+br(d)+"</a:solidFill>",n.lineSize===0?c+="<a:ln><a:noFill/></a:ln>":n.dataBorder?c+='<a:ln w="'.concat(xn(n.dataBorder.pt),'" cap="flat"><a:solidFill>').concat(br(n.dataBorder.color),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>'):(c+='<a:ln w="'.concat(xn(n.lineSize),'" cap="flat"><a:solidFill>').concat(br(d),"</a:solidFill>"),c+='<a:prstDash val="'.concat(n.lineDash||"solid",'"/><a:round/></a:ln>')),c+=m2(n.shadow,g2),c+="</c:spPr>"}c+="<c:xVal>",c+=" <c:numRef>",c+=" <c:f>Sheet1!$A$2:$A$".concat(e[0].values.length+1,"</c:f>"),c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=' <c:ptCount val="'.concat(e[0].values.length,'"/>'),e[0].values.forEach(function(h,p){c+='<c:pt idx="'.concat(p,'"><c:v>').concat(h||h===0?h:"","</c:v></c:pt>")}),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:xVal>",c+="<c:yVal>",c+=" <c:numRef>",c+="<c:f>Sheet1!$".concat(Ur(s+1),"$2:$").concat(Ur(s+1),"$").concat(e[0].values.length+1,"</c:f>"),s++,c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=' <c:ptCount val="'.concat(e[0].values.length,'"/>'),e[0].values.forEach(function(h,p){c+='<c:pt idx="'.concat(p,'"><c:v>').concat(u.values[p]||u.values[p]===0?u.values[p]:"","</c:v></c:pt>")}),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:yVal>",c+=" <c:bubbleSize>",c+=" <c:numRef>",c+="<c:f>Sheet1!$".concat(Ur(s+1),"$2:$").concat(Ur(s+1),"$").concat(u.sizes.length+1,"</c:f>"),s++,c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=' <c:ptCount val="'.concat(u.sizes.length,'"/>'),u.sizes.forEach(function(h,p){c+='<c:pt idx="'.concat(p,'"><c:v>').concat(h||"","</c:v></c:pt>")}),c+=" </c:numCache>",c+=" </c:numRef>",c+=" </c:bubbleSize>",c+=' <c:bubble3D val="'+(t===Et.BUBBLE3D?"1":"0")+'"/>',c+="</c:ser>"}),c+="<c:dLbls>",c+='<c:numFmt formatCode="'.concat(Nn(n.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),c+="<c:txPr><a:bodyPr/><a:lstStyle/><a:p><a:pPr>",c+='<a:defRPr b="'.concat(n.dataLabelFontBold?1:0,'" i="').concat(n.dataLabelFontItalic?1:0,'" strike="noStrike" sz="').concat(Math.round(Math.round(n.dataLabelFontSize||pu)*100),'" u="none">'),c+="<a:solidFill>".concat(br(n.dataLabelColor||gl),"</a:solidFill>"),c+='<a:latin typeface="'.concat(n.dataLabelFontFace||"Arial",'"/>'),c+="</a:defRPr></a:pPr></a:p></c:txPr>",n.dataLabelPosition&&(c+='<c:dLblPos val="'.concat(n.dataLabelPosition,'"/>')),c+='<c:showLegendKey val="0"/>',c+='<c:showVal val="'.concat(n.showValue?"1":"0",'"/>'),c+='<c:showCatName val="0"/><c:showSerName val="'.concat(n.showSerName?"1":"0",'"/><c:showPercent val="0"/><c:showBubbleSize val="0"/>'),c+="<c:extLst>",c+=' <c:ext uri="{CE6537A1-D6FC-4f65-9D91-7224C49458BB}" xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart">',c+=' <c15:showLeaderLines val="'+(n.showLeaderLines?"1":"0")+'"/>',c+=" </c:ext>",c+="</c:extLst>",c+="</c:dLbls>",c+='<c:axId val="'.concat(a,'"/><c:axId val="').concat(r,'"/>'),c+="</c:bubbleChart>";break;case Et.DOUGHNUT:case Et.PIE:l=e[0],c+="<c:"+t+"Chart>",c+=' <c:varyColors val="1"/>',c+="<c:ser>",c+=' <c:idx val="0"/>',c+=' <c:order val="0"/>',c+=" <c:tx>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$B$1</c:f>",c+=" <c:strCache>",c+=' <c:ptCount val="1"/>',c+=' <c:pt idx="0"><c:v>'+Nn(l.name)+"</c:v></c:pt>",c+=" </c:strCache>",c+=" </c:strRef>",c+=" </c:tx>",c+=" <c:spPr>",c+=' <a:solidFill><a:schemeClr val="accent1"/></a:solidFill>',c+=' <a:ln w="9525" cap="flat"><a:solidFill><a:srgbClr val="F9F9F9"/></a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>',n.dataNoEffects?c+="<a:effectLst/>":c+=m2(n.shadow,g2),c+=" </c:spPr>",l.labels[0].forEach(function(u,f){c+="<c:dPt>",c+=' <c:idx val="'.concat(f,'"/>'),c+=' <c:bubble3D val="0"/>',c+=" <c:spPr>",c+="<a:solidFill>".concat(br(n.chartColors[f+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):f]),"</a:solidFill>"),n.dataBorder&&(c+='<a:ln w="'.concat(xn(n.dataBorder.pt),'" cap="flat"><a:solidFill>').concat(br(n.dataBorder.color),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>')),c+=m2(n.shadow,g2),c+=" </c:spPr>",c+="</c:dPt>"}),c+="<c:dLbls>",l.labels[0].forEach(function(u,f){c+="<c:dLbl>",c+=' <c:idx val="'.concat(f,'"/>'),c+=' <c:numFmt formatCode="'.concat(Nn(n.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),c+=" <c:spPr/><c:txPr>",c+=" <a:bodyPr/><a:lstStyle/>",c+=" <a:p><a:pPr>",c+=' <a:defRPr sz="'.concat(Math.round((n.dataLabelFontSize||pu)*100),'" b="').concat(n.dataLabelFontBold?1:0,'" i="').concat(n.dataLabelFontItalic?1:0,'" u="none" strike="noStrike">'),c+=" <a:solidFill>"+br(n.dataLabelColor||gl)+"</a:solidFill>",c+=' <a:latin typeface="'.concat(n.dataLabelFontFace||"Arial",'"/>'),c+=" </a:defRPr>",c+=" </a:pPr></a:p>",c+=" </c:txPr>",t===Et.PIE&&n.dataLabelPosition&&(c+='<c:dLblPos val="'.concat(n.dataLabelPosition,'"/>')),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="'+(n.showValue?"1":"0")+'"/>',c+=' <c:showCatName val="'+(n.showLabel?"1":"0")+'"/>',c+=' <c:showSerName val="'+(n.showSerName?"1":"0")+'"/>',c+=' <c:showPercent val="'+(n.showPercent?"1":"0")+'"/>',c+=' <c:showBubbleSize val="0"/>',c+=" </c:dLbl>"}),c+=' <c:numFmt formatCode="'.concat(Nn(n.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),c+=" <c:txPr>",c+=" <a:bodyPr/>",c+=" <a:lstStyle/>",c+=" <a:p>",c+=" <a:pPr>",c+=' <a:defRPr sz="1800" b="'.concat(n.dataLabelFontBold?"1":"0",'" i="').concat(n.dataLabelFontItalic?"1":"0",'" u="none" strike="noStrike">'),c+=' <a:solidFill><a:srgbClr val="000000"/></a:solidFill><a:latin typeface="Arial"/>',c+=" </a:defRPr>",c+=" </a:pPr>",c+=" </a:p>",c+=" </c:txPr>",c+=t===Et.PIE?'<c:dLblPos val="ctr"/>':"",c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="0"/>',c+=' <c:showCatName val="1"/>',c+=' <c:showSerName val="0"/>',c+=' <c:showPercent val="1"/>',c+=' <c:showBubbleSize val="0"/>',c+=' <c:showLeaderLines val="'.concat(n.showLeaderLines?"1":"0",'"/>'),c+="</c:dLbls>",c+="<c:cat>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$A$2:$A$".concat(l.labels[0].length+1,"</c:f>"),c+=" <c:strCache>",c+=' <c:ptCount val="'.concat(l.labels[0].length,'"/>'),l.labels[0].forEach(function(u,f){c+='<c:pt idx="'.concat(f,'"><c:v>').concat(Nn(u),"</c:v></c:pt>")}),c+=" </c:strCache>",c+=" </c:strRef>",c+="</c:cat>",c+=" <c:val>",c+=" <c:numRef>",c+=" <c:f>Sheet1!$B$2:$B$".concat(l.labels[0].length+1,"</c:f>"),c+=" <c:numCache>",c+=' <c:ptCount val="'.concat(l.labels[0].length,'"/>'),l.values.forEach(function(u,f){c+='<c:pt idx="'.concat(f,'"><c:v>').concat(u||u===0?u:"","</c:v></c:pt>")}),c+=" </c:numCache>",c+=" </c:numRef>",c+=" </c:val>",c+=" </c:ser>",c+=' <c:firstSliceAng val="'.concat(n.firstSliceAng?Math.round(n.firstSliceAng):0,'"/>'),t===Et.DOUGHNUT&&(c+='<c:holeSize val="'.concat(typeof n.holeSize=="number"?n.holeSize:"50",'"/>')),c+="</c:"+t+"Chart>";break;default:c+="";break}return c}function UH(t,e,n){var r="";return t._type===Et.SCATTER||t._type===Et.BUBBLE||t._type===Et.BUBBLE3D?r+="<c:valAx>":r+="<c:"+(t.catLabelFormatCode?"dateAx":"catAx")+">",r+=' <c:axId val="'+e+'"/>',r+=" <c:scaling>",r+='<c:orientation val="'+(t.catAxisOrientation||(t.barDir==="col","minMax"))+'"/>',(t.catAxisMaxVal||t.catAxisMaxVal===0)&&(r+='<c:max val="'.concat(t.catAxisMaxVal,'"/>')),(t.catAxisMinVal||t.catAxisMinVal===0)&&(r+='<c:min val="'.concat(t.catAxisMinVal,'"/>')),r+="</c:scaling>",r+=' <c:delete val="'+(t.catAxisHidden?"1":"0")+'"/>',r+=' <c:axPos val="'+(t.barDir==="col"?"b":"l")+'"/>',r+=t.catGridLine.style!=="none"?ute(t.catGridLine):"",t.showCatAxisTitle&&(r+=ZV({color:t.catAxisTitleColor,fontFace:t.catAxisTitleFontFace,fontSize:t.catAxisTitleFontSize,titleRotate:t.catAxisTitleRotate,title:t.catAxisTitle||"Axis Title"})),t._type===Et.SCATTER||t._type===Et.BUBBLE||t._type===Et.BUBBLE3D?r+=' <c:numFmt formatCode="'+(t.valAxisLabelFormatCode?Nn(t.valAxisLabelFormatCode):"General")+'" sourceLinked="1"/>':r+=' <c:numFmt formatCode="'+(Nn(t.catLabelFormatCode)||"General")+'" sourceLinked="1"/>',t._type===Et.SCATTER?(r+=' <c:majorTickMark val="none"/>',r+=' <c:minorTickMark val="none"/>',r+=' <c:tickLblPos val="nextTo"/>'):(r+=' <c:majorTickMark val="'+(t.catAxisMajorTickMark||"out")+'"/>',r+=' <c:minorTickMark val="'+(t.catAxisMinorTickMark||"none")+'"/>',r+=' <c:tickLblPos val="'+(t.catAxisLabelPos||(t.barDir==="col"?"low":"nextTo"))+'"/>'),r+=" <c:spPr>",r+=' <a:ln w="'.concat(t.catAxisLineSize?xn(t.catAxisLineSize):K8,'" cap="flat">'),r+=t.catAxisLineShow?"<a:solidFill>"+br(t.catAxisLineColor||U2.color)+"</a:solidFill>":"<a:noFill/>",r+=' <a:prstDash val="'+(t.catAxisLineStyle||"solid")+'"/>',r+=" <a:round/>",r+=" </a:ln>",r+=" </c:spPr>",r+=" <c:txPr>",t.catAxisLabelRotate?r+='<a:bodyPr rot="'.concat(W2(t.catAxisLabelRotate),'"/>'):r+="<a:bodyPr/>",r+=" <a:lstStyle/>",r+=" <a:p>",r+=" <a:pPr>",r+=' <a:defRPr sz="'.concat(Math.round((t.catAxisLabelFontSize||pu)*100),'" b="').concat(t.catAxisLabelFontBold?1:0,'" i="').concat(t.catAxisLabelFontItalic?1:0,'" u="none" strike="noStrike">'),r+=" <a:solidFill>"+br(t.catAxisLabelColor||gl)+"</a:solidFill>",r+=' <a:latin typeface="'+(t.catAxisLabelFontFace||"Arial")+'"/>',r+=" </a:defRPr>",r+=" </a:pPr>",r+=' <a:endParaRPr lang="'+(t.lang||"en-US")+'"/>',r+=" </a:p>",r+=" </c:txPr>",r+=' <c:crossAx val="'+n+'"/>',r+=" <c:".concat(typeof t.valAxisCrossesAt=="number"?"crossesAt":"crosses",' val="').concat(t.valAxisCrossesAt||"autoZero",'"/>'),r+=' <c:auto val="1"/>',r+=' <c:lblAlgn val="ctr"/>',r+=' <c:noMultiLvlLbl val="'.concat(t.catAxisMultiLevelLabels?0:1,'"/>'),t.catAxisLabelFrequency&&(r+=' <c:tickLblSkip val="'+t.catAxisLabelFrequency+'"/>'),(t.catLabelFormatCode||t._type===Et.SCATTER||t._type===Et.BUBBLE||t._type===Et.BUBBLE3D)&&(t.catLabelFormatCode&&(["catAxisBaseTimeUnit","catAxisMajorTimeUnit","catAxisMinorTimeUnit"].forEach(function(a){t[a]&&(typeof t[a]!="string"||!["days","months","years"].includes(t[a].toLowerCase()))&&(console.warn('"'.concat(a,`" must be one of: 'days','months','years' !`)),t[a]=null)}),t.catAxisBaseTimeUnit&&(r+='<c:baseTimeUnit val="'+t.catAxisBaseTimeUnit.toLowerCase()+'"/>'),t.catAxisMajorTimeUnit&&(r+='<c:majorTimeUnit val="'+t.catAxisMajorTimeUnit.toLowerCase()+'"/>'),t.catAxisMinorTimeUnit&&(r+='<c:minorTimeUnit val="'+t.catAxisMinorTimeUnit.toLowerCase()+'"/>')),t.catAxisMajorUnit&&(r+='<c:majorUnit val="'.concat(t.catAxisMajorUnit,'"/>')),t.catAxisMinorUnit&&(r+='<c:minorUnit val="'.concat(t.catAxisMinorUnit,'"/>'))),t._type===Et.SCATTER||t._type===Et.BUBBLE||t._type===Et.BUBBLE3D?r+="</c:valAx>":r+="</c:"+(t.catLabelFormatCode?"dateAx":"catAx")+">",r}function WH(t,e){var n=e===zp?t.barDir==="col"?"l":"b":t.barDir!=="col"?"r":"t";e===fF&&(n="r");var r=e===zp?A_:SJ,a="";if(a+="<c:valAx>",a+=' <c:axId val="'+e+'"/>',a+=" <c:scaling>",t.valAxisLogScaleBase&&(a+='<c:logBase val="'.concat(t.valAxisLogScaleBase,'"/>')),a+='<c:orientation val="'+(t.valAxisOrientation||(t.barDir==="col","minMax"))+'"/>',(t.valAxisMaxVal||t.valAxisMaxVal===0)&&(a+='<c:max val="'.concat(t.valAxisMaxVal,'"/>')),(t.valAxisMinVal||t.valAxisMinVal===0)&&(a+='<c:min val="'.concat(t.valAxisMinVal,'"/>')),a+=" </c:scaling>",a+=' <c:delete val="'.concat(t.valAxisHidden?1:0,'"/>'),a+=' <c:axPos val="'+n+'"/>',t.valGridLine.style!=="none"&&(a+=ute(t.valGridLine)),t.showValAxisTitle&&(a+=ZV({color:t.valAxisTitleColor,fontFace:t.valAxisTitleFontFace,fontSize:t.valAxisTitleFontSize,titleRotate:t.valAxisTitleRotate,title:t.valAxisTitle||"Axis Title"})),a+='<c:numFmt formatCode="'.concat(t.valAxisLabelFormatCode?Nn(t.valAxisLabelFormatCode):"General",'" sourceLinked="0"/>'),t._type===Et.SCATTER?(a+=' <c:majorTickMark val="none"/>',a+=' <c:minorTickMark val="none"/>',a+=' <c:tickLblPos val="nextTo"/>'):(a+=' <c:majorTickMark val="'+(t.valAxisMajorTickMark||"out")+'"/>',a+=' <c:minorTickMark val="'+(t.valAxisMinorTickMark||"none")+'"/>',a+=' <c:tickLblPos val="'+(t.valAxisLabelPos||(t.barDir==="col"?"nextTo":"low"))+'"/>'),a+=" <c:spPr>",a+=' <a:ln w="'.concat(t.valAxisLineSize?xn(t.valAxisLineSize):K8,'" cap="flat">'),a+=t.valAxisLineShow?"<a:solidFill>"+br(t.valAxisLineColor||U2.color)+"</a:solidFill>":"<a:noFill/>",a+=' <a:prstDash val="'+(t.valAxisLineStyle||"solid")+'"/>',a+=" <a:round/>",a+=" </a:ln>",a+=" </c:spPr>",a+=" <c:txPr>",a+=" <a:bodyPr".concat(t.valAxisLabelRotate?' rot="'+W2(t.valAxisLabelRotate).toString()+'"':"","/>"),a+=" <a:lstStyle/>",a+=" <a:p>",a+=" <a:pPr>",a+=' <a:defRPr sz="'.concat(Math.round((t.valAxisLabelFontSize||pu)*100),'" b="').concat(t.valAxisLabelFontBold?1:0,'" i="').concat(t.valAxisLabelFontItalic?1:0,'" u="none" strike="noStrike">'),a+=" <a:solidFill>"+br(t.valAxisLabelColor||gl)+"</a:solidFill>",a+=' <a:latin typeface="'+(t.valAxisLabelFontFace||"Arial")+'"/>',a+=" </a:defRPr>",a+=" </a:pPr>",a+=' <a:endParaRPr lang="'+(t.lang||"en-US")+'"/>',a+=" </a:p>",a+=" </c:txPr>",a+=' <c:crossAx val="'+r+'"/>',typeof t.catAxisCrossesAt=="number")a+=' <c:crossesAt val="'.concat(t.catAxisCrossesAt,'"/>');else if(typeof t.catAxisCrossesAt=="string")a+=' <c:crosses val="'+t.catAxisCrossesAt+'"/>';else{var i=n==="r"||n==="t",o=i?"max":"autoZero";a+=' <c:crosses val="'+o+'"/>'}return a+=' <c:crossBetween val="'+(t._type===Et.SCATTER||Array.isArray(t._type)&&t._type.filter(function(s){return s.type===Et.AREA}).length>0?"midCat":"between")+'"/>',t.valAxisMajorUnit&&(a+=' <c:majorUnit val="'.concat(t.valAxisMajorUnit,'"/>')),t.valAxisDisplayUnit&&(a+='<c:dispUnits><c:builtInUnit val="'.concat(t.valAxisDisplayUnit,'"/>').concat(t.valAxisDisplayUnitLabel?"<c:dispUnitsLbl/>":"","</c:dispUnits>")),a+="</c:valAx>",a}function aMt(t,e,n){var r="";return r+="<c:serAx>",r+=' <c:axId val="'+e+'"/>',r+=' <c:scaling><c:orientation val="'+(t.serAxisOrientation||(t.barDir==="col","minMax"))+'"/></c:scaling>',r+=' <c:delete val="'+(t.serAxisHidden?"1":"0")+'"/>',r+=' <c:axPos val="'+(t.barDir==="col"?"b":"l")+'"/>',r+=t.serGridLine.style!=="none"?ute(t.serGridLine):"",t.showSerAxisTitle&&(r+=ZV({color:t.serAxisTitleColor,fontFace:t.serAxisTitleFontFace,fontSize:t.serAxisTitleFontSize,titleRotate:t.serAxisTitleRotate,title:t.serAxisTitle||"Axis Title"})),r+=' <c:numFmt formatCode="'.concat(Nn(t.serLabelFormatCode)||"General",'" sourceLinked="0"/>'),r+=' <c:majorTickMark val="out"/>',r+=' <c:minorTickMark val="none"/>',r+=' <c:tickLblPos val="'.concat(t.serAxisLabelPos||t.barDir==="col"?"low":"nextTo",'"/>'),r+=" <c:spPr>",r+=' <a:ln w="12700" cap="flat">',r+=t.serAxisLineShow?"<a:solidFill>".concat(br(t.serAxisLineColor||U2.color),"</a:solidFill>"):"<a:noFill/>",r+=' <a:prstDash val="solid"/>',r+=" <a:round/>",r+=" </a:ln>",r+=" </c:spPr>",r+=" <c:txPr>",r+=" <a:bodyPr/>",r+=" <a:lstStyle/>",r+=" <a:p>",r+=" <a:pPr>",r+=' <a:defRPr sz="'.concat(Math.round((t.serAxisLabelFontSize||pu)*100),'" b="').concat(t.serAxisLabelFontBold?"1":"0",'" i="').concat(t.serAxisLabelFontItalic?"1":"0",'" u="none" strike="noStrike">'),r+=" <a:solidFill>".concat(br(t.serAxisLabelColor||gl),"</a:solidFill>"),r+=' <a:latin typeface="'.concat(t.serAxisLabelFontFace||"Arial",'"/>'),r+=" </a:defRPr>",r+=" </a:pPr>",r+=' <a:endParaRPr lang="'+(t.lang||"en-US")+'"/>',r+=" </a:p>",r+=" </c:txPr>",r+=' <c:crossAx val="'+n+'"/>',r+=' <c:crosses val="autoZero"/>',t.serAxisLabelFrequency&&(r+=' <c:tickLblSkip val="'+t.serAxisLabelFrequency+'"/>'),t.serLabelFormatCode&&(["serAxisBaseTimeUnit","serAxisMajorTimeUnit","serAxisMinorTimeUnit"].forEach(function(a){t[a]&&(typeof t[a]!="string"||!["days","months","years"].includes(a.toLowerCase()))&&(console.warn('"'.concat(a,`" must be one of: 'days','months','years' !`)),t[a]=null)}),t.serAxisBaseTimeUnit&&(r+=' <c:baseTimeUnit val="'.concat(t.serAxisBaseTimeUnit.toLowerCase(),'"/>')),t.serAxisMajorTimeUnit&&(r+=' <c:majorTimeUnit val="'.concat(t.serAxisMajorTimeUnit.toLowerCase(),'"/>')),t.serAxisMinorTimeUnit&&(r+=' <c:minorTimeUnit val="'.concat(t.serAxisMinorTimeUnit.toLowerCase(),'"/>')),t.serAxisMajorUnit&&(r+=' <c:majorUnit val="'.concat(t.serAxisMajorUnit,'"/>')),t.serAxisMinorUnit&&(r+=' <c:minorUnit val="'.concat(t.serAxisMinorUnit,'"/>'))),r+="</c:serAx>",r}function ZV(t,e,n){var r=t.titleAlign==="left"||t.titleAlign==="right"?'<a:pPr algn="'.concat(t.titleAlign.substring(0,1),'">'):"<a:pPr>",a=t.titleRotate?'<a:bodyPr rot="'.concat(W2(t.titleRotate),'"/>'):"<a:bodyPr/>",i=t.fontSize?'sz="'.concat(Math.round(t.fontSize*100),'"'):"",o=t.titleBold?1:0,s="<c:layout/>";if(t.titlePos&&typeof t.titlePos.x=="number"&&typeof t.titlePos.y=="number"){var l=t.titlePos.x+e,c=t.titlePos.y+n,u=l===0?0:l*(l/5)/10;u>=1&&(u=u/10),u>=.1&&(u=u/10);var f=c===0?0:c*(c/5)/10;f>=1&&(f=f/10),f>=.1&&(f=f/10),s='<c:layout><c:manualLayout><c:xMode val="edge"/><c:yMode val="edge"/><c:x val="'.concat(u,'"/><c:y val="').concat(f,'"/></c:manualLayout></c:layout>')}return`<c:title>- <c:tx>- <c:rich>- `.concat(a,`- <a:lstStyle/>- <a:p>- `).concat(r,`- <a:defRPr `).concat(i,' b="').concat(o,`" i="0" u="none" strike="noStrike">- <a:solidFill>`).concat(br(t.color||gl),`</a:solidFill>- <a:latin typeface="`).concat(t.fontFace||"Arial",`"/>- </a:defRPr>- </a:pPr>- <a:r>- <a:rPr `).concat(i,' b="').concat(o,`" i="0" u="none" strike="noStrike">- <a:solidFill>`).concat(br(t.color||gl),`</a:solidFill>- <a:latin typeface="`).concat(t.fontFace||"Arial",`"/>- </a:rPr>- <a:t>`).concat(Nn(t.title)||"",`</a:t>- </a:r>- </a:p>- </c:rich>- </c:tx>- `).concat(s,`- <c:overlay val="0"/>- </c:title>`)}function Ur(t){var e="",n=t-1;return n<=25?e=X5[n]:e="".concat(X5[Math.floor(n/X5.length-1)]).concat(X5[n%X5.length]),e}function m2(t,e){if(t){if(typeof t!="object")return console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`"),"<a:effectLst/>"}else return"<a:effectLst/>";var n="<a:effectLst>",r=pi(pi({},e),t),a=r.type||"outer",i=xn(r.blur),o=xn(r.offset),s=Math.round(r.angle*6e4),l=r.color,c=Math.round(r.opacity*1e5),u=r.rotateWithShape?1:0;return n+="<a:".concat(a,'Shdw sx="100000" sy="100000" kx="0" ky="0" algn="bl" blurRad="').concat(i,'" rotWithShape="').concat(u,'" dist="').concat(o,'" dir="').concat(s,'">'),n+='<a:srgbClr val="'.concat(l,'">'),n+='<a:alpha val="'.concat(c,'"/></a:srgbClr>'),n+="</a:".concat(a,"Shdw>"),n+="</a:effectLst>",n}function ute(t){var e="<c:majorGridlines>";return e+=" <c:spPr>",e+=' <a:ln w="'.concat(xn(t.size||U2.size),'" cap="').concat(hF(t.cap||U2.cap),'">'),e+=' <a:solidFill><a:srgbClr val="'+(t.color||U2.color)+'"/></a:solidFill>',e+=' <a:prstDash val="'+(t.style||U2.style)+'"/><a:round/>',e+=" </a:ln>",e+=" </c:spPr>",e+="</c:majorGridlines>",e}function hF(t){if(!t||t==="flat")return"flat";if(t==="square")return"sq";if(t==="round")return"rnd";var e=t;throw new Error("Invalid chart line cap: ".concat(e))}function YH(t){var e=typeof require<"u"&&typeof window>"u"?require("fs"):null,n=typeof require<"u"&&typeof window>"u"?require("https"):null,r=[],a=t._relsMedia.filter(function(o){return o.type!=="online"&&!o.data&&(!o.path||o.path&&!o.path.includes("preencoded"))}),i=[];return a.forEach(function(o){i.includes(o.path)?o.isDuplicate=!0:(o.isDuplicate=!1,i.push(o.path))}),a.filter(function(o){return!o.isDuplicate}).forEach(function(o){r.push(new Promise(function(s,l){if(e&&o.path.indexOf("http")!==0)try{var c=e.readFileSync(o.path);o.data=Buffer.from(c).toString("base64"),a.filter(function(f){return f.isDuplicate&&f.path===o.path}).forEach(function(f){return f.data=o.data}),s("done")}catch(f){o.data=Ox,a.filter(function(d){return d.isDuplicate&&d.path===o.path}).forEach(function(d){return d.data=o.data}),l(new Error('ERROR: Unable to read media: "'.concat(o.path,`"-`).concat(String(f))))}else if(e&&n&&o.path.indexOf("http")===0)n.get(o.path,function(f){var d="";f.setEncoding("binary"),f.on("data",function(h){return d+=h}),f.on("end",function(){o.data=Buffer.from(d,"binary").toString("base64"),a.filter(function(h){return h.isDuplicate&&h.path===o.path}).forEach(function(h){return h.data=o.data}),s("done")}),f.on("error",function(h){o.data=Ox,a.filter(function(p){return p.isDuplicate&&p.path===o.path}).forEach(function(p){return p.data=o.data}),l(new Error("ERROR! Unable to load image (https.get): ".concat(o.path)))})});else{var u=new XMLHttpRequest;u.onload=function(){var f=new FileReader;f.onloadend=function(){o.data=f.result,a.filter(function(d){return d.isDuplicate&&d.path===o.path}).forEach(function(d){return d.data=o.data}),o.isSvgPng?oRe(o).then(function(){s("done")}).catch(function(d){l(d)}):s("done")},f.readAsDataURL(u.response)},u.onerror=function(f){o.data=Ox,a.filter(function(d){return d.isDuplicate&&d.path===o.path}).forEach(function(d){return d.data=o.data}),l(new Error("ERROR! Unable to load image (xhr.onerror): ".concat(o.path)))},u.open("GET",o.path),u.responseType="blob",u.send()}}))}),t._relsMedia.filter(function(o){return o.isSvgPng&&o.data}).forEach(function(o){e?(o.data=Ox,r.push(Promise.resolve().then(function(){return"done"}))):r.push(oRe(o))}),r}function oRe(t){return th(this,void 0,void 0,function(){return nh(this,function(e){switch(e.label){case 0:return[4,new Promise(function(n,r){var a=new Image;a.onload=function(){a.width+a.height===0&&a.onerror("h/w=0");var i=document.createElement("CANVAS"),o=i.getContext("2d");i.width=a.width,i.height=a.height,o.drawImage(a,0,0);try{t.data=i.toDataURL(t.type),n("done")}catch(s){a.onerror(s)}i=null},a.onerror=function(i){t.data=Ox,r(new Error("ERROR! Unable to load image (image.onerror): ".concat(t.path)))},a.src=typeof t.data=="string"?t.data:Ox})];case 1:return[2,e.sent()]}})})}var iMt={cover:function(t,e){var n=t.h/t.w,r=e.h/e.w,a=r>n,i=a?e.h/n:e.w,o=a?e.h:e.w*n,s=Math.round(1e5*.5*(1-e.w/i)),l=Math.round(1e5*.5*(1-e.h/o));return'<a:srcRect l="'.concat(s,'" r="').concat(s,'" t="').concat(l,'" b="').concat(l,'"/><a:stretch/>')},contain:function(t,e){var n=t.h/t.w,r=e.h/e.w,a=r>n,i=a?e.w:e.h/n,o=a?e.w*n:e.h,s=Math.round(1e5*.5*(1-e.w/i)),l=Math.round(1e5*.5*(1-e.h/o));return'<a:srcRect l="'.concat(s,'" r="').concat(s,'" t="').concat(l,'" b="').concat(l,'"/><a:stretch/>')},crop:function(t,e){var n=e.x,r=t.w-(e.x+e.w),a=e.y,i=t.h-(e.y+e.h),o=Math.round(1e5*(n/t.w)),s=Math.round(1e5*(r/t.w)),l=Math.round(1e5*(a/t.h)),c=Math.round(1e5*(i/t.h));return'<a:srcRect l="'.concat(o,'" r="').concat(s,'" t="').concat(l,'" b="').concat(c,'"/><a:stretch/>')}};function fte(t){var e,n=t._name?'<p:cSld name="'+t._name+'">':"<p:cSld>",r=1;return t._bkgdImgRid?n+='<p:bg><p:bgPr><a:blipFill dpi="0" rotWithShape="1"><a:blip r:embed="rId'.concat(t._bkgdImgRid,'"><a:lum/></a:blip><a:srcRect/><a:stretch><a:fillRect/></a:stretch></a:blipFill><a:effectLst/></p:bgPr></p:bg>'):!((e=t.background)===null||e===void 0)&&e.color?n+="<p:bg><p:bgPr>".concat(uc(t.background),"</p:bgPr></p:bg>"):!t.bkgd&&t._name&&t._name===xJ&&(n+='<p:bg><p:bgRef idx="1001"><a:schemeClr val="bg1"/></p:bgRef></p:bg>'),n+="<p:spTree>",n+='<p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>',n+='<p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/>',n+='<a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>',t._slideObjects.forEach(function(a,i){var o,s,l,c,u,f,d,h,p=0,v=0,g=Kn("75%","X",t._presLayout),y=0,m,R="",A=null,x=null,M=0,S=0,w=null,_=null,T=(o=a.options)===null||o===void 0?void 0:o.sizing,O=(s=a.options)===null||s===void 0?void 0:s.rounding;t._slideLayout!==void 0&&t._slideLayout._slideObjects!==void 0&&a.options&&a.options.placeholder&&(m=t._slideLayout._slideObjects.filter(function(G){return G.options.placeholder===a.options.placeholder})[0]),a.options=a.options||{},typeof a.options.x<"u"&&(p=Kn(a.options.x,"X",t._presLayout)),typeof a.options.y<"u"&&(v=Kn(a.options.y,"Y",t._presLayout)),typeof a.options.w<"u"&&(g=Kn(a.options.w,"X",t._presLayout)),typeof a.options.h<"u"&&(y=Kn(a.options.h,"Y",t._presLayout));var N=g,P=y;switch(m&&((m.options.x||m.options.x===0)&&(p=Kn(m.options.x,"X",t._presLayout)),(m.options.y||m.options.y===0)&&(v=Kn(m.options.y,"Y",t._presLayout)),(m.options.w||m.options.w===0)&&(g=Kn(m.options.w,"X",t._presLayout)),(m.options.h||m.options.h===0)&&(y=Kn(m.options.h,"Y",t._presLayout))),a.options.flipH&&(R+=' flipH="1"'),a.options.flipV&&(R+=' flipV="1"'),a.options.rotate&&(R+=' rot="'.concat(W2(a.options.rotate),'"')),a._type){case In.table:if(A=a.arrTabRows,x=a.options,M=0,S=0,A[0].forEach(function(G){w=G.options||null,M+=w!=null&&w.colspan?Number(w.colspan):1}),_='<p:graphicFrame><p:nvGraphicFramePr><p:cNvPr id="'.concat(r*t._slideNum+1,'" name="').concat(a.options.objectName,'"/>'),_+='<p:cNvGraphicFramePr><a:graphicFrameLocks noGrp="1"/></p:cNvGraphicFramePr> <p:nvPr><p:extLst><p:ext uri="{D42A27DB-BD31-4B8C-83A1-F6EECF244321}"><p14:modId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1579011935"/></p:ext></p:extLst></p:nvPr></p:nvGraphicFramePr>',_+='<p:xfrm><a:off x="'.concat(p||(p===0?0:Cn),'" y="').concat(v||(v===0?0:Cn),'"/><a:ext cx="').concat(g||(g===0?0:Cn),'" cy="').concat(y||Cn,'"/></p:xfrm>'),_+='<a:graphic><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/table"><a:tbl><a:tblPr/>',Array.isArray(x.colW)){_+="<a:tblGrid>";for(var C=0;C<M;C++){var E=dr(x.colW[C]);(E==null||isNaN(E))&&(E=(typeof a.options.w=="number"?a.options.w:1)/M),_+='<a:gridCol w="'.concat(Math.round(E),'"/>')}_+="</a:tblGrid>"}else{S=x.colW?x.colW:Cn,a.options.w&&!x.colW&&(S=Math.round((typeof a.options.w=="number"?a.options.w:1)/M)),_+="<a:tblGrid>";for(var F=0;F<M;F++)_+='<a:gridCol w="'.concat(S,'"/>');_+="</a:tblGrid>"}A.forEach(function(G){for(var ee,ce,B=function(se){var z=G[se],de=(ee=z.options)===null||ee===void 0?void 0:ee.colspan,fe=(ce=z.options)===null||ce===void 0?void 0:ce.rowspan;if(de&&de>1){var re=new Array(de-1).fill(void 0).map(function(X){return{_type:In.tablecell,options:{rowspan:fe},_hmerge:!0}});G.splice.apply(G,uF([se+1,0],re,!1)),se+=de}else se+=1;xe=se},xe,_e=0;_e<G.length;)B(_e),_e=xe}),A.forEach(function(G,ee){var ce=A[ee+1];ce&&G.forEach(function(B,xe){var _e,se,z=B._rowContinue||((_e=B.options)===null||_e===void 0?void 0:_e.rowspan),de=(se=B.options)===null||se===void 0?void 0:se.colspan,fe=B._hmerge;if(z&&z>1){var re={_type:In.tablecell,options:{colspan:de},_rowContinue:z-1,_vmerge:!0,_hmerge:fe};ce.splice(xe,0,re)}})}),A.forEach(function(G,ee){var ce=0;Array.isArray(x.rowH)&&x.rowH[ee]?ce=dr(Number(x.rowH[ee])):x.rowH&&!isNaN(Number(x.rowH))?ce=dr(Number(x.rowH)):(a.options.cy||a.options.h)&&(ce=Math.round((a.options.h?dr(a.options.h):typeof a.options.cy=="number"?a.options.cy:1)/A.length)),_+='<a:tr h="'.concat(ce,'">'),G.forEach(function(B){var xe,_e,se,z,de,fe=B,re={rowSpan:((xe=fe.options)===null||xe===void 0?void 0:xe.rowspan)>1?fe.options.rowspan:void 0,gridSpan:((_e=fe.options)===null||_e===void 0?void 0:_e.colspan)>1?fe.options.colspan:void 0,vMerge:fe._vmerge?1:void 0,hMerge:fe._hmerge?1:void 0},X=Object.keys(re).map(function(me){return[me,re[me]]}).filter(function(me){me[0];var ye=me[1];return!!ye}).map(function(me){var ye=me[0],Ve=me[1];return"".concat(String(ye),'="').concat(String(Ve),'"')}).join(" ");if(X&&(X=" "+X),fe._hmerge||fe._vmerge){_+="<a:tc".concat(X,"><a:tcPr/></a:tc>");return}var j=fe.options||{};fe.options=j,["align","bold","border","color","fill","fontFace","fontSize","margin","underline","valign"].forEach(function(me){x[me]&&!j[me]&&j[me]!==0&&(j[me]=x[me])});var oe=j.valign?' anchor="'.concat(j.valign.replace(/^c$/i,"ctr").replace(/^m$/i,"ctr").replace("center","ctr").replace("middle","ctr").replace("top","t").replace("btm","b").replace("bottom","b"),'"'):"",ae=!((z=(se=fe._optImp)===null||se===void 0?void 0:se.fill)===null||z===void 0)&&z.color?fe._optImp.fill.color:!((de=fe._optImp)===null||de===void 0)&&de.fill&&typeof fe._optImp.fill=="string"?fe._optImp.fill:"";ae=ae||j.fill?j.fill:"";var le=ae?uc(ae):"",ge=j.margin===0||j.margin?j.margin:bOe;!Array.isArray(ge)&&typeof ge=="number"&&(ge=[ge,ge,ge,ge]);var Se="";ge[0]>=1?Se=' marL="'.concat(xn(ge[3]),'" marR="').concat(xn(ge[1]),'" marT="').concat(xn(ge[0]),'" marB="').concat(xn(ge[2]),'"'):Se=' marL="'.concat(dr(ge[3]),'" marR="').concat(dr(ge[1]),'" marT="').concat(dr(ge[0]),'" marB="').concat(dr(ge[2]),'"'),_+="<a:tc".concat(X,">").concat(lRe(fe),"<a:tcPr").concat(Se).concat(oe,">"),j.border&&Array.isArray(j.border)&&[{idx:3,name:"lnL"},{idx:1,name:"lnR"},{idx:0,name:"lnT"},{idx:2,name:"lnB"}].forEach(function(me){j.border[me.idx].type!=="none"?(_+="<a:".concat(me.name,' w="').concat(xn(j.border[me.idx].pt),'" cap="flat" cmpd="sng" algn="ctr">'),_+="<a:solidFill>".concat(br(j.border[me.idx].color),"</a:solidFill>"),_+='<a:prstDash val="'.concat(j.border[me.idx].type==="dash"?"sysDash":"solid",'"/><a:round/><a:headEnd type="none" w="med" len="med"/><a:tailEnd type="none" w="med" len="med"/>'),_+="</a:".concat(me.name,">")):_+="<a:".concat(me.name,' w="0" cap="flat" cmpd="sng" algn="ctr"><a:noFill/></a:').concat(me.name,">")}),_+=le,_+=" </a:tcPr>",_+=" </a:tc>"}),_+="</a:tr>"}),_+=" </a:tbl>",_+=" </a:graphicData>",_+=" </a:graphic>",_+="</p:graphicFrame>",n+=_,r++;break;case In.text:case In.placeholder:if(!a.options.line&&y===0&&(y=Cn*.3),a.options._bodyProp||(a.options._bodyProp={}),a.options.margin&&Array.isArray(a.options.margin)?(a.options._bodyProp.lIns=xn(a.options.margin[0]||0),a.options._bodyProp.rIns=xn(a.options.margin[1]||0),a.options._bodyProp.bIns=xn(a.options.margin[2]||0),a.options._bodyProp.tIns=xn(a.options.margin[3]||0)):typeof a.options.margin=="number"&&(a.options._bodyProp.lIns=xn(a.options.margin),a.options._bodyProp.rIns=xn(a.options.margin),a.options._bodyProp.bIns=xn(a.options.margin),a.options._bodyProp.tIns=xn(a.options.margin)),n+="<p:sp>",n+='<p:nvSpPr><p:cNvPr id="'.concat(i+2,'" name="').concat(a.options.objectName,'">'),!((l=a.options.hyperlink)===null||l===void 0)&&l.url&&(n+='<a:hlinkClick r:id="rId'.concat(a.options.hyperlink._rId,'" tooltip="').concat(a.options.hyperlink.tooltip?Nn(a.options.hyperlink.tooltip):"",'"/>')),!((c=a.options.hyperlink)===null||c===void 0)&&c.slide&&(n+='<a:hlinkClick r:id="rId'.concat(a.options.hyperlink._rId,'" tooltip="').concat(a.options.hyperlink.tooltip?Nn(a.options.hyperlink.tooltip):"",'" action="ppaction://hlinksldjump"/>')),n+="</p:cNvPr>",n+="<p:cNvSpPr"+(!((u=a.options)===null||u===void 0)&&u.isTextBox?' txBox="1"/>':"/>"),n+="<p:nvPr>".concat(a._type==="placeholder"?AE(a):AE(m),"</p:nvPr>"),n+="</p:nvSpPr><p:spPr>",n+="<a:xfrm".concat(R,">"),n+='<a:off x="'.concat(p,'" y="').concat(v,'"/>'),n+='<a:ext cx="'.concat(g,'" cy="').concat(y,'"/></a:xfrm>'),a.shape==="custGeom")n+="<a:custGeom><a:avLst />",n+="<a:gdLst>",n+="</a:gdLst>",n+="<a:ahLst />",n+="<a:cxnLst>",n+="</a:cxnLst>",n+='<a:rect l="l" t="t" r="r" b="b" />',n+="<a:pathLst>",n+='<a:path w="'.concat(g,'" h="').concat(y,'">'),(f=a.options.points)===null||f===void 0||f.forEach(function(G,ee){if("curve"in G)switch(G.curve.type){case"arc":n+='<a:arcTo hR="'.concat(Kn(G.curve.hR,"Y",t._presLayout),'" wR="').concat(Kn(G.curve.wR,"X",t._presLayout),'" stAng="').concat(W2(G.curve.stAng),'" swAng="').concat(W2(G.curve.swAng),'" />');break;case"cubic":n+=`<a:cubicBezTo>- <a:pt x="`.concat(Kn(G.curve.x1,"X",t._presLayout),'" y="').concat(Kn(G.curve.y1,"Y",t._presLayout),`" />- <a:pt x="`).concat(Kn(G.curve.x2,"X",t._presLayout),'" y="').concat(Kn(G.curve.y2,"Y",t._presLayout),`" />- <a:pt x="`).concat(Kn(G.x,"X",t._presLayout),'" y="').concat(Kn(G.y,"Y",t._presLayout),`" />- </a:cubicBezTo>`);break;case"quadratic":n+=`<a:quadBezTo>- <a:pt x="`.concat(Kn(G.curve.x1,"X",t._presLayout),'" y="').concat(Kn(G.curve.y1,"Y",t._presLayout),`" />- <a:pt x="`).concat(Kn(G.x,"X",t._presLayout),'" y="').concat(Kn(G.y,"Y",t._presLayout),`" />- </a:quadBezTo>`);break}else"close"in G?n+="<a:close />":G.moveTo||ee===0?n+='<a:moveTo><a:pt x="'.concat(Kn(G.x,"X",t._presLayout),'" y="').concat(Kn(G.y,"Y",t._presLayout),'" /></a:moveTo>'):n+='<a:lnTo><a:pt x="'.concat(Kn(G.x,"X",t._presLayout),'" y="').concat(Kn(G.y,"Y",t._presLayout),'" /></a:lnTo>')}),n+="</a:path>",n+="</a:pathLst>",n+="</a:custGeom>";else{if(n+='<a:prstGeom prst="'+a.shape+'"><a:avLst>',a.options.rectRadius)n+='<a:gd name="adj" fmla="val '.concat(Math.round(a.options.rectRadius*Cn*1e5/Math.min(g,y)),'"/>');else if(a.options.angleRange){for(var Y=0;Y<2;Y++){var Q=a.options.angleRange[Y];n+='<a:gd name="adj'.concat(Y+1,'" fmla="val ').concat(W2(Q),'" />')}a.options.arcThicknessRatio&&(n+='<a:gd name="adj3" fmla="val '.concat(Math.round(a.options.arcThicknessRatio*5e4),'" />'))}n+="</a:avLst></a:prstGeom>"}n+=a.options.fill?uc(a.options.fill):"<a:noFill/>",a.options.line&&(n+=a.options.line.width?'<a:ln w="'.concat(xn(a.options.line.width),'">'):"<a:ln>",a.options.line.color&&(n+=uc(a.options.line)),a.options.line.dashType&&(n+='<a:prstDash val="'.concat(a.options.line.dashType,'"/>')),a.options.line.beginArrowType&&(n+='<a:headEnd type="'.concat(a.options.line.beginArrowType,'"/>')),a.options.line.endArrowType&&(n+='<a:tailEnd type="'.concat(a.options.line.endArrowType,'"/>')),n+="</a:ln>"),a.options.shadow&&a.options.shadow.type!=="none"&&(a.options.shadow.type=a.options.shadow.type||"outer",a.options.shadow.blur=xn(a.options.shadow.blur||8),a.options.shadow.offset=xn(a.options.shadow.offset||4),a.options.shadow.angle=Math.round((a.options.shadow.angle||270)*6e4),a.options.shadow.opacity=Math.round((a.options.shadow.opacity||.75)*1e5),a.options.shadow.color=a.options.shadow.color||aRe.color,n+="<a:effectLst>",n+=" <a:".concat(a.options.shadow.type,"Shdw ").concat(a.options.shadow.type==="outer"?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':"",' blurRad="').concat(a.options.shadow.blur,'" dist="').concat(a.options.shadow.offset,'" dir="').concat(a.options.shadow.angle,'">'),n+=' <a:srgbClr val="'.concat(a.options.shadow.color,'">'),n+=' <a:alpha val="'.concat(a.options.shadow.opacity,'"/></a:srgbClr>'),n+=" </a:outerShdw>",n+="</a:effectLst>"),n+="</p:spPr>",n+=lRe(a),n+="</p:sp>";break;case In.image:if(n+="<p:pic>",n+=" <p:nvPicPr>",n+='<p:cNvPr id="'.concat(i+2,'" name="').concat(a.options.objectName,'" descr="').concat(Nn(a.options.altText||a.image),'">'),!((d=a.hyperlink)===null||d===void 0)&&d.url&&(n+='<a:hlinkClick r:id="rId'.concat(a.hyperlink._rId,'" tooltip="').concat(a.hyperlink.tooltip?Nn(a.hyperlink.tooltip):"",'"/>')),!((h=a.hyperlink)===null||h===void 0)&&h.slide&&(n+='<a:hlinkClick r:id="rId'.concat(a.hyperlink._rId,'" tooltip="').concat(a.hyperlink.tooltip?Nn(a.hyperlink.tooltip):"",'" action="ppaction://hlinksldjump"/>')),n+=" </p:cNvPr>",n+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',n+=" <p:nvPr>"+AE(m)+"</p:nvPr>",n+=" </p:nvPicPr>",n+="<p:blipFill>",(t._relsMedia||[]).filter(function(G){return G.rId===a.imageRid})[0]&&(t._relsMedia||[]).filter(function(G){return G.rId===a.imageRid})[0].extn==="svg"?(n+='<a:blip r:embed="rId'.concat(a.imageRid-1,'">'),n+=a.options.transparency?' <a:alphaModFix amt="'.concat(Math.round((100-a.options.transparency)*1e3),'"/>'):"",n+=" <a:extLst>",n+=' <a:ext uri="{96DAC541-7B7A-43D3-8B79-37D633B846F1}">',n+=' <asvg:svgBlip xmlns:asvg="http://schemas.microsoft.com/office/drawing/2016/SVG/main" r:embed="rId'.concat(a.imageRid,'"/>'),n+=" </a:ext>",n+=" </a:extLst>",n+="</a:blip>"):(n+='<a:blip r:embed="rId'.concat(a.imageRid,'">'),n+=a.options.transparency?'<a:alphaModFix amt="'.concat(Math.round((100-a.options.transparency)*1e3),'"/>'):"",n+="</a:blip>"),T!=null&&T.type){var K=T.w?Kn(T.w,"X",t._presLayout):g,ne=T.h?Kn(T.h,"Y",t._presLayout):y,Z=Kn(T.x||0,"X",t._presLayout),$=Kn(T.y||0,"Y",t._presLayout);n+=iMt[T.type]({w:N,h:P},{w:K,h:ne,x:Z,y:$}),N=K,P=ne}else n+=" <a:stretch><a:fillRect/></a:stretch>";n+="</p:blipFill>",n+="<p:spPr>",n+=" <a:xfrm"+R+">",n+=' <a:off x="'.concat(p,'" y="').concat(v,'"/>'),n+=' <a:ext cx="'.concat(N,'" cy="').concat(P,'"/>'),n+=" </a:xfrm>",n+=' <a:prstGeom prst="'.concat(O?"ellipse":"rect",'"><a:avLst/></a:prstGeom>'),a.options.shadow&&a.options.shadow.type!=="none"&&(a.options.shadow.type=a.options.shadow.type||"outer",a.options.shadow.blur=xn(a.options.shadow.blur||8),a.options.shadow.offset=xn(a.options.shadow.offset||4),a.options.shadow.angle=Math.round((a.options.shadow.angle||270)*6e4),a.options.shadow.opacity=Math.round((a.options.shadow.opacity||.75)*1e5),a.options.shadow.color=a.options.shadow.color||aRe.color,n+="<a:effectLst>",n+="<a:".concat(a.options.shadow.type,"Shdw ").concat(a.options.shadow.type==="outer"?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':"",' blurRad="').concat(a.options.shadow.blur,'" dist="').concat(a.options.shadow.offset,'" dir="').concat(a.options.shadow.angle,'">'),n+='<a:srgbClr val="'.concat(a.options.shadow.color,'">'),n+='<a:alpha val="'.concat(a.options.shadow.opacity,'"/></a:srgbClr>'),n+="</a:".concat(a.options.shadow.type,"Shdw>"),n+="</a:effectLst>"),n+="</p:spPr>",n+="</p:pic>";break;case In.media:a.mtype==="online"?(n+="<p:pic>",n+=" <p:nvPicPr>",n+='<p:cNvPr id="'.concat(a.mediaRid+2,'" name="').concat(a.options.objectName,'"/>'),n+=" <p:cNvPicPr/>",n+=" <p:nvPr>",n+=' <a:videoFile r:link="rId'.concat(a.mediaRid,'"/>'),n+=" </p:nvPr>",n+=" </p:nvPicPr>",n+=' <p:blipFill><a:blip r:embed="rId'.concat(a.mediaRid+1,'"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>'),n+=" <p:spPr>",n+=" <a:xfrm".concat(R,'><a:off x="').concat(p,'" y="').concat(v,'"/><a:ext cx="').concat(g,'" cy="').concat(y,'"/></a:xfrm>'),n+=' <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',n+=" </p:spPr>",n+="</p:pic>"):(n+="<p:pic>",n+=" <p:nvPicPr>",n+='<p:cNvPr id="'.concat(a.mediaRid+2,'" name="').concat(a.options.objectName,'"><a:hlinkClick r:id="" action="ppaction://media"/></p:cNvPr>'),n+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',n+=" <p:nvPr>",n+=' <a:videoFile r:link="rId'.concat(a.mediaRid,'"/>'),n+=" <p:extLst>",n+=' <p:ext uri="{DAA4B4D4-6D71-4841-9C94-3DE7FCFB9230}">',n+=' <p14:media xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" r:embed="rId'.concat(a.mediaRid+1,'"/>'),n+=" </p:ext>",n+=" </p:extLst>",n+=" </p:nvPr>",n+=" </p:nvPicPr>",n+=' <p:blipFill><a:blip r:embed="rId'.concat(a.mediaRid+2,'"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>'),n+=" <p:spPr>",n+=" <a:xfrm".concat(R,'><a:off x="').concat(p,'" y="').concat(v,'"/><a:ext cx="').concat(g,'" cy="').concat(y,'"/></a:xfrm>'),n+=' <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',n+=" </p:spPr>",n+="</p:pic>");break;case In.chart:n+="<p:graphicFrame>",n+=" <p:nvGraphicFramePr>",n+=' <p:cNvPr id="'.concat(i+2,'" name="').concat(a.options.objectName,'" descr="').concat(Nn(a.options.altText||""),'"/>'),n+=" <p:cNvGraphicFramePr/>",n+=" <p:nvPr>".concat(AE(m),"</p:nvPr>"),n+=" </p:nvGraphicFramePr>",n+=' <p:xfrm><a:off x="'.concat(p,'" y="').concat(v,'"/><a:ext cx="').concat(g,'" cy="').concat(y,'"/></p:xfrm>'),n+=' <a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">',n+=' <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/chart">',n+=' <c:chart r:id="rId'.concat(a.chartRid,'" xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"/>'),n+=" </a:graphicData>",n+=" </a:graphic>",n+="</p:graphicFrame>";break;default:n+="";break}}),t._slideNumberProps&&(t._slideNumberProps.align||(t._slideNumberProps.align="left"),n+="<p:sp>",n+=" <p:nvSpPr>",n+=' <p:cNvPr id="25" name="Slide Number Placeholder 0"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr>',n+=' <p:nvPr><p:ph type="sldNum" sz="quarter" idx="4294967295"/></p:nvPr>',n+=" </p:nvSpPr>",n+=" <p:spPr>",n+="<a:xfrm>"+'<a:off x="'.concat(Kn(t._slideNumberProps.x,"X",t._presLayout),'" y="').concat(Kn(t._slideNumberProps.y,"Y",t._presLayout),'"/>')+'<a:ext cx="'.concat(t._slideNumberProps.w?Kn(t._slideNumberProps.w,"X",t._presLayout):"800000",'" cy="').concat(t._slideNumberProps.h?Kn(t._slideNumberProps.h,"Y",t._presLayout):"300000",'"/>')+'</a:xfrm> <a:prstGeom prst="rect"><a:avLst/></a:prstGeom> <a:extLst><a:ext uri="{C572A759-6A51-4108-AA02-DFA0A04FC94B}"><ma14:wrappingTextBoxFlag val="0" xmlns:ma14="http://schemas.microsoft.com/office/mac/drawingml/2011/main"/></a:ext></a:extLst></p:spPr>',n+="<p:txBody>",n+="<a:bodyPr",t._slideNumberProps.margin&&Array.isArray(t._slideNumberProps.margin)?(n+=' lIns="'.concat(xn(t._slideNumberProps.margin[3]||0),'"'),n+=' tIns="'.concat(xn(t._slideNumberProps.margin[0]||0),'"'),n+=' rIns="'.concat(xn(t._slideNumberProps.margin[1]||0),'"'),n+=' bIns="'.concat(xn(t._slideNumberProps.margin[2]||0),'"')):typeof t._slideNumberProps.margin=="number"&&(n+=' lIns="'.concat(xn(t._slideNumberProps.margin||0),'"'),n+=' tIns="'.concat(xn(t._slideNumberProps.margin||0),'"'),n+=' rIns="'.concat(xn(t._slideNumberProps.margin||0),'"'),n+=' bIns="'.concat(xn(t._slideNumberProps.margin||0),'"')),t._slideNumberProps.valign&&(n+=' anchor="'.concat(t._slideNumberProps.valign.replace("top","t").replace("middle","ctr").replace("bottom","b"),'"')),n+="/>",n+=" <a:lstStyle><a:lvl1pPr>",(t._slideNumberProps.fontFace||t._slideNumberProps.fontSize||t._slideNumberProps.color)&&(n+='<a:defRPr sz="'.concat(Math.round((t._slideNumberProps.fontSize||12)*100),'">'),t._slideNumberProps.color&&(n+=uc(t._slideNumberProps.color)),t._slideNumberProps.fontFace&&(n+='<a:latin typeface="'.concat(t._slideNumberProps.fontFace,'"/><a:ea typeface="').concat(t._slideNumberProps.fontFace,'"/><a:cs typeface="').concat(t._slideNumberProps.fontFace,'"/>')),n+="</a:defRPr>"),n+="</a:lvl1pPr></a:lstStyle>",n+="<a:p>",t._slideNumberProps.align.startsWith("l")?n+='<a:pPr algn="l"/>':t._slideNumberProps.align.startsWith("c")?n+='<a:pPr algn="ctr"/>':t._slideNumberProps.align.startsWith("r")?n+='<a:pPr algn="r"/>':n+='<a:pPr algn="l"/>',n+='<a:fld id="'.concat(MOe,'" type="slidenum"><a:rPr b="').concat(t._slideNumberProps.bold?1:0,'" lang="en-US"/>'),n+="<a:t>".concat(t._slideNum,'</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p>'),n+="</p:txBody></p:sp>"),n+="</p:spTree>",n+="</p:cSld>",n}function dte(t,e){var n=0,r='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+ho+'<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">';return t._rels.forEach(function(a){n=Math.max(n,a.rId),a.type.toLowerCase().includes("hyperlink")?a.data==="slide"?r+='<Relationship Id="rId'.concat(a.rId,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slide').concat(a.Target,'.xml"/>'):r+='<Relationship Id="rId'.concat(a.rId,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="').concat(a.Target,'" TargetMode="External"/>'):a.type.toLowerCase().includes("notesSlide")&&(r+='<Relationship Id="rId'.concat(a.rId,'" Target="').concat(a.Target,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"/>'))}),(t._relsChart||[]).forEach(function(a){n=Math.max(n,a.rId),r+='<Relationship Id="rId'.concat(a.rId,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" Target="').concat(a.Target,'"/>')}),(t._relsMedia||[]).forEach(function(a){var i=a.rId.toString();n=Math.max(n,a.rId),a.type.toLowerCase().includes("image")?r+='<Relationship Id="rId'+i+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="'+a.Target+'"/>':a.type.toLowerCase().includes("audio")?r.includes(' Target="'+a.Target+'"')?r+='<Relationship Id="rId'+i+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+a.Target+'"/>':r+='<Relationship Id="rId'+i+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio" Target="'+a.Target+'"/>':a.type.toLowerCase().includes("video")?r.includes(' Target="'+a.Target+'"')?r+='<Relationship Id="rId'+i+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+a.Target+'"/>':r+='<Relationship Id="rId'+i+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video" Target="'+a.Target+'"/>':a.type.toLowerCase().includes("online")&&(r.includes(' Target="'+a.Target+'"')?r+='<Relationship Id="rId'+i+'" Type="http://schemas.microsoft.com/office/2007/relationships/image" Target="'+a.Target+'"/>':r+='<Relationship Id="rId'+i+'" Target="'+a.Target+'" TargetMode="External" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video"/>')}),e.forEach(function(a,i){r+='<Relationship Id="rId'.concat(n+i+1,'" Type="').concat(a.type,'" Target="').concat(a.target,'"/>')}),r+="</Relationships>",r}function sRe(t,e){var n,r,a="",i="",o="",s="",l=e?"a:lvl1pPr":"a:pPr",c=xn(W3t),u="<".concat(l).concat(t.options.rtlMode?' rtl="1" ':"");{if(t.options.align)switch(t.options.align){case"left":u+=' algn="l"';break;case"right":u+=' algn="r"';break;case"center":u+=' algn="ctr"';break;case"justify":u+=' algn="just"';break;default:u+="";break}if(t.options.lineSpacing?i='<a:lnSpc><a:spcPts val="'.concat(Math.round(t.options.lineSpacing*100),'"/></a:lnSpc>'):t.options.lineSpacingMultiple&&(i='<a:lnSpc><a:spcPct val="'.concat(Math.round(t.options.lineSpacingMultiple*1e5),'"/></a:lnSpc>')),t.options.indentLevel&&!isNaN(Number(t.options.indentLevel))&&t.options.indentLevel>0&&(u+=' lvl="'.concat(t.options.indentLevel,'"')),t.options.paraSpaceBefore&&!isNaN(Number(t.options.paraSpaceBefore))&&t.options.paraSpaceBefore>0&&(o+='<a:spcBef><a:spcPts val="'.concat(Math.round(t.options.paraSpaceBefore*100),'"/></a:spcBef>')),t.options.paraSpaceAfter&&!isNaN(Number(t.options.paraSpaceAfter))&&t.options.paraSpaceAfter>0&&(o+='<a:spcAft><a:spcPts val="'.concat(Math.round(t.options.paraSpaceAfter*100),'"/></a:spcAft>')),typeof t.options.bullet=="object")if(!((r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.bullet)===null||r===void 0)&&r.indent&&(c=xn(t.options.bullet.indent)),t.options.bullet.type)t.options.bullet.type.toString().toLowerCase()==="number"&&(u+=' marL="'.concat(t.options.indentLevel&&t.options.indentLevel>0?c+c*t.options.indentLevel:c,'" indent="-').concat(c,'"'),a='<a:buSzPct val="100000"/><a:buFont typeface="+mj-lt"/><a:buAutoNum type="'.concat(t.options.bullet.style||"arabicPeriod",'" startAt="').concat(t.options.bullet.numberStartAt||t.options.bullet.startAt||"1",'"/>'));else if(t.options.bullet.characterCode){var f="&#x".concat(t.options.bullet.characterCode,";");/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.characterCode)||(console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),f=Tx.DEFAULT),u+=' marL="'.concat(t.options.indentLevel&&t.options.indentLevel>0?c+c*t.options.indentLevel:c,'" indent="-').concat(c,'"'),a='<a:buSzPct val="100000"/><a:buChar char="'+f+'"/>'}else if(t.options.bullet.code){var f="&#x".concat(t.options.bullet.code,";");/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.code)||(console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),f=Tx.DEFAULT),u+=' marL="'.concat(t.options.indentLevel&&t.options.indentLevel>0?c+c*t.options.indentLevel:c,'" indent="-').concat(c,'"'),a='<a:buSzPct val="100000"/><a:buChar char="'+f+'"/>'}else u+=' marL="'.concat(t.options.indentLevel&&t.options.indentLevel>0?c+c*t.options.indentLevel:c,'" indent="-').concat(c,'"'),a='<a:buSzPct val="100000"/><a:buChar char="'.concat(Tx.DEFAULT,'"/>');else t.options.bullet?(u+=' marL="'.concat(t.options.indentLevel&&t.options.indentLevel>0?c+c*t.options.indentLevel:c,'" indent="-').concat(c,'"'),a='<a:buSzPct val="100000"/><a:buChar char="'.concat(Tx.DEFAULT,'"/>')):t.options.bullet||(u+=' indent="0" marL="0"',a="<a:buNone/>");if(t.options.tabStops&&Array.isArray(t.options.tabStops)){var d=t.options.tabStops.map(function(h){return'<a:tab pos="'.concat(dr(h.position||1),'" algn="').concat(h.alignment||"l",'"/>')}).join("");s="<a:tabLst>".concat(d,"</a:tabLst>")}u+=">"+i+o+a+s,e&&(u+=OOe(t.options,!0)),u+="</"+l+">"}return u}function OOe(t,e){var n,r="",a=e?"a:defRPr":"a:rPr";if(r+="<"+a+' lang="'+(t.lang?t.lang:"en-US")+'"'+(t.lang?' altLang="en-US"':""),r+=t.fontSize?' sz="'.concat(Math.round(t.fontSize*100),'"'):"",r+=t!=null&&t.bold?' b="'.concat(t.bold?"1":"0",'"'):"",r+=t!=null&&t.italic?' i="'.concat(t.italic?"1":"0",'"'):"",r+=t!=null&&t.strike?' strike="'.concat(typeof t.strike=="string"?t.strike:"sngStrike",'"'):"",typeof t.underline=="object"&&(!((n=t.underline)===null||n===void 0)&&n.style)?r+=' u="'.concat(t.underline.style,'"'):typeof t.underline=="string"?r+=' u="'.concat(String(t.underline),'"'):t.hyperlink&&(r+=' u="sng"'),t.baseline?r+=' baseline="'.concat(Math.round(t.baseline*50),'"'):t.subscript?r+=' baseline="-40000"':t.superscript&&(r+=' baseline="30000"'),r+=t.charSpacing?' spc="'.concat(Math.round(t.charSpacing*100),'" kern="0"'):"",r+=' dirty="0">',(t.color||t.fontFace||t.outline||typeof t.underline=="object"&&t.underline.color)&&(t.outline&&typeof t.outline=="object"&&(r+='<a:ln w="'.concat(xn(t.outline.size||.75),'">').concat(uc(t.outline.color||"FFFFFF"),"</a:ln>")),t.color&&(r+=uc({color:t.color,transparency:t.transparency})),t.highlight&&(r+="<a:highlight>".concat(br(t.highlight),"</a:highlight>")),typeof t.underline=="object"&&t.underline.color&&(r+="<a:uFill>".concat(uc(t.underline.color),"</a:uFill>")),t.glow&&(r+="<a:effectLst>".concat(K3t(t.glow,B3t),"</a:effectLst>")),t.fontFace&&(r+='<a:latin typeface="'.concat(t.fontFace,'" pitchFamily="34" charset="0"/><a:ea typeface="').concat(t.fontFace,'" pitchFamily="34" charset="-122"/><a:cs typeface="').concat(t.fontFace,'" pitchFamily="34" charset="-120"/>'))),t.hyperlink){if(typeof t.hyperlink!="object")throw new Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` ");if(!t.hyperlink.url&&!t.hyperlink.slide)throw new Error("ERROR: 'hyperlink requires either `url` or `slide`'");t.hyperlink.url?r+='<a:hlinkClick r:id="rId'.concat(t.hyperlink._rId,'" invalidUrl="" action="" tgtFrame="" tooltip="').concat(t.hyperlink.tooltip?Nn(t.hyperlink.tooltip):"",'" history="1" highlightClick="0" endSnd="0"').concat(t.color?">":"/>"):t.hyperlink.slide&&(r+='<a:hlinkClick r:id="rId'.concat(t.hyperlink._rId,'" action="ppaction://hlinksldjump" tooltip="').concat(t.hyperlink.tooltip?Nn(t.hyperlink.tooltip):"",'"').concat(t.color?">":"/>")),t.color&&(r+=" <a:extLst>",r+=' <a:ext uri="{A12FA001-AC4F-418D-AE19-62706E023703}">',r+=' <ahyp:hlinkClr xmlns:ahyp="http://schemas.microsoft.com/office/drawing/2018/hyperlinkcolor" val="tx"/>',r+=" </a:ext>",r+=" </a:extLst>",r+="</a:hlinkClick>")}return r+="</".concat(a,">"),r}function oMt(t){return t.text?"<a:r>".concat(OOe(t.options,!1),"<a:t>").concat(Nn(t.text),"</a:t></a:r>"):""}function sMt(t){var e="<a:bodyPr";return t&&t._type===In.text&&t.options._bodyProp?(e+=t.options._bodyProp.wrap?' wrap="square"':' wrap="none"',(t.options._bodyProp.lIns||t.options._bodyProp.lIns===0)&&(e+=' lIns="'.concat(t.options._bodyProp.lIns,'"')),(t.options._bodyProp.tIns||t.options._bodyProp.tIns===0)&&(e+=' tIns="'.concat(t.options._bodyProp.tIns,'"')),(t.options._bodyProp.rIns||t.options._bodyProp.rIns===0)&&(e+=' rIns="'.concat(t.options._bodyProp.rIns,'"')),(t.options._bodyProp.bIns||t.options._bodyProp.bIns===0)&&(e+=' bIns="'.concat(t.options._bodyProp.bIns,'"')),e+=' rtlCol="0"',t.options._bodyProp.anchor&&(e+=' anchor="'+t.options._bodyProp.anchor+'"'),t.options._bodyProp.vert&&(e+=' vert="'+t.options._bodyProp.vert+'"'),e+=">",t.options.fit&&(t.options.fit==="none"?e+="":t.options.fit==="shrink"?e+="<a:normAutofit/>":t.options.fit==="resize"&&(e+="<a:spAutoFit/>")),t.options.shrinkText&&(e+="<a:normAutofit/>"),e+=t.options._bodyProp.autoFit?"<a:spAutoFit/>":"",e+="</a:bodyPr>"):(e+=' wrap="square" rtlCol="0">',e+="</a:bodyPr>"),t._type===In.tablecell?"<a:bodyPr/>":e}function lRe(t){var e=t.options||{},n=[],r=[];if(e&&t._type!==In.tablecell&&(typeof t.text>"u"||t.text===null))return"";var a=t._type===In.tablecell?"<a:txBody>":"<p:txBody>";a+=sMt(t),e.h===0&&e.line&&e.align?a+='<a:lstStyle><a:lvl1pPr algn="l"/></a:lstStyle>':t._type==="placeholder"?a+="<a:lstStyle>".concat(sRe(t,!0),"</a:lstStyle>"):a+="<a:lstStyle/>",typeof t.text=="string"||typeof t.text=="number"?n.push({text:t.text.toString(),options:e||{}}):t.text&&!Array.isArray(t.text)&&typeof t.text=="object"&&Object.keys(t.text).includes("text")?n.push({text:t.text||"",options:t.options||{}}):Array.isArray(t.text)&&(n=t.text.map(function(s){return{text:s.text,options:s.options}})),n.forEach(function(s,l){s.text||(s.text=""),s.options=s.options||e||{},l===0&&s.options&&!s.options.bullet&&e.bullet&&(s.options.bullet=e.bullet),(typeof s.text=="string"||typeof s.text=="number")&&(s.text=s.text.toString().replace(/\r*\n/g,ho)),s.text.includes(ho)&&s.text.match(/\n$/g)===null?s.text.split(ho).forEach(function(c){s.options.breakLine=!0,r.push({text:c,options:s.options})}):r.push(s)});var i=[],o=[];return r.forEach(function(s,l){o.length>0&&(s.options.align||e.align)?s.options.align!==r[l-1].options.align&&(i.push(o),o=[]):o.length>0&&s.options.bullet&&o.length>0&&(i.push(o),o=[],s.options.breakLine=!1),o.push(s),o.length>0&&s.options.breakLine&&l+1<r.length&&(i.push(o),o=[]),l+1===r.length&&i.push(o)}),i.forEach(function(s){var l,c=!1;a+="<a:p>";var u="<a:pPr ".concat(!((l=s[0].options)===null||l===void 0)&&l.rtlMode?' rtl="1" ':"");s.forEach(function(f,d){f.options._lineIdx=d,d>0&&f.options.softBreakBefore&&(a+="<a:br/>"),f.options.align=f.options.align||e.align,f.options.lineSpacing=f.options.lineSpacing||e.lineSpacing,f.options.lineSpacingMultiple=f.options.lineSpacingMultiple||e.lineSpacingMultiple,f.options.indentLevel=f.options.indentLevel||e.indentLevel,f.options.paraSpaceBefore=f.options.paraSpaceBefore||e.paraSpaceBefore,f.options.paraSpaceAfter=f.options.paraSpaceAfter||e.paraSpaceAfter,u=sRe(f,!1),a+=u.replace("<a:pPr></a:pPr>",""),Object.entries(e).filter(function(h){var p=h[0];return h[1],!(f.options.hyperlink&&p==="color")}).forEach(function(h){var p=h[0],v=h[1];p!=="bullet"&&!f.options[p]&&(f.options[p]=v)}),a+=oMt(f),(!f.text&&e.fontSize||f.options.fontSize)&&(c=!0,e.fontSize=e.fontSize||f.options.fontSize)}),t._type===In.tablecell&&(e.fontSize||e.fontFace)?e.fontFace?(a+='<a:endParaRPr lang="'.concat(e.lang||"en-US",'"')+(e.fontSize?' sz="'.concat(Math.round(e.fontSize*100),'"'):"")+' dirty="0">',a+='<a:latin typeface="'.concat(e.fontFace,'" charset="0"/>'),a+='<a:ea typeface="'.concat(e.fontFace,'" charset="0"/>'),a+='<a:cs typeface="'.concat(e.fontFace,'" charset="0"/>'),a+="</a:endParaRPr>"):a+='<a:endParaRPr lang="'.concat(e.lang||"en-US",'"')+(e.fontSize?' sz="'.concat(Math.round(e.fontSize*100),'"'):"")+' dirty="0"/>':c?a+='<a:endParaRPr lang="'.concat(e.lang||"en-US",'"')+(e.fontSize?' sz="'.concat(Math.round(e.fontSize*100),'"'):"")+' dirty="0"/>':a+='<a:endParaRPr lang="'.concat(e.lang||"en-US",'" dirty="0"/>'),a+="</a:p>"}),a+=t._type===In.tablecell?"</a:txBody>":"</p:txBody>",a}function AE(t){var e,n;if(!t)return"";var r=!((e=t.options)===null||e===void 0)&&e._placeholderIdx?t.options._placeholderIdx:"",a=!((n=t.options)===null||n===void 0)&&n._placeholderType?t.options._placeholderType:"",i=a&&uw[a]?uw[a].toString():"";return`<p:ph- `.concat(r?' idx="'+r.toString()+'"':"",`- `).concat(i&&uw[i]?' type="'.concat(i,'"'):"",`- `).concat(t.text&&t.text.length>0?' hasCustomPrompt="1"':"",`- />`)}function lMt(t,e,n){var r='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+ho;return r+='<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">',r+='<Default Extension="xml" ContentType="application/xml"/>',r+='<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>',r+='<Default Extension="jpeg" ContentType="image/jpeg"/>',r+='<Default Extension="jpg" ContentType="image/jpg"/>',r+='<Default Extension="svg" ContentType="image/svg+xml"/>',r+='<Default Extension="png" ContentType="image/png"/>',r+='<Default Extension="gif" ContentType="image/gif"/>',r+='<Default Extension="m4v" ContentType="video/mp4"/>',r+='<Default Extension="mp4" ContentType="video/mp4"/>',t.forEach(function(a){(a._relsMedia||[]).forEach(function(i){i.type!=="image"&&i.type!=="online"&&i.type!=="chart"&&i.extn!=="m4v"&&!r.includes(i.type)&&(r+='<Default Extension="'+i.extn+'" ContentType="'+i.type+'"/>')})}),r+='<Default Extension="vml" ContentType="application/vnd.openxmlformats-officedocument.vmlDrawing"/>',r+='<Default Extension="xlsx" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"/>',r+='<Override PartName="/ppt/presentation.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml"/>',r+='<Override PartName="/ppt/notesMasters/notesMaster1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.notesMaster+xml"/>',t.forEach(function(a,i){r+='<Override PartName="/ppt/slideMasters/slideMaster'.concat(i+1,'.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"/>'),r+='<Override PartName="/ppt/slides/slide'.concat(i+1,'.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"/>'),a._relsChart.forEach(function(o){r+='<Override PartName="'.concat(o.Target,'" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>')})}),r+='<Override PartName="/ppt/presProps.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.presProps+xml"/>',r+='<Override PartName="/ppt/viewProps.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml"/>',r+='<Override PartName="/ppt/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>',r+='<Override PartName="/ppt/tableStyles.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"/>',e.forEach(function(a,i){r+='<Override PartName="/ppt/slideLayouts/slideLayout'.concat(i+1,'.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"/>'),(a._relsChart||[]).forEach(function(o){r+=' <Override PartName="'+o.Target+'" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>'})}),t.forEach(function(a,i){r+='<Override PartName="/ppt/notesSlides/notesSlide'.concat(i+1,'.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.notesSlide+xml"/>')}),n._relsChart.forEach(function(a){r+=' <Override PartName="'+a.Target+'" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>'}),n._relsMedia.forEach(function(a){a.type!=="image"&&a.type!=="online"&&a.type!=="chart"&&a.extn!=="m4v"&&!r.includes(a.type)&&(r+=' <Default Extension="'+a.extn+'" ContentType="'+a.type+'"/>')}),r+=' <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>',r+=' <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>',r+="</Types>",r}function cMt(){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(ho,`<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">- <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>- <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>- <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="ppt/presentation.xml"/>- </Relationships>`)}function uMt(t,e){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(ho,`<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">- <TotalTime>0</TotalTime>- <Words>0</Words>- <Application>Microsoft Office PowerPoint</Application>- <PresentationFormat>On-screen Show (16:9)</PresentationFormat>- <Paragraphs>0</Paragraphs>- <Slides>`).concat(t.length,`</Slides>- <Notes>`).concat(t.length,`</Notes>- <HiddenSlides>0</HiddenSlides>- <MMClips>0</MMClips>- <ScaleCrop>false</ScaleCrop>- <HeadingPairs>- <vt:vector size="6" baseType="variant">- <vt:variant><vt:lpstr>Fonts Used</vt:lpstr></vt:variant>- <vt:variant><vt:i4>2</vt:i4></vt:variant>- <vt:variant><vt:lpstr>Theme</vt:lpstr></vt:variant>- <vt:variant><vt:i4>1</vt:i4></vt:variant>- <vt:variant><vt:lpstr>Slide Titles</vt:lpstr></vt:variant>- <vt:variant><vt:i4>`).concat(t.length,`</vt:i4></vt:variant>- </vt:vector>- </HeadingPairs>- <TitlesOfParts>- <vt:vector size="`).concat(t.length+1+2,`" baseType="lpstr">- <vt:lpstr>Arial</vt:lpstr>- <vt:lpstr>Calibri</vt:lpstr>- <vt:lpstr>Office Theme</vt:lpstr>- `).concat(t.map(function(n,r){return"<vt:lpstr>Slide ".concat(r+1,"</vt:lpstr>")}).join(""),`- </vt:vector>- </TitlesOfParts>- <Company>`).concat(e,`</Company>- <LinksUpToDate>false</LinksUpToDate>- <SharedDoc>false</SharedDoc>- <HyperlinksChanged>false</HyperlinksChanged>- <AppVersion>16.0000</AppVersion>- </Properties>`)}function fMt(t,e,n,r){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>- <cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">- <dc:title>`.concat(Nn(t),`</dc:title>- <dc:subject>`).concat(Nn(e),`</dc:subject>- <dc:creator>`).concat(Nn(n),`</dc:creator>- <cp:lastModifiedBy>`).concat(Nn(n),`</cp:lastModifiedBy>- <cp:revision>`).concat(r,`</cp:revision>- <dcterms:created xsi:type="dcterms:W3CDTF">`).concat(new Date().toISOString().replace(/\.\d\d\dZ/,"Z"),`</dcterms:created>- <dcterms:modified xsi:type="dcterms:W3CDTF">`).concat(new Date().toISOString().replace(/\.\d\d\dZ/,"Z"),`</dcterms:modified>- </cp:coreProperties>`)}function dMt(t){var e=1,n='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+ho;n+='<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',n+='<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" Target="slideMasters/slideMaster1.xml"/>';for(var r=1;r<=t.length;r++)n+='<Relationship Id="rId'.concat(++e,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slides/slide').concat(r,'.xml"/>');return e++,n+='<Relationship Id="rId'.concat(e+0,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster" Target="notesMasters/notesMaster1.xml"/>')+'<Relationship Id="rId'.concat(e+1,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps" Target="presProps.xml"/>')+'<Relationship Id="rId'.concat(e+2,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps" Target="viewProps.xml"/>')+'<Relationship Id="rId'.concat(e+3,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/>')+'<Relationship Id="rId'.concat(e+4,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles" Target="tableStyles.xml"/>')+"</Relationships>",n}function hMt(t){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(ho)+'<p:sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"'+"".concat(t!=null&&t.hidden?' show="0"':"",">")+"".concat(fte(t))+"<p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:sld>"}function pMt(t){var e="";return t._slideObjects.forEach(function(n){n._type===In.notes&&(e+=n!=null&&n.text&&n.text[0]?n.text[0].text:"")}),e.replace(/\r*\n/g,ho)}function vMt(){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(ho,'<p:notesMaster xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:cSld><p:bg><p:bgRef idx="1001"><a:schemeClr val="bg1"/></p:bgRef></p:bg><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr><p:sp><p:nvSpPr><p:cNvPr id="2" name="Header Placeholder 1"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="hdr" sz="quarter"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="2971800" cy="458788"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0"/><a:lstStyle><a:lvl1pPr algn="l"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="3" name="Date Placeholder 2"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="dt" idx="1"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="3884613" y="0"/><a:ext cx="2971800" cy="458788"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0"/><a:lstStyle><a:lvl1pPr algn="r"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:fld id="{5282F153-3F37-0F45-9E97-73ACFA13230C}" type="datetimeFigureOut"><a:rPr lang="en-US"/><a:t>7/23/19</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="4" name="Slide Image Placeholder 3"/><p:cNvSpPr><a:spLocks noGrp="1" noRot="1" noChangeAspect="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldImg" idx="2"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="685800" y="1143000"/><a:ext cx="5486400" cy="3086100"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom><a:noFill/><a:ln w="12700"><a:solidFill><a:prstClr val="black"/></a:solidFill></a:ln></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0" anchor="ctr"/><a:lstStyle/><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="5" name="Notes Placeholder 4"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="body" sz="quarter" idx="3"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="685800" y="4400550"/><a:ext cx="5486400" cy="3600450"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0"/><a:lstStyle/><a:p><a:pPr lvl="0"/><a:r><a:rPr lang="en-US"/><a:t>Click to edit Master text styles</a:t></a:r></a:p><a:p><a:pPr lvl="1"/><a:r><a:rPr lang="en-US"/><a:t>Second level</a:t></a:r></a:p><a:p><a:pPr lvl="2"/><a:r><a:rPr lang="en-US"/><a:t>Third level</a:t></a:r></a:p><a:p><a:pPr lvl="3"/><a:r><a:rPr lang="en-US"/><a:t>Fourth level</a:t></a:r></a:p><a:p><a:pPr lvl="4"/><a:r><a:rPr lang="en-US"/><a:t>Fifth level</a:t></a:r></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="6" name="Footer Placeholder 5"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="ftr" sz="quarter" idx="4"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="0" y="8685213"/><a:ext cx="2971800" cy="458787"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0" anchor="b"/><a:lstStyle><a:lvl1pPr algn="l"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="7" name="Slide Number Placeholder 6"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldNum" sz="quarter" idx="5"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="3884613" y="8685213"/><a:ext cx="2971800" cy="458787"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0" anchor="b"/><a:lstStyle><a:lvl1pPr algn="r"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:fld id="{CE5E9CC1-C706-0F49-92D6-E571CC5EEA8F}" type="slidenum"><a:rPr lang="en-US"/><a:t>‹#›</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp></p:spTree><p:extLst><p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}"><p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1024086991"/></p:ext></p:extLst></p:cSld><p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/><p:notesStyle><a:lvl1pPr marL="0" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl1pPr><a:lvl2pPr marL="457200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl2pPr><a:lvl3pPr marL="914400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl3pPr><a:lvl4pPr marL="1371600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl4pPr><a:lvl5pPr marL="1828800" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl5pPr><a:lvl6pPr marL="2286000" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl6pPr><a:lvl7pPr marL="2743200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl7pPr><a:lvl8pPr marL="3200400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl8pPr><a:lvl9pPr marL="3657600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl9pPr></p:notesStyle></p:notesMaster>')}function gMt(t){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(ho,'<p:notes xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:cSld><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr><p:sp><p:nvSpPr><p:cNvPr id="2" name="Slide Image Placeholder 1"/><p:cNvSpPr><a:spLocks noGrp="1" noRot="1" noChangeAspect="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldImg"/></p:nvPr></p:nvSpPr><p:spPr/></p:sp><p:sp><p:nvSpPr><p:cNvPr id="3" name="Notes Placeholder 2"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="body" idx="1"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:r><a:rPr lang="en-US" dirty="0"/><a:t>').concat(Nn(pMt(t)),'</a:t></a:r><a:endParaRPr lang="en-US" dirty="0"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="4" name="Slide Number Placeholder 3"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldNum" sz="quarter" idx="10"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:fld id="').concat(MOe,'" type="slidenum"><a:rPr lang="en-US"/><a:t>').concat(t._slideNum,'</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp></p:spTree><p:extLst><p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}"><p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1024086991"/></p:ext></p:extLst></p:cSld><p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:notes>')}function mMt(t){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>- <p:sldLayout xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" preserve="1">- `.concat(fte(t),`- <p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:sldLayout>`)}function yMt(t,e){var n=e.map(function(a,i){return'<p:sldLayoutId id="'.concat(V3t+i,'" r:id="rId').concat(t._rels.length+i+1,'"/>')}),r='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+ho;return r+='<p:sldMaster xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main">',r+=fte(t),r+='<p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/>',r+="<p:sldLayoutIdLst>"+n.join("")+"</p:sldLayoutIdLst>",r+='<p:hf sldNum="0" hdr="0" ftr="0" dt="0"/>',r+='<p:txStyles> <p:titleStyle> <a:lvl1pPr algn="ctr" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="0"/></a:spcBef><a:buNone/><a:defRPr sz="4400" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mj-lt"/><a:ea typeface="+mj-ea"/><a:cs typeface="+mj-cs"/></a:defRPr></a:lvl1pPr> </p:titleStyle> <p:bodyStyle> <a:lvl1pPr marL="342900" indent="-342900" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="•"/><a:defRPr sz="3200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl1pPr> <a:lvl2pPr marL="742950" indent="-285750" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="–"/><a:defRPr sz="2800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl2pPr> <a:lvl3pPr marL="1143000" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="•"/><a:defRPr sz="2400" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl3pPr> <a:lvl4pPr marL="1600200" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="–"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl4pPr> <a:lvl5pPr marL="2057400" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="»"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl5pPr> <a:lvl6pPr marL="2514600" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="•"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl6pPr> <a:lvl7pPr marL="2971800" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="•"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl7pPr> <a:lvl8pPr marL="3429000" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="•"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl8pPr> <a:lvl9pPr marL="3886200" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="•"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl9pPr> </p:bodyStyle> <p:otherStyle> <a:defPPr><a:defRPr lang="en-US"/></a:defPPr> <a:lvl1pPr marL="0" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl1pPr> <a:lvl2pPr marL="457200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl2pPr> <a:lvl3pPr marL="914400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl3pPr> <a:lvl4pPr marL="1371600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl4pPr> <a:lvl5pPr marL="1828800" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl5pPr> <a:lvl6pPr marL="2286000" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl6pPr> <a:lvl7pPr marL="2743200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl7pPr> <a:lvl8pPr marL="3200400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl8pPr> <a:lvl9pPr marL="3657600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl9pPr> </p:otherStyle></p:txStyles>',r+="</p:sldMaster>",r}function AMt(t,e){return dte(e[t-1],[{target:"../slideMasters/slideMaster1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"}])}function RMt(t,e,n){return dte(t[n-1],[{target:"../slideLayouts/slideLayout".concat(MMt(t,e,n),".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"},{target:"../notesSlides/notesSlide".concat(n,".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"}])}function bMt(t){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>- <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">- <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster" Target="../notesMasters/notesMaster1.xml"/>- <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="../slides/slide`.concat(t,`.xml"/>- </Relationships>`)}function xMt(t,e){var n=e.map(function(r,a){return{target:"../slideLayouts/slideLayout".concat(a+1,".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"}});return n.push({target:"../theme/theme1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"}),dte(t,n)}function SMt(){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(ho,`<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">- <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="../theme/theme1.xml"/>- </Relationships>`)}function MMt(t,e,n){for(var r=0;r<e.length;r++)if(e[r]._name===t[n-1]._slideLayout._name)return r+1;return 1}function _Mt(t){var e,n,r,a,i=!((e=t.theme)===null||e===void 0)&&e.headFontFace?'<a:latin typeface="'.concat((n=t.theme)===null||n===void 0?void 0:n.headFontFace,'"/>'):'<a:latin typeface="Calibri Light" panose="020F0302020204030204"/>',o=!((r=t.theme)===null||r===void 0)&&r.bodyFontFace?'<a:latin typeface="'.concat((a=t.theme)===null||a===void 0?void 0:a.bodyFontFace,'"/>'):'<a:latin typeface="Calibri" panose="020F0502020204030204"/>';return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont>'.concat(i,'<a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Angsana New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont>').concat(o,'<a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Cordia New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme>')}function wMt(t){var e='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(ho)+'<p:presentation xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" '+'xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" '.concat(t.rtlMode?'rtl="1"':"",' saveSubsetFonts="1" autoCompressPictures="0">');e+='<p:sldMasterIdLst><p:sldMasterId id="2147483648" r:id="rId1"/></p:sldMasterIdLst>',e+="<p:sldIdLst>",t.slides.forEach(function(r){return e+='<p:sldId id="'.concat(r._slideId,'" r:id="rId').concat(r._rId,'"/>')}),e+="</p:sldIdLst>",e+='<p:notesMasterIdLst><p:notesMasterId r:id="rId'.concat(t.slides.length+2,'"/></p:notesMasterIdLst>'),e+='<p:sldSz cx="'.concat(t.presLayout.width,'" cy="').concat(t.presLayout.height,'"/>'),e+='<p:notesSz cx="'.concat(t.presLayout.height,'" cy="').concat(t.presLayout.width,'"/>'),e+="<p:defaultTextStyle>";for(var n=1;n<10;n++)e+="<a:lvl".concat(n,'pPr marL="').concat((n-1)*457200,'" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1">')+'<a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/>'+"</a:defRPr></a:lvl".concat(n,"pPr>");return e+="</p:defaultTextStyle>",t.sections&&t.sections.length>0&&(e+='<p:extLst><p:ext uri="{521415D9-36F7-43E2-AB2F-B90AF26B5E84}">',e+='<p14:sectionLst xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main">',t.sections.forEach(function(r){e+='<p14:section name="'.concat(Nn(r.title),'" id="{').concat(dF("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"),'}"><p14:sldIdLst>'),r._slides.forEach(function(a){return e+='<p14:sldId id="'.concat(a._slideId,'"/>')}),e+="</p14:sldIdLst></p14:section>"}),e+="</p14:sectionLst></p:ext>",e+='<p:ext uri="{EFAFB233-063F-42B5-8137-9DF3F51BA10A}"><p15:sldGuideLst xmlns:p15="http://schemas.microsoft.com/office/powerpoint/2012/main"/></p:ext>',e+="</p:extLst>"),e+="</p:presentation>",e}function LMt(){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(ho,'<p:presentationPr xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"/>')}function TMt(){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(ho,'<a:tblStyleLst xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" def="{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}"/>')}function OMt(){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(ho,'<p:viewPr xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:normalViewPr horzBarState="maximized"><p:restoredLeft sz="15611"/><p:restoredTop sz="94610"/></p:normalViewPr><p:slideViewPr><p:cSldViewPr snapToGrid="0" snapToObjects="1"><p:cViewPr varScale="1"><p:scale><a:sx n="136" d="100"/><a:sy n="136" d="100"/></p:scale><p:origin x="216" y="312"/></p:cViewPr><p:guideLst/></p:cSldViewPr></p:slideViewPr><p:notesTextViewPr><p:cViewPr><p:scale><a:sx n="1" d="1"/><a:sy n="1" d="1"/></p:scale><p:origin x="0" y="0"/></p:cViewPr></p:notesTextViewPr><p:gridSpacing cx="76200" cy="76200"/></p:viewPr>')}var PMt="3.12.0",cRe=function(){function t(){var e=this;this._version=PMt,this._alignH=LJ,this._alignV=TJ,this._chartType=_J,this._outputType=MJ,this._schemeColor=ac,this._shapeType=wJ,this._charts=Et,this._colors=OJ,this._shapes=eg,this.addNewSlide=function(o){var s=e.sections.length>0&&e.sections[e.sections.length-1]._slides.filter(function(l){return l._slideNum===e.slides[e.slides.length-1]._slideNum}).length>0;return o.sectionTitle=s?e.sections[e.sections.length-1].title:null,e.addSlide(o)},this.getSlide=function(o){return e.slides.filter(function(s){return s._slideNum===o})[0]},this.setSlideNumber=function(o){e.masterSlide._slideNumberProps=o,e.slideLayouts.filter(function(s){return s._name===xJ})[0]._slideNumberProps=o},this.createChartMediaRels=function(o,s,l){o._relsChart.forEach(function(c){return l.push(nMt(c,s))}),o._relsMedia.forEach(function(c){if(c.type!=="online"&&c.type!=="hyperlink"){var u=c.data&&typeof c.data=="string"?c.data:"";!u.includes(",")&&!u.includes(";")?u="image/png;base64,"+u:u.includes(",")?u.includes(";")||(u="image/png;"+u):u="image/png;base64,"+u,s.file(c.Target.replace("..","ppt"),u.split(",").pop(),{base64:!0})}})},this.writeFileToBrowser=function(o,s){return th(e,void 0,void 0,function(){var l,c;return nh(this,function(u){switch(u.label){case 0:return l=document.createElement("a"),l.setAttribute("style","display:none;"),l.dataset.interception="off",document.body.appendChild(l),window.URL.createObjectURL?(c=window.URL.createObjectURL(new Blob([s],{type:"application/vnd.openxmlformats-officedocument.presentationml.presentation"})),l.href=c,l.download=o,l.click(),setTimeout(function(){window.URL.revokeObjectURL(c),document.body.removeChild(l)},100),[4,Promise.resolve(o)]):[3,2];case 1:return[2,u.sent()];case 2:return[2]}})})},this.exportPresentation=function(o){return th(e,void 0,void 0,function(){var s,l,c,u=this;return nh(this,function(f){switch(f.label){case 0:return s=[],l=[],c=new ROe,this.slides.forEach(function(d){l=l.concat(YH(d))}),this.slideLayouts.forEach(function(d){l=l.concat(YH(d))}),l=l.concat(YH(this.masterSlide)),[4,Promise.all(l).then(function(){return th(u,void 0,void 0,function(){var d=this;return nh(this,function(h){switch(h.label){case 0:return this.slides.forEach(function(p){p._slideLayout&&eMt(p)}),c.folder("_rels"),c.folder("docProps"),c.folder("ppt").folder("_rels"),c.folder("ppt/charts").folder("_rels"),c.folder("ppt/embeddings"),c.folder("ppt/media"),c.folder("ppt/slideLayouts").folder("_rels"),c.folder("ppt/slideMasters").folder("_rels"),c.folder("ppt/slides").folder("_rels"),c.folder("ppt/theme"),c.folder("ppt/notesMasters").folder("_rels"),c.folder("ppt/notesSlides").folder("_rels"),c.file("[Content_Types].xml",lMt(this.slides,this.slideLayouts,this.masterSlide)),c.file("_rels/.rels",cMt()),c.file("docProps/app.xml",uMt(this.slides,this.company)),c.file("docProps/core.xml",fMt(this.title,this.subject,this.author,this.revision)),c.file("ppt/_rels/presentation.xml.rels",dMt(this.slides)),c.file("ppt/theme/theme1.xml",_Mt(this)),c.file("ppt/presentation.xml",wMt(this)),c.file("ppt/presProps.xml",LMt()),c.file("ppt/tableStyles.xml",TMt()),c.file("ppt/viewProps.xml",OMt()),this.slideLayouts.forEach(function(p,v){c.file("ppt/slideLayouts/slideLayout".concat(v+1,".xml"),mMt(p)),c.file("ppt/slideLayouts/_rels/slideLayout".concat(v+1,".xml.rels"),AMt(v+1,d.slideLayouts))}),this.slides.forEach(function(p,v){c.file("ppt/slides/slide".concat(v+1,".xml"),hMt(p)),c.file("ppt/slides/_rels/slide".concat(v+1,".xml.rels"),RMt(d.slides,d.slideLayouts,v+1)),c.file("ppt/notesSlides/notesSlide".concat(v+1,".xml"),gMt(p)),c.file("ppt/notesSlides/_rels/notesSlide".concat(v+1,".xml.rels"),bMt(v+1))}),c.file("ppt/slideMasters/slideMaster1.xml",yMt(this.masterSlide,this.slideLayouts)),c.file("ppt/slideMasters/_rels/slideMaster1.xml.rels",xMt(this.masterSlide,this.slideLayouts)),c.file("ppt/notesMasters/notesMaster1.xml",vMt()),c.file("ppt/notesMasters/_rels/notesMaster1.xml.rels",SMt()),this.slideLayouts.forEach(function(p){d.createChartMediaRels(p,c,s)}),this.slides.forEach(function(p){d.createChartMediaRels(p,c,s)}),this.createChartMediaRels(this.masterSlide,c,s),[4,Promise.all(s).then(function(){return th(d,void 0,void 0,function(){return nh(this,function(p){switch(p.label){case 0:return o.outputType!=="STREAM"?[3,2]:[4,c.generateAsync({type:"nodebuffer",compression:o.compression?"DEFLATE":"STORE"})];case 1:return[2,p.sent()];case 2:return o.outputType?[4,c.generateAsync({type:o.outputType})]:[3,4];case 3:return[2,p.sent()];case 4:return[4,c.generateAsync({type:"blob",compression:o.compression?"DEFLATE":"STORE"})];case 5:return[2,p.sent()]}})})})];case 1:return[2,h.sent()]}})})})];case 1:return[2,f.sent()]}})})};var n={name:"screen4x3",width:9144e3,height:6858e3},r={name:"screen16x9",width:9144e3,height:5143500},a={name:"screen16x10",width:9144e3,height:5715e3},i={name:"custom",width:12192e3,height:6858e3};this.LAYOUTS={LAYOUT_4x3:n,LAYOUT_16x9:r,LAYOUT_16x10:a,LAYOUT_WIDE:i},this._author="PptxGenJS",this._company="PptxGenJS",this._revision="1",this._subject="PptxGenJS Presentation",this._title="PptxGenJS Presentation",this._presLayout={name:this.LAYOUTS[Gb].name,_sizeW:this.LAYOUTS[Gb].width,_sizeH:this.LAYOUTS[Gb].height,width:this.LAYOUTS[Gb].width,height:this.LAYOUTS[Gb].height},this._rtlMode=!1,this._slideLayouts=[{_margin:t8,_name:xJ,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(t.prototype,"layout",{get:function(){return this._layout},set:function(e){var n=this.LAYOUTS[e];if(n)this._layout=e,this._presLayout=n;else throw new Error("UNKNOWN-LAYOUT")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"author",{get:function(){return this._author},set:function(e){this._author=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"company",{get:function(){return this._company},set:function(e){this._company=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"revision",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"subject",{get:function(){return this._subject},set:function(e){this._subject=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this._theme},set:function(e){this._theme=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rtlMode",{get:function(){return this._rtlMode},set:function(e){this._rtlMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"masterSlide",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"slides",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sections",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"slideLayouts",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AlignH",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AlignV",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ChartType",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"OutputType",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"presLayout",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SchemeColor",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShapeType",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"charts",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colors",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shapes",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),t.prototype.stream=function(e){return th(this,void 0,void 0,function(){return nh(this,function(n){switch(n.label){case 0:return[4,this.exportPresentation({compression:e==null?void 0:e.compression,outputType:"STREAM"})];case 1:return[2,n.sent()]}})})},t.prototype.write=function(e){return th(this,void 0,void 0,function(){var n,r;return nh(this,function(a){switch(a.label){case 0:return n=typeof e=="object"&&(e!=null&&e.outputType)?e.outputType:e||null,r=typeof e=="object"&&(e!=null&&e.compression)?e.compression:!1,[4,this.exportPresentation({compression:r,outputType:n})];case 1:return[2,a.sent()]}})})},t.prototype.writeFile=function(e){return th(this,void 0,void 0,function(){var n,r,a,i,o=this;return nh(this,function(s){switch(s.label){case 0:return n=typeof require<"u"&&typeof window>"u"?require("fs"):null,typeof e=="string"&&console.log("Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)"),r=typeof e=="object"&&(e!=null&&e.fileName)?e.fileName:typeof e=="string"?e:"",a=typeof e=="object"&&(e!=null&&e.compression)?e.compression:!1,i=r?r.toString().toLowerCase().endsWith(".pptx")?r:r+".pptx":"Presentation.pptx",[4,this.exportPresentation({compression:a,outputType:n?"nodebuffer":null}).then(function(l){return th(o,void 0,void 0,function(){return nh(this,function(c){switch(c.label){case 0:return n?[4,new Promise(function(u,f){n.writeFile(i,l,function(d){d?f(d):u(i)})})]:[3,2];case 1:return[2,c.sent()];case 2:return[4,this.writeFileToBrowser(i,l)];case 3:return[2,c.sent()]}})})})];case 1:return[2,s.sent()]}})})},t.prototype.addSection=function(e){e?e.title||console.warn("addSection requires a title"):console.warn("addSection requires an argument");var n={_type:"user",_slides:[],title:e.title};e.order?this.sections.splice(e.order,0,n):this._sections.push(n)},t.prototype.addSlide=function(e){var n=typeof e=="string"?e:e!=null&&e.masterName?e.masterName:"",r={_name:this.LAYOUTS[Gb].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1};if(n){var a=this.slideLayouts.filter(function(l){return l._name===n})[0];a&&(r=a)}var i=new tMt({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:r});if(this._slides.push(i),e!=null&&e.sectionTitle){var o=this.sections.filter(function(l){return l.title===e.sectionTitle})[0];o?o._slides.push(i):console.warn('addSlide: unable to find section with title: "'.concat(e.sectionTitle,'"'))}else if(this.sections&&this.sections.length>0&&!(e!=null&&e.sectionTitle)){var s=this._sections[this.sections.length-1];s._type==="default"?s._slides.push(i):this._sections.push({title:"Default-".concat(this.sections.filter(function(l){return l._type==="default"}).length+1),_type:"default",_slides:[i]})}return i},t.prototype.defineLayout=function(e){e?e.name?e.width?e.height?typeof e.height!="number"?console.warn("defineLayout `height` should be a number (inches)"):typeof e.width!="number"&&console.warn("defineLayout `width` should be a number (inches)"):console.warn("defineLayout requires `height`"):console.warn("defineLayout requires `width`"):console.warn("defineLayout requires `name`"):console.warn("defineLayout requires `{name, width, height}`"),this.LAYOUTS[e.name]={name:e.name,_sizeW:Math.round(Number(e.width)*Cn),_sizeH:Math.round(Number(e.height)*Cn),width:Math.round(Number(e.width)*Cn),height:Math.round(Number(e.height)*Cn)}},t.prototype.defineSlideMaster=function(e){if(!e.title)throw new Error("defineSlideMaster() object argument requires a `title` value. (https://gitbrent.github.io/PptxGenJS/docs/masters.html)");var n={_margin:e.margin||t8,_name:e.title,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3+this.slideLayouts.length+1,_slideNumberProps:e.slideNumber||null,_slideObjects:[],background:e.background||null,bkgd:e.bkgd||null};z3t(e,n),this.slideLayouts.push(n),(e.background||e.bkgd)&&TOe(e.background,n),n._slideNumberProps&&!this.masterSlide._slideNumberProps&&(this.masterSlide._slideNumberProps=n._slideNumberProps)},t.prototype.tableToSlides=function(e,n){n===void 0&&(n={}),G3t(this,e,n,n!=null&&n.masterSlideName?this.slideLayouts.filter(function(r){return r._name===n.masterSlideName})[0]:null)},t}();const CMt=["style","script","template"],NMt=["html","head","body","p","dt","dd","li","option","thead","th","tbody","tr","td","tfoot","colgroup"],IMt={li:["ul","ol","menu"],dt:["dl"],dd:["dl"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table"],td:["table"]},kMt=["!doctype","area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],sy=(t,e)=>{const n=e-t.position;rD(t,n)},rD=(t,e)=>{t.position=t.position+e},EMt=(t,e)=>{for(;;){const n=t.indexOf("<",e);if(n===-1)return n;const r=t.charAt(n+1);if(r==="/"||r==="!"||/[A-Za-z0-9]/.test(r))return n;e=n+1}return-1},POe=t=>{const{str:e}=t;let n=EMt(e,t.position);if(n===t.position)return;n===-1&&(n=e.length);const r=e.slice(t.position,n);sy(t,n),t.tokens.push({type:"text",content:r})},FMt=t=>{const{str:e}=t;rD(t,4);let n=e.indexOf("-->",t.position),r=n+3;n===-1&&(n=r=e.length);const a=e.slice(t.position,n);sy(t,r),t.tokens.push({type:"comment",content:a})},XMt=t=>{const{str:e}=t,n=e.length;let r=t.position;for(;r<n;){const o=e.charAt(r);if(!(/\s/.test(o)||o==="/"||o===">"))break;r++}let a=r+1;for(;a<n;){const o=e.charAt(a);if(!!(/\s/.test(o)||o==="/"||o===">"))break;a++}sy(t,a);const i=e.slice(r,a);return t.tokens.push({type:"tag",content:i}),i},DMt=t=>{const{str:e,tokens:n}=t;let r=t.position,a=null,i=r;const o=[],s=e.length;for(;r<s;){const c=e.charAt(r);if(a){c===a&&(a=null),r++;continue}if(c==="/"||c===">"){r!==i&&o.push(e.slice(i,r));break}if(/\s/.test(c)){r!==i&&o.push(e.slice(i,r)),i=r+1,r++;continue}if(c==="'"||c==='"'){a=c,r++;continue}r++}sy(t,r);const l="attribute";for(let c=0;c<o.length;c++){const u=o[c];if(u.indexOf("=")===-1){const d=o[c+1];if(d&&Vr.startsWith(d,"=")){if(d.length>1){const p=u+d;n.push({type:l,content:p}),c+=1;continue}const h=o[c+2];if(c+=1,h){const p=u+"="+h;n.push({type:l,content:p}),c+=1;continue}}}if(Vr.endsWith(u,"=")){const d=o[c+1];if(d&&d.indexOf("=")===-1){const p=u+d;n.push({type:l,content:p}),c+=1;continue}const h=u.slice(0,-1);n.push({type:l,content:h});continue}n.push({type:l,content:u})}},VMt=(t,e)=>{const{str:n,tokens:r}=e,a=t.toLowerCase(),i=n.length;let o=e.position;for(;o<i;){const s=n.indexOf("</",o);if(s===-1){POe(e);break}const l={str:n,position:e.position,tokens:[]};sy(l,s);const c=COe(l);if(a!==c.toLowerCase()){o=l.position;continue}if(s!==e.position){const u=e.position;sy(e,s),r.push({type:"text",content:n.slice(u,s)})}r.push(...l.tokens),sy(e,l.position);break}},COe=t=>{const{str:e}=t,r=e.charAt(t.position+1)==="/";rD(t,r?2:1),t.tokens.push({type:"tag-start",close:r});const a=XMt(t);DMt(t);const o=e.charAt(t.position)==="/";return rD(t,o?2:1),t.tokens.push({type:"tag-end",close:o}),a},UMt=t=>{const e=t.str,n=e.length;for(;t.position<n;){const r=t.position;if(POe(t),t.position===r)if(Vr.startsWith(e,"!--",r+1))FMt(t);else{const i=COe(t),o=i.toLowerCase();CMt.includes(o)&&VMt(i,t)}}},WMt=t=>{const e={str:t,position:0,tokens:[]};return UMt(e),e.tokens},YMt=t=>{const e={tagName:null,children:[]};return NOe({tokens:t,cursor:0,stack:[e]}),e.children},BMt=(t,e)=>{const n=IMt[t];if(n){let r=e.length-1;for(;r>=0;){const a=e[r].tagName;if(a===t)break;if(a&&n.includes(a))return!0;r--}}return!1},uRe=(t,e)=>{t.splice(e)},NOe=t=>{const{stack:e,tokens:n}=t;let{cursor:r}=t,a=e[e.length-1].children;const i=n.length;for(;r<i;){const o=n[r];if(o.type!=="tag-start"){a.push(o),r++;continue}const s=n[++r];r++;const l=s.content.toLowerCase();if(o.close){let g=e.length,y=!1;for(;--g>-1;)if(e[g].tagName===l){y=!0;break}for(;r<i&&n[r].type==="tag-end";)r++;if(y){uRe(e,g);break}else continue}let u=NMt.includes(l);if(u&&(u=!BMt(l,e)),u){let g=e.length-1;for(;g>0;){if(l===e[g].tagName){uRe(e,g);const y=g-1;a=e[y].children;break}g=g-1}}const f=[];let d;for(;r<i;){const g=n[r];if(g.type==="tag-end"){d=g;break}f.push(g.content),r++}if(!d)break;r++;const h=[],p={type:"element",tagName:s.content,attributes:f,children:h};if(a.push(p),!(d.close||kMt.includes(l))){e.push({tagName:l,children:h});const g={tokens:n,cursor:r,stack:e};NOe(g),r=g.cursor}}t.cursor=r},ZMt=(t,e)=>{const n=t.indexOf(e);return n===-1?[t]:[t.slice(0,n),t.slice(n+e.length)]},QMt=t=>{const e=t.charAt(0),n=t.length-1;return(e==='"'||e==="'")&&e===t.charAt(n)?t.slice(1,n):t},KMt=t=>t.map(e=>{const n=ZMt(e.trim(),"="),r=n[0],a=typeof n[1]=="string"?QMt(n[1]):null;return{key:r,value:a}}),IOe=t=>t.map(e=>{if(e.type==="element"){const r=IOe(e.children);return{type:"element",tagName:e.tagName.toLowerCase(),attributes:KMt(e.attributes),children:r}}return{type:e.type,content:e.content}}),HMt=t=>{const e=WMt(t),n=YMt(e);return IOe(n)},RE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",GMt="data:image/svg+xml;base64,",$Mt=t=>{t=t.replace(/\r\n/g,`-`);let e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);r<128?e+=String.fromCharCode(r):r>127&&r<2048?(e+=String.fromCharCode(r>>6|192),e+=String.fromCharCode(r&63|128)):(e+=String.fromCharCode(r>>12|224),e+=String.fromCharCode(r>>6&63|128),e+=String.fromCharCode(r&63|128))}return e},zMt=t=>{let e="",n,r,a,i,o,s,l,c=0;for(t=$Mt(t);c<t.length;)n=t.charCodeAt(c++),r=t.charCodeAt(c++),a=t.charCodeAt(c++),i=n>>2,o=(n&3)<<4|r>>4,s=(r&15)<<2|a>>6,l=a&63,isNaN(r)?s=l=64:isNaN(a)&&(l=64),e=e+RE.charAt(i)+RE.charAt(o)+RE.charAt(s)+RE.charAt(l);return e},fRe=t=>{const n=new XMLSerializer().serializeToString(t);return GMt+zMt(n)},hte=()=>{const t=It(),{slides:e,theme:n,viewportRatio:r,title:a,viewportSize:i}=nt(t),o=16,s=Fe(()=>96*(i.value/960)),l=Fe(()=>96/72*(i.value/960)),c=we(!1),u=(S,w,_,T=!0)=>{c.value=!0;const O=w==="png"?a2t:jAe;S.querySelectorAll("foreignObject [xmlns]").forEach(P=>P.removeAttribute("xmlns")),setTimeout(()=>{const P={quality:_,width:1600};T&&(P.fontEmbedCSS=""),O(S,P).then(C=>{c.value=!1,rRe.saveAs(C,`${a.value}.${w}`)}).catch(()=>{c.value=!1,Dn.error("导出图片失败")})},200)},f=S=>{c.value=!0,setTimeout(()=>{const w=new cRe,_={quality:1,width:1600},T=[];for(const O of S){O.querySelectorAll("foreignObject [xmlns]").forEach(C=>C.removeAttribute("xmlns"));const P=()=>jAe(O,_);T.push(P)}Promise.all(T.map(O=>O())).then(O=>{for(const N of O)w.addSlide().addImage({data:N,x:0,y:0,w:i.value/s.value,h:i.value*r.value/s.value});w.writeFile({fileName:`${a.value}.pptx`}).then(()=>c.value=!1)}).catch(()=>{c.value=!1,Dn.error("导出失败")})},200)},d=()=>{const S={title:a.value,width:i.value,height:i.value*r.value,theme:n.value,slides:e.value},w=new Blob([JSON.stringify(S)],{type:""});rRe.saveAs(w,`${a.value}.json`)},h=S=>{if(!S)return{alpha:0,color:"#000000"};const w=Ct(S),_=w.getAlpha(),T=_===0?"#ffffff":w.setAlpha(1).toHexString();return{alpha:_,color:T}},p=S=>{const w=HMt(S);let _=!1,T=0;const O=[],N=(P,C={})=>{for(const E of P){if("tagName"in E&&["div","li","p"].includes(E.tagName)&&O.length){const K=O[O.length-1];K.options||(K.options={}),K.options.breakLine=!0}const Y={...C},Q="attributes"in E?E.attributes.find(K=>K.key==="style"):null;if(Q&&Q.value){let K=!1;const ne=Q.value.split(";");for(const Z of ne){const $=Z.match(/([^:]+):\s*(.+)/);if($){const[G,ee]=[$[1].trim(),$[2].trim()];if(G&&ee)if(G==="background"&&ee.includes("linear-gradient")){K=!0;const ce=ee.match(/#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgba?\([^)]+\)/g);if(ce&&ce.length>0){const B=ce.map(_e=>Ct(_e)),xe=B.reduce((_e,se)=>{const z=se.toRgb();return{r:_e.r+z.r/B.length,g:_e.g+z.g/B.length,b:_e.b+z.b/B.length}},{r:0,g:0,b:0});Y.color=Ct(xe).toHexString()}}else{if(K&&(G==="background-clip"||G==="-webkit-background-clip"||G==="color"&&ee==="transparent"))continue;Y[G]=ee}}}}if("tagName"in E){if(E.tagName==="em"&&(Y["font-style"]="italic"),E.tagName==="strong"&&(Y["font-weight"]="bold"),E.tagName==="sup"&&(Y["vertical-align"]="super"),E.tagName==="sub"&&(Y["vertical-align"]="sub"),E.tagName==="a"){const K=E.attributes.find(ne=>ne.key==="href");Y.href=(K==null?void 0:K.value)||""}if(E.tagName==="ul"&&(Y["list-type"]="ul"),E.tagName==="ol"&&(Y["list-type"]="ol"),E.tagName==="li"&&(_=!0),E.tagName==="p"&&"attributes"in E){const K=E.attributes.find(ne=>ne.key==="data-indent");K&&K.value&&(T=+K.value)}}if("tagName"in E&&E.tagName==="br")O.push({text:"",options:{breakLine:!0}});else if("content"in E){const K=E.content.replace(/ /g," ").replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,""),ne={};Y["font-size"]&&(ne.fontSize=parseInt(Y["font-size"])/l.value),Y.color&&(ne.color=h(Y.color).color),Y["background-color"]&&(ne.highlight=h(Y["background-color"]).color),Y["text-decoration-line"]&&(Y["text-decoration-line"].indexOf("underline")!==-1&&(ne.underline={color:ne.color||"#000000",style:"sng"}),Y["text-decoration-line"].indexOf("line-through")!==-1&&(ne.strike="sngStrike")),Y["text-decoration"]&&(Y["text-decoration"].indexOf("underline")!==-1&&(ne.underline={color:ne.color||"#000000",style:"sng"}),Y["text-decoration"].indexOf("line-through")!==-1&&(ne.strike="sngStrike")),Y["vertical-align"]&&(Y["vertical-align"]==="super"&&(ne.superscript=!0),Y["vertical-align"]==="sub"&&(ne.subscript=!0)),Y["text-align"]&&(ne.align=Y["text-align"]),Y["font-weight"]&&(ne.bold=Y["font-weight"]==="bold"),Y["font-style"]&&(ne.italic=Y["font-style"]==="italic"),Y["font-family"]&&(ne.fontFace=Y["font-family"]),Y.href&&(ne.hyperlink={url:Y.href}),_&&Y["list-type"]==="ol"&&(ne.bullet={type:"number",indent:(ne.fontSize||o)*1.25},ne.paraSpaceBefore=.1,_=!1),_&&Y["list-type"]==="ul"&&(ne.bullet={indent:(ne.fontSize||o)*1.25},ne.paraSpaceBefore=.1,_=!1),T&&(ne.indentLevel=T,T=0),O.push({text:K,options:ne})}else"children"in E&&N(E.children,Y)}};return N(w),O},v=(S,w={x:1,y:1})=>S.map(_=>{if(_.close!==void 0)return{close:!0};if(_.type==="M")return{x:_.x/s.value*w.x,y:_.y/s.value*w.y,moveTo:!0};if(_.curve){if(_.curve.type==="cubic")return{x:_.x/s.value*w.x,y:_.y/s.value*w.y,curve:{type:"cubic",x1:_.curve.x1/s.value*w.x,y1:_.curve.y1/s.value*w.y,x2:_.curve.x2/s.value*w.x,y2:_.curve.y2/s.value*w.y}};if(_.curve.type==="quadratic")return{x:_.x/s.value*w.x,y:_.y/s.value*w.y,curve:{type:"quadratic",x1:_.curve.x1/s.value*w.x,y1:_.curve.y1/s.value*w.y}}}return{x:_.x/s.value*w.x,y:_.y/s.value*w.y}}),g=S=>{const w=h(S.color),{h:_,v:T}=S;let O=4,N=45;return _===0&&T===0?(O=4,N=45):_===0?T>0?(O=T,N=90):(O=-T,N=270):T===0?_>0?(O=_,N=1):(O=-_,N=180):_>0&&T>0?(O=Math.max(_,T),N=45):_>0&&T<0?(O=Math.max(_,-T),N=315):_<0&&T>0?(O=Math.max(-_,T),N=135):_<0&&T<0&&(O=Math.max(-_,-T),N=225),{type:"outer",color:w.color.replace("#",""),opacity:w.alpha,blur:S.blur/l.value,offset:O,angle:N}},y={solid:"solid",dashed:"dash",dotted:"sysDot"},m=S=>{const w=h((S==null?void 0:S.color)||"#000000");return{color:w.color,transparency:(1-w.alpha)*100,width:(S.width||1)/l.value,dashType:S.style?y[S.style]:"solid"}},R=S=>{const{type:w,target:_}=S;if(w==="web")return{url:_};if(w==="slide"){const T=e.value.findIndex(O=>O.id===_);if(T!==-1)return{slide:T+1}}return null},A=S=>{const w=/^data:image\/[^;]+;base64,/;return S.match(w)!==null},x=S=>{const w=/^data:image\/svg\+xml;base64,/.test(S),_=/\.svg$/.test(S);return w||_};return{exporting:c,exportImage:u,exportImagePPTX:f,exportJSON:d,exportPPTX:(S,w,_)=>{var O,N,P,C,E,F,Y,Q,K,ne,Z,$,G,ee,ce,B;c.value=!0;const T=new cRe;if(r.value===.625?T.layout="LAYOUT_16x10":r.value===.75?T.layout="LAYOUT_4x3":r.value===.70710678?(T.defineLayout({name:"A3",width:10,height:7.0710678}),T.layout="A3"):r.value===1.41421356?(T.defineLayout({name:"A3_V",width:10,height:14.1421356}),T.layout="A3_V"):T.layout="LAYOUT_16x9",w){const{color:xe,alpha:_e}=h(n.value.backgroundColor);T.defineSlideMaster({title:"PPTIST_MASTER",background:{color:xe,transparency:(1-_e)*100}})}for(const xe of S){const _e=T.addSlide();if(xe.background){const se=xe.background;if(se.type==="image"&&se.image)x(se.image.src)?_e.addImage({data:se.image.src,x:0,y:0,w:i.value/s.value,h:i.value*r.value/s.value}):A(se.image.src)?_e.background={data:se.image.src}:_e.background={path:se.image.src};else if(se.type==="solid"&&se.color){const z=h(se.color);_e.background={color:z.color,transparency:(1-z.alpha)*100}}else if(se.type==="gradient"&&se.gradient){const z=se.gradient.colors,de=z[0].color,fe=z[z.length-1].color,re=Ct.mix(de,fe).toHexString(),X=h(re);_e.background={color:X.color,transparency:(1-X.alpha)*100}}}if(xe.remark){const z=new DOMParser().parseFromString(xe.remark,"text/html").body.querySelectorAll("p"),de=[];for(const fe of z){const re=fe.textContent;de.push(re||"")}_e.addNotes(de.join(`-`))}if(xe.elements){for(const se of xe.elements)if(se.type==="text"){const z=p(se.content),de={x:se.left/s.value,y:se.top/s.value,w:se.width/s.value,h:se.height/s.value,fontSize:o/l.value,fontFace:"微软雅黑",color:"#000000",valign:"top",margin:10/l.value,paraSpaceBefore:5/l.value,lineSpacingMultiple:1.5/1.25,autoFit:!0};if(se.rotate&&(de.rotate=se.rotate),se.wordSpace&&(de.charSpacing=se.wordSpace/l.value),se.lineHeight&&(de.lineSpacingMultiple=se.lineHeight/1.25),se.fill){const fe=h(se.fill),re=se.opacity===void 0?1:se.opacity;de.fill={color:fe.color,transparency:(1-fe.alpha*re)*100}}se.defaultColor&&(de.color=h(se.defaultColor).color),se.defaultFontName&&(de.fontFace=se.defaultFontName),se.shadow&&(de.shadow=g(se.shadow)),(O=se.outline)!=null&&O.width&&(de.line=m(se.outline)),se.opacity!==void 0&&(de.transparency=(1-se.opacity)*100),se.paragraphSpace!==void 0&&(de.paraSpaceBefore=se.paragraphSpace/l.value),se.vertical&&(de.vert="eaVert"),_e.addText(z,de)}else if(se.type==="image"){const z={x:se.left/s.value,y:se.top/s.value,w:se.width/s.value,h:se.height/s.value};if(A(se.src)?z.data=se.src:z.path=se.src,se.flipH&&(z.flipH=se.flipH),se.flipV&&(z.flipV=se.flipV),se.rotate&&(z.rotate=se.rotate),se.link){const de=R(se.link);de&&(z.hyperlink=de)}if((N=se.filters)!=null&&N.opacity&&(z.transparency=100-parseInt((P=se.filters)==null?void 0:P.opacity)),se.clip){se.clip.shape==="ellipse"&&(z.rounding=!0);const[de,fe]=se.clip.range,[re,X]=de,[j,oe]=fe,ae=se.width/((j-re)/s.value),le=se.height/((oe-X)/s.value);z.w=ae/s.value,z.h=le/s.value,z.sizing={type:"crop",x:re/s.value*ae/s.value,y:X/s.value*le/s.value,w:(j-re)/s.value*ae/s.value,h:(oe-X)/s.value*le/s.value}}_e.addImage(z)}else if(se.type==="shape"){if(se.special){const z=document.createElement("div"),de=U(Vee,{elementInfo:se},null);i0(de,z);const fe=z.querySelector("svg"),re=fe?fRe(fe):"";if(i0(null,z),!re)continue;const X={data:re,x:se.left/s.value,y:se.top/s.value,w:se.width/s.value,h:se.height/s.value};if(se.rotate&&(X.rotate=se.rotate),se.flipH&&(X.flipH=se.flipH),se.flipV&&(X.flipV=se.flipV),se.link){const j=R(se.link);j&&(X.hyperlink=j)}_e.addImage(X)}else{const z={x:se.width/se.viewBox[0],y:se.height/se.viewBox[1]},de=v(F1e(se.path),z);let fe=h(se.fill);if(se.gradient){const j=se.gradient.colors,oe=j[0].color,ae=j[j.length-1].color,le=Ct.mix(oe,ae).toHexString();fe=h(le)}se.pattern&&(fe=h("#00000000"));const re=se.opacity===void 0?1:se.opacity,X={x:se.left/s.value,y:se.top/s.value,w:se.width/s.value,h:se.height/s.value,fill:{color:fe.color,transparency:(1-fe.alpha*re)*100},points:de};if(se.flipH&&(X.flipH=se.flipH),se.flipV&&(X.flipV=se.flipV),se.shadow&&(X.shadow=g(se.shadow)),(C=se.outline)!=null&&C.width&&(X.line=m(se.outline)),se.rotate&&(X.rotate=se.rotate),se.link){const j=R(se.link);j&&(X.hyperlink=j)}_e.addShape("custGeom",X)}if(se.text){const z=p(se.text.content),de={x:se.left/s.value,y:se.top/s.value,w:se.width/s.value,h:se.height/s.value,fontSize:o/l.value,fontFace:"微软雅黑",color:"#000000",paraSpaceBefore:5/l.value,valign:se.text.align};se.rotate&&(de.rotate=se.rotate),se.text.defaultColor&&(de.color=h(se.text.defaultColor).color),se.text.defaultFontName&&(de.fontFace=se.text.defaultFontName),_e.addText(z,de)}if(se.pattern){const z={x:se.left/s.value,y:se.top/s.value,w:se.width/s.value,h:se.height/s.value};if(A(se.pattern)?z.data=se.pattern:z.path=se.pattern,se.flipH&&(z.flipH=se.flipH),se.flipV&&(z.flipV=se.flipV),se.rotate&&(z.rotate=se.rotate),se.link){const de=R(se.link);de&&(z.hyperlink=de)}_e.addImage(z)}}else if(se.type==="line"){const z=Lj(se),de=v(F1e(z)),{minX:fe,maxX:re,minY:X,maxY:j}=fl(se),oe=h(se.color),ae={x:se.left/s.value,y:se.top/s.value,w:(re-fe)/s.value,h:(j-X)/s.value,line:{color:oe.color,transparency:(1-oe.alpha)*100,width:se.width/l.value,dashType:y[se.style],beginArrowType:se.points[0]?"arrow":"none",endArrowType:se.points[1]?"arrow":"none"},points:de};se.shadow&&(ae.shadow=g(se.shadow)),_e.addShape("custGeom",ae)}else if(se.type==="chart"){const z=[];for(let oe=0;oe<se.data.series.length;oe++){const ae=se.data.series[oe];z.push({name:`系列${oe+1}`,labels:se.data.labels,values:ae})}let de=[];if(se.themeColors.length===10)de=se.themeColors.map(oe=>h(oe).color);else if(se.themeColors.length===1)de=Ct(se.themeColors[0]).analogous(10).map(oe=>h(oe.toHexString()).color);else{const oe=se.themeColors.length,ae=Ct(se.themeColors[oe-1]).analogous(11-oe).map(le=>le.toHexString());de=[...se.themeColors.slice(0,oe-1),...ae].map(le=>h(le).color)}const fe={x:se.left/s.value,y:se.top/s.value,w:se.width/s.value,h:se.height/s.value,chartColors:se.chartType==="pie"||se.chartType==="ring"?de:de.slice(0,se.data.series.length)},re=h(se.textColor||"#000000").color;fe.catAxisLabelColor=re,fe.valAxisLabelColor=re;const X=14/l.value;if(fe.catAxisLabelFontSize=X,fe.valAxisLabelFontSize=X,se.fill||se.outline){const oe={};se.fill&&(oe.fill={color:h(se.fill).color}),se.outline&&(oe.border={pt:se.outline.width/l.value,color:h(se.outline.color).color}),fe.plotArea=oe}(se.data.series.length>1&&se.chartType!=="scatter"||se.chartType==="pie"||se.chartType==="ring")&&(fe.showLegend=!0,fe.legendPos="b",fe.legendColor=re,fe.legendFontSize=X);let j=T.ChartType.bar;se.chartType==="bar"?(j=T.ChartType.bar,fe.barDir="col",(E=se.options)!=null&&E.stack&&(fe.barGrouping="stacked")):se.chartType==="column"?(j=T.ChartType.bar,fe.barDir="bar",(F=se.options)!=null&&F.stack&&(fe.barGrouping="stacked")):se.chartType==="line"?(j=T.ChartType.line,(Y=se.options)!=null&&Y.lineSmooth&&(fe.lineSmooth=!0)):se.chartType==="area"?j=T.ChartType.area:se.chartType==="radar"?j=T.ChartType.radar:se.chartType==="scatter"?(j=T.ChartType.scatter,fe.lineSize=0):se.chartType==="pie"?j=T.ChartType.pie:se.chartType==="ring"&&(j=T.ChartType.doughnut,fe.holeSize=60),_e.addChart(j,z,fe)}else if(se.type==="table"){const z=[];for(let oe=0;oe<se.data.length;oe++){const ae=se.data[oe];for(let le=0;le<ae.length;le++){const ge=ae[le];if(ge.colspan>1||ge.rowspan>1)for(let Se=oe;Se<oe+ge.rowspan;Se++)for(let me=Se===oe?le+1:le;me<le+ge.colspan;me++)z.push(`${Se}_${me}`)}}const de=[],fe=se.theme;let re=null,X=[];fe&&(re=h(fe.color),X=X4e(fe.color).map(oe=>h(oe)));for(let oe=0;oe<se.data.length;oe++){const ae=se.data[oe],le=[];for(let ge=0;ge<ae.length;ge++){const Se=ae[ge],me={colspan:Se.colspan,rowspan:Se.rowspan,bold:((Q=Se.style)==null?void 0:Q.bold)||!1,italic:((K=Se.style)==null?void 0:K.em)||!1,underline:{style:(ne=Se.style)!=null&&ne.underline?"sng":"none"},align:((Z=Se.style)==null?void 0:Z.align)||"left",valign:"middle",fontFace:(($=Se.style)==null?void 0:$.fontname)||"微软雅黑",fontSize:((G=Se.style)!=null&&G.fontsize?parseInt((ee=Se.style)==null?void 0:ee.fontsize):14)/l.value};if(fe&&re){let ye;oe%2===0?ye=X[1]:ye=X[0],(fe.rowHeader&&oe===0||fe.rowFooter&&oe===se.data.length-1||fe.colHeader&&ge===0||fe.colFooter&&ge===ae.length-1)&&(ye=re),me.fill={color:ye.color,transparency:(1-ye.alpha)*100}}if((ce=Se.style)!=null&&ce.backcolor){const ye=h(Se.style.backcolor);me.fill={color:ye.color,transparency:(1-ye.alpha)*100}}(B=Se.style)!=null&&B.color&&(me.color=h(Se.style.color).color),z.includes(`${oe}_${ge}`)||le.push({text:Se.text,options:me})}le.length&&de.push(le)}const j={x:se.left/s.value,y:se.top/s.value,w:se.width/s.value,h:se.height/s.value,colW:se.colWidths.map(oe=>se.width*oe/s.value)};se.theme&&(j.fill={color:"#ffffff"}),se.outline.width&&se.outline.color&&(j.border={type:se.outline.style==="solid"?"solid":"dash",pt:se.outline.width/l.value,color:h(se.outline.color).color}),_e.addTable(de,j)}else if(se.type==="latex"){const z=document.createElement("div"),de=U(Uee,{elementInfo:se},null);i0(de,z);const fe=z.querySelector("svg"),re=fe?fRe(fe):"";if(i0(null,z),!re)continue;const X={data:re,x:se.left/s.value,y:se.top/s.value,w:se.width/s.value,h:se.height/s.value};if(se.link){const j=R(se.link);j&&(X.hyperlink=j)}_e.addImage(X)}else if(!_&&(se.type==="video"||se.type==="audio")){const z={x:se.left/s.value,y:se.top/s.value,w:se.width/s.value,h:se.height/s.value,path:se.src,type:se.type};se.type==="video"&&se.poster&&(z.cover=se.poster);const de=se.src.match(/\.([a-zA-Z0-9]+)(?:[\?#]|$)/);de&&de[1]?z.extn=de[1]:se.ext&&(z.extn=se.ext);const fe=["avi","mp4","m4v","mov","wmv"],re=["mp3","m4a","mp4","wav","wma"];z.extn&&[...fe,...re].includes(z.extn)&&_e.addMedia(z)}}}setTimeout(()=>{T.writeFile({fileName:`${a.value}.pptx`}).then(()=>c.value=!1).catch(()=>{c.value=!1,Dn.error("导出失败")})},200)}}},JMt={class:"export-img-dialog"},jMt={class:"thumbnails-view"},qMt={class:"configs"},e5t={class:"row"},t5t={class:"row"},n5t={key:0,class:"row"},r5t=["data-range"],a5t={class:"row"},i5t={class:"row"},o5t={class:"config-item"},s5t={class:"btns"},l5t=tt({__name:"ExportImage",emits:["close"],setup(t,{emit:e}){const n=e,{slides:r,currentSlide:a}=nt(It()),i=un("imageThumbnailsRef"),o=we("all"),s=we([1,r.value.length]),l=we("jpeg"),c=we(1),u=we(!1),f=Fe(()=>o.value==="all"?r.value:o.value==="current"?[a.value]:r.value.filter((v,g)=>{const[y,m]=s.value;return g>=y-1&&g<=m-1})),{exportImage:d,exporting:h}=hte(),p=()=>{i.value&&d(i.value,l.value,c.value,u.value)};return(v,g)=>{const y=x8,m=pr("tooltip");return V(),H("div",JMt,[I("div",jMt,[I("div",{class:"thumbnails",ref_key:"imageThumbnailsRef",ref:i},[(V(!0),H(qe,null,bt(f.value,R=>(V(),Ue(bc,{class:"thumbnail",key:R.id,slide:R,size:1600},null,8,["slide"]))),128))],512)]),I("div",qMt,[I("div",e5t,[g[9]||(g[9]=I("div",{class:"title"},"导出格式:",-1)),U(Yf,{class:"config-item",value:l.value,"onUpdate:value":g[0]||(g[0]=R=>l.value=R)},{default:pe(()=>[U(Nr,{style:{width:"50%"},value:"jpeg"},{default:pe(()=>g[7]||(g[7]=[rt("JPEG")])),_:1,__:[7]}),U(Nr,{style:{width:"50%"},value:"png"},{default:pe(()=>g[8]||(g[8]=[rt("PNG")])),_:1,__:[8]})]),_:1},8,["value"])]),I("div",t5t,[g[13]||(g[13]=I("div",{class:"title"},"导出范围:",-1)),U(Yf,{class:"config-item",value:o.value,"onUpdate:value":g[1]||(g[1]=R=>o.value=R)},{default:pe(()=>[U(Nr,{style:{width:"33.33%"},value:"all"},{default:pe(()=>g[10]||(g[10]=[rt("全部")])),_:1,__:[10]}),U(Nr,{style:{width:"33.33%"},value:"current"},{default:pe(()=>g[11]||(g[11]=[rt("当前页")])),_:1,__:[11]}),U(Nr,{style:{width:"33.33%"},value:"custom"},{default:pe(()=>g[12]||(g[12]=[rt("自定义")])),_:1,__:[12]})]),_:1},8,["value"])]),o.value==="custom"?(V(),H("div",n5t,[I("div",{class:"title","data-range":`(${s.value[0]} ~ ${s.value[1]})`},"自定义范围:",8,r5t),U(Xo,{class:"config-item",range:"",min:1,max:te(r).length,step:1,value:s.value,"onUpdate:value":g[2]||(g[2]=R=>s.value=R)},null,8,["max","value"])])):at("",!0),I("div",a5t,[g[14]||(g[14]=I("div",{class:"title"},"图片质量:",-1)),U(Xo,{class:"config-item",min:0,max:1,step:.1,value:c.value,"onUpdate:value":g[3]||(g[3]=R=>c.value=R)},null,8,["value"])]),I("div",i5t,[g[15]||(g[15]=I("div",{class:"title"},"忽略在线字体:",-1)),I("div",o5t,[yt(U(_u,{value:u.value,"onUpdate:value":g[4]||(g[4]=R=>u.value=R)},null,8,["value"]),[[m,"导出时默认忽略在线字体,若您在幻灯片中使用了在线字体,且希望导出后保留相关样式,可选择关闭「忽略在线字体」选项,但要注意这将会增加导出用时。"]])])])]),I("div",s5t,[U(Mt,{class:"btn export",type:"primary",onClick:g[5]||(g[5]=R=>p())},{default:pe(()=>[U(y),g[16]||(g[16]=rt(" 导出图片"))]),_:1,__:[16]}),U(Mt,{class:"btn close",onClick:g[6]||(g[6]=R=>n("close"))},{default:pe(()=>g[17]||(g[17]=[rt("关闭")])),_:1,__:[17]})]),U(zD,{loading:te(h),tip:"正在导出..."},null,8,["loading"])])}}}),c5t=lt(l5t,[["__scopeId","data-v-cc3f5059"]]),u5t={class:"export-json-dialog"},f5t={class:"preview"},d5t={class:"btns"},h5t=tt({__name:"ExportJSON",emits:["close"],setup(t,{emit:e}){const n=e,{slides:r,viewportRatio:a,title:i,viewportSize:o,theme:s}=nt(It()),{exportJSON:l}=hte(),c=Fe(()=>({title:i.value,width:o.value,height:o.value*a.value,theme:s.value,slides:r.value}));return(u,f)=>{const d=x8;return V(),H("div",u5t,[I("div",f5t,[I("pre",null,Vt(c.value),1)]),I("div",d5t,[U(Mt,{class:"btn export",type:"primary",onClick:f[0]||(f[0]=h=>te(l)())},{default:pe(()=>[U(d),f[2]||(f[2]=rt(" 导出 JSON"))]),_:1,__:[2]}),U(Mt,{class:"btn close",onClick:f[1]||(f[1]=h=>n("close"))},{default:pe(()=>f[3]||(f[3]=[rt("关闭")])),_:1,__:[3]})])])}}}),p5t=lt(h5t,[["__scopeId","data-v-2f042677"]]),v5t=()=>{const t=document.createElement("iframe");return t.style.width="0",t.style.height="0",t.style.position="absolute",t.style.right="0",t.style.top="0",t.style.border="0",document.body.appendChild(t),t},g5t=(t,e,n)=>{const r="<!DOCTYPE html>";let a="";const i=document.styleSheets;if(i){for(const f of i)if(f.cssRules)for(const d of f.cssRules)a+=d.cssText}const{width:o,height:s,margin:l}=n,c=`- <head>- <style type="text/css">- ${a}- html, body {- height: auto;- overflow: auto;- }- @media print {- @page {- size: ${o+2*l}px ${(s+2*l)*1.005}px;- margin: ${l}px;- }- }- </style>- </head>- `,u="<body>"+e.innerHTML+"</body>";t.open(),t.write(`- ${r}- <html>- ${c}- ${u}- </html>- `),t.close()},m5t=(t,e)=>{const n=v5t(),r=n.contentWindow;if(!n.contentDocument||!r)return;g5t(n.contentDocument,t,e);const a=()=>{r.focus(),r.print()},i=()=>{n.removeEventListener("load",a),r.removeEventListener("afterprint",i),document.body.removeChild(n)};n.addEventListener("load",a),r.addEventListener("afterprint",i)},y5t={class:"export-pdf-dialog"},A5t={class:"thumbnails-view"},R5t={class:"configs"},b5t={class:"row"},x5t={class:"row"},S5t={class:"row"},M5t={class:"config-item"},_5t={class:"btns"},w5t=tt({__name:"ExportPDF",emits:["close"],setup(t,{emit:e}){const n=e,{slides:r,currentSlide:a,viewportRatio:i}=nt(It()),o=un("pdfThumbnailsRef"),s=we("all"),l=we(1),c=we(!0),u=()=>{if(!o.value)return;const f={width:1600,height:s.value==="all"?1600*i.value*l.value:1600*i.value,margin:c.value?50:0};m5t(o.value,f)};return(f,d)=>{const h=x8;return V(),H("div",y5t,[I("div",A5t,[I("div",{class:"thumbnails",ref_key:"pdfThumbnailsRef",ref:o},[s.value==="current"?(V(),Ue(bc,{key:0,class:"thumbnail",slide:te(a),size:1600},null,8,["slide"])):(V(!0),H(qe,{key:1},bt(te(r),(p,v)=>(V(),Ue(bc,{class:mt(["thumbnail",{"break-page":(v+1)%l.value===0}]),key:p.id,slide:p,size:1600},null,8,["class","slide"]))),128))],512)]),I("div",R5t,[I("div",b5t,[d[7]||(d[7]=I("div",{class:"title"},"导出范围:",-1)),U(Yf,{class:"config-item",value:s.value,"onUpdate:value":d[0]||(d[0]=p=>s.value=p)},{default:pe(()=>[U(Nr,{style:{width:"50%"},value:"all"},{default:pe(()=>d[5]||(d[5]=[rt("全部")])),_:1,__:[5]}),U(Nr,{style:{width:"50%"},value:"current"},{default:pe(()=>d[6]||(d[6]=[rt("当前页")])),_:1,__:[6]})]),_:1},8,["value"])]),I("div",x5t,[d[8]||(d[8]=I("div",{class:"title"},"每页数量:",-1)),U(La,{class:"config-item",value:l.value,"onUpdate:value":d[1]||(d[1]=p=>l.value=p),options:[{label:"1",value:1},{label:"2",value:2},{label:"3",value:3}]},null,8,["value"])]),I("div",S5t,[d[9]||(d[9]=I("div",{class:"title"},"边缘留白:",-1)),I("div",M5t,[U(_u,{value:c.value,"onUpdate:value":d[2]||(d[2]=p=>c.value=p)},null,8,["value"])])]),d[10]||(d[10]=I("div",{class:"tip"}," 建议:请在弹出的打印窗口中勾选「背景图形」选项,边距选择「默认」。 ",-1))]),I("div",_5t,[U(Mt,{class:"btn export",type:"primary",onClick:d[3]||(d[3]=p=>u())},{default:pe(()=>[U(h),d[11]||(d[11]=rt(" 打印 / 导出 PDF"))]),_:1,__:[11]}),U(Mt,{class:"btn close",onClick:d[4]||(d[4]=p=>n("close"))},{default:pe(()=>d[12]||(d[12]=[rt("关闭")])),_:1,__:[12]})])])}}}),L5t=lt(w5t,[["__scopeId","data-v-53e2e800"]]),T5t={class:"export-pptx-dialog"},O5t={class:"thumbnails-view"},P5t={class:"configs"},C5t={class:"row"},N5t={class:"row"},I5t={key:0,class:"row"},k5t=["data-range"],E5t={class:"row"},F5t={class:"config-item"},X5t={class:"row"},D5t={class:"config-item"},V5t={key:0,class:"tip"},U5t={class:"btns"},W5t=tt({__name:"ExportPPTX",emits:["close"],setup(t,{emit:e}){const n=e,{slides:r,currentSlide:a}=nt(It()),{exportPPTX:i,exportImagePPTX:o,exporting:s}=hte(),l=un("imageThumbnailsRef"),c=we("all"),u=we("standard"),f=we([1,r.value.length]),d=we(!0),h=we(!0),p=Fe(()=>c.value==="all"?r.value:c.value==="current"?[a.value]:r.value.filter((y,m)=>{const[R,A]=f.value;return m>=R-1&&m<=A-1})),v=Fe(()=>u.value==="standard"?[]:p.value),g=()=>{if(u.value==="standard")i(p.value,d.value,h.value);else{const y=l.value.querySelectorAll(".export-thumbnail");o(y)}};return(y,m)=>{const R=x8,A=pr("tooltip");return V(),H("div",T5t,[I("div",O5t,[I("div",{class:"thumbnails",ref_key:"imageThumbnailsRef",ref:l},[(V(!0),H(qe,null,bt(v.value,x=>(V(),Ue(bc,{class:"export-thumbnail",key:x.id,slide:x,size:1600},null,8,["slide"]))),128))],512)]),I("div",P5t,[I("div",C5t,[m[10]||(m[10]=I("div",{class:"title"},"导出范围:",-1)),U(Yf,{class:"config-item",value:c.value,"onUpdate:value":m[0]||(m[0]=x=>c.value=x)},{default:pe(()=>[U(Nr,{style:{width:"33.33%"},value:"all"},{default:pe(()=>m[7]||(m[7]=[rt("全部")])),_:1,__:[7]}),U(Nr,{style:{width:"33.33%"},value:"current"},{default:pe(()=>m[8]||(m[8]=[rt("当前页")])),_:1,__:[8]}),U(Nr,{style:{width:"33.33%"},value:"custom"},{default:pe(()=>m[9]||(m[9]=[rt("自定义")])),_:1,__:[9]})]),_:1},8,["value"])]),I("div",N5t,[m[13]||(m[13]=I("div",{class:"title"},"导出模式:",-1)),U(Yf,{class:"config-item",value:u.value,"onUpdate:value":m[1]||(m[1]=x=>u.value=x)},{default:pe(()=>[U(Nr,{style:{width:"50%"},value:"standard"},{default:pe(()=>m[11]||(m[11]=[rt("标准版")])),_:1,__:[11]}),U(Nr,{style:{width:"50%"},value:"image"},{default:pe(()=>m[12]||(m[12]=[rt("纯图版")])),_:1,__:[12]})]),_:1},8,["value"])]),c.value==="custom"?(V(),H("div",I5t,[I("div",{class:"title","data-range":`(${f.value[0]} ~ ${f.value[1]})`},"自定义范围:",8,k5t),U(Xo,{class:"config-item",range:"",min:1,max:te(r).length,step:1,value:f.value,"onUpdate:value":m[2]||(m[2]=x=>f.value=x)},null,8,["max","value"])])):at("",!0),u.value==="standard"?(V(),H(qe,{key:1},[I("div",E5t,[m[14]||(m[14]=I("div",{class:"title"},"忽略音频/视频:",-1)),I("div",F5t,[yt(U(_u,{value:h.value,"onUpdate:value":m[3]||(m[3]=x=>h.value=x)},null,8,["value"]),[[A,"导出时默认忽略音视频,若您的幻灯片中存在音视频元素,且希望将其导出到PPTX文件中,可选择关闭「忽略音视频」选项,但要注意这将会大幅增加导出用时。"]])])]),I("div",X5t,[m[15]||(m[15]=I("div",{class:"title"},"覆盖默认母版:",-1)),I("div",D5t,[U(_u,{value:d.value,"onUpdate:value":m[4]||(m[4]=x=>d.value=x)},null,8,["value"])])]),h.value?at("",!0):(V(),H("div",V5t," 提示:1. 支持导出格式:avi、mp4、mov、wmv、mp3、wav;2. 跨域资源无法导出。 "))],64)):at("",!0)]),I("div",U5t,[U(Mt,{class:"btn export",type:"primary",onClick:m[5]||(m[5]=x=>g())},{default:pe(()=>[U(R),m[16]||(m[16]=rt(" 导出 PPTX"))]),_:1,__:[16]}),U(Mt,{class:"btn close",onClick:m[6]||(m[6]=x=>n("close"))},{default:pe(()=>m[17]||(m[17]=[rt("关闭")])),_:1,__:[17]})]),U(zD,{loading:te(s),tip:"正在导出..."},null,8,["loading"])])}}}),Y5t=lt(W5t,[["__scopeId","data-v-df7a498d"]]),B5t={class:"export-dialog"},Z5t={class:"content"},Q5t=tt({__name:"index",setup(t){const e=Wt(),{dialogForExport:n}=nt(e),r=e.setDialogForExport,a=[{key:"pptx",label:"导出 PPTX"},{key:"image",label:"导出图片"},{key:"json",label:"导出 JSON"},{key:"pdf",label:"打印 / 导出 PDF"}],i=Fe(()=>{const o={image:c5t,json:p5t,pdf:L5t,pptx:Y5t};return n.value&&o[n.value]||null});return(o,s)=>(V(),H("div",B5t,[U(Wf,{tabs:a,value:te(n),card:"","onUpdate:value":s[0]||(s[0]=l=>te(r)(l))},null,8,["value"]),I("div",Z5t,[(V(),Ue(Eh(i.value),{onClose:s[1]||(s[1]=l=>te(r)(""))},null,32))])]))}}),K5t=lt(Q5t,[["__scopeId","data-v-ccf3cce0"]]),H5t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function G5t(t,e){return V(),H("svg",H5t,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M24 36c11.046 0 20-12 20-12s-8.954-12-20-12S4 24 4 24s8.954 12 20 12Z"}),I("path",{d:"M24 29a5 5 0 1 0 0-10a5 5 0 0 0 0 10Z"})],-1)]))}const $5t=vt({name:"icon-park-outline-preview-open",render:G5t}),z5t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function J5t(t,e){return V(),H("svg",z5t,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M6 16c.635 1.22 1.596 2.35 2.823 3.355C12.26 22.173 17.779 24 24 24s11.739-1.827 15.177-4.645C40.404 18.35 41.365 17.22 42 16m-13.022 8l2.07 7.727m6.306-10.373l5.656 5.656M5 27.01l5.657-5.657m6.271 10.375L18.998 24"},null,-1)]))}const j5t=vt({name:"icon-park-outline-preview-close",render:J5t}),q5t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function e_t(t,e){return V(),H("svg",q5t,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"m13 30l12-12l12 12"},null,-1)]))}const t_t=vt({name:"icon-park-outline-up",render:e_t}),n_t=()=>{const t=It(),e=Wt(),{currentSlide:n}=nt(t),{activeElementIdList:r,hiddenElementIdList:a}=nt(e);return{toggleHideElement:l=>{a.value.includes(l)?e.setHiddenElementIdList(a.value.filter(c=>c!==l)):e.setHiddenElementIdList([...a.value,l]),r.value.includes(l)&&e.setActiveElementIdList([])},showAllElements:()=>{const l=n.value.elements.map(u=>u.id),c=a.value.filter(u=>!l.includes(u));e.setHiddenElementIdList(c)},hideAllElements:()=>{const l=n.value.elements.map(c=>c.id);e.setHiddenElementIdList([...a.value,...l]),r.value.length&&e.setActiveElementIdList([])}}},r_t={class:"title"},ns="__moveable_panel_z_index__",$b=900,dRe=999,y2="__moveable_panel_active_count__",a_t=tt({__name:"MoveablePanel",props:{width:{},height:{},minWidth:{default:20},minHeight:{default:20},maxWidth:{default:500},maxHeight:{default:500},left:{default:10},top:{default:10},title:{default:""},moveable:{type:Boolean,default:!0},resizeable:{type:Boolean,default:!1},contentStyle:{}},emits:["close"],setup(t,{emit:e}){const n=t,r=e,a=we(0),i=we(0),o=we(0),s=we(0),l=un("moveablePanelRef"),c=we(900),u=Fe(()=>{var y;return s.value?s.value:((y=l.value)==null?void 0:y.clientHeight)||0}),f=()=>{window[ns]||(window[ns]=$b),window[y2]||(window[y2]=0),window[y2]++;const y=window[ns];return y>=dRe?window[ns]=$b:window[ns]=y+1,window[ns]},d=()=>{window[ns]||(window[ns]=$b);const y=window[ns];return c.value===y?y:(y>=dRe?window[ns]=$b+1:window[ns]=y+1,window[ns])},h=()=>{if(!window[ns]||!window[y2])return;const y=window[ns];window[y2]--,c.value===y&&y>$b&&(window[ns]=y-1),window[y2]<=0&&(window[ns]=$b,window[y2]=0)};mn(()=>{n.left>=0?a.value=n.left:a.value=document.body.clientWidth+n.left-n.width,n.top>=0?i.value=n.top:i.value=document.body.clientHeight+n.top-(n.height||u.value),o.value=n.width,s.value=n.height,c.value=f()}),or(()=>{h()});const p=y=>{n.moveable&&(y.stopPropagation(),c.value=d())},v=y=>{if(!n.moveable)return;c.value=d();let m=!0;const R=document.body.clientWidth,A=document.body.clientHeight,x=y.pageX,M=y.pageY,S=a.value,w=i.value;document.onmousemove=_=>{if(!m)return;const T=_.pageX-x,O=_.pageY-M;let N=S+T,P=w+O;N<0&&(N=0),P<0&&(P=0),N+o.value>R&&(N=R-o.value),P+u.value>A&&(P=A-u.value),a.value=N,i.value=P},document.onmouseup=()=>{m=!1,document.onmousemove=null,document.onmouseup=null}},g=y=>{if(!n.resizeable)return;let m=!0;const R=y.pageX,A=y.pageY,x=o.value,M=s.value;document.onmousemove=S=>{if(!m)return;const w=S.pageX-R,_=S.pageY-A;let T=x+w,O=M+_;T<n.minWidth&&(T=n.minWidth),O<n.minHeight&&(O=n.minHeight),T>n.maxWidth&&(T=n.maxWidth),O>n.maxHeight&&(O=n.maxHeight),o.value=T,s.value=O},document.onmouseup=()=>{m=!1,document.onmousemove=null,document.onmouseup=null}};return(y,m)=>{const R=Sy;return V(),H("div",{class:"moveable-panel",ref_key:"moveablePanelRef",ref:l,style:We({width:o.value+"px",height:s.value?s.value+"px":"auto",left:a.value+"px",top:i.value+"px",zIndex:c.value})},[y.title?(V(),H(qe,{key:0},[I("div",{class:"header",onMousedown:m[2]||(m[2]=A=>v(A))},[I("div",r_t,Vt(y.title),1),I("div",{class:"close-btn",onMousedown:m[0]||(m[0]=on(()=>{},["stop"])),onClick:m[1]||(m[1]=A=>r("close"))},[U(R)],32)],32),I("div",{class:"content",style:We(y.contentStyle||{}),onMousedown:m[3]||(m[3]=A=>p(A))},[Hr(y.$slots,"default",{},void 0,!0)],36)],64)):(V(),H("div",{key:1,class:"content",style:We(y.contentStyle||{}),onMousedown:m[4]||(m[4]=A=>v(A))},[Hr(y.$slots,"default",{},void 0,!0)],36)),y.resizeable?(V(),H("div",{key:2,class:"resizer",onMousedown:m[5]||(m[5]=A=>g(A))},null,32)):at("",!0)],4)}}}),pg=lt(a_t,[["__scopeId","data-v-d0a11b17"]]),i_t={key:0,class:"handler"},o_t={class:"btns"},s_t={key:0,class:"icon-btns"},l_t={key:1,class:"element-list"},c_t={key:0,class:"group-els"},u_t=["onClick","onDblclick"],f_t=["id","value","onBlur","onKeydown"],d_t={key:1,class:"name"},h_t={class:"icons"},p_t={key:1,class:"icon",style:{width:"14px"}},v_t=["onClick","onDblclick"],g_t=["id","value","onBlur","onKeydown"],m_t={key:1,class:"name"},y_t={class:"icons"},A_t={key:1,class:"icon",style:{width:"14px"}},R_t={key:2,class:"empty"},b_t=tt({__name:"SelectPanel",setup(t){const e=It(),n=Wt(),{currentSlide:r}=nt(e),{handleElement:a,handleElementId:i,activeElementIdList:o,activeGroupElementId:s,hiddenElementIdList:l}=nt(n),{orderElement:c}=v8(),{selectElement:u}=p8(),{toggleHideElement:f,showAllElements:d,hideAllElements:h}=n_t(),{unlockElement:p}=Pj(),v=Fe(()=>{const x=[];for(const M of r.value.elements)if(M.groupId){const S=x[x.length-1];S&&S.type==="group"&&S.id&&S.id===M.groupId?S.elements.push(M):x.push({type:"group",id:M.groupId,elements:[M]})}else x.push(M);return x}),g=(x,M)=>{if(i.value===M||l.value.includes(M))return;const S=x.elements.filter(w=>!w.lock).map(w=>w.id);S.length&&(n.setActiveElementIdList(S),n.setHandleElementId(M),qr(()=>n.setActiveGroupElementId(M)))},y=we(""),m=(x,M)=>{const S=x.target.value;e.updateElement({id:M,props:{name:S}}),y.value=""},R=x=>{y.value=x,qr(()=>{document.querySelector(`#select-panel-input-${x}`).focus()})},A=()=>{n.setSelectPanelState(!1)};return(x,M)=>{const S=Tu,w=t_t,_=uOe,T=j5t,O=$5t;return V(),Ue(pg,{class:"select-panel",width:200,height:360,title:`选择(${te(o).length}/${te(r).elements.length})`,left:-270,top:90,onClose:M[4]||(M[4]=N=>A())},{default:pe(()=>[v.value.length?(V(),H("div",i_t,[I("div",o_t,[U(Mt,{size:"small",style:{"margin-right":"5px"},onClick:M[0]||(M[0]=N=>te(d)())},{default:pe(()=>M[5]||(M[5]=[rt("全部显示")])),_:1,__:[5]}),U(Mt,{size:"small",onClick:M[1]||(M[1]=N=>te(h)())},{default:pe(()=>M[6]||(M[6]=[rt("全部隐藏")])),_:1,__:[6]})]),te(a)?(V(),H("div",s_t,[I("span",{class:"icon-btn",onClick:M[2]||(M[2]=N=>te(c)(te(a),te(Qa).UP))},[U(S)]),I("span",{class:"icon-btn",onClick:M[3]||(M[3]=N=>te(c)(te(a),te(Qa).DOWN))},[U(w)])])):at("",!0)])):at("",!0),v.value.length?(V(),H("div",l_t,[(V(!0),H(qe,null,bt(v.value,N=>(V(),H(qe,{key:N.id},[N.type==="group"?(V(),H("div",c_t,[M[7]||(M[7]=I("div",{class:"group-title"},"组合",-1)),(V(!0),H(qe,null,bt(N.elements,P=>(V(),H("div",{class:mt(["item",{active:te(o).includes(P.id),"group-active":te(s).includes(P.id),lock:P.lock}]),key:P.id,onClick:C=>g(N,P.id),onDblclick:C=>R(P.id)},[y.value===P.id?(V(),H("input",{key:0,id:`select-panel-input-${P.id}`,value:P.name||te(i_)[P.type],class:"input",type:"text",onBlur:C=>m(C,P.id),onKeydown:Xf(C=>m(C,P.id),["enter"])},null,40,f_t)):(V(),H("div",d_t,Vt(P.name||te(i_)[P.type]),1)),I("div",h_t,[P.lock?(V(),Ue(_,{key:0,class:"icon",style:{"font-size":"14px"},onClick:C=>te(p)(P)},null,8,["onClick"])):(V(),H("div",p_t)),te(l).includes(P.id)?(V(),Ue(T,{key:2,class:"icon",style:{"font-size":"17px"},onClick:on(C=>te(f)(P.id),["stop"])},null,8,["onClick"])):(V(),Ue(O,{key:3,class:"icon",style:{"font-size":"17px"},onClick:on(C=>te(f)(P.id),["stop"])},null,8,["onClick"]))])],42,u_t))),128))])):(V(),H("div",{key:1,class:mt(["item",{active:te(o).includes(N.id),lock:N.lock}]),onClick:P=>te(u)(N.id),onDblclick:P=>R(N.id)},[y.value===N.id?(V(),H("input",{key:0,id:`select-panel-input-${N.id}`,value:N.name||te(i_)[N.type],class:"input",type:"text",onBlur:P=>m(P,N.id),onKeydown:Xf(P=>m(P,N.id),["enter"])},null,40,g_t)):(V(),H("div",m_t,Vt(N.name||te(i_)[N.type]),1)),I("div",y_t,[N.lock?(V(),Ue(_,{key:0,class:"icon",style:{"font-size":"14px"},onClick:P=>te(p)(N)},null,8,["onClick"])):(V(),H("div",A_t)),te(l).includes(N.id)?(V(),Ue(T,{key:2,class:"icon",style:{"font-size":"17px"},onClick:on(P=>te(f)(N.id),["stop"])},null,8,["onClick"])):(V(),Ue(O,{key:3,class:"icon",style:{"font-size":"17px"},onClick:on(P=>te(f)(N.id),["stop"])},null,8,["onClick"]))])],42,v_t))],64))),128))])):at("",!0),v.value.length?at("",!0):(V(),H("div",R_t,"本页无内容"))]),_:1},8,["title"])}}}),x_t=lt(b_t,[["__scopeId","data-v-8af5bbc9"]]),S_t=()=>{const t=Wt(),e=It(),{handleElement:n}=nt(t),{slides:r,slideIndex:a,currentSlide:i}=nt(e),o=we(""),s=we(""),l=we([]),c=we(-1),u=we("g"),f=()=>{const O=[],N=new RegExp(o.value,u.value),P=/(<([^>]+)>)/g;for(const C of r.value)for(const E of C.elements)if(E.type==="text"){const Y=E.content.replace(P,"").match(N);Y&&O.push(...new Array(Y.length).fill({slideId:C.id,elId:E.id,elType:E.type}))}else if(E.type==="shape"&&E.text&&E.text.content){const Y=E.text.content.replace(P,"").match(N);Y&&O.push(...new Array(Y.length).fill({slideId:C.id,elId:E.id,elType:E.type}))}else if(E.type==="table")for(let F=0;F<E.data.length;F++){const Y=E.data[F];for(let Q=0;Q<Y.length;Q++){const K=Y[Q];if(!K.text)continue;const Z=K.text.replace(P,"").match(N);Z&&O.push(...new Array(Z.length).fill({slideId:C.id,elId:E.id,elType:E.type,cellIndex:[F,Q]}))}}O.length?(l.value=O,c.value=0,m()):(Dn.warning("未查找到匹配项"),y())},d=O=>{const N=[...O.childNodes],P=[];for(;N.length;){const C=N.shift();C.nodeType===C.TEXT_NODE?C.wholeText&&P.push(C):N.unshift(...C.childNodes)}return P},h=O=>{let N=0;return O.map(C=>{const E=N,F=N+C.wholeText.length;return N=F,{text:C.wholeText,startIdx:E,endIdx:F}})},p=(O,N)=>{const P=new RegExp(N,u.value),C=[];let E=P.exec(O);for(;E;)C.push(E),E=P.exec(O);return C},v=(O,N,P,C)=>{for(let E=P.length-1;E>=0;E--){const F=P[E],Y=F.index,Q=Y+F[0].length;for(let K=0;K<N.length;K++){const{text:ne,startIdx:Z,endIdx:$}=N[K];if($<Y)continue;if(Z>=Q)break;let G=O[K];const ee=Math.max(0,Y-Z),ce=Math.min($,Q)-Z-ee;ee>0&&(G=G.splitText(ee)),ce<G.wholeText.length&&G.splitText(ce);const B=document.createElement("mark");B.dataset.index=C+E+"",B.innerText=ne.substring(ee,ee+ce),G.parentNode.replaceChild(B,G)}}},g=(O,N)=>{for(const P of O)P.innerHTML=P.innerHTML.replace(new RegExp(o.value,u.value),()=>`<mark data-index=${N++}>${o.value}</mark>`)},y=()=>{const O=document.querySelectorAll(".editable-element mark");for(const N of O)setTimeout(()=>{const P=N.parentNode,C=N.textContent;P.replaceChild(document.createTextNode(C),N)},0)},m=()=>{y(),setTimeout(()=>{for(let O=0;O<l.value.length;O++){const N=l.value[O-1],P=l.value[O];if(P.slideId!==i.value.id||N&&N.elId===P.elId)continue;const C=document.querySelector(`#editable-element-${P.elId}`);if(C)if(P.elType==="table"){const E=C.querySelectorAll(".cell-text");g(E,O)}else{const E=d(C),F=h(E),Y=F.map(({text:K})=>K).join(""),Q=p(Y,o.value);v(E,F,Q,O)}}},0)},R=()=>{const O=document.querySelectorAll("mark[data-index]");for(const N of O)setTimeout(()=>{const P=N.dataset.index;P!==void 0&&+P===c.value?N.classList.add("active"):N.classList.remove("active")},0)},A=()=>{if(c.value===-1)return;const O=l.value[c.value];if(O.slideId===i.value.id)setTimeout(R,0);else{const N=r.value.findIndex(P=>P.id===O.slideId);N!==-1&&e.updateSlideIndex(N)}},x=()=>{if(!o.value)return Dn.warning("请先输入查找内容");t.setActiveElementIdList([]),c.value===-1?f():c.value<l.value.length-1?c.value+=1:c.value=0,A()},M=()=>{if(!o.value)return Dn.warning("请先输入查找内容");t.setActiveElementIdList([]),c.value===-1?f():c.value>0?c.value-=1:c.value=l.value.length-1,A()},S=()=>{if(!o.value)return;if(c.value===-1){x();return}const O=l.value[c.value];let N=null;if(O.elType==="table"){const[F,Y]=O.cellIndex;N=document.querySelector(`#editable-element-${O.elId} .cell[data-cell-index="${F}_${Y}"] .cell-text`)}else N=document.querySelector(`#editable-element-${O.elId} .ProseMirror`);if(!N)return;const P=document.createElement("div");P.innerHTML=N.innerHTML;let C=!1;const E=P.querySelectorAll("mark[data-index]");for(const F of E){const Y=F.parentNode;if(F.classList.contains("active"))C?Y.removeChild(F):(Y.replaceChild(document.createTextNode(s.value),F),C=!0);else{const Q=F.textContent;Y.replaceChild(document.createTextNode(Q),F)}}if(O.elType==="text"){const F={content:P.innerHTML};e.updateElement({id:O.elId,props:F})}else if(O.elType==="shape"){const F=i.value.elements.find(Y=>Y.id===O.elId);if(F&&F.type==="shape"&&F.text){const Y={text:{...F.text,content:P.innerHTML}};e.updateElement({id:O.elId,props:Y})}}else if(O.elType==="table"){const F=i.value.elements.find(Y=>Y.id===O.elId);if(F&&F.type==="table"){const Q={data:F.data.map((K,ne)=>ne===O.cellIndex[0]?K.map((Z,$)=>$===O.cellIndex[1]?{...Z,text:P.innerHTML}:Z):K)};e.updateElement({id:O.elId,props:Q})}}l.value.splice(c.value,1),l.value.length?(c.value>l.value.length-1&&(c.value=0),qr(()=>{m(),A()})):c.value=-1},w=()=>{var O;if(o.value){if(c.value===-1){x();return}for(let N=0;N<l.value.length;N++){const P=l.value[N-1],C=l.value[N];if(P&&P.elId===C.elId)continue;const E=r.value.find(Q=>Q.id===C.slideId);if(!E)continue;const F=E.elements.find(Q=>Q.id===C.elId);if(!F)continue;const Y=document.createElement("div");if(F.type==="text"?Y.innerHTML=F.content:F.type==="shape"&&(Y.innerHTML=((O=F.text)==null?void 0:O.content)||""),C.elType==="table"){const K={data:F.data.map(ne=>ne.map(Z=>Z.text?{...Z,text:Z.text.replace(new RegExp(o.value,"g"),s.value)}:Z))};e.updateElement({id:C.elId,slideId:C.slideId,props:K})}else{const Q=d(Y),K=h(Q),ne=K.map(({text:ee})=>ee).join(""),Z=p(ne,o.value);v(Q,K,Z,N);const $=Y.querySelectorAll("mark[data-index]");let G=-1;for(const ee of $){const ce=+ee.dataset.index,B=ee.parentNode;ce===G?B.removeChild(ee):(B.replaceChild(document.createTextNode(s.value),ee),G=ce)}if(C.elType==="text"){const ee={content:Y.innerHTML};e.updateElement({id:C.elId,slideId:C.slideId,props:ee})}else if(C.elType==="shape"){const ee=i.value.elements.find(ce=>ce.id===C.elId);if(ee&&ee.type==="shape"&&ee.text){const ce={text:{...ee.text,content:Y.innerHTML}};e.updateElement({id:C.elId,slideId:C.slideId,props:ce})}}}}l.value=[],c.value=-1}},_=()=>{c.value=-1,l.value=[],o.value||y()};return qt(o,_),qt(a,()=>{qr(()=>{m(),setTimeout(R,0)})}),qt(n,()=>{n.value&&(c.value=-1,l.value=[],y())}),tg(y),{searchWord:o,replaceWord:s,searchResults:l,searchIndex:c,modifiers:u,searchNext:x,searchPrev:M,replace:S,replaceAll:w,toggleModifiers:()=>{u.value=u.value==="g"?"gi":"g",_()}}},M_t={class:"count"},__t={key:1,class:"footer"},w_t=tt({__name:"SearchPanel",setup(t){const e=Wt(),{searchWord:n,replaceWord:r,searchResults:a,searchIndex:i,modifiers:o,searchNext:s,searchPrev:l,replace:c,replaceAll:u,toggleModifiers:f}=S_t(),d=we("search"),h=[{key:"search",label:"查找"},{key:"replace",label:"替换"}],p=()=>{e.setSearchPanelState(!1)},v=un("searchInpRef");return mn(()=>{v.value.focus()}),qt(d,()=>{qr(()=>{v.value.focus()})}),(g,y)=>{const m=Sy,R=jMe,A=gOe,x=pr("tooltip");return V(),Ue(pg,{class:"search-panel",width:330,height:0,left:-270,top:90},{default:pe(()=>[I("div",{class:"close-btn",onClick:y[0]||(y[0]=M=>p()),onMousedown:y[1]||(y[1]=on(()=>{},["stop"]))},[U(m)],32),U(Wf,{tabs:h,value:d.value,"onUpdate:value":y[2]||(y[2]=M=>d.value=M)},null,8,["value"]),I("div",{class:mt(["content",d.value]),onMousedown:y[12]||(y[12]=on(()=>{},["stop"]))},[U(A0,{class:"input",value:te(n),"onUpdate:value":y[6]||(y[6]=M=>ba(n)?n.value=M:null),placeholder:"输入查找内容",onEnter:y[7]||(y[7]=M=>te(s)()),ref_key:"searchInpRef",ref:v},{suffix:pe(()=>[I("span",M_t,Vt(te(i)+1)+"/"+Vt(te(a).length),1),U(hn,{type:"vertical"}),yt((V(),H("span",{class:mt(["ignore-case",{active:te(o)==="g"}]),onClick:y[3]||(y[3]=M=>te(f)())},y[13]||(y[13]=[rt("Aa")]),2)),[[x,"忽略大小写"]]),U(hn,{type:"vertical"}),yt((V(),H("span",{class:"next-btn left",onClick:y[4]||(y[4]=M=>te(l)())},[U(R)])),[[x,"上一个"]]),yt((V(),H("span",{class:"next-btn right",onClick:y[5]||(y[5]=M=>te(s)())},[U(A)])),[[x,"下一个"]])]),_:1},8,["value"]),d.value==="replace"?(V(),Ue(A0,{key:0,class:"input",value:te(r),"onUpdate:value":y[8]||(y[8]=M=>ba(r)?r.value=M:null),placeholder:"输入替换内容",onEnter:y[9]||(y[9]=M=>te(c)())},null,8,["value"])):at("",!0),d.value==="replace"?(V(),H("div",__t,[U(Mt,{disabled:!te(n),style:{"margin-left":"5px"},onClick:y[10]||(y[10]=M=>te(c)())},{default:pe(()=>y[14]||(y[14]=[rt("替换")])),_:1,__:[14]},8,["disabled"]),U(Mt,{disabled:!te(n),type:"primary",style:{"margin-left":"5px"},onClick:y[11]||(y[11]=M=>te(u)())},{default:pe(()=>y[15]||(y[15]=[rt("全部替换")])),_:1,__:[15]},8,["disabled"])])):at("",!0)],34)]),_:1})}}}),L_t=lt(w_t,[["__scopeId","data-v-e704c749"]]),T_t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function O_t(t,e){return V(),H("svg",T_t,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M9 10v34h30V10z"}),I("path",{"stroke-linecap":"round",d:"M20 20v13m8-13v13M4 10h40"}),I("path",{d:"m16 10l3.289-6h9.488L32 10z"})],-1)]))}const pte=vt({name:"icon-park-outline-delete",render:O_t}),P_t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function C_t(t,e){return V(),H("svg",P_t,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[I("circle",{cx:"24",cy:"12",r:"8"}),I("path",{d:"M42 44c0-9.941-8.059-18-18-18S6 34.059 6 44"})],-1)]))}const N_t=vt({name:"icon-park-outline-user",render:C_t}),I_t={class:"container"},k_t=["onClick"],E_t={class:"header note-header"},F_t={class:"user"},X_t={class:"avatar"},D_t={class:"user-info"},V_t={class:"username"},U_t={class:"time"},W_t={class:"btns"},Y_t=["onClick"],B_t=["onClick"],Z_t={class:"content"},Q_t={key:0,class:"replies"},K_t={class:"header reply-header"},H_t={class:"user"},G_t={class:"avatar"},$_t={class:"user-info"},z_t={class:"username"},J_t={class:"time"},j_t={class:"btns"},q_t=["onClick"],ewt={class:"content"},twt={key:1,class:"note-reply"},nwt={class:"reply-btns"},rwt={key:0,class:"empty"},awt={class:"send"},iwt={class:"footer"},owt=tt({__name:"NotesPanel",setup(t){const e=It(),n=Wt(),{slideIndex:r,currentSlide:a}=nt(e),{handleElementId:i}=nt(n),o=we(""),s=we(""),l=Fe(()=>{var x;return((x=a.value)==null?void 0:x.notes)||[]}),c=we(""),u=we(""),f=un("textAreaRef"),d=un("notesRef");qt(r,()=>{c.value="",u.value=""});const h=()=>{d.value&&(d.value.scrollTop=d.value.scrollHeight)},p=()=>{if(!o.value){f.value&&f.value.focus();return}const x={id:Gn(),content:o.value,time:new Date().getTime(),user:"测试用户"};i.value&&(x.elId=i.value);const M=[...l.value,x];e.updateSlide({notes:M}),o.value="",qr(h)},v=x=>{const M=l.value.filter(S=>S.id!==x);e.updateSlide({notes:M})},g=()=>{if(!s.value)return;const x=l.value.find(_=>_.id===u.value);if(!x)return;const M=[...x.replies||[],{id:Gn(),content:s.value,time:new Date().getTime(),user:"测试用户"}],S={...x,replies:M},w=l.value.map(_=>_.id===u.value?S:_);e.updateSlide({notes:w}),s.value="",u.value="",qr(h)},y=(x,M)=>{const S=l.value.find(O=>O.id===x);if(!S||!S.replies)return;const w=S.replies.filter(O=>O.id!==M),_={...S,replies:w},T=l.value.map(O=>O.id===x?_:O);e.updateSlide({notes:T})},m=x=>{c.value=x.id,x.elId?a.value.elements.map(S=>S.id).includes(x.elId)?n.setActiveElementIdList([x.elId]):n.setActiveElementIdList([]):n.setActiveElementIdList([])},R=()=>{e.updateSlide({notes:[]})},A=()=>{n.setNotesPanelState(!1)};return(x,M)=>{const S=N_t,w=pte,_=zf,T=pr("tooltip");return V(),Ue(pg,{class:"notes-panel",width:300,height:560,title:`幻灯片${te(r)+1}的批注`,left:-270,top:90,minWidth:300,minHeight:400,maxWidth:480,maxHeight:780,resizeable:"",onClose:M[9]||(M[9]=O=>A())},{default:pe(()=>[I("div",I_t,[I("div",{class:"notes",ref_key:"notesRef",ref:d},[(V(!0),H(qe,null,bt(l.value,O=>{var N;return V(),H("div",{class:mt(["note",{active:c.value===O.id}]),key:O.id,onClick:P=>m(O)},[I("div",E_t,[I("div",F_t,[I("div",X_t,[U(S)]),I("div",D_t,[I("div",V_t,Vt(O.user),1),I("div",U_t,Vt(new Date(O.time).toLocaleString()),1)])]),I("div",W_t,[I("div",{class:"btn reply",onClick:P=>u.value=O.id},"回复",8,Y_t),I("div",{class:"btn delete",onClick:on(P=>v(O.id),["stop"])},"删除",8,B_t)])]),I("div",Z_t,Vt(O.content),1),(N=O.replies)!=null&&N.length?(V(),H("div",Q_t,[(V(!0),H(qe,null,bt(O.replies,P=>(V(),H("div",{class:"reply-item",key:P.id},[I("div",K_t,[I("div",H_t,[I("div",G_t,[U(S)]),I("div",$_t,[I("div",z_t,Vt(P.user),1),I("div",J_t,Vt(new Date(P.time).toLocaleString()),1)])]),I("div",j_t,[I("div",{class:"btn delete",onClick:on(C=>y(O.id,P.id),["stop"])},"删除",8,q_t)])]),I("div",ewt,Vt(P.content),1)]))),128))])):at("",!0),u.value===O.id?(V(),H("div",twt,[U(hJ,{padding:6,value:s.value,"onUpdate:value":M[0]||(M[0]=P=>s.value=P),placeholder:"输入回复内容",rows:1,onEnter:M[1]||(M[1]=on(P=>g(),["prevent"]))},null,8,["value"]),I("div",nwt,[U(Mt,{class:"btn",size:"small",onClick:M[2]||(M[2]=P=>u.value="")},{default:pe(()=>M[10]||(M[10]=[rt("取消")])),_:1,__:[10]}),U(Mt,{class:"btn",size:"small",type:"primary",onClick:M[3]||(M[3]=P=>g())},{default:pe(()=>M[11]||(M[11]=[rt("回复")])),_:1,__:[11]})])])):at("",!0)],10,k_t)}),128)),l.value.length?at("",!0):(V(),H("div",rwt,"本页暂无批注"))],512),I("div",awt,[U(hJ,{ref_key:"textAreaRef",ref:f,value:o.value,"onUpdate:value":M[4]||(M[4]=O=>o.value=O),padding:6,placeholder:`输入批注(为${te(i)?"选中元素":"当前页幻灯片"})`,rows:2,onFocus:M[5]||(M[5]=O=>{u.value="",c.value=""}),onEnter:M[6]||(M[6]=on(O=>p(),["prevent"]))},null,8,["value","placeholder"]),I("div",iwt,[yt(U(w,{class:"btn icon",style:{flex:"1"},onClick:M[7]||(M[7]=O=>R())},null,512),[[T,"清空本页批注"]]),U(Mt,{type:"primary",class:"btn",style:{flex:"12"},onClick:M[8]||(M[8]=O=>p())},{default:pe(()=>[U(_),M[12]||(M[12]=rt(" 添加批注"))]),_:1,__:[12]})])])])]),_:1},8,["title"])}}}),swt=lt(owt,[["__scopeId","data-v-d33cfe0e"]]),BH=[{key:"letter",label:"字母",children:[["α","β","γ","δ","ϵ","ε","ζ","η","θ","ϑ","ι","κ","λ","μ","ν","ξ","π","ϖ","ρ","ϱ","σ","ς","τ","υ","ϕ","φ","χ","ψ","ω"],["Γ","Δ","Θ","Λ","Ξ","Π","Σ","Υ","Φ","Ψ","Ω"],["𝐀","𝐁","𝐂","𝐃","𝐄","𝐅","𝐆","𝐇","𝐈","𝐉","𝐊","𝐋","𝐌","𝐍","𝐎","𝐏","𝐐","𝐑","𝐒","𝐓","𝐔","𝐕","𝐖","𝐗","𝐘","𝐙"],["𝐚","𝐛","𝐜","𝐝","𝐞","𝐟","𝐠","𝐡","𝐢","𝐣","𝐤","𝐥","𝐦","𝐧","𝐨","𝐩","𝐪","𝐫","𝐬","𝐭","𝐮","𝐯","𝐰","𝐱","𝐲","𝐳"],["𝓐","𝓑","𝓒","𝓓","𝓔","𝓕","𝓖","𝓗","𝓘","𝓙","𝓚","𝓛","𝓜","𝓝","𝓞","𝓟","𝓠","𝓡","𝓢","𝓣","𝓤","𝓥","𝓦","𝓧","𝓨","𝓩"],["𝓪","𝓫","𝓬","𝓭","𝓮","𝓯","𝓰","𝓱","𝓲","𝓳","𝓴","𝓵","𝓶","𝓷","𝓸","𝓹","𝓺","𝓻","𝓼","𝓽","𝓾","𝓿","𝔀","𝔁","𝔂","𝔃"]]},{key:"number",label:"序号",children:[["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳"],["⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇"],["º","¹","²","³","⁴","⁵","⁶","⁷","⁸","⁹","₀","₁","₂","₃","₄","₅","₆","₇","₈","₉"],["Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","Ⅺ","Ⅻ","Ⅼ","Ⅽ","Ⅾ","Ⅿ"],["ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","ⅺ","ⅻ","ⅼ","ⅽ","ⅾ","ⅿ","ↀ","ↁ","ↂ"],["㊀","㊁","㊂","㊃","㊄","㊅","㊆","㊇","㊈","㊉","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩"],["𝟘","𝟙","𝟚","𝟛","𝟜","𝟝","𝟞","𝟟","𝟠","𝟡"]]},{key:"math",label:"数学",children:[["+","-","×","÷","=","~","¬","±","%","°","ǃ","‰","‱","½","⅓","⅔","¼","¾"],["<",">","l","o","g","l","g","l","n","⨂","⨁","⨄","⨃","⨅","⨆","√","∛","∜","∝","∞"],["∟","∠","∡","∢","∧","∨","∩","∪","∫","∬","∭","∮","∯","∰","∱","∲","∳"],["∴","∵","∼","∽","∾","∿","≃","≄","≅","≆","≇","≈","≊","≋","≌","≍","≎","≏","≐","≑","≒","≓","≔","≕"],["≤","≥","≦","≧","≨","≩","≪","≫","≺","≻","≼","≽","≾","≿","⊀","⊁","⊂","⊃","⊄","⊅","⊆","⊇","⊈","⊉","⊊","⊋","⊏","⊐","⊑","⊒"],["⊓","⊔","⊢","⊣","⊤","⊥","⊦","⊧","⊨","⊩","⊪","⊫","⊬","⊭","⊮","⊯","⊲","⊳","⊴","⊵","⋀","⋁","⋂","⋃","⋉","⋊"],["⋋","⋌","⟨","⟩","⟪","⟫","⟮","⟯","⧼","⧽","⦰"]]},{key:"arrow",label:"箭头",children:[["←","↑","→","↓","↔","↕","↖","↗","↘","↙","↚","↛","↜","↝","↞","↟","↠","↡","↢","↣","↤","↥","↦","↧","↨"],["↫","↬","↭","↮","↯","↰","↱","↲","↳","↴","↵","↶","↷","↸","↹","↺","↻","↼","↽","↾","↿","⇀","⇁","⇂","⇃"],["⇄","⇅","⇆","⇇","⇈","⇉","⇊","⇋","⇌","⇍","⇎","⇏","⇐","⇑","⇒","⇓","⇔","⇕","⇖","⇗","⇘","⇙","⇚","⇛"],["⇜","⇝","⇞","⇟","⇠","⇡","⇢","⇣","⇤","⇥","⇦","⇧","⇨","⇩","⇪","⇫","⇬","⇭","⇮","⇯","⇰","⇱","⇲","⇳","⇴","⇵"],["⇶","⇷","⇸","⇹","⇺","⇻","⇼","⇽","⇾","⇿"]]},{key:"graph",label:"图形",children:[["▢","▣","▤","▥","▦","▧","▨","▩","▭","▮","▯","▰","▱","▲","▷","▼","◁","◈","◉","◍","◐","◑","◒","◓","◔","◕","◧","◨","◩","◪","◫","◬","◭","◮"]]},{key:"emoji",label:"Emoji",children:[["😀","😃","😄","😁","😆","😅","🤣","😂","🙂","🙃","😉","😊","😇","🥰","😍","🤩","😘","😚","😙","😋","😛","😜","🤪","😝","🤑","🤗","🤭","🤫","🤔","🤐","🤨","😐","😑","😶","😏","😒","🙄","😬","🤥","😌","😔","😪","🤤","😴","😷","🤒","🤕","🤢","🤮","🤧","🥶","🥴","😵","🤯","🤠","🥳","😎","🤓","🧐","😕","😟","🙁","☹️","😮","😯","😲","😳","🥺","😦","😧","😨","😰","😥","😢","😭","😱","😖","😣","😞","😓","😩","😫","😤","😠","😡","🥵","🤬","😈","👿","💀","☠️","🤡","👹","👺","👻","👽","👾","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🙈","🙉","🙊","💌","💘","💝","💖","💗","💓","💞","💕","💟","❣️","💔","🧡","💛","💚","💙","💜","🖤","💋","💯","💢","💥","💫","💦","💨","🕳️","💬","👁️🗨️","🗨️","🗯️","💭","💤"],["👋","🤚","🖐️","✋","🖖","👌","✌️","🤞","🤟","🤘","🤙","👈","👉","👆","🖕","👇","☝️","👍","👎","✊","👊","🤛","🤜","👏","🙌","👐","🤲","🤝","🙏","✍️","💅","🤳","💪","🦵","🦶","👂","👃","🧠","🦷","🦴","👀","👁️","👅","👄","🤺","🏇","⛷️","🏂","🏌️","🏌️♂️","🏌️♀️","🏄","🏄♂️","🏄♀️","🚣","🚣♂️","🚣♀️","🏊","🏊♂️","🏊♀️","⛹️","⛹️♂️","⛹️♀️","🏋️","🏋️♂️","🏋️♀️","🚴","🚴♂️","🚴♀️","🚵","🚵♂️","🚵♀️","🤸","🤸♂️","🤸♀️","🤼","🤼♂️","🤼♀️","🤽","🤽♂️","🤽♀️","🤾","🤾♂️","🤾♀️","🤹","🤹♂️","🤹♀️","🧘","🧘♂️","🧘♀️","🛀","🛌"],["🐵","🐒","🦍","🐶","🐕","🐩","🐺","🦊","🦝","🐱","🐈","🦁","🐯","🐅","🐆","🐴","🐎","🦄","🦓","🦌","🐮","🐂","🐃","🐄","🐷","🐖","🐗","🐽","🐏","🐑","🐐","🐪","🐫","🦙","🦒","🐘","🦏","🦛","🐭","🐁","🐀","🐹","🐰","🐇","🐿️","🦔","🦇","🐻","🐨","🐼","🦘","🦡","🐾","🦃","🐔","🐓","🐣","🐤","🐥","🐦","🐧","🕊️","🦅","🦆","🦢","🦉","🦚","🦜","🐸","🐊","🐢","🦎","🐍","🐲","🐉","🦕","🦖","🐳","🐋","🐬","🐟","🐠","🐡","🦈","🐙","🐚","🐌","🦋","🐛","🐜","🐝","🐞","🦗","🪳","🕷️","🕸️","🦂","🦟","🦠","💐","🌸","💮","🏵️","🌹","🥀","🌺","🌻","🌼","🌷","🌱","🌲","🌳","🌴","🌵","🌾","🌿","☘️","🍀","🍁","🍂","🍃","🍄"],["🍇","🍈","🍉","🍊","🍋","🍌","🍍","🥭","🍎","🍏","🍐","🍑","🍒","🍓","🥝","🍅","🥥","🥑","🍆","🥔","🥕","🌽","🌶️","🥒","🥬","🥦","🥜","🌰","🍞","🥐","🥖","🥨","🥯","🥞","🧀","🍖","🍗","🥩","🥓","🍔","🍟","🍕","🌭","🥪","🌮","🌯","🥙","🥚","🍳","🥘","🍲","🥣","🥗","🍿","🧂","🥫","🍱","🍘","🍙","🍚","🍛","🍜","🍝","🍠","🍢","🍣","🍤","🍥","🥮","🍡","🥟","🥠","🥡","🦀","🦞","🦐","🦑","🍦","🍧","🍨","🍩","🍪","🎂","🍰","🧁","🥧","🍫","🍬","🍭","🍮","🍯","🍼","🥛","🍵","🍶","🍾","🍷","🍸","🍹","🍺","🍻","🥂","🥃","🥤","🥢","🍽️","🍴","🥄","🔪","🏺"],["🌍","🌎","🌏","🌐","🗺️","🗾","🧭","🏔️","⛰️","🌋","🗻","🏕️","🏖️","🏜️","🏝️","🏞️","🏟️","🏛️","🏗️","🧱","🏘️","🏚️","🏠","🏡","🏢","🏣","🏤","🏥","🏦","🏨","🏩","🏪","🏫","🏬","🏭","🏯","🏰","💒","🗼","🗽","⛪","🕌","🕍","⛩️","🕋","⛲","⛺","🌁","🌃","🏙️","🌄","🌅","🌆","🌇","🌉","♨️","🎠","🎡","🎢","💈","🎪","🚂","🚃","🚄","🚅","🚆","🚇","🚈","🚉","🚊","🚝","🚞","🚋","🚌","🚍","🚎","🚐","🚑","🚒","🚓","🚔","🚕","🚖","🚗","🚘","🚙","🚚","🚛","🚜","🏎️","🏍️","🛵","🚲","🛴","🛹","🚏","🛣️","🛤️","🛢️","⛽","🚨","🚥","🚦","🛑","🚧","⚓","⛵","🛶","🚤","🛳️","⛴️","🛥️","🚢","✈️","🛩️","🛫","🛬","💺","🚁","🚟","🚠","🚡","🛰️","🚀","🛸","🛎️","🧳","⌛","⏳","⌚","⏰","⏱️","⏲️","🕰️","🕛","🕧","🕐","🕜","🕑","🕝","🕒","🕞","🕓","🕟","🕔","🕠","🕕","🕡","🕖","🕢","🕗","🕣","🕘","🕤","🕙","🕥","🕚","🕦","🌑","🌒","🌓","🌔","🌕","🌖","🌗","🌘","🌙","🌚","🌛","🌜","🌡️","☀️","🌝","🌞","⭐","🌟","🌠","🌌","☁️","⛅","⛈️","🌤️","🌥️","🌦️","🌧️","🌨️","🌩️","🌪️","🌫️","🌬️","🌀","🌈","🌂","☂️","☔","⛱️","⚡","❄️","☃️","⛄","☄️","🔥","💧","🌊"],["🎃","🎄","🎆","🎇","🧨","✨","🎈","🎉","🎊","🎋","🎍","🎎","🎏","🎐","🎑","🧧","🎀","🎁","🎗️","🎟️","🎫","🎖️","🏆","🏅","🥇","🥈","🥉","⚽","⚾","🥎","🏀","🏐","🏈","🏉","🎾","🥏","🎳","🏏","🏑","🏒","🥍","🏓","🏸","🥊","🥋","🥅","⛳","⛸️","🎣","🎽","🎿","🛷","🥌","🎯","🔫","🎱","🔮","🎮","🕹️","🎰","🎲","🧩","🧸","♟️","🃏","🀄","🎴","🎭","🖼️","🎨","🧵","🧶"],["👓","🕶️","🥽","🥼","👔","👕","👖","🧣","🧤","🧥","🧦","👗","👘","👙","👚","👛","👜","👝","🛍️","🎒","👞","👟","🥾","🥿","👠","👡","👢","👑","👒","🎩","🎓","🧢","⛑️","📿","💄","💍","💎","🔇","🔈","🔉","🔊","📢","📣","📯","🔔","🔕","🎼","🎙️","🎚️","🎛️","🎤","🎧","📻","🎷","🎸","🎹","🎺","🎻","🥁","📱","📲","☎️","📞","📟","📠","🔋","🔌","💻","🖥️","🖨️","⌨️","🖱️","🖲️","💽","💾","💿","📀","🧮","🎥","🎞️","📽️","🎬","📺","📷","📸","📹","📼","🔍","🔎","🕯️","💡","🔦","🏮","📔","📕","📖","📗","📘","📙","📚","📓","📒","📃","📜","📄","📰","🗞️","📑","🔖","🏷️","💰","💴","💵","💶","💷","💸","💳","🧾","💹","✉️","📧","📨","📩","📤","📥","📦","📫","📪","📬","📭","📮","🗳️","✏️","✒️","🖋️","🖊️","🖌️","🖍️","📝","💼","📁","📂","🗂️","📅","📆","🗒️","🗓️","📇","📈","📉","📊","📋","📌","📍","📎","🖇️","📏","📐","✂️","🗃️","🗄️","🗑️","🔓","🔏","🔐","🔑","🗝️","🔨","⛏️","⚒️","🛠️","🗡️","⚔️","💣","🏹","🛡️","🔧","🔩","⚙️","🗜️","⚖️","🔗","⛓️","🧰","🧲","⚗️","🧪","🧫","🧬","🔬","🔭","📡","💉","💊","🚪","🛏️","🛋️","🚽","🚿","🛁","🧴","🧷","🧹","🧺","🧻","🧼","🧽","🧯","🛒","🚬","⚰️","⚱️","🧿","🗿"],["1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣","🔟","🔠","🔡","🔢","🔣","🚮","🚰","♿","🚹","🚺","🚻","🚼","🚾","🛂","🛃","🛄","🛅","⛔","🚫","🚳","🚭","🚯","🚱","🚷","📵","🔞","⚠️","🚸","☢️","☣️","⬆️","➡️","⬇️","⬅️","↩️","↪️","⤴️","⤵️","🔃","🔄","🔙","🔚","🔛","🔜","🔝","🛐","⚛️","🕉️","✡️","☸️","☯️","✝️","☦️","☪️","☮️","🕎","🔯","♈","♉","♊","♋","♌","♍","♎","♏","♐","♑","♒","♓","⛎","🔀","🔁","🔂","⏩","⏭️","⏯️","⏪","⏮️","⏫","⏬","⏸️","⏹️","⏺️","⏏️","🎦","🏁","🚩","🎌","🏴","🏳️","🏳️🌈","🏴☠️","🔴","🔵","⚫","⚪","⬛","⬜","◼️","◻️","◾","◽","🔶","🔷","🔸","🔹","🔺","🔻","💠","🔘","🔳","🔲","🔅","🔆","📶","📳","📴","✖️","➕","➖","➗","♾️","❓","❔","❕","❗","⚕️","♻️","⚜️","🔱","📛","🔰","⭕","✅","✔️","❌","❎","➰","➿","✳️","✴️","❇️"]]}],lwt={key:0,class:"emoji-types"},cwt=["onClick"],uwt=["onClick"],fwt={class:"symbol"},dwt=tt({__name:"SymbolPanel",setup(t){const e=Wt(),{handleElement:n}=nt(e),{createTextElement:r}=M0(),a=un("poolRef"),i=we(BH[0].key),o=we(["表情","动作","动植物","食物","旅行","活动","物品","符号"]),s=we(0),l=Fe(()=>{const d=BH.find(h=>h.key===i.value);return d?d.key==="emoji"?[d.children[s.value]]:d.children:[]}),c=BH.map(d=>({key:d.key,label:d.label}));qt([s,i],()=>{a.value&&a.value.scrollTo(0,0)});const u=d=>{var h,p,v;if(((h=n.value)==null?void 0:h.type)==="text"){zi.emit(Ni.RICH_TEXT_COMMAND,{action:{command:"insert",value:d}});return}if(((p=n.value)==null?void 0:p.type)==="shape"&&document.querySelector(`#editable-element-${n.value.id} .ProseMirror`)){zi.emit(Ni.RICH_TEXT_COMMAND,{action:{command:"insert",value:d}});return}if(((v=n.value)==null?void 0:v.type)==="table"&&document.querySelector(`#editable-element-${n.value.id} .cell.active .cell-text`)){document.execCommand("insertText",!1,d);return}r({left:0,top:0,width:200,height:50},{content:d})},f=()=>{e.setSymbolPanelState(!1)};return(d,h)=>{const p=Sy;return V(),Ue(pg,{class:"symbol-panel",width:350,height:560,left:-270,top:90,contentStyle:{overflow:"hidden",display:"flex",flexDirection:"column"}},{default:pe(()=>[I("div",{class:"close-btn",onClick:h[0]||(h[0]=v=>f()),onMousedown:h[1]||(h[1]=on(()=>{},["stop"]))},[U(p)],32),U(Wf,{tabs:te(c),value:i.value,"onUpdate:value":h[2]||(h[2]=v=>i.value=v),tabsStyle:{marginBottom:"8px"}},null,8,["tabs","value"]),i.value==="emoji"?(V(),H("div",lwt,[(V(!0),H(qe,null,bt(o.value,(v,g)=>(V(),H("div",{class:mt(["emoji-type",{active:s.value===g}]),key:g,onClick:y=>s.value=g},Vt(v),11,cwt))),128))])):at("",!0),I("div",{class:"pool",ref_key:"poolRef",ref:a},[(V(!0),H(qe,null,bt(l.value,(v,g)=>(V(),H("div",{class:"symbol-group",key:g},[(V(!0),H(qe,null,bt(v,(y,m)=>(V(),H("div",{class:"symbol-item",key:m,onClick:R=>u(y)},[I("div",fwt,Vt(y),1)],8,uwt))),128))]))),128))],512)]),_:1})}}}),hwt=lt(dwt,[["__scopeId","data-v-9c94f1e8"]]),pwt={class:"container"},vwt={class:"row"},gwt={key:0,class:"row"},mwt={key:1,class:"row"},ywt={key:2,class:"placeholder"},Awt=tt({__name:"MarkupPanel",setup(t){const e=It(),n=Wt(),{currentSlide:r}=nt(e),{handleElement:a,handleElementId:i}=nt(n),o=we([{label:"未标记类型",value:""},{label:"封面页",value:"cover"},{label:"目录页",value:"contents"},{label:"过渡页",value:"transition"},{label:"内容页",value:"content"},{label:"结束页",value:"end"}]),s=we([{label:"未标记类型",value:""},{label:"标题",value:"title"},{label:"副标题",value:"subtitle"},{label:"正文",value:"content"},{label:"列表项目",value:"item"},{label:"列表项标题",value:"itemTitle"},{label:"注释",value:"notes"},{label:"页眉",value:"header"},{label:"页脚",value:"footer"},{label:"节编号",value:"partNumber"},{label:"项目编号",value:"itemNumber"}]),l=we([{label:"未标记类型",value:""},{label:"页面插图",value:"pageFigure"},{label:"项目插图",value:"itemFigure"},{label:"背景图",value:"background"}]),c=Fe(()=>{var v;return((v=r.value)==null?void 0:v.type)||""}),u=Fe(()=>a.value?a.value.type==="text"?a.value.textType||"":a.value.type==="shape"&&a.value.text&&a.value.text.type||"":""),f=Fe(()=>a.value&&a.value.type==="image"&&a.value.imageType||""),d=v=>{v?e.updateSlide({type:v}):e.removeSlideProps({id:r.value.id,propName:"type"})},h=v=>{if(a.value&&(a.value.type==="image"&&(v?e.updateElement({id:i.value,props:{imageType:v}}):e.removeElementProps({id:i.value,propName:"imageType"})),a.value.type==="text"&&(v?e.updateElement({id:i.value,props:{textType:v}}):e.removeElementProps({id:i.value,propName:"textType"})),a.value.type==="shape")){const g=a.value.text;if(!g)return;v?e.updateElement({id:i.value,props:{text:{...g,type:v}}}):(delete g.type,e.updateElement({id:i.value,props:{text:g}}))}},p=()=>{n.setMarkupPanelState(!1)};return(v,g)=>(V(),Ue(pg,{class:"notes-panel",width:300,height:130,title:"幻灯片类型标注",left:-270,top:90,onClose:g[3]||(g[3]=y=>p())},{default:pe(()=>[I("div",pwt,[I("div",vwt,[g[4]||(g[4]=I("div",{style:{width:"40%"}},"当前页面类型:",-1)),U(La,{style:{width:"60%"},value:c.value,"onUpdate:value":g[0]||(g[0]=y=>d(y)),options:o.value},null,8,["value","options"])]),te(a)&&(te(a).type==="text"||te(a).type==="shape"&&te(a).text)?(V(),H("div",gwt,[g[5]||(g[5]=I("div",{style:{width:"40%"}},"当前文本类型:",-1)),U(La,{style:{width:"60%"},value:u.value,"onUpdate:value":g[1]||(g[1]=y=>h(y)),options:s.value},null,8,["value","options"])])):te(a)&&te(a).type==="image"?(V(),H("div",mwt,[g[6]||(g[6]=I("div",{style:{width:"40%"}},"当前图片类型:",-1)),U(La,{style:{width:"60%"},value:f.value,"onUpdate:value":g[2]||(g[2]=y=>h(y)),options:l.value},null,8,["value","options"])])):(V(),H("div",ywt,"选中图片、文字、带文字的形状,标记类型"))])]),_:1}))}}),Rwt=lt(Awt,[["__scopeId","data-v-03822a78"]]);function bwt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var QS=bwt,xwt=typeof cn=="object"&&cn&&cn.Object===Object&&cn,kOe=xwt,Swt=kOe,Mwt=typeof self=="object"&&self&&self.Object===Object&&self,_wt=Swt||Mwt||Function("return this")(),Fh=_wt,wwt=Fh,Lwt=function(){return wwt.Date.now()},Twt=Lwt,Owt=/\s/;function Pwt(t){for(var e=t.length;e--&&Owt.test(t.charAt(e)););return e}var Cwt=Pwt,Nwt=Cwt,Iwt=/^\s+/;function kwt(t){return t&&t.slice(0,Nwt(t)+1).replace(Iwt,"")}var Ewt=kwt,Fwt=Fh,Xwt=Fwt.Symbol,QV=Xwt,hRe=QV,EOe=Object.prototype,Dwt=EOe.hasOwnProperty,Vwt=EOe.toString,D5=hRe?hRe.toStringTag:void 0;function Uwt(t){var e=Dwt.call(t,D5),n=t[D5];try{t[D5]=void 0;var r=!0}catch{}var a=Vwt.call(t);return r&&(e?t[D5]=n:delete t[D5]),a}var Wwt=Uwt,Ywt=Object.prototype,Bwt=Ywt.toString;function Zwt(t){return Bwt.call(t)}var Qwt=Zwt,pRe=QV,Kwt=Wwt,Hwt=Qwt,Gwt="[object Null]",$wt="[object Undefined]",vRe=pRe?pRe.toStringTag:void 0;function zwt(t){return t==null?t===void 0?$wt:Gwt:vRe&&vRe in Object(t)?Kwt(t):Hwt(t)}var H8=zwt;function Jwt(t){return t!=null&&typeof t=="object"}var G8=Jwt,jwt=H8,qwt=G8,e8t="[object Symbol]";function t8t(t){return typeof t=="symbol"||qwt(t)&&jwt(t)==e8t}var KV=t8t,n8t=Ewt,gRe=QS,r8t=KV,mRe=NaN,a8t=/^[-+]0x[0-9a-f]+$/i,i8t=/^0b[01]+$/i,o8t=/^0o[0-7]+$/i,s8t=parseInt;function l8t(t){if(typeof t=="number")return t;if(r8t(t))return mRe;if(gRe(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=gRe(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=n8t(t);var n=i8t.test(t);return n||o8t.test(t)?s8t(t.slice(2),n?2:8):a8t.test(t)?mRe:+t}var FOe=l8t,c8t=QS,ZH=Twt,yRe=FOe,u8t="Expected a function",f8t=Math.max,d8t=Math.min;function h8t(t,e,n){var r,a,i,o,s,l,c=0,u=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError(u8t);e=yRe(e)||0,c8t(n)&&(u=!!n.leading,f="maxWait"in n,i=f?f8t(yRe(n.maxWait)||0,e):i,d="trailing"in n?!!n.trailing:d);function h(M){var S=r,w=a;return r=a=void 0,c=M,o=t.apply(w,S),o}function p(M){return c=M,s=setTimeout(y,e),u?h(M):o}function v(M){var S=M-l,w=M-c,_=e-S;return f?d8t(_,i-w):_}function g(M){var S=M-l,w=M-c;return l===void 0||S>=e||S<0||f&&w>=i}function y(){var M=ZH();if(g(M))return m(M);s=setTimeout(y,v(M))}function m(M){return s=void 0,d&&r?h(M):(r=a=void 0,o)}function R(){s!==void 0&&clearTimeout(s),c=0,r=l=a=s=void 0}function A(){return s===void 0?o:m(ZH())}function x(){var M=ZH(),S=g(M);if(r=arguments,a=this,l=M,S){if(s===void 0)return p(l);if(f)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return x.cancel=R,x.flush=A,x}var XOe=h8t;const p8t=ng(XOe);var v8t=XOe,g8t=QS,m8t="Expected a function";function y8t(t,e,n){var r=!0,a=!0;if(typeof t!="function")throw new TypeError(m8t);return g8t(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),v8t(t,e,{leading:r,maxWait:e,trailing:a})}var A8t=y8t;const R8t=ng(A8t);function b8t(t,e,n,r){for(var a=t.length,i=n+(r?1:-1);r?i--:++i<a;)if(e(t[i],i,t))return i;return-1}var x8t=b8t;function S8t(){this.__data__=[],this.size=0}var M8t=S8t;function _8t(t,e){return t===e||t!==t&&e!==e}var DOe=_8t,w8t=DOe;function L8t(t,e){for(var n=t.length;n--;)if(w8t(t[n][0],e))return n;return-1}var HV=L8t,T8t=HV,O8t=Array.prototype,P8t=O8t.splice;function C8t(t){var e=this.__data__,n=T8t(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():P8t.call(e,n,1),--this.size,!0}var N8t=C8t,I8t=HV;function k8t(t){var e=this.__data__,n=I8t(e,t);return n<0?void 0:e[n][1]}var E8t=k8t,F8t=HV;function X8t(t){return F8t(this.__data__,t)>-1}var D8t=X8t,V8t=HV;function U8t(t,e){var n=this.__data__,r=V8t(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var W8t=U8t,Y8t=M8t,B8t=N8t,Z8t=E8t,Q8t=D8t,K8t=W8t;function KS(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}KS.prototype.clear=Y8t;KS.prototype.delete=B8t;KS.prototype.get=Z8t;KS.prototype.has=Q8t;KS.prototype.set=K8t;var GV=KS,H8t=GV;function G8t(){this.__data__=new H8t,this.size=0}var $8t=G8t;function z8t(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var J8t=z8t;function j8t(t){return this.__data__.get(t)}var q8t=j8t;function eLt(t){return this.__data__.has(t)}var tLt=eLt,nLt=H8,rLt=QS,aLt="[object AsyncFunction]",iLt="[object Function]",oLt="[object GeneratorFunction]",sLt="[object Proxy]";function lLt(t){if(!rLt(t))return!1;var e=nLt(t);return e==iLt||e==oLt||e==aLt||e==sLt}var VOe=lLt,cLt=Fh,uLt=cLt["__core-js_shared__"],fLt=uLt,QH=fLt,ARe=function(){var t=/[^.]+$/.exec(QH&&QH.keys&&QH.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function dLt(t){return!!ARe&&ARe in t}var hLt=dLt,pLt=Function.prototype,vLt=pLt.toString;function gLt(t){if(t!=null){try{return vLt.call(t)}catch{}try{return t+""}catch{}}return""}var UOe=gLt,mLt=VOe,yLt=hLt,ALt=QS,RLt=UOe,bLt=/[\\^$.*+?()[\]{}|]/g,xLt=/^\[object .+?Constructor\]$/,SLt=Function.prototype,MLt=Object.prototype,_Lt=SLt.toString,wLt=MLt.hasOwnProperty,LLt=RegExp("^"+_Lt.call(wLt).replace(bLt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function TLt(t){if(!ALt(t)||yLt(t))return!1;var e=mLt(t)?LLt:xLt;return e.test(RLt(t))}var OLt=TLt;function PLt(t,e){return t==null?void 0:t[e]}var CLt=PLt,NLt=OLt,ILt=CLt;function kLt(t,e){var n=ILt(t,e);return NLt(n)?n:void 0}var HS=kLt,ELt=HS,FLt=Fh,XLt=ELt(FLt,"Map"),vte=XLt,DLt=HS,VLt=DLt(Object,"create"),$V=VLt,RRe=$V;function ULt(){this.__data__=RRe?RRe(null):{},this.size=0}var WLt=ULt;function YLt(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var BLt=YLt,ZLt=$V,QLt="__lodash_hash_undefined__",KLt=Object.prototype,HLt=KLt.hasOwnProperty;function GLt(t){var e=this.__data__;if(ZLt){var n=e[t];return n===QLt?void 0:n}return HLt.call(e,t)?e[t]:void 0}var $Lt=GLt,zLt=$V,JLt=Object.prototype,jLt=JLt.hasOwnProperty;function qLt(t){var e=this.__data__;return zLt?e[t]!==void 0:jLt.call(e,t)}var e6t=qLt,t6t=$V,n6t="__lodash_hash_undefined__";function r6t(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=t6t&&e===void 0?n6t:e,this}var a6t=r6t,i6t=WLt,o6t=BLt,s6t=$Lt,l6t=e6t,c6t=a6t;function GS(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}GS.prototype.clear=i6t;GS.prototype.delete=o6t;GS.prototype.get=s6t;GS.prototype.has=l6t;GS.prototype.set=c6t;var u6t=GS,bRe=u6t,f6t=GV,d6t=vte;function h6t(){this.size=0,this.__data__={hash:new bRe,map:new(d6t||f6t),string:new bRe}}var p6t=h6t;function v6t(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var g6t=v6t,m6t=g6t;function y6t(t,e){var n=t.__data__;return m6t(e)?n[typeof e=="string"?"string":"hash"]:n.map}var zV=y6t,A6t=zV;function R6t(t){var e=A6t(this,t).delete(t);return this.size-=e?1:0,e}var b6t=R6t,x6t=zV;function S6t(t){return x6t(this,t).get(t)}var M6t=S6t,_6t=zV;function w6t(t){return _6t(this,t).has(t)}var L6t=w6t,T6t=zV;function O6t(t,e){var n=T6t(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var P6t=O6t,C6t=p6t,N6t=b6t,I6t=M6t,k6t=L6t,E6t=P6t;function $S(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$S.prototype.clear=C6t;$S.prototype.delete=N6t;$S.prototype.get=I6t;$S.prototype.has=k6t;$S.prototype.set=E6t;var gte=$S,F6t=GV,X6t=vte,D6t=gte,V6t=200;function U6t(t,e){var n=this.__data__;if(n instanceof F6t){var r=n.__data__;if(!X6t||r.length<V6t-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new D6t(r)}return n.set(t,e),this.size=n.size,this}var W6t=U6t,Y6t=GV,B6t=$8t,Z6t=J8t,Q6t=q8t,K6t=tLt,H6t=W6t;function zS(t){var e=this.__data__=new Y6t(t);this.size=e.size}zS.prototype.clear=B6t;zS.prototype.delete=Z6t;zS.prototype.get=Q6t;zS.prototype.has=K6t;zS.prototype.set=H6t;var WOe=zS,G6t="__lodash_hash_undefined__";function $6t(t){return this.__data__.set(t,G6t),this}var z6t=$6t;function J6t(t){return this.__data__.has(t)}var j6t=J6t,q6t=gte,eTt=z6t,tTt=j6t;function aD(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new q6t;++e<n;)this.add(t[e])}aD.prototype.add=aD.prototype.push=eTt;aD.prototype.has=tTt;var nTt=aD;function rTt(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var aTt=rTt;function iTt(t,e){return t.has(e)}var oTt=iTt,sTt=nTt,lTt=aTt,cTt=oTt,uTt=1,fTt=2;function dTt(t,e,n,r,a,i){var o=n&uTt,s=t.length,l=e.length;if(s!=l&&!(o&&l>s))return!1;var c=i.get(t),u=i.get(e);if(c&&u)return c==e&&u==t;var f=-1,d=!0,h=n&fTt?new sTt:void 0;for(i.set(t,e),i.set(e,t);++f<s;){var p=t[f],v=e[f];if(r)var g=o?r(v,p,f,e,t,i):r(p,v,f,t,e,i);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!lTt(e,function(y,m){if(!cTt(h,m)&&(p===y||a(p,y,n,r,i)))return h.push(m)})){d=!1;break}}else if(!(p===v||a(p,v,n,r,i))){d=!1;break}}return i.delete(t),i.delete(e),d}var YOe=dTt,hTt=Fh,pTt=hTt.Uint8Array,vTt=pTt;function gTt(t){var e=-1,n=Array(t.size);return t.forEach(function(r,a){n[++e]=[a,r]}),n}var mTt=gTt;function yTt(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var ATt=yTt,xRe=QV,SRe=vTt,RTt=DOe,bTt=YOe,xTt=mTt,STt=ATt,MTt=1,_Tt=2,wTt="[object Boolean]",LTt="[object Date]",TTt="[object Error]",OTt="[object Map]",PTt="[object Number]",CTt="[object RegExp]",NTt="[object Set]",ITt="[object String]",kTt="[object Symbol]",ETt="[object ArrayBuffer]",FTt="[object DataView]",MRe=xRe?xRe.prototype:void 0,KH=MRe?MRe.valueOf:void 0;function XTt(t,e,n,r,a,i,o){switch(n){case FTt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ETt:return!(t.byteLength!=e.byteLength||!i(new SRe(t),new SRe(e)));case wTt:case LTt:case PTt:return RTt(+t,+e);case TTt:return t.name==e.name&&t.message==e.message;case CTt:case ITt:return t==e+"";case OTt:var s=xTt;case NTt:var l=r&MTt;if(s||(s=STt),t.size!=e.size&&!l)return!1;var c=o.get(t);if(c)return c==e;r|=_Tt,o.set(t,e);var u=bTt(s(t),s(e),r,a,i,o);return o.delete(t),u;case kTt:if(KH)return KH.call(t)==KH.call(e)}return!1}var DTt=XTt;function VTt(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t}var UTt=VTt,WTt=Array.isArray,vg=WTt,YTt=UTt,BTt=vg;function ZTt(t,e,n){var r=e(t);return BTt(t)?r:YTt(r,n(t))}var QTt=ZTt;function KTt(t,e){for(var n=-1,r=t==null?0:t.length,a=0,i=[];++n<r;){var o=t[n];e(o,n,t)&&(i[a++]=o)}return i}var HTt=KTt;function GTt(){return[]}var $Tt=GTt,zTt=HTt,JTt=$Tt,jTt=Object.prototype,qTt=jTt.propertyIsEnumerable,_Re=Object.getOwnPropertySymbols,eOt=_Re?function(t){return t==null?[]:(t=Object(t),zTt(_Re(t),function(e){return qTt.call(t,e)}))}:JTt,tOt=eOt;function nOt(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var rOt=nOt,aOt=H8,iOt=G8,oOt="[object Arguments]";function sOt(t){return iOt(t)&&aOt(t)==oOt}var lOt=sOt,wRe=lOt,cOt=G8,BOe=Object.prototype,uOt=BOe.hasOwnProperty,fOt=BOe.propertyIsEnumerable,dOt=wRe(function(){return arguments}())?wRe:function(t){return cOt(t)&&uOt.call(t,"callee")&&!fOt.call(t,"callee")},ZOe=dOt,iD={exports:{}};function hOt(){return!1}var pOt=hOt;iD.exports;(function(t,e){var n=Fh,r=pOt,a=e&&!e.nodeType&&e,i=a&&!0&&t&&!t.nodeType&&t,o=i&&i.exports===a,s=o?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;t.exports=c})(iD,iD.exports);var QOe=iD.exports,vOt=9007199254740991,gOt=/^(?:0|[1-9]\d*)$/;function mOt(t,e){var n=typeof t;return e=e??vOt,!!e&&(n=="number"||n!="symbol"&&gOt.test(t))&&t>-1&&t%1==0&&t<e}var KOe=mOt,yOt=9007199254740991;function AOt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=yOt}var mte=AOt,ROt=H8,bOt=mte,xOt=G8,SOt="[object Arguments]",MOt="[object Array]",_Ot="[object Boolean]",wOt="[object Date]",LOt="[object Error]",TOt="[object Function]",OOt="[object Map]",POt="[object Number]",COt="[object Object]",NOt="[object RegExp]",IOt="[object Set]",kOt="[object String]",EOt="[object WeakMap]",FOt="[object ArrayBuffer]",XOt="[object DataView]",DOt="[object Float32Array]",VOt="[object Float64Array]",UOt="[object Int8Array]",WOt="[object Int16Array]",YOt="[object Int32Array]",BOt="[object Uint8Array]",ZOt="[object Uint8ClampedArray]",QOt="[object Uint16Array]",KOt="[object Uint32Array]",wa={};wa[DOt]=wa[VOt]=wa[UOt]=wa[WOt]=wa[YOt]=wa[BOt]=wa[ZOt]=wa[QOt]=wa[KOt]=!0;wa[SOt]=wa[MOt]=wa[FOt]=wa[_Ot]=wa[XOt]=wa[wOt]=wa[LOt]=wa[TOt]=wa[OOt]=wa[POt]=wa[COt]=wa[NOt]=wa[IOt]=wa[kOt]=wa[EOt]=!1;function HOt(t){return xOt(t)&&bOt(t.length)&&!!wa[ROt(t)]}var GOt=HOt;function $Ot(t){return function(e){return t(e)}}var zOt=$Ot,oD={exports:{}};oD.exports;(function(t,e){var n=kOe,r=e&&!e.nodeType&&e,a=r&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();t.exports=s})(oD,oD.exports);var JOt=oD.exports,jOt=GOt,qOt=zOt,LRe=JOt,TRe=LRe&&LRe.isTypedArray,ePt=TRe?qOt(TRe):jOt,HOe=ePt,tPt=rOt,nPt=ZOe,rPt=vg,aPt=QOe,iPt=KOe,oPt=HOe,sPt=Object.prototype,lPt=sPt.hasOwnProperty;function cPt(t,e){var n=rPt(t),r=!n&&nPt(t),a=!n&&!r&&aPt(t),i=!n&&!r&&!a&&oPt(t),o=n||r||a||i,s=o?tPt(t.length,String):[],l=s.length;for(var c in t)(e||lPt.call(t,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||iPt(c,l)))&&s.push(c);return s}var uPt=cPt,fPt=Object.prototype;function dPt(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||fPt;return t===n}var hPt=dPt;function pPt(t,e){return function(n){return t(e(n))}}var vPt=pPt,gPt=vPt,mPt=gPt(Object.keys,Object),yPt=mPt,APt=hPt,RPt=yPt,bPt=Object.prototype,xPt=bPt.hasOwnProperty;function SPt(t){if(!APt(t))return RPt(t);var e=[];for(var n in Object(t))xPt.call(t,n)&&n!="constructor"&&e.push(n);return e}var MPt=SPt,_Pt=VOe,wPt=mte;function LPt(t){return t!=null&&wPt(t.length)&&!_Pt(t)}var TPt=LPt,OPt=uPt,PPt=MPt,CPt=TPt;function NPt(t){return CPt(t)?OPt(t):PPt(t)}var GOe=NPt,IPt=QTt,kPt=tOt,EPt=GOe;function FPt(t){return IPt(t,EPt,kPt)}var XPt=FPt,ORe=XPt,DPt=1,VPt=Object.prototype,UPt=VPt.hasOwnProperty;function WPt(t,e,n,r,a,i){var o=n&DPt,s=ORe(t),l=s.length,c=ORe(e),u=c.length;if(l!=u&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in e:UPt.call(e,d)))return!1}var h=i.get(t),p=i.get(e);if(h&&p)return h==e&&p==t;var v=!0;i.set(t,e),i.set(e,t);for(var g=o;++f<l;){d=s[f];var y=t[d],m=e[d];if(r)var R=o?r(m,y,d,e,t,i):r(y,m,d,t,e,i);if(!(R===void 0?y===m||a(y,m,n,r,i):R)){v=!1;break}g||(g=d=="constructor")}if(v&&!g){var A=t.constructor,x=e.constructor;A!=x&&"constructor"in t&&"constructor"in e&&!(typeof A=="function"&&A instanceof A&&typeof x=="function"&&x instanceof x)&&(v=!1)}return i.delete(t),i.delete(e),v}var YPt=WPt,BPt=HS,ZPt=Fh,QPt=BPt(ZPt,"DataView"),KPt=QPt,HPt=HS,GPt=Fh,$Pt=HPt(GPt,"Promise"),zPt=$Pt,JPt=HS,jPt=Fh,qPt=JPt(jPt,"Set"),eCt=qPt,tCt=HS,nCt=Fh,rCt=tCt(nCt,"WeakMap"),aCt=rCt,CJ=KPt,NJ=vte,IJ=zPt,kJ=eCt,EJ=aCt,$Oe=H8,JS=UOe,PRe="[object Map]",iCt="[object Object]",CRe="[object Promise]",NRe="[object Set]",IRe="[object WeakMap]",kRe="[object DataView]",oCt=JS(CJ),sCt=JS(NJ),lCt=JS(IJ),cCt=JS(kJ),uCt=JS(EJ),M2=$Oe;(CJ&&M2(new CJ(new ArrayBuffer(1)))!=kRe||NJ&&M2(new NJ)!=PRe||IJ&&M2(IJ.resolve())!=CRe||kJ&&M2(new kJ)!=NRe||EJ&&M2(new EJ)!=IRe)&&(M2=function(t){var e=$Oe(t),n=e==iCt?t.constructor:void 0,r=n?JS(n):"";if(r)switch(r){case oCt:return kRe;case sCt:return PRe;case lCt:return CRe;case cCt:return NRe;case uCt:return IRe}return e});var fCt=M2,HH=WOe,dCt=YOe,hCt=DTt,pCt=YPt,ERe=fCt,FRe=vg,XRe=QOe,vCt=HOe,gCt=1,DRe="[object Arguments]",VRe="[object Array]",bE="[object Object]",mCt=Object.prototype,URe=mCt.hasOwnProperty;function yCt(t,e,n,r,a,i){var o=FRe(t),s=FRe(e),l=o?VRe:ERe(t),c=s?VRe:ERe(e);l=l==DRe?bE:l,c=c==DRe?bE:c;var u=l==bE,f=c==bE,d=l==c;if(d&&XRe(t)){if(!XRe(e))return!1;o=!0,u=!1}if(d&&!u)return i||(i=new HH),o||vCt(t)?dCt(t,e,n,r,a,i):hCt(t,e,l,n,r,a,i);if(!(n&gCt)){var h=u&&URe.call(t,"__wrapped__"),p=f&&URe.call(e,"__wrapped__");if(h||p){var v=h?t.value():t,g=p?e.value():e;return i||(i=new HH),a(v,g,n,r,i)}}return d?(i||(i=new HH),pCt(t,e,n,r,a,i)):!1}var ACt=yCt,RCt=ACt,WRe=G8;function zOe(t,e,n,r,a){return t===e?!0:t==null||e==null||!WRe(t)&&!WRe(e)?t!==t&&e!==e:RCt(t,e,n,r,zOe,a)}var JOe=zOe,bCt=WOe,xCt=JOe,SCt=1,MCt=2;function _Ct(t,e,n,r){var a=n.length,i=a,o=!r;if(t==null)return!i;for(t=Object(t);a--;){var s=n[a];if(o&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++a<i;){s=n[a];var l=s[0],c=t[l],u=s[1];if(o&&s[2]){if(c===void 0&&!(l in t))return!1}else{var f=new bCt;if(r)var d=r(c,u,l,t,e,f);if(!(d===void 0?xCt(u,c,SCt|MCt,r,f):d))return!1}}return!0}var wCt=_Ct,LCt=QS;function TCt(t){return t===t&&!LCt(t)}var jOe=TCt,OCt=jOe,PCt=GOe;function CCt(t){for(var e=PCt(t),n=e.length;n--;){var r=e[n],a=t[r];e[n]=[r,a,OCt(a)]}return e}var NCt=CCt;function ICt(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var qOe=ICt,kCt=wCt,ECt=NCt,FCt=qOe;function XCt(t){var e=ECt(t);return e.length==1&&e[0][2]?FCt(e[0][0],e[0][1]):function(n){return n===t||kCt(n,t,e)}}var DCt=XCt,VCt=vg,UCt=KV,WCt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YCt=/^\w*$/;function BCt(t,e){if(VCt(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||UCt(t)?!0:YCt.test(t)||!WCt.test(t)||e!=null&&t in Object(e)}var yte=BCt,ePe=gte,ZCt="Expected a function";function Ate(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(ZCt);var n=function(){var r=arguments,a=e?e.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=t.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Ate.Cache||ePe),n}Ate.Cache=ePe;var QCt=Ate,KCt=QCt,HCt=500;function GCt(t){var e=KCt(t,function(r){return n.size===HCt&&n.clear(),r}),n=e.cache;return e}var $Ct=GCt,zCt=$Ct,JCt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jCt=/\\(\\)?/g,qCt=zCt(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(JCt,function(n,r,a,i){e.push(a?i.replace(jCt,"$1"):r||n)}),e}),e7t=qCt;function t7t(t,e){for(var n=-1,r=t==null?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}var n7t=t7t,YRe=QV,r7t=n7t,a7t=vg,i7t=KV,BRe=YRe?YRe.prototype:void 0,ZRe=BRe?BRe.toString:void 0;function tPe(t){if(typeof t=="string")return t;if(a7t(t))return r7t(t,tPe)+"";if(i7t(t))return ZRe?ZRe.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var o7t=tPe,s7t=o7t;function l7t(t){return t==null?"":s7t(t)}var c7t=l7t,u7t=vg,f7t=yte,d7t=e7t,h7t=c7t;function p7t(t,e){return u7t(t)?t:f7t(t,e)?[t]:d7t(h7t(t))}var nPe=p7t,v7t=KV;function g7t(t){if(typeof t=="string"||v7t(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var JV=g7t,m7t=nPe,y7t=JV;function A7t(t,e){e=m7t(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[y7t(e[n++])];return n&&n==r?t:void 0}var rPe=A7t,R7t=rPe;function b7t(t,e,n){var r=t==null?void 0:R7t(t,e);return r===void 0?n:r}var x7t=b7t;function S7t(t,e){return t!=null&&e in Object(t)}var M7t=S7t,_7t=nPe,w7t=ZOe,L7t=vg,T7t=KOe,O7t=mte,P7t=JV;function C7t(t,e,n){e=_7t(e,t);for(var r=-1,a=e.length,i=!1;++r<a;){var o=P7t(e[r]);if(!(i=t!=null&&n(t,o)))break;t=t[o]}return i||++r!=a?i:(a=t==null?0:t.length,!!a&&O7t(a)&&T7t(o,a)&&(L7t(t)||w7t(t)))}var N7t=C7t,I7t=M7t,k7t=N7t;function E7t(t,e){return t!=null&&k7t(t,e,I7t)}var F7t=E7t,X7t=JOe,D7t=x7t,V7t=F7t,U7t=yte,W7t=jOe,Y7t=qOe,B7t=JV,Z7t=1,Q7t=2;function K7t(t,e){return U7t(t)&&W7t(e)?Y7t(B7t(t),e):function(n){var r=D7t(n,t);return r===void 0&&r===e?V7t(n,t):X7t(e,r,Z7t|Q7t)}}var H7t=K7t;function G7t(t){return t}var $7t=G7t;function z7t(t){return function(e){return e==null?void 0:e[t]}}var J7t=z7t,j7t=rPe;function q7t(t){return function(e){return j7t(e,t)}}var eNt=q7t,tNt=J7t,nNt=eNt,rNt=yte,aNt=JV;function iNt(t){return rNt(t)?tNt(aNt(t)):nNt(t)}var oNt=iNt,sNt=DCt,lNt=H7t,cNt=$7t,uNt=vg,fNt=oNt;function dNt(t){return typeof t=="function"?t:t==null?cNt:typeof t=="object"?uNt(t)?lNt(t[0],t[1]):sNt(t):fNt(t)}var hNt=dNt,pNt=FOe,QRe=1/0,vNt=17976931348623157e292;function gNt(t){if(!t)return t===0?t:0;if(t=pNt(t),t===QRe||t===-QRe){var e=t<0?-1:1;return e*vNt}return t===t?t:0}var mNt=gNt,yNt=mNt;function ANt(t){var e=yNt(t),n=e%1;return e===e?n?e-n:e:0}var RNt=ANt,bNt=x8t,xNt=hNt,SNt=RNt,MNt=Math.max;function _Nt(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var a=n==null?0:SNt(n);return a<0&&(a=MNt(r+a,0)),bNt(t,xNt(e),a)}var wNt=_Nt;const KRe=ng(wNt),LNt=tt({__name:"ImageWaterfallViewer",props:{list:{},columnWidth:{default:200},columnSpacing:{default:10}},emits:["scrollToBottom"],setup(t,{emit:e}){const n=t,r=e,a=we(-1),i=we(200),o=we(0),s=we(0),l=we([]),c=we([]),u=un("waterfallWrapRef"),f=un("waterfallRef"),d=we(),h=(x,M)=>{if(!x){setTimeout(M,0);return}const S=new Image;S.src=x,S.onerror=S.onload=()=>{M()}};qt(()=>n.list,()=>{y()});const p=()=>{if(!f.value)return!1;const x=f.value.clientWidth;return x===a.value?!1:(a.value=x,c.value=[],s.value=Math.max(Math.floor((x+n.columnSpacing)/(n.columnWidth+n.columnSpacing)),1),s.value===1?o.value=x:o.value=(x+n.columnSpacing)/s.value-n.columnSpacing,!0)},v=x=>{if(!(!p()&&!x)){for(const S of l.value)S.style.visibility="hidden";qr(()=>{c.value=[];for(const S of l.value){const w=f.value.querySelector(`.item-${S.id}`);S.prepared&&w&&R(w,S)}})}},g=R8t(()=>{v()},300,{leading:!1,trailing:!0}),y=()=>{const x=l.value.map(S=>S.data);for(const S of n.list)KRe(x,S)===-1&&m(S);let M=!1;for(let S=x.length-1;S>=0;S--)KRe(n.list,x[S])===-1&&(M=!0,l.value.splice(S,1));M&&v(!0)},m=x=>{const M={id:x.id,style:{position:"relative",top:0,left:0,width:o.value,visibility:"hidden"},prepared:!1,data:x};l.value.push(M),qr(()=>{const S=f.value.querySelector(`.item-${M.id}`);if(!S)return;const w=S.querySelector("img"),_=(w==null?void 0:w.getAttribute("src"))||"";h(_,()=>{M.prepared=!0,S.classList.add("animation"),setTimeout(()=>{S.classList.remove("animation")},1e3),R(S,M)})})},R=(x,M)=>{if(!x||!M)return;const S=x.clientHeight;let w,_=0;c.value.length<s.value?(w=c.value.length,c.value.push(S)):(_=Math.min(...c.value),w=c.value.indexOf(_),_=_+n.columnSpacing),M.style.position="absolute",M.style.visibility="visible",M.style.top=Math.round(_)+"px",M.style.left=Math.round(w*(o.value+n.columnSpacing))+"px",c.value[w]=_+S,i.value=Math.max(...c.value)+n.columnSpacing},A=p8t(function(){if(!u.value)return;const x=u.value.scrollTop,M=u.value.scrollHeight,S=u.value.clientHeight;M-(S+x)<Math.abs(5)&&l.value.length&&l.value.length===n.list.length&&l.value.every(T=>T.prepared)&&r("scrollToBottom")},500,{trailing:!0});return mn(()=>{c.value=[],p(),y(),f.value&&(d.value=new ResizeObserver(g),d.value.observe(f.value))}),or(()=>{d.value&&f.value&&d.value.unobserve(f.value)}),(x,M)=>(V(),H("div",{class:"image-waterfall-viewer",ref_key:"waterfallWrapRef",ref:u,onScroll:M[0]||(M[0]=S=>te(A)())},[I("div",{class:"image-waterfall-content",ref_key:"waterfallRef",ref:f,style:We({height:i.value+"px"})},[(V(!0),H(qe,null,bt(l.value,S=>(V(),H("div",{class:mt(["waterfall-item",`item-${S.id}`]),key:S.id,style:We({position:S.style.position,visibility:S.style.visibility,width:Math.round(o.value)+"px",top:S.style.top,left:S.style.left})},[Hr(x.$slots,"default",uj({ref_for:!0},S.data),void 0,!0)],6))),128))],4)],544))}}),TNt=lt(LNt,[["__scopeId","data-v-e7a6ea66"]]),ONt={class:"container"},PNt={class:"tools"},CNt={class:"search-orientation"},NNt={class:"img-item"},INt=["src"],kNt={class:"mask"},ENt=tt({__name:"ImageLibPanel",setup(t){const e=Wt(),{createImageElement:n}=M0(),r=we([]),a=we(!1),i=we(!1),o=we(""),s=we(1),l=we(50),c=we(0),u=we(500),f=we("all"),d=[{key:"all",label:"全部"},{key:"landscape",label:"横向"},{key:"portrait",label:"纵向"},{key:"square",label:"方形"}],h={all:"全部",landscape:"横向",portrait:"纵向",square:"方形"},p=()=>{e.setImageLibPanelState(!1)};mn(()=>{v("风景")});const v=m=>{const R=m||o.value;if(!R)return Dn.error("请输入搜索关键词");a.value=!0,s.value=1,YF.searchImage({query:R,per_page:l.value,page:s.value,orientation:f.value}).then(A=>{r.value=A.data,c.value=A.total,a.value=!1}).catch(()=>{a.value=!1})},g=m=>{f.value=m,o.value&&v()},y=()=>{a.value||s.value*l.value>=Math.min(u.value,c.value)||(a.value=!0,s.value+=1,YF.searchImage({query:o.value||"风景",per_page:l.value,page:s.value,orientation:f.value}).then(R=>{r.value=[...r.value,...R.data],a.value=!1}).catch(()=>{a.value=!1}))};return(m,R)=>{const A=Tu,x=gTe,M=pr("loading");return V(),Ue(pg,{class:"image-lib-panel",width:360,height:580,left:-270,top:90,contentStyle:{overflow:"hidden",display:"flex",flexDirection:"column"},title:"图片库(来自 pexels.com)",onClose:R[5]||(R[5]=S=>p())},{default:pe(()=>[yt((V(),H("div",ONt,[I("div",PNt,[U(A0,{class:"input",value:o.value,"onUpdate:value":R[2]||(R[2]=S=>o.value=S),placeholder:"搜索图片",onEnter:R[3]||(R[3]=S=>v())},{prefix:pe(()=>[U(sn,{class:"more-icon",trigger:"click",value:i.value,"onUpdate:value":R[0]||(R[0]=S=>i.value=S)},{content:pe(()=>[(V(),H(qe,null,bt(d,S=>U(ti,{class:mt(["popover-menu-item",{active:S.key===f.value}]),center:"",key:S.key,onClick:w=>{g(S.key),i.value=!1}},{default:pe(()=>[rt(Vt(S.label),1)]),_:2},1032,["class","onClick"])),64))]),default:pe(()=>[I("div",CNt,[rt(Vt(h[f.value])+" ",1),U(A,{style:{"margin-left":"4px"}})])]),_:1},8,["value"])]),suffix:pe(()=>[I("div",{class:"search-btn",onClick:R[1]||(R[1]=S=>v())},[U(x)])]),_:1},8,["value"])]),U(TNt,{class:"imgs-wrap",list:r.value,columnSpacing:5,columnWidth:160,onScrollToBottom:R[4]||(R[4]=S=>y())},{default:pe(S=>[I("div",NNt,[I("img",{src:S.src},null,8,INt),I("div",kNt,[U(Mt,{type:"primary",size:"small",onClick:w=>te(n)(S.src)},{default:pe(()=>R[6]||(R[6]=[rt("插入")])),_:2,__:[6]},1032,["onClick"])])])]),_:1},8,["list"])])),[[M,{state:a.value,text:"加载中..."}]])]),_:1})}}}),FNt=lt(ENt,[["__scopeId","data-v-68588ee3"]]),XNt={class:"pptist-editor"},DNt={class:"layout-content"},VNt={class:"layout-content-center"},UNt=tt({__name:"index",setup(t){const e=Wt(),{dialogForExport:n,showSelectPanel:r,showSearchPanel:a,showNotesPanel:i,showSymbolPanel:o,showMarkupPanel:s,showImageLibPanel:l}=nt(e),c=()=>e.setDialogForExport(""),u=we(40);return TWe(),AQe(),(f,d)=>(V(),H(qe,null,[I("div",XNt,[U(dGe,{class:"layout-header"}),I("div",DNt,[U(Dgt,{class:"layout-content-left"}),I("div",VNt,[U(P1t,{class:"center-top"}),U(cpt,{class:"center-body",style:We({height:`calc(100% - ${u.value+40}px)`})},null,8,["style"]),U(X3t,{height:u.value,"onUpdate:height":d[0]||(d[0]=h=>u.value=h),class:"center-bottom",style:We({height:`${u.value}px`})},null,8,["height","style"])]),U(C3t,{class:"layout-content-right"})])]),te(r)?(V(),Ue(x_t,{key:0})):at("",!0),te(a)?(V(),Ue(L_t,{key:1})):at("",!0),te(i)?(V(),Ue(swt,{key:2})):at("",!0),te(s)?(V(),Ue(Rwt,{key:3})):at("",!0),te(o)?(V(),Ue(hwt,{key:4})):at("",!0),te(l)?(V(),Ue(FNt,{key:5})):at("",!0),U(j1,{visible:!!te(n),width:680,onClosed:d[1]||(d[1]=h=>c())},{default:pe(()=>[U(K5t)]),_:1},8,["visible"])],64))}}),WNt=lt(UNt,[["__scopeId","data-v-42925dd2"]]),YNt="pptist-audience-sync",jV=()=>{const t=It(),{slides:e,slideIndex:n,formatedAnimations:r}=nt(t),a=new URLSearchParams(window.location.search).get("mode")==="audience";let i=null;a||(i=new BroadcastChannel(YNt),i.onmessage=({data:K})=>{K.type==="REQUEST_STATE"&&i.postMessage({type:"INIT_STATE",slideIndex:n.value,animationIndex:o.value,slides:JSON.parse(JSON.stringify(e.value))})});const o=we(0),s=we(!1),l=we(n.value),c=()=>{if(s.value)return;const{animations:K,autoNext:ne}=r.value[o.value];o.value+=1,s.value=!0;let Z=0;for(const $ of K){const G=document.querySelector(`#screen-element-${$.elId} [class^=base-element-]`);if(!G){Z+=1;continue}const ee=`${Ns}${$.effect}`;G.style.removeProperty("--animate-duration");for(const B of G.classList)B.indexOf(Ns)!==-1&&G.classList.remove(B,`${Ns}animated`);G.style.setProperty("--animate-duration",`${$.duration}ms`),G.classList.add(ee,`${Ns}animated`);const ce=()=>{$.type!=="out"&&(G.style.removeProperty("--animate-duration"),G.classList.remove(ee,`${Ns}animated`)),Z+=1,Z===K.length&&(s.value=!1,ne&&c())};G.addEventListener("animationend",ce,{once:!0})}};mn(()=>{const K=r.value[0];K&&K.animations.length&&K.animations.every(Z=>Z.trigger==="auto"||Z.trigger==="meantime")&&c()});const u=K=>{for(let ne=0;ne<K&&ne<r.value.length;ne++){const{animations:Z}=r.value[ne];for(const $ of Z){if($.type!=="out")continue;const G=document.querySelector(`#screen-element-${$.elId} [class^=base-element-]`);if(!G)continue;const ee=`${Ns}${$.effect}`;G.style.setProperty("--animate-duration","0ms"),G.classList.add(ee,`${Ns}animated`)}}},f=()=>{o.value-=1;const{animations:K}=r.value[o.value];for(const ne of K){const Z=document.querySelector(`#screen-element-${ne.elId} [class^=base-element-]`);if(Z){Z.style.removeProperty("--animate-duration");for(const $ of Z.classList)$.indexOf(Ns)!==-1&&Z.classList.remove($,`${Ns}animated`)}}K.every(ne=>ne.type==="attention")&&y(!1)},d=we(0),h=()=>{d.value&&(clearInterval(d.value),d.value=0)};or(h);const p=we(!1),v=K=>{p.value=K},g=Vr.throttle(function(K){Dn.success(K)},1e3,{leading:!0,trailing:!1}),y=(K=!0)=>{K&&(i==null||i.postMessage({type:"EXEC_PREV"})),r.value.length&&o.value>0?f():n.value>0?(t.updateSlideIndex(n.value-1),n.value<l.value?(o.value=0,l.value=n.value):o.value=r.value.length):p.value?P(e.value.length-1):g("已经是第一页了"),s.value=!1},m=()=>{i==null||i.postMessage({type:"EXEC_NEXT"}),r.value.length&&o.value<r.value.length?c():n.value<e.value.length-1?(t.updateSlideIndex(n.value+1),o.value=0,s.value=!1):(p.value?P(0):(g("已经是最后一页了"),h()),s.value=!1)},R=we(2500),A=()=>{h(),Dn.success("开始自动放映"),d.value=setInterval(m,R.value)},x=K=>{h(),R.value=K,A()},M=Vr.throttle(function(K){K.deltaY<0?y():K.deltaY>0&&m()},500,{leading:!0,trailing:!1}),S=we(null),w=K=>{S.value={x:K.changedTouches[0].pageX,y:K.changedTouches[0].pageY}},_=K=>{if(!S.value)return;const ne=Math.abs(S.value.x-K.changedTouches[0].pageX),Z=K.changedTouches[0].pageY-S.value.y;Math.abs(Z)>ne&&Math.abs(Z)>50&&(S.value=null,Z>0?y():m())},T=Vr.throttle(function(K){const ne=K.key.toUpperCase();ne===Ht.UP||ne===Ht.LEFT||ne===Ht.PAGEUP?y():(ne===Ht.DOWN||ne===Ht.RIGHT||ne===Ht.SPACE||ne===Ht.ENTER||ne===Ht.PAGEDOWN)&&m()},500,{leading:!0,trailing:!1});mn(()=>{a||document.addEventListener("keydown",T)}),or(()=>{a||document.removeEventListener("keydown",T),i==null||i.close()});const O=()=>{t.updateSlideIndex(n.value-1),o.value=0},N=()=>{t.updateSlideIndex(n.value+1),o.value=0},P=K=>{i==null||i.postMessage({type:"TURN_TO_INDEX",index:K}),t.updateSlideIndex(K),o.value=0},C=K=>{const ne=e.value.findIndex(Z=>Z.id===K);ne!==-1&&(i==null||i.postMessage({type:"TURN_TO_ID",id:K}),t.updateSlideIndex(ne),o.value=0)},E=we(!1),F=K=>{const ne=document.querySelector(".screen-slide-list .slide-item.current .slide-content");if(!ne)return;const Z=ne.getBoundingClientRect(),$=(K.clientX-Z.left)/Z.width,G=(K.clientY-Z.top)/Z.height;i==null||i.postMessage({type:"LASER_PEN_MOVE",x:$,y:G})},Y=Vr.throttle(F,30,{leading:!0,trailing:!0});return qt(E,K=>{K?document.addEventListener("mousemove",Y):(document.removeEventListener("mousemove",Y),i==null||i.postMessage({type:"LASER_PEN_OFF"}))}),{autoPlayTimer:d,autoPlayInterval:R,setAutoPlayInterval:x,autoPlay:A,closeAutoPlay:h,loopPlay:p,setLoopPlay:v,mousewheelListener:M,touchStartListener:w,touchEndListener:_,turnPrevSlide:O,turnNextSlide:N,turnSlideToIndex:P,turnSlideToId:C,execPrev:y,execNext:m,animationIndex:o,restoreAnimationState:u,laserPen:E,broadcastExit:()=>{i==null||i.postMessage({type:"EXIT"})}}},Rte=t=>{const e=It(),{viewportRatio:n}=nt(e),r=we(0),a=we(0),i=()=>{const o=(t==null?void 0:t.value)||document.body,s=o.clientWidth,l=o.clientHeight;let c,u;l/s===n.value?(c=s,u=l):l/s>n.value?(c=s,u=s*n.value):(c=l/n.value,u=l),r.value=c,a.value=u};return mn(()=>{i(),window.addEventListener("resize",i)}),or(()=>{window.removeEventListener("resize",i)}),{slideWidth:r,slideHeight:a}},aPe=()=>{const{slides:t}=nt(It());return{slidesWithTurningMode:Fe(()=>t.value.map(n=>{let r=n.turningMode;if(r||(r="slideY"),r==="random"){const a=vOe.filter(i=>!["random","no"].includes(i.value)).map(i=>i.value);r=a[Math.floor(Math.random()*a.length)]}return{...n,turningMode:r}}))}},BNt={class:"element-content"},ZNt=tt({__name:"ScreenVideoElement",props:{elementInfo:{}},setup(t){const{currentSlide:e}=nt(It()),n=kf(_8)||we(1),r=kf(cq)||we(""),a=Fe(()=>e.value.id===r.value);return(i,o)=>(V(),H("div",{class:"base-element-video screen-element-video",style:We({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${i.elementInfo.rotate}deg)`})},[I("div",BNt,[a.value?(V(),Ue(nTe,{key:0,width:i.elementInfo.width,height:i.elementInfo.height,src:i.elementInfo.src,poster:i.elementInfo.poster,autoplay:i.elementInfo.autoplay,scale:te(n)},null,8,["width","height","src","poster","autoplay","scale"])):at("",!0)])],4)],4))}}),QNt=lt(ZNt,[["__scopeId","data-v-bef75a85"]]),KNt={class:"element-content"},HNt=tt({__name:"ScreenAudioElement",props:{elementInfo:{}},setup(t){const e=t,{viewportRatio:n,currentSlide:r,viewportSize:a}=nt(It()),i=kf(_8)||we(1),o=kf(cq)||we(""),s=Fe(()=>r.value.id===o.value),l=Fe(()=>Math.min(e.elementInfo.width,e.elementInfo.height)+"px"),c=Fe(()=>{const d=a.value,h=a.value*n.value,p=280/i.value,v=50/i.value,g=e.elementInfo.width,y=e.elementInfo.height,m=e.elementInfo.left,R=e.elementInfo.top;let A=0,x=y;return m+p>=d&&(A=g-p),R+y+v>=h&&(x=-v),{left:A+"px",top:x+"px"}}),u=un("audioPlayerRef"),f=()=>{u.value&&u.value.toggle()};return(d,h)=>{const p=U8;return V(),H("div",{class:"base-element-audio screen-element-audio",style:We({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[I("div",{class:"rotate-wrapper",style:We({transform:`rotate(${d.elementInfo.rotate}deg)`})},[I("div",KNt,[U(p,{class:"audio-icon",style:We({fontSize:l.value,color:d.elementInfo.color}),onClick:h[0]||(h[0]=v=>f())},null,8,["style"]),s.value?(V(),Ue(aTe,{key:0,class:"audio-player",ref_key:"audioPlayerRef",ref:u,style:We({...c.value}),src:d.elementInfo.src,loop:d.elementInfo.loop,autoplay:d.elementInfo.autoplay,scale:te(i)},null,8,["style","src","loop","autoplay","scale"])):at("",!0)])],4)],4)}}}),GNt=lt(HNt,[["__scopeId","data-v-4cd60c60"]]),$Nt=["id","title"],zNt=tt({__name:"ScreenElement",props:{elementInfo:{},elementIndex:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(t){const e=t,n=Fe(()=>({[vn.IMAGE]:lTe,[vn.TEXT]:cTe,[vn.SHAPE]:Vee,[vn.LINE]:uTe,[vn.CHART]:fTe,[vn.TABLE]:dTe,[vn.LATEX]:Uee,[vn.VIDEO]:QNt,[vn.AUDIO]:GNt})[e.elementInfo.type]||null),{formatedAnimations:r,theme:a}=nt(It()),i=Fe(()=>{const s=r.value.findIndex(c=>c.animations.map(f=>f.elId).includes(e.elementInfo.id));if(s===-1||s<e.animationIndex)return!1;const l=r.value[s].animations.find(c=>c.elId===e.elementInfo.id);return(l==null?void 0:l.type)==="in"}),o=s=>{if(s.target.tagName==="A"){e.manualExitFullscreen();return}const l=e.elementInfo.link;l&&(l.type==="web"?(e.manualExitFullscreen(),window.open(l.target)):l.type==="slide"&&e.turnSlideToId(l.target))};return(s,l)=>{var c;return V(),H("div",{class:mt(["screen-element",{link:s.elementInfo.link}]),id:`screen-element-${s.elementInfo.id}`,style:We({zIndex:s.elementIndex,color:te(a).fontColor,fontFamily:te(a).fontName,visibility:i.value?"hidden":"visible"}),title:((c=s.elementInfo.link)==null?void 0:c.target)||"",onClick:l[0]||(l[0]=u=>o(u))},[(V(),Ue(Eh(n.value),{elementInfo:s.elementInfo},null,8,["elementInfo"]))],14,$Nt)}}}),JNt=lt(zNt,[["__scopeId","data-v-038e634d"]]),jNt=tt({__name:"ScreenSlide",props:{slide:{},scale:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(t){const e=t,{viewportRatio:n,viewportSize:r}=nt(It()),a=Fe(()=>e.slide.background),{backgroundStyle:i}=PV(a),o=Fe(()=>e.slide.id);return yy(cq,o),(s,l)=>(V(),H("div",{class:"screen-slide",style:We({width:te(r)+"px",height:te(r)*te(n)+"px",transform:`scale(${s.scale})`})},[I("div",{class:"background",style:We({...te(i)})},null,4),(V(!0),H(qe,null,bt(s.slide.elements,(c,u)=>(V(),Ue(JNt,{key:c.id,elementInfo:c,elementIndex:u+1,animationIndex:s.animationIndex,turnSlideToId:s.turnSlideToId,manualExitFullscreen:s.manualExitFullscreen},null,8,["elementInfo","elementIndex","animationIndex","turnSlideToId","manualExitFullscreen"]))),128))],4))}}),qNt=lt(jNt,[["__scopeId","data-v-17d2a617"]]),eIt={class:"screen-slide-list"},tIt=tt({__name:"ScreenSlideList",props:{slideWidth:{},slideHeight:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(t){const e=t,{slideIndex:n,viewportSize:r}=nt(It()),{slidesWithTurningMode:a}=aPe(),i=Fe(()=>e.slideWidth/r.value);return yy(_8,i),(o,s)=>(V(),H("div",eIt,[(V(!0),H(qe,null,bt(te(a),(l,c)=>{var u;return V(),H("div",{class:mt(["slide-item",`turning-mode-${l.turningMode}`,{current:c===te(n),before:c<te(n),after:c>te(n),hide:(c===te(n)-1||c===te(n)+1)&&l.turningMode!==te(a)[te(n)].turningMode,last:c===te(n)-1,next:c===te(n)+1}]),key:l.id},[Math.abs(te(n)-c)<2||(u=l.animations)!=null&&u.length?(V(),H("div",{key:0,class:"slide-content",style:We({width:o.slideWidth+"px",height:o.slideHeight+"px"})},[U(qNt,{slide:l,scale:i.value,animationIndex:o.animationIndex,turnSlideToId:o.turnSlideToId,manualExitFullscreen:o.manualExitFullscreen},null,8,["slide","scale","animationIndex","turnSlideToId","manualExitFullscreen"])],4)):at("",!0)],2)}),128))]))}}),bte=lt(tIt,[["__scopeId","data-v-6e0546f6"]]),nIt={class:"audience-view"},rIt={key:0,class:"writing-board-overlay"},aIt={key:0,class:"blackboard"},iIt=["src"],oIt=tt({__name:"AudienceView",setup(t){const e=It(),{slideWidth:n,slideHeight:r}=Rte(),{execNext:a,execPrev:i,turnSlideToIndex:o,turnSlideToId:s,animationIndex:l,restoreAnimationState:c}=jV(),u=we(!1),f=we(!1),d=we(""),h=we(!1),p=we(0),v=we(0),g=new BroadcastChannel("pptist-audience-sync");return mn(()=>{g.postMessage({type:"REQUEST_STATE"}),g.postMessage({type:"REQUEST_WRITING_BOARD"}),g.onmessage=({data:y})=>{const m=y;m.type==="EXEC_NEXT"?a():m.type==="EXEC_PREV"?i():m.type==="TURN_TO_INDEX"&&m.index!==void 0?o(m.index):m.type==="TURN_TO_ID"&&m.id!==void 0?s(m.id):m.type==="INIT_STATE"&&m.slideIndex!==void 0?(m.slides&&e.setSlides(m.slides),o(m.slideIndex),m.animationIndex!==void 0&&(l.value=m.animationIndex,qr(()=>c(m.animationIndex)))):m.type==="WRITING_BOARD_UPDATE"?(u.value=!0,d.value=m.dataURL||"",f.value=m.blackboard||!1):m.type==="WRITING_BOARD_CLOSE"?(u.value=!1,d.value=""):m.type==="LASER_PEN_MOVE"&&m.x!==void 0&&m.y!==void 0?(h.value=!0,p.value=m.x,v.value=m.y):m.type==="LASER_PEN_OFF"?h.value=!1:m.type==="EXIT"&&window.close()}}),or(()=>{g.close()}),(y,m)=>(V(),H("div",nIt,[U(bte,{slideWidth:te(n),slideHeight:te(r),animationIndex:te(l),turnSlideToId:te(s),manualExitFullscreen:()=>{}},null,8,["slideWidth","slideHeight","animationIndex","turnSlideToId"]),u.value?(V(),H("div",rIt,[I("div",{class:"writing-board-content",style:We({width:te(n)+"px",height:te(r)+"px"})},[f.value?(V(),H("div",aIt)):at("",!0),d.value?(V(),H("img",{key:1,src:d.value},null,8,iIt)):at("",!0)],4)])):at("",!0),h.value?(V(),H("div",{key:1,class:"laser-pen",style:We({left:`calc(50% - ${te(n)/2}px + ${p.value*te(n)}px)`,top:`calc(50% - ${te(r)/2}px + ${v.value*te(r)}px)`})},null,4)):at("",!0)]))}}),sIt=lt(oIt,[["__scopeId","data-v-f51ffe08"]]),lIt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function cIt(t,e){return V(),H("svg",lIt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M14.5 8a19 19 0 0 0-4.75 3.84C6.794 15.146 5 19.49 5 24.246C5 34.603 13.507 43 24 43s19-8.397 19-18.754c0-4.757-1.794-9.1-4.75-12.406A19 19 0 0 0 33.5 8M24 4v20"},null,-1)]))}const iPe=vt({name:"icon-park-outline-power",render:cIt}),uIt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function fIt(t,e){return V(),H("svg",uIt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"m6 6l10 9.9m-10 26L16 32m26 9.9L32.1 32m9.8-26L32 15.9M33 6h9v9m0 18v9h-9m-18 0H6v-9m0-18V6h9"},null,-1)]))}const oPe=vt({name:"icon-park-outline-full-screen-one",render:fIt}),dIt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function hIt(t,e){return V(),H("svg",dIt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"m6 6l10 9.9m-10 26L16 32m26 9.9L32.1 32m9.8-26L32 15.9M32 7v9h9M16 7v9H7m9 25v-9H7m25 9v-9h8.9"},null,-1)]))}const sPe=vt({name:"icon-park-outline-off-screen-one",render:hIt}),pIt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function vIt(t,e){return V(),H("svg",pIt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M24 20a7 7 0 1 0 0-14a7 7 0 0 0 0 14M12 7.255A6.99 6.99 0 0 0 9 13a7 7 0 0 0 3.392 6M36 7.255A6.99 6.99 0 0 1 39 13a6.99 6.99 0 0 1-3 5.746M12 40v2h24v-2c0-3.727 0-5.591-.609-7.062a8 8 0 0 0-4.33-4.329C29.592 28 27.728 28 24 28s-5.591 0-7.061.609a8 8 0 0 0-4.33 4.33C12 34.409 12 36.273 12 40m32 2v-1.2c0-4.48 0-6.72-.872-8.432a8 8 0 0 0-3.496-3.496M4 42v-1.2c0-4.48 0-6.72.872-8.432a8 8 0 0 1 3.496-3.496"},null,-1)]))}const lPe=vt({name:"icon-park-outline-peoples-two",render:vIt}),gIt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function mIt(t,e){return V(),H("svg",gIt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[I("rect",{width:"40",height:"36",x:"4",y:"6",rx:"3"}),I("path",{d:"M4 14h40M20 24h16m-16 8h16m-24-8h2m-2 8h2"})],-1)]))}const cPe=vt({name:"icon-park-outline-list-view",render:mIt}),yIt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function AIt(t,e){return V(),H("svg",yIt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M24 44c9.389 0 17-7.611 17-17s-7.611-17-17-17S7 17.611 7 27s7.611 17 17 17Z"}),I("path",{"stroke-linecap":"round",d:"M18 4h12m-6 15v8m8 0h-8m0-23v4"})],-1)]))}const uPe=vt({name:"icon-park-outline-stopwatch-start",render:AIt}),RIt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function bIt(t,e){return V(),H("svg",RIt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"m20.1 8.1l4.243 4.243M30 4v6zm9.9 4.1l-4.243 4.243zM44 18h-6zm-4.1 9.9l-4.243-4.243zM30 32v-6zm-9.9-4.1l4.243-4.243zM16 18h6zm13.586.414L5.544 42.456"},null,-1)]))}const fPe=vt({name:"icon-park-outline-magic",render:bIt}),xIt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function SIt(t,e){return V(),H("svg",xIt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M5.325 43.5h8.485l31.113-31.113l-8.486-8.485L5.325 35.015z"}),I("path",{"stroke-linecap":"round",d:"m27.952 12.387l8.485 8.485"})],-1)]))}const qV=vt({name:"icon-park-outline-write",render:SIt}),MIt={class:"i-icon",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 48 48"};function _It(t,e){return V(),H("svg",MIt,e[0]||(e[0]=[I("path",{fill:"#ffffff",stroke:"#111111","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M24 43L42 24L24 5L24 17L6 17V31H24V43Z"},null,-1)]))}const wIt=vt({name:"custom-right",render:_It}),LIt={class:"i-icon",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 48 48"};function TIt(t,e){return V(),H("svg",LIt,e[0]||(e[0]=[I("path",{fill:"#ffffff",stroke:"#111111","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M24 5L6 24L24 43L24 31L42 31V17H24V5Z"},null,-1)]))}const OIt=vt({name:"custom-left",render:TIt}),dPe=()=>{const t=we(!0),e=we(!0),{exitScreening:n}=og(),r=()=>{t.value=EG(),!t.value&&e.value&&n(),e.value=!0};return mn(()=>{t.value=EG(),document.addEventListener("fullscreenchange",r),document.addEventListener("webkitfullscreenchange",r)}),or(()=>{document.removeEventListener("fullscreenchange",r),document.removeEventListener("webkitfullscreenchange",r)}),{fullscreenState:t,manualExitFullscreen:()=>{t.value&&(e.value=!1,U4e())}}},PIt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function CIt(t,e){return V(),H("svg",PIt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4S4 12.954 4 24s8.954 20 20 20Z"}),I("path",{"stroke-linecap":"round",d:"M32.492 24.5h-18m9-9l-9 9l9 9"})],-1)]))}const NIt=vt({name:"icon-park-outline-arrow-circle-left",render:CIt}),IIt={class:"slide-thumbnails"},kIt={class:"return-button"},EIt={class:"slide-thumbnails-content"},FIt=["onClick"],XIt=tt({__name:"SlideThumbnails",props:{turnSlideToIndex:{type:Function}},emits:["close"],setup(t,{emit:e}){const n=t,r=e,{slides:a,slideIndex:i}=nt(It()),{slidesLoadLimit:o}=ZS(),s=l=>{n.turnSlideToIndex(l),r("close")};return(l,c)=>{const u=NIt;return V(),H("div",IIt,[I("div",kIt,[U(u,{class:"icon",onClick:c[0]||(c[0]=f=>r("close"))})]),I("div",EIt,[(V(!0),H(qe,null,bt(te(a),(f,d)=>(V(),H("div",{class:mt(["thumbnail",{active:d===te(i)}]),key:f.id,onClick:h=>s(d)},[U(bc,{slide:f,size:150,visible:d<te(o)},null,8,["slide","visible"])],10,FIt))),128))])])}}}),DIt=lt(XIt,[["__scopeId","data-v-83e01880"]]),VIt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function UIt(t,e){return V(),H("svg",VIt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{"stroke-linecap":"round",d:"M20 5.914h8v8h15v8H5v-8h15z","clip-rule":"evenodd"}),I("path",{d:"M8 40h32V22H8z"}),I("path",{"stroke-linecap":"round",d:"M16 39.898v-5.984m8 5.984v-6m8 6v-5.984M12 40h24"})],-1)]))}const WIt=vt({name:"icon-park-outline-clear",render:UIt}),YIt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function BIt(t,e){return V(),H("svg",YIt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M4 42h40M31 4L7 28l6 6h8l20-20z"},null,-1)]))}const ZIt=vt({name:"icon-park-outline-erase",render:BIt}),QIt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function KIt(t,e){return V(),H("svg",QIt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M42 24H6m24-12l12 12l-12 12"},null,-1)]))}const HIt=vt({name:"icon-park-outline-arrow-right",render:KIt}),GIt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function $It(t,e){return V(),H("svg",GIt,e[0]||(e[0]=[I("circle",{cx:"24",cy:"24",r:"20",fill:"none",stroke:"currentColor","stroke-width":"4"},null,-1)]))}const hPe=vt({name:"icon-park-outline-round",render:$It}),zIt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function JIt(t,e){return V(),H("svg",zIt,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-width":"4",d:"M39 6H9a3 3 0 0 0-3 3v30a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3Z"},null,-1)]))}const pPe=vt({name:"icon-park-outline-square",render:JIt}),jIt={key:0,class:"blackboard"},qIt=tt({__name:"WritingBoard",props:{color:{default:"#ffcc00"},model:{default:"pen"},shapeType:{default:"rect"},blackboard:{type:Boolean,default:!1},penSize:{default:6},markSize:{default:24},rubberSize:{default:80},shapeSize:{default:4}},emits:["end"],setup(t,{expose:e,emit:n}){const r=t,a=n;let i=null;const o=un("writingBoardRef"),s=un("canvasRef");let l={x:0,y:0},c=!1,u=0,f=-1,d=null;const h=we({x:0,y:0}),p=we(!1),v=we(0),g=we(0),y=Fe(()=>s.value?v.value/s.value.width:1),m=Fe(()=>s.value?g.value/s.value.height:1),R=()=>{o.value&&(v.value=o.value.clientWidth,g.value=o.value.clientHeight)},A=new ResizeObserver(R);mn(()=>{o.value&&A.observe(o.value)}),or(()=>{o.value&&A.unobserve(o.value)}),mn(()=>{!s.value||!o.value||(i=s.value.getContext("2d"),i&&(s.value.width=o.value.clientWidth,s.value.height=o.value.clientHeight,i.lineCap="round",i.lineJoin="round"))});const M=()=>{i&&(r.model==="mark"?(i.globalCompositeOperation="xor",i.globalAlpha=.5):(r.model==="pen"||r.model==="shape")&&(i.globalCompositeOperation="source-over",i.globalAlpha=1))};qt(()=>r.model,M);const S=(ne,Z,$)=>{if(!i)return;const G=l.x,ee=l.y;i.lineWidth=$,i.strokeStyle=r.color,i.beginPath(),i.moveTo(G,ee),i.lineTo(ne,Z),i.stroke(),i.closePath()},w=(ne,Z)=>{if(!i||!s.value)return;const $=l.x,G=l.y,ee=r.rubberSize/2,ce=ee*Math.sin(Math.atan((Z-G)/(ne-$))),B=ee*Math.cos(Math.atan((Z-G)/(ne-$))),xe=[$+ce,G-B],_e=[$-ce,G+B],se=[ne+ce,Z-B],z=[ne-ce,Z+B];i.save(),i.beginPath(),i.arc(ne,Z,ee,0,Math.PI*2),i.clip(),i.clearRect(0,0,s.value.width,s.value.height),i.restore(),i.save(),i.beginPath(),i.moveTo(...xe),i.lineTo(...se),i.lineTo(...z),i.lineTo(..._e),i.closePath(),i.clip(),i.clearRect(0,0,s.value.width,s.value.height),i.restore()},_=(ne,Z)=>{const $=l.x,G=l.y;return Math.sqrt((ne-$)*(ne-$)+(Z-G)*(Z-G))},T=(ne,Z)=>{const ee=r.penSize,ce=3,B=ne/Z;let xe;return B<=.1?xe=ee:B>=10?xe=ce:xe=ee-B/10*ee,f===-1?xe:xe*1/3+f*2/3},O=(ne,Z)=>{if(!i||!d)return;i.putImageData(d,0,0);const $=l.x,G=l.y;if(i.save(),i.lineCap="butt",i.lineJoin="miter",i.beginPath(),r.shapeType==="rect"){const ee=ne-$,ce=Z-G;i.rect($,G,ee,ce)}else if(r.shapeType==="circle"){const ee=ne-$,ce=Z-G,B=$+ee/2,xe=G+ce/2,_e=Math.abs(ee)/2,se=Math.abs(ce)/2;i.ellipse(B,xe,Math.abs(_e),Math.abs(se),0,0,Math.PI*2)}else if(r.shapeType==="arrow"){const ee=ne-$,ce=Z-G,B=Math.atan2(ce,ee),xe=Math.max(r.shapeSize,4)*2,_e=ne-Math.cos(B)*xe,se=Z-Math.sin(B)*xe;i.moveTo($,G),i.lineTo(_e,se)}if(i.strokeStyle=r.color,i.lineWidth=r.shapeSize,i.stroke(),i.restore(),r.shapeType==="arrow"){const ee=ne-$,ce=Z-G,B=Math.atan2(ce,ee),xe=Math.max(r.shapeSize,4)*2.6,_e=Math.max(r.shapeSize,4)*1.6,se=ne-Math.cos(B)*xe,z=Z-Math.sin(B)*xe;i.save(),i.beginPath(),i.moveTo(ne,Z);const de=se+_e*Math.cos(B+Math.PI/2),fe=z+_e*Math.sin(B+Math.PI/2),re=se+_e*Math.cos(B-Math.PI/2),X=z+_e*Math.sin(B-Math.PI/2);i.lineTo(de,fe),i.lineTo(re,X),i.closePath(),i.fillStyle=r.color,i.fill(),i.restore()}},N=(ne,Z)=>{const $=new Date().getTime();if(r.model==="pen"){const G=_(ne,Z),ee=$-u,ce=T(G,ee);S(ne,Z,ce),f=ce,l={x:ne,y:Z},u=new Date().getTime()}else r.model==="mark"?(S(ne,Z,r.markSize),l={x:ne,y:Z}):r.model==="eraser"?(w(ne,Z),l={x:ne,y:Z}):r.model==="shape"&&O(ne,Z)},P=ne=>{if(!s.value)return[0,0];const Z=ne instanceof MouseEvent?ne:ne.changedTouches[0],$=s.value.getBoundingClientRect(),G=Z.pageX-$.x,ee=Z.pageY-$.y;return[G,ee]},C=ne=>{const[Z,$]=P(ne),G=Z/y.value,ee=$/m.value;r.model==="shape"&&(d=i.getImageData(0,0,s.value.width,s.value.height)),c=!0,l={x:G,y:ee},u=new Date().getTime(),ne instanceof MouseEvent||(h.value={x:Z,y:$},p.value=!0)},E=ne=>{const[Z,$]=P(ne),G=Z/y.value,ee=$/m.value;h.value={x:Z,y:$},c&&N(G,ee)},F=()=>{c&&(c=!1,a("end"))};return e({clearCanvas:()=>{!i||!s.value||(i.clearRect(0,0,s.value.width,s.value.height),a("end"))},getImageDataURL:()=>{var ne;return(ne=s.value)==null?void 0:ne.toDataURL()},setImageDataURL:ne=>{if(!(!i||!s.value)&&(i.clearRect(0,0,s.value.width,s.value.height),ne)){i.globalCompositeOperation="source-over",i.globalAlpha=1;const Z=new Image;Z.src=ne,Z.onload=()=>{i.drawImage(Z,0,0),M()}}}}),(ne,Z)=>{const $=qV,G=Z8,ee=zf;return V(),H("div",{class:"writing-board",ref_key:"writingBoardRef",ref:o},[ne.blackboard?(V(),H("div",jIt)):at("",!0),I("canvas",{class:"canvas",ref_key:"canvasRef",ref:s,style:We({width:v.value+"px",height:g.value+"px"}),onMousedown:Z[0]||(Z[0]=ce=>C(ce)),onMousemove:Z[1]||(Z[1]=ce=>E(ce)),onMouseup:Z[2]||(Z[2]=ce=>F()),onTouchstart:Z[3]||(Z[3]=ce=>C(ce)),onTouchmove:Z[4]||(Z[4]=ce=>E(ce)),onTouchend:Z[5]||(Z[5]=ce=>{F(),p.value=!1}),onMouseleave:Z[6]||(Z[6]=ce=>{F(),p.value=!1}),onMouseenter:Z[7]||(Z[7]=ce=>p.value=!0)},null,36),p.value?(V(),H(qe,{key:1},[ne.model==="eraser"?(V(),H("div",{key:0,class:"eraser",style:We({left:h.value.x-ne.rubberSize/2+"px",top:h.value.y-ne.rubberSize/2+"px",width:ne.rubberSize+"px",height:ne.rubberSize+"px"})},null,4)):at("",!0),ne.model==="pen"?(V(),H("div",{key:1,class:"pen",style:We({left:h.value.x-ne.penSize/2+"px",top:h.value.y-ne.penSize*6+ne.penSize/2+"px",color:ne.color})},[U($,{class:"icon",style:We({fontSize:ne.penSize*6+"px"})},null,8,["style"])],4)):at("",!0),ne.model==="mark"?(V(),H("div",{key:2,class:"pen",style:We({left:h.value.x-ne.markSize/2+"px",top:h.value.y+"px",color:ne.color})},[U(G,{class:"icon",style:We({fontSize:ne.markSize*1.5+"px"})},null,8,["style"])],4)):at("",!0),ne.model==="shape"?(V(),H("div",{key:3,class:"pen",style:We({left:h.value.x-20+"px",top:h.value.y-20+"px",color:ne.color})},[U(ee,{class:"icon",style:{fontSize:"40px"}})],4)):at("",!0)],64)):at("",!0)],512)}}}),ekt=lt(qIt,[["__scopeId","data-v-42fe3dc7"]]),tkt={class:"writing-board-tool"},nkt={class:"tool-content"},rkt={class:"setting"},akt={class:"setting shape"},ikt={class:"shapes"},okt={class:"setting"},skt={class:"setting"},lkt={class:"colors"},ckt=["onClick"],ukt="pptist-audience-sync",fkt=tt({__name:"WritingBoardTool",props:{slideWidth:{},slideHeight:{},left:{default:-5},top:{default:-5}},emits:["close"],setup(t,{emit:e}){const n=["#000000","#ffffff","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c","#ffff3a"],r=e,{currentSlide:a}=nt(It()),i=un("writingBoardRef"),o=we("#e2534d"),s=we("pen"),l=we(!1),c=we(""),u=we("rect"),f=we(6),d=we(24),h=we(80),p=we(4),v=M=>{s.value=M,c.value=c.value===M?"":M},g=()=>{i.value.clearCanvas(),R("")},y=M=>{s.value==="eraser"&&(s.value="pen"),o.value=M},m=new BroadcastChannel(ukt),R=M=>{m.postMessage({type:"WRITING_BOARD_UPDATE",dataURL:M,blackboard:l.value})};m.onmessage=({data:M})=>{var S;if(M.type==="REQUEST_WRITING_BOARD"){const w=((S=i.value)==null?void 0:S.getImageDataURL())||"";R(w)}},or(()=>{m.postMessage({type:"WRITING_BOARD_CLOSE"}),m.close()});const A=()=>{m.postMessage({type:"WRITING_BOARD_CLOSE"}),r("close")};qt(a,()=>{iu.writingBoardImgs.where("id").equals(a.value.id).toArray().then(M=>{const S=M[0],w=(S==null?void 0:S.dataURL)||"";i.value.setImageDataURL(w),R(w)})},{immediate:!0}),qt(l,()=>{var S;const M=((S=i.value)==null?void 0:S.getImageDataURL())||"";R(M)});const x=()=>{const M=i.value.getImageDataURL();M&&(R(M),iu.writingBoardImgs.where("id").equals(a.value.id).toArray().then(S=>{const w=S[0];w?iu.writingBoardImgs.update(w,{dataURL:M}):iu.writingBoardImgs.add({id:a.value.id,dataURL:M})}))};return(M,S)=>{const w=qV,_=pPe,T=hPe,O=HIt,N=vTe,P=Z8,C=ZIt,E=WIt,F=cOe,Y=Sy,Q=pr("tooltip");return V(),H("div",tkt,[I("div",{class:"writing-board-wrap",style:We({width:M.slideWidth+"px",height:M.slideHeight+"px"})},[U(ekt,{ref_key:"writingBoardRef",ref:i,color:o.value,blackboard:l.value,model:s.value,penSize:f.value,markSize:d.value,rubberSize:h.value,shapeSize:p.value,shapeType:u.value,onEnd:S[0]||(S[0]=K=>x())},null,8,["color","blackboard","model","penSize","markSize","rubberSize","shapeSize","shapeType"])],4),U(pg,{class:"tools-panel",width:510,height:50,left:M.left,top:M.top},{default:pe(()=>[I("div",{class:"tools",onMousedown:S[19]||(S[19]=on(()=>{},["stop"]))},[I("div",nkt,[U(sn,{placement:"top",trigger:"manual",value:c.value==="pen",onHide:S[3]||(S[3]=K=>c.value="")},{content:pe(()=>[I("div",rkt,[S[20]||(S[20]=I("div",{class:"label"},"墨迹粗细:",-1)),U(Xo,{class:"size-slider",min:4,max:10,step:2,value:f.value,"onUpdate:value":S[1]||(S[1]=K=>f.value=K)},null,8,["value"])])]),default:pe(()=>[yt((V(),H("div",{class:mt(["btn",{active:s.value==="pen"}]),onClick:S[2]||(S[2]=K=>v("pen"))},[U(w,{class:"icon"})],2)),[[Q,"画笔"]])]),_:1},8,["value"]),U(sn,{placement:"top",trigger:"manual",value:c.value==="shape",onHide:S[9]||(S[9]=K=>c.value="")},{content:pe(()=>[I("div",akt,[I("div",ikt,[U(_,{class:mt(["icon",{active:u.value==="rect"}]),onClick:S[4]||(S[4]=K=>u.value="rect")},null,8,["class"]),U(T,{class:mt(["icon",{active:u.value==="circle"}]),onClick:S[5]||(S[5]=K=>u.value="circle")},null,8,["class"]),U(O,{class:mt(["icon",{active:u.value==="arrow"}]),onClick:S[6]||(S[6]=K=>u.value="arrow")},null,8,["class"])]),U(hn,{type:"vertical"}),S[21]||(S[21]=I("div",{class:"label"},"墨迹粗细:",-1)),U(Xo,{class:"size-slider",min:2,max:8,step:2,value:p.value,"onUpdate:value":S[7]||(S[7]=K=>p.value=K)},null,8,["value"])])]),default:pe(()=>[yt((V(),H("div",{class:mt(["btn",{active:s.value==="shape"}]),onClick:S[8]||(S[8]=K=>v("shape"))},[U(N,{class:"icon"})],2)),[[Q,"形状"]])]),_:1},8,["value"]),U(sn,{placement:"top",trigger:"manual",value:c.value==="mark",onHide:S[12]||(S[12]=K=>c.value="")},{content:pe(()=>[I("div",okt,[S[22]||(S[22]=I("div",{class:"label"},"墨迹粗细:",-1)),U(Xo,{class:"size-slider",min:16,max:40,step:4,value:d.value,"onUpdate:value":S[10]||(S[10]=K=>d.value=K)},null,8,["value"])])]),default:pe(()=>[yt((V(),H("div",{class:mt(["btn",{active:s.value==="mark"}]),onClick:S[11]||(S[11]=K=>v("mark"))},[U(P,{class:"icon"})],2)),[[Q,"荧光笔"]])]),_:1},8,["value"]),U(sn,{placement:"top",trigger:"manual",value:c.value==="eraser",onHide:S[15]||(S[15]=K=>c.value="")},{content:pe(()=>[I("div",skt,[S[23]||(S[23]=I("div",{class:"label"},"橡皮大小:",-1)),U(Xo,{class:"size-slider",min:20,max:200,step:20,value:h.value,"onUpdate:value":S[13]||(S[13]=K=>h.value=K)},null,8,["value"])])]),default:pe(()=>[yt((V(),H("div",{class:mt(["btn",{active:s.value==="eraser"}]),onClick:S[14]||(S[14]=K=>v("eraser"))},[U(C,{class:"icon"})],2)),[[Q,"橡皮擦"]])]),_:1},8,["value"]),yt((V(),H("div",{class:"btn",onClick:S[16]||(S[16]=K=>g())},[U(E,{class:"icon"})])),[[Q,"清除墨迹"]]),yt((V(),H("div",{class:mt(["btn",{active:l.value}]),onClick:S[17]||(S[17]=K=>l.value=!l.value)},[U(F,{class:"icon"})],2)),[[Q,"黑板"]]),I("div",lkt,[(V(),H(qe,null,bt(n,K=>I("div",{class:mt(["color",{active:K===o.value,white:K==="#ffffff"}]),key:K,style:We({backgroundColor:K}),onClick:ne=>y(K)},null,14,ckt)),64))])]),yt((V(),H("div",{class:"btn close",onClick:S[18]||(S[18]=K=>A())},[U(Y,{class:"icon"})])),[[Q,"关闭画笔"]])],32)]),_:1},8,["left","top"])])}}}),vPe=lt(fkt,[["__scopeId","data-v-3a3daeae"]]),dkt={class:"header"},hkt={class:"content"},pkt={class:"timer"},vkt=["value","disabled"],gkt={class:"timer"},mkt=["value","disabled"],ykt=tt({__name:"CountdownTimer",props:{left:{default:5},top:{default:5}},emits:["close"],setup(t,{emit:e}){const n=e,r=we(null),a=we(!1),i=we(!1),o=we(0),s=Fe(()=>Math.floor(o.value/60)),l=Fe(()=>o.value%60),c=Fe(()=>!i.value||a.value),u=()=>{r.value&&clearInterval(r.value)};or(u);const f=()=>{u(),a.value=!1},d=()=>{u(),a.value=!1,i.value?o.value=600:o.value=0},h=()=>{u(),i.value?r.value=setInterval(()=>{o.value=o.value-1,o.value<=0&&d()},1e3):r.value=setInterval(()=>{o.value=o.value+1,o.value>36e3&&f()},1e3),a.value=!0},p=()=>{a.value?f():h()},v=()=>{i.value=!i.value,d()},g=(y,m)=>{const R=y.target;let A=R.value;/^(\d)+$/.test(A)?(m==="second"&&+A>=60&&(A="59"),o.value=m==="minute"?+A*60+l.value:+A+s.value*60):R.value=H5(m==="minute"?s.value:l.value,2)};return(y,m)=>{const R=Sy;return V(),Ue(pg,{class:"countdown-timer",width:180,height:110,left:y.left,top:y.top},{default:pe(()=>[I("div",dkt,[I("span",{class:"text-btn",onClick:m[0]||(m[0]=A=>p())},Vt(a.value?"暂停":"开始"),1),I("span",{class:"text-btn",onClick:m[1]||(m[1]=A=>d())},"重置"),I("span",{class:mt(["text-btn",{active:i.value}]),onClick:m[2]||(m[2]=A=>v())},"倒计时",2)]),I("div",hkt,[I("div",pkt,[I("input",{type:"text",value:te(H5)(s.value,2),maxlength:3,disabled:c.value,onMousedown:m[3]||(m[3]=on(()=>{},["stop"])),onBlur:m[4]||(m[4]=A=>g(A,"minute")),onKeydown:[m[5]||(m[5]=on(()=>{},["stop"])),m[6]||(m[6]=Xf(on(A=>g(A,"minute"),["stop"]),["enter"]))]},null,40,vkt)]),m[12]||(m[12]=I("div",{class:"colon"},":",-1)),I("div",gkt,[I("input",{type:"text",value:te(H5)(l.value,2),maxlength:3,disabled:c.value,onMousedown:m[7]||(m[7]=on(()=>{},["stop"])),onBlur:m[8]||(m[8]=A=>g(A,"second")),onKeydown:[m[9]||(m[9]=on(()=>{},["stop"])),m[10]||(m[10]=Xf(on(A=>g(A,"second"),["stop"]),["enter"]))]},null,40,mkt)])]),I("div",{class:"close-btn",onClick:m[11]||(m[11]=A=>n("close"))},[U(R,{class:"icon"})])]),_:1},8,["left","top"])}}}),gPe=lt(ykt,[["__scopeId","data-v-77c1a9ec"]]),Akt={class:"bottom-thumbnails"},Rkt=["onClick"],bkt=tt({__name:"BottomThumbnails",setup(t){const{slides:e,slideIndex:n,viewportRatio:r}=nt(It()),a=un("thumbnailsRef"),{turnSlideToIndex:i}=jV(),{slidesLoadLimit:o}=ZS(),s=l=>{a.value&&a.value.scrollBy(l.deltaY,0)};return qt(n,()=>{qr(()=>{if(!a.value)return;const l=a.value.querySelector(".thumbnail.active");if(!l)return;const c=a.value.offsetWidth,u=l.offsetLeft+l.clientWidth/2;a.value.scrollTo({left:u-c/2,behavior:"smooth"})})}),(l,c)=>(V(),H("div",Akt,[I("div",{class:"thumbnails",ref_key:"thumbnailsRef",ref:a,onWheel:c[0]||(c[0]=on(u=>s(u),["prevent"]))},[(V(!0),H(qe,null,bt(te(e),(u,f)=>(V(),H("div",{class:mt(["thumbnail",{active:f===te(n)}]),key:u.id,onClick:d=>te(i)(f)},[U(bc,{slide:u,size:100/te(r),visible:f<te(o)},null,8,["slide","size","visible"])],10,Rkt))),128))],544)]))}}),xkt=lt(bkt,[["__scopeId","data-v-9b2d729c"]]),Skt={class:"tools-left"},Mkt={class:"content"},_kt=tt({__name:"BaseView",props:{changeViewMode:{type:Function}},setup(t){const e=t,{slides:n,slideIndex:r}=nt(It()),{autoPlayTimer:a,autoPlay:i,closeAutoPlay:o,autoPlayInterval:s,setAutoPlayInterval:l,loopPlay:c,setLoopPlay:u,mousewheelListener:f,touchStartListener:d,touchEndListener:h,turnPrevSlide:p,turnNextSlide:v,turnSlideToIndex:g,turnSlideToId:y,execPrev:m,execNext:R,animationIndex:A,laserPen:x,broadcastExit:M}=jV(),{slideWidth:S,slideHeight:w}=Rte(),{exitScreening:_}=og(),{fullscreenState:T,manualExitFullscreen:O}=dPe(),N=we(!1),P=we(!1),C=we(!1),E=we(!1),F=we(!1),Y=()=>{O(),window.open(`${location.origin}${location.pathname}?mode=audience`,"pptist-audience","popup")},Q=()=>{M(),_()},K=()=>[{text:"上一页",subText:"↑ ←",disable:r.value<=0,handler:()=>p()},{text:"下一页",subText:"↓ →",disable:r.value>=n.value.length-1,handler:()=>v()},{text:"第一页",disable:r.value===0,handler:()=>g(0)},{text:"最后一页",disable:r.value===n.value.length-1,handler:()=>g(n.value.length-1)},{divider:!0},{text:a.value?"取消自动放映":"自动放映",handler:a.value?o:i,children:[{text:"2.5秒",subText:s.value===2500?"√":"",handler:()=>l(2500)},{text:"5秒",subText:s.value===5e3?"√":"",handler:()=>l(5e3)},{text:"7.5秒",subText:s.value===7500?"√":"",handler:()=>l(7500)},{text:"10秒",subText:s.value===1e4?"√":"",handler:()=>l(1e4)}]},{text:"循环放映",subText:c.value?"√":"",handler:()=>u(!c.value)},{divider:!0},{text:"显示工具栏",handler:()=>N.value=!0},{text:"查看所有幻灯片",handler:()=>E.value=!0},{text:"触底显示缩略图",subText:F.value?"√":"",handler:()=>F.value=!F.value},{text:"画笔工具",handler:()=>P.value=!0},{text:"演讲者视图",handler:()=>e.changeViewMode("presenter")},{divider:!0},{text:"结束放映",subText:"ESC",handler:Q}];return(ne,Z)=>{const $=OIt,G=wIt,ee=qV,ce=fPe,B=uPe,xe=cPe,_e=lPe,se=sPe,z=oPe,de=iPe,fe=pr("contextmenu"),re=pr("tooltip");return V(),H("div",{class:mt(["base-view",{"laser-pen":te(x)}])},[yt(U(bte,{slideWidth:te(S),slideHeight:te(w),animationIndex:te(A),turnSlideToId:te(y),manualExitFullscreen:te(O),onWheel:Z[0]||(Z[0]=X=>te(f)(X)),onTouchstart:Z[1]||(Z[1]=X=>te(d)(X)),onTouchend:Z[2]||(Z[2]=X=>te(h)(X))},null,8,["slideWidth","slideHeight","animationIndex","turnSlideToId","manualExitFullscreen"]),[[fe,K]]),E.value?(V(),Ue(DIt,{key:0,turnSlideToIndex:te(g),onClose:Z[3]||(Z[3]=X=>E.value=!1)},null,8,["turnSlideToIndex"])):at("",!0),P.value?(V(),Ue(vPe,{key:1,slideWidth:te(S),slideHeight:te(w),onClose:Z[4]||(Z[4]=X=>P.value=!1)},null,8,["slideWidth","slideHeight"])):at("",!0),C.value?(V(),Ue(gPe,{key:2,onClose:Z[5]||(Z[5]=X=>C.value=!1)})):at("",!0),I("div",Skt,[U($,{class:"tool-btn",onClick:Z[6]||(Z[6]=X=>te(m)())}),U(G,{class:"tool-btn",onClick:Z[7]||(Z[7]=X=>te(R)())})]),I("div",{class:mt(["tools-right",{visible:N.value}]),onMouseleave:Z[17]||(Z[17]=X=>N.value=!1),onMouseenter:Z[18]||(Z[18]=X=>N.value=!0)},[I("div",Mkt,[I("div",{class:"tool-btn page-number",onClick:Z[8]||(Z[8]=X=>E.value=!0)},"幻灯片 "+Vt(te(r)+1)+" / "+Vt(te(n).length),1),yt(U(ee,{class:"tool-btn",onClick:Z[9]||(Z[9]=X=>P.value=!0)},null,512),[[re,"画笔工具"]]),yt(U(ce,{class:mt(["tool-btn",{active:te(x)}]),onClick:Z[10]||(Z[10]=X=>x.value=!te(x))},null,8,["class"]),[[re,"激光笔"]]),yt(U(B,{class:mt(["tool-btn",{active:C.value}]),onClick:Z[11]||(Z[11]=X=>C.value=!C.value)},null,8,["class"]),[[re,"计时器"]]),yt(U(xe,{class:"tool-btn",onClick:Z[12]||(Z[12]=X=>ne.changeViewMode("presenter"))},null,512),[[re,"演讲者视图"]]),yt(U(_e,{class:"tool-btn",onClick:Z[13]||(Z[13]=X=>Y())},null,512),[[re,"观众视图"]]),te(T)?yt((V(),Ue(se,{key:0,class:"tool-btn",onClick:Z[14]||(Z[14]=X=>te(O)())},null,512)),[[re,"退出全屏"]]):yt((V(),Ue(z,{key:1,class:"tool-btn",onClick:Z[15]||(Z[15]=X=>te(Ij)())},null,512)),[[re,"进入全屏"]]),yt(U(de,{class:"tool-btn",onClick:Z[16]||(Z[16]=X=>Q())},null,512),[[re,"结束放映"]])])],34),F.value?(V(),Ue(xkt,{key:3})):at("",!0)],2)}}}),wkt=lt(_kt,[["__scopeId","data-v-27938b81"]]),Lkt={class:"presenter-view"},Tkt={class:"toolbar"},Okt={class:"content"},Pkt=["onClick"],Ckt={class:"remark"},Nkt={class:"header"},Ikt=["innerHTML"],kkt={class:"remark-scale"},Ekt=tt({__name:"PresenterView",props:{changeViewMode:{type:Function}},setup(t){const e=t,{slides:n,slideIndex:r,viewportRatio:a,currentSlide:i}=nt(It()),o=un("slideListWrapRef"),s=un("thumbnailsRef"),l=we(!1),c=we(!1),{mousewheelListener:u,touchStartListener:f,touchEndListener:d,turnPrevSlide:h,turnNextSlide:p,turnSlideToIndex:v,turnSlideToId:g,animationIndex:y,laserPen:m,broadcastExit:R}=jV(),{slideWidth:A,slideHeight:x}=Rte(o),{exitScreening:M}=og(),{slidesLoadLimit:S}=ZS(),{fullscreenState:w,manualExitFullscreen:_}=dPe(),T=we(16),O=Fe(()=>i.value.remark?GF(i.value.remark):""),N=()=>{_(),window.open(`${location.origin}${location.pathname}?mode=audience`,"pptist-audience","popup")},P=()=>{R(),M()},C=Y=>{s.value&&s.value.scrollBy(Y.deltaY,0)},E=Y=>{Y<12||Y>40||(T.value=Y)};qt(r,()=>{qr(()=>{if(!s.value)return;const Y=s.value.querySelector(".thumbnail.active");if(!Y)return;const Q=s.value.offsetWidth,K=Y.offsetLeft+Y.clientWidth/2;s.value.scrollTo({left:K-Q/2,behavior:"smooth"})})});const F=()=>[{text:"上一页",subText:"↑ ←",disable:r.value<=0,handler:()=>h()},{text:"下一页",subText:"↓ →",disable:r.value>=n.value.length-1,handler:()=>p()},{text:"第一页",disable:r.value===0,handler:()=>v(0)},{text:"最后一页",disable:r.value===n.value.length-1,handler:()=>v(n.value.length-1)},{divider:!0},{text:"画笔工具",handler:()=>l.value=!0},{text:"普通视图",handler:()=>e.changeViewMode("base")},{divider:!0},{text:"结束放映",subText:"ESC",handler:P}];return(Y,Q)=>{const K=cPe,ne=lPe,Z=qV,$=fPe,G=uPe,ee=sPe,ce=oPe,B=iPe,xe=Wee,_e=zf,se=pr("contextmenu");return V(),H("div",Lkt,[I("div",Tkt,[I("div",{class:"tool-btn",onClick:Q[0]||(Q[0]=z=>Y.changeViewMode("base"))},[U(K,{class:"tool-icon"}),Q[15]||(Q[15]=I("span",null,"普通视图",-1))]),I("div",{class:"tool-btn",onClick:Q[1]||(Q[1]=z=>N())},[U(ne,{class:"tool-icon"}),Q[16]||(Q[16]=I("span",null,"观众视图",-1))]),I("div",{class:mt(["tool-btn",{active:l.value}]),onClick:Q[2]||(Q[2]=z=>l.value=!l.value)},[U(Z,{class:"tool-icon"}),Q[17]||(Q[17]=I("span",null,"画笔",-1))],2),I("div",{class:mt(["tool-btn",{active:te(m)}]),onClick:Q[3]||(Q[3]=z=>m.value=!te(m))},[U($,{class:"tool-icon"}),Q[18]||(Q[18]=I("span",null,"激光笔",-1))],2),I("div",{class:mt(["tool-btn",{active:c.value}]),onClick:Q[4]||(Q[4]=z=>c.value=!c.value)},[U(G,{class:"tool-icon"}),Q[19]||(Q[19]=I("span",null,"计时器",-1))],2),I("div",{class:"tool-btn",onClick:Q[5]||(Q[5]=()=>te(w)?te(_)():te(Ij)())},[te(w)?(V(),Ue(ee,{key:0,class:"tool-icon"})):(V(),Ue(ce,{key:1,class:"tool-icon"})),I("span",null,Vt(te(w)?"退出全屏":"全屏"),1)]),U(hn,{class:"divider"}),I("div",{class:"tool-btn",onClick:Q[6]||(Q[6]=z=>P())},[U(B,{class:"tool-icon"}),Q[20]||(Q[20]=I("span",null,"结束放映",-1))])]),I("div",Okt,[I("div",{class:mt(["slide-list-wrap",{"laser-pen":te(m)}]),ref_key:"slideListWrapRef",ref:o},[yt(U(bte,{slideWidth:te(A),slideHeight:te(x),animationIndex:te(y),turnSlideToId:te(g),manualExitFullscreen:te(_),onWheel:Q[7]||(Q[7]=z=>te(u)(z)),onTouchstart:Q[8]||(Q[8]=z=>te(f)(z)),onTouchend:Q[9]||(Q[9]=z=>te(d)(z))},null,8,["slideWidth","slideHeight","animationIndex","turnSlideToId","manualExitFullscreen"]),[[se,F]]),l.value?(V(),Ue(vPe,{key:0,slideWidth:te(A),slideHeight:te(x),left:-365,top:-155,onClose:Q[10]||(Q[10]=z=>l.value=!1)},null,8,["slideWidth","slideHeight"])):at("",!0),c.value?(V(),Ue(gPe,{key:1,left:75,onClose:Q[11]||(Q[11]=z=>c.value=!1)})):at("",!0)],2),I("div",{class:"thumbnails",ref_key:"thumbnailsRef",ref:s,onWheel:Q[12]||(Q[12]=on(z=>C(z),["prevent"]))},[(V(!0),H(qe,null,bt(te(n),(z,de)=>(V(),H("div",{class:mt(["thumbnail",{active:de===te(r)}]),key:z.id,onClick:fe=>te(v)(de)},[U(bc,{slide:z,size:120/te(a),visible:de<te(S)},null,8,["slide","size","visible"])],10,Pkt))),128))],544)]),I("div",Ckt,[I("div",Nkt,[Q[21]||(Q[21]=I("span",null,"演讲者备注",-1)),I("span",null,"P "+Vt(te(r)+1)+" / "+Vt(te(n).length),1)]),I("div",{class:mt(["remark-content ProseMirror-static",{empty:!O.value}]),style:We({fontSize:T.value+"px"}),innerHTML:O.value||"无备注"},null,14,Ikt),I("div",kkt,[I("div",{class:mt(["scale-btn",{disable:T.value===12}]),onClick:Q[13]||(Q[13]=z=>E(T.value-2))},[U(xe,{class:"icon"})],2),I("div",{class:mt(["scale-btn",{disable:T.value===40}]),onClick:Q[14]||(Q[14]=z=>E(T.value+2))},[U(_e,{class:"icon"})],2)])])])}}}),Fkt=lt(Ekt,[["__scopeId","data-v-912c1001"]]),Xkt={class:"pptist-screen"},Dkt=tt({__name:"index",setup(t){const e=new URLSearchParams(window.location.search).get("mode")==="audience",n=we("base"),r=l=>{n.value=l},{exitScreening:a}=og(),i=e?null:new BroadcastChannel("pptist-audience-sync"),o=()=>{i==null||i.postMessage({type:"EXIT"}),a()},s=l=>{l.key.toUpperCase()===Ht.ESC&&o()};return mn(()=>{e||document.addEventListener("keydown",s)}),or(()=>{e||document.removeEventListener("keydown",s),i==null||i.close()}),(l,c)=>(V(),H("div",Xkt,[e?(V(),Ue(sIt,{key:0})):n.value==="base"?(V(),Ue(wkt,{key:1,changeViewMode:r})):n.value==="presenter"?(V(),Ue(Fkt,{key:2,changeViewMode:r})):at("",!0)]))}}),Vkt=lt(Dkt,[["__scopeId","data-v-a2401050"]]),Ukt=tt({__name:"MobileEditableElement",props:{elementInfo:{},elementIndex:{},selectElement:{type:Function}},setup(t){const e=t,n=Fe(()=>({[vn.IMAGE]:_5e,[vn.TEXT]:y_e,[vn.SHAPE]:x_e,[vn.LINE]:S_e,[vn.CHART]:H6e,[vn.TABLE]:j6e,[vn.LATEX]:q6e,[vn.VIDEO]:rTe,[vn.AUDIO]:iTe})[e.elementInfo.type]||null);return(r,a)=>(V(),H("div",{class:"mobile-editable-element",style:We({zIndex:r.elementIndex})},[(V(),Ue(Eh(n.value),{elementInfo:r.elementInfo,selectElement:r.selectElement,contextmenus:()=>null},null,8,["elementInfo","selectElement"]))],4))}}),Wkt=tt({__name:"MobileOperate",props:{elementInfo:{},isSelected:{type:Boolean},canvasScale:{},scaleElement:{type:Function},rotateElement:{type:Function}},setup(t){const e=t,n=Fe(()=>"rotate"in e.elementInfo?e.elementInfo.rotate:0),r=Fe(()=>e.elementInfo.width*e.canvasScale),a=Fe(()=>e.elementInfo.height*e.canvasScale),{borderLines:i,resizeHandlers:o,textElementResizeHandlers:s}=Ty(r,a),l=e.elementInfo.type==="text"||e.elementInfo.type==="table"?s:o,c=Fe(()=>["chart","video","audio"].includes(e.elementInfo.type));return(u,f)=>(V(),H("div",{class:"mobile-operate",style:We({top:u.elementInfo.top*u.canvasScale+"px",left:u.elementInfo.left*u.canvasScale+"px",transform:`rotate(${n.value}deg)`,transformOrigin:`${u.elementInfo.width*u.canvasScale/2}px ${u.elementInfo.height*u.canvasScale/2}px`})},[u.isSelected?(V(),H(qe,{key:0},[(V(!0),H(qe,null,bt(te(i),d=>(V(),Ue(Oy,{class:"operate-border-line",key:d.type,type:d.type,style:We(d.style)},null,8,["type","style"]))),128)),(V(!0),H(qe,null,bt(te(l),d=>(V(),Ue(hg,{class:"operate-resize-handler",key:d.direction,type:d.direction,rotate:u.elementInfo.rotate,style:We(d.style),onTouchstart:on(h=>u.scaleElement(h,u.elementInfo,d.direction),["stop"])},null,8,["type","rotate","style","onTouchstart"]))),128)),c.value?at("",!0):(V(),Ue(Py,{key:0,class:"operate-rotate-handler",style:We({left:r.value/2+"px"}),onTouchstart:f[0]||(f[0]=on(d=>u.rotateElement(d,u.elementInfo),["stop"]))},null,8,["style"]))],64)):at("",!0)],4))}}),Ykt=lt(Wkt,[["__scopeId","data-v-e8bdef55"]]),Bkt={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function Zkt(t,e){return V(),H("svg",Bkt,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{"stroke-linecap":"round",d:"M13 12.432v-4.62A2.813 2.813 0 0 1 15.813 5h24.374A2.813 2.813 0 0 1 43 7.813v24.375A2.813 2.813 0 0 1 40.188 35h-4.672"}),I("path",{d:"M32.188 13H7.811A2.813 2.813 0 0 0 5 15.813v24.374A2.813 2.813 0 0 0 7.813 43h24.375A2.813 2.813 0 0 0 35 40.188V15.811A2.813 2.813 0 0 0 32.188 13Z"})],-1)]))}const mPe=vt({name:"icon-park-outline-copy",render:Zkt}),Qkt=["onClick"],Kkt={class:"label"},Hkt=tt({__name:"MobileThumbnails",setup(t){const e=It(),{slides:n,slideIndex:r}=nt(e),{sortSlides:a}=ig(),{slidesLoadLimit:i}=ZS(),o=l=>{e.updateSlideIndex(l)},s=l=>{const{newIndex:c,oldIndex:u}=l;c===void 0||u===void 0||c===u||a(c,u)};return(l,c)=>(V(),Ue(te(NV),{class:"mobile-thumbnails",modelValue:te(n),animation:200,scroll:!0,scrollSensitivity:50,delayOnTouchOnly:!0,delay:800,itemKey:"id",onEnd:s},{item:pe(({element:u,index:f})=>[I("div",{class:mt(["thumbnail-item",{active:te(r)===f}]),onClick:d=>o(f)},[I("div",Kkt,Vt(f+1),1),U(bc,{class:"thumbnail",slide:u,size:120,visible:f<te(i)},null,8,["slide","visible"])],10,Qkt)]),_:1},8,["modelValue"]))}}),yPe=lt(Hkt,[["__scopeId","data-v-8a393806"]]),Gkt={class:"slide-toolbar"},$kt={class:"remark"},zkt=["value"],Jkt={class:"toolbar"},jkt=tt({__name:"SlideToolbar",setup(t){const e=It(),{viewportRatio:n,currentSlide:r,viewportSize:a}=nt(e),{createSlide:i,copyAndPasteSlide:o,deleteSlide:s}=ig(),{createTextElement:l,createImageElement:c,createShapeElement:u}=M0(),f=()=>{l({left:(a.value-400)/2,top:(a.value*n.value-56)/2,width:400,height:56},{content:"<p>新添加文本</p>"})},d=g=>{!g||!g[0]||ag(g[0]).then(y=>c(y))},h=g=>{const R={square:{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"},round:{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"}},A=200;u({left:(a.value-A)/2,top:(a.value*n.value-A)/2,width:A,height:A},R[g])},p=Fe(()=>{var g;return((g=r.value)==null?void 0:g.remark)||""}),v=g=>{const y=g.target.value;e.updateSlide({remark:y})};return(g,y)=>{const m=zf,R=mPe,A=pte,x=BS,M=pTe,S=pPe,w=hPe;return V(),H("div",Gkt,[I("div",$kt,[I("textarea",{value:p.value,placeholder:"点击输入演讲者备注",onInput:y[0]||(y[0]=_=>v(_))},null,40,zkt)]),I("div",Jkt,[U(Br,{class:"row"},{default:pe(()=>[U(Mt,{style:{flex:"1"},onClick:y[1]||(y[1]=_=>te(i)())},{default:pe(()=>[U(m,{class:"icon"}),y[8]||(y[8]=rt(" 新幻灯片"))]),_:1,__:[8]}),U(Mt,{style:{flex:"1"},onClick:y[2]||(y[2]=_=>te(o)())},{default:pe(()=>[U(R,{class:"icon"}),y[9]||(y[9]=rt(" 复制"))]),_:1,__:[9]}),U(Mt,{style:{flex:"1"},onClick:y[3]||(y[3]=_=>te(s)())},{default:pe(()=>[U(A,{class:"icon"}),y[10]||(y[10]=rt(" 删除"))]),_:1,__:[10]})]),_:1}),U(Br,{class:"row"},{default:pe(()=>[U(Mt,{style:{flex:"1"},onClick:y[4]||(y[4]=_=>f())},{default:pe(()=>[U(x,{class:"icon"}),y[11]||(y[11]=rt(" 文字"))]),_:1,__:[11]}),U(Mt,{style:{flex:"1"}},{default:pe(()=>[U(Df,{onChange:y[5]||(y[5]=_=>d(_))},{default:pe(()=>[U(M,{class:"icon"}),y[12]||(y[12]=rt(" 图片 "))]),_:1,__:[12]})]),_:1}),U(Mt,{style:{flex:"1"},onClick:y[6]||(y[6]=_=>h("square"))},{default:pe(()=>[U(S,{class:"icon"}),y[13]||(y[13]=rt(" 矩形"))]),_:1,__:[13]}),U(Mt,{style:{flex:"1"},onClick:y[7]||(y[7]=_=>h("round"))},{default:pe(()=>[U(w,{class:"icon"}),y[14]||(y[14]=rt(" 圆形"))]),_:1,__:[14]})]),_:1})]),U(yPe)])}}}),qkt=lt(jkt,[["__scopeId","data-v-70ef5ee0"]]),e9t={class:"element-toolbar"},t9t={class:"content"},n9t={key:0,class:"style"},r9t={key:1,class:"row-block"},a9t={class:"colors"},i9t=["onClick"],o9t={class:"color custom"},s9t={key:2,class:"row-block"},l9t={class:"colors"},c9t=["onClick"],u9t={class:"color custom"},f9t={key:3,class:"tip"},d9t={key:1,class:"common"},h9t=tt({__name:"ElementToolbar",setup(t){const e=["#000000","#ffffff","#eeece1","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#c21401","#ff1e02","#ffc12a","#ffff3a","#90cf5b","#00af57"],n=Wt(),r=It(),{handleElement:a,handleElementId:i,richTextAttrs:o}=nt(n),{addHistorySnapshot:s}=Pn(),l=(w,_)=>{r.updateElement({id:w,props:_}),s()},c=[{key:"style",label:"样式"},{key:"common",label:"布局"}],u=we("common"),f=Fe(()=>{var w;return a.value?!!(a.value.type==="text"||a.value.type==="shape"&&((w=a.value.text)!=null&&w.content)):!1}),d=Fe(()=>{var w;return a.value?!!(a.value.type==="text"||a.value.type==="table"||a.value.type==="latex"||a.value.type==="shape"&&((w=a.value.text)!=null&&w.content)):!1}),h=Fe(()=>a.value?a.value.type==="text"||a.value.type==="shape"||a.value.type==="chart"||a.value.type==="table"||a.value.type==="line"||a.value.type==="audio":!1),{orderElement:p}=v8(),{alignElementToCanvas:v}=qD(),{addElementsFromData:g}=d8(),{deleteElement:y}=h8(),m=()=>{const w=JSON.parse(JSON.stringify(a.value));g([w])},R=(w,_)=>{zi.emit(Ni.RICH_TEXT_COMMAND,{action:{command:w,value:_}})},A=Fe(()=>{var w,_;return a.value?a.value.type==="text"||a.value.type==="shape"&&((w=a.value.text)!=null&&w.content)?o.value.color:a.value.type==="table"?(_=JSON.parse(JSON.stringify(a.value.data))[0][0].style)==null?void 0:_.color:a.value.type==="latex"?a.value.color:"#fff":"#fff"}),x=w=>{var _;if(a.value){if((a.value.type==="text"||a.value.type==="shape"&&((_=a.value.text)!=null&&_.content))&&zi.emit(Ni.RICH_TEXT_COMMAND,{action:{command:"color",value:w}}),a.value.type==="table"){const T=JSON.parse(JSON.stringify(a.value.data));for(let O=0;O<T.length;O++)for(let N=0;N<T[O].length;N++){const P=T[O][N].style||{};T[O][N].style={...P,color:w}}l(i.value,{data:T})}a.value.type==="latex"&&l(i.value,{color:w})}},M=Fe(()=>{var w;return a.value?a.value.type==="text"||a.value.type==="shape"||a.value.type==="chart"?a.value.fill:a.value.type==="table"?(w=JSON.parse(JSON.stringify(a.value.data))[0][0].style)==null?void 0:w.backcolor:a.value.type==="audio"||a.value.type==="line"?a.value.color:"#fff":"#fff"}),S=w=>{if(a.value){if((a.value.type==="text"||a.value.type==="shape"||a.value.type==="chart")&&l(i.value,{fill:w}),a.value.type==="table"){const _=JSON.parse(JSON.stringify(a.value.data));for(let T=0;T<_.length;T++)for(let O=0;O<_[T].length;O++){const N=_[T][O].style||{};_[T][O].style={...N,backcolor:w}}l(i.value,{data:_})}(a.value.type==="audio"||a.value.type==="line")&&l(i.value,{color:w})}};return(w,_)=>{const T=YV,O=WV,N=UV,P=VV,C=BS,E=DV,F=XV,Y=FV,Q=mPe,K=pte,ne=pOe,Z=hOe,$=dOe,G=fOe,ee=ste,ce=ote,B=ite,xe=ate,_e=rte,se=nte;return V(),H("div",e9t,[U(Wf,{tabs:c,value:u.value,"onUpdate:value":_[0]||(_[0]=z=>u.value=z),tabsStyle:{marginBottom:"8px"},tabStyle:{width:"30%",margin:"0 10%"}},null,8,["value"]),I("div",t9t,[u.value==="style"?(V(),H("div",n9t,[f.value?(V(),H(qe,{key:0},[U(Br,{class:"row"},{default:pe(()=>[U(ri,{style:{flex:"1"},checked:te(o).bold,onClick:_[1]||(_[1]=z=>R("bold"))},{default:pe(()=>[U(T)]),_:1},8,["checked"]),U(ri,{style:{flex:"1"},checked:te(o).em,onClick:_[2]||(_[2]=z=>R("em"))},{default:pe(()=>[U(O)]),_:1},8,["checked"]),U(ri,{style:{flex:"1"},checked:te(o).underline,onClick:_[3]||(_[3]=z=>R("underline"))},{default:pe(()=>[U(N)]),_:1},8,["checked"]),U(ri,{style:{flex:"1"},checked:te(o).strikethrough,onClick:_[4]||(_[4]=z=>R("strikethrough"))},{default:pe(()=>[U(P)]),_:1},8,["checked"])]),_:1}),U(Br,{class:"row"},{default:pe(()=>[U(Mt,{style:{flex:"1"},onClick:_[5]||(_[5]=z=>R("fontsize-add"))},{default:pe(()=>[U(C),_[22]||(_[22]=rt("+"))]),_:1,__:[22]}),U(Mt,{style:{flex:"1"},onClick:_[6]||(_[6]=z=>R("fontsize-reduce"))},{default:pe(()=>[U(C),_[23]||(_[23]=rt("-"))]),_:1,__:[23]})]),_:1}),U(Yf,{class:"row","button-style":"solid",value:te(o).align,"onUpdate:value":_[7]||(_[7]=z=>R("align",z))},{default:pe(()=>[U(Nr,{value:"left",style:{flex:"1"}},{default:pe(()=>[U(E)]),_:1}),U(Nr,{value:"center",style:{flex:"1"}},{default:pe(()=>[U(F)]),_:1}),U(Nr,{value:"right",style:{flex:"1"}},{default:pe(()=>[U(Y)]),_:1})]),_:1},8,["value"])],64)):at("",!0),d.value?(V(),H("div",r9t,[_[25]||(_[25]=I("div",{class:"label"},"文字颜色:",-1)),I("div",a9t,[(V(),H(qe,null,bt(e,z=>I("div",{class:"color",key:z,onClick:de=>x(z)},[I("div",{class:"color-block",style:We({backgroundColor:z})},null,4)],8,i9t)),64)),I("div",o9t,[U(sn,{trigger:"click"},{content:pe(()=>[U(Ir,{modelValue:A.value,"onUpdate:modelValue":_[8]||(_[8]=z=>x(z))},null,8,["modelValue"])]),default:pe(()=>[_[24]||(_[24]=I("div",{class:"color-block"},null,-1))]),_:1,__:[24]})])])])):at("",!0),h.value?(V(),H("div",s9t,[_[27]||(_[27]=I("div",{class:"label"},"填充色:",-1)),I("div",l9t,[(V(),H(qe,null,bt(e,z=>I("div",{class:"color",key:z,onClick:de=>S(z)},[I("div",{class:"color-block",style:We({backgroundColor:z})},null,4)],8,c9t)),64)),I("div",u9t,[U(sn,{trigger:"click"},{content:pe(()=>[U(Ir,{modelValue:M.value,"onUpdate:modelValue":_[9]||(_[9]=z=>S(z))},null,8,["modelValue"])]),default:pe(()=>[_[26]||(_[26]=I("div",{class:"color-block"},null,-1))]),_:1,__:[26]})])])])):at("",!0),!f.value&&!d.value&&!h.value?(V(),H("div",f9t,"暂无可用属性")):at("",!0)])):at("",!0),u.value==="common"?(V(),H("div",d9t,[U(Br,{class:"row"},{default:pe(()=>[U(Mt,{style:{flex:"1"},onClick:_[10]||(_[10]=z=>m())},{default:pe(()=>[U(Q,{class:"icon"}),_[28]||(_[28]=rt(" 复制"))]),_:1,__:[28]}),U(Mt,{style:{flex:"1"},onClick:_[11]||(_[11]=z=>te(y)())},{default:pe(()=>[U(K,{class:"icon"}),_[29]||(_[29]=rt(" 删除"))]),_:1,__:[29]})]),_:1}),U(hn,{margin:20}),U(Br,{class:"row"},{default:pe(()=>[U(Mt,{style:{flex:"1"},onClick:_[12]||(_[12]=z=>te(p)(te(a),te(Qa).TOP))},{default:pe(()=>[U(ne,{class:"icon"}),_[30]||(_[30]=rt(" 置顶"))]),_:1,__:[30]}),U(Mt,{style:{flex:"1"},onClick:_[13]||(_[13]=z=>te(p)(te(a),te(Qa).BOTTOM))},{default:pe(()=>[U(Z,{class:"icon"}),_[31]||(_[31]=rt(" 置底"))]),_:1,__:[31]}),U(Mt,{style:{flex:"1"},onClick:_[14]||(_[14]=z=>te(p)(te(a),te(Qa).UP))},{default:pe(()=>[U($,{class:"icon"}),_[32]||(_[32]=rt(" 上移"))]),_:1,__:[32]}),U(Mt,{style:{flex:"1"},onClick:_[15]||(_[15]=z=>te(p)(te(a),te(Qa).DOWN))},{default:pe(()=>[U(G,{class:"icon"}),_[33]||(_[33]=rt(" 下移"))]),_:1,__:[33]})]),_:1}),U(hn,{margin:20}),U(Br,{class:"row"},{default:pe(()=>[U(Mt,{style:{flex:"1"},onClick:_[16]||(_[16]=z=>te(v)(te(qn).LEFT))},{default:pe(()=>[U(ee,{class:"icon"}),_[34]||(_[34]=rt(" 左对齐"))]),_:1,__:[34]}),U(Mt,{style:{flex:"1"},onClick:_[17]||(_[17]=z=>te(v)(te(qn).HORIZONTAL))},{default:pe(()=>[U(ce,{class:"icon"}),_[35]||(_[35]=rt(" 水平居中"))]),_:1,__:[35]}),U(Mt,{style:{flex:"1"},onClick:_[18]||(_[18]=z=>te(v)(te(qn).RIGHT))},{default:pe(()=>[U(B,{class:"icon"}),_[36]||(_[36]=rt(" 右对齐"))]),_:1,__:[36]})]),_:1}),U(Br,{class:"row"},{default:pe(()=>[U(Mt,{style:{flex:"1"},onClick:_[19]||(_[19]=z=>te(v)(te(qn).TOP))},{default:pe(()=>[U(xe,{class:"icon"}),_[37]||(_[37]=rt(" 上对齐"))]),_:1,__:[37]}),U(Mt,{style:{flex:"1"},onClick:_[20]||(_[20]=z=>te(v)(te(qn).VERTICAL))},{default:pe(()=>[U(_e,{class:"icon"}),_[38]||(_[38]=rt(" 垂直居中"))]),_:1,__:[38]}),U(Mt,{style:{flex:"1"},onClick:_[21]||(_[21]=z=>te(v)(te(qn).BOTTOM))},{default:pe(()=>[U(se,{class:"icon"}),_[39]||(_[39]=rt(" 下对齐"))]),_:1,__:[39]})]),_:1})])):at("",!0)])])}}}),p9t=lt(h9t,[["__scopeId","data-v-211ddb23"]]),v9t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function g9t(t,e){return V(),H("svg",v9t,e[0]||(e[0]=[I("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M23.992 6H6v36h18m9-9l9-9l-9-9m-17 8.992h26"},null,-1)]))}const APe=vt({name:"icon-park-outline-logout",render:g9t}),m9t={class:"mobile-editor-header"},y9t={class:"history"},A9t=tt({__name:"Header",props:{changeMode:{type:Function}},setup(t){const{canUndo:e,canRedo:n}=nt(TD()),{redo:r,undo:a}=Pn();return(i,o)=>{const s=yTe,l=mTe,c=APe;return V(),H("div",m9t,[I("div",y9t,[I("div",{class:mt(["history-item",{disable:!te(e)}]),onClick:o[0]||(o[0]=on(u=>te(a)(),["stop"]))},[U(s),o[3]||(o[3]=rt(" 撤销"))],2),I("div",{class:mt(["history-item",{disable:!te(n)}]),onClick:o[1]||(o[1]=on(u=>te(r)(),["stop"]))},[U(l),o[4]||(o[4]=rt(" 重做"))],2)]),I("div",{class:"back",onClick:o[2]||(o[2]=u=>i.changeMode("preview"))},[U(c),o[5]||(o[5]=rt(" 退出编辑"))])])}}}),R9t=lt(A9t,[["__scopeId","data-v-357f0e11"]]),b9t={class:"mobile-editor"},x9t=tt({__name:"index",props:{changeMode:{type:Function}},setup(t){const e=It(),n=Wt(),{slideIndex:r,currentSlide:a,viewportRatio:i,viewportSize:o}=nt(e),{activeElementIdList:s,handleElement:l}=nt(n),c=un("contentRef"),u=un("viewportRef"),f=we([]),d=Fe(()=>a.value.background),{backgroundStyle:h}=PV(d),p=Fe(()=>{if(!c.value)return 1;const S=c.value.clientWidth,w=c.value.clientHeight;return w/S>=i.value?(S-20)/o.value:(w-20)/i.value/o.value});mn(()=>{s.value.length&&n.setActiveElementIdList([]),r.value!==0&&e.updateSlideIndex(0)});const v=Fe(()=>({width:o.value*p.value+"px",height:o.value*i.value*p.value+"px"})),g=we([]);TS(()=>{g.value=a.value?JSON.parse(JSON.stringify(a.value.elements)):[]});const{dragElement:m}=b5e(g,f,p),{scaleElement:R}=R5e(g,f,p),{rotateElement:A}=y5e(g,u,p),x=(S,w,_=!0)=>{s.value.includes(w.id)||(n.setActiveElementIdList([w.id]),n.setHandleElementId(w.id)),_&&m(S,w)},M=()=>{n.setActiveElementIdList([])};return(S,w)=>(V(),H("div",b9t,[U(R9t,{changeMode:S.changeMode},null,8,["changeMode"]),I("div",{class:"content",ref_key:"contentRef",ref:c,onTouchstart:w[0]||(w[0]=_=>M())},[I("div",{class:"viewport-wrapper",style:We(v.value)},[I("div",{class:"background",style:We(te(h))},null,4),(V(!0),H(qe,null,bt(f.value,(_,T)=>(V(),Ue(oTe,{key:T,type:_.type,axis:_.axis,length:_.length,canvasScale:p.value},null,8,["type","axis","length","canvasScale"]))),128)),(V(!0),H(qe,null,bt(g.value,_=>(V(),H(qe,{key:_.id},[_.type!=="line"?(V(),Ue(Ykt,{key:0,elementInfo:_,isSelected:te(s).includes(_.id),canvasScale:p.value,scaleElement:te(R),rotateElement:te(A)},null,8,["elementInfo","isSelected","canvasScale","scaleElement","rotateElement"])):at("",!0)],64))),128)),I("div",{class:"viewport",ref_key:"viewportRef",ref:u,style:We({transform:`scale(${p.value})`})},[(V(!0),H(qe,null,bt(g.value,(_,T)=>(V(),Ue(Ukt,{key:_.id,elementInfo:_,elementIndex:T+1,selectElement:x},null,8,["elementInfo","elementIndex"]))),128))],4)],4)],544),U(qkt),te(l)?(V(),Ue(p9t,{key:0})):at("",!0)]))}}),S9t=lt(x9t,[["__scopeId","data-v-7c378ebd"]]),M9t={class:"header"},_9t=tt({__name:"MobilePlayer",props:{changeMode:{type:Function}},setup(t){const e=It(),{slides:n,slideIndex:r,viewportRatio:a}=nt(e),{slidesWithTurningMode:i}=aPe(),o=we(!1),s=we({width:0,height:0});mn(()=>{r.value!==0&&e.updateSlideIndex(0),s.value={width:document.body.clientHeight,height:document.body.clientWidth}});const l=Fe(()=>{const d=s.value.height/s.value.width;let h=0,p=0;return d>=a.value?(h=s.value.width,p=h*a.value):(p=s.value.height,h=p/a.value),{width:h,height:p}}),c=we(null),u=d=>{c.value={x:d.changedTouches[0].pageX,y:d.changedTouches[0].pageY}},f=d=>{if(!c.value)return;const h=d.changedTouches[0].pageX-c.value.x,p=d.changedTouches[0].pageY-c.value.y,v=Math.abs(h),g=Math.abs(p);v>g&&v>50&&(h<0&&r.value>0&&e.updateSlideIndex(r.value-1),h>0&&r.value<n.value.length-1&&e.updateSlideIndex(r.value+1)),g>v&&g>50&&(p>0&&r.value>0&&e.updateSlideIndex(r.value-1),p<0&&r.value<n.value.length-1&&e.updateSlideIndex(r.value+1))};return(d,h)=>{const p=APe;return V(),H("div",{class:"mobile-player",style:We({width:s.value.width+"px",height:s.value.height+"px",transform:`rotate(90deg) translateY(-${s.value.height}px)`})},[I("div",{class:"screen-slide-list",onClick:h[0]||(h[0]=v=>o.value=!o.value),onTouchstart:h[1]||(h[1]=v=>u(v)),onTouchend:h[2]||(h[2]=v=>f(v))},[(V(!0),H(qe,null,bt(te(i),(v,g)=>(V(),H("div",{class:mt(["slide-item",`turning-mode-${v.turningMode||"slideY"}`,{current:g===te(r),before:g<te(r),after:g>te(r),hide:(g===te(r)-1||g===te(r)+1)&&v.turningMode!==te(i)[te(r)].turningMode,last:g===te(r)-1,next:g===te(r)+1}]),key:v.id},[Math.abs(te(r)-g)<2?(V(),H("div",{key:0,class:"slide-content",style:We({width:l.value.width+"px",height:l.value.height+"px"})},[U(bc,{slide:v,size:l.value.width},null,8,["slide","size"])],4)):at("",!0)],2))),128))],32),o.value?(V(),H(qe,{key:0},[I("div",M9t,[I("div",{class:"back",onClick:h[3]||(h[3]=v=>d.changeMode("preview"))},[U(p),h[4]||(h[4]=rt(" 退出播放"))])]),U(yPe,{class:"thumbnails"})],64)):at("",!0)],4)}}}),w9t=lt(_9t,[["__scopeId","data-v-7a200bd5"]]),L9t={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function T9t(t,e){return V(),H("svg",L9t,e[0]||(e[0]=[I("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[I("path",{"stroke-linecap":"round",d:"M16 40H6a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h36a2 2 0 0 1 2 2v6"}),I("path",{d:"M42 24H26a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V26a2 2 0 0 0-2-2Z"})],-1)]))}const O9t=vt({name:"icon-park-outline-full-screen-play",render:T9t}),P9t={class:"thumbnail-list"},C9t={class:"menu"},N9t=tt({__name:"MobilePreview",props:{changeMode:{type:Function}},setup(t){const{slides:e}=nt(It()),{slidesLoadLimit:n}=ZS(),r=un("mobileRef"),a=we(0);return mn(()=>{r.value&&(a.value=r.value.clientWidth)}),(i,o)=>{const s=tte,l=O9t;return V(),H("div",{ref_key:"mobileRef",ref:r,class:"mobile-preview"},[I("div",P9t,[(V(!0),H(qe,null,bt(te(e),(c,u)=>(V(),H("div",{key:c.id,class:"thumbnail-item"},[U(bc,{slide:c,size:a.value-20,visible:u<te(n)},null,8,["slide","size","visible"])]))),128))]),I("div",C9t,[I("div",{class:"menu-item",onClick:o[0]||(o[0]=c=>i.changeMode("editor"))},[U(s,{class:"icon"}),o[2]||(o[2]=rt(" 编辑 "))]),U(hn,{type:"vertical",style:{height:"30px"}}),I("div",{class:"menu-item",onClick:o[1]||(o[1]=c=>i.changeMode("player"))},[U(l,{class:"icon"}),o[3]||(o[3]=rt(" 播放 "))])])],512)}}}),I9t=lt(N9t,[["__scopeId","data-v-a623dd7b"]]),k9t={class:"mobile"},E9t=tt({__name:"index",setup(t){const e=we("preview"),n=a=>e.value=a,r=Fe(()=>({editor:S9t,player:w9t,preview:I9t})[e.value]||null);return(a,i)=>(V(),H("div",k9t,[(V(),Ue(Eh(r.value),{changeMode:n}))]))}}),F9t=lt(E9t,[["__scopeId","data-v-34f10900"]]),X9t=tt({__name:"App",setup(t){const e=VXe(),n=Wt(),r=It(),a=TD(),i=HSe(),{databaseId:o}=nt(n),{slides:s}=nt(r),{screening:l}=nt(i),c=new URLSearchParams(window.location.search).get("mode")==="audience",u=new URLSearchParams(window.location.search).get("canvasanvil")==="embedded",f=`${window.location.protocol}//${window.location.hostname}:8001`;window.onbeforeunload=()=>!1,mn(async()=>{if(c)r.setSlides([{id:Gn(10),elements:[]}]),i.setScreening(!0);else{if(u)return;const h=rUe();if(h!=null&&h.length)r.setSlides(h),aUe();else{const p=await YF.getMockData("slides");r.setSlides(p)}await DXe(),a.initSnapshotDatabase()}});const d=h=>{if(h.origin!==f)return;const p=h.data;if(!p||typeof p!="object"||p.type!==qVe)return;const v=x4e(p.payload);v!=null&&v.length&&r.setSlides(v)};return u&&window.addEventListener("message",d),tg(()=>{u&&window.removeEventListener("message",d)}),window.addEventListener("beforeunload",()=>{const h=localStorage.getItem(VF),p=h?JSON.parse(h):[];p.push(o.value);const v=JSON.stringify(p);localStorage.setItem(VF,v)}),(h,p)=>te(s).length?(V(),H(qe,{key:0},[te(l)?(V(),Ue(Vkt,{key:0})):te(e)?(V(),Ue(WNt,{key:1})):(V(),Ue(F9t,{key:2}))],64)):(V(),Ue(zD,{key:1,tip:"数据初始化中,请稍等 ...",loading:"",mask:!1}))}}),D9t={class:"menu-content"},V9t=["onClick"],U9t={class:"text"},W9t={key:0,class:"sub-text"},Y9t=tt({__name:"MenuContent",props:{menus:{},handleClickMenuItem:{type:Function}},setup(t){return(e,n)=>{const r=Wbe("menu-content",!0);return V(),H("ul",D9t,[(V(!0),H(qe,null,bt(e.menus,(a,i)=>(V(),H(qe,{key:a.text||i},[a.hide?at("",!0):(V(),H("li",{key:0,class:mt(["menu-item",{divider:a.divider,disable:a.disable}]),onClick:on(o=>e.handleClickMenuItem(a),["stop"])},[a.divider?at("",!0):(V(),H("div",{key:0,class:mt(["menu-item-content",{"has-children":a.children,"has-handler":a.handler}])},[I("span",U9t,Vt(a.text),1),a.subText&&!a.children?(V(),H("span",W9t,Vt(a.subText),1)):at("",!0),a.children&&a.children.length?(V(),Ue(r,{key:1,class:"sub-menu",menus:a.children,handleClickMenuItem:e.handleClickMenuItem},null,8,["menus","handleClickMenuItem"])):at("",!0)],2))],10,V9t))],64))),128))])}}}),B9t=lt(Y9t,[["__scopeId","data-v-0462ec4c"]]),Z9t=tt({__name:"index",props:{axis:{},el:{},menus:{},removeContextmenu:{type:Function}},setup(t){const e=t,n=Fe(()=>{const{x:l,y:c}=e.axis,u=e.menus.filter(g=>!(g.divider||g.hide)).length,f=e.menus.filter(g=>g.divider).length,d=180,h=u*30+f*11+5*2,p=document.body.clientWidth,v=document.body.clientHeight;return{left:p<=l+d?l-d:l,top:v<=c+h?c-h:c}}),r=a=>{a.disable||a.children&&!a.handler||(a.handler&&a.handler(e.el),e.removeContextmenu())};return(a,i)=>(V(),H(qe,null,[I("div",{class:"contextmenu-mask",onContextmenu:i[0]||(i[0]=on(o=>a.removeContextmenu(),["prevent"])),onMousedown:i[1]||(i[1]=on(o=>a.removeContextmenu(),["left"]))},null,32),I("div",{class:"contextmenu",style:We({left:n.value.left+"px",top:n.value.top+"px"}),onContextmenu:i[2]||(i[2]=on(()=>{},["prevent"]))},[U(B9t,{menus:a.menus,handleClickMenuItem:r},null,8,["menus"])],36)],64))}}),V5="CTX_CONTEXTMENU_HANDLER",Q9t=(t,e,n)=>{e.stopPropagation(),e.preventDefault();const r=n.value(t);if(!r)return;let a=null;const i=()=>{a&&(document.body.removeChild(a),a=null),t.classList.remove("contextmenu-active"),document.body.removeEventListener("scroll",i),window.removeEventListener("resize",i)},o={axis:{x:e.x,y:e.y},el:t,menus:r,removeContextmenu:i};a=document.createElement("div");const s=U(Z9t,o,null);i0(s,a),document.body.appendChild(a),t.classList.add("contextmenu-active"),document.body.addEventListener("scroll",i),window.addEventListener("resize",i)},K9t={mounted(t,e){t[V5]=n=>Q9t(t,n,e),t.addEventListener("contextmenu",t[V5])},unmounted(t){t&&t[V5]&&(t.removeEventListener("contextmenu",t[V5]),delete t[V5])}},U5="CTX_CLICK_OUTSIDE_HANDLER",H9t=(t,e,n)=>{const r=n.value,a=e.composedPath();(a?a.indexOf(t)<0:!t.contains(e.target))&&r(e)},G9t={mounted(t,e){t[U5]=n=>H9t(t,n,e),setTimeout(()=>{document.addEventListener("click",t[U5])},0)},unmounted(t){t[U5]&&(document.removeEventListener("click",t[U5]),delete t[U5])}},W5="TOOLTIP_INSTANCE",$9t={mounted(t,e){let n="",r="top",a=[300,0];typeof e.value=="string"?n=e.value:(n=e.value.content,e.value.placement!==void 0&&(r=e.value.placement),e.value.delay!==void 0&&(a=e.value.delay)),t[W5]=My(t,{content:n,theme:"tooltip",duration:100,animation:"scale",allowHTML:!0,placement:r,delay:a})},updated(t,e){let n="";typeof e.value=="string"?n=e.value:n=e.value.content,t[W5]&&t[W5].setContent(n)},unmounted(t){t[W5]&&t[W5].destroy()}},z9t={mounted(t,e){HRe(t,e.value)},updated(t,e){HRe(t,e.value)},unmounted(t){J9t(t)}},J9t=t=>{const e=t.querySelector(".directive-loading-overlay");e&&e.remove(),t._vLoadingAddedPosition&&(t.style.removeProperty("position"),delete t._vLoadingAddedPosition)},HRe=(t,e)=>{let n=!1,r="";typeof e=="boolean"?n=e:(e.text&&(r=e.text),n=e.state);let a=t.querySelector(".directive-loading-overlay");n?(getComputedStyle(t).position==="static"&&(t.style.position="relative",t._vLoadingAddedPosition=!0),a||(a=document.createElement("div"),a.className="directive-loading-overlay",t.appendChild(a)),r?(a.classList.add("has-text"),a.style.setProperty("--directive-loading-text",`"${r}"`)):(a.classList.remove("has-text"),a.style.removeProperty("--directive-loading-text"))):(a&&a.remove(),t._vLoadingAddedPosition&&(t.style.removeProperty("position"),delete t._vLoadingAddedPosition))},j9t={install(t){t.directive("contextmenu",K9t),t.directive("click-outside",G9t),t.directive("tooltip",$9t),t.directive("loading",z9t)}},xte=OF(X9t);xte.use(j9t);xte.use(tFe());xte.mount("#app");