1(self.webpackChunkpterodactyl_panel=self.webpackChunkpterodactyl_panel||[]).push([[972],{906(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(2379),i=r.n(n),o=r(1364),a=r.n(o)()(i());a.push([e.id,'/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * https://github.com/chjj/term.js\n * @license MIT\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * Originally forked from (with the author\'s permission):\n * Fabrice Bellard\'s javascript vt100 for jslinux:\n * http://bellard.org/jslinux/\n * Copyright (c) 2011 Fabrice Bellard\n * The original design remains. The terminal itself\n * has been extended to include xterm CSI codes, among\n * other features.\n */\n\n/**\n * Default styles for xterm.js\n */\n\n.xterm {\n cursor: text;\n position: relative;\n -moz-user-select: none;\n user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n}\n\n.xterm.focus,\n.xterm:focus {\n outline: none;\n}\n\n.xterm .xterm-helpers {\n position: absolute;\n top: 0;\n /**\n * The z-index of the helpers must be higher than the canvases in order for\n * IMEs to appear on top.\n */\n z-index: 5;\n}\n\n.xterm .xterm-helper-textarea {\n padding: 0;\n border: 0;\n margin: 0;\n /* Move textarea out of the screen to the far left, so that the cursor is not visible */\n position: absolute;\n opacity: 0;\n left: -9999em;\n top: 0;\n width: 0;\n height: 0;\n z-index: -5;\n /** Prevent wrapping so the IME appears against the textarea at the correct position */\n white-space: nowrap;\n overflow: hidden;\n resize: none;\n}\n\n.xterm .composition-view {\n /* TODO: Composition position got messed up somewhere */\n background: #000;\n color: #FFF;\n display: none;\n position: absolute;\n white-space: nowrap;\n z-index: 1;\n}\n\n.xterm .composition-view.active {\n display: block;\n}\n\n.xterm .xterm-viewport {\n /* On OS X this is required in order for the scroll bar to appear fully opaque */\n background-color: #000;\n overflow-y: scroll;\n cursor: default;\n position: absolute;\n right: 0;\n left: 0;\n top: 0;\n bottom: 0;\n}\n\n.xterm .xterm-screen {\n position: relative;\n}\n\n.xterm .xterm-screen canvas {\n position: absolute;\n left: 0;\n top: 0;\n}\n\n.xterm .xterm-scroll-area {\n visibility: hidden;\n}\n\n.xterm-char-measure-element {\n display: inline-block;\n visibility: hidden;\n position: absolute;\n top: 0;\n left: -9999em;\n line-height: normal;\n}\n\n.xterm.enable-mouse-events {\n /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */\n cursor: default;\n}\n\n.xterm.xterm-cursor-pointer,\n.xterm .xterm-cursor-pointer {\n cursor: pointer;\n}\n\n.xterm.column-select.focus {\n /* Column selection mode */\n cursor: crosshair;\n}\n\n.xterm .xterm-accessibility,\n.xterm .xterm-message {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 10;\n color: transparent;\n}\n\n.xterm .live-region {\n position: absolute;\n left: -9999px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n}\n\n.xterm-dim {\n opacity: 0.5;\n}\n\n.xterm-underline {\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n\n.xterm-strikethrough {\n -webkit-text-decoration: line-through;\n text-decoration: line-through;\n}\n\n.xterm-screen .xterm-decoration-container .xterm-decoration {\n\tz-index: 6;\n\tposition: absolute;\n}\n\n.xterm-decoration-overview-ruler {\n z-index: 7;\n position: absolute;\n top: 0;\n right: 0;\n pointer-events: none;\n}\n\n.xterm-decoration-top {\n z-index: 2;\n position: relative;\n}\n',""]);const s=a},238(e,t,r){"use strict";function n(e){return"object"!=typeof e||null===e?0:Array.isArray(e)?2:function(e){if(!a.has(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(void 0===t)return!0;const r=t.prototype;if(null===r||"object"!=typeof r||!a.has(Object.prototype.toString.call(r)))return!1;if(!r.hasOwnProperty("isPrototypeOf"))return!1;return!0}(e)?1:e instanceof Set?3:e instanceof Map?4:5}function i(e,t){return"object"==typeof e&&Object.prototype.propertyIsEnumerable.call(e,t)}function o(e){return{*[Symbol.iterator](){for(const t of e)for(const e of t)yield e}}}r.d(t,{T:()=>u,s:()=>h});const a=new Set(["[object Object]","[object Module]"]);const s={mergeMaps:function(e){return new Map(o(e))},mergeSets:function(e){return new Set(o(e))},mergeArrays:function(e){return e.flat()},mergeRecords:function(e,t,r){const n={};for(const o of function(e){const t=new Set;for(const r of e)for(const e of[...Object.keys(r),...Object.getOwnPropertySymbols(r)])t.add(e);return t}(e)){const a=[];for(const t of e)i(t,o)&&a.push(t[o]);if(0===a.length)continue;const s=t.metaDataUpdater(r,{key:o,parents:e}),c=d(a,t,s);c!==l.skip&&("__proto__"===o?Object.defineProperty(n,o,{value:c,configurable:!0,enumerable:!0,writable:!0}):n[o]=c)}return n},mergeOthers:p},l={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};function c(e,t){return t}function u(...e){return h({})(...e)}function h(e,t){const r=function(e,t){var r,n;return{defaultMergeFunctions:s,mergeFunctions:{...s,...Object.fromEntries(Object.entries(e).filter(([e,t])=>Object.prototype.hasOwnProperty.call(s,e)).map(([e,t])=>!1===t?[e,p]:[e,t]))},metaDataUpdater:null!==(r=e.metaDataUpdater)&&void 0!==r?r:c,deepmerge:t,useImplicitDefaultMerging:null!==(n=e.enableImplicitDefaultMerging)&&void 0!==n&&n,actions:l}}(e,n);function n(...e){return d(e,r,t)}return n}function d(e,t,r){if(0===e.length)return;if(1===e.length)return f(e,t,r);const i=n(e[0]);if(0!==i&&5!==i)for(let o=1;o<e.length;o++)if(n(e[o])!==i)return f(e,t,r);switch(i){case 1:return function(e,t,r){const n=t.mergeFunctions.mergeRecords(e,t,r);if(n===l.defaultMerge||t.useImplicitDefaultMerging&&void 0===n&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords)return t.defaultMergeFunctions.mergeRecords(e,t,r);return n}(e,t,r);case 2:return function(e,t,r){const n=t.mergeFunctions.mergeArrays(e,t,r);if(n===l.defaultMerge||t.useImplicitDefaultMerging&&void 0===n&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays)return t.defaultMergeFunctions.mergeArrays(e);return n}(e,t,r);case 3:return function(e,t,r){const n=t.mergeFunctions.mergeSets(e,t,r);if(n===l.defaultMerge||t.useImplicitDefaultMerging&&void 0===n&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets)return t.defaultMergeFunctions.mergeSets(e);return n}(e,t,r);case 4:return function(e,t,r){const n=t.mergeFunctions.mergeMaps(e,t,r);if(n===l.defaultMerge||t.useImplicitDefaultMerging&&void 0===n&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps)return t.defaultMergeFunctions.mergeMaps(e);return n}(e,t,r);default:return f(e,t,r)}}function f(e,t,r){const n=t.mergeFunctions.mergeOthers(e,t,r);return n===l.defaultMerge||t.useImplicitDefaultMerging&&void 0===n&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):n}function p(e){return e[e.length-1]}},3765(e,t,r){"use strict";r.d(t,{Ny:()=>$a,PY:()=>Ua});
1var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}Object.create;function s(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function c(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;var u=r(7810),h=("undefined"==typeof process||process.env,"production"),d=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},f={measureLayout:d(["layout","layoutId","drag"]),animation:d(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:d(["exit"]),drag:d(["drag","dragControls"]),focus:d(["whileFocus"]),hover:d(["whileHover","onHoverStart","onHoverEnd"]),tap:d(["whileTap","onTap","onTapStart","onTapCancel"]),pan:d(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:d(["whileInView","onViewportEnter","onViewportLeave"])};var p=function(){};var v=(0,u.createContext)({strict:!1}),g=Object.keys(f),m=g.length;var _=(0,u.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),y=(0,u.createContext)({});var w=(0,u.createContext)(null),b="undefined"!=typeof document,x=b?u.useLayoutEffect:u.useEffect,C={current:null},S=!1;function E(){return!S&&function(){if(S=!0,b)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return C.current=e.matches};e.addListener(t),t()}else C.current=!1}(),l((0,u.useState)(C.current),1)[0]}function M(e,t,r,n){var i,o,a=(0,u.useContext)(v),s=(0,u.useContext)(y).visualElement,l=(0,u.useContext)(w),c=(i=E(),"never"!==(o=(0,u.useContext)(_).reducedMotion)&&("always"===o||i)),h=(0,u.useRef)(void 0);n||(n=a.renderer),!h.current&&n&&(h.current=n(e,{visualState:t,parent:s,props:r,presenceId:null==l?void 0:l.id,blockInitialAnimation:!1===(null==l?void 0:l.initial),shouldReduceMotion:c}));var d=h.current;return x(function(){null==d||d.syncRender()}),(0,u.useEffect)(function(){var e;null===(e=null==d?void 0:d.animationState)||void 0===e||e.animateChanges()}),x(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}function k(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function L(e){return Array.isArray(e)}function R(e){return"string"==typeof e||L(e)}function O(e,t,r,n,i){var o;return void 0===n&&(n={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,i)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,i)),t}function A(e,t,r){var n=e.getProps();return O(n,t,null!=r?r:n.custom,function(e){var t={};return e.forEachValue(function(e,r){return t[r]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,r){return t[r]=e.getVelocity()}),t}(e))}function P(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||R(e.initial)||R(e.animate)||R(e.whileHover)||R(e.whileDrag)||R(e.whileTap)||R(e.whileFocus)||R(e.exit)}function T(e){return Boolean(P(e)||e.variants)}function D(e){var t=function(e,t){if(P(e)){var r=e.initial,n=e.animate;return{initial:!1===r||R(r)?r:void 0,animate:R(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,u.useContext)(y)),r=t.initial,n=t.animate;return(0,u.useMemo)(function(){return{initial:r,animate:n}},[B(r),B(n)])}function B(e){return Array.isArray(e)?e.join(" "):e}function j(e){var t=(0,u.useRef)(null);return null===t.current&&(t.current=e()),t.current}const I=1/60*1e3,z="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),H="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(z()),I);let F=!0,V=!1,W=!1;const N={delta:0,timestamp:0},U=["read","update","preRender","render","postRender"],q=U.reduce((e,t)=>
vendor: 12,223 bytes, line 1
1(e[t]=function(e){let t=[],r=[],n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const l=s&&i,c=l?t:r;return o&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&i&&(n=t.length)),e},cancel:e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1),a.delete(e)},process:l=>{if(i)o=!0;else{if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let r=0;r<n;r++){const n=t[r];n(l),a.has(n)&&(s.schedule(n),e())}i=!1,o&&(o=!1,s.process(l))}}};return s}(()=>V=!0),e),{}),Y=U.reduce((e,t)=>{const r=q[t];return e[t]=(e,t=!1,n=!1)=>(V||Z(),r.schedule(e,t,n)),e},{}),K=U.reduce((e,t)=>(e[t]=q[t].cancel,e),{}),G=U.reduce((e,t)=>(e[t]=()=>q[t].process(N),e),{}),$=e=>q[e].process(N),X=e=>{V=!1,N.delta=F?I:Math.max(Math.min(e-N.timestamp,40),1),N.timestamp=e,W=!0,U.forEach($),W=!1,V&&(F=!1,H(X))},Z=()=>{V=!0,F=!0,W||H(X)},J=()=>N,Q=Y;function ee(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}Object.create;Object.create;const te=(e,t,r)=>Math.min(Math.max(r,e),t),re=.001;function ne({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o,a=1-t;a=te(.05,1,a),e=te(.01,10,e/1e3),a<1?(i=t=>{const n=t*a,i=n*e,o=n-r,s=ie(t,a),l=Math.exp(-i);return re-o/s*l},o=t=>{const n=t*a*e,o=n*r+r,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-n),c=ie(Math.pow(t,2),a);return(-i(t)+re>0?-1:1)*((o-s)*l)/c}):(i=t=>Math.exp(-t*e)*((t-r)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}function ie(e,t){return e*Math.sqrt(1-t*t)}const oe=["duration","bounce"],ae=["stiffness","damping","mass"];function se(e,t){return t.some(t=>void 0!==e[t])}function le(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=ee(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:h,isResolvedFromDuration:d}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!se(e,ae)&&se(e,oe)){const r=ne(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(o),f=ce,p=ce;function v(){const e=u?-u/1e3:0,n=r-t,o=l/(2*Math.sqrt(s*c)),a=Math.sqrt(s/c)/1e3;if(void 0===i&&(i=Math.min(Math.abs(r-t)/100,.4)),o<1){const t=ie(a,o);f=i=>{const s=Math.exp(-o*a*i);return r-s*((e+o*a*n)/t*Math.sin(t*i)+n*Math.cos(t*i))},p=r=>{const i=Math.exp(-o*a*r);return o*a*i*(Math.sin(t*r)*(e+o*a*n)/t+n*Math.cos(t*r))-i*(Math.cos(t*r)*(e+o*a*n)-t*n*Math.sin(t*r))}}else if(1===o)f=t=>r-Math.exp(-a*t)*(n+(e+a*n)*t);else{const t=a*Math.sqrt(o*o-1);f=i=>{const s=Math.exp(-o*a*i),l=Math.min(t*i,300);return r-s*((e+o*a*n)*Math.sinh(l)+t*n*Math.cosh(l))/t}}}return v(),{next:e=>{const t=f(e);if(d)a.done=e>=h;else{const o=1e3*p(e),s=Math.abs(o)<=n,l=Math.abs(r-t)<=i;a.done=s&&l}return a.value=a.done?r:t,a},flipTarget:()=>{u=-u,[t,r]=[r,t],v()}}}le.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const ce=e=>0,ue=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n},he=(e,t,r)=>-r*e+r*t+e,de=(e,t)=>r=>Math.max(Math.min(r,t),e),fe=e=>e%1?Number(e.toFixed(5)):e,pe=/(-)?([\d]*\.?[\d])+/g,ve=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,ge=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function me(e){return"string"==typeof e}const _e={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ye=Object.assign(Object.assign({},_e),{transform:de(0,1)}),we=Object.assign(Object.assign({},_e),{default:1}),be=e=>({test:t=>me(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),xe=be("deg"),Ce=be("%"),Se=be("px"),Ee=be("vh"),Me=be("vw"),ke=Object.assign(Object.assign({},Ce),{parse:e=>Ce.parse(e)/100,transform:e=>Ce.transform(100*e)}),Le=(e,t)=>r=>Boolean(me(r)&&ge.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Re=(e,t,r)=>n=>{if(!me(n))return n;const[i,o,a,s]=n.match(pe);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Oe={test:Le("hsl","hue"),parse:Re("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Ce.transform(fe(t))+", "+Ce.transform(fe(r))+", "+fe(ye.transform(n))+")"},Ae=de(0,255),Pe=Object.assign(Object.assign({},_e),{transform:e=>Math.round(Ae(e))}),Te={test:Le("rgb","red"),parse:Re("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Pe.transform(e)+", "+Pe.transform(t)+", "+Pe.transform(r)+", "+fe(ye.transform(n))+")"};const De={test:Le("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:Te.transform},Be={test:e=>Te.test(e)||De.test(e)||Oe.test(e),parse:e=>Te.test(e)?Te.parse(e):Oe.test(e)?Oe.parse(e):De.parse(e),transform:e=>me(e)?e:e.hasOwnProperty("red")?Te.transform(e):Oe.transform(e)},je="${c}",Ie="${n}";function ze(e){"number"==typeof e&&(e=`${e}`);const t=[];let r=0;const n=e.match(ve);n&&(r=n.length,e=e.replace(ve,je),t.push(...n.map(Be.parse)));const i=e.match(pe);return i&&(e=e.replace(pe,Ie),t.push(...i.map(_e.parse))),{values:t,numColors:r,tokenised:e}}function He(e){return ze(e).values}function Fe(e){const{values:t,numColors:r,tokenised:n}=ze(e),i=t.length;return e=>{let t=n;for(let n=0;n<i;n++)t=t.replace(n<r?je:Ie,n<r?Be.transform(e[n]):fe(e[n]));return t}}const Ve=e=>"number"==typeof e?0:e;const We={test:function(e){var t,r,n,i;return isNaN(e)&&me(e)&&(null!==(r=null===(t=e.match(pe))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(i=null===(n=e.match(ve))||void 0===n?void 0:n.length)&&void 0!==i?i:0)>0},parse:He,createTransformer:Fe,getAnimatableNone:function(e){const t=He(e);return Fe(e)(t.map(Ve))}},Ne=new Set(["brightness","contrast","saturate","opacity"]);function Ue(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(pe)||[];if(!n)return e;const i=r.replace(n,"");let o=Ne.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const qe=/([a-z-]*)\(.*?\)/g,Ye=Object.assign(Object.assign({},We),{getAnimatableNone:e=>{const t=e.match(qe);return t?t.map(Ue).join(" "):e}});function Ke(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Ge({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=Ke(s,n,e+1/3),o=Ke(s,n,e),a=Ke(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}const $e=(e,t,r)=>{const n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},Xe=[De,Te,Oe],Ze=e=>Xe.find(t=>t.test(e)),Je=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Qe=(e,t)=>{let r=Ze(e),n=Ze(t);Je(e),Je(t);let i=r.parse(e),o=n.parse(t);r===Oe&&(i=Ge(i),r=Te),n===Oe&&(o=Ge(o),n=Te);const a=Object.assign({},i);return e=>{for(const t in a)"alpha"!==t&&(a[t]=$e(i[t],o[t],e));return a.alpha=he(i.alpha,o.alpha,e),r.transform(a)}},et=e=>"number"==typeof e,tt=(e,t)=>r=>t(e(r)),rt=(...e)=>e.reduce(tt);function nt(e,t){return et(e)?r=>he(e,t,r):Be.test(e)?Qe(e,t):st(e,t)}const it=(e,t)=>{const r=[...e],n=r.length,i=e.map((e,r)=>nt(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}},ot=(e,t)=>{const r=Object.assign(Object.assign({},e),t),n={};for(const i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=nt(e[i],t[i]));return e=>{for(const t in n)r[t]=n[t](e);return r}};function at(e){const t=We.parse(e),r=t.length;let n=0,i=0,o=0;for(let e=0;e<r;e++)n||"number"==typeof t[e]?n++:void 0!==t[e].hue?o++:i++;return{parsed:t,numNumbers:n,numRGB:i,numHSL:o}}const st=(e,t)=>{const r=We.createTransformer(t),n=at(e),i=at(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?rt(it(n.parsed,i.parsed),r):r=>`${r>0?t:e}`},lt=(e,t)=>r=>he(e,t,r);function ct(e,t,r){const n=[],i=r||("number"==typeof(o=e[0])?lt:"string"==typeof o?Be.test(o)?Qe:st:Array.isArray(o)?it:"object"==typeof o?ot:void 0);var o;const a=e.length-1;for(let r=0;r<a;r++){let o=i(e[r],e[r+1]);if(t){const e=Array.isArray(t)?t[r]:t;o=rt(e,o)}n.push(o)}return n}function ut(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;t.length,!n||!Array.isArray(n)||n.length,e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=ct(t,n,i),s=2===o?function([e,t],[r]){return n=>r(ue(e,t,n))}(e,a):function(e,t){const r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let t=1;for(;t<r&&!(e[t]>i||t===n);t++);o=t-1}const s=ue(e[o],e[o+1],i);return t[o](s)}}(e,a);return r?t=>s(te(e[0],e[o-1],t)):s}const ht=e=>t=>1-e(1-t),dt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ft=e=>t=>t*t*((e+1)*t-e),pt=4/11,vt=8/11,gt=e=>e,mt=(_t=2,e=>Math.pow(e,_t));var _t;const yt=ht(mt),wt=dt(mt),bt=e=>1-Math.sin(Math.acos(e)),xt=ht(bt),Ct=dt(xt),St=ft(1.525),Et=ht(St),Mt=dt(St),kt=(e=>{const t=ft(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(1.525),Lt=4356/361,Rt=35442/1805,Ot=16061/1805,At=e=>{if(1===e||0===e)return e;const t=e*e;return e<pt?7.5625*t:e<vt?9.075*t-9.9*e+3.4:e<.9?Lt*t-Rt*e+Ot:10.8*e*e-20.52*e+10.72},Pt=ht(At);function Tt(e,t){return e.map(()=>t||wt).splice(0,e.length-1)}function Dt({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map(e=>e*t)}(n&&n.length===a.length?n:function(e){const t=e.length;return e.map((e,r)=>0!==r?r/(t-1):0)}(a),i);function l(){return ut(s,a,{ease:Array.isArray(r)?r:Tt(a,r)})}let c=l();return{next:e=>(o.value=c(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),c=l()}}}const Bt={keyframes:Dt,spring:le,decay:function({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=r*e;const l=t+s,c=void 0===o?l:o(l);return c!==l&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/n);return a.done=!(t>i||t<-i),a.value=a.done?c:c+t,a},flipTarget:()=>{}}}};function jt(e,t,r=0){return e-t-r}const It=e=>{const t=({delta:t})=>e(t);return{start:()=>Q.update(t,!0),stop:()=>K.update(t)}};function zt(e){var t,r,{from:n,autoplay:i=!0,driver:o=It,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:h,onComplete:d,onRepeat:f,onUpdate:p}=e,v=ee(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let g,m,_,{to:y}=v,w=0,b=v.duration,x=!1,C=!0;const S=function(e){if(Array.isArray(e.to))return Dt;if(Bt[e.type])return Bt[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Dt:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?le:Dt}(v);(null===(r=(t=S).needsInterpolation)||void 0===r?void 0:r.call(t,n,y))&&(_=ut([0,100],[n,y],{clamp:!1}),n=0,y=100);const E=S(Object.assign(Object.assign({},v),{from:n,to:y}));function M(){w++,"reverse"===l?(C=w%2==0,a=function(e,t,r=0,n=!0){return n?jt(t+-e,t,r):t-(e-t)+r}(a,b,c,C)):(a=jt(a,b,c),"mirror"===l&&E.flipTarget()),x=!1,f&&f()}function k(e){if(C||(e=-e),a+=e,!x){const e=E.next(Math.max(0,a));m=e.value,_&&(m=_(m)),x=C?e.done:a<=0}null==p||p(m),x&&(0===w&&(null!=b||(b=a)),w<s?function(e,t,r,n){return n?e>=t+r:e<=-r}(a,b,c,C)&&M():(g.stop(),d&&d()))}return i&&(null==u||u(),g=o(k),g.start()),{stop:()=>{null==h||h(),g.stop()}}}function Ht(e,t){return t?e*(1e3/t):0}const Ft=e=>e,Vt=(e=Ft)=>(t,r,n)=>{const i=r-n,o=-(0-t+1)*(0-e(Math.abs(i)));return i<=0?r+o:r-o},Wt=(Vt(),Vt(Math.sqrt),e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y")),Nt=e=>Wt(e)&&e.hasOwnProperty("z"),Ut=(e,t)=>
1Math.abs(e-t);function qt(e,t){if(et(e)&&et(t))return Ut(e,t);if(Wt(e)&&Wt(t)){const r=Ut(e.x,t.x),n=Ut(e.y,t.y),i=Nt(e)&&Nt(t)?Ut(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2))}}const Yt=(e,t)=>1-3*t+3*e,Kt=(e,t)=>3*t-6*e,Gt=e=>3*e,$t=(e,t,r)=>((Yt(t,r)*e+Kt(t,r))*e+Gt(t))*e,Xt=(e,t,r)=>3*Yt(t,r)*e*e+2*Kt(t,r)*e+Gt(t);const Zt=.1;function Jt(e,t,r,n){if(e===t&&r===n)return gt;const i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=$t(t*Zt,e,r);function o(t){let n=0,o=1;for(;10!==o&&i[o]<=t;++o)n+=Zt;--o;const a=n+(t-i[o])/(i[o+1]-i[o])*Zt,s=Xt(a,e,r);return s>=.001?function(e,t,r,n){for(let i=0;i<8;++i){const i=Xt(t,r,n);if(0===i)return t;t-=($t(t,r,n)-e)/i}return t}(t,a,e,r):0===s?a:function(e,t,r,n,i){let o,a,s=0;do{a=t+(r-t)/2,o=$t(a,n,i)-e,o>0?r=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,n,n+Zt,e,r)}return e=>0===e||1===e?e:$t(o(e),t,n)}function Qt(e,t){-1===e.indexOf(t)&&e.push(t)}function er(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var tr=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Qt(this.subscriptions,e),function(){return er(t.subscriptions,e)}},e.prototype.notify=function(e,t,r){var n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(var i=0;i<n;i++){var o=this.subscriptions[i];o&&o(e,t,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),rr=function(){function e(e){var t,r=this;this.version="6.3.10",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new tr,this.velocityUpdateSubscribers=new tr,this.renderSubscribers=new tr,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),r.prev=r.current,r.current=e;var n=J(),i=n.delta,o=n.timestamp;r.lastUpdated!==o&&(r.timeDelta=i,r.lastUpdated=o,Q.postRender(r.scheduleVelocityCheck)),r.prev!==r.current&&r.updateSubscribers.notify(r.current),r.velocityUpdateSubscribers.getSize()&&r.velocityUpdateSubscribers.notify(r.getVelocity()),t&&r.renderSubscribers.notify(r.current)},this.scheduleVelocityCheck=function(){return Q.postRender(r.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==r.lastUpdated&&(r.prev=r.current,r.velocityUpdateSubscribers.notify(r.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Ht(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(r){t.hasAnimated=!0,t.stopAnimation=e(r)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function nr(e){return new rr(e)}var ir=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},or=function(e){return 1e3*e},ar={linear:gt,easeIn:mt,easeInOut:wt,easeOut:yt,circIn:bt,circInOut:Ct,circOut:xt,backIn:St,backInOut:Mt,backOut:Et,anticipate:kt,bounceIn:Pt,bounceInOut:e=>e<.5?.5*(1-At(1-2*e)):.5*At(2*e-1)+.5,bounceOut:At},sr=function(e){if(Array.isArray(e)){e.length;var t=l(e,4);return Jt(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),ar[e]):e},lr=function(e,t){return"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!We.test(t)||t.startsWith("url(")))},cr=function(e){return Array.isArray(e)},ur=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},hr=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},dr=function(){return{type:"keyframes",ease:"linear",duration:.3}},fr=function(e){return{type:"keyframes",duration:.8,values:e}},pr={x:ur,y:ur,z:ur,rotate:ur,rotateX:ur,rotateY:ur,rotateZ:ur,scaleX:hr,
1scaleY:hr,scale:hr,opacity:dr,backgroundColor:dr,color:dr,default:hr},vr=o(o({},_e),{transform:Math.round}),gr={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,size:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,rotate:xe,rotateX:xe,rotateY:xe,rotateZ:xe,scale:we,scaleX:we,scaleY:we,scaleZ:we,skew:xe,skewX:xe,skewY:xe,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:ye,originX:ke,originY:ke,originZ:Se,zIndex:vr,fillOpacity:ye,strokeOpacity:ye,numOctaves:vr},mr=o(o({},gr),{color:Be,backgroundColor:Be,outlineColor:Be,fill:Be,stroke:Be,borderColor:Be,borderTopColor:Be,borderRightColor:Be,borderBottomColor:Be,borderLeftColor:Be,filter:Ye,WebkitFilter:Ye}),_r=function(e){return mr[e]};function yr(e,t){var r,n=_r(e);return n!==Ye&&(n=We),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,t)}var wr=!1,br=function(e){return cr(e)?e[e.length-1]||0:e};function xr(e){var t=e.ease,r=e.times,n=e.yoyo,i=e.flip,s=e.loop,l=a(e,["ease","times","yoyo","flip","loop"]),c=o({},l);return r&&(c.offset=r),l.duration&&(c.duration=or(l.duration)),l.repeatDelay&&(c.repeatDelay=or(l.repeatDelay)),t&&(c.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(sr):sr(t)),"tween"===l.type&&(c.type="keyframes"),(n||s||i)&&(n?c.repeatType="reverse":s?c.repeatType="loop":i&&(c.repeatType="mirror"),c.repeat=s||n||i||l.repeat),"spring"!==l.type&&(c.type="keyframes"),c}function Cr(e,t,r){var n,i,s,u;return Array.isArray(t.to)&&(null!==(n=e.duration)&&void 0!==n||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=c([],l(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=a(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=o(o({},e),(i=r,s=t.to,u=cr(s)?fr:pr[i]||pr.default,o({to:s},u(s))))),o(o({},t),xr(e))}function Sr(e,t,r,n,i){var a,s=kr(n,e),l=null!==(a=s.from)&&void 0!==a?a:t.get(),c=lr(e,r);"none"===l&&c&&"string"==typeof r?l=yr(e,r):Er(l)&&"string"==typeof r?l=Mr(r):!Array.isArray(r)&&Er(r)&&"string"==typeof l&&(r=Mr(l));var u=lr(e,l);return"You are trying to animate ".concat(e,' from "').concat(l,'" to "').concat(r,'". ').concat(l," is not an animatable value - to enable this animation set ").concat(l," to a value animatable to ").concat(r," via the `style` property."),u&&c&&!1!==s.type?function(){var n={from:l,to:r,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===s.type||"decay"===s.type?function({from:e=0,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:h,onComplete:d,onStop:f}){let p;function v(e){return void 0!==r&&e<r||void 0!==n&&e>n}function g(e){return void 0===r?n:void 0===n||Math.abs(r-e)<Math.abs(n-e)?r:n}function m(e){null==p||p.stop(),p=zt(Object.assign(Object.assign({},e),{driver:u,onUpdate:t=>{var r;null==h||h(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:d,onStop:f}))}function _(e){m(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(v(e))_({from:e,velocity:t,to:g(e)});else{let n=i*t+e;void 0!==c&&(n=c(n));const a=g(n),s=a===r?-1:1;let u,h;const d=e=>{u=h,h=e,t=Ht(e-u,J().delta),(1===s&&e>a||-1===s&&e<a)&&_({from:e,to:a,velocity:t})};m({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:c,onUpdate:v(n)?d:void 0})}return{stop:()=>null==p?void 0:p.stop()}}(o(o({},n),s)):zt(o(o({},Cr(s,n,e)),{onUpdate:function(e){var t;n.onUpdate(e),null===(t=s.onUpdate)||void 0===t||t.call(s,e)},onComplete:function(){var e;n.onComplete(),null===(e=s.onComplete)||void 0===e||e.call(s)}}))}:function(){var e,n,o=br(r);return t.set(o),i(),null===(e=null==s?void 0:s.onUpdate)||void 0===e||e.call(s,o),null===(n=null==s?void 0:s.onComplete)||void 0===n||n.call(s),{stop:function(){}}}}function Er(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Mr(e){return"number"==typeof e?0:yr("",e)}function kr(e,t){return e[t]||e.default||e}function Lr(e,t,r,n){return void 0===n&&(n={}),wr&&(n={type:!1}),t.start(function(i){var o,a,s=Sr(e,t,r,n,i),l=function(e,t){var r,n;return null!==(n=null!==(r=(kr(e,t)||{}).delay)&&void 0!==r?r:e.delay)&&void 0!==n?n:0}(n,e),c=function(){return a=s()};return l?o=window.setTimeout(c,or(l)):c(),function(){clearTimeout(o),null==a||a.stop()}})}var Rr=["TopLeft","TopRight","BottomLeft","BottomRight"],Or=Rr.length,Ar=function(e){return"string"==typeof e?parseFloat(e):e},Pr=function(e){return"number"==typeof e||Se.test(e)};function Tr(e,t){var r;return null!==(r=e[t])&&void 0!==r?r:e.borderRadius}var Dr=jr(0,.5,xt),Br=jr(.5,.95,gt);function jr(e,t,r){return function(n){return n<e?0:n>t?1:r(ue(e,t,n))}}function Ir(e,t){e.min=t.min,e.max=t.max}function zr(e,t){Ir(e.x,t.x),Ir(e.y,t.y)}function Hr(e){return void 0===e||1===e}function Fr(e){var t=e.scale,r=e.scaleX,n=e.scaleY;return!Hr(t)||!Hr(r)||!Hr(n)}function Vr(e){return Fr(e)||Wr(e.x)||Wr(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Wr(e){return e&&"0%"!==e}function Nr(e,t,r){return r+t*(e-r)}function Ur(e,t,r,n,i){return void 0!==i&&(e=Nr(e,i,n)),Nr(e,r,n)+t}function qr(e,t,r,n,i){void 0===t&&(t=0),void 0===r&&(r=1),e.min=Ur(e.min,t,r,n,i),e.max=Ur(e.max,t,r,n,i)}function Yr(e,t){var r=t.x,n=t.y;qr(e.x,r.translate,r.scale,r.originPoint),qr(e.y,n.translate,n.scale,n.originPoint)}function Kr(e,t){e.min=e.min+t,e.max=e.max+t}function Gr(e,t,r){var n=l(r,3),i=n[0],o=n[1],a=n[2],s=void 0!==t[a]?t[a]:.5,c=he(e.min,e.max,s);qr(e,t[i],t[o],c,t.scale)}var $r=["x","scaleX","originX"],Xr=["y","scaleY","originY"];function Zr(e,t){Gr(e.x,t,$r),Gr(e.y,t,Xr)}function Jr(e){return e.max-e.min}function Qr(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=.01),qt(e,t)<r}function en(e,t,r,n){void 0===n&&(n=.5),e.origin=n,e.originPoint=he(t.min,t.max,e.origin),e.scale=Jr(r)/Jr(t),(Qr(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=he(r.min,r.max,e.origin)-e.originPoint,(Qr(e.translate)||isNaN(e.translate))&&(e.translate=0)}function tn(e,t,r,n){en(e.x,t.x,r.x,null==n?void 0:n.originX),en(e.y,t.y,r.y,null==n?void 0:n.originY)}function rn(e,t,r){e.min=r.min+t.min,e.max=e.min+Jr(t)}function nn(e,t,r){e.min=t.min-r.min,e.max=e.min+Jr(t)}function on(e,t,r){nn(e.x,t.x,r.x),nn(e.y,t.y,r.y)}function an(e,t,r,n,i){return e=Nr(e-=t,1/r,n),void 0!==i&&(e=Nr(e,1/i,n)),e}function sn(e,t,r,n,i){var o=l(r,3),a=o[0],s=o[1],c=o[2];!function(e,t,r,n,i,o,a){if(void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=.5),void 0===o&&(o=e),void 0===a&&(a=e),Ce.test(t)&&(t=parseFloat(t),t=he(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=he(o.min,o.max,n);e===o&&(s-=t),e.min=an(e.min,t,r,s,i),e.max=an(e.max,t,r,s,i)}}(e,t[a],t[s],t[c],t.scale,n,i)}var ln=["x","scaleX","originX"],cn=["y","scaleY","originY"];function un(e,t,r,n){sn(e.x,t,ln,null==r?void 0:r.x,null==n?void 0:n.x),sn(e.y,t,cn,null==r?void 0:r.y,null==n?void 0:n.y)}var hn=function(){return{x:{min:0,max:0},y:{min:0,max:0}}};function dn(e){return 0===e.translate&&1===e.scale}function fn(e){return dn(e.x)&&dn(e.y)}function pn(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var vn=function(){function e(){this.members=[]}return e.prototype.add=function(e){Qt(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(er(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}
1},e.prototype.relegate=function(e){var t,r=this.members.findIndex(function(t){return e===t});if(0===r)return!1;for(var n=r;n>=0;n--){var i=this.members[n];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var r,n=this.lead;e!==n&&(this.prevLead=n,this.lead=e,e.show(),n&&(n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues,e.snapshot.isShared=!0),(null===(r=e.root)||void 0===r?void 0:r.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&n.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,r,n,i,o;null===(r=(t=e.options).onExitComplete)||void 0===r||r.call(t),null===(o=null===(n=e.resumingFrom)||void 0===n?void 0:(i=n.options).onExitComplete)||void 0===o||o.call(i)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),gn={};function mn(e,t,r){var n=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(n,"px, ").concat(i,"px, 0) ");if(r){var a=r.rotate,s=r.rotateX,l=r.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),l&&(o+="rotateY(".concat(l,"deg) "))}return"translate3d(0px, 0px, 0) scale(1, 1)"===(o+="scale(".concat(e.x.scale,", ").concat(e.y.scale,")"))?"none":o}function _n(e){return[e("x"),e("y")]}var yn=["","X","Y","Z"],wn=["transformPerspective","x","y","z"];function bn(e,t){return wn.indexOf(e)-wn.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return yn.forEach(function(t){return wn.push(e+t)})});var xn=new Set(wn);function Cn(e){return xn.has(e)}var Sn=new Set(["originX","originY","originZ"]);function En(e){return Sn.has(e)}var Mn=function(e,t){return e.depth-t.depth},kn=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Qt(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){er(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Mn),this.isDirty=!1,this.children.forEach(e)},e}();function Ln(e){var t,r=ir(e)?e.get():e;return t=r,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?r.toValue():r}var Rn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function On(e){var t=e.attachResizeListener,r=e.defaultParent,n=e.measureScroll,i=e.resetTransform;return function(){function e(e,t,n){var i=this;void 0===t&&(t={}),void 0===n&&(n=null==r?void 0:r()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(In),i.nodes.forEach(zn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?c(c([],l(n.path),!1),[n],!1):[],this.parent=n,this.depth=n?n.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new kn)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new tr),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this.eventHandlers.get(e);null==n||n.notify.apply(n,c([],l(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,r){var n,i=this;if(void 0===r&&(r=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,s=a.layoutId,l=a.layout,c=a.visualElement;if(c&&!c.getInstance()&&c.mount(e),this.root.nodes.add(this),null===(n=this.parent)||void 0===n||n.children.add(this),this.id&&this.root.potentialNodes.delete(this.id
1),r&&(l||s)&&(this.isLayoutDirty=!0),t){var u,h=function(){return i.root.updateBlockedByResize=!1};t(e,function(){i.root.updateBlockedByResize=!0,clearTimeout(u),u=window.setTimeout(h,250),Rn.hasAnimatedSinceResize&&(Rn.hasAnimatedSinceResize=!1,i.nodes.forEach(jn))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&c&&(s||l)&&this.addEventListener("didUpdate",function(e){var t,r,n,a,s,l=e.delta,u=e.hasLayoutChanged,h=e.hasRelativeTargetChanged,d=e.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var f=null!==(r=null!==(t=i.options.transition)&&void 0!==t?t:c.getDefaultTransition())&&void 0!==r?r:Un,p=c.getProps(),v=p.onLayoutAnimationStart,g=p.onLayoutAnimationComplete,m=!i.targetLayout||!pn(i.targetLayout,d)||h,_=!u&&h;if((null===(n=i.resumeFrom)||void 0===n?void 0:n.instance)||_||u&&(m||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(l,_);var y=o(o({},kr(f,"layout")),{onPlay:v,onComplete:g});c.shouldReduceMotion&&(y.delay=0,y.type=!1),i.startAnimation(y)}else u||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(s=(a=i.options).onExitComplete)||void 0===s||s.call(a));i.targetLayout=d})}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,K.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Hn))},e.prototype.willUpdate=function(e){var t,r,n;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(r=(t=this.options).onExitComplete)||void 0===r||r.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var i=0;i<this.path.length;i++){var o=this.path[i];o.shouldResetTransform=!0,o.updateScroll()}var a=this.options,s=a.layoutId,l=a.layout;if(void 0!==s||l){var c=null===(n=this.options.visualElement)||void 0===n?void 0:n.getProps().transformTemplate;this.prevTransformTemplateValue=null==c?void 0:c(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Dn);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(qn),this.potentialNodes.clear()),this.nodes.forEach(Bn),this.nodes.forEach(An),this.nodes.forEach(Pn),this.clearAllSnapshots(),G.update(),G.preRender(),G.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Tn),this.sharedNodes.forEach(Fn)},e.prototype.scheduleUpdateProjection=function(){Q.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;Q.postRender(function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()})},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));Kn(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++){this.path[t].updateScroll()}var r=this.measure();Kn(r);var n=this.layout;this.layout={measured:r,actual:this.removeElementScroll(r)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==n?void 0:n.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.scroll=n(this.instance))},e.prototype.resetTransform=function(){var e;if(i){var t=this.isLayoutDirty||this.shouldResetTransform,r=this.projectionDelta&&!fn(this.projectionDelta),n=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null==n?void 0:n(this.latestValues,""),a=o!==this.prevTransformTemplateValue;t&&(r||Vr(this.latestValues)||a)&&(i(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),r=this.root.scroll;return r&&(Kr(t.x,r.x),Kr(t.y,r.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};zr(t,e);for(var r=0;r<this.path.length;r++){var n=this.path[r],i=n.scroll,o=n.options;n!==this.root&&i&&o.layoutScroll&&(Kr(t.x,i.x),Kr(t.y,i.y))}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var r={x:{min:0,max:0},y:{min:0,max:0}};zr(r,e);for(var n=0;n<this.path.length;n++){var i=this.path[n];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Zr(r,{x:-i.scroll.x,y:-i.scroll.y}),Vr(i.latestValues)&&Zr(r,i.latestValues)}return Vr(this.latestValues)&&Zr(r,this.latestValues),r},e.prototype.removeTransform=function(e){var t,r={x:{min:0,max:0},y:{min:0,max:0}};zr(r,e);for(var n=0;n<this.path.length;n++){var i=this.path[n];if(i.instance&&Vr(i.latestValues)){Fr(i.latestValues)&&i.updateSnapshot();var o=hn();zr(o,i.measure()),un(r,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,o)}}return Vr(this.latestValues)&&un(r,this.latestValues),r},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=o(o(o({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){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},e.prototype.resolveTargetDelta=function(){var e,t,r,n,i=this.options,o=i.layout,a=i.layoutId;this.layout&&(o||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},on(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),zr(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,r=this.relativeTarget,n=this.relativeParent.target,rn(t.x,r.x,n.x),rn(t.y,r.y,n.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):zr(this.target,this.layout.actual),Yr(this.target,this.targetDelta)):zr(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},on(this.relativeTargetOrigin,this.target,this.relativeParent.target),zr(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Vr(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,r=t.layout,n=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(r||n)){var i=this.getLead();zr(this.layoutCorrected,this.layout.actual),function(e,t,r,n){var i,o;void 0===n&&(n=!1);var a=r.length;if(a){var s,l;t.x=t.y=1;for(var c=0;c<a;c++)l=(s=r[c]).projectionDelta,"contents"!==(null===(o=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===o?void 0:o.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Zr(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Yr(e,l)),n&&Vr(s.latestValues)&&Zr(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var o=i.target;if(o){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var a=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;tn(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=mn(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,r,n;void 0===e&&(e=!0),null===(r=(t=this.options).scheduleRender)||void 0===r||r.call(t),e&&(null===(n=this.getStack())||void 0===n||n.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var r,n=this;void 0===t&&(t=!1);var i=this.snapshot,a=(null==i?void 0:i.latestValues)||{},s=o({},this.latestValues),l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var c={x:{min:0,max:0},y:{min:0,max:0}}
1,u=null==i?void 0:i.isShared,h=((null===(r=this.getStack())||void 0===r?void 0:r.members.length)||0)<=1,d=Boolean(u&&!h&&!0===this.options.crossfade&&!this.path.some(Nn));this.animationProgress=0,this.mixTargetDelta=function(t){var r,i,o,f,p,v=t/1e3;Vn(l.x,e.x,v),Vn(l.y,e.y,v),n.setTargetDelta(l),n.relativeTarget&&n.relativeTargetOrigin&&n.layout&&(null===(r=n.relativeParent)||void 0===r?void 0:r.layout)&&(on(c,n.layout.actual,n.relativeParent.layout.actual),i=n.relativeTarget,o=n.relativeTargetOrigin,f=c,p=v,Wn(i.x,o.x,f.x,p),Wn(i.y,o.y,f.y,p)),u&&(n.animationValues=s,function(e,t,r,n,i,o){var a,s,l,c;i?(e.opacity=he(0,null!==(a=r.opacity)&&void 0!==a?a:1,Dr(n)),e.opacityExit=he(null!==(s=t.opacity)&&void 0!==s?s:1,0,Br(n))):o&&(e.opacity=he(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=r.opacity)&&void 0!==c?c:1,n));for(var u=0;u<Or;u++){var h="border".concat(Rr[u],"Radius"),d=Tr(t,h),f=Tr(r,h);void 0===d&&void 0===f||(d||(d=0),f||(f=0),0===d||0===f||Pr(d)===Pr(f)?(e[h]=Math.max(he(Ar(d),Ar(f),n),0),(Ce.test(f)||Ce.test(d))&&(e[h]+="%")):e[h]=f)}(t.rotate||r.rotate)&&(e.rotate=he(t.rotate||0,r.rotate||0,n))}(s,a,n.latestValues,v,d,h)),n.root.scheduleUpdateProjection(),n.scheduleRender(),n.animationProgress=v},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,r,n=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(r=this.resumingFrom.currentAnimation)||void 0===r||r.stop()),this.pendingAnimation&&(K.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(function(){Rn.hasAnimatedSinceResize=!0,n.currentAnimation=function(e,t,r){void 0===r&&(r={});
1var n=ir(e)?e:nr(e);return Lr("",n,t,r),{stop:function(){return n.stop()},isAnimating:function(){return n.isAnimating()}}}(0,1e3,o(o({},e),{onUpdate:function(t){var r;n.mixTargetDelta(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),n.completeAnimation()}})),n.resumingFrom&&(n.resumingFrom.currentAnimation=n.currentAnimation),n.pendingAnimation=void 0})},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,r=e.target,n=e.layout,i=e.latestValues;t&&r&&n&&(zr(t,r),Zr(t,i),tn(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var r,n,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new vn),this.sharedNodes.get(e).add(t),t.promote({transition:null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.transition,preserveFollowOpacity:null===(i=null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(n,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,r=t.needsReset,n=t.transition,i=t.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,i),r&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,r={},n=0;n<yn.length;n++){var i="rotate"+yn[n];e.getStaticValue(i)&&(t=!0,r[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null==e||e.syncRender(),r)e.setStaticValue(i,r[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,r,n,i,o,a;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Ln(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var u={};return this.options.layoutId&&(u.opacity=null!==(r=this.latestValues.opacity)&&void 0!==r?r:1,u.pointerEvents=Ln(e.pointerEvents)||""),this.hasProjected&&!Vr(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var h=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=mn(this.projectionDeltaWithTransform,this.treeScale,h),l&&(s.transform=l(h,s.transform));var d=this.projectionDelta,f=d.x,p=d.y;for(var v in s.transformOrigin="".concat(100*f.origin,"% ").concat(100*p.origin,"% 0"),c.animationValues?s.opacity=c===this?null!==(i=null!==(n=h.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:s.opacity=c===this?null!==(o=h.opacity)&&void 0!==o?o:"":null!==(a=h.opacityExit)&&void 0!==a?a:0,gn)if(void 0!==h[v]){var g=gn[v],m=g.correct,_=g.applyTo,y=m(h[v],c);if(_)for(var w=_.length,b=0;b<w;b++)s[_[b]]=y;else s[v]=y}return this.options.layoutId&&(s.pointerEvents=c===this?Ln(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0}
1,e.prototype.resetTree=function(){this.root.nodes.forEach(function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(Dn),this.root.sharedNodes.clear()},e}()}function An(e){e.updateLayout()}function Pn(e){var t,r,n,i,o=null!==(r=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==r?r:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,l=a.measured;"size"===e.options.animationType?_n(function(e){var t=o.isShared?o.measured[e]:o.layout[e],r=Jr(t);t.min=s[e].min,t.max=t.min+r}):"position"===e.options.animationType&&_n(function(e){var t=o.isShared?o.measured[e]:o.layout[e],r=Jr(s[e]);t.max=t.min+r});var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};tn(c,s,o.layout);var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o.isShared?tn(u,e.applyTransform(l,!0),o.measured):tn(u,s,o.layout);var h=!fn(c),d=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var f=e.relativeParent,p=f.snapshot,v=f.layout;if(p&&v){var g={x:{min:0,max:0},y:{min:0,max:0}};on(g,o.layout,p.layout);var m={x:{min:0,max:0},y:{min:0,max:0}};on(m,s,v.actual),pn(g,m)||(d=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:u,layoutDelta:c,hasLayoutChanged:h,hasRelativeTargetChanged:d})}else e.isLead()&&(null===(i=(n=e.options).onExitComplete)||void 0===i||i.call(n));e.options.transition=void 0}function Tn(e){e.clearSnapshot()}function Dn(e){e.clearMeasurements()}function Bn(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function jn(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function In(e){e.resolveTargetDelta()}function zn(e){e.calcProjection()}function Hn(e){e.resetRotation()}function Fn(e){e.removeLeadSnapshot()}function Vn(e,t,r){e.translate=he(t.translate,0,r),e.scale=he(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Wn(e,t,r,n){e.min=he(t.min,r.min,n),e.max=he(t.max,r.max,n)}function Nn(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Un={duration:.45,ease:[.4,0,.1,1]};function qn(e,t){for(var r=e.root,n=e.path.length-1;n>=0;n--)if(Boolean(e.path[n].instance)){r=e.path[n];break}var i=(r&&r!==e.root?r.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function Yn(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Kn(e){Yn(e.x),Yn(e.y)}var Gn=1;var $n=(0,u.createContext)({}),Xn=(0,u.createContext)({});var Zn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,r=e.props;t&&t.setProps(r)},t.prototype.render=function(){return this.props.children},t}(u.Component);function Jn(e){var t=e.preloadedFeatures,r=e.createVisualElement,n=e.projectionNodeConstructor,i=e.useRender,a=e.useVisualState,s=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?f.projectionNodeConstructor=e[t]:f[t].Component=e[t])}(t),(0,u.forwardRef)(function(e,l){var c=function(e){var t,r=e.layoutId,n=null===(t=(0,u.useContext)($n))||void 0===t?void 0:t.id;return n&&void 0!==r?n+"-"+r:r}(e);e=o(o({},e),{layoutId:c});var d=(0,u.useContext)(_),p=null,w=D(e),x=d.isStatic?void 0:j(function(){if(Rn.hasEverUpdated)return Gn++}),C=a(e,d.isStatic);return!d.isStatic&&b&&(w.visualElement=M(s,C,o(o({},d),e),r),function(e,t,r,n){var i,o=t.layoutId,a=t.layout,s=t.drag,l=t.dragConstraints,c=t.layoutScroll,h=(0,u.useContext)(Xn);n&&r&&!(null==r?void 0:r.projection)&&(r.projection=new n(e,r.getLatestValues(),null===(i=r.parent)||void 0===i?void 0:i.projection),r.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:Boolean(s)||l&&k(l),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof a?a:"both",initialPromotionConfig:h,layoutScroll:c}))}(x,e,w.visualElement,n||f.projectionNodeConstructor),p=function(e,t,r){var n=[],i=(0,u.useContext)(v);if(!t)return null;"production"!==h&&r&&i.strict;for(var a=0;a<m;a++){var s=g[a],l=f[s],c=l.isEnabled,d=l.Component;c(e)&&d&&n.push(u.createElement(d,o({key:s},e,{visualElement:t})))}return n}(e,w.visualElement,t)),u.createElement(Zn,{visualElement:w.visualElement,props:o(o({},d),e)},p,u.createElement(y.Provider,{value:w},i(s,e,x,function(e,t,r){return(0,u.useCallback)(function(n){var i;n&&(null===(i=e.mount)||void 0===i||i.call(e,n)),t&&(n?t.mount(n):t.unmount()),r&&("function"==typeof r?r(n):k(r)&&(r.current=n))},[t])}(C,w.visualElement,l),C,d.isStatic,w.visualElement)))})}function Qn(e){function t(t,r){return void 0===r&&(r={}),Jn(e(t,r))}if("undefined"==typeof Proxy)return t;var r=new Map;return new Proxy(t,{get:function(e,n){return r.has(n)||r.set(n,t(n)),r.get(n)}})}var ei=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function ti(e){return"string"==typeof e&&!e.includes("-")&&!!(ei.indexOf(e)>-1||/[A-Z]/.test(e))}function ri(e,t){var r=t.layout,n=t.layoutId;return Cn(e)||En(e)||(r||void 0!==n)&&(!!gn[e]||"opacity"===e)}var ni={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function ii(e){return e.startsWith("--")}var oi=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function ai(e,t,r,n){var i,o=e.style,a=e.vars,s=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,h=!1,d=!0;for(var f in t){var p=t[f];if(ii(f))a[f]=p;else{var v=gr[f],g=oi(p,v);if(Cn(f)){if(u=!0,s[f]=g,l.push(f),!d)continue;p!==(null!==(i=v.default)&&void 0!==i?i:0)&&(d=!1)}else En(f)?(c[f]=g,h=!0):o[f]=g}}u?o.transform=function(e,t,r,n){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,c=void 0===l||l,u="";o.sort(bn);for(var h=!1,d=o.length,f=0;f<d;f++){var p=o[f];u+="".concat(ni[p]||p,"(").concat(i[p],") "),"z"===p&&(h=!0)}return!h&&s?u+="translateZ(0)":u=u.trim(),n?u=n(i,r?"":u):c&&r&&(u="none"),u}(e,r,d,n):n?o.transform=n({},""):!t.transform&&o.transform&&(o.transform="none"),h&&(o.transformOrigin=function(e){var t=e.originX,r=void 0===t?"50%":t,n=e.originY,i=void 0===n?"50%":n,o=e.originZ,a=void 0===o?0:o;return"".concat(r," ").concat(i," ").concat(a)}(c))}var si=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function li(e,t,r){for(var n in t)ir(t[n])||ri(n,r)||(e[n]=t[n])}function ci(e,t,r){var n={};return li(n,e.style||{},e),Object.assign(n,function(e,t,r){var n=e.transformTemplate;return(0,u.useMemo)(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};ai(e,t,{enableHardwareAcceleration:!r},n);var i=e.style;return o(o({},e.vars),i)},[t])}(e,t,r)),e.transformValues&&(n=e.transformValues(n)),n}function ui(e,t,r){var n={},i=ci(e,t,r);return Boolean(e.drag)&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),n.style=i,n}var hi=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function di(e){return hi.has(e)}var fi,pi=function(e){return!di(e)};try{(fi=r(8218).A)&&(pi=function(e){return e.startsWith("on")?!di(e):fi(e)})}catch(e){}function vi(e,t,r){return"string"==typeof e?e:Se.transform(t+r*e)}var gi={offset:"stroke-dashoffset",array:"stroke-dasharray"},mi={offset:"strokeDashoffset",array:"strokeDasharray"};function _i(e,t,r,n){var i=t.attrX,o=t.attrY,s=t.originX,l=t.originY,c=t.pathLength,u=t.pathSpacing,h=void 0===u?1:u,d=t.pathOffset,f=void 0===d?0:d;ai(e,a(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),r,n),e.attrs=e.style,e.style={};var p=e.attrs,v=e.style,g=e.dimensions;p.transform&&(g&&(v.transform=p.transform),delete p.transform),g&&(void 0!==s||void 0!==l||v.transform)&&(v.transformOrigin=function(e,t,r){var n=vi(t,e.x,e.width),i=vi(r,e.y,e.height);return"".concat(n," ").concat(i)}(g,void 0!==s?s:.5,void 0!==l?l:.5)),void 0!==i&&(p.x=i),void 0!==o&&(p.y=o),void 0!==c&&function(e,t,r,n,i){void 0===r&&(r=1),void 0===n&&(n=0),void 0===i&&(i=!0),e.pathLength=1;var o=i?gi:mi;e[o.offset]=Se.transform(-n);var a=Se.transform(t),s=Se.transform(r);e[o.array]="".concat(a," ").concat(s)}(p,c,h,f,!1)}var yi=function(){return o(o({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function wi(e,t){var r=(0,u.useMemo)(function(){var r=yi();return _i(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),o(o({},r.attrs),{style:o({},r.style)}
1)},[t]);if(e.style){var n={};li(n,e.style,e),r.style=o(o({},n),r.style)}return r}function bi(e){void 0===e&&(e=!1);return function(t,r,n,i,a,s){var l=a.latestValues,c=(ti(t)?wi:ui)(r,l,s),h=function(e,t,r){var n={};for(var i in e)(pi(i)||!0===r&&di(i)||!t&&!di(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),d=o(o(o({},h),c),{ref:i});return n&&(d["data-projection-id"]=n),(0,u.createElement)(t,d)}}var xi=/([a-z])([A-Z])/g,Ci=function(e){return e.replace(xi,"$1-$2").toLowerCase()};function Si(e,t,r,n){var i=t.style,o=t.vars;for(var a in Object.assign(e.style,i,n&&n.getProjectionStyles(r)),o)e.style.setProperty(a,o[a])}var Ei=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Mi(e,t,r,n){for(var i in Si(e,t,void 0,n),t.attrs)e.setAttribute(Ei.has(i)?i:Ci(i),t.attrs[i])}function ki(e){var t=e.style,r={};for(var n in t)(ir(t[n])||ri(n,e))&&(r[n]=t[n]);return r}function Li(e){var t=ki(e);for(var r in e){if(ir(e[r]))t["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]}return t}function Ri(e){return"object"==typeof e&&"function"==typeof e.start}function Oi(e,t,r,n){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:Pi(t,r,n,i),renderState:o()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var Ai=function(e){return function(t,r){var n=(0,u.useContext)(y),i=(0,u.useContext)(w);return r?Oi(e,t,n,i):j(function(){return Oi(e,t,n,i)})}};function Pi(e,t,r,n){var i={},o=!1===(null==r?void 0:r.initial),s=n(e);for(var l in s)i[l]=Ln(s[l]);var c=e.initial,u=e.animate,h=P(e),d=T(e);t&&d&&!h&&!1!==e.inherit&&(null!=c||(c=t.initial),null!=u||(u=t.animate));var f=o||!1===c,p=f?u:c;p&&"boolean"!=typeof p&&!Ri(p)&&(Array.isArray(p)?p:[p]).forEach(function(t){var r=O(e,t);if(r){var n=r.transitionEnd;r.transition;var o=a(r,["transitionEnd","transition"]);for(var s in o){var l=o[s];if(Array.isArray(l))l=l[f?l.length-1:0];null!==l&&(i[s]=l)}for(var s in n)i[s]=n[s]}});return i}var Ti,Di={useVisualState:Ai({scrapeMotionValuesFromProps:Li,createRenderState:yi,onMount:function(e,t,r){var n=r.renderState,i=r.latestValues;try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}_i(n,i,{enableHardwareAcceleration:!1},e.transformTemplate),Mi(t,n)}})},Bi={useVisualState:Ai({scrapeMotionValuesFromProps:ki,createRenderState:si})};function ji(e,t,r,n,i){var a=t.forwardMotionProps,s=void 0!==a&&a,l=ti(e)?Di:Bi;return o(o({},l),{preloadedFeatures:r,useRender:bi(s),createVisualElement:n,projectionNodeConstructor:i,Component:e})}function Ii(e,t,r,n){return void 0===n&&(n={passive:!0}),e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r)}}function zi(e,t,r,n){(0,u.useEffect)(function(){var i=e.current;if(r&&i)return Ii(i,t,r,n)},[e,t,r,n])}function Hi(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Fi(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(Ti||(Ti={}));var Vi={pageX:0,pageY:0};function Wi(e,t){void 0===t&&(t="page");var r=e.touches[0]||e.changedTouches[0]||Vi;return{x:r[t+"X"],y:r[t+"Y"]}}function Ni(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Ui(e,t){return void 0===t&&(t="page"),{point:Fi(e)?Wi(e,t):Ni(e,t)}}var qi=function(e,t){void 0===t&&(t=!1);var r,n=function(t){return e(t,Ui(t))};return t?(r=n,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&r(e)}):n},Yi={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Ki={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Gi(e){return b&&null===window.onpointerdown?e:b&&null===window.ontouchstart?Ki[e]:b&&null===window.onmousedown?Yi[e]:e}function $i(e,t,r,n){return Ii(e,Gi(t),qi(r,"pointerdown"===t),n)}function Xi(e,t,r,n){return zi(e,Gi(t),r&&qi(r,"pointerdown"===t),n)}function Zi(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Ji=Zi("dragHorizontal"),Qi=Zi("dragVertical");function eo(e){var t=!1;if("y"===e)t=Qi();else if("x"===e)t=Ji();else{var r=Ji(),n=Qi();
1r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function to(){var e=eo(!0);return!e||(e(),!1)}function ro(e,t,r){return function(n,i){var o;Hi(n)&&!to()&&(null===(o=e.animationState)||void 0===o||o.setActive(Ti.Hover,t),null==r||r(n,i))}}var no=function(e,t){return!!t&&(e===t||no(e,t.parentElement))};function io(e){return(0,u.useEffect)(function(){return function(){return e()}},[])}var oo=new Set;var ao=new WeakMap,so=new WeakMap,lo=function(e){var t;null===(t=ao.get(e.target))||void 0===t||t(e)},co=function(e){e.forEach(lo)};function uo(e,t,r){var n=function(e){var t=e.root,r=a(e,["root"]),n=t||document;so.has(n)||so.set(n,{});var i=so.get(n),s=JSON.stringify(r);return i[s]||(i[s]=new IntersectionObserver(co,o({root:t},r))),i[s]}(t);return ao.set(e,r),n.observe(e),function(){ao.delete(e),n.unobserve(e)}}var ho={some:0,all:1};function fo(e,t,r,n){var i=n.root,o=n.margin,a=n.amount,s=void 0===a?"some":a,l=n.once;(0,u.useEffect)(function(){if(e){var n={root:null==i?void 0:i.current,rootMargin:o,threshold:"number"==typeof s?s:ho[s]};return uo(r.getInstance(),n,function(e){var n,i=e.isIntersecting;if(t.isInView!==i&&(t.isInView=i,!l||i||!t.hasEnteredView)){i&&(t.hasEnteredView=!0),null===(n=r.animationState)||void 0===n||n.setActive(Ti.InView,i);var o=r.getProps(),a=i?o.onViewportEnter:o.onViewportLeave;null==a||a(e)}})}},[e,i,o,s])}function po(e,t,r,n){var i=n.fallback,o=void 0===i||i;(0,u.useEffect)(function(){var n,i;e&&o&&("production"!==h&&(n="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||oo.has(n)||(console.warn(n),i&&console.warn(i),oo.add(n))),requestAnimationFrame(function(){var e;t.hasEnteredView=!0;var n=r.getProps().onViewportEnter;null==n||n(null),null===(e=r.animationState)||void 0===e||e.setActive(Ti.InView,!0)}))},[e])}var vo=function(e){return function(t){return e(t),null}},go={inView:vo(function(e){var t=e.visualElement,r=e.whileInView,n=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,a=void 0===o?{}:o,s=(0,u.useRef)({hasEnteredView:!1,isInView:!1}),l=Boolean(r||n||i);a.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?po:fo)(l,s.current,t,a)}),tap:vo(function(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,i=e.whileTap,o=e.visualElement,a=t||r||n||i,s=(0,u.useRef)(!1),l=(0,u.useRef)(null),c={passive:!(r||t||n||v)};function h(){var e;null===(e=l.current)||void 0===e||e.call(l),l.current=null}function d(){var e;return h(),s.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(Ti.Tap,!1),!to()}function f(e,r){d()&&(no(o.getInstance(),e.target)?null==t||t(e,r):null==n||n(e,r))}function p(e,t){d()&&(null==n||n(e,t))}function v(e,t){var n;h(),s.current||(s.current=!0,l.current=rt($i(window,"pointerup",f,c),$i(window,"pointercancel",p,c)),null===(n=o.animationState)||void 0===n||n.setActive(Ti.Tap,!0),null==r||r(e,t))}Xi(o,"pointerdown",a?v:void 0,c),io(h)}),focus:vo(function(e){var t=e.whileFocus,r=e.visualElement;zi(r,"focus",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(Ti.Focus,!0)}:void 0),zi(r,"blur",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(Ti.Focus,!1)}:void 0)}),hover:vo(function(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,i=e.visualElement;Xi(i,"pointerenter",t||n?ro(i,!0,t):void 0,{passive:!t}),Xi(i,"pointerleave",r||n?ro(i,!1,r):void 0,{passive:!r})})},mo=0,_o=function(){return mo++},yo=function(){return j(_o)};function wo(){var e=(0,u.useContext)(w);if(null===e)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,i=yo();(0,u.useEffect)(function(){return n(i)},[]);return!t&&r?[!1,function(){return null==r?void 0:r(i)}]:[!0]}function bo(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}var xo=function(e){return/^\-?\d*\.?\d+$/.test(e)},Co=function(e){return/^0[^.\s]+$/.test(e)},So=function(e){return function(t){return t.test(e)}},Eo=[_e,Se,Ce,xe,Me,Ee,{test:function(e){return"auto"===e},parse:function(e){return e}}],Mo=function(e){return Eo.find(So(e))},ko=c(c([],l(Eo),!1),[Be,We],!1),Lo=function(e){return ko.find(So(e))};function Ro(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,nr(r))}function Oo(e,t){var r=A(e,t),n=r?e.makeTargetAnimatable(r,!1):{},i=n.transitionEnd,s=void 0===i?{}:i;n.transition;var l=a(n,["transitionEnd","transition"]);for(var c in l=o(o({},l),s)){Ro(e,c,br(l[c]))}}function Ao(e,t,r){var n,i,o,a,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],h=t[u],d=null;Array.isArray(h)&&(d=h[0]),null===d&&(d=null!==(i=null!==(n=r[u])&&void 0!==n?n:e.readValue(u))&&void 0!==i?i:t[u]),null!=d&&("string"==typeof d&&(xo(d)||Co(d))?d=parseFloat(d):!Lo(d)&&We.test(h)&&(d=yr(u,h)),e.addValue(u,nr(d)),null!==(o=(a=r)[u])&&void 0!==o||(a[u]=d),e.setBaseTarget(u,d))}}function Po(e,t){if(t)return(t[e]||t.default||t).from}function To(e,t,r){var n,i,o={};for(var a in e)o[a]=null!==(n=Po(a,t))&&void 0!==n?n:null===(i=r.getValue(a))||void 0===i?void 0:i.get();return o}function Do(e,t,r){var n;void 0===r&&(r={});var i=A(e,t,r.custom),a=(i||{}).transition,s=void 0===a?e.getDefaultTransition()||{}:a;r.transitionOverride&&(s=r.transitionOverride);var c=i?function(){return Bo(e,i,r)}:function(){return Promise.resolve()},u=(null===(n=e.variantChildren)||void 0===n?void 0:n.size)?function(n){void 0===n&&(n=0);var i=s.delayChildren,a=void 0===i?0:i,l=s.staggerChildren,c=s.staggerDirection;return function(e,t,r,n,i,a){void 0===r&&(r=0);void 0===n&&(n=0);void 0===i&&(i=1);var s=[],l=(e.variantChildren.size-1)*n,c=1===i?function(e){return void 0===e&&(e=0),e*n}:function(e){return void 0===e&&(e=0),l-e*n};
1return Array.from(e.variantChildren).sort(jo).forEach(function(e,n){s.push(Do(e,t,o(o({},a),{delay:r+c(n)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(s)}(e,t,a+n,l,c,r)}:function(){return Promise.resolve()},h=s.when;if(h){var d=l("beforeChildren"===h?[c,u]:[u,c],2),f=d[0],p=d[1];return f().then(p)}return Promise.all([c(),u(r.delay)])}function Bo(e,t,r){var n,i=void 0===r?{}:r,s=i.delay,l=void 0===s?0:s,c=i.transitionOverride,u=i.type,h=e.makeTargetAnimatable(t),d=h.transition,f=void 0===d?e.getDefaultTransition():d,p=h.transitionEnd,v=a(h,["transition","transitionEnd"]);c&&(f=c);var g=[],m=u&&(null===(n=e.animationState)||void 0===n?void 0:n.getState()[u]);for(var _ in v){var y=e.getValue(_),w=v[_];if(!(!y||void 0===w||m&&Io(m,_))){var b=o({delay:l},f);e.shouldReduceMotion&&Cn(_)&&(b=o(o({},b),{type:!1,delay:0}));var x=Lr(_,y,w,b);g.push(x)}}return Promise.all(g).then(function(){p&&Oo(e,p)})}function jo(e,t){return e.sortNodePosition(t)}function Io(e,t){var r=e.protectedKeys,n=e.needsAnimating,i=r.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,i}var zo=[Ti.Animate,Ti.InView,Ti.Focus,Ti.Hover,Ti.Tap,Ti.Drag,Ti.Exit],Ho=c([],l(zo),!1).reverse(),Fo=zo.length;function Vo(e){return function(t){return Promise.all(t.map(function(t){var r=t.animation,n=t.options;return function(e,t,r){var n;if(void 0===r&&(r={}),e.notifyAnimationStart(t),Array.isArray(t)){var i=t.map(function(t){return Do(e,t,r)});n=Promise.all(i)}else if("string"==typeof t)n=Do(e,t,r);else{var o="function"==typeof t?A(e,t,r.custom):t;n=Bo(e,o,r)}return n.then(function(){return e.notifyAnimationComplete(t)})}(e,r,n)}))}}function Wo(e){var t,r=Vo(e),n=((t={})[Ti.Animate]=No(!0),t[Ti.InView]=No(),t[Ti.Hover]=No(),t[Ti.Tap]=No(),t[Ti.Drag]=No(),t[Ti.Focus]=No(),t[Ti.Exit]=No(),t),i={},s=!0,u=function(t,r){var n=A(e,r);if(n){n.transition;var i=n.transitionEnd,s=a(n,["transition","transitionEnd"]);t=o(o(o({},t),s),i)}return t};function h(t,a){for(var h,d=e.getProps(),f=e.getVariantContext(!0)||{},p=[],v=new Set,g={},m=1/0,_=function(r){var i=Ho[r],_=n[i],y=null!==(h=d[i])&&void 0!==h?h:f[i],w=R(y),b=i===a?_.isActive:null;!1===b&&(m=r);var x=y===f[i]&&y!==d[i]&&w;if(x&&s&&e.manuallyAnimateOnMount&&(x=!1),_.protectedKeys=o({},g),!_.isActive&&null===b||!y&&!_.prevProp||Ri(y)||"boolean"==typeof y)return"continue";var C=function(e,t){if("string"==typeof t)return t!==e;if(L(t))return!bo(t,e);return!1}(_.prevProp,y),S=C||i===a&&_.isActive&&!x&&w||r>m&&w,E=Array.isArray(y)?y:[y],M=E.reduce(u,{});!1===b&&(M={});var k=_.prevResolvedValues,O=void 0===k?{}:k,A=o(o({},O),M),P=function(e){S=!0,v.delete(e),_.needsAnimating[e]=!0};for(var T in A){var D=M[T],B=O[T];g.hasOwnProperty(T)||(D!==B?cr(D)&&cr(B)?!bo(D,B)||C?P(T):_.protectedKeys[T]=!0:void 0!==D?P(T):v.add(T):void 0!==D&&v.has(T)?P(T):_.protectedKeys[T]=!0)}_.prevProp=y,_.prevResolvedValues=M,_.isActive&&(g=o(o({},g),M)),s&&e.blockInitialAnimation&&(S=!1),S&&!x&&p.push.apply(p,c([],l(E.map(function(e){return{animation:e,options:o({type:i},t)}})),!1))},y=0;y<Fo;y++)_(y);if(i=o({},g),v.size){var w={};v.forEach(function(t){var r=e.getBaseTarget(t);void 0!==r&&(w[t]=r)}),p.push({animation:w})}var b=Boolean(p.length);return s&&!1===d.initial&&!e.manuallyAnimateOnMount&&(b=!1),s=!1,b?r(p):Promise.resolve()}return{isAnimated:function(e){return void 0!==i[e]},animateChanges:h,setActive:function(t,r,i){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;var a=h(i,t);for(var s in n)n[s].protectedKeys={};return a},setAnimateFunction:function(t){r=t(e)},getState:function(){return n}}}function No(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Uo={animation:vo(function(e){var t=e.visualElement,r=e.animate;t.animationState||(t.animationState=Wo(t)),Ri(r)&&(0,u.useEffect)(function(){return r.subscribe(t)},[r])}),exit:vo(function(e){var t=e.custom,r=e.visualElement,n=l(wo(),2),i=n[0],o=n[1],a=(0,u.useContext)(w);(0,u.useEffect)(function(){var e,n;r.isPresent=i;var s=null===(e=r.animationState)||void 0===e?void 0:e.setActive(Ti.Exit,!i,{custom:null!==(n=null==a?void 0:a.custom)&&void 0!==n?n:t});!i&&(null==s||s.then(o))},[i])})},qo=function(){function e(e,t,r){var n=this,i=(void 0===r?{}:r).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(n.lastMoveEvent&&n.lastMoveEventInfo){var e=Go(n.lastMoveEventInfo,n.history),t=null!==n.startEvent,r=qt(e.offset,{x:0,y:0})>=3;if(t||r){var i=e.point,a=J().timestamp;n.history.push(o(o({},i),{timestamp:a}));var s=n.handlers,l=s.onStart,c=s.onMove;t||(l&&l(n.lastMoveEvent,e),n.startEvent=n.lastMoveEvent),c&&c(n.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){n.lastMoveEvent=e,n.lastMoveEventInfo=Yo(t,n.transformPagePoint),Hi(e)&&0===e.buttons?n.handlePointerUp(e,t):Q.update(n.updatePoint,!0)},this.handlePointerUp=function(e,t){n.end();var r=n.handlers,i=r.onEnd,o=r.onSessionEnd,a=Go(Yo(t,n.transformPagePoint),n.history);n.startEvent&&i&&i(e,a),o&&o(e,a)},!(Fi(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=Yo(Ui(e),this.transformPagePoint),s=a.point,l=J().timestamp;this.history=[o(o({},s),{timestamp:l})];var c=t.onSessionStart;c&&c(e,Go(a,this.history)),this.removeListeners=rt($i(window,"pointermove",this.handlePointerMove),$i(window,"pointerup",this.handlePointerUp),$i(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),K.update(this.updatePoint)},e}();function Yo(e,t){return t?{point:t(e.point)}:e}function Ko(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Go(e,t){var r=e.point;return{point:r,delta:Ko(r,Xo(t)),offset:Ko(r,$o(t)),velocity:Zo(t,.1)}}function $o(e){return e[0]}function Xo(e){return e[e.length-1]}function Zo(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,i=Xo(e);r>=0&&(n=e[r],!(i.timestamp-n.timestamp>or(t)));)r--;if(!n)return{x:0,y:0};var o=(i.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Jo(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function Qo(e,t){var r,n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=(r=l([i,n],2))[0],i=r[1]),{min:n,max:i}}var ea=.35;function ta(e,t,r){return{min:ra(e,t),max:ra(e,r)}}function ra(e,t){var r;return"number"==typeof e?e:null!==(r=e[t])&&void 0!==r?r:0}function na(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function ia(e,t){return na(function(e,t){if(!t)return e;var r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}var oa=new WeakMap,aa=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var r=this,n=(void 0===t?{}:t).snapToCursor,i=void 0!==n&&n;if(!1!==this.visualElement.isPresent){this.panSession=new qo(e,{onSessionStart:function(e){r.stopAnimation(),i&&r.snapToCursor(Ui(e,"page").point)},onStart:function(e,t){var n,i=r.getProps(),o=i.drag,a=i.dragPropagation,s=i.onDragStart;(!o||a||(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=eo(o),r.openGlobalLock))&&(r.isDragging=!0,r.currentDirection=null,r.resolve
1Constraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),_n(function(e){var t,n,i=r.getAxisMotionValue(e).get()||0;if(Ce.test(i)){var o=null===(n=null===(t=r.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(o)i=Jr(o)*(parseFloat(i)/100)}r.originPoint[e]=i}),null==s||s(e,t),null===(n=r.visualElement.animationState)||void 0===n||n.setActive(Ti.Drag,!0))},onMove:function(e,t){var n=r.getProps(),i=n.dragPropagation,o=n.dragDirectionLock,a=n.onDirectionLock,s=n.onDrag;if(i||r.openGlobalLock){var l=t.offset;if(o&&null===r.currentDirection)return r.currentDirection=function(e,t){void 0===t&&(t=10);var r=null;Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x");return r}(l),void(null!==r.currentDirection&&(null==a||a(r.currentDirection)));r.updateAxis("x",t.point,l),r.updateAxis("y",t.point,l),r.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return r.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(e,t){var r=this.isDragging;if(this.cancel(),r){var n=t.velocity;this.startAnimation(n);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Ti.Drag,!1)},e.prototype.updateAxis=function(e,t,r){var n=this.getProps().drag;if(r&&sa(e,n,this.currentDirection)){var i,o,a,s,l,c=this.getAxisMotionValue(e),u=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=u,o=this.constraints[e],a=this.elastic[e],s=o.min,l=o.max,void 0!==s&&i<s?i=a?he(s,i,a.min):Math.max(i,s):void 0!==l&&i>l&&(i=a?he(l,i,a.max):Math.min(i,l)),u=i),c.set(u)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),r=t.dragConstraints,n=t.dragElastic,i=(this.visualElement.projection||{}).layout,o=this.constraints;r&&k(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!r||!i)&&function(e,t){var r=t.top,n=t.left,i=t.bottom,o=t.right;return{x:Jo(e.x,n,o),y:Jo(e.y,r,i)}}(i.actual,r),this.elastic=function(e){return void 0===e&&(e=ea),!1===e?e=0:!0===e&&(e=ea),{x:ta(e,"left","right"),y:ta(e,"top","bottom")}}(n),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&_n(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(i.actual[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,r=e.onMeasureDragConstraints;if(!t||!k(t))return!1;var n=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var o=function(e,t,r){var n=ia(e,r),i=t.scroll;return i&&(Kr(n.x,i.x),Kr(n.y,i.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:Qo(e.x,t.x),y:Qo(e.y,t.y)}}(i.layout.actual,o);if(r){var s=r(function(e){var t=e.x,r=e.y;return{top:r.min,right:t.max,bottom:r.max,left:t.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=na(s))}return a},e.prototype.startAnimation=function(e){var t=this,r=this.getProps(),n=r.drag,i=r.dragMomentum,a=r.dragElastic,s=r.dragTransition,l=r.dragSnapToOrigin,c=r.onDragTransitionEnd,u=this.constraints||{},h=_n(function(r){var c;if(sa(r,n,t.currentDirection)){var h=null!==(c=null==u?void 0:u[r])&&void 0!==c?c:{};l&&(h={min:0,max:0});var d=a?200:1e6,f=a?40:1e7,p=o(o({type:"inertia",velocity:i?e[r]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},s),h);return t.startAxisValueAnimation(r,p)}});return Promise.all(h).then(c)},e.prototype.startAxisValueAnimation=function(e,t){return Lr(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;_n(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,r,n="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(e,null!==(r=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==r?r:0)},e.prototype.snapToCursor=function(e){var t=this;_n(function(r){if(sa(r,t.getProps().drag,t.currentDirection)){var n=t.visualElement.projection,i=t.getAxisMotionValue(r);if(n&&n.layout){var o=n.layout.actual[r],a=o.min,s=o.max;i.set(e[r]-he(a,s,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,r=this.getProps(),n=r.drag,i=r.dragConstraints,o=this.visualElement.projection;if(k(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};_n(function(e){var r,n,i,o,s,l=t.getAxisMotionValue(e);if(l){var c=l.get();a[e]=(r={min:c,max:c},n=t.constraints[e],i=.5,o=Jr(r),(s=Jr(n))>o?i=ue(n.min,n.max-o,r.min):o>s&&(i=ue(r.min,r.max-s,n.min)),te(0,1,i))}});var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),_n(function(e){if(sa(e,n,null)){var r=t.getAxisMotionValue(e),i=t.constraints[e],o=i.min,s=i.max;r.set(he(o,s,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;oa.set(this.visualElement,this);var r=$i(this.visualElement.getInstance(),"pointerdown",function(e){var r=t.getProps(),n=r.drag,i=r.dragListener;n&&(void 0===i||i)&&t.start(e)}),n=function(){k(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,o=i.addEventListener("measure",n);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),n();var a=Ii(window,"resize",function(){return t.scalePositionWithinConstraints()});return i.addEventListener("didUpdate",function(e){var r=e.delta,n=e.hasLayoutChanged;t.isDragging&&n&&(_n(function(e){var n=t.getAxisMotionValue(e);n&&(t.originPoint[e]+=r[e].translate,n.set(n.get()+r[e].translate))}),t.visualElement.syncRender())}),function(){a(),r(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,r=void 0!==t&&t,n=e.dragDirectionLock,i=void 0!==n&&n,a=e.dragPropagation,s=void 0!==a&&a,l=e.dragConstraints,c=void 0!==l&&l,u=e.dragElastic,h=void 0===u?ea:u,d=e.dragMomentum,f=void 0===d||d;return o(o({},e),{drag:r,dragDirectionLock:i,dragPropagation:s,dragConstraints:c,dragElastic:h,dragMomentum:f})},e}();function sa(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}var la={pan:vo(function(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,a=t||r||n||i,s=(0,u.useRef)(null),l=(0,u.useContext)(_).transformPagePoint,c={onSessionStart:i,onStart:r,onMove:t,onEnd:function(e,t){s.current=null,n&&n(e,t)}};(0,u.useEffect)(function(){null!==s.current&&s.current.updateHandlers(c)}
1),Xi(o,"pointerdown",a&&function(e){s.current=new qo(e,c,{transformPagePoint:l})}),io(function(){return s.current&&s.current.end()})}),drag:vo(function(e){var t=e.dragControls,r=e.visualElement,n=j(function(){return new aa(r)});(0,u.useEffect)(function(){return t&&t.subscribe(n)},[n,t]),(0,u.useEffect)(function(){return n.addListeners()},[n])})},ca=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];var ua=function(e){var t=e.treeType,r=void 0===t?"":t,n=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,s=e.measureViewportBox,u=e.render,h=e.readValueFromInstance,d=e.removeValueFromRenderState,f=e.sortNodePosition,p=e.scrapeMotionValuesFromProps;return function(e,t){var v=e.parent,g=e.props,m=e.presenceId,_=e.blockInitialAnimation,y=e.visualState,w=e.shouldReduceMotion;void 0===t&&(t={});var b,x,C=!1,S=y.latestValues,E=y.renderState,M=function(){var e=ca.map(function(){return new tr}),t={},r={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){ca.forEach(function(n){var i,o="on"+n,a=e[o];null===(i=t[n])||void 0===i||i.call(t),a&&(t[n]=r[o](a))})}};return e.forEach(function(e,t){r["on"+ca[t]]=function(t){return e.add(t)},r["notify"+ca[t]]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.notify.apply(e,c([],l(t),!1))}}),r}(),k=new Map,L=new Map,O={},A=o({},S);function D(){b&&C&&(B(),u(b,E,g.style,N.projection))}function B(){n(N,E,S,t,g)}function j(){M.notifyUpdate(S)}function I(e,t){var r=t.onChange(function(t){S[e]=t,g.onUpdate&&Q.update(j,!1,!0)}),n=t.onRenderRequest(N.scheduleRender);L.set(e,function(){r(),n()})}var z=p(g);for(var H in z){var F=z[H];void 0!==S[H]&&ir(F)&&F.set(S[H],!1)}var V=P(g),W=T(g),N=o(o({treeType:r,current:null,depth:v?v.depth+1:0,parent:v,children:new Set,presenceId:m,shouldReduceMotion:w,variantChildren:W?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==v?void 0:v.isMounted()),blockInitialAnimation:_,isMounted:function(){return Boolean(b)},mount:function(e){C=!0,b=N.current=e,N.projection&&N.projection.mount(e),W&&v&&!V&&(x=null==v?void 0:v.addVariantChild(N)),k.forEach(function(e,t){return I(t,e)}),null==v||v.children.add(N),N.setProps(g)},unmount:function(){var e;null===(e=N.projection)||void 0===e||e.unmount(),K.update(j),K.render(D),L.forEach(function(e){return e()}),null==x||x(),null==v||v.children.delete(N),M.clearAllListeners(),b=void 0,C=!1},addVariantChild:function(e){var t,r=N.getClosestVariantNode();if(r)return null===(t=r.variantChildren)||void 0===t||t.add(e),function(){return r.variantChildren.delete(e)}},sortNodePosition:function(e){return f&&r===e.treeType?f(N.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return W?N:null==v?void 0:v.getClosestVariantNode()},getLayoutId:function(){return g.layoutId},getInstance:function(){return b},getStaticValue:function(e){return S[e]},setStaticValue:function(e,t){return S[e]=t},getLatestValues:function(){return S},setVisibility:function(e){N.isVisible!==e&&(N.isVisible=e,N.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(N,e,g,t)},measureViewportBox:function(){return s(b,g)},addValue:function(e,t){N.hasValue(e)&&N.removeValue(e),k.set(e,t),S[e]=t.get(),I(e,t)},removeValue:function(e){var t;k.delete(e),null===(t=L.get(e))||void 0===t||t(),L.delete(e),delete S[e],d(e,E)},hasValue:function(e){return k.has(e)},getValue:function(e,t){var r=k.get(e);return void 0===r&&void 0!==t&&(r=nr(t),N.addValue(e,r)),r},forEachValue:function(e){return k.forEach(e)},readValue:function(e){var r;return null!==(r=S[e])&&void 0!==r?r:h(b,e,t)},setBaseTarget:function(e,t){A[e]=t},getBaseTarget:function(e){if(i){var t=i(g,e);if(void 0!==t&&!ir(t))return t}return A[e]}},M),{build:function(){return B(),E},scheduleRender:function(){Q.render(D,!1,!0)},syncRender:D,setProps:function(e){(e.transformTemplate||g.transformTemplate)&&N.scheduleRender(),g=e,M.updatePropListeners(e),O=function(e,t,r){var n;for(var i in t){var o=t[i],a=r[i];if(ir(o))e.addValue(i,o);else if(ir(a))e.addValue(i,nr(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,nr(null!==(n=e.getStaticValue(i))&&void 0!==n?n:o))}for(var i in r)void 0===t[i]&&e.removeValue(i);return t}(N,p(g),O)},getProps:function(){return g},getVariant:function(e){var t;return null===(t=g.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return g.transition},getTransformPagePoint:function(){return g.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==v?void 0:v.getVariantContext();if(!V){var t=(null==v?void 0:v.getVariantContext())||{};return void 0!==g.initial&&(t.initial=g.initial),t}for(var r={},n=0;n<da;n++){var i=ha[n],o=g[i];(R(o)||!1===o)&&(r[i]=o)}return r}});return N}},ha=c(["initial"],l(zo),!1),da=ha.length;function fa(e){return"string"==typeof e&&e.startsWith("var(--")}var pa=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function va(e,t,r){void 0===r&&(r=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var n=l(function(e){var t=pa.exec(e);if(!t)return[,];var r=l(t,3);return[r[1],r[2]]}(e),2),i=n[0],o=n[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a?a.trim():fa(o)?va(o,t,r+1):o}}var ga,ma=new Set(["width","height","top","left","right","bottom","x","y"]),_a=function(e){return ma.has(e)},ya=function(e,t){e.set(t,!1),e.set(t)},wa=function(e){return e===_e||e===Se};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(ga||(ga={}));var ba=function(e,t){return parseFloat(e.split(", ")[t])},xa=function(e,t){return function(r,n){var i=n.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return ba(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?ba(a[1],e):0}},Ca=new Set(["x","y","z"]),Sa=wn.filter(function(e){return!Ca.has(e)});var Ea={width:function(e,t){var r=e.x,n=t.paddingLeft,i=void 0===n?"0":n,o=t.paddingRight,a=void 0===o?"0":o;return r.max-r.min-parseFloat(i)-parseFloat(a)},height:function(e,t){var r=e.y,n=t.paddingTop,i=void 0===n?"0":n,o=t.paddingBottom,a=void 0===o?"0":o;return r.max-r.min-parseFloat(i)-parseFloat(a)},top:function(e,t){var r=t.top;return parseFloat(r)}
1,left:function(e,t){var r=t.left;return parseFloat(r)},bottom:function(e,t){var r=e.y,n=t.top;return parseFloat(n)+(r.max-r.min)},right:function(e,t){var r=e.x,n=t.left;return parseFloat(n)+(r.max-r.min)},x:xa(4,13),y:xa(5,14)},Ma=function(e,t,r,n){void 0===r&&(r={}),void 0===n&&(n={}),t=o({},t),n=o({},n);var i=Object.keys(t).filter(_a),a=[],s=!1,c=[];if(i.forEach(function(i){var o=e.getValue(i);if(e.hasValue(i)){var l,u=r[i],h=Mo(u),d=t[i];if(cr(d)){var f=d.length,v=null===d[0]?1:0;u=d[v],h=Mo(u);for(var g=v;g<f;g++)l?p(Mo(d[g])):(l=Mo(d[g]),p(l===h||wa(h)&&wa(l)))}else l=Mo(d);if(h!==l)if(wa(h)&&wa(l)){var m=o.get();"string"==typeof m&&o.set(parseFloat(m)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&l===Se&&(t[i]=d.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==l?void 0:l.transform)&&(0===u||0===d)?0===u?o.set(l.transform(u)):t[i]=h.transform(d):(s||(a=function(e){var t=[];return Sa.forEach(function(r){var n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),s=!0),c.push(i),n[i]=void 0!==n[i]?n[i]:t[i],ya(o,d))}}),c.length){var u=c.indexOf("height")>=0?window.pageYOffset:null,h=function(e,t,r){var n=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach(function(e){s[e]=Ea[e](n,o)}),t.syncRender();var l=t.measureViewportBox();return r.forEach(function(r){var n=t.getValue(r);ya(n,s[r]),e[r]=Ea[r](l,o)}),e}(t,e,c);return a.length&&a.forEach(function(t){var r=l(t,2),n=r[0],i=r[1];e.getValue(n).set(i)}),e.syncRender(),null!==u&&window.scrollTo({top:u}),{target:h,transitionEnd:n}}return{target:t,transitionEnd:n}};function ka(e,t,r,n){return function(e){return Object.keys(e).some(_a)}(t)?Ma(e,t,r,n):{target:t,transitionEnd:n}}var La=function(e,t,r,n){var i=function(e,t,r){var n,i=a(t,[]),s=e.getInstance();if(!(s instanceof Element))return{target:i,transitionEnd:r};for(var l in r&&(r=o({},r)),e.forEachValue(function(e){var t=e.get();if(fa(t)){var r=va(t,s);r&&e.set(r)}}),i){var c=i[l];if(fa(c)){var u=va(c,s);u&&(i[l]=u,r&&(null!==(n=r[l])&&void 0!==n||(r[l]=c)))}}return{target:i,transitionEnd:r}}(e,t,n);return ka(e,t=i.target,r,n=i.transitionEnd)};var Ra={treeType:"dom",readValueFromInstance:function(e,t){if(Cn(t)){var r=_r(t);return r&&r.default||0}var n,i=(n=e,window.getComputedStyle(n));return(ii(t)?i.getPropertyValue(t):i[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]},measureViewportBox:function(e,t){return ia(e,t.transformPagePoint)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.vars,n=t.style;delete r[e],delete n[e]},makeTargetAnimatable:function(e,t,r,n){var i=r.transformValues;void 0===n&&(n=!0);var s=t.transition,l=t.transitionEnd,c=a(t,["transition","transitionEnd"]),u=To(c,s||{},e);if(i&&(l&&(l=i(l)),c&&(c=i(c)),u&&(u=i(u))),n){Ao(e,c,u);var h=La(e,c,u,l);l=h.transitionEnd,c=h.target}return o({transition:s,transitionEnd:l},c)},scrapeMotionValuesFromProps:ki,build:function(e,t,r,n,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),ai(t,r,n,i.transformTemplate)},render:Si},Oa=ua(Ra),Aa=ua(o(o({},Ra),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return Cn(t)?(null===(r=_r(t))||void 0===r?void 0:r.default)||0:(t=Ei.has(t)?t:Ci(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Li,build:function(e,t,r,n,i){_i(t,r,n,i.transformTemplate)},render:Mi})),Pa=function(e,t){return ti(e)?Aa(t,{enableHardwareAcceleration:!1}):Oa(t,{enableHardwareAcceleration:!0})};function Ta(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Da={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Se.test(e))return e;e=parseFloat(e)}var r=Ta(e,t.target.x),n=Ta(e,t.target.y);return"".concat(r,"% ").concat(n,"%")}},Ba="_$css",ja={correct:function(e,t){var r=t.treeScale,n=t.projectionDelta,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(pa,function(e){return a.push(e),Ba}));var s=We.parse(e);if(s.length>5)return i;var l=We.createTransformer(e),c="number"!=typeof s[0]?1:0,u=n.x.scale*r.x,h=n.y.scale*r.y;s[0+c]/=u,s[1+c]/=h;var d=he(u,h,.5);
1"number"==typeof s[2+c]&&(s[2+c]/=d),"number"==typeof s[3+c]&&(s[3+c]/=d);var f=l(s);if(o){var p=0;f=f.replace(Ba,function(){var e=a[p];return p++,e})}return f}},Ia=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.componentDidMount=function(){var e,t=this,r=this.props,n=r.visualElement,i=r.layoutGroup,a=r.switchLayoutGroup,s=r.layoutId,l=n.projection;e=za,Object.assign(gn,e),l&&((null==i?void 0:i.group)&&i.group.add(l),(null==a?void 0:a.register)&&s&&a.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",function(){t.safeToRemove()}),l.setOptions(o(o({},l.options),{onExitComplete:function(){return t.safeToRemove()}}))),Rn.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,r=this.props,n=r.layoutDependency,i=r.visualElement,o=r.drag,a=r.isPresent,s=i.projection;return s?(s.isPresent=a,o||e.layoutDependency!==n||void 0===n?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||Q.postRender(function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()})),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,r=e.layoutGroup,n=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==r?void 0:r.group)&&r.group.remove(i),(null==n?void 0:n.deregister)&&n.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(u.Component);var za={borderRadius:o(o({},Da),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Da,borderTopRightRadius:Da,borderBottomLeftRadius:Da,borderBottomRightRadius:Da,boxShadow:ja},Ha={measureLayout:function(e){var t=l(wo(),2),r=t[0],n=t[1],i=(0,u.useContext)($n);return u.createElement(Ia,o({},e,{layoutGroup:i,switchLayoutGroup:(0,u.useContext)(Xn),isPresent:r,safeToRemove:n}))}},Fa=On({attachResizeListener:function(e,t){return Ii(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}}}),Va={current:void 0},Wa=On({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Va.current){var e=new Fa(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Va.current=e}return Va.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"}}),Na=o(o(o(o({},Uo),go),la),Ha),Ua=Qn(function(e,t){return ji(e,t,Na,Pa,Wa)});Qn(ji);function qa(){var e=(0,u.useRef)(!1);return x(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Ya=function(e){var t=e.children,r=e.initial,n=e.isPresent,i=e.onExitComplete,o=e.custom,a=e.presenceAffectsLayout,l=j(Ka),c=yo(),h=(0,u.useMemo)(function(){return{id:c,initial:r,isPresent:n,custom:o,onExitComplete:function(e){var t,r;l.set(e,!0);try{for(var n=s(l.values()),o=n.next();!o.done;o=n.next()){if(!o.value)return}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}null==i||i()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}},a?void 0:[n]);return(0,u.useMemo)(function(){l.forEach(function(e,t){return l.set(t,!1)})},[n]),u.useEffect(function(){!n&&!l.size&&(null==i||i())},[n]),u.createElement(w.Provider,{value:h},t)};function Ka(){return new Map}var Ga=function(e){return e.key||""};var $a=function(e){var t=e.children,r=e.custom,n=e.initial,i=void 0===n||n,o=e.onExitComplete,a=e.exitBeforeEnter,s=e.presenceAffectsLayout,d=void 0===s||s,f=l(function(){var e=qa(),t=l((0,u.useState)(0),2),r=t[0],n=t[1],i=(0,u.useCallback)(function(){e.current&&n(r+1)},[r]);return[(0,u.useCallback)(function(){return Q.postRender(i)},[i]),r]}(),1),p=f[0],v=(0,u.useContext)($n).forceRender;v&&(p=v);var g=qa(),m=function(e){var t=[];
1return u.Children.forEach(e,function(e){(0,u.isValidElement)(e)&&t.push(e)}),t}(t),_=m,y=new Set,w=(0,u.useRef)(_),b=(0,u.useRef)(new Map).current,C=(0,u.useRef)(!0);if(x(function(){C.current=!1,function(e,t){e.forEach(function(e){var r=Ga(e);t.set(r,e)})}(m,b),w.current=_}),io(function(){C.current=!0,b.clear(),y.clear()}),C.current)return u.createElement(u.Fragment,null,_.map(function(e){return u.createElement(Ya,{key:Ga(e),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:d},e)}));_=c([],l(_),!1);for(var S=w.current.map(Ga),E=m.map(Ga),M=S.length,k=0;k<M;k++){var L=S[k];-1===E.indexOf(L)&&y.add(L)}return a&&y.size&&(_=[]),y.forEach(function(e){if(-1===E.indexOf(e)){var t=b.get(e);if(t){var n=S.indexOf(e);_.splice(n,0,u.createElement(Ya,{key:Ga(t),isPresent:!1,onExitComplete:function(){b.delete(e),y.delete(e);var t=w.current.findIndex(function(t){return t.key===e});if(w.current.splice(t,1),!y.size){if(w.current=m,!1===g.current)return;p(),o&&o()}},custom:r,presenceAffectsLayout:d},t))}}}),_=_.map(function(e){var t=e.key;return y.has(t)?e:u.createElement(Ya,{key:Ga(e),isPresent:!0,presenceAffectsLayout:d},e)}),"production"!==h&&a&&_.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),u.createElement(u.Fragment,null,y.size?_:_.map(function(e){return(0,u.cloneElement)(e)}))};(0,u.createContext)(null);var Xa=(0,u.createContext)(null);function Za(e,t,r,n){if(!n)return e;var i=e.findIndex(function(e){return e.value===t});if(-1===i)return e;var o=n>0?1:-1,a=e[i+o];if(!a)return e;var s=e[i],c=a.layout,u=he(c.min,c.max,.5);return 1===o&&s.layout.max+r>u||-1===o&&s.layout.min+r<u?function(e,t,r){var n=l(e).slice(0),i=t<0?n.length+t:t;if(i>=0&&i<n.length){var o=r<0?n.length+r:r,a=l(n.splice(t,1),1)[0];n.splice(o,0,a)}return n}(e,i,i+o):e}(0,u.forwardRef)(function(e,t){var r=e.children,n=e.as,i=void 0===n?"ul":n,s=e.axis,l=void 0===s?"y":s,c=e.onReorder,h=e.values,d=a(e,["children","as","axis","onReorder","values"]),f=j(function(){return Ua(i)}),p=[],v=(0,u.useRef)(!1);Boolean(h);var g={axis:l,registerItem:function(e,t){t&&-1===p.findIndex(function(t){return e===t.value})&&(p.push({value:e,layout:t[l]}),p.sort(Qa))},updateOrder:function(e,t,r){if(!v.current){var n=Za(p,e,t,r);p!==n&&(v.current=!0,c(n.map(Ja).filter(function(e){return-1!==h.indexOf(e)})))}}};return(0,u.useEffect)(function(){v.current=!1}),u.createElement(f,o({},d,{ref:t}),u.createElement(Xa.Provider,{value:g},r))});function Ja(e){return e.value}function Qa(e,t){return e.layout.min-t.layout.min}function es(e){var t=j(function(){return nr(e)});if((0,u.useContext)(_).isStatic){var r=l((0,u.useState)(e),2)[1];(0,u.useEffect)(function(){return t.onChange(r)},[])}return t}function ts(e,t){var r=es(t()),n=function(){return r.set(t())};return n(),function(e,t){(0,u.useEffect)(function(){var r=e.map(function(e){return e.onChange(t)});return function(){return r.forEach(function(e){return e()})}})}(e,function(){return Q.update(n,!1,!0)}),r}function rs(e,t,r,n){var i="function"==typeof t?t:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r,n=!Array.isArray(e[0]),i=n?0:-1,a=e[0+i],s=e[1+i],l=e[2+i],c=e[3+i],u=ut(s,l,o({mixer:(r=l[0],function(e){return"object"==typeof e&&e.mix}(r)?r.mix:void 0)},c));return n?u(a):u}(t,r,n);return Array.isArray(e)?ns(e,i):ns([e],function(e){var t=l(e,1)[0];return i(t)})}function ns(e,t){var r=j(function(){return[]});return ts(e,function(){r.length=0;for(var n=e.length,i=0;i<n;i++)r[i]=e[i].get();return t(r)})}function is(e,t){return void 0===t&&(t=0),ir(e)?e:es(t)}(0,u.forwardRef)(function(e,t){var r=e.children,n=e.style,i=e.value,s=e.as,c=void 0===s?"li":s,h=e.onDrag,d=e.layout,f=void 0===d||d,p=a(e,["children","style","value","as","onDrag","layout"]),v=j(function(){return Ua(c)}),g=(0,u.useContext)(Xa),m={x:is(null==n?void 0:n.x),y:is(null==n?void 0:n.y)},_=rs([m.x,m.y],function(e){var t=l(e,2),r=t[0],n=t[1];return r||n?1:"unset"}),y=(0,u.useRef)(null);Boolean(g);var w=g,b=w.axis,x=w.registerItem,C=w.updateOrder;return(0,u.useEffect)(function(){x(i,y.current)},[g]),u.createElement(v,o({drag:b},p,{dragSnapToOrigin:!0,style:o(o({}
1,n),{x:m.x,y:m.y,zIndex:_}),layout:f,onDrag:function(e,t){var r=t.velocity;r[b]&&C(i,m[b].get(),r[b]),null==h||h(e,t)},onLayoutMeasure:function(e){y.current=e},ref:t}),r)});var os=o(o({renderer:Pa},Uo),go);o(o(o(o({},os),la),Ha),{projectionNodeConstructor:Wa});!function(){function e(){this.componentControls=new Set}e.prototype.subscribe=function(e){var t=this;return this.componentControls.add(e),function(){return t.componentControls.delete(e)}},e.prototype.start=function(e,t){this.componentControls.forEach(function(r){r.start(e.nativeEvent||e,t)})}}();var as=function(){return{}};ua({build:function(){},measureViewportBox:hn,resetTransform:function(){},restoreTransform:function(){},removeValueFromRenderState:function(){},render:function(){},scrapeMotionValuesFromProps:as,readValueFromInstance:function(e,t,r){return r.initialState[t]||0},makeTargetAnimatable:function(e,t){var r=t.transition,n=t.transitionEnd,i=a(t,["transition","transitionEnd"]);return Ao(e,i,To(i,r||{},e)),o({transition:r,transitionEnd:n},i)}}),Ai({scrapeMotionValuesFromProps:as,createRenderState:as})},5595(e,t,r){"use strict";r.d(t,{pD:()=>d,fj:()=>c,S8:()=>l});const n=/^[A-Za-z]:\//;function i(e=""){return e?e.replace(/\\/g,"/").replace(n,e=>e.toUpperCase()):e}const o=/^[/\\]{2}/,a=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,s=/^[A-Za-z]:$/,l=function(e){if(0===e.length)return".";const t=(e=i(e)).match(o),r=h(e),n="/"===e[e.length-1];return 0===(e=u(e,!r)).length?r?"/":n?"./":".":(n&&(e+="/"),s.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!h(e)?`/${e}`:e)},c=function(...e){let t="";for(const r of e)if(r)if(t.length>0){const e="/"===t[t.length-1],n="/"===r[0];t+=e&&n?r.slice(1):e||n?r:`/${r}`}else t+=r;return l(t)};function u(e,t){let r="",n=0,i=-1,o=0,a=null;for(let s=0;s<=e.length;++s){if(s<e.length)a=e[s];else{if("/"===a)break;a="/"}if("/"===a){if(i===s-1||1===o);else if(2===o){if(r.length<2||2!==n||"."!==r[r.length-1]||"."!==r[r.length-2]){if(r.length>2){const e=r.lastIndexOf("/");-1===e?(r="",n=0):(r=r.slice(0,e),n=r.length-1-r.lastIndexOf("/")),i=s,o=0;continue}if(r.length>0){r="",n=0,i=s,o=0;continue}}t&&(r+=r.length>0?"/..":"..",n=2)}else r.length>0?r+=`/${e.slice(i+1,s)}`:r=e.slice(i+1,s),n=s-i-1;i=s,o=0}else"."===a&&-1!==o?++o:o=-1}return r}const h=function(e){return a.test(e)},d=function(e){const t=i(e).replace(/\/$/,"").split("/").slice(0,-1);return 1===t.length&&s.test(t[0])&&(t[0]+="/"),t.join("/")||(h(e)?"/":".")}},8218(e,t,r){"use strict";r.d(t,{A:()=>i});var n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRen
1dering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const i=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){return n.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})},2130(e,t,r){"use strict";function n(e){return e.split("-")[0]}function i(e){return e.split("-")[1]}function o(e){return["top","bottom"].includes(n(e))?"x":"y"}function a(e){return"y"===e?"height":"width"}function s(e,t,r){let{reference:s,floating:l}=e;const c=s.x+s.width/2-l.width/2,u=s.y+s.height/2-l.height/2,h=o(t),d=a(h),f=s[d]/2-l[d]/2,p="x"===h;let v;switch(n(t)){case"top":v={x:c,y:s.y-l.height};break;case"bottom":v={x:c,y:s.y+s.height};break;case"right":v={x:s.x+s.width,y:u};break;case"left":v={x:s.x-l.width,y:u};break;default:v={x:s.x,y:s.y}}switch(i(t)){case"start":v[h]-=f*(r&&p?-1:1);break;case"end":v[h]+=f*(r&&p?-1:1)}return v}r.d(t,{UE:()=>le,ll:()=>ee,UU:()=>b,cY:()=>x,BN:()=>S,kp:()=>je,s9:()=>ze,we:()=>Se,iQ:()=>He,Mk:()=>De,bv:()=>Me,It:()=>Be});function l(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function c(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function u(e,t){var r;void 0===t&&(t={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:u}=e,{boundary:h="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:v=0}=t,g=l(v),m=s[p?"floating"===f?"reference":"floating":f],_=c(await o.getClippingRect({element:null==(r=await(null==o.isElement?void 0:o.isElement(m)))||r?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:h,rootBoundary:d,strategy:u})),y=c(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...a.floating,x:n,y:i}:a.reference,offsetParent:await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),strategy:u}):a[f]);return{top:_.top-y.top+g.top,bottom:y.bottom-_.bottom+g.bottom,left:_.left-y.left+g.left,right:y.right-_.right+g.right}}const h=Math.min,d=Math.max;function f(e,t,r){return d(e,h(t,r))}const p=e=>({name:"arrow",options:e,async fn(t){const{element:r,padding:n=0}=null!=e?e:{},{x:s,y:c,placement:u,rects:h,platform:d}=t;if(null==r)return{};const p=l(n),v={x:s,y:c},g=o(u),m=i(u),_=a(g),y=await d.getDimensions(r),w="y"===g?"top":"left",b="y"===g?"bottom":"right",x=h.reference[_]+h.reference[g]-v[g]-h.floating[_],C=v[g]-h.reference[g],S=await(null==d.getOffsetParent?void 0:d.getOffsetParent(r));let E=S?"y"===g?S.clientHeight||0:S.clientWidth||0:0;0===E&&(E=h.floating[_]);const M=x/2-C/2,k=p[w],L=E-y[_]-p[b],R=E/2-y[_]/2+M,O=f(k,R,L),A=("start"===m?p[w]:p[b])>0&&R!==O&&h.reference[_]<=h.floating[_];return{[g]:v[g]-(A?R<k?k-R:L-R:0),data:{[g]:O,centerOffset:R-O}}}}
1),v={left:"right",right:"left",bottom:"top",top:"bottom"};function g(e){return e.replace(/left|right|bottom|top/g,e=>v[e])}function m(e,t,r){void 0===r&&(r=!1);const n=i(e),s=o(e),l=a(s);let c="x"===s?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=g(c)),{main:c,cross:g(c)}}const _={start:"end",end:"start"};function y(e){return e.replace(/start|end/g,e=>_[e])}const w=["top","right","bottom","left"],b=(w.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",flipAlignment:v=!0,..._}=e,w=n(i),b=f||(w!==s&&v?function(e){const t=g(e);return[y(e),t,y(t)]}(s):[g(s)]),x=[s,...b],C=await u(t,_),S=[];let E=(null==(r=o.flip)?void 0:r.overflows)||[];if(h&&S.push(C[w]),d){const{main:e,cross:t}=m(i,a,await(null==l.isRTL?void 0:l.isRTL(c.floating)));S.push(C[e],C[t])}if(E=[...E,{placement:i,overflows:S}],!S.every(e=>e<=0)){var M,k;const e=(null!=(M=null==(k=o.flip)?void 0:k.index)?M:0)+1,t=x[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let r="bottom";switch(p){case"bestFit":{var L;const e=null==(L=E.map(e=>[e,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:L[0].placement;e&&(r=e);break}case"initialPlacement":r=s}if(i!==r)return{reset:{placement:r}}}return{}}}});const x=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:a}=t,s=await async function(e,t){const{placement:r,platform:a,elements:s}=e,l=await(null==a.isRTL?void 0:a.isRTL(s.floating)),c=n(r),u=i(r),h="x"===o(r),d=["left","top"].includes(c)?-1:1,f=l&&h?-1:1,p="function"==typeof t?t(e):t;let{mainAxis:v,crossAxis:g,alignmentAxis:m}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return u&&"number"==typeof m&&(g="end"===u?-1*m:m),h?{x:g*f,y:v*d}:{x:v*d,y:g*f}}(t,e);return{x:r+s.x,y:a+s.y,data:s}}}};function C(e){return"x"===e?"y":"x"}const S=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:i,placement:a}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...h}=e,d={x:r,y:i},p=await u(t,h),v=o(n(a)),g=C(v);let m=d[v],_=d[g];if(s){const e="y"===v?"bottom":"right";m=f(m+p["y"===v?"top":"left"],m,m-p[e])}if(l){const e="y"===g?"bottom":"right";_=f(_+p["y"===g?"top":"left"],_,_-p[e])}const y=c.fn({...t,[v]:m,[g]:_});return{...y,data:{x:y.x-r,y:y.y-i}}}}};function E(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function M(e){if(null==e)return window;if(!E(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function k(e){return M(e).getComputedStyle(e)}function L(e){return E(e)?"":e?(e.nodeName||"").toLowerCase():""}function R(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function O(e){return e instanceof M(e).HTMLElement}function A(e){return e instanceof M(e).Element}function P(e){return"undefined"!=typeof ShadowRoot&&(e instanceof M(e).ShadowRoot||e instanceof ShadowRoot)}function T(e){const{overflow:t,overflowX:r,overflowY:n}=k(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function D(e){return["table","td","th"].includes(L(e))}function B(e){const t=/firefox/i.test(R()),r=k(e);return"none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||["transform","perspective"].includes(r.willChange)||t&&"filter"===r.willChange||t&&!!r.filter&&"none"!==r.filter}function j(){return!/^((?!chrome|android).)*safari/i.test(R())}const I=Math.min,z=Math.max,H=Math.round;function F(e,t,r){var n,i,o,a;void 0===t&&(t=!1),void 0===r&&(r=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&O(e)&&(l=e.offsetWidth>0&&H(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&H(s.height)/e.offsetHeight||1);const u=A(e)?M(e):window,h=!j()&&r,d=(s.left+(h&&null!=(n=null==(i=u.visualVie
vendor: 4,257 bytes, line 1
1wport)?void 0:i.offsetLeft)?n:0))/l,f=(s.top+(h&&null!=(o=null==(a=u.visualViewport)?void 0:a.offsetTop)?o:0))/c,p=s.width/l,v=s.height/c;return{width:p,height:v,top:f,right:d+p,bottom:f+v,left:d,x:d,y:f}}function V(e){return(t=e,(t instanceof M(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function W(e){return A(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function N(e){return F(V(e)).left+W(e).scrollLeft}function U(e,t,r){const n=O(t),i=V(t),o=F(e,n&&function(e){const t=F(e);return H(t.width)!==e.offsetWidth||H(t.height)!==e.offsetHeight}(t),"fixed"===r);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(n||!n&&"fixed"!==r)if(("body"!==L(t)||T(i))&&(a=W(t)),O(t)){const e=F(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=N(i));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function q(e){return"html"===L(e)?e:e.assignedSlot||e.parentNode||(P(e)?e.host:null)||V(e)}function Y(e){return O(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function K(e){const t=M(e);let r=Y(e);for(;r&&D(r)&&"static"===getComputedStyle(r).position;)r=Y(r);return r&&("html"===L(r)||"body"===L(r)&&"static"===getComputedStyle(r).position&&!B(r))?t:r||function(e){let t=q(e);for(P(t)&&(t=t.host);O(t)&&!["html","body"].includes(L(t));){if(B(t))return t;t=t.parentNode}return null}(e)||t}function G(e){if(O(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=F(e);return{width:t.width,height:t.height}}function $(e){const t=q(e);return["html","body","#document"].includes(L(t))?e.ownerDocument.body:O(t)&&T(t)?t:$(t)}function X(e,t){var r;void 0===t&&(t=[]);const n=$(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=M(n),a=i?[o].concat(o.visualViewport||[],T(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(X(a))}function Z(e,t,r){return"viewport"===t?c(function(e,t){const r=M(e),n=V(e),i=r.visualViewport;let o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=j();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,r)):A(t)?function(e,t){const r=F(e,!1,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft;return{top:n,left:i,x:i,y:n,right:i+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,r):c(function(e){var t;const r=V(e),n=W(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=z(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=z(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let s=-n.scrollLeft+N(e);const l=-n.scrollTop;return"rtl"===k(i||r).direction&&(s+=z(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(V(e)))}function J(e){const t=X(e),r=["absolute","fixed"].includes(k(e).position)&&O(e)?K(e):e;return A(r)?t.filter(e=>A(e)&&function(e,t){const r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&P(r)){let r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}(e,r)&&"body"!==L(e)):[]}const Q={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[..."clippingAncestors"===r?J(t):[].concat(r),n],a=o[0],s=o.reduce((e,r)=>{const n=Z(t,r,i);return e.top=z(n.top,e.top),e.right=I(n.right,e.right),e.bottom=I(n.bottom,e.bottom),e.left=z(n.left,e.left),e},Z(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e;const i=O(r),o=V(r);if(r===o)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&"fixed"!==n)&&(("body"!==L(r)||T(o))&&(a=W(r)),O(r))){const e=F(r,!0);s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:A,getDimensions:G,getOffsetParent:K,getDocumentElement:V,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:U(t,K(r),n),floating:{...G(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===k(e).direction};function ee(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=n,l=i&&!s,c=o&&!s,u=l||c?[...A(e)?X(e):[],...X(t)]:[];
1u.forEach(e=>{l&&e.addEventListener("scroll",r,{passive:!0}),c&&e.addEventListener("resize",r)});let h,d=null;if(a){let n=!0;d=new ResizeObserver(()=>{n||r(),n=!1}),A(e)&&!s&&d.observe(e),d.observe(t)}let f=s?F(e):null;return s&&function t(){const n=F(e);!f||n.x===f.x&&n.y===f.y&&n.width===f.width&&n.height===f.height||r(),f=n,h=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{l&&e.removeEventListener("scroll",r),c&&e.removeEventListener("resize",r)}),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(h)}}const te=(e,t,r)=>(async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:h}=s(c,n,l),d=n,f={},p=0;for(let r=0;r<o.length;r++){const{name:v,fn:g}=o[r],{x:m,y:_,data:y,reset:w}=await g({x:u,y:h,initialPlacement:n,placement:d,strategy:i,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,h=null!=_?_:h,f={...f,[v]:{...f[v],...y}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),({x:u,y:h}=s(c,d,l))),r=-1)}return{x:u,y:h,placement:d,strategy:i,middlewareData:f}})(e,t,{platform:Q,...r});var re=r(7810),ne=r.t(re,2),ie=r(2483),oe="undefined"!=typeof document?re.useLayoutEffect:re.useEffect;function ae(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;0!==n--;)if(!ae(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!==n--;){const r=i[n];if(("_owner"!==r||!e.$$typeof)&&!ae(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function se(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:i}=void 0===e?{}:e;const o=re.useRef(null),a=re.useRef(null),s=function(e){const t=re.useRef(e);return oe(()=>{t.current=e}),t}(i),l=re.useRef(null),[c,u]=re.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[h,d]=re.useState(t);ae(null==h?void 0:h.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))||d(t);const f=re.useCallback(()=>{o.current&&a.current&&te(o.current,a.current,{middleware:h,placement:r,strategy:n}).then(e=>{p.current&&ie.flushSync(()=>{u(e)})})},[h,r,n]);oe(()=>{p.current&&f()},[f]);const p=re.useRef(!1);oe(()=>(p.current=!0,()=>{p.current=!1}),[]);const v=re.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),o.current&&a.current)if(s.current){const e=s.current(o.current,a.current,f);l.current=e}else f()},[f,s]),g=re.useCallback(e=>{o.current=e,v()},[v]),m=re.useCallback(e=>{a.current=e,v()},[v]),_=re.useMemo(()=>({reference:o,floating:a}),[]);return re.useMemo(()=>({...c,update:f,refs:_,reference:g,floating:m}),[c,f,_,g,m])}const le=e=>{const{element:t,padding:r}=e;return{name:"arrow",options:e,fn(e){return n=t,Object.prototype.hasOwnProperty.call(n,"current")?null!=t.current?p({element:t.current,padding:r}).fn(e):{}:t?p({element:t,padding:r}).fn(e):{};var n}}};new WeakMap,new WeakMap;var ce="undefined"!=typeof document?re.useLayoutEffect:re.useEffect;function ue(){const e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach(e=>e(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(e=>e!==r))}}}let he=!1,de=0;const fe=()=>"floating-ui-"+de++;const pe=ne["useId".toString()],ve=null!=pe?pe:function(){const[e,t]=re.useState(()=>he?fe():void 0);return ce(()=>{null==e&&t(fe())},[]),re.useEffect(()=>{he||(he=!0)},[]),e},ge=re.createContext(null),me=re.createContext(null),_e=()=>{var e,t;return null!=(e=null==(t=re.useContext(ge))?void 0:t.id)?e:null},ye=()=>re.useContext(me);function we(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function be(e){var t;return null!=(t=we(e).defaultView)?t:window}function xe(e){return!!e&&e instanceof be(e).Element}function Ce(e){return!!e&&e instanceof be(e).HTMLElement}function Se(e){let{open:t=!1,onOpenChange:r=()=>{},whileElementsMounted:n,placement:i,middleware:o,strategy:a,nodeId:s}=void 0===e?{}:e;const l=ye(),c=re.useRef(null),u=re.useRef({}),h=re.useState(()=>ue())[0],d=se({placement:i,middleware:o,strategy:a,whileElementsMounted:n}),f=re.useMemo(()=>({...d.refs,domReference:c}),[d.refs]),p=re.useMemo(()=>({...d,refs:f,dataRef:u,nodeId:s,events:h,open:t,onOpenChange:r}),[d,s,h,t,r,f]);ce(()=>{const e=null==l?void 0:l.nodesRef.current.find(e=>e.id===s);e&&(e.context=p)});const{reference:v}=d,g=re.useCallback(e=>{(xe(e)||null===e)&&(p.refs.domReference.current=e),v(e)},[v,p.refs]);return re.useMemo(()=>({...d,context:p,refs:f,reference:g}),[d,f,p,g])}function Ee(e,t,r){const n=new Map;return{..."floating"===r&&{tabIndex:-1},...e,...t.map(e=>e?e[r]:null).concat(e).reduce((e,t)=>
1t?(Object.entries(t).forEach(t=>{let[r,i]=t;if(0===r.indexOf("on")){var o;if(n.has(r)||n.set(r,[]),"function"==typeof i)null==(o=n.get(r))||o.push(i);e[r]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];null==(e=n.get(r))||e.forEach(e=>e(...i))}}else e[r]=i}),e):e,{})}}const Me=function(e){return void 0===e&&(e=[]),{getReferenceProps:t=>Ee(t,e,"reference"),getFloatingProps:t=>Ee(t,e,"floating"),getItemProps:t=>Ee(t,e,"item")}};function ke(e,t){var r;let n=null!=(r=e.filter(e=>{var r;return e.parentId===t&&(null==(r=e.context)?void 0:r.open)}))?r:[],i=n;for(;i.length;){var o;i=null!=(o=e.filter(e=>{var t;return null==(t=i)?void 0:t.some(t=>{var r;return e.parentId===t.id&&(null==(r=e.context)?void 0:r.open)})}))?o:[],n=n.concat(i)}return n}function Le(e){let t=e.activeElement;for(;null!=(null==(r=t)||null==(n=r.shadowRoot)?void 0:n.activeElement);){var r,n;t=t.shadowRoot.activeElement}return t}const Re="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Oe(e){return Ce(e)&&e.matches(Re)}function Ae(e){const t=(0,re.useRef)(e);return ce(()=>{t.current=e}),t}function Pe(e){const t=(0,re.useRef)();return ce(()=>{t.current=e},[e]),t.current}function Te(e,t,r){return r&&"mouse"!==r?0:"number"==typeof e?e:null==e?void 0:e[t]}const De=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:i=null,mouseOnly:o=!1,restMs:a=0}=void 0===t?{}:t;const{open:s,onOpenChange:l,dataRef:c,events:u,refs:h}=e,d=ye(),f=_e(),p=Ae(l),v=Ae(i),g=Pe(s),m=re.useRef(),_=re.useRef(),y=re.useRef(),w=re.useRef(),b=re.useRef(!0),x=re.useRef(!1);re.useEffect(()=>{if(r)return u.on("dismiss",e),()=>{u.off("dismiss",e)};function e(){clearTimeout(_.current),clearTimeout(w.current),b.current=!0}},[r,u,h]),re.useEffect(()=>{if(!r||!v.current)return;function e(){var e;null!=(e=c.current.openEvent)&&e.type.includes("mouse")&&p.current(!1)}const t=we(h.floating.current).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[h,p,r,v,c]);const C=re.useCallback(function(e){void 0===e&&(e=!0);const t=Te(n,"close",m.current);t&&!y.current?(clearTimeout(_.current),_.current=setTimeout(()=>p.current(!1),t)):e&&(clearTimeout(_.current),p.current(!1))},[n,p]),S=re.useCallback(()=>{y.current&&(we(h.floating.current).removeEventListener("pointermove",y.current),y.current=void 0)},[h]),E=re.useCallback(()=>{we(h.floating.current).body.style.pointerEvents="",x.current=!1},[h]);if(re.useEffect(()=>{if(!r)return;function t(e){if(clearTimeout(_.current),b.current=!1,s||o&&"mouse"!==m.current||a>0&&0===Te(n,"open"))return;c.current.openEvent=e;const t=Te(n,"open",m.current);t?_.current=setTimeout(()=>{p.current(!0)},t):p.current(!0)}function i(t){var r,n;if("click"===(null==(r=c.current.openEvent)?void 0:r.type)||"pointerdown"===(null==(n=c.current.openEvent)?void 0:n.type))return;const i=we(h.floating.current);if(clearTimeout(w.current),v.current)return clearTimeout(_.current),y.current&&i.removeEventListener("pointermove",y.current),y.current=v.current({...e,tree:d,x:t.clientX,y:t.clientY,onClose(){S(),C()}}),void i.addEventListener("pointermove",y.current);C()}function l(t){null==v.current||v.current({...e,tree:d,x:t.clientX,y:t.clientY,leave:!0,onClose(){S(),C()}})(t)}const u=h.floating.current,f=h.domReference.current;return xe(f)?(s&&f.addEventListener("mouseleave",l),null==u||u.addEventListener("mouseleave",l),f.addEventListener("mousemove",t,{once:!0}),f.addEventListener("mouseenter",t),f.addEventListener("mouseleave",i),()=>{s&&f.removeEventListener("mouseleave",l),null==u||u.removeEventListener("mouseleave",l),f.removeEventListener("mousemove",t),f.removeEventListener("mouseenter",t),f.removeEventListener("mouseleave",i)}):void 0},[r,C,e,n,v,c,o,p,s,d,a,S,h]),ce(()=>{if(r&&s&&v.current){we(h.floating.current).body.style.pointerEvents="none",x.current=!0;const r=h.domReference.current,n=h.floating.current;if(Ce(r)&&n){var e,t;const i=null==d||null==(e=d.nodesRef.current.find(e=>e.id===f))||null==(t=e.context)?void 0:t.refs.floating.current;return i&&(i.style.pointerEvents=""),r.style.pointerEvents="auto",n.style.pointerEvents="auto",()=>{r.style.pointerEvents="",n.style.pointerEvents=""}}}},[r,s,f,h,d,v,c]),ce(()=>{g&&!s&&(m.current=void 0,S(),E())}),re.useEffect(()=>()=>{S(),clearTimeout(_.current),clearTimeout(w.current),x.current&&E()},[S,E]),!r)return{};function M(e){m.current=e.pointerType}return{reference:{onPointerDown:M,onPointerEnter:M,onMouseMove(){s||0===a||(clearTimeout(w.current),w.current=setTimeout(()=>{b.current||l(!0)},a))}},floating:{onMouseEnter(){clearTimeout(_.current)},onMouseLeave(){C(!1)}}}},Be=function(e,t){let{open:r}=e,{enabled:n=!0,role:i="dialog"}=void 0===t?{}:t;const o=ve(),a=ve(),s={id:o,role:i};return n?"tooltip"===i?{reference:{"aria-describedby":r?o:void 0},floating:s}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":i,"aria-controls":r?o:void 0,..."listbox"===i&&{role:"combobox"},..."menu"===i&&{id:a}},floating:{...s,..."menu"===i&&{"aria-labelledby":a}}}:{}}
1,je=function(e,t){let{open:r,onOpenChange:n,dataRef:i,refs:o}=e,{enabled:a=!0,pointerDown:s=!1,toggle:l=!0,ignoreMouse:c=!1}=void 0===t?{}:t;const u=re.useRef();function h(){var e;return"BUTTON"===(null==(e=o.domReference.current)?void 0:e.tagName)}function d(){return Oe(o.domReference.current)}return a?{reference:{onPointerDown(e){0===e.button&&(u.current=e.pointerType,"mouse"===u.current&&c||s&&(r?!l||i.current.openEvent&&"pointerdown"!==i.current.openEvent.type||n(!1):n(!0),i.current.openEvent=e.nativeEvent))},onClick(e){s&&u.current?u.current=void 0:"mouse"===u.current&&c||(r?!l||i.current.openEvent&&"click"!==i.current.openEvent.type||n(!1):n(!0),i.current.openEvent=e.nativeEvent)},onKeyDown(e){u.current=void 0,h()||(" "!==e.key||d()||e.preventDefault(),"Enter"===e.key&&(r?l&&n(!1):n(!0)))},onKeyUp(e){h()||d()||" "===e.key&&(r?l&&n(!1):n(!0))}}}:{}};function Ie(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return null!=r.target&&t.contains(r.target)}const ze=function(e,t){let{open:r,onOpenChange:n,refs:i,events:o,nodeId:a}=e,{enabled:s=!0,escapeKey:l=!0,outsidePointerDown:c=!0,referencePointerDown:u=!1,ancestorScroll:h=!1,bubbles:d=!0}=void 0===t?{}:t;const f=ye(),p=Ae(n),v=re.useCallback(()=>{var e;return null==(e=i.floating.current)?void 0:e.contains(Le(we(i.floating.current)))},[i]);return re.useEffect(()=>{if(!r||!s)return;function e(e){if("Escape"===e.key){if(!d&&!v())return;o.emit("dismiss"),p.current(!1),Ce(i.domReference.current)&&i.domReference.current.focus()}}function t(e){const t=f&&ke(f.nodesRef.current,a).some(t=>{var r;return Ie(e,null==(r=t.context)?void 0:r.refs.floating.current)});Ie(e,i.floating.current)||Ie(e,i.domReference.current)||t||(d||v())&&(o.emit("dismiss"),p.current(!1))}function n(){p.current(!1)}const u=we(i.floating.current);l&&u.addEventListener("keydown",e),c&&u.addEventListener("mousedown",t);const g=(h?[...xe(i.reference.current)?X(i.reference.current):[],...xe(i.floating.current)?X(i.floating.current):[]]:[]).filter(e=>{var t;return e!==(null==(t=u.defaultView)?void 0:t.visualViewport)});return g.forEach(e=>e.addEventListener("scroll",n,{passive:!0})),()=>{l&&u.removeEventListener("keydown",e),c&&u.removeEventListener("mousedown",t),g.forEach(e=>e.removeEventListener("scroll",n))}},[l,c,o,f,a,r,p,h,s,d,v,i]),s?{reference:{onPointerDown(){u&&(o.emit("dismiss"),n(!1))}}}:{}},He=function(e,t){let{open:r,onOpenChange:n,dataRef:i,refs:o,events:a}=e,{enabled:s=!0,keyboardOnly:l=!0}=void 0===t?{}:t;const c=re.useRef(""),u=re.useRef(!1);return re.useEffect(()=>{var e;if(!s)return;const t=we(o.floating.current),n=null!=(e=t.defaultView)?e:window;function i(){c.current&&o.domReference.current===Le(t)&&(u.current=!r)}function a(){setTimeout(()=>{u.current=!1,c.current=""})}return n.addEventListener("focus",a),n.addEventListener("blur",i),()=>{n.removeEventListener("focus",a),n.removeEventListener("blur",i)}},[o,r,s]),re.useEffect(()=>{if(s)return a.on("dismiss",e),()=>{a.off("dismiss",e)};function e(){u.current=!0}},[a,s]),s?{reference:{onPointerDown(e){let{pointerType:t}=e;c.current=t,u.current=!(!t||!l)},onFocus(e){var t,r,a;u.current||"focus"===e.type&&"mousedown"===(null==(t=i.current.openEvent)?void 0:t.type)&&null!=(r=o.domReference.current)&&r.contains(null==(a=i.current.openEvent)?void 0:a.target)||(i.current.openEvent=e.nativeEvent,n(!0))},onBlur(e){var t,r;const i=e.relatedTarget;null!=(t=o.floating.current)&&t.contains(i)||null!=(r=o.domReference.current)&&r.contains(i)||(u.current=!1,n(!1))}}}:{}}},8954(e,t,r){"use strict";r.d(t,{Ul:()=>j});var n=r(7810),i=r(4922),o=r(8588),a=r(422);function s(){throw new Error("Cycle detected")}function l(){if(h>1)h--;else{for(var e,t=!1;void 0!==u;){var r=u;for(u=void 0,d++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&g(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(d=0,h--,t)throw e}}var c=void 0,u=void 0,h=0,d=0,f=0;function p(e){if(void 0!==c){var t=e.n;if(void 0===t||t.t!==c)return c.s=t={i:0,S:e,p:void 0,n:c.s,t:c,e:void 0,x:void 0,r:t},e.n=t,32&c.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.p&&(t.p.n=t.n,void 0!==t.n&&(t.n.p=t.p),t.p=void 0,t.n=c.s,c.s.p=t,c.s=t),t}}function v(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function g(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function m(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;void 0!==r&&(t.r=r),t.S.n=t,t.i=-1}}function _(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.n;-1===t.i?(t.S.U(t),t.n=void 0):(void 0!==r&&(r.p=t),t.p=void 0,t.n=r,r=t),t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function y(e){v.call(this,void 0),this.x=e,this.s=void 0,this.g=f-1,this.f=4}function w(e){var t=e.u;if(e.u=void 0,"function"==typeof t){h++;var r=c;c=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,b(e),t}finally{c=r,l()}}}function b(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,w(e)}function x(e){if(c!==this)throw new Error("Out-of-order effect");_(this),c=e,this.f&=-2,8&this.f&&b(this),l()}function C(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function S(e){var t=new C(e);return t.c(),t.d.bind(t)}v.prototype.h=function(){return!0},v.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},v.prototype.U=function(e){var t=e.e,r=e.x;void 0!==t&&(t.x=r,e.e=void 0),void 0!==r&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)},v.prototype.subscribe=function(e){var t=this;return S(function(){var r=t.value,n=32&this.f;this.f&=-33;try{e(r)}finally{this.f|=n}})},v.prototype.valueOf=function(){return this.value},v.prototype.toString=function(){return this.value+""},v.prototype.peek=function(){return this.v},Object.defineProperty(v.prototype,"value",{get:function(){var e=p(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){d>100&&s(),this.v=e,this.i++,f++,h++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{l()}}}}),(y.prototype=new v).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;
1if(this.f&=-5,this.g===f)return!0;if(this.g=f,this.f|=1,this.i>0&&!g(this))return this.f&=-2,!0;var e=c;try{m(this),c=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return c=e,_(this),this.f&=-2,!0},y.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}v.prototype.S.call(this,e)},y.prototype.U=function(e){if(v.prototype.U.call(this,e),void 0===this.t){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},y.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},y.prototype.peek=function(){if(this.h()||s(),16&this.f)throw this.v;return this.v},Object.defineProperty(y.prototype,"value",{get:function(){1&this.f&&s();var e=p(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),C.prototype.c=function(){var e=this.S();try{8&this.f||void 0===this.x||(this.u=this.x())}finally{e()}},C.prototype.S=function(){1&this.f&&s(),this.f|=1,this.f&=-9,w(this),m(this),h++;var e=c;return c=this,x.bind(this,e)},C.prototype.N=function(){2&this.f||(this.f|=2,this.o=u,u=this)},C.prototype.d=function(){this.f|=8,1&this.f||b(this)};var E=[],M=Symbol.for("react.element"),k=Symbol.for("react.memo"),L=new Map,R="function"==typeof Proxy,O={apply:function(e,t,r){var i=(0,n.useMemo)(P,E);(0,a.useSyncExternalStore)(i.subscribe,i.getSnapshot,i.getSnapshot);var o=i.updater.S();try{return e.apply(t,r)}catch(e){throw e}finally{o()}}};function A(e){return L.get(e)||function(e){if(R){var t=new Proxy(e,O);return L.set(e,t),L.set(t,t),t}var r=function(){return O.apply(e,void 0,arguments)};return L.set(e,r),L.set(r,r),r}(e)}function P(){var e,t,r=0,n=S(function(){e=this});return e.c=function(){r=r+1|0,t&&t()},{updater:e,subscribe:function(e){return t=e,function(){r=r+1|0,t=void 0,n()}},getSnapshot:function(){return r}}}function T(e){return"function"!=typeof e?e:function(t,r){var i=[].slice.call(arguments,2);if("function"==typeof t&&!(t instanceof n.Component))return e.call.apply(e,[e,A(t),r].concat(i));if(t&&"object"==typeof t&&t.$$typeof===k)return t.type=A(t.type),e.call.apply(e,[e,t,r].concat(i));if("string"==typeof t&&r)for(var o in r){var a=r[o];"children"!==o&&a instanceof v&&(r[o]=a.value)}return e.call.apply(e,[e,t,r].concat(i))}}var D=i,B=o;function j(e){return(0,n.useMemo)(function(){return function(e){return new v(e)}(e)},E)}n.createElement=T(n.createElement),B.jsx&&(B.jsx=T(B.jsx)),D.jsx&&(D.jsx=T(D.jsx)),B.jsxs&&(B.jsxs=T(B.jsxs)),D.jsxs&&(D.jsxs=T(D.jsxs)),B.jsxDEV&&(B.jsxDEV=T(B.jsxDEV)),D.jsxDEV&&(D.jsxDEV=T(D.jsxDEV)),Object.defineProperties(v.prototype,{$$typeof:{configurable:!0,value:M},type:{configurable:!0,value:A(function(e){return e.data.value})},props:{configurable:!0,get:function(){return{data:this}}},ref:{configurable:!0,value:null}})},7942(e,t,r){var n;e.exports=(n=r(7810),function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=1)}([function(e,t){e.exports=n},function(e,t,r){e.exports=r(2)},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r.r(t);var a=r(0),s=r.n(a),l=function(e){for(var t=0,r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return Math.abs(t)},c=function(e,t){return Math.floor(e/Math.pow(10,t)%10)},u=function(e,t){return!(c(e,t)%2)},h=function(e,t,r){var n=e%t;return r&&c(e,r)%2==0?-n:n},d=function(e,t,r){return t[e%r]},f=function(e){var t=function(e,t){var r=l(e),n=t&&t.length;return Array.from({length:4},function(e,i){return{color:d(r+i,t,n),translateX:h(r*(i+1),40-(i+17),1),translateY:h(r*(i+1),40-(i+17),2),rotate:h(r*(i+1),360),isSquare:u(r,2)}})}(e.name,e.colors);return a.createElement("svg",{viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&a.createElement("title",null,e.name),a.createElement("mask",{id:"mask__bauhaus",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},a.createElement("rect",{width:80,height:80,rx:e.square?void 0:160,fill:"#FFFFFF"})),a.createElement("g",{mask:"url(#mask__bauhaus)"},a.createElement("rect",{width:80,height:80,fill:t[0].color}),a.createElement("rect",{x:10,y:30,width:80,height:t[1].isSquare?80:10,fill:t[1].color,transform:"translate("+t[1].translateX+" "+t[1].translateY+") rotate("+t[1].rotate+" 40 40)"}),a.createElement("circle",{cx:40,cy:40,fill:t[2].color,r:16,transform:"translate("+t[2].translateX+" "+t[2].translateY+")"}),a.createElement("line",{x1:0,y1:40,x2:80,y2:40,strokeWidth:2,stroke:t[3].color,transform:"translate("+t[3].translateX+" "+t[3].translateY+") rotate("+t[3].rotate+" 40 40)"})))},p=function(e){var t=function(e,t){var r=l(t),n=e&&e.length,i=Array.from({length:5},function(t,i){return d(r+i,e,n)}),o=[];return o[0]=i[0],o[1]=i[1],o[2]=i[1],o[3]=i[2],o[4]=i[2],o[5]=i[3],o[6]=i[3],o[7]=i[0],o[8]=i[4],o}(e.colors,e.name);return s.a.createElement("svg",{viewBox:"0 0 90 90",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&s.a.createElement("title",null,e.name),s.a.createElement("mask",{id:"mask__ring",maskUnits:"userSpaceOnUse",x:0,y:0,width:90,height:90},s.a.createElement("rect",{width:90,height:90,rx:e.square?void 0:180,fill:"#FFFFFF"})),s.a.createElement("g",{mask:"url(#mask__ring)"}
1,s.a.createElement("path",{d:"M0 0h90v45H0z",fill:t[0]}),s.a.createElement("path",{d:"M0 45h90v45H0z",fill:t[1]}),s.a.createElement("path",{d:"M83 45a38 38 0 00-76 0h76z",fill:t[2]}),s.a.createElement("path",{d:"M83 45a38 38 0 01-76 0h76z",fill:t[3]}),s.a.createElement("path",{d:"M77 45a32 32 0 10-64 0h64z",fill:t[4]}),s.a.createElement("path",{d:"M77 45a32 32 0 11-64 0h64z",fill:t[5]}),s.a.createElement("path",{d:"M71 45a26 26 0 00-52 0h52z",fill:t[6]}),s.a.createElement("path",{d:"M71 45a26 26 0 01-52 0h52z",fill:t[7]}),s.a.createElement("circle",{cx:45,cy:45,r:23,fill:t[8]})))},v=function(e){var t=function(e,t){var r=l(e),n=t&&t.length;return Array.from({length:64},function(e,i){return d(r%i,t,n)})}(e.name,e.colors);return a.createElement("svg",{viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&a.createElement("title",null,e.name),a.createElement("mask",{id:"mask__pixel","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},a.createElement("rect",{width:80,height:80,rx:e.square?void 0:160,fill:"#FFFFFF"})),a.createElement("g",{mask:"url(#mask__pixel)"},a.createElement("rect",{width:10,height:10,fill:t[0]}),a.createElement("rect",{x:20,width:10,height:10,fill:t[1]}),a.createElement("rect",{x:40,width:10,height:10,fill:t[2]}),a.createElement("rect",{x:60,width:10,height:10,fill:t[3]}),a.createElement("rect",{x:10,width:10,height:10,fill:t[4]}),a.createElement("rect",{x:30,width:10,height:10,fill:t[5]}),a.createElement("rect",{x:50,width:10,height:10,fill:t[6]}),a.createElement("rect",{x:70,width:10,height:10,fill:t[7]}),a.createElement("rect",{y:10,width:10,height:10,fill:t[8]}),a.createElement("rect",{y:20,width:10,height:10,fill:t[9]}),a.createElement("rect",{y:30,width:10,height:10,fill:t[10]}),a.createElement("rect",{y:40,width:10,height:10,fill:t[11]}),a.createElement("rect",{y:50,width:10,height:10,fill:t[12]}),a.createElement("rect",{y:60,width:10,height:10,fill:t[13]}),a.createElement("rect",{y:70,width:10,height:10,fill:t[14]}),a.createElement("rect",{x:20,y:10,width:10,height:10,fill:t[15]}),a.createElement("rect",{x:20,y:20,width:10,height:10,fill:t[16]}),a.createElement("rect",{x:20,y:30,width:10,height:10,fill:t[17]}),a.createElement("rect",{x:20,y:40,width:10,height:10,fill:t[18]}),a.createElement("rect",{x:20,y:50,width:10,height:10,fill:t[19]}),a.createElement("rect",{x:20,y:60,width:10,height:10,fill:t[20]}),a.createElement("rect",{x:20,y:70,width:10,height:10,fill:t[21]}),a.createElement("rect",{x:40,y:10,width:10,height:10,fill:t[22]}),a.createElement("rect",{x:40,y:20,width:10,height:10,fill:t[23]}),a.createElement("rect",{x:40,y:30,width:10,height:10,fill:t[24]}),a.createElement("rect",{x:40,y:40,width:10,height:10,fill:t[25]}),a.createElement("rect",{x:40,y:50,width:10,height:10,fill:t[26]}),a.createElement("rect",{x:40,y:60,width:10,height:10,fill:t[27]}),a.createElement("rect",{x:40,y:70,width:10,height:10,fill:t[28]}),a.createElement("rect",{x:60,y:10,width:10,height:10,fill:t[29]}),a.createElement("rect",{x:60,y:20,width:10,height:10,fill:t[30]}),a.createElement("rect",{x:60,y:30,width:10,height:10,fill:t[31]}),a.createElement("rect",{x:60,y:40,width:10,height:10,fill:t[32]}),a.createElement("rect",{x:60,y:50,width:10,height:10,fill:t[33]}),a.createElement("rect",{x:60,y:60,width:10,height:10,fill:t[34]}),a.createElement("rect",{x:60,y:70,width:10,height:10,fill:t[35]}),a.createElement("rect",{x:10,y:10,width:10,height:10,fill:t[36]}),a.createElement("rect",{x:10,y:20,width:10,height:10,fill:t[37]}),a.createElement("rect",{x:10,y:30,width:10,height:10,fill:t[38]}),a.createElement("rect",{x:10,y:40,width:10,height:10,fill:t[39]}),a.createElement("rect",{x:10,y:50,width:10,height:10,fill:t[40]}),a.createElement("rect",{x:10,y:60,width:10,height:10,fill:t[41]}),a.createElement("rect",{x:10,y:70,width:10,height:10,fill:t[42]}),a.createElement("rect",{x:30,y:10,width:10,height:10,fill:t[43]}),a.createElement("rect",{x:30,y:20,width:10,height:10,fill:t[44]}),a.createElement("rect",{x:30,y:30,width:10,height:10,fill:t[45]}),a.createElement("rect",{x:30,y:40,width:10,height:10,fill:t[46]}),a.createElement("rect",{x:30,y:50,width:10,height:10,fill:t[47]}),a.createElement("rect",{x:30,y:60,width:10,height:10,fill:t[48]}),a.createElement("rect",{x:30,y:70,width:10,height:10,fill:t[49]}),a.createElement("rect",{x:50,y:10,width:10,height:10,fill:t[50]}),a.createElement("rect",{x:50,y:20,width:10,height:10,fill:t[51]}),a.createElement("rect",{x:50,y:30,width:10,height:10,fill:t[52]}),a.createElement("rect",{x:50,y:40,width:10,height:10,fill:t[53]}
1),a.createElement("rect",{x:50,y:50,width:10,height:10,fill:t[54]}),a.createElement("rect",{x:50,y:60,width:10,height:10,fill:t[55]}),a.createElement("rect",{x:50,y:70,width:10,height:10,fill:t[56]}),a.createElement("rect",{x:70,y:10,width:10,height:10,fill:t[57]}),a.createElement("rect",{x:70,y:20,width:10,height:10,fill:t[58]}),a.createElement("rect",{x:70,y:30,width:10,height:10,fill:t[59]}),a.createElement("rect",{x:70,y:40,width:10,height:10,fill:t[60]}),a.createElement("rect",{x:70,y:50,width:10,height:10,fill:t[61]}),a.createElement("rect",{x:70,y:60,width:10,height:10,fill:t[62]}),a.createElement("rect",{x:70,y:70,width:10,height:10,fill:t[63]})))},g=function(e){var t=function(e,t){var r,n=l(e),i=t&&t.length,o=d(n,t,i),a=h(n,10,1),s=a<5?a+4:a,c=h(n,10,2),f=c<5?c+4:c;return{wrapperColor:o,faceColor:(r=o,"#"===r.slice(0,1)&&(r=r.slice(1)),(299*parseInt(r.substr(0,2),16)+587*parseInt(r.substr(2,2),16)+114*parseInt(r.substr(4,2),16))/1e3>=128?"#000000":"#FFFFFF"),backgroundColor:d(n+13,t,i),wrapperTranslateX:s,wrapperTranslateY:f,wrapperRotate:h(n,360),wrapperScale:1+h(n,3)/10,isMouthOpen:u(n,2),isCircle:u(n,1),eyeSpread:h(n,5),mouthSpread:h(n,3),faceRotate:h(n,10,3),faceTranslateX:s>6?s/2:h(n,8,1),faceTranslateY:f>6?f/2:h(n,7,2)}}(e.name,e.colors);return a.createElement("svg",{viewBox:"0 0 36 36",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&a.createElement("title",null,e.name),a.createElement("mask",{id:"mask__beam",maskUnits:"userSpaceOnUse",x:0,y:0,width:36,height:36},a.createElement("rect",{width:36,height:36,rx:e.square?void 0:72,fill:"#FFFFFF"})),a.createElement("g",{mask:"url(#mask__beam)"},a.createElement("rect",{width:36,height:36,fill:t.backgroundColor}),a.createElement("rect",{x:"0",y:"0",width:36,height:36,transform:"translate("+t.wrapperTranslateX+" "+t.wrapperTranslateY+") rotate("+t.wrapperRotate+" 18 18) scale("+t.wrapperScale+")",fill:t.wrapperColor,rx:t.isCircle?36:6}),a.createElement("g",{transform:"translate("+t.faceTranslateX+" "+t.faceTranslateY+") rotate("+t.faceRotate+" 18 18)"},t.isMouthOpen?a.createElement("path",{d:"M15 "+(19+t.mouthSpread)+"c2 1 4 1 6 0",stroke:t.faceColor,fill:"none",strokeLinecap:"round"}):a.createElement("path",{d:"M13,"+(19+t.mouthSpread)+" a1,0.75 0 0,0 10,0",fill:t.faceColor}),a.createElement("rect",{x:14-t.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:t.faceColor}),a.createElement("rect",{x:20+t.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:t.faceColor}))))},m=function(e){var t=function(e,t){var r=l(e),n=t&&t.length;return Array.from({length:4},function(e,i){return d(r+i,t,n)})}(e.name,e.colors),r=e.name.replace(/\s/g,"");return a.createElement("svg",{viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&a.createElement("title",null,e.name),a.createElement("mask",{id:"mask__sunset",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},a.createElement("rect",{width:80,height:80,rx:e.square?void 0:160,fill:"#FFFFFF"})),a.createElement("g",{mask:"url(#mask__sunset)"},a.createElement("path",{fill:"url(#gradient_paint0_linear_"+r+")",d:"M0 0h80v40H0z"}),a.createElement("path",{fill:"url(#gradient_paint1_linear_"+r+")",d:"M0 40h80v40H0z"})),a.createElement("defs",null,a.createElement("linearGradient",{id:"gradient_paint0_linear_"+r,x1:40,y1:0,x2:40,y2:40,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:t[0]}),a.createElement("stop",{offset:1,stopColor:t[1]})),a.createElement("linearGradient",{id:"gradient_paint1_linear_"+r,x1:40,y1:40,x2:40,y2:80,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:t[2]}),a.createElement("stop",{offset:1,stopColor:t[3]}))))},_=function(e){var t=function(e,t){var r=l(e),n=t&&t.length;return Array.from({length:3},function(e,i){return{color:d(r+i,t,n),translateX:h(r*(i+1),8,1),translateY:h(r*(i+1),8,2),scale:1.2+h(r*(i+1),4)/10,rotate:h(r*(i+1),360,1)}})}(e.name,e.colors);return a.createElement("svg",{viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&a.createElement("title",null,e.name),a.createElement("mask",{id:"mask__marble",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},a.createElement("rect",{width:80,height:80,rx:e.square?void 0:160,fill:"#FFFFFF"})),a.createElement("g",{mask:"url(#mask__marble)"},a.createElement("rect",{width:80,height:80,fill:t[0].color}
1),a.createElement("path",{filter:"url(#prefix__filter0_f)",d:"M32.414 59.35L50.376 70.5H72.5v-71H33.728L26.5 13.381l19.057 27.08L32.414 59.35z",fill:t[1].color,transform:"translate("+t[1].translateX+" "+t[1].translateY+") rotate("+t[1].rotate+" 40 40) scale("+t[2].scale+")"}),a.createElement("path",{filter:"url(#prefix__filter0_f)",style:{mixBlendMode:"overlay"},d:"M22.216 24L0 46.75l14.108 38.129L78 86l-3.081-59.276-22.378 4.005 12.972 20.186-23.35 27.395L22.215 24z",fill:t[2].color,transform:"translate("+t[2].translateX+" "+t[2].translateY+") rotate("+t[2].rotate+" 40 40) scale("+t[2].scale+")"})),a.createElement("defs",null,a.createElement("filter",{id:"prefix__filter0_f",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feGaussianBlur",{stdDeviation:7,result:"effect1_foregroundBlur"}))))},y=["pixel","bauhaus","ring","beam","sunset","marble"],w={geometric:"beam",abstract:"bauhaus"},b=function(e){var t=e.variant,r=void 0===t?"marble":t,a=e.colors,l=void 0===a?["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]:a,c=e.name,u=void 0===c?"Clara Barton":c,h=e.square,d=void 0!==h&&h,b=e.title,x=void 0!==b&&b,C=e.size,S=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({colors:l,name:u,title:x,size:void 0===C?40:C,square:d},o(e,["variant","colors","name","square","title","size"]));return{pixel:s.a.createElement(v,S),bauhaus:s.a.createElement(f,S),ring:s.a.createElement(p,S),beam:s.a.createElement(g,S),sunset:s.a.createElement(m,S),marble:s.a.createElement(_,S)}[Object.keys(w).includes(r)?w[r]:y.includes(r)?r:"marble"]};t.default=b}]))},5284(e,t,r){"use strict";r.d(t,{t1:()=>wi,dN:()=>lo,ZT:()=>qr,No:()=>Ii,kc:()=>ko,FN:()=>Hi});const n="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function i(e,t,r){const i=r||(e=>Array.prototype.slice.call(e));let o=!1,a=[];return function(...r){a=i(r),o||(o=!0,n.call(window,()=>{o=!1,e.apply(t,a)}))}}const o=e=>"start"===e?"left":"end"===e?"right":"center",a=(e,t,r)=>"start"===e?t:"end"===e?r:(t+r)/2;const s=function(){let e=0;return function(){return e++}}();function l(e){return null==e}function c(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function u(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}const h=e=>("number"==typeof e||e instanceof Number)&&isFinite(+e);function d(e,t){return h(e)?e:t}function f(e,t){return void 0===e?t:e}const p=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function v(e,t,r){if(e&&"function"==typeof e.call)return e.apply(r,t)}function g(e,t,r,n){let i,o,a;if(c(e))if(o=e.length,n)for(i=o-1;i>=0;i--)t.call(r,e[i],i);else for(i=0;i<o;i++)t.call(r,e[i],i);else if(u(e))for(a=Object.keys(e),o=a.length,i=0;i<o;i++)t.call(r,e[a[i]],a[i])}function m(e,t){let r,n,i,o;if(!e||!t||e.length!==t.length)return!1;for(r=0,n=e.length;r<n;++r)if(i=e[r],o=t[r],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function _(e){if(c(e))return e.map(_);if(u(e)){const t=Object.create(null),r=Object.keys(e),n=r.length;let i=0;for(;i<n;++i)t[r[i]]=_(e[r[i]]);return t}return e}function y(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function w(e,t,r,n){if(!y(e))return;const i=t[e],o=r[e];u(i)&&u(o)?b(i,o,n):t[e]=_(o)}function b(e,t,r){const n=c(t)?t:[t],i=n.length;if(!u(e))return e;const o=(r=r||{}).merger||w;for(let a=0;a<i;++a){if(!u(t=n[a]))continue;const i=Object.keys(t);for(let n=0,a=i.length;n<a;++n)o(i[n],e,t,r)}return e}function x(e,t){return b(e,t,{merger:C})}function C(e,t,r){if(!y(e))return;const n=t[e],i=r[e];u(n)&&u(i)?x(n,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=_(i))}function S(e,t){const r=e.indexOf(".",t);return-1===r?e.length:r}function E(e,t){if(""===t)return e;let r=0,n=S(t,r);for(;e&&n>r;)e=e[t.slice(r,n)],r=n+1,n=S(t,r);return e}function M(e){return e.charAt(0).toUpperCase()+e.slice(1)}const k=e=>void 0!==e,L=e=>"function"==typeof e,R=(e,t)=>{if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0};const O=Math.PI,A=2*O,P=A+O,T=Number.POSITIVE_INFINITY,D=O/180,B=O/2,j=O/4,I=2*O/3,z=Math.log10,H=Math.sign;function F(e){const t=Math.round(e);e=W(e,t,e/1e3)?t:e;const r=Math.pow(10,Math.floor(z(e))),n=e/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r}function V(e){return!isNaN(parseFloat(e))&&isFinite(e)}function W(e,t,r){return Math.abs(e-t)<r}function N(e,t,r){let n,i,o;for(n=0,i=e.length;n<i;n++)o=e[n][r],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function U(e){return e*(O/180)}function q(e){return e*(180/O)}function Y(e){if(!h(e))return;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r++;return r}function K(e,t){const r=t.x-e.x,n=t.y-e.y,i=Math.sqrt(r*r+n*n);let o=Math.atan2(n,r);return o<-.5*O&&(o+=A),{angle:o,distance:i}}function G(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function $(e,t){return(e-t+P)%A-O}function X(e){return(e%A+A)%A}function Z(e,t,r,n){const i=X(e),o=X(t),a=X(r),s=X(o-i),l=X(a-i),c=X(i-o),u=X(i-a);return i===o||i===a||n&&o===a||s>l&&c<u}function J(e,t,r){return Math.max(t,Math.min(r,e))}function Q(e,t,r,n=1e-6){return e>=Math.min(t,r)-n&&e<=Math.max(t,r)+n}const ee=e=>0===e||1===e,te=(e,t,r)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*A/r),re=(e,t,r)=>
vendor: 1,631 bytes, line 1
1Math.pow(2,-10*e)*Math.sin((e-t)*A/r)+1,ne={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*B),easeOutSine:e=>Math.sin(e*B),easeInOutSine:e=>-.5*(Math.cos(O*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>ee(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>ee(e)?e:te(e,.075,.3),easeOutElastic:e=>ee(e)?e:re(e,.075,.3),easeInOutElastic(e){const t=.1125;return ee(e)?e:e<.5?.5*te(2*e,t,.45):.5+.5*re(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-ne.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},easeInOutBounce:e=>e<.5?.5*ne.easeInBounce(2*e):.5*ne.easeOutBounce(2*e-1)+.5};function ie(e){return e+.5|0}const oe=(e,t,r)=>
vendor: 8,870 bytes, line 1
1Math.max(Math.min(e,r),t);function ae(e){return oe(ie(2.55*e),0,255)}function se(e){return oe(ie(255*e),0,255)}function le(e){return oe(ie(e/2.55)/100,0,1)}function ce(e){return oe(ie(100*e),0,100)}const ue={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},he=[..."0123456789ABCDEF"],de=e=>he[15&e],fe=e=>he[(240&e)>>4]+he[15&e],pe=e=>(240&e)>>4==(15&e);function ve(e){var t=(e=>pe(e.r)&&pe(e.g)&&pe(e.b)&&pe(e.a))(e)?de:fe;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const ge=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function me(e,t,r){const n=t*Math.min(r,1-r),i=(t,i=(t+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function _e(e,t,r){const n=(n,i=(n+e/60)%6)=>r-r*t*Math.max(Math.min(i,4-i,1),0);return[n(5),n(3),n(1)]}function ye(e,t,r){const n=me(e,1,.5);let i;for(t+r>1&&(i=1/(t+r),t*=i,r*=i),i=0;i<3;i++)n[i]*=1-t-r,n[i]+=t;return n}function we(e){const t=e.r/255,r=e.g/255,n=e.b/255,i=Math.max(t,r,n),o=Math.min(t,r,n),a=(i+o)/2;let s,l,c;return i!==o&&(c=i-o,l=a>.5?c/(2-i-o):c/(i+o),s=function(e,t,r,n,i){return e===i?(t-r)/n+(t<r?6:0):t===i?(r-e)/n+2:(e-t)/n+4}(t,r,n,c,i),s=60*s+.5),[0|s,l||0,a]}function be(e,t,r,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,r,n)).map(se)}function xe(e,t,r){return be(me,e,t,r)}function Ce(e){return(e%360+360)%360}function Se(e){const t=ge.exec(e);let r,n=255;if(!t)return;t[5]!==r&&(n=t[6]?ae(+t[5]):se(+t[5]));const i=Ce(+t[2]),o=+t[3]/100,a=+t[4]/100;return r="hwb"===t[1]?function(e,t,r){return be(ye,e,t,r)}(i,o,a):"hsv"===t[1]?function(e,t,r){return be(_e,e,t,r)}(i,o,a):xe(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}const Ee={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Me={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let ke;function Le(e){ke||(ke=function(){const e={},t=Object.keys(Me),r=Object.keys(Ee);let n,i,o,a,s;for(n=0;n<t.length;n++){for(a=s=t[n],i=0;i<r.length;i++)o=r[i],s=s.replace(o,Ee[o]);o=parseInt(Me[a],16),e[s]=[o>>16&255,o>>8&255,255&o]}return e}(),ke.transparent=[0,0,0,0]);const t=ke[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const Re=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Oe=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,Ae=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Pe(e,t,r){if(e){let n=we(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*r,0===t?360:1)),n=xe(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function Te(e,t){return e?Object.assign(t||{},e):e}function De(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=se(e[3]))):(t=Te(e,{r:0,g:0,b:0,a:1})).a=se(t.a),t}function Be(e){return"r"===e.charAt(0)?function(e){const t=Re.exec(e);let r,n,i,o=255;if(t){if(t[7]!==r){const e=+t[7];o=t[8]?ae(e):oe(255*e,0,255)}return r=+t[1],n=+t[3],i=+t[5],r=255&(t[2]?ae(r):oe(r,0,255)),n=255&(t[4]?ae(n):oe(n,0,255)),i=255&(t[6]?ae(i):oe(i,0,255)),{r,g:n,b:i,a:o}}}(e):Se(e)}class je{constructor(e){if(e instanceof je)return e;const t=typeof e;let r;var n,i,o;"object"===t?r=De(e):"string"===t&&(o=(n=e).length,"#"===n[0]&&(4===o||5===o?i={r:255&17*ue[n[1]],g:255&17*ue[n[2]],b:255&17*ue[n[3]],a:5===o?17*ue[n[4]]:255}:7!==o&&9!==o||(i={r:ue[n[1]]<<4|ue[n[2]],g:ue[n[3]]<<4|ue[n[4]],b:ue[n[5]]<<4|ue[n[6]],a:9===o?ue[n[7]]<<4|ue[n[8]]:255})),r=i||Le(e)||Be(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=Te(this._rgb);return e&&(e.a=le(e.a)),e}set rgb(e){this._rgb=De(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${le(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?ve(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=we(e),r=t[0],n=ce(t[1]),i=ce(t[2]);return e.a<255?`hsla(${r}, ${n}%, ${i}%, ${le(e.a)})`:`hsl(${r}, ${n}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){const r=this.rgb,n=e.rgb;let i;const o=t===i?.5:t,a=2*o-1,s=r.a-n.a,l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;i=1-l,r.r=255&l*r.r+i*n.r+.5,r.g=255&l*r.g+i*n.g+.5,r.b=255&l*r.b+i*n.b+.5,r.a=o*r.a+(1-o)*n.a,this.rgb=r}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,r){const n=Ae(le(e.r)),i=Ae(le(e.g)),o=Ae(le(e.b));return{r:se(Oe(n+r*(Ae(le(t.r))-n))),g:se(Oe(i+r*(Ae(le(t.g))-i))),b:se(Oe(o+r*(Ae(le(t.b))-o))),a:e.a+r*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new je(this.rgb)}alpha(e){return this._rgb.a=se(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=ie(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Pe(this._rgb,2,e),this}darken(e){return Pe(this._rgb,2,-e),this}saturate(e){return Pe(this._rgb,1,e),this}desaturate(e){return Pe(this._rgb,1,-e),this}rotate(e){return function(e,t){var r=we(e);r[0]=Ce(r[0]+t),r=xe(r),e.r=r[0],e.g=r[1],e.b=r[2]}(this._rgb,e),this}}function Ie(e){return new je(e)}function ze(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function He(e){return ze(e)?e:Ie(e)}function Fe(e){return ze(e)?e:Ie(e).saturate(.5).darken(.1).hexString()}const Ve=Object.create(null),We=Object.create(null);function Ne(e,t){if(!t)return e;const r=t.split(".");for(let t=0,n=r.length;t<n;++t){const n=r[t];e=e[n]||(e[n]=Object.create(null))}return e}function Ue(e,t,r){return"string"==typeof t?b(Ne(e,t),r):b(Ne(e,""),t)}var qe=new class{constructor(e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>Fe(t.backgroundColor),this.hoverBorderColor=(e,t)=>Fe(t.borderColor),this.hoverColor=(e,t)=>Fe(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
1,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e)}set(e,t){return Ue(this,e,t)}get(e){return Ne(this,e)}describe(e,t){return Ue(We,e,t)}override(e,t){return Ue(Ve,e,t)}route(e,t,r,n){const i=Ne(this,e),o=Ne(this,r),a="_"+t;Object.defineProperties(i,{[a]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=o[n];return u(e)?Object.assign({},t,e):f(e,t)},set(e){this[a]=e}}})}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Ye(e,t,r,n,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,r.push(i)),o>n&&(n=o),n}function Ke(e,t,r,n){let i=(n=n||{}).data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(i=n.data={},o=n.garbageCollect=[],n.font=t),e.save(),e.font=t;let a=0;const s=r.length;let l,u,h,d,f;for(l=0;l<s;l++)if(d=r[l],null!=d&&!0!==c(d))a=Ye(e,i,o,a,d);else if(c(d))for(u=0,h=d.length;u<h;u++)f=d[u],null==f||c(f)||(a=Ye(e,i,o,a,f));e.restore();const p=o.length/2;if(p>r.length){for(l=0;l<p;l++)delete i[o[l]];o.splice(0,p)}return a}function Ge(e,t,r){const n=e.currentDevicePixelRatio,i=0!==r?Math.max(r/2,.5):0;return Math.round((t-i)*n)/n+i}function $e(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function Xe(e,t,r,n){let i,o,a,s,l;const c=t.pointStyle,u=t.rotation,h=t.radius;let d=(u||0)*D;if(c&&"object"==typeof c&&(i=c.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(r,n),e.rotate(d),e.drawImage(c,-c.width/2,-c.height/2,c.width,c.height),void e.restore();if(!(isNaN(h)||h<=0)){switch(e.beginPath(),c){default:e.arc(r,n,h,0,A),e.closePath();break;case"triangle":e.moveTo(r+Math.sin(d)*h,n-Math.cos(d)*h),d+=I,e.lineTo(r+Math.sin(d)*h,n-Math.cos(d)*h),d+=I,e.lineTo(r+Math.sin(d)*h,n-Math.cos(d)*h),e.closePath();break;case"rectRounded":l=.516*h,s=h-l,o=Math.cos(d+j)*s,a=Math.sin(d+j)*s,e.arc(r-o,n-a,l,d-O,d-B),e.arc(r+a,n-o,l,d-B,d),e.arc(r+o,n+a,l,d,d+B),e.arc(r-a,n+o,l,d+B,d+O),e.closePath();break;case"rect":if(!u){s=Math.SQRT1_2*h,e.rect(r-s,n-s,2*s,2*s);break}d+=j;case"rectRot":o=Math.cos(d)*h,a=Math.sin(d)*h,e.moveTo(r-o,n-a),e.lineTo(r+a,n-o),e.lineTo(r+o,n+a),e.lineTo(r-a,n+o),e.closePath();break;case"crossRot":d+=j;case"cross":o=Math.cos(d)*h,a=Math.sin(d)*h,e.moveTo(r-o,n-a),e.lineTo(r+o,n+a),e.moveTo(r+a,n-o),e.lineTo(r-a,n+o);break;case"star":o=Math.cos(d)*h,a=Math.sin(d)*h,e.moveTo(r-o,n-a),e.lineTo(r+o,n+a),e.moveTo(r+a,n-o),e.lineTo(r-a,n+o),d+=j,o=Math.cos(d)*h,a=Math.sin(d)*h,e.moveTo(r-o,n-a),e.lineTo(r+o,n+a),e.moveTo(r+a,n-o),e.lineTo(r-a,n+o);break;case"line":o=Math.cos(d)*h,a=Math.sin(d)*h,e.moveTo(r-o,n-a),e.lineTo(r+o,n+a);break;case"dash":e.moveTo(r,n),e.lineTo(r+Math.cos(d)*h,n+Math.sin(d)*h)}e.fill(),t.borderWidth>0&&e.stroke()}}function Ze(e,t,r){return r=r||.5,!t||e&&e.x>t.left-r&&e.x<t.right+r&&e.y>t.top-r&&e.y<t.bottom+r}function Je(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Qe(e){e.restore()}function et(e,t,r,n,i){if(!t)return e.lineTo(r.x,r.y);if("middle"===i){const n=(t.x+r.x)/2;e.lineTo(n,t.y),e.lineTo(n,r.y)}else"after"===i!=!!n?e.lineTo(t.x,r.y):e.lineTo(r.x,t.y);e.lineTo(r.x,r.y)}function tt(e,t,r,n){if(!t)return e.lineTo(r.x,r.y);e.bezierCurveTo(n?t.cp1x:t.cp2x,n?t.cp1y:t.cp2y,n?r.cp2x:r.cp1x,n?r.cp2y:r.cp1y,r.x,r.y)}function rt(e,t,r,n,i,o={}){const a=c(t)?t:[t],s=o.strokeWidth>0&&""!==o.strokeColor;let u,h;for(e.save(),e.font=i.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]);l(t.rotation)||e.rotate(t.rotation);t.color&&(e.fillStyle=t.color);t.textAlign&&(e.textAlign=t.textAlign);t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,o),u=0;u<a.length;++u)h=a[u],s&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),l(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(h,r,n,o.maxWidth)),e.fillText(h,r,n,o.maxWidth),nt(e,r,n,h,o),n+=i.lineHeight;e.restore()}function nt(e,t,r,n,i){if(i.strikethrough||i.underline){const o=e.measureText(n),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=r-o.actualBoundingBoxAscent,c=r+o.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,u),e.lineTo(s,u),e.stroke()}}function it(e,t){const{x:r,y:n,w:i,h:o,radius:a}=t;
1e.arc(r+a.topLeft,n+a.topLeft,a.topLeft,-B,O,!0),e.lineTo(r,n+o-a.bottomLeft),e.arc(r+a.bottomLeft,n+o-a.bottomLeft,a.bottomLeft,O,B,!0),e.lineTo(r+i-a.bottomRight,n+o),e.arc(r+i-a.bottomRight,n+o-a.bottomRight,a.bottomRight,B,0,!0),e.lineTo(r+i,n+a.topRight),e.arc(r+i-a.topRight,n+a.topRight,a.topRight,0,-B,!0),e.lineTo(r+a.topLeft,n)}const ot=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),at=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function st(e,t){const r=(""+e).match(ot);if(!r||"normal"===r[1])return 1.2*t;switch(e=+r[2],r[3]){case"px":return e;case"%":e/=100}return t*e}const lt=e=>+e||0;function ct(e,t){const r={},n=u(t),i=n?Object.keys(t):t,o=u(e)?n?r=>f(e[r],e[t[r]]):t=>e[t]:()=>e;for(const e of i)r[e]=lt(o(e));return r}function ut(e){return ct(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ht(e){return ct(e,["topLeft","topRight","bottomLeft","bottomRight"])}function dt(e){const t=ut(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function ft(e,t){e=e||{},t=t||qe.font;let r=f(e.size,t.size);"string"==typeof r&&(r=parseInt(r,10));let n=f(e.style,t.style);n&&!(""+n).match(at)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const i={family:f(e.family,t.family),lineHeight:st(f(e.lineHeight,t.lineHeight),r),size:r,style:n,weight:f(e.weight,t.weight),string:""};return i.string=function(e){return!e||l(e.size)||l(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i}function pt(e,t,r,n){let i,o,a,s=!0;for(i=0,o=e.length;i<o;++i)if(a=e[i],void 0!==a&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==r&&c(a)&&(a=a[r%a.length],s=!1),void 0!==a))return n&&!s&&(n.cacheable=!1),a}function vt(e,t){return Object.assign(Object.create(e),t)}function gt(e,t,r){r=r||(r=>e[r]<t);let n,i=e.length-1,o=0;for(;i-o>1;)n=o+i>>1,r(n)?o=n:i=n;return{lo:o,hi:i}}const mt=(e,t,r)=>gt(e,r,n=>e[n][t]<r),_t=(e,t,r)=>gt(e,r,n=>e[n][t]>=r);const yt=["push","pop","shift","splice","unshift"];function wt(e,t){const r=e._chartjs;if(!r)return;const n=r.listeners,i=n.indexOf(t);-1!==i&&n.splice(i,1),n.length>0||(yt.forEach(t=>{delete e[t]}),delete e._chartjs)}function bt(e){const t=new Set;let r,n;for(r=0,n=e.length;r<n;++r)t.add(e[r]);return t.size===n?e:Array.from(t)}function xt(e,t=[""],r=e,n,i=()=>e[0]){k(n)||(n=Tt("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:r,_fallback:n,_getTarget:i,override:i=>xt([i,...e],t,r,n)};return new Proxy(o,{deleteProperty:(t,r)=>(delete t[r],delete t._keys,delete e[0][r],!0),get:(r,n)=>kt(r,n,()=>function(e,t,r,n){let i;for(const o of t)if(i=Tt(Et(o,e),r),k(i))return Mt(e,i)?At(r,n,e,i):i}(n,t,e,r)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>Dt(e).includes(t),ownKeys:e=>Dt(e),set(e,t,r){const n=e._storage||(e._storage=i());return e[t]=n[t]=r,delete e._keys,!0}})}function Ct(e,t,r,n){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:r,_stack:new Set,_descriptors:St(e,n),setContext:t=>Ct(e,t,r,n),override:i=>Ct(e.override(i),t,r,n)};return new Proxy(i,{deleteProperty:(t,r)=>(delete t[r],delete e[r],!0),get:(e,t,r)=>kt(e,t,()=>function(e,t,r){const{_proxy:n,_context:i,_subProxy:o,_descriptors:a}=e;let s=n[t];L(s)&&a.isScriptable(t)&&(s=function(e,t,r,n){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=r;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e),t=t(o,a||n),s.delete(e),Mt(e,t)&&(t=At(i._scopes,i,e,t));return t}(t,s,e,r));c(s)&&s.length&&(s=function(e,t,r,n){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=r;if(k(o.index)&&n(e))t=t[o.index%t.length];else if(u(t[0])){const r=t,n=i._scopes.filter(e=>e!==r);t=[];for(const l of r){const r=At(n,i,e,l);t.push(Ct(r,o,a&&a[e],s))}}return t}(t,s,e,a.isIndexable));Mt(t,s)&&(s=Ct(s,i,o&&o[t],a));return s}(e,t,r)),getOwnPropertyDescriptor:(t,r)=>t._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,r)=>Reflect.has(e,r),ownKeys:()=>Reflect.ownKeys(e),set:(t,r,n)=>(e[r]=n,delete t[r],!0)})}function St(e,t={scriptable:!0,indexable:!0}){const{_scriptable:r=t.scriptable,_indexable:n=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:r,indexable:n,isScriptable:L(r)?r:()=>r,isIndexable:L(n)?n:()=>n}}const Et=(e,t)=>
vendor: 30,898 bytes, line 1
1e?e+M(t):t,Mt=(e,t)=>u(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function kt(e,t,r){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const n=r();return e[t]=n,n}function Lt(e,t,r){return L(e)?e(t,r):e}const Rt=(e,t)=>!0===e?t:"string"==typeof e?E(t,e):void 0;function Ot(e,t,r,n,i){for(const o of t){const t=Rt(r,o);if(t){e.add(t);const o=Lt(t._fallback,r,i);if(k(o)&&o!==r&&o!==n)return o}else if(!1===t&&k(n)&&r!==n)return null}return!1}function At(e,t,r,n){const i=t._rootScopes,o=Lt(t._fallback,r,n),a=[...e,...i],s=new Set;s.add(n);let l=Pt(s,a,r,o||r,n);return null!==l&&((!k(o)||o===r||(l=Pt(s,a,o,l,n),null!==l))&&xt(Array.from(s),[""],i,o,()=>function(e,t,r){const n=e._getTarget();t in n||(n[t]={});const i=n[t];if(c(i)&&u(r))return r;return i}(t,r,n)))}function Pt(e,t,r,n,i){for(;r;)r=Ot(e,t,r,n,i);return r}function Tt(e,t){for(const r of t){if(!r)continue;const t=r[e];if(k(t))return t}}function Dt(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const r of e)for(const e of Object.keys(r).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function Bt(e,t,r,n){const{iScale:i}=e,{key:o="r"}=this._parsing,a=new Array(n);let s,l,c,u;for(s=0,l=n;s<l;++s)c=s+r,u=t[c],a[s]={r:i.parse(E(u,o),c)};return a}const jt=Number.EPSILON||1e-14,It=(e,t)=>t<e.length&&!e[t].skip&&e[t],zt=e=>"x"===e?"y":"x";function Ht(e,t,r,n){const i=e.skip?t:e,o=t,a=r.skip?t:r,s=G(o,i),l=G(a,o);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const h=n*c,d=n*u;return{previous:{x:o.x-h*(a.x-i.x),y:o.y-h*(a.y-i.y)},next:{x:o.x+d*(a.x-i.x),y:o.y+d*(a.y-i.y)}}}function Ft(e,t="x"){const r=zt(t),n=e.length,i=Array(n).fill(0),o=Array(n);let a,s,l,c=It(e,0);for(a=0;a<n;++a)if(s=l,l=c,c=It(e,a+1),l){if(c){const e=c[t]-l[t];i[a]=0!==e?(c[r]-l[r])/e:0}o[a]=s?c?H(i[a-1])!==H(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}!function(e,t,r){const n=e.length;let i,o,a,s,l,c=It(e,0);for(let u=0;u<n-1;++u)l=c,c=It(e,u+1),l&&c&&(W(t[u],0,jt)?r[u]=r[u+1]=0:(i=r[u]/t[u],o=r[u+1]/t[u],s=Math.pow(i,2)+Math.pow(o,2),s<=9||(a=3/Math.sqrt(s),r[u]=i*a*t[u],r[u+1]=o*a*t[u])))}(e,i,o),function(e,t,r="x"){const n=zt(r),i=e.length;let o,a,s,l=It(e,0);for(let c=0;c<i;++c){if(a=s,s=l,l=It(e,c+1),!s)continue;const i=s[r],u=s[n];a&&(o=(i-a[r])/3,s[`cp1${r}`]=i-o,s[`cp1${n}`]=u-o*t[c]),l&&(o=(l[r]-i)/3,s[`cp2${r}`]=i+o,s[`cp2${n}`]=u+o*t[c])}}(e,o,t)}function Vt(e,t,r){return Math.max(Math.min(e,r),t)}function Wt(e,t,r,n,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)Ft(e,i);else{let r=n?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)s=e[o],l=Ht(r,s,e[Math.min(o+1,a-(n?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,r=s}t.capBezierPoints&&function(e,t){let r,n,i,o,a,s=Ze(e[0],t);for(r=0,n=e.length;r<n;++r)a=o,o=s,s=r<n-1&&Ze(e[r+1],t),o&&(i=e[r],a&&(i.cp1x=Vt(i.cp1x,t.left,t.right),i.cp1y=Vt(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=Vt(i.cp2x,t.left,t.right),i.cp2y=Vt(i.cp2y,t.top,t.bottom)))}(e,r)}function Nt(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ut(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function qt(e,t,r){let n;return"string"==typeof e?(n=parseInt(e,10),-1!==e.indexOf("%")&&(n=n/100*t.parentNode[r])):n=e,n}const Yt=e=>window.getComputedStyle(e,null);const Kt=["top","right","bottom","left"];function Gt(e,t,r){const n={};r=r?"-"+r:"";for(let i=0;i<4;i++){const o=Kt[i];n[o]=parseFloat(e[t+"-"+o+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function $t(e,t){if("native"in e)return e;const{canvas:r,currentDevicePixelRatio:n}=t,i=Yt(r),o="border-box"===i.boxSizing,a=Gt(i,"padding"),s=Gt(i,"border","width"),{x:l,y:c,box:u}=function(e,t){const r=e.touches,n=r&&r.length?r[0]:e,{offsetX:i,offsetY:o}=n;let a,s,l=!1;if(((e,t,r)=>(e>0||t>0)&&(!r||!r.shadowRoot))(i,o,e.target))a=i,s=o;else{const e=t.getBoundingClientRect();a=n.clientX-e.left,s=n.clientY-e.top,l=!0}return{x:a,y:s,box:l}}(e,r),h=a.left+(u&&s.left),d=a.top+(u&&s.top);let{width:f,height:p}=t;return o&&(f-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-h)/f*r.width/n),y:Math.round((c-d)/p*r.height/n)}}const Xt=e=>Math.round(10*e)/10;function Zt(e,t,r,n){const i=Yt(e),o=Gt(i,"margin"),a=qt(i.maxWidth,e,"clientWidth")||T,s=qt(i.maxHeight,e,"clientHeight")||T,l=function(e,t,r){let n,i;if(void 0===t||void 0===r){const o=Ut(e);if(o){const e=o.getBoundingClientRect(),a=Yt(o),s=Gt(a,"border","width"),l=Gt(a,"padding");t=e.width-l.width-s.width,r=e.height-l.height-s.height,n=qt(a.maxWidth,o,"clientWidth"),i=qt(a.maxHeight,o,"clientHeight")}else t=e.clientWidth,r=e.clientHeight}return{width:t,height:r,maxWidth:n||T,maxHeight:i||T}}(e,t,r);let{width:c,height:u}=l;if("content-box"===i.boxSizing){const e=Gt(i,"border","width"),t=Gt(i,"padding");c-=t.width+e.width,u-=t.height+e.height}return c=Math.max(0,c-o.width),u=Math.max(0,n?Math.floor(c/n):u-o.height),c=Xt(Math.min(c,a,l.maxWidth)),u=Xt(Math.min(u,s,l.maxHeight)),c&&!u&&(u=Xt(c/2)),{width:c,height:u}}function Jt(e,t,r){const n=t||1,i=Math.floor(e.height*n),o=Math.floor(e.width*n);e.height=i/n,e.width=o/n;const a=e.canvas;return a.style&&(r||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==n||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=n,a.height=i,a.width=o,e.ctx.setTransform(n,0,0,n,0,0),!0)}const Qt=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function er(e,t){const r=function(e,t){return Yt(e).getPropertyValue(t)}(e,t),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function tr(e,t,r,n){return{x:e.x+r*(t.x-e.x),y:e.y+r*(t.y-e.y)}}function rr(e,t,r,n){return{x:e.x+r*(t.x-e.x),y:"middle"===n?r<.5?e.y:t.y:"after"===n?r<1?e.y:t.y:r>0?t.y:e.y}}function nr(e,t,r,n){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=tr(e,i,r),s=tr(i,o,r),l=tr(o,t,r),c=tr(a,s,r),u=tr(s,l,r);return tr(c,u,r)}const ir=new Map;function or(e,t,r){return function(e,t){t=t||{};const r=e+JSON.stringify(t);let n=ir.get(r);return n||(n=new Intl.NumberFormat(e,t),ir.set(r,n)),n}(t,r).format(e)}function ar(e,t,r){return e?function(e,t){return{x:r=>e+e+t-r,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,r):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function sr(e,t){let r,n;"ltr"!==t&&"rtl"!==t||(r=e.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",t,"important"),e.prevTextDirection=n)}function lr(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function cr(e){return"angle"===e?{between:Z,compare:$,normalize:X}:{between:Q,compare:(e,t)=>e-t,normalize:e=>e}}function ur({start:e,end:t,count:r,loop:n,style:i}){return{start:e%r,end:t%r,loop:n&&(t-e+1)%r==0,style:i}}function hr(e,t,r){if(!r)return[e];const{property:n,start:i,end:o}=r,a=t.length,{compare:s,between:l,normalize:c}=cr(n),{start:u,end:h,loop:d,style:f}=function(e,t,r){const{property:n,start:i,end:o}=r,{between:a,normalize:s}=cr(n),l=t.length;let c,u,{start:h,end:d,loop:f}=e;if(f){for(h+=l,d+=l,c=0,u=l;c<u&&a(s(t[h%l][n]),i,o);++c)h--,d--;h%=l,d%=l}return d<h&&(d+=l),{start:h,end:d,loop:f,style:e.style}}(e,t,r),p=[];let v,g,m,_=!1,y=null;const w=()=>_||l(i,m,v)&&0!==s(i,m),b=()=>!_||0===s(o,v)||l(o,m,v);for(let e=u,r=u;e<=h;++e)g=t[e%a],g.skip||(v=c(g[n]),v!==m&&(_=l(v,i,o),null===y&&w()&&(y=0===s(v,i)?e:r),null!==y&&b()&&(p.push(ur({start:y,end:e,loop:d,count:a,style:f})),y=null),r=e,m=v));return null!==y&&p.push(ur({start:y,end:h,loop:d,count:a,style:f})),p}function dr(e,t){const r=[],n=e.segments;for(let i=0;i<n.length;i++){const o=hr(n[i],e.points,t);o.length&&r.push(...o)}return r}function fr(e,t,r,n){return n&&n.setContext&&r?function(e,t,r,n){const i=e._chart.getContext(),o=pr(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=r.length,c=[];let u=o,h=t[0].start,d=h;function f(e,t,n,i){const o=s?-1:1;if(e!==t){for(e+=l;r[e%l].skip;)e-=o;for(;r[t%l].skip;)t+=o;e%l!==t%l&&(c.push({start:e%l,end:t%l,loop:n,style:i}),u=i,h=t%l)}}for(const e of t){h=s?h:e.start;let t,o=r[h%l];for(d=h+1;d<=e.end;d++){const s=r[d%l];t=pr(n.setContext(vt(i,{type:"segment",p0:o,p1:s,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:a}))),vr(t,u)&&f(h,d-1,e.loop,u),o=s,u=t}h<d-1&&f(h,d-1,e.loop,u)}return c}(e,t,r,n):t}function pr(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function vr(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}var gr=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,r,n){const i=t.listeners[n],o=t.duration;i.forEach(n=>n({chart:e,initial:t.initial,numSteps:o,currentStep:Math.min(r-t.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=n.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((r,n)=>{if(!r.running||!r.items.length)return;const i=r.items;let o,a=i.length-1,s=!1;for(;a>=0;--a)o=i[a],o._active?(o._total>r.duration&&(r.duration=o._total),o.tick(e),s=!0):(i[a]=i[i.length-1],i.pop());s&&(n.draw(),this._notify(n,r,e,"progress")),i.length||(r.running=!1,this._notify(n,r,e,"complete"),r.initial=!1),t+=i.length}),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let r=t.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,r)),r}listen(e,t,r){this._getAnims(e).listeners[t].push(r)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const r=t.items;let n=r.length-1;for(;n>=0;--n)r[n].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}};const mr="transparent",_r={boolean:(e,t,r)=>r>.5?t:e,color(e,t,r){const n=He(e||mr),i=n.valid&&He(t||mr);return i&&i.valid?i.mix(n,r).hexString():t},number:(e,t,r)=>e+(t-e)*r};class yr{constructor(e,t,r,n){const i=t[r];n=pt([e.to,n,i,e.from]);const o=pt([e.from,i,n]);this._active=!0,this._fn=e.fn||_r[e.type||typeof o],this._easing=ne[e.easing]||ne.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=r,this._from=o,this._to=n,this._promises=void 0}active(){return this._active}update(e,t,r){if(this._active){this._notify(!1);const n=this._target[this._prop],i=r-this._start,o=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=pt([e.to,t,n,e.from]),this._from=pt([e.from,n,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,r=this._duration,n=this._prop,i=this._from,o=this._loop,a=this._to;let s;if(this._active=i!==a&&(o||t<r),!this._active)return this._target[n]=a,void this._notify(!0);t<0?this._target[n]=i:(s=t/r%2,s=o&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[n]=this._fn(i,a,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise((t,r)=>{e.push({res:t,rej:r})})}_notify(e){const t=e?"res":"rej",r=this._promises||[];for(let e=0;e<r.length;e++)r[e][t]()}}qe.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const wr=Object.keys(qe.animation);qe.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),qe.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),qe.describe("animations",{_fallback:"animation"}),qe.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}});class br{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!u(e))return;const t=this._properties;Object.getOwnPropertyNames(e).forEach(r=>{const n=e[r];if(!u(n))return;const i={};for(const e of wr)i[e]=n[e];(c(n.properties)&&n.properties||[r]).forEach(e=>{e!==r&&t.has(e)||t.set(e,i)})})}_animateOptions(e,t){const r=t.options,n=function(e,t){if(!t)return;let r=e.options;if(!r)return void(e.options=t);r.$shared&&(e.options=r=Object.assign({},r,{$shared:!1,$animations:{}}));return r}(e,r);if(!n)return[];const i=this._createAnimations(n,r);return r.$shared&&function(e,t){const r=[],n=Object.keys(t);for(let t=0;t<n.length;t++){const i=e[n[t]];i&&i.active()&&r.push(i.wait())}return Promise.all(r)}(e.options.$animations,r).then(()=>{e.options=r},()=>{}),i}_createAnimations(e,t){const r=this._properties,n=[],i=e.$animations||(e.$animations={}),o=Object.keys(t),a=Date.now();let s;for(s=o.length-1;s>=0;--s){const l=o[s];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(e,t));continue}const c=t[l];let u=i[l];const h=r.get(l);if(u){if(h&&u.active()){u.update(h,c,a);continue}u.cancel()}h&&h.duration?(i[l]=u=new yr(h,e,l,c),n.push(u)):e[l]=c}return n}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const r=this._createAnimations(e,t);return r.length?(gr.add(this._chart,r),!0):void 0}}function xr(e,t){const r=e&&e.options||{},n=r.reverse,i=void 0===r.min?t:0,o=void 0===r.max?t:0;return{start:n?o:i,end:n?i:o}}function Cr(e,t){const r=[],n=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=n.length;i<o;++i)r.push(n[i].index);return r}function Sr(e,t,r,n={}){const i=e.keys,o="single"===n.mode;let a,s,l,c;if(null!==t){for(a=0,s=i.length;a<s;++a){if(l=+i[a],l===r){if(n.all)continue;break}c=e.values[l],h(c)&&(o||0===t||H(t)===H(c))&&(t+=c)}return t}}function Er(e,t){const r=e&&e.options.stacked;return r||void 0===r&&void 0!==t.stack}function Mr(e,t,r){const n=e[t]||(e[t]={});return n[r]||(n[r]={})}function kr(e,t,r,n){for(const i of t.getMatchingVisibleMetas(n).reverse()){const t=e[i.index];if(r&&t>0||!r&&t<0)return i.index}return null}function Lr(e,t){const{chart:r,_cachedMeta:n}=e,i=r._stacks||(r._stacks={}),{iScale:o,vScale:a,index:s}=n,l=o.axis,c=a.axis,u=function(e,t,r){return`${e.id}.${t.id}.${r.stack||r.type}`}(o,a,n),h=t.length;let d;for(let e=0;e<h;++e){const r=t[e],{[l]:o,[c]:h}=r;d=(r._stacks||(r._stacks={}))[c]=Mr(i,u,o),d[s]=h,d._top=kr(d,a,!0,n.type),d._bottom=kr(d,a,!1,n.type)}}function Rr(e,t){const r=e.scales;return Object.keys(r).filter(e=>r[e].axis===t).shift()}function Or(e,t){const r=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[n]||void 0===t[n][r])return;delete t[n][r]}}}const Ar=e=>"reset"===e||"none"===e,Pr=(e,t)=>t?e:Object.assign({},e);class Tr{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Er(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&Or(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,r=this.getDataset(),n=(e,t,r,n)=>"x"===e?t:"r"===e?n:r,i=t.xAxisID=f(r.xAxisID,Rr(e,"x")),o=t.yAxisID=f(r.yAxisID,Rr(e,"y")),a=t.rAxisID=f(r.rAxisID,Rr(e,"r")),s=t.indexAxis,l=t.iAxisID=n(s,i,o,a),c=t.vAxisID=n(s,o,i,a);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(o),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&wt(this._data,this),e._stacked&&Or(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),r=this._data;if(u(t))this._data=function(e){const t=Object.keys(e),r=new Array(t.length);let n,i,o;for(n=0,i=t.length;n<i;++n)o=t[n],r[n]={x:o,y:e[o]};return r}(t);else if(r!==t){if(r){wt(r,this);const e=this._cachedMeta;Or(e),e._parsed=[]}t&&Object.isExtensible(t)&&(i=this,(n=t)._chartjs?n._chartjs.listeners.push(i):(Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[i]}}),yt.forEach(e=>{const t="_onData"+M(e),r=n[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value(...e){const i=r.apply(this,e);return n._chartjs.listeners.forEach(r=>{"function"==typeof r[t]&&r[t](...e)}),i}})}))),this._syncList=[],this._data=t}var n,i}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,r=this.getDataset();let n=!1;this._dataCheck();const i=t._stacked;t._stacked=Er(t.vScale,t),t.stack!==r.stack&&(n=!0,Or(t),t.stack=r.stack),this._resyncElements(e),(n||i!==t._stacked)&&Lr(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:r,_data:n}=this,{iScale:i,_stacked:o}=r,a=i.axis;let s,l,h,d=0===e&&t===n.length||r._sorted,f=e>0&&r._parsed[e-1];if(!1===this._parsing)r._parsed=n,r._sorted=!0,h=n;else{h=c(n[e])?this.parseArrayData(r,n,e,t):u(n[e])?this.parseObjectData(r,n,e,t):this.parsePrimitiveData(r,n,e,t);const i=()=>null===l[a]||f&&l[a]<f[a];for(s=0;s<t;++s)r._parsed[s+e]=l=h[s],d&&(i()&&(d=!1),f=l);r._sorted=d}o&&Lr(this,h)}parsePrimitiveData(e,t,r,n){const{iScale:i,vScale:o}=e,a=i.axis,s=o.axis,l=i.getLabels(),c=i===o,u=new Array(n);let h,d,f;for(h=0,d=n;h<d;++h)f=h+r,u[h]={[a]:c||i.parse(l[f],f),[s]:o.parse(t[f],f)};return u}parseArrayData(e,t,r,n){const{xScale:i,yScale:o}=e,a=new Array(n);let s,l,c,u;for(s=0,l=n;s<l;++s)c=s+r,u=t[c],a[s]={x:i.parse(u[0],c),y:o.parse(u[1],c)};return a}parseObjectData(e,t,r,n){const{xScale:i,yScale:o}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(n);let c,u,h,d;for(c=0,u=n;c<u;++c)h=c+r,d=t[h],l[c]={x:i.parse(E(d,a),h),y:o.parse(E(d,s),h)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,r){const n=this.chart,i=this._cachedMeta,o=t[e.axis];return Sr({keys:Cr(n,!0),values:t._stacks[e.axis]},o,i.index,{mode:r})}updateRangeFromParsed(e,t,r,n){const i=r[t.axis];let o=null===i?NaN:i;const a=n&&r._stacks[t.axis];n&&a&&(n.values=a,o=Sr(n,i,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,t){const r=this._cachedMeta,n=r._parsed,i=r._sorted&&e===r.iScale,o=n.length,a=this._getOtherScale(e),s=((e,t,r)=>e&&!t.hidden&&t._stacked&&{keys:Cr(r,!0),values:null})(t,r,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:r,minDefined:n,maxDefined:i}=e.getUserBounds();return{min:n?t:Number.NEGATIVE_INFINITY,max:i?r:Number.POSITIVE_INFINITY}}(a);let d,f;function p(){f=n[d];const t=f[a.axis];return!h(f[e.axis])||c>t||u<t}for(d=0;d<o&&(p()||(this.updateRangeFromParsed(l,e,f,s),!i));++d);if(i)for(d=o-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(l,e,f,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,r=[];let n,i,o;for(n=0,i=t.length;n<i;++n)o=t[n][e.axis],h(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,r=t.iScale,n=t.vScale,i=this.getParsed(e);return{label:r?""+r.getLabelForValue(i[r.axis]):"",value:n?""+n.getLabelForValue(i[n.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,r,n,i;return u(e)?(t=e.top,r=e.right,n=e.bottom,i=e.left):t=r=n=i=e,{top:t,right:r,bottom:n,left:i,disabled:!1===e}}(f(this.options.clip,function(e,t,r){if(!1===r)return!1;const n=xr(e,r),i=xr(t,r);return{top:i.end,right:n.end,bottom:i.start,left:n.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,r=this._cachedMeta,n=r.data||[],i=t.chartArea,o=[],a=this._drawStart||0,s=this._drawCount||n.length-a,l=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(e,i,a,s),c=a;c<a+s;++c){const t=n[c];t.hidden||(t.active&&l?o.push(t):t.draw(e,i))}for(c=0;c<o.length;++c)o[c].draw(e,i)}getStyle(e,t){const r=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,t,r){const n=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];i=t.$context||(t.$context=function(e,t,r){return vt(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:r,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),i.parsed=this.getParsed(e),i.raw=n.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=function(e,t){return vt(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),i.dataset=n,i.index=i.datasetIndex=this.index;return i.active=!!t,i.mode=r,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",r){const n="active"===t,i=this._cachedDataOpts,o=e+"-"+t,a=i[o],s=this.enableOptionSharing&&k(r);if(a)return Pr(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=n?[`${e}Hover`,"hover",e,""]:[e,""],h=l.getOptionScopes(this.getDataset(),c),d=Object.keys(qe.elements[e]),f=l.resolveNamedOptions(h,d,()=>this.getContext(r,n),u);return f.$shared&&(f.$shared=s,i[o]=Object.freeze(Pr(f,s))),f}_resolveAnimations(e,t,r){const n=this.chart,i=this._cachedDataOpts,o=`animation-${t}`,a=i[o];if(a)return a;let s;if(!1!==n.options.animation){const n=this.chart.config,i=n.datasetAnimationScopeKeys(this._type,t),o=n.getOptionScopes(this.getDataset(),i);s=n.createResolver(o,this.getContext(e,r,t))}const l=new br(n,s&&s.animations);return s&&s._cacheable&&(i[o]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||Ar(e)||this.chart._animationsDisabled}updateElement(e,t,r,n){Ar(n)?Object.assign(e,r):this._resolveAnimations(t,n).update(e,r)}updateSharedOptions(e,t,r){e&&!Ar(t)&&this._resolveAnimations(void 0,t).update(e,r)}_setStyle(e,t,r,n){e.active=n;const i=this.getStyle(t,n);this._resolveAnimations(t,r,n).update(e,{options:!n&&this.getSharedOptions(i)||i})}removeHoverStyle(e,t,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,t,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,r=this._cachedMeta.data;for(const[e,t,r]of this._syncList)this[e](t,r);this._syncList=[];const n=r.length,i=t.length,o=Math.min(i,n);o&&this.parse(0,o),i>n?this._insertElements(n,i-n,e):i<n&&this._removeElements(i,n-i)}_insertElements(e,t,r=!0){const n=this._cachedMeta,i=n.data,o=e+t;let a;const s=e=>{for(e.length+=t,a=e.length-1;a>=o;a--)e[a]=e[a-t]};for(s(i),a=e;a<o;++a)i[a]=new this.dataElementType;this._parsing&&s(n._parsed),this.parse(e,t),r&&this.updateElements(i,e,t,"reset")}updateElements(e,t,r,n){}_removeElements(e,t){const r=this._cachedMeta;if(this._parsing){const n=r._parsed.splice(e,t);r._stacked&&Or(r,n)}r.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,r,n]=e;this[t](r,n)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Dr(e){const t=e.iScale,r=function(e,t){if(!e._cache.$bar){const r=e.getMatchingVisibleMetas(t);let n=[];for(let t=0,i=r.length;t<i;t++)n=n.concat(r[t].controller.getAllParsedValues(e));e._cache.$bar=bt(n.sort((e,t)=>e-t))}return e._cache.$bar}(t,e.type);let n,i,o,a,s=t._length;const l=()=>{32767!==o&&-32768!==o&&(k(a)&&(s=Math.min(s,Math.abs(o-a)||s)),a=o)};for(n=0,i=r.length;n<i;++n)o=t.getPixelForValue(r[n]),l();for(a=void 0,n=0,i=t.ticks.length;n<i;++n)o=t.getPixelForTick(n),l();return s}function Br(e,t,r,n){return c(e)?function(e,t,r,n){const i=r.parse(e[0],n),o=r.parse(e[1],n),a=Math.min(i,o),s=Math.max(i,o);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),t[r.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:a,max:s}}(e,t,r,n):t[r.axis]=r.parse(e,n),t}function jr(e,t,r,n){const i=e.iScale,o=e.vScale,a=i.getLabels(),s=i===o,l=[];let c,u,h,d;for(c=r,u=r+n;c<u;++c)d=t[c],h={},h[i.axis]=s||i.parse(a[c],c),l.push(Br(d,h,o,c));return l}function Ir(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function zr(e,t,r,n){let i=t.borderSkipped;const o={};if(!i)return void(e.borderSkipped=o);const{start:a,end:s,reverse:l,top:c,bottom:u}=function(e){let t,r,n,i,o;return e.horizontal?(t=e.base>e.x,r="left",n="right"):(t=e.base<e.y,r="bottom",n="top"),t?(i="end",o="start"):(i="start",o="end"),{start:r,end:n,reverse:t,top:i,bottom:o}}(e);"middle"===i&&r&&(e.enableBorderRadius=!0,(r._top||0)===n?i=c:(r._bottom||0)===n?i=u:(o[Hr(u,a,s,l)]=!0,i=c)),o[Hr(i,a,s,l)]=!0,e.borderSkipped=o}function Hr(e,t,r,n){var i,o,a;return n?(a=r,e=Fr(e=(i=e)===(o=t)?a:i===a?o:i,r,t)):e=Fr(e,t,r),e}function Fr(e,t,r){return"start"===e?t:"end"===e?r:e}function Vr(e,{inflateAmount:t},r){e.inflateAmount="auto"===t?1===r?.33:0:t}Tr.defaults={},Tr.prototype.datasetElementType=null,Tr.prototype.dataElementType=null;class Wr extends Tr{parsePrimitiveData(e,t,r,n){return jr(e,t,r,n)}parseArrayData(e,t,r,n){return jr(e,t,r,n)}parseObjectData(e,t,r,n){const{iScale:i,vScale:o}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===i.axis?a:s,c="x"===o.axis?a:s,u=[];let h,d,f,p;for(h=r,d=r+n;h<d;++h)p=t[h],f={},f[i.axis]=i.parse(E(p,l),h),u.push(Br(E(p,c),f,o,h));return u}updateRangeFromParsed(e,t,r,n){super.updateRangeFromParsed(e,t,r,n);const i=r._custom;i&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:r,vScale:n}=t,i=this.getParsed(e),o=i._custom,a=Ir(o)?"["+o.start+", "+o.end+"]":""+n.getLabelForValue(i[n.axis]);return{label:""+r.getLabelForValue(i[r.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,r,n){const i="reset"===n,{index:o,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),h=this.resolveDataElementOptions(t,n),d=this.getSharedOptions(h),f=this.includeOptions(n,d);this.updateSharedOptions(d,n,h);for(let h=t;h<t+r;h++){const t=this.getParsed(h),r=i||l(t[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(h),p=this._calculateBarIndexPixels(h,u),v=(t._stacks||{})[a.axis],g={horizontal:c,base:r.base,enableBorderRadius:!v||Ir(t._custom)||o===v._top||o===v._bottom,x:c?r.head:p.center,y:c?p.center:r.head,height:c?p.size:Math.abs(r.size),width:c?Math.abs(r.size):p.size};f&&(g.options=d||this.resolveDataElementOptions(h,e[h].active?"active":n));const m=g.options||e[h].options;zr(g,m,v,o),Vr(g,m,u.ratio),this.updateElement(e[h],h,g,n)}}_getStacks(e,t){const r=this._cachedMeta.iScale,n=r.getMatchingVisibleMetas(this._type),i=r.options.stacked,o=n.length,a=[];let s,c;for(s=0;s<o;++s)if(c=n[s],c.controller.options.grouped){if(void 0!==t){const e=c.controller.getParsed(t)[c.controller._cachedMeta.vScale.axis];if(l(e)||isNaN(e))continue}if((!1===i||-1===a.indexOf(c.stack)||void 0===i&&void 0===c.stack)&&a.push(c.stack),c.index===e)break}return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,r){const n=this._getStacks(e,r),i=void 0!==t?n.indexOf(t):-1;return-1===i?n.length-1:i}_getRuler(){const e=this.options,t=this._cachedMeta,r=t.iScale,n=[];let i,o;for(i=0,o=t.data.length;i<o;++i)n.push(r.getPixelForValue(this.getParsed(i)[r.axis],i));const a=e.barThickness;return{min:a||Dr(t),pixels:n,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:r},options:{base:n,minBarLength:i}}=this,o=n||0,a=this.getParsed(e),s=a._custom,c=Ir(s);let u,h,d=a[t.axis],f=0,p=r?this.applyStack(t,a,r):d;p!==d&&(f=p-d,p=d),c&&(d=s.barStart,p=s.barEnd-s.barStart,0!==d&&H(d)!==H(s.barEnd)&&(f=0),f+=d);const v=l(n)||c?f:n;let g=t.getPixelForValue(v);if(u=this.chart.getDataVisibility(e)?t.getPixelForValue(f+p):g,h=u-g,Math.abs(h)<i){h=function(e,t,r){return 0!==e?H(e):(t.isHorizontal()?1:-1)*(t.min>=r?1:-1)}(h,t,o)*i,d===o&&(g-=h/2);const e=t.getPixelForDecimal(0),r=t.getPixelForDecimal(1),n=Math.min(e,r),a=Math.max(e,r);g=Math.max(Math.min(g,a),n),u=g+h}if(g===t.getPixelForValue(o)){const e=H(h)*t.getLineWidthForValue(o)/2;g+=e,h-=e}return{size:h,base:g,head:u,center:u+h/2}}_calculateBarIndexPixels(e,t){const r=t.scale,n=this.options,i=n.skipNull,o=f(n.maxBarThickness,1/0);let a,s;if(t.grouped){const r=i?this._getStackCount(e):t.stackCount,c="flex"===n.barThickness?function(e,t,r,n){const i=t.pixels,o=i[e];let a=e>
10?i[e-1]:null,s=e<i.length-1?i[e+1]:null;const l=r.categoryPercentage;null===a&&(a=o-(null===s?t.end-t.start:s-o)),null===s&&(s=o+o-a);const c=o-(o-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/n,ratio:r.barPercentage,start:c}}(e,t,n,r):function(e,t,r,n){const i=r.barThickness;let o,a;return l(i)?(o=t.min*r.categoryPercentage,a=r.barPercentage):(o=i*n,a=1),{chunk:o/n,ratio:a,start:t.pixels[e]-o/2}}(e,t,n,r),u=this._getStackIndex(this.index,this._cachedMeta.stack,i?e:void 0);a=c.start+c.chunk*u+c.chunk/2,s=Math.min(o,c.chunk*c.ratio)}else a=r.getPixelForValue(this.getParsed(e)[r.axis],e),s=Math.min(o,t.min*t.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const e=this._cachedMeta,t=e.vScale,r=e.data,n=r.length;let i=0;for(;i<n;++i)null!==this.getParsed(i)[t.axis]&&r[i].draw(this._ctx)}}Wr.id="bar",Wr.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Wr.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Nr extends Tr{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,r,n){const i=super.parsePrimitiveData(e,t,r,n);for(let e=0;e<i.length;e++)i[e]._custom=this.resolveDataElementOptions(e+r).radius;return i}parseArrayData(e,t,r,n){const i=super.parseArrayData(e,t,r,n);for(let e=0;e<i.length;e++){const n=t[r+e];i[e]._custom=f(n[2],this.resolveDataElementOptions(e+r).radius)}return i}parseObjectData(e,t,r,n){const i=super.parseObjectData(e,t,r,n);for(let e=0;e<i.length;e++){const n=t[r+e];i[e]._custom=f(n&&n.r&&+n.r,this.resolveDataElementOptions(e+r).radius)}return i}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let r=e.length-1;r>=0;--r)t=Math.max(t,e[r].size(this.resolveDataElementOptions(r))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,{xScale:r,yScale:n}=t,i=this.getParsed(e),o=r.getLabelForValue(i.x),a=n.getLabelForValue(i.y),s=i._custom;return{label:t.label,value:"("+o+", "+a+(s?", "+s:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,r,n){const i="reset"===n,{iScale:o,vScale:a}=this._cachedMeta,s=this.resolveDataElementOptions(t,n),l=this.getSharedOptions(s),c=this.includeOptions(n,l),u=o.axis,h=a.axis;for(let s=t;s<t+r;s++){const t=e[s],r=!i&&this.getParsed(s),l={},d=l[u]=i?o.getPixelForDecimal(.5):o.getPixelForValue(r[u]),f=l[h]=i?a.getBasePixel():a.getPixelForValue(r[h]);l.skip=isNaN(d)||isNaN(f),c&&(l.options=this.resolveDataElementOptions(s,t.active?"active":n),i&&(l.options.radius=0)),this.updateElement(t,s,l,n)}this.updateSharedOptions(l,n,s)}resolveDataElementOptions(e,t){const r=this.getParsed(e);let n=super.resolveDataElementOptions(e,t);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const i=n.radius;return"active"!==t&&(n.radius=0),n.radius+=f(r&&r._custom,i),n}}Nr.id="bubble",Nr.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Nr.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Ur extends Tr{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const r=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=r;else{let i,o,a=e=>+r[e];if(u(r[e])){const{key:e="value"}=this._parsing;a=t=>+E(r[t],e)}for(i=e,o=e+t;i<o;++i)n._parsed[i]=a(i)}}_getRotation(){return U(this.options.rotation-90)}_getCircumference(){return U(this.options.circumference)}_getRotationExtents(){let e=A,t=-A;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)){const n=this.chart.getDatasetMeta(r).controller,i=n._getRotation(),o=n._getCircumference();e=Math.min(e,i),t=Math.max(t,i+o)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:r}=t,n=this._cachedMeta,i=n.data,o=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,a=Math.max((Math.min(r.width,r.height)-o)/2,0),s=Math.min((l=this.options.cutout,c=a,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:l/c),1
vendor: 2,068 bytes, line 1
1);var l,c;const u=this._getRingWeight(this.index),{circumference:h,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:v,offsetX:g,offsetY:m}=function(e,t,r){let n=1,i=1,o=0,a=0;if(t<A){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),h=Math.cos(l),d=Math.sin(l),f=(e,t,n)=>Z(e,s,l,!0)?1:Math.max(t,t*r,n,n*r),p=(e,t,n)=>Z(e,s,l,!0)?-1:Math.min(t,t*r,n,n*r),v=f(0,c,h),g=f(B,u,d),m=p(O,c,h),_=p(O+B,u,d);n=(v-m)/2,i=(g-_)/2,o=-(v+m)/2,a=-(g+_)/2}return{ratioX:n,ratioY:i,offsetX:o,offsetY:a}}(d,h,s),_=(r.width-o)/f,y=(r.height-o)/v,w=Math.max(Math.min(_,y)/2,0),b=p(this.options.radius,w),x=(b-Math.max(b*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*b,this.offsetY=m*b,n.total=this.calculateTotal(),this.outerRadius=b-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*u,0),this.updateElements(i,0,i.length,e)}_circumference(e,t){const r=this.options,n=this._cachedMeta,i=this._getCircumference();return t&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||null===n._parsed[e]||n.data[e].hidden?0:this.calculateCircumference(n._parsed[e]*i/A)}updateElements(e,t,r,n){const i="reset"===n,o=this.chart,a=o.chartArea,s=o.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=i&&s.animateScale,h=u?0:this.innerRadius,d=u?0:this.outerRadius,f=this.resolveDataElementOptions(t,n),p=this.getSharedOptions(f),v=this.includeOptions(n,p);let g,m=this._getRotation();for(g=0;g<t;++g)m+=this._circumference(g,i);for(g=t;g<t+r;++g){const t=this._circumference(g,i),r=e[g],o={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+t,circumference:t,outerRadius:d,innerRadius:h};v&&(o.options=p||this.resolveDataElementOptions(g,r.active?"active":n)),m+=t,this.updateElement(r,g,o,n)}this.updateSharedOptions(p,n,f)}calculateTotal(){const e=this._cachedMeta,t=e.data;let r,n=0;for(r=0;r<t.length;r++){const i=e._parsed[r];null===i||isNaN(i)||!this.chart.getDataVisibility(r)||t[r].hidden||(n+=Math.abs(i))}return n}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?A*(Math.abs(e)/t):0}
vendor: 9,611 bytes, line 1
1getLabelAndValue(e){const t=this._cachedMeta,r=this.chart,n=r.data.labels||[],i=or(t._parsed[e],r.options.locale);return{label:n[e]||"",value:i}}getMaxBorderWidth(e){let t=0;const r=this.chart;let n,i,o,a,s;if(!e)for(n=0,i=r.data.datasets.length;n<i;++n)if(r.isDatasetVisible(n)){o=r.getDatasetMeta(n),e=o.data,a=o.controller;break}if(!e)return 0;for(n=0,i=e.length;n<i;++n)s=a.resolveDataElementOptions(n),"inner"!==s.borderAlign&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let r=0,n=e.length;r<n;++r){const e=this.resolveDataElementOptions(r);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(t+=this._getRingWeight(r));return t}_getRingWeight(e){return Math.max(f(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Ur.id="doughnut",Ur.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},Ur.descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e},Ur.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:r}}=e.legend.options;return t.labels.map((t,n)=>{const i=e.getDatasetMeta(0).controller.getStyle(n);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(n),index:n}})}return[]}},onClick(e,t,r){r.chart.toggleDataVisibility(t.index),r.chart.update()}},tooltip:{callbacks:{title:()=>"",label(e){let t=e.label;const r=": "+e.formattedValue;return c(t)?(t=t.slice(),t[0]+=r):t+=r,t}}}}};class qr extends Tr{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:r,data:n=[],_dataset:i}=t,o=this.chart._animationsDisabled;let{start:a,count:s}=function(e,t,r){const n=t.length;let i=0,o=n;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:u,minDefined:h,maxDefined:d}=a.getUserBounds();h&&(i=J(Math.min(mt(s,a.axis,c).lo,r?n:mt(t,l,a.getPixelForValue(c)).lo),0,n-1)),o=d?J(Math.max(mt(s,a.axis,u).hi+1,r?0:mt(t,l,a.getPixelForValue(u)).hi+1),i,n)-i:n-i}return{start:i,count:o}}(t,n,o);this._drawStart=a,this._drawCount=s,function(e){const{xScale:t,yScale:r,_scaleRanges:n}=e,i={xmin:t.min,xmax:t.max,ymin:r.min,ymax:r.max};if(!n)return e._scaleRanges=i,!0;const o=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,i),o}(t)&&(a=0,s=n.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!i._decimated,r.points=n;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:l},e),this.updateElements(n,a,s,e)}updateElements(e,t,r,n){const i="reset"===n,{iScale:o,vScale:a,_stacked:s,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(t,n),h=this.getSharedOptions(u),d=this.includeOptions(n,h),f=o.axis,p=a.axis,{spanGaps:v,segment:g}=this.options,m=V(v)?v:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||i||"none"===n;let y=t>0&&this.getParsed(t-1);for(let u=t;u<t+r;++u){const t=e[u],r=this.getParsed(u),v=_?t:{},w=l(r[p]),b=v[f]=o.getPixelForValue(r[f],u),x=v[p]=i||w?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,r,s):r[p],u);v.skip=isNaN(b)||isNaN(x)||w,v.stop=u>0&&Math.abs(r[f]-y[f])>m,g&&(v.parsed=r,v.raw=c.data[u]),d&&(v.options=h||this.resolveDataElementOptions(u,t.active?"active":n)),_||this.updateElement(t,u,v,n),y=r}this.updateSharedOptions(h,n,u)}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,r=t.options&&t.options.borderWidth||0,n=e.data||[];if(!n.length)return r;const i=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(r,i,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}qr.id="line",qr.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},qr.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Yr extends Tr{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,r=this.chart,n=r.data.labels||[],i=or(t._parsed[e].r,r.options.locale);return{label:n[e]||"",value:i}}parseObjectData(e,t,r,n){return Bt.bind(this)(e,t,r,n)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((e,r)=>{const n=this.getParsed(r).r;!isNaN(n)&&this.chart.getDataVisibility(r)&&(n<t.min&&(t.min=n),n>t.max&&(t.max=n))}),t}_updateRadius(){const e=this.chart,t=e.chartArea,r=e.options,n=Math.min(t.right-t.left,t.bottom-t.top),i=Math.max(n/2,0),o=(i-Math.max(r.cutoutPercentage?i/100*r.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=i-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(e,t,r,n){const i="reset"===n,o=this.chart,a=o.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,u=s.getIndexAngle(0)-.5*O;let h,d=u;const f=360/this.countVisibleElements();for(h=0;h<t;++h)d+=this._computeAngle(h,n,f);for(h=t;h<t+r;h++){const t=e[h];let r=d,p=d+this._computeAngle(h,n,f),v=o.getDataVisibility(h)?s.getDistanceFromCenterForValue(this.getParsed(h).r):0;d=p,i&&(a.animateScale&&(v=0),a.animateRotate&&(r=p=u));const g={x:l,y:c,innerRadius:0,outerRadius:v,startAngle:r,endAngle:p,options:this.resolveDataElementOptions(h,t.active?"active":n)};this.updateElement(t,h,g,n)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach((e,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&t++}),t}_computeAngle(e,t,r){return this.chart.getDataVisibility(e)?U(this.resolveDataElementOptions(e,t).angle||r):0}}Yr.id="polarArea",Yr.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Yr.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:r}}=e.legend.options;return t.labels.map((t,n)=>{const i=e.getDatasetMeta(0).controller.getStyle(n);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(n),index:n}})}return[]}},onClick(e,t,r){r.chart.toggleDataVisibility(t.index),r.chart.update()}},tooltip:{callbacks:{title:()=>"",label:e=>e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Kr extends Ur{}Kr.id="pie",Kr.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Gr extends Tr{getLabelAndValue(e){const t=this._cachedMeta.vScale,r=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(r[t.axis])}}parseObjectData(e,t,r,n){return Bt.bind(this)(e,t,r,n)}update(e){const t=this._cachedMeta,r=t.dataset,n=t.data||[],i=t.iScale.getLabels();if(r.points=n,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const o={_loop:!0,_fullLoop:i.length===n.length,options:t};this.updateElement(r,void 0,o,e)}this.updateElements(n,0,n.length,e)}updateElements(e,t,r,n){const i=this._cachedMeta.rScale,o="reset"===n;for(let a=t;a<t+r;a++){const t=e[a],r=this.resolveDataElementOptions(a,t.active?"active":n),s=i.getPointPositionForValue(a,this.getParsed(a).r),l=o?i.xCenter:s.x,c=o?i.yCenter:s.y,u={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:r};this.updateElement(t,a,u,n)}}}Gr.id="radar",Gr.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Gr.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class $r extends qr{}$r.id="scatter",$r.defaults={showLine:!1,fill:!1},$r.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:e=>"("+e.label+", "+e.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function Xr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Zr{constructor(e){this.options=e||{}}formats(){return Xr()}parse(e,t){return Xr()}format(e,t){return Xr()}add(e,t,r){return Xr()}diff(e,t,r){return Xr()}startOf(e,t,r){return Xr()}endOf(e,t){return Xr()}}Zr.override=function(e){Object.assign(Zr.prototype,e)};var Jr={_date:Zr};function Qr(e,t,r,n){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&a&&o.length){const e=s._reversePixels?_t:mt;if(!n)return e(o,t,r);if(i._sharedOptions){const n=o[0],i="function"==typeof n.getRange&&n.getRange(t);if(i){const n=e(o,t,r-i),a=e(o,t,r+i);return{lo:n.lo,hi:a.hi}}}}return{lo:0,hi:o.length-1}}function en(e,t,r,n,i){const o=e.getSortedVisibleDatasetMetas(),a=r[t];for(let e=0,r=o.length;e<r;++e){const{index:r,data:s}=o[e],{lo:l,hi:c}=Qr(o[e],t,a,i);for(let e=l;e<=c;++e){const t=s[e];
vendor: 27,071 bytes, line 1
1t.skip||n(t,r,e)}}}function tn(e,t,r,n,i){const o=[];if(!i&&!e.isPointInArea(t))return o;return en(e,r,t,function(r,a,s){(i||Ze(r,e.chartArea,0))&&r.inRange(t.x,t.y,n)&&o.push({element:r,datasetIndex:a,index:s})},!0),o}function rn(e,t,r,n,i,o){let a=[];const s=function(e){const t=-1!==e.indexOf("x"),r=-1!==e.indexOf("y");return function(e,n){const i=t?Math.abs(e.x-n.x):0,o=r?Math.abs(e.y-n.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}(r);let l=Number.POSITIVE_INFINITY;return en(e,r,t,function(r,c,u){const h=r.inRange(t.x,t.y,i);if(n&&!h)return;const d=r.getCenterPoint(i);if(!(!!o||e.isPointInArea(d))&&!h)return;const f=s(t,d);f<l?(a=[{element:r,datasetIndex:c,index:u}],l=f):f===l&&a.push({element:r,datasetIndex:c,index:u})}),a}function nn(e,t,r,n,i,o){return o||e.isPointInArea(t)?"r"!==r||n?rn(e,t,r,n,i,o):function(e,t,r,n){let i=[];return en(e,r,t,function(e,r,o){const{startAngle:a,endAngle:s}=e.getProps(["startAngle","endAngle"],n),{angle:l}=K(e,{x:t.x,y:t.y});Z(l,a,s)&&i.push({element:e,datasetIndex:r,index:o})}),i}(e,t,r,i):[]}function on(e,t,r,n,i){const o=[],a="x"===r?"inXRange":"inYRange";let s=!1;return en(e,r,t,(e,n,l)=>{e[a](t[r],i)&&(o.push({element:e,datasetIndex:n,index:l}),s=s||e.inRange(t.x,t.y,i))}),n&&!s?[]:o}var an={evaluateInteractionItems:en,modes:{index(e,t,r,n){const i=$t(t,e),o=r.axis||"x",a=r.includeInvisible||!1,s=r.intersect?tn(e,i,o,n,a):nn(e,i,o,!1,n,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{const t=s[0].index,r=e.data[t];r&&!r.skip&&l.push({element:r,datasetIndex:e.index,index:t})}),l):[]},dataset(e,t,r,n){const i=$t(t,e),o=r.axis||"xy",a=r.includeInvisible||!1;let s=r.intersect?tn(e,i,o,n,a):nn(e,i,o,!1,n,a);if(s.length>0){const t=s[0].datasetIndex,r=e.getDatasetMeta(t).data;s=[];for(let e=0;e<r.length;++e)s.push({element:r[e],datasetIndex:t,index:e})}return s},point:(e,t,r,n)=>tn(e,$t(t,e),r.axis||"xy",n,r.includeInvisible||!1),nearest(e,t,r,n){const i=$t(t,e),o=r.axis||"xy",a=r.includeInvisible||!1;return nn(e,i,o,r.intersect,n,a)},x:(e,t,r,n)=>on(e,$t(t,e),"x",r.intersect,n),y:(e,t,r,n)=>on(e,$t(t,e),"y",r.intersect,n)}};const sn=["left","top","right","bottom"];function ln(e,t){return e.filter(e=>e.pos===t)}function cn(e,t){return e.filter(e=>-1===sn.indexOf(e.pos)&&e.box.axis===t)}function un(e,t){return e.sort((e,r)=>{const n=t?r:e,i=t?e:r;return n.weight===i.weight?n.index-i.index:n.weight-i.weight})}function hn(e,t){const r=function(e){const t={};for(const r of e){const{stack:e,pos:n,stackWeight:i}=r;if(!e||!sn.includes(n))continue;const o=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=i}return t}(e),{vBoxMaxWidth:n,hBoxMaxHeight:i}=t;let o,a,s;for(o=0,a=e.length;o<a;++o){s=e[o];const{fullSize:a}=s.box,l=r[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*n:a&&t.availableWidth,s.height=i):(s.width=n,s.height=c?c*i:a&&t.availableHeight)}return r}function dn(e,t,r,n){return Math.max(e[r],t[r])+Math.max(e[n],t[n])}function fn(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function pn(e,t,r,n){const{pos:i,box:o}=r,a=e.maxPadding;if(!u(i)){r.size&&(e[i]-=r.size);const t=n[r.stack]||{size:0,count:1};t.size=Math.max(t.size,r.horizontal?o.height:o.width),r.size=t.size/t.count,e[i]+=r.size}o.getPadding&&fn(a,o.getPadding());const s=Math.max(0,t.outerWidth-dn(a,e,"left","right")),l=Math.max(0,t.outerHeight-dn(a,e,"top","bottom")),c=s!==e.w,h=l!==e.h;return e.w=s,e.h=l,r.horizontal?{same:c,other:h}:{same:h,other:c}}function vn(e,t){const r=t.maxPadding;function n(e){const n={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{n[e]=Math.max(t[e],r[e])}),n}return n(e?["left","right"]:["top","bottom"])}function gn(e,t,r,n){const i=[];let o,a,s,l,c,u;for(o=0,a=e.length,c=0;o<a;++o){s=e[o],l=s.box,l.update(s.width||t.w,s.height||t.h,vn(s.horizontal,t));const{same:a,other:h}=pn(t,r,s,n);c|=a&&i.length,u=u||h,l.fullSize||i.push(s)}return c&&gn(i,t,r,n)||u}function mn(e,t,r,n,i){e.top=r,e.left=t,e.right=t+n,e.bottom=r+i,e.width=n,e.height=i}function _n(e,t,r,n){const i=r.padding;let{x:o,y:a}=t;for(const s of e){const e=s.box,l=n[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const n=t.w*c,o=l.size||e.height;k(l.start)&&(a=l.start),e.fullSize?mn(e,i.left,a,r.outerWidth-i.right-i.left,o):mn(e,t.left+l.placed,a,n,o),l.start=a,l.placed+=n,a=e.bottom}else{const n=t.h*c,a=l.size||e.width;k(l.start)&&(o=l.start),e.fullSize?mn(e,o,i.top,a,r.outerHeight-i.bottom-i.top):mn(e,o,t.top+l.placed,a,n),l.start=o,l.placed+=n,o=e.right}}t.x=o,t.y=a}qe.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var yn={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const r=e.boxes?e.boxes.indexOf(t):-1;-1!==r&&e.boxes.splice(r,1)},configure(e,t,r){t.fullSize=r.fullSize,t.position=r.position,t.weight=r.weight},update(e,t,r,n){if(!e)return;const i=dt(e.options.layout.padding),o=Math.max(t-i.width,0),a=Math.max(r-i.height,0),s=function(e){const t=function(e){const t=[];let r,n,i,o,a,s;for(r=0,n=(e||[]).length;r<n;++r)i=e[r],({position:o,options:{stack:a,stackWeight:s=1}}=i),t.push({index:r,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return t}(e),r=un(t.filter(e=>e.box.fullSize),!0),n=un(ln(t,"left"),!0),i=un(ln(t,"right")),o=un(ln(t,"top"),!0),a=un(ln(t,"bottom")),s=cn(t,"x"),l=cn(t,"y");return{fullSize:r,leftAndTop:n.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:ln(t,"chartArea"),vertical:n.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;g(e.boxes,e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()});const u=l.reduce((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:r,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),d=Object.assign({},i);fn(d,dt(n));const f=Object.assign({maxPadding:d,w:o,h:a,x:i.left,y:i.top},i),p=hn(l.concat(c),h);gn(s.fullSize,f,h,p),gn(l,f,h,p),gn(c,f,h,p)&&gn(l,f,h,p),function(e){const t=e.maxPadding;function r(r){const n=Math.max(t[r]-e[r],0);return e[r]+=n,n}e.y+=r("top"),e.x+=r("left"),r("right"),r("bottom")}(f),_n(s.leftAndTop,f,h,p),f.x+=f.w,f.y+=f.h,_n(s.rightAndBottom,f,h,p),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},g(s.chartArea,t=>{const r=t.box;Object.assign(r,e.chartArea),r.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class wn{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,r){}removeEventListener(e,t,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,r,n){return t=Math.max(0,t||e.width),r=r||e.height,{width:t,height:Math.max(0,n?Math.floor(t/n):r)}}isAttached(e){return!0}updateConfig(e){}}class bn extends wn{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const xn="$chartjs",Cn={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Sn=e=>null===e||""===e;const En=!!Qt&&{passive:!0};function Mn(e,t,r){e.canvas.removeEventListener(t,r,En)}function kn(e,t){for(const r of e)if(r===t||r.contains(t))return!0}function Ln(e,t,r){const n=e.canvas,i=new MutationObserver(e=>{let t=!1;for(const r of e)t=t||kn(r.addedNodes,n),t=t&&!kn(r.removedNodes,n);t&&r()});return i.observe(document,{childList:!0,subtree:!0}),i}function Rn(e,t,r){const n=e.canvas,i=new MutationObserver(e=>{let t=!1;for(const r of e)t=t||kn(r.removedNodes,n),t=t&&!kn(r.addedNodes,n);t&&r()});return i.observe(document,{childList:!0,subtree:!0}),i}const On=new Map;let An=0;function Pn(){const e=window.devicePixelRatio;e!==An&&(An=e,On.forEach((t,r)=>{r.currentDevicePixelRatio!==e&&t()}))}function Tn(e,t,r){const n=e.canvas,o=n&&Ut(n);if(!o)return;const a=i((e,t)=>{const n=o.clientWidth;r(e,t),n<o.clientWidth&&r()},window),s=new ResizeObserver(e=>{const t=e[0],r=t.contentRect.width,n=t.contentRect.height;0===r&&0===n||a(r,n)});return s.observe(o),function(e,t){On.size||window.addEventListener("resize",Pn),On.set(e,t)}(e,a),s}function Dn(e,t,r){r&&r.disconnect(),"resize"===t&&function(e){On.delete(e),On.size||window.removeEventListener("resize",Pn)}(e)}function Bn(e,t,r){const n=e.canvas,o=i(t=>{null!==e.ctx&&r(function(e,t){const r=Cn[e.type]||e.type,{x:n,y:i}=$t(e,t);return{type:r,chart:t,native:e,x:void 0!==n?n:null,y:void 0!==i?i:null}}(t,e))},e,e=>{const t=e[0];return[t,t.offsetX,t.offsetY]});return function(e,t,r){e.addEventListener(t,r,En)}(n,t,o),o}class jn extends wn{acquireContext(e,t){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(function(e,t){const r=e.style,n=e.getAttribute("height"),i=e.getAttribute("width");if(e[xn]={initial:{height:n,width:i,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",r.boxSizing=r.boxSizing||"border-box",Sn(i)){const t=er(e,"width");void 0!==t&&(e.width=t)}if(Sn(n))if(""===e.style.height)e.height=e.width/(t||2);else{const t=er(e,"height");void 0!==t&&(e.height=t)}}(e,t),r):null}releaseContext(e){const t=e.canvas;if(!t[xn])return!1;const r=t[xn].initial;["height","width"].forEach(e=>{const n=r[e];l(n)?t.removeAttribute(e):t.setAttribute(e,n)});const n=r.style||{};return Object.keys(n).forEach(e=>{t.style[e]=n[e]}),t.width=t.width,delete t[xn],!0}addEventListener(e,t,r){this.removeEventListener(e,t);const n=e.$proxies||(e.$proxies={}),i={attach:Ln,detach:Rn,resize:Tn}[t]||Bn;n[t]=i(e,t,r)}removeEventListener(e,t){const r=e.$proxies||(e.$proxies={}),n=r[t];if(!n)return;({attach:Dn,detach:Dn,resize:Dn}[t]||Mn)(e,t,n),r[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,r,n){return Zt(e,t,r,n)}isAttached(e){const t=Ut(e);return!(!t||!t.isConnected)}}class In{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(e){const{x:t,y:r}=this.getProps(["x","y"],e);return{x:t,y:r}}hasValue(){return V(this.x)&&V(this.y)}getProps(e,t){const r=this.$animations;if(!t||!r)return this;const n={};return e.forEach(e=>{n[e]=r[e]&&r[e].active()?r[e]._to:this[e]}),n}}In.defaults={},In.defaultRoutes=void 0;const zn={values:e=>c(e)?e:""+e,numeric(e,t,r){if(0===e)return"0";const n=this.chart.options.locale;let i,o=e;if(r.length>1){const t=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(t<1e-4||t>1e15)&&(i="scientific"),o=function(e,t){let r=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(r)>=1&&e!==Math.floor(e)&&(r=e-Math.floor(e));return r}(e,r)}const a=z(Math.abs(o)),s=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),or(e,n,l)},logarithmic(e,t,r){if(0===e)return"0";const n=e/Math.pow(10,Math.floor(z(e)));return 1===n||2===n||5===n?zn.numeric.call(this,e,t,r):""}};var Hn={formatters:zn};function Fn(e,t){const r=e.options.ticks,n=r.maxTicksLimit||function(e){const t=e.options.offset,r=e._tickSize(),n=e._length/r+(t?0:1),i=e._maxLength/r;return Math.floor(Math.min(n,i))}(e),i=r.major.enabled?function(e){const t=[];let r,n;for(r=0,n=e.length;r<n;r++)e[r].major&&t.push(r);return t}(t):[],o=i.length,a=i[0],s=i[o-1],c=[];if(o>n)return function(e,t,r,n){let i,o=0,a=r[0];for(n=Math.ceil(n),i=0;i<e.length;i++)i===a&&(t.push(e[i]),o++,a=r[o*n])}(t,c,i,o/n),c;const u=function(e,t,r){const n=function(e){const t=e.length;let r,n;if(t<2)return!1;for(n=e[0],r=1;r<t;++r)if(e[r]-e[r-1]!==n)return!1;return n}(e),i=t.length/r;if(!n)return Math.max(i,1);const o=function(e){const t=[],r=Math.sqrt(e);let n;for(n=1;n<r;n++)e%n===0&&(t.push(n),t.push(e/n));return r===(0|r)&&t.push(r),t.sort((e,t)=>e-t).pop(),t}(n);for(let e=0,t=o.length-1;e<t;e++){const t=o[e];if(t>i)return t}return Math.max(i,1)}(i,t,n);if(o>0){let e,r;const n=o>1?Math.round((s-a)/(o-1)):null;for(Vn(t,c,u,l(n)?0:a-n,a),e=0,r=o-1;e<r;e++)Vn(t,c,u,i[e],i[e+1]);return Vn(t,c,u,s,l(n)?t.length:s+n),c}return Vn(t,c,u),c}function Vn(e,t,r,n,i){const o=f(n,0),a=Math.min(f(i,e.length),e.length);let s,l,c,u=0;for(r=Math.ceil(r),i&&(s=i-n,r=s/Math.floor(s/r)),c=o;c<0;)u++,c=Math.round(o+u*r);for(l=Math.max(o,0);l<a;l++)l===c&&(t.push(e[l]),u++,c=Math.round(o+u*r))}qe.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Hn.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),qe.route("scale.ticks","color","","color"),qe.route("scale.grid","color","","borderColor"),qe.route("scale.grid","borderColor","","borderColor"),qe.route("scale.title","color","","color"),qe.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e}),qe.describe("scales",{_fallback:"scale"}),qe.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e});const Wn=(e,t,r)=>"top"===t||"left"===t?e[t]+r:e[t]-r;function Nn(e,t){const r=[],n=e.length/t,i=e.length;let o=0;for(;o<i;o+=n)r.push(e[Math.floor(o)]);return r}function Un(e,t,r){const n=e.ticks.length,i=Math.min(t,n-1),o=e._startPixel,a=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(i);if(!(r&&(l=1===n?Math.max(c-o,a-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(i-1))/2,c+=i<t?l:-l,c<o-s||c>a+s)))return c}function qn(e){return e.drawTicks?e.tickLength:0}function Yn(e,t){if(!e.display)return 0;const r=ft(e.font,t),n=dt(e.padding);return(c(e.text)?e.text.length:1)*r.lineHeight+n.height}function Kn(e,t,r){let n=o(e);return(r&&"right"!==t||!r&&"right"===t)&&(n=(e=>"left"===e?"right":"right"===e?"left":e)(n)),n}class Gn extends In{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:r,_suggestedMax:n}=this;return e=d(e,Number.POSITIVE_INFINITY),t=d(t,Number.NEGATIVE_INFINITY),r=d(r,Number.POSITIVE_INFINITY),n=d(n,Number.NEGATIVE_INFINITY),{min:d(e,r),max:d(t,n),minDefined:h(e),maxDefined:h(t)}}getMinMax(e){let t,{min:r,max:n,minDefined:i,maxDefined:o}=this.getUserBounds();if(i&&o)return{min:r,max:n};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)t=a[s].controller.getMinMax(this,e),i||(r=Math.min(r,t.min)),o||(n=Math.max(n,t.max));return r=o&&r>n?n:r,n=i&&r>n?r:n,{min:d(r,d(n,r)),max:d(n,d(r,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){v(this.options.beforeUpdate,[this])}update(e,t,r){const{beginAtZero:n,grace:i,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,r){const{min:n,max:i}=e,o=p(t,(i-n)/2),a=(e,t)=>r&&0===e?0:e+t;return{min:a(n,-Math.abs(o)),max:a(i,o)}}(this,i,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?Nn(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=Fn(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,r=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,r=!r),this._startPixel=e,this._endPixel=t,this._reversePixels=r,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){v(this.options.afterUpdate,[this])}beforeSetDimensions(){v(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){v(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),v(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){v(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let r,n,i;for(r=0,n=e.length;r<n;r++)i=e[r],i.label=v(t.callback,[i.value,r,e],this)}afterTickToLabelConversion(){v(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){v(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,r=this.ticks.length,n=t.minRotation||0,i=t.maxRotation;let o,a,s,l=n;if(!this._isVisible()||!t.display||n>=i||r<=1||!this.isHorizontal())return void(this.labelRotation=n);const c=this._getLabelSizes(),u=c.widest.width,h=c.highest.height,d=J(this.chart.width-u,0,this.maxWidth);o=e.offset?this.maxWidth/r:d/(r-1),u+6>o&&(o=d/(r-(e.offset?.5:1)),a=this.maxHeight-qn(e.grid)-t.padding-Yn(e.title,this.chart.options.font),s=Math.sqrt(u*u+h*h),l=q(Math.min(Math.asin(J((c.highest.height+6)/o,-1,1)),Math.asin(J(a/s,-1,1))-Math.asin(J(h/s,-1,1)))),l=Math.max(n,Math.min(i,l))),this.labelRotation=l}afterCalculateLabelRotation(){v(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){v(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:r,title:n,grid:i}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const o=Yn(n,t.options.font);if(a?(e.width=this.maxWidth,e.height=qn(i)+o):(e.height=this.maxHeight,e.width=qn(i)+o),r.display&&this.ticks.length){const{first:t,last:n,widest:i,highest:o}=this._getLabelSizes(),s=2*r.padding,l=U(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const t=r.mirror?0:u*i.width+c*o.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=r.mirror?0:c*i.width+u*o.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,n,u,c)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,r,n){const{ticks:{align:i,padding:o},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,h=0;s?l?(u=n*e.width,h=r*t.height):(u=r*e.height,h=n*t.width):"start"===i?h=t.width:"end"===i?u=e.width:"inner"!==i&&(u=e.width/2,h=t.width/2),this.paddingLeft=Math.max((u-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((h-c+o)*this.width/(this.width-c),0)}else{let r=t.height/2,n=e.height/2;"start"===i?(r=0,n=e.height):"end"===i&&(r=t.height,n=0),this.paddingTop=r+o,this.paddingBottom=n+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){v(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,r;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,r=e.length;t<r;t++)l(e[t].label)&&(e.splice(t,1),r--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let r=this.ticks;t<r.length&&(r=Nn(r,t)),this._labelSizes=e=this._computeLabelSizes(r,r.length)}return e}_computeLabelSizes(e,t){const{ctx:r,_longestTextCache:n}=this,i=[],o=[];let a,s,u,h,d,f,p,v,m,_,y,w=0,b=0;for(a=0;a<t;++a){if(h=e[a].label,d=this._resolveTickFontOptions(a),r.font=f=d.string,p=n[f]=n[f]||{data:{},gc:[]},v=d.lineHeight,m=_=0,l(h)||c(h)){if(c(h))for(s=0,u=h.length;s<u;++s)y=h[s],l(y)||c(y)||(m=Ye(r,p.data,p.gc,m,y),_+=v)}else m=Ye(r,p.data,p.gc,m,h),_=v;i.push(m),o.push(_),w=Math.max(m,w),b=Math.max(_,b)}!function(e,t){g(e,e=>{const r=e.gc,n=r.length/2;let i;if(n>t){for(i=0;i<n;++i)delete e.data[r[i]];r.splice(0,n)}})}(n,t);const x=i.indexOf(w),C=o.indexOf(b),S=e=>({width:i[e]||0,height:o[e]||0});return{first:S(0),last:S(t-1),widest:S(x),highest:S(C),widths:i,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return J(this._alignToPixels?Ge(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const r=t[e];return r.$context||(r.$context=function(e,t,r){return vt(e,{tick:r,index:t,type:"tick"})}(this.getContext(),e,r))}return this.$context||(this.$context=vt(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=U(this.labelRotation),r=Math.abs(Math.cos(t)),n=Math.abs(Math.sin(t)),i=this._getLabelSizes(),o=e.autoSkipPadding||0,a=i?i.widest.width+o:0,s=i?i.highest.height+o:0;return this.isHorizontal()?s*r>a*n?a/r:s/n:s*n<a*r?s/r:a/n}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,r=this.chart,n=this.options,{grid:i,position:o}=n,a=i.offset,s=this.isHorizontal(),l=this.ticks.length+(a?1:0),c=qn(i),h=[],d=i.setContext(this.getContext()),p=d.drawBorder?d.borderWidth:0,v=p/2,g=function(e){return Ge(r,e,p)};let m,_,y,w,b,x,C,S,E,M,k,L;if("top"===o)m=g(this.bottom),x=this.bottom-c,S=m-v,M=g(e.top)+v,L=e.bottom;else if("bottom"===o)m=g(this.top),M=e.top,L=g(e.bottom)-v,x=m+v,S=this.top+c;else if("left"===o)m=g(this.right),b=this.right-c,C=m-v,E=g(e.left)+v,k=e.right;else if("right"===o)m=g(this.left),E=e.left,k=g(e.right)-v,b=m+v,C=this.left+c;else if("x"===t){if("center"===o)m=g((e.top+e.bottom)/2+.5);else if(u(o)){const e=Object.keys(o)[0],t=o[e];m=g(this.chart.scales[e].getPixelForValue(t))}M=e.top,L=e.bottom,x=m+v,S=x+c}else if("y"===t){if("center"===o)m=g((e.left+e.right)/2);else if(u(o)){const e=Object.keys(o)[0],t=o[e];m=g(this.chart.scales[e].getPixelForValue(t))}b=m-v,C=b-c,E=e.left,k=e.right}const R=f(n.ticks.maxTicksLimit,l),O=Math.max(1,Math.ceil(l/R));for(_=0;_<l;_+=O){const e=i.setContext(this.getContext(_)),t=e.lineWidth,n=e.color,o=i.borderDash||[],l=e.borderDashOffset,c=e.tickWidth,u=e.tickColor,d=e.tickBorderDash||[],f=e.tickBorderDashOffset;y=Un(this,_,a),void 0!==y&&(w=Ge(r,y,t),s?b=C=E=k=w:x=S=M=L=w,h.push({tx1:b,ty1:x,tx2:C,ty2:S,x1:E,y1:M,x2:k,y2:L,width:t,color:n,borderDash:o,borderDashOffset:l,tickWidth:c,tickColor:u,tickBorderDash:d,tickBorderDashOffset:f}))}return this._ticksLength=l,this._borderValue=m,h}_computeLabelItems(e){const t=this.axis,r=this.options,{position:n,ticks:i}=r,o=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:h,mirror:d}=i,f=qn(r.grid),p=f+h,v=d?-h:p,g=-U(this.labelRotation),m=[];let _,y,w,b,x,C,S,E,M,k,L,R,O="middle";if("top"===n)C=this.bottom-v,S=this._getXAxisLabelAlignment();else if("bottom"===n)C=this.top+v,S=this._getXAxisLabelAlignment();else if("left"===n){const e=this._getYAxisLabelAlignment(f);S=e.textAlign,x=e.x}else if("right"===n){const e=this._getYAxisLabelAlignment(f);S=e.textAlign,x=e.x}else if("x"===t){if("center"===n)C=(e.top+e.bottom)/2+p;else if(u(n)){const e=Object.keys(n)[0],t=n[e];C=this.chart.scales[e].getPixelForValue(t)+p}S=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===n)x=(e.left+e.right)/2-p;else if(u(n)){const e=Object.keys(n)[0],t=n[e];x=this.chart.scales[e].getPixelForValue(t)}S=this._getYAxisLabelAlignment(f).textAlign}"y"===t&&("start"===s?O="top":"end"===s&&(O="bottom"));const A=this._getLabelSizes();for(_=0,y=a.length;_<y;++_){w=a[_],b=w.label;const e=i.setContext(this.getContext(_));E=this.getPixelForTick(_)+i.labelOffset,M=this._resolveTickFontOptions(_),k=M.lineHeight,L=c(b)?b.length:1;const t=L/2,r=e.color,s=e.textStrokeColor,u=e.textStrokeWidth;let h,f=S;
vendor: 1,752 bytes, line 1
1if(o?(x=E,"inner"===S&&(f=_===y-1?this.options.reverse?"left":"right":0===_?this.options.reverse?"right":"left":"center"),R="top"===n?"near"===l||0!==g?-L*k+k/2:"center"===l?-A.highest.height/2-t*k+k:-A.highest.height+k/2:"near"===l||0!==g?k/2:"center"===l?A.highest.height/2-t*k:A.highest.height-L*k,d&&(R*=-1)):(C=E,R=(1-L)*k/2),e.showLabelBackdrop){const t=dt(e.backdropPadding),r=A.heights[_],n=A.widths[_];let i=C+R-t.top,o=x-t.left;switch(O){case"middle":i-=r/2;break;case"bottom":i-=r}switch(S){case"center":o-=n/2;break;case"right":o-=n}h={left:o,top:i,width:n+t.width,height:r+t.height,color:e.backdropColor}}m.push({rotation:g,label:b,font:M,color:r,strokeColor:s,strokeWidth:u,textOffset:R,textAlign:f,textBaseline:O,translation:[x,C],backdrop:h})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-U(this.labelRotation))return"top"===e?"left":"right";let r="center";return"start"===t.align?r="left":"end"===t.align?r="right":"inner"===t.align&&(r="inner"),r}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:r,mirror:n,padding:i}}=this.options,o=e+i,a=this._getLabelSizes().widest.width;let s,l;return"left"===t?n?(l=this.right+i,"near"===r?s="left":"center"===r?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-o,"near"===r?s="right":"center"===r?(s="center",l-=a/2):(s="left",l=this.left)):"right"===t?n?(l=this.left+i,"near"===r?s="right":"center"===r?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+o,"near"===r?s="left":"center"===r?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}
vendor: 26,071 bytes, line 1
1:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:r,top:n,width:i,height:o}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(r,n,i,o),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const r=this.ticks.findIndex(t=>t.value===e);if(r>=0){return t.setContext(this.getContext(r)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,r=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,o;const a=(e,t,n)=>{n.width&&n.color&&(r.save(),r.lineWidth=n.width,r.strokeStyle=n.color,r.setLineDash(n.borderDash||[]),r.lineDashOffset=n.borderDashOffset,r.beginPath(),r.moveTo(e.x,e.y),r.lineTo(t.x,t.y),r.stroke(),r.restore())};if(t.display)for(i=0,o=n.length;i<o;++i){const e=n[i];t.drawOnChartArea&&a({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&a({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{grid:r}}=this,n=r.setContext(this.getContext()),i=r.drawBorder?n.borderWidth:0;if(!i)return;const o=r.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let s,l,c,u;this.isHorizontal()?(s=Ge(e,this.left,i)-i/2,l=Ge(e,this.right,o)+o/2,c=u=a):(c=Ge(e,this.top,i)-i/2,u=Ge(e,this.bottom,o)+o/2,s=l=a),t.save(),t.lineWidth=n.borderWidth,t.strokeStyle=n.borderColor,t.beginPath(),t.moveTo(s,c),t.lineTo(l,u),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,r=this._computeLabelArea();r&&Je(t,r);const n=this._labelItems||(this._labelItems=this._computeLabelItems(e));let i,o;for(i=0,o=n.length;i<o;++i){const e=n[i],r=e.font,o=e.label;e.backdrop&&(t.fillStyle=e.backdrop.color,t.fillRect(e.backdrop.left,e.backdrop.top,e.backdrop.width,e.backdrop.height)),rt(t,o,0,e.textOffset,r,e)}r&&Qe(t)}drawTitle(){const{ctx:e,options:{position:t,title:r,reverse:n}}=this;if(!r.display)return;const i=ft(r.font),o=dt(r.padding),s=r.align;let l=i.lineHeight/2;"bottom"===t||"center"===t||u(t)?(l+=o.bottom,c(r.text)&&(l+=i.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:h,titleY:d,maxWidth:f,rotation:p}=function(e,t,r,n){const{top:i,left:o,bottom:s,right:l,chart:c}=e,{chartArea:h,scales:d}=c;let f,p,v,g=0;const m=s-i,_=l-o;if(e.isHorizontal()){if(p=a(n,o,l),u(r)){const e=Object.keys(r)[0],n=r[e];v=d[e].getPixelForValue(n)+m-t}else v="center"===r?(h.bottom+h.top)/2+m-t:Wn(e,r,t);f=l-o}else{if(u(r)){const e=Object.keys(r)[0],n=r[e];p=d[e].getPixelForValue(n)-_+t}else p="center"===r?(h.left+h.right)/2-_+t:Wn(e,r,t);v=a(n,s,i),g="left"===r?-B:B}return{titleX:p,titleY:v,maxWidth:f,rotation:g}}(this,l,t,s);rt(e,r.text,0,0,i,{color:r.color,maxWidth:f,rotation:p,textAlign:Kn(s,t,n),textBaseline:"middle",translation:[h,d]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,r=f(e.grid&&e.grid.z,-1);return this._isVisible()&&this.draw===Gn.prototype.draw?[{z:r,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:r+1,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",n=[];let i,o;for(i=0,o=t.length;i<o;++i){const o=t[i];o[r]!==this.id||e&&o.type!==e||n.push(o)}return n}_resolveTickFontOptions(e){return ft(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class $n{constructor(e,t,r){this.type=e,this.scope=t,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let r;(function(e){return"id"in e&&"defaults"in e})(t)&&(r=this.register(t));const n=this.items,i=e.id,o=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in n||(n[i]=e,function(e,t,r){const n=b(Object.create(null),[r?qe.get(r):{},qe.get(t),e.defaults]);qe.set(t,n),e.defaultRoutes&&function(e,t){Object.keys(t).forEach(r=>{const n=r.split("."),i=n.pop(),o=[e].concat(n).join("."),a=t[r].split("."),s=a.pop(),l=a.join(".");qe.route(o,i,l,s)})}(t,e.defaultRoutes);e.descriptors&&qe.describe(t,e.descriptors)}(e,o,r),this.override&&qe.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const t=this.items,r=e.id,n=this.scope;r in t&&delete t[r],n&&r in qe[n]&&(delete qe[n][r],this.override&&delete Ve[r])}}var Xn=new class{constructor(){this.controllers=new $n(Tr,"datasets",!0),this.elements=new $n(In,"elements"),this.plugins=new $n(Object,"plugins"),this.scales=new $n(Gn,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,r){[...t].forEach(t=>{const n=r||this._getRegistryForType(t);r||n.isForType(t)||n===this.plugins&&t.id?this._exec(e,n,t):g(t,t=>{const n=r||this._getRegistryForType(t);this._exec(e,n,t)})})}_exec(e,t,r){const n=M(e);v(r["before"+n],[],r),t[e](r),v(r["after"+n],[],r)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const r=this._typedRegistries[t];if(r.isForType(e))return r}return this.plugins}_get(e,t,r){const n=t.get(e);if(void 0===n)throw new Error('"'+e+'" is not a registered '+r+".");return n}};class Zn{constructor(){this._init=[]}notify(e,t,r,n){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const i=n?this._descriptors(e).filter(n):this._descriptors(e),o=this._notify(i,e,t,r);return"afterDestroy"===t&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),o}_notify(e,t,r,n){n=n||{};for(const i of e){const e=i.plugin;if(!1===v(e[r],[t,n,i.options],e)&&n.cancelable)return!1}return!0}invalidate(){l(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const r=e&&e.config,n=f(r.options&&r.options.plugins,{}),i=function(e){const t=[],r=Object.keys(Xn.plugins.items);for(let e=0;e<r.length;e++)t.push(Xn.getPlugin(r[e]));const n=e.plugins||[];for(let e=0;e<n.length;e++){const r=n[e];-1===t.indexOf(r)&&t.push(r)}return t}(r);return!1!==n||t?function(e,t,r,n){const i=[],o=e.getContext();for(let a=0;a<t.length;a++){const s=t[a],l=Jn(r[s.id],n);null!==l&&i.push({plugin:s,options:Qn(e.config,s,l,o)})}return i}(e,i,n,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],r=this._cache,n=(e,t)=>e.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(n(t,r),e,"stop"),this._notify(n(r,t),e,"start")}}function Jn(e,t){return t||!1!==e?!0===e?{}:e:null}function Qn(e,t,r,n){const i=e.pluginScopeKeys(t),o=e.getOptionScopes(r,i);return e.createResolver(o,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ei(e,t){const r=qe.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||r.indexAxis||"x"}function ti(e,t){return"x"===e||"y"===e?e:t.axis||("top"===(r=t.position)||"bottom"===r?"x":"left"===r||"right"===r?"y":void 0)||e.charAt(0).toLowerCase();var r}function ri(e){const t=e.options||(e.options={});t.plugins=f(t.plugins,{}),t.scales=function(e,t){const r=Ve[e.type]||{scales:{}},n=t.scales||{},i=ei(e.type,t),o=Object.create(null),a=Object.create(null);return Object.keys(n).forEach(e=>{const t=n[e];if(!u(t))return console.error(`Invalid scale configuration for scale: ${e}`);if(t._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const s=ti(e,t),l=function(e,t){return e===t?"_index_":"_value_"}(s,i),c=r.scales||{};o[s]=o[s]||e,a[e]=x(Object.create(null),[{axis:s},t,c[s],c[l]])}),e.data.datasets.forEach(r=>{const i=r.type||e.type,s=r.indexAxis||ei(i,t),l=(Ve[i]||{}).scales||{};Object.keys(l).forEach(e=>{const t=function(e,t){let r=e;return"_index_"===e?r=t:"_value_"===e&&(r="x"===t?"y":"x"),r}(e,s),i=r[t+"AxisID"]||o[t]||t;a[i]=a[i]||Object.create(null),x(a[i],[{axis:t},n[i],l[e]])})}),Object.keys(a).forEach(e=>{const t=a[e];x(t,[qe.scales[t.type],qe.scale])}),a}(e,t)}function ni(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const ii=new Map,oi=new Set;function ai(e,t){let r=ii.get(e);return r||(r=t(),ii.set(e,r),oi.add(r)),r}const si=(e,t,r)=>{const n=E(t,r);void 0!==n&&e.add(n)};class li{constructor(e){this._config=function(e){return(e=e||{}).data=ni(e.data),ri(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=ni(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),ri(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return ai(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,t){return ai(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,t){return ai(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]])}pluginScopeKeys(e){const t=e.id;return ai(`${this.type}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){const r=this._scopeCache;let n=r.get(e);return n&&!t||(n=new Map,r.set(e,n)),n}getOptionScopes(e,t,r){const{options:n,type:i}=this,o=this._cachedScopes(e,r),a=o.get(t);if(a)return a;const s=new Set;t.forEach(t=>{e&&(s.add(e),t.forEach(t=>si(s,e,t))),t.forEach(e=>si(s,n,e)),t.forEach(e=>si(s,Ve[i]||{},e)),t.forEach(e=>si(s,qe,e)),t.forEach(e=>si(s,We,e))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),oi.has(t)&&o.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,Ve[t]||{},qe.datasets[t]||{},{type:t},qe,We]}resolveNamedOptions(e,t,r,n=[""]){const i={$shared:!0},{resolver:o,subPrefixes:a}=ci(this._resolverCache,e,n);let s=o;if(function(e,t){const{isScriptable:r,isIndexable:n}=St(e);for(const i of t){const t=r(i),o=n(i),a=(o||t)&&e[i];if(t&&(L(a)||ui(a))||o&&c(a))return!0}return!1}(o,t)){i.$shared=!1;s=Ct(o,r=L(r)?r():r,this.createResolver(e,r,a))}for(const e of t)i[e]=s[e];return i}createResolver(e,t,r=[""],n){const{resolver:i}=ci(this._resolverCache,e,r);return u(t)?Ct(i,t,void 0,n):i}}function ci(e,t,r){let n=e.get(t);n||(n=new Map,e.set(t,n));const i=r.join();let o=n.get(i);if(!o){o={resolver:xt(t,r),subPrefixes:r.filter(e=>!e.toLowerCase().includes("hover"))},n.set(i,o)}return o}const ui=e=>u(e)&&Object.getOwnPropertyNames(e).reduce((t,r)=>t||L(e[r]),!1);const hi=["top","bottom","left","right","chartArea"];function di(e,t){return"top"===e||"bottom"===e||-1===hi.indexOf(e)&&"x"===t}function fi(e,t){return function(r,n){return r[e]===n[e]?r[t]-n[t]:r[e]-n[e]}}function pi(e){const t=e.chart,r=t.options.animation;t.notifyPlugins("afterRender"),v(r&&r.onComplete,[e],t)}function vi(e){const t=e.chart,r=t.options.animation;v(r&&r.onProgress,[e],t)}function gi(e){return Nt()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const mi={},_i=e=>{const t=gi(e);return Object.values(mi).filter(e=>e.canvas===t).pop()};function yi(e,t,r){const n=Object.keys(e);for(const i of n){const n=+i;if(n>=t){const o=e[i];delete e[i],(r>0||n>t)&&(e[n+r]=o)}}}class wi{constructor(e,t){const r=this.config=new li(t),n=gi(e),i=_i(n);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||function(e){return!Nt()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?bn:jn}(n)),this.platform.updateConfig(r);const a=this.platform.acquireContext(n,o.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;this.id=s(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Zn,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let r;return function(...n){return t?(clearTimeout(r),r=setTimeout(e,t,n)):e.apply(this,n),t}}(e=>this.update(e),o.resizeDelay||0),this._dataChanges=[],mi[this.id]=this,a&&l?(gr.listen(this,"complete",pi),gr.listen(this,"progress",vi),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:r,height:n,_aspectRatio:i}=this;return l(e)?t&&i?i:n?r/n:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Jt(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return $e(this.canvas,this.ctx),this}stop(){return gr.stop(this),this}resize(e,t){gr.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const r=this.options,n=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(n,e,t,i),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Jt(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),v(r.onResize,[this,o],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){g(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){const e=this.options,t=e.scales,r=this.scales,n=Object.keys(r).reduce((e,t)=>(e[t]=!1,e),{});let i=[];t&&(i=i.concat(Object.keys(t).map(e=>{const r=t[e],n=ti(e,r),i="r"===n,o="x"===n;return{options:r,dposition:i?"chartArea":o?"bottom":"left",dtype:i?"radialLinear":o?"category":"linear"}}))),g(i,t=>{const i=t.options,o=i.id,a=ti(o,i),s=f(i.type,t.dtype);void 0!==i.position&&di(i.position,a)===di(t.dposition)||(i.position=t.dposition),n[o]=!0;let l=null;if(o in r&&r[o].type===s)l=r[o];else{l=new(Xn.getScale(s))({id:o,type:s,ctx:this.ctx,chart:this}),r[l.id]=l}l.init(i,e)}),g(n,(e,t)=>{e||delete r[t]}),g(r,e=>{yn.configure(this,e,e.options),yn.addBox(this,e)})}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,r=e.length;if(e.sort((e,t)=>e.index-t.index),r>t){for(let e=t;e<r;++e)this._destroyDatasetMeta(e);e.splice(t,r-t)}this._sortedMetasets=e.slice(0).sort(fi("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach((e,r)=>{0===t.filter(t=>t===e._dataset).length&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let r,n;for(this._removeUnreferencedMetasets(),r=0,n=t.length;r<n;r++){const n=t[r];let i=this.getDatasetMeta(r);const o=n.type||this.config.type;if(i.type&&i.type!==o&&(this._destroyDatasetMeta(r),i=this.getDatasetMeta(r)),i.type=o,i.indexAxis=n.indexAxis||ei(o,this.options),i.order=n.order||0,i.index=r,i.label=""+n.label,i.visible=this.isDatasetVisible(r),i.controller)i.controller.updateIndex(r),i.controller.linkScales();else{const t=Xn.getController(o),{datasetElementType:n,dataElementType:a}=qe.datasets[o];Object.assign(t.prototype,{dataElementType:Xn.getElement(a),datasetElementType:n&&Xn.getElement(n)}),i.controller=new t(this,r),e.push(i.controller)}}return this._updateMetasets(),e}_resetElements(){g(this.data.datasets,(e,t)=>{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const r=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),r=!n&&-1===i.indexOf(t);t.buildOrUpdateElements(r),o=Math.max(+t.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),n||g(i,e=>{e.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(fi("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){g(this.scales,e=>{yn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),r=new Set(e.events);R(t,r)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:r,start:n,count:i}of t){yi(e,n,"_removeElements"===r?-i:i)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,r=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+","+e.splice(1).join(","))),n=r(0);for(let e=1;e<t;e++)if(!R(n,r(e)))return;return Array.from(n).map(e=>e.split(",")).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;yn.update(this,this.width,this.height,e);const t=this.chartArea,r=t.width<=0||t.height<=0;this._layers=[],g(this.boxes,e=>{r&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,r=this.data.datasets.length;t<r;++t)this._updateDataset(t,L(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const r=this.getDatasetMeta(e),n={meta:r,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",n)&&(r.controller._update(t),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(gr.has(this)?this.attached&&!gr.running(this)&&gr.start(this):(this.draw(),pi({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resize(e,t),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,r=[];let n,i;for(n=0,i=t.length;n<i;++n){const i=t[n];e&&!i.visible||r.push(i)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,r=e._clip,n=!r.disabled,i=this.chartArea,o={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(n&&Je(t,{left:!1===r.left?0:i.left-r.left,right:!1===r.right?this.width:i.right+r.right,top:!1===r.top?0:i.top-r.top,bottom:!1===r.bottom?this.height:i.bottom+r.bottom}),e.controller.draw(),n&&Qe(t),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return Ze(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,r,n){const i=an.modes[t];return"function"==typeof i?i(this,e,r,n):[]}getDatasetMeta(e){const t=this.data.datasets[e],r=this._metasets;let n=r.filter(e=>e&&e._dataset===t).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},r.push(n)),n}getContext(){return this.$context||(this.$context=vt(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const r=this.getDatasetMeta(e);return"boolean"==typeof r.hidden?!r.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,r){const n=r?"show":"hide",i=this.getDatasetMeta(e),o=i.controller._resolveAnimations(void 0,n);k(t)?(i.data[t].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),o.update(i,{visible:r}),this.update(t=>t.datasetIndex===e?n:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),gr.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),$e(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete mi[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,r=(r,n)=>{t.addEventListener(this,r,n),e[r]=n},n=(e,t,r)=>{e.offsetX=t,e.offsetY=r,this._eventHandler(e)};g(this.options.events,e=>r(e,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,r=(r,n)=>{t.addEventListener(this,r,n),e[r]=n},n=(r,n)=>{e[r]&&(t.removeEventListener(this,r,n),delete e[r])},i=(e,t)=>{this.canvas&&this.resize(e,t)};let o;const a=()=>{n("attach",a),this.attached=!0,this.resize(),r("resize",i),r("detach",o)};o=()=>{this.attached=!1,n("resize",i),this._stop(),this._resize(0,0),r("attach",a)},t.isAttached(this.canvas)?a():o()}unbindEvents(){g(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},g(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,r){const n=r?"set":"remove";let i,o,a,s;for("dataset"===t&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+n+"DatasetHoverStyle"]()),a=0,s=e.length;a<s;++a){o=e[a];const t=o&&this.getDatasetMeta(o.datasetIndex).controller;t&&t[n+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],r=e.map(({datasetIndex:e,index:t})=>{const r=this.getDatasetMeta(e);if(!r)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:r.data[t],index:t}});!m(r,t)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,t))}notifyPlugins(e,t,r){return this._plugins.notify(this,e,t,r)}_updateHoverStyles(e,t,r){const n=this.options.hover,i=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),o=i(t,e),a=r?e:i(e,t);o.length&&this.updateHoverStyle(o,n.mode,!1),a.length&&n.mode&&this.updateHoverStyle(a,n.mode,!0)}_eventHandler(e,t){const r={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},n=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",r,n))return;const i=this._handleEvent(e,t,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,n),(i||r.changed)&&this.render(),this}_handleEvent(e,t,r){const{_active:n=[],options:i}=this,o=t,a=this._getActiveElements(e,n,r,o),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,r,n){return r&&"mouseout"!==e.type?n?t:e:null}(e,this._lastEvent,r,s);r&&(this._lastEvent=null,v(i.onHover,[e,a,this],this),s&&v(i.onClick,[e,a,this],this));const c=!m(a,n);return(c||t)&&(this._active=a,this._updateHoverStyles(a,n,t)),this._lastEvent=l,c}_getActiveElements(e,t,r,n){if("mouseout"===e.type)return[];if(!r)return t;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,n)}}const bi=()=>g(wi.instances,e=>e._plugins.invalidate()),xi=!0;function Ci(e,t,r){const{startAngle:n,pixelMargin:i,x:o,y:a,outerRadius:s,innerRadius:l}=t;
1let c=i/s;e.beginPath(),e.arc(o,a,s,n-c,r+c),l>i?(c=i/l,e.arc(o,a,l,r+c,n-c,!0)):e.arc(o,a,i,r+B,n-B),e.closePath(),e.clip()}function Si(e,t,r,n){const i=ct(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const o=(r-t)/2,a=Math.min(o,n*t/2),s=e=>{const t=(r-Math.min(o,e))*n/2;return J(e,0,Math.min(o,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:J(i.innerStart,0,a),innerEnd:J(i.innerEnd,0,a)}}function Ei(e,t,r,n){return{x:r+e*Math.cos(t),y:n+e*Math.sin(t)}}function Mi(e,t,r,n,i){const{x:o,y:a,startAngle:s,pixelMargin:l,innerRadius:c}=t,u=Math.max(t.outerRadius+n+r-l,0),h=c>0?c+n+r+l:0;let d=0;const f=i-s;if(n){const e=((c>0?c-n:0)+(u>0?u-n:0))/2;d=(f-(0!==e?f*e/(e+n):f))/2}const p=(f-Math.max(.001,f*u-r/O)/u)/2,v=s+p+d,g=i-p-d,{outerStart:m,outerEnd:_,innerStart:y,innerEnd:w}=Si(t,h,u,g-v),b=u-m,x=u-_,C=v+m/b,S=g-_/x,E=h+y,M=h+w,k=v+y/E,L=g-w/M;if(e.beginPath(),e.arc(o,a,u,C,S),_>0){const t=Ei(x,S,o,a);e.arc(t.x,t.y,_,S,g+B)}const R=Ei(M,g,o,a);if(e.lineTo(R.x,R.y),w>0){const t=Ei(M,L,o,a);e.arc(t.x,t.y,w,g+B,L+Math.PI)}if(e.arc(o,a,h,g-w/h,v+y/h,!0),y>0){const t=Ei(E,k,o,a);e.arc(t.x,t.y,y,k+Math.PI,v-B)}const A=Ei(b,v,o,a);if(e.lineTo(A.x,A.y),m>0){const t=Ei(b,C,o,a);e.arc(t.x,t.y,m,v-B,C)}e.closePath()}function ki(e,t,r,n,i){const{options:o}=t,{borderWidth:a,borderJoinStyle:s}=o,l="inner"===o.borderAlign;a&&(l?(e.lineWidth=2*a,e.lineJoin=s||"round"):(e.lineWidth=a,e.lineJoin=s||"bevel"),t.fullCircles&&function(e,t,r){const{x:n,y:i,startAngle:o,pixelMargin:a,fullCircles:s}=t,l=Math.max(t.outerRadius-a,0),c=t.innerRadius+a;let u;for(r&&Ci(e,t,o+A),e.beginPath(),e.arc(n,i,c,o+A,o,!0),u=0;u<s;++u)e.stroke();for(e.beginPath(),e.arc(n,i,l,o,o+A),u=0;u<s;++u)e.stroke()}(e,t,l),l&&Ci(e,t,i),Mi(e,t,r,n,i),e.stroke())}Object.defineProperties(wi,{defaults:{enumerable:xi,value:qe},instances:{enumerable:xi,value:mi},overrides:{enumerable:xi,value:Ve},registry:{enumerable:xi,value:Xn},version:{enumerable:xi,value:"3.8.0"},getChart:{enumerable:xi,value:_i},register:{enumerable:xi,value:(...e)=>{Xn.add(...e),bi()}},unregister:{enumerable:xi,value:(...e)=>{Xn.remove(...e),bi()}}});class Li extends In{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,r){const n=this.getProps(["x","y"],r),{angle:i,distance:o}=K(n,{x:e,y:t}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),h=this.options.spacing/2,d=f(u,s-a)>=A||Z(i,a,s),p=Q(o,l+h,c+h);return d&&p}getCenterPoint(e){const{x:t,y:r,startAngle:n,endAngle:i,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:s,spacing:l}=this.options,c=(n+i)/2,u=(o+a+l+s)/2;return{x:t+Math.cos(c)*u,y:r+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:r}=this,n=(t.offset||0)/2,i=(t.spacing||0)/2;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=r>A?Math.floor(r/A):0,0===r||this.innerRadius<0||this.outerRadius<0)return;e.save();let o=0;if(n){o=n/2;const t=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(t)*o,Math.sin(t)*o),this.circumference>=O&&(o=n)}e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor;const a=function(e,t,r,n){const{fullCircles:i,startAngle:o,circumference:a}=t;let s=t.endAngle;if(i){Mi(e,t,r,n,o+A);for(let t=0;t<i;++t)e.fill();isNaN(a)||(s=o+a%A,a%A===0&&(s+=A))}return Mi(e,t,r,n,s),e.fill(),s}(e,this,o,i);ki(e,this,o,i,a),e.restore()}}function Ri(e,t,r=t){e.lineCap=f(r.borderCapStyle,t.borderCapStyle),e.setLineDash(f(r.borderDash,t.borderDash)),e.lineDashOffset=f(r.borderDashOffset,t.borderDashOffset),e.lineJoin=f(r.borderJoinStyle,t.borderJoinStyle),e.lineWidth=f(r.borderWidth,t.borderWidth),e.strokeStyle=f(r.borderColor,t.borderColor)}function Oi(e,t,r){e.lineTo(r.x,r.y)}function Ai(e,t,r={}){const n=e.length,{start:i=0,end:o=n-1}=r,{start:a,end:s}=t,l=Math.max(i,a),c=Math.min(o,s),u=i<a&&o<a||i>s&&o>s;return{count:n,start:l,loop:t.loop,ilen:c<l&&!u?n+c-l:c-l}}function Pi(e,t,r,n){const{points:i,options:o}=t,{count:a,start:s,loop:l,ilen:c}=Ai(i,r,n),u=function(e){return e.stepped?et:e.tension||"monotone"===e.cubicInterpolationMode?tt
vendor: 5,075 bytes, line 1
1:Oi}(o);let h,d,f,{move:p=!0,reverse:v}=n||{};for(h=0;h<=c;++h)d=i[(s+(v?c-h:h))%a],d.skip||(p?(e.moveTo(d.x,d.y),p=!1):u(e,f,d,v,o.stepped),f=d);return l&&(d=i[(s+(v?c:0))%a],u(e,f,d,v,o.stepped)),!!l}function Ti(e,t,r,n){const i=t.points,{count:o,start:a,ilen:s}=Ai(i,r,n),{move:l=!0,reverse:c}=n||{};let u,h,d,f,p,v,g=0,m=0;const _=e=>(a+(c?s-e:e))%o,y=()=>{f!==p&&(e.lineTo(g,p),e.lineTo(g,f),e.lineTo(g,v))};for(l&&(h=i[_(0)],e.moveTo(h.x,h.y)),u=0;u<=s;++u){if(h=i[_(u)],h.skip)continue;const t=h.x,r=h.y,n=0|t;n===d?(r<f?f=r:r>p&&(p=r),g=(m*g+t)/++m):(y(),e.lineTo(t,r),d=n,m=0,f=p=r),v=r}y()}function Di(e){const t=e.options,r=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||r)?Ti:Pi}Li.id="arc",Li.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},Li.defaultRoutes={backgroundColor:"backgroundColor"};const Bi="function"==typeof Path2D;function ji(e,t,r,n){Bi&&!t.options.segment?function(e,t,r,n){let i=t._path;i||(i=t._path=new Path2D,t.path(i,r,n)&&i.closePath()),Ri(e,t.options),e.stroke(i)}(e,t,r,n):function(e,t,r,n){const{segments:i,options:o}=t,a=Di(t);for(const s of i)Ri(e,o,s.style),e.beginPath(),a(e,t,s,{start:r,end:r+n-1})&&e.closePath(),e.stroke()}(e,t,r,n)}class Ii extends In{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const r=this.options;if((r.tension||"monotone"===r.cubicInterpolationMode)&&!r.stepped&&!this._pointsUpdated){const n=r.spanGaps?this._loop:this._fullLoop;Wt(this._points,r,e,n,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const r=e.points,n=e.options.spanGaps,i=r.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=function(e,t,r,n){let i=0,o=t-1;if(r&&!n)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,r&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}(r,i,o,n);return fr(e,!0===n?[{start:a,end:s,loop:o}]:function(e,t,r,n){const i=e.length,o=[];let a,s=t,l=e[t];for(a=t+1;a<=r;++a){const r=e[a%i];r.skip||r.stop?l.skip||(n=!1,o.push({start:t%i,end:(a-1)%i,loop:n}),t=s=r.stop?a:null):(s=a,l.skip&&(t=a)),l=r}return null!==s&&o.push({start:t%i,end:s%i,loop:n}),o}(r,a,s<a?s+i:s,!!e._fullLoop&&0===a&&s===i-1),r,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,r=e.length;return r&&t[e[r-1].end]}interpolate(e,t){const r=this.options,n=e[t],i=this.points,o=dr(this,{property:t,start:n,end:n});if(!o.length)return;const a=[],s=function(e){return e.stepped?rr:e.tension||"monotone"===e.cubicInterpolationMode?nr:tr}(r);let l,c;for(l=0,c=o.length;l<c;++l){const{start:c,end:u}=o[l],h=i[c],d=i[u];if(h===d){a.push(h);continue}const f=s(h,d,Math.abs((n-h[t])/(d[t]-h[t])),r.stepped);f[t]=e[t],a.push(f)}return 1===a.length?a[0]:a}pathSegment(e,t,r){return Di(this)(e,this,t,r)}path(e,t,r){const n=this.segments,i=Di(this);let o=this._loop;t=t||0,r=r||this.points.length-t;for(const a of n)o&=i(e,this,a,{start:t,end:t+r-1});return!!o}draw(e,t,r,n){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),ji(e,this,r,n),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function zi(e,t,r,n){const i=e.options,{[r]:o}=e.getProps([r],n);return Math.abs(t-o)<i.radius+i.hitRadius}Ii.id="line",Ii.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Ii.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Ii.descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};class Hi extends In{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,r){const n=this.options,{x:i,y:o}=this.getProps(["x","y"],r);return Math.pow(e-i,2)+Math.pow(t-o,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(e,t){return zi(this,e,"x",t)}inYRange(e,t){return zi(this,e,"y",t)}getCenterPoint(e){const{x:t,y:r}=this.getProps(["x","y"],e);return{x:t,y:r}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const r=this.options;this.skip||r.radius<.1||!Ze(this,t,this.size(r)/2)||(e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.fillStyle=r.backgroundColor,Xe(e,r,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function Fi(e,t){const{x:r,y:n,base:i,width:o,height:a}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,h;
vendor: 2,377 bytes, line 1
1return e.horizontal?(h=a/2,s=Math.min(r,i),l=Math.max(r,i),c=n-h,u=n+h):(h=o/2,s=r-h,l=r+h,c=Math.min(n,i),u=Math.max(n,i)),{left:s,top:c,right:l,bottom:u}}function Vi(e,t,r,n){return e?0:J(t,r,n)}function Wi(e){const t=Fi(e),r=t.right-t.left,n=t.bottom-t.top,i=function(e,t,r){const n=e.options.borderWidth,i=e.borderSkipped,o=ut(n);return{t:Vi(i.top,o.top,0,r),r:Vi(i.right,o.right,0,t),b:Vi(i.bottom,o.bottom,0,r),l:Vi(i.left,o.left,0,t)}}(e,r/2,n/2),o=function(e,t,r){const{enableBorderRadius:n}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=ht(i),a=Math.min(t,r),s=e.borderSkipped,l=n||u(i);return{topLeft:Vi(!l||s.top||s.left,o.topLeft,0,a),topRight:Vi(!l||s.top||s.right,o.topRight,0,a),bottomLeft:Vi(!l||s.bottom||s.left,o.bottomLeft,0,a),bottomRight:Vi(!l||s.bottom||s.right,o.bottomRight,0,a)}}(e,r/2,n/2);return{outer:{x:t.left,y:t.top,w:r,h:n,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:r-i.l-i.r,h:n-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function Ni(e,t,r,n){const i=null===t,o=null===r,a=e&&!(i&&o)&&Fi(e,n);return a&&(i||Q(t,a.left,a.right))&&(o||Q(r,a.top,a.bottom))}function Ui(e,t){e.rect(t.x,t.y,t.w,t.h)}function qi(e,t,r={}){const n=e.x!==r.x?-t:0,i=e.y!==r.y?-t:0,o=(e.x+e.w!==r.x+r.w?t:0)-n,a=(e.y+e.h!==r.y+r.h?t:0)-i;return{x:e.x+n,y:e.y+i,w:e.w+o,h:e.h+a,radius:e.radius}}Hi.id="point",Hi.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Hi.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Yi extends In{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:r,backgroundColor:n}}=this,{inner:i,outer:o}=Wi(this),a=(s=o.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?it:Ui;var s;e.save(),o.w===i.w&&o.h===i.h||(e.beginPath(),a(e,qi(o,t,i)),e.clip(),a(e,qi(i,-t,o)),e.fillStyle=r,e.fill("evenodd")),e.beginPath(),a(e,qi(i,t)),e.fillStyle=n,e.fill(),e.restore()}inRange(e,t,r){return Ni(this,e,t,r)}inXRange(e,t){return Ni(this,e,null,t)}inYRange(e,t){return Ni(this,null,e,t)}
vendor: 4,147 bytes, line 1
1getCenterPoint(e){const{x:t,y:r,base:n,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);return{x:i?(t+n)/2:t,y:i?r:(r+n)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}Yi.id="bar",Yi.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Yi.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function Ki(e,t,r,n){if(n)return;let i=t[e],o=r[e];return"angle"===e&&(i=X(i),o=X(o)),{property:e,start:i,end:o}}function Gi(e,t,r){for(;t>e;t--){const e=r[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function $i(e,t,r,n){return e&&t?n(e[r],t[r]):e?e[r]:t?t[r]:0}function Xi(e,t){let r=[],n=!1;return c(e)?(n=!0,r=e):r=function(e,t){const{x:r=null,y:n=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:e,end:t})=>{t=Gi(e,t,i);const a=i[e],s=i[t];null!==n?(o.push({x:a.x,y:n}),o.push({x:s.x,y:n})):null!==r&&(o.push({x:r,y:a.y}),o.push({x:r,y:s.y}))}),o}(e,t),r.length?new Ii({points:r,options:{tension:0},_loop:n,_fullLoop:n}):null}function Zi(e,t,r){let n=e[t].fill;const i=[t];let o;if(!r)return n;for(;!1!==n&&-1===i.indexOf(n);){if(!h(n))return n;if(o=e[n],!o)return!1;if(o.visible)return n;i.push(n),n=o.fill}return!1}function Ji(e,t,r){const n=function(e){const t=e.options,r=t.fill;let n=f(r&&r.target,r);void 0===n&&(n=!!t.backgroundColor);if(!1===n||null===n)return!1;if(!0===n)return"origin";return n}(e);if(u(n))return!isNaN(n.value)&&n;let i=parseFloat(n);return h(i)&&Math.floor(i)===i?function(e,t,r,n){"-"!==e&&"+"!==e||(r=t+r);if(r===t||r<0||r>=n)return!1;return r}(n[0],t,i,r):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function Qi(e,t,r){const n=[];for(let i=0;i<r.length;i++){const o=r[i],{first:a,last:s,point:l}=eo(o,t,"x");if(!(!l||a&&s))if(a)n.unshift(l);else if(e.push(l),!s)break}e.push(...n)}function eo(e,t,r){const n=e.interpolate(t,r);if(!n)return{};const i=n[r],o=e.segments,a=e.points;let s=!1,l=!1;for(let e=0;e<o.length;e++){const t=o[e],n=a[t.start][r],c=a[t.end][r];if(Q(i,n,c)){s=i===n,l=i===c;break}}return{first:s,last:l,point:n}}class to{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,r){const{x:n,y:i,radius:o}=this;return t=t||{start:0,end:A},e.arc(n,i,o,t.end,t.start,!0),!r.bounds}interpolate(e){const{x:t,y:r,radius:n}=this,i=e.angle;return{x:t+Math.cos(i)*n,y:r+Math.sin(i)*n,angle:i}}}function ro(e){const{chart:t,fill:r,line:n}=e;if(h(r))return function(e,t){const r=e.getDatasetMeta(t),n=r&&e.isDatasetVisible(t);return n?r.dataset:null}(t,r);if("stack"===r)return function(e){const{scale:t,index:r,line:n}=e,i=[],o=n.segments,a=n.points,s=function(e,t){const r=[],n=e.getMatchingVisibleMetas("line");for(let e=0;e<n.length;e++){const i=n[e];if(i.index===t)break;i.hidden||r.unshift(i.dataset)}return r}(t,r);s.push(Xi({x:null,y:t.bottom},n));for(let e=0;e<o.length;e++){const t=o[e];for(let e=t.start;e<=t.end;e++)Qi(i,a[e],s)}return new Ii({points:i,options:{}})}(e);if("shape"===r)return!0;const i=function(e){const t=e.scale||{};if(t.getPointPositionForValue)return function(e){const{scale:t,fill:r}=e,n=t.options,i=t.getLabels().length,o=n.reverse?t.max:t.min,a=function(e,t,r){let n;return n="start"===e?r:"end"===e?t.options.reverse?t.min:t.max:u(e)?e.value:t.getBaseValue(),n}(r,t,o),s=[];if(n.grid.circular){const e=t.getPointPositionForValue(0,o);return new to({x:e.x,y:e.y,radius:t.getDistanceFromCenterForValue(a)})}for(let e=0;e<i;++e)s.push(t.getPointPositionForValue(e,a));return s}(e);return function(e){const{scale:t={},fill:r}=e,n=function(e,t){let r=null;return"start"===e?r=t.bottom:"end"===e?r=t.top:u(e)?r=t.getPixelForValue(e.value):t.getBasePixel&&(r=t.getBasePixel()),r}(r,t);if(h(n)){const e=t.isHorizontal();return{x:e?n:null,y:e?null:n}}return null}(e)}(e);return i instanceof to?i:Xi(i,n)}function no(e,t,r){const n=ro(t),{line:i,scale:o,axis:a}=t,s=i.options,l=s.fill,c=s.backgroundColor,{above:u=c,below:h=c}=l||{};n&&i.points.length&&(Je(e,r),function(e,t){const{line:r,target:n,above:i,below:o,area:a,scale:s}=t,l=r._loop?"angle":t.axis;e.save(),"x"===l&&o!==i&&(io(e,n,a.top),oo(e,{line:r,target:n,color:i,scale:s,property:l}
vendor: 4,113 bytes, line 1
1),e.restore(),e.save(),io(e,n,a.bottom));oo(e,{line:r,target:n,color:o,scale:s,property:l}),e.restore()}(e,{line:i,target:n,above:u,below:h,area:r,scale:o,axis:a}),Qe(e))}function io(e,t,r){const{segments:n,points:i}=t;let o=!0,a=!1;e.beginPath();for(const s of n){const{start:n,end:l}=s,c=i[n],u=i[Gi(n,l,i)];o?(e.moveTo(c.x,c.y),o=!1):(e.lineTo(c.x,r),e.lineTo(c.x,c.y)),a=!!t.pathSegment(e,s,{move:a}),a?e.closePath():e.lineTo(u.x,r)}e.lineTo(t.first().x,r),e.closePath(),e.clip()}function oo(e,t){const{line:r,target:n,property:i,color:o,scale:a}=t,s=function(e,t,r){const n=e.segments,i=e.points,o=t.points,a=[];for(const e of n){let{start:n,end:s}=e;s=Gi(n,s,i);const l=Ki(r,i[n],i[s],e.loop);if(!t.segments){a.push({source:e,target:l,start:i[n],end:i[s]});continue}const c=dr(t,l);for(const t of c){const n=Ki(r,o[t.start],o[t.end],t.loop),s=hr(e,i,n);for(const e of s)a.push({source:e,target:t,start:{[r]:$i(l,n,"start",Math.max)},end:{[r]:$i(l,n,"end",Math.min)}})}}return a}(r,n,i);for(const{source:t,target:l,start:c,end:u}of s){const{style:{backgroundColor:s=o}={}}=t,h=!0!==n;e.save(),e.fillStyle=s,ao(e,a,h&&Ki(i,c,u)),e.beginPath();const d=!!r.pathSegment(e,t);let f;if(h){d?e.closePath():so(e,n,u,i);const t=!!n.pathSegment(e,l,{move:d,reverse:!0});f=d&&t,f||so(e,n,c,i)}e.closePath(),e.fill(f?"evenodd":"nonzero"),e.restore()}}function ao(e,t,r){const{top:n,bottom:i}=t.chart.chartArea,{property:o,start:a,end:s}=r||{};"x"===o&&(e.beginPath(),e.rect(a,n,s-a,i-n),e.clip())}function so(e,t,r,n){const i=t.interpolate(r,n);i&&e.lineTo(i.x,i.y)}var lo={id:"filler",afterDatasetsUpdate(e,t,r){const n=(e.data.datasets||[]).length,i=[];let o,a,s,l;for(a=0;a<n;++a)o=e.getDatasetMeta(a),s=o.dataset,l=null,s&&s.options&&s instanceof Ii&&(l={visible:e.isDatasetVisible(a),index:a,fill:Ji(s,a,n),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=l,i.push(l);for(a=0;a<n;++a)l=i[a],l&&!1!==l.fill&&(l.fill=Zi(i,a,r.propagate))},beforeDraw(e,t,r){const n="beforeDraw"===r.drawTime,i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let t=i.length-1;t>=0;--t){const r=i[t].$filler;r&&(r.line.updateControlPoints(o,r.axis),n&&no(e.ctx,r,o))}},beforeDatasetsDraw(e,t,r){if("beforeDatasetsDraw"!==r.drawTime)return;const n=e.getSortedVisibleDatasetMetas();for(let t=n.length-1;t>=0;--t){const r=n[t].$filler;r&&no(e.ctx,r,e.chartArea)}},beforeDatasetDraw(e,t,r){const n=t.meta.$filler;n&&!1!==n.fill&&"beforeDatasetDraw"===r.drawTime&&no(e.ctx,n,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};new WeakMap;const co={average(e){if(!e.length)return!1;let t,r,n=0,i=0,o=0;for(t=0,r=e.length;t<r;++t){const r=e[t].element;if(r&&r.hasValue()){const e=r.tooltipPosition();n+=e.x,i+=e.y,++o}}return{x:n/o,y:i/o}},nearest(e,t){if(!e.length)return!1;let r,n,i,o=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(r=0,n=e.length;r<n;++r){const n=e[r].element;if(n&&n.hasValue()){const e=G(t,n.getCenterPoint());e<s&&(s=e,i=n)}}if(i){const e=i.tooltipPosition();o=e.x,a=e.y}return{x:o,y:a}}};function uo(e,t){return t&&(c(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function ho(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function fo(e,t){const{element:r,datasetIndex:n,index:i}=t,o=e.getDatasetMeta(n).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[n].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:n,element:r}}function po(e,t){const r=e.chart.ctx,{body:n,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=ft(t.bodyFont),c=ft(t.titleFont),u=ft(t.footerFont),h=o.length,d=i.length,f=n.length,p=dt(t.padding);let v=p.height,m=0,_=n.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,h&&(v+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),_){v+=f*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(_-f)*l.lineHeight+(_-1)*t.bodySpacing}d&&(v+=t.footerMarginTop+d*u.lineHeight+(d-1)*t.footerSpacing);let y=0;const w=function(e){m=Math.max(m,r.measureText(e).width+y)};
1return r.save(),r.font=c.string,g(e.title,w),r.font=l.string,g(e.beforeBody.concat(e.afterBody),w),y=t.displayColors?a+2+t.boxPadding:0,g(n,e=>{g(e.before,w),g(e.lines,w),g(e.after,w)}),y=0,r.font=u.string,g(e.footer,w),r.restore(),m+=p.width,{width:m,height:v}}function vo(e,t,r,n){const{x:i,width:o}=r,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return"center"===n?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),function(e,t,r,n){const{x:i,width:o}=n,a=r.caretSize+r.caretPadding;return"left"===e&&i+o+a>t.width||"right"===e&&i-o-a<0||void 0}(c,e,t,r)&&(c="center"),c}function go(e,t,r){const n=r.yAlign||t.yAlign||function(e,t){const{y:r,height:n}=t;return r<n/2?"top":r>e.height-n/2?"bottom":"center"}(e,r);return{xAlign:r.xAlign||t.xAlign||vo(e,t,r,n),yAlign:n}}function mo(e,t,r,n){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=r,c=i+o,{topLeft:u,topRight:h,bottomLeft:d,bottomRight:f}=ht(a);let p=function(e,t){let{x:r,width:n}=e;return"right"===t?r-=n:"center"===t&&(r-=n/2),r}(t,s);const v=function(e,t,r){let{y:n,height:i}=e;return"top"===t?n+=r:n-="bottom"===t?i+r:i/2,n}(t,l,c);return"center"===l?"left"===s?p+=c:"right"===s&&(p-=c):"left"===s?p-=Math.max(u,d)+i:"right"===s&&(p+=Math.max(h,f)+i),{x:J(p,0,n.width-t.width),y:J(v,0,n.height-t.height)}}function _o(e,t,r){const n=dt(r.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-n.right:e.x+n.left}function yo(e){return uo([],ho(e))}function wo(e,t){const r=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return r?e.override(r):e}class bo extends In{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,r=this.options.setContext(this.getContext()),n=r.enabled&&t.options.animation&&r.animations,i=new br(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,r=this._tooltipItems,vt(e,{tooltip:t,tooltipItems:r,type:"tooltip"})));var e,t,r}getTitle(e,t){const{callbacks:r}=t,n=r.beforeTitle.apply(this,[e]),i=r.title.apply(this,[e]),o=r.afterTitle.apply(this,[e]);let a=[];return a=uo(a,ho(n)),a=uo(a,ho(i)),a=uo(a,ho(o)),a}getBeforeBody(e,t){return yo(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){const{callbacks:r}=t,n=[];return g(e,e=>{const t={before:[],lines:[],after:[]},i=wo(r,e);uo(t.before,ho(i.beforeLabel.call(this,e))),uo(t.lines,i.label.call(this,e)),uo(t.after,ho(i.afterLabel.call(this,e))),n.push(t)}),n}getAfterBody(e,t){return yo(t.callbacks.afterBody.apply(this,[e]))}getFooter(e,t){const{callbacks:r}=t,n=r.beforeFooter.apply(this,[e]),i=r.footer.apply(this,[e]),o=r.afterFooter.apply(this,[e]);let a=[];return a=uo(a,ho(n)),a=uo(a,ho(i)),a=uo(a,ho(o)),a}_createItems(e){const t=this._active,r=this.chart.data,n=[],i=[],o=[];let a,s,l=[];for(a=0,s=t.length;a<s;++a)l.push(fo(this.chart,t[a]));return e.filter&&(l=l.filter((t,n,i)=>e.filter(t,n,i,r))),e.itemSort&&(l=l.sort((t,n)=>e.itemSort(t,n,r))),g(l,t=>{const r=wo(e.callbacks,t);n.push(r.labelColor.call(this,t)),i.push(r.labelPointStyle.call(this,t)),o.push(r.labelTextColor.call(this,t))}),this.labelColors=n,this.labelPointStyles=i,this.labelTextColors=o,this.dataPoints=l,l}update(e,t){const r=this.options.setContext(this.getContext()),n=this._active;let i,o=[];if(n.length){const e=co[r.position].call(this,n,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const t=this._size=po(this,r),a=Object.assign({},e,t),s=go(this.chart,r,a),l=mo(r,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(i={opacity:0}
vendor: 4,859 bytes, line 1
1);this._tooltipItems=o,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,r,n){const i=this.getCaretPosition(e,r,n);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}getCaretPosition(e,t,r){const{xAlign:n,yAlign:i}=this,{caretSize:o,cornerRadius:a}=r,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=ht(a),{x:h,y:d}=e,{width:f,height:p}=t;let v,g,m,_,y,w;return"center"===i?(y=d+p/2,"left"===n?(v=h,g=v-o,_=y+o,w=y-o):(v=h+f,g=v+o,_=y-o,w=y+o),m=v):(g="left"===n?h+Math.max(s,c)+o:"right"===n?h+f-Math.max(l,u)-o:this.caretX,"top"===i?(_=d,y=_-o,v=g-o,m=g+o):(_=d+p,y=_+o,v=g+o,m=g-o),w=_),{x1:v,x2:g,x3:m,y1:_,y2:y,y3:w}}drawTitle(e,t,r){const n=this.title,i=n.length;let o,a,s;if(i){const l=ar(r.rtl,this.x,this.width);for(e.x=_o(this,r.titleAlign,r),t.textAlign=l.textAlign(r.titleAlign),t.textBaseline="middle",o=ft(r.titleFont),a=r.titleSpacing,t.fillStyle=r.titleColor,t.font=o.string,s=0;s<i;++s)t.fillText(n[s],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+a,s+1===i&&(e.y+=r.titleMarginBottom-a)}}_drawColorBox(e,t,r,n,i){const o=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:s,boxWidth:l,boxPadding:c}=i,u=ft(i.bodyFont),h=_o(this,"left",i),d=n.x(h),f=s<u.lineHeight?(u.lineHeight-s)/2:0,p=t.y+f;if(i.usePointStyle){const t={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},r=n.leftForLtr(d,l)+l/2,c=p+s/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,Xe(e,t,r,c),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,Xe(e,t,r,c)}else{e.lineWidth=o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const t=n.leftForLtr(d,l-c),r=n.leftForLtr(n.xPlus(d,1),l-c-2),a=ht(o.borderRadius);Object.values(a).some(e=>0!==e)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,it(e,{x:t,y:p,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),it(e,{x:r,y:p+1,w:l-2,h:s-2,radius:a}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(t,p,l,s),e.strokeRect(t,p,l,s),e.fillStyle=o.backgroundColor,e.fillRect(r,p+1,l-2,s-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,t,r){const{body:n}=this,{bodySpacing:i,bodyAlign:o,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=r,u=ft(r.bodyFont);let h=u.lineHeight,d=0;const f=ar(r.rtl,this.x,this.width),p=function(r){t.fillText(r,f.x(e.x+d),e.y+h/2),e.y+=h+i},v=f.textAlign(o);let m,_,y,w,b,x,C;for(t.textAlign=o,t.textBaseline="middle",t.font=u.string,e.x=_o(this,v,r),t.fillStyle=r.bodyColor,g(this.beforeBody,p),d=a&&"right"!==v?"center"===o?l/2+c:l+2+c:0,w=0,x=n.length;w<x;++w){for(m=n[w],_=this.labelTextColors[w],t.fillStyle=_,g(m.before,p),y=m.lines,a&&y.length&&(this._drawColorBox(t,e,w,f,r),h=Math.max(u.lineHeight,s)),b=0,C=y.length;b<C;++b)p(y[b]),h=u.lineHeight;g(m.after,p)}d=0,h=u.lineHeight,g(this.afterBody,p),e.y-=i}drawFooter(e,t,r){const n=this.footer,i=n.length;let o,a;if(i){const s=ar(r.rtl,this.x,this.width);for(e.x=_o(this,r.footerAlign,r),e.y+=r.footerMarginTop,t.textAlign=s.textAlign(r.footerAlign),t.textBaseline="middle",o=ft(r.footerFont),t.fillStyle=r.footerColor,t.font=o.string,a=0;a<i;++a)t.fillText(n[a],s.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+r.footerSpacing}}drawBackground(e,t,r,n){const{xAlign:i,yAlign:o}=this,{x:a,y:s}=e,{width:l,height:c}=r,{topLeft:u,topRight:h,bottomLeft:d,bottomRight:f}=ht(n.cornerRadius);t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.beginPath(),t.moveTo(a+u,s),"top"===o&&this.drawCaret(e,t,r,n),t.lineTo(a+l-h,s),t.quadraticCurveTo(a+l,s,a+l,s+h),"center"===o&&"right"===i&&this.drawCaret(e,t,r,n),t.lineTo(a+l,s+c-f),t.quadraticCurveTo(a+l,s+c,a+l-f,s+c),"bottom"===o&&this.drawCaret(e,t,r,n),t.lineTo(a+d,s+c),t.quadraticCurveTo(a,s+c,a,s+c-d),"center"===o&&"left"===i&&this.drawCaret(e,t,r,n),t.lineTo(a,s+u),t.quadraticCurveTo(a,s,a+u,s),t.closePath(),t.fill(),n.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,r=this.$animations,n=r&&r.x,i=r&&r.y;if(n||i){const r=co[e.position].call(this,this._active,this._eventPosition);if(!r)return;const o=this._size=po(this,e),a=Object.assign({},r,this._size),s=go(t,e,a),l=mo(e,a,s,t);n._to===l.x&&i._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=o.width,this.height=o.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(t);const n={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=dt(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;
vendor: 7,307 bytes, line 1
1t.enabled&&a&&(e.save(),e.globalAlpha=r,this.drawBackground(i,e,n,t),sr(e,t.textDirection),i.y+=o.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),lr(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const r=this._active,n=e.map(({datasetIndex:e,index:t})=>{const r=this.chart.getDatasetMeta(e);if(!r)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:r.data[t],index:t}}),i=!m(r,n),o=this._positionChanged(n,t);(i||o)&&(this._active=n,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,r=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,i=this._active||[],o=this._getActiveElements(e,i,t,r),a=this._positionChanged(o,e),s=t||!m(o,i)||a;return s&&(this._active=o,(n.enabled||n.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,r,n){const i=this.options;if("mouseout"===e.type)return[];if(!n)return t;const o=this.chart.getElementsAtEventForMode(e,i.mode,i,r);return i.reverse&&o.reverse(),o}_positionChanged(e,t){const{caretX:r,caretY:n,options:i}=this,o=co[i.position].call(this,e,t);return!1!==o&&(r!==o.x||n!==o.y)}}bo.positioners=co;function xo(e,t,r,n){const i=e.indexOf(t);if(-1===i)return((e,t,r,n)=>("string"==typeof t?(r=e.push(t)-1,n.unshift({index:r,label:t})):isNaN(t)&&(r=null),r))(e,t,r,n);return i!==e.lastIndexOf(t)?r:i}class Co extends Gn{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:r,label:n}of t)e[r]===n&&e.splice(r,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(l(e))return null;const r=this.getLabels();return((e,t)=>null===e?null:J(Math.round(e),0,t))(t=isFinite(t)&&r[t]===e?t:xo(r,e,f(t,e),this._addedLabels),r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:r,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(r=0),t||(n=this.getLabels().length-1)),this.min=r,this.max=n}buildTicks(){const e=this.min,t=this.max,r=this.options.offset,n=[];let i=this.getLabels();i=0===e&&t===i.length-1?i:i.slice(e,t+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let r=e;r<=t;r++)n.push({value:r});return n}getLabelForValue(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function So(e,t){const r=[],{bounds:n,step:i,min:o,max:a,precision:s,count:c,maxTicks:u,maxDigits:h,includeBounds:d}=e,f=i||1,p=u-1,{min:v,max:g}=t,m=!l(o),_=!l(a),y=!l(c),w=(g-v)/(h+1);let b,x,C,S,E=F((g-v)/p/f)*f;if(E<1e-14&&!m&&!_)return[{value:v},{value:g}];S=Math.ceil(g/E)-Math.floor(v/E),S>p&&(E=F(S*E/p/f)*f),l(s)||(b=Math.pow(10,s),E=Math.ceil(E*b)/b),"ticks"===n?(x=Math.floor(v/E)*E,C=Math.ceil(g/E)*E):(x=v,C=g),m&&_&&i&&function(e,t){const r=Math.round(e);return r-t<=e&&r+t>=e}((a-o)/i,E/1e3)?(S=Math.round(Math.min((a-o)/E,u)),E=(a-o)/S,x=o,C=a):y?(x=m?o:x,C=_?a:C,S=c-1,E=(C-x)/S):(S=(C-x)/E,S=W(S,Math.round(S),E/1e3)?Math.round(S):Math.ceil(S));const M=Math.max(Y(E),Y(x));b=Math.pow(10,l(s)?M:s),x=Math.round(x*b)/b,C=Math.round(C*b)/b;let k=0;for(m&&(d&&x!==o?(r.push({value:o}),x<o&&k++,W(Math.round((x+k*E)*b)/b,o,Eo(o,w,e))&&k++):x<o&&k++);k<S;++k)r.push({value:Math.round((x+k*E)*b)/b});return _&&d&&C!==a?r.length&&W(r[r.length-1].value,a,Eo(a,w,e))?r[r.length-1].value=a:r.push({value:a}):_&&C!==a||r.push({value:C}),r}function Eo(e,t,{horizontal:r,minRotation:n}){const i=U(n),o=(r?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}Co.id="category",Co.defaults={ticks:{callback:Co.prototype.getLabelForValue}};class Mo extends Gn{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return l(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:r}=this.getUserBounds();let{min:n,max:i}=this;const o=e=>n=t?n:e,a=e=>i=r?i:e;if(e){const e=H(n),t=H(i);e<0&&t<0?a(0):e>0&&t>0&&o(0)}if(n===i){let t=1;(i>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(t=Math.abs(.05*i)),a(i+t),e||o(n-t)}this.min=n,this.max=i}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:r,stepSize:n}=e;return n?(t=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),r=r||11),r&&(t=Math.min(r,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const n=So({maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&N(n,this,"value"),e.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const e=this.ticks;let t=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const n=(r-t)/Math.max(e.length-1,1)/2;t-=n,r+=n}this._startValue=t,this._endValue=r,this._valueRange=r-t}getLabelForValue(e){return or(e,this.chart.options.locale,this.options.ticks.format)}}class ko extends Mo{determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=h(e)?e:0,this.max=h(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,r=U(this.options.ticks.minRotation),n=(e?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/n))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}function Lo(e){return 1===e/Math.pow(10,Math.floor(z(e)))}ko.id="linear",ko.defaults={ticks:{callback:Hn.formatters.numeric}};class Ro extends Gn{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const r=Mo.prototype.parse.apply(this,[e,t]);if(0!==r)return h(r)&&r>0?r:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=h(e)?Math.max(0,e):null,this.max=h(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let r=this.min,n=this.max;const i=t=>r=e?r:t,o=e=>n=t?n:e,a=(e,t)=>Math.pow(10,Math.floor(z(e))+t);r===n&&(r<=0?(i(1),o(10)):(i(a(r,-1)),o(a(n,1)))),r<=0&&i(a(n,-1)),n<=0&&o(a(r,1)
vendor: 4,144 bytes, line 1
1),this._zero&&this.min!==this._suggestedMin&&r===a(this.min,0)&&i(a(r,-1)),this.min=r,this.max=n}buildTicks(){const e=this.options,t=function(e,t){const r=Math.floor(z(t.max)),n=Math.ceil(t.max/Math.pow(10,r)),i=[];let o=d(e.min,Math.pow(10,Math.floor(z(t.min)))),a=Math.floor(z(o)),s=Math.floor(o/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{i.push({value:o,major:Lo(o)}),++s,10===s&&(s=1,++a,l=a>=0?1:l),o=Math.round(s*Math.pow(10,a)*l)/l}while(a<r||a===r&&s<n);const c=d(e.max,o);return i.push({value:c,major:Lo(o)}),i}({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&N(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":or(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=z(e),this._valueRange=z(this.max)-z(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(z(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function Oo(e){const t=e.ticks;if(t.display&&e.display){const e=dt(t.backdropPadding);return f(t.font&&t.font.size,qe.font.size)+e.height}return 0}function Ao(e,t,r){return r=c(r)?r:[r],{w:Ke(e,t.string,r),h:r.length*t.lineHeight}}function Po(e,t,r,n,i){return e===n||e===i?{start:t-r/2,end:t+r/2}:e<n||e>i?{start:t-r,end:t}:{start:t,end:t+r}}function To(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},r=Object.assign({},t),n=[],i=[],o=e._pointLabels.length,a=e.options.pointLabels,s=a.centerPointLabels?O/o:0;for(let l=0;l<o;l++){const o=a.setContext(e.getPointLabelContext(l));i[l]=o.padding;const c=e.getPointPosition(l,e.drawingArea+i[l],s),u=ft(o.font),h=Ao(e.ctx,u,e._pointLabels[l]);n[l]=h;const d=X(e.getIndexAngle(l)+s),f=Math.round(q(d));Do(r,t,d,Po(f,c.x,h.w,0,180),Po(f,c.y,h.h,90,270))}e.setCenterPoint(t.l-r.l,r.r-t.r,t.t-r.t,r.b-t.b),e._pointLabelItems=function(e,t,r){const n=[],i=e._pointLabels.length,o=e.options,a=Oo(o)/2,s=e.drawingArea,l=o.pointLabels.centerPointLabels?O/i:0;for(let o=0;o<i;o++){const i=e.getPointPosition(o,s+a+r[o],l),c=Math.round(q(X(i.angle+B))),u=t[o],h=Io(i.y,u.h,c),d=Bo(c),f=jo(i.x,u.w,d);n.push({x:i.x,y:h,textAlign:d,left:f,top:h,right:f+u.w,bottom:h+u.h})}return n}(e,n,i)}function Do(e,t,r,n,i){const o=Math.abs(Math.sin(r)),a=Math.abs(Math.cos(r));let s=0,l=0;n.start<t.l?(s=(t.l-n.start)/o,e.l=Math.min(e.l,t.l-s)):n.end>t.r&&(s=(n.end-t.r)/o,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(l=(t.t-i.start)/a,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/a,e.b=Math.max(e.b,t.b+l))}function Bo(e){return 0===e||180===e?"center":e<180?"left":"right"}function jo(e,t,r){return"right"===r?e-=t:"center"===r&&(e-=t/2),e}function Io(e,t,r){return 90===r||270===r?e-=t/2:(r>270||r<90)&&(e-=t),e}function zo(e,t,r,n){const{ctx:i}=e;if(r)i.arc(e.xCenter,e.yCenter,t,0,A);else{let r=e.getPointPosition(0,t);i.moveTo(r.x,r.y);for(let o=1;o<n;o++)r=e.getPointPosition(o,t),i.lineTo(r.x,r.y)}}Ro.id="logarithmic",Ro.defaults={ticks:{callback:Hn.formatters.logarithmic,major:{enabled:!0}}};class Ho extends Mo{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=dt(Oo(this.options)/2),t=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(t,r)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=h(e)&&!isNaN(e)?e:0,this.max=h(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Oo(this.options))}generateTickLabels(e){Mo.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((e,t)=>{const r=v(this.options.pointLabels.callback,[e,t],this);return r||0===r?r:""}).filter((e,t)=>
vendor: 8,269 bytes, line 1
1this.chart.getDataVisibility(t))}fit(){const e=this.options;e.display&&e.pointLabels.display?To(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,r,n){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((r-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,r,n))}getIndexAngle(e){return X(e*(A/(this._pointLabels.length||1))+U(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(l(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(l(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const r=t[e];return function(e,t,r){return vt(e,{label:r,index:t,type:"pointLabel"})}(this.getContext(),e,r)}}getPointPosition(e,t,r=0){const n=this.getIndexAngle(e)-B+r;return{x:Math.cos(n)*t+this.xCenter,y:Math.sin(n)*t+this.yCenter,angle:n}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:r,right:n,bottom:i}=this._pointLabelItems[e];return{left:t,top:r,right:n,bottom:i}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),zo(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:r,grid:n}=t,i=this._pointLabels.length;let o,a,s;if(t.pointLabels.display&&function(e,t){const{ctx:r,options:{pointLabels:n}}=e;for(let i=t-1;i>=0;i--){const t=n.setContext(e.getPointLabelContext(i)),o=ft(t.font),{x:a,y:s,textAlign:c,left:u,top:h,right:d,bottom:f}=e._pointLabelItems[i],{backdropColor:p}=t;if(!l(p)){const e=ht(t.borderRadius),n=dt(t.backdropPadding);r.fillStyle=p;const i=u-n.left,o=h-n.top,a=d-u+n.width,s=f-h+n.height;Object.values(e).some(e=>0!==e)?(r.beginPath(),it(r,{x:i,y:o,w:a,h:s,radius:e}),r.fill()):r.fillRect(i,o,a,s)}rt(r,e._pointLabels[i],a,s+o.lineHeight/2,o,{color:t.color,textAlign:c,textBaseline:"middle"})}}(this,i),n.display&&this.ticks.forEach((e,t)=>{if(0!==t){a=this.getDistanceFromCenterForValue(e.value);!function(e,t,r,n){const i=e.ctx,o=t.circular,{color:a,lineWidth:s}=t;!o&&!n||!a||!s||r<0||(i.save(),i.strokeStyle=a,i.lineWidth=s,i.setLineDash(t.borderDash),i.lineDashOffset=t.borderDashOffset,i.beginPath(),zo(e,r,o,n),i.closePath(),i.stroke(),i.restore())}(this,n.setContext(this.getContext(t-1)),a,i)}}),r.display){for(e.save(),o=i-1;o>=0;o--){const n=r.setContext(this.getPointLabelContext(o)),{color:i,lineWidth:l}=n;l&&i&&(e.lineWidth=l,e.strokeStyle=i,e.setLineDash(n.borderDash),e.lineDashOffset=n.borderDashOffset,a=this.getDistanceFromCenterForValue(t.ticks.reverse?this.min:this.max),s=this.getPointPosition(o,a),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(s.x,s.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,r=t.ticks;if(!r.display)return;const n=this.getIndexAngle(0);let i,o;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(n),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((n,a)=>{if(0===a&&!t.reverse)return;const s=r.setContext(this.getContext(a)),l=ft(s.font);if(i=this.getDistanceFromCenterForValue(this.ticks[a].value),s.showLabelBackdrop){e.font=l.string,o=e.measureText(n.label).width,e.fillStyle=s.backdropColor;const t=dt(s.backdropPadding);e.fillRect(-o/2-t.left,-i-l.size/2-t.top,o+t.width,l.size+t.height)}rt(e,n.label,0,-i,l,{color:s.color})}),e.restore()}drawTitle(){}}Ho.id="radialLinear",Ho.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Hn.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}},Ho.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Ho.descriptors={angleLines:{_fallback:"grid"}};const Fo={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Vo=Object.keys(Fo);function Wo(e,t){return e-t}function No(e,t){if(l(t))return null;const r=e._adapter,{parser:n,round:i,isoWeekday:o}=e._parseOpts;let a=t;return"function"==typeof n&&(a=n(a)),h(a)||(a="string"==typeof n?r.parse(a,n):r.parse(a)),null===a?null:(i&&(a="week"!==i||!V(o)&&!0!==o?r.startOf(a,i):r.startOf(a,"isoWeek",o)),+a)}function Uo(e,t,r,n){const i=Vo.length;for(let o=Vo.indexOf(e);o<i-1;++o){const e=Fo[Vo[o]],i=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((r-t)/(i*e.size))<=n)return Vo[o]}return Vo[i-1]}function qo(e,t,r){if(r){if(r.length){const{lo:n,hi:i}=gt(r,t);e[r[n]>=t?r[n]:r[i]]=!0}}else e[t]=!0}function Yo(e,t,r){const n=[],i={},o=t.length;let a,s;for(a=0;a<o;++a)s=t[a],i[s]=a,n.push({value:s,major:!1});return 0!==o&&r?function(e,t,r,n){const i=e._adapter,o=+i.startOf(t[0].value,n),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,n))l=r[s],l>=0&&(t[l].major=!0);return t}(e,n,i,r):n}class Ko extends Gn{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t){const r=e.time||(e.time={}),n=this._adapter=new Jr._date(e.adapters.date);x(r.displayFormats,n.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:No(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,r=e.time.unit||"day";let{min:n,max:i,minDefined:o,maxDefined:a}=this.getUserBounds();function s(e){o||isNaN(e.min)||(n=Math.min(n,e.min)),a||isNaN(e.max)||(i=Math.max(i,e.max))}o&&a||(s(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||s(this.getMinMax(!1))),n=h(n)&&!isNaN(n)?n:+t.startOf(Date.now(),r),i=h(i)&&!isNaN(i)?i:+t.endOf(Date.now(),r)+1,this.min=Math.min(n,i-1),this.max=Math.max(n+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],r=e[e.length-1]),{min:t,max:r}}buildTicks(){const e=this.options,t=e.time,r=e.ticks,n="labels"===r.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const i=this.min,o=function(e,t,r){let n=0,i=e.length;for(;n<i&&e[n]<t;)n++;for(;i>n&&e[i-1]>r;)i--;return n>0||i<e.length?e.slice(n,i):e}(n,i,this.max);return this._unit=t.unit||(r.autoSkip?Uo(t.minUnit,this.min,this.max,this._getLabelCapacity(i)):function(e,t,r,n,i){for(let o=Vo.length-1;o>=Vo.indexOf(r);o--){const r=Vo[o];if(Fo[r].common&&e._adapter.diff(i,n,r)>=t-1)return r}return Vo[r?Vo.indexOf(r):0]}(this,o.length,t.minUnit,this.min,this.max)),this._majorUnit=r.major.enabled&&"year"!==this._unit?function(e){for(let t=Vo.indexOf(e)+1,r=Vo.length;t<r;++t)if(Fo[Vo[t]].common)return Vo[t]}(this._unit):void 0,this.initOffsets(n),e.reverse&&o.reverse(),Yo(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e){let t,r,n=0,i=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),n=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,r=this.getDecimalForValue(e[e.length-1]),i=1===e.length?r:(r-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=J(n,0,o),i=J(i,0,o),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const e=this._adapter,t=this.min,r=this.max,n=this.options,i=n.time,o=i.unit||Uo(i.minUnit,t,r,this._getLabelCapacity(t)),a=f(i.stepSize,1),s="week"===o&&i.isoWeekday,l=V(s)||
1!0===s,c={};let u,h,d=t;if(l&&(d=+e.startOf(d,"isoWeek",s)),d=+e.startOf(d,l?"day":o),e.diff(r,t,o)>1e5*a)throw new Error(t+" and "+r+" are too far apart with stepSize of "+a+" "+o);const p="data"===n.ticks.source&&this.getDataTimestamps();for(u=d,h=0;u<r;u=+e.add(u,a,o),h++)qo(c,u,p);return u!==r&&"ticks"!==n.bounds&&1!==h||qo(c,u,p),Object.keys(c).sort((e,t)=>e-t).map(e=>+e)}getLabelForValue(e){const t=this._adapter,r=this.options.time;return r.tooltipFormat?t.format(e,r.tooltipFormat):t.format(e,r.displayFormats.datetime)}_tickFormatFunction(e,t,r,n){const i=this.options,o=i.time.displayFormats,a=this._unit,s=this._majorUnit,l=a&&o[a],c=s&&o[s],u=r[t],h=s&&c&&u&&u.major,d=this._adapter.format(e,n||(h?c:l)),f=i.ticks.callback;return f?v(f,[d,t,r],this):d}generateTickLabels(e){let t,r,n;for(t=0,r=e.length;t<r;++t)n=e[t],n.label=this._tickFormatFunction(n.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+r)*t.factor)}getValueForPixel(e){const t=this._offsets,r=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,r=this.ctx.measureText(e).width,n=U(this.isHorizontal()?t.maxRotation:t.minRotation),i=Math.cos(n),o=Math.sin(n),a=this._resolveTickFontOptions(0).size;return{w:r*i+a*o,h:r*o+a*i}}_getLabelCapacity(e){const t=this.options.time,r=t.displayFormats,n=r[t.unit]||r.millisecond,i=this._tickFormatFunction(e,0,Yo(this,[e],this._majorUnit),n),o=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let e,t,r=this._cache.data||[];if(r.length)return r;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(e=0,t=n.length;e<t;++e)r=r.concat(n[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(r)}getLabelTimestamps(){const e=this._cache.labels||[];let t,r;if(e.length)return e;const n=this.getLabels();for(t=0,r=n.length;t<r;++t)e.push(No(this,n[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return bt(e.sort(Wo))}}function Go(e,t,r){let n,i,o,a,s=0,l=e.length-1;r?(t>=e[s].pos&&t<=e[l].pos&&({lo:s,hi:l}=mt(e,"pos",t)),({pos:n,time:o}=e[s]),({pos:i,time:a}=e[l])):(t>=e[s].time&&t<=e[l].time&&({lo:s,hi:l}=mt(e,"time",t)),({time:n,pos:o}=e[s]),({time:i,pos:a}=e[l]));const c=i-n;return c?o+(a-o)*(t-n)/c:o}Ko.id="time",Ko.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class $o extends Ko{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=Go(t,this.min),this._tableRange=Go(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:r}=this,n=[],i=[];let o,a,s,l,c;for(o=0,a=e.length;o<a;++o)l=e[o],l>=t&&l<=r&&n.push(l);if(n.length<2)return[{time:t,pos:0},{time:r,pos:1}];for(o=0,a=n.length;o<a;++o)c=n[o+1],s=n[o-1],l=n[o],Math.round((c+s)/2)!==l&&i.push({time:l,pos:o/(a-1)});return i}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),r=this.getLabelTimestamps();return e=t.length&&r.length?this.normalize(t.concat(r)):t.length?t:r,e=this._cache.all=e,e}getDecimalForValue(e){return(Go(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,r=this.getDecimalForPixel(e)/t.factor-t.end;return Go(this._table,r*this._tableRange+this._minPos,!0)}}$o.id="timeseries",$o.defaults=Ko.defaults},5755(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=i.apply(null,r);a&&e.push(a)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}
1.apply(t,[]))||(e.exports=r)}()},623(e,t,r){"use strict";var n=r(5968),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,o,a,s,l,c,u=!1;t||(t={}),r=t.debug||!1;try{if(a=n(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(n){r&&console.error("unable to copy using execCommand: ",n),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(n){r&&console.error("unable to copy using clipboardData: ",n),r&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"â":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},3615(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},953(e,t,r){"use strict";function n(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function i(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function o(e){i(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}r.d(t,{M1e:()=>d,GPZ:()=>ae,mor:()=>de,Bo:()=>fe});function a(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function s(e,t){i(2,arguments);var r=o(e),n=o(t),a=r.getTime()-n.getTime();return a<0?-1:a>0?1:a}Math.pow(10,8);function l(e){if(i(1,arguments),!function(e){return i(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=o(e);return!isNaN(Number(t))}function c(e,t){return i(2,arguments),o(e).getTime()-o(t).getTime()}var u={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function h(e){return e?u[e]:u.trunc}function d(e,t,r){i(2,arguments);var n=c(e,t)/36e5;return h(null==r?void 0:r.roundingMethod)(n)}function f(e){i(1,arguments);var t=o(e);return function(e){i(1,arguments);var t=o(e);return t.setHours(23,59,59,999),t}(t).getTime()===function(e){i(1,arguments);var t=o(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}(t).getTime()}function p(e,t){i(2,arguments);var r,n=o(e),a=o(t),l=s(n,a),c=Math.abs(function(e,t){i(2,arguments);var r=o(e),n=o(t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(n,a));if(c<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-l*c);var u=s(n,a)===-l;f(o(e))&&1===c&&1===s(e,a)&&(u=!1),r=l*(c-Number(u))}return 0===r?0:r}var v={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const g=function(e,t,r){var n,i=v[e];return n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function m(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const _={date:m({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:m({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:m({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var y={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const w=function(e,t,r,n){return y[e]};function b(e){return function(t,r){var n,i=r||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;n=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;n=e.values[l]||e.values[s]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const x={ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:b({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:b({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:b({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:b({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:b({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function C(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r;return}(l,function(e){return e.test(s)}):function(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r;return}(l,function(e){return e.test(s)});return a=e.valueCallback?e.valueCallback(c):c,{value:a=r.valueCallback?r.valueCallback(a):a,rest:t.slice(s.length)}}}var S,E={ordinalNumber:(S={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(S.matchPattern);if(!r)return null;var n=r[0],i=e.match(S.parsePattern);if(!i)return null;var o=S.valueCallback?S.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(n.length)}}),era:C({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:C({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:C({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:C({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:C({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const M={code:"en-US",formatDistance:g,formatLong:_,formatRelative:w,localize:x,match:E,options:{weekStartsOn:0,firstWeekContainsDate:1}};function k(e,t){return i(2,arguments),function(e,t){i(2,arguments);var r=o(e).getTime(),a=n(t);return new Date(r+a)}(e,-n(t))}function L(e){i(1,arguments);var t=o(e),r=t.getUTCDay(),n=(r<1?7:0)+r-1;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function R(e){i(1,arguments);var t=o(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=L(n),s=new Date(0);s.setUTCFullYear(r,0,4),s.setUTCHours(0,0,0,0);var l=L(s);return t.getTime()>=a.getTime()?r+1:t.getTime()>=l.getTime()?r:r-1}function O(e){i(1,arguments);var t=o(e),r=L(t).getTime()-function(e){i(1,arguments);var t=R(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),L(r)}(t).getTime();return Math.round(r/6048e5)+1}function A(e,t){i(1,arguments);var r=t||{},a=r.locale,s=a&&a.options&&a.options.weekStartsOn,l=null==s?0:n(s),c=null==r.weekStartsOn?l:n(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=o(e),h=u.getUTCDay(),d=(h<c?7:0)+h-c;return u.setUTCDate(u.getUTCDate()-d),u.setUTCHours(0,0,0,0),u}function P(e,t){i(1,arguments);var r=o(e),a=r.getUTCFullYear(),s=t||{},l=s.locale,c=l&&l.options&&l.options.firstWeekContainsDate,u=null==c?1:n(c),h=null==s.firstWeekContainsDate?u:n(s.firstWeekContainsDate);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=new Date(0);d.setUTCFullYear(a+1,0,h),d.setUTCHours(0,0,0,0);var f=A(d,t),p=new Date(0);p.setUTCFullYear(a,0,h),p.setUTCHours(0,0,0,0);var v=A(p,t);return r.getTime()>=f.getTime()?a+1:r.getTime()>=v.getTime()?a:a-1}function T(e,t){i(1,arguments);var r=o(e),a=A(r,t).getTime()-function(e,t){i(1,arguments);var r=t||{},o=r.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:n(a),l=null==r.firstWeekContainsDate?s:n(r.firstWeekContainsDate),c=P(e,t),u=new Date(0);return u.setUTCFullYear(c,0,l),u.setUTCHours(0,0,0,0),A(u,t)}(r,t).getTime();return Math.round(a/6048e5)+1}function D(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var B={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return D("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):D(r+1,2)},d:function(e,t){return D(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];
vendor: 5,060 bytes, line 1
1default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return D(e.getUTCHours()%12||12,t.length)},H:function(e,t){return D(e.getUTCHours(),t.length)},m:function(e,t){return D(e.getUTCMinutes(),t.length)},s:function(e,t){return D(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds();return D(Math.floor(n*Math.pow(10,r-3)),t.length)}};const j=B;var I="midnight",z="noon",H="morning",F="afternoon",V="evening",W="night",N={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return j.y(e,t)},Y:function(e,t,r,n){var i=P(e,n),o=i>0?i:1-i;return"YY"===t?D(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):D(o,t.length)},R:function(e,t){return D(R(e),t.length)},u:function(e,t){return D(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return D(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return D(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return j.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return D(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var i=T(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):D(i,t.length)},I:function(e,t,r){var n=O(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):D(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):j.d(e,t)},D:function(e,t,r){var n=function(e){i(1,arguments);var t=o(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=r-t.getTime();return Math.floor(n/864e5)+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):D(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return D(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return D(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return D(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,i=e.getUTCHours();switch(n=12===i?z:0===i?I:i/12>
vendor: 3,325 bytes, line 1
1=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,i=e.getUTCHours();switch(n=i>=17?V:i>=12?F:i>=4?H:W,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return j.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):j.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):D(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):D(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):j.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):j.s(e,t)},S:function(e,t){return j.S(e,t)},X:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return q(i);case"XXXX":case"XX":return Y(i);default:return Y(i,":")}},x:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return q(i);case"xxxx":case"xx":return Y(i);default:return Y(i,":")}},O:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+U(i,":");default:return"GMT"+Y(i,":")}},z:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+U(i,":");default:return"GMT"+Y(i,":")}},t:function(e,t,r,n){var i=n._originalDate||e;return D(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,r,n){return D((n._originalDate||e).getTime(),t.length)}};function U(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(0===o)return r+String(i);var a=t||"";return r+String(i)+a+D(o,2)}function q(e,t){return e%60==0?(e>0?"-":"+")+D(Math.abs(e)/60,2):Y(e,t)}function Y(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e);return n+D(Math.floor(i/60),2)+r+D(i%60,2)}const K=N;function G(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function $(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var X={p:$,P:function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return G(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",G(i,t)).replace("{{time}}",$(o,t))}};const Z=X;var J=["D","DD"],Q=["YY","YYYY"];function ee(e,t,r){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").
1concat(r,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}var te=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,re=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ne=/^'([^]*?)'?$/,ie=/''/g,oe=/[a-zA-Z]/;function ae(e,t,r){i(2,arguments);var s=String(t),c=r||{},u=c.locale||M,h=u.options&&u.options.firstWeekContainsDate,d=null==h?1:n(h),f=null==c.firstWeekContainsDate?d:n(c.firstWeekContainsDate);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=u.options&&u.options.weekStartsOn,v=null==p?0:n(p),g=null==c.weekStartsOn?v:n(c.weekStartsOn);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!u.localize)throw new RangeError("locale must contain localize property");if(!u.formatLong)throw new RangeError("locale must contain formatLong property");var m=o(e);if(!l(m))throw new RangeError("Invalid time value");var _=k(m,a(m)),y={firstWeekContainsDate:f,weekStartsOn:g,locale:u,_originalDate:m};return s.match(re).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,Z[t])(e,u.formatLong,y):e}).join("").match(te).map(function(r){if("''"===r)return"'";var n=r[0];if("'"===n)return r.match(ne)[1].replace(ie,"'");var i,o=K[n];if(o)return c.useAdditionalWeekYearTokens||(i=r,-1===Q.indexOf(i))||ee(r,t,e),!c.useAdditionalDayOfYearTokens&&function(e){return-1!==J.indexOf(e)}(r)&&ee(r,t,e),o(_,r,u.localize,y);if(n.match(oe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return r}).join("")}function se(e){return function(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t=t||{})Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}({},e)}var le=43200;function ce(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i(2,arguments);var n=r.locale||M;if(!n.formatDistance)throw new RangeError("locale must contain formatDistance property");var l=s(e,t);if(isNaN(l))throw new RangeError("Invalid time value");var u,d,f=se(r);f.addSuffix=Boolean(r.addSuffix),f.comparison=l,l>0?(u=o(t),d=o(e)):(u=o(e),d=o(t));var v,g=function(e,t,r){i(2,arguments);var n=c(e,t)/1e3;return h(null==r?void 0:r.roundingMethod)(n)}(d,u),m=(a(d)-a(u))/1e3,_=Math.round((g-m)/60);if(_<2)return r.includeSeconds?g<5?n.formatDistance("lessThanXSeconds",5,f):g<10?n.formatDistance("lessThanXSeconds",10,f):g<20?n.formatDistance("lessThanXSeconds",20,f):g<40?n.formatDistance("halfAMinute",null,f):g<60?n.formatDistance("lessThanXMinutes",1,f):n.formatDistance("xMinutes",1,f):0===_?n.formatDistance("lessThanXMinutes",1,f):n.formatDistance("xMinutes",_,f);if(_<45)return n.formatDistance("xMinutes",_,f);if(_<90)return n.formatDistance("aboutXHours",1,f);if(_<1440){var y=Math.round(_/60);return n.formatDistance("aboutXHours",y,f)}if(_<2520)return n.formatDistance("xDays",1,f);if(_<le){var w=Math.round(_/1440);return n.formatDistance("xDays",w,f)}if(_<86400)return v=Math.round(_/le),n.formatDistance("aboutXMonths",v,f);if((v=p(d,u))<12){var b=Math.round(_/le);return n.formatDistance("xMonths",b,f)}var x=v%12,C=Math.floor(v/12);return x<3?n.formatDistance("aboutXYears",C,f):x<9?n.formatDistance("overXYears",C,f):n.formatDistance("almostXYears",C+1,f)}var ue=1440,he=525600;function de(e,t){return i(1,arguments),ce(e,Date.now(),t)}function fe(e,t){return i(1,arguments),function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i(2,arguments);var n=r.locale||M;if(!n.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var l=s(e,t);if(isNaN(l))throw new RangeError("Invalid time value");var c,u,h=se(r);h.addSuffix=Boolean(r.addSuffix),h.comparison=l,l>0?(c=o(t),u=o(e)):(c=o(e),u=o(t));var d,f=null==r.roundingMethod?"round":String(r.roundingMethod);if("floor"===f)d=Math.floor;else if("ceil"===f)d=Math.ceil;else{if("round"!==f)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");d=Math.round}var p,v=u.getTime()-c.getTime(),g=v/6e4,m=(v-(a(u)-a(c)))/6e4;if("second"===(p=null==r.unit?g<1?"second":g<60?"minute":g<ue?"hour":m<43200?"day":m<he?"month":"year":String(r.unit))){var _=d(v/1e3);return n.formatDistance("xSeconds",_,h)}if("minute"===p){var y=d(g);return n.formatDistance("xMinutes",y,h)}if("hour"===p){var w=d(g/60);return n.formatDistance("xHours",w,h)}if("day"===p){var b=d(m/ue);return n.formatDistance("xDays",b,h)}if("month"===p){var x=d(m/43200);return 12===x&&"month"!==r.unit?n.formatDistance("xYears",1,h):n.formatDistance("xMonths",x,h)}if("year"===p){var C=d(m/he);return n.formatDistance("xYears",C,h)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}(e,Date.now(),t)}},680(e){function t(e,t,r){var n,i,o,a,s;function l(){var c=Date.now()-a;c<t&&c>=0?n=setTimeout(l,t-c):(n=null,r||(s=e.apply(o,i),o=i=null))}null==t&&(t=100);var c=function(){o=this,i=arguments,a=Date.now();var c=r&&!n;return n||(n=setTimeout(l,t)),c&&(s=e.apply(o,i),o=i=null),s};return c.clear=function(){n&&(clearTimeout(n),n=null)},c.flush=function(){n&&(s=e.apply(o,i),o=i=null,clearTimeout(n),n=null)},c}t.debounce=t,e.exports=t},5324(e,t,r){var n=r(294);function i(e){this.mode=n.MODE_8BIT_BYTE,this.data=e}i.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},e.exports=i},1580(e){function t(){this.buffer=new Array,this.length=0}t.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var r=0;r<t;r++)this.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},1075(e){e.exports={L:1,M:0,Q:3,H:2}},4199(e,t,r){var n=r(3979);function i(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var r=0;r<e.length&&0==e[r];)r++;this.num=new Array(e.length-r+t);for(var n=0;n<e.length-r;n++)this.num[n]=e[n+r]}i.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var o=0;o<e.getLength();o++)t[r+o]^=n.gexp(n.glog(this.get(r))+n.glog(e.get(o)));return new i(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=n.glog(this.get(0))-n.glog(e.get(0)),r=new Array(this.getLength()),o=0;o<this.getLength();o++)r[o]=this.get(o);for(o=0;o<e.getLength();o++)r[o]^=n.gexp(n.glog(e.get(o))+t);return new i(r,0).mod(e)}},e.exports=i},6139(e,t,r){var n=r(5324),i=r(2157),o=r(1580),a=r(4549),s=r(4199);function l(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var c=l.prototype;c.addData=function(e){var t=new n(e);this.dataList.push(t),this.dataCache=null},c.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},c.getModuleCount=function(){return this.moduleCount}
vendor: 4,984 bytes, line 1
1,c.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=i.getRSBlocks(e,this.errorCorrectLevel),r=new o,n=0,s=0;s<t.length;s++)n+=t[s].dataCount;for(s=0;s<this.dataList.length;s++){var l=this.dataList[s];r.put(l.mode,4),r.put(l.getLength(),a.getLengthInBits(l.mode,e)),l.write(r)}if(r.getLengthInBits()<=8*n)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},c.makeImpl=function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},c.setupPositionProbePattern=function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},c.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=a.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},c.createMovieClip=function(e,t,r){var n=e.createEmptyMovieClip(t,r);this.make();for(var i=0;i<this.modules.length;i++)for(var o=1*i,a=0;a<this.modules[i].length;a++){var s=1*a;this.modules[i][a]&&(n.beginFill(0,100),n.moveTo(s,o),n.lineTo(s+1,o),n.lineTo(s+1,o+1),n.lineTo(s,o+1),n.endFill())}return n},c.setupTimingPattern=function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},c.setupPositionAdjustPattern=function(){for(var e=a.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var r=0;r<e.length;r++){var n=e[t],i=e[r];if(null==this.modules[n][i])for(var o=-2;o<=2;o++)for(var s=-2;s<=2;s++)this.modules[n+o][i+s]=-2==o||2==o||-2==s||2==s||0==o&&0==s}},c.setupTypeNumber=function(e){for(var t=a.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!e&&1==(t>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!e&&1==(t>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},c.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=a.getBCHTypeInfo(r),i=0;i<15;i++){var o=!e&&1==(n>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(i=0;i<15;i++){o=!e&&1==(n>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},c.mapData=function(e,t){for(var r=-1,n=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[n][s-l]){var c=!1;o<e.length&&(c=1==(e[o]>>>i&1)),a.getMask(t,n,s-l)&&(c=!c),this.modules[n][s-l]=c,-1==--i&&(o++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,r){for(var n=i.getRSBlocks(e,t),s=new o,c=0;c<r.length;c++){var u=r[c];s.put(u.mode,4),s.put(u.getLength(),a.getLengthInBits(u.mode,e)),u.write(s)}var h=0;for(c=0;c<n.length;c++)h+=n[c].dataCount;if(s.getLengthInBits()>8*h)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*h+")");for(s.getLengthInBits()+4<=8*h&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*h||(s.put(l.PAD0,8),s.getLengthInBits()>=8*h));)s.put(l.PAD1,8);return l.createBytes(s,n)},l.createBytes=function(e,t){for(var r=0,n=0,i=0,o=new Array(t.length),l=new Array(t.length),c=0;c<t.length;c++){var u=t[c].dataCount,h=t[c].totalCount-u;n=Math.max(n,u),i=Math.max(i,h),o[c]=new Array(u);for(var d=0;d<o[c].length;d++)o[c][d]=255&e.buffer[d+r];r+=u;var f=a.getErrorCorrectPolynomial(h),p=new s(o[c],f.getLength()-1).mod(f);l[c]=new Array(f.getLength()-1);for(d=0;d<l[c].length;d++){var v=d+p.getLength()-l[c].length;l[c][d]=v>=0?p.get(v):0}}var g=0;for(d=0;d<t.length;d++)g+=t[d].totalCount;var m=new Array(g),_=0;for(d=0;d<n;d++)for(c=0;c<t.length;c++)d<o[c].length&&(m[_++]=o[c][d]);for(d=0;d<i;d++)for(c=0;c<t.length;c++)d<l[c].length&&(m[_++]=l[c][d]);return m},e.exports=l},2157(e,t,r){var n=r(1075);function i(e,t){this.totalCount=e,this.dataCount=t}i.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37
1],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],i.getRSBlocks=function(e,t){var r=i.getRsBlockTable(e,t);if(null==r)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var n=r.length/3,o=new Array,a=0;a<n;a++)for(var s=r[3*a+0],l=r[3*a+1],c=r[3*a+2],u=0;u<s;u++)o.push(new i(l,c));return o},i.getRsBlockTable=function(e,t){switch(t){case n.L:return i.RS_BLOCK_TABLE[4*(e-1)+0];case n.M:return i.RS_BLOCK_TABLE[4*(e-1)+1];case n.Q:return i.RS_BLOCK_TABLE[4*(e-1)+2];case n.H:return i.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},e.exports=i},3979(e){for(var t={glog:function(e){if(e<1)throw new Error("glog("+e+")");return t.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},r=0;r<8;r++)t.EXP_TABLE[r]=1<<r;for(r=8;r<256;r++)t.EXP_TABLE[r]=t.EXP_TABLE[r-4]^t.EXP_TABLE[r-5]^t.EXP_TABLE[r-6]^t.EXP_TABLE[r-8];for(r=0;r<255;r++)t.LOG_TABLE[t.EXP_TABLE[r]]=r;e.exports=t},294(e){e.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},4549(e,t,r){var n=r(294),i=r(4199),o=r(3979),a=0,s=1,l=2,c=3,u=4,h=5,d=6,f=7,p={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;
1p.getBCHDigit(t)-p.getBCHDigit(p.G15)>=0;)t^=p.G15<<p.getBCHDigit(t)-p.getBCHDigit(p.G15);return(e<<10|t)^p.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;p.getBCHDigit(t)-p.getBCHDigit(p.G18)>=0;)t^=p.G18<<p.getBCHDigit(t)-p.getBCHDigit(p.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return p.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case a:return(t+r)%2==0;case s:return t%2==0;case l:return r%3==0;case c:return(t+r)%3==0;case u:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case h:return t*r%2+t*r%3==0;case d:return(t*r%2+t*r%3)%2==0;case f:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),r=0;r<e;r++)t=t.multiply(new i([1,o.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:case n.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),r=0,n=0;n<t;n++)for(var i=0;i<t;i++){for(var o=0,a=e.isDark(n,i),s=-1;s<=1;s++)if(!(n+s<0||t<=n+s))for(var l=-1;l<=1;l++)i+l<0||t<=i+l||0==s&&0==l||a==e.isDark(n+s,i+l)&&o++;o>5&&(r+=3+o-5)}for(n=0;n<t-1;n++)for(i=0;i<t-1;i++){var c=0;e.isDark(n,i)&&c++,e.isDark(n+1,i)&&c++,e.isDark(n,i+1)&&c++,e.isDark(n+1,i+1)&&c++,0!=c&&4!=c||(r+=3)}for(n=0;n<t;n++)for(i=0;i<t-6;i++)e.isDark(n,i)&&!e.isDark(n,i+1)&&e.isDark(n,i+2)&&e.isDark(n,i+3)&&e.isDark(n,i+4)&&!e.isDark(n,i+5)&&e.isDark(n,i+6)&&(r+=40);for(i=0;i<t;i++)for(n=0;n<t-6;n++)e.isDark(n,i)&&!e.isDark(n+1,i)&&e.isDark(n+2,i)&&e.isDark(n+3,i)&&e.isDark(n+4,i)&&!e.isDark(n+5,i)&&e.isDark(n+6,i)&&(r+=40);var u=0;for(i=0;i<t;i++)for(n=0;n<t;n++)e.isDark(n,i)&&u++;return r+=10*(Math.abs(100*u/t/t-50)/5)}};e.exports=p},8672(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(r,!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),e}function h(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?f(e):t}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=r(7810),_=(r(5826),r(6139)),y=r(1075);function w(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);n<128?t+=String.fromCharCode(n):n<2048?(t+=String.fromCharCode(192|n>>6),t+=String.fromCharCode(128|63&n)):n<55296||n>=57344?(t+=String.fromCharCode(224|n>>12),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|63&n)):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t+=String.fromCharCode(240|n>>18),t+=String.fromCharCode(128|n>>12&63),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|63&n))}return t}var b={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1};function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[];return e.forEach(function(e,n){var i=null;e.forEach(function(o,a){if(!o&&null!==i)return r.push("M".concat(i+t," ").concat(n+t,"h").concat(a-i,"v1H").concat(i+t,"z")),void(i=null);if(a!==e.length-1)o&&null===i&&(i=a);else{if(!o)return;null===i?r.push("M".concat(a+t,",").concat(n+t," h1v1H").concat(a+t,"z")):r.push("M".concat(i+t,",").concat(n+t," h").concat(a+1-i,"v1H").concat(i+t,"z"))}})}),r.join("")}function C(e,t){return e.slice().map(function(e,r){return r<t.y||r>=t.y+t.h?e:e.map(function(e,r){return(r<t.x||r>=t.x+t.w)&&e})})}function S(e,t){var r=e.imageSettings,n=e.size,i=e.includeMargin;if(null==r)return null;var o=i?4:0,a=t.length+2*o,s=Math.floor(.1*n),l=a/n,c=(r.width||s)*l,u=(r.height||s)*l,h=null==r.x?t.length/2-c/2:r.x*l,d=null==r.y?t.length/2-u/2:r.y*l,f=null;if(r.excavate){var p=Math.floor(h),v=Math.floor(d);f={x:p,y:v,w:Math.ceil(c+h-p),h:Math.ceil(u+d-v)}}return{x:h,y:d,h:u,w:c,excavation:f}}var E=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),M=function(e){function t(){var e,r;l(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return g(f(r=h(this,(e=d(t)).call.apply(e,[this].concat(i)))),"_canvas",void 0),g(f(r),"_image",void 0),g(f(r),"state",{imgLoaded:!1}),g(f(r),"handleImageLoad",function(){r.setState({imgLoaded:!0})}),r}
1return p(t,e),u(t,[{key:"componentDidMount",value:function(){this._image&&this._image.complete&&this.handleImageLoad(),this.update()}},{key:"componentWillReceiveProps",value:function(e){var t,r;(null===(t=this.props.imageSettings)||void 0===t?void 0:t.src)!==(null===(r=e.imageSettings)||void 0===r?void 0:r.src)&&this.setState({imgLoaded:!1})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var e=this.props,t=e.value,r=e.size,n=e.level,i=e.bgColor,o=e.fgColor,a=e.includeMargin,s=e.imageSettings,l=new _(-1,y[n]);if(l.addData(w(t)),l.make(),null!=this._canvas){var c=this._canvas,u=c.getContext("2d");if(!u)return;var h=l.modules;if(null===h)return;var d=a?4:0,f=h.length+2*d,p=S(this.props,h);null!=s&&null!=p&&null!=p.excavation&&(h=C(h,p.excavation));var v=window.devicePixelRatio||1;c.height=c.width=r*v;var g=r/f*v;u.scale(g,g),u.fillStyle=i,u.fillRect(0,0,f,f),u.fillStyle=o,E?u.fill(new Path2D(x(h,d))):h.forEach(function(e,t){e.forEach(function(e,r){e&&u.fillRect(r+d,t+d,1,1)})}),this.state.imgLoaded&&this._image&&null!=p&&u.drawImage(this._image,p.x+d,p.y+d,p.w,p.h)}}},{key:"render",value:function(){var e=this,t=this.props,r=(t.value,t.size),n=(t.level,t.bgColor,t.fgColor,t.style),o=(t.includeMargin,t.imageSettings),l=s(t,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),c=a({height:r,width:r},n),u=null,h=o&&o.src;return null!=o&&null!=h&&(u=m.createElement("img",{src:h,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(t){return e._image=t}})),m.createElement(m.Fragment,null,m.createElement("canvas",i({style:c,height:r,width:r,ref:function(t){return e._canvas=t}},l)),u)}}]),t}(m.PureComponent);g(M,"defaultProps",b);var k=function(e){function t(){return l(this,t),h(this,d(t).apply(this,arguments))}return p(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.value,r=e.size,n=e.level,o=e.bgColor,a=e.fgColor,l=e.includeMargin,c=e.imageSettings,u=s(e,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),h=new _(-1,y[n]);h.addData(w(t)),h.make();var d=h.modules;if(null===d)return null;var f=l?4:0,p=d.length+2*f,v=S(this.props,d),g=null;null!=c&&null!=v&&(null!=v.excavation&&(d=C(d,v.excavation)),g=m.createElement("image",{xlinkHref:c.src,height:v.h,width:v.w,x:v.x+f,y:v.y+f,preserveAspectRatio:"none"}));var b=x(d,f);return m.createElement("svg",i({shapeRendering:"crispEdges",height:r,width:r,viewBox:"0 0 ".concat(p," ").concat(p)},u),m.createElement("path",{fill:o,d:"M0,0 h".concat(p,"v").concat(p,"H0z")}),m.createElement("path",{fill:a,d:b}),g)}}]),t}(m.PureComponent);g(k,"defaultProps",b);var L=function(e){var t=e.renderAs,r=s(e,["renderAs"]),n="svg"===t?k:M;return m.createElement(n,r)};L.defaultProps=a({renderAs:"canvas"},b),e.exports=L},4036(e,t,r){"use strict";r.d(t,{N1:()=>f});var n=r(7810),i=r(5284);const o="label";function a(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function s(e,t){e.labels=t}function l(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;const n=[];e.datasets=t.map(t=>{const i=e.datasets.find(e=>e[r]===t[r]);return i&&t.data&&!n.includes(i)?(n.push(i),Object.assign(i,t),i):{...t}})}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;const r={labels:[],datasets:[]};return s(r,e.labels),l(r,e.datasets,t),r}function u(e,t){let{height:r=150,width:o=300,redraw:u=!1,datasetIdKey:h,type:d,data:f,options:p,plugins:v=[],fallbackContent:g,updateMode:m,..._}=e;const y=(0,n.useRef)(null),w=(0,n.useRef)(),b=()=>{y.current&&(w.current=new i.t1(y.current,{type:d,data:c(f,h),options:p,plugins:v}),a(t,w.current))},x=()=>{a(t,null),w.current&&(w.current.destroy(),w.current=null)};return(0,n.useEffect)(()=>{var e,t;!u&&w.current&&p&&(e=w.current,t=p,e.options={...t})},[u,p]),(0,n.useEffect)(()=>{!u&&w.current&&s(w.current.config.data,f.labels)},[u,f.labels]),(0,n.useEffect)(()=>{!u&&w.current&&f.datasets&&l(w.current.config.data,f.datasets,h)},[u,f.datasets]),(0,n.useEffect)(()=>{w.current&&(u?(x(),setTimeout(b)):w.current.update(m))},[u,p,f.labels,f.datasets,m]),(0,n.useEffect)(()=>(b(),()=>x()),[]),n.createElement("canvas",Object.assign({ref:y,role:"img",height:r,width:o},_),g)}const h=(0,n.forwardRef)(u);function d(e,t){return i.t1.register(t),(0,n.forwardRef)((t,r)=>n.createElement(h,Object.assign({},t,{ref:r,type:e})))}const f=d("line",i.ZT)},440(e,t,r){"use strict";if(r(7810),t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;t.Fragment=n("react.fragment")}t.jsxDEV=void 0},3394(e,t,r){"use strict";var n=r(7810),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}
vendor: 8,248 bytes, line 1
1var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,o={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,n)&&!l.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}t.jsx=c,t.jsxs=c},8588(e,t,r){"use strict";e.exports=r(440)},4922(e,t,r){"use strict";e.exports=r(3394)},2225(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>S});var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var i=n[r];e.call(t,i[1],i[0])}},t}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==r.g&&r.g.Math===Math?r.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var s=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&l()}function s(){a(o)}function l(){var e=Date.now();if(r){if(e-i<2)return;n=!0}else r=!0,n=!1,setTimeout(s,t);i=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(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)},e.prototype.disconnect_=function(){i&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;s.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},h=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},d=_(0,0,0,0);function f(e){return parseFloat(e)||0}function p(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(t,r){return t+f(e["border-"+r+"-width"])},0)}function v(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return d;var n=h(e).getComputedStyle(e),i=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var i=n[r],o=e["padding-"+i];t[i]=f(o)}return t}(n),o=i.left+i.right,a=i.top+i.bottom,s=f(n.width),l=f(n.height);if("border-box"===n.boxSizing&&(Math.round(s+o)!==t&&(s-=p(n,"left","right")+o),Math.round(l+a)!==r&&(l-=p(n,"top","bottom")+a)),!function(e){return e===h(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-r;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return _(i.left,i.top,s,l)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof h(e).SVGGraphicsElement}:function(e){return e instanceof h(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return i?g(e)?function(e){var t=e.getBBox();return _(0,0,t.width,t.height)}(e):v(e):d}function _(e,t,r,n){return{x:e,y:t,width:r,height:n}}var y=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=_(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var r,n,i,o,a,s,l,c=(n=(r=t).x,i=r.y,o=r.width,a=r.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),u(l,{x:n,y:i,width:o,height:a,top:i,right:n+o,bottom:a+i,left:n}),l);u(this,{target:e,contentRect:c})},b=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new y(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new w(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),x="undefined"!=typeof WeakMap?new WeakMap:new n,C=function e(t){if(!(this instanceof e))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=c.getInstance(),n=new b(t,r,this);x.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){C.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}});const S=void 0!==o.ResizeObserver?o.ResizeObserver:C},6642(e,t,r){"use strict";r.d(t,{Ay:()=>A,Tk:()=>R});
1var n=r(7810),i=r(3577),o=r.n(i);function a(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}function s(){return void 0===navigator.onLine||navigator.onLine}var l=new WeakMap,c=0;var u=new(function(){function e(e){void 0===e&&(e={}),this.__cache=new Map(Object.entries(e)),this.__listeners=[]}return e.prototype.get=function(e){var t=this.serializeKey(e)[0];return this.__cache.get(t)},e.prototype.set=function(e,t,r){void 0===r&&(r=!0);var n=this.serializeKey(e)[0];this.__cache.set(n,t),r&&R(e,t,!1),this.notify()},e.prototype.keys=function(){return Array.from(this.__cache.keys())},e.prototype.has=function(e){var t=this.serializeKey(e)[0];return this.__cache.has(t)},e.prototype.clear=function(e){void 0===e&&(e=!0),e&&this.__cache.forEach(function(e){return R(e,null,!1)}),this.__cache.clear(),this.notify()},e.prototype.delete=function(e,t){void 0===t&&(t=!0);var r=this.serializeKey(e)[0];t&&R(e,null,!1),this.__cache.delete(r),this.notify()},e.prototype.serializeKey=function(e){var t=null;if("function"==typeof e)try{e=e()}catch(t){e=""}return Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";for(var t="arg",r=0;r<e.length;++r){var n=void 0;null===e[r]||"object"!=typeof e[r]?n="string"==typeof e[r]?'"'+e[r]+'"':String(e[r]):l.has(e[r])?n=l.get(e[r]):(n=c,l.set(e[r],c++)),t+="@"+n}return t}(e)):e=String(e||""),[e,t,e?"err@"+e:""]},e.prototype.subscribe=function(e){var t=this;if("function"!=typeof e)throw new Error("Expected the listener to be a function.");var r=!0;return this.__listeners.push(e),function(){if(r){r=!1;var n=t.__listeners.indexOf(e);n>-1&&(t.__listeners[n]=t.__listeners[t.__listeners.length-1],t.__listeners.length--)}}},e.prototype.notify=function(){for(var e=0,t=this.__listeners;e<t.length;e++){(0,t[e])()}},e}()),h={},d={},f={},p={},v={};var g="undefined"!=typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),m={onLoadingSlow:function(){},onSuccess:function(){},onError:function(){},onErrorRetry:function(e,t,r,n,i){if(a()&&!(r.errorRetryCount&&i.retryCount>r.errorRetryCount)){var o=Math.min(i.retryCount||0,8),s=~~((Math.random()+.5)*(1<<o))*r.errorRetryInterval;setTimeout(n,s,i)}},errorRetryInterval:1e3*(g?10:5),focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:1e3*(g?5:3),refreshInterval:0,revalidateOnFocus:!0,revalidateOnReconnect:!0,refreshWhenHidden:!1,refreshWhenOffline:!1,shouldRetryOnError:!0,suspense:!1,compare:o()},_=!1;if("undefined"!=typeof window&&window.addEventListener&&!_){var y=function(){if(a()&&s())for(var e in f)f[e][0]&&f[e][0]()};window.addEventListener("visibilitychange",y,!1),window.addEventListener("focus",y,!1),_=!0}const w=m;var b=(0,n.createContext)({});b.displayName="SWRConfigContext";const x=b;var C=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})},S=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},E="undefined"==typeof window,M=E?n.useEffect:n.useLayoutEffect,k=function(e,t){void 0===t&&(t=!0);var r=u.serializeKey(e),n=r[0],i=r[2];if(!n)return Promise.resolve();var o=p[n];if(n&&o){for(var a=u.get(n),s=u.get(i),l=[],c=0;c<o.length;++c)l.push(o[c](t,a,s,c>0));return Promise.all(l).then(function(){return u.get(n)})}return Promise.resolve(u.get(n))},L=function(e,t,r){var n=p[e];if(e&&n)for(var i=0;i<n.length;++i)n[i](!1,t,r)},R=function(e,t,r){return void 0===r&&(r=!0),C(void 0,void 0,void 0,function(){var n,i,o,a,s,l,c,h,f,g;return S(this,function(m){switch(m.label){case 0:if(!(n=u.serializeKey(e)[0]))return[2];if(void 0===t)return[2,k(e,r)];if(v[n]=Date.now()-1,a=v[n],s=d[n],!t||"function"!=typeof t)return[3,5];m.label=1;case 1:return m.trys.push([1,3,,4]),[4,t(u.get(n))];case 2:return i=m.sent(),[3,4];case 3:return l=m.sent(),o=l,[3,4];case 4:return[3,11];case 5:if(!t||"function"!=typeof t.then)return[3,10];m.label=6;case 6:return m.trys.push([6,8,,9]),[4,t];case 7:return i=m.sent(),[3,9];case 8:return c=m.sent(),o=c,[3,9];case 9:return[3,11];case 10:i=t,m.label=11;case 11:if(a!==v[n]||s!==d[n]){if(o)throw o;return[2,i]}if(void 0!==i&&u.set(n,i,!1),h=p[n]){for(f=[],g=0;g<h.length;++g)f.push(h[g](!!r,i,o,g>0));return[2,Promise.all(f).then(function(){return u.get(n)})]}if(o)throw o;return[2,i]}})})};x.Provider;const O=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i,o,l={};t.length>=1&&(i=t[0]),t.length>2?(o=t[1],l=t[2]):"function"==typeof t[1]?o=t[1]:"object"==typeof t[1]&&(l=t[1]);var c=u.serializeKey(i),g=c[0],m=c[1],_=c[2];l=Object.assign({},w,(0,n.useContext)(x),l),void 0===o&&(o=l.fetcher);var y=u.get(g)||l.initialData,b=u.get(_),k=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),O=(0,n.useRef)({data:y,error:b,isValidating:!1}
1),A=(0,n.useState)(null)[1],P=(0,n.useCallback)(function(e){var t=!1;for(var r in e)O.current[r]=e[r],k.current[r]&&(t=!0);(t||l.suspense)&&A({})},[]),T=(0,n.useRef)(!1),D=(0,n.useRef)(g),B=(0,n.useRef)({emit:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];T.current||l[e].apply(l,t)}}),j=(0,n.useCallback)(function(e,t){return R(g,e,t)},[g]),I=(0,n.useCallback)(function(t){return void 0===t&&(t={}),C(e,void 0,void 0,function(){var e,r,n,i,a,s,c;return S(this,function(f){switch(f.label){case 0:if(!g||!o)return[2,!1];if(T.current)return[2,!1];t=Object.assign({dedupe:!1},t),e=!0,r=void 0!==h[g]&&t.dedupe,f.label=1;case 1:return f.trys.push([1,6,,7]),P({isValidating:!0}),n=void 0,i=void 0,r?(i=d[g],[4,h[g]]):[3,3];case 2:return n=f.sent(),[3,5];case 3:return h[g]&&(v[g]=Date.now()-1),l.loadingTimeout&&!u.get(g)&&setTimeout(function(){e&&B.current.emit("onLoadingSlow",g,l)},l.loadingTimeout),h[g]=null!==m?o.apply(void 0,m):o(g),d[g]=i=Date.now(),[4,h[g]];case 4:n=f.sent(),setTimeout(function(){delete h[g],delete d[g]},l.dedupingInterval),B.current.emit("onSuccess",n,g,l),f.label=5;case 5:return v[g]&&i<=v[g]?(P({isValidating:!1}),[2,!1]):(u.set(g,n,!1),u.set(_,void 0,!1),a={isValidating:!1},void 0!==O.current.error&&(a.error=void 0),l.compare(O.current.data,n)||(a.data=n),P(a),r||L(g,n,void 0),[3,7]);case 6:return s=f.sent(),delete h[g],delete d[g],u.set(_,s,!1),O.current.error!==s&&(P({isValidating:!1,error:s}),r||L(g,void 0,s)),B.current.emit("onError",s,g,l),l.shouldRetryOnError&&(c=(t.retryCount||0)+1,B.current.emit("onErrorRetry",s,g,l,I,Object.assign({dedupe:!0},t,{retryCount:c}))),[3,7];case 7:return e=!1,[2,!0]}})})},[g]);if(M(function(){if(g){T.current=!1;var e=O.current.data,t=u.get(g)||l.initialData;D.current===g&&l.compare(e,t)||(P({data:t}),D.current=g);var r,n=function(){return I({dedupe:!0})};(l.revalidateOnMount||!l.initialData&&void 0===l.revalidateOnMount)&&(void 0!==t&&!E&&window.requestIdleCallback?window.requestIdleCallback(n):n()),l.revalidateOnFocus&&(r=function(e,t){var r=!1;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r||(r=!0,e.apply(void 0,n),setTimeout(function(){return r=!1},t))}}(n,l.focusThrottleInterval),f[g]?f[g].push(r):f[g]=[r]);var i=function(e,t,r,i){void 0===e&&(e=!0),void 0===i&&(i=!0);var o={},a=!1;return void 0===t||l.compare(O.current.data,t)||(o.data=t,a=!0),O.current.error!==r&&(o.error=r,a=!0),a&&P(o),!!e&&(i?n():I())};p[g]?p[g].push(i):p[g]=[i];var o=null;return!E&&window.addEventListener&&l.revalidateOnReconnect&&window.addEventListener("online",o=n),function(){var e,t;(P=function(){return null},T.current=!0,r&&f[g])&&((t=(e=f[g]).indexOf(r))>=0&&(e[t]=e[e.length-1],e.pop()));p[g]&&((t=(e=p[g]).indexOf(i))>=0&&(e[t]=e[e.length-1],e.pop()));!E&&window.removeEventListener&&null!==o&&window.removeEventListener("online",o)}}},[g,I]),M(function(){var t=null,r=function(){return C(e,void 0,void 0,function(){return S(this,function(e){switch(e.label){case 0:return O.current.error||!l.refreshWhenHidden&&!a()||!l.refreshWhenOffline&&!s()?[3,2]:[4,I({dedupe:!0})];case 1:e.sent(),e.label=2;case 2:return l.refreshInterval&&(t=setTimeout(r,l.refreshInterval)),[2]}})})};return l.refreshInterval&&(t=setTimeout(r,l.refreshInterval)),function(){t&&clearTimeout(t)}},[l.refreshInterval,l.refreshWhenHidden,l.refreshWhenOffline,I]),l.suspense){var z=u.get(g)||y,H=u.get(_)||b;if(void 0===z&&void 0===H){if(h[g]||I(),h[g]&&"function"==typeof h[g].then)throw h[g];z=h[g]}if(void 0===z&&H)throw H;return{error:H,data:z,revalidate:I,mutate:j,isValidating:O.current.isValidating}}return(0,n.useMemo)(function(){var e={revalidate:I,mutate:j};return Object.defineProperties(e,{error:{get:function(){return k.current.error=!0,D.current===g?O.current.error:b},enumerable:!0},data:{get:function(){return k.current.data=!0,D.current===g?O.current.data:y},enumerable:!0},isValidating:{get:function(){return k.current.isValidating=!0,O.current.isValidating},enumerable:!0}}),e},[I])};new Map;const A=O},3577(e){"use strict";var t=Array.isArray,r=Object.keys,n=Object.prototype.hasOwnProperty;e.exports=function e(i,o){if(i===o)return!0;
1if(i&&o&&"object"==typeof i&&"object"==typeof o){var a,s,l,c=t(i),u=t(o);if(c&&u){if((s=i.length)!=o.length)return!1;for(a=s;0!==a--;)if(!e(i[a],o[a]))return!1;return!0}if(c!=u)return!1;var h=i instanceof Date,d=o instanceof Date;if(h!=d)return!1;if(h&&d)return i.getTime()==o.getTime();var f=i instanceof RegExp,p=o instanceof RegExp;if(f!=p)return!1;if(f&&p)return i.toString()==o.toString();var v=r(i);if((s=v.length)!==r(o).length)return!1;for(a=s;0!==a--;)if(!n.call(o,v[a]))return!1;for(a=s;0!==a--;)if(!e(i[l=v[a]],o[l]))return!1;return!0}return i!=i&&o!=o}},5968(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},3069(e,t,r){var n,i=r(7810),o=(n=r(2225))&&"object"==typeof n&&"default"in n?n.default:n,a={debug:10,info:20,warn:30,error:40,none:100},s="undefined"!=typeof window&&window.document&&window.document.createElement?i.useLayoutEffect:i.useEffect;e.exports=function(e){void 0===e&&(e={});var t=e.logLevel;void 0===t&&(t="info");var r=e.maxFontSize;void 0===r&&(r=100);var n=e.minFontSize;void 0===n&&(n=20);var l=e.onFinish,c=e.onStart,u=e.resolution;void 0===u&&(u=5);var h=a[t],d=i.useCallback(function(){return{calcKey:0,fontSize:r,fontSizePrev:n,fontSizeMax:r,fontSizeMin:n}},[r,n]),f=i.useRef(null),p=i.useRef(),v=i.useRef(!1),g=i.useState(d),m=g[0],_=g[1],y=m.calcKey,w=m.fontSize,b=m.fontSizeMax,x=m.fontSizeMin,C=m.fontSizePrev,S=null,E=i.useState(function(){return new o(function(){S=window.requestAnimationFrame(function(){v.current||(c&&c(),v.current=!0,_(Object.assign({},d(),{calcKey:y+1})))})})})[0];i.useEffect(function(){return f.current&&E.observe(f.current),function(){S&&window.cancelAnimationFrame(S),E.disconnect()}},[S,E]);var M=f.current&&f.current.innerHTML;return i.useEffect(function(){0===y||v.current||(M!==p.current&&(c&&c(),_(Object.assign({},d(),{calcKey:y+1}))),p.current=M)},[y,d,M,c]),s(function(){if(0!==y){var e=Math.abs(w-C)<=u,t=!!f.current&&(f.current.scrollHeight>f.current.offsetHeight||f.current.scrollWidth>f.current.offsetWidth),r=w>C;if(e)t&&w===C?(v.current=!1,h<=a.info&&console.info("[use-fit-text] reached `minFontSize = "+n+"` without fitting text")):t?_({fontSize:r?C:x,fontSizeMax:b,fontSizeMin:x,fontSizePrev:C,calcKey:y}):(v.current=!1,l&&l(w));else{var i,o=b,s=x;t?(i=r?C-w:x-w,o=Math.min(b,w)):(i=r?b-w:C-w,s=Math.max(x,w)),_({calcKey:y,fontSize:w+i/2,fontSizeMax:o,fontSizeMin:s,fontSizePrev:w})}}},[y,w,b,x,C,l,f,u]),{fontSize:w+"%",ref:f}}},8477(e,t,r){"use strict";var n=r(7810);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,u=n[1];return s(function(){i.value=r,i.getSnapshot=t,c(i)&&u({inst:i})},[e,r,t]),a(function(){return c(i)&&u({inst:i}),e(function(){c(i)&&u({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},422(e,t,r){"use strict";e.exports=r(8477)},4077(e){self,e.exports=(()=>{"use strict";var e={775:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FitAddon=void 0;var r=function(){function e(){}return e.prototype.activate=function(e){this._terminal=e},e.prototype.dispose=function(){},e.prototype.fit=function(){var e=this.proposeDimensions();if(e&&this._terminal){var t=this._terminal._core;this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}},e.prototype.proposeDimensions=function(){if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement){var e=this._terminal._
1core;if(0!==e._renderService.dimensions.actualCellWidth&&0!==e._renderService.dimensions.actualCellHeight){var t=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(t.getPropertyValue("height")),n=Math.max(0,parseInt(t.getPropertyValue("width"))),i=window.getComputedStyle(this._terminal.element),o=r-(parseInt(i.getPropertyValue("padding-top"))+parseInt(i.getPropertyValue("padding-bottom"))),a=n-(parseInt(i.getPropertyValue("padding-right"))+parseInt(i.getPropertyValue("padding-left")))-e.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(a/e._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(o/e._renderService.dimensions.actualCellHeight))}}}},e}();t.FitAddon=r}},t={};return function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}(775)})()},2742(e,t,r){"use strict";r.d(t,{E:()=>i});!function(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}('.xterm-search-bar__addon{position:absolute;max-width:1467px;top:0;right:28px;color:#000;background:#fff;padding:5px 10px;box-shadow:0 2px 8px #000;background-color:#252526;z-index:999;display:flex}.xterm-search-bar__addon .search-bar__input{background-color:#3c3c3c;color:#ccc;border:0;padding:2px;height:20px;width:227px}.xterm-search-bar__addon .search-bar__btn{min-width:20px;width:20px;height:20px;display:flex;display:-webkit-flex;flex:initial;background-position:50%;margin-left:3px;background-repeat:no-repeat;background-color:#252526;border:0;cursor:pointer}.xterm-search-bar__addon .search-bar__btn:hover{background-color:#666}.xterm-search-bar__addon .search-bar__btn.prev{margin-left:20px;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iI2ZmZiI+PHBhdGggZD0iTTUuNCA4YS42LjYgMCAwMS4xNzYtLjQyNGw0LTRhLjU5OC41OTggMCAwMS44NDggMCAuNTk4LjU5OCAwIDAxMCAuODQ4TDYuODQ5IDhsMy41NzUgMy41NzZhLjU5OC41OTggMCAwMTAgLjg0OC41OTguNTk4IDAgMDEtLjg0OCAwbC00LTRBLjYuNiAwIDAxNS40IDgiLz48L3N2Zz4=")}.xterm-search-bar__addon .search-bar__btn.next{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iI2ZmZiI+PHBhdGggZD0iTTEwLjYgOGEuNi42IDAgMDEtLjE3Ni40MjRsLTQgNGEuNTk4LjU5OCAwIDAxLS44NDggMCAuNTk4LjU5OCAwIDAxMC0uODQ4TDkuMTUxIDggNS41NzYgNC40MjRhLjU5OC41OTggMCAwMTAtLjg0OC41OTguNTk4IDAgMDEuODQ4IDBsNCA0QS42LjYgMCAwMTEwLjYgOCIvPjwvc3ZnPg==")}.xterm-search-bar__addon .search-bar__btn.close{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0iI2ZmZiI+PHBhdGggZD0iTTcgNmwyLTJhLjcxMS43MTEgMCAwMDAtMSAuNzExLjcxMSAwIDAwLTEgMEw2IDUgNCAzYS43MTEuNzExIDAgMDAtMSAwIC43MTEuNzExIDAgMDAwIDFsMiAyLTIgMmEuNzExLjcxMSAwIDAwMCAxIC43MTEuNzExIDAgMDAxIDBsMi0yIDIgMmEuNzExLjcxMSAwIDAwMSAwIC43MTEuNzExIDAgMDAwLTFMNyA2eiIvPjwvc3ZnPg==")}');const n="xterm-search-bar__addon";class i{constructor(e){this.options=e||{},this.options&&this.options.searchAddon&&(this.searchAddon=this.options.searchAddon)}activate(e){this.terminal=e,this.searchAddon||console.error("Cannot use search bar addon until search add
1on has been loaded!")}dispose(){this.hidden()}show(){if(!this.terminal||!this.terminal.element)return;if(this.searchBarElement)return this.searchBarElement.style.visibility="visible",void this.searchBarElement.querySelector("input").select();this.terminal.element.style.position="relative";const e=document.createElement("div");e.innerHTML='\n <input type="text" class="search-bar__input" name="search-bar__input"/>\n <button class="search-bar__btn prev"></button>\n <button class="search-bar__btn next"></button>\n <button class="search-bar__btn close"></button>\n ',e.className=n;const t=this.terminal.element.parentElement;this.searchBarElement=e,["relative","absoulte","fixed"].includes(t.style.position)||(t.style.position="relative"),t.appendChild(this.searchBarElement),this.on(".search-bar__btn.close","click",()=>{this.hidden()}),this.on(".search-bar__btn.next","click",()=>{this.searchAddon.findNext(this.searchKey,{incremental:!1})}),this.on(".search-bar__btn.prev","click",()=>{this.searchAddon.findPrevious(this.searchKey,{incremental:!1})}),this.on(".search-bar__input","keyup",e=>{this.searchKey=e.target.value,this.searchAddon.findNext(this.searchKey,{incremental:"Enter"!==e.key})}),this.searchBarElement.querySelector("input").select()}hidden(){this.searchBarElement&&this.terminal.element.parentElement&&(this.searchBarElement.style.visibility="hidden")}on(e,t,r){const n=this.terminal.element.parentElement;n.addEventListener(t,t=>{let i=t.target;for(;i!==document.querySelector(e);){if(i===n){i=null;break}i=i.parentElement}i===document.querySelector(e)&&(r.call(this,t),t.stopPropagation())})}addNewStyle(e){let t=document.getElementById(n);t||(t=document.createElement("style"),t.type="text/css",t.id=n,document.getElementsByTagName("head")[0].appendChild(t)),t.appendChild(document.createTextNode(e))}}},9495(e){self,e.exports=(()=>{"use strict";var e={258:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SearchAddon=void 0;var i=r(345),o=" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?",a=function(){function e(){this._linesCacheTimeoutId=0,this._onDidChangeResults=new i.EventEmitter,this.onDidChangeResults=this._onDidChangeResults.event}return e.prototype.activate=function(e){var t=this;this._terminal=e,this._onDataDisposable=this._terminal.onWriteParsed(function(){return t._updateMatches()}),this._onResizeDisposable=this._terminal.onResize(function(){return t._updateMatches()})},e.prototype._updateMatches=function(){var e,t=this;this._highlightTimeout&&window.clearTimeout(this._highlightTimeout),this._cachedSearchTerm&&(null===(e=this._lastSearchOptions)||void 0===e?void 0:e.decorations)&&(this._highlightTimeout=setTimeout(function(){var e,r;t.findPrevious(t._cachedSearchTerm,n(n({},t._lastSearchOptions),{incremental:!0,noScroll:!0})),t._resultIndex=t._searchResults?t._searchResults.size-1:-1,t._onDidChangeResults.fire({resultIndex:t._resultIndex,resultCount:null!==(r=null===(e=t._searchResults)||void 0===e?void 0:e.size)&&void 0!==r?r:-1})},200))},e.prototype.dispose=function(){var e,t;this.clearDecorations(),null===(e=this._onDataDisposable)||void 0===e||e.dispose(),null===(t=this._onResizeDisposable)||void 0===t||t.dispose()},e.prototype.clearDecorations=function(e){var t,r,n,i;null===(t=this._selectedDecoration)||void 0===t||t.dispose(),null===(r=this._searchResults)||void 0===r||r.clear(),null===(n=this._resultDecorations)||void 0===n||n.forEach(function(e){for(var t=0,r=e;t<r.length;t++)r[t].dispose()}),null===(i=this._resultDecorations)||void 0===i||i.clear(),this._searchResults=void 0,this._resultDecorations=void 0,e||(this._cachedSearchTerm=void 0)},e.prototype.clearActiveDecoration=function(){var e;null===(e=this._selectedDecoration)||void 0===e||e.dispose(),this._selectedDecoration=void 0},e.prototype.findNext=function(e,t){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");return this._lastSearchOptions=t,(null==t?void 0:t.decorations)&&(void 0===this._resultIndex&&void 0!==this._cachedSearchTerm&&e===this._cachedSearchTerm||this._highlightAllMatches(e,t)),this._fireResults(e,this._findNextAndSelect(e,t),t)},e.prototype._highlightAllMatches=function(e,t){var r=this;if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");if(e&&0!==e.length){t=t||{},this.clearDecorations(!0),this._searchResults=new Map,this._resultDecorations=new Map;for(var n=this._resultDecorations,i=this._find(e,0,0,t);i&&!this._searchResults.get(i.row+"-"+i.col);)if(this._searchResults.set(i.row+"-"+i.col,i),i=this._find(e,i.col+i.term.length>=this._terminal.cols?i.row+1:i.row,i.col+i.term.length>=this._terminal.cols?0:i.col+1,t),this._searchResults.size>1e3)return this.clearDecorations(),void(this._resultIndex=void 0);
1this._searchResults.forEach(function(e){var i=r._createResultDecoration(e,t.decorations);if(i){var o=n.get(i.marker.line)||[];o.push(i),n.set(i.marker.line,o)}})}else this.clearDecorations()},e.prototype._find=function(e,t,r,n){var i;if(!this._terminal||!e||0===e.length)return null===(i=this._terminal)||void 0===i||i.clearSelection(),void this.clearDecorations();if(r>this._terminal.cols)throw new Error("Invalid col: "+r+" to search in terminal of "+this._terminal.cols+" cols");var o=void 0;this._initLinesCache();var a={startRow:t,startCol:r};if(!(o=this._findInLine(e,a,n)))for(var s=t+1;s<this._terminal.buffer.active.baseY+this._terminal.rows&&(a.startRow=s,a.startCol=0,!(o=this._findInLine(e,a,n)));s++);return o},e.prototype._findNextAndSelect=function(e,t){var r;if(!this._terminal||!e||0===e.length)return null===(r=this._terminal)||void 0===r||r.clearSelection(),this.clearDecorations(),this._cachedSearchTerm=void 0,this._resultIndex=-1,!1;this._cachedSearchTerm!==e&&(this._resultIndex=void 0,this._terminal.clearSelection());var n,i=0,o=0;if(this._terminal.hasSelection()){var a=!!t&&t.incremental;n=this._terminal.getSelectionPosition(),o=a?n.startRow:n.endRow,i=a?n.startColumn:n.endColumn}this._initLinesCache();var s={startRow:o,startCol:i},l=this._findInLine(e,s,t);if(!l)for(var c=o+1;c<this._terminal.buffer.active.baseY+this._terminal.rows&&(s.startRow=c,s.startCol=0,!(l=this._findInLine(e,s,t)));c++);if(!l&&0!==o)for(c=0;c<o&&(s.startRow=c,s.startCol=0,!(l=this._findInLine(e,s,t)));c++);return!l&&n&&(s.startRow=n.startRow,s.startCol=0,l=this._findInLine(e,s,t)),this._searchResults&&(0===this._searchResults.size?this._resultIndex=-1:void 0===this._resultIndex?this._resultIndex=0:(this._resultIndex++,this._resultIndex>=this._searchResults.size&&(this._resultIndex=0))),this._selectResult(l,null==t?void 0:t.decorations,null==t?void 0:t.noScroll)},e.prototype.findPrevious=function(e,t){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");return this._lastSearchOptions=t,(null==t?void 0:t.decorations)&&(void 0===this._resultIndex&&void 0!==this._cachedSearchTerm&&e===this._cachedSearchTerm||this._highlightAllMatches(e,t)),this._fireResults(e,this._findPreviousAndSelect(e,t),t)},e.prototype._fireResults=function(e,t,r){var n;return(null==r?void 0:r.decorations)&&(void 0!==this._resultIndex&&void 0!==(null===(n=this._searchResults)||void 0===n?void 0:n.size)?this._onDidChangeResults.fire({resultIndex:this._resultIndex,resultCount:this._searchResults.size}):this._onDidChangeResults.fire(void 0)),this._cachedSearchTerm=e,t},e.prototype._findPreviousAndSelect=function(e,t){var r,n;if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");if(!this._terminal||!e||0===e.length)return n=void 0,null===(r=this._terminal)||void 0===r||r.clearSelection(),this.clearDecorations(),this._resultIndex=-1,!1;this._cachedSearchTerm!==e&&(this._resultIndex=void 0,this._terminal.clearSelection());var i,o=this._terminal.buffer.active.baseY+this._terminal.rows,a=this._terminal.cols,s=!0,l=!!t&&t.incremental;this._terminal.hasSelection()&&(o=(i=this._terminal.getSelectionPosition()).startRow,a=i.startColumn),this._initLinesCache();var c={startRow:o,startCol:a};if(l?(n=this._findInLine(e,c,t,!1))&&n.row===o&&n.col===a||(i&&(c.startRow=i.endRow,c.startCol=i.endColumn),n=this._findInLine(e,c,t,!0)):n=this._findInLine(e,c,t,s),!n){c.startCol=Math.max(c.startCol,this._terminal.cols);for(var u=o-1;u>=0&&(c.startRow=u,!(n=this._findInLine(e,c,t,s)));u--);}if(!n&&o!==this._terminal.buffer.active.baseY+this._terminal.rows)for(u=this._terminal.buffer.active.baseY+this._terminal.rows;u>=o&&(c.startRow=u,!(n=this._findInLine(e,c,t,s)));u--);return this._searchResults&&(0===this._searchResults.size?this._resultIndex=-1:void 0===this._resultIndex||this._resultIndex<0?this._resultIndex=this._searchResults.size-1:(this._resultIndex--,-1===this._resultIndex&&(this._resultIndex=this._searchResults.size-1))),!(n||!i)||this._selectResult(n,null==t?void 0:t.decorations,null==t?void 0:t.noScroll)},e.prototype._initLinesCache=function(){var e=this,t=this._terminal;this._linesCache||(this._linesCache=new Array(t.buffer.active.length),this._cursorMoveListener=t.onCursorMove(function(){return e._destroyLinesCache()}),this._resizeListener=t.onResize(function(){return e._destroyLinesCache()})),window.clearTimeout(this._linesCacheTimeoutId),this._linesCacheTimeoutId=window.setTimeout(function(){return e._destroyLinesCache()},15e3)},e.prototype._destroyLinesCache=function(){this._linesCache=void 0,this._cursorMoveListener&&(this._cursorMoveListener.dispose(),this._cursorMoveListener=void 0),this._resizeListener&&(this._resizeListener.dispose(),this._resizeListener=void 0),this._linesCacheTimeoutId&&(window.clearTimeout(this._linesCacheTimeoutId),this._linesCacheTimeoutId=0)},e.prototype._isWholeWord=function(e,t,r){return(0===e||o.includes(t[e-1]))&&(e+r.length===t.length||o.includes(t[e+r.length]))}
1,e.prototype._findInLine=function(e,t,r,n){var i;void 0===r&&(r={}),void 0===n&&(n=!1);var o=this._terminal,a=t.startRow,s=t.startCol,l=o.buffer.active.getLine(a);if(null==l?void 0:l.isWrapped)return n?void(t.startCol+=o.cols):(t.startRow--,t.startCol+=o.cols,this._findInLine(e,t,r));var c=null===(i=this._linesCache)||void 0===i?void 0:i[a];c||(c=this._translateBufferLineToStringWithWrap(a,!0),this._linesCache&&(this._linesCache[a]=c));var u=c[0],h=c[1],d=this._bufferColsToStringOffset(a,s),f=r.caseSensitive?e:e.toLowerCase(),p=r.caseSensitive?u:u.toLowerCase(),v=-1;if(r.regex){var g=RegExp(f,"g"),m=void 0;if(n)for(;m=g.exec(p.slice(0,d));)v=g.lastIndex-m[0].length,e=m[0],g.lastIndex-=e.length-1;else(m=g.exec(p.slice(d)))&&m[0].length>0&&(v=d+(g.lastIndex-m[0].length),e=m[0])}else n?d-f.length>=0&&(v=p.lastIndexOf(f,d-f.length)):v=p.indexOf(f,d);if(v>=0){if(r.wholeWord&&!this._isWholeWord(v,p,e))return;for(var _=0;_<h.length-1&&v>=h[_+1];)_++;for(var y=_;y<h.length-1&&v+e.length>=h[y+1];)y++;var w=v-h[_],b=v+e.length-h[y],x=this._stringLengthToBufferSize(a+_,w);return{term:e,col:x,row:a+_,size:this._stringLengthToBufferSize(a+y,b)-x+o.cols*(y-_)}}},e.prototype._stringLengthToBufferSize=function(e,t){var r=this._terminal.buffer.active.getLine(e);if(!r)return 0;for(var n=0;n<t;n++){var i=r.getCell(n);if(!i)break;var o=i.getChars();o.length>1&&(t-=o.length-1);var a=r.getCell(n+1);a&&0===a.getWidth()&&t++}return t},e.prototype._bufferColsToStringOffset=function(e,t){for(var r=this._terminal,n=e,i=0,o=r.buffer.active.getLine(n);t>0&&o;){for(var a=0;a<t&&a<r.cols;a++){var s=o.getCell(a);if(!s)break;s.getWidth()&&(i+=0===s.getCode()?1:s.getChars().length)}if(n++,(o=r.buffer.active.getLine(n))&&!o.isWrapped)break;t-=r.cols}return i},e.prototype._translateBufferLineToStringWithWrap=function(e,t){for(var r,n=this._terminal,i=[],o=[0],a=n.buffer.active.getLine(e);a;){var s=n.buffer.active.getLine(e+1),l=!!s&&s.isWrapped,c=a.translateToString(!l&&t);if(l&&s){var u=a.getCell(a.length-1);u&&0===u.getCode()&&1===u.getWidth()&&2===(null===(r=s.getCell(0))||void 0===r?void 0:r.getWidth())&&(c=c.slice(0,-1))}if(i.push(c),!l)break;o.push(o[o.length-1]+c.length),e++,a=s}return[i.join(""),o]},e.prototype._selectResult=function(e,t,r){var n,i,o=this,a=this._terminal;if(this.clearActiveDecoration(),!e)return a.clearSelection(),!1;if(a.select(e.col,e.row,e.size),t){var s=a.registerMarker(-a.buffer.active.baseY-a.buffer.active.cursorY+e.row);s&&(this._selectedDecoration=a.registerDecoration({marker:s,x:e.col,width:e.size,backgroundColor:t.activeMatchBackground,layer:"top",overviewRulerOptions:{color:t.activeMatchColorOverviewRuler}}),null===(n=this._selectedDecoration)||void 0===n||n.onRender(function(e){return o._applyStyles(e,t.activeMatchBorder,!0)}),null===(i=this._selectedDecoration)||void 0===i||i.onDispose(function(){return s.dispose()}))}if(!r&&(e.row>=a.buffer.active.viewportY+a.rows||e.row<a.buffer.active.viewportY)){var l=e.row-a.buffer.active.viewportY;l-=Math.floor(a.rows/2),a.scrollLines(l)}return!0},e.prototype._applyStyles=function(e,t,r){e.clientWidth<=0||(e.classList.contains("xterm-find-result-decoration")||(e.classList.add("xterm-find-result-decoration"),t&&(e.style.outline="1px solid "+t)),r&&e.classList.add("xterm-find-active-result-decoration"))},e.prototype._createResultDecoration=function(e,t){var r,n=this,i=this._terminal,o=i.registerMarker(-i.buffer.active.baseY-i.buffer.active.cursorY+e.row);if(o){var a=i.registerDecoration({marker:o,x:e.col,width:e.size,backgroundColor:t.matchBackground,overviewRulerOptions:(null===(r=this._resultDecorations)||void 0===r?void 0:r.get(o.line))?void 0:{color:t.matchOverviewRuler,position:"center"}});return null==a||a.onRender(function(e){return n._applyStyles(e,t.matchBorder,!1)}),null==a||a.onDispose(function(){return o.dispose()}),a}},e}();t.SearchAddon=a},345:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0;var r=function(){function e(){this._listeners=[],this._disposed=!1}return Object.defineProperty(e.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t){return e._listeners.push(t),{dispose:function(){if(!e._disposed)for(var r=0;r<e._listeners.length;r++)if(e._listeners[r]===t)return void e._listeners.splice(r,1)}}}),this._event}
1,enumerable:!1,configurable:!0}),e.prototype.fire=function(e,t){for(var r=[],n=0;n<this._listeners.length;n++)r.push(this._listeners[n]);for(n=0;n<r.length;n++)r[n].call(void 0,e,t)},e.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},e}();t.EventEmitter=r,t.forwardEvent=function(e,t){return e(function(e){return t.fire(e)})}}},t={};return function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}(258)})()},6885(e){var t;t=()=>(()=>{"use strict";var e={433:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV11=void 0;const r=[[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1541],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1757],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4448,4607],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6158],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6846],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8203,8207],[8234,8238],[8288,8292],[8294,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531]],n=[[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[69446,69456],[69633,69633],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69821,69821],[69837,69837],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[78896,78904],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[113821,113822],[113824,113827],[119143,119145
1],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125258],[917505,917505],[917536,917631],[917760,917999]],i=[[4352,4447],[8986,8987],[9001,9002],[9193,9196],[9200,9200],[9203,9203],[9725,9726],[9748,9749],[9800,9811],[9855,9855],[9875,9875],[9889,9889],[9898,9899],[9917,9918],[9924,9925],[9934,9934],[9940,9940],[9962,9962],[9970,9971],[9973,9973],[9978,9978],[9981,9981],[9989,9989],[9994,9995],[10024,10024],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10133,10135],[10160,10160],[10175,10175],[11035,11036],[11088,11088],[11093,11093],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12329],[12334,12350],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12730],[12736,12771],[12784,12830],[12832,12871],[12880,19903],[19968,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510]],o=[[94176,94179],[94208,100343],[100352,101106],[110
1592,110878],[110928,110930],[110948,110951],[110960,111355],[126980,126980],[127183,127183],[127374,127374],[127377,127386],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],[127988,127988],[127992,128062],[128064,128064],[128066,128252],[128255,128317],[128331,128334],[128336,128359],[128378,128378],[128405,128406],[128420,128420],[128507,128591],[128640,128709],[128716,128716],[128720,128722],[128725,128725],[128747,128748],[128756,128762],[128992,129003],[129293,129393],[129395,129398],[129402,129442],[129445,129450],[129454,129482],[129485,129535],[129648,129651],[129656,129658],[129664,129666],[129680,129685],[131072,196605],[196608,262141]];let a;function s(e,t){let r,n=0,i=t.length-1;if(e<t[0][0]||e>t[i][1])return!1;for(;i>=n;)if(r=n+i>>1,e>t[r][1])n=r+1;else{if(!(e<t[r][0]))return!0;i=r-1}return!1}t.UnicodeV11=class{constructor(){if(this.version="11",!a){a=new Uint8Array(65536),a.fill(1),a[0]=0,a.fill(0,1,32),a.fill(0,127,160);for(let e=0;e<r.length;++e)a.fill(0,r[e][0],r[e][1]+1);for(let e=0;e<i.length;++e)a.fill(2,i[e][0],i[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?a[e]:s(e,n)?0:s(e,o)?2:1}}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}var n={};return(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.Unicode11Addon=void 0;const t=r(433);e.Unicode11Addon=class{activate(e){e.unicode.register(new t.UnicodeV11)}dispose(){}}})(),n})(),e.exports=t()},6465(e){self,e.exports=(()=>{"use strict";var e={6:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkComputer=t.WebLinkProvider=void 0;var r=function(){function e(e,t,r,n){void 0===n&&(n={}),this._terminal=e,this._regex=t,this._handler=r,this._options=n}return e.prototype.provideLinks=function(e,t){var r=n.computeLink(e,this._regex,this._terminal,this._handler);t(this._addCallbacks(r))},e.prototype._addCallbacks=function(e){var t=this;return e.map(function(e){return e.leave=t._options.leave,e.hover=function(r,n){if(t._options.hover){var i=e.range;t._options.hover(r,n,i)}},e})},e}();t.WebLinkProvider=r;var n=function(){function e(){}return e.computeLink=function(t,r,n,i){for(var o,a=new RegExp(r.source,(r.flags||"")+"g"),s=e._translateBufferLineToStringWithWrap(t-1,!1,n),l=s[0],c=s[1],u=-1,h=[];null!==(o=a.exec(l));){var d=o[1];if(!d){console.log("match found without corresponding matchIndex");break}if(u=l.indexOf(d,u+1),a.lastIndex=u+d.length,u<0)break;for(var f=u+d.length,p=c+1;f>n.cols;)f-=n.cols,p++;for(var v=u+1,g=c+1;v>n.cols;)v-=n.cols,g++;var m={start:{x:v,y:g},end:{x:f,y:p}};h.push({range:m,text:d,activate:i})}return h},e._translateBufferLineToStringWithWrap=function(e,t,r){var n,i,o="";do{if(!(s=r.buffer.active.getLine(e)))break;s.isWrapped&&e--,i=s.isWrapped}while(i);var a=e;do{var s,l=r.buffer.active.getLine(e+1);if(n=!!l&&l.isWrapped,!(s=r.buffer.active.getLine(e)))break;o+=s.translateToString(!n&&t).substring(0,r.cols),e++}while(n);return[o,a]},e}();t.LinkComputer=n}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}var n={};return(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.WebLinksAddon=void 0;var t=r(6),i=new RegExp("(?:^|[^\\da-z\\.-]+)((https?:\\/\\/)((([\\da-z\\.-]+)\\.([a-z\\.]{2,18}))|((\\d{1,3}\\.){3}\\d{1,3})|(localhost))(:\\d{1,5})?((\\/[\\/\\w\\.\\-%~:+@]*)*([^:\"'\\s]))?(\\?[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?(#[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?)($|[^\\/\\w\\.\\-%]+)");function o(e,t){var r=window.open();if(r){try{r.opener=null}catch(e){}r.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}var a=function(){function e(e,t,r){void 0===e&&(e=o),void 0===t&&(t={}),void 0===r&&(r=!1),this._handler=e,this._options=t,this._useLinkProvider=r}return e.prototype.activate=function(e){if(this._terminal=e,this._useLinkProvider&&"registerLinkProvider"in this._terminal){var r=(n=this._options).urlRegex||i;this._linkProvider=this._terminal.registerLinkProvider(new t.WebLinkProvider(this._terminal,r,this._handler,n))}else{var n;(n=this._options).matchIndex=1,this._linkMatcherId=this._terminal.registerLinkMatcher(i,this._handler,n)}},e.prototype.dispose=function(){var e;void 0!==this._linkMatcherId&&void 0!==this._terminal&&this._terminal.deregisterLinkMatcher(this._linkMatcherId),null===(e=this._linkProvider)||void 0===e||e.dispose()},e}();e.WebLinksAddon=a})(),n})()},4489(e){self,e.exports=(()=>{"use strict";var e={4567:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;var o=r(9042),a=r(6114),s=r(9924),l=r(3656),c=r(844),u=r(5596),h=r(9631),d=function(e){function t(t,r){var n=e.call(this)||this;n._terminal=t,n._renderService=r,n._liveRegionLineCount=0,n._charsToConsume=[],n._charsToAnnounce="",n._accessibilityTreeRoot=document.createElement("div"),n._accessibilityTreeRoot.classList.add("xterm-accessibility"),n._accessibilityTreeRoot.tabIndex=0,n._rowContainer=document.createElement("div"),n._rowContainer.setAttribute("role","list"),n._rowContainer.classList.add("xterm-accessibility-tree"),n._rowElements=[];for(var i=0;i<n._terminal.rows;i++)n._rowElements[i]=n._createAccessibilityTreeNode(),n._rowContainer.appendChild(n._rowElements[i]);if(n._topBoundaryFocusListener=function(e){return n._onBoundaryFocus(e,0)},n._bottomBoundaryFocusListener=function(e){return n._onBoundaryFocus(e,1)},n._rowElements[0].addEventListener("focus",n._topBoundaryFocusListener),n._rowElements[n._rowElements.length-1].addEventListener("focus",n._bottomBoundaryFocusListener),n._refreshRowsDimensions(),n._accessibilityTreeRoot.appendChild(n._rowContainer),n._renderRowsDebouncer=new s.TimeBasedDebouncer(n._renderRows.bind(n)),n._refreshRows(),n._liveRegion=document.createElement("div"),n._liveRegion.classList.add("live-region"),n._liveRegion.setAttribute("aria-live","assertive"),n._accessibilityTreeRoot.appendChild(n._liveRegion),!n._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return n._terminal.element.insertAdjacentElement("afterbegin",n._accessibilityTreeRoot),n.register(n._renderRowsDebouncer),n.register(n._terminal.onResize(function(e){return n._onResize(e.rows)})),n.register(n._terminal.onRender(function(e){return n._refreshRows(e.start,e.end)})),n.register(n._terminal.onScroll(function(){return n._refreshRows()})),n.register(n._terminal.onA11yChar(function(e){return n._onChar(e)})),n.register(n._terminal.onLineFeed(function(){return n._onChar("\n")})),n.register(n._terminal.onA11yTab(function(e){return n._onTab(e)})),n.register(n._terminal.onKey(function(e){return n._onKey(e.key)})),n.register(n._terminal.onBlur(function(){return n._clearLiveRegion()})),n.register(n._renderService.onDimensionsChange(function(){return n._refreshRowsDimensions()})),n._screenDprMonitor=new u.ScreenDprMonitor,n.register(n._screenDprMonitor),n._screenDprMonitor.setListener(function(){return n._refreshRowsDimensions()}),n.register((0,l.addDisposableDomListener)(window,"resize",function(){return n._refreshRowsDimensions()})),n}return i(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),(0,h.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0},t.prototype._onBoundaryFocus=function(e,t){var r=e.target,n=this._rowElements[0===t?1:this._rowElements.length-2];if(r.getAttribute("aria-posinset")!==(0===t?"1":""+this._terminal.buffer.lines.length)&&e.relatedTarget===n){var i,o;if(0===t?(i=r,o=this._rowElements.pop(),this._rowContainer.removeChild(o)):(i=this._rowElements.shift(),o=r,this._rowContainer.removeChild(i)),i.removeEventListener("focus",this._topBoundaryFocusListener),o.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t){var a=this._createAccessibilityTreeNode();this._rowElements.unshift(a),this._rowContainer.insertAdjacentElement("afterbegin",a)}else a=this._createAccessibilityTreeNode(),this._rowElements.push(a),this._rowContainer.appendChild(a);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}},t.prototype._onResize=function(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},t.prototype._onTab=function(e){for(var t=0;t<e;t++)this._onChar(" ")},t.prototype._onChar=function(e){var t=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=o.tooMuchOutput)),a.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,a.isMac&&(0,h.removeElementFromParent)(this._liveRegion)},t.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},t.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t,this._terminal.rows)},t.prototype._renderRows=function(e,t){for(var r=this._terminal.buffer,n=r.lines.length.toString(),i=e;i<=t;i++){var o=r.translateBufferLineToString(r.ydisp+i,!0),a=(r.ydisp+i+1).toString(),s=this._rowElements[i];s&&(0===o.length?s.innerText="Â ":s.textContent=o,s.setAttribute("aria-posinset",a),s.setAttribute("aria-setsize",n))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}},t.prototype._refreshRowDimensions=function(e){e.style.height=this._renderService.dimensions.actualCellHeight+"px"},t.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce
1="")},t}(c.Disposable);t.AccessibilityManager=d},3614:(e,t)=>{function r(e){return e.replace(/\r?\n/g,"\r")}function n(e,t){return t?"�[200~"+e+"�[201~":e}function i(e,t,i){e=n(e=r(e),i.decPrivateModes.bracketedPasteMode),i.triggerDataEvent(e,!0),t.value=""}function o(e,t,r){var n=r.getBoundingClientRect(),i=e.clientX-n.left-10,o=e.clientY-n.top-10;t.style.width="20px",t.style.height="20px",t.style.left=i+"px",t.style.top=o+"px",t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=r,t.bracketTextForPaste=n,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,r){e.stopPropagation(),e.clipboardData&&i(e.clipboardData.getData("text/plain"),t,r)},t.paste=i,t.moveTextAreaUnderMouseCursor=o,t.rightClickHandler=function(e,t,r,n,i){o(e,t,r),i&&n.rightClickSelect(e),t.value=n.selectionText,t.select()}},7239:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;var r=function(){function e(){this._color={},this._rgba={}}return e.prototype.clear=function(){this._color={},this._rgba={}},e.prototype.setCss=function(e,t,r){this._rgba[e]||(this._rgba[e]={}),this._rgba[e][t]=r},e.prototype.getCss=function(e,t){return this._rgba[e]?this._rgba[e][t]:void 0},e.prototype.setColor=function(e,t,r){this._color[e]||(this._color[e]={}),this._color[e][t]=r},e.prototype.getColor=function(e,t){return this._color[e]?this._color[e][t]:void 0},e}();t.ColorContrastCache=r},5680:function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorManager=t.DEFAULT_ANSI_COLORS=void 0;var i=r(8055),o=r(7239),a=i.css.toColor("#ffffff"),s=i.css.toColor("#000000"),l=i.css.toColor("#ffffff"),c=i.css.toColor("#000000"),u={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var e=[i.css.toColor("#2e3436"),i.css.toColor("#cc0000"),i.css.toColor("#4e9a06"),i.css.toColor("#c4a000"),i.css.toColor("#3465a4"),i.css.toColor("#75507b"),i.css.toColor("#06989a"),i.css.toColor("#d3d7cf"),i.css.toColor("#555753"),i.css.toColor("#ef2929"),i.css.toColor("#8ae234"),i.css.toColor("#fce94f"),i.css.toColor("#729fcf"),i.css.toColor("#ad7fa8"),i.css.toColor("#34e2e2"),i.css.toColor("#eeeeec")],t=[0,95,135,175,215,255],r=0;r<216;r++){var n=t[r/36%6|0],o=t[r/6%6|0],a=t[r%6];e.push({css:i.channels.toCss(n,o,a),rgba:i.channels.toRgba(n,o,a)})}for(r=0;r<24;r++){var s=8+10*r;e.push({css:i.channels.toCss(s,s,s),rgba:i.channels.toRgba(s,s,s)})}return e}());var h=function(){function e(e,r){this.allowTransparency=r;var n=e.createElement("canvas");n.width=1,n.height=1;var h=n.getContext("2d");if(!h)throw new Error("Could not get rendering context");this._ctx=h,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new o.ColorContrastCache,this.colors={foreground:a,background:s,cursor:l,cursorAccent:c,selectionTransparent:u,selectionOpaque:i.color.blend(s,u),selectionForeground:void 0,ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return e.prototype.onOptionsChange=function(e){"minimumContrastRatio"===e&&this._contrastCache.clear()},e.prototype.setTheme=function(e){void 0===e&&(e={}),this.colors.foreground=this._parseColor(e.foreground,a),this.colors.background=this._parseColor(e.background,s),this.colors.cursor=this._parseColor(e.cursor,l,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,c,!0),this.colors.selectionTransparent=this._parseColor(e.selection,u,!0),this.colors.selectionOpaque=i.color.blend(this.colors.background,this.colors.selectionTransparent);var r={css:"",rgba:0};this.colors.selectionForeground=e.selectionForeground?this._parseColor(e.selectionForeground,r):void 0,this.colors.selectionForeground===r&&(this.colors.selectionForeground=void 0),i.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=i.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(e.black,t.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,t.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,t.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,t.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,t.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,t.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,t.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,t.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},e.prototype.restoreColor=function(e){if(void 0!==e)switch(e){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[e]=this._restoreColors.ansi[e]}else for(var t=0;t<this._restoreColors.ansi.length;++t)this.colors.ansi[t]=this._restoreColors.ansi[t]},e.prototype._updateRestoreColors=function(){this._restoreColors={foreground:this.colors.foreground,background:this.colors.background,cursor:this.colors.cursor,ansi:this.colors.ansi.slice()}},e.prototype._parseColor=function(e,t,r){if(void 0===r&&(r=this.allowTransparency),void 0===e)return t;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+e+" is invali
1d using fallback "+t.css),t;this._ctx.fillRect(0,0,1,1);var o=this._ctx.getImageData(0,0,1,1).data;if(255!==o[3]){if(!r)return console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+t.css+"."),t;var a=n(this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(e){return Number(e)}),4),s=a[0],l=a[1],c=a[2],u=a[3],h=Math.round(255*u);return{rgba:i.channels.toRgba(s,l,c,h),css:e}}return{css:this._ctx.fillStyle,rgba:i.channels.toRgba(o[0],o[1],o[2],o[3])}},e}();t.ColorManager=h},9631:function(e,t){var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.removeElementFromParent=void 0,t.removeElementFromParent=function(){for(var e,t,n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];try{for(var a=r(i),s=a.next();!s.done;s=a.next()){var l=s.value;null===(n=null==l?void 0:l.parentElement)||void 0===n||n.removeChild(l)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}}},3656:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,r,n){e.addEventListener(t,r,n);var i=!1;return{dispose:function(){i||(i=!0,e.removeEventListener(t,r,n))}}}},3551:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZone=t.Linkifier=void 0;var o=r(8460),a=r(2585),s=function(){function e(e,t,r){this._bufferService=e,this._logService=t,this._unicodeService=r,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new o.EventEmitter,this._onHideLinkUnderline=new o.EventEmitter,this._onLinkTooltip=new o.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(e.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),e.prototype.attachToDom=function(e,t){this._element=e,this._mouseZoneManager=t},e.prototype.linkifyRows=function(t,r){var n=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=r):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,r)),this._mouseZoneManager.clearAll(t,r),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return n._linkifyRows()},e._timeBeforeLatency))},e.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var e=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var t=e.ydisp+this._rowsToLinkify.start;if(!(t>=e.lines.length)){for(var r=e.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,n=Math.ceil(2e3/this._bufferService.cols),i=this._bufferService.buffer.iterator(!1,t,r,n,n);i.hasNext();)for(var o=i.next(),a=0;a<this._linkMatchers.length;a++)this._doLinkifyRow(o.range.first,o.content,this._linkMatchers[a]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},e.prototype.registerLinkMatcher=function(e,t,r){if(void 0===r&&(r={}),!t)throw new Error("handler must be defined");var n={id:this._nextLinkMatcherId++,regex:e,handler:t,matchIndex:r.matchIndex,validationCallback:r.validationCallback,hoverTooltipCallback:r.tooltipCallback,hoverLeaveCallback:r.leaveCallback,willLinkActivate:r.willLinkActivate,priority:r.priority||0};return this._addLinkMatcherToList(n),n.id},e.prototype._addLinkMatcherToList=function(e){if(0!==this._linkMatchers.length){for(var t=this._linkMatchers.length-1;t>=0;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},e.prototype.deregisterLinkMatcher=function(e){for(var t=0;t<this._linkMatchers.length;t++)if(this._linkMatchers[t].id===e)return this._linkMatchers.splice(t,1),!0;return!1},e.prototype._doLinkifyRow=function(e,t,r){for(var n,i=this,o=new RegExp(r.regex.source,(r.regex.flags||"")+"g"),a=-1,s=function(){var s=n["number"!=typeof r.matchIndex?0:r.matchIndex];if(!s)return l._logService.debug("match found without corresponding matchIndex",n,r),"break";if(a=t.indexOf(s,a+1),o.lastIndex=a+s.length,a<0)return"break";var c=l._bufferService.buffer.stringIndexToBufferIndex(e,a);if(c[0]<0)return"break";var u=l._bufferService.buffer.lines.get(c[0]);if(!u)return"break";var h=u.getFg(c[1]),d=h?h>>9&511:void 0;r.validationCallback?r.validationCallback(s,function(e){i._rowsTimeoutId||e&&i._addLink(c[1],c[0]-i._bufferService.buffer.ydisp,s,r,d)}):l._addLink(c[1],c[0]-l._bufferService.buffer.ydisp,s,r,d)},l=this;null!==(n=o.exec(t))&&"break"!==s(););},e.prototype._addLink=function(e,t,r,n,i){var o=this;if(this._mouseZoneManager&&this._element){var a=this._unicodeService.getStringCellWidth(r),s=e%this._bufferService.cols,c=t+Math.floor(e/this._bufferService.cols),u=(s+a)%this._bufferService.cols,h=c+Math.floor((s+a)/this._bufferService.cols);0===u&&(u=this._bufferService.cols,h--),this._mouseZoneManager.add(new l(s+1,c+1,u+1,h+1,function(e){if(n.handler)return n.handler(e,r);var t=window.open();
1t?(t.opener=null,t.location.href=r):console.warn("Opening link blocked as opener could not be cleared")},function(){o._onShowLinkUnderline.fire(o._createLinkHoverEvent(s,c,u,h,i)),o._element.classList.add("xterm-cursor-pointer")},function(e){o._onLinkTooltip.fire(o._createLinkHoverEvent(s,c,u,h,i)),n.hoverTooltipCallback&&n.hoverTooltipCallback(e,r,{start:{x:s,y:c},end:{x:u,y:h}})},function(){o._onHideLinkUnderline.fire(o._createLinkHoverEvent(s,c,u,h,i)),o._element.classList.remove("xterm-cursor-pointer"),n.hoverLeaveCallback&&n.hoverLeaveCallback()},function(e){return!n.willLinkActivate||n.willLinkActivate(e,r)}))}},e.prototype._createLinkHoverEvent=function(e,t,r,n,i){return{x1:e,y1:t,x2:r,y2:n,cols:this._bufferService.cols,fg:i}},e._timeBeforeLatency=200,e=n([i(0,a.IBufferService),i(1,a.ILogService),i(2,a.IUnicodeService)],e)}();t.Linkifier=s;var l=function(e,t,r,n,i,o,a,s,l){this.x1=e,this.y1=t,this.x2=r,this.y2=n,this.clickCallback=i,this.hoverCallback=o,this.tooltipCallback=a,this.leaveCallback=s,this.willLinkActivate=l};t.MouseZone=l},6465:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;var c=r(2585),u=r(8460),h=r(844),d=r(3656),f=function(e){function t(t){var r=e.call(this)||this;return r._bufferService=t,r._linkProviders=[],r._linkCacheDisposables=[],r._isMouseOut=!0,r._activeLine=-1,r._onShowLinkUnderline=r.register(new u.EventEmitter),r._onHideLinkUnderline=r.register(new u.EventEmitter),r.register((0,h.getDisposeArrayDisposable)(r._linkCacheDisposables)),r}return i(t,e),Object.defineProperty(t.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),t.prototype.registerLinkProvider=function(e){var t=this;return this._linkProviders.push(e),{dispose:function(){var r=t._linkProviders.indexOf(e);-1!==r&&t._linkProviders.splice(r,1)}}},t.prototype.attachToDom=function(e,t,r){var n=this;this._element=e,this._mouseService=t,this._renderService=r,this.register((0,d.addDisposableDomListener)(this._element,"mouseleave",function(){n._isMouseOut=!0,n._clearCurrentLink()})),this.register((0,d.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,d.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,d.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))},t.prototype._onMouseMove=function(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){var t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(t){this._isMouseOut=!1;for(var r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(i.classList.contains("xterm"))break;if(i.classList.contains("xterm-hover"))return}this._lastBufferCell&&t.x===this._lastBufferCell.x&&t.y===this._lastBufferCell.y||(this._onHover(t),this._lastBufferCell=t)}}},t.prototype._onHover=function(e){if(this._activeLine!==e.y)return this._clearCurrentLink(),void this._askForLink(e,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))},t.prototype._askForLink=function(e,t){var r,n,i,o,a=this;this._activeProviderReplies&&t||(null===(i=this._activeProviderReplies)||void 0===i||i.forEach(function(e){null==e||e.forEach(function(e){e.link.dispose&&e.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);var c=!1,u=function(r,n){t?(null===(o=h._activeProviderReplies)||void 0===o?void 0:o.get(r))&&(c=
1h._checkLinkProviderResult(r,e,c)):n.provideLinks(e.y,function(t){var n,i;if(!a._isMouseOut){var o=null==t?void 0:t.map(function(e){return{link:e}});null===(n=a._activeProviderReplies)||void 0===n||n.set(r,o),c=a._checkLinkProviderResult(r,e,c),(null===(i=a._activeProviderReplies)||void 0===i?void 0:i.size)===a._linkProviders.length&&a._removeIntersectingLinks(e.y,a._activeProviderReplies)}})},h=this;try{for(var d=s(this._linkProviders.entries()),f=d.next();!f.done;f=d.next()){var p=l(f.value,2);u(p[0],p[1])}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}},t.prototype._removeIntersectingLinks=function(e,t){for(var r=new Set,n=0;n<t.size;n++){var i=t.get(n);if(i)for(var o=0;o<i.length;o++)for(var a=i[o],s=a.link.range.start.y<e?0:a.link.range.start.x,l=a.link.range.end.y>e?this._bufferService.cols:a.link.range.end.x,c=s;c<=l;c++){if(r.has(c)){i.splice(o--,1);break}r.add(c)}}},t.prototype._checkLinkProviderResult=function(e,t,r){var n,i=this;if(!this._activeProviderReplies)return r;for(var o=this._activeProviderReplies.get(e),a=!1,s=0;s<e;s++)this._activeProviderReplies.has(s)&&!this._activeProviderReplies.get(s)||(a=!0);if(!a&&o){var l=o.find(function(e){return i._linkAtPosition(e.link,t)});l&&(r=!0,this._handleNewLink(l))}if(this._activeProviderReplies.size===this._linkProviders.length&&!r)for(s=0;s<this._activeProviderReplies.size;s++){var c=null===(n=this._activeProviderReplies.get(s))||void 0===n?void 0:n.find(function(e){return i._linkAtPosition(e.link,t)});if(c){r=!0,this._handleNewLink(c);break}}return r},t.prototype._handleMouseDown=function(){this._mouseDownLink=this._currentLink},t.prototype._handleMouseUp=function(e){if(this._element&&this._mouseService&&this._currentLink){var t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}},t.prototype._clearCurrentLink=function(e,t){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,h.disposeArray)(this._linkCacheDisposables))},t.prototype._handleNewLink=function(e){var t=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var r=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);r&&this._linkAtPosition(e.link,r)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:function(){var e,r;return null===(r=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===r?void 0:r.decorations.pointerCursor},set:function(e){var r,n;(null===(r=t._currentLink)||void 0===r?void 0:r.state)&&t._currentLink.state.decorations.pointerCursor!==e&&(t._currentLink.state.decorations.pointerCursor=e,t._currentLink.state.isHovered&&(null===(n=t._element)||void 0===n||n.classList.toggle("xterm-cursor-pointer",e)))}},underline:{get:function(){var e,r;return null===(r=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===r?void 0:r.decorations.underline},set:function(r){var n,i,o;(null===(n=t._currentLink)||void 0===n?void 0:n.state)&&(null===(o=null===(i=t._currentLink)||void 0===i?void 0:i.state)||void 0===o?void 0:o.decorations.underline)!==r&&(t._currentLink.state.decorations.underline=r,t._currentLink.state.isHovered&&t._fireUnderlineEvent(e.link,r))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(function(e){var r=0===e.start?0:e.start+1+t._bufferService.buffer.ydisp;t._clearCurrentLink(r,e.end+1+t._bufferService.buffer.ydisp)})))}},t.prototype._linkHover=function(e,t,r){var n;(null===(n=this._currentLink)||void 0===n?void 0:n.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(r,t.text)},t.prototype._fireUnderlineEvent=function(e,t){var r=e.range,n=this._bufferService.buffer.ydisp,i=this._createLinkUnderlineEvent(r.start.x-1,r.start.y-n-1,r.end.x,r.end.y-n-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(i)},t.prototype._linkLeave=function(e,t,r){var n;(null===(n=this._currentLink)||void 0===n?void 0:n.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(r,t.text)},t.prototype._linkAtPosition=function(e,t){var r=e.range.start.y===e.range.end.y,n=e.range.start.y<t.y,i=e.range.end.y>t.y;return(r&&e.range.start.x<=t.x&&e.range.end.x>=t.x||n&&e.range.end.x>=t.x||i&&e.range.start.x<=t.x||n&&i)&&e.range.start.y<=t.y&&e.range.end.y>=t.y},t.prototype._positionFromMouseEvent=function(e,t,r){var n=r.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(n)return{x:n[0],y:n[1]+this._bufferService.buffer.ydisp}},t.prototype._createLinkUnderlineEvent=function(e,t,r,n,i){return{x1:e,y1:t,x2:r,y2:n,cols:this._bufferService.cols,fg:i}},o([a(0,c.IBufferService)],t)}(h.Disposable);t.Linkifier2=f},9042:(e,t)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZoneManager=void 0;var s=r(844),l=r(3656),c=r(4725),u=r(2585),h=function(e){function t(t,r,n,i,o,a){var s=e.call(this)||this;return s._element=t,s._screenElement=r,s._bufferService=n,s._mouseService=i,s._selectionService=o,s._optionsService=a,s._zones=[],s._areZonesActive=!1,s._lastHoverCoords=[void 0,void 0],s._initialSelectionLength=0,s.register((0,l.addDisposableDomListener)(s._element,"mousedown",function(e){return s._onMouseDown(e)})),s._mouseMoveListener=function(e){return s._onMouseMove(e)},s._mouseLeaveListener=function(e){return s._onMouseLeave(e)},s._clickListener=function(e){return s._onClick(e)},s}return i(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},t.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},t.prototype.clearAll=function(e,t){if(0!==this._zones.length){e&&t||(e=0,t=this._bufferService.rows-1);for(var r=0;r<this._zones.length;r++){var n=this._zones[r];(n.y1>e&&n.y1<=t+1||n.y2>e&&n.y2<=t+1||n.y1<e&&n.y2>t+1)&&(this._currentZone&&this._currentZone===n&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(r--,1))}0===this._zones.length&&this._deactivate()}},t.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},t.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},t.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},t.prototype._onHover=function(e){var t=this,r=this._findZoneEventAt(e);r!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),r&&(this._currentZone=r,r.hoverCallback&&r.hoverCallback(e),this._tooltipTimeout=window.setTimeout(function(){return t._onTooltip(e)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},t.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);null==t||t.tooltipCallback(e)},t.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var t=this._findZoneEventAt(e);(null==t?void 0:t.willLinkActivate(e))&&(e.preventDefault(),e.stopImmediatePropagation())}},t.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},t.prototype._onClick=function(e){var t=this._findZoneEventAt(e),r=this._getSelectionLength();t&&r===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},t.prototype._findZoneEventAt=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(t)for(var r=t[0],n=t[1],i=0;i<this._zones.length;i++){var o=this._zones[i];if(o.y1===o.y2){if(n===o.y1&&r>=o.x1&&r<o.x2)return o}else if(n===o.y1&&r>=o.x1||n===o.y2&&r<o.x2||n>o.y1&&n<o.y2)return o}},o([a(2,u.IBufferService),a(3,c.IMouseService),a(4,c.ISelectionService),a(5,u.IOptionsService)],t)}(s.Disposable);t.MouseZoneManager=h},6193:function(e,t){var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0;var n=function(){function e(e){this._renderCallback=e,this._refreshCallbacks=[]}return e.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.addRefreshCallback=function(e){var t=this;return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return t._innerRefresh()})),this._animationFrame},e.prototype.refresh=function(e,t,r){var n=this;this._rowCount=r,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return n._innerRefresh()}))},e.prototype._innerRefresh=function(){if(this._animationFrame=void 0,void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}else this._runRefreshCallbacks()},e.prototype._runRefreshCallbacks=function(){var e,t;try{for(var n=r(this._refreshCallbacks),i=n.next();!i.done;i=n.next())(0,i.value)(0)}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this._refreshCallbacks=[]},e}();t.RenderDebouncer=n},5596:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._currentDevicePixelRatio=window.devicePixelRatio,t}return i(t,e),t.prototype.setListener=function(e){var t=this;this._listener&&this.clearListener(),this._listener=e,this._outerListener=function(){t._listener&&(t._listener(window.devicePixelRatio,t._currentDevicePixelRatio),t._updateDpr())},this._updateDpr()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearListener()},t.prototype._updateDpr=function(){var e;this._outerListener&&(null===(e=this._resolutionMediaMatchList)||void 0===e||e.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},t.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},t}(r(844).Disposable);t.ScreenDprMonitor=o},3236:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var l=r(2950),c=r(1680),u=r(3614),h=r(2584),d=r(5435),f=r(3525),p=r(3551),v=r(9312),g=r(6114),m=r(3656),_=r(9042),y=r(357),w=r(6954),b=r(4567),x=r(1296),C=r(7399),S=r(8460),E=r(8437),M=r(5680),k=r(3230),L=r(4725),R=r(428),O=r(8934),A=r(6465),P=r(5114),T=r(8969),D=r(8055),B=r(4269),j=r(5941),I=r(3107),z=r(5744),H=r(9074),F=r(2585),V="undefined"!=typeof window?window.document:null,W=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,t)||this;return r.browser=g,r._keyDownHandled=!1,r._keyDownSeen=!1,r._keyPressHandled=!1,r._unprocessedDeadKey=!1,r._onCursorMove=new S.EventEmitter,r._onKey=new S.EventEmitter,r._onRender=new S.EventEmitter,r._onSelectionChange=new S.EventEmitter,r._onTitleChange=new S.EventEmitter,r._onBell=new S.EventEmitter,r._onFocus=new S.EventEmitter,r._onBlur=new S.EventEmitter,r._onA11yCharEmitter=new S.EventEmitter,r._onA11yTabEmitter=new S.EventEmitter,r._setup(),r.linkifier=r._instantiationService.createInstance(p.Linkifier),r.linkifier2=r.register(r._instantiationService.createInstance(A.Linkifier2)),r._decorationService=r._instantiationService.createInstance(H.DecorationService),r._instantiationService.setService(F.IDecorationService,r._decorationService),r.register(r._inputHandler.onRequestBell(function(){return r.bell()})),r.register(r._inputHandler.onRequestRefreshRows(function(e,t){return r.refresh(e,t)})),r.register(r._inputHandler.onRequestSendFocus(function(){return r._reportFocus()})),r.register(r._inputHandler.onRequestReset(function(){return r.reset()})),r.register(r._inputHandler.onRequestWindowsOptionsReport(function(e){return r._reportWindowsOptions(e)})),r.register(r._inputHandler.onColor(function(e){return r._handleColorEvent(e)})),r.register((0,S.forwardEvent)(r._inputHandler.onCursorMove,r._onCursorMove)),r.register((0,S.forwardEvent)(r._inputHandler.onTitleChange,r._onTitleChange)),r.register((0,S.forwardEvent)(r._inputHandler.onA11yChar,r._onA11yCharEmitter)),r.register((0,S.forwardEvent)(r._inputHandler.onA11yTab,r._onA11yTabEmitter)),r.register(r._bufferService.onResize(function(e){return r._afterResize(e.cols,e.rows)})),r}return i(t,e),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBell",{get:function(){return this._onBell.event}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),t.prototype._handleColorEvent=function(e){var t,r,n,i;if(this._colorManager){try{for(var l=o(e),c=l.next();!c.done;c=l.next()){var u=c.value,d=void 0,f="";switch(u.index){case 256:d="foreground",f="10";break;case 257:d="background",f="11";break;case 258:d="cursor",f="12";break;default:d="ansi",f="4;"+u.index}if(d)switch(u.type){case 0:var p=D.color.toColorRGB("ansi"===d?this._colorManager.colors.ansi[u.index]:this._colorManager.colors[d]);this.coreService.triggerDataEvent(h.C0.ESC+"]"+f+";"+(0,j.toRgbString)(p)+h.C1_ESCAPED.ST);break;case 1:"ansi"===d?this._colorManager.colors.ansi[u.index]=D.rgba.toColor.apply(D.rgba,s([],a(u.color),!1)):this._colorManager.colors[d]=D.rgba.toColor.apply(D.rgba,s([],a(u.color),!1));break;case 2:this._colorManager.restoreColor(u.index)}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}null===(n=this._renderService)||void 0===n||n.setColors(this._colorManager.colors),null===(i=this.viewport)||void 0===i||i.onThemeChange(this._colorManager.colors)}},t.prototype.dispose=function(){var t,r,n;this._isDisposed||(e.prototype.dispose.call(this),null===(t=this._renderService)||void 0===t||t.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},null===(n=null===(r=this.element)||void 0===r?void 0:r.parentNode)||void 0===n||n.removeChild(this.element))},t.prototype._setup=function(){e.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(t.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),t.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},t.prototype._updateOptions=function(t){var r,n,i,o;switch(e.prototype._updateOptions.call(this,t),t){case"fontFamily":case"fontSize":null===(r=this._renderService)||void 0===r||r.clear(),null===(n=this._charSizeService)||void 0===n||n.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"customGlyphs":case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":null===(i=this.viewport)||void 0===i||i.syncScrollArea();break;case"screenReaderMode":this.optionsService.rawOptions.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new b.AccessibilityManager(this,this._renderService)):(null===(o=this._accessibilityManager)||void 0===o||o.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.rawOptions.theme)}},t.prototype._onTextAreaFocus=function(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(h.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},t.prototype.blur=function(){var e;return null===(e=this.textarea)||void 0===e?void 0:e.blur()},t.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(h.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},t.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(t){var r=Math.min(this.buffer.x,this.cols-1),n=this._renderService.dimensions.actualCellHeight,i=t.getWidth(r),o=this._renderService.dimensions.actualCellWidth*i,a=this.buffer.y*this._renderService.dimensions.actualCellHeight,s=r*this._renderService.dimensions.actualCellWidth;this.textarea.style.left=s+"px",this.textarea.style.top=a+"px",this.textarea.style.width=o+"px",this.textarea.style.height=n+"px",this.textarea.style.lineHeight=n+"px",this.textarea.style.zIndex="-5"}}},t.prototype._initGlobal=function(){var e=this;this._bindKeys(),this.register((0,m.addDisposableDomListener)(this.element,"copy",function(t){e.hasSelection()&&(0,u.copyHandler)(t,e._selectionService)}));var t=function(t){return(0,u.handlePasteEvent)(t,e.textarea,e.coreService)};this.register((0,m.addDisposableDomListener)(this.textarea,"paste",t)),this.register((0,m.addDisposableDomListener)(this.element,"paste",t)),g.isFirefox?this.register((0,m.addDisposableDomListener)(this.element,"mousedown",function(t){2===t.button&&(0,u.rightClickHandler)(t,e.textarea,e.screenElement,e._selectionService,e.options.rightClickSelectsWord)})):this.register((0,m.addDisposableDomListener)(this.element,"contextmenu",function(t){(0,u.rightClickHandler)(t,e.textarea,e.screenElement,e._selectionService,e.options.rightClickSelectsWord)})),g.isLinux&&this.register((0,m.addDisposableDomListener)(this.element,"auxclick",function(t){1===t.button&&(0,u.moveTextAreaUnderMouseCursor)(t,e.textarea,e.screenElement)}))},t.prototype._bindKeys=function(){var e=this;this.register((0,m.addDisposableDomListener)(this.textarea,"keyup",function(t){return e._keyUp(t)},!0)),this.register((0,m.addDisposableDomListener)(this.textarea,"keydown",function(t){return e._keyDown(t)},!0)),this.register((0,m.addDisposableDomListener)(this.textarea,"keypress",function(t){return e._keyPress(t)},!0)),this.register((0,m.addDisposableDomListener)(this.textarea,"compositionstart",function(){return e._compositionHelper.compositionstart()})),this.register((0,m.addDisposableDomListener)(this.textarea,"compositionupdate",function(t){return e._compositionHelper.compositionupdate(t)})),this.register((0,m.addDisposableDomListener)(this.textarea,"compositionend",function(){return e._compositionHelper.compositionend()})),this.register((0,m.addDisposableDomListener)(this.textarea,"input",function(t){return e._inputEvent(t)},!0)),this.register(this.onRender(function(){return e._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(t){return e._queueLinkification(t.start,t.end)}))},t.prototype.open=function(e){var t=this;if(!e)throw new Error("Terminal requires a parent element.");e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=e.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),e.a
1ppendChild(this.element);var r=V.createDocumentFragment();this._viewportElement=V.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),r.appendChild(this._viewportElement),this._viewportScrollArea=V.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=V.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=V.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),r.appendChild(this.screenElement),this.textarea=V.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",_.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register((0,m.addDisposableDomListener)(this.textarea,"focus",function(e){return t._onTextAreaFocus(e)})),this.register((0,m.addDisposableDomListener)(this.textarea,"blur",function(){return t._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var n=this._instantiationService.createInstance(P.CoreBrowserService,this.textarea);this._instantiationService.setService(L.ICoreBrowserService,n),this._charSizeService=this._instantiationService.createInstance(R.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(L.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new M.ColorManager(V,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(e){return t._colorManager.onOptionsChange(e)})),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(B.CharacterJoinerService),this._instantiationService.setService(L.ICharacterJoinerService,this._characterJoinerService);var i=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(k.RenderService,i,this.rows,this.screenElement)),this._instantiationService.setService(L.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(function(e){return t._onRender.fire(e)})),this.onResize(function(e){return t._renderService.resize(e.cols,e.rows)}),this._compositionView=V.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(l.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(r),this._soundService=this._instantiationService.createInstance(y.SoundService),this._instantiationService.setService(L.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(O.MouseService),this._instantiationService.setService(L.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(c.Viewport,function(e){return t.scrollLines(e,!0,1)},this._viewportElement,this._viewportScrollArea,this.element),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return t.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){t._renderService.onCursorMove(),t._syncTextArea()})),this.register(this.onResize(function(){return t._renderService.onResize(t.cols,t.rows)})),this.register(this.onBlur(function(){return t._renderService.onBlur()})),this.register(this.onFocus(function(){return t._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return t.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(v.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(L.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(e){return t.scrollLines(e.amount,e.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return t._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(e){return t._renderService.onSelectionChanged(e.start,e.end,e.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(e){t.textarea.value=e,t.textarea.focus(),t.textarea.select()}
1)),this.register(this._onScroll.event(function(e){t.viewport.syncScrollArea(),t._selectionService.refresh()})),this.register((0,m.addDisposableDomListener)(this._viewportElement,"scroll",function(){return t._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(w.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return t._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(I.BufferDecorationRenderer,this.screenElement)),this.register((0,m.addDisposableDomListener)(this.element,"mousedown",function(e){return t._selectionService.onMouseDown(e)})),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new b.AccessibilityManager(this,this._renderService)),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this._instantiationService.createInstance(z.OverviewRulerRenderer,this._viewportElement,this.screenElement)),this.optionsService.onOptionChange(function(){!t._overviewRulerRenderer&&t.options.overviewRulerWidth&&t._viewportElement&&t.screenElement&&(t._overviewRulerRenderer=t._instantiationService.createInstance(z.OverviewRulerRenderer,t._viewportElement,t.screenElement))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},t.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(f.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(x.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},t.prototype._setTheme=function(e){var t,r,n;this._theme=e,null===(t=this._colorManager)||void 0===t||t.setTheme(e),null===(r=this._renderService)||void 0===r||r.setColors(this._colorManager.colors),null===(n=this.viewport)||void 0===n||n.onThemeChange(this._colorManager.colors)},t.prototype.bindMouse=function(){var e=this,t=this,r=this.element;function n(e){var r,n,i=t._mouseService.getRawByteCoords(e,t.screenElement,t.cols,t.rows);if(!i)return!1;switch(e.overrideType||e.type){case"mousemove":n=32,void 0===e.buttons?(r=3,void 0!==e.button&&(r=e.button<3?e.button:3)):r=1&e.buttons?0:4&e.buttons?1:2&e.buttons?2:3;break;case"mouseup":n=0,r=e.button<3?e.button:3;break;case"mousedown":n=1,r=e.button<3?e.button:3;break;case"wheel":if(0===t.viewport.getLinesScrolled(e))return!1;n=e.deltaY<0?0:1,r=4;break;default:return!1}return!(void 0===n||void 0===r||r>4)&&t.coreMouseService.triggerMouseEvent({col:i.x-33,row:i.y-33,button:r,action:n,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})}var i={mouseup:null,wheel:null,mousedrag:null,mousemove:null},o=function(t){return n(t),t.buttons||(e._document.removeEventListener("mouseup",i.mouseup),i.mousedrag&&e._document.removeEventListener("mousemove",i.mousedrag)),e.cancel(t)},a=function(t){return n(t),e.cancel(t,!0)},s=function(e){e.buttons&&n(e)},l=function(e){e.buttons||n(e)};this.register(this.coreMouseService.onProtocolChange(function(t){t?("debug"===e.optionsService.rawOptions.logLevel&&e._logService.debug("Binding to mouse events:",e.coreMouseService.explainEvents(t)),e.element.classList.add("enable-mouse-events"),e._selectionService.disable()):(e._logService.debug("Unbinding from mouse events."),e.element.classList.remove("enable-mouse-events"),e._selectionService.enable()),8&t?i.mousemove||(r.addEventListener("mousemove",l),i.mousemove=l):(r.removeEventListener("mousemove",i.mousemove),i.mousemove=null),16&t?i.wheel||(r.addEventListener("wheel",a,{passive:!1}),i.wheel=a):(r.removeEventListener("wheel",i.wheel),i.wheel=null),2&t?i.mouseup||(i.mouseup=o):(e._document.removeEventListener("mouseup",i.mouseup),i.mouseup=null),4&t?i.mousedrag||(i.mousedrag=s):(e._document.removeEventListener("mousemove",i.mousedrag),i.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,m.addDisposableDomListener)(r,"mousedown",function(t){if(t.preventDefault(),e.focus(),e.coreMouseService.areMouseEventsActive&&!e._selectionService.shouldForceSelection(t))return n(t),i.mouseup&&e._document.addEventListener("mouseup",i.mouseup),i.mousedrag&&e._document.addEventListener("mousemove",i.mousedrag),e.cancel(t)})),this.register((0,m.addDisposableDomListener)(r,"wheel",function(t){if(!i.wheel){if(!e.buffer.hasScrollback){var r=e.viewport.getLinesScrolled(t);if(0===r)return;for(var n=h.C0.ESC+(e.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(t.deltaY<0?"A":"B"),o="",a=0;a<Math.abs(r);a++)o+=n;return e.coreService.triggerDataEvent(o,!0),e.cancel(t,!0)}return e.viewport.onWheel(t)?e.cancel(t):void 0}},{passive:!1})),this.register((0,m.addDisposableDomListener)(r,"touchstart",function(t){if(!e.coreMouseService.areMouseEventsActive)return e.viewport.onTouchStart(t),e.cancel(t)},{passive:!0})),this.register((0,m.addDisposableDomListener)(r,"touchmove",function(t){if(!e.coreMouseService.areMouseEventsActive)return e.viewport.onTouchMove(t)?void 0:e.cancel(t)},{passive:!1}))},t.prototype.refresh=function(e,t){var r;null===(r=this._renderService)||void 0===r||r.refreshRows(e,t)},t.prototype._queueLinkification=function(e,t){var r;null===(r=this.linkifier)||void 0===r||r.linkifyRows(e,t)},t.prototype.updateCursorStyle=function(e){var t;(null===(t=this._selectionService)||void 0===t?void 0:t.shouldColumnSelect(e))?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},t.prototype._showCursor=function(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},t.prototype.scrollLines=function(t,r,n){void 0===n&&(n=0),e.prototype.scrollLines.call(this,t,r,n),this.refresh(0,this.rows-1)},t.prototype.paste=function(e){(0,u.paste)(e,this.textarea,this.coreService)},t.prototype.attachCustomKeyEventHandler=function(e){this._customKeyEventHandler=e},t.prototype.registerLinkMatcher=function(e,t,r){var n=this.linkifier.registerLinkMatcher(e,t,r);return this.refresh(0,this.rows-1),n},t.prototype.deregisterLinkMatcher=function(e){this.linkifier.deregisterLinkMatcher(e)&&this.refresh(0,this.rows-1)},t.prototype.registerLinkProvider=function(e){return this.linkifier2.registerLinkProvider(e)},t.prototype.registerCharacterJoiner=function(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t},t.prototype.deregisterCharacterJoiner=function(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)},Object.defineProperty(t.prototype,"markers",{get:function(){return this.buffer.markers}
1,enumerable:!1,configurable:!0}),t.prototype.addMarker=function(e){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)},t.prototype.registerDecoration=function(e){return this._decorationService.registerDecoration(e)},t.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},t.prototype.select=function(e,t,r){this._selectionService.setSelection(e,t,r)},t.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},t.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},t.prototype.clearSelection=function(){var e;null===(e=this._selectionService)||void 0===e||e.clearSelection()},t.prototype.selectAll=function(){var e;null===(e=this._selectionService)||void 0===e||e.selectAll()},t.prototype.selectLines=function(e,t){var r;null===(r=this._selectionService)||void 0===r||r.selectLines(e,t)},t.prototype._keyDown=function(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;var t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;t||"Dead"!==e.key&&"AltGraph"!==e.key||(this._unprocessedDeadKey=!0);var r=(0,C.evaluateKeyboardEvent)(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3===r.type||2===r.type){var n=this.rows-1;return this.scrollLines(2===r.type?-n:n),this.cancel(e,!0)}return 1===r.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(r.cancel&&this.cancel(e,!0),!r.key||!!(e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&1===e.key.length&&e.key.charCodeAt(0)>=65&&e.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(r.key!==h.C0.ETX&&r.key!==h.C0.CR||(this.textarea.value=""),this._onKey.fire({key:r.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(r.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(e,!0))))},t.prototype._isThirdLevelShift=function(e,t){var r=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return"keypress"===t.type?r:r&&(!t.keyCode||t.keyCode>47)},t.prototype._keyUp=function(e){this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode}(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)},t.prototype._keyPress=function(e){var t;if(this._keyPressHandled=!1,this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},t.prototype._inputEvent=function(e){if(e.data&&"insertText"===e.inputType&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1},t.prototype.bell=function(){var e;this._soundBell()&&(null===(e=this._soundService)||void 0===e||e.playBellSound()),this._onBell.fire()},t.prototype.resize=function(t,r){t!==this.cols||r!==this.rows?e.prototype.resize.call(this,t,r):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},t.prototype._afterResize=function(e,t){var r,n;null===(r=this._charSizeService)||void 0===r||r.measure(),null===(n=this.viewport)||void 0===n||n.syncScrollArea(!0)},t.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(E.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}},t.prototype.reset=function(){var t,r;this.options.rows=this.rows,this.options.cols=this.cols;var n=this._customKeyEventHandler;this._setup(),e.prototype.reset.call(this),null===(t=this._selectionService)||void 0===t||t.reset(),this._decorationService.reset(),this._customKeyEventHandler=n,this.refresh(0,this.rows-1),null===(r=this.viewport)||void 0===r||r.syncScrollArea()},t.prototype.clearTextureAtlas=function(){var e;null===(e=this._renderService)||void 0===e||e.clearTextureAtlas()},t.prototype._reportFocus=function(){var e;(null===(e=this.element)||void 0===e?void 0:e.classList.contains("focus"))?this.coreService.triggerDataEvent(h.C0.ESC+"[I"):this.coreService.triggerDataEvent(h.C0.ESC+"[O")},t.prototype._reportWindowsOptions=function(e){if(this._renderService)switch(e){case d.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var t=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),r=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this.coreService.triggerDataEvent(h.C0.ESC+"[4;"+r+";"+t+"t");break;case d.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var n=this._renderService.dimensions.scaledCellWidth.toFixed(0),i=this._renderService.dimensions.scaledCellHeight.toFixed(0);this.coreService.triggerDataEvent(h.C0.ESC+"[6;"+i+";"+n+"t")}},t.prototype.cancel=function(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1},t.prototype._visualBell=function(){return!1},t.prototype._soundBell=function(){return"sound"===this.options.bellStyle},t}(T.CoreTerminal);t.Terminal=W},9924:(e,t)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0;var r=function(){function e(e,t){void 0===t&&(t=1e3),this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return e.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},e.prototype.refresh=function(e,t,r){var n=this;this._rowCount=r,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t;var i=Date.now();if(i-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=i,this._innerRefresh();else if(!this._additionalRefreshRequested){var o=i-this._lastRefreshMs,a=this._debounceThresholdMS-o;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){n._lastRefreshMs=Date.now(),n._innerRefresh(),n._additionalRefreshRequested=!1,n._refreshTimeoutID=void 0},a)}},e.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}},e}();t.TimeBasedDebouncer=r},1680:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;var s=r(844),l=r(3656),c=r(4725),u=r(2585),h=function(e){function t(t,r,n,i,o,a,s,c){var u=e.call(this)||this;return u._scrollLines=t,u._viewportElement=r,u._scrollArea=n,u._element=i,u._bufferService=o,u._optionsService=a,u._charSizeService=s,u._renderService=c,u.scrollBarWidth=0,u._currentRowHeight=0,u._currentScaledCellHeight=0,u._lastRecordedBufferLength=0,u._lastRecordedViewportHeight=0,u._lastRecordedBufferHeight=0,u._lastTouchY=0,u._lastScrollTop=0,u._wheelPartialScroll=0,u._refreshAnimationFrame=null,u._ignoreNextScrollEvent=!1,u.scrollBarWidth=u._viewportElement.offsetWidth-u._scrollArea.offsetWidth||15,u.register((0,l.addDisposableDomListener)(u._viewportElement,"scroll",u._onScroll.bind(u))),u._activeBuffer=u._bufferService.buffer,u.register(u._bufferService.buffers.onBufferActivate(function(e){return u._activeBuffer=e.activeBuffer})),u._renderDimensions=u._renderService.dimensions,u.register(u._renderService.onDimensionsChange(function(e){return u._renderDimensions=e})),setTimeout(function(){return u.syncScrollArea()},0),u}return i(t,e),t.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},t.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return t._innerRefresh()}))},t.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null},t.prototype.syncScrollArea=function(e){if(void 0===e&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight||this._refresh(e)},t.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t)}},t.prototype._bubbleScroll=function(e,t){var r=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&r<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)},t.prototype.onWheel=function(e){var t=this._getPixelsScrolled(e);return 0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},t.prototype._getPixelsScrolled=function(e){if(0===e.deltaY||e.shiftKey)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._bufferService.rows),t},t.prototype.getLinesScrolled=function(e){if(0===e.deltaY||e.shiftKey)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t},t.prototype._applyScrollModifier=function(e,t){var r=this._optionsService.rawOptions.fastScrollModifier;return"alt"===r&&t.altKey||"ctrl"===r&&t.ctrlKey||"shift"===r&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity},t.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},t.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},o([a(4,u.IBufferService),a(5,u.IOptionsService),a(6,c.ICharSizeService),a(7,c.IRenderService)],t)}(s.Disposable);t.Viewport=h},3107:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferDecorationRenderer=void 0;var l=r(3656),c=r(4725),u=r(844),h=r(2585),d=function(e){function t(t,r,n,i){var o=e.call(this)||this;return o._screenElement=t,o._bufferService=r,o._decorationService=n,o._renderService=i,o._decorationElements=new Map,o._altBufferIsActive=!1,o._dimensionsChanged=!1,o._container=document.createElement("div"),o._container.classList.add("xterm-decoration-container"),o._screenElement.appendChild(o._container),o.register(o._renderService.onRenderedViewportChange(function(){return o._queueRefresh()})),o.register(o._renderService.onDimensionsChange(function(){o._dimensionsChanged=!0,o._queueRefresh()})),o.register((0,l.addDisposableDomListener)(window,"resize",function(){return o._queueRefresh()})),o.register(o._bufferService.buffers.onBufferActivate(function(){o._altBufferIsActive=o._bufferService.buffer===o._bufferService.buffers.alt})),o.register(o._decorationService.onDecorationRegistered(function(){return o._queueRefresh()})),o.register(o._decorationService.onDecorationRemoved(function(e){return o._removeDecoration(e)})),o}return i(t,e),t.prototype.dispose=function(){this._container.remove(),this._decorationElements.clear(),e.prototype.dispose.call(this)},t.prototype._queueRefresh=function(){var e=this;void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback(function(){e.refreshDecorations(),e._animationFrame=void 0}))},t.prototype.refreshDecorations=function(){var e,t;try{for(var r=s(this._decorationService.decorations),n=r.next();!n.done;n=r.next()){var i=n.value;this._renderDecoration(i)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}this._dimensionsChanged=!1},t.prototype._renderDecoration=function(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)},t.prototype._createElement=function(e){var t,r=document.createElement("div");r.classList.add("xterm-decoration"),r.style.width=Math.round((e.options.width||1)*this._renderService.dimensions.actualCellWidth)+"px",r.style.height=(e.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",r.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",r.style.lineHeight=this._renderService.dimensions.actualCellHeight+"px";var n=null!==(t=e.options.x)&&void 0!==t?t:0;return n&&n>this._bufferService.cols&&(r.style.display="none"),this._refreshXPosition(e,r),r},t.prototype._refreshStyle=function(e){var t=this,r=e.marker.line-this._bufferService.buffers.active.ydisp;if(r<0||r>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{var n=this._decorationElements.get(e);n||(e.onDispose(function(){return t._removeDecoration(e)}),n=this._createElement(e),e.element=n,this._decorationElements.set(e,n),this._container.appendChild(n)),n.style.top=r*this._renderService.dimensions.actualCellHeight+"px",n.style.display=this._altBufferIsActive?"none":"block",e.onRenderEmitter.f
1ire(n)}},t.prototype._refreshXPosition=function(e,t){var r;if(void 0===t&&(t=e.element),t){var n=null!==(r=e.options.x)&&void 0!==r?r:0;"right"===(e.options.anchor||"left")?t.style.right=n?n*this._renderService.dimensions.actualCellWidth+"px":"":t.style.left=n?n*this._renderService.dimensions.actualCellWidth+"px":""}},t.prototype._removeDecoration=function(e){var t;null===(t=this._decorationElements.get(e))||void 0===t||t.remove(),this._decorationElements.delete(e)},o([a(1,h.IBufferService),a(2,h.IDecorationService),a(3,c.IRenderService)],t)}(u.Disposable);t.BufferDecorationRenderer=d},5871:function(e,t){var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorZoneStore=void 0;var n=function(){function e(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}return Object.defineProperty(e.prototype,"zones",{get:function(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this._zones.length=0,this._zonePoolIndex=0},e.prototype.addDecoration=function(e){var t,n;if(e.options.overviewRulerOptions){try{for(var i=r(this._zones),o=i.next();!o.done;o=i.next()){var a=o.value;if(a.color===e.options.overviewRulerOptions.color&&a.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(a,e.marker.line))return;if(this._lineAdjacentToZone(a,e.marker.line,e.options.overviewRulerOptions.position))return void this._addLineToZone(a,e.marker.line)}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=e.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=e.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=e.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=e.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:e.options.overviewRulerOptions.color,position:e.options.overviewRulerOptions.position,startBufferLine:e.marker.line,endBufferLine:e.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}},e.prototype.setPadding=function(e){this._linePadding=e},e.prototype._lineIntersectsZone=function(e,t){return t>=e.startBufferLine&&t<=e.endBufferLine},e.prototype._lineAdjacentToZone=function(e,t,r){return t>=e.startBufferLine-this._linePadding[r||"full"]&&t<=e.endBufferLine+this._linePadding[r||"full"]},e.prototype._addLineToZone=function(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)},e}();t.ColorZoneStore=n},5744:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.OverviewRulerRenderer=void 0;var l=r(5871),c=r(3656),u=r(4725),h=r(844),d=r(2585),f={full:0,left:0,center:0,right:0},p={full:0,left:0,center:0,right:0},v={full:0,left:0,center:0,right:0},g=function(e){function t(t,r,n,i,o,a){var s,c=e.call(this)||this;c._viewportElement=t,c._screenElement=r,c._bufferService=n,c._decorationService=i,c._renderService=o,c._optionsService=a,c._colorZoneStore=new l.ColorZoneStore,c._shouldUpdateDimensions=!0,c._shouldUpdateAnchor=!0,c._lastKnownBufferLength=0,c._canvas=document.createElement("canvas"),c._canvas.classList.add("xterm-decoration-overview-ruler"),c._refreshCanvasDimensions(),null===(s=c._viewportElement.parentElement)||void 0===s||s.insertBefore(c._canvas,c._viewportElement);var u=c._canvas.getContext("2d");if(!u)throw new Error("Ctx cannot be null");return c._ctx=u,c._registerDecorationListeners(),c._registerBufferChangeListeners(),c._registerDimensionChangeListeners(),c}return i(t,e),Object.defineProperty(t.prototype,"_width",{get:function(){return this._optionsService.options.overviewRulerWidth||0},enumerable:!1,configurable:!0}),t.prototype._registerDecorationListeners=function(){var e=this;this.register(this._decorationService.onDecorationRegistered(function(){return e._queueRefresh(void 0,!0)})),this.register(this._decorationService.onDecorationRemoved(function(){return e._queueRefresh(void 0,!0)}))},t.prototype._registerBufferChangeListeners=function(){var e=this;this.register(this._renderService.onRenderedViewportChange(function(){return e._queueRefresh()})),this.register(this._bufferService.buffers.onBufferActivate(function(){e._canvas.style.display=e._bufferService.buffer===e._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(function(){e._lastKnownBufferLength!==e._bufferService.buffers.normal.lines.length&&(e._refreshDrawHeightConstants(),e._refreshColorZonePadding())}))},t.prototype._registerDimensionChangeListeners=function(){var e=this;this.register(this._renderService.onRender(function(){e._containerHeight&&e._containerHeight===e._screenElement.clientHeight||(e._queueRefresh(!0),e._containerHeight=e._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(function(t){"overviewRulerWidth"===t&&e._queueRefresh(!0)})),this.register((0,c.addDisposableDomListener)(window,"resize",function(){e._queueRefresh(!0)})),this._queueRefresh(!0)},t.prototype.dispose=function(){var t;null===(t=this._canvas)||void 0===t||t.remove(),e.prototype.dispose.call(this)},t.prototype._refreshDrawConstants=function(){var e=Math.floor(this._canvas.width/3),t=Math.ceil(this._canvas.width/3);p.full=this._canvas.width,p.left=e,p.center=t,p.right=e,this._refreshDrawHeightConstants(),v.full=0,v.left=0,v.center=p.left,v.right=p.left+p.center},t.prototype._refreshDrawHeightConstants=function(){f.full=Math.round(2*window.devicePixelRatio);var e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*window.devicePixelRatio);f.left=t,f.center=t,f.right=t},t.prototype._refreshColorZonePadding=function(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*f.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*f.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*f.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*f.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length},t.prototype._refreshCanvasDimensions=function(){this._canvas.style.width=this._width+"px",this._canvas.width=Math.round(this._width*window.devicePixelRatio),this._canvas.style.height=this._screenElement.clientHeight+"px",this._canvas.height=Math.round(this._screenElement.clientHeight*window.devicePixelRatio),this._refreshDrawConstants(),this._refreshColorZonePadding()},t.prototype._refreshDecorations=function(){var e,t,r,n,i,o;this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();try{for(var a=s(this._decorationService.decorations),l=a.next();!l.done;l=a.next()){var c=l.value;this._colorZoneStore.addDecoration(c)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}this._ctx.lineWidth=1;var u=this._colorZoneStore.zones;try{for(var h=s(u),d=h.next();!d.done;d=h.next())"full"!==(v=d.value).position&&this._renderColorZone(v)}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}try{for(var f=s(u),p=f.next();!p.done;p=f.next()){var v;"full"===(v=p.value).position&&this._renderColorZone(v)}}catch(e){i={error:e}}
1finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1},t.prototype._renderColorZone=function(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(v[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-f[e.position||"full"]/2),p[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+f[e.position||"full"]))},t.prototype._queueRefresh=function(e,t){var r=this;this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=window.requestAnimationFrame(function(){r._refreshDecorations(),r._animationFrame=void 0}))},o([a(2,d.IBufferService),a(3,d.IDecorationService),a(4,u.IRenderService),a(5,d.IOptionsService)],t)}(h.Disposable);t.OverviewRulerRenderer=g},2950:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;var o=r(4725),a=r(2585),s=function(){function e(e,t,r,n,i,o){this._textarea=e,this._compositionView=t,this._bufferService=r,this._optionsService=n,this._coreService=i,this._renderService=o,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(e.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),e.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},e.prototype.compositionupdate=function(e){var t=this;this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},e.prototype.compositionend=function(){this._finalizeComposition(!0)},e.prototype.keydown=function(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)},e.prototype._finalizeComposition=function(e){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){var r={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var e;t._isSendingComposition&&(t._isSendingComposition=!1,r.start+=t._dataAlreadySent.length,(e=t._isComposing?t._textarea.value.substring(r.start,r.end):t._textarea.value.substring(r.start)).length>0&&t._coreService.triggerDataEvent(e,!0))},0)}else{this._isSendingComposition=!1;var n=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(n,!0)}},e.prototype._handleAnyTextareaChanges=function(){var e=this,t=this._textarea.value;setTimeout(function(){if(!e._isComposing){var r=e._textarea.value.replace(t,"");r.length>0&&(e._dataAlreadySent=r,e._coreService.triggerDataEvent(r,!0))}},0)},e.prototype.updateCompositionElements=function(e){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var r=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),n=this._renderService.dimensions.actualCellHeight,i=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,o=r*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=o+"px",this._compositionView.style.top=i+"px",this._compositionView.style.height=n+"px",this._compositionView.style.lineHeight=n+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var a=this._compositionView.getBoundingClientRect();this._textarea.style.left=o+"px",this._textarea.style.top=i+"px",this._textarea.style.width=Math.max(a.width,1)+"px",this._textarea.style.height=Math.max(a.height,1)+"px",this._textarea.style.lineHeight=a.height+"px"}e||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},n([i(2,a.IBufferService),i(3,a.IOptionsService),i(4,a.ICoreService),i(5,o.IRenderService)],e)}();t.CompositionHelper=s},9806:(e,t)=>{function r(e,t,r){var n=r.getBoundingClientRect(),i=e.getComputedStyle(r),o=parseInt(i.getPropertyValue("padding-left")),a=parseInt(i.getPropertyValue("padding-top"));return[t.clientX-n.left-o,t.clientY-n.top-a]}
1Object.defineProperty(t,"__esModule",{value:!0}),t.getRawByteCoords=t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=r,t.getCoords=function(e,t,n,i,o,a,s,l,c){if(a){var u=r(e,t,n);if(u)return u[0]=Math.ceil((u[0]+(c?s/2:0))/s),u[1]=Math.ceil(u[1]/l),u[0]=Math.min(Math.max(u[0],1),i+(c?1:0)),u[1]=Math.min(Math.max(u[1],1),o),u}},t.getRawByteCoords=function(e){if(e)return{x:e[0]+32,y:e[1]+32}}},9504:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;var n=r(2584);function i(e,t,r,n){var i=e-o(r,e),s=t-o(r,t),u=Math.abs(i-s)-function(e,t,r){for(var n=0,i=e-o(r,e),s=t-o(r,t),l=0;l<Math.abs(i-s);l++){var c="A"===a(e,t)?-1:1,u=r.buffer.lines.get(i+c*l);(null==u?void 0:u.isWrapped)&&n++}return n}(e,t,r);return c(u,l(a(e,t),n))}function o(e,t){for(var r=0,n=e.buffer.lines.get(t),i=null==n?void 0:n.isWrapped;i&&t>=0&&t<e.rows;)r++,i=null==(n=e.buffer.lines.get(--t))?void 0:n.isWrapped;return r}function a(e,t){return e>t?"A":"B"}function s(e,t,r,n,i,o){for(var a=e,s=t,l="";a!==r||s!==n;)a+=i?1:-1,i&&a>o.cols-1?(l+=o.buffer.translateBufferLineToString(s,!1,e,a),a=0,e=0,s++):!i&&a<0&&(l+=o.buffer.translateBufferLineToString(s,!1,0,e+1),e=a=o.cols-1,s--);return l+o.buffer.translateBufferLineToString(s,!1,e,a)}function l(e,t){var r=t?"O":"[";return n.C0.ESC+r+e}function c(e,t){e=Math.floor(e);for(var r="",n=0;n<e;n++)r+=t;return r}t.moveToCellSequence=function(e,t,r,n){var a,u=r.buffer.x,h=r.buffer.y;if(!r.buffer.hasScrollback)return function(e,t,r,n,a,u){return 0===i(t,n,a,u).length?"":c(s(e,t,e,t-o(a,t),!1,a).length,l("D",u))}(u,h,0,t,r,n)+i(h,t,r,n)+function(e,t,r,n,a,u){var h;h=i(t,n,a,u).length>0?n-o(a,n):t;var d=n,f=function(e,t,r,n,a,s){var l;return l=i(r,n,a,s).length>0?n-o(a,n):t,e<r&&l<=n||e>=r&&l<n?"C":"D"}(e,t,r,n,a,u);return c(s(e,h,r,d,"C"===f,a).length,l(f,u))}(u,h,e,t,r,n);if(h===t)return a=u>e?"D":"C",c(Math.abs(u-e),l(a,n));a=h>t?"D":"C";var d=Math.abs(h-t);return c(function(e,t){return t.cols-e}(h>t?e:u,r)+(d-1)*r.cols+1+((h>t?u:e)-1),l(a,n))}},4389:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var o=r(3236),a=r(9042),s=r(7975),l=r(7090),c=r(5741),u=r(8285),h=["cols","rows"],d=function(){function e(e){var t=this;this._core=new o.Terminal(e),this._addonManager=new c.AddonManager,this._publicOptions=n({},this._core.options);var r=function(e){return t._core.options[e]},i=function(e,r){t._checkReadonlyOptions(e),t._core.options[e]=r};for(var a in this._core.options){var s={get:r.bind(this,a),set:i.bind(this,a)};Object.defineProperty(this._publicOptions,a,s)}}return e.prototype._checkReadonlyOptions=function(e){if(h.includes(e))throw new Error('Option "'+e+'" can only be set in the constructor')},e.prototype._checkProposedApi=function(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(e.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onWriteParsed",{get:function(){return this._core.onWriteParsed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new s.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unicode",{get:function(){return this._checkProposedApi(),new l.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new u.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modes",{get:function(){var e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._publicOptions},set:function(e){for(var t in e)this._publicOptions[t]=e[t]},enumerable:!1,configurable:!0}),e.prototype.blur=function(){this._core.blur()},e.prototype.focus=function(){this._core.focus()},e.prototype.resize=function(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)},e.prototype.open=function(e){this._core.open(e)},e.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},e.prototype.registerLinkMatcher=function(e,t,r){return this._checkProposedApi(),this._core.registerLinkMatcher(e,t,r)},e.prototype.deregisterLinkMatcher=function(e){this._checkProposedApi(),this._core.deregisterLinkMatcher(e)},e.prototype.registerLinkProvider=function(e){return this._checkProposedApi(),this._core.registerLinkProvider(e)},e.prototype.registerCharacterJoiner=function(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)},e.prototype.deregisterCharacterJoiner=function(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)},e.prototype.registerMarker=function(e){return void 0===e&&(e=0),this._checkProposedApi(),this._verifyIntegers(e),this._core.addMarker(e)},e.prototype.registerDecoration=function(e){var t,r,n;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(t=e.x)&&void 0!==t?t:0,null!==(r=e.width)&&void 0!==r?r:0,null!==(n=e.height)&&void 0!==n?n:0),this._core.registerDecoration(e)},e.prototype.addMarker=function(e){return this.registerMarker(e)},e.prototype.hasSelection=function(){return this._core.hasSelection()},e.prototype.select=function(e,t,r){this._verifyIntegers(e,t,r),this._core.select(e,t,r)},e.prototype.getSelection=function(){return this._core.getSelection()},e.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},e.prototype.clearSelection=function(){this._core.clearSelection()},e.prototype.selectAll=function(){this._core.selectAll()},e.prototype.selectLines=function(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)},e.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},e.prototype.scrollLines=function(e){this._verifyIntegers(e),this._core.scrollLines(e)},e.prototype.scrollPages=function(e){this._verifyIntegers(e),this._core.scrollPages(e)},e.prototype.scrollToTop=function(){this._core.scrollToTop()},e.prototype.scrollToBottom=function(){this._core.scrollToBottom()},e.prototype.scrollToLine=function(e){this._verifyIntegers(e),this._core.scrollToLine(e)},e.prototype.clear=function(){this._core.clear()},e.prototype.write=function(e,t){this._core.write(e,t)},e.prototype.writeUtf8=function(e,t){this._core.write(e,t)},e.prototype.writeln=function(e,t){this._core.write(e),this._core.write("\r\n",t)},e.prototype.paste=function(e){this._core.paste(e)},e.prototype.getOption=function(e){return this._core.optionsService.getOption(e)},e.prototype.setOption=function(e,t){this._checkReadonlyOptions(e),this._core.optionsService.setOption(e,t)},e.prototype.refresh=function(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)},e.prototype.reset=function(){this._core.reset()},e.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},e.prototype.loadAddon=function(e){return this._addonManager.loadAddon(this,e)},Object.defineProperty(e,"strings",{get:function(){return a}
1,enumerable:!1,configurable:!0}),e.prototype._verifyIntegers=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var o=i(r),a=o.next();!a.done;a=o.next()){var s=a.value;if(s===1/0||isNaN(s)||s%1!=0)throw new Error("This API only accepts integers")}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},e.prototype._verifyPositiveIntegers=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var o=i(r),a=o.next();!a.done;a=o.next()){var s=a.value;if(s&&(s===1/0||isNaN(s)||s%1!=0||s<0))throw new Error("This API only accepts positive integers")}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},e}();t.Terminal=d},1546:function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRenderLayer=void 0;var i=r(643),o=r(8803),a=r(1420),s=r(3734),l=r(1752),c=r(8055),u=r(9631),h=r(8978),d=function(){function e(e,t,r,n,i,o,a,s,l){this._container=e,this._alpha=n,this._colors=i,this._rendererId=o,this._bufferService=a,this._optionsService=s,this._decorationService=l,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._columnSelectMode=!1,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return e.prototype.dispose=function(){var e;(0,u.removeElementFromParent)(this._canvas),null===(e=this._charAtlas)||void 0===e||e.dispose()},e.prototype._initCanvas=function(){this._ctx=(0,l.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},e.prototype.onOptionsChanged=function(){},e.prototype.onBlur=function(){},e.prototype.onFocus=function(){},e.prototype.onCursorMove=function(){},e.prototype.onGridChanged=function(e,t){},e.prototype.onSelectionChanged=function(e,t,r){void 0===r&&(r=!1),this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=r},e.prototype.setColors=function(e){this._refreshCharAtlas(e)},e.prototype._setTransparency=function(e){if(e!==this._alpha){var t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},e.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,a.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},e.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},e.prototype.clearTextureAtlas=function(){var e;null===(e=this._charAtlas)||void 0===e||e.clear()},e.prototype._fillCells=function(e,t,r,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight)},e.prototype._fillMiddleLineAtCells=function(e,t,r){void 0===r&&(r=1);var n=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-n-window.devicePixelRatio,r*this._scaledCellWidth,window.devicePixelRatio)},e.prototype._fillBottomLineAtCells=function(e,t,r){void 0===r&&(r=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,r*this._scaledCellWidth,window.devicePixelRatio)},e.prototype._fillLeftLineAtCell=function(e,t,r){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio*r,this._scaledCellHeight)},e.prototype._strokeRectAtCell=function(e,t,r,n){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,r*this._scaledCellWidth-window.devicePixelRatio,n*this._scaledCellHeight-window.devicePixelRatio)},e.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},e.prototype._clearCells=function(e,t,r,n){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight))},e.prototype._fillCharTrueColor=function(e,t,r){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=o.TEXT_BASELINE,this._clipRow(r);var n=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(n=(0,h.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,r*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),n||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},e.prototype._drawChars=function(e,t,r){var a,s,l,c=this._getContrastColor(e,t,r);if(c||e.isFgRGB()||e.isBgRGB())this._drawUncachedChars(e,t,r,c);else{var u,h;e.isInverse()?(u=e.isBgDefault()?o.INVERTED_DEFAULT_COLOR:e.getBgColor(),h=e.isFgDefault()?o.INVERTED_DEFAULT_COLOR:e.getFgColor()):(h=e.isBgDefault()?i.DEFAULT_COLOR:e.getBgColor(),u=e.isFgDefault()?i.DEFAULT_COLOR:e.getFgColor()),u+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&u<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||i.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||i.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=h,this._currentGlyphIdentifier.fg=u,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic();var d=!1;try{for(var f=n(this._decorationService.getDecorationsAtCell(t,r)),p=f.next();!p.done;p=f.next()){var v=p.value;if(v.backgroundColorRGB||v.foregroundColorRGB){d=!0;break}}}catch(e){a={error:e}}finally{try{p&&!p.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}!d&&(null===(l=this._charAtlas)||void 0===l?void 0:l.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(e,t,r)}},e.prototype._drawUncachedChars=function(e,t,r,n){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline=o.TEXT_BASELINE,e.isInverse())if(n)this._ctx.fillStyle=n.css;else if(e.isBgDefault())this._ctx.fillStyle=c.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var i=e.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&i<8&&(i+=8),this._ctx.fillStyle=this._colors.ansi[i].css}else if(n)this._ctx.fillStyle=n.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var a=e.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}this._clipRow(r),e.isDim()&&(this._ctx.globalAlpha=o.DIM_OPACITY);var l=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(l=(0,h.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,r*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),l||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore(
1)},e.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},e.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},e.prototype._getContrastColor=function(e,t,r){var i,o,a,s,u=!1;try{for(var h=n(this._decorationService.getDecorationsAtCell(t,r)),d=h.next();!d.done;d=h.next()){var f=d.value;"top"!==f.options.layer&&u||(f.backgroundColorRGB&&(a=f.backgroundColorRGB.rgba),f.foregroundColorRGB&&(s=f.foregroundColorRGB.rgba),u="top"===f.options.layer)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}if(u||this._colors.selectionForeground&&this._isCellInSelection(t,r)&&(s=this._colors.selectionForeground.rgba),a||s||1!==this._optionsService.rawOptions.minimumContrastRatio&&!(0,l.excludeFromContrastRatioDemands)(e.getCode())){if(!a&&!s){var p=this._colors.contrastCache.getColor(e.bg,e.fg);if(void 0!==p)return p||void 0}var v=e.getFgColor(),g=e.getFgColorMode(),m=e.getBgColor(),_=e.getBgColorMode(),y=!!e.isInverse(),w=!!e.isInverse();if(y){var b=v;v=m,m=b;var x=g;g=_,_=x}
1var C=this._resolveBackgroundRgba(void 0!==a?50331648:_,null!=a?a:m,y),S=this._resolveForegroundRgba(g,v,y,w),E=c.rgba.ensureContrastRatio(null!=a?a:C,null!=s?s:S,this._optionsService.rawOptions.minimumContrastRatio);if(!E){if(!s)return void this._colors.contrastCache.setColor(e.bg,e.fg,null);E=s}var M={css:c.channels.toCss(E>>24&255,E>>16&255,E>>8&255),rgba:E};return a||s||this._colors.contrastCache.setColor(e.bg,e.fg,M),M}},e.prototype._resolveBackgroundRgba=function(e,t,r){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return r?this._colors.foreground.rgba:this._colors.background.rgba}},e.prototype._resolveForegroundRgba=function(e,t,r,n){switch(e){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&n&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return r?this._colors.background.rgba:this._colors.foreground.rgba}},e.prototype._isCellInSelection=function(e,t){var r=this._selectionStart,n=this._selectionEnd;return!(!r||!n)&&(this._columnSelectMode?e>=r[0]&&t>=r[1]&&e<n[0]&&t<n[1]:t>r[1]&&t<n[1]||r[1]===n[1]&&t===r[1]&&e>=r[0]&&e<n[0]||r[1]<n[1]&&t===n[1]&&e<n[0]||r[1]<n[1]&&t===r[1]&&e>=r[0])},e}();t.BaseRenderLayer=d},2512:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CursorRenderLayer=void 0;var s=r(1546),l=r(511),c=r(2585),u=r(4725),h=600,d=function(e){function t(t,r,n,i,o,a,s,c,u,h){var d=e.call(this,t,"cursor",r,!0,n,i,a,s,h)||this;return d._onRequestRedraw=o,d._coreService=c,d._coreBrowserService=u,d._cell=new l.CellData,d._state={x:0,y:0,isFocused:!1,style:"",width:0},d._cursorRenderers={bar:d._renderBarCursor.bind(d),block:d._renderBlockCursor.bind(d),underline:d._renderUnderlineCursor.bind(d)},d}return i(t,e),t.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),e.prototype.dispose.call(this)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){var e;this._clearCursor(),null===(e=this._cursorBlinkStateManager)||void 0===e||e.restartBlinkAnimation(),this.onOptionsChanged()},t.prototype.onBlur=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var e,t=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new f(this._coreBrowserService.isFocused,function(){t._render(!0)})):(null===(e=this._cursorBlinkStateManager)||void 0===e||e.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.restartBlinkAnimation()},t.prototype.onGridChanged=function(e,t){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(e){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var t=this._bufferService.buffer.ybase+this._bufferService.buffer.y,r=t-this._bufferService.buffer.ydisp;if(r<0||r>=this._bufferService.rows)this._clearCursor();else{var n=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(t).loadCell(n,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var i=this._optionsService.rawOptions.cursorStyle;return i&&"block"!==i?this._cursorRenderers[i](n,r,this._cell):this._renderBlurCursor(n,r,this._cell),this._ctx.restore(),this._state.x=n,this._state.y=r,this._state.isFocused=!1,this._state.style=i,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===n&&this._state.y===r&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;
1this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](n,r,this._cell),this._ctx.restore(),this._state.x=n,this._state.y=r,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},t.prototype._renderBarCursor=function(e,t,r){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(e,t,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(e,t,r){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(e,t,r.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(r,e,t),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(e,t,r){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(e,t),this._ctx.restore()},t.prototype._renderBlurCursor=function(e,t,r){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(e,t,r.getWidth(),1
1),this._ctx.restore()},o([a(5,c.IBufferService),a(6,c.IOptionsService),a(7,c.ICoreService),a(8,u.ICoreBrowserService),a(9,c.IDecorationService)],t)}(s.BaseRenderLayer);t.CursorRenderLayer=d;var f=function(){function e(e,t){this._renderCallback=t,this.isCursorVisible=!0,e&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.restartBlinkAnimation=function(){var e=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){e._renderCallback(),e._animationFrame=void 0})))},e.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=h),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(t._animationTimeRestarted){var e=h-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=void 0,e>0)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0}),t._blinkInterval=window.setInterval(function(){if(t._animationTimeRestarted){var e=h-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=void 0,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})},h)},e)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},e}()},8978:function(e,t,r){var n,i,o,a,s,l,c,u,h,d,f,p,v,g,m,_,y,w,b,x,C,S,E,M,k,L,R,O,A,P,T,D,B,j,I,z,H,F,V,W,N,U,q,Y,K,G,$,X,Z,J,Q,ee,te,re,ne,ie,oe,ae,se,le,ce,ue,he,de,fe,pe,ve,ge,me,_e,ye,we,be,xe,Ce,Se,Ee,Me,ke,Le,Re,Oe,Ae,Pe,Te,De,Be,je,Ie,ze,He,Fe,Ve,We,Ne,Ue,qe,Ye,Ke,Ge,$e,Xe,Ze,Je,Qe,et,tt,rt,nt,it,ot,at,st,lt,ct,ut,ht,dt,ft,pt,vt,gt,mt,_t,yt,wt,bt,xt,Ct=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},St=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.tryDrawCustomChar=t.powerlineDefinitions=t.boxDrawingDefinitions=t.blockElementDefinitions=void 0;var Et=r(1752);t.blockElementDefinitions={"â":[{x:0,y:0,w:8,h:4}],"â":[{x:0,y:7,w:8,h:1}],"â":[{x:0,y:6,w:8,h:2}],"â":[{x:0,y:5,w:8,h:3}],"â":[{x:0,y:4,w:8,h:4}],"â
":[{x:0,y:3,w:8,h:5}],"â":[{x:0,y:2,w:8,h:6}],"â":[{x:0,y:1,w:8,h:7}],"â":[{x:0,y:0,w:8,h:8}],"â":[{x:0,y:0,w:7,h:8}],"â":[{x:0,y:0,w:6,h:8}],"â":[{x:0,y:0,w:5,h:8}],"â":[{x:0,y:0,w:4,h:8}],"â":[{x:0,y:0,w:3,h:8}],"â":[{x:0,y:0,w:2,h:8}],"â":[{x:0,y:0,w:1,h:8}],"â":[{x:4,y:0,w:4,h:8}],"â":[{x:0,y:0,w:9,h:1}],"â":[{x:7,y:0,w:1,h:8}],"â":[{x:0,y:4,w:4,h:4}],"â":[{x:4,y:4,w:4,h:4}],"â":[{x:0,y:0,w:4,h:4}],"â":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"â":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"â":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"â":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"â":[{x:4,y:0,w:4,h:4}],"â":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"â":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"ð°":[{x:1,y:0,w:1,h:8}],"ð±":[{x:2,y:0,w:1,h:8}],"ð²":[{x:3,y:0,w:1,h:8}],"ð³":[{x:4,y:0,w:1,h:8}],"ð´":[{x:5,y:0,w:1,h:8}],"ðµ":[{x:6,y:0,w:1,h:8}],"ð¶":[{x:0,y:1,w:8,h:1}],"ð·":[{x:0,y:2,w:8,h:1}],"ð¸":[{x:0,y:3,w:8,h:1}],"ð¹":[{x:0,y:4,w:8,h:1}],"ðº":[{x:0,y:5,w:8,h:1}],"ð»":[{x:0,y:6,w:8,h:1}],"ð¼":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"ð½":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"ð¾":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"ð¿":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"ð®":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"ð®":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"ð®":[{x:0,y:0,w:8,h:2}],"ð®":[{x:0,y:0,w:8,h:3}],"ð®":[{x:0,y:0,w:8,h:5}],"ð®
":[{x:0,y:0,w:8,h:6}],"ð®":[{x:0,y:0,w:8,h:7}],"ð®":[{x:6,y:0,w:2,h:8}],"ð®":[{x:5,y:0,w:3,h:8}],"ð®":[{x:3,y:0,w:5,h:8}],"ð®":[{x:2,y:0,w:6,h:8}],"ð®":[{x:1,y:0,w:7,h:8}],"ð®":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"ð®":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"ð®":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var Mt={"â":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"â":[[1,0],[0,0],[0,1],[0,0]],"â":[[0,1],[1,1],[1,0],[1,1]]};t.boxDrawingDefinitions={"â":(n={},n[1]="M0,.5 L1,.5",n),"â":(i={},i[3]="M0,.5 L1,.5",i),"â":(o={},o[1]="M.5,0 L.5,1",o),"â":(a={},a[3]="M.5,0 L.5,1",a),"â":(s={},s[1]="M0.5,1 L.5,.5 L1,.5",s),"â":(l={},l[3]="M0.5,1 L.5,.5 L1,.5",l),"â":(c={},c[1]="M0,.5 L.5,.5 L.5,1",c),"â":(u={},u[3]="M0,.5 L.5,.5 L.5,1",u),"â":(h={},h[1]="M.5,0 L.5,.5 L1,.5",h),"â":(d={},d[3]="M.5,0 L.5,.5 L1,.5",d),"â":(f={},f[1]="M.5,0 L.5,.5 L0,.5",f),"â":(p={},p[3]="M.5,0 L.5,.5 L0,.5",p),"â":(v={},v[1]="M.5,0 L.5,1 M.5,.5 L1,.5",v),"â£":(g={},g[3]="M.5,0 L.5,1 M.5,.5 L1,.5",g),"â¤":(m={},m[1]="M.5,0 L.5,1 M.5,.5 L0,.5",m),"â«":(_={},_[3]="M.5,0 L.5,1 M.5,.5 L0,.5",_),"â¬":(y={},y[1]="M0,.5 L1,.5 M.5,.5 L.5,1",y),"â³":(w={},w[3]="M0,.5 L1,.5 M.5,.5 L.5,1",w),"â´":(b={},b[1]="M0,.5 L1,.5 M.5,.5 L.5,0",b),"â»":(x={},x[3]="M0,.5 L1,.5 M.5,.5 L.5,0",x),"â¼":(C={},C[1]="M0,.5 L1,.5 M.5,0 L.5,1",C),"â":(S={},S[3]="M0,.5 L1,.5 M.5,0 L.5,1",S),"â´":(E={},E[1]="M.5,.5 L0,.5",E),"â¸":(M={},M[3]="M.5,.5 L0,.5",M),"âµ":(k={},k[1]="M.5,.5 L.5,0",k),"â¹":(L={},L[3]="M.5,.5 L.5,0",L),"â¶":(R={},R[1]="M.5,.5 L1,.5",R),"âº":(O={},O[3]="M.5,.5 L1,.5",O),"â·":(A={},A[1]="M.5,.5 L.5,1",A),"â»":(P={},P[3]="M.5,.5 L.5,1",P),"â":(T={},T[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},T),"â":(D={},D[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},D),"â":(B={},B[1]=function(e,t){return"M.5,1 L.5,"+(.5-t)+" L1,"+(.5-t)+" M.5,"+(.5+t)+" L1,"+(.5+t)},B),"â":(j={},j[1]=function(e,t){return"M"+(.5-e)+",1 L"+(.5-e)+",.5 L1,.5 M"+(.5+e)+",.5 L"+(.5+e)+",1"},j),"â":(I={},I[1]=function(e,t){return"M1,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1"},I),"â":(z={},z[1]=function(e,t){return"M0,"+(.5-t)+" L.5,"+(.5-t)+" L.5,1 M0,"+(.5+t)+" L.5,"+(.5+t)},z),"â":(H={},H[1]=function(e,t){return"M"+(.5+e)+",1 L"+(.5+e)+",.5 L0,.5 M"+(.5-e)+",.5 L"+(.5-e)+",1"},H),"â":(F={},F[1]=function(e,t){return"M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M0,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",1"},F),"â":(V={},V[1]=function(e,t){return"M.5,0 L.5,"+(.5+t)+" L1,"+(.5+t)+" M.5,"+(.5-t)+" L1,"+(.5-t)},V),"â":(W={},W[1]=function(e,t){return"M1,.5 L"+(.5-e)+",.5 L"+(.5-e)+",0 M"+(.5+e)+",.5 L"+(.5+e)+",0"},W),"â":(N={},N[1]=function(e,t){return"M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0 M1,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",0"},N),"â":(U={},U[1]=function(e,t){return"M0,"+(.5+t)+" L.5,"+(.5+t)+" L.5,0 M0,"+(.5-t)+" L.5,"+(.5-t)},U),"â":(q={},q[1]=function(e,t){return"M0,.5 L"+(.5+e)+",.5 L"+(.5+e)+",0 M"+(.5-e)+",.5 L"+(.5-e)+",0"},q),"â":(Y={},Y[1]=function(e,t){return"M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M0,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",0"},Y),"â":(K={},K[1]=function(e,t){return"M.5,0 L.5,1 M.5,"+(.5-t)+" L1,"+(.5-t)+" M.5,"+(.5+t)+" L1,"+(.5+t)},K),"â":(G={},G[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1 M"+(.5+e)+",.5 L1,.5"}
1,G),"â ":($={},$[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},$),"â¡":(X={},X[1]=function(e,t){return"M.5,0 L.5,1 M0,"+(.5-t)+" L.5,"+(.5-t)+" M0,"+(.5+t)+" L.5,"+(.5+t)},X),"â¢":(Z={},Z[1]=function(e,t){return"M0,.5 L"+(.5-e)+",.5 M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},Z),"â£":(J={},J[1]=function(e,t){return"M"+(.5+e)+",0 L"+(.5+e)+",1 M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0"},J),"â¤":(Q={},Q[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)+" M.5,"+(.5+t)+" L.5,1"},Q),"â¥":(ee={},ee[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",.5 L"+(.5-e)+",1 M"+(.5+e)+",.5 L"+(.5+e)+",1"},ee),"â¦":(te={},te[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1"},te),"â§":(re={},re[1]=function(e,t){return"M.5,0 L.5,"+(.5-t)+" M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},re),"â¨":(ne={},ne[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",.5 L"+(.5-e)+",0 M"+(.5+e)+",.5 L"+(.5+e)+",0"},ne),"â©":(ie={},ie[1]=function(e,t){return"M0,"+(.5+t)+" L1,"+(.5+t)+" M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},ie),"âª":(oe={},oe[1]=function(e,t){return"M.5,0 L.5,1 M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},oe),"â«":(ae={},ae[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},ae),"â¬":(se={},se[1]=function(e,t){return"M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1 M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},se),"â±":(le={},le[1]="M1,0 L0,1",le),"â²":(ce={},ce[1]="M0,0 L1,1",ce),"â³":(ue={},ue[1]="M1,0 L0,1 M0,0 L1,1",ue),"â¼":(he={},he[1]="M.5,.5 L0,.5",he[3]="M.5,.5 L1,.5",he),"â½":(de={},de[1]="M.5,.5 L.5,0",de[3]="M.5,.5 L.5,1",de),"â¾":(fe={},fe[1]="M.5,.5 L1,.5",fe[3]="M.5,.5 L0,.5",fe),"â¿":(pe={},pe[1]="M.5,.5 L.5,1",pe[3]="M.5,.5 L.5,0",pe),"â":(ve={},ve[1]="M.5,.5 L.5,1",ve[3]="M.5,.5 L1,.5",ve),"â":(ge={},ge[1]="M.5,.5 L1,.5",ge[3]="M.5,.5 L.5,1",ge),"â":(me={},me[1]="M.5,.5 L.5,1",me[3]="M.5,.5 L0,.5",me),"â":(_e={},_e[1]="M.5,.5 L0,.5",_e[3]="M.5,.5 L.5,1",_e),"â":(ye={},ye[1]="M.5,.5 L.5,0",ye[3]="M.5,.5 L1,.5",ye),"â":(we={},we[1]="M.5,.5 L1,.5",we[3]="M.5,.5 L.5,0",we),"â":(be={},be[1]="M.5,.5 L.5,0",be[3]="M.5,.5 L0,.5",be),"â":(xe={},xe[1]="M.5,.5 L0,.5",xe[3]="M.5,.5 L.5,0",xe),"â":(Ce={},Ce[1]="M.5,0 L.5,1",Ce[3]="M.5,.5 L1,.5",Ce),"â":(Se={},Se[1]="M0.5,1 L.5,.5 L1,.5",Se[3]="M.5,.5 L.5,0",Se),"â":(Ee={},Ee[1]="M.5,0 L.5,.5 L1,.5",Ee[3]="M.5,.5 L.5,1",Ee),"â ":(Me={},Me[1]="M.5,.5 L1,.5",Me[3]="M.5,0 L.5,1",Me),"â¡":(ke={},ke[1]="M.5,.5 L.5,1",ke[3]="M.5,0 L.5,.5 L1,.5",ke),"â¢":(Le={},Le[1]="M.5,.5 L.5,0",Le[3]="M0.5,1 L.5,.5 L1,.5",Le),"â¥":(Re={},Re[1]="M.5,0 L.5,1",Re[3]="M.5,.5 L0,.5",Re),"â¦":(Oe={},Oe[1]="M0,.5 L.5,.5 L.5,1",Oe[3]="M.5,.5 L.5,0",Oe),"â§":(Ae={},Ae[1]="M.5,0 L.5,.5 L0,.5",Ae[3]="M.5,.5 L.5,1",Ae),"â¨":(Pe={},Pe[1]="M.5,.5 L0,.5",Pe[3]="M.5,0 L.5,1",Pe),"â©":(Te={},Te[1]="M.5,.5 L.5,1",Te[3]="M.5,0 L.5,.5 L0,.5",Te),"âª":(De={},De[1]="M.5,.5 L.5,0",De[3]="M0,.5 L.5,.5 L.5,1",De),"â":(Be={},Be[1]="M0.5,1 L.5,.5 L1,.5",Be[3]="M.5,.5 L0,.5",Be),"â®":(je={},je[1]="M0,.5 L.5,.5 L.5,1",je[3]="M.5,.5 L1,.5",je),"â¯":(Ie={},Ie[1]="M.5,.5 L.5,1",Ie[3]="M0,.5 L1,.5",Ie),"â°":(ze={},ze[1]="M0,.5 L1,.5",ze[3]="M.5,.5 L.5,1",ze),"â±":(He={},He[1]="M.5,.5 L1,.5",He[3]="M0,.5 L.5,.5 L.5,1",He),"â²":(Fe={},Fe[1]="M.5,.5 L0,.5",Fe[3]="M0.5,1 L.5,.5 L1,.5",Fe),"âµ":(Ve={},Ve[1]="M.5,0 L.5,.5 L1,.5",Ve[3]="M.5,.5 L0,.5",Ve),"â¶":(We={},We[1]="M.5,0 L.5,.5 L0,.5",We[3]="M.5,.5 L1,.5",We),"â·":(Ne={},Ne[1]="M.5,.5 L.5,0",Ne[3]="M0,.5 L1,.5",Ne),"â¸":(Ue={},Ue[1]="M0,.5 L1,.5",Ue[3]="M.5,.5 L.5,0",Ue),"â¹":(qe={},qe[1]="M.5,.5 L1,.5",qe[3]="M.5,0 L.5,.5 L0,.5",qe),"âº":(Ye={},Ye[1]="M.5,.5 L0,.5",Ye[3]="M.5,0 L.5,.5 L1,.5",Ye),"â½":(Ke={},Ke[1]="M.5,0 L.5,1 M.5,.5 L1,.5",Ke[3]="M.5,.5 L0,.5",Ke),"â¾":(Ge={},Ge[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Ge[3]="M.5,.5 L1,.5",Ge),"â¿":($e={},$e[1]="M.5,0 L.5,1",$e[3]="M0,.5 L1,.5",$e),"â":(Xe={},Xe[1]="M0,.5 L1,.5 M.5,.5 L.5,1",Xe[3]="M.5,.5 L.5,0",Xe),"â":(Ze={},Ze[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Ze[3]="M.5,.5 L.5,1",Ze),"â":(Je={},Je[1]="M0,.5 L1,.5",Je[3]="M.5,0 L.5,1",Je),"â":(Qe={},Qe[1]="M0.5,1 L.5,.5 L1,.5",Qe[3]="M.5,0 L.5,.5 L0,.5",Qe),"â":(et={},et[1]="M0,.5 L.5,.5 L.5,1",et[3]="M.5,0 L.5,.5 L1,.5",et),"â
":(tt={},tt[1]="M.5,0 L.5,.5 L1,.5",tt[3]="M0,.5 L.5,.5 L.5,1",tt),"â":(rt={},rt[1]="M.5,0 L.5,.5 L0,.5",rt[3]="M0.5,1 L.5,.5 L1,.5",rt),"â":(nt={},nt[1]="M.5,.5 L.5,1",nt[3]="M.5,.5 L.5,0 M0,.5 L1,.5",nt),"â":(it={},it[1]="M.5,.5 L.5,0",it[3]="M0,.5 L1,.5 M.5,.5 L.5,1",it),"â":(ot={},ot[1]="M.5,.5 L1,.5",ot[3]="M.5,0 L.5,1 M.5,.5 L0,.5",ot),"â":(at={},at[1]="M.5,.5 L0,.5",at[3]="M.5,0 L.5,1 M.5,.5 L1,.5",at),"â":(st={}
1,st[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",st),"â":(lt={},lt[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",lt),"â":(ct={},ct[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",ct),"â
":(ut={},ut[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",ut),"â":(ht={},ht[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",ht),"â":(dt={},dt[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",dt),"â":(ft={},ft[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",ft),"â":(pt={},pt[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",pt),"â":(vt={},vt[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",vt),"â":(gt={},gt[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",gt),"â":(mt={},mt[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",mt),"â":(_t={},_t[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",_t),"â":(yt={},yt[1]="C.5,1,.5,.5,1,.5",yt),"â®":(wt={},wt[1]="C.5,1,.5,.5,0,.5",wt),"â¯":(bt={},bt[1]="C.5,0,.5,.5,0,.5",bt),"â°":(xt={},xt[1]="C.5,0,.5,.5,1,.5",xt)},t.powerlineDefinitions={"î°":{d:"M0,0 L1,.5 L0,1",type:0},"î±":{d:"M0,0 L1,.5 L0,1",type:1,horizontalPadding:.5},"î²":{d:"M1,0 L0,.5 L1,1",type:0},"î³":{d:"M1,0 L0,.5 L1,1",type:1,horizontalPadding:.5}},t.tryDrawCustomChar=function(e,r,n,i,o,a){var s=t.blockElementDefinitions[r];if(s)return function(e,t,r,n,i,o){for(var a=0;a<t.length;a++){var s=t[a],l=i/8,c=o/8;e.fillRect(r+s.x*l,n+s.y*c,s.w*l,s.h*c)}}(e,s,n,i,o,a),!0;var l=Mt[r];if(l)return function(e,t,r,n,i,o){var a,s=kt.get(t);s||(s=new Map,kt.set(t,s));var l=e.fillStyle;if("string"!=typeof l)throw new Error('Unexpected fillStyle type "'+l+'"');var c=s.get(l);if(!c){var u=t[0].length,h=t.length,d=document.createElement("canvas");d.width=u,d.height=h;var f=(0,Et.throwIfFalsy)(d.getContext("2d")),p=new ImageData(u,h),v=void 0,g=void 0,m=void 0,_=void 0;if(l.startsWith("#"))v=parseInt(l.slice(1,3),16),g=parseInt(l.slice(3,5),16),m=parseInt(l.slice(5,7),16),_=l.length>7&&parseInt(l.slice(7,9),16)||1;else{if(!l.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+l+'" when drawing pattern glyph');v=(a=Ct(l.substring(5,l.length-1).split(",").map(function(e){return parseFloat(e)}),4))[0],g=a[1],m=a[2],_=a[3]}for(var y=0;y<h;y++)for(var w=0;w<u;w++)p.data[4*(y*u+w)]=v,p.data[4*(y*u+w)+1]=g,p.data[4*(y*u+w)+2]=m,p.data[4*(y*u+w)+3]=t[y][w]*(255*_);f.putImageData(p,0,0),c=(0,Et.throwIfFalsy)(e.createPattern(d,null)),s.set(l,c)}e.fillStyle=c,e.fillRect(r,n,i,o)}(e,l,n,i,o,a),!0;var c=t.boxDrawingDefinitions[r];if(c)return function(e,t,r,n,i,o){var a,s,l,c;e.strokeStyle=e.fillStyle;try{for(var u=St(Object.entries(t)),h=u.next();!h.done;h=u.next()){var d=Ct(h.value,2),f=d[0],p=d[1];e.beginPath(),e.lineWidth=window.devicePixelRatio*Number.parseInt(f);var v=void 0;v="function"==typeof p?p(.15,.15/o*i):p;try{for(var g=(l=void 0,St(v.split(" "))),m=g.next();!m.done;m=g.next()){var _=m.value,y=_[0],w=Rt[y];if(w){var b=_.substring(1).split(",");b[0]&&b[1]&&w(e,Ot(b,i,o,r,n))}else console.error('Could not find drawing instructions for "'+y+'"')}}catch(e){l={error:e}}finally{try{m&&!m.done&&(c=g.return)&&c.call(g)}finally{if(l)throw l.error}}e.stroke(),e.closePath()}}catch(e){a={error:e}}finally{try{h&&!h.done&&(s=u.return)&&s.call(u)}finally{if(a)throw a.error}}}(e,c,n,i,o,a),!0;var u=t.powerlineDefinitions[r];return!!u&&(function(e,t,r,n,i,o){var a,s;e.beginPath(),e.lineWidth=window.devicePixelRatio;try{for(var l=St(t.d.split(" ")),c=l.next();!c.done;c=l.next()){var u=c.value,h=u[0],d=Rt[h];if(d){var f=u.substring(1).split(",");f[0]&&f[1]&&d(e,Ot(f,i,o,r,n,t.horizontalPadding))}else console.error('Could not find drawing instructions for "'+h+'"')}}catch(e){a={error:e}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}1===t.type?(e.strokeStyle=e.fillStyle,e.stroke()):e.fill(),e.closePath()}(e,u,n,i,o,a),!0)};var kt=new Map;function Lt(e,t,r){return void 0===r&&(r=0),Math.max(Math.min(e,t),r)}var Rt={C:function(e,t){return e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5])},L:function(e,t){return e.lineTo(t[0],t[1])},M:function(e,t){return e.moveTo(t[0],t[1])}};function Ot(e,t,r,n,i,o){void 0===o&&(o=0);var a=e.map(function(e){return parseFloat(e)||parseInt(e)});if(a.length<2)throw new Error("Too few arguments for instruction");for(var s=0;s<a.length;s+=2)a[s]*=t-2*o*window.devicePixelRatio,0!==a[s]&&(a[s]=Lt(Math.round(a[s]+.5)-.5,t,0)),a[s]+=n+o*window.devicePixelRatio;for(var l=1;l<a.length;l+=2)a[l]*=r,0!==a[l]&&(a[l]=Lt(Math.round(a[l]+.5)-.5,r,0)),a[l]+=i;return a}},3700:(e,t)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.GridCache=void 0;var r=function(){function e(){this.cache=[]}return e.prototype.resize=function(e,t){for(var r=0;r<e;r++){this.cache.length<=r&&this.cache.push([]);for(var n=this.cache[r].length;n<t;n++)this.cache[r].push(void 0);this.cache[r].length=t}this.cache.length=e},e.prototype.clear=function(){for(var e=0;e<this.cache.length;e++)for(var t=0;t<this.cache[e].length;t++)this.cache[e][t]=void 0},e}();t.GridCache=r},5098:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkRenderLayer=void 0;var s=r(1546),l=r(8803),c=r(2040),u=r(2585),h=function(e){function t(t,r,n,i,o,a,s,l,c){var u=e.call(this,t,"link",r,!0,n,i,s,l,c)||this;return o.onShowLinkUnderline(function(e){return u._onShowLinkUnderline(e)}),o.onHideLinkUnderline(function(e){return u._onHideLinkUnderline(e)}),a.onShowLinkUnderline(function(e){return u._onShowLinkUnderline(e)}),a.onHideLinkUnderline(function(e){return u._onHideLinkUnderline(e)}),u}return i(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state=void 0},t.prototype.reset=function(){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(e){if(e.fg===l.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg&&(0,c.is256Color)(e.fg)?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t<e.y2;t++)this._fillBottomLineAtCells(0,t,e.cols);this._fillBottomLineAtCells(0,e.y2,e.x2)}this._state=e},t.prototype._onHideLinkUnderline=function(e){this._clearCurrentLink()},o([a(6,u.IBufferService),a(7,u.IOptionsService),a(8,u.IDecorationService)],t)}(s.BaseRenderLayer);t.LinkRenderLayer=h},3525:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=void 0;var l=r(9596),c=r(4149),u=r(2512),h=r(5098),d=r(844),f=r(4725),p=r(2585),v=r(1420),g=r(8460),m=1,_=function(e){function t(t,r,n,i,o,a,s,d){var f=e.call(this)||this;f._colors=t,f._screenElement=r,f._bufferService=a,f._charSizeService=s,f._optionsService=d,f._id=m++,f._onRequestRedraw=new g.EventEmitter;var p=f._optionsService.rawOptions.allowTransparency;return f._renderLayers=[o.createInstance(l.TextRenderLayer,f._screenElement,0,f._colors,p,f._id),o.createInstance(c.SelectionRenderLayer,f._screenElement,1,f._colors,f._id),o.createInstance(h.LinkRenderLayer,f._screenElement,2,f._colors,f._id,n,i),o.createInstance(u.CursorRenderLayer,f._screenElement,3,f._colors,f._id,f._onRequestRedraw)],f.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},f._devicePixelRatio=window.devicePixelRatio,f._updateDimensions(),f.onOptionsChanged(),f}return i(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){var t,r;try{for(var n=s(this._renderLayers),i=n.next();!i.done;i=n.next())i.value.dispose()}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.prototype.dispose.call(this),(0,v.removeTerminalFromCache)(this._id)},t.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},t.prototype.setColors=function(e){var t,r;this._colors=e;try{for(var n=s(this._renderLayers),i=n.next();!i.done;i=n.next()){var o=i.value;o.setColors(this._colors),o.reset()}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},t.prototype.onResize=function(e,t){var r,n;this._updateDimensions();try{for(var i=s(this._renderLayers),o=i.next();!o.done;o=i.next())o.value.resize(this.dimensions)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},t.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},t.prototype.onBlur=function(){this._runOperation(function(e){return e.onBlur()})},t.prototype.onFocus=function(){this._runOperation(function(e){return e.onFocus()})},t.prototype.onSelectionChanged=function(e,t,r){void 0===r&&(r=!1),this._runOperation(function(n){return n.onSelectionChanged(e,t,r)}),this._colors.selectionForeground&&this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})},t.prototype.onCursorMove=function(){this._runOperation(function(e){return e.onCursorMove()})},t.prototype.onOptionsChanged=function(){this._runOperation(function(e){return e.onOptionsChanged()})},t.prototype.clear=function(){this._runOperation(function(e){return e.reset()})},t.prototype._runOperation=function(e){var t,r;try{for(var n=s(this._renderLayers),i=n.next();!i.done;i=n.next())e(i.value)}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},t.prototype.renderRows=function(e,t){var r,n;try{for(var i=s(this._renderLayers),o=i.next();!o.done;o=i.next())o.value.onGridChanged(e,t)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},t.prototype.clearTextureAtlas=function(){var e,t;try{for(var r=s(this._renderLayers),n=r.next();!n.done;n=r.next())n.value.clearTextureAtlas()}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},t.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharTop=1===this._optionsService.rawOptions.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},o([a(4,p.IInstantiationService),a(5,p.IBufferService),a(6,f.ICharSizeService),a(7,p.IOptionsService)],t)}(d.Disposable);t.Renderer=_},1752:(e,t)=>
1{function r(e){return 57508<=e&&e<=57558}Object.defineProperty(t,"__esModule",{value:!0}),t.excludeFromContrastRatioDemands=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e},t.isPowerlineGlyph=r,t.excludeFromContrastRatioDemands=function(e){return r(e)||function(e){return 9472<=e&&e<=9631}(e)}},4149:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRenderLayer=void 0;var s=r(1546),l=r(2585),c=function(e){function t(t,r,n,i,o,a,s){var l=e.call(this,t,"selection",r,!0,n,i,o,a,s)||this;return l._clearState(),l}return i(t,e),t.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._clearState()},t.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},t.prototype.onSelectionChanged=function(t,r,n){if(e.prototype.onSelectionChanged.call(this,t,r,n),this._didStateChange(t,r,n,this._bufferService.buffer.ydisp))if(this._clearAll(),t&&r){var i=t[1]-this._bufferService.buffer.ydisp,o=r[1]-this._bufferService.buffer.ydisp,a=Math.max(i,0),s=Math.min(o,this._bufferService.rows-1);if(a>=this._bufferService.rows||s<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,n){var l=t[0],c=r[0]-l,u=s-a+1;this._fillCells(l,a,c,u)}else{l=i===a?t[0]:0;var h=a===o?r[0]:this._bufferService.cols;this._fillCells(l,a,h-l,1);var d=Math.max(s-a-1,0);if(this._fillCells(0,a+1,this._bufferService.cols,d),a!==s){var f=o===s?r[0]:this._bufferService.cols;this._fillCells(0,s,f,1)}}this._state.start=[t[0],t[1]],this._state.end=[r[0],r[1]],this._state.columnSelectMode=n,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},t.prototype._didStateChange=function(e,t,r,n){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||r!==this._state.columnSelectMode||n!==this._state.ydisp},t.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&e[0]===t[0]&&e[1]===t[1]},o([a(4,l.IBufferService),a(5,l.IOptionsService),a(6,l.IDecorationService)],t)}(s.BaseRenderLayer);t.SelectionRenderLayer=c},9596:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.TextRenderLayer=void 0;var l=r(3700),c=r(1546),u=r(3734),h=r(643),d=r(511),f=r(2585),p=r(4725),v=r(4269),g=function(e){function t(t,r,n,i,o,a,s,c,u){var h=e.call(this,t,"text",r,i,n,o,a,s,u)||this;return h._characterJoinerService=c,h._characterWidth=0,h._characterFont="",h._characterOverlapCache={},h._workCell=new d.CellData,h._state=new l.GridCache,h}return i(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t);var r=this._getFont(!1,!1);this._characterWidth===t.scaledCharWidth&&this._characterFont===r||(this._characterWidth=t.scaledCharWidth,this._characterFont=r,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},t.prototype.reset=function(){this._state.clear(),this._clearAll()},t.prototype._forEachCell=function(e,t,r){for(var n=e;n<=t;n++)for(var i=n+this._bufferService.buffer.ydisp,o=this._bufferService.buffer.lines.get(i),a=this._characterJoinerService.getJoinedCharacters(i),s=0;s<this._bufferService.cols;s++){o.loadCell(s,this._workCell);var l=this._workCell,c=!1,u=s;if(0!==l.getWidth()){if(a.length>0&&s===a[0][0]){c=!0;var d=a.shift();l=new v.JoinedCellData(this._workCell,o.translateToString(!0,d[0],d[1]),d[1]-d[0]),u=d[1]-1}!c&&this._isOverlapping(l)&&u<o.length-1&&o.getCodePoint(u+1)===h.NULL_CELL_CODE&&(l.content&=-12582913,l.content|=2<<22),r(l,s,n),s=u}}},t.prototype._drawBackground=function(e,t){var r=this,n=this._ctx,i=this._bufferService.cols,o=0,a=0,l=null;n.save(),this._forEachCell(e,t,function(e,t,c){var h,d,f=null;e.isInverse()?f=e.isFgDefault()?r._colors.foreground.css:e.isFgRGB()?"rgb("+u.AttributeData.toColorRGB(e.getFgColor()).join(",")+")":r._colors.ansi[e.getFgColor()].css:e.isBgRGB()?f="rgb("+u.AttributeData.toColorRGB(e.getBgColor()).join(",")+")":e.isBgPalette()&&(f=r._colors.ansi[e.getBgColor()].css);var p=!1;try{for(var v=s(r._decorationService.getDecorationsAtCell(t,r._bufferService.buffer.ydisp+c)),g=v.next();!g.done;g=v.next()){var m=g.value;"top"!==m.options.layer&&p||(m.backgroundColorRGB&&(f=m.backgroundColorRGB.css),p="top"===m.options.layer)}}catch(e){h={error:e}}finally{try{g&&!g.done&&(d=v.return)&&d.call(v)}finally{if(h)throw h.error}}null===l&&(o=t,a=c),c!==a?(n.fillStyle=l||"",r._fillCells(o,a,i-o,1),o=t,a=c):l!==f&&(n.fillStyle=l||"",r._fillCells(o,a,t-o,1),o=t,a=c),l=f}),null!==l&&(n.fillStyle=l,this._fillCells(o,a,i-o,1)),n.restore()},t.prototype._drawForeground=function(e,t){var r=this;this._forEachCell(e,t,function(e,t,n){if(!e.isInvisible()&&(r._drawChars(e,t,n),e.isUnderline()||e.isStrikethrough())){if(r._ctx.save(),e.isInverse())if(e.isBgDefault())r._ctx.fillStyle=r._colors.background.css;else if(e.isBgRGB())r._ctx.fillStyle="rgb("+u.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var i=e.getBgColor();r._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&i<8&&(i+=8),r._ctx.fillStyle=r._colors.ansi[i].css}else if(e.isFgDefault())r._ctx.fillStyle=r._colors.foreground.css;else if(e.isFgRGB())r._ctx.fillStyle="rgb("+u.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var o=e.getFgColor();r._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&o<8&&(o+=8),r._ctx.fillStyle=r._colors.ansi[o].css}
1e.isStrikethrough()&&r._fillMiddleLineAtCells(t,n,e.getWidth()),e.isUnderline()&&r._fillBottomLineAtCells(t,n,e.getWidth()),r._ctx.restore()}})},t.prototype.onGridChanged=function(e,t){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,e,this._bufferService.cols,t-e+1),this._drawBackground(e,t),this._drawForeground(e,t))},t.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.rawOptions.allowTransparency)},t.prototype._isOverlapping=function(e){if(1!==e.getWidth())return!1;if(e.getCode()<256)return!1;var t=e.getChars();if(this._characterOverlapCache.hasOwnProperty(t))return this._characterOverlapCache[t];this._ctx.save(),this._ctx.font=this._characterFont;var r=Math.floor(this._ctx.measureText(t).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=r,r},o([a(5,f.IBufferService),a(6,f.IOptionsService),a(7,p.ICharacterJoinerService),a(8,f.IDecorationService)],t)}(c.BaseRenderLayer);t.TextRenderLayer=g},9616:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseCharAtlas=void 0;var r=function(){function e(){this._didWarmUp=!1}return e.prototype.dispose=function(){},e.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},e.prototype._doWarmUp=function(){},e.prototype.clear=function(){},e.prototype.beginFrame=function(){},e}();t.BaseCharAtlas=r},1420:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeTerminalFromCache=t.acquireCharAtlas=void 0;var n=r(2040),i=r(1906),o=[];t.acquireCharAtlas=function(e,t,r,a,s){for(var l=(0,n.generateConfig)(a,s,e,r),c=0;c<o.length;c++){var u=(h=o[c]).ownedBy.indexOf(t);if(u>=0){if((0,n.configEquals)(h.config,l))return h.atlas;1===h.ownedBy.length?(h.atlas.dispose(),o.splice(c,1)):h.ownedBy.splice(u,1);break}}for(c=0;c<o.length;c++){var h=o[c];if((0,n.configEquals)(h.config,l))return h.ownedBy.push(t),h.atlas}var d={atlas:new i.DynamicCharAtlas(document,l),config:l,ownedBy:[t]};return o.push(d),d.atlas},t.removeTerminalFromCache=function(e){for(var t=0;t<o.length;t++){var r=o[t].ownedBy.indexOf(e);if(-1!==r){1===o[t].ownedBy.length?(o[t].atlas.dispose(),o.splice(t,1)):o[t].ownedBy.splice(r,1);break}}}},2040:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.is256Color=t.configEquals=t.generateConfig=void 0;var n=r(643);t.generateConfig=function(e,t,r,n){var i={foreground:n.foreground,background:n.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:n.ansi.slice()};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:e,scaledCharHeight:t,fontFamily:r.fontFamily,fontSize:r.fontSize,fontWeight:r.fontWeight,fontWeightBold:r.fontWeightBold,allowTransparency:r.allowTransparency,colors:i}},t.configEquals=function(e,t){for(var r=0;r<e.colors.ansi.length;r++)if(e.colors.ansi[r].rgba!==t.colors.ansi[r].rgba)return!1;return e.devicePixelRatio===t.devicePixelRatio&&e.fontFamily===t.fontFamily&&e.fontSize===t.fontSize&&e.fontWeight===t.fontWeight&&e.fontWeightBold===t.fontWeightBold&&e.allowTransparency===t.allowTransparency&&e.scaledCharWidth===t.scaledCharWidth&&e.scaledCharHeight===t.scaledCharHeight&&e.colors.foreground===t.colors.foreground&&e.colors.background===t.colors.background},t.is256Color=function(e){return e<n.DEFAULT_COLOR}},8803:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR_ATLAS_CELL_SPACING=t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;var n=r(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=n.isFirefox||n.isLegacyEdge?"bottom":"ideographic",t.CHAR_ATLAS_CELL_SPACING=1},1906:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.NoneCharAtlas=t.DynamicCharAtlas=t.getGlyphCacheKey=void 0;var o=r(8803),a=r(9616),s=r(5680),l=r(7001),c=r(6114),u=r(1752),h=r(8055),d=1024,f=1024,p={css:"rgba(0, 0, 0, 0)",rgba:0};function v(e){return e.code<<21|e.bg<<12|e.fg<<3|(e.bold?0:4)+(e.dim?0:2)+(e.italic?0:1)}t.getGlyphCacheKey=v;var g=function(e){function t(t,r){var n=e.call(this)||this;n._config=r,n._drawToCacheCount=0,n._glyphsWaitingOnBitmap=[],n._bitmapCommitTimeout=null,n._bitmap=null,n._cacheCanvas=t.createElement("canvas"),n._cacheCanvas.width=d,n._cacheCanvas.height=f,n._cacheCtx=(0,u.throwIfFalsy)(n._cacheCanvas.getContext("2d",{alpha:!0}));var i=t.createElement("canvas");i.width=n._config.scaledCharWidth,i.height=n._config.scaledCharHeight,n._tmpCtx=(0,u.throwIfFalsy)(i.getContext("2d",{alpha:n._config.allowTransparency})),n._width=Math.floor(d/n._config.scaledCharWidth),n._height=Math.floor(f/n._config.scaledCharHeight);var o=n._width*n._height;return n._cacheMap=new l.LRUMap(o),n._cacheMap.prealloc(o),n}return i(t,e),t.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},t.prototype.beginFrame=function(){this._drawToCacheCount=0},t.prototype.clear=function(){if(this._cacheMap.size>0){var e=this._width*this._height;this._cacheMap=new l.LRUMap(e),this._cacheMap.prealloc(e)}this._cacheCtx.clearRect(0,0,d,f),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},t.prototype.draw=function(e,t,r,n){if(32===t.code)return!0;if(!this._canCache(t))return!1;var i=v(t),o=this._cacheMap.get(i);if(null!=o)return this._drawFromCache(e,o,r,n),!0;if(this._drawToCacheCount<100){var a;a=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var s=this._drawToCache(t,a);return this._cacheMap.set(i,s),this._drawFromCache(e,s,r,n),!0}return!1},t.prototype._canCache=function(e){return e.code<256},t.prototype._toCoordinateX=function(e){return e%this._width*this._config.scaledCharWidth},t.prototype._toCoordinateY=function(e){return Math.floor(e/this._width)*this._config.scaledCharHeight},t.prototype._drawFromCache=function(e,t,r,n){if(!t.isEmpty){var i=this._toCoordinateX(t.index),o=this._toCoordinateY(t.index);e.drawImage(t.inBitmap?this._bitmap:this._cacheCanvas,i,o,this._config.scaledCharWidth,this._config.scaledCharHeight,r,n,this._config.scaledCharWidth,this._config.scaledCharHeight)}},t.prototype._getColorFromAnsiIndex=function(e){return e<this._config.colors.ansi.length?this._config.colors.ansi[e]:s.DEFAULT_ANSI_COLORS[e]},t.prototype._getBackgroundColor=function(e){return this._config.allowTransparency?p:e.bg===o.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:e.bg<256?this._getColorFromAnsiIndex(e.bg):this._config.colors.background},t.prototype._getForegroundColor=function(e){return e.fg===o.INVERTED_DEFAULT_COLOR?h.color.opaque(this._config.colors.background):e.fg<256?this._getColorFromAnsiIndex(e.fg):this._config.colors.foreground},t.prototype._drawToCache=function(e,t){this._drawToCacheCount++,this._tmpCtx.save();var r=this._getBackgroundColor(e);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=r.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var n=e.bold?this._config.fontWeightBold:this._config.fontWeight,i=e.italic?"italic":"";this._tmpCtx.font=i+" "+n+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline=o.TEXT_BASELINE,this._tmpCtx.fillStyle=this._getForegroundColor(e).css,e.dim&&(this._tmpCtx.globalAlpha=o.DIM_OPACITY),this._tmpCtx.fillText(e.chars,0,this._config.scaledCharHeight);var a=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),s=!1;if(this._config.allowTransparency||(s=_(a,r)),s&&"_"===e.chars&&!this._config.allowTransparency)for(var l=1;l<=5&&(this._tmpCtx.fillText(e.chars,0,this._config.scaledCharHeight-l),s=_(a=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),r));l++);
1this._tmpCtx.restore();var c=this._toCoordinateX(t),u=this._toCoordinateY(t);this._cacheCtx.putImageData(a,c,u);var h={index:t,isEmpty:s,inBitmap:!1};return this._addGlyphToBitmap(h),h},t.prototype._addGlyphToBitmap=function(e){var t=this;!("createImageBitmap"in window)||c.isFirefox||c.isSafari||(this._glyphsWaitingOnBitmap.push(e),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout(function(){return t._generateBitmap()},100)))},t.prototype._generateBitmap=function(){var e=this,t=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(r){e._bitmap=r;for(var n=0;n<t.length;n++)t[n].inBitmap=!0}),this._bitmapCommitTimeout=null},t}(a.BaseCharAtlas);t.DynamicCharAtlas=g;var m=function(e){function t(t,r){return e.call(this)||this}return i(t,e),t.prototype.draw=function(e,t,r,n){return!1},t}(a.BaseCharAtlas);function _(e,t){for(var r=!0,n=t.rgba>>>24,i=t.rgba>>>16&255,o=t.rgba>>>8&255,a=0;a<e.data.length;a+=4)e.data[a]===n&&e.data[a+1]===i&&e.data[a+2]===o?e.data[a+3]=0:r=!1;return r}t.NoneCharAtlas=m},7001:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LRUMap=void 0;var r=function(){function e(e){this.capacity=e,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return e.prototype._unlinkNode=function(e){var t=e.prev,r=e.next;e===this._head&&(this._head=r),e===this._tail&&(this._tail=t),null!==t&&(t.next=r),null!==r&&(r.prev=t)},e.prototype._appendNode=function(e){var t=this._tail;null!==t&&(t.next=e),e.prev=t,e.next=null,this._tail=e,null===this._head&&(this._head=e)},e.prototype.prealloc=function(e){for(var t=this._nodePool,r=0;r<e;r++)t.push({prev:null,next:null,key:null,value:null})},e.prototype.get=function(e){var t=this._map[e];return void 0!==t?(this._unlinkNode(t),this._appendNode(t),t.value):null},e.prototype.peekValue=function(e){var t=this._map[e];return void 0!==t?t.value:null},e.prototype.peek=function(){var e=this._head;return null===e?null:e.value},e.prototype.set=function(e,t){var r=this._map[e];if(void 0!==r)r=this._map[e],this._unlinkNode(r),r.value=t;else if(this.size>=this.capacity)r=this._head,this._unlinkNode(r),delete this._map[r.key],r.key=e,r.value=t,this._map[e]=r;else{var n=this._nodePool;n.length>0?((r=n.pop()).key=e,r.value=t):r={prev:null,next:null,key:e,value:t},this._map[e]=r,this.size++}this._appendNode(r)},e}();t.LRUMap=r},1296:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;var l=r(3787),c=r(8803),u=r(844),h=r(4725),d=r(2585),f=r(8460),p=r(8055),v=r(9631),g="xterm-dom-renderer-owner-",m="xterm-fg-",_="xterm-bg-",y="xterm-focus",w=1,b=function(e){function t(t,r,n,i,o,a,s,c,u,h){var d=e.call(this)||this;return d._colors=t,d._element=r,d._screenElement=n,d._viewportElement=i,d._linkifier=o,d._linkifier2=a,d._charSizeService=c,d._optionsService=u,d._bufferService=h,d._terminalClass=w++,d._rowElements=[],d._rowContainer=document.createElement("div"),d._rowContainer.classList.add("xterm-rows"),d._rowContainer.style.lineHeight="normal",d._rowContainer.setAttribute("aria-hidden","true"),d._refreshRowElements(d._bufferService.cols,d._bufferService.rows),d._selectionContainer=document.createElement("div"),d._selectionContainer.classList.add("xterm-selection"),d._selectionContainer.setAttribute("aria-hidden","true"),d.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},d._updateDimensions(),d._injectCss(),d._rowFactory=s.createInstance(l.DomRendererRowFactory,document,d._colors),d._element.classList.add(g+d._terminalClass),d._screenElement.appendChild(d._rowContainer),d._screenElement.appendChild(d._selectionContainer),d.register(d._linkifier.onShowLinkUnderline(function(e){return d._onLinkHover(e)})),d.register(d._linkifier.onHideLinkUnderline(function(e){return d._onLinkLeave(e)})),d.register(d._linkifier2.onShowLinkUnderline(function(e){return d._onLinkHover(e)})),d.register(d._linkifier2.onHideLinkUnderline(function(e){return d._onLinkLeave(e)})),d}return i(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return(new f.EventEmitter).event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._element.classList.remove(g+this._terminalClass),(0,v.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),e.prototype.dispose.call(this)},t.prototype._updateDimensions=function(){var e,t;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;try{for(var r=s(this._rowElements),n=r.next();!n.done;n=r.next()){var i=n.value;i.style.width=this.dimensions.canvasWidth+"px",i.style.height=this.dimensions.actualCellHeight+"px",i.style.lineHeight=this.dimensions.actualCellHeight+"px",i.style.overflow="hidden"}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var o=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=o,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},t.prototype.setColors=function(e){this._colors=e,this._injectCss()},t.prototype._injectCss=function(){var e=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var t=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";t+=this._terminalSelector+" span:not(."+l.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+l.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+l.ITALIC_CLASS+" { font-style: italic;}",t+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",t+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",t+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+l.CURSOR_CLASS+"."+l.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+l.CURSOR_CLASS+"."+l.CURSOR_BLINK_CLASS+":not(."+l.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+l.CURSOR_CLASS+"."+l.CURSOR_BLINK_CLASS+"."+l.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+l.CURSOR_CLASS+"."+l.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+l.CURSOR_CLASS+"."+l.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+l.CURSOR_CLASS+"."+l.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",t+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionOpaque.css+";}",this._colors.ansi.forEach(function(r,n){t+=e._terminalSelector+" ."+m+n+" { color: "+r.css+"; }"+e._terminalSelector+" ."+_+n+" { background-color: "+r.css+"; }"}),t+=this._terminalSelector+" ."+m+c.INVERTED_DEFAULT_COLOR+" { color: "+p.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+_+c.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=t},t.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},t.prototype._refreshRowElements=function(e,t){for(var r=this._rowElements.length;r<=t;r++){var n=document.createElement("div");this._rowContainer.appendChild(n),this._rowElements.push(n)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())},t.prototype.onResize=function(e,t){this._refreshRowElements(e,t),this._updateDimensions()},t.prototype.onCharSizeChanged=function(){this._updateDimensions()},t.prototype.onBlur=function(){this._rowContainer.classList.remove(y)},t.prototype.onFocus=function(){this._rowContainer.classList.add(y)},t.prototype.onSelectionChanged=function(e,t,r){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.onSelectionChanged(e,t,r),this.renderRows(0,this._bufferService.rows-1),e&&t){var n=e[1]-this._bufferService.buffer.ydisp,i=t[1]-this._bufferService.buffer.ydisp,o=Math.max(n,0),a=Math.min(i,this._bufferService.rows-1);if(!(o>=this._bufferService.rows||a<0)){var s=document.createDocumentFragment();if(r){var l=e[0]>t[0];s.appendChild(this._createSelectionElement(o,l?t[0]:e[0],l?e[0]:t[0],a-o+1))}else{var c=n===o?e[0]:0,u=o===i?t[0]:this._bufferService.cols;s.appendChild(this._createSelectionElement(o,c,u));var h=a-o-1;if(s.appendChild(this._createSelectionElement(o+1,0,this._bufferService.cols,h)),o!==a){var d=i===a?t[0]:this._bufferService.cols;s.appendChild(this._createSelectionElement(a,0,d))}}this._selectionContainer.appendChild(s)}}},t.prototype._createSelectionElement=function(e,t,r,n){void 0===n&&(n=1);var i=document.createElement("div");return i.style.height=n*this.dimensions.actualCellHeight+"px",i.style.top=e*this.dimensions.actualCellHeight+"px",i.style.left=t*this.dimensions.actualCellWidth+"px",i.style.width=this.dimensions.actualCellWidth*(r-t)+"px",i},t.prototype.onCursorMove=function(){},t.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},t.prototype.clear=function(){var e,t;try{for(var r=s(this._rowElements),n=r.next();!n.done;n=r.next())n.value.innerText=""}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},t.prototype.renderRows=function(e,t){for(var r=this._bufferService.buffer.ybase+this._bufferService.buffer.y,n=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),i=this._optionsService.rawOptions.cursorBlink,o=e;o<=t;o++){var a=this._rowElements[o];a.innerText="";var s=o+this._bufferService.buffer.ydisp,l=this._bufferService.buffer.lines.get(s),c=this._optionsService.rawOptions.cursorStyle;a.appendChild(this._rowFactory.createRow(l,s,s===r,c,n,i,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(t.prototype,"_terminalSelector",{get:function(){return"."+g+this._terminalClass}
1,enumerable:!1,configurable:!0}),t.prototype._onLinkHover=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)},t.prototype._onLinkLeave=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)},t.prototype._setCellUnderline=function(e,t,r,n,i,o){for(;e!==t||r!==n;){var a=this._rowElements[r];if(!a)return;var s=a.children[e];s&&(s.style.textDecoration=o?"underline":"none"),++e>=i&&(e=0,r++)}},o([a(6,d.IInstantiationService),a(7,h.ICharSizeService),a(8,d.IOptionsService),a(9,d.IBufferService)],t)}(u.Disposable);t.DomRenderer=b},3787:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=t.CURSOR_STYLE_UNDERLINE_CLASS=t.CURSOR_STYLE_BAR_CLASS=t.CURSOR_STYLE_BLOCK_CLASS=t.CURSOR_BLINK_CLASS=t.CURSOR_CLASS=t.STRIKETHROUGH_CLASS=t.UNDERLINE_CLASS=t.ITALIC_CLASS=t.DIM_CLASS=t.BOLD_CLASS=void 0;var a=r(8803),s=r(643),l=r(511),c=r(2585),u=r(8055),h=r(4725),d=r(4269),f=r(1752);t.BOLD_CLASS="xterm-bold",t.DIM_CLASS="xterm-dim",t.ITALIC_CLASS="xterm-italic",t.UNDERLINE_CLASS="xterm-underline",t.STRIKETHROUGH_CLASS="xterm-strikethrough",t.CURSOR_CLASS="xterm-cursor",t.CURSOR_BLINK_CLASS="xterm-cursor-blink",t.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",t.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",t.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var p=function(){function e(e,t,r,n,i,o){this._document=e,this._colors=t,this._characterJoinerService=r,this._optionsService=n,this._coreService=i,this._decorationService=o,this._workCell=new l.CellData,this._columnSelectMode=!1}return e.prototype.setColors=function(e){this._colors=e},e.prototype.onSelectionChanged=function(e,t,r){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=r},e.prototype.createRow=function(e,r,n,i,l,c,h,f){for(var p,g,m=this._document.createDocumentFragment(),_=this._characterJoinerService.getJoinedCharacters(r),y=0,w=Math.min(e.length,f)-1;w>=0;w--)if(e.loadCell(w,this._workCell).getCode()!==s.NULL_CELL_CODE||n&&w===l){y=w+1;break}for(w=0;w<y;w++){e.loadCell(w,this._workCell);var b=this._workCell.getWidth();if(0!==b){var x=!1,C=w,S=this._workCell;if(_.length>0&&w===_[0][0]){x=!0;var E=_.shift();S=new d.JoinedCellData(this._workCell,e.translateToString(!0,E[0],E[1]),E[1]-E[0]),C=E[1]-1,b=S.getWidth()}var M=this._document.createElement("span");if(b>1&&(M.style.width=h*b+"px"),x&&(M.style.display="inline",l>=w&&l<=C&&(l=w)),!this._coreService.isCursorHidden&&n&&w===l)switch(M.classList.add(t.CURSOR_CLASS),c&&M.classList.add(t.CURSOR_BLINK_CLASS),i){case"bar":M.classList.add(t.CURSOR_STYLE_BAR_CLASS);break;case"underline":M.classList.add(t.CURSOR_STYLE_UNDERLINE_CLASS);break;default:M.classList.add(t.CURSOR_STYLE_BLOCK_CLASS)}S.isBold()&&M.classList.add(t.BOLD_CLASS),S.isItalic()&&M.classList.add(t.ITALIC_CLASS),S.isDim()&&M.classList.add(t.DIM_CLASS),S.isUnderline()&&M.classList.add(t.UNDERLINE_CLASS),S.isInvisible()?M.textContent=s.WHITESPACE_CELL_CHAR:M.textContent=S.getChars()||s.WHITESPACE_CELL_CHAR,S.isStrikethrough()&&M.classList.add(t.STRIKETHROUGH_CLASS);var k=S.getFgColor(),L=S.getFgColorMode(),R=S.getBgColor(),O=S.getBgColorMode(),A=!!S.isInverse();if(A){var P=k;k=R,R=P;var T=L;L=O,O=T}var D=void 0,B=void 0,j=!1;try{for(var I=(p=void 0,o(this._decorationService.getDecorationsAtCell(w,r))),z=I.next();!z.done;z=I.next()){var H=z.value;"top"!==H.options.layer&&j||(H.backgroundColorRGB&&(O=50331648,R=H.backgroundColorRGB.rgba>>8&16777215,D=H.backgroundColorRGB),H.foregroundColorRGB&&(L=50331648,k=H.foregroundColorRGB.rgba>>8&16777215,B=H.foregroundColorRGB),j="top"===H.options.layer)}}catch(e){p={error:e}}finally{try{z&&!z.done&&(g=I.return)&&g.call(I)}finally{if(p)throw p.error}}var F=this._isCellInSelection(w,r);j||this._colors.selectionForeground&&F&&(L=50331648,k=this._colors.selectionForeground.rgba>>8&16777215,B=this._colors.selectionForeground),F&&(D=this._colors.selectionOpaque,j=!0),j&&M.classList.add("xterm-decoration-top");var V=void 0;switch(O){case 16777216:case 33554432:V=this._colors.ansi[R],M.classList.add("xterm-bg-"+R);break;case 50331648:V=u.rgba.toColor(R>>16,R>>8&255,255&R),this._addStyle(M,"background-color:#"+v((R>>>0).toString(16),"0",6));break;default:A?(V=this._colors.foreground,M.classList.add("xterm-bg-"+a.INVERTED_DEFAULT_COLOR)):V=this._colors.background}switch(L){case 16777216:case 33554432:S.isBold()&&k<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(k+=8),this._applyMinimumContrast(M,V,this._colors.ansi[k],S,D,void 0)||M.classList.add("xterm-fg-"+k);break;case 50331648:var W=u.rgba.toColor(k>>16&255,k>>8&255,255&k);this._applyMinimumContrast(M,V,W,S,D,B)||this._addStyle(M,"color:#"+v(k.toString(16),"0",6));break;default:this._applyMinimumContrast(M,V,this._colors.foreground,S,D,void 0)||A&&M.classList.add("xterm-fg-"+a.INVERTED_DEFAULT_COLOR)}m.appendChild(M),w=C}}return m},e.prototype._applyMinimumContrast=function(e,t,r,n,i,o){if(1===this._optionsService.rawOptions.minimumContrastRatio||(0,f.excludeFromContrastRatioDemands)(n.getCode()))return!1;var a=void 0;return i||o||(a=this._colors.contrastCache.getColor(t.rgba,r.rgba)),void 0===a&&(a=u.color.ensureContrastRatio(i||t,o||r,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor((i||t).rgba,(o||r).rgba,null!=a?a:null)),!!a&&(this._addStyle(e,"color:"+a.css),!0)},e.prototype._addStyle=function(e,t){e.setAttribute("style",""+(e.getAttribute("style")||"")+t+";")},e.prototype._isCellInSelection=function(e,t){var r=this._selectionStart,n=this._selectionEnd;return!(!r||!n)&&(this._columnSelectMode?r[0]<=n[0]?e>=r[0]&&t>=r[1]&&e<n[0]&&t<=n[1]:e<r[0]&&t>=r[1]&&e>=n[0]&&t<=n[1]:t>r[1]&&t<n[1]||r[1]===n[1]&&t===r[1]&&e>=r[0]&&e<n[0]||r[1]<n[1]&&t===n[1]&&e<n[0]||r[1]<n[1]&&t===r[1]&&e>=r[0])},n([i(2,h.ICharacterJoinerService),i(3,c.IOptionsService),i(4,c.ICoreService),i(5,c.IDecorationService)],e)}();function v(e,t,r){for(;e.length<r;)e=t+e;return e}t.DomRendererRowFactory=p},456:(e,t)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0;var r=function(){function e(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}return e.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(e.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?(e=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?e%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?(e=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:void 0;var e},enumerable:!1,configurable:!0}),e.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},e.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},e}();t.SelectionModel=r},428:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;var o=r(2585),a=r(8460),s=function(){function e(e,t,r){this._optionsService=r,this.width=0,this.height=0,this._onCharSizeChange=new a.EventEmitter,this._measureStrategy=new l(e,t,this._optionsService)}return Object.defineProperty(e.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),e.prototype.measure=function(){var e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())},n([i(2,o.IOptionsService)],e)}();t.CharSizeService=s;var l=function(){function e(e,t,r){this._document=e,this._parentElement=t,this._optionsService=r,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return e.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var e=this._measureElement.getBoundingClientRect();return 0!==e.width&&0!==e.height&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result},e}()},4269:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;var s=r(3734),l=r(643),c=r(511),u=r(2585),h=function(e){function t(t,r,n){var i=e.call(this)||this;return i.content=0,i.combinedData="",i.fg=t.fg,i.bg=t.bg,i.combinedData=r,i._width=n,i}return i(t,e),t.prototype.isCombined=function(){return 2097152},t.prototype.getWidth=function(){return this._width},t.prototype.getChars=function(){return this.combinedData},t.prototype.getCode=function(){return 2097151},t.prototype.setFromCharData=function(e){throw new Error("not implemented")},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(s.AttributeData);t.JoinedCellData=h;var d=function(){function e(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new c.CellData}return e.prototype.register=function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id},e.prototype.deregister=function(e){for(var t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1},e.prototype.getJoinedCharacters=function(e){if(0===this._characterJoiners.length)return[];var t=this._bufferService.buffer.lines.get(e);if(!t||0===t.length)return[];for(var r=[],n=t.translateToString(!0),i=0,o=0,a=0,s=t.getFg(0),c=t.getBg(0),u=0;u<t.getTrimmedLength();u++)if(t.loadCell(u,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==s||this._workCell.bg!==c){if(u-i>1)for(var h=this._getJoinedRanges(n,a,o,t,i),d=0;d<h.length;d++)r.push(h[d]);i=u,a=o,s=this._workCell.fg,c=this._workCell.bg}o+=this._workCell.getChars().length||l.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-i>1)for(h=this._getJoinedRanges(n,a,o,t,i),d=0;d<h.length;d++)r.push(h[d]);return r},e.prototype._getJoinedRanges=function(t,r,n,i,o){var a=t.substring(r,n),s=[];try{s=this._characterJoiners[0].handler(a)}catch(e){console.error(e)}for(var l=1;l<this._characterJoiners.length;l++)try{for(var c=this._characterJoiners[l].handler(a),u=0;u<c.length;u++)e._mergeRanges(s,c[u])}catch(e){console.error(e)}return this._stringRangesToCellRanges(s,i,o),s},e.prototype._stringRangesToCellRanges=function(e,t,r){var n=0,i=!1,o=0,a=e[n];if(a){for(var s=r;s<this._bufferService.cols;s++){var c=t.getWidth(s),u=t.getString(s).length||l.WHITESPACE_CELL_CHAR.length;if(0!==c){if(!i&&a[0]<=o&&(a[0]=s,i=!0),a[1]<=o){if(a[1]=s,!(a=e[++n]))break;a[0]<=o?(a[0]=s,i=!0):i=!1}o+=u}}a&&(a[1]=this._bufferService.cols)}},e._mergeRanges=function(e,t){for(var r=!1,n=0;n<e.length;n++){var i=e[n];if(r){if(t[1]<=i[0])return e[n-1][1]=t[1],e;if(t[1]<=i[1])return e[n-1][1]=Math.max(t[1],i[1]),e.splice(n,1),e;e.splice(n,1),n--}else{if(t[1]<=i[0])return e.splice(n,0,t),e;if(t[1]<=i[1])return i[0]=Math.min(t[0],i[0]),e;t[0]<i[1]&&(i[0]=Math.min(t[0],i[0]),r=!0)}}return r?e[e.length-1][1]=t[1]:e.push(t),e},e=o([a(0,u.IBufferService)],e)}();t.CharacterJoinerService=d},5114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0;var r=function(){function e(e){this._textarea=e}return Object.defineProperty(e.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()}
1,enumerable:!1,configurable:!0}),e}();t.CoreBrowserService=r},8934:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;var o=r(4725),a=r(9806),s=function(){function e(e,t){this._renderService=e,this._charSizeService=t}return e.prototype.getCoords=function(e,t,r,n,i){return(0,a.getCoords)(window,e,t,r,n,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,i)},e.prototype.getRawByteCoords=function(e,t,r,n){var i=this.getCoords(e,t,r,n);return(0,a.getRawByteCoords)(i)},n([i(0,o.IRenderService),i(1,o.ICharSizeService)],e)}();t.MouseService=s},3230:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;var s=r(6193),l=r(8460),c=r(844),u=r(5596),h=r(3656),d=r(2585),f=r(4725),p=function(e){function t(t,r,n,i,o,a,c){var d=e.call(this)||this;if(d._renderer=t,d._rowCount=r,d._charSizeService=o,d._isPaused=!1,d._needsFullRefresh=!1,d._isNextRenderRedrawOnly=!0,d._needsSelectionRefresh=!1,d._canvasWidth=0,d._canvasHeight=0,d._selectionState={start:void 0,end:void 0,columnSelectMode:!1},d._onDimensionsChange=new l.EventEmitter,d._onRenderedViewportChange=new l.EventEmitter,d._onRender=new l.EventEmitter,d._onRefreshRequest=new l.EventEmitter,d.register({dispose:function(){return d._renderer.dispose()}}),d._renderDebouncer=new s.RenderDebouncer(function(e,t){return d._renderRows(e,t)}),d.register(d._renderDebouncer),d._screenDprMonitor=new u.ScreenDprMonitor,d._screenDprMonitor.setListener(function(){return d.onDevicePixelRatioChange()}),d.register(d._screenDprMonitor),d.register(c.onResize(function(){return d._fullRefresh()})),d.register(c.buffers.onBufferActivate(function(){var e;return null===(e=d._renderer)||void 0===e?void 0:e.clear()})),d.register(i.onOptionChange(function(){return d._handleOptionsChanged()})),d.register(d._charSizeService.onCharSizeChange(function(){return d.onCharSizeChanged()})),d.register(a.onDecorationRegistered(function(){return d._fullRefresh()})),d.register(a.onDecorationRemoved(function(){return d._fullRefresh()})),d._renderer.onRequestRedraw(function(e){return d.refreshRows(e.start,e.end,!0)}),d.register((0,h.addDisposableDomListener)(window,"resize",function(){return d.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var f=new IntersectionObserver(function(e){return d._onIntersectionChange(e[e.length-1])},{threshold:0});f.observe(n),d.register({dispose:function(){return f.disconnect()}})}return d}return i(t,e),Object.defineProperty(t.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRenderedViewportChange",{get:function(){return this._onRenderedViewportChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),t.prototype._onIntersectionChange=function(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},t.prototype.refreshRows=function(e,t,r){void 0===r&&(r=!1),this._isPaused?this._needsFullRefresh=!0:(r||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))},t.prototype._renderRows=function(e,t){this._renderer.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0},t.prototype.resize=function(e,t){this._rowCount=t,this._fireOnCanvasResize()},t.prototype._handleOptionsChanged=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},t.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.setRenderer=function(e){var t=this;this._renderer.dispose(),this._renderer=e,this._renderer.onRequestRedraw(function(e){return t.refreshRows(e.start,e.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},t.prototype.addRefreshCallback=function(e){return this._renderDebouncer.addRefreshCallback(e)},t.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},t.prototype.clearTextureAtlas=function(){var e,t;null===(t=null===(e=this._renderer)||void 0===e?void 0:e.clearTextureAtlas)||void 0===t||t.call(e),this._fullRefresh()},t.prototype.setColors=function(e){this._renderer.setColors(e),this._fullRefresh()},t.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},t.prototype.onResize=function(e,t){this._renderer.onResize(e,t),this._fullRefresh()}
1,t.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},t.prototype.onBlur=function(){this._renderer.onBlur()},t.prototype.onFocus=function(){this._renderer.onFocus()},t.prototype.onSelectionChanged=function(e,t,r){this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=r,this._renderer.onSelectionChanged(e,t,r)},t.prototype.onCursorMove=function(){this._renderer.onCursorMove()},t.prototype.clear=function(){this._renderer.clear()},o([a(3,d.IOptionsService),a(4,f.ICharSizeService),a(5,d.IDecorationService),a(6,d.IBufferService)],t)}(c.Disposable);t.RenderService=p},9312:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;var s=r(6114),l=r(456),c=r(511),u=r(8460),h=r(4725),d=r(2585),f=r(9806),p=r(9504),v=r(844),g=r(4841),m=String.fromCharCode(160),_=new RegExp(m,"g"),y=function(e){function t(t,r,n,i,o,a,s,h){var d=e.call(this)||this;return d._element=t,d._screenElement=r,d._linkifier=n,d._bufferService=i,d._coreService=o,d._mouseService=a,d._optionsService=s,d._renderService=h,d._dragScrollAmount=0,d._enabled=!0,d._workCell=new c.CellData,d._mouseDownTimeStamp=0,d._oldHasSelection=!1,d._oldSelectionStart=void 0,d._oldSelectionEnd=void 0,d._onLinuxMouseSelection=d.register(new u.EventEmitter),d._onRedrawRequest=d.register(new u.EventEmitter),d._onSelectionChange=d.register(new u.EventEmitter),d._onRequestScrollLines=d.register(new u.EventEmitter),d._mouseMoveListener=function(e){return d._onMouseMove(e)},d._mouseUpListener=function(e){return d._onMouseUp(e)},d._coreService.onUserInput(function(){d.hasSelection&&d.clearSelection()}),d._trimListener=d._bufferService.buffer.lines.onTrim(function(e){return d._onTrim(e)}),d.register(d._bufferService.buffers.onBufferActivate(function(e){return d._onBufferActivate(e)}
1)),d.enable(),d._model=new l.SelectionModel(d._bufferService),d._activeSelectionMode=0,d}return i(t,e),Object.defineProperty(t.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._removeMouseDownListeners()},t.prototype.reset=function(){this.clearSelection()},t.prototype.disable=function(){this.clearSelection(),this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var r=this._bufferService.buffer,n=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var i=e[0]<t[0]?e[0]:t[0],o=e[0]<t[0]?t[0]:e[0],a=e[1];a<=t[1];a++){var l=r.translateBufferLineToString(a,!0,i,o);n.push(l)}}else{var c=e[1]===t[1]?t[0]:void 0;for(n.push(r.translateBufferLineToString(e[1],!0,e[0],c)),a=e[1]+1;a<=t[1]-1;a++){var u=r.lines.get(a);l=r.translateBufferLineToString(a,!0),(null==u?void 0:u.isWrapped)?n[n.length-1]+=l:n.push(l)}e[1]!==t[1]&&(u=r.lines.get(t[1]),l=r.translateBufferLineToString(t[1],!0,0,t[0]),u&&u.isWrapped?n[n.length-1]+=l:n.push(l))}return n.map(function(e){return e.replace(_," ")}).join(s.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),t.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},t.prototype.refresh=function(e){var t=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return t._refresh()})),s.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},t.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},t.prototype._isClickInSelection=function(e){var t=this._getMouseBufferCoords(e),r=this._model.finalSelectionStart,n=this._model.finalSelectionEnd;return!!(r&&n&&t)&&this._areCoordsInSelection(t,r,n)},t.prototype.isCellInSelection=function(e,t){var r=this._model.finalSelectionStart,n=this._model.finalSelectionEnd;return!(!r||!n)&&this._areCoordsInSelection([e,t],r,n)},t.prototype._areCoordsInSelection=function(e,t,r){return e[1]>t[1]&&e[1]<r[1]||t[1]===r[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<r[0]||t[1]<r[1]&&e[1]===r[1]&&e[0]<r[0]||t[1]<r[1]&&e[1]===t[1]&&e[0]>=t[0]},t.prototype._selectWordAtCursor=function(e,t){var r,n,i=null===(n=null===(r=this._linkifier.currentLink)||void 0===r?void 0:r.link)||void 0===n?void 0:n.range;if(i)return this._model.selectionStart=[i.start.x-1,i.start.y-1],this._model.selectionStartLength=(0,g.getRangeLength)(i,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var o=this._getMouseBufferCoords(e);return!!o&&(this._selectWordAt(o,t),this._model.selectionEnd=void 0,!0)},t.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},t.prototype.selectLines=function(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()},t.prototype._onTrim=function(e){this._model.onTrim(e)&&this.refresh()},t.prototype._getMouseBufferCoords=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t},t.prototype._getMouseEventScrollAmount=function(e){var t=(0,f.getCoordsRelativeToElement)(window,e,this._screenElement)[1],r=this._renderService.dimensions.canvasHeight;return t>=0&&t<=r?0:(t>r&&(t-=r),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},t.prototype.shouldForceSelection=function(e){return s.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey},t.prototype.onMouseDown=function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},t.prototype._addMouseDownListeners=function(){var e=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return e._dragScroll()},50)},t.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},t.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},t.prototype._onSingleClick=function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=void 0;var t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}}
1,t.prototype._onDoubleClick=function(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)},t.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))},t.prototype.shouldColumnSelect=function(e){return e.altKey&&!(s.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},t.prototype._onMouseMove=function(e){if(e.stopImmediatePropagation(),this._model.selectionStart){var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var r=this._bufferService.buffer;if(this._model.selectionEnd[1]<r.lines.length){var n=r.lines.get(this._model.selectionEnd[1]);n&&0===n.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},t.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var e=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}},t.prototype._onMouseUp=function(e){var t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var r=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(r&&void 0!==r[0]&&void 0!==r[1]){var n=(0,p.moveToCellSequence)(r[0]-1,r[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(n,!0)}}}else this._fireEventIfSelectionChanged()},t.prototype._fireEventIfSelectionChanged=function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,r=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);r?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,r)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,r)},t.prototype._fireOnSelectionChange=function(e,t,r){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=r,this._onSelectionChange.fire()},t.prototype._onBufferActivate=function(e){var t=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(function(e){return t._onTrim(e)})},t.prototype._convertViewportColToCharacterIndex=function(e,t){for(var r=t[0],n=0;t[0]>=n;n++){var i=e.loadCell(n,this._workCell).getChars().length;0===this._workCell.getWidth()?r--:i>1&&t[0]!==n&&(r+=i-1)}return r},t.prototype.setSelection=function(e,t,r){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=r,this.refresh(),this._fireEventIfSelectionChanged()},t.prototype.rightClickSelect=function(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},t.prototype._getWordAt=function(e,t,r,n){if(void 0===r&&(r=!0),void 0===n&&(n=!0),!(e[0]>=this._bufferService.cols)){var i=this._bufferService.buffer,o=i.lines.get(e[1]);if(o){var a=i.translateBufferLineToString(e[1],!1),s=this._convertViewportColToCharacterIndex(o,e),l=s,c=e[0]-s,u=0,h=0,d=0,f=0;if(" "===a.charAt(s)){for(;s>0&&" "===a.charAt(s-1);)s--;for(;l<a.length&&" "===a.charAt(l+1);)l++}else{var p=e[0],v=e[0];0===o.getWidth(p)&&(u++,p--),2===o.getWidth(v)&&(h++,v++);var g=o.getString(v).length;for(g>1&&(f+=g-1,l+=g-1);p>0&&s>0&&!this._isCharWordSeparator(o.loadCell(p-1,this._workCell));){o.loadCell(p-1,this._workCell);var m=this._workCell.getChars().length;0===this._workCell.getWidth()?(u++,p--):m>1&&(d+=m-1,s-=m-1),s--,p--}for(;v<o.length&&l+1<a.length&&!this._isCharWordSeparator(o.loadCell(v+1,this._workCell));){o.loadCell(v+1,this._workCell);var _=this._workCell.getChars().length;2===this._workCell.getWidth()?(h++,v++):_>1&&(f+=_-1,l+=_-1),l++,v++}}l++;var y=s+c-u+d,w=Math.min(this._bufferService.cols,l-s+u+h-d-f);if(t||""!==a.slice(s,l).trim()){if(r&&0===y&&32!==o.getCodePoint(0)){var b=i.lines.get(e[1]-1);if(b&&o.isWrapped&&32!==b.getCodePoint(this._bufferService.cols-1)){var x=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(x){var C=this._bufferService.cols-x.start;y-=C,w+=C}}}if(n&&y+w===this._bufferService.cols&&32!==o.getCodePoint(this._bufferService.cols-1)){var S=i.lines.get(e[1]+1);if((null==S?void 0:S.isWrapped)&&32!==S.getCodePoint(0)){var E=this._getWordAt([0,e[1]+1],!1,!1,
1!0);E&&(w+=E.length)}}return{start:y,length:w}}}}},t.prototype._selectWordAt=function(e,t){var r=this._getWordAt(e,t);if(r){for(;r.start<0;)r.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[r.start,e[1]],this._model.selectionStartLength=r.length}},t.prototype._selectToWordAt=function(e){var t=this._getWordAt(e,!0);if(t){for(var r=e[1];t.start<0;)t.start+=this._bufferService.cols,r--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,r++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,r]}},t.prototype._isCharWordSeparator=function(e){return 0!==e.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0},t.prototype._selectLineAt=function(e){var t=this._bufferService.buffer.getWrappedRangeForLine(e),r={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,g.getRangeLength)(r,this._bufferService.cols)},o([a(3,d.IBufferService),a(4,d.ICoreService),a(5,h.IMouseService),a(6,d.IOptionsService),a(7,h.IRenderService)],t)}(v.Disposable);t.SelectionService=y},4725:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ICharacterJoinerService=t.ISoundService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;var n=r(8343);t.ICharSizeService=(0,n.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,n.createDecorator)("CoreBrowserService"),t.IMouseService=(0,n.createDecorator)("MouseService"),t.IRenderService=(0,n.createDecorator)("RenderService"),t.ISelectionService=(0,n.createDecorator)("SelectionService"),t.ISoundService=(0,n.createDecorator)("SoundService"),t.ICharacterJoinerService=(0,n.createDecorator)("CharacterJoinerService")},357:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SoundService=void 0;var o=r(2585),a=function(){function e(e){this._optionsService=e}return Object.defineProperty(e,"audioContext",{get:function(){if(!e._audioContext){var t=window.AudioContext||window.webkitAudioContext;if(!t)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;e._audioContext=new t}return e._audioContext},enumerable:!1,configurable:!0}),e.prototype.playBellSound=function(){var t=e.audioContext;if(t){var r=t.createBufferSource();t.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(e){r.buffer=e,r.connect(t.destination),r.start(0)})}},e.prototype._base64ToArrayBuffer=function(e){for(var t=window.atob(e),r=t.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer},e.prototype._removeMimeType=function(e){return e.split(",")[1]},e=n([i(0,o.IOptionsService)],e)}();t.SoundService=a},6349:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;var n=r(8460),i=function(){function e(e){this._maxLength=e,this.onDeleteEmitter=new n.EventEmitter,this.onInsertEmitter=new n.EventEmitter,this.onTrimEmitter=new n.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(e.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxLength",{get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),r=0;r<Math.min(e,this.length);r++)t[r]=this._array[this._getCyclicIndex(r)];this._array=t,this._maxLength=e,this._startIndex=0}}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},set:function(e){if(e>this._length)for(var t=this._length;t<e;t++)this._array[t]=void 0;this._length=e},enumerable:!1,configurable:!0}),e.prototype.get=function(e){return this._array[this._getCyclicIndex(e)]},e.prototype.set=function(e,t){this._array[this._getCyclicIndex(e)]=t},e.prototype.push=function(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},e.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(e.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),e.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},e.prototype.splice=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(t){for(var i=e;i<this._length-t;i++)this._array[this._getCyclicIndex(i)]=this._array[this._getCyclicIndex(i+t)];this._length-=t,this.onDeleteEmitter.fire({index:e,amount:t})}for(i=this._length-1;i>=e;i--)this._array[this._getCyclicIndex(i+r.length)]=this._array[this._getCyclicIndex(i)];for(i=0;i<r.length;i++)this._array[this._getCyclicIndex(e+i)]=r[i];if(r.length&&this.onInsertEmitter.fire({index:e,amount:r.length}),this._length+r.length>this._maxLength){var o=this._length+r.length-this._maxLength;this._startIndex+=o,this._length=this._maxLength,this.onTrimEmitter.fire(o)}else this._length+=r.length},e.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)},e.prototype.shiftElements=function(e,t,r){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+r<0)throw new Error("Cannot shift elements in list beyond index 0");if(r>0){for(var n=t-1;n>=0;n--)this.set(e+n+r,this.get(e+n));var i=e+t+r-this._length;if(i>0)for(this._length+=i;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(n=0;n<t;n++)this.set(e+n+r,this.get(e+n))}},e.prototype._getCyclicIndex=function(e){return(this._startIndex+e)%this._maxLength},e}();t.CircularList=i},1439:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t,r){if(void 0===r&&(r=5),"object"!=typeof t)return t;var n=Array.isArray(t)?[]:{};for(var i in t)n[i]=r<=1?t[i]:t[i]&&e(t[i],r-1);return n}},8055:function(e,t){var r,n,i,o,a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};function s(e){var t=e.toString(16);return t.length<2?"0"+t:t}function l(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=void 0,function(e){e.toCss=function(e,t,r,n){return void 0!==n?"#"+s(e)+s(t)+s(r)+s(n):"#"+s(e)+s(t)+s(r)},e.toRgba=function(e,t,r,n){return void 0===n&&(n=255),(e<<24|t<<16|r<<8|n)>>>0}}(r=t.channels||(t.channels={})),(n=t.color||(t.color={})).blend=function(e,t){var n=(255&t.rgba)/255;if(1===n)return{css:t.css,rgba:t.rgba};var i=t.rgba>>24&255,o=t.rgba>>16&255,a=t.rgba>>8&255,s=e.rgba>>24&255,l=e.rgba>>16&255,c=e.rgba>>8&255,u=s+Math.round((i-s)*n),h=l+Math.round((o-l)*n),d=c+Math.round((a-c)*n);return{css:r.toCss(u,h,d),rgba:r.toRgba(u,h,d)}},n.isOpaque=function(e){return!(255&~e.rgba)},n.ensureContrastRatio=function(e,t,r){var n=o.ensureContrastRatio(e.rgba,t.rgba,r);if(n)return o.toColor(n>>24&255,n>>16&255,n>>8&255)},n.opaque=function(e){var t=(255|e.rgba)>>>0,n=a(o.toChannels(t),3),i=n[0],s=n[1],l=n[2];return{css:r.toCss(i,s,l),rgba:t}},n.opacity=function(e,t){var n=Math.round(255*t),i=a(o.toChannels(e.rgba),3),s=i[0],l=i[1],c=i[2];return{css:r.toCss(s,l,c,n),rgba:r.toRgba(s,l,c,n)}},n.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]},(t.css||(t.css={})).toColor=function(e){if(e.match(/#[0-9a-f]{3,8}/i))switch(e.length){case 4:var t=parseInt(e.slice(1,2).repeat(2),16),r=parseInt(e.slice(2,3).repeat(2),16),n=parseInt(e.slice(3,4).repeat(2),16);return o.toColor(t,r,n);case 5:t=parseInt(e.slice(1,2).repeat(2),16),r=parseInt(e.slice(2,3).repeat(2),16),n=parseInt(e.slice(3,4).repeat(2),16);var i=parseInt(e.slice(4,5).repeat(2),16);return o.toColor(t,r,n,i);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}var a=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);
1if(a)return t=parseInt(a[1]),r=parseInt(a[2]),n=parseInt(a[3]),i=Math.round(255*(void 0===a[5]?1:parseFloat(a[5]))),o.toColor(t,r,n,i);throw new Error("css.toColor: Unsupported css format")},function(e){function t(e,t,r){var n=e/255,i=t/255,o=r/255;return.2126*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(i=t.rgb||(t.rgb={})),function(e){function t(e,t,r){for(var n=e>>24&255,o=e>>16&255,a=e>>8&255,s=t>>24&255,c=t>>16&255,u=t>>8&255,h=l(i.relativeLuminance2(s,c,u),i.relativeLuminance2(n,o,a));h<r&&(s>0||c>0||u>0);)s-=Math.max(0,Math.ceil(.1*s)),c-=Math.max(0,Math.ceil(.1*c)),u-=Math.max(0,Math.ceil(.1*u)),h=l(i.relativeLuminance2(s,c,u),i.relativeLuminance2(n,o,a));return(s<<24|c<<16|u<<8|255)>>>0}function n(e,t,r){for(var n=e>>24&255,o=e>>16&255,a=e>>8&255,s=t>>24&255,c=t>>16&255,u=t>>8&255,h=l(i.relativeLuminance2(s,c,u),i.relativeLuminance2(n,o,a));h<r&&(s<255||c<255||u<255);)s=Math.min(255,s+Math.ceil(.1*(255-s))),c=Math.min(255,c+Math.ceil(.1*(255-c))),u=Math.min(255,u+Math.ceil(.1*(255-u))),h=l(i.relativeLuminance2(s,c,u),i.relativeLuminance2(n,o,a));return(s<<24|c<<16|u<<8|255)>>>0}e.ensureContrastRatio=function(e,r,o){var a=i.relativeLuminance(e>>8),s=i.relativeLuminance(r>>8);if(l(a,s)<o){if(s<a){var c=t(e,r,o),u=l(a,i.relativeLuminance(c>>8));if(u<o){var h=n(e,e,o);return u>l(a,i.relativeLuminance(h>>8))?c:h}return c}var d=n(e,r,o),f=l(a,i.relativeLuminance(d>>8));return f<o?(h=t(e,e,o),f>l(a,i.relativeLuminance(h>>8))?d:h):d}},e.reduceLuminance=t,e.increaseLuminance=n,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,n,i){return{css:r.toCss(e,t,n,i),rgba:r.toRgba(e,t,n,i)}}}(o=t.rgba||(t.rgba={})),t.toPaddedHex=s,t.contrastRatio=l},8969:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;var a=r(844),s=r(2585),l=r(4348),c=r(7866),u=r(744),h=r(7302),d=r(6975),f=r(8460),p=r(1753),v=r(3730),g=r(1480),m=r(7994),_=r(9282),y=r(5435),w=r(5981),b=!1,x=function(e){function t(t){var r=e.call(this)||this;return r._onBinary=new f.EventEmitter,r._onData=new f.EventEmitter,r._onLineFeed=new f.EventEmitter,r._onResize=new f.EventEmitter,r._onScroll=new f.EventEmitter,r._onWriteParsed=new f.EventEmitter,r._instantiationService=new l.InstantiationService,r.optionsService=new h.OptionsService(t),r._instantiationService.setService(s.IOptionsService,r.optionsService),r._bufferService=r.register(r._instantiationService.createInstance(u.BufferService)),r._instantiationService.setService(s.IBufferService,r._bufferService),r._logService=r._instantiationService.createInstance(c.LogService),r._instantiationService.setService(s.ILogService,r._logService),r.coreService=r.register(r._instantiationService.createInstance(d.CoreService,function(){return r.scrollToBottom()})),r._instantiationService.setService(s.ICoreService,r.coreService),r.coreMouseService=r._instantiationService.createInstance(p.CoreMouseService),r._instantiationService.setService(s.ICoreMouseService,r.coreMouseService),r._dirtyRowService=r._instantiationService.createInstance(v.DirtyRowService),r._instantiationService.setService(s.IDirtyRowService,r._dirtyRowService),r.unicodeService=r._instantiationService.createInstance(g.UnicodeService),r._instantiationService.setService(s.IUnicodeService,r.unicodeService),r._charsetService=r._instantiationService.createInstance(m.CharsetService),r._instantiationService.setService(s.ICharsetService,r._charsetService),r._inputHandler=new y.InputHandler(r._bufferService,r._charsetService,r.coreService,r._dirtyRowService,r._logService,r.optionsService,r.coreMouseService,r.unicodeService),r.register((0,f.forwardEvent)(r._inputHandler.onLineFeed,r._onLineFeed)),r.register(r._inputHandler),r.register((0,f.forwardEvent)(r._bufferService.onResize,r._onResize)),r.register((0,f.forwardEvent)(r.coreService.onData,r._onData)),r.register((0,f.forwardEvent)(r.coreService.onBinary,r._onBinary)),r.register(r.optionsService.onOptionChange(function(e){return r._updateOptions(e)})),r.register(r._bufferService.onScroll(function(e){r._onScroll.fire({position:r._bufferService.buffer.ydisp,source:0}),r._dirtyRowService.markRangeDirty(r._bufferService.buffer.scrollTop,r._bufferService.buffer.scrollBottom)})),r.register(r._inputHandler.onScroll(function(e){r._onScroll.fire({position:r._bufferService.buffer.ydisp,source:0}),r._dirtyRowService.markRangeDirty(r._bufferService.buffer.scrollTop,r._bufferService.buffer.scrollBottom)})),r._writeBuffer=new w.WriteBuffer(function(e,t){return r._inputHandler.parse(e,t)}),r.register((0,f.forwardEvent)(r._writeBuffer.onWriteParsed,r._onWriteParsed)),r}return i(t,e),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onResize",{get:function(){return this._onResize.event}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onWriteParsed",{get:function(){return this._onWriteParsed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){var e=this;return this._onScrollApi||(this._onScrollApi=new f.EventEmitter,this.register(this._onScroll.event(function(t){var r;null===(r=e._onScrollApi)||void 0===r||r.fire(t.position)}))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.optionsService.options},set:function(e){for(var t in e)this.optionsService.options[t]=e[t]},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){var t;this._isDisposed||(e.prototype.dispose.call(this),null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)},t.prototype.write=function(e,t){this._writeBuffer.write(e,t)},t.prototype.writeSync=function(e,t){this._logService.logLevel<=s.LogLevelEnum.WARN&&!b&&(this._logService.warn("writeSync is unreliable and will be removed soon."),b=!0),this._writeBuffer.writeSync(e,t)},t.prototype.resize=function(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,u.MINIMUM_COLS),t=Math.max(t,u.MINIMUM_ROWS),this._bufferService.resize(e,t))},t.prototype.scroll=function(e,t){void 0===t&&(t=!1),this._bufferService.scroll(e,t)},t.prototype.scrollLines=function(e,t,r){this._bufferService.scrollLines(e,t,r)},t.prototype.scrollPages=function(e){this._bufferService.scrollPages(e)},t.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},t.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},t.prototype.scrollToLine=function(e){this._bufferService.scrollToLine(e)},t.prototype.registerEscHandler=function(e,t){return this._inputHandler.registerEscHandler(e,t)},t.prototype.registerDcsHandler=function(e,t){return this._inputHandler.registerDcsHandler(e,t)},t.prototype.registerCsiHandler=function(e,t){return this._inputHandler.registerCsiHandler(e,t)},t.prototype.registerOscHandler=function(e,t){return this._inputHandler.registerOscHandler(e,t)},t.prototype._setup=function(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()},t.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()},t.prototype._updateOptions=function(e){var t;switch(e){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.rawOptions.windowsMode?this._enableWindowsMode():(null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)}},t.prototype._enableWindowsMode=function(){var e=this;if(!this._windowsMode){var t=[];t.push(this.onLineFeed(_.updateWindowsModeWrappedState.bind(null,this._bufferService))),t.push(this.registerCsiHandler({final:"H"},function(){return(0,_.updateWindowsModeWrappedState)(e._bufferService),!1})),this._windowsMode={dispose:function(){var e,r;try{for(var n=o(t),i=n.next();!i.done;i=n.next())i.value.dispose()}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}}}}},t}(a.Disposable);t.CoreTerminal=x},8460:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0;var r=function(){function e(){this._listeners=[],this._disposed=!1}return Object.defineProperty(e.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t){return e._listeners.push(t),{dispose:function(){if(!e._disposed)for(var r=0;r<e._listeners.length;r++)if(e._listeners[r]===t)return void e._listeners.splice(r,1)}}}),this._event},enumerable:!1,configurable:!0}),e.prototype.fire=function(e,t){for(var r=[],n=0;n<this._listeners.length;n++)r.push(this._listeners[n]);for(n=0;n<r.length;n++)r[n].call(void 0,e,t)},e.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},e}();t.EventEmitter=r,t.forwardEvent=function(e,t){return e(function(e){return t.fire(e)}
1)}},5435:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;var o,a=r(2584),s=r(7116),l=r(2015),c=r(844),u=r(8273),h=r(482),d=r(8437),f=r(8460),p=r(643),v=r(511),g=r(3734),m=r(2585),_=r(6242),y=r(6351),w=r(5941),b={"(":0,")":1,"*":2,"+":3,"-":1,".":2},x=131072;function C(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}!function(e){e[e.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",e[e.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(o=t.WindowsOptionsReportType||(t.WindowsOptionsReportType={}));var S=function(){function e(e,t,r,n){this._bufferService=e,this._coreService=t,this._logService=r,this._optionsService=n,this._data=new Uint32Array(0)}return e.prototype.hook=function(e){this._data=new Uint32Array(0)},e.prototype.put=function(e,t,r){this._data=(0,u.concat)(this._data,e.subarray(t,r))},e.prototype.unhook=function(e){if(!e)return this._data=new Uint32Array(0),!0;var t=(0,h.utf32ToString)(this._data);switch(this._data=new Uint32Array(0),t){case'"q':this._coreService.triggerDataEvent(a.C0.ESC+'P1$r0"q'+a.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(a.C0.ESC+'P1$r61;1"p'+a.C0.ESC+"\\");break;case"r":var r=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";this._coreService.triggerDataEvent(a.C0.ESC+"P1$r"+r+a.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(a.C0.ESC+"P1$r0m"+a.C0.ESC+"\\");break;case" q":var n={block:2,underline:4,bar:6}[this._optionsService.rawOptions.cursorStyle];n-=this._optionsService.rawOptions.cursorBlink?1:0,this._coreService.triggerDataEvent(a.C0.ESC+"P1$r"+n+" q"+a.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",t),this._coreService.triggerDataEvent(a.C0.ESC+"P0$r"+a.C0.ESC+"\\")}return!0},e}(),E=function(e){function t(t,r,n,i,o,c,u,p,g){void 0===g&&(g=new l.EscapeSequenceParser);var m=e.call(this)||this;m._bufferService=t,m._charsetService=r,m._coreService=n,m._dirtyRowService=i,m._logService=o,m._optionsService=c,m._coreMouseService=u,m._unicodeService=p,m._parser=g,m._parseBuffer=new Uint32Array(4096),m._stringDecoder=new h.StringToUtf32,m._utf8Decoder=new h.Utf8ToUtf32,m._workCell=new v.CellData,m._windowTitle="",m._iconName="",m._windowTitleStack=[],m._iconNameStack=[],m._curAttrData=d.DEFAULT_ATTR_DATA.clone(),m._eraseAttrDataInternal=d.DEFAULT_ATTR_DATA.clone(),m._onRequestBell=new f.EventEmitter,m._onRequestRefreshRows=new f.EventEmitter,m._onRequestReset=new f.EventEmitter,m._onRequestSendFocus=new f.EventEmitter,m._onRequestSyncScrollBar=new f.EventEmitter,m._onRequestWindowsOptionsReport=new f.EventEmitter,m._onA11yChar=new f.EventEmitter,m._onA11yTab=new f.EventEmitter,m._onCursorMove=new f.EventEmitter,m._onLineFeed=new f.EventEmitter,m._onScroll=new f.EventEmitter,m._onTitleChange=new f.EventEmitter,m._onColor=new f.EventEmitter,m._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},m._specialColors=[256,257,258],m.register(m._parser),m._activeBuffer=m._bufferService.buffer,m.register(m._bufferService.buffers.onBufferActivate(function(e){return m._activeBuffer=e.activeBuffer}
1)),m._parser.setCsiHandlerFallback(function(e,t){m._logService.debug("Unknown CSI code: ",{identifier:m._parser.identToString(e),params:t.toArray()})}),m._parser.setEscHandlerFallback(function(e){m._logService.debug("Unknown ESC code: ",{identifier:m._parser.identToString(e)})}),m._parser.setExecuteHandlerFallback(function(e){m._logService.debug("Unknown EXECUTE code: ",{code:e})}),m._parser.setOscHandlerFallback(function(e,t,r){m._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:r})}),m._parser.setDcsHandlerFallback(function(e,t,r){"HOOK"===t&&(r=r.toArray()),m._logService.debug("Unknown DCS code: ",{identifier:m._parser.identToString(e),action:t,payload:r})}),m._parser.setPrintHandler(function(e,t,r){return m.print(e,t,r)}),m._parser.registerCsiHandler({final:"@"},function(e){return m.insertChars(e)}),m._parser.registerCsiHandler({intermediates:" ",final:"@"},function(e){return m.scrollLeft(e)}),m._parser.registerCsiHandler({final:"A"},function(e){return m.cursorUp(e)}),m._parser.registerCsiHandler({intermediates:" ",final:"A"},function(e){return m.scrollRight(e)}),m._parser.registerCsiHandler({final:"B"},function(e){return m.cursorDown(e)}),m._parser.registerCsiHandler({final:"C"},function(e){return m.cursorForward(e)}),m._parser.registerCsiHandler({final:"D"},function(e){return m.cursorBackward(e)}),m._parser.registerCsiHandler({final:"E"},function(e){return m.cursorNextLine(e)}),m._parser.registerCsiHandler({final:"F"},function(e){return m.cursorPrecedingLine(e)}),m._parser.registerCsiHandler({final:"G"},function(e){return m.cursorCharAbsolute(e)}),m._parser.registerCsiHandler({final:"H"},function(e){return m.cursorPosition(e)}),m._parser.registerCsiHandler({final:"I"},function(e){return m.cursorForwardTab(e)}),m._parser.registerCsiHandler({final:"J"},function(e){return m.eraseInDisplay(e)}),m._parser.registerCsiHandler({prefix:"?",final:"J"},function(e){return m.eraseInDisplay(e)}),m._parser.registerCsiHandler({final:"K"},function(e){return m.eraseInLine(e)}),m._parser.registerCsiHandler({prefix:"?",final:"K"},function(e){return m.eraseInLine(e)}),m._parser.registerCsiHandler({final:"L"},function(e){return m.insertLines(e)}),m._parser.registerCsiHandler({final:"M"},function(e){return m.deleteLines(e)}),m._parser.registerCsiHandler({final:"P"},function(e){return m.deleteChars(e)}),m._parser.registerCsiHandler({final:"S"},function(e){return m.scrollUp(e)}),m._parser.registerCsiHandler({final:"T"},function(e){return m.scrollDown(e)}),m._parser.registerCsiHandler({final:"X"},function(e){return m.eraseChars(e)}),m._parser.registerCsiHandler({final:"Z"},function(e){return m.cursorBackwardTab(e)}),m._parser.registerCsiHandler({final:"`"},function(e){return m.charPosAbsolute(e)}),m._parser.registerCsiHandler({final:"a"},function(e){return m.hPositionRelative(e)}),m._parser.registerCsiHandler({final:"b"},function(e){return m.repeatPrecedingCharacter(e)}),m._parser.registerCsiHandler({final:"c"},function(e){return m.sendDeviceAttributesPrimary(e)}),m._parser.registerCsiHandler({prefix:">",final:"c"},function(e){return m.sendDeviceAttributesSecondary(e)}),m._parser.registerCsiHandler({final:"d"},function(e){return m.linePosAbsolute(e)}),m._parser.registerCsiHandler({final:"e"},function(e){return m.vPositionRelative(e)}),m._parser.registerCsiHandler({final:"f"},function(e){return m.hVPosition(e)}),m._parser.registerCsiHandler({final:"g"},function(e){return m.tabClear(e)}),m._parser.registerCsiHandler({final:"h"},function(e){return m.setMode(e)}),m._parser.registerCsiHandler({prefix:"?",final:"h"},function(e){return m.setModePrivate(e)}),m._parser.registerCsiHandler({final:"l"},function(e){return m.resetMode(e)}),m._parser.registerCsiHandler({prefix:"?",final:"l"},function(e){return m.resetModePrivate(e)}),m._parser.registerCsiHandler({final:"m"},function(e){return m.charAttributes(e)}),m._parser.registerCsiHandler({final:"n"},function(e){return m.deviceStatus(e)}),m._parser.registerCsiHandler({prefix:"?",final:"n"},function(e){return m.deviceStatusPrivate(e)}),m._parser.registerCsiHandler({intermediates:"!",final:"p"},function(e){return m.softReset(e)}
1),m._parser.registerCsiHandler({intermediates:" ",final:"q"},function(e){return m.setCursorStyle(e)}),m._parser.registerCsiHandler({final:"r"},function(e){return m.setScrollRegion(e)}),m._parser.registerCsiHandler({final:"s"},function(e){return m.saveCursor(e)}),m._parser.registerCsiHandler({final:"t"},function(e){return m.windowOptions(e)}),m._parser.registerCsiHandler({final:"u"},function(e){return m.restoreCursor(e)}),m._parser.registerCsiHandler({intermediates:"'",final:"}"},function(e){return m.insertColumns(e)}),m._parser.registerCsiHandler({intermediates:"'",final:"~"},function(e){return m.deleteColumns(e)}),m._parser.setExecuteHandler(a.C0.BEL,function(){return m.bell()}),m._parser.setExecuteHandler(a.C0.LF,function(){return m.lineFeed()}),m._parser.setExecuteHandler(a.C0.VT,function(){return m.lineFeed()}),m._parser.setExecuteHandler(a.C0.FF,function(){return m.lineFeed()}),m._parser.setExecuteHandler(a.C0.CR,function(){return m.carriageReturn()}),m._parser.setExecuteHandler(a.C0.BS,function(){return m.backspace()}),m._parser.setExecuteHandler(a.C0.HT,function(){return m.tab()}),m._parser.setExecuteHandler(a.C0.SO,function(){return m.shiftOut()}),m._parser.setExecuteHandler(a.C0.SI,function(){return m.shiftIn()}),m._parser.setExecuteHandler(a.C1.IND,function(){return m.index()}),m._parser.setExecuteHandler(a.C1.NEL,function(){return m.nextLine()}),m._parser.setExecuteHandler(a.C1.HTS,function(){return m.tabSet()}),m._parser.registerOscHandler(0,new _.OscHandler(function(e){return m.setTitle(e),m.setIconName(e),!0})),m._parser.registerOscHandler(1,new _.OscHandler(function(e){return m.setIconName(e)})),m._parser.registerOscHandler(2,new _.OscHandler(function(e){return m.setTitle(e)})),m._parser.registerOscHandler(4,new _.OscHandler(function(e){return m.setOrReportIndexedColor(e)})),m._parser.registerOscHandler(10,new _.OscHandler(function(e){return m.setOrReportFgColor(e)})),m._parser.registerOscHandler(11,new _.OscHandler(function(e){return m.setOrReportBgColor(e)})),m._parser.registerOscHandler(12,new _.OscHandler(function(e){return m.setOrReportCursorColor(e)})),m._parser.registerOscHandler(104,new _.OscHandler(function(e){return m.restoreIndexedColor(e)})),m._parser.registerOscHandler(110,new _.OscHandler(function(e){return m.restoreFgColor(e)})),m._parser.registerOscHandler(111,new _.OscHandler(function(e){return m.restoreBgColor(e)})),m._parser.registerOscHandler(112,new _.OscHandler(function(e){return m.restoreCursorColor(e)})),m._parser.registerEscHandler({final:"7"},function(){return m.saveCursor()}),m._parser.registerEscHandler({final:"8"},function(){return m.restoreCursor()}),m._parser.registerEscHandler({final:"D"},function(){return m.index()}),m._parser.registerEscHandler({final:"E"},function(){return m.nextLine()}),m._parser.registerEscHandler({final:"H"},function(){return m.tabSet()}),m._parser.registerEscHandler({final:"M"},function(){return m.reverseIndex()}),m._parser.registerEscHandler({final:"="},function(){return m.keypadApplicationMode()}),m._parser.registerEscHandler({final:">"},function(){return m.keypadNumericMode()}),m._parser.registerEscHandler({final:"c"},function(){return m.fullReset()}),m._parser.registerEscHandler({final:"n"},function(){return m.setgLevel(2)}),m._parser.registerEscHandler({final:"o"},function(){return m.setgLevel(3)}),m._parser.registerEscHandler({final:"|"},function(){return m.setgLevel(3)}),m._parser.registerEscHandler({final:"}"},function(){return m.setgLevel(2)}),m._parser.registerEscHandler({final:"~"},function(){return m.setgLevel(1)}),m._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return m.selectDefaultCharset()}),m._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return m.selectDefaultCharset()});var y=function(e){w._parser.registerEscHandler({intermediates:"(",final:e},function(){return m.selectCharset("("+e)}),w._parser.registerEscHandler({intermediates:")",final:e},function(){return m.selectCharset(")"+e)}),w._parser.registerEscHandler({intermediates:"*",final:e},function(){return m.selectCharset("*"+e)}),w._parser.registerEscHandler({intermediates:"+",final:e},function(){return m.selectCharset("+"+e)}),w._parser.registerEscHandler({intermediates:"-",final:e},function(){return m.selectCharset("-"+e)}),w._parser.registerEscHandler({intermediates:".",final:e},function(){return m.selectCharset("."+e)}),w._parser.registerEscHandler({intermediates:"/",final:e},function(){return m.selectCharset("/"+e)})},w=this;for(var b in s.CHARSETS)y(b);return m._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return m.screenAlignmentPattern()}),m._parser.setErrorHandler(function(e){return m._logService.error("Parsing error: ",e),e}),m._parser.registerDcsHandler({intermediates:"$",final:"q"},new S(m._bufferService,m._coreService,m._logService,m._optionsService)),m}return i(t,e),Object.defineProperty(t.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestSendFocus",{get:function(){return this._onRequestSendFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onColor",{get:function(){return this._onColor.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._preserveStack=function(e,t,r,n){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=r,this._parseStack.position=n},t.prototype._logSlowResolvingAsync=function(e){this._logService.logLevel<=m.LogLevelEnum.WARN&&Promise.race([e,new Promise(function(e,t){return setTimeout(function(){return t("#SLOW_TIMEOUT")},5e3)})]).catch(function(e){if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")})},t.prototype.parse=function(e,t){var r,n=this._activeBuffer.x,i=this._activeBuffer.y,o=0,a=this._parseStack.paused;if(a){if(r=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(r),r;n=this._parseStack.cursorStartX,i=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>x&&(o=this._parseStack.position+x)}if(this._logService.logLevel<=m.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof e?' "'+e+'"':' "'+Array.prototype.map.call(e,function(e){return String.fromCharCode(e)}).join("")+'"'),"string"==typeof e?e.split("").map(function(e){return e.charCodeAt(0)}):e),this._parseBuffer.length<e.length&&this._parseBuffer.length<x&&(this._parseBuffer=new Uint32Array(Math.min(e.length,x))),a||this._dirtyRowService.clearRange(),e.length>x)for(var s=o;s<e.length;s+=x){var l=s+x<e.length?s+x:e.length,c="string"==typeof e?this._stringDecoder.decode(e.substring(s,l),this._parseBuffer):this._utf8Decoder.decode(e.subarray(s,l),this._parseBuffer);if(r=this._parser.parse(this._parseBuffer,c))return this._preserveStack(n,i,c,s),this._logSlowResolvingAsync(r),r}else if(!a&&(c="string"==typeof e?this._stringDecoder.decode(e,this._parseBuffer):this._utf8Decoder.decode(e,this._parseBuffer),r=this._parser.parse(this._parseBuffer,c)))return this._preserveStack(n,i,c,0),this._logSlowResolvingAsync(r),r;this._activeBuffer.x===n&&this._activeBuffer.y===i||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},t.prototype.print=function(e,t,r){var n,i,o=this._charsetService.charset,a=this._optionsService.rawOptions.screenReaderMode,s=this._bufferService.cols,l=this._coreService.decPrivateModes.wraparound,c=this._coreService.modes.insertMode,u=this._curAttrData,d=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowService.markDirty(this._activeBuffer.y),this._activeBuffer.x&&r-t>0&&2===d.getWidth(this._activeBuffer.x-1)&&d.setCellFromCodePoint(this._activeBuffer.x-1,0,1,u.fg,u.bg,u.extended);for(var f=t;f<r;++f){if(n=e[f],i=this._unicodeService.wcwidth(n),n<127&&o){var v=o[String.fromCharCode(n)];v&&(n=v.charCodeAt(0))}if(a&&this._onA11yChar.fire((0,h.stringFromCodePoint)(n)),i||!this._activeBuffer.x){if(this._activeBuffer.x+i-1>=s)if(l){for(;this._activeBuffer.x<s;)d.setCellFromCodePoint(this._activeBuffer.x++,0,1,u.fg,u.bg,u.extended);this._activeBuffer.x=0,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),d=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=s-1,2===i)continue;if(c&&(d.insertCells(this._activeBuffer.x,i,this._activeBuffer.getNullCell(u),u),2===d.getWidth(s-1)&&d.setCellFromCodePoint(s-1,p.NULL_CELL_CODE,p.NULL_CELL_WIDTH,u.fg,u.bg,u.extended)),d.setCellFromCodePoint(this._activeBuffer.x++,n,i,u.fg,u.bg,u.extended),i>0)for(;--i;)d.setCellFromCodePoint(this._activeBuffer.x++,0,0,u.fg,u.bg,u.extended)}else d.getWidth(this._activeBuffer.x-1)?d.addCodepointToCell(this._activeBuffer.x-1,n):d.addCodepointToCell(this._activeBuffer.x-2,n)}r-t>0&&(d.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCo
1deAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x<s&&r-t>0&&0===d.getWidth(this._activeBuffer.x)&&!d.hasContent(this._activeBuffer.x)&&d.setCellFromCodePoint(this._activeBuffer.x,0,1,u.fg,u.bg,u.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype.registerCsiHandler=function(e,t){var r=this;return"t"!==e.final||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,function(e){return!C(e.params[0],r._optionsService.rawOptions.windowOptions)||t(e)})},t.prototype.registerDcsHandler=function(e,t){return this._parser.registerDcsHandler(e,new y.DcsHandler(t))},t.prototype.registerEscHandler=function(e,t){return this._parser.registerEscHandler(e,t)},t.prototype.registerOscHandler=function(e,t){return this._parser.registerOscHandler(e,new _.OscHandler(t))},t.prototype.bell=function(){return this._onRequestBell.fire(),!0},t.prototype.lineFeed=function(){return this._dirtyRowService.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowService.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0},t.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},t.prototype.backspace=function(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===e?void 0:e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);t.hasWidth(this._activeBuffer.x)&&!t.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},t.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0},t.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},t.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},t.prototype._restrictCursor=function(e){void 0===e&&(e=this._bufferService.cols-1),this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype._setCursor=function(e,t){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype._moveCursor=function(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)},t.prototype.cursorUp=function(e){var t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0},t.prototype.cursorDown=function(e){var t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0},t.prototype.cursorForward=function(e){return this._moveCursor(e.params[0]||1,0),!0},t.prototype.cursorBackward=function(e){return this._moveCursor(-(e.params[0]||1),0),!0},t.prototype.cursorNextLine=function(e){return this.cursorDown(e),this._activeBuffer.x=0,!0},t.prototype.cursorPrecedingLine=function(e){return this.cursorUp(e),this._activeBuffer.x=0,!0},t.prototype.cursorCharAbsolute=function(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0},t.prototype.cursorPosition=function(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0},t.prototype.charPosAbsolute=function(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0},t.prototype.hPositionRelative=function(e){return this._moveCursor(e.params[0]||1,0),!0},t.prototype.linePosAbsolute=function(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0},t.prototype.vPositionRelative=function(e){return this._moveCursor(0,e.params[0]||1),!0},t.prototype.hVPosition=function(e){return this.cursorPosition(e),!0},t.prototype.tabClear=function(e){var t=e.params[0];return 0===t?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===t&&(this._activeBuffer.tabs={}),!0},t.prototype.cursorForwardTab=function(e){if(this._activeBuffer.x>
1=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},t.prototype.cursorBackwardTab=function(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},t.prototype._eraseInBufferLine=function(e,t,r,n){void 0===n&&(n=!1);var i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i.replaceCells(t,r,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n&&(i.isWrapped=!1)},t.prototype._resetBufferLine=function(e){var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);t.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),t.isWrapped=!1},t.prototype.eraseInDisplay=function(e){var t;switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(t=this._activeBuffer.y,this._dirtyRowService.markDirty(t),this._eraseInBufferLine(t++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);t<this._bufferService.rows;t++)this._resetBufferLine(t);this._dirtyRowService.markDirty(t);break;case 1:for(t=this._activeBuffer.y,this._dirtyRowService.markDirty(t),this._eraseInBufferLine(t,0,this._activeBuffer.x+1,!0),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(t+1).isWrapped=!1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 2:for(t=this._bufferService.rows,this._dirtyRowService.markDirty(t-1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 3:var r=this._activeBuffer.lines.length-this._bufferService.rows;r>0&&(this._activeBuffer.lines.trimStart(r),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-r,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-r,0),this._onScroll.fire(0))}return!0},t.prototype.eraseInLine=function(e){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0)}return this._dirtyRowService.markDirty(this._activeBuffer.y),!0},t.prototype.insertLines=function(e){this._restrictCursor();var t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var r=this._activeBuffer.ybase+this._activeBuffer.y,n=this._bufferService.rows-1-this._activeBuffer.scrollBottom,i=this._bufferService.rows-1+this._activeBuffer.ybase-n+1;t--;)this._activeBuffer.lines.splice(i-1,1),this._activeBuffer.lines.splice(r,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},t.prototype.deleteLines=function(e){this._restrictCursor();var t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var r,n=this._activeBuffer.ybase+this._activeBuffer.y;for(r=this._bufferService.rows-1-this._activeBuffer.scrollBottom,r=this._bufferService.rows-1+this._activeBuffer.ybase-r;t--;)this._activeBuffer.lines.splice(n,1),this._activeBuffer.lines.splice(r,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},t.prototype.insertChars=function(e){this._restrictCursor();var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.insertCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},t.prototype.deleteChars=function(e){this._restrictCursor();var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.deleteCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},t.prototype.scrollUp=function(e){for(var t=e.params[0]||1;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},t.prototype.scrollDown=function(e){for(var t=e.params[0]||1;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(d.DEFAULT_ATTR_DATA));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},t.prototype.scrollLeft=function(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var t=e.params[0]||1,r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){var n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);n.deleteCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},t.prototype.scrollRight=function(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var t=e.params[0]||1,r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){var n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);n.insertCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},t.prototype.insertColumns=function(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var t=e.params[0]||1,r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){var n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);n.insertCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},t.prototype.deleteColumns=function(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var t=e.params[0]||1,r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){var n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);n.deleteCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}
1,t.prototype.eraseChars=function(e){this._restrictCursor();var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},t.prototype.repeatPrecedingCharacter=function(e){if(!this._parser.precedingCodepoint)return!0;for(var t=e.params[0]||1,r=new Uint32Array(t),n=0;n<t;++n)r[n]=this._parser.precedingCodepoint;return this.print(r,0,r.length),!0},t.prototype.sendDeviceAttributesPrimary=function(e){return e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(a.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(a.C0.ESC+"[?6c")),!0},t.prototype.sendDeviceAttributesSecondary=function(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(a.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(a.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(a.C0.ESC+"[>83;40003;0c")),!0},t.prototype._is=function(e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(e)},t.prototype.setMode=function(e){for(var t=0;t<e.length;t++)4===e.params[t]&&(this._coreService.modes.insertMode=!0);return!0},t.prototype.setModePrivate=function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,s.DEFAULT_CHARSET),this._charsetService.setgCharset(1,s.DEFAULT_CHARSET),this._charsetService.setgCharset(2,s.DEFAULT_CHARSET),this._charsetService.setgCharset(3,s.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0},t.prototype.resetMode=function(e){for(var t=0;t<e.length;t++)4===e.params[t]&&(this._coreService.modes.insertMode=!1);return!0},t.prototype.resetModePrivate=function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;
1case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),1049===e.params[t]&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0},t.prototype._updateAttrColor=function(e,t,r,n,i){return 2===t?(e|=50331648,e&=-16777216,e|=g.AttributeData.fromColorRGB([r,n,i])):5===t&&(e&=-50331904,e|=33554432|255&r),e},t.prototype._extractColor=function(e,t,r){var n=[0,0,-1,0,0,0],i=0,o=0;do{if(n[o+i]=e.params[t+o],e.hasSubParams(t+o)){var a=e.getSubParams(t+o),s=0;do{5===n[1]&&(i=1),n[o+s+1+i]=a[s]}while(++s<a.length&&s+o+1+i<n.length);break}if(5===n[1]&&o+i>=2||2===n[1]&&o+i>=5)break;n[1]&&(i=1)}while(++o+t<e.length&&o+i<n.length);for(s=2;s<n.length;++s)-1===n[s]&&(n[s]=0);switch(n[0]){case 38:r.fg=this._updateAttrColor(r.fg,n[1],n[3],n[4],n[5]);break;case 48:r.bg=this._updateAttrColor(r.bg,n[1],n[3],n[4],n[5]);break;case 58:r.extended=r.extended.clone(),r.extended.underlineColor=this._updateAttrColor(r.extended.underlineColor,n[1],n[3],n[4],n[5])}return o},t.prototype._processUnderline=function(e,t){t.extended=t.extended.clone(),(!~e||e>5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()},t.prototype.charAttributes=function(e){if(1===e.length&&0===e.params[0])return this._curAttrData.fg=d.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=d.DEFAULT_ATTR_DATA.bg,!0;for(var t,r=e.length,n=this._curAttrData,i=0;i<r;i++)(t=e.params[i])>=30&&t<=37?(n.fg&=-50331904,n.fg|=16777216|t-30):t>=40&&t<=47?(n.bg&=-50331904,n.bg|=16777216|t-40):t>=90&&t<=97?(n.fg&=-50331904,n.fg|=16777224|t-90):t>=100&&t<=107?(n.bg&=-50331904,n.bg|=16777224|t-100):0===t?(n.fg=d.DEFAULT_ATTR_DATA.fg,n.bg=d.DEFAULT_ATTR_DATA.bg):1===t?n.fg|=134217728:3===t?n.bg|=67108864:4===t?(n.fg|=268435456,this._processUnderline(e.hasSubParams(i)?e.getSubParams(i)[0]:1,n)):5===t?n.fg|=536870912:7===t?n.fg|=67108864:8===t?n.fg|=1073741824:9===t?n.fg|=2147483648:2===t?n.bg|=134217728:21===t?this._processUnderline(2,n):22===t?(n.fg&=-134217729,n.bg&=-134217729):23===t?n.bg&=-67108865:24===t?n.fg&=-268435457:25===t?n.fg&=-536870913:27===t?n.fg&=-67108865:28===t?n.fg&=-1073741825:29===t?n.fg&=2147483647:39===t?(n.fg&=-67108864,n.fg|=16777215&d.DEFAULT_ATTR_DATA.fg):49===t?(n.bg&=-67108864,n.bg|=16777215&d.DEFAULT_ATTR_DATA.bg):38===t||48===t||58===t?i+=this._extractColor(e,i,n):59===t?(n.extended=n.extended.clone(),n.extended.underlineColor=-1,n.updateExtended()):100===t?(n.fg&=-67108864,n.fg|=16777215&d.DEFAULT_ATTR_DATA.fg,n.bg&=-67108864,n.bg|=16777215&d.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",t);return!0},t.prototype.deviceStatus=function(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(a.C0.ESC+"[0n");break;case 6:var t=this._activeBuffer.y+1,r=this._activeBuffer.x+1;this._coreService.triggerDataEvent(a.C0.ESC+"["+t+";"+r+"R")}return!0},t.prototype.deviceStatusPrivate=function(e){if(6===e.params[0]){var t=this._activeBuffer.y+1,r=this._activeBuffer.x+1;this._coreService.triggerDataEvent(a.C0.ESC+"[?"+t+";"+r+"R")}return!0},t.prototype.softReset=function(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=d.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0},t.prototype.setCursorStyle=function(e){var t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var r=t%2==1;return this._optionsService.options.cursorBlink=r,!0},t.prototype.setScrollRegion=function(e){var t,r=e.params[0]||1;return(e.length<2||(t=e.params[1])>this._bufferService.rows||0===t)&&(t=this._bufferService.rows),t>r&&(this._activeBuffer.scrollTop=r-1,this._activeBuffer.scrollBottom=t-1,this._setCursor(0,0)),!0},t.prototype.windowOptions=function(e){if(!C(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;var t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(o.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(o.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(a.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},t.prototype.saveCursor=function(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0},t.prototype.restoreCursor=function(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(
1),!0},t.prototype.setTitle=function(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0},t.prototype.setIconName=function(e){return this._iconName=e,!0},t.prototype.setOrReportIndexedColor=function(e){for(var t=[],r=e.split(";");r.length>1;){var n=r.shift(),i=r.shift();if(/^\d+$/.exec(n)){var o=parseInt(n);if(0<=o&&o<256)if("?"===i)t.push({type:0,index:o});else{var a=(0,w.parseColor)(i);a&&t.push({type:1,index:o,color:a})}}}return t.length&&this._onColor.fire(t),!0},t.prototype._setOrReportSpecialColor=function(e,t){for(var r=e.split(";"),n=0;n<r.length&&!(t>=this._specialColors.length);++n,++t)if("?"===r[n])this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{var i=(0,w.parseColor)(r[n]);i&&this._onColor.fire([{type:1,index:this._specialColors[t],color:i}])}return!0},t.prototype.setOrReportFgColor=function(e){return this._setOrReportSpecialColor(e,0)},t.prototype.setOrReportBgColor=function(e){return this._setOrReportSpecialColor(e,1)},t.prototype.setOrReportCursorColor=function(e){return this._setOrReportSpecialColor(e,2)},t.prototype.restoreIndexedColor=function(e){if(!e)return this._onColor.fire([{type:2}]),!0;for(var t=[],r=e.split(";"),n=0;n<r.length;++n)if(/^\d+$/.exec(r[n])){var i=parseInt(r[n]);0<=i&&i<256&&t.push({type:2,index:i})}return t.length&&this._onColor.fire(t),!0},t.prototype.restoreFgColor=function(e){return this._onColor.fire([{type:2,index:256}]),!0},t.prototype.restoreBgColor=function(e){return this._onColor.fire([{type:2,index:257}]),!0},t.prototype.restoreCursorColor=function(e){return this._onColor.fire([{type:2,index:258}]),!0},t.prototype.nextLine=function(){return this._activeBuffer.x=0,this.index(),!0},t.prototype.keypadApplicationMode=function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0},t.prototype.keypadNumericMode=function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0},t.prototype.selectDefaultCharset=function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,s.DEFAULT_CHARSET),!0},t.prototype.selectCharset=function(e){return 2!==e.length?(this.selectDefaultCharset(),!0):("/"===e[0]||this._charsetService.setgCharset(b[e[0]],s.CHARSETS[e[1]]||s.DEFAULT_CHARSET),!0)},t.prototype.index=function(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0},t.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},t.prototype.reverseIndex=function(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){var e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0},t.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},t.prototype.reset=function(){this._curAttrData=d.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=d.DEFAULT_ATTR_DATA.clone()},t.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},t.prototype.setgLevel=function(e){return this._charsetService.setgLevel(e),!0},t.prototype.screenAlignmentPattern=function(){var e=new v.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(var t=0;t<this._bufferService.rows;++t){var r=this._activeBuffer.ybase+this._activeBuffer.y+t,n=this._activeBuffer.lines.get(r);
1n&&(n.fill(e),n.isWrapped=!1)}return this._dirtyRowService.markAllDirty(),this._setCursor(0,0),!0},t}(c.Disposable);t.InputHandler=E},844:function(e,t){var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.Disposable=void 0;var n=function(){function e(){this._disposables=[],this._isDisposed=!1}return e.prototype.dispose=function(){var e,t;this._isDisposed=!0;try{for(var n=r(this._disposables),i=n.next();!i.done;i=n.next())i.value.dispose()}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this._disposables.length=0},e.prototype.register=function(e){return this._disposables.push(e),e},e.prototype.unregister=function(e){var t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)},e}();function i(e){var t,n;try{for(var i=r(e),o=i.next();!o.done;o=i.next())o.value.dispose()}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}e.length=0}t.Disposable=n,t.disposeArray=i,t.getDisposeArrayDisposable=function(e){return{dispose:function(){return i(e)}}}},6114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.isSafari=t.isLegacyEdge=t.isFirefox=void 0;var r="undefined"==typeof navigator,n=r?"node":navigator.userAgent,i=r?"node":navigator.platform;t.isFirefox=n.includes("Firefox"),t.isLegacyEdge=n.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(n),t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(i),t.isIpad="iPad"===i,t.isIphone="iPhone"===i,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(i),t.isLinux=i.indexOf("Linux")>=0},6106:function(e,t){var r=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.SortedList=void 0;var n=function(){function e(e){this._getKey=e,this._array=[]}return e.prototype.clear=function(){this._array.length=0},e.prototype.insert=function(e){if(0!==this._array.length){var t=this._search(this._getKey(e),0,this._array.length-1);this._array.splice(t,0,e)}else this._array.push(e)},e.prototype.delete=function(e){if(0===this._array.length)return!1;var t=this._getKey(e),r=this._search(t,0,this._array.length-1);if(this._getKey(this._array[r])!==t)return!1;do{if(this._array[r]===e)return this._array.splice(r,1),!0}while(++r<this._array.length&&this._getKey(this._array[r])===t);return!1},e.prototype.getKeyIterator=function(e){var t;return r(this,function(r){switch(r.label){case 0:if(0===this._array.length)return[2];if((t=this._search(e,0,this._array.length-1))<0||t>=this._array.length)return[2];if(this._getKey(this._array[t])!==e)return[2];r.label=1;case 1:return[4,this._array[t]];case 2:r.sent(),r.label=3;case 3:if(++t<this._array.length&&this._getKey(this._array[t])===e)return[3,1];r.label=4;case 4:return[2]}})},e.prototype.values=function(){return this._array.values()},e.prototype._search=function(e,t,r){if(r<t)return t;var n=Math.floor((t+r)/2);if(this._getKey(this._array[n])>e)return this._search(e,t,n-1);if(this._getKey(this._array[n])<e)return this._search(e,n+1,r);for(;n>0&&this._getKey(this._array[n-1])===e;)n--;return n},e}();t.SortedList=n},8273:(e,t)=>{function r(e,t,r,n){if(void 0===r&&(r=0),void 0===n&&(n=e.length),r>=e.length)return e;r=(e.length+r)%e.length,n=n>=e.length?e.length:(e.length+n)%e.length;for(var i=r;i<n;++i)e[i]=t;return e}
1Object.defineProperty(t,"__esModule",{value:!0}),t.concat=t.fillFallback=t.fill=void 0,t.fill=function(e,t,n,i){return e.fill?e.fill(t,n,i):r(e,t,n,i)},t.fillFallback=r,t.concat=function(e,t){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}},9282:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;var n=r(643);t.updateWindowsModeWrappedState=function(e){var t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),r=null==t?void 0:t.get(e.cols-1),i=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);i&&r&&(i.isWrapped=r[n.CHAR_DATA_CODE_INDEX]!==n.NULL_CELL_CODE&&r[n.CHAR_DATA_CODE_INDEX]!==n.WHITESPACE_CELL_CODE)}},3734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;var r=function(){function e(){this.fg=0,this.bg=0,this.extended=new n}return e.toColorRGB=function(e){return[e>>>16&255,e>>>8&255,255&e]},e.fromColorRGB=function(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},e.prototype.clone=function(){var t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t},e.prototype.isInverse=function(){return 67108864&this.fg},e.prototype.isBold=function(){return 134217728&this.fg},e.prototype.isUnderline=function(){return 268435456&this.fg},e.prototype.isBlink=function(){return 536870912&this.fg},e.prototype.isInvisible=function(){return 1073741824&this.fg},e.prototype.isItalic=function(){return 67108864&this.bg},e.prototype.isDim=function(){return 134217728&this.bg},e.prototype.isStrikethrough=function(){return 2147483648&this.fg},e.prototype.getFgColorMode=function(){return 50331648&this.fg},e.prototype.getBgColorMode=function(){return 50331648&this.bg},e.prototype.isFgRGB=function(){return!(50331648&~this.fg)},e.prototype.isBgRGB=function(){return!(50331648&~this.bg)},e.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},e.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},e.prototype.isFgDefault=function(){return!(50331648&this.fg)},e.prototype.isBgDefault=function(){return!(50331648&this.bg)},e.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},e.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},e.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},e.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},e.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},e.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},e.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},e.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?!(50331648&~this.extended.underlineColor):this.isFgRGB()},e.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},e.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?!(50331648&this.extended.underlineColor):this.isFgDefault()},e.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},e}();t.AttributeData=r;var n=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=-1),this.underlineStyle=e,this.underlineColor=t}return e.prototype.clone=function(){return new e(this.underlineStyle,this.underlineColor)},e.prototype.isEmpty=function(){return 0===this.underlineStyle},e}();t.ExtendedAttrs=n},9092:function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};
1Object.defineProperty(t,"__esModule",{value:!0}),t.BufferStringIterator=t.Buffer=t.MAX_BUFFER_SIZE=void 0;var o=r(6349),a=r(8437),s=r(511),l=r(643),c=r(4634),u=r(4863),h=r(7116),d=r(3734);t.MAX_BUFFER_SIZE=4294967295;var f=function(){function e(e,t,r){this._hasScrollback=e,this._optionsService=t,this._bufferService=r,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=a.DEFAULT_ATTR_DATA.clone(),this.savedCharset=h.DEFAULT_CHARSET,this.markers=[],this._nullCell=s.CellData.fromCharData([0,l.NULL_CELL_CHAR,l.NULL_CELL_WIDTH,l.NULL_CELL_CODE]),this._whitespaceCell=s.CellData.fromCharData([0,l.WHITESPACE_CELL_CHAR,l.WHITESPACE_CELL_WIDTH,l.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new o.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return e.prototype.getNullCell=function(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new d.ExtendedAttrs),this._nullCell},e.prototype.getWhitespaceCell=function(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new d.ExtendedAttrs),this._whitespaceCell},e.prototype.getBlankLine=function(e,t){return new a.BufferLine(this._bufferService.cols,this.getNullCell(e),t)},Object.defineProperty(e.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows},enumerable:!1,configurable:!0}),e.prototype._getCorrectBufferLength=function(e){if(!this._hasScrollback)return e;var r=e+this._optionsService.rawOptions.scrollback;return r>t.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:r},e.prototype.fillViewportRows=function(e){if(0===this.lines.length){void 0===e&&(e=a.DEFAULT_ATTR_DATA);for(var t=this._rows;t--;)this.lines.push(this.getBlankLine(e))}},e.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new o.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},e.prototype.resize=function(e,t){var r=this.getNullCell(a.DEFAULT_ATTR_DATA),n=this._getCorrectBufferLength(t);if(n>this.lines.maxLength&&(this.lines.maxLength=n),this.lines.length>0){if(this._cols<e)for(var i=0;i<this.lines.length;i++)this.lines.get(i).resize(e,r);var o=0;if(this._rows<t)for(var s=this._rows;s<t;s++)this.lines.length<t+this.ybase&&(this._optionsService.rawOptions.windowsMode?this.lines.push(new a.BufferLine(e,r)):this.ybase>0&&this.lines.length<=this.ybase+this.y+o+1?(this.ybase--,o++,this.ydisp>0&&this.ydisp--):this.lines.push(new a.BufferLine(e,r)));else for(s=this._rows;s>t;s--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(n<this.lines.maxLength){var l=this.lines.length-n;l>0&&(this.lines.trimStart(l),this.ybase=Math.max(this.ybase-l,0),this.ydisp=Math.max(this.ydisp-l,0),this.savedY=Math.max(this.savedY-l,0)),this.lines.maxLength=n}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),o&&(this.y+=o),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(i=0;i<this.lines.length;i++)this.lines.get(i).resize(e,r);this._cols=e,this._rows=t},Object.defineProperty(e.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.rawOptions.windowsMode},enumerable:!1,configurable:!0}),e.prototype._reflow=function(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))},e.prototype._reflowLarger=function(e,t){var r=(0,c.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNull
1Cell(a.DEFAULT_ATTR_DATA));if(r.length>0){var n=(0,c.reflowLargerCreateNewLayout)(this.lines,r);(0,c.reflowLargerApplyNewLayout)(this.lines,n.layout),this._reflowLargerAdjustViewport(e,t,n.countRemoved)}},e.prototype._reflowLargerAdjustViewport=function(e,t,r){for(var n=this.getNullCell(a.DEFAULT_ATTR_DATA),i=r;i-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new a.BufferLine(e,n))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-r,0)},e.prototype._reflowSmaller=function(e,t){for(var r=this.getNullCell(a.DEFAULT_ATTR_DATA),o=[],s=0,l=this.lines.length-1;l>=0;l--){var u=this.lines.get(l);if(!(!u||!u.isWrapped&&u.getTrimmedLength()<=e)){for(var h=[u];u.isWrapped&&l>0;)u=this.lines.get(--l),h.unshift(u);var d=this.ybase+this.y;if(!(d>=l&&d<l+h.length)){var f,p=h[h.length-1].getTrimmedLength(),v=(0,c.reflowSmallerGetNewLineLengths)(h,this._cols,e),g=v.length-h.length;f=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+g):Math.max(0,this.lines.length-this.lines.maxLength+g);for(var m=[],_=0;_<g;_++){var y=this.getBlankLine(a.DEFAULT_ATTR_DATA,!0);m.push(y)}m.length>0&&(o.push({start:l+h.length+s,newLines:m}),s+=m.length),h.push.apply(h,i([],n(m),!1));var w=v.length-1,b=v[w];0===b&&(b=v[--w]);for(var x=h.length-g-1,C=p;x>=0;){var S=Math.min(C,b);if(void 0===h[w])break;if(h[w].copyCellsFrom(h[x],C-S,b-S,S,!0),0==(b-=S)&&(b=v[--w]),0==(C-=S)){x--;var E=Math.max(x,0);C=(0,c.getWrappedLineTrimmedLength)(h,E,this._cols)}}for(_=0;_<h.length;_++)v[_]<e&&h[_].setCell(v[_],r);for(var M=g-f;M-- >0;)0===this.ybase?this.y<t-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+s)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+g,this.ybase+t-1)}}}if(o.length>0){var k=[],L=[];for(_=0;_<this.lines.length;_++)L.push(this.lines.get(_));var R=this.lines.length,O=R-1,A=0,P=o[A];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+s);var T=0;for(_=Math.min(this.lines.maxLength-1,R+s-1);_>=0;_--)if(P&&P.start>O+T){for(var D=P.newLines.length-1;D>=0;D--)this.lines.set(_--,P.newLines[D]);_++,k.push({index:O+1,amount:P.newLines.length}),T+=P.newLines.length,P=o[++A]}else this.lines.set(_,L[O--]);var B=0;for(_=k.length-1;_>=0;_--)k[_].index+=B,this.lines.onInsertEmitter.fire(k[_]),B+=k[_].amount;var j=Math.max(0,R+s-this.lines.maxLength);j>0&&this.lines.onTrimEmitter.fire(j)}},e.prototype.stringIndexToBufferIndex=function(e,t,r){for(void 0===r&&(r=!1);t;){var n=this.lines.get(e);if(!n)return[-1,-1];for(var i=r?n.getTrimmedLength():n.length,o=0;o<i;++o)if(n.get(o)[l.CHAR_DATA_WIDTH_INDEX]&&(t-=n.get(o)[l.CHAR_DATA_CHAR_INDEX].length||1),t<0)return[e,o];e++}return[e,0]},e.prototype.translateBufferLineToString=function(e,t,r,n){void 0===r&&(r=0);var i=this.lines.get(e);return i?i.translateToString(t,r,n):""},e.prototype.getWrappedRangeForLine=function(e){for(var t=e,r=e;t>0&&this.lines.get(t).isWrapped;)t--;for(;r+1<this.lines.length&&this.lines.get(r+1).isWrapped;)r++;return{first:t,last:r}},e.prototype.setupTabStops=function(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.rawOptions.tabStopWidth)this.tabs[e]=!0},e.prototype.prevStop=function(e){for(null==e&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e},e.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e},e.prototype.clearMarkers=function(e){this._isClearing=!0;for(var t=0;t<this.markers.length;t++)this.markers[t].line===e&&(this.markers[t].dispose(),this.markers.splice(t--,1));this._isClearing=!1},e.prototype.clearAllMarkers=function(){this._isClearing=!0;for(var e=0;e<this.markers.length;e++)this.markers[e].dispose(),this.markers.splice(e--,1);this._isClearing=!1},e.prototype.addMarker=function(e){var t=this,r=new u.Marker(e);return this.markers.push(r),r.register(this.lines.onTrim(function(e){r.line-=e,r.line<0&&r.dispose()})),r.register(this.lines.onInsert(function(e){r.line>=e.index&&(r.line+=e.amount)})),r.register(this.lines.onDelete(function(e){r.line>=e.index&&r.line<e.index+e.amount&&r.dispose(),r.line>e.index&&(r.line-=e.amount)})),r.register(r.onDispose(function(){return t._removeMarker(r)})),r},e.prototype._removeMarker=function(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)},e.prototype.iterator=function(e,t,r,n,i){return new p(this,e,t,r,n,i)},e}();t.Buffer=f;var p=function(){function e(e,t,r,n,i,o){void 0===r&&(r=0),void 0===n&&(n=e.lines.length),void 0===i&&(i=0),void 0===o&&(o=0),this._buffer=e,this._trimRight=t,this._startIndex=r,this._endIndex=n,this._startOverscan=i,this._endOverscan=o,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return e.prototype.hasNext=function(){return this._current<this._endIndex},e.prototype.next=function(){var e=this._buffer.getWrappedRangeForLine(this._current);e.first<this._startIndex-this._startOverscan&&(e.first=this._startIndex-this._startOverscan),e.last>this._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var t="",r=e.first;r<=e.last;++r)t+=this._buffer.translateBufferLineToString(r,this._trimRight);return this._current=e.last+1,{range:e,content:t}},e}();t.BufferStringIterator=p},8437:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;var n=r(482),i=r(643),o=r(511),a=r(3734);t.DEFAULT_ATTR_DATA=Object.freeze(new a.AttributeData);var s=function(){function e(e,t,r){void 0===r&&(r=!1),this.isWrapped=r,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);for(var n=t||o.CellData.fromCharData([0,i.NULL_CELL_CHAR,i.NULL_CELL_WIDTH,i.NULL_CELL_CODE]),a=0;a<e;++a)this.setCell(a,n);this.length=e}return e.prototype.get=function(e){var t=this._data[3*e+0],r=2097151&t;return[this._data[3*e+1],2097152&t?this._combined[e]:r?(0,n.stringFromCodePoint)(r):"",t>>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):r]},e.prototype.set=function(e,t){this._data[3*e+1]=t[i.CHAR_DATA_ATTR_INDEX],t[i.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[i.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[i.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[i.CHAR_DATA_WIDTH_INDEX]<<22},e.prototype.getWidth=function(e){return this._data[3*e+0]>>22},e.prototype.hasWidth=function(e){return 12582912&this._data[3*e+0]},e.prototype.getFg=function(e){return this._data[3*e+1]},e.prototype.getBg=function(e){return this._data[3*e+2]},e.prototype.hasContent=function(e){return 4194303&this._data[3*e+0]},e.prototype.getCodePoint=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t},e.prototype.isCombined=function(e){return 2097152&this._data[3*e+0]},e.prototype.getString=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,n.stringFromCodePoint)(2097151&t):""},e.prototype.loadCell=function(e,t){var r=3*e;return t.content=this._data[r+0],t.fg=this._data[r+1],t.bg=this._data[r+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t},e.prototype.setCell=function(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg},e.prototype.setCellFromCodePoint=function(e,t,r,n,i,o){268435456&i&&(this._extendedAttrs[e]=o),this._data[3*e+0]=t|r<<22,this._data[3*e+1]=n,this._data[3*e+2]=i},e.prototype.addCodepointToCell=function(e,t){var r=this._data[3*e+0];2097152&r?this._combined[e]+=(0,n.stringFromCodePoint)(t):(2097151&r?(this._combined[e]=(0,n.stringFromCodePoint)(2097151&r)+(0,n.stringFromCodePoint)(t),r&=-2097152,r|=2097152):r=t|1<<22,this._data[3*e+0]=r)},e.prototype.insertCells=function(e,t,r,n){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new a.ExtendedAttrs),t<this.length-e){for(var i=new o.CellData,s=this.length-e-t-1;s>=0;--s)this.setCell(e+t+s,this.loadCell(e+s,i));for(s=0;s<t;++s)this.setCell(e+s,r)}else for(s=e;s<this.length;++s)this.setCell(s,r);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new a.ExtendedAttrs)},e.prototype.deleteCells=function(e,t,r,n){if(e%=this.length,t<this.length-e){for(var i=new o.CellData,s=0;s<this.length-e-t;++s)this.setCell(e+s,this.loadCell(e+t+s,i));for(s=this.length-t;s<this.length;++s)this.setCell(s,r)}else for(s=e;s<this.length;++s)this.setCell(s,r);e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new a.ExtendedAttrs),0!==this.getWidth(e)||this.hasContent(e)||this.setCellFromCodePoint(e,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new a.ExtendedAttrs)},e.prototype.replaceCells=function(e,t,r,n){for(e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new a.ExtendedAttrs),t<this.length&&2===this.getWidth(t-1)&&this.setCellFromCodePoint(t,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new a.ExtendedAttrs);e<t&&e<this.length;)this.setCell(e++,r)},e.prototype.resize=function(e,t){if(e!==this.length){if(e>
1this.length){var r=new Uint32Array(3*e);this.length&&(3*e<this._data.length?r.set(this._data.subarray(0,3*e)):r.set(this._data)),this._data=r;for(var n=this.length;n<e;++n)this.setCell(n,t)}else if(e){(r=new Uint32Array(3*e)).set(this._data.subarray(0,3*e)),this._data=r;var i=Object.keys(this._combined);for(n=0;n<i.length;n++){var o=parseInt(i[n],10);o>=e&&delete this._combined[o]}}else this._data=new Uint32Array(0),this._combined={};this.length=e}},e.prototype.fill=function(e){this._combined={},this._extendedAttrs={};for(var t=0;t<this.length;++t)this.setCell(t,e)},e.prototype.copyFrom=function(e){for(var t in this.length!==e.length?this._data=new Uint32Array(e._data):this._data.set(e._data),this.length=e.length,this._combined={},e._combined)this._combined[t]=e._combined[t];for(var t in this._extendedAttrs={},e._extendedAttrs)this._extendedAttrs[t]=e._extendedAttrs[t];this.isWrapped=e.isWrapped},e.prototype.clone=function(){var t=new e(0);for(var r in t._data=new Uint32Array(this._data),t.length=this.length,this._combined)t._combined[r]=this._combined[r];for(var r in this._extendedAttrs)t._extendedAttrs[r]=this._extendedAttrs[r];return t.isWrapped=this.isWrapped,t},e.prototype.getTrimmedLength=function(){for(var e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0},e.prototype.copyCellsFrom=function(e,t,r,n,i){var o=e._data;if(i)for(var a=n-1;a>=0;a--)for(var s=0;s<3;s++)this._data[3*(r+a)+s]=o[3*(t+a)+s];else for(a=0;a<n;a++)for(s=0;s<3;s++)this._data[3*(r+a)+s]=o[3*(t+a)+s];var l=Object.keys(e._combined);for(s=0;s<l.length;s++){var c=parseInt(l[s],10);c>=t&&(this._combined[c-t+r]=e._combined[c])}},e.prototype.translateToString=function(e,t,r){void 0===e&&(e=!1),void 0===t&&(t=0),void 0===r&&(r=this.length),e&&(r=Math.min(r,this.getTrimmedLength()));for(var o="";t<r;){var a=this._data[3*t+0],s=2097151&a;o+=2097152&a?this._combined[t]:s?(0,n.stringFromCodePoint)(s):i.WHITESPACE_CELL_CHAR,t+=a>>22||1}return o},e}();t.BufferLine=s},4841:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw new Error("Buffer range end ("+e.end.x+", "+e.end.y+") cannot be before start ("+e.start.x+", "+e.start.y+")");return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:(e,t)=>{function r(e,t,r){if(t===e.length-1)return e[t].getTrimmedLength();var n=!e[t].hasContent(r-1)&&1===e[t].getWidth(r-1),i=2===e[t+1].getWidth(0);return n&&i?r-1:r}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,n,i,o){for(var a=[],s=0;s<e.length-1;s++){var l=s,c=e.get(++l);if(c.isWrapped){for(var u=[e.get(s)];l<e.length&&c.isWrapped;)u.push(c),c=e.get(++l);if(i>=s&&i<l)s+=u.length-1;else{for(var h=0,d=r(u,h,t),f=1,p=0;f<u.length;){var v=r(u,f,t),g=v-p,m=n-d,_=Math.min(g,m);u[h].copyCellsFrom(u[f],p,d,_,!1),(d+=_)===n&&(h++,d=0),(p+=_)===v&&(f++,p=0),0===d&&0!==h&&2===u[h-1].getWidth(n-1)&&(u[h].copyCellsFrom(u[h-1],n-1,d++,1,!1),u[h-1].setCell(n-1,o))}u[h].replaceCells(d,n,o);for(var y=0,w=u.length-1;w>0&&(w>h||0===u[w].getTrimmedLength());w--)y++;y>0&&(a.push(s+u.length-y),a.push(y)),s+=u.length-1}}}return a},t.reflowLargerCreateNewLayout=function(e,t){for(var r=[],n=0,i=t[n],o=0,a=0;a<e.length;a++)if(i===a){var s=t[++n];e.onDeleteEmitter.fire({index:a-o,amount:s}),a+=s-1,o+=s,i=t[++n]}else r.push(a);return{layout:r,countRemoved:o}},t.reflowLargerApplyNewLayout=function(e,t){for(var r=[],n=0;n<t.length;n++)r.push(e.get(t[n]));for(n=0;n<r.length;n++)e.set(n,r[n]);e.length=t.length},t.reflowSmallerGetNewLineLengths=function(e,t,n){for(var i=[],o=e.map(function(n,i){return r(e,i,t)}).reduce(function(e,t){return e+t}),a=0,s=0,l=0;l<o;){if(o-l<n){i.push(o-l);break}a+=n;var c=r(e,s,t);a>c&&(a-=c,s++);var u=2===e[s].getWidth(a-1);u&&a--;var h=u?n-1:n;i.push(h),l+=h}return i},t.getWrappedLineTrimmedLength=r},5295:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;var o=r(9092),a=r(8460),s=function(e){function t(t,r){var n=e.call(this)||this;return n._optionsService=t,n._bufferService=r,n._onBufferActivate=n.register(new a.EventEmitter),n.reset(),n}return i(t,e),Object.defineProperty(t.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this._normal=new o.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new o.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(t.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),t.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},t.prototype.activateAltBuffer=function(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},t.prototype.resize=function(e,t){this._normal.resize(e,t),this._alt.resize(e,t)},t.prototype.setupTabStops=function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)},t}(r(844).Disposable);t.BufferSet=s},511:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;var o=r(482),a=r(643),s=r(3734),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.content=0,t.fg=0,t.bg=0,t.extended=new s.ExtendedAttrs,t.combinedData="",t}return i(t,e),t.fromCharData=function(e){var r=new t;return r.setFromCharData(e),r},t.prototype.isCombined=function(){return 2097152&this.content},t.prototype.getWidth=function(){return this.content>>22},t.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,o.stringFromCodePoint)(2097151&this.content):""},t.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},t.prototype.setFromCharData=function(e){this.fg=e[a.CHAR_DATA_ATTR_INDEX],this.bg=0;var t=!1;if(e[a.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[a.CHAR_DATA_CHAR_INDEX].length){var r=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=r&&r<=56319){var n=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=n&&n<=57343?this.content=1024*(r-55296)+n-56320+65536|e[a.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[a.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[a.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[a.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(s.AttributeData);t.CellData=l},643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=256,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;var o=r(8460),a=function(e){function t(r){var n=e.call(this)||this;return n.line=r,n._id=t._nextId++,n.isDisposed=!1,n._onDispose=new o.EventEmitter,n}return i(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),e.prototype.dispose.call(this))},t._nextId=1,t}(r(844).Disposable);t.Marker=a},7116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"â",a:"â",b:"â",c:"â",d:"â",e:"â",f:"°",g:"±",h:"â¤",i:"â",j:"â",k:"â",l:"â",m:"â",n:"â¼",o:"âº",p:"â»",q:"â",r:"â¼",s:"â½",t:"â",u:"â¤",v:"â´",w:"â¬",x:"â",y:"â¤",z:"â¥","{":"Ï","|":"â ","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ã","\\":"Ã","]":"Ã
","^":"Ã","`":"é","{":"ä","|":"ö","}":"Ã¥","~":"ü"},t.CHARSETS.R={"#":"£","@":"à ","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à ","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ã","\\":"Ã","]":"Ã","{":"ä","|":"ö","}":"ü","~":"Ã"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à ","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ã","[":"Ã","\\":"Ã","]":"Ã
","^":"Ã","`":"ä","{":"æ","|":"ø","}":"Ã¥","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ã","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"Ã","[":"Ã","\\":"Ã","]":"Ã
","^":"Ã","`":"é","{":"ä","|":"ö","}":"Ã¥","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à ","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.C1_ESCAPED=t.C1=t.C0=void 0,function(e){e.NUL="\0",e.SOH="�",e.STX="�",e.ETX="�",e.EOT="�",e.ENQ="�",e.ACK="�",e.BEL="�",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="�",e.SI="�",e.DLE="�",e.DC1="�",e.DC2="�",e.DC3="�",e.DC4="�",e.NAK="�",e.SYN="�",e.ETB="�",e.CAN="�",e.EM="�",e.SUB="�",e.ESC="�",e.FS="�",e.GS="�",e.RS="�",e.US="�",e.SP=" ",e.DEL="�"}(r=t.C0||(t.C0={})),(n=t.C1||(t.C1={})).PAD="Â",n.HOP="Â",n.BPH="Â",n.NBH="Â",n.IND="Â",n.NEL="Â
",n.SSA="Â",n.ESA="Â",n.HTS="Â",n.HTJ="Â",n.VTS="Â",n.PLD="Â",n.PLU="Â",n.RI="Â",n.SS2="Â",n.SS3="Â",n.DCS="Â",n.PU1="Â",n.PU2="Â",n.STS="Â",n.CCH="Â",n.MW="Â",n.SPA="Â",n.EPA="Â",n.SOS="Â",n.SGCI="Â",n.SCI="Â",n.CSI="Â",n.ST="Â",n.OSC="Â",n.PM="Â",n.APC="Â",(t.C1_ESCAPED||(t.C1_ESCAPED={})).ST=r.ESC+"\\"},7399:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;var n=r(2584),i={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,r,o){var a={type:0,cancel:!1,key:void 0},s=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?a.key=t?n.C0.ESC+"OA":n.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?a.key=t?n.C0.ESC+"OD":n.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?a.key=t?n.C0.ESC+"OC":n.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(a.key=t?n.C0.ESC+"OB":n.C0.ESC+"[B");break;case 8:if(e.shiftKey){a.key=n.C0.BS;break}if(e.altKey){a.key=n.C0.ESC+n.C0.DEL;break}a.key=n.C0.DEL;break;case 9:if(e.shiftKey){a.key=n.C0.ESC+"[Z";break}a.key=n.C0.HT,a.cancel=!0;break;case 13:a.key=e.altKey?n.C0.ESC+n.C0.CR:n.C0.CR,a.cancel=!0;break;
1case 27:a.key=n.C0.ESC,e.altKey&&(a.key=n.C0.ESC+n.C0.ESC),a.cancel=!0;break;case 37:if(e.metaKey)break;s?(a.key=n.C0.ESC+"[1;"+(s+1)+"D",a.key===n.C0.ESC+"[1;3D"&&(a.key=n.C0.ESC+(r?"b":"[1;5D"))):a.key=t?n.C0.ESC+"OD":n.C0.ESC+"[D";break;case 39:if(e.metaKey)break;s?(a.key=n.C0.ESC+"[1;"+(s+1)+"C",a.key===n.C0.ESC+"[1;3C"&&(a.key=n.C0.ESC+(r?"f":"[1;5C"))):a.key=t?n.C0.ESC+"OC":n.C0.ESC+"[C";break;case 38:if(e.metaKey)break;s?(a.key=n.C0.ESC+"[1;"+(s+1)+"A",r||a.key!==n.C0.ESC+"[1;3A"||(a.key=n.C0.ESC+"[1;5A")):a.key=t?n.C0.ESC+"OA":n.C0.ESC+"[A";break;case 40:if(e.metaKey)break;s?(a.key=n.C0.ESC+"[1;"+(s+1)+"B",r||a.key!==n.C0.ESC+"[1;3B"||(a.key=n.C0.ESC+"[1;5B")):a.key=t?n.C0.ESC+"OB":n.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(a.key=n.C0.ESC+"[2~");break;case 46:a.key=s?n.C0.ESC+"[3;"+(s+1)+"~":n.C0.ESC+"[3~";break;case 36:a.key=s?n.C0.ESC+"[1;"+(s+1)+"H":t?n.C0.ESC+"OH":n.C0.ESC+"[H";break;case 35:a.key=s?n.C0.ESC+"[1;"+(s+1)+"F":t?n.C0.ESC+"OF":n.C0.ESC+"[F";break;case 33:e.shiftKey?a.type=2:e.ctrlKey?a.key=n.C0.ESC+"[5;"+(s+1)+"~":a.key=n.C0.ESC+"[5~";break;case 34:e.shiftKey?a.type=3:e.ctrlKey?a.key=n.C0.ESC+"[6;"+(s+1)+"~":a.key=n.C0.ESC+"[6~";break;case 112:a.key=s?n.C0.ESC+"[1;"+(s+1)+"P":n.C0.ESC+"OP";break;case 113:a.key=s?n.C0.ESC+"[1;"+(s+1)+"Q":n.C0.ESC+"OQ";break;case 114:a.key=s?n.C0.ESC+"[1;"+(s+1)+"R":n.C0.ESC+"OR";break;case 115:a.key=s?n.C0.ESC+"[1;"+(s+1)+"S":n.C0.ESC+"OS";break;case 116:a.key=s?n.C0.ESC+"[15;"+(s+1)+"~":n.C0.ESC+"[15~";break;case 117:a.key=s?n.C0.ESC+"[17;"+(s+1)+"~":n.C0.ESC+"[17~";break;case 118:a.key=s?n.C0.ESC+"[18;"+(s+1)+"~":n.C0.ESC+"[18~";break;case 119:a.key=s?n.C0.ESC+"[19;"+(s+1)+"~":n.C0.ESC+"[19~";break;case 120:a.key=s?n.C0.ESC+"[20;"+(s+1)+"~":n.C0.ESC+"[20~";break;case 121:a.key=s?n.C0.ESC+"[21;"+(s+1)+"~":n.C0.ESC+"[21~";break;case 122:a.key=s?n.C0.ESC+"[23;"+(s+1)+"~":n.C0.ESC+"[23~";break;case 123:a.key=s?n.C0.ESC+"[24;"+(s+1)+"~":n.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(r&&!o||!e.altKey||e.metaKey)!r||e.altKey||e.ctrlKey||e.shiftKey||!e.metaKey?e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&1===e.key.length?a.key=e.key:e.key&&e.ctrlKey&&("_"===e.key&&(a.key=n.C0.US),"@"===e.key&&(a.key=n.C0.NUL)):65===e.keyCode&&(a.type=1);else{var l=i[e.keyCode],c=null==l?void 0:l[e.shiftKey?1:0];if(c)a.key=n.C0.ESC+c;else if(e.keyCode>=65&&e.keyCode<=90){var u=e.ctrlKey?e.keyCode-64:e.keyCode+32,h=String.fromCharCode(u);e.shiftKey&&(h=h.toUpperCase()),a.key=n.C0.ESC+h}else"Dead"===e.key&&e.code.startsWith("Key")&&(h=e.code.slice(3,4),e.shiftKey||(h=h.toLowerCase()),a.key=n.C0.ESC+h,a.cancel=!0)}else e.keyCode>=65&&e.keyCode<=90?a.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?a.key=n.C0.NUL:e.keyCode>=51&&e.keyCode<=55?a.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?a.key=n.C0.DEL:219===e.keyCode?a.key=n.C0.ESC:220===e.keyCode?a.key=n.C0.FS:221===e.keyCode&&(a.key=n.C0.GS)}return a}},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=e.length);for(var n="",i=t;i<r;++i){var o=e[i];o>65535?(o-=65536,n+=String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):n+=String.fromCharCode(o)}return n};var r=function(){function e(){this._interim=0}return e.prototype.clear=function(){this._interim=0},e.prototype.decode=function(e,t){var r=e.length;if(!r)return 0;var n=0,i=0;this._interim&&(56320<=(s=e.charCodeAt(i++))&&s<=57343?t[n++]=1024*(this._interim-55296)+s-56320+65536:(t[n++]=this._interim,t[n++]=s),this._interim=0);for(var o=i;o<r;++o){var a=e.charCodeAt(o);if(55296<=a&&a<=56319){if(++o>=r)return this._interim=a,n;var s;56320<=(s=e.charCodeAt(o))&&s<=57343?t[n++]=1024*(a-55296)+s-56320+65536:(t[n++]=a,t[n++]=s)}else 65279!==a&&(t[n++]=a)}return n},e}();t.StringToUtf32=r;var n=function(){function e(){this.interim=new Uint8Array(3)}return e.prototype.clear=function(){this.interim.fill(0)},e.prototype.decode=function(e,t){var r=e.length;if(!r)return 0;var n,i,o,a,s=0,l=0,c=0;if(this.interim[0]){var u=!1,h=this.interim[0];h&=192==(224&h)?31:224==(240&h)?15:7;for(var d=0,f=void 0;(f=63&this.interim[++d])&&d<4;)h<<=6,h|=f;for(var p=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,v=p-d;c<v;){if(c>=r)return 0;if(128!=(192&(f=e[c++]))){c--,u=!0;break}this.interim[d++]=f,h<<=6,h|=63&f}u||(2===p?h<128?c--:t[s++]=h:3===p?h<2048||h>=55296&&h<=57343||65279===h||(t[s++]=h):h<65536||h>1114111||(t[s++]=h)),this.interim.fill(0)}for(var g=r-4,m=c;m<r;){for(;!(!(m<g)||128&(n=e[m])||128&(i=e[m+1])||128&(o=e[m+2])||128&(a=e[m+3]));)t[s++]=n,t[s++]=i,t[s++]=o,t[s++]=a,m+=4;if((n=e[m++])<128)t[s++]=n;else if(192==(224&n)){if(m>=r)return this.interim[0]=n,s;if(128!=(192&(i=e[m++]))){m--;continue}
1if((l=(31&n)<<6|63&i)<128){m--;continue}t[s++]=l}else if(224==(240&n)){if(m>=r)return this.interim[0]=n,s;if(128!=(192&(i=e[m++]))){m--;continue}if(m>=r)return this.interim[0]=n,this.interim[1]=i,s;if(128!=(192&(o=e[m++]))){m--;continue}if((l=(15&n)<<12|(63&i)<<6|63&o)<2048||l>=55296&&l<=57343||65279===l)continue;t[s++]=l}else if(240==(248&n)){if(m>=r)return this.interim[0]=n,s;if(128!=(192&(i=e[m++]))){m--;continue}if(m>=r)return this.interim[0]=n,this.interim[1]=i,s;if(128!=(192&(o=e[m++]))){m--;continue}if(m>=r)return this.interim[0]=n,this.interim[1]=i,this.interim[2]=o,s;if(128!=(192&(a=e[m++]))){m--;continue}if((l=(7&n)<<18|(63&i)<<12|(63&o)<<6|63&a)<65536||l>1114111)continue;t[s++]=l}}return s},e}();t.Utf8ToUtf32=n},225:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;var n,i=r(8273),o=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],a=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],s=function(){function e(){if(this.version="6",!n){n=new Uint8Array(65536),(0,i.fill)(n,1),n[0]=0,(0,i.fill)(n,0,1,32),(0,i.fill)(n,0,127,160),(0,i.fill)(n,2,4352,4448),n[9001]=2,n[9002]=2,(0,i.fill)(n,2,11904,42192),n[12351]=1,(0,i.fill)(n,2,44032,55204),(0,i.fill)(n,2,63744,64256),(0,i.fill)(n,2,65040,65050),(0,i.fill)(n,2,65072,65136),(0,i.fill)(n,2,65280,65377),(0,i.fill)(n,2,65504,65511);for(var e=0;e<o.length;++e)(0,i.fill)(n,0,o[e][0],o[e][1]+1)}}return e.prototype.wcwidth=function(e){return e<32?0:e<127?1:e<65536?n[e]:function(e,t){var r,n=0,i=t.length-1;if(e<t[0][0]||e>t[i][1])return!1;for(;i>=n;)if(e>t[r=n+i>>1][1])n=r+1;else{if(!(e<t[r][0]))return!0;i=r-1}return!1}(e,a)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1},e}();t.UnicodeV6=s},5981:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;var n=r(8460),i="undefined"==typeof queueMicrotask?function(e){Promise.resolve().then(e)}:queueMicrotask,o=function(){function e(e){this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._onWriteParsed=new n.EventEmitter}return Object.defineProperty(e.prototype,"onWriteParsed",{get:function(){return this._onWriteParsed.event},enumerable:!1,configurable:!0}),e.prototype.writeSync=function(e,t){if(void 0!==t&&this._syncCalls>t)this._syncCalls=0;else if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var r;for(this._isSyncWriting=!0;r=this._writeBuffer.shift();){this._action(r);var n=this._callbacks.shift();n&&n()}
1this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},e.prototype.write=function(e,t){var r=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return r._innerWrite()})),this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)},e.prototype._innerWrite=function(e,t){var r=this;void 0===e&&(e=0),void 0===t&&(t=!0);for(var n=e||Date.now();this._writeBuffer.length>this._bufferOffset;){var o=this._writeBuffer[this._bufferOffset],a=this._action(o,t);if(a)return void a.catch(function(e){return i(function(){throw e}),Promise.resolve(!1)}).then(function(e){return Date.now()-n>=12?setTimeout(function(){return r._innerWrite(0,e)}):r._innerWrite(n,e)});var s=this._callbacks[this._bufferOffset];if(s&&s(),this._bufferOffset++,this._pendingData-=o.length,Date.now()-n>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return r._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()},e}();t.WriteBuffer=o},5941:function(e,t){var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;var n=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,i=/^[\da-f]+$/;function o(e,t){var r=e.toString(16),n=r.length<2?"0"+r:r;switch(t){case 4:return r[0];case 8:return n;case 12:return(n+n).slice(0,3);default:return n+n}}t.parseColor=function(e){if(e){var t=e.toLowerCase();if(0===t.indexOf("rgb:")){t=t.slice(4);var r=n.exec(t);if(r){var o=r[1]?15:r[4]?255:r[7]?4095:65535;return[Math.round(parseInt(r[1]||r[4]||r[7]||r[10],16)/o*255),Math.round(parseInt(r[2]||r[5]||r[8]||r[11],16)/o*255),Math.round(parseInt(r[3]||r[6]||r[9]||r[12],16)/o*255)]}}else if(0===t.indexOf("#")&&(t=t.slice(1),i.exec(t)&&[3,6,9,12].includes(t.length))){for(var a=t.length/3,s=[0,0,0],l=0;l<3;++l){var c=parseInt(t.slice(a*l,a*l+a),16);s[l]=1===a?c<<4:2===a?c:3===a?c>>4:c>>8}return s}}},t.toRgbString=function(e,t){void 0===t&&(t=16);var n=r(e,3),i=n[0],a=n[1],s=n[2];return"rgb:"+o(i,t)+"/"+o(a,t)+"/"+o(s,t)}},5770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;var n=r(482),i=r(8742),o=r(5770),a=[],s=function(){function e(){this._handlers=Object.create(null),this._active=a,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=a},e.prototype.registerHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var r=this._handlers[e];return r.push(t),{dispose:function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.reset=function(){if(this._active.length)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=a,this._ident=0},e.prototype.hook=function(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||a,this._active.length)for(var r=this._active.length-1;r>=0;r--)this._active[r].hook(t);else this._handlerFb(this._ident,"HOOK",t)},e.prototype.put=function(e,t,r){if(this._active.length)for(var i=this._active.length-1;i>=0;i--)this._active[i].put(e,t,r);else this._handlerFb(this._ident,"PUT",(0,n.utf32ToString)(e,t,r))},e.prototype.unhook=function(e,t){if(void 0===t&&(t=!0),this._active.length){var r=!1,n=this._active.length-1,i=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,r=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&!1===r){for(;n>=0&&!0!==(r=this._active[n].unhook(e));n--)if(r instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,r;n--}for(;n>=0;n--)if((r=this._active[n].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,r}else this._handlerFb(this._ident,"UNHOOK",e);this._active=a,this._ident=0},e}();t.DcsParser=s;var l=new i.Params;l.addParam(0);var c=function(){function e(e){this._handler=e,this._data="",this._params=l,this._hitLimit=!1}return e.prototype.hook=function(e){this._params=e.length>1||e.params[0]?e.clone():l,this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,r){this._hitLimit||(this._data+=(0,n.utf32ToString)(e,t,r),this._data.length>o.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.unhook=function(e){var t=this,r=!1;if(this._hitLimit)r=!1;else if(e&&(r=this._handler(this._data,this._params))instanceof Promise)return r.then(function(e){return t._params=l,t._data="",t._hitLimit=!1,e});return this._params=l,this._data="",this._hitLimit=!1,r},e}();t.DcsHandler=c},2015:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;var o=r(844),a=r(8273),s=r(8742),l=r(6242),c=r(6351),u=function(){function e(e){this.table=new Uint8Array(e)}return e.prototype.setDefault=function(e,t){(0,a.fill)(this.table,e<<4|t)},e.prototype.add=function(e,t,r,n){this.table[t<<8|e]=r<<4|n},e.prototype.addMany=function(e,t,r,n){for(var i=0;i<e.length;i++)this.table[t<<8|e[i]]=r<<4|n},e}();t.TransitionTable=u;var h=160;t.VT500_TRANSITION_TABLE=function(){var e=new u(4095),t=Array.apply(null,Array(256)).map(function(e,t){return t}),r=function(e,r){return t.slice(e,r)},n=r(32,127),i=r(0,24);i.push(25),i.push.apply(i,r(28,32));var o,a=r(0,14);for(o in e.setDefault(1,0),e.addMany(n,0,2,0),a)e.addMany([24,26,153,154],o,3,0),e.addMany(r(128,144),o,3,0),e.addMany(r(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(i,0,3,0),e.addMany(i,1,3,1),e.add(127,1,0,1),e.addMany(i,8,0,8),e.addMany(i,3,3,3),e.add(127,3,0,3),e.addMany(i,4,3,4),e.add(127,4,0,4),e.addMany(i,6,3,6),e.addMany(i,5,3,5),e.add(127,5,0,5),e.addMany(i,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(n,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(r(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(n,7,0,7),e.addMany(i,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(r(64,127),3,7,0),e.addMany(r(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(r(48,60),4,8,4),e.addMany(r(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(r(32,64),6,0,6),e.add(127,6,0,6),e.addMany(r(64,127),6,0,0),e.addMany(r(32,48),3,9,5),e.addMany(r(32,48),5,9,5),e.addMany(r(48,64),5,0,6),e.addMany(r(64,127),5,7,0),e.addMany(r(32,48),4,9,5),e.addMany(r(32,48),1,9,2),e.addMany(r(32,48),2,9,2),e.addMany(r(48,127),2,10,0),e.addMany(r(48,80),1,10,0),e.addMany(r(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(r(96,127),1,10,0),e.add(80,1,11,9),e.addMany(i,9,0,9),e.add(127,9,0,9),e.addMany(r(28,32),9,0,9),e.addMany(r(32,48),9,9,12),e.addMany(r(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(i,11,0,11),e.addMany(r(32,128),11,0,11),e.addMany(r(28,32),11,0,11),e.addMany(i,10,0,10),e.add(127,10,0,10),e.addMany(r(28,32),10,0,10),e.addMany(r(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(r(32,48),10,9,12),e.addMany(i,12,0,12),e.add(127,12,0,12),e.addMany(r(28,32),12,0,12),e.addMany(r(32,48),12,9,12),e.addMany(r(48,64),12,0,11),e.addMany(r(64,127),12,12,13),e.addMany(r(64,127),10,12,13),e.addMany(r(64,127),9,12,13),e.addMany(i,13,13,13),e.addMany(n,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(h,0,2,0),e.add(h,8,5,8),e.add(h,6,0,6),e.add(h,11,0,11),e.add(h,13,13,13),e}();var d=function(e){function r(r){void 0===r&&(r=t.VT500_TRANSITION_TABLE);var n=e.call(this)||this;return n._transitions=r,n._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},n.initialState=0,n.currentState=n.initialState,n._params=new s.Params,n._params.addParam(0),n._collect=0,n.precedingCodepoint=0,n._printHandlerFb=function(e,t,r){},n._executeHandlerFb=function(e){},n._csiHandlerFb=function(e,t){},n._escHandlerFb=function(e){},n._errorHandlerFb=function(e){return e},n._printHandler=n._printHandlerFb,n._executeHandlers=Object.create(null),n._csiHandlers=Object.create(null),n._escHandlers=Object.create(null),n._oscParser=new l.OscParser,n._dcsParser=new c.DcsParser,n._errorHandler=n._errorHandlerFb,n.registerEscHandler({final:"\\"},function(){return!0}),n}return i(r,e),r.prototype._identifier=function(e,t){void 0===t&&(t=[64,126]);var r=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");
1if((r=e.prefix.charCodeAt(0))&&60>r||r>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var n=0;n<e.intermediates.length;++n){var i=e.intermediates.charCodeAt(n);if(32>i||i>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");r<<=8,r|=i}}if(1!==e.final.length)throw new Error("final must be a single byte");var o=e.final.charCodeAt(0);if(t[0]>o||o>t[1])throw new Error("final must be in range "+t[0]+" .. "+t[1]);return(r<<=8)|o},r.prototype.identToString=function(e){for(var t=[];e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")},r.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},r.prototype.setPrintHandler=function(e){this._printHandler=e},r.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},r.prototype.registerEscHandler=function(e,t){var r=this._identifier(e,[48,126]);void 0===this._escHandlers[r]&&(this._escHandlers[r]=[]);var n=this._escHandlers[r];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},r.prototype.clearEscHandler=function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]},r.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},r.prototype.setExecuteHandler=function(e,t){this._executeHandlers[e.charCodeAt(0)]=t},r.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},r.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},r.prototype.registerCsiHandler=function(e,t){var r=this._identifier(e);void 0===this._csiHandlers[r]&&(this._csiHandlers[r]=[]);var n=this._csiHandlers[r];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},r.prototype.clearCsiHandler=function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]},r.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},r.prototype.registerDcsHandler=function(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)},r.prototype.clearDcsHandler=function(e){this._dcsParser.clearHandler(this._identifier(e))},r.prototype.setDcsHandlerFallback=function(e){this._dcsParser.setHandlerFallback(e)},r.prototype.registerOscHandler=function(e,t){return this._oscParser.registerHandler(e,t)},r.prototype.clearOscHandler=function(e){this._oscParser.clearHandler(e)},r.prototype.setOscHandlerFallback=function(e){this._oscParser.setHandlerFallback(e)},r.prototype.setErrorHandler=function(e){this._errorHandler=e},r.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},r.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])},r.prototype._preserveStack=function(e,t,r,n,i){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=r,this._parseStack.transition=n,this._parseStack.chunkPos=i},r.prototype.parse=function(e,t,r){var n,i=0,o=0,a=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,a=this._parseStack.chunkPos+1;else{if(void 0===r||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var s=this._parseStack.handlers,l=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===r&&l>-1)for(;l>=0&&!0!==(n=s[l](this._params));l--)if(n instanceof Promise)return this._parseStack.handlerPos=l,n;this._parseStack.handlers=[];break;case 4:if(!1===r&&l>-1)for(;l>=0&&!0!==(n=s[l]());l--)if(n instanceof Promise)return this._parseStack.handlerPos=l,n;this._parseStack.handlers=[];break;case 6:if(i=e[this._parseStack.chunkPos],n=this._dcsParser.unhook(24!==i&&26!==i,r))return n;27===i&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(i=e[this._parseStack.chunkPos],n=this._oscParser.end(24!==i&&26!==i,r))return n;27===i&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,a=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var c=a;c<t;++c){switch(i=e[c],(o=this._transitions.table[this.currentState<<8|(i<160?i:h)])>>4){case 2:for(var u=c+1;;++u){if(u>=t||(i=e[u])<32||i>126&&i<h){this._printHandler(e,c,u),c=u-1;break}if(++u>=t||(i=e[u])<32||i>126&&i<h){this._printHandler(e,c,u),c=u-1;break}if(++u>=t||(i=e[u])<32||i>126&&i<h){this._printHandler(e,c,u),c=u-1;break}if(++u>=t||(i=e[u])<32||i>126&&i<h){this._printHandler(e,c,u),c=u-1;break}}break;case 3:this._executeHandlers[i]?this._executeHandlers[i]():this._executeHandlerFb(i),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:c,code:i,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:for(var d=(s=this._csiHandlers[this._collect<<8|i])?s.length-1:-1;d>=0&&!0!==(n=s[d](this._params));d--)if(n instanceof Promise)return this._preserveStack(3,s,d,o,c),n;d<0&&this._csiHandlerFb(this._collect<<8|i,this._params),this.precedingCodepoint=0;break;case 8:do{switch(i){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;
1default:this._params.addDigit(i-48)}}while(++c<t&&(i=e[c])>47&&i<60);c--;break;case 9:this._collect<<=8,this._collect|=i;break;case 10:for(var f=this._escHandlers[this._collect<<8|i],p=f?f.length-1:-1;p>=0&&!0!==(n=f[p]());p--)if(n instanceof Promise)return this._preserveStack(4,f,p,o,c),n;p<0&&this._escHandlerFb(this._collect<<8|i),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|i,this._params);break;case 13:for(var v=c+1;;++v)if(v>=t||24===(i=e[v])||26===i||27===i||i>127&&i<h){this._dcsParser.put(e,c,v),c=v-1;break}break;case 14:if(n=this._dcsParser.unhook(24!==i&&26!==i))return this._preserveStack(6,[],0,o,c),n;27===i&&(o|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(var g=c+1;;g++)if(g>=t||(i=e[g])<32||i>127&&i<h){this._oscParser.put(e,c,g),c=g-1;break}break;case 6:if(n=this._oscParser.end(24!==i&&26!==i))return this._preserveStack(5,[],0,o,c),n;27===i&&(o|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&o}},r}(o.Disposable);t.EscapeSequenceParser=d},6242:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;var n=r(5770),i=r(482),o=[],a=function(){function e(){this._state=0,this._active=o,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return e.prototype.registerHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var r=this._handlers[e];return r.push(t),{dispose:function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=o},e.prototype.reset=function(){if(2===this._state)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=o,this._id=-1,this._state=0},e.prototype._start=function(){if(this._active=this._handlers[this._id]||o,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].start();else this._handlerFb(this._id,"START")},e.prototype._put=function(e,t,r){if(this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].put(e,t,r);else this._handlerFb(this._id,"PUT",(0,i.utf32ToString)(e,t,r))},e.prototype.start=function(){this.reset(),this._state=1},e.prototype.put=function(e,t,r){if(3!==this._state){if(1===this._state)for(;t<r;){var n=e[t++];if(59===n){this._state=2,this._start();break}if(n<48||57<n)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+n-48}2===this._state&&r-t>0&&this._put(e,t,r)}},e.prototype.end=function(e,t){if(void 0===t&&(t=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var r=!1,n=this._active.length-1,i=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,r=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&!1===r){for(;n>=0&&!0!==(r=this._active[n].end(e));n--)if(r instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,r;n--}for(;n>=0;n--)if((r=this._active[n].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,r}else this._handlerFb(this._id,"END",e);this._active=o,this._id=-1,this._state=0}},e}();t.OscParser=a;var s=function(){function e(e){this._handler=e,this._data="",this._hitLimit=!1}return e.prototype.start=function(){this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,r){this._hitLimit||(this._data+=(0,i.utf32ToString)(e,t,r),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.end=function(e){var t=this,r=!1;if(this._hitLimit)r=!1;else if(e&&(r=this._handler(this._data))instanceof Promise)return r.then(function(e){return t._data="",t._hitLimit=!1,e});return this._data="",this._hitLimit=!1,r},e}();t.OscHandler=s},8742:(e,t)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;var r=2147483647,n=function(){function e(e,t){if(void 0===e&&(e=32),void 0===t&&(t=32),this.maxLength=e,this.maxSubParamsLength=t,t>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return e.fromArray=function(t){var r=new e;if(!t.length)return r;for(var n=Array.isArray(t[0])?1:0;n<t.length;++n){var i=t[n];if(Array.isArray(i))for(var o=0;o<i.length;++o)r.addSubParam(i[o]);else r.addParam(i)}return r},e.prototype.clone=function(){var t=new e(this.maxLength,this.maxSubParamsLength);return t.params.set(this.params),t.length=this.length,t._subParams.set(this._subParams),t._subParamsLength=this._subParamsLength,t._subParamsIdx.set(this._subParamsIdx),t._rejectDigits=this._rejectDigits,t._rejectSubDigits=this._rejectSubDigits,t._digitIsSub=this._digitIsSub,t},e.prototype.toArray=function(){for(var e=[],t=0;t<this.length;++t){e.push(this.params[t]);var r=this._subParamsIdx[t]>>8,n=255&this._subParamsIdx[t];n-r>0&&e.push(Array.prototype.slice.call(this._subParams,r,n))}return e},e.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},e.prototype.addParam=function(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>r?r:e}},e.prototype.addSubParam=function(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>r?r:e,this._subParamsIdx[this.length-1]++}},e.prototype.hasSubParams=function(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0},e.prototype.getSubParams=function(e){var t=this._subParamsIdx[e]>>8,r=255&this._subParamsIdx[e];return r-t>0?this._subParams.subarray(t,r):null},e.prototype.getSubParamsAll=function(){for(var e={},t=0;t<this.length;++t){var r=this._subParamsIdx[t]>>8,n=255&this._subParamsIdx[t];n-r>0&&(e[t]=this._subParams.slice(r,n))}return e},e.prototype.addDigit=function(e){var t;if(!(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var n=this._digitIsSub?this._subParams:this.params,i=n[t-1];n[t-1]=~i?Math.min(10*i+e,r):e}},e}();t.Params=n},5741:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0;var r=function(){function e(){this._addons=[]}return e.prototype.dispose=function(){for(var e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()},e.prototype.loadAddon=function(e,t){var r=this,n={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(n),t.dispose=function(){return r._wrappedAddonDispose(n)},t.activate(e)},e.prototype._wrappedAddonDispose=function(e){if(!e.isDisposed){for(var t=-1,r=0;r<this._addons.length;r++)if(this._addons[r]===e){t=r;break}if(-1===t)throw new Error("Could not dispose an addon that has not been loaded");e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}},e}();t.AddonManager=r},8771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;var n=r(3785),i=r(511),o=function(){function e(e,t){this._buffer=e,this.type=t}return e.prototype.init=function(e){return this._buffer=e,this},Object.defineProperty(e.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseY",{get:function(){return this._buffer.ybase}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),e.prototype.getLine=function(e){var t=this._buffer.lines.get(e);if(t)return new n.BufferLineApiView(t)},e.prototype.getNullCell=function(){return new i.CellData},e}();t.BufferApiView=o},3785:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;var n=r(511),i=function(){function e(e){this._line=e}return Object.defineProperty(e.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),e.prototype.getCell=function(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new n.CellData)},e.prototype.translateToString=function(e,t,r){return this._line.translateToString(e,t,r)},e}();t.BufferLineApiView=i},8285:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;var n=r(8771),i=r(8460),o=function(){function e(e){var t=this;this._core=e,this._onBufferChange=new i.EventEmitter,this._normal=new n.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new n.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return t._onBufferChange.fire(t.active)})}return Object.defineProperty(e.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),e}();t.BufferNamespaceApi=o},7975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0;var r=function(){function e(e){this._core=e}return e.prototype.registerCsiHandler=function(e,t){return this._core.registerCsiHandler(e,function(e){return t(e.toArray())})},e.prototype.addCsiHandler=function(e,t){return this.registerCsiHandler(e,t)},e.prototype.registerDcsHandler=function(e,t){return this._core.registerDcsHandler(e,function(e,r){return t(e,r.toArray())})},e.prototype.addDcsHandler=function(e,t){return this.registerDcsHandler(e,t)},e.prototype.registerEscHandler=function(e,t){return this._core.registerEscHandler(e,t)},e.prototype.addEscHandler=function(e,t){return this.registerEscHandler(e,t)},e.prototype.registerOscHandler=function(e,t){return this._core.registerOscHandler(e,t)},e.prototype.addOscHandler=function(e,t){return this.registerOscHandler(e,t)},e}();t.ParserApi=r},7090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0;var r=function(){function e(e){this._core=e}return e.prototype.register=function(e){this._core.unicodeService.register(e)},Object.defineProperty(e.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(e){this._core.unicodeService.activeVersion=e},enumerable:!1,configurable:!0}),e}();t.UnicodeApi=r},744:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;var s=r(2585),l=r(5295),c=r(8460),u=r(844);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;var h=function(e){function r(r){var n=e.call(this)||this;return n._optionsService=r,n.isUserScrolling=!1,n._onResize=new c.EventEmitter,n._onScroll=new c.EventEmitter,n.cols=Math.max(r.rawOptions.cols||0,t.MINIMUM_COLS),n.rows=Math.max(r.rawOptions.rows||0,t.MINIMUM_ROWS),n.buffers=new l.BufferSet(r,n),n}return i(r,e),Object.defineProperty(r.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),r.prototype.dispose=function(){e.prototype.dispose.call(this),this.buffers.dispose()},r.prototype.resize=function(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:e,rows:t})},r.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},r.prototype.scroll=function(e,t){void 0===t&&(t=!1);var r,n=this.buffer;(r=this._cachedBlankLine)&&r.length===this.cols&&r.getFg(0)===e.fg&&r.getBg(0)===e.bg||(r=n.getBlankLine(e,t),this._cachedBlankLine=r),r.isWrapped=t;var i=n.ybase+n.scrollTop,o=n.ybase+n.scrollBottom;if(0===n.scrollTop){var a=n.lines.isFull;o===n.lines.length-1?a?n.lines.recycle().copyFrom(r):n.lines.push(r.clone()):n.lines.splice(o+1,0,r.clone()),a?this.isUserScrolling&&(n.ydisp=Math.max(n.ydisp-1,0)):(n.ybase++,this.isUserScrolling||n.ydisp++)}else{var s=o-i+1;n.lines.shiftElements(i+1,s-1,-1),n.lines.set(o,r.clone())}this.isUserScrolling||(n.ydisp=n.ybase),this._onScroll.fire(n.ydisp)},r.prototype.scrollLines=function(e,t,r){var n=this.buffer;if(e<0){if(0===n.ydisp)return;this.isUserScrolling=!0}else e+n.ydisp>=n.ybase&&(this.isUserScrolling=!1);var i=n.ydisp;n.ydisp=Math.max(Math.min(n.ydisp+e,n.ybase),0),i!==n.ydisp&&(t||this._onScroll.fire(n.ydisp))},r.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},r.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},r.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},r.prototype.scrollToLine=function(e){var t=e-this.buffer.ydisp;0!==t&&this.scrollLines(t)},o([a(0,s.IOptionsService)],r)}(u.Disposable);t.BufferService=h},7994:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0;var r=function(){function e(){this.glevel=0,this._charsets=[]}return e.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},e.prototype.setgLevel=function(e){this.glevel=e,this.charset=this._charsets[e]},e.prototype.setgCharset=function(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)},e}();t.CharsetService=r},1753:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;var a=r(2585),s=r(8460),l={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(e){return 4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)}},VT200:{events:19,restrict:function(e){return 32!==e.action}},DRAG:{events:23,restrict:function(e){return 32!==e.action||3!==e.button}},ANY:{events:31,restrict:function(e){return!0}}};function c(e,t){var r=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(r|=64,r|=e.action):(r|=3&e.button,4&e.button&&(r|=64),8&e.button&&(r|=128),32===e.action?r|=32:0!==e.action||t||(r|=3)),r}var u=String.fromCharCode,h={DEFAULT:function(e){var t=[c(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":"�[M"+u(t[0])+u(t[1])+u(t[2])},SGR:function(e){var t=0===e.action&&4!==e.button?"m":"M";return"�[<"+c(e,!0)+";"+e.col+";"+e.row+t}},d=function(){function e(e,t){var r,n,i,a;this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new s.EventEmitter,this._lastEvent=null;try{for(var c=o(Object.keys(l)),u=c.next();!u.done;u=c.next()){var d=u.value;this.addProtocol(d,l[d])}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}try{for(var f=o(Object.keys(h)),p=f.next();!p.done;p=f.next()){var v=p.value;this.addEncoding(v,h[v])}}catch(e){i={error:e}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}this.reset()}return e.prototype.addProtocol=function(e,t){this._protocols[e]=t},e.prototype.addEncoding=function(e,t){this._encodings[e]=t},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(e){if(!this._protocols[e])throw new Error('unknown protocol "'+e+'"');this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areMouseEventsActive",{get:function(){return 0!==this._protocols[this._activeProtocol].events},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(e){if(!this._encodings[e])throw new Error('unknown encoding "'+e+'"');this._activeEncoding=e},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(e.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),e.prototype.triggerMouseEvent=function(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._compareEvents(this._lastEvent,e))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;var t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0},e.prototype.explainEvents=function(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}},e.prototype._compareEvents=function(e,t){return e.col===t.col&&e.row===t.row&&e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift},n([i(0,a.IBufferService),i(1,a.ICoreService)],e)}();t.CoreMouseService=d},6975:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;var s=r(2585),l=r(8460),c=r(1439),u=r(844),h=Object.freeze({insertMode:!1}),d=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),f=function(e){function t(t,r,n,i){var o=e.call(this)||this;return o._bufferService=r,o._logService=n,o._optionsService=i,o.isCursorInitialized=!1,o.isCursorHidden=!1,o._onData=o.register(new l.EventEmitter),o._onUserInput=o.register(new l.EventEmitter),o._onBinary=o.register(new l.EventEmitter),o._scrollToBottom=t,o.register({dispose:function(){return o._scrollToBottom=void 0}}),o.modes=(0,c.clone)(h),o.decPrivateModes=(0,c.clone)(d),o}return i(t,e),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this.modes=(0,c.clone)(h),this.decPrivateModes=(0,c.clone)(d)},t.prototype.triggerDataEvent=function(e,t){if(void 0===t&&(t=!1),!this._optionsService.rawOptions.disableStdin){var r=this._bufferService.buffer;r.ybase!==r.ydisp&&this._scrollToBottom(),t&&this._onUserInput.fire(),this._logService.debug('sending data "'+e+'"',function(){return e.split("").map(function(e){return e.charCodeAt(0)})}),this._onData.fire(e)}},t.prototype.triggerBinaryEvent=function(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'+e+'"',function(){return e.split("").map(function(e){return e.charCodeAt(0)})}),this._onBinary.fire(e))},o([a(1,s.IBufferService),a(2,s.ILogService),a(3,s.IOptionsService)],t)}(u.Disposable);t.CoreService=f},9074:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationService=void 0;var s=r(8055),l=r(8460),c=r(844),u=r(6106),h=function(e){function t(){var t=e.call(this)||this;return t._decorations=new u.SortedList(function(e){return e.marker.line}),t._onDecorationRegistered=t.register(new l.EventEmitter),t._onDecorationRemoved=t.register(new l.EventEmitter),t}return i(t,e),Object.defineProperty(t.prototype,"onDecorationRegistered",{get:function(){return this._onDecorationRegistered.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onDecorationRemoved",{get:function(){return this._onDecorationRemoved.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"decorations",{get:function(){return this._decorations.values()},enumerable:!1,configurable:!0}),t.prototype.registerDecoration=function(e){var t=this;if(!e.marker.isDisposed){var r=new d(e);if(r){var n=r.marker.onDispose(function(){return r.dispose()});r.onDispose(function(){r&&(t._decorations.delete(r)&&t._onDecorationRemoved.fire(r),n.dispose())}),this._decorations.insert(r),this._onDecorationRegistered.fire(r)}return r}},t.prototype.reset=function(){var e,t;try{for(var r=a(this._decorations.values()),n=r.next();!n.done;n=r.next())n.value.dispose()}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}this._decorations.clear()},t.prototype.getDecorationsAtLine=function(e){return o(this,function(t){return[2,this._decorations.getKeyIterator(e)]})},t.prototype.getDecorationsAtCell=function(e,t,r){var n,i,s,l,c,u,h,d,f,p,v;return o(this,function(o){switch(o.label){case 0:n=0,i=0,o.label=1;case 1:o.trys.push([1,6,7,8]),s=a(this._decorations.getKeyIterator(t)),l=s.next(),o.label=2;case 2:return l.done?[3,5]:(c=l.value,n=null!==(f=c.options.x)&&void 0!==f?f:0,i=n+(null!==(p=c.options.width)&&void 0!==p?p:1),!(e>=n&&e<i)||r&&(null!==(v=c.options.layer)&&void 0!==v?v:"bottom")!==r?[3,4]:[4,c]);case 3:o.sent(),o.label=4;case 4:return l=s.next(),[3,2];case 5:return[3,8];case 6:return u=o.sent(),h={error:u},[3,8];case 7:try{l&&!l.done&&(d=s.return)&&d.call(s)}finally{if(h)throw h.error}return[7];case 8:return[2]}})},t.prototype.dispose=function(){var e,t;try{for(var r=a(this._decorations.values()),n=r.next();!n.done;n=r.next()){var i=n.value;this._onDecorationRemoved.fire(i)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}this.reset()},t}(c.Disposable);t.DecorationService=h;var d=function(e){function t(t){var r=e.call(this)||this;return r.options=t,r.isDisposed=!1,r.onRenderEmitter=r.register(new l.EventEmitter),r.onRender=r.onRenderEmitter.event,r._onDispose=r.register(new l.EventEmitter),r.onDispose=r._onDispose.event,r._cachedBg=null,r._cachedFg=null,r.marker=t.marker,r.options.overviewRulerOptions&&!r.options.overviewRulerOptions.position&&(r.options.overviewRulerOptions.position="full"),r}return i(t,e),Object.defineProperty(t.prototype,"backgroundColorRGB",{get:function(){return null===this._cachedBg&&(this.options.backgroundColor?this._cachedBg=s.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"foregroundColorRGB",{get:function(){return null===this._cachedFg&&(this.options.foregroundColor?this._cachedFg=s.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this._onDispose.fire(),e.prototype.dispose.call(this))},t}(c.Disposable)},3730:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirtyRowService=void 0;var o=r(2585),a=function(){function e(e){this._bufferService=e,this.clearRange()}return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),e.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},e.prototype.markDirty=function(e){e<this._start?this._start=e:e>this._end&&(this._end=e)},e.prototype.markRangeDirty=function(e,t){if(e>t){var r=e;e=t,t=r}e<this._start&&(this._start=e),t>this._end&&(this._end=t)},e.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},n([i(0,o.IBufferService)],e)}();t.DirtyRowService=a},4348:function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;var a=r(2585),s=r(8343),l=function(){function e(){for(var e,t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];this._entries=new Map;try{for(var a=n(r),s=a.next();!s.done;s=a.next()){var l=i(s.value,2),c=l[0],u=l[1];this.set(c,u)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}}return e.prototype.set=function(e,t){var r=this._entries.get(e);return this._entries.set(e,t),r},e.prototype.forEach=function(e){this._entries.forEach(function(t,r){return e(r,t)})},e.prototype.has=function(e){return this._entries.has(e)},e.prototype.get=function(e){return this._entries.get(e)},e}();t.ServiceCollection=l;var c=function(){function e(){this._services=new l,this._services.set(a.IInstantiationService,this)}return e.prototype.setService=function(e,t){this._services.set(e,t)},e.prototype.getService=function(e){return this._services.get(e)},e.prototype.createInstance=function(e){for(var t,r,a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];var c=(0,s.getServiceDependencies)(e).sort(function(e,t){return e.index-t.index}),u=[];try{for(var h=n(c),d=h.next();!d.done;d=h.next()){var f=d.value,p=this._services.get(f.id);if(!p)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+f.id+".");u.push(p)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(r=h.return)&&r.call(h)}finally{if(t)throw t.error}}var v=c.length>0?c[0].index:a.length;if(a.length!==v)throw new Error("[createInstance] First service dependency of "+e.name+" at position "+(v+1)+" conflicts with "+a.length+" static arguments");return new(e.bind.apply(e,o([void 0],i(o(o([],i(a),!1),i(u),!1)),!1)))},e}();t.InstantiationService=c},7866:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};
1Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=void 0;var s=r(2585),l={debug:s.LogLevelEnum.DEBUG,info:s.LogLevelEnum.INFO,warn:s.LogLevelEnum.WARN,error:s.LogLevelEnum.ERROR,off:s.LogLevelEnum.OFF},c=function(){function e(e){var t=this;this._optionsService=e,this.logLevel=s.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange(function(e){"logLevel"===e&&t._updateLogLevel()})}return e.prototype._updateLogLevel=function(){this.logLevel=l[this._optionsService.rawOptions.logLevel]},e.prototype._evalLazyOptionalParams=function(e){for(var t=0;t<e.length;t++)"function"==typeof e[t]&&(e[t]=e[t]())},e.prototype._log=function(e,t,r){this._evalLazyOptionalParams(r),e.call.apply(e,a([console,"xterm.js: "+t],o(r),!1))},e.prototype.debug=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.logLevel<=s.LogLevelEnum.DEBUG&&this._log(console.log,e,t)},e.prototype.info=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.logLevel<=s.LogLevelEnum.INFO&&this._log(console.info,e,t)},e.prototype.warn=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.logLevel<=s.LogLevelEnum.WARN&&this._log(console.warn,e,t)},e.prototype.error=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.logLevel<=s.LogLevelEnum.ERROR&&this._log(console.error,e,t)},n([i(0,s.IOptionsService)],e)}();t.LogService=c},7302:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsService=t.DEFAULT_OPTIONS=t.DEFAULT_BELL_SOUND=void 0;var i=r(8460),o=r(6114);t.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",t.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,bellSound:t.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:o.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:void 0};var a=["normal","bold","100","200","300","400","500","600","700","800","900"],s=function(){function e(e){this._onOptionChange=new i.EventEmitter;var r=n({},t.DEFAULT_OPTIONS);for(var o in e)if(o in r)try{var a=e[o];r[o]=this._sanitizeAndValidateOption(o,a)}catch(e){console.error(e)}this.rawOptions=r,this.options=n({},r),this._setupOptions()}return Object.defineProperty(e.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),e.prototype._setupOptions=function(){var e=this,r=function(r){if(!(r in t.DEFAULT_OPTIONS))throw new Error('No option with key "'+r+'"');return e.rawOptions[r]},n=function(r,n){if(!(r in t.DEFAULT_OPTIONS))throw new Error('No option with key "'+r+'"');n=e._sanitizeAndValidateOption(r,n),e.rawOptions[r]!==n&&(e.rawOptions[r]=n,e._onOptionChange.fire(r))};for(var i in this.rawOptions){var o={get:r.bind(this,i),set:n.bind(this,i)};Object.defineProperty(this.options,i,o)}},e.prototype.setOption=function(e,t){this.options[e]=t},e.prototype._sanitizeAndValidateOption=function(e,r){switch(e){case"bellStyle":case"cursorStyle":case"rendererType":case"wordSeparator":r||(r=t.DEFAULT_OPTIONS[e]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof r&&1<=r&&r<=1e3)break;r=a.includes(r)?r:t.DEFAULT_OPTIONS[e];break;case"cursorWidth":r=Math.floor(r);case"lineHeight":case"tabStopWidth":if(r<1)throw new Error(e+" cannot be less than 1, value: "+r);break;case"minimumContrastRatio":r=Math.max(1,Math.min(21,Math.round(10*r)/10));break;case"scrollback":if((r=Math.min(r,4294967295))<0)throw new Error(e+" cannot be less than 0, value: "+r);break;case"fastScrollSensitivity":case"scrollSensitivity":if(r<=0)throw new Error(e+" cannot be less than or equal to 0, value: "+r);case"rows":case"cols":if(!r&&0!==r)throw new Error(e+" must be numeric, value: "+r)}return r},e.prototype.getOption=function(e){return this.options[e]},e}();t.OptionsService=s},8343:(e,t)=>
1{function r(e,t,r){t.di$target===t?t.di$dependencies.push({id:e,index:r}):(t.di$dependencies=[{id:e,index:r}],t.di$target=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0,t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e.di$dependencies||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);var n=function(e,t,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");r(n,e,i)};return n.toString=function(){return e},t.serviceRegistry.set(e,n),n}},2585:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.IDirtyRowService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;var n,i=r(8343);t.IBufferService=(0,i.createDecorator)("BufferService"),t.ICoreMouseService=(0,i.createDecorator)("CoreMouseService"),t.ICoreService=(0,i.createDecorator)("CoreService"),t.ICharsetService=(0,i.createDecorator)("CharsetService"),t.IDirtyRowService=(0,i.createDecorator)("DirtyRowService"),t.IInstantiationService=(0,i.createDecorator)("InstantiationService"),(n=t.LogLevelEnum||(t.LogLevelEnum={}))[n.DEBUG=0]="DEBUG",n[n.INFO=1]="INFO",n[n.WARN=2]="WARN",n[n.ERROR=3]="ERROR",n[n.OFF=4]="OFF",t.ILogService=(0,i.createDecorator)("LogService"),t.IOptionsService=(0,i.createDecorator)("OptionsService"),t.IUnicodeService=(0,i.createDecorator)("UnicodeService"),t.IDecorationService=(0,i.createDecorator)("DecorationService")},1480:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;var n=r(8460),i=r(225),o=function(){function e(){this._providers=Object.create(null),this._active="",this._onChange=new n.EventEmitter;var e=new i.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._active},set:function(e){if(!this._providers[e])throw new Error('unknown Unicode version "'+e+'"');this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)},enumerable:!1,configurable:!0}),e.prototype.register=function(e){this._providers[e.version]=e},e.prototype.wcwidth=function(e){return this._activeProvider.wcwidth(e)},e.prototype.getStringCellWidth=function(e){for(var t=0,r=e.length,n=0;n<r;++n){var i=e.charCodeAt(n);if(55296<=i&&i<=56319){if(++n>=r)return t+this.wcwidth(i);var o=e.charCodeAt(n);56320<=o&&o<=57343?i=1024*(i-55296)+o-56320+65536:t+=this.wcwidth(o)}t+=this.wcwidth(i)}return t},e}();t.UnicodeService=o}},t={};return function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}(4389)})()},3391(e,t,r){"use strict";var n=r(6186),i=r.n(n),o=r(2155),a=r.n(o),s=r(7433),l=r.n(s),c=r(8626),u=r.n(c),h=r(8990),d=r.n(h),f=r(9827),p=r.n(f),v=r(906),g={};g.styleTagTransform=p(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=d();i()(v.A,g),v.A&&v.A.locals&&v.A.locals},4348(e,t,r){"use strict";r.d(t,{lG:()=>vt});var n=r(7810);let i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function o(e){let t=(0,n.useRef)(e);return i(()=>{t.current=e},[e]),t}function a(e,t){let[r,a]=(0,n.useState)(e),s=o(e);return i(()=>a(s.current),[s,a,...t]),r}function s(){let e=[],t=[],r={enqueue(e){t.push(e)},addEventListener:(e,t,n,i)=>(e.addEventListener(t,n,i),r.add(()=>e.removeEventListener(t,n,i))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add(()=>cancelAnimationFrame(t))},nextFrame:(...e)=>r.requestAnimationFrame(()=>r.requestAnimationFrame(...e)),setTimeout(...e){let t=setTimeout(...e);return r.add(()=>clearTimeout(t))},add:t=>(e.push(t),()=>{let r=e.indexOf(t);if(r>=0){let[t]=e.splice(r,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return r}
1function l(){let[e]=(0,n.useState)(s);return(0,n.useEffect)(()=>()=>e.dispose(),[e]),e}let c=function(e){let t=o(e);return n.useCallback((...e)=>t.current(...e),[t])},u={serverHandoffComplete:!1};function h(){let[e,t]=(0,n.useState)(u.serverHandoffComplete);return(0,n.useEffect)(()=>{!0!==e&&t(!0)},[e]),(0,n.useEffect)(()=>{!1===u.serverHandoffComplete&&(u.serverHandoffComplete=!0)},[]),e}var d;let f=0;function p(){return++f}let v=null!=(d=n.useId)?d:function(){let e=h(),[t,r]=n.useState(e?p:null);return i(()=>{null===t&&r(p())},[t]),null!=t?""+t:void 0};function g(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function m(e,t,r){let i=o(t);(0,n.useEffect)(()=>{function t(e){i.current(e)}return window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)},[e,r])}var _,y=((_=y||{})[_.None=1]="None",_[_.IgnoreScrollbars=2]="IgnoreScrollbars",_);function w(e,t,r=1){let i=(0,n.useRef)(!1),o=c(n=>{if(i.current)return;i.current=!0,g(()=>{i.current=!1});let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),a=n.target;if(a.ownerDocument.documentElement.contains(a)){if(!(2&~r)){let e=20,t=a.ownerDocument.documentElement;if(n.clientX>t.clientWidth-e||n.clientX<e||n.clientY>t.clientHeight-e||n.clientY<e)return}for(let e of o){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a))return}return t(n,a)}});m("pointerdown",o),m("mousedown",o)}function b(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";return"string"==typeof r&&"button"===r.toLowerCase()?"button":void 0}function x(e,t){let[r,o]=(0,n.useState)(()=>b(e));return i(()=>{o(b(e))},[e.type,e.as]),i(()=>{r||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&o("button")},[r,t]),r}let C=Symbol();function S(e,t=!0){return Object.assign(e,{[C]:t})}function E(...e){let t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let r=c(e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)});return e.every(e=>null==e||(null==e?void 0:e[C]))?void 0:r}function M(e){return"undefined"==typeof window?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function k({container:e,accept:t,walk:r,enabled:o=!0}){let a=(0,n.useRef)(t),s=(0,n.useRef)(r);(0,n.useEffect)(()=>{a.current=t,s.current=r},[t,r]),i(()=>{if(!e||!o)return;let t=M(e);if(!t)return;let r=a.current,n=s.current,i=Object.assign(e=>r(e),{acceptNode:r}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,i,!1);for(;l.nextNode();)n(l.currentNode)},[e,o,a,s])}var L=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(L||{});function R(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=null!=n?n:-1,o=(()=>{switch(e.focus){case 0:return r.findIndex(e=>!t.resolveDisabled(e));case 1:{let e=r.slice().reverse().findIndex((e,r,n)=>!(-1!==i&&n.length-r-1>=i)&&!t.resolveDisabled(e));return-1===e?e:r.length-1-e}case 2:return r.findIndex((e,r)=>!(r<=i)&&!t.resolveDisabled(e));case 3:{let e=r.slice().reverse().findIndex(e=>!t.resolveDisabled(e));return-1===e?e:r.length-1-e}case 4:return r.findIndex(r=>t.resolveId(r)===e.id);case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===o?n:o}function O(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,O),n}var A=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(A||{}),P=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(P||{});function T({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:a}){let s=B(t,e);if(o)return D(s,r,n,a);let l=null!=i?i:0;if(2&l){let{static:e=!1,...t}=s;if(e)return D(t,r,n,a)}if(1&l){let{unmount:e=!0,...t}=s;return O(e?0:1,{0:()=>null,1:()=>D({...t,hidden:!0,style:{display:"none"}},r,n,a)})}return D(s,r,n,a)}function D(e,t={},r,i){let{as:o=r,children:a,refName:s="ref",...l}=z(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof a?a(t):a;l.className&&"function"==typeof l.className&&(l.className=l.className(t));let h={};if(o===n.Fragment&&Object.keys(I(l)).length>0){if(!(0,n.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(e=>` - ${e}`).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join("\n")].join("\n"));return(0,n.cloneElement)(u,Object.assign({},B(u.props,I(z(l,["ref"]))),h,c))}return(0,n.createElement)(o,Object.assign({},z(l,["ref"]),o!==n.Fragment&&c,o!==n.Fragment&&h),u)}function B(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(e=>[e,void 0])));for(let e in r)Object.assign(t,{[e](t,...n){let i=r[e];for(let e of i){if(t.defaultPrevented)return;e(t,...n)}}});return t}function j(e){var t;return Object.assign((0,n.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function I(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function z(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}function H(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=""===(null==t?void 0:t.getAttribute("disabled"));return(!n||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}function F(e={},t=null,r=[]){for(let[n,i]of Object.entries(e))W(r,V(t,n),i);return r}function V(e,t){return e?e+"["+t+"]":t}function W(e,t,r){if(Array.isArray(r))for(let[n,i]of r.entries())W(e,V(t,n.toString()),i);else r instanceof Date?e.push([t,r.toISOString()]):"boolean"==typeof r?e.push([t,r?"1":"0"]):"string"==typeof r?e.push([t,r]):"number"==typeof r?e.push([t,`${r}`]):null==r?e.push([t,""]):F(r,t,e)}function N(e){var t;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r)for(let e of r.elements)if("INPUT"===e.tagName&&"submit"===e.type||"BUTTON"===e.tagName&&"submit"===e.type||"INPUT"===e.nodeName&&"image"===e.type)return void e.click()}let U=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var q,Y=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Y||{}),K=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(K||{}),G=((q=G||{})[q.Previous=-1]="Previous",q[q.Next=1]="Next",q);function $(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(U))}var X=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(X||{});function Z(e,t=0){var r;return e!==(null==(r=M(e))?void 0:r.body)&&O(t,{0:()=>e.matches(U),1(){let t=e;for(;null!==t;){if(t.matches(U))return!0;t=t.parentElement}return!1}})}function J(e){null==e||e.focus({preventScroll:!0})}let Q=["textarea","input"].join(",");function ee(e,t=e=>e){return e.slice().sort((e,r)=>{let n=t(e),i=t(r);if(null===n||null===i)return 0;let o=n.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function te(e,t,r=!0){let n,i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?r?ee(e):e:$(e),a=i.activeElement,s=(()=>
1{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,o.indexOf(a))-1;if(4&t)return Math.max(0,o.indexOf(a))+1;if(8&t)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=32&t?{preventScroll:!0}:{},u=0,h=o.length;do{if(u>=h||u+h<=0)return 0;let e=l+u;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}n=o[e],null==n||n.focus(c),u+=s}while(n!==i.activeElement);return 6&t&&function(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Q))&&r}(n)&&n.select(),n.hasAttribute("tabindex")||n.setAttribute("tabindex","0"),2}var re=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(re||{});let ne=j(function(e,t){let{features:r=1,...n}=e;return T({ourProps:{ref:t,"aria-hidden":!(2&~r)||void 0,style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~r)&&!!(2&~r)&&{display:"none"}}},theirProps:n,slot:{},defaultTag:"div",name:"Hidden"})}),ie=(0,n.createContext)(null);ie.displayName="OpenClosedContext";var oe=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(oe||{});function ae(){return(0,n.useContext)(ie)}function se({value:e,children:t}){return n.createElement(ie.Provider,{value:e},t)}var le=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(le||{}),ce=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ce||{}),ue=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(ue||{}),he=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(he||{}),de=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e))(de||{});function fe(e,t=e=>e){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=ee(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return-1===i&&(i=null),{options:n,activeOptionIndex:i}}let pe={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(e=>r(e.dataRef.current.value));return-1!==n&&(t=n),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let n=fe(e);if(null===n.activeOptionIndex){let e=n.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(n.activeOptionIndex=e)}let i=R(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,activeOptionIndex:i,activationTrigger:null!=(r=t.trigger)?r:1}},3:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=fe(e,e=>[...e,r]);null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r));let i={...e,...n,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(i.activeOptionIndex=0),i},4:(e,t)=>{let r=fe(e,e=>{let r=e.findIndex(e=>e.id===t.id);return-1!==r&&e.splice(r,1),e});return{...e,...r,activationTrigger:1}}},ve=(0,n.createContext)(null);function ge(e){let t=(0,n.useContext)(ve);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ge),t}return t}ve.displayName="ComboboxActionsContext";let me=(0,n.createContext)(null);function _e(e){let t=(0,n.useContext)(me);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,_e),t}return t}function ye(e,t){return O(t.type,pe,e,t)}me.displayName="ComboboxDataContext";let we=n.Fragment,be=j(function(e,t){let{name:r,value:o,onChange:a,disabled:s=!1,__demoMode:l=!1,nullable:u=!1,multiple:h=!1,...d}=e,[f,p]=(0,n.useReducer)(ye,{dataRef:(0,n.createRef)(),comboboxState:l?0:1,options:[],activeOptionIndex:null,activationTrigger:1}),v=(0,n.useRef)(!1),g=(0,n.useRef)({static:!1,hold:!1}),m=(0,n.useRef)({displayValue:void 0}),_=(0,n.useRef)(null),y=(0,n.useRef)(null),b=(0,n.useRef)(null),x=(0,n.useRef)(null),C=c((e,t)=>e===t),S=(0,n.useCallback)(e=>O(E.mode,{1:()=>o.some(t=>C(t,e)),0:()=>C(o,e)}),[o]),E=(0,n.useMemo)(()=>({...f,optionsPropsRef:g,inputPropsRef:m,labelRef:_,inputRef:y,buttonRef:b,optionsRef:x,value:o,disabled:s,mode:h?1:0,get activeOptionIndex(){if(v.current&&null===f.activeOptionIndex&&f.options.length>0){let e=f.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==e)return e}return f.activeOptionIndex},compare:C,isSelected:S,nullable:u,__demoMode:l}),[o,s,h,u,l,f]);i(()=>{f.dataRef.current=E},[E]),w([E.buttonRef,E.inputRef,E.optionsRef],()=>{0===E.comboboxState&&p({type:1})});let M=(0,n.useMemo)(()=>({open:0===E.comboboxState,disabled:s,activeIndex:E.activeOptionIndex,activeOption:null===E.activeOptionIndex?null:E.options[E.activeOptionIndex].dataRef.current.value}),[E,s]),k=(0,n.useCallback)(()=>{var e;if(!E.inputRef.current)return;let t=m.current.displayValue;E.inputRef.current.value="function"==typeof t?null!=(e=t(o))?e:"":"string"==typeof o?o:""},[o,E.inputRef,m]),R=c(e=>{let t=E.options.find(t=>
1t.id===e);!t||(z(t.dataRef.current.value),k())}),A=c(()=>{if(null!==E.activeOptionIndex){let{dataRef:e,id:t}=E.options[E.activeOptionIndex];z(e.current.value),k(),p({type:2,focus:L.Specific,id:t})}}),P=c(()=>{p({type:0}),v.current=!0}),D=c(()=>{p({type:1}),v.current=!1}),B=c((e,t,r)=>(v.current=!1,e===L.Specific?p({type:2,focus:L.Specific,id:t,trigger:r}):p({type:2,focus:e,trigger:r}))),j=c((e,t)=>(p({type:3,id:e,dataRef:t}),()=>p({type:4,id:e}))),z=c(e=>O(E.mode,{0:()=>a(e),1(){let t=E.value.slice(),r=t.indexOf(e);return-1===r?t.push(e):t.splice(r,1),a(t)}})),H=(0,n.useMemo)(()=>({onChange:z,registerOption:j,goToOption:B,closeCombobox:D,openCombobox:P,selectActiveOption:A,selectOption:R}),[]);i(()=>{1===E.comboboxState&&k()},[k,E.comboboxState]),i(k,[k]);let V=null===t?{}:{ref:t};return n.createElement(ve.Provider,{value:H},n.createElement(me.Provider,{value:E},n.createElement(se,{value:O(E.comboboxState,{0:oe.Open,1:oe.Closed})},null!=r&&null!=o&&F({[r]:o}).map(([e,t])=>n.createElement(ne,{features:re.Hidden,...I({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})})),T({ourProps:V,theirProps:d,slot:M,defaultTag:we,name:"Combobox"}))))}),xe=j(function(e,t){var r,o;let{value:s,onChange:u,displayValue:h,type:d="text",...f}=e,p=_e("Combobox.Input"),g=ge("Combobox.Input"),m=E(p.inputRef,t),_=p.inputPropsRef,y=`headlessui-combobox-input-${v()}`,w=l();i(()=>{_.current.displayValue=h},[h,_]);let b=c(e=>{switch(e.key){case le.Backspace:case le.Delete:if(0!==p.comboboxState||0!==p.mode||!p.nullable)return;let t=e.currentTarget;w.requestAnimationFrame(()=>{""===t.value&&(g.onChange(null),p.optionsRef.current&&(p.optionsRef.current.scrollTop=0),g.goToOption(L.Nothing))});break;case le.Enter:if(0!==p.comboboxState)return;if(e.preventDefault(),e.stopPropagation(),null===p.activeOptionIndex)return void g.closeCombobox();g.selectActiveOption(),0===p.mode&&g.closeCombobox();break;case le.ArrowDown:return e.preventDefault(),e.stopPropagation(),O(p.comboboxState,{0:()=>{g.goToOption(L.Next)},1:()=>{g.openCombobox()}});case le.ArrowUp:return e.preventDefault(),e.stopPropagation(),O(p.comboboxState,{0:()=>{g.goToOption(L.Previous)},1:()=>{g.openCombobox(),w.nextFrame(()=>{p.value||g.goToOption(L.Last)})}});case le.Home:case le.PageUp:return e.preventDefault(),e.stopPropagation(),g.goToOption(L.First);case le.End:case le.PageDown:return e.preventDefault(),e.stopPropagation(),g.goToOption(L.Last);case le.Escape:return 0!==p.comboboxState?void 0:(e.preventDefault(),p.optionsRef.current&&!p.optionsPropsRef.current.static&&e.stopPropagation(),g.closeCombobox());case le.Tab:if(0!==p.comboboxState)return;g.selectActiveOption(),g.closeCombobox()}}),x=c(e=>{g.openCombobox(),null==u||u(e)}),C=a(()=>{if(p.labelRef.current)return[p.labelRef.current.id].join(" ")},[p.labelRef.current]),S=(0,n.useMemo)(()=>({open:0===p.comboboxState,disabled:p.disabled}),[p]);return T({ourProps:{ref:m,id:y,role:"combobox",type:d,"aria-controls":null==(r=p.optionsRef.current)?void 0:r.id,"aria-expanded":p.disabled?void 0:0===p.comboboxState,"aria-activedescendant":null===p.activeOptionIndex||null==(o=p.options[p.activeOptionIndex])?void 0:o.id,"aria-multiselectable":1===p.mode||void 0,"aria-labelledby":C,disabled:p.disabled,onKeyDown:b,onChange:x},theirProps:f,slot:S,defaultTag:"input",name:"Combobox.Input"})}),Ce=j(function(e,t){var r;let i=_e("Combobox.Button"),o=ge("Combobox.Button"),s=E(i.buttonRef,t),u=`headlessui-combobox-button-${v()}`,h=l(),d=c(e=>{switch(e.key){case le.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===i.comboboxState&&o.openCombobox(),h.nextFrame(()=>{var e;return null==(e=i.inputRef.current)?void 0:e.focus({preventScroll:!0})});case le.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===i.comboboxState&&(o.openCombobox(),h.nextFrame(()=>{i.value||o.goToOption(L.Last)})),h.nextFrame(()=>{var e;return null==(e=i.inputRef.current)?void 0:e.focus({preventScroll:!0})});case le.Escape:return 0!==i.comboboxState?void 0:(e.preventDefault(),i.optionsRef.current&&!i.optionsPropsRef.current.static&&e.stopPropagation(),o.closeCombobox(),h.nextFrame(()=>{var e;return null==(e=i.inputRef.current)?void 0:e.focus({preventScroll:!0})}
1));default:return}}),f=c(e=>{if(H(e.currentTarget))return e.preventDefault();0===i.comboboxState?o.closeCombobox():(e.preventDefault(),o.openCombobox()),h.nextFrame(()=>{var e;return null==(e=i.inputRef.current)?void 0:e.focus({preventScroll:!0})})}),p=a(()=>{if(i.labelRef.current)return[i.labelRef.current.id,u].join(" ")},[i.labelRef.current,u]),g=(0,n.useMemo)(()=>({open:0===i.comboboxState,disabled:i.disabled}),[i]),m=e;return T({ourProps:{ref:s,id:u,type:x(e,i.buttonRef),tabIndex:-1,"aria-haspopup":!0,"aria-controls":null==(r=i.optionsRef.current)?void 0:r.id,"aria-expanded":i.disabled?void 0:0===i.comboboxState,"aria-labelledby":p,disabled:i.disabled,onClick:f,onKeyDown:d},theirProps:m,slot:g,defaultTag:"button",name:"Combobox.Button"})}),Se=j(function(e,t){let r=_e("Combobox.Label"),i=`headlessui-combobox-label-${v()}`,o=E(r.labelRef,t),a=c(()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})});return T({ourProps:{ref:o,id:i,onClick:a},theirProps:e,slot:(0,n.useMemo)(()=>({open:0===r.comboboxState,disabled:r.disabled}),[r]),defaultTag:"label",name:"Combobox.Label"})}),Ee=A.RenderStrategy|A.Static,Me=j(function(e,t){var r;let{hold:o=!1,...s}=e,l=_e("Combobox.Options"),c=E(l.optionsRef,t),u=`headlessui-combobox-options-${v()}`,h=ae(),d=null!==h?h===oe.Open:0===l.comboboxState;i(()=>{var t;l.optionsPropsRef.current.static=null!=(t=e.static)&&t},[l.optionsPropsRef,e.static]),i(()=>{l.optionsPropsRef.current.hold=o},[l.optionsPropsRef,o]),k({container:l.optionsRef.current,enabled:0===l.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let f=a(()=>{var e,t,r;return null!=(r=null==(e=l.labelRef.current)?void 0:e.id)?r:null==(t=l.buttonRef.current)?void 0:t.id},[l.labelRef.current,l.buttonRef.current]),p=(0,n.useMemo)(()=>({open:0===l.comboboxState}),[l]);return T({ourProps:{"aria-activedescendant":null===l.activeOptionIndex||null==(r=l.options[l.activeOptionIndex])?void 0:r.id,"aria-labelledby":f,role:"listbox",id:u,ref:c},theirProps:s,slot:p,defaultTag:"ul",features:Ee,visible:d,name:"Combobox.Options"})}),ke=j(function(e,t){var r,a;let{disabled:l=!1,value:u,...h}=e,d=_e("Combobox.Option"),f=ge("Combobox.Option"),p=`headlessui-combobox-option-${v()}`,g=null!==d.activeOptionIndex&&d.options[d.activeOptionIndex].id===p,m=d.isSelected(u),_=(0,n.useRef)(null),y=o({disabled:l,value:u,domRef:_,textValue:null==(a=null==(r=_.current)?void 0:r.textContent)?void 0:a.toLowerCase()}),w=E(t,_),b=c(()=>f.selectOption(p));i(()=>f.registerOption(p,y),[y,p]);let x=(0,n.useRef)(!d.__demoMode);i(()=>{if(!d.__demoMode)return;let e=s();return e.requestAnimationFrame(()=>{x.current=!0}),e.dispose},[]),i(()=>{if(0!==d.comboboxState||!g||!x.current||0===d.activationTrigger)return;let e=s();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=_.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[_,g,d.comboboxState,d.activationTrigger,d.activeOptionIndex]);let C=c(e=>{if(l)return e.preventDefault();b(),0===d.mode&&(f.closeCombobox(),s().nextFrame(()=>{var e;return null==(e=d.inputRef.current)?void 0:e.focus({preventScroll:!0})}
1))}),S=c(()=>{if(l)return f.goToOption(L.Nothing);f.goToOption(L.Specific,p)}),M=c(()=>{l||g||f.goToOption(L.Specific,p,0)}),k=c(()=>{l||!g||d.optionsPropsRef.current.hold||f.goToOption(L.Nothing)}),R=(0,n.useMemo)(()=>({active:g,selected:m,disabled:l}),[g,m,l]);return T({ourProps:{id:p,ref:w,role:"option",tabIndex:!0===l?void 0:-1,"aria-disabled":!0===l||void 0,"aria-selected":!0===m||void 0,disabled:void 0,onClick:C,onFocus:S,onPointerMove:M,onMouseMove:M,onPointerLeave:k,onMouseLeave:k},theirProps:h,slot:R,defaultTag:"li",name:"Combobox.Option"})});Object.assign(be,{Input:xe,Button:Ce,Label:Se,Options:Me,Option:ke});var Le=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Le||{});function Re(){let e=(0,n.useRef)(0);return m("keydown",t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)},!0),e}function Oe(){let e=(0,n.useRef)(!1);return i(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Ae(...e){return(0,n.useMemo)(()=>M(...e),[...e])}function Pe(e,t,r,i){let a=o(r);(0,n.useEffect)(()=>{function r(e){a.current(e)}return(e=null!=e?e:window).addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)},[e,t,i])}function Te(e,t){let r=(0,n.useRef)([]),i=c(e);(0,n.useEffect)(()=>{for(let[e,n]of t.entries())if(r.current[e]!==n){let e=i(t);return r.current=t,e}},[i,...t])}var De=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(De||{});let Be=Object.assign(j(function(e,t){let r=(0,n.useRef)(null),i=E(r,t),{initialFocus:o,containers:a,features:s=30,...l}=e;h()||(s=1);let u=Ae(r);!function({ownerDocument:e},t){let r=(0,n.useRef)(null);Pe(null==e?void 0:e.defaultView,"focusout",e=>{!t||r.current||(r.current=e.target)},!0),Te(()=>{t||(J(r.current),r.current=null)},[t]);let i=(0,n.useRef)(!1);(0,n.useEffect)(()=>(i.current=!1,()=>{i.current=!0,g(()=>{!i.current||(J(r.current),r.current=null)})}),[])}({ownerDocument:u},Boolean(16&s));let d=function({ownerDocument:e,container:t,initialFocus:r},i){let o=(0,n.useRef)(null);return Te(()=>{if(!i)return;let n=t.current;if(!n)return;let a=null==e?void 0:e.activeElement;if(null!=r&&r.current){if((null==r?void 0:r.current)===a)return void(o.current=a)}else if(n.contains(a))return void(o.current=a);null!=r&&r.current?J(r.current):te(n,Y.First)===K.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=null==e?void 0:e.activeElement},[i]),o}({ownerDocument:u,container:r,initialFocus:o},Boolean(2&s));!function({ownerDocument:e,container:t,containers:r,previousActiveElement:n},i){let o=Oe();Pe(null==e?void 0:e.defaultView,"focus",e=>{if(!i||!o.current)return;let a=new Set(null==r?void 0:r.current);a.add(t);let s=n.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?function(e,t){var r;for(let n of e)if(null!=(r=n.current)&&r.contains(t))return!0;return!1}(a,l)?(n.current=l,J(l)):(e.preventDefault(),e.stopPropagation(),J(s)):J(n.current)},!0)}({ownerDocument:u,container:r,containers:a,previousActiveElement:d},Boolean(8&s));let f=Re(),p=c(()=>{let e=r.current;!e||O(f.current,{[Le.Forwards]:()=>te(e,Y.First),[Le.Backwards]:()=>te(e,Y.Last)})}),v={ref:i};return n.createElement(n.Fragment,null,Boolean(4&s)&&n.createElement(ne,{as:"button",type:"button",onFocus:p,features:re.Focusable}),T({ourProps:v,theirProps:l,defaultTag:"div",name:"FocusTrap"}),Boolean(4&s)&&n.createElement(ne,{as:"button",type:"button",onFocus:p,features:re.Focusable}))}),{features:De});let je=new Set,Ie=new Map;function ze(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function He(e){let t=Ie.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}var Fe=r(2483);let Ve=(0,n.createContext)(!1);function We(){return(0,n.useContext)(Ve)}function Ne(e){return n.createElement(Ve.Provider,{value:e.force},e.children)}let Ue=n.Fragment,qe=j(function(e,t){let r=e,o=(0,n.useRef)(null),a=E(S(e=>{o.current=e}),t),s=Ae(o),l=function(e){let t=We(),r=(0,n.useContext)(Ke),i=Ae(e),[o,a]=(0,n.use
1State)(()=>{if(!t&&null!==r||"undefined"==typeof window)return null;let e=null==i?void 0:i.getElementById("headlessui-portal-root");if(e)return e;if(null===i)return null;let n=i.createElement("div");return n.setAttribute("id","headlessui-portal-root"),i.body.appendChild(n)});return(0,n.useEffect)(()=>{null!==o&&(null!=i&&i.body.contains(o)||null==i||i.body.appendChild(o))},[o,i]),(0,n.useEffect)(()=>{t||null!==r&&a(r.current)},[r,a,t]),o}(o),[c]=(0,n.useState)(()=>{var e;return"undefined"==typeof window?null:null!=(e=null==s?void 0:s.createElement("div"))?e:null}),u=h(),d=(0,n.useRef)(!1);return i(()=>{if(d.current=!1,l&&c)return l.contains(c)||l.appendChild(c),()=>{d.current=!0,g(()=>{var e;!d.current||!l||!c||(l.removeChild(c),l.childNodes.length<=0&&(null==(e=l.parentElement)||e.removeChild(l)))})}},[l,c]),u&&l&&c?(0,Fe.createPortal)(T({ourProps:{ref:a},theirProps:r,defaultTag:Ue,name:"Portal"}),c):null}),Ye=n.Fragment,Ke=(0,n.createContext)(null),Ge=j(function(e,t){let{target:r,...i}=e,o={ref:E(t)};return n.createElement(Ke.Provider,{value:r},T({ourProps:o,theirProps:i,defaultTag:Ye,name:"Popover.Group"}))}),$e=Object.assign(qe,{Group:Ge}),Xe=(0,n.createContext)(null);function Ze(){let e=(0,n.useContext)(Xe);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Ze),e}return e}function Je(){let[e,t]=(0,n.useState)([]);return[e.length>0?e.join(" "):void 0,(0,n.useMemo)(()=>function(e){let r=c(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return-1!==n&&r.splice(n,1),r}))),i=(0,n.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props}),[r,e.slot,e.name,e.props]);return n.createElement(Xe.Provider,{value:i},e.children)},[t])]}let Qe=j(function(e,t){let r=Ze(),n=`headlessui-description-${v()}`,o=E(t);i(()=>r.register(n),[n,r.register]);let a=e;return T({ourProps:{ref:o,...r.props,id:n},theirProps:a,slot:r.slot||{},defaultTag:"p",name:r.name||"Description"})}),et=(0,n.createContext)(()=>{});et.displayName="StackContext";var tt=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(tt||{});function rt({children:e,onUpdate:t,type:r,element:o}){let a=(0,n.useContext)(et),s=c((...e)=>{null==t||t(...e),a(...e)});return i(()=>(s(0,r,o),()=>s(1,r,o)),[s,r,o]),n.createElement(et.Provider,{value:s},e)}var nt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(nt||{}),it=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(it||{});let ot={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},at=(0,n.createContext)(null);function st(e){let t=(0,n.useContext)(at);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,st),t}return t}function lt(e,t){return O(t.type,ot,e,t)}at.displayName="DialogContext";let ct=A.RenderStrategy|A.Static,ut=j(function(e,t){let{open:r,onClose:o,initialFocus:a,__demoMode:s=!1,...l}=e,[u,d]=(0,n.useState)(0),f=ae();void 0===r&&null!==f&&(r=O(f,{[oe.Open]:!0,[oe.Closed]:!1}));let p=(0,n.useRef)(new Set),g=(0,n.useRef)(null),m=E(g,t),_=(0,n.useRef)(null),b=Ae(g),x=e.hasOwnProperty("open")||null!==f,C=e.hasOwnProperty("onClose");if(!x&&!C)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!x)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!C)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof r)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${r}`);if("function"!=typeof o)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);let S=r?0:1,[k,L]=(0,n.useReducer)(lt,{titleId:null,descriptionId:null,panelRef:(0,n.createRef)()}),R=c(()=>o(!1)),A=c(e=>L({type:0,id:e})),P=!!h()&&(!s&&0===S),D=u>1,B=null!==(0,n.useContext)(at),j=D?"parent":"leaf";(function(e,t=!0){i(()=>{if(!t||!e.current)return;let r=e.current,n=M(r);if(n){je.add(r);for(let e of Ie.keys())e.contains(r)&&(He(e),Ie.delete(e));return n.querySelectorAll("body >
1 *").forEach(e=>{if(e instanceof HTMLElement){for(let t of je)if(e.contains(t))return;1===je.size&&(Ie.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),ze(e))}}),()=>{if(je.delete(r),je.size>0)n.querySelectorAll("body > *").forEach(e=>{if(e instanceof HTMLElement&&!Ie.has(e)){for(let t of je)if(e.contains(t))return;Ie.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),ze(e)}});else for(let e of Ie.keys())He(e),Ie.delete(e)}}},[t])})(g,!!D&&P),w(()=>{var e,t;return[...Array.from(null!=(e=null==b?void 0:b.querySelectorAll("body > *"))?e:[]).filter(e=>!(!(e instanceof HTMLElement)||e.contains(_.current)||k.panelRef.current&&e.contains(k.panelRef.current))),null!=(t=k.panelRef.current)?t:g.current]},()=>{0===S&&(D||R())},y.IgnoreScrollbars),Pe(null==b?void 0:b.defaultView,"keydown",e=>{e.defaultPrevented||e.key===le.Escape&&0===S&&(D||(e.preventDefault(),e.stopPropagation(),R()))}),(0,n.useEffect)(()=>{var e;if(0!==S||B)return;let t=M(g);if(!t)return;let r=t.documentElement,n=null!=(e=t.defaultView)?e:window,i=r.style.overflow,o=r.style.paddingRight,a=n.innerWidth-r.clientWidth;if(r.style.overflow="hidden",a>0){let e=a-(r.clientWidth-r.offsetWidth);r.style.paddingRight=`${e}px`}return()=>{r.style.overflow=i,r.style.paddingRight=o}},[S,B]),(0,n.useEffect)(()=>{if(0!==S||!g.current)return;let e=new IntersectionObserver(e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&R()});return e.observe(g.current),()=>e.disconnect()},[S,g,R]);let[I,z]=Je(),H=`headlessui-dialog-${v()}`,F=(0,n.useMemo)(()=>[{dialogState:S,close:R,setTitleId:A},k],[S,k,R,A]),V=(0,n.useMemo)(()=>({open:0===S}),[S]),W={ref:m,id:H,role:"dialog","aria-modal":0===S||void 0,"aria-labelledby":k.titleId,"aria-describedby":I,onClick(e){e.stopPropagation()}};return n.createElement(rt,{type:"Dialog",element:g,onUpdate:c((e,t,r)=>{"Dialog"===t&&O(e,{[tt.Add](){p.current.add(r),d(e=>e+1)},[tt.Remove](){p.current.add(r),d(e=>e-1)}})})},n.createElement(Ne,{force:!0},n.createElement($e,null,n.createElement(at.Provider,{value:F},n.createElement($e.Group,{target:g},n.createElement(Ne,{force:!1},n.createElement(z,{slot:V,name:"Dialog.Description"},n.createElement(Be,{initialFocus:a,containers:p,features:P?O(j,{parent:Be.features.RestoreFocus,leaf:Be.features.All&~Be.features.FocusLock}):Be.features.None},T({ourProps:W,theirProps:l,slot:V,defaultTag:"div",features:ct,visible:0===S,name:"Dialog"})))))))),n.createElement(ne,{features:re.Hidden,ref:_}))}),ht=j(function(e,t){let[{dialogState:r,close:i}]=st("Dialog.Overlay"),o=E(t),a=`headlessui-dialog-overlay-${v()}`,s=c(e=>{if(e.target===e.currentTarget){if(H(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),i()}});return T({ourProps:{ref:o,id:a,"aria-hidden":!0,onClick:s},theirProps:e,slot:(0,n.useMemo)(()=>({open:0===r}),[r]),defaultTag:"div",name:"Dialog.Overlay"})}),dt=j(function(e,t){let[{dialogState:r},i]=st("Dialog.Backdrop"),o=E(t),a=`headlessui-dialog-backdrop-${v()}`;(0,n.useEffect)(()=>{if(null===i.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[i.panelRef]);let s=(0,n.useMemo)(()=>({open:0===r}),[r]);return n.createElement(Ne,{force:!0},n.createElement($e,null,T({ourProps:{ref:o,id:a,"aria-hidden":!0},theirProps:e,slot:s,defaultTag:"div",name:"Dialog.Backdrop"})))}),ft=j(function(e,t){let[{dialogState:r},i]=st("Dialog.Panel");return T({ourProps:{ref:E(t,i.panelRef),id:`headlessui-dialog-panel-${v()}`},theirProps:e,slot:(0,n.useMemo)(()=>({open:0===r}),[r]),defaultTag:"div",name:"Dialog.Panel"})}),pt=j(function(e,t){let[{dialogState:r,setTitleId:i}]=st("Dialog.Title"),o=`headlessui-dialog-title-${v()}`,a=E(t);(0,n.useEffect)(()=>(i(o),()=>i(null)),[o,i]);let s=(0,n.useMemo)(()=>({open:0===r}),[r]);return T({ourProps:{ref:a,id:o},theirProps:e,slot:s,defaultTag:"h2",name:"Dialog.Title"})}),vt=Object.assign(ut,{Backdrop:dt,Panel:ft,Overlay:ht,Title:pt,Description:Qe});var gt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(gt||{}),mt=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.LinkPanel=4]="LinkPanel",e[e.UnlinkPanel=5]="UnlinkPanel",e))(mt||{});let _t={0:e=>({...e,disclosureState:O(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>
1e.panelId===t.panelId?e:{...e,panelId:t.panelId}},yt=(0,n.createContext)(null);function wt(e){let t=(0,n.useContext)(yt);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,wt),t}return t}yt.displayName="DisclosureContext";let bt=(0,n.createContext)(null);function xt(e){let t=(0,n.useContext)(bt);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,xt),t}return t}bt.displayName="DisclosureAPIContext";let Ct=(0,n.createContext)(null);function St(e,t){return O(t.type,_t,e,t)}Ct.displayName="DisclosurePanelContext";let Et=n.Fragment,Mt=j(function(e,t){let{defaultOpen:r=!1,...i}=e,o=`headlessui-disclosure-button-${v()}`,a=`headlessui-disclosure-panel-${v()}`,s=(0,n.useRef)(null),l=E(t,S(e=>{s.current=e},void 0===e.as||e.as===n.Fragment)),u=(0,n.useRef)(null),h=(0,n.useRef)(null),d=(0,n.useReducer)(St,{disclosureState:r?0:1,linkedPanel:!1,buttonRef:h,panelRef:u,buttonId:o,panelId:a}),[{disclosureState:f},p]=d;(0,n.useEffect)(()=>p({type:2,buttonId:o}),[o,p]),(0,n.useEffect)(()=>p({type:3,panelId:a}),[a,p]);let g=c(e=>{p({type:1});let t=M(s);if(!t)return;let r=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(o):t.getElementById(o);null==r||r.focus()}),m=(0,n.useMemo)(()=>({close:g}),[g]),_=(0,n.useMemo)(()=>({open:0===f,close:g}),[f,g]),y={ref:l};return n.createElement(yt.Provider,{value:d},n.createElement(bt.Provider,{value:m},n.createElement(se,{value:O(f,{0:oe.Open,1:oe.Closed})},T({ourProps:y,theirProps:i,slot:_,defaultTag:Et,name:"Disclosure"}))))}),kt=j(function(e,t){let[r,i]=wt("Disclosure.Button"),o=(0,n.useContext)(Ct),a=null!==o&&o===r.panelId,s=(0,n.useRef)(null),l=E(s,t,a?null:r.buttonRef),u=c(e=>{var t;if(a){if(1===r.disclosureState)return;switch(e.key){case le.Space:case le.Enter:e.preventDefault(),e.stopPropagation(),i({type:0}),null==(t=r.buttonRef.current)||t.focus()}}else switch(e.key){case le.Space:case le.Enter:e.preventDefault(),e.stopPropagation(),i({type:0})}}),h=c(e=>{if(e.key===le.Space)e.preventDefault()}),d=c(t=>{var n;H(t.currentTarget)||e.disabled||(a?(i({type:0}),null==(n=r.buttonRef.current)||n.focus()):i({type:0}))}),f=(0,n.useMemo)(()=>({open:0===r.disclosureState}),[r]),p=x(e,s),v=e;return T({ourProps:a?{ref:l,type:p,onKeyDown:u,onClick:d}:{ref:l,id:r.buttonId,type:p,"aria-expanded":e.disabled?void 0:0===r.disclosureState,"aria-controls":r.linkedPanel?r.panelId:void 0,onKeyDown:u,onKeyUp:h,onClick:d},theirProps:v,slot:f,defaultTag:"button",name:"Disclosure.Button"})}),Lt=A.RenderStrategy|A.Static,Rt=j(function(e,t){let[r,i]=wt("Disclosure.Panel"),{close:o}=xt("Disclosure.Panel"),a=E(t,r.panelRef,()=>{r.linkedPanel||i({type:4})}),s=ae(),l=null!==s?s===oe.Open:0===r.disclosureState;(0,n.useEffect)(()=>()=>i({type:5}),[i]),(0,n.useEffect)(()=>{var t;1===r.disclosureState&&(null==(t=e.unmount)||t)&&i({type:5})},[r.disclosureState,e.unmount,i]);let c=(0,n.useMemo)(()=>({open:0===r.disclosureState,close:o}),[r,o]),u=e,h={ref:a,id:r.panelId};return n.createElement(Ct.Provider,{value:r.panelId},T({ourProps:h,theirProps:u,slot:c,defaultTag:"div",features:Lt,visible:l,name:"Disclosure.Panel"}))});Object.assign(Mt,{Button:kt,Panel:Rt});var Ot=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ot||{}),At=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(At||{}),Pt=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Pt||{}),Tt=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.SetDisabled=2]="SetDisabled",e[e.SetOrientation=3]="SetOrientation",e[e.GoToOption=4]="GoToOption",e[e.Search=5]="Search",e[e.ClearSearch=6]="ClearSearch",e[e.RegisterOption=7]="RegisterOption",e[e.UnregisterOption=8]="UnregisterOption",e))(Tt||{});function Dt(e,t=e=>e){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=ee(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return-1===i&&(i=null),{options:n,activeOptionIndex:i}}let Bt={1:e=>e.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{value:r,mode:n,compare:i}=e.propsRef.current,o=e.options.findIndex(e=>{let t=e.dataRef.current.value;return O(n,{1:()=>r.some(e=>i(e,t)),0:()=>i(r,t)})});return-1!==o&&(t=o),{...e,listboxState:0,activeOptionIndex:t}},2:(e,t)=>e.disabled===t.disabled?e:{...e,disabled:t.disabled},3:(e,t)=>
1e.orientation===t.orientation?e:{...e,orientation:t.orientation},4(e,t){var r;if(e.disabled||1===e.listboxState)return e;let n=Dt(e),i=R(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:i,activationTrigger:null!=(r=t.trigger)?r:1}},5:(e,t)=>{if(e.disabled||1===e.listboxState)return e;let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))}),o=i?e.options.indexOf(i):-1;return-1===o||o===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:o,activationTrigger:1}},6:e=>e.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},7:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=Dt(e,e=>[...e,r]);if(null===e.activeOptionIndex){let{value:i,mode:o,compare:a}=e.propsRef.current,s=t.dataRef.current.value;O(o,{1:()=>i.some(e=>a(e,s)),0:()=>a(i,s)})&&(n.activeOptionIndex=n.options.indexOf(r))}return{...e,...n}},8:(e,t)=>{let r=Dt(e,e=>{let r=e.findIndex(e=>e.id===t.id);return-1!==r&&e.splice(r,1),e});return{...e,...r,activationTrigger:1}}},jt=(0,n.createContext)(null);function It(e){let t=(0,n.useContext)(jt);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,It),t}return t}function zt(e,t){return O(t.type,Bt,e,t)}jt.displayName="ListboxContext";let Ht=n.Fragment,Ft=j(function(e,t){let{value:r,name:o,onChange:a,disabled:s=!1,horizontal:l=!1,multiple:u=!1,...h}=e;const d=l?"horizontal":"vertical";let f=E(t),p=(0,n.useReducer)(zt,{listboxState:1,propsRef:{current:{value:r,onChange:a,mode:u?1:0,compare:c((e,t)=>e===t)}},labelRef:(0,n.createRef)(),buttonRef:(0,n.createRef)(),optionsRef:(0,n.createRef)(),disabled:s,orientation:d,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1}),[{listboxState:v,propsRef:g,optionsRef:m,buttonRef:_},y]=p;g.current.value=r,g.current.mode=u?1:0,i(()=>{g.current.onChange=e=>O(g.current.mode,{0:()=>a(e),1(){let t=g.current.value.slice(),r=t.indexOf(e);return-1===r?t.push(e):t.splice(r,1),a(t)}})},[a,g]),i(()=>y({type:2,disabled:s}),[s]),i(()=>y({type:3,orientation:d}),[d]),w([_,m],(e,t)=>{var r;0===v&&(y({type:1}),Z(t,X.Loose)||(e.preventDefault(),null==(r=_.current)||r.focus()))});let b=(0,n.useMemo)(()=>({open:0===v,disabled:s}),[v,s]),x={ref:f};return n.createElement(jt.Provider,{value:p},n.createElement(se,{value:O(v,{0:oe.Open,1:oe.Closed})},null!=o&&null!=r&&F({[o]:r}).map(([e,t])=>n.createElement(ne,{features:re.Hidden,...I({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})})),T({ourProps:x,theirProps:h,slot:b,defaultTag:Ht,name:"Listbox"})))}),Vt=j(function(e,t){var r;let[i,o]=It("Listbox.Button"),s=E(i.buttonRef,t),u=`headlessui-listbox-button-${v()}`,h=l(),d=c(e=>{switch(e.key){case le.Space:case le.Enter:case le.ArrowDown:e.preventDefault(),o({type:0}),h.nextFrame(()=>{i.propsRef.current.value||o({type:4,focus:L.First})});break;case le.ArrowUp:e.preventDefault(),o({type:0}),h.nextFrame(()=>{i.propsRef.current.value||o({type:4,focus:L.Last})})}}),f=c(e=>{if(e.key===le.Space)e.preventDefault()}),p=c(e=>{if(H(e.currentTarget))return e.preventDefault();0===i.listboxState?(o({type:1}),h.nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1)):(e.preventDefault(),o({type:0}))}),g=a(()=>{if(i.labelRef.current)return[i.labelRef.current.id,u].join(" ")},[i.labelRef.current,u]),m=(0,n.useMemo)(()=>({open:0===i.listboxState,disabled:i.disabled}),[i]),_=e;return T({ourProps:{ref:s,id:u,type:x(e,i.buttonRef),"aria-haspopup":!0,"aria-controls":null==(r=i.optionsRef.current)?void 0:r.id,"aria-expanded":i.disabled?void 0:0===i.listboxState,"aria-labelledby":g,disabled:i.disabled,onKeyDown:d,onKeyUp:f,onClick:p},theirProps:_,slot:m,defaultTag:"button",name:"Listbox.Button"})}),Wt=j(function(e,t){let[r]=It("Listbox.Label"),i=`headlessui-listbox-label-${v()}`,o=E(r.labelRef,t),a=c(()=>{var e;return null==(e=r.buttonRef.current)?void 0:e.focus({preventScroll:!0})});return T({ourProps:{ref:o,id:i,onClick:a},theirProps:e,slot:(0,n.useMemo)(()=>({open:0===r.listboxState,disabled:r.disabled}),[r]),defaultTag:"label",name:"Listbox.Label"})}),Nt=A.RenderStrategy|A.Static,Ut=j(function(e,t){var r;let[i,o]=It("Listbox.Options"),u=E(i.optionsRef,t),h=`headlessui-listbox-options-${v()}`,d=l(),f=l(),p=ae(),g=null!==p?p===oe.Open:0===i.listboxState;(0,n.useEffect)(()=>{var e;let t=i.optionsRef.current;!t||0===i.listboxState&&t!==(null==(e=M(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})},[i.listboxState,i.optionsRef]);let m=c(e=>{switch(f.dispose(),e.key){case le.Space:if(""!==i.searchQuery)return e.preventDefault(),e.stopPropagation(),o({type:5,value:e.key});case le.Enter:if(e.preventDefault(),e.stopPropagation(),null!==i.activeOptionIndex){let{dataRef:e}=i.options[i.activeOptionIndex];i.propsRef.current.onChange(e.current.value)}0===i.propsRef.current.mode&&(o({type:1}),s().nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1));break;case O(i.orientation,{vertical:le.ArrowDown,horizontal:le.ArrowRight}):return e.preventDefault(),e.stopPropagation(),o({type:4,focus:L.Next});case O(i.orientation,{vertical:le.ArrowUp,horizontal:le.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),o({type:4,focus:L.Previous});case le.Home:case le.PageUp:return e.preventDefault(),e.stopPropagation(),o({type:4,focus:L.First});case le.End:case le.PageDown:return e.preventDefault(),e.stopPropagation(),o({type:4,focus:L.Last});case le.Escape:return e.preventDefault(),e.stopPropagation(),o({type:1}),d.nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case le.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(o({type:5,value:e.key}),f.setTimeout(()=>o({type:6}),350))}}),_=a(()=>{var e,t,r;return null!=(r=null==(e=i.labelRef.current)?void 0:e.id)?r:null==(t=i.buttonRef.current)?void 0:t.id},[i.labelRef.current,i.buttonRef.current]),y=(0,n.useMemo)(()=>({open:0===i.listboxState}),[i]),w=e;return T({ourProps:{"aria-activedescendant":null===i.activeOptionIndex||null==(r=i.options[i.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===i.propsRef.current.mode||void 0,"aria-labelledby":_,"aria-orientation":i.orientation,id:h,onKeyDown:m,role:"listbox",tabIndex:0,ref:u},theirProps:w,slot:y,defaultTag:"ul",features:Nt,visible:g,name:"Listbox.Options"})}),qt=j(function(e,t){let{disabled:r=!1,value:o,...a}=e,[l,u]=It("Listbox.Option"),h=`headlessui-listbox-option-${v()}`,d=null!==l.activeOptionIndex&&l.options[l.activeOptionIndex].id===h,{value:f,compare:p}=l.propsRef.current,g=O(l.propsRef.current.mode,{1:()=>f.some(e=>p(e,o)),0:()=>p(f,o)}),m=(0,n.useRef)(null),_=E(t,m);i(()=>{if(0!==l.listboxState||!d||0===l.activationTrigger)return;let e=s();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=m.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[m,d,l.listboxState,l.activationTrigger,l.activeOptionIndex]);let y=(0,n.useRef)({disabled:r,value:o,domRef:m});i(()=>{y.current.disabled=r},[y,r]),i(()=>{y.current.value=o},[y,o]),i(()=>{var e,t;y.current.textValue=null==(t=null==(e=m.current)?void 0:e.textContent)?void 0:t.toLowerCase()},[y,m]);let w=c(()=>l.propsRef.current.onChange(o));i(()=>(u({type:7,id:h,dataRef:y}),()=>u({type:8,id:h})),[y,h]);let b=c(e=>{if(r)return e.preventDefault();w(),0===l.propsRef.current.mode&&(u({type:1}),s().nextFrame(()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1))}),x=c(()=>{if(r)return u({type:4,focus:L.Nothing});u({type:4,focus:L.Specific,id:h})}),C=c(()=>{r||d||u({type:4,focus:L.Specific,id:h,trigger:0})}),S=c(()=>{r||!d||u({type:4,focus:L.Nothing})}),M=(0,n.useMemo)(()=>({active:d,selected:g,disabled:r}),[d,g,r]);return T({ourProps:{id:h,ref:_,role:"option",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,"aria-selected":!0===g||void 0,disabled:void 0,onClick:b,onFocus:x,onPointerMove:C,onMouseMove:C,onPointerLeave:S,onMouseLeave:S},theirProps:a,slot:M,defaultTag:"li",name:"Listbox.Option"})});Object.assign(Ft,{Button:Vt,Label:Wt,Options:Ut,Option:qt});var Yt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Yt||{}),Kt=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Kt||{}),Gt=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(Gt||{});function $t(e,t=e=>e){let r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=ee(t(e.items.slice()),e=>e.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return-1===i&&(i=null),{items:n,activeItemIndex:i}}let Xt={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,menuState:0},2:(e,t)=>{var r;let n=$t(e),i=R(t,{resolveItems:()=>n.items,resolveActiveIndex:()=>n.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeItemIndex:i,activationTrigger:null!=(r=t.trigger)?r:1}},3:(e,t)=>{let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled}),o=i?e.items.indexOf(i):-1;return-1===o||o===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let r=$t(e,e=>[...e,{id:t.id,dataRef:t.dataRef}]);return{...e,...r}},6:(e,t)=>{let r=$t(e,e=>{let r=e.findIndex(e=>e.id===t.id);return-1!==r&&e.splice(r,1),e});return{...e,...r,activationTrigger:1}}},Zt=(0,n.createContext)(null);function Jt(e){let t=(0,n.useContext)(Zt);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Jt),t}return t}function Qt(e,t){return O(t.type,Xt,e,t)}Zt.displayName="MenuContext";let er=n.Fragment,tr=j(function(e,t){let r=(0,n.useReducer)(Qt,{menuState:1,buttonRef:(0,n.createRef)(),itemsRef:(0,n.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:i,itemsRef:o,buttonRef:a},s]=r,l=E(t);w([a,o],(e,t)=>{var r;0===i&&(s({type:1}),Z(t,X.Loose)||(e.preventDefault(),null==(r=a.current)||r.focus()))});let c=(0,n.useMemo)(()=>({open:0===i}),[i]),u=e,h={ref:l};return n.createElement(Zt.Provider,{value:r},n.createElement(se,{value:O(i,{0:oe.Open,1:oe.Closed})},T({ourProps:h,theirProps:u,slot:c,defaultTag:er,name:"Menu"})))}),rr=j(function(e,t){var r;let[i,o]=Jt("Menu.Button"),a=E(i.buttonRef,t),s=`headlessui-menu-button-${v()}`,u=l(),h=c(e=>{switch(e.key){case le.Space:case le.Enter:case le.ArrowDown:e.preventDefault(),e.stopPropagation(),o({type:0}),u.nextFrame(()=>o({type:2,focus:L.First}));break;case le.ArrowUp:e.preventDefault(),e.stopPropagation(),o({type:0}),u.nextFrame(()=>o({type:2,focus:L.Last}))}}),d=c(e=>{if(e.key===le.Space)e.preventDefault()}),f=c(t=>{if(H(t.currentTarget))return t.preventDefault();e.disabled||(0===i.menuState?(o({type:1}),u.nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1)):(t.preventDefault(),t.stopPropagation(),o({type:0})))}),p=(0,n.useMemo)(()=>({open:0===i.menuState}),[i]),g=e;return T({ourProps:{ref:a,id:s,type:x(e,i.buttonRef),"aria-haspopup":!0,"aria-controls":null==(r=i.itemsRef.current)?void 0:r.id,"aria-expanded":e.disabled?void 0:0===i.menuState,onKeyDown:h,onKeyUp:d,onClick:f},theirProps:g,slot:p,defaultTag:"button",name:"Menu.Button"})}),nr=A.RenderStrategy|A.Static,ir=j(function(e,t){var r,i;let[o,a]=Jt("Menu.Items"),u=E(o.itemsRef,t),h=Ae(o.itemsRef),d=`headlessui-menu-items-${v()}`,f=l(),p=ae(),g=null!==p?p===oe.Open:0===o.menuState;(0,n.useEffect)(()=>{let e=o.itemsRef.current;!e||0===o.menuState&&e!==(null==h?void 0:h.activeElement)&&e.focus({preventScroll:!0})},[o.menuState,o.itemsRef,h]),k({container:o.itemsRef.current,enabled:0===o.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let m=c(e=>{var t,r;switch(f.dispose(),e.key){case le.Space:if(""!==o.searchQuery)return e.preventDefault(),e.stopPropagation(),a({type:3,value:e.key});case le.Enter:if(e.preventDefault(),e.stopPropagation(),a({type:1}),null!==o.activeItemIndex){let{dataRef:e}=o.items[o.activeItemIndex];null==(r=null==(t=e.current)?void 0:t.domRef.current)||r.click()}s().nextFrame(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})});break;case le.ArrowDown:return e.preventDefault(),e.stopPropagation(),a({type:2,focus:L.Next});case le.ArrowUp:return e.preventDefault(),e.stopPropagation(),a({type:2,focus:L.Previous});case le.Home:case le.PageUp:return e.preventDefault(),e.stopPropagation(),a({type:2,focus:L.First});case le.End:case le.PageDown:return e.preventDefault(),e.stopPropagation(),a({type:2,focus:L.Last});case le.Escape:e.preventDefault(),e.stopPropagation(),a({type:1}),s().nextFrame(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})});break;case le.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(a({type:3,value:e.key}),f.setTimeout(()=>a({type:4}),350))}}),_=c(e=>{if(e.key===le.Space)e.preventDefault()}),y=(0,n.useMemo)(()=>({open:0===o.menuState}),[o]),w=e;return T({ourProps:{"aria-activedescendant":null===o.activeItemIndex||null==(r=o.items[o.activeItemIndex])?void 0:r.id,"aria-labelledby":null==(i=o.buttonRef.current)?void 0:i.id,id:d,onKeyDown:m,onKeyUp:_,role:"menu",tabIndex:0,ref:u},theirProps:w,slot:y,defaultTag:"div",features:nr,visible:g,name:"Menu.Items"})}),or=n.Fragment,ar=j(function(e,t){let{disabled:r=!1,...o}=e,[a,l]=Jt("Menu.Item"),u=`headlessui-menu-item-${v()}`,h=null!==a.activeItemIndex&&a.items[a.activeItemIndex].id===u,d=(0,n.useRef)(null),f=E(t,d);i(()=>{if(0!==a.menuState||!h||0===a.activationTrigger)return;let e=s();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[d,h,a.menuState,a.activationTrigger,a.activeItemIndex]);let p=(0,n.useRef)({disabled:r,domRef:d});i(()=>{p.current.disabled=r},[p,r]),i(()=>{var e,t;p.current.textValue=null==(t=null==(e=d.current)?void 0:e.textContent)?void 0:t.toLowerCase()},[p,d]),i(()=>(l({type:5,id:u,dataRef:p}),()=>l({type:6,id:u})),[p,u]);let g=c(e=>{if(r)return e.preventDefault();l({type:1}),s().nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})}),m=c(()=>{if(r)return l({type:2,focus:L.Nothing});l({type:2,focus:L.Specific,id:u})}),_=c(()=>{r||h||l({type:2,focus:L.Specific,id:u,trigger:0})}),y=c(()=>{r||!h||l({type:2,focus:L.Nothing})}),w=(0,n.useMemo)(()=>({active:h,disabled:r}),[h,r]);return T({ourProps:{id:u,ref:f,role:"menuitem",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,disabled:void 0,onClick:g,onFocus:m,onPointerMove:_,onMouseMove:_,onPointerLeave:y,onMouseLeave:y},theirProps:o,slot:w,defaultTag:or,name:"Menu.Item"})});Object.assign(tr,{Button:rr,Items:ir,Item:ar});var sr=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(sr||{}),lr=(e=>(e[e.TogglePopover=0]="TogglePopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(lr||{});let cr={0:e=>({...e,popoverState:O(e.popoverState,{0:1,1:0})}),1:e=>1===e.popoverState?e:{...e,popoverState:1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>
1e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},ur=(0,n.createContext)(null);function hr(e){let t=(0,n.useContext)(ur);if(null===t){let t=new Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,hr),t}return t}ur.displayName="PopoverContext";let dr=(0,n.createContext)(null);function fr(e){let t=(0,n.useContext)(dr);if(null===t){let t=new Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,fr),t}return t}dr.displayName="PopoverAPIContext";let pr=(0,n.createContext)(null);function vr(){return(0,n.useContext)(pr)}pr.displayName="PopoverGroupContext";let gr=(0,n.createContext)(null);function mr(e,t){return O(t.type,cr,e,t)}gr.displayName="PopoverPanelContext";let _r=j(function(e,t){var r;let i=`headlessui-popover-button-${v()}`,o=`headlessui-popover-panel-${v()}`,a=(0,n.useRef)(null),s=E(t,S(e=>{a.current=e})),l=(0,n.useReducer)(mr,{popoverState:1,button:null,buttonId:i,panel:null,panelId:o,beforePanelSentinel:(0,n.createRef)(),afterPanelSentinel:(0,n.createRef)()}),[{popoverState:u,button:h,panel:d,beforePanelSentinel:f,afterPanelSentinel:p},g]=l,m=Ae(null!=(r=a.current)?r:h);(0,n.useEffect)(()=>g({type:3,buttonId:i}),[i,g]),(0,n.useEffect)(()=>g({type:5,panelId:o}),[o,g]);let _=(0,n.useMemo)(()=>{if(!h||!d)return!1;for(let e of document.querySelectorAll("body > *"))if(Number(null==e?void 0:e.contains(h))^Number(null==e?void 0:e.contains(d)))return!0;return!1},[h,d]),y=(0,n.useMemo)(()=>({buttonId:i,panelId:o,close:()=>g({type:1})}),[i,o,g]),b=vr(),x=null==b?void 0:b.registerPopover,C=c(()=>{var e;return null!=(e=null==b?void 0:b.isFocusWithinPopoverGroup())?e:(null==m?void 0:m.activeElement)&&((null==h?void 0:h.contains(m.activeElement))||(null==d?void 0:d.contains(m.activeElement)))});(0,n.useEffect)(()=>null==x?void 0:x(y),[x,y]),Pe(null==m?void 0:m.defaultView,"focus",e=>{var t,r,n,i;0===u&&(C()||!h||!d||null!=(r=null==(t=f.current)?void 0:t.contains)&&r.call(t,e.target)||null!=(i=null==(n=p.current)?void 0:n.contains)&&i.call(n,e.target)||g({type:1}))},!0),w([h,d],(e,t)=>{0===u&&(g({type:1}),Z(t,X.Loose)||(e.preventDefault(),null==h||h.focus()))});let M=c(e=>{g({type:1});let t=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:h:h;null==t||t.focus()}),k=(0,n.useMemo)(()=>({close:M,isPortalled:_}),[M,_]),L=(0,n.useMemo)(()=>({open:0===u,close:M}),[u,M]),R=e,A={ref:s};return n.createElement(ur.Provider,{value:l},n.createElement(dr.Provider,{value:k},n.createElement(se,{value:O(u,{0:oe.Open,1:oe.Closed})},T({ourProps:A,theirProps:R,slot:L,defaultTag:"div",name:"Popover"}))))}),yr=j(function(e,t){let[r,i]=hr("Popover.Button"),{isPortalled:o}=fr("Popover.Button"),a=(0,n.useRef)(null),s=`headlessui-focus-sentinel-${v()}`,l=vr(),u=null==l?void 0:l.closeOthers,h=(0,n.useContext)(gr),d=null!==h&&h===r.panelId,f=E(a,t,d?null:e=>i({type:2,button:e})),p=E(a,t),g=Ae(a),m=c(e=>{var t,n,o;if(d){if(1===r.popoverState)return;switch(e.key){case le.Space:case le.Enter:e.preventDefault(),null==(n=(t=e.target).click)||n.call(t),i({type:1}),null==(o=r.button)||o.focus()}}else switch(e.key){case le.Space:case le.Enter:e.preventDefault(),e.stopPropagation(),1===r.popoverState&&(null==u||u(r.buttonId)),i({type:0});break;case le.Escape:if(0!==r.popoverState)return null==u?void 0:u(r.buttonId);if(!a.current||(null==g?void 0:g.activeElement)&&!a.current.contains(g.activeElement))return;e.preventDefault(),e.stopPropagation(),i({type:1})}}),_=c(e=>{d||e.key===le.Space&&e.preventDefault()}),y=c(t=>{var n,o;H(t.currentTarget)||e.disabled||(d?(i({type:1}),null==(n=r.button)||n.focus()):(t.preventDefault(),t.stopPropagation(),1===r.popoverState&&(null==u||u(r.buttonId)),i({type:0}),null==(o=r.button)||o.focus()))}),w=c(e=>{e.preventDefault(),e.stopPropagation()}),b=0===r.popoverState,C=(0,n.useMemo)(()=>({open:b}),[b]),S=x(e,a),M=e,k=d?{ref:p,type:S,onKeyDown:m,onClick:y}:{ref:f,id:r.buttonId,type:S,"aria-expanded":e.disabled?void 0:0===r.popoverState,"aria-controls":r.panel?r.panelId:void 0,onKeyDown:m,onKeyUp:_,onClick:y,onMouseDown:w},L=Re(),R=c(()=>{let e=r.panel;e&&O(L.current,{[Le.Forwards]:()=>te(e,Y.First),[Le.Backwards]:()=>te(e,Y.Last)})});return n.createElement(n.Fragment,null,T({ourProps:k,theirProps:M,slot:C,defaultTag:"button",name:"Popover.Button"}),b&&!d&&o&&n.createElement(ne,{id:s,features:re.Focusable,as:"button",type:"button",onFocus:R}))}),wr=A.RenderStrategy|A.Static,br=j(function(e,t){let[{popoverState:r},i]=hr("Popover.Overlay"),o=E(t),a=`headlessui-popover-overlay-${v(
1)}`,s=ae(),l=null!==s?s===oe.Open:0===r,u=c(e=>{if(H(e.currentTarget))return e.preventDefault();i({type:1})});return T({ourProps:{ref:o,id:a,"aria-hidden":!0,onClick:u},theirProps:e,slot:(0,n.useMemo)(()=>({open:0===r}),[r]),defaultTag:"div",features:wr,visible:l,name:"Popover.Overlay"})}),xr=A.RenderStrategy|A.Static,Cr=j(function(e,t){let{focus:r=!1,...i}=e,[o,a]=hr("Popover.Panel"),{close:s,isPortalled:l}=fr("Popover.Panel"),u=`headlessui-focus-sentinel-before-${v()}`,h=`headlessui-focus-sentinel-after-${v()}`,d=(0,n.useRef)(null),f=E(d,t,e=>{a({type:4,panel:e})}),p=Ae(d),g=ae(),m=null!==g?g===oe.Open:0===o.popoverState,_=c(e=>{var t;if(e.key===le.Escape){if(0!==o.popoverState||!d.current||(null==p?void 0:p.activeElement)&&!d.current.contains(p.activeElement))return;e.preventDefault(),e.stopPropagation(),a({type:1}),null==(t=o.button)||t.focus()}});(0,n.useEffect)(()=>{var t;e.static||1===o.popoverState&&(null==(t=e.unmount)||t)&&a({type:4,panel:null})},[o.popoverState,e.unmount,e.static,a]),(0,n.useEffect)(()=>{if(!r||0!==o.popoverState||!d.current)return;let e=null==p?void 0:p.activeElement;d.current.contains(e)||te(d.current,Y.First)},[r,d,o.popoverState]);let y=(0,n.useMemo)(()=>({open:0===o.popoverState,close:s}),[o,s]),w={ref:f,id:o.panelId,onKeyDown:_,onBlur:r&&0===o.popoverState?e=>{var t,r,n,i,s;let l=e.relatedTarget;!l||!d.current||null!=(t=d.current)&&t.contains(l)||(a({type:1}),((null==(n=null==(r=o.beforePanelSentinel.current)?void 0:r.contains)?void 0:n.call(r,l))||(null==(s=null==(i=o.afterPanelSentinel.current)?void 0:i.contains)?void 0:s.call(i,l)))&&l.focus({preventScroll:!0}))}:void 0,tabIndex:-1},b=Re(),x=c(()=>{let e=d.current;e&&O(b.current,{[Le.Forwards]:()=>{te(e,Y.First)},[Le.Backwards]:()=>{var e;null==(e=o.button)||e.focus({preventScroll:!0})}})}),C=c(()=>{let e=d.current;e&&O(b.current,{[Le.Forwards]:()=>{var e,t,r;if(!o.button)return;let n=$(),i=n.indexOf(o.button),a=n.slice(0,i+1),s=[...n.slice(i+1),...a];for(let n of s.slice())if((null==(t=null==(e=null==n?void 0:n.id)?void 0:e.startsWith)?void 0:t.call(e,"headlessui-focus-sentinel-"))||(null==(r=o.panel)?void 0:r.contains(n))){let e=s.indexOf(n);-1!==e&&s.splice(e,1)}te(s,Y.First,!1)},[Le.Backwards]:()=>te(e,Y.Last)})});return n.createElement(gr.Provider,{value:o.panelId},m&&l&&n.createElement(ne,{id:u,ref:o.beforePanelSentinel,features:re.Focusable,as:"button",type:"button",onFocus:x}),T({ourProps:w,theirProps:i,slot:y,defaultTag:"div",features:xr,visible:m,name:"Popover.Panel"}),m&&l&&n.createElement(ne,{id:h,ref:o.afterPanelSentinel,features:re.Focusable,as:"button",type:"button",onFocus:C}))}),Sr=j(function(e,t){let r=(0,n.useRef)(null),i=E(r,t),[o,a]=(0,n.useState)([]),s=c(e=>{a(t=>{let r=t.indexOf(e);if(-1!==r){let e=t.slice();return e.splice(r,1),e}return t})}),l=c(e=>(a(t=>[...t,e]),()=>s(e))),u=c(()=>{var e;let t=M(r);if(!t)return!1;let n=t.activeElement;return!(null==(e=r.current)||!e.contains(n))||o.some(e=>{var r,i;return(null==(r=t.getElementById(e.buttonId))?void 0:r.contains(n))||(null==(i=t.getElementById(e.panelId))?void 0:i.contains(n))})}),h=c(e=>{for(let t of o)t.buttonId!==e&&t.close()}),d=(0,n.useMemo)(()=>({registerPopover:l,unregisterPopover:s,isFocusWithinPopoverGroup:u,closeOthers:h}),[l,s,u,h]),f=(0,n.useMemo)(()=>({}),[]),p=e,v={ref:i};return n.createElement(pr.Provider,{value:d},T({ourProps:v,theirProps:p,slot:f,defaultTag:"div",name:"Popover.Group"}))});Object.assign(_r,{Button:yr,Overlay:br,Panel:Cr,Group:Sr});let Er=(0,n.createContext)(null);function Mr(){let e=(0,n.useContext)(Er);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Mr),e}return e}function kr(){let[e,t]=(0,n.useState)([]);return[e.length>0?e.join(" "):void 0,(0,n.useMemo)(()=>function(e){let r=c(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return-1!==n&&r.splice(n,1),r}))),i=(0,n.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props}),[r,e.slot,e.name,e.props]);return n.createElement(Er.Provider,{value:i},e.children)},[t])]}let Lr=j(function(e,t){let{passive:r=!1,...n}=e,o=Mr(),a=`headlessui-label-${v()}`,s=E(t);i(()=>o.register(a),[a,o.register]);let l={ref:s,...o.props,id:a};return r&&("onClick"in l&&delete l.onClick,"onClick"in n&&delete n.onClick),T({ourProps:l,theirProps:n,slot:o.slot||{},defaultTag:"label",name:o.name||"Label"})});var Rr=(e=>(e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption",e))(Rr||{});let Or={0(e,t){let r=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];
1return{...e,options:ee(r,e=>e.element.current)}},1(e,t){let r=e.options.slice(),n=e.options.findIndex(e=>e.id===t.id);return-1===n?e:(r.splice(n,1),{...e,options:r})}},Ar=(0,n.createContext)(null);function Pr(e){let t=(0,n.useContext)(Ar);if(null===t){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Pr),t}return t}function Tr(e,t){return O(t.type,Or,e,t)}Ar.displayName="RadioGroupContext";let Dr=j(function(e,t){let{value:r,name:i,onChange:o,disabled:a=!1,...s}=e,l=c((e,t)=>e===t),[u,h]=(0,n.useReducer)(Tr,{options:[]}),d=u.options,[f,p]=kr(),[g,m]=Je(),_=`headlessui-radiogroup-${v()}`,y=(0,n.useRef)(null),w=E(y,t),b=(0,n.useMemo)(()=>d.find(e=>!e.propsRef.current.disabled),[d]),x=(0,n.useMemo)(()=>d.some(e=>l(e.propsRef.current.value,r)),[d,r]),C=c(e=>{var t;if(a||l(e,r))return!1;let n=null==(t=d.find(t=>l(t.propsRef.current.value,e)))?void 0:t.propsRef.current;return(null==n||!n.disabled)&&(o(e),!0)});k({container:y.current,accept:e=>"radio"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let S=c(e=>{let t=y.current;if(!t)return;let r=M(t),n=d.filter(e=>!1===e.propsRef.current.disabled).map(e=>e.element.current);switch(e.key){case le.Enter:N(e.currentTarget);break;case le.ArrowLeft:case le.ArrowUp:if(e.preventDefault(),e.stopPropagation(),te(n,Y.Previous|Y.WrapAround)===K.Success){let e=d.find(e=>e.element.current===(null==r?void 0:r.activeElement));e&&C(e.propsRef.current.value)}break;case le.ArrowRight:case le.ArrowDown:if(e.preventDefault(),e.stopPropagation(),te(n,Y.Next|Y.WrapAround)===K.Success){let e=d.find(e=>e.element.current===(null==r?void 0:r.activeElement));e&&C(e.propsRef.current.value)}break;case le.Space:{e.preventDefault(),e.stopPropagation();let t=d.find(e=>e.element.current===(null==r?void 0:r.activeElement));t&&C(t.propsRef.current.value)}}}),L=c(e=>(h({type:0,...e}),()=>h({type:1,id:e.id}))),R=(0,n.useMemo)(()=>({registerOption:L,firstOption:b,containsCheckedOption:x,change:C,disabled:a,value:r,compare:l}),[L,b,x,C,a,r,l]),O={ref:w,id:_,role:"radiogroup","aria-labelledby":f,"aria-describedby":g,onKeyDown:S};return n.createElement(m,{name:"RadioGroup.Description"},n.createElement(p,{name:"RadioGroup.Label"},n.createElement(Ar.Provider,{value:R},null!=i&&null!=r&&F({[i]:r}).map(([e,t])=>n.createElement(ne,{features:re.Hidden,...I({key:e,as:"input",type:"radio",checked:null!=t,hidden:!0,readOnly:!0,name:e,value:t})})),T({ourProps:O,theirProps:s,defaultTag:"div",name:"RadioGroup"}))))});var Br=(e=>(e[e.Empty=1]="Empty",e[e.Active=2]="Active",e))(Br||{});let jr=j(function(e,t){let r=(0,n.useRef)(null),o=E(r,t),a=`headlessui-radiogroup-option-${v()}`,[s,l]=kr(),[u,h]=Je(),{addFlag:d,removeFlag:f,hasFlag:p}=function(e=0){let[t,r]=(0,n.useState)(e),i=(0,n.useCallback)(e=>r(t=>t|e),[t]),o=(0,n.useCallback)(e=>Boolean(t&e),[t]),a=(0,n.useCallback)(e=>r(t=>t&~e),[r]),s=(0,n.useCallback)(e=>r(t=>t^e),[r]);return{addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}(1),{value:g,disabled:m=!1,..._}=e,y=(0,n.useRef)({value:g,disabled:m});i(()=>{y.current.value=g},[g,y]),i(()=>{y.current.disabled=m},[m,y]);let{registerOption:w,disabled:b,change:x,firstOption:C,containsCheckedOption:S,value:M,compare:k}=Pr("RadioGroup.Option");i(()=>w({id:a,element:r,propsRef:y}),[a,w,r,e]);let L=c(()=>{var e;!x(g)||(d(2),null==(e=r.current)||e.focus())}),R=c(()=>d(2)),O=c(()=>f(2)),A=(null==C?void 0:C.id)===a,P=b||m,D=k(M,g),B={ref:o,id:a,role:"radio","aria-checked":D?"true":"false","aria-labelledby":s,"aria-describedby":u,"aria-disabled":!!P||void 0,tabIndex:P?-1:D||!S&&A?0:-1,onClick:P?void 0:L,onFocus:P?void 0:R,onBlur:P?void 0:O},j=(0,n.useMemo)(()=>({checked:D,disabled:P,active:p(2)}),[D,P,p]);return n.createElement(h,{name:"RadioGroup.Description"},n.createElement(l,{name:"RadioGroup.Label"},T({ourProps:B,theirProps:_,slot:j,defaultTag:"div",name:"RadioGroup.Option"})))}),Ir=(Object.assign(Dr,{Option:jr,Label:Lr,Description:Qe}),(0,n.createContext)(null));Ir.displayName="GroupContext";let zr=n.Fragment;let Hr=j(function(e,t){let{checked:r,onChange:i,name:o,value:a,...s}=e,l=`headlessui-switch-${v()}`,u=(0,n.useContext)(Ir),h=(0,n.useRef)(null),d=E(h,t,null===u?null:u.setSwitch),f=c(()=>i(!r)),p=c(e=>{if(H(e.currentTarget))return e.preventDefault();e.preventDefault(),f()}),g=c(e=>{e.key===le.Space?(e.preventDefault(),f()):e.key===le.Enter&&N(e.currentTarget)}),m=c(e=>e.preventDefault()),_=(0,n.useMemo)(()=>({checked:r}),[r]),y={id:l,ref:d,role:"switch",type:x(e,h),tabIndex:0,"aria-checked":r,"aria-labelledby":null==u?void 0:u.labelledby,"aria-describedby":null==u?void 0:u.describedby,onClick:p,onKeyUp:g,onKeyPress:m};return n.createElement(n.Fragment,null,null!=o&&r&&n.createElement(ne,{features:re.Hidden,...I({as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:r,name:o,value:a})}
1),T({ourProps:y,theirProps:s,slot:_,defaultTag:"button",name:"Switch"}))});Object.assign(Hr,{Group:function(e){let[t,r]=(0,n.useState)(null),[i,o]=kr(),[a,s]=Je(),l=(0,n.useMemo)(()=>({switch:t,setSwitch:r,labelledby:i,describedby:a}),[t,r,i,a]),c=e;return n.createElement(s,{name:"Switch.Description"},n.createElement(o,{name:"Switch.Label",props:{onClick(){!t||(t.click(),t.focus({preventScroll:!0}))}}},n.createElement(Ir.Provider,{value:l},T({ourProps:{},theirProps:c,defaultTag:zr,name:"Switch.Group"}))))},Label:Lr,Description:Qe});function Fr({onFocus:e}){let[t,r]=(0,n.useState)(!0);return t?n.createElement(ne,{as:"button",type:"button",features:re.Focusable,onFocus:t=>{t.preventDefault();let n,i=50;n=requestAnimationFrame(function t(){if(!(i--<=0))return e()?(r(!1),void cancelAnimationFrame(n)):void(n=requestAnimationFrame(t));n&&cancelAnimationFrame(n)})}}):null}var Vr=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e[e.ForceRerender=5]="ForceRerender",e))(Vr||{});let Wr={0(e,t){let r=e.tabs.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))});if(t.index<0)return{...e,selectedIndex:e.tabs.indexOf(r[0])};if(t.index>e.tabs.length)return{...e,selectedIndex:e.tabs.indexOf(r[r.length-1])};let n=e.tabs.slice(0,t.index),i=[...e.tabs.slice(t.index),...n].find(e=>r.includes(e));return i?{...e,selectedIndex:e.tabs.indexOf(i)}:e},1:(e,t)=>e.tabs.includes(t.tab)?e:{...e,tabs:ee([...e.tabs,t.tab],e=>e.current)},2:(e,t)=>({...e,tabs:ee(e.tabs.filter(e=>e!==t.tab),e=>e.current)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:[...e.panels,t.panel]},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)}),5:e=>({...e})},Nr=(0,n.createContext)(null);function Ur(e){let t=(0,n.useContext)(Nr);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ur),t}return t}Nr.displayName="TabsSSRContext";let qr=(0,n.createContext)(null);function Yr(e){let t=(0,n.useContext)(qr);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Yr),t}return t}qr.displayName="TabsDataContext";let Kr=(0,n.createContext)(null);function Gr(e){let t=(0,n.useContext)(Kr);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Gr),t}return t}function $r(e,t){return O(t.type,Wr,e,t)}Kr.displayName="TabsActionsContext";let Xr=n.Fragment,Zr=j(function(e,t){let{defaultIndex:r=0,vertical:a=!1,manual:s=!1,onChange:l,selectedIndex:c=null,...u}=e;const h=a?"vertical":"horizontal",d=s?"manual":"auto";let f=E(t),[p,v]=(0,n.useReducer)($r,{selectedIndex:null!=c?c:r,tabs:[],panels:[]}),g=(0,n.useMemo)(()=>({selectedIndex:p.selectedIndex}),[p.selectedIndex]),m=o(l||(()=>{})),_=o(p.tabs),y=(0,n.useMemo)(()=>({orientation:h,activation:d,...p}),[h,d,p]),w=o(p.selectedIndex),b=(0,n.useMemo)(()=>({registerTab:e=>(v({type:1,tab:e}),()=>v({type:2,tab:e})),registerPanel:e=>(v({type:3,panel:e}),()=>v({type:4,panel:e})),forceRerender(){v({type:5})},change(e){w.current!==e&&m.current(e),w.current=e,v({type:0,index:e})}}),[v]);i(()=>{v({type:0,index:null!=c?c:r})},[c]);let x=(0,n.useRef)({tabs:[],panels:[]}),C={ref:f};return n.createElement(Nr.Provider,{value:x},n.createElement(Kr.Provider,{value:b},n.createElement(qr.Provider,{value:y},y.tabs.length<=0&&n.createElement(Fr,{onFocus:()=>{var e,t;for(let r of _.current)if(0===(null==(e=r.current)?void 0:e.tabIndex))return null==(t=r.current)||t.focus(),!0;return!1}}),T({ourProps:C,theirProps:u,slot:g,defaultTag:Xr,name:"Tabs"}))))}),Jr=j(function(e,t){let{orientation:r,selectedIndex:n}=Yr("Tab.List");return T({ourProps:{ref:E(t),role:"tablist","aria-orientation":r},theirProps:e,slot:{selectedIndex:n},defaultTag:"div",name:"Tabs.List"})}),Qr=j(function(e,t){var r,o;let a=`headlessui-tabs-tab-${v()}`,{orientation:s,activation:l,selectedIndex:u,tabs:h,panels:d}=Yr("Tab"),f=Gr("Tab"),p=Ur("Tab"),g=(0,n.useRef)(null),m=E(g,t,e=>{!e||f.forceRerender()});i(()=>f.registerTab(g),[f,g]);let _=p.current.tabs.indexOf(a);-1===_&&(_=p.current.tabs.push(a)-1);let y=h.indexOf(g);-1===y&&(y=_);let w=y===u,b=c(e=>{let t=h.map(e=>
1e.current).filter(Boolean);if(e.key===le.Space||e.key===le.Enter)return e.preventDefault(),e.stopPropagation(),void f.change(y);switch(e.key){case le.Home:case le.PageUp:return e.preventDefault(),e.stopPropagation(),te(t,Y.First);case le.End:case le.PageDown:return e.preventDefault(),e.stopPropagation(),te(t,Y.Last)}return O(s,{vertical:()=>e.key===le.ArrowUp?te(t,Y.Previous|Y.WrapAround):e.key===le.ArrowDown?te(t,Y.Next|Y.WrapAround):void 0,horizontal:()=>e.key===le.ArrowLeft?te(t,Y.Previous|Y.WrapAround):e.key===le.ArrowRight?te(t,Y.Next|Y.WrapAround):void 0})}),C=c(()=>{var e;null==(e=g.current)||e.focus()}),S=c(()=>{var e;null==(e=g.current)||e.focus(),f.change(y)}),M=c(e=>{e.preventDefault()}),k=(0,n.useMemo)(()=>({selected:w}),[w]),L=e;return T({ourProps:{ref:m,onKeyDown:b,onFocus:"manual"===l?C:S,onMouseDown:M,onClick:S,id:a,role:"tab",type:x(e,g),"aria-controls":null==(o=null==(r=d[y])?void 0:r.current)?void 0:o.id,"aria-selected":w,tabIndex:w?0:-1},theirProps:L,slot:k,defaultTag:"button",name:"Tabs.Tab"})}),en=j(function(e,t){let{selectedIndex:r}=Yr("Tab.Panels");return T({ourProps:{ref:E(t)},theirProps:e,slot:(0,n.useMemo)(()=>({selectedIndex:r}),[r]),defaultTag:"div",name:"Tabs.Panels"})}),tn=A.RenderStrategy|A.Static,rn=j(function(e,t){var r,o;let{selectedIndex:a,tabs:s,panels:l}=Yr("Tab.Panel"),c=Gr("Tab.Panel"),u=Ur("Tab.Panel"),h=`headlessui-tabs-panel-${v()}`,d=(0,n.useRef)(null),f=E(d,t,e=>{!e||c.forceRerender()});i(()=>c.registerPanel(d),[c,d]);let p=u.current.panels.indexOf(h);-1===p&&(p=u.current.panels.push(h)-1);let g=l.indexOf(d);-1===g&&(g=p);let m=g===a,_=(0,n.useMemo)(()=>({selected:m}),[m]),y=e;return T({ourProps:{ref:f,id:h,role:"tabpanel","aria-labelledby":null==(o=null==(r=s[g])?void 0:r.current)?void 0:o.id,tabIndex:m?0:-1},theirProps:y,slot:_,defaultTag:"div",features:tn,visible:m,name:"Tabs.Panel"})});Object.assign(Qr,{Group:Zr,List:Jr,Panels:en,Panel:rn});function nn(e,...t){e&&t.length>0&&e.classList.add(...t)}function on(e,...t){e&&t.length>0&&e.classList.remove(...t)}var an=(e=>(e.Ended="ended",e.Cancelled="cancelled",e))(an||{});function sn(e,t,r,n){let i=r?"enter":"leave",o=s(),a=void 0!==n?function(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}(n):()=>{},l=O(i,{enter:()=>t.enter,leave:()=>t.leave}),c=O(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=O(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return on(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),nn(e,...l,...u),o.nextFrame(()=>{on(e,...u),nn(e,...c),function(e,t){let r=s();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[o,a]=[n,i].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t});if(o+a!==0){let n=[];n.push(r.addEventListener(e,"transitionrun",()=>{n.splice(0).forEach(e=>e()),n.push(r.addEventListener(e,"transitionend",()=>{t("ended"),n.splice(0).forEach(e=>e())},{once:!0}),r.addEventListener(e,"transitioncancel",()=>{t("cancelled"),n.splice(0).forEach(e=>e())},{once:!0}))},{once:!0}))}else t("ended");r.add(()=>t("cancelled")),r.dispose}(e,r=>("ended"===r&&(on(e,...l),nn(e,...t.entered)),a(r)))}),o.dispose}function ln({container:e,direction:t,classes:r,events:n,onStart:a,onStop:u}){let h=Oe(),d=l(),f=o(t),p=c(()=>O(f.current,{enter:()=>n.current.beforeEnter(),leave:()=>n.current.beforeLeave(),idle:()=>{}})),v=c(()=>O(f.current,{enter:()=>n.current.afterEnter(),leave:()=>n.current.afterLeave(),idle:()=>{}}));i(()=>{let t=s();d.add(t.dispose);let n=e.current;if(n&&"idle"!==f.current&&h.current)return t.dispose(),p(),a.current(f.current),t.add(sn(n,r.current,"enter"===f.current,e=>{t.dispose(),O(e,{[an.Ended](){v(),u.current(f.current)},[an.Cancelled]:()=>{}})})),t.dispose},[t])}function cn(e=""){return e.split(" ").filter(e=>e.trim().length>1)}let un=(0,n.createContext)(null);un.displayName="TransitionContext";var hn=(e=>(e.Visible="visible",e.Hidden="hidden",e))(hn||{});let dn=(0,n.createContext)(null);function fn(e){return"children"in e?fn(e.children):e.current.filter(({state:e})=>"visible"===e).length>0}function pn(e){let t=o(e),r=(0,n.useRef)([]),i=Oe(),a=c((e,n=P.Hidden)=>{let o=r.current.findIndex(({id:t})=>t===e);-1!==o&&(O(n,{[P.Unmount](){r.current.splice(o,1)},[P.Hidden](){r.current[o].state="hidden"}}),g(()=>{var e;!fn(r)&&i.current&&(null==(e=t.current)||e.call(t))}))}),s=c(e=>{let t=r.current.find(({id:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):r.current.push({id:e,state:"visible"}),()=>a(e,P.Unmount)});return(0,n.useMemo)(()=>({children:r,register:s,unregister:a}),[s,a,r])}function vn(){}dn.displayName="NestingContext";let gn=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function mn(e){var t;let r={};for(let n of gn)r[n]=null!=(t=e[n])?t:vn;return r}let _n=A.RenderStrategy,yn=j(function(e,t){let{beforeEnter:r,afterEnter:i,beforeLeave:a,afterLeave:s,enter
1:l,enterFrom:c,enterTo:u,entered:d,leave:f,leaveFrom:p,leaveTo:g,...m}=e,_=(0,n.useRef)(null),y=E(_,t),[w,b]=(0,n.useState)("visible"),x=m.unmount?P.Unmount:P.Hidden,{show:C,appear:S,initial:M}=function(){let e=(0,n.useContext)(un);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:k,unregister:L}=function(){let e=(0,n.useContext)(dn);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),R=(0,n.useRef)(null),A=v();(0,n.useEffect)(()=>{if(A)return k(A)},[k,A]),(0,n.useEffect)(()=>{if(x===P.Hidden&&A){if(C&&"visible"!==w)return void b("visible");O(w,{hidden:()=>L(A),visible:()=>k(A)})}},[w,A,k,L,C,x]);let D=o({enter:cn(l),enterFrom:cn(c),enterTo:cn(u),entered:cn(d),leave:cn(f),leaveFrom:cn(p),leaveTo:cn(g)}),B=function(e){let t=(0,n.useRef)(mn(e));return(0,n.useEffect)(()=>{t.current=mn(e)},[e]),t}({beforeEnter:r,afterEnter:i,beforeLeave:a,afterLeave:s}),j=h();(0,n.useEffect)(()=>{if(j&&"visible"===w&&null===_.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[_,w,j]);let I=M&&!S,z=!j||I||R.current===C?"idle":C?"enter":"leave",H=(0,n.useRef)(!1),F=pn(()=>{H.current||(b("hidden"),L(A))});ln({container:_,classes:D,events:B,direction:z,onStart:o(()=>{H.current=!0}),onStop:o(e=>{H.current=!1,"leave"===e&&!fn(F)&&(b("hidden"),L(A))})}),(0,n.useEffect)(()=>{!I||(x===P.Hidden?R.current=null:R.current=C)},[C,I,w]);let V=m,W={ref:y};return n.createElement(dn.Provider,{value:F},n.createElement(se,{value:O(w,{visible:oe.Open,hidden:oe.Closed})},T({ourProps:W,theirProps:V,defaultTag:"div",features:_n,visible:"visible"===w,name:"Transition.Child"})))}),wn=j(function(e,t){let{show:r,appear:o=!1,unmount:a,...s}=e,l=(0,n.useRef)(null),c=E(l,t);h();let u=ae();if(void 0===r&&null!==u&&(r=O(u,{[oe.Open]:!0,[oe.Closed]:!1})),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,f]=(0,n.useState)(r?"visible":"hidden"),p=pn(()=>{f("hidden")}),[v,g]=(0,n.useState)(!0),m=(0,n.useRef)([r]);i(()=>{!1!==v&&m.current[m.current.length-1]!==r&&(m.current.push(r),g(!1))},[m,r]);let _=(0,n.useMemo)(()=>({show:r,appear:o,initial:v}),[r,o,v]);(0,n.useEffect)(()=>{if(r)f("visible");else if(fn(p)){let e=l.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&f("hidden")}else f("hidden")},[r,p]);let y={unmount:a};return n.createElement(dn.Provider,{value:p},n.createElement(un.Provider,{value:_},T({ourProps:{...y,as:n.Fragment,children:n.createElement(yn,{ref:c,...y,...s})},theirProps:{},defaultTag:n.Fragment,features:_n,visible:"visible"===d,name:"Transition"})))}),bn=j(function(e,t){let r=null!==(0,n.useContext)(un),i=null!==ae();return n.createElement(n.Fragment,null,!r&&i?n.createElement(wn,{ref:t,...e}):n.createElement(yn,{ref:t,...e}))});Object.assign(wn,{Child:bn,Root:wn})},8282(e,t,r){"use strict";r.d(t,{Srz:()=>i,sjE:()=>o,kAu:()=>a,hZx:()=>s,KSg:()=>l,icp:()=>c});var n=r(7810);n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M12 14l9-5-9-5-9 5 9 5z"}),n.createElement("path",{d:"M12 14l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 14l9-5-9-5-9 5 9 5zm0 0l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14zm-4 6v-7.5l4-2.222"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 13l-3 3m0 0l-3-3m3 3V8m0 13a9 9 0 110-18 9 9 0 010 18z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 15l-3-3m0 0l3-3m-3 3h8M3 12a9 9 0 1118 0 9 9 0 01-18 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 9l3 3m0 0l-3 3m3-3H8m13 0a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 11l3-3m0 0l3 3m-3-3v8m0-13a9 9 0 110 18 9 9 0 010-18z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 14l-7 7m0 0l-7-7m7 7V3"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 19l-7-7m0 0l7-7m-7 7h18"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 17l-4 4m0 0l-4-4m4 4V3"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 16l-4-4m0 0l4-4m-4 4h18"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7l4-4m0 0l4 4m-4-4v18"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14 5l7 7m0 0l-7 7m7-7H3"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 13l-5 5m0 0l-5-5m5 5V6"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 11l5-5m0 0l5 5m-5-5v12"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 10l7-7m0 0l7 7m-7-7v18"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 12a4 4 0 10-8 0 4 4 0 008 0zm0 0v1.5a2.5 2.5 0 005 0V12a9 9 0 10-9 9m4.5-1.206a8.959 8.959 0 01-4.5 1.207"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2M3 12l6.414 6.414a2 2 0 001.414.586H19a2 2 0 002-2V7a2 2 0 00-2-2h-8.172a2 2 0 00-1.414.586L3 12z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 4v12l-4-2-4 2V4M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 15.546c-.523 0-1.046.151-1.5.454a2.704 2.704 0 01-3 0 2.704 2.704 0 00-3 0 2.704 2.704 0 01-3 0 2.704 2.704 0 00-3 0 2.704 2.704 0 01-3 0 2.701 2.701 0 00-1.5-.454M9 6v2m3-2v2m3-2v2M9 3h.01M12 3h.01M15 3h.01M21 21v-7a2 2 0 00-2-2H5a2 2 0 00-2 2v7h18zm-3-9v-2a2 2 0 00-2-2H8a2 2 0 00-2 2v2h12z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 7h6m0 10v-3m-3 3h.01M9 17h.01M9 14h.01M12 14h.01M15 11h.01M12 11h.01M9 11h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00
1-2 2v12a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 13a3 3 0 11-6 0 3 3 0 016 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 9V7a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2m2 4h10a2 2 0 002-2v-6a2 2 0 00-2-2H9a2 2 0 00-2 2v6a2 2 0 002 2zm7-5a2 2 0 11-4 0 2 2 0 014 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 8v8m-4-5v5m-4-2v2m-2 4h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8h2a2 2 0 012 2v6a2 2 0 01-2 2h-2v4l-4-4H9a1.994 1.994 0 01-1.414-.586m0 0L11 14h4a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2v4l.586-.586z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}))});const i=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 13l-7 7-7-7m14-8l-7 7-7-7"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 19l-7-7 7-7m8 14l-7-7 7-7"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 5l7 7-7 7M5 5l7 7-7 7"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 11l7-7 7 7M5 19l7-7 7 7"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15l7-7 7 7"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"}))});const o=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M9 19l3 3m0 0l3-3m-3 3V10"}))});const a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14 10l-2 1m0 0l-2-1m2 1v2.5M20 7l-2 1m2-1l-2-1m2 1v2.5M14 4l-2-1-2 1M4 7l2-1M4 7l2 1M4 7v2.5M12 21l-2-1m2 1l2-1m-2 1v-2.5M6 18l-2-1v-2.5M18 18l2-1v-2.5"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 11V9a2 2 0 00-2-2m2 4v4a2 2 0 104 0v-1m-4-3H9m2 0h4m6 1a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.121 15.536c-1.171 1.952-3.07 1.952-4.242 0-1.172-1.953-1.172-5.119 0-7.072 1.171-1.952 3.07-1.952 4.242 0M8 10.5h4m-4 3h4m9-1.5a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 9a2 2 0 10-4 0v5a2 2 0 01-2 2h6m-6-4h4m8 0a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 8h6m-5 0a3 3 0 110 6H9l3 3m-3-6h6m6 1a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 8l3 5m0 0l3-5m-3 5v4m-3-5h6m-6 3h6m6-3a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWid
1th:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7v8a2 2 0 002 2h6M8 7V5a2 2 0 012-2h4.586a1 1 0 01.707.293l4.414 4.414a1 1 0 01.293.707V15a2 2 0 01-2 2h-2M8 7H6a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2v-2"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 13h6m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 17v-2m3 2v-4m3 4v-6m2 10H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 21h7a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v11m0 5l4.879-4.879m0 0a3 3 0 104.243-4.242 3 3 0 00-4.243 4.242z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 12h.01M12 12h.01M16 12h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.828 14.828a4 4 0 01-5.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});const s=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.933 12.8a1 1 0 000-1.6L6.6 7.2A1 1 0 005 8v8a1 1 0 001.
16.8l5.333-4zM19.933 12.8a1 1 0 000-1.6l-5.333-4A1 1 0 0013 8v8a1 1 0 001.6.8l5.333-4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 4v16M17 4v16M3 8h4m10 0h4M3 12h18M3 16h4m10 0h4M4 20h16a1 1 0 001-1V5a1 1 0 00-1-1H4a1 1 0 00-1 1v14a1 1 0 001 1z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 11c0 3.517-1.009 6.799-2.753 9.571m-3.44-2.04l.054-.09A13.916 13.916 0 008 11a4 4 0 118 0c0 1.017-.07 2.019-.203 3m-2.118 6.844A21.88 21.88 0 0015.171 17m3.839 1.132c.645-2.266.99-4.659.99-7.132A8 8 0 008 4.07M3 15.364c.64-1.319 1-2.8 1-4.364 0-1.457.39-2.823 1.07-4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.657 18.657A8 8 0 016.343 7.343S7 9 9 10c0-2 .5-5 2.986-7C14 5 16.09 5.777 17.656 7.343A7.975 7.975 0 0120 13a7.975 7.975 0 01-2.343 5.657z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 16.121A3 3 0 1012.015 11L11 14H9c0 .768.293 1.536.879 2.121z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 10v6m0 0l-3-3m3 3l3-3M3 17V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 19a2 2 0 01-2-2V7a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1M5 19h14a2 2 0 002-2v-5a2 2 0 00-2-2H9a2 2 0 00-2 2v5a2 2 0 01-2 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 13h6M3 17V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v13m0-13V6a2 2 0 112 2h-2zm0 0V5.5A2.5 2.5 0 109.5 8H12zm-7 4h14M5 12a2 2 0 110-4h14a2 2 0 110 4M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2
10 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 11.5V14m0-2.5v-6a1.5 1.5 0 113 0m-3 6a1.5 1.5 0 00-3 0v2a7.5 7.5 0 0015 0v-5a1.5 1.5 0 00-3 0m-6-3V11m0-5.5v-1a1.5 1.5 0 013 0v1m0 0V11m0-5.5a1.5 1.5 0 013 0v3m0 0V11"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 20l4-16m2 16l4-16M6 9h14M4 15h14"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V8a2 2 0 00-2-2h-5m-4 0V5a2 2 0 114 0v1m-4 0a2 2 0 104 0m-5 8a2 2 0 100-4 2 2 0 000 4zm0 0c1.306 0 2.417.835 2.83 2M9 14a3.001 3.001 0 00-2.83 2M15 11h3m-3 4h2"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 4H6a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-2m-4-1v8m0 0l3-3m-3 3L9 8m-5 5h2.586a1 1 0 01.707.293l2.414 2.414a1 1 0 00.707.293h3.172a1 1 0 00.707-.293l2.414-2.414a1 1 0 01.707-.293H20"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"}))});const l=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 14v3m4-3v3m4-3v3M3 21h18M3 10h18M3 7l9-4 9 4M4 10h16v11H4V10z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 10V3L4 14h7v7l9-11h-7z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 19v-8.93a2 2 0 01.89-1.664l7-4.666a2 2 0 012.22 0l7 4.666A2 2 0 0121 10.07V19M3 19a2 2 0 002 2h14a2 2 0 002-2M3 19l6.75-4.5M21 19l-6.75-4.5M3 10l6.75 4.5M21 10l-6.75 4.5m0 0l-1.14.76a2 2 0 01-2.22 0l-1.14-.76"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h8m-8 6h16"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h7"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16m-7 6h7"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 8h16M4 16h16"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 12H6"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20 12H4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.48
16L20.5 13"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 9v6m4-6v6m7-3a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 3l-6 6m0 0V4m0 5h5M5 3a2 2 0 00-2 2v1c0 8.284 6.716 15 15 15h1a2 2 0 002-2v-3.28a1 1 0 00-.684-.948l-4.493-1.498a1 1 0 00-1.21.502l-1.13 2.257a11.042 11.042 0 01-5.516-5.517l2.257-1.128a1 1 0 00.502-1.21L9.228 3.683A1 1 0 008.279 3H5z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 8l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2M5 3a2 2 0 00-2 2v1c0 8.284 6.716 15 15 15h1a2 2 0 002-2v-3.28a1 1 0 00-.684-.948l-4.493-1.498a1 1 0 00-1.21.502l-1.13 2.257a11.042 11.042 0 01-5.516-5.517l2.257-1.128a1 1 0 00.502-1.21L9.228 3.683A1 1 0 008.279 3H5z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 3h5m0 0v5m0-5l-6 6M5 3a2 2 0 00-2 2v1c0 8.284 6.716 15 15 15h1a2 2 0 002-2v-3.28a1 1 0 00-.684-.948l-4.493-1.498a1 1 0 00-1.21.502l-1.13 2.257a11.042 11.042 0 01-5.516-5.517l2.257-1.128a1 1 0 00.502-1.21L9.228 3.683A1 1 0 008.279 3H5z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6m0 0v6m0-6h6m-6 0H6"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v16m8-8H4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 13v-1m4 1v-3m4 3V8M8 21l4-4 4 4M3 4h18M4 4h16v12a1 1 0 01-1 1H5a1 1 0 01-1-1V4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 12l3-3 3 3 4-4M8 21l4-4 4 4M3 4h18M4 4h16v12a1 1 0 01-1 1H5a1 1 0 01-1-1V4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 17h2a2 2 0 002-2v-4a2 2 0 00-2-2H5a2 2 0 00-2 2v4a2 2 0 002 2h2m2 4h6a2 2 0 002-2v-4a2 2 0 00-2-2H9a2 2 0 00-2 2v4a2 2 0 002 2zm8-12V5a2 2 0 00-2-2H9a2 2 0 00-2 2v4h10z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 4a2 2 0 114 0v1a1 1 0 001 1h3a1 1 0 011 1v3a1 1 0 01-1 1h-1a2 2 0 100 4h1a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1v-1a2 2 0 10-4 0v1a1 1 0 01-1 1H7a1 1 0 01-1-1v-3a1 1 0 00-1-1H4a2 2 0 110-4h1a1 1 0 001-1V7
1a1 1 0 011-1h3a1 1 0 001-1V4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 15v-1a4 4 0 00-4-4H8m0 0l3 3m-3-3l3-3m9 14V5a2 2 0 00-2-2H6a2 2 0 00-2 2v16l4-2 4 2 4-2 4 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 14l6-6m-5.5.5h.01m4.99 5h.01M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16l3.5-2 3.5 2 3.5-2 3.5 2zM10 8.5a.5.5 0 11-1 0 .5.5 0 011 0zm5 5a.5.5 0 11-1 0 .5.5 0 011 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12.066 11.2a1 1 0 000 1.6l5.334 4A1 1 0 0019 16V8a1 1 0 00-1.6-.8l-5.333 4zM4.066 11.2a1 1 0 000 1.6l5.334 4A1 1 0 0011 16V8a1 1 0 00-1.6-.8l-5.334 4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 5c7.18 0 13 5.82 13 13M6 11a7 7 0 017 7m-6 0a1 1 0 11-2 0 1 1 0 012 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 16v2a2 2 0 01-2 2H5a2 2 0 01-2-2v-7a2 2 0 012-2h2m3-4H9a2 2 0 00-2 2v7a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-1m-1 4l-3 3m0 0l-3-3m3 3V3"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 6l3 1m0 0l-3 9a5.002 5.002 0 006.001 0M6 7l3 9M6 7l6-2m6 2l3-1m-3 1l-3 9a5.002 5.002 0 006.001 0M18 7l3 9m-3-9l-6-2m0-2v2m0 16V5m0 16H9m3 0h3"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.121 14.121L19 19m-7-7l7-7m-7 7l-2.879 2.879M12 12L9.121 9.121m0 5.758a3 3 0 10-4.243 4.243 3 3 0 004.243-4.243zm0-5.758a3 3 0 10-4.243-4.243 3 3 0 004.243 4.243z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16l2.879-2.879m0 0a3 3 0 104.243-4.242 3 3 0 00-4.243 4.242zM21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.3
116m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"}))});const c=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.618 5.984A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016zM12 9v2m0 4h.01"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 4h13M3 8h9m-9 4h6m4 0l4-4m0 0l4 4m-4-4v12"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 4h13M3 8h9m-9 4h9m5-4v12m0 0l-4-4m4 4l4-4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.364 5.636a9 9 0 010 12.728m0 0l-2.829-2.829m2.829 2.829L21 21M15.536 8.464a5 5 0 010 7.072m0 0l-2.829-2.829m-4.243 2.829a4.978 4.978 0 01-1.414-2.83m-1.414 5.658a9 9 0 01-2.167-9.238m7.824 2.167a1 1 0 111.414 1.414m-1.414-1.414L3 3m8.293 8.293l1.414 1.414"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.636 18.364a9 9 0 010-12.728m12.728 0a9 9 0 010 12.728m-9.9-2.829a5 5 0 010-7.07m7.072 0a5 5 0 010 7.07M13 12a1 1 0 11-2 0 1 1 0 012 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 10a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.364 5.636l-3.536 3.536m0 5.656l3.536 3.536M9.172 9.172L5.636 5.636m3.536 9.192l-3.536 3.536M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-5 0a4 4 0 11-8 0 4 4 0 018 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 16V4m0 0L3 8m4-4l4 4m6 0v12m0 0l4-4m-4 4l-4-4"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 10h18M3 14h18m-9-4v8m-7 0h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 14H5.236a2 2 0 01-1.789-2.894l3.5-7A2 2 0 018.736 3h4.018a2 2 0 01.485.06l3.76.94m-7 10v5a2 2 0 002 2h.096c.5 0 .905-.405.905-.904 0-.715.211-1.413.608-2.008L17 13V4m-7 10h2m5-10h2a2 2 0 012 2v6a2 2 0 01-2 2h-2.5"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14 10h4.764a2 2 0 011.789 2.894l-3.5 7A2 2 0 0115.263 21h-4.017c-.
1163 0-.326-.02-.485-.06L7 20m7-10V5a2 2 0 00-2-2h-.095c-.5 0-.905.405-.905.905 0 .714-.211 1.412-.608 2.006L7 11v9m7-10h-2M7 20H5a2 2 0 01-2-2v-6a2 2 0 012-2h2.5"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 5v2m0 4v2m0 4v2M5 5a2 2 0 00-2 2v3a2 2 0 110 4v3a2 2 0 002 2h14a2 2 0 002-2v-3a2 2 0 110-4V7a2 2 0 00-2-2H5z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 17h8m0 0V9m0 8l-8-8-4 4-6-6"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M9 17a2 2 0 11-4 0 2 2 0 014 0zM19 17a2 2 0 11-4 0 2 2 0 014 0z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16V6a1 1 0 00-1-1H4a1 1 0 00-1 1v10a1 1 0 001 1h1m8-1a1 1 0 01-1 1H9m4-1V8a1 1 0 011-1h2.586a1 1 0 01.707.293l3.414 3.414a1 1 0 01.293.707V16a1 1 0 01-1 1h-1m-6-1a1 1 0 001 1h1M5 17a2 2 0 104 0m-4 0a2 2 0 114 0m6 0a2 2 0 104 0m-4 0a2 2 0 114 0"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2
10 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 7a4 4 0 11-8 0 4 4 0 018 0zM9 14a6 6 0 00-6 6v1h12v-1a6 6 0 00-6-6zM21 12h-6"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.871 4A17.926 17.926 0 003 12c0 2.874.673 5.59 1.871 8m14.13 0a17.926 17.926 0 001.87-8c0-2.874-.673-5.59-1.87-8M9 9h1.246a1 1 0 01.961.725l1.586 5.55a1 1 0 00.961.725H15m1-7h-.08a2 2 0 00-1.519.698L9.6 15.302A2 2 0 018.08 16H8"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 17V7m0 10a2 2 0 01-2 2H5a2 2 0 01-2-2V7a2 2 0 012-2h2a2 2 0 012 2m0 10a2 2 0 002 2h2a2 2 0 002-2M9 7a2 2 0 012-2h2a2 2 0 012 2m0 10V7m0 10a2 2 0 002 2h2a2 2 0 002-2V7a2 2 0 00-2-2h-2a2 2 0 00-2 2"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 14v6m-3-3h6M6 10h2a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v2a2 2 0 002 2zm10 0h2a2 2 0 002-2V6a2 2 0 00-2-2h-2a2 2 0 00-2 2v2a2 2 0 002 2zM6 20h2a2 2 0 002-2v-2a2 2 0 00-2-2H6a2 2 0 00-2 2v2a2 2 0 002 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 10h16M4 14h16M4 18h16"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z",clipRule:"evenodd"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01m-7.08-7.071c3.904-3.905 10.236-3.905 14.141 0M1.394 9.393c5.857-5.857 15.355-5.857 21.213 0"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zM10 7v3m0 0v3m0-3h3m-3 0H7"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zM13 10H7"}))})},6689(e,t,r){"use strict";r.d(t,{RqJ:()=>i,Y5X:()=>o,$wH:()=>a,kAu:()=>s,b_Y:()=>l,uGX:()=>c,k3y:()=>u,qhh:()=>h,uv5:()=>d});var n=r(7810);n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M10.394 2.08a1 1 0 00-.788 0l-7 3a1 1 0 000 1.84L5.25 8.051a.999.999 0 01.356-.257l4
1-1.714a1 1 0 11.788 1.838L7.667 9.088l1.94.831a1 1 0 00.787 0l7-3a1 1 0 000-1.838l-7-3zM3.31 9.397L5 10.12v4.102a8.969 8.969 0 00-1.05-.174 1 1 0 01-.89-.89 11.115 11.115 0 01.25-3.762zM9.3 16.573A9.026 9.026 0 007 14.935v-3.957l1.818.78a3 3 0 002.364 0l5.508-2.361a11.026 11.026 0 01.25 3.762 1 1 0 01-.89.89 8.968 8.968 0 00-5.35 2.524 1 1 0 01-1.4 0zM6 18a1 1 0 001-1v-2.065a8.935 8.935 0 00-2-.712V17a1 1 0 001 1z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M5 4a1 1 0 00-2 0v7.268a2 2 0 000 3.464V16a1 1 0 102 0v-1.268a2 2 0 000-3.464V4zM11 4a1 1 0 10-2 0v1.268a2 2 0 000 3.464V16a1 1 0 102 0V8.732a2 2 0 000-3.464V4zM16 3a1 1 0 011 1v7.268a2 2 0 010 3.464V16a1 1 0 11-2 0v-1.268a2 2 0 010-3.464V4a1 1 0 011-1z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M18 13V5a2 2 0 00-2-2H4a2 2 0 00-2 2v8a2 2 0 002 2h3l3 3 3-3h3a2 2 0 002-2zM5 7a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1zm1 3a1 1 0 100 2h3a1 1 0 100-2H6z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M4 3a2 2 0 100 4h12a2 2 0 100-4H4z"}),n.createElement("path",{fillRule:"evenodd",d:"M3 8h14v7a2 2 0 01-2 2H5a2 2 0 01-2-2V8zm5 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-11a1 1 0 10-2 0v3.586L7.707 9.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 10.586V7z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm.707-10.293a1 1 0 00-1.414-1.414l-3 3a1 1 0 000 1.414l3 3a1 1 0 001.414-1.414L9.414 11H13a1 1 0 100-2H9.414l1.293-1.293z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-8.707l-3-3a1 1 0 00-1.414 1.414L10.586 9H7a1 1 0 100 2h3.586l-1.293 1.293a1 1 0 101.414 1.414l3-3a1 1 0 000-1.414z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-8.707l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 001.414 1.414L9 9.414V13a1 1 0 102 0V9.414l1.293 1.293a1 1 0 001.414-1.414z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M16.707 10.293a1 1 0 010 1.414l-6 6a1 1 0 01-1.414 0l-6-6a1 1 0 111.414-1.414L9 14.586V3a1 1 0 012 0v11.586l4.293-4.293a1 1 0 011.414 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M14.707 12.293a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 111.414-1.414L9 14.586V3a1 1 0 012 0v11.586l2.293-2.293a1 1 0 011.414 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5.293 7.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 11-2 0V5.414L6.707 7.707a1 1 0 01-1.414 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M14.707 10.293a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 111.414-1.414L9 12.586V5a1 1 0 012 0v7.586l2.293-2.293a1 1 0 011.414 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M9.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L7.414 9H15a1 1 0 110 2H7.414l2.293 2.293a1 1 0 010 1.414z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t}
1,e),n.createElement("path",{fillRule:"evenodd",d:"M5.293 9.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 7.414V15a1 1 0 11-2 0V7.414L6.707 9.707a1 1 0 01-1.414 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3.293 9.707a1 1 0 010-1.414l6-6a1 1 0 011.414 0l6 6a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 11-2 0V5.414L4.707 9.707a1 1 0 01-1.414 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 4a1 1 0 011-1h4a1 1 0 010 2H6.414l2.293 2.293a1 1 0 01-1.414 1.414L5 6.414V8a1 1 0 01-2 0V4zm9 1a1 1 0 110-2h4a1 1 0 011 1v4a1 1 0 11-2 0V6.414l-2.293 2.293a1 1 0 11-1.414-1.414L13.586 5H12zm-9 7a1 1 0 112 0v1.586l2.293-2.293a1 1 0 011.414 1.414L6.414 15H8a1 1 0 110 2H4a1 1 0 01-1-1v-4zm13-1a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 110-2h1.586l-2.293-2.293a1 1 0 011.414-1.414L15 13.586V12a1 1 0 011-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M14.243 5.757a6 6 0 10-.986 9.284 1 1 0 111.087 1.678A8 8 0 1118 10a3 3 0 01-4.8 2.401A4 4 0 1114 10a1 1 0 102 0c0-1.537-.586-3.07-1.757-4.243zM12 10a2 2 0 10-4 0 2 2 0 004 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M6.707 4.879A3 3 0 018.828 4H15a3 3 0 013 3v6a3 3 0 01-3 3H8.828a3 3 0 01-2.12-.879l-4.415-4.414a1 1 0 010-1.414l4.414-4.414zm4 2.414a1 1 0 00-1.414 1.414L10.586 10l-1.293 1.293a1 1 0 101.414 1.414L12 11.414l1.293 1.293a1 1 0 001.414-1.414L13.414 10l1.293-1.293a1 1 0 00-1.414-1.414L12 8.586l-1.293-1.293z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M13.477 14.89A6 6 0 015.11 6.524l8.367 8.368zm1.414-1.414L6.524 5.11a6 6 0 018.367 8.367zM18 10a8 8 0 11-16 0 8 8 0 0116 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M7 2a1 1 0 00-.707 1.707L7 4.414v3.758a1 1 0 01-.293.707l-4 4C.817 14.769 2.156 18 4.828 18h10.343c2.673 0 4.012-3.231 2.122-5.121l-4-4A1 1 0 0113 8.172V4.414l.707-.707A1 1 0 0013 2H7zm2 6.172V4h2v4.172a3 3 0 00.879 2.12l1.027 1.028a4 4 0 00-2.171.102l-.47.156a4 4 0 01-2.53 0l-.563-.187a1.993 1.993 0 00-.114-.035l1.063-1.063A3 3 0 009 8.172z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M10 2a6 6 0 00-6 6v3.586l-.707.707A1 1 0 004 14h12a1 1 0 00.707-1.707L16 11.586V8a6 6 0 00-6-6zM10 18a3 3 0 01-3-3h6a3 3 0 01-3 3z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t}
1,e),n.createElement("path",{d:"M9 4.804A7.968 7.968 0 005.5 4c-1.255 0-2.443.29-3.5.804v10A7.969 7.969 0 015.5 14c1.669 0 3.218.51 4.5 1.385A7.962 7.962 0 0114.5 14c1.255 0 2.443.29 3.5.804v-10A7.968 7.968 0 0014.5 4c-1.255 0-2.443.29-3.5.804V12a1 1 0 11-2 0V4.804z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 5a2 2 0 012-2h10a2 2 0 012 2v10a2 2 0 01-2 2H5a2 2 0 01-2-2V5zm11 1H6v8l4-2 4 2V6z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M5 4a2 2 0 012-2h6a2 2 0 012 2v14l-5-2.5L5 18V4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M6 6V5a3 3 0 013-3h2a3 3 0 013 3v1h2a2 2 0 012 2v3.57A22.952 22.952 0 0110 13a22.95 22.95 0 01-8-1.43V8a2 2 0 012-2h2zm2-1a1 1 0 011-1h2a1 1 0 011 1v1H8V5zm1 5a1 1 0 011-1h.01a1 1 0 110 2H10a1 1 0 01-1-1z",clipRule:"evenodd"}),n.createElement("path",{d:"M2 13.692V16a2 2 0 002 2h12a2 2 0 002-2v-2.308A24.974 24.974 0 0110 15c-2.796 0-5.487-.46-8-1.308z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M6 3a1 1 0 011-1h.01a1 1 0 010 2H7a1 1 0 01-1-1zm2 3a1 1 0 00-2 0v1a2 2 0 00-2 2v1a2 2 0 00-2 2v.683a3.7 3.7 0 011.055.485 1.704 1.704 0 001.89 0 3.704 3.704 0 014.11 0 1.704 1.704 0 001.89 0 3.704 3.704 0 014.11 0 1.704 1.704 0 001.89 0A3.7 3.7 0 0118 12.683V12a2 2 0 00-2-2V9a2 2 0 00-2-2V6a1 1 0 10-2 0v1h-1V6a1 1 0 10-2 0v1H8V6zm10 8.868a3.704 3.704 0 01-4.055-.036 1.704 1.704 0 00-1.89 0 3.704 3.704 0 01-4.11 0 1.704 1.704 0 00-1.89 0A3.704 3.704 0 012 14.868V17a1 1 0 001 1h14a1 1 0 001-1v-2.132zM9 3a1 1 0 011-1h.01a1 1 0 110 2H10a1 1 0 01-1-1zm3 0a1 1 0 011-1h.01a1 1 0 110 2H13a1 1 0 01-1-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M6 2a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V4a2 2 0 00-2-2H6zm1 2a1 1 0 000 2h6a1 1 0 100-2H7zm6 7a1 1 0 011 1v3a1 1 0 11-2 0v-3a1 1 0 011-1zm-3 3a1 1 0 100 2h.01a1 1 0 100-2H10zm-4 1a1 1 0 011-1h.01a1 1 0 110 2H7a1 1 0 01-1-1zm1-4a1 1 0 100 2h.01a1 1 0 100-2H7zm2 1a1 1 0 011-1h.01a1 1 0 110 2H10a1 1 0 01-1-1zm4-4a1 1 0 100 2h.01a1 1 0 100-2H13zM9 9a1 1 0 011-1h.01a1 1 0 110 2H10a1 1 0 01-1-1zM7 8a1 1 0 000 2h.01a1 1 0 000-2H7z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2V7a2 2 0 00-2-2h-1.586a1 1 0 01-.707-.293l-1.121-1.121A2 2 0 0011.172 3H8.828a2 2 0 00-1.414.586L6.293 4.707A1 1 0 015.586 5H4zm6 9a3 3 0 100-6 3 3 0 000 6z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4 4a2 2 0 00-2 2v4a2 2 0 002 2V6h10a2 2 0 00-2-2H4zm2 6a2 2 0 012-2h8a2 2 0 012 2v4a2 2 0 01-2 2H8a2 2 0 01-2-2v-4zm6 4a2 2 0 100-4 2 2 0 000 4z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M2 11a1 1 0 011-1h2a1 1 0 011 1v5a1 1 0 01-1 1H3a1 1 0 01-1-1v-5zM8 7a1 1 0 011-1h2a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1V7zM14 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1h-2a1 1 0 01-1-1V4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M2 10a8 8 0 018-8v8h8a8 8 0 11-16 0z"}),n.createElement("path",{d:"M12 2.252A8.014 8.014 0 0117.748 8H12V2.252z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5 3a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2V5a2 2 0 00-2-2H5zm9 4a1 1 0 10-2 0v6a1 1 0 102 0V7zm-3 2a1 1 0 10-2 0v4a1 1 0 102 0V9zm-3 3a1 1 0 10-2 0v1a1 1 0 102 0v-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M2 5a2 2 0 012-2h7a2 2 0 012 2v4a2 2 0 01-2 2H9l-3 3v-3H4a2 2 0 01-2-2V5z"}),n.createElement("path",{d:"M15 7v2a4 4 0 01-4 4H9.828l-1.766 1.767c.28.149.599.233.938.233h2l3 3v-3h2a2 2 0 002-2V9a2 2 0 00-2-2h-1z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M18 5v8a2 2 0 01-2 2h-5l-5 4v-4H4a2 2 0 01-2-2V5a2 2 0 012-2h12a2 2 0 012 2zM7 8H5v2h2V8zm2 0h2v2H9V8zm6 0h-2v2h2V8z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M18 10c0 3.866-3.582 7-8 7a8.841 8.841 0 01-4.083-.98L2 17l1.338-3.123C2.493 12.767 2 11.434 2 10c0-3.866 3.582-7 8-7s8 3.134 8 7zM7 9H5v2h2V9zm8 0h-2v2h2V9zM9 9h2v2H9V9z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M15.707 4.293a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-5-5a1 1 0 011.414-1.414L10 8.586l4.293-4.293a1 1 0 011.414 0zm0 6a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-5-5a1 1 0 111.414-1.414L10 14.586l4.293-4.293a1 1 0 011.414 0z",clipRule:"evenodd"}))});const i=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M15.707 15.707a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414l5-5a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 010 1.414zm-6 0a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414l5-5a1 1 0 011.414 1.414L5.414 10l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"}))});const o=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10.293 15.707a1 1 0 010-1.414L14.586 10l-4.293-4.293a1 1 0 111.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z",clipRule:"evenodd"}),n.createElement("path",{fillRule:"evenodd",d:"M4.293 15.707a1 1 0 010-1.414L8.586 10 4.293 5.707a1 1 0 011.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4.293 15.707a1 1 0 010-1.414l5-5a1 1 0 011.414 0l5 5a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414 0zm0-6a1 1 0 010-1.414l5-5a1 1 0 011.414 0l5 5a1 1 0 01-1.414 1.414L10 5.414 5.707 9.707a1 1 0 01-1.414 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M14.707 12.707
1a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M13 7H7v6h6V7z"}),n.createElement("path",{fillRule:"evenodd",d:"M7 2a1 1 0 012 0v1h2V2a1 1 0 112 0v1h2a2 2 0 012 2v2h1a1 1 0 110 2h-1v2h1a1 1 0 110 2h-1v2a2 2 0 01-2 2h-2v1a1 1 0 11-2 0v-1H9v1a1 1 0 11-2 0v-1H5a2 2 0 01-2-2v-2H2a1 1 0 110-2h1V9H2a1 1 0 010-2h1V5a2 2 0 012-2h2V2zM5 5h10v10H5V5z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),n.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M8 2a1 1 0 000 2h2a1 1 0 100-2H8z"}),n.createElement("path",{d:"M3 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v6h-4.586l1.293-1.293a1 1 0 00-1.414-1.414l-3 3a1 1 0 000 1.414l3 3a1 1 0 001.414-1.414L10.414 13H15v3a2 2 0 01-2 2H5a2 2 0 01-2-2V5zM15 11h2a1 1 0 110 2h-2v-2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),n.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm3 4a1 1 0 000 2h.01a1 1 0 100-2H7zm3 0a1 1 0 000 2h3a1 1 0 100-2h-3zm-3 4a1 1 0 100 2h.01a1 1 0 100-2H7zm3 0a1 1 0 100 2h3a1 1 0 100-2h-3z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),n.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z",clipRule:"evenodd"}))});const a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M2 9.5A3.5 3.5 0 005.5 13H9v2.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 15.586V13h2.5a4.5 4.5 0 10-.616-8.958 4.002 4.002 0 10-7.753 1.977A3.5 3.5 0 002 9.5zm9 3.5H9V8a1 1 0 012 0v5z",clipRule:"evenodd"}))});const s=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M5.5 13a3.5 3.5 0 01-.369-6.98 4 4 0 117.753-1.977A4.5 4.5 0 1113.5 13H11V9.413l1.293 1.293a1 1 0 001.414-1.414l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 001.414 1.414L9 9.414V13H5.5z"}),n.createElement("path",{d:"M9 13h2v5a1 1 0 11-2 0v-5z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M5.5 16a3.5 3.5 0 01-.369-6.98 4 4 0 117.753-1.977A4.5 4.5 0 1113.5 16h-8z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M12.316 3.051a1 1 0 01.633 1.265l-4 12a1 1 0 11-1.898-.632l4-12a1 1 0 011.265-.633zM5.707 6.293a1 1 0 010 1.414L3.414 10l2.293 2.293a1 1 0 11-1.414 1.414l-3-3a1 1 0 010-1.414l3-3a1 1 0 011.414 0zm8.586 0a1 1 0 011.414 0l3 3a1 1 0 010 1.414l-3 3a1 1 0 11-1.414-1.414L16.586 10l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0
1a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M7 3a1 1 0 000 2h6a1 1 0 100-2H7zM4 7a1 1 0 011-1h10a1 1 0 110 2H5a1 1 0 01-1-1zM2 11a2 2 0 012-2h12a2 2 0 012 2v4a2 2 0 01-2 2H4a2 2 0 01-2-2v-4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4 2a2 2 0 00-2 2v11a3 3 0 106 0V4a2 2 0 00-2-2H4zm1 14a1 1 0 100-2 1 1 0 000 2zm5-1.757l4.9-4.9a2 2 0 000-2.828L13.485 5.1a2 2 0 00-2.828 0L10 5.757v8.486zM16 18H9.071l6-6H16a2 2 0 012 2v2a2 2 0 01-2 2z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M4 4a2 2 0 00-2 2v1h16V6a2 2 0 00-2-2H4z"}),n.createElement("path",{fillRule:"evenodd",d:"M18 9H2v5a2 2 0 002 2h12a2 2 0 002-2V9zM4 13a1 1 0 011-1h1a1 1 0 110 2H5a1 1 0 01-1-1zm5-1a1 1 0 100 2h1a1 1 0 100-2H9z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M9.504 1.132a1 1 0 01.992 0l1.75 1a1 1 0 11-.992 1.736L10 3.152l-1.254.716a1 1 0 11-.992-1.736l1.75-1zM5.618 4.504a1 1 0 01-.372 1.364L5.016 6l.23.132a1 1 0 11-.992 1.736L4 7.723V8a1 1 0 01-2 0V6a.996.996 0 01.52-.878l1.734-.99a1 1 0 011.364.372zm8.764 0a1 1 0 011.364-.372l1.733.99A1.002 1.002 0 0118 6v2a1 1 0 11-2 0v-.277l-.254.145a1 1 0 11-.992-1.736l.23-.132-.23-.132a1 1 0 01-.372-1.364zm-7 4a1 1 0 011.364-.372L10 8.848l1.254-.716a1 1 0 11.992 1.736L11 10.58V12a1 1 0 11-2 0v-1.42l-1.246-.712a1 1 0 01-.372-1.364zM3 11a1 1 0 011 1v1.42l1.246.712a1 1 0 11-.992 1.736l-1.75-1A1 1 0 012 14v-2a1 1 0 011-1zm14 0a1 1 0 011 1v2a1 1 0 01-.504.868l-1.75 1a1 1 0 11-.992-1.736L16 13.42V12a1 1 0 011-1zm-9.618 5.504a1 1 0 011.364-.372l.254.145V16a1 1 0 112 0v.277l.254-.145a1 1 0 11.992 1.736l-1.735.992a.995.995 0 01-1.022 0l-1.735-.992a1 1 0 01-.372-1.364z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M11 17a1 1 0 001.447.894l4-2A1 1 0 0017 15V9.236a1 1 0 00-1.447-.894l-4 2a1 1 0 00-.553.894V17zM15.211 6.276a1 1 0 000-1.788l-4.764-2.382a1 1 0 00-.894 0L4.789 4.488a1 1 0 000 1.788l4.764 2.382a1 1 0 00.894 0l4.764-2.382zM4.447 8.342A1 1 0 003 9.236V15a1 1 0 00.553.894l4 2A1 1 0 009
117v-5.764a1 1 0 00-.553-.894l-4-2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM7 4a1 1 0 000 2 1 1 0 011 1v1H7a1 1 0 000 2h1v3a3 3 0 106 0v-1a1 1 0 10-2 0v1a1 1 0 11-2 0v-3h3a1 1 0 100-2h-3V7a3 3 0 00-3-3z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M8.433 7.418c.155-.103.346-.196.567-.267v1.698a2.305 2.305 0 01-.567-.267C8.07 8.34 8 8.114 8 8c0-.114.07-.34.433-.582zM11 12.849v-1.698c.22.071.412.164.567.267.364.243.433.468.433.582 0 .114-.07.34-.433.582a2.305 2.305 0 01-.567.267z"}),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a1 1 0 10-2 0v.092a4.535 4.535 0 00-1.676.662C6.602 6.234 6 7.009 6 8c0 .99.602 1.765 1.324 2.246.48.32 1.054.545 1.676.662v1.941c-.391-.127-.68-.317-.843-.504a1 1 0 10-1.51 1.31c.562.649 1.413 1.076 2.353 1.253V15a1 1 0 102 0v-.092a4.535 4.535 0 001.676-.662C13.398 13.766 14 12.991 14 12c0-.99-.602-1.765-1.324-2.246A4.535 4.535 0 0011 9.092V7.151c.391.127.68.317.843.504a1 1 0 101.511-1.31c-.563-.649-1.413-1.076-2.354-1.253V5z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.736 6.979C9.208 6.193 9.696 6 10 6c.304 0 .792.193 1.264.979a1 1 0 001.715-1.029C12.279 4.784 11.232 4 10 4s-2.279.784-2.979 1.95c-.285.475-.507 1-.67 1.55H6a1 1 0 000 2h.013a9.358 9.358 0 000 1H6a1 1 0 100 2h.351c.163.55.385 1.075.67 1.55C7.721 15.216 8.768 16 10 16s2.279-.784 2.979-1.95a1 1 0 10-1.715-1.029c-.472.786-.96.979-1.264.979-.304 0-.792-.193-1.264-.979a4.265 4.265 0 01-.264-.521H10a1 1 0 100-2H8.017a7.36 7.36 0 010-1H10a1 1 0 100-2H8.472c.08-.185.167-.36.264-.521z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-14a3 3 0 00-3 3v2H7a1 1 0 000 2h1v1a1 1 0 01-1 1 1 1 0 100 2h6a1 1 0 100-2H9.83c.11-.313.17-.65.17-1v-1h1a1 1 0 100-2h-1V7a1 1 0 112 0 1 1 0 102 0 3 3 0 00-3-3z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM7 5a1 1 0 100 2h1a2 2 0 011.732 1H7a1 1 0 100 2h2.732A2 2 0 018 11H7a1 1 0 00-.707 1.707l3 3a1 1 0 001.414-1.414l-1.483-1.484A4.008 4.008 0 0011.874 10H13a1 1 0 100-2h-1.126a3.976 3.976 0 00-.41-1H13a1 1 0 100-2H7z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM7.858 5.485a1 1 0 00-1.715 1.03L7.633 9H7a1 1 0 100 2h1.834l.166.277V12H7a1 1 0 100 2h2v1
1a1 1 0 102 0v-1h2a1 1 0 100-2h-2v-.723l.166-.277H13a1 1 0 100-2h-.634l1.492-2.486a1 1 0 10-1.716-1.029L10.034 9h-.068L7.858 5.485z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M6.672 1.911a1 1 0 10-1.932.518l.259.966a1 1 0 001.932-.518l-.26-.966zM2.429 4.74a1 1 0 10-.517 1.932l.966.259a1 1 0 00.517-1.932l-.966-.26zm8.814-.569a1 1 0 00-1.415-1.414l-.707.707a1 1 0 101.415 1.415l.707-.708zm-7.071 7.072l.707-.707A1 1 0 003.465 9.12l-.708.707a1 1 0 001.415 1.415zm3.2-5.171a1 1 0 00-1.3 1.3l4 10a1 1 0 001.823.075l1.38-2.759 3.018 3.02a1 1 0 001.414-1.415l-3.019-3.02 2.76-1.379a1 1 0 00-.076-1.822l-10-4z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M3 12v3c0 1.657 3.134 3 7 3s7-1.343 7-3v-3c0 1.657-3.134 3-7 3s-7-1.343-7-3z"}),n.createElement("path",{d:"M3 7v3c0 1.657 3.134 3 7 3s7-1.343 7-3V7c0 1.657-3.134 3-7 3S3 8.657 3 7z"}),n.createElement("path",{d:"M17 5c0 1.657-3.134 3-7 3S3 6.657 3 5s3.134-3 7-3 7 1.343 7 3z"}))});const l=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 5a2 2 0 012-2h10a2 2 0 012 2v8a2 2 0 01-2 2h-2.22l.123.489.804.804A1 1 0 0113 18H7a1 1 0 01-.707-1.707l.804-.804L7.22 15H5a2 2 0 01-2-2V5zm5.771 7H5V5h10v7H8.771z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M7 2a2 2 0 00-2 2v12a2 2 0 002 2h6a2 2 0 002-2V4a2 2 0 00-2-2H7zm3 14a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M6 2a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V4a2 2 0 00-2-2H6zm4 14a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M6 2a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V7.414A2 2 0 0015.414 6L12 2.586A2 2 0 0010.586 2H6zm5 6a1 1 0 10-2 0v2H7a1 1 0 100 2h2v2a1 1 0 102 0v-2h2a1 1 0 100-2h-2V8z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M6 2a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V7.414A2 2 0 0015.414 6L12 2.586A2 2 0 0010.586 2H6zm5 6a1 1 0 10-2 0v3.586l-1.293-1.293a1 1 0 10-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 11.586V8z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M9 2a2 2 0 00-2 2v8a2 2 0 002 2h6a2 2 0 002-2V6.414A2 2 0 0016.414 5L14 2.586A2 2 0 0012.586 2H9z"}),n.createElement("path",{d:"M3 8a2 2 0 012-2v10h8a2 2 0 01-2 2H5a2 2 0 01-2-2V8z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M6 2a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V7.414A2 2 0 0015.414 6L12 2.586A2 2 0 0010.586 2H6zm1 8a1 1 0 100 2h6a1 1 0 100-2H7z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M6 2a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V7.414A2 2 0 0015.414 6L12 2.586A2 2 0 0010.586 2H6zm2 10a1 1 0 10-2 0v3a1 1 0 102 0v-3zm2-3a1 1 0 011 1v5a1 1 0 11-2 0v-5a1 1 0 011-1zm4-1a1 1 0 10-2 0v7a1 1 0 102 0V8z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2h-1.528A6 6 0 004 9.528V4z"}),n.createElement("path",{fillRule:"evenodd",d:"M8 10a4 4 0 00-3.446 6.032l-1.261 1.26a1 1 0 101.414 1.415l1.261-1.261A4 4 0 108 10zm-2 4a2 2 0 114 0 2 2
10 01-4 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4zm2 6a1 1 0 011-1h6a1 1 0 110 2H7a1 1 0 01-1-1zm1 3a1 1 0 100 2h6a1 1 0 100-2H7z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM7 9H5v2h2V9zm8 0h-2v2h2V9zM9 9h2v2H9V9z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M7 9a2 2 0 012-2h6a2 2 0 012 2v6a2 2 0 01-2 2H9a2 2 0 01-2-2V9z"}),n.createElement("path",{d:"M5 3a2 2 0 00-2 2v6a2 2 0 002 2V5h8a2 2 0 00-2-2H5z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM7 9a1 1 0 100-2 1 1 0 000 2zm7-1a1 1 0 11-2 0 1 1 0 012 0zm-.464 5.535a1 1 0 10-1.415-1.414 3 3 0 01-4.242 0 1 1 0 00-1.415 1.414 5 5 0 007.072 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM7 9a1 1 0 100-2 1 1 0 000 2zm7-1a1 1 0 11-2 0 1 1 0 012 0zm-7.536 5.879a1 1 0 001.415 0 3 3 0 014.242 0 1 1 0 001.415-1.415 5 5 0 00-7.072 0 1 1 0 000 1.415z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"}),n.createElement("path",{d:"M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3.707 2.293a1 1 0 00-1.414 1.414l14 14a1 1 0 001.414-1.414l-1.473-1.473A10.014 10.014 0 0019.542 10C18.268 5.943 14.478 3 10 3a9.958 9.958 0 00-4.512 1.074l-1.78-1.781zm4.261 4.26l1.514 1.515a2.003 2.003 0 012.45 2.45l1.514 1.514a4 4 0 00-5.478-5.478z",clipRule:"evenodd"}),n.createElement("path",{d:"M12.454 16.697L9.75 13.992a4 4 0 01-3.742-3.741L2.335 6.578A9.98 9.98 0 00.458 10c1.274 4.057 5.065 7 9.542 7 .847 0 1.669-.105 2.454-.303z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}),n.createElement("path",{fillRule:"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M4.555 5.168A1 1 0 003 6v8a1 1 0 001.555.832L10 11.202V14a1 1 0 001.555.832l6-4a1 1 0 000-1.664l-6-4A1 1 0 0010 6v2.798l-5.445-3.63z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm3 2h6v4H7V5zm8 8v2h1v-2h-1zm-2-2H7v4h6v-4zm2 0h1V9h-1v2zm1-4V5h-1v2h1zM5 5v2H4V5h1zm0 4H4v2h1V9zm-1 4h1v2H4v-2z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 3a1 1 0 011-1h12a1 1 0 011 1v3a1 1 0 01-.293.707L12 11.414V15a1 1 0 01-.293.707l-2 2A1 1 0 018 17v-5.586L3.293 6.707A1 1 0 013 6V3z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M6.625 2.655A9 9 0 0119 11a1 1 0 11-2 0 7 7 0 00-9.625-6.492 1 1 0 11-.75-1.853zM4.662 4.959A1 1 0 014.75 6.37 6.97 6.97 0 003 11a1 1 0 11-2 0 8.97 8.97 0 012.25-5.953 1 1 0 011.412-.088z",clipRule:"evenodd"}),n.createElement("path",{fillRule:"evenodd",d:"M5 11a5 5 0 1110 0 1 1 0 11-2 0 3 3 0 10-6 0c0 1.677-.345 3.276-.968 4.729a1 1 0 11-1.838-.789A9.964 9.964 0 005 11zm8.921 2.012a1 1 0 01.831 1.145 19.86 19.86 0 01-.545 2.436 1 1 0 11-1.92-.558c.207-.713.371-1.445.49-2.192a1 1 0 011.144-.83z",clipRule:"evenodd"}),n.createElement("path",{fillRule:"evenodd",d:"M10 10a1 1 0 011 1c0 2.236-.46 4.368-1.29 6.304a1 1 0 01-1.838-.789A13.952 13.952 0 009 11a1 1 0 011-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M12.395 2.553a1 1 0 00-1.45-.385c-.345.23-.614.558-.822.88-.214.33-.403.713-.57 1.116-.334.804-.614 1.768-.84 2.734a31.365 31.365 0 00-.613 3.58 2.64 2.64 0 01-.945-1.06
17c-.328-.68-.398-1.534-.398-2.654A1 1 0 005.05 6.05 6.981 6.981 0 003 11a7 7 0 1011.95-4.95c-.592-.591-.98-.985-1.348-1.467-.363-.476-.724-1.063-1.207-2.03zM12.12 15.12A3 3 0 017 13s.879.5 2.5.5c0-1 .5-4 1.25-4.5.5 1 .786 1.293 1.371 1.879A2.99 2.99 0 0113 13a2.99 2.99 0 01-.879 2.121z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 6a3 3 0 013-3h10a1 1 0 01.8 1.6L14.25 8l2.55 3.4A1 1 0 0116 13H6a1 1 0 00-1 1v3a1 1 0 11-2 0V6z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4 4a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2V8a2 2 0 00-2-2h-5L9 4H4zm7 5a1 1 0 10-2 0v1H8a1 1 0 100 2h1v1a1 1 0 102 0v-1h1a1 1 0 100-2h-1V9z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4 4a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2V8a2 2 0 00-2-2h-5L9 4H4zm7 5a1 1 0 10-2 0v1.586l-.293-.293a1 1 0 10-1.414 1.414l2 2 .002.002a.997.997 0 001.41 0l.002-.002 2-2a1 1 0 00-1.414-1.414l-.293.293V9z"}))});const c=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M2 6a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1H8a3 3 0 00-3 3v1.5a1.5 1.5 0 01-3 0V6z",clipRule:"evenodd"}),n.createElement("path",{d:"M6 12a2 2 0 012-2h8a2 2 0 012 2v2a2 2 0 01-2 2H2h2a2 2 0 002-2v-2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4 4a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2V8a2 2 0 00-2-2h-5L9 4H4zm4 6a1 1 0 100 2h4a1 1 0 100-2H8z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M2 6a2 2 0 012-2h5l2 2h5a2 2 0 012 2v6a2 2 0 01-2 2H4a2 2 0 01-2-2V6z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5 5a3 3 0 015-2.236A3 3 0 0114.83 6H16a2 2 0 110 4h-5V9a1 1 0 10-2 0v1H4a2 2 0 110-4h1.17C5.06 5.687 5 5.35 5 5zm4 1V5a1 1 0 10-1 1h1zm3 0a1 1 0 10-1-1v1h1z",clipRule:"evenodd"}),n.createElement("path",{d:"M9 11H3v5a2 2 0 002 2h4v-7zM11 18h4a2 2 0 002-2v-5h-6v7z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM4.332 8.027a6.012 6.012 0 011.912-2.706C6.512 5.73 6.974 6 7.5 6A1.5 1.5 0 019 7.5V8a2 2 0 004 0 2 2
10 011.523-1.943A5.977 5.977 0 0116 10c0 .34-.028.675-.083 1H15a2 2 0 00-2 2v2.197A5.973 5.973 0 0110 16v-2a2 2 0 00-2-2 2 2 0 01-2-2 2 2 0 00-1.668-1.973z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M9 3a1 1 0 012 0v5.5a.5.5 0 001 0V4a1 1 0 112 0v4.5a.5.5 0 001 0V6a1 1 0 112 0v5a7 7 0 11-14 0V9a1 1 0 012 0v2.5a.5.5 0 001 0V4a1 1 0 012 0v4.5a.5.5 0 001 0V3z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M9.243 3.03a1 1 0 01.727 1.213L9.53 6h2.94l.56-2.243a1 1 0 111.94.486L14.53 6H17a1 1 0 110 2h-2.97l-1 4H15a1 1 0 110 2h-2.47l-.56 2.242a1 1 0 11-1.94-.485L10.47 14H7.53l-.56 2.242a1 1 0 11-1.94-.485L5.47 14H3a1 1 0 110-2h2.97l1-4H5a1 1 0 110-2h2.47l.56-2.243a1 1 0 011.213-.727zM9.03 8l-1 4h2.938l1-4H9.031z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3.172 5.172a4 4 0 015.656 0L10 6.343l1.172-1.171a4 4 0 115.656 5.656L10 17.657l-6.828-6.829a4 4 0 010-5.656z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 2a1 1 0 00-1 1v1a1 1 0 002 0V3a1 1 0 00-1-1zM4 4h3a3 3 0 006 0h3a2 2 0 012 2v9a2 2 0 01-2 2H4a2 2 0 01-2-2V6a2 2 0 012-2zm2.5 7a1.5 1.5 0 100-3 1.5 1.5 0 000 3zm2.45 4a2.5 2.5 0 10-4.9 0h4.9zM12 9a1 1 0 100 2h3a1 1 0 100-2h-3zm-1 4a1 1 0 011-1h2a1 1 0 110 2h-2a1 1 0 01-1-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M8.707 7.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l2-2a1 1 0 00-1.414-1.414L11 7.586V3a1 1 0 10-2 0v4.586l-.293-.293z"}),n.createElement("path",{d:"M3 5a2 2 0 012-2h1a1 1 0 010 2H5v7h2l1 2h4l1-2h2V5h-1a1 1 0 110-2h1a2 2 0 012 2v10a2 2 0 01-2 2H5a2 2 0 01-2-2V5z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5 3a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2V5a2 2 0 00-2-2H5zm0 2h10v7h-2l-1 2H8l-1-2H5V5z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M18 8a6 6 0 01-7.743 5.743L10 14l-1 1-1 1H6v2H2v-4l4.257-4.257A6 6 0 1118 8zm-6-4a1 1 0 100 2 2 2 0 012 2 1 1 0 102 0 4 4 0 00-4-4z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10.496 2.132a1 1 0 00-.992 0l-7 4A1 1 0 003 8v7a1 1 0 100 2h14a1 1 0 100-2V8a1 1 0 00.496-1.868l-7-4zM6 9a1 1 0 00-1 1v3a1 1 0 102 0v-3a1 1 0 00-1-1zm3 1a1 1 0 012 0v3a1 1 0 11-2 0v-3zm5-1a1 1 0 00-1 1v3a1 1 0 102 0v-3a1 1 0 00-1-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M11 3a1 1 0 10-2 0v1a1 1 0 102 0V3zM15.657 5.757a1 1 0 00-1.414-1.414l-.707.707a1 1 0 001.414 1.414l.707-.707zM18 10a1 1 0 01-1 1h-1a1 1 0 110-2h1a1 1 0 011 1zM5.05 6.464A1 1 0 106.464 5.05l-.707-.707a1 1 0 00-1.414 1.414l.707.707zM5 10a1 1 0 01-1 1H3a1 1 0 110-2h1a1 1 0 011 1zM8 16v-1h4v1a2 2 0 11-4 0zM12 14c.015-.34.208-.646.477-.859a4 4 0 10-4.954 0c.27.213.462.519.476.859h4.002z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M11.3 1.046A1 1 0 0112 2v5h4a1 1 0 01.82 1.573l-7 10A1 1 0 018 18v-5H4a1 1 0 01-.82-1.573l7-10a1 1 0 011.12-.38z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M10 2a5 5 0 00-5 5v2a2 2 0 00-2 2v5a2 2 0 002 2h10a2 2 0 002-2v-5a2 2 0 00-2-2H7V7a3 3 0 015.905-.75 1 1 0 001.937-.5A5.002 5.002 0 0010 2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 3a1 1 0 011 1v12a1 1 0 11-2 0V4a1 1 0 011-1zm7.707 3.293a1 1 0 010 1.414L9.414 9H17a1 1 0 110 2H9.414l1.293 1.293a1 1 0 01-1.414 1.414l-3-3a1 1 0 010-1.414l3-3a1 1 0 011.414 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 3a1 1 0 00-1 1v12a1 1 0 102 0V4a1 1 0 00-1-1zm10.293 9.293a1 1 0 001.414 1.414l3-3a1 1 0 000-1.414l-3-3a1 1 0 10-1.414 1.414L14.586 9H7a1 1 0 100 2h7.586l-1.293 1.293z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M2.94 6.412A2 2 0 002 8.108V16a2 2 0 002 2h12a2 2 0 002-2V8.108a2 2 0 00-.94-1.696l-6-3.75a2 2 0 00-2.12 0l-6 3.75zm2.615 2.423a1 1 0 10-1.11 1.664l5 3.333a1 1 0 001.11 0l5-3.333a1 1 0 00-1.11-1.664L10 11.798 5.555 8.835z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z"}),n.createElement("path",{d:"M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M12 1.586l-4 4v12.828l4-4V1.586zM3.707 3.293A1 1 0 002 4v10a1 1 0 00.293.707L6 18.414V5.586L3.707 3.293zM17.707 5.293L14 1.586v12.828l2.293 2.293A1 1 0 0018 16V6a1 1 0 00-.293-.707z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h6a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h6a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM9 15a1 1 0 011-1h6a1 1 0 110 2h-6a1 1 0 01-1-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 7a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 13a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M7 4a3 3 0 016 0v4a3 3 0 11-6 0V4zm4 10.93A7.001 7.001 0 0017 8a1 1 0 10-2 0A5 5 0 015 8a1 1 0 00-2 0 7.001 7.001 0 006 6.93V17H6a1 1 0 100 2h8a1 1 0 100-2h-3v-2.07z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM7 9a1 1 0 000 2h6a1 1 0 100-2H7z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M18 3a1 1 0 00-1.196-.98l-10 2A1 1 0 006 5v9.114A4.369 4.369 0 005 14c-1.657 0-3 .895-3 2s1.343 2 3 2 3-.895 3-2V7.82l8-1.6v5.894A4.37 4.37 0 0015 12c-1.657 0-3 .895-3 2s1.343 2 3 2 3-.895 3-2V3z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M2 5a2 2 0 012-2h8a2 2 0 012 2v10a2 2 0 002 2H4a2 2 0 01-2-2V5zm3 1h6v4H5V6zm6 6H5v2h6v-2z",clipRule:"evenodd"}),n.createElement("path",{d:"M15 7h1a2 2 0 012 2v5.5a1.5 1.5 0 01-3 0V7z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h8a2 2 0 012 2v12a1 1 0 110 2h-3a1 1 0 01-1-1v-2a1 1 0 00-1-1H9a1 1 0 00-1 1v2a1 1 0 01-1 1H4a1 1 0 110-2V4zm3 1h2v2H7V5zm2 4H7v2h2V9zm2-4h2v2h-2V5zm2 4h-2v2h2V9z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M10.894 2.553a1 1 0 00-1.788 0l-7 14a1 1 0 001.169 1.409l5-1.429A1 1 0 009
115.571V11a1 1 0 112 0v4.571a1 1 0 00.725.962l5 1.428a1 1 0 001.17-1.408l-7-14z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M8 4a3 3 0 00-3 3v4a5 5 0 0010 0V7a1 1 0 112 0v4a7 7 0 11-14 0V7a5 5 0 0110 0v4a3 3 0 11-6 0V7a1 1 0 012 0v4a1 1 0 102 0V7a3 3 0 00-3-3z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zM7 8a1 1 0 012 0v4a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v4a1 1 0 102 0V8a1 1 0 00-1-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M17.414 2.586a2 2 0 00-2.828 0L7 10.172V13h2.828l7.586-7.586a2 2 0 000-2.828z"}),n.createElement("path",{fillRule:"evenodd",d:"M2 6a2 2 0 012-2h4a1 1 0 010 2H4v10h10v-4a1 1 0 112 0v4a2 2 0 01-2 2H4a2 2 0 01-2-2V6z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M14.414 7l3.293-3.293a1 1 0 00-1.414-1.414L13 5.586V4a1 1 0 10-2 0v4.003a.996.996 0 00.617.921A.997.997 0 0012 9h4a1 1 0 100-2h-1.586z"}),n.createElement("path",{d:"M2 3a1 1 0 011-1h2.153a1 1 0 01.986.836l.74 4.435a1 1 0 01-.54 1.06l-1.548.773a11.037 11.037 0 006.105 6.105l.774-1.548a1 1 0 011.059-.54l4.435.74a1 1 0 01.836.986V17a1 1 0 01-1 1h-2C7.82 18 2 12.18 2 5V3z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M2 3a1 1 0 011-1h2.153a1 1 0 01.986.836l.74 4.435a1 1 0 01-.54 1.06l-1.548.773a11.037 11.037 0 006.105 6.105l.774-1.548a1 1 0 011.059-.54l4.435.74a1 1 0 01.836.986V17a1 1 0 01-1 1h-2C7.82 18 2 12.18 2 5V3z"}),n.createElement("path",{d:"M16.707 3.293a1 1 0 010 1.414L15.414 6l1.293 1.293a1 1 0 01-1.414 1.414L14 7.414l-1.293 1.293a1 1 0 11-1.414-1.414L12.586 6l-1.293-1.293a1 1 0 011.414-1.414L14 4.586l1.293-1.293a1 1 0 011.414 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M17.924 2.617a.997.997 0 00-.215-.322l-.004-.004A.997.997 0 0017 2h-4a1 1 0 100 2h1.586l-3.293 3.293a1 1 0 001.414 1.414L16 5.414V7a1 1 0 102 0V3a.997.997 0 00-.076-.383z"}),n.createElement("path",{d:"M2 3a1 1 0 011-1h2.153a1 1 0 01.986.836l.74 4.435a1 1 0 01-.54 1.06l-1.548.773a11.037 11.037 0 006.105 6.105l.774-1.548a1 1 0 011.059-.54l4.435.74a1 1 0 01.836.986V17a1 1 0 01-1 1h-2C7.82 18 2 12.18 2 5V3z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M2 3a1 1 0 011-1h2.153a1 1 0 01.986.836l.74 4.435a1 1 0 01-.54 1.06l-1.548.773a11.037 11.037 0 006.105 6.105l.774-1.548a1 1 0 011.059-.54l4.435.74a1 1 0 01.836.986V17a1 1 0 01-1 1h-2C7.82 18 2 12.18 2 5V3z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm12 12H4l4-8 3 6 2-4 3 6z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-11a1 1 0 10-2 0v2H7a1 1 0 100 2h2v2a1 1 0 102 0v-2h2a1 1 0 100-2h-2V7z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 3a1 1 0 000 2v8a2 2 0 002 2h2.586l-1.293 1.293a1 1 0 101.414 1.414L10 15.414l2.293 2.293a1 1 0 001.414-1.414L12.414 15H15a2 2 0 002-2V5a1 1 0 100-2H3zm11 4a1 1 0 10-2 0v4a1 1 0 102 0V7zm-3 1a1 1 0 10-2 0v3a1 1 0 102 0V8zM8 9a1 1 0 00-2 0v2a1 1 0 102 0V9z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 3a1 1 0 000 2v8a2 2 0 002 2h2.586l-1.293 1.293a1 1 0 101.414 1.414L10 15.414l2.293 2.293a1 1 0 001.414-1.414L12.414 15H15a2 2 0 002-2V5a1 1 0 100-2H3zm11.707 4.707a1 1 0 00-1.414-1.414L10 9.586 8.707 8.293a1 1 0 00-1.414 0l-2 2a1 1 0 101.414 1.414L8 10.414l1.293 1.293a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5 4v3H4a2 2 0 00-2 2v3a2 2 0 002 2h1v2a2 2 0 002 2h6a2 2 0 002-2v-2h1a2 2 0 002-2V9a2 2 0 00-2-2h-1V4a2 2 0 00-2-2H7a2 2 0 00-2 2zm8 0H7v3h6V4zm0 8H7v4h6v-4z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M10 3.5a1.5 1.5 0 013 0V4a1 1 0 001 1h3a1 1 0 011 1v3a1 1 0 01-1 1h-.5a1.5 1.5 0 000 3h.5a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1v-.5a1.5 1.5 0 00-3 0v.5a1 1 0 01-1 1H6a1 1 0 01-1-1v-3a1 1 0 00-1-1h-.5a1.5 1.5 0 010-3H4a1 1 0 001-1V6a1 1 0 011-1h3a1 1 0 001-1v-.5z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 4a1 1 0 011-1h3a1 1 0 011 1v3a1 1 0 01-1 1H4a1 1 0 01-1-1V4zm2 2V5h1v1H5zM3 13a1 1 0 011-1h3a1 1 0 011 1v3a1 1 0 01-1 1H4a1 1 0 01-1-1v-3zm2 2v-1h1v1H5zM13 3a1 1 0 00-1 1v3a1 1 0 001 1h3a1 1 0 001-1V4a1 1 0 00-1-1h-3zm1 2v1h1V5h-1z",clipRule:"evenodd"}),n.createElement("path",{d:"M11 4a1 1 0 10-2 0v1a1 1 0 002 0V4zM10 7a1 1 0 011 1v1h2a1 1 0 110 2h-3a1 1 0 01-1-1V8a1 1 0 011-1zM16 9a1 1 0 100 2 1 1 0 000-2zM9 13a1 1 0 011-1h1a1 1 0 110 2v2a1 1 0 11-2 0v-3zM7 11a1 1 0 100-2H4a1 1 0 100 2h3zM17 13a1 1 0 01-1 1h-2a1 1 0 110-2h2a1 1 0 011 1zM16 17a1 1 0 100-2h-3a1 1 0 100 2h3z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5 2a2 2 0 00-2 2v14l3.5-2 3.5 2 3.5-2 3.5 2V4a2 2 0 00-2-2H5zm4.707 3.707a1 1 0 00-1.414-1.414l-3 3a1 1 0 000 1.414l3 3a1 1 0 001.414-1.414L8.414 9H10a3 3 0 013 3v1a1 1 0 102 0v-1a5 5 0 00-5-5H8.414l1.293-1.293z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5 2a2 2 0 00-2 2v14l3.5-2 3.5 2 3.5-2 3.5 2V4a2 2 0 00-2-2H5zm2.5 3a1.5 1.5 0 100 3 1.5 1.5 0 000-3zm6.207.293a1 1 0 00-1.414 0l-6 6a1 1 0 101.414 1.414l6-6a1 1 0 000-1.414zM12.5 10a1.5 1.5 0 100 3 1.5 1.5 0 000-3z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.
1002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M7.707 3.293a1 1 0 010 1.414L5.414 7H11a7 7 0 017 7v2a1 1 0 11-2 0v-2a5 5 0 00-5-5H5.414l2.293 2.293a1 1 0 11-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M8.445 14.832A1 1 0 0010 14v-2.798l5.445 3.63A1 1 0 0017 14V6a1 1 0 00-1.555-.832L10 8.798V6a1 1 0 00-1.555-.832l-6 4a1 1 0 000 1.664l6 4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M5 3a1 1 0 000 2c5.523 0 10 4.477 10 10a1 1 0 102 0C17 8.373 11.627 3 5 3z"}),n.createElement("path",{d:"M4 9a1 1 0 011-1 7 7 0 017 7 1 1 0 11-2 0 5 5 0 00-5-5 1 1 0 01-1-1zM3 15a2 2 0 114 0 2 2 0 01-4 0z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M9.707 7.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L13 8.586V5h3a2 2 0 012 2v5a2 2 0 01-2 2H8a2 2 0 01-2-2V7a2 2 0 012-2h3v3.586L9.707 7.293zM11 3a1 1 0 112 0v2h-2V3z"}),n.createElement("path",{d:"M4 9a2 2 0 00-2 2v5a2 2 0 002 2h8a2 2 0 002-2H4V9z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M7.707 10.293a1 1 0 10-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 11.586V6h5a2 2 0 012 2v7a2 2 0 01-2 2H4a2 2 0 01-2-2V8a2 2 0 012-2h5v5.586l-1.293-1.293zM9 4a1 1 0 012 0v2H9V4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 2a1 1 0 011 1v1.323l3.954 1.582 1.599-.8a1 1 0 01.894 1.79l-1.233.616 1.738 5.42a1 1 0 01-.285 1.05A3.989 3.989 0 0115 15a3.989 3.989 0 01-2.667-1.019 1 1 0 01-.285-1.05l1.715-5.349L11 6.477V16h2a1 1 0 110 2H7a1 1 0 110-2h2V6.477L6.237 7.582l1.715 5.349a1 1 0 01-.285 1.05A3.989 3.989 0 015 15a3.989 3.989 0 01-2.667-1.019 1 1 0 01-.285-1.05l1.738-5.42-1.233-.617a1 1 0 01.894-1.788l1.599.799L9 4.323V3a1 1 0 011-1zm-5 8.274l-.818 2.552c.25.112.526.174.818.174.292 0 .569-.062.818-.174L5 10.274zm10 0l-.818 2.552c.25.112.526.174.818.174.292 0 .569-.062.818-.174L15 10.274z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5.5 2a3.5 3.5 0 101.665 6.58L8.585 10l-1.42 1.42a3.5 3.5 0 101.414 1.414l8.128-8.127a1 1 0 00-1.414-1.414L10 8.586l-1.42-1.42A3.5 3.5 0 005.5 2zM4 5.5a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm0 9a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z",clipRule:"evenodd"}),n.createElement("path",{d:"M12.828 11.414a1 1 0 00-1.414 1.414l3.879 3.88a1 1 0 001.414-1.415l-3.879-3.879z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M2 5a2 2 0 012-2h12a2 2 0 012 2v2a2 2 0 01-2 2H4a2 2 0 01-2-2V5zm14 1a1 1 0 11-2 0 1 1 0 012 0zM2 13a2 2 0 012-2h12a2 2 0 012 2v2a2 2 0 01-2 2H4a2 2 0 01-2-2v-2zm14 1a1 1 0 11-2 0 1 1 0 012 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M15 8a3 3 0 10-2.977-2.63l-4.94 2.47a3 3 0 100 4.319l4.94 2.47a3 3 0 10.895-1.789l-4.94-2.47a3.027 3.027 0 000-.74l4.94-2.47C13.456 7.68 14.19 8 15 8z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M2.166 4.999A11.954 11.954 0 0010 1.944 11.954 11.954 0 0017.834 5c.11.65.166 1.32.166 2.001 0 5.225-3.34 9.67-8 11.317C5.34 16.67 2 12.225 2 7c0-.682.057-1.35.166-2.001zm11.541 3.708a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 1.944A11.954 11.954 0 012.166 5C2.056 5.649 2 6.319 2 7c0 5.225 3.34 9.67 8 11.317C14.66 16.67 18 12.225 18 7c0-.682-.057-1.35-.166-2.001A11.954 11.954 0 0110 1.944zM11 14a1 1 0 11-2 0 1 1 0 012 0zm0-7a1 1 0 10-2 0v3a1 1 0 102 0V7z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 2a4 4 0 00-4 4v1H5a1 1 0 00-.994.89l-1 9A1 1 0 004 18h12a1 1 0 00.994-1.11l-1-9A1 1 0 0015 7h-1V6a4 4 0 00-4-4zm2 5V6a2 2 0 10-4 0v1h4zm-6 3a1 1 0 112 0 1 1 0 01-2 0zm7-1a1 1 0 100 2 1 1 0 000-2z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M3 3a1 1 0 000 2h11a1 1 0 100-2H3zM3 7a1 1 0 000 2h5a1 1 0 000-2H3zM3 11a1 1 0 100 2h4a1 1 0 100-2H3zM13 16a1 1 0 102 0v-5.586l1.293 1.293a1 1 0 001.414-1.414l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 101.414 1.414L13 10.414V16z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M3 3a1 1 0 000 2h11a1 1 0 100-2H3zM3 7a1 1 0 000 2h7a1 1 0 100-2H3zM3 11a1 1 0 100 2h4a1 1 0 100-2H3zM15 8a1 1 0 10-2 0v5.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L15 13.586V8z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5 2a1 1 0 011 1v1h1a1 1 0 010 2H6v1a1 1 0 01-2 0V6H3a1 1 0 010-2h1V3a1 1 0 011-1zm0 10a1 1 0 011 1v1h1a1 1 0 110 2H6v1a1 1 0 11-2 0v-1H3a1 1 0 110-2h1v-1a1 1 0 011-1zM12 2a1 1 0 01.967.744L14.146 7.2 17.5 9.134a1 1 0 010 1.732l-3.354 1.935-1.18 4.455a1 1 0 01-1.933 0L9.854 12.8 6.5 10.866a1 1 0 010-1.732l3.354-1.935 1.18-4.455A1 1 0 0112 2z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M18 3a1 1 0 00-1.447-.894L8.763 6H5a3 3 0 000 6h.28l1.771 5.316A1 1 0 008 18h1a1 1 0 001-1v-4.382l6.553 3.276A1 1 0 0018 15V3z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M3.707 2.293a1 1 0 00-1.414 1.414l6.921 6.922c.05.062.105.118.168.167l6.91 6.911a1 1 0 001.415-1.414l-.675-.675a9.001 9.001 0 00-.668-11.982A1 1 0 1014.95 5.05a7.002 7.
1002 0 01.657 9.143l-1.435-1.435a5.002 5.002 0 00-.636-6.294A1 1 0 0012.12 7.88c.924.923 1.12 2.3.587 3.415l-1.992-1.992a.922.922 0 00-.018-.018l-6.99-6.991zM3.238 8.187a1 1 0 00-1.933-.516c-.8 3-.025 6.336 2.331 8.693a1 1 0 001.414-1.415 6.997 6.997 0 01-1.812-6.762zM7.4 11.5a1 1 0 10-1.73 1c.214.371.48.72.795 1.035a1 1 0 001.414-1.414c-.191-.191-.35-.4-.478-.622z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5.05 3.636a1 1 0 010 1.414 7 7 0 000 9.9 1 1 0 11-1.414 1.414 9 9 0 010-12.728 1 1 0 011.414 0zm9.9 0a1 1 0 011.414 0 9 9 0 010 12.728 1 1 0 11-1.414-1.414 7 7 0 000-9.9 1 1 0 010-1.414zM7.879 6.464a1 1 0 010 1.414 3 3 0 000 4.243 1 1 0 11-1.415 1.414 5 5 0 010-7.07 1 1 0 011.415 0zm4.242 0a1 1 0 011.415 0 5 5 0 010 7.072 1 1 0 01-1.415-1.415 3 3 0 000-4.242 1 1 0 010-1.415zM10 9a1 1 0 011 1v.01a1 1 0 11-2 0V10a1 1 0 011-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8 7a1 1 0 00-1 1v4a1 1 0 001 1h4a1 1 0 001-1V8a1 1 0 00-1-1H8z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-2 0c0 .993-.241 1.929-.668 2.754l-1.524-1.525a3.997 3.997 0 00.078-2.183l1.562-1.562C15.802 8.249 16 9.1 16 10zm-5.165 3.913l1.58 1.58A5.98 5.98 0 0110 16a5.976 5.976 0 01-2.516-.552l1.562-1.562a4.006 4.006 0 001.789.027zm-4.677-2.796a4.002 4.002 0 01-.041-2.08l-.08.08-1.53-1.533A5.98 5.98 0 004 10c0 .954.223 1.856.619 2.657l1.54-1.54zm1.088-6.45A5.974 5.974 0 0110 4c.954 0 1.856.223 2.657.619l-1.54 1.54a4.002 4.002 0 00-2.346.033L7.246 4.668zM12 10a2 2 0 11-4 0 2 2 0 014 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M8 5a1 1 0 100 2h5.586l-1.293 1.293a1 1 0 001.414 1.414l3-3a1 1 0 000-1.414l-3-3a1 1 0 10-1.414 1.414L13.586 5H8zM12 15a1 1 0 100-2H6.414l1.293-1.293a1 1 0 10-1.414-1.414l-3 3a1 1 0 000 1.414l3 3a1 1 0 001.414-1.414L6.414 15H12z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M5 12a1 1 0 102 0V6.414l1.293 1.293a1 1 0 001.414-1.414l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 001.414 1.414L5 6.414V12zM15 8a1 1 0 10-2 0v5.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L15 13.586V8z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5 4a3 3 0 00-3 3v6a3 3 0 003 3h10a3 3 0 003-3V7a3 3 0 00-3-3H5zm-1 9v-1h5v2H5a1 1 0 01-1-1zm7 1h4a1 1 0 001-1v-1h-5v2zm
10-4h5V8h-5v2zM9 8H4v2h5V8z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M17.707 9.293a1 1 0 010 1.414l-7 7a1 1 0 01-1.414 0l-7-7A.997.997 0 012 10V5a3 3 0 013-3h5c.256 0 .512.098.707.293l7 7zM5 6a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M3 4a1 1 0 011-1h12a1 1 0 011 1v2a1 1 0 01-1 1H4a1 1 0 01-1-1V4zM3 10a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H4a1 1 0 01-1-1v-6zM14 9a1 1 0 00-1 1v6a1 1 0 001 1h2a1 1 0 001-1v-6a1 1 0 00-1-1h-2z"}))});const u=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M2 5a2 2 0 012-2h12a2 2 0 012 2v10a2 2 0 01-2 2H4a2 2 0 01-2-2V5zm3.293 1.293a1 1 0 011.414 0l3 3a1 1 0 010 1.414l-3 3a1 1 0 01-1.414-1.414L7.586 10 5.293 7.707a1 1 0 010-1.414zM11 12a1 1 0 100 2h3a1 1 0 100-2h-3z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M18 9.5a1.5 1.5 0 11-3 0v-6a1.5 1.5 0 013 0v6zM14 9.667v-5.43a2 2 0 00-1.105-1.79l-.05-.025A4 4 0 0011.055 2H5.64a2 2 0 00-1.962 1.608l-1.2 6A2 2 0 004.44 12H8v4a2 2 0 002 2 1 1 0 001-1v-.667a4 4 0 01.8-2.4l1.4-1.866a4 4 0 00.8-2.4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M2 10.5a1.5 1.5 0 113 0v6a1.5 1.5 0 01-3 0v-6zM6 10.333v5.43a2 2 0 001.106 1.79l.05.025A4 4 0 008.943 18h5.416a2 2 0 001.962-1.608l1.2-6A2 2 0 0015.56 8H12V4a2 2 0 00-2-2 1 1 0 00-1 1v.667a4 4 0 01-.8 2.4L6.8 7.933a4 4 0 00-.8 2.4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M2 6a2 2 0 012-2h12a2 2 0 012 2v2a2 2 0 100 4v2a2 2 0 01-2 2H4a2 2 0 01-2-2v-2a2 2 0 100-4V6z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M7 2a1 1 0 011 1v1h3a1 1 0 110 2H9.578a18.87 18.87 0 01-1.724 4.78c.29.354.596.696.914 1.026a1 1 0 11-1.44 1.389c-.188-.196-.373-.396-.554-.6a19.098 19.098 0 01-3.107 3.567 1 1 0 01-1.334-1.49 17.087 17.087 0 003.13-3.733 18.992 18.992 0 01-1.487-2.494 1 1 0 111.79-.89c.234.47.489.928.764 1.372.417-.934.752-1.913.997-2.927H3a1 1 0 110-2h3V3a1 1 0 011-1zm6 6a1 1 0 01.894.553l2.991 5.982a.869.869 0 01.02.037l.99 1.98a1 1 0 11-1.79.895L15.383 16h-4.764l-.724 1.447a1 1 0 11-1.788-.894l.99-1.98.019-.038 2.99-5.982A1 1 0 0113 8zm-1.382 6h2.764L13 11.236 11.618 14z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M12 13a1 1 0 100 2h5a1 1 0 001-1V9a1 1 0 10-2 0v2.586l-4.293-4.293a1 1 0 00-1.414 0L8 9.586 3.707 5.293a1 1 0 00-1.414 1.414l5 5a1 1 0 001.414 0L11 9.414 14.586 13H12z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M12 7a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0V8.414l-4.293 4.293a1 1 0 01-1.414 0L8 10.414l-4.293 4.293a1 1 0 01-1.414-1.414l5-5a1 1 0 011.414 0L11 10.586 14.586 7H12z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M8 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM15 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z"}),n.createElement("path",{d:"M3 4a1 1 0 00-1 1v10a1 1 0 001 1h1.05a2.5 2.5 0 014.9 0H10a1 1 0 001-1V5a1 1 0 00-1-1H3zM14 7a1 1 0 00-1 1v6.05A2.5 2.5 0 0115.95 16H17a1 1 0 001-1v-5a1 1 0 00-.293-.707l-2-2A1 1 0 0015 7h-1z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM6.293 6.707a1 1 0 010-1.414l3-3a1 1 0 011.414 0l3 3a1 1 0 01-1.414 1.414L11 5.414V13a1 1 0 11-2 0V5.414L7.707 6.707a1 1 0 01-1.414 0z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M8 9a3 3 0 100-6 3 3 0 000 6zM8 11a6 6 0 016 6H2a6 6 0 016-6zM16 7a1 1 0 10-2 0v1h-1a1 1 0 100 2h1v1a1 1 0 102 0v-1h1a1 1 0 100-2h-1V7z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2
10 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M13 6a3 3 0 11-6 0 3 3 0 016 0zM18 8a2 2 0 11-4 0 2 2 0 014 0zM14 15a4 4 0 00-8 0v3h8v-3zM6 8a2 2 0 11-4 0 2 2 0 014 0zM16 18v-3a5.972 5.972 0 00-.75-2.906A3.005 3.005 0 0119 15v3h-3zM4.75 12.094A5.973 5.973 0 004 15v3H1v-3a3 3 0 013.75-2.906z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M11 6a3 3 0 11-6 0 3 3 0 016 0zM14 17a6 6 0 00-12 0h12zM13 8a1 1 0 100 2h4a1 1 0 100-2h-4z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M9 6a3 3 0 11-6 0 3 3 0 016 0zM17 6a3 3 0 11-6 0 3 3 0 016 0zM12.93 17c.046-.327.07-.66.07-1a6.97 6.97 0 00-1.5-4.33A5 5 0 0119 16v1h-6.07zM6 11a5 5 0 015 5v1H1v-1a5 5 0 015-5z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4.649 3.084A1 1 0 015.163 4.4 13.95 13.95 0 004 10c0 1.993.416 3.886 1.164 5.6a1 1 0 01-1.832.8A15.95 15.95 0 012 10c0-2.274.475-4.44 1.332-6.4a1 1 0 011.317-.516zM12.96 7a3 3 0 00-2.342 1.126l-.328.41-.111-.279A2 2 0 008.323 7H8a1 1 0 000 2h.323l.532 1.33-1.035 1.295a1 1 0 01-.781.375H7a1 1 0 100 2h.039a3 3 0 002.342-1.126l.328-.41.111.279A2 2 0 0011.677 14H12a1 1 0 100-2h-.323l-.532-1.33 1.035-1.295A1 1 0 0112.961 9H13a1 1 0 100-2h-.039zm1.874-2.6a1 1 0 011.833-.8A15.95 15.95 0 0118 10c0 2.274-.475 4.44-1.332 6.4a1 1 0 11-1.832-.8A13.949 13.949 0 0016 10c0-1.993-.416-3.886-1.165-5.6z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M2 6a2 2 0 012-2h6a2 2 0 012 2v8a2 2 0 01-2 2H4a2 2 0 01-2-2V6zM14.553 7.106A1 1 0 0014 8v4a1 1 0 00.553.894l2 1A1 1 0 0018 13V7a1 1 0 00-1.447-.894l-2 1z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M2 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1H3a1 1 0 01-1-1V4zM8 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1H9a1 1 0 01-1-1V4zM15 3a1 1 0 00-1 1v12a1 1 0 001 1h2a1 1 0 001-1V4a1 1 0 00-1-1h-2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM14 11a1 1 0 011 1v1h1a1 1 0 110 2h-1v1a1 1 0 11-2 0v-1h-1a1 1 0 110-2h1v-1a1 1 0 011-1z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM11 13a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm0 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm0 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm0 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M9.383 3.076A1 1 0 0110 4v12a1 1 0 01-1.707.707L4.586 13H2a1 1 0 01-1-1V8a1 1 0 011-1h2.586l3.707-3.707a1 1 0 011.09-.217zM12.293 7.293a1 1 0 011.414 0L15 8.586l1.293-1.293a1 1 0 111.414 1.414L16.414 10l1.293 1.293a1 1 0 01-1.414 1.414L15 11.414l-1.293 1.293a1 1 0 01-1.414-1.414L13.586 10l-1.293-1.293a1 1 0 010-1.414z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M9.383 3.076A1 1 0 0110 4v12a1 1 0 01-1.707.707L4.586 13H2a1 1 0 01-1-1V8a1 1 0 011-1h2.586l3.707-3.707a1 1 0 011.09-.217zM14.657 2.929a1 1 0 011.414 0A9.972 9.972 0 0119 10a9.972 9.972 0 01-2.929 7.071 1 1 0 01-1.414-1.414A7.971 7.971 0 0017 10c0-2.21-.894-4.208-2.343-5.657a1 1 0 010-1.414zm-2.829 2.828a1 1 0 011.415 0A5.983 5.983 0 0115 10a5.984 5.984 0 01-1.757 4.243 1 1 0 01-1.415-1.415A3.984 3.984 0 0013 10a3.983 3.983 0 00-1.172-2.828 1 1 0 010-1.415z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M17.778 8.222c-4.296-4.296-11.26-4.296-15.556 0A1 1 0 01.808 6.808c5.076-5.077 13.308-5.077 18.384 0a1 1 0 01-1.414 1.414zM14.95 11.05a7 7 0 00-9.9 0 1 1 0 01-1.414-1.414 9 9 0 0112.728 0 1 1 0 01-1.414 1.414zM12.12 13.88a3 3 0 00-4.242 0 1 1 0 01-1.415-1.415 5 5 0 017.072 0 1 1 0 01-1.415 1.415zM9 16a1 1 0 011-1h.01a1 1 0 110 2H10a1 1 0 01-1-1z",clipRule:"evenodd"}))});const h=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))});const d=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M5 8a1 1 0 011-1h1V6a1 1 0 012 0v1h1a1 1 0 110 2H9v1a1 1 0 11-2 0V9H6a1 1 0 01-1-1z"}),n.createElement("path",{fillRule:"evenodd",d:"M2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8zm6-4a4 4 0 100 8 4 4 0 000-8z",clipRule:"evenodd"}))});n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}),n.createElement("path",{fillRule:"evenodd",d:"M5 8a1 1 0 011-1h4a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"}))})},7539(e,t,r){"use strict";r.d(t,{v4:()=>S});const n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;const i=function(e){return"string"==typeof e&&n.test(e)};const o=function(e){if(!i(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)};const a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));
vendor: 3,745 bytes, line 1
1function s(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}let l;const c=new Uint8Array(16);function u(e){return 14+(e+64>>>9<<4)+1}function h(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function d(e,t,r,n,i,o){return h((a=h(h(t,e),h(n,o)))<<(s=i)|a>>>32-s,r);var a,s}function f(e,t,r,n,i,o,a){return d(t&r|~t&n,e,t,i,o,a)}function p(e,t,r,n,i,o,a){return d(t&n|r&~n,e,t,i,o,a)}function v(e,t,r,n,i,o,a){return d(t^r^n,e,t,i,o,a)}function g(e,t,r,n,i,o,a){return d(r^(t|~n),e,t,i,o,a)}const m=function(e){return function(e){const t=new Uint8Array(4*e.length);for(let r=0;r<4*e.length;r++)t[r]=e[r>>2]>>>r%4*8&255;return t}(function(e,t){const r=new Uint32Array(u(t)).fill(0);r.set(e),r[t>>5]|=128<<t%32,r[r.length-1]=t,e=r;let n=1732584193,i=-271733879,o=-1732584194,a=271733878;for(let t=0;t<e.length;t+=16){const r=n,s=i,l=o,c=a;n=f(n,i,o,a,e[t],7,-680876936),a=f(a,n,i,o,e[t+1],12,-389564586),o=f(o,a,n,i,e[t+2],17,606105819),i=f(i,o,a,n,e[t+3],22,-1044525330),n=f(n,i,o,a,e[t+4],7,-176418897),a=f(a,n,i,o,e[t+5],12,1200080426),o=f(o,a,n,i,e[t+6],17,-1473231341),i=f(i,o,a,n,e[t+7],22,-45705983),n=f(n,i,o,a,e[t+8],7,1770035416),a=f(a,n,i,o,e[t+9],12,-1958414417),o=f(o,a,n,i,e[t+10],17,-42063),i=f(i,o,a,n,e[t+11],22,-1990404162),n=f(n,i,o,a,e[t+12],7,1804603682),a=f(a,n,i,o,e[t+13],12,-40341101),o=f(o,a,n,i,e[t+14],17,-1502002290),i=f(i,o,a,n,e[t+15],22,1236535329),n=p(n,i,o,a,e[t+1],5,-165796510),a=p(a,n,i,o,e[t+6],9,-1069501632),o=p(o,a,n,i,e[t+11],14,643717713),i=p(i,o,a,n,e[t],20,-373897302),n=p(n,i,o,a,e[t+5],5,-701558691),a=p(a,n,i,o,e[t+10],9,38016083),o=p(o,a,n,i,e[t+15],14,-660478335),i=p(i,o,a,n,e[t+4],20,-405537848),n=p(n,i,o,a,e[t+9],5,568446438),a=p(a,n,i,o,e[t+14],9,-1019803690),o=p(o,a,n,i,e[t+3],14,-187363961),i=p(i,o,a,n,e[t+8],20,1163531501),n=p(n,i,o,a,e[t+13],5,-1444681467),a=p(a,n,i,o,e[t+2],9,-51403784),o=p(o,a,n,i,e[t+7],14,1735328473),i=p(i,o,a,n,e[t+12],20,-1926607734),n=v(n,i,o,a,e[t+5],4,-378558),a=v(a,n,i,o,e[t+8],11,-2022574463),o=v(o,a,n,i,e[t+11],16,1839030562),i=v(i,o,a,n,e[t+14],23,-35309556),n=v(n,i,o,a,e[t+1],4,-1530992060),a=v(a,n,i,o,e[t+4],11,1272893353),o=v(o,a,n,i,e[t+7],16,-155497632),i=v(i,o,a,n,e[t+10],23,-1094730640),n=v(n,i,o,a,e[t+13],4,681279174),a=v(a,n,i,o,e[t],11,-358537222),o=v(o,a,n,i,e[t+3],16,-722521979),i=v(i,o,a,n,e[t+6],23,76029189),n=v(n,i,o,a,e[t+9],4,-640364487),a=v(a,n,i,o,e[t+12],11,-421815835),o=v(o,a,n,i,e[t+15],16,530742520),i=v(i,o,a,n,e[t+2],23,-995338651),n=g(n,i,o,a,e[t],6,-198630844),a=g(a,n,i,o,e[t+7],10,1126891415),o=g(o,a,n,i,e[t+14],15,-1416354905),i=g(i,o,a,n,e[t+5],21,-57434055),n=g(n,i,o,a,e[t+12],6,1700485571),a=g(a,n,i,o,e[t+3],10,-1894986606),o=g(o,a,n,i,e[t+10],15,-1051523),i=g(i,o,a,n,e[t+1],21,-2054922799),n=g(n,i,o,a,e[t+8],6,1873313359),a=g(a,n,i,o,e[t+15],10,-30611744),o=g(o,a,n,i,e[t+6],15,-1560198380),i=g(i,o,a,n,e[t+13],21,1309151649),n=g(n,i,o,a,e[t+4],6,-145523070),a=g(a,n,i,o,e[t+11],10,-1120210379),o=g(o,a,n,i,e[t+2],15,718787259),i=g(i,o,a,n,e[t+9],21,-343485551),n=h(n,r),i=h(i,s),o=h(o,l),a=h(a,c)}return Uint32Array.of(n,i,o,a)}(function(e){if(0===e.length)return new Uint32Array;const t=new Uint32Array(u(8*e.length)).fill(0);for(let r=0;r<e.length;r++)t[r>>2]|=(255&e[r])<<r%4*8;return t}(e),8*e.length))};const _="6ba7b810-9dad-11d1-80b4-00c04fd430c8",y="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function w(e,t,r,n,i,a){const l="string"==typeof r?function(e){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let r=0;r<e.length;++r)t[r]=e.charCodeAt(r);return t}(r):r,c="string"==typeof n?o(n):n;
1if("string"==typeof n&&(n=o(n)),16!==n?.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+l.length);if(u.set(c),u.set(l,c.length),u=t(u),u[6]=15&u[6]|e,u[8]=63&u[8]|128,i){a=a||0;for(let e=0;e<16;++e)i[a+e]=u[e];return i}return s(u)}function b(e,t,r,n){return w(48,m,e,t,r,n)}b.DNS=_,b.URL=y;const x={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function C(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!l){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");l=crypto.getRandomValues.bind(crypto)}return l(c)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){if((r=r||0)<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=n[e];return t}return s(n)}const S=function(e,t,r){return!x.randomUUID||t||e?C(e,t,r):x.randomUUID()};function E(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function M(e,t){return e<<t|e>>>32-t}const k=function(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520],n=new Uint8Array(e.length+1);n.set(e),n[e.length]=128;const i=(e=n).length/4+2,o=Math.ceil(i/16),a=new Array(o);for(let t=0;t<o;++t){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];a[t]=r}a[o-1][14]=8*(e.length-1)/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const n=new Uint32Array(80);for(let t=0;t<16;++t)n[t]=a[e][t];for(let e=16;e<80;++e)n[e]=M(n[e-3]^n[e-8]^n[e-14]^n[e-16],1);let i=r[0],o=r[1],s=r[2],l=r[3],c=r[4];for(let e=0;e<80;++e){const r=Math.floor(e/20),a=M(i,5)+E(r,o,s,l)+c+t[r]+n[e]>>>0;c=l,l=s,s=M(o,30)>>>0,o=i,i=a}r[0]=r[0]+i>>>0,r[1]=r[1]+o>>>0,r[2]=r[2]+s>>>0,r[3]=r[3]+l>>>0,r[4]=r[4]+c>>>0}return Uint8Array.of(r[0]>>24,r[0]>>16,r[0]>>8,r[0],r[1]>>24,r[1]>>16,r[1]>>8,r[1],r[2]>>24,r[2]>>16,r[2]>>8,r[2],r[3]>>24,r[3]>>16,r[3]>>8,r[3],r[4]>>24,r[4]>>16,r[4]>>8,r[4])};function L(e,t,r,n){return w(80,k,e,t,r,n)}L.DNS=_,L.URL=y}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.