@infinilabs/doc-detail 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode("*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }:root{--color-primary: #1677ff;--color-border: #d9d9d9;--color-primary-bg: #e6f4ff;--color-text-secondary: rgba(0,0,0,.65);--color-bg-layout: #f5f5f5}.dark{--color-primary: #1668dc;--color-border: #424242;--color-primary-bg: #15325b;--color-text-secondary: rgba(255,255,255,.65);--color-bg-layout: #000000}.float-left{float:left}.my-2{margin-top:.5rem;margin-bottom:.5rem}.ml-2{margin-left:.5rem}.mr-3{margin-right:.75rem}.children\\:size-4>*{width:1rem;height:1rem}.size-3{width:.75rem;height:.75rem}.size-6{width:1.5rem;height:1.5rem}.size-full\\!{width:100%!important;height:100%!important}.children\\:h-unset\\!>*{height:unset!important}.children\\:w-full\\!>*{width:100%!important}.h-full{height:100%}.w-1\\/2{width:50%}.w-24{width:6rem}.w-full{width:100%}.flex{display:flex}.inline-flex{display:inline-flex}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.rotate-90{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:90deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-scale-y-100{--un-scale-y:-1;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-0\\.5{gap:.125rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-row-2{row-gap:.5rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.border{border-width:1px}.border-border{border-color:var(--color-border)}.rounded-lg{border-radius:.5rem}.border-solid{border-style:solid}.bg-black\\/3{background-color:#00000008}.bg-transparent{background-color:transparent}.dark .dark\\:bg-white\\/4{background-color:#ffffff0a}.\\[\\&\\>\\.docx\\]\\:p-0\\!>.docx{padding:0!important}.p-4{padding:1rem}.p-4\\!{padding:1rem!important}.text-3{font-size:.75rem}.text-3\\.5{font-size:.875rem}.text-4\\.5\\/6{font-size:1.125rem;line-height:1.5rem}.text-primary,.hover\\:text-primary:hover{color:var(--color-primary)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@media (max-width: 639.9px){.\\<sm\\:w-full{width:100%}}@keyframes x-markdown-fade-in{0%{opacity:0}to{opacity:1}}.x-markdown{--text-color: inherit;--font-size: inherit;--margin-block: 0 0 1em 0;--td-th-padding: .85em 1em;--pre-th-td-padding: 2px 0;--border-font-weight: 600;--padding-ul-ol: 0 0 0 1em;--margin-ul-ol: 0 0 1em 1.8em;--margin-li: .25em 0;--margin-pre: 1em 0;--padding-code-inline: .2em .4em;--margin-code-inline: 0 .2em;--code-inline-text: .85em;--small-border-radius: 2px;--image-margin: .5em 0;--hr-margin: 1.5em 0;--table-margin: 1em 0;font-size:var(--font-size);line-height:1.5714285714285714;width:100%;color:var(--text-color)}.x-markdown p,.x-markdown div,.x-markdown span,.x-markdown li{word-break:break-word;overflow-wrap:break-word}.x-markdown pre,.x-markdown code{word-break:break-word;overflow-wrap:break-word;white-space:pre-wrap}.x-markdown th,.x-markdown td{padding:var(--td-th-padding)}.x-markdown th{font-weight:var(--border-font-weight)}.x-markdown pre table{box-shadow:none}.x-markdown pre td,.x-markdown pre th{padding:var(--pre-th-td-padding);border:none;text-align:left}.x-markdown p{margin:var(--margin-block)}.x-markdown p:first-child{margin-top:0}.x-markdown p:last-child{margin-bottom:0}.x-markdown ul,.x-markdown ol{margin:var(--margin-ul-ol);padding:var(--padding-ul-ol)}.x-markdown ul:first-child,.x-markdown ol:first-child{margin-top:0}.x-markdown ul:last-child,.x-markdown ol:last-child{margin-bottom:0}.x-markdown ol>li{list-style:decimal}.x-markdown ul>li{list-style:disc}.x-markdown li{margin:var(--margin-li)}.x-markdown li:first-child{margin-top:0}.x-markdown li:last-child{margin-bottom:0}.x-markdown pre{margin:var(--margin-pre);overflow-x:auto}.x-markdown pre:first-child{margin-top:0}.x-markdown pre:last-child{margin-bottom:0}.x-markdown code{padding:var(--padding-code-inline);margin:var(--margin-code-inline);font-size:var(--code-inline-text);border-radius:var(--small-border-radius)}.x-markdown pre code{padding:0;margin:0;font-size:inherit;border-radius:0;line-height:2}.x-markdown img{max-width:100%;height:auto;margin:var(--image-margin)}.x-markdown hr{margin:var(--hr-margin)}.x-markdown table:not(pre){margin:var(--table-margin);border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto}.x-markdown table:not(pre):first-child{margin-top:0}.x-markdown table:not(pre):last-child{margin-bottom:0}.x-markdown .inline-katex .katex-display{display:inline-block;margin:0;text-align:initial;vertical-align:middle}.x-markdown .inline-katex .katex-display>.katex{display:inline-block;text-align:initial;white-space:normal}.x-markdown .inline-katex .katex-display>.katex>.katex-html{display:inline-block;position:static}.x-markdown .inline-katex .katex-display>.katex>.katex-html>.tag{position:static}")),document.head.appendChild(r)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode("*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }:root{--color-primary: #1677ff;--color-border: #d9d9d9;--color-primary-bg: #e6f4ff;--color-text-secondary: rgba(0,0,0,.65);--color-bg-layout: #f5f5f5}.dark{--color-primary: #1668dc;--color-border: #424242;--color-primary-bg: #15325b;--color-text-secondary: rgba(255,255,255,.65);--color-bg-layout: #000000}.float-left{float:left}.my-2{margin-top:.5rem;margin-bottom:.5rem}.ml-2{margin-left:.5rem}.mr-3{margin-right:.75rem}.children\\:size-4>*{width:1rem;height:1rem}.size-3{width:.75rem;height:.75rem}.size-6{width:1.5rem;height:1.5rem}.size-full\\!{width:100%!important;height:100%!important}.children\\:h-unset\\!>*{height:unset!important}.children\\:w-full\\!>*{width:100%!important}.h-full{height:100%}.w-1\\/2{width:50%}.w-24{width:6rem}.w-full{width:100%}.flex{display:flex}.inline-flex{display:inline-flex}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.rotate-90{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:90deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-scale-y-100{--un-scale-y:-1;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-0\\.5{gap:.125rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-row-2{row-gap:.5rem}.\\[\\&_\\.pptx-preview-wrapper\\]\\:overflow-hidden .pptx-preview-wrapper,.overflow-hidden{overflow:hidden}.overflow-auto{overflow:auto}.border{border-width:1px}.border-border{border-color:var(--color-border)}.rounded-lg{border-radius:.5rem}.border-solid{border-style:solid}.bg-black\\/3{background-color:#00000008}.bg-transparent{background-color:transparent}.dark .dark\\:bg-white\\/4{background-color:#ffffff0a}.\\[\\&\\>\\.docx\\]\\:p-0\\!>.docx{padding:0!important}.p-4{padding:1rem}.p-4\\!{padding:1rem!important}.text-3{font-size:.75rem}.text-3\\.5{font-size:.875rem}.text-4\\.5\\/6{font-size:1.125rem;line-height:1.5rem}.text-primary,.hover\\:text-primary:hover{color:var(--color-primary)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@media (max-width: 639.9px){.\\<sm\\:w-full{width:100%}}@keyframes x-markdown-fade-in{0%{opacity:0}to{opacity:1}}.x-markdown{--text-color: inherit;--font-size: inherit;--margin-block: 0 0 1em 0;--td-th-padding: .85em 1em;--pre-th-td-padding: 2px 0;--border-font-weight: 600;--padding-ul-ol: 0 0 0 1em;--margin-ul-ol: 0 0 1em 1.8em;--margin-li: .25em 0;--margin-pre: 1em 0;--padding-code-inline: .2em .4em;--margin-code-inline: 0 .2em;--code-inline-text: .85em;--small-border-radius: 2px;--image-margin: .5em 0;--hr-margin: 1.5em 0;--table-margin: 1em 0;font-size:var(--font-size);line-height:1.5714285714285714;width:100%;color:var(--text-color)}.x-markdown p,.x-markdown div,.x-markdown span,.x-markdown li{word-break:break-word;overflow-wrap:break-word}.x-markdown pre,.x-markdown code{word-break:break-word;overflow-wrap:break-word;white-space:pre-wrap}.x-markdown th,.x-markdown td{padding:var(--td-th-padding)}.x-markdown th{font-weight:var(--border-font-weight)}.x-markdown pre table{box-shadow:none}.x-markdown pre td,.x-markdown pre th{padding:var(--pre-th-td-padding);border:none;text-align:left}.x-markdown p{margin:var(--margin-block)}.x-markdown p:first-child{margin-top:0}.x-markdown p:last-child{margin-bottom:0}.x-markdown ul,.x-markdown ol{margin:var(--margin-ul-ol);padding:var(--padding-ul-ol)}.x-markdown ul:first-child,.x-markdown ol:first-child{margin-top:0}.x-markdown ul:last-child,.x-markdown ol:last-child{margin-bottom:0}.x-markdown ol>li{list-style:decimal}.x-markdown ul>li{list-style:disc}.x-markdown li{margin:var(--margin-li)}.x-markdown li:first-child{margin-top:0}.x-markdown li:last-child{margin-bottom:0}.x-markdown pre{margin:var(--margin-pre);overflow-x:auto}.x-markdown pre:first-child{margin-top:0}.x-markdown pre:last-child{margin-bottom:0}.x-markdown code{padding:var(--padding-code-inline);margin:var(--margin-code-inline);font-size:var(--code-inline-text);border-radius:var(--small-border-radius)}.x-markdown pre code{padding:0;margin:0;font-size:inherit;border-radius:0;line-height:2}.x-markdown img{max-width:100%;height:auto;margin:var(--image-margin)}.x-markdown hr{margin:var(--hr-margin)}.x-markdown table:not(pre){margin:var(--table-margin);border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto}.x-markdown table:not(pre):first-child{margin-top:0}.x-markdown table:not(pre):last-child{margin-bottom:0}.x-markdown .inline-katex .katex-display{display:inline-block;margin:0;text-align:initial;vertical-align:middle}.x-markdown .inline-katex .katex-display>.katex{display:inline-block;text-align:initial;white-space:normal}.x-markdown .inline-katex .katex-display>.katex>.katex-html{display:inline-block;position:static}.x-markdown .inline-katex .katex-display>.katex>.katex-html>.tag{position:static}")),document.head.appendChild(r)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
2
  "use strict";var Ime=t=>{throw TypeError(t)};var iU=(t,e,r)=>e.has(t)||Ime("Cannot "+r);var Ci=(t,e,r)=>(iU(t,e,"read from private field"),r?r.call(t):e.get(t)),gf=(t,e,r)=>e.has(t)?Ime("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Lc=(t,e,r,n)=>(iU(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),mf=(t,e,r)=>(iU(t,e,"access private method"),r);var kme=(t,e,r,n)=>({set _(a){Lc(t,e,a,r)},get _(){return Ci(t,e,n)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Me=require("react"),ar=require("react/jsx-runtime"),Xi=require("antd"),ED=require("lucide-react");var sU=typeof document<"u"?document.currentScript:null;function Ydt(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const Pr=Ydt(Me),J3e=Me.createContext({});function Wdt(t){const e=Me.useRef(null);return e.current===null&&(e.current=t()),e.current}const Kte=typeof window<"u",qdt=Kte?Me.useLayoutEffect:Me.useEffect,Zte=Me.createContext(null);function Qte(t,e){t.indexOf(e)===-1&&t.push(e)}function Jte(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}const cp=(t,e,r)=>r>e?e:r<t?t:r;function Rj(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}let nw=()=>{},Wg=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(nw=(t,e,r)=>{!t&&typeof console<"u"&&console.warn(Rj(e,r))},Wg=(t,e,r)=>{if(!t)throw new Error(Rj(e,r))});const qg={},e4e=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function t4e(t){return typeof t=="object"&&t!==null}const r4e=t=>/^0[^.\s]+$/u.test(t);function ere(t){let e;return()=>(e===void 0&&(e=t()),e)}const Vd=t=>t,Xdt=(t,e)=>r=>e(t(r)),XI=(...t)=>t.reduce(Xdt),dN=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n};class tre{constructor(){this.subscriptions=[]}add(e){return Qte(this.subscriptions,e),()=>Jte(this.subscriptions,e)}notify(e,r,n){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](e,r,n);else for(let i=0;i<a;i++){const s=this.subscriptions[i];s&&s(e,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const np=t=>t*1e3,Pd=t=>t/1e3;function n4e(t,e){return e?t*(1e3/e):0}const Ome=new Set;function rre(t,e,r){t||Ome.has(e)||(console.warn(Rj(e,r)),Ome.add(e))}const a4e=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,jdt=1e-7,Kdt=12;function Zdt(t,e,r,n,a){let i,s,o=0;do s=e+(r-e)/2,i=a4e(s,n,a)-t,i>0?r=s:e=s;while(Math.abs(i)>jdt&&++o<Kdt);return s}function jI(t,e,r,n){if(t===e&&r===n)return Vd;const a=i=>Zdt(i,0,1,t,r);return i=>i===0||i===1?i:a4e(a(i),e,n)}const i4e=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,s4e=t=>e=>1-t(1-e),o4e=jI(.33,1.53,.69,.99),nre=s4e(o4e),l4e=i4e(nre),c4e=t=>(t*=2)<1?.5*nre(t):.5*(2-Math.pow(2,-10*(t-1))),are=t=>1-Math.sin(Math.acos(t)),u4e=s4e(are),d4e=i4e(are),Qdt=jI(.42,0,1,1),Jdt=jI(0,0,.58,1),h4e=jI(.42,0,.58,1),eht=t=>Array.isArray(t)&&typeof t[0]!="number",f4e=t=>Array.isArray(t)&&typeof t[0]=="number",Dme={linear:Vd,easeIn:Qdt,easeInOut:h4e,easeOut:Jdt,circIn:are,circInOut:d4e,circOut:u4e,backIn:nre,backInOut:l4e,backOut:o4e,anticipate:c4e},tht=t=>typeof t=="string",Lme=t=>{if(f4e(t)){Wg(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,r,n,a]=t;return jI(e,r,n,a)}else if(tht(t))return Wg(Dme[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),Dme[t];return t},SD=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function rht(t,e){let r=new Set,n=new Set,a=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(d){s.has(d)&&(u.schedule(d),t()),d(o)}const u={schedule:(d,h=!1,f=!1)=>{const g=f&&a?r:n;return h&&s.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),s.delete(d)},process:d=>{if(o=d,a){i=!0;return}a=!0,[r,n]=[n,r],r.forEach(l),r.clear(),a=!1,i&&(i=!1,u.process(d))}};return u}const nht=40;function p4e(t,e){let r=!1,n=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,s=SD.reduce((b,E)=>(b[E]=rht(i),b),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:d,update:h,preRender:f,render:p,postRender:g}=s,m=()=>{const b=qg.useManualTiming?a.timestamp:performance.now();r=!1,qg.useManualTiming||(a.delta=n?1e3/60:Math.max(Math.min(b-a.timestamp,nht),1)),a.timestamp=b,a.isProcessing=!0,o.process(a),l.process(a),u.process(a),d.process(a),h.process(a),f.process(a),p.process(a),g.process(a),a.isProcessing=!1,r&&e&&(n=!1,t(m))},_=()=>{r=!0,n=!0,a.isProcessing||t(m)};return{schedule:SD.reduce((b,E)=>{const S=s[E];return b[E]=(T,x=!1,w=!1)=>(r||_(),S.schedule(T,x,w)),b},{}),cancel:b=>{for(let E=0;E<SD.length;E++)s[SD[E]].cancel(b)},state:a,steps:s}}const{schedule:bi,cancel:Yv,state:Ho,steps:oU}=p4e(typeof requestAnimationFrame<"u"?requestAnimationFrame:Vd,!0);let yP;function aht(){yP=void 0}const ec={now:()=>(yP===void 0&&ec.set(Ho.isProcessing||qg.useManualTiming?Ho.timestamp:performance.now()),yP),set:t=>{yP=t,queueMicrotask(aht)}},g4e=t=>e=>typeof e=="string"&&e.startsWith(t),m4e=g4e("--"),iht=g4e("var(--"),ire=t=>iht(t)?sht.test(t.split("/*")[0].trim()):!1,sht=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Mme(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const aw={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},hN={...aw,transform:t=>cp(0,1,t)},TD={...aw,default:1},SR=t=>Math.round(t*1e5)/1e5,sre=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function oht(t){return t==null}const lht=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ore=(t,e)=>r=>!!(typeof r=="string"&&lht.test(r)&&r.startsWith(t)||e&&!oht(r)&&Object.prototype.hasOwnProperty.call(r,e)),v4e=(t,e,r)=>n=>{if(typeof n!="string")return n;const[a,i,s,o]=n.match(sre);return{[t]:parseFloat(a),[e]:parseFloat(i),[r]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},cht=t=>cp(0,255,t),lU={...aw,transform:t=>Math.round(cht(t))},__={test:ore("rgb","red"),parse:v4e("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+lU.transform(t)+", "+lU.transform(e)+", "+lU.transform(r)+", "+SR(hN.transform(n))+")"};function uht(t){let e="",r="",n="",a="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),a=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),a=t.substring(4,5),e+=e,r+=r,n+=n,a+=a),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}}const Nj={test:ore("#"),parse:uht,transform:__.transform},KI=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),tv=KI("deg"),ap=KI("%"),yr=KI("px"),dht=KI("vh"),hht=KI("vw"),Pme={...ap,parse:t=>ap.parse(t)/100,transform:t=>ap.transform(t*100)},rS={test:ore("hsl","hue"),parse:v4e("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+ap.transform(SR(e))+", "+ap.transform(SR(r))+", "+SR(hN.transform(n))+")"},ks={test:t=>__.test(t)||Nj.test(t)||rS.test(t),parse:t=>__.test(t)?__.parse(t):rS.test(t)?rS.parse(t):Nj.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?__.transform(t):rS.transform(t),getAnimatableNone:t=>{const e=ks.parse(t);return e.alpha=0,ks.transform(e)}},fht=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pht(t){return isNaN(t)&&typeof t=="string"&&(t.match(sre)?.length||0)+(t.match(fht)?.length||0)>0}const y4e="number",_4e="color",ght="var",mht="var(",Bme="${}",vht=/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 fN(t){const e=t.toString(),r=[],n={color:[],number:[],var:[]},a=[];let i=0;const o=e.replace(vht,l=>(ks.test(l)?(n.color.push(i),a.push(_4e),r.push(ks.parse(l))):l.startsWith(mht)?(n.var.push(i),a.push(ght),r.push(l)):(n.number.push(i),a.push(y4e),r.push(parseFloat(l))),++i,Bme)).split(Bme);return{values:r,split:o,indexes:n,types:a}}function b4e(t){return fN(t).values}function E4e(t){const{split:e,types:r}=fN(t),n=e.length;return a=>{let i="";for(let s=0;s<n;s++)if(i+=e[s],a[s]!==void 0){const o=r[s];o===y4e?i+=SR(a[s]):o===_4e?i+=ks.transform(a[s]):i+=a[s]}return i}}const yht=t=>typeof t=="number"?0:ks.test(t)?ks.getAnimatableNone(t):t;function _ht(t){const e=b4e(t);return E4e(t)(e.map(yht))}const Wv={test:pht,parse:b4e,createTransformer:E4e,getAnimatableNone:_ht};function cU(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function bht({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let a=0,i=0,s=0;if(!e)a=i=s=r;else{const o=r<.5?r*(1+e):r+e-r*e,l=2*r-o;a=cU(l,o,t+1/3),i=cU(l,o,t),s=cU(l,o,t-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}function l4(t,e){return r=>r>0?e:t}const Hi=(t,e,r)=>t+(e-t)*r,uU=(t,e,r)=>{const n=t*t,a=r*(e*e-n)+n;return a<0?0:Math.sqrt(a)},Eht=[Nj,__,rS],Sht=t=>Eht.find(e=>e.test(t));function Fme(t){const e=Sht(t);if(nw(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let r=e.parse(t);return e===rS&&(r=bht(r)),r}const Ume=(t,e)=>{const r=Fme(t),n=Fme(e);if(!r||!n)return l4(t,e);const a={...r};return i=>(a.red=uU(r.red,n.red,i),a.green=uU(r.green,n.green,i),a.blue=uU(r.blue,n.blue,i),a.alpha=Hi(r.alpha,n.alpha,i),__.transform(a))},Ij=new Set(["none","hidden"]);function Tht(t,e){return Ij.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}function xht(t,e){return r=>Hi(t,e,r)}function lre(t){return typeof t=="number"?xht:typeof t=="string"?ire(t)?l4:ks.test(t)?Ume:Aht:Array.isArray(t)?S4e:typeof t=="object"?ks.test(t)?Ume:wht:l4}function S4e(t,e){const r=[...t],n=r.length,a=t.map((i,s)=>lre(i)(i,e[s]));return i=>{for(let s=0;s<n;s++)r[s]=a[s](i);return r}}function wht(t,e){const r={...t,...e},n={};for(const a in r)t[a]!==void 0&&e[a]!==void 0&&(n[a]=lre(t[a])(t[a],e[a]));return a=>{for(const i in n)r[i]=n[i](a);return r}}function Cht(t,e){const r=[],n={color:0,var:0,number:0};for(let a=0;a<e.values.length;a++){const i=e.types[a],s=t.indexes[i][n[i]],o=t.values[s]??0;r[a]=o,n[i]++}return r}const Aht=(t,e)=>{const r=Wv.createTransformer(e),n=fN(t),a=fN(e);return n.indexes.var.length===a.indexes.var.length&&n.indexes.color.length===a.indexes.color.length&&n.indexes.number.length>=a.indexes.number.length?Ij.has(t)&&!a.values.length||Ij.has(e)&&!n.values.length?Tht(t,e):XI(S4e(Cht(n,a),a.values),r):(nw(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),l4(t,e))};function T4e(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?Hi(t,e,r):lre(t)(t,e)}const Rht=t=>{const e=({timestamp:r})=>t(r);return{start:(r=!0)=>bi.update(e,r),stop:()=>Yv(e),now:()=>Ho.isProcessing?Ho.timestamp:ec.now()}},x4e=(t,e,r=10)=>{let n="";const a=Math.max(Math.round(e/r),2);for(let i=0;i<a;i++)n+=Math.round(t(i/(a-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},c4=2e4;function cre(t){let e=0;const r=50;let n=t.next(e);for(;!n.done&&e<c4;)e+=r,n=t.next(e);return e>=c4?1/0:e}function Nht(t,e=100,r){const n=r({...t,keyframes:[0,e]}),a=Math.min(cre(n),c4);return{type:"keyframes",ease:i=>n.next(a*i).value/e,duration:Pd(a)}}const Iht=5;function w4e(t,e,r){const n=Math.max(e-Iht,0);return n4e(r-t(n),e-n)}const $i={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},dU=.001;function kht({duration:t=$i.duration,bounce:e=$i.bounce,velocity:r=$i.velocity,mass:n=$i.mass}){let a,i;nw(t<=np($i.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-e;s=cp($i.minDamping,$i.maxDamping,s),t=cp($i.minDuration,$i.maxDuration,Pd(t)),s<1?(a=u=>{const d=u*s,h=d*t,f=d-r,p=kj(u,s),g=Math.exp(-h);return dU-f/p*g},i=u=>{const h=u*s*t,f=h*r+r,p=Math.pow(s,2)*Math.pow(u,2)*t,g=Math.exp(-h),m=kj(Math.pow(u,2),s);return(-a(u)+dU>0?-1:1)*((f-p)*g)/m}):(a=u=>{const d=Math.exp(-u*t),h=(u-r)*t+1;return-dU+d*h},i=u=>{const d=Math.exp(-u*t),h=(r-u)*(t*t);return d*h});const o=5/t,l=Dht(a,i,o);if(t=np(t),isNaN(l))return{stiffness:$i.stiffness,damping:$i.damping,duration:t};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:s*2*Math.sqrt(n*u),duration:t}}}const Oht=12;function Dht(t,e,r){let n=r;for(let a=1;a<Oht;a++)n=n-t(n)/e(n);return n}function kj(t,e){return t*Math.sqrt(1-e*e)}const Lht=["duration","bounce"],Mht=["stiffness","damping","mass"];function $me(t,e){return e.some(r=>t[r]!==void 0)}function Pht(t){let e={velocity:$i.velocity,stiffness:$i.stiffness,damping:$i.damping,mass:$i.mass,isResolvedFromDuration:!1,...t};if(!$me(t,Mht)&&$me(t,Lht))if(t.visualDuration){const r=t.visualDuration,n=2*Math.PI/(r*1.2),a=n*n,i=2*cp(.05,1,1-(t.bounce||0))*Math.sqrt(a);e={...e,mass:$i.mass,stiffness:a,damping:i}}else{const r=kht(t);e={...e,...r,mass:$i.mass},e.isResolvedFromDuration=!0}return e}function u4(t=$i.visualDuration,e=$i.bounce){const r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:n,restDelta:a}=r;const i=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],o={done:!1,value:i},{stiffness:l,damping:u,mass:d,duration:h,velocity:f,isResolvedFromDuration:p}=Pht({...r,velocity:-Pd(r.velocity||0)}),g=f||0,m=u/(2*Math.sqrt(l*d)),_=s-i,y=Pd(Math.sqrt(l/d)),v=Math.abs(_)<5;n||(n=v?$i.restSpeed.granular:$i.restSpeed.default),a||(a=v?$i.restDelta.granular:$i.restDelta.default);let b;if(m<1){const S=kj(y,m);b=T=>{const x=Math.exp(-m*y*T);return s-x*((g+m*y*_)/S*Math.sin(S*T)+_*Math.cos(S*T))}}else if(m===1)b=S=>s-Math.exp(-y*S)*(_+(g+y*_)*S);else{const S=y*Math.sqrt(m*m-1);b=T=>{const x=Math.exp(-m*y*T),w=Math.min(S*T,300);return s-x*((g+m*y*_)*Math.sinh(w)+S*_*Math.cosh(w))/S}}const E={calculatedDuration:p&&h||null,next:S=>{const T=b(S);if(p)o.done=S>=h;else{let x=S===0?g:0;m<1&&(x=S===0?np(g):w4e(b,S,T));const w=Math.abs(x)<=n,C=Math.abs(s-T)<=a;o.done=w&&C}return o.value=o.done?s:T,o},toString:()=>{const S=Math.min(cre(E),c4),T=x4e(x=>E.next(S*x).value,S,30);return S+"ms "+T},toTransition:()=>{}};return E}u4.applyToOptions=t=>{const e=Nht(t,100,u4);return t.ease=e.ease,t.duration=np(e.duration),t.type="keyframes",t};function Oj({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:d}){const h=t[0],f={done:!1,value:h},p=w=>o!==void 0&&w<o||l!==void 0&&w>l,g=w=>o===void 0?l:l===void 0||Math.abs(o-w)<Math.abs(l-w)?o:l;let m=r*e;const _=h+m,y=s===void 0?_:s(_);y!==_&&(m=y-h);const v=w=>-m*Math.exp(-w/n),b=w=>y+v(w),E=w=>{const C=v(w),R=b(w);f.done=Math.abs(C)<=u,f.value=f.done?y:R};let S,T;const x=w=>{p(f.value)&&(S=w,T=u4({keyframes:[f.value,g(f.value)],velocity:w4e(b,w,f.value),damping:a,stiffness:i,restDelta:u,restSpeed:d}))};return x(0),{calculatedDuration:null,next:w=>{let C=!1;return!T&&S===void 0&&(C=!0,E(w),x(w)),S!==void 0&&w>=S?T.next(w-S):(!C&&E(w),f)}}}function Bht(t,e,r){const n=[],a=r||qg.mix||T4e,i=t.length-1;for(let s=0;s<i;s++){let o=a(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||Vd:e;o=XI(l,o)}n.push(o)}return n}function Fht(t,e,{clamp:r=!0,ease:n,mixer:a}={}){const i=t.length;if(Wg(i===e.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>e[0];if(i===2&&e[0]===e[1])return()=>e[1];const s=t[0]===t[1];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=Bht(e,n,a),l=o.length,u=d=>{if(s&&d<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(d<t[h+1]);h++);const f=dN(t[h],t[h+1],d);return o[h](f)};return r?d=>u(cp(t[0],t[i-1],d)):u}function Uht(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const a=dN(0,e,n);t.push(Hi(r,1,a))}}function $ht(t){const e=[0];return Uht(e,t.length-1),e}function Ght(t,e){return t.map(r=>r*e)}function zht(t,e){return t.map(()=>e||h4e).splice(0,t.length-1)}function nS({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){const a=eht(n)?n.map(Lme):Lme(n),i={done:!1,value:e[0]},s=Ght(r&&r.length===e.length?r:$ht(e),t),o=Fht(s,e,{ease:Array.isArray(a)?a:zht(e,a)});return{calculatedDuration:t,next:l=>(i.value=o(l),i.done=l>=t,i)}}const Vht=t=>t!==null;function ure(t,{repeat:e,repeatType:r="loop"},n,a=1){const i=t.filter(Vht),o=a<0||e&&r!=="loop"&&e%2===1?0:i.length-1;return!o||n===void 0?i[o]:n}const Hht={decay:Oj,inertia:Oj,tween:nS,keyframes:nS,spring:u4};function C4e(t){typeof t.type=="string"&&(t.type=Hht[t.type])}class dre{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,r){return this.finished.then(e,r)}}const Yht=t=>t/100;class hre extends dre{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==ec.now()&&this.tick(ec.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;C4e(e);const{type:r=nS,repeat:n=0,repeatDelay:a=0,repeatType:i,velocity:s=0}=e;let{keyframes:o}=e;const l=r||nS;process.env.NODE_ENV!=="production"&&l!==nS&&Wg(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,"spring-two-frames"),l!==nS&&typeof o[0]!="number"&&(this.mixKeyframes=XI(Yht,T4e(o[0],o[1])),o=[0,100]);const u=l({...e,keyframes:o});i==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...o].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=cre(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+a,this.totalDuration=this.resolvedDuration*(n+1)-a,this.generator=u}updateTime(e){const r=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(e,r=!1){const{generator:n,totalDuration:a,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:u=0,keyframes:d,repeat:h,repeatType:f,repeatDelay:p,type:g,onUpdate:m,finalKeyframe:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-a/this.speed,this.startTime)),r?this.currentTime=e:this.updateTime(e);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>a;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let b=this.currentTime,E=n;if(h){const w=Math.min(this.currentTime,a)/o;let C=Math.floor(w),R=w%1;!R&&w>=1&&(R=1),R===1&&C--,C=Math.min(C,h+1),!!(C%2)&&(f==="reverse"?(R=1-R,p&&(R-=p/o)):f==="mirror"&&(E=s)),b=cp(0,1,R)*o}const S=v?{done:!1,value:d[0]}:E.next(b);i&&(S.value=i(S.value));let{done:T}=S;!v&&l!==null&&(T=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const x=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return x&&g!==Oj&&(S.value=ure(d,this.options,_,this.speed)),m&&m(S.value),x&&this.finish(),S}then(e,r){return this.finished.then(e,r)}get duration(){return Pd(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Pd(e)}get time(){return Pd(this.currentTime)}set time(e){e=np(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(ec.now());const r=this.playbackSpeed!==e;this.playbackSpeed=e,r&&(this.time=Pd(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Rht,startTime:r}=this.options;this.driver||(this.driver=e(a=>this.tick(a))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),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(ec.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Wht(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const b_=t=>t*180/Math.PI,Dj=t=>{const e=b_(Math.atan2(t[1],t[0]));return Lj(e)},qht={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Dj,rotateZ:Dj,skewX:t=>b_(Math.atan(t[1])),skewY:t=>b_(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Lj=t=>(t=t%360,t<0&&(t+=360),t),Gme=Dj,zme=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Vme=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Xht={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zme,scaleY:Vme,scale:t=>(zme(t)+Vme(t))/2,rotateX:t=>Lj(b_(Math.atan2(t[6],t[5]))),rotateY:t=>Lj(b_(Math.atan2(-t[2],t[0]))),rotateZ:Gme,rotate:Gme,skewX:t=>b_(Math.atan(t[4])),skewY:t=>b_(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Mj(t){return t.includes("scale")?1:0}function Pj(t,e){if(!t||t==="none")return Mj(e);const r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,a;if(r)n=Xht,a=r;else{const o=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=qht,a=o}if(!a)return Mj(e);const i=n[e],s=a[1].split(",").map(Kht);return typeof i=="function"?i(s):s[i]}const jht=(t,e)=>{const{transform:r="none"}=getComputedStyle(t);return Pj(r,e)};function Kht(t){return parseFloat(t.trim())}const iw=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],sw=new Set(iw),Hme=t=>t===aw||t===yr,Zht=new Set(["x","y","z"]),Qht=iw.filter(t=>!Zht.has(t));function Jht(t){const e=[];return Qht.forEach(r=>{const n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e}const mv={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Pj(e,"x"),y:(t,{transform:e})=>Pj(e,"y")};mv.translateX=mv.x;mv.translateY=mv.y;const V_=new Set;let Bj=!1,Fj=!1,Uj=!1;function A4e(){if(Fj){const t=Array.from(V_).filter(n=>n.needsMeasurement),e=new Set(t.map(n=>n.element)),r=new Map;e.forEach(n=>{const a=Jht(n);a.length&&(r.set(n,a),n.render())}),t.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();const a=r.get(n);a&&a.forEach(([i,s])=>{n.getValue(i)?.set(s)})}),t.forEach(n=>n.measureEndState()),t.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Fj=!1,Bj=!1,V_.forEach(t=>t.complete(Uj)),V_.clear()}function R4e(){V_.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Fj=!0)})}function eft(){Uj=!0,R4e(),A4e(),Uj=!1}class fre{constructor(e,r,n,a,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=r,this.name=n,this.motionValue=a,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(V_.add(this),Bj||(Bj=!0,bi.read(R4e),bi.resolveKeyframes(A4e))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:r,element:n,motionValue:a}=this;if(e[0]===null){const i=a?.get(),s=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&r){const o=n.readValue(r,s);o!=null&&(e[0]=o)}e[0]===void 0&&(e[0]=s),a&&i===void 0&&a.set(e[0])}Wht(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),V_.delete(this)}cancel(){this.state==="scheduled"&&(V_.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const tft=t=>t.startsWith("--");function rft(t,e,r){tft(e)?t.style.setProperty(e,r):t.style[e]=r}const nft=ere(()=>window.ScrollTimeline!==void 0),aft={};function ift(t,e){const r=ere(t);return()=>aft[e]??r()}const N4e=ift(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),JA=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,Yme={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:JA([0,.65,.55,1]),circOut:JA([.55,0,1,.45]),backIn:JA([.31,.01,.66,-.59]),backOut:JA([.33,1.53,.69,.99])};function I4e(t,e){if(t)return typeof t=="function"?N4e()?x4e(t,e):"ease-out":f4e(t)?JA(t):Array.isArray(t)?t.map(r=>I4e(r,e)||Yme.easeOut):Yme[t]}function sft(t,e,r,{delay:n=0,duration:a=300,repeat:i=0,repeatType:s="loop",ease:o="easeOut",times:l}={},u=void 0){const d={[e]:r};l&&(d.offset=l);const h=I4e(o,a);Array.isArray(h)&&(d.easing=h);const f={delay:n,duration:a,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(d,f)}function k4e(t){return typeof t=="function"&&"applyToOptions"in t}function oft({type:t,...e}){return k4e(t)&&N4e()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class lft extends dre{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:r,name:n,keyframes:a,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:o,onComplete:l}=e;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=e,Wg(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=oft(e);this.animation=sft(r,n,a,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=ure(a,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(d):rft(r,n,d),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return Pd(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Pd(e)}get time(){return Pd(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=np(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&nft()?(this.animation.timeline=e,Vd):r(this)}}const O4e={anticipate:c4e,backInOut:l4e,circInOut:d4e};function cft(t){return t in O4e}function uft(t){typeof t.ease=="string"&&cft(t.ease)&&(t.ease=O4e[t.ease])}const hU=10;class dft extends lft{constructor(e){uft(e),C4e(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:r,onUpdate:n,onComplete:a,element:i,...s}=this.options;if(!r)return;if(e!==void 0){r.set(e);return}const o=new hre({...s,autoplay:!1}),l=Math.max(hU,ec.now()-this.startTime),u=cp(0,hU,l-hU);r.setWithVelocity(o.sample(Math.max(0,l-u)).value,o.sample(l).value,u),o.stop()}}const Wme=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Wv.test(t)||t==="0")&&!t.startsWith("url("));function hft(t){const e=t[0];if(t.length===1)return!0;for(let r=0;r<t.length;r++)if(t[r]!==e)return!0}function fft(t,e,r,n){const a=t[0];if(a===null)return!1;if(e==="display"||e==="visibility")return!0;const i=t[t.length-1],s=Wme(a,e),o=Wme(i,e);return nw(s===o,`You are trying to animate ${e} from "${a}" to "${i}". "${s?i:a}" is not an animatable value.`,"value-not-animatable"),!s||!o?!1:hft(t)||(r==="spring"||k4e(r))&&n}function $j(t){t.duration=0,t.type="keyframes"}const pft=new Set(["opacity","clipPath","filter","transform"]),gft=ere(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function mft(t){const{motionValue:e,name:r,repeatDelay:n,repeatType:a,damping:i,type:s}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=e.owner.getProps();return gft()&&r&&pft.has(r)&&(r!=="transform"||!u)&&!l&&!n&&a!=="mirror"&&i!==0&&s!=="inertia"}const vft=40;class yft extends dre{constructor({autoplay:e=!0,delay:r=0,type:n="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:s="loop",keyframes:o,name:l,motionValue:u,element:d,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ec.now();const f={autoplay:e,delay:r,type:n,repeat:a,repeatDelay:i,repeatType:s,name:l,motionValue:u,element:d,...h},p=d?.KeyframeResolver||fre;this.keyframeResolver=new p(o,(g,m,_)=>this.onKeyframesResolved(g,m,f,!_),l,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,r,n,a){this.keyframeResolver=void 0;const{name:i,type:s,velocity:o,delay:l,isHandoff:u,onUpdate:d}=n;this.resolvedAt=ec.now(),fft(e,i,s,o)||((qg.instantAnimations||!l)&&d?.(ure(e,n,r)),e[0]=e[e.length-1],$j(n),n.repeat=0);const f={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>vft?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:e},p=!u&&mft(f)?new dft({...f,element:f.motionValue.owner.current}):new hre(f);p.finished.then(()=>this.notifyFinished()).catch(Vd),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,r){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eft()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const _ft=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function bft(t){const e=_ft.exec(t);if(!e)return[,];const[,r,n,a]=e;return[`--${r??n}`,a]}const Eft=4;function D4e(t,e,r=1){Wg(r<=Eft,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,a]=bft(t);if(!n)return;const i=window.getComputedStyle(e).getPropertyValue(n);if(i){const s=i.trim();return e4e(s)?parseFloat(s):s}return ire(a)?D4e(a,e,r+1):a}function pre(t,e){return t?.[e]??t?.default??t}const L4e=new Set(["width","height","top","left","right","bottom",...iw]),Sft={test:t=>t==="auto",parse:t=>t},M4e=t=>e=>e.test(t),P4e=[aw,yr,ap,tv,hht,dht,Sft],qme=t=>P4e.find(M4e(t));function Tft(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||r4e(t):!0}const xft=new Set(["brightness","contrast","saturate","opacity"]);function wft(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(sre)||[];if(!n)return t;const a=r.replace(n,"");let i=xft.has(e)?1:0;return n!==r&&(i*=100),e+"("+i+a+")"}const Cft=/\b([a-z-]*)\(.*?\)/gu,Gj={...Wv,getAnimatableNone:t=>{const e=t.match(Cft);return e?e.map(wft).join(" "):t}},Xme={...aw,transform:Math.round},Aft={rotate:tv,rotateX:tv,rotateY:tv,rotateZ:tv,scale:TD,scaleX:TD,scaleY:TD,scaleZ:TD,skew:tv,skewX:tv,skewY:tv,distance:yr,translateX:yr,translateY:yr,translateZ:yr,x:yr,y:yr,z:yr,perspective:yr,transformPerspective:yr,opacity:hN,originX:Pme,originY:Pme,originZ:yr},gre={borderWidth:yr,borderTopWidth:yr,borderRightWidth:yr,borderBottomWidth:yr,borderLeftWidth:yr,borderRadius:yr,radius:yr,borderTopLeftRadius:yr,borderTopRightRadius:yr,borderBottomRightRadius:yr,borderBottomLeftRadius:yr,width:yr,maxWidth:yr,height:yr,maxHeight:yr,top:yr,right:yr,bottom:yr,left:yr,inset:yr,insetBlock:yr,insetBlockStart:yr,insetBlockEnd:yr,insetInline:yr,insetInlineStart:yr,insetInlineEnd:yr,padding:yr,paddingTop:yr,paddingRight:yr,paddingBottom:yr,paddingLeft:yr,paddingBlock:yr,paddingBlockStart:yr,paddingBlockEnd:yr,paddingInline:yr,paddingInlineStart:yr,paddingInlineEnd:yr,margin:yr,marginTop:yr,marginRight:yr,marginBottom:yr,marginLeft:yr,marginBlock:yr,marginBlockStart:yr,marginBlockEnd:yr,marginInline:yr,marginInlineStart:yr,marginInlineEnd:yr,backgroundPositionX:yr,backgroundPositionY:yr,...Aft,zIndex:Xme,fillOpacity:hN,strokeOpacity:hN,numOctaves:Xme},Rft={...gre,color:ks,backgroundColor:ks,outlineColor:ks,fill:ks,stroke:ks,borderColor:ks,borderTopColor:ks,borderRightColor:ks,borderBottomColor:ks,borderLeftColor:ks,filter:Gj,WebkitFilter:Gj},B4e=t=>Rft[t];function F4e(t,e){let r=B4e(t);return r!==Gj&&(r=Wv),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const Nft=new Set(["auto","none","0"]);function Ift(t,e,r){let n=0,a;for(;n<t.length&&!a;){const i=t[n];typeof i=="string"&&!Nft.has(i)&&fN(i).values.length&&(a=t[n]),n++}if(a&&r)for(const i of e)t[i]=F4e(r,a)}class kft extends fre{constructor(e,r,n,a,i){super(e,r,n,a,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let d=0;d<e.length;d++){let h=e[d];if(typeof h=="string"&&(h=h.trim(),ire(h))){const f=D4e(h,r.current);f!==void 0&&(e[d]=f),d===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!L4e.has(n)||e.length!==2)return;const[a,i]=e,s=qme(a),o=qme(i),l=Mme(a),u=Mme(i);if(l!==u&&mv[n]){this.needsMeasurement=!0;return}if(s!==o)if(Hme(s)&&Hme(o))for(let d=0;d<e.length;d++){const h=e[d];typeof h=="string"&&(e[d]=parseFloat(h))}else mv[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:r}=this,n=[];for(let a=0;a<e.length;a++)(e[a]===null||Tft(e[a]))&&n.push(a);n.length&&Ift(e,n,r)}measureInitialState(){const{element:e,unresolvedKeyframes:r,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=mv[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r[0]=this.measuredOrigin;const a=r[r.length-1];a!==void 0&&e.getValue(n,a).jump(a,!1)}measureEndState(){const{element:e,name:r,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const a=e.getValue(r);a&&a.jump(this.measuredOrigin,!1);const i=n.length-1,s=n[i];n[i]=mv[r](e.measureViewportBox(),window.getComputedStyle(e.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([o,l])=>{e.getValue(o).set(l)}),this.resolveNoneKeyframes()}}function Oft(t,e,r){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let n=document;const a=r?.[t]??n.querySelectorAll(t);return a?Array.from(a):[]}return Array.from(t)}const U4e=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Dft(t){return t4e(t)&&"offsetHeight"in t}const jme=30,Lft=t=>!isNaN(parseFloat(t));class Mft{constructor(e,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const a=ec.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=r.owner}setCurrent(e){this.current=e,this.updatedAt=ec.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Lft(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&rre(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new tre);const n=this.events[e].add(r);return e==="change"?()=>{n(),bi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,r=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=ec.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>jme)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,jme);return n4e(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ax(t,e){return new Mft(t,e)}const{schedule:mre}=p4e(queueMicrotask,!1),mh={x:!1,y:!1};function $4e(){return mh.x||mh.y}function Pft(t){return t==="x"||t==="y"?mh[t]?null:(mh[t]=!0,()=>{mh[t]=!1}):mh.x||mh.y?null:(mh.x=mh.y=!0,()=>{mh.x=mh.y=!1})}function G4e(t,e){const r=Oft(t),n=new AbortController,a={passive:!0,...e,signal:n.signal};return[r,a,()=>n.abort()]}function Kme(t){return!(t.pointerType==="touch"||$4e())}function Bft(t,e,r={}){const[n,a,i]=G4e(t,r),s=o=>{if(!Kme(o))return;const{target:l}=o,u=e(l,o);if(typeof u!="function"||!l)return;const d=h=>{Kme(h)&&(u(h),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,a)};return n.forEach(o=>{o.addEventListener("pointerenter",s,a)}),i}const z4e=(t,e)=>e?t===e?!0:z4e(t,e.parentElement):!1,vre=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Fft=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function V4e(t){return Fft.has(t.tagName)||t.isContentEditable===!0}const _P=new WeakSet;function Zme(t){return e=>{e.key==="Enter"&&t(e)}}function fU(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Uft=(t,e)=>{const r=t.currentTarget;if(!r)return;const n=Zme(()=>{if(_P.has(r))return;fU(r,"down");const a=Zme(()=>{fU(r,"up")}),i=()=>fU(r,"cancel");r.addEventListener("keyup",a,e),r.addEventListener("blur",i,e)});r.addEventListener("keydown",n,e),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),e)};function Qme(t){return vre(t)&&!$4e()}function $ft(t,e,r={}){const[n,a,i]=G4e(t,r),s=o=>{const l=o.currentTarget;if(!Qme(o))return;_P.add(l);const u=e(l,o),d=(p,g)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),_P.has(l)&&_P.delete(l),Qme(p)&&typeof u=="function"&&u(p,{success:g})},h=p=>{d(p,l===window||l===document||r.useGlobalTarget||z4e(l,p.target))},f=p=>{d(p,!1)};window.addEventListener("pointerup",h,a),window.addEventListener("pointercancel",f,a)};return n.forEach(o=>{(r.useGlobalTarget?window:o).addEventListener("pointerdown",s,a),Dft(o)&&(o.addEventListener("focus",u=>Uft(u,a)),!V4e(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),i}function H4e(t){return t4e(t)&&"ownerSVGElement"in t}function Gft(t){return H4e(t)&&t.tagName==="svg"}const Tl=t=>!!(t&&t.getVelocity),zft=[...P4e,ks,Wv],Vft=t=>zft.find(M4e(t)),Y4e=Me.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Hft(t=!0){const e=Me.useContext(Zte);if(e===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:a}=e,i=Me.useId();Me.useEffect(()=>{if(t)return a(i)},[t]);const s=Me.useCallback(()=>t&&n&&n(i),[i,n,t]);return!r&&n?[!1,s]:[!0]}const W4e=Me.createContext({strict:!1}),Jme={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"]},ix={};for(const t in Jme)ix[t]={isEnabled:e=>Jme[t].some(r=>!!e[r])};function Yft(t){for(const e in t)ix[e]={...ix[e],...t[e]}}const Wft=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 d4(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Wft.has(t)}let q4e=t=>!d4(t);function qft(t){typeof t=="function"&&(q4e=e=>e.startsWith("on")?!d4(e):t(e))}try{qft(require("@emotion/is-prop-valid").default)}catch{}function Xft(t,e,r){const n={};for(const a in t)a==="values"&&typeof t.values=="object"||(q4e(a)||r===!0&&d4(a)||!e&&!d4(a)||t.draggable&&a.startsWith("onDrag"))&&(n[a]=t[a]);return n}const OB=Me.createContext({});function DB(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function pN(t){return typeof t=="string"||Array.isArray(t)}const yre=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_re=["initial",...yre];function LB(t){return DB(t.animate)||_re.some(e=>pN(t[e]))}function X4e(t){return!!(LB(t)||t.variants)}function jft(t,e){if(LB(t)){const{initial:r,animate:n}=t;return{initial:r===!1||pN(r)?r:void 0,animate:pN(n)?n:void 0}}return t.inherit!==!1?e:{}}function Kft(t){const{initial:e,animate:r}=jft(t,Me.useContext(OB));return Me.useMemo(()=>({initial:e,animate:r}),[eve(e),eve(r)])}function eve(t){return Array.isArray(t)?t.join(" "):t}function tve(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const _C={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(yr.test(t))t=parseFloat(t);else return t;const r=tve(t,e.target.x),n=tve(t,e.target.y);return`${r}% ${n}%`}},Zft={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,a=Wv.parse(t);if(a.length>5)return n;const i=Wv.createTransformer(t),s=typeof a[0]!="number"?1:0,o=r.x.scale*e.x,l=r.y.scale*e.y;a[0+s]/=o,a[1+s]/=l;const u=Hi(o,l,.5);return typeof a[2+s]=="number"&&(a[2+s]/=u),typeof a[3+s]=="number"&&(a[3+s]/=u),i(a)}},zj={borderRadius:{..._C,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_C,borderTopRightRadius:_C,borderBottomLeftRadius:_C,borderBottomRightRadius:_C,boxShadow:Zft};function j4e(t,{layout:e,layoutId:r}){return sw.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!zj[t]||t==="opacity")}const Qft={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Jft=iw.length;function ept(t,e,r){let n="",a=!0;for(let i=0;i<Jft;i++){const s=iw[i],o=t[s];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(s.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||r){const u=U4e(o,gre[s]);if(!l){a=!1;const d=Qft[s]||s;n+=`${d}(${u}) `}r&&(e[s]=u)}}return n=n.trim(),r?n=r(e,a?"":n):a&&(n="none"),n}function bre(t,e,r){const{style:n,vars:a,transformOrigin:i}=t;let s=!1,o=!1;for(const l in e){const u=e[l];if(sw.has(l)){s=!0;continue}else if(m4e(l)){a[l]=u;continue}else{const d=U4e(u,gre[l]);l.startsWith("origin")?(o=!0,i[l]=d):n[l]=d}}if(e.transform||(s||r?n.transform=ept(e,t.transform,r):n.transform&&(n.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:d=0}=i;n.transformOrigin=`${l} ${u} ${d}`}}const Ere=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function K4e(t,e,r){for(const n in e)!Tl(e[n])&&!j4e(n,r)&&(t[n]=e[n])}function tpt({transformTemplate:t},e){return Me.useMemo(()=>{const r=Ere();return bre(r,e,t),Object.assign({},r.vars,r.style)},[e])}function rpt(t,e){const r=t.style||{},n={};return K4e(n,r,t),Object.assign(n,tpt(t,e)),n}function npt(t,e){const r={},n=rpt(t,e);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=n,r}const apt={offset:"stroke-dashoffset",array:"stroke-dasharray"},ipt={offset:"strokeDashoffset",array:"strokeDasharray"};function spt(t,e,r=1,n=0,a=!0){t.pathLength=1;const i=a?apt:ipt;t[i.offset]=yr.transform(-n);const s=yr.transform(e),o=yr.transform(r);t[i.array]=`${s} ${o}`}const opt=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Z4e(t,{attrX:e,attrY:r,attrScale:n,pathLength:a,pathSpacing:i=1,pathOffset:s=0,...o},l,u,d){if(bre(t,o,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=d?.transformBox??"fill-box",delete h.transformBox);for(const p of opt)h[p]!==void 0&&(f[p]=h[p],delete h[p]);e!==void 0&&(h.x=e),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),a!==void 0&&spt(h,a,i,s,!1)}const Q4e=()=>({...Ere(),attrs:{}}),J4e=t=>typeof t=="string"&&t.toLowerCase()==="svg";function lpt(t,e,r,n){const a=Me.useMemo(()=>{const i=Q4e();return Z4e(i,e,J4e(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){const i={};K4e(i,t.style,t),a.style={...i,...a.style}}return a}const cpt=["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 Sre(t){return typeof t!="string"||t.includes("-")?!1:!!(cpt.indexOf(t)>-1||/[A-Z]/u.test(t))}function upt(t,e,r,{latestValues:n},a,i=!1,s){const l=(s??Sre(t)?lpt:npt)(e,n,a,t),u=Xft(e,typeof t=="string",i),d=t!==Me.Fragment?{...u,...l,ref:r}:{},{children:h}=e,f=Me.useMemo(()=>Tl(h)?h.get():h,[h]);return Me.createElement(t,{...d,children:f})}function rve(t){const e=[{},{}];return t?.values.forEach((r,n)=>{e[0][n]=r.get(),e[1][n]=r.getVelocity()}),e}function Tre(t,e,r,n){if(typeof e=="function"){const[a,i]=rve(n);e=e(r!==void 0?r:t.custom,a,i)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[a,i]=rve(n);e=e(r!==void 0?r:t.custom,a,i)}return e}function bP(t){return Tl(t)?t.get():t}function dpt({scrapeMotionValuesFromProps:t,createRenderState:e},r,n,a){return{latestValues:hpt(r,n,a,t),renderState:e()}}function hpt(t,e,r,n){const a={},i=n(t,{});for(const f in i)a[f]=bP(i[f]);let{initial:s,animate:o}=t;const l=LB(t),u=X4e(t);e&&u&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),o===void 0&&(o=e.animate));let d=r?r.initial===!1:!1;d=d||s===!1;const h=d?o:s;if(h&&typeof h!="boolean"&&!DB(h)){const f=Array.isArray(h)?h:[h];for(let p=0;p<f.length;p++){const g=Tre(t,f[p]);if(g){const{transitionEnd:m,transition:_,...y}=g;for(const v in y){let b=y[v];if(Array.isArray(b)){const E=d?b.length-1:0;b=b[E]}b!==null&&(a[v]=b)}for(const v in m)a[v]=m[v]}}}return a}const e5e=t=>(e,r)=>{const n=Me.useContext(OB),a=Me.useContext(Zte),i=()=>dpt(t,e,n,a);return r?i():Wdt(i)};function xre(t,e,r){const{style:n}=t,a={};for(const i in n)(Tl(n[i])||e.style&&Tl(e.style[i])||j4e(i,t)||r?.getValue(i)?.liveStyle!==void 0)&&(a[i]=n[i]);return a}const fpt=e5e({scrapeMotionValuesFromProps:xre,createRenderState:Ere});function t5e(t,e,r){const n=xre(t,e,r);for(const a in t)if(Tl(t[a])||Tl(e[a])){const i=iw.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;n[i]=t[a]}return n}const ppt=e5e({scrapeMotionValuesFromProps:t5e,createRenderState:Q4e}),gpt=Symbol.for("motionComponentSymbol");function mpt(t,e,r){const n=Me.useRef(r);Me.useInsertionEffect(()=>{n.current=r});const a=Me.useRef(null);return Me.useCallback(i=>{i&&t.onMount?.(i),e&&(i?e.mount(i):e.unmount());const s=n.current;if(typeof s=="function")if(i){const o=s(i);typeof o=="function"&&(a.current=o)}else a.current?(a.current(),a.current=null):s(i);else s&&(s.current=i)},[e])}const wre=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),vpt="framerAppearId",r5e="data-"+wre(vpt),n5e=Me.createContext({});function e2(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function ypt(t,e,r,n,a,i){const{visualElement:s}=Me.useContext(OB),o=Me.useContext(W4e),l=Me.useContext(Zte),u=Me.useContext(Y4e).reducedMotion,d=Me.useRef(null);n=n||o.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:s,props:r,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,isSVG:i}));const h=d.current,f=Me.useContext(n5e);h&&!h.projection&&a&&(h.type==="html"||h.type==="svg")&&_pt(d.current,r,a,f);const p=Me.useRef(!1);Me.useInsertionEffect(()=>{h&&p.current&&h.update(r,l)});const g=r[r5e],m=Me.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return qdt(()=>{h&&(p.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),m.current&&h.animationState&&h.animationState.animateChanges())}),Me.useEffect(()=>{h&&(!m.current&&h.animationState&&h.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),m.current=!1),h.enteringChildren=void 0)}),h}function _pt(t,e,r,n){const{layoutId:a,layout:i,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:d}=e;t.projection=new r(t.latestValues,e["data-framer-portal-id"]?void 0:a5e(t.parent)),t.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!s||o&&e2(o),visualElement:t,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:u})}function a5e(t){if(t)return t.options.allowProjection!==!1?t.projection:a5e(t.parent)}function pU(t,{forwardMotionProps:e=!1,type:r}={},n,a){n&&Yft(n);const i=r?r==="svg":Sre(t),s=i?ppt:fpt;function o(u,d){let h;const f={...Me.useContext(Y4e),...u,layoutId:bpt(u)},{isStatic:p}=f,g=Kft(u),m=s(u,p);if(!p&&Kte){Ept(f,n);const _=Spt(f);h=_.MeasureLayout,g.visualElement=ypt(t,m,f,a,_.ProjectionNode,i)}return ar.jsxs(OB.Provider,{value:g,children:[h&&g.visualElement?ar.jsx(h,{visualElement:g.visualElement,...f}):null,upt(t,u,mpt(m,g.visualElement,d),m,p,e,i)]})}o.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=Me.forwardRef(o);return l[gpt]=t,l}function bpt({layoutId:t}){const e=Me.useContext(J3e).id;return e&&t!==void 0?e+"-"+t:t}function Ept(t,e){const r=Me.useContext(W4e).strict;if(process.env.NODE_ENV!=="production"&&e&&r){const n="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?nw(!1,n,"lazy-strict-mode"):Wg(!1,n,"lazy-strict-mode")}}function Spt(t){const{drag:e,layout:r}=ix;if(!e&&!r)return{};const n={...e,...r};return{MeasureLayout:e?.isEnabled(t)||r?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function Tpt(t,e){if(typeof Proxy>"u")return pU;const r=new Map,n=(i,s)=>pU(i,s,t,e),a=(i,s)=>(process.env.NODE_ENV!=="production"&&rre(!1,"motion() is deprecated. Use motion.create() instead."),n(i,s));return new Proxy(a,{get:(i,s)=>s==="create"?n:(r.has(s)||r.set(s,pU(s,void 0,t,e)),r.get(s))})}function i5e({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function xpt({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function wpt(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function gU(t){return t===void 0||t===1}function Vj({scale:t,scaleX:e,scaleY:r}){return!gU(t)||!gU(e)||!gU(r)}function Xy(t){return Vj(t)||s5e(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function s5e(t){return nve(t.x)||nve(t.y)}function nve(t){return t&&t!=="0%"}function h4(t,e,r){const n=t-r,a=e*n;return r+a}function ave(t,e,r,n,a){return a!==void 0&&(t=h4(t,a,n)),h4(t,r,n)+e}function Hj(t,e=0,r=1,n,a){t.min=ave(t.min,e,r,n,a),t.max=ave(t.max,e,r,n,a)}function o5e(t,{x:e,y:r}){Hj(t.x,e.translate,e.scale,e.originPoint),Hj(t.y,r.translate,r.scale,r.originPoint)}const ive=.999999999999,sve=1.0000000000001;function Cpt(t,e,r,n=!1){const a=r.length;if(!a)return;e.x=e.y=1;let i,s;for(let o=0;o<a;o++){i=r[o],s=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&iS(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,o5e(t,s)),n&&Xy(i.latestValues)&&iS(t,i.latestValues))}e.x<sve&&e.x>ive&&(e.x=1),e.y<sve&&e.y>ive&&(e.y=1)}function aS(t,e){t.min=t.min+e,t.max=t.max+e}function ove(t,e,r,n,a=.5){const i=Hi(t.min,t.max,a);Hj(t,e,r,i,n)}function iS(t,e){ove(t.x,e.x,e.scaleX,e.scale,e.originX),ove(t.y,e.y,e.scaleY,e.scale,e.originY)}function l5e(t,e){return i5e(wpt(t.getBoundingClientRect(),e))}function Apt(t,e,r){const n=l5e(t,r),{scroll:a}=e;return a&&(aS(n.x,a.offset.x),aS(n.y,a.offset.y)),n}const lve=()=>({translate:0,scale:1,origin:0,originPoint:0}),sS=()=>({x:lve(),y:lve()}),cve=()=>({min:0,max:0}),js=()=>({x:cve(),y:cve()}),Yj={current:null},c5e={current:!1};function Rpt(){if(c5e.current=!0,!!Kte)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Yj.current=t.matches;t.addEventListener("change",e),e()}else Yj.current=!1}const Npt=new WeakMap;function Ipt(t,e,r){for(const n in e){const a=e[n],i=r[n];if(Tl(a))t.addValue(n,a);else if(Tl(i))t.addValue(n,ax(a,{owner:t}));else if(i!==a)if(t.hasValue(n)){const s=t.getValue(n);s.liveStyle===!0?s.jump(a):s.hasAnimated||s.set(a)}else{const s=t.getStaticValue(n);t.addValue(n,ax(s!==void 0?s:a,{owner:t}))}}for(const n in r)e[n]===void 0&&t.removeValue(n);return e}const uve=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class kpt{scrapeMotionValuesFromProps(e,r,n){return{}}constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:a,blockInitialAnimation:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=fre,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 f=ec.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,bi.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=a,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=LB(r),this.isVariantNode=X4e(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(r,{},this);for(const f in h){const p=h[f];l[f]!==void 0&&Tl(p)&&p.set(l[f])}}mount(e){this.current=e,Npt.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(c5e.current||Rpt(),this.shouldReduceMotion=Yj.current),process.env.NODE_ENV!=="production"&&rre(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Yv(this.notifyUpdate),Yv(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const r=this.features[e];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,r){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=sw.has(e);n&&this.onBindTransform&&this.onBindTransform();const a=r.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&bi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,r)),this.valueSubscriptions.set(e,()=>{a(),i&&i(),r.owner&&r.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ix){const r=ix[e];if(!r)continue;const{isEnabled:n,Feature:a}=r;if(!this.features[e]&&a&&n(this.props)&&(this.features[e]=new a(this)),this.features[e]){const i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):js()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<uve.length;n++){const a=uve[n];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const i="on"+a,s=e[i];s&&(this.propEventSubscriptions[a]=this.on(a,s))}this.prevMotionValues=Ipt(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(e),()=>r.variantChildren.delete(e)}addValue(e,r){const n=this.values.get(e);r!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,r),this.values.set(e,r),this.latestValues[e]=r.get())}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=ax(r===null?void 0:r,{owner:this}),this.addValue(e,n)),n}readValue(e,r){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n=="string"&&(e4e(n)||r4e(n))?n=parseFloat(n):!Vft(n)&&Wv.test(r)&&(n=F4e(e,r)),this.setBaseTarget(e,Tl(n)?n.get():n)),Tl(n)?n.get():n}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const i=Tre(this.props,r,this.presenceContext?.custom);i&&(n=i[e])}if(r&&n!==void 0)return n;const a=this.getBaseTargetFromProps(this.props,e);return a!==void 0&&!Tl(a)?a:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new tre),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}scheduleRenderMicrotask(){mre.render(this.render)}}class u5e extends kpt{constructor(){super(...arguments),this.KeyframeResolver=kft}sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Tl(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function d5e(t,{style:e,vars:r},n,a){const i=t.style;let s;for(s in e)i[s]=e[s];a?.applyProjectionStyles(i,n);for(s in r)i.setProperty(s,r[s])}function Opt(t){return window.getComputedStyle(t)}class Dpt extends u5e{constructor(){super(...arguments),this.type="html",this.renderInstance=d5e}readValueFromInstance(e,r){if(sw.has(r))return this.projection?.isProjecting?Mj(r):jht(e,r);{const n=Opt(e),a=(m4e(r)?n.getPropertyValue(r):n[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(e,{transformPagePoint:r}){return l5e(e,r)}build(e,r,n){bre(e,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,r,n){return xre(e,r,n)}}const h5e=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Lpt(t,e,r,n){d5e(t,e,void 0,n);for(const a in e.attrs)t.setAttribute(h5e.has(a)?a:wre(a),e.attrs[a])}class Mpt extends u5e{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=js}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(sw.has(r)){const n=B4e(r);return n&&n.default||0}return r=h5e.has(r)?r:wre(r),e.getAttribute(r)}scrapeMotionValuesFromProps(e,r,n){return t5e(e,r,n)}build(e,r,n){Z4e(e,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,r,n,a){Lpt(e,r,n,a)}mount(e){this.isSVGTag=J4e(e.tagName),super.mount(e)}}const Ppt=(t,e)=>e.isSVG??Sre(t)?new Mpt(e):new Dpt(e,{allowProjection:t!==Me.Fragment});function AS(t,e,r){const n=t.getProps();return Tre(n,e,r!==void 0?r:n.custom,t)}const Wj=t=>Array.isArray(t);function Bpt(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,ax(r))}function Fpt(t){return Wj(t)?t[t.length-1]||0:t}function Upt(t,e){const r=AS(t,e);let{transitionEnd:n={},transition:a={},...i}=r||{};i={...i,...n};for(const s in i){const o=Fpt(i[s]);Bpt(t,s,o)}}function $pt(t){return!!(Tl(t)&&t.add)}function qj(t,e){const r=t.getValue("willChange");if($pt(r))return r.add(e);if(!r&&qg.WillChange){const n=new qg.WillChange("auto");t.addValue("willChange",n),n.add(e)}}function f5e(t){return t.props[r5e]}const Gpt=t=>t!==null;function zpt(t,{repeat:e,repeatType:r="loop"},n){const a=t.filter(Gpt),i=e&&r!=="loop"&&e%2===1?0:a.length-1;return a[i]}const Vpt={type:"spring",stiffness:500,damping:25,restSpeed:10},Hpt=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ypt={type:"keyframes",duration:.8},Wpt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qpt=(t,{keyframes:e})=>e.length>2?Ypt:sw.has(t)?t.startsWith("scale")?Hpt(e[1]):Vpt:Wpt;function Xpt({when:t,delay:e,delayChildren:r,staggerChildren:n,staggerDirection:a,repeat:i,repeatType:s,repeatDelay:o,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const Cre=(t,e,r,n={},a,i)=>s=>{const o=pre(n,t)||{},l=o.delay||n.delay||0;let{elapsed:u=0}=n;u=u-np(l);const d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-u,onUpdate:f=>{e.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:i?void 0:a};Xpt(o)||Object.assign(d,qpt(t,d)),d.duration&&(d.duration=np(d.duration)),d.repeatDelay&&(d.repeatDelay=np(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&($j(d),d.delay===0&&(h=!0)),(qg.instantAnimations||qg.skipAnimations)&&(h=!0,$j(d),d.delay=0),d.allowFlatten=!o.type&&!o.ease,h&&!i&&e.get()!==void 0){const f=zpt(d.keyframes,o);if(f!==void 0){bi.update(()=>{d.onUpdate(f),d.onComplete()});return}}return o.isSync?new hre(d):new yft(d)};function jpt({protectedKeys:t,needsAnimating:e},r){const n=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,n}function p5e(t,e,{delay:r=0,transitionOverride:n,type:a}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:s,...o}=e;n&&(i=n);const l=[],u=a&&t.animationState&&t.animationState.getState()[a];for(const d in o){const h=t.getValue(d,t.latestValues[d]??null),f=o[d];if(f===void 0||u&&jpt(u,d))continue;const p={delay:r,...pre(i||{},d)},g=h.get();if(g!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===g&&!p.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const y=f5e(t);if(y){const v=window.MotionHandoffAnimation(y,d,bi);v!==null&&(p.startTime=v,m=!0)}}qj(t,d),h.start(Cre(d,h,f,t.shouldReduceMotion&&L4e.has(d)?{type:!1}:p,t,m));const _=h.animation;_&&l.push(_)}return s&&Promise.all(l).then(()=>{bi.update(()=>{s&&Upt(t,s)})}),l}function g5e(t,e,r,n=0,a=1){const i=Array.from(t).sort((u,d)=>u.sortNodePosition(d)).indexOf(e),s=t.size,o=(s-1)*n;return typeof r=="function"?r(i,s):a===1?i*n:o-i*n}function Xj(t,e,r={}){const n=AS(t,e,r.type==="exit"?t.presenceContext?.custom:void 0);let{transition:a=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(a=r.transitionOverride);const i=n?()=>Promise.all(p5e(t,n,r)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=a;return Kpt(t,e,l,u,d,h,r)}:()=>Promise.resolve(),{when:o}=a;if(o){const[l,u]=o==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(r.delay)])}function Kpt(t,e,r=0,n=0,a=0,i=1,s){const o=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),o.push(Xj(l,e,{...s,delay:r+(typeof n=="function"?0:n)+g5e(t.variantChildren,l,n,a,i)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}function Zpt(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const a=e.map(i=>Xj(t,i,r));n=Promise.all(a)}else if(typeof e=="string")n=Xj(t,e,r);else{const a=typeof e=="function"?AS(t,e,r.custom):e;n=Promise.all(p5e(t,a,r))}return n.then(()=>{t.notify("AnimationComplete",e)})}function m5e(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}const Qpt=_re.length;function v5e(t){if(!t)return;if(!t.isControllingVariants){const r=t.parent?v5e(t.parent)||{}:{};return t.props.initial!==void 0&&(r.initial=t.props.initial),r}const e={};for(let r=0;r<Qpt;r++){const n=_re[r],a=t.props[n];(pN(a)||a===!1)&&(e[n]=a)}return e}const Jpt=[...yre].reverse(),egt=yre.length;function tgt(t){return e=>Promise.all(e.map(({animation:r,options:n})=>Zpt(t,r,n)))}function rgt(t){let e=tgt(t),r=dve(),n=!0;const a=l=>(u,d)=>{const h=AS(t,d,l==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:p,...g}=h;u={...u,...g,...p}}return u};function i(l){e=l(t)}function s(l){const{props:u}=t,d=v5e(t.parent)||{},h=[],f=new Set;let p={},g=1/0;for(let _=0;_<egt;_++){const y=Jpt[_],v=r[y],b=u[y]!==void 0?u[y]:d[y],E=pN(b),S=y===l?v.isActive:null;S===!1&&(g=_);let T=b===d[y]&&b!==u[y]&&E;if(T&&n&&t.manuallyAnimateOnMount&&(T=!1),v.protectedKeys={...p},!v.isActive&&S===null||!b&&!v.prevProp||DB(b)||typeof b=="boolean")continue;const x=ngt(v.prevProp,b);let w=x||y===l&&v.isActive&&!T&&E||_>g&&E,C=!1;const R=Array.isArray(b)?b:[b];let N=R.reduce(a(y),{});S===!1&&(N={});const{prevResolvedValues:k={}}=v,L={...k,...N},A=B=>{w=!0,f.has(B)&&(C=!0,f.delete(B)),v.needsAnimating[B]=!0;const F=t.getValue(B);F&&(F.liveStyle=!1)};for(const B in L){const F=N[B],U=k[B];if(p.hasOwnProperty(B))continue;let V=!1;Wj(F)&&Wj(U)?V=!m5e(F,U):V=F!==U,V?F!=null?A(B):f.add(B):F!==void 0&&f.has(B)?A(B):v.protectedKeys[B]=!0}v.prevProp=b,v.prevResolvedValues=N,v.isActive&&(p={...p,...N}),n&&t.blockInitialAnimation&&(w=!1);const D=T&&x;w&&(!D||C)&&h.push(...R.map(B=>{const F={type:y};if(typeof B=="string"&&n&&!D&&t.manuallyAnimateOnMount&&t.parent){const{parent:U}=t,V=AS(U,B);if(U.enteringChildren&&V){const{delayChildren:$}=V.transition||{};F.delay=g5e(U.enteringChildren,t,$)}}return{animation:B,options:F}}))}if(f.size){const _={};if(typeof u.initial!="boolean"){const y=AS(t,Array.isArray(u.initial)?u.initial[0]:u.initial);y&&y.transition&&(_.transition=y.transition)}f.forEach(y=>{const v=t.getBaseTarget(y),b=t.getValue(y);b&&(b.liveStyle=!0),_[y]=v??null}),h.push({animation:_})}let m=!!h.length;return n&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(h):Promise.resolve()}function o(l,u){if(r[l].isActive===u)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(l,u)),r[l].isActive=u;const d=s(l);for(const h in r)r[h].protectedKeys={};return d}return{animateChanges:s,setActive:o,setAnimateFunction:i,getState:()=>r,reset:()=>{r=dve()}}}function ngt(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!m5e(e,t):!1}function ly(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dve(){return{animate:ly(!0),whileInView:ly(),whileHover:ly(),whileTap:ly(),whileDrag:ly(),whileFocus:ly(),exit:ly()}}class C0{constructor(e){this.isMounted=!1,this.node=e}update(){}}class agt extends C0{constructor(e){super(e),e.animationState||(e.animationState=rgt(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();DB(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let igt=0;class sgt extends C0{constructor(){super(...arguments),this.id=igt++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const a=this.node.animationState.setActive("exit",!e);r&&!e&&a.then(()=>{r(this.id)})}mount(){const{register:e,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const ogt={animation:{Feature:agt},exit:{Feature:sgt}};function gN(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}function ZI(t){return{point:{x:t.pageX,y:t.pageY}}}const lgt=t=>e=>vre(e)&&t(e,ZI(e));function TR(t,e,r,n){return gN(t,e,lgt(r),n)}const y5e=1e-4,cgt=1-y5e,ugt=1+y5e,_5e=.01,dgt=0-_5e,hgt=0+_5e;function tc(t){return t.max-t.min}function fgt(t,e,r){return Math.abs(t-e)<=r}function hve(t,e,r,n=.5){t.origin=n,t.originPoint=Hi(e.min,e.max,t.origin),t.scale=tc(r)/tc(e),t.translate=Hi(r.min,r.max,t.origin)-t.originPoint,(t.scale>=cgt&&t.scale<=ugt||isNaN(t.scale))&&(t.scale=1),(t.translate>=dgt&&t.translate<=hgt||isNaN(t.translate))&&(t.translate=0)}function xR(t,e,r,n){hve(t.x,e.x,r.x,n?n.originX:void 0),hve(t.y,e.y,r.y,n?n.originY:void 0)}function fve(t,e,r){t.min=r.min+e.min,t.max=t.min+tc(e)}function pgt(t,e,r){fve(t.x,e.x,r.x),fve(t.y,e.y,r.y)}function pve(t,e,r){t.min=e.min-r.min,t.max=t.min+tc(e)}function f4(t,e,r){pve(t.x,e.x,r.x),pve(t.y,e.y,r.y)}function _d(t){return[t("x"),t("y")]}const b5e=({current:t})=>t?t.ownerDocument.defaultView:null,gve=(t,e)=>Math.abs(t-e);function ggt(t,e){const r=gve(t.x,e.x),n=gve(t.y,e.y);return Math.sqrt(r**2+n**2)}const mve=new Set(["auto","scroll"]);class E5e{constructor(e,r,{transformPagePoint:n,contextWindow:a=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=vU(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,m=ggt(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!m)return;const{point:_}=p,{timestamp:y}=Ho;this.history.push({..._,timestamp:y});const{onStart:v,onMove:b}=this.handlers;g||(v&&v(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,p)},this.handlePointerMove=(p,g)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=mU(g,this.transformPagePoint),bi.update(this.updatePoint,!0)},this.handlePointerUp=(p,g)=>{this.end();const{onEnd:m,onSessionEnd:_,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=vU(p.type==="pointercancel"?this.lastMoveEventInfo:mU(g,this.transformPagePoint),this.history);this.startEvent&&m&&m(p,v),_&&_(p,v)},!vre(e))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.distanceThreshold=s,this.contextWindow=a||window;const l=ZI(e),u=mU(l,this.transformPagePoint),{point:d}=u,{timestamp:h}=Ho;this.history=[{...d,timestamp:h}];const{onSessionStart:f}=r;f&&f(e,vU(u,this.history)),this.removeListeners=XI(TR(this.contextWindow,"pointermove",this.handlePointerMove),TR(this.contextWindow,"pointerup",this.handlePointerUp),TR(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let r=e.parentElement;for(;r;){const n=getComputedStyle(r);(mve.has(n.overflowX)||mve.has(n.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.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(e){const r=this.scrollPositions.get(e);if(!r)return;const n=e===window,a=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:a.x-r.x,y:a.y-r.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,a),bi.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Yv(this.updatePoint)}}function mU(t,e){return e?{point:e(t.point)}:t}function vve(t,e){return{x:t.x-e.x,y:t.y-e.y}}function vU({point:t},e){return{point:t,delta:vve(t,S5e(e)),offset:vve(t,mgt(e)),velocity:vgt(e,.1)}}function mgt(t){return t[0]}function S5e(t){return t[t.length-1]}function vgt(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const a=S5e(t);for(;r>=0&&(n=t[r],!(a.timestamp-n.timestamp>np(e)));)r--;if(!n)return{x:0,y:0};const i=Pd(a.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const s={x:(a.x-n.x)/i,y:(a.y-n.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ygt(t,{min:e,max:r},n){return e!==void 0&&t<e?t=n?Hi(e,t,n.min):Math.max(t,e):r!==void 0&&t>r&&(t=n?Hi(r,t,n.max):Math.min(t,r)),t}function yve(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function _gt(t,{top:e,left:r,bottom:n,right:a}){return{x:yve(t.x,r,a),y:yve(t.y,e,n)}}function _ve(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([r,n]=[n,r]),{min:r,max:n}}function bgt(t,e){return{x:_ve(t.x,e.x),y:_ve(t.y,e.y)}}function Egt(t,e){let r=.5;const n=tc(t),a=tc(e);return a>n?r=dN(e.min,e.max-n,t.min):n>a&&(r=dN(t.min,t.max-a,e.min)),cp(0,1,r)}function Sgt(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const jj=.35;function Tgt(t=jj){return t===!1?t=0:t===!0&&(t=jj),{x:bve(t,"left","right"),y:bve(t,"top","bottom")}}function bve(t,e,r){return{min:Eve(t,e),max:Eve(t,r)}}function Eve(t,e){return typeof t=="number"?t:t[e]||0}const xgt=new WeakMap;class wgt{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=js(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:r=!1,distanceThreshold:n}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const i=h=>{r?(this.stopAnimation(),this.snapToCursor(ZI(h).point)):this.pauseAnimation()},s=(h,f)=>{this.stopAnimation();const{drag:p,dragPropagation:g,onDragStart:m}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Pft(p),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_d(y=>{let v=this.getAxisMotionValue(y).get()||0;if(ap.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const E=b.layout.layoutBox[y];E&&(v=tc(E)*(parseFloat(v)/100))}}this.originPoint[y]=v}),m&&bi.postRender(()=>m(h,f)),qj(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},o=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:m,onDrag:_}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:y}=f;if(g&&this.currentDirection===null){this.currentDirection=Cgt(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),_&&_(h,f)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>_d(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new E5e(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:n,contextWindow:b5e(this.visualElement),element:this.visualElement.current})}stop(e,r){const n=e||this.latestPointerEvent,a=r||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!a||!n)return;const{velocity:s}=a;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&bi.postRender(()=>o(n,a))}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(e,r,n){const{drag:a}=this.getProps();if(!n||!xD(e,a,this.currentDirection))return;const i=this.getAxisMotionValue(e);let s=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(s=ygt(s,this.constraints[e],this.elastic[e])),i.set(s)}resolveConstraints(){const{dragConstraints:e,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;e&&e2(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=_gt(n.layoutBox,e):this.constraints=!1,this.elastic=Tgt(r),a!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&_d(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Sgt(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!e2(e))return!1;const n=e.current;Wg(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=Apt(n,a.root,this.visualElement.getTransformPagePoint());let s=bgt(a.layout.layoutBox,i);if(r){const o=r(xpt(s));this.hasMutatedConstraints=!!o,o&&(s=i5e(o))}return s}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:a,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=_d(d=>{if(!xD(d,r,this.currentDirection))return;let h=l&&l[d]||{};s&&(h={min:0,max:0});const f=a?200:1e6,p=a?40:1e7,g={type:"inertia",velocity:n?e[d]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(o)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return qj(this.visualElement,e),n.start(Cre(e,n,0,r,this.visualElement,!1))}stopAnimation(){_d(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){_d(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const r=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),a=n[r];return a||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){_d(r=>{const{drag:n}=this.getProps();if(!xD(r,n,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(r);if(a&&a.layout){const{min:s,max:o}=a.layout.layoutBox[r],l=i.get()||0;i.set(e[r]-Hi(s,o,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!e2(r)||!n||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};_d(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const l=o.get();a[s]=Egt({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),_d(s=>{if(!xD(s,e,null))return;const o=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];o.set(Hi(l,u,a[s]))})}addListeners(){if(!this.visualElement.current)return;xgt.set(this.visualElement,this);const e=this.visualElement.current,r=TR(e,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&!V4e(l.target)&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();e2(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",n);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),bi.read(n);const s=gN(window,"resize",()=>this.scalePositionWithinConstraints()),o=a.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(_d(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=l[d].translate,h.set(h.get()+l[d].translate))}),this.visualElement.render())}));return()=>{s(),r(),i(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:s=jj,dragMomentum:o=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:a,dragConstraints:i,dragElastic:s,dragMomentum:o}}}function xD(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function Cgt(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class Agt extends C0{constructor(e){super(e),this.removeGroupControls=Vd,this.removeListeners=Vd,this.controls=new wgt(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Vd}update(){const{dragControls:e}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};e!==r&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const Sve=t=>(e,r)=>{t&&bi.postRender(()=>t(e,r))};class Rgt extends C0{constructor(){super(...arguments),this.removePointerDownListener=Vd}onPointerDown(e){this.session=new E5e(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:b5e(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:a}=this.node.getProps();return{onSessionStart:Sve(e),onStart:Sve(r),onMove:n,onEnd:(i,s)=>{delete this.session,a&&bi.postRender(()=>a(i,s))}}}mount(){this.removePointerDownListener=TR(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const EP={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let yU=!1;class Ngt extends Me.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:a}=this.props,{projection:i}=e;i&&(r.group&&r.group.add(i),n&&n.register&&a&&n.register(i),yU&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),EP.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:n,drag:a,isPresent:i}=this.props,{projection:s}=n;return s&&(s.isPresent=i,yU=!0,a||e.layoutDependency!==r||r===void 0||e.isPresent!==i?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||bi.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),mre.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:a}=e;yU=!0,a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),n&&n.deregister&&n.deregister(a))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function T5e(t){const[e,r]=Hft(),n=Me.useContext(J3e);return ar.jsx(Ngt,{...t,layoutGroup:n,switchLayoutGroup:Me.useContext(n5e),isPresent:e,safeToRemove:r})}function Igt(t,e,r){const n=Tl(t)?t:ax(t);return n.start(Cre("",n,e,r)),n.animation}const kgt=(t,e)=>t.depth-e.depth;class Ogt{constructor(){this.children=[],this.isDirty=!1}add(e){Qte(this.children,e),this.isDirty=!0}remove(e){Jte(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(kgt),this.isDirty=!1,this.children.forEach(e)}}function Dgt(t,e){const r=ec.now(),n=({timestamp:a})=>{const i=a-r;i>=e&&(Yv(n),t(i-e))};return bi.setup(n,!0),()=>Yv(n)}const x5e=["TopLeft","TopRight","BottomLeft","BottomRight"],Lgt=x5e.length,Tve=t=>typeof t=="string"?parseFloat(t):t,xve=t=>typeof t=="number"||yr.test(t);function Mgt(t,e,r,n,a,i){a?(t.opacity=Hi(0,r.opacity??1,Pgt(n)),t.opacityExit=Hi(e.opacity??1,0,Bgt(n))):i&&(t.opacity=Hi(e.opacity??1,r.opacity??1,n));for(let s=0;s<Lgt;s++){const o=`border${x5e[s]}Radius`;let l=wve(e,o),u=wve(r,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||xve(l)===xve(u)?(t[o]=Math.max(Hi(Tve(l),Tve(u),n),0),(ap.test(u)||ap.test(l))&&(t[o]+="%")):t[o]=u}(e.rotate||r.rotate)&&(t.rotate=Hi(e.rotate||0,r.rotate||0,n))}function wve(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Pgt=w5e(0,.5,u4e),Bgt=w5e(.5,.95,Vd);function w5e(t,e,r){return n=>n<t?0:n>e?1:r(dN(t,e,n))}function Cve(t,e){t.min=e.min,t.max=e.max}function hh(t,e){Cve(t.x,e.x),Cve(t.y,e.y)}function Ave(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Rve(t,e,r,n,a){return t-=e,t=h4(t,1/r,n),a!==void 0&&(t=h4(t,1/a,n)),t}function Fgt(t,e=0,r=1,n=.5,a,i=t,s=t){if(ap.test(e)&&(e=parseFloat(e),e=Hi(s.min,s.max,e/100)-s.min),typeof e!="number")return;let o=Hi(i.min,i.max,n);t===i&&(o-=e),t.min=Rve(t.min,e,r,o,a),t.max=Rve(t.max,e,r,o,a)}function Nve(t,e,[r,n,a],i,s){Fgt(t,e[r],e[n],e[a],e.scale,i,s)}const Ugt=["x","scaleX","originX"],$gt=["y","scaleY","originY"];function Ive(t,e,r,n){Nve(t.x,e,Ugt,r?r.x:void 0,n?n.x:void 0),Nve(t.y,e,$gt,r?r.y:void 0,n?n.y:void 0)}function kve(t){return t.translate===0&&t.scale===1}function C5e(t){return kve(t.x)&&kve(t.y)}function Ove(t,e){return t.min===e.min&&t.max===e.max}function Ggt(t,e){return Ove(t.x,e.x)&&Ove(t.y,e.y)}function Dve(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function A5e(t,e){return Dve(t.x,e.x)&&Dve(t.y,e.y)}function Lve(t){return tc(t.x)/tc(t.y)}function Mve(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class zgt{constructor(){this.members=[]}add(e){Qte(this.members,e),e.scheduleRender()}remove(e){if(Jte(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(a=>e===a);if(r===0)return!1;let n;for(let a=r;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(e,r){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,r&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:a}=e.options;a===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:r,resumingFrom:n}=e;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Vgt(t,e,r){let n="";const a=t.x.translate/e.x,i=t.y.translate/e.y,s=r?.z||0;if((a||i||s)&&(n=`translate3d(${a}px, ${i}px, ${s}px) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){const{transformPerspective:u,rotate:d,rotateX:h,rotateY:f,skewX:p,skewY:g}=r;u&&(n=`perspective(${u}px) ${n}`),d&&(n+=`rotate(${d}deg) `),h&&(n+=`rotateX(${h}deg) `),f&&(n+=`rotateY(${f}deg) `),p&&(n+=`skewX(${p}deg) `),g&&(n+=`skewY(${g}deg) `)}const o=t.x.scale*e.x,l=t.y.scale*e.y;return(o!==1||l!==1)&&(n+=`scale(${o}, ${l})`),n||"none"}const _U=["","X","Y","Z"],Hgt=1e3;let Ygt=0;function bU(t,e,r,n){const{latestValues:a}=e;a[t]&&(r[t]=a[t],e.setStaticValue(t,0),n&&(n[t]=0))}function R5e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const r=f5e(e);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:a,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",bi,!(a||i))}const{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&R5e(n)}function N5e({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(s={},o=e?.()){this.id=Ygt++,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(Xgt),this.nodes.forEach(Qgt),this.nodes.forEach(Jgt),this.nodes.forEach(jgt)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ogt)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new tre),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const l=this.eventHandlers.get(s);l&&l.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=H4e(s)&&!Gft(s),this.instance=s;const{layoutId:o,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||o)&&(this.isLayoutDirty=!0),t){let d,h=0;const f=()=>this.root.updateBlockedByResize=!1;bi.read(()=>{h=window.innerWidth}),t(s,()=>{const p=window.innerWidth;p!==h&&(h=p,this.root.updateBlockedByResize=!0,d&&d(),d=Dgt(f,250),EP.hasAnimatedSinceResize&&(EP.hasAnimatedSinceResize=!1,this.nodes.forEach(Fve)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&u&&(o||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||amt,{onLayoutAnimationStart:m,onLayoutAnimationComplete:_}=u.getProps(),y=!this.targetLayout||!A5e(this.targetLayout,p),v=!h&&f;if(this.options.layoutRoot||this.resumeFrom||v||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...pre(g,"layout"),onPlay:m,onComplete:_};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(d,v)}else h||Fve(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Yv(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(emt),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&R5e(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Pve);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Bve);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Zgt),this.nodes.forEach(Wgt),this.nodes.forEach(qgt)):this.nodes.forEach(Bve),this.clearAllSnapshots();const o=ec.now();Ho.delta=cp(0,1e3/60,o-Ho.timestamp),Ho.timestamp=o,Ho.isProcessing=!0,oU.update.process(Ho),oU.preRender.process(Ho),oU.render.process(Ho),Ho.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,mre.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Kgt),this.sharedNodes.forEach(tmt)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,bi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){bi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!tc(this.snapshot.measuredBox.x)&&!tc(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 s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=js(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o&&this.instance){const l=n(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!a)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!C5e(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&this.instance&&(o||Xy(this.latestValues)||d)&&(a(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),imt(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return js();const o=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(smt))){const{scroll:u}=this.root;u&&(aS(o.x,u.offset.x),aS(o.y,u.offset.y))}return o}removeElementScroll(s){const o=js();if(hh(o,s),this.scroll?.wasRoot)return o;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:h}=u;u!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&hh(o,s),aS(o.x,d.offset.x),aS(o.y,d.offset.y))}return o}applyTransform(s,o=!1){const l=js();hh(l,s);for(let u=0;u<this.path.length;u++){const d=this.path[u];!o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&iS(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Xy(d.latestValues)&&iS(l,d.latestValues)}return Xy(this.latestValues)&&iS(l,this.latestValues),l}removeTransform(s){const o=js();hh(o,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Xy(u.latestValues))continue;Vj(u.latestValues)&&u.updateSnapshot();const d=js(),h=u.measurePageBox();hh(d,h),Ive(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Xy(this.latestValues)&&Ive(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Ho.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==o;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:h}=this.options;if(!this.layout||!(d||h))return;this.resolvedRelativeTargetAt=Ho.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=js(),this.targetWithTransforms=js()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pgt(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):hh(this.target,this.layout.layoutBox),o5e(this.target,this.targetDelta)):hh(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Vj(this.parent.latestValues)||s5e(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,o,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=js(),this.relativeTargetOrigin=js(),f4(this.relativeTargetOrigin,o,l),hh(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const s=this.getLead(),o=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Ho.timestamp&&(l=!1),l)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;hh(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Cpt(this.layoutCorrected,this.treeScale,this.path,o),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=js());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ave(this.prevProjectionDelta.x,this.projectionDelta.x),Ave(this.prevProjectionDelta.y,this.projectionDelta.y)),xR(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Mve(this.projectionDelta.x,this.prevProjectionDelta.x)||!Mve(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=sS(),this.projectionDelta=sS(),this.projectionDeltaWithTransform=sS()}setAnimationOrigin(s,o=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},h=sS();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const f=js(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,m=p!==g,_=this.getStack(),y=!_||_.members.length<=1,v=!!(m&&!y&&this.options.crossfade===!0&&!this.path.some(nmt));this.animationProgress=0;let b;this.mixTargetDelta=E=>{const S=E/1e3;Uve(h.x,s.x,S),Uve(h.y,s.y,S),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(f4(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rmt(this.relativeTarget,this.relativeTargetOrigin,f,S),b&&Ggt(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=js()),hh(b,this.relativeTarget)),m&&(this.animationValues=d,Mgt(d,u,this.latestValues,S,v,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Yv(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=bi.update(()=>{EP.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ax(0)),this.currentAnimation=Igt(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Hgt),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:d}=s;if(!(!o||!l||!u)){if(this!==s&&this.layout&&u&&I5e(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||js();const h=tc(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+h;const f=tc(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}hh(o,l),iS(o,d),xR(this.projectionDeltaWithTransform,this.layoutCorrected,o,d)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new zgt),this.sharedNodes.get(s).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&bU("z",s,u,this.animationValues);for(let d=0;d<_U.length;d++)bU(`rotate${_U[d]}`,s,u,this.animationValues),bU(`skew${_U[d]}`,s,u,this.animationValues);s.render();for(const d in u)s.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);s.scheduleRender()}applyProjectionStyles(s,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=bP(o?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=bP(o?.pointerEvents)||""),this.hasProjected&&!Xy(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=Vgt(this.projectionDeltaWithTransform,this.treeScale,d);l&&(h=l(d,h)),s.transform=h;const{x:f,y:p}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,u.animationValues?s.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in zj){if(d[g]===void 0)continue;const{correct:m,applyTo:_,isCSSVariable:y}=zj[g],v=h==="none"?d[g]:m(d[g],u);if(_){const b=_.length;for(let E=0;E<b;E++)s[_[E]]=v}else y?this.options.visualElement.renderState.vars[g]=v:s[g]=v}this.options.layoutId&&(s.pointerEvents=u===this?bP(o?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(Pve),this.root.sharedNodes.clear()}}}function Wgt(t){t.updateLayout()}function qgt(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:n}=t.layout,{animationType:a}=t.options,i=e.source!==t.layout.source;a==="size"?_d(d=>{const h=i?e.measuredBox[d]:e.layoutBox[d],f=tc(h);h.min=r[d].min,h.max=h.min+f}):I5e(a,e.layoutBox,r)&&_d(d=>{const h=i?e.measuredBox[d]:e.layoutBox[d],f=tc(r[d]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+f)});const s=sS();xR(s,r,e.layoutBox);const o=sS();i?xR(o,t.applyTransform(n,!0),e.measuredBox):xR(o,r,e.layoutBox);const l=!C5e(s);let u=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:f}=d;if(h&&f){const p=js();f4(p,e.layoutBox,h.layoutBox);const g=js();f4(g,r,f.layoutBox),A5e(p,g)||(u=!0),d.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:o,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function Xgt(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function jgt(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Kgt(t){t.clearSnapshot()}function Pve(t){t.clearMeasurements()}function Bve(t){t.isLayoutDirty=!1}function Zgt(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Fve(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Qgt(t){t.resolveTargetDelta()}function Jgt(t){t.calcProjection()}function emt(t){t.resetSkewAndRotation()}function tmt(t){t.removeLeadSnapshot()}function Uve(t,e,r){t.translate=Hi(e.translate,0,r),t.scale=Hi(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function $ve(t,e,r,n){t.min=Hi(e.min,r.min,n),t.max=Hi(e.max,r.max,n)}function rmt(t,e,r,n){$ve(t.x,e.x,r.x,n),$ve(t.y,e.y,r.y,n)}function nmt(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const amt={duration:.45,ease:[.4,0,.1,1]},Gve=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),zve=Gve("applewebkit/")&&!Gve("chrome/")?Math.round:Vd;function Vve(t){t.min=zve(t.min),t.max=zve(t.max)}function imt(t){Vve(t.x),Vve(t.y)}function I5e(t,e,r){return t==="position"||t==="preserve-aspect"&&!fgt(Lve(e),Lve(r),.2)}function smt(t){return t!==t.root&&t.scroll?.wasRoot}const omt=N5e({attachResizeListener:(t,e)=>gN(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),EU={current:void 0},k5e=N5e({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!EU.current){const t=new omt({});t.mount(window),t.setOptions({layoutScroll:!0}),EU.current=t}return EU.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),lmt={pan:{Feature:Rgt},drag:{Feature:Agt,ProjectionNode:k5e,MeasureLayout:T5e}};function Hve(t,e,r){const{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover",r==="Start");const a="onHover"+r,i=n[a];i&&bi.postRender(()=>i(e,ZI(e)))}class cmt extends C0{mount(){const{current:e}=this.node;e&&(this.unmount=Bft(e,(r,n)=>(Hve(this.node,n,"Start"),a=>Hve(this.node,a,"End"))))}unmount(){}}class umt extends C0{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=XI(gN(this.node.current,"focus",()=>this.onFocus()),gN(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Yve(t,e,r){const{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap",r==="Start");const a="onTap"+(r==="End"?"":r),i=n[a];i&&bi.postRender(()=>i(e,ZI(e)))}class dmt extends C0{mount(){const{current:e}=this.node;e&&(this.unmount=$ft(e,(r,n)=>(Yve(this.node,n,"Start"),(a,{success:i})=>Yve(this.node,a,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Kj=new WeakMap,SU=new WeakMap,hmt=t=>{const e=Kj.get(t.target);e&&e(t)},fmt=t=>{t.forEach(hmt)};function pmt({root:t,...e}){const r=t||document;SU.has(r)||SU.set(r,{});const n=SU.get(r),a=JSON.stringify(e);return n[a]||(n[a]=new IntersectionObserver(fmt,{root:t,...e})),n[a]}function gmt(t,e,r){const n=pmt(e);return Kj.set(t,r),n.observe(t),()=>{Kj.delete(t),n.unobserve(t)}}const mmt={some:0,all:1};class vmt extends C0{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:a="some",once:i}=e,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof a=="number"?a:mmt[a]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=u?d:h;f&&f(l)};return gmt(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(ymt(e,r))&&this.startObserver()}unmount(){}}function ymt({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const _mt={inView:{Feature:vmt},tap:{Feature:dmt},focus:{Feature:umt},hover:{Feature:cmt}},bmt={layout:{ProjectionNode:k5e,MeasureLayout:T5e}},Emt={...ogt,..._mt,...lmt,...bmt},O5e=Tpt(Emt,Ppt);function D5e(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(r=D5e(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function $a(){for(var t,e,r=0,n="",a=arguments.length;r<a;r++)(t=arguments[r])&&(e=D5e(t))&&(n&&(n+=" "),n+=e);return n}function Are(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Wb=Are();function L5e(t){Wb=t}var wR={exec:()=>null};function Ga(t,e=""){let r=typeof t=="string"?t:t.source;const n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(rc.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var rc={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},Smt=/^(?:[ \t]*(?:\n|$))+/,Tmt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,xmt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,QI=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,wmt=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Rre=/(?:[*+-]|\d{1,9}[.)])/,M5e=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,P5e=Ga(M5e).replace(/bull/g,Rre).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Cmt=Ga(M5e).replace(/bull/g,Rre).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Nre=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Amt=/^[^\n]+/,Ire=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Rmt=Ga(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ire).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Nmt=Ga(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Rre).getRegex(),MB="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",kre=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Imt=Ga("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",kre).replace("tag",MB).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),B5e=Ga(Nre).replace("hr",QI).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",MB).getRegex(),kmt=Ga(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",B5e).getRegex(),Ore={blockquote:kmt,code:Tmt,def:Rmt,fences:xmt,heading:wmt,hr:QI,html:Imt,lheading:P5e,list:Nmt,newline:Smt,paragraph:B5e,table:wR,text:Amt},Wve=Ga("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",QI).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",MB).getRegex(),Omt={...Ore,lheading:Cmt,table:Wve,paragraph:Ga(Nre).replace("hr",QI).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Wve).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",MB).getRegex()},Dmt={...Ore,html:Ga(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",kre).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:wR,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ga(Nre).replace("hr",QI).replace("heading",` *#{1,6} *[^
3
3
  ]`).replace("lheading",P5e).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Lmt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Mmt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,F5e=/^( {2,}|\\)\n(?!\s*$)/,Pmt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,PB=/[\p{P}\p{S}]/u,Dre=/[\s\p{P}\p{S}]/u,U5e=/[^\s\p{P}\p{S}]/u,Bmt=Ga(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Dre).getRegex(),$5e=/(?!~)[\p{P}\p{S}]/u,Fmt=/(?!~)[\s\p{P}\p{S}]/u,Umt=/(?:[^\s\p{P}\p{S}]|~)/u,$mt=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,G5e=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Gmt=Ga(G5e,"u").replace(/punct/g,PB).getRegex(),zmt=Ga(G5e,"u").replace(/punct/g,$5e).getRegex(),z5e="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Vmt=Ga(z5e,"gu").replace(/notPunctSpace/g,U5e).replace(/punctSpace/g,Dre).replace(/punct/g,PB).getRegex(),Hmt=Ga(z5e,"gu").replace(/notPunctSpace/g,Umt).replace(/punctSpace/g,Fmt).replace(/punct/g,$5e).getRegex(),Ymt=Ga("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,U5e).replace(/punctSpace/g,Dre).replace(/punct/g,PB).getRegex(),Wmt=Ga(/\\(punct)/,"gu").replace(/punct/g,PB).getRegex(),qmt=Ga(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Xmt=Ga(kre).replace("(?:-->|$)","-->").getRegex(),jmt=Ga("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Xmt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),p4=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Kmt=Ga(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",p4).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),V5e=Ga(/^!?\[(label)\]\[(ref)\]/).replace("label",p4).replace("ref",Ire).getRegex(),H5e=Ga(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ire).getRegex(),Zmt=Ga("reflink|nolink(?!\\()","g").replace("reflink",V5e).replace("nolink",H5e).getRegex(),Lre={_backpedal:wR,anyPunctuation:Wmt,autolink:qmt,blockSkip:$mt,br:F5e,code:Mmt,del:wR,emStrongLDelim:Gmt,emStrongRDelimAst:Vmt,emStrongRDelimUnd:Ymt,escape:Lmt,link:Kmt,nolink:H5e,punctuation:Bmt,reflink:V5e,reflinkSearch:Zmt,tag:jmt,text:Pmt,url:wR},Qmt={...Lre,link:Ga(/^!?\[(label)\]\((.*?)\)/).replace("label",p4).getRegex(),reflink:Ga(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",p4).getRegex()},Zj={...Lre,emStrongRDelimAst:Hmt,emStrongLDelim:zmt,url:Ga(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Jmt={...Zj,br:Ga(F5e).replace("{2,}","*").getRegex(),text:Ga(Zj.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},wD={normal:Ore,gfm:Omt,pedantic:Dmt},bC={normal:Lre,gfm:Zj,breaks:Jmt,pedantic:Qmt},evt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},qve=t=>evt[t];function Rf(t,e){if(e){if(rc.escapeTest.test(t))return t.replace(rc.escapeReplace,qve)}else if(rc.escapeTestNoEncode.test(t))return t.replace(rc.escapeReplaceNoEncode,qve);return t}function Xve(t){try{t=encodeURI(t).replace(rc.percentDecode,"%")}catch{return null}return t}function jve(t,e){const r=t.replace(rc.findPipe,(i,s,o)=>{let l=!1,u=s;for(;--u>=0&&o[u]==="\\";)l=!l;return l?"|":" |"}),n=r.split(rc.splitPipe);let a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(rc.slashPipe,"|");return n}function EC(t,e,r){const n=t.length;if(n===0)return"";let a=0;for(;a<n&&t.charAt(n-a-1)===e;)a++;return t.slice(0,n-a)}function tvt(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let n=0;n<t.length;n++)if(t[n]==="\\")n++;else if(t[n]===e[0])r++;else if(t[n]===e[1]&&(r--,r<0))return n;return r>0?-2:-1}function Kve(t,e,r,n,a){const i=e.href,s=e.title||null,o=t[1].replace(a.other.outputLinkReplace,"$1");n.state.inLink=!0;const l={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:i,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,l}function rvt(t,e,r){const n=t.match(r.other.indentCodeCompensation);if(n===null)return e;const a=n[1];return e.split(`
4
4
  `).map(i=>{const s=i.match(r.other.beginningSpace);if(s===null)return i;const[o]=s;return o.length>=a.length?i.slice(a.length):i}).join(`
@@ -482,7 +482,7 @@ section.${e}>footer { z-index: 1; }
482
482
  `),this.createStyleElement(n)}renderNumbering(e,r){var n="",a=[];for(var i of e){var s=`p.${this.numberingClass(i.id,i.level)}`,o="none";if(i.bullet){let l=`--${this.className}-${i.bullet.src}`.toLowerCase();n+=this.styleToString(`${s}:before`,{content:"' '",display:"inline-block",background:`var(${l})`},i.bullet.style),this.tasks.push(this.document.loadNumberingImage(i.bullet.src).then(u=>{var d=`${this.rootSelector} { ${l}: url(${u}) }`;r.appendChild(this.createStyleElement(d))}))}else if(i.levelText){let l=this.numberingCounter(i.id,i.level);const u=l+" "+(i.start-1);i.level>0&&(n+=this.styleToString(`p.${this.numberingClass(i.id,i.level-1)}`,{"counter-set":u})),a.push(u),n+=this.styleToString(`${s}:before`,{content:this.levelTextToContent(i.levelText,i.suff,i.id,this.numFormatToCssValue(i.format)),"counter-increment":l,...i.rStyle})}else o=this.numFormatToCssValue(i.format);n+=this.styleToString(s,{display:"list-item","list-style-position":"inside","list-style-type":o,...i.pStyle})}return a.length>0&&(n+=this.styleToString(this.rootSelector,{"counter-reset":a.join(" ")})),this.createStyleElement(n)}renderStyles(e){var r="";const n=this.styleMap,a=ov(e.filter(l=>l.isDefault),l=>l.target);for(const l of e){var i=l.styles;if(l.linked){var s=l.linked&&n[l.linked];s?i=i.concat(s.styles):this.options.debug&&console.warn(`Can't find linked style ${l.linked}`)}for(const u of i){var o=`${l.target??""}.${l.cssName}`;l.target!=u.target&&(o+=` ${u.target}`),a[l.target]==l&&(o=`.${this.className} ${l.target}, `+o),r+=this.styleToString(o,u.values)}}return this.createStyleElement(r)}renderNotes(e,r,n){var a=e.map(s=>r[s]).filter(s=>s);if(a.length>0){var i=this.createElement("ol",null,this.renderElements(a));n.appendChild(i)}}renderElement(e){switch(e.type){case gt.Paragraph:return this.renderParagraph(e);case gt.BookmarkStart:return this.renderBookmarkStart(e);case gt.BookmarkEnd:return null;case gt.Run:return this.renderRun(e);case gt.Table:return this.renderTable(e);case gt.Row:return this.renderTableRow(e);case gt.Cell:return this.renderTableCell(e);case gt.Hyperlink:return this.renderHyperlink(e);case gt.SmartTag:return this.renderSmartTag(e);case gt.Drawing:return this.renderDrawing(e);case gt.Image:return this.renderImage(e);case gt.Text:return this.renderText(e);case gt.Text:return this.renderText(e);case gt.DeletedText:return this.renderDeletedText(e);case gt.Tab:return this.renderTab(e);case gt.Symbol:return this.renderSymbol(e);case gt.Break:return this.renderBreak(e);case gt.Footer:return this.renderContainer(e,"footer");case gt.Header:return this.renderContainer(e,"header");case gt.Footnote:case gt.Endnote:return this.renderContainer(e,"li");case gt.FootnoteReference:return this.renderFootnoteReference(e);case gt.EndnoteReference:return this.renderEndnoteReference(e);case gt.NoBreakHyphen:return this.createElement("wbr");case gt.VmlPicture:return this.renderVmlPicture(e);case gt.VmlElement:return this.renderVmlElement(e);case gt.MmlMath:return this.renderContainerNS(e,Qn.mathML,"math",{xmlns:Qn.mathML});case gt.MmlMathParagraph:return this.renderContainer(e,"span");case gt.MmlFraction:return this.renderContainerNS(e,Qn.mathML,"mfrac");case gt.MmlBase:return this.renderContainerNS(e,Qn.mathML,e.parent.type==gt.MmlMatrixRow?"mtd":"mrow");case gt.MmlNumerator:case gt.MmlDenominator:case gt.MmlFunction:case gt.MmlLimit:case gt.MmlBox:return this.renderContainerNS(e,Qn.mathML,"mrow");case gt.MmlGroupChar:return this.renderMmlGroupChar(e);case gt.MmlLimitLower:return this.renderContainerNS(e,Qn.mathML,"munder");case gt.MmlMatrix:return this.renderContainerNS(e,Qn.mathML,"mtable");case gt.MmlMatrixRow:return this.renderContainerNS(e,Qn.mathML,"mtr");case gt.MmlRadical:return this.renderMmlRadical(e);case gt.MmlSuperscript:return this.renderContainerNS(e,Qn.mathML,"msup");case gt.MmlSubscript:return this.renderContainerNS(e,Qn.mathML,"msub");case gt.MmlDegree:case gt.MmlSuperArgument:case gt.MmlSubArgument:return this.renderContainerNS(e,Qn.mathML,"mn");case gt.MmlFunctionName:return this.renderContainerNS(e,Qn.mathML,"ms");case gt.MmlDelimiter:return this.renderMmlDelimiter(e);case gt.MmlRun:return this.renderMmlRun(e);case gt.MmlNary:return this.renderMmlNary(e);case gt.MmlPreSubSuper:return this.renderMmlPreSubSuper(e);case gt.MmlBar:return this.renderMmlBar(e);case gt.MmlEquationArray:return this.renderMllList(e);case gt.Inserted:return this.renderInserted(e);case gt.Deleted:return this.renderDeleted(e);case gt.CommentRangeStart:return this.renderCommentRangeStart(e);case gt.CommentRangeEnd:return this.renderCommentRangeEnd(e);case gt.CommentReference:return this.renderCommentReference(e);case gt.AltChunk:return this.renderAltChunk(e)}return null}renderElements(e,r){if(e==null)return null;var n=e.flatMap(a=>this.renderElement(a)).filter(a=>a!=null);return r&&uH(r,n),n}renderContainer(e,r,n){return this.createElement(r,n,this.renderElements(e.children))}renderContainerNS(e,r,n,a){return this.createElementNS(r,n,a,this.renderElements(e.children))}renderParagraph(e){var r=this.renderContainer(e,"p");const n=this.findStyle(e.styleName);e.tabs??(e.tabs=n?.paragraphProps?.tabs),this.renderClass(e,r),this.renderStyleValues(e.cssStyle,r),this.renderCommonProperties(r.style,e);const a=e.numbering??n?.paragraphProps?.numbering;return a&&r.classList.add(this.numberingClass(a.id,a.level)),r}renderRunProperties(e,r){this.renderCommonProperties(e,r)}renderCommonProperties(e,r){r!=null&&(r.color&&(e.color=r.color),r.fontSize&&(e["font-size"]=r.fontSize))}renderHyperlink(e){var r=this.renderContainer(e,"a");this.renderStyleValues(e.cssStyle,r);let n="";return e.id&&(n=this.document.documentPart.rels.find(i=>i.id==e.id&&i.targetMode==="External")?.target??n),e.anchor&&(n+=`#${e.anchor}`),r.href=n,r}renderSmartTag(e){return this.renderContainer(e,"span")}renderCommentRangeStart(e){if(!this.options.renderComments)return null;const r=new Range;this.commentHighlight?.add(r);const n=this.createComment(`start of comment #${e.id}`);return this.later(()=>r.setStart(n,0)),this.commentMap[e.id]=r,n}renderCommentRangeEnd(e){if(!this.options.renderComments)return null;const r=this.commentMap[e.id],n=this.createComment(`end of comment #${e.id}`);return this.later(()=>r?.setEnd(n,0)),n}renderCommentReference(e){if(!this.options.renderComments)return null;var r=this.document.commentsPart?.commentMap[e.id];if(!r)return null;const n=new DocumentFragment,a=this.createElement("span",{className:`${this.className}-comment-ref`},["💬"]),i=this.createElement("div",{className:`${this.className}-comment-popover`});return this.renderCommentContent(r,i),n.appendChild(this.createComment(`comment #${r.id} by ${r.author} on ${r.date}`)),n.appendChild(a),n.appendChild(i),n}renderAltChunk(e){if(!this.options.renderAltChunks)return null;var r=this.createElement("iframe");return this.tasks.push(this.document.loadAltChunk(e.id,this.currentPart).then(n=>{r.srcdoc=n})),r}renderCommentContent(e,r){r.appendChild(this.createElement("div",{className:`${this.className}-comment-author`},[e.author])),r.appendChild(this.createElement("div",{className:`${this.className}-comment-date`},[new Date(e.date).toLocaleString()])),this.renderElements(e.children,r)}renderDrawing(e){var r=this.renderContainer(e,"div");return r.style.display="inline-block",r.style.position="relative",r.style.textIndent="0px",this.renderStyleValues(e.cssStyle,r),r}renderImage(e){let r=this.createElement("img"),n=e.cssStyle?.transform;if(this.renderStyleValues(e.cssStyle,r),e.srcRect&&e.srcRect.some(l=>l!=0)){var[a,i,s,o]=e.srcRect;n=`scale(${1/(1-a-s)}, ${1/(1-i-o)})`,r.style["clip-path"]=`rect(${(100*i).toFixed(2)}% ${(100*(1-s)).toFixed(2)}% ${(100*(1-o)).toFixed(2)}% ${(100*a).toFixed(2)}%)`}return e.rotation&&(n=`rotate(${e.rotation}deg) ${n??""}`),r.style.transform=n?.trim(),this.document&&this.tasks.push(this.document.loadDocumentImage(e.src,this.currentPart).then(l=>{r.src=l})),r}renderText(e){return this.htmlDocument.createTextNode(e.text)}renderDeletedText(e){return this.options.renderChanges?this.renderText(e):null}renderBreak(e){return e.break=="textWrapping"?this.createElement("br"):null}renderInserted(e){return this.options.renderChanges?this.renderContainer(e,"ins"):this.renderElements(e.children)}renderDeleted(e){return this.options.renderChanges?this.renderContainer(e,"del"):null}renderSymbol(e){var r=this.createElement("span");return r.style.fontFamily=e.font,r.innerHTML=`&#x${e.char};`,r}renderFootnoteReference(e){var r=this.createElement("sup");return this.currentFootnoteIds.push(e.id),r.textContent=`${this.currentFootnoteIds.length}`,r}renderEndnoteReference(e){var r=this.createElement("sup");return this.currentEndnoteIds.push(e.id),r.textContent=`${this.currentEndnoteIds.length}`,r}renderTab(e){var r=this.createElement("span");if(r.innerHTML="&emsp;",this.options.experimental){r.className=this.tabStopClass();var n=U8t(e,gt.Paragraph)?.tabs;this.currentTabs.push({stops:n,span:r})}return r}renderBookmarkStart(e){return this.createElement("span",{id:e.name})}renderRun(e){if(e.fieldRun)return null;const r=this.createElement("span");if(e.id&&(r.id=e.id),this.renderClass(e,r),this.renderStyleValues(e.cssStyle,r),e.verticalAlign){const n=this.createElement(e.verticalAlign);this.renderElements(e.children,n),r.appendChild(n)}else this.renderElements(e.children,r);return r}renderTable(e){let r=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},e.columns&&r.appendChild(this.renderTableColumns(e.columns)),this.renderClass(e,r),this.renderElements(e.children,r),this.renderStyleValues(e.cssStyle,r),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),r}renderTableColumns(e){let r=this.createElement("colgroup");for(let n of e){let a=this.createElement("col");n.width&&(a.style.width=n.width),r.appendChild(a)}return r}renderTableRow(e){let r=this.createElement("tr");return this.currentCellPosition.col=0,e.gridBefore&&r.appendChild(this.renderTableCellPlaceholder(e.gridBefore)),this.renderClass(e,r),this.renderElements(e.children,r),this.renderStyleValues(e.cssStyle,r),e.gridAfter&&r.appendChild(this.renderTableCellPlaceholder(e.gridAfter)),this.currentCellPosition.row++,r}renderTableCellPlaceholder(e){const r=this.createElement("td",{colSpan:e});return r.style.border="none",r}renderTableCell(e){let r=this.renderContainer(e,"td");const n=this.currentCellPosition.col;return e.verticalMerge?e.verticalMerge=="restart"?(this.currentVerticalMerge[n]=r,r.rowSpan=1):this.currentVerticalMerge[n]&&(this.currentVerticalMerge[n].rowSpan+=1,r.style.display="none"):this.currentVerticalMerge[n]=null,this.renderClass(e,r),this.renderStyleValues(e.cssStyle,r),e.span&&(r.colSpan=e.span),this.currentCellPosition.col+=r.colSpan,r}renderVmlPicture(e){return this.renderContainer(e,"div")}renderVmlElement(e){var r=this.createSvgElement("svg");r.setAttribute("style",e.cssStyleText);const n=this.renderVmlChildElement(e);return e.imageHref?.id&&this.tasks.push(this.document?.loadDocumentImage(e.imageHref.id,this.currentPart).then(a=>n.setAttribute("href",a))),r.appendChild(n),requestAnimationFrame(()=>{const a=r.firstElementChild.getBBox();r.setAttribute("width",`${Math.ceil(a.x+a.width)}`),r.setAttribute("height",`${Math.ceil(a.y+a.height)}`)}),r}renderVmlChildElement(e){const r=this.createSvgElement(e.tagName);Object.entries(e.attrs).forEach(([n,a])=>r.setAttribute(n,a));for(let n of e.children)n.type==gt.VmlElement?r.appendChild(this.renderVmlChildElement(n)):r.appendChild(...iA(this.renderElement(n)));return r}renderMmlRadical(e){const r=e.children.find(a=>a.type==gt.MmlBase);if(e.props?.hideDegree)return this.createElementNS(Qn.mathML,"msqrt",null,this.renderElements([r]));const n=e.children.find(a=>a.type==gt.MmlDegree);return this.createElementNS(Qn.mathML,"mroot",null,this.renderElements([r,n]))}renderMmlDelimiter(e){const r=[];return r.push(this.createElementNS(Qn.mathML,"mo",null,[e.props.beginChar??"("])),r.push(...this.renderElements(e.children)),r.push(this.createElementNS(Qn.mathML,"mo",null,[e.props.endChar??")"])),this.createElementNS(Qn.mathML,"mrow",null,r)}renderMmlNary(e){const r=[],n=ov(e.children,u=>u.type),a=n[gt.MmlSuperArgument],i=n[gt.MmlSubArgument],s=a?this.createElementNS(Qn.mathML,"mo",null,iA(this.renderElement(a))):null,o=i?this.createElementNS(Qn.mathML,"mo",null,iA(this.renderElement(i))):null,l=this.createElementNS(Qn.mathML,"mo",null,[e.props?.char??"∫"]);return s||o?r.push(this.createElementNS(Qn.mathML,"munderover",null,[l,o,s])):s?r.push(this.createElementNS(Qn.mathML,"mover",null,[l,s])):o?r.push(this.createElementNS(Qn.mathML,"munder",null,[l,o])):r.push(l),r.push(...this.renderElements(n[gt.MmlBase].children)),this.createElementNS(Qn.mathML,"mrow",null,r)}renderMmlPreSubSuper(e){const r=[],n=ov(e.children,u=>u.type),a=n[gt.MmlSuperArgument],i=n[gt.MmlSubArgument],s=a?this.createElementNS(Qn.mathML,"mo",null,iA(this.renderElement(a))):null,o=i?this.createElementNS(Qn.mathML,"mo",null,iA(this.renderElement(i))):null,l=this.createElementNS(Qn.mathML,"mo",null);return r.push(this.createElementNS(Qn.mathML,"msubsup",null,[l,o,s])),r.push(...this.renderElements(n[gt.MmlBase].children)),this.createElementNS(Qn.mathML,"mrow",null,r)}renderMmlGroupChar(e){const r=e.props.verticalJustification==="bot"?"mover":"munder",n=this.renderContainerNS(e,Qn.mathML,r);return e.props.char&&n.appendChild(this.createElementNS(Qn.mathML,"mo",null,[e.props.char])),n}renderMmlBar(e){const r=this.renderContainerNS(e,Qn.mathML,"mrow");switch(e.props.position){case"top":r.style.textDecoration="overline";break;case"bottom":r.style.textDecoration="underline";break}return r}renderMmlRun(e){const r=this.createElementNS(Qn.mathML,"ms",null,this.renderElements(e.children));return this.renderClass(e,r),this.renderStyleValues(e.cssStyle,r),r}renderMllList(e){const r=this.createElementNS(Qn.mathML,"mtable");this.renderClass(e,r),this.renderStyleValues(e.cssStyle,r);for(let n of this.renderElements(e.children))r.appendChild(this.createElementNS(Qn.mathML,"mtr",null,[this.createElementNS(Qn.mathML,"mtd",null,[n])]));return r}renderStyleValues(e,r){for(let n in e)n.startsWith("$")?r.setAttribute(n.slice(1),e[n]):r.style[n]=e[n]}renderClass(e,r){e.className&&(r.className=e.className),e.styleName&&r.classList.add(this.processStyleName(e.styleName))}findStyle(e){return e&&this.styleMap?.[e]}numberingClass(e,r){return`${this.className}-num-${e}-${r}`}tabStopClass(){return`${this.className}-tab-stop`}styleToString(e,r,n=null){let a=`${e} {\r
483
483
  `;for(const i in r)i.startsWith("$")||(a+=` ${i}: ${r[i]};\r
484
484
  `);return n&&(a+=n),a+`}\r
485
- `}numberingCounter(e,r){return`${this.className}-num-${e}-${r}`}levelTextToContent(e,r,n,a){const i={tab:"\\9",space:"\\a0"};var s=e.replace(/%\d*/g,o=>{let l=parseInt(o.substring(1),10)-1;return`"counter(${this.numberingCounter(n,l)}, ${a})"`});return`"${s}${i[r]??""}"`}numFormatToCssValue(e){var r={none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman",decimalZero:"decimal-leading-zero",aiueo:"katakana",aiueoFullWidth:"katakana",chineseCounting:"simp-chinese-informal",chineseCountingThousand:"simp-chinese-informal",chineseLegalSimplified:"simp-chinese-formal",chosung:"hangul-consonant",ideographDigital:"cjk-ideographic",ideographTraditional:"cjk-heavenly-stem",ideographLegalTraditional:"trad-chinese-formal",ideographZodiac:"cjk-earthly-branch",iroha:"katakana-iroha",irohaFullWidth:"katakana-iroha",japaneseCounting:"japanese-informal",japaneseDigitalTenThousand:"cjk-decimal",japaneseLegal:"japanese-formal",thaiNumbers:"thai",koreanCounting:"korean-hangul-formal",koreanDigital:"korean-hangul-formal",koreanDigital2:"korean-hanja-informal",hebrew1:"hebrew",hebrew2:"hebrew",hindiNumbers:"devanagari",ganada:"hangul",taiwaneseCounting:"cjk-ideographic",taiwaneseCountingThousand:"cjk-ideographic",taiwaneseDigital:"cjk-decimal"};return r[e]??e}refreshTabStops(){this.options.experimental&&setTimeout(()=>{const e=P8t();for(let r of this.currentTabs)B8t(r.span,r.stops,this.defaultTabSize,e)},500)}createElementNS(e,r,n,a){var i=e?this.htmlDocument.createElementNS(e,r):this.htmlDocument.createElement(r);return Object.assign(i,n),a&&uH(i,a),i}createElement(e,r,n){return this.createElementNS(void 0,e,r,n)}createSvgElement(e,r,n){return this.createElementNS(Qn.svg,e,r,n)}createStyleElement(e){return this.createElement("style",{innerHTML:e})}createComment(e){return this.htmlDocument.createComment(e)}later(e){this.postRenderTasks.push(e)}}function KTe(t){t.innerHTML=""}function uH(t,e){e.forEach(r=>t.appendChild(xFt(r)?document.createTextNode(r):r))}function U8t(t,e){for(var r=t.parent;r!=null&&r.type!=e;)r=r.parent;return r}const Bze={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0,hideWrapperOnPrint:!1,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,renderChanges:!1,renderComments:!1,renderAltChunks:!0};function $8t(t,e){const r={...Bze,...e};return Ice.load(t,new D8t(r),r)}async function G8t(t,e,r,n){const a={...Bze,...n};return await new F8t(window.document).render(t,e,r,a)}async function z8t(t,e,r,n){const a=await $8t(t,n);return await G8t(a,e,r,n),a}const V8t=t=>{const{url:e,requestHeaders:r}=t,n=Me.useRef(null),a=async()=>{if(!n.current)return;const s=await(await fetch(e,{headers:r})).arrayBuffer();n.current.innerHTML="",z8t(s,n.current,void 0,{inWrapper:!1,ignoreWidth:!0,ignoreHeight:!0})};return Me.useEffect(()=>{a()},[e]),ar.jsx("div",{ref:n,className:"[&>.docx]:p-0!"})};var JZ=function(t,e){return JZ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},JZ(t,e)};function Nk(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");JZ(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var qt=function(){return qt=Object.assign||function(e){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},qt.apply(this,arguments)};function to(t,e,r,n){function a(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function o(d){try{u(n.next(d))}catch(h){s(h)}}function l(d){try{u(n.throw(d))}catch(h){s(h)}}function u(d){d.done?i(d.value):a(d.value).then(o,l)}u((n=n.apply(t,e||[])).next())})}function ro(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(d){return l([u,d])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(r=0)),r;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(d){u=[6,d],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Fze(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),a,i=[],s;try{for(;(e===void 0||e-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(o){s={error:o}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function FR(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,i;n<a;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}var g2={exports:{}};var H8t=g2.exports,ZTe;function Y8t(){return ZTe||(ZTe=1,(function(t,e){(function(){var r,n="4.17.21",a=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",h=1,f=2,p=4,g=1,m=2,_=1,y=2,v=4,b=8,E=16,S=32,T=64,x=128,w=256,C=512,R=30,N="...",k=800,L=16,A=1,D=2,M=3,B=1/0,F=9007199254740991,U=17976931348623157e292,V=NaN,$=4294967295,z=$-1,q=$>>>1,j=[["ary",x],["bind",_],["bindKey",y],["curry",b],["curryRight",E],["flip",C],["partial",S],["partialRight",T],["rearg",w]],X="[object Arguments]",ie="[object Array]",ne="[object AsyncFunction]",ue="[object Boolean]",J="[object Date]",re="[object DOMException]",Z="[object Error]",ee="[object Function]",se="[object GeneratorFunction]",G="[object Map]",ce="[object Number]",Q="[object Null]",oe="[object Object]",Y="[object Promise]",be="[object Proxy]",he="[object RegExp]",De="[object Set]",we="[object String]",Ge="[object Symbol]",Oe="[object Undefined]",Fe="[object WeakMap]",Le="[object WeakSet]",$e="[object ArrayBuffer]",qe="[object DataView]",Ae="[object Float32Array]",Ke="[object Float64Array]",de="[object Int8Array]",Ee="[object Int16Array]",W="[object Int32Array]",ye="[object Uint8Array]",ve="[object Uint8ClampedArray]",ke="[object Uint16Array]",Re="[object Uint32Array]",pe=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ve=/&(?:amp|lt|gt|quot|#39);/g,ot=/[&<>"']/g,ut=RegExp(Ve.source),mt=RegExp(ot.source),Qe=/<%-([\s\S]+?)%>/g,Xe=/<%([\s\S]+?)%>/g,at=/<%=([\s\S]+?)%>/g,bt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xt=/^\w*$/,pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kt=/[\\^$.*+?()[\]{}|]/g,Et=RegExp(Kt.source),At=/^\s+/,$t=/\s/,Ht=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Lt=/\{\n\/\* \[wrapped with (.+)\] \*/,Xt=/,? & /,dn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dr=/[()=,{}\[\]\/\s]/,Wn=/\\(\\)?/g,jn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_n=/\w*$/,$r=/^[-+]0x[0-9a-f]+$/i,$n=/^0b[01]+$/i,Zt=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Nt=/^(?:0|[1-9]\d*)$/,er=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gr=/($^)/,pa=/['\n\r\u2028\u2029\\]/g,qn="\\ud800-\\udfff",ga="\\u0300-\\u036f",xi="\\ufe20-\\ufe2f",ss="\\u20d0-\\u20ff",Di=ga+xi+ss,Pn="\\u2700-\\u27bf",st="a-z\\xdf-\\xf6\\xf8-\\xff",vt="\\xac\\xb1\\xd7\\xf7",St="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ht="\\u2000-\\u206f",gr=" \\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",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Li="\\ufe0e\\ufe0f",Be=vt+St+ht+gr,hn="['’]",ol="["+qn+"]",km="["+Be+"]",Zu="["+Di+"]",Z0="\\d+",Mi="["+Pn+"]",ll="["+st+"]",cf="[^"+qn+Be+Z0+Pn+st+Ie+"]",Bl="\\ud83c[\\udffb-\\udfff]",Q0="(?:"+Zu+"|"+Bl+")",uf="[^"+qn+"]",bn="(?:\\ud83c[\\udde6-\\uddff]){2}",Pi="[\\ud800-\\udbff][\\udc00-\\udfff]",Sa="["+Ie+"]",Xn="\\u200d",uu="(?:"+ll+"|"+cf+")",yo="(?:"+Sa+"|"+cf+")",Nc="(?:"+hn+"(?:d|ll|m|re|s|t|ve))?",zs="(?:"+hn+"(?:D|LL|M|RE|S|T|VE))?",Tr=Q0+"?",Or="["+Li+"]?",En="(?:"+Xn+"(?:"+[uf,bn,Pi].join("|")+")"+Or+Tr+")*",on="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ws="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",df=Or+Tr+En,M1="(?:"+[Mi,bn,Pi].join("|")+")"+df,MO="(?:"+[uf+Zu+"?",Zu,bn,Pi,ol].join("|")+")",Epe=RegExp(hn,"g"),Spe=RegExp(Zu,"g"),J7=RegExp(Bl+"(?="+Bl+")|"+MO+df,"g"),rit=RegExp([Sa+"?"+ll+"+"+Nc+"(?="+[km,Sa,"$"].join("|")+")",yo+"+"+zs+"(?="+[km,Sa+uu,"$"].join("|")+")",Sa+"?"+uu+"+"+Nc,Sa+"+"+zs,ws,on,Z0,M1].join("|"),"g"),nit=RegExp("["+Xn+qn+Di+Li+"]"),ait=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,iit=["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"],sit=-1,pi={};pi[Ae]=pi[Ke]=pi[de]=pi[Ee]=pi[W]=pi[ye]=pi[ve]=pi[ke]=pi[Re]=!0,pi[X]=pi[ie]=pi[$e]=pi[ue]=pi[qe]=pi[J]=pi[Z]=pi[ee]=pi[G]=pi[ce]=pi[oe]=pi[he]=pi[De]=pi[we]=pi[Fe]=!1;var ii={};ii[X]=ii[ie]=ii[$e]=ii[qe]=ii[ue]=ii[J]=ii[Ae]=ii[Ke]=ii[de]=ii[Ee]=ii[W]=ii[G]=ii[ce]=ii[oe]=ii[he]=ii[De]=ii[we]=ii[Ge]=ii[ye]=ii[ve]=ii[ke]=ii[Re]=!0,ii[Z]=ii[ee]=ii[Fe]=!1;var oit={À:"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"},lit={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},cit={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},uit={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dit=parseFloat,hit=parseInt,Tpe=typeof Bd=="object"&&Bd&&Bd.Object===Object&&Bd,fit=typeof self=="object"&&self&&self.Object===Object&&self,Mo=Tpe||fit||Function("return this")(),e9=e&&!e.nodeType&&e,J0=e9&&!0&&t&&!t.nodeType&&t,xpe=J0&&J0.exports===e9,t9=xpe&&Tpe.process,Qu=(function(){try{var rt=J0&&J0.require&&J0.require("util").types;return rt||t9&&t9.binding&&t9.binding("util")}catch{}})(),wpe=Qu&&Qu.isArrayBuffer,Cpe=Qu&&Qu.isDate,Ape=Qu&&Qu.isMap,Rpe=Qu&&Qu.isRegExp,Npe=Qu&&Qu.isSet,Ipe=Qu&&Qu.isTypedArray;function du(rt,Tt,ft){switch(ft.length){case 0:return rt.call(Tt);case 1:return rt.call(Tt,ft[0]);case 2:return rt.call(Tt,ft[0],ft[1]);case 3:return rt.call(Tt,ft[0],ft[1],ft[2])}return rt.apply(Tt,ft)}function pit(rt,Tt,ft,vr){for(var xn=-1,Ca=rt==null?0:rt.length;++xn<Ca;){var Vs=rt[xn];Tt(vr,Vs,ft(Vs),rt)}return vr}function Ju(rt,Tt){for(var ft=-1,vr=rt==null?0:rt.length;++ft<vr&&Tt(rt[ft],ft,rt)!==!1;);return rt}function git(rt,Tt){for(var ft=rt==null?0:rt.length;ft--&&Tt(rt[ft],ft,rt)!==!1;);return rt}function kpe(rt,Tt){for(var ft=-1,vr=rt==null?0:rt.length;++ft<vr;)if(!Tt(rt[ft],ft,rt))return!1;return!0}function Om(rt,Tt){for(var ft=-1,vr=rt==null?0:rt.length,xn=0,Ca=[];++ft<vr;){var Vs=rt[ft];Tt(Vs,ft,rt)&&(Ca[xn++]=Vs)}return Ca}function PO(rt,Tt){var ft=rt==null?0:rt.length;return!!ft&&P1(rt,Tt,0)>-1}function r9(rt,Tt,ft){for(var vr=-1,xn=rt==null?0:rt.length;++vr<xn;)if(ft(Tt,rt[vr]))return!0;return!1}function wi(rt,Tt){for(var ft=-1,vr=rt==null?0:rt.length,xn=Array(vr);++ft<vr;)xn[ft]=Tt(rt[ft],ft,rt);return xn}function Dm(rt,Tt){for(var ft=-1,vr=Tt.length,xn=rt.length;++ft<vr;)rt[xn+ft]=Tt[ft];return rt}function n9(rt,Tt,ft,vr){var xn=-1,Ca=rt==null?0:rt.length;for(vr&&Ca&&(ft=rt[++xn]);++xn<Ca;)ft=Tt(ft,rt[xn],xn,rt);return ft}function mit(rt,Tt,ft,vr){var xn=rt==null?0:rt.length;for(vr&&xn&&(ft=rt[--xn]);xn--;)ft=Tt(ft,rt[xn],xn,rt);return ft}function a9(rt,Tt){for(var ft=-1,vr=rt==null?0:rt.length;++ft<vr;)if(Tt(rt[ft],ft,rt))return!0;return!1}var vit=i9("length");function yit(rt){return rt.split("")}function _it(rt){return rt.match(dn)||[]}function Ope(rt,Tt,ft){var vr;return ft(rt,function(xn,Ca,Vs){if(Tt(xn,Ca,Vs))return vr=Ca,!1}),vr}function BO(rt,Tt,ft,vr){for(var xn=rt.length,Ca=ft+(vr?1:-1);vr?Ca--:++Ca<xn;)if(Tt(rt[Ca],Ca,rt))return Ca;return-1}function P1(rt,Tt,ft){return Tt===Tt?kit(rt,Tt,ft):BO(rt,Dpe,ft)}function bit(rt,Tt,ft,vr){for(var xn=ft-1,Ca=rt.length;++xn<Ca;)if(vr(rt[xn],Tt))return xn;return-1}function Dpe(rt){return rt!==rt}function Lpe(rt,Tt){var ft=rt==null?0:rt.length;return ft?o9(rt,Tt)/ft:V}function i9(rt){return function(Tt){return Tt==null?r:Tt[rt]}}function s9(rt){return function(Tt){return rt==null?r:rt[Tt]}}function Mpe(rt,Tt,ft,vr,xn){return xn(rt,function(Ca,Vs,Ja){ft=vr?(vr=!1,Ca):Tt(ft,Ca,Vs,Ja)}),ft}function Eit(rt,Tt){var ft=rt.length;for(rt.sort(Tt);ft--;)rt[ft]=rt[ft].value;return rt}function o9(rt,Tt){for(var ft,vr=-1,xn=rt.length;++vr<xn;){var Ca=Tt(rt[vr]);Ca!==r&&(ft=ft===r?Ca:ft+Ca)}return ft}function l9(rt,Tt){for(var ft=-1,vr=Array(rt);++ft<rt;)vr[ft]=Tt(ft);return vr}function Sit(rt,Tt){return wi(Tt,function(ft){return[ft,rt[ft]]})}function Ppe(rt){return rt&&rt.slice(0,$pe(rt)+1).replace(At,"")}function hu(rt){return function(Tt){return rt(Tt)}}function c9(rt,Tt){return wi(Tt,function(ft){return rt[ft]})}function aC(rt,Tt){return rt.has(Tt)}function Bpe(rt,Tt){for(var ft=-1,vr=rt.length;++ft<vr&&P1(Tt,rt[ft],0)>-1;);return ft}function Fpe(rt,Tt){for(var ft=rt.length;ft--&&P1(Tt,rt[ft],0)>-1;);return ft}function Tit(rt,Tt){for(var ft=rt.length,vr=0;ft--;)rt[ft]===Tt&&++vr;return vr}var xit=s9(oit),wit=s9(lit);function Cit(rt){return"\\"+uit[rt]}function Ait(rt,Tt){return rt==null?r:rt[Tt]}function B1(rt){return nit.test(rt)}function Rit(rt){return ait.test(rt)}function Nit(rt){for(var Tt,ft=[];!(Tt=rt.next()).done;)ft.push(Tt.value);return ft}function u9(rt){var Tt=-1,ft=Array(rt.size);return rt.forEach(function(vr,xn){ft[++Tt]=[xn,vr]}),ft}function Upe(rt,Tt){return function(ft){return rt(Tt(ft))}}function Lm(rt,Tt){for(var ft=-1,vr=rt.length,xn=0,Ca=[];++ft<vr;){var Vs=rt[ft];(Vs===Tt||Vs===d)&&(rt[ft]=d,Ca[xn++]=ft)}return Ca}function FO(rt){var Tt=-1,ft=Array(rt.size);return rt.forEach(function(vr){ft[++Tt]=vr}),ft}function Iit(rt){var Tt=-1,ft=Array(rt.size);return rt.forEach(function(vr){ft[++Tt]=[vr,vr]}),ft}function kit(rt,Tt,ft){for(var vr=ft-1,xn=rt.length;++vr<xn;)if(rt[vr]===Tt)return vr;return-1}function Oit(rt,Tt,ft){for(var vr=ft+1;vr--;)if(rt[vr]===Tt)return vr;return vr}function F1(rt){return B1(rt)?Lit(rt):vit(rt)}function lh(rt){return B1(rt)?Mit(rt):yit(rt)}function $pe(rt){for(var Tt=rt.length;Tt--&&$t.test(rt.charAt(Tt)););return Tt}var Dit=s9(cit);function Lit(rt){for(var Tt=J7.lastIndex=0;J7.test(rt);)++Tt;return Tt}function Mit(rt){return rt.match(J7)||[]}function Pit(rt){return rt.match(rit)||[]}var Bit=(function rt(Tt){Tt=Tt==null?Mo:U1.defaults(Mo.Object(),Tt,U1.pick(Mo,iit));var ft=Tt.Array,vr=Tt.Date,xn=Tt.Error,Ca=Tt.Function,Vs=Tt.Math,Ja=Tt.Object,d9=Tt.RegExp,Fit=Tt.String,ed=Tt.TypeError,UO=ft.prototype,Uit=Ca.prototype,$1=Ja.prototype,$O=Tt["__core-js_shared__"],GO=Uit.toString,Va=$1.hasOwnProperty,$it=0,Gpe=(function(){var I=/[^.]+$/.exec($O&&$O.keys&&$O.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""})(),zO=$1.toString,Git=GO.call(Ja),zit=Mo._,Vit=d9("^"+GO.call(Va).replace(Kt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),VO=xpe?Tt.Buffer:r,Mm=Tt.Symbol,HO=Tt.Uint8Array,zpe=VO?VO.allocUnsafe:r,YO=Upe(Ja.getPrototypeOf,Ja),Vpe=Ja.create,Hpe=$1.propertyIsEnumerable,WO=UO.splice,Ype=Mm?Mm.isConcatSpreadable:r,iC=Mm?Mm.iterator:r,ey=Mm?Mm.toStringTag:r,qO=(function(){try{var I=iy(Ja,"defineProperty");return I({},"",{}),I}catch{}})(),Hit=Tt.clearTimeout!==Mo.clearTimeout&&Tt.clearTimeout,Yit=vr&&vr.now!==Mo.Date.now&&vr.now,Wit=Tt.setTimeout!==Mo.setTimeout&&Tt.setTimeout,XO=Vs.ceil,jO=Vs.floor,h9=Ja.getOwnPropertySymbols,qit=VO?VO.isBuffer:r,Wpe=Tt.isFinite,Xit=UO.join,jit=Upe(Ja.keys,Ja),Hs=Vs.max,cl=Vs.min,Kit=vr.now,Zit=Tt.parseInt,qpe=Vs.random,Qit=UO.reverse,f9=iy(Tt,"DataView"),sC=iy(Tt,"Map"),p9=iy(Tt,"Promise"),G1=iy(Tt,"Set"),oC=iy(Tt,"WeakMap"),lC=iy(Ja,"create"),KO=oC&&new oC,z1={},Jit=sy(f9),est=sy(sC),tst=sy(p9),rst=sy(G1),nst=sy(oC),ZO=Mm?Mm.prototype:r,cC=ZO?ZO.valueOf:r,Xpe=ZO?ZO.toString:r;function Se(I){if(Zi(I)&&!An(I)&&!(I instanceof ea)){if(I instanceof td)return I;if(Va.call(I,"__wrapped__"))return jge(I)}return new td(I)}var V1=(function(){function I(){}return function(P){if(!Bi(P))return{};if(Vpe)return Vpe(P);I.prototype=P;var H=new I;return I.prototype=r,H}})();function QO(){}function td(I,P){this.__wrapped__=I,this.__actions__=[],this.__chain__=!!P,this.__index__=0,this.__values__=r}Se.templateSettings={escape:Qe,evaluate:Xe,interpolate:at,variable:"",imports:{_:Se}},Se.prototype=QO.prototype,Se.prototype.constructor=Se,td.prototype=V1(QO.prototype),td.prototype.constructor=td;function ea(I){this.__wrapped__=I,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function ast(){var I=new ea(this.__wrapped__);return I.__actions__=Ic(this.__actions__),I.__dir__=this.__dir__,I.__filtered__=this.__filtered__,I.__iteratees__=Ic(this.__iteratees__),I.__takeCount__=this.__takeCount__,I.__views__=Ic(this.__views__),I}function ist(){if(this.__filtered__){var I=new ea(this);I.__dir__=-1,I.__filtered__=!0}else I=this.clone(),I.__dir__*=-1;return I}function sst(){var I=this.__wrapped__.value(),P=this.__dir__,H=An(I),te=P<0,fe=H?I.length:0,Ce=yot(0,fe,this.__views__),ze=Ce.start,je=Ce.end,nt=je-ze,Rt=te?je:ze-1,It=this.__iteratees__,Mt=It.length,ir=0,Dr=cl(nt,this.__takeCount__);if(!H||!te&&fe==nt&&Dr==nt)return yge(I,this.__actions__);var nn=[];e:for(;nt--&&ir<Dr;){Rt+=P;for(var Bn=-1,an=I[Rt];++Bn<Mt;){var Kn=It[Bn],sa=Kn.iteratee,gu=Kn.type,$l=sa(an);if(gu==D)an=$l;else if(!$l){if(gu==A)continue e;break e}}nn[ir++]=an}return nn}ea.prototype=V1(QO.prototype),ea.prototype.constructor=ea;function ty(I){var P=-1,H=I==null?0:I.length;for(this.clear();++P<H;){var te=I[P];this.set(te[0],te[1])}}function ost(){this.__data__=lC?lC(null):{},this.size=0}function lst(I){var P=this.has(I)&&delete this.__data__[I];return this.size-=P?1:0,P}function cst(I){var P=this.__data__;if(lC){var H=P[I];return H===l?r:H}return Va.call(P,I)?P[I]:r}function ust(I){var P=this.__data__;return lC?P[I]!==r:Va.call(P,I)}function dst(I,P){var H=this.__data__;return this.size+=this.has(I)?0:1,H[I]=lC&&P===r?l:P,this}ty.prototype.clear=ost,ty.prototype.delete=lst,ty.prototype.get=cst,ty.prototype.has=ust,ty.prototype.set=dst;function Fp(I){var P=-1,H=I==null?0:I.length;for(this.clear();++P<H;){var te=I[P];this.set(te[0],te[1])}}function hst(){this.__data__=[],this.size=0}function fst(I){var P=this.__data__,H=JO(P,I);if(H<0)return!1;var te=P.length-1;return H==te?P.pop():WO.call(P,H,1),--this.size,!0}function pst(I){var P=this.__data__,H=JO(P,I);return H<0?r:P[H][1]}function gst(I){return JO(this.__data__,I)>-1}function mst(I,P){var H=this.__data__,te=JO(H,I);return te<0?(++this.size,H.push([I,P])):H[te][1]=P,this}Fp.prototype.clear=hst,Fp.prototype.delete=fst,Fp.prototype.get=pst,Fp.prototype.has=gst,Fp.prototype.set=mst;function Up(I){var P=-1,H=I==null?0:I.length;for(this.clear();++P<H;){var te=I[P];this.set(te[0],te[1])}}function vst(){this.size=0,this.__data__={hash:new ty,map:new(sC||Fp),string:new ty}}function yst(I){var P=dD(this,I).delete(I);return this.size-=P?1:0,P}function _st(I){return dD(this,I).get(I)}function bst(I){return dD(this,I).has(I)}function Est(I,P){var H=dD(this,I),te=H.size;return H.set(I,P),this.size+=H.size==te?0:1,this}Up.prototype.clear=vst,Up.prototype.delete=yst,Up.prototype.get=_st,Up.prototype.has=bst,Up.prototype.set=Est;function ry(I){var P=-1,H=I==null?0:I.length;for(this.__data__=new Up;++P<H;)this.add(I[P])}function Sst(I){return this.__data__.set(I,l),this}function Tst(I){return this.__data__.has(I)}ry.prototype.add=ry.prototype.push=Sst,ry.prototype.has=Tst;function ch(I){var P=this.__data__=new Fp(I);this.size=P.size}function xst(){this.__data__=new Fp,this.size=0}function wst(I){var P=this.__data__,H=P.delete(I);return this.size=P.size,H}function Cst(I){return this.__data__.get(I)}function Ast(I){return this.__data__.has(I)}function Rst(I,P){var H=this.__data__;if(H instanceof Fp){var te=H.__data__;if(!sC||te.length<a-1)return te.push([I,P]),this.size=++H.size,this;H=this.__data__=new Up(te)}return H.set(I,P),this.size=H.size,this}ch.prototype.clear=xst,ch.prototype.delete=wst,ch.prototype.get=Cst,ch.prototype.has=Ast,ch.prototype.set=Rst;function jpe(I,P){var H=An(I),te=!H&&oy(I),fe=!H&&!te&&$m(I),Ce=!H&&!te&&!fe&&q1(I),ze=H||te||fe||Ce,je=ze?l9(I.length,Fit):[],nt=je.length;for(var Rt in I)(P||Va.call(I,Rt))&&!(ze&&(Rt=="length"||fe&&(Rt=="offset"||Rt=="parent")||Ce&&(Rt=="buffer"||Rt=="byteLength"||Rt=="byteOffset")||Vp(Rt,nt)))&&je.push(Rt);return je}function Kpe(I){var P=I.length;return P?I[w9(0,P-1)]:r}function Nst(I,P){return hD(Ic(I),ny(P,0,I.length))}function Ist(I){return hD(Ic(I))}function g9(I,P,H){(H!==r&&!uh(I[P],H)||H===r&&!(P in I))&&$p(I,P,H)}function uC(I,P,H){var te=I[P];(!(Va.call(I,P)&&uh(te,H))||H===r&&!(P in I))&&$p(I,P,H)}function JO(I,P){for(var H=I.length;H--;)if(uh(I[H][0],P))return H;return-1}function kst(I,P,H,te){return Pm(I,function(fe,Ce,ze){P(te,fe,H(fe),ze)}),te}function Zpe(I,P){return I&&ff(P,_o(P),I)}function Ost(I,P){return I&&ff(P,Oc(P),I)}function $p(I,P,H){P=="__proto__"&&qO?qO(I,P,{configurable:!0,enumerable:!0,value:H,writable:!0}):I[P]=H}function m9(I,P){for(var H=-1,te=P.length,fe=ft(te),Ce=I==null;++H<te;)fe[H]=Ce?r:K9(I,P[H]);return fe}function ny(I,P,H){return I===I&&(H!==r&&(I=I<=H?I:H),P!==r&&(I=I>=P?I:P)),I}function rd(I,P,H,te,fe,Ce){var ze,je=P&h,nt=P&f,Rt=P&p;if(H&&(ze=fe?H(I,te,fe,Ce):H(I)),ze!==r)return ze;if(!Bi(I))return I;var It=An(I);if(It){if(ze=bot(I),!je)return Ic(I,ze)}else{var Mt=ul(I),ir=Mt==ee||Mt==se;if($m(I))return Ege(I,je);if(Mt==oe||Mt==X||ir&&!fe){if(ze=nt||ir?{}:$ge(I),!je)return nt?cot(I,Ost(ze,I)):lot(I,Zpe(ze,I))}else{if(!ii[Mt])return fe?I:{};ze=Eot(I,Mt,je)}}Ce||(Ce=new ch);var Dr=Ce.get(I);if(Dr)return Dr;Ce.set(I,ze),gme(I)?I.forEach(function(an){ze.add(rd(an,P,H,an,I,Ce))}):fme(I)&&I.forEach(function(an,Kn){ze.set(Kn,rd(an,P,H,Kn,I,Ce))});var nn=Rt?nt?P9:M9:nt?Oc:_o,Bn=It?r:nn(I);return Ju(Bn||I,function(an,Kn){Bn&&(Kn=an,an=I[Kn]),uC(ze,Kn,rd(an,P,H,Kn,I,Ce))}),ze}function Dst(I){var P=_o(I);return function(H){return Qpe(H,I,P)}}function Qpe(I,P,H){var te=H.length;if(I==null)return!te;for(I=Ja(I);te--;){var fe=H[te],Ce=P[fe],ze=I[fe];if(ze===r&&!(fe in I)||!Ce(ze))return!1}return!0}function Jpe(I,P,H){if(typeof I!="function")throw new ed(s);return vC(function(){I.apply(r,H)},P)}function dC(I,P,H,te){var fe=-1,Ce=PO,ze=!0,je=I.length,nt=[],Rt=P.length;if(!je)return nt;H&&(P=wi(P,hu(H))),te?(Ce=r9,ze=!1):P.length>=a&&(Ce=aC,ze=!1,P=new ry(P));e:for(;++fe<je;){var It=I[fe],Mt=H==null?It:H(It);if(It=te||It!==0?It:0,ze&&Mt===Mt){for(var ir=Rt;ir--;)if(P[ir]===Mt)continue e;nt.push(It)}else Ce(P,Mt,te)||nt.push(It)}return nt}var Pm=Cge(hf),ege=Cge(y9,!0);function Lst(I,P){var H=!0;return Pm(I,function(te,fe,Ce){return H=!!P(te,fe,Ce),H}),H}function eD(I,P,H){for(var te=-1,fe=I.length;++te<fe;){var Ce=I[te],ze=P(Ce);if(ze!=null&&(je===r?ze===ze&&!pu(ze):H(ze,je)))var je=ze,nt=Ce}return nt}function Mst(I,P,H,te){var fe=I.length;for(H=In(H),H<0&&(H=-H>fe?0:fe+H),te=te===r||te>fe?fe:In(te),te<0&&(te+=fe),te=H>te?0:vme(te);H<te;)I[H++]=P;return I}function tge(I,P){var H=[];return Pm(I,function(te,fe,Ce){P(te,fe,Ce)&&H.push(te)}),H}function Po(I,P,H,te,fe){var Ce=-1,ze=I.length;for(H||(H=Tot),fe||(fe=[]);++Ce<ze;){var je=I[Ce];P>0&&H(je)?P>1?Po(je,P-1,H,te,fe):Dm(fe,je):te||(fe[fe.length]=je)}return fe}var v9=Age(),rge=Age(!0);function hf(I,P){return I&&v9(I,P,_o)}function y9(I,P){return I&&rge(I,P,_o)}function tD(I,P){return Om(P,function(H){return Hp(I[H])})}function ay(I,P){P=Fm(P,I);for(var H=0,te=P.length;I!=null&&H<te;)I=I[pf(P[H++])];return H&&H==te?I:r}function nge(I,P,H){var te=P(I);return An(I)?te:Dm(te,H(I))}function Fl(I){return I==null?I===r?Oe:Q:ey&&ey in Ja(I)?vot(I):Iot(I)}function _9(I,P){return I>P}function Pst(I,P){return I!=null&&Va.call(I,P)}function Bst(I,P){return I!=null&&P in Ja(I)}function Fst(I,P,H){return I>=cl(P,H)&&I<Hs(P,H)}function b9(I,P,H){for(var te=H?r9:PO,fe=I[0].length,Ce=I.length,ze=Ce,je=ft(Ce),nt=1/0,Rt=[];ze--;){var It=I[ze];ze&&P&&(It=wi(It,hu(P))),nt=cl(It.length,nt),je[ze]=!H&&(P||fe>=120&&It.length>=120)?new ry(ze&&It):r}It=I[0];var Mt=-1,ir=je[0];e:for(;++Mt<fe&&Rt.length<nt;){var Dr=It[Mt],nn=P?P(Dr):Dr;if(Dr=H||Dr!==0?Dr:0,!(ir?aC(ir,nn):te(Rt,nn,H))){for(ze=Ce;--ze;){var Bn=je[ze];if(!(Bn?aC(Bn,nn):te(I[ze],nn,H)))continue e}ir&&ir.push(nn),Rt.push(Dr)}}return Rt}function Ust(I,P,H,te){return hf(I,function(fe,Ce,ze){P(te,H(fe),Ce,ze)}),te}function hC(I,P,H){P=Fm(P,I),I=Hge(I,P);var te=I==null?I:I[pf(ad(P))];return te==null?r:du(te,I,H)}function age(I){return Zi(I)&&Fl(I)==X}function $st(I){return Zi(I)&&Fl(I)==$e}function Gst(I){return Zi(I)&&Fl(I)==J}function fC(I,P,H,te,fe){return I===P?!0:I==null||P==null||!Zi(I)&&!Zi(P)?I!==I&&P!==P:zst(I,P,H,te,fC,fe)}function zst(I,P,H,te,fe,Ce){var ze=An(I),je=An(P),nt=ze?ie:ul(I),Rt=je?ie:ul(P);nt=nt==X?oe:nt,Rt=Rt==X?oe:Rt;var It=nt==oe,Mt=Rt==oe,ir=nt==Rt;if(ir&&$m(I)){if(!$m(P))return!1;ze=!0,It=!1}if(ir&&!It)return Ce||(Ce=new ch),ze||q1(I)?Bge(I,P,H,te,fe,Ce):got(I,P,nt,H,te,fe,Ce);if(!(H&g)){var Dr=It&&Va.call(I,"__wrapped__"),nn=Mt&&Va.call(P,"__wrapped__");if(Dr||nn){var Bn=Dr?I.value():I,an=nn?P.value():P;return Ce||(Ce=new ch),fe(Bn,an,H,te,Ce)}}return ir?(Ce||(Ce=new ch),mot(I,P,H,te,fe,Ce)):!1}function Vst(I){return Zi(I)&&ul(I)==G}function E9(I,P,H,te){var fe=H.length,Ce=fe,ze=!te;if(I==null)return!Ce;for(I=Ja(I);fe--;){var je=H[fe];if(ze&&je[2]?je[1]!==I[je[0]]:!(je[0]in I))return!1}for(;++fe<Ce;){je=H[fe];var nt=je[0],Rt=I[nt],It=je[1];if(ze&&je[2]){if(Rt===r&&!(nt in I))return!1}else{var Mt=new ch;if(te)var ir=te(Rt,It,nt,I,P,Mt);if(!(ir===r?fC(It,Rt,g|m,te,Mt):ir))return!1}}return!0}function ige(I){if(!Bi(I)||wot(I))return!1;var P=Hp(I)?Vit:Zt;return P.test(sy(I))}function Hst(I){return Zi(I)&&Fl(I)==he}function Yst(I){return Zi(I)&&ul(I)==De}function Wst(I){return Zi(I)&&yD(I.length)&&!!pi[Fl(I)]}function sge(I){return typeof I=="function"?I:I==null?Dc:typeof I=="object"?An(I)?cge(I[0],I[1]):lge(I):Rme(I)}function S9(I){if(!mC(I))return jit(I);var P=[];for(var H in Ja(I))Va.call(I,H)&&H!="constructor"&&P.push(H);return P}function qst(I){if(!Bi(I))return Not(I);var P=mC(I),H=[];for(var te in I)te=="constructor"&&(P||!Va.call(I,te))||H.push(te);return H}function T9(I,P){return I<P}function oge(I,P){var H=-1,te=kc(I)?ft(I.length):[];return Pm(I,function(fe,Ce,ze){te[++H]=P(fe,Ce,ze)}),te}function lge(I){var P=F9(I);return P.length==1&&P[0][2]?zge(P[0][0],P[0][1]):function(H){return H===I||E9(H,I,P)}}function cge(I,P){return $9(I)&&Gge(P)?zge(pf(I),P):function(H){var te=K9(H,I);return te===r&&te===P?Z9(H,I):fC(P,te,g|m)}}function rD(I,P,H,te,fe){I!==P&&v9(P,function(Ce,ze){if(fe||(fe=new ch),Bi(Ce))Xst(I,P,ze,H,rD,te,fe);else{var je=te?te(z9(I,ze),Ce,ze+"",I,P,fe):r;je===r&&(je=Ce),g9(I,ze,je)}},Oc)}function Xst(I,P,H,te,fe,Ce,ze){var je=z9(I,H),nt=z9(P,H),Rt=ze.get(nt);if(Rt){g9(I,H,Rt);return}var It=Ce?Ce(je,nt,H+"",I,P,ze):r,Mt=It===r;if(Mt){var ir=An(nt),Dr=!ir&&$m(nt),nn=!ir&&!Dr&&q1(nt);It=nt,ir||Dr||nn?An(je)?It=je:os(je)?It=Ic(je):Dr?(Mt=!1,It=Ege(nt,!0)):nn?(Mt=!1,It=Sge(nt,!0)):It=[]:yC(nt)||oy(nt)?(It=je,oy(je)?It=yme(je):(!Bi(je)||Hp(je))&&(It=$ge(nt))):Mt=!1}Mt&&(ze.set(nt,It),fe(It,nt,te,Ce,ze),ze.delete(nt)),g9(I,H,It)}function uge(I,P){var H=I.length;if(H)return P+=P<0?H:0,Vp(P,H)?I[P]:r}function dge(I,P,H){P.length?P=wi(P,function(Ce){return An(Ce)?function(ze){return ay(ze,Ce.length===1?Ce[0]:Ce)}:Ce}):P=[Dc];var te=-1;P=wi(P,hu(Jr()));var fe=oge(I,function(Ce,ze,je){var nt=wi(P,function(Rt){return Rt(Ce)});return{criteria:nt,index:++te,value:Ce}});return Eit(fe,function(Ce,ze){return oot(Ce,ze,H)})}function jst(I,P){return hge(I,P,function(H,te){return Z9(I,te)})}function hge(I,P,H){for(var te=-1,fe=P.length,Ce={};++te<fe;){var ze=P[te],je=ay(I,ze);H(je,ze)&&pC(Ce,Fm(ze,I),je)}return Ce}function Kst(I){return function(P){return ay(P,I)}}function x9(I,P,H,te){var fe=te?bit:P1,Ce=-1,ze=P.length,je=I;for(I===P&&(P=Ic(P)),H&&(je=wi(I,hu(H)));++Ce<ze;)for(var nt=0,Rt=P[Ce],It=H?H(Rt):Rt;(nt=fe(je,It,nt,te))>-1;)je!==I&&WO.call(je,nt,1),WO.call(I,nt,1);return I}function fge(I,P){for(var H=I?P.length:0,te=H-1;H--;){var fe=P[H];if(H==te||fe!==Ce){var Ce=fe;Vp(fe)?WO.call(I,fe,1):R9(I,fe)}}return I}function w9(I,P){return I+jO(qpe()*(P-I+1))}function Zst(I,P,H,te){for(var fe=-1,Ce=Hs(XO((P-I)/(H||1)),0),ze=ft(Ce);Ce--;)ze[te?Ce:++fe]=I,I+=H;return ze}function C9(I,P){var H="";if(!I||P<1||P>F)return H;do P%2&&(H+=I),P=jO(P/2),P&&(I+=I);while(P);return H}function Gn(I,P){return V9(Vge(I,P,Dc),I+"")}function Qst(I){return Kpe(X1(I))}function Jst(I,P){var H=X1(I);return hD(H,ny(P,0,H.length))}function pC(I,P,H,te){if(!Bi(I))return I;P=Fm(P,I);for(var fe=-1,Ce=P.length,ze=Ce-1,je=I;je!=null&&++fe<Ce;){var nt=pf(P[fe]),Rt=H;if(nt==="__proto__"||nt==="constructor"||nt==="prototype")return I;if(fe!=ze){var It=je[nt];Rt=te?te(It,nt,je):r,Rt===r&&(Rt=Bi(It)?It:Vp(P[fe+1])?[]:{})}uC(je,nt,Rt),je=je[nt]}return I}var pge=KO?function(I,P){return KO.set(I,P),I}:Dc,eot=qO?function(I,P){return qO(I,"toString",{configurable:!0,enumerable:!1,value:J9(P),writable:!0})}:Dc;function tot(I){return hD(X1(I))}function nd(I,P,H){var te=-1,fe=I.length;P<0&&(P=-P>fe?0:fe+P),H=H>fe?fe:H,H<0&&(H+=fe),fe=P>H?0:H-P>>>0,P>>>=0;for(var Ce=ft(fe);++te<fe;)Ce[te]=I[te+P];return Ce}function rot(I,P){var H;return Pm(I,function(te,fe,Ce){return H=P(te,fe,Ce),!H}),!!H}function nD(I,P,H){var te=0,fe=I==null?te:I.length;if(typeof P=="number"&&P===P&&fe<=q){for(;te<fe;){var Ce=te+fe>>>1,ze=I[Ce];ze!==null&&!pu(ze)&&(H?ze<=P:ze<P)?te=Ce+1:fe=Ce}return fe}return A9(I,P,Dc,H)}function A9(I,P,H,te){var fe=0,Ce=I==null?0:I.length;if(Ce===0)return 0;P=H(P);for(var ze=P!==P,je=P===null,nt=pu(P),Rt=P===r;fe<Ce;){var It=jO((fe+Ce)/2),Mt=H(I[It]),ir=Mt!==r,Dr=Mt===null,nn=Mt===Mt,Bn=pu(Mt);if(ze)var an=te||nn;else Rt?an=nn&&(te||ir):je?an=nn&&ir&&(te||!Dr):nt?an=nn&&ir&&!Dr&&(te||!Bn):Dr||Bn?an=!1:an=te?Mt<=P:Mt<P;an?fe=It+1:Ce=It}return cl(Ce,z)}function gge(I,P){for(var H=-1,te=I.length,fe=0,Ce=[];++H<te;){var ze=I[H],je=P?P(ze):ze;if(!H||!uh(je,nt)){var nt=je;Ce[fe++]=ze===0?0:ze}}return Ce}function mge(I){return typeof I=="number"?I:pu(I)?V:+I}function fu(I){if(typeof I=="string")return I;if(An(I))return wi(I,fu)+"";if(pu(I))return Xpe?Xpe.call(I):"";var P=I+"";return P=="0"&&1/I==-B?"-0":P}function Bm(I,P,H){var te=-1,fe=PO,Ce=I.length,ze=!0,je=[],nt=je;if(H)ze=!1,fe=r9;else if(Ce>=a){var Rt=P?null:fot(I);if(Rt)return FO(Rt);ze=!1,fe=aC,nt=new ry}else nt=P?[]:je;e:for(;++te<Ce;){var It=I[te],Mt=P?P(It):It;if(It=H||It!==0?It:0,ze&&Mt===Mt){for(var ir=nt.length;ir--;)if(nt[ir]===Mt)continue e;P&&nt.push(Mt),je.push(It)}else fe(nt,Mt,H)||(nt!==je&&nt.push(Mt),je.push(It))}return je}function R9(I,P){return P=Fm(P,I),I=Hge(I,P),I==null||delete I[pf(ad(P))]}function vge(I,P,H,te){return pC(I,P,H(ay(I,P)),te)}function aD(I,P,H,te){for(var fe=I.length,Ce=te?fe:-1;(te?Ce--:++Ce<fe)&&P(I[Ce],Ce,I););return H?nd(I,te?0:Ce,te?Ce+1:fe):nd(I,te?Ce+1:0,te?fe:Ce)}function yge(I,P){var H=I;return H instanceof ea&&(H=H.value()),n9(P,function(te,fe){return fe.func.apply(fe.thisArg,Dm([te],fe.args))},H)}function N9(I,P,H){var te=I.length;if(te<2)return te?Bm(I[0]):[];for(var fe=-1,Ce=ft(te);++fe<te;)for(var ze=I[fe],je=-1;++je<te;)je!=fe&&(Ce[fe]=dC(Ce[fe]||ze,I[je],P,H));return Bm(Po(Ce,1),P,H)}function _ge(I,P,H){for(var te=-1,fe=I.length,Ce=P.length,ze={};++te<fe;){var je=te<Ce?P[te]:r;H(ze,I[te],je)}return ze}function I9(I){return os(I)?I:[]}function k9(I){return typeof I=="function"?I:Dc}function Fm(I,P){return An(I)?I:$9(I,P)?[I]:Xge(ka(I))}var not=Gn;function Um(I,P,H){var te=I.length;return H=H===r?te:H,!P&&H>=te?I:nd(I,P,H)}var bge=Hit||function(I){return Mo.clearTimeout(I)};function Ege(I,P){if(P)return I.slice();var H=I.length,te=zpe?zpe(H):new I.constructor(H);return I.copy(te),te}function O9(I){var P=new I.constructor(I.byteLength);return new HO(P).set(new HO(I)),P}function aot(I,P){var H=P?O9(I.buffer):I.buffer;return new I.constructor(H,I.byteOffset,I.byteLength)}function iot(I){var P=new I.constructor(I.source,_n.exec(I));return P.lastIndex=I.lastIndex,P}function sot(I){return cC?Ja(cC.call(I)):{}}function Sge(I,P){var H=P?O9(I.buffer):I.buffer;return new I.constructor(H,I.byteOffset,I.length)}function Tge(I,P){if(I!==P){var H=I!==r,te=I===null,fe=I===I,Ce=pu(I),ze=P!==r,je=P===null,nt=P===P,Rt=pu(P);if(!je&&!Rt&&!Ce&&I>P||Ce&&ze&&nt&&!je&&!Rt||te&&ze&&nt||!H&&nt||!fe)return 1;if(!te&&!Ce&&!Rt&&I<P||Rt&&H&&fe&&!te&&!Ce||je&&H&&fe||!ze&&fe||!nt)return-1}return 0}function oot(I,P,H){for(var te=-1,fe=I.criteria,Ce=P.criteria,ze=fe.length,je=H.length;++te<ze;){var nt=Tge(fe[te],Ce[te]);if(nt){if(te>=je)return nt;var Rt=H[te];return nt*(Rt=="desc"?-1:1)}}return I.index-P.index}function xge(I,P,H,te){for(var fe=-1,Ce=I.length,ze=H.length,je=-1,nt=P.length,Rt=Hs(Ce-ze,0),It=ft(nt+Rt),Mt=!te;++je<nt;)It[je]=P[je];for(;++fe<ze;)(Mt||fe<Ce)&&(It[H[fe]]=I[fe]);for(;Rt--;)It[je++]=I[fe++];return It}function wge(I,P,H,te){for(var fe=-1,Ce=I.length,ze=-1,je=H.length,nt=-1,Rt=P.length,It=Hs(Ce-je,0),Mt=ft(It+Rt),ir=!te;++fe<It;)Mt[fe]=I[fe];for(var Dr=fe;++nt<Rt;)Mt[Dr+nt]=P[nt];for(;++ze<je;)(ir||fe<Ce)&&(Mt[Dr+H[ze]]=I[fe++]);return Mt}function Ic(I,P){var H=-1,te=I.length;for(P||(P=ft(te));++H<te;)P[H]=I[H];return P}function ff(I,P,H,te){var fe=!H;H||(H={});for(var Ce=-1,ze=P.length;++Ce<ze;){var je=P[Ce],nt=te?te(H[je],I[je],je,H,I):r;nt===r&&(nt=I[je]),fe?$p(H,je,nt):uC(H,je,nt)}return H}function lot(I,P){return ff(I,U9(I),P)}function cot(I,P){return ff(I,Fge(I),P)}function iD(I,P){return function(H,te){var fe=An(H)?pit:kst,Ce=P?P():{};return fe(H,I,Jr(te,2),Ce)}}function H1(I){return Gn(function(P,H){var te=-1,fe=H.length,Ce=fe>1?H[fe-1]:r,ze=fe>2?H[2]:r;for(Ce=I.length>3&&typeof Ce=="function"?(fe--,Ce):r,ze&&Ul(H[0],H[1],ze)&&(Ce=fe<3?r:Ce,fe=1),P=Ja(P);++te<fe;){var je=H[te];je&&I(P,je,te,Ce)}return P})}function Cge(I,P){return function(H,te){if(H==null)return H;if(!kc(H))return I(H,te);for(var fe=H.length,Ce=P?fe:-1,ze=Ja(H);(P?Ce--:++Ce<fe)&&te(ze[Ce],Ce,ze)!==!1;);return H}}function Age(I){return function(P,H,te){for(var fe=-1,Ce=Ja(P),ze=te(P),je=ze.length;je--;){var nt=ze[I?je:++fe];if(H(Ce[nt],nt,Ce)===!1)break}return P}}function uot(I,P,H){var te=P&_,fe=gC(I);function Ce(){var ze=this&&this!==Mo&&this instanceof Ce?fe:I;return ze.apply(te?H:this,arguments)}return Ce}function Rge(I){return function(P){P=ka(P);var H=B1(P)?lh(P):r,te=H?H[0]:P.charAt(0),fe=H?Um(H,1).join(""):P.slice(1);return te[I]()+fe}}function Y1(I){return function(P){return n9(Cme(wme(P).replace(Epe,"")),I,"")}}function gC(I){return function(){var P=arguments;switch(P.length){case 0:return new I;case 1:return new I(P[0]);case 2:return new I(P[0],P[1]);case 3:return new I(P[0],P[1],P[2]);case 4:return new I(P[0],P[1],P[2],P[3]);case 5:return new I(P[0],P[1],P[2],P[3],P[4]);case 6:return new I(P[0],P[1],P[2],P[3],P[4],P[5]);case 7:return new I(P[0],P[1],P[2],P[3],P[4],P[5],P[6])}var H=V1(I.prototype),te=I.apply(H,P);return Bi(te)?te:H}}function dot(I,P,H){var te=gC(I);function fe(){for(var Ce=arguments.length,ze=ft(Ce),je=Ce,nt=W1(fe);je--;)ze[je]=arguments[je];var Rt=Ce<3&&ze[0]!==nt&&ze[Ce-1]!==nt?[]:Lm(ze,nt);if(Ce-=Rt.length,Ce<H)return Dge(I,P,sD,fe.placeholder,r,ze,Rt,r,r,H-Ce);var It=this&&this!==Mo&&this instanceof fe?te:I;return du(It,this,ze)}return fe}function Nge(I){return function(P,H,te){var fe=Ja(P);if(!kc(P)){var Ce=Jr(H,3);P=_o(P),H=function(je){return Ce(fe[je],je,fe)}}var ze=I(P,H,te);return ze>-1?fe[Ce?P[ze]:ze]:r}}function Ige(I){return zp(function(P){var H=P.length,te=H,fe=td.prototype.thru;for(I&&P.reverse();te--;){var Ce=P[te];if(typeof Ce!="function")throw new ed(s);if(fe&&!ze&&uD(Ce)=="wrapper")var ze=new td([],!0)}for(te=ze?te:H;++te<H;){Ce=P[te];var je=uD(Ce),nt=je=="wrapper"?B9(Ce):r;nt&&G9(nt[0])&&nt[1]==(x|b|S|w)&&!nt[4].length&&nt[9]==1?ze=ze[uD(nt[0])].apply(ze,nt[3]):ze=Ce.length==1&&G9(Ce)?ze[je]():ze.thru(Ce)}return function(){var Rt=arguments,It=Rt[0];if(ze&&Rt.length==1&&An(It))return ze.plant(It).value();for(var Mt=0,ir=H?P[Mt].apply(this,Rt):It;++Mt<H;)ir=P[Mt].call(this,ir);return ir}})}function sD(I,P,H,te,fe,Ce,ze,je,nt,Rt){var It=P&x,Mt=P&_,ir=P&y,Dr=P&(b|E),nn=P&C,Bn=ir?r:gC(I);function an(){for(var Kn=arguments.length,sa=ft(Kn),gu=Kn;gu--;)sa[gu]=arguments[gu];if(Dr)var $l=W1(an),mu=Tit(sa,$l);if(te&&(sa=xge(sa,te,fe,Dr)),Ce&&(sa=wge(sa,Ce,ze,Dr)),Kn-=mu,Dr&&Kn<Rt){var ls=Lm(sa,$l);return Dge(I,P,sD,an.placeholder,H,sa,ls,je,nt,Rt-Kn)}var dh=Mt?H:this,Wp=ir?dh[I]:I;return Kn=sa.length,je?sa=kot(sa,je):nn&&Kn>1&&sa.reverse(),It&&nt<Kn&&(sa.length=nt),this&&this!==Mo&&this instanceof an&&(Wp=Bn||gC(Wp)),Wp.apply(dh,sa)}return an}function kge(I,P){return function(H,te){return Ust(H,I,P(te),{})}}function oD(I,P){return function(H,te){var fe;if(H===r&&te===r)return P;if(H!==r&&(fe=H),te!==r){if(fe===r)return te;typeof H=="string"||typeof te=="string"?(H=fu(H),te=fu(te)):(H=mge(H),te=mge(te)),fe=I(H,te)}return fe}}function D9(I){return zp(function(P){return P=wi(P,hu(Jr())),Gn(function(H){var te=this;return I(P,function(fe){return du(fe,te,H)})})})}function lD(I,P){P=P===r?" ":fu(P);var H=P.length;if(H<2)return H?C9(P,I):P;var te=C9(P,XO(I/F1(P)));return B1(P)?Um(lh(te),0,I).join(""):te.slice(0,I)}function hot(I,P,H,te){var fe=P&_,Ce=gC(I);function ze(){for(var je=-1,nt=arguments.length,Rt=-1,It=te.length,Mt=ft(It+nt),ir=this&&this!==Mo&&this instanceof ze?Ce:I;++Rt<It;)Mt[Rt]=te[Rt];for(;nt--;)Mt[Rt++]=arguments[++je];return du(ir,fe?H:this,Mt)}return ze}function Oge(I){return function(P,H,te){return te&&typeof te!="number"&&Ul(P,H,te)&&(H=te=r),P=Yp(P),H===r?(H=P,P=0):H=Yp(H),te=te===r?P<H?1:-1:Yp(te),Zst(P,H,te,I)}}function cD(I){return function(P,H){return typeof P=="string"&&typeof H=="string"||(P=id(P),H=id(H)),I(P,H)}}function Dge(I,P,H,te,fe,Ce,ze,je,nt,Rt){var It=P&b,Mt=It?ze:r,ir=It?r:ze,Dr=It?Ce:r,nn=It?r:Ce;P|=It?S:T,P&=~(It?T:S),P&v||(P&=-4);var Bn=[I,P,fe,Dr,Mt,nn,ir,je,nt,Rt],an=H.apply(r,Bn);return G9(I)&&Yge(an,Bn),an.placeholder=te,Wge(an,I,P)}function L9(I){var P=Vs[I];return function(H,te){if(H=id(H),te=te==null?0:cl(In(te),292),te&&Wpe(H)){var fe=(ka(H)+"e").split("e"),Ce=P(fe[0]+"e"+(+fe[1]+te));return fe=(ka(Ce)+"e").split("e"),+(fe[0]+"e"+(+fe[1]-te))}return P(H)}}var fot=G1&&1/FO(new G1([,-0]))[1]==B?function(I){return new G1(I)}:rU;function Lge(I){return function(P){var H=ul(P);return H==G?u9(P):H==De?Iit(P):Sit(P,I(P))}}function Gp(I,P,H,te,fe,Ce,ze,je){var nt=P&y;if(!nt&&typeof I!="function")throw new ed(s);var Rt=te?te.length:0;if(Rt||(P&=-97,te=fe=r),ze=ze===r?ze:Hs(In(ze),0),je=je===r?je:In(je),Rt-=fe?fe.length:0,P&T){var It=te,Mt=fe;te=fe=r}var ir=nt?r:B9(I),Dr=[I,P,H,te,fe,It,Mt,Ce,ze,je];if(ir&&Rot(Dr,ir),I=Dr[0],P=Dr[1],H=Dr[2],te=Dr[3],fe=Dr[4],je=Dr[9]=Dr[9]===r?nt?0:I.length:Hs(Dr[9]-Rt,0),!je&&P&(b|E)&&(P&=-25),!P||P==_)var nn=uot(I,P,H);else P==b||P==E?nn=dot(I,P,je):(P==S||P==(_|S))&&!fe.length?nn=hot(I,P,H,te):nn=sD.apply(r,Dr);var Bn=ir?pge:Yge;return Wge(Bn(nn,Dr),I,P)}function Mge(I,P,H,te){return I===r||uh(I,$1[H])&&!Va.call(te,H)?P:I}function Pge(I,P,H,te,fe,Ce){return Bi(I)&&Bi(P)&&(Ce.set(P,I),rD(I,P,r,Pge,Ce),Ce.delete(P)),I}function pot(I){return yC(I)?r:I}function Bge(I,P,H,te,fe,Ce){var ze=H&g,je=I.length,nt=P.length;if(je!=nt&&!(ze&&nt>je))return!1;var Rt=Ce.get(I),It=Ce.get(P);if(Rt&&It)return Rt==P&&It==I;var Mt=-1,ir=!0,Dr=H&m?new ry:r;for(Ce.set(I,P),Ce.set(P,I);++Mt<je;){var nn=I[Mt],Bn=P[Mt];if(te)var an=ze?te(Bn,nn,Mt,P,I,Ce):te(nn,Bn,Mt,I,P,Ce);if(an!==r){if(an)continue;ir=!1;break}if(Dr){if(!a9(P,function(Kn,sa){if(!aC(Dr,sa)&&(nn===Kn||fe(nn,Kn,H,te,Ce)))return Dr.push(sa)})){ir=!1;break}}else if(!(nn===Bn||fe(nn,Bn,H,te,Ce))){ir=!1;break}}return Ce.delete(I),Ce.delete(P),ir}function got(I,P,H,te,fe,Ce,ze){switch(H){case qe:if(I.byteLength!=P.byteLength||I.byteOffset!=P.byteOffset)return!1;I=I.buffer,P=P.buffer;case $e:return!(I.byteLength!=P.byteLength||!Ce(new HO(I),new HO(P)));case ue:case J:case ce:return uh(+I,+P);case Z:return I.name==P.name&&I.message==P.message;case he:case we:return I==P+"";case G:var je=u9;case De:var nt=te&g;if(je||(je=FO),I.size!=P.size&&!nt)return!1;var Rt=ze.get(I);if(Rt)return Rt==P;te|=m,ze.set(I,P);var It=Bge(je(I),je(P),te,fe,Ce,ze);return ze.delete(I),It;case Ge:if(cC)return cC.call(I)==cC.call(P)}return!1}function mot(I,P,H,te,fe,Ce){var ze=H&g,je=M9(I),nt=je.length,Rt=M9(P),It=Rt.length;if(nt!=It&&!ze)return!1;for(var Mt=nt;Mt--;){var ir=je[Mt];if(!(ze?ir in P:Va.call(P,ir)))return!1}var Dr=Ce.get(I),nn=Ce.get(P);if(Dr&&nn)return Dr==P&&nn==I;var Bn=!0;Ce.set(I,P),Ce.set(P,I);for(var an=ze;++Mt<nt;){ir=je[Mt];var Kn=I[ir],sa=P[ir];if(te)var gu=ze?te(sa,Kn,ir,P,I,Ce):te(Kn,sa,ir,I,P,Ce);if(!(gu===r?Kn===sa||fe(Kn,sa,H,te,Ce):gu)){Bn=!1;break}an||(an=ir=="constructor")}if(Bn&&!an){var $l=I.constructor,mu=P.constructor;$l!=mu&&"constructor"in I&&"constructor"in P&&!(typeof $l=="function"&&$l instanceof $l&&typeof mu=="function"&&mu instanceof mu)&&(Bn=!1)}return Ce.delete(I),Ce.delete(P),Bn}function zp(I){return V9(Vge(I,r,Qge),I+"")}function M9(I){return nge(I,_o,U9)}function P9(I){return nge(I,Oc,Fge)}var B9=KO?function(I){return KO.get(I)}:rU;function uD(I){for(var P=I.name+"",H=z1[P],te=Va.call(z1,P)?H.length:0;te--;){var fe=H[te],Ce=fe.func;if(Ce==null||Ce==I)return fe.name}return P}function W1(I){var P=Va.call(Se,"placeholder")?Se:I;return P.placeholder}function Jr(){var I=Se.iteratee||eU;return I=I===eU?sge:I,arguments.length?I(arguments[0],arguments[1]):I}function dD(I,P){var H=I.__data__;return xot(P)?H[typeof P=="string"?"string":"hash"]:H.map}function F9(I){for(var P=_o(I),H=P.length;H--;){var te=P[H],fe=I[te];P[H]=[te,fe,Gge(fe)]}return P}function iy(I,P){var H=Ait(I,P);return ige(H)?H:r}function vot(I){var P=Va.call(I,ey),H=I[ey];try{I[ey]=r;var te=!0}catch{}var fe=zO.call(I);return te&&(P?I[ey]=H:delete I[ey]),fe}var U9=h9?function(I){return I==null?[]:(I=Ja(I),Om(h9(I),function(P){return Hpe.call(I,P)}))}:nU,Fge=h9?function(I){for(var P=[];I;)Dm(P,U9(I)),I=YO(I);return P}:nU,ul=Fl;(f9&&ul(new f9(new ArrayBuffer(1)))!=qe||sC&&ul(new sC)!=G||p9&&ul(p9.resolve())!=Y||G1&&ul(new G1)!=De||oC&&ul(new oC)!=Fe)&&(ul=function(I){var P=Fl(I),H=P==oe?I.constructor:r,te=H?sy(H):"";if(te)switch(te){case Jit:return qe;case est:return G;case tst:return Y;case rst:return De;case nst:return Fe}return P});function yot(I,P,H){for(var te=-1,fe=H.length;++te<fe;){var Ce=H[te],ze=Ce.size;switch(Ce.type){case"drop":I+=ze;break;case"dropRight":P-=ze;break;case"take":P=cl(P,I+ze);break;case"takeRight":I=Hs(I,P-ze);break}}return{start:I,end:P}}function _ot(I){var P=I.match(Lt);return P?P[1].split(Xt):[]}function Uge(I,P,H){P=Fm(P,I);for(var te=-1,fe=P.length,Ce=!1;++te<fe;){var ze=pf(P[te]);if(!(Ce=I!=null&&H(I,ze)))break;I=I[ze]}return Ce||++te!=fe?Ce:(fe=I==null?0:I.length,!!fe&&yD(fe)&&Vp(ze,fe)&&(An(I)||oy(I)))}function bot(I){var P=I.length,H=new I.constructor(P);return P&&typeof I[0]=="string"&&Va.call(I,"index")&&(H.index=I.index,H.input=I.input),H}function $ge(I){return typeof I.constructor=="function"&&!mC(I)?V1(YO(I)):{}}function Eot(I,P,H){var te=I.constructor;switch(P){case $e:return O9(I);case ue:case J:return new te(+I);case qe:return aot(I,H);case Ae:case Ke:case de:case Ee:case W:case ye:case ve:case ke:case Re:return Sge(I,H);case G:return new te;case ce:case we:return new te(I);case he:return iot(I);case De:return new te;case Ge:return sot(I)}}function Sot(I,P){var H=P.length;if(!H)return I;var te=H-1;return P[te]=(H>1?"& ":"")+P[te],P=P.join(H>2?", ":" "),I.replace(Ht,`{
485
+ `}numberingCounter(e,r){return`${this.className}-num-${e}-${r}`}levelTextToContent(e,r,n,a){const i={tab:"\\9",space:"\\a0"};var s=e.replace(/%\d*/g,o=>{let l=parseInt(o.substring(1),10)-1;return`"counter(${this.numberingCounter(n,l)}, ${a})"`});return`"${s}${i[r]??""}"`}numFormatToCssValue(e){var r={none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman",decimalZero:"decimal-leading-zero",aiueo:"katakana",aiueoFullWidth:"katakana",chineseCounting:"simp-chinese-informal",chineseCountingThousand:"simp-chinese-informal",chineseLegalSimplified:"simp-chinese-formal",chosung:"hangul-consonant",ideographDigital:"cjk-ideographic",ideographTraditional:"cjk-heavenly-stem",ideographLegalTraditional:"trad-chinese-formal",ideographZodiac:"cjk-earthly-branch",iroha:"katakana-iroha",irohaFullWidth:"katakana-iroha",japaneseCounting:"japanese-informal",japaneseDigitalTenThousand:"cjk-decimal",japaneseLegal:"japanese-formal",thaiNumbers:"thai",koreanCounting:"korean-hangul-formal",koreanDigital:"korean-hangul-formal",koreanDigital2:"korean-hanja-informal",hebrew1:"hebrew",hebrew2:"hebrew",hindiNumbers:"devanagari",ganada:"hangul",taiwaneseCounting:"cjk-ideographic",taiwaneseCountingThousand:"cjk-ideographic",taiwaneseDigital:"cjk-decimal"};return r[e]??e}refreshTabStops(){this.options.experimental&&setTimeout(()=>{const e=P8t();for(let r of this.currentTabs)B8t(r.span,r.stops,this.defaultTabSize,e)},500)}createElementNS(e,r,n,a){var i=e?this.htmlDocument.createElementNS(e,r):this.htmlDocument.createElement(r);return Object.assign(i,n),a&&uH(i,a),i}createElement(e,r,n){return this.createElementNS(void 0,e,r,n)}createSvgElement(e,r,n){return this.createElementNS(Qn.svg,e,r,n)}createStyleElement(e){return this.createElement("style",{innerHTML:e})}createComment(e){return this.htmlDocument.createComment(e)}later(e){this.postRenderTasks.push(e)}}function KTe(t){t.innerHTML=""}function uH(t,e){e.forEach(r=>t.appendChild(xFt(r)?document.createTextNode(r):r))}function U8t(t,e){for(var r=t.parent;r!=null&&r.type!=e;)r=r.parent;return r}const Bze={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0,hideWrapperOnPrint:!1,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,renderChanges:!1,renderComments:!1,renderAltChunks:!0};function $8t(t,e){const r={...Bze,...e};return Ice.load(t,new D8t(r),r)}async function G8t(t,e,r,n){const a={...Bze,...n};return await new F8t(window.document).render(t,e,r,a)}async function z8t(t,e,r,n){const a=await $8t(t,n);return await G8t(a,e,r,n),a}const V8t=t=>{const{url:e,requestHeaders:r}=t,n=Me.useRef(null),a=async()=>{if(!n.current)return;const i=await fetch(e,{headers:r});if(!i.ok)return;const s=await i.arrayBuffer();s.byteLength!==0&&(n.current.innerHTML="",z8t(s,n.current,void 0,{inWrapper:!1,ignoreWidth:!0,ignoreHeight:!0}))};return Me.useEffect(()=>{a()},[e]),ar.jsx("div",{ref:n,className:"[&>.docx]:p-0!"})};var JZ=function(t,e){return JZ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},JZ(t,e)};function Nk(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");JZ(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var qt=function(){return qt=Object.assign||function(e){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},qt.apply(this,arguments)};function to(t,e,r,n){function a(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function o(d){try{u(n.next(d))}catch(h){s(h)}}function l(d){try{u(n.throw(d))}catch(h){s(h)}}function u(d){d.done?i(d.value):a(d.value).then(o,l)}u((n=n.apply(t,e||[])).next())})}function ro(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(d){return l([u,d])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(r=0)),r;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(d){u=[6,d],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Fze(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),a,i=[],s;try{for(;(e===void 0||e-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(o){s={error:o}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function FR(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,i;n<a;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}var g2={exports:{}};var H8t=g2.exports,ZTe;function Y8t(){return ZTe||(ZTe=1,(function(t,e){(function(){var r,n="4.17.21",a=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",h=1,f=2,p=4,g=1,m=2,_=1,y=2,v=4,b=8,E=16,S=32,T=64,x=128,w=256,C=512,R=30,N="...",k=800,L=16,A=1,D=2,M=3,B=1/0,F=9007199254740991,U=17976931348623157e292,V=NaN,$=4294967295,z=$-1,q=$>>>1,j=[["ary",x],["bind",_],["bindKey",y],["curry",b],["curryRight",E],["flip",C],["partial",S],["partialRight",T],["rearg",w]],X="[object Arguments]",ie="[object Array]",ne="[object AsyncFunction]",ue="[object Boolean]",J="[object Date]",re="[object DOMException]",Z="[object Error]",ee="[object Function]",se="[object GeneratorFunction]",G="[object Map]",ce="[object Number]",Q="[object Null]",oe="[object Object]",Y="[object Promise]",be="[object Proxy]",he="[object RegExp]",De="[object Set]",we="[object String]",Ge="[object Symbol]",Oe="[object Undefined]",Fe="[object WeakMap]",Le="[object WeakSet]",$e="[object ArrayBuffer]",qe="[object DataView]",Ae="[object Float32Array]",Ke="[object Float64Array]",de="[object Int8Array]",Ee="[object Int16Array]",W="[object Int32Array]",ye="[object Uint8Array]",ve="[object Uint8ClampedArray]",ke="[object Uint16Array]",Re="[object Uint32Array]",pe=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ve=/&(?:amp|lt|gt|quot|#39);/g,ot=/[&<>"']/g,ut=RegExp(Ve.source),mt=RegExp(ot.source),Qe=/<%-([\s\S]+?)%>/g,Xe=/<%([\s\S]+?)%>/g,at=/<%=([\s\S]+?)%>/g,bt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xt=/^\w*$/,pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kt=/[\\^$.*+?()[\]{}|]/g,Et=RegExp(Kt.source),At=/^\s+/,$t=/\s/,Ht=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Lt=/\{\n\/\* \[wrapped with (.+)\] \*/,Xt=/,? & /,dn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dr=/[()=,{}\[\]\/\s]/,Wn=/\\(\\)?/g,jn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_n=/\w*$/,$r=/^[-+]0x[0-9a-f]+$/i,$n=/^0b[01]+$/i,Zt=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Nt=/^(?:0|[1-9]\d*)$/,er=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gr=/($^)/,pa=/['\n\r\u2028\u2029\\]/g,qn="\\ud800-\\udfff",ga="\\u0300-\\u036f",xi="\\ufe20-\\ufe2f",ss="\\u20d0-\\u20ff",Di=ga+xi+ss,Pn="\\u2700-\\u27bf",st="a-z\\xdf-\\xf6\\xf8-\\xff",vt="\\xac\\xb1\\xd7\\xf7",St="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ht="\\u2000-\\u206f",gr=" \\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",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Li="\\ufe0e\\ufe0f",Be=vt+St+ht+gr,hn="['’]",ol="["+qn+"]",km="["+Be+"]",Zu="["+Di+"]",Z0="\\d+",Mi="["+Pn+"]",ll="["+st+"]",cf="[^"+qn+Be+Z0+Pn+st+Ie+"]",Bl="\\ud83c[\\udffb-\\udfff]",Q0="(?:"+Zu+"|"+Bl+")",uf="[^"+qn+"]",bn="(?:\\ud83c[\\udde6-\\uddff]){2}",Pi="[\\ud800-\\udbff][\\udc00-\\udfff]",Sa="["+Ie+"]",Xn="\\u200d",uu="(?:"+ll+"|"+cf+")",yo="(?:"+Sa+"|"+cf+")",Nc="(?:"+hn+"(?:d|ll|m|re|s|t|ve))?",zs="(?:"+hn+"(?:D|LL|M|RE|S|T|VE))?",Tr=Q0+"?",Or="["+Li+"]?",En="(?:"+Xn+"(?:"+[uf,bn,Pi].join("|")+")"+Or+Tr+")*",on="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ws="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",df=Or+Tr+En,M1="(?:"+[Mi,bn,Pi].join("|")+")"+df,MO="(?:"+[uf+Zu+"?",Zu,bn,Pi,ol].join("|")+")",Epe=RegExp(hn,"g"),Spe=RegExp(Zu,"g"),J7=RegExp(Bl+"(?="+Bl+")|"+MO+df,"g"),rit=RegExp([Sa+"?"+ll+"+"+Nc+"(?="+[km,Sa,"$"].join("|")+")",yo+"+"+zs+"(?="+[km,Sa+uu,"$"].join("|")+")",Sa+"?"+uu+"+"+Nc,Sa+"+"+zs,ws,on,Z0,M1].join("|"),"g"),nit=RegExp("["+Xn+qn+Di+Li+"]"),ait=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,iit=["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"],sit=-1,pi={};pi[Ae]=pi[Ke]=pi[de]=pi[Ee]=pi[W]=pi[ye]=pi[ve]=pi[ke]=pi[Re]=!0,pi[X]=pi[ie]=pi[$e]=pi[ue]=pi[qe]=pi[J]=pi[Z]=pi[ee]=pi[G]=pi[ce]=pi[oe]=pi[he]=pi[De]=pi[we]=pi[Fe]=!1;var ii={};ii[X]=ii[ie]=ii[$e]=ii[qe]=ii[ue]=ii[J]=ii[Ae]=ii[Ke]=ii[de]=ii[Ee]=ii[W]=ii[G]=ii[ce]=ii[oe]=ii[he]=ii[De]=ii[we]=ii[Ge]=ii[ye]=ii[ve]=ii[ke]=ii[Re]=!0,ii[Z]=ii[ee]=ii[Fe]=!1;var oit={À:"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"},lit={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},cit={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},uit={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dit=parseFloat,hit=parseInt,Tpe=typeof Bd=="object"&&Bd&&Bd.Object===Object&&Bd,fit=typeof self=="object"&&self&&self.Object===Object&&self,Mo=Tpe||fit||Function("return this")(),e9=e&&!e.nodeType&&e,J0=e9&&!0&&t&&!t.nodeType&&t,xpe=J0&&J0.exports===e9,t9=xpe&&Tpe.process,Qu=(function(){try{var rt=J0&&J0.require&&J0.require("util").types;return rt||t9&&t9.binding&&t9.binding("util")}catch{}})(),wpe=Qu&&Qu.isArrayBuffer,Cpe=Qu&&Qu.isDate,Ape=Qu&&Qu.isMap,Rpe=Qu&&Qu.isRegExp,Npe=Qu&&Qu.isSet,Ipe=Qu&&Qu.isTypedArray;function du(rt,Tt,ft){switch(ft.length){case 0:return rt.call(Tt);case 1:return rt.call(Tt,ft[0]);case 2:return rt.call(Tt,ft[0],ft[1]);case 3:return rt.call(Tt,ft[0],ft[1],ft[2])}return rt.apply(Tt,ft)}function pit(rt,Tt,ft,vr){for(var xn=-1,Ca=rt==null?0:rt.length;++xn<Ca;){var Vs=rt[xn];Tt(vr,Vs,ft(Vs),rt)}return vr}function Ju(rt,Tt){for(var ft=-1,vr=rt==null?0:rt.length;++ft<vr&&Tt(rt[ft],ft,rt)!==!1;);return rt}function git(rt,Tt){for(var ft=rt==null?0:rt.length;ft--&&Tt(rt[ft],ft,rt)!==!1;);return rt}function kpe(rt,Tt){for(var ft=-1,vr=rt==null?0:rt.length;++ft<vr;)if(!Tt(rt[ft],ft,rt))return!1;return!0}function Om(rt,Tt){for(var ft=-1,vr=rt==null?0:rt.length,xn=0,Ca=[];++ft<vr;){var Vs=rt[ft];Tt(Vs,ft,rt)&&(Ca[xn++]=Vs)}return Ca}function PO(rt,Tt){var ft=rt==null?0:rt.length;return!!ft&&P1(rt,Tt,0)>-1}function r9(rt,Tt,ft){for(var vr=-1,xn=rt==null?0:rt.length;++vr<xn;)if(ft(Tt,rt[vr]))return!0;return!1}function wi(rt,Tt){for(var ft=-1,vr=rt==null?0:rt.length,xn=Array(vr);++ft<vr;)xn[ft]=Tt(rt[ft],ft,rt);return xn}function Dm(rt,Tt){for(var ft=-1,vr=Tt.length,xn=rt.length;++ft<vr;)rt[xn+ft]=Tt[ft];return rt}function n9(rt,Tt,ft,vr){var xn=-1,Ca=rt==null?0:rt.length;for(vr&&Ca&&(ft=rt[++xn]);++xn<Ca;)ft=Tt(ft,rt[xn],xn,rt);return ft}function mit(rt,Tt,ft,vr){var xn=rt==null?0:rt.length;for(vr&&xn&&(ft=rt[--xn]);xn--;)ft=Tt(ft,rt[xn],xn,rt);return ft}function a9(rt,Tt){for(var ft=-1,vr=rt==null?0:rt.length;++ft<vr;)if(Tt(rt[ft],ft,rt))return!0;return!1}var vit=i9("length");function yit(rt){return rt.split("")}function _it(rt){return rt.match(dn)||[]}function Ope(rt,Tt,ft){var vr;return ft(rt,function(xn,Ca,Vs){if(Tt(xn,Ca,Vs))return vr=Ca,!1}),vr}function BO(rt,Tt,ft,vr){for(var xn=rt.length,Ca=ft+(vr?1:-1);vr?Ca--:++Ca<xn;)if(Tt(rt[Ca],Ca,rt))return Ca;return-1}function P1(rt,Tt,ft){return Tt===Tt?kit(rt,Tt,ft):BO(rt,Dpe,ft)}function bit(rt,Tt,ft,vr){for(var xn=ft-1,Ca=rt.length;++xn<Ca;)if(vr(rt[xn],Tt))return xn;return-1}function Dpe(rt){return rt!==rt}function Lpe(rt,Tt){var ft=rt==null?0:rt.length;return ft?o9(rt,Tt)/ft:V}function i9(rt){return function(Tt){return Tt==null?r:Tt[rt]}}function s9(rt){return function(Tt){return rt==null?r:rt[Tt]}}function Mpe(rt,Tt,ft,vr,xn){return xn(rt,function(Ca,Vs,Ja){ft=vr?(vr=!1,Ca):Tt(ft,Ca,Vs,Ja)}),ft}function Eit(rt,Tt){var ft=rt.length;for(rt.sort(Tt);ft--;)rt[ft]=rt[ft].value;return rt}function o9(rt,Tt){for(var ft,vr=-1,xn=rt.length;++vr<xn;){var Ca=Tt(rt[vr]);Ca!==r&&(ft=ft===r?Ca:ft+Ca)}return ft}function l9(rt,Tt){for(var ft=-1,vr=Array(rt);++ft<rt;)vr[ft]=Tt(ft);return vr}function Sit(rt,Tt){return wi(Tt,function(ft){return[ft,rt[ft]]})}function Ppe(rt){return rt&&rt.slice(0,$pe(rt)+1).replace(At,"")}function hu(rt){return function(Tt){return rt(Tt)}}function c9(rt,Tt){return wi(Tt,function(ft){return rt[ft]})}function aC(rt,Tt){return rt.has(Tt)}function Bpe(rt,Tt){for(var ft=-1,vr=rt.length;++ft<vr&&P1(Tt,rt[ft],0)>-1;);return ft}function Fpe(rt,Tt){for(var ft=rt.length;ft--&&P1(Tt,rt[ft],0)>-1;);return ft}function Tit(rt,Tt){for(var ft=rt.length,vr=0;ft--;)rt[ft]===Tt&&++vr;return vr}var xit=s9(oit),wit=s9(lit);function Cit(rt){return"\\"+uit[rt]}function Ait(rt,Tt){return rt==null?r:rt[Tt]}function B1(rt){return nit.test(rt)}function Rit(rt){return ait.test(rt)}function Nit(rt){for(var Tt,ft=[];!(Tt=rt.next()).done;)ft.push(Tt.value);return ft}function u9(rt){var Tt=-1,ft=Array(rt.size);return rt.forEach(function(vr,xn){ft[++Tt]=[xn,vr]}),ft}function Upe(rt,Tt){return function(ft){return rt(Tt(ft))}}function Lm(rt,Tt){for(var ft=-1,vr=rt.length,xn=0,Ca=[];++ft<vr;){var Vs=rt[ft];(Vs===Tt||Vs===d)&&(rt[ft]=d,Ca[xn++]=ft)}return Ca}function FO(rt){var Tt=-1,ft=Array(rt.size);return rt.forEach(function(vr){ft[++Tt]=vr}),ft}function Iit(rt){var Tt=-1,ft=Array(rt.size);return rt.forEach(function(vr){ft[++Tt]=[vr,vr]}),ft}function kit(rt,Tt,ft){for(var vr=ft-1,xn=rt.length;++vr<xn;)if(rt[vr]===Tt)return vr;return-1}function Oit(rt,Tt,ft){for(var vr=ft+1;vr--;)if(rt[vr]===Tt)return vr;return vr}function F1(rt){return B1(rt)?Lit(rt):vit(rt)}function lh(rt){return B1(rt)?Mit(rt):yit(rt)}function $pe(rt){for(var Tt=rt.length;Tt--&&$t.test(rt.charAt(Tt)););return Tt}var Dit=s9(cit);function Lit(rt){for(var Tt=J7.lastIndex=0;J7.test(rt);)++Tt;return Tt}function Mit(rt){return rt.match(J7)||[]}function Pit(rt){return rt.match(rit)||[]}var Bit=(function rt(Tt){Tt=Tt==null?Mo:U1.defaults(Mo.Object(),Tt,U1.pick(Mo,iit));var ft=Tt.Array,vr=Tt.Date,xn=Tt.Error,Ca=Tt.Function,Vs=Tt.Math,Ja=Tt.Object,d9=Tt.RegExp,Fit=Tt.String,ed=Tt.TypeError,UO=ft.prototype,Uit=Ca.prototype,$1=Ja.prototype,$O=Tt["__core-js_shared__"],GO=Uit.toString,Va=$1.hasOwnProperty,$it=0,Gpe=(function(){var I=/[^.]+$/.exec($O&&$O.keys&&$O.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""})(),zO=$1.toString,Git=GO.call(Ja),zit=Mo._,Vit=d9("^"+GO.call(Va).replace(Kt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),VO=xpe?Tt.Buffer:r,Mm=Tt.Symbol,HO=Tt.Uint8Array,zpe=VO?VO.allocUnsafe:r,YO=Upe(Ja.getPrototypeOf,Ja),Vpe=Ja.create,Hpe=$1.propertyIsEnumerable,WO=UO.splice,Ype=Mm?Mm.isConcatSpreadable:r,iC=Mm?Mm.iterator:r,ey=Mm?Mm.toStringTag:r,qO=(function(){try{var I=iy(Ja,"defineProperty");return I({},"",{}),I}catch{}})(),Hit=Tt.clearTimeout!==Mo.clearTimeout&&Tt.clearTimeout,Yit=vr&&vr.now!==Mo.Date.now&&vr.now,Wit=Tt.setTimeout!==Mo.setTimeout&&Tt.setTimeout,XO=Vs.ceil,jO=Vs.floor,h9=Ja.getOwnPropertySymbols,qit=VO?VO.isBuffer:r,Wpe=Tt.isFinite,Xit=UO.join,jit=Upe(Ja.keys,Ja),Hs=Vs.max,cl=Vs.min,Kit=vr.now,Zit=Tt.parseInt,qpe=Vs.random,Qit=UO.reverse,f9=iy(Tt,"DataView"),sC=iy(Tt,"Map"),p9=iy(Tt,"Promise"),G1=iy(Tt,"Set"),oC=iy(Tt,"WeakMap"),lC=iy(Ja,"create"),KO=oC&&new oC,z1={},Jit=sy(f9),est=sy(sC),tst=sy(p9),rst=sy(G1),nst=sy(oC),ZO=Mm?Mm.prototype:r,cC=ZO?ZO.valueOf:r,Xpe=ZO?ZO.toString:r;function Se(I){if(Zi(I)&&!An(I)&&!(I instanceof ea)){if(I instanceof td)return I;if(Va.call(I,"__wrapped__"))return jge(I)}return new td(I)}var V1=(function(){function I(){}return function(P){if(!Bi(P))return{};if(Vpe)return Vpe(P);I.prototype=P;var H=new I;return I.prototype=r,H}})();function QO(){}function td(I,P){this.__wrapped__=I,this.__actions__=[],this.__chain__=!!P,this.__index__=0,this.__values__=r}Se.templateSettings={escape:Qe,evaluate:Xe,interpolate:at,variable:"",imports:{_:Se}},Se.prototype=QO.prototype,Se.prototype.constructor=Se,td.prototype=V1(QO.prototype),td.prototype.constructor=td;function ea(I){this.__wrapped__=I,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function ast(){var I=new ea(this.__wrapped__);return I.__actions__=Ic(this.__actions__),I.__dir__=this.__dir__,I.__filtered__=this.__filtered__,I.__iteratees__=Ic(this.__iteratees__),I.__takeCount__=this.__takeCount__,I.__views__=Ic(this.__views__),I}function ist(){if(this.__filtered__){var I=new ea(this);I.__dir__=-1,I.__filtered__=!0}else I=this.clone(),I.__dir__*=-1;return I}function sst(){var I=this.__wrapped__.value(),P=this.__dir__,H=An(I),te=P<0,fe=H?I.length:0,Ce=yot(0,fe,this.__views__),ze=Ce.start,je=Ce.end,nt=je-ze,Rt=te?je:ze-1,It=this.__iteratees__,Mt=It.length,ir=0,Dr=cl(nt,this.__takeCount__);if(!H||!te&&fe==nt&&Dr==nt)return yge(I,this.__actions__);var nn=[];e:for(;nt--&&ir<Dr;){Rt+=P;for(var Bn=-1,an=I[Rt];++Bn<Mt;){var Kn=It[Bn],sa=Kn.iteratee,gu=Kn.type,$l=sa(an);if(gu==D)an=$l;else if(!$l){if(gu==A)continue e;break e}}nn[ir++]=an}return nn}ea.prototype=V1(QO.prototype),ea.prototype.constructor=ea;function ty(I){var P=-1,H=I==null?0:I.length;for(this.clear();++P<H;){var te=I[P];this.set(te[0],te[1])}}function ost(){this.__data__=lC?lC(null):{},this.size=0}function lst(I){var P=this.has(I)&&delete this.__data__[I];return this.size-=P?1:0,P}function cst(I){var P=this.__data__;if(lC){var H=P[I];return H===l?r:H}return Va.call(P,I)?P[I]:r}function ust(I){var P=this.__data__;return lC?P[I]!==r:Va.call(P,I)}function dst(I,P){var H=this.__data__;return this.size+=this.has(I)?0:1,H[I]=lC&&P===r?l:P,this}ty.prototype.clear=ost,ty.prototype.delete=lst,ty.prototype.get=cst,ty.prototype.has=ust,ty.prototype.set=dst;function Fp(I){var P=-1,H=I==null?0:I.length;for(this.clear();++P<H;){var te=I[P];this.set(te[0],te[1])}}function hst(){this.__data__=[],this.size=0}function fst(I){var P=this.__data__,H=JO(P,I);if(H<0)return!1;var te=P.length-1;return H==te?P.pop():WO.call(P,H,1),--this.size,!0}function pst(I){var P=this.__data__,H=JO(P,I);return H<0?r:P[H][1]}function gst(I){return JO(this.__data__,I)>-1}function mst(I,P){var H=this.__data__,te=JO(H,I);return te<0?(++this.size,H.push([I,P])):H[te][1]=P,this}Fp.prototype.clear=hst,Fp.prototype.delete=fst,Fp.prototype.get=pst,Fp.prototype.has=gst,Fp.prototype.set=mst;function Up(I){var P=-1,H=I==null?0:I.length;for(this.clear();++P<H;){var te=I[P];this.set(te[0],te[1])}}function vst(){this.size=0,this.__data__={hash:new ty,map:new(sC||Fp),string:new ty}}function yst(I){var P=dD(this,I).delete(I);return this.size-=P?1:0,P}function _st(I){return dD(this,I).get(I)}function bst(I){return dD(this,I).has(I)}function Est(I,P){var H=dD(this,I),te=H.size;return H.set(I,P),this.size+=H.size==te?0:1,this}Up.prototype.clear=vst,Up.prototype.delete=yst,Up.prototype.get=_st,Up.prototype.has=bst,Up.prototype.set=Est;function ry(I){var P=-1,H=I==null?0:I.length;for(this.__data__=new Up;++P<H;)this.add(I[P])}function Sst(I){return this.__data__.set(I,l),this}function Tst(I){return this.__data__.has(I)}ry.prototype.add=ry.prototype.push=Sst,ry.prototype.has=Tst;function ch(I){var P=this.__data__=new Fp(I);this.size=P.size}function xst(){this.__data__=new Fp,this.size=0}function wst(I){var P=this.__data__,H=P.delete(I);return this.size=P.size,H}function Cst(I){return this.__data__.get(I)}function Ast(I){return this.__data__.has(I)}function Rst(I,P){var H=this.__data__;if(H instanceof Fp){var te=H.__data__;if(!sC||te.length<a-1)return te.push([I,P]),this.size=++H.size,this;H=this.__data__=new Up(te)}return H.set(I,P),this.size=H.size,this}ch.prototype.clear=xst,ch.prototype.delete=wst,ch.prototype.get=Cst,ch.prototype.has=Ast,ch.prototype.set=Rst;function jpe(I,P){var H=An(I),te=!H&&oy(I),fe=!H&&!te&&$m(I),Ce=!H&&!te&&!fe&&q1(I),ze=H||te||fe||Ce,je=ze?l9(I.length,Fit):[],nt=je.length;for(var Rt in I)(P||Va.call(I,Rt))&&!(ze&&(Rt=="length"||fe&&(Rt=="offset"||Rt=="parent")||Ce&&(Rt=="buffer"||Rt=="byteLength"||Rt=="byteOffset")||Vp(Rt,nt)))&&je.push(Rt);return je}function Kpe(I){var P=I.length;return P?I[w9(0,P-1)]:r}function Nst(I,P){return hD(Ic(I),ny(P,0,I.length))}function Ist(I){return hD(Ic(I))}function g9(I,P,H){(H!==r&&!uh(I[P],H)||H===r&&!(P in I))&&$p(I,P,H)}function uC(I,P,H){var te=I[P];(!(Va.call(I,P)&&uh(te,H))||H===r&&!(P in I))&&$p(I,P,H)}function JO(I,P){for(var H=I.length;H--;)if(uh(I[H][0],P))return H;return-1}function kst(I,P,H,te){return Pm(I,function(fe,Ce,ze){P(te,fe,H(fe),ze)}),te}function Zpe(I,P){return I&&ff(P,_o(P),I)}function Ost(I,P){return I&&ff(P,Oc(P),I)}function $p(I,P,H){P=="__proto__"&&qO?qO(I,P,{configurable:!0,enumerable:!0,value:H,writable:!0}):I[P]=H}function m9(I,P){for(var H=-1,te=P.length,fe=ft(te),Ce=I==null;++H<te;)fe[H]=Ce?r:K9(I,P[H]);return fe}function ny(I,P,H){return I===I&&(H!==r&&(I=I<=H?I:H),P!==r&&(I=I>=P?I:P)),I}function rd(I,P,H,te,fe,Ce){var ze,je=P&h,nt=P&f,Rt=P&p;if(H&&(ze=fe?H(I,te,fe,Ce):H(I)),ze!==r)return ze;if(!Bi(I))return I;var It=An(I);if(It){if(ze=bot(I),!je)return Ic(I,ze)}else{var Mt=ul(I),ir=Mt==ee||Mt==se;if($m(I))return Ege(I,je);if(Mt==oe||Mt==X||ir&&!fe){if(ze=nt||ir?{}:$ge(I),!je)return nt?cot(I,Ost(ze,I)):lot(I,Zpe(ze,I))}else{if(!ii[Mt])return fe?I:{};ze=Eot(I,Mt,je)}}Ce||(Ce=new ch);var Dr=Ce.get(I);if(Dr)return Dr;Ce.set(I,ze),gme(I)?I.forEach(function(an){ze.add(rd(an,P,H,an,I,Ce))}):fme(I)&&I.forEach(function(an,Kn){ze.set(Kn,rd(an,P,H,Kn,I,Ce))});var nn=Rt?nt?P9:M9:nt?Oc:_o,Bn=It?r:nn(I);return Ju(Bn||I,function(an,Kn){Bn&&(Kn=an,an=I[Kn]),uC(ze,Kn,rd(an,P,H,Kn,I,Ce))}),ze}function Dst(I){var P=_o(I);return function(H){return Qpe(H,I,P)}}function Qpe(I,P,H){var te=H.length;if(I==null)return!te;for(I=Ja(I);te--;){var fe=H[te],Ce=P[fe],ze=I[fe];if(ze===r&&!(fe in I)||!Ce(ze))return!1}return!0}function Jpe(I,P,H){if(typeof I!="function")throw new ed(s);return vC(function(){I.apply(r,H)},P)}function dC(I,P,H,te){var fe=-1,Ce=PO,ze=!0,je=I.length,nt=[],Rt=P.length;if(!je)return nt;H&&(P=wi(P,hu(H))),te?(Ce=r9,ze=!1):P.length>=a&&(Ce=aC,ze=!1,P=new ry(P));e:for(;++fe<je;){var It=I[fe],Mt=H==null?It:H(It);if(It=te||It!==0?It:0,ze&&Mt===Mt){for(var ir=Rt;ir--;)if(P[ir]===Mt)continue e;nt.push(It)}else Ce(P,Mt,te)||nt.push(It)}return nt}var Pm=Cge(hf),ege=Cge(y9,!0);function Lst(I,P){var H=!0;return Pm(I,function(te,fe,Ce){return H=!!P(te,fe,Ce),H}),H}function eD(I,P,H){for(var te=-1,fe=I.length;++te<fe;){var Ce=I[te],ze=P(Ce);if(ze!=null&&(je===r?ze===ze&&!pu(ze):H(ze,je)))var je=ze,nt=Ce}return nt}function Mst(I,P,H,te){var fe=I.length;for(H=In(H),H<0&&(H=-H>fe?0:fe+H),te=te===r||te>fe?fe:In(te),te<0&&(te+=fe),te=H>te?0:vme(te);H<te;)I[H++]=P;return I}function tge(I,P){var H=[];return Pm(I,function(te,fe,Ce){P(te,fe,Ce)&&H.push(te)}),H}function Po(I,P,H,te,fe){var Ce=-1,ze=I.length;for(H||(H=Tot),fe||(fe=[]);++Ce<ze;){var je=I[Ce];P>0&&H(je)?P>1?Po(je,P-1,H,te,fe):Dm(fe,je):te||(fe[fe.length]=je)}return fe}var v9=Age(),rge=Age(!0);function hf(I,P){return I&&v9(I,P,_o)}function y9(I,P){return I&&rge(I,P,_o)}function tD(I,P){return Om(P,function(H){return Hp(I[H])})}function ay(I,P){P=Fm(P,I);for(var H=0,te=P.length;I!=null&&H<te;)I=I[pf(P[H++])];return H&&H==te?I:r}function nge(I,P,H){var te=P(I);return An(I)?te:Dm(te,H(I))}function Fl(I){return I==null?I===r?Oe:Q:ey&&ey in Ja(I)?vot(I):Iot(I)}function _9(I,P){return I>P}function Pst(I,P){return I!=null&&Va.call(I,P)}function Bst(I,P){return I!=null&&P in Ja(I)}function Fst(I,P,H){return I>=cl(P,H)&&I<Hs(P,H)}function b9(I,P,H){for(var te=H?r9:PO,fe=I[0].length,Ce=I.length,ze=Ce,je=ft(Ce),nt=1/0,Rt=[];ze--;){var It=I[ze];ze&&P&&(It=wi(It,hu(P))),nt=cl(It.length,nt),je[ze]=!H&&(P||fe>=120&&It.length>=120)?new ry(ze&&It):r}It=I[0];var Mt=-1,ir=je[0];e:for(;++Mt<fe&&Rt.length<nt;){var Dr=It[Mt],nn=P?P(Dr):Dr;if(Dr=H||Dr!==0?Dr:0,!(ir?aC(ir,nn):te(Rt,nn,H))){for(ze=Ce;--ze;){var Bn=je[ze];if(!(Bn?aC(Bn,nn):te(I[ze],nn,H)))continue e}ir&&ir.push(nn),Rt.push(Dr)}}return Rt}function Ust(I,P,H,te){return hf(I,function(fe,Ce,ze){P(te,H(fe),Ce,ze)}),te}function hC(I,P,H){P=Fm(P,I),I=Hge(I,P);var te=I==null?I:I[pf(ad(P))];return te==null?r:du(te,I,H)}function age(I){return Zi(I)&&Fl(I)==X}function $st(I){return Zi(I)&&Fl(I)==$e}function Gst(I){return Zi(I)&&Fl(I)==J}function fC(I,P,H,te,fe){return I===P?!0:I==null||P==null||!Zi(I)&&!Zi(P)?I!==I&&P!==P:zst(I,P,H,te,fC,fe)}function zst(I,P,H,te,fe,Ce){var ze=An(I),je=An(P),nt=ze?ie:ul(I),Rt=je?ie:ul(P);nt=nt==X?oe:nt,Rt=Rt==X?oe:Rt;var It=nt==oe,Mt=Rt==oe,ir=nt==Rt;if(ir&&$m(I)){if(!$m(P))return!1;ze=!0,It=!1}if(ir&&!It)return Ce||(Ce=new ch),ze||q1(I)?Bge(I,P,H,te,fe,Ce):got(I,P,nt,H,te,fe,Ce);if(!(H&g)){var Dr=It&&Va.call(I,"__wrapped__"),nn=Mt&&Va.call(P,"__wrapped__");if(Dr||nn){var Bn=Dr?I.value():I,an=nn?P.value():P;return Ce||(Ce=new ch),fe(Bn,an,H,te,Ce)}}return ir?(Ce||(Ce=new ch),mot(I,P,H,te,fe,Ce)):!1}function Vst(I){return Zi(I)&&ul(I)==G}function E9(I,P,H,te){var fe=H.length,Ce=fe,ze=!te;if(I==null)return!Ce;for(I=Ja(I);fe--;){var je=H[fe];if(ze&&je[2]?je[1]!==I[je[0]]:!(je[0]in I))return!1}for(;++fe<Ce;){je=H[fe];var nt=je[0],Rt=I[nt],It=je[1];if(ze&&je[2]){if(Rt===r&&!(nt in I))return!1}else{var Mt=new ch;if(te)var ir=te(Rt,It,nt,I,P,Mt);if(!(ir===r?fC(It,Rt,g|m,te,Mt):ir))return!1}}return!0}function ige(I){if(!Bi(I)||wot(I))return!1;var P=Hp(I)?Vit:Zt;return P.test(sy(I))}function Hst(I){return Zi(I)&&Fl(I)==he}function Yst(I){return Zi(I)&&ul(I)==De}function Wst(I){return Zi(I)&&yD(I.length)&&!!pi[Fl(I)]}function sge(I){return typeof I=="function"?I:I==null?Dc:typeof I=="object"?An(I)?cge(I[0],I[1]):lge(I):Rme(I)}function S9(I){if(!mC(I))return jit(I);var P=[];for(var H in Ja(I))Va.call(I,H)&&H!="constructor"&&P.push(H);return P}function qst(I){if(!Bi(I))return Not(I);var P=mC(I),H=[];for(var te in I)te=="constructor"&&(P||!Va.call(I,te))||H.push(te);return H}function T9(I,P){return I<P}function oge(I,P){var H=-1,te=kc(I)?ft(I.length):[];return Pm(I,function(fe,Ce,ze){te[++H]=P(fe,Ce,ze)}),te}function lge(I){var P=F9(I);return P.length==1&&P[0][2]?zge(P[0][0],P[0][1]):function(H){return H===I||E9(H,I,P)}}function cge(I,P){return $9(I)&&Gge(P)?zge(pf(I),P):function(H){var te=K9(H,I);return te===r&&te===P?Z9(H,I):fC(P,te,g|m)}}function rD(I,P,H,te,fe){I!==P&&v9(P,function(Ce,ze){if(fe||(fe=new ch),Bi(Ce))Xst(I,P,ze,H,rD,te,fe);else{var je=te?te(z9(I,ze),Ce,ze+"",I,P,fe):r;je===r&&(je=Ce),g9(I,ze,je)}},Oc)}function Xst(I,P,H,te,fe,Ce,ze){var je=z9(I,H),nt=z9(P,H),Rt=ze.get(nt);if(Rt){g9(I,H,Rt);return}var It=Ce?Ce(je,nt,H+"",I,P,ze):r,Mt=It===r;if(Mt){var ir=An(nt),Dr=!ir&&$m(nt),nn=!ir&&!Dr&&q1(nt);It=nt,ir||Dr||nn?An(je)?It=je:os(je)?It=Ic(je):Dr?(Mt=!1,It=Ege(nt,!0)):nn?(Mt=!1,It=Sge(nt,!0)):It=[]:yC(nt)||oy(nt)?(It=je,oy(je)?It=yme(je):(!Bi(je)||Hp(je))&&(It=$ge(nt))):Mt=!1}Mt&&(ze.set(nt,It),fe(It,nt,te,Ce,ze),ze.delete(nt)),g9(I,H,It)}function uge(I,P){var H=I.length;if(H)return P+=P<0?H:0,Vp(P,H)?I[P]:r}function dge(I,P,H){P.length?P=wi(P,function(Ce){return An(Ce)?function(ze){return ay(ze,Ce.length===1?Ce[0]:Ce)}:Ce}):P=[Dc];var te=-1;P=wi(P,hu(Jr()));var fe=oge(I,function(Ce,ze,je){var nt=wi(P,function(Rt){return Rt(Ce)});return{criteria:nt,index:++te,value:Ce}});return Eit(fe,function(Ce,ze){return oot(Ce,ze,H)})}function jst(I,P){return hge(I,P,function(H,te){return Z9(I,te)})}function hge(I,P,H){for(var te=-1,fe=P.length,Ce={};++te<fe;){var ze=P[te],je=ay(I,ze);H(je,ze)&&pC(Ce,Fm(ze,I),je)}return Ce}function Kst(I){return function(P){return ay(P,I)}}function x9(I,P,H,te){var fe=te?bit:P1,Ce=-1,ze=P.length,je=I;for(I===P&&(P=Ic(P)),H&&(je=wi(I,hu(H)));++Ce<ze;)for(var nt=0,Rt=P[Ce],It=H?H(Rt):Rt;(nt=fe(je,It,nt,te))>-1;)je!==I&&WO.call(je,nt,1),WO.call(I,nt,1);return I}function fge(I,P){for(var H=I?P.length:0,te=H-1;H--;){var fe=P[H];if(H==te||fe!==Ce){var Ce=fe;Vp(fe)?WO.call(I,fe,1):R9(I,fe)}}return I}function w9(I,P){return I+jO(qpe()*(P-I+1))}function Zst(I,P,H,te){for(var fe=-1,Ce=Hs(XO((P-I)/(H||1)),0),ze=ft(Ce);Ce--;)ze[te?Ce:++fe]=I,I+=H;return ze}function C9(I,P){var H="";if(!I||P<1||P>F)return H;do P%2&&(H+=I),P=jO(P/2),P&&(I+=I);while(P);return H}function Gn(I,P){return V9(Vge(I,P,Dc),I+"")}function Qst(I){return Kpe(X1(I))}function Jst(I,P){var H=X1(I);return hD(H,ny(P,0,H.length))}function pC(I,P,H,te){if(!Bi(I))return I;P=Fm(P,I);for(var fe=-1,Ce=P.length,ze=Ce-1,je=I;je!=null&&++fe<Ce;){var nt=pf(P[fe]),Rt=H;if(nt==="__proto__"||nt==="constructor"||nt==="prototype")return I;if(fe!=ze){var It=je[nt];Rt=te?te(It,nt,je):r,Rt===r&&(Rt=Bi(It)?It:Vp(P[fe+1])?[]:{})}uC(je,nt,Rt),je=je[nt]}return I}var pge=KO?function(I,P){return KO.set(I,P),I}:Dc,eot=qO?function(I,P){return qO(I,"toString",{configurable:!0,enumerable:!1,value:J9(P),writable:!0})}:Dc;function tot(I){return hD(X1(I))}function nd(I,P,H){var te=-1,fe=I.length;P<0&&(P=-P>fe?0:fe+P),H=H>fe?fe:H,H<0&&(H+=fe),fe=P>H?0:H-P>>>0,P>>>=0;for(var Ce=ft(fe);++te<fe;)Ce[te]=I[te+P];return Ce}function rot(I,P){var H;return Pm(I,function(te,fe,Ce){return H=P(te,fe,Ce),!H}),!!H}function nD(I,P,H){var te=0,fe=I==null?te:I.length;if(typeof P=="number"&&P===P&&fe<=q){for(;te<fe;){var Ce=te+fe>>>1,ze=I[Ce];ze!==null&&!pu(ze)&&(H?ze<=P:ze<P)?te=Ce+1:fe=Ce}return fe}return A9(I,P,Dc,H)}function A9(I,P,H,te){var fe=0,Ce=I==null?0:I.length;if(Ce===0)return 0;P=H(P);for(var ze=P!==P,je=P===null,nt=pu(P),Rt=P===r;fe<Ce;){var It=jO((fe+Ce)/2),Mt=H(I[It]),ir=Mt!==r,Dr=Mt===null,nn=Mt===Mt,Bn=pu(Mt);if(ze)var an=te||nn;else Rt?an=nn&&(te||ir):je?an=nn&&ir&&(te||!Dr):nt?an=nn&&ir&&!Dr&&(te||!Bn):Dr||Bn?an=!1:an=te?Mt<=P:Mt<P;an?fe=It+1:Ce=It}return cl(Ce,z)}function gge(I,P){for(var H=-1,te=I.length,fe=0,Ce=[];++H<te;){var ze=I[H],je=P?P(ze):ze;if(!H||!uh(je,nt)){var nt=je;Ce[fe++]=ze===0?0:ze}}return Ce}function mge(I){return typeof I=="number"?I:pu(I)?V:+I}function fu(I){if(typeof I=="string")return I;if(An(I))return wi(I,fu)+"";if(pu(I))return Xpe?Xpe.call(I):"";var P=I+"";return P=="0"&&1/I==-B?"-0":P}function Bm(I,P,H){var te=-1,fe=PO,Ce=I.length,ze=!0,je=[],nt=je;if(H)ze=!1,fe=r9;else if(Ce>=a){var Rt=P?null:fot(I);if(Rt)return FO(Rt);ze=!1,fe=aC,nt=new ry}else nt=P?[]:je;e:for(;++te<Ce;){var It=I[te],Mt=P?P(It):It;if(It=H||It!==0?It:0,ze&&Mt===Mt){for(var ir=nt.length;ir--;)if(nt[ir]===Mt)continue e;P&&nt.push(Mt),je.push(It)}else fe(nt,Mt,H)||(nt!==je&&nt.push(Mt),je.push(It))}return je}function R9(I,P){return P=Fm(P,I),I=Hge(I,P),I==null||delete I[pf(ad(P))]}function vge(I,P,H,te){return pC(I,P,H(ay(I,P)),te)}function aD(I,P,H,te){for(var fe=I.length,Ce=te?fe:-1;(te?Ce--:++Ce<fe)&&P(I[Ce],Ce,I););return H?nd(I,te?0:Ce,te?Ce+1:fe):nd(I,te?Ce+1:0,te?fe:Ce)}function yge(I,P){var H=I;return H instanceof ea&&(H=H.value()),n9(P,function(te,fe){return fe.func.apply(fe.thisArg,Dm([te],fe.args))},H)}function N9(I,P,H){var te=I.length;if(te<2)return te?Bm(I[0]):[];for(var fe=-1,Ce=ft(te);++fe<te;)for(var ze=I[fe],je=-1;++je<te;)je!=fe&&(Ce[fe]=dC(Ce[fe]||ze,I[je],P,H));return Bm(Po(Ce,1),P,H)}function _ge(I,P,H){for(var te=-1,fe=I.length,Ce=P.length,ze={};++te<fe;){var je=te<Ce?P[te]:r;H(ze,I[te],je)}return ze}function I9(I){return os(I)?I:[]}function k9(I){return typeof I=="function"?I:Dc}function Fm(I,P){return An(I)?I:$9(I,P)?[I]:Xge(ka(I))}var not=Gn;function Um(I,P,H){var te=I.length;return H=H===r?te:H,!P&&H>=te?I:nd(I,P,H)}var bge=Hit||function(I){return Mo.clearTimeout(I)};function Ege(I,P){if(P)return I.slice();var H=I.length,te=zpe?zpe(H):new I.constructor(H);return I.copy(te),te}function O9(I){var P=new I.constructor(I.byteLength);return new HO(P).set(new HO(I)),P}function aot(I,P){var H=P?O9(I.buffer):I.buffer;return new I.constructor(H,I.byteOffset,I.byteLength)}function iot(I){var P=new I.constructor(I.source,_n.exec(I));return P.lastIndex=I.lastIndex,P}function sot(I){return cC?Ja(cC.call(I)):{}}function Sge(I,P){var H=P?O9(I.buffer):I.buffer;return new I.constructor(H,I.byteOffset,I.length)}function Tge(I,P){if(I!==P){var H=I!==r,te=I===null,fe=I===I,Ce=pu(I),ze=P!==r,je=P===null,nt=P===P,Rt=pu(P);if(!je&&!Rt&&!Ce&&I>P||Ce&&ze&&nt&&!je&&!Rt||te&&ze&&nt||!H&&nt||!fe)return 1;if(!te&&!Ce&&!Rt&&I<P||Rt&&H&&fe&&!te&&!Ce||je&&H&&fe||!ze&&fe||!nt)return-1}return 0}function oot(I,P,H){for(var te=-1,fe=I.criteria,Ce=P.criteria,ze=fe.length,je=H.length;++te<ze;){var nt=Tge(fe[te],Ce[te]);if(nt){if(te>=je)return nt;var Rt=H[te];return nt*(Rt=="desc"?-1:1)}}return I.index-P.index}function xge(I,P,H,te){for(var fe=-1,Ce=I.length,ze=H.length,je=-1,nt=P.length,Rt=Hs(Ce-ze,0),It=ft(nt+Rt),Mt=!te;++je<nt;)It[je]=P[je];for(;++fe<ze;)(Mt||fe<Ce)&&(It[H[fe]]=I[fe]);for(;Rt--;)It[je++]=I[fe++];return It}function wge(I,P,H,te){for(var fe=-1,Ce=I.length,ze=-1,je=H.length,nt=-1,Rt=P.length,It=Hs(Ce-je,0),Mt=ft(It+Rt),ir=!te;++fe<It;)Mt[fe]=I[fe];for(var Dr=fe;++nt<Rt;)Mt[Dr+nt]=P[nt];for(;++ze<je;)(ir||fe<Ce)&&(Mt[Dr+H[ze]]=I[fe++]);return Mt}function Ic(I,P){var H=-1,te=I.length;for(P||(P=ft(te));++H<te;)P[H]=I[H];return P}function ff(I,P,H,te){var fe=!H;H||(H={});for(var Ce=-1,ze=P.length;++Ce<ze;){var je=P[Ce],nt=te?te(H[je],I[je],je,H,I):r;nt===r&&(nt=I[je]),fe?$p(H,je,nt):uC(H,je,nt)}return H}function lot(I,P){return ff(I,U9(I),P)}function cot(I,P){return ff(I,Fge(I),P)}function iD(I,P){return function(H,te){var fe=An(H)?pit:kst,Ce=P?P():{};return fe(H,I,Jr(te,2),Ce)}}function H1(I){return Gn(function(P,H){var te=-1,fe=H.length,Ce=fe>1?H[fe-1]:r,ze=fe>2?H[2]:r;for(Ce=I.length>3&&typeof Ce=="function"?(fe--,Ce):r,ze&&Ul(H[0],H[1],ze)&&(Ce=fe<3?r:Ce,fe=1),P=Ja(P);++te<fe;){var je=H[te];je&&I(P,je,te,Ce)}return P})}function Cge(I,P){return function(H,te){if(H==null)return H;if(!kc(H))return I(H,te);for(var fe=H.length,Ce=P?fe:-1,ze=Ja(H);(P?Ce--:++Ce<fe)&&te(ze[Ce],Ce,ze)!==!1;);return H}}function Age(I){return function(P,H,te){for(var fe=-1,Ce=Ja(P),ze=te(P),je=ze.length;je--;){var nt=ze[I?je:++fe];if(H(Ce[nt],nt,Ce)===!1)break}return P}}function uot(I,P,H){var te=P&_,fe=gC(I);function Ce(){var ze=this&&this!==Mo&&this instanceof Ce?fe:I;return ze.apply(te?H:this,arguments)}return Ce}function Rge(I){return function(P){P=ka(P);var H=B1(P)?lh(P):r,te=H?H[0]:P.charAt(0),fe=H?Um(H,1).join(""):P.slice(1);return te[I]()+fe}}function Y1(I){return function(P){return n9(Cme(wme(P).replace(Epe,"")),I,"")}}function gC(I){return function(){var P=arguments;switch(P.length){case 0:return new I;case 1:return new I(P[0]);case 2:return new I(P[0],P[1]);case 3:return new I(P[0],P[1],P[2]);case 4:return new I(P[0],P[1],P[2],P[3]);case 5:return new I(P[0],P[1],P[2],P[3],P[4]);case 6:return new I(P[0],P[1],P[2],P[3],P[4],P[5]);case 7:return new I(P[0],P[1],P[2],P[3],P[4],P[5],P[6])}var H=V1(I.prototype),te=I.apply(H,P);return Bi(te)?te:H}}function dot(I,P,H){var te=gC(I);function fe(){for(var Ce=arguments.length,ze=ft(Ce),je=Ce,nt=W1(fe);je--;)ze[je]=arguments[je];var Rt=Ce<3&&ze[0]!==nt&&ze[Ce-1]!==nt?[]:Lm(ze,nt);if(Ce-=Rt.length,Ce<H)return Dge(I,P,sD,fe.placeholder,r,ze,Rt,r,r,H-Ce);var It=this&&this!==Mo&&this instanceof fe?te:I;return du(It,this,ze)}return fe}function Nge(I){return function(P,H,te){var fe=Ja(P);if(!kc(P)){var Ce=Jr(H,3);P=_o(P),H=function(je){return Ce(fe[je],je,fe)}}var ze=I(P,H,te);return ze>-1?fe[Ce?P[ze]:ze]:r}}function Ige(I){return zp(function(P){var H=P.length,te=H,fe=td.prototype.thru;for(I&&P.reverse();te--;){var Ce=P[te];if(typeof Ce!="function")throw new ed(s);if(fe&&!ze&&uD(Ce)=="wrapper")var ze=new td([],!0)}for(te=ze?te:H;++te<H;){Ce=P[te];var je=uD(Ce),nt=je=="wrapper"?B9(Ce):r;nt&&G9(nt[0])&&nt[1]==(x|b|S|w)&&!nt[4].length&&nt[9]==1?ze=ze[uD(nt[0])].apply(ze,nt[3]):ze=Ce.length==1&&G9(Ce)?ze[je]():ze.thru(Ce)}return function(){var Rt=arguments,It=Rt[0];if(ze&&Rt.length==1&&An(It))return ze.plant(It).value();for(var Mt=0,ir=H?P[Mt].apply(this,Rt):It;++Mt<H;)ir=P[Mt].call(this,ir);return ir}})}function sD(I,P,H,te,fe,Ce,ze,je,nt,Rt){var It=P&x,Mt=P&_,ir=P&y,Dr=P&(b|E),nn=P&C,Bn=ir?r:gC(I);function an(){for(var Kn=arguments.length,sa=ft(Kn),gu=Kn;gu--;)sa[gu]=arguments[gu];if(Dr)var $l=W1(an),mu=Tit(sa,$l);if(te&&(sa=xge(sa,te,fe,Dr)),Ce&&(sa=wge(sa,Ce,ze,Dr)),Kn-=mu,Dr&&Kn<Rt){var ls=Lm(sa,$l);return Dge(I,P,sD,an.placeholder,H,sa,ls,je,nt,Rt-Kn)}var dh=Mt?H:this,Wp=ir?dh[I]:I;return Kn=sa.length,je?sa=kot(sa,je):nn&&Kn>1&&sa.reverse(),It&&nt<Kn&&(sa.length=nt),this&&this!==Mo&&this instanceof an&&(Wp=Bn||gC(Wp)),Wp.apply(dh,sa)}return an}function kge(I,P){return function(H,te){return Ust(H,I,P(te),{})}}function oD(I,P){return function(H,te){var fe;if(H===r&&te===r)return P;if(H!==r&&(fe=H),te!==r){if(fe===r)return te;typeof H=="string"||typeof te=="string"?(H=fu(H),te=fu(te)):(H=mge(H),te=mge(te)),fe=I(H,te)}return fe}}function D9(I){return zp(function(P){return P=wi(P,hu(Jr())),Gn(function(H){var te=this;return I(P,function(fe){return du(fe,te,H)})})})}function lD(I,P){P=P===r?" ":fu(P);var H=P.length;if(H<2)return H?C9(P,I):P;var te=C9(P,XO(I/F1(P)));return B1(P)?Um(lh(te),0,I).join(""):te.slice(0,I)}function hot(I,P,H,te){var fe=P&_,Ce=gC(I);function ze(){for(var je=-1,nt=arguments.length,Rt=-1,It=te.length,Mt=ft(It+nt),ir=this&&this!==Mo&&this instanceof ze?Ce:I;++Rt<It;)Mt[Rt]=te[Rt];for(;nt--;)Mt[Rt++]=arguments[++je];return du(ir,fe?H:this,Mt)}return ze}function Oge(I){return function(P,H,te){return te&&typeof te!="number"&&Ul(P,H,te)&&(H=te=r),P=Yp(P),H===r?(H=P,P=0):H=Yp(H),te=te===r?P<H?1:-1:Yp(te),Zst(P,H,te,I)}}function cD(I){return function(P,H){return typeof P=="string"&&typeof H=="string"||(P=id(P),H=id(H)),I(P,H)}}function Dge(I,P,H,te,fe,Ce,ze,je,nt,Rt){var It=P&b,Mt=It?ze:r,ir=It?r:ze,Dr=It?Ce:r,nn=It?r:Ce;P|=It?S:T,P&=~(It?T:S),P&v||(P&=-4);var Bn=[I,P,fe,Dr,Mt,nn,ir,je,nt,Rt],an=H.apply(r,Bn);return G9(I)&&Yge(an,Bn),an.placeholder=te,Wge(an,I,P)}function L9(I){var P=Vs[I];return function(H,te){if(H=id(H),te=te==null?0:cl(In(te),292),te&&Wpe(H)){var fe=(ka(H)+"e").split("e"),Ce=P(fe[0]+"e"+(+fe[1]+te));return fe=(ka(Ce)+"e").split("e"),+(fe[0]+"e"+(+fe[1]-te))}return P(H)}}var fot=G1&&1/FO(new G1([,-0]))[1]==B?function(I){return new G1(I)}:rU;function Lge(I){return function(P){var H=ul(P);return H==G?u9(P):H==De?Iit(P):Sit(P,I(P))}}function Gp(I,P,H,te,fe,Ce,ze,je){var nt=P&y;if(!nt&&typeof I!="function")throw new ed(s);var Rt=te?te.length:0;if(Rt||(P&=-97,te=fe=r),ze=ze===r?ze:Hs(In(ze),0),je=je===r?je:In(je),Rt-=fe?fe.length:0,P&T){var It=te,Mt=fe;te=fe=r}var ir=nt?r:B9(I),Dr=[I,P,H,te,fe,It,Mt,Ce,ze,je];if(ir&&Rot(Dr,ir),I=Dr[0],P=Dr[1],H=Dr[2],te=Dr[3],fe=Dr[4],je=Dr[9]=Dr[9]===r?nt?0:I.length:Hs(Dr[9]-Rt,0),!je&&P&(b|E)&&(P&=-25),!P||P==_)var nn=uot(I,P,H);else P==b||P==E?nn=dot(I,P,je):(P==S||P==(_|S))&&!fe.length?nn=hot(I,P,H,te):nn=sD.apply(r,Dr);var Bn=ir?pge:Yge;return Wge(Bn(nn,Dr),I,P)}function Mge(I,P,H,te){return I===r||uh(I,$1[H])&&!Va.call(te,H)?P:I}function Pge(I,P,H,te,fe,Ce){return Bi(I)&&Bi(P)&&(Ce.set(P,I),rD(I,P,r,Pge,Ce),Ce.delete(P)),I}function pot(I){return yC(I)?r:I}function Bge(I,P,H,te,fe,Ce){var ze=H&g,je=I.length,nt=P.length;if(je!=nt&&!(ze&&nt>je))return!1;var Rt=Ce.get(I),It=Ce.get(P);if(Rt&&It)return Rt==P&&It==I;var Mt=-1,ir=!0,Dr=H&m?new ry:r;for(Ce.set(I,P),Ce.set(P,I);++Mt<je;){var nn=I[Mt],Bn=P[Mt];if(te)var an=ze?te(Bn,nn,Mt,P,I,Ce):te(nn,Bn,Mt,I,P,Ce);if(an!==r){if(an)continue;ir=!1;break}if(Dr){if(!a9(P,function(Kn,sa){if(!aC(Dr,sa)&&(nn===Kn||fe(nn,Kn,H,te,Ce)))return Dr.push(sa)})){ir=!1;break}}else if(!(nn===Bn||fe(nn,Bn,H,te,Ce))){ir=!1;break}}return Ce.delete(I),Ce.delete(P),ir}function got(I,P,H,te,fe,Ce,ze){switch(H){case qe:if(I.byteLength!=P.byteLength||I.byteOffset!=P.byteOffset)return!1;I=I.buffer,P=P.buffer;case $e:return!(I.byteLength!=P.byteLength||!Ce(new HO(I),new HO(P)));case ue:case J:case ce:return uh(+I,+P);case Z:return I.name==P.name&&I.message==P.message;case he:case we:return I==P+"";case G:var je=u9;case De:var nt=te&g;if(je||(je=FO),I.size!=P.size&&!nt)return!1;var Rt=ze.get(I);if(Rt)return Rt==P;te|=m,ze.set(I,P);var It=Bge(je(I),je(P),te,fe,Ce,ze);return ze.delete(I),It;case Ge:if(cC)return cC.call(I)==cC.call(P)}return!1}function mot(I,P,H,te,fe,Ce){var ze=H&g,je=M9(I),nt=je.length,Rt=M9(P),It=Rt.length;if(nt!=It&&!ze)return!1;for(var Mt=nt;Mt--;){var ir=je[Mt];if(!(ze?ir in P:Va.call(P,ir)))return!1}var Dr=Ce.get(I),nn=Ce.get(P);if(Dr&&nn)return Dr==P&&nn==I;var Bn=!0;Ce.set(I,P),Ce.set(P,I);for(var an=ze;++Mt<nt;){ir=je[Mt];var Kn=I[ir],sa=P[ir];if(te)var gu=ze?te(sa,Kn,ir,P,I,Ce):te(Kn,sa,ir,I,P,Ce);if(!(gu===r?Kn===sa||fe(Kn,sa,H,te,Ce):gu)){Bn=!1;break}an||(an=ir=="constructor")}if(Bn&&!an){var $l=I.constructor,mu=P.constructor;$l!=mu&&"constructor"in I&&"constructor"in P&&!(typeof $l=="function"&&$l instanceof $l&&typeof mu=="function"&&mu instanceof mu)&&(Bn=!1)}return Ce.delete(I),Ce.delete(P),Bn}function zp(I){return V9(Vge(I,r,Qge),I+"")}function M9(I){return nge(I,_o,U9)}function P9(I){return nge(I,Oc,Fge)}var B9=KO?function(I){return KO.get(I)}:rU;function uD(I){for(var P=I.name+"",H=z1[P],te=Va.call(z1,P)?H.length:0;te--;){var fe=H[te],Ce=fe.func;if(Ce==null||Ce==I)return fe.name}return P}function W1(I){var P=Va.call(Se,"placeholder")?Se:I;return P.placeholder}function Jr(){var I=Se.iteratee||eU;return I=I===eU?sge:I,arguments.length?I(arguments[0],arguments[1]):I}function dD(I,P){var H=I.__data__;return xot(P)?H[typeof P=="string"?"string":"hash"]:H.map}function F9(I){for(var P=_o(I),H=P.length;H--;){var te=P[H],fe=I[te];P[H]=[te,fe,Gge(fe)]}return P}function iy(I,P){var H=Ait(I,P);return ige(H)?H:r}function vot(I){var P=Va.call(I,ey),H=I[ey];try{I[ey]=r;var te=!0}catch{}var fe=zO.call(I);return te&&(P?I[ey]=H:delete I[ey]),fe}var U9=h9?function(I){return I==null?[]:(I=Ja(I),Om(h9(I),function(P){return Hpe.call(I,P)}))}:nU,Fge=h9?function(I){for(var P=[];I;)Dm(P,U9(I)),I=YO(I);return P}:nU,ul=Fl;(f9&&ul(new f9(new ArrayBuffer(1)))!=qe||sC&&ul(new sC)!=G||p9&&ul(p9.resolve())!=Y||G1&&ul(new G1)!=De||oC&&ul(new oC)!=Fe)&&(ul=function(I){var P=Fl(I),H=P==oe?I.constructor:r,te=H?sy(H):"";if(te)switch(te){case Jit:return qe;case est:return G;case tst:return Y;case rst:return De;case nst:return Fe}return P});function yot(I,P,H){for(var te=-1,fe=H.length;++te<fe;){var Ce=H[te],ze=Ce.size;switch(Ce.type){case"drop":I+=ze;break;case"dropRight":P-=ze;break;case"take":P=cl(P,I+ze);break;case"takeRight":I=Hs(I,P-ze);break}}return{start:I,end:P}}function _ot(I){var P=I.match(Lt);return P?P[1].split(Xt):[]}function Uge(I,P,H){P=Fm(P,I);for(var te=-1,fe=P.length,Ce=!1;++te<fe;){var ze=pf(P[te]);if(!(Ce=I!=null&&H(I,ze)))break;I=I[ze]}return Ce||++te!=fe?Ce:(fe=I==null?0:I.length,!!fe&&yD(fe)&&Vp(ze,fe)&&(An(I)||oy(I)))}function bot(I){var P=I.length,H=new I.constructor(P);return P&&typeof I[0]=="string"&&Va.call(I,"index")&&(H.index=I.index,H.input=I.input),H}function $ge(I){return typeof I.constructor=="function"&&!mC(I)?V1(YO(I)):{}}function Eot(I,P,H){var te=I.constructor;switch(P){case $e:return O9(I);case ue:case J:return new te(+I);case qe:return aot(I,H);case Ae:case Ke:case de:case Ee:case W:case ye:case ve:case ke:case Re:return Sge(I,H);case G:return new te;case ce:case we:return new te(I);case he:return iot(I);case De:return new te;case Ge:return sot(I)}}function Sot(I,P){var H=P.length;if(!H)return I;var te=H-1;return P[te]=(H>1?"& ":"")+P[te],P=P.join(H>2?", ":" "),I.replace(Ht,`{
486
486
  /* [wrapped with `+P+`] */
487
487
  `)}function Tot(I){return An(I)||oy(I)||!!(Ype&&I&&I[Ype])}function Vp(I,P){var H=typeof I;return P=P??F,!!P&&(H=="number"||H!="symbol"&&Nt.test(I))&&I>-1&&I%1==0&&I<P}function Ul(I,P,H){if(!Bi(H))return!1;var te=typeof P;return(te=="number"?kc(H)&&Vp(P,H.length):te=="string"&&P in H)?uh(H[P],I):!1}function $9(I,P){if(An(I))return!1;var H=typeof I;return H=="number"||H=="symbol"||H=="boolean"||I==null||pu(I)?!0:xt.test(I)||!bt.test(I)||P!=null&&I in Ja(P)}function xot(I){var P=typeof I;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?I!=="__proto__":I===null}function G9(I){var P=uD(I),H=Se[P];if(typeof H!="function"||!(P in ea.prototype))return!1;if(I===H)return!0;var te=B9(H);return!!te&&I===te[0]}function wot(I){return!!Gpe&&Gpe in I}var Cot=$O?Hp:aU;function mC(I){var P=I&&I.constructor,H=typeof P=="function"&&P.prototype||$1;return I===H}function Gge(I){return I===I&&!Bi(I)}function zge(I,P){return function(H){return H==null?!1:H[I]===P&&(P!==r||I in Ja(H))}}function Aot(I){var P=mD(I,function(te){return H.size===u&&H.clear(),te}),H=P.cache;return P}function Rot(I,P){var H=I[1],te=P[1],fe=H|te,Ce=fe<(_|y|x),ze=te==x&&H==b||te==x&&H==w&&I[7].length<=P[8]||te==(x|w)&&P[7].length<=P[8]&&H==b;if(!(Ce||ze))return I;te&_&&(I[2]=P[2],fe|=H&_?0:v);var je=P[3];if(je){var nt=I[3];I[3]=nt?xge(nt,je,P[4]):je,I[4]=nt?Lm(I[3],d):P[4]}return je=P[5],je&&(nt=I[5],I[5]=nt?wge(nt,je,P[6]):je,I[6]=nt?Lm(I[5],d):P[6]),je=P[7],je&&(I[7]=je),te&x&&(I[8]=I[8]==null?P[8]:cl(I[8],P[8])),I[9]==null&&(I[9]=P[9]),I[0]=P[0],I[1]=fe,I}function Not(I){var P=[];if(I!=null)for(var H in Ja(I))P.push(H);return P}function Iot(I){return zO.call(I)}function Vge(I,P,H){return P=Hs(P===r?I.length-1:P,0),function(){for(var te=arguments,fe=-1,Ce=Hs(te.length-P,0),ze=ft(Ce);++fe<Ce;)ze[fe]=te[P+fe];fe=-1;for(var je=ft(P+1);++fe<P;)je[fe]=te[fe];return je[P]=H(ze),du(I,this,je)}}function Hge(I,P){return P.length<2?I:ay(I,nd(P,0,-1))}function kot(I,P){for(var H=I.length,te=cl(P.length,H),fe=Ic(I);te--;){var Ce=P[te];I[te]=Vp(Ce,H)?fe[Ce]:r}return I}function z9(I,P){if(!(P==="constructor"&&typeof I[P]=="function")&&P!="__proto__")return I[P]}var Yge=qge(pge),vC=Wit||function(I,P){return Mo.setTimeout(I,P)},V9=qge(eot);function Wge(I,P,H){var te=P+"";return V9(I,Sot(te,Oot(_ot(te),H)))}function qge(I){var P=0,H=0;return function(){var te=Kit(),fe=L-(te-H);if(H=te,fe>0){if(++P>=k)return arguments[0]}else P=0;return I.apply(r,arguments)}}function hD(I,P){var H=-1,te=I.length,fe=te-1;for(P=P===r?te:P;++H<P;){var Ce=w9(H,fe),ze=I[Ce];I[Ce]=I[H],I[H]=ze}return I.length=P,I}var Xge=Aot(function(I){var P=[];return I.charCodeAt(0)===46&&P.push(""),I.replace(pt,function(H,te,fe,Ce){P.push(fe?Ce.replace(Wn,"$1"):te||H)}),P});function pf(I){if(typeof I=="string"||pu(I))return I;var P=I+"";return P=="0"&&1/I==-B?"-0":P}function sy(I){if(I!=null){try{return GO.call(I)}catch{}try{return I+""}catch{}}return""}function Oot(I,P){return Ju(j,function(H){var te="_."+H[0];P&H[1]&&!PO(I,te)&&I.push(te)}),I.sort()}function jge(I){if(I instanceof ea)return I.clone();var P=new td(I.__wrapped__,I.__chain__);return P.__actions__=Ic(I.__actions__),P.__index__=I.__index__,P.__values__=I.__values__,P}function Dot(I,P,H){(H?Ul(I,P,H):P===r)?P=1:P=Hs(In(P),0);var te=I==null?0:I.length;if(!te||P<1)return[];for(var fe=0,Ce=0,ze=ft(XO(te/P));fe<te;)ze[Ce++]=nd(I,fe,fe+=P);return ze}function Lot(I){for(var P=-1,H=I==null?0:I.length,te=0,fe=[];++P<H;){var Ce=I[P];Ce&&(fe[te++]=Ce)}return fe}function Mot(){var I=arguments.length;if(!I)return[];for(var P=ft(I-1),H=arguments[0],te=I;te--;)P[te-1]=arguments[te];return Dm(An(H)?Ic(H):[H],Po(P,1))}var Pot=Gn(function(I,P){return os(I)?dC(I,Po(P,1,os,!0)):[]}),Bot=Gn(function(I,P){var H=ad(P);return os(H)&&(H=r),os(I)?dC(I,Po(P,1,os,!0),Jr(H,2)):[]}),Fot=Gn(function(I,P){var H=ad(P);return os(H)&&(H=r),os(I)?dC(I,Po(P,1,os,!0),r,H):[]});function Uot(I,P,H){var te=I==null?0:I.length;return te?(P=H||P===r?1:In(P),nd(I,P<0?0:P,te)):[]}function $ot(I,P,H){var te=I==null?0:I.length;return te?(P=H||P===r?1:In(P),P=te-P,nd(I,0,P<0?0:P)):[]}function Got(I,P){return I&&I.length?aD(I,Jr(P,3),!0,!0):[]}function zot(I,P){return I&&I.length?aD(I,Jr(P,3),!0):[]}function Vot(I,P,H,te){var fe=I==null?0:I.length;return fe?(H&&typeof H!="number"&&Ul(I,P,H)&&(H=0,te=fe),Mst(I,P,H,te)):[]}function Kge(I,P,H){var te=I==null?0:I.length;if(!te)return-1;var fe=H==null?0:In(H);return fe<0&&(fe=Hs(te+fe,0)),BO(I,Jr(P,3),fe)}function Zge(I,P,H){var te=I==null?0:I.length;if(!te)return-1;var fe=te-1;return H!==r&&(fe=In(H),fe=H<0?Hs(te+fe,0):cl(fe,te-1)),BO(I,Jr(P,3),fe,!0)}function Qge(I){var P=I==null?0:I.length;return P?Po(I,1):[]}function Hot(I){var P=I==null?0:I.length;return P?Po(I,B):[]}function Yot(I,P){var H=I==null?0:I.length;return H?(P=P===r?1:In(P),Po(I,P)):[]}function Wot(I){for(var P=-1,H=I==null?0:I.length,te={};++P<H;){var fe=I[P];te[fe[0]]=fe[1]}return te}function Jge(I){return I&&I.length?I[0]:r}function qot(I,P,H){var te=I==null?0:I.length;if(!te)return-1;var fe=H==null?0:In(H);return fe<0&&(fe=Hs(te+fe,0)),P1(I,P,fe)}function Xot(I){var P=I==null?0:I.length;return P?nd(I,0,-1):[]}var jot=Gn(function(I){var P=wi(I,I9);return P.length&&P[0]===I[0]?b9(P):[]}),Kot=Gn(function(I){var P=ad(I),H=wi(I,I9);return P===ad(H)?P=r:H.pop(),H.length&&H[0]===I[0]?b9(H,Jr(P,2)):[]}),Zot=Gn(function(I){var P=ad(I),H=wi(I,I9);return P=typeof P=="function"?P:r,P&&H.pop(),H.length&&H[0]===I[0]?b9(H,r,P):[]});function Qot(I,P){return I==null?"":Xit.call(I,P)}function ad(I){var P=I==null?0:I.length;return P?I[P-1]:r}function Jot(I,P,H){var te=I==null?0:I.length;if(!te)return-1;var fe=te;return H!==r&&(fe=In(H),fe=fe<0?Hs(te+fe,0):cl(fe,te-1)),P===P?Oit(I,P,fe):BO(I,Dpe,fe,!0)}function elt(I,P){return I&&I.length?uge(I,In(P)):r}var tlt=Gn(eme);function eme(I,P){return I&&I.length&&P&&P.length?x9(I,P):I}function rlt(I,P,H){return I&&I.length&&P&&P.length?x9(I,P,Jr(H,2)):I}function nlt(I,P,H){return I&&I.length&&P&&P.length?x9(I,P,r,H):I}var alt=zp(function(I,P){var H=I==null?0:I.length,te=m9(I,P);return fge(I,wi(P,function(fe){return Vp(fe,H)?+fe:fe}).sort(Tge)),te});function ilt(I,P){var H=[];if(!(I&&I.length))return H;var te=-1,fe=[],Ce=I.length;for(P=Jr(P,3);++te<Ce;){var ze=I[te];P(ze,te,I)&&(H.push(ze),fe.push(te))}return fge(I,fe),H}function H9(I){return I==null?I:Qit.call(I)}function slt(I,P,H){var te=I==null?0:I.length;return te?(H&&typeof H!="number"&&Ul(I,P,H)?(P=0,H=te):(P=P==null?0:In(P),H=H===r?te:In(H)),nd(I,P,H)):[]}function olt(I,P){return nD(I,P)}function llt(I,P,H){return A9(I,P,Jr(H,2))}function clt(I,P){var H=I==null?0:I.length;if(H){var te=nD(I,P);if(te<H&&uh(I[te],P))return te}return-1}function ult(I,P){return nD(I,P,!0)}function dlt(I,P,H){return A9(I,P,Jr(H,2),!0)}function hlt(I,P){var H=I==null?0:I.length;if(H){var te=nD(I,P,!0)-1;if(uh(I[te],P))return te}return-1}function flt(I){return I&&I.length?gge(I):[]}function plt(I,P){return I&&I.length?gge(I,Jr(P,2)):[]}function glt(I){var P=I==null?0:I.length;return P?nd(I,1,P):[]}function mlt(I,P,H){return I&&I.length?(P=H||P===r?1:In(P),nd(I,0,P<0?0:P)):[]}function vlt(I,P,H){var te=I==null?0:I.length;return te?(P=H||P===r?1:In(P),P=te-P,nd(I,P<0?0:P,te)):[]}function ylt(I,P){return I&&I.length?aD(I,Jr(P,3),!1,!0):[]}function _lt(I,P){return I&&I.length?aD(I,Jr(P,3)):[]}var blt=Gn(function(I){return Bm(Po(I,1,os,!0))}),Elt=Gn(function(I){var P=ad(I);return os(P)&&(P=r),Bm(Po(I,1,os,!0),Jr(P,2))}),Slt=Gn(function(I){var P=ad(I);return P=typeof P=="function"?P:r,Bm(Po(I,1,os,!0),r,P)});function Tlt(I){return I&&I.length?Bm(I):[]}function xlt(I,P){return I&&I.length?Bm(I,Jr(P,2)):[]}function wlt(I,P){return P=typeof P=="function"?P:r,I&&I.length?Bm(I,r,P):[]}function Y9(I){if(!(I&&I.length))return[];var P=0;return I=Om(I,function(H){if(os(H))return P=Hs(H.length,P),!0}),l9(P,function(H){return wi(I,i9(H))})}function tme(I,P){if(!(I&&I.length))return[];var H=Y9(I);return P==null?H:wi(H,function(te){return du(P,r,te)})}var Clt=Gn(function(I,P){return os(I)?dC(I,P):[]}),Alt=Gn(function(I){return N9(Om(I,os))}),Rlt=Gn(function(I){var P=ad(I);return os(P)&&(P=r),N9(Om(I,os),Jr(P,2))}),Nlt=Gn(function(I){var P=ad(I);return P=typeof P=="function"?P:r,N9(Om(I,os),r,P)}),Ilt=Gn(Y9);function klt(I,P){return _ge(I||[],P||[],uC)}function Olt(I,P){return _ge(I||[],P||[],pC)}var Dlt=Gn(function(I){var P=I.length,H=P>1?I[P-1]:r;return H=typeof H=="function"?(I.pop(),H):r,tme(I,H)});function rme(I){var P=Se(I);return P.__chain__=!0,P}function Llt(I,P){return P(I),I}function fD(I,P){return P(I)}var Mlt=zp(function(I){var P=I.length,H=P?I[0]:0,te=this.__wrapped__,fe=function(Ce){return m9(Ce,I)};return P>1||this.__actions__.length||!(te instanceof ea)||!Vp(H)?this.thru(fe):(te=te.slice(H,+H+(P?1:0)),te.__actions__.push({func:fD,args:[fe],thisArg:r}),new td(te,this.__chain__).thru(function(Ce){return P&&!Ce.length&&Ce.push(r),Ce}))});function Plt(){return rme(this)}function Blt(){return new td(this.value(),this.__chain__)}function Flt(){this.__values__===r&&(this.__values__=mme(this.value()));var I=this.__index__>=this.__values__.length,P=I?r:this.__values__[this.__index__++];return{done:I,value:P}}function Ult(){return this}function $lt(I){for(var P,H=this;H instanceof QO;){var te=jge(H);te.__index__=0,te.__values__=r,P?fe.__wrapped__=te:P=te;var fe=te;H=H.__wrapped__}return fe.__wrapped__=I,P}function Glt(){var I=this.__wrapped__;if(I instanceof ea){var P=I;return this.__actions__.length&&(P=new ea(this)),P=P.reverse(),P.__actions__.push({func:fD,args:[H9],thisArg:r}),new td(P,this.__chain__)}return this.thru(H9)}function zlt(){return yge(this.__wrapped__,this.__actions__)}var Vlt=iD(function(I,P,H){Va.call(I,H)?++I[H]:$p(I,H,1)});function Hlt(I,P,H){var te=An(I)?kpe:Lst;return H&&Ul(I,P,H)&&(P=r),te(I,Jr(P,3))}function Ylt(I,P){var H=An(I)?Om:tge;return H(I,Jr(P,3))}var Wlt=Nge(Kge),qlt=Nge(Zge);function Xlt(I,P){return Po(pD(I,P),1)}function jlt(I,P){return Po(pD(I,P),B)}function Klt(I,P,H){return H=H===r?1:In(H),Po(pD(I,P),H)}function nme(I,P){var H=An(I)?Ju:Pm;return H(I,Jr(P,3))}function ame(I,P){var H=An(I)?git:ege;return H(I,Jr(P,3))}var Zlt=iD(function(I,P,H){Va.call(I,H)?I[H].push(P):$p(I,H,[P])});function Qlt(I,P,H,te){I=kc(I)?I:X1(I),H=H&&!te?In(H):0;var fe=I.length;return H<0&&(H=Hs(fe+H,0)),_D(I)?H<=fe&&I.indexOf(P,H)>-1:!!fe&&P1(I,P,H)>-1}var Jlt=Gn(function(I,P,H){var te=-1,fe=typeof P=="function",Ce=kc(I)?ft(I.length):[];return Pm(I,function(ze){Ce[++te]=fe?du(P,ze,H):hC(ze,P,H)}),Ce}),ect=iD(function(I,P,H){$p(I,H,P)});function pD(I,P){var H=An(I)?wi:oge;return H(I,Jr(P,3))}function tct(I,P,H,te){return I==null?[]:(An(P)||(P=P==null?[]:[P]),H=te?r:H,An(H)||(H=H==null?[]:[H]),dge(I,P,H))}var rct=iD(function(I,P,H){I[H?0:1].push(P)},function(){return[[],[]]});function nct(I,P,H){var te=An(I)?n9:Mpe,fe=arguments.length<3;return te(I,Jr(P,4),H,fe,Pm)}function act(I,P,H){var te=An(I)?mit:Mpe,fe=arguments.length<3;return te(I,Jr(P,4),H,fe,ege)}function ict(I,P){var H=An(I)?Om:tge;return H(I,vD(Jr(P,3)))}function sct(I){var P=An(I)?Kpe:Qst;return P(I)}function oct(I,P,H){(H?Ul(I,P,H):P===r)?P=1:P=In(P);var te=An(I)?Nst:Jst;return te(I,P)}function lct(I){var P=An(I)?Ist:tot;return P(I)}function cct(I){if(I==null)return 0;if(kc(I))return _D(I)?F1(I):I.length;var P=ul(I);return P==G||P==De?I.size:S9(I).length}function uct(I,P,H){var te=An(I)?a9:rot;return H&&Ul(I,P,H)&&(P=r),te(I,Jr(P,3))}var dct=Gn(function(I,P){if(I==null)return[];var H=P.length;return H>1&&Ul(I,P[0],P[1])?P=[]:H>2&&Ul(P[0],P[1],P[2])&&(P=[P[0]]),dge(I,Po(P,1),[])}),gD=Yit||function(){return Mo.Date.now()};function hct(I,P){if(typeof P!="function")throw new ed(s);return I=In(I),function(){if(--I<1)return P.apply(this,arguments)}}function ime(I,P,H){return P=H?r:P,P=I&&P==null?I.length:P,Gp(I,x,r,r,r,r,P)}function sme(I,P){var H;if(typeof P!="function")throw new ed(s);return I=In(I),function(){return--I>0&&(H=P.apply(this,arguments)),I<=1&&(P=r),H}}var W9=Gn(function(I,P,H){var te=_;if(H.length){var fe=Lm(H,W1(W9));te|=S}return Gp(I,te,P,H,fe)}),ome=Gn(function(I,P,H){var te=_|y;if(H.length){var fe=Lm(H,W1(ome));te|=S}return Gp(P,te,I,H,fe)});function lme(I,P,H){P=H?r:P;var te=Gp(I,b,r,r,r,r,r,P);return te.placeholder=lme.placeholder,te}function cme(I,P,H){P=H?r:P;var te=Gp(I,E,r,r,r,r,r,P);return te.placeholder=cme.placeholder,te}function ume(I,P,H){var te,fe,Ce,ze,je,nt,Rt=0,It=!1,Mt=!1,ir=!0;if(typeof I!="function")throw new ed(s);P=id(P)||0,Bi(H)&&(It=!!H.leading,Mt="maxWait"in H,Ce=Mt?Hs(id(H.maxWait)||0,P):Ce,ir="trailing"in H?!!H.trailing:ir);function Dr(ls){var dh=te,Wp=fe;return te=fe=r,Rt=ls,ze=I.apply(Wp,dh),ze}function nn(ls){return Rt=ls,je=vC(Kn,P),It?Dr(ls):ze}function Bn(ls){var dh=ls-nt,Wp=ls-Rt,Nme=P-dh;return Mt?cl(Nme,Ce-Wp):Nme}function an(ls){var dh=ls-nt,Wp=ls-Rt;return nt===r||dh>=P||dh<0||Mt&&Wp>=Ce}function Kn(){var ls=gD();if(an(ls))return sa(ls);je=vC(Kn,Bn(ls))}function sa(ls){return je=r,ir&&te?Dr(ls):(te=fe=r,ze)}function gu(){je!==r&&bge(je),Rt=0,te=nt=fe=je=r}function $l(){return je===r?ze:sa(gD())}function mu(){var ls=gD(),dh=an(ls);if(te=arguments,fe=this,nt=ls,dh){if(je===r)return nn(nt);if(Mt)return bge(je),je=vC(Kn,P),Dr(nt)}return je===r&&(je=vC(Kn,P)),ze}return mu.cancel=gu,mu.flush=$l,mu}var fct=Gn(function(I,P){return Jpe(I,1,P)}),pct=Gn(function(I,P,H){return Jpe(I,id(P)||0,H)});function gct(I){return Gp(I,C)}function mD(I,P){if(typeof I!="function"||P!=null&&typeof P!="function")throw new ed(s);var H=function(){var te=arguments,fe=P?P.apply(this,te):te[0],Ce=H.cache;if(Ce.has(fe))return Ce.get(fe);var ze=I.apply(this,te);return H.cache=Ce.set(fe,ze)||Ce,ze};return H.cache=new(mD.Cache||Up),H}mD.Cache=Up;function vD(I){if(typeof I!="function")throw new ed(s);return function(){var P=arguments;switch(P.length){case 0:return!I.call(this);case 1:return!I.call(this,P[0]);case 2:return!I.call(this,P[0],P[1]);case 3:return!I.call(this,P[0],P[1],P[2])}return!I.apply(this,P)}}function mct(I){return sme(2,I)}var vct=not(function(I,P){P=P.length==1&&An(P[0])?wi(P[0],hu(Jr())):wi(Po(P,1),hu(Jr()));var H=P.length;return Gn(function(te){for(var fe=-1,Ce=cl(te.length,H);++fe<Ce;)te[fe]=P[fe].call(this,te[fe]);return du(I,this,te)})}),q9=Gn(function(I,P){var H=Lm(P,W1(q9));return Gp(I,S,r,P,H)}),dme=Gn(function(I,P){var H=Lm(P,W1(dme));return Gp(I,T,r,P,H)}),yct=zp(function(I,P){return Gp(I,w,r,r,r,P)});function _ct(I,P){if(typeof I!="function")throw new ed(s);return P=P===r?P:In(P),Gn(I,P)}function bct(I,P){if(typeof I!="function")throw new ed(s);return P=P==null?0:Hs(In(P),0),Gn(function(H){var te=H[P],fe=Um(H,0,P);return te&&Dm(fe,te),du(I,this,fe)})}function Ect(I,P,H){var te=!0,fe=!0;if(typeof I!="function")throw new ed(s);return Bi(H)&&(te="leading"in H?!!H.leading:te,fe="trailing"in H?!!H.trailing:fe),ume(I,P,{leading:te,maxWait:P,trailing:fe})}function Sct(I){return ime(I,1)}function Tct(I,P){return q9(k9(P),I)}function xct(){if(!arguments.length)return[];var I=arguments[0];return An(I)?I:[I]}function wct(I){return rd(I,p)}function Cct(I,P){return P=typeof P=="function"?P:r,rd(I,p,P)}function Act(I){return rd(I,h|p)}function Rct(I,P){return P=typeof P=="function"?P:r,rd(I,h|p,P)}function Nct(I,P){return P==null||Qpe(I,P,_o(P))}function uh(I,P){return I===P||I!==I&&P!==P}var Ict=cD(_9),kct=cD(function(I,P){return I>=P}),oy=age((function(){return arguments})())?age:function(I){return Zi(I)&&Va.call(I,"callee")&&!Hpe.call(I,"callee")},An=ft.isArray,Oct=wpe?hu(wpe):$st;function kc(I){return I!=null&&yD(I.length)&&!Hp(I)}function os(I){return Zi(I)&&kc(I)}function Dct(I){return I===!0||I===!1||Zi(I)&&Fl(I)==ue}var $m=qit||aU,Lct=Cpe?hu(Cpe):Gst;function Mct(I){return Zi(I)&&I.nodeType===1&&!yC(I)}function Pct(I){if(I==null)return!0;if(kc(I)&&(An(I)||typeof I=="string"||typeof I.splice=="function"||$m(I)||q1(I)||oy(I)))return!I.length;var P=ul(I);if(P==G||P==De)return!I.size;if(mC(I))return!S9(I).length;for(var H in I)if(Va.call(I,H))return!1;return!0}function Bct(I,P){return fC(I,P)}function Fct(I,P,H){H=typeof H=="function"?H:r;var te=H?H(I,P):r;return te===r?fC(I,P,r,H):!!te}function X9(I){if(!Zi(I))return!1;var P=Fl(I);return P==Z||P==re||typeof I.message=="string"&&typeof I.name=="string"&&!yC(I)}function Uct(I){return typeof I=="number"&&Wpe(I)}function Hp(I){if(!Bi(I))return!1;var P=Fl(I);return P==ee||P==se||P==ne||P==be}function hme(I){return typeof I=="number"&&I==In(I)}function yD(I){return typeof I=="number"&&I>-1&&I%1==0&&I<=F}function Bi(I){var P=typeof I;return I!=null&&(P=="object"||P=="function")}function Zi(I){return I!=null&&typeof I=="object"}var fme=Ape?hu(Ape):Vst;function $ct(I,P){return I===P||E9(I,P,F9(P))}function Gct(I,P,H){return H=typeof H=="function"?H:r,E9(I,P,F9(P),H)}function zct(I){return pme(I)&&I!=+I}function Vct(I){if(Cot(I))throw new xn(i);return ige(I)}function Hct(I){return I===null}function Yct(I){return I==null}function pme(I){return typeof I=="number"||Zi(I)&&Fl(I)==ce}function yC(I){if(!Zi(I)||Fl(I)!=oe)return!1;var P=YO(I);if(P===null)return!0;var H=Va.call(P,"constructor")&&P.constructor;return typeof H=="function"&&H instanceof H&&GO.call(H)==Git}var j9=Rpe?hu(Rpe):Hst;function Wct(I){return hme(I)&&I>=-F&&I<=F}var gme=Npe?hu(Npe):Yst;function _D(I){return typeof I=="string"||!An(I)&&Zi(I)&&Fl(I)==we}function pu(I){return typeof I=="symbol"||Zi(I)&&Fl(I)==Ge}var q1=Ipe?hu(Ipe):Wst;function qct(I){return I===r}function Xct(I){return Zi(I)&&ul(I)==Fe}function jct(I){return Zi(I)&&Fl(I)==Le}var Kct=cD(T9),Zct=cD(function(I,P){return I<=P});function mme(I){if(!I)return[];if(kc(I))return _D(I)?lh(I):Ic(I);if(iC&&I[iC])return Nit(I[iC]());var P=ul(I),H=P==G?u9:P==De?FO:X1;return H(I)}function Yp(I){if(!I)return I===0?I:0;if(I=id(I),I===B||I===-B){var P=I<0?-1:1;return P*U}return I===I?I:0}function In(I){var P=Yp(I),H=P%1;return P===P?H?P-H:P:0}function vme(I){return I?ny(In(I),0,$):0}function id(I){if(typeof I=="number")return I;if(pu(I))return V;if(Bi(I)){var P=typeof I.valueOf=="function"?I.valueOf():I;I=Bi(P)?P+"":P}if(typeof I!="string")return I===0?I:+I;I=Ppe(I);var H=$n.test(I);return H||Ye.test(I)?hit(I.slice(2),H?2:8):$r.test(I)?V:+I}function yme(I){return ff(I,Oc(I))}function Qct(I){return I?ny(In(I),-F,F):I===0?I:0}function ka(I){return I==null?"":fu(I)}var Jct=H1(function(I,P){if(mC(P)||kc(P)){ff(P,_o(P),I);return}for(var H in P)Va.call(P,H)&&uC(I,H,P[H])}),_me=H1(function(I,P){ff(P,Oc(P),I)}),bD=H1(function(I,P,H,te){ff(P,Oc(P),I,te)}),eut=H1(function(I,P,H,te){ff(P,_o(P),I,te)}),tut=zp(m9);function rut(I,P){var H=V1(I);return P==null?H:Zpe(H,P)}var nut=Gn(function(I,P){I=Ja(I);var H=-1,te=P.length,fe=te>2?P[2]:r;for(fe&&Ul(P[0],P[1],fe)&&(te=1);++H<te;)for(var Ce=P[H],ze=Oc(Ce),je=-1,nt=ze.length;++je<nt;){var Rt=ze[je],It=I[Rt];(It===r||uh(It,$1[Rt])&&!Va.call(I,Rt))&&(I[Rt]=Ce[Rt])}return I}),aut=Gn(function(I){return I.push(r,Pge),du(bme,r,I)});function iut(I,P){return Ope(I,Jr(P,3),hf)}function sut(I,P){return Ope(I,Jr(P,3),y9)}function out(I,P){return I==null?I:v9(I,Jr(P,3),Oc)}function lut(I,P){return I==null?I:rge(I,Jr(P,3),Oc)}function cut(I,P){return I&&hf(I,Jr(P,3))}function uut(I,P){return I&&y9(I,Jr(P,3))}function dut(I){return I==null?[]:tD(I,_o(I))}function hut(I){return I==null?[]:tD(I,Oc(I))}function K9(I,P,H){var te=I==null?r:ay(I,P);return te===r?H:te}function fut(I,P){return I!=null&&Uge(I,P,Pst)}function Z9(I,P){return I!=null&&Uge(I,P,Bst)}var put=kge(function(I,P,H){P!=null&&typeof P.toString!="function"&&(P=zO.call(P)),I[P]=H},J9(Dc)),gut=kge(function(I,P,H){P!=null&&typeof P.toString!="function"&&(P=zO.call(P)),Va.call(I,P)?I[P].push(H):I[P]=[H]},Jr),mut=Gn(hC);function _o(I){return kc(I)?jpe(I):S9(I)}function Oc(I){return kc(I)?jpe(I,!0):qst(I)}function vut(I,P){var H={};return P=Jr(P,3),hf(I,function(te,fe,Ce){$p(H,P(te,fe,Ce),te)}),H}function yut(I,P){var H={};return P=Jr(P,3),hf(I,function(te,fe,Ce){$p(H,fe,P(te,fe,Ce))}),H}var _ut=H1(function(I,P,H){rD(I,P,H)}),bme=H1(function(I,P,H,te){rD(I,P,H,te)}),but=zp(function(I,P){var H={};if(I==null)return H;var te=!1;P=wi(P,function(Ce){return Ce=Fm(Ce,I),te||(te=Ce.length>1),Ce}),ff(I,P9(I),H),te&&(H=rd(H,h|f|p,pot));for(var fe=P.length;fe--;)R9(H,P[fe]);return H});function Eut(I,P){return Eme(I,vD(Jr(P)))}var Sut=zp(function(I,P){return I==null?{}:jst(I,P)});function Eme(I,P){if(I==null)return{};var H=wi(P9(I),function(te){return[te]});return P=Jr(P),hge(I,H,function(te,fe){return P(te,fe[0])})}function Tut(I,P,H){P=Fm(P,I);var te=-1,fe=P.length;for(fe||(fe=1,I=r);++te<fe;){var Ce=I==null?r:I[pf(P[te])];Ce===r&&(te=fe,Ce=H),I=Hp(Ce)?Ce.call(I):Ce}return I}function xut(I,P,H){return I==null?I:pC(I,P,H)}function wut(I,P,H,te){return te=typeof te=="function"?te:r,I==null?I:pC(I,P,H,te)}var Sme=Lge(_o),Tme=Lge(Oc);function Cut(I,P,H){var te=An(I),fe=te||$m(I)||q1(I);if(P=Jr(P,4),H==null){var Ce=I&&I.constructor;fe?H=te?new Ce:[]:Bi(I)?H=Hp(Ce)?V1(YO(I)):{}:H={}}return(fe?Ju:hf)(I,function(ze,je,nt){return P(H,ze,je,nt)}),H}function Aut(I,P){return I==null?!0:R9(I,P)}function Rut(I,P,H){return I==null?I:vge(I,P,k9(H))}function Nut(I,P,H,te){return te=typeof te=="function"?te:r,I==null?I:vge(I,P,k9(H),te)}function X1(I){return I==null?[]:c9(I,_o(I))}function Iut(I){return I==null?[]:c9(I,Oc(I))}function kut(I,P,H){return H===r&&(H=P,P=r),H!==r&&(H=id(H),H=H===H?H:0),P!==r&&(P=id(P),P=P===P?P:0),ny(id(I),P,H)}function Out(I,P,H){return P=Yp(P),H===r?(H=P,P=0):H=Yp(H),I=id(I),Fst(I,P,H)}function Dut(I,P,H){if(H&&typeof H!="boolean"&&Ul(I,P,H)&&(P=H=r),H===r&&(typeof P=="boolean"?(H=P,P=r):typeof I=="boolean"&&(H=I,I=r)),I===r&&P===r?(I=0,P=1):(I=Yp(I),P===r?(P=I,I=0):P=Yp(P)),I>P){var te=I;I=P,P=te}if(H||I%1||P%1){var fe=qpe();return cl(I+fe*(P-I+dit("1e-"+((fe+"").length-1))),P)}return w9(I,P)}var Lut=Y1(function(I,P,H){return P=P.toLowerCase(),I+(H?xme(P):P)});function xme(I){return Q9(ka(I).toLowerCase())}function wme(I){return I=ka(I),I&&I.replace(er,xit).replace(Spe,"")}function Mut(I,P,H){I=ka(I),P=fu(P);var te=I.length;H=H===r?te:ny(In(H),0,te);var fe=H;return H-=P.length,H>=0&&I.slice(H,fe)==P}function Put(I){return I=ka(I),I&&mt.test(I)?I.replace(ot,wit):I}function But(I){return I=ka(I),I&&Et.test(I)?I.replace(Kt,"\\$&"):I}var Fut=Y1(function(I,P,H){return I+(H?"-":"")+P.toLowerCase()}),Uut=Y1(function(I,P,H){return I+(H?" ":"")+P.toLowerCase()}),$ut=Rge("toLowerCase");function Gut(I,P,H){I=ka(I),P=In(P);var te=P?F1(I):0;if(!P||te>=P)return I;var fe=(P-te)/2;return lD(jO(fe),H)+I+lD(XO(fe),H)}function zut(I,P,H){I=ka(I),P=In(P);var te=P?F1(I):0;return P&&te<P?I+lD(P-te,H):I}function Vut(I,P,H){I=ka(I),P=In(P);var te=P?F1(I):0;return P&&te<P?lD(P-te,H)+I:I}function Hut(I,P,H){return H||P==null?P=0:P&&(P=+P),Zit(ka(I).replace(At,""),P||0)}function Yut(I,P,H){return(H?Ul(I,P,H):P===r)?P=1:P=In(P),C9(ka(I),P)}function Wut(){var I=arguments,P=ka(I[0]);return I.length<3?P:P.replace(I[1],I[2])}var qut=Y1(function(I,P,H){return I+(H?"_":"")+P.toLowerCase()});function Xut(I,P,H){return H&&typeof H!="number"&&Ul(I,P,H)&&(P=H=r),H=H===r?$:H>>>0,H?(I=ka(I),I&&(typeof P=="string"||P!=null&&!j9(P))&&(P=fu(P),!P&&B1(I))?Um(lh(I),0,H):I.split(P,H)):[]}var jut=Y1(function(I,P,H){return I+(H?" ":"")+Q9(P)});function Kut(I,P,H){return I=ka(I),H=H==null?0:ny(In(H),0,I.length),P=fu(P),I.slice(H,H+P.length)==P}function Zut(I,P,H){var te=Se.templateSettings;H&&Ul(I,P,H)&&(P=r),I=ka(I),P=bD({},P,te,Mge);var fe=bD({},P.imports,te.imports,Mge),Ce=_o(fe),ze=c9(fe,Ce),je,nt,Rt=0,It=P.interpolate||Gr,Mt="__p += '",ir=d9((P.escape||Gr).source+"|"+It.source+"|"+(It===at?jn:Gr).source+"|"+(P.evaluate||Gr).source+"|$","g"),Dr="//# sourceURL="+(Va.call(P,"sourceURL")?(P.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sit+"]")+`
488
488
  `;I.replace(ir,function(an,Kn,sa,gu,$l,mu){return sa||(sa=gu),Mt+=I.slice(Rt,mu).replace(pa,Cit),Kn&&(je=!0,Mt+=`' +
@@ -554,7 +554,7 @@ echarts.use([`+k+"]);":"Unknown series "+N))}return}if(h==="tooltip"){if(b){proc
554
554
  `)),ra(n));var v=p?qHe(p):null;p&&!v&&(process.env.NODE_ENV!=="production"&&(n=mc("Invalid parser name "+p+`.
555
555
  `,"Illegal config:",d,`.
556
556
  `)),ra(n)),i.push({dimIdx:y.index,parser:v,comparator:new jHe(f,g)})});var s=e.sourceFormat;s!==Nl&&s!==sh&&(process.env.NODE_ENV!=="production"&&(n='sourceFormat "'+s+'" is not supported yet'),ra(n));for(var o=[],l=0,u=e.count();l<u;l++)o.push(e.getRawDataItem(l));return o.sort(function(d,h){for(var f=0;f<i.length;f++){var p=i[f],g=e.retrieveValueFromItem(d,p.dimIdx),m=e.retrieveValueFromItem(h,p.dimIdx);p.parser&&(g=p.parser(g),m=p.parser(m));var _=p.comparator.evaluate(g,m);if(_!==0)return _}return 0}),{data:o}}};function yar(t){t.registerTransform(gar),t.registerTransform(mar)}var _ar=(function(t){Ze(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,n,a){t.prototype.init.call(this,r,n,a),this._sourceManager=new JHe(this),Ywe(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),Ywe(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:op},e})(yn),bar=(function(t){Ze(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e})(hi);function Ear(t){t.registerComponentModel(_ar),t.registerComponentView(bar)}var wf=vp.CMD;function _S(t,e){return Math.abs(t-e)<1e-5}function GJ(t){var e=t.data,r=t.len(),n=[],a,i=0,s=0,o=0,l=0;function u(L,A){a&&a.length>2&&n.push(a),a=[L,A]}function d(L,A,D,M){_S(L,D)&&_S(A,M)||a.push(L,A,D,M,D,M)}function h(L,A,D,M,B,F){var U=Math.abs(A-L),V=Math.tan(U/4)*4/3,$=A<L?-1:1,z=Math.cos(L),q=Math.sin(L),j=Math.cos(A),X=Math.sin(A),ie=z*B+D,ne=q*F+M,ue=j*B+D,J=X*F+M,re=B*V*$,Z=F*V*$;a.push(ie-re*q,ne+Z*z,ue+re*X,J-Z*j,ue,J)}for(var f,p,g,m,_=0;_<r;){var y=e[_++],v=_===1;switch(v&&(i=e[_],s=e[_+1],o=i,l=s,(y===wf.L||y===wf.C||y===wf.Q)&&(a=[o,l])),y){case wf.M:i=o=e[_++],s=l=e[_++],u(o,l);break;case wf.L:f=e[_++],p=e[_++],d(i,s,f,p),i=f,s=p;break;case wf.C:a.push(e[_++],e[_++],e[_++],e[_++],i=e[_++],s=e[_++]);break;case wf.Q:f=e[_++],p=e[_++],g=e[_++],m=e[_++],a.push(i+2/3*(f-i),s+2/3*(p-s),g+2/3*(f-g),m+2/3*(p-m),g,m),i=g,s=m;break;case wf.A:var b=e[_++],E=e[_++],S=e[_++],T=e[_++],x=e[_++],w=e[_++]+x;_+=1;var C=!e[_++];f=Math.cos(x)*S+b,p=Math.sin(x)*T+E,v?(o=f,l=p,u(o,l)):d(i,s,f,p),i=Math.cos(w)*S+b,s=Math.sin(w)*T+E;for(var R=(C?-1:1)*Math.PI/2,N=x;C?N>w:N<w;N+=R){var k=C?Math.max(N+R,w):Math.min(N+R,w);h(N,k,b,E,S,T)}break;case wf.R:o=i=e[_++],l=s=e[_++],f=o+e[_++],p=l+e[_++],u(f,l),d(f,l,f,p),d(f,p,o,p),d(o,p,o,l),d(o,l,f,l);break;case wf.Z:a&&d(i,s,o,l),i=o,s=l;break}}return a&&a.length>2&&n.push(a),n}function zJ(t,e,r,n,a,i,s,o,l,u){if(_S(t,r)&&_S(e,n)&&_S(a,s)&&_S(i,o)){l.push(s,o);return}var d=2/u,h=d*d,f=s-t,p=o-e,g=Math.sqrt(f*f+p*p);f/=g,p/=g;var m=r-t,_=n-e,y=a-s,v=i-o,b=m*m+_*_,E=y*y+v*v;if(b<h&&E<h){l.push(s,o);return}var S=f*m+p*_,T=-f*y-p*v,x=b-S*S,w=E-T*T;if(x<h&&S>=0&&w<h&&T>=0){l.push(s,o);return}var C=[],R=[];r0(t,r,a,s,.5,C),r0(e,n,i,o,.5,R),zJ(C[0],R[0],C[1],R[1],C[2],R[2],C[3],R[3],l,u),zJ(C[4],R[4],C[5],R[5],C[6],R[6],C[7],R[7],l,u)}function Sar(t,e){var r=GJ(t),n=[];e=e||1;for(var a=0;a<r.length;a++){var i=r[a],s=[],o=i[0],l=i[1];s.push(o,l);for(var u=2;u<i.length;){var d=i[u++],h=i[u++],f=i[u++],p=i[u++],g=i[u++],m=i[u++];zJ(o,l,d,h,f,p,g,m,s,e),o=g,l=m}n.push(s)}return n}function fje(t,e,r){var n=t[e],a=t[1-e],i=Math.abs(n/a),s=Math.ceil(Math.sqrt(i*r)),o=Math.floor(r/s);o===0&&(o=1,s=r);for(var l=[],u=0;u<s;u++)l.push(o);var d=s*o,h=r-d;if(h>0)for(var u=0;u<h;u++)l[u%s]+=1;return l}function qNe(t,e,r){for(var n=t.r0,a=t.r,i=t.startAngle,s=t.endAngle,o=Math.abs(s-i),l=o*a,u=a-n,d=l>Math.abs(u),h=fje([l,u],d?0:1,e),f=(d?o:u)/h.length,p=0;p<h.length;p++)for(var g=(d?u:o)/h[p],m=0;m<h[p];m++){var _={};d?(_.startAngle=i+f*p,_.endAngle=i+f*(p+1),_.r0=n+g*m,_.r=n+g*(m+1)):(_.startAngle=i+g*m,_.endAngle=i+g*(m+1),_.r0=n+f*p,_.r=n+f*(p+1)),_.clockwise=t.clockwise,_.cx=t.cx,_.cy=t.cy,r.push(_)}}function Tar(t,e,r){for(var n=t.width,a=t.height,i=n>a,s=fje([n,a],i?0:1,e),o=i?"width":"height",l=i?"height":"width",u=i?"x":"y",d=i?"y":"x",h=t[o]/s.length,f=0;f<s.length;f++)for(var p=t[l]/s[f],g=0;g<s[f];g++){var m={};m[u]=f*h,m[d]=g*p,m[o]=h,m[l]=p,m.x+=t.x,m.y+=t.y,r.push(m)}}function XNe(t,e,r,n){return t*n-r*e}function xar(t,e,r,n,a,i,s,o){var l=r-t,u=n-e,d=s-a,h=o-i,f=XNe(d,h,l,u);if(Math.abs(f)<1e-6)return null;var p=t-a,g=e-i,m=XNe(p,g,d,h)/f;return m<0||m>1?null:new Wr(m*l+t,m*u+e)}function war(t,e,r){var n=new Wr;Wr.sub(n,r,e),n.normalize();var a=new Wr;Wr.sub(a,t,e);var i=a.dot(n);return i}function wE(t,e){var r=t[t.length-1];r&&r[0]===e[0]&&r[1]===e[1]||t.push(e)}function Car(t,e,r){for(var n=t.length,a=[],i=0;i<n;i++){var s=t[i],o=t[(i+1)%n],l=xar(s[0],s[1],o[0],o[1],e.x,e.y,r.x,r.y);l&&a.push({projPt:war(l,e,r),pt:l,idx:i})}if(a.length<2)return[{points:t},{points:t}];a.sort(function(_,y){return _.projPt-y.projPt});var u=a[0],d=a[a.length-1];if(d.idx<u.idx){var h=u;u=d,d=h}for(var f=[u.pt.x,u.pt.y],p=[d.pt.x,d.pt.y],g=[f],m=[p],i=u.idx+1;i<=d.idx;i++)wE(g,t[i].slice());wE(g,p),wE(g,f);for(var i=d.idx+1;i<=u.idx+n;i++)wE(m,t[i%n].slice());return wE(m,f),wE(m,p),[{points:g},{points:m}]}function jNe(t){var e=t.points,r=[],n=[];a8(e,r,n);var a=new Xr(r[0],r[1],n[0]-r[0],n[1]-r[1]),i=a.width,s=a.height,o=a.x,l=a.y,u=new Wr,d=new Wr;return i>s?(u.x=d.x=o+i/2,u.y=l,d.y=l+s):(u.y=d.y=l+s/2,u.x=o,d.x=o+i),Car(e,u,d)}function d6(t,e,r,n){if(r===1)n.push(e);else{var a=Math.floor(r/2),i=t(e);d6(t,i[0],a,n),d6(t,i[1],r-a,n)}return n}function Aar(t,e){for(var r=[],n=0;n<e;n++)r.push(eue(t));return r}function Rar(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function Nar(t){for(var e=[],r=0;r<t.length;)e.push([t[r++],t[r++]]);return e}function Iar(t,e){var r=[],n=t.shape,a;switch(t.type){case"rect":Tar(n,e,r),a=Rn;break;case"sector":qNe(n,e,r),a=yc;break;case"circle":qNe({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,r),a=yc;break;default:var i=t.getComputedTransform(),s=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,o=_t(Sar(t.getUpdatedPathProxy(),s),function(y){return Nar(y)}),l=o.length;if(l===0)d6(jNe,{points:o[0]},e,r);else if(l===e)for(var u=0;u<l;u++)r.push({points:o[u]});else{var d=0,h=_t(o,function(y){var v=[],b=[];a8(y,v,b);var E=(b[1]-v[1])*(b[0]-v[0]);return d+=E,{poly:y,area:E}});h.sort(function(y,v){return v.area-y.area});for(var f=e,u=0;u<l;u++){var p=h[u];if(f<=0)break;var g=u===l-1?f:Math.ceil(p.area/d*e);g<0||(d6(jNe,{points:p.poly},g,r),f-=g)}}a=_c;break}if(!a)return Aar(t,e);for(var m=[],u=0;u<r.length;u++){var _=new a;_.setShape(r[u]),Rar(t,_),m.push(_)}return m}function kar(t,e){var r=t.length,n=e.length;if(r===n)return[t,e];for(var a=[],i=[],s=r<n?t:e,o=Math.min(r,n),l=Math.abs(n-r)/6,u=(o-2)/6,d=Math.ceil(l/u)+1,h=[s[0],s[1]],f=l,p=2;p<o;){var g=s[p-2],m=s[p-1],_=s[p++],y=s[p++],v=s[p++],b=s[p++],E=s[p++],S=s[p++];if(f<=0){h.push(_,y,v,b,E,S);continue}for(var T=Math.min(f,d-1)+1,x=1;x<=T;x++){var w=x/T;r0(g,_,v,E,w,a),r0(m,y,b,S,w,i),g=a[3],m=i[3],h.push(a[1],i[1],a[2],i[2],g,m),_=a[5],y=i[5],v=a[6],b=i[6]}f-=T-1}return s===t?[h,e]:[t,h]}function KNe(t,e){for(var r=t.length,n=t[r-2],a=t[r-1],i=[],s=0;s<e.length;)i[s++]=n,i[s++]=a;return i}function Oar(t,e){for(var r,n,a,i=[],s=[],o=0;o<Math.max(t.length,e.length);o++){var l=t[o],u=e[o],d=void 0,h=void 0;l?u?(r=kar(l,u),d=r[0],h=r[1],n=d,a=h):(h=KNe(a||l,l),d=l):(d=KNe(n||u,u),h=u),i.push(d),s.push(h)}return[i,s]}function ZNe(t){for(var e=0,r=0,n=0,a=t.length,i=0,s=a-2;i<a;s=i,i+=2){var o=t[s],l=t[s+1],u=t[i],d=t[i+1],h=o*d-u*l;e+=h,r+=(o+u)*h,n+=(l+d)*h}return e===0?[t[0]||0,t[1]||0]:[r/e/3,n/e/3,e]}function Dar(t,e,r,n){for(var a=(t.length-2)/6,i=1/0,s=0,o=t.length,l=o-2,u=0;u<a;u++){for(var d=u*6,h=0,f=0;f<o;f+=2){var p=f===0?d:(d+f-2)%l+2,g=t[p]-r[0],m=t[p+1]-r[1],_=e[f]-n[0],y=e[f+1]-n[1],v=_-g,b=y-m;h+=v*v+b*b}h<i&&(i=h,s=u)}return s}function Lar(t){for(var e=[],r=t.length,n=0;n<r;n+=2)e[n]=t[r-n-2],e[n+1]=t[r-n-1];return e}function Mar(t,e,r,n){for(var a=[],i,s=0;s<t.length;s++){var o=t[s],l=e[s],u=ZNe(o),d=ZNe(l);i==null&&(i=u[2]<0!=d[2]<0);var h=[],f=[],p=0,g=1/0,m=[],_=o.length;i&&(o=Lar(o));for(var y=Dar(o,l,u,d)*6,v=_-2,b=0;b<v;b+=2){var E=(y+b)%v+2;h[b+2]=o[E]-u[0],h[b+3]=o[E+1]-u[1]}h[0]=o[y]-u[0],h[1]=o[y+1]-u[1];for(var S=n/r,T=-n/2;T<=n/2;T+=S){for(var x=Math.sin(T),w=Math.cos(T),C=0,b=0;b<o.length;b+=2){var R=h[b],N=h[b+1],k=l[b]-d[0],L=l[b+1]-d[1],A=k*w-L*x,D=k*x+L*w;m[b]=A,m[b+1]=D;var M=A-R,B=D-N;C+=M*M+B*B}if(C<g){g=C,p=T;for(var F=0;F<m.length;F++)f[F]=m[F]}}a.push({from:h,to:f,fromCp:u,toCp:d,rotation:-p})}return a}function h6(t){return t.__isCombineMorphing}var pje="__mOriginal_";function f6(t,e,r){var n=pje+e,a=t[n]||t[e];t[n]||(t[n]=t[e]);var i=r.replace,s=r.after,o=r.before;t[e]=function(){var l=arguments,u;return o&&o.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),s&&s.apply(this,l),u}}function eN(t,e){var r=pje+e;t[r]&&(t[e]=t[r],t[r]=null)}function QNe(t,e){for(var r=0;r<t.length;r++)for(var n=t[r],a=0;a<n.length;){var i=n[a],s=n[a+1];n[a++]=e[0]*i+e[2]*s+e[4],n[a++]=e[1]*i+e[3]*s+e[5]}}function gje(t,e){var r=t.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),a=Oar(GJ(r),GJ(n)),i=a[0],s=a[1],o=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}o&&QNe(i,o),l&&QNe(s,l),f6(e,"updateTransform",{replace:u}),e.transform=null;var d=Mar(i,s,10,Math.PI),h=[];f6(e,"buildPath",{replace:function(f){for(var p=e.__morphT,g=1-p,m=[],_=0;_<d.length;_++){var y=d[_],v=y.from,b=y.to,E=y.rotation*p,S=y.fromCp,T=y.toCp,x=Math.sin(E),w=Math.cos(E);ZP(m,S,T,p);for(var C=0;C<v.length;C+=2){var R=v[C],N=v[C+1],k=b[C],L=b[C+1],A=R*g+k*p,D=N*g+L*p;h[C]=A*w-D*x+m[0],h[C+1]=A*x+D*w+m[1]}var M=h[0],B=h[1];f.moveTo(M,B);for(var C=2;C<v.length;){var k=h[C++],L=h[C++],F=h[C++],U=h[C++],V=h[C++],$=h[C++];M===k&&B===L&&F===V&&U===$?f.lineTo(V,$):f.bezierCurveTo(k,L,F,U,V,$),M=V,B=$}}}})}function Bde(t,e,r){if(!t||!e)return e;var n=r.done,a=r.during;gje(t,e),e.__morphT=0;function i(){eN(e,"buildPath"),eN(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},fr({during:function(s){e.dirtyShape(),a&&a(s)},done:function(){i(),n&&n()}},r)),e}function Par(t,e,r,n,a,i){var s=16;t=a===r?0:Math.round(32767*(t-r)/(a-r)),e=i===n?0:Math.round(32767*(e-n)/(i-n));for(var o=0,l,u=(1<<s)/2;u>0;u/=2){var d=0,h=0;(t&u)>0&&(d=1),(e&u)>0&&(h=1),o+=u*u*(3*d^h),h===0&&(d===1&&(t=u-1-t,e=u-1-e),l=t,t=e,e=l)}return o}function p6(t){var e=1/0,r=1/0,n=-1/0,a=-1/0,i=_t(t,function(o){var l=o.getBoundingRect(),u=o.getComputedTransform(),d=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(d,e),r=Math.min(h,r),n=Math.max(d,n),a=Math.max(h,a),[d,h]}),s=_t(i,function(o,l){return{cp:o,z:Par(o[0],o[1],e,r,n,a),path:t[l]}});return s.sort(function(o,l){return o.z-l.z}).map(function(o){return o.path})}function mje(t){return Iar(t.path,t.count)}function VJ(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Bar(t,e,r){var n=[];function a(S){for(var T=0;T<S.length;T++){var x=S[T];h6(x)?a(x.childrenRef()):x instanceof vn&&n.push(x)}}a(t);var i=n.length;if(!i)return VJ();var s=r.dividePath||mje,o=s({path:e,count:i});if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),VJ();n=p6(n),o=p6(o);for(var l=r.done,u=r.during,d=r.individualDelay,h=new Ag,f=0;f<i;f++){var p=n[f],g=o[f];g.parent=e,g.copyTransform(h),d||gje(p,g)}e.__isCombineMorphing=!0,e.childrenRef=function(){return o};function m(S){for(var T=0;T<o.length;T++)o[T].addSelfToZr(S)}f6(e,"addSelfToZr",{after:function(S){m(S)}}),f6(e,"removeSelfFromZr",{after:function(S){for(var T=0;T<o.length;T++)o[T].removeSelfFromZr(S)}});function _(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,eN(e,"addSelfToZr"),eN(e,"removeSelfFromZr")}var y=o.length;if(d)for(var v=y,b=function(){v--,v===0&&(_(),l&&l())},f=0;f<y;f++){var E=d?fr({delay:(r.delay||0)+d(f,y,n[f],o[f]),done:b},r):r;Bde(n[f],o[f],E)}else e.__morphT=0,e.animateTo({__morphT:1},fr({during:function(S){for(var T=0;T<y;T++){var x=o[T];x.__morphT=e.__morphT,x.dirtyShape()}u&&u(S)},done:function(){_();for(var S=0;S<t.length;S++)eN(t[S],"updateTransform");l&&l()}},r));return e.__zr&&m(e.__zr),{fromIndividuals:n,toIndividuals:o,count:y}}function Far(t,e,r){var n=e.length,a=[],i=r.dividePath||mje;function s(p){for(var g=0;g<p.length;g++){var m=p[g];h6(m)?s(m.childrenRef()):m instanceof vn&&a.push(m)}}if(h6(t)){s(t.childrenRef());var o=a.length;if(o<n)for(var l=0,u=o;u<n;u++)a.push(eue(a[l++%o]));a.length=n}else{a=i({path:t,count:n});for(var d=t.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(d);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),VJ()}a=p6(a),e=p6(e);for(var h=r.individualDelay,u=0;u<n;u++){var f=h?fr({delay:(r.delay||0)+h(u,n,a[u],e[u])},r):r;Bde(a[u],e[u],f)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function JNe(t){return yt(t[0])}function eIe(t,e){for(var r=[],n=t.length,a=0;a<n;a++)r.push({one:t[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,s=void 0;for(s=0;s<i;s++)r[s%n].many.push(e[a][s])}for(var o=0,a=n-1;a>=0;a--)if(!r[a].many.length){var l=r[o].many;if(l.length<=1)if(o)o=0;else return r;var i=l.length,u=Math.ceil(i/2);r[a].many=l.slice(u,i),r[o].many=l.slice(0,u),o++}return r}var Uar={clone:function(t){for(var e=[],r=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n<t.count;n++){var a=eue(t.path);a.setStyle("opacity",r),e.push(a)}return e},split:null};function LW(t,e,r,n,a,i){if(!t.length||!e.length)return;var s=Iw("update",n,a);if(!(s&&s.duration>0))return;var o=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},s),u,d;JNe(t)&&(u=t,d=e),JNe(e)&&(u=e,d=t);function h(y,v,b,E,S){var T=y.many,x=y.one;if(T.length===1&&!S){var w=v?T[0]:x,C=v?x:T[0];if(h6(w))h({many:[w],one:C},!0,b,E,!0);else{var R=o?fr({delay:o(b,E)},l):l;Bde(w,C,R),i(w,C,w,C,R)}}else for(var N=fr({dividePath:Uar[r],individualDelay:o&&function(B,F,U,V){return o(B+b,E)}},l),k=v?Bar(T,x,N):Far(x,T,N),L=k.fromIndividuals,A=k.toIndividuals,D=L.length,M=0;M<D;M++){var R=o?fr({delay:o(M,D)},l):l;i(L[M],A[M],v?T[M]:y.one,v?y.one:T[M],R)}}for(var f=u?u===t:t.length>e.length,p=u?eIe(d,u):eIe(f?e:t,[f?t:e]),g=0,m=0;m<p.length;m++)g+=p[m].many.length;for(var _=0,m=0;m<p.length;m++)h(p[m],f,_,g),_+=p[m].many.length}function r_(t){if(!t)return[];if(yt(t)){for(var e=[],r=0;r<t.length;r++)e.push(r_(t[r]));return e}var n=[];return t.traverse(function(a){a instanceof vn&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var vje=1e4,$ar=0,tIe=1,rIe=2,Gar=Nn();function zar(t,e){for(var r=t.dimensions,n=0;n<r.length;n++){var a=t.getDimensionInfo(r[n]);if(a&&a.otherDims[e]===0)return r[n]}}function Var(t,e,r){var n=t.getDimensionInfo(r),a=n&&n.ordinalMeta;if(n){var i=t.get(n.name,e);return a&&a.categories[i]||i+""}}function nIe(t,e,r,n){var a=n?"itemChildGroupId":"itemGroupId",i=zar(t,a);if(i){var s=Var(t,e,i);return s}var o=t.getRawDataItem(e),l=n?"childGroupId":"groupId";if(o&&o[l])return o[l]+"";if(!n)return r||t.getId(e)}function aIe(t){var e=[];return le(t,function(r){var n=r.data,a=r.dataGroupId;if(n.count()>vje){process.env.NODE_ENV!=="production"&&_i("Universal transition is disabled on large data > 10k.");return}for(var i=n.getIndices(),s=0;s<i.length;s++)e.push({data:n,groupId:nIe(n,s,a,!1),childGroupId:nIe(n,s,a,!0),divide:r.divide,dataIndex:s})}),e}function MW(t,e,r){t.traverse(function(n){n instanceof vn&&ni(n,{style:{opacity:0}},e,{dataIndex:r,isFrom:!0})})}function PW(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function CE(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function Har(t,e,r){var n=Iw("update",r,e);n&&t.traverse(function(a){if(a instanceof Zd){var i=L$t(a);i&&a.animateFrom({style:i},n)}})}function Yar(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++){var a=t[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function yje(t,e,r){var n=aIe(t),a=aIe(e);function i(b,E,S,T,x){(S||b)&&E.animateFrom({style:S&&S!==b?dt(dt({},S.style),b.style):b.style},x)}var s=!1,o=$ar,l=Jt(),u=Jt();n.forEach(function(b){b.groupId&&l.set(b.groupId,!0),b.childGroupId&&u.set(b.childGroupId,!0)});for(var d=0;d<a.length;d++){var h=a[d].groupId;if(u.get(h)){o=tIe;break}var f=a[d].childGroupId;if(f&&l.get(f)){o=rIe;break}}function p(b,E){return function(S){var T=S.data,x=S.dataIndex;return E?T.getId(x):b?o===tIe?S.childGroupId:S.groupId:o===rIe?S.childGroupId:S.groupId}}var g=Yar(n,a),m={};if(!g)for(var d=0;d<a.length;d++){var _=a[d],y=_.data.getItemGraphicEl(_.dataIndex);y&&(m[y.id]=!0)}function v(b,E){var S=n[E],T=a[b],x=T.data.hostModel,w=S.data.getItemGraphicEl(S.dataIndex),C=T.data.getItemGraphicEl(T.dataIndex);if(w===C){C&&Har(C,T.dataIndex,x);return}w&&m[w.id]||C&&(CE(C),w?(CE(w),PW(w),s=!0,LW(r_(w),r_(C),T.divide,x,b,i)):MW(C,x,b))}new im(n,a,p(!0,g),p(!1,g),null,"multiple").update(v).updateManyToOne(function(b,E){var S=a[b],T=S.data,x=T.hostModel,w=T.getItemGraphicEl(S.dataIndex),C=na(_t(E,function(R){return n[R].data.getItemGraphicEl(n[R].dataIndex)}),function(R){return R&&R!==w&&!m[R.id]});w&&(CE(w),C.length?(le(C,function(R){CE(R),PW(R)}),s=!0,LW(r_(C),r_(w),S.divide,x,b,i)):MW(w,x,S.dataIndex))}).updateOneToMany(function(b,E){var S=n[E],T=S.data.getItemGraphicEl(S.dataIndex);if(!(T&&m[T.id])){var x=na(_t(b,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==T}),w=a[b[0]].data.hostModel;x.length&&(le(x,function(C){return CE(C)}),T?(CE(T),PW(T),s=!0,LW(r_(T),r_(x),S.divide,w,b[0],i)):le(x,function(C){return MW(C,w,b[0])}))}}).updateManyToMany(function(b,E){new im(E,b,function(S){return n[S].data.getId(n[S].dataIndex)},function(S){return a[S].data.getId(a[S].dataIndex)}).update(function(S,T){v(b[S],E[T])}).execute()}).execute(),s&&le(e,function(b){var E=b.data,S=E.hostModel,T=S&&r.getViewOfSeriesModel(S),x=Iw("update",S,0);T&&S.isAnimationEnabled()&&x&&x.duration>0&&T.group.traverse(function(w){w instanceof vn&&!w.animators.length&&w.animateFrom({style:{opacity:0}},x)})})}function iIe(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function sIe(t){return yt(t)?t.sort().join(","):t}function cv(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function War(t,e){var r=Jt(),n=Jt(),a=Jt();le(t.oldSeries,function(s,o){var l=t.oldDataGroupIds[o],u=t.oldData[o],d=iIe(s),h=sIe(d);n.set(h,{dataGroupId:l,data:u}),yt(d)&&le(d,function(f){a.set(f,{key:h,dataGroupId:l,data:u})})});function i(s){r.get(s)&&_i("Duplicated seriesKey in universalTransition "+s)}return le(e.updatedSeries,function(s){if(s.isUniversalTransitionEnabled()&&s.isAnimationEnabled()){var o=s.get("dataGroupId"),l=s.getData(),u=iIe(s),d=sIe(u),h=n.get(d);if(h)process.env.NODE_ENV!=="production"&&i(d),r.set(d,{oldSeries:[{dataGroupId:h.dataGroupId,divide:cv(h.data),data:h.data}],newSeries:[{dataGroupId:o,divide:cv(l),data:l}]});else if(yt(u)){process.env.NODE_ENV!=="production"&&i(d);var f=[];le(u,function(m){var _=n.get(m);_.data&&f.push({dataGroupId:_.dataGroupId,divide:cv(_.data),data:_.data})}),f.length&&r.set(d,{oldSeries:f,newSeries:[{dataGroupId:o,data:l,divide:cv(l)}]})}else{var p=a.get(u);if(p){var g=r.get(p.key);g||(g={oldSeries:[{dataGroupId:p.dataGroupId,data:p.data,divide:cv(p.data)}],newSeries:[]},r.set(p.key,g)),g.newSeries.push({dataGroupId:o,data:l,divide:cv(l)})}}}}),r}function oIe(t,e){for(var r=0;r<t.length;r++){var n=e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id;if(n)return r}}function qar(t,e,r,n){var a=[],i=[];le(xa(t.from),function(s){var o=oIe(e.oldSeries,s);o>=0&&a.push({dataGroupId:e.oldDataGroupIds[o],data:e.oldData[o],divide:cv(e.oldData[o]),groupIdDim:s.dimension})}),le(xa(t.to),function(s){var o=oIe(r.updatedSeries,s);if(o>=0){var l=r.updatedSeries[o].getData();i.push({dataGroupId:e.oldDataGroupIds[o],data:l,divide:cv(l),groupIdDim:s.dimension})}}),a.length>0&&i.length>0&&yje(a,i,n)}function Xar(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){le(xa(n.seriesTransition),function(a){le(xa(a.to),function(i){for(var s=n.updatedSeries,o=0;o<s.length;o++)(i.seriesIndex!=null&&i.seriesIndex===s[o].seriesIndex||i.seriesId!=null&&i.seriesId===s[o].id)&&(s[o][o3]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,r,n){var a=Gar(r);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)le(xa(i),function(p){qar(p,a,n,r)});else{var s=War(a,n);le(s.keys(),function(p){var g=s.get(p);yje(g.oldSeries,g.newSeries,r)})}le(n.updatedSeries,function(p){p[o3]&&(p[o3]=!1)})}for(var o=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],d=a.oldData=[],h=0;h<o.length;h++){var f=o[h].getData();f.count()<vje&&(l.push(o[h]),u.push(o[h].get("dataGroupId")),d.push(f))}})}un([aWt]);un([JYt]);un([xWt,UWt,jWt,Rqt,Uqt,wXt,JXt,Pjt,aKt,uKt,_Kt,fZt,FZt,jZt,dQt,gQt,wQt,OQt,VQt,jQt,iJt,GJt]);un(ser);un(Oer);un(gqe);un(Yer);un(eXe);un(jer);un(atr);un(Ytr);un(urr);un(Kk);un(Arr);un(Irr);un($rr);un(qrr);un(Jrr);un(inr);un(gnr);un(Dnr);un(aje);un(ije);un(Jnr);un(uje);un(dje);un(aar);un(yar);un(Ear);un(Xar);un(_Yt);var g3=1;function zc(t){var e=60,r=62,n=45,a=47,i=33,s=39,o=34,l=63,u=`\r
557
- >/= `,d=0;return g3=1,_je((function h(){for(var f=[];t[d];){if(t.charCodeAt(d)==e){if(t.charCodeAt(d+1)===a)return d=t.indexOf(">",d),f;if(t.charCodeAt(d+1)===i){if(t.charCodeAt(d+2)==n){for(;t.charCodeAt(d)!==r||t.charCodeAt(d-1)!=n||t.charCodeAt(d-2)!=n||d==-1;)d=t.indexOf(">",d+1);d===-1&&(d=t.length)}else for(d+=2;t.charCodeAt(d)!==r;d++);d++;continue}if(t.charCodeAt(d+1)===l){d=t.indexOf(">",d),d++;continue}for(var p=++d;u.indexOf(t[d])===-1;d++);for(var g=t.slice(p,d),m=!1,_={};t.charCodeAt(d)!==r;d++){var y=t.charCodeAt(d);if(y>64&&y<91||y>96&&y<123){for(p=d;u.indexOf(t[d])===-1;d++);for(var v=t.slice(p,d),b=t.charCodeAt(d);b!==s&&b!==o;)d++,b=t.charCodeAt(d);var E=t[d],S=++d;d=t.indexOf(E,S);var T=t.slice(S,d);m||(_={},m=!0),_[v]=T}}var x=[];t.charCodeAt(d-1)!==a&&(d++,x=h()),f.push({children:x,tagName:g,attrs:_})}else{var w=d;(d=t.indexOf("<",d)-1)===-2&&(d=t.length);var C=t.slice(w,d+1);C.length>0&&f.push(C)}d++}return f})())}function _je(t){var e={};if(t===void 0)return{};if(t.length===1&&typeof t[0]=="string")return t[0];for(var r in t.forEach((function(n){if(e[n.tagName]||(e[n.tagName]=[]),typeof n=="object"){var a=_je(n.children);typeof a=="object"&&(n.attrs&&(a.attrs=n.attrs),a.attrs===void 0?a.attrs={order:g3}:a.attrs.order=g3),g3++,e[n.tagName].push(a)}})),e)e[r].length==1&&(e[r]=e[r][0]);return e}function bS(t){return Math.abs(t)>2e4?"emu":"point"}function Ra(t){return t/12700}function Mf(t){return t/20}function g6(t){return t/100}function M8(t){return t/6e4}function hv(t){return t/1e5}function BW(t){var e=Math.ceil(t/26),r=(t%26||26)-1+65;return String.fromCharCode(r).repeat(e)}function qi(t,e,r){var n={type:"solidFill"};if(t["a:srgbClr"])n.color="#"+t["a:srgbClr"].attrs.val;else if(t["a:schemeClr"]){var a=t["a:schemeClr"].attrs.val;r&&(a=r.getColorThemeName(a)),n.color=e.getColor(a)}else if(t["a:sysClr"])n.color="#"+t["a:sysClr"].attrs.lastClr;else if(t["a:prstClr"]){var i=Pe.get(t["a:prstClr"],["attrs","val"]);n.color=(function(f){var p,g=["white","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"],m=["ffffff","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"],_=g.indexOf(f);return _!=-1&&(p=m[_]),"#".concat(p||"000000")})(i)}var s=t["a:srgbClr"]||t["a:schemeClr"]||t["a:sysClr"],o=Pe.get(s,["a:alpha","attrs","val"],1e5);n.alpha=o/1e5;var l=Pe.get(s,["a:shade","attrs","val"]);l&&(n.shade=l/1e5);var u=Pe.get(s,["a:lumMod","attrs","val"]);u&&(n.lumMod=u/1e5);var d=Pe.get(s,["a:lumOff","attrs","val"]);d&&(n.lumOff=d/1e5);var h=Pe.get(s,["a:tint","attrs","val"]);return h&&(n.tint=h/1e5),n}function Zk(t,e,r){var n,a={type:"blipFill"},i=Pe.get(t,["a:blip","attrs","r:embed"]);if(i){var s=(n=r.rels[i])===null||n===void 0?void 0:n.target;s&&(a.base64=e.getMedia(s))}var o=Pe.get(t,["a:blip","a:alphaModFix","attrs","amt"]);o&&(a.alpha=o/1e5);var l=Pe.get(t,["a:stretch","a:fillRect","attrs"]);return l&&(a.fillRect={},l.b&&(a.fillRect.b=l.b/1e5),l.t&&(a.fillRect.t=l.t/1e5),l.r&&(a.fillRect.r=l.r/1e5),l.l&&(a.fillRect.l=l.l/1e5)),a}function Qk(t,e,r){var n={type:"gradFill",tileRect:{},lin:{},gsList:[]};n.flip=t.attrs.flip,n.path=Pe.get(t,["a:path","attrs","path"])||"linear",n.rotWithShape=t.attrs.rotWithShape==="1",Pe.get(t,["a:lin","attrs","ang"])&&(n.lin.ang=M8(t["a:lin"].attrs.ang)),Pe.get(t,["a:lin","attrs","scaled"])&&(n.lin.scaled=t["a:lin"].attrs.scaled==="1");var a=Pe.get(t,["a:gsLst","a:gs"])||[];return n.gsList=a.map((function(i){return{color:qi(i,e,r),pos:hv(i.attrs.pos)}})),Pe.get(t,["a:tileRect","attrs","l"])&&(n.tileRect.l=hv(t["a:tileRect"].attrs.l)),Pe.get(t,["a:tileRect","attrs","t"])&&(n.tileRect.t=hv(t["a:tileRect"].attrs.t)),Pe.get(t,["a:tileRect","attrs","r"])&&(n.tileRect.r=hv(t["a:tileRect"].attrs.r)),Pe.get(t,["a:tileRect","attrs","b"])&&(n.tileRect.b=hv(t["a:tileRect"].attrs.b)),n}function FW(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function UW(t){return t<.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}function lIe(t,e){var r=t[0],n=t[1],a=t[2],i=FW(r/255)*e,s=FW(n/255)*e,o=FW(a/255)*e;return[Math.round(255*UW(i)),Math.round(255*UW(s)),Math.round(255*UW(o))]}function $W(t,e,r){var n=t/255,a=e/255,i=r/255,s=Math.max(n,a,i),o=Math.min(n,a,i),l=s-o,u=0,d=(s+o)/2;return l===0?u=0:s===n?u=(a-i)/l%6:s===a?u=(i-n)/l+2:s===i&&(u=(n-a)/l+4),(u=Math.round(60*u))<0&&(u+=360),{h:u,s:l===0||d===0||d===1?0:l/(1-Math.abs(2*d-1)),l:d}}function GW(t,e,r){var n,a,i,s=(1-Math.abs(2*r-1))*e,o=s*(1-Math.abs(t/60%2-1)),l=r-s/2;return t<60?(n=s,a=o,i=0):t<120?(n=o,a=s,i=0):t<180?(n=0,a=s,i=o):t<240?(n=0,a=o,i=s):t<300?(n=o,a=0,i=s):(n=s,a=0,i=o),[n=Math.round(255*(n+l)),a=Math.round(255*(a+l)),i=Math.round(255*(i+l))]}function la(t,e){if(!t||t.type==="none")return"";if(t.type==="solidFill"&&/^#[\da-fA-F]{3,6}$/.test(t.color)){var r=parseInt(t.color.substr(1,2),16),n=parseInt(t.color.substr(3,2),16),a=parseInt(t.color.substr(5,2),16);if(t.shade){var i=lIe([r,n,a],t.shade);r=i[0],n=i[1],a=i[2]}if(t.lumMod){var s=(function(d,h,f,p){var g=$W(d,h,f),m=g.h,_=g.l*p;return _>=1&&(_=1),GW(m,g.s,_)})(r,n,a,t.lumMod);r=s[0],n=s[1],a=s[2]}if(t.lumOff&&(s=(function(d,h,f,p){var g=$W(d,h,f),m=g.h,_=p+g.l;return _>1&&(_=1),GW(m,g.s,_)})(r,n,a,t.lumOff),r=s[0],n=s[1],a=s[2]),t.tint||e?.light){var o=(function(d,h,f,p){var g=$W(d,h,f),m=g.h,_=g.l;return p>=1&&(p=1),GW(m,g.s,_*p+(1-p))})(r,n,a,t.tint||e?.light);r=o[0],n=o[1],a=o[2]}if(e?.dark){var l=lIe([r,n,a],e?.dark);r=l[0],n=l[1],a=l[2]}var u=t.alpha;return"rgba(".concat(r,",").concat(n,",").concat(a,",").concat(u,")")}}var Jk=(function(){function t(e,r,n){var a,i;this.uuid=K8t(),this.offset={x:0,y:0},this.extend={w:0,h:0},this.rotate=0,this.order=0,this.flipV=!1,this.flipH=!1,this.source=e,this.ctx=r,this.group=n;var s=Pe.get(e,["p:nvSpPr","p:nvPr"]);if(s){var o=Pe.get(s,"p:ph");o&&o.attrs&&(this.idx=o.attrs.idx,this.type=o.attrs.type),Pe.get(s,["attrs","userDrawn"])&&(this.userDrawn=Pe.get(s,["attrs","userDrawn"])==="1")}if(this.order=Pe.get(e,"attrs.order",0),this.source["p:spPr"]){if(u=this.getXfrm()){var l=this.group&&(!((a=this.ctx.pptx)===null||a===void 0)&&a.wps||bS(parseInt(u["a:off"].attrs.x))==="point")?Mf:Ra;this.offset={x:Math.round(l(parseInt(u["a:off"].attrs.x))),y:Math.round(l(parseInt(u["a:off"].attrs.y)))},this.extend={w:Math.round(l(parseInt(u["a:ext"].attrs.cx))),h:Math.round(l(parseInt(u["a:ext"].attrs.cy||"0")))},this.rotate=M8(parseInt(Pe.get(u,"attrs.rot",0))),this.flipV=Pe.get(u,"attrs.flipV")==="1",this.flipH=Pe.get(u,"attrs.flipH")==="1"}}else if(this.source["p:xfrm"]){var u=this.source["p:xfrm"];l=this.group&&(!((i=this.ctx.pptx)===null||i===void 0)&&i.wps||bS(parseInt(u["a:off"].attrs.x))==="point")?Mf:Ra,this.offset={x:Math.round(l(parseInt(u["a:off"].attrs.x))),y:Math.round(l(parseInt(u["a:off"].attrs.y)))},this.extend={w:Math.round(l(parseInt(u["a:ext"].attrs.cx))),h:Math.round(l(parseInt(u["a:ext"].attrs.cy)))}}if(n){var d=n.extend,h=n.chExtend,f=n.chOffset,p=h.w===0?0:d.w/h.w,g=h.h===0?0:d.h/h.h;this.extend.w=this.extend.w*p,this.extend.h=this.extend.h*g,this.offset.x=(this.offset.x-f.x)*p,this.offset.y=(this.offset.y-f.y)*g}}return Object.defineProperty(t.prototype,"theme",{get:function(){return(this.ctx.sliderMaster||this.ctx).theme},enumerable:!1,configurable:!0}),t.prototype.getColorThemeName=function(e){return this.ctx.getColorThemeName(e)},t.prototype.getXfrm=function(){var e=this.source["p:spPr"]["a:xfrm"];return e||(this.idx?e=this.ctx.getNodeInheritAttrsByIdx(this.idx,["p:spPr","a:xfrm"]):this.type&&(e=this.ctx.getNodeInheritAttrsByType(this.type,["p:spPr","a:xfrm"]))),e},t})(),jar=(function(){function t(e,r){this.props={},this.inheritProps={},this.source=e,this.node=r,this._getInheritBodyProps(),this._parseBodyProps(),this._parseLstStyle(),this._parseText()}return t.prototype._getInheritBodyProps=function(){var e,r=this.node.ctx,n=this.node.type,a=this.node.idx;if(n||a)switch(r.slideType){case"slideMaster":break;case"slideLayout":(e=n?r.slideMaster.getNodeByType(n):r.slideMaster.getNodeByIdx(a))&&(this.inheritProps=Pe.get(e,["textBody","props"])||{});break;case"slide":(e=n?r.slideLayout.slideMaster.getNodeByType(n):r.slideLayout.slideMaster.getNodeByIdx(a))&&Object.assign(this.inheritProps,Pe.get(e,["textBody","props"])||{}),(e=n?r.slideLayout.getNodeByType(n):r.slideLayout.getNodeByIdx(a))&&Object.assign(this.inheritProps,Pe.get(e,["textBody","props"])||{})}},t.prototype._parseBodyProps=function(){var e=this,r=Pe.get(this.source,["a:bodyPr","attrs"])||{};Object.keys(r).forEach((function(s){switch(s){case"anchor":e.props.anchor=r[s];break;case"rtlCol":e.props.rtlCol=r[s]==="1";break;case"lIns":case"rIns":case"tIns":case"bIns":e.props[s]=Ra(parseInt(r[s]));break;case"order":break;default:e.props[s]=r[s]}}));var n=Pe.get(this.source,["a:bodyPr","a:normAutofit","attrs"]);if(n){this.props.normAutofit={};var a=n.fontScale;a&&(this.props.normAutofit.fontScale=hv(parseInt(a)));var i=n.lnSpcReduction;i&&(this.props.normAutofit.lnSpcReduction=hv(parseInt(i)))}},t.prototype._parseLstStyle=function(){var e=this,r={},n=Pe.get(this.source,"a:lstStyle")||{};Object.keys(n).forEach((function(a){if(a.startsWith("a:")&&a.endsWith("pPr")){var i=a.substr(2,a.length-5);r[i]={props:e._formatPPr(n[a])};var s=Pe.get(n[a],["a:defRPr"]);r[i].defRPr=e._formatRPr(s)}})),this.lstStyle=r},t.prototype._parseText=function(){var e=this,r=Pe.get(this.source,["a:p"])||[];Array.isArray(r)||(r=[r]),this.paragraphs=r.map((function(n){return e._parseParagraph(n)}))},t.prototype._parseParagraph=function(e){var r=this,n={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},a=Pe.get(e,["a:pPr"])||{};n.props=this._formatPPr(a);var i=Pe.get(e,["a:endParaRPr"]);n.endParaRProps=this._formatRPr(i);var s=Pe.get(e,["a:r"])||[];Array.isArray(s)||(s=[s]);var o=Pe.get(e,["a:br"])||[];return Array.isArray(o)||(o=[o]),(s=s.concat(o.map((function(l){return qt({isBr:!0},l)})))).sort((function(l,u){return Pe.get(l,["attrs","order"])-Pe.get(u,["attrs","order"])})),n.rows=s.map((function(l){return r._parseRow(l)})),n.inheritProps=this._getInheritPProps(n.props.level),n.inheritRProps=this._getInheritRProps(n.props.level),n},t.prototype._getInheritPProps=function(e){e===void 0&&(e="0");var r,n={},a=this.node.ctx,i=this.node.type,s=this.node.idx;switch(a.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,Pe.get(a.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(n,Pe.get(a,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,Pe.get(a.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(n,Pe.get(a.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{}),(i||s)&&(r=i?a.slideMaster.getNodeByType(i):a.slideMaster.getNodeByIdx(s))&&Object.assign(n,Pe.get(r,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,Pe.get(a.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(n,Pe.get(a.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{}),(i||s)&&(["subTitle","ctrTitle","title"].includes(i)&&Object.assign(n,Pe.get(a.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(e?+e+1:1),"props"])||{}),(r=i?a.slideLayout.slideMaster.getNodeByType(i):a.slideLayout.slideMaster.getNodeByIdx(s))&&Object.assign(n,Pe.get(r,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{}),(r=i?a.slideLayout.getNodeByType(i):a.slideLayout.getNodeByIdx(s))&&Object.assign(n,Pe.get(r,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{}))}return n},t.prototype._getInheritRProps=function(e){e===void 0&&(e="0");var r,n={},a=this.node.ctx,i=this.node.type,s=this.node.idx;switch(a.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,Pe.get(a.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(n,Pe.get(a,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,Pe.get(a.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(n,Pe.get(a.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(i||s)&&(r=i?a.slideMaster.getNodeByType(i):a.slideMaster.getNodeByIdx(s))&&(n=Pe.get(r,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,Pe.get(a.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(n,Pe.get(a.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(i||s)&&(["subTitle","ctrTitle","title"].includes(i)&&Object.assign(n,Pe.get(a.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(r=i?a.slideLayout.slideMaster.getNodeByType(i):a.slideLayout.slideMaster.getNodeByIdx(s))&&Object.assign(n,Pe.get(r,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(r=i?a.slideLayout.getNodeByType(i):a.slideLayout.getNodeByIdx(s))&&Object.assign(n,Pe.get(r,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}))}var o=Pe.get(this.node.source,["p:style","a:fontRef"]);return Pe.get(o,"a:schemeClr")&&(n.color=qi(o,this.node.theme,this.node)),Pe.get(this.lstStyle,["lvl".concat(e?+e+1:1),"defRPr"])&&Object.assign(n,Pe.get(this.lstStyle,["lvl".concat(e?+e+1:1),"defRPr"])),n},t.prototype._formatPPr=function(e){var r={},n=Pe.get(e,"attrs")||{};return Object.keys(n).forEach((function(a){switch(a){case"algn":r.align=n[a];break;case"marL":r.marginLeft=Ra(parseInt(n[a]));break;case"indent":r.indent=Ra(parseInt(n[a]));break;case"lvl":r.level=n[a]}})),Pe.get(e,["a:lnSpc","a:spcPct","attrs","val"])&&(r.lineHeight=parseInt(e["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),Pe.get(e,["a:buAutoNum","attrs","type"])&&(r.buAutoNum=e["a:buAutoNum"].attrs.type),Pe.get(e,["a:buChar","attrs","char"])&&(r.buChar=e["a:buChar"].attrs.char),Pe.get(e,["a:spcBef","a:spcPts","attrs","val"])&&(r.spaceBefore=g6(parseInt(e["a:spcBef"]["a:spcPts"].attrs.val))),Pe.get(e,["a:spcAft","a:spcPts","attrs","val"])&&(r.spaceAfter=g6(parseInt(e["a:spcAft"]["a:spcPts"].attrs.val))),Pe.get(e,["a:defRPr"])&&(r.defRPr=this._formatRPr(Pe.get(e,["a:defRPr"]))),r},t.prototype._parseRow=function(e){if(e.isBr)return{isBr:!0};var r={props:{},text:""},n=Pe.get(e,["a:rPr"])||{};return r.props=this._formatRPr(n),r.text=Pe.get(e,"a:t")||"",r},t.prototype._formatRPr=function(e){var r={},n=Pe.get(e,"attrs")||{};Object.keys(n).forEach((function(s){switch(s){case"sz":r.size=parseInt(n[s])/100;break;case"b":r.bold=n[s]==="1";break;case"i":r.italic=n[s]==="1";break;case"u":r.underline=n[s];break;case"strike":r.strike=n[s];break;case"order":case"dirty":break;default:r[s]=n[s]}}));var a=Pe.get(e,"a:solidFill");a&&(r.color=qi(a,this.node.theme,this.node));var i=Pe.get(e,"a:highlight");return i&&(r.background=qi(i,this.node.theme,this.node)),r.typeface=Pe.get(e,["a:ea","attrs","typeface"]),r},t})();function ES(t,e,r){var n={};if(!Pe.get(t,"a:noFill")){Pe.get(t,"attrs.w")&&(n.width=Ra(parseInt(Pe.get(t,"attrs.w"))));var a=Pe.get(t,"a:solidFill");a&&(n.color=qi(a,e,r));var i=Pe.get(t,"a:prstDash");if(i&&(n.type=i.attrs.val),Pe.get(t,["a:miter"])&&(n.lineJoin="miter"),Pe.get(t,["a:bevel"])&&(n.lineJoin="bevel"),Pe.get(t,["a:round"])&&(n.lineJoin="round"),Pe.get(t,["a:miter","attrs","lim"])&&(n.miterLim=Ra(parseInt(Pe.get(t,["a:miter","attrs","lim"])))),Pe.get(t,["a:headEnd"])){var s=Pe.get(t,["a:headEnd","attrs"]);n.headEnd={type:s.type,len:s.len,w:s.w}}if(Pe.get(t,["a:tailEnd"])){var o=Pe.get(t,["a:tailEnd","attrs"]);n.tailEnd={type:o.type,len:o.len,w:o.w}}return n}}var mI=(function(t){function e(r,n,a,i){var s=t.call(this,r,a,i)||this;return s.border={},s.prstGeom={},s.isTextBox=!1,s.pptx=n,s._parseShape(),s._parIsTextBox(),s._parsePrstGeom(),s._parseBackground(),s._parseBorder(),s._parseTxt(),s}return Nk(e,t),e.prototype._parseShape=function(){if(this.shape=Pe.get(this.source,["p:spPr","a:prstGeom","attrs","prst"]),!this.shape&&Pe.get(this.source,["p:spPr","a:custGeom"])){this.shape="customGeom";var r=Pe.get(this.source,["p:spPr","a:custGeom","a:pathLst","a:path"]),n=[],a=[],i=function(o){switch(o){case"a:moveTo":case"a:cubicBezTo":case"a:lnTo":a=Array.isArray(r[o])?r[o]:[r[o]],n=n.concat(a.map((function(l){return{order:l.attrs.order,type:o.split(":")[1],points:(Array.isArray(l["a:pt"])?l["a:pt"]:[l["a:pt"]]).map((function(u){return[Ra(parseInt(Pe.get(u,["attrs","x"]))),Ra(parseInt(Pe.get(u,["attrs","y"])))]}))}})));break;case"a:close":a=Array.isArray(r[o])?r[o]:[r[o]],n=n.concat(a.map((function(l){return{order:l.attrs.order,type:o.split(":")[1]}})))}};for(var s in r)i(s);n.sort((function(o,l){return o.order-l.order})),this.prstGeom.pathList=n,Pe.get(r,["attrs","w"])&&(this.prstGeom.w=Ra(parseInt(Pe.get(r,["attrs","w"])))),Pe.get(r,["attrs","h"])&&(this.prstGeom.h=Ra(parseInt(Pe.get(r,["attrs","h"]))))}},e.prototype._parIsTextBox=function(){this.isTextBox=Pe.get(this.source,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"},e.prototype._parsePrstGeom=function(){var r=this,n=Pe.get(this.source,["p:spPr","a:prstGeom"]),a=Pe.get(n,["a:avLst","a:gd"]);a&&(Array.isArray(a)||(a=[a]),this.prstGeom.gd=a.map((function(i){var s=["pie","chord","arc"].includes(r.shape)||["blockArc"].includes(r.shape)&&["adj1","adj2"].includes(i.attrs.name)?M8(parseInt(i.attrs.fmla.split(" ")[1])):hv(parseInt(i.attrs.fmla.split(" ")[1]));return{name:i.attrs.name,fmla:s}})))},e.prototype._parseBackground=function(){if(!Pe.get(this.source,["p:spPr","a:noFill"]))if(Pe.get(this.source,["p:spPr","a:grpFill"])&&this.group)this.background=this.group.getBackground();else{var r=Pe.get(this.source,["p:spPr","a:solidFill"]);if(r)this.background=qi(r,this.theme,this);else{var n=Pe.get(this.source,["p:spPr","a:gradFill"]);if(n)this.background=Qk(n,this.theme,this);else{var a=Pe.get(this.source,["p:spPr","a:blipFill"]);if(a)this.background=Zk(a,this.pptx,this.ctx);else{var i=Pe.get(this.source,["p:style","a:fillRef"]);i&&(this.background=qi(i,this.theme,this))}}}}},e.prototype._parseBorder=function(){var r=Pe.get(this.source,["p:style","a:lnRef"]);if(r){var n=parseInt(r.attrs.idx),a=this.theme.getLineStyle(n);this.border=qt(qt({},a),this.border),this.border.color&&this.border.color.color||(this.border.color=qi(r,this.theme,this))}var i=Pe.get(this.source,["p:spPr","a:ln"]);i&&Object.assign(this.border,ES(i,this.theme,this)),this.border.color&&this.border.color.color&&!this.border.width&&(this.border.width=e.defaultBorderWidth)},e.prototype._parseTxt=function(){this.textBody=new jar(Pe.get(this.source,["p:txBody"]),this)},e.defaultBorderWidth=.75,e})(Jk),m6=(function(t){function e(r,n,a,i,s){var o,l,u=t.call(this,n,i,s)||this;u.userDrawn=!0,u.pptx=a,u.path=r;var d=Pe.get(u.source,["p:blipFill","a:srcRect"]);d&&(u.clip={},d.attrs.b&&(u.clip.b=parseInt(d.attrs.b)/1e5),d.attrs.t&&(u.clip.t=parseInt(d.attrs.t)/1e5),d.attrs.l&&(u.clip.l=parseInt(d.attrs.l)/1e5),d.attrs.r&&(u.clip.r=parseInt(d.attrs.r)/1e5));var h=Pe.get(n,["p:nvPicPr","p:nvPr","a:audioFile","attrs","r:link"]);if(h){var f=(o=u.ctx.rels[h])===null||o===void 0?void 0:o.target;u.audioFile=u.pptx.getMedia(f)}var p=Pe.get(n,["p:nvPicPr","p:nvPr","a:videoFile","attrs","r:link"]);if(p){var g=(l=u.ctx.rels[p])===null||l===void 0?void 0:l.target;u.videoFile=u.pptx.getMedia(g)}return u}return Nk(e,t),Object.defineProperty(e.prototype,"base64",{get:function(){return this.pptx.getMedia(this.path)},enumerable:!1,configurable:!0}),e})(Jk),bje=(function(t){function e(r,n,a,i){var s=t.call(this,r,a,i)||this;return s.userDrawn=!0,s.props={tableStyleId:""},s.tableGrid={gridCol:[]},s.tr=[],s.tableStyles={},s.pptx=n,s._parseTableProps(),s._parseTableGrid(),s._parseTr(),s._parseInheritStyles(),s}return Nk(e,t),Object.defineProperty(e.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),e.prototype._parseTableProps=function(){var r=Pe.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblPr"]);this.props.tableStyleId=Pe.get(r,"a:tableStyleId"),this.tableStyles=Pe.get(this.slideMaster.tableStyles,this.props.tableStyleId)||{},Pe.get(r,["attrs","bandCol"])==="1"&&(this.props.bandCol=!0),Pe.get(r,["attrs","bandRow"])==="1"&&(this.props.bandRow=!0),Pe.get(r,["attrs","firstCol"])==="1"&&(this.props.firstCol=!0),Pe.get(r,["attrs","firstRow"])==="1"&&(this.props.firstRow=!0),Pe.get(r,["attrs","lastCol"])==="1"&&(this.props.lastCol=!0),Pe.get(r,["attrs","lastRow"])==="1"&&(this.props.lastRow=!0)},e.prototype._parseTableGrid=function(){var r=Pe.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);if(r)for(var n=0;n<r.length;n++){var a=Pe.get(r[n],["attrs","w"]);this.tableGrid.gridCol.push({width:Ra(parseInt(a))})}},e.prototype._parseTr=function(){var r=[],n=Pe.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tr"]);Array.isArray(n)||(n=[n]);for(var a=0;a<n.length;a++){var i={props:{},td:[]},s=n[a];i.props.height=Ra(parseInt(Pe.get(s,["attrs","h"])));var o=Pe.get(s,["a:tc"]);Array.isArray(o)||(o=[o]);for(var l=0;l<o.length;l++)i.td.push(this._parseTd(o[l]));r.push(i)}this.tr=r},e.prototype._parseTd=function(r){var n,a,i,s,o=this,l={props:{border:{}},paragraphs:[]},u=Pe.get(r,["a:tcPr","attrs"]);u?.marB&&(l.props.marB=Ra(parseInt(u?.marB))),u?.marT&&(l.props.marT=Ra(parseInt(u?.marT))),u?.marL&&(l.props.marL=Ra(parseInt(u?.marL))),u?.marR&&(l.props.marR=Ra(parseInt(u?.marR))),u?.anchor&&(l.props.anchor=u?.anchor);var d=Pe.get(r,["a:tcPr"]);Pe.get(d,["a:lnR"])&&(l.props.border.right=ES(Pe.get(d,["a:lnR"]),this.theme,this.ctx)),Pe.get(d,["a:lnL"])&&(l.props.border.left=ES(Pe.get(d,["a:lnL"]),this.theme,this.ctx)),Pe.get(d,["a:lnT"])&&(l.props.border.top=ES(Pe.get(d,["a:lnT"]),this.theme,this.ctx)),Pe.get(d,["a:lnB"])&&(l.props.border.bottom=ES(Pe.get(d,["a:lnB"]),this.theme,this.ctx)),!((n=r?.attrs)===null||n===void 0)&&n.rowSpan&&(l.props.rowSpan=parseInt(r.attrs.rowSpan)),!((a=r?.attrs)===null||a===void 0)&&a.gridSpan&&(l.props.gridSpan=parseInt(r.attrs.gridSpan)),!((i=r?.attrs)===null||i===void 0)&&i.vMerge&&(l.props.vMerge=r.attrs.vMerge==="1"),!((s=r?.attrs)===null||s===void 0)&&s.hMerge&&(l.props.hMerge=r.attrs.hMerge==="1");var h=Pe.get(r,["a:tcPr","a:solidFill"]);h&&(l.props.background=qi(h,this.theme,this.ctx));var f=Pe.get(r,["a:txBody"]),p=Pe.get(f,["a:p"]);return Array.isArray(p)||(p=[p]),l.paragraphs=p.map((function(g){return o._parseParagraph(g)})),l},e.prototype._parseParagraph=function(r){var n=this,a={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},i=Pe.get(r,["a:pPr"])||{};a.props=this._formatPPr(i);var s=Pe.get(r,["a:endParaRPr"]);a.endParaRProps=this._formatRPr(s);var o=Pe.get(r,["a:r"])||[];Array.isArray(o)||(o=[o]);var l=Pe.get(r,["a:br"])||[];return Array.isArray(l)||(l=[l]),(o=o.concat(l.map((function(u){return qt({isBr:!0},u)})))).sort((function(u,d){return Pe.get(u,["attrs","order"])-Pe.get(d,["attrs","order"])})),a.rows=o.map((function(u){return n._parseRow(u)})),a},e.prototype._parseRow=function(r){if(r.isBr)return{isBr:!0};var n={props:{},text:""},a=Pe.get(r,["a:rPr"])||{};return n.props=this._formatRPr(a),n.text=Pe.get(r,"a:t")||"",n},e.prototype._formatPPr=function(r){var n={},a=Pe.get(r,"attrs")||{};return Object.keys(a).forEach((function(i){i==="algn"&&(n.align=a[i])})),Pe.get(r,["a:lnSpc","a:spcPct","attrs","val"])&&(n.lineHeight=parseInt(r["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),Pe.get(r,["a:buAutoNum","attrs","type"])&&(n.buAutoNum=r["a:buAutoNum"].attrs.type),Pe.get(r,["a:buChar","attrs","char"])&&(n.buChar=r["a:buChar"].attrs.char),Pe.get(r,["a:spcBef","a:spcPts","attrs","val"])&&(n.spaceBefore=g6(parseInt(r["a:spcBef"]["a:spcPts"].attrs.val))),Pe.get(r,["a:spcAft","a:spcPts","attrs","val"])&&(n.spaceAfter=g6(parseInt(r["a:spcAft"]["a:spcPts"].attrs.val))),n},e.prototype._formatRPr=function(r){var n={},a=Pe.get(r,"attrs")||{};Object.keys(a).forEach((function(o){switch(o){case"sz":n.size=parseInt(a[o])/100;break;case"b":n.bold=a[o]==="1";break;case"i":n.italic=a[o]==="1";break;case"u":n.underline=a[o];break;case"strike":n.strike=a[o];break;case"order":case"dirty":break;default:n[o]=a[o]}}));var i=Pe.get(r,"a:solidFill");i&&(n.color=qi(i,this.theme,this.ctx));var s=Pe.get(r,"a:highlight");return s&&(n.background=qi(s,this.theme,this.ctx)),n.typeface=Pe.get(r,["a:ea","attrs","typeface"]),n},e.prototype._isLastCol=function(r,n){var a,i;if(n===r.length-1)return!0;for(var s=n+1;s<r.length;s++)if(!(!((a=r[s].props)===null||a===void 0)&&a.hMerge)&&!(!((i=r[s].props)===null||i===void 0)&&i.vMerge))return!1;return!0},e.prototype._isBandRow=function(r){var n;return!((n=this.props)===null||n===void 0)&&n.firstRow?r%2==1:r%2==0},e.prototype._isBandCol=function(r){var n;return!((n=this.props)===null||n===void 0)&&n.firstCol?r%2==1:r%2==0},e.prototype._parseInheritStyles=function(){var r,n,a,i,s,o,l,u,d=this,h=(n=(r=this.tableStyles)===null||r===void 0?void 0:r.wholeTbl)===null||n===void 0?void 0:n.tcStyle,f=(i=(a=this.tableStyles)===null||a===void 0?void 0:a.wholeTbl)===null||i===void 0?void 0:i.tcTxStyle,p=(o=(s=this.slideMaster.defaultTextStyle)===null||s===void 0?void 0:s.lvl1)===null||o===void 0?void 0:o.props,g=(u=(l=this.slideMaster.defaultTextStyle)===null||l===void 0?void 0:l.lvl1)===null||u===void 0?void 0:u.defRPr;this.tr.forEach((function(m,_){m.td.forEach((function(y,v){var b,E,S,T,x,w,C,R,N,k,L,A,D,M,B,F,U,V,$,z,q,j,X,ie,ne,ue,J,re,Z,ee,se,G,ce,Q,oe,Y,be,he,De,we,Ge,Oe,Fe,Le,$e,qe,Ae,Ke,de,Ee,W,ye,ve,ke,Re,pe,_e=qt(qt({},p),h),xe=qt(qt({},g),f);d.props.firstRow&&_===0?(_e=qt(qt(qt({},_e),(E=(b=d.tableStyles)===null||b===void 0?void 0:b.firstRow)===null||E===void 0?void 0:E.tcStyle),{border:qt(qt({},_e?.border),(x=(T=(S=d.tableStyles)===null||S===void 0?void 0:S.firstRow)===null||T===void 0?void 0:T.tcStyle)===null||x===void 0?void 0:x.border)}),xe=qt(qt({},xe),(C=(w=d.tableStyles)===null||w===void 0?void 0:w.firstRow)===null||C===void 0?void 0:C.tcTxStyle)):d.props.lastRow&&_===d.tr.length-1?(_e=qt(qt(qt({},_e),(N=(R=d.tableStyles)===null||R===void 0?void 0:R.lastRow)===null||N===void 0?void 0:N.tcStyle),{border:qt(qt({},_e?.border),(A=(L=(k=d.tableStyles)===null||k===void 0?void 0:k.lastRow)===null||L===void 0?void 0:L.tcStyle)===null||A===void 0?void 0:A.border)}),xe=qt(qt({},xe),(M=(D=d.tableStyles)===null||D===void 0?void 0:D.lastRow)===null||M===void 0?void 0:M.tcTxStyle)):d.props.firstCol&&v===0?(_e=qt(qt(qt({},_e),(F=(B=d.tableStyles)===null||B===void 0?void 0:B.firstCol)===null||F===void 0?void 0:F.tcStyle),{border:qt(qt({},_e?.border),($=(V=(U=d.tableStyles)===null||U===void 0?void 0:U.firstCol)===null||V===void 0?void 0:V.tcStyle)===null||$===void 0?void 0:$.border)}),xe=qt(qt({},xe),(q=(z=d.tableStyles)===null||z===void 0?void 0:z.firstCol)===null||q===void 0?void 0:q.tcTxStyle)):d.props.lastCol&&d._isLastCol(m.td,v)?(_e=qt(qt(qt({},_e),(X=(j=d.tableStyles)===null||j===void 0?void 0:j.lastCol)===null||X===void 0?void 0:X.tcStyle),{border:qt(qt({},_e?.border),(ue=(ne=(ie=d.tableStyles)===null||ie===void 0?void 0:ie.lastCol)===null||ne===void 0?void 0:ne.tcStyle)===null||ue===void 0?void 0:ue.border)}),xe=qt(qt({},xe),(re=(J=d.tableStyles)===null||J===void 0?void 0:J.lastCol)===null||re===void 0?void 0:re.tcTxStyle)):(d.props.bandRow&&(d._isBandRow(_)?(_e=qt(qt(qt({},_e),(ee=(Z=d.tableStyles)===null||Z===void 0?void 0:Z.band1H)===null||ee===void 0?void 0:ee.tcStyle),{border:qt(qt({},_e?.border),(ce=(G=(se=d.tableStyles)===null||se===void 0?void 0:se.band1H)===null||G===void 0?void 0:G.tcStyle)===null||ce===void 0?void 0:ce.border)}),xe=qt(qt({},xe),(oe=(Q=d.tableStyles)===null||Q===void 0?void 0:Q.band1H)===null||oe===void 0?void 0:oe.tcTxStyle)):(_e=qt(qt(qt({},_e),(be=(Y=d.tableStyles)===null||Y===void 0?void 0:Y.band2V)===null||be===void 0?void 0:be.tcStyle),{border:qt(qt({},_e?.border),(we=(De=(he=d.tableStyles)===null||he===void 0?void 0:he.band2V)===null||De===void 0?void 0:De.tcStyle)===null||we===void 0?void 0:we.border)}),xe=qt(qt({},xe),(Oe=(Ge=d.tableStyles)===null||Ge===void 0?void 0:Ge.band2V)===null||Oe===void 0?void 0:Oe.tcTxStyle))),d.props.bandCol&&(d._isBandCol(v)?(_e=qt(qt(qt({},_e),(Le=(Fe=d.tableStyles)===null||Fe===void 0?void 0:Fe.band1V)===null||Le===void 0?void 0:Le.tcStyle),{border:qt(qt({},_e?.border),(Ae=(qe=($e=d.tableStyles)===null||$e===void 0?void 0:$e.band1V)===null||qe===void 0?void 0:qe.tcStyle)===null||Ae===void 0?void 0:Ae.border)}),xe=qt(qt({},xe),(de=(Ke=d.tableStyles)===null||Ke===void 0?void 0:Ke.band1V)===null||de===void 0?void 0:de.tcTxStyle)):(_e=qt(qt(qt({},_e),(W=(Ee=d.tableStyles)===null||Ee===void 0?void 0:Ee.band2H)===null||W===void 0?void 0:W.tcStyle),{border:qt(qt({},_e?.border),(ke=(ve=(ye=d.tableStyles)===null||ye===void 0?void 0:ye.band2H)===null||ve===void 0?void 0:ve.tcStyle)===null||ke===void 0?void 0:ke.border)}),xe=qt(qt({},xe),(pe=(Re=d.tableStyles)===null||Re===void 0?void 0:Re.band2H)===null||pe===void 0?void 0:pe.tcTxStyle)))),y.inheritTcStyle=_e,y.inheritTcTxStyle=xe}))}))},e})(Jk),Fde=(function(){function t(e,r,n,a){if(this.offset={x:0,y:0},this.chOffset={x:0,y:0},this.extend={w:0,h:0},this.chExtend={w:0,h:0},this.rotate=0,this.nodes=[],this.flipV=!1,this.flipH=!1,this.userDrawn=!0,this.order=Pe.get(e,["attrs","order"]),this.pptx=r,this.ctx=n,this.source=e,this.group=a,this.source["p:grpSpPr"]){var i=Pe.get(this.source,["p:grpSpPr","a:xfrm"]);if(i&&(this.offset={x:Math.round(this.group&&this.pptx.wps?Mf(parseInt(i["a:off"].attrs.x)):Ra(parseInt(i["a:off"].attrs.x))),y:Math.round(this.group&&this.pptx.wps?Mf(parseInt(i["a:off"].attrs.y)):Ra(parseInt(i["a:off"].attrs.y)))},this.chOffset={x:Math.round(bS(i["a:chOff"].attrs.x)==="point"||this.pptx.wps?Mf(parseInt(i["a:chOff"].attrs.x)):Ra(parseInt(i["a:chOff"].attrs.x))),y:Math.round(bS(i["a:chOff"].attrs.y)==="point"||this.pptx.wps?Mf(parseInt(i["a:chOff"].attrs.y)):Ra(parseInt(i["a:chOff"].attrs.y)))},this.chExtend={w:Math.round(bS(i["a:chExt"].attrs.cx)==="point"||this.pptx.wps?Mf(parseInt(i["a:chExt"].attrs.cx)):Ra(parseInt(i["a:chExt"].attrs.cx))),h:Math.round(bS(i["a:chExt"].attrs.cy)==="point"||this.pptx.wps?Mf(parseInt(i["a:chExt"].attrs.cy)):Ra(parseInt(i["a:chExt"].attrs.cy)))},this.extend={w:Math.round(this.group&&this.pptx.wps?Mf(parseInt(i["a:ext"].attrs.cx)):Ra(parseInt(i["a:ext"].attrs.cx))),h:Math.round(this.group&&this.pptx.wps?Mf(parseInt(i["a:ext"].attrs.cy)):Ra(parseInt(i["a:ext"].attrs.cy)))},this.rotate=M8(parseInt(Pe.get(i,"attrs.rot",0))),this.flipV=Pe.get(i,"attrs.flipV")==="1",this.flipH=Pe.get(i,"attrs.flipH")==="1"),a){var s=a.extend,o=a.chExtend,l=a.chOffset,u=s.w/o.w,d=s.h/o.h;this.extend.w=this.extend.w*u,this.extend.h=this.extend.h*d,this.offset.x=(this.offset.x-l.x)*u,this.offset.y=(this.offset.y-l.y)*d}}this._parseBackground(),this._parseNodes()}return t.prototype.getBackground=function(){return this.background&&this.background.type!=="none"?this.background:this.group?this.group.getBackground():void 0},t.prototype._parseBackground=function(){var e=Pe.get(this.source,["p:grpSpPr"]);e&&e["a:solidFill"]?this.background=qi(e["a:solidFill"],this.ctx.theme,this.ctx):e&&e["a:gradFill"]?this.background=Qk(e["a:gradFill"],this.ctx.theme,this.ctx):e&&e["a:blipFill"]&&(this.background=Zk(e["a:blipFill"],this.pptx,this.ctx))},t.prototype._parseNodes=function(){var e=this.source;eO(this.nodes,e,this.pptx,this.ctx,this)},t})(),Eje=(function(t){function e(r,n,a,i){var s=t.call(this,r,a,i)||this;return s.nodes=[],s.pptx=n,s}return Nk(e,t),e.prototype.parseNode=function(){return to(this,void 0,void 0,(function(){var r,n,a,i,s,o,l,u,d;return ro(this,(function(h){switch(h.label){case 0:return h.trys.push([0,3,,4]),(r=Pe.get(this.source,["a:graphic","a:graphicData","dgm:relIds","attrs","r:dm"]))&&this.ctx.rels[r]?(n=this.ctx.rels[r].target,i=zc,[4,this.pptx.getXmlByPath(n)]):[2];case 1:return a=i.apply(void 0,[h.sent()]),(s=Pe.get(a,["dgm:dataModel","dgm:extLst","a:ext","dsp:dataModelExt","attrs","relId"]))&&this.ctx.rels[s]?(o=this.ctx.rels[s].target,[4,this.pptx.getXmlByPath(o)]):[2];case 2:return l=(l=h.sent()).replace(/dsp:/g,"p:"),u=zc(l),d=Pe.get(u,["p:drawing","p:spTree"]),eO(this.nodes,d,this.pptx,this.ctx),[3,4];case 3:return h.sent(),[3,4];case 4:return[2]}}))}))},e})(Jk),Sje=(function(t){function e(r,n,a,i){var s=t.call(this,r,a,i)||this;return s.options={title:{},tooltip:{},legend:{},series:[],color:[]},s.userDrawn=!0,s.pptx=n,s}return Nk(e,t),Object.defineProperty(e.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),e.prototype.parseNode=function(){return to(this,void 0,void 0,(function(){var r,n,a,i,s,o;return ro(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),(r=Pe.get(this.source,["a:graphic","a:graphicData","c:chart","attrs","r:id"]))&&this.ctx.rels[r]?(n=this.ctx.rels[r].target,i=zc,[4,this.pptx.getXmlByPath(n)]):[2];case 1:return a=i.apply(void 0,[l.sent()]),s=Pe.get(a,["c:chartSpace","c:chart"]),o=Pe.get(s,["c:plotArea"]),Pe.get(o,["c:lineChart"])?this.parseLine(Pe.get(o,["c:lineChart"]),s):Pe.get(o,["c:line3DChart"])?this.parseLine(Pe.get(o,["c:line3DChart"]),s):Pe.get(o,["c:areaChart"])?this.parseAreaLine(Pe.get(o,["c:areaChart"]),s):Pe.get(o,["c:area3DChart"])?this.parseAreaLine(Pe.get(o,["c:area3DChart"]),s):Pe.get(o,["c:barChart"])?this.parseBar(Pe.get(o,["c:barChart"]),s):Pe.get(o,["c:bar3DChart"])?this.parseBar(Pe.get(o,["c:bar3DChart"]),s):Pe.get(o,["c:pieChart"])?this.parsePie(Pe.get(o,["c:pieChart"])):Pe.get(o,["c:pie3DChart"])?this.parsePie(Pe.get(o,["c:pie3DChart"])):Pe.get(o,["c:doughnutChart"])&&this.parseDoughnutChart(Pe.get(o,["c:doughnutChart"])),[3,3];case 2:return l.sent(),[3,3];case 3:return[2]}}))}))},e.prototype.parseAreaLine=function(r,n){this.parseLine(r,n),this.options.series=this.options.series.map((function(a){return a.areaStyle={},a}))},e.prototype.parseLine=function(r,n){var a=Pe.get(r,["c:ser"]);Array.isArray(a)||(a=[a]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(Pe.get(n,["c:title"]))},this.options.xAxis={type:"category",data:this.getCategory(a[0])},this.options.yAxis={type:"value"},this.options.series=this.parseLineSeries(a,r),this.options.color=this.parseLineColors(a),this.options.legend={bottom:"bottom",left:"center"},Pe.get(r,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(i){return(100*i).toFixed(2)+"%"})},e.prototype.parseBar=function(r,n){var a=Pe.get(r,["c:ser"]);Array.isArray(a)||(a=[a]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(Pe.get(n,["c:title"]))},Pe.get(r,["c:barDir","attrs","val"])==="bar"?(this.options.yAxis={type:"category",data:this.getCategory(a[0])},this.options.xAxis={type:"value"}):(this.options.xAxis={type:"category",data:this.getCategory(a[0])},this.options.yAxis={type:"value"}),this.options.series=this.parseBarSeries(a,r),this.options.color=this.parseBarColors(a),this.options.legend={bottom:"bottom",left:"center"},Pe.get(r,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(i){return(100*i).toFixed(2)+"%"})},e.prototype.parsePie=function(r){var n=Pe.get(r,["c:ser"]);this.options.title={top:"top",left:"center",text:this.parsePieTitle(n)},this.options.color=this.parsePieColors(n),this.options.series=[this.parsePieSeries(n,r)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parseDoughnutChart=function(r){var n=Pe.get(r,["c:ser"]);this.options.title.text=this.parsePieTitle(n),this.options.color=this.parsePieColors(n),this.options.series=[this.parsePieSeries(n,r)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parsePieTitle=function(r){return Pe.get(r,["c:tx","c:strRef","c:strCache","c:pt","c:v"])},e.prototype.parseChartTitle=function(r){var n=Pe.get(r,["c:tx","c:rich","a:p"]);return Array.isArray(n)||(n=[n]),n.map((function(a){var i=Pe.get(a,["a:r"]);return Array.isArray(i)||(i=[i]),i.map((function(s){return Pe.get(s,["a:t"])||""})).join("")})).join("")||"图表标题"},e.prototype.parseBarColors=function(r){var n=this;return r.map((function(a){return la(qi(Pe.get(a,["c:spPr","a:solidFill"]),n.theme,n.ctx))}))},e.prototype.parseLineColors=function(r){var n=this;return r.map((function(a){return la(qi(Pe.get(a,["c:spPr","a:ln","a:solidFill"])||Pe.get(a,["c:spPr","a:solidFill"]),n.theme,n.ctx))}))},e.prototype.parsePieColors=function(r){var n=this,a=[],i=Pe.get(r,["c:dPt"]);return Array.isArray(i)||(i=[i]),i.forEach((function(s){a.push(la(qi(Pe.get(s,["c:spPr","a:solidFill"]),n.theme,n.ctx)))})),a},e.prototype.parsePieSeries=function(r,n){var a={type:"pie",radius:"80%",startAngle:90,data:[]};Pe.get(n,["c:holeSize","attrs","val"])&&(a.radius=["".concat(.8*Pe.get(n,["c:holeSize","attrs","val"]),"%"),"80%"]);var i=Pe.get(n,["c:firstSliceAng","attrs","val"]);i&&(a.startAngle=90-i);for(var s=this.getCategory(r),o=this.getVal(r),l=0;l<s.length;l++)a.data.push({name:s[l],value:o[l]});return a},e.prototype.parseBarSeries=function(r,n){var a,i=this,s=Pe.get(n,["c:grouping","attrs","val"]);s==="stacked"?a="Ad":s==="percentStacked"&&(a="total");var o=r.map((function(u){return{type:"bar",name:Pe.get(u,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:i.getVal(u),stack:a}}));if(s==="percentStacked"){var l=[];o.forEach((function(u,d){l=d===0?FR([],u.data,!0):l.map((function(h,f){return h+u.data[f]}))})),o.forEach((function(u){u.data=u.data.map((function(d,h){return l[h]<=0?0:d/l[h]}))}))}return o},e.prototype.parseLineSeries=function(r,n){var a,i=this,s=Pe.get(n,["c:grouping","attrs","val"]);s==="stacked"?a="Ad":s==="percentStacked"&&(a="total");var o=r.map((function(u){return{type:"line",name:Pe.get(u,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:i.getVal(u),stack:a}}));if(a==="total"){var l=[];o.forEach((function(u,d){l=d===0?FR([],u.data,!0):l.map((function(h,f){return h+u.data[f]}))})),o.forEach((function(u){u.data=u.data.map((function(d,h){return l[h]<=0?0:d/l[h]}))}))}return o},e.prototype.getCategory=function(r){if(Pe.get(r,["c:cat","c:strRef"])){var n=Pe.get(r,["c:cat","c:strRef","c:strCache","c:pt"]);return Array.isArray(n)||(n=[n]),n.map((function(a){return Pe.get(a,["c:v"])}))}if(Pe.get(r,["c:cat","c:numRef"]))return n=Pe.get(r,["c:cat","c:numRef","c:numCache","c:pt"]),Array.isArray(n)||(n=[n]),n.map((function(a){return Pe.get(a,["c:v"])}))},e.prototype.getVal=function(r){var n=Pe.get(r,["c:val","c:numRef","c:numCache","c:pt"]);return Array.isArray(n)||(n=[n]),n.map((function(a){return+Pe.get(a,["c:v"])}))},e})(Jk);function cIe(t){var e={},r=Pe.get(t,"attrs")||{};return Object.keys(r).forEach((function(n){switch(n){case"algn":e.align=r[n];break;case"marL":e.marginLeft=Ra(parseInt(r[n]));break;case"indent":e.indent=Ra(parseInt(r[n]));break;case"lvl":e.level=r[n]}})),Pe.get(t,["a:lnSpc","a:spcPct","attrs","val"])&&(e.lineHeight=parseInt(t["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),e}function uIe(t,e,r){var n={},a=Pe.get(t,"attrs")||{};Object.keys(a).forEach((function(s){switch(s){case"sz":n.size=parseInt(a[s])/100;break;case"b":n.bold=a[s]==="1";break;case"i":n.italic=a[s]==="1";break;case"u":n.underline=a[s];break;case"strike":n.strike=a[s];break;case"order":case"dirty":break;default:n[s]=a[s]}}));var i=Pe.get(t,"a:solidFill");return i&&(n.color=qi(i,e,r)),n}function eO(t,e,r,n,a){return to(this,void 0,void 0,(function(){var i,s,o,l,u,d,h,f,p,g,m,_,y,v,b,E,S,T,x,w,C;return ro(this,(function(R){switch(R.label){case 0:for(o in s=[],i=e)s.push(o);l=0,R.label=1;case 1:if(!(l<s.length))return[3,17];if(!((o=s[l])in i))return[3,16];switch(u=o){case"p:sp":return[3,2];case"p:pic":return[3,3];case"p:cxnSp":return[3,4];case"p:graphicFrame":return[3,5];case"p:grpSp":return[3,14]}return[3,15];case 2:for(d=Array.isArray(e[u])?e[u]:[e[u]],w=0;w<d.length;w++)y=d[w],t.push(new mI(y,r,n,a));return[3,16];case 3:for(h=Array.isArray(e[u])?e[u]:[e[u]],w=0;w<h.length;w++)f=h[w],p=f["p:blipFill"]["a:blip"].attrs["r:embed"],g=n.rels[p].target,m=new m6(g,f,r,n,a),t.push(m);return[3,16];case 4:for(_=Array.isArray(e[u])?e[u]:[e[u]],w=0;w<_.length;w++)y=_[w],t.push(new mI(y,r,n,a));return[3,16];case 5:v=Array.isArray(e[u])?e[u]:[e[u]],w=0,R.label=6;case 6:if(!(w<v.length))return[3,13];switch(b=v[w],E=Pe.get(b,["a:graphic","a:graphicData","attrs","uri"]),E){case"http://schemas.openxmlformats.org/drawingml/2006/table":return[3,7];case"http://schemas.openxmlformats.org/drawingml/2006/diagram":return[3,8];case"http://schemas.openxmlformats.org/drawingml/2006/chart":return[3,10]}return[3,12];case 7:return t.push(new bje(b,r,n,a)),[3,12];case 8:return[4,(S=new Eje(b,r,n,a)).parseNode()];case 9:return R.sent(),t.push(S),[3,12];case 10:return[4,(T=new Sje(b,r,n,a)).parseNode()];case 11:return R.sent(),t.push(T),[3,12];case 12:return w++,[3,6];case 13:return[3,16];case 14:for(x=Array.isArray(e[u])?e[u]:[e[u]],w=0;w<x.length;w++)C=x[w],t.push(new Fde(C,r,n,a));return[3,16];case 15:return[3,16];case 16:return l++,[3,1];case 17:return[2]}}))}))}var Kar=(function(){function t(e,r,n){this.slideType="slide",this.rels={},this.background={type:"none"},this.nodes=[],this.name=e,this.source=r,this.pptx=n}return Object.defineProperty(t.prototype,"index",{get:function(){if(!this.name)return 0;var e=this.name.match(/(\d+)/);return e?parseInt(e[0]):1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"slideMaster",{get:function(){return this.slideLayout&&this.slideLayout.slideMaster},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_relsPath",{get:function(){return this.name.replace("slides/slide","slides/_rels/slide")+".rels"},enumerable:!1,configurable:!0}),t.prototype.load=function(){return to(this,void 0,void 0,(function(){return ro(this,(function(e){switch(e.label){case 0:return[4,this._loadRels()];case 1:return e.sent(),this._loadBackground(),[4,this._loadNodes()];case 2:return e.sent(),[2]}}))}))},t.prototype._loadRels=function(){return to(this,void 0,void 0,(function(){var e,r,n,a=this;return ro(this,(function(i){switch(i.label){case 0:return r=zc,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=r.apply(void 0,[i.sent()]),n=Pe.get(e,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach((function(s){switch(Pe.get(s,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout":var o=s.attrs.Target.replace("../","ppt/");o.startsWith("/ppt")&&(o=o.substr(1)),a.slideLayout=a.pptx.getSlideLayout(o);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData":case"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart":var l=s.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),a.rels[s.attrs.Id]={type:s.attrs.Type.split("/").pop(),target:l}}})),[2]}}))}))},t.prototype._loadBackground=function(){var e=Pe.get(this.source,["p:sld","p:cSld","p:bg","p:bgPr"]);e&&e["a:solidFill"]?this.background=qi(e["a:solidFill"],this.theme,this):e&&e["a:gradFill"]?this.background=Qk(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]&&(this.background=Zk(e["a:blipFill"],this.pptx,this))},t.prototype._loadNodes=function(){return to(this,void 0,void 0,(function(){var e;return ro(this,(function(r){switch(r.label){case 0:return e=Pe.get(this.source,["p:sld","p:cSld","p:spTree"]),[4,eO(this.nodes,e,this.pptx,this)];case 1:return r.sent(),[2]}}))}))},t.prototype.getColorThemeName=function(e){return this.slideLayout.getColorThemeName(e)},t.prototype.getNodeInheritAttrsByType=function(e,r){var n=this.slideLayout.getNodeByType(e),a=Pe.get(n.source,r);return a||this.slideLayout.getNodeInheritAttrsByType(e,r)},t.prototype.getNodeInheritAttrsByIdx=function(e,r){var n=this.slideLayout.getNodeByIdx(e),a=Pe.get(n.source,r);return a||this.slideLayout.getNodeInheritAttrsByIdx(e,r)},t})(),Zar=(function(){function t(e,r,n){this.slideType="slideLayout",this.rels={},this.background={type:"none"},this.nodes=[],this.name=e,this.source=r,this.pptx=n}return Object.defineProperty(t.prototype,"_relsPath",{get:function(){return this.name.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),t.prototype.load=function(){return to(this,void 0,void 0,(function(){return ro(this,(function(e){switch(e.label){case 0:return[4,this._loadRels()];case 1:return e.sent(),[4,this._loadBackground()];case 2:return e.sent(),[4,this._loadNodes()];case 3:return e.sent(),[2]}}))}))},t.prototype._loadRels=function(){return to(this,void 0,void 0,(function(){var e,r,n,a=this;return ro(this,(function(i){switch(i.label){case 0:return r=zc,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=r.apply(void 0,[i.sent()]),n=Pe.get(e,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach((function(s){switch(Pe.get(s,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster":var o=s.attrs.Target.replace("../","ppt/");o.startsWith("/ppt")&&(o=o.substr(1)),a.slideMaster=a.pptx.getSlideMaster(o);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=s.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),a.rels[s.attrs.Id]={type:s.attrs.Type.split("/").pop(),target:l}}})),[2]}}))}))},t.prototype._loadBackground=function(){return to(this,void 0,void 0,(function(){var e;return ro(this,(function(r){return(e=Pe.get(this.source,["p:sldLayout","p:cSld","p:bg","p:bgPr"]))&&e["a:solidFill"]?this.background=qi(e["a:solidFill"],this.theme):e&&e["a:gradFill"]?this.background=Qk(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]&&(this.background=Zk(e["a:blipFill"],this.pptx,this)),[2]}))}))},t.prototype._loadNodes=function(){return to(this,void 0,void 0,(function(){var e;return ro(this,(function(r){return e=Pe.get(this.source,["p:sldLayout","p:cSld","p:spTree"]),eO(this.nodes,e,this.pptx,this),[2]}))}))},t.prototype.getColorThemeName=function(e){return this.slideMaster.getColorThemeName(e)},t.prototype.getNodeByType=function(e){return this.nodes.find((function(r){return r.type===e}))},t.prototype.getNodeByIdx=function(e){return this.nodes.find((function(r){return r.idx===e}))},t.prototype.getNodeInheritAttrsByType=function(e,r){var n=this.slideMaster.getNodeByType(e);return n&&Pe.get(n.source,r)},t.prototype.getNodeInheritAttrsByIdx=function(e,r){var n=this.slideMaster.getNodeByIdx(e);return n&&Pe.get(n.source,r)},t})(),Qar=(function(){function t(e,r,n){this.slideType="slideMaster",this.rels={},this.background={type:"none"},this.textStyles={titleStyle:{},bodyStyle:{},otherStyle:{}},this.defaultTextStyle={},this.nodes=[],this.tableStyles={},this.name=e,this.source=r,this.pptx=n,this.load()}return Object.defineProperty(t.prototype,"_relsPath",{get:function(){return this.name.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels"},enumerable:!1,configurable:!0}),t.prototype.load=function(){return to(this,void 0,void 0,(function(){return ro(this,(function(e){switch(e.label){case 0:return[4,this._parseRels()];case 1:return e.sent(),this._parseColorMap(),this._parseBackground(),this._parseTextStyles(),this._parseTableStyles(),this._parseDefaultTextStyle(),this._loadNodes(),[2]}}))}))},t.prototype._parseRels=function(){return to(this,void 0,void 0,(function(){var e,r,n,a=this;return ro(this,(function(i){switch(i.label){case 0:return r=zc,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=r.apply(void 0,[i.sent()]),n=Pe.get(e,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach((function(s){switch(Pe.get(s,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme":var o=s.attrs.Target.replace("../","ppt/");o.startsWith("/ppt")&&(o=o.substr(1)),a.theme=a.pptx.getTheme(o);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=s.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),a.rels[s.attrs.Id]={type:s.attrs.Type.split("/").pop(),target:l}}})),[2]}}))}))},t.prototype._parseColorMap=function(){this.colorMap=Pe.omit(Pe.get(this.source,["p:sldMaster","p:clrMap","attrs"])||{},["order"])},t.prototype.getColorThemeName=function(e){return this.colorMap[e]||e},t.prototype._parseBackground=function(){var e=Pe.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),r=Pe.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgRef"]);e&&e["a:solidFill"]?this.background=qi(e["a:solidFill"],this.theme,this):e&&e["a:gradFill"]?this.background=Qk(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]?this.background=Zk(e["a:blipFill"],this.pptx,this):r&&(this.background=qi(r,this.theme,this))},t.prototype._parseDefaultTextStyle=function(){var e=this,r=this.pptx.defaultTextStyleSource;Object.keys(r).forEach((function(n){if(n.startsWith("a:")&&n.endsWith("pPr")){var a=n.substr(2,n.length-5),i=Pe.get(r[n],["a:defRPr"]);e.defaultTextStyle[a]={props:cIe(r[n]),defRPr:uIe(i,e.theme,e)}}}))},t.prototype._parseTextStyles=function(){var e=this,r=Pe.get(this.source,["p:sldMaster","p:txStyles"]);["titleStyle","bodyStyle","otherStyle"].forEach((function(n){var a=e.textStyles[n],i=Pe.get(r,"p:".concat(n))||{};Object.keys(i).forEach((function(s){if(s.startsWith("a:")&&s.endsWith("pPr")){var o=s.substr(2,s.length-5);a[o]={},a[o].props=cIe(i[s]);var l=Pe.get(i[s],["a:defRPr"]);a[o].defRPr=uIe(l,e.theme,e)}}))}))},t.prototype._parseTableStyles=function(){var e=this,r={},n=Pe.get(this.pptx.tableStyles,["a:tblStyleLst","a:tblStyle"])||[];Array.isArray(n)||(n=[n]),n.forEach((function(a){var i=Pe.get(a,["attrs","styleId"]);r[i]={},Object.keys(a).forEach((function(s){if(s.startsWith("a:")){var o=s.substr(2);r[i][o]={};var l=Pe.get(a[s],["a:tcStyle"]);if(l){var u={};Pe.get(l,["a:fill","a:solidFill"])&&(u.background=qi(Pe.get(l,["a:fill","a:solidFill"]),e.theme,e));var d=Pe.get(l,"a:tcBdr");d&&(u.border={},Object.keys(d).forEach((function(p){if(p.startsWith("a:")){var g=p.substr(2),m=Pe.get(d[p],["a:ln"]);u.border[g]=ES(m,e.theme,e)}}))),r[i][o].tcStyle=u}var h=Pe.get(a[s],["a:tcTxStyle"]);if(h){var f={};f.color=qi(h,e.theme,e),Pe.get(h,["attrs","b"])==="on"&&(f.bold=!0),r[i][o].tcTxStyle=f}}}))})),this.tableStyles=r},t.prototype._loadNodes=function(){return to(this,void 0,void 0,(function(){var e;return ro(this,(function(r){return e=Pe.get(this.source,["p:sldMaster","p:cSld","p:spTree"]),eO(this.nodes,e,this.pptx,this),[2]}))}))},t.prototype.getNodeByType=function(e){return this.nodes.find((function(r){return r.type===e}))},t.prototype.getNodeByIdx=function(e){return this.nodes.find((function(r){return r.idx===e}))},t.prototype.getNodeInheritAttrsByType=function(e,r){},t.prototype.getNodeInheritAttrsByIdx=function(e,r){},t})(),Jar=(function(){function t(e,r,n){this.clrScheme={},this.borderScheme=[],this.name=e,this.source=r,this.pptx=n,this._parseClrScheme(),this._parseLineStyleLst()}return t.prototype._parseClrScheme=function(){var e=Pe.get(this.source,["a:theme","a:themeElements","a:clrScheme"]);for(var r in e)if(r.startsWith("a:")){var n=r.substring(2),a=Pe.get(e[r],["a:sysClr","attrs","lastClr"])||Pe.get(e[r],["a:srgbClr","attrs","val"]);this.clrScheme[n]="#"+a}},t.prototype._parseLineStyleLst=function(){var e=this,r=Pe.get(this.source,["a:theme","a:themeElements","a:fmtScheme","a:lnStyleLst","a:ln"])||[];this.borderScheme=r.map((function(n){var a={color:{}};return Pe.get(n,["attrs","w"])&&(a.width=Ra(parseInt(Pe.get(n,["attrs","w"])))),Pe.get(n,["attrs","algn"])&&(a.algn=Pe.get(n,["attrs","algn"])),Pe.get(n,["attrs","cap"])&&(a.cap=Pe.get(n,["attrs","cap"])),Pe.get(n,["attrs","cmpd"])&&(a.cmpd=Pe.get(n,["attrs","cmpd"])),Pe.get(n,["a:miter","attrs","lim"])&&(a.miterLim=Ra(parseInt(Pe.get(n,["a:miter","attrs","lim"])))),Pe.get(n,["a:prstDash","attrs","val"])&&(a.type=Pe.get(n,["a:prstDash","attrs","val"])),Pe.get(n,["a:solidFill"])&&(a.color=qi(Pe.get(n,["a:solidFill"]),e)),a}))},t.prototype.getColor=function(e){if(e!=="phClr")return this.clrScheme[e]||this.defaultColor},t.prototype.getLineStyle=function(e){return this.borderScheme[e-1]},t})(),dIe=(function(){function t(){this.slides=[],this.slideLayouts=[],this.slideMaster=[],this.themes=[],this.medias={},this.wps=!1}return t.prototype.load=function(e){return to(this,void 0,void 0,(function(){var r,n;return ro(this,(function(a){switch(a.label){case 0:return r=new Tze,n=this,[4,r.loadAsync(e)];case 1:return n._zipContents=a.sent(),[4,this._loadThumbnail()];case 2:return a.sent(),[4,this._loadMedia()];case 3:return a.sent(),[4,this._loadPresentation()];case 4:return a.sent(),[4,this._loadContentTypes()];case 5:return a.sent(),[2]}}))}))},t.prototype._loadThumbnail=function(){return to(this,void 0,void 0,(function(){var e;return ro(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),this._zipContents.files["docProps/thumbnail.jpeg"]?[4,this._zipContents.files["docProps/thumbnail.jpeg"].async("base64")]:[3,2];case 1:e=r.sent(),this.thumbnail="data:image/jpeg;base64,"+e,r.label=2;case 2:return[3,4];case 3:return r.sent(),[3,4];case 4:return[2]}}))}))},t.prototype._loadPresentation=function(){return to(this,void 0,void 0,(function(){var e,r,n,a,i,s;return ro(this,(function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),[4,this._zipContents.files["ppt/presentation.xml"].async("text")];case 1:return e=o.sent(),r=zc(e),n=r["p:presentation"]["p:sldSz"].attrs,this.width=Ra(parseInt(n.cx)),this.height=Ra(parseInt(n.cy)),this.defaultTextStyleSource=Pe.get(r,["p:presentation","p:defaultTextStyle"]),this._zipContents.files["docProps/app.xml"]?[4,this._zipContents.files["docProps/app.xml"].async("text")]:[3,3];case 2:a=o.sent(),i=zc(a),s=Pe.get(i,["Properties","Application"]),this.wps=s?.includes("WPS")||!1,o.label=3;case 3:return[3,5];case 4:return o.sent(),[3,5];case 5:return[2]}}))}))},t.prototype._loadContentTypes=function(){return to(this,void 0,void 0,(function(){var e,r,n,a,i,s,o,l,u,d,h,f,p,g,m,_,y,v,b,E,S;return ro(this,(function(T){switch(T.label){case 0:return T.trys.push([0,22,,23]),r=zc,[4,this._zipContents.files["[Content_Types].xml"].async("text")];case 1:if(e=r.apply(void 0,[T.sent()]),n=e.Types.Override,!(a=n.filter((function(x){return x.attrs.ContentType==="application/vnd.openxmlformats-officedocument.theme+xml"}))))return[3,5];i=0,s=a,T.label=2;case 2:return i<s.length?(o=s[i],v=o.attrs.PartName.substr(1),l=zc,[4,this._zipContents.files[v].async("text")]):[3,5];case 3:b=l.apply(void 0,[T.sent()]),this.themes.push(new Jar(v,b,this)),T.label=4;case 4:return i++,[3,2];case 5:return(u=n.find((function(x){return x.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"})))?(v=u.attrs.PartName.substr(1),d=zc,[4,this._zipContents.files[v].async("text")]):[3,7];case 6:b=d.apply(void 0,[T.sent()]),this.tableStyles=b,T.label=7;case 7:h=n.filter((function(x){return x.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"})),y=0,T.label=8;case 8:return y<h.length?(v=h[y].attrs.PartName.substr(1),f=zc,[4,this._zipContents.files[v].async("text")]):[3,11];case 9:b=f.apply(void 0,[T.sent()]),this.slideMaster.push(new Qar(v,b,this)),T.label=10;case 10:return y++,[3,8];case 11:p=n.filter((function(x){return x.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"})),y=0,T.label=12;case 12:return y<p.length?(v=p[y].attrs.PartName.substr(1),g=zc,[4,this._zipContents.files[v].async("text")]):[3,16];case 13:return b=g.apply(void 0,[T.sent()]),[4,(m=new Zar(v,b,this)).load()];case 14:T.sent(),this.slideLayouts.push(m),T.label=15;case 15:return y++,[3,12];case 16:_=n.filter((function(x){return x.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"})),y=0,T.label=17;case 17:return y<_.length?(v=_[y].attrs.PartName.substr(1),E=zc,[4,this._zipContents.files[v].async("text")]):[3,21];case 18:return b=E.apply(void 0,[T.sent()]),[4,(S=new Kar(v,b,this)).load()];case 19:T.sent(),this.slides.push(S),T.label=20;case 20:return y++,[3,17];case 21:return this.slides.sort((function(x,w){return x.index-w.index})),[3,23];case 22:return T.sent(),[3,23];case 23:return[2]}}))}))},t.prototype._loadMedia=function(){return to(this,void 0,void 0,(function(){var e,r,n,a,i,s,o,l,u,d,h,f,p,g=this;return ro(this,(function(m){switch(m.label){case 0:e=Object.keys(this._zipContents.files).filter((function(y){return y.startsWith("ppt/media/image")})).map((function(y){return g._zipContents.files[y]})),r=0,n=e,m.label=1;case 1:return r<n.length?(a=n[r],i=(function(y){var v;switch(y){case"jpg":case"jpeg":v="image/jpeg";break;case"png":v="image/png";break;case"gif":v="image/gif";break;case"emf":v="image/x-emf";break;case"wmf":v="image/x-wmf";break;default:v="image/*"}return v})((_=a.name).substr(2+(~-_.lastIndexOf(".")>>>0))),[4,a.async("base64")]):[3,4];case 2:s=m.sent(),this.medias[a.name]="data:".concat(i,";base64,").concat(s),m.label=3;case 3:return r++,[3,1];case 4:o=Object.keys(this._zipContents.files).filter((function(y){return y.startsWith("ppt/media/media")&&["mp3","wav","ogg","mp4","webm"].includes(y.split(".").pop().toLowerCase())})).map((function(y){return g._zipContents.files[y]})),l=0,u=o,m.label=5;case 5:return l<u.length?(d=u[l],h=d.name.split(".").pop().toLowerCase(),[4,d.async("arraybuffer")]):[3,8];case 6:f=m.sent(),p=new Blob([f],{type:"".concat(["mp3","wav"].includes(h)?"audio":"video","/").concat(h)}),this.medias[d.name]=URL.createObjectURL(p),m.label=7;case 7:return l++,[3,5];case 8:return[2]}var _}))}))},t.prototype.getXmlByPath=function(e){return to(this,void 0,void 0,(function(){return ro(this,(function(r){switch(r.label){case 0:if(!this._zipContents.files[e])throw new Error("文件不存在");return[4,this._zipContents.files[e].async("text")];case 1:return[2,r.sent()]}}))}))},t.prototype.getSlideLayout=function(e){return this.slideLayouts.find((function(r){return r.name===e}))},t.prototype.getSlideMaster=function(e){return this.slideMaster.find((function(r){return r.name===e}))},t.prototype.getTheme=function(e){return this.themes.find((function(r){return r.name===e}))},t.prototype.getMedia=function(e){return this.medias[e]},t})();function HJ(t){var e=t.extend,r=t.offset,n=t.clip,a=t.base64,i=t.audioFile,s=t.videoFile,o=document.createElement("div");o.style.setProperty("position","absolute"),o.style.setProperty("left",r.x+"px"),o.style.setProperty("top",r.y+"px");var l,u,d,h,f=document.createElement("div");f.style.setProperty("position","absolute"),f.style.setProperty("left","0"),f.style.setProperty("top","0"),f.style.setProperty("width",e.w+"px"),f.style.setProperty("height",e.h+"px"),f.style.setProperty("overflow","hidden"),n?(l=e.w/(1-(n.l===void 0?0:n.l)-(n.r===void 0?0:n.r)),u=e.h/(1-(n.t===void 0?0:n.t)-(n.b===void 0?0:n.b)),d=-1*l*(n.l===void 0?0:n.l),h=-1*u*(n.t===void 0?0:n.t)):(l=e.w,u=e.h,d=0);var p=document.createElement("img");if(p.src=a,p.width=l,p.height=u,p.style.setProperty("position","absolute"),p.style.setProperty("left",d+"px"),p.style.setProperty("top",h+"px"),f.append(p),o.append(f),i){var g=document.createElement("audio");g.style.position="absolute",g.style.left="0",g.style.top="0",g.src=i,g.controls=!0,g.style.transform="translate(-50%)",o.append(g)}if(s){var m=document.createElement("video");m.style.position="absolute",m.style.left="0",m.style.top="0",m.width=e.w,m.height=e.h,m.src=s,m.controls=!0,o.append(m)}return o}function eir(t,e,r){var n,a=t.props,i=t.text,s=qt(qt({},e),a),o=document.createElement("span");o.innerHTML=typeof i=="string"?i:"";var l=18;s.size&&(!((n=r?.normAutofit)===null||n===void 0)&&n.fontScale?(l=s.size*r.normAutofit.fontScale,o.style.fontSize=l+"px"):(l=s.size,o.style.fontSize=l+"px"));var u=la(s.color);u&&(o.style.color=u);var d=/^[^\u4e00-\u9fff]+$/;if(s.typeface)switch(o.style.fontFamily=s.typeface,s.typeface){case"DengXian":d.test(i)&&(o.style.letterSpacing=-.04*l+"px");break;case"DengXian Light":d.test(i)&&(o.style.letterSpacing=-.05*l+"px");break;case"STLiti":case"SimSun":case"NSimSun":case"SimHei":d.test(i)&&(o.style.fontSize=.85*parseInt(o.style.fontSize)+"px");break;case"华文中宋":case"Fira Sans Extra Condensed Medium":o.style.fontSize=.85*parseInt(o.style.fontSize)+"px";break;case"FangSong":o.style.letterSpacing=-.08*l+"px"}else d.test(i)&&(o.style.letterSpacing=-.04*l+"px");return s.bold&&(o.style.fontWeight="bold"),s.italic&&(o.style.fontStyle="italic"),s.underline&&s.underline!=="none"&&(o.style.textDecoration="underline"),s.background&&(o.style.backgroundColor=la(s.background)),o.style.wordBreak="break-word",o}function tir(t,e,r){var n=document.createElement("span"),a=t.firstElementChild;switch(n.style.fontSize=a.style.fontSize,n.style.color=a.style.color,n.style.fontWeight=a.style.fontWeight,n.style.fontStyle=a.style.fontStyle,n.style.marginRight="10px",e.buAutoNum){case"arabicPeriod":default:n.textContent=r+".";break;case"circleNumDbPlain":n.textContent=["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳"][r-1]||r+"";break;case"romanUcPeriod":n.textContent=(function(i){var s=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];if(typeof i!="number"||i<1||i>3999)throw new Error("Input must be a number between 1 and 3999.");for(var o="",l=0;l<s.length;l++)for(;i>=s[l].value;)o+=s[l].numeral,i-=s[l].value;return o})(r)+".";break;case"alphaUcPeriod":n.textContent=BW(r)+".";break;case"alphaLcPeriod":n.textContent=BW(r).toLowerCase()+".";break;case"alphaLcParenR":n.textContent=BW(r).toLowerCase()+")";break;case"ea1JpnChsDbPeriod":n.textContent=(function(i){var s=["〇","一","二","三","四","五","六","七","八","九"];if(!Number.isInteger(i)||i<0)return"";for(var o="",l=i.toString(),u=0;u<l.length;u++)o+=s[parseInt(l[u],10)];return o})(r)+"."}t.prepend(n)}function v6(t,e,r){var n,a,i,s;e===void 0&&(e=0),r===void 0&&(r={});var o=t.inheritProps,l=t.inheritRProps,u=t.props,d=t.rows,h=qt(qt({},o),u),f=function(){for(var T,x,w=0,C=0,R=d;C<R.length;C++){var N=R[C];N.props&&N.props.size&&(w=Math.max(w,N.props.size))}var k=((x=(T=r?.bodyProps)===null||T===void 0?void 0:T.normAutofit)===null||x===void 0?void 0:x.fontScale)||1;return(w||l.size||18)*k},p=document.createElement("div"),g=r.isFirst?0:h.spaceBefore||0,m=r.isLast?0:h.spaceAfter||0;p.style.margin="".concat(Math.floor(.2*f()),"px 0 0 0"),p.style.padding="".concat(Math.floor(g),"px 0px ").concat(Math.floor(m),"px 0px");var _=document.createElement("p");_.style.margin="0",_.style.padding="0px",_.style.wordBreak="break-word",_.style.textAlign=h.align&&{ctr:"center",l:"left",r:"right",dist:"justify"}[h.align]||"center",h.align==="dist"&&(_.style.textAlignLast="justify");var y=h.hasOwnProperty("lineHeight")?h.lineHeight:1;if(!((a=(n=r.bodyProps)===null||n===void 0?void 0:n.normAutofit)===null||a===void 0)&&a.lnSpcReduction&&(y*=1-((s=(i=r.bodyProps)===null||i===void 0?void 0:i.normAutofit)===null||s===void 0?void 0:s.lnSpcReduction)),_.style.lineHeight=y+"",_.style.fontSize=f()+"px",d.length){for(var v=0,b=d;v<b.length;v++){var E=b[v];E.isBr?_.appendChild(document.createElement("br")):_.appendChild(eir(E,qt(qt({},l),{marginTop:Math.floor(.2*f())}),r.bodyProps))}h.buAutoNum?tir(_,h,e):h.buChar&&(function(T,x){var w=document.createElement("span"),C=T.firstElementChild;w.style.color=C.style.color,w.style.fontSize=C.style.fontSize,w.textContent={n:"■",l:"●",u:"◆",p:"□",ü:"✔",Ø:"➢","•":"•"}[x.buChar]||"■",w.style.marginRight="10px",T.prepend(w)})(_,h),_.style.paddingLeft=(h.marginLeft||0)+(h.indent||0)+"px"}else{var S=document.createElement("span");S.innerHTML="&nbsp;",S.style.fontSize=l.size+"px",_.appendChild(S)}return p.appendChild(_),p}var Tje="http://www.w3.org/2000/svg";function kt(t){return document.createElementNS(Tje,t)}function Qp(t){var e=t.extend;return .16667*Math.min(e.w,e.h)}function zr(t,e,r){r===void 0&&(r=0);var n=e.prstGeom,a=(n?.gd||[]).find((function(i){return i.name===t}));return a?a.fmla:r}function Ct(t,e,r){r===void 0&&(r=0);var n=e.extend,a=e.prstGeom,i=(a?.gd||[]).find((function(s){return s.name===t}));return i?Math.min(n.w,n.h)*i.fmla:r}function hIe(t,e,r){r===void 0&&(r=0);var n=e.extend,a=e.prstGeom,i=(a?.gd||[]).find((function(s){return s.name===t}));return i?Math.max(n.w,n.h)*i.fmla:r}function yp(t,e){var r=0;switch(t){case"sm":r=1*e;break;case"med":r=1.5*e;break;case"lg":r=2.5*e}return Math.max(r,2)}function fIe(t,e,r,n){n===void 0&&(n=!1);var a=t.border,i=a===void 0?{}:a,s=t.uuid,o=i.headEnd,l=i.width,u=i.color,d=i.tailEnd,h=n?o:d,f=h.len,p=f===void 0?"med":f,g=h.w,m=g===void 0?"med":g,_=yp(p,l),y=yp(m,l),v=kt("defs"),b=kt("marker"),E="marker-".concat(s,"-").concat(n?"start":"end");b.setAttribute("id",E),b.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*y)),b.setAttribute("refX",_+"px"),b.setAttribute("refY",y+"px"),b.setAttribute("markerWidth",2*_+"px"),b.setAttribute("markerHeight",2*y+"px"),b.setAttribute("orient","auto"),b.setAttribute("markerUnits","userSpaceOnUse");var S=kt("ellipse");S.setAttribute("cx",_+"px"),S.setAttribute("cy",y+"px"),S.setAttribute("rx",_+"px"),S.setAttribute("ry",y+"px"),S.setAttribute("fill",la(u)||"transparent"),b.appendChild(S),v.appendChild(b),e.appendChild(v),r.setAttribute(n?"marker-start":"marker-end","url(#".concat(E,")"))}function pIe(t,e,r,n){n===void 0&&(n=!1);var a=t.border,i=a===void 0?{}:a,s=t.uuid,o=i.headEnd,l=i.width,u=i.color,d=i.tailEnd,h=n?o:d,f=h.len,p=f===void 0?"med":f,g=h.w,m=g===void 0?"med":g,_=yp(p,l),y=yp(m,l),v=kt("defs"),b=kt("marker"),E="marker-".concat(s,"-").concat(n?"start":"end");b.setAttribute("id",E),b.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*y)),b.setAttribute("refX",(n?.9*_:1.1*_)+"px"),b.setAttribute("refY",y+"px"),b.setAttribute("markerWidth",2*_+"px"),b.setAttribute("markerHeight",2*y+"px"),b.setAttribute("orient","auto"),b.setAttribute("markerUnits","userSpaceOnUse");var S=kt("path"),T=n?["M ".concat(2*_,",0"),"L 0,".concat(y),"L ".concat(2*_,",").concat(2*y),"Z"].join(" "):["M 0,0","L ".concat(2*_,",").concat(y),"L 0,".concat(2*y),"Z"].join(" ");S.setAttribute("d",T),S.setAttribute("fill",la(u)||"transparent"),b.appendChild(S),v.appendChild(b),e.appendChild(v),r.setAttribute(n?"marker-start":"marker-end","url(#".concat(E,")"))}function gIe(t,e,r,n){n===void 0&&(n=!1);var a=t.border,i=a===void 0?{}:a,s=t.uuid,o=i.headEnd,l=i.width,u=i.color,d=i.tailEnd,h=n?o:d,f=h.len,p=f===void 0?"med":f,g=h.w,m=g===void 0?"med":g,_=yp(p,l),y=yp(m,l),v=kt("defs"),b=kt("marker"),E="marker-".concat(s,"-").concat(n?"start":"end");b.setAttribute("id",E),b.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*y)),b.setAttribute("refX",_+"px"),b.setAttribute("refY",y+"px"),b.setAttribute("markerWidth",2*_+"px"),b.setAttribute("markerHeight",2*y+"px"),b.setAttribute("orient","auto"),b.setAttribute("markerUnits","userSpaceOnUse");var S=kt("path"),T=["M 0,".concat(y),"L ".concat(_,",0"),"L ".concat(2*_,",").concat(y),"L ".concat(_,",").concat(2*y),"Z"].join(" ");S.setAttribute("d",T),S.setAttribute("fill",la(u)||"transparent"),b.appendChild(S),v.appendChild(b),e.appendChild(v),r.setAttribute(n?"marker-start":"marker-end","url(#".concat(E,")"))}function mIe(t,e,r,n){n===void 0&&(n=!1);var a=t.border,i=a===void 0?{}:a,s=t.uuid,o=i.headEnd,l=i.width,u=i.color,d=i.tailEnd,h=n?o:d,f=h.len,p=f===void 0?"med":f,g=h.w,m=g===void 0?"med":g,_=yp(p,l),y=yp(m,l),v=kt("defs"),b=kt("marker"),E="marker-".concat(s,"-").concat(n?"start":"end");b.setAttribute("id",E),b.setAttribute("viewBox","0 0 ".concat(2*_+2*l," ").concat(2*y+2*l));var S=n?m==="lg"?2*l:3*l:m==="lg"?2*_:2*_-l;b.setAttribute("refX",S+"px"),b.setAttribute("refY",y+l+"px"),b.setAttribute("markerWidth",2*_+"px"),b.setAttribute("markerHeight",2*y+"px"),b.setAttribute("orient","auto"),b.setAttribute("markerUnits","userSpaceOnUse");var T=kt("path"),x=n?["M ".concat(2*_+l,", ").concat(l),"L ".concat(l,",").concat(y+l),"L ".concat(2*_+l,",").concat(2*y+l)].join(" "):["M ".concat(l,", ").concat(l),"L ".concat(2*_+l,",").concat(y+l),"L ".concat(l,",").concat(2*y+l)].join(" ");T.setAttribute("d",x),T.setAttribute("stroke-width",l+"px"),T.setAttribute("stroke",la(u)||"transparent"),T.setAttribute("fill","transparent"),T.setAttribute("stroke-linecap","round"),T.setAttribute("stroke-linejoin","miter"),T.style.overflow="visible",b.appendChild(T),v.appendChild(b),e.appendChild(v),r.setAttribute(n?"marker-start":"marker-end","url(#".concat(E,")"))}function vIe(t,e,r,n){n===void 0&&(n=!1);var a=t.border,i=a===void 0?{}:a,s=t.uuid,o=i.headEnd,l=i.width,u=i.color,d=i.tailEnd,h=n?o:d,f=h.len,p=f===void 0?"med":f,g=h.w,m=g===void 0?"med":g,_=yp(p,l),y=yp(m,l),v=kt("defs"),b=kt("marker"),E="marker-".concat(s,"-").concat(n?"start":"end");b.setAttribute("id",E),b.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*y));var S=n?m==="sm"?1.5*l:2*l:m==="sm"?2*_-1.5*l:2*_-2*l;b.setAttribute("refX",S+"px"),b.setAttribute("refY",y+"px"),b.setAttribute("markerWidth",2*_+"px"),b.setAttribute("markerHeight",2*y+"px"),b.setAttribute("orient","auto"),b.setAttribute("markerUnits","userSpaceOnUse");var T=kt("path"),x=n?["M 0, ".concat(y),"L ".concat(2*_,",0"),"L ".concat(_,",").concat(y),"L ".concat(2*_,",").concat(2*y),"Z"].join(" "):["M 0,0","L ".concat(2*_,",").concat(y),"L 0,".concat(2*y),"L ".concat(_,",").concat(y),"Z"].join(" ");T.setAttribute("d",x),T.setAttribute("fill",la(u)||"transparent"),T.style.overflow="visible",b.appendChild(T),v.appendChild(b),e.appendChild(v),r.setAttribute(n?"marker-start":"marker-end","url(#".concat(E,")"))}function PA(t,e,r){var n=t.border,a=n===void 0?{}:n;t.extend;var i=a.headEnd,s=a.tailEnd;if(i&&i.type!=="none")switch(i.type){case"triangle":pIe(t,e,r,!0);break;case"oval":fIe(t,e,r,!0);break;case"diamond":gIe(t,e,r,!0);break;case"arrow":mIe(t,e,r,!0);break;case"stealth":vIe(t,e,r,!0)}if(s&&s.type!=="none")switch(s.type){case"triangle":pIe(t,e,r,!1);break;case"oval":fIe(t,e,r,!1);break;case"diamond":gIe(t,e,r,!1);break;case"arrow":mIe(t,e,r,!1);break;case"stealth":vIe(t,e,r,!1)}}function yIe(t){var e=t.extend,r=kt("rect");return r.setAttribute("x","0"),r.setAttribute("y","0"),r.setAttribute("width",e.w+"px"),r.setAttribute("height",e.h+"px"),r}function pl(t,e,r,n,a){var i=t*Math.PI/180;return[i===0||i===2*Math.PI?e+n:i===Math.PI?e-n:i===Math.PI/2||i===3*Math.PI/2?e:i>0&&i<Math.PI/2||i>3*Math.PI/2&&i<2*Math.PI?e+Math.sqrt(1/(1/Math.pow(n,2)+Math.pow(Math.tan(i),2)/Math.pow(a,2))):e-Math.sqrt(1/(1/Math.pow(n,2)+Math.pow(Math.tan(i),2)/Math.pow(a,2))),i===0||i===2*Math.PI||i===Math.PI?r:i===Math.PI/2?r+a:i===3*Math.PI/2?r-a:i>Math.PI&&i<2*Math.PI?r-Math.sqrt(1/(1/Math.pow(a,2)+Math.pow(1/Math.tan(i),2)/Math.pow(n,2))):r+Math.sqrt(1/(1/Math.pow(a,2)+Math.pow(1/Math.tan(i),2)/Math.pow(n,2)))]}function BA(t,e){var r=0;return(e>t&&e-t>180||e<t&&t-e<180)&&(r=1),r}function FA(t){var e=t.extend,r=.146*e.w,n=.146*e.h;return{top:n,bottom:n,left:r,right:r,w:e.w-2*r,h:e.h-2*n}}function YJ(t){var e=t.extend,r=t.offset,n=t.border,a=t.background,i=t.rotate,s=t.flipH,o=t.flipV,l=document.createElement("div"),u=r.x,d=r.y;l.className="shape-wrapper shape-".concat(t.shape),l.style.setProperty("position","absolute"),l.style.setProperty("width",(e.w||1)+"px"),l.style.setProperty("height",(e.h||1)+"px"),l.style.setProperty("left",u+"px"),l.style.setProperty("top",d+"px");var h,f=document.createElementNS(Tje,"svg");f.style.setProperty("position","absolute"),f.setAttribute("width","100%"),f.setAttribute("height","100%"),f.style.setProperty("left","0"),f.style.setProperty("top","0"),f.style.overflow="visible";var p={left:0,top:0,bottom:0,w:e.w,h:e.h},g=!0;switch(t.shape){case"customGeom":h=(function(y){var v=y.prstGeom,b=v===void 0?{}:v,E=y.extend,S=b.pathList,T=b.w,x=b.h,w=kt("path"),C={moveTo:"M",lnTo:"L",cubicBezTo:"C",close:"Z"},R=E.w/T,N=E.h/x,k=S.map((function(L){var A=C[L.type],D=Array.isArray(L.points)?L.points.map((function(M){return"".concat(M[0]*R,",").concat(M[1]*N)})).join(" "):"";return D?"".concat(A," ").concat(D):"".concat(A)})).join(" ");return w.setAttribute("d",k),w.style.fillRule="evenodd",w})(t),PA(t,f,h);break;case"flowChartProcess":case"rect":h=yIe(t);break;case"snip1Rect":h=(function(y){var v=y.extend,b=kt("polygon"),E=Ct("adj",y,Qp(y)),S=["0,0","".concat(v.w-E,",0"),"".concat(v.w,",").concat(E),"".concat(v.w,",").concat(v.h),"0,".concat(v.h)].join(" ");return b.setAttribute("points",S),b})(t);break;case"snip2SameRect":h=(function(y){var v=y.extend,b=kt("polygon"),E=Ct("adj1",y,Qp(y)),S=Ct("adj2",y,0),T=[[E,0],[v.w-E,0],[v.w,E],[v.w,v.h-S],[v.w-S,v.h],[S,v.h],[0,v.h-S],[0,E]].map((function(x){return"".concat(x[0],",").concat(x[1])})).join(" ");return b.setAttribute("points",T),b})(t);break;case"snip2DiagRect":h=(function(y){var v=y.extend,b=kt("polygon"),E=Ct("adj1",y,0),S=Ct("adj2",y,Qp(y)),T=[[E,0],[v.w-S,0],[v.w,S],[v.w,v.h-E],[v.w-E,v.h],[S,v.h],[0,v.h-S],[0,E]].map((function(x){return"".concat(x[0],",").concat(x[1])})).join(" ");return b.setAttribute("points",T),b})(t);break;case"snipRoundRect":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj1",y,Qp(y)),S=Ct("adj2",y,Qp(y)),T=["M ".concat(E,",0"),"L ".concat(v.w-S,",0"),"L ".concat(v.w,",").concat(S),"L ".concat(v.w,",").concat(v.h),"L 0,".concat(v.h),"L 0,".concat(E),"Q 0,0 ".concat(E,",0"),"Z"].join(" ");return b.setAttribute("d",T),b})(t);break;case"roundRect":h=(function(y){var v=yIe(y),b=Ct("adj",y,Qp(y));return v.setAttribute("rx",b+"px"),v.setAttribute("ry",b+"px"),v})(t);break;case"round1Rect":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,Qp(y)),S=["M 0,0","L ".concat(v.w-E,",0"),"Q ".concat(v.w,",0 ").concat(v.w,",").concat(E),"L ".concat(v.w,",").concat(v.h),"L 0,".concat(v.h),"Z"].join(" ");return b.setAttribute("d",S),b})(t);break;case"round2SameRect":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj1",y,Qp(y)),S=Ct("adj2",y,0),T=["M ".concat(E,",0"),"L ".concat(v.w-E,",0"),"Q ".concat(v.w,",0 ").concat(v.w,",").concat(E),"L ".concat(v.w,",").concat(v.h-S),"Q ".concat(v.w,",").concat(v.h," ").concat(v.w-S,",").concat(v.h),"L ".concat(S,",").concat(v.h),"Q 0,".concat(v.h," 0,").concat(v.h-S),"L 0,".concat(E),"Q 0,0 ".concat(E,",0"),"Z"].join(" ");return b.setAttribute("d",T),b})(t);break;case"round2DiagRect":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj1",y,Qp(y)),S=Ct("adj2",y,0),T=["M ".concat(E,",0"),"L ".concat(v.w-S,",0"),"Q ".concat(v.w,",0 ").concat(v.w,",").concat(S),"L ".concat(v.w,",").concat(v.h-E),"Q ".concat(v.w,",").concat(v.h," ").concat(v.w-E,",").concat(v.h),"L ".concat(S,",").concat(v.h),"Q 0,".concat(v.h," 0,").concat(v.h-S),"L 0,".concat(E),"Q 0,0 ".concat(E,",0"),"Z"].join(" ");return b.setAttribute("d",T),b})(t);break;case"triangle":h=(function(y){var v=y.extend,b=kt("polygon"),E=["".concat(v.w/2,",0"),"0,".concat(v.h),"".concat(v.w,",").concat(v.h)].join(" ");return b.setAttribute("points",E),b})(t);break;case"rtTriangle":h=(function(y){var v=y.extend,b=kt("polygon"),E=["0,".concat(v.h),"0,0","".concat(v.w,",").concat(v.h)].join(" ");return b.setAttribute("points",E),b})(t);break;case"ellipse":h=(function(y){var v=y.extend,b=kt("ellipse"),E=v.w/2,S=v.h/2,T=E,x=S;return b.setAttribute("cx",E+"px"),b.setAttribute("cy",S+"px"),b.setAttribute("rx",T+"px"),b.setAttribute("ry",x+"px"),b})(t);break;case"line":h=(function(y){var v=y.extend,b=kt("path"),E=["M 0,0","L ".concat(v.w,",").concat(v.h)].join(" ");return b.setAttribute("d",E),b})(t),PA(t,f,h),g=!1;break;case"straightConnector1":h=(function(y){var v=y.extend,b=kt("path"),E=["M 0,0","L ".concat(v.w,",").concat(v.h)].join(" ");return b.setAttribute("d",E),b})(t),PA(t,f,h),g=!1;break;case"bentConnector3":h=(function(y){var v=y.extend,b=kt("path"),E=hIe("adj1",y,.5*Math.max(v.w,v.h)),S=["M 0,0","L ".concat(E,",0"),"L ".concat(E,",").concat(v.h),"L ".concat(v.w,",").concat(v.h)].join(" ");return b.setAttribute("d",S),b})(t),PA(t,f,h),g=!1;break;case"curvedConnector3":h=(function(y){var v=y.extend,b=kt("path"),E=hIe("adj1",y,.5*Math.max(v.w,v.h)),S=["M0,0","Q".concat(E,",0 ").concat(E,",").concat(v.h/2),"T".concat(v.w,",").concat(v.h)].join(" ");return b.setAttribute("d",S),b})(t),PA(t,f,h),g=!1;break;case"parallelogram":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.5*Math.min(v.w,v.h)),S=["M".concat(E,",0"),"L".concat(v.w,",0"),"L".concat(v.w-E,",").concat(v.h),"L0,".concat(v.h),"Z"].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.5*Math.min(v.w,v.h)),E=.84*(v.w-b),S=.08*v.h+b/v.w*v.h*.42;return{top:S,bottom:S,left:(v.w-E)/2,right:(v.w-E)/2,w:E,h:v.h-2*S}})(t);break;case"trapezoid":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.25*Math.min(v.w,v.h)),S=["M".concat(E,",0"),"L".concat(v.w-E,",0"),"L".concat(v.w,",").concat(v.h),"L0,".concat(v.h),"Z"].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.5*Math.min(v.w,v.h)),E=b/v.w*.66*v.h,S=.66*b;return{top:E,bottom:0,left:S,right:S,w:v.w-2*S,h:v.h-E}})(t);break;case"diamond":h=(function(y){var v=y.extend,b=kt("path"),E=["M".concat(v.w/2,",0"),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w/2,",").concat(v.h),"L0,".concat(v.h/2),"Z"].join(" ");return b.setAttribute("d",E),b})(t),p=(function(y){var v=y.extend,b=.25*v.h,E=.25*v.w;return{top:b,bottom:b,left:E,right:E,w:.5*v.w,h:.5*v.h}})(t);break;case"pentagon":h=(function(y){var v=y.extend,b=kt("path"),E=["M".concat(v.w/2,",0"),"L".concat(v.w,",").concat(.3771*v.h),"L".concat(.808*v.w,",").concat(v.h),"L".concat(.192*v.w,",").concat(v.h),"L0,".concat(.3771*v.h),"Z"].join(" ");return b.setAttribute("d",E),b})(t),p=(function(y){var v=y.extend,b=.227*v.h,E=.192*v.w;return{top:b,bottom:0,left:E,right:E,w:.616*v.w,h:.773*v.h}})(t);break;case"hexagon":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.25*Math.min(v.w,v.h)),S=["M".concat(E,",0"),"L".concat(v.w-E,",0"),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-E,",").concat(v.h),"L".concat(E,",").concat(v.h),"L0,".concat(v.h/2),"Z"].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.25*Math.min(v.w,v.h)),E=.098*v.h+b/v.w*.38*v.h,S=.088*v.w+.422*b;return{top:E,bottom:E,left:S,right:S,w:v.w-2*S,h:v.h-2*E}})(t);break;case"heptagon":h=(function(y){var v=y.extend,b=kt("path"),E=["M".concat(v.w/2,",0"),"L".concat(.9*v.w,",").concat(.2*v.h),"L".concat(v.w,",").concat(.642*v.h),"L".concat(.722*v.w,",").concat(v.h),"L".concat(.278*v.w,",").concat(v.h),"L0,".concat(.642*v.h),"L".concat(.1*v.w,",").concat(.2*v.h),"Z"].join(" ");return b.setAttribute("d",E),b})(t),p=(function(y){var v=y.extend;return{top:.2*v.h,bottom:.2*v.h,left:.1*v.w,right:.1*v.w,w:.8*v.w,h:.6*v.h}})(t);break;case"octagon":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.29*Math.min(v.w,v.h)),S=["M".concat(E,",0"),"L".concat(v.w-E,",0"),"L".concat(v.w,",").concat(E),"L".concat(v.w,",").concat(v.h-E),"L".concat(v.w-E,",").concat(v.h),"L".concat(E,",").concat(v.h),"L0,".concat(v.h-E),"L0,".concat(E),"Z"].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.29*Math.min(v.w,v.h));return{top:.5*b,bottom:.5*b,left:.5*b,right:.5*b,w:v.w-b,h:v.h-b}})(t);break;case"decagon":h=(function(y){var v=y.extend,b=kt("path"),E=.344,S=.117,T=.19,x=["M".concat(v.w*E,",0"),"L".concat(.656*v.w,",0"),"L".concat(.883*v.w,",").concat(v.h*T),"L".concat(v.w,",").concat(.5*v.h),"L".concat(.883*v.w,",").concat(.81*v.h),"L".concat(.656*v.w,",").concat(v.h),"L".concat(v.w*E,",").concat(v.h),"L".concat(v.w*S,",").concat(.81*v.h),"L0,".concat(.5*v.h),"L".concat(v.w*S,",").concat(v.h*T),"Z"].join(" ");return b.setAttribute("d",x),b})(t),p=(function(y){var v=y.extend,b=.117,E=.19;return{top:v.h*E,bottom:v.h*E,left:v.w*b,right:v.w*b,w:.766*v.w,h:.62*v.h}})(t);break;case"dodecagon":h=(function(y){var v=y.extend,b=kt("path"),E=.364,S=.133,T=.135,x=["M".concat(v.w*E,",0"),"L".concat(.636*v.w,",0"),"L".concat(.867*v.w,",").concat(v.h*T),"L".concat(v.w,",").concat(v.h*E),"L".concat(v.w,",").concat(.636*v.h),"L".concat(.867*v.w,",").concat(.865*v.h),"L".concat(.636*v.w,",").concat(v.h),"L".concat(v.w*E,",").concat(v.h),"L".concat(v.w*S,",").concat(.865*v.h),"L0,".concat(.636*v.h),"L0,".concat(v.h*E),"L".concat(v.w*S,",").concat(v.h*T),"Z"].join(" ");return b.setAttribute("d",x),b})(t),p=(function(y){var v=y.extend,b=.133,E=.135;return{top:v.h*E,bottom:v.h*E,left:v.w*b,right:v.w*b,w:.734*v.w,h:.73*v.h}})(t);break;case"pie":h=(function(y){var v=y.extend,b=kt("path"),E=zr("adj1",y,360),S=zr("adj2",y,270),T=v.w/2,x=v.h/2,w=v.w/2,C=v.h/2,R=pl(E,w,C,T,x),N=R[0],k=R[1],L=pl(S,w,C,T,x),A=L[0],D=L[1],M=BA(E,S),B="M".concat(w,",").concat(C,", L").concat(N," ").concat(k," A ").concat(T," ").concat(x," 0 ").concat(M," ").concat(1," ").concat(A," ").concat(D," Z");return b.setAttribute("d",B),b})(t),p=FA(t);break;case"arc":h=(function(y){var v=y.extend,b=kt("path"),E=zr("adj1",y,270),S=zr("adj2",y,0),T=v.w/2,x=v.h/2,w=v.w/2,C=v.h/2,R=pl(E,w,C,T,x),N=R[0],k=R[1],L=pl(S,w,C,T,x),A=L[0],D=L[1],M=BA(E,S),B="M".concat(N,",").concat(k," A ").concat(T," ").concat(x," 0 ").concat(M," ").concat(1," ").concat(A," ").concat(D);return b.setAttribute("d",B),b})(t),g=!1;break;case"bracketPair":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.16667*Math.min(v.w,v.h)),S=["M".concat(E,",").concat(v.h),"Q".concat(0,",").concat(v.h," ").concat(0,",").concat(v.h-E),"L".concat(0,",").concat(E),"Q".concat(0,",").concat(0," ").concat(E,",").concat(0),"M".concat(v.w-E,",").concat(0),"Q".concat(v.w,",").concat(0," ").concat(v.w,",").concat(E),"L".concat(v.w,",").concat(v.h-E),"Q".concat(v.w,",").concat(v.h," ").concat(v.w-E,",").concat(v.h)].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=.285*Ct("adj",y,.16667*Math.min(v.w,v.h));return{top:b,bottom:b,left:b,right:b,w:v.w-2*b,h:v.h-2*b}})(t),g=!1;break;case"bracePair":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.083335*Math.min(v.w,v.h)),S=["M".concat(2*E,",").concat(v.h),"Q".concat(E,",").concat(v.h," ").concat(E,",").concat(v.h-E),"L".concat(E,",").concat(v.h/2+E),"Q".concat(E,",").concat(v.h/2," ").concat(0,",").concat(v.h/2),"Q".concat(E,",").concat(v.h/2," ").concat(E,",").concat(v.h/2-E),"L".concat(E,",").concat(E),"Q".concat(E,",").concat(0," ").concat(2*E,",").concat(0),"M".concat(v.w-2*E,",").concat(0),"Q".concat(v.w-E,",").concat(0," ").concat(v.w-E,",").concat(E),"L".concat(v.w-E,",").concat(v.h/2-E),"Q".concat(v.w-E,",").concat(v.h/2," ").concat(v.w,",").concat(v.h/2),"Q".concat(v.w-E,",").concat(v.h/2," ").concat(v.w-E,",").concat(v.h/2+E),"L".concat(v.w-E,",").concat(v.h-E),"Q".concat(v.w-E,",").concat(v.h," ").concat(v.w-2*E,",").concat(v.h)].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=.285*Ct("adj",y,.16667*Math.min(v.w,v.h));return{top:b,bottom:b,left:b,right:b,w:v.w-2*b,h:v.h-2*b}})(t),g=!1;break;case"chord":h=(function(y){var v=y.extend,b=kt("path"),E=zr("adj1",y,45),S=zr("adj2",y,270),T=v.w/2,x=v.h/2,w=v.w/2,C=v.h/2,R=pl(E,w,C,T,x),N=R[0],k=R[1],L=pl(S,w,C,T,x),A=L[0],D=L[1],M=BA(E,S),B="M".concat(N," ").concat(k," A ").concat(T," ").concat(x," 0 ").concat(M," ").concat(1," ").concat(A," ").concat(D," Z");return b.setAttribute("d",B),b})(t),p=FA(t);break;case"teardrop":h=(function(y){var v=y.extend,b=kt("path"),E=zr("adj",y,1),S=v.w/2,T=v.h/2,x=v.w/2,w=v.h/2,C=pl(0,x,w,S,T),R=C[0],N=C[1],k=pl(270,x,w,S,T),L=k[0],A=k[1],D=BA(0,270),M="M".concat(R," ").concat(N," A ").concat(S," ").concat(T," 0 ").concat(D," ").concat(1," ").concat(L," ").concat(A),B=S*E,F=x+B,U=w-T*B/(v.w/2),V=(v.w/2+F)/2,$=(v.h/2+U)/2;return M+=" Q".concat(V,",0 ").concat(F,",").concat(U),M+=" Q".concat(v.w,",").concat($," ").concat(x+S,",").concat(w),b.setAttribute("d",M),b})(t),p=FA(t);break;case"frame":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj1",y,.12*Math.min(v.w,v.h)),S=["M0,0","L".concat(v.w,",0"),"L".concat(v.w,",").concat(v.h),"L0,".concat(v.h),"Z","M".concat(E,",").concat(E),"L".concat(E,",").concat(v.h-E),"L".concat(v.w-E,",").concat(v.h-E),"L".concat(v.w-E,",").concat(E),"Z"].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.12*Math.min(v.w,v.h));return{top:b,bottom:b,left:b,right:b,w:v.w-2*b,h:v.h-2*b}})(t);break;case"halfFrame":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj1",y,.333*Math.min(v.w,v.h)),S=Math.min(Ct("adj2",y,.333*Math.min(v.w,v.h)),v.w*(1-E/v.h)),T=["M0,0","L".concat(v.w,",0"),"L".concat(v.w*(1-E/v.h),",").concat(E),"L".concat(S,",").concat(E),"L".concat(S,",").concat(v.h*(1-S/v.w)),"L0,".concat(v.h),"Z"].join(" ");return b.setAttribute("d",T),b})(t);break;case"corner":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj1",y,.5*Math.min(v.w,v.h)),S=Ct("adj2",y,.5*Math.min(v.w,v.h)),T=["M0,0","L".concat(S,",0"),"L".concat(S,",").concat(v.h-E),"L".concat(v.w,",").concat(v.h-E),"L".concat(v.w,",").concat(v.h),"L0,".concat(v.h),"Z"].join(" ");return b.setAttribute("d",T),b})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h));return{top:v.h-b,bottom:0,left:0,right:0,w:v.w,h:b}})(t);break;case"diagStripe":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.5*Math.min(v.w,v.h)),S=v.w*E/v.h,T=["M".concat(S,",0"),"L".concat(v.w,",0"),"L0,".concat(v.h),"L0,".concat(E),"Z"].join(" ");return b.setAttribute("d",T),b})(t),p=(function(y){var v=y.extend,b=zr("adj",y,.5),E=.5*(1-b)*v.h,S=.5*(1-b)*v.w;return{top:0,bottom:E,left:0,right:S,w:v.w-S,h:v.h-E}})(t);break;case"plus":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.25*Math.min(v.w,v.h)),S=["M".concat(E,",0"),"L".concat(v.w-E,",0"),"L".concat(v.w-E,",").concat(E),"L".concat(v.w,",").concat(E),"L".concat(v.w,",").concat(v.h-E),"L".concat(v.w-E,",").concat(v.h-E),"L".concat(v.w-E,",").concat(v.h),"L".concat(E,",").concat(v.h),"L".concat(E,",").concat(v.h-E),"L0,".concat(v.h-E),"L0,".concat(E),"L".concat(E,",").concat(E),"Z"].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.25*Math.min(v.w,v.h));return{top:b,bottom:b,left:0,right:0,w:v.w,h:v.h-2*b}})(t);break;case"plaque":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.16667*Math.min(v.w,v.h)),S=["M".concat(E,",0"),"L".concat(v.w-E,",0"),"Q".concat(v.w-E,",").concat(E," ").concat(v.w,",").concat(E),"L".concat(v.w,",").concat(v.h-E),"Q".concat(v.w-E,",").concat(v.h-E," ").concat(v.w-E,",").concat(v.h),"L".concat(E,",").concat(v.h),"Q".concat(E,",").concat(v.h-E," 0,").concat(v.h-E),"L0,".concat(E),"Q".concat(E,",").concat(E," ").concat(E,",0"),"Z"].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.16667*Math.min(v.w,v.h));return{top:.72*b,bottom:.72*b,left:.72*b,right:.72*b,w:v.w-1.44*b,h:v.w-1.44*b}})(t);break;case"can":h=(function(y){var v=y.extend,b=y.background,E=kt("g"),S=kt("path"),T=Ct("adj",y,.25*Math.min(v.w,v.h)),x=["M0,".concat(T/2),"L0,".concat(v.h-T/2),"A".concat(v.w/2,",").concat(T/2," 0 0 0 ").concat(v.w,",").concat(v.h-T/2),"L".concat(v.w,",").concat(T/2),"A".concat(v.w/2,",").concat(T/2," 0 0 1 0,").concat(T/2),"Z"].join(" ");S.setAttribute("d",x);var w=kt("ellipse"),C=v.w/2,R=T/2,N=v.w/2,k=T/2;return w.setAttribute("cx",C+"px"),w.setAttribute("cy",R+"px"),w.setAttribute("rx",N+"px"),w.setAttribute("ry",k+"px"),b?.type==="solidFill"&&w.setAttribute("fill",la(b,{light:.5})||"transparent"),E.appendChild(S),E.appendChild(w),E})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.25*Math.min(v.w,v.h));return{top:b,bottom:0,left:0,right:0,w:v.w,h:v.h-b}})(t);break;case"cube":h=(function(y){var v=y.extend,b=y.background,E=Ct("adj",y,.25*Math.min(v.w,v.h)),S=kt("g"),T=kt("path"),x=["M0,".concat(E),"L".concat(v.w-E,",").concat(E),"L".concat(v.w-E,",").concat(v.h),"L0,".concat(v.h),"Z"].join(" ");T.setAttribute("d",x);var w=kt("path"),C=["M0,".concat(E),"L".concat(E,",0"),"L".concat(v.w,",0"),"L".concat(v.w-E,",").concat(E),"Z"].join(" ");w.setAttribute("d",C),b?.type==="solidFill"&&w.setAttribute("fill",la(b,{light:.8})||"transparent");var R=kt("path"),N=["M".concat(v.w,",0"),"L".concat(v.w-E,",").concat(E),"L".concat(v.w-E,",").concat(v.h),"L".concat(v.w,",").concat(v.h-E),"Z"].join(" ");return R.setAttribute("d",N),b?.type==="solidFill"&&R.setAttribute("fill",la(b,{dark:.6})||"transparent"),S.appendChild(T),S.appendChild(w),S.appendChild(R),S})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.25*Math.min(v.w,v.h));return{top:b,bottom:0,left:0,right:b,w:v.w-b,h:v.h-b}})(t);break;case"bevel":h=(function(y){var v=y.extend,b=y.background,E=Ct("adj",y,.125*Math.min(v.w,v.h)),S=kt("g"),T=kt("path"),x=["M".concat(E,",").concat(E),"L".concat(v.w-E,",").concat(E),"L".concat(v.w-E,",").concat(v.h-E),"L".concat(E,",").concat(v.h-E),"Z"].join(" ");T.setAttribute("d",x);var w=kt("path"),C=["M0,0","L".concat(E,",").concat(E),"L".concat(v.w-E,",").concat(E),"L".concat(v.w,",0"),"Z"].join(" ");w.setAttribute("d",C),b?.type==="solidFill"&&w.setAttribute("fill",la(b,{light:.8})||"transparent");var R=kt("path"),N=["M".concat(v.w,",0"),"L".concat(v.w-E,",").concat(E),"L".concat(v.w-E,",").concat(v.h-E),"L".concat(v.w,",").concat(v.h),"Z"].join(" ");R.setAttribute("d",N),b?.type==="solidFill"&&R.setAttribute("fill",la(b,{dark:.6})||"transparent");var k=kt("path"),L=["M".concat(v.w,",").concat(v.h),"L".concat(v.w-E,",").concat(v.h-E),"L".concat(E,",").concat(v.h-E),"L0,".concat(v.h),"Z"].join(" ");k.setAttribute("d",L),b?.type==="solidFill"&&k.setAttribute("fill",la(b,{dark:.625})||"transparent");var A=kt("path"),D=["M0,".concat(v.h),"L".concat(E,",").concat(v.h-E),"L".concat(E,",").concat(E),"L0,0","Z"].join(" ");return A.setAttribute("d",D),b?.type==="solidFill"&&A.setAttribute("fill",la(b,{light:.6})||"transparent"),S.appendChild(T),S.appendChild(w),S.appendChild(R),S.appendChild(k),S.appendChild(A),S})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.125*Math.min(v.w,v.h));return{top:b,bottom:b,left:b,right:b,w:v.w-2*b,h:v.h-2*b}})(t);break;case"donut":h=(function(y){var v=y.extend,b=Ct("adj",y,.25*Math.min(v.w,v.h)),E=kt("path"),S=["M0,".concat(v.h/2),"A".concat(v.w/2,",").concat(v.h/2," 0 1,1 0,").concat(v.h/2+1),"Z","M".concat(v.w-b,",").concat(v.h/2),"A".concat(v.w/2-b,",").concat(v.h/2-b," 0 1,0 ").concat(v.w-b,",").concat(v.h/2+1),"Z"].join(" ");return E.setAttribute("d",S),E})(t),p=FA(t);break;case"noSmoking":h=(function(y){var v=y.extend,b=Ct("adj",y,.25*Math.min(v.w,v.h)),E=kt("path"),S=Math.atan(v.h/v.w),T=b/2/Math.sin(S),x=v.w/2,w=v.h/2,C=-1*v.h/v.w,R=v.h*T/v.w,N=v.w/2-b,k=v.h/2-b,L=-2*N*N*C*R,A=Math.sqrt(Math.pow(2*N*N*C*R,2)-4*(k*k+N*N*C*C)*N*N*(R*R-k*k)),D=2*(k*k+N*N*C*C),M=(L-A)/D,B=C*M+R,F=(L+A)/D,U=C*F+R,V=-v.h*T/v.w,$=-2*N*N*C*V,z=Math.sqrt(Math.pow(2*N*N*C*V,2)-4*(k*k+N*N*C*C)*N*N*(V*V-k*k)),q=2*(k*k+N*N*C*C),j=($-z)/q,X=C*j+V,ie=($+z)/q,ne=C*ie+V,ue=["M0,".concat(v.h/2),"A".concat(v.w/2,",").concat(v.h/2," 0 1,1 0,").concat(v.h/2+1),"Z","M".concat(x+F,",").concat(w-U),"A".concat(N,",").concat(k," 0 0 0 ").concat(x+M,",").concat(w-B),"Z","M".concat(x+j,",").concat(w-X),"A".concat(N,",").concat(k," 0 0 0 ").concat(x+ie,",").concat(w-ne),"Z"].join(" ");return E.setAttribute("d",ue),E})(t),p=FA(t);break;case"rightArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=Ct("adj2",y,.5*Math.min(v.w,v.h)),S=kt("path"),T=["M0,".concat(v.h/2-b/2),"L".concat(v.w-E,",").concat(v.h/2-b/2),"L".concat(v.w-E,",0"),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-E,",").concat(v.h),"L".concat(v.w-E,",").concat(v.h/2+b/2),"L0,".concat(v.h/2+b/2),"Z"].join(" ");return S.setAttribute("d",T),S})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=b*Ct("adj2",y,.5*Math.min(v.w,v.h))/v.h;return{top:v.h/2-b/2,bottom:v.h/2-b/2,left:0,right:E,w:v.w-E,h:b}})(t);break;case"leftArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=Ct("adj2",y,.5*Math.min(v.w,v.h)),S=kt("path"),T=["M0,".concat(v.h/2),"L".concat(E,",0"),"L".concat(E,",").concat(v.h/2-b/2),"L".concat(v.w,",").concat(v.h/2-b/2),"L".concat(v.w,",").concat(v.h/2+b/2),"L".concat(E,",").concat(v.h/2+b/2),"L".concat(E,",").concat(v.h),"Z"].join(" ");return S.setAttribute("d",T),S})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=b*Ct("adj2",y,.5*Math.min(v.w,v.h))/v.h;return{top:v.h/2-b/2,bottom:v.h/2-b/2,left:E,right:0,w:v.w-E,h:b}})(t);break;case"upArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=Ct("adj2",y,.5*Math.min(v.w,v.h)),S=kt("path"),T=["M".concat(v.w/2,",0"),"L".concat(v.w,",").concat(E),"L".concat(v.w/2+b/2,",").concat(E),"L".concat(v.w/2+b/2,",").concat(v.h),"L".concat(v.w/2-b/2,",").concat(v.h),"L".concat(v.w/2-b/2,",").concat(E),"L0,".concat(E),"Z"].join(" ");return S.setAttribute("d",T),S})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=b*Ct("adj2",y,.5*Math.min(v.w,v.h))/v.w;return{top:E,bottom:0,left:v.w/2-b/2,right:v.w/2-b/2,w:b,h:v.h-E}})(t);break;case"downArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=Ct("adj2",y,.5*Math.min(v.w,v.h)),S=kt("path"),T=["M".concat(v.w/2,",").concat(v.h),"L0,".concat(v.h-E),"L".concat(v.w/2-b/2,",").concat(v.h-E),"L".concat(v.w/2-b/2,",0"),"L".concat(v.w/2+b/2,",0"),"L".concat(v.w/2+b/2,",").concat(v.h-E),"L".concat(v.w,",").concat(v.h-E),"Z"].join(" ");return S.setAttribute("d",T),S})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=b*Ct("adj2",y,.5*Math.min(v.w,v.h))/v.w;return{top:0,bottom:E,left:v.w/2-b/2,right:v.w/2-b/2,w:b,h:v.h-E}})(t);break;case"leftRightArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=Ct("adj2",y,.5*Math.min(v.w,v.h)),S=kt("path"),T=["M0,".concat(v.h/2),"L".concat(E,",0"),"L".concat(E,",").concat(v.h/2-b/2),"L".concat(v.w-E,",").concat(v.h/2-b/2),"L".concat(v.w-E,",0"),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-E,",").concat(v.h),"L".concat(v.w-E,",").concat(v.h/2+b/2),"L".concat(E,",").concat(v.h/2+b/2),"L".concat(E,",").concat(v.h),"Z"].join(" ");return S.setAttribute("d",T),S})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=b*Ct("adj2",y,.5*Math.min(v.w,v.h))/v.h;return{top:v.h/2-b/2,bottom:v.h/2-b/2,left:E,right:E,w:v.w-2*E,h:b}})(t);break;case"upDownArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=Ct("adj2",y,.5*Math.min(v.w,v.h)),S=kt("path"),T=["M".concat(v.w/2,",").concat(v.h),"L0,".concat(v.h-E),"L".concat(v.w/2-b/2,",").concat(v.h-E),"L".concat(v.w/2-b/2,",").concat(E),"L0,".concat(E),"L".concat(v.w/2,",0"),"L".concat(v.w,",").concat(E),"L".concat(v.w/2+b/2,",").concat(E),"L".concat(v.w/2+b/2,",").concat(v.h-E),"L".concat(v.w,",").concat(v.h-E),"Z"].join(" ");return S.setAttribute("d",T),S})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=b*Ct("adj2",y,.5*Math.min(v.w,v.h))/v.w;return{top:E,bottom:E,left:v.w/2-b/2,right:v.w/2-b/2,w:b,h:v.h-2*E}})(t);break;case"quadArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.225*Math.min(v.w,v.h)),E=Ct("adj2",y,.225*Math.min(v.w,v.h)),S=Ct("adj3",y,.225*Math.min(v.w,v.h)),T=kt("path"),x=["M0,".concat(v.h/2),"L".concat(S,",").concat(v.h/2-E),"L".concat(S,",").concat(v.h/2-b/2),"L".concat(v.w/2-b/2,",").concat(v.h/2-b/2),"L".concat(v.w/2-b/2,",").concat(S),"L".concat(v.w/2-E,",").concat(S),"L".concat(v.w/2,",0"),"L".concat(v.w/2+E,",").concat(S),"L".concat(v.w/2+b/2,",").concat(S),"L".concat(v.w/2+b/2,",").concat(v.h/2-b/2),"L".concat(v.w-S,",").concat(v.h/2-b/2),"L".concat(v.w-S,",").concat(v.h/2-E),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-S,",").concat(v.h/2+E),"L".concat(v.w-S,",").concat(v.h/2+b/2),"L".concat(v.w/2+b/2,",").concat(v.h/2+b/2),"L".concat(v.w/2+b/2,",").concat(v.h-S),"L".concat(v.w/2+E,",").concat(v.h-S),"L".concat(v.w/2,",").concat(v.h),"L".concat(v.w/2-E,",").concat(v.h-S),"L".concat(v.w/2-b/2,",").concat(v.h-S),"L".concat(v.w/2-b/2,",").concat(v.h/2+b/2),"L".concat(S,",").concat(v.h/2+b/2),"L".concat(S,",").concat(v.h/2+E),"Z"].join(" ");return T.setAttribute("d",x),T})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.225*Math.min(v.w,v.h)),E=Ct("adj2",y,.225*Math.min(v.w,v.h)),S=Ct("adj3",y,.225*Math.min(v.w,v.h)),T=E===0?0:b*S/E/2;return{top:v.h/2-b/2,bottom:v.h/2-b/2,left:T,right:T,w:v.w-2*T,h:b}})(t);break;case"leftRightUpArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.225*Math.min(v.w,v.h)),E=Ct("adj2",y,.225*Math.min(v.w,v.h)),S=Ct("adj3",y,.225*Math.min(v.w,v.h)),T=kt("path");b>2*E&&(b=2*E);var x=["M0,".concat(v.h-E),"L".concat(S,",").concat(v.h-2*E),"L".concat(S,",").concat(v.h-E-b/2),"L".concat(v.w/2-b/2,",").concat(v.h-E-b/2),"L".concat(v.w/2-b/2,",").concat(S),"L".concat(v.w/2-E,",").concat(S),"L".concat(v.w/2,",0"),"L".concat(v.w/2+E,",").concat(S),"L".concat(v.w/2+b/2,",").concat(S),"L".concat(v.w/2+b/2,",").concat(v.h-E-b/2),"L".concat(v.w-S,",").concat(v.h-E-b/2),"L".concat(v.w-S,",").concat(v.h-2*E),"L".concat(v.w,",").concat(v.h-E),"L".concat(v.w-S,",").concat(v.h),"L".concat(v.w-S,",").concat(v.h-E+b/2),"L".concat(S,",").concat(v.h-E+b/2),"L".concat(S,",").concat(v.h),"Z"].join(" ");return T.setAttribute("d",x),T})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.225*Math.min(v.w,v.h)),E=Ct("adj2",y,.225*Math.min(v.w,v.h)),S=Ct("adj3",y,.225*Math.min(v.w,v.h)),T=E===0?0:b*S/E/2;return{top:v.h-E-b/2,bottom:E-b/2,left:T,right:T,w:v.w-2*T,h:b}})(t);break;case"bentArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.25*Math.min(v.w,v.h)),E=Ct("adj2",y,.25*Math.min(v.w,v.h)),S=Ct("adj3",y,.25*Math.min(v.w,v.h)),T=Ct("adj4",y,.4375*Math.min(v.w,v.h)),x=kt("path");b>2*E&&(b=2*E);var w=T-b;w<0&&(w=0);var C=["M0,".concat(v.h),"L0,".concat(E-b/2+T),"A".concat(T," ").concat(T," 0 0 1 ").concat(T," ").concat(E-b/2),"L".concat(v.w-S,",").concat(E-b/2),"L".concat(v.w-S,",0"),"L".concat(v.w,",").concat(E),"L".concat(v.w-S,",").concat(2*E),"L".concat(v.w-S,",").concat(E+b/2),"L".concat(b+w,",").concat(E+b/2),"A".concat(w," ").concat(w," 0 0 0 ").concat(b," ").concat(E+b/2+w),"L".concat(b,",").concat(v.h),"Z"].join(" ");return x.setAttribute("d",C),x})(t);break;case"uturnArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.25*Math.min(v.w,v.h)),E=Ct("adj2",y,.25*Math.min(v.w,v.h)),S=Ct("adj3",y,.25*Math.min(v.w,v.h)),T=Ct("adj4",y,.4375*Math.min(v.w,v.h)),x=Ct("adj5",y,.75*Math.min(v.w,v.h)),w=kt("path");b>2*E&&(b=2*E),x<S&&(x=S+b),T>x-S&&(T=x-S);var C=T-b;C>x-S-b&&(C=x-S-b),C<0&&(C=0);var R=E-b/2,N=["M0,".concat(v.h),"L0,".concat(T),"A".concat(T," ").concat(T," 0 0 1 ").concat(T," 0"),"L".concat(v.w-T-R,",0"),"A".concat(T," ").concat(T," 0 0 1 ").concat(v.w-R," ").concat(T),"L".concat(v.w-R,",").concat(x-S),"L".concat(v.w,",").concat(x-S),"L".concat(v.w-E,",").concat(x),"L".concat(v.w-2*E,",").concat(x-S),"L".concat(v.w-E-b/2,",").concat(x-S),"L".concat(v.w-E-b/2,",").concat(b+C),"A".concat(C," ").concat(C," 0 0 0 ").concat(v.w-C-E-b/2," ").concat(b),"L".concat(b+C,",").concat(b),"A".concat(C," ").concat(C," 0 0 0 ").concat(b," ").concat(b+C),"L".concat(b,",").concat(v.h),"Z"].join(" ");return w.setAttribute("d",N),w})(t);break;case"leftUpArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.25*Math.min(v.w,v.h)),E=Ct("adj2",y,.25*Math.min(v.w,v.h)),S=Ct("adj3",y,.25*Math.min(v.w,v.h));b>2*E&&(b=2*E);var T=Math.min(v.w,v.h)-2*E;S>T&&(S=T),S<0&&(S=0);var x=E-b/2,w=kt("path"),C=["M0,".concat(v.h-E),"L".concat(S,",").concat(v.h-2*E),"L".concat(S,",").concat(v.h-E-b/2),"L".concat(v.w-E-b/2,",").concat(v.h-E-b/2),"L".concat(v.w-E-b/2,",").concat(S),"L".concat(v.w-2*E,",").concat(S),"L".concat(v.w-E,",0"),"L".concat(v.w,",").concat(S),"L".concat(v.w-x,",").concat(S),"L".concat(v.w-x,",").concat(v.h-x),"L".concat(S,",").concat(v.h-x),"L".concat(S,",").concat(v.h),"Z"].join(" ");return w.setAttribute("d",C),w})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.25*Math.min(v.w,v.h)),E=Ct("adj2",y,.25*Math.min(v.w,v.h)),S=Ct("adj3",y,.25*Math.min(v.w,v.h));b>2*E&&(b=2*E);var T=Math.min(v.w,v.h)-2*E;S>T&&(S=T),S<0&&(S=0);var x=E===0?0:b*S/E/2;return{top:v.h-E-b/2,bottom:E-b/2,left:x,right:E,w:v.w-x-E,h:b}})(t);break;case"bentUpArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.25*Math.min(v.w,v.h)),E=Ct("adj2",y,.25*Math.min(v.w,v.h)),S=Ct("adj3",y,.25*Math.min(v.w,v.h));b>2*E&&(b=2*E);var T=Math.min(v.w,v.h)-2*E;S>T&&(S=T),S<0&&(S=0);var x=E-b/2,w=kt("path"),C=["M0,".concat(v.h),"L0,".concat(v.h-b),"L".concat(v.w-E-b/2,",").concat(v.h-b),"L".concat(v.w-E-b/2,",").concat(S),"L".concat(v.w-2*E,",").concat(S),"L".concat(v.w-E,",0"),"L".concat(v.w,",").concat(S),"L".concat(v.w-x,",").concat(S),"L".concat(v.w-x,",").concat(v.h),"Z"].join(" ");return w.setAttribute("d",C),w})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.25*Math.min(v.w,v.h));return{top:v.h-b,bottom:0,left:0,right:0,w:v.w,h:b}})(t);break;case"curvedRightArrow":h=(function(y){var v=y.extend,b=y.background,E=Ct("adj1",y,.25*Math.min(v.w,v.h)),S=Ct("adj2",y,.5*Math.min(v.w,v.h)),T=Ct("adj3",y,.25*Math.min(v.w,v.h));E>S&&(E=S);var x=S/2-E/2,w=(v.h-S/2-E/2)/2,C=(v.h-x-E)/2,R=kt("g"),N=kt("path"),k=["M".concat(v.w,",0"),"A ".concat(v.w," ").concat(w," 0 0 0 ").concat(0," ").concat(w),"L0,".concat(C+E),"A ".concat(v.w," ").concat(C," 0 0 1 ").concat(v.w," ").concat(E),"Z"].join(" ");N.setAttribute("d",k),b?.type==="solidFill"&&N.setAttribute("fill",la(b,{dark:.6})||"transparent");var L=kt("path"),A=["M0,".concat(w),"A ".concat(v.w," ").concat(w," 0 0 0 ").concat(v.w-T," ").concat(v.h-S/2-E/2),"L".concat(v.w-T,",").concat(v.h-S),"L".concat(v.w,",").concat(v.h-S/2),"L".concat(v.w-T,",").concat(v.h),"L".concat(v.w-T,",").concat(v.h-x),"A ".concat(v.w," ").concat(C," 0 0 1 0 ").concat(E+C),"Z"].join(" ");return L.setAttribute("d",A),R.appendChild(N),R.appendChild(L),R})(t);break;case"curvedLeftArrow":h=(function(y){var v=y.extend,b=y.background,E=Ct("adj1",y,.25*Math.min(v.w,v.h)),S=Ct("adj2",y,.5*Math.min(v.w,v.h)),T=Ct("adj3",y,.25*Math.min(v.w,v.h));E>S&&(E=S);var x=S/2-E/2,w=(v.h-S/2-E/2)/2,C=(v.h-x-E)/2,R=kt("g"),N=kt("path"),k=["M0,".concat(v.h-S/2),"L".concat(T,",").concat(v.h-S),"L".concat(T,",").concat(v.h-S/2-E/2),"A".concat(v.w," ").concat(w," 0 0 0 ").concat(v.w," ").concat(w),"L".concat(v.w,",").concat(C+E),"A ".concat(v.w," ").concat(C," 0 0 1 ").concat(T," ").concat(v.h-x),"L".concat(T,",").concat(v.h),"Z"].join(" ");N.setAttribute("d",k);var L=kt("path"),A=["M0,0","A ".concat(v.w," ").concat(w," 0 0 1 ").concat(v.w," ").concat(w),"L".concat(v.w,",").concat(C+E),"A ".concat(v.w," ").concat(C," 0 0 0 ").concat(0," ").concat(E),"Z"].join(" ");return L.setAttribute("d",A),b?.type==="solidFill"&&L.setAttribute("fill",la(b,{dark:.6})||"transparent"),R.appendChild(N),R.appendChild(L),R})(t);break;case"curvedUpArrow":h=(function(y){var v=y.extend,b=y.background,E=Ct("adj1",y,.25*Math.min(v.w,v.h)),S=Ct("adj2",y,.5*Math.min(v.w,v.h)),T=Ct("adj3",y,.25*Math.min(v.w,v.h));E>S&&(E=S);var x=S/2-E/2,w=(v.w-S/2-E/2)/2,C=(v.w-x-E)/2,R=kt("g"),N=kt("path"),k=["M".concat(v.w-S/2,",").concat(0),"L".concat(v.w-S,",").concat(T),"L".concat(v.w-S/2-E/2,",").concat(T),"A".concat(w," ").concat(v.h," 0 0 1 ").concat(w," ").concat(v.h),"L".concat(w+E,",").concat(v.h),"A".concat(C," ").concat(v.h," 0 0 0 ").concat(v.w-x," ").concat(T),"L".concat(v.w,",").concat(T),"Z"].join(" ");N.setAttribute("d",k);var L=kt("path"),A=["M".concat(E,",0"),"L".concat(0,",").concat(0),"A ".concat(w," ").concat(v.h," 0 0 0 ").concat(w," ").concat(v.h),"L".concat(w+E,",").concat(v.h),"A ".concat(C," ").concat(v.h," 0 0 1 ").concat(E," ").concat(0),"Z"].join(" ");return L.setAttribute("d",A),b?.type==="solidFill"&&L.setAttribute("fill",la(b,{dark:.6})||"transparent"),R.appendChild(N),R.appendChild(L),R})(t);break;case"curvedDownArrow":h=(function(y){var v=y.extend,b=y.background,E=Ct("adj1",y,.25*Math.min(v.w,v.h)),S=Ct("adj2",y,.5*Math.min(v.w,v.h)),T=Ct("adj3",y,.25*Math.min(v.w,v.h));E>S&&(E=S);var x=S/2-E/2,w=(v.w-S/2-E/2)/2,C=(v.w-x-E)/2,R=kt("g"),N=kt("path"),k=["M".concat(0,",").concat(v.h),"L".concat(E,",").concat(v.h),"A".concat(C," ").concat(v.h," 0 0 1 ").concat(C+E," ").concat(0),"L".concat(w,",").concat(0),"A".concat(w," ").concat(v.h," 0 0 0 ").concat(0," ").concat(v.h),"Z"].join(" ");N.setAttribute("d",k),b?.type==="solidFill"&&N.setAttribute("fill",la(b,{dark:.6})||"transparent");var L=kt("path"),A=["M".concat(v.w-S/2,",").concat(v.h),"L".concat(v.w-S,",").concat(v.h-T),"L".concat(v.w-S/2-E/2,",").concat(v.h-T),"A ".concat(w," ").concat(v.h," 0 0 0 ").concat(w," ").concat(0),"L".concat(w+E,",").concat(0),"A ".concat(C," ").concat(v.h," 0 0 1 ").concat(v.w-x," ").concat(v.h-T),"L".concat(v.w,",").concat(v.h-T),"Z"].join(" ");return L.setAttribute("d",A),R.appendChild(N),R.appendChild(L),R})(t);break;case"stripedRightArrow":h=(function(y){var v=y.extend,b=kt("g"),E=Math.min(v.w,v.h),S=zr("adj1",y,.5)*v.h,T=zr("adj2",y,.5)*E,x=E/8,w=E/16,C=E/32,R=5*E/32,N=v.h/2-S/2,k=v.h/2+S/2,L=kt("path");L.setAttribute("d",["M".concat(0,",").concat(N),"L".concat(C,",").concat(N),"L".concat(C,",").concat(k),"L".concat(0,",").concat(k),"Z"].join(" "));var A=kt("path");A.setAttribute("d",["M".concat(w,",").concat(N),"L".concat(x,",").concat(N),"L".concat(x,",").concat(k),"L".concat(w,",").concat(k),"Z"].join(" "));var D=kt("path"),M=["M".concat(R,",").concat(N),"L".concat(v.w-T,",").concat(N),"L".concat(v.w-T,",").concat(0),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-T,",").concat(v.h),"L".concat(v.w-T,",").concat(k),"L".concat(R,",").concat(k),"Z"].join(" ");return D.setAttribute("d",M),b.appendChild(D),b.appendChild(L),b.appendChild(A),b})(t),p=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.5)*v.h,S=E*(zr("adj2",y,.5)*b)/v.h;return{top:v.h/2-E/2,bottom:v.h/2-E/2,left:0,right:S,w:v.w-S,h:E}})(t);break;case"notchedRightArrow":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.5)*v.h,S=zr("adj2",y,.5)*b,T=E*S/v.h,x=v.h/2-E/2,w=v.h/2+E/2,C=kt("path"),R=["M".concat(0,",").concat(x),"L".concat(v.w-S,",").concat(x),"L".concat(v.w-S,",").concat(0),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-S,",").concat(v.h),"L".concat(v.w-S,",").concat(w),"L".concat(0,",").concat(w),"L".concat(T,",").concat(v.h/2),"Z"].join(" ");return C.setAttribute("d",R),C})(t),p=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.5)*v.h,S=zr("adj2",y,.5)*b,T=E*S/v.h,x=E*S/v.h;return{top:v.h/2-E/2,bottom:v.h/2-E/2,left:T,right:x,w:v.w-T-x,h:E}})(t);break;case"homePlate":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj",y,.5)*b,S=kt("path"),T=["M".concat(0,",").concat(0),"L".concat(v.w-E,",").concat(0),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-E,",").concat(v.h),"L".concat(0,",").concat(v.h),"Z"].join(" ");return S.setAttribute("d",T),S})(t),p=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj",y,.5)*b;return{top:0,bottom:0,left:0,right:E/2,w:v.w-E/2,h:v.h}})(t);break;case"chevron":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj",y,.5)*b,S=kt("path"),T=["M".concat(0,",").concat(0),"L".concat(v.w-E,",").concat(0),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-E,",").concat(v.h),"L".concat(0,",").concat(v.h),"L".concat(E,",").concat(v.h/2),"Z"].join(" ");return S.setAttribute("d",T),S})(t),p=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj",y,.5)*b;return{top:0,bottom:0,left:E,right:E,w:v.w-2*E,h:v.h}})(t);break;case"blockArc":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=kt("path"),S=zr("adj1",y,180),T=zr("adj2",y,0),x=Ct("adj3",y,.25*b),w=v.w/2,C=v.h/2,R=v.w/2,N=v.h/2,k=v.w/2-x,L=v.h/2-x,A=pl(S,w,C,R,N),D=A[0],M=A[1],B=pl(T,w,C,R,N),F=B[0],U=B[1],V=pl(S,w,C,k,L),$=V[0],z=V[1],q=pl(T,w,C,k,L),j=q[0],X=q[1],ie=BA(S,T),ne=["M".concat(D,",").concat(M),"A".concat(R," ").concat(N," 0 ").concat(ie," 1 ").concat(F," ").concat(U),"L".concat(j,",").concat(X),"A".concat(k," ").concat(L," 0 ").concat(ie," 0 ").concat($," ").concat(z),"Z"].join(" ");return E.setAttribute("d",ne),E})(t),p=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,180),S=zr("adj2",y,0),T=Ct("adj3",y,.25*b),x=v.w/2,w=v.h/2,C=v.w/2,R=v.h/2,N=v.w/2-T,k=v.h/2-T,L=pl(E,x,w,C,R),A=L[0],D=L[1],M=pl(S,x,w,C,R),B=M[0],F=M[1],U=pl(E,x,w,N,k),V=U[0],$=U[1],z=pl(S,x,w,N,k),q=[[A,D],[B,F],[V,$],[z[0],z[1]]];q.push(),E>S&&q.push([v.w,v.h/2]),(S>180&&S<=360&&E<180||E>S&&S>=0&&S<180&&E<180)&&q.push([0,v.h/2]),(E<S&&E<90&&S>90||E>S&&S>90||E>S&&E<90)&&q.push([v.w/2,v.h]),(E<S&&E<270&&S>270||E>S&&S>270||E>S&&E<270)&&q.push([v.w/2,0]);var j=1/0,X=1/0,ie=-1/0,ne=-1/0;return q.forEach((function(ue){j=Math.min(ue[0],j),X=Math.min(ue[1],X),ie=Math.max(ue[0],ie),ne=Math.max(ue[1],ne)})),{top:X,bottom:v.h-ne,left:j,right:v.w-ie,w:ie-j,h:ne-X}})(t);break;case"foldedCorner":h=(function(y){var v=y.extend,b=y.background,E=kt("g"),S=kt("path"),T=Ct("adj",y,.16667*Math.min(v.w,v.h)),x=["M0,0","L".concat(v.w,",0"),"L".concat(v.w,",").concat(v.h-T),"L".concat(v.w-T,",").concat(v.h),"L".concat(0,",").concat(v.h),"Z"].join(" ");S.setAttribute("d",x);var w=T*Math.cos(Math.PI/4)/Math.cos(Math.PI/6)*Math.cos(75/180*Math.PI),C=kt("path"),R=["M".concat(v.w-T+w,", ").concat(v.h-T+w),"L".concat(v.w,",").concat(v.h-T),"L".concat(v.w-T,",").concat(v.h),"Z"].join(" ");return C.setAttribute("d",R),b?.type==="solidFill"&&C.setAttribute("fill",la(b,{dark:.6})||"transparent"),E.appendChild(S),E.appendChild(C),E})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.16667*Math.min(v.w,v.h));return{top:0,bottom:b,left:0,right:0,w:v.w,h:v.h-b}})(t);break;case"rightArrowCallout":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.25)*b,S=zr("adj2",y,.25)*b,T=zr("adj3",y,.25)*b,x=zr("adj4",y,.64977)*v.w,w=kt("path"),C=["M".concat(0,",").concat(0),"L".concat(x,",").concat(0),"L".concat(x,",").concat(v.h/2-E/2),"L".concat(v.w-T,",").concat(v.h/2-E/2),"L".concat(v.w-T,",").concat(v.h/2-S),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-T,",").concat(v.h/2+S),"L".concat(v.w-T,",").concat(v.h/2+E/2),"L".concat(x,",").concat(v.h/2+E/2),"L".concat(x,",").concat(v.h),"L".concat(0,",").concat(v.h),"Z"].join(" ");return w.setAttribute("d",C),w})(t),p=(function(y){var v=y.extend,b=zr("adj4",y,.64977)*v.w;return{top:0,bottom:0,left:0,right:v.w-b,w:b,h:v.h}})(t);break;case"leftArrowCallout":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.25)*b,S=zr("adj2",y,.25)*b,T=zr("adj3",y,.25)*b,x=zr("adj4",y,.64977)*v.w,w=kt("path"),C=["M".concat(0,",").concat(v.h/2),"L".concat(T,",").concat(v.h/2-S),"L".concat(T,",").concat(v.h/2-E/2),"L".concat(v.w-x,",").concat(v.h/2-E/2),"L".concat(v.w-x,",").concat(0),"L".concat(v.w,",").concat(0),"L".concat(v.w,",").concat(v.h),"L".concat(v.w-x,",").concat(v.h),"L".concat(v.w-x,",").concat(v.h/2+E/2),"L".concat(T,",").concat(v.h/2+E/2),"L".concat(T,",").concat(v.h/2+S),"Z"].join(" ");return w.setAttribute("d",C),w})(t),p=(function(y){var v=y.extend,b=zr("adj4",y,.64977)*v.w;return{top:0,bottom:0,left:v.w-b,right:0,w:b,h:v.h}})(t);break;case"upArrowCallout":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.25)*b,S=zr("adj2",y,.25)*b,T=zr("adj3",y,.25)*b,x=zr("adj4",y,.64977)*v.h,w=kt("path"),C=["M".concat(0,",").concat(v.h-x),"L".concat(v.w/2-E/2,",").concat(v.h-x),"L".concat(v.w/2-E/2,",").concat(T),"L".concat(v.w/2-S,",").concat(T),"L".concat(v.w/2,",").concat(0),"L".concat(v.w/2+S,",").concat(T),"L".concat(v.w/2+E/2,",").concat(T),"L".concat(v.w/2+E/2,",").concat(v.h-x),"L".concat(v.w,",").concat(v.h-x),"L".concat(v.w,",").concat(v.h),"L".concat(0,",").concat(v.h),"Z"].join(" ");return w.setAttribute("d",C),w})(t),p=(function(y){var v=y.extend,b=zr("adj4",y,.64977)*v.h;return{top:v.h-b,bottom:0,left:0,right:0,w:v.w,h:b}})(t);break;case"downArrowCallout":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.25)*b,S=zr("adj2",y,.25)*b,T=zr("adj3",y,.25)*b,x=zr("adj4",y,.64977)*v.h,w=kt("path"),C=["M".concat(0,",").concat(0),"L".concat(v.w,",").concat(0),"L".concat(v.w,",").concat(x),"L".concat(v.w/2+E/2,",").concat(x),"L".concat(v.w/2+E/2,",").concat(v.h-T),"L".concat(v.w/2+S,",").concat(v.h-T),"L".concat(v.w/2,",").concat(v.h),"L".concat(v.w/2-S,",").concat(v.h-T),"L".concat(v.w/2-E/2,",").concat(v.h-T),"L".concat(v.w/2-E/2,",").concat(x),"L".concat(0,",").concat(x),"Z"].join(" ");return w.setAttribute("d",C),w})(t),p=(function(y){var v=y.extend,b=zr("adj4",y,.64977)*v.h;return{top:0,bottom:v.h-b,left:0,right:0,w:v.w,h:b}})(t);break;case"leftRightArrowCallout":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.25)*b,S=zr("adj2",y,.25)*b,T=zr("adj3",y,.25)*b,x=zr("adj4",y,.48123)*v.w,w=kt("path"),C=["M".concat(0,",").concat(v.h/2),"L".concat(T,",").concat(v.h/2-S),"L".concat(T,",").concat(v.h/2-E/2),"L".concat(v.w/2-x/2,",").concat(v.h/2-E/2),"L".concat(v.w/2-x/2,",").concat(0),"L".concat(v.w/2+x/2,",").concat(0),"L".concat(v.w/2+x/2,",").concat(v.h/2-E/2),"L".concat(v.w-T,",").concat(v.h/2-E/2),"L".concat(v.w-T,",").concat(v.h/2-S),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-T,",").concat(v.h/2+S),"L".concat(v.w-T,",").concat(v.h/2+E/2),"L".concat(v.w/2+x/2,",").concat(v.h/2+E/2),"L".concat(v.w/2+x/2,",").concat(v.h),"L".concat(v.w/2-x/2,",").concat(v.h),"L".concat(v.w/2-x/2,",").concat(v.h/2+E/2),"L".concat(T,",").concat(v.h/2+E/2),"L".concat(T,",").concat(v.h/2+S),"Z"].join(" ");return w.setAttribute("d",C),w})(t),p=(function(y){var v=y.extend,b=zr("adj4",y,.48123)*v.w;return{top:0,bottom:0,left:v.w/2-b/2,right:v.w/2-b/2,w:b,h:v.h}})(t);break;case"quadArrowCallout":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.18515)*b,S=zr("adj2",y,.18515)*b,T=zr("adj3",y,.18515)*b,x=zr("adj4",y,.48123)*v.w,w=zr("adj4",y,.48123)*v.h,C=kt("path"),R=["M".concat(0,",").concat(v.h/2),"L".concat(T,",").concat(v.h/2-S),"L".concat(T,",").concat(v.h/2-E/2),"L".concat(v.w/2-x/2,",").concat(v.h/2-E/2),"L".concat(v.w/2-x/2,",").concat(v.h/2-w/2),"L".concat(v.w/2-E/2,",").concat(v.h/2-w/2),"L".concat(v.w/2-E/2,",").concat(T),"L".concat(v.w/2-S,",").concat(T),"L".concat(v.w/2,",").concat(0),"L".concat(v.w/2+S,",").concat(T),"L".concat(v.w/2+E/2,",").concat(T),"L".concat(v.w/2+E/2,",").concat(v.h/2-w/2),"L".concat(v.w/2+x/2,",").concat(v.h/2-w/2),"L".concat(v.w/2+x/2,",").concat(v.h/2-E/2),"L".concat(v.w-T,",").concat(v.h/2-E/2),"L".concat(v.w-T,",").concat(v.h/2-S),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-T,",").concat(v.h/2+S),"L".concat(v.w-T,",").concat(v.h/2+E/2),"L".concat(v.w/2+x/2,",").concat(v.h/2+E/2),"L".concat(v.w/2+x/2,",").concat(v.h/2+w/2),"L".concat(v.w/2+E/2,",").concat(v.h/2+w/2),"L".concat(v.w/2+E/2,",").concat(v.h-T),"L".concat(v.w/2+S,",").concat(v.h-T),"L".concat(v.w/2,",").concat(v.h),"L".concat(v.w/2-S,",").concat(v.h-T),"L".concat(v.w/2-E/2,",").concat(v.h-T),"L".concat(v.w/2-E/2,",").concat(v.h/2+w/2),"L".concat(v.w/2-x/2,",").concat(v.h/2+w/2),"L".concat(v.w/2-x/2,",").concat(v.h/2+E/2),"L".concat(T,",").concat(v.h/2+E/2),"L".concat(T,",").concat(v.h/2+S),"Z"].join(" ");return C.setAttribute("d",R),C})(t),p=(function(y){var v=y.extend,b=zr("adj4",y,.48123)*v.w,E=zr("adj4",y,.48123)*v.h;return{top:v.h/2-E/2,bottom:v.h/2-E/2,left:v.w/2-b/2,right:v.w/2-b/2,w:b,h:E}})(t)}h&&(g?a?.type==="blipFill"?(function(y,v,b){var E=y.background,S=E===void 0?{}:E,T=y.extend,x=S.base64,w=S.alpha,C=S.fillRect,R=C===void 0?{}:C,N=R.b,k=N===void 0?0:N,L=R.t,A=L===void 0?0:L,D=R.l,M=D===void 0?0:D,B=R.r,F=B===void 0?0:B,U=kt("defs"),V=kt("pattern");V.setAttribute("id","background_"+y.uuid),V.setAttribute("patternUnits","userSpaceOnUse"),V.setAttribute("width",T.w+""),V.setAttribute("height",T.h+"");var $=kt("image");$.setAttribute("href",x),$.setAttribute("preserveAspectRatio","none");var z=T.w*M,q=T.h*A,j=T.w*(1-M-F),X=T.h*(1-A-k);$.setAttribute("width",j+""),$.setAttribute("height",X+""),$.setAttribute("x",z+""),$.setAttribute("y",q+""),typeof w=="number"&&$.setAttribute("opacity",w+""),V.appendChild($),U.appendChild(V),v.appendChild(U),b.setAttribute("fill","url(#background_".concat(y.uuid,")"))})(t,f,h):a?.type==="gradFill"?(function(y,v,b){var E=y.background,S=E===void 0?{}:E;y.extend;var T=S.gsList,x=S.lin,w=S.path,C=S.tileRect,R=C===void 0?{}:C,N=kt("defs"),k=kt(w==="circle"?"radialGradient":"linearGradient");k.setAttribute("id","background_grad_fill_"+y.uuid);var L=T||[];if(L.sort((function(F,U){return F.pos-U.pos})),L.forEach((function(F){var U=kt("stop");U.setAttribute("offset","".concat(100*F.pos,"%")),U.setAttribute("stop-color",la(F.color)),k.appendChild(U)})),w==="circle"){var A=R.r,D=R.l,M=R.t,B=R.b;A===-1?k.setAttribute("cx","100%"):D===-1&&k.setAttribute("cx","0%"),M===-1?k.setAttribute("cy","0%"):B===-1&&k.setAttribute("cy","100%")}else x?.ang&&k.setAttribute("gradientTransform","rotate(".concat(x.ang,")"));N.appendChild(k),v.appendChild(N),b.setAttribute("fill","url(#background_grad_fill_".concat(y.uuid,")"))})(t,f,h):h.setAttribute("fill",la(a)||"transparent"):h.setAttribute("fill","transparent"),n.width?(h.setAttribute("stroke-width",n.width+"px"),h.setAttribute("stroke",la(n.color)||"transparent")):h.setAttribute("stroke-width","0"),h.setAttribute("stroke-dasharray",(function(y){return y&&y.type!=="solid"?({sysDot:[1,1],sysDash:[3,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]}[y.type]||[]).map((function(v){return v*y.width})).join(","):""})(n)),h.setAttribute("stroke-linecap",n.cap&&{sq:"square",rnd:"round",flat:"butt"}[n.cap]||"square"),h.setAttribute("stroke-linejoin",n.lineJoin||"round"),n.lineJoin==="miter"&&h.setAttribute("stroke-miterlimit",n.miterLim+""),f.appendChild(h));var m=[];s&&m.push("scaleX(-1)"),o&&m.push("scaleY(-1)"),f.style.setProperty("transform",m.join(" ")),l.appendChild(f);var _=(function(y,v,b){var E;b===void 0&&(b=!1);var S=y.inheritProps,T=y.props,x=y.paragraphs;if(!x||x.length===0)return null;var w=qt(qt({},S),T),C=document.createElement("div");switch(C.className="text-wrapper",C.style.boxSizing="border-box",C.style.position="absolute",C.style.left=v.left+"px",w.vert==="eaVert"?(C.style.writingMode="vertical-rl",C.style.height=v.h+"px"):C.style.width=v.w+"px",w.anchor){case"b":C.style.bottom=v.bottom+"px";break;case"t":C.style.top=v.top+"px";break;case"ctr":C.style.top=v.top+v.h/2+"px",C.style.transform="translateY(-50%)";break;default:b?C.style.top=v.top+"px":(C.style.top=v.top+v.h/2+"px",C.style.transform="translateY(-50%)")}var R=[w.hasOwnProperty("tIns")?Math.floor(w.tIns)+"px":"3px",w.hasOwnProperty("rIns")?Math.floor(w.rIns)+"px":"5px",w.hasOwnProperty("bIns")?Math.floor(w.bIns)+"px":"3px",w.hasOwnProperty("lIns")?Math.floor(w.lIns)+"px":"5px"];C.style.padding=R.join(" ");for(var N={},k=0,L=function(M){var B=qt(qt({},M.inheritProps),M.props),F=void 0;if(B.buAutoNum){var U=B.level?+B.level:0;N[U]||(N[U]=0),!((E=M.rows)===null||E===void 0)&&E.length&&N[U]++,Object.keys(N).forEach((function(V){+V>U&&(N[V]=0)})),F=v6(M,N[U],{isFirst:k===0,isLast:x.length-1===k,bodyProps:w})}else F=v6(M,0,{isFirst:k===0,isLast:x.length-1===k,bodyProps:w});C.appendChild(F),k++},A=0,D=x;A<D.length;A++)L(D[A]);return C})(t.textBody,p,t.isTextBox);return _&&l.appendChild(_),i&&l.style.setProperty("transform","rotate(".concat(i,"deg)")),l}function xje(t){var e=document.createElement("div"),r=t.extend;t.chExtend;var n=t.offset;t.chOffset;var a=t.flipV,i=t.flipH,s=t.rotate,o=n.x,l=n.y,u=r.w,d=r.h;e.className="group",e.style.position="absolute",e.style.left=o+"px",e.style.top=l+"px",e.style.width=u+"px",e.style.height=d+"px";var h=[];i&&h.push("scaleX(-1)"),a&&h.push("scaleY(-1)"),s&&h.push("rotate(".concat(s,"deg)")),e.style.transformOrigin="center center",e.style.transform=h.join(" ");for(var f=0;f<t.nodes.length;f++){var p=t.nodes[f],g=void 0;p instanceof m6?g=HJ(p):p instanceof mI?g=YJ(p):p instanceof Fde&&(g=xje(p)),g&&e.appendChild(g)}return e}var kh={};function _Ie(t,e){kh[t]||(kh[t]=[]),kh[t].push(e)}function mM(t,e){if(kh[t])for(var r=0;r<kh[t].length;r++)kh[t][r](e)}function zW(t,e){kh?kh[t]&&(kh[t]=kh[t].filter((function(r){return r!==e}))):kh[t]=[]}var bIe=(function(){function t(e,r,n){this.scale=1,this.wrapper=e,this.pptx=r,this.options=n,this._calcScaleAndRenderPort()}return t.prototype._calcScaleAndRenderPort=function(){var e=this.options.viewPort.width/this.pptx.width;this.scale=e;var r=this.options.viewPort.width,n=this.pptx.height*this.scale;this.renderPort={width:r,height:n,left:0,top:0}},t.prototype.renderSlide=function(e){var r=this.pptx.slides[e],n=document.createElement("div");n.classList.add("pptx-preview-slide-wrapper"),n.classList.add("pptx-preview-slide-wrapper-".concat(e)),n.style.setProperty("width",this.renderPort.width+"px"),n.style.setProperty("height",this.renderPort.height+"px"),n.style.setProperty("position",this.options.mode==="slide"?"absolute":"relative"),this.options.mode==="slide"&&n.style.setProperty("top",(this.options.viewPort.height-this.renderPort.height)/2+"px"),n.style.margin="0 auto 10px",n.style.setProperty("background","#fff"),n.style.setProperty("overflow","hidden"),this._renderBackground(r,n),this._renderSlideMaster(r.slideMaster,n),this._renderSlideLayout(r.slideLayout,n),this._renderSlide(r,n),this.wrapper.append(n)},t.prototype._renderSlideMaster=function(e,r){var n=document.createElement("div");n.classList.add("slide-master-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var a=FR([],e.nodes,!0).filter((function(o){return o.userDrawn}));a.sort((function(o,l){return o.order>l.order?1:-1}));for(var i=0;i<a.length;i++){var s=this._renderNode(a[i]);s&&n.append(s)}r.append(n)},t.prototype._renderSlideLayout=function(e,r){var n=document.createElement("div");n.classList.add("slide-layout-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var a=FR([],e.nodes,!0).filter((function(o){return o.userDrawn}));a.sort((function(o,l){return o.order>l.order?1:-1}));for(var i=0;i<a.length;i++){var s=this._renderNode(a[i]);s&&n.append(s)}r.append(n)},t.prototype._renderSlide=function(e,r){var n=document.createElement("div");n.classList.add("slide-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var a=FR([],e.nodes,!0);a.sort((function(o,l){return o.order>l.order?1:-1}));for(var i=0;i<a.length;i++){var s=this._renderNode(a[i]);s&&n.append(s)}r.append(n)},t.prototype._renderNode=function(e){return e instanceof m6?HJ(e):e instanceof mI?YJ(e):e instanceof Fde?xje(e):e instanceof Eje?(function(r){var n=document.createElement("div"),a=r.extend,i=r.offset,s=r.flipV,o=r.flipH,l=r.rotate,u=i.x,d=i.y,h=a.w,f=a.h;n.className="smart-chart-diagram",n.style.position="absolute",n.style.left=u+"px",n.style.top=d+"px",n.style.width=h+"px",n.style.height=f+"px";var p=[];o&&p.push("scaleX(-1)"),s&&p.push("scaleY(-1)"),l&&p.push("rotate(".concat(l,"deg)")),n.style.transformOrigin="center center",n.style.transform=p.join(" ");for(var g=0;g<r.nodes.length;g++){var m=r.nodes[g],_=void 0;m instanceof m6?_=HJ(m):m instanceof mI&&(_=YJ(m)),_&&n.appendChild(_)}return n})(e):e instanceof bje?(function(r){var n=r.extend,a=r.offset,i=r.tr,s=r.tableGrid.gridCol,o=document.createElement("div");o.style.position="absolute",o.style.left=a.x+"px",o.style.top=a.y+"px",o.style.width=n.w+"px",o.style.height=n.h+"px";var l=document.createElement("table");return l.style.borderCollapse="collapse",i.forEach((function(u){var d=u.props,h=u.td,f=d.height,p=document.createElement("tr");p.style.height=f+"px",h.forEach((function(g,m){var _,y,v=g.props,b=g.inheritTcStyle,E=g.inheritTcTxStyle,S=g.paragraphs;if(!v.vMerge&&!v.hMerge){var T=document.createElement("td");T.style.width=(((_=s[m])===null||_===void 0?void 0:_.width)||30)+"px",v.rowSpan&&T.setAttribute("rowspan",v.rowSpan+""),v.gridSpan&&T.setAttribute("colspan",v.gridSpan+"");var x=v.background||b.background;x&&(T.style.background=la(x));var w=qt(qt({},b.border),v.border),C=function(U){return U?U.toLowerCase().includes("dash")?"dashed":U.toLowerCase().includes("dot")?"dotted":"solid":"solid"};w.bottom&&(T.style.borderBottom="".concat(w.bottom.width,"px ").concat(C(w.bottom.type)," ").concat(la(w.bottom.color))),w.top&&(T.style.borderTop="".concat(w.top.width,"px ").concat(C(w.top.type)," ").concat(la(w.top.color))),w.left&&(T.style.borderLeft="".concat(w.left.width,"px ").concat(C(w.left.type)," ").concat(la(w.left.color))),w.right&&(T.style.borderRight="".concat(w.right.width,"px ").concat(C(w.right.type)," ").concat(la(w.right.color)));var R=document.createElement("div");switch(R.className="text-wrapper",R.style.boxSizing="border-box",R.style.width="100%",R.style.height="100%",R.style.overflow="hidden",R.style.display="flex",R.style.flexDirection="column",v.anchor){case"b":R.style.justifyContent="flex-end";break;case"t":R.style.justifyContent="flex-start";break;case"ctr":R.style.justifyContent="center"}var N=[v.hasOwnProperty("marT")?Math.floor(v.marT)+"px":"3px",v.hasOwnProperty("marR")?Math.floor(v.marR-1)+"px":"5px",v.hasOwnProperty("marB")?Math.floor(v.marB)+"px":"3px",v.hasOwnProperty("marL")?Math.floor(v.marL-1)+"px":"5px"];R.style.padding=N.join(" ");for(var k=qt({},v),L={},A=S.map((function(U){return qt(qt({},U),{props:qt({align:"l"},U.props),inheritRProps:qt(qt({},U.inheritRProps),E)})})),D=0,M=function(U){var V=qt(qt({},U.inheritProps),U.props),$=void 0;if(V.buAutoNum){var z=V.level?+V.level:0;L[z]||(L[z]=0),!((y=U.rows)===null||y===void 0)&&y.length&&L[z]++,Object.keys(L).forEach((function(q){+q>z&&(L[q]=0)})),$=v6(U,L[z],{isFirst:D===0,isLast:S.length-1===D,bodyProps:k})}else $=v6(U,0,{isFirst:D===0,isLast:S.length-1===D,bodyProps:k});R.appendChild($),D++},B=0,F=A;B<F.length;B++)M(F[B]);T.append(R),p.append(T)}})),l.append(p)})),o.append(l),o})(e):e instanceof Sje?(function(r){var n=document.createElement("div"),a=r.extend,i=r.offset,s=r.flipV,o=r.flipH,l=r.rotate,u=r.options,d=i.x,h=i.y,f=a.w,p=a.h;n.className="chart-node",n.style.position="absolute",n.style.left=d+"px",n.style.top=h+"px",n.style.width=f+"px",n.style.height=p+"px";var g=[];return o&&g.push("scaleX(-1)"),s&&g.push("scaleY(-1)"),l&&g.push("rotate(".concat(l,"deg)")),n.style.transformOrigin="center center",n.style.transform=g.join(" "),setTimeout((function(){var m=GVt(n,null,{renderer:"svg"});m.setOption(u),_Ie("destroy",(function(){m&&m.dispose(),m&&(m=null)})),_Ie("removeSlide",(function(){m&&m.dispose(),m&&(m=null)}))}),0),n})(e):void 0},t.prototype._renderBackground=function(e,r){var n,a=document.createElement("div");a.classList.add("slide-background"),a.style.setProperty("position","absolute"),a.style.setProperty("left","0"),a.style.setProperty("top","0"),a.style.setProperty("width","100%"),a.style.setProperty("height","100%");var i=e.background;if(i.type==="none"&&(i=e.slideLayout.background),i.type==="none"&&(i=e.slideMaster.background),i.type==="blipFill"){var s=i,o=s.base64,l=s.alpha,u=s.fillRect,d=u===void 0?{}:u,h=d.b,f=h===void 0?0:h,p=d.t,g=p===void 0?0:p,m=d.l,_=m===void 0?0:m,y=d.r,v=y===void 0?0:y,b=this.renderPort.width*_,E=this.renderPort.height*g,S=this.renderPort.width*(1-_-v),T=this.renderPort.height*(1-g-f);a.style.backgroundImage="url(".concat(o,")"),a.style.backgroundSize="".concat(S," ").concat(T),a.style.backgroundPosition="".concat(b,"px ").concat(E,"px"),l&&(a.style.opacity=l+""),a.style.backgroundRepeat="no-repeat"}else if(i.type==="solidFill"){var x=la(e.background)||la(e.slideLayout.background)||la(e.slideMaster.background);x?a.style.setProperty("background",x):a.style.setProperty("background","#fff")}else if(i.type==="gradFill")if(i.path==="circle"){var w=i.tileRect||{},C=(f=w.b,g=w.t,_=w.l,"radial-gradient(circle at ");(v=w.r)===-1?C+=" right":_===-1&&(C+=" left"),g===-1?C+=" top":f===-1&&(C+=" bottom"),f||g||_||v||(C+=" center"),C+=",",C+=i.gsList.map((function(N){return"".concat(la(N.color)," ").concat(100*N.pos+"%")})).join(","),a.style.setProperty("background",C)}else{var R=((n=i?.lin)===null||n===void 0?void 0:n.ang)||0;C="linear-gradient(".concat(R+90,"deg,"),C+=i.gsList.map((function(N){return"".concat(la(N.color)," ").concat(100*N.pos+"%")})).join(","),a.style.setProperty("background",C)}r.append(a)},t})(),rir=(function(){function t(e,r){this.currentIndex=-1,this.dom=e,this.options=r,this._renderWrapper()}return Object.defineProperty(t.prototype,"slideCount",{get:function(){var e,r;return(r=(e=this.pptx)===null||e===void 0?void 0:e.slides)===null||r===void 0?void 0:r.length},enumerable:!1,configurable:!0}),t.prototype._renderWrapper=function(){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper"),e.setAttribute("position","relative"),e.style.setProperty("background","#000"),e.style.setProperty("width",this.options.width+"px"),this.options.height&&e.style.setProperty("height",this.options.height+"px"),e.style.setProperty("position","relative"),e.style.setProperty("margin","0 auto"),this.options.height&&e.style.setProperty("overflow-y","auto"),this.dom.append(e),this.wrapper=e},t.prototype.renderNextButton=function(){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper-next"),e.style.setProperty("position","absolute"),e.style.setProperty("bottom","20px"),e.style.setProperty("right","80px"),e.style.setProperty("z-index","100"),e.style.setProperty("cursor","pointer"),e.style.setProperty("width","40px"),e.style.setProperty("height","40px"),e.style.setProperty("background","#666666"),e.style.setProperty("border-radius","100%");var r=document.createElement("div");return r.style.setProperty("width","10px"),r.style.setProperty("height","10px"),r.style.setProperty("border-left","2px solid #fff"),r.style.setProperty("border-bottom","2px solid #fff"),r.style.setProperty("transform","rotate(225deg)"),r.style.setProperty("position","absolute"),r.style.setProperty("top","15px"),r.style.setProperty("left","15px"),e.append(r),e},t.prototype.renderPreButton=function(){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper-next"),e.style.setProperty("position","absolute"),e.style.setProperty("bottom","20px"),e.style.setProperty("right","140px"),e.style.setProperty("z-index","100"),e.style.setProperty("cursor","pointer"),e.style.setProperty("width","40px"),e.style.setProperty("height","40px"),e.style.setProperty("background","#666666"),e.style.setProperty("border-radius","100%");var r=document.createElement("div");return r.style.setProperty("width","10px"),r.style.setProperty("height","10px"),r.style.setProperty("border-left","2px solid #fff"),r.style.setProperty("border-bottom","2px solid #fff"),r.style.setProperty("transform","rotate(45deg)"),r.style.setProperty("position","absolute"),r.style.setProperty("top","15px"),r.style.setProperty("left","15px"),e.append(r),e},t.prototype.updatePagination=function(){var e=this.wrapper.querySelector(".pptx-preview-wrapper-pagination");e&&(e.innerText="".concat(this.currentIndex+1,"/").concat(this.slideCount))},t.prototype.renderPagination=function(e){var r=document.createElement("div");r.classList.add("pptx-preview-wrapper-pagination"),r.innerText="".concat(this.currentIndex+1,"/").concat(this.slideCount),r.style.setProperty("position","absolute"),r.style.setProperty("bottom","33px"),r.style.setProperty("right","20px"),r.style.setProperty("color","#666666"),r.style.setProperty("font-size","14px"),r.style.setProperty("z-index","100"),e.append(r)},t.prototype.removeCurrentSlide=function(){var e=this.wrapper.querySelector(".pptx-preview-slide-wrapper-".concat(this.currentIndex));e&&this.wrapper.removeChild(e),mM("removeSlide")},t.prototype.renderNextSlide=function(){this.removeCurrentSlide(),this.currentIndex=this.currentIndex<this.slideCount-1?this.currentIndex+1:0,this.htmlRender.renderSlide(this.currentIndex),this.updatePagination()},t.prototype.renderPreSlide=function(){this.removeCurrentSlide(),this.currentIndex=this.currentIndex>0?this.currentIndex-1:this.slideCount-1,this.htmlRender.renderSlide(this.currentIndex),this.updatePagination()},t.prototype._addPre=function(e){},t.prototype.preview=function(e){var r=this;return mM("destroy"),zW("destroy"),new Promise((function(n,a){r.wrapper.innerHTML="";var i=r.pptx=new dIe;i.load(e).then((function(){try{var s=r.htmlRender=new bIe(r.wrapper,i,{viewPort:{width:r.options.width,height:r.options.height},mode:r.options.mode});if(r.options.mode==="slide"){var o=r.renderNextButton();o.onclick=function(){r.renderNextSlide()},r.wrapper.append(o);var l=r.renderPreButton();l.onclick=function(){r.renderPreSlide()},r.wrapper.append(l),r.renderPagination(r.wrapper),r._addPre(r.wrapper),r.currentIndex=0,s.renderSlide(0)}else for(var u=0;u<i.slides.length;u++)s.renderSlide(u);n(i)}catch(d){a(d)}})).catch((function(s){a(s)}))}))},t.prototype.load=function(e){var r=this;return mM("destroy"),zW("destroy"),new Promise((function(n,a){r.wrapper.innerHTML="";var i=r.pptx=new dIe;i.load(e).then((function(){try{r.htmlRender=new bIe(r.wrapper,i,{viewPort:{width:r.options.width,height:r.options.height},mode:r.options.mode}),n(i)}catch(s){a(s)}})).catch((function(s){a(s)}))}))},t.prototype.renderSingleSlide=function(e){this.removeCurrentSlide(),this.currentIndex=e,this.htmlRender.renderSlide(this.currentIndex)},t.prototype.destroy=function(){mM("destroy"),zW("destroy")},t})();function nir(t,e){return new rir(t,e)}const air=t=>{const{url:e,requestHeaders:r}=t,n=Me.useRef(null),a=async()=>{if(!n.current)return;const i=nir(n.current,{width:960,height:540}),o=await(await fetch(e,{headers:r})).arrayBuffer();i.preview(o)};return Me.useEffect(()=>{a()},[e]),ar.jsx("div",{ref:n})};var wje=function(t){return typeof t=="function"},iir=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function EIe(t,e){if(t===e)return!0;for(var r=0;r<t.length;r++)if(!Object.is(t[r],e[r]))return!1;return!0}function sir(t){var e=Me.useRef(t);return e.current=t,e}var Cje=function(t){iir&&(wje(t)||console.error("useUnmount expected parameter is a function, got ".concat(typeof t)));var e=sir(t);Me.useEffect(function(){return function(){e.current()}},[])},Aje=!!(typeof window<"u"&&window.document&&window.document.createElement);function WJ(t,e){if(Aje){if(!t)return e;var r;return wje(t)?r=t():"current"in t?r=t.current:r=t,r}}var Rje=function(t){var e=function(r,n,a){var i=Me.useRef(!1),s=Me.useRef([]),o=Me.useRef([]),l=Me.useRef(void 0);t(function(){var u,d=Array.isArray(a)?a:[a],h=d.map(function(f){return WJ(f)});if(!i.current){i.current=!0,s.current=h,o.current=n,l.current=r();return}(h.length!==s.current.length||!EIe(s.current,h)||!EIe(o.current,n))&&((u=l.current)===null||u===void 0||u.call(l),s.current=h,o.current=n,l.current=r())}),Cje(function(){var u;(u=l.current)===null||u===void 0||u.call(l),i.current=!1})};return e},oir=Rje(Me.useEffect);function lir(t){var e=Me.useRef(0),r=Fze(Me.useState(t),2),n=r[0],a=r[1],i=Me.useCallback(function(s){cancelAnimationFrame(e.current),e.current=requestAnimationFrame(function(){a(s)})},[]);return Cje(function(){cancelAnimationFrame(e.current)}),[n,i]}var Nje=(function(){if(typeof Map<"u")return Map;function t(e,r){var n=-1;return e.some(function(a,i){return a[0]===r?(n=i,!0):!1}),n}return(function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(r){var n=t(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},e.prototype.set=function(r,n){var a=t(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},e.prototype.delete=function(r){var n=this.__entries__,a=t(n,r);~a&&n.splice(a,1)},e.prototype.has=function(r){return!!~t(this.__entries__,r)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,i=this.__entries__;a<i.length;a++){var s=i[a];r.call(n,s[1],s[0])}},e})()})(),qJ=typeof window<"u"&&typeof document<"u"&&window.document===document,y6=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),cir=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(y6):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}})(),uir=2;function dir(t,e){var r=!1,n=!1,a=0;function i(){r&&(r=!1,t()),n&&o()}function s(){cir(i)}function o(){var l=Date.now();if(r){if(l-a<uir)return;n=!0}else r=!0,n=!1,setTimeout(s,e);a=l}return o}var hir=20,fir=["top","right","bottom","left","width","height","size","weight"],pir=typeof MutationObserver<"u",gir=(function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=dir(this.refresh.bind(this),hir)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var r=this.observers_,n=r.indexOf(e);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return e.forEach(function(r){return r.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!qJ||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),pir?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!qJ||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var r=e.propertyName,n=r===void 0?"":r,a=fir.some(function(i){return!!~n.indexOf(i)});a&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t})(),Ije=(function(t,e){for(var r=0,n=Object.keys(e);r<n.length;r++){var a=n[r];Object.defineProperty(t,a,{value:e[a],enumerable:!1,writable:!1,configurable:!0})}return t}),Bx=(function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||y6}),kje=P8(0,0,0,0);function _6(t){return parseFloat(t)||0}function SIe(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce(function(n,a){var i=t["border-"+a+"-width"];return n+_6(i)},0)}function mir(t){for(var e=["top","right","bottom","left"],r={},n=0,a=e;n<a.length;n++){var i=a[n],s=t["padding-"+i];r[i]=_6(s)}return r}function vir(t){var e=t.getBBox();return P8(0,0,e.width,e.height)}function yir(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return kje;var n=Bx(t).getComputedStyle(t),a=mir(n),i=a.left+a.right,s=a.top+a.bottom,o=_6(n.width),l=_6(n.height);if(n.boxSizing==="border-box"&&(Math.round(o+i)!==e&&(o-=SIe(n,"left","right")+i),Math.round(l+s)!==r&&(l-=SIe(n,"top","bottom")+s)),!bir(t)){var u=Math.round(o+i)-e,d=Math.round(l+s)-r;Math.abs(u)!==1&&(o-=u),Math.abs(d)!==1&&(l-=d)}return P8(a.left,a.top,o,l)}var _ir=(function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof Bx(t).SVGGraphicsElement}:function(t){return t instanceof Bx(t).SVGElement&&typeof t.getBBox=="function"}})();function bir(t){return t===Bx(t).document.documentElement}function Eir(t){return qJ?_ir(t)?vir(t):yir(t):kje}function Sir(t){var e=t.x,r=t.y,n=t.width,a=t.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(i.prototype);return Ije(s,{x:e,y:r,width:n,height:a,top:r,right:e+n,bottom:a+r,left:e}),s}function P8(t,e,r,n){return{x:t,y:e,width:r,height:n}}var Tir=(function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=P8(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=Eir(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t})(),xir=(function(){function t(e,r){var n=Sir(r);Ije(this,{target:e,contentRect:n})}return t})(),wir=(function(){function t(e,r,n){if(this.activeObservations_=[],this.observations_=new Nje,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=r,this.callbackCtx_=n}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Bx(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(e)||(r.set(e,new Tir(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Bx(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(e)&&(r.delete(e),r.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&e.activeObservations_.push(r)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new xir(n.target,n.broadcastRect())});this.callback_.call(e,r,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t})(),Oje=typeof WeakMap<"u"?new WeakMap:new Nje,Dje=(function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=gir.getInstance(),n=new wir(e,r,this);Oje.set(this,n)}return t})();["observe","unobserve","disconnect"].forEach(function(t){Dje.prototype[t]=function(){var e;return(e=Oje.get(this))[t].apply(e,arguments)}});var Cir=(function(){return typeof y6.ResizeObserver<"u"?y6.ResizeObserver:Dje})(),Air=Rje(Me.useLayoutEffect),Rir=Aje?Air:oir;function Nir(t){var e=Fze(lir(function(){var a=WJ(t);return a?{width:a.clientWidth,height:a.clientHeight}:void 0}),2),r=e[0],n=e[1];return Rir(function(){var a=WJ(t);if(a){var i=new Cir(function(s){s.forEach(function(o){var l=o.target,u=l.clientWidth,d=l.clientHeight;n({width:u,height:d})})});return i.observe(a),function(){i.disconnect()}}},[],t),r}const Iir=t=>{const{data:e,requestHeaders:r}=t,n=Me.useRef(null),a=Nir(n),[i,s]=Me.useState(!1),[o,l]=Me.useState(e?.url);Me.useEffect(()=>{if(!r||!e?.url){l(i?e?.thumbnail:e?.url);return}const d=i?e?.thumbnail:e?.url;d&&fetch(d,{headers:r}).then(h=>h.blob()).then(h=>l(URL.createObjectURL(h)))},[e?.url,e?.thumbnail,i,r]);const u=Me.useMemo(()=>{const{width:d,height:h}=e.metadata??{};return!a||!d||!h?0:Math.round(a.width*h/d)},[a?.width,e?.metadata?.width,e?.metadata?.height]);return ar.jsx("div",{ref:n,children:ar.jsx(Xi.Image,{preview:!1,width:a?.width,height:u,placeholder:ar.jsx(Xi.Skeleton.Node,{active:!0,classNames:{root:"size-full!",content:"size-full!"}}),src:o,onError:()=>{s(!0)}})})},kir=t=>{const{url:e,requestHeaders:r}=t,[n,a]=Me.useState(e);return Me.useEffect(()=>{if(!r){a(e);return}fetch(e,{headers:r}).then(i=>i.blob()).then(i=>a(URL.createObjectURL(i)))},[e,r]),ar.jsx("video",{src:n,className:"w-full",controls:!0})},Oir=t=>{const{data:e,i18n:r}=t,n=(i,s)=>i==="markdown"?ar.jsx(AGe,{url:s,requestHeaders:t.requestHeaders}):i==="pdf"?ar.jsx(yFt,{url:s,...t}):i==="docx"?ar.jsx(V8t,{url:s,...t}):i==="pptx"?ar.jsx(air,{url:s,...t}):null;return(()=>{const{url:i}=e,s=e?.metadata?.content_type;if(!(!s||!i))return s==="image"?ar.jsx(Iir,{...t}):s==="video"?ar.jsx(kir,{url:i,requestHeaders:t.requestHeaders}):ar.jsx(Xi.Collapse,{size:"small",defaultActiveKey:["preview"],classNames:{root:"bg-transparent",body:"p-4!"},items:[{key:"preview",label:r?.labels?.preview??"Preview",children:n(s,i)}]})})()},Dir=t=>{const{data:e,i18n:r}=t;return ar.jsx(Xi.Collapse,{size:"small",classNames:{root:"bg-transparent",body:"p-4!"},items:[{key:"ai-interpretation",label:r?.labels?.aiInterpretation??"AI Interpretation",children:ar.jsx(AGe,{content:e?.ai_insights?.text})}]})},Lir=(t,e)=>{const r=new Array(t.length+e.length);for(let n=0;n<t.length;n++)r[n]=t[n];for(let n=0;n<e.length;n++)r[t.length+n]=e[n];return r},Mir=(t,e)=>({classGroupId:t,validator:e}),Lje=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),b6="-",TIe=[],Pir="arbitrary..",Bir=t=>{const e=Uir(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Fir(s);const o=s.split(b6),l=o[0]===""&&o.length>1?1:0;return Mje(o,l,e)},getConflictingClassGroupIds:(s,o)=>{if(o){const l=n[s],u=r[s];return l?u?Lir(u,l):l:u||TIe}return r[s]||TIe}}},Mje=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const a=t[e],i=r.nextPart.get(a);if(i){const u=Mje(t,e+1,i);if(u)return u}const s=r.validators;if(s===null)return;const o=e===0?t.join(b6):t.slice(e).join(b6),l=s.length;for(let u=0;u<l;u++){const d=s[u];if(d.validator(o))return d.classGroupId}},Fir=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),r=e.indexOf(":"),n=e.slice(0,r);return n?Pir+n:void 0})(),Uir=t=>{const{theme:e,classGroups:r}=t;return $ir(r,e)},$ir=(t,e)=>{const r=Lje();for(const n in t){const a=t[n];Ude(a,r,n,e)}return r},Ude=(t,e,r,n)=>{const a=t.length;for(let i=0;i<a;i++){const s=t[i];Gir(s,e,r,n)}},Gir=(t,e,r,n)=>{if(typeof t=="string"){zir(t,e,r);return}if(typeof t=="function"){Vir(t,e,r,n);return}Hir(t,e,r,n)},zir=(t,e,r)=>{const n=t===""?e:Pje(e,t);n.classGroupId=r},Vir=(t,e,r,n)=>{if(Yir(t)){Ude(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(Mir(r,t))},Hir=(t,e,r,n)=>{const a=Object.entries(t),i=a.length;for(let s=0;s<i;s++){const[o,l]=a[s];Ude(l,Pje(e,o),r,n)}},Pje=(t,e)=>{let r=t;const n=e.split(b6),a=n.length;for(let i=0;i<a;i++){const s=n[i];let o=r.nextPart.get(s);o||(o=Lje(),r.nextPart.set(s,o)),r=o}return r},Yir=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Wir=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=Object.create(null),n=Object.create(null);const a=(i,s)=>{r[i]=s,e++,e>t&&(e=0,n=r,r=Object.create(null))};return{get(i){let s=r[i];if(s!==void 0)return s;if((s=n[i])!==void 0)return a(i,s),s},set(i,s){i in r?r[i]=s:a(i,s)}}},XJ="!",xIe=":",qir=[],wIe=(t,e,r,n,a)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:a}),Xir=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=a=>{const i=[];let s=0,o=0,l=0,u;const d=a.length;for(let m=0;m<d;m++){const _=a[m];if(s===0&&o===0){if(_===xIe){i.push(a.slice(l,m)),l=m+1;continue}if(_==="/"){u=m;continue}}_==="["?s++:_==="]"?s--:_==="("?o++:_===")"&&o--}const h=i.length===0?a:a.slice(l);let f=h,p=!1;h.endsWith(XJ)?(f=h.slice(0,-1),p=!0):h.startsWith(XJ)&&(f=h.slice(1),p=!0);const g=u&&u>l?u-l:void 0;return wIe(i,p,f,g)};if(e){const a=e+xIe,i=n;n=s=>s.startsWith(a)?i(s.slice(a.length)):wIe(qir,!1,s,void 0,!0)}if(r){const a=n;n=i=>r({className:i,parseClassName:a})}return n},jir=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((r,n)=>{e.set(r,1e6+n)}),r=>{const n=[];let a=[];for(let i=0;i<r.length;i++){const s=r[i],o=s[0]==="[",l=e.has(s);o||l?(a.length>0&&(a.sort(),n.push(...a),a=[]),n.push(s)):a.push(s)}return a.length>0&&(a.sort(),n.push(...a)),n}},Kir=t=>({cache:Wir(t.cacheSize),parseClassName:Xir(t),sortModifiers:jir(t),...Bir(t)}),Zir=/\s+/,Qir=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:i}=e,s=[],o=t.trim().split(Zir);let l="";for(let u=o.length-1;u>=0;u-=1){const d=o[u],{isExternal:h,modifiers:f,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:m}=r(d);if(h){l=d+(l.length>0?" "+l:l);continue}let _=!!m,y=n(_?g.substring(0,m):g);if(!y){if(!_){l=d+(l.length>0?" "+l:l);continue}if(y=n(g),!y){l=d+(l.length>0?" "+l:l);continue}_=!1}const v=f.length===0?"":f.length===1?f[0]:i(f).join(":"),b=p?v+XJ:v,E=b+y;if(s.indexOf(E)>-1)continue;s.push(E);const S=a(y,_);for(let T=0;T<S.length;++T){const x=S[T];s.push(b+x)}l=d+(l.length>0?" "+l:l)}return l},Jir=(...t)=>{let e=0,r,n,a="";for(;e<t.length;)(r=t[e++])&&(n=Bje(r))&&(a&&(a+=" "),a+=n);return a},Bje=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Bje(t[n]))&&(r&&(r+=" "),r+=e);return r},esr=(t,...e)=>{let r,n,a,i;const s=l=>{const u=e.reduce((d,h)=>h(d),t());return r=Kir(u),n=r.cache.get,a=r.cache.set,i=o,o(l)},o=l=>{const u=n(l);if(u)return u;const d=Qir(l,r);return a(l,d),d};return i=s,(...l)=>i(Jir(...l))},tsr=[],Ws=t=>{const e=r=>r[t]||tsr;return e.isThemeGetter=!0,e},Fje=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Uje=/^\((?:(\w[\w-]*):)?(.+)\)$/i,rsr=/^\d+\/\d+$/,nsr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,asr=/\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$/,isr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ssr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,osr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,AE=t=>rsr.test(t),zn=t=>!!t&&!Number.isNaN(Number(t)),Km=t=>!!t&&Number.isInteger(Number(t)),VW=t=>t.endsWith("%")&&zn(t.slice(0,-1)),Jp=t=>nsr.test(t),lsr=()=>!0,csr=t=>asr.test(t)&&!isr.test(t),$je=()=>!1,usr=t=>ssr.test(t),dsr=t=>osr.test(t),hsr=t=>!xr(t)&&!wr(t),fsr=t=>zw(t,Vje,$je),xr=t=>Fje.test(t),Uy=t=>zw(t,Hje,csr),HW=t=>zw(t,ysr,zn),CIe=t=>zw(t,Gje,$je),psr=t=>zw(t,zje,dsr),vM=t=>zw(t,Yje,usr),wr=t=>Uje.test(t),UA=t=>Vw(t,Hje),gsr=t=>Vw(t,_sr),AIe=t=>Vw(t,Gje),msr=t=>Vw(t,Vje),vsr=t=>Vw(t,zje),yM=t=>Vw(t,Yje,!0),zw=(t,e,r)=>{const n=Fje.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},Vw=(t,e,r=!1)=>{const n=Uje.exec(t);return n?n[1]?e(n[1]):r:!1},Gje=t=>t==="position"||t==="percentage",zje=t=>t==="image"||t==="url",Vje=t=>t==="length"||t==="size"||t==="bg-size",Hje=t=>t==="length",ysr=t=>t==="number",_sr=t=>t==="family-name",Yje=t=>t==="shadow",bsr=()=>{const t=Ws("color"),e=Ws("font"),r=Ws("text"),n=Ws("font-weight"),a=Ws("tracking"),i=Ws("leading"),s=Ws("breakpoint"),o=Ws("container"),l=Ws("spacing"),u=Ws("radius"),d=Ws("shadow"),h=Ws("inset-shadow"),f=Ws("text-shadow"),p=Ws("drop-shadow"),g=Ws("blur"),m=Ws("perspective"),_=Ws("aspect"),y=Ws("ease"),v=Ws("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...E(),wr,xr],T=()=>["auto","hidden","clip","visible","scroll"],x=()=>["auto","contain","none"],w=()=>[wr,xr,l],C=()=>[AE,"full","auto",...w()],R=()=>[Km,"none","subgrid",wr,xr],N=()=>["auto",{span:["full",Km,wr,xr]},Km,wr,xr],k=()=>[Km,"auto",wr,xr],L=()=>["auto","min","max","fr",wr,xr],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],D=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...w()],B=()=>[AE,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],F=()=>[t,wr,xr],U=()=>[...E(),AIe,CIe,{position:[wr,xr]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",msr,fsr,{size:[wr,xr]}],z=()=>[VW,UA,Uy],q=()=>["","none","full",u,wr,xr],j=()=>["",zn,UA,Uy],X=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[zn,VW,AIe,CIe],ue=()=>["","none",g,wr,xr],J=()=>["none",zn,wr,xr],re=()=>["none",zn,wr,xr],Z=()=>[zn,wr,xr],ee=()=>[AE,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Jp],breakpoint:[Jp],color:[lsr],container:[Jp],"drop-shadow":[Jp],ease:["in","out","in-out"],font:[hsr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Jp],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Jp],shadow:[Jp],spacing:["px",zn],text:[Jp],"text-shadow":[Jp],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",AE,xr,wr,_]}],container:["container"],columns:[{columns:[zn,xr,wr,o]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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:S()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[Km,"auto",wr,xr]}],basis:[{basis:[AE,"full","auto",o,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[zn,AE,"auto","initial","none",xr]}],grow:[{grow:["",zn,wr,xr]}],shrink:[{shrink:["",zn,wr,xr]}],order:[{order:[Km,"first","last","none",wr,xr]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...D(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...D(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[o,"screen",...B()]}],"min-w":[{"min-w":[o,"screen","none",...B()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",r,UA,Uy]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,wr,HW]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",VW,xr]}],"font-family":[{font:[gsr,xr,e]}],"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:[a,wr,xr]}],"line-clamp":[{"line-clamp":[zn,"none",wr,HW]}],leading:[{leading:[i,...w()]}],"list-image":[{"list-image":["none",wr,xr]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",wr,xr]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[zn,"from-font","auto",wr,Uy]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[zn,"auto",wr,xr]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",wr,xr]}],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",wr,xr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:U()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Km,wr,xr],radial:["",wr,xr],conic:[Km,wr,xr]},vsr,psr]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[zn,wr,xr]}],"outline-w":[{outline:["",zn,UA,Uy]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",d,yM,vM]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",h,yM,vM]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[zn,Uy]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",f,yM,vM]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[zn,wr,xr]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"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":[zn]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[wr,xr]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":E()}],"mask-image-conic-pos":[{"mask-conic":[zn]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:U()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",wr,xr]}],filter:[{filter:["","none",wr,xr]}],blur:[{blur:ue()}],brightness:[{brightness:[zn,wr,xr]}],contrast:[{contrast:[zn,wr,xr]}],"drop-shadow":[{"drop-shadow":["","none",p,yM,vM]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",zn,wr,xr]}],"hue-rotate":[{"hue-rotate":[zn,wr,xr]}],invert:[{invert:["",zn,wr,xr]}],saturate:[{saturate:[zn,wr,xr]}],sepia:[{sepia:["",zn,wr,xr]}],"backdrop-filter":[{"backdrop-filter":["","none",wr,xr]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[zn,wr,xr]}],"backdrop-contrast":[{"backdrop-contrast":[zn,wr,xr]}],"backdrop-grayscale":[{"backdrop-grayscale":["",zn,wr,xr]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[zn,wr,xr]}],"backdrop-invert":[{"backdrop-invert":["",zn,wr,xr]}],"backdrop-opacity":[{"backdrop-opacity":[zn,wr,xr]}],"backdrop-saturate":[{"backdrop-saturate":[zn,wr,xr]}],"backdrop-sepia":[{"backdrop-sepia":["",zn,wr,xr]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",wr,xr]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[zn,"initial",wr,xr]}],ease:[{ease:["linear","initial",y,wr,xr]}],delay:[{delay:[zn,wr,xr]}],animate:[{animate:["none",v,wr,xr]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,wr,xr]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:Z()}],"skew-x":[{"skew-x":Z()}],"skew-y":[{"skew-y":Z()}],transform:[{transform:[wr,xr,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"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",wr,xr]}],"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":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",wr,xr]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[zn,UA,Uy,HW]}],stroke:[{stroke:["none",...F()]}],"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"]}},Esr=esr(bsr),RIe=(...t)=>Esr($a(t)),{Text:NIe}=Xi.Typography,Ssr=t=>{const{data:e,i18n:r,actionButtons:n,className:a,...i}=t,[s,o]=Me.useState(!1),l=[{label:r?.labels?.type??"Type",value:e?.type},{label:r?.labels?.size??"Size",value:e?.size},{label:r?.labels?.createdBy??"Created By",value:e?.owner?.title},{label:r?.labels?.createdAt??"Created At",value:e?.created},{label:r?.labels?.updatedAt??"Updated At",value:e?.updated}];return ar.jsxs("div",{className:RIe("flex flex-col h-full overflow-hidden",a),...i,children:[ar.jsxs("div",{children:[ar.jsx("img",{src:e?.icon,className:"size-6 mr-3 float-left"}),ar.jsx("div",{className:"text-4.5/6 text-primary",children:e?.title})]}),ar.jsxs("div",{className:"flex items-center justify-between my-2",children:[ar.jsxs(NIe,{type:"secondary",className:"inline-flex items-center gap-0.5 text-3",children:[ar.jsx("div",{children:e?.source?.name??"-"}),ar.jsx(ED.ChevronRight,{className:"size-3"}),ar.jsx("div",{children:e?.category??"-"}),ar.jsx(ED.Minus,{className:"size-3 rotate-90"}),ar.jsx("div",{children:e?.owner?.title??"-"}),ar.jsx(ED.Dot,{className:"size-3"}),ar.jsx("div",{children:e?.updated??"-"}),ar.jsx(ED.ChevronDown,{className:RIe("ml-2 size-3 hover:text-primary transition cursor-pointer",{"-scale-y-100":s}),onClick:()=>{o(u=>!u)}})]}),ar.jsx("div",{className:"inline-flex gap-2",children:n})]}),ar.jsx(O5e.div,{className:"bg-black/3 dark:bg-white/4 rounded-lg overflow-hidden",initial:!1,animate:{height:s?"auto":0,opacity:s?1:0,marginBottom:s?"1rem":0},children:ar.jsx("div",{className:"flex flex-wrap gap-row-2 p-4",children:l.map(u=>{const{label:d,value:h}=u;return ar.jsxs("div",{className:"w-1/2 inline-flex items-center <sm:w-full",children:[ar.jsx(NIe,{type:"secondary",className:"w-24",children:d}),ar.jsx("span",{className:"text-3.5",children:h??"-"})]},d)})})}),ar.jsxs("div",{className:"flex flex-col gap-4 flex-1 overflow-auto",children:[ar.jsx(Oir,{...t}),ar.jsx(Dir,{...t})]})]})},Tsr=t=>{const{icon:e,children:r,onMouseOver:n,onMouseOut:a,...i}=t,[s,o]=Me.useState(!1),l=d=>{o(!0),n?.(d)},u=d=>{o(!1),a?.(d)};return ar.jsxs(Xi.Button,{...i,color:"primary",variant:"filled",shape:"round",className:"gap-0",onMouseOver:l,onMouseOut:u,children:[ar.jsx("span",{className:"inline-flex items-center children:size-4",children:e}),ar.jsx(O5e.span,{className:"overflow-hidden",initial:!1,animate:{width:s?"auto":0,opacity:Number(s),paddingLeft:Number(s)*8},children:r})]})};class Vc{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new Vc(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}}class Bu{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new Bu(r,Vc.range(this,e))}}class Gt{constructor(e,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+e,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start,i=s.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var l=o.slice(a,i).replace(/[^]/g,"$&̲"),u;a>15?u="…"+o.slice(a-15,a):u=o.slice(0,a);var d;i+15<o.length?d=o.slice(i,i+15)+"…":d=o.slice(i),n+=u+l+d}var h=new Error(n);return h.name="ParseError",h.__proto__=Gt.prototype,h.position=a,a!=null&&i!=null&&(h.length=i-a),h.rawMessage=e,h}}Gt.prototype.__proto__=Error.prototype;var xsr=function(e,r){return e.indexOf(r)!==-1},wsr=function(e,r){return e===void 0?r:e},Csr=/([A-Z])/g,Asr=function(e){return e.replace(Csr,"-$1").toLowerCase()},Rsr={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Nsr=/[&><"']/g;function Isr(t){return String(t).replace(Nsr,e=>Rsr[e])}var Wje=function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},ksr=function(e){var r=Wje(e);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},Osr=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},Dsr=function(e){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},qr={contains:xsr,deflt:wsr,escape:Isr,hyphenate:Asr,getBaseElem:Wje,isCharacterBox:ksr,protocolFromUrl:Dsr},tN={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function Lsr(t){if(t.default)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class $de{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var r in tN)if(tN.hasOwnProperty(r)){var n=tN[r];this[r]=e[r]!==void 0?n.processor?n.processor(e[r]):e[r]:Lsr(n)}}reportNonstrict(e,r,n){var a=this.strict;if(typeof a=="function"&&(a=a(e,r,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new Gt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var a=this.strict;if(typeof a=="function")try{a=a(e,r,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var r=qr.protocolFromUrl(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class Zm{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return Gf[Msr[this.id]]}sub(){return Gf[Psr[this.id]]}fracNum(){return Gf[Bsr[this.id]]}fracDen(){return Gf[Fsr[this.id]]}cramp(){return Gf[Usr[this.id]]}text(){return Gf[$sr[this.id]]}isTight(){return this.size>=2}}var Gde=0,E6=1,XS=2,zg=3,vI=4,$d=5,Fx=6,sc=7,Gf=[new Zm(Gde,0,!1),new Zm(E6,0,!0),new Zm(XS,1,!1),new Zm(zg,1,!0),new Zm(vI,2,!1),new Zm($d,2,!0),new Zm(Fx,3,!1),new Zm(sc,3,!0)],Msr=[vI,$d,vI,$d,Fx,sc,Fx,sc],Psr=[$d,$d,$d,$d,sc,sc,sc,sc],Bsr=[XS,zg,vI,$d,Fx,sc,Fx,sc],Fsr=[zg,zg,$d,$d,sc,sc,sc,sc],Usr=[E6,E6,zg,zg,$d,$d,sc,sc],$sr=[Gde,E6,XS,zg,XS,zg,XS,zg],Zr={DISPLAY:Gf[Gde],TEXT:Gf[XS],SCRIPT:Gf[vI],SCRIPTSCRIPT:Gf[Fx]},jJ=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Gsr(t){for(var e=0;e<jJ.length;e++)for(var r=jJ[e],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(t>=a[0]&&t<=a[1])return r.name}return null}var m3=[];jJ.forEach(t=>t.blocks.forEach(e=>m3.push(...e)));function qje(t){for(var e=0;e<m3.length;e+=2)if(t>=m3[e]&&t<=m3[e+1])return!0;return!1}var RE=80,zsr=function(e,r){return"M95,"+(622+e+r)+`
557
+ >/= `,d=0;return g3=1,_je((function h(){for(var f=[];t[d];){if(t.charCodeAt(d)==e){if(t.charCodeAt(d+1)===a)return d=t.indexOf(">",d),f;if(t.charCodeAt(d+1)===i){if(t.charCodeAt(d+2)==n){for(;t.charCodeAt(d)!==r||t.charCodeAt(d-1)!=n||t.charCodeAt(d-2)!=n||d==-1;)d=t.indexOf(">",d+1);d===-1&&(d=t.length)}else for(d+=2;t.charCodeAt(d)!==r;d++);d++;continue}if(t.charCodeAt(d+1)===l){d=t.indexOf(">",d),d++;continue}for(var p=++d;u.indexOf(t[d])===-1;d++);for(var g=t.slice(p,d),m=!1,_={};t.charCodeAt(d)!==r;d++){var y=t.charCodeAt(d);if(y>64&&y<91||y>96&&y<123){for(p=d;u.indexOf(t[d])===-1;d++);for(var v=t.slice(p,d),b=t.charCodeAt(d);b!==s&&b!==o;)d++,b=t.charCodeAt(d);var E=t[d],S=++d;d=t.indexOf(E,S);var T=t.slice(S,d);m||(_={},m=!0),_[v]=T}}var x=[];t.charCodeAt(d-1)!==a&&(d++,x=h()),f.push({children:x,tagName:g,attrs:_})}else{var w=d;(d=t.indexOf("<",d)-1)===-2&&(d=t.length);var C=t.slice(w,d+1);C.length>0&&f.push(C)}d++}return f})())}function _je(t){var e={};if(t===void 0)return{};if(t.length===1&&typeof t[0]=="string")return t[0];for(var r in t.forEach((function(n){if(e[n.tagName]||(e[n.tagName]=[]),typeof n=="object"){var a=_je(n.children);typeof a=="object"&&(n.attrs&&(a.attrs=n.attrs),a.attrs===void 0?a.attrs={order:g3}:a.attrs.order=g3),g3++,e[n.tagName].push(a)}})),e)e[r].length==1&&(e[r]=e[r][0]);return e}function bS(t){return Math.abs(t)>2e4?"emu":"point"}function Ra(t){return t/12700}function Mf(t){return t/20}function g6(t){return t/100}function M8(t){return t/6e4}function hv(t){return t/1e5}function BW(t){var e=Math.ceil(t/26),r=(t%26||26)-1+65;return String.fromCharCode(r).repeat(e)}function qi(t,e,r){var n={type:"solidFill"};if(t["a:srgbClr"])n.color="#"+t["a:srgbClr"].attrs.val;else if(t["a:schemeClr"]){var a=t["a:schemeClr"].attrs.val;r&&(a=r.getColorThemeName(a)),n.color=e.getColor(a)}else if(t["a:sysClr"])n.color="#"+t["a:sysClr"].attrs.lastClr;else if(t["a:prstClr"]){var i=Pe.get(t["a:prstClr"],["attrs","val"]);n.color=(function(f){var p,g=["white","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"],m=["ffffff","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"],_=g.indexOf(f);return _!=-1&&(p=m[_]),"#".concat(p||"000000")})(i)}var s=t["a:srgbClr"]||t["a:schemeClr"]||t["a:sysClr"],o=Pe.get(s,["a:alpha","attrs","val"],1e5);n.alpha=o/1e5;var l=Pe.get(s,["a:shade","attrs","val"]);l&&(n.shade=l/1e5);var u=Pe.get(s,["a:lumMod","attrs","val"]);u&&(n.lumMod=u/1e5);var d=Pe.get(s,["a:lumOff","attrs","val"]);d&&(n.lumOff=d/1e5);var h=Pe.get(s,["a:tint","attrs","val"]);return h&&(n.tint=h/1e5),n}function Zk(t,e,r){var n,a={type:"blipFill"},i=Pe.get(t,["a:blip","attrs","r:embed"]);if(i){var s=(n=r.rels[i])===null||n===void 0?void 0:n.target;s&&(a.base64=e.getMedia(s))}var o=Pe.get(t,["a:blip","a:alphaModFix","attrs","amt"]);o&&(a.alpha=o/1e5);var l=Pe.get(t,["a:stretch","a:fillRect","attrs"]);return l&&(a.fillRect={},l.b&&(a.fillRect.b=l.b/1e5),l.t&&(a.fillRect.t=l.t/1e5),l.r&&(a.fillRect.r=l.r/1e5),l.l&&(a.fillRect.l=l.l/1e5)),a}function Qk(t,e,r){var n={type:"gradFill",tileRect:{},lin:{},gsList:[]};n.flip=t.attrs.flip,n.path=Pe.get(t,["a:path","attrs","path"])||"linear",n.rotWithShape=t.attrs.rotWithShape==="1",Pe.get(t,["a:lin","attrs","ang"])&&(n.lin.ang=M8(t["a:lin"].attrs.ang)),Pe.get(t,["a:lin","attrs","scaled"])&&(n.lin.scaled=t["a:lin"].attrs.scaled==="1");var a=Pe.get(t,["a:gsLst","a:gs"])||[];return n.gsList=a.map((function(i){return{color:qi(i,e,r),pos:hv(i.attrs.pos)}})),Pe.get(t,["a:tileRect","attrs","l"])&&(n.tileRect.l=hv(t["a:tileRect"].attrs.l)),Pe.get(t,["a:tileRect","attrs","t"])&&(n.tileRect.t=hv(t["a:tileRect"].attrs.t)),Pe.get(t,["a:tileRect","attrs","r"])&&(n.tileRect.r=hv(t["a:tileRect"].attrs.r)),Pe.get(t,["a:tileRect","attrs","b"])&&(n.tileRect.b=hv(t["a:tileRect"].attrs.b)),n}function FW(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function UW(t){return t<.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}function lIe(t,e){var r=t[0],n=t[1],a=t[2],i=FW(r/255)*e,s=FW(n/255)*e,o=FW(a/255)*e;return[Math.round(255*UW(i)),Math.round(255*UW(s)),Math.round(255*UW(o))]}function $W(t,e,r){var n=t/255,a=e/255,i=r/255,s=Math.max(n,a,i),o=Math.min(n,a,i),l=s-o,u=0,d=(s+o)/2;return l===0?u=0:s===n?u=(a-i)/l%6:s===a?u=(i-n)/l+2:s===i&&(u=(n-a)/l+4),(u=Math.round(60*u))<0&&(u+=360),{h:u,s:l===0||d===0||d===1?0:l/(1-Math.abs(2*d-1)),l:d}}function GW(t,e,r){var n,a,i,s=(1-Math.abs(2*r-1))*e,o=s*(1-Math.abs(t/60%2-1)),l=r-s/2;return t<60?(n=s,a=o,i=0):t<120?(n=o,a=s,i=0):t<180?(n=0,a=s,i=o):t<240?(n=0,a=o,i=s):t<300?(n=o,a=0,i=s):(n=s,a=0,i=o),[n=Math.round(255*(n+l)),a=Math.round(255*(a+l)),i=Math.round(255*(i+l))]}function la(t,e){if(!t||t.type==="none")return"";if(t.type==="solidFill"&&/^#[\da-fA-F]{3,6}$/.test(t.color)){var r=parseInt(t.color.substr(1,2),16),n=parseInt(t.color.substr(3,2),16),a=parseInt(t.color.substr(5,2),16);if(t.shade){var i=lIe([r,n,a],t.shade);r=i[0],n=i[1],a=i[2]}if(t.lumMod){var s=(function(d,h,f,p){var g=$W(d,h,f),m=g.h,_=g.l*p;return _>=1&&(_=1),GW(m,g.s,_)})(r,n,a,t.lumMod);r=s[0],n=s[1],a=s[2]}if(t.lumOff&&(s=(function(d,h,f,p){var g=$W(d,h,f),m=g.h,_=p+g.l;return _>1&&(_=1),GW(m,g.s,_)})(r,n,a,t.lumOff),r=s[0],n=s[1],a=s[2]),t.tint||e?.light){var o=(function(d,h,f,p){var g=$W(d,h,f),m=g.h,_=g.l;return p>=1&&(p=1),GW(m,g.s,_*p+(1-p))})(r,n,a,t.tint||e?.light);r=o[0],n=o[1],a=o[2]}if(e?.dark){var l=lIe([r,n,a],e?.dark);r=l[0],n=l[1],a=l[2]}var u=t.alpha;return"rgba(".concat(r,",").concat(n,",").concat(a,",").concat(u,")")}}var Jk=(function(){function t(e,r,n){var a,i;this.uuid=K8t(),this.offset={x:0,y:0},this.extend={w:0,h:0},this.rotate=0,this.order=0,this.flipV=!1,this.flipH=!1,this.source=e,this.ctx=r,this.group=n;var s=Pe.get(e,["p:nvSpPr","p:nvPr"]);if(s){var o=Pe.get(s,"p:ph");o&&o.attrs&&(this.idx=o.attrs.idx,this.type=o.attrs.type),Pe.get(s,["attrs","userDrawn"])&&(this.userDrawn=Pe.get(s,["attrs","userDrawn"])==="1")}if(this.order=Pe.get(e,"attrs.order",0),this.source["p:spPr"]){if(u=this.getXfrm()){var l=this.group&&(!((a=this.ctx.pptx)===null||a===void 0)&&a.wps||bS(parseInt(u["a:off"].attrs.x))==="point")?Mf:Ra;this.offset={x:Math.round(l(parseInt(u["a:off"].attrs.x))),y:Math.round(l(parseInt(u["a:off"].attrs.y)))},this.extend={w:Math.round(l(parseInt(u["a:ext"].attrs.cx))),h:Math.round(l(parseInt(u["a:ext"].attrs.cy||"0")))},this.rotate=M8(parseInt(Pe.get(u,"attrs.rot",0))),this.flipV=Pe.get(u,"attrs.flipV")==="1",this.flipH=Pe.get(u,"attrs.flipH")==="1"}}else if(this.source["p:xfrm"]){var u=this.source["p:xfrm"];l=this.group&&(!((i=this.ctx.pptx)===null||i===void 0)&&i.wps||bS(parseInt(u["a:off"].attrs.x))==="point")?Mf:Ra,this.offset={x:Math.round(l(parseInt(u["a:off"].attrs.x))),y:Math.round(l(parseInt(u["a:off"].attrs.y)))},this.extend={w:Math.round(l(parseInt(u["a:ext"].attrs.cx))),h:Math.round(l(parseInt(u["a:ext"].attrs.cy)))}}if(n){var d=n.extend,h=n.chExtend,f=n.chOffset,p=h.w===0?0:d.w/h.w,g=h.h===0?0:d.h/h.h;this.extend.w=this.extend.w*p,this.extend.h=this.extend.h*g,this.offset.x=(this.offset.x-f.x)*p,this.offset.y=(this.offset.y-f.y)*g}}return Object.defineProperty(t.prototype,"theme",{get:function(){return(this.ctx.sliderMaster||this.ctx).theme},enumerable:!1,configurable:!0}),t.prototype.getColorThemeName=function(e){return this.ctx.getColorThemeName(e)},t.prototype.getXfrm=function(){var e=this.source["p:spPr"]["a:xfrm"];return e||(this.idx?e=this.ctx.getNodeInheritAttrsByIdx(this.idx,["p:spPr","a:xfrm"]):this.type&&(e=this.ctx.getNodeInheritAttrsByType(this.type,["p:spPr","a:xfrm"]))),e},t})(),jar=(function(){function t(e,r){this.props={},this.inheritProps={},this.source=e,this.node=r,this._getInheritBodyProps(),this._parseBodyProps(),this._parseLstStyle(),this._parseText()}return t.prototype._getInheritBodyProps=function(){var e,r=this.node.ctx,n=this.node.type,a=this.node.idx;if(n||a)switch(r.slideType){case"slideMaster":break;case"slideLayout":(e=n?r.slideMaster.getNodeByType(n):r.slideMaster.getNodeByIdx(a))&&(this.inheritProps=Pe.get(e,["textBody","props"])||{});break;case"slide":(e=n?r.slideLayout.slideMaster.getNodeByType(n):r.slideLayout.slideMaster.getNodeByIdx(a))&&Object.assign(this.inheritProps,Pe.get(e,["textBody","props"])||{}),(e=n?r.slideLayout.getNodeByType(n):r.slideLayout.getNodeByIdx(a))&&Object.assign(this.inheritProps,Pe.get(e,["textBody","props"])||{})}},t.prototype._parseBodyProps=function(){var e=this,r=Pe.get(this.source,["a:bodyPr","attrs"])||{};Object.keys(r).forEach((function(s){switch(s){case"anchor":e.props.anchor=r[s];break;case"rtlCol":e.props.rtlCol=r[s]==="1";break;case"lIns":case"rIns":case"tIns":case"bIns":e.props[s]=Ra(parseInt(r[s]));break;case"order":break;default:e.props[s]=r[s]}}));var n=Pe.get(this.source,["a:bodyPr","a:normAutofit","attrs"]);if(n){this.props.normAutofit={};var a=n.fontScale;a&&(this.props.normAutofit.fontScale=hv(parseInt(a)));var i=n.lnSpcReduction;i&&(this.props.normAutofit.lnSpcReduction=hv(parseInt(i)))}},t.prototype._parseLstStyle=function(){var e=this,r={},n=Pe.get(this.source,"a:lstStyle")||{};Object.keys(n).forEach((function(a){if(a.startsWith("a:")&&a.endsWith("pPr")){var i=a.substr(2,a.length-5);r[i]={props:e._formatPPr(n[a])};var s=Pe.get(n[a],["a:defRPr"]);r[i].defRPr=e._formatRPr(s)}})),this.lstStyle=r},t.prototype._parseText=function(){var e=this,r=Pe.get(this.source,["a:p"])||[];Array.isArray(r)||(r=[r]),this.paragraphs=r.map((function(n){return e._parseParagraph(n)}))},t.prototype._parseParagraph=function(e){var r=this,n={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},a=Pe.get(e,["a:pPr"])||{};n.props=this._formatPPr(a);var i=Pe.get(e,["a:endParaRPr"]);n.endParaRProps=this._formatRPr(i);var s=Pe.get(e,["a:r"])||[];Array.isArray(s)||(s=[s]);var o=Pe.get(e,["a:br"])||[];return Array.isArray(o)||(o=[o]),(s=s.concat(o.map((function(l){return qt({isBr:!0},l)})))).sort((function(l,u){return Pe.get(l,["attrs","order"])-Pe.get(u,["attrs","order"])})),n.rows=s.map((function(l){return r._parseRow(l)})),n.inheritProps=this._getInheritPProps(n.props.level),n.inheritRProps=this._getInheritRProps(n.props.level),n},t.prototype._getInheritPProps=function(e){e===void 0&&(e="0");var r,n={},a=this.node.ctx,i=this.node.type,s=this.node.idx;switch(a.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,Pe.get(a.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(n,Pe.get(a,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,Pe.get(a.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(n,Pe.get(a.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{}),(i||s)&&(r=i?a.slideMaster.getNodeByType(i):a.slideMaster.getNodeByIdx(s))&&Object.assign(n,Pe.get(r,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,Pe.get(a.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(n,Pe.get(a.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{}),(i||s)&&(["subTitle","ctrTitle","title"].includes(i)&&Object.assign(n,Pe.get(a.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(e?+e+1:1),"props"])||{}),(r=i?a.slideLayout.slideMaster.getNodeByType(i):a.slideLayout.slideMaster.getNodeByIdx(s))&&Object.assign(n,Pe.get(r,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{}),(r=i?a.slideLayout.getNodeByType(i):a.slideLayout.getNodeByIdx(s))&&Object.assign(n,Pe.get(r,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{}))}return n},t.prototype._getInheritRProps=function(e){e===void 0&&(e="0");var r,n={},a=this.node.ctx,i=this.node.type,s=this.node.idx;switch(a.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,Pe.get(a.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(n,Pe.get(a,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,Pe.get(a.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(n,Pe.get(a.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(i||s)&&(r=i?a.slideMaster.getNodeByType(i):a.slideMaster.getNodeByIdx(s))&&(n=Pe.get(r,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,Pe.get(a.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(n,Pe.get(a.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(i||s)&&(["subTitle","ctrTitle","title"].includes(i)&&Object.assign(n,Pe.get(a.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(r=i?a.slideLayout.slideMaster.getNodeByType(i):a.slideLayout.slideMaster.getNodeByIdx(s))&&Object.assign(n,Pe.get(r,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(r=i?a.slideLayout.getNodeByType(i):a.slideLayout.getNodeByIdx(s))&&Object.assign(n,Pe.get(r,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}))}var o=Pe.get(this.node.source,["p:style","a:fontRef"]);return Pe.get(o,"a:schemeClr")&&(n.color=qi(o,this.node.theme,this.node)),Pe.get(this.lstStyle,["lvl".concat(e?+e+1:1),"defRPr"])&&Object.assign(n,Pe.get(this.lstStyle,["lvl".concat(e?+e+1:1),"defRPr"])),n},t.prototype._formatPPr=function(e){var r={},n=Pe.get(e,"attrs")||{};return Object.keys(n).forEach((function(a){switch(a){case"algn":r.align=n[a];break;case"marL":r.marginLeft=Ra(parseInt(n[a]));break;case"indent":r.indent=Ra(parseInt(n[a]));break;case"lvl":r.level=n[a]}})),Pe.get(e,["a:lnSpc","a:spcPct","attrs","val"])&&(r.lineHeight=parseInt(e["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),Pe.get(e,["a:buAutoNum","attrs","type"])&&(r.buAutoNum=e["a:buAutoNum"].attrs.type),Pe.get(e,["a:buChar","attrs","char"])&&(r.buChar=e["a:buChar"].attrs.char),Pe.get(e,["a:spcBef","a:spcPts","attrs","val"])&&(r.spaceBefore=g6(parseInt(e["a:spcBef"]["a:spcPts"].attrs.val))),Pe.get(e,["a:spcAft","a:spcPts","attrs","val"])&&(r.spaceAfter=g6(parseInt(e["a:spcAft"]["a:spcPts"].attrs.val))),Pe.get(e,["a:defRPr"])&&(r.defRPr=this._formatRPr(Pe.get(e,["a:defRPr"]))),r},t.prototype._parseRow=function(e){if(e.isBr)return{isBr:!0};var r={props:{},text:""},n=Pe.get(e,["a:rPr"])||{};return r.props=this._formatRPr(n),r.text=Pe.get(e,"a:t")||"",r},t.prototype._formatRPr=function(e){var r={},n=Pe.get(e,"attrs")||{};Object.keys(n).forEach((function(s){switch(s){case"sz":r.size=parseInt(n[s])/100;break;case"b":r.bold=n[s]==="1";break;case"i":r.italic=n[s]==="1";break;case"u":r.underline=n[s];break;case"strike":r.strike=n[s];break;case"order":case"dirty":break;default:r[s]=n[s]}}));var a=Pe.get(e,"a:solidFill");a&&(r.color=qi(a,this.node.theme,this.node));var i=Pe.get(e,"a:highlight");return i&&(r.background=qi(i,this.node.theme,this.node)),r.typeface=Pe.get(e,["a:ea","attrs","typeface"]),r},t})();function ES(t,e,r){var n={};if(!Pe.get(t,"a:noFill")){Pe.get(t,"attrs.w")&&(n.width=Ra(parseInt(Pe.get(t,"attrs.w"))));var a=Pe.get(t,"a:solidFill");a&&(n.color=qi(a,e,r));var i=Pe.get(t,"a:prstDash");if(i&&(n.type=i.attrs.val),Pe.get(t,["a:miter"])&&(n.lineJoin="miter"),Pe.get(t,["a:bevel"])&&(n.lineJoin="bevel"),Pe.get(t,["a:round"])&&(n.lineJoin="round"),Pe.get(t,["a:miter","attrs","lim"])&&(n.miterLim=Ra(parseInt(Pe.get(t,["a:miter","attrs","lim"])))),Pe.get(t,["a:headEnd"])){var s=Pe.get(t,["a:headEnd","attrs"]);n.headEnd={type:s.type,len:s.len,w:s.w}}if(Pe.get(t,["a:tailEnd"])){var o=Pe.get(t,["a:tailEnd","attrs"]);n.tailEnd={type:o.type,len:o.len,w:o.w}}return n}}var mI=(function(t){function e(r,n,a,i){var s=t.call(this,r,a,i)||this;return s.border={},s.prstGeom={},s.isTextBox=!1,s.pptx=n,s._parseShape(),s._parIsTextBox(),s._parsePrstGeom(),s._parseBackground(),s._parseBorder(),s._parseTxt(),s}return Nk(e,t),e.prototype._parseShape=function(){if(this.shape=Pe.get(this.source,["p:spPr","a:prstGeom","attrs","prst"]),!this.shape&&Pe.get(this.source,["p:spPr","a:custGeom"])){this.shape="customGeom";var r=Pe.get(this.source,["p:spPr","a:custGeom","a:pathLst","a:path"]),n=[],a=[],i=function(o){switch(o){case"a:moveTo":case"a:cubicBezTo":case"a:lnTo":a=Array.isArray(r[o])?r[o]:[r[o]],n=n.concat(a.map((function(l){return{order:l.attrs.order,type:o.split(":")[1],points:(Array.isArray(l["a:pt"])?l["a:pt"]:[l["a:pt"]]).map((function(u){return[Ra(parseInt(Pe.get(u,["attrs","x"]))),Ra(parseInt(Pe.get(u,["attrs","y"])))]}))}})));break;case"a:close":a=Array.isArray(r[o])?r[o]:[r[o]],n=n.concat(a.map((function(l){return{order:l.attrs.order,type:o.split(":")[1]}})))}};for(var s in r)i(s);n.sort((function(o,l){return o.order-l.order})),this.prstGeom.pathList=n,Pe.get(r,["attrs","w"])&&(this.prstGeom.w=Ra(parseInt(Pe.get(r,["attrs","w"])))),Pe.get(r,["attrs","h"])&&(this.prstGeom.h=Ra(parseInt(Pe.get(r,["attrs","h"]))))}},e.prototype._parIsTextBox=function(){this.isTextBox=Pe.get(this.source,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"},e.prototype._parsePrstGeom=function(){var r=this,n=Pe.get(this.source,["p:spPr","a:prstGeom"]),a=Pe.get(n,["a:avLst","a:gd"]);a&&(Array.isArray(a)||(a=[a]),this.prstGeom.gd=a.map((function(i){var s=["pie","chord","arc"].includes(r.shape)||["blockArc"].includes(r.shape)&&["adj1","adj2"].includes(i.attrs.name)?M8(parseInt(i.attrs.fmla.split(" ")[1])):hv(parseInt(i.attrs.fmla.split(" ")[1]));return{name:i.attrs.name,fmla:s}})))},e.prototype._parseBackground=function(){if(!Pe.get(this.source,["p:spPr","a:noFill"]))if(Pe.get(this.source,["p:spPr","a:grpFill"])&&this.group)this.background=this.group.getBackground();else{var r=Pe.get(this.source,["p:spPr","a:solidFill"]);if(r)this.background=qi(r,this.theme,this);else{var n=Pe.get(this.source,["p:spPr","a:gradFill"]);if(n)this.background=Qk(n,this.theme,this);else{var a=Pe.get(this.source,["p:spPr","a:blipFill"]);if(a)this.background=Zk(a,this.pptx,this.ctx);else{var i=Pe.get(this.source,["p:style","a:fillRef"]);i&&(this.background=qi(i,this.theme,this))}}}}},e.prototype._parseBorder=function(){var r=Pe.get(this.source,["p:style","a:lnRef"]);if(r){var n=parseInt(r.attrs.idx),a=this.theme.getLineStyle(n);this.border=qt(qt({},a),this.border),this.border.color&&this.border.color.color||(this.border.color=qi(r,this.theme,this))}var i=Pe.get(this.source,["p:spPr","a:ln"]);i&&Object.assign(this.border,ES(i,this.theme,this)),this.border.color&&this.border.color.color&&!this.border.width&&(this.border.width=e.defaultBorderWidth)},e.prototype._parseTxt=function(){this.textBody=new jar(Pe.get(this.source,["p:txBody"]),this)},e.defaultBorderWidth=.75,e})(Jk),m6=(function(t){function e(r,n,a,i,s){var o,l,u=t.call(this,n,i,s)||this;u.userDrawn=!0,u.pptx=a,u.path=r;var d=Pe.get(u.source,["p:blipFill","a:srcRect"]);d&&(u.clip={},d.attrs.b&&(u.clip.b=parseInt(d.attrs.b)/1e5),d.attrs.t&&(u.clip.t=parseInt(d.attrs.t)/1e5),d.attrs.l&&(u.clip.l=parseInt(d.attrs.l)/1e5),d.attrs.r&&(u.clip.r=parseInt(d.attrs.r)/1e5));var h=Pe.get(n,["p:nvPicPr","p:nvPr","a:audioFile","attrs","r:link"]);if(h){var f=(o=u.ctx.rels[h])===null||o===void 0?void 0:o.target;u.audioFile=u.pptx.getMedia(f)}var p=Pe.get(n,["p:nvPicPr","p:nvPr","a:videoFile","attrs","r:link"]);if(p){var g=(l=u.ctx.rels[p])===null||l===void 0?void 0:l.target;u.videoFile=u.pptx.getMedia(g)}return u}return Nk(e,t),Object.defineProperty(e.prototype,"base64",{get:function(){return this.pptx.getMedia(this.path)},enumerable:!1,configurable:!0}),e})(Jk),bje=(function(t){function e(r,n,a,i){var s=t.call(this,r,a,i)||this;return s.userDrawn=!0,s.props={tableStyleId:""},s.tableGrid={gridCol:[]},s.tr=[],s.tableStyles={},s.pptx=n,s._parseTableProps(),s._parseTableGrid(),s._parseTr(),s._parseInheritStyles(),s}return Nk(e,t),Object.defineProperty(e.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),e.prototype._parseTableProps=function(){var r=Pe.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblPr"]);this.props.tableStyleId=Pe.get(r,"a:tableStyleId"),this.tableStyles=Pe.get(this.slideMaster.tableStyles,this.props.tableStyleId)||{},Pe.get(r,["attrs","bandCol"])==="1"&&(this.props.bandCol=!0),Pe.get(r,["attrs","bandRow"])==="1"&&(this.props.bandRow=!0),Pe.get(r,["attrs","firstCol"])==="1"&&(this.props.firstCol=!0),Pe.get(r,["attrs","firstRow"])==="1"&&(this.props.firstRow=!0),Pe.get(r,["attrs","lastCol"])==="1"&&(this.props.lastCol=!0),Pe.get(r,["attrs","lastRow"])==="1"&&(this.props.lastRow=!0)},e.prototype._parseTableGrid=function(){var r=Pe.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);if(r)for(var n=0;n<r.length;n++){var a=Pe.get(r[n],["attrs","w"]);this.tableGrid.gridCol.push({width:Ra(parseInt(a))})}},e.prototype._parseTr=function(){var r=[],n=Pe.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tr"]);Array.isArray(n)||(n=[n]);for(var a=0;a<n.length;a++){var i={props:{},td:[]},s=n[a];i.props.height=Ra(parseInt(Pe.get(s,["attrs","h"])));var o=Pe.get(s,["a:tc"]);Array.isArray(o)||(o=[o]);for(var l=0;l<o.length;l++)i.td.push(this._parseTd(o[l]));r.push(i)}this.tr=r},e.prototype._parseTd=function(r){var n,a,i,s,o=this,l={props:{border:{}},paragraphs:[]},u=Pe.get(r,["a:tcPr","attrs"]);u?.marB&&(l.props.marB=Ra(parseInt(u?.marB))),u?.marT&&(l.props.marT=Ra(parseInt(u?.marT))),u?.marL&&(l.props.marL=Ra(parseInt(u?.marL))),u?.marR&&(l.props.marR=Ra(parseInt(u?.marR))),u?.anchor&&(l.props.anchor=u?.anchor);var d=Pe.get(r,["a:tcPr"]);Pe.get(d,["a:lnR"])&&(l.props.border.right=ES(Pe.get(d,["a:lnR"]),this.theme,this.ctx)),Pe.get(d,["a:lnL"])&&(l.props.border.left=ES(Pe.get(d,["a:lnL"]),this.theme,this.ctx)),Pe.get(d,["a:lnT"])&&(l.props.border.top=ES(Pe.get(d,["a:lnT"]),this.theme,this.ctx)),Pe.get(d,["a:lnB"])&&(l.props.border.bottom=ES(Pe.get(d,["a:lnB"]),this.theme,this.ctx)),!((n=r?.attrs)===null||n===void 0)&&n.rowSpan&&(l.props.rowSpan=parseInt(r.attrs.rowSpan)),!((a=r?.attrs)===null||a===void 0)&&a.gridSpan&&(l.props.gridSpan=parseInt(r.attrs.gridSpan)),!((i=r?.attrs)===null||i===void 0)&&i.vMerge&&(l.props.vMerge=r.attrs.vMerge==="1"),!((s=r?.attrs)===null||s===void 0)&&s.hMerge&&(l.props.hMerge=r.attrs.hMerge==="1");var h=Pe.get(r,["a:tcPr","a:solidFill"]);h&&(l.props.background=qi(h,this.theme,this.ctx));var f=Pe.get(r,["a:txBody"]),p=Pe.get(f,["a:p"]);return Array.isArray(p)||(p=[p]),l.paragraphs=p.map((function(g){return o._parseParagraph(g)})),l},e.prototype._parseParagraph=function(r){var n=this,a={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},i=Pe.get(r,["a:pPr"])||{};a.props=this._formatPPr(i);var s=Pe.get(r,["a:endParaRPr"]);a.endParaRProps=this._formatRPr(s);var o=Pe.get(r,["a:r"])||[];Array.isArray(o)||(o=[o]);var l=Pe.get(r,["a:br"])||[];return Array.isArray(l)||(l=[l]),(o=o.concat(l.map((function(u){return qt({isBr:!0},u)})))).sort((function(u,d){return Pe.get(u,["attrs","order"])-Pe.get(d,["attrs","order"])})),a.rows=o.map((function(u){return n._parseRow(u)})),a},e.prototype._parseRow=function(r){if(r.isBr)return{isBr:!0};var n={props:{},text:""},a=Pe.get(r,["a:rPr"])||{};return n.props=this._formatRPr(a),n.text=Pe.get(r,"a:t")||"",n},e.prototype._formatPPr=function(r){var n={},a=Pe.get(r,"attrs")||{};return Object.keys(a).forEach((function(i){i==="algn"&&(n.align=a[i])})),Pe.get(r,["a:lnSpc","a:spcPct","attrs","val"])&&(n.lineHeight=parseInt(r["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),Pe.get(r,["a:buAutoNum","attrs","type"])&&(n.buAutoNum=r["a:buAutoNum"].attrs.type),Pe.get(r,["a:buChar","attrs","char"])&&(n.buChar=r["a:buChar"].attrs.char),Pe.get(r,["a:spcBef","a:spcPts","attrs","val"])&&(n.spaceBefore=g6(parseInt(r["a:spcBef"]["a:spcPts"].attrs.val))),Pe.get(r,["a:spcAft","a:spcPts","attrs","val"])&&(n.spaceAfter=g6(parseInt(r["a:spcAft"]["a:spcPts"].attrs.val))),n},e.prototype._formatRPr=function(r){var n={},a=Pe.get(r,"attrs")||{};Object.keys(a).forEach((function(o){switch(o){case"sz":n.size=parseInt(a[o])/100;break;case"b":n.bold=a[o]==="1";break;case"i":n.italic=a[o]==="1";break;case"u":n.underline=a[o];break;case"strike":n.strike=a[o];break;case"order":case"dirty":break;default:n[o]=a[o]}}));var i=Pe.get(r,"a:solidFill");i&&(n.color=qi(i,this.theme,this.ctx));var s=Pe.get(r,"a:highlight");return s&&(n.background=qi(s,this.theme,this.ctx)),n.typeface=Pe.get(r,["a:ea","attrs","typeface"]),n},e.prototype._isLastCol=function(r,n){var a,i;if(n===r.length-1)return!0;for(var s=n+1;s<r.length;s++)if(!(!((a=r[s].props)===null||a===void 0)&&a.hMerge)&&!(!((i=r[s].props)===null||i===void 0)&&i.vMerge))return!1;return!0},e.prototype._isBandRow=function(r){var n;return!((n=this.props)===null||n===void 0)&&n.firstRow?r%2==1:r%2==0},e.prototype._isBandCol=function(r){var n;return!((n=this.props)===null||n===void 0)&&n.firstCol?r%2==1:r%2==0},e.prototype._parseInheritStyles=function(){var r,n,a,i,s,o,l,u,d=this,h=(n=(r=this.tableStyles)===null||r===void 0?void 0:r.wholeTbl)===null||n===void 0?void 0:n.tcStyle,f=(i=(a=this.tableStyles)===null||a===void 0?void 0:a.wholeTbl)===null||i===void 0?void 0:i.tcTxStyle,p=(o=(s=this.slideMaster.defaultTextStyle)===null||s===void 0?void 0:s.lvl1)===null||o===void 0?void 0:o.props,g=(u=(l=this.slideMaster.defaultTextStyle)===null||l===void 0?void 0:l.lvl1)===null||u===void 0?void 0:u.defRPr;this.tr.forEach((function(m,_){m.td.forEach((function(y,v){var b,E,S,T,x,w,C,R,N,k,L,A,D,M,B,F,U,V,$,z,q,j,X,ie,ne,ue,J,re,Z,ee,se,G,ce,Q,oe,Y,be,he,De,we,Ge,Oe,Fe,Le,$e,qe,Ae,Ke,de,Ee,W,ye,ve,ke,Re,pe,_e=qt(qt({},p),h),xe=qt(qt({},g),f);d.props.firstRow&&_===0?(_e=qt(qt(qt({},_e),(E=(b=d.tableStyles)===null||b===void 0?void 0:b.firstRow)===null||E===void 0?void 0:E.tcStyle),{border:qt(qt({},_e?.border),(x=(T=(S=d.tableStyles)===null||S===void 0?void 0:S.firstRow)===null||T===void 0?void 0:T.tcStyle)===null||x===void 0?void 0:x.border)}),xe=qt(qt({},xe),(C=(w=d.tableStyles)===null||w===void 0?void 0:w.firstRow)===null||C===void 0?void 0:C.tcTxStyle)):d.props.lastRow&&_===d.tr.length-1?(_e=qt(qt(qt({},_e),(N=(R=d.tableStyles)===null||R===void 0?void 0:R.lastRow)===null||N===void 0?void 0:N.tcStyle),{border:qt(qt({},_e?.border),(A=(L=(k=d.tableStyles)===null||k===void 0?void 0:k.lastRow)===null||L===void 0?void 0:L.tcStyle)===null||A===void 0?void 0:A.border)}),xe=qt(qt({},xe),(M=(D=d.tableStyles)===null||D===void 0?void 0:D.lastRow)===null||M===void 0?void 0:M.tcTxStyle)):d.props.firstCol&&v===0?(_e=qt(qt(qt({},_e),(F=(B=d.tableStyles)===null||B===void 0?void 0:B.firstCol)===null||F===void 0?void 0:F.tcStyle),{border:qt(qt({},_e?.border),($=(V=(U=d.tableStyles)===null||U===void 0?void 0:U.firstCol)===null||V===void 0?void 0:V.tcStyle)===null||$===void 0?void 0:$.border)}),xe=qt(qt({},xe),(q=(z=d.tableStyles)===null||z===void 0?void 0:z.firstCol)===null||q===void 0?void 0:q.tcTxStyle)):d.props.lastCol&&d._isLastCol(m.td,v)?(_e=qt(qt(qt({},_e),(X=(j=d.tableStyles)===null||j===void 0?void 0:j.lastCol)===null||X===void 0?void 0:X.tcStyle),{border:qt(qt({},_e?.border),(ue=(ne=(ie=d.tableStyles)===null||ie===void 0?void 0:ie.lastCol)===null||ne===void 0?void 0:ne.tcStyle)===null||ue===void 0?void 0:ue.border)}),xe=qt(qt({},xe),(re=(J=d.tableStyles)===null||J===void 0?void 0:J.lastCol)===null||re===void 0?void 0:re.tcTxStyle)):(d.props.bandRow&&(d._isBandRow(_)?(_e=qt(qt(qt({},_e),(ee=(Z=d.tableStyles)===null||Z===void 0?void 0:Z.band1H)===null||ee===void 0?void 0:ee.tcStyle),{border:qt(qt({},_e?.border),(ce=(G=(se=d.tableStyles)===null||se===void 0?void 0:se.band1H)===null||G===void 0?void 0:G.tcStyle)===null||ce===void 0?void 0:ce.border)}),xe=qt(qt({},xe),(oe=(Q=d.tableStyles)===null||Q===void 0?void 0:Q.band1H)===null||oe===void 0?void 0:oe.tcTxStyle)):(_e=qt(qt(qt({},_e),(be=(Y=d.tableStyles)===null||Y===void 0?void 0:Y.band2V)===null||be===void 0?void 0:be.tcStyle),{border:qt(qt({},_e?.border),(we=(De=(he=d.tableStyles)===null||he===void 0?void 0:he.band2V)===null||De===void 0?void 0:De.tcStyle)===null||we===void 0?void 0:we.border)}),xe=qt(qt({},xe),(Oe=(Ge=d.tableStyles)===null||Ge===void 0?void 0:Ge.band2V)===null||Oe===void 0?void 0:Oe.tcTxStyle))),d.props.bandCol&&(d._isBandCol(v)?(_e=qt(qt(qt({},_e),(Le=(Fe=d.tableStyles)===null||Fe===void 0?void 0:Fe.band1V)===null||Le===void 0?void 0:Le.tcStyle),{border:qt(qt({},_e?.border),(Ae=(qe=($e=d.tableStyles)===null||$e===void 0?void 0:$e.band1V)===null||qe===void 0?void 0:qe.tcStyle)===null||Ae===void 0?void 0:Ae.border)}),xe=qt(qt({},xe),(de=(Ke=d.tableStyles)===null||Ke===void 0?void 0:Ke.band1V)===null||de===void 0?void 0:de.tcTxStyle)):(_e=qt(qt(qt({},_e),(W=(Ee=d.tableStyles)===null||Ee===void 0?void 0:Ee.band2H)===null||W===void 0?void 0:W.tcStyle),{border:qt(qt({},_e?.border),(ke=(ve=(ye=d.tableStyles)===null||ye===void 0?void 0:ye.band2H)===null||ve===void 0?void 0:ve.tcStyle)===null||ke===void 0?void 0:ke.border)}),xe=qt(qt({},xe),(pe=(Re=d.tableStyles)===null||Re===void 0?void 0:Re.band2H)===null||pe===void 0?void 0:pe.tcTxStyle)))),y.inheritTcStyle=_e,y.inheritTcTxStyle=xe}))}))},e})(Jk),Fde=(function(){function t(e,r,n,a){if(this.offset={x:0,y:0},this.chOffset={x:0,y:0},this.extend={w:0,h:0},this.chExtend={w:0,h:0},this.rotate=0,this.nodes=[],this.flipV=!1,this.flipH=!1,this.userDrawn=!0,this.order=Pe.get(e,["attrs","order"]),this.pptx=r,this.ctx=n,this.source=e,this.group=a,this.source["p:grpSpPr"]){var i=Pe.get(this.source,["p:grpSpPr","a:xfrm"]);if(i&&(this.offset={x:Math.round(this.group&&this.pptx.wps?Mf(parseInt(i["a:off"].attrs.x)):Ra(parseInt(i["a:off"].attrs.x))),y:Math.round(this.group&&this.pptx.wps?Mf(parseInt(i["a:off"].attrs.y)):Ra(parseInt(i["a:off"].attrs.y)))},this.chOffset={x:Math.round(bS(i["a:chOff"].attrs.x)==="point"||this.pptx.wps?Mf(parseInt(i["a:chOff"].attrs.x)):Ra(parseInt(i["a:chOff"].attrs.x))),y:Math.round(bS(i["a:chOff"].attrs.y)==="point"||this.pptx.wps?Mf(parseInt(i["a:chOff"].attrs.y)):Ra(parseInt(i["a:chOff"].attrs.y)))},this.chExtend={w:Math.round(bS(i["a:chExt"].attrs.cx)==="point"||this.pptx.wps?Mf(parseInt(i["a:chExt"].attrs.cx)):Ra(parseInt(i["a:chExt"].attrs.cx))),h:Math.round(bS(i["a:chExt"].attrs.cy)==="point"||this.pptx.wps?Mf(parseInt(i["a:chExt"].attrs.cy)):Ra(parseInt(i["a:chExt"].attrs.cy)))},this.extend={w:Math.round(this.group&&this.pptx.wps?Mf(parseInt(i["a:ext"].attrs.cx)):Ra(parseInt(i["a:ext"].attrs.cx))),h:Math.round(this.group&&this.pptx.wps?Mf(parseInt(i["a:ext"].attrs.cy)):Ra(parseInt(i["a:ext"].attrs.cy)))},this.rotate=M8(parseInt(Pe.get(i,"attrs.rot",0))),this.flipV=Pe.get(i,"attrs.flipV")==="1",this.flipH=Pe.get(i,"attrs.flipH")==="1"),a){var s=a.extend,o=a.chExtend,l=a.chOffset,u=s.w/o.w,d=s.h/o.h;this.extend.w=this.extend.w*u,this.extend.h=this.extend.h*d,this.offset.x=(this.offset.x-l.x)*u,this.offset.y=(this.offset.y-l.y)*d}}this._parseBackground(),this._parseNodes()}return t.prototype.getBackground=function(){return this.background&&this.background.type!=="none"?this.background:this.group?this.group.getBackground():void 0},t.prototype._parseBackground=function(){var e=Pe.get(this.source,["p:grpSpPr"]);e&&e["a:solidFill"]?this.background=qi(e["a:solidFill"],this.ctx.theme,this.ctx):e&&e["a:gradFill"]?this.background=Qk(e["a:gradFill"],this.ctx.theme,this.ctx):e&&e["a:blipFill"]&&(this.background=Zk(e["a:blipFill"],this.pptx,this.ctx))},t.prototype._parseNodes=function(){var e=this.source;eO(this.nodes,e,this.pptx,this.ctx,this)},t})(),Eje=(function(t){function e(r,n,a,i){var s=t.call(this,r,a,i)||this;return s.nodes=[],s.pptx=n,s}return Nk(e,t),e.prototype.parseNode=function(){return to(this,void 0,void 0,(function(){var r,n,a,i,s,o,l,u,d;return ro(this,(function(h){switch(h.label){case 0:return h.trys.push([0,3,,4]),(r=Pe.get(this.source,["a:graphic","a:graphicData","dgm:relIds","attrs","r:dm"]))&&this.ctx.rels[r]?(n=this.ctx.rels[r].target,i=zc,[4,this.pptx.getXmlByPath(n)]):[2];case 1:return a=i.apply(void 0,[h.sent()]),(s=Pe.get(a,["dgm:dataModel","dgm:extLst","a:ext","dsp:dataModelExt","attrs","relId"]))&&this.ctx.rels[s]?(o=this.ctx.rels[s].target,[4,this.pptx.getXmlByPath(o)]):[2];case 2:return l=(l=h.sent()).replace(/dsp:/g,"p:"),u=zc(l),d=Pe.get(u,["p:drawing","p:spTree"]),eO(this.nodes,d,this.pptx,this.ctx),[3,4];case 3:return h.sent(),[3,4];case 4:return[2]}}))}))},e})(Jk),Sje=(function(t){function e(r,n,a,i){var s=t.call(this,r,a,i)||this;return s.options={title:{},tooltip:{},legend:{},series:[],color:[]},s.userDrawn=!0,s.pptx=n,s}return Nk(e,t),Object.defineProperty(e.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),e.prototype.parseNode=function(){return to(this,void 0,void 0,(function(){var r,n,a,i,s,o;return ro(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),(r=Pe.get(this.source,["a:graphic","a:graphicData","c:chart","attrs","r:id"]))&&this.ctx.rels[r]?(n=this.ctx.rels[r].target,i=zc,[4,this.pptx.getXmlByPath(n)]):[2];case 1:return a=i.apply(void 0,[l.sent()]),s=Pe.get(a,["c:chartSpace","c:chart"]),o=Pe.get(s,["c:plotArea"]),Pe.get(o,["c:lineChart"])?this.parseLine(Pe.get(o,["c:lineChart"]),s):Pe.get(o,["c:line3DChart"])?this.parseLine(Pe.get(o,["c:line3DChart"]),s):Pe.get(o,["c:areaChart"])?this.parseAreaLine(Pe.get(o,["c:areaChart"]),s):Pe.get(o,["c:area3DChart"])?this.parseAreaLine(Pe.get(o,["c:area3DChart"]),s):Pe.get(o,["c:barChart"])?this.parseBar(Pe.get(o,["c:barChart"]),s):Pe.get(o,["c:bar3DChart"])?this.parseBar(Pe.get(o,["c:bar3DChart"]),s):Pe.get(o,["c:pieChart"])?this.parsePie(Pe.get(o,["c:pieChart"])):Pe.get(o,["c:pie3DChart"])?this.parsePie(Pe.get(o,["c:pie3DChart"])):Pe.get(o,["c:doughnutChart"])&&this.parseDoughnutChart(Pe.get(o,["c:doughnutChart"])),[3,3];case 2:return l.sent(),[3,3];case 3:return[2]}}))}))},e.prototype.parseAreaLine=function(r,n){this.parseLine(r,n),this.options.series=this.options.series.map((function(a){return a.areaStyle={},a}))},e.prototype.parseLine=function(r,n){var a=Pe.get(r,["c:ser"]);Array.isArray(a)||(a=[a]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(Pe.get(n,["c:title"]))},this.options.xAxis={type:"category",data:this.getCategory(a[0])},this.options.yAxis={type:"value"},this.options.series=this.parseLineSeries(a,r),this.options.color=this.parseLineColors(a),this.options.legend={bottom:"bottom",left:"center"},Pe.get(r,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(i){return(100*i).toFixed(2)+"%"})},e.prototype.parseBar=function(r,n){var a=Pe.get(r,["c:ser"]);Array.isArray(a)||(a=[a]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(Pe.get(n,["c:title"]))},Pe.get(r,["c:barDir","attrs","val"])==="bar"?(this.options.yAxis={type:"category",data:this.getCategory(a[0])},this.options.xAxis={type:"value"}):(this.options.xAxis={type:"category",data:this.getCategory(a[0])},this.options.yAxis={type:"value"}),this.options.series=this.parseBarSeries(a,r),this.options.color=this.parseBarColors(a),this.options.legend={bottom:"bottom",left:"center"},Pe.get(r,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(i){return(100*i).toFixed(2)+"%"})},e.prototype.parsePie=function(r){var n=Pe.get(r,["c:ser"]);this.options.title={top:"top",left:"center",text:this.parsePieTitle(n)},this.options.color=this.parsePieColors(n),this.options.series=[this.parsePieSeries(n,r)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parseDoughnutChart=function(r){var n=Pe.get(r,["c:ser"]);this.options.title.text=this.parsePieTitle(n),this.options.color=this.parsePieColors(n),this.options.series=[this.parsePieSeries(n,r)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parsePieTitle=function(r){return Pe.get(r,["c:tx","c:strRef","c:strCache","c:pt","c:v"])},e.prototype.parseChartTitle=function(r){var n=Pe.get(r,["c:tx","c:rich","a:p"]);return Array.isArray(n)||(n=[n]),n.map((function(a){var i=Pe.get(a,["a:r"]);return Array.isArray(i)||(i=[i]),i.map((function(s){return Pe.get(s,["a:t"])||""})).join("")})).join("")||"图表标题"},e.prototype.parseBarColors=function(r){var n=this;return r.map((function(a){return la(qi(Pe.get(a,["c:spPr","a:solidFill"]),n.theme,n.ctx))}))},e.prototype.parseLineColors=function(r){var n=this;return r.map((function(a){return la(qi(Pe.get(a,["c:spPr","a:ln","a:solidFill"])||Pe.get(a,["c:spPr","a:solidFill"]),n.theme,n.ctx))}))},e.prototype.parsePieColors=function(r){var n=this,a=[],i=Pe.get(r,["c:dPt"]);return Array.isArray(i)||(i=[i]),i.forEach((function(s){a.push(la(qi(Pe.get(s,["c:spPr","a:solidFill"]),n.theme,n.ctx)))})),a},e.prototype.parsePieSeries=function(r,n){var a={type:"pie",radius:"80%",startAngle:90,data:[]};Pe.get(n,["c:holeSize","attrs","val"])&&(a.radius=["".concat(.8*Pe.get(n,["c:holeSize","attrs","val"]),"%"),"80%"]);var i=Pe.get(n,["c:firstSliceAng","attrs","val"]);i&&(a.startAngle=90-i);for(var s=this.getCategory(r),o=this.getVal(r),l=0;l<s.length;l++)a.data.push({name:s[l],value:o[l]});return a},e.prototype.parseBarSeries=function(r,n){var a,i=this,s=Pe.get(n,["c:grouping","attrs","val"]);s==="stacked"?a="Ad":s==="percentStacked"&&(a="total");var o=r.map((function(u){return{type:"bar",name:Pe.get(u,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:i.getVal(u),stack:a}}));if(s==="percentStacked"){var l=[];o.forEach((function(u,d){l=d===0?FR([],u.data,!0):l.map((function(h,f){return h+u.data[f]}))})),o.forEach((function(u){u.data=u.data.map((function(d,h){return l[h]<=0?0:d/l[h]}))}))}return o},e.prototype.parseLineSeries=function(r,n){var a,i=this,s=Pe.get(n,["c:grouping","attrs","val"]);s==="stacked"?a="Ad":s==="percentStacked"&&(a="total");var o=r.map((function(u){return{type:"line",name:Pe.get(u,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:i.getVal(u),stack:a}}));if(a==="total"){var l=[];o.forEach((function(u,d){l=d===0?FR([],u.data,!0):l.map((function(h,f){return h+u.data[f]}))})),o.forEach((function(u){u.data=u.data.map((function(d,h){return l[h]<=0?0:d/l[h]}))}))}return o},e.prototype.getCategory=function(r){if(Pe.get(r,["c:cat","c:strRef"])){var n=Pe.get(r,["c:cat","c:strRef","c:strCache","c:pt"]);return Array.isArray(n)||(n=[n]),n.map((function(a){return Pe.get(a,["c:v"])}))}if(Pe.get(r,["c:cat","c:numRef"]))return n=Pe.get(r,["c:cat","c:numRef","c:numCache","c:pt"]),Array.isArray(n)||(n=[n]),n.map((function(a){return Pe.get(a,["c:v"])}))},e.prototype.getVal=function(r){var n=Pe.get(r,["c:val","c:numRef","c:numCache","c:pt"]);return Array.isArray(n)||(n=[n]),n.map((function(a){return+Pe.get(a,["c:v"])}))},e})(Jk);function cIe(t){var e={},r=Pe.get(t,"attrs")||{};return Object.keys(r).forEach((function(n){switch(n){case"algn":e.align=r[n];break;case"marL":e.marginLeft=Ra(parseInt(r[n]));break;case"indent":e.indent=Ra(parseInt(r[n]));break;case"lvl":e.level=r[n]}})),Pe.get(t,["a:lnSpc","a:spcPct","attrs","val"])&&(e.lineHeight=parseInt(t["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),e}function uIe(t,e,r){var n={},a=Pe.get(t,"attrs")||{};Object.keys(a).forEach((function(s){switch(s){case"sz":n.size=parseInt(a[s])/100;break;case"b":n.bold=a[s]==="1";break;case"i":n.italic=a[s]==="1";break;case"u":n.underline=a[s];break;case"strike":n.strike=a[s];break;case"order":case"dirty":break;default:n[s]=a[s]}}));var i=Pe.get(t,"a:solidFill");return i&&(n.color=qi(i,e,r)),n}function eO(t,e,r,n,a){return to(this,void 0,void 0,(function(){var i,s,o,l,u,d,h,f,p,g,m,_,y,v,b,E,S,T,x,w,C;return ro(this,(function(R){switch(R.label){case 0:for(o in s=[],i=e)s.push(o);l=0,R.label=1;case 1:if(!(l<s.length))return[3,17];if(!((o=s[l])in i))return[3,16];switch(u=o){case"p:sp":return[3,2];case"p:pic":return[3,3];case"p:cxnSp":return[3,4];case"p:graphicFrame":return[3,5];case"p:grpSp":return[3,14]}return[3,15];case 2:for(d=Array.isArray(e[u])?e[u]:[e[u]],w=0;w<d.length;w++)y=d[w],t.push(new mI(y,r,n,a));return[3,16];case 3:for(h=Array.isArray(e[u])?e[u]:[e[u]],w=0;w<h.length;w++)f=h[w],p=f["p:blipFill"]["a:blip"].attrs["r:embed"],g=n.rels[p].target,m=new m6(g,f,r,n,a),t.push(m);return[3,16];case 4:for(_=Array.isArray(e[u])?e[u]:[e[u]],w=0;w<_.length;w++)y=_[w],t.push(new mI(y,r,n,a));return[3,16];case 5:v=Array.isArray(e[u])?e[u]:[e[u]],w=0,R.label=6;case 6:if(!(w<v.length))return[3,13];switch(b=v[w],E=Pe.get(b,["a:graphic","a:graphicData","attrs","uri"]),E){case"http://schemas.openxmlformats.org/drawingml/2006/table":return[3,7];case"http://schemas.openxmlformats.org/drawingml/2006/diagram":return[3,8];case"http://schemas.openxmlformats.org/drawingml/2006/chart":return[3,10]}return[3,12];case 7:return t.push(new bje(b,r,n,a)),[3,12];case 8:return[4,(S=new Eje(b,r,n,a)).parseNode()];case 9:return R.sent(),t.push(S),[3,12];case 10:return[4,(T=new Sje(b,r,n,a)).parseNode()];case 11:return R.sent(),t.push(T),[3,12];case 12:return w++,[3,6];case 13:return[3,16];case 14:for(x=Array.isArray(e[u])?e[u]:[e[u]],w=0;w<x.length;w++)C=x[w],t.push(new Fde(C,r,n,a));return[3,16];case 15:return[3,16];case 16:return l++,[3,1];case 17:return[2]}}))}))}var Kar=(function(){function t(e,r,n){this.slideType="slide",this.rels={},this.background={type:"none"},this.nodes=[],this.name=e,this.source=r,this.pptx=n}return Object.defineProperty(t.prototype,"index",{get:function(){if(!this.name)return 0;var e=this.name.match(/(\d+)/);return e?parseInt(e[0]):1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"slideMaster",{get:function(){return this.slideLayout&&this.slideLayout.slideMaster},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_relsPath",{get:function(){return this.name.replace("slides/slide","slides/_rels/slide")+".rels"},enumerable:!1,configurable:!0}),t.prototype.load=function(){return to(this,void 0,void 0,(function(){return ro(this,(function(e){switch(e.label){case 0:return[4,this._loadRels()];case 1:return e.sent(),this._loadBackground(),[4,this._loadNodes()];case 2:return e.sent(),[2]}}))}))},t.prototype._loadRels=function(){return to(this,void 0,void 0,(function(){var e,r,n,a=this;return ro(this,(function(i){switch(i.label){case 0:return r=zc,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=r.apply(void 0,[i.sent()]),n=Pe.get(e,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach((function(s){switch(Pe.get(s,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout":var o=s.attrs.Target.replace("../","ppt/");o.startsWith("/ppt")&&(o=o.substr(1)),a.slideLayout=a.pptx.getSlideLayout(o);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData":case"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart":var l=s.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),a.rels[s.attrs.Id]={type:s.attrs.Type.split("/").pop(),target:l}}})),[2]}}))}))},t.prototype._loadBackground=function(){var e=Pe.get(this.source,["p:sld","p:cSld","p:bg","p:bgPr"]);e&&e["a:solidFill"]?this.background=qi(e["a:solidFill"],this.theme,this):e&&e["a:gradFill"]?this.background=Qk(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]&&(this.background=Zk(e["a:blipFill"],this.pptx,this))},t.prototype._loadNodes=function(){return to(this,void 0,void 0,(function(){var e;return ro(this,(function(r){switch(r.label){case 0:return e=Pe.get(this.source,["p:sld","p:cSld","p:spTree"]),[4,eO(this.nodes,e,this.pptx,this)];case 1:return r.sent(),[2]}}))}))},t.prototype.getColorThemeName=function(e){return this.slideLayout.getColorThemeName(e)},t.prototype.getNodeInheritAttrsByType=function(e,r){var n=this.slideLayout.getNodeByType(e),a=Pe.get(n.source,r);return a||this.slideLayout.getNodeInheritAttrsByType(e,r)},t.prototype.getNodeInheritAttrsByIdx=function(e,r){var n=this.slideLayout.getNodeByIdx(e),a=Pe.get(n.source,r);return a||this.slideLayout.getNodeInheritAttrsByIdx(e,r)},t})(),Zar=(function(){function t(e,r,n){this.slideType="slideLayout",this.rels={},this.background={type:"none"},this.nodes=[],this.name=e,this.source=r,this.pptx=n}return Object.defineProperty(t.prototype,"_relsPath",{get:function(){return this.name.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),t.prototype.load=function(){return to(this,void 0,void 0,(function(){return ro(this,(function(e){switch(e.label){case 0:return[4,this._loadRels()];case 1:return e.sent(),[4,this._loadBackground()];case 2:return e.sent(),[4,this._loadNodes()];case 3:return e.sent(),[2]}}))}))},t.prototype._loadRels=function(){return to(this,void 0,void 0,(function(){var e,r,n,a=this;return ro(this,(function(i){switch(i.label){case 0:return r=zc,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=r.apply(void 0,[i.sent()]),n=Pe.get(e,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach((function(s){switch(Pe.get(s,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster":var o=s.attrs.Target.replace("../","ppt/");o.startsWith("/ppt")&&(o=o.substr(1)),a.slideMaster=a.pptx.getSlideMaster(o);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=s.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),a.rels[s.attrs.Id]={type:s.attrs.Type.split("/").pop(),target:l}}})),[2]}}))}))},t.prototype._loadBackground=function(){return to(this,void 0,void 0,(function(){var e;return ro(this,(function(r){return(e=Pe.get(this.source,["p:sldLayout","p:cSld","p:bg","p:bgPr"]))&&e["a:solidFill"]?this.background=qi(e["a:solidFill"],this.theme):e&&e["a:gradFill"]?this.background=Qk(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]&&(this.background=Zk(e["a:blipFill"],this.pptx,this)),[2]}))}))},t.prototype._loadNodes=function(){return to(this,void 0,void 0,(function(){var e;return ro(this,(function(r){return e=Pe.get(this.source,["p:sldLayout","p:cSld","p:spTree"]),eO(this.nodes,e,this.pptx,this),[2]}))}))},t.prototype.getColorThemeName=function(e){return this.slideMaster.getColorThemeName(e)},t.prototype.getNodeByType=function(e){return this.nodes.find((function(r){return r.type===e}))},t.prototype.getNodeByIdx=function(e){return this.nodes.find((function(r){return r.idx===e}))},t.prototype.getNodeInheritAttrsByType=function(e,r){var n=this.slideMaster.getNodeByType(e);return n&&Pe.get(n.source,r)},t.prototype.getNodeInheritAttrsByIdx=function(e,r){var n=this.slideMaster.getNodeByIdx(e);return n&&Pe.get(n.source,r)},t})(),Qar=(function(){function t(e,r,n){this.slideType="slideMaster",this.rels={},this.background={type:"none"},this.textStyles={titleStyle:{},bodyStyle:{},otherStyle:{}},this.defaultTextStyle={},this.nodes=[],this.tableStyles={},this.name=e,this.source=r,this.pptx=n,this.load()}return Object.defineProperty(t.prototype,"_relsPath",{get:function(){return this.name.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels"},enumerable:!1,configurable:!0}),t.prototype.load=function(){return to(this,void 0,void 0,(function(){return ro(this,(function(e){switch(e.label){case 0:return[4,this._parseRels()];case 1:return e.sent(),this._parseColorMap(),this._parseBackground(),this._parseTextStyles(),this._parseTableStyles(),this._parseDefaultTextStyle(),this._loadNodes(),[2]}}))}))},t.prototype._parseRels=function(){return to(this,void 0,void 0,(function(){var e,r,n,a=this;return ro(this,(function(i){switch(i.label){case 0:return r=zc,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=r.apply(void 0,[i.sent()]),n=Pe.get(e,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach((function(s){switch(Pe.get(s,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme":var o=s.attrs.Target.replace("../","ppt/");o.startsWith("/ppt")&&(o=o.substr(1)),a.theme=a.pptx.getTheme(o);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=s.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),a.rels[s.attrs.Id]={type:s.attrs.Type.split("/").pop(),target:l}}})),[2]}}))}))},t.prototype._parseColorMap=function(){this.colorMap=Pe.omit(Pe.get(this.source,["p:sldMaster","p:clrMap","attrs"])||{},["order"])},t.prototype.getColorThemeName=function(e){return this.colorMap[e]||e},t.prototype._parseBackground=function(){var e=Pe.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),r=Pe.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgRef"]);e&&e["a:solidFill"]?this.background=qi(e["a:solidFill"],this.theme,this):e&&e["a:gradFill"]?this.background=Qk(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]?this.background=Zk(e["a:blipFill"],this.pptx,this):r&&(this.background=qi(r,this.theme,this))},t.prototype._parseDefaultTextStyle=function(){var e=this,r=this.pptx.defaultTextStyleSource;Object.keys(r).forEach((function(n){if(n.startsWith("a:")&&n.endsWith("pPr")){var a=n.substr(2,n.length-5),i=Pe.get(r[n],["a:defRPr"]);e.defaultTextStyle[a]={props:cIe(r[n]),defRPr:uIe(i,e.theme,e)}}}))},t.prototype._parseTextStyles=function(){var e=this,r=Pe.get(this.source,["p:sldMaster","p:txStyles"]);["titleStyle","bodyStyle","otherStyle"].forEach((function(n){var a=e.textStyles[n],i=Pe.get(r,"p:".concat(n))||{};Object.keys(i).forEach((function(s){if(s.startsWith("a:")&&s.endsWith("pPr")){var o=s.substr(2,s.length-5);a[o]={},a[o].props=cIe(i[s]);var l=Pe.get(i[s],["a:defRPr"]);a[o].defRPr=uIe(l,e.theme,e)}}))}))},t.prototype._parseTableStyles=function(){var e=this,r={},n=Pe.get(this.pptx.tableStyles,["a:tblStyleLst","a:tblStyle"])||[];Array.isArray(n)||(n=[n]),n.forEach((function(a){var i=Pe.get(a,["attrs","styleId"]);r[i]={},Object.keys(a).forEach((function(s){if(s.startsWith("a:")){var o=s.substr(2);r[i][o]={};var l=Pe.get(a[s],["a:tcStyle"]);if(l){var u={};Pe.get(l,["a:fill","a:solidFill"])&&(u.background=qi(Pe.get(l,["a:fill","a:solidFill"]),e.theme,e));var d=Pe.get(l,"a:tcBdr");d&&(u.border={},Object.keys(d).forEach((function(p){if(p.startsWith("a:")){var g=p.substr(2),m=Pe.get(d[p],["a:ln"]);u.border[g]=ES(m,e.theme,e)}}))),r[i][o].tcStyle=u}var h=Pe.get(a[s],["a:tcTxStyle"]);if(h){var f={};f.color=qi(h,e.theme,e),Pe.get(h,["attrs","b"])==="on"&&(f.bold=!0),r[i][o].tcTxStyle=f}}}))})),this.tableStyles=r},t.prototype._loadNodes=function(){return to(this,void 0,void 0,(function(){var e;return ro(this,(function(r){return e=Pe.get(this.source,["p:sldMaster","p:cSld","p:spTree"]),eO(this.nodes,e,this.pptx,this),[2]}))}))},t.prototype.getNodeByType=function(e){return this.nodes.find((function(r){return r.type===e}))},t.prototype.getNodeByIdx=function(e){return this.nodes.find((function(r){return r.idx===e}))},t.prototype.getNodeInheritAttrsByType=function(e,r){},t.prototype.getNodeInheritAttrsByIdx=function(e,r){},t})(),Jar=(function(){function t(e,r,n){this.clrScheme={},this.borderScheme=[],this.name=e,this.source=r,this.pptx=n,this._parseClrScheme(),this._parseLineStyleLst()}return t.prototype._parseClrScheme=function(){var e=Pe.get(this.source,["a:theme","a:themeElements","a:clrScheme"]);for(var r in e)if(r.startsWith("a:")){var n=r.substring(2),a=Pe.get(e[r],["a:sysClr","attrs","lastClr"])||Pe.get(e[r],["a:srgbClr","attrs","val"]);this.clrScheme[n]="#"+a}},t.prototype._parseLineStyleLst=function(){var e=this,r=Pe.get(this.source,["a:theme","a:themeElements","a:fmtScheme","a:lnStyleLst","a:ln"])||[];this.borderScheme=r.map((function(n){var a={color:{}};return Pe.get(n,["attrs","w"])&&(a.width=Ra(parseInt(Pe.get(n,["attrs","w"])))),Pe.get(n,["attrs","algn"])&&(a.algn=Pe.get(n,["attrs","algn"])),Pe.get(n,["attrs","cap"])&&(a.cap=Pe.get(n,["attrs","cap"])),Pe.get(n,["attrs","cmpd"])&&(a.cmpd=Pe.get(n,["attrs","cmpd"])),Pe.get(n,["a:miter","attrs","lim"])&&(a.miterLim=Ra(parseInt(Pe.get(n,["a:miter","attrs","lim"])))),Pe.get(n,["a:prstDash","attrs","val"])&&(a.type=Pe.get(n,["a:prstDash","attrs","val"])),Pe.get(n,["a:solidFill"])&&(a.color=qi(Pe.get(n,["a:solidFill"]),e)),a}))},t.prototype.getColor=function(e){if(e!=="phClr")return this.clrScheme[e]||this.defaultColor},t.prototype.getLineStyle=function(e){return this.borderScheme[e-1]},t})(),dIe=(function(){function t(){this.slides=[],this.slideLayouts=[],this.slideMaster=[],this.themes=[],this.medias={},this.wps=!1}return t.prototype.load=function(e){return to(this,void 0,void 0,(function(){var r,n;return ro(this,(function(a){switch(a.label){case 0:return r=new Tze,n=this,[4,r.loadAsync(e)];case 1:return n._zipContents=a.sent(),[4,this._loadThumbnail()];case 2:return a.sent(),[4,this._loadMedia()];case 3:return a.sent(),[4,this._loadPresentation()];case 4:return a.sent(),[4,this._loadContentTypes()];case 5:return a.sent(),[2]}}))}))},t.prototype._loadThumbnail=function(){return to(this,void 0,void 0,(function(){var e;return ro(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),this._zipContents.files["docProps/thumbnail.jpeg"]?[4,this._zipContents.files["docProps/thumbnail.jpeg"].async("base64")]:[3,2];case 1:e=r.sent(),this.thumbnail="data:image/jpeg;base64,"+e,r.label=2;case 2:return[3,4];case 3:return r.sent(),[3,4];case 4:return[2]}}))}))},t.prototype._loadPresentation=function(){return to(this,void 0,void 0,(function(){var e,r,n,a,i,s;return ro(this,(function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),[4,this._zipContents.files["ppt/presentation.xml"].async("text")];case 1:return e=o.sent(),r=zc(e),n=r["p:presentation"]["p:sldSz"].attrs,this.width=Ra(parseInt(n.cx)),this.height=Ra(parseInt(n.cy)),this.defaultTextStyleSource=Pe.get(r,["p:presentation","p:defaultTextStyle"]),this._zipContents.files["docProps/app.xml"]?[4,this._zipContents.files["docProps/app.xml"].async("text")]:[3,3];case 2:a=o.sent(),i=zc(a),s=Pe.get(i,["Properties","Application"]),this.wps=s?.includes("WPS")||!1,o.label=3;case 3:return[3,5];case 4:return o.sent(),[3,5];case 5:return[2]}}))}))},t.prototype._loadContentTypes=function(){return to(this,void 0,void 0,(function(){var e,r,n,a,i,s,o,l,u,d,h,f,p,g,m,_,y,v,b,E,S;return ro(this,(function(T){switch(T.label){case 0:return T.trys.push([0,22,,23]),r=zc,[4,this._zipContents.files["[Content_Types].xml"].async("text")];case 1:if(e=r.apply(void 0,[T.sent()]),n=e.Types.Override,!(a=n.filter((function(x){return x.attrs.ContentType==="application/vnd.openxmlformats-officedocument.theme+xml"}))))return[3,5];i=0,s=a,T.label=2;case 2:return i<s.length?(o=s[i],v=o.attrs.PartName.substr(1),l=zc,[4,this._zipContents.files[v].async("text")]):[3,5];case 3:b=l.apply(void 0,[T.sent()]),this.themes.push(new Jar(v,b,this)),T.label=4;case 4:return i++,[3,2];case 5:return(u=n.find((function(x){return x.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"})))?(v=u.attrs.PartName.substr(1),d=zc,[4,this._zipContents.files[v].async("text")]):[3,7];case 6:b=d.apply(void 0,[T.sent()]),this.tableStyles=b,T.label=7;case 7:h=n.filter((function(x){return x.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"})),y=0,T.label=8;case 8:return y<h.length?(v=h[y].attrs.PartName.substr(1),f=zc,[4,this._zipContents.files[v].async("text")]):[3,11];case 9:b=f.apply(void 0,[T.sent()]),this.slideMaster.push(new Qar(v,b,this)),T.label=10;case 10:return y++,[3,8];case 11:p=n.filter((function(x){return x.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"})),y=0,T.label=12;case 12:return y<p.length?(v=p[y].attrs.PartName.substr(1),g=zc,[4,this._zipContents.files[v].async("text")]):[3,16];case 13:return b=g.apply(void 0,[T.sent()]),[4,(m=new Zar(v,b,this)).load()];case 14:T.sent(),this.slideLayouts.push(m),T.label=15;case 15:return y++,[3,12];case 16:_=n.filter((function(x){return x.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"})),y=0,T.label=17;case 17:return y<_.length?(v=_[y].attrs.PartName.substr(1),E=zc,[4,this._zipContents.files[v].async("text")]):[3,21];case 18:return b=E.apply(void 0,[T.sent()]),[4,(S=new Kar(v,b,this)).load()];case 19:T.sent(),this.slides.push(S),T.label=20;case 20:return y++,[3,17];case 21:return this.slides.sort((function(x,w){return x.index-w.index})),[3,23];case 22:return T.sent(),[3,23];case 23:return[2]}}))}))},t.prototype._loadMedia=function(){return to(this,void 0,void 0,(function(){var e,r,n,a,i,s,o,l,u,d,h,f,p,g=this;return ro(this,(function(m){switch(m.label){case 0:e=Object.keys(this._zipContents.files).filter((function(y){return y.startsWith("ppt/media/image")})).map((function(y){return g._zipContents.files[y]})),r=0,n=e,m.label=1;case 1:return r<n.length?(a=n[r],i=(function(y){var v;switch(y){case"jpg":case"jpeg":v="image/jpeg";break;case"png":v="image/png";break;case"gif":v="image/gif";break;case"emf":v="image/x-emf";break;case"wmf":v="image/x-wmf";break;default:v="image/*"}return v})((_=a.name).substr(2+(~-_.lastIndexOf(".")>>>0))),[4,a.async("base64")]):[3,4];case 2:s=m.sent(),this.medias[a.name]="data:".concat(i,";base64,").concat(s),m.label=3;case 3:return r++,[3,1];case 4:o=Object.keys(this._zipContents.files).filter((function(y){return y.startsWith("ppt/media/media")&&["mp3","wav","ogg","mp4","webm"].includes(y.split(".").pop().toLowerCase())})).map((function(y){return g._zipContents.files[y]})),l=0,u=o,m.label=5;case 5:return l<u.length?(d=u[l],h=d.name.split(".").pop().toLowerCase(),[4,d.async("arraybuffer")]):[3,8];case 6:f=m.sent(),p=new Blob([f],{type:"".concat(["mp3","wav"].includes(h)?"audio":"video","/").concat(h)}),this.medias[d.name]=URL.createObjectURL(p),m.label=7;case 7:return l++,[3,5];case 8:return[2]}var _}))}))},t.prototype.getXmlByPath=function(e){return to(this,void 0,void 0,(function(){return ro(this,(function(r){switch(r.label){case 0:if(!this._zipContents.files[e])throw new Error("文件不存在");return[4,this._zipContents.files[e].async("text")];case 1:return[2,r.sent()]}}))}))},t.prototype.getSlideLayout=function(e){return this.slideLayouts.find((function(r){return r.name===e}))},t.prototype.getSlideMaster=function(e){return this.slideMaster.find((function(r){return r.name===e}))},t.prototype.getTheme=function(e){return this.themes.find((function(r){return r.name===e}))},t.prototype.getMedia=function(e){return this.medias[e]},t})();function HJ(t){var e=t.extend,r=t.offset,n=t.clip,a=t.base64,i=t.audioFile,s=t.videoFile,o=document.createElement("div");o.style.setProperty("position","absolute"),o.style.setProperty("left",r.x+"px"),o.style.setProperty("top",r.y+"px");var l,u,d,h,f=document.createElement("div");f.style.setProperty("position","absolute"),f.style.setProperty("left","0"),f.style.setProperty("top","0"),f.style.setProperty("width",e.w+"px"),f.style.setProperty("height",e.h+"px"),f.style.setProperty("overflow","hidden"),n?(l=e.w/(1-(n.l===void 0?0:n.l)-(n.r===void 0?0:n.r)),u=e.h/(1-(n.t===void 0?0:n.t)-(n.b===void 0?0:n.b)),d=-1*l*(n.l===void 0?0:n.l),h=-1*u*(n.t===void 0?0:n.t)):(l=e.w,u=e.h,d=0);var p=document.createElement("img");if(p.src=a,p.width=l,p.height=u,p.style.setProperty("position","absolute"),p.style.setProperty("left",d+"px"),p.style.setProperty("top",h+"px"),f.append(p),o.append(f),i){var g=document.createElement("audio");g.style.position="absolute",g.style.left="0",g.style.top="0",g.src=i,g.controls=!0,g.style.transform="translate(-50%)",o.append(g)}if(s){var m=document.createElement("video");m.style.position="absolute",m.style.left="0",m.style.top="0",m.width=e.w,m.height=e.h,m.src=s,m.controls=!0,o.append(m)}return o}function eir(t,e,r){var n,a=t.props,i=t.text,s=qt(qt({},e),a),o=document.createElement("span");o.innerHTML=typeof i=="string"?i:"";var l=18;s.size&&(!((n=r?.normAutofit)===null||n===void 0)&&n.fontScale?(l=s.size*r.normAutofit.fontScale,o.style.fontSize=l+"px"):(l=s.size,o.style.fontSize=l+"px"));var u=la(s.color);u&&(o.style.color=u);var d=/^[^\u4e00-\u9fff]+$/;if(s.typeface)switch(o.style.fontFamily=s.typeface,s.typeface){case"DengXian":d.test(i)&&(o.style.letterSpacing=-.04*l+"px");break;case"DengXian Light":d.test(i)&&(o.style.letterSpacing=-.05*l+"px");break;case"STLiti":case"SimSun":case"NSimSun":case"SimHei":d.test(i)&&(o.style.fontSize=.85*parseInt(o.style.fontSize)+"px");break;case"华文中宋":case"Fira Sans Extra Condensed Medium":o.style.fontSize=.85*parseInt(o.style.fontSize)+"px";break;case"FangSong":o.style.letterSpacing=-.08*l+"px"}else d.test(i)&&(o.style.letterSpacing=-.04*l+"px");return s.bold&&(o.style.fontWeight="bold"),s.italic&&(o.style.fontStyle="italic"),s.underline&&s.underline!=="none"&&(o.style.textDecoration="underline"),s.background&&(o.style.backgroundColor=la(s.background)),o.style.wordBreak="break-word",o}function tir(t,e,r){var n=document.createElement("span"),a=t.firstElementChild;switch(n.style.fontSize=a.style.fontSize,n.style.color=a.style.color,n.style.fontWeight=a.style.fontWeight,n.style.fontStyle=a.style.fontStyle,n.style.marginRight="10px",e.buAutoNum){case"arabicPeriod":default:n.textContent=r+".";break;case"circleNumDbPlain":n.textContent=["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳"][r-1]||r+"";break;case"romanUcPeriod":n.textContent=(function(i){var s=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];if(typeof i!="number"||i<1||i>3999)throw new Error("Input must be a number between 1 and 3999.");for(var o="",l=0;l<s.length;l++)for(;i>=s[l].value;)o+=s[l].numeral,i-=s[l].value;return o})(r)+".";break;case"alphaUcPeriod":n.textContent=BW(r)+".";break;case"alphaLcPeriod":n.textContent=BW(r).toLowerCase()+".";break;case"alphaLcParenR":n.textContent=BW(r).toLowerCase()+")";break;case"ea1JpnChsDbPeriod":n.textContent=(function(i){var s=["〇","一","二","三","四","五","六","七","八","九"];if(!Number.isInteger(i)||i<0)return"";for(var o="",l=i.toString(),u=0;u<l.length;u++)o+=s[parseInt(l[u],10)];return o})(r)+"."}t.prepend(n)}function v6(t,e,r){var n,a,i,s;e===void 0&&(e=0),r===void 0&&(r={});var o=t.inheritProps,l=t.inheritRProps,u=t.props,d=t.rows,h=qt(qt({},o),u),f=function(){for(var T,x,w=0,C=0,R=d;C<R.length;C++){var N=R[C];N.props&&N.props.size&&(w=Math.max(w,N.props.size))}var k=((x=(T=r?.bodyProps)===null||T===void 0?void 0:T.normAutofit)===null||x===void 0?void 0:x.fontScale)||1;return(w||l.size||18)*k},p=document.createElement("div"),g=r.isFirst?0:h.spaceBefore||0,m=r.isLast?0:h.spaceAfter||0;p.style.margin="".concat(Math.floor(.2*f()),"px 0 0 0"),p.style.padding="".concat(Math.floor(g),"px 0px ").concat(Math.floor(m),"px 0px");var _=document.createElement("p");_.style.margin="0",_.style.padding="0px",_.style.wordBreak="break-word",_.style.textAlign=h.align&&{ctr:"center",l:"left",r:"right",dist:"justify"}[h.align]||"center",h.align==="dist"&&(_.style.textAlignLast="justify");var y=h.hasOwnProperty("lineHeight")?h.lineHeight:1;if(!((a=(n=r.bodyProps)===null||n===void 0?void 0:n.normAutofit)===null||a===void 0)&&a.lnSpcReduction&&(y*=1-((s=(i=r.bodyProps)===null||i===void 0?void 0:i.normAutofit)===null||s===void 0?void 0:s.lnSpcReduction)),_.style.lineHeight=y+"",_.style.fontSize=f()+"px",d.length){for(var v=0,b=d;v<b.length;v++){var E=b[v];E.isBr?_.appendChild(document.createElement("br")):_.appendChild(eir(E,qt(qt({},l),{marginTop:Math.floor(.2*f())}),r.bodyProps))}h.buAutoNum?tir(_,h,e):h.buChar&&(function(T,x){var w=document.createElement("span"),C=T.firstElementChild;w.style.color=C.style.color,w.style.fontSize=C.style.fontSize,w.textContent={n:"■",l:"●",u:"◆",p:"□",ü:"✔",Ø:"➢","•":"•"}[x.buChar]||"■",w.style.marginRight="10px",T.prepend(w)})(_,h),_.style.paddingLeft=(h.marginLeft||0)+(h.indent||0)+"px"}else{var S=document.createElement("span");S.innerHTML="&nbsp;",S.style.fontSize=l.size+"px",_.appendChild(S)}return p.appendChild(_),p}var Tje="http://www.w3.org/2000/svg";function kt(t){return document.createElementNS(Tje,t)}function Qp(t){var e=t.extend;return .16667*Math.min(e.w,e.h)}function zr(t,e,r){r===void 0&&(r=0);var n=e.prstGeom,a=(n?.gd||[]).find((function(i){return i.name===t}));return a?a.fmla:r}function Ct(t,e,r){r===void 0&&(r=0);var n=e.extend,a=e.prstGeom,i=(a?.gd||[]).find((function(s){return s.name===t}));return i?Math.min(n.w,n.h)*i.fmla:r}function hIe(t,e,r){r===void 0&&(r=0);var n=e.extend,a=e.prstGeom,i=(a?.gd||[]).find((function(s){return s.name===t}));return i?Math.max(n.w,n.h)*i.fmla:r}function yp(t,e){var r=0;switch(t){case"sm":r=1*e;break;case"med":r=1.5*e;break;case"lg":r=2.5*e}return Math.max(r,2)}function fIe(t,e,r,n){n===void 0&&(n=!1);var a=t.border,i=a===void 0?{}:a,s=t.uuid,o=i.headEnd,l=i.width,u=i.color,d=i.tailEnd,h=n?o:d,f=h.len,p=f===void 0?"med":f,g=h.w,m=g===void 0?"med":g,_=yp(p,l),y=yp(m,l),v=kt("defs"),b=kt("marker"),E="marker-".concat(s,"-").concat(n?"start":"end");b.setAttribute("id",E),b.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*y)),b.setAttribute("refX",_+"px"),b.setAttribute("refY",y+"px"),b.setAttribute("markerWidth",2*_+"px"),b.setAttribute("markerHeight",2*y+"px"),b.setAttribute("orient","auto"),b.setAttribute("markerUnits","userSpaceOnUse");var S=kt("ellipse");S.setAttribute("cx",_+"px"),S.setAttribute("cy",y+"px"),S.setAttribute("rx",_+"px"),S.setAttribute("ry",y+"px"),S.setAttribute("fill",la(u)||"transparent"),b.appendChild(S),v.appendChild(b),e.appendChild(v),r.setAttribute(n?"marker-start":"marker-end","url(#".concat(E,")"))}function pIe(t,e,r,n){n===void 0&&(n=!1);var a=t.border,i=a===void 0?{}:a,s=t.uuid,o=i.headEnd,l=i.width,u=i.color,d=i.tailEnd,h=n?o:d,f=h.len,p=f===void 0?"med":f,g=h.w,m=g===void 0?"med":g,_=yp(p,l),y=yp(m,l),v=kt("defs"),b=kt("marker"),E="marker-".concat(s,"-").concat(n?"start":"end");b.setAttribute("id",E),b.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*y)),b.setAttribute("refX",(n?.9*_:1.1*_)+"px"),b.setAttribute("refY",y+"px"),b.setAttribute("markerWidth",2*_+"px"),b.setAttribute("markerHeight",2*y+"px"),b.setAttribute("orient","auto"),b.setAttribute("markerUnits","userSpaceOnUse");var S=kt("path"),T=n?["M ".concat(2*_,",0"),"L 0,".concat(y),"L ".concat(2*_,",").concat(2*y),"Z"].join(" "):["M 0,0","L ".concat(2*_,",").concat(y),"L 0,".concat(2*y),"Z"].join(" ");S.setAttribute("d",T),S.setAttribute("fill",la(u)||"transparent"),b.appendChild(S),v.appendChild(b),e.appendChild(v),r.setAttribute(n?"marker-start":"marker-end","url(#".concat(E,")"))}function gIe(t,e,r,n){n===void 0&&(n=!1);var a=t.border,i=a===void 0?{}:a,s=t.uuid,o=i.headEnd,l=i.width,u=i.color,d=i.tailEnd,h=n?o:d,f=h.len,p=f===void 0?"med":f,g=h.w,m=g===void 0?"med":g,_=yp(p,l),y=yp(m,l),v=kt("defs"),b=kt("marker"),E="marker-".concat(s,"-").concat(n?"start":"end");b.setAttribute("id",E),b.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*y)),b.setAttribute("refX",_+"px"),b.setAttribute("refY",y+"px"),b.setAttribute("markerWidth",2*_+"px"),b.setAttribute("markerHeight",2*y+"px"),b.setAttribute("orient","auto"),b.setAttribute("markerUnits","userSpaceOnUse");var S=kt("path"),T=["M 0,".concat(y),"L ".concat(_,",0"),"L ".concat(2*_,",").concat(y),"L ".concat(_,",").concat(2*y),"Z"].join(" ");S.setAttribute("d",T),S.setAttribute("fill",la(u)||"transparent"),b.appendChild(S),v.appendChild(b),e.appendChild(v),r.setAttribute(n?"marker-start":"marker-end","url(#".concat(E,")"))}function mIe(t,e,r,n){n===void 0&&(n=!1);var a=t.border,i=a===void 0?{}:a,s=t.uuid,o=i.headEnd,l=i.width,u=i.color,d=i.tailEnd,h=n?o:d,f=h.len,p=f===void 0?"med":f,g=h.w,m=g===void 0?"med":g,_=yp(p,l),y=yp(m,l),v=kt("defs"),b=kt("marker"),E="marker-".concat(s,"-").concat(n?"start":"end");b.setAttribute("id",E),b.setAttribute("viewBox","0 0 ".concat(2*_+2*l," ").concat(2*y+2*l));var S=n?m==="lg"?2*l:3*l:m==="lg"?2*_:2*_-l;b.setAttribute("refX",S+"px"),b.setAttribute("refY",y+l+"px"),b.setAttribute("markerWidth",2*_+"px"),b.setAttribute("markerHeight",2*y+"px"),b.setAttribute("orient","auto"),b.setAttribute("markerUnits","userSpaceOnUse");var T=kt("path"),x=n?["M ".concat(2*_+l,", ").concat(l),"L ".concat(l,",").concat(y+l),"L ".concat(2*_+l,",").concat(2*y+l)].join(" "):["M ".concat(l,", ").concat(l),"L ".concat(2*_+l,",").concat(y+l),"L ".concat(l,",").concat(2*y+l)].join(" ");T.setAttribute("d",x),T.setAttribute("stroke-width",l+"px"),T.setAttribute("stroke",la(u)||"transparent"),T.setAttribute("fill","transparent"),T.setAttribute("stroke-linecap","round"),T.setAttribute("stroke-linejoin","miter"),T.style.overflow="visible",b.appendChild(T),v.appendChild(b),e.appendChild(v),r.setAttribute(n?"marker-start":"marker-end","url(#".concat(E,")"))}function vIe(t,e,r,n){n===void 0&&(n=!1);var a=t.border,i=a===void 0?{}:a,s=t.uuid,o=i.headEnd,l=i.width,u=i.color,d=i.tailEnd,h=n?o:d,f=h.len,p=f===void 0?"med":f,g=h.w,m=g===void 0?"med":g,_=yp(p,l),y=yp(m,l),v=kt("defs"),b=kt("marker"),E="marker-".concat(s,"-").concat(n?"start":"end");b.setAttribute("id",E),b.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*y));var S=n?m==="sm"?1.5*l:2*l:m==="sm"?2*_-1.5*l:2*_-2*l;b.setAttribute("refX",S+"px"),b.setAttribute("refY",y+"px"),b.setAttribute("markerWidth",2*_+"px"),b.setAttribute("markerHeight",2*y+"px"),b.setAttribute("orient","auto"),b.setAttribute("markerUnits","userSpaceOnUse");var T=kt("path"),x=n?["M 0, ".concat(y),"L ".concat(2*_,",0"),"L ".concat(_,",").concat(y),"L ".concat(2*_,",").concat(2*y),"Z"].join(" "):["M 0,0","L ".concat(2*_,",").concat(y),"L 0,".concat(2*y),"L ".concat(_,",").concat(y),"Z"].join(" ");T.setAttribute("d",x),T.setAttribute("fill",la(u)||"transparent"),T.style.overflow="visible",b.appendChild(T),v.appendChild(b),e.appendChild(v),r.setAttribute(n?"marker-start":"marker-end","url(#".concat(E,")"))}function PA(t,e,r){var n=t.border,a=n===void 0?{}:n;t.extend;var i=a.headEnd,s=a.tailEnd;if(i&&i.type!=="none")switch(i.type){case"triangle":pIe(t,e,r,!0);break;case"oval":fIe(t,e,r,!0);break;case"diamond":gIe(t,e,r,!0);break;case"arrow":mIe(t,e,r,!0);break;case"stealth":vIe(t,e,r,!0)}if(s&&s.type!=="none")switch(s.type){case"triangle":pIe(t,e,r,!1);break;case"oval":fIe(t,e,r,!1);break;case"diamond":gIe(t,e,r,!1);break;case"arrow":mIe(t,e,r,!1);break;case"stealth":vIe(t,e,r,!1)}}function yIe(t){var e=t.extend,r=kt("rect");return r.setAttribute("x","0"),r.setAttribute("y","0"),r.setAttribute("width",e.w+"px"),r.setAttribute("height",e.h+"px"),r}function pl(t,e,r,n,a){var i=t*Math.PI/180;return[i===0||i===2*Math.PI?e+n:i===Math.PI?e-n:i===Math.PI/2||i===3*Math.PI/2?e:i>0&&i<Math.PI/2||i>3*Math.PI/2&&i<2*Math.PI?e+Math.sqrt(1/(1/Math.pow(n,2)+Math.pow(Math.tan(i),2)/Math.pow(a,2))):e-Math.sqrt(1/(1/Math.pow(n,2)+Math.pow(Math.tan(i),2)/Math.pow(a,2))),i===0||i===2*Math.PI||i===Math.PI?r:i===Math.PI/2?r+a:i===3*Math.PI/2?r-a:i>Math.PI&&i<2*Math.PI?r-Math.sqrt(1/(1/Math.pow(a,2)+Math.pow(1/Math.tan(i),2)/Math.pow(n,2))):r+Math.sqrt(1/(1/Math.pow(a,2)+Math.pow(1/Math.tan(i),2)/Math.pow(n,2)))]}function BA(t,e){var r=0;return(e>t&&e-t>180||e<t&&t-e<180)&&(r=1),r}function FA(t){var e=t.extend,r=.146*e.w,n=.146*e.h;return{top:n,bottom:n,left:r,right:r,w:e.w-2*r,h:e.h-2*n}}function YJ(t){var e=t.extend,r=t.offset,n=t.border,a=t.background,i=t.rotate,s=t.flipH,o=t.flipV,l=document.createElement("div"),u=r.x,d=r.y;l.className="shape-wrapper shape-".concat(t.shape),l.style.setProperty("position","absolute"),l.style.setProperty("width",(e.w||1)+"px"),l.style.setProperty("height",(e.h||1)+"px"),l.style.setProperty("left",u+"px"),l.style.setProperty("top",d+"px");var h,f=document.createElementNS(Tje,"svg");f.style.setProperty("position","absolute"),f.setAttribute("width","100%"),f.setAttribute("height","100%"),f.style.setProperty("left","0"),f.style.setProperty("top","0"),f.style.overflow="visible";var p={left:0,top:0,bottom:0,w:e.w,h:e.h},g=!0;switch(t.shape){case"customGeom":h=(function(y){var v=y.prstGeom,b=v===void 0?{}:v,E=y.extend,S=b.pathList,T=b.w,x=b.h,w=kt("path"),C={moveTo:"M",lnTo:"L",cubicBezTo:"C",close:"Z"},R=E.w/T,N=E.h/x,k=S.map((function(L){var A=C[L.type],D=Array.isArray(L.points)?L.points.map((function(M){return"".concat(M[0]*R,",").concat(M[1]*N)})).join(" "):"";return D?"".concat(A," ").concat(D):"".concat(A)})).join(" ");return w.setAttribute("d",k),w.style.fillRule="evenodd",w})(t),PA(t,f,h);break;case"flowChartProcess":case"rect":h=yIe(t);break;case"snip1Rect":h=(function(y){var v=y.extend,b=kt("polygon"),E=Ct("adj",y,Qp(y)),S=["0,0","".concat(v.w-E,",0"),"".concat(v.w,",").concat(E),"".concat(v.w,",").concat(v.h),"0,".concat(v.h)].join(" ");return b.setAttribute("points",S),b})(t);break;case"snip2SameRect":h=(function(y){var v=y.extend,b=kt("polygon"),E=Ct("adj1",y,Qp(y)),S=Ct("adj2",y,0),T=[[E,0],[v.w-E,0],[v.w,E],[v.w,v.h-S],[v.w-S,v.h],[S,v.h],[0,v.h-S],[0,E]].map((function(x){return"".concat(x[0],",").concat(x[1])})).join(" ");return b.setAttribute("points",T),b})(t);break;case"snip2DiagRect":h=(function(y){var v=y.extend,b=kt("polygon"),E=Ct("adj1",y,0),S=Ct("adj2",y,Qp(y)),T=[[E,0],[v.w-S,0],[v.w,S],[v.w,v.h-E],[v.w-E,v.h],[S,v.h],[0,v.h-S],[0,E]].map((function(x){return"".concat(x[0],",").concat(x[1])})).join(" ");return b.setAttribute("points",T),b})(t);break;case"snipRoundRect":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj1",y,Qp(y)),S=Ct("adj2",y,Qp(y)),T=["M ".concat(E,",0"),"L ".concat(v.w-S,",0"),"L ".concat(v.w,",").concat(S),"L ".concat(v.w,",").concat(v.h),"L 0,".concat(v.h),"L 0,".concat(E),"Q 0,0 ".concat(E,",0"),"Z"].join(" ");return b.setAttribute("d",T),b})(t);break;case"roundRect":h=(function(y){var v=yIe(y),b=Ct("adj",y,Qp(y));return v.setAttribute("rx",b+"px"),v.setAttribute("ry",b+"px"),v})(t);break;case"round1Rect":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,Qp(y)),S=["M 0,0","L ".concat(v.w-E,",0"),"Q ".concat(v.w,",0 ").concat(v.w,",").concat(E),"L ".concat(v.w,",").concat(v.h),"L 0,".concat(v.h),"Z"].join(" ");return b.setAttribute("d",S),b})(t);break;case"round2SameRect":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj1",y,Qp(y)),S=Ct("adj2",y,0),T=["M ".concat(E,",0"),"L ".concat(v.w-E,",0"),"Q ".concat(v.w,",0 ").concat(v.w,",").concat(E),"L ".concat(v.w,",").concat(v.h-S),"Q ".concat(v.w,",").concat(v.h," ").concat(v.w-S,",").concat(v.h),"L ".concat(S,",").concat(v.h),"Q 0,".concat(v.h," 0,").concat(v.h-S),"L 0,".concat(E),"Q 0,0 ".concat(E,",0"),"Z"].join(" ");return b.setAttribute("d",T),b})(t);break;case"round2DiagRect":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj1",y,Qp(y)),S=Ct("adj2",y,0),T=["M ".concat(E,",0"),"L ".concat(v.w-S,",0"),"Q ".concat(v.w,",0 ").concat(v.w,",").concat(S),"L ".concat(v.w,",").concat(v.h-E),"Q ".concat(v.w,",").concat(v.h," ").concat(v.w-E,",").concat(v.h),"L ".concat(S,",").concat(v.h),"Q 0,".concat(v.h," 0,").concat(v.h-S),"L 0,".concat(E),"Q 0,0 ".concat(E,",0"),"Z"].join(" ");return b.setAttribute("d",T),b})(t);break;case"triangle":h=(function(y){var v=y.extend,b=kt("polygon"),E=["".concat(v.w/2,",0"),"0,".concat(v.h),"".concat(v.w,",").concat(v.h)].join(" ");return b.setAttribute("points",E),b})(t);break;case"rtTriangle":h=(function(y){var v=y.extend,b=kt("polygon"),E=["0,".concat(v.h),"0,0","".concat(v.w,",").concat(v.h)].join(" ");return b.setAttribute("points",E),b})(t);break;case"ellipse":h=(function(y){var v=y.extend,b=kt("ellipse"),E=v.w/2,S=v.h/2,T=E,x=S;return b.setAttribute("cx",E+"px"),b.setAttribute("cy",S+"px"),b.setAttribute("rx",T+"px"),b.setAttribute("ry",x+"px"),b})(t);break;case"line":h=(function(y){var v=y.extend,b=kt("path"),E=["M 0,0","L ".concat(v.w,",").concat(v.h)].join(" ");return b.setAttribute("d",E),b})(t),PA(t,f,h),g=!1;break;case"straightConnector1":h=(function(y){var v=y.extend,b=kt("path"),E=["M 0,0","L ".concat(v.w,",").concat(v.h)].join(" ");return b.setAttribute("d",E),b})(t),PA(t,f,h),g=!1;break;case"bentConnector3":h=(function(y){var v=y.extend,b=kt("path"),E=hIe("adj1",y,.5*Math.max(v.w,v.h)),S=["M 0,0","L ".concat(E,",0"),"L ".concat(E,",").concat(v.h),"L ".concat(v.w,",").concat(v.h)].join(" ");return b.setAttribute("d",S),b})(t),PA(t,f,h),g=!1;break;case"curvedConnector3":h=(function(y){var v=y.extend,b=kt("path"),E=hIe("adj1",y,.5*Math.max(v.w,v.h)),S=["M0,0","Q".concat(E,",0 ").concat(E,",").concat(v.h/2),"T".concat(v.w,",").concat(v.h)].join(" ");return b.setAttribute("d",S),b})(t),PA(t,f,h),g=!1;break;case"parallelogram":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.5*Math.min(v.w,v.h)),S=["M".concat(E,",0"),"L".concat(v.w,",0"),"L".concat(v.w-E,",").concat(v.h),"L0,".concat(v.h),"Z"].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.5*Math.min(v.w,v.h)),E=.84*(v.w-b),S=.08*v.h+b/v.w*v.h*.42;return{top:S,bottom:S,left:(v.w-E)/2,right:(v.w-E)/2,w:E,h:v.h-2*S}})(t);break;case"trapezoid":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.25*Math.min(v.w,v.h)),S=["M".concat(E,",0"),"L".concat(v.w-E,",0"),"L".concat(v.w,",").concat(v.h),"L0,".concat(v.h),"Z"].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.5*Math.min(v.w,v.h)),E=b/v.w*.66*v.h,S=.66*b;return{top:E,bottom:0,left:S,right:S,w:v.w-2*S,h:v.h-E}})(t);break;case"diamond":h=(function(y){var v=y.extend,b=kt("path"),E=["M".concat(v.w/2,",0"),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w/2,",").concat(v.h),"L0,".concat(v.h/2),"Z"].join(" ");return b.setAttribute("d",E),b})(t),p=(function(y){var v=y.extend,b=.25*v.h,E=.25*v.w;return{top:b,bottom:b,left:E,right:E,w:.5*v.w,h:.5*v.h}})(t);break;case"pentagon":h=(function(y){var v=y.extend,b=kt("path"),E=["M".concat(v.w/2,",0"),"L".concat(v.w,",").concat(.3771*v.h),"L".concat(.808*v.w,",").concat(v.h),"L".concat(.192*v.w,",").concat(v.h),"L0,".concat(.3771*v.h),"Z"].join(" ");return b.setAttribute("d",E),b})(t),p=(function(y){var v=y.extend,b=.227*v.h,E=.192*v.w;return{top:b,bottom:0,left:E,right:E,w:.616*v.w,h:.773*v.h}})(t);break;case"hexagon":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.25*Math.min(v.w,v.h)),S=["M".concat(E,",0"),"L".concat(v.w-E,",0"),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-E,",").concat(v.h),"L".concat(E,",").concat(v.h),"L0,".concat(v.h/2),"Z"].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.25*Math.min(v.w,v.h)),E=.098*v.h+b/v.w*.38*v.h,S=.088*v.w+.422*b;return{top:E,bottom:E,left:S,right:S,w:v.w-2*S,h:v.h-2*E}})(t);break;case"heptagon":h=(function(y){var v=y.extend,b=kt("path"),E=["M".concat(v.w/2,",0"),"L".concat(.9*v.w,",").concat(.2*v.h),"L".concat(v.w,",").concat(.642*v.h),"L".concat(.722*v.w,",").concat(v.h),"L".concat(.278*v.w,",").concat(v.h),"L0,".concat(.642*v.h),"L".concat(.1*v.w,",").concat(.2*v.h),"Z"].join(" ");return b.setAttribute("d",E),b})(t),p=(function(y){var v=y.extend;return{top:.2*v.h,bottom:.2*v.h,left:.1*v.w,right:.1*v.w,w:.8*v.w,h:.6*v.h}})(t);break;case"octagon":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.29*Math.min(v.w,v.h)),S=["M".concat(E,",0"),"L".concat(v.w-E,",0"),"L".concat(v.w,",").concat(E),"L".concat(v.w,",").concat(v.h-E),"L".concat(v.w-E,",").concat(v.h),"L".concat(E,",").concat(v.h),"L0,".concat(v.h-E),"L0,".concat(E),"Z"].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.29*Math.min(v.w,v.h));return{top:.5*b,bottom:.5*b,left:.5*b,right:.5*b,w:v.w-b,h:v.h-b}})(t);break;case"decagon":h=(function(y){var v=y.extend,b=kt("path"),E=.344,S=.117,T=.19,x=["M".concat(v.w*E,",0"),"L".concat(.656*v.w,",0"),"L".concat(.883*v.w,",").concat(v.h*T),"L".concat(v.w,",").concat(.5*v.h),"L".concat(.883*v.w,",").concat(.81*v.h),"L".concat(.656*v.w,",").concat(v.h),"L".concat(v.w*E,",").concat(v.h),"L".concat(v.w*S,",").concat(.81*v.h),"L0,".concat(.5*v.h),"L".concat(v.w*S,",").concat(v.h*T),"Z"].join(" ");return b.setAttribute("d",x),b})(t),p=(function(y){var v=y.extend,b=.117,E=.19;return{top:v.h*E,bottom:v.h*E,left:v.w*b,right:v.w*b,w:.766*v.w,h:.62*v.h}})(t);break;case"dodecagon":h=(function(y){var v=y.extend,b=kt("path"),E=.364,S=.133,T=.135,x=["M".concat(v.w*E,",0"),"L".concat(.636*v.w,",0"),"L".concat(.867*v.w,",").concat(v.h*T),"L".concat(v.w,",").concat(v.h*E),"L".concat(v.w,",").concat(.636*v.h),"L".concat(.867*v.w,",").concat(.865*v.h),"L".concat(.636*v.w,",").concat(v.h),"L".concat(v.w*E,",").concat(v.h),"L".concat(v.w*S,",").concat(.865*v.h),"L0,".concat(.636*v.h),"L0,".concat(v.h*E),"L".concat(v.w*S,",").concat(v.h*T),"Z"].join(" ");return b.setAttribute("d",x),b})(t),p=(function(y){var v=y.extend,b=.133,E=.135;return{top:v.h*E,bottom:v.h*E,left:v.w*b,right:v.w*b,w:.734*v.w,h:.73*v.h}})(t);break;case"pie":h=(function(y){var v=y.extend,b=kt("path"),E=zr("adj1",y,360),S=zr("adj2",y,270),T=v.w/2,x=v.h/2,w=v.w/2,C=v.h/2,R=pl(E,w,C,T,x),N=R[0],k=R[1],L=pl(S,w,C,T,x),A=L[0],D=L[1],M=BA(E,S),B="M".concat(w,",").concat(C,", L").concat(N," ").concat(k," A ").concat(T," ").concat(x," 0 ").concat(M," ").concat(1," ").concat(A," ").concat(D," Z");return b.setAttribute("d",B),b})(t),p=FA(t);break;case"arc":h=(function(y){var v=y.extend,b=kt("path"),E=zr("adj1",y,270),S=zr("adj2",y,0),T=v.w/2,x=v.h/2,w=v.w/2,C=v.h/2,R=pl(E,w,C,T,x),N=R[0],k=R[1],L=pl(S,w,C,T,x),A=L[0],D=L[1],M=BA(E,S),B="M".concat(N,",").concat(k," A ").concat(T," ").concat(x," 0 ").concat(M," ").concat(1," ").concat(A," ").concat(D);return b.setAttribute("d",B),b})(t),g=!1;break;case"bracketPair":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.16667*Math.min(v.w,v.h)),S=["M".concat(E,",").concat(v.h),"Q".concat(0,",").concat(v.h," ").concat(0,",").concat(v.h-E),"L".concat(0,",").concat(E),"Q".concat(0,",").concat(0," ").concat(E,",").concat(0),"M".concat(v.w-E,",").concat(0),"Q".concat(v.w,",").concat(0," ").concat(v.w,",").concat(E),"L".concat(v.w,",").concat(v.h-E),"Q".concat(v.w,",").concat(v.h," ").concat(v.w-E,",").concat(v.h)].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=.285*Ct("adj",y,.16667*Math.min(v.w,v.h));return{top:b,bottom:b,left:b,right:b,w:v.w-2*b,h:v.h-2*b}})(t),g=!1;break;case"bracePair":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.083335*Math.min(v.w,v.h)),S=["M".concat(2*E,",").concat(v.h),"Q".concat(E,",").concat(v.h," ").concat(E,",").concat(v.h-E),"L".concat(E,",").concat(v.h/2+E),"Q".concat(E,",").concat(v.h/2," ").concat(0,",").concat(v.h/2),"Q".concat(E,",").concat(v.h/2," ").concat(E,",").concat(v.h/2-E),"L".concat(E,",").concat(E),"Q".concat(E,",").concat(0," ").concat(2*E,",").concat(0),"M".concat(v.w-2*E,",").concat(0),"Q".concat(v.w-E,",").concat(0," ").concat(v.w-E,",").concat(E),"L".concat(v.w-E,",").concat(v.h/2-E),"Q".concat(v.w-E,",").concat(v.h/2," ").concat(v.w,",").concat(v.h/2),"Q".concat(v.w-E,",").concat(v.h/2," ").concat(v.w-E,",").concat(v.h/2+E),"L".concat(v.w-E,",").concat(v.h-E),"Q".concat(v.w-E,",").concat(v.h," ").concat(v.w-2*E,",").concat(v.h)].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=.285*Ct("adj",y,.16667*Math.min(v.w,v.h));return{top:b,bottom:b,left:b,right:b,w:v.w-2*b,h:v.h-2*b}})(t),g=!1;break;case"chord":h=(function(y){var v=y.extend,b=kt("path"),E=zr("adj1",y,45),S=zr("adj2",y,270),T=v.w/2,x=v.h/2,w=v.w/2,C=v.h/2,R=pl(E,w,C,T,x),N=R[0],k=R[1],L=pl(S,w,C,T,x),A=L[0],D=L[1],M=BA(E,S),B="M".concat(N," ").concat(k," A ").concat(T," ").concat(x," 0 ").concat(M," ").concat(1," ").concat(A," ").concat(D," Z");return b.setAttribute("d",B),b})(t),p=FA(t);break;case"teardrop":h=(function(y){var v=y.extend,b=kt("path"),E=zr("adj",y,1),S=v.w/2,T=v.h/2,x=v.w/2,w=v.h/2,C=pl(0,x,w,S,T),R=C[0],N=C[1],k=pl(270,x,w,S,T),L=k[0],A=k[1],D=BA(0,270),M="M".concat(R," ").concat(N," A ").concat(S," ").concat(T," 0 ").concat(D," ").concat(1," ").concat(L," ").concat(A),B=S*E,F=x+B,U=w-T*B/(v.w/2),V=(v.w/2+F)/2,$=(v.h/2+U)/2;return M+=" Q".concat(V,",0 ").concat(F,",").concat(U),M+=" Q".concat(v.w,",").concat($," ").concat(x+S,",").concat(w),b.setAttribute("d",M),b})(t),p=FA(t);break;case"frame":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj1",y,.12*Math.min(v.w,v.h)),S=["M0,0","L".concat(v.w,",0"),"L".concat(v.w,",").concat(v.h),"L0,".concat(v.h),"Z","M".concat(E,",").concat(E),"L".concat(E,",").concat(v.h-E),"L".concat(v.w-E,",").concat(v.h-E),"L".concat(v.w-E,",").concat(E),"Z"].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.12*Math.min(v.w,v.h));return{top:b,bottom:b,left:b,right:b,w:v.w-2*b,h:v.h-2*b}})(t);break;case"halfFrame":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj1",y,.333*Math.min(v.w,v.h)),S=Math.min(Ct("adj2",y,.333*Math.min(v.w,v.h)),v.w*(1-E/v.h)),T=["M0,0","L".concat(v.w,",0"),"L".concat(v.w*(1-E/v.h),",").concat(E),"L".concat(S,",").concat(E),"L".concat(S,",").concat(v.h*(1-S/v.w)),"L0,".concat(v.h),"Z"].join(" ");return b.setAttribute("d",T),b})(t);break;case"corner":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj1",y,.5*Math.min(v.w,v.h)),S=Ct("adj2",y,.5*Math.min(v.w,v.h)),T=["M0,0","L".concat(S,",0"),"L".concat(S,",").concat(v.h-E),"L".concat(v.w,",").concat(v.h-E),"L".concat(v.w,",").concat(v.h),"L0,".concat(v.h),"Z"].join(" ");return b.setAttribute("d",T),b})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h));return{top:v.h-b,bottom:0,left:0,right:0,w:v.w,h:b}})(t);break;case"diagStripe":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.5*Math.min(v.w,v.h)),S=v.w*E/v.h,T=["M".concat(S,",0"),"L".concat(v.w,",0"),"L0,".concat(v.h),"L0,".concat(E),"Z"].join(" ");return b.setAttribute("d",T),b})(t),p=(function(y){var v=y.extend,b=zr("adj",y,.5),E=.5*(1-b)*v.h,S=.5*(1-b)*v.w;return{top:0,bottom:E,left:0,right:S,w:v.w-S,h:v.h-E}})(t);break;case"plus":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.25*Math.min(v.w,v.h)),S=["M".concat(E,",0"),"L".concat(v.w-E,",0"),"L".concat(v.w-E,",").concat(E),"L".concat(v.w,",").concat(E),"L".concat(v.w,",").concat(v.h-E),"L".concat(v.w-E,",").concat(v.h-E),"L".concat(v.w-E,",").concat(v.h),"L".concat(E,",").concat(v.h),"L".concat(E,",").concat(v.h-E),"L0,".concat(v.h-E),"L0,".concat(E),"L".concat(E,",").concat(E),"Z"].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.25*Math.min(v.w,v.h));return{top:b,bottom:b,left:0,right:0,w:v.w,h:v.h-2*b}})(t);break;case"plaque":h=(function(y){var v=y.extend,b=kt("path"),E=Ct("adj",y,.16667*Math.min(v.w,v.h)),S=["M".concat(E,",0"),"L".concat(v.w-E,",0"),"Q".concat(v.w-E,",").concat(E," ").concat(v.w,",").concat(E),"L".concat(v.w,",").concat(v.h-E),"Q".concat(v.w-E,",").concat(v.h-E," ").concat(v.w-E,",").concat(v.h),"L".concat(E,",").concat(v.h),"Q".concat(E,",").concat(v.h-E," 0,").concat(v.h-E),"L0,".concat(E),"Q".concat(E,",").concat(E," ").concat(E,",0"),"Z"].join(" ");return b.setAttribute("d",S),b})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.16667*Math.min(v.w,v.h));return{top:.72*b,bottom:.72*b,left:.72*b,right:.72*b,w:v.w-1.44*b,h:v.w-1.44*b}})(t);break;case"can":h=(function(y){var v=y.extend,b=y.background,E=kt("g"),S=kt("path"),T=Ct("adj",y,.25*Math.min(v.w,v.h)),x=["M0,".concat(T/2),"L0,".concat(v.h-T/2),"A".concat(v.w/2,",").concat(T/2," 0 0 0 ").concat(v.w,",").concat(v.h-T/2),"L".concat(v.w,",").concat(T/2),"A".concat(v.w/2,",").concat(T/2," 0 0 1 0,").concat(T/2),"Z"].join(" ");S.setAttribute("d",x);var w=kt("ellipse"),C=v.w/2,R=T/2,N=v.w/2,k=T/2;return w.setAttribute("cx",C+"px"),w.setAttribute("cy",R+"px"),w.setAttribute("rx",N+"px"),w.setAttribute("ry",k+"px"),b?.type==="solidFill"&&w.setAttribute("fill",la(b,{light:.5})||"transparent"),E.appendChild(S),E.appendChild(w),E})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.25*Math.min(v.w,v.h));return{top:b,bottom:0,left:0,right:0,w:v.w,h:v.h-b}})(t);break;case"cube":h=(function(y){var v=y.extend,b=y.background,E=Ct("adj",y,.25*Math.min(v.w,v.h)),S=kt("g"),T=kt("path"),x=["M0,".concat(E),"L".concat(v.w-E,",").concat(E),"L".concat(v.w-E,",").concat(v.h),"L0,".concat(v.h),"Z"].join(" ");T.setAttribute("d",x);var w=kt("path"),C=["M0,".concat(E),"L".concat(E,",0"),"L".concat(v.w,",0"),"L".concat(v.w-E,",").concat(E),"Z"].join(" ");w.setAttribute("d",C),b?.type==="solidFill"&&w.setAttribute("fill",la(b,{light:.8})||"transparent");var R=kt("path"),N=["M".concat(v.w,",0"),"L".concat(v.w-E,",").concat(E),"L".concat(v.w-E,",").concat(v.h),"L".concat(v.w,",").concat(v.h-E),"Z"].join(" ");return R.setAttribute("d",N),b?.type==="solidFill"&&R.setAttribute("fill",la(b,{dark:.6})||"transparent"),S.appendChild(T),S.appendChild(w),S.appendChild(R),S})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.25*Math.min(v.w,v.h));return{top:b,bottom:0,left:0,right:b,w:v.w-b,h:v.h-b}})(t);break;case"bevel":h=(function(y){var v=y.extend,b=y.background,E=Ct("adj",y,.125*Math.min(v.w,v.h)),S=kt("g"),T=kt("path"),x=["M".concat(E,",").concat(E),"L".concat(v.w-E,",").concat(E),"L".concat(v.w-E,",").concat(v.h-E),"L".concat(E,",").concat(v.h-E),"Z"].join(" ");T.setAttribute("d",x);var w=kt("path"),C=["M0,0","L".concat(E,",").concat(E),"L".concat(v.w-E,",").concat(E),"L".concat(v.w,",0"),"Z"].join(" ");w.setAttribute("d",C),b?.type==="solidFill"&&w.setAttribute("fill",la(b,{light:.8})||"transparent");var R=kt("path"),N=["M".concat(v.w,",0"),"L".concat(v.w-E,",").concat(E),"L".concat(v.w-E,",").concat(v.h-E),"L".concat(v.w,",").concat(v.h),"Z"].join(" ");R.setAttribute("d",N),b?.type==="solidFill"&&R.setAttribute("fill",la(b,{dark:.6})||"transparent");var k=kt("path"),L=["M".concat(v.w,",").concat(v.h),"L".concat(v.w-E,",").concat(v.h-E),"L".concat(E,",").concat(v.h-E),"L0,".concat(v.h),"Z"].join(" ");k.setAttribute("d",L),b?.type==="solidFill"&&k.setAttribute("fill",la(b,{dark:.625})||"transparent");var A=kt("path"),D=["M0,".concat(v.h),"L".concat(E,",").concat(v.h-E),"L".concat(E,",").concat(E),"L0,0","Z"].join(" ");return A.setAttribute("d",D),b?.type==="solidFill"&&A.setAttribute("fill",la(b,{light:.6})||"transparent"),S.appendChild(T),S.appendChild(w),S.appendChild(R),S.appendChild(k),S.appendChild(A),S})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.125*Math.min(v.w,v.h));return{top:b,bottom:b,left:b,right:b,w:v.w-2*b,h:v.h-2*b}})(t);break;case"donut":h=(function(y){var v=y.extend,b=Ct("adj",y,.25*Math.min(v.w,v.h)),E=kt("path"),S=["M0,".concat(v.h/2),"A".concat(v.w/2,",").concat(v.h/2," 0 1,1 0,").concat(v.h/2+1),"Z","M".concat(v.w-b,",").concat(v.h/2),"A".concat(v.w/2-b,",").concat(v.h/2-b," 0 1,0 ").concat(v.w-b,",").concat(v.h/2+1),"Z"].join(" ");return E.setAttribute("d",S),E})(t),p=FA(t);break;case"noSmoking":h=(function(y){var v=y.extend,b=Ct("adj",y,.25*Math.min(v.w,v.h)),E=kt("path"),S=Math.atan(v.h/v.w),T=b/2/Math.sin(S),x=v.w/2,w=v.h/2,C=-1*v.h/v.w,R=v.h*T/v.w,N=v.w/2-b,k=v.h/2-b,L=-2*N*N*C*R,A=Math.sqrt(Math.pow(2*N*N*C*R,2)-4*(k*k+N*N*C*C)*N*N*(R*R-k*k)),D=2*(k*k+N*N*C*C),M=(L-A)/D,B=C*M+R,F=(L+A)/D,U=C*F+R,V=-v.h*T/v.w,$=-2*N*N*C*V,z=Math.sqrt(Math.pow(2*N*N*C*V,2)-4*(k*k+N*N*C*C)*N*N*(V*V-k*k)),q=2*(k*k+N*N*C*C),j=($-z)/q,X=C*j+V,ie=($+z)/q,ne=C*ie+V,ue=["M0,".concat(v.h/2),"A".concat(v.w/2,",").concat(v.h/2," 0 1,1 0,").concat(v.h/2+1),"Z","M".concat(x+F,",").concat(w-U),"A".concat(N,",").concat(k," 0 0 0 ").concat(x+M,",").concat(w-B),"Z","M".concat(x+j,",").concat(w-X),"A".concat(N,",").concat(k," 0 0 0 ").concat(x+ie,",").concat(w-ne),"Z"].join(" ");return E.setAttribute("d",ue),E})(t),p=FA(t);break;case"rightArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=Ct("adj2",y,.5*Math.min(v.w,v.h)),S=kt("path"),T=["M0,".concat(v.h/2-b/2),"L".concat(v.w-E,",").concat(v.h/2-b/2),"L".concat(v.w-E,",0"),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-E,",").concat(v.h),"L".concat(v.w-E,",").concat(v.h/2+b/2),"L0,".concat(v.h/2+b/2),"Z"].join(" ");return S.setAttribute("d",T),S})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=b*Ct("adj2",y,.5*Math.min(v.w,v.h))/v.h;return{top:v.h/2-b/2,bottom:v.h/2-b/2,left:0,right:E,w:v.w-E,h:b}})(t);break;case"leftArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=Ct("adj2",y,.5*Math.min(v.w,v.h)),S=kt("path"),T=["M0,".concat(v.h/2),"L".concat(E,",0"),"L".concat(E,",").concat(v.h/2-b/2),"L".concat(v.w,",").concat(v.h/2-b/2),"L".concat(v.w,",").concat(v.h/2+b/2),"L".concat(E,",").concat(v.h/2+b/2),"L".concat(E,",").concat(v.h),"Z"].join(" ");return S.setAttribute("d",T),S})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=b*Ct("adj2",y,.5*Math.min(v.w,v.h))/v.h;return{top:v.h/2-b/2,bottom:v.h/2-b/2,left:E,right:0,w:v.w-E,h:b}})(t);break;case"upArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=Ct("adj2",y,.5*Math.min(v.w,v.h)),S=kt("path"),T=["M".concat(v.w/2,",0"),"L".concat(v.w,",").concat(E),"L".concat(v.w/2+b/2,",").concat(E),"L".concat(v.w/2+b/2,",").concat(v.h),"L".concat(v.w/2-b/2,",").concat(v.h),"L".concat(v.w/2-b/2,",").concat(E),"L0,".concat(E),"Z"].join(" ");return S.setAttribute("d",T),S})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=b*Ct("adj2",y,.5*Math.min(v.w,v.h))/v.w;return{top:E,bottom:0,left:v.w/2-b/2,right:v.w/2-b/2,w:b,h:v.h-E}})(t);break;case"downArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=Ct("adj2",y,.5*Math.min(v.w,v.h)),S=kt("path"),T=["M".concat(v.w/2,",").concat(v.h),"L0,".concat(v.h-E),"L".concat(v.w/2-b/2,",").concat(v.h-E),"L".concat(v.w/2-b/2,",0"),"L".concat(v.w/2+b/2,",0"),"L".concat(v.w/2+b/2,",").concat(v.h-E),"L".concat(v.w,",").concat(v.h-E),"Z"].join(" ");return S.setAttribute("d",T),S})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=b*Ct("adj2",y,.5*Math.min(v.w,v.h))/v.w;return{top:0,bottom:E,left:v.w/2-b/2,right:v.w/2-b/2,w:b,h:v.h-E}})(t);break;case"leftRightArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=Ct("adj2",y,.5*Math.min(v.w,v.h)),S=kt("path"),T=["M0,".concat(v.h/2),"L".concat(E,",0"),"L".concat(E,",").concat(v.h/2-b/2),"L".concat(v.w-E,",").concat(v.h/2-b/2),"L".concat(v.w-E,",0"),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-E,",").concat(v.h),"L".concat(v.w-E,",").concat(v.h/2+b/2),"L".concat(E,",").concat(v.h/2+b/2),"L".concat(E,",").concat(v.h),"Z"].join(" ");return S.setAttribute("d",T),S})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=b*Ct("adj2",y,.5*Math.min(v.w,v.h))/v.h;return{top:v.h/2-b/2,bottom:v.h/2-b/2,left:E,right:E,w:v.w-2*E,h:b}})(t);break;case"upDownArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=Ct("adj2",y,.5*Math.min(v.w,v.h)),S=kt("path"),T=["M".concat(v.w/2,",").concat(v.h),"L0,".concat(v.h-E),"L".concat(v.w/2-b/2,",").concat(v.h-E),"L".concat(v.w/2-b/2,",").concat(E),"L0,".concat(E),"L".concat(v.w/2,",0"),"L".concat(v.w,",").concat(E),"L".concat(v.w/2+b/2,",").concat(E),"L".concat(v.w/2+b/2,",").concat(v.h-E),"L".concat(v.w,",").concat(v.h-E),"Z"].join(" ");return S.setAttribute("d",T),S})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.5*Math.min(v.w,v.h)),E=b*Ct("adj2",y,.5*Math.min(v.w,v.h))/v.w;return{top:E,bottom:E,left:v.w/2-b/2,right:v.w/2-b/2,w:b,h:v.h-2*E}})(t);break;case"quadArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.225*Math.min(v.w,v.h)),E=Ct("adj2",y,.225*Math.min(v.w,v.h)),S=Ct("adj3",y,.225*Math.min(v.w,v.h)),T=kt("path"),x=["M0,".concat(v.h/2),"L".concat(S,",").concat(v.h/2-E),"L".concat(S,",").concat(v.h/2-b/2),"L".concat(v.w/2-b/2,",").concat(v.h/2-b/2),"L".concat(v.w/2-b/2,",").concat(S),"L".concat(v.w/2-E,",").concat(S),"L".concat(v.w/2,",0"),"L".concat(v.w/2+E,",").concat(S),"L".concat(v.w/2+b/2,",").concat(S),"L".concat(v.w/2+b/2,",").concat(v.h/2-b/2),"L".concat(v.w-S,",").concat(v.h/2-b/2),"L".concat(v.w-S,",").concat(v.h/2-E),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-S,",").concat(v.h/2+E),"L".concat(v.w-S,",").concat(v.h/2+b/2),"L".concat(v.w/2+b/2,",").concat(v.h/2+b/2),"L".concat(v.w/2+b/2,",").concat(v.h-S),"L".concat(v.w/2+E,",").concat(v.h-S),"L".concat(v.w/2,",").concat(v.h),"L".concat(v.w/2-E,",").concat(v.h-S),"L".concat(v.w/2-b/2,",").concat(v.h-S),"L".concat(v.w/2-b/2,",").concat(v.h/2+b/2),"L".concat(S,",").concat(v.h/2+b/2),"L".concat(S,",").concat(v.h/2+E),"Z"].join(" ");return T.setAttribute("d",x),T})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.225*Math.min(v.w,v.h)),E=Ct("adj2",y,.225*Math.min(v.w,v.h)),S=Ct("adj3",y,.225*Math.min(v.w,v.h)),T=E===0?0:b*S/E/2;return{top:v.h/2-b/2,bottom:v.h/2-b/2,left:T,right:T,w:v.w-2*T,h:b}})(t);break;case"leftRightUpArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.225*Math.min(v.w,v.h)),E=Ct("adj2",y,.225*Math.min(v.w,v.h)),S=Ct("adj3",y,.225*Math.min(v.w,v.h)),T=kt("path");b>2*E&&(b=2*E);var x=["M0,".concat(v.h-E),"L".concat(S,",").concat(v.h-2*E),"L".concat(S,",").concat(v.h-E-b/2),"L".concat(v.w/2-b/2,",").concat(v.h-E-b/2),"L".concat(v.w/2-b/2,",").concat(S),"L".concat(v.w/2-E,",").concat(S),"L".concat(v.w/2,",0"),"L".concat(v.w/2+E,",").concat(S),"L".concat(v.w/2+b/2,",").concat(S),"L".concat(v.w/2+b/2,",").concat(v.h-E-b/2),"L".concat(v.w-S,",").concat(v.h-E-b/2),"L".concat(v.w-S,",").concat(v.h-2*E),"L".concat(v.w,",").concat(v.h-E),"L".concat(v.w-S,",").concat(v.h),"L".concat(v.w-S,",").concat(v.h-E+b/2),"L".concat(S,",").concat(v.h-E+b/2),"L".concat(S,",").concat(v.h),"Z"].join(" ");return T.setAttribute("d",x),T})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.225*Math.min(v.w,v.h)),E=Ct("adj2",y,.225*Math.min(v.w,v.h)),S=Ct("adj3",y,.225*Math.min(v.w,v.h)),T=E===0?0:b*S/E/2;return{top:v.h-E-b/2,bottom:E-b/2,left:T,right:T,w:v.w-2*T,h:b}})(t);break;case"bentArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.25*Math.min(v.w,v.h)),E=Ct("adj2",y,.25*Math.min(v.w,v.h)),S=Ct("adj3",y,.25*Math.min(v.w,v.h)),T=Ct("adj4",y,.4375*Math.min(v.w,v.h)),x=kt("path");b>2*E&&(b=2*E);var w=T-b;w<0&&(w=0);var C=["M0,".concat(v.h),"L0,".concat(E-b/2+T),"A".concat(T," ").concat(T," 0 0 1 ").concat(T," ").concat(E-b/2),"L".concat(v.w-S,",").concat(E-b/2),"L".concat(v.w-S,",0"),"L".concat(v.w,",").concat(E),"L".concat(v.w-S,",").concat(2*E),"L".concat(v.w-S,",").concat(E+b/2),"L".concat(b+w,",").concat(E+b/2),"A".concat(w," ").concat(w," 0 0 0 ").concat(b," ").concat(E+b/2+w),"L".concat(b,",").concat(v.h),"Z"].join(" ");return x.setAttribute("d",C),x})(t);break;case"uturnArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.25*Math.min(v.w,v.h)),E=Ct("adj2",y,.25*Math.min(v.w,v.h)),S=Ct("adj3",y,.25*Math.min(v.w,v.h)),T=Ct("adj4",y,.4375*Math.min(v.w,v.h)),x=Ct("adj5",y,.75*Math.min(v.w,v.h)),w=kt("path");b>2*E&&(b=2*E),x<S&&(x=S+b),T>x-S&&(T=x-S);var C=T-b;C>x-S-b&&(C=x-S-b),C<0&&(C=0);var R=E-b/2,N=["M0,".concat(v.h),"L0,".concat(T),"A".concat(T," ").concat(T," 0 0 1 ").concat(T," 0"),"L".concat(v.w-T-R,",0"),"A".concat(T," ").concat(T," 0 0 1 ").concat(v.w-R," ").concat(T),"L".concat(v.w-R,",").concat(x-S),"L".concat(v.w,",").concat(x-S),"L".concat(v.w-E,",").concat(x),"L".concat(v.w-2*E,",").concat(x-S),"L".concat(v.w-E-b/2,",").concat(x-S),"L".concat(v.w-E-b/2,",").concat(b+C),"A".concat(C," ").concat(C," 0 0 0 ").concat(v.w-C-E-b/2," ").concat(b),"L".concat(b+C,",").concat(b),"A".concat(C," ").concat(C," 0 0 0 ").concat(b," ").concat(b+C),"L".concat(b,",").concat(v.h),"Z"].join(" ");return w.setAttribute("d",N),w})(t);break;case"leftUpArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.25*Math.min(v.w,v.h)),E=Ct("adj2",y,.25*Math.min(v.w,v.h)),S=Ct("adj3",y,.25*Math.min(v.w,v.h));b>2*E&&(b=2*E);var T=Math.min(v.w,v.h)-2*E;S>T&&(S=T),S<0&&(S=0);var x=E-b/2,w=kt("path"),C=["M0,".concat(v.h-E),"L".concat(S,",").concat(v.h-2*E),"L".concat(S,",").concat(v.h-E-b/2),"L".concat(v.w-E-b/2,",").concat(v.h-E-b/2),"L".concat(v.w-E-b/2,",").concat(S),"L".concat(v.w-2*E,",").concat(S),"L".concat(v.w-E,",0"),"L".concat(v.w,",").concat(S),"L".concat(v.w-x,",").concat(S),"L".concat(v.w-x,",").concat(v.h-x),"L".concat(S,",").concat(v.h-x),"L".concat(S,",").concat(v.h),"Z"].join(" ");return w.setAttribute("d",C),w})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.25*Math.min(v.w,v.h)),E=Ct("adj2",y,.25*Math.min(v.w,v.h)),S=Ct("adj3",y,.25*Math.min(v.w,v.h));b>2*E&&(b=2*E);var T=Math.min(v.w,v.h)-2*E;S>T&&(S=T),S<0&&(S=0);var x=E===0?0:b*S/E/2;return{top:v.h-E-b/2,bottom:E-b/2,left:x,right:E,w:v.w-x-E,h:b}})(t);break;case"bentUpArrow":h=(function(y){var v=y.extend,b=Ct("adj1",y,.25*Math.min(v.w,v.h)),E=Ct("adj2",y,.25*Math.min(v.w,v.h)),S=Ct("adj3",y,.25*Math.min(v.w,v.h));b>2*E&&(b=2*E);var T=Math.min(v.w,v.h)-2*E;S>T&&(S=T),S<0&&(S=0);var x=E-b/2,w=kt("path"),C=["M0,".concat(v.h),"L0,".concat(v.h-b),"L".concat(v.w-E-b/2,",").concat(v.h-b),"L".concat(v.w-E-b/2,",").concat(S),"L".concat(v.w-2*E,",").concat(S),"L".concat(v.w-E,",0"),"L".concat(v.w,",").concat(S),"L".concat(v.w-x,",").concat(S),"L".concat(v.w-x,",").concat(v.h),"Z"].join(" ");return w.setAttribute("d",C),w})(t),p=(function(y){var v=y.extend,b=Ct("adj1",y,.25*Math.min(v.w,v.h));return{top:v.h-b,bottom:0,left:0,right:0,w:v.w,h:b}})(t);break;case"curvedRightArrow":h=(function(y){var v=y.extend,b=y.background,E=Ct("adj1",y,.25*Math.min(v.w,v.h)),S=Ct("adj2",y,.5*Math.min(v.w,v.h)),T=Ct("adj3",y,.25*Math.min(v.w,v.h));E>S&&(E=S);var x=S/2-E/2,w=(v.h-S/2-E/2)/2,C=(v.h-x-E)/2,R=kt("g"),N=kt("path"),k=["M".concat(v.w,",0"),"A ".concat(v.w," ").concat(w," 0 0 0 ").concat(0," ").concat(w),"L0,".concat(C+E),"A ".concat(v.w," ").concat(C," 0 0 1 ").concat(v.w," ").concat(E),"Z"].join(" ");N.setAttribute("d",k),b?.type==="solidFill"&&N.setAttribute("fill",la(b,{dark:.6})||"transparent");var L=kt("path"),A=["M0,".concat(w),"A ".concat(v.w," ").concat(w," 0 0 0 ").concat(v.w-T," ").concat(v.h-S/2-E/2),"L".concat(v.w-T,",").concat(v.h-S),"L".concat(v.w,",").concat(v.h-S/2),"L".concat(v.w-T,",").concat(v.h),"L".concat(v.w-T,",").concat(v.h-x),"A ".concat(v.w," ").concat(C," 0 0 1 0 ").concat(E+C),"Z"].join(" ");return L.setAttribute("d",A),R.appendChild(N),R.appendChild(L),R})(t);break;case"curvedLeftArrow":h=(function(y){var v=y.extend,b=y.background,E=Ct("adj1",y,.25*Math.min(v.w,v.h)),S=Ct("adj2",y,.5*Math.min(v.w,v.h)),T=Ct("adj3",y,.25*Math.min(v.w,v.h));E>S&&(E=S);var x=S/2-E/2,w=(v.h-S/2-E/2)/2,C=(v.h-x-E)/2,R=kt("g"),N=kt("path"),k=["M0,".concat(v.h-S/2),"L".concat(T,",").concat(v.h-S),"L".concat(T,",").concat(v.h-S/2-E/2),"A".concat(v.w," ").concat(w," 0 0 0 ").concat(v.w," ").concat(w),"L".concat(v.w,",").concat(C+E),"A ".concat(v.w," ").concat(C," 0 0 1 ").concat(T," ").concat(v.h-x),"L".concat(T,",").concat(v.h),"Z"].join(" ");N.setAttribute("d",k);var L=kt("path"),A=["M0,0","A ".concat(v.w," ").concat(w," 0 0 1 ").concat(v.w," ").concat(w),"L".concat(v.w,",").concat(C+E),"A ".concat(v.w," ").concat(C," 0 0 0 ").concat(0," ").concat(E),"Z"].join(" ");return L.setAttribute("d",A),b?.type==="solidFill"&&L.setAttribute("fill",la(b,{dark:.6})||"transparent"),R.appendChild(N),R.appendChild(L),R})(t);break;case"curvedUpArrow":h=(function(y){var v=y.extend,b=y.background,E=Ct("adj1",y,.25*Math.min(v.w,v.h)),S=Ct("adj2",y,.5*Math.min(v.w,v.h)),T=Ct("adj3",y,.25*Math.min(v.w,v.h));E>S&&(E=S);var x=S/2-E/2,w=(v.w-S/2-E/2)/2,C=(v.w-x-E)/2,R=kt("g"),N=kt("path"),k=["M".concat(v.w-S/2,",").concat(0),"L".concat(v.w-S,",").concat(T),"L".concat(v.w-S/2-E/2,",").concat(T),"A".concat(w," ").concat(v.h," 0 0 1 ").concat(w," ").concat(v.h),"L".concat(w+E,",").concat(v.h),"A".concat(C," ").concat(v.h," 0 0 0 ").concat(v.w-x," ").concat(T),"L".concat(v.w,",").concat(T),"Z"].join(" ");N.setAttribute("d",k);var L=kt("path"),A=["M".concat(E,",0"),"L".concat(0,",").concat(0),"A ".concat(w," ").concat(v.h," 0 0 0 ").concat(w," ").concat(v.h),"L".concat(w+E,",").concat(v.h),"A ".concat(C," ").concat(v.h," 0 0 1 ").concat(E," ").concat(0),"Z"].join(" ");return L.setAttribute("d",A),b?.type==="solidFill"&&L.setAttribute("fill",la(b,{dark:.6})||"transparent"),R.appendChild(N),R.appendChild(L),R})(t);break;case"curvedDownArrow":h=(function(y){var v=y.extend,b=y.background,E=Ct("adj1",y,.25*Math.min(v.w,v.h)),S=Ct("adj2",y,.5*Math.min(v.w,v.h)),T=Ct("adj3",y,.25*Math.min(v.w,v.h));E>S&&(E=S);var x=S/2-E/2,w=(v.w-S/2-E/2)/2,C=(v.w-x-E)/2,R=kt("g"),N=kt("path"),k=["M".concat(0,",").concat(v.h),"L".concat(E,",").concat(v.h),"A".concat(C," ").concat(v.h," 0 0 1 ").concat(C+E," ").concat(0),"L".concat(w,",").concat(0),"A".concat(w," ").concat(v.h," 0 0 0 ").concat(0," ").concat(v.h),"Z"].join(" ");N.setAttribute("d",k),b?.type==="solidFill"&&N.setAttribute("fill",la(b,{dark:.6})||"transparent");var L=kt("path"),A=["M".concat(v.w-S/2,",").concat(v.h),"L".concat(v.w-S,",").concat(v.h-T),"L".concat(v.w-S/2-E/2,",").concat(v.h-T),"A ".concat(w," ").concat(v.h," 0 0 0 ").concat(w," ").concat(0),"L".concat(w+E,",").concat(0),"A ".concat(C," ").concat(v.h," 0 0 1 ").concat(v.w-x," ").concat(v.h-T),"L".concat(v.w,",").concat(v.h-T),"Z"].join(" ");return L.setAttribute("d",A),R.appendChild(N),R.appendChild(L),R})(t);break;case"stripedRightArrow":h=(function(y){var v=y.extend,b=kt("g"),E=Math.min(v.w,v.h),S=zr("adj1",y,.5)*v.h,T=zr("adj2",y,.5)*E,x=E/8,w=E/16,C=E/32,R=5*E/32,N=v.h/2-S/2,k=v.h/2+S/2,L=kt("path");L.setAttribute("d",["M".concat(0,",").concat(N),"L".concat(C,",").concat(N),"L".concat(C,",").concat(k),"L".concat(0,",").concat(k),"Z"].join(" "));var A=kt("path");A.setAttribute("d",["M".concat(w,",").concat(N),"L".concat(x,",").concat(N),"L".concat(x,",").concat(k),"L".concat(w,",").concat(k),"Z"].join(" "));var D=kt("path"),M=["M".concat(R,",").concat(N),"L".concat(v.w-T,",").concat(N),"L".concat(v.w-T,",").concat(0),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-T,",").concat(v.h),"L".concat(v.w-T,",").concat(k),"L".concat(R,",").concat(k),"Z"].join(" ");return D.setAttribute("d",M),b.appendChild(D),b.appendChild(L),b.appendChild(A),b})(t),p=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.5)*v.h,S=E*(zr("adj2",y,.5)*b)/v.h;return{top:v.h/2-E/2,bottom:v.h/2-E/2,left:0,right:S,w:v.w-S,h:E}})(t);break;case"notchedRightArrow":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.5)*v.h,S=zr("adj2",y,.5)*b,T=E*S/v.h,x=v.h/2-E/2,w=v.h/2+E/2,C=kt("path"),R=["M".concat(0,",").concat(x),"L".concat(v.w-S,",").concat(x),"L".concat(v.w-S,",").concat(0),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-S,",").concat(v.h),"L".concat(v.w-S,",").concat(w),"L".concat(0,",").concat(w),"L".concat(T,",").concat(v.h/2),"Z"].join(" ");return C.setAttribute("d",R),C})(t),p=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.5)*v.h,S=zr("adj2",y,.5)*b,T=E*S/v.h,x=E*S/v.h;return{top:v.h/2-E/2,bottom:v.h/2-E/2,left:T,right:x,w:v.w-T-x,h:E}})(t);break;case"homePlate":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj",y,.5)*b,S=kt("path"),T=["M".concat(0,",").concat(0),"L".concat(v.w-E,",").concat(0),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-E,",").concat(v.h),"L".concat(0,",").concat(v.h),"Z"].join(" ");return S.setAttribute("d",T),S})(t),p=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj",y,.5)*b;return{top:0,bottom:0,left:0,right:E/2,w:v.w-E/2,h:v.h}})(t);break;case"chevron":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj",y,.5)*b,S=kt("path"),T=["M".concat(0,",").concat(0),"L".concat(v.w-E,",").concat(0),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-E,",").concat(v.h),"L".concat(0,",").concat(v.h),"L".concat(E,",").concat(v.h/2),"Z"].join(" ");return S.setAttribute("d",T),S})(t),p=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj",y,.5)*b;return{top:0,bottom:0,left:E,right:E,w:v.w-2*E,h:v.h}})(t);break;case"blockArc":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=kt("path"),S=zr("adj1",y,180),T=zr("adj2",y,0),x=Ct("adj3",y,.25*b),w=v.w/2,C=v.h/2,R=v.w/2,N=v.h/2,k=v.w/2-x,L=v.h/2-x,A=pl(S,w,C,R,N),D=A[0],M=A[1],B=pl(T,w,C,R,N),F=B[0],U=B[1],V=pl(S,w,C,k,L),$=V[0],z=V[1],q=pl(T,w,C,k,L),j=q[0],X=q[1],ie=BA(S,T),ne=["M".concat(D,",").concat(M),"A".concat(R," ").concat(N," 0 ").concat(ie," 1 ").concat(F," ").concat(U),"L".concat(j,",").concat(X),"A".concat(k," ").concat(L," 0 ").concat(ie," 0 ").concat($," ").concat(z),"Z"].join(" ");return E.setAttribute("d",ne),E})(t),p=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,180),S=zr("adj2",y,0),T=Ct("adj3",y,.25*b),x=v.w/2,w=v.h/2,C=v.w/2,R=v.h/2,N=v.w/2-T,k=v.h/2-T,L=pl(E,x,w,C,R),A=L[0],D=L[1],M=pl(S,x,w,C,R),B=M[0],F=M[1],U=pl(E,x,w,N,k),V=U[0],$=U[1],z=pl(S,x,w,N,k),q=[[A,D],[B,F],[V,$],[z[0],z[1]]];q.push(),E>S&&q.push([v.w,v.h/2]),(S>180&&S<=360&&E<180||E>S&&S>=0&&S<180&&E<180)&&q.push([0,v.h/2]),(E<S&&E<90&&S>90||E>S&&S>90||E>S&&E<90)&&q.push([v.w/2,v.h]),(E<S&&E<270&&S>270||E>S&&S>270||E>S&&E<270)&&q.push([v.w/2,0]);var j=1/0,X=1/0,ie=-1/0,ne=-1/0;return q.forEach((function(ue){j=Math.min(ue[0],j),X=Math.min(ue[1],X),ie=Math.max(ue[0],ie),ne=Math.max(ue[1],ne)})),{top:X,bottom:v.h-ne,left:j,right:v.w-ie,w:ie-j,h:ne-X}})(t);break;case"foldedCorner":h=(function(y){var v=y.extend,b=y.background,E=kt("g"),S=kt("path"),T=Ct("adj",y,.16667*Math.min(v.w,v.h)),x=["M0,0","L".concat(v.w,",0"),"L".concat(v.w,",").concat(v.h-T),"L".concat(v.w-T,",").concat(v.h),"L".concat(0,",").concat(v.h),"Z"].join(" ");S.setAttribute("d",x);var w=T*Math.cos(Math.PI/4)/Math.cos(Math.PI/6)*Math.cos(75/180*Math.PI),C=kt("path"),R=["M".concat(v.w-T+w,", ").concat(v.h-T+w),"L".concat(v.w,",").concat(v.h-T),"L".concat(v.w-T,",").concat(v.h),"Z"].join(" ");return C.setAttribute("d",R),b?.type==="solidFill"&&C.setAttribute("fill",la(b,{dark:.6})||"transparent"),E.appendChild(S),E.appendChild(C),E})(t),p=(function(y){var v=y.extend,b=Ct("adj",y,.16667*Math.min(v.w,v.h));return{top:0,bottom:b,left:0,right:0,w:v.w,h:v.h-b}})(t);break;case"rightArrowCallout":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.25)*b,S=zr("adj2",y,.25)*b,T=zr("adj3",y,.25)*b,x=zr("adj4",y,.64977)*v.w,w=kt("path"),C=["M".concat(0,",").concat(0),"L".concat(x,",").concat(0),"L".concat(x,",").concat(v.h/2-E/2),"L".concat(v.w-T,",").concat(v.h/2-E/2),"L".concat(v.w-T,",").concat(v.h/2-S),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-T,",").concat(v.h/2+S),"L".concat(v.w-T,",").concat(v.h/2+E/2),"L".concat(x,",").concat(v.h/2+E/2),"L".concat(x,",").concat(v.h),"L".concat(0,",").concat(v.h),"Z"].join(" ");return w.setAttribute("d",C),w})(t),p=(function(y){var v=y.extend,b=zr("adj4",y,.64977)*v.w;return{top:0,bottom:0,left:0,right:v.w-b,w:b,h:v.h}})(t);break;case"leftArrowCallout":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.25)*b,S=zr("adj2",y,.25)*b,T=zr("adj3",y,.25)*b,x=zr("adj4",y,.64977)*v.w,w=kt("path"),C=["M".concat(0,",").concat(v.h/2),"L".concat(T,",").concat(v.h/2-S),"L".concat(T,",").concat(v.h/2-E/2),"L".concat(v.w-x,",").concat(v.h/2-E/2),"L".concat(v.w-x,",").concat(0),"L".concat(v.w,",").concat(0),"L".concat(v.w,",").concat(v.h),"L".concat(v.w-x,",").concat(v.h),"L".concat(v.w-x,",").concat(v.h/2+E/2),"L".concat(T,",").concat(v.h/2+E/2),"L".concat(T,",").concat(v.h/2+S),"Z"].join(" ");return w.setAttribute("d",C),w})(t),p=(function(y){var v=y.extend,b=zr("adj4",y,.64977)*v.w;return{top:0,bottom:0,left:v.w-b,right:0,w:b,h:v.h}})(t);break;case"upArrowCallout":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.25)*b,S=zr("adj2",y,.25)*b,T=zr("adj3",y,.25)*b,x=zr("adj4",y,.64977)*v.h,w=kt("path"),C=["M".concat(0,",").concat(v.h-x),"L".concat(v.w/2-E/2,",").concat(v.h-x),"L".concat(v.w/2-E/2,",").concat(T),"L".concat(v.w/2-S,",").concat(T),"L".concat(v.w/2,",").concat(0),"L".concat(v.w/2+S,",").concat(T),"L".concat(v.w/2+E/2,",").concat(T),"L".concat(v.w/2+E/2,",").concat(v.h-x),"L".concat(v.w,",").concat(v.h-x),"L".concat(v.w,",").concat(v.h),"L".concat(0,",").concat(v.h),"Z"].join(" ");return w.setAttribute("d",C),w})(t),p=(function(y){var v=y.extend,b=zr("adj4",y,.64977)*v.h;return{top:v.h-b,bottom:0,left:0,right:0,w:v.w,h:b}})(t);break;case"downArrowCallout":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.25)*b,S=zr("adj2",y,.25)*b,T=zr("adj3",y,.25)*b,x=zr("adj4",y,.64977)*v.h,w=kt("path"),C=["M".concat(0,",").concat(0),"L".concat(v.w,",").concat(0),"L".concat(v.w,",").concat(x),"L".concat(v.w/2+E/2,",").concat(x),"L".concat(v.w/2+E/2,",").concat(v.h-T),"L".concat(v.w/2+S,",").concat(v.h-T),"L".concat(v.w/2,",").concat(v.h),"L".concat(v.w/2-S,",").concat(v.h-T),"L".concat(v.w/2-E/2,",").concat(v.h-T),"L".concat(v.w/2-E/2,",").concat(x),"L".concat(0,",").concat(x),"Z"].join(" ");return w.setAttribute("d",C),w})(t),p=(function(y){var v=y.extend,b=zr("adj4",y,.64977)*v.h;return{top:0,bottom:v.h-b,left:0,right:0,w:v.w,h:b}})(t);break;case"leftRightArrowCallout":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.25)*b,S=zr("adj2",y,.25)*b,T=zr("adj3",y,.25)*b,x=zr("adj4",y,.48123)*v.w,w=kt("path"),C=["M".concat(0,",").concat(v.h/2),"L".concat(T,",").concat(v.h/2-S),"L".concat(T,",").concat(v.h/2-E/2),"L".concat(v.w/2-x/2,",").concat(v.h/2-E/2),"L".concat(v.w/2-x/2,",").concat(0),"L".concat(v.w/2+x/2,",").concat(0),"L".concat(v.w/2+x/2,",").concat(v.h/2-E/2),"L".concat(v.w-T,",").concat(v.h/2-E/2),"L".concat(v.w-T,",").concat(v.h/2-S),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-T,",").concat(v.h/2+S),"L".concat(v.w-T,",").concat(v.h/2+E/2),"L".concat(v.w/2+x/2,",").concat(v.h/2+E/2),"L".concat(v.w/2+x/2,",").concat(v.h),"L".concat(v.w/2-x/2,",").concat(v.h),"L".concat(v.w/2-x/2,",").concat(v.h/2+E/2),"L".concat(T,",").concat(v.h/2+E/2),"L".concat(T,",").concat(v.h/2+S),"Z"].join(" ");return w.setAttribute("d",C),w})(t),p=(function(y){var v=y.extend,b=zr("adj4",y,.48123)*v.w;return{top:0,bottom:0,left:v.w/2-b/2,right:v.w/2-b/2,w:b,h:v.h}})(t);break;case"quadArrowCallout":h=(function(y){var v=y.extend,b=Math.min(v.w,v.h),E=zr("adj1",y,.18515)*b,S=zr("adj2",y,.18515)*b,T=zr("adj3",y,.18515)*b,x=zr("adj4",y,.48123)*v.w,w=zr("adj4",y,.48123)*v.h,C=kt("path"),R=["M".concat(0,",").concat(v.h/2),"L".concat(T,",").concat(v.h/2-S),"L".concat(T,",").concat(v.h/2-E/2),"L".concat(v.w/2-x/2,",").concat(v.h/2-E/2),"L".concat(v.w/2-x/2,",").concat(v.h/2-w/2),"L".concat(v.w/2-E/2,",").concat(v.h/2-w/2),"L".concat(v.w/2-E/2,",").concat(T),"L".concat(v.w/2-S,",").concat(T),"L".concat(v.w/2,",").concat(0),"L".concat(v.w/2+S,",").concat(T),"L".concat(v.w/2+E/2,",").concat(T),"L".concat(v.w/2+E/2,",").concat(v.h/2-w/2),"L".concat(v.w/2+x/2,",").concat(v.h/2-w/2),"L".concat(v.w/2+x/2,",").concat(v.h/2-E/2),"L".concat(v.w-T,",").concat(v.h/2-E/2),"L".concat(v.w-T,",").concat(v.h/2-S),"L".concat(v.w,",").concat(v.h/2),"L".concat(v.w-T,",").concat(v.h/2+S),"L".concat(v.w-T,",").concat(v.h/2+E/2),"L".concat(v.w/2+x/2,",").concat(v.h/2+E/2),"L".concat(v.w/2+x/2,",").concat(v.h/2+w/2),"L".concat(v.w/2+E/2,",").concat(v.h/2+w/2),"L".concat(v.w/2+E/2,",").concat(v.h-T),"L".concat(v.w/2+S,",").concat(v.h-T),"L".concat(v.w/2,",").concat(v.h),"L".concat(v.w/2-S,",").concat(v.h-T),"L".concat(v.w/2-E/2,",").concat(v.h-T),"L".concat(v.w/2-E/2,",").concat(v.h/2+w/2),"L".concat(v.w/2-x/2,",").concat(v.h/2+w/2),"L".concat(v.w/2-x/2,",").concat(v.h/2+E/2),"L".concat(T,",").concat(v.h/2+E/2),"L".concat(T,",").concat(v.h/2+S),"Z"].join(" ");return C.setAttribute("d",R),C})(t),p=(function(y){var v=y.extend,b=zr("adj4",y,.48123)*v.w,E=zr("adj4",y,.48123)*v.h;return{top:v.h/2-E/2,bottom:v.h/2-E/2,left:v.w/2-b/2,right:v.w/2-b/2,w:b,h:E}})(t)}h&&(g?a?.type==="blipFill"?(function(y,v,b){var E=y.background,S=E===void 0?{}:E,T=y.extend,x=S.base64,w=S.alpha,C=S.fillRect,R=C===void 0?{}:C,N=R.b,k=N===void 0?0:N,L=R.t,A=L===void 0?0:L,D=R.l,M=D===void 0?0:D,B=R.r,F=B===void 0?0:B,U=kt("defs"),V=kt("pattern");V.setAttribute("id","background_"+y.uuid),V.setAttribute("patternUnits","userSpaceOnUse"),V.setAttribute("width",T.w+""),V.setAttribute("height",T.h+"");var $=kt("image");$.setAttribute("href",x),$.setAttribute("preserveAspectRatio","none");var z=T.w*M,q=T.h*A,j=T.w*(1-M-F),X=T.h*(1-A-k);$.setAttribute("width",j+""),$.setAttribute("height",X+""),$.setAttribute("x",z+""),$.setAttribute("y",q+""),typeof w=="number"&&$.setAttribute("opacity",w+""),V.appendChild($),U.appendChild(V),v.appendChild(U),b.setAttribute("fill","url(#background_".concat(y.uuid,")"))})(t,f,h):a?.type==="gradFill"?(function(y,v,b){var E=y.background,S=E===void 0?{}:E;y.extend;var T=S.gsList,x=S.lin,w=S.path,C=S.tileRect,R=C===void 0?{}:C,N=kt("defs"),k=kt(w==="circle"?"radialGradient":"linearGradient");k.setAttribute("id","background_grad_fill_"+y.uuid);var L=T||[];if(L.sort((function(F,U){return F.pos-U.pos})),L.forEach((function(F){var U=kt("stop");U.setAttribute("offset","".concat(100*F.pos,"%")),U.setAttribute("stop-color",la(F.color)),k.appendChild(U)})),w==="circle"){var A=R.r,D=R.l,M=R.t,B=R.b;A===-1?k.setAttribute("cx","100%"):D===-1&&k.setAttribute("cx","0%"),M===-1?k.setAttribute("cy","0%"):B===-1&&k.setAttribute("cy","100%")}else x?.ang&&k.setAttribute("gradientTransform","rotate(".concat(x.ang,")"));N.appendChild(k),v.appendChild(N),b.setAttribute("fill","url(#background_grad_fill_".concat(y.uuid,")"))})(t,f,h):h.setAttribute("fill",la(a)||"transparent"):h.setAttribute("fill","transparent"),n.width?(h.setAttribute("stroke-width",n.width+"px"),h.setAttribute("stroke",la(n.color)||"transparent")):h.setAttribute("stroke-width","0"),h.setAttribute("stroke-dasharray",(function(y){return y&&y.type!=="solid"?({sysDot:[1,1],sysDash:[3,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]}[y.type]||[]).map((function(v){return v*y.width})).join(","):""})(n)),h.setAttribute("stroke-linecap",n.cap&&{sq:"square",rnd:"round",flat:"butt"}[n.cap]||"square"),h.setAttribute("stroke-linejoin",n.lineJoin||"round"),n.lineJoin==="miter"&&h.setAttribute("stroke-miterlimit",n.miterLim+""),f.appendChild(h));var m=[];s&&m.push("scaleX(-1)"),o&&m.push("scaleY(-1)"),f.style.setProperty("transform",m.join(" ")),l.appendChild(f);var _=(function(y,v,b){var E;b===void 0&&(b=!1);var S=y.inheritProps,T=y.props,x=y.paragraphs;if(!x||x.length===0)return null;var w=qt(qt({},S),T),C=document.createElement("div");switch(C.className="text-wrapper",C.style.boxSizing="border-box",C.style.position="absolute",C.style.left=v.left+"px",w.vert==="eaVert"?(C.style.writingMode="vertical-rl",C.style.height=v.h+"px"):C.style.width=v.w+"px",w.anchor){case"b":C.style.bottom=v.bottom+"px";break;case"t":C.style.top=v.top+"px";break;case"ctr":C.style.top=v.top+v.h/2+"px",C.style.transform="translateY(-50%)";break;default:b?C.style.top=v.top+"px":(C.style.top=v.top+v.h/2+"px",C.style.transform="translateY(-50%)")}var R=[w.hasOwnProperty("tIns")?Math.floor(w.tIns)+"px":"3px",w.hasOwnProperty("rIns")?Math.floor(w.rIns)+"px":"5px",w.hasOwnProperty("bIns")?Math.floor(w.bIns)+"px":"3px",w.hasOwnProperty("lIns")?Math.floor(w.lIns)+"px":"5px"];C.style.padding=R.join(" ");for(var N={},k=0,L=function(M){var B=qt(qt({},M.inheritProps),M.props),F=void 0;if(B.buAutoNum){var U=B.level?+B.level:0;N[U]||(N[U]=0),!((E=M.rows)===null||E===void 0)&&E.length&&N[U]++,Object.keys(N).forEach((function(V){+V>U&&(N[V]=0)})),F=v6(M,N[U],{isFirst:k===0,isLast:x.length-1===k,bodyProps:w})}else F=v6(M,0,{isFirst:k===0,isLast:x.length-1===k,bodyProps:w});C.appendChild(F),k++},A=0,D=x;A<D.length;A++)L(D[A]);return C})(t.textBody,p,t.isTextBox);return _&&l.appendChild(_),i&&l.style.setProperty("transform","rotate(".concat(i,"deg)")),l}function xje(t){var e=document.createElement("div"),r=t.extend;t.chExtend;var n=t.offset;t.chOffset;var a=t.flipV,i=t.flipH,s=t.rotate,o=n.x,l=n.y,u=r.w,d=r.h;e.className="group",e.style.position="absolute",e.style.left=o+"px",e.style.top=l+"px",e.style.width=u+"px",e.style.height=d+"px";var h=[];i&&h.push("scaleX(-1)"),a&&h.push("scaleY(-1)"),s&&h.push("rotate(".concat(s,"deg)")),e.style.transformOrigin="center center",e.style.transform=h.join(" ");for(var f=0;f<t.nodes.length;f++){var p=t.nodes[f],g=void 0;p instanceof m6?g=HJ(p):p instanceof mI?g=YJ(p):p instanceof Fde&&(g=xje(p)),g&&e.appendChild(g)}return e}var kh={};function _Ie(t,e){kh[t]||(kh[t]=[]),kh[t].push(e)}function mM(t,e){if(kh[t])for(var r=0;r<kh[t].length;r++)kh[t][r](e)}function zW(t,e){kh?kh[t]&&(kh[t]=kh[t].filter((function(r){return r!==e}))):kh[t]=[]}var bIe=(function(){function t(e,r,n){this.scale=1,this.wrapper=e,this.pptx=r,this.options=n,this._calcScaleAndRenderPort()}return t.prototype._calcScaleAndRenderPort=function(){var e=this.options.viewPort.width/this.pptx.width;this.scale=e;var r=this.options.viewPort.width,n=this.pptx.height*this.scale;this.renderPort={width:r,height:n,left:0,top:0}},t.prototype.renderSlide=function(e){var r=this.pptx.slides[e],n=document.createElement("div");n.classList.add("pptx-preview-slide-wrapper"),n.classList.add("pptx-preview-slide-wrapper-".concat(e)),n.style.setProperty("width",this.renderPort.width+"px"),n.style.setProperty("height",this.renderPort.height+"px"),n.style.setProperty("position",this.options.mode==="slide"?"absolute":"relative"),this.options.mode==="slide"&&n.style.setProperty("top",(this.options.viewPort.height-this.renderPort.height)/2+"px"),n.style.margin="0 auto 10px",n.style.setProperty("background","#fff"),n.style.setProperty("overflow","hidden"),this._renderBackground(r,n),this._renderSlideMaster(r.slideMaster,n),this._renderSlideLayout(r.slideLayout,n),this._renderSlide(r,n),this.wrapper.append(n)},t.prototype._renderSlideMaster=function(e,r){var n=document.createElement("div");n.classList.add("slide-master-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var a=FR([],e.nodes,!0).filter((function(o){return o.userDrawn}));a.sort((function(o,l){return o.order>l.order?1:-1}));for(var i=0;i<a.length;i++){var s=this._renderNode(a[i]);s&&n.append(s)}r.append(n)},t.prototype._renderSlideLayout=function(e,r){var n=document.createElement("div");n.classList.add("slide-layout-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var a=FR([],e.nodes,!0).filter((function(o){return o.userDrawn}));a.sort((function(o,l){return o.order>l.order?1:-1}));for(var i=0;i<a.length;i++){var s=this._renderNode(a[i]);s&&n.append(s)}r.append(n)},t.prototype._renderSlide=function(e,r){var n=document.createElement("div");n.classList.add("slide-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var a=FR([],e.nodes,!0);a.sort((function(o,l){return o.order>l.order?1:-1}));for(var i=0;i<a.length;i++){var s=this._renderNode(a[i]);s&&n.append(s)}r.append(n)},t.prototype._renderNode=function(e){return e instanceof m6?HJ(e):e instanceof mI?YJ(e):e instanceof Fde?xje(e):e instanceof Eje?(function(r){var n=document.createElement("div"),a=r.extend,i=r.offset,s=r.flipV,o=r.flipH,l=r.rotate,u=i.x,d=i.y,h=a.w,f=a.h;n.className="smart-chart-diagram",n.style.position="absolute",n.style.left=u+"px",n.style.top=d+"px",n.style.width=h+"px",n.style.height=f+"px";var p=[];o&&p.push("scaleX(-1)"),s&&p.push("scaleY(-1)"),l&&p.push("rotate(".concat(l,"deg)")),n.style.transformOrigin="center center",n.style.transform=p.join(" ");for(var g=0;g<r.nodes.length;g++){var m=r.nodes[g],_=void 0;m instanceof m6?_=HJ(m):m instanceof mI&&(_=YJ(m)),_&&n.appendChild(_)}return n})(e):e instanceof bje?(function(r){var n=r.extend,a=r.offset,i=r.tr,s=r.tableGrid.gridCol,o=document.createElement("div");o.style.position="absolute",o.style.left=a.x+"px",o.style.top=a.y+"px",o.style.width=n.w+"px",o.style.height=n.h+"px";var l=document.createElement("table");return l.style.borderCollapse="collapse",i.forEach((function(u){var d=u.props,h=u.td,f=d.height,p=document.createElement("tr");p.style.height=f+"px",h.forEach((function(g,m){var _,y,v=g.props,b=g.inheritTcStyle,E=g.inheritTcTxStyle,S=g.paragraphs;if(!v.vMerge&&!v.hMerge){var T=document.createElement("td");T.style.width=(((_=s[m])===null||_===void 0?void 0:_.width)||30)+"px",v.rowSpan&&T.setAttribute("rowspan",v.rowSpan+""),v.gridSpan&&T.setAttribute("colspan",v.gridSpan+"");var x=v.background||b.background;x&&(T.style.background=la(x));var w=qt(qt({},b.border),v.border),C=function(U){return U?U.toLowerCase().includes("dash")?"dashed":U.toLowerCase().includes("dot")?"dotted":"solid":"solid"};w.bottom&&(T.style.borderBottom="".concat(w.bottom.width,"px ").concat(C(w.bottom.type)," ").concat(la(w.bottom.color))),w.top&&(T.style.borderTop="".concat(w.top.width,"px ").concat(C(w.top.type)," ").concat(la(w.top.color))),w.left&&(T.style.borderLeft="".concat(w.left.width,"px ").concat(C(w.left.type)," ").concat(la(w.left.color))),w.right&&(T.style.borderRight="".concat(w.right.width,"px ").concat(C(w.right.type)," ").concat(la(w.right.color)));var R=document.createElement("div");switch(R.className="text-wrapper",R.style.boxSizing="border-box",R.style.width="100%",R.style.height="100%",R.style.overflow="hidden",R.style.display="flex",R.style.flexDirection="column",v.anchor){case"b":R.style.justifyContent="flex-end";break;case"t":R.style.justifyContent="flex-start";break;case"ctr":R.style.justifyContent="center"}var N=[v.hasOwnProperty("marT")?Math.floor(v.marT)+"px":"3px",v.hasOwnProperty("marR")?Math.floor(v.marR-1)+"px":"5px",v.hasOwnProperty("marB")?Math.floor(v.marB)+"px":"3px",v.hasOwnProperty("marL")?Math.floor(v.marL-1)+"px":"5px"];R.style.padding=N.join(" ");for(var k=qt({},v),L={},A=S.map((function(U){return qt(qt({},U),{props:qt({align:"l"},U.props),inheritRProps:qt(qt({},U.inheritRProps),E)})})),D=0,M=function(U){var V=qt(qt({},U.inheritProps),U.props),$=void 0;if(V.buAutoNum){var z=V.level?+V.level:0;L[z]||(L[z]=0),!((y=U.rows)===null||y===void 0)&&y.length&&L[z]++,Object.keys(L).forEach((function(q){+q>z&&(L[q]=0)})),$=v6(U,L[z],{isFirst:D===0,isLast:S.length-1===D,bodyProps:k})}else $=v6(U,0,{isFirst:D===0,isLast:S.length-1===D,bodyProps:k});R.appendChild($),D++},B=0,F=A;B<F.length;B++)M(F[B]);T.append(R),p.append(T)}})),l.append(p)})),o.append(l),o})(e):e instanceof Sje?(function(r){var n=document.createElement("div"),a=r.extend,i=r.offset,s=r.flipV,o=r.flipH,l=r.rotate,u=r.options,d=i.x,h=i.y,f=a.w,p=a.h;n.className="chart-node",n.style.position="absolute",n.style.left=d+"px",n.style.top=h+"px",n.style.width=f+"px",n.style.height=p+"px";var g=[];return o&&g.push("scaleX(-1)"),s&&g.push("scaleY(-1)"),l&&g.push("rotate(".concat(l,"deg)")),n.style.transformOrigin="center center",n.style.transform=g.join(" "),setTimeout((function(){var m=GVt(n,null,{renderer:"svg"});m.setOption(u),_Ie("destroy",(function(){m&&m.dispose(),m&&(m=null)})),_Ie("removeSlide",(function(){m&&m.dispose(),m&&(m=null)}))}),0),n})(e):void 0},t.prototype._renderBackground=function(e,r){var n,a=document.createElement("div");a.classList.add("slide-background"),a.style.setProperty("position","absolute"),a.style.setProperty("left","0"),a.style.setProperty("top","0"),a.style.setProperty("width","100%"),a.style.setProperty("height","100%");var i=e.background;if(i.type==="none"&&(i=e.slideLayout.background),i.type==="none"&&(i=e.slideMaster.background),i.type==="blipFill"){var s=i,o=s.base64,l=s.alpha,u=s.fillRect,d=u===void 0?{}:u,h=d.b,f=h===void 0?0:h,p=d.t,g=p===void 0?0:p,m=d.l,_=m===void 0?0:m,y=d.r,v=y===void 0?0:y,b=this.renderPort.width*_,E=this.renderPort.height*g,S=this.renderPort.width*(1-_-v),T=this.renderPort.height*(1-g-f);a.style.backgroundImage="url(".concat(o,")"),a.style.backgroundSize="".concat(S," ").concat(T),a.style.backgroundPosition="".concat(b,"px ").concat(E,"px"),l&&(a.style.opacity=l+""),a.style.backgroundRepeat="no-repeat"}else if(i.type==="solidFill"){var x=la(e.background)||la(e.slideLayout.background)||la(e.slideMaster.background);x?a.style.setProperty("background",x):a.style.setProperty("background","#fff")}else if(i.type==="gradFill")if(i.path==="circle"){var w=i.tileRect||{},C=(f=w.b,g=w.t,_=w.l,"radial-gradient(circle at ");(v=w.r)===-1?C+=" right":_===-1&&(C+=" left"),g===-1?C+=" top":f===-1&&(C+=" bottom"),f||g||_||v||(C+=" center"),C+=",",C+=i.gsList.map((function(N){return"".concat(la(N.color)," ").concat(100*N.pos+"%")})).join(","),a.style.setProperty("background",C)}else{var R=((n=i?.lin)===null||n===void 0?void 0:n.ang)||0;C="linear-gradient(".concat(R+90,"deg,"),C+=i.gsList.map((function(N){return"".concat(la(N.color)," ").concat(100*N.pos+"%")})).join(","),a.style.setProperty("background",C)}r.append(a)},t})(),rir=(function(){function t(e,r){this.currentIndex=-1,this.dom=e,this.options=r,this._renderWrapper()}return Object.defineProperty(t.prototype,"slideCount",{get:function(){var e,r;return(r=(e=this.pptx)===null||e===void 0?void 0:e.slides)===null||r===void 0?void 0:r.length},enumerable:!1,configurable:!0}),t.prototype._renderWrapper=function(){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper"),e.setAttribute("position","relative"),e.style.setProperty("background","#000"),e.style.setProperty("width",this.options.width+"px"),this.options.height&&e.style.setProperty("height",this.options.height+"px"),e.style.setProperty("position","relative"),e.style.setProperty("margin","0 auto"),this.options.height&&e.style.setProperty("overflow-y","auto"),this.dom.append(e),this.wrapper=e},t.prototype.renderNextButton=function(){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper-next"),e.style.setProperty("position","absolute"),e.style.setProperty("bottom","20px"),e.style.setProperty("right","80px"),e.style.setProperty("z-index","100"),e.style.setProperty("cursor","pointer"),e.style.setProperty("width","40px"),e.style.setProperty("height","40px"),e.style.setProperty("background","#666666"),e.style.setProperty("border-radius","100%");var r=document.createElement("div");return r.style.setProperty("width","10px"),r.style.setProperty("height","10px"),r.style.setProperty("border-left","2px solid #fff"),r.style.setProperty("border-bottom","2px solid #fff"),r.style.setProperty("transform","rotate(225deg)"),r.style.setProperty("position","absolute"),r.style.setProperty("top","15px"),r.style.setProperty("left","15px"),e.append(r),e},t.prototype.renderPreButton=function(){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper-next"),e.style.setProperty("position","absolute"),e.style.setProperty("bottom","20px"),e.style.setProperty("right","140px"),e.style.setProperty("z-index","100"),e.style.setProperty("cursor","pointer"),e.style.setProperty("width","40px"),e.style.setProperty("height","40px"),e.style.setProperty("background","#666666"),e.style.setProperty("border-radius","100%");var r=document.createElement("div");return r.style.setProperty("width","10px"),r.style.setProperty("height","10px"),r.style.setProperty("border-left","2px solid #fff"),r.style.setProperty("border-bottom","2px solid #fff"),r.style.setProperty("transform","rotate(45deg)"),r.style.setProperty("position","absolute"),r.style.setProperty("top","15px"),r.style.setProperty("left","15px"),e.append(r),e},t.prototype.updatePagination=function(){var e=this.wrapper.querySelector(".pptx-preview-wrapper-pagination");e&&(e.innerText="".concat(this.currentIndex+1,"/").concat(this.slideCount))},t.prototype.renderPagination=function(e){var r=document.createElement("div");r.classList.add("pptx-preview-wrapper-pagination"),r.innerText="".concat(this.currentIndex+1,"/").concat(this.slideCount),r.style.setProperty("position","absolute"),r.style.setProperty("bottom","33px"),r.style.setProperty("right","20px"),r.style.setProperty("color","#666666"),r.style.setProperty("font-size","14px"),r.style.setProperty("z-index","100"),e.append(r)},t.prototype.removeCurrentSlide=function(){var e=this.wrapper.querySelector(".pptx-preview-slide-wrapper-".concat(this.currentIndex));e&&this.wrapper.removeChild(e),mM("removeSlide")},t.prototype.renderNextSlide=function(){this.removeCurrentSlide(),this.currentIndex=this.currentIndex<this.slideCount-1?this.currentIndex+1:0,this.htmlRender.renderSlide(this.currentIndex),this.updatePagination()},t.prototype.renderPreSlide=function(){this.removeCurrentSlide(),this.currentIndex=this.currentIndex>0?this.currentIndex-1:this.slideCount-1,this.htmlRender.renderSlide(this.currentIndex),this.updatePagination()},t.prototype._addPre=function(e){},t.prototype.preview=function(e){var r=this;return mM("destroy"),zW("destroy"),new Promise((function(n,a){r.wrapper.innerHTML="";var i=r.pptx=new dIe;i.load(e).then((function(){try{var s=r.htmlRender=new bIe(r.wrapper,i,{viewPort:{width:r.options.width,height:r.options.height},mode:r.options.mode});if(r.options.mode==="slide"){var o=r.renderNextButton();o.onclick=function(){r.renderNextSlide()},r.wrapper.append(o);var l=r.renderPreButton();l.onclick=function(){r.renderPreSlide()},r.wrapper.append(l),r.renderPagination(r.wrapper),r._addPre(r.wrapper),r.currentIndex=0,s.renderSlide(0)}else for(var u=0;u<i.slides.length;u++)s.renderSlide(u);n(i)}catch(d){a(d)}})).catch((function(s){a(s)}))}))},t.prototype.load=function(e){var r=this;return mM("destroy"),zW("destroy"),new Promise((function(n,a){r.wrapper.innerHTML="";var i=r.pptx=new dIe;i.load(e).then((function(){try{r.htmlRender=new bIe(r.wrapper,i,{viewPort:{width:r.options.width,height:r.options.height},mode:r.options.mode}),n(i)}catch(s){a(s)}})).catch((function(s){a(s)}))}))},t.prototype.renderSingleSlide=function(e){this.removeCurrentSlide(),this.currentIndex=e,this.htmlRender.renderSlide(this.currentIndex)},t.prototype.destroy=function(){mM("destroy"),zW("destroy")},t})();function nir(t,e){return new rir(t,e)}const air=t=>{const{url:e,requestHeaders:r}=t,n=Me.useRef(null),a=async()=>{if(!n.current)return;n.current.innerHTML="";const i=n.current.clientWidth,s=Math.round(i*(9/16)),o=nir(n.current,{width:i,height:s}),l=await fetch(e,{headers:r});if(!l.ok)return;const u=await l.arrayBuffer();u.byteLength!==0&&o.preview(u)};return Me.useEffect(()=>{a()},[e]),ar.jsx("div",{ref:n,className:"w-full [&_.pptx-preview-wrapper]:overflow-hidden"})};var wje=function(t){return typeof t=="function"},iir=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function EIe(t,e){if(t===e)return!0;for(var r=0;r<t.length;r++)if(!Object.is(t[r],e[r]))return!1;return!0}function sir(t){var e=Me.useRef(t);return e.current=t,e}var Cje=function(t){iir&&(wje(t)||console.error("useUnmount expected parameter is a function, got ".concat(typeof t)));var e=sir(t);Me.useEffect(function(){return function(){e.current()}},[])},Aje=!!(typeof window<"u"&&window.document&&window.document.createElement);function WJ(t,e){if(Aje){if(!t)return e;var r;return wje(t)?r=t():"current"in t?r=t.current:r=t,r}}var Rje=function(t){var e=function(r,n,a){var i=Me.useRef(!1),s=Me.useRef([]),o=Me.useRef([]),l=Me.useRef(void 0);t(function(){var u,d=Array.isArray(a)?a:[a],h=d.map(function(f){return WJ(f)});if(!i.current){i.current=!0,s.current=h,o.current=n,l.current=r();return}(h.length!==s.current.length||!EIe(s.current,h)||!EIe(o.current,n))&&((u=l.current)===null||u===void 0||u.call(l),s.current=h,o.current=n,l.current=r())}),Cje(function(){var u;(u=l.current)===null||u===void 0||u.call(l),i.current=!1})};return e},oir=Rje(Me.useEffect);function lir(t){var e=Me.useRef(0),r=Fze(Me.useState(t),2),n=r[0],a=r[1],i=Me.useCallback(function(s){cancelAnimationFrame(e.current),e.current=requestAnimationFrame(function(){a(s)})},[]);return Cje(function(){cancelAnimationFrame(e.current)}),[n,i]}var Nje=(function(){if(typeof Map<"u")return Map;function t(e,r){var n=-1;return e.some(function(a,i){return a[0]===r?(n=i,!0):!1}),n}return(function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(r){var n=t(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},e.prototype.set=function(r,n){var a=t(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},e.prototype.delete=function(r){var n=this.__entries__,a=t(n,r);~a&&n.splice(a,1)},e.prototype.has=function(r){return!!~t(this.__entries__,r)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,i=this.__entries__;a<i.length;a++){var s=i[a];r.call(n,s[1],s[0])}},e})()})(),qJ=typeof window<"u"&&typeof document<"u"&&window.document===document,y6=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),cir=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(y6):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}})(),uir=2;function dir(t,e){var r=!1,n=!1,a=0;function i(){r&&(r=!1,t()),n&&o()}function s(){cir(i)}function o(){var l=Date.now();if(r){if(l-a<uir)return;n=!0}else r=!0,n=!1,setTimeout(s,e);a=l}return o}var hir=20,fir=["top","right","bottom","left","width","height","size","weight"],pir=typeof MutationObserver<"u",gir=(function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=dir(this.refresh.bind(this),hir)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var r=this.observers_,n=r.indexOf(e);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return e.forEach(function(r){return r.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!qJ||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),pir?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!qJ||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var r=e.propertyName,n=r===void 0?"":r,a=fir.some(function(i){return!!~n.indexOf(i)});a&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t})(),Ije=(function(t,e){for(var r=0,n=Object.keys(e);r<n.length;r++){var a=n[r];Object.defineProperty(t,a,{value:e[a],enumerable:!1,writable:!1,configurable:!0})}return t}),Bx=(function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||y6}),kje=P8(0,0,0,0);function _6(t){return parseFloat(t)||0}function SIe(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce(function(n,a){var i=t["border-"+a+"-width"];return n+_6(i)},0)}function mir(t){for(var e=["top","right","bottom","left"],r={},n=0,a=e;n<a.length;n++){var i=a[n],s=t["padding-"+i];r[i]=_6(s)}return r}function vir(t){var e=t.getBBox();return P8(0,0,e.width,e.height)}function yir(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return kje;var n=Bx(t).getComputedStyle(t),a=mir(n),i=a.left+a.right,s=a.top+a.bottom,o=_6(n.width),l=_6(n.height);if(n.boxSizing==="border-box"&&(Math.round(o+i)!==e&&(o-=SIe(n,"left","right")+i),Math.round(l+s)!==r&&(l-=SIe(n,"top","bottom")+s)),!bir(t)){var u=Math.round(o+i)-e,d=Math.round(l+s)-r;Math.abs(u)!==1&&(o-=u),Math.abs(d)!==1&&(l-=d)}return P8(a.left,a.top,o,l)}var _ir=(function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof Bx(t).SVGGraphicsElement}:function(t){return t instanceof Bx(t).SVGElement&&typeof t.getBBox=="function"}})();function bir(t){return t===Bx(t).document.documentElement}function Eir(t){return qJ?_ir(t)?vir(t):yir(t):kje}function Sir(t){var e=t.x,r=t.y,n=t.width,a=t.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(i.prototype);return Ije(s,{x:e,y:r,width:n,height:a,top:r,right:e+n,bottom:a+r,left:e}),s}function P8(t,e,r,n){return{x:t,y:e,width:r,height:n}}var Tir=(function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=P8(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=Eir(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t})(),xir=(function(){function t(e,r){var n=Sir(r);Ije(this,{target:e,contentRect:n})}return t})(),wir=(function(){function t(e,r,n){if(this.activeObservations_=[],this.observations_=new Nje,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=r,this.callbackCtx_=n}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Bx(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(e)||(r.set(e,new Tir(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Bx(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(e)&&(r.delete(e),r.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&e.activeObservations_.push(r)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new xir(n.target,n.broadcastRect())});this.callback_.call(e,r,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t})(),Oje=typeof WeakMap<"u"?new WeakMap:new Nje,Dje=(function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=gir.getInstance(),n=new wir(e,r,this);Oje.set(this,n)}return t})();["observe","unobserve","disconnect"].forEach(function(t){Dje.prototype[t]=function(){var e;return(e=Oje.get(this))[t].apply(e,arguments)}});var Cir=(function(){return typeof y6.ResizeObserver<"u"?y6.ResizeObserver:Dje})(),Air=Rje(Me.useLayoutEffect),Rir=Aje?Air:oir;function Nir(t){var e=Fze(lir(function(){var a=WJ(t);return a?{width:a.clientWidth,height:a.clientHeight}:void 0}),2),r=e[0],n=e[1];return Rir(function(){var a=WJ(t);if(a){var i=new Cir(function(s){s.forEach(function(o){var l=o.target,u=l.clientWidth,d=l.clientHeight;n({width:u,height:d})})});return i.observe(a),function(){i.disconnect()}}},[],t),r}const Iir=t=>{const{data:e,requestHeaders:r}=t,n=Me.useRef(null),a=Nir(n),[i,s]=Me.useState(!1),[o,l]=Me.useState(e?.url);Me.useEffect(()=>{if(!r||!e?.url){l(i?e?.thumbnail:e?.url);return}const d=i?e?.thumbnail:e?.url;d&&fetch(d,{headers:r}).then(h=>h.blob()).then(h=>l(URL.createObjectURL(h)))},[e?.url,e?.thumbnail,i,r]);const u=Me.useMemo(()=>{const{width:d,height:h}=e.metadata??{};return!a||!d||!h?0:Math.round(a.width*h/d)},[a?.width,e?.metadata?.width,e?.metadata?.height]);return ar.jsx("div",{ref:n,children:ar.jsx(Xi.Image,{preview:!1,width:a?.width,height:u,placeholder:ar.jsx(Xi.Skeleton.Node,{active:!0,classNames:{root:"size-full!",content:"size-full!"}}),src:o,onError:()=>{s(!0)}})})},kir=t=>{const{url:e,requestHeaders:r}=t,[n,a]=Me.useState(e);return Me.useEffect(()=>{if(!r){a(e);return}fetch(e,{headers:r}).then(i=>i.blob()).then(i=>a(URL.createObjectURL(i)))},[e,r]),ar.jsx("video",{src:n,className:"w-full",controls:!0})},Oir=t=>{const{data:e,i18n:r}=t,n=(i,s)=>i==="markdown"?ar.jsx(AGe,{url:s,requestHeaders:t.requestHeaders}):i==="pdf"?ar.jsx(yFt,{url:s,...t}):i==="docx"?ar.jsx(V8t,{url:s,...t}):i==="pptx"?ar.jsx(air,{url:s,...t}):null;return(()=>{const{url:i}=e,s=e?.metadata?.content_type;if(!(!s||!i))return s==="image"?ar.jsx(Iir,{...t}):s==="video"?ar.jsx(kir,{url:i,requestHeaders:t.requestHeaders}):ar.jsx(Xi.Collapse,{size:"small",defaultActiveKey:["preview"],classNames:{root:"bg-transparent",body:"p-4!"},items:[{key:"preview",label:r?.labels?.preview??"Preview",children:n(s,i)}]})})()},Dir=t=>{const{data:e,i18n:r}=t;return ar.jsx(Xi.Collapse,{size:"small",classNames:{root:"bg-transparent",body:"p-4!"},items:[{key:"ai-interpretation",label:r?.labels?.aiInterpretation??"AI Interpretation",children:ar.jsx(AGe,{content:e?.ai_insights?.text})}]})},Lir=(t,e)=>{const r=new Array(t.length+e.length);for(let n=0;n<t.length;n++)r[n]=t[n];for(let n=0;n<e.length;n++)r[t.length+n]=e[n];return r},Mir=(t,e)=>({classGroupId:t,validator:e}),Lje=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),b6="-",TIe=[],Pir="arbitrary..",Bir=t=>{const e=Uir(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Fir(s);const o=s.split(b6),l=o[0]===""&&o.length>1?1:0;return Mje(o,l,e)},getConflictingClassGroupIds:(s,o)=>{if(o){const l=n[s],u=r[s];return l?u?Lir(u,l):l:u||TIe}return r[s]||TIe}}},Mje=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const a=t[e],i=r.nextPart.get(a);if(i){const u=Mje(t,e+1,i);if(u)return u}const s=r.validators;if(s===null)return;const o=e===0?t.join(b6):t.slice(e).join(b6),l=s.length;for(let u=0;u<l;u++){const d=s[u];if(d.validator(o))return d.classGroupId}},Fir=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),r=e.indexOf(":"),n=e.slice(0,r);return n?Pir+n:void 0})(),Uir=t=>{const{theme:e,classGroups:r}=t;return $ir(r,e)},$ir=(t,e)=>{const r=Lje();for(const n in t){const a=t[n];Ude(a,r,n,e)}return r},Ude=(t,e,r,n)=>{const a=t.length;for(let i=0;i<a;i++){const s=t[i];Gir(s,e,r,n)}},Gir=(t,e,r,n)=>{if(typeof t=="string"){zir(t,e,r);return}if(typeof t=="function"){Vir(t,e,r,n);return}Hir(t,e,r,n)},zir=(t,e,r)=>{const n=t===""?e:Pje(e,t);n.classGroupId=r},Vir=(t,e,r,n)=>{if(Yir(t)){Ude(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(Mir(r,t))},Hir=(t,e,r,n)=>{const a=Object.entries(t),i=a.length;for(let s=0;s<i;s++){const[o,l]=a[s];Ude(l,Pje(e,o),r,n)}},Pje=(t,e)=>{let r=t;const n=e.split(b6),a=n.length;for(let i=0;i<a;i++){const s=n[i];let o=r.nextPart.get(s);o||(o=Lje(),r.nextPart.set(s,o)),r=o}return r},Yir=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Wir=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=Object.create(null),n=Object.create(null);const a=(i,s)=>{r[i]=s,e++,e>t&&(e=0,n=r,r=Object.create(null))};return{get(i){let s=r[i];if(s!==void 0)return s;if((s=n[i])!==void 0)return a(i,s),s},set(i,s){i in r?r[i]=s:a(i,s)}}},XJ="!",xIe=":",qir=[],wIe=(t,e,r,n,a)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:a}),Xir=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=a=>{const i=[];let s=0,o=0,l=0,u;const d=a.length;for(let m=0;m<d;m++){const _=a[m];if(s===0&&o===0){if(_===xIe){i.push(a.slice(l,m)),l=m+1;continue}if(_==="/"){u=m;continue}}_==="["?s++:_==="]"?s--:_==="("?o++:_===")"&&o--}const h=i.length===0?a:a.slice(l);let f=h,p=!1;h.endsWith(XJ)?(f=h.slice(0,-1),p=!0):h.startsWith(XJ)&&(f=h.slice(1),p=!0);const g=u&&u>l?u-l:void 0;return wIe(i,p,f,g)};if(e){const a=e+xIe,i=n;n=s=>s.startsWith(a)?i(s.slice(a.length)):wIe(qir,!1,s,void 0,!0)}if(r){const a=n;n=i=>r({className:i,parseClassName:a})}return n},jir=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((r,n)=>{e.set(r,1e6+n)}),r=>{const n=[];let a=[];for(let i=0;i<r.length;i++){const s=r[i],o=s[0]==="[",l=e.has(s);o||l?(a.length>0&&(a.sort(),n.push(...a),a=[]),n.push(s)):a.push(s)}return a.length>0&&(a.sort(),n.push(...a)),n}},Kir=t=>({cache:Wir(t.cacheSize),parseClassName:Xir(t),sortModifiers:jir(t),...Bir(t)}),Zir=/\s+/,Qir=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:i}=e,s=[],o=t.trim().split(Zir);let l="";for(let u=o.length-1;u>=0;u-=1){const d=o[u],{isExternal:h,modifiers:f,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:m}=r(d);if(h){l=d+(l.length>0?" "+l:l);continue}let _=!!m,y=n(_?g.substring(0,m):g);if(!y){if(!_){l=d+(l.length>0?" "+l:l);continue}if(y=n(g),!y){l=d+(l.length>0?" "+l:l);continue}_=!1}const v=f.length===0?"":f.length===1?f[0]:i(f).join(":"),b=p?v+XJ:v,E=b+y;if(s.indexOf(E)>-1)continue;s.push(E);const S=a(y,_);for(let T=0;T<S.length;++T){const x=S[T];s.push(b+x)}l=d+(l.length>0?" "+l:l)}return l},Jir=(...t)=>{let e=0,r,n,a="";for(;e<t.length;)(r=t[e++])&&(n=Bje(r))&&(a&&(a+=" "),a+=n);return a},Bje=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Bje(t[n]))&&(r&&(r+=" "),r+=e);return r},esr=(t,...e)=>{let r,n,a,i;const s=l=>{const u=e.reduce((d,h)=>h(d),t());return r=Kir(u),n=r.cache.get,a=r.cache.set,i=o,o(l)},o=l=>{const u=n(l);if(u)return u;const d=Qir(l,r);return a(l,d),d};return i=s,(...l)=>i(Jir(...l))},tsr=[],Ws=t=>{const e=r=>r[t]||tsr;return e.isThemeGetter=!0,e},Fje=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Uje=/^\((?:(\w[\w-]*):)?(.+)\)$/i,rsr=/^\d+\/\d+$/,nsr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,asr=/\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$/,isr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ssr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,osr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,AE=t=>rsr.test(t),zn=t=>!!t&&!Number.isNaN(Number(t)),Km=t=>!!t&&Number.isInteger(Number(t)),VW=t=>t.endsWith("%")&&zn(t.slice(0,-1)),Jp=t=>nsr.test(t),lsr=()=>!0,csr=t=>asr.test(t)&&!isr.test(t),$je=()=>!1,usr=t=>ssr.test(t),dsr=t=>osr.test(t),hsr=t=>!xr(t)&&!wr(t),fsr=t=>zw(t,Vje,$je),xr=t=>Fje.test(t),Uy=t=>zw(t,Hje,csr),HW=t=>zw(t,ysr,zn),CIe=t=>zw(t,Gje,$je),psr=t=>zw(t,zje,dsr),vM=t=>zw(t,Yje,usr),wr=t=>Uje.test(t),UA=t=>Vw(t,Hje),gsr=t=>Vw(t,_sr),AIe=t=>Vw(t,Gje),msr=t=>Vw(t,Vje),vsr=t=>Vw(t,zje),yM=t=>Vw(t,Yje,!0),zw=(t,e,r)=>{const n=Fje.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},Vw=(t,e,r=!1)=>{const n=Uje.exec(t);return n?n[1]?e(n[1]):r:!1},Gje=t=>t==="position"||t==="percentage",zje=t=>t==="image"||t==="url",Vje=t=>t==="length"||t==="size"||t==="bg-size",Hje=t=>t==="length",ysr=t=>t==="number",_sr=t=>t==="family-name",Yje=t=>t==="shadow",bsr=()=>{const t=Ws("color"),e=Ws("font"),r=Ws("text"),n=Ws("font-weight"),a=Ws("tracking"),i=Ws("leading"),s=Ws("breakpoint"),o=Ws("container"),l=Ws("spacing"),u=Ws("radius"),d=Ws("shadow"),h=Ws("inset-shadow"),f=Ws("text-shadow"),p=Ws("drop-shadow"),g=Ws("blur"),m=Ws("perspective"),_=Ws("aspect"),y=Ws("ease"),v=Ws("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...E(),wr,xr],T=()=>["auto","hidden","clip","visible","scroll"],x=()=>["auto","contain","none"],w=()=>[wr,xr,l],C=()=>[AE,"full","auto",...w()],R=()=>[Km,"none","subgrid",wr,xr],N=()=>["auto",{span:["full",Km,wr,xr]},Km,wr,xr],k=()=>[Km,"auto",wr,xr],L=()=>["auto","min","max","fr",wr,xr],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],D=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...w()],B=()=>[AE,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],F=()=>[t,wr,xr],U=()=>[...E(),AIe,CIe,{position:[wr,xr]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",msr,fsr,{size:[wr,xr]}],z=()=>[VW,UA,Uy],q=()=>["","none","full",u,wr,xr],j=()=>["",zn,UA,Uy],X=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[zn,VW,AIe,CIe],ue=()=>["","none",g,wr,xr],J=()=>["none",zn,wr,xr],re=()=>["none",zn,wr,xr],Z=()=>[zn,wr,xr],ee=()=>[AE,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Jp],breakpoint:[Jp],color:[lsr],container:[Jp],"drop-shadow":[Jp],ease:["in","out","in-out"],font:[hsr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Jp],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Jp],shadow:[Jp],spacing:["px",zn],text:[Jp],"text-shadow":[Jp],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",AE,xr,wr,_]}],container:["container"],columns:[{columns:[zn,xr,wr,o]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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:S()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[Km,"auto",wr,xr]}],basis:[{basis:[AE,"full","auto",o,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[zn,AE,"auto","initial","none",xr]}],grow:[{grow:["",zn,wr,xr]}],shrink:[{shrink:["",zn,wr,xr]}],order:[{order:[Km,"first","last","none",wr,xr]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...D(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...D(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[o,"screen",...B()]}],"min-w":[{"min-w":[o,"screen","none",...B()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",r,UA,Uy]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,wr,HW]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",VW,xr]}],"font-family":[{font:[gsr,xr,e]}],"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:[a,wr,xr]}],"line-clamp":[{"line-clamp":[zn,"none",wr,HW]}],leading:[{leading:[i,...w()]}],"list-image":[{"list-image":["none",wr,xr]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",wr,xr]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[zn,"from-font","auto",wr,Uy]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[zn,"auto",wr,xr]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",wr,xr]}],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",wr,xr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:U()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Km,wr,xr],radial:["",wr,xr],conic:[Km,wr,xr]},vsr,psr]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[zn,wr,xr]}],"outline-w":[{outline:["",zn,UA,Uy]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",d,yM,vM]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",h,yM,vM]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[zn,Uy]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",f,yM,vM]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[zn,wr,xr]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"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":[zn]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[wr,xr]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":E()}],"mask-image-conic-pos":[{"mask-conic":[zn]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:U()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",wr,xr]}],filter:[{filter:["","none",wr,xr]}],blur:[{blur:ue()}],brightness:[{brightness:[zn,wr,xr]}],contrast:[{contrast:[zn,wr,xr]}],"drop-shadow":[{"drop-shadow":["","none",p,yM,vM]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",zn,wr,xr]}],"hue-rotate":[{"hue-rotate":[zn,wr,xr]}],invert:[{invert:["",zn,wr,xr]}],saturate:[{saturate:[zn,wr,xr]}],sepia:[{sepia:["",zn,wr,xr]}],"backdrop-filter":[{"backdrop-filter":["","none",wr,xr]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[zn,wr,xr]}],"backdrop-contrast":[{"backdrop-contrast":[zn,wr,xr]}],"backdrop-grayscale":[{"backdrop-grayscale":["",zn,wr,xr]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[zn,wr,xr]}],"backdrop-invert":[{"backdrop-invert":["",zn,wr,xr]}],"backdrop-opacity":[{"backdrop-opacity":[zn,wr,xr]}],"backdrop-saturate":[{"backdrop-saturate":[zn,wr,xr]}],"backdrop-sepia":[{"backdrop-sepia":["",zn,wr,xr]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",wr,xr]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[zn,"initial",wr,xr]}],ease:[{ease:["linear","initial",y,wr,xr]}],delay:[{delay:[zn,wr,xr]}],animate:[{animate:["none",v,wr,xr]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,wr,xr]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:Z()}],"skew-x":[{"skew-x":Z()}],"skew-y":[{"skew-y":Z()}],transform:[{transform:[wr,xr,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"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",wr,xr]}],"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":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",wr,xr]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[zn,UA,Uy,HW]}],stroke:[{stroke:["none",...F()]}],"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"]}},Esr=esr(bsr),RIe=(...t)=>Esr($a(t)),{Text:NIe}=Xi.Typography,Ssr=t=>{const{data:e,i18n:r,actionButtons:n,requestHeaders:a,className:i,...s}=t,[o,l]=Me.useState(!1),u=[{label:r?.labels?.type??"Type",value:e?.type},{label:r?.labels?.size??"Size",value:e?.size},{label:r?.labels?.createdBy??"Created By",value:e?.owner?.title},{label:r?.labels?.createdAt??"Created At",value:e?.created},{label:r?.labels?.updatedAt??"Updated At",value:e?.updated}];return ar.jsxs("div",{className:RIe("flex flex-col h-full overflow-hidden",i),...s,children:[ar.jsxs("div",{children:[ar.jsx("img",{src:e?.icon,className:"size-6 mr-3 float-left"}),ar.jsx("div",{className:"text-4.5/6 text-primary",children:e?.title})]}),ar.jsxs("div",{className:"flex items-center justify-between my-2",children:[ar.jsxs(NIe,{type:"secondary",className:"inline-flex items-center gap-0.5 text-3",children:[ar.jsx("div",{children:e?.source?.name??"-"}),ar.jsx(ED.ChevronRight,{className:"size-3"}),ar.jsx("div",{children:e?.category??"-"}),ar.jsx(ED.Minus,{className:"size-3 rotate-90"}),ar.jsx("div",{children:e?.owner?.title??"-"}),ar.jsx(ED.Dot,{className:"size-3"}),ar.jsx("div",{children:e?.updated??"-"}),ar.jsx(ED.ChevronDown,{className:RIe("ml-2 size-3 hover:text-primary transition cursor-pointer",{"-scale-y-100":o}),onClick:()=>{l(d=>!d)}})]}),ar.jsx("div",{className:"inline-flex gap-2",children:n})]}),ar.jsx(O5e.div,{className:"bg-black/3 dark:bg-white/4 rounded-lg overflow-hidden",initial:!1,animate:{height:o?"auto":0,opacity:o?1:0,marginBottom:o?"1rem":0},children:ar.jsx("div",{className:"flex flex-wrap gap-row-2 p-4",children:u.map(d=>{const{label:h,value:f}=d;return ar.jsxs("div",{className:"w-1/2 inline-flex items-center <sm:w-full",children:[ar.jsx(NIe,{type:"secondary",className:"w-24",children:h}),ar.jsx("span",{className:"text-3.5",children:f??"-"})]},h)})})}),ar.jsxs("div",{className:"flex flex-col gap-4 flex-1 overflow-auto",children:[ar.jsx(Oir,{...t}),ar.jsx(Dir,{...t})]})]})},Tsr=t=>{const{icon:e,children:r,onMouseOver:n,onMouseOut:a,...i}=t,[s,o]=Me.useState(!1),l=d=>{o(!0),n?.(d)},u=d=>{o(!1),a?.(d)};return ar.jsxs(Xi.Button,{...i,color:"primary",variant:"filled",shape:"round",className:"gap-0",onMouseOver:l,onMouseOut:u,children:[ar.jsx("span",{className:"inline-flex items-center children:size-4",children:e}),ar.jsx(O5e.span,{className:"overflow-hidden",initial:!1,animate:{width:s?"auto":0,opacity:Number(s),paddingLeft:Number(s)*8},children:r})]})};class Vc{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new Vc(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}}class Bu{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new Bu(r,Vc.range(this,e))}}class Gt{constructor(e,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+e,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start,i=s.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var l=o.slice(a,i).replace(/[^]/g,"$&̲"),u;a>15?u="…"+o.slice(a-15,a):u=o.slice(0,a);var d;i+15<o.length?d=o.slice(i,i+15)+"…":d=o.slice(i),n+=u+l+d}var h=new Error(n);return h.name="ParseError",h.__proto__=Gt.prototype,h.position=a,a!=null&&i!=null&&(h.length=i-a),h.rawMessage=e,h}}Gt.prototype.__proto__=Error.prototype;var xsr=function(e,r){return e.indexOf(r)!==-1},wsr=function(e,r){return e===void 0?r:e},Csr=/([A-Z])/g,Asr=function(e){return e.replace(Csr,"-$1").toLowerCase()},Rsr={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Nsr=/[&><"']/g;function Isr(t){return String(t).replace(Nsr,e=>Rsr[e])}var Wje=function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},ksr=function(e){var r=Wje(e);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},Osr=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},Dsr=function(e){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},qr={contains:xsr,deflt:wsr,escape:Isr,hyphenate:Asr,getBaseElem:Wje,isCharacterBox:ksr,protocolFromUrl:Dsr},tN={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function Lsr(t){if(t.default)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class $de{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var r in tN)if(tN.hasOwnProperty(r)){var n=tN[r];this[r]=e[r]!==void 0?n.processor?n.processor(e[r]):e[r]:Lsr(n)}}reportNonstrict(e,r,n){var a=this.strict;if(typeof a=="function"&&(a=a(e,r,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new Gt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var a=this.strict;if(typeof a=="function")try{a=a(e,r,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var r=qr.protocolFromUrl(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class Zm{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return Gf[Msr[this.id]]}sub(){return Gf[Psr[this.id]]}fracNum(){return Gf[Bsr[this.id]]}fracDen(){return Gf[Fsr[this.id]]}cramp(){return Gf[Usr[this.id]]}text(){return Gf[$sr[this.id]]}isTight(){return this.size>=2}}var Gde=0,E6=1,XS=2,zg=3,vI=4,$d=5,Fx=6,sc=7,Gf=[new Zm(Gde,0,!1),new Zm(E6,0,!0),new Zm(XS,1,!1),new Zm(zg,1,!0),new Zm(vI,2,!1),new Zm($d,2,!0),new Zm(Fx,3,!1),new Zm(sc,3,!0)],Msr=[vI,$d,vI,$d,Fx,sc,Fx,sc],Psr=[$d,$d,$d,$d,sc,sc,sc,sc],Bsr=[XS,zg,vI,$d,Fx,sc,Fx,sc],Fsr=[zg,zg,$d,$d,sc,sc,sc,sc],Usr=[E6,E6,zg,zg,$d,$d,sc,sc],$sr=[Gde,E6,XS,zg,XS,zg,XS,zg],Zr={DISPLAY:Gf[Gde],TEXT:Gf[XS],SCRIPT:Gf[vI],SCRIPTSCRIPT:Gf[Fx]},jJ=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Gsr(t){for(var e=0;e<jJ.length;e++)for(var r=jJ[e],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(t>=a[0]&&t<=a[1])return r.name}return null}var m3=[];jJ.forEach(t=>t.blocks.forEach(e=>m3.push(...e)));function qje(t){for(var e=0;e<m3.length;e+=2)if(t>=m3[e]&&t<=m3[e+1])return!0;return!1}var RE=80,zsr=function(e,r){return"M95,"+(622+e+r)+`
558
558
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
559
559
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
560
560
  c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10