UNPKG

billboard.js

Version:

Re-usable easy interface JavaScript chart library, based on D3 v4+

13 lines 244 kB
/*! * Copyright (c) 2017 ~ present NAVER Corp. * billboard.js project is licensed under the MIT license * * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * * @version 4.0.1 * @requires billboard.js * @summary billboard.js plugin */(function(lr,or){typeof exports=="object"&&typeof module=="object"?module.exports=or():typeof define=="function"&&define.amd?define("bb",[],or):typeof exports=="object"?exports.bb=or():(lr.bb=lr.bb||{},lr.bb.plugin=lr.bb.plugin||{},lr.bb.plugin["sparkline.pkgd"]=or())})(this,function(){return(function(){"use strict";var Fr={38441:(function(i,c,t){t.d(c,{default:function(){return Ur}});var r=Object.defineProperty,n=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,o=(M,$,B)=>$ in M?r(M,$,{enumerable:!0,configurable:!0,writable:!0,value:B}):M[$]=B,s=(M,$)=>{for(var B in $||($={}))e.call($,B)&&o(M,B,$[B]);if(n)for(var B of n($))a.call($,B)&&o(M,B,$[B]);return M};const u={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_",dummy:"_dummy_"},v={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcLabelLineText:"bb-arc-label-line-text",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},f={area:"bb-area",areas:"bb-areas"},l={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip",axisTooltipX:"bb-axis-tooltip-x",axisTooltipY:"bb-axis-tooltip-y"},d={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars",barConnectLine:"bb-bar-connectLine"},g={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},h={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},p={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},y={dragarea:"bb-dragarea",INCLUDED:"_included_"},x={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},E={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},m={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},S={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},I={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},O={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},T={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},A={level:"bb-level",levels:"bb-levels"},P={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},R={region:"bb-region",regions:"bb-regions"},C={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},N={shape:"bb-shape",shapes:"bb-shapes"},D={brush:"bb-brush",subchart:"bb-subchart"},F={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",textBorderRect:"bb-text-border",textLabelImage:"bb-text-label-image",TextOverlapping:"text-overlapping"},L={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},U={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},j={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var b=s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s({},u),v),f),l),d),g),h),p),y),E),m),S),I),O),x),T),A),P),R),C),N),D),F),L),U),j);function W(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function Y(M){const $=typeof(M==null?void 0:M.requestAnimationFrame)=="function"&&typeof(M==null?void 0:M.cancelAnimationFrame)=="function",B=typeof(M==null?void 0:M.requestIdleCallback)=="function"&&typeof(M==null?void 0:M.cancelIdleCallback)=="function",J=Ot=>setTimeout(Ot,1),tt=Ot=>clearTimeout(Ot);return[$?M.requestAnimationFrame:J,$?M.cancelAnimationFrame:tt,B?M.requestIdleCallback:J,B?M.cancelIdleCallback:tt]}const V=W(),rt=V==null?void 0:V.document,[q,k,H,K]=Y(V),Z=M=>M||M===0,it=M=>typeof M=="function",gt=M=>typeof M=="string",_=M=>typeof M=="number",ft=M=>typeof M=="undefined",St=M=>typeof M!="undefined",Nt=M=>typeof M=="boolean",It=M=>Math.ceil(M/10)*10,Rt=M=>Math.ceil(M)+.5,Bt=M=>M[1]-M[0],Ut=M=>typeof M=="object",Lt=M=>{for(const $ in M)return!1;return!0},At=M=>ft(M)||M===null||gt(M)&&M.length===0||Ut(M)&&!(M instanceof Date)&&Lt(M)||_(M)&&isNaN(M),Ft=M=>!At(M),Ht=M=>Array.isArray(M),ut=M=>M&&!(M!=null&&M.nodeType)&&Ut(M)&&!Ht(M);var xt,mt,Vt,lt,yt,Pt,Tt,jt,Kt,Q=Object.defineProperty,ot=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,ht=(M,$,B)=>$ in M?Q(M,$,{enumerable:!0,configurable:!0,writable:!0,value:B}):M[$]=B,nt=(M,$)=>{for(var B in $||($={}))w.call($,B)&&ht(M,B,$[B]);if(ot)for(var B of ot($))et.call($,B)&&ht(M,B,$[B]);return M};function Mt(M,$){for(let B=0;B<M.length;B++){const J=M[B];J!==null&&Vt(J)&&$(J,B)}}function Wt(M,$,B){return Vt(M[$])?M[$]:B}function vt(M,$){for(const B in M)if(M[B]===$)return!0;return!1}function ct(M,$,...B){const J=lt(M);return J&&M.call($,...B),J}function pt(M,$){let B=0;const J=function(...tt){!--B&&$.apply(this,tt)};"duration"in M?M.each(()=>++B).on("end",J):(++B,M.call(J))}const Et=M=>M.charAt(0).toUpperCase()+M.slice(1);function $t(M,$="-"){return M.split($).map((B,J)=>J?B.charAt(0).toUpperCase()+B.slice(1).toLowerCase():B.toLowerCase()).join("")}const Gt=M=>[].slice.call(M);function zt(...M){const $=B=>{if(yt(B))return B.map($);if(Pt(B)&&B.constructor){const J=new B.constructor;for(const tt in B)J[tt]=$(B[tt]);return J}return B};return M.map(B=>$(B)).reduce((B,J)=>nt(nt({},B),J))}function Yt(M={},$){yt($)&&$.forEach(B=>Yt(M,B));for(const B in $)/^\d+$/.test(B)||B in M||(M[B]=$[B]);return M}function Qt(M){const $=M[0]instanceof Date,B=Array.from(new Set($?M.map(Number):M));return $?B.map(J=>new Date(J)):B}function wt(M){return M&&M.length?M.reduce(($,B)=>$.concat(B)):[]}function rr(M,...$){if(!$.length||$.length===1&&!$[0])return M;const B=$.shift();return ut(M)&&ut(B)&&Object.keys(B).forEach(J=>{if(!/^(__proto__|constructor|prototype)$/i.test(J)){const tt=B[J];tt instanceof Date?M[J]=new Date(tt.getTime()):ut(tt)?(!M[J]&&(M[J]={}),M[J]=rr(M[J],tt)):M[J]=Ht(tt)?tt.concat():tt}}),rr(M,...$)}function fr(M,$=!0){let B;return M[0]instanceof Date?B=$?(J,tt)=>J-tt:(J,tt)=>tt-J:$&&!M.every(isNaN)?B=(J,tt)=>J-tt:$||(B=(J,tt)=>J>tt&&-1||J<tt&&1||J===tt&&0),M.concat().sort(B)}function mr(M,$){let B=$.filter(J=>Tt(J));if(B.length)if(jt(B[0])){let J=M==="min"?1/0:-1/0;for(const tt of B)(M==="min"?tt<J:tt>J)&&(J=tt);B=J}else B[0]instanceof Date&&(B=fr(B,M==="min")[0]);else B=void 0;return B}const xr=(M,$,B=1)=>{const J=[],tt=Math.max(0,Math.ceil(($-M)/B))|0;for(let Ot=0;Ot<tt;Ot++)J.push(M+Ot*B);return J};let gr=0;function Sr(M=!0){const $=++gr;return M?String($):$}function yr(M,$,B,J,tt){if(B>J)return-1;const Ot=Math.floor((B+J)/2);let{x:Dt,w:Jt=0}=M[Ot];return tt&&(Dt=M[Ot].y,Jt=M[Ot].h),$>=Dt&&$<=Dt+Jt?Ot:$<Dt?yr(M,$,B,Ot-1,tt):yr(M,$,Ot+1,J,tt)}function Er(M,$){return mt(M.replace(/\{=([^}]+)\}/g,(B,J)=>{var tt;return(tt=$[J])!=null?tt:""}))}function dr(M){var $;let B;if(M instanceof Date)B=M;else if(Kt(M)){const{config:J,format:tt}=this;B=($=tt.dataTime(J.data_xFormat)(M))!=null?$:new Date(M)}else jt(M)&&!isNaN(M)&&(B=new Date(+M));return(!B||isNaN(+B))&&console&&console.error&&console.error(`Failed to parse x '${M}' to Date object`),B}function sr(M){if(Pt(M)&&!Kt(M)){const Dt=M;return{top:Dt.top||0,right:Dt.right||0,bottom:Dt.bottom||0,left:Dt.left||0}}const $=(Kt(M)?M.trim().split(/\s+/):[M]).map(Dt=>+Dt||0),[B,J=B,tt=B,Ot=J]=$;return{top:B,right:J,bottom:tt,left:Ot}}function Ir(M,$){$()===!1?xt(()=>Ir(M,$)):M()}function cr(M,$=(B=>B)){const B=new Set;return Mt(M,(J,tt)=>{B.add($(J,tt))}),B}function ur(M,$,B=(J=>J)){const J=new Map;return Mt(M,(tt,Ot)=>{J.set($(tt,Ot),B(tt,Ot))}),J}var pr,tr,kt,er,Or;const Tr=/\s?(bb-)/g,z=/\.+/g;function st(M){return M.replace(Tr,".$1").replace(z,".")}function X(M,$,B=!1){const J=Ot=>Ot[M?"getBoundingClientRect":"getBBox"](),tt=M?"rectClient":"rectBBox";return B?J($):!(tt in $)||$.hasAttribute("width")&&$[tt].width!==+($.getAttribute("width")||0)?$[tt]=J($):$[tt]}function G(M,$,B=[-1,1],J=!1){if(!(!M||!Or($)))if($.indexOf(` `)===-1)M.text($);else{const tt=[M.text(),$].map(Ot=>Ot.replace(/[\s\n]/g,""));if(tt[0]!==tt[1]){const Ot=$.split(` `),Dt=J?Ot.length-1:1;M.html(""),Ot.forEach((Jt,nr)=>{M.append("tspan").attr("x",0).attr("dy",`${nr===0?B[0]*Dt:B[1]}em`).text(Jt)})}}}function at(M){const{x:$,y:B,width:J,height:tt}=Zt(M,!0);return[{x:$,y:B+tt},{x:$,y:B},{x:$+J,y:B},{x:$+J,y:B+tt}]}function bt(M){const{width:$,height:B}=Xt(M),J=at(M),tt=J[0].x,Ot=Math.min(J[0].y,J[1].y);return{x:tt,y:Ot,width:$,height:B}}function Ct(M,$){var B;const J=M&&((B=M.touches||M.sourceEvent&&M.sourceEvent.touches)==null?void 0:B[0]);let tt=[0,0];try{tt=pr(J||M,$)}catch(Ot){}return tt.map(Ot=>isNaN(Ot)?0:Ot)}function Xt(M,$=!1){return X(!0,M,$)}function Zt(M,$=!1){return X(!1,M,$)}function qt(M,$,B){const{rootSelector:J="",sheet:tt}=M,Ot=`${J} ${st($)} {${B.join(";")}}`;return tt[tt.insertRule?"insertRule":"addRule"](Ot,tt.cssRules.length)}function ar(M){let $=[];return M.forEach(B=>{var J;try{B.cssRules&&B.cssRules.length&&($=$.concat(er(B.cssRules)))}catch(tt){(J=tr.console)==null||J.warn(`Error while reading rules from ${B.href}: ${String(tt)}`)}}),$}function dt(M){var $,B,J,tt,Ot,Dt;return{x:((B=($=tr.pageXOffset)!=null?$:tr.scrollX)!=null?B:0)+((J=M.scrollLeft)!=null?J:0),y:((Ot=(tt=tr.pageYOffset)!=null?tt:tr.scrollY)!=null?Ot:0)+((Dt=M.scrollTop)!=null?Dt:0)}}function _t(M,$=0,B=0,J=!0){const tt=new DOMPoint($,B),Ot=M.getScreenCTM(),Dt=tt.matrixTransform(J?Ot==null?void 0:Ot.inverse():Ot);if(J===!1){const Jt=Xt(M);Dt.x-=Jt.x,Dt.y-=Jt.y}return Dt}function ir(M){const $=M?M.transform:null,B=$&&$.baseVal;return B&&B.numberOfItems?B.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Rr(M,$){var B;const J=(B=M==null?void 0:M.getAttribute)==null?void 0:B.call(M,$);if(J)return parseFloat(J);const tt=ir(M);return $==="x"?tt.e:tt.f}function Nr(M){const $=M.attr("viewBox");return $?$.trim().split(/[\s,]+/).length===4:!1}function Mr(M,$,B=!1){const J=!!M.node;let tt=!1;for(const[Ot,Dt]of Object.entries($))if(tt=J?M.style(Ot)===Dt:M.style[Ot]===Dt,B?!tt:tt)break;return tt}function Ar(){var M,$;return((M=kt)==null?void 0:M.hidden)===!1||(($=kt)==null?void 0:$.visibilityState)==="visible"}function Vr(M,$){const{DocumentTouch:B,matchMedia:J,navigator:tt}=tr,Ot=J==null?void 0:J("(pointer:coarse)").matches;let Dt=!1;if($)if(tt&&"maxTouchPoints"in tt)Dt=tt.maxTouchPoints>0;else if("ontouchmove"in tr||B&&kt instanceof B)Dt=!0;else if(Ot)Dt=!0;else{const nr=tt.userAgent;Dt=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(nr)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(nr)}return M&&!Ot&&(J==null?void 0:J("(pointer:fine)").matches)&&"mouse"||Dt&&"touch"||"mouse"}function Kr(M,$){M.pendingRaf!==null?(tr.cancelAnimationFrame(M.pendingRaf),M.pendingRaf=tr.requestAnimationFrame(()=>{M.pendingRaf=null,$()})):(M.pendingRaf=tr.requestAnimationFrame(()=>{M.pendingRaf=null}),$())}const zr={mouse:(()=>{const M=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),($,B,J=M())=>{$.dispatchEvent(new MouseEvent(B,J))}}catch($){return(B,J,tt=M())=>{const Ot=rt.createEvent("MouseEvent");Ot.initMouseEvent(J,tt.bubbles,tt.cancelable,V,0,tt.screenX,tt.screenY,tt.clientX,tt.clientY,!1,!1,!1,!1,0,null),B.dispatchEvent(Ot)}}})(),touch:(M,$,B)=>{const J=new Touch(rr({identifier:Date.now(),target:M,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},B));M.dispatchEvent(new TouchEvent($,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[J],targetTouches:[],changedTouches:[J]}))}};function Br(M){const $=this.config;let B,J,tt;const Ot=()=>{const Dt=J.shift();if(Dt&&B&&Ut(B)&&Dt in B)return B=B[Dt],Ot();if(!Dt)return B};Object.keys($).forEach(Dt=>{B=M,J=Dt.split("_"),tt=Ot(),St(tt)&&($[Dt]=tt)}),this.api&&(this.state.orgConfig=M)}var jr=Object.defineProperty,br=(M,$,B)=>$ in M?jr(M,$,{enumerable:!0,configurable:!0,writable:!0,value:B}):M[$]=B,Pr=(M,$,B)=>br(M,typeof $!="symbol"?$+"":$,B);class Lr{constructor($={}){Pr(this,"$$"),Pr(this,"options"),Pr(this,"config"),this.options=$}loadConfig(){Br.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach($=>{this[$]=null,delete this[$]})}}Pr(Lr,"version","4.0.1");class Gr{constructor(){return{selector:void 0}}}var Hr=Object.defineProperty,Wr=(M,$,B)=>$ in M?Hr(M,$,{enumerable:!0,configurable:!0,writable:!0,value:B}):M[$]=B,$r=(M,$,B)=>Wr(M,typeof $!="symbol"?$+"":$,B);class Ur extends Lr{constructor($){return super($),$r(this,"element"),this.config=new Gr,this}$beforeInit(){this.loadConfig(),this.validate(),this.element=[].slice.call(document.querySelectorAll(this.config.selector)),this.overrideInternals(),this.overrideOptions(),this.overHandler=this.overHandler.bind(this),this.moveHandler=this.moveHandler.bind(this),this.outHandler=this.outHandler.bind(this)}validate(){const{$$:$,config:B}=this;let J="";if((!B.selector||!document.querySelector(B.selector))&&(J="No holder elements found from given selector option."),($.hasType("bubble")||$.hasType("scatter")||$.hasArcType($.data.targets))&&(J="Contains non supported chart types."),J)throw new Error(`[Sparkline plugin] ${J}`)}overrideInternals(){const{$$:$}=this,{getBarW:B,getIndices:J}=$;$.getIndices=function(tt,Ot,Dt){return Dt==="getShapeX"?{}:J.call(this,tt,Ot)},$.getBarW=function(tt,Ot){return B.call(this,tt,Ot,1)}}overrideOptions(){const{config:$}=this.$$;if($.legend_show=!1,$.resize_auto=!1,$.axis_x_show=!1,$.padding!==!1){const B=J=>Object.keys(J||{}).length>0;B($.axis_x_padding)&&($.axis_x_padding={left:15,right:15,unit:"px"}),B($.axis_y_padding)&&($.axis_y_padding=5)}$.axis_y_show=!1,$.tooltip_position||($.tooltip_position=function(B,J,tt){const{internal:{state:{event:Ot}}}=this;let Dt=Ot.pageY-tt*1.35,Jt=Ot.pageX-J/2;return Dt<0&&(Dt=0),Jt<0&&(Jt=0),{top:Dt,left:Jt}})}$init(){var $;const{$$:{$el:B}}=this;B.chart.style("width","0").style("height","0").style("pointer-events","none"),($=B.tooltip)!=null&&$.node()&&document.body.appendChild(B.tooltip.node())}$afterInit(){const{$$:$}=this;$.$el.svg.attr("style",null).style("width","0").style("height","0"),this.bindEvents(!0)}bindEvents($=!0){const{$$:{config:B}}=this;if(B.interaction_enabled&&B.tooltip_show){const J=`${$?"add":"remove"}EventListener`;this.element.forEach(tt=>{const Ot=tt.querySelector("svg");Ot[J]("mouseover",this.overHandler),Ot[J]("mousemove",this.moveHandler),Ot[J]("mouseout",this.outHandler)})}}overHandler($){const{$$:B}=this,{state:{eventReceiver:J}}=B;J.rect=Xt($.target,!0)}moveHandler($){var B,J,tt,Ot;const{$$:Dt}=this,Jt=Dt.getDataIndexFromEvent($),nr=(B=Dt.api.data($.target.__id))==null?void 0:B[0],vr=(J=nr==null?void 0:nr.values)==null?void 0:J[Jt];vr&&!vr.name&&(vr.name=vr.id),Dt.state.event=$,(tt=Dt.isPointFocusOnly)!=null&&tt.call(Dt)&&vr&&((Ot=Dt.showCircleFocus)==null||Ot.call(Dt,[vr])),Dt.setExpand(Jt,nr.id,!0),Dt.showTooltip([vr],$.target)}outHandler($){const{$$:B}=this;B.state.event=$,B.isPointFocusOnly()?B.hideCircleFocus():B.unexpandCircles(),B.hideTooltip()}$redraw(){var $;const{$$:B}=this,{$el:J}=B;let tt=this.element;const Ot=B.api.data(),Dt=($=J.chart.html().match(/<svg[^>]*>/))==null?void 0:$[0];if(tt.length<Ot.length){const Jt=J.chart.node();for(let nr=Ot.length-tt.length;nr>0;nr--)Jt.parentNode.insertBefore(tt[0].cloneNode(),Jt.nextSibling);this.element=document.querySelectorAll(this.config.selector),tt=this.element}Ot.map(Jt=>Jt.id).forEach((Jt,nr)=>{const vr=`.${u.target}-${Jt}`,Dr=J.main.selectAll(vr);let hr=tt[nr].querySelector("svg");hr||(tt[nr].innerHTML=`${Dt}</svg>`,hr=tt[nr].querySelector("svg"),hr.__id=Jt),hr.querySelector(vr)||Dr.style("opacity",null),Dr.style("fill","none").style("opacity",null),hr.innerHTML="",hr.appendChild(Dr.node())})}$willDestroy(){this.bindEvents(!1),this.element.forEach($=>{$.innerHTML=""})}}$r(Ur,"version","0.0.1")}),85156:(function(i,c,t){var r=t(23583),n=t(82453),e=TypeError;i.exports=function(a){if(r(a))return a;throw new e(n(a)+" is not a function")}}),80042:(function(i,c,t){var r=t(11051),n=t(82453),e=TypeError;i.exports=function(a){if(r(a))return a;throw new e(n(a)+" is not a constructor")}}),59152:(function(i,c,t){var r=t(9205),n=TypeError;i.exports=function(e){if(r(e)==="DataView")return e;throw new n("Argument is not a DataView")}}),53408:(function(i,c,t){var r=t(52427),n=String,e=TypeError;i.exports=function(a){if(r(a))return a;throw new e("Can't set "+n(a)+" as a prototype")}}),76602:(function(i,c,t){var r=t(172).has;i.exports=function(n){return r(n),n}}),72145:(function(i){var c=TypeError;i.exports=function(t){if(typeof t=="string")return t;throw new c("Argument is not a string")}}),36390:(function(i,c,t){var r=t(86629),n=new r.WeakMap,e=r.set,a=r.remove;i.exports=function(o){return e(n,o,1),a(n,o),o}}),87975:(function(i,c,t){var r=t(86629).has;i.exports=function(n){return r(n),n}}),98447:(function(i,c,t){var r=t(38941),n=t(96499),e=t(11286),a=t(45526),o=t(25001),s=t(85156),u=t(5683),v=t(10512),f=t(18565),l=f("asyncDispose"),d=f("dispose"),g=e([].push),h=function(y,x){if(x==="async-dispose"){var E=v(y,l);return E!==void 0||(E=v(y,d),E===void 0)?E:function(){var m=this,S=r("Promise");return new S(function(I){n(E,m),I(void 0)})}}return v(y,d)},p=function(y,x,E){return arguments.length<3&&!u(y)&&(E=s(h(o(y),x))),E===void 0?function(){}:a(E,y)};i.exports=function(y,x,E,m){var S;if(arguments.length<4){if(u(x)&&E==="sync-dispose")return;S=p(x,E)}else S=p(void 0,E,m);g(y.stack,S)}}),23811:(function(i,c,t){var r=t(18565),n=t(5406),e=t(7831).f,a=r("unscopables"),o=Array.prototype;o[a]===void 0&&e(o,a,{configurable:!0,value:n(null)}),i.exports=function(s){o[a][s]=!0}}),24487:(function(i,c,t){var r=t(22149).charAt;i.exports=function(n,e,a){return e+(a&&r(n,e).length||1)}}),12833:(function(i,c,t){var r=t(95307),n=TypeError;i.exports=function(e,a){if(r(a,e))return e;throw new n("Incorrect invocation")}}),56902:(function(i,c,t){var r=t(37540),n=String,e=TypeError;i.exports=function(a){if(a===void 0||r(a))return a;throw new e(n(a)+" is not an object or undefined")}}),25001:(function(i,c,t){var r=t(37540),n=String,e=TypeError;i.exports=function(a){if(r(a))return a;throw new e(n(a)+" is not an object")}}),87332:(function(i,c,t){var r=t(9205),n=TypeError;i.exports=function(e){if(r(e)==="Uint8Array")return e;throw new n("Argument is not an Uint8Array")}}),3237:(function(i){i.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"}),58360:(function(i,c,t){var r=t(34246),n=t(84756),e=t(14274),a=r.ArrayBuffer,o=r.TypeError;i.exports=a&&n(a.prototype,"byteLength","get")||function(s){if(e(s)!=="ArrayBuffer")throw new o("ArrayBuffer expected");return s.byteLength}}),30736:(function(i,c,t){var r=t(34246),n=t(3237),e=t(58360),a=r.DataView;i.exports=function(o){if(!n||e(o)!==0)return!1;try{return new a(o),!1}catch(s){return!0}}}),72058:(function(i,c,t){var r=t(72069);i.exports=r(function(){if(typeof ArrayBuffer=="function"){var n=new ArrayBuffer(8);Object.isExtensible(n)&&Object.defineProperty(n,"a",{value:8})}})}),83843:(function(i,c,t){var r=t(30736),n=TypeError;i.exports=function(e){if(r(e))throw new n("ArrayBuffer is detached");return e}}),65006:(function(i,c,t){var r=t(34246),n=t(11286),e=t(84756),a=t(9450),o=t(83843),s=t(58360),u=t(63741),v=t(99050),f=r.structuredClone,l=r.ArrayBuffer,d=r.DataView,g=Math.max,h=Math.min,p=l.prototype,y=d.prototype,x=n(p.slice),E=e(p,"resizable","get"),m=e(p,"maxByteLength","get"),S=n(y.getInt8),I=n(y.setInt8);i.exports=(v||u)&&function(O,T,A){var P=s(O),R=T===void 0?P:a(T),C=!E||!E(O),N;if(o(O),v&&(O=f(O,{transfer:[O]}),P===R&&(A||C)))return O;if(P>=R&&(!A||C))N=x(O,0,R);else{var D=A&&!C&&m?{maxByteLength:g(R,m(O))}:void 0;N=new l(R,D);for(var F=new d(O),L=new d(N),U=h(R,P),j=0;j<U;j++)I(L,j,S(F,j))}return v||u(O),N}}),88037:(function(i,c,t){var r=t(3237),n=t(92986),e=t(34246),a=t(23583),o=t(37540),s=t(94879),u=t(9205),v=t(82453),f=t(90809),l=t(16142),d=t(85500),g=t(95307),h=t(26313),p=t(15861),y=t(18565),x=t(36374),E=t(82367),m=E.enforce,S=E.get,I=e.Int8Array,O=I&&I.prototype,T=e.Uint8ClampedArray,A=T&&T.prototype,P=I&&h(I),R=O&&h(O),C=Object.prototype,N=e.TypeError,D=y("toStringTag"),F=x("TYPED_ARRAY_TAG"),L="TypedArrayConstructor",U=r&&!!p&&u(e.opera)!=="Opera",j=!1,b,W,Y,V={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},rt={BigInt64Array:8,BigUint64Array:8},q=function(ft){if(!o(ft))return!1;var St=u(ft);return St==="DataView"||s(V,St)||s(rt,St)},k=function(_){var ft=h(_);if(o(ft)){var St=S(ft);return St&&s(St,L)?St[L]:k(ft)}},H=function(_){if(!o(_))return!1;var ft=u(_);return s(V,ft)||s(rt,ft)},K=function(_){if(H(_))return _;throw new N("Target is not a typed array")},Z=function(_){if(a(_)&&(!p||g(P,_)))return _;throw new N(v(_)+" is not a typed array constructor")},it=function(_,ft,St,Nt){if(n){if(St)for(var It in V){var Rt=e[It];if(Rt&&s(Rt.prototype,_))try{delete Rt.prototype[_]}catch(Bt){try{Rt.prototype[_]=ft}catch(Ut){}}}(!R[_]||St)&&l(R,_,St?ft:U&&O[_]||ft,Nt)}},gt=function(_,ft,St){var Nt,It;if(n){if(p){if(St){for(Nt in V)if(It=e[Nt],It&&s(It,_))try{delete It[_]}catch(Rt){}}if(!P[_]||St)try{return l(P,_,St?ft:U&&P[_]||ft)}catch(Rt){}else return}for(Nt in V)It=e[Nt],It&&(!It[_]||St)&&l(It,_,ft)}};for(b in V)W=e[b],Y=W&&W.prototype,Y?m(Y)[L]=W:U=!1;for(b in rt)W=e[b],Y=W&&W.prototype,Y&&(m(Y)[L]=W);if((!U||!a(P)||P===Function.prototype)&&(P=function(){throw new N("Incorrect invocation")},U))for(b in V)e[b]&&p(e[b],P);if((!U||!R||R===C)&&(R=P.prototype,U))for(b in V)e[b]&&p(e[b].prototype,R);if(U&&h(A)!==R&&p(A,R),n&&!s(R,D)){j=!0,d(R,D,{configurable:!0,get:function(){return o(this)?this[F]:void 0}});for(b in V)e[b]&&f(e[b].prototype,F,b)}i.exports={NATIVE_ARRAY_BUFFER_VIEWS:U,TYPED_ARRAY_TAG:j&&F,aTypedArray:K,aTypedArrayConstructor:Z,exportTypedArrayMethod:it,exportTypedArrayStaticMethod:gt,getTypedArrayConstructor:k,isView:q,isTypedArray:H,TypedArray:P,TypedArrayPrototype:R}}),17468:(function(i,c,t){var r=t(34246),n=t(11286),e=t(92986),a=t(3237),o=t(86588),s=t(90809),u=t(85500),v=t(2725),f=t(72069),l=t(12833),d=t(12105),g=t(9450),h=t(93279),p=t(25212),y=t(26313),x=t(15861),E=t(43011),m=t(22806),S=t(32345),I=t(93706),O=t(78401),T=t(82367),A=o.PROPER,P=o.CONFIGURABLE,R="ArrayBuffer",C="DataView",N="prototype",D="Wrong length",F="Wrong index",L=T.getterFor(R),U=T.getterFor(C),j=T.set,b=r[R],W=b,Y=W&&W[N],V=r[C],rt=V&&V[N],q=Object.prototype,k=r.Array,H=r.RangeError,K=n(E),Z=n([].reverse),it=p.pack,gt=p.unpack,_=function(ut){return[ut&255]},ft=function(ut){return[ut&255,ut>>8&255]},St=function(ut){return[ut&255,ut>>8&255,ut>>16&255,ut>>24&255]},Nt=function(ut){return ut[3]<<24|ut[2]<<16|ut[1]<<8|ut[0]},It=function(ut){return it(h(ut),23,4)},Rt=function(ut){return it(ut,52,8)},Bt=function(ut,xt,mt){u(ut[N],xt,{configurable:!0,get:function(){return mt(this)[xt]}})},Ut=function(ut,xt,mt,Vt){var lt=U(ut),yt=g(mt),Pt=!!Vt;if(yt+xt>lt.byteLength)throw new H(F);var Tt=lt.bytes,jt=yt+lt.byteOffset,Kt=m(Tt,jt,jt+xt);return Pt?Kt:Z(Kt)},Lt=function(ut,xt,mt,Vt,lt,yt){var Pt=U(ut),Tt=g(mt),jt=Vt(+lt),Kt=!!yt;if(Tt+xt>Pt.byteLength)throw new H(F);for(var Q=Pt.bytes,ot=Tt+Pt.byteOffset,w=0;w<xt;w++)Q[ot+w]=jt[Kt?w:xt-w-1]};if(!a)W=function(xt){l(this,Y);var mt=g(xt);j(this,{type:R,bytes:K(k(mt),0),byteLength:mt}),e||(this.byteLength=mt,this.detached=!1)},Y=W[N],V=function(xt,mt,Vt){l(this,rt),l(xt,Y);var lt=L(xt),yt=lt.byteLength,Pt=d(mt);if(Pt<0||Pt>yt)throw new H("Wrong offset");if(Vt=Vt===void 0?yt-Pt:g(Vt),Pt+Vt>yt)throw new H(D);j(this,{type:C,buffer:xt,byteLength:Vt,byteOffset:Pt,bytes:lt.bytes}),e||(this.buffer=xt,this.byteLength=Vt,this.byteOffset=Pt)},rt=V[N],e&&(Bt(W,"byteLength",L),Bt(V,"buffer",U),Bt(V,"byteLength",U),Bt(V,"byteOffset",U)),v(rt,{getInt8:function(xt){return Ut(this,1,xt)[0]<<24>>24},getUint8:function(xt){return Ut(this,1,xt)[0]},getInt16:function(xt){var mt=Ut(this,2,xt,arguments.length>1?arguments[1]:!1);return(mt[1]<<8|mt[0])<<16>>16},getUint16:function(xt){var mt=Ut(this,2,xt,arguments.length>1?arguments[1]:!1);return mt[1]<<8|mt[0]},getInt32:function(xt){return Nt(Ut(this,4,xt,arguments.length>1?arguments[1]:!1))},getUint32:function(xt){return Nt(Ut(this,4,xt,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(xt){return gt(Ut(this,4,xt,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(xt){return gt(Ut(this,8,xt,arguments.length>1?arguments[1]:!1),52)},setInt8:function(xt,mt){Lt(this,1,xt,_,mt)},setUint8:function(xt,mt){Lt(this,1,xt,_,mt)},setInt16:function(xt,mt){Lt(this,2,xt,ft,mt,arguments.length>2?arguments[2]:!1)},setUint16:function(xt,mt){Lt(this,2,xt,ft,mt,arguments.length>2?arguments[2]:!1)},setInt32:function(xt,mt){Lt(this,4,xt,St,mt,arguments.length>2?arguments[2]:!1)},setUint32:function(xt,mt){Lt(this,4,xt,St,mt,arguments.length>2?arguments[2]:!1)},setFloat32:function(xt,mt){Lt(this,4,xt,It,mt,arguments.length>2?arguments[2]:!1)},setFloat64:function(xt,mt){Lt(this,8,xt,Rt,mt,arguments.length>2?arguments[2]:!1)}});else{var At=A&&b.name!==R;!f(function(){b(1)})||!f(function(){new b(-1)})||f(function(){return new b,new b(1.5),new b(NaN),b.length!==1||At&&!P})?(W=function(xt){return l(this,Y),S(new b(g(xt)),this,W)},W[N]=Y,Y.constructor=W,I(W,b)):At&&P&&s(b,"name",R),x&&y(rt)!==q&&x(rt,q);var Ft=new V(new W(2)),Ht=n(rt.setInt8);Ft.setInt8(0,2147483648),Ft.setInt8(1,2147483649),(Ft.getInt8(0)||!Ft.getInt8(1))&&v(rt,{setInt8:function(xt,mt){Ht(this,xt,mt<<24>>24)},setUint8:function(xt,mt){Ht(this,xt,mt<<24>>24)}},{unsafe:!0})}O(W,R),O(V,C),i.exports={ArrayBuffer:W,DataView:V}}),81499:(function(i,c,t){var r=t(49671),n=t(4652),e=t(82628),a=t(12384),o=Math.min;i.exports=[].copyWithin||function(u,v){var f=r(this),l=e(f),d=n(u,l),g=n(v,l),h=arguments.length>2?arguments[2]:void 0,p=o((h===void 0?l:n(h,l))-g,l-d),y=1;for(g<d&&d<g+p&&(y=-1,g+=p-1,d+=p-1);p-- >0;)g in f?f[d]=f[g]:a(f,d),d+=y,g+=y;return f}}),43011:(function(i,c,t){var r=t(49671),n=t(4652),e=t(82628);i.exports=function(o){for(var s=r(this),u=e(s),v=arguments.length,f=n(v>1?arguments[1]:void 0,u),l=v>2?arguments[2]:void 0,d=l===void 0?u:n(l,u);d>f;)s[f++]=o;return s}}),13349:(function(i,c,t){var r=t(66655).forEach,n=t(6148),e=n("forEach");i.exports=e?[].forEach:function(o){return r(this,o,arguments.length>1?arguments[1]:void 0)}}),18319:(function(i,c,t){var r=t(45526),n=t(11286),e=t(11051),a=t(46660),o=t(90619),s=t(10613),u=t(81077),v=t(10512),f=t(38941),l=t(65470),d=t(18565),g=t(56116),h=t(56245).toArray,p=d("asyncIterator"),y=n(l("Array","values")),x=n(y([]).next),E=function(){return new m(this)},m=function(S){this.iterator=y(S)};m.prototype.next=function(){return x(this.iterator)},i.exports=function(I){var O=this,T=arguments.length,A=T>1?arguments[1]:void 0,P=T>2?arguments[2]:void 0;return new(f("Promise"))(function(R){A!==void 0&&(A=r(A,P));var C=v(I,p),N=C?void 0:u(I)||E,D=e(O)?new O:[],F=C?a(I,C):new g(s(o(I,N)));R(h(F,A,D))})}}),5220:(function(i,c,t){var r=t(82628);i.exports=function(n,e,a){for(var o=0,s=arguments.length>2?a:r(e),u=new n(s);s>o;)u[o]=e[o++];return u}}),48258:(function(i,c,t){var r=t(45526),n=t(96499),e=t(49671),a=t(39969),o=t(48199),s=t(11051),u=t(82628),v=t(84082),f=t(2213),l=t(90619),d=t(81077),g=t(99797),h=Array;i.exports=function(y){var x=s(this),E=arguments.length,m=E>1?arguments[1]:void 0,S=m!==void 0;S&&(m=r(m,E>2?arguments[2]:void 0));var I=e(y),O=d(I),T=0,A,P,R,C,N,D;if(O&&!(this===h&&o(O)))for(P=x?new this:[],C=l(I,O),N=C.next;!(R=n(N,C)).done;T++){D=S?a(C,m,[R.value,T],!0):R.value;try{v(P,T,D)}catch(F){g(C,"throw",F)}}else for(A=u(I),P=x?new this(A):h(A);A>T;T++)D=S?m(I[T],T):I[T],v(P,T,D);return f(P,T),P}}),94319:(function(i,c,t){var r=t(36859),n=t(4652),e=t(82628),a=function(o){return function(s,u,v){var f=r(s),l=e(f);if(l===0)return!o&&-1;var d=n(v,l),g;if(o&&u!==u){for(;l>d;)if(g=f[d++],g!==g)return!0}else for(;l>d;d++)if((o||d in f)&&f[d]===u)return o||d||0;return!o&&-1}};i.exports={includes:a(!0),indexOf:a(!1)}}),73849:(function(i,c,t){var r=t(45526),n=t(72181),e=t(49671),a=t(82628),o=function(s){var u=s===1;return function(v,f,l){for(var d=e(v),g=n(d),h=a(g),p=r(f,l),y,x;h-- >0;)if(y=g[h],x=p(y,h,d),x)switch(s){case 0:return y;case 1:return h}return u?-1:void 0}};i.exports={findLast:o(0),findLastIndex:o(1)}}),66655:(function(i,c,t){var r=t(45526),n=t(72181),e=t(49671),a=t(82628),o=t(62083),s=t(84082),u=function(v){var f=v===1,l=v===2,d=v===3,g=v===4,h=v===6,p=v===7,y=v===5||h;return function(x,E,m){for(var S=e(x),I=n(S),O=a(I),T=r(E,m),A=0,P=0,R=f?o(x,O):l||p?o(x,0):void 0,C,N;O>A;A++)if((y||A in I)&&(C=I[A],N=T(C,A,S),v))if(f)s(R,A,N);else if(N)switch(v){case 3:return!0;case 5:return C;case 6:return A;case 2:s(R,P++,C)}else switch(v){case 4:return!1;case 7:s(R,P++,C)}return h?-1:d||g?g:R}};i.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}),58465:(function(i,c,t){var r=t(66543),n=t(36859),e=t(12105),a=t(82628),o=t(6148),s=Math.min,u=[].lastIndexOf,v=!!u&&1/[1].lastIndexOf(1,-0)<0,f=o("lastIndexOf"),l=v||!f;i.exports=l?function(g){if(v)return r(u,this,arguments)||0;var h=n(this),p=a(h);if(p===0)return-1;var y=p-1;for(arguments.length>1&&(y=s(y,e(arguments[1]))),y<0&&(y=p+y);y>=0;y--)if(y in h&&h[y]===g)return y||0;return-1}:u}),52183:(function(i,c,t){var r=t(72069),n=t(18565),e=t(44241),a=n("species");i.exports=function(o){return e>=51||!r(function(){var s=[],u=s.constructor={};return u[a]=function(){return{foo:1}},s[o](Boolean).foo!==1})}}),6148:(function(i,c,t){var r=t(72069);i.exports=function(n,e){var a=[][n];return!!a&&r(function(){a.call(null,e||function(){return 1},1)})}}),97264:(function(i,c,t){var r=t(85156),n=t(49671),e=t(72181),a=t(82628),o=TypeError,s="Reduce of empty array with no initial value",u=function(v){return function(f,l,d,g){var h=n(f),p=e(h),y=a(h);if(r(l),y===0&&d<2)throw new o(s);var x=v?y-1:0,E=v?-1:1;if(d<2)for(;;){if(x in p){g=p[x],x+=E;break}if(x+=E,v?x<0:y<=x)throw new o(s)}for(;v?x>=0:y>x;x+=E)x in p&&(g=l(g,p[x],x,h));return g}};i.exports={left:u(!1),right:u(!0)}}),2213:(function(i,c,t){var r=t(92986),n=t(3438),e=TypeError,a=Object.getOwnPropertyDescriptor,o=r&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(s){return s instanceof TypeError}})();i.exports=o?function(s,u){if(n(s)&&!a(s,"length").writable)throw new e("Cannot set read only .length");return s.length=u}:function(s,u){return s.length=u}}),22806:(function(i,c,t){var r=t(11286);i.exports=r([].slice)}),13270:(function(i,c,t){var r=t(22806),n=Math.floor,e=function(a,o){var s=a.length;if(s<8)for(var u=1,v,f;u<s;){for(f=u,v=a[u];f&&o(a[f-1],v)>0;)a[f]=a[--f];f!==u++&&(a[f]=v)}else for(var l=n(s/2),d=e(r(a,0,l),o),g=e(r(a,l),o),h=d.length,p=g.length,y=0,x=0;y<h||x<p;)a[y+x]=y<h&&x<p?o(d[y],g[x])<=0?d[y++]:g[x++]:y<h?d[y++]:g[x++];return a};i.exports=e}),37555:(function(i,c,t){var r=t(3438),n=t(11051),e=t(37540),a=t(18565),o=a("species"),s=Array;i.exports=function(u){var v;return r(u)&&(v=u.constructor,n(v)&&(v===s||r(v.prototype))?v=void 0:e(v)&&(v=v[o],v===null&&(v=void 0))),v===void 0?s:v}}),62083:(function(i,c,t){var r=t(37555);i.exports=function(n,e){return new(r(n))(e===0?0:e)}}),56116:(function(i,c,t){var r=t(96499),n=t(25001),e=t(5406),a=t(10512),o=t(2725),s=t(82367),u=t(99797),v=t(38941),f=t(7828),l=t(10659),d=v("Promise"),g="AsyncFromSyncIterator",h=s.set,p=s.getterFor(g),y=function(E,m,S,I,O){var T=E.done;d.resolve(E.value).then(function(A){m(l(A,T))},function(A){if(!T&&O)try{u(I,"throw",A)}catch(P){A=P}S(A)})},x=function(m){m.type=g,h(this,m)};x.prototype=o(e(f),{next:function(){var m=p(this),S=arguments.length>0,I=S?arguments[0]:void 0;return new d(function(O,T){var A=n(S?r(m.next,m.iterator,I):r(m.next,m.iterator));y(A,O,T,m.iterator,!0)})},return:function(){var E=p(this),m=E.iterator,S=arguments.length>0,I=S?arguments[0]:void 0;return new d(function(O,T){var A=a(m,"return");if(A===void 0)return O(l(I,!0));var P=n(S?r(A,m,I):r(A,m));y(P,O,T,m)})},throw:function(){var E=p(this),m=E.iterator,S=arguments.length>0,I=S?arguments[0]:void 0;return new d(function(O,T){var A=a(m,"throw");if(A===void 0){try{u(m,"normal")}catch(R){return T(R)}return T(new TypeError("The iterator does not provide a throw method"))}var P=n(S?r(A,m,I):r(A,m));y(P,O,T,m,!0)})}}),i.exports=x}),65778:(function(i,c,t){var r=t(96499),n=t(25001),e=t(38941),a=t(10512);i.exports=function(o,s,u,v){try{var f=a(o,"return");if(f)return e("Promise").resolve(r(f,o)).then(function(l){try{s!==v&&n(l)}catch(d){v(d);return}s(u)},function(l){s===v?s(u):v(l)})}catch(l){return v(s===v?u:l)}s(u)}}),56245:(function(i,c,t){var r=t(96499),n=t(85156),e=t(25001),a=t(37540),o=t(20095),s=t(38941),u=t(84082),v=t(2213),f=t(10613),l=t(65778),d=function(g){var h=g===0,p=g===1,y=g===2,x=g===3;return function(E,m,S){e(E);var I=m!==void 0;(I||!h)&&n(m);var O=f(E),T=s("Promise"),A=O.iterator,P=O.next,R=0;return new T(function(C,N){var D=function(L){l(A,N,L,N)},F=function(){try{try{o(R)}catch(L){return D(L)}T.resolve(e(r(P,A))).then(function(L){try{if(e(L).done)h?(v(S,R),C(S)):C(x?!1:y||void 0);else{var U=L.value;try{if(I){var j=R++,b=m(U,j),W=function(Y){if(p)F();else if(y)Y?F():l(A,C,!1,N);else if(h)try{u(S,j,Y),F()}catch(V){D(V)}else Y?l(A,C,x||U,N):F()};a(b)?T.resolve(b).then(W,D):W(b)}else u(S,R++,U),F()}catch(Y){D(Y)}}}catch(Y){N(Y)}},N)}catch(L){N(L)}};F()})}};i.exports={toArray:d(0),forEach:d(1),every:d(2),some:d(3),find:d(4)}}),7828:(function(i,c,t){var r=t(34246),n=t(70443),e=t(23583),a=t(5406),o=t(26313),s=t(16142),u=t(18565),v=t(70457),f="USE_FUNCTION_CONSTRUCTOR",l=u("asyncIterator"),d=r.AsyncIterator,g=n.AsyncIteratorPrototype,h,p;if(g)h=g;else if(e(d))h=d.prototype;else if(n[f]||r[f])try{p=o(o(o(Function("return async function*(){}()")()))),o(p)===Object.prototype&&(h=p)}catch(y){}h?v&&(h=a(h)):h={},e(h[l])||s(h,l,function(){return this}),i.exports=h}),6210:(function(i){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=c+"+/",r=c+"-_",n=function(e){for(var a={},o=0;o<64;o++)a[e.charAt(o)]=o;return a};i.exports={i2c:t,c2i:n(t),i2cUrl:r,c2iUrl:n(r)}}),39969:(function(i,c,t){var r=t(25001),n=t(99797);i.exports=function(e,a,o,s){try{return s?a(r(o)[0],o[1]):a(o)}catch(u){n(e,"throw",u)}}}),97494:(function(i,c,t){var r=t(18565),n=r("iterator"),e=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){e=!0}};o[n]=function(){return this},Array.from(o,function(){throw 2})}catch(s){}i.exports=function(s,u){try{if(!u&&!e)return!1}catch(l){return!1}var v=!1;try{var f={};f[n]=function(){return{next:function(){return{done:v=!0}}}},s(f)}catch(l){}return v}}),14274:(function(i,c,t){var r=t(11286),n=r({}.toString),e=r("".slice);i.exports=function(a){return e(n(a),8,-1)}}),9205:(function(i,c,t){var r=t(67878),n=t(23583),e=t(14274),a=t(18565),o=a("toStringTag"),s=Object,u=e((function(){return arguments})())==="Arguments",v=function(f,l){try{return f[l]}catch(d){}};i.exports=r?e:function(f){var l,d,g;return f===void 0?"Undefined":f===null?"Null":typeof(d=v(l=s(f),o))=="string"?d:u?e(l):(g=e(l))==="Object"&&n(l.callee)?"Arguments":g}}),34440:(function(i,c,t){var r=t(5406),n=t(85500),e=t(2725),a=t(45526),o=t(12833),s=t(5683),u=t(55902),v=t(10218),f=t(10659),l=t(36167),d=t(92986),g=t(31853).fastKey,h=t(82367),p=h.set,y=h.getterFor;i.exports={getConstructor:function(x,E,m,S){var I=x(function(R,C){o(R,O),p(R,{type:E,index:r(null),first:null,last:null,size:0}),d||(R.size=0),s(C)||u(C,R[S],{that:R,AS_ENTRIES:m})}),O=I.prototype,T=y(E),A=function(R,C,N){var D=T(R),F=P(R,C),L,U;return F?F.value=N:(D.last=F={index:U=g(C,!0),key:C,value:N,previous:L=D.last,next:null,removed:!1},D.first||(D.first=F),L&&(L.next=F),d?D.size++:R.size++,U!=="F"&&(D.index[U]=F)),R},P=function(R,C){var N=T(R),D=g(C),F;if(D!=="F")return N.index[D];for(F=N.first;F;F=F.next)if(F.key===C)return F};return e(O,{clear:function(){for(var C=this,N=T(C),D=N.first;D;)D.removed=!0,D.previous&&(D.previous=D.previous.next=null),D=D.next;N.first=N.last=null,N.index=r(null),d?N.size=0:C.size=0},delete:function(R){var C=this,N=T(C),D=P(C,R);if(D){var F=D.next,L=D.previous;delete N.index[D.index],D.removed=!0,L&&(L.next=F),F&&(F.previous=L),N.first===D&&(N.first=F),N.last===D&&(N.last=L),d?N.size--:C.size--}return!!D},forEach:function(C){for(var N=T(this),D=a(C,arguments.length>1?arguments[1]:void 0),F;F=F?F.next:N.first;)for(D(F.value,F.key,this);F&&F.removed;)F=F.previous},has:function(C){return!!P(this,C)}}),e(O,m?{get:function(C){var N=P(this,C);return N&&N.value},set:function(C,N){return A(this,C===0?0:C,N)}}:{add:function(C){return A(this,C=C===0?0:C,C)}}),d&&n(O,"size",{configurable:!0,get:function(){return T(this).size}}),I},setStrong:function(x,E,m){var S=E+" Iterator",I=y(E),O=y(S);v(x,E,function(T,A){p(this,{type:S,target:T,state:I(T),kind:A,last:null})},function(){for(var T=O(this),A=T.kind,P=T.last;P&&P.removed;)P=P.previous;return!T.target||!(T.last=P=P?P.next:T.state.first)?(T.target=null,f(void 0,!0)):f(A==="keys"?P.key:A==="values"?P.value:[P.key,P.value],!1)},m?"entries":"values",!m,!0),l(E)}}}),94667:(function(i,c,t){var r=t(11286),n=t(2725),e=t(31853).getWeakData,a=t(12833),o=t(25001),s=t(5683),u=t(37540),v=t(55902),f=t(66655),l=t(94879),d=t(82367),g=d.set,h=d.getterFor,p=f.find,y=f.findIndex,x=r([].splice),E=0,m=function(O){return O.frozen||(O.frozen=new S)},S=function(){this.entries=[]},I=function(O,T){return p(O.entries,function(A){return A[0]===T})};S.prototype={get:function(O){var T=I(this,O);if(T)return T[1]},has:function(O){return!!I(this,O)},set:function(O,T){var A=I(this,O);A?A[1]=T:this.entries.push([O,T])},delete:function(O){var T=y(this.entries,function(A){return A[0]===O});return~T&&x(this.entries,T,1),!!~T}},i.exports={getConstructor:function(O,T,A,P){var R=O(function(F,L){a(F,C),g(F,{type:T,id:E++,frozen:null}),s(L)||v(L,F[P],{that:F,AS_ENTRIES:A})}),C=R.prototype,N=h(T),D=function(F,L,U){var j=N(F),b=e(o(L),!0);return b===!0?m(j).set(L,U):b[j.id]=U,F};return n(C,{delete:function(F){var L=N(this);if(!u(F))return!1;var U=e(F);return U===!0?m(L).delete(F):U&&l(U,L.id)&&delete U[L.id]},has:function(L){var U=N(this);if(!u(L))return!1;var j=e(L);return j===!0?m(U).has(L):j&&l(j,U.id)}}),n(C,A?{get:function(L){var U=N(this);if(u(L)){var j=e(L);if(j===!0)return m(U).get(L);if(j)return j[U.id]}},set:function(L,U){return D(this,L,U)}}:{add:function(L){return D(this,L,!0)}}),R}}}),89378:(function(i,c,t){var r=t(14304),n=t(34246),e=t(11286),a=t(13278),o=t(16142),s=t(31853),u=t(55902),v=t(12833),f=t(23583),l=t(5683),d=t(37540),g=t(72069),h=t(97494),p=t(78401),y=t(32345);i.exports=function(x,E,m){var S=x.indexOf("Map")!==-1,I=x.indexOf("Weak")!==-1,O=S?"set":"add",T=n[x],A=T&&T.prototype,P=T,R={},C=function(b){var W=e(A[b]);o(A,b,b==="add"?function(V){return W(this,V===0?0:V),this}:b==="delete"?function(Y){return I&&!d(Y)?!1:W(this,Y===0?0:Y)}:b==="get"?function(V){return I&&!d(V)?void 0:W(this,V===0?0:V)}:b==="has"?function(V){return I&&!d(V)?!1:W(this,V===0?0:V)}:function(V,rt){return W(this,V===0?0:V,rt),this})},N=a(x,!f(T)||!(I||A.forEach&&!g(function(){new T().entries().next()})));if(N)P=m.getConstructor(E,x,S,O),s.enable();else if(a(x,!0)){var D=new P,F=D[O](I?{}:-0,1)!==D,L=g(function(){D.has(1)}),U=h(function(b){new T(b)}),j=!I&&g(function(){for(var b=new T,W=5;W--;)b[O](W,W);return!b.has(-0)});U||(P=E(function(b,W){v(b,A);var Y=y(new T,b,P);return l(W)||u(W,Y[O],{that:Y,AS_ENTRIES:S}),Y}),P.prototype=A,A.constructor=P),(L||j)&&(C("delete"),C("has"),S&&C("get")),(j||F)&&C(O),I&&A.clear&&delete A.clear}return R[x]=P,r({global:!0,constructor:!0,forced:P!==T},R),p(P,x),I||m.setStrong(P,x,S),P}}),93706:(function(i,c,t){var r=t(94879),n=t(16885),e=t(71349),a=t(7831);i.exports=function(o,s,u){for(var v=n(s),f=a.f,l=e.f,d=0;d<v.length;d++){var g=v[d];!r(o,g)&&!(u&&r(u,g))&&f(o,g,l(s,g))}}}),8790:(function(i,c,t){var r=t(18565),n=r("match");i.exports=function(e){var a=/./;try{"/./"[e](a)}catch(o){try{return a[n]=!1,"/./"[e](a)}catch(s){}}return!1}}),87501:(function(i,c,t){var r=t(72069);i.exports=!r(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype})}),68422:(function(i,c,t){var r=t(11286),n=t(2068),e=t(17361),a=/"/g,o=r("".replace);i.exports=function(s,u,v,f){var l=e(n(s)),d="<"+u;return v!==""&&(d+=" "+v+'="'+o(e(f),a,"&quot;")+'"'),d+">"+l+"</"+u+">"}}),10659:(function(i){i.exports=function(c,t){return{value:c,done:t}}}),90809:(function(i,c,t){var r=t(92986),n=t(7831),e=t(18526);i.exports=r?function(a,o,s){return n.f(a,o,e(1,s))}:function(a,o,s){return a[o]=s,a}}),18526:(function(i){i.exports=function(c,t){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:t}}}),84082:(function(i,c,t){var r=t(92986),n=t(7831),e=t(18526);i.exports=function(a,o,s){r?n.f(a,o,e(0,s)):a[o]=s}}),11890:(function(i,c,t){var r=t(11286),n=t(72069),e=t(61607).start,a=RangeError,o=isFinite,s=Math.abs,u=Date.prototype,v=u.toISOString,f=r(u.getTime),l=r(u.getUTCDate),d=r(u.getUTCFullYear),g=r(u.getUTCHours),h=r(u.getUTCMilliseconds),p=r(u.getUTCMinutes),y=r(u.getUTCMonth),x=r(u.getUTCSeconds);i.exports=n(function(){return v.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!n(function(){v.call(new Date(NaN))})?function(){if(!o(f(this)))throw new a("Invalid time value");var m=this,S=d(m),I=h(m),O=S<0?"-":S>9999?"+":"";return O+e(s(S),O?6:4,0)+"-"+e(y(m)+1,2,0)+"-"+e(l(m),2,0)+"T"+e(g(m),2,0)+":"+e(p(m),2,0)+":"+e(x(m),2,0)+"."+e(I,3,0)+"Z"}:v}),84306:(function(i,c,t){var r=t(25001),n=t(2064),e=TypeError;i.exports=function(a){if(r(this),a==="string"||a==="default")a="string";else if(a!=="number")throw new e("Incorrect hint");return n(this,a)}}),85500:(function(i,c,t){var r=t(13749),n=t(7831);i.exports=function(e,a,o){return o.get&&r(o.get,a,{getter:!0}),o.set&&r(o.set,a,{setter:!0}),n.f(e,a,o)}}),16142:(function(i,c,t){var r=t(23583),n=t(7831),e=t(13749),a=t(36003);i.exports=function(o,s,u,v){v||(v={});var f=v.enumerable,l=v.name!==void 0?v.name:s;if(r(u)&&e(u,l,v),v.global)f?o[s]=u:a(s,u);else{try{v.unsafe?o[s]&&(f=!0):delete o[s]}catch(d){}f?o[s]=u:n.f(o,s,{value:u,enumerable:!1,configurable:!v.nonConfigurable,writable:!v.nonWritable})}return o}}),2725:(function(i,c,t){var r=t(16142);i.exports=function(n,e,a){for(var o in e)r(n,o,e[o],a);return n}}),36003:(function(i,c,t){var r=t(34246),n=Object.defineProperty;i.exports=function(e,a){try{n(r,e,{value:a,configurable:!0,writable:!0})}catch(o){r[e]=a}return a}}),12384:(function(i,c,t){var r=t(82453),n=TypeError;i.exports=function(e,a){if(!delete e[a])throw new n("Cannot delete property "+r(a)+" of "+r(e))}}),92986:(function(i,c,t){var r=t(72069);i.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}),63741:(function(i,c,t){var r=t(34246),n=t(81191),e=t(99050),a=r.structuredClone,o=r.ArrayBuffer,s=r.MessageChannel,u=!1,v,f,l,d;if(e)u=function(g){a(g,{transfer:[g]})};else if(o)try{s||(v=n("worker_threads"),v&&(s=v.MessageChannel)),s&&(f=new s,l=new o(2),d=function(g){f.port1.postMessage(null,[g])},l.byteLength===2&&(d(l),l.byteLength===0&&(u=d)))}catch(g){}i.exports=u}),85501:(function(i,c,t){var r=t(34246),n=t(37540),e=r.document,a=n(e)&&n(e.createElement);i.exports=function(o){return a?e.createElement(o):{}}}),20095:(function(i){var c=TypeError,t=9007199254740991;i.exports=function(r){if(r>t)throw new c("Maximum allowed index exceeded");return r}}),74408:(function(i){i.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}}),93014:(function(i){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),39882:(function(i,c,t){var r=t(85501),n=r("span").classList,e=n&&n.constructor&&n.constructor.prototype;i.exports=e===Object.prototype?void 0:e}),75785:(function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),507:(function(i,c,t){var r=t(18257),n=r.match(/firefox\/(\d+)/i);i.exports=!!n&&+n[1]}),17417:(function(i,c,t){var r=t(18257);i.exports=/MSIE|Trident/.test(r)}),7307:(function(i,c,t){var r=t(18257);i.exports=/ipad|iphone|ipod/i.test(r)&&typeof Pebble!="undefined"}),5286:(function(i,c,t){var r=t(18257);i.exports=/ipad|iphone|ipod/i.test(r)&&/applewebkit/i.test(r)}),91707:(function(i,c,t){var r=t(21501);i.exports=r==="NODE"}),67722:(function(i,c,t){var r=t(18257);i.exports=/web0s(?!.*chrome)/i.test(r)}),18257:(function(i,c,t){var r=t(34246),n=r.navigator,e=n&&n.userAgent;i.exports=e?String(e):""}),44241:(function(i,c,t){var r=t(34246),n=t(18257),e=r.process,a=r.Deno,o=e&&e.versions||a&&a.version,s=o&&o.v8,u,v;s&&(u=s.split("."),v=u[0]>0&&u[0]<4?1:+(u[0]+u[1])),!v&&n&&(u=n.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=n.match(/Chrome\/(\d+)/),u&&(v=+u[1]))),i.exports=v}),66577:(function(i,c,t){var r=t(18257),n=r.match(/AppleWebKit\/(\d+)\./);i.exports=!!n&&+n[1]}),21501:(function(i,c,t){var r=t(34246),n=t(18257),e=t(14274),a=function(o){return n.slice(0,o.length)===o};i.exports=(function(){return a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&typeof Bun.version=="string"?"BUN":r.Deno&&typeof Deno.version=="object"?"DENO":e(r.process)==="process"?"NODE":r.window&&r.document?"BROWSER":"REST"})()}),40851:(function(i,c,t){var r=t(11286),n=Error,e=r("".replace),a=(function(u){return String(new n(u).stack)})("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(a);i.exports=function(u,v){if(s&&typeof u=="string"&&!n.prepareStackTrace)for(;v--;)u=e(u,o,"");return u}}),97077:(function(i,c,t){var r=t(90809),n=t(40851),e=t(16929),a=Error.captureStackTrace;i.exports=function(o,s,u,v){e&&(a?a(o,s):r(o,"stack",n(u,v)))}}),16929:(function(i,c,t){var r=t(72069),n=t(18526);i.exports=!r(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",n(1,7)),e.stack!==7):!0})}),58434:(function(i,c,t){var r=t(92986),n=t(72069),e=t(25001),a=t(15453),o=Error.prototype.toString,s=n(function(){if(r){var u=Object.create(Object.defineProperty({},"name",{get:function(){return this===u}}));if(o.call(u)!=="true")return!0}return o.call({message:1,name:2})!=="2: 1"||o.call({})!=="Error"});i.exports=s?function(){var v=e(this),f=a(v.name,"Error"),l=a(v.message);return f?l?f+": "+l:f:l}:o}),14304:(function(i,c,t){var r=t(34246),n=t(71349).f,e=t(90809),a=t(16142),o=t(36003),s=t(93706),u=t(13278);i.exports=function(v,f){var l=v.target,d=v.global,g=v.stat,h,p,y,x,E,m;if(d?p=r:g?p=r[l]||o(l,{}):p=r[l]&&r[l].prototype,p)for(y in f){if(E=f[y],v.dontCallGetSet?(m=n(p,y),x=m&&m.value):x=p[y],h=u(d?y:l+(g?".":"#")+y,v.forced),!h&&x!==void 0){if(typeof E==typeof x)continue;s(E,x)}(v.sham||x&&x.sham)&&e(E,"sham",!0),a(p,y,E,v)}}}),72069:(function(i){i.exports=function(c){try{return!!c()}catch(t){return!0}}}),63194:(function(i,c,t){t(31145);var r=t(96499),n=t(16142),e=t(44381),a=t(72069),o=t(18565),s=t(90809),u=o("species"),v=RegExp.prototype;i.exports=function(f,l,d,g){var h=o(f),p=!a(function(){var m={};return m[h]=function(){return 7},""[f](m)!==7}),y=p&&!a(function(){var m=!1,S=/a/;if(f==="split"){var I={};I[u]=function(){return S},S={con