mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-11-08 22:32:26 +01:00
add LBT stats to Packet table and details screen
This commit is contained in:
1 parent
24866707f4
commit
6d82936987
4 files changed
+130
-130
No files matched your search
+127
-127
@@ -2,23 +2,23 @@ function CG(d,o){for(var C=0;C<o.length;C++){const B=o[C];if(typeof B!="string"&
|
||||
* @vue/shared v3.5.18
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**//*! #__NO_SIDE_EFFECTS__ */function HA(d){const o=Object.create(null);for(const C of d.split(","))o[C]=1;return C=>C in o}const vf={},h_=[],gg=()=>{},EG=()=>!1,I4=d=>d.charCodeAt(0)===111&&d.charCodeAt(1)===110&&(d.charCodeAt(2)>122||d.charCodeAt(2)<97),WA=d=>d.startsWith("onUpdate:"),lp=Object.assign,$A=(d,o)=>{const C=d.indexOf(o);C>-1&&d.splice(C,1)},LG=Object.prototype.hasOwnProperty,jh=(d,o)=>LG.call(d,o),su=Array.isArray,f_=d=>rw(d)==="[object Map]",O4=d=>rw(d)==="[object Set]",RE=d=>rw(d)==="[object Date]",$u=d=>typeof d=="function",ud=d=>typeof d=="string",zm=d=>typeof d=="symbol",yf=d=>d!==null&&typeof d=="object",Fz=d=>(yf(d)||$u(d))&&$u(d.then)&&$u(d.catch),Rz=Object.prototype.toString,rw=d=>Rz.call(d),PG=d=>rw(d).slice(8,-1),Bz=d=>rw(d)==="[object Object]",qA=d=>ud(d)&&d!=="NaN"&&d[0]!=="-"&&""+parseInt(d,10)===d,T2=HA(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),D4=d=>{const o=Object.create(null);return C=>o[C]||(o[C]=d(C))},zG=/-(\w)/g,dm=D4(d=>d.replace(zG,(o,C)=>C?C.toUpperCase():"")),IG=/\B([A-Z])/g,T1=D4(d=>d.replace(IG,"-$1").toLowerCase()),F4=D4(d=>d.charAt(0).toUpperCase()+d.slice(1)),k8=D4(d=>d?`on${F4(d)}`:""),y1=(d,o)=>!Object.is(d,o),J5=(d,...o)=>{for(let C=0;C<d.length;C++)d[C](...o)},uA=(d,o,C,B=!1)=>{Object.defineProperty(d,o,{configurable:!0,enumerable:!1,writable:B,value:C})},c4=d=>{const o=parseFloat(d);return isNaN(o)?d:o},OG=d=>{const o=ud(d)?Number(d):NaN;return isNaN(o)?d:o};let BE;const R4=()=>BE||(BE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function X0(d){if(su(d)){const o={};for(let C=0;C<d.length;C++){const B=d[C],Y=ud(B)?BG(B):X0(B);if(Y)for(const dt in Y)o[dt]=Y[dt]}return o}else if(ud(d)||yf(d))return d}const DG=/;(?![^(]*\))/g,FG=/:([^]+)/,RG=/\/\*[^]*?\*\//g;function BG(d){const o={};return d.replace(RG,"").split(DG).forEach(C=>{if(C){const B=C.split(FG);B.length>1&&(o[B[0].trim()]=B[1].trim())}}),o}function Qa(d){let o="";if(ud(d))o=d;else if(su(d))for(let C=0;C<d.length;C++){const B=Qa(d[C]);B&&(o+=B+" ")}else if(yf(d))for(const C in d)d[C]&&(o+=C+" ");return o.trim()}const NG="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",jG=HA(NG);function Nz(d){return!!d||d===""}function UG(d,o){if(d.length!==o.length)return!1;let C=!0;for(let B=0;C&&B<d.length;B++)C=v_(d[B],o[B]);return C}function v_(d,o){if(d===o)return!0;let C=RE(d),B=RE(o);if(C||B)return C&&B?d.getTime()===o.getTime():!1;if(C=zm(d),B=zm(o),C||B)return d===o;if(C=su(d),B=su(o),C||B)return C&&B?UG(d,o):!1;if(C=yf(d),B=yf(o),C||B){if(!C||!B)return!1;const Y=Object.keys(d).length,dt=Object.keys(o).length;if(Y!==dt)return!1;for(const xt in d){const Ct=d.hasOwnProperty(xt),Ut=o.hasOwnProperty(xt);if(Ct&&!Ut||!Ct&&Ut||!v_(d[xt],o[xt]))return!1}}return String(d)===String(o)}function VG(d,o){return d.findIndex(C=>v_(C,o))}const jz=d=>!!(d&&d.__v_isRef===!0),On=d=>ud(d)?d:d==null?"":su(d)||yf(d)&&(d.toString===Rz||!$u(d.toString))?jz(d)?On(d.value):JSON.stringify(d,Uz,2):String(d),Uz=(d,o)=>jz(o)?Uz(d,o.value):f_(o)?{[`Map(${o.size})`]:[...o.entries()].reduce((C,[B,Y],dt)=>(C[T8(B,dt)+" =>"]=Y,C),{})}:O4(o)?{[`Set(${o.size})`]:[...o.values()].map(C=>T8(C))}:zm(o)?T8(o):yf(o)&&!su(o)&&!Bz(o)?String(o):o,T8=(d,o="")=>{var C;return zm(d)?`Symbol(${(C=d.description)!=null?C:o})`:d};/**
|
||||
**//*! #__NO_SIDE_EFFECTS__ */function HA(d){const o=Object.create(null);for(const C of d.split(","))o[C]=1;return C=>C in o}const vf={},h_=[],gg=()=>{},EG=()=>!1,I4=d=>d.charCodeAt(0)===111&&d.charCodeAt(1)===110&&(d.charCodeAt(2)>122||d.charCodeAt(2)<97),WA=d=>d.startsWith("onUpdate:"),lp=Object.assign,$A=(d,o)=>{const C=d.indexOf(o);C>-1&&d.splice(C,1)},LG=Object.prototype.hasOwnProperty,jh=(d,o)=>LG.call(d,o),su=Array.isArray,f_=d=>rw(d)==="[object Map]",O4=d=>rw(d)==="[object Set]",RE=d=>rw(d)==="[object Date]",$u=d=>typeof d=="function",ud=d=>typeof d=="string",zm=d=>typeof d=="symbol",yf=d=>d!==null&&typeof d=="object",Fz=d=>(yf(d)||$u(d))&&$u(d.then)&&$u(d.catch),Rz=Object.prototype.toString,rw=d=>Rz.call(d),PG=d=>rw(d).slice(8,-1),Bz=d=>rw(d)==="[object Object]",qA=d=>ud(d)&&d!=="NaN"&&d[0]!=="-"&&""+parseInt(d,10)===d,T2=HA(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),D4=d=>{const o=Object.create(null);return C=>o[C]||(o[C]=d(C))},zG=/-(\w)/g,dm=D4(d=>d.replace(zG,(o,C)=>C?C.toUpperCase():"")),IG=/\B([A-Z])/g,T1=D4(d=>d.replace(IG,"-$1").toLowerCase()),F4=D4(d=>d.charAt(0).toUpperCase()+d.slice(1)),k8=D4(d=>d?`on${F4(d)}`:""),y1=(d,o)=>!Object.is(d,o),J5=(d,...o)=>{for(let C=0;C<d.length;C++)d[C](...o)},uA=(d,o,C,B=!1)=>{Object.defineProperty(d,o,{configurable:!0,enumerable:!1,writable:B,value:C})},c4=d=>{const o=parseFloat(d);return isNaN(o)?d:o},OG=d=>{const o=ud(d)?Number(d):NaN;return isNaN(o)?d:o};let BE;const R4=()=>BE||(BE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function P0(d){if(su(d)){const o={};for(let C=0;C<d.length;C++){const B=d[C],Y=ud(B)?BG(B):P0(B);if(Y)for(const dt in Y)o[dt]=Y[dt]}return o}else if(ud(d)||yf(d))return d}const DG=/;(?![^(]*\))/g,FG=/:([^]+)/,RG=/\/\*[^]*?\*\//g;function BG(d){const o={};return d.replace(RG,"").split(DG).forEach(C=>{if(C){const B=C.split(FG);B.length>1&&(o[B[0].trim()]=B[1].trim())}}),o}function Xa(d){let o="";if(ud(d))o=d;else if(su(d))for(let C=0;C<d.length;C++){const B=Xa(d[C]);B&&(o+=B+" ")}else if(yf(d))for(const C in d)d[C]&&(o+=C+" ");return o.trim()}const NG="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",jG=HA(NG);function Nz(d){return!!d||d===""}function UG(d,o){if(d.length!==o.length)return!1;let C=!0;for(let B=0;C&&B<d.length;B++)C=v_(d[B],o[B]);return C}function v_(d,o){if(d===o)return!0;let C=RE(d),B=RE(o);if(C||B)return C&&B?d.getTime()===o.getTime():!1;if(C=zm(d),B=zm(o),C||B)return d===o;if(C=su(d),B=su(o),C||B)return C&&B?UG(d,o):!1;if(C=yf(d),B=yf(o),C||B){if(!C||!B)return!1;const Y=Object.keys(d).length,dt=Object.keys(o).length;if(Y!==dt)return!1;for(const xt in d){const Ct=d.hasOwnProperty(xt),Ut=o.hasOwnProperty(xt);if(Ct&&!Ut||!Ct&&Ut||!v_(d[xt],o[xt]))return!1}}return String(d)===String(o)}function VG(d,o){return d.findIndex(C=>v_(C,o))}const jz=d=>!!(d&&d.__v_isRef===!0),Pn=d=>ud(d)?d:d==null?"":su(d)||yf(d)&&(d.toString===Rz||!$u(d.toString))?jz(d)?Pn(d.value):JSON.stringify(d,Uz,2):String(d),Uz=(d,o)=>jz(o)?Uz(d,o.value):f_(o)?{[`Map(${o.size})`]:[...o.entries()].reduce((C,[B,Y],dt)=>(C[T8(B,dt)+" =>"]=Y,C),{})}:O4(o)?{[`Set(${o.size})`]:[...o.values()].map(C=>T8(C))}:zm(o)?T8(o):yf(o)&&!su(o)&&!Bz(o)?String(o):o,T8=(d,o="")=>{var C;return zm(d)?`Symbol(${(C=d.description)!=null?C:o})`:d};/**
|
||||
* @vue/reactivity v3.5.18
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let Yp;class Vz{constructor(o=!1){this.detached=o,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Yp,!o&&Yp&&(this.index=(Yp.scopes||(Yp.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let o,C;if(this.scopes)for(o=0,C=this.scopes.length;o<C;o++)this.scopes[o].pause();for(o=0,C=this.effects.length;o<C;o++)this.effects[o].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let o,C;if(this.scopes)for(o=0,C=this.scopes.length;o<C;o++)this.scopes[o].resume();for(o=0,C=this.effects.length;o<C;o++)this.effects[o].resume()}}run(o){if(this._active){const C=Yp;try{return Yp=this,o()}finally{Yp=C}}}on(){++this._on===1&&(this.prevScope=Yp,Yp=this)}off(){this._on>0&&--this._on===0&&(Yp=this.prevScope,this.prevScope=void 0)}stop(o){if(this._active){this._active=!1;let C,B;for(C=0,B=this.effects.length;C<B;C++)this.effects[C].stop();for(this.effects.length=0,C=0,B=this.cleanups.length;C<B;C++)this.cleanups[C]();if(this.cleanups.length=0,this.scopes){for(C=0,B=this.scopes.length;C<B;C++)this.scopes[C].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!o){const Y=this.parent.scopes.pop();Y&&Y!==this&&(this.parent.scopes[this.index]=Y,Y.index=this.index)}this.parent=void 0}}}function Hz(d){return new Vz(d)}function Wz(){return Yp}function HG(d,o=!1){Yp&&Yp.cleanups.push(d)}let Af;const A8=new WeakSet;class $z{constructor(o){this.fn=o,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Yp&&Yp.active&&Yp.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,A8.has(this)&&(A8.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Zz(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,NE(this),Gz(this);const o=Af,C=Lm;Af=this,Lm=!0;try{return this.fn()}finally{Yz(this),Af=o,Lm=C,this.flags&=-3}}stop(){if(this.flags&1){for(let o=this.deps;o;o=o.nextDep)YA(o);this.deps=this.depsTail=void 0,NE(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?A8.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){cA(this)&&this.run()}get dirty(){return cA(this)}}let qz=0,A2,M2;function Zz(d,o=!1){if(d.flags|=8,o){d.next=M2,M2=d;return}d.next=A2,A2=d}function ZA(){qz++}function GA(){if(--qz>0)return;if(M2){let o=M2;for(M2=void 0;o;){const C=o.next;o.next=void 0,o.flags&=-9,o=C}}let d;for(;A2;){let o=A2;for(A2=void 0;o;){const C=o.next;if(o.next=void 0,o.flags&=-9,o.flags&1)try{o.trigger()}catch(B){d||(d=B)}o=C}}if(d)throw d}function Gz(d){for(let o=d.deps;o;o=o.nextDep)o.version=-1,o.prevActiveLink=o.dep.activeLink,o.dep.activeLink=o}function Yz(d){let o,C=d.depsTail,B=C;for(;B;){const Y=B.prevDep;B.version===-1?(B===C&&(C=Y),YA(B),WG(B)):o=B,B.dep.activeLink=B.prevActiveLink,B.prevActiveLink=void 0,B=Y}d.deps=o,d.depsTail=C}function cA(d){for(let o=d.deps;o;o=o.nextDep)if(o.dep.version!==o.version||o.dep.computed&&(Kz(o.dep.computed)||o.dep.version!==o.version))return!0;return!!d._dirty}function Kz(d){if(d.flags&4&&!(d.flags&16)||(d.flags&=-17,d.globalVersion===B2)||(d.globalVersion=B2,!d.isSSR&&d.flags&128&&(!d.deps&&!d._dirty||!cA(d))))return;d.flags|=2;const o=d.dep,C=Af,B=Lm;Af=d,Lm=!0;try{Gz(d);const Y=d.fn(d._value);(o.version===0||y1(Y,d._value))&&(d.flags|=128,d._value=Y,o.version++)}catch(Y){throw o.version++,Y}finally{Af=C,Lm=B,Yz(d),d.flags&=-3}}function YA(d,o=!1){const{dep:C,prevSub:B,nextSub:Y}=d;if(B&&(B.nextSub=Y,d.prevSub=void 0),Y&&(Y.prevSub=B,d.nextSub=void 0),C.subs===d&&(C.subs=B,!B&&C.computed)){C.computed.flags&=-5;for(let dt=C.computed.deps;dt;dt=dt.nextDep)YA(dt,!0)}!o&&!--C.sc&&C.map&&C.map.delete(C.key)}function WG(d){const{prevDep:o,nextDep:C}=d;o&&(o.nextDep=C,d.prevDep=void 0),C&&(C.prevDep=o,d.nextDep=void 0)}let Lm=!0;const Xz=[];function lv(){Xz.push(Lm),Lm=!1}function uv(){const d=Xz.pop();Lm=d===void 0?!0:d}function NE(d){const{cleanup:o}=d;if(d.cleanup=void 0,o){const C=Af;Af=void 0;try{o()}finally{Af=C}}}let B2=0;class $G{constructor(o,C){this.sub=o,this.dep=C,this.version=C.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class KA{constructor(o){this.computed=o,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(o){if(!Af||!Lm||Af===this.computed)return;let C=this.activeLink;if(C===void 0||C.sub!==Af)C=this.activeLink=new $G(Af,this),Af.deps?(C.prevDep=Af.depsTail,Af.depsTail.nextDep=C,Af.depsTail=C):Af.deps=Af.depsTail=C,Jz(C);else if(C.version===-1&&(C.version=this.version,C.nextDep)){const B=C.nextDep;B.prevDep=C.prevDep,C.prevDep&&(C.prevDep.nextDep=B),C.prevDep=Af.depsTail,C.nextDep=void 0,Af.depsTail.nextDep=C,Af.depsTail=C,Af.deps===C&&(Af.deps=B)}return C}trigger(o){this.version++,B2++,this.notify(o)}notify(o){ZA();try{for(let C=this.subs;C;C=C.prevSub)C.sub.notify()&&C.sub.dep.notify()}finally{GA()}}}fLine truncated
|
||||
**/let Yp;class Vz{constructor(o=!1){this.detached=o,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Yp,!o&&Yp&&(this.index=(Yp.scopes||(Yp.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let o,C;if(this.scopes)for(o=0,C=this.scopes.length;o<C;o++)this.scopes[o].pause();for(o=0,C=this.effects.length;o<C;o++)this.effects[o].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let o,C;if(this.scopes)for(o=0,C=this.scopes.length;o<C;o++)this.scopes[o].resume();for(o=0,C=this.effects.length;o<C;o++)this.effects[o].resume()}}run(o){if(this._active){const C=Yp;try{return Yp=this,o()}finally{Yp=C}}}on(){++this._on===1&&(this.prevScope=Yp,Yp=this)}off(){this._on>0&&--this._on===0&&(Yp=this.prevScope,this.prevScope=void 0)}stop(o){if(this._active){this._active=!1;let C,B;for(C=0,B=this.effects.length;C<B;C++)this.effects[C].stop();for(this.effects.length=0,C=0,B=this.cleanups.length;C<B;C++)this.cleanups[C]();if(this.cleanups.length=0,this.scopes){for(C=0,B=this.scopes.length;C<B;C++)this.scopes[C].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!o){const Y=this.parent.scopes.pop();Y&&Y!==this&&(this.parent.scopes[this.index]=Y,Y.index=this.index)}this.parent=void 0}}}function Hz(d){return new Vz(d)}function Wz(){return Yp}function HG(d,o=!1){Yp&&Yp.cleanups.push(d)}let Af;const A8=new WeakSet;class $z{constructor(o){this.fn=o,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Yp&&Yp.active&&Yp.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,A8.has(this)&&(A8.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Zz(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,NE(this),Gz(this);const o=Af,C=Lm;Af=this,Lm=!0;try{return this.fn()}finally{Yz(this),Af=o,Lm=C,this.flags&=-3}}stop(){if(this.flags&1){for(let o=this.deps;o;o=o.nextDep)YA(o);this.deps=this.depsTail=void 0,NE(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?A8.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){cA(this)&&this.run()}get dirty(){return cA(this)}}let qz=0,A2,M2;function Zz(d,o=!1){if(d.flags|=8,o){d.next=M2,M2=d;return}d.next=A2,A2=d}function ZA(){qz++}function GA(){if(--qz>0)return;if(M2){let o=M2;for(M2=void 0;o;){const C=o.next;o.next=void 0,o.flags&=-9,o=C}}let d;for(;A2;){let o=A2;for(A2=void 0;o;){const C=o.next;if(o.next=void 0,o.flags&=-9,o.flags&1)try{o.trigger()}catch(B){d||(d=B)}o=C}}if(d)throw d}function Gz(d){for(let o=d.deps;o;o=o.nextDep)o.version=-1,o.prevActiveLink=o.dep.activeLink,o.dep.activeLink=o}function Yz(d){let o,C=d.depsTail,B=C;for(;B;){const Y=B.prevDep;B.version===-1?(B===C&&(C=Y),YA(B),WG(B)):o=B,B.dep.activeLink=B.prevActiveLink,B.prevActiveLink=void 0,B=Y}d.deps=o,d.depsTail=C}function cA(d){for(let o=d.deps;o;o=o.nextDep)if(o.dep.version!==o.version||o.dep.computed&&(Kz(o.dep.computed)||o.dep.version!==o.version))return!0;return!!d._dirty}function Kz(d){if(d.flags&4&&!(d.flags&16)||(d.flags&=-17,d.globalVersion===B2)||(d.globalVersion=B2,!d.isSSR&&d.flags&128&&(!d.deps&&!d._dirty||!cA(d))))return;d.flags|=2;const o=d.dep,C=Af,B=Lm;Af=d,Lm=!0;try{Gz(d);const Y=d.fn(d._value);(o.version===0||y1(Y,d._value))&&(d.flags|=128,d._value=Y,o.version++)}catch(Y){throw o.version++,Y}finally{Af=C,Lm=B,Yz(d),d.flags&=-3}}function YA(d,o=!1){const{dep:C,prevSub:B,nextSub:Y}=d;if(B&&(B.nextSub=Y,d.prevSub=void 0),Y&&(Y.prevSub=B,d.nextSub=void 0),C.subs===d&&(C.subs=B,!B&&C.computed)){C.computed.flags&=-5;for(let dt=C.computed.deps;dt;dt=dt.nextDep)YA(dt,!0)}!o&&!--C.sc&&C.map&&C.map.delete(C.key)}function WG(d){const{prevDep:o,nextDep:C}=d;o&&(o.nextDep=C,d.prevDep=void 0),C&&(C.prevDep=o,d.nextDep=void 0)}let Lm=!0;const Xz=[];function lv(){Xz.push(Lm),Lm=!1}function uv(){const d=Xz.pop();Lm=d===void 0?!0:d}function NE(d){const{cleanup:o}=d;if(d.cleanup=void 0,o){const C=Af;Af=void 0;try{o()}finally{Af=C}}}let B2=0;class $G{constructor(o,C){this.sub=o,this.dep=C,this.version=C.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class KA{constructor(o){this.computed=o,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(o){if(!Af||!Lm||Af===this.computed)return;let C=this.activeLink;if(C===void 0||C.sub!==Af)C=this.activeLink=new $G(Af,this),Af.deps?(C.prevDep=Af.depsTail,Af.depsTail.nextDep=C,Af.depsTail=C):Af.deps=Af.depsTail=C,Jz(C);else if(C.version===-1&&(C.version=this.version,C.nextDep)){const B=C.nextDep;B.prevDep=C.prevDep,C.prevDep&&(C.prevDep.nextDep=B),C.prevDep=Af.depsTail,C.nextDep=void 0,Af.depsTail.nextDep=C,Af.depsTail=C,Af.deps===C&&(Af.deps=B)}return C}trigger(o){this.version++,B2++,this.notify(o)}notify(o){ZA();try{for(let C=this.subs;C;C=C.prevSub)C.sub.notify()&&C.sub.dep.notify()}finally{GA()}}}fLine truncated
|
||||
* @vue/runtime-core v3.5.18
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/function nw(d,o,C,B){try{return B?d(...B):d()}catch(Y){N4(Y,o,C)}}function Im(d,o,C,B){if($u(d)){const Y=nw(d,o,C,B);return Y&&Fz(Y)&&Y.catch(dt=>{N4(dt,o,C)}),Y}if(su(d)){const Y=[];for(let dt=0;dt<d.length;dt++)Y.push(Im(d[dt],o,C,B));return Y}}function N4(d,o,C,B=!0){const Y=o?o.vnode:null,{errorHandler:dt,throwUnhandledErrorInProduction:xt}=o&&o.appContext.config||vf;if(o){let Ct=o.parent;const Ut=o.proxy,re=`https://vuejs.org/error-reference/#runtime-${C}`;for(;Ct;){const ae=Ct.ec;if(ae){for(let we=0;we<ae.length;we++)if(ae[we](d,Ut,re)===!1)return}Ct=Ct.parent}if(dt){lv(),nw(dt,null,10,[d,Ut,re]),uv();return}}xY(d,C,Y,B,xt)}function xY(d,o,C,B=!0,Y=!1){if(Y)throw d;console.error(d)}const p0=[];let cg=-1;const d_=[];let s1=null,l_=0;const uI=Promise.resolve();let p4=null;function L0(d){const o=p4||uI;return d?o.then(this?d.bind(this):d):o}function _Y(d){let o=cg+1,C=p0.length;for(;o<C;){const B=o+C>>>1,Y=p0[B],dt=j2(Y);dt<d||dt===d&&Y.flags&2?o=B+1:C=B}return o}function e7(d){if(!(d.flags&1)){const o=j2(d),C=p0[p0.length-1];!C||!(d.flags&2)&&o>=j2(C)?p0.push(d):p0.splice(_Y(o),0,d),d.flags|=1,cI()}}function cI(){p4||(p4=uI.then(fI))}function bY(d){su(d)?d_.push(...d):s1&&d.id===-1?s1.splice(l_+1,0,d):d.flags&1||(d_.push(d),d.flags|=1),cI()}function UE(d,o,C=cg+1){for(;C<p0.length;C++){const B=p0[C];if(B&&B.flags&2){if(d&&B.id!==d.uid)continue;p0.splice(C,1),C--,B.flags&4&&(B.flags&=-2),B(),B.flags&4||(B.flags&=-2)}}}function hI(d){if(d_.length){const o=[...new Set(d_)].sort((C,B)=>j2(C)-j2(B));if(d_.length=0,s1){s1.push(...o);return}for(s1=o,l_=0;l_<s1.length;l_++){const C=s1[l_];C.flags&4&&(C.flags&=-2),C.flags&8||C(),C.flags&=-2}s1=null,l_=0}}const j2=d=>d.id==null?d.flags&2?-1:1/0:d.id;function fI(d){try{for(cg=0;cg<p0.length;cg++){const o=p0[cg];o&&!(o.flags&8)&&(o.flags&4&&(o.flags&=-2),nw(o,o.i,o.i?15:14),o.flags&4||(o.flags&=-2))}}finally{for(;cg<p0.length;cg++){const o=p0[cg];o&&(o.flags&=-2)}cg=-1,p0.length=0,hI(),p4=null,(p0.length||d_.length)&&fI()}}let Fp=null,dI=null;function m4(d){const o=Fp;return Fp=d,dI=d&&d.type.__scopeId||null,o}function iw(d,o=Fp,C){if(!o||d._n)return d;const B=(...Y)=>{B._d&&eL(-1);const dt=m4(o);let xt;try{xt=d(...Y)}finally{m4(dt),B._d&&eL(1)}return xt};return B._n=!0,B._c=!0,B._d=!0,B}function Lc(d,o){if(Fp===null)return d;const C=$4(Fp),B=d.dirs||(d.dirs=[]);for(let Y=0;Y<o.length;Y++){let[dt,xt,Ct,Ut=vf]=o[Y];dt&&($u(dt)&&(dt={mounted:dt,updated:dt}),dt.deep&&nv(xt),B.push({dir:dt,instance:C,value:xt,oldValue:void 0,arg:Ct,modifiers:Ut}))}return d}function cy(d,o,C,B){const Y=d.dirs,dt=o&&o.dirs;for(let xt=0;xt<Y.length;xt++){const Ct=Y[xt];dt&&(Ct.oldValue=dt[xt].value);let Ut=Ct.dir[B];Ut&&(lv(),Im(Ut,C,8,[d.el,Ct,d,o]),uv())}}const pI=Symbol("_vte"),mI=d=>d.__isTeleport,S2=d=>d&&(d.disabled||d.disabled===""),VE=d=>d&&(d.defer||d.defer===""),HE=d=>typeof SVGElement<"u"&&d instanceof SVGElement,WE=d=>typeof MathMLElement=="function"&&d instanceof MathMLElement,dA=(d,o)=>{const C=d&&d.to;return ud(C)?o?o(C):null:C},gI={name:"Teleport",__isTeleport:!0,process(d,o,C,B,Y,dt,xt,Ct,Ut,re){const{mc:ae,pc:we,pbc:Xe,o:{insert:fr,querySelector:Tr,createText:mr,createComment:Sr}}=re,Yr=S2(o.props);let{shapeFlag:zt,children:on,dynamicChildren:ti}=o;if(d==null){const Gn=o.el=mr(""),ei=o.anchor=mr("");fr(Gn,C,B),fr(ei,C,B);const Si=(nn,yi)=>{zt&16&&(Y&&Y.isCE&&(Y.ce._teleportTarget=nn),ae(on,nn,yi,Y,dt,xt,Ct,Ut))},ji=()=>{const nn=o.target=dA(o.props,Tr),yi=vI(nn,o,mr,fr);nn&&(xt!=="svg"&&HE(nn)?xt="svg":xt!=="mathml"&&WE(nn)&&(xt="mathml"),Yr||(Si(nn,yi),Q5(o,!1)))};Yr&&(Si(C,ei),Q5(o,!0)),VE(o.props)?(o.el.__isMounted=!1,f0(()=>{ji(),delete o.el.__isMounted},dt)):ji()}else{if(VE(o.props)&&d.el.__isMounted===!1){f0(()=>{gI.process(d,o,C,B,Y,dt,xt,Ct,Ut,re)},dt);return}o.el=d.el,o.targetStart=d.targetStart;const Gn=o.anchor=d.anchor,ei=o.target=d.target,Si=o.targetAnchor=d.targetAnchor,ji=S2(d.props),nn=ji?C:ei,yi=ji?Gn:Si;if(xt==="svg"||HE(ei)?xt="svg":(xt==="mathml"||WE(ei))&&(xt="mathml"),ti?(Xe(d.dynamicChildren,ti,nn,Y,dt,xt,Ct),s7(d,o,!0)):Ut||we(d,o,nn,yi,Y,dt,xt,Ct,!1),Yr)ji?o.props&&d.props&&o.props.to!==d.props.to&&(o.props.to=d.props.to):I5(o,C,Gn,re,1);else if((o.props&&o.props.to)!==(d.props&&d.props.to)){const Yn=o.target=dA(o.props,Tr);Yn&&I5(o,Yn,null,re,0)}else ji&&I5(o,ei,Si,re,1);Q5(o,Yr)}},remove(d,o,C,{um:B,o:{remove:Y}},dt){const{shapeFlag:xt,children:Ct,anchor:Ut,targetStart:re,targetAnchor:ae,target:we,props:Xe}=d;if(we&&(Y(re),Y(ae)),dt&&Y(Ut),xt&16){const fr=dt||!S2(Xe);for(let Tr=0;Tr<Ct.length;Tr++){const mr=Ct[Tr];B(mr,o,C,fr,!!mr.dynamicChildren)}}},move:I5,hydrate:wY};function I5(d,o,C,{o:{insert:B},m:Y},dt=2){dt===0&&B(d.targetAnchor,o,C);const{el:xt,anchor:Ct,shapeFlag:Ut,children:re,props:ae}=d,we=dt===2;if(we&&B(xt,o,C),(!we||S2(ae))&&Ut&16)for(let Xe=0;Xe<re.length;Xe++)Y(re[Xe],o,C,2);we&&B(Ct,o,C)}function wY(d,o,C,B,Y,dt,{o:{nextSibling:xt,parentNode:Ct,querySelector:Ut,insert:re,createText:ae}},we){const Xe=o.target=dA(o.props,Ut
Line truncated
|
||||
**/function nw(d,o,C,B){try{return B?d(...B):d()}catch(Y){N4(Y,o,C)}}function Im(d,o,C,B){if($u(d)){const Y=nw(d,o,C,B);return Y&&Fz(Y)&&Y.catch(dt=>{N4(dt,o,C)}),Y}if(su(d)){const Y=[];for(let dt=0;dt<d.length;dt++)Y.push(Im(d[dt],o,C,B));return Y}}function N4(d,o,C,B=!0){const Y=o?o.vnode:null,{errorHandler:dt,throwUnhandledErrorInProduction:xt}=o&&o.appContext.config||vf;if(o){let Ct=o.parent;const Ut=o.proxy,re=`https://vuejs.org/error-reference/#runtime-${C}`;for(;Ct;){const ae=Ct.ec;if(ae){for(let we=0;we<ae.length;we++)if(ae[we](d,Ut,re)===!1)return}Ct=Ct.parent}if(dt){lv(),nw(dt,null,10,[d,Ut,re]),uv();return}}xY(d,C,Y,B,xt)}function xY(d,o,C,B=!0,Y=!1){if(Y)throw d;console.error(d)}const p0=[];let cg=-1;const d_=[];let s1=null,l_=0;const uI=Promise.resolve();let p4=null;function L0(d){const o=p4||uI;return d?o.then(this?d.bind(this):d):o}function _Y(d){let o=cg+1,C=p0.length;for(;o<C;){const B=o+C>>>1,Y=p0[B],dt=j2(Y);dt<d||dt===d&&Y.flags&2?o=B+1:C=B}return o}function e7(d){if(!(d.flags&1)){const o=j2(d),C=p0[p0.length-1];!C||!(d.flags&2)&&o>=j2(C)?p0.push(d):p0.splice(_Y(o),0,d),d.flags|=1,cI()}}function cI(){p4||(p4=uI.then(fI))}function bY(d){su(d)?d_.push(...d):s1&&d.id===-1?s1.splice(l_+1,0,d):d.flags&1||(d_.push(d),d.flags|=1),cI()}function UE(d,o,C=cg+1){for(;C<p0.length;C++){const B=p0[C];if(B&&B.flags&2){if(d&&B.id!==d.uid)continue;p0.splice(C,1),C--,B.flags&4&&(B.flags&=-2),B(),B.flags&4||(B.flags&=-2)}}}function hI(d){if(d_.length){const o=[...new Set(d_)].sort((C,B)=>j2(C)-j2(B));if(d_.length=0,s1){s1.push(...o);return}for(s1=o,l_=0;l_<s1.length;l_++){const C=s1[l_];C.flags&4&&(C.flags&=-2),C.flags&8||C(),C.flags&=-2}s1=null,l_=0}}const j2=d=>d.id==null?d.flags&2?-1:1/0:d.id;function fI(d){try{for(cg=0;cg<p0.length;cg++){const o=p0[cg];o&&!(o.flags&8)&&(o.flags&4&&(o.flags&=-2),nw(o,o.i,o.i?15:14),o.flags&4||(o.flags&=-2))}}finally{for(;cg<p0.length;cg++){const o=p0[cg];o&&(o.flags&=-2)}cg=-1,p0.length=0,hI(),p4=null,(p0.length||d_.length)&&fI()}}let Fp=null,dI=null;function m4(d){const o=Fp;return Fp=d,dI=d&&d.type.__scopeId||null,o}function iw(d,o=Fp,C){if(!o||d._n)return d;const B=(...Y)=>{B._d&&eL(-1);const dt=m4(o);let xt;try{xt=d(...Y)}finally{m4(dt),B._d&&eL(1)}return xt};return B._n=!0,B._c=!0,B._d=!0,B}function Lc(d,o){if(Fp===null)return d;const C=$4(Fp),B=d.dirs||(d.dirs=[]);for(let Y=0;Y<o.length;Y++){let[dt,xt,Ct,Ut=vf]=o[Y];dt&&($u(dt)&&(dt={mounted:dt,updated:dt}),dt.deep&&nv(xt),B.push({dir:dt,instance:C,value:xt,oldValue:void 0,arg:Ct,modifiers:Ut}))}return d}function cy(d,o,C,B){const Y=d.dirs,dt=o&&o.dirs;for(let xt=0;xt<Y.length;xt++){const Ct=Y[xt];dt&&(Ct.oldValue=dt[xt].value);let Ut=Ct.dir[B];Ut&&(lv(),Im(Ut,C,8,[d.el,Ct,d,o]),uv())}}const pI=Symbol("_vte"),mI=d=>d.__isTeleport,S2=d=>d&&(d.disabled||d.disabled===""),VE=d=>d&&(d.defer||d.defer===""),HE=d=>typeof SVGElement<"u"&&d instanceof SVGElement,WE=d=>typeof MathMLElement=="function"&&d instanceof MathMLElement,dA=(d,o)=>{const C=d&&d.to;return ud(C)?o?o(C):null:C},gI={name:"Teleport",__isTeleport:!0,process(d,o,C,B,Y,dt,xt,Ct,Ut,re){const{mc:ae,pc:we,pbc:Xe,o:{insert:fr,querySelector:Tr,createText:mr,createComment:Sr}}=re,Yr=S2(o.props);let{shapeFlag:Rt,children:ai,dynamicChildren:fn}=o;if(d==null){const dn=o.el=mr(""),_i=o.anchor=mr("");fr(dn,C,B),fr(_i,C,B);const oi=(qr,hi)=>{Rt&16&&(Y&&Y.isCE&&(Y.ce._teleportTarget=qr),ae(ai,qr,hi,Y,dt,xt,Ct,Ut))},Kn=()=>{const qr=o.target=dA(o.props,Tr),hi=vI(qr,o,mr,fr);qr&&(xt!=="svg"&&HE(qr)?xt="svg":xt!=="mathml"&&WE(qr)&&(xt="mathml"),Yr||(oi(qr,hi),Q5(o,!1)))};Yr&&(oi(C,_i),Q5(o,!0)),VE(o.props)?(o.el.__isMounted=!1,f0(()=>{Kn(),delete o.el.__isMounted},dt)):Kn()}else{if(VE(o.props)&&d.el.__isMounted===!1){f0(()=>{gI.process(d,o,C,B,Y,dt,xt,Ct,Ut,re)},dt);return}o.el=d.el,o.targetStart=d.targetStart;const dn=o.anchor=d.anchor,_i=o.target=d.target,oi=o.targetAnchor=d.targetAnchor,Kn=S2(d.props),qr=Kn?C:_i,hi=Kn?dn:oi;if(xt==="svg"||HE(_i)?xt="svg":(xt==="mathml"||WE(_i))&&(xt="mathml"),fn?(Xe(d.dynamicChildren,fn,qr,Y,dt,xt,Ct),s7(d,o,!0)):Ut||we(d,o,qr,hi,Y,dt,xt,Ct,!1),Yr)Kn?o.props&&d.props&&o.props.to!==d.props.to&&(o.props.to=d.props.to):I5(o,C,dn,re,1);else if((o.props&&o.props.to)!==(d.props&&d.props.to)){const Hn=o.target=dA(o.props,Tr);Hn&&I5(o,Hn,null,re,0)}else Kn&&I5(o,_i,oi,re,1);Q5(o,Yr)}},remove(d,o,C,{um:B,o:{remove:Y}},dt){const{shapeFlag:xt,children:Ct,anchor:Ut,targetStart:re,targetAnchor:ae,target:we,props:Xe}=d;if(we&&(Y(re),Y(ae)),dt&&Y(Ut),xt&16){const fr=dt||!S2(Xe);for(let Tr=0;Tr<Ct.length;Tr++){const mr=Ct[Tr];B(mr,o,C,fr,!!mr.dynamicChildren)}}},move:I5,hydrate:wY};function I5(d,o,C,{o:{insert:B},m:Y},dt=2){dt===0&&B(d.targetAnchor,o,C);const{el:xt,anchor:Ct,shapeFlag:Ut,children:re,props:ae}=d,we=dt===2;if(we&&B(xt,o,C),(!we||S2(ae))&&Ut&16)for(let Xe=0;Xe<re.length;Xe++)Y(re[Xe],o,C,2);we&&B(Ct,o,C)}function wY(d,o,C,B,Y,dt,{o:{nextSibling:xt,parentNode:Ct,querySelector:Ut,insert:re,createText:ae}},we){const Xe=o.target=dA(o.props,Ut
Line truncated
|
||||
* @vue/runtime-dom v3.5.18
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let xA;const iL=typeof window<"u"&&window.trustedTypes;if(iL)try{xA=iL.createPolicy("vue",{createHTML:d=>d})}catch{}const KI=xA?d=>xA.createHTML(d):d=>d,TK="http://www.w3.org/2000/svg",AK="http://www.w3.org/1998/Math/MathML",tv=typeof document<"u"?document:null,aL=tv&&tv.createElement("template"),MK={insert:(d,o,C)=>{o.insertBefore(d,C||null)},remove:d=>{const o=d.parentNode;o&&o.removeChild(d)},createElement:(d,o,C,B)=>{const Y=o==="svg"?tv.createElementNS(TK,d):o==="mathml"?tv.createElementNS(AK,d):C?tv.createElement(d,{is:C}):tv.createElement(d);return d==="select"&&B&&B.multiple!=null&&Y.setAttribute("multiple",B.multiple),Y},createText:d=>tv.createTextNode(d),createComment:d=>tv.createComment(d),setText:(d,o)=>{d.nodeValue=o},setElementText:(d,o)=>{d.textContent=o},parentNode:d=>d.parentNode,nextSibling:d=>d.nextSibling,querySelector:d=>tv.querySelector(d),setScopeId(d,o){d.setAttribute(o,"")},insertStaticContent(d,o,C,B,Y,dt){const xt=C?C.previousSibling:o.lastChild;if(Y&&(Y===dt||Y.nextSibling))for(;o.insertBefore(Y.cloneNode(!0),C),!(Y===dt||!(Y=Y.nextSibling)););else{aL.innerHTML=KI(B==="svg"?`<svg>${d}</svg>`:B==="mathml"?`<math>${d}</math>`:d);const Ct=aL.content;if(B==="svg"||B==="mathml"){const Ut=Ct.firstChild;for(;Ut.firstChild;)Ct.appendChild(Ut.firstChild);Ct.removeChild(Ut)}o.insertBefore(Ct,C)}return[xt?xt.nextSibling:o.firstChild,C?C.previousSibling:o.lastChild]}},e1="transition",i2="animation",y_=Symbol("_vtc"),XI={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},JI=lp({},xI,XI),SK=d=>(d.displayName="Transition",d.props=JI,d),QI=SK((d,{slots:o})=>u7(TY,tO(d),o)),fy=(d,o=[])=>{su(d)?d.forEach(C=>C(...o)):d&&d(...o)},oL=d=>d?su(d)?d.some(o=>o.length>1):d.length>1:!1;function tO(d){const o={};for(const li in d)li in XI||(o[li]=d[li]);if(d.css===!1)return o;const{name:C="v",type:B,duration:Y,enterFromClass:dt=`${C}-enter-from`,enterActiveClass:xt=`${C}-enter-active`,enterToClass:Ct=`${C}-enter-to`,appearFromClass:Ut=dt,appearActiveClass:re=xt,appearToClass:ae=Ct,leaveFromClass:we=`${C}-leave-from`,leaveActiveClass:Xe=`${C}-leave-active`,leaveToClass:fr=`${C}-leave-to`}=d,Tr=CK(Y),mr=Tr&&Tr[0],Sr=Tr&&Tr[1],{onBeforeEnter:Yr,onEnter:zt,onEnterCancelled:on,onLeave:ti,onLeaveCancelled:Gn,onBeforeAppear:ei=Yr,onAppear:Si=zt,onAppearCancelled:ji=on}=o,nn=(li,jn,$n,Li)=>{li._enterCancelled=Li,i1(li,jn?ae:Ct),i1(li,jn?re:xt),$n&&$n()},yi=(li,jn)=>{li._isLeaving=!1,i1(li,we),i1(li,fr),i1(li,Xe),jn&&jn()},Yn=li=>(jn,$n)=>{const Li=li?Si:zt,Ln=()=>nn(jn,li,$n);fy(Li,[jn,Ln]),sL(()=>{i1(jn,li?Ut:dt),lg(jn,li?ae:Ct),oL(Li)||lL(jn,B,mr,Ln)})};return lp(o,{onBeforeEnter(li){fy(Yr,[li]),lg(li,dt),lg(li,xt)},onBeforeAppear(li){fy(ei,[li]),lg(li,Ut),lg(li,re)},onEnter:Yn(!1),onAppear:Yn(!0),onLeave(li,jn){li._isLeaving=!0;const $n=()=>yi(li,jn);lg(li,we),li._enterCancelled?(lg(li,Xe),_A()):(_A(),lg(li,Xe)),sL(()=>{li._isLeaving&&(i1(li,we),lg(li,fr),oL(ti)||lL(li,B,Sr,$n))}),fy(ti,[li,$n])},onEnterCancelled(li){nn(li,!1,void 0,!0),fy(on,[li])},onAppearCancelled(li){nn(li,!0,void 0,!0),fy(ji,[li])},onLeaveCancelled(li){yi(li),fy(Gn,[li])}})}function CK(d){if(d==null)return null;if(yf(d))return[P8(d.enter),P8(d.leave)];{const o=P8(d);return[o,o]}}function P8(d){return OG(d)}function lg(d,o){o.split(/\s+/).forEach(C=>C&&d.classList.add(C)),(d[y_]||(d[y_]=new Set)).add(o)}function i1(d,o){o.split(/\s+/).forEach(B=>B&&d.classList.remove(B));const C=d[y_];C&&(C.delete(o),C.size||(d[y_]=void 0))}function sL(d){requestAnimationFrame(()=>{requestAnimationFrame(d)})}let EK=0;function lL(d,o,C,B){const Y=d._endId=++EK,dt=()=>{Y===d._endId&&B()};if(C!=null)return setTimeout(dt,C);const{type:xt,timeout:Ct,propCount:Ut}=eO(d,o);if(!xt)return B();const re=xt+"end";let ae=0;const we=()=>{d.removeEventListener(re,Xe),dt()},Xe=fr=>{fr.target===d&&++ae>=Ut&&we()};setTimeout(()=>{ae<Ut&&we()},Ct+1),d.addEventListener(re,Xe)}function eO(d,o){const C=window.getComputedStyle(d),B=Tr=>(C[Tr]||"").split(", "),Y=B(`${e1}Delay`),dt=B(`${e1}Duration`),xt=uL(Y,dt),Ct=B(`${i2}Delay`),Ut=B(`${i2}Duration`),re=uL(Ct,Ut);let ae=null,we=0,Xe=0;o===e1?xt>0&&(ae=e1,we=xt,Xe=dt.length):o===i2?re>0&&(ae=i2,we=re,Xe=Ut.length):(we=Math.max(xt,re),ae=we>0?xt>re?e1:i2:null,Xe=ae?ae===e1?dt.length:Ut.length:0);const fr=ae===e1&&/\b(transform|all)(,|$)/.test(B(`${e1}Property`).toString());return{type:ae,timeout:we,propCount:Xe,hasTransform:fr}}function uL(d,o){for(;d.length<o.length;)d=d.concat(d);return Math.max(...o.map((C,B)=>cL(C)+cL(d[B])))}function cL(d){return d==="auto"?0:Number(d.slice(0,-1).replace(",","."))*1e3}function _A(){return document.body.offsetHeight}function LK(d,o,C){const B=d[y_];B&&(o=(o?[o,...B]:[...B]).join(" ")),o==null?d.removeAttribute("class"):C?d.setAttribute("class",o):d.className=
Line truncated
|
||||
**/let xA;const iL=typeof window<"u"&&window.trustedTypes;if(iL)try{xA=iL.createPolicy("vue",{createHTML:d=>d})}catch{}const KI=xA?d=>xA.createHTML(d):d=>d,TK="http://www.w3.org/2000/svg",AK="http://www.w3.org/1998/Math/MathML",tv=typeof document<"u"?document:null,aL=tv&&tv.createElement("template"),MK={insert:(d,o,C)=>{o.insertBefore(d,C||null)},remove:d=>{const o=d.parentNode;o&&o.removeChild(d)},createElement:(d,o,C,B)=>{const Y=o==="svg"?tv.createElementNS(TK,d):o==="mathml"?tv.createElementNS(AK,d):C?tv.createElement(d,{is:C}):tv.createElement(d);return d==="select"&&B&&B.multiple!=null&&Y.setAttribute("multiple",B.multiple),Y},createText:d=>tv.createTextNode(d),createComment:d=>tv.createComment(d),setText:(d,o)=>{d.nodeValue=o},setElementText:(d,o)=>{d.textContent=o},parentNode:d=>d.parentNode,nextSibling:d=>d.nextSibling,querySelector:d=>tv.querySelector(d),setScopeId(d,o){d.setAttribute(o,"")},insertStaticContent(d,o,C,B,Y,dt){const xt=C?C.previousSibling:o.lastChild;if(Y&&(Y===dt||Y.nextSibling))for(;o.insertBefore(Y.cloneNode(!0),C),!(Y===dt||!(Y=Y.nextSibling)););else{aL.innerHTML=KI(B==="svg"?`<svg>${d}</svg>`:B==="mathml"?`<math>${d}</math>`:d);const Ct=aL.content;if(B==="svg"||B==="mathml"){const Ut=Ct.firstChild;for(;Ut.firstChild;)Ct.appendChild(Ut.firstChild);Ct.removeChild(Ut)}o.insertBefore(Ct,C)}return[xt?xt.nextSibling:o.firstChild,C?C.previousSibling:o.lastChild]}},e1="transition",i2="animation",y_=Symbol("_vtc"),XI={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},JI=lp({},xI,XI),SK=d=>(d.displayName="Transition",d.props=JI,d),QI=SK((d,{slots:o})=>u7(TY,tO(d),o)),fy=(d,o=[])=>{su(d)?d.forEach(C=>C(...o)):d&&d(...o)},oL=d=>d?su(d)?d.some(o=>o.length>1):d.length>1:!1;function tO(d){const o={};for(const si in d)si in XI||(o[si]=d[si]);if(d.css===!1)return o;const{name:C="v",type:B,duration:Y,enterFromClass:dt=`${C}-enter-from`,enterActiveClass:xt=`${C}-enter-active`,enterToClass:Ct=`${C}-enter-to`,appearFromClass:Ut=dt,appearActiveClass:re=xt,appearToClass:ae=Ct,leaveFromClass:we=`${C}-leave-from`,leaveActiveClass:Xe=`${C}-leave-active`,leaveToClass:fr=`${C}-leave-to`}=d,Tr=CK(Y),mr=Tr&&Tr[0],Sr=Tr&&Tr[1],{onBeforeEnter:Yr,onEnter:Rt,onEnterCancelled:ai,onLeave:fn,onLeaveCancelled:dn,onBeforeAppear:_i=Yr,onAppear:oi=Rt,onAppearCancelled:Kn=ai}=o,qr=(si,Yn,ti,Pi)=>{si._enterCancelled=Pi,i1(si,Yn?ae:Ct),i1(si,Yn?re:xt),ti&&ti()},hi=(si,Yn)=>{si._isLeaving=!1,i1(si,we),i1(si,fr),i1(si,Xe),Yn&&Yn()},Hn=si=>(Yn,ti)=>{const Pi=si?oi:Rt,Dn=()=>qr(Yn,si,ti);fy(Pi,[Yn,Dn]),sL(()=>{i1(Yn,si?Ut:dt),lg(Yn,si?ae:Ct),oL(Pi)||lL(Yn,B,mr,Dn)})};return lp(o,{onBeforeEnter(si){fy(Yr,[si]),lg(si,dt),lg(si,xt)},onBeforeAppear(si){fy(_i,[si]),lg(si,Ut),lg(si,re)},onEnter:Hn(!1),onAppear:Hn(!0),onLeave(si,Yn){si._isLeaving=!0;const ti=()=>hi(si,Yn);lg(si,we),si._enterCancelled?(lg(si,Xe),_A()):(_A(),lg(si,Xe)),sL(()=>{si._isLeaving&&(i1(si,we),lg(si,fr),oL(fn)||lL(si,B,Sr,ti))}),fy(fn,[si,ti])},onEnterCancelled(si){qr(si,!1,void 0,!0),fy(ai,[si])},onAppearCancelled(si){qr(si,!0,void 0,!0),fy(Kn,[si])},onLeaveCancelled(si){hi(si),fy(dn,[si])}})}function CK(d){if(d==null)return null;if(yf(d))return[P8(d.enter),P8(d.leave)];{const o=P8(d);return[o,o]}}function P8(d){return OG(d)}function lg(d,o){o.split(/\s+/).forEach(C=>C&&d.classList.add(C)),(d[y_]||(d[y_]=new Set)).add(o)}function i1(d,o){o.split(/\s+/).forEach(B=>B&&d.classList.remove(B));const C=d[y_];C&&(C.delete(o),C.size||(d[y_]=void 0))}function sL(d){requestAnimationFrame(()=>{requestAnimationFrame(d)})}let EK=0;function lL(d,o,C,B){const Y=d._endId=++EK,dt=()=>{Y===d._endId&&B()};if(C!=null)return setTimeout(dt,C);const{type:xt,timeout:Ct,propCount:Ut}=eO(d,o);if(!xt)return B();const re=xt+"end";let ae=0;const we=()=>{d.removeEventListener(re,Xe),dt()},Xe=fr=>{fr.target===d&&++ae>=Ut&&we()};setTimeout(()=>{ae<Ut&&we()},Ct+1),d.addEventListener(re,Xe)}function eO(d,o){const C=window.getComputedStyle(d),B=Tr=>(C[Tr]||"").split(", "),Y=B(`${e1}Delay`),dt=B(`${e1}Duration`),xt=uL(Y,dt),Ct=B(`${i2}Delay`),Ut=B(`${i2}Duration`),re=uL(Ct,Ut);let ae=null,we=0,Xe=0;o===e1?xt>0&&(ae=e1,we=xt,Xe=dt.length):o===i2?re>0&&(ae=i2,we=re,Xe=Ut.length):(we=Math.max(xt,re),ae=we>0?xt>re?e1:i2:null,Xe=ae?ae===e1?dt.length:Ut.length:0);const fr=ae===e1&&/\b(transform|all)(,|$)/.test(B(`${e1}Property`).toString());return{type:ae,timeout:we,propCount:Xe,hasTransform:fr}}function uL(d,o){for(;d.length<o.length;)d=d.concat(d);return Math.max(...o.map((C,B)=>cL(C)+cL(d[B])))}function cL(d){return d==="auto"?0:Number(d.slice(0,-1).replace(",","."))*1e3}function _A(){return document.body.offsetHeight}function LK(d,o,C){const B=d[y_];B&&(o=(o?[o,...B]:[...B]).join(" ")),o==null?d.removeAttribute("class"):C?d.setAttribute("class",o):d.className=
Line truncated
|
||||
* pinia v3.0.4
|
||||
* (c) 2025 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/let aO;const q4=d=>aO=d,oO=Symbol();function bA(d){return d&&typeof d=="object"&&Object.prototype.toString.call(d)==="[object Object]"&&typeof d.toJSON!="function"}var P2;(function(d){d.direct="direct",d.patchObject="patch object",d.patchFunction="patch function"})(P2||(P2={}));function oX(){const d=Hz(!0),o=d.run(()=>ca({}));let C=[],B=[];const Y=t7({install(dt){q4(Y),Y._a=dt,dt.provide(oO,Y),dt.config.globalProperties.$pinia=Y,B.forEach(xt=>C.push(xt)),B=[]},use(dt){return this._a?C.push(dt):B.push(dt),this},_p:C,_a:null,_e:d,_s:new Map,state:o});return Y}const sO=()=>{};function TL(d,o,C,B=sO){d.add(o);const Y=()=>{d.delete(o)&&B()};return!C&&Wz()&&HG(Y),Y}function i_(d,...o){d.forEach(C=>{C(...o)})}const sX=d=>d(),AL=Symbol(),O8=Symbol();function wA(d,o){d instanceof Map&&o instanceof Map?o.forEach((C,B)=>d.set(B,C)):d instanceof Set&&o instanceof Set&&o.forEach(d.add,d);for(const C in o){if(!o.hasOwnProperty(C))continue;const B=o[C],Y=d[C];bA(Y)&&bA(B)&&d.hasOwnProperty(C)&&!Ud(B)&&!x1(B)?d[C]=wA(Y,B):d[C]=B}return d}const lX=Symbol();function uX(d){return!bA(d)||!Object.prototype.hasOwnProperty.call(d,lX)}const{assign:a1}=Object;function cX(d){return!!(Ud(d)&&d.effect)}function hX(d,o,C,B){const{state:Y,actions:dt,getters:xt}=o,Ct=C.state.value[d];let Ut;function re(){Ct||(C.state.value[d]=Y?Y():{});const ae=fY(C.state.value[d]);return a1(ae,dt,Object.keys(xt||{}).reduce((we,Xe)=>(we[Xe]=t7(Bo(()=>{q4(C);const fr=C._s.get(d);return xt[Xe].call(fr,fr)})),we),{}))}return Ut=lO(d,re,o,C,B,!0),Ut}function lO(d,o,C={},B,Y,dt){let xt;const Ct=a1({actions:{}},C),Ut={deep:!0};let re,ae,we=new Set,Xe=new Set,fr;const Tr=B.state.value[d];!dt&&!Tr&&(B.state.value[d]={}),ca({});let mr;function Sr(ji){let nn;re=ae=!1,typeof ji=="function"?(ji(B.state.value[d]),nn={type:P2.patchFunction,storeId:d,events:fr}):(wA(B.state.value[d],ji),nn={type:P2.patchObject,payload:ji,storeId:d,events:fr});const yi=mr=Symbol();L0().then(()=>{mr===yi&&(re=!0)}),ae=!0,i_(we,nn,B.state.value[d])}const Yr=dt?function(){const{state:nn}=C,yi=nn?nn():{};this.$patch(Yn=>{a1(Yn,yi)})}:sO;function zt(){xt.stop(),we.clear(),Xe.clear(),B._s.delete(d)}const on=(ji,nn="")=>{if(AL in ji)return ji[O8]=nn,ji;const yi=function(){q4(B);const Yn=Array.from(arguments),li=new Set,jn=new Set;function $n(Kn){li.add(Kn)}function Li(Kn){jn.add(Kn)}i_(Xe,{args:Yn,name:yi[O8],store:Gn,after:$n,onError:Li});let Ln;try{Ln=ji.apply(this&&this.$id===d?this:Gn,Yn)}catch(Kn){throw i_(jn,Kn),Kn}return Ln instanceof Promise?Ln.then(Kn=>(i_(li,Kn),Kn)).catch(Kn=>(i_(jn,Kn),Promise.reject(Kn))):(i_(li,Ln),Ln)};return yi[AL]=!0,yi[O8]=nn,yi},ti={_p:B,$id:d,$onAction:TL.bind(null,Xe),$patch:Sr,$reset:Yr,$subscribe(ji,nn={}){const yi=TL(we,ji,nn.detached,()=>Yn()),Yn=xt.run(()=>Pm(()=>B.state.value[d],li=>{(nn.flush==="sync"?ae:re)&&ji({storeId:d,type:P2.direct,events:fr},li)},a1({},Ut,nn)));return yi},$dispose:zt},Gn=Py(ti);B._s.set(d,Gn);const Si=(B._a&&B._a.runWithContext||sX)(()=>B._e.run(()=>(xt=Hz()).run(()=>o({action:on}))));for(const ji in Si){const nn=Si[ji];if(Ud(nn)&&!cX(nn)||x1(nn))dt||(Tr&&uX(nn)&&(Ud(nn)?nn.value=Tr[ji]:wA(nn,Tr[ji])),B.state.value[d][ji]=nn);else if(typeof nn=="function"){const yi=on(nn,ji);Si[ji]=yi,Ct.actions[ji]=nn}}return a1(Gn,Si),a1(Eu(Gn),Si),Object.defineProperty(Gn,"$state",{get:()=>B.state.value[d],set:ji=>{Sr(nn=>{a1(nn,ji)})}}),B._p.forEach(ji=>{a1(Gn,xt.run(()=>ji({store:Gn,app:B._a,pinia:B,options:Ct})))}),Tr&&dt&&C.hydrate&&C.hydrate(Gn.$state,Tr),re=!0,ae=!0,Gn}/*! #__NO_SIDE_EFFECTS__ */function c7(d,o,C){let B;const Y=typeof o=="function";B=Y?C:o;function dt(xt,Ct){const Ut=HY();return xt=xt||(Ut?fm(oO,null):null),xt&&q4(xt),xt=aO,xt._s.has(d)||(Y?lO(d,o,B,xt):hX(d,B,xt)),xt._s.get(d)}return dt.$id=d,dt}const fX="/assets/meshcore-DQNtEl5I.svg";/*!
|
||||
*/let aO;const q4=d=>aO=d,oO=Symbol();function bA(d){return d&&typeof d=="object"&&Object.prototype.toString.call(d)==="[object Object]"&&typeof d.toJSON!="function"}var P2;(function(d){d.direct="direct",d.patchObject="patch object",d.patchFunction="patch function"})(P2||(P2={}));function oX(){const d=Hz(!0),o=d.run(()=>da({}));let C=[],B=[];const Y=t7({install(dt){q4(Y),Y._a=dt,dt.provide(oO,Y),dt.config.globalProperties.$pinia=Y,B.forEach(xt=>C.push(xt)),B=[]},use(dt){return this._a?C.push(dt):B.push(dt),this},_p:C,_a:null,_e:d,_s:new Map,state:o});return Y}const sO=()=>{};function TL(d,o,C,B=sO){d.add(o);const Y=()=>{d.delete(o)&&B()};return!C&&Wz()&&HG(Y),Y}function i_(d,...o){d.forEach(C=>{C(...o)})}const sX=d=>d(),AL=Symbol(),O8=Symbol();function wA(d,o){d instanceof Map&&o instanceof Map?o.forEach((C,B)=>d.set(B,C)):d instanceof Set&&o instanceof Set&&o.forEach(d.add,d);for(const C in o){if(!o.hasOwnProperty(C))continue;const B=o[C],Y=d[C];bA(Y)&&bA(B)&&d.hasOwnProperty(C)&&!Ud(B)&&!x1(B)?d[C]=wA(Y,B):d[C]=B}return d}const lX=Symbol();function uX(d){return!bA(d)||!Object.prototype.hasOwnProperty.call(d,lX)}const{assign:a1}=Object;function cX(d){return!!(Ud(d)&&d.effect)}function hX(d,o,C,B){const{state:Y,actions:dt,getters:xt}=o,Ct=C.state.value[d];let Ut;function re(){Ct||(C.state.value[d]=Y?Y():{});const ae=fY(C.state.value[d]);return a1(ae,dt,Object.keys(xt||{}).reduce((we,Xe)=>(we[Xe]=t7(Bo(()=>{q4(C);const fr=C._s.get(d);return xt[Xe].call(fr,fr)})),we),{}))}return Ut=lO(d,re,o,C,B,!0),Ut}function lO(d,o,C={},B,Y,dt){let xt;const Ct=a1({actions:{}},C),Ut={deep:!0};let re,ae,we=new Set,Xe=new Set,fr;const Tr=B.state.value[d];!dt&&!Tr&&(B.state.value[d]={}),da({});let mr;function Sr(Kn){let qr;re=ae=!1,typeof Kn=="function"?(Kn(B.state.value[d]),qr={type:P2.patchFunction,storeId:d,events:fr}):(wA(B.state.value[d],Kn),qr={type:P2.patchObject,payload:Kn,storeId:d,events:fr});const hi=mr=Symbol();L0().then(()=>{mr===hi&&(re=!0)}),ae=!0,i_(we,qr,B.state.value[d])}const Yr=dt?function(){const{state:qr}=C,hi=qr?qr():{};this.$patch(Hn=>{a1(Hn,hi)})}:sO;function Rt(){xt.stop(),we.clear(),Xe.clear(),B._s.delete(d)}const ai=(Kn,qr="")=>{if(AL in Kn)return Kn[O8]=qr,Kn;const hi=function(){q4(B);const Hn=Array.from(arguments),si=new Set,Yn=new Set;function ti(Wn){si.add(Wn)}function Pi(Wn){Yn.add(Wn)}i_(Xe,{args:Hn,name:hi[O8],store:dn,after:ti,onError:Pi});let Dn;try{Dn=Kn.apply(this&&this.$id===d?this:dn,Hn)}catch(Wn){throw i_(Yn,Wn),Wn}return Dn instanceof Promise?Dn.then(Wn=>(i_(si,Wn),Wn)).catch(Wn=>(i_(Yn,Wn),Promise.reject(Wn))):(i_(si,Dn),Dn)};return hi[AL]=!0,hi[O8]=qr,hi},fn={_p:B,$id:d,$onAction:TL.bind(null,Xe),$patch:Sr,$reset:Yr,$subscribe(Kn,qr={}){const hi=TL(we,Kn,qr.detached,()=>Hn()),Hn=xt.run(()=>Pm(()=>B.state.value[d],si=>{(qr.flush==="sync"?ae:re)&&Kn({storeId:d,type:P2.direct,events:fr},si)},a1({},Ut,qr)));return hi},$dispose:Rt},dn=Py(fn);B._s.set(d,dn);const oi=(B._a&&B._a.runWithContext||sX)(()=>B._e.run(()=>(xt=Hz()).run(()=>o({action:ai}))));for(const Kn in oi){const qr=oi[Kn];if(Ud(qr)&&!cX(qr)||x1(qr))dt||(Tr&&uX(qr)&&(Ud(qr)?qr.value=Tr[Kn]:wA(qr,Tr[Kn])),B.state.value[d][Kn]=qr);else if(typeof qr=="function"){const hi=ai(qr,Kn);oi[Kn]=hi,Ct.actions[Kn]=qr}}return a1(dn,oi),a1(Eu(dn),oi),Object.defineProperty(dn,"$state",{get:()=>B.state.value[d],set:Kn=>{Sr(qr=>{a1(qr,Kn)})}}),B._p.forEach(Kn=>{a1(dn,xt.run(()=>Kn({store:dn,app:B._a,pinia:B,options:Ct})))}),Tr&&dt&&C.hydrate&&C.hydrate(dn.$state,Tr),re=!0,ae=!0,dn}/*! #__NO_SIDE_EFFECTS__ */function c7(d,o,C){let B;const Y=typeof o=="function";B=Y?C:o;function dt(xt,Ct){const Ut=HY();return xt=xt||(Ut?fm(oO,null):null),xt&&q4(xt),xt=aO,xt._s.has(d)||(Y?lO(d,o,B,xt):hX(d,B,xt)),xt._s.get(d)}return dt.$id=d,dt}const fX="/assets/meshcore-DQNtEl5I.svg";/*!
|
||||
* vue-router v4.6.3
|
||||
* (c) 2025 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
@@ -26,12 +26,12 @@ function CG(d,o){for(var C=0;C<o.length;C++){const B=o[C];if(typeof B!="string"&
|
||||
* vue-router v4.6.3
|
||||
* (c) 2025 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/let ZX=()=>location.protocol+"//"+location.host;function yO(d,o){const{pathname:C,search:B,hash:Y}=o,dt=d.indexOf("#");if(dt>-1){let xt=Y.includes(d.slice(dt))?d.slice(dt).length:1,Ct=Y.slice(xt);return Ct[0]!=="/"&&(Ct="/"+Ct),SL(Ct,"")}return SL(C,d)+B+Y}function GX(d,o,C,B){let Y=[],dt=[],xt=null;const Ct=({state:Xe})=>{const fr=yO(d,location),Tr=C.value,mr=o.value;let Sr=0;if(Xe){if(C.value=fr,o.value=Xe,xt&&xt===Tr){xt=null;return}Sr=mr?Xe.position-mr.position:0}else B(fr);Y.forEach(Yr=>{Yr(C.value,Tr,{delta:Sr,type:TA.pop,direction:Sr?Sr>0?R8.forward:R8.back:R8.unknown})})};function Ut(){xt=C.value}function re(Xe){Y.push(Xe);const fr=()=>{const Tr=Y.indexOf(Xe);Tr>-1&&Y.splice(Tr,1)};return dt.push(fr),fr}function ae(){if(document.visibilityState==="hidden"){const{history:Xe}=window;if(!Xe.state)return;Xe.replaceState(Nh({},Xe.state,{scroll:Z4()}),"")}}function we(){for(const Xe of dt)Xe();dt=[],window.removeEventListener("popstate",Ct),window.removeEventListener("pagehide",ae),document.removeEventListener("visibilitychange",ae)}return window.addEventListener("popstate",Ct),window.addEventListener("pagehide",ae),document.addEventListener("visibilitychange",ae),{pauseListeners:Ut,listen:re,destroy:we}}function zL(d,o,C,B=!1,Y=!1){return{back:d,current:o,forward:C,replaced:B,position:window.history.length,scroll:Y?Z4():null}}function YX(d){const{history:o,location:C}=window,B={value:yO(d,C)},Y={value:o.state};Y.value||dt(B.value,{back:null,current:B.value,forward:null,position:o.length-1,replaced:!0,scroll:null},!0);function dt(Ut,re,ae){const we=d.indexOf("#"),Xe=we>-1?(C.host&&document.querySelector("base")?d:d.slice(we))+Ut:ZX()+d+Ut;try{o[ae?"replaceState":"pushState"](re,"",Xe),Y.value=re}catch(fr){console.error(fr),C[ae?"replace":"assign"](Xe)}}function xt(Ut,re){dt(Ut,Nh({},o.state,zL(Y.value.back,Ut,Y.value.forward,!0),re,{position:Y.value.position}),!0),B.value=Ut}function Ct(Ut,re){const ae=Nh({},Y.value,o.state,{forward:Ut,scroll:Z4()});dt(ae.current,ae,!0),dt(Ut,Nh({},zL(B.value,Ut,null),{position:ae.position+1},re),!1),B.value=Ut}return{location:B,state:Y,push:Ct,replace:xt}}function KX(d){d=IX(d);const o=YX(d),C=GX(d,o.state,o.location,o.replace);function B(dt,xt=!0){xt||C.pauseListeners(),history.go(dt)}const Y=Nh({location:"",base:d,go:B,createHref:DX.bind(null,d)},o,C);return Object.defineProperty(Y,"location",{enumerable:!0,get:()=>o.location.value}),Object.defineProperty(Y,"state",{enumerable:!0,get:()=>o.state.value}),Y}let Ty=function(d){return d[d.Static=0]="Static",d[d.Param=1]="Param",d[d.Group=2]="Group",d}({});var ap=function(d){return d[d.Static=0]="Static",d[d.Param=1]="Param",d[d.ParamRegExp=2]="ParamRegExp",d[d.ParamRegExpEnd=3]="ParamRegExpEnd",d[d.EscapeNext=4]="EscapeNext",d}(ap||{});const XX={type:Ty.Static,value:""},JX=/[a-zA-Z0-9_]/;function QX(d){if(!d)return[[]];if(d==="/")return[[XX]];if(!d.startsWith("/"))throw new Error(`Invalid path "${d}"`);function o(fr){throw new Error(`ERR (${C})/"${re}": ${fr}`)}let C=ap.Static,B=C;const Y=[];let dt;function xt(){dt&&Y.push(dt),dt=[]}let Ct=0,Ut,re="",ae="";function we(){re&&(C===ap.Static?dt.push({type:Ty.Static,value:re}):C===ap.Param||C===ap.ParamRegExp||C===ap.ParamRegExpEnd?(dt.length>1&&(Ut==="*"||Ut==="+")&&o(`A repeatable param (${re}) must be alone in its segment. eg: '/:ids+.`),dt.push({type:Ty.Param,value:re,regexp:ae,repeatable:Ut==="*"||Ut==="+",optional:Ut==="*"||Ut==="?"})):o("Invalid state to consume buffer"),re="")}function Xe(){re+=Ut}for(;Ct<d.length;){if(Ut=d[Ct++],Ut==="\\"&&C!==ap.ParamRegExp){B=C,C=ap.EscapeNext;continue}switch(C){case ap.Static:Ut==="/"?(re&&we(),xt()):Ut===":"?(we(),C=ap.Param):Xe();break;case ap.EscapeNext:Xe(),C=B;break;case ap.Param:Ut==="("?C=ap.ParamRegExp:JX.test(Ut)?Xe():(we(),C=ap.Static,Ut!=="*"&&Ut!=="?"&&Ut!=="+"&&Ct--);break;case ap.ParamRegExp:Ut===")"?ae[ae.length-1]=="\\"?ae=ae.slice(0,-1)+Ut:C=ap.ParamRegExpEnd:ae+=Ut;break;case ap.ParamRegExpEnd:we(),C=ap.Static,Ut!=="*"&&Ut!=="?"&&Ut!=="+"&&Ct--,ae="";break;default:o("Unknown state");break}}return C===ap.ParamRegExp&&o(`Unfinished custom RegExp for param "${re}"`),we(),xt(),Y}const IL="[^/]+?",tJ={sensitive:!1,strict:!1,start:!0,end:!0};var d0=function(d){return d[d._multiplier=10]="_multiplier",d[d.Root=90]="Root",d[d.Segment=40]="Segment",d[d.SubSegment=30]="SubSegment",d[d.Static=40]="Static",d[d.Dynamic=20]="Dynamic",d[d.BonusCustomRegExp=10]="BonusCustomRegExp",d[d.BonusWildcard=-50]="BonusWildcard",d[d.BonusRepeatable=-20]="BonusRepeatable",d[d.BonusOptional=-8]="BonusOptional",d[d.BonusStrict=.7000000000000001]="BonusStrict",d[d.BonusCaseSensitive=.25]="BonusCaseSensitive",d}(d0||{});const eJ=/[.+*?^${}()[\]/\\]/g;function rJ(d,o){const C=Nh({},tJ,o),B=[];let Y=C.start?"^":"";const dt=[];for(const re of d){const ae=re.length?[]:[d0.Root];C.strict&&!re.length&&(Y+="/");for(let we=0;we<re.length;we++){const Xe=re[we];let fr=d0.Segment+(C.sensitive?d0.BonusCaseSensitive:0);if(Xe.type===Ty.Static)we||(Y+="/"Line truncated
|
||||
`).forEach(function(xt){Y=xt.indexOf(":"),C=xt.substring(0,Y).trim().toLowerCase(),B=xt.substring(Y+1).trim(),!(!C||o[C]&&_Q[C])&&(C==="set-cookie"?o[C]?o[C].push(B):o[C]=[B]:o[C]=o[C]?o[C]+", "+B:B)}),o},qL=Symbol("internals");function s2(d){return d&&String(d).trim().toLowerCase()}function a4(d){return d===!1||d==null?d:so.isArray(d)?d.map(a4):String(d)}function wQ(d){const o=Object.create(null),C=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=C.exec(d);)o[B[1]]=B[2];return o}const kQ=d=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(d.trim());function N8(d,o,C,B,Y){if(so.isFunction(B))return B.call(this,o,C);if(Y&&(o=C),!!so.isString(o)){if(so.isString(B))return o.indexOf(B)!==-1;if(so.isRegExp(B))return B.test(o)}}function TQ(d){return d.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,C,B)=>C.toUpperCase()+B)}function AQ(d,o){const C=so.toCamelCase(" "+o);["get","set","has"].forEach(B=>{Object.defineProperty(d,B+C,{value:function(Y,dt,xt){return this[B].call(this,o,Y,dt,xt)},configurable:!0})})}let z0=class{constructor(o){o&&this.set(o)}set(o,C,B){const Y=this;function dt(Ct,Ut,re){const ae=s2(Ut);if(!ae)throw new Error("header name must be a non-empty string");const we=so.findKey(Y,ae);(!we||Y[we]===void 0||re===!0||re===void 0&&Y[we]!==!1)&&(Y[we||Ut]=a4(Ct))}const xt=(Ct,Ut)=>so.forEach(Ct,(re,ae)=>dt(re,ae,Ut));if(so.isPlainObject(o)||o instanceof this.constructor)xt(o,C);else if(so.isString(o)&&(o=o.trim())&&!kQ(o))xt(bQ(o),C);else if(so.isObject(o)&&so.isIterable(o)){let Ct={},Ut,re;for(const ae of o){if(!so.isArray(ae))throw TypeError("Object iterator must return a key-value pair");Ct[re=ae[0]]=(Ut=Ct[re])?so.isArray(Ut)?[...Ut,ae[1]]:[Ut,ae[1]]:ae[1]}xt(Ct,C)}else o!=null&&dt(C,o,B);return this}get(o,C){if(o=s2(o),o){const B=so.findKey(this,o);if(B){const Y=this[B];if(!C)return Y;if(C===!0)return wQ(Y);if(so.isFunction(C))return C.call(this,Y,B);if(so.isRegExp(C))return C.exec(Y);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,C){if(o=s2(o),o){const B=so.findKey(this,o);return!!(B&&this[B]!==void 0&&(!C||N8(this,this[B],B,C)))}return!1}delete(o,C){const B=this;let Y=!1;function dt(xt){if(xt=s2(xt),xt){const Ct=so.findKey(B,xt);Ct&&(!C||N8(B,B[Ct],Ct,C))&&(delete B[Ct],Y=!0)}}return so.isArray(o)?o.forEach(dt):dt(o),Y}clear(o){const C=Object.keys(this);let B=C.length,Y=!1;for(;B--;){const dt=C[B];(!o||N8(this,this[dt],dt,o,!0))&&(delete this[dt],Y=!0)}return Y}normalize(o){const C=this,B={};return so.forEach(this,(Y,dt)=>{const xt=so.findKey(B,dt);if(xt){C[xt]=a4(Y),delete C[dt];return}const Ct=o?TQ(dt):String(dt).trim();Ct!==dt&&delete C[dt],C[Ct]=a4(Y),B[Ct]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const C=Object.create(null);return so.forEach(this,(B,Y)=>{B!=null&&B!==!1&&(C[Y]=o&&so.isArray(B)?B.join(", "):B)}),C}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,C])=>o+": "+C).join(`
|
||||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...C){const B=new this(o);return C.forEach(Y=>B.set(Y)),B}static accessor(o){const B=(this[qL]=this[qL]={accessors:{}}).accessors,Y=this.prototype;function dt(xt){const Ct=s2(xt);B[Ct]||(AQ(Y,xt),B[Ct]=!0)}return so.isArray(o)?o.forEach(dt):dt(o),this}};z0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);so.reduceDescriptors(z0.prototype,({value:d},o)=>{let C=o[0].toUpperCase()+o.slice(1);return{get:()=>d,set(B){this[C]=B}}});so.freezeMethods(z0);function j8(d,o){const C=this||uw,B=o||C,Y=z0.from(B.headers);let dt=B.data;return so.forEach(d,function(Ct){dt=Ct.call(C,dt,Y.normalize(),o?o.status:void 0)}),Y.normalize(),dt}function BO(d){return!!(d&&d.__CANCEL__)}function C_(d,o,C){ec.call(this,d??"canceled",ec.ERR_CANCELED,o,C),this.name="CanceledError"}so.inherits(C_,ec,{__CANCEL__:!0});function NO(d,o,C){const B=C.config.validateStatus;!C.status||!B||B(C.status)?d(C):o(new ec("Request failed with status code "+C.status,[ec.ERR_BAD_REQUEST,ec.ERR_BAD_RESPONSE][Math.floor(C.status/100)-4],C.config,C.request,C))}function MQ(d){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(d);return o&&o[1]||""}function SQ(d,o){d=d||10;const C=new Array(d),B=new Array(d);let Y=0,dt=0,xt;return o=o!==void 0?o:1e3,function(Ut){const re=Date.now(),ae=B[dt];xt||(xt=re),C[Y]=Ut,B[Y]=re;let we=dt,Xe=0;for(;we!==Y;)Xe+=C[we++],we=we%d;if(Y=(Y+1)%d,Y===dt&&(dt=(dt+1)%d),re-xt<o)return;const fr=ae&&re-ae;return fr?Math.round(Xe*1e3/fr):void 0}}function CQ(d,o){let C=0,B=1e3/o,Y,dt;const xt=(re,ae=Date.now())=>{C=ae,Y=null,dt&&(clearTimeout(dt),dt=null),d(...re)};return[(...re)=>{const ae=Date.now(),we=ae-C;we>=B?xt(re,ae):(Y=re,dt||(dt=setTimeout(()=>{dt=null,xt(Y)},B-we)))},()=>Y&&xt(Y)]}const _4=(d,o,C=3)=>{let B=0;const Y=SQ(50,250);return CQ(dt=>{const xt=dt.loaded,Ct=dt.lengthComputable?dt.total:void 0,Ut=xt-B,re=Y(Ut),ae=xt<=Ct;B=xt;const we={loaded:xt,total:Ct,progress:Ct?xt/Ct:void 0,bytes:Ut,rate:re||void 0,estimated:re&&Ct&&ae?(Ct-xt)/re:void 0,event:dt,lengthComputable:Ct!=null,[o?"download":"upload"]:!0};d(we)},C)},ZL=(d,o)=>{const C=d!=null;return[B=>o[0]({lengthComputable:C,total:d,loaded:B}),o[1]]},GL=d=>(...o)=>so.asap(()=>d(...o)),EQ=Qp.hasStandardBrowserEnv?((d,o)=>C=>(C=new URL(C,Qp.origin),d.protocol===C.protocol&&d.host===C.host&&(o||d.port===C.port)))(new URL(Qp.origin),Qp.navigator&&/(msie|trident)/i.test(Qp.navigator.userAgent)):()=>!0,LQ=Qp.hasStandardBrowserEnv?{write(d,o,C,B,Y,dt,xt){if(typeof document>"u")return;const Ct=[`${d}=${encodeURIComponent(o)}`];so.isNumber(C)&&Ct.push(`expires=${new Date(C).toUTCString()}`),so.isString(B)&&Ct.push(`path=${B}`),so.isString(Y)&&Ct.push(`domain=${Y}`),dt===!0&&Ct.push("secure"),so.isString(xt)&&Ct.push(`SameSite=${xt}`),document.cookie=Ct.join("; ")},read(d){if(typeof document>"u")return null;const o=document.cookie.match(new RegExp("(?:^|; )"+d+"=([^;]*)"));return o?decodeURIComponent(o[1]):null},remove(d){this.write(d,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function PQ(d){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(d)}function zQ(d,o){return o?d.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):d}function jO(d,o,C){let B=!PQ(o);return d&&(B||C==!1)?zQ(d,o):o}const YL=d=>d instanceof z0?{...d}:d;function Iy(d,o){o=o||{};const C={};function B(re,ae,we,Xe){return so.isPlainObject(re)&&so.isPlainObject(ae)?so.merge.call({caseless:Xe},re,ae):so.isPlainObject(ae)?so.merge({},ae):so.isArray(ae)?ae.slice():ae}function Y(re,ae,we,Xe){if(so.isUndefined(ae)){if(!so.isUndefined(re))return B(void 0,re,we,Xe)}else return B(re,ae,we,Xe)}function dt(re,ae){if(!so.isUndefined(ae))return B(void 0,ae)}function xt(re,ae){if(so.isUndefined(ae)){if(!so.isUndefined(re))return B(void 0,re)}else return B(void 0,ae)}function Ct(re,ae,we){if(we in o)return B(re,ae);if(we in d)return B(void 0,re)}const Ut={url:dt,method:dt,data:dt,baseURL:xt,transformRequest:xt,transformResponse:xt,paramsSerializer:xt,timeout:xt,timeoutMessage:xt,withCredentials:xt,withXSRFToken:xt,adapter:xt,responseType:xt,xsrfCookieName:xt,xsrfHeaderName:xt,onUploadProgress:xt,onDownloadProgress:xt,decompress:xt,maxContentLength:xt,maxBodyLength:xt,beforeRedirect:xt,transport:xt,httpAgent:xt,httpsAgent:xt,cancelToken:xt,socketPath:xt,responseEncoding:xt,validateStatus:Ct,headers:(re,ae,we)=>Y(YL(re),YL(ae),we,!0)};return so.forEach(Object.keys({...d,...o}),function(ae){const we=Ut[ae]||Y,Xe=we(d[ae],o[ae],ae);so.isUndefined(Xe)&&we!==Ct||(C[ae]=Xe)}),C}const UO=d=>{const o=Iy({},d);let{data:C,withXSRFToken:B,xsrfHeaderName:Y,xsrfCookieName:dt,headers:xt,auth:Ct}=o;if(o.headers=xt=z0.from(xt),o.url=DO(jO(o.baseURL,o.url,o.allowAbsoluteUrls),d.params,d.paramsSerializer),Ct&&xt.set("Authorization","Basic "+btoa((Ct.username||"")+":"+(Ct.password?unescape(encodeURIComponent(Ct.password)):""))),
Line truncated
|
||||
*/let ZX=()=>location.protocol+"//"+location.host;function yO(d,o){const{pathname:C,search:B,hash:Y}=o,dt=d.indexOf("#");if(dt>-1){let xt=Y.includes(d.slice(dt))?d.slice(dt).length:1,Ct=Y.slice(xt);return Ct[0]!=="/"&&(Ct="/"+Ct),SL(Ct,"")}return SL(C,d)+B+Y}function GX(d,o,C,B){let Y=[],dt=[],xt=null;const Ct=({state:Xe})=>{const fr=yO(d,location),Tr=C.value,mr=o.value;let Sr=0;if(Xe){if(C.value=fr,o.value=Xe,xt&&xt===Tr){xt=null;return}Sr=mr?Xe.position-mr.position:0}else B(fr);Y.forEach(Yr=>{Yr(C.value,Tr,{delta:Sr,type:TA.pop,direction:Sr?Sr>0?R8.forward:R8.back:R8.unknown})})};function Ut(){xt=C.value}function re(Xe){Y.push(Xe);const fr=()=>{const Tr=Y.indexOf(Xe);Tr>-1&&Y.splice(Tr,1)};return dt.push(fr),fr}function ae(){if(document.visibilityState==="hidden"){const{history:Xe}=window;if(!Xe.state)return;Xe.replaceState(Nh({},Xe.state,{scroll:Z4()}),"")}}function we(){for(const Xe of dt)Xe();dt=[],window.removeEventListener("popstate",Ct),window.removeEventListener("pagehide",ae),document.removeEventListener("visibilitychange",ae)}return window.addEventListener("popstate",Ct),window.addEventListener("pagehide",ae),document.addEventListener("visibilitychange",ae),{pauseListeners:Ut,listen:re,destroy:we}}function zL(d,o,C,B=!1,Y=!1){return{back:d,current:o,forward:C,replaced:B,position:window.history.length,scroll:Y?Z4():null}}function YX(d){const{history:o,location:C}=window,B={value:yO(d,C)},Y={value:o.state};Y.value||dt(B.value,{back:null,current:B.value,forward:null,position:o.length-1,replaced:!0,scroll:null},!0);function dt(Ut,re,ae){const we=d.indexOf("#"),Xe=we>-1?(C.host&&document.querySelector("base")?d:d.slice(we))+Ut:ZX()+d+Ut;try{o[ae?"replaceState":"pushState"](re,"",Xe),Y.value=re}catch(fr){console.error(fr),C[ae?"replace":"assign"](Xe)}}function xt(Ut,re){dt(Ut,Nh({},o.state,zL(Y.value.back,Ut,Y.value.forward,!0),re,{position:Y.value.position}),!0),B.value=Ut}function Ct(Ut,re){const ae=Nh({},Y.value,o.state,{forward:Ut,scroll:Z4()});dt(ae.current,ae,!0),dt(Ut,Nh({},zL(B.value,Ut,null),{position:ae.position+1},re),!1),B.value=Ut}return{location:B,state:Y,push:Ct,replace:xt}}function KX(d){d=IX(d);const o=YX(d),C=GX(d,o.state,o.location,o.replace);function B(dt,xt=!0){xt||C.pauseListeners(),history.go(dt)}const Y=Nh({location:"",base:d,go:B,createHref:DX.bind(null,d)},o,C);return Object.defineProperty(Y,"location",{enumerable:!0,get:()=>o.location.value}),Object.defineProperty(Y,"state",{enumerable:!0,get:()=>o.state.value}),Y}let Ty=function(d){return d[d.Static=0]="Static",d[d.Param=1]="Param",d[d.Group=2]="Group",d}({});var ap=function(d){return d[d.Static=0]="Static",d[d.Param=1]="Param",d[d.ParamRegExp=2]="ParamRegExp",d[d.ParamRegExpEnd=3]="ParamRegExpEnd",d[d.EscapeNext=4]="EscapeNext",d}(ap||{});const XX={type:Ty.Static,value:""},JX=/[a-zA-Z0-9_]/;function QX(d){if(!d)return[[]];if(d==="/")return[[XX]];if(!d.startsWith("/"))throw new Error(`Invalid path "${d}"`);function o(fr){throw new Error(`ERR (${C})/"${re}": ${fr}`)}let C=ap.Static,B=C;const Y=[];let dt;function xt(){dt&&Y.push(dt),dt=[]}let Ct=0,Ut,re="",ae="";function we(){re&&(C===ap.Static?dt.push({type:Ty.Static,value:re}):C===ap.Param||C===ap.ParamRegExp||C===ap.ParamRegExpEnd?(dt.length>1&&(Ut==="*"||Ut==="+")&&o(`A repeatable param (${re}) must be alone in its segment. eg: '/:ids+.`),dt.push({type:Ty.Param,value:re,regexp:ae,repeatable:Ut==="*"||Ut==="+",optional:Ut==="*"||Ut==="?"})):o("Invalid state to consume buffer"),re="")}function Xe(){re+=Ut}for(;Ct<d.length;){if(Ut=d[Ct++],Ut==="\\"&&C!==ap.ParamRegExp){B=C,C=ap.EscapeNext;continue}switch(C){case ap.Static:Ut==="/"?(re&&we(),xt()):Ut===":"?(we(),C=ap.Param):Xe();break;case ap.EscapeNext:Xe(),C=B;break;case ap.Param:Ut==="("?C=ap.ParamRegExp:JX.test(Ut)?Xe():(we(),C=ap.Static,Ut!=="*"&&Ut!=="?"&&Ut!=="+"&&Ct--);break;case ap.ParamRegExp:Ut===")"?ae[ae.length-1]=="\\"?ae=ae.slice(0,-1)+Ut:C=ap.ParamRegExpEnd:ae+=Ut;break;case ap.ParamRegExpEnd:we(),C=ap.Static,Ut!=="*"&&Ut!=="?"&&Ut!=="+"&&Ct--,ae="";break;default:o("Unknown state");break}}return C===ap.ParamRegExp&&o(`Unfinished custom RegExp for param "${re}"`),we(),xt(),Y}const IL="[^/]+?",tJ={sensitive:!1,strict:!1,start:!0,end:!0};var d0=function(d){return d[d._multiplier=10]="_multiplier",d[d.Root=90]="Root",d[d.Segment=40]="Segment",d[d.SubSegment=30]="SubSegment",d[d.Static=40]="Static",d[d.Dynamic=20]="Dynamic",d[d.BonusCustomRegExp=10]="BonusCustomRegExp",d[d.BonusWildcard=-50]="BonusWildcard",d[d.BonusRepeatable=-20]="BonusRepeatable",d[d.BonusOptional=-8]="BonusOptional",d[d.BonusStrict=.7000000000000001]="BonusStrict",d[d.BonusCaseSensitive=.25]="BonusCaseSensitive",d}(d0||{});const eJ=/[.+*?^${}()[\]/\\]/g;function rJ(d,o){const C=Nh({},tJ,o),B=[];let Y=C.start?"^":"";const dt=[];for(const re of d){const ae=re.length?[]:[d0.Root];C.strict&&!re.length&&(Y+="/");for(let we=0;we<re.length;we++){const Xe=re[we];let fr=d0.Segment+(C.sensitive?d0.BonusCaseSensitive:0);if(Xe.type===Ty.Static)we||(Y+="/"Line truncated
|
||||
`).forEach(function(xt){Y=xt.indexOf(":"),C=xt.substring(0,Y).trim().toLowerCase(),B=xt.substring(Y+1).trim(),!(!C||o[C]&&_Q[C])&&(C==="set-cookie"?o[C]?o[C].push(B):o[C]=[B]:o[C]=o[C]?o[C]+", "+B:B)}),o},qL=Symbol("internals");function s2(d){return d&&String(d).trim().toLowerCase()}function a4(d){return d===!1||d==null?d:oo.isArray(d)?d.map(a4):String(d)}function wQ(d){const o=Object.create(null),C=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=C.exec(d);)o[B[1]]=B[2];return o}const kQ=d=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(d.trim());function N8(d,o,C,B,Y){if(oo.isFunction(B))return B.call(this,o,C);if(Y&&(o=C),!!oo.isString(o)){if(oo.isString(B))return o.indexOf(B)!==-1;if(oo.isRegExp(B))return B.test(o)}}function TQ(d){return d.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,C,B)=>C.toUpperCase()+B)}function AQ(d,o){const C=oo.toCamelCase(" "+o);["get","set","has"].forEach(B=>{Object.defineProperty(d,B+C,{value:function(Y,dt,xt){return this[B].call(this,o,Y,dt,xt)},configurable:!0})})}let I0=class{constructor(o){o&&this.set(o)}set(o,C,B){const Y=this;function dt(Ct,Ut,re){const ae=s2(Ut);if(!ae)throw new Error("header name must be a non-empty string");const we=oo.findKey(Y,ae);(!we||Y[we]===void 0||re===!0||re===void 0&&Y[we]!==!1)&&(Y[we||Ut]=a4(Ct))}const xt=(Ct,Ut)=>oo.forEach(Ct,(re,ae)=>dt(re,ae,Ut));if(oo.isPlainObject(o)||o instanceof this.constructor)xt(o,C);else if(oo.isString(o)&&(o=o.trim())&&!kQ(o))xt(bQ(o),C);else if(oo.isObject(o)&&oo.isIterable(o)){let Ct={},Ut,re;for(const ae of o){if(!oo.isArray(ae))throw TypeError("Object iterator must return a key-value pair");Ct[re=ae[0]]=(Ut=Ct[re])?oo.isArray(Ut)?[...Ut,ae[1]]:[Ut,ae[1]]:ae[1]}xt(Ct,C)}else o!=null&&dt(C,o,B);return this}get(o,C){if(o=s2(o),o){const B=oo.findKey(this,o);if(B){const Y=this[B];if(!C)return Y;if(C===!0)return wQ(Y);if(oo.isFunction(C))return C.call(this,Y,B);if(oo.isRegExp(C))return C.exec(Y);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,C){if(o=s2(o),o){const B=oo.findKey(this,o);return!!(B&&this[B]!==void 0&&(!C||N8(this,this[B],B,C)))}return!1}delete(o,C){const B=this;let Y=!1;function dt(xt){if(xt=s2(xt),xt){const Ct=oo.findKey(B,xt);Ct&&(!C||N8(B,B[Ct],Ct,C))&&(delete B[Ct],Y=!0)}}return oo.isArray(o)?o.forEach(dt):dt(o),Y}clear(o){const C=Object.keys(this);let B=C.length,Y=!1;for(;B--;){const dt=C[B];(!o||N8(this,this[dt],dt,o,!0))&&(delete this[dt],Y=!0)}return Y}normalize(o){const C=this,B={};return oo.forEach(this,(Y,dt)=>{const xt=oo.findKey(B,dt);if(xt){C[xt]=a4(Y),delete C[dt];return}const Ct=o?TQ(dt):String(dt).trim();Ct!==dt&&delete C[dt],C[Ct]=a4(Y),B[Ct]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const C=Object.create(null);return oo.forEach(this,(B,Y)=>{B!=null&&B!==!1&&(C[Y]=o&&oo.isArray(B)?B.join(", "):B)}),C}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,C])=>o+": "+C).join(`
|
||||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...C){const B=new this(o);return C.forEach(Y=>B.set(Y)),B}static accessor(o){const B=(this[qL]=this[qL]={accessors:{}}).accessors,Y=this.prototype;function dt(xt){const Ct=s2(xt);B[Ct]||(AQ(Y,xt),B[Ct]=!0)}return oo.isArray(o)?o.forEach(dt):dt(o),this}};I0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);oo.reduceDescriptors(I0.prototype,({value:d},o)=>{let C=o[0].toUpperCase()+o.slice(1);return{get:()=>d,set(B){this[C]=B}}});oo.freezeMethods(I0);function j8(d,o){const C=this||uw,B=o||C,Y=I0.from(B.headers);let dt=B.data;return oo.forEach(d,function(Ct){dt=Ct.call(C,dt,Y.normalize(),o?o.status:void 0)}),Y.normalize(),dt}function BO(d){return!!(d&&d.__CANCEL__)}function C_(d,o,C){ec.call(this,d??"canceled",ec.ERR_CANCELED,o,C),this.name="CanceledError"}oo.inherits(C_,ec,{__CANCEL__:!0});function NO(d,o,C){const B=C.config.validateStatus;!C.status||!B||B(C.status)?d(C):o(new ec("Request failed with status code "+C.status,[ec.ERR_BAD_REQUEST,ec.ERR_BAD_RESPONSE][Math.floor(C.status/100)-4],C.config,C.request,C))}function MQ(d){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(d);return o&&o[1]||""}function SQ(d,o){d=d||10;const C=new Array(d),B=new Array(d);let Y=0,dt=0,xt;return o=o!==void 0?o:1e3,function(Ut){const re=Date.now(),ae=B[dt];xt||(xt=re),C[Y]=Ut,B[Y]=re;let we=dt,Xe=0;for(;we!==Y;)Xe+=C[we++],we=we%d;if(Y=(Y+1)%d,Y===dt&&(dt=(dt+1)%d),re-xt<o)return;const fr=ae&&re-ae;return fr?Math.round(Xe*1e3/fr):void 0}}function CQ(d,o){let C=0,B=1e3/o,Y,dt;const xt=(re,ae=Date.now())=>{C=ae,Y=null,dt&&(clearTimeout(dt),dt=null),d(...re)};return[(...re)=>{const ae=Date.now(),we=ae-C;we>=B?xt(re,ae):(Y=re,dt||(dt=setTimeout(()=>{dt=null,xt(Y)},B-we)))},()=>Y&&xt(Y)]}const _4=(d,o,C=3)=>{let B=0;const Y=SQ(50,250);return CQ(dt=>{const xt=dt.loaded,Ct=dt.lengthComputable?dt.total:void 0,Ut=xt-B,re=Y(Ut),ae=xt<=Ct;B=xt;const we={loaded:xt,total:Ct,progress:Ct?xt/Ct:void 0,bytes:Ut,rate:re||void 0,estimated:re&&Ct&&ae?(Ct-xt)/re:void 0,event:dt,lengthComputable:Ct!=null,[o?"download":"upload"]:!0};d(we)},C)},ZL=(d,o)=>{const C=d!=null;return[B=>o[0]({lengthComputable:C,total:d,loaded:B}),o[1]]},GL=d=>(...o)=>oo.asap(()=>d(...o)),EQ=Qp.hasStandardBrowserEnv?((d,o)=>C=>(C=new URL(C,Qp.origin),d.protocol===C.protocol&&d.host===C.host&&(o||d.port===C.port)))(new URL(Qp.origin),Qp.navigator&&/(msie|trident)/i.test(Qp.navigator.userAgent)):()=>!0,LQ=Qp.hasStandardBrowserEnv?{write(d,o,C,B,Y,dt,xt){if(typeof document>"u")return;const Ct=[`${d}=${encodeURIComponent(o)}`];oo.isNumber(C)&&Ct.push(`expires=${new Date(C).toUTCString()}`),oo.isString(B)&&Ct.push(`path=${B}`),oo.isString(Y)&&Ct.push(`domain=${Y}`),dt===!0&&Ct.push("secure"),oo.isString(xt)&&Ct.push(`SameSite=${xt}`),document.cookie=Ct.join("; ")},read(d){if(typeof document>"u")return null;const o=document.cookie.match(new RegExp("(?:^|; )"+d+"=([^;]*)"));return o?decodeURIComponent(o[1]):null},remove(d){this.write(d,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function PQ(d){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(d)}function zQ(d,o){return o?d.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):d}function jO(d,o,C){let B=!PQ(o);return d&&(B||C==!1)?zQ(d,o):o}const YL=d=>d instanceof I0?{...d}:d;function Iy(d,o){o=o||{};const C={};function B(re,ae,we,Xe){return oo.isPlainObject(re)&&oo.isPlainObject(ae)?oo.merge.call({caseless:Xe},re,ae):oo.isPlainObject(ae)?oo.merge({},ae):oo.isArray(ae)?ae.slice():ae}function Y(re,ae,we,Xe){if(oo.isUndefined(ae)){if(!oo.isUndefined(re))return B(void 0,re,we,Xe)}else return B(re,ae,we,Xe)}function dt(re,ae){if(!oo.isUndefined(ae))return B(void 0,ae)}function xt(re,ae){if(oo.isUndefined(ae)){if(!oo.isUndefined(re))return B(void 0,re)}else return B(void 0,ae)}function Ct(re,ae,we){if(we in o)return B(re,ae);if(we in d)return B(void 0,re)}const Ut={url:dt,method:dt,data:dt,baseURL:xt,transformRequest:xt,transformResponse:xt,paramsSerializer:xt,timeout:xt,timeoutMessage:xt,withCredentials:xt,withXSRFToken:xt,adapter:xt,responseType:xt,xsrfCookieName:xt,xsrfHeaderName:xt,onUploadProgress:xt,onDownloadProgress:xt,decompress:xt,maxContentLength:xt,maxBodyLength:xt,beforeRedirect:xt,transport:xt,httpAgent:xt,httpsAgent:xt,cancelToken:xt,socketPath:xt,responseEncoding:xt,validateStatus:Ct,headers:(re,ae,we)=>Y(YL(re),YL(ae),we,!0)};return oo.forEach(Object.keys({...d,...o}),function(ae){const we=Ut[ae]||Y,Xe=we(d[ae],o[ae],ae);oo.isUndefined(Xe)&&we!==Ct||(C[ae]=Xe)}),C}const UO=d=>{const o=Iy({},d);let{data:C,withXSRFToken:B,xsrfHeaderName:Y,xsrfCookieName:dt,headers:xt,auth:Ct}=o;if(o.headers=xt=I0.from(xt),o.url=DO(jO(o.baseURL,o.url,o.allowAbsoluteUrls),d.params,d.paramsSerializer),Ct&&xt.set("Authorization","Basic "+btoa((Ct.username||"")+":"+(Ct.password?unescape(encodeURIComponent(Ct.password)):""))),
Line truncated
|
||||
`+xt.map(eP).join(`
|
||||
`):" "+eP(xt[0]):"as no adapter specified";throw new ec("There is no suitable adapter to dispatch the request "+Ct,"ERR_NOT_SUPPORT")}return Y}const HO={getAdapter:HQ,adapters:g7};function U8(d){if(d.cancelToken&&d.cancelToken.throwIfRequested(),d.signal&&d.signal.aborted)throw new C_(null,d)}function rP(d){return U8(d),d.headers=z0.from(d.headers),d.data=j8.call(d,d.transformRequest),["post","put","patch"].indexOf(d.method)!==-1&&d.headers.setContentType("application/x-www-form-urlencoded",!1),HO.getAdapter(d.adapter||uw.adapter,d)(d).then(function(B){return U8(d),B.data=j8.call(d,d.transformResponse,B),B.headers=z0.from(B.headers),B},function(B){return BO(B)||(U8(d),B&&B.response&&(B.response.data=j8.call(d,d.transformResponse,B.response),B.response.headers=z0.from(B.response.headers))),Promise.reject(B)})}const WO="1.13.2",Q4={};["object","boolean","number","function","string","symbol"].forEach((d,o)=>{Q4[d]=function(B){return typeof B===d||"a"+(o<1?"n ":" ")+d}});const nP={};Q4.transitional=function(o,C,B){function Y(dt,xt){return"[Axios v"+WO+"] Transitional option '"+dt+"'"+xt+(B?". "+B:"")}return(dt,xt,Ct)=>{if(o===!1)throw new ec(Y(xt," has been removed"+(C?" in "+C:"")),ec.ERR_DEPRECATED);return C&&!nP[xt]&&(nP[xt]=!0,console.warn(Y(xt," has been deprecated since v"+C+" and will be removed in the near future"))),o?o(dt,xt,Ct):!0}};Q4.spelling=function(o){return(C,B)=>(console.warn(`${B} is likely a misspelling of ${o}`),!0)};function WQ(d,o,C){if(typeof d!="object")throw new ec("options must be an object",ec.ERR_BAD_OPTION_VALUE);const B=Object.keys(d);let Y=B.length;for(;Y-- >0;){const dt=B[Y],xt=o[dt];if(xt){const Ct=d[dt],Ut=Ct===void 0||xt(Ct,dt,d);if(Ut!==!0)throw new ec("option "+dt+" must be "+Ut,ec.ERR_BAD_OPTION_VALUE);continue}if(C!==!0)throw new ec("Unknown option "+dt,ec.ERR_BAD_OPTION)}}const o4={assertOptions:WQ,validators:Q4},og=o4.validators;let Ey=class{constructor(o){this.defaults=o||{},this.interceptors={request:new $L,response:new $L}}async request(o,C){try{return await this._request(o,C)}catch(B){if(B instanceof Error){let Y={};Error.captureStackTrace?Error.captureStackTrace(Y):Y=new Error;const dt=Y.stack?Y.stack.replace(/^.+\n/,""):"";try{B.stack?dt&&!String(B.stack).endsWith(dt.replace(/^.+\n.+\n/,""))&&(B.stack+=`
|
||||
`+dt):B.stack=dt}catch{}}throw B}}_request(o,C){typeof o=="string"?(C=C||{},C.url=o):C=o||{},C=Iy(this.defaults,C);const{transitional:B,paramsSerializer:Y,headers:dt}=C;B!==void 0&&o4.assertOptions(B,{silentJSONParsing:og.transitional(og.boolean),forcedJSONParsing:og.transitional(og.boolean),clarifyTimeoutError:og.transitional(og.boolean)},!1),Y!=null&&(so.isFunction(Y)?C.paramsSerializer={serialize:Y}:o4.assertOptions(Y,{encode:og.function,serialize:og.function},!0)),C.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?C.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:C.allowAbsoluteUrls=!0),o4.assertOptions(C,{baseUrl:og.spelling("baseURL"),withXsrfToken:og.spelling("withXSRFToken")},!0),C.method=(C.method||this.defaults.method||"get").toLowerCase();let xt=dt&&so.merge(dt.common,dt[C.method]);dt&&so.forEach(["delete","get","head","post","put","patch","common"],Tr=>{delete dt[Tr]}),C.headers=z0.concat(xt,dt);const Ct=[];let Ut=!0;this.interceptors.request.forEach(function(mr){typeof mr.runWhen=="function"&&mr.runWhen(C)===!1||(Ut=Ut&&mr.synchronous,Ct.unshift(mr.fulfilled,mr.rejected))});const re=[];this.interceptors.response.forEach(function(mr){re.push(mr.fulfilled,mr.rejected)});let ae,we=0,Xe;if(!Ut){const Tr=[rP.bind(this),void 0];for(Tr.unshift(...Ct),Tr.push(...re),Xe=Tr.length,ae=Promise.resolve(C);we<Xe;)ae=ae.then(Tr[we++],Tr[we++]);return ae}Xe=Ct.length;let fr=C;for(;we<Xe;){const Tr=Ct[we++],mr=Ct[we++];try{fr=Tr(fr)}catch(Sr){mr.call(this,Sr);break}}try{ae=rP.call(this,fr)}catch(Tr){return Promise.reject(Tr)}for(we=0,Xe=re.length;we<Xe;)ae=ae.then(re[we++],re[we++]);return ae}getUri(o){o=Iy(this.defaults,o);const C=jO(o.baseURL,o.url,o.allowAbsoluteUrls);return DO(C,o.params,o.paramsSerializer)}};so.forEach(["delete","get","head","options"],function(o){Ey.prototype[o]=function(C,B){return this.request(Iy(B||{},{method:o,url:C,data:(B||{}).data}))}});so.forEach(["post","put","patch"],function(o){function C(B){return function(dt,xt,Ct){return this.request(Iy(Ct||{},{method:o,headers:B?{"Content-Type":"multipart/form-data"}:{},url:dt,data:xt}))}}Ey.prototype[o]=C(),Ey.prototype[o+"Form"]=C(!0)});let $Q=class $O{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let C;this.promise=new Promise(function(dt){C=dt});const B=this;this.promise.then(Y=>{if(!B._listeners)return;let dt=B._listeners.length;for(;dt-- >0;)B._listeners[dt](Y);B._listeners=null}),this.promise.then=Y=>{let dt;const xt=new Promise(Ct=>{B.subscribe(Ct),dt=Ct}).then(Y);return xt.cancel=function(){B.unsubscribe(dt)},xt},o(function(dt,xt,Ct){B.reason||(B.reason=new C_(dt,xt,Ct),C(B.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const C=this._listeners.indexOf(o);C!==-1&&this._listeners.splice(C,1)}toAbortSignal(){const o=new AbortController,C=B=>{o.abort(B)};return this.subscribe(C),o.signal.unsubscribe=()=>this.unsubscribe(C),o.signal}static source(){let o;return{token:new $O(function(Y){o=Y}),cancel:o}}};function qQ(d){return function(C){return d.apply(null,C)}}function ZQ(d){return so.isObject(d)&&d.isAxiosError===!0}const LA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(LA).forEach(([d,o])=>{LA[o]=d});function qO(d){const o=new Ey(d),C=kO(Ey.prototype.request,o);return so.extend(C,Ey.prototype,o,{allOwnKeys:!0}),so.extend(C,o,null,{allOwnKeys:!0}),C.create=function(Y){return qO(Iy(d,Y))},C}const bd=qO(uw);bd.Axios=Ey;bd.CanceledError=C_;bd.CancelToken=$Q;bd.isCancel=BO;bd.VERSION=WO;bd.toFormData=J4;bd.AxiosError=ec;bd.Cancel=b
Line truncated
|
||||
`):" "+eP(xt[0]):"as no adapter specified";throw new ec("There is no suitable adapter to dispatch the request "+Ct,"ERR_NOT_SUPPORT")}return Y}const HO={getAdapter:HQ,adapters:g7};function U8(d){if(d.cancelToken&&d.cancelToken.throwIfRequested(),d.signal&&d.signal.aborted)throw new C_(null,d)}function rP(d){return U8(d),d.headers=I0.from(d.headers),d.data=j8.call(d,d.transformRequest),["post","put","patch"].indexOf(d.method)!==-1&&d.headers.setContentType("application/x-www-form-urlencoded",!1),HO.getAdapter(d.adapter||uw.adapter,d)(d).then(function(B){return U8(d),B.data=j8.call(d,d.transformResponse,B),B.headers=I0.from(B.headers),B},function(B){return BO(B)||(U8(d),B&&B.response&&(B.response.data=j8.call(d,d.transformResponse,B.response),B.response.headers=I0.from(B.response.headers))),Promise.reject(B)})}const WO="1.13.2",Q4={};["object","boolean","number","function","string","symbol"].forEach((d,o)=>{Q4[d]=function(B){return typeof B===d||"a"+(o<1?"n ":" ")+d}});const nP={};Q4.transitional=function(o,C,B){function Y(dt,xt){return"[Axios v"+WO+"] Transitional option '"+dt+"'"+xt+(B?". "+B:"")}return(dt,xt,Ct)=>{if(o===!1)throw new ec(Y(xt," has been removed"+(C?" in "+C:"")),ec.ERR_DEPRECATED);return C&&!nP[xt]&&(nP[xt]=!0,console.warn(Y(xt," has been deprecated since v"+C+" and will be removed in the near future"))),o?o(dt,xt,Ct):!0}};Q4.spelling=function(o){return(C,B)=>(console.warn(`${B} is likely a misspelling of ${o}`),!0)};function WQ(d,o,C){if(typeof d!="object")throw new ec("options must be an object",ec.ERR_BAD_OPTION_VALUE);const B=Object.keys(d);let Y=B.length;for(;Y-- >0;){const dt=B[Y],xt=o[dt];if(xt){const Ct=d[dt],Ut=Ct===void 0||xt(Ct,dt,d);if(Ut!==!0)throw new ec("option "+dt+" must be "+Ut,ec.ERR_BAD_OPTION_VALUE);continue}if(C!==!0)throw new ec("Unknown option "+dt,ec.ERR_BAD_OPTION)}}const o4={assertOptions:WQ,validators:Q4},og=o4.validators;let Ey=class{constructor(o){this.defaults=o||{},this.interceptors={request:new $L,response:new $L}}async request(o,C){try{return await this._request(o,C)}catch(B){if(B instanceof Error){let Y={};Error.captureStackTrace?Error.captureStackTrace(Y):Y=new Error;const dt=Y.stack?Y.stack.replace(/^.+\n/,""):"";try{B.stack?dt&&!String(B.stack).endsWith(dt.replace(/^.+\n.+\n/,""))&&(B.stack+=`
|
||||
`+dt):B.stack=dt}catch{}}throw B}}_request(o,C){typeof o=="string"?(C=C||{},C.url=o):C=o||{},C=Iy(this.defaults,C);const{transitional:B,paramsSerializer:Y,headers:dt}=C;B!==void 0&&o4.assertOptions(B,{silentJSONParsing:og.transitional(og.boolean),forcedJSONParsing:og.transitional(og.boolean),clarifyTimeoutError:og.transitional(og.boolean)},!1),Y!=null&&(oo.isFunction(Y)?C.paramsSerializer={serialize:Y}:o4.assertOptions(Y,{encode:og.function,serialize:og.function},!0)),C.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?C.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:C.allowAbsoluteUrls=!0),o4.assertOptions(C,{baseUrl:og.spelling("baseURL"),withXsrfToken:og.spelling("withXSRFToken")},!0),C.method=(C.method||this.defaults.method||"get").toLowerCase();let xt=dt&&oo.merge(dt.common,dt[C.method]);dt&&oo.forEach(["delete","get","head","post","put","patch","common"],Tr=>{delete dt[Tr]}),C.headers=I0.concat(xt,dt);const Ct=[];let Ut=!0;this.interceptors.request.forEach(function(mr){typeof mr.runWhen=="function"&&mr.runWhen(C)===!1||(Ut=Ut&&mr.synchronous,Ct.unshift(mr.fulfilled,mr.rejected))});const re=[];this.interceptors.response.forEach(function(mr){re.push(mr.fulfilled,mr.rejected)});let ae,we=0,Xe;if(!Ut){const Tr=[rP.bind(this),void 0];for(Tr.unshift(...Ct),Tr.push(...re),Xe=Tr.length,ae=Promise.resolve(C);we<Xe;)ae=ae.then(Tr[we++],Tr[we++]);return ae}Xe=Ct.length;let fr=C;for(;we<Xe;){const Tr=Ct[we++],mr=Ct[we++];try{fr=Tr(fr)}catch(Sr){mr.call(this,Sr);break}}try{ae=rP.call(this,fr)}catch(Tr){return Promise.reject(Tr)}for(we=0,Xe=re.length;we<Xe;)ae=ae.then(re[we++],re[we++]);return ae}getUri(o){o=Iy(this.defaults,o);const C=jO(o.baseURL,o.url,o.allowAbsoluteUrls);return DO(C,o.params,o.paramsSerializer)}};oo.forEach(["delete","get","head","options"],function(o){Ey.prototype[o]=function(C,B){return this.request(Iy(B||{},{method:o,url:C,data:(B||{}).data}))}});oo.forEach(["post","put","patch"],function(o){function C(B){return function(dt,xt,Ct){return this.request(Iy(Ct||{},{method:o,headers:B?{"Content-Type":"multipart/form-data"}:{},url:dt,data:xt}))}}Ey.prototype[o]=C(),Ey.prototype[o+"Form"]=C(!0)});let $Q=class $O{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let C;this.promise=new Promise(function(dt){C=dt});const B=this;this.promise.then(Y=>{if(!B._listeners)return;let dt=B._listeners.length;for(;dt-- >0;)B._listeners[dt](Y);B._listeners=null}),this.promise.then=Y=>{let dt;const xt=new Promise(Ct=>{B.subscribe(Ct),dt=Ct}).then(Y);return xt.cancel=function(){B.unsubscribe(dt)},xt},o(function(dt,xt,Ct){B.reason||(B.reason=new C_(dt,xt,Ct),C(B.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const C=this._listeners.indexOf(o);C!==-1&&this._listeners.splice(C,1)}toAbortSignal(){const o=new AbortController,C=B=>{o.abort(B)};return this.subscribe(C),o.signal.unsubscribe=()=>this.unsubscribe(C),o.signal}static source(){let o;return{token:new $O(function(Y){o=Y}),cancel:o}}};function qQ(d){return function(C){return d.apply(null,C)}}function ZQ(d){return oo.isObject(d)&&d.isAxiosError===!0}const LA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(LA).forEach(([d,o])=>{LA[o]=d});function qO(d){const o=new Ey(d),C=kO(Ey.prototype.request,o);return oo.extend(C,Ey.prototype,o,{allOwnKeys:!0}),oo.extend(C,o,null,{allOwnKeys:!0}),C.create=function(Y){return qO(Iy(d,Y))},C}const bd=qO(uw);bd.Axios=Ey;bd.CanceledError=C_;bd.CancelToken=$Q;bd.isCancel=BO;bd.VERSION=WO;bd.toFormData=J4;bd.AxiosError=ec;bd.Cancel=b
Line truncated
|
||||
${ae.color} 0%,
|
||||
${ae.color.replace("0.8","0.6")} 30%,
|
||||
${ae.color.replace("0.8","0.4")} 70%,
|
||||
@@ -41,14 +41,14 @@ function CG(d,o){for(var C=0;C<o.length;C++){const B=o[C];if(typeof B!="string"&
|
||||
0 4px 15px rgba(0, 0, 0, 0.4),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.3),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.2)
|
||||
`})},[jt("span",Wnt,On(ae.count),1)],4)]),jt("div",$nt,[jt("div",qnt,On(ae.name.replace(/\([^)]*\)/g,"").trim()),1)])]))),128))]))]),o.value.length>0?(yn(),Cn("div",Znt," Total packet types: "+On(o.value.length)+" | Total packets: "+On(o.value.reduce((ae,we)=>ae+we.count,0)),1)):lo("",!0)]))}}),Ynt=Bf(Gnt,[["__scopeId","data-v-cf9e6f4e"]]),Knt={class:"glass-card rounded-[10px] p-4 lg:p-6"},Xnt={class:"relative h-40 lg:h-48"},Jnt={class:"mt-3 lg:mt-4 grid grid-cols-2 gap-3 lg:gap-4"},Qnt={class:"text-center"},tit={class:"text-lg lg:text-2xl font-bold text-white"},eit={class:"text-center"},rit={class:"text-lg lg:text-2xl font-bold text-white"},nit={class:"mt-2 lg:mt-3 grid grid-cols-3 gap-2 lg:gap-3 text-center"},iit={class:"text-xs lg:text-sm font-semibold text-accent-purple flex items-center justify-center gap-1"},ait={key:0,class:"inline-block w-1.5 h-1.5 rounded-full bg-secondary opacity-70",title:"Early data - limited uptime"},oit={class:"text-xs text-white/60"},sit={class:"text-xs lg:text-sm font-semibold text-accent-red flex items-center justify-center gap-1"},lit={key:0,class:"inline-block w-1.5 h-1.5 rounded-full bg-secondary opacity-70",title:"Early data - limited uptime"},uit={class:"text-xs text-white/60"},cit={class:"text-xs lg:text-sm font-semibold text-white"},hit=dc({name:"PerformanceChart",__name:"PerformanceChart",setup(d){const o=cw(),C=mm(),B=ca(null),Y=ca([]),dt=ca(null),xt=ca(!0),Ct=Bo(()=>{const ae=C.stats?.uptime_seconds||0,we=o.packetStats?.total_packets||0,Xe=o.packetStats?.transmitted_packets||0,fr=Math.max(ae/3600,.1);if(fr<1){const mr=Math.max(ae/60,1);return{rxRate:{value:Math.round(we/mr*100)/100,label:fr<.5?"RX/min (early)":"RX/min"},txRate:{value:Math.round(Xe/mr*100)/100,label:fr<.5?"TX/min (early)":"TX/min"},confidence:"low"}}else{const mr=Math.round(we/fr*100)/100,Sr=Math.round(Xe/fr*100)/100;let Yr,zt;return fr<6?(Yr=`RX/hr (${Math.round(fr)}h)`,zt="medium"):fr<24?(Yr=`RX/hr (${Math.round(fr)}h)`,zt="high"):(Yr="RX/hr",zt="high"),{rxRate:{value:mr,label:Yr},txRate:{value:Sr,label:Yr.replace("RX","TX")},confidence:zt}}}),Ut=async()=>{try{xt.value=!0;const ae=await Ou.get("/recent_packets",{limit:50});if(!ae.success){Y.value=[],xt.value=!1,L0(()=>{re()});return}const we=ae.data||[],Xe=Date.now(),fr=24,Tr=12,mr=fr*60*60*1e3/Tr,Sr=[];for(let Yr=0;Yr<Tr;Yr++){const zt=Xe-fr*60*60*1e3+Yr*mr,on=zt+mr,ti=we.filter(Si=>{const ji=Si.timestamp*1e3;return ji>=zt&&ji<on}),Gn=ti.filter(Si=>!Si.transmitted).length,ei=ti.filter(Si=>Si.transmitted).length;Sr.push({time:new Date(zt+mr/2).toISOString(),rxPackets:Gn,txPackets:ei})}Y.value=Sr,xt.value=!1,L0(()=>{re()})}catch{Y.value=[],xt.value=!1,L0(()=>{re()})}},re=()=>{if(!B.value)return;const ae=B.value,we=ae.getContext("2d");if(!we)return;const Xe=ae.parentElement;if(!Xe)return;const fr=Xe.getBoundingClientRect(),Tr=fr.width,mr=fr.height;ae.width=Tr*window.devicePixelRatio,ae.height=mr*window.devicePixelRatio,ae.style.width=Tr+"px",ae.style.height=mr+"px",we.scale(window.devicePixelRatio,window.devicePixelRatio);const Sr=20;if(we.clearRect(0,0,Tr,mr),xt.value){we.fillStyle="#666",we.font="16px sans-serif",we.textAlign="center",we.fillText("Loading chart data...",Tr/2,mr/2);return}if(Y.value.length===0){we.fillStyle="#666",we.font="16px sans-serif",we.textAlign="center",we.fillText("No data available",Tr/2,mr/2);return}const Yr=Y.value.every(yi=>yi.rxPackets===0&&yi.txPackets===0),zt=Tr-Sr*2,on=mr-Sr*2,ti=Y.value.flatMap(yi=>[yi.rxPackets,yi.txPackets]),Gn=Math.min(...ti),ei=Math.max(...ti),Si=Gn,ji=ei,nn=Math.max(ji-Si,1);if(we.strokeStyle="rgba(255, 255, 255, 0.1)",we.lineWidth=1,Si<=0&&ji>=0){we.strokeStyle="rgba(255, 255, 255, 0.3)",we.lineWidth=2;const yi=mr-Sr-(0-Si)/nn*on;we.beginPath(),we.moveTo(Sr,yi),we.lineTo(Tr-Sr,yi),we.stroke(),yi>20&&yi<mr-20&&(we.fillStyle="rgba(255, 255, 255, 0.7)",we.font="10px system-ui",we.textAlign="left",we.fillText("0",Sr+2,yi-2)),we.strokeStyle="rgba(255, 255, 255, 0.1)",we.lineWidth=1}for(let yi=0;yi<=5;yi++){const Yn=Sr+on*yi/5;we.beginPath(),we.moveTo(Sr,Yn),we.lineTo(Tr-Sr,Yn),we.stroke()}for(let yi=0;yi<=6;yi++){const Yn=Sr+zt*yi/6;we.beginPath(),we.moveTo(Yn,Sr),we.lineTo(Yn,mr-Sr),we.stroke()}Y.value.length>1&&(we.strokeStyle="#EBA0FC",we.lineWidth=2,we.beginPath(),Y.value.forEach((yi,Yn)=>{const li=Sr+zt*Yn/(Y.value.length-1),jn=mr-Sr-(yi.rxPackets-Si)/nn*on;Yn===0?we.moveTo(li,jn):we.lineTo(li,jn)}),we.stroke(),we.fillStyle="#EBA0FC",Y.value.forEach((yi,Yn)=>{const li=Sr+zt*Yn/(Y.value.length-1),jn=mr-Sr-(yi.rxPackets-Si)/nn*on;we.beginPath(),we.arc(li,jn,2,0,2*Math.PI),we.fill()})),Y.value.length>1&&(we.strokeStyle="#FB787B",we.lineWidth=2,we.beginPath(),Y.value.forEach((yi,Yn)=>{const li=Sr+zt*Yn/(Y.value.length-1),jn=mr-Sr-(yi.txPackets-Si)/nn*on;Yn===0?we.moveTo(li,jn):we.lineTo(li,jn)}),we.stroke(),we.fillStyle="#FB787B",Y.value.forEach((yi,Yn)=>{const li=Sr+zt*Yn/(Y.value.length-1),jn=mr-Sr-(yi.txPackets-Si)/nn*on;we.beginPath(),we.arc(li,jn,2,0,2*Math.PI),we.fill()})
Line truncated
|
||||
`)||zt},ae=(zt,on,ti)=>{try{let Gn=0;const ei=on.length/2;if(ei>=100){if(on.length>=Gn+64){const Si=on.slice(Gn,Gn+64);zt.push({name:"Public Key",byteRange:`${(ti+Gn)/2}-${(ti+Gn+63)/2}`,hexData:Si.match(/.{8}/g)?.join(" ")||Si,description:"Ed25519 public key of the node (32 bytes)",fields:[{bits:"0-255",name:"Ed25519 Public Key",value:`${Si.slice(0,16)}...${Si.slice(-16)}`,binary:"32 bytes (256 bits)"}]}),Gn+=64}if(on.length>=Gn+8){const Si=on.slice(Gn,Gn+8),ji=parseInt(Si,16),nn=new Date(ji*1e3);zt.push({name:"Timestamp",byteRange:`${(ti+Gn)/2}-${(ti+Gn+7)/2}`,hexData:Si.match(/.{2}/g)?.join(" ")||Si,description:"Unix timestamp of advertisement",fields:[{bits:"0-31",name:"Unix Timestamp",value:`${ji} (${nn.toLocaleString()})`,binary:ji.toString(2).padStart(32,"0")}]}),Gn+=8}if(on.length>=Gn+128){const Si=on.slice(Gn,Gn+128);zt.push({name:"Signature",byteRange:`${(ti+Gn)/2}-${(ti+Gn+127)/2}`,hexData:Si.match(/.{8}/g)?.join(" ")||Si,description:"Ed25519 signature of public key, timestamp, and appdata",fields:[{bits:"0-511",name:"Ed25519 Signature",value:`${Si.slice(0,16)}...${Si.slice(-16)}`,binary:"64 bytes (512 bits)"}]}),Gn+=128}if(on.length>Gn){const Si=on.slice(Gn);we(zt,Si,ti+Gn)}}else zt.push({name:"ADVERT AppData (Partial)",byteRange:`${ti/2}-${ti/2+ei-1}`,hexData:on.match(/.{2}/g)?.join(" ")||on,description:`Partial ADVERT data - appears to be just AppData portion (${ei} bytes)`,fields:[{bits:`0-${ei*8-1}`,name:"Partial Data",value:`${ei} bytes - attempting to decode as AppData`,binary:`${ei} bytes (${ei*8} bits)`}]}),we(zt,on,ti)}catch(Gn){zt.push({name:"ADVERT Parse Error",byteRange:"N/A",hexData:on.slice(0,32)+"...",description:"Failed to parse ADVERT payload structure",fields:[{bits:"N/A",name:"Error",value:`Parse error: ${Gn instanceof Error?Gn.message:"Unknown error"}`,binary:"Invalid"}]})}},we=(zt,on,ti)=>{try{const Gn=on.length/2;zt.push({name:"AppData",byteRange:`${ti/2}-${ti/2+Gn-1}`,hexData:on.match(/.{2}/g)?.join(" ")||on,description:`Node advertisement application data (${Gn} bytes)`,fields:[{bits:`0-${Gn*8-1}`,name:"Application Data",value:`${Gn} bytes (contains flags, location, name, etc.)`,binary:`${Gn} bytes (${Gn*8} bits)`}]});let ei=0;if(on.length>=2){const Si=parseInt(on.slice(ei,ei+2),16),ji=[],nn=!!(Si&16),yi=!!(Si&32),Yn=!!(Si&64),li=!!(Si&128);if(Si&1&&ji.push("is chat node"),Si&2&&ji.push("is repeater"),Si&4&&ji.push("is room server"),Si&8&&ji.push("is sensor"),nn&&ji.push("has location"),yi&&ji.push("has feature 1"),Yn&&ji.push("has feature 2"),li&&ji.push("has name"),zt.push({name:"AppData Flags",byteRange:`${(ti+ei)/2}`,hexData:`0x${on.slice(ei,ei+2)}`,description:"Flags indicating which optional fields are present",fields:[{bits:"0-7",name:"Flags",value:ji.join(", ")||"none",binary:Si.toString(2).padStart(8,"0")}]}),ei+=2,nn&&on.length>=ei+16){const jn=on.slice(ei,ei+8),$n=[];for(let Us=6;Us>=0;Us-=2)$n.push(jn.slice(Us,Us+2));const Li=parseInt($n.join(""),16),Ln=Li>2147483647?Li-4294967296:Li,Kn=Ln/1e6,pa=on.slice(ei+8,ei+16),rl=[];for(let Us=6;Us>=0;Us-=2)rl.push(pa.slice(Us,Us+2));const qa=parseInt(rl.join(""),16),oo=qa>2147483647?qa-4294967296:qa,Ua=oo/1e6;zt.push({name:"Location Data",byteRange:`${(ti+ei)/2}-${(ti+ei+15)/2}`,hexData:`${jn.match(/.{2}/g)?.join(" ")||jn} ${pa.match(/.{2}/g)?.join(" ")||pa}`,description:"GPS coordinates (latitude and longitude)",fields:[{bits:"0-31",name:"Latitude",value:`${Kn.toFixed(6)}° (raw: ${Ln})`,binary:Ln.toString(2).padStart(32,"0")},{bits:"32-63",name:"Longitude",value:`${Ua.toFixed(6)}° (raw: ${oo})`,binary:oo.toString(2).padStart(32,"0")}]}),ei+=16}if(yi&&on.length>=ei+4){const jn=on.slice(ei,ei+4),$n=parseInt(jn,16);zt.push({name:"Feature 1",byteRange:`${(ti+ei)/2}-${(ti+ei+3)/2}`,hexData:jn.match(/.{2}/g)?.join(" ")||jn,description:"Reserved feature 1 (2 bytes)",fields:[{bits:"0-15",name:"Feature 1 Value",value:`${$n}`,binary:$n.toString(2).padStart(16,"0")}]}),ei+=4}if(Yn&&on.length>=ei+4){const jn=on.slice(ei,ei+4),$n=parseInt(jn,16);zt.push({name:"Feature 2",byteRange:`${(ti+ei)/2}-${(ti+ei+3)/2}`,hexData:jn.match(/.{2}/g)?.join(" ")||jn,description:"Reserved feature 2 (2 bytes)",fields:[{bits:"0-15",name:"Feature 2 Value",value:`${$n}`,binary:$n.toString(2).padStart(16,"0")}]}),ei+=4}if(li&&on.length>ei){const jn=on.slice(ei),$n=jn.match(/.{2}/g)||[],Li=$n.map(Ln=>{const Kn=parseInt(Ln,16);return Kn>=32&&Kn<=126?String.fromCharCode(Kn):"."}).join("").replace(/\.+$/,"");zt.push({name:"Node Name",byteRange:`${(ti+ei)/2}-${(ti+on.length-1)/2}`,hexData:jn.match(/.{2}/g)?.join(" ")||jn,description:`Node name string (${$n.length} bytes)`,fields:[{bits:`0-${$n.length*8-1}`,name:"Node Name",value:`"${Li}"`,binary:`ASCII text (${$n.length} bytes)`}]})}}}catch(Gn){zt.push({name:"AppData Parse Error",byteRange:"N/A",hexData:on.slice(0,Math.min(32,on.length)),description:"Failed to parse AppData structure",fields:[{bits:"N/A",name:"Error",value:`Parse error: ${Gn instanceof Error?Gn.message:"Unknown error"}`,binary:"Invalid"}
Line truncated
|
||||
`})},[Nt("span",Wnt,Pn(ae.count),1)],4)]),Nt("div",$nt,[Nt("div",qnt,Pn(ae.name.replace(/\([^)]*\)/g,"").trim()),1)])]))),128))]))]),o.value.length>0?(yn(),An("div",Znt," Total packet types: "+Pn(o.value.length)+" | Total packets: "+Pn(o.value.reduce((ae,we)=>ae+we.count,0)),1)):ro("",!0)]))}}),Ynt=Bf(Gnt,[["__scopeId","data-v-cf9e6f4e"]]),Knt={class:"glass-card rounded-[10px] p-4 lg:p-6"},Xnt={class:"relative h-40 lg:h-48"},Jnt={class:"mt-3 lg:mt-4 grid grid-cols-2 gap-3 lg:gap-4"},Qnt={class:"text-center"},tit={class:"text-lg lg:text-2xl font-bold text-white"},eit={class:"text-center"},rit={class:"text-lg lg:text-2xl font-bold text-white"},nit={class:"mt-2 lg:mt-3 grid grid-cols-3 gap-2 lg:gap-3 text-center"},iit={class:"text-xs lg:text-sm font-semibold text-accent-purple flex items-center justify-center gap-1"},ait={key:0,class:"inline-block w-1.5 h-1.5 rounded-full bg-secondary opacity-70",title:"Early data - limited uptime"},oit={class:"text-xs text-white/60"},sit={class:"text-xs lg:text-sm font-semibold text-accent-red flex items-center justify-center gap-1"},lit={key:0,class:"inline-block w-1.5 h-1.5 rounded-full bg-secondary opacity-70",title:"Early data - limited uptime"},uit={class:"text-xs text-white/60"},cit={class:"text-xs lg:text-sm font-semibold text-white"},hit=dc({name:"PerformanceChart",__name:"PerformanceChart",setup(d){const o=cw(),C=mm(),B=da(null),Y=da([]),dt=da(null),xt=da(!0),Ct=Bo(()=>{const ae=C.stats?.uptime_seconds||0,we=o.packetStats?.total_packets||0,Xe=o.packetStats?.transmitted_packets||0,fr=Math.max(ae/3600,.1);if(fr<1){const mr=Math.max(ae/60,1);return{rxRate:{value:Math.round(we/mr*100)/100,label:fr<.5?"RX/min (early)":"RX/min"},txRate:{value:Math.round(Xe/mr*100)/100,label:fr<.5?"TX/min (early)":"TX/min"},confidence:"low"}}else{const mr=Math.round(we/fr*100)/100,Sr=Math.round(Xe/fr*100)/100;let Yr,Rt;return fr<6?(Yr=`RX/hr (${Math.round(fr)}h)`,Rt="medium"):fr<24?(Yr=`RX/hr (${Math.round(fr)}h)`,Rt="high"):(Yr="RX/hr",Rt="high"),{rxRate:{value:mr,label:Yr},txRate:{value:Sr,label:Yr.replace("RX","TX")},confidence:Rt}}}),Ut=async()=>{try{xt.value=!0;const ae=await Ou.get("/recent_packets",{limit:50});if(!ae.success){Y.value=[],xt.value=!1,L0(()=>{re()});return}const we=ae.data||[],Xe=Date.now(),fr=24,Tr=12,mr=fr*60*60*1e3/Tr,Sr=[];for(let Yr=0;Yr<Tr;Yr++){const Rt=Xe-fr*60*60*1e3+Yr*mr,ai=Rt+mr,fn=we.filter(oi=>{const Kn=oi.timestamp*1e3;return Kn>=Rt&&Kn<ai}),dn=fn.filter(oi=>!oi.transmitted).length,_i=fn.filter(oi=>oi.transmitted).length;Sr.push({time:new Date(Rt+mr/2).toISOString(),rxPackets:dn,txPackets:_i})}Y.value=Sr,xt.value=!1,L0(()=>{re()})}catch{Y.value=[],xt.value=!1,L0(()=>{re()})}},re=()=>{if(!B.value)return;const ae=B.value,we=ae.getContext("2d");if(!we)return;const Xe=ae.parentElement;if(!Xe)return;const fr=Xe.getBoundingClientRect(),Tr=fr.width,mr=fr.height;ae.width=Tr*window.devicePixelRatio,ae.height=mr*window.devicePixelRatio,ae.style.width=Tr+"px",ae.style.height=mr+"px",we.scale(window.devicePixelRatio,window.devicePixelRatio);const Sr=20;if(we.clearRect(0,0,Tr,mr),xt.value){we.fillStyle="#666",we.font="16px sans-serif",we.textAlign="center",we.fillText("Loading chart data...",Tr/2,mr/2);return}if(Y.value.length===0){we.fillStyle="#666",we.font="16px sans-serif",we.textAlign="center",we.fillText("No data available",Tr/2,mr/2);return}const Yr=Y.value.every(hi=>hi.rxPackets===0&&hi.txPackets===0),Rt=Tr-Sr*2,ai=mr-Sr*2,fn=Y.value.flatMap(hi=>[hi.rxPackets,hi.txPackets]),dn=Math.min(...fn),_i=Math.max(...fn),oi=dn,Kn=_i,qr=Math.max(Kn-oi,1);if(we.strokeStyle="rgba(255, 255, 255, 0.1)",we.lineWidth=1,oi<=0&&Kn>=0){we.strokeStyle="rgba(255, 255, 255, 0.3)",we.lineWidth=2;const hi=mr-Sr-(0-oi)/qr*ai;we.beginPath(),we.moveTo(Sr,hi),we.lineTo(Tr-Sr,hi),we.stroke(),hi>20&&hi<mr-20&&(we.fillStyle="rgba(255, 255, 255, 0.7)",we.font="10px system-ui",we.textAlign="left",we.fillText("0",Sr+2,hi-2)),we.strokeStyle="rgba(255, 255, 255, 0.1)",we.lineWidth=1}for(let hi=0;hi<=5;hi++){const Hn=Sr+ai*hi/5;we.beginPath(),we.moveTo(Sr,Hn),we.lineTo(Tr-Sr,Hn),we.stroke()}for(let hi=0;hi<=6;hi++){const Hn=Sr+Rt*hi/6;we.beginPath(),we.moveTo(Hn,Sr),we.lineTo(Hn,mr-Sr),we.stroke()}Y.value.length>1&&(we.strokeStyle="#EBA0FC",we.lineWidth=2,we.beginPath(),Y.value.forEach((hi,Hn)=>{const si=Sr+Rt*Hn/(Y.value.length-1),Yn=mr-Sr-(hi.rxPackets-oi)/qr*ai;Hn===0?we.moveTo(si,Yn):we.lineTo(si,Yn)}),we.stroke(),we.fillStyle="#EBA0FC",Y.value.forEach((hi,Hn)=>{const si=Sr+Rt*Hn/(Y.value.length-1),Yn=mr-Sr-(hi.rxPackets-oi)/qr*ai;we.beginPath(),we.arc(si,Yn,2,0,2*Math.PI),we.fill()})),Y.value.length>1&&(we.strokeStyle="#FB787B",we.lineWidth=2,we.beginPath(),Y.value.forEach((hi,Hn)=>{const si=Sr+Rt*Hn/(Y.value.length-1),Yn=mr-Sr-(hi.txPackets-oi)/qr*ai;Hn===0?we.moveTo(si,Yn):we.lineTo(si,Yn)}),we.stroke(),we.fillStyle="#FB787B",Y.value.forEach((hi,Hn)=>{const si=Sr+Rt*Hn/(Y.value.length-1),Yn=mr-Sr-(hi.txPackets-oi)/qr*ai;we.beginPath(),we.arc(si,Yn,2,0,2*Math.PI),we.fill()})
Line truncated
|
||||
`)||fn},ae=(fn,dn,_i)=>{try{let oi=0;const Kn=dn.length/2;if(Kn>=100){if(dn.length>=oi+64){const qr=dn.slice(oi,oi+64);fn.push({name:"Public Key",byteRange:`${(_i+oi)/2}-${(_i+oi+63)/2}`,hexData:qr.match(/.{8}/g)?.join(" ")||qr,description:"Ed25519 public key of the node (32 bytes)",fields:[{bits:"0-255",name:"Ed25519 Public Key",value:`${qr.slice(0,16)}...${qr.slice(-16)}`,binary:"32 bytes (256 bits)"}]}),oi+=64}if(dn.length>=oi+8){const qr=dn.slice(oi,oi+8),hi=parseInt(qr,16),Hn=new Date(hi*1e3);fn.push({name:"Timestamp",byteRange:`${(_i+oi)/2}-${(_i+oi+7)/2}`,hexData:qr.match(/.{2}/g)?.join(" ")||qr,description:"Unix timestamp of advertisement",fields:[{bits:"0-31",name:"Unix Timestamp",value:`${hi} (${Hn.toLocaleString()})`,binary:hi.toString(2).padStart(32,"0")}]}),oi+=8}if(dn.length>=oi+128){const qr=dn.slice(oi,oi+128);fn.push({name:"Signature",byteRange:`${(_i+oi)/2}-${(_i+oi+127)/2}`,hexData:qr.match(/.{8}/g)?.join(" ")||qr,description:"Ed25519 signature of public key, timestamp, and appdata",fields:[{bits:"0-511",name:"Ed25519 Signature",value:`${qr.slice(0,16)}...${qr.slice(-16)}`,binary:"64 bytes (512 bits)"}]}),oi+=128}if(dn.length>oi){const qr=dn.slice(oi);we(fn,qr,_i+oi)}}else fn.push({name:"ADVERT AppData (Partial)",byteRange:`${_i/2}-${_i/2+Kn-1}`,hexData:dn.match(/.{2}/g)?.join(" ")||dn,description:`Partial ADVERT data - appears to be just AppData portion (${Kn} bytes)`,fields:[{bits:`0-${Kn*8-1}`,name:"Partial Data",value:`${Kn} bytes - attempting to decode as AppData`,binary:`${Kn} bytes (${Kn*8} bits)`}]}),we(fn,dn,_i)}catch(oi){fn.push({name:"ADVERT Parse Error",byteRange:"N/A",hexData:dn.slice(0,32)+"...",description:"Failed to parse ADVERT payload structure",fields:[{bits:"N/A",name:"Error",value:`Parse error: ${oi instanceof Error?oi.message:"Unknown error"}`,binary:"Invalid"}]})}},we=(fn,dn,_i)=>{try{const oi=dn.length/2;fn.push({name:"AppData",byteRange:`${_i/2}-${_i/2+oi-1}`,hexData:dn.match(/.{2}/g)?.join(" ")||dn,description:`Node advertisement application data (${oi} bytes)`,fields:[{bits:`0-${oi*8-1}`,name:"Application Data",value:`${oi} bytes (contains flags, location, name, etc.)`,binary:`${oi} bytes (${oi*8} bits)`}]});let Kn=0;if(dn.length>=2){const qr=parseInt(dn.slice(Kn,Kn+2),16),hi=[],Hn=!!(qr&16),si=!!(qr&32),Yn=!!(qr&64),ti=!!(qr&128);if(qr&1&&hi.push("is chat node"),qr&2&&hi.push("is repeater"),qr&4&&hi.push("is room server"),qr&8&&hi.push("is sensor"),Hn&&hi.push("has location"),si&&hi.push("has feature 1"),Yn&&hi.push("has feature 2"),ti&&hi.push("has name"),fn.push({name:"AppData Flags",byteRange:`${(_i+Kn)/2}`,hexData:`0x${dn.slice(Kn,Kn+2)}`,description:"Flags indicating which optional fields are present",fields:[{bits:"0-7",name:"Flags",value:hi.join(", ")||"none",binary:qr.toString(2).padStart(8,"0")}]}),Kn+=2,Hn&&dn.length>=Kn+16){const Pi=dn.slice(Kn,Kn+8),Dn=[];for(let za=6;za>=0;za-=2)Dn.push(Pi.slice(za,za+2));const Wn=parseInt(Dn.join(""),16),ea=Wn>2147483647?Wn-4294967296:Wn,Ds=ea/1e6,Eo=dn.slice(Kn+8,Kn+16),ys=[];for(let za=6;za>=0;za-=2)ys.push(Eo.slice(za,za+2));const vo=parseInt(ys.join(""),16),Do=vo>2147483647?vo-4294967296:vo,ra=Do/1e6;fn.push({name:"Location Data",byteRange:`${(_i+Kn)/2}-${(_i+Kn+15)/2}`,hexData:`${Pi.match(/.{2}/g)?.join(" ")||Pi} ${Eo.match(/.{2}/g)?.join(" ")||Eo}`,description:"GPS coordinates (latitude and longitude)",fields:[{bits:"0-31",name:"Latitude",value:`${Ds.toFixed(6)}° (raw: ${ea})`,binary:ea.toString(2).padStart(32,"0")},{bits:"32-63",name:"Longitude",value:`${ra.toFixed(6)}° (raw: ${Do})`,binary:Do.toString(2).padStart(32,"0")}]}),Kn+=16}if(si&&dn.length>=Kn+4){const Pi=dn.slice(Kn,Kn+4),Dn=parseInt(Pi,16);fn.push({name:"Feature 1",byteRange:`${(_i+Kn)/2}-${(_i+Kn+3)/2}`,hexData:Pi.match(/.{2}/g)?.join(" ")||Pi,description:"Reserved feature 1 (2 bytes)",fields:[{bits:"0-15",name:"Feature 1 Value",value:`${Dn}`,binary:Dn.toString(2).padStart(16,"0")}]}),Kn+=4}if(Yn&&dn.length>=Kn+4){const Pi=dn.slice(Kn,Kn+4),Dn=parseInt(Pi,16);fn.push({name:"Feature 2",byteRange:`${(_i+Kn)/2}-${(_i+Kn+3)/2}`,hexData:Pi.match(/.{2}/g)?.join(" ")||Pi,description:"Reserved feature 2 (2 bytes)",fields:[{bits:"0-15",name:"Feature 2 Value",value:`${Dn}`,binary:Dn.toString(2).padStart(16,"0")}]}),Kn+=4}if(ti&&dn.length>Kn){const Pi=dn.slice(Kn),Dn=Pi.match(/.{2}/g)||[],Wn=Dn.map(ea=>{const Ds=parseInt(ea,16);return Ds>=32&&Ds<=126?String.fromCharCode(Ds):"."}).join("").replace(/\.+$/,"");fn.push({name:"Node Name",byteRange:`${(_i+Kn)/2}-${(_i+dn.length-1)/2}`,hexData:Pi.match(/.{2}/g)?.join(" ")||Pi,description:`Node name string (${Dn.length} bytes)`,fields:[{bits:`0-${Dn.length*8-1}`,name:"Node Name",value:`"${Wn}"`,binary:`ASCII text (${Dn.length} bytes)`}]})}}}catch(oi){fn.push({name:"AppData Parse Error",byteRange:"N/A",hexData:dn.slice(0,Math.min(32,dn.length)),description:"Failed to parse AppData structure",fields:[{bits:"N/A",name:"Error",value:`Parse error: ${oi instanceof Error?oi.message:"Unknown error"}`,binary:"Invalid"}
Line truncated
|
||||
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
||||
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
||||
*/var Bst=_2.exports,iP;function Nst(){return iP||(iP=1,function(d,o){(function(C,B){B(o)})(Bst,function(C){var B="1.9.4";function Y(ct){var Bt,ge,tr,Or;for(ge=1,tr=arguments.length;ge<tr;ge++){Or=arguments[ge];for(Bt in Or)ct[Bt]=Or[Bt]}return ct}var dt=Object.create||function(){function ct(){}return function(Bt){return ct.prototype=Bt,new ct}}();function xt(ct,Bt){var ge=Array.prototype.slice;if(ct.bind)return ct.bind.apply(ct,ge.call(arguments,1));var tr=ge.call(arguments,2);return function(){return ct.apply(Bt,tr.length?tr.concat(ge.call(arguments)):arguments)}}var Ct=0;function Ut(ct){return"_leaflet_id"in ct||(ct._leaflet_id=++Ct),ct._leaflet_id}function re(ct,Bt,ge){var tr,Or,En,Gi;return Gi=function(){tr=!1,Or&&(En.apply(ge,Or),Or=!1)},En=function(){tr?Or=arguments:(ct.apply(ge,arguments),setTimeout(Gi,Bt),tr=!0)},En}function ae(ct,Bt,ge){var tr=Bt[1],Or=Bt[0],En=tr-Or;return ct===tr&&ge?ct:((ct-Or)%En+En)%En+Or}function we(){return!1}function Xe(ct,Bt){if(Bt===!1)return ct;var ge=Math.pow(10,Bt===void 0?6:Bt);return Math.round(ct*ge)/ge}function fr(ct){return ct.trim?ct.trim():ct.replace(/^\s+|\s+$/g,"")}function Tr(ct){return fr(ct).split(/\s+/)}function mr(ct,Bt){Object.prototype.hasOwnProperty.call(ct,"options")||(ct.options=ct.options?dt(ct.options):{});for(var ge in Bt)ct.options[ge]=Bt[ge];return ct.options}function Sr(ct,Bt,ge){var tr=[];for(var Or in ct)tr.push(encodeURIComponent(ge?Or.toUpperCase():Or)+"="+encodeURIComponent(ct[Or]));return(!Bt||Bt.indexOf("?")===-1?"?":"&")+tr.join("&")}var Yr=/\{ *([\w_ -]+) *\}/g;function zt(ct,Bt){return ct.replace(Yr,function(ge,tr){var Or=Bt[tr];if(Or===void 0)throw new Error("No value provided for variable "+ge);return typeof Or=="function"&&(Or=Or(Bt)),Or})}var on=Array.isArray||function(ct){return Object.prototype.toString.call(ct)==="[object Array]"};function ti(ct,Bt){for(var ge=0;ge<ct.length;ge++)if(ct[ge]===Bt)return ge;return-1}var Gn="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function ei(ct){return window["webkit"+ct]||window["moz"+ct]||window["ms"+ct]}var Si=0;function ji(ct){var Bt=+new Date,ge=Math.max(0,16-(Bt-Si));return Si=Bt+ge,window.setTimeout(ct,ge)}var nn=window.requestAnimationFrame||ei("RequestAnimationFrame")||ji,yi=window.cancelAnimationFrame||ei("CancelAnimationFrame")||ei("CancelRequestAnimationFrame")||function(ct){window.clearTimeout(ct)};function Yn(ct,Bt,ge){if(ge&&nn===ji)ct.call(Bt);else return nn.call(window,xt(ct,Bt))}function li(ct){ct&&yi.call(window,ct)}var jn={__proto__:null,extend:Y,create:dt,bind:xt,get lastId(){return Ct},stamp:Ut,throttle:re,wrapNum:ae,falseFn:we,formatNum:Xe,trim:fr,splitWords:Tr,setOptions:mr,getParamString:Sr,template:zt,isArray:on,indexOf:ti,emptyImageUrl:Gn,requestFn:nn,cancelFn:yi,requestAnimFrame:Yn,cancelAnimFrame:li};function $n(){}$n.extend=function(ct){var Bt=function(){mr(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},ge=Bt.__super__=this.prototype,tr=dt(ge);tr.constructor=Bt,Bt.prototype=tr;for(var Or in this)Object.prototype.hasOwnProperty.call(this,Or)&&Or!=="prototype"&&Or!=="__super__"&&(Bt[Or]=this[Or]);return ct.statics&&Y(Bt,ct.statics),ct.includes&&(Li(ct.includes),Y.apply(null,[tr].concat(ct.includes))),Y(tr,ct),delete tr.statics,delete tr.includes,tr.options&&(tr.options=ge.options?dt(ge.options):{},Y(tr.options,ct.options)),tr._initHooks=[],tr.callInitHooks=function(){if(!this._initHooksCalled){ge.callInitHooks&&ge.callInitHooks.call(this),this._initHooksCalled=!0;for(var En=0,Gi=tr._initHooks.length;En<Gi;En++)tr._initHooks[En].call(this)}},Bt},$n.include=function(ct){var Bt=this.prototype.options;return Y(this.prototype,ct),ct.options&&(this.prototype.options=Bt,this.mergeOptions(ct.options)),this},$n.mergeOptions=function(ct){return Y(this.prototype.options,ct),this},$n.addInitHook=function(ct){var Bt=Array.prototype.slice.call(arguments,1),ge=typeof ct=="function"?ct:function(){this[ct].apply(this,Bt)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(ge),this};function Li(ct){if(!(typeof L>"u"||!L||!L.Mixin)){ct=on(ct)?ct:[ct];for(var Bt=0;Bt<ct.length;Bt++)ct[Bt]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Ln={on:function(ct,Bt,ge){if(typeof ct=="object")for(var tr in ct)this._on(tr,ct[tr],Bt);else{ct=Tr(ct);for(var Or=0,En=ct.length;Or<En;Or++)this._on(ct[Or],Bt,ge)}return this},off:function(ct,Bt,ge){if(!arguments.length)delete this._events;else if(typeof ct=="object")for(var tr in ct)this._off(tr,ct[tr],Bt);else{ct=Tr(ct);for(var Or=arguments.length===1,En=0,Gi=ct.length;En<Gi;En++)Or?this._off(ct[En]):this._off(ct[En],Bt,ge)}return this},_on:function(ct,Bt,ge,tr){if(typeof Bt!="function"){console.warn("wrong listener type: "+typeof Bt);return}if(this._listens(ct,Bt,ge)===!1){ge===this&&(ge=void 0);var Or={fn:Bt,ctx:ge};tr&Line truncated
|
||||
*/var alt=_2.exports,iP;function olt(){return iP||(iP=1,function(d,o){(function(C,B){B(o)})(alt,function(C){var B="1.9.4";function Y(ct){var Bt,ge,tr,Or;for(ge=1,tr=arguments.length;ge<tr;ge++){Or=arguments[ge];for(Bt in Or)ct[Bt]=Or[Bt]}return ct}var dt=Object.create||function(){function ct(){}return function(Bt){return ct.prototype=Bt,new ct}}();function xt(ct,Bt){var ge=Array.prototype.slice;if(ct.bind)return ct.bind.apply(ct,ge.call(arguments,1));var tr=ge.call(arguments,2);return function(){return ct.apply(Bt,tr.length?tr.concat(ge.call(arguments)):arguments)}}var Ct=0;function Ut(ct){return"_leaflet_id"in ct||(ct._leaflet_id=++Ct),ct._leaflet_id}function re(ct,Bt,ge){var tr,Or,Ln,Gi;return Gi=function(){tr=!1,Or&&(Ln.apply(ge,Or),Or=!1)},Ln=function(){tr?Or=arguments:(ct.apply(ge,arguments),setTimeout(Gi,Bt),tr=!0)},Ln}function ae(ct,Bt,ge){var tr=Bt[1],Or=Bt[0],Ln=tr-Or;return ct===tr&&ge?ct:((ct-Or)%Ln+Ln)%Ln+Or}function we(){return!1}function Xe(ct,Bt){if(Bt===!1)return ct;var ge=Math.pow(10,Bt===void 0?6:Bt);return Math.round(ct*ge)/ge}function fr(ct){return ct.trim?ct.trim():ct.replace(/^\s+|\s+$/g,"")}function Tr(ct){return fr(ct).split(/\s+/)}function mr(ct,Bt){Object.prototype.hasOwnProperty.call(ct,"options")||(ct.options=ct.options?dt(ct.options):{});for(var ge in Bt)ct.options[ge]=Bt[ge];return ct.options}function Sr(ct,Bt,ge){var tr=[];for(var Or in ct)tr.push(encodeURIComponent(ge?Or.toUpperCase():Or)+"="+encodeURIComponent(ct[Or]));return(!Bt||Bt.indexOf("?")===-1?"?":"&")+tr.join("&")}var Yr=/\{ *([\w_ -]+) *\}/g;function Rt(ct,Bt){return ct.replace(Yr,function(ge,tr){var Or=Bt[tr];if(Or===void 0)throw new Error("No value provided for variable "+ge);return typeof Or=="function"&&(Or=Or(Bt)),Or})}var ai=Array.isArray||function(ct){return Object.prototype.toString.call(ct)==="[object Array]"};function fn(ct,Bt){for(var ge=0;ge<ct.length;ge++)if(ct[ge]===Bt)return ge;return-1}var dn="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function _i(ct){return window["webkit"+ct]||window["moz"+ct]||window["ms"+ct]}var oi=0;function Kn(ct){var Bt=+new Date,ge=Math.max(0,16-(Bt-oi));return oi=Bt+ge,window.setTimeout(ct,ge)}var qr=window.requestAnimationFrame||_i("RequestAnimationFrame")||Kn,hi=window.cancelAnimationFrame||_i("CancelAnimationFrame")||_i("CancelRequestAnimationFrame")||function(ct){window.clearTimeout(ct)};function Hn(ct,Bt,ge){if(ge&&qr===Kn)ct.call(Bt);else return qr.call(window,xt(ct,Bt))}function si(ct){ct&&hi.call(window,ct)}var Yn={__proto__:null,extend:Y,create:dt,bind:xt,get lastId(){return Ct},stamp:Ut,throttle:re,wrapNum:ae,falseFn:we,formatNum:Xe,trim:fr,splitWords:Tr,setOptions:mr,getParamString:Sr,template:Rt,isArray:ai,indexOf:fn,emptyImageUrl:dn,requestFn:qr,cancelFn:hi,requestAnimFrame:Hn,cancelAnimFrame:si};function ti(){}ti.extend=function(ct){var Bt=function(){mr(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},ge=Bt.__super__=this.prototype,tr=dt(ge);tr.constructor=Bt,Bt.prototype=tr;for(var Or in this)Object.prototype.hasOwnProperty.call(this,Or)&&Or!=="prototype"&&Or!=="__super__"&&(Bt[Or]=this[Or]);return ct.statics&&Y(Bt,ct.statics),ct.includes&&(Pi(ct.includes),Y.apply(null,[tr].concat(ct.includes))),Y(tr,ct),delete tr.statics,delete tr.includes,tr.options&&(tr.options=ge.options?dt(ge.options):{},Y(tr.options,ct.options)),tr._initHooks=[],tr.callInitHooks=function(){if(!this._initHooksCalled){ge.callInitHooks&&ge.callInitHooks.call(this),this._initHooksCalled=!0;for(var Ln=0,Gi=tr._initHooks.length;Ln<Gi;Ln++)tr._initHooks[Ln].call(this)}},Bt},ti.include=function(ct){var Bt=this.prototype.options;return Y(this.prototype,ct),ct.options&&(this.prototype.options=Bt,this.mergeOptions(ct.options)),this},ti.mergeOptions=function(ct){return Y(this.prototype.options,ct),this},ti.addInitHook=function(ct){var Bt=Array.prototype.slice.call(arguments,1),ge=typeof ct=="function"?ct:function(){this[ct].apply(this,Bt)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(ge),this};function Pi(ct){if(!(typeof L>"u"||!L||!L.Mixin)){ct=ai(ct)?ct:[ct];for(var Bt=0;Bt<ct.length;Bt++)ct[Bt]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Dn={on:function(ct,Bt,ge){if(typeof ct=="object")for(var tr in ct)this._on(tr,ct[tr],Bt);else{ct=Tr(ct);for(var Or=0,Ln=ct.length;Or<Ln;Or++)this._on(ct[Or],Bt,ge)}return this},off:function(ct,Bt,ge){if(!arguments.length)delete this._events;else if(typeof ct=="object")for(var tr in ct)this._off(tr,ct[tr],Bt);else{ct=Tr(ct);for(var Or=arguments.length===1,Ln=0,Gi=ct.length;Ln<Gi;Ln++)Or?this._off(ct[Ln]):this._off(ct[Ln],Bt,ge)}return this},_on:function(ct,Bt,ge,tr){if(typeof Bt!="function"){console.warn("wrong listener type: "+typeof Bt);return}if(this._listens(ct,Bt,ge)===!1){ge===this&&(ge=void 0);var Or={fn:Bt,ctx:ge};tr&Line truncated
|
||||
<div style="
|
||||
width: ${oo}px;
|
||||
height: ${oo}px;
|
||||
width: ${ys}px;
|
||||
height: ${ys}px;
|
||||
background: rgba(170, 232, 232, 0.2);
|
||||
border: 2px solid #AAE8E8;
|
||||
border-radius: 50%;
|
||||
@@ -58,87 +58,87 @@ function CG(d,o){for(var C=0;C<o.length;C++){const B=o[C];if(typeof B!="string"&
|
||||
backdrop-filter: blur(10px);
|
||||
box-shadow: 0 4px 12px rgba(170, 232, 232, 0.3);
|
||||
color: #ffffff;
|
||||
font-size: ${oo<35?"11px":"13px"};
|
||||
font-size: ${ys<35?"11px":"13px"};
|
||||
font-weight: bold;
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
||||
">
|
||||
${qa}
|
||||
${Eo}
|
||||
</div>
|
||||
`,iconSize:[oo,oo],iconAnchor:[oo/2,oo/2]})},Li=jn("#ef4444",!0);Em.marker([Yn,li],{icon:Li}).addTo(Ct).bindPopup(`
|
||||
`,iconSize:[ys,ys],iconAnchor:[ys/2,ys/2]})},Pi=Yn("#ef4444",!0);Em.marker([Hn,si],{icon:Pi}).addTo(Ct).bindPopup(`
|
||||
<div class="p-2">
|
||||
<strong style="color: #ef4444;">Base Station</strong><br>
|
||||
<span class="text-sm" style="color: #9CA3AF;">Base Station</span><br>
|
||||
<span class="text-xs" style="color: #6B7280;">${Yn.toFixed(6)}, ${li.toFixed(6)}</span>
|
||||
<span class="text-xs" style="color: #6B7280;">${Hn.toFixed(6)}, ${si.toFixed(6)}</span>
|
||||
</div>
|
||||
`);const Ln={Unknown:"#9CA3AF","Chat Node":"#60A5FA",Repeater:"#A5E5B6","Room Server":"#EBA0FC","Hybrid Node":"#FFC246"},Kn=(qa,oo,Ua,Us,Po=0)=>{if(!Ct)return;const Za=qa.jittered_latitude||qa.latitude,Ca=qa.jittered_longitude||qa.longitude;if(Za===null||Ca===null)return;const ha=qa.route_type||0;let uo=Us,mo=3,Xo=.7,Fa;ha===2?(uo="#A5E5B6",mo=4,Xo=.9):ha===1?(uo="#FFC246",Fa="10, 5",Xo=.8):ha===3?(uo="#059669",mo=5,Xo=.95):ha===0?(uo="#ea580c",Fa="12, 6",Xo=.8):(uo="#9CA3AF",Fa="2, 5",Xo=.6);const Hr=[oo,Ua],Tn=[Za,Ca],hi=Em.polyline([Hr,Tn],{color:uo,weight:mo,opacity:0,dashArray:Fa,className:"connection-line"}).addTo(Ct),go=Em.polyline([Hr,Hr],{color:uo,weight:mo,opacity:0,dashArray:Fa,className:"connection-line animated-line"}).addTo(Ct);setTimeout(()=>{let Co=0;const Mo=30;go.setStyle({opacity:Xo+.2});const ps=()=>{Co++;const ys=Co/Mo,is=Hr[0]+(Tn[0]-Hr[0])*ys,Go=Hr[1]+(Tn[1]-Hr[1])*ys;go.setLatLngs([Hr,[is,Go]]),Co<Mo?setTimeout(ps,30):setTimeout(()=>{Ct&&go&&go.remove(),hi.setStyle({opacity:Xo}),hi.on("mouseover",()=>{hi.setStyle({weight:mo+2,opacity:Math.min(Xo+.3,1)})}),hi.on("mouseout",()=>{hi.setStyle({weight:mo,opacity:Xo})});const Pl=ti(oo,Ua,Za,Ca);hi.bindPopup(`
|
||||
`);const Dn={Unknown:"#9CA3AF","Chat Node":"#60A5FA",Repeater:"#A5E5B6","Room Server":"#EBA0FC","Hybrid Node":"#FFC246"},Wn=(Eo,ys,vo,Do,ra=0)=>{if(!Ct)return;const za=Eo.jittered_latitude||Eo.latitude,Ea=Eo.jittered_longitude||Eo.longitude;if(za===null||Ea===null)return;const ca=Eo.route_type||0;let so=Do,ho=3,Xo=.7,Ba;ca===2?(so="#A5E5B6",ho=4,Xo=.9):ca===1?(so="#FFC246",Ba="10, 5",Xo=.8):ca===3?(so="#059669",ho=5,Xo=.95):ca===0?(so="#ea580c",Ba="12, 6",Xo=.8):(so="#9CA3AF",Ba="2, 5",Xo=.6);const Hr=[ys,vo],Sn=[za,Ea],pi=Em.polyline([Hr,Sn],{color:so,weight:ho,opacity:0,dashArray:Ba,className:"connection-line"}).addTo(Ct),lo=Em.polyline([Hr,Hr],{color:so,weight:ho,opacity:0,dashArray:Ba,className:"connection-line animated-line"}).addTo(Ct);setTimeout(()=>{let wo=0;const Mo=30;lo.setStyle({opacity:Xo+.2});const ps=()=>{wo++;const xs=wo/Mo,is=Hr[0]+(Sn[0]-Hr[0])*xs,Go=Hr[1]+(Sn[1]-Hr[1])*xs;lo.setLatLngs([Hr,[is,Go]]),wo<Mo?setTimeout(ps,30):setTimeout(()=>{Ct&&lo&&lo.remove(),pi.setStyle({opacity:Xo}),pi.on("mouseover",()=>{pi.setStyle({weight:ho+2,opacity:Math.min(Xo+.3,1)})}),pi.on("mouseout",()=>{pi.setStyle({weight:ho,opacity:Xo})});const Pl=fn(ys,vo,za,Ea);pi.bindPopup(`
|
||||
<div class="p-2">
|
||||
<strong style="color: ${Us}">Connection to ${qa.node_name||"Unknown Node"}</strong><br>
|
||||
<strong style="color: ${Do}">Connection to ${Eo.node_name||"Unknown Node"}</strong><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Distance: ${Pl.toFixed(2)} km</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Route: ${on(qa.route_type)}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Signal: ${Yr(qa.rssi)} / ${zt(qa.snr)}</span>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Route: ${ai(Eo.route_type)}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Signal: ${Yr(Eo.rssi)} / ${Rt(Eo.snr)}</span>
|
||||
</div>
|
||||
`),we.value.push(hi)},200)};ps()},Po)},pa=()=>{if(!Ct||!re)return;const qa=Ct.getBounds(),oo=Math.floor(Ct.getZoom());ae.value.forEach(Us=>{Ct&&Us.remove()}),ae.value.clear(),we.value.forEach(Us=>{Ct&&Us.remove()}),we.value.length=0,re.getClusters([qa.getWest(),qa.getSouth(),qa.getEast(),qa.getNorth()],oo).forEach(Us=>{const[Po,Za]=Us.geometry.coordinates,Ca=Us.properties;if(Ca.cluster){const ha=Em.marker([Za,Po],{icon:$n(Ca.point_count||0)}).addTo(Ct);ha.on("click",()=>{if(Ct&&re){const Tn=re.getClusterExpansionZoom(Ca.cluster_id);Ct.setView([Za,Po],Tn)}});const mo=re.getLeaves(Ca.cluster_id,1/0).map(Tn=>`<div style="margin: 2px 0; color: ${Ln[Tn.properties.advert.contact_type]||Ln.Unknown};">
|
||||
• ${Tn.properties.advert.node_name||"Unknown Node"} (${Tn.properties.advert.contact_type})
|
||||
</div>`).join("");ha.bindPopup(`
|
||||
`),we.value.push(pi)},200)};ps()},ra)},ea=()=>{if(!Ct||!re)return;const Eo=Ct.getBounds(),ys=Math.floor(Ct.getZoom());ae.value.forEach(Do=>{Ct&&Do.remove()}),ae.value.clear(),we.value.forEach(Do=>{Ct&&Do.remove()}),we.value.length=0,re.getClusters([Eo.getWest(),Eo.getSouth(),Eo.getEast(),Eo.getNorth()],ys).forEach(Do=>{const[ra,za]=Do.geometry.coordinates,Ea=Do.properties;if(Ea.cluster){const ca=Em.marker([za,ra],{icon:ti(Ea.point_count||0)}).addTo(Ct);ca.on("click",()=>{if(Ct&&re){const Sn=re.getClusterExpansionZoom(Ea.cluster_id);Ct.setView([za,ra],Sn)}});const ho=re.getLeaves(Ea.cluster_id,1/0).map(Sn=>`<div style="margin: 2px 0; color: ${Dn[Sn.properties.advert.contact_type]||Dn.Unknown};">
|
||||
• ${Sn.properties.advert.node_name||"Unknown Node"} (${Sn.properties.advert.contact_type})
|
||||
</div>`).join("");ca.bindPopup(`
|
||||
<div class="p-2">
|
||||
<strong style="color: #AAE8E8;">Cluster: ${Ca.point_count} nodes</strong><br>
|
||||
<strong style="color: #AAE8E8;">Cluster: ${Ea.point_count} nodes</strong><br>
|
||||
<div style="max-height: 200px; overflow-y: auto; margin-top: 8px;">
|
||||
${mo}
|
||||
${ho}
|
||||
</div>
|
||||
<div style="margin-top: 8px; font-size: 11px; color: #ffffff99;">
|
||||
Click to zoom in and separate nodes
|
||||
</div>
|
||||
</div>
|
||||
`),ae.value.set(`cluster-${Ca.cluster_id}`,ha);const Xo=ti(Yn,li,Za,Po),Fa=Math.min(Math.floor(Xo*5),200),Hr={node_name:`Cluster of ${Ca.point_count} nodes`,contact_type:"Cluster",route_type:2,rssi:null,snr:null,jittered_latitude:Za,jittered_longitude:Po,latitude:Za,longitude:Po};Kn(Hr,Yn,li,"#AAE8E8",Fa)}else{const ha=Ca.advert,uo=Ln[ha.contact_type]||Ln.Unknown,mo=jn(uo),Xo=Za,Fa=Po,Hr=ti(Yn,li,Xo,Fa),Tn=Em.marker([Xo,Fa],{icon:mo}).addTo(Ct).bindPopup(`
|
||||
`),ae.value.set(`cluster-${Ea.cluster_id}`,ca);const Xo=fn(Hn,si,za,ra),Ba=Math.min(Math.floor(Xo*5),200),Hr={node_name:`Cluster of ${Ea.point_count} nodes`,contact_type:"Cluster",route_type:2,rssi:null,snr:null,jittered_latitude:za,jittered_longitude:ra,latitude:za,longitude:ra};Wn(Hr,Hn,si,"#AAE8E8",Ba)}else{const ca=Ea.advert,so=Dn[ca.contact_type]||Dn.Unknown,ho=Yn(so),Xo=za,Ba=ra,Hr=fn(Hn,si,Xo,Ba),Sn=Em.marker([Xo,Ba],{icon:ho}).addTo(Ct).bindPopup(`
|
||||
<div class="p-2">
|
||||
<strong style="color: ${uo}">${ha.node_name||"Unknown Node"}</strong><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Type: ${ha.contact_type}</span><br>
|
||||
<strong style="color: ${so}">${ca.node_name||"Unknown Node"}</strong><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Type: ${ca.contact_type}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Distance: ${Hr.toFixed(2)} km</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Signal: ${Yr(ha.rssi)} / ${zt(ha.snr)}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Route: ${on(ha.route_type)}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Last Seen: ${Sr(ha.last_seen)}</span>
|
||||
${ha.jittered_latitude?'<br><span class="text-xs" style="color: #9CA3AF;">Position adjusted to separate overlapping nodes</span>':""}
|
||||
<span class="text-sm" style="color: #E5E7EB;">Signal: ${Yr(ca.rssi)} / ${Rt(ca.snr)}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Route: ${ai(ca.route_type)}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Last Seen: ${Sr(ca.last_seen)}</span>
|
||||
${ca.jittered_latitude?'<br><span class="text-xs" style="color: #9CA3AF;">Position adjusted to separate overlapping nodes</span>':""}
|
||||
</div>
|
||||
`);Ut.value.set(ha.pubkey,Tn),ae.value.set(`node-${ha.pubkey}`,Tn);const hi=Math.min(Math.floor(Hr*5),200),go={...ha,jittered_latitude:Xo,jittered_longitude:Fa};Kn(go,Yn,li,uo,hi)}})},rl=(qa,oo)=>{let Ua=0;ei(B.adverts).forEach(Po=>{const Za=Po.properties.advert;if(Za.latitude!==null&&Za.longitude!==null){const Ca=Ln[Za.contact_type]||Ln.Unknown,ha=jn(Ca),uo=Za.jittered_latitude||Za.latitude,mo=Za.jittered_longitude||Za.longitude,Xo=Em.marker([uo,mo],{icon:ha}).addTo(Ct).bindPopup(`
|
||||
`);Ut.value.set(ca.pubkey,Sn),ae.value.set(`node-${ca.pubkey}`,Sn);const pi=Math.min(Math.floor(Hr*5),200),lo={...ca,jittered_latitude:Xo,jittered_longitude:Ba};Wn(lo,Hn,si,so,pi)}})},Ds=(Eo,ys)=>{let vo=0;_i(B.adverts).forEach(ra=>{const za=ra.properties.advert;if(za.latitude!==null&&za.longitude!==null){const Ea=Dn[za.contact_type]||Dn.Unknown,ca=Yn(Ea),so=za.jittered_latitude||za.latitude,ho=za.jittered_longitude||za.longitude,Xo=Em.marker([so,ho],{icon:ca}).addTo(Ct).bindPopup(`
|
||||
<div class="p-2">
|
||||
<strong style="color: ${Ca}">${Za.node_name||"Unknown Node"}</strong><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Type: ${Za.contact_type}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Distance: ${ti(qa,oo,uo,mo).toFixed(2)} km</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Signal: ${Yr(Za.rssi)} / ${zt(Za.snr)}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Route: ${on(Za.route_type)}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Last Seen: ${Sr(Za.last_seen)}</span>
|
||||
${Za.jittered_latitude?'<br><span class="text-xs" style="color: #9CA3AF;">Position adjusted to separate overlapping nodes</span>':""}
|
||||
<strong style="color: ${Ea}">${za.node_name||"Unknown Node"}</strong><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Type: ${za.contact_type}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Distance: ${fn(Eo,ys,so,ho).toFixed(2)} km</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Signal: ${Yr(za.rssi)} / ${Rt(za.snr)}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Route: ${ai(za.route_type)}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Last Seen: ${Sr(za.last_seen)}</span>
|
||||
${za.jittered_latitude?'<br><span class="text-xs" style="color: #9CA3AF;">Position adjusted to separate overlapping nodes</span>':""}
|
||||
</div>
|
||||
`);Ut.value.set(Za.pubkey,Xo);const Fa=Xo.getElement();Fa&&(Fa.style.opacity="0",Fa.style.transition="opacity 0.5s ease-out"),Kn(Za,qa,oo,Ca,Ua),setTimeout(()=>{Fa&&(Fa.style.opacity="1")},Ua+1e3),Ua+=100}})};if(Xe.value&&B.adverts.length>0)try{const qa=ei(B.adverts);Si(qa);const oo=Math.min(14,Ct.getZoom());Ct.setZoom(oo),setTimeout(()=>{try{pa()}catch(Ua){console.warn("Error updating clusters:",Ua),rl(Yn,li)}},100),Ct.on("moveend",()=>{try{pa()}catch(Ua){console.warn("Error updating clusters on move:",Ua)}}),Ct.on("zoomend",()=>{try{pa()}catch(Ua){console.warn("Error updating clusters on zoom:",Ua)}})}catch(qa){console.warn("Error initializing clustering:",qa),rl(Yn,li)}else rl(Yn,li);setTimeout(()=>{Ct&&Ct.invalidateSize()},1e3)}catch(jn){console.error("Error initializing map:",jn)}};return o({highlightNode:Yn=>{const li=Ut.value.get(Yn);if(li){const jn=li.getElement();if(jn){const $n=jn.querySelector("div");$n&&$n.classList.add("marker-highlight")}}},unhighlightNode:Yn=>{const li=Ut.value.get(Yn);if(li){const jn=li.getElement();if(jn){const $n=jn.querySelector("div");$n&&$n.classList.remove("marker-highlight")}}},initializeOpenStreetMap:ji}),Pm(()=>B.adverts,()=>{Ct&&mr.value&&setTimeout(()=>{ji()},100)},{immediate:!1}),Vd(()=>{mr.value&&B.adverts.length>0&&setTimeout(()=>{ji()},300)}),Fy(()=>{Gn()}),(Yn,li)=>(yn(),Cn("div",$st,[mr.value?(yn(),Cn("div",{key:1,ref_key:"mapContainer",ref:xt,class:"leaflet-map-container h-96 w-full bg-dark-card/30 backdrop-blur border border-white/10 rounded-[15px] overflow-hidden",style:{"min-height":"384px",position:"relative"}},null,512)):(yn(),Cn("div",qst,li[0]||(li[0]=[Ch('<div class="text-center text-white" data-v-9c7dd490><svg class="w-8 h-8 mx-auto mb-2 text-white/60" fill="currentColor" viewBox="0 0 20 20" data-v-9c7dd490><path 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" data-v-9c7dd490></path></svg><p class="text-sm text-white/90" data-v-9c7dd490>No valid coordinates available</p><p class="text-xs text-white/60" data-v-9c7dd490>Configure base station location to view map</p></div>',1)]))),mr.value&&Yn.adverts.length>0?(yn(),Cn("button",{key:2,onClick:dt,class:"absolute bottom-3 right-3 z-[1001] flex items-center gap-2 px-3 py-2 bg-black/40 border border-white/10 rounded-lg text-white/80 hover:bg-white/10 hover:text-white transition-colors text-sm backdrop-blur-sm"},[li[1]||(li[1]=jt("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[jt("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",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"})],-1)),jt("span",Zst,On(Yn.showLegend?"Hide":"Show"),1)])):lo("",!0),mr.value&&Yn.adverts.length>0&&Yn.showLegend?(yn(),Cn("div",Gst,[li[2]||(li[2]=Ch('<div class="legend-section" data-v-9c7dd490><div class="legend-subtitle" data-v-9c7dd490>Node Types</div><div class="legend-items" data-v-9c7dd490><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#ef4444;" data-v-9c7dd490></div><span data-v-9c7dd490>Base Station</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#60A5FA;" data-v-9c7dd490></div><span data-v-9c7dd490>Chat Node</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#A5E5B6;" data-v-9c7dd490></div><span data-v-9c7dd490>Repeater</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#EBA0FC;" data-v-9c7dd490></div><span data-v-9c7dd490>Room Server</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#FFC246;" data-v-9c7dd490></div><span data-v-9c7dd490>Hybrid Node</span></div></div></div><div class="legend-section" data-v-9c7dd490><div class="legend-subtitle" data-v-9c7dd490>Route Types</div><div class="legend-items" data-v-9c7dd490><div class="legend-item" data-v-9c7dd490><div class="legend-line" style="background:#A5E5B6;height:3px;" data-v-9c7dd490></div><span data-v-9c7dd490>Direct</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-line" style="background:#059669;height:4px;" data-v-9c7dd490></div><span data-v-9c7dd490>Transport Direct</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-line legend-line-dashed" style="background:#FFC246;" data-v-9c7dd490></div><span data-v-9c7dd490>Flood</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-line legend-line-dashed" style="background:#ea580c;" data-v-9c7dd490></div><span data-v-9c7dd490>Transport Flood</span></div></div></div>',2)),jt("div",Yst,On(Yn.adverts.length)+" node"+On(Yn.adverts.length!==1?"s":"")+" visible ",1)])):lo("",!0),mr.value?(yn(),Cn("div",Kst," © OpenStreetMap contributors © CARTO ")):lo("",!0)]))}}),Jst=Bf(Xst,[["__scopeId","data-v-9c7dd490"]]),Qst={class:"relative","da
Line truncated
|
||||
`);Ut.value.set(za.pubkey,Xo);const Ba=Xo.getElement();Ba&&(Ba.style.opacity="0",Ba.style.transition="opacity 0.5s ease-out"),Wn(za,Eo,ys,Ea,vo),setTimeout(()=>{Ba&&(Ba.style.opacity="1")},vo+1e3),vo+=100}})};if(Xe.value&&B.adverts.length>0)try{const Eo=_i(B.adverts);oi(Eo);const ys=Math.min(14,Ct.getZoom());Ct.setZoom(ys),setTimeout(()=>{try{ea()}catch(vo){console.warn("Error updating clusters:",vo),Ds(Hn,si)}},100),Ct.on("moveend",()=>{try{ea()}catch(vo){console.warn("Error updating clusters on move:",vo)}}),Ct.on("zoomend",()=>{try{ea()}catch(vo){console.warn("Error updating clusters on zoom:",vo)}})}catch(Eo){console.warn("Error initializing clustering:",Eo),Ds(Hn,si)}else Ds(Hn,si);setTimeout(()=>{Ct&&Ct.invalidateSize()},1e3)}catch(Yn){console.error("Error initializing map:",Yn)}};return o({highlightNode:Hn=>{const si=Ut.value.get(Hn);if(si){const Yn=si.getElement();if(Yn){const ti=Yn.querySelector("div");ti&&ti.classList.add("marker-highlight")}}},unhighlightNode:Hn=>{const si=Ut.value.get(Hn);if(si){const Yn=si.getElement();if(Yn){const ti=Yn.querySelector("div");ti&&ti.classList.remove("marker-highlight")}}},initializeOpenStreetMap:Kn}),Pm(()=>B.adverts,()=>{Ct&&mr.value&&setTimeout(()=>{Kn()},100)},{immediate:!1}),Vd(()=>{mr.value&&B.adverts.length>0&&setTimeout(()=>{Kn()},300)}),Fy(()=>{dn()}),(Hn,si)=>(yn(),An("div",flt,[mr.value?(yn(),An("div",{key:1,ref_key:"mapContainer",ref:xt,class:"leaflet-map-container h-96 w-full bg-dark-card/30 backdrop-blur border border-white/10 rounded-[15px] overflow-hidden",style:{"min-height":"384px",position:"relative"}},null,512)):(yn(),An("div",dlt,si[0]||(si[0]=[Ch('<div class="text-center text-white" data-v-9c7dd490><svg class="w-8 h-8 mx-auto mb-2 text-white/60" fill="currentColor" viewBox="0 0 20 20" data-v-9c7dd490><path 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" data-v-9c7dd490></path></svg><p class="text-sm text-white/90" data-v-9c7dd490>No valid coordinates available</p><p class="text-xs text-white/60" data-v-9c7dd490>Configure base station location to view map</p></div>',1)]))),mr.value&&Hn.adverts.length>0?(yn(),An("button",{key:2,onClick:dt,class:"absolute bottom-3 right-3 z-[1001] flex items-center gap-2 px-3 py-2 bg-black/40 border border-white/10 rounded-lg text-white/80 hover:bg-white/10 hover:text-white transition-colors text-sm backdrop-blur-sm"},[si[1]||(si[1]=Nt("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[Nt("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",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"})],-1)),Nt("span",plt,Pn(Hn.showLegend?"Hide":"Show"),1)])):ro("",!0),mr.value&&Hn.adverts.length>0&&Hn.showLegend?(yn(),An("div",mlt,[si[2]||(si[2]=Ch('<div class="legend-section" data-v-9c7dd490><div class="legend-subtitle" data-v-9c7dd490>Node Types</div><div class="legend-items" data-v-9c7dd490><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#ef4444;" data-v-9c7dd490></div><span data-v-9c7dd490>Base Station</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#60A5FA;" data-v-9c7dd490></div><span data-v-9c7dd490>Chat Node</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#A5E5B6;" data-v-9c7dd490></div><span data-v-9c7dd490>Repeater</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#EBA0FC;" data-v-9c7dd490></div><span data-v-9c7dd490>Room Server</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#FFC246;" data-v-9c7dd490></div><span data-v-9c7dd490>Hybrid Node</span></div></div></div><div class="legend-section" data-v-9c7dd490><div class="legend-subtitle" data-v-9c7dd490>Route Types</div><div class="legend-items" data-v-9c7dd490><div class="legend-item" data-v-9c7dd490><div class="legend-line" style="background:#A5E5B6;height:3px;" data-v-9c7dd490></div><span data-v-9c7dd490>Direct</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-line" style="background:#059669;height:4px;" data-v-9c7dd490></div><span data-v-9c7dd490>Transport Direct</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-line legend-line-dashed" style="background:#FFC246;" data-v-9c7dd490></div><span data-v-9c7dd490>Flood</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-line legend-line-dashed" style="background:#ea580c;" data-v-9c7dd490></div><span data-v-9c7dd490>Transport Flood</span></div></div></div>',2)),Nt("div",glt,Pn(Hn.adverts.length)+" node"+Pn(Hn.adverts.length!==1?"s":"")+" visible ",1)])):ro("",!0),mr.value?(yn(),An("div",vlt," © OpenStreetMap contributors © CARTO ")):ro("",!0)]))}}),xlt=Bf(ylt,[["__scopeId","data-v-9c7dd490"]]),_lt={class:"relative","da
Line truncated
|
||||
* @kurkle/color v0.3.4
|
||||
* https://github.com/kurkle/color#readme
|
||||
* (c) 2024 Jukka Kurkela
|
||||
* Released under the MIT License
|
||||
*/function hw(d){return d+.5|0}const p1=(d,o,C)=>Math.max(Math.min(d,C),o);function b2(d){return p1(hw(d*2.55),0,255)}function _1(d){return p1(hw(d*255),0,255)}function ev(d){return p1(hw(d/2.55)/100,0,1)}function cP(d){return p1(hw(d*100),0,100)}const um={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},zA=[..."0123456789ABCDEF"],vut=d=>zA[d&15],yut=d=>zA[(d&240)>>4]+zA[d&15],B5=d=>(d&240)>>4===(d&15),xut=d=>B5(d.r)&&B5(d.g)&&B5(d.b)&&B5(d.a);function _ut(d){var o=d.length,C;return d[0]==="#"&&(o===4||o===5?C={r:255&um[d[1]]*17,g:255&um[d[2]]*17,b:255&um[d[3]]*17,a:o===5?um[d[4]]*17:255}:(o===7||o===9)&&(C={r:um[d[1]]<<4|um[d[2]],g:um[d[3]]<<4|um[d[4]],b:um[d[5]]<<4|um[d[6]],a:o===9?um[d[7]]<<4|um[d[8]]:255})),C}const but=(d,o)=>d<255?o(d):"";function wut(d){var o=xut(d)?vut:yut;return d?"#"+o(d.r)+o(d.g)+o(d.b)+but(d.a,o):void 0}const kut=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function oD(d,o,C){const B=o*Math.min(C,1-C),Y=(dt,xt=(dt+d/30)%12)=>C-B*Math.max(Math.min(xt-3,9-xt,1),-1);return[Y(0),Y(8),Y(4)]}function Tut(d,o,C){const B=(Y,dt=(Y+d/60)%6)=>C-C*o*Math.max(Math.min(dt,4-dt,1),0);return[B(5),B(3),B(1)]}function Aut(d,o,C){const B=oD(d,1,.5);let Y;for(o+C>1&&(Y=1/(o+C),o*=Y,C*=Y),Y=0;Y<3;Y++)B[Y]*=1-o-C,B[Y]+=o;return B}function Mut(d,o,C,B,Y){return d===Y?(o-C)/B+(o<C?6:0):o===Y?(C-d)/B+2:(d-o)/B+4}function y7(d){const C=d.r/255,B=d.g/255,Y=d.b/255,dt=Math.max(C,B,Y),xt=Math.min(C,B,Y),Ct=(dt+xt)/2;let Ut,re,ae;return dt!==xt&&(ae=dt-xt,re=Ct>.5?ae/(2-dt-xt):ae/(dt+xt),Ut=Mut(C,B,Y,ae,dt),Ut=Ut*60+.5),[Ut|0,re||0,Ct]}function x7(d,o,C,B){return(Array.isArray(o)?d(o[0],o[1],o[2]):d(o,C,B)).map(_1)}function _7(d,o,C){return x7(oD,d,o,C)}function Sut(d,o,C){return x7(Aut,d,o,C)}function Cut(d,o,C){return x7(Tut,d,o,C)}function sD(d){return(d%360+360)%360}function Eut(d){const o=kut.exec(d);let C=255,B;if(!o)return;o[5]!==B&&(C=o[6]?b2(+o[5]):_1(+o[5]));const Y=sD(+o[2]),dt=+o[3]/100,xt=+o[4]/100;return o[1]==="hwb"?B=Sut(Y,dt,xt):o[1]==="hsv"?B=Cut(Y,dt,xt):B=_7(Y,dt,xt),{r:B[0],g:B[1],b:B[2],a:C}}function Lut(d,o){var C=y7(d);C[0]=sD(C[0]+o),C=_7(C),d.r=C[0],d.g=C[1],d.b=C[2]}function Put(d){if(!d)return;const o=y7(d),C=o[0],B=cP(o[1]),Y=cP(o[2]);return d.a<255?`hsla(${C}, ${B}%, ${Y}%, ${ev(d.a)})`:`hsl(${C}, ${B}%, ${Y}%)`}const hP={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"},fP={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"};function zut(){const d={},o=Object.keys(fP),C=Object.keys(hP);let BLine truncated
|
||||
*/function hw(d){return d+.5|0}const p1=(d,o,C)=>Math.max(Math.min(d,C),o);function b2(d){return p1(hw(d*2.55),0,255)}function _1(d){return p1(hw(d*255),0,255)}function ev(d){return p1(hw(d/2.55)/100,0,1)}function cP(d){return p1(hw(d*100),0,100)}const um={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},zA=[..."0123456789ABCDEF"],But=d=>zA[d&15],Nut=d=>zA[(d&240)>>4]+zA[d&15],B5=d=>(d&240)>>4===(d&15),jut=d=>B5(d.r)&&B5(d.g)&&B5(d.b)&&B5(d.a);function Uut(d){var o=d.length,C;return d[0]==="#"&&(o===4||o===5?C={r:255&um[d[1]]*17,g:255&um[d[2]]*17,b:255&um[d[3]]*17,a:o===5?um[d[4]]*17:255}:(o===7||o===9)&&(C={r:um[d[1]]<<4|um[d[2]],g:um[d[3]]<<4|um[d[4]],b:um[d[5]]<<4|um[d[6]],a:o===9?um[d[7]]<<4|um[d[8]]:255})),C}const Vut=(d,o)=>d<255?o(d):"";function Hut(d){var o=jut(d)?But:Nut;return d?"#"+o(d.r)+o(d.g)+o(d.b)+Vut(d.a,o):void 0}const Wut=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function oD(d,o,C){const B=o*Math.min(C,1-C),Y=(dt,xt=(dt+d/30)%12)=>C-B*Math.max(Math.min(xt-3,9-xt,1),-1);return[Y(0),Y(8),Y(4)]}function $ut(d,o,C){const B=(Y,dt=(Y+d/60)%6)=>C-C*o*Math.max(Math.min(dt,4-dt,1),0);return[B(5),B(3),B(1)]}function qut(d,o,C){const B=oD(d,1,.5);let Y;for(o+C>1&&(Y=1/(o+C),o*=Y,C*=Y),Y=0;Y<3;Y++)B[Y]*=1-o-C,B[Y]+=o;return B}function Zut(d,o,C,B,Y){return d===Y?(o-C)/B+(o<C?6:0):o===Y?(C-d)/B+2:(d-o)/B+4}function y7(d){const C=d.r/255,B=d.g/255,Y=d.b/255,dt=Math.max(C,B,Y),xt=Math.min(C,B,Y),Ct=(dt+xt)/2;let Ut,re,ae;return dt!==xt&&(ae=dt-xt,re=Ct>.5?ae/(2-dt-xt):ae/(dt+xt),Ut=Zut(C,B,Y,ae,dt),Ut=Ut*60+.5),[Ut|0,re||0,Ct]}function x7(d,o,C,B){return(Array.isArray(o)?d(o[0],o[1],o[2]):d(o,C,B)).map(_1)}function _7(d,o,C){return x7(oD,d,o,C)}function Gut(d,o,C){return x7(qut,d,o,C)}function Yut(d,o,C){return x7($ut,d,o,C)}function sD(d){return(d%360+360)%360}function Kut(d){const o=Wut.exec(d);let C=255,B;if(!o)return;o[5]!==B&&(C=o[6]?b2(+o[5]):_1(+o[5]));const Y=sD(+o[2]),dt=+o[3]/100,xt=+o[4]/100;return o[1]==="hwb"?B=Gut(Y,dt,xt):o[1]==="hsv"?B=Yut(Y,dt,xt):B=_7(Y,dt,xt),{r:B[0],g:B[1],b:B[2],a:C}}function Xut(d,o){var C=y7(d);C[0]=sD(C[0]+o),C=_7(C),d.r=C[0],d.g=C[1],d.b=C[2]}function Jut(d){if(!d)return;const o=y7(d),C=o[0],B=cP(o[1]),Y=cP(o[2]);return d.a<255?`hsla(${C}, ${B}%, ${Y}%, ${ev(d.a)})`:`hsl(${C}, ${B}%, ${Y}%)`}const hP={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"},fP={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"};function Qut(){const d={},o=Object.keys(fP),C=Object.keys(hP);let BLine truncated
|
||||
* Chart.js v4.5.1
|
||||
* https://www.chartjs.org
|
||||
* (c) 2025 Chart.js Contributors
|
||||
* Released under the MIT License
|
||||
*/function Xg(){}const Nut=(()=>{let d=0;return()=>d++})();function Uh(d){return d==null}function Xd(d){if(Array.isArray&&Array.isArray(d))return!0;const o=Object.prototype.toString.call(d);return o.slice(0,7)==="[object"&&o.slice(-6)==="Array]"}function Pc(d){return d!==null&&Object.prototype.toString.call(d)==="[object Object]"}function r0(d){return(typeof d=="number"||d instanceof Number)&&isFinite(+d)}function sg(d,o){return r0(d)?d:o}function fc(d,o){return typeof d>"u"?o:d}const jut=(d,o)=>typeof d=="string"&&d.endsWith("%")?parseFloat(d)/100:+d/o,uD=(d,o)=>typeof d=="string"&&d.endsWith("%")?parseFloat(d)/100*o:+d;function Rf(d,o,C){if(d&&typeof d.call=="function")return d.apply(C,o)}function tf(d,o,C,B){let Y,dt,xt;if(Xd(d))for(dt=d.length,Y=0;Y<dt;Y++)o.call(C,d[Y],Y);else if(Pc(d))for(xt=Object.keys(d),dt=xt.length,Y=0;Y<dt;Y++)o.call(C,d[xt[Y]],xt[Y])}function k4(d,o){let C,B,Y,dt;if(!d||!o||d.length!==o.length)return!1;for(C=0,B=d.length;C<B;++C)if(Y=d[C],dt=o[C],Y.datasetIndex!==dt.datasetIndex||Y.index!==dt.index)return!1;return!0}function T4(d){if(Xd(d))return d.map(T4);if(Pc(d)){const o=Object.create(null),C=Object.keys(d),B=C.length;let Y=0;for(;Y<B;++Y)o[C[Y]]=T4(d[C[Y]]);return o}return d}function cD(d){return["__proto__","prototype","constructor"].indexOf(d)===-1}function Uut(d,o,C,B){if(!cD(d))return;const Y=o[d],dt=C[d];Pc(Y)&&Pc(dt)?Y2(Y,dt,B):o[d]=T4(dt)}function Y2(d,o,C){const B=Xd(o)?o:[o],Y=B.length;if(!Pc(d))return d;C=C||{};const dt=C.merger||Uut;let xt;for(let Ct=0;Ct<Y;++Ct){if(xt=B[Ct],!Pc(xt))continue;const Ut=Object.keys(xt);for(let re=0,ae=Ut.length;re<ae;++re)dt(Ut[re],d,xt,C)}return d}function I2(d,o){return Y2(d,o,{merger:Vut})}function Vut(d,o,C){if(!cD(d))return;const B=o[d],Y=C[d];Pc(B)&&Pc(Y)?I2(B,Y):Object.prototype.hasOwnProperty.call(o,d)||(o[d]=T4(Y))}const pP={"":d=>d,x:d=>d.x,y:d=>d.y};function Hut(d){const o=d.split("."),C=[];let B="";for(const Y of o)B+=Y,B.endsWith("\\")?B=B.slice(0,-1)+".":(C.push(B),B="");return C}function Wut(d){const o=Hut(d);return C=>{for(const B of o){if(B==="")break;C=C&&C[B]}return C}}function Oy(d,o){return(pP[o]||(pP[o]=Wut(o)))(d)}function b7(d){return d.charAt(0).toUpperCase()+d.slice(1)}const K2=d=>typeof d<"u",k1=d=>typeof d=="function",mP=(d,o)=>{if(d.size!==o.size)return!1;for(const C of d)if(!o.has(C))return!1;return!0};function $ut(d){return d.type==="mouseup"||d.type==="click"||d.type==="contextmenu"}const ef=Math.PI,ld=2*ef,qut=ld+ef,A4=Number.POSITIVE_INFINITY,Zut=ef/180,sp=ef/2,my=ef/4,gP=ef*2/3,hD=Math.log10,vg=Math.sign;function O2(d,o,C){return Math.abs(d-o)<C}function vP(d){const o=Math.round(d);d=O2(d,o,d/1e3)?o:d;const C=Math.pow(10,Math.floor(hD(d))),B=d/C;return(B<=1?1:B<=2?2:B<=5?5:10)*C}function Gut(d){const o=[],C=Math.sqrt(d);let B;for(B=1;B<C;B++)d%B===0&&(o.push(B),o.push(d/B));return C===(C|0)&&o.push(C),o.sort((Y,dt)=>Y-dt).pop(),o}function Yut(d){return typeof d=="symbol"||typeof d=="object"&&d!==null&&!(Symbol.toPrimitive in d||"toString"in d||"valueOf"in d)}function X2(d){return!Yut(d)&&!isNaN(parseFloat(d))&&isFinite(d)}function Kut(d,o){const C=Math.round(d);return C-o<=d&&C+o>=d}function Xut(d,o,C){let B,Y,dt;for(B=0,Y=d.length;B<Y;B++)dt=d[B][C],isNaN(dt)||(o.min=Math.min(o.min,dt),o.max=Math.max(o.max,dt))}function av(d){return d*(ef/180)}function Jut(d){return d*(180/ef)}function yP(d){if(!r0(d))return;let o=1,C=0;for(;Math.round(d*o)/o!==d;)o*=10,C++;return C}function fD(d,o){const C=o.x-d.x,B=o.y-d.y,Y=Math.sqrt(C*C+B*B);let dt=Math.atan2(B,C);return dt<-.5*ef&&(dt+=ld),{angle:dt,distance:Y}}function IA(d,o){return Math.sqrt(Math.pow(o.x-d.x,2)+Math.pow(o.y-d.y,2))}function Qut(d,o){return(d-o+qut)%ld-ef}function Y0(d){return(d%ld+ld)%ld}function J2(d,o,C,B){const Y=Y0(d),dt=Y0(o),xt=Y0(C),Ct=Y0(dt-Y),Ut=Y0(xt-Y),re=Y0(Y-dt),ae=Y0(Y-xt);return Y===dt||Y===xt||B&&dt===xt||Ct>Ut&&re<ae}function t0(d,o,C){return Math.max(o,Math.min(C,d))}function tct(d){return t0(d,-32768,32767)}function ov(d,o,C,B=1e-6){return d>=Math.min(o,C)-B&&d<=Math.max(o,C)+B}function w7(d,o,C){C=C||(xt=>d[xt]<o);let B=d.length-1,Y=0,dt;for(;B-Y>1;)dt=Y+B>>1,C(dt)?Y=dt:B=dt;return{lo:Y,hi:B}}const My=(d,o,C,B)=>w7(d,C,B?Y=>{const dt=d[Y][o];return dt<C||dt===C&&d[Y+1][o]===C}:Y=>d[Y][o]<C),ect=(d,o,C)=>w7(d,C,B=>d[B][o]>=C);function rct(d,o,C){let B=0,Y=d.length;for(;B<Y&&d[B]<o;)B++;for(;Y>B&&d[Y-1]>C;)Y--;return B>0||Y<d.length?d.slice(B,Y):d}const dD=["push","pop","shift","splice","unshift"];function nct(d,o){if(d._chartjs){d._chartjs.listeners.push(o);return}Object.defineProperty(d,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),dD.forEach(C=>{const B="_onData"+b7(C),Y=d[C];Object.defineProperty(d,C,{configurable:!0,enumerable:!1,value(...dt){const xt=Y.apply(this,dt);return d._chartjs.listeners.forEach(Ct=>{typeof Ct[B]=="function"&&Ct[B](...dt)}),xt}})})}function xP(d,o){const C=d._chartjs;if(!C)return;const B=C.listeners,Y=B.indexOf(o);Y!==-1&&B.splice(Y,1),!(B.length>0)&&(dD.forEach(dt=>{deleLine truncated
|
||||
*/function Xg(){}const oct=(()=>{let d=0;return()=>d++})();function Uh(d){return d==null}function Xd(d){if(Array.isArray&&Array.isArray(d))return!0;const o=Object.prototype.toString.call(d);return o.slice(0,7)==="[object"&&o.slice(-6)==="Array]"}function Pc(d){return d!==null&&Object.prototype.toString.call(d)==="[object Object]"}function r0(d){return(typeof d=="number"||d instanceof Number)&&isFinite(+d)}function sg(d,o){return r0(d)?d:o}function fc(d,o){return typeof d>"u"?o:d}const sct=(d,o)=>typeof d=="string"&&d.endsWith("%")?parseFloat(d)/100:+d/o,uD=(d,o)=>typeof d=="string"&&d.endsWith("%")?parseFloat(d)/100*o:+d;function Rf(d,o,C){if(d&&typeof d.call=="function")return d.apply(C,o)}function tf(d,o,C,B){let Y,dt,xt;if(Xd(d))for(dt=d.length,Y=0;Y<dt;Y++)o.call(C,d[Y],Y);else if(Pc(d))for(xt=Object.keys(d),dt=xt.length,Y=0;Y<dt;Y++)o.call(C,d[xt[Y]],xt[Y])}function k4(d,o){let C,B,Y,dt;if(!d||!o||d.length!==o.length)return!1;for(C=0,B=d.length;C<B;++C)if(Y=d[C],dt=o[C],Y.datasetIndex!==dt.datasetIndex||Y.index!==dt.index)return!1;return!0}function T4(d){if(Xd(d))return d.map(T4);if(Pc(d)){const o=Object.create(null),C=Object.keys(d),B=C.length;let Y=0;for(;Y<B;++Y)o[C[Y]]=T4(d[C[Y]]);return o}return d}function cD(d){return["__proto__","prototype","constructor"].indexOf(d)===-1}function lct(d,o,C,B){if(!cD(d))return;const Y=o[d],dt=C[d];Pc(Y)&&Pc(dt)?Y2(Y,dt,B):o[d]=T4(dt)}function Y2(d,o,C){const B=Xd(o)?o:[o],Y=B.length;if(!Pc(d))return d;C=C||{};const dt=C.merger||lct;let xt;for(let Ct=0;Ct<Y;++Ct){if(xt=B[Ct],!Pc(xt))continue;const Ut=Object.keys(xt);for(let re=0,ae=Ut.length;re<ae;++re)dt(Ut[re],d,xt,C)}return d}function I2(d,o){return Y2(d,o,{merger:uct})}function uct(d,o,C){if(!cD(d))return;const B=o[d],Y=C[d];Pc(B)&&Pc(Y)?I2(B,Y):Object.prototype.hasOwnProperty.call(o,d)||(o[d]=T4(Y))}const pP={"":d=>d,x:d=>d.x,y:d=>d.y};function cct(d){const o=d.split("."),C=[];let B="";for(const Y of o)B+=Y,B.endsWith("\\")?B=B.slice(0,-1)+".":(C.push(B),B="");return C}function hct(d){const o=cct(d);return C=>{for(const B of o){if(B==="")break;C=C&&C[B]}return C}}function Oy(d,o){return(pP[o]||(pP[o]=hct(o)))(d)}function b7(d){return d.charAt(0).toUpperCase()+d.slice(1)}const K2=d=>typeof d<"u",k1=d=>typeof d=="function",mP=(d,o)=>{if(d.size!==o.size)return!1;for(const C of d)if(!o.has(C))return!1;return!0};function fct(d){return d.type==="mouseup"||d.type==="click"||d.type==="contextmenu"}const ef=Math.PI,ld=2*ef,dct=ld+ef,A4=Number.POSITIVE_INFINITY,pct=ef/180,sp=ef/2,my=ef/4,gP=ef*2/3,hD=Math.log10,vg=Math.sign;function O2(d,o,C){return Math.abs(d-o)<C}function vP(d){const o=Math.round(d);d=O2(d,o,d/1e3)?o:d;const C=Math.pow(10,Math.floor(hD(d))),B=d/C;return(B<=1?1:B<=2?2:B<=5?5:10)*C}function mct(d){const o=[],C=Math.sqrt(d);let B;for(B=1;B<C;B++)d%B===0&&(o.push(B),o.push(d/B));return C===(C|0)&&o.push(C),o.sort((Y,dt)=>Y-dt).pop(),o}function gct(d){return typeof d=="symbol"||typeof d=="object"&&d!==null&&!(Symbol.toPrimitive in d||"toString"in d||"valueOf"in d)}function X2(d){return!gct(d)&&!isNaN(parseFloat(d))&&isFinite(d)}function vct(d,o){const C=Math.round(d);return C-o<=d&&C+o>=d}function yct(d,o,C){let B,Y,dt;for(B=0,Y=d.length;B<Y;B++)dt=d[B][C],isNaN(dt)||(o.min=Math.min(o.min,dt),o.max=Math.max(o.max,dt))}function av(d){return d*(ef/180)}function xct(d){return d*(180/ef)}function yP(d){if(!r0(d))return;let o=1,C=0;for(;Math.round(d*o)/o!==d;)o*=10,C++;return C}function fD(d,o){const C=o.x-d.x,B=o.y-d.y,Y=Math.sqrt(C*C+B*B);let dt=Math.atan2(B,C);return dt<-.5*ef&&(dt+=ld),{angle:dt,distance:Y}}function IA(d,o){return Math.sqrt(Math.pow(o.x-d.x,2)+Math.pow(o.y-d.y,2))}function _ct(d,o){return(d-o+dct)%ld-ef}function K0(d){return(d%ld+ld)%ld}function J2(d,o,C,B){const Y=K0(d),dt=K0(o),xt=K0(C),Ct=K0(dt-Y),Ut=K0(xt-Y),re=K0(Y-dt),ae=K0(Y-xt);return Y===dt||Y===xt||B&&dt===xt||Ct>Ut&&re<ae}function t0(d,o,C){return Math.max(o,Math.min(C,d))}function bct(d){return t0(d,-32768,32767)}function ov(d,o,C,B=1e-6){return d>=Math.min(o,C)-B&&d<=Math.max(o,C)+B}function w7(d,o,C){C=C||(xt=>d[xt]<o);let B=d.length-1,Y=0,dt;for(;B-Y>1;)dt=Y+B>>1,C(dt)?Y=dt:B=dt;return{lo:Y,hi:B}}const My=(d,o,C,B)=>w7(d,C,B?Y=>{const dt=d[Y][o];return dt<C||dt===C&&d[Y+1][o]===C}:Y=>d[Y][o]<C),wct=(d,o,C)=>w7(d,C,B=>d[B][o]>=C);function kct(d,o,C){let B=0,Y=d.length;for(;B<Y&&d[B]<o;)B++;for(;Y>B&&d[Y-1]>C;)Y--;return B>0||Y<d.length?d.slice(B,Y):d}const dD=["push","pop","shift","splice","unshift"];function Tct(d,o){if(d._chartjs){d._chartjs.listeners.push(o);return}Object.defineProperty(d,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),dD.forEach(C=>{const B="_onData"+b7(C),Y=d[C];Object.defineProperty(d,C,{configurable:!0,enumerable:!1,value(...dt){const xt=Y.apply(this,dt);return d._chartjs.listeners.forEach(Ct=>{typeof Ct[B]=="function"&&Ct[B](...dt)}),xt}})})}function xP(d,o){const C=d._chartjs;if(!C)return;const B=C.listeners,Y=B.indexOf(o);Y!==-1&&B.splice(Y,1),!(B.length>0)&&(dD.forEach(dt=>{deleLine truncated
|
||||
* Chart.js v4.5.1
|
||||
* https://www.chartjs.org
|
||||
* (c) 2025 Chart.js Contributors
|
||||
* Released under the MIT License
|
||||
*/class lht{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(o,C,B,Y){const dt=C.listeners[Y],xt=C.duration;dt.forEach(Ct=>Ct({chart:o,initial:C.initial,numSteps:xt,currentStep:Math.min(B-C.start,xt)}))}_refresh(){this._request||(this._running=!0,this._request=mD.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(o=Date.now()){let C=0;this._charts.forEach((B,Y)=>{if(!B.running||!B.items.length)return;const dt=B.items;let xt=dt.length-1,Ct=!1,Ut;for(;xt>=0;--xt)Ut=dt[xt],Ut._active?(Ut._total>B.duration&&(B.duration=Ut._total),Ut.tick(o),Ct=!0):(dt[xt]=dt[dt.length-1],dt.pop());Ct&&(Y.draw(),this._notify(Y,B,o,"progress")),dt.length||(B.running=!1,this._notify(Y,B,o,"complete"),B.initial=!1),C+=dt.length}),this._lastDate=o,C===0&&(this._running=!1)}_getAnims(o){const C=this._charts;let B=C.get(o);return B||(B={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},C.set(o,B)),B}listen(o,C,B){this._getAnims(o).listeners[C].push(B)}add(o,C){!C||!C.length||this._getAnims(o).items.push(...C)}has(o){return this._getAnims(o).items.length>0}start(o){const C=this._charts.get(o);C&&(C.running=!0,C.start=Date.now(),C.duration=C.items.reduce((B,Y)=>Math.max(B,Y._duration),0),this._refresh())}running(o){if(!this._running)return!1;const C=this._charts.get(o);return!(!C||!C.running||!C.items.length)}stop(o){const C=this._charts.get(o);if(!C||!C.items.length)return;const B=C.items;let Y=B.length-1;for(;Y>=0;--Y)B[Y].cancel();C.items=[],this._notify(o,C,Date.now(),"complete")}remove(o){return this._charts.delete(o)}}var Jg=new lht;const IP="transparent",uht={boolean(d,o,C){return C>.5?o:d},color(d,o,C){const B=wP(d||IP),Y=B.valid&&wP(o||IP);return Y&&Y.valid?Y.mix(B,C).hexString():o},number(d,o,C){return d+(o-d)*C}};class cht{constructor(o,C,B,Y){const dt=C[B];Y=V5([o.to,Y,dt,o.from]);const xt=V5([o.from,dt,Y]);this._active=!0,this._fn=o.fn||uht[o.type||typeof xt],this._easing=D2[o.easing]||D2.linear,this._start=Math.floor(Date.now()+(o.delay||0)),this._duration=this._total=Math.floor(o.duration),this._loop=!!o.loop,this._target=C,this._prop=B,this._from=xt,this._to=Y,this._promises=void 0}active(){return this._active}update(o,C,B){if(this._active){this._notify(!1);const Y=this._target[this._prop],dt=B-this._start,xt=this._duration-dt;this._start=B,this._duration=Math.floor(Math.max(xt,o.duration)),this._total+=dt,this._loop=!!o.loop,this._to=V5([o.to,C,Y,o.from]),this._from=V5([o.from,Y,C])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(o){const C=o-this._start,B=this._duration,Y=this._prop,dt=this._from,xt=this._loop,Ct=this._to;let Ut;if(this._active=dt!==Ct&&(xt||C<B),!this._active){this._target[Y]=Ct,this._notify(!0);return}if(C<0){this._target[Y]=dt;return}Ut=C/B%2,Ut=xt&&Ut>1?2-Ut:Ut,Ut=this._easing(Math.min(1,Math.max(0,Ut))),this._target[Y]=this._fn(dt,Ct,Ut)}wait(){const o=this._promises||(this._promises=[]);return new Promise((C,B)=>{o.push({res:C,rej:B})})}_notify(o){const C=o?"res":"rej",B=this._promises||[];for(let Y=0;Y<B.length;Y++)B[Y][C]()}}class PD{constructor(o,C){this._chart=o,this._properties=new Map,this.configure(C)}configure(o){if(!Pc(o))return;const C=Object.keys(Bd.animation),B=this._properties;Object.getOwnPropertyNames(o).forEach(Y=>{const dt=o[Y];if(!Pc(dt))return;const xt={};for(const Ct of C)xt[Ct]=dt[Ct];(Xd(dt.properties)&&dt.properties||[Y]).forEach(Ct=>{(Ct===Y||!B.has(Ct))&&B.set(Ct,xt)})})}_animateOptions(o,C){const B=C.options,Y=fht(o,B);if(!Y)return[];const dt=this._createAnimations(Y,B);return B.$shared&&hht(o.options.$animations,B).then(()=>{o.options=B},()=>{}),dt}_createAnimations(o,C){const B=this._properties,Y=[],dt=o.$animations||(o.$animations={}),xt=Object.keys(C),Ct=Date.now();let Ut;for(Ut=xt.length-1;Ut>=0;--Ut){const re=xt[Ut];if(re.charAt(0)==="$")continue;if(re==="options"){Y.push(...this._animateOptions(o,C));continue}const ae=C[re];let we=dt[re];const Xe=B.get(re);if(we)if(Xe&&we.active()){we.update(Xe,ae,Ct);continue}else we.cancel();if(!Xe||!Xe.duration){o[re]=ae;continue}dt[re]=we=new cht(Xe,o,re,ae),Y.push(we)}return Y}update(o,C){if(this._properties.size===0){Object.assign(o,C);return}const B=this._createAnimations(o,C);if(B.length)return Jg.add(this._chart,B),!0}}function hht(d,o){const C=[],B=Object.keys(o);for(let Y=0;Y<B.length;Y++){const dt=d[B[Y]];dt&&dt.active()&&C.push(dt.wait())}return Promise.all(C)}function fht(d,o){if(!o)return;let C=d.options;if(!C){d.options=o;return}return C.$shared&&(d.options=C=Object.assign({},C,{$shared:!1,$animations:{}})),C}function OP(d,o){const C=d&&d.options||{},B=C.reverse,Y=C.min===void 0?o:0,dt=C.max===void 0?o:0;return{start:B?dt:Y,end:B?Y:dt}}function dht(d,o,C){if(C===!1)return!1;const B=OP(d,C),Y=OP(o,C);return{top:Y.end,right:B.end,bottom:Y.start,left:B.start}}function pht(d){let o,C,B,Y;return Pc(d)?(o=d.top,C=d.right,B=d.bottom,Y=d.left):o=C=B=Y=d,{top:o,right:C,bottoLine truncated
|
||||
*/class Eht{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(o,C,B,Y){const dt=C.listeners[Y],xt=C.duration;dt.forEach(Ct=>Ct({chart:o,initial:C.initial,numSteps:xt,currentStep:Math.min(B-C.start,xt)}))}_refresh(){this._request||(this._running=!0,this._request=mD.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(o=Date.now()){let C=0;this._charts.forEach((B,Y)=>{if(!B.running||!B.items.length)return;const dt=B.items;let xt=dt.length-1,Ct=!1,Ut;for(;xt>=0;--xt)Ut=dt[xt],Ut._active?(Ut._total>B.duration&&(B.duration=Ut._total),Ut.tick(o),Ct=!0):(dt[xt]=dt[dt.length-1],dt.pop());Ct&&(Y.draw(),this._notify(Y,B,o,"progress")),dt.length||(B.running=!1,this._notify(Y,B,o,"complete"),B.initial=!1),C+=dt.length}),this._lastDate=o,C===0&&(this._running=!1)}_getAnims(o){const C=this._charts;let B=C.get(o);return B||(B={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},C.set(o,B)),B}listen(o,C,B){this._getAnims(o).listeners[C].push(B)}add(o,C){!C||!C.length||this._getAnims(o).items.push(...C)}has(o){return this._getAnims(o).items.length>0}start(o){const C=this._charts.get(o);C&&(C.running=!0,C.start=Date.now(),C.duration=C.items.reduce((B,Y)=>Math.max(B,Y._duration),0),this._refresh())}running(o){if(!this._running)return!1;const C=this._charts.get(o);return!(!C||!C.running||!C.items.length)}stop(o){const C=this._charts.get(o);if(!C||!C.items.length)return;const B=C.items;let Y=B.length-1;for(;Y>=0;--Y)B[Y].cancel();C.items=[],this._notify(o,C,Date.now(),"complete")}remove(o){return this._charts.delete(o)}}var Jg=new Eht;const IP="transparent",Lht={boolean(d,o,C){return C>.5?o:d},color(d,o,C){const B=wP(d||IP),Y=B.valid&&wP(o||IP);return Y&&Y.valid?Y.mix(B,C).hexString():o},number(d,o,C){return d+(o-d)*C}};class Pht{constructor(o,C,B,Y){const dt=C[B];Y=V5([o.to,Y,dt,o.from]);const xt=V5([o.from,dt,Y]);this._active=!0,this._fn=o.fn||Lht[o.type||typeof xt],this._easing=D2[o.easing]||D2.linear,this._start=Math.floor(Date.now()+(o.delay||0)),this._duration=this._total=Math.floor(o.duration),this._loop=!!o.loop,this._target=C,this._prop=B,this._from=xt,this._to=Y,this._promises=void 0}active(){return this._active}update(o,C,B){if(this._active){this._notify(!1);const Y=this._target[this._prop],dt=B-this._start,xt=this._duration-dt;this._start=B,this._duration=Math.floor(Math.max(xt,o.duration)),this._total+=dt,this._loop=!!o.loop,this._to=V5([o.to,C,Y,o.from]),this._from=V5([o.from,Y,C])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(o){const C=o-this._start,B=this._duration,Y=this._prop,dt=this._from,xt=this._loop,Ct=this._to;let Ut;if(this._active=dt!==Ct&&(xt||C<B),!this._active){this._target[Y]=Ct,this._notify(!0);return}if(C<0){this._target[Y]=dt;return}Ut=C/B%2,Ut=xt&&Ut>1?2-Ut:Ut,Ut=this._easing(Math.min(1,Math.max(0,Ut))),this._target[Y]=this._fn(dt,Ct,Ut)}wait(){const o=this._promises||(this._promises=[]);return new Promise((C,B)=>{o.push({res:C,rej:B})})}_notify(o){const C=o?"res":"rej",B=this._promises||[];for(let Y=0;Y<B.length;Y++)B[Y][C]()}}class PD{constructor(o,C){this._chart=o,this._properties=new Map,this.configure(C)}configure(o){if(!Pc(o))return;const C=Object.keys(Bd.animation),B=this._properties;Object.getOwnPropertyNames(o).forEach(Y=>{const dt=o[Y];if(!Pc(dt))return;const xt={};for(const Ct of C)xt[Ct]=dt[Ct];(Xd(dt.properties)&&dt.properties||[Y]).forEach(Ct=>{(Ct===Y||!B.has(Ct))&&B.set(Ct,xt)})})}_animateOptions(o,C){const B=C.options,Y=Iht(o,B);if(!Y)return[];const dt=this._createAnimations(Y,B);return B.$shared&&zht(o.options.$animations,B).then(()=>{o.options=B},()=>{}),dt}_createAnimations(o,C){const B=this._properties,Y=[],dt=o.$animations||(o.$animations={}),xt=Object.keys(C),Ct=Date.now();let Ut;for(Ut=xt.length-1;Ut>=0;--Ut){const re=xt[Ut];if(re.charAt(0)==="$")continue;if(re==="options"){Y.push(...this._animateOptions(o,C));continue}const ae=C[re];let we=dt[re];const Xe=B.get(re);if(we)if(Xe&&we.active()){we.update(Xe,ae,Ct);continue}else we.cancel();if(!Xe||!Xe.duration){o[re]=ae;continue}dt[re]=we=new Pht(Xe,o,re,ae),Y.push(we)}return Y}update(o,C){if(this._properties.size===0){Object.assign(o,C);return}const B=this._createAnimations(o,C);if(B.length)return Jg.add(this._chart,B),!0}}function zht(d,o){const C=[],B=Object.keys(o);for(let Y=0;Y<B.length;Y++){const dt=d[B[Y]];dt&&dt.active()&&C.push(dt.wait())}return Promise.all(C)}function Iht(d,o){if(!o)return;let C=d.options;if(!C){d.options=o;return}return C.$shared&&(d.options=C=Object.assign({},C,{$shared:!1,$animations:{}})),C}function OP(d,o){const C=d&&d.options||{},B=C.reverse,Y=C.min===void 0?o:0,dt=C.max===void 0?o:0;return{start:B?dt:Y,end:B?Y:dt}}function Oht(d,o,C){if(C===!1)return!1;const B=OP(d,C),Y=OP(o,C);return{top:Y.end,right:B.end,bottom:Y.start,left:B.start}}function Dht(d){let o,C,B,Y;return Pc(d)?(o=d.top,C=d.right,B=d.bottom,Y=d.left):o=C=B=Y=d,{top:o,right:C,bottoLine truncated
|
||||
`)>-1?d.split(`
|
||||
`):d}function zdt(d,o){const{element:C,datasetIndex:B,index:Y}=o,dt=d.getDatasetMeta(B).controller,{label:xt,value:Ct}=dt.getLabelAndValue(Y);return{chart:d,label:xt,parsed:dt.getParsed(Y),raw:d.data.datasets[B].data[Y],formattedValue:Ct,dataset:dt.getDataset(),dataIndex:Y,datasetIndex:B,element:C}}function mz(d,o){const C=d.chart.ctx,{body:B,footer:Y,title:dt}=d,{boxWidth:xt,boxHeight:Ct}=o,Ut=e0(o.bodyFont),re=e0(o.titleFont),ae=e0(o.footerFont),we=dt.length,Xe=Y.length,fr=B.length,Tr=pm(o.padding);let mr=Tr.height,Sr=0,Yr=B.reduce((ti,Gn)=>ti+Gn.before.length+Gn.lines.length+Gn.after.length,0);if(Yr+=d.beforeBody.length+d.afterBody.length,we&&(mr+=we*re.lineHeight+(we-1)*o.titleSpacing+o.titleMarginBottom),Yr){const ti=o.displayColors?Math.max(Ct,Ut.lineHeight):Ut.lineHeight;mr+=fr*ti+(Yr-fr)*Ut.lineHeight+(Yr-1)*o.bodySpacing}Xe&&(mr+=o.footerMarginTop+Xe*ae.lineHeight+(Xe-1)*o.footerSpacing);let zt=0;const on=function(ti){Sr=Math.max(Sr,C.measureText(ti).width+zt)};return C.save(),C.font=re.string,tf(d.title,on),C.font=Ut.string,tf(d.beforeBody.concat(d.afterBody),on),zt=o.displayColors?xt+2+o.boxPadding:0,tf(B,ti=>{tf(ti.before,on),tf(ti.lines,on),tf(ti.after,on)}),zt=0,C.font=ae.string,tf(d.footer,on),C.restore(),Sr+=Tr.width,{width:Sr,height:mr}}function Idt(d,o){const{y:C,height:B}=o;return C<B/2?"top":C>d.height-B/2?"bottom":"center"}function Odt(d,o,C,B){const{x:Y,width:dt}=B,xt=C.caretSize+C.caretPadding;if(d==="left"&&Y+dt+xt>o.width||d==="right"&&Y-dt-xt<0)return!0}function Ddt(d,o,C,B){const{x:Y,width:dt}=C,{width:xt,chartArea:{left:Ct,right:Ut}}=d;let re="center";return B==="center"?re=Y<=(Ct+Ut)/2?"left":"right":Y<=dt/2?re="left":Y>=xt-dt/2&&(re="right"),Odt(re,d,o,C)&&(re="center"),re}function gz(d,o,C){const B=C.yAlign||o.yAlign||Idt(d,C);return{xAlign:C.xAlign||o.xAlign||Ddt(d,o,C,B),yAlign:B}}function Fdt(d,o){let{x:C,width:B}=d;return o==="right"?C-=B:o==="center"&&(C-=B/2),C}function Rdt(d,o,C){let{y:B,height:Y}=d;return o==="top"?B+=C:o==="bottom"?B-=Y+C:B-=Y/2,B}function vz(d,o,C,B){const{caretSize:Y,caretPadding:dt,cornerRadius:xt}=d,{xAlign:Ct,yAlign:Ut}=C,re=Y+dt,{topLeft:ae,topRight:we,bottomLeft:Xe,bottomRight:fr}=m_(xt);let Tr=Fdt(o,Ct);const mr=Rdt(o,Ut,re);return Ut==="center"?Ct==="left"?Tr+=re:Ct==="right"&&(Tr-=re):Ct==="left"?Tr-=Math.max(ae,Xe)+Y:Ct==="right"&&(Tr+=Math.max(we,fr)+Y),{x:t0(Tr,0,B.width-o.width),y:t0(mr,0,B.height-o.height)}}function Y5(d,o,C){const B=pm(C.padding);return o==="center"?d.x+d.width/2:o==="right"?d.x+d.width-B.right:d.x+B.left}function yz(d){return ug([],Qg(d))}function Bdt(d,o,C){return Ry(d,{tooltip:o,tooltipItems:C,type:"tooltip"})}function xz(d,o){const C=o&&o.dataset&&o.dataset.tooltip&&o.dataset.tooltip.callbacks;return C?d.override(C):d}const oF={beforeTitle:Xg,title(d){if(d.length>0){const o=d[0],C=o.chart.data.labels,B=C?C.length:0;if(this&&this.options&&this.options.mode==="dataset")return o.dataset.label||"";if(o.label)return o.label;if(B>0&&o.dataIndex<B)return C[o.dataIndex]}return""},afterTitle:Xg,beforeBody:Xg,beforeLabel:Xg,label(d){if(this&&this.options&&this.options.mode==="dataset")return d.label+": "+d.formattedValue||d.formattedValue;let o=d.dataset.label||"";o&&(o+=": ");const C=d.formattedValue;return Uh(C)||(o+=C),o},labelColor(d){const C=d.chart.getDatasetMeta(d.datasetIndex).controller.getStyle(d.dataIndex);return{borderColor:C.borderColor,backgroundColor:C.backgroundColor,borderWidth:C.borderWidth,borderDash:C.borderDash,borderDashOffset:C.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(d){const C=d.chart.getDatasetMeta(d.datasetIndex).controller.getStyle(d.dataIndex);return{pointStyle:C.pointStyle,rotation:C.rotation}},afterLabel:Xg,afterBody:Xg,beforeFooter:Xg,footer:Xg,afterFooter:Xg};function C0(d,o,C,B){const Y=d[o].call(C,B);return typeof Y>"u"?oF[o].call(C,B):Y}class _z extends hv{static positioners=k2;constructor(o){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=o.chart,this.options=o.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(o){this.options=o,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const o=this._cachedAnimations;if(o)return o;const C=this.chart,B=this.options.setContext(this.getContext()),Y=B.enabled&&C.options.animation&&B.animations,dt=new PD(this.chart,Y);return Y._cacheable&&(this._cachedAnimations=Object.freeze(dt)),dt}getContext(){return this.$context||(this.$context=Bdt(this.chart.getContext(),this,this._tooltipItems))}getTitle(o,C){const{callbacks:B}=C,Y=C0(B
Line truncated
|
||||
`):d}function Qdt(d,o){const{element:C,datasetIndex:B,index:Y}=o,dt=d.getDatasetMeta(B).controller,{label:xt,value:Ct}=dt.getLabelAndValue(Y);return{chart:d,label:xt,parsed:dt.getParsed(Y),raw:d.data.datasets[B].data[Y],formattedValue:Ct,dataset:dt.getDataset(),dataIndex:Y,datasetIndex:B,element:C}}function mz(d,o){const C=d.chart.ctx,{body:B,footer:Y,title:dt}=d,{boxWidth:xt,boxHeight:Ct}=o,Ut=e0(o.bodyFont),re=e0(o.titleFont),ae=e0(o.footerFont),we=dt.length,Xe=Y.length,fr=B.length,Tr=pm(o.padding);let mr=Tr.height,Sr=0,Yr=B.reduce((fn,dn)=>fn+dn.before.length+dn.lines.length+dn.after.length,0);if(Yr+=d.beforeBody.length+d.afterBody.length,we&&(mr+=we*re.lineHeight+(we-1)*o.titleSpacing+o.titleMarginBottom),Yr){const fn=o.displayColors?Math.max(Ct,Ut.lineHeight):Ut.lineHeight;mr+=fr*fn+(Yr-fr)*Ut.lineHeight+(Yr-1)*o.bodySpacing}Xe&&(mr+=o.footerMarginTop+Xe*ae.lineHeight+(Xe-1)*o.footerSpacing);let Rt=0;const ai=function(fn){Sr=Math.max(Sr,C.measureText(fn).width+Rt)};return C.save(),C.font=re.string,tf(d.title,ai),C.font=Ut.string,tf(d.beforeBody.concat(d.afterBody),ai),Rt=o.displayColors?xt+2+o.boxPadding:0,tf(B,fn=>{tf(fn.before,ai),tf(fn.lines,ai),tf(fn.after,ai)}),Rt=0,C.font=ae.string,tf(d.footer,ai),C.restore(),Sr+=Tr.width,{width:Sr,height:mr}}function tpt(d,o){const{y:C,height:B}=o;return C<B/2?"top":C>d.height-B/2?"bottom":"center"}function ept(d,o,C,B){const{x:Y,width:dt}=B,xt=C.caretSize+C.caretPadding;if(d==="left"&&Y+dt+xt>o.width||d==="right"&&Y-dt-xt<0)return!0}function rpt(d,o,C,B){const{x:Y,width:dt}=C,{width:xt,chartArea:{left:Ct,right:Ut}}=d;let re="center";return B==="center"?re=Y<=(Ct+Ut)/2?"left":"right":Y<=dt/2?re="left":Y>=xt-dt/2&&(re="right"),ept(re,d,o,C)&&(re="center"),re}function gz(d,o,C){const B=C.yAlign||o.yAlign||tpt(d,C);return{xAlign:C.xAlign||o.xAlign||rpt(d,o,C,B),yAlign:B}}function npt(d,o){let{x:C,width:B}=d;return o==="right"?C-=B:o==="center"&&(C-=B/2),C}function ipt(d,o,C){let{y:B,height:Y}=d;return o==="top"?B+=C:o==="bottom"?B-=Y+C:B-=Y/2,B}function vz(d,o,C,B){const{caretSize:Y,caretPadding:dt,cornerRadius:xt}=d,{xAlign:Ct,yAlign:Ut}=C,re=Y+dt,{topLeft:ae,topRight:we,bottomLeft:Xe,bottomRight:fr}=m_(xt);let Tr=npt(o,Ct);const mr=ipt(o,Ut,re);return Ut==="center"?Ct==="left"?Tr+=re:Ct==="right"&&(Tr-=re):Ct==="left"?Tr-=Math.max(ae,Xe)+Y:Ct==="right"&&(Tr+=Math.max(we,fr)+Y),{x:t0(Tr,0,B.width-o.width),y:t0(mr,0,B.height-o.height)}}function Y5(d,o,C){const B=pm(C.padding);return o==="center"?d.x+d.width/2:o==="right"?d.x+d.width-B.right:d.x+B.left}function yz(d){return ug([],Qg(d))}function apt(d,o,C){return Ry(d,{tooltip:o,tooltipItems:C,type:"tooltip"})}function xz(d,o){const C=o&&o.dataset&&o.dataset.tooltip&&o.dataset.tooltip.callbacks;return C?d.override(C):d}const oF={beforeTitle:Xg,title(d){if(d.length>0){const o=d[0],C=o.chart.data.labels,B=C?C.length:0;if(this&&this.options&&this.options.mode==="dataset")return o.dataset.label||"";if(o.label)return o.label;if(B>0&&o.dataIndex<B)return C[o.dataIndex]}return""},afterTitle:Xg,beforeBody:Xg,beforeLabel:Xg,label(d){if(this&&this.options&&this.options.mode==="dataset")return d.label+": "+d.formattedValue||d.formattedValue;let o=d.dataset.label||"";o&&(o+=": ");const C=d.formattedValue;return Uh(C)||(o+=C),o},labelColor(d){const C=d.chart.getDatasetMeta(d.datasetIndex).controller.getStyle(d.dataIndex);return{borderColor:C.borderColor,backgroundColor:C.backgroundColor,borderWidth:C.borderWidth,borderDash:C.borderDash,borderDashOffset:C.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(d){const C=d.chart.getDatasetMeta(d.datasetIndex).controller.getStyle(d.dataIndex);return{pointStyle:C.pointStyle,rotation:C.rotation}},afterLabel:Xg,afterBody:Xg,beforeFooter:Xg,footer:Xg,afterFooter:Xg};function C0(d,o,C,B){const Y=d[o].call(C,B);return typeof Y>"u"?oF[o].call(C,B):Y}class _z extends hv{static positioners=k2;constructor(o){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=o.chart,this.options=o.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(o){this.options=o,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const o=this._cachedAnimations;if(o)return o;const C=this.chart,B=this.options.setContext(this.getContext()),Y=B.enabled&&C.options.animation&&B.animations,dt=new PD(this.chart,Y);return Y._cacheable&&(this._cachedAnimations=Object.freeze(dt)),dt}getContext(){return this.$context||(this.$context=apt(this.chart.getContext(),this,this._tooltipItems))}getTitle(o,C){const{callbacks:B}=C,Y=C0(B
Line truncated
|
||||
* chartjs-adapter-date-fns v3.0.0
|
||||
* https://www.chartjs.org
|
||||
* (c) 2022 chartjs-adapter-date-fns Contributors
|
||||
* Released under the MIT license
|
||||
*/const Lmt={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};RD._date.override({_id:"date-fns",formats:function(){return Lmt},parse:function(d,o){if(d===null||typeof d>"u")return null;const C=typeof d;return C==="number"||d instanceof Date?d=qu(d):C==="string"&&(typeof o=="string"?d=umt(d,o,new Date,this.options):d=pmt(d,this.options)),dF(d)?d.getTime():null},format:function(d,o){return h0t(d,o,this.options)},add:function(d,o,C){switch(C){case"millisecond":return O7(d,o);case"second":return tpt(d,o);case"minute":return Jdt(d,o);case"hour":return Ydt(d,o);case"day":return s6(d,o);case"week":return ept(d,o);case"month":return I7(d,o);case"quarter":return Qdt(d,o);case"year":return rpt(d,o);default:return d}},diff:function(d,o,C){switch(C){case"millisecond":return D7(d,o);case"second":return cpt(d,o);case"minute":return spt(d,o);case"hour":return opt(d,o);case"day":return pF(d,o);case"week":return hpt(d,o);case"month":return vF(d,o);case"quarter":return upt(d,o);case"year":return fpt(d,o);default:return 0}},startOf:function(d,o,C){switch(o){case"second":return dmt(d);case"minute":return fmt(d);case"hour":return hmt(d);case"day":return jA(d);case"week":return yg(d);case"isoWeek":return yg(d,{weekStartsOn:+C});case"month":return ppt(d);case"quarter":return dpt(d);case"year":return yF(d);default:return d}},endOf:function(d,o){switch(o){case"second":return _pt(d);case"minute":return ypt(d);case"hour":return gpt(d);case"day":return mF(d);case"week":return vpt(d);case"month":return gF(d);case"quarter":return xpt(d);case"year":return mpt(d);default:return d}}});var u4={exports:{}},Pmt=u4.exports,Oz;function zmt(){return Oz||(Oz=1,function(d){var o={};(function(C,B){d.exports?d.exports=B():C.moduleName=B()})(typeof self<"u"?self:Pmt,()=>{var C=(()=>{var B=Object.create,Y=Object.defineProperty,dt=Object.defineProperties,xt=Object.getOwnPropertyDescriptor,Ct=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertyNames,re=Object.getOwnPropertySymbols,ae=Object.getPrototypeOf,we=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,fr=(Q,Z,c)=>Z in Q?Y(Q,Z,{enumerable:!0,configurable:!0,writable:!0,value:c}):Q[Z]=c,Tr=(Q,Z)=>{for(var c in Z||(Z={}))we.call(Z,c)&&fr(Q,c,Z[c]);if(re)for(var c of re(Z))Xe.call(Z,c)&&fr(Q,c,Z[c]);return Q},mr=(Q,Z)=>dt(Q,Ct(Z)),Sr=(Q,Z)=>{var c={};for(var g in Q)we.call(Q,g)&&Z.indexOf(g)<0&&(c[g]=Q[g]);if(Q!=null&&re)for(var g of re(Q))Z.indexOf(g)<0&&Xe.call(Q,g)&&(c[g]=Q[g]);return c},Yr=(Q,Z)=>()=>(Q&&(Z=Q(Q=0)),Z),zt=(Q,Z)=>()=>(Z||Q((Z={exports:{}}).exports,Z),Z.exports),on=(Q,Z)=>{for(var c in Z)Y(Q,c,{get:Z[c],enumerable:!0})},ti=(Q,Z,c,g)=>{if(Z&&typeof Z=="object"||typeof Z=="function")for(let z of Ut(Z))!we.call(Q,z)&&z!==c&&Y(Q,z,{get:()=>Z[z],enumerable:!(g=xt(Z,z))||g.enumerable});return Q},Gn=(Q,Z,c)=>(c=Q!=null?B(ae(Q)):{},ti(Y(c,"default",{value:Q,enumerable:!0}),Q)),ei=Q=>ti(Y({},"__esModule",{value:!0}),Q),Si=zt(Q=>{Q.version="3.2.0"}),ji=zt((Q,Z)=>{(function(c,g,z){g[c]=g[c]||z(),typeof Z<"u"&&Z.exports&&(Z.exports=g[c])})("Promise",typeof window<"u"?window:Q,function(){var c,g,z,S=Object.prototype.toString,t=typeof setImmediate<"u"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),c=function(T,u,b,_){return Object.defineProperty(T,u,{value:b,writable:!0,configurable:_!==!1})}}catch{c=function(u,b,_){return u[b]=_,u}}z=function(){var T,u,b;function _(P,M){this.fn=P,this.self=M,this.next=void 0}return{add:function(P,M){b=new _(P,M),u?u.next=b:T=b,u=b,b=void 0},drain:function(){var P=T;for(T=u=g=void 0;P;)P.fn.call(P.self),P=P.next}}}();function e(T,u){z.add(T,u),g||(g=t(z.drain))}function r(T){var u,b=typeof T;return T!=null&&(b=="object"||b=="function")&&(u=T.then),typeof u=="function"?u:!1}function a(){for(var T=0;T<this.chain.length;T++)n(this,this.state===1?this.chain[T].success:this.chain[T].failure,this.chain[T]);this.chain.length=0}function n(T,u,b){var _,P;try{u===!1?b.reject(T.msg):(u===!0?_=T.msg:_=u.call(void 0,T.msg),_===b.promise?b.reject(TypeError("Promise-chain cycle")):(P=r(_))?P.call(_,b.resolve,b.reject):b.resolve(_))}catch(M){b.reject(M)}}function s(T){var u,b=this;if(!b.triggered){b.triggered=!0,b.def&&(b=b.def);try{(u=r(T))?e(function(){var _=new f(b);try{u.call(T,function(){s.apply(_,arguments)},function(){i.apply(_,arguments)})}catch(P){i.call(_,P)}}):(b.msg=T,b.state=1,b.chain.length>0&&e(a,b))}catch(_){i.call(new f(b),_)}}}function i(T){var u=this;u.triggered||(u.triggered=!0,u.def&&(u=u.def),u.msg=T,u.state=2,u.chain.length>0&&e(a,u))}function l(T,u,b,_){for(var P=0;P<u.length;P++)(function(M){T.resolve(u[M]).then(function(E){b(M,E)},_)})(P)}function f(T){this.def=T,this.triggered=!1}function x(T){this.promise=T,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function y(T){if(typeof T!="function")throw TypeError("Not a function");if(this.Line truncated
|
||||
]`),Ce=At.charCodeAt(0);function ze(an,Qr,bn){arguments.length<3&&(bn=Qr,Qr=null);var Nn=Wr(an,Vt,Qr==null?Ne:sr(Qr),bn);return Nn.row=function(Un){return arguments.length?Nn.response((Qr=Un)==null?Ne:sr(Un)):Qr},Nn}function Ne(an){return ze.parse(an.responseText)}function sr(an){return function(Qr){return ze.parse(Qr.responseText,an)}}ze.parse=function(an,Qr){var bn;return ze.parseRows(an,function(Nn,Un){if(bn)return bn(Nn,Un-1);var Zi=function(Xn){for(var Ci={},Di=Nn.length,Vi=0;Vi<Di;++Vi)Ci[Nn[Vi]]=Xn[Vi];return Ci};bn=Qr?function(Xn,Ci){return Qr(Zi(Xn),Ci)}:Zi})},ze.parseRows=function(an,Qr){var bn={},Nn={},Un=[],Zi=an.length,Xn=0,Ci=0,Di,Vi;function Xi(){if(Xn>=Zi)return Nn;if(Vi)return Vi=!1,bn;var Wa=Xn;if(an.charCodeAt(Wa)===34){for(var Ga=Wa;Ga++<Zi;)if(an.charCodeAt(Ga)===34){if(an.charCodeAt(Ga+1)!==34)break;++Ga}Xn=Ga+2;var ho=an.charCodeAt(Ga+1);return ho===13?(Vi=!0,an.charCodeAt(Ga+2)===10&&++Xn):ho===10&&(Vi=!0),an.slice(Wa+1,Ga).replace(/""/g,'"')}for(;Xn<Zi;){var ho=an.charCodeAt(Xn++),Do=1;if(ho===10)Vi=!0;else if(ho===13)Vi=!0,an.charCodeAt(Xn)===10&&(++Xn,++Do);else if(ho!==Ce)continue;return an.slice(Wa,Xn-Do)}return an.slice(Wa)}for(;(Di=Xi())!==Nn;){for(var si=[];Di!==bn&&Di!==Nn;)si.push(Di),Di=Xi();Qr&&(si=Qr(si,Ci++))==null||Un.push(si)}return Un},ze.format=function(an){if(Array.isArray(an[0]))return ze.formatRows(an);var Qr=new j,bn=[];return an.forEach(function(Nn){for(var Un in Nn)Qr.has(Un)||bn.push(Qr.add(Un))}),[bn.map(Er).join(At)].concat(an.map(function(Nn){return bn.map(function(Un){return Er(Nn[Un])}).join(At)})).join(`
|
||||
*/const Xmt={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};RD._date.override({_id:"date-fns",formats:function(){return Xmt},parse:function(d,o){if(d===null||typeof d>"u")return null;const C=typeof d;return C==="number"||d instanceof Date?d=qu(d):C==="string"&&(typeof o=="string"?d=Lmt(d,o,new Date,this.options):d=Dmt(d,this.options)),dF(d)?d.getTime():null},format:function(d,o){return z0t(d,o,this.options)},add:function(d,o,C){switch(C){case"millisecond":return O7(d,o);case"second":return bpt(d,o);case"minute":return xpt(d,o);case"hour":return gpt(d,o);case"day":return s6(d,o);case"week":return wpt(d,o);case"month":return I7(d,o);case"quarter":return _pt(d,o);case"year":return kpt(d,o);default:return d}},diff:function(d,o,C){switch(C){case"millisecond":return D7(d,o);case"second":return Ppt(d,o);case"minute":return Cpt(d,o);case"hour":return Spt(d,o);case"day":return pF(d,o);case"week":return zpt(d,o);case"month":return vF(d,o);case"quarter":return Lpt(d,o);case"year":return Ipt(d,o);default:return 0}},startOf:function(d,o,C){switch(o){case"second":return Omt(d);case"minute":return Imt(d);case"hour":return zmt(d);case"day":return jA(d);case"week":return yg(d);case"isoWeek":return yg(d,{weekStartsOn:+C});case"month":return Dpt(d);case"quarter":return Opt(d);case"year":return yF(d);default:return d}},endOf:function(d,o){switch(o){case"second":return Upt(d);case"minute":return Npt(d);case"hour":return Rpt(d);case"day":return mF(d);case"week":return Bpt(d);case"month":return gF(d);case"quarter":return jpt(d);case"year":return Fpt(d);default:return d}}});var u4={exports:{}},Jmt=u4.exports,Oz;function Qmt(){return Oz||(Oz=1,function(d){var o={};(function(C,B){d.exports?d.exports=B():C.moduleName=B()})(typeof self<"u"?self:Jmt,()=>{var C=(()=>{var B=Object.create,Y=Object.defineProperty,dt=Object.defineProperties,xt=Object.getOwnPropertyDescriptor,Ct=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertyNames,re=Object.getOwnPropertySymbols,ae=Object.getPrototypeOf,we=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,fr=(Q,Z,c)=>Z in Q?Y(Q,Z,{enumerable:!0,configurable:!0,writable:!0,value:c}):Q[Z]=c,Tr=(Q,Z)=>{for(var c in Z||(Z={}))we.call(Z,c)&&fr(Q,c,Z[c]);if(re)for(var c of re(Z))Xe.call(Z,c)&&fr(Q,c,Z[c]);return Q},mr=(Q,Z)=>dt(Q,Ct(Z)),Sr=(Q,Z)=>{var c={};for(var g in Q)we.call(Q,g)&&Z.indexOf(g)<0&&(c[g]=Q[g]);if(Q!=null&&re)for(var g of re(Q))Z.indexOf(g)<0&&Xe.call(Q,g)&&(c[g]=Q[g]);return c},Yr=(Q,Z)=>()=>(Q&&(Z=Q(Q=0)),Z),Rt=(Q,Z)=>()=>(Z||Q((Z={exports:{}}).exports,Z),Z.exports),ai=(Q,Z)=>{for(var c in Z)Y(Q,c,{get:Z[c],enumerable:!0})},fn=(Q,Z,c,g)=>{if(Z&&typeof Z=="object"||typeof Z=="function")for(let z of Ut(Z))!we.call(Q,z)&&z!==c&&Y(Q,z,{get:()=>Z[z],enumerable:!(g=xt(Z,z))||g.enumerable});return Q},dn=(Q,Z,c)=>(c=Q!=null?B(ae(Q)):{},fn(Y(c,"default",{value:Q,enumerable:!0}),Q)),_i=Q=>fn(Y({},"__esModule",{value:!0}),Q),oi=Rt(Q=>{Q.version="3.2.0"}),Kn=Rt((Q,Z)=>{(function(c,g,z){g[c]=g[c]||z(),typeof Z<"u"&&Z.exports&&(Z.exports=g[c])})("Promise",typeof window<"u"?window:Q,function(){var c,g,z,S=Object.prototype.toString,t=typeof setImmediate<"u"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),c=function(T,u,b,_){return Object.defineProperty(T,u,{value:b,writable:!0,configurable:_!==!1})}}catch{c=function(u,b,_){return u[b]=_,u}}z=function(){var T,u,b;function _(P,M){this.fn=P,this.self=M,this.next=void 0}return{add:function(P,M){b=new _(P,M),u?u.next=b:T=b,u=b,b=void 0},drain:function(){var P=T;for(T=u=g=void 0;P;)P.fn.call(P.self),P=P.next}}}();function e(T,u){z.add(T,u),g||(g=t(z.drain))}function r(T){var u,b=typeof T;return T!=null&&(b=="object"||b=="function")&&(u=T.then),typeof u=="function"?u:!1}function a(){for(var T=0;T<this.chain.length;T++)n(this,this.state===1?this.chain[T].success:this.chain[T].failure,this.chain[T]);this.chain.length=0}function n(T,u,b){var _,P;try{u===!1?b.reject(T.msg):(u===!0?_=T.msg:_=u.call(void 0,T.msg),_===b.promise?b.reject(TypeError("Promise-chain cycle")):(P=r(_))?P.call(_,b.resolve,b.reject):b.resolve(_))}catch(M){b.reject(M)}}function s(T){var u,b=this;if(!b.triggered){b.triggered=!0,b.def&&(b=b.def);try{(u=r(T))?e(function(){var _=new f(b);try{u.call(T,function(){s.apply(_,arguments)},function(){i.apply(_,arguments)})}catch(P){i.call(_,P)}}):(b.msg=T,b.state=1,b.chain.length>0&&e(a,b))}catch(_){i.call(new f(b),_)}}}function i(T){var u=this;u.triggered||(u.triggered=!0,u.def&&(u=u.def),u.msg=T,u.state=2,u.chain.length>0&&e(a,u))}function l(T,u,b,_){for(var P=0;P<u.length;P++)(function(M){T.resolve(u[M]).then(function(E){b(M,E)},_)})(P)}function f(T){this.def=T,this.triggered=!1}function x(T){this.promise=T,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function y(T){if(typeof T!="function")throw TypeError("Not a function");if(this.Line truncated
|
||||
]`),Ce=At.charCodeAt(0);function ze(an,tn,wn){arguments.length<3&&(wn=tn,tn=null);var jn=Wr(an,Vt,tn==null?Ne:sr(tn),wn);return jn.row=function(Un){return arguments.length?jn.response((tn=Un)==null?Ne:sr(Un)):tn},jn}function Ne(an){return ze.parse(an.responseText)}function sr(an){return function(tn){return ze.parse(tn.responseText,an)}}ze.parse=function(an,tn){var wn;return ze.parseRows(an,function(jn,Un){if(wn)return wn(jn,Un-1);var Zi=function(Xn){for(var Ei={},Fi=jn.length,Vi=0;Vi<Fi;++Vi)Ei[jn[Vi]]=Xn[Vi];return Ei};wn=tn?function(Xn,Ei){return tn(Zi(Xn),Ei)}:Zi})},ze.parseRows=function(an,tn){var wn={},jn={},Un=[],Zi=an.length,Xn=0,Ei=0,Fi,Vi;function Xi(){if(Xn>=Zi)return jn;if(Vi)return Vi=!1,wn;var $a=Xn;if(an.charCodeAt($a)===34){for(var Za=$a;Za++<Zi;)if(an.charCodeAt(Za)===34){if(an.charCodeAt(Za+1)!==34)break;++Za}Xn=Za+2;var co=an.charCodeAt(Za+1);return co===13?(Vi=!0,an.charCodeAt(Za+2)===10&&++Xn):co===10&&(Vi=!0),an.slice($a+1,Za).replace(/""/g,'"')}for(;Xn<Zi;){var co=an.charCodeAt(Xn++),Oo=1;if(co===10)Vi=!0;else if(co===13)Vi=!0,an.charCodeAt(Xn)===10&&(++Xn,++Oo);else if(co!==Ce)continue;return an.slice($a,Xn-Oo)}return an.slice($a)}for(;(Fi=Xi())!==jn;){for(var ui=[];Fi!==wn&&Fi!==jn;)ui.push(Fi),Fi=Xi();tn&&(ui=tn(ui,Ei++))==null||Un.push(ui)}return Un},ze.format=function(an){if(Array.isArray(an[0]))return ze.formatRows(an);var tn=new j,wn=[];return an.forEach(function(jn){for(var Un in jn)tn.has(Un)||wn.push(tn.add(Un))}),[wn.map(Er).join(At)].concat(an.map(function(jn){return wn.map(function(Un){return Er(jn[Un])}).join(At)})).join(`
|
||||
`)},ze.formatRows=function(an){return an.map(ar).join(`
|
||||
`)};function ar(an){return an.map(Er).join(At)}function Er(an){return he.test(an)?'"'+an.replace(/\"/g,'""')+'"':an}return ze},c.csv=c.dsv(",","text/csv"),c.tsv=c.dsv(" ","text/tab-separated-values");var ci,Rn,In,ii,za=this[F(this,"requestAnimationFrame")]||function(At){setTimeout(At,17)};c.timer=function(){qi.apply(this,arguments)};function qi(At,Vt,he){var Ce=arguments.length;Ce<2&&(Vt=0),Ce<3&&(he=Date.now());var ze=he+Vt,Ne={c:At,t:ze,n:null};return Rn?Rn.n=Ne:ci=Ne,Rn=Ne,In||(ii=clearTimeout(ii),In=1,za(io)),Ne}function io(){var At=no(),Vt=No()-At;Vt>24?(isFinite(Vt)&&(clearTimeout(ii),ii=setTimeout(io,Vt)),In=0):(In=1,za(io))}c.timer.flush=function(){no(),No()};function no(){for(var At=Date.now(),Vt=ci;Vt;)At>=Vt.t&&Vt.c(At-Vt.t)&&(Vt.c=null),Vt=Vt.n;return At}function No(){for(var At,Vt=ci,he=1/0;Vt;)Vt.c?(Vt.t<he&&(he=Vt.t),Vt=(At=Vt).n):Vt=At?At.n=Vt.n:ci=Vt.n;return Rn=At,he}c.round=function(At,Vt){return Vt?Math.round(At*(Vt=Math.pow(10,Vt)))/Vt:Math.round(At)},c.geom={};function wo(At){return At[0]}function jo(At){return At[1]}c.geom.hull=function(At){var Vt=wo,he=jo;if(arguments.length)return Ce(At);function Ce(ze){if(ze.length<3)return[];var Ne=Le(Vt),sr=Le(he),ar,Er=ze.length,an=[],Qr=[];for(ar=0;ar<Er;ar++)an.push([+Ne.call(this,ze[ar],ar),+sr.call(this,ze[ar],ar),ar]);for(an.sort(xs),ar=0;ar<Er;ar++)Qr.push([an[ar][0],-an[ar][1]]);var bn=Ra(an),Nn=Ra(Qr),Un=Nn[0]===bn[0],Zi=Nn[Nn.length-1]===bn[bn.length-1],Xn=[];for(ar=bn.length-1;ar>=0;--ar)Xn.push(ze[an[bn[ar]][2]]);for(ar=+Un;ar<Nn.length-Zi;++ar)Xn.push(ze[an[Nn[ar]][2]]);return Xn}return Ce.x=function(ze){return arguments.length?(Vt=ze,Ce):Vt},Ce.y=function(ze){return arguments.length?(he=ze,Ce):he},Ce};function Ra(At){for(var Vt=At.length,he=[0,1],Ce=2,ze=2;ze<Vt;ze++){for(;Ce>1&&Ue(At[he[Ce-2]],At[he[Ce-1]],At[ze])<=0;)--Ce;he[Ce++]=ze}return he.slice(0,Ce)}function xs(At,Vt){return At[0]-Vt[0]||At[1]-Vt[1]}c.geom.polygon=function(At){return tt(At,ss),At};var ss=c.geom.polygon.prototype=[];ss.area=function(){for(var At=-1,Vt=this.length,he,Ce=this[Vt-1],ze=0;++At<Vt;)he=Ce,Ce=this[At],ze+=he[1]*Ce[0]-he[0]*Ce[1];return ze*.5},ss.centroid=function(At){var Vt=-1,he=this.length,Ce=0,ze=0,Ne,sr=this[he-1],ar;for(arguments.length||(At=-1/(6*this.area()));++Vt<he;)Ne=sr,sr=this[Vt],ar=Ne[0]*sr[1]-sr[0]*Ne[1],Ce+=(Ne[0]+sr[0])*ar,ze+=(Ne[1]+sr[1])*ar;return[Ce*At,ze*At]},ss.clip=function(At){for(var Vt,he=Ks(At),Ce=-1,ze=this.length-Ks(this),Ne,sr,ar=this[ze-1],Er,an,Qr;++Ce<ze;){for(Vt=At.slice(),At.length=0,Er=this[Ce],an=Vt[(sr=Vt.length-he)-1],Ne=-1;++Ne<sr;)Qr=Vt[Ne],cl(Qr,ar,Er)?(cl(an,ar,Er)||At.push(Yo(an,Qr,ar,Er)),At.push(Qr)):cl(an,ar,Er)&&At.push(Yo(an,Qr,ar,Er)),an=Qr;he&&At.push(At[0]),ar=Er}return At};function cl(At,Vt,he){return(he[0]-Vt[0])*(At[1]-Vt[1])<(he[1]-Vt[1])*(At[0]-Vt[0])}function Yo(At,Vt,he,Ce){var ze=At[0],Ne=he[0],sr=Vt[0]-ze,ar=Ce[0]-Ne,Er=At[1],an=he[1],Qr=Vt[1]-Er,bn=Ce[1]-an,Nn=(ar*(Er-an)-bn*(ze-Ne))/(bn*sr-ar*Qr);return[ze+Nn*sr,Er+Nn*Qr]}function Ks(At){var Vt=At[0],he=At[At.length-1];return!(Vt[0]-he[0]||Vt[1]-he[1])}var ls,hl,Qs,Vl=[],cs,Ls,Oo=[];function Ts(){kl(this),this.edge=this.site=this.circle=null}function Al(At){var Vt=Vl.pop()||new Ts;return Vt.site=At,Vt}function Zl(At){Il(At),Qs.remove(At),Vl.push(At),kl(At)}function tu(At){var Vt=At.circle,he=Vt.x,Ce=Vt.cy,ze={x:he,y:Ce},Ne=At.P,sr=At.N,ar=[At];Zl(At);for(var Er=Ne;Er.circle&&u(he-Er.circle.x)<ie&&u(Ce-Er.circle.cy)<ie;)Ne=Er.P,ar.unshift(Er),Zl(Er),Er=Ne;ar.unshift(Er),Il(Er);for(var an=sr;an.circle&&u(he-an.circle.x)<ie&&u(Ce-an.circle.cy)<ie;)sr=an.N,ar.push(an),Zl(an),an=sr;ar.push(an),Il(an);var Qr=ar.length,bn;for(bn=1;bn<Qr;++bn)an=ar[bn],Er=ar[bn-1],rs(an.edge,Er.site,an.site,ze);Er=ar[0],an=ar[Qr-1],an.edge=lu(Er.site,an.site,null,ze),ol(Er),ol(an)}function js(At){for(var Vt=At.x,he=At.y,Ce,ze,Ne,sr,ar=Qs._;ar;)if(Ne=Ia(ar,he)-Vt,Ne>ie)ar=ar.L;else if(sr=Vt-_o(ar,he),sr>ie){if(!ar.R){Ce=ar;break}ar=ar.R}else{Ne>-ie?(Ce=ar.P,ze=ar):sr>-ie?(Ce=ar,ze=ar.N):Ce=ze=ar;break}var Er=Al(At);if(Qs.insert(Ce,Er),!(!Ce&&!ze)){if(Ce===ze){Il(Ce),ze=Al(Ce.site),Qs.insert(Er,ze),Er.edge=ze.edge=lu(Ce.site,Er.site),ol(Ce),ol(ze);return}if(!ze){Er.edge=lu(Ce.site,Er.site);return}Il(Ce),Il(ze);var an=Ce.site,Qr=an.x,bn=an.y,Nn=At.x-Qr,Un=At.y-bn,Zi=ze.site,Xn=Zi.x-Qr,Ci=Zi.y-bn,Di=2*(Nn*Ci-Un*Xn),Vi=Nn*Nn+Un*Un,Xi=Xn*Xn+Ci*Ci,si={x:(Ci*Vi-Un*Xi)/Di+Qr,y:(Nn*Xi-Xn*Vi)/Di+bn};rs(ze.edge,an,Zi,si),Er.edge=lu(an,At,null,si),ze.edge=lu(At,Zi,null,si),ol(Ce),ol(ze)}}function Ia(At,Vt){var he=At.site,Ce=he.x,ze=he.y,Ne=ze-Vt;if(!Ne)return Ce;var sr=At.P;if(!sr)return-1/0;he=sr.site;var ar=he.x,Er=he.y,an=Er-Vt;if(!an)return ar;var Qr=ar-Ce,bn=1/Ne-1/an,Nn=Qr/an;return bn?(-Nn+Math.sqrt(Nn*Nn-2*bn*(Qr*Qr/(-2*an)-Er+an/2+ze-Ne/2)))/bn+Ce:(Ce+ar)/2}function _o(At,Vt){var he=At.N;if(he)return Ia(he,Vt);var Ce=At.site;return Ce.y===Vt?Ce.x:1/0}function $s(At){this.site=At,this.edges=[]}$s.prototype.prepare=function(){for(var At=this.edges,Vt=At.length,he;Vt
Line truncated
|
||||
`)};function ar(an){return an.map(Er).join(At)}function Er(an){return he.test(an)?'"'+an.replace(/\"/g,'""')+'"':an}return ze},c.csv=c.dsv(",","text/csv"),c.tsv=c.dsv(" ","text/tab-separated-values");var fi,Bn,On,ni,Oa=this[F(this,"requestAnimationFrame")]||function(At){setTimeout(At,17)};c.timer=function(){qi.apply(this,arguments)};function qi(At,Vt,he){var Ce=arguments.length;Ce<2&&(Vt=0),Ce<3&&(he=Date.now());var ze=he+Vt,Ne={c:At,t:ze,n:null};return Bn?Bn.n=Ne:fi=Ne,Bn=Ne,On||(ni=clearTimeout(ni),On=1,Oa(io)),Ne}function io(){var At=no(),Vt=No()-At;Vt>24?(isFinite(Vt)&&(clearTimeout(ni),ni=setTimeout(io,Vt)),On=0):(On=1,Oa(io))}c.timer.flush=function(){no(),No()};function no(){for(var At=Date.now(),Vt=fi;Vt;)At>=Vt.t&&Vt.c(At-Vt.t)&&(Vt.c=null),Vt=Vt.n;return At}function No(){for(var At,Vt=fi,he=1/0;Vt;)Vt.c?(Vt.t<he&&(he=Vt.t),Vt=(At=Vt).n):Vt=At?At.n=Vt.n:fi=Vt.n;return Bn=At,he}c.round=function(At,Vt){return Vt?Math.round(At*(Vt=Math.pow(10,Vt)))/Vt:Math.round(At)},c.geom={};function bo(At){return At[0]}function jo(At){return At[1]}c.geom.hull=function(At){var Vt=bo,he=jo;if(arguments.length)return Ce(At);function Ce(ze){if(ze.length<3)return[];var Ne=Le(Vt),sr=Le(he),ar,Er=ze.length,an=[],tn=[];for(ar=0;ar<Er;ar++)an.push([+Ne.call(this,ze[ar],ar),+sr.call(this,ze[ar],ar),ar]);for(an.sort(_s),ar=0;ar<Er;ar++)tn.push([an[ar][0],-an[ar][1]]);var wn=Na(an),jn=Na(tn),Un=jn[0]===wn[0],Zi=jn[jn.length-1]===wn[wn.length-1],Xn=[];for(ar=wn.length-1;ar>=0;--ar)Xn.push(ze[an[wn[ar]][2]]);for(ar=+Un;ar<jn.length-Zi;++ar)Xn.push(ze[an[jn[ar]][2]]);return Xn}return Ce.x=function(ze){return arguments.length?(Vt=ze,Ce):Vt},Ce.y=function(ze){return arguments.length?(he=ze,Ce):he},Ce};function Na(At){for(var Vt=At.length,he=[0,1],Ce=2,ze=2;ze<Vt;ze++){for(;Ce>1&&Ue(At[he[Ce-2]],At[he[Ce-1]],At[ze])<=0;)--Ce;he[Ce++]=ze}return he.slice(0,Ce)}function _s(At,Vt){return At[0]-Vt[0]||At[1]-Vt[1]}c.geom.polygon=function(At){return tt(At,ss),At};var ss=c.geom.polygon.prototype=[];ss.area=function(){for(var At=-1,Vt=this.length,he,Ce=this[Vt-1],ze=0;++At<Vt;)he=Ce,Ce=this[At],ze+=he[1]*Ce[0]-he[0]*Ce[1];return ze*.5},ss.centroid=function(At){var Vt=-1,he=this.length,Ce=0,ze=0,Ne,sr=this[he-1],ar;for(arguments.length||(At=-1/(6*this.area()));++Vt<he;)Ne=sr,sr=this[Vt],ar=Ne[0]*sr[1]-sr[0]*Ne[1],Ce+=(Ne[0]+sr[0])*ar,ze+=(Ne[1]+sr[1])*ar;return[Ce*At,ze*At]},ss.clip=function(At){for(var Vt,he=Xs(At),Ce=-1,ze=this.length-Xs(this),Ne,sr,ar=this[ze-1],Er,an,tn;++Ce<ze;){for(Vt=At.slice(),At.length=0,Er=this[Ce],an=Vt[(sr=Vt.length-he)-1],Ne=-1;++Ne<sr;)tn=Vt[Ne],cl(tn,ar,Er)?(cl(an,ar,Er)||At.push(Yo(an,tn,ar,Er)),At.push(tn)):cl(an,ar,Er)&&At.push(Yo(an,tn,ar,Er)),an=tn;he&&At.push(At[0]),ar=Er}return At};function cl(At,Vt,he){return(he[0]-Vt[0])*(At[1]-Vt[1])<(he[1]-Vt[1])*(At[0]-Vt[0])}function Yo(At,Vt,he,Ce){var ze=At[0],Ne=he[0],sr=Vt[0]-ze,ar=Ce[0]-Ne,Er=At[1],an=he[1],tn=Vt[1]-Er,wn=Ce[1]-an,jn=(ar*(Er-an)-wn*(ze-Ne))/(wn*sr-ar*tn);return[ze+jn*sr,Er+jn*tn]}function Xs(At){var Vt=At[0],he=At[At.length-1];return!(Vt[0]-he[0]||Vt[1]-he[1])}var ls,hl,tl,Vl=[],cs,Ps,Io=[];function As(){kl(this),this.edge=this.site=this.circle=null}function Al(At){var Vt=Vl.pop()||new As;return Vt.site=At,Vt}function Zl(At){Il(At),tl.remove(At),Vl.push(At),kl(At)}function tu(At){var Vt=At.circle,he=Vt.x,Ce=Vt.cy,ze={x:he,y:Ce},Ne=At.P,sr=At.N,ar=[At];Zl(At);for(var Er=Ne;Er.circle&&u(he-Er.circle.x)<ie&&u(Ce-Er.circle.cy)<ie;)Ne=Er.P,ar.unshift(Er),Zl(Er),Er=Ne;ar.unshift(Er),Il(Er);for(var an=sr;an.circle&&u(he-an.circle.x)<ie&&u(Ce-an.circle.cy)<ie;)sr=an.N,ar.push(an),Zl(an),an=sr;ar.push(an),Il(an);var tn=ar.length,wn;for(wn=1;wn<tn;++wn)an=ar[wn],Er=ar[wn-1],rs(an.edge,Er.site,an.site,ze);Er=ar[0],an=ar[tn-1],an.edge=lu(Er.site,an.site,null,ze),ol(Er),ol(an)}function Vs(At){for(var Vt=At.x,he=At.y,Ce,ze,Ne,sr,ar=tl._;ar;)if(Ne=Da(ar,he)-Vt,Ne>ie)ar=ar.L;else if(sr=Vt-xo(ar,he),sr>ie){if(!ar.R){Ce=ar;break}ar=ar.R}else{Ne>-ie?(Ce=ar.P,ze=ar):sr>-ie?(Ce=ar,ze=ar.N):Ce=ze=ar;break}var Er=Al(At);if(tl.insert(Ce,Er),!(!Ce&&!ze)){if(Ce===ze){Il(Ce),ze=Al(Ce.site),tl.insert(Er,ze),Er.edge=ze.edge=lu(Ce.site,Er.site),ol(Ce),ol(ze);return}if(!ze){Er.edge=lu(Ce.site,Er.site);return}Il(Ce),Il(ze);var an=Ce.site,tn=an.x,wn=an.y,jn=At.x-tn,Un=At.y-wn,Zi=ze.site,Xn=Zi.x-tn,Ei=Zi.y-wn,Fi=2*(jn*Ei-Un*Xn),Vi=jn*jn+Un*Un,Xi=Xn*Xn+Ei*Ei,ui={x:(Ei*Vi-Un*Xi)/Fi+tn,y:(jn*Xi-Xn*Vi)/Fi+wn};rs(ze.edge,an,Zi,ui),Er.edge=lu(an,At,null,ui),ze.edge=lu(At,Zi,null,ui),ol(Ce),ol(ze)}}function Da(At,Vt){var he=At.site,Ce=he.x,ze=he.y,Ne=ze-Vt;if(!Ne)return Ce;var sr=At.P;if(!sr)return-1/0;he=sr.site;var ar=he.x,Er=he.y,an=Er-Vt;if(!an)return ar;var tn=ar-Ce,wn=1/Ne-1/an,jn=tn/an;return wn?(-jn+Math.sqrt(jn*jn-2*wn*(tn*tn/(-2*an)-Er+an/2+ze-Ne/2)))/wn+Ce:(Ce+ar)/2}function xo(At,Vt){var he=At.N;if(he)return Da(he,Vt);var Ce=At.site;return Ce.y===Vt?Ce.x:1/0}function qs(At){this.site=At,this.edges=[]}qs.prototype.prepare=function(){for(var At=this.edges,Vt=At.length,he;Vt
Line truncated
|
||||
`+$.year;else return O(V,F)+`
|
||||
`+w($.dayMonthYear,V,U,W);return w(H,V,U,W)};var j=3*e;Q.incrementMonth=function(V,H,F){F=v(F)&&F;var U=z(V,e);if(V=Math.round(V-U),F)try{var W=Math.round(V/e)+s,$=i.getComponentMethod("calendars","getCal")(F),J=$.fromJD(W);return H%12?$.add(J,H,"m"):$.add(J,H/12,"y"),(J.toJD()-s)*e+U}catch{g.error("invalid ms "+V+" in calendar "+F)}var lt=new Date(V+j);return lt.setUTCMonth(lt.getUTCMonth()+H)+U-j},Q.findExactDates=function(V,H){for(var F=0,U=0,W=0,$=0,J,lt,yt=v(H)&&i.getComponentMethod("calendars","getCal")(H),mt=0;mt<V.length;mt++){if(lt=V[mt],!c(lt)){$++;continue}if(!(lt%e))if(yt)try{J=yt.fromJD(lt/e+s),J.day()===1?J.month()===1?F++:U++:W++}catch{}else J=new Date(lt),J.getUTCDate()===1?J.getUTCMonth()===0?F++:U++:W++}U+=F,W+=U;var st=V.length-$;return{exactYears:F/st,exactMonths:U/st,exactDays:W/st}}}),S1=zt((Q,Z)=>{Z.exports=function(c){return c}}),I_=zt(Q=>{var Z=$n(),c=is(),g=S1(),z=Li().BADNUM,S=1e-9;Q.findBin=function(n,s,i){if(Z(s.start))return i?Math.ceil((n-s.start)/s.size-S)-1:Math.floor((n-s.start)/s.size+S);var l=0,f=s.length,x=0,y=f>1?(s[f-1]-s[0])/(f-1):1,v,T;for(y>=0?T=i?t:e:T=i?a:r,n+=y*S*(i?-1:1)*(y>=0?1:-1);l<f&&x++<100;)v=Math.floor((l+f)/2),T(s[v],n)?l=v+1:f=v;return x>90&&c.log("Long binary search..."),l-1};function t(n,s){return n<s}function e(n,s){return n<=s}function r(n,s){return n>s}function a(n,s){return n>=s}Q.sorterAsc=function(n,s){return n-s},Q.sorterDes=function(n,s){return s-n},Q.distinctVals=function(n){var s=n.slice();s.sort(Q.sorterAsc);var i;for(i=s.length-1;i>-1&&s[i]===z;i--);for(var l=s[i]-s[0]||1,f=l/(i||1)/1e4,x=[],y,v=0;v<=i;v++){var T=s[v],u=T-y;y===void 0?(x.push(T),y=T):u>f&&(l=Math.min(l,u),x.push(T),y=T)}return{vals:x,minDiff:l}},Q.roundUp=function(n,s,i){for(var l=0,f=s.length-1,x,y=0,v=i?0:1,T=i?1:0,u=i?Math.ceil:Math.floor;l<f&&y++<100;)x=u((l+f)/2),s[x]<=n?l=x+v:f=x-T;return s[l]},Q.sort=function(n,s){for(var i=0,l=0,f=1;f<n.length;f++){var x=s(n[f],n[f-1]);if(x<0?i=1:x>0&&(l=1),i&&l)return n.sort(s)}return l?n:n.reverse()},Q.findIndexOfMin=function(n,s){s=s||g;for(var i=1/0,l,f=0;f<n.length;f++){var x=s(n[f]);x<i&&(i=x,l=f)}return l}}),J0=zt((Q,Z)=>{Z.exports=function(c){return Object.keys(c).sort()}}),x6=zt(Q=>{var Z=$n(),c=pa().isArrayOrTypedArray;Q.aggNums=function(g,z,S,t){var e,r;if((!t||t>S.length)&&(t=S.length),Z(z)||(z=!1),c(S[0])){for(r=new Array(t),e=0;e<t;e++)r[e]=Q.aggNums(g,z,S[e]);S=r}for(e=0;e<t;e++)Z(z)?Z(S[e])&&(z=g(+z,+S[e])):z=S[e];return z},Q.len=function(g){return Q.aggNums(function(z){return z+1},0,g)},Q.mean=function(g,z){return z||(z=Q.len(g)),Q.aggNums(function(S,t){return S+t},0,g)/z},Q.geometricMean=function(g,z){return z||(z=Q.len(g)),Math.pow(Q.aggNums(function(S,t){return S*t},1,g),1/z)},Q.midRange=function(g){if(!(g===void 0||g.length===0))return(Q.aggNums(Math.max,null,g)+Q.aggNums(Math.min,null,g))/2},Q.variance=function(g,z,S){return z||(z=Q.len(g)),Z(S)||(S=Q.mean(g,z)),Q.aggNums(function(t,e){return t+Math.pow(e-S,2)},0,g)/z},Q.stdev=function(g,z,S){return Math.sqrt(Q.variance(g,z,S))},Q.median=function(g){var z=g.slice().sort();return Q.interp(z,.5)},Q.interp=function(g,z){if(!Z(z))throw"n should be a finite number";if(z=z*g.length-.5,z<0)return g[0];if(z>g.length-1)return g[g.length-1];var S=z%1;return S*g[Math.ceil(z)]+(1-S)*g[Math.floor(z)]}}),_6=zt((Q,Z)=>{var c=Po(),g=c.mod,z=c.modHalf,S=Math.PI,t=2*S;function e(T){return T/180*S}function r(T){return T/S*180}function a(T){return Math.abs(T[1]-T[0])>t-1e-14}function n(T,u){return z(u-T,t)}function s(T,u){return Math.abs(n(T,u))}function i(T,u){if(a(u))return!0;var b,_;u[0]<u[1]?(b=u[0],_=u[1]):(b=u[1],_=u[0]),b=g(b,t),_=g(_,t),b>_&&(_+=t);var P=g(T,t),M=P+t;return P>=b&&P<=_||M>=b&&M<=_}function l(T,u,b,_){if(!i(u,_))return!1;var P,M;return b[0]<b[1]?(P=b[0],M=b[1]):(P=b[1],M=b[0]),T>=P&&T<=M}function f(T,u,b,_,P,M,E){P=P||0,M=M||0;var A=a([b,_]),h,p,k,w,R;A?(h=0,p=S,k=t):b<_?(h=b,k=_):(h=_,k=b),T<u?(w=T,R=u):(w=u,R=T);function O(F,U){return[F*Math.cos(U)+P,M-F*Math.sin(U)]}var j=Math.abs(k-h)<=S?0:1;function V(F,U,W){return"A"+[F,F]+" "+[0,j,W]+" "+O(F,U)}var H;return A?w===null?H="M"+O(R,h)+V(R,p,0)+V(R,k,0)+"Z":H="M"+O(w,h)+V(w,p,0)+V(w,k,0)+"ZM"+O(R,h)+V(R,p,1)+V(R,k,1)+"Z":w===null?(H="M"+O(R,h)+V(R,k,0),E&&(H+="L0,0Z")):H="M"+O(w,h)+"L"+O(R,h)+V(R,k,0)+"L"+O(w,k)+V(w,h,1)+"Z",H}function x(T,u,b,_,P){return f(null,T,u,b,_,P,0)}function y(T,u,b,_,P){return f(null,T,u,b,_,P,1)}function v(T,u,b,_,P,M){return f(T,u,b,_,P,M,1)}Z.exports={deg2rad:e,rad2deg:r,angleDelta:n,angleDist:s,isFullCircle:a,isAngleInsideSector:i,isPtInsideSector:l,pathArc:x,pathSector:y,pathAnnulus:v}}),b6=zt(Q=>{Q.isLeftAnchor=function(Z){return Z.xanchor==="left"||Z.xanchor==="auto"&&Z.x<=1/3},Q.isCenterAnchor=function(Z){return Z.xanchor==="center"||Z.xanchor==="auto"&&Z.x>1/3&&Z.x<2/3},Q.isRightAnchor=function(Z){return Z.xanchor==="right"||Z.xanchor==="auto"&&Z.x>=2/3},Q.isTopAnchor=function(Z){return Z.yanchor==="top"||Z.yanchor==="auto"&&Z.y>=2/3},Q.isMiddleAnchor=function(Z){retur
Line truncated
|
||||
`);if(un!==-1&&(gn=Kr.substr(un+1),Kr=Kr.substr(0,un)),qr&&(gn!==void 0&&(Kr==="00:00:00"||Kr==="00:00")?(Kr=gn,gn=""):Kr.length===8&&(Kr=Kr.replace(/:00$/,""))),gn)if(Br)Gr==="d"?Kr+=", "+gn:Kr=gn+(Kr?", "+Kr:"");else if(!Oe._inCalcTicks||Oe._prevDateHead!==gn)Oe._prevDateHead=gn,Kr+="<br>"+gn;else{var Le=Wi(Oe),pr=Oe._trueSide||Oe.side;(!Le&&pr==="top"||Le&&pr==="bottom")&&(Kr+="<br> ")}Ie.text=Kr}function sn(Oe,Ie,Br,qr,Gr){var Nr=Oe.dtick,Kr=Ie.x,gn=Oe.tickformat,un=typeof Nr=="string"&&Nr.charAt(0);if(Gr==="never"&&(Gr=""),qr&&un!=="L"&&(Nr="L3",un="L"),gn||un==="L")Ie.text=$e(Math.pow(10,Kr),Oe,Gr,qr);else if(g(Nr)||un==="D"&&(Oe.minorloglabels==="complete"||t.mod(Kr+.01,1)<.1)){Oe.minorloglabels==="complete"&&!(t.mod(Kr+.01,1)<.1)&&(Ie.fontSize*=.75);var Le=Math.pow(10,Kr).toExponential(0),pr=Le.split("e"),Wr=+pr[1],wn=Math.abs(Wr),Hn=Oe.exponentformat;Hn==="power"||ne(Hn)&&Hn!=="SI extended"&&ce(Wr)||ne(Hn)&&Hn==="SI extended"&&Te(Wr)?(Ie.text=pr[0],wn>0&&(Ie.text+="x10"),Ie.text==="1x10"&&(Ie.text="10"),Wr!==0&&Wr!==1&&(Ie.text+="<sup>"+(Wr>0?"":j)+wn+"</sup>"),Ie.fontSize*=1.25):(Hn==="e"||Hn==="E")&&wn>2?Ie.text=pr[0]+Hn+(Wr>0?"+":j)+wn:(Ie.text=$e(Math.pow(10,Kr),Oe,"","fakehover"),Nr==="D1"&&Oe._id.charAt(0)==="y"&&(Ie.dy-=Ie.fontSize/6))}else if(un==="D")Ie.text=Oe.minorloglabels==="none"?"":String(Math.round(Math.pow(10,t.mod(Kr,1)))),Ie.fontSize*=.75;else throw"unrecognized dtick "+String(Nr);if(Oe.dtick==="D1"){var ci=String(Ie.text).charAt(0);(ci==="0"||ci==="1")&&(Oe._id.charAt(0)==="y"?Ie.dx-=Ie.fontSize/4:(Ie.dy+=Ie.fontSize/2,Ie.dx+=(Oe.range[1]>Oe.range[0]?1:-1)*Ie.fontSize*(Kr<0?.5:.25)))}}function Pe(Oe,Ie){var Br=Oe._categories[Math.round(Ie.x)];Br===void 0&&(Br=""),Ie.text=String(Br)}function Yt(Oe,Ie,Br){var qr=Math.round(Ie.x),Gr=Oe._categories[qr]||[],Nr=Gr[1]===void 0?"":String(Gr[1]),Kr=Gr[0]===void 0?"":String(Gr[0]);Br?Ie.text=Kr+" - "+Nr:(Ie.text=Nr,Ie.text2=Kr)}function ie(Oe,Ie,Br,qr,Gr){Gr==="never"?Gr="":Oe.showexponent==="all"&&Math.abs(Ie.x/Oe.dtick)<1e-6&&(Gr="hide"),Ie.text=$e(Ie.x,Oe,Gr,qr)}function Lt(Oe,Ie,Br,qr,Gr){if(Oe.thetaunit==="radians"&&!Br){var Nr=Ie.x/180;if(Nr===0)Ie.text="0";else{var Kr=gt(Nr);if(Kr[1]>=100)Ie.text=$e(t.deg2rad(Ie.x),Oe,Gr,qr);else{var gn=Ie.x<0;Kr[1]===1?Kr[0]===1?Ie.text="π":Ie.text=Kr[0]+"π":Ie.text=["<sup>",Kr[0],"</sup>","⁄","<sub>",Kr[1],"</sub>","π"].join(""),gn&&(Ie.text=j+Ie.text)}}}else Ie.text=$e(Ie.x,Oe,Gr,qr)}function gt(Oe){function Ie(gn,un){return Math.abs(gn-un)<=1e-6}function Br(gn,un){return Ie(un,0)?gn:Br(un,gn%un)}function qr(gn){for(var un=1;!Ie(Math.round(gn*un)/un,gn);)un*=10;return un}var Gr=qr(Oe),Nr=Oe*Gr,Kr=Math.abs(Br(Nr,Gr));return[Math.round(Nr/Kr),Math.round(Gr/Kr)]}var St=["f","p","n","μ","m","","k","M","G","T"],Nt=["q","r","y","z","a",...St,"P","E","Z","Y","R","Q"],ne=Oe=>["SI","SI extended","B"].includes(Oe);function ce(Oe){return Oe>14||Oe<-15}function Te(Oe){return Oe>32||Oe<-30}function Ue(Oe,Ie){return ne(Ie)?!!(Ie==="SI extended"&&Te(Oe)||Ie!=="SI extended"&&ce(Oe)):!1}function $e(Oe,Ie,Br,qr){var Gr=Oe<0,Nr=Ie._tickround,Kr=Br||Ie.exponentformat||"B",gn=Ie._tickexponent,un=rt.getTickFormat(Ie),Le=Ie.separatethousands;if(qr){var pr={exponentformat:Kr,minexponent:Ie.minexponent,dtick:Ie.showexponent==="none"?Ie.dtick:g(Oe)&&Math.abs(Oe)||1,range:Ie.showexponent==="none"?Ie.range.map(Ie.r2d):[0,Oe||1]};$r(pr),Nr=(Number(pr._tickround)||0)+4,gn=pr._tickexponent,Ie.hoverformat&&(un=Ie.hoverformat)}if(un)return Ie._numFormat(un)(Oe).replace(/-/g,j);var Wr=Math.pow(10,-Nr)/2;if(Kr==="none"&&(gn=0),Oe=Math.abs(Oe),Oe<Wr)Oe="0",Gr=!1;else{if(Oe+=Wr,gn&&(Oe*=Math.pow(10,-gn),Nr+=gn),Nr===0)Oe=String(Math.floor(Oe));else if(Nr<0){Oe=String(Math.round(Oe)),Oe=Oe.substr(0,Oe.length+Nr);for(var wn=Nr;wn<0;wn++)Oe+="0"}else{Oe=String(Oe);var Hn=Oe.indexOf(".")+1;Hn&&(Oe=Oe.substr(0,Hn+Nr).replace(/\.?0+$/,""))}Oe=t.numSeparate(Oe,Ie._separators,Le)}if(gn&&Kr!=="hide"){Ue(gn,Kr)&&(Kr="power");var ci;gn<0?ci=j+-gn:Kr!=="power"?ci="+"+gn:ci=String(gn),Kr==="e"||Kr==="E"?Oe+=Kr+ci:Kr==="power"?Oe+="×10<sup>"+ci+"</sup>":Kr==="B"&&gn===9?Oe+="B":ne(Kr)&&(Oe+=Kr==="SI extended"?Nt[gn/3+10]:St[gn/3+5])}return Gr?j+Oe:Oe}rt.getTickFormat=function(Oe){var Ie;function Br(un){return typeof un!="string"?un:Number(un.replace("M",""))*P}function qr(un,Le){var pr=["L","D"];if(typeof un==typeof Le){if(typeof un=="number")return un-Le;var Wr=pr.indexOf(un.charAt(0)),wn=pr.indexOf(Le.charAt(0));return Wr===wn?Number(un.replace(/(L|D)/g,""))-Number(Le.replace(/(L|D)/g,"")):Wr-wn}else return typeof un=="number"?1:-1}function Gr(un,Le,pr){var Wr=pr||function(ci){return ci},wn=Le[0],Hn=Le[1];return(!wn&&typeof wn!="number"||Wr(wn)<=Wr(un))&&(!Hn&&typeof Hn!="number"||Wr(Hn)>=Wr(un))}function Nr(un,Le){var pr=Le[0]===null,Wr=Le[1]===null,wn=qr(un,Le[0])>=0,Hn=qr(un,Le[1])<=0;return(pr||wn)&&(Wr||Hn)}var Kr,gn;if(Oe.tickformatstops&&Oe.tickformatstops.length>0)switch(Oe.type){case"date":case"linear":{for(Ie=0;Ie<Oe.tickform
Line truncated
|
||||
`));var de;yt.med!==t?de=yt.med:yt.q1!==t?yt.q3!==t?de=(yt.q1+yt.q3)/2:de=yt.q1:yt.q3!==t?de=yt.q3:de=0,yt.med=de,yt.q1=yt.q3=de,yt.lf=yt.uf=de,yt.mean=yt.sd=de,yt.ln=yt.un=de,yt.min=yt.max=de}K=Math.min(K,yt.min),ft=Math.max(ft,yt.max),yt.pts2=mt.filter(at),h.push(yt)}}P._extremes[R._id]=g.findExtremes(R,[K,ft],{padded:!0})}else{var me=R.makeCalcdata(P,O),ue=a(J,lt),Tt=J.length,Pt=n(Tt);for(k=0;k<P._length;k++)if(rt=me[k],!!c(rt)){var Mt=S.findBin(U[k],ue);Mt>=0&&Mt<Tt&&(pt={v:rt,i:k},i(pt,P,k),Pt[Mt].push(pt))}var ee=1/0,ye=-1/0,le=P.quartilemethod,Me=le==="exclusive",He=le==="inclusive";for(k=0;k<Tt;k++)if(Pt[k].length>0){if(yt={},yt.pos=yt[V]=J[k],mt=yt.pts=Pt[k].sort(f),st=yt[O]=mt.map(x),tt=st.length,yt.min=st[0],yt.max=st[tt-1],yt.mean=S.mean(st,tt),yt.sd=S.stdev(st,tt,yt.mean)*P.sdmultiple,yt.med=S.interp(st,.5),tt%2&&(Me||He)){var Ge,cr;Me?(Ge=st.slice(0,tt/2),cr=st.slice(tt/2+1)):He&&(Ge=st.slice(0,tt/2+1),cr=st.slice(tt/2)),yt.q1=S.interp(Ge,.5),yt.q3=S.interp(cr,.5)}else yt.q1=S.interp(st,.25),yt.q3=S.interp(st,.75);yt.lf=y(yt,st,tt),yt.uf=v(yt,st,tt),yt.lo=T(yt),yt.uo=u(yt);var ur=b(yt,tt);yt.ln=yt.med-ur,yt.un=yt.med+ur,ee=Math.min(ee,yt.ln),ye=Math.max(ye,yt.un),yt.pts2=mt.filter(at),h.push(yt)}P.notched&&S.isTypedArray(me)&&(me=Array.from(me)),P._extremes[R._id]=g.findExtremes(R,P.notched?me.concat([ee,ye]):me,{padded:!0})}return l(h,P),h.length>0?(h[0].t={num:M[p],dPos:lt,posLetter:V,valLetter:O,labels:{med:e(_,"median:"),min:e(_,"min:"),q1:e(_,"q1:"),q3:e(_,"q3:"),max:e(_,"max:"),mean:P.boxmean==="sd"||P.sizemode==="sd"?e(_,"mean ± σ:").replace("σ",P.sdmultiple===1?"σ":P.sdmultiple+"σ"):e(_,"mean:"),lf:e(_,"lower fence:"),uf:e(_,"upper fence:")}},M[p]++,h):[{t:{empty:!0}}]};function r(_,P,M,E){var A=P in _,h=P+"0"in _,p="d"+P in _;if(A||h&&p){var k=M.makeCalcdata(_,P),w=z(_,M,P,k).vals;return[w,k]}var R;h?R=_[P+"0"]:"name"in _&&(M.type==="category"||c(_.name)&&["linear","log"].indexOf(M.type)!==-1||S.isDateTime(_.name)&&M.type==="date")?R=_.name:R=E;for(var O=M.type==="multicategory"?M.r2c_just_indices(R):M.d2c(R,0,_[P+"calendar"]),j=_._length,V=new Array(j),H=0;H<j;H++)V[H]=O;return[V]}function a(_,P){for(var M=_.length,E=new Array(M+1),A=0;A<M;A++)E[A]=_[A]-P;return E[M]=_[M-1]+P,E}function n(_){for(var P=new Array(_),M=0;M<_;M++)P[M]=[];return P}var s={text:"tx",hovertext:"htx"};function i(_,P,M){for(var E in s)S.isArrayOrTypedArray(P[E])&&(Array.isArray(M)?S.isArrayOrTypedArray(P[E][M[0]])&&(_[s[E]]=P[E][M[0]][M[1]]):_[s[E]]=P[E][M])}function l(_,P){if(S.isArrayOrTypedArray(P.selectedpoints))for(var M=0;M<_.length;M++){for(var E=_[M].pts||[],A={},h=0;h<E.length;h++)A[E[h].i]=h;S.tagSelected(E,P,A)}}function f(_,P){return _.v-P.v}function x(_){return _.v}function y(_,P,M){return M===0?_.q1:Math.min(_.q1,P[Math.min(S.findBin(2.5*_.q1-1.5*_.q3,P,!0)+1,M-1)])}function v(_,P,M){return M===0?_.q3:Math.max(_.q3,P[Math.max(S.findBin(2.5*_.q3-1.5*_.q1,P),0)])}function T(_){return 4*_.q1-3*_.q3}function u(_){return 4*_.q3-3*_.q1}function b(_,P){return P===0?0:1.57*(_.q3-_.q1)/Math.sqrt(P)}}),$6=zt((Q,Z)=>{var c=Es(),g=Mn(),z=_v().getAxisGroup,S=["v","h"];function t(r,a){for(var n=r.calcdata,s=a.xaxis,i=a.yaxis,l=0;l<S.length;l++){for(var f=S[l],x=f==="h"?i:s,y=[],v=0;v<n.length;v++){var T=n[v],u=T[0].t,b=T[0].trace;b.visible===!0&&(b.type==="box"||b.type==="candlestick")&&!u.empty&&(b.orientation||"v")===f&&b.xaxis===s._id&&b.yaxis===i._id&&y.push(v)}e("box",r,y,x)}}function e(r,a,n,s){var i=a.calcdata,l=a._fullLayout,f=s._id,x=f.charAt(0),y,v,T,u=[],b=0;for(y=0;y<n.length;y++)for(T=i[n[y]],v=0;v<T.length;v++)u.push(s.c2l(T[v].pos,!0)),b+=(T[v].pts2||[]).length;if(u.length){var _=g.distinctVals(u);(s.type==="category"||s.type==="multicategory")&&(_.minDiff=1);var P=_.minDiff/2;c.minDtick(s,_.minDiff,_.vals[0],!0);var M=r==="violin"?"_numViolins":"_numBoxes",E=l[M],A=l[r+"mode"]==="group"&&E>1,h=1-l[r+"gap"],p=1-l[r+"groupgap"];for(y=0;y<n.length;y++){T=i[n[y]];var k=T[0].trace,w=T[0].t,R=k.width,O=k.side,j,V,H,F;if(R)j=V=F=R/2,H=0;else if(j=P,A){var U=z(l,s._id)+k.orientation,W=l._alignmentOpts[U]||{},$=W[k.alignmentgroup]||{},J=Object.keys($.offsetGroups||{}).length,lt=J||E,yt=J?k._offsetIndex:w.num;V=j*h*p/lt,H=2*j*(-.5+(yt+.5)/lt)*h,F=j*h/lt}else V=j*h*p,H=0,F=j;w.dPos=j,w.bPos=H,w.bdPos=V,w.wHover=F;var mt,st,tt=H+V,pt,rt,at,vt,it,K,ft=!!R,ut=(k.boxpoints||k.points)&&b>0;if(O==="positive"?(mt=j*(R?1:.5),pt=tt,st=pt=H):O==="negative"?(mt=pt=H,st=j*(R?1:.5),rt=tt):(mt=st=j,pt=rt=tt),ut){var kt=k.pointpos,Ot=k.jitter,It=k.marker.size/2,qt=0;kt+Ot>=0&&(qt=tt*(kt+Ot),qt>mt?(ft=!0,it=It,at=qt):qt>pt&&(it=It,at=mt)),qt<=mt&&(at=mt);var $t=0;kt-Ot<=0&&($t=-tt*(kt-Ot),$t>st?(ft=!0,K=It,vt=$t):$t>rt&&(K=It,vt=st)),$t<=st&&(vt=st)}else at=mt,vt=st;var Qt=new Array(T.length);for(v=0;v<T.length;v++)Qt[v]=T[v].pos;k._extremes[f]=c.findExtremes(s,Qt,{padded:ft,vpadminus:vt,vpadplus:at,vpadLinearized:!0,ppadminus:{x:K,y:it}[x],ppadplus:{x:it,y:K}[x]})}}}Z.exports={crossTraceCalc:t,setPositionOffset:e}
Line truncated
|
||||
`+w($.dayMonthYear,V,U,W);return w(H,V,U,W)};var j=3*e;Q.incrementMonth=function(V,H,F){F=v(F)&&F;var U=z(V,e);if(V=Math.round(V-U),F)try{var W=Math.round(V/e)+s,$=i.getComponentMethod("calendars","getCal")(F),J=$.fromJD(W);return H%12?$.add(J,H,"m"):$.add(J,H/12,"y"),(J.toJD()-s)*e+U}catch{g.error("invalid ms "+V+" in calendar "+F)}var lt=new Date(V+j);return lt.setUTCMonth(lt.getUTCMonth()+H)+U-j},Q.findExactDates=function(V,H){for(var F=0,U=0,W=0,$=0,J,lt,yt=v(H)&&i.getComponentMethod("calendars","getCal")(H),mt=0;mt<V.length;mt++){if(lt=V[mt],!c(lt)){$++;continue}if(!(lt%e))if(yt)try{J=yt.fromJD(lt/e+s),J.day()===1?J.month()===1?F++:U++:W++}catch{}else J=new Date(lt),J.getUTCDate()===1?J.getUTCMonth()===0?F++:U++:W++}U+=F,W+=U;var st=V.length-$;return{exactYears:F/st,exactMonths:U/st,exactDays:W/st}}}),S1=Rt((Q,Z)=>{Z.exports=function(c){return c}}),I_=Rt(Q=>{var Z=ti(),c=is(),g=S1(),z=Pi().BADNUM,S=1e-9;Q.findBin=function(n,s,i){if(Z(s.start))return i?Math.ceil((n-s.start)/s.size-S)-1:Math.floor((n-s.start)/s.size+S);var l=0,f=s.length,x=0,y=f>1?(s[f-1]-s[0])/(f-1):1,v,T;for(y>=0?T=i?t:e:T=i?a:r,n+=y*S*(i?-1:1)*(y>=0?1:-1);l<f&&x++<100;)v=Math.floor((l+f)/2),T(s[v],n)?l=v+1:f=v;return x>90&&c.log("Long binary search..."),l-1};function t(n,s){return n<s}function e(n,s){return n<=s}function r(n,s){return n>s}function a(n,s){return n>=s}Q.sorterAsc=function(n,s){return n-s},Q.sorterDes=function(n,s){return s-n},Q.distinctVals=function(n){var s=n.slice();s.sort(Q.sorterAsc);var i;for(i=s.length-1;i>-1&&s[i]===z;i--);for(var l=s[i]-s[0]||1,f=l/(i||1)/1e4,x=[],y,v=0;v<=i;v++){var T=s[v],u=T-y;y===void 0?(x.push(T),y=T):u>f&&(l=Math.min(l,u),x.push(T),y=T)}return{vals:x,minDiff:l}},Q.roundUp=function(n,s,i){for(var l=0,f=s.length-1,x,y=0,v=i?0:1,T=i?1:0,u=i?Math.ceil:Math.floor;l<f&&y++<100;)x=u((l+f)/2),s[x]<=n?l=x+v:f=x-T;return s[l]},Q.sort=function(n,s){for(var i=0,l=0,f=1;f<n.length;f++){var x=s(n[f],n[f-1]);if(x<0?i=1:x>0&&(l=1),i&&l)return n.sort(s)}return l?n:n.reverse()},Q.findIndexOfMin=function(n,s){s=s||g;for(var i=1/0,l,f=0;f<n.length;f++){var x=s(n[f]);x<i&&(i=x,l=f)}return l}}),J0=Rt((Q,Z)=>{Z.exports=function(c){return Object.keys(c).sort()}}),x6=Rt(Q=>{var Z=ti(),c=ea().isArrayOrTypedArray;Q.aggNums=function(g,z,S,t){var e,r;if((!t||t>S.length)&&(t=S.length),Z(z)||(z=!1),c(S[0])){for(r=new Array(t),e=0;e<t;e++)r[e]=Q.aggNums(g,z,S[e]);S=r}for(e=0;e<t;e++)Z(z)?Z(S[e])&&(z=g(+z,+S[e])):z=S[e];return z},Q.len=function(g){return Q.aggNums(function(z){return z+1},0,g)},Q.mean=function(g,z){return z||(z=Q.len(g)),Q.aggNums(function(S,t){return S+t},0,g)/z},Q.geometricMean=function(g,z){return z||(z=Q.len(g)),Math.pow(Q.aggNums(function(S,t){return S*t},1,g),1/z)},Q.midRange=function(g){if(!(g===void 0||g.length===0))return(Q.aggNums(Math.max,null,g)+Q.aggNums(Math.min,null,g))/2},Q.variance=function(g,z,S){return z||(z=Q.len(g)),Z(S)||(S=Q.mean(g,z)),Q.aggNums(function(t,e){return t+Math.pow(e-S,2)},0,g)/z},Q.stdev=function(g,z,S){return Math.sqrt(Q.variance(g,z,S))},Q.median=function(g){var z=g.slice().sort();return Q.interp(z,.5)},Q.interp=function(g,z){if(!Z(z))throw"n should be a finite number";if(z=z*g.length-.5,z<0)return g[0];if(z>g.length-1)return g[g.length-1];var S=z%1;return S*g[Math.ceil(z)]+(1-S)*g[Math.floor(z)]}}),_6=Rt((Q,Z)=>{var c=ra(),g=c.mod,z=c.modHalf,S=Math.PI,t=2*S;function e(T){return T/180*S}function r(T){return T/S*180}function a(T){return Math.abs(T[1]-T[0])>t-1e-14}function n(T,u){return z(u-T,t)}function s(T,u){return Math.abs(n(T,u))}function i(T,u){if(a(u))return!0;var b,_;u[0]<u[1]?(b=u[0],_=u[1]):(b=u[1],_=u[0]),b=g(b,t),_=g(_,t),b>_&&(_+=t);var P=g(T,t),M=P+t;return P>=b&&P<=_||M>=b&&M<=_}function l(T,u,b,_){if(!i(u,_))return!1;var P,M;return b[0]<b[1]?(P=b[0],M=b[1]):(P=b[1],M=b[0]),T>=P&&T<=M}function f(T,u,b,_,P,M,E){P=P||0,M=M||0;var A=a([b,_]),h,p,k,w,R;A?(h=0,p=S,k=t):b<_?(h=b,k=_):(h=_,k=b),T<u?(w=T,R=u):(w=u,R=T);function O(F,U){return[F*Math.cos(U)+P,M-F*Math.sin(U)]}var j=Math.abs(k-h)<=S?0:1;function V(F,U,W){return"A"+[F,F]+" "+[0,j,W]+" "+O(F,U)}var H;return A?w===null?H="M"+O(R,h)+V(R,p,0)+V(R,k,0)+"Z":H="M"+O(w,h)+V(w,p,0)+V(w,k,0)+"ZM"+O(R,h)+V(R,p,1)+V(R,k,1)+"Z":w===null?(H="M"+O(R,h)+V(R,k,0),E&&(H+="L0,0Z")):H="M"+O(w,h)+"L"+O(R,h)+V(R,k,0)+"L"+O(w,k)+V(w,h,1)+"Z",H}function x(T,u,b,_,P){return f(null,T,u,b,_,P,0)}function y(T,u,b,_,P){return f(null,T,u,b,_,P,1)}function v(T,u,b,_,P,M){return f(T,u,b,_,P,M,1)}Z.exports={deg2rad:e,rad2deg:r,angleDelta:n,angleDist:s,isFullCircle:a,isAngleInsideSector:i,isPtInsideSector:l,pathArc:x,pathSector:y,pathAnnulus:v}}),b6=Rt(Q=>{Q.isLeftAnchor=function(Z){return Z.xanchor==="left"||Z.xanchor==="auto"&&Z.x<=1/3},Q.isCenterAnchor=function(Z){return Z.xanchor==="center"||Z.xanchor==="auto"&&Z.x>1/3&&Z.x<2/3},Q.isRightAnchor=function(Z){return Z.xanchor==="right"||Z.xanchor==="auto"&&Z.x>=2/3},Q.isTopAnchor=function(Z){return Z.yanchor==="top"||Z.yanchor==="auto"&&Z.y>=2/3},Q.isMiddleAnchor=function(Z){retur
Line truncated
|
||||
`);if(ln!==-1&&(vn=Xr.substr(ln+1),Xr=Xr.substr(0,ln)),Zr&&(vn!==void 0&&(Xr==="00:00:00"||Xr==="00:00")?(Xr=vn,vn=""):Xr.length===8&&(Xr=Xr.replace(/:00$/,""))),vn)if(Br)Kr==="d"?Xr+=", "+vn:Xr=vn+(Xr?", "+Xr:"");else if(!Oe._inCalcTicks||Oe._prevDateHead!==vn)Oe._prevDateHead=vn,Xr+="<br>"+vn;else{var Le=Wi(Oe),pr=Oe._trueSide||Oe.side;(!Le&&pr==="top"||Le&&pr==="bottom")&&(Xr+="<br> ")}Ie.text=Xr}function on(Oe,Ie,Br,Zr,Kr){var Nr=Oe.dtick,Xr=Ie.x,vn=Oe.tickformat,ln=typeof Nr=="string"&&Nr.charAt(0);if(Kr==="never"&&(Kr=""),Zr&&ln!=="L"&&(Nr="L3",ln="L"),vn||ln==="L")Ie.text=$e(Math.pow(10,Xr),Oe,Kr,Zr);else if(g(Nr)||ln==="D"&&(Oe.minorloglabels==="complete"||t.mod(Xr+.01,1)<.1)){Oe.minorloglabels==="complete"&&!(t.mod(Xr+.01,1)<.1)&&(Ie.fontSize*=.75);var Le=Math.pow(10,Xr).toExponential(0),pr=Le.split("e"),Wr=+pr[1],kn=Math.abs(Wr),$n=Oe.exponentformat;$n==="power"||ne($n)&&$n!=="SI extended"&&ce(Wr)||ne($n)&&$n==="SI extended"&&Te(Wr)?(Ie.text=pr[0],kn>0&&(Ie.text+="x10"),Ie.text==="1x10"&&(Ie.text="10"),Wr!==0&&Wr!==1&&(Ie.text+="<sup>"+(Wr>0?"":j)+kn+"</sup>"),Ie.fontSize*=1.25):($n==="e"||$n==="E")&&kn>2?Ie.text=pr[0]+$n+(Wr>0?"+":j)+kn:(Ie.text=$e(Math.pow(10,Xr),Oe,"","fakehover"),Nr==="D1"&&Oe._id.charAt(0)==="y"&&(Ie.dy-=Ie.fontSize/6))}else if(ln==="D")Ie.text=Oe.minorloglabels==="none"?"":String(Math.round(Math.pow(10,t.mod(Xr,1)))),Ie.fontSize*=.75;else throw"unrecognized dtick "+String(Nr);if(Oe.dtick==="D1"){var fi=String(Ie.text).charAt(0);(fi==="0"||fi==="1")&&(Oe._id.charAt(0)==="y"?Ie.dx-=Ie.fontSize/4:(Ie.dy+=Ie.fontSize/2,Ie.dx+=(Oe.range[1]>Oe.range[0]?1:-1)*Ie.fontSize*(Xr<0?.5:.25)))}}function Pe(Oe,Ie){var Br=Oe._categories[Math.round(Ie.x)];Br===void 0&&(Br=""),Ie.text=String(Br)}function Yt(Oe,Ie,Br){var Zr=Math.round(Ie.x),Kr=Oe._categories[Zr]||[],Nr=Kr[1]===void 0?"":String(Kr[1]),Xr=Kr[0]===void 0?"":String(Kr[0]);Br?Ie.text=Xr+" - "+Nr:(Ie.text=Nr,Ie.text2=Xr)}function ie(Oe,Ie,Br,Zr,Kr){Kr==="never"?Kr="":Oe.showexponent==="all"&&Math.abs(Ie.x/Oe.dtick)<1e-6&&(Kr="hide"),Ie.text=$e(Ie.x,Oe,Kr,Zr)}function Lt(Oe,Ie,Br,Zr,Kr){if(Oe.thetaunit==="radians"&&!Br){var Nr=Ie.x/180;if(Nr===0)Ie.text="0";else{var Xr=gt(Nr);if(Xr[1]>=100)Ie.text=$e(t.deg2rad(Ie.x),Oe,Kr,Zr);else{var vn=Ie.x<0;Xr[1]===1?Xr[0]===1?Ie.text="π":Ie.text=Xr[0]+"π":Ie.text=["<sup>",Xr[0],"</sup>","⁄","<sub>",Xr[1],"</sub>","π"].join(""),vn&&(Ie.text=j+Ie.text)}}}else Ie.text=$e(Ie.x,Oe,Kr,Zr)}function gt(Oe){function Ie(vn,ln){return Math.abs(vn-ln)<=1e-6}function Br(vn,ln){return Ie(ln,0)?vn:Br(ln,vn%ln)}function Zr(vn){for(var ln=1;!Ie(Math.round(vn*ln)/ln,vn);)ln*=10;return ln}var Kr=Zr(Oe),Nr=Oe*Kr,Xr=Math.abs(Br(Nr,Kr));return[Math.round(Nr/Xr),Math.round(Kr/Xr)]}var St=["f","p","n","μ","m","","k","M","G","T"],jt=["q","r","y","z","a",...St,"P","E","Z","Y","R","Q"],ne=Oe=>["SI","SI extended","B"].includes(Oe);function ce(Oe){return Oe>14||Oe<-15}function Te(Oe){return Oe>32||Oe<-30}function Ue(Oe,Ie){return ne(Ie)?!!(Ie==="SI extended"&&Te(Oe)||Ie!=="SI extended"&&ce(Oe)):!1}function $e(Oe,Ie,Br,Zr){var Kr=Oe<0,Nr=Ie._tickround,Xr=Br||Ie.exponentformat||"B",vn=Ie._tickexponent,ln=rt.getTickFormat(Ie),Le=Ie.separatethousands;if(Zr){var pr={exponentformat:Xr,minexponent:Ie.minexponent,dtick:Ie.showexponent==="none"?Ie.dtick:g(Oe)&&Math.abs(Oe)||1,range:Ie.showexponent==="none"?Ie.range.map(Ie.r2d):[0,Oe||1]};$r(pr),Nr=(Number(pr._tickround)||0)+4,vn=pr._tickexponent,Ie.hoverformat&&(ln=Ie.hoverformat)}if(ln)return Ie._numFormat(ln)(Oe).replace(/-/g,j);var Wr=Math.pow(10,-Nr)/2;if(Xr==="none"&&(vn=0),Oe=Math.abs(Oe),Oe<Wr)Oe="0",Kr=!1;else{if(Oe+=Wr,vn&&(Oe*=Math.pow(10,-vn),Nr+=vn),Nr===0)Oe=String(Math.floor(Oe));else if(Nr<0){Oe=String(Math.round(Oe)),Oe=Oe.substr(0,Oe.length+Nr);for(var kn=Nr;kn<0;kn++)Oe+="0"}else{Oe=String(Oe);var $n=Oe.indexOf(".")+1;$n&&(Oe=Oe.substr(0,$n+Nr).replace(/\.?0+$/,""))}Oe=t.numSeparate(Oe,Ie._separators,Le)}if(vn&&Xr!=="hide"){Ue(vn,Xr)&&(Xr="power");var fi;vn<0?fi=j+-vn:Xr!=="power"?fi="+"+vn:fi=String(vn),Xr==="e"||Xr==="E"?Oe+=Xr+fi:Xr==="power"?Oe+="×10<sup>"+fi+"</sup>":Xr==="B"&&vn===9?Oe+="B":ne(Xr)&&(Oe+=Xr==="SI extended"?jt[vn/3+10]:St[vn/3+5])}return Kr?j+Oe:Oe}rt.getTickFormat=function(Oe){var Ie;function Br(ln){return typeof ln!="string"?ln:Number(ln.replace("M",""))*P}function Zr(ln,Le){var pr=["L","D"];if(typeof ln==typeof Le){if(typeof ln=="number")return ln-Le;var Wr=pr.indexOf(ln.charAt(0)),kn=pr.indexOf(Le.charAt(0));return Wr===kn?Number(ln.replace(/(L|D)/g,""))-Number(Le.replace(/(L|D)/g,"")):Wr-kn}else return typeof ln=="number"?1:-1}function Kr(ln,Le,pr){var Wr=pr||function(fi){return fi},kn=Le[0],$n=Le[1];return(!kn&&typeof kn!="number"||Wr(kn)<=Wr(ln))&&(!$n&&typeof $n!="number"||Wr($n)>=Wr(ln))}function Nr(ln,Le){var pr=Le[0]===null,Wr=Le[1]===null,kn=Zr(ln,Le[0])>=0,$n=Zr(ln,Le[1])<=0;return(pr||kn)&&(Wr||$n)}var Xr,vn;if(Oe.tickformatstops&&Oe.tickformatstops.length>0)switch(Oe.type){case"date":case"linear":{for(Ie=0;Ie<Oe.tickform
Line truncated
|
||||
`));var de;yt.med!==t?de=yt.med:yt.q1!==t?yt.q3!==t?de=(yt.q1+yt.q3)/2:de=yt.q1:yt.q3!==t?de=yt.q3:de=0,yt.med=de,yt.q1=yt.q3=de,yt.lf=yt.uf=de,yt.mean=yt.sd=de,yt.ln=yt.un=de,yt.min=yt.max=de}K=Math.min(K,yt.min),ft=Math.max(ft,yt.max),yt.pts2=mt.filter(at),h.push(yt)}}P._extremes[R._id]=g.findExtremes(R,[K,ft],{padded:!0})}else{var me=R.makeCalcdata(P,O),ue=a(J,lt),Tt=J.length,Pt=n(Tt);for(k=0;k<P._length;k++)if(rt=me[k],!!c(rt)){var Mt=S.findBin(U[k],ue);Mt>=0&&Mt<Tt&&(pt={v:rt,i:k},i(pt,P,k),Pt[Mt].push(pt))}var ee=1/0,ye=-1/0,le=P.quartilemethod,Me=le==="exclusive",He=le==="inclusive";for(k=0;k<Tt;k++)if(Pt[k].length>0){if(yt={},yt.pos=yt[V]=J[k],mt=yt.pts=Pt[k].sort(f),st=yt[O]=mt.map(x),tt=st.length,yt.min=st[0],yt.max=st[tt-1],yt.mean=S.mean(st,tt),yt.sd=S.stdev(st,tt,yt.mean)*P.sdmultiple,yt.med=S.interp(st,.5),tt%2&&(Me||He)){var Ge,cr;Me?(Ge=st.slice(0,tt/2),cr=st.slice(tt/2+1)):He&&(Ge=st.slice(0,tt/2+1),cr=st.slice(tt/2)),yt.q1=S.interp(Ge,.5),yt.q3=S.interp(cr,.5)}else yt.q1=S.interp(st,.25),yt.q3=S.interp(st,.75);yt.lf=y(yt,st,tt),yt.uf=v(yt,st,tt),yt.lo=T(yt),yt.uo=u(yt);var ur=b(yt,tt);yt.ln=yt.med-ur,yt.un=yt.med+ur,ee=Math.min(ee,yt.ln),ye=Math.max(ye,yt.un),yt.pts2=mt.filter(at),h.push(yt)}P.notched&&S.isTypedArray(me)&&(me=Array.from(me)),P._extremes[R._id]=g.findExtremes(R,P.notched?me.concat([ee,ye]):me,{padded:!0})}return l(h,P),h.length>0?(h[0].t={num:M[p],dPos:lt,posLetter:V,valLetter:O,labels:{med:e(_,"median:"),min:e(_,"min:"),q1:e(_,"q1:"),q3:e(_,"q3:"),max:e(_,"max:"),mean:P.boxmean==="sd"||P.sizemode==="sd"?e(_,"mean ± σ:").replace("σ",P.sdmultiple===1?"σ":P.sdmultiple+"σ"):e(_,"mean:"),lf:e(_,"lower fence:"),uf:e(_,"upper fence:")}},M[p]++,h):[{t:{empty:!0}}]};function r(_,P,M,E){var A=P in _,h=P+"0"in _,p="d"+P in _;if(A||h&&p){var k=M.makeCalcdata(_,P),w=z(_,M,P,k).vals;return[w,k]}var R;h?R=_[P+"0"]:"name"in _&&(M.type==="category"||c(_.name)&&["linear","log"].indexOf(M.type)!==-1||S.isDateTime(_.name)&&M.type==="date")?R=_.name:R=E;for(var O=M.type==="multicategory"?M.r2c_just_indices(R):M.d2c(R,0,_[P+"calendar"]),j=_._length,V=new Array(j),H=0;H<j;H++)V[H]=O;return[V]}function a(_,P){for(var M=_.length,E=new Array(M+1),A=0;A<M;A++)E[A]=_[A]-P;return E[M]=_[M-1]+P,E}function n(_){for(var P=new Array(_),M=0;M<_;M++)P[M]=[];return P}var s={text:"tx",hovertext:"htx"};function i(_,P,M){for(var E in s)S.isArrayOrTypedArray(P[E])&&(Array.isArray(M)?S.isArrayOrTypedArray(P[E][M[0]])&&(_[s[E]]=P[E][M[0]][M[1]]):_[s[E]]=P[E][M])}function l(_,P){if(S.isArrayOrTypedArray(P.selectedpoints))for(var M=0;M<_.length;M++){for(var E=_[M].pts||[],A={},h=0;h<E.length;h++)A[E[h].i]=h;S.tagSelected(E,P,A)}}function f(_,P){return _.v-P.v}function x(_){return _.v}function y(_,P,M){return M===0?_.q1:Math.min(_.q1,P[Math.min(S.findBin(2.5*_.q1-1.5*_.q3,P,!0)+1,M-1)])}function v(_,P,M){return M===0?_.q3:Math.max(_.q3,P[Math.max(S.findBin(2.5*_.q3-1.5*_.q1,P),0)])}function T(_){return 4*_.q1-3*_.q3}function u(_){return 4*_.q3-3*_.q1}function b(_,P){return P===0?0:1.57*(_.q3-_.q1)/Math.sqrt(P)}}),$6=Rt((Q,Z)=>{var c=Ls(),g=Cn(),z=_v().getAxisGroup,S=["v","h"];function t(r,a){for(var n=r.calcdata,s=a.xaxis,i=a.yaxis,l=0;l<S.length;l++){for(var f=S[l],x=f==="h"?i:s,y=[],v=0;v<n.length;v++){var T=n[v],u=T[0].t,b=T[0].trace;b.visible===!0&&(b.type==="box"||b.type==="candlestick")&&!u.empty&&(b.orientation||"v")===f&&b.xaxis===s._id&&b.yaxis===i._id&&y.push(v)}e("box",r,y,x)}}function e(r,a,n,s){var i=a.calcdata,l=a._fullLayout,f=s._id,x=f.charAt(0),y,v,T,u=[],b=0;for(y=0;y<n.length;y++)for(T=i[n[y]],v=0;v<T.length;v++)u.push(s.c2l(T[v].pos,!0)),b+=(T[v].pts2||[]).length;if(u.length){var _=g.distinctVals(u);(s.type==="category"||s.type==="multicategory")&&(_.minDiff=1);var P=_.minDiff/2;c.minDtick(s,_.minDiff,_.vals[0],!0);var M=r==="violin"?"_numViolins":"_numBoxes",E=l[M],A=l[r+"mode"]==="group"&&E>1,h=1-l[r+"gap"],p=1-l[r+"groupgap"];for(y=0;y<n.length;y++){T=i[n[y]];var k=T[0].trace,w=T[0].t,R=k.width,O=k.side,j,V,H,F;if(R)j=V=F=R/2,H=0;else if(j=P,A){var U=z(l,s._id)+k.orientation,W=l._alignmentOpts[U]||{},$=W[k.alignmentgroup]||{},J=Object.keys($.offsetGroups||{}).length,lt=J||E,yt=J?k._offsetIndex:w.num;V=j*h*p/lt,H=2*j*(-.5+(yt+.5)/lt)*h,F=j*h/lt}else V=j*h*p,H=0,F=j;w.dPos=j,w.bPos=H,w.bdPos=V,w.wHover=F;var mt,st,tt=H+V,pt,rt,at,vt,it,K,ft=!!R,ut=(k.boxpoints||k.points)&&b>0;if(O==="positive"?(mt=j*(R?1:.5),pt=tt,st=pt=H):O==="negative"?(mt=pt=H,st=j*(R?1:.5),rt=tt):(mt=st=j,pt=rt=tt),ut){var kt=k.pointpos,It=k.jitter,zt=k.marker.size/2,qt=0;kt+It>=0&&(qt=tt*(kt+It),qt>mt?(ft=!0,it=zt,at=qt):qt>pt&&(it=zt,at=mt)),qt<=mt&&(at=mt);var $t=0;kt-It<=0&&($t=-tt*(kt-It),$t>st?(ft=!0,K=zt,vt=$t):$t>rt&&(K=zt,vt=st)),$t<=st&&(vt=st)}else at=mt,vt=st;var Qt=new Array(T.length);for(v=0;v<T.length;v++)Qt[v]=T[v].pos;k._extremes[f]=c.findExtremes(s,Qt,{padded:ft,vpadminus:vt,vpadplus:at,vpadLinearized:!0,ppadminus:{x:K,y:it}[x],ppadplus:{x:it,y:K}[x]})}}}Z.exports={crossTraceCalc:t,setPositionOffset:e}
Line truncated
|
||||
`)>-1&&(st?pt=pt.split(`
|
||||
`).map(function(at){return" "+at}).join(`
|
||||
`).slice(2):pt=`
|
||||
@@ -147,7 +147,7 @@ function CG(d,o){for(var C=0;C<o.length;C++){const B=o[C];if(typeof B!="string"&
|
||||
`))):pt=$.stylize("[Circular]","special")),M(tt)){if(st&&mt.match(/^\d+$/))return pt;tt=JSON.stringify(""+mt),tt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(tt=tt.slice(1,-1),tt=$.stylize(tt,"name")):(tt=tt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),tt=$.stylize(tt,"string"))}return tt+": "+pt}function x($,J,lt){var yt=0,mt=$.reduce(function(st,tt){return yt++,tt.indexOf(`
|
||||
`)>=0&&yt++,st+tt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return mt>60?lt[0]+(J===""?"":J+`
|
||||
`)+" "+$.join(`,
|
||||
`)+" "+lt[1]:lt[0]+J+" "+$.join(", ")+" "+lt[1]}Q.types=WM();function y($){return Array.isArray($)}Q.isArray=y;function v($){return typeof $=="boolean"}Q.isBoolean=v;function T($){return $===null}Q.isNull=T;function u($){return $==null}Q.isNullOrUndefined=u;function b($){return typeof $=="number"}Q.isNumber=b;function _($){return typeof $=="string"}Q.isString=_;function P($){return typeof $=="symbol"}Q.isSymbol=P;function M($){return $===void 0}Q.isUndefined=M;function E($){return A($)&&R($)==="[object RegExp]"}Q.isRegExp=E,Q.types.isRegExp=E;function A($){return typeof $=="object"&&$!==null}Q.isObject=A;function h($){return A($)&&R($)==="[object Date]"}Q.isDate=h,Q.types.isDate=h;function p($){return A($)&&(R($)==="[object Error]"||$ instanceof Error)}Q.isError=p,Q.types.isNativeError=p;function k($){return typeof $=="function"}Q.isFunction=k;function w($){return $===null||typeof $=="boolean"||typeof $=="number"||typeof $=="string"||typeof $=="symbol"||typeof $>"u"}Q.isPrimitive=w,Q.isBuffer=$M();function R($){return Object.prototype.toString.call($)}function O($){return $<10?"0"+$.toString(10):$.toString(10)}var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var $=new Date,J=[O($.getHours()),O($.getMinutes()),O($.getSeconds())].join(":");return[$.getDate(),j[$.getMonth()],J].join(" ")}Q.log=function(){console.log("%s - %s",V(),Q.format.apply(Q,arguments))},Q.inherits=kv(),Q._extend=function($,J){if(!J||!A(J))return $;for(var lt=Object.keys(J),yt=lt.length;yt--;)$[lt[yt]]=J[lt[yt]];return $};function H($,J){return Object.prototype.hasOwnProperty.call($,J)}var F=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Q.promisify=function($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');if(F&&$[F]){var J=$[F];if(typeof J!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(){for(var lt,yt,mt=new Promise(function(pt,rt){lt=pt,yt=rt}),st=[],tt=0;tt<arguments.length;tt++)st.push(arguments[tt]);st.push(function(pt,rt){pt?yt(pt):lt(rt)});try{$.apply(this,st)}catch(pt){yt(pt)}return mt}return Object.setPrototypeOf(J,Object.getPrototypeOf($)),F&&Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(J,Z($))},Q.promisify.custom=F;function U($,J){if(!$){var lt=new Error("Promise was rejected with a falsy value");lt.reason=$,$=lt}return J($)}function W($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');function J(){for(var lt=[],yt=0;yt<arguments.length;yt++)lt.push(arguments[yt]);var mt=lt.pop();if(typeof mt!="function")throw new TypeError("The last argument must be of type Function");var st=this,tt=function(){return mt.apply(st,arguments)};$.apply(this,lt).then(function(pt){process.nextTick(tt.bind(null,null,pt))},function(pt){process.nextTick(U.bind(null,pt,tt))})}return Object.setPrototypeOf(J,Object.getPrototypeOf($)),Object.defineProperties(J,Z($)),J}Q.callbackify=W}),mN=zt((Q,Z)=>{function c(f,x){var y=Object.keys(f);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(f);x&&(v=v.filter(function(T){return Object.getOwnPropertyDescriptor(f,T).enumerable})),y.push.apply(y,v)}return y}function g(f){for(var x=1;x<arguments.length;x++){var y=arguments[x]!=null?arguments[x]:{};x%2?c(Object(y),!0).forEach(function(v){z(f,v,y[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(y)):c(Object(y)).forEach(function(v){Object.defineProperty(f,v,Object.getOwnPropertyDescriptor(y,v))})}return f}function z(f,x,y){return x in f?Object.defineProperty(f,x,{value:y,enumerable:!0,configurable:!0,writable:!0}):f[x]=y,f}function S(f,x){if(!(f instanceof x))throw new TypeError("Cannot call a class as a function")}function t(f,x){for(var y=0;y<x.length;y++){var v=x[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(f,v.key,v)}}function e(f,x,y){return x&&t(f.prototype,x),f}var r=lx(),a=r.Buffer,n=qM(),s=n.inspect,i=s&&s.custom||"inspect";function l(f,x,y){a.prototype.copy.call(f,x,y)}Z.exports=function(){function f(){S(this,f),this.head=null,this.tail=null,this.length=0}return e(f,[{key:"push",value:function(x){var y={data:x,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(x){var y={data:x,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(x){if(this.length===0)return"";for(var y=this.head,v=""+y.data;y=y.next;)v+=x+y.data;return v}},{key:"concat",value:fun
Line truncated
|
||||
`)+" "+lt[1]:lt[0]+J+" "+$.join(", ")+" "+lt[1]}Q.types=WM();function y($){return Array.isArray($)}Q.isArray=y;function v($){return typeof $=="boolean"}Q.isBoolean=v;function T($){return $===null}Q.isNull=T;function u($){return $==null}Q.isNullOrUndefined=u;function b($){return typeof $=="number"}Q.isNumber=b;function _($){return typeof $=="string"}Q.isString=_;function P($){return typeof $=="symbol"}Q.isSymbol=P;function M($){return $===void 0}Q.isUndefined=M;function E($){return A($)&&R($)==="[object RegExp]"}Q.isRegExp=E,Q.types.isRegExp=E;function A($){return typeof $=="object"&&$!==null}Q.isObject=A;function h($){return A($)&&R($)==="[object Date]"}Q.isDate=h,Q.types.isDate=h;function p($){return A($)&&(R($)==="[object Error]"||$ instanceof Error)}Q.isError=p,Q.types.isNativeError=p;function k($){return typeof $=="function"}Q.isFunction=k;function w($){return $===null||typeof $=="boolean"||typeof $=="number"||typeof $=="string"||typeof $=="symbol"||typeof $>"u"}Q.isPrimitive=w,Q.isBuffer=$M();function R($){return Object.prototype.toString.call($)}function O($){return $<10?"0"+$.toString(10):$.toString(10)}var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var $=new Date,J=[O($.getHours()),O($.getMinutes()),O($.getSeconds())].join(":");return[$.getDate(),j[$.getMonth()],J].join(" ")}Q.log=function(){console.log("%s - %s",V(),Q.format.apply(Q,arguments))},Q.inherits=kv(),Q._extend=function($,J){if(!J||!A(J))return $;for(var lt=Object.keys(J),yt=lt.length;yt--;)$[lt[yt]]=J[lt[yt]];return $};function H($,J){return Object.prototype.hasOwnProperty.call($,J)}var F=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Q.promisify=function($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');if(F&&$[F]){var J=$[F];if(typeof J!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(){for(var lt,yt,mt=new Promise(function(pt,rt){lt=pt,yt=rt}),st=[],tt=0;tt<arguments.length;tt++)st.push(arguments[tt]);st.push(function(pt,rt){pt?yt(pt):lt(rt)});try{$.apply(this,st)}catch(pt){yt(pt)}return mt}return Object.setPrototypeOf(J,Object.getPrototypeOf($)),F&&Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(J,Z($))},Q.promisify.custom=F;function U($,J){if(!$){var lt=new Error("Promise was rejected with a falsy value");lt.reason=$,$=lt}return J($)}function W($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');function J(){for(var lt=[],yt=0;yt<arguments.length;yt++)lt.push(arguments[yt]);var mt=lt.pop();if(typeof mt!="function")throw new TypeError("The last argument must be of type Function");var st=this,tt=function(){return mt.apply(st,arguments)};$.apply(this,lt).then(function(pt){process.nextTick(tt.bind(null,null,pt))},function(pt){process.nextTick(U.bind(null,pt,tt))})}return Object.setPrototypeOf(J,Object.getPrototypeOf($)),Object.defineProperties(J,Z($)),J}Q.callbackify=W}),mN=Rt((Q,Z)=>{function c(f,x){var y=Object.keys(f);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(f);x&&(v=v.filter(function(T){return Object.getOwnPropertyDescriptor(f,T).enumerable})),y.push.apply(y,v)}return y}function g(f){for(var x=1;x<arguments.length;x++){var y=arguments[x]!=null?arguments[x]:{};x%2?c(Object(y),!0).forEach(function(v){z(f,v,y[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(y)):c(Object(y)).forEach(function(v){Object.defineProperty(f,v,Object.getOwnPropertyDescriptor(y,v))})}return f}function z(f,x,y){return x in f?Object.defineProperty(f,x,{value:y,enumerable:!0,configurable:!0,writable:!0}):f[x]=y,f}function S(f,x){if(!(f instanceof x))throw new TypeError("Cannot call a class as a function")}function t(f,x){for(var y=0;y<x.length;y++){var v=x[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(f,v.key,v)}}function e(f,x,y){return x&&t(f.prototype,x),f}var r=lx(),a=r.Buffer,n=qM(),s=n.inspect,i=s&&s.custom||"inspect";function l(f,x,y){a.prototype.copy.call(f,x,y)}Z.exports=function(){function f(){S(this,f),this.head=null,this.tail=null,this.length=0}return e(f,[{key:"push",value:function(x){var y={data:x,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(x){var y={data:x,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(x){if(this.length===0)return"";for(var y=this.head,v=""+y.data;y=y.next;)v+=x+y.data;return v}},{key:"concat",value:fun
Line truncated
|
||||
`)>-1&&(st?pt=pt.split(`
|
||||
`).map(function(at){return" "+at}).join(`
|
||||
`).slice(2):pt=`
|
||||
@@ -156,22 +156,22 @@ function CG(d,o){for(var C=0;C<o.length;C++){const B=o[C];if(typeof B!="string"&
|
||||
`))):pt=$.stylize("[Circular]","special")),M(tt)){if(st&&mt.match(/^\d+$/))return pt;tt=JSON.stringify(""+mt),tt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(tt=tt.slice(1,-1),tt=$.stylize(tt,"name")):(tt=tt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),tt=$.stylize(tt,"string"))}return tt+": "+pt}function x($,J,lt){var yt=0,mt=$.reduce(function(st,tt){return yt++,tt.indexOf(`
|
||||
`)>=0&&yt++,st+tt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return mt>60?lt[0]+(J===""?"":J+`
|
||||
`)+" "+$.join(`,
|
||||
`)+" "+lt[1]:lt[0]+J+" "+$.join(", ")+" "+lt[1]}Q.types=WM();function y($){return Array.isArray($)}Q.isArray=y;function v($){return typeof $=="boolean"}Q.isBoolean=v;function T($){return $===null}Q.isNull=T;function u($){return $==null}Q.isNullOrUndefined=u;function b($){return typeof $=="number"}Q.isNumber=b;function _($){return typeof $=="string"}Q.isString=_;function P($){return typeof $=="symbol"}Q.isSymbol=P;function M($){return $===void 0}Q.isUndefined=M;function E($){return A($)&&R($)==="[object RegExp]"}Q.isRegExp=E,Q.types.isRegExp=E;function A($){return typeof $=="object"&&$!==null}Q.isObject=A;function h($){return A($)&&R($)==="[object Date]"}Q.isDate=h,Q.types.isDate=h;function p($){return A($)&&(R($)==="[object Error]"||$ instanceof Error)}Q.isError=p,Q.types.isNativeError=p;function k($){return typeof $=="function"}Q.isFunction=k;function w($){return $===null||typeof $=="boolean"||typeof $=="number"||typeof $=="string"||typeof $=="symbol"||typeof $>"u"}Q.isPrimitive=w,Q.isBuffer=$M();function R($){return Object.prototype.toString.call($)}function O($){return $<10?"0"+$.toString(10):$.toString(10)}var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var $=new Date,J=[O($.getHours()),O($.getMinutes()),O($.getSeconds())].join(":");return[$.getDate(),j[$.getMonth()],J].join(" ")}Q.log=function(){console.log("%s - %s",V(),Q.format.apply(Q,arguments))},Q.inherits=kv(),Q._extend=function($,J){if(!J||!A(J))return $;for(var lt=Object.keys(J),yt=lt.length;yt--;)$[lt[yt]]=J[lt[yt]];return $};function H($,J){return Object.prototype.hasOwnProperty.call($,J)}var F=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Q.promisify=function($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');if(F&&$[F]){var J=$[F];if(typeof J!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(){for(var lt,yt,mt=new Promise(function(pt,rt){lt=pt,yt=rt}),st=[],tt=0;tt<arguments.length;tt++)st.push(arguments[tt]);st.push(function(pt,rt){pt?yt(pt):lt(rt)});try{$.apply(this,st)}catch(pt){yt(pt)}return mt}return Object.setPrototypeOf(J,Object.getPrototypeOf($)),F&&Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(J,Z($))},Q.promisify.custom=F;function U($,J){if(!$){var lt=new Error("Promise was rejected with a falsy value");lt.reason=$,$=lt}return J($)}function W($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');function J(){for(var lt=[],yt=0;yt<arguments.length;yt++)lt.push(arguments[yt]);var mt=lt.pop();if(typeof mt!="function")throw new TypeError("The last argument must be of type Function");var st=this,tt=function(){return mt.apply(st,arguments)};$.apply(this,lt).then(function(pt){process.nextTick(tt.bind(null,null,pt))},function(pt){process.nextTick(U.bind(null,pt,tt))})}return Object.setPrototypeOf(J,Object.getPrototypeOf($)),Object.defineProperties(J,Z($)),J}Q.callbackify=W}),QM=zt((Q,Z)=>{function c(b){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},c(b)}function g(b,_,P){return Object.defineProperty(b,"prototype",{writable:!1}),b}function z(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function S(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),_&&t(b,_)}function t(b,_){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,M){return P.__proto__=M,P},t(b,_)}function e(b){var _=n();return function(){var P=s(b),M;if(_){var E=s(this).constructor;M=Reflect.construct(P,arguments,E)}else M=P.apply(this,arguments);return r(this,M)}}function r(b,_){if(_&&(c(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a(b)}function a(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function n(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function s(b){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},s(b)}var i={},l,f;function x(b,_,P){P||(P=Error);function M(A,h,p){return typeof _=="string"?_:_(A,h,p)}var E=function(A){S(p,A);var h=e(p);function p(k,w,R){var O;return z(thi
Line truncated
|
||||
`)+" "+lt[1]:lt[0]+J+" "+$.join(", ")+" "+lt[1]}Q.types=WM();function y($){return Array.isArray($)}Q.isArray=y;function v($){return typeof $=="boolean"}Q.isBoolean=v;function T($){return $===null}Q.isNull=T;function u($){return $==null}Q.isNullOrUndefined=u;function b($){return typeof $=="number"}Q.isNumber=b;function _($){return typeof $=="string"}Q.isString=_;function P($){return typeof $=="symbol"}Q.isSymbol=P;function M($){return $===void 0}Q.isUndefined=M;function E($){return A($)&&R($)==="[object RegExp]"}Q.isRegExp=E,Q.types.isRegExp=E;function A($){return typeof $=="object"&&$!==null}Q.isObject=A;function h($){return A($)&&R($)==="[object Date]"}Q.isDate=h,Q.types.isDate=h;function p($){return A($)&&(R($)==="[object Error]"||$ instanceof Error)}Q.isError=p,Q.types.isNativeError=p;function k($){return typeof $=="function"}Q.isFunction=k;function w($){return $===null||typeof $=="boolean"||typeof $=="number"||typeof $=="string"||typeof $=="symbol"||typeof $>"u"}Q.isPrimitive=w,Q.isBuffer=$M();function R($){return Object.prototype.toString.call($)}function O($){return $<10?"0"+$.toString(10):$.toString(10)}var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var $=new Date,J=[O($.getHours()),O($.getMinutes()),O($.getSeconds())].join(":");return[$.getDate(),j[$.getMonth()],J].join(" ")}Q.log=function(){console.log("%s - %s",V(),Q.format.apply(Q,arguments))},Q.inherits=kv(),Q._extend=function($,J){if(!J||!A(J))return $;for(var lt=Object.keys(J),yt=lt.length;yt--;)$[lt[yt]]=J[lt[yt]];return $};function H($,J){return Object.prototype.hasOwnProperty.call($,J)}var F=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Q.promisify=function($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');if(F&&$[F]){var J=$[F];if(typeof J!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(){for(var lt,yt,mt=new Promise(function(pt,rt){lt=pt,yt=rt}),st=[],tt=0;tt<arguments.length;tt++)st.push(arguments[tt]);st.push(function(pt,rt){pt?yt(pt):lt(rt)});try{$.apply(this,st)}catch(pt){yt(pt)}return mt}return Object.setPrototypeOf(J,Object.getPrototypeOf($)),F&&Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(J,Z($))},Q.promisify.custom=F;function U($,J){if(!$){var lt=new Error("Promise was rejected with a falsy value");lt.reason=$,$=lt}return J($)}function W($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');function J(){for(var lt=[],yt=0;yt<arguments.length;yt++)lt.push(arguments[yt]);var mt=lt.pop();if(typeof mt!="function")throw new TypeError("The last argument must be of type Function");var st=this,tt=function(){return mt.apply(st,arguments)};$.apply(this,lt).then(function(pt){process.nextTick(tt.bind(null,null,pt))},function(pt){process.nextTick(U.bind(null,pt,tt))})}return Object.setPrototypeOf(J,Object.getPrototypeOf($)),Object.defineProperties(J,Z($)),J}Q.callbackify=W}),QM=Rt((Q,Z)=>{function c(b){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},c(b)}function g(b,_,P){return Object.defineProperty(b,"prototype",{writable:!1}),b}function z(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function S(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),_&&t(b,_)}function t(b,_){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,M){return P.__proto__=M,P},t(b,_)}function e(b){var _=n();return function(){var P=s(b),M;if(_){var E=s(this).constructor;M=Reflect.construct(P,arguments,E)}else M=P.apply(this,arguments);return r(this,M)}}function r(b,_){if(_&&(c(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a(b)}function a(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function n(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function s(b){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},s(b)}var i={},l,f;function x(b,_,P){P||(P=Error);function M(A,h,p){return typeof _=="string"?_:_(A,h,p)}var E=function(A){S(p,A);var h=e(p);function p(k,w,R){var O;return z(thi
Line truncated
|
||||
`),at=H($).split(`
|
||||
`),vt=0,it="";if(J==="strictEqual"&&b(W)==="object"&&b($)==="object"&&W!==null&&$!==null&&(J="strictEqualObject"),rt.length===1&&at.length===1&&rt[0]!==at[0]){var K=rt[0].length+at[0].length;if(K<=j){if((b(W)!=="object"||W===null)&&(b($)!=="object"||$===null)&&(W!==0||$!==0))return"".concat(O[J],`
|
||||
|
||||
`)+"".concat(rt[0]," !== ").concat(at[0],`
|
||||
`)}else if(J!=="strictEqualObject"){var ft=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(K<ft){for(;rt[0][vt]===at[0][vt];)vt++;vt>2&&(it=`
|
||||
`.concat(h(" ",vt),"^"),vt=0)}}}for(var ut=rt[rt.length-1],kt=at[at.length-1];ut===kt&&(vt++<2?st=`
|
||||
`.concat(ut).concat(st):lt=ut,rt.pop(),at.pop(),!(rt.length===0||at.length===0));)ut=rt[rt.length-1],kt=at[at.length-1];var Ot=Math.max(rt.length,at.length);if(Ot===0){var It=pt.split(`
|
||||
`);if(It.length>30)for(It[26]="".concat(p,"...").concat(R);It.length>27;)It.pop();return"".concat(O.notIdentical,`
|
||||
`.concat(ut).concat(st):lt=ut,rt.pop(),at.pop(),!(rt.length===0||at.length===0));)ut=rt[rt.length-1],kt=at[at.length-1];var It=Math.max(rt.length,at.length);if(It===0){var zt=pt.split(`
|
||||
`);if(zt.length>30)for(zt[26]="".concat(p,"...").concat(R);zt.length>27;)zt.pop();return"".concat(O.notIdentical,`
|
||||
|
||||
`).concat(It.join(`
|
||||
`).concat(zt.join(`
|
||||
`),`
|
||||
`)}vt>3&&(st=`
|
||||
`.concat(p,"...").concat(R).concat(st),tt=!0),lt!==""&&(st=`
|
||||
`.concat(lt).concat(st),lt="");var qt=0,$t=O[J]+`
|
||||
`.concat(k,"+ actual").concat(R," ").concat(w,"- expected").concat(R),Qt=" ".concat(p,"...").concat(R," Lines skipped");for(vt=0;vt<Ot;vt++){var ve=vt-mt;if(rt.length<vt+1)ve>1&&vt>2&&(ve>4?(yt+=`
|
||||
`.concat(k,"+ actual").concat(R," ").concat(w,"- expected").concat(R),Qt=" ".concat(p,"...").concat(R," Lines skipped");for(vt=0;vt<It;vt++){var ve=vt-mt;if(rt.length<vt+1)ve>1&&vt>2&&(ve>4?(yt+=`
|
||||
`.concat(p,"...").concat(R),tt=!0):ve>3&&(yt+=`
|
||||
`.concat(at[vt-2]),qt++),yt+=`
|
||||
`.concat(at[vt-1]),qt++),mt=vt,lt+=`
|
||||
@@ -185,7 +185,7 @@ function CG(d,o){for(var C=0;C<o.length;C++){const B=o[C];if(typeof B!="string"&
|
||||
`.concat(rt[vt-1]),qt++),mt=vt,yt+=`
|
||||
`.concat(k,"+").concat(R," ").concat(me),lt+=`
|
||||
`.concat(w,"-").concat(R," ").concat(de),qt+=2):(yt+=lt,lt="",(ve===1||vt===0)&&(yt+=`
|
||||
`.concat(me),qt++))}if(qt>20&&vt<Ot-2)return"".concat($t).concat(Qt,`
|
||||
`.concat(me),qt++))}if(qt>20&&vt<It-2)return"".concat($t).concat(Qt,`
|
||||
`).concat(yt,`
|
||||
`).concat(p,"...").concat(R).concat(lt,`
|
||||
`)+"".concat(p,"...").concat(R)}return"".concat($t).concat(tt?Qt:"",`
|
||||
@@ -202,8 +202,8 @@ function CG(d,o){for(var C=0;C<o.length;C++){const B=o[C];if(typeof B!="string"&
|
||||
|
||||
should equal
|
||||
|
||||
`):ut=" ".concat(tt," ").concat(ut)),mt=J.call(this,"".concat(ft).concat(ut))}return Error.stackTraceLimit=vt,mt.generatedMessage=!st,Object.defineProperty(l(mt),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),mt.code="ERR_ASSERTION",mt.actual=rt,mt.expected=at,mt.operator=tt,Error.captureStackTrace&&Error.captureStackTrace(l(mt),pt),mt.stack,mt.name="AssertionError",i(mt)}return e(lt,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:$,value:function(yt,mt){return P(this,g(g({},mt),{},{customInspect:!1,depth:0}))}}]),lt}(f(Error),P.custom);Z.exports=U}),t9=zt((Q,Z)=>{var c=Object.prototype.toString;Z.exports=function(g){var z=c.call(g),S=z==="[object Arguments]";return S||(S=z!=="[object Array]"&&g!==null&&typeof g=="object"&&typeof g.length=="number"&&g.length>=0&&c.call(g.callee)==="[object Function]"),S}}),TN=zt((Q,Z)=>{var c;Object.keys||(g=Object.prototype.hasOwnProperty,z=Object.prototype.toString,S=t9(),t=Object.prototype.propertyIsEnumerable,e=!t.call({toString:null},"toString"),r=t.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],n=function(f){var x=f.constructor;return x&&x.prototype===f},s={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},i=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!s["$"+f]&&g.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{n(window[f])}catch{return!0}}catch{return!0}return!1}(),l=function(f){if(typeof window>"u"||!i)return n(f);try{return n(f)}catch{return!1}},c=function(f){var x=f!==null&&typeof f=="object",y=z.call(f)==="[object Function]",v=S(f),T=x&&z.call(f)==="[object String]",u=[];if(!x&&!y&&!v)throw new TypeError("Object.keys called on a non-object");var b=r&&y;if(T&&f.length>0&&!g.call(f,0))for(var _=0;_<f.length;++_)u.push(String(_));if(v&&f.length>0)for(var P=0;P<f.length;++P)u.push(String(P));else for(var M in f)!(b&&M==="prototype")&&g.call(f,M)&&u.push(String(M));if(e)for(var E=l(f),A=0;A<a.length;++A)!(E&&a[A]==="constructor")&&g.call(f,a[A])&&u.push(a[A]);return u});var g,z,S,t,e,r,a,n,s,i,l;Z.exports=c}),e9=zt((Q,Z)=>{var c=Array.prototype.slice,g=t9(),z=Object.keys,S=z?function(e){return z(e)}:TN(),t=Object.keys;S.shim=function(){if(Object.keys){var e=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);e||(Object.keys=function(r){return g(r)?t(c.call(r)):t(r)})}else Object.keys=S;return Object.keys||S},Z.exports=S}),AN=zt((Q,Z)=>{var c=e9(),g=pk()(),z=hb(),S=Object,t=z("Array.prototype.push"),e=z("Object.prototype.propertyIsEnumerable"),r=g?Object.getOwnPropertySymbols:null;Z.exports=function(a,n){if(a==null)throw new TypeError("target must be an object");var s=S(a);if(arguments.length===1)return s;for(var i=1;i<arguments.length;++i){var l=S(arguments[i]),f=c(l),x=g&&(Object.getOwnPropertySymbols||r);if(x)for(var y=x(l),v=0;v<y.length;++v){var T=y[v];e(l,T)&&t(f,T)}for(var u=0;u<f.length;++u){var b=f[u];if(e(l,b)){var _=l[b];s[b]=_}}}return s}}),MN=zt((Q,Z)=>{var c=AN(),g=function(){if(!Object.assign)return!1;for(var S="abcdefghijklmnopqrst",t=S.split(""),e={},r=0;r<t.length;++r)e[t[r]]=t[r];var a=Object.assign({},e),n="";for(var s in a)n+=s;return S!==n},z=function(){if(!Object.assign||!Object.preventExtensions)return!1;var S=Object.preventExtensions({1:2});try{Object.assign(S,"xy")}catch{return S[1]==="y"}return!1};Z.exports=function(){return!Object.assign||g()||z()?c:Object.assign}}),r9=zt((Q,Z)=>{var c=function(g){return g!==g};Z.exports=function(g,z){return g===0&&z===0?1/g===1/z:!!(g===z||c(g)&&c(z))}}),yk=zt((Q,Z)=>{var c=r9();Z.exports=function(){return typeof Object.is=="function"?Object.is:c}}),n3=zt((Q,Z)=>{var c=e9(),g=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",z=Object.prototype.toString,S=Array.prototype.concat,t=Object.defineProperty,e=function(i){return typeof i=="function"&&z.call(i)==="[object Function]"},r=UM()(),a=t&&r,n=function(i,l,f,x){if(l in i){if(x===!0){if(i[l]===f)return}else if(!e(x)||!x())return}a?t(i,l,{configurable:!0,enumerable:!1,value:f,writable:!0}):i[l]=f},s=function(i,l){var f=arguments.length>2?arguments[2]:{},x=c(l);g&&(x=S.call(x,Object.getOwnPropertySymbols(l)));for(var y=0;y<x.length;y+=1)n(i,x[y],l[x[y]],f[x[y]])};s.supportsDescriptors=!!a,Z.exports=s}),SN=zt((Q,Z)=>{var c=yk(),g=n3();Z.exports=function(){var z=c();return g(Object,{is:z},{is:function(){return Object.is!==z}}),z}}),CN=zt((Q,Z)=>{var c=n3(),g=r3(),z=r9(),S=yk(),t=SN(),e=g(S(),Object);c(e,{getPolyfill:S,implementation:z,shim:t}),Z.exports=e}),n9=zt((Q,Z)=>{Z.exp
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z(ue,Tt){if(ue){if(typeof ue=="string")return S(ue,Tt);var Pt=Object.prototype.toString.call(ue).slice(8,-1);if(Pt==="Object"&&ue.constructor&&(Pt=ue.constructor.name),Pt==="Map"||Pt==="Set")return Array.from(ue);if(Pt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pt))return S(ue,Tt)}}function S(ue,Tt){(Tt==null||Tt>ue.length)&&(Tt=ue.length);for(var Pt=0,Mt=new Array(Tt);Pt<Tt;Pt++)Mt[Pt]=ue[Pt];return Mt}function t(ue,Tt){var Pt=ue==null?null:typeof Symbol<"u"&&ue[Symbol.iterator]||ue["@@iterator"];if(Pt!=null){var Mt,ee,ye,le,Me=[],He=!0,Ge=!1;try{if(ye=(Pt=Pt.call(ue)).next,Tt!==0)for(;!(He=(Mt=ye.call(Pt)).done)&&(Me.push(Mt.value),Me.length!==Tt);He=!0);}catch(cr){Ge=!0,ee=cr}finally{try{if(!He&&Pt.return!=null&&(le=Pt.return(),Object(le)!==le))return}finally{if(Ge)throw ee}}return Me}}function e(ue){if(Array.isArray(ue))return ue}function r(ue){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Tt){return typeof Tt}:function(Tt){return Tt&&typeof Symbol=="function"&&Tt.constructor===Symbol&&Tt!==Symbol.prototype?"symbol":typeof Tt},r(ue)}var a=/a/g.flags!==void 0,n=function(ue){var Tt=[];return ue.forEach(function(Pt){return Tt.push(Pt)}),Tt},s=function(ue){var Tt=[];return ue.forEach(function(Pt,Mt){return Tt.push([Mt,Pt])}),Tt},i=Object.is?Object.is:CN(),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:LN();function x(ue){return ue.call.bind(ue)}var y=x(Object.prototype.hasOwnProperty),v=x(Object.prototype.propertyIsEnumerable),T=x(Object.prototype.toString),u=fb().types,b=u.isAnyArrayBuffer,_=u.isArrayBufferView,P=u.isDate,M=u.isMap,E=u.isRegExp,A=u.isSet,h=u.isNativeError,p=u.isBoxedPrimitive,k=u.isNumberObject,w=u.isStringObject,R=u.isBooleanObject,O=u.isBigIntObject,j=u.isSymbolObject,V=u.isFloat32Array,H=u.isFloat64Array;function F(ue){if(ue.length===0||ue.length>10)return!0;for(var Tt=0;Tt<ue.length;Tt++){var Pt=ue.charCodeAt(Tt);if(Pt<48||Pt>57)return!0}return ue.length===10&&ue>=Math.pow(2,32)}function U(ue){return Object.keys(ue).filter(F).concat(l(ue).filter(Object.prototype.propertyIsEnumerable.bind(ue)))}function W(ue,Tt){if(ue===Tt)return 0;for(var Pt=ue.length,Mt=Tt.length,ee=0,ye=Math.min(Pt,Mt);ee<ye;++ee)if(ue[ee]!==Tt[ee]){Pt=ue[ee],Mt=Tt[ee];break}return Pt<Mt?-1:Mt<Pt?1:0}var $=!0,J=!1,lt=0,yt=1,mt=2,st=3;function tt(ue,Tt){return a?ue.source===Tt.source&&ue.flags===Tt.flags:RegExp.prototype.toString.call(ue)===RegExp.prototype.toString.call(Tt)}function pt(ue,Tt){if(ue.byteLength!==Tt.byteLength)return!1;for(var Pt=0;Pt<ue.byteLength;Pt++)if(ue[Pt]!==Tt[Pt])return!1;return!0}function rt(ue,Tt){return ue.byteLength!==Tt.byteLength?!1:W(new Uint8Array(ue.buffer,ue.byteOffset,ue.byteLength),new Uint8Array(Tt.buffer,Tt.byteOffset,Tt.byteLength))===0}function at(ue,Tt){return ue.byteLength===Tt.byteLength&&W(new Uint8Array(ue),new Uint8Array(Tt))===0}function vt(ue,Tt){return k(ue)?k(Tt)&&i(Number.prototype.valueOf.call(ue),Number.prototype.valueOf.call(Tt)):w(ue)?w(Tt)&&String.prototype.valueOf.call(ue)===String.prototype.valueOf.call(Tt):R(ue)?R(Tt)&&Boolean.prototype.valueOf.call(ue)===Boolean.prototype.valueOf.call(Tt):O(ue)?O(Tt)&&BigInt.prototype.valueOf.call(ue)===BigInt.prototype.valueOf.call(Tt):j(Tt)&&Symbol.prototype.valueOf.call(ue)===Symbol.prototype.valueOf.call(Tt)}function it(ue,Tt,Pt,Mt){if(ue===Tt)return ue!==0?!0:Pt?i(ue,Tt):!0;if(Pt){if(r(ue)!=="object")return typeof ue=="number"&&f(ue)&&f(Tt);if(r(Tt)!=="object"||ue===null||Tt===null||Object.getPrototypeOf(ue)!==Object.getPrototypeOf(Tt))return!1}else{if(ue===null||r(ue)!=="object")return Tt===null||r(Tt)!=="object"?ue==Tt:!1;if(Tt===null||r(Tt)!=="object")return!1}var ee=T(ue),ye=T(Tt);if(ee!==ye)return!1;if(Array.isArray(ue)){if(ue.length!==Tt.length)return!1;var le=U(ue),Me=U(Tt);return le.length!==Me.length?!1:ft(ue,Tt,Pt,Mt,yt,le)}if(ee==="[object Object]"&&(!M(ue)&&M(Tt)||!A(ue)&&A(Tt)))return!1;if(P(ue)){if(!P(Tt)||Date.prototype.getTime.call(ue)!==Date.prototype.getTime.call(Tt))return!1}else if(E(ue)){if(!E(Tt)||!tt(ue,Tt))return!1}else if(h(ue)||ue instanceof Error){if(ue.message!==Tt.message||ue.name!==Tt.name)return!1}else if(_(ue)){if(!Pt&&(V(ue)||H(ue))){if(!pt(ue,Tt))return!1}else if(!rt(ue,Tt))return!1;var He=U(ue),Ge=U(Tt);return He.length!==Ge.length?!1:ft(ue,Tt,Pt,Mt,lt,He)}else{if(A(ue))return!A(Tt)||ue.size!==Tt.size?!1:ft(ue,Tt,Pt,Mt,mt);if(M(ue))return!M(Tt)||ue.size!==Tt.size?!1:ft(ue,Tt,Pt,Mt,st);if(b(ue)){if(!at(ue,Tt))return!1}else if(p(ue)&&!vt(ue,Tt))return!1}return ft(ue,Tt,Pt,Mt,lt)}function K(ue,Tt){return Tt.filter(function(Pt){return v(ue,Pt)})}function ft(ue,Tt,Pt,Mt,ee,ye){if(arguments.length===5){ye=Object.keys(ue);var le=Object.keys(Tt);if(ye.length!==le.length)return!1}for(var Me=0;Me<ye.length;Me++)if(!y(Tt,ye[Me]))return!1;if(Pt&&arguments.length===5)
Line truncated
|
||||
`):ut=" ".concat(tt," ").concat(ut)),mt=J.call(this,"".concat(ft).concat(ut))}return Error.stackTraceLimit=vt,mt.generatedMessage=!st,Object.defineProperty(l(mt),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),mt.code="ERR_ASSERTION",mt.actual=rt,mt.expected=at,mt.operator=tt,Error.captureStackTrace&&Error.captureStackTrace(l(mt),pt),mt.stack,mt.name="AssertionError",i(mt)}return e(lt,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:$,value:function(yt,mt){return P(this,g(g({},mt),{},{customInspect:!1,depth:0}))}}]),lt}(f(Error),P.custom);Z.exports=U}),t9=Rt((Q,Z)=>{var c=Object.prototype.toString;Z.exports=function(g){var z=c.call(g),S=z==="[object Arguments]";return S||(S=z!=="[object Array]"&&g!==null&&typeof g=="object"&&typeof g.length=="number"&&g.length>=0&&c.call(g.callee)==="[object Function]"),S}}),TN=Rt((Q,Z)=>{var c;Object.keys||(g=Object.prototype.hasOwnProperty,z=Object.prototype.toString,S=t9(),t=Object.prototype.propertyIsEnumerable,e=!t.call({toString:null},"toString"),r=t.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],n=function(f){var x=f.constructor;return x&&x.prototype===f},s={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},i=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!s["$"+f]&&g.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{n(window[f])}catch{return!0}}catch{return!0}return!1}(),l=function(f){if(typeof window>"u"||!i)return n(f);try{return n(f)}catch{return!1}},c=function(f){var x=f!==null&&typeof f=="object",y=z.call(f)==="[object Function]",v=S(f),T=x&&z.call(f)==="[object String]",u=[];if(!x&&!y&&!v)throw new TypeError("Object.keys called on a non-object");var b=r&&y;if(T&&f.length>0&&!g.call(f,0))for(var _=0;_<f.length;++_)u.push(String(_));if(v&&f.length>0)for(var P=0;P<f.length;++P)u.push(String(P));else for(var M in f)!(b&&M==="prototype")&&g.call(f,M)&&u.push(String(M));if(e)for(var E=l(f),A=0;A<a.length;++A)!(E&&a[A]==="constructor")&&g.call(f,a[A])&&u.push(a[A]);return u});var g,z,S,t,e,r,a,n,s,i,l;Z.exports=c}),e9=Rt((Q,Z)=>{var c=Array.prototype.slice,g=t9(),z=Object.keys,S=z?function(e){return z(e)}:TN(),t=Object.keys;S.shim=function(){if(Object.keys){var e=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);e||(Object.keys=function(r){return g(r)?t(c.call(r)):t(r)})}else Object.keys=S;return Object.keys||S},Z.exports=S}),AN=Rt((Q,Z)=>{var c=e9(),g=pk()(),z=hb(),S=Object,t=z("Array.prototype.push"),e=z("Object.prototype.propertyIsEnumerable"),r=g?Object.getOwnPropertySymbols:null;Z.exports=function(a,n){if(a==null)throw new TypeError("target must be an object");var s=S(a);if(arguments.length===1)return s;for(var i=1;i<arguments.length;++i){var l=S(arguments[i]),f=c(l),x=g&&(Object.getOwnPropertySymbols||r);if(x)for(var y=x(l),v=0;v<y.length;++v){var T=y[v];e(l,T)&&t(f,T)}for(var u=0;u<f.length;++u){var b=f[u];if(e(l,b)){var _=l[b];s[b]=_}}}return s}}),MN=Rt((Q,Z)=>{var c=AN(),g=function(){if(!Object.assign)return!1;for(var S="abcdefghijklmnopqrst",t=S.split(""),e={},r=0;r<t.length;++r)e[t[r]]=t[r];var a=Object.assign({},e),n="";for(var s in a)n+=s;return S!==n},z=function(){if(!Object.assign||!Object.preventExtensions)return!1;var S=Object.preventExtensions({1:2});try{Object.assign(S,"xy")}catch{return S[1]==="y"}return!1};Z.exports=function(){return!Object.assign||g()||z()?c:Object.assign}}),r9=Rt((Q,Z)=>{var c=function(g){return g!==g};Z.exports=function(g,z){return g===0&&z===0?1/g===1/z:!!(g===z||c(g)&&c(z))}}),yk=Rt((Q,Z)=>{var c=r9();Z.exports=function(){return typeof Object.is=="function"?Object.is:c}}),n3=Rt((Q,Z)=>{var c=e9(),g=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",z=Object.prototype.toString,S=Array.prototype.concat,t=Object.defineProperty,e=function(i){return typeof i=="function"&&z.call(i)==="[object Function]"},r=UM()(),a=t&&r,n=function(i,l,f,x){if(l in i){if(x===!0){if(i[l]===f)return}else if(!e(x)||!x())return}a?t(i,l,{configurable:!0,enumerable:!1,value:f,writable:!0}):i[l]=f},s=function(i,l){var f=arguments.length>2?arguments[2]:{},x=c(l);g&&(x=S.call(x,Object.getOwnPropertySymbols(l)));for(var y=0;y<x.length;y+=1)n(i,x[y],l[x[y]],f[x[y]])};s.supportsDescriptors=!!a,Z.exports=s}),SN=Rt((Q,Z)=>{var c=yk(),g=n3();Z.exports=function(){var z=c();return g(Object,{is:z},{is:function(){return Object.is!==z}}),z}}),CN=Rt((Q,Z)=>{var c=n3(),g=r3(),z=r9(),S=yk(),t=SN(),e=g(S(),Object);c(e,{getPolyfill:S,implementation:z,shim:t}),Z.exports=e}),n9=Rt((Q,Z)=>{Z.exp
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z(ue,Tt){if(ue){if(typeof ue=="string")return S(ue,Tt);var Pt=Object.prototype.toString.call(ue).slice(8,-1);if(Pt==="Object"&&ue.constructor&&(Pt=ue.constructor.name),Pt==="Map"||Pt==="Set")return Array.from(ue);if(Pt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pt))return S(ue,Tt)}}function S(ue,Tt){(Tt==null||Tt>ue.length)&&(Tt=ue.length);for(var Pt=0,Mt=new Array(Tt);Pt<Tt;Pt++)Mt[Pt]=ue[Pt];return Mt}function t(ue,Tt){var Pt=ue==null?null:typeof Symbol<"u"&&ue[Symbol.iterator]||ue["@@iterator"];if(Pt!=null){var Mt,ee,ye,le,Me=[],He=!0,Ge=!1;try{if(ye=(Pt=Pt.call(ue)).next,Tt!==0)for(;!(He=(Mt=ye.call(Pt)).done)&&(Me.push(Mt.value),Me.length!==Tt);He=!0);}catch(cr){Ge=!0,ee=cr}finally{try{if(!He&&Pt.return!=null&&(le=Pt.return(),Object(le)!==le))return}finally{if(Ge)throw ee}}return Me}}function e(ue){if(Array.isArray(ue))return ue}function r(ue){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Tt){return typeof Tt}:function(Tt){return Tt&&typeof Symbol=="function"&&Tt.constructor===Symbol&&Tt!==Symbol.prototype?"symbol":typeof Tt},r(ue)}var a=/a/g.flags!==void 0,n=function(ue){var Tt=[];return ue.forEach(function(Pt){return Tt.push(Pt)}),Tt},s=function(ue){var Tt=[];return ue.forEach(function(Pt,Mt){return Tt.push([Mt,Pt])}),Tt},i=Object.is?Object.is:CN(),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:LN();function x(ue){return ue.call.bind(ue)}var y=x(Object.prototype.hasOwnProperty),v=x(Object.prototype.propertyIsEnumerable),T=x(Object.prototype.toString),u=fb().types,b=u.isAnyArrayBuffer,_=u.isArrayBufferView,P=u.isDate,M=u.isMap,E=u.isRegExp,A=u.isSet,h=u.isNativeError,p=u.isBoxedPrimitive,k=u.isNumberObject,w=u.isStringObject,R=u.isBooleanObject,O=u.isBigIntObject,j=u.isSymbolObject,V=u.isFloat32Array,H=u.isFloat64Array;function F(ue){if(ue.length===0||ue.length>10)return!0;for(var Tt=0;Tt<ue.length;Tt++){var Pt=ue.charCodeAt(Tt);if(Pt<48||Pt>57)return!0}return ue.length===10&&ue>=Math.pow(2,32)}function U(ue){return Object.keys(ue).filter(F).concat(l(ue).filter(Object.prototype.propertyIsEnumerable.bind(ue)))}function W(ue,Tt){if(ue===Tt)return 0;for(var Pt=ue.length,Mt=Tt.length,ee=0,ye=Math.min(Pt,Mt);ee<ye;++ee)if(ue[ee]!==Tt[ee]){Pt=ue[ee],Mt=Tt[ee];break}return Pt<Mt?-1:Mt<Pt?1:0}var $=!0,J=!1,lt=0,yt=1,mt=2,st=3;function tt(ue,Tt){return a?ue.source===Tt.source&&ue.flags===Tt.flags:RegExp.prototype.toString.call(ue)===RegExp.prototype.toString.call(Tt)}function pt(ue,Tt){if(ue.byteLength!==Tt.byteLength)return!1;for(var Pt=0;Pt<ue.byteLength;Pt++)if(ue[Pt]!==Tt[Pt])return!1;return!0}function rt(ue,Tt){return ue.byteLength!==Tt.byteLength?!1:W(new Uint8Array(ue.buffer,ue.byteOffset,ue.byteLength),new Uint8Array(Tt.buffer,Tt.byteOffset,Tt.byteLength))===0}function at(ue,Tt){return ue.byteLength===Tt.byteLength&&W(new Uint8Array(ue),new Uint8Array(Tt))===0}function vt(ue,Tt){return k(ue)?k(Tt)&&i(Number.prototype.valueOf.call(ue),Number.prototype.valueOf.call(Tt)):w(ue)?w(Tt)&&String.prototype.valueOf.call(ue)===String.prototype.valueOf.call(Tt):R(ue)?R(Tt)&&Boolean.prototype.valueOf.call(ue)===Boolean.prototype.valueOf.call(Tt):O(ue)?O(Tt)&&BigInt.prototype.valueOf.call(ue)===BigInt.prototype.valueOf.call(Tt):j(Tt)&&Symbol.prototype.valueOf.call(ue)===Symbol.prototype.valueOf.call(Tt)}function it(ue,Tt,Pt,Mt){if(ue===Tt)return ue!==0?!0:Pt?i(ue,Tt):!0;if(Pt){if(r(ue)!=="object")return typeof ue=="number"&&f(ue)&&f(Tt);if(r(Tt)!=="object"||ue===null||Tt===null||Object.getPrototypeOf(ue)!==Object.getPrototypeOf(Tt))return!1}else{if(ue===null||r(ue)!=="object")return Tt===null||r(Tt)!=="object"?ue==Tt:!1;if(Tt===null||r(Tt)!=="object")return!1}var ee=T(ue),ye=T(Tt);if(ee!==ye)return!1;if(Array.isArray(ue)){if(ue.length!==Tt.length)return!1;var le=U(ue),Me=U(Tt);return le.length!==Me.length?!1:ft(ue,Tt,Pt,Mt,yt,le)}if(ee==="[object Object]"&&(!M(ue)&&M(Tt)||!A(ue)&&A(Tt)))return!1;if(P(ue)){if(!P(Tt)||Date.prototype.getTime.call(ue)!==Date.prototype.getTime.call(Tt))return!1}else if(E(ue)){if(!E(Tt)||!tt(ue,Tt))return!1}else if(h(ue)||ue instanceof Error){if(ue.message!==Tt.message||ue.name!==Tt.name)return!1}else if(_(ue)){if(!Pt&&(V(ue)||H(ue))){if(!pt(ue,Tt))return!1}else if(!rt(ue,Tt))return!1;var He=U(ue),Ge=U(Tt);return He.length!==Ge.length?!1:ft(ue,Tt,Pt,Mt,lt,He)}else{if(A(ue))return!A(Tt)||ue.size!==Tt.size?!1:ft(ue,Tt,Pt,Mt,mt);if(M(ue))return!M(Tt)||ue.size!==Tt.size?!1:ft(ue,Tt,Pt,Mt,st);if(b(ue)){if(!at(ue,Tt))return!1}else if(p(ue)&&!vt(ue,Tt))return!1}return ft(ue,Tt,Pt,Mt,lt)}function K(ue,Tt){return Tt.filter(function(Pt){return v(ue,Pt)})}function ft(ue,Tt,Pt,Mt,ee,ye){if(arguments.length===5){ye=Object.keys(ue);var le=Object.keys(Tt);if(ye.length!==le.length)return!1}for(var Me=0;Me<ye.length;Me++)if(!y(Tt,ye[Me]))return!1;if(Pt&&arguments.length===5)
Line truncated
|
||||
`)+'Actual message: "'.concat(st&&st.message,'"'),stackStartFn:mt})}throw st}}A.throws=function mt(st){for(var tt=arguments.length,pt=new Array(tt>1?tt-1:0),rt=1;rt<tt;rt++)pt[rt-1]=arguments[rt];$.apply(void 0,[mt,F(st)].concat(pt))},A.rejects=function mt(st){for(var tt=arguments.length,pt=new Array(tt>1?tt-1:0),rt=1;rt<tt;rt++)pt[rt-1]=arguments[rt];return W(st).then(function(at){return $.apply(void 0,[mt,at].concat(pt))})},A.doesNotThrow=function mt(st){for(var tt=arguments.length,pt=new Array(tt>1?tt-1:0),rt=1;rt<tt;rt++)pt[rt-1]=arguments[rt];J.apply(void 0,[mt,F(st)].concat(pt))},A.doesNotReject=function mt(st){for(var tt=arguments.length,pt=new Array(tt>1?tt-1:0),rt=1;rt<tt;rt++)pt[rt-1]=arguments[rt];return W(st).then(function(at){return J.apply(void 0,[mt,at].concat(pt))})},A.ifError=function mt(st){if(st!=null){var tt="ifError got unwanted exception: ";c(st)==="object"&&typeof st.message=="string"?st.message.length===0&&st.constructor?tt+=st.constructor.name:tt+=st.message:tt+=f(st);var pt=new i({actual:st,expected:null,operator:"ifError",message:tt,stackStartFn:mt}),rt=st.stack;if(typeof rt=="string"){var at=rt.split(`
|
||||
`);at.shift();for(var vt=pt.stack.split(`
|
||||
`),it=0;it<at.length;it++){var K=vt.indexOf(at[it]);if(K!==-1){vt=vt.slice(0,K);break}}pt.stack="".concat(vt.join(`
|
||||
@@ -212,11 +212,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
||||
`))}throw pt}};function lt(mt,st,tt,pt,rt){if(!v(st))throw new r("regexp","RegExp",st);var at=rt==="match";if(typeof mt!="string"||b(st,mt)!==at){if(tt instanceof Error)throw tt;var vt=!tt;tt=tt||(typeof mt!="string"?'The "string" argument must be of type string. Received type '+"".concat(c(mt)," (").concat(f(mt),")"):(at?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(f(st),`. Input:
|
||||
|
||||
`).concat(f(mt),`
|
||||
`));var it=new i({actual:mt,expected:st,message:tt,operator:rt,stackStartFn:pt});throw it.generatedMessage=vt,it}}A.match=function mt(st,tt,pt){lt(st,tt,pt,mt,"match")},A.doesNotMatch=function mt(st,tt,pt){lt(st,tt,pt,mt,"doesNotMatch")};function yt(){for(var mt=arguments.length,st=new Array(mt),tt=0;tt<mt;tt++)st[tt]=arguments[tt];w.apply(void 0,[yt,st.length].concat(st))}A.strict=T(yt,A,{equal:A.strictEqual,deepEqual:A.deepStrictEqual,notEqual:A.notStrictEqual,notDeepEqual:A.notDeepStrictEqual}),A.strict.strict=A.strict}),zN=zt((Q,Z)=>{var c=1e3,g=c*60,z=g*60,S=z*24,t=S*365.25;Z.exports=function(s,i){i=i||{};var l=typeof s;if(l==="string"&&s.length>0)return e(s);if(l==="number"&&isNaN(s)===!1)return i.long?a(s):r(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))};function e(s){if(s=String(s),!(s.length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(s);if(i){var l=parseFloat(i[1]),f=(i[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return l*t;case"days":case"day":case"d":return l*S;case"hours":case"hour":case"hrs":case"hr":case"h":return l*z;case"minutes":case"minute":case"mins":case"min":case"m":return l*g;case"seconds":case"second":case"secs":case"sec":case"s":return l*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function r(s){return s>=S?Math.round(s/S)+"d":s>=z?Math.round(s/z)+"h":s>=g?Math.round(s/g)+"m":s>=c?Math.round(s/c)+"s":s+"ms"}function a(s){return n(s,S,"day")||n(s,z,"hour")||n(s,g,"minute")||n(s,c,"second")||s+" ms"}function n(s,i,l){if(!(s<i))return s<i*1.5?Math.floor(s/i)+" "+l:Math.ceil(s/i)+" "+l+"s"}}),IN=zt((Q,Z)=>{Q=Z.exports=z.debug=z.default=z,Q.coerce=r,Q.disable=t,Q.enable=S,Q.enabled=e,Q.humanize=zN(),Q.names=[],Q.skips=[],Q.formatters={};var c;function g(a){var n=0,s;for(s in a)n=(n<<5)-n+a.charCodeAt(s),n|=0;return Q.colors[Math.abs(n)%Q.colors.length]}function z(a){function n(){if(n.enabled){var s=n,i=+new Date,l=i-(c||i);s.diff=l,s.prev=c,s.curr=i,c=i;for(var f=new Array(arguments.length),x=0;x<f.length;x++)f[x]=arguments[x];f[0]=Q.coerce(f[0]),typeof f[0]!="string"&&f.unshift("%O");var y=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,function(T,u){if(T==="%%")return T;y++;var b=Q.formatters[u];if(typeof b=="function"){var _=f[y];T=b.call(s,_),f.splice(y,1),y--}return T}),Q.formatArgs.call(s,f);var v=n.log||Q.log||console.log.bind(console);v.apply(s,f)}}return n.namespace=a,n.enabled=Q.enabled(a),n.useColors=Q.useColors(),n.color=g(a),typeof Q.init=="function"&&Q.init(n),n}function S(a){Q.save(a),Q.names=[],Q.skips=[];for(var n=(typeof a=="string"?a:"").split(/[\s,]+/),s=n.length,i=0;i<s;i++)n[i]&&(a=n[i].replace(/\*/g,".*?"),a[0]==="-"?Q.skips.push(new RegExp("^"+a.substr(1)+"$")):Q.names.push(new RegExp("^"+a+"$")))}function t(){Q.enable("")}function e(a){var n,s;for(n=0,s=Q.skips.length;n<s;n++)if(Q.skips[n].test(a))return!1;for(n=0,s=Q.names.length;n<s;n++)if(Q.names[n].test(a))return!0;return!1}function r(a){return a instanceof Error?a.stack||a.message:a}}),ON=zt((Q,Z)=>{Q=Z.exports=IN(),Q.log=z,Q.formatArgs=g,Q.save=S,Q.load=t,Q.useColors=c,Q.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:e(),Q.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function c(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Q.formatters.j=function(r){try{return JSON.stringify(r)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}};function g(r){var a=this.useColors;if(r[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+r[0]+(a?"%c ":" ")+"+"+Q.humanize(this.diff),!!a){var n="color: "+this.color;r.splice(1,0,n,"color: inherit");var s=0,i=0;r[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(s++,l==="%c"&&(i=s))}),r.splice(i,0,n)}}function z(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function S(r){try{r==null?Q.storage.removeItem("debug"):Q.storage.debug=r}catch{}}function t(){var r;try{r=Q.storage.debug}catch{}return!r&&typeof process<"u"&&"env"in process&&(r=o.DEBUG),r}Q.enable(t());function e(){try{return window.localStorage}catch{}}}),DN=zt((Q,Z)=>{var c=i3(),g=ON()("stream-parser");Z.exports=r;var z=-1,S=0,t=1,e=2;function r(u){var b=u&&typeof u._transform=="function",_=u&&typeof u._write=="function";if(!b&&!_)throw new Error("must pass a Writable or Transform
Line truncated
|
||||
`));var it=new i({actual:mt,expected:st,message:tt,operator:rt,stackStartFn:pt});throw it.generatedMessage=vt,it}}A.match=function mt(st,tt,pt){lt(st,tt,pt,mt,"match")},A.doesNotMatch=function mt(st,tt,pt){lt(st,tt,pt,mt,"doesNotMatch")};function yt(){for(var mt=arguments.length,st=new Array(mt),tt=0;tt<mt;tt++)st[tt]=arguments[tt];w.apply(void 0,[yt,st.length].concat(st))}A.strict=T(yt,A,{equal:A.strictEqual,deepEqual:A.deepStrictEqual,notEqual:A.notStrictEqual,notDeepEqual:A.notDeepStrictEqual}),A.strict.strict=A.strict}),zN=Rt((Q,Z)=>{var c=1e3,g=c*60,z=g*60,S=z*24,t=S*365.25;Z.exports=function(s,i){i=i||{};var l=typeof s;if(l==="string"&&s.length>0)return e(s);if(l==="number"&&isNaN(s)===!1)return i.long?a(s):r(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))};function e(s){if(s=String(s),!(s.length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(s);if(i){var l=parseFloat(i[1]),f=(i[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return l*t;case"days":case"day":case"d":return l*S;case"hours":case"hour":case"hrs":case"hr":case"h":return l*z;case"minutes":case"minute":case"mins":case"min":case"m":return l*g;case"seconds":case"second":case"secs":case"sec":case"s":return l*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function r(s){return s>=S?Math.round(s/S)+"d":s>=z?Math.round(s/z)+"h":s>=g?Math.round(s/g)+"m":s>=c?Math.round(s/c)+"s":s+"ms"}function a(s){return n(s,S,"day")||n(s,z,"hour")||n(s,g,"minute")||n(s,c,"second")||s+" ms"}function n(s,i,l){if(!(s<i))return s<i*1.5?Math.floor(s/i)+" "+l:Math.ceil(s/i)+" "+l+"s"}}),IN=Rt((Q,Z)=>{Q=Z.exports=z.debug=z.default=z,Q.coerce=r,Q.disable=t,Q.enable=S,Q.enabled=e,Q.humanize=zN(),Q.names=[],Q.skips=[],Q.formatters={};var c;function g(a){var n=0,s;for(s in a)n=(n<<5)-n+a.charCodeAt(s),n|=0;return Q.colors[Math.abs(n)%Q.colors.length]}function z(a){function n(){if(n.enabled){var s=n,i=+new Date,l=i-(c||i);s.diff=l,s.prev=c,s.curr=i,c=i;for(var f=new Array(arguments.length),x=0;x<f.length;x++)f[x]=arguments[x];f[0]=Q.coerce(f[0]),typeof f[0]!="string"&&f.unshift("%O");var y=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,function(T,u){if(T==="%%")return T;y++;var b=Q.formatters[u];if(typeof b=="function"){var _=f[y];T=b.call(s,_),f.splice(y,1),y--}return T}),Q.formatArgs.call(s,f);var v=n.log||Q.log||console.log.bind(console);v.apply(s,f)}}return n.namespace=a,n.enabled=Q.enabled(a),n.useColors=Q.useColors(),n.color=g(a),typeof Q.init=="function"&&Q.init(n),n}function S(a){Q.save(a),Q.names=[],Q.skips=[];for(var n=(typeof a=="string"?a:"").split(/[\s,]+/),s=n.length,i=0;i<s;i++)n[i]&&(a=n[i].replace(/\*/g,".*?"),a[0]==="-"?Q.skips.push(new RegExp("^"+a.substr(1)+"$")):Q.names.push(new RegExp("^"+a+"$")))}function t(){Q.enable("")}function e(a){var n,s;for(n=0,s=Q.skips.length;n<s;n++)if(Q.skips[n].test(a))return!1;for(n=0,s=Q.names.length;n<s;n++)if(Q.names[n].test(a))return!0;return!1}function r(a){return a instanceof Error?a.stack||a.message:a}}),ON=Rt((Q,Z)=>{Q=Z.exports=IN(),Q.log=z,Q.formatArgs=g,Q.save=S,Q.load=t,Q.useColors=c,Q.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:e(),Q.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function c(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Q.formatters.j=function(r){try{return JSON.stringify(r)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}};function g(r){var a=this.useColors;if(r[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+r[0]+(a?"%c ":" ")+"+"+Q.humanize(this.diff),!!a){var n="color: "+this.color;r.splice(1,0,n,"color: inherit");var s=0,i=0;r[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(s++,l==="%c"&&(i=s))}),r.splice(i,0,n)}}function z(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function S(r){try{r==null?Q.storage.removeItem("debug"):Q.storage.debug=r}catch{}}function t(){var r;try{r=Q.storage.debug}catch{}return!r&&typeof process<"u"&&"env"in process&&(r=o.DEBUG),r}Q.enable(t());function e(){try{return window.localStorage}catch{}}}),DN=Rt((Q,Z)=>{var c=i3(),g=ON()("stream-parser");Z.exports=r;var z=-1,S=0,t=1,e=2;function r(u){var b=u&&typeof u._transform=="function",_=u&&typeof u._write=="function";if(!b&&!_)throw new Error("must pass a Writable or Transform
Line truncated
|
||||
|
||||
`),t=c("IHDR");Z.exports=function(e){if(!(e.length<24)&&g(e,0,S)&&g(e,12,t))return{width:z(e,16),height:z(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}}),HN=zt((Q,Z)=>{var c=vh().str2arr,g=vh().sliceEq,z=vh().readUInt32BE,S=c("8BPS\0");Z.exports=function(t){if(!(t.length<22)&&g(t,0,S))return{width:z(t,18),height:z(t,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}}),WN=zt((Q,Z)=>{function c(l){return l===32||l===9||l===13||l===10}function g(l){return typeof l=="number"&&isFinite(l)&&l>0}function z(l){var f=0,x=l.length;for(l[0]===239&&l[1]===187&&l[2]===191&&(f=3);f<x&&c(l[f]);)f++;return f===x?!1:l[f]===60}var S=/<[-_.:a-zA-Z0-9][^>]*>/,t=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,e=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,r=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,a=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,n=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function s(l){var f=l.match(e),x=l.match(r),y=l.match(a);return{width:f&&(f[1]||f[2]),height:x&&(x[1]||x[2]),viewbox:y&&(y[1]||y[2])}}function i(l){return n.test(l)?l.match(n)[0]:"px"}Z.exports=function(l){if(z(l)){for(var f="",x=0;x<l.length;x++)f+=String.fromCharCode(l[x]);var y=(f.match(S)||[""])[0];if(t.test(y)){var v=s(y),T=parseFloat(v.width),u=parseFloat(v.height);if(v.width&&v.height)return!g(T)||!g(u)?void 0:{width:T,height:u,type:"svg",mime:"image/svg+xml",wUnits:i(v.width),hUnits:i(v.height)};var b=(v.viewbox||"").split(" "),_={width:b[2],height:b[3]},P=parseFloat(_.width),M=parseFloat(_.height);if(!(!g(P)||!g(M))&&i(_.width)===i(_.height)){var E=P/M;return v.width?g(T)?{width:T,height:T/E,type:"svg",mime:"image/svg+xml",wUnits:i(v.width),hUnits:i(v.width)}:void 0:v.height?g(u)?{width:u*E,height:u,type:"svg",mime:"image/svg+xml",wUnits:i(v.height),hUnits:i(v.height)}:void 0:{width:P,height:M,type:"svg",mime:"image/svg+xml",wUnits:i(_.width),hUnits:i(_.height)}}}}}}),$N=zt((Q,Z)=>{var c=vh().str2arr,g=vh().sliceEq,z=vh().readUInt16LE,S=vh().readUInt16BE,t=vh().readUInt32LE,e=vh().readUInt32BE,r=c("II*\0"),a=c("MM\0*");function n(l,f,x){return x?S(l,f):z(l,f)}function s(l,f,x){return x?e(l,f):t(l,f)}function i(l,f,x){var y=n(l,f+2,x),v=s(l,f+4,x);return v!==1||y!==3&&y!==4?null:y===3?n(l,f+8,x):s(l,f+8,x)}Z.exports=function(l){if(!(l.length<8)&&!(!g(l,0,r)&&!g(l,0,a))){var f=l[0]===77,x=s(l,4,f)-8;if(!(x<0)){var y=x+8;if(!(l.length-y<2)){var v=n(l,y+0,f)*12;if(!(v<=0)&&(y+=2,!(l.length-y<v))){var T,u,b,_;for(T=0;T<v;T+=12)_=n(l,y+T,f),_===256?u=i(l,y+T,f):_===257&&(b=i(l,y+T,f));if(u&&b)return{width:u,height:b,type:"tiff",mime:"image/tiff",wUnits:"px",hUnits:"px"}}}}}}}),qN=zt((Q,Z)=>{var c=vh().str2arr,g=vh().sliceEq,z=vh().readUInt16LE,S=vh().readUInt32LE,t=xk(),e=c("RIFF"),r=c("WEBP");function a(i,l){if(!(i[l+3]!==157||i[l+4]!==1||i[l+5]!==42))return{width:z(i,l+6)&16383,height:z(i,l+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function n(i,l){if(i[l]===47){var f=S(i,l+1);return{width:(f&16383)+1,height:(f>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function s(i,l){return{width:(i[l+6]<<16|i[l+5]<<8|i[l+4])+1,height:(i[l+9]<<l|i[l+8]<<8|i[l+7])+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}Z.exports=function(i){if(!(i.length<16)&&!(!g(i,0,e)&&!g(i,8,r))){var l=12,f=null,x=0,y=S(i,4)+8;if(!(y>i.length)){for(;l+8<y;){if(i[l]===0){l++;continue}var v=String.fromCharCode.apply(null,i.slice(l,l+4)),T=S(i,l+4);v==="VP8 "&&T>=10?f=f||a(i,l+8):v==="VP8L"&&T>=9?f=f||n(i,l+8):v==="VP8X"&&T>=10?f=f||s(i,l+8):v==="EXIF"&&(x=t.get_orientation(i.slice(l+8,l+8+T)),l=1/0),l+=8+T}if(f)return x>0&&(f.orientation=x),f}}}}),ZN=zt((Q,Z)=>{Z.exports={avif:RN(),bmp:BN(),gif:NN(),ico:jN(),jpeg:UN(),png:VN(),psd:HN(),svg:WN(),tiff:$N(),webp:qN()}}),GN=zt((Q,Z)=>{var c=ZN();function g(z){for(var S=Object.keys(c),t=0;t<S.length;t++){var e=c[S[t]](z);if(e)return e}return null}Z.exports=function(z){return g(z)},Z.exports.parsers=c}),YN=zt(Q=>{var Z=GN(),c=l0().IMAGE_URL_PREFIX,g=lx().Buffer;Q.getImageSize=function(z){var S=z.replace(c,""),t=new g(S,"base64");return Z(t)}}),KN=zt((Q,Z)=>{var c=Mn(),g=lb(),z=$n(),S=Es(),t=Mn().maxRowLength,e=YN().getImageSize;Z.exports=function(s,i){var l,f;if(i._hasZ)l=i.z.length,f=t(i.z);else if(i._hasSource){var x=e(i.source);l=x.height,f=x.width}var y=S.getFromId(s,i.xaxis||"x"),v=S.getFromId(s,i.yaxis||"y"),T=y.d2c(i.x0)-i.dx/2,u=v.d2c(i.y0)-i.dy/2,b,_=[T,T+f*i.dx],P=[u,u+l*i.dy];if(y&&y.type==="log")for(b=0;b<f;b++)_.push(T+b*i.dx);if(v&&v.type==="log")for(b=0;b<l;b++)P.push(u+b*i.dy);i._extremes[y._id]=S.findExtremes(y,_),i._extremes[v._id]=S.findExtremes(v,P),i._scaler=n(i);var M={x0:T,y0:u,z:i.z,w:f,h:l};return[M]};function r(s,i,l,f){return function(x){return c.constrain((x-s)*i,l,f)}}function a(s,i){return function(l){return c.constrain(l,s,i)}}function n(s){var i=g.colormodel[s.colormodel],l=i.colormodel||s.colormodel,f=l.length;s._sArray=[];for(var x=0;x<f;x++)i.min[x]!==s.zmin[x]||i.max[x]!==s.zmax[x]?s._sArray.push(r(s.zmin[x],(i.max[x]-i.min[x])/
Line truncated
|
||||
`),t=c("IHDR");Z.exports=function(e){if(!(e.length<24)&&g(e,0,S)&&g(e,12,t))return{width:z(e,16),height:z(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}}),HN=Rt((Q,Z)=>{var c=vh().str2arr,g=vh().sliceEq,z=vh().readUInt32BE,S=c("8BPS\0");Z.exports=function(t){if(!(t.length<22)&&g(t,0,S))return{width:z(t,18),height:z(t,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}}),WN=Rt((Q,Z)=>{function c(l){return l===32||l===9||l===13||l===10}function g(l){return typeof l=="number"&&isFinite(l)&&l>0}function z(l){var f=0,x=l.length;for(l[0]===239&&l[1]===187&&l[2]===191&&(f=3);f<x&&c(l[f]);)f++;return f===x?!1:l[f]===60}var S=/<[-_.:a-zA-Z0-9][^>]*>/,t=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,e=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,r=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,a=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,n=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function s(l){var f=l.match(e),x=l.match(r),y=l.match(a);return{width:f&&(f[1]||f[2]),height:x&&(x[1]||x[2]),viewbox:y&&(y[1]||y[2])}}function i(l){return n.test(l)?l.match(n)[0]:"px"}Z.exports=function(l){if(z(l)){for(var f="",x=0;x<l.length;x++)f+=String.fromCharCode(l[x]);var y=(f.match(S)||[""])[0];if(t.test(y)){var v=s(y),T=parseFloat(v.width),u=parseFloat(v.height);if(v.width&&v.height)return!g(T)||!g(u)?void 0:{width:T,height:u,type:"svg",mime:"image/svg+xml",wUnits:i(v.width),hUnits:i(v.height)};var b=(v.viewbox||"").split(" "),_={width:b[2],height:b[3]},P=parseFloat(_.width),M=parseFloat(_.height);if(!(!g(P)||!g(M))&&i(_.width)===i(_.height)){var E=P/M;return v.width?g(T)?{width:T,height:T/E,type:"svg",mime:"image/svg+xml",wUnits:i(v.width),hUnits:i(v.width)}:void 0:v.height?g(u)?{width:u*E,height:u,type:"svg",mime:"image/svg+xml",wUnits:i(v.height),hUnits:i(v.height)}:void 0:{width:P,height:M,type:"svg",mime:"image/svg+xml",wUnits:i(_.width),hUnits:i(_.height)}}}}}}),$N=Rt((Q,Z)=>{var c=vh().str2arr,g=vh().sliceEq,z=vh().readUInt16LE,S=vh().readUInt16BE,t=vh().readUInt32LE,e=vh().readUInt32BE,r=c("II*\0"),a=c("MM\0*");function n(l,f,x){return x?S(l,f):z(l,f)}function s(l,f,x){return x?e(l,f):t(l,f)}function i(l,f,x){var y=n(l,f+2,x),v=s(l,f+4,x);return v!==1||y!==3&&y!==4?null:y===3?n(l,f+8,x):s(l,f+8,x)}Z.exports=function(l){if(!(l.length<8)&&!(!g(l,0,r)&&!g(l,0,a))){var f=l[0]===77,x=s(l,4,f)-8;if(!(x<0)){var y=x+8;if(!(l.length-y<2)){var v=n(l,y+0,f)*12;if(!(v<=0)&&(y+=2,!(l.length-y<v))){var T,u,b,_;for(T=0;T<v;T+=12)_=n(l,y+T,f),_===256?u=i(l,y+T,f):_===257&&(b=i(l,y+T,f));if(u&&b)return{width:u,height:b,type:"tiff",mime:"image/tiff",wUnits:"px",hUnits:"px"}}}}}}}),qN=Rt((Q,Z)=>{var c=vh().str2arr,g=vh().sliceEq,z=vh().readUInt16LE,S=vh().readUInt32LE,t=xk(),e=c("RIFF"),r=c("WEBP");function a(i,l){if(!(i[l+3]!==157||i[l+4]!==1||i[l+5]!==42))return{width:z(i,l+6)&16383,height:z(i,l+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function n(i,l){if(i[l]===47){var f=S(i,l+1);return{width:(f&16383)+1,height:(f>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function s(i,l){return{width:(i[l+6]<<16|i[l+5]<<8|i[l+4])+1,height:(i[l+9]<<l|i[l+8]<<8|i[l+7])+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}Z.exports=function(i){if(!(i.length<16)&&!(!g(i,0,e)&&!g(i,8,r))){var l=12,f=null,x=0,y=S(i,4)+8;if(!(y>i.length)){for(;l+8<y;){if(i[l]===0){l++;continue}var v=String.fromCharCode.apply(null,i.slice(l,l+4)),T=S(i,l+4);v==="VP8 "&&T>=10?f=f||a(i,l+8):v==="VP8L"&&T>=9?f=f||n(i,l+8):v==="VP8X"&&T>=10?f=f||s(i,l+8):v==="EXIF"&&(x=t.get_orientation(i.slice(l+8,l+8+T)),l=1/0),l+=8+T}if(f)return x>0&&(f.orientation=x),f}}}}),ZN=Rt((Q,Z)=>{Z.exports={avif:RN(),bmp:BN(),gif:NN(),ico:jN(),jpeg:UN(),png:VN(),psd:HN(),svg:WN(),tiff:$N(),webp:qN()}}),GN=Rt((Q,Z)=>{var c=ZN();function g(z){for(var S=Object.keys(c),t=0;t<S.length;t++){var e=c[S[t]](z);if(e)return e}return null}Z.exports=function(z){return g(z)},Z.exports.parsers=c}),YN=Rt(Q=>{var Z=GN(),c=l0().IMAGE_URL_PREFIX,g=lx().Buffer;Q.getImageSize=function(z){var S=z.replace(c,""),t=new g(S,"base64");return Z(t)}}),KN=Rt((Q,Z)=>{var c=Cn(),g=lb(),z=ti(),S=Ls(),t=Cn().maxRowLength,e=YN().getImageSize;Z.exports=function(s,i){var l,f;if(i._hasZ)l=i.z.length,f=t(i.z);else if(i._hasSource){var x=e(i.source);l=x.height,f=x.width}var y=S.getFromId(s,i.xaxis||"x"),v=S.getFromId(s,i.yaxis||"y"),T=y.d2c(i.x0)-i.dx/2,u=v.d2c(i.y0)-i.dy/2,b,_=[T,T+f*i.dx],P=[u,u+l*i.dy];if(y&&y.type==="log")for(b=0;b<f;b++)_.push(T+b*i.dx);if(v&&v.type==="log")for(b=0;b<l;b++)P.push(u+b*i.dy);i._extremes[y._id]=S.findExtremes(y,_),i._extremes[v._id]=S.findExtremes(v,P),i._scaler=n(i);var M={x0:T,y0:u,z:i.z,w:f,h:l};return[M]};function r(s,i,l,f){return function(x){return c.constrain((x-s)*i,l,f)}}function a(s,i){return function(l){return c.constrain(l,s,i)}}function n(s){var i=g.colormodel[s.colormodel],l=i.colormodel||s.colormodel,f=l.length;s._sArray=[];for(var x=0;x<f;x++)i.min[x]!==s.zmin[x]||i.max[x]!==s.zmax[x]?s._sArray.push(r(s.zmin[x],(i.max[x]-i.min[x])/
Line truncated
|
||||
parent value =`,vt,`
|
||||
children sum =`,it].join(" "))}rt.value=vt});break}else i(lt,f,{branches:f.count.indexOf("branches")!==-1,leaves:f.count.indexOf("leaves")!==-1});if(!yt){f.sort&<.sort(function(rt,at){return at.value-rt.value});var mt,st,tt=f.marker.colors||[],pt=!!tt.length;return f._hasColorscale?(pt||(tt=_?f.values:f._values),e(l,f,{vals:tt,containerStr:"marker",cLetter:"c"}),st=z(f.marker)):mt=S(x["_"+f.type+"colormap"]),lt.each(function(rt){var at=rt.data.data;at.color=f._hasColorscale?st(tt[at.i]):mt(tt[at.i],at.id)}),P[0].hierarchy=lt,P}},Q._runCrossTraceCalc=function(l,f){var x=f._fullLayout,y=f.calcdata,v=x[l+"colorway"],T=x["_"+l+"colormap"];x["extend"+l+"colors"]&&(v=t(v,l==="icicle"?s:l==="treemap"?n:a));var u=0,b;function _(A){var h=A.data.data,p=h.id;h.color===!1&&(T[p]?h.color=T[p]:A.parent?A.parent.parent?h.color=A.parent.data.data.color:(T[p]=h.color=v[u%v.length],u++):h.color=b)}for(var P=0;P<y.length;P++){var M=y[P],E=M[0];E.trace.type===l&&E.hierarchy&&(b=E.trace.root.color,E.hierarchy.each(_))}},Q.crossTraceCalc=function(l){return Q._runCrossTraceCalc("sunburst",l)};function i(l,f,x){var y=0,v=l.children;if(v){for(var T=v.length,u=0;u<T;u++)y+=i(v[u],f,x);x.branches&&y++}else x.leaves&&y++;return l.value=l.data.data.value=y,f._values||(f._values=[]),f._values[l.data.data.i]=y,y}});function px(Q,Z,c){Q.prototype=Z.prototype=c,c.constructor=Q}function pb(Q,Z){var c=Object.create(Q.prototype);for(var g in Z)c[g]=Z[g];return c}var wk=Yr(()=>{});function Tv(){}function s9(){return this.rgb().formatHex()}function fj(){return this.rgb().formatHex8()}function dj(){return d9(this).formatHsl()}function l9(){return this.rgb().formatRgb()}function mb(Q){var Z,c;return Q=(Q+"").trim().toLowerCase(),(Z=m9.exec(Q))?(c=Z[1].length,Z=parseInt(Z[1],16),c===6?u9(Z):c===3?new dp(Z>>8&15|Z>>4&240,Z>>4&15|Z&240,(Z&15)<<4|Z&15,1):c===8?l3(Z>>24&255,Z>>16&255,Z>>8&255,(Z&255)/255):c===4?l3(Z>>12&15|Z>>8&240,Z>>8&15|Z>>4&240,Z>>4&15|Z&240,((Z&15)<<4|Z&15)/255):null):(Z=g9.exec(Q))?new dp(Z[1],Z[2],Z[3],1):(Z=v9.exec(Q))?new dp(Z[1]*255/100,Z[2]*255/100,Z[3]*255/100,1):(Z=y9.exec(Q))?l3(Z[1],Z[2],Z[3],Z[4]):(Z=x9.exec(Q))?l3(Z[1]*255/100,Z[2]*255/100,Z[3]*255/100,Z[4]):(Z=_9.exec(Q))?f9(Z[1],Z[2]/100,Z[3]/100,1):(Z=b9.exec(Q))?f9(Z[1],Z[2]/100,Z[3]/100,Z[4]):Mk.hasOwnProperty(Q)?u9(Mk[Q]):Q==="transparent"?new dp(NaN,NaN,NaN,0):null}function u9(Q){return new dp(Q>>16&255,Q>>8&255,Q&255,1)}function l3(Q,Z,c,g){return g<=0&&(Q=Z=c=NaN),new dp(Q,Z,c,g)}function kk(Q){return Q instanceof Tv||(Q=mb(Q)),Q?(Q=Q.rgb(),new dp(Q.r,Q.g,Q.b,Q.opacity)):new dp}function u3(Q,Z,c,g){return arguments.length===1?kk(Q):new dp(Q,Z,c,g??1)}function dp(Q,Z,c,g){this.r=+Q,this.g=+Z,this.b=+c,this.opacity=+g}function c9(){return`#${j1(this.r)}${j1(this.g)}${j1(this.b)}`}function pj(){return`#${j1(this.r)}${j1(this.g)}${j1(this.b)}${j1((isNaN(this.opacity)?1:this.opacity)*255)}`}function h9(){let Q=c3(this.opacity);return`${Q===1?"rgb(":"rgba("}${N1(this.r)}, ${N1(this.g)}, ${N1(this.b)}${Q===1?")":`, ${Q})`}`}function c3(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function N1(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function j1(Q){return Q=N1(Q),(Q<16?"0":"")+Q.toString(16)}function f9(Q,Z,c,g){return g<=0?Q=Z=c=NaN:c<=0||c>=1?Q=Z=NaN:Z<=0&&(Q=NaN),new km(Q,Z,c,g)}function d9(Q){if(Q instanceof km)return new km(Q.h,Q.s,Q.l,Q.opacity);if(Q instanceof Tv||(Q=mb(Q)),!Q)return new km;if(Q instanceof km)return Q;Q=Q.rgb();var Z=Q.r/255,c=Q.g/255,g=Q.b/255,z=Math.min(Z,c,g),S=Math.max(Z,c,g),t=NaN,e=S-z,r=(S+z)/2;return e?(Z===S?t=(c-g)/e+(c<g)*6:c===S?t=(g-Z)/e+2:t=(Z-c)/e+4,e/=r<.5?S+z:2-S-z,t*=60):e=r>0&&r<1?0:t,new km(t,e,r,Q.opacity)}function Tk(Q,Z,c,g){return arguments.length===1?d9(Q):new km(Q,Z,c,g??1)}function km(Q,Z,c,g){this.h=+Q,this.s=+Z,this.l=+c,this.opacity=+g}function p9(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function h3(Q){return Math.max(0,Math.min(1,Q||0))}function Ak(Q,Z,c){return(Q<60?Z+(c-Z)*Q/60:Q<180?c:Q<240?Z+(c-Z)*(240-Q)/60:Z)*255}var Av,U1,V1,mx,Tm,m9,g9,v9,y9,x9,_9,b9,Mk,Sk=Yr(()=>{wk(),Av=.7,U1=1/Av,V1="\\s*([+-]?\\d+)\\s*",mx="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Tm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",m9=/^#([0-9a-f]{3,8})$/,g9=new RegExp(`^rgb\\(${V1},${V1},${V1}\\)$`),v9=new RegExp(`^rgb\\(${Tm},${Tm},${Tm}\\)$`),y9=new RegExp(`^rgba\\(${V1},${V1},${V1},${mx}\\)$`),x9=new RegExp(`^rgba\\(${Tm},${Tm},${Tm},${mx}\\)$`),_9=new RegExp(`^hsl\\(${mx},${Tm},${Tm}\\)$`),b9=new RegExp(`^hsla\\(${mx},${Tm},${Tm},${mx}\\)$`),Mk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433
Line truncated
|
||||
children sum =`,it].join(" "))}rt.value=vt});break}else i(lt,f,{branches:f.count.indexOf("branches")!==-1,leaves:f.count.indexOf("leaves")!==-1});if(!yt){f.sort&<.sort(function(rt,at){return at.value-rt.value});var mt,st,tt=f.marker.colors||[],pt=!!tt.length;return f._hasColorscale?(pt||(tt=_?f.values:f._values),e(l,f,{vals:tt,containerStr:"marker",cLetter:"c"}),st=z(f.marker)):mt=S(x["_"+f.type+"colormap"]),lt.each(function(rt){var at=rt.data.data;at.color=f._hasColorscale?st(tt[at.i]):mt(tt[at.i],at.id)}),P[0].hierarchy=lt,P}},Q._runCrossTraceCalc=function(l,f){var x=f._fullLayout,y=f.calcdata,v=x[l+"colorway"],T=x["_"+l+"colormap"];x["extend"+l+"colors"]&&(v=t(v,l==="icicle"?s:l==="treemap"?n:a));var u=0,b;function _(A){var h=A.data.data,p=h.id;h.color===!1&&(T[p]?h.color=T[p]:A.parent?A.parent.parent?h.color=A.parent.data.data.color:(T[p]=h.color=v[u%v.length],u++):h.color=b)}for(var P=0;P<y.length;P++){var M=y[P],E=M[0];E.trace.type===l&&E.hierarchy&&(b=E.trace.root.color,E.hierarchy.each(_))}},Q.crossTraceCalc=function(l){return Q._runCrossTraceCalc("sunburst",l)};function i(l,f,x){var y=0,v=l.children;if(v){for(var T=v.length,u=0;u<T;u++)y+=i(v[u],f,x);x.branches&&y++}else x.leaves&&y++;return l.value=l.data.data.value=y,f._values||(f._values=[]),f._values[l.data.data.i]=y,y}});function px(Q,Z,c){Q.prototype=Z.prototype=c,c.constructor=Q}function pb(Q,Z){var c=Object.create(Q.prototype);for(var g in Z)c[g]=Z[g];return c}var wk=Yr(()=>{});function Tv(){}function s9(){return this.rgb().formatHex()}function fj(){return this.rgb().formatHex8()}function dj(){return d9(this).formatHsl()}function l9(){return this.rgb().formatRgb()}function mb(Q){var Z,c;return Q=(Q+"").trim().toLowerCase(),(Z=m9.exec(Q))?(c=Z[1].length,Z=parseInt(Z[1],16),c===6?u9(Z):c===3?new dp(Z>>8&15|Z>>4&240,Z>>4&15|Z&240,(Z&15)<<4|Z&15,1):c===8?l3(Z>>24&255,Z>>16&255,Z>>8&255,(Z&255)/255):c===4?l3(Z>>12&15|Z>>8&240,Z>>8&15|Z>>4&240,Z>>4&15|Z&240,((Z&15)<<4|Z&15)/255):null):(Z=g9.exec(Q))?new dp(Z[1],Z[2],Z[3],1):(Z=v9.exec(Q))?new dp(Z[1]*255/100,Z[2]*255/100,Z[3]*255/100,1):(Z=y9.exec(Q))?l3(Z[1],Z[2],Z[3],Z[4]):(Z=x9.exec(Q))?l3(Z[1]*255/100,Z[2]*255/100,Z[3]*255/100,Z[4]):(Z=_9.exec(Q))?f9(Z[1],Z[2]/100,Z[3]/100,1):(Z=b9.exec(Q))?f9(Z[1],Z[2]/100,Z[3]/100,Z[4]):Mk.hasOwnProperty(Q)?u9(Mk[Q]):Q==="transparent"?new dp(NaN,NaN,NaN,0):null}function u9(Q){return new dp(Q>>16&255,Q>>8&255,Q&255,1)}function l3(Q,Z,c,g){return g<=0&&(Q=Z=c=NaN),new dp(Q,Z,c,g)}function kk(Q){return Q instanceof Tv||(Q=mb(Q)),Q?(Q=Q.rgb(),new dp(Q.r,Q.g,Q.b,Q.opacity)):new dp}function u3(Q,Z,c,g){return arguments.length===1?kk(Q):new dp(Q,Z,c,g??1)}function dp(Q,Z,c,g){this.r=+Q,this.g=+Z,this.b=+c,this.opacity=+g}function c9(){return`#${j1(this.r)}${j1(this.g)}${j1(this.b)}`}function pj(){return`#${j1(this.r)}${j1(this.g)}${j1(this.b)}${j1((isNaN(this.opacity)?1:this.opacity)*255)}`}function h9(){let Q=c3(this.opacity);return`${Q===1?"rgb(":"rgba("}${N1(this.r)}, ${N1(this.g)}, ${N1(this.b)}${Q===1?")":`, ${Q})`}`}function c3(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function N1(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function j1(Q){return Q=N1(Q),(Q<16?"0":"")+Q.toString(16)}function f9(Q,Z,c,g){return g<=0?Q=Z=c=NaN:c<=0||c>=1?Q=Z=NaN:Z<=0&&(Q=NaN),new km(Q,Z,c,g)}function d9(Q){if(Q instanceof km)return new km(Q.h,Q.s,Q.l,Q.opacity);if(Q instanceof Tv||(Q=mb(Q)),!Q)return new km;if(Q instanceof km)return Q;Q=Q.rgb();var Z=Q.r/255,c=Q.g/255,g=Q.b/255,z=Math.min(Z,c,g),S=Math.max(Z,c,g),t=NaN,e=S-z,r=(S+z)/2;return e?(Z===S?t=(c-g)/e+(c<g)*6:c===S?t=(g-Z)/e+2:t=(Z-c)/e+4,e/=r<.5?S+z:2-S-z,t*=60):e=r>0&&r<1?0:t,new km(t,e,r,Q.opacity)}function Tk(Q,Z,c,g){return arguments.length===1?d9(Q):new km(Q,Z,c,g??1)}function km(Q,Z,c,g){this.h=+Q,this.s=+Z,this.l=+c,this.opacity=+g}function p9(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function h3(Q){return Math.max(0,Math.min(1,Q||0))}function Ak(Q,Z,c){return(Q<60?Z+(c-Z)*Q/60:Q<180?c:Q<240?Z+(c-Z)*(240-Q)/60:Z)*255}var Av,U1,V1,mx,Tm,m9,g9,v9,y9,x9,_9,b9,Mk,Sk=Yr(()=>{wk(),Av=.7,U1=1/Av,V1="\\s*([+-]?\\d+)\\s*",mx="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Tm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",m9=/^#([0-9a-f]{3,8})$/,g9=new RegExp(`^rgb\\(${V1},${V1},${V1}\\)$`),v9=new RegExp(`^rgb\\(${Tm},${Tm},${Tm}\\)$`),y9=new RegExp(`^rgba\\(${V1},${V1},${V1},${mx}\\)$`),x9=new RegExp(`^rgba\\(${Tm},${Tm},${Tm},${mx}\\)$`),_9=new RegExp(`^hsl\\(${mx},${Tm},${Tm}\\)$`),b9=new RegExp(`^hsla\\(${mx},${Tm},${Tm},${mx}\\)$`),Mk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433
Line truncated
|
||||
|
||||
precision highp float;
|
||||
#define GLSLIFY 1
|
||||
@@ -935,7 +935,7 @@ uniform vec3 contourColor;
|
||||
void main() {
|
||||
gl_FragColor = vec4(contourColor, 1.0);
|
||||
}
|
||||
`]);e.meshShader={vertex:n,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},e.wireShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},e.pointShader={vertex:f,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},e.pickShader={vertex:y,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},e.pointPickShader={vertex:T,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},e.contourShader={vertex:u,fragment:b,attributes:[{name:"position",type:"vec3"}]}},855:function(t,e,r){t.exports={init:_,sweepBipartite:E,sweepComplete:A,scanBipartite:h,scanComplete:p};var a=r(1888),n=r(8828),s=r(4192),i=1<<28,l=1024,f=a.mallocInt32(l),x=a.mallocInt32(l),y=a.mallocInt32(l),v=a.mallocInt32(l),T=a.mallocInt32(l),u=a.mallocInt32(l),b=a.mallocDouble(l*8);function _(k){var w=n.nextPow2(k);f.length<w&&(a.free(f),f=a.mallocInt32(w)),x.length<w&&(a.free(x),x=a.mallocInt32(w)),y.length<w&&(a.free(y),y=a.mallocInt32(w)),v.length<w&&(a.free(v),v=a.mallocInt32(w)),T.length<w&&(a.free(T),T=a.mallocInt32(w)),u.length<w&&(a.free(u),u=a.mallocInt32(w));var R=8*w;b.length<R&&(a.free(b),b=a.mallocDouble(R))}function P(k,w,R,O){var j=w[O],V=k[R-1];k[j]=V,w[V]=j}function M(k,w,R,O){k[R]=O,w[O]=R}function E(k,w,R,O,j,V,H,F,U,W){for(var $=0,J=2*k,lt=k-1,yt=J-1,mt=R;mt<O;++mt){var st=V[mt],tt=J*mt;b[$++]=j[tt+lt],b[$++]=-(st+1),b[$++]=j[tt+yt],b[$++]=st}for(var mt=H;mt<F;++mt){var st=W[mt]+i,pt=J*mt;b[$++]=U[pt+lt],b[$++]=-st,b[$++]=U[pt+yt],b[$++]=st}var rt=$>>>1;s(b,rt);for(var at=0,vt=0,mt=0;mt<rt;++mt){var it=b[2*mt+1]|0;if(it>=i)it=it-i|0,P(y,v,vt--,it);else if(it>=0)P(f,x,at--,it);else if(it<=-i){it=-it-i|0;for(var K=0;K<at;++K){var ft=w(f[K],it);if(ft!==void 0)return ft}M(y,v,vt++,it)}else{it=-it-1|0;for(var K=0;K<vt;++K){var ft=w(it,y[K]);if(ft!==void 0)return ft}M(f,x,at++,it)}}}function A(k,w,R,O,j,V,H,F,U,W){for(var $=0,J=2*k,lt=k-1,yt=J-1,mt=R;mt<O;++mt){var st=V[mt]+1<<1,tt=J*mt;b[$++]=j[tt+lt],b[$++]=-st,b[$++]=j[tt+yt],b[$++]=st}for(var mt=H;mt<F;++mt){var st=W[mt]+1<<1,pt=J*mt;b[$++]=U[pt+lt],b[$++]=-st|1,b[$++]=U[pt+yt],b[$++]=st|1}var rt=$>>>1;s(b,rt);for(var at=0,vt=0,it=0,mt=0;mt<rt;++mt){var K=b[2*mt+1]|0,ft=K&1;if(mt<rt-1&&K>>1===b[2*mt+3]>>1&&(ft=2,mt+=1),K<0){for(var ut=-(K>>1)-1,kt=0;kt<it;++kt){var Ot=w(T[kt],ut);if(Ot!==void 0)return Ot}if(ft!==0)for(var kt=0;kt<at;++kt){var Ot=w(f[kt],ut);if(Ot!==void 0)return Ot}if(ft!==1)for(var kt=0;kt<vt;++kt){var Ot=w(y[kt],ut);if(Ot!==void 0)return Ot}ft===0?M(f,x,at++,ut):ft===1?M(y,v,vt++,ut):ft===2&&M(T,u,it++,ut)}else{var ut=(K>>1)-1;ft===0?P(f,x,at--,ut):ft===1?P(y,v,vt--,ut):ft===2&&P(T,u,it--,ut)}}}function h(k,w,R,O,j,V,H,F,U,W,$,J){var lt=0,yt=2*k,mt=w,st=w+k,tt=1,pt=1;O?pt=i:tt=i;for(var rt=j;rt<V;++rt){var at=rt+tt,vt=yt*rt;b[lt++]=H[vt+mt],b[lt++]=-at,b[lt++]=H[vt+st],b[lt++]=at}for(var rt=U;rt<W;++rt){var at=rt+pt,it=yt*rt;b[lt++]=$[it+mt],b[lt++]=-at}var K=lt>>>1;s(b,K);for(var ft=0,rt=0;rt<K;++rt){var ut=b[2*rt+1]|0;if(ut<0){var at=-ut,kt=!1;if(at>=i?(kt=!O,at-=i):(kt=!!O,at-=1),kt)M(f,x,ft++,at);else{var Ot=J[at],It=yt*at,qt=$[It+w+1],$t=$[It+w+1+k];t:for(var Qt=0;Qt<ft;++Qt){var ve=f[Qt],de=yt*ve;if(!($t<H[de+w+1]||H[de+w+1+k]<qt)){for(var me=w+2;me<k;++me)if($[It+me+k]<H[de+me]||H[de+me+k]<$[It+me])continue t;var ue=F[ve],Tt;if(O?Tt=R(Ot,ue):Tt=R(ue,Ot),Tt!==void 0)return Tt}}}}else P(f,x,ft--,ut-tt)}}function p(k,w,R,O,j,V,H,F,U,W,$){for(var J=0,lt=2*k,yt=w,mt=w+k,st=O;st<j;++st){var tt=st+i,pt=lt*st;b[J++]=V[pt+yt],b[J++]=-tt,b[J++]=V[pt+mt],b[J++]=tt}for(var st=F;st<U;++st){var tt=st+1,rt=lt*st;b[J++]=W[rt+yt],b[J++]=-tt}var at=J>>>1;s(b,at);for(var vt=0,st=0;st<at;++st){var it=b[2*st+1]|0;if(it<0){var tt=-it;if(tt>=i)f[vt++]=tt-i;else{tt-=1;var K=$[tt],ft=lt*tt,ut=W[ft+w+1],kt=W[ft+w+1+k];t:for(var Ot=0;Ot<vt;++Ot){var It=f[Ot],qt=H[It];if(qt===K)break;var $t=lt*It;if(!(kt<V[$t+w+1]||V[$t+w+1+k]<ut)){for(var Qt=w+2;Qt<k;++Qt)if(W[ft+Qt+k]<V[$t+Qt]||V[$t+Qt+k]<W[ft+Qt])continue t;var ve=R(qt,K);if(ve!==void 0)return ve}}}}else{for(var tt=it-i,Ot=vt-1;Ot>=0;--Ot)if(f[Ot]===tt){for(var Qt=Ot+1;Qt<vt;++Qt)f[Qt-1]=f[Qt];break}--vt}}}},868:function(t,e,r){t.exports=r(1387)},869:function(t,e,r){var a=r(2651),n=r(5716);t.exports=s;function s(i,l){var f=n(i),x=n(l);if(f===0)return[a(0),a(1)];if(x===0)return[a(0),a(0)];x<0&&(i=i.neg(),l=l.neg());var y=i.gcd(l);return y.cmpn(1)?[i.div(y),l.div(y)]:[i,l]}},870:function(t,e,r){var a=r(1433);function n(i){this.gl=i,this._elements=null,this._attributes=null,this._elementsType=i.UNSIGNED_SHORT}n.prototype.bind=function(){a(this.gl,this._elements,this._attributes)},n.prototype.update=function(i,l,f){this._elements=l,this._attributes=i,this._elementsType=f||this.gl.UNSIGNED_SHORT},n.prototype.dispose=function(){
Line truncated
|
||||
`]);e.meshShader={vertex:n,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},e.wireShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},e.pointShader={vertex:f,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},e.pickShader={vertex:y,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},e.pointPickShader={vertex:T,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},e.contourShader={vertex:u,fragment:b,attributes:[{name:"position",type:"vec3"}]}},855:function(t,e,r){t.exports={init:_,sweepBipartite:E,sweepComplete:A,scanBipartite:h,scanComplete:p};var a=r(1888),n=r(8828),s=r(4192),i=1<<28,l=1024,f=a.mallocInt32(l),x=a.mallocInt32(l),y=a.mallocInt32(l),v=a.mallocInt32(l),T=a.mallocInt32(l),u=a.mallocInt32(l),b=a.mallocDouble(l*8);function _(k){var w=n.nextPow2(k);f.length<w&&(a.free(f),f=a.mallocInt32(w)),x.length<w&&(a.free(x),x=a.mallocInt32(w)),y.length<w&&(a.free(y),y=a.mallocInt32(w)),v.length<w&&(a.free(v),v=a.mallocInt32(w)),T.length<w&&(a.free(T),T=a.mallocInt32(w)),u.length<w&&(a.free(u),u=a.mallocInt32(w));var R=8*w;b.length<R&&(a.free(b),b=a.mallocDouble(R))}function P(k,w,R,O){var j=w[O],V=k[R-1];k[j]=V,w[V]=j}function M(k,w,R,O){k[R]=O,w[O]=R}function E(k,w,R,O,j,V,H,F,U,W){for(var $=0,J=2*k,lt=k-1,yt=J-1,mt=R;mt<O;++mt){var st=V[mt],tt=J*mt;b[$++]=j[tt+lt],b[$++]=-(st+1),b[$++]=j[tt+yt],b[$++]=st}for(var mt=H;mt<F;++mt){var st=W[mt]+i,pt=J*mt;b[$++]=U[pt+lt],b[$++]=-st,b[$++]=U[pt+yt],b[$++]=st}var rt=$>>>1;s(b,rt);for(var at=0,vt=0,mt=0;mt<rt;++mt){var it=b[2*mt+1]|0;if(it>=i)it=it-i|0,P(y,v,vt--,it);else if(it>=0)P(f,x,at--,it);else if(it<=-i){it=-it-i|0;for(var K=0;K<at;++K){var ft=w(f[K],it);if(ft!==void 0)return ft}M(y,v,vt++,it)}else{it=-it-1|0;for(var K=0;K<vt;++K){var ft=w(it,y[K]);if(ft!==void 0)return ft}M(f,x,at++,it)}}}function A(k,w,R,O,j,V,H,F,U,W){for(var $=0,J=2*k,lt=k-1,yt=J-1,mt=R;mt<O;++mt){var st=V[mt]+1<<1,tt=J*mt;b[$++]=j[tt+lt],b[$++]=-st,b[$++]=j[tt+yt],b[$++]=st}for(var mt=H;mt<F;++mt){var st=W[mt]+1<<1,pt=J*mt;b[$++]=U[pt+lt],b[$++]=-st|1,b[$++]=U[pt+yt],b[$++]=st|1}var rt=$>>>1;s(b,rt);for(var at=0,vt=0,it=0,mt=0;mt<rt;++mt){var K=b[2*mt+1]|0,ft=K&1;if(mt<rt-1&&K>>1===b[2*mt+3]>>1&&(ft=2,mt+=1),K<0){for(var ut=-(K>>1)-1,kt=0;kt<it;++kt){var It=w(T[kt],ut);if(It!==void 0)return It}if(ft!==0)for(var kt=0;kt<at;++kt){var It=w(f[kt],ut);if(It!==void 0)return It}if(ft!==1)for(var kt=0;kt<vt;++kt){var It=w(y[kt],ut);if(It!==void 0)return It}ft===0?M(f,x,at++,ut):ft===1?M(y,v,vt++,ut):ft===2&&M(T,u,it++,ut)}else{var ut=(K>>1)-1;ft===0?P(f,x,at--,ut):ft===1?P(y,v,vt--,ut):ft===2&&P(T,u,it--,ut)}}}function h(k,w,R,O,j,V,H,F,U,W,$,J){var lt=0,yt=2*k,mt=w,st=w+k,tt=1,pt=1;O?pt=i:tt=i;for(var rt=j;rt<V;++rt){var at=rt+tt,vt=yt*rt;b[lt++]=H[vt+mt],b[lt++]=-at,b[lt++]=H[vt+st],b[lt++]=at}for(var rt=U;rt<W;++rt){var at=rt+pt,it=yt*rt;b[lt++]=$[it+mt],b[lt++]=-at}var K=lt>>>1;s(b,K);for(var ft=0,rt=0;rt<K;++rt){var ut=b[2*rt+1]|0;if(ut<0){var at=-ut,kt=!1;if(at>=i?(kt=!O,at-=i):(kt=!!O,at-=1),kt)M(f,x,ft++,at);else{var It=J[at],zt=yt*at,qt=$[zt+w+1],$t=$[zt+w+1+k];t:for(var Qt=0;Qt<ft;++Qt){var ve=f[Qt],de=yt*ve;if(!($t<H[de+w+1]||H[de+w+1+k]<qt)){for(var me=w+2;me<k;++me)if($[zt+me+k]<H[de+me]||H[de+me+k]<$[zt+me])continue t;var ue=F[ve],Tt;if(O?Tt=R(It,ue):Tt=R(ue,It),Tt!==void 0)return Tt}}}}else P(f,x,ft--,ut-tt)}}function p(k,w,R,O,j,V,H,F,U,W,$){for(var J=0,lt=2*k,yt=w,mt=w+k,st=O;st<j;++st){var tt=st+i,pt=lt*st;b[J++]=V[pt+yt],b[J++]=-tt,b[J++]=V[pt+mt],b[J++]=tt}for(var st=F;st<U;++st){var tt=st+1,rt=lt*st;b[J++]=W[rt+yt],b[J++]=-tt}var at=J>>>1;s(b,at);for(var vt=0,st=0;st<at;++st){var it=b[2*st+1]|0;if(it<0){var tt=-it;if(tt>=i)f[vt++]=tt-i;else{tt-=1;var K=$[tt],ft=lt*tt,ut=W[ft+w+1],kt=W[ft+w+1+k];t:for(var It=0;It<vt;++It){var zt=f[It],qt=H[zt];if(qt===K)break;var $t=lt*zt;if(!(kt<V[$t+w+1]||V[$t+w+1+k]<ut)){for(var Qt=w+2;Qt<k;++Qt)if(W[ft+Qt+k]<V[$t+Qt]||V[$t+Qt+k]<W[ft+Qt])continue t;var ve=R(qt,K);if(ve!==void 0)return ve}}}}else{for(var tt=it-i,It=vt-1;It>=0;--It)if(f[It]===tt){for(var Qt=It+1;Qt<vt;++Qt)f[Qt-1]=f[Qt];break}--vt}}}},868:function(t,e,r){t.exports=r(1387)},869:function(t,e,r){var a=r(2651),n=r(5716);t.exports=s;function s(i,l){var f=n(i),x=n(l);if(f===0)return[a(0),a(1)];if(x===0)return[a(0),a(0)];x<0&&(i=i.neg(),l=l.neg());var y=i.gcd(l);return y.cmpn(1)?[i.div(y),l.div(y)]:[i,l]}},870:function(t,e,r){var a=r(1433);function n(i){this.gl=i,this._elements=null,this._attributes=null,this._elementsType=i.UNSIGNED_SHORT}n.prototype.bind=function(){a(this.gl,this._elements,this._attributes)},n.prototype.update=function(i,l,f){this._elements=l,this._attributes=i,this._elementsType=f||this.gl.UNSIGNED_SHORT},n.prototype.dispose=function(){
Line truncated
|
||||
#define GLSLIFY 1
|
||||
|
||||
attribute vec4 uv;
|
||||
@@ -1633,7 +1633,7 @@ void main() {
|
||||
gl_FragColor = colorChannel.x * colors[0] +
|
||||
colorChannel.y * colors[1] +
|
||||
colorChannel.z * colors[2];
|
||||
}`]);e.bg=function(v){return n(v,x,y,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},1888:function(t,e,r){var a=r(8828),n=r(1338),s=r(4793).hp;r.g.__TYPEDARRAY_POOL||(r.g.__TYPEDARRAY_POOL={UINT8:n([32,0]),UINT16:n([32,0]),UINT32:n([32,0]),BIGUINT64:n([32,0]),INT8:n([32,0]),INT16:n([32,0]),INT32:n([32,0]),BIGINT64:n([32,0]),FLOAT:n([32,0]),DOUBLE:n([32,0]),DATA:n([32,0]),UINT8C:n([32,0]),BUFFER:n([32,0])});var i=typeof Uint8ClampedArray<"u",l=typeof BigUint64Array<"u",f=typeof BigInt64Array<"u",x=r.g.__TYPEDARRAY_POOL;x.UINT8C||(x.UINT8C=n([32,0])),x.BIGUINT64||(x.BIGUINT64=n([32,0])),x.BIGINT64||(x.BIGINT64=n([32,0])),x.BUFFER||(x.BUFFER=n([32,0]));var y=x.DATA,v=x.BUFFER;e.free=function(H){if(s.isBuffer(H))v[a.log2(H.length)].push(H);else{if(Object.prototype.toString.call(H)!=="[object ArrayBuffer]"&&(H=H.buffer),!H)return;var F=H.length||H.byteLength,U=a.log2(F)|0;y[U].push(H)}};function T(H){if(H){var F=H.length||H.byteLength,U=a.log2(F);y[U].push(H)}}function u(H){T(H.buffer)}e.freeUint8=e.freeUint16=e.freeUint32=e.freeBigUint64=e.freeInt8=e.freeInt16=e.freeInt32=e.freeBigInt64=e.freeFloat32=e.freeFloat=e.freeFloat64=e.freeDouble=e.freeUint8Clamped=e.freeDataView=u,e.freeArrayBuffer=T,e.freeBuffer=function(H){v[a.log2(H.length)].push(H)},e.malloc=function(H,F){if(F===void 0||F==="arraybuffer")return b(H);switch(F){case"uint8":return _(H);case"uint16":return P(H);case"uint32":return M(H);case"int8":return E(H);case"int16":return A(H);case"int32":return h(H);case"float":case"float32":return p(H);case"double":case"float64":return k(H);case"uint8_clamped":return w(H);case"bigint64":return O(H);case"biguint64":return R(H);case"buffer":return V(H);case"data":case"dataview":return j(H);default:return null}return null};function b(F){var F=a.nextPow2(F),U=a.log2(F),W=y[U];return W.length>0?W.pop():new ArrayBuffer(F)}e.mallocArrayBuffer=b;function _(H){return new Uint8Array(b(H),0,H)}e.mallocUint8=_;function P(H){return new Uint16Array(b(2*H),0,H)}e.mallocUint16=P;function M(H){return new Uint32Array(b(4*H),0,H)}e.mallocUint32=M;function E(H){return new Int8Array(b(H),0,H)}e.mallocInt8=E;function A(H){return new Int16Array(b(2*H),0,H)}e.mallocInt16=A;function h(H){return new Int32Array(b(4*H),0,H)}e.mallocInt32=h;function p(H){return new Float32Array(b(4*H),0,H)}e.mallocFloat32=e.mallocFloat=p;function k(H){return new Float64Array(b(8*H),0,H)}e.mallocFloat64=e.mallocDouble=k;function w(H){return i?new Uint8ClampedArray(b(H),0,H):_(H)}e.mallocUint8Clamped=w;function R(H){return l?new BigUint64Array(b(8*H),0,H):null}e.mallocBigUint64=R;function O(H){return f?new BigInt64Array(b(8*H),0,H):null}e.mallocBigInt64=O;function j(H){return new DataView(b(H),0,H)}e.mallocDataView=j;function V(H){H=a.nextPow2(H);var F=a.log2(H),U=v[F];return U.length>0?U.pop():new s(H)}e.mallocBuffer=V,e.clearCache=function(){for(var H=0;H<32;++H)x.UINT8[H].length=0,x.UINT16[H].length=0,x.UINT32[H].length=0,x.INT8[H].length=0,x.INT16[H].length=0,x.INT32[H].length=0,x.FLOAT[H].length=0,x.DOUBLE[H].length=0,x.BIGUINT64[H].length=0,x.BIGINT64[H].length=0,x.UINT8C[H].length=0,y[H].length=0,v[H].length=0}},1903:function(t){t.exports=e;function e(r){var a=new Float32Array(16);return a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3],a[4]=r[4],a[5]=r[5],a[6]=r[6],a[7]=r[7],a[8]=r[8],a[9]=r[9],a[10]=r[10],a[11]=r[11],a[12]=r[12],a[13]=r[13],a[14]=r[14],a[15]=r[15],a}},1944:function(t,e,r){var a=r(5250),n=r(8210);t.exports=s;function s(i,l){for(var f=a(i[0],l[0]),x=1;x<i.length;++x)f=n(f,a(i[x],l[x]));return f}},1964:function(t,e,r){t.exports={alpha_shape:r(3502),convex_hull:r(7352),delaunay_triangulate:r(7642),gl_cone3d:r(6405),gl_error3d:r(9165),gl_line3d:r(5714),gl_mesh3d:r(7201),gl_plot3d:r(4100),gl_scatter3d:r(8418),gl_streamtube3d:r(7815),gl_surface3d:r(9499),ndarray:r(9618),ndarray_linear_interpolate:r(4317)}},2014:function(t,e,r){"use restrict";var a=r(3105),n=r(4623);function s(p){for(var k=0,w=Math.max,R=0,O=p.length;R<O;++R)k=w(k,p[R].length);return k-1}e.dimension=s;function i(p){for(var k=-1,w=Math.max,R=0,O=p.length;R<O;++R)for(var j=p[R],V=0,H=j.length;V<H;++V)k=w(k,j[V]);return k+1}e.countVertices=i;function l(p){for(var k=new Array(p.length),w=0,R=p.length;w<R;++w)k[w]=p[w].slice(0);return k}e.cloneCells=l;function f(p,k){var w=p.length,R=p.length-k.length,O=Math.min;if(R)return R;switch(w){case 0:return 0;case 1:return p[0]-k[0];case 2:var U=p[0]+p[1]-k[0]-k[1];return U||O(p[0],p[1])-O(k[0],k[1]);case 3:var j=p[0]+p[1],V=k[0]+k[1];if(U=j+p[2]-(V+k[2]),U)return U;var H=O(p[0],p[1]),F=O(k[0],k[1]),U=O(H,p[2])-O(F,k[2]);return U||O(H+p[2],j)-O(F+k[2],V);default:var W=p.slice(0);W.sort();var $=k.slice(0);$.sort();for(var J=0;J<w;++J)if(R=W[J]-$[J],R)return R;return 0}}e.compareCells=f;function x(p,k){return f(p[0],k[0])}function y(p,k){if(k){for(var w=p.length,R=new Array(w),O=0;O<w;++O)R[O]=[p[O],k[O]];R.sort(x);for(var O=0;O<w;++O)p[O]=R[O][0],k[O]=R[O][1];return p}else return p.sort(f),p}e.normalize=y;function v(p){if(p.le
Line truncated
|
||||
}`]);e.bg=function(v){return n(v,x,y,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},1888:function(t,e,r){var a=r(8828),n=r(1338),s=r(4793).hp;r.g.__TYPEDARRAY_POOL||(r.g.__TYPEDARRAY_POOL={UINT8:n([32,0]),UINT16:n([32,0]),UINT32:n([32,0]),BIGUINT64:n([32,0]),INT8:n([32,0]),INT16:n([32,0]),INT32:n([32,0]),BIGINT64:n([32,0]),FLOAT:n([32,0]),DOUBLE:n([32,0]),DATA:n([32,0]),UINT8C:n([32,0]),BUFFER:n([32,0])});var i=typeof Uint8ClampedArray<"u",l=typeof BigUint64Array<"u",f=typeof BigInt64Array<"u",x=r.g.__TYPEDARRAY_POOL;x.UINT8C||(x.UINT8C=n([32,0])),x.BIGUINT64||(x.BIGUINT64=n([32,0])),x.BIGINT64||(x.BIGINT64=n([32,0])),x.BUFFER||(x.BUFFER=n([32,0]));var y=x.DATA,v=x.BUFFER;e.free=function(H){if(s.isBuffer(H))v[a.log2(H.length)].push(H);else{if(Object.prototype.toString.call(H)!=="[object ArrayBuffer]"&&(H=H.buffer),!H)return;var F=H.length||H.byteLength,U=a.log2(F)|0;y[U].push(H)}};function T(H){if(H){var F=H.length||H.byteLength,U=a.log2(F);y[U].push(H)}}function u(H){T(H.buffer)}e.freeUint8=e.freeUint16=e.freeUint32=e.freeBigUint64=e.freeInt8=e.freeInt16=e.freeInt32=e.freeBigInt64=e.freeFloat32=e.freeFloat=e.freeFloat64=e.freeDouble=e.freeUint8Clamped=e.freeDataView=u,e.freeArrayBuffer=T,e.freeBuffer=function(H){v[a.log2(H.length)].push(H)},e.malloc=function(H,F){if(F===void 0||F==="arraybuffer")return b(H);switch(F){case"uint8":return _(H);case"uint16":return P(H);case"uint32":return M(H);case"int8":return E(H);case"int16":return A(H);case"int32":return h(H);case"float":case"float32":return p(H);case"double":case"float64":return k(H);case"uint8_clamped":return w(H);case"bigint64":return O(H);case"biguint64":return R(H);case"buffer":return V(H);case"data":case"dataview":return j(H);default:return null}return null};function b(F){var F=a.nextPow2(F),U=a.log2(F),W=y[U];return W.length>0?W.pop():new ArrayBuffer(F)}e.mallocArrayBuffer=b;function _(H){return new Uint8Array(b(H),0,H)}e.mallocUint8=_;function P(H){return new Uint16Array(b(2*H),0,H)}e.mallocUint16=P;function M(H){return new Uint32Array(b(4*H),0,H)}e.mallocUint32=M;function E(H){return new Int8Array(b(H),0,H)}e.mallocInt8=E;function A(H){return new Int16Array(b(2*H),0,H)}e.mallocInt16=A;function h(H){return new Int32Array(b(4*H),0,H)}e.mallocInt32=h;function p(H){return new Float32Array(b(4*H),0,H)}e.mallocFloat32=e.mallocFloat=p;function k(H){return new Float64Array(b(8*H),0,H)}e.mallocFloat64=e.mallocDouble=k;function w(H){return i?new Uint8ClampedArray(b(H),0,H):_(H)}e.mallocUint8Clamped=w;function R(H){return l?new BigUint64Array(b(8*H),0,H):null}e.mallocBigUint64=R;function O(H){return f?new BigInt64Array(b(8*H),0,H):null}e.mallocBigInt64=O;function j(H){return new DataView(b(H),0,H)}e.mallocDataView=j;function V(H){H=a.nextPow2(H);var F=a.log2(H),U=v[F];return U.length>0?U.pop():new s(H)}e.mallocBuffer=V,e.clearCache=function(){for(var H=0;H<32;++H)x.UINT8[H].length=0,x.UINT16[H].length=0,x.UINT32[H].length=0,x.INT8[H].length=0,x.INT16[H].length=0,x.INT32[H].length=0,x.FLOAT[H].length=0,x.DOUBLE[H].length=0,x.BIGUINT64[H].length=0,x.BIGINT64[H].length=0,x.UINT8C[H].length=0,y[H].length=0,v[H].length=0}},1903:function(t){t.exports=e;function e(r){var a=new Float32Array(16);return a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3],a[4]=r[4],a[5]=r[5],a[6]=r[6],a[7]=r[7],a[8]=r[8],a[9]=r[9],a[10]=r[10],a[11]=r[11],a[12]=r[12],a[13]=r[13],a[14]=r[14],a[15]=r[15],a}},1944:function(t,e,r){var a=r(5250),n=r(8210);t.exports=s;function s(i,l){for(var f=a(i[0],l[0]),x=1;x<i.length;++x)f=n(f,a(i[x],l[x]));return f}},1964:function(t,e,r){t.exports={alpha_shape:r(3502),convex_hull:r(7352),delaunay_triangulate:r(7642),gl_cone3d:r(6405),gl_error3d:r(9165),gl_line3d:r(5714),gl_mesh3d:r(7201),gl_plot3d:r(4100),gl_scatter3d:r(8418),gl_streamtube3d:r(7815),gl_surface3d:r(9499),ndarray:r(9618),ndarray_linear_interpolate:r(4317)}},2014:function(t,e,r){"use restrict";var a=r(3105),n=r(4623);function s(p){for(var k=0,w=Math.max,R=0,O=p.length;R<O;++R)k=w(k,p[R].length);return k-1}e.dimension=s;function i(p){for(var k=-1,w=Math.max,R=0,O=p.length;R<O;++R)for(var j=p[R],V=0,H=j.length;V<H;++V)k=w(k,j[V]);return k+1}e.countVertices=i;function l(p){for(var k=new Array(p.length),w=0,R=p.length;w<R;++w)k[w]=p[w].slice(0);return k}e.cloneCells=l;function f(p,k){var w=p.length,R=p.length-k.length,O=Math.min;if(R)return R;switch(w){case 0:return 0;case 1:return p[0]-k[0];case 2:var U=p[0]+p[1]-k[0]-k[1];return U||O(p[0],p[1])-O(k[0],k[1]);case 3:var j=p[0]+p[1],V=k[0]+k[1];if(U=j+p[2]-(V+k[2]),U)return U;var H=O(p[0],p[1]),F=O(k[0],k[1]),U=O(H,p[2])-O(F,k[2]);return U||O(H+p[2],j)-O(F+k[2],V);default:var W=p.slice(0);W.sort();var $=k.slice(0);$.sort();for(var J=0;J<w;++J)if(R=W[J]-$[J],R)return R;return 0}}e.compareCells=f;function x(p,k){return f(p[0],k[0])}function y(p,k){if(k){for(var w=p.length,R=new Array(w),O=0;O<w;++O)R[O]=[p[O],k[O]];R.sort(x);for(var O=0;O<w;++O)p[O]=R[O][0],k[O]=R[O][1];return p}else return p.sort(f),p}e.normalize=y;function v(p){if(p.le
Line truncated
|
||||
`,T,v),b=a("%s%s",u,f),_=f.split(`
|
||||
`),P={},M=0;M<_.length;M++){var E=_[M];if(!(E===""||E==="\0")){var A=parseInt(E.split(":")[2]);if(isNaN(A))throw new Error(a("Could not parse error: %s",E));P[A]=E}}for(var h=i(x).split(`
|
||||
`),M=0;M<h.length;M++)if(!(!P[M+3]&&!P[M+2]&&!P[M+1])){var p=h[M];if(u+=p+`
|
||||
@@ -1690,11 +1690,11 @@ void main() {
|
||||
) discard;
|
||||
|
||||
gl_FragColor = opacity * fragColor;
|
||||
}`]);t.exports=function(l){return n(l,s,i,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},3502:function(t,e,r){t.exports=s;var a=r(5995),n=r(9127);function s(i,l){return n(a(i,l))}},3508:function(t,e,r){var a=r(6852);a=a.slice().filter(function(n){return!/^(gl\_|texture)/.test(n)}),t.exports=a.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},3536:function(t){t.exports=e;function e(r,a){var n=a[0],s=a[1],i=a[2],l=n*n+s*s+i*i;return l>0&&(l=1/Math.sqrt(l),r[0]=a[0]*l,r[1]=a[1]*l,r[2]=a[2]*l),r}},3545:function(t,e,r){t.exports=l;var a=r(8105),n=a("lo<p0"),s=8;function i(f,x,y,v,T,u){for(var b=2*f,_=b*(y+1)+x,P=y+1;P<v;++P,_+=b)for(var M=T[_],E=P,A=b*(P-1);E>y&&T[A+x]>M;--E,A-=b){for(var h=A,p=A+b,k=0;k<b;++k,++h,++p){var w=T[h];T[h]=T[p],T[p]=w}var R=u[E];u[E]=u[E-1],u[E-1]=R}}function l(f,x,y,v,T,u){if(v<=y+1)return y;for(var b=y,_=v,P=v+y>>>1,M=2*f,E=P,A=T[M*P+x];b<_;){if(_-b<s){i(f,x,b,_,T,u),A=T[M*P+x];break}var h=_-b,p=Math.random()*h+b|0,k=T[M*p+x],w=Math.random()*h+b|0,R=T[M*w+x],O=Math.random()*h+b|0,j=T[M*O+x];k<=R?j>=R?(E=w,A=R):k>=j?(E=p,A=k):(E=O,A=j):R>=j?(E=w,A=R):j>=k?(E=p,A=k):(E=O,A=j);for(var V=M*(_-1),H=M*E,F=0;F<M;++F,++V,++H){var U=T[V];T[V]=T[H],T[H]=U}var W=u[_-1];u[_-1]=u[E],u[E]=W,E=n(f,x,b,_-1,T,u,A);for(var V=M*(_-1),H=M*E,F=0;F<M;++F,++V,++H){var U=T[V];T[V]=T[H],T[H]=U}var W=u[_-1];if(u[_-1]=u[E],u[E]=W,P<E){for(_=E-1;b<_&&T[M*(_-1)+x]===A;)_-=1;_+=1}else if(E<P)for(b=E+1;b<_&&T[M*b+x]===A;)b+=1;else break}return n(f,x,y,P,T,u,T[M*P+x])}},3576:function(t){t.exports=e;function e(r,a,n){return r[0]=a[0]*n[0],r[1]=a[1]*n[1],r[2]=a[2]*n[2],r[3]=a[3]*n[3],r}},3589:function(t,e,r){t.exports=v;var a=r(2260),n=r(1888),s=r(9618),i=r(8828).nextPow2,l=function(T,u,b){for(var _=1e8,P=-1,M=-1,E=T.shape[0],A=T.shape[1],h=0;h<E;h++)for(var p=0;p<A;p++){var k=T.get(h,p,0),w=T.get(h,p,1),R=T.get(h,p,2),O=T.get(h,p,3);if(k<255||w<255||R<255||O<255){var j=u-h,V=b-p,H=j*j+V*V;H<_&&(_=H,P=h,M=p)}}return[P,M,_]};function f(T,u,b,_,P){this.coord=[T,u],this.id=b,this.value=_,this.distance=P}function x(T,u,b){this.gl=T,this.fbo=u,this.buffer=b,this._readTimeout=null;var _=this;this._readCallback=function(){_.gl&&(u.bind(),T.readPixels(0,0,u.shape[0],u.shape[1],T.RGBA,T.UNSIGNED_BYTE,_.buffer),_._readTimeout=null)}}var y=x.prototype;Object.defineProperty(y,"shape",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(T){if(this.gl){this.fbo.shape=T;var u=this.fbo.shape[0],b=this.fbo.shape[1];if(b*u*4>this.buffer.length){n.free(this.buffer);for(var _=this.buffer=n.mallocUint8(i(b*u*4)),P=0;P<b*u*4;++P)_[P]=255}return T}}}),y.begin=function(){var T=this.gl;this.shape,T&&(this.fbo.bind(),T.clearColor(1,1,1,1),T.clear(T.COLOR_BUFFER_BIT|T.DEPTH_BUFFER_BIT))},y.end=function(){var T=this.gl;T&&(T.bindFramebuffer(T.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},y.query=function(T,u,b){if(!this.gl)return null;var _=this.fbo.shape.slice();T=T|0,u=u|0,typeof b!="number"&&(b=1);var P=Math.min(Math.max(T-b,0),_[0])|0,M=Math.min(Math.max(T+b,0),_[0])|0,E=Math.min(Math.max(u-b,0),_[1])|0,A=Math.min(Math.max(u+b,0),_[1])|0;if(M<=P||A<=E)return null;var h=[M-P,A-E],p=s(this.buffer,[h[0],h[1],4],[4,_[0]*4,1],4*(P+_[0]*E)),k=l(p.hi(h[0],h[1],1),b,b),w=k[0],R=k[1];if(w<0||Math.pow(this.radius,2)<k[2])return null;var O=p.get(w,R,0),j=p.get(w,R,1),V=p.get(w,R,2),H=p.get(w,R,3);return new f(w+P|0,R+E|0,O,[j,V,H],Math.sqrt(k[2]))},y.dispose=function(){this.gl&&(this.fbo.dispose(),n.free(this.buffer),this.gl=null,this._readTimeout&&clearTimeout(this._readTimeout))};function v(T,u){var b=u[0],_=u[1],P={},M=a(T,b,_,P),E=n.mallocUint8(b*_*4);return new x(T,M,E)}},3628:function(t,e,r){var a=r(1338),n=r(727);function s(f,x){for(var y=0,v=f.length,T=0;T<v;++T)y+=f[T]*x[T];return y}function i(f){var x=f.length;if(x===0)return[];f[0].length;var y=a([f.length+1,f.length+1],1),v=a([f.length+1],1);y[x][x]=0;for(var T=0;T<x;++T){for(var u=0;u<=T;++u)y[u][T]=y[T][u]=2*s(f
Line truncated
|
||||
}`]);t.exports=function(l){return n(l,s,i,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},3502:function(t,e,r){t.exports=s;var a=r(5995),n=r(9127);function s(i,l){return n(a(i,l))}},3508:function(t,e,r){var a=r(6852);a=a.slice().filter(function(n){return!/^(gl\_|texture)/.test(n)}),t.exports=a.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},3536:function(t){t.exports=e;function e(r,a){var n=a[0],s=a[1],i=a[2],l=n*n+s*s+i*i;return l>0&&(l=1/Math.sqrt(l),r[0]=a[0]*l,r[1]=a[1]*l,r[2]=a[2]*l),r}},3545:function(t,e,r){t.exports=l;var a=r(8105),n=a("lo<p0"),s=8;function i(f,x,y,v,T,u){for(var b=2*f,_=b*(y+1)+x,P=y+1;P<v;++P,_+=b)for(var M=T[_],E=P,A=b*(P-1);E>y&&T[A+x]>M;--E,A-=b){for(var h=A,p=A+b,k=0;k<b;++k,++h,++p){var w=T[h];T[h]=T[p],T[p]=w}var R=u[E];u[E]=u[E-1],u[E-1]=R}}function l(f,x,y,v,T,u){if(v<=y+1)return y;for(var b=y,_=v,P=v+y>>>1,M=2*f,E=P,A=T[M*P+x];b<_;){if(_-b<s){i(f,x,b,_,T,u),A=T[M*P+x];break}var h=_-b,p=Math.random()*h+b|0,k=T[M*p+x],w=Math.random()*h+b|0,R=T[M*w+x],O=Math.random()*h+b|0,j=T[M*O+x];k<=R?j>=R?(E=w,A=R):k>=j?(E=p,A=k):(E=O,A=j):R>=j?(E=w,A=R):j>=k?(E=p,A=k):(E=O,A=j);for(var V=M*(_-1),H=M*E,F=0;F<M;++F,++V,++H){var U=T[V];T[V]=T[H],T[H]=U}var W=u[_-1];u[_-1]=u[E],u[E]=W,E=n(f,x,b,_-1,T,u,A);for(var V=M*(_-1),H=M*E,F=0;F<M;++F,++V,++H){var U=T[V];T[V]=T[H],T[H]=U}var W=u[_-1];if(u[_-1]=u[E],u[E]=W,P<E){for(_=E-1;b<_&&T[M*(_-1)+x]===A;)_-=1;_+=1}else if(E<P)for(b=E+1;b<_&&T[M*b+x]===A;)b+=1;else break}return n(f,x,y,P,T,u,T[M*P+x])}},3576:function(t){t.exports=e;function e(r,a,n){return r[0]=a[0]*n[0],r[1]=a[1]*n[1],r[2]=a[2]*n[2],r[3]=a[3]*n[3],r}},3589:function(t,e,r){t.exports=v;var a=r(2260),n=r(1888),s=r(9618),i=r(8828).nextPow2,l=function(T,u,b){for(var _=1e8,P=-1,M=-1,E=T.shape[0],A=T.shape[1],h=0;h<E;h++)for(var p=0;p<A;p++){var k=T.get(h,p,0),w=T.get(h,p,1),R=T.get(h,p,2),O=T.get(h,p,3);if(k<255||w<255||R<255||O<255){var j=u-h,V=b-p,H=j*j+V*V;H<_&&(_=H,P=h,M=p)}}return[P,M,_]};function f(T,u,b,_,P){this.coord=[T,u],this.id=b,this.value=_,this.distance=P}function x(T,u,b){this.gl=T,this.fbo=u,this.buffer=b,this._readTimeout=null;var _=this;this._readCallback=function(){_.gl&&(u.bind(),T.readPixels(0,0,u.shape[0],u.shape[1],T.RGBA,T.UNSIGNED_BYTE,_.buffer),_._readTimeout=null)}}var y=x.prototype;Object.defineProperty(y,"shape",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(T){if(this.gl){this.fbo.shape=T;var u=this.fbo.shape[0],b=this.fbo.shape[1];if(b*u*4>this.buffer.length){n.free(this.buffer);for(var _=this.buffer=n.mallocUint8(i(b*u*4)),P=0;P<b*u*4;++P)_[P]=255}return T}}}),y.begin=function(){var T=this.gl;this.shape,T&&(this.fbo.bind(),T.clearColor(1,1,1,1),T.clear(T.COLOR_BUFFER_BIT|T.DEPTH_BUFFER_BIT))},y.end=function(){var T=this.gl;T&&(T.bindFramebuffer(T.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},y.query=function(T,u,b){if(!this.gl)return null;var _=this.fbo.shape.slice();T=T|0,u=u|0,typeof b!="number"&&(b=1);var P=Math.min(Math.max(T-b,0),_[0])|0,M=Math.min(Math.max(T+b,0),_[0])|0,E=Math.min(Math.max(u-b,0),_[1])|0,A=Math.min(Math.max(u+b,0),_[1])|0;if(M<=P||A<=E)return null;var h=[M-P,A-E],p=s(this.buffer,[h[0],h[1],4],[4,_[0]*4,1],4*(P+_[0]*E)),k=l(p.hi(h[0],h[1],1),b,b),w=k[0],R=k[1];if(w<0||Math.pow(this.radius,2)<k[2])return null;var O=p.get(w,R,0),j=p.get(w,R,1),V=p.get(w,R,2),H=p.get(w,R,3);return new f(w+P|0,R+E|0,O,[j,V,H],Math.sqrt(k[2]))},y.dispose=function(){this.gl&&(this.fbo.dispose(),n.free(this.buffer),this.gl=null,this._readTimeout&&clearTimeout(this._readTimeout))};function v(T,u){var b=u[0],_=u[1],P={},M=a(T,b,_,P),E=n.mallocUint8(b*_*4);return new x(T,M,E)}},3628:function(t,e,r){var a=r(1338),n=r(727);function s(f,x){for(var y=0,v=f.length,T=0;T<v;++T)y+=f[T]*x[T];return y}function i(f){var x=f.length;if(x===0)return[];f[0].length;var y=a([f.length+1,f.length+1],1),v=a([f.length+1],1);y[x][x]=0;for(var T=0;T<x;++T){for(var u=0;u<=T;++u)y[u][T]=y[T][u]=2*s(f
Line truncated
|
||||
`+h)}throw new a(h,p.short,p.long)}return A}y.getShaderReference=function(P,M){var E=this.gl,A=this.shaders[P===E.FRAGMENT_SHADER|0],h=A[M];if(!h||!E.isShader(h.shader)){var p=v(E,P,M);h=A[M]=new f(l++,M,P,p,[],1,this)}else h.count+=1;return h};function T(P,M,E,A,h){var p=P.createProgram();P.attachShader(p,M),P.attachShader(p,E);for(var k=0;k<A.length;++k)P.bindAttribLocation(p,h[k],A[k]);if(P.linkProgram(p),!P.getProgramParameter(p,P.LINK_STATUS)){var w=P.getProgramInfoLog(p);throw new a(w,"Error linking program: "+w)}return p}y.getProgram=function(P,M,E,A){var h=[P.id,M.id,E.join(":"),A.join(":")].join("@"),p=this.programs[h];return(!p||!this.gl.isProgram(p))&&(this.programs[h]=p=T(this.gl,P.shader,M.shader,E,A),P.programs.push(h),M.programs.push(h)),p};function u(P){var M=i.get(P);return M||(M=new x(P),i.set(P,M)),M}function b(P,M,E){return u(P).getShaderReference(M,E)}function _(P,M,E,A,h){return u(P).getProgram(M,E,A,h)}},5093:function(t){t.exports=e;function e(r,a){return r[0]=-a[0],r[1]=-a[1],r[2]=-a[2],r}},5137:function(t,e,r){t.exports=n;var a=r(1091)();function n(s,i,l,f,x,y){var v,T;for(i||(i=3),l||(l=0),f?T=Math.min(f*i+l,s.length):T=s.length,v=l;v<T;v+=i)a[0]=s[v],a[1]=s[v+1],a[2]=s[v+2],x(a,a,y),s[v]=a[0],s[v+1]=a[1],s[v+2]=a[2];return s}},5171:function(t,e,r){var a=r(737);t.exports=function(n){return a[n]}},5177:function(t){t.exports=e;function e(r,a){var n=a[0],s=a[1],i=a[2],l=a[3],f=n*n+s*s+i*i+l*l;return f>0&&(f=1/Math.sqrt(f),r[0]=n*f,r[1]=s*f,r[2]=i*f,r[3]=l*f),r}},5202:function(t,e,r){var a=r(1944),n=r(8210);t.exports=l,t.exports.positive=f,t.exports.negative=x;function s(y,v){var T=n(a(y,v),[v[v.length-1]]);return T[T.length-1]}function i(y,v,T,u){var b=u-v,_=-v/b;_<0?_=0:_>1&&(_=1);for(var P=1-_,M=y.length,E=new Array(M),A=0;A<M;++A)E[A]=_*y[A]+P*T[A];return E}function l(y,v){for(var T=[],u=[],b=s(y[y.length-1],v),_=y[y.length-1],P=y[0],M=0;M<y.length;++M,_=P){P=y[M];var E=s(P,v);if(b<0&&E>0||b>0&&E<0){var A=i(_,E,P,b);T.push(A),u.push(A.slice())}E<0?u.push(P.slice()):E>0?T.push(P.slice()):(T.push(P.slice()),u.push(P.slice())),b=E}return{positive:T,negative:u}}function f(y,v){for(var T=[],u=s(y[y.length-1],v),b=y[y.length-1],_=y[0],P=0;P<y.length;++P,b=_){_=y[P];var M=s(_,v);(u<0&&M>0||u>0&&M<0)&&T.push(i(b,M,_,u)),M>=0&&T.push(_.slice()),u=M}return T}function x(y,v){for(var T=[],u=s(y[y.length-1],v),b=y[y.length-1],_=y[0],P=0;P<y.length;++P,b=_){_=y[P];var M=s(_,v);(u<0&&M>0||u>0&&M<0)&&T.push(i(b,M,_,u)),M<=0&&T.push(_.slice()),u=M}return T}},5219:function(t){t.exports=function(e){for(var r=e.length,a,n=0;n<r;n++)if(a=e.charCodeAt(n),(a<9||a>13)&&a!==32&&a!==133&&a!==160&&a!==5760&&a!==6158&&(a<8192||a>8205)&&a!==8232&&a!==8233&&a!==8239&&a!==8287&&a!==8288&&a!==12288&&a!==65279)return!1;return!0}},5250:function(t){t.exports=r;var e=+(Math.pow(2,27)+1);function r(a,n,s){var i=a*n,l=e*a,f=l-a,x=l-f,y=a-x,v=e*n,T=v-n,u=v-T,b=n-u,_=i-x*u,P=_-y*u,M=P-x*b,E=y*b-M;return s?(s[0]=E,s[1]=i,s):[E,i]}},5298:function(t,e){var r={"float64,2,1,0":function(){return function(x,y,v,T,u){var b=x[0],_=x[1],P=x[2],M=v[0],E=v[1],A=v[2];T|=0;var h=0,p=0,k=0,w=A,R=E-P*A,O=M-_*E;for(k=0;k<b;++k){for(p=0;p<_;++p){for(h=0;h<P;++h)y[T]/=u,T+=w;T+=R}T+=O}}},"uint8,2,0,1,float64,2,1,0":function(){return function(x,y,v,T,u,b,_,P){var M=x[0],E=x[1],A=x[2],h=v[0],p=v[1],k=v[2],w=b[0],R=b[1],O=b[2];T|=0,_|=0;for(var j=T,V=_,H=x[0]|0;H>0;){H<64?(M=H,H=0):(M=64,H-=64);for(var F=x[1]|0;F>0;){F<64?(E=F,F=0):(E=64,F-=64),T=j+H*h+F*p,_=V+H*w+F*R;var U=0,W=0,$=0,J=k,lt=h-A*k,yt=p-M*h,mt=O,st=w-A*O,tt=R-M*w;for($=0;$<E;++$){for(W=0;W<M;++W){for(U=0;U<A;++U)y[T]=u[_]*P,T+=J,_+=mt;T+=lt,_+=st}T+=yt,_+=tt}}}}},"float32,1,0,float32,1,0":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],E=v[0],A=v[1],h=b[0],p=b[1];T|=0,_|=0;var k=0,w=0,R=A,O=E-M*A,j=p,V=h-M*p;for(w=0;w<P;++w){for(k=0;k<M;++k)y[T]=u[_],T+=R,_+=j;T+=O,_+=V}}},"float32,1,0,float32,0,1":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],E=v[0],A=v[1],h=b[0],p=b[1];T|=0,_|=0;for(var k=T,w=_,R=x[1]|0;R>0;){R<64?(M=R,R=0):(M=64,R-=64);for(var O=x[0]|0;O>0;){O<64?(P=O,O=0):(P=64,O-=64),T=k+R*A+O*E,_=w+R*p+O*h;var j=0,V=0,H=A,F=E-M*A,U=p,W=h-M*p;for(V=0;V<P;++V){for(j=0;j<M;++j)y[T]=u[_],T+=H,_+=U;T+=F,_+=W}}}}},"uint8,2,0,1,uint8,1,2,0":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],E=x[2],A=v[0],h=v[1],p=v[2],k=b[0],w=b[1],R=b[2];T|=0,_|=0;for(var O=T,j=_,V=x[2]|0;V>0;){V<64?(E=V,V=0):(E=64,V-=64);for(var H=x[0]|0;H>0;){H<64?(P=H,H=0):(P=64,H-=64);for(var F=x[1]|0;F>0;){F<64?(M=F,F=0):(M=64,F-=64),T=O+V*p+H*A+F*h,_=j+V*R+H*k+F*w;var U=0,W=0,$=0,J=p,lt=A-E*p,yt=h-P*A,mt=R,st=k-E*R,tt=w-P*k;for($=0;$<M;++$){for(W=0;W<P;++W){for(U=0;U<E;++U)y[T]=u[_],T+=J,_+=mt;T+=lt,_+=st}T+=yt,_+=tt}}}}}},"uint8,2,0,1,array,2,0,1":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],E=x[2],A=v[0],h=v[1],p=v[2],k=b[0],w=b[1],R=b[2];T|=0,_|=0;var O=0,j=0,V=0,H=p,F=A-E*p,U=h-P*A,W=R,$=k-E*R,J=w-P*k;for(V=0;V<M;++V){for(j=0;j<P;++j){for(O=0;O<E;++O)
Line truncated
|
||||
`),tt=st.length;for(var Pt;H=st[O],O<tt;){switch(Pt=O,V){case y:O=qt();break;case v:O=It();break;case T:O=Ot();break;case u:O=$t();break;case b:O=de();break;case p:O=ve();break;case _:O=me();break;case x:O=ue();break;case A:O=kt();break;case f:O=ut();break}if(Pt!==O)switch(st[Pt]){case`
|
||||
`:J=0,++$;break;default:++J;break}}return j+=O,st=st.slice(O),W}function ft(Tt){return U.length&&it(U.join("")),V=h,it("(eof)"),W}function ut(){return U=U.length?[]:U,F==="/"&&H==="*"?(lt=j+O-1,V=y,F=H,O+1):F==="/"&&H==="/"?(lt=j+O-1,V=v,F=H,O+1):H==="#"?(V=T,lt=j+O,O):/\s/.test(H)?(V=A,lt=j+O,O):(yt=/\d/.test(H),mt=/[^\w_]/.test(H),lt=j+O,V=yt?b:mt?u:x,O)}function kt(){return/[^\s]/g.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function Ot(){return(H==="\r"||H===`
|
||||
`)&&F!=="\\"?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function It(){return Ot()}function qt(){return H==="/"&&F==="*"?(U.push(H),it(U.join("")),V=f,O+1):(U.push(H),F=H,O+1)}function $t(){if(F==="."&&/\d/.test(H))return V=_,O;if(F==="/"&&H==="*")return V=y,O;if(F==="/"&&H==="/")return V=v,O;if(H==="."&&U.length){for(;Qt(U););return V=_,O}if(H===";"||H===")"||H==="("){if(U.length)for(;Qt(U););return it(H),V=f,O+1}var Tt=U.length===2&&H!=="=";if(/[\w_\d\s]/.test(H)||Tt){for(;Qt(U););return V=f,O}return U.push(H),F=H,O+1}function Qt(Tt){var Pt=0,Mt,ee;do{if(Mt=n.indexOf(Tt.slice(0,Tt.length+Pt).join("")),ee=n[Mt],Mt===-1){if(Pt--+Tt.length>0)continue;ee=Tt.slice(0,1).join("")}return it(ee),lt+=ee.length,U=U.slice(ee.length),U.length}while(!0)}function ve(){return/[^a-fA-F0-9]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function de(){return H==="."||/[eE]/.test(H)?(U.push(H),V=_,F=H,O+1):H==="x"&&U.length===1&&U[0]==="0"?(V=p,U.push(H),F=H,O+1):/[^\d]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function me(){return H==="f"&&(U.push(H),F=H,O+=1),/[eE]/.test(H)||(H==="-"||H==="+")&&/[eE]/.test(F)?(U.push(H),F=H,O+1):/[^\d]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function ue(){if(/[^\d\w_]/.test(H)){var Tt=U.join("");return vt[Tt]?V=E:at[Tt]?V=M:V=P,it(U.join("")),V=f,O}return U.push(H),F=H,O+1}}},5878:function(t,e,r){t.exports=i;var a=r(3250),n=r(2014);function s(l,f,x){var y=Math.abs(a(l,f,x)),v=Math.sqrt(Math.pow(f[0]-x[0],2)+Math.pow(f[1]-x[1],2));return y/v}function i(l,f,x){for(var y=f.length,v=l.length,T=new Array(y),u=new Array(y),b=new Array(y),_=new Array(y),P=0;P<y;++P)T[P]=u[P]=-1,b[P]=1/0,_[P]=!1;for(var P=0;P<v;++P){var M=l[P];if(M.length!==2)throw new Error("Input must be a graph");var E=M[1],A=M[0];u[A]!==-1?u[A]=-2:u[A]=E,T[E]!==-1?T[E]=-2:T[E]=A}function h(st){if(_[st])return 1/0;var tt=T[st],pt=u[st];return tt<0||pt<0?1/0:s(f[st],f[tt],f[pt])}function p(st,tt){var pt=F[st],rt=F[tt];F[st]=rt,F[tt]=pt,U[pt]=tt,U[rt]=st}function k(st){return b[F[st]]}function w(st){return st&1?st-1>>1:(st>>1)-1}function R(st){for(var tt=k(st);;){var pt=tt,rt=2*st+1,at=2*(st+1),vt=st;if(rt<$){var it=k(rt);it<pt&&(vt=rt,pt=it)}if(at<$){var K=k(at);K<pt&&(vt=at)}if(vt===st)return st;p(st,vt),st=vt}}function O(st){for(var tt=k(st);st>0;){var pt=w(st);if(pt>=0){var rt=k(pt);if(tt<rt){p(st,pt),st=pt;continue}}return st}}function j(){if($>0){var st=F[0];return p(0,$-1),$-=1,R(0),st}return-1}function V(st,tt){var pt=F[st];return b[pt]===tt?st:(b[pt]=-1/0,O(st),j(),b[pt]=tt,$+=1,O($-1))}function H(st){if(!_[st]){_[st]=!0;var tt=T[st],pt=u[st];T[pt]>=0&&(T[pt]=tt),u[tt]>=0&&(u[tt]=pt),U[tt]>=0&&V(U[tt],h(tt)),U[pt]>=0&&V(U[pt],h(pt))}}for(var F=[],U=new Array(y),P=0;P<y;++P){var W=b[P]=h(P);W<1/0?(U[P]=F.length,F.push(P)):U[P]=-1}for(var $=F.length,P=$>>1;P>=0;--P)R(P);for(;;){var J=j();if(J<0||b[J]>x)break;H(J)}for(var lt=[],P=0;P<y;++P)_[P]||(U[P]=lt.length,lt.push(f[P].slice()));lt.length;function yt(st,tt){if(st[tt]<0)return tt;var pt=tt,rt=tt;do{var at=st[rt];if(!_[rt]||at<0||at===rt||(rt=at,at=st[rt],!_[rt]||at<0||at===rt))break;rt=at,pt=st[pt]}while(pt!==rt);for(var vt=tt;vt!==rt;vt=st[vt])st[vt]=rt;return rt}var mt=[];return l.forEach(function(st){var tt=yt(T,st[0]),pt=yt(u,st[1]);if(tt>=0&&pt>=0&&tt!==pt){var rt=U[tt],at=U[pt];rt!==at&&mt.push([rt,at])}}),n.unique(n.normalize(mt)),{positions:lt,edges:mt}}},5911:function(t){t.exports=e;function e(r,a,n){var s=a[0],i=a[1],l=a[2],f=n[0],x=n[1],y=n[2];return r[0]=i*y-l*x,r[1]=l*f-s*y,r[2]=s*x-i*f,r}},5964:function(t){t.exports=function(e){return!e&&e!==0?"":e.toString()}},5995:function(t,e,r){t.exports=s;var a=r(7642),n=r(6037);function s(i,l){return a(l).filter(function(f){for(var x=new Array(f.length),y=0;y<f.length;++y)x[y]=l[f[y]];return n(x)*i<1})}},6037:function(t,e,r){t.exports=n;var a=r(3628);function n(s){for(var i=a(s),l=0,f=0;f<s.length;++f)for(var x=s[f],y=0;y<i.length;++y)l+=Math.pow(x[y]-i[y],2);return Math.sqrt(l/s.length)}},6079:function(t){t.exports=e;function e(r,a,n,s){var i=s[0],l=s[1],f=s[2],x=Math.sqrt(i*i+l*l+f*f),y,v,T,u,b,_,P,M,E,A,h,p,k,w,R,O,j,V,H,F,U,W,$,J;return Math.abs(x)<1e-6?null:(x=1/x,i*=x,l*=x,f*=x,y=Math.sin(n),v=Math.cos(n),T=1-v,u=a[0],b=a[1],_=a[2],P=a[3],M=a[4],E=a[5],A=a[6],h=a[7],p=a[8],k=a[9],w=a[10],R=a[11],O=i*i*T+v,j=l*i*T+f*y,V=f*i*T-l*y,H=i*l*T-f*y,F=l*l*T+v,U=f*l*T+i*y,W=i*f*T+l*y,$=l*f*T-i*y,J=f*f*T+v,r[0]=u*O+M*j+p*V,r[1]=b*O+E*j+k*V,r[2]=_*O+A*j+w*V,r[3]=P*O+h*j+R*V,r[4]=u*H+M*F+p*U,r[5]=b*H+E*F+k*U,r[6]=_*H+A*F+w*U,r[7]=P*H+h*F+R*U,r[8]=u*W+M*$+p*J,r[9]=b*W+E*$+k*J,r[10]=_*W+A*$+w*J,r[11]=P*W+h*$+R*J,a!==r&&(r[12]=a[12],r[13]=a[13],r[14]=a[14],r[15]=a[15]),r)}},6141:function(t,e,r){t.exports=r(2953)},6199:function(t,e,r){var a=r(1338),n={zero:function(P,M,E,A){var h=P[0],p=E[0];A|=0;var k=0,w=p;for(k=0;k<h;++k)M[A]=0,A+=w},fdTemplate1:function(P,M,E,A,h,p,k){var w=P[0],R=E[0],O=p[0],j=-1*R,V=R;A|=0,k|=0;var H=0,F=R,U=O;for(H=0;H<w;++H)h[k]=.5*(M[A+j]-M[A+V]),A+=F,k+=U},fdTemplate2:functi
Line truncated
|
||||
`),tt=st.length;for(var Pt;H=st[O],O<tt;){switch(Pt=O,V){case y:O=qt();break;case v:O=zt();break;case T:O=It();break;case u:O=$t();break;case b:O=de();break;case p:O=ve();break;case _:O=me();break;case x:O=ue();break;case A:O=kt();break;case f:O=ut();break}if(Pt!==O)switch(st[Pt]){case`
|
||||
`:J=0,++$;break;default:++J;break}}return j+=O,st=st.slice(O),W}function ft(Tt){return U.length&&it(U.join("")),V=h,it("(eof)"),W}function ut(){return U=U.length?[]:U,F==="/"&&H==="*"?(lt=j+O-1,V=y,F=H,O+1):F==="/"&&H==="/"?(lt=j+O-1,V=v,F=H,O+1):H==="#"?(V=T,lt=j+O,O):/\s/.test(H)?(V=A,lt=j+O,O):(yt=/\d/.test(H),mt=/[^\w_]/.test(H),lt=j+O,V=yt?b:mt?u:x,O)}function kt(){return/[^\s]/g.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function It(){return(H==="\r"||H===`
|
||||
`)&&F!=="\\"?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function zt(){return It()}function qt(){return H==="/"&&F==="*"?(U.push(H),it(U.join("")),V=f,O+1):(U.push(H),F=H,O+1)}function $t(){if(F==="."&&/\d/.test(H))return V=_,O;if(F==="/"&&H==="*")return V=y,O;if(F==="/"&&H==="/")return V=v,O;if(H==="."&&U.length){for(;Qt(U););return V=_,O}if(H===";"||H===")"||H==="("){if(U.length)for(;Qt(U););return it(H),V=f,O+1}var Tt=U.length===2&&H!=="=";if(/[\w_\d\s]/.test(H)||Tt){for(;Qt(U););return V=f,O}return U.push(H),F=H,O+1}function Qt(Tt){var Pt=0,Mt,ee;do{if(Mt=n.indexOf(Tt.slice(0,Tt.length+Pt).join("")),ee=n[Mt],Mt===-1){if(Pt--+Tt.length>0)continue;ee=Tt.slice(0,1).join("")}return it(ee),lt+=ee.length,U=U.slice(ee.length),U.length}while(!0)}function ve(){return/[^a-fA-F0-9]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function de(){return H==="."||/[eE]/.test(H)?(U.push(H),V=_,F=H,O+1):H==="x"&&U.length===1&&U[0]==="0"?(V=p,U.push(H),F=H,O+1):/[^\d]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function me(){return H==="f"&&(U.push(H),F=H,O+=1),/[eE]/.test(H)||(H==="-"||H==="+")&&/[eE]/.test(F)?(U.push(H),F=H,O+1):/[^\d]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function ue(){if(/[^\d\w_]/.test(H)){var Tt=U.join("");return vt[Tt]?V=E:at[Tt]?V=M:V=P,it(U.join("")),V=f,O}return U.push(H),F=H,O+1}}},5878:function(t,e,r){t.exports=i;var a=r(3250),n=r(2014);function s(l,f,x){var y=Math.abs(a(l,f,x)),v=Math.sqrt(Math.pow(f[0]-x[0],2)+Math.pow(f[1]-x[1],2));return y/v}function i(l,f,x){for(var y=f.length,v=l.length,T=new Array(y),u=new Array(y),b=new Array(y),_=new Array(y),P=0;P<y;++P)T[P]=u[P]=-1,b[P]=1/0,_[P]=!1;for(var P=0;P<v;++P){var M=l[P];if(M.length!==2)throw new Error("Input must be a graph");var E=M[1],A=M[0];u[A]!==-1?u[A]=-2:u[A]=E,T[E]!==-1?T[E]=-2:T[E]=A}function h(st){if(_[st])return 1/0;var tt=T[st],pt=u[st];return tt<0||pt<0?1/0:s(f[st],f[tt],f[pt])}function p(st,tt){var pt=F[st],rt=F[tt];F[st]=rt,F[tt]=pt,U[pt]=tt,U[rt]=st}function k(st){return b[F[st]]}function w(st){return st&1?st-1>>1:(st>>1)-1}function R(st){for(var tt=k(st);;){var pt=tt,rt=2*st+1,at=2*(st+1),vt=st;if(rt<$){var it=k(rt);it<pt&&(vt=rt,pt=it)}if(at<$){var K=k(at);K<pt&&(vt=at)}if(vt===st)return st;p(st,vt),st=vt}}function O(st){for(var tt=k(st);st>0;){var pt=w(st);if(pt>=0){var rt=k(pt);if(tt<rt){p(st,pt),st=pt;continue}}return st}}function j(){if($>0){var st=F[0];return p(0,$-1),$-=1,R(0),st}return-1}function V(st,tt){var pt=F[st];return b[pt]===tt?st:(b[pt]=-1/0,O(st),j(),b[pt]=tt,$+=1,O($-1))}function H(st){if(!_[st]){_[st]=!0;var tt=T[st],pt=u[st];T[pt]>=0&&(T[pt]=tt),u[tt]>=0&&(u[tt]=pt),U[tt]>=0&&V(U[tt],h(tt)),U[pt]>=0&&V(U[pt],h(pt))}}for(var F=[],U=new Array(y),P=0;P<y;++P){var W=b[P]=h(P);W<1/0?(U[P]=F.length,F.push(P)):U[P]=-1}for(var $=F.length,P=$>>1;P>=0;--P)R(P);for(;;){var J=j();if(J<0||b[J]>x)break;H(J)}for(var lt=[],P=0;P<y;++P)_[P]||(U[P]=lt.length,lt.push(f[P].slice()));lt.length;function yt(st,tt){if(st[tt]<0)return tt;var pt=tt,rt=tt;do{var at=st[rt];if(!_[rt]||at<0||at===rt||(rt=at,at=st[rt],!_[rt]||at<0||at===rt))break;rt=at,pt=st[pt]}while(pt!==rt);for(var vt=tt;vt!==rt;vt=st[vt])st[vt]=rt;return rt}var mt=[];return l.forEach(function(st){var tt=yt(T,st[0]),pt=yt(u,st[1]);if(tt>=0&&pt>=0&&tt!==pt){var rt=U[tt],at=U[pt];rt!==at&&mt.push([rt,at])}}),n.unique(n.normalize(mt)),{positions:lt,edges:mt}}},5911:function(t){t.exports=e;function e(r,a,n){var s=a[0],i=a[1],l=a[2],f=n[0],x=n[1],y=n[2];return r[0]=i*y-l*x,r[1]=l*f-s*y,r[2]=s*x-i*f,r}},5964:function(t){t.exports=function(e){return!e&&e!==0?"":e.toString()}},5995:function(t,e,r){t.exports=s;var a=r(7642),n=r(6037);function s(i,l){return a(l).filter(function(f){for(var x=new Array(f.length),y=0;y<f.length;++y)x[y]=l[f[y]];return n(x)*i<1})}},6037:function(t,e,r){t.exports=n;var a=r(3628);function n(s){for(var i=a(s),l=0,f=0;f<s.length;++f)for(var x=s[f],y=0;y<i.length;++y)l+=Math.pow(x[y]-i[y],2);return Math.sqrt(l/s.length)}},6079:function(t){t.exports=e;function e(r,a,n,s){var i=s[0],l=s[1],f=s[2],x=Math.sqrt(i*i+l*l+f*f),y,v,T,u,b,_,P,M,E,A,h,p,k,w,R,O,j,V,H,F,U,W,$,J;return Math.abs(x)<1e-6?null:(x=1/x,i*=x,l*=x,f*=x,y=Math.sin(n),v=Math.cos(n),T=1-v,u=a[0],b=a[1],_=a[2],P=a[3],M=a[4],E=a[5],A=a[6],h=a[7],p=a[8],k=a[9],w=a[10],R=a[11],O=i*i*T+v,j=l*i*T+f*y,V=f*i*T-l*y,H=i*l*T-f*y,F=l*l*T+v,U=f*l*T+i*y,W=i*f*T+l*y,$=l*f*T-i*y,J=f*f*T+v,r[0]=u*O+M*j+p*V,r[1]=b*O+E*j+k*V,r[2]=_*O+A*j+w*V,r[3]=P*O+h*j+R*V,r[4]=u*H+M*F+p*U,r[5]=b*H+E*F+k*U,r[6]=_*H+A*F+w*U,r[7]=P*H+h*F+R*U,r[8]=u*W+M*$+p*J,r[9]=b*W+E*$+k*J,r[10]=_*W+A*$+w*J,r[11]=P*W+h*$+R*J,a!==r&&(r[12]=a[12],r[13]=a[13],r[14]=a[14],r[15]=a[15]),r)}},6141:function(t,e,r){t.exports=r(2953)},6199:function(t,e,r){var a=r(1338),n={zero:function(P,M,E,A){var h=P[0],p=E[0];A|=0;var k=0,w=p;for(k=0;k<h;++k)M[A]=0,A+=w},fdTemplate1:function(P,M,E,A,h,p,k){var w=P[0],R=E[0],O=p[0],j=-1*R,V=R;A|=0,k|=0;var H=0,F=R,U=O;for(H=0;H<w;++H)h[k]=.5*(M[A+j]-M[A+V]),A+=F,k+=U},fdTemplate2:functi
Line truncated
|
||||
|
||||
precision highp float;
|
||||
#define GLSLIFY 1
|
||||
@@ -1958,7 +1958,7 @@ void main() {
|
||||
if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;
|
||||
|
||||
gl_FragColor = vec4(pickId, f_id.xyz);
|
||||
}`]);e.meshShader={vertex:n,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},e.pickShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},6743:function(t){t.exports=e;function e(r,a,n){var s=a[0],i=a[1],l=a[2],f=a[3],x=s+s,y=i+i,v=l+l,T=s*x,u=s*y,b=s*v,_=i*y,P=i*v,M=l*v,E=f*x,A=f*y,h=f*v;return r[0]=1-(_+M),r[1]=u+h,r[2]=b-A,r[3]=0,r[4]=u-h,r[5]=1-(T+M),r[6]=P+E,r[7]=0,r[8]=b+A,r[9]=P-E,r[10]=1-(T+_),r[11]=0,r[12]=n[0],r[13]=n[1],r[14]=n[2],r[15]=1,r}},6760:function(t){t.exports=e;function e(r,a,n){var s=a[0],i=a[1],l=a[2],f=a[3],x=a[4],y=a[5],v=a[6],T=a[7],u=a[8],b=a[9],_=a[10],P=a[11],M=a[12],E=a[13],A=a[14],h=a[15],p=n[0],k=n[1],w=n[2],R=n[3];return r[0]=p*s+k*x+w*u+R*M,r[1]=p*i+k*y+w*b+R*E,r[2]=p*l+k*v+w*_+R*A,r[3]=p*f+k*T+w*P+R*h,p=n[4],k=n[5],w=n[6],R=n[7],r[4]=p*s+k*x+w*u+R*M,r[5]=p*i+k*y+w*b+R*E,r[6]=p*l+k*v+w*_+R*A,r[7]=p*f+k*T+w*P+R*h,p=n[8],k=n[9],w=n[10],R=n[11],r[8]=p*s+k*x+w*u+R*M,r[9]=p*i+k*y+w*b+R*E,r[10]=p*l+k*v+w*_+R*A,r[11]=p*f+k*T+w*P+R*h,p=n[12],k=n[13],w=n[14],R=n[15],r[12]=p*s+k*x+w*u+R*M,r[13]=p*i+k*y+w*b+R*E,r[14]=p*l+k*v+w*_+R*A,r[15]=p*f+k*T+w*P+R*h,r}},6768:function(t,e,r){var a=r(6859);t.exports=n;function n(s){return new a(s)}},6803:function(t,e,r){r(8828),r(1755);function a(n,s){var i=n.length,l=n.length-s.length,f=Math.min;if(l)return l;switch(i){case 0:return 0;case 1:return n[0]-s[0];case 2:var u=n[0]+n[1]-s[0]-s[1];return u||f(n[0],n[1])-f(s[0],s[1]);case 3:var x=n[0]+n[1],y=s[0]+s[1];if(u=x+n[2]-(y+s[2]),u)return u;var v=f(n[0],n[1]),T=f(s[0],s[1]),u=f(v,n[2])-f(T,s[2]);return u||f(v+n[2],x)-f(T+s[2],y);default:var b=n.slice(0);b.sort();var _=s.slice(0);_.sort();for(var P=0;P<i;++P)if(l=b[P]-_[P],l)return l;return 0}}e.Fw=a},6808:function(t){t.exports=e;function e(r){var a=r[0],n=r[1],s=r[2],i=r[3];return Math.sqrt(a*a+n*n+s*s+i*i)}},6843:function(t){t.exports=e;function e(r,a,n){return r[0]=a[0]-n[0],r[1]=a[1]-n[1],r[2]=a[2]-n[2],r}},6852:function(t){t.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},6859:function(t,e,r){t=r.nmd(t),function(a,n){function s(F,U){if(!F)throw new Error(U||"Assertion failed")}function i(F,U){F.super_=U;var W=function(){};W.prototype=U.prototype,F.prototype=new W,F.prototype.constructor=F}function l(F,U,W){if(l.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((U==="le"||U==="be")&&(W=U,U=10),this._init(F||0,U||10,W||"be"))}
Line truncated
|
||||
}`]);e.meshShader={vertex:n,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},e.pickShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},6743:function(t){t.exports=e;function e(r,a,n){var s=a[0],i=a[1],l=a[2],f=a[3],x=s+s,y=i+i,v=l+l,T=s*x,u=s*y,b=s*v,_=i*y,P=i*v,M=l*v,E=f*x,A=f*y,h=f*v;return r[0]=1-(_+M),r[1]=u+h,r[2]=b-A,r[3]=0,r[4]=u-h,r[5]=1-(T+M),r[6]=P+E,r[7]=0,r[8]=b+A,r[9]=P-E,r[10]=1-(T+_),r[11]=0,r[12]=n[0],r[13]=n[1],r[14]=n[2],r[15]=1,r}},6760:function(t){t.exports=e;function e(r,a,n){var s=a[0],i=a[1],l=a[2],f=a[3],x=a[4],y=a[5],v=a[6],T=a[7],u=a[8],b=a[9],_=a[10],P=a[11],M=a[12],E=a[13],A=a[14],h=a[15],p=n[0],k=n[1],w=n[2],R=n[3];return r[0]=p*s+k*x+w*u+R*M,r[1]=p*i+k*y+w*b+R*E,r[2]=p*l+k*v+w*_+R*A,r[3]=p*f+k*T+w*P+R*h,p=n[4],k=n[5],w=n[6],R=n[7],r[4]=p*s+k*x+w*u+R*M,r[5]=p*i+k*y+w*b+R*E,r[6]=p*l+k*v+w*_+R*A,r[7]=p*f+k*T+w*P+R*h,p=n[8],k=n[9],w=n[10],R=n[11],r[8]=p*s+k*x+w*u+R*M,r[9]=p*i+k*y+w*b+R*E,r[10]=p*l+k*v+w*_+R*A,r[11]=p*f+k*T+w*P+R*h,p=n[12],k=n[13],w=n[14],R=n[15],r[12]=p*s+k*x+w*u+R*M,r[13]=p*i+k*y+w*b+R*E,r[14]=p*l+k*v+w*_+R*A,r[15]=p*f+k*T+w*P+R*h,r}},6768:function(t,e,r){var a=r(6859);t.exports=n;function n(s){return new a(s)}},6803:function(t,e,r){r(8828),r(1755);function a(n,s){var i=n.length,l=n.length-s.length,f=Math.min;if(l)return l;switch(i){case 0:return 0;case 1:return n[0]-s[0];case 2:var u=n[0]+n[1]-s[0]-s[1];return u||f(n[0],n[1])-f(s[0],s[1]);case 3:var x=n[0]+n[1],y=s[0]+s[1];if(u=x+n[2]-(y+s[2]),u)return u;var v=f(n[0],n[1]),T=f(s[0],s[1]),u=f(v,n[2])-f(T,s[2]);return u||f(v+n[2],x)-f(T+s[2],y);default:var b=n.slice(0);b.sort();var _=s.slice(0);_.sort();for(var P=0;P<i;++P)if(l=b[P]-_[P],l)return l;return 0}}e.Fw=a},6808:function(t){t.exports=e;function e(r){var a=r[0],n=r[1],s=r[2],i=r[3];return Math.sqrt(a*a+n*n+s*s+i*i)}},6843:function(t){t.exports=e;function e(r,a,n){return r[0]=a[0]-n[0],r[1]=a[1]-n[1],r[2]=a[2]-n[2],r}},6852:function(t){t.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},6859:function(t,e,r){t=r.nmd(t),function(a,n){function s(F,U){if(!F)throw new Error(U||"Assertion failed")}function i(F,U){F.super_=U;var W=function(){};W.prototype=U.prototype,F.prototype=new W,F.prototype.constructor=F}function l(F,U,W){if(l.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((U==="le"||U==="be")&&(W=U,U=10),this._init(F||0,U||10,W||"be"))}
Line truncated
|
||||
#define GLSLIFY 1
|
||||
|
||||
attribute vec3 position, nextPosition;
|
||||
@@ -2120,11 +2120,11 @@ void main() {
|
||||
if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;
|
||||
|
||||
gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);
|
||||
}`]),f=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];e.createShader=function(x){return n(x,s,i,null,f)},e.createPickShader=function(x){return n(x,s,l,null,f)}},7352:function(t,e,r){var a=r(5721),n=r(4750),s=r(2690);t.exports=i;function i(l){var f=l.length;if(f===0)return[];if(f===1)return[[0]];var x=l[0].length;return x===0?[]:x===1?a(l):x===2?n(l):s(l,x)}},7399:function(t){t.exports=e;function e(r,a){var n=a[0],s=a[1],i=a[2],l=a[3],f=n+n,x=s+s,y=i+i,v=n*f,T=s*f,u=s*x,b=i*f,_=i*x,P=i*y,M=l*f,E=l*x,A=l*y;return r[0]=1-u-P,r[1]=T+A,r[2]=b-E,r[3]=0,r[4]=T-A,r[5]=1-v-P,r[6]=_+M,r[7]=0,r[8]=b+E,r[9]=_-M,r[10]=1-v-u,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}},7417:function(t){t.exports=e;function e(r,a,n){return r[0]=Math.max(a[0],n[0]),r[1]=Math.max(a[1],n[1]),r[2]=Math.max(a[2],n[2]),r}},7442:function(t,e,r){var a=r(6658),n=r(7182),s=r(2652),i=r(9921),l=r(8648),f=T(),x=T(),y=T();t.exports=v;function v(_,P,M,E){if(i(P)===0||i(M)===0)return!1;var A=s(P,f.translate,f.scale,f.skew,f.perspective,f.quaternion),h=s(M,x.translate,x.scale,x.skew,x.perspective,x.quaternion);return!A||!h?!1:(a(y.translate,f.translate,x.translate,E),a(y.skew,f.skew,x.skew,E),a(y.scale,f.scale,x.scale,E),a(y.perspective,f.perspective,x.perspective,E),l(y.quaternion,f.quaternion,x.quaternion,E),n(_,y.translate,y.scale,y.skew,y.perspective,y.quaternion),!0)}function T(){return{translate:u(),scale:u(1),skew:u(),perspective:b(),quaternion:b()}}function u(_){return[_||0,_||0,_||0]}function b(){return[0,0,0,1]}},7507:function(t,e){e.byteLength=x,e.toByteArray=v,e.fromByteArray=b;for(var r=[],a=[],n=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,l=s.length;i<l;++i)r[i]=s[i],a[s.charCodeAt(i)]=i;a[45]=62,a[95]=63;function f(_){var P=_.length;if(P%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=_.indexOf("=");M===-1&&(M=P);var E=M===P?0:4-M%4;return[M,E]}function x(_){var P=f(_),M=P[0],E=P[1];return(M+E)*3/4-E}function y(_,P,M){return(P+M)*3/4-M}function v(_){var P,M=f(_),E=M[0],A=M[1],h=new n(y(_,E,A)),p=0,k=A>0?E-4:E,w;for(w=0;w<k;w+=4)P=a[_.charCodeAt(w)]<<18|a[_.charCodeAt(w+1)]<<12|a[_.charCodeAt(w+2)]<<6|a[_.charCodeAt(w+3)],h[p++]=P>>16&255,h[p++]=P>>8&255,h[p++]=P&255;return A===2&&(P=a[_.charCodeAt(w)]<<2|a[_.charCodeAt(w+1)]>>4,h[p++]=P&255),A===1&&(P=a[_.charCodeAt(w)]<<10|a[_.charCodeAt(w+1)]<<4|a[_.charCodeAt(w+2)]>>2,h[p++]=P>>8&255,h[p++]=P&255),h}function T(_){return r[_>>18&63]+r[_>>12&63]+r[_>>6&63]+r[_&63]}function u(_,P,M){for(var E,A=[],h=P;h<M;h+=3)E=(_[h]<<16&16711680)+(_[h+1]<<8&65280)+(_[h+2]&255),A.push(T(E));return A.join("")}function b(_){for(var P,M=_.length,E=M%3,A=[],h=16383,p=0,k=M-E;p<k;p+=h)A.push(u(_,p,p+h>k?k:p+h));return E===1?(P=_[M-1],A.push(r[P>>2]+r[P<<4&63]+"==")):E===2&&(P=(_[M-2]<<8)+_[M-1],A.push(r[P>>10]+r[P>>4&63]+r[P<<2&63]+"=")),A.join("")}},7518:function(t,e,r){var a=r(1433);function n(l,f,x,y,v,T){this.location=l,this.dimension=f,this.a=x,this.b=y,this.c=v,this.d=T}n.prototype.bind=function(l){switch(this.dimension){case 1:l.vertexAttrib1f(this.location,this.a);break;case 2:l.vertexAttrib2f(this.location,this.a,this.b);break;case 3:l.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:l.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d);break}};function s(l,f,x){this.gl=l,this._ext=f,this.handle=x,this._attribs=[],this._useElements=!1,this._elementsType=l.UNSIGNED_SHORT}s.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var l=0;l<this._attribs.length;++l)this._attribs[l].bind(this.gl)},s.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},s.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},s.prototype.update=function(l,f,x){if(this.bind(),a(this.gl,f,l),this.unbind(),this._attribs.length=0,l)for(var y=0;y<l.length;++y){var v=l[y];typeof v=="number"?this._attribs.push(new n(y,1,v)):Array.isArray(v)&&this._attribs.push(new n(y,v.length,v[0],v[1],v[2],v[3]))}this._useElements=!!f,this._elementsType=x||this.gl.UNSIGNED_SHORT},s.prototype.draw=function(l,f,x){x=x||0;var y=this.gl;this._useElements?y.drawElements(l,f,this._elementsType,x):y.drawArrays(l,x,f)};function i(l,f){return new s(l,f,f.createVertexArrayOES())}t.exports=i},7520:function(t,e,r){var a=r(9507);function n(){var s=!1;try{var i=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{s=!1}return s}t.exports=a&&n()},7536:function(t){t.exports=e;function e(){var r=new Float32Array(4);return r[0]=0,r[1]=0,r[2]=0,r[3]=0,r}},7608:function(t){t.exports=e;function e(r,a){var n=a[0],s=a[1],i=a[2],l=a[3],f=a[4],x=a[5],y=a[6],v=a[7],T=a[8],u=a[9],b=a[10],_=a[11],P=a[12],M=a[13],E=a[14],A=a[15],h=n*x-s*f,p=n*y-i*f,k=n*v-l*f,w=s*y-i*x,R=s*v-l*x,O=i*v-l*y,j=T*M-u*P,V=T*E-b*P,H=T*A-_*P,
Line truncated
|
||||
}`]),f=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];e.createShader=function(x){return n(x,s,i,null,f)},e.createPickShader=function(x){return n(x,s,l,null,f)}},7352:function(t,e,r){var a=r(5721),n=r(4750),s=r(2690);t.exports=i;function i(l){var f=l.length;if(f===0)return[];if(f===1)return[[0]];var x=l[0].length;return x===0?[]:x===1?a(l):x===2?n(l):s(l,x)}},7399:function(t){t.exports=e;function e(r,a){var n=a[0],s=a[1],i=a[2],l=a[3],f=n+n,x=s+s,y=i+i,v=n*f,T=s*f,u=s*x,b=i*f,_=i*x,P=i*y,M=l*f,E=l*x,A=l*y;return r[0]=1-u-P,r[1]=T+A,r[2]=b-E,r[3]=0,r[4]=T-A,r[5]=1-v-P,r[6]=_+M,r[7]=0,r[8]=b+E,r[9]=_-M,r[10]=1-v-u,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}},7417:function(t){t.exports=e;function e(r,a,n){return r[0]=Math.max(a[0],n[0]),r[1]=Math.max(a[1],n[1]),r[2]=Math.max(a[2],n[2]),r}},7442:function(t,e,r){var a=r(6658),n=r(7182),s=r(2652),i=r(9921),l=r(8648),f=T(),x=T(),y=T();t.exports=v;function v(_,P,M,E){if(i(P)===0||i(M)===0)return!1;var A=s(P,f.translate,f.scale,f.skew,f.perspective,f.quaternion),h=s(M,x.translate,x.scale,x.skew,x.perspective,x.quaternion);return!A||!h?!1:(a(y.translate,f.translate,x.translate,E),a(y.skew,f.skew,x.skew,E),a(y.scale,f.scale,x.scale,E),a(y.perspective,f.perspective,x.perspective,E),l(y.quaternion,f.quaternion,x.quaternion,E),n(_,y.translate,y.scale,y.skew,y.perspective,y.quaternion),!0)}function T(){return{translate:u(),scale:u(1),skew:u(),perspective:b(),quaternion:b()}}function u(_){return[_||0,_||0,_||0]}function b(){return[0,0,0,1]}},7507:function(t,e){e.byteLength=x,e.toByteArray=v,e.fromByteArray=b;for(var r=[],a=[],n=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,l=s.length;i<l;++i)r[i]=s[i],a[s.charCodeAt(i)]=i;a[45]=62,a[95]=63;function f(_){var P=_.length;if(P%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=_.indexOf("=");M===-1&&(M=P);var E=M===P?0:4-M%4;return[M,E]}function x(_){var P=f(_),M=P[0],E=P[1];return(M+E)*3/4-E}function y(_,P,M){return(P+M)*3/4-M}function v(_){var P,M=f(_),E=M[0],A=M[1],h=new n(y(_,E,A)),p=0,k=A>0?E-4:E,w;for(w=0;w<k;w+=4)P=a[_.charCodeAt(w)]<<18|a[_.charCodeAt(w+1)]<<12|a[_.charCodeAt(w+2)]<<6|a[_.charCodeAt(w+3)],h[p++]=P>>16&255,h[p++]=P>>8&255,h[p++]=P&255;return A===2&&(P=a[_.charCodeAt(w)]<<2|a[_.charCodeAt(w+1)]>>4,h[p++]=P&255),A===1&&(P=a[_.charCodeAt(w)]<<10|a[_.charCodeAt(w+1)]<<4|a[_.charCodeAt(w+2)]>>2,h[p++]=P>>8&255,h[p++]=P&255),h}function T(_){return r[_>>18&63]+r[_>>12&63]+r[_>>6&63]+r[_&63]}function u(_,P,M){for(var E,A=[],h=P;h<M;h+=3)E=(_[h]<<16&16711680)+(_[h+1]<<8&65280)+(_[h+2]&255),A.push(T(E));return A.join("")}function b(_){for(var P,M=_.length,E=M%3,A=[],h=16383,p=0,k=M-E;p<k;p+=h)A.push(u(_,p,p+h>k?k:p+h));return E===1?(P=_[M-1],A.push(r[P>>2]+r[P<<4&63]+"==")):E===2&&(P=(_[M-2]<<8)+_[M-1],A.push(r[P>>10]+r[P>>4&63]+r[P<<2&63]+"=")),A.join("")}},7518:function(t,e,r){var a=r(1433);function n(l,f,x,y,v,T){this.location=l,this.dimension=f,this.a=x,this.b=y,this.c=v,this.d=T}n.prototype.bind=function(l){switch(this.dimension){case 1:l.vertexAttrib1f(this.location,this.a);break;case 2:l.vertexAttrib2f(this.location,this.a,this.b);break;case 3:l.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:l.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d);break}};function s(l,f,x){this.gl=l,this._ext=f,this.handle=x,this._attribs=[],this._useElements=!1,this._elementsType=l.UNSIGNED_SHORT}s.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var l=0;l<this._attribs.length;++l)this._attribs[l].bind(this.gl)},s.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},s.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},s.prototype.update=function(l,f,x){if(this.bind(),a(this.gl,f,l),this.unbind(),this._attribs.length=0,l)for(var y=0;y<l.length;++y){var v=l[y];typeof v=="number"?this._attribs.push(new n(y,1,v)):Array.isArray(v)&&this._attribs.push(new n(y,v.length,v[0],v[1],v[2],v[3]))}this._useElements=!!f,this._elementsType=x||this.gl.UNSIGNED_SHORT},s.prototype.draw=function(l,f,x){x=x||0;var y=this.gl;this._useElements?y.drawElements(l,f,this._elementsType,x):y.drawArrays(l,x,f)};function i(l,f){return new s(l,f,f.createVertexArrayOES())}t.exports=i},7520:function(t,e,r){var a=r(9507);function n(){var s=!1;try{var i=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{s=!1}return s}t.exports=a&&n()},7536:function(t){t.exports=e;function e(){var r=new Float32Array(4);return r[0]=0,r[1]=0,r[2]=0,r[3]=0,r}},7608:function(t){t.exports=e;function e(r,a){var n=a[0],s=a[1],i=a[2],l=a[3],f=a[4],x=a[5],y=a[6],v=a[7],T=a[8],u=a[9],b=a[10],_=a[11],P=a[12],M=a[13],E=a[14],A=a[15],h=n*x-s*f,p=n*y-i*f,k=n*v-l*f,w=s*y-i*x,R=s*v-l*x,O=i*v-l*y,j=T*M-u*P,V=T*E-b*P,H=T*A-_*P,
Line truncated
|
||||
`):H=H.replace(/\<br\>/g," ");var $="",J=[];for(K=0;K<H.length;++K)J[K]=$;W.bolds===!0&&(J=A(x,y,H,J)),W.italics===!0&&(J=A(v,T,H,J)),W.superscripts===!0&&(J=A(u,_,H,J)),W.subscripts===!0&&(J=A(P,E,H,J));var lt=[],yt="";for(K=0;K<H.length;++K)J[K]!==null&&(yt+=H[K],lt.push(J[K]));var mt=yt.split(`
|
||||
`),st=mt.length,tt=Math.round(U*F),pt=F,rt=F*2,at=0,vt=st*tt+rt;j.height<vt&&(j.height=vt),V.fillStyle="#000",V.fillRect(0,0,j.width,j.height),V.fillStyle="#fff";var it,K,ft,ut,kt,Ot=0,It="";function qt(){if(It!==""){var Mt=V.measureText(It).width;V.fillText(It,pt+ft,rt+ut),ft+=Mt}}function $t(){return""+Math.round(kt)+"px "}function Qt(Mt,ee){var ye=""+V.font;if(W.subscripts===!0){var le=Mt.indexOf(M),Me=ee.indexOf(M),He=le>-1?parseInt(Mt[1+le]):0,Ge=Me>-1?parseInt(ee[1+Me]):0;He!==Ge&&(ye=ye.replace($t(),"?px "),kt*=Math.pow(.75,Ge-He),ye=ye.replace("?px ",$t())),ut+=.25*tt*(Ge-He)}if(W.superscripts===!0){var cr=Mt.indexOf(b),ur=ee.indexOf(b),Ur=cr>-1?parseInt(Mt[1+cr]):0,$r=ur>-1?parseInt(ee[1+ur]):0;Ur!==$r&&(ye=ye.replace($t(),"?px "),kt*=Math.pow(.75,$r-Ur),ye=ye.replace("?px ",$t())),ut-=.25*tt*($r-Ur)}if(W.bolds===!0){var wr=Mt.indexOf(y)>-1,Jr=ee.indexOf(y)>-1;!wr&&Jr&&(sn?ye=ye.replace("italic ","italic bold "):ye="bold "+ye),wr&&!Jr&&(ye=ye.replace("bold ",""))}if(W.italics===!0){var sn=Mt.indexOf(T)>-1,Pe=ee.indexOf(T)>-1;!sn&&Pe&&(ye="italic "+ye),sn&&!Pe&&(ye=ye.replace("italic ",""))}V.font=ye}for(it=0;it<st;++it){var ve=mt[it]+`
|
||||
`;for(ft=0,ut=it*tt,kt=F,It="",K=0;K<ve.length;++K){var de=K+Ot<lt.length?lt[K+Ot]:lt[lt.length-1];$===de?It+=ve[K]:(qt(),It=ve[K],de!==void 0&&(Qt($,de),$=de))}qt(),Ot+=ve.length;var me=Math.round(ft+2*pt)|0;at<me&&(at=me)}var ue=at,Tt=rt+tt*st,Pt=n(V.getImageData(0,0,ue,Tt).data,[Tt,ue,4]);return Pt.pick(-1,-1,0).transpose(1,0)}function k(j,V){var H=a(j,128);return V?s(H.cells,H.positions,.25):{edges:H.cells,positions:H.positions}}function w(j,V,H,F){var U=k(j,F),W=h(U.positions,V,H),$=U.edges,J=V.orientation==="ccw";if(i(W,$),V.polygons||V.polygon||V.polyline){for(var lt=f($,W),yt=new Array(lt.length),mt=0;mt<lt.length;++mt){for(var st=lt[mt],tt=new Array(st.length),pt=0;pt<st.length;++pt){for(var rt=st[pt],at=new Array(rt.length),vt=0;vt<rt.length;++vt)at[vt]=W[rt[vt]].slice();J&&at.reverse(),tt[pt]=at}yt[mt]=tt}return yt}else return V.triangles||V.triangulate||V.triangle?{cells:l(W,$,{delaunay:!1,exterior:!1,interior:!0}),positions:W}:{edges:$,positions:W}}function R(j,V,H){try{return w(j,V,H,!0)}catch{}try{return w(j,V,H,!1)}catch{}return V.polygons||V.polyline||V.polygon?[]:V.triangles||V.triangulate||V.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}function O(j,V,H,F){var U=64,W=1.25,$={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};F&&(F.size&&F.size>0&&(U=F.size),F.lineSpacing&&F.lineSpacing>0&&(W=F.lineSpacing),F.styletags&&F.styletags.breaklines&&($.breaklines=!!F.styletags.breaklines),F.styletags&&F.styletags.bolds&&($.bolds=!!F.styletags.bolds),F.styletags&&F.styletags.italics&&($.italics=!!F.styletags.italics),F.styletags&&F.styletags.subscripts&&($.subscripts=!!F.styletags.subscripts),F.styletags&&F.styletags.superscripts&&($.superscripts=!!F.styletags.superscripts)),H.font=[F.fontStyle,F.fontVariant,F.fontWeight,U+"px",F.font].filter(function(lt){return lt}).join(" "),H.textAlign="start",H.textBaseline="alphabetic",H.direction="ltr";var J=p(V,H,j,U,W,$);return R(J,F,U)}},7721:function(t,e,r){var a=r(5716);t.exports=n;function n(s){return a(s[0])*a(s[1])}},7765:function(t,e,r){t.exports=u;var a=r(9618),n=r(1888),s=r(446),i=r(1570);function l(b){for(var _=b.length,P=0,M=0;M<_;++M)P=Math.max(P,b[M].length)|0;return P-1}function f(b,_){for(var P=b.length,M=n.mallocUint8(P),E=0;E<P;++E)M[E]=b[E]<_|0;return M}function x(b,_){for(var P=b.length,M=_*(_+1)/2*P|0,E=n.mallocUint32(M*2),A=0,h=0;h<P;++h)for(var p=b[h],_=p.length,k=0;k<_;++k)for(var w=0;w<k;++w){var R=p[w],O=p[k];E[A++]=Math.min(R,O)|0,E[A++]=Math.max(R,O)|0}var j=A/2|0;s(a(E,[j,2]));for(var V=2,h=2;h<A;h+=2)E[h-2]===E[h]&&E[h-1]===E[h+1]||(E[V++]=E[h],E[V++]=E[h+1]);return a(E,[V/2|0,2])}function y(b,_,P,M){for(var E=b.data,A=b.shape[0],h=n.mallocDouble(A),p=0,k=0;k<A;++k){var w=E[2*k],R=E[2*k+1];if(P[w]!==P[R]){var O=_[w],j=_[R];E[2*p]=w,E[2*p+1]=R,h[p++]=(j-M)/(j-O)}}return b.shape[0]=p,a(h,[p])}function v(b,_){var P=n.mallocInt32(_*2),M=b.shape[0],E=b.data;P[0]=0;for(var A=0,h=0;h<M;++h){var p=E[2*h];if(p!==A){for(P[2*A+1]=h;++A<p;)P[2*A]=h,P[2*A+1]=h;P[2*A]=h}}for(P[2*A+1]=M;++A<_;)P[2*A]=P[2*A+1]=M;return P}function T(b){for(var _=b.shape[0]|0,P=b.data,M=new Array(_),E=0;E<_;++E)M[E]=[P[2*E],P[2*E+1]];return M}function u(b,_,P,M){P=P||0,typeof M>"u"&&(M=l(b));var E=b.length;if(E===0||M<1)return{cells:[],vertexIds:[],vertexWeights:[]};var A=f(_,+P),h=x(b,M),p=y(h,_,A,+P),k=v(h,_.length|0),w=i(M)(b,h.data,k,A),R=T(h),O=[].slice.call(p.data,0,p.shape[0]);return n.free(A),n.free(h.data),n.free(p.data),n.free(k),{cells:w,vertexIds:R,vertexWeights:O}}},7766:function(t,e,r){var a=r(9618),n=r(5298),s=r(1888);t.exports=p;var i=null,l=null,f=null;function x(k){i=[k.LINEAR,k.NEAREST_MIPMAP_LINEAR,k.LINEAR_MIPMAP_NEAREST,k.LINEAR_MIPMAP_NEAREST],l=[k.NEAREST,k.LINEAR,k.NEAREST_MIPMAP_NEAREST,k.NEAREST_MIPMAP_LINEAR,k.LINEAR_MIPMAP_NEAREST,k.LINEAR_MIPMAP_LINEAR],f=[k.REPEAT,k.CLAMP_TO_EDGE,k.MIRRORED_REPEAT]}function y(k){return typeof HTMLCanvasElement<"u"&&k instanceof HTMLCanvasElement||typeof HTMLImageElement<"u"&&k instanceof HTMLImageElement||typeof HTMLVideoElement<"u"&&k instanceof HTMLVideoElement||typeof ImageData<"u"&&k instanceof ImageData}var v=function(k,w){n.muls(k,w,255)};function T(k,w,R){var O=k.gl,j=O.getParameter(O.MAX_TEXTURE_SIZE);if(w<0||w>j||R<0||R>j)throw new Error("gl-texture2d: Invalid texture size");return k._shape=[w,R],k.bind(),O.texImage2D(O.TEXTURE_2D,0,k.format,w,R,0,k.format,k.type,null),k._mipLevels=[0],k}function u(k,w,R,O,j,V){this.gl=k,this.handle=w,this.format=j,this.type=V,this._shape=[R,O],this._mipLevels=[0],this._magFilter=k.NEAREST,this._minFilter=k.NEAREST,this._wrapS=k.CLAMP_TO_EDGE,this._wrapT=k.CLAMP_TO_EDGE,this._anisoSamples=1;var H=this,F=[this._wrapS,this._wrapT];Object.defineProperties(F,[{get:function(){return H._wrapS},set:function(W){return H.wrapS=W}},{get:function(){return H._wrapT},set:function(W){return H.wrapT=W}}]),this._wrapVector=F;var U=[this._shape[0],this._shape[1]];Object.defineProperties(U,[{get:function(){return H._shape[0]},set:function(W){retur
Line truncated
|
||||
`+n:""),this.stack=new Error().stack}e.prototype=new Error,e.prototype.name="GLError",e.prototype.constructor=e,t.exports=e},8902:function(t,e,r){var a=r(2478),n=r(3250)[3],s=0,i=1,l=2;t.exports=P;function f(M,E,A,h,p){this.a=M,this.b=E,this.idx=A,this.lowerIds=h,this.upperIds=p}function x(M,E,A,h){this.a=M,this.b=E,this.type=A,this.idx=h}function y(M,E){var A=M.a[0]-E.a[0]||M.a[1]-E.a[1]||M.type-E.type;return A||M.type!==s&&(A=n(M.a,M.b,E.b),A)?A:M.idx-E.idx}function v(M,E){return n(M.a,M.b,E)}function T(M,E,A,h,p){for(var k=a.lt(E,h,v),w=a.gt(E,h,v),R=k;R<w;++R){for(var O=E[R],j=O.lowerIds,V=j.length;V>1&&n(A[j[V-2]],A[j[V-1]],h)>0;)M.push([j[V-1],j[V-2],p]),V-=1;j.length=V,j.push(p);for(var H=O.upperIds,V=H.length;V>1&&n(A[H[V-2]],A[H[V-1]],h)<0;)M.push([H[V-2],H[V-1],p]),V-=1;H.length=V,H.push(p)}}function u(M,E){var A;return M.a[0]<E.a[0]?A=n(M.a,M.b,E.a):A=n(E.b,E.a,M.a),A||(E.b[0]<M.b[0]?A=n(M.a,M.b,E.b):A=n(E.b,E.a,M.b),A||M.idx-E.idx)}function b(M,E,A){var h=a.le(M,A,u),p=M[h],k=p.upperIds,w=k[k.length-1];p.upperIds=[w],M.splice(h+1,0,new f(A.a,A.b,A.idx,[w],k))}function _(M,E,A){var h=A.a;A.a=A.b,A.b=h;var p=a.eq(M,A,u),k=M[p],w=M[p-1];w.upperIds=k.upperIds,M.splice(p,1)}function P(M,E){for(var A=M.length,h=E.length,p=[],k=0;k<A;++k)p.push(new x(M[k],null,s,k));for(var k=0;k<h;++k){var w=E[k],R=M[w[0]],O=M[w[1]];R[0]<O[0]?p.push(new x(R,O,l,k),new x(O,R,i,k)):R[0]>O[0]&&p.push(new x(O,R,l,k),new x(R,O,i,k))}p.sort(y);for(var j=p[0].a[0]-(1+Math.abs(p[0].a[0]))*Math.pow(2,-52),V=[new f([j,1],[j,0],-1,[],[])],H=[],k=0,F=p.length;k<F;++k){var U=p[k],W=U.type;W===s?T(H,V,M,U.a,U.idx):W===l?b(V,M,U):_(V,M,U)}return H}},8954:function(t,e,r){t.exports=u;var a=r(3250),n=r(6803).Fw;function s(b,_,P){this.vertices=b,this.adjacent=_,this.boundary=P,this.lastVisited=-1}s.prototype.flip=function(){var b=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=b;var _=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=_};function i(b,_,P){this.vertices=b,this.cell=_,this.index=P}function l(b,_){return n(b.vertices,_.vertices)}function f(b){return function(){var _=this.tuple;return b.apply(this,_)}}function x(b){var _=a[b+1];return _||(_=a),f(_)}var y=[];function v(b,_,P){this.dimension=b,this.vertices=_,this.simplices=P,this.interior=P.filter(function(A){return!A.boundary}),this.tuple=new Array(b+1);for(var M=0;M<=b;++M)this.tuple[M]=this.vertices[M];var E=y[b];E||(E=y[b]=x(b)),this.orient=E}var T=v.prototype;T.handleBoundaryDegeneracy=function(b,_){var P=this.dimension,M=this.vertices.length-1,E=this.tuple,A=this.vertices,h=[b];for(b.lastVisited=-M;h.length>0;){b=h.pop();for(var p=b.adjacent,k=0;k<=P;++k){var w=p[k];if(!(!w.boundary||w.lastVisited<=-M)){for(var R=w.vertices,O=0;O<=P;++O){var j=R[O];j<0?E[O]=_:E[O]=A[j]}var V=this.orient();if(V>0)return w;w.lastVisited=-M,V===0&&h.push(w)}}}return null},T.walk=function(b,_){var P=this.vertices.length-1,M=this.dimension,E=this.vertices,A=this.tuple,h=_?this.interior.length*Math.random()|0:this.interior.length-1,p=this.interior[h];t:for(;!p.boundary;){for(var k=p.vertices,w=p.adjacent,R=0;R<=M;++R)A[R]=E[k[R]];p.lastVisited=P;for(var R=0;R<=M;++R){var O=w[R];if(!(O.lastVisited>=P)){var j=A[R];A[R]=b;var V=this.orient();if(A[R]=j,V<0){p=O;continue t}else O.boundary?O.lastVisited=-P:O.lastVisited=P}}return}return p},T.addPeaks=function(b,_){var P=this.vertices.length-1,M=this.dimension,E=this.vertices,A=this.tuple,h=this.interior,p=this.simplices,k=[_];_.lastVisited=P,_.vertices[_.vertices.indexOf(-1)]=P,_.boundary=!1,h.push(_);for(var w=[];k.length>0;){var _=k.pop(),R=_.vertices,O=_.adjacent,j=R.indexOf(P);if(!(j<0)){for(var V=0;V<=M;++V)if(V!==j){var H=O[V];if(!(!H.boundary||H.lastVisited>=P)){var F=H.vertices;if(H.lastVisited!==-P){for(var U=0,W=0;W<=M;++W)F[W]<0?(U=W,A[W]=b):A[W]=E[F[W]];var $=this.orient();if($>0){F[U]=P,H.boundary=!1,h.push(H),k.push(H),H.lastVisited=P;continue}else H.lastVisited=-P}var J=H.adjacent,lt=R.slice(),yt=O.slice(),mt=new s(lt,yt,!0);p.push(mt);var st=J.indexOf(_);if(!(st<0)){J[st]=mt,yt[j]=H,lt[V]=-1,yt[V]=_,O[V]=mt,mt.flip();for(var W=0;W<=M;++W){var tt=lt[W];if(!(tt<0||tt===P)){for(var pt=new Array(M-1),rt=0,at=0;at<=M;++at){var vt=lt[at];vt<0||at===W||(pt[rt++]=vt)}w.push(new i(pt,mt,W))}}}}}}}w.sort(l);for(var V=0;V+1<w.length;V+=2){var it=w[V],K=w[V+1],ft=it.index,ut=K.index;ft<0||ut<0||(it.cell.adjacent[it.index]=K.cell,K.cell.adjacent[K.index]=it.cell)}},T.insert=function(b,_){var P=this.vertices;P.push(b);var M=this.walk(b,_);if(M){for(var E=this.dimension,A=this.tuple,h=0;h<=E;++h){var p=M.vertices[h];p<0?A[h]=b:A[h]=P[p]}var k=this.orient(A);k<0||k===0&&(M=this.handleBoundaryDegeneracy(M,b),!M)||this.addPeaks(b,M)}},T.boundary=function(){for(var b=this.dimension,_=[],P=this.simplices,M=P.length,E=0;E<M;++E){var A=P[E];if(A.boundary){for(var h=new Array(b),p=A.vertices,k=0,w=0,R=0;R<=b;++R)p[R]>=0?h[k++]=p[R]:w=R&1;if(w===(b&1)){var O=h[0];h[0]=h[1],h[1]=O}_.push(h)}}return _};function u(b,_){v
Line truncated
|
||||
`),st=mt.length,tt=Math.round(U*F),pt=F,rt=F*2,at=0,vt=st*tt+rt;j.height<vt&&(j.height=vt),V.fillStyle="#000",V.fillRect(0,0,j.width,j.height),V.fillStyle="#fff";var it,K,ft,ut,kt,It=0,zt="";function qt(){if(zt!==""){var Mt=V.measureText(zt).width;V.fillText(zt,pt+ft,rt+ut),ft+=Mt}}function $t(){return""+Math.round(kt)+"px "}function Qt(Mt,ee){var ye=""+V.font;if(W.subscripts===!0){var le=Mt.indexOf(M),Me=ee.indexOf(M),He=le>-1?parseInt(Mt[1+le]):0,Ge=Me>-1?parseInt(ee[1+Me]):0;He!==Ge&&(ye=ye.replace($t(),"?px "),kt*=Math.pow(.75,Ge-He),ye=ye.replace("?px ",$t())),ut+=.25*tt*(Ge-He)}if(W.superscripts===!0){var cr=Mt.indexOf(b),ur=ee.indexOf(b),Ur=cr>-1?parseInt(Mt[1+cr]):0,$r=ur>-1?parseInt(ee[1+ur]):0;Ur!==$r&&(ye=ye.replace($t(),"?px "),kt*=Math.pow(.75,$r-Ur),ye=ye.replace("?px ",$t())),ut-=.25*tt*($r-Ur)}if(W.bolds===!0){var wr=Mt.indexOf(y)>-1,Qr=ee.indexOf(y)>-1;!wr&&Qr&&(on?ye=ye.replace("italic ","italic bold "):ye="bold "+ye),wr&&!Qr&&(ye=ye.replace("bold ",""))}if(W.italics===!0){var on=Mt.indexOf(T)>-1,Pe=ee.indexOf(T)>-1;!on&&Pe&&(ye="italic "+ye),on&&!Pe&&(ye=ye.replace("italic ",""))}V.font=ye}for(it=0;it<st;++it){var ve=mt[it]+`
|
||||
`;for(ft=0,ut=it*tt,kt=F,zt="",K=0;K<ve.length;++K){var de=K+It<lt.length?lt[K+It]:lt[lt.length-1];$===de?zt+=ve[K]:(qt(),zt=ve[K],de!==void 0&&(Qt($,de),$=de))}qt(),It+=ve.length;var me=Math.round(ft+2*pt)|0;at<me&&(at=me)}var ue=at,Tt=rt+tt*st,Pt=n(V.getImageData(0,0,ue,Tt).data,[Tt,ue,4]);return Pt.pick(-1,-1,0).transpose(1,0)}function k(j,V){var H=a(j,128);return V?s(H.cells,H.positions,.25):{edges:H.cells,positions:H.positions}}function w(j,V,H,F){var U=k(j,F),W=h(U.positions,V,H),$=U.edges,J=V.orientation==="ccw";if(i(W,$),V.polygons||V.polygon||V.polyline){for(var lt=f($,W),yt=new Array(lt.length),mt=0;mt<lt.length;++mt){for(var st=lt[mt],tt=new Array(st.length),pt=0;pt<st.length;++pt){for(var rt=st[pt],at=new Array(rt.length),vt=0;vt<rt.length;++vt)at[vt]=W[rt[vt]].slice();J&&at.reverse(),tt[pt]=at}yt[mt]=tt}return yt}else return V.triangles||V.triangulate||V.triangle?{cells:l(W,$,{delaunay:!1,exterior:!1,interior:!0}),positions:W}:{edges:$,positions:W}}function R(j,V,H){try{return w(j,V,H,!0)}catch{}try{return w(j,V,H,!1)}catch{}return V.polygons||V.polyline||V.polygon?[]:V.triangles||V.triangulate||V.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}function O(j,V,H,F){var U=64,W=1.25,$={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};F&&(F.size&&F.size>0&&(U=F.size),F.lineSpacing&&F.lineSpacing>0&&(W=F.lineSpacing),F.styletags&&F.styletags.breaklines&&($.breaklines=!!F.styletags.breaklines),F.styletags&&F.styletags.bolds&&($.bolds=!!F.styletags.bolds),F.styletags&&F.styletags.italics&&($.italics=!!F.styletags.italics),F.styletags&&F.styletags.subscripts&&($.subscripts=!!F.styletags.subscripts),F.styletags&&F.styletags.superscripts&&($.superscripts=!!F.styletags.superscripts)),H.font=[F.fontStyle,F.fontVariant,F.fontWeight,U+"px",F.font].filter(function(lt){return lt}).join(" "),H.textAlign="start",H.textBaseline="alphabetic",H.direction="ltr";var J=p(V,H,j,U,W,$);return R(J,F,U)}},7721:function(t,e,r){var a=r(5716);t.exports=n;function n(s){return a(s[0])*a(s[1])}},7765:function(t,e,r){t.exports=u;var a=r(9618),n=r(1888),s=r(446),i=r(1570);function l(b){for(var _=b.length,P=0,M=0;M<_;++M)P=Math.max(P,b[M].length)|0;return P-1}function f(b,_){for(var P=b.length,M=n.mallocUint8(P),E=0;E<P;++E)M[E]=b[E]<_|0;return M}function x(b,_){for(var P=b.length,M=_*(_+1)/2*P|0,E=n.mallocUint32(M*2),A=0,h=0;h<P;++h)for(var p=b[h],_=p.length,k=0;k<_;++k)for(var w=0;w<k;++w){var R=p[w],O=p[k];E[A++]=Math.min(R,O)|0,E[A++]=Math.max(R,O)|0}var j=A/2|0;s(a(E,[j,2]));for(var V=2,h=2;h<A;h+=2)E[h-2]===E[h]&&E[h-1]===E[h+1]||(E[V++]=E[h],E[V++]=E[h+1]);return a(E,[V/2|0,2])}function y(b,_,P,M){for(var E=b.data,A=b.shape[0],h=n.mallocDouble(A),p=0,k=0;k<A;++k){var w=E[2*k],R=E[2*k+1];if(P[w]!==P[R]){var O=_[w],j=_[R];E[2*p]=w,E[2*p+1]=R,h[p++]=(j-M)/(j-O)}}return b.shape[0]=p,a(h,[p])}function v(b,_){var P=n.mallocInt32(_*2),M=b.shape[0],E=b.data;P[0]=0;for(var A=0,h=0;h<M;++h){var p=E[2*h];if(p!==A){for(P[2*A+1]=h;++A<p;)P[2*A]=h,P[2*A+1]=h;P[2*A]=h}}for(P[2*A+1]=M;++A<_;)P[2*A]=P[2*A+1]=M;return P}function T(b){for(var _=b.shape[0]|0,P=b.data,M=new Array(_),E=0;E<_;++E)M[E]=[P[2*E],P[2*E+1]];return M}function u(b,_,P,M){P=P||0,typeof M>"u"&&(M=l(b));var E=b.length;if(E===0||M<1)return{cells:[],vertexIds:[],vertexWeights:[]};var A=f(_,+P),h=x(b,M),p=y(h,_,A,+P),k=v(h,_.length|0),w=i(M)(b,h.data,k,A),R=T(h),O=[].slice.call(p.data,0,p.shape[0]);return n.free(A),n.free(h.data),n.free(p.data),n.free(k),{cells:w,vertexIds:R,vertexWeights:O}}},7766:function(t,e,r){var a=r(9618),n=r(5298),s=r(1888);t.exports=p;var i=null,l=null,f=null;function x(k){i=[k.LINEAR,k.NEAREST_MIPMAP_LINEAR,k.LINEAR_MIPMAP_NEAREST,k.LINEAR_MIPMAP_NEAREST],l=[k.NEAREST,k.LINEAR,k.NEAREST_MIPMAP_NEAREST,k.NEAREST_MIPMAP_LINEAR,k.LINEAR_MIPMAP_NEAREST,k.LINEAR_MIPMAP_LINEAR],f=[k.REPEAT,k.CLAMP_TO_EDGE,k.MIRRORED_REPEAT]}function y(k){return typeof HTMLCanvasElement<"u"&&k instanceof HTMLCanvasElement||typeof HTMLImageElement<"u"&&k instanceof HTMLImageElement||typeof HTMLVideoElement<"u"&&k instanceof HTMLVideoElement||typeof ImageData<"u"&&k instanceof ImageData}var v=function(k,w){n.muls(k,w,255)};function T(k,w,R){var O=k.gl,j=O.getParameter(O.MAX_TEXTURE_SIZE);if(w<0||w>j||R<0||R>j)throw new Error("gl-texture2d: Invalid texture size");return k._shape=[w,R],k.bind(),O.texImage2D(O.TEXTURE_2D,0,k.format,w,R,0,k.format,k.type,null),k._mipLevels=[0],k}function u(k,w,R,O,j,V){this.gl=k,this.handle=w,this.format=j,this.type=V,this._shape=[R,O],this._mipLevels=[0],this._magFilter=k.NEAREST,this._minFilter=k.NEAREST,this._wrapS=k.CLAMP_TO_EDGE,this._wrapT=k.CLAMP_TO_EDGE,this._anisoSamples=1;var H=this,F=[this._wrapS,this._wrapT];Object.defineProperties(F,[{get:function(){return H._wrapS},set:function(W){return H.wrapS=W}},{get:function(){return H._wrapT},set:function(W){return H.wrapT=W}}]),this._wrapVector=F;var U=[this._shape[0],this._shape[1]];Object.defineProperties(U,[{get:function(){return H._shape[0]},set:function(W){retur
Line truncated
|
||||
`+n:""),this.stack=new Error().stack}e.prototype=new Error,e.prototype.name="GLError",e.prototype.constructor=e,t.exports=e},8902:function(t,e,r){var a=r(2478),n=r(3250)[3],s=0,i=1,l=2;t.exports=P;function f(M,E,A,h,p){this.a=M,this.b=E,this.idx=A,this.lowerIds=h,this.upperIds=p}function x(M,E,A,h){this.a=M,this.b=E,this.type=A,this.idx=h}function y(M,E){var A=M.a[0]-E.a[0]||M.a[1]-E.a[1]||M.type-E.type;return A||M.type!==s&&(A=n(M.a,M.b,E.b),A)?A:M.idx-E.idx}function v(M,E){return n(M.a,M.b,E)}function T(M,E,A,h,p){for(var k=a.lt(E,h,v),w=a.gt(E,h,v),R=k;R<w;++R){for(var O=E[R],j=O.lowerIds,V=j.length;V>1&&n(A[j[V-2]],A[j[V-1]],h)>0;)M.push([j[V-1],j[V-2],p]),V-=1;j.length=V,j.push(p);for(var H=O.upperIds,V=H.length;V>1&&n(A[H[V-2]],A[H[V-1]],h)<0;)M.push([H[V-2],H[V-1],p]),V-=1;H.length=V,H.push(p)}}function u(M,E){var A;return M.a[0]<E.a[0]?A=n(M.a,M.b,E.a):A=n(E.b,E.a,M.a),A||(E.b[0]<M.b[0]?A=n(M.a,M.b,E.b):A=n(E.b,E.a,M.b),A||M.idx-E.idx)}function b(M,E,A){var h=a.le(M,A,u),p=M[h],k=p.upperIds,w=k[k.length-1];p.upperIds=[w],M.splice(h+1,0,new f(A.a,A.b,A.idx,[w],k))}function _(M,E,A){var h=A.a;A.a=A.b,A.b=h;var p=a.eq(M,A,u),k=M[p],w=M[p-1];w.upperIds=k.upperIds,M.splice(p,1)}function P(M,E){for(var A=M.length,h=E.length,p=[],k=0;k<A;++k)p.push(new x(M[k],null,s,k));for(var k=0;k<h;++k){var w=E[k],R=M[w[0]],O=M[w[1]];R[0]<O[0]?p.push(new x(R,O,l,k),new x(O,R,i,k)):R[0]>O[0]&&p.push(new x(O,R,l,k),new x(R,O,i,k))}p.sort(y);for(var j=p[0].a[0]-(1+Math.abs(p[0].a[0]))*Math.pow(2,-52),V=[new f([j,1],[j,0],-1,[],[])],H=[],k=0,F=p.length;k<F;++k){var U=p[k],W=U.type;W===s?T(H,V,M,U.a,U.idx):W===l?b(V,M,U):_(V,M,U)}return H}},8954:function(t,e,r){t.exports=u;var a=r(3250),n=r(6803).Fw;function s(b,_,P){this.vertices=b,this.adjacent=_,this.boundary=P,this.lastVisited=-1}s.prototype.flip=function(){var b=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=b;var _=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=_};function i(b,_,P){this.vertices=b,this.cell=_,this.index=P}function l(b,_){return n(b.vertices,_.vertices)}function f(b){return function(){var _=this.tuple;return b.apply(this,_)}}function x(b){var _=a[b+1];return _||(_=a),f(_)}var y=[];function v(b,_,P){this.dimension=b,this.vertices=_,this.simplices=P,this.interior=P.filter(function(A){return!A.boundary}),this.tuple=new Array(b+1);for(var M=0;M<=b;++M)this.tuple[M]=this.vertices[M];var E=y[b];E||(E=y[b]=x(b)),this.orient=E}var T=v.prototype;T.handleBoundaryDegeneracy=function(b,_){var P=this.dimension,M=this.vertices.length-1,E=this.tuple,A=this.vertices,h=[b];for(b.lastVisited=-M;h.length>0;){b=h.pop();for(var p=b.adjacent,k=0;k<=P;++k){var w=p[k];if(!(!w.boundary||w.lastVisited<=-M)){for(var R=w.vertices,O=0;O<=P;++O){var j=R[O];j<0?E[O]=_:E[O]=A[j]}var V=this.orient();if(V>0)return w;w.lastVisited=-M,V===0&&h.push(w)}}}return null},T.walk=function(b,_){var P=this.vertices.length-1,M=this.dimension,E=this.vertices,A=this.tuple,h=_?this.interior.length*Math.random()|0:this.interior.length-1,p=this.interior[h];t:for(;!p.boundary;){for(var k=p.vertices,w=p.adjacent,R=0;R<=M;++R)A[R]=E[k[R]];p.lastVisited=P;for(var R=0;R<=M;++R){var O=w[R];if(!(O.lastVisited>=P)){var j=A[R];A[R]=b;var V=this.orient();if(A[R]=j,V<0){p=O;continue t}else O.boundary?O.lastVisited=-P:O.lastVisited=P}}return}return p},T.addPeaks=function(b,_){var P=this.vertices.length-1,M=this.dimension,E=this.vertices,A=this.tuple,h=this.interior,p=this.simplices,k=[_];_.lastVisited=P,_.vertices[_.vertices.indexOf(-1)]=P,_.boundary=!1,h.push(_);for(var w=[];k.length>0;){var _=k.pop(),R=_.vertices,O=_.adjacent,j=R.indexOf(P);if(!(j<0)){for(var V=0;V<=M;++V)if(V!==j){var H=O[V];if(!(!H.boundary||H.lastVisited>=P)){var F=H.vertices;if(H.lastVisited!==-P){for(var U=0,W=0;W<=M;++W)F[W]<0?(U=W,A[W]=b):A[W]=E[F[W]];var $=this.orient();if($>0){F[U]=P,H.boundary=!1,h.push(H),k.push(H),H.lastVisited=P;continue}else H.lastVisited=-P}var J=H.adjacent,lt=R.slice(),yt=O.slice(),mt=new s(lt,yt,!0);p.push(mt);var st=J.indexOf(_);if(!(st<0)){J[st]=mt,yt[j]=H,lt[V]=-1,yt[V]=_,O[V]=mt,mt.flip();for(var W=0;W<=M;++W){var tt=lt[W];if(!(tt<0||tt===P)){for(var pt=new Array(M-1),rt=0,at=0;at<=M;++at){var vt=lt[at];vt<0||at===W||(pt[rt++]=vt)}w.push(new i(pt,mt,W))}}}}}}}w.sort(l);for(var V=0;V+1<w.length;V+=2){var it=w[V],K=w[V+1],ft=it.index,ut=K.index;ft<0||ut<0||(it.cell.adjacent[it.index]=K.cell,K.cell.adjacent[K.index]=it.cell)}},T.insert=function(b,_){var P=this.vertices;P.push(b);var M=this.walk(b,_);if(M){for(var E=this.dimension,A=this.tuple,h=0;h<=E;++h){var p=M.vertices[h];p<0?A[h]=b:A[h]=P[p]}var k=this.orient(A);k<0||k===0&&(M=this.handleBoundaryDegeneracy(M,b),!M)||this.addPeaks(b,M)}},T.boundary=function(){for(var b=this.dimension,_=[],P=this.simplices,M=P.length,E=0;E<M;++E){var A=P[E];if(A.boundary){for(var h=new Array(b),p=A.vertices,k=0,w=0,R=0;R<=b;++R)p[R]>=0?h[k++]=p[R]:w=R&1;if(w===(b&1)){var O=h[0];h[0]=h[1],h[1]=O}_.push(h)}}return _};function u(b,_){v
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=q1(),l=wx(),f=jV(),x=gT(),y=Cd(),v=UV(),T=Og(),u=WS(),b=kx(),_=VV(),P=vT(),M=wb(),E=A;function A(k,w){var R=this;if(!(this instanceof A))return new A(k,w);typeof k=="function"?(w||(w={}),w.regl=k):(w=k,k=null),w&&w.length&&(w.positions=w),k=w.regl;var O=k._gl,j,V=[],H={},F=[],U=[null],W=[null],$=255,J=100;this.tooManyColors=_,j=k.texture({data:new Uint8Array($*4),width:$,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),y(this,{regl:k,gl:O,groups:F,markerCache:W,markerTextures:U,palette:V,paletteIds:H,paletteTexture:j,maxColors:$,maxSize:J,canvas:O.canvas}),this.update(w);var lt={uniforms:{constPointSize:!!w.constPointSize,opacity:k.prop("opacity"),paletteSize:function(st,tt){return[R.tooManyColors?0:$,j.height]},pixelRatio:k.context("pixelRatio"),scale:k.prop("scale"),scaleFract:k.prop("scaleFract"),translate:k.prop("translate"),translateFract:k.prop("translateFract"),markerTexture:k.prop("markerTexture"),paletteTexture:j},attributes:{x:function(st,tt){return tt.xAttr||{buffer:tt.positionBuffer,stride:8,offset:0}},y:function(st,tt){return tt.yAttr||{buffer:tt.positionBuffer,stride:8,offset:4}},xFract:function(st,tt){return tt.xAttr?{constant:[0,0]}:{buffer:tt.positionFractBuffer,stride:8,offset:0}},yFract:function(st,tt){return tt.yAttr?{constant:[0,0]}:{buffer:tt.positionFractBuffer,stride:8,offset:4}},size:function(st,tt){return tt.size.length?{buffer:tt.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(tt.size*255/R.maxSize)]}},borderSize:function(st,tt){return tt.borderSize.length?{buffer:tt.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(tt.borderSize*255/R.maxSize)]}},colorId:function(st,tt){return tt.color.length?{buffer:tt.colorBuffer,stride:R.tooManyColors?8:4,offset:0}:{constant:R.tooManyColors?V.slice(tt.color*4,tt.color*4+4):[tt.color]}},borderColorId:function(st,tt){return tt.borderColor.length?{buffer:tt.colorBuffer,stride:R.tooManyColors?8:4,offset:R.tooManyColors?4:2}:{constant:R.tooManyColors?V.slice(tt.borderColor*4,tt.borderColor*4+4):[tt.borderColor]}},isActive:function(st,tt){return tt.activation===!0?{constant:[1]}:tt.activation?tt.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:k.prop("viewport")},viewport:k.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:k.prop("elements"),count:k.prop("count"),offset:k.prop("offset"),primitive:"points"},yt=y({},lt);yt.frag=v([`precision highp float;
|
||||
#define GLSLIFY 1
|
||||
@@ -2326,8 +2326,8 @@ void main() {
|
||||
fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
|
||||
fragWidth = 1. / gl_PointSize;
|
||||
}
|
||||
`]),_&&(mt.frag=mt.frag.replace("smoothstep","smoothStep"),yt.frag=yt.frag.replace("smoothstep","smoothStep")),this.drawCircle=k(mt)}A.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},A.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},A.prototype.draw=function(){for(var k=this,w=arguments.length,R=new Array(w),O=0;O<w;O++)R[O]=arguments[O];var j=this.groups;if(R.length===1&&Array.isArray(R[0])&&(R[0][0]===null||Array.isArray(R[0][0]))&&(R=R[0]),this.regl._refresh(),R.length)for(var V=0;V<R.length;V++)this.drawItem(V,R[V]);else j.forEach(function(H,F){k.drawItem(F)});return this},A.prototype.drawItem=function(k,w){var R=this.groups,O=R[k];if(typeof w=="number"&&(k=w,O=R[w],w=null),!!(O&&O.count&&O.opacity)){O.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,O,w));for(var j=[],V=1;V<O.activation.length;V++)!O.activation[V]||O.activation[V]!==!0&&!O.activation[V].data.length||j.push.apply(j,z(this.getMarkerDrawOptions(V,O,w)));j.length&&this.drawMarker(j)}},A.prototype.getMarkerDrawOptions=function(k,w,R){var O=w.range,j=w.tree,V=w.viewport,H=w.activation,F=w.selectionBuffer,U=w.count;if(this.regl,!j)return R?[y({},w,{markerTexture:this.markerTextures[k],activation:H[k],count:R.length,elements:R,offset:0})]:[y({},w,{markerTexture:this.markerTextures[k],activation:H[k],offset:0})];var W=[],$=j.range(O,{lod:!0,px:[(O[2]-O[0])/V.width,(O[3]-O[1])/V.height]});if(R){for(var J=H[k],lt=J.data,yt=new Uint8Array(U),mt=0;mt<R.length;mt++){var st=R[mt];yt[st]=lt?lt[st]:1}F.subdata(yt)}for(var tt=$.length;tt--;){var pt=g($[tt],2),rt=pt[0],at=pt[1];W.push(y({},w,{markerTexture:this.markerTextures[k],activation:R?F:H[k],offset:rt,count:at-rt}))}return W},A.prototype.update=function(){for(var k=this,w=arguments.length,R=new Array(w),O=0;O<w;O++)R[O]=arguments[O];if(R.length){R.length===1&&Array.isArray(R[0])&&(R=R[0]);var j=this.groups,V=this.gl,H=this.regl,F=this.maxSize,U=this.maxColors,W=this.palette;this.groups=j=R.map(function($,J){var lt=j[J];if($===void 0)return lt;$===null?$={positions:null}:typeof $=="function"?$={ondraw:$}:typeof $[0]=="number"&&($={positions:$}),$=T($,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),$.positions===null&&($.positions=[]),$.tooManyColors!=null&&(k.tooManyColors=$.tooManyColors),lt||(j[J]=lt={id:J,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:H.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},$=y({},A.defaults,$)),$.positions&&!("marker"in $)&&($.marker=lt.marker,delete lt.marker),$.marker&&!("positions"in $)&&($.positions=lt.positions,delete lt.positions);var yt=0,mt=0;if(u(lt,$,[{snap:!0,size:function(de,me){return de==null&&(de=A.defaults.size),yt+=de&&de.length?1:0,de},borderSize:function(de,me){return de==null&&(de=A.defaults.borderSize),yt+=de&&de.length?1:0,de},opacity:parseFloat,color:function(de,me){return de==null&&(de=A.defaults.color),de=k.updateColor(de),mt++,de},borderColor:function(de,me){return de==null&&(de=A.defaults.borderColor),de=k.updateColor(de),mt++,de},bounds:function(de,me,ue){return"range"in ue||(ue.range=null),de},positions:function(de,me,ue){var Tt=me.snap,Pt=me.positionBuffer,Mt=me.positionFractBuffer,ee=me.selectionBuffer;if(de.x||de.y)return de.x.length?me.xAttr={buffer:H.buffer(de.x),offset:0,stride:4,count:de.x.length}:me.xAttr={buffer:de.x.buffer,offset:de.x.offset*4||0,stride:(de.x.stride||1)*4,count:de.x.count},de.y.length?me.yAttr={buffer:H.buffer(de.y),offset:0,stride:4,count:de.y.length}:me.yAttr={buffer:de.y.buffer,offset:de.y.offset*4||0,stride:(de.y.stride||1)*4,count:de.y.count},me.count=Math.max(me.xAttr.count,me.yAttr.count),de;de=b(de,"float64");var ye=me.count=Math.floor(de.length/2),le=me.bounds=ye?l(de,2):null;if(!ue.range&&!me.range&&(delete me.range,ue.range=le),!ue.marker&&!me.marker&&(delete me.marker,ue.marker=null),Tt&&(Tt===!0||ye>Tt)?me.tree=x(de,{bounds:le}):Tt&&Tt.length&&(me.tree=Tt),me.tree){
Line truncated
|
||||
`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),S)}}),QS=zt((Q,Z)=>{var c=Ax(),g=xT(),z=pH(),S=gH(),t=function(e,r){return e.replace("%v",S(r))};Z.exports=function(e,r,a){if(!g(a))throw new TypeError(t(r,e));if(!c(e)){if("default"in a)return a.default;if(a.isOptional)return null}var n=z(a.errorMessage);throw c(n)||(n=r),new TypeError(t(n,e))}}),vH=zt((Q,Z)=>{var c=QS(),g=Ax();Z.exports=function(z){return g(z)?z:c(z,"Cannot use %v",arguments[1])}}),yH=zt((Q,Z)=>{var c=QS(),g=YS();Z.exports=function(z){return g(z)?z:c(z,"%v is not a plain function",arguments[1])}}),xH=zt((Q,Z)=>{Z.exports=function(){var c=Array.from,g,z;return typeof c!="function"?!1:(g=["raz","dwa"],z=c(g),!!(z&&z!==g&&z[1]==="dwa"))}}),_H=zt((Q,Z)=>{var c=Object.prototype.toString,g=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);Z.exports=function(z){return typeof z=="function"&&g(c.call(z))}}),bH=zt((Q,Z)=>{Z.exports=function(){var c=Math.sign;return typeof c!="function"?!1:c(10)===1&&c(-20)===-1}}),wH=zt((Q,Z)=>{Z.exports=function(c){return c=Number(c),isNaN(c)||c===0?c:c>0?1:-1}}),kH=zt((Q,Z)=>{Z.exports=bH()()?Math.sign:wH()}),TH=zt((Q,Z)=>{var c=kH(),g=Math.abs,z=Math.floor;Z.exports=function(S){return isNaN(S)?0:(S=Number(S),S===0||!isFinite(S)?S:c(S)*z(g(S)))}}),AH=zt((Q,Z)=>{var c=TH(),g=Math.max;Z.exports=function(z){return g(0,c(z))}}),MH=zt((Q,Z)=>{var c=J1().iterator,g=E3(),z=_H(),S=AH(),t=kb(),e=Ev(),r=X1(),a=L3(),n=Array.isArray,s=Function.prototype.call,i={configurable:!0,enumerable:!0,writable:!0,value:null},l=Object.defineProperty;Z.exports=function(f){var x=arguments[1],y=arguments[2],v,T,u,b,_,P,M,E,A,h;if(f=Object(e(f)),r(x)&&t(x),!this||this===Array||!z(this)){if(!x){if(g(f))return _=f.length,_!==1?Array.apply(null,f):(b=new Array(1),b[0]=f[0],b);if(n(f)){for(b=new Array(_=f.length),T=0;T<_;++T)b[T]=f[T];return b}}b=[]}else v=this;if(!n(f)){if((A=f[c])!==void 0){for(M=t(A).call(f),v&&(b=new v),E=M.next(),T=0;!E.done;)h=x?s.call(x,y,E.value,T):E.value,v?(i.value=h,l(b,T,i)):b[T]=h,E=M.next(),++T;_=T}else if(a(f)){for(_=f.length,v&&(b=new v),T=0,u=0;T<_;++T)h=f[T],T+1<_&&(P=h.charCodeAt(0),P>=55296&&P<=56319&&(h+=f[++T])),h=x?s.call(x,y,h,u):h,v?(i.value=h,l(b,u,i)):b[u]=h,++u;_=u}}if(_===void 0)for(_=S(f.length),v&&(b=new v(_)),T=0;T<_;++T)h=x?s.call(x,y,f[T],T):f[T],v?(i.value=h,l(b,T,i)):b[T]=h;return v&&(i.value=null,b.length=_),b}}),SH=zt((Q,Z)=>{Z.exports=xH()()?Array.from:MH()}),CH=zt((Q,Z)=>{var c=SH(),g=_T(),z=Ev();Z.exports=function(S){var t=Object(z(S)),e=arguments[1],r=Object(arguments[2]);if(t!==S&&!e)return t;var a={};return e?c(e,function(n){(r.ensure||n in S)&&(a[n]=S[n])}):g(a,S),a}}),EH=zt((Q,Z)=>{var c=kb(),g=Ev(),z=Function.prototype.bind,S=Function.prototype.call,t=Object.keys,e=Object.prototype.propertyIsEnumerable;Z.exports=function(r,a){return function(n,s){var i,l=arguments[2],f=arguments[3];return n=Object(g(n)),c(s),i=t(n),f&&i.sort(typeof f=="function"?z.call(f,n):void 0),typeof r!="function"&&(r=i[r]),S.call(r,i,function(x,y){return e.call(n,x)?S.call(s,l,n[x],x,n,y):a})}}}),LH=zt((Q,Z)=>{Z.exports=EH()("forEach")}),PH=zt((Q,Z)=>{var c=kb(),g=LH(),z=Function.prototype.call;Z.exports=function(S,t){var e={},r=arguments[2];return c(t),g(S,function(a,n,s,i){e[n]=z.call(t,r,a,n,s,i)}),e}}),zH=zt((Q,Z)=>{var c=Ax(),g=vH(),z=yH(),S=CH(),t=KS(),e=PH(),r=Function.prototype.bind,a=Object.defineProperty,n=Object.prototype.hasOwnProperty,s;s=function(i,l,f){var x=g(l)&&z(l.value),y;return y=S(l),delete y.writable,delete y.value,y.get=function(){return!f.overwriteDefinition&&n.call(this,i)?x:(l.value=r.call(x,f.resolveContext?f.resolveContext(this):this),a(this,i,l),this[i])},y},Z.exports=function(i){var l=t(arguments[1]);return c(l.resolveContext)&&z(l.resolveContext),e(i,function(f,x){return s(x,f,l)})}}),tC=zt((Q,Z)=>{var c=dH(),g=_T(),z=kb(),S=Ev(),t=Lv(),e=zH(),r=J1(),a=Object.defineProperty,n=Object.defineProperties,s;Z.exports=s=function(i,l){if(!(this instanceof s))throw new TypeError("Constructor requires 'new'");n(this,{__list__:t("w",S(i)),__context__:t("w",l),__nextIndex__:t("w",0)}),l&&(z(l.on),l.on("_add",this._onAdd),l.on("_delete",this._onDelete),l.on("_clear",this._onClear))},delete s.prototype.constructor,n(s.prototype,g({_next:t(function(){var i;if(this.__list__){if(this.__redo__&&(i=this.__redo__.shift(),i!==void 0))return i;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:t(function(){return this._createResult(this._next())}),_createResult:t(function(i){return i===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(i)}}),_resolve:t(function(i){return this.__list__[i]}),_unBind:t(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:t(function(){
Line truncated
|
||||
`]),_&&(mt.frag=mt.frag.replace("smoothstep","smoothStep"),yt.frag=yt.frag.replace("smoothstep","smoothStep")),this.drawCircle=k(mt)}A.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},A.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},A.prototype.draw=function(){for(var k=this,w=arguments.length,R=new Array(w),O=0;O<w;O++)R[O]=arguments[O];var j=this.groups;if(R.length===1&&Array.isArray(R[0])&&(R[0][0]===null||Array.isArray(R[0][0]))&&(R=R[0]),this.regl._refresh(),R.length)for(var V=0;V<R.length;V++)this.drawItem(V,R[V]);else j.forEach(function(H,F){k.drawItem(F)});return this},A.prototype.drawItem=function(k,w){var R=this.groups,O=R[k];if(typeof w=="number"&&(k=w,O=R[w],w=null),!!(O&&O.count&&O.opacity)){O.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,O,w));for(var j=[],V=1;V<O.activation.length;V++)!O.activation[V]||O.activation[V]!==!0&&!O.activation[V].data.length||j.push.apply(j,z(this.getMarkerDrawOptions(V,O,w)));j.length&&this.drawMarker(j)}},A.prototype.getMarkerDrawOptions=function(k,w,R){var O=w.range,j=w.tree,V=w.viewport,H=w.activation,F=w.selectionBuffer,U=w.count;if(this.regl,!j)return R?[y({},w,{markerTexture:this.markerTextures[k],activation:H[k],count:R.length,elements:R,offset:0})]:[y({},w,{markerTexture:this.markerTextures[k],activation:H[k],offset:0})];var W=[],$=j.range(O,{lod:!0,px:[(O[2]-O[0])/V.width,(O[3]-O[1])/V.height]});if(R){for(var J=H[k],lt=J.data,yt=new Uint8Array(U),mt=0;mt<R.length;mt++){var st=R[mt];yt[st]=lt?lt[st]:1}F.subdata(yt)}for(var tt=$.length;tt--;){var pt=g($[tt],2),rt=pt[0],at=pt[1];W.push(y({},w,{markerTexture:this.markerTextures[k],activation:R?F:H[k],offset:rt,count:at-rt}))}return W},A.prototype.update=function(){for(var k=this,w=arguments.length,R=new Array(w),O=0;O<w;O++)R[O]=arguments[O];if(R.length){R.length===1&&Array.isArray(R[0])&&(R=R[0]);var j=this.groups,V=this.gl,H=this.regl,F=this.maxSize,U=this.maxColors,W=this.palette;this.groups=j=R.map(function($,J){var lt=j[J];if($===void 0)return lt;$===null?$={positions:null}:typeof $=="function"?$={ondraw:$}:typeof $[0]=="number"&&($={positions:$}),$=T($,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),$.positions===null&&($.positions=[]),$.tooManyColors!=null&&(k.tooManyColors=$.tooManyColors),lt||(j[J]=lt={id:J,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:H.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},$=y({},A.defaults,$)),$.positions&&!("marker"in $)&&($.marker=lt.marker,delete lt.marker),$.marker&&!("positions"in $)&&($.positions=lt.positions,delete lt.positions);var yt=0,mt=0;if(u(lt,$,[{snap:!0,size:function(de,me){return de==null&&(de=A.defaults.size),yt+=de&&de.length?1:0,de},borderSize:function(de,me){return de==null&&(de=A.defaults.borderSize),yt+=de&&de.length?1:0,de},opacity:parseFloat,color:function(de,me){return de==null&&(de=A.defaults.color),de=k.updateColor(de),mt++,de},borderColor:function(de,me){return de==null&&(de=A.defaults.borderColor),de=k.updateColor(de),mt++,de},bounds:function(de,me,ue){return"range"in ue||(ue.range=null),de},positions:function(de,me,ue){var Tt=me.snap,Pt=me.positionBuffer,Mt=me.positionFractBuffer,ee=me.selectionBuffer;if(de.x||de.y)return de.x.length?me.xAttr={buffer:H.buffer(de.x),offset:0,stride:4,count:de.x.length}:me.xAttr={buffer:de.x.buffer,offset:de.x.offset*4||0,stride:(de.x.stride||1)*4,count:de.x.count},de.y.length?me.yAttr={buffer:H.buffer(de.y),offset:0,stride:4,count:de.y.length}:me.yAttr={buffer:de.y.buffer,offset:de.y.offset*4||0,stride:(de.y.stride||1)*4,count:de.y.count},me.count=Math.max(me.xAttr.count,me.yAttr.count),de;de=b(de,"float64");var ye=me.count=Math.floor(de.length/2),le=me.bounds=ye?l(de,2):null;if(!ue.range&&!me.range&&(delete me.range,ue.range=le),!ue.marker&&!me.marker&&(delete me.marker,ue.marker=null),Tt&&(Tt===!0||ye>Tt)?me.tree=x(de,{bounds:le}):Tt&&Tt.length&&(me.tree=Tt),me.tree){
Line truncated
|
||||
`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),S)}}),QS=Rt((Q,Z)=>{var c=Ax(),g=xT(),z=pH(),S=gH(),t=function(e,r){return e.replace("%v",S(r))};Z.exports=function(e,r,a){if(!g(a))throw new TypeError(t(r,e));if(!c(e)){if("default"in a)return a.default;if(a.isOptional)return null}var n=z(a.errorMessage);throw c(n)||(n=r),new TypeError(t(n,e))}}),vH=Rt((Q,Z)=>{var c=QS(),g=Ax();Z.exports=function(z){return g(z)?z:c(z,"Cannot use %v",arguments[1])}}),yH=Rt((Q,Z)=>{var c=QS(),g=YS();Z.exports=function(z){return g(z)?z:c(z,"%v is not a plain function",arguments[1])}}),xH=Rt((Q,Z)=>{Z.exports=function(){var c=Array.from,g,z;return typeof c!="function"?!1:(g=["raz","dwa"],z=c(g),!!(z&&z!==g&&z[1]==="dwa"))}}),_H=Rt((Q,Z)=>{var c=Object.prototype.toString,g=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);Z.exports=function(z){return typeof z=="function"&&g(c.call(z))}}),bH=Rt((Q,Z)=>{Z.exports=function(){var c=Math.sign;return typeof c!="function"?!1:c(10)===1&&c(-20)===-1}}),wH=Rt((Q,Z)=>{Z.exports=function(c){return c=Number(c),isNaN(c)||c===0?c:c>0?1:-1}}),kH=Rt((Q,Z)=>{Z.exports=bH()()?Math.sign:wH()}),TH=Rt((Q,Z)=>{var c=kH(),g=Math.abs,z=Math.floor;Z.exports=function(S){return isNaN(S)?0:(S=Number(S),S===0||!isFinite(S)?S:c(S)*z(g(S)))}}),AH=Rt((Q,Z)=>{var c=TH(),g=Math.max;Z.exports=function(z){return g(0,c(z))}}),MH=Rt((Q,Z)=>{var c=J1().iterator,g=E3(),z=_H(),S=AH(),t=kb(),e=Ev(),r=X1(),a=L3(),n=Array.isArray,s=Function.prototype.call,i={configurable:!0,enumerable:!0,writable:!0,value:null},l=Object.defineProperty;Z.exports=function(f){var x=arguments[1],y=arguments[2],v,T,u,b,_,P,M,E,A,h;if(f=Object(e(f)),r(x)&&t(x),!this||this===Array||!z(this)){if(!x){if(g(f))return _=f.length,_!==1?Array.apply(null,f):(b=new Array(1),b[0]=f[0],b);if(n(f)){for(b=new Array(_=f.length),T=0;T<_;++T)b[T]=f[T];return b}}b=[]}else v=this;if(!n(f)){if((A=f[c])!==void 0){for(M=t(A).call(f),v&&(b=new v),E=M.next(),T=0;!E.done;)h=x?s.call(x,y,E.value,T):E.value,v?(i.value=h,l(b,T,i)):b[T]=h,E=M.next(),++T;_=T}else if(a(f)){for(_=f.length,v&&(b=new v),T=0,u=0;T<_;++T)h=f[T],T+1<_&&(P=h.charCodeAt(0),P>=55296&&P<=56319&&(h+=f[++T])),h=x?s.call(x,y,h,u):h,v?(i.value=h,l(b,u,i)):b[u]=h,++u;_=u}}if(_===void 0)for(_=S(f.length),v&&(b=new v(_)),T=0;T<_;++T)h=x?s.call(x,y,f[T],T):f[T],v?(i.value=h,l(b,T,i)):b[T]=h;return v&&(i.value=null,b.length=_),b}}),SH=Rt((Q,Z)=>{Z.exports=xH()()?Array.from:MH()}),CH=Rt((Q,Z)=>{var c=SH(),g=_T(),z=Ev();Z.exports=function(S){var t=Object(z(S)),e=arguments[1],r=Object(arguments[2]);if(t!==S&&!e)return t;var a={};return e?c(e,function(n){(r.ensure||n in S)&&(a[n]=S[n])}):g(a,S),a}}),EH=Rt((Q,Z)=>{var c=kb(),g=Ev(),z=Function.prototype.bind,S=Function.prototype.call,t=Object.keys,e=Object.prototype.propertyIsEnumerable;Z.exports=function(r,a){return function(n,s){var i,l=arguments[2],f=arguments[3];return n=Object(g(n)),c(s),i=t(n),f&&i.sort(typeof f=="function"?z.call(f,n):void 0),typeof r!="function"&&(r=i[r]),S.call(r,i,function(x,y){return e.call(n,x)?S.call(s,l,n[x],x,n,y):a})}}}),LH=Rt((Q,Z)=>{Z.exports=EH()("forEach")}),PH=Rt((Q,Z)=>{var c=kb(),g=LH(),z=Function.prototype.call;Z.exports=function(S,t){var e={},r=arguments[2];return c(t),g(S,function(a,n,s,i){e[n]=z.call(t,r,a,n,s,i)}),e}}),zH=Rt((Q,Z)=>{var c=Ax(),g=vH(),z=yH(),S=CH(),t=KS(),e=PH(),r=Function.prototype.bind,a=Object.defineProperty,n=Object.prototype.hasOwnProperty,s;s=function(i,l,f){var x=g(l)&&z(l.value),y;return y=S(l),delete y.writable,delete y.value,y.get=function(){return!f.overwriteDefinition&&n.call(this,i)?x:(l.value=r.call(x,f.resolveContext?f.resolveContext(this):this),a(this,i,l),this[i])},y},Z.exports=function(i){var l=t(arguments[1]);return c(l.resolveContext)&&z(l.resolveContext),e(i,function(f,x){return s(x,f,l)})}}),tC=Rt((Q,Z)=>{var c=dH(),g=_T(),z=kb(),S=Ev(),t=Lv(),e=zH(),r=J1(),a=Object.defineProperty,n=Object.defineProperties,s;Z.exports=s=function(i,l){if(!(this instanceof s))throw new TypeError("Constructor requires 'new'");n(this,{__list__:t("w",S(i)),__context__:t("w",l),__nextIndex__:t("w",0)}),l&&(z(l.on),l.on("_add",this._onAdd),l.on("_delete",this._onDelete),l.on("_clear",this._onClear))},delete s.prototype.constructor,n(s.prototype,g({_next:t(function(){var i;if(this.__list__){if(this.__redo__&&(i=this.__redo__.shift(),i!==void 0))return i;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:t(function(){return this._createResult(this._next())}),_createResult:t(function(i){return i===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(i)}}),_resolve:t(function(i){return this.__list__[i]}),_unBind:t(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:t(function(){
Line truncated
|
||||
precision highp float;
|
||||
|
||||
attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;
|
||||
@@ -2703,7 +2703,7 @@ void main() {
|
||||
gl_FragColor = fragColor;
|
||||
gl_FragColor.a *= alpha * opacity * dash;
|
||||
}
|
||||
`;Z.exports=b;function b(_,P){if(!(this instanceof b))return new b(_,P);if(typeof _=="function"?(P||(P={}),P.regl=_):P=_,P.length&&(P.positions=P),_=P.regl,!_.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=_._gl,this.regl=_,this.passes=[],this.shaders=b.shaders.has(_)?b.shaders.get(_):b.shaders.set(_,b.createShaders(_)).get(_),this.update(P)}b.dashMult=2,b.maxPatternLength=256,b.precisionThreshold=3e6,b.maxPoints=1e4,b.maxLines=2048,b.shaders=new s,b.createShaders=function(_){let P=_.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),M={primitive:"triangle strip",instances:_.prop("count"),count:4,offset:0,uniforms:{miterMode:(h,p)=>p.join==="round"?2:1,miterLimit:_.prop("miterLimit"),scale:_.prop("scale"),scaleFract:_.prop("scaleFract"),translateFract:_.prop("translateFract"),translate:_.prop("translate"),thickness:_.prop("thickness"),dashTexture:_.prop("dashTexture"),opacity:_.prop("opacity"),pixelRatio:_.context("pixelRatio"),id:_.prop("id"),dashLength:_.prop("dashLength"),viewport:(h,p)=>[p.viewport.x,p.viewport.y,h.viewportWidth,h.viewportHeight],depth:_.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(h,p)=>!p.overlay},stencil:{enable:!1},scissor:{enable:!0,box:_.prop("viewport")},viewport:_.prop("viewport")},E=_(z({vert:f,frag:x,attributes:{lineEnd:{buffer:P,divisor:0,stride:8,offset:0},lineTop:{buffer:P,divisor:0,stride:8,offset:4},aCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:_.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},M)),A;try{A=_(z({cull:{enable:!0,face:"back"},vert:T,frag:u,attributes:{lineEnd:{buffer:P,divisor:0,stride:8,offset:0},lineTop:{buffer:P,divisor:0,stride:8,offset:4},aColor:{buffer:_.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:_.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},M))}catch{A=E}return{fill:_({primitive:"triangle",elements:(h,p)=>p.triangles,offset:0,vert:y,frag:v,uniforms:{scale:_.prop("scale"),color:_.prop("fill"),scaleFract:_.prop("scaleFract"),translateFract:_.prop("translateFract"),translate:_.prop("translate"),opacity:_.prop("opacity"),pixelRatio:_.context("pixelRatio"),id:_.prop("id"),viewport:(h,p)=>[p.viewport.x,p.viewport.y,h.viewportWidth,h.viewportHeight]},attributes:{position:{buffer:_.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:8}},blend:M.blend,depth:{enable:!1},scissor:M.scissor,stencil:M.stencil,viewport:M.viewport}),rect:E,miter:A}},b.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},b.prototype.render=function(..._){_.length&&this.update(..._),this.draw()},b.prototype.draw=function(..._){return(_.length?_:this.passes).forEach((P,M)=>{if(P&&Array.isArray(P))return this.draw(...P);typeof P=="number"&&(P=this.passes[P]),P&&P.count>1&&P.opacity&&(this.regl._refresh(),P.fill&&P.triangles&&P.triangles.length>2&&this.shaders.fill(P),P.thickness&&(P.scale[0]*P.viewport.width>b.precisionThreshold||P.scale[1]*P.viewport.height>b.precisionThreshold?this.shaders.rect(P):P.join==="rect"||!P.join&&(P.thickness<=2||P.count>=b.maxPoints)?this.shaders.rect(P):this.shaders.miter(P)))}),this},b.prototype.update=function(_){if(!_)return;_.length!=null?typeof _[0]=="number"&&(_=[{positions:_}]):Array.isArray(_)||(_=[_]);let{regl:P,gl:M}=this;if(_.forEach((A,h)=>{let p=this.passes[h];if(A!==void 0){if(A===null){this.passes[h]=null;return}if(typeof A[0]=="number"&&(A={positions:A}),A=S(A,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),p||(this.passes[h]=p={id:h,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:P.tex
Line truncated
|
||||
`;Z.exports=b;function b(_,P){if(!(this instanceof b))return new b(_,P);if(typeof _=="function"?(P||(P={}),P.regl=_):P=_,P.length&&(P.positions=P),_=P.regl,!_.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=_._gl,this.regl=_,this.passes=[],this.shaders=b.shaders.has(_)?b.shaders.get(_):b.shaders.set(_,b.createShaders(_)).get(_),this.update(P)}b.dashMult=2,b.maxPatternLength=256,b.precisionThreshold=3e6,b.maxPoints=1e4,b.maxLines=2048,b.shaders=new s,b.createShaders=function(_){let P=_.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),M={primitive:"triangle strip",instances:_.prop("count"),count:4,offset:0,uniforms:{miterMode:(h,p)=>p.join==="round"?2:1,miterLimit:_.prop("miterLimit"),scale:_.prop("scale"),scaleFract:_.prop("scaleFract"),translateFract:_.prop("translateFract"),translate:_.prop("translate"),thickness:_.prop("thickness"),dashTexture:_.prop("dashTexture"),opacity:_.prop("opacity"),pixelRatio:_.context("pixelRatio"),id:_.prop("id"),dashLength:_.prop("dashLength"),viewport:(h,p)=>[p.viewport.x,p.viewport.y,h.viewportWidth,h.viewportHeight],depth:_.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(h,p)=>!p.overlay},stencil:{enable:!1},scissor:{enable:!0,box:_.prop("viewport")},viewport:_.prop("viewport")},E=_(z({vert:f,frag:x,attributes:{lineEnd:{buffer:P,divisor:0,stride:8,offset:0},lineTop:{buffer:P,divisor:0,stride:8,offset:4},aCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:_.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},M)),A;try{A=_(z({cull:{enable:!0,face:"back"},vert:T,frag:u,attributes:{lineEnd:{buffer:P,divisor:0,stride:8,offset:0},lineTop:{buffer:P,divisor:0,stride:8,offset:4},aColor:{buffer:_.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:_.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},M))}catch{A=E}return{fill:_({primitive:"triangle",elements:(h,p)=>p.triangles,offset:0,vert:y,frag:v,uniforms:{scale:_.prop("scale"),color:_.prop("fill"),scaleFract:_.prop("scaleFract"),translateFract:_.prop("translateFract"),translate:_.prop("translate"),opacity:_.prop("opacity"),pixelRatio:_.context("pixelRatio"),id:_.prop("id"),viewport:(h,p)=>[p.viewport.x,p.viewport.y,h.viewportWidth,h.viewportHeight]},attributes:{position:{buffer:_.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:8}},blend:M.blend,depth:{enable:!1},scissor:M.scissor,stencil:M.stencil,viewport:M.viewport}),rect:E,miter:A}},b.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},b.prototype.render=function(..._){_.length&&this.update(..._),this.draw()},b.prototype.draw=function(..._){return(_.length?_:this.passes).forEach((P,M)=>{if(P&&Array.isArray(P))return this.draw(...P);typeof P=="number"&&(P=this.passes[P]),P&&P.count>1&&P.opacity&&(this.regl._refresh(),P.fill&&P.triangles&&P.triangles.length>2&&this.shaders.fill(P),P.thickness&&(P.scale[0]*P.viewport.width>b.precisionThreshold||P.scale[1]*P.viewport.height>b.precisionThreshold?this.shaders.rect(P):P.join==="rect"||!P.join&&(P.thickness<=2||P.count>=b.maxPoints)?this.shaders.rect(P):this.shaders.miter(P)))}),this},b.prototype.update=function(_){if(!_)return;_.length!=null?typeof _[0]=="number"&&(_=[{positions:_}]):Array.isArray(_)||(_=[_]);let{regl:P,gl:M}=this;if(_.forEach((A,h)=>{let p=this.passes[h];if(A!==void 0){if(A===null){this.passes[h]=null;return}if(typeof A[0]=="number"&&(A={positions:A}),A=S(A,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),p||(this.passes[h]=p={id:h,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:P.tex
Line truncated
|
||||
precision highp float;
|
||||
|
||||
attribute vec2 position, positionFract;
|
||||
@@ -2747,10 +2747,10 @@ void main() {
|
||||
gl_FragColor = fragColor;
|
||||
gl_FragColor.a *= opacity;
|
||||
}
|
||||
`,uniforms:{range:i.prop("range"),lineWidth:i.prop("lineWidth"),capSize:i.prop("capSize"),opacity:i.prop("opacity"),scale:i.prop("scale"),translate:i.prop("translate"),scaleFract:i.prop("scaleFract"),translateFract:i.prop("translateFract"),viewport:(k,w)=>[w.viewport.x,w.viewport.y,k.viewportWidth,k.viewportHeight]},attributes:{color:{buffer:T,offset:(k,w)=>w.offset*4,divisor:1},position:{buffer:y,offset:(k,w)=>w.offset*8,divisor:1},positionFract:{buffer:v,offset:(k,w)=>w.offset*8,divisor:1},error:{buffer:u,offset:(k,w)=>w.offset*16,divisor:1},direction:{buffer:b,stride:24,offset:0},lineOffset:{buffer:b,stride:24,offset:8},capOffset:{buffer:b,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:i.prop("viewport")},viewport:i.prop("viewport"),stencil:!1,instances:i.prop("count"),count:n.length}),t(M,{update:h,draw:E,destroy:p,regl:i,gl:f,canvas:f.canvas,groups:P}),M;function M(k){k?h(k):k===null&&p(),E()}function E(k){if(typeof k=="number")return A(k);k&&!Array.isArray(k)&&(k=[k]),i._refresh(),P.forEach((w,R)=>{if(w){if(k&&(k[R]?w.draw=!0:w.draw=!1),!w.draw){w.draw=!0;return}A(R)}})}function A(k){typeof k=="number"&&(k=P[k]),k!=null&&k&&k.count&&k.color&&k.opacity&&k.positions&&k.positions.length>1&&(k.scaleRatio=[k.scale[0]*k.viewport.width,k.scale[1]*k.viewport.height],x(k),k.after&&k.after(k))}function h(k){if(!k)return;k.length!=null?typeof k[0]=="number"&&(k=[{positions:k}]):Array.isArray(k)||(k=[k]);let w=0,R=0;if(M.groups=P=k.map((V,H)=>{let F=P[H];if(V)typeof V=="function"?V={after:V}:typeof V[0]=="number"&&(V={positions:V});else return F;return V=S(V,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),F||(P[H]=F={id:H,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},V=t({},_,V)),z(F,V,[{lineWidth:U=>+U*.5,capSize:U=>+U*.5,opacity:parseFloat,errors:U=>(U=e(U),R+=U.length,U),positions:(U,W)=>(U=e(U,"float64"),W.count=Math.floor(U.length/2),W.bounds=c(U,2),W.offset=w,w+=W.count,U)},{color:(U,W)=>{let $=W.count;if(U||(U="transparent"),!Array.isArray(U)||typeof U[0]=="number"){let lt=U;U=Array($);for(let yt=0;yt<$;yt++)U[yt]=lt}if(U.length<$)throw Error("Not enough colors");let J=new Uint8Array($*4);for(let lt=0;lt<$;lt++){let yt=g(U[lt],"uint8");J.set(yt,lt*4)}return J},range:(U,W,$)=>{let J=W.bounds;return U||(U=J),W.scale=[1/(U[2]-U[0]),1/(U[3]-U[1])],W.translate=[-U[0],-U[1]],W.scaleFract=a(W.scale),W.translateFract=a(W.translate),U},viewport:U=>{let W;return Array.isArray(U)?W={x:U[0],y:U[1],width:U[2]-U[0],height:U[3]-U[1]}:U?(W={x:U.x||U.left||0,y:U.y||U.top||0},U.right?W.width=U.right-W.x:W.width=U.w||U.width||0,U.bottom?W.height=U.bottom-W.y:W.height=U.h||U.height||0):W={x:0,y:0,width:f.drawingBufferWidth,height:f.drawingBufferHeight},W}}]),F}),w||R){let V=P.reduce((W,$,J)=>W+($?$.count:0),0),H=new Float64Array(V*2),F=new Uint8Array(V*4),U=new Float32Array(V*4);P.forEach((W,$)=>{if(!W)return;let{positions:J,count:lt,offset:yt,color:mt,errors:st}=W;lt&&(F.set(mt,yt*4),U.set(st,yt*4),H.set(J,yt*2))});var O=r(H);y(O);var j=a(H,O);v(j),T(F),u(U)}}function p(){y.destroy(),v.destroy(),T.destroy(),u.destroy(),b.destroy()}}}),VH=zt((Q,Z)=>{var c=/[\'\"]/;Z.exports=function(g){return g?(c.test(g.charAt(0))&&(g=g.substr(1)),c.test(g.charAt(g.length-1))&&(g=g.substr(0,g.length-1)),g):""}}),iC=zt((Q,Z)=>{Z.exports=["inherit","initial","unset"]}),aC=zt((Q,Z)=>{Z.exports=["caption","icon","menu","message-box","small-caption","status-bar"]}),oC=zt((Q,Z)=>{Z.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]}),sC=zt((Q,Z)=>{Z.exports=["normal","italic","oblique"]}),lC=zt((Q,Z)=>{Z.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]}),HH=zt((Q,Z)=>{function c(S,t){if(typeof S!="string")return[S];var e=[S];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var r=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],a=t.escape||"___",n=!!t.flat;r.forEach(function(l){var f=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),x=[];function y(v,T,u){var b=e.push(v.slice(l[0].length,-l[1].length))-1;return x.push(b),a+b+a}e.forEach(function(v,T){for(var u,b=0;v!=u;)if(u=v,v=v.replace(f,y),b++>1e4)throw Error("References have circular dependency. Please, check them.");e[T]=v}),x=x.reverse(),e=e.map(function(v){return x.forEach(function(T){v=v.replace(new RegExp("(\\"+a+T+"\\"+a+")","g"),l[0]+"$1"+l[1])}),v})});var s=new RegExp("\\"+a+"([0-9]+)\\"+a);function i(l,f,x){for(var y=[],v,T=0;v=s.exec(l);){if(T++>
Line truncated
|
||||
`,uniforms:{range:i.prop("range"),lineWidth:i.prop("lineWidth"),capSize:i.prop("capSize"),opacity:i.prop("opacity"),scale:i.prop("scale"),translate:i.prop("translate"),scaleFract:i.prop("scaleFract"),translateFract:i.prop("translateFract"),viewport:(k,w)=>[w.viewport.x,w.viewport.y,k.viewportWidth,k.viewportHeight]},attributes:{color:{buffer:T,offset:(k,w)=>w.offset*4,divisor:1},position:{buffer:y,offset:(k,w)=>w.offset*8,divisor:1},positionFract:{buffer:v,offset:(k,w)=>w.offset*8,divisor:1},error:{buffer:u,offset:(k,w)=>w.offset*16,divisor:1},direction:{buffer:b,stride:24,offset:0},lineOffset:{buffer:b,stride:24,offset:8},capOffset:{buffer:b,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:i.prop("viewport")},viewport:i.prop("viewport"),stencil:!1,instances:i.prop("count"),count:n.length}),t(M,{update:h,draw:E,destroy:p,regl:i,gl:f,canvas:f.canvas,groups:P}),M;function M(k){k?h(k):k===null&&p(),E()}function E(k){if(typeof k=="number")return A(k);k&&!Array.isArray(k)&&(k=[k]),i._refresh(),P.forEach((w,R)=>{if(w){if(k&&(k[R]?w.draw=!0:w.draw=!1),!w.draw){w.draw=!0;return}A(R)}})}function A(k){typeof k=="number"&&(k=P[k]),k!=null&&k&&k.count&&k.color&&k.opacity&&k.positions&&k.positions.length>1&&(k.scaleRatio=[k.scale[0]*k.viewport.width,k.scale[1]*k.viewport.height],x(k),k.after&&k.after(k))}function h(k){if(!k)return;k.length!=null?typeof k[0]=="number"&&(k=[{positions:k}]):Array.isArray(k)||(k=[k]);let w=0,R=0;if(M.groups=P=k.map((V,H)=>{let F=P[H];if(V)typeof V=="function"?V={after:V}:typeof V[0]=="number"&&(V={positions:V});else return F;return V=S(V,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),F||(P[H]=F={id:H,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},V=t({},_,V)),z(F,V,[{lineWidth:U=>+U*.5,capSize:U=>+U*.5,opacity:parseFloat,errors:U=>(U=e(U),R+=U.length,U),positions:(U,W)=>(U=e(U,"float64"),W.count=Math.floor(U.length/2),W.bounds=c(U,2),W.offset=w,w+=W.count,U)},{color:(U,W)=>{let $=W.count;if(U||(U="transparent"),!Array.isArray(U)||typeof U[0]=="number"){let lt=U;U=Array($);for(let yt=0;yt<$;yt++)U[yt]=lt}if(U.length<$)throw Error("Not enough colors");let J=new Uint8Array($*4);for(let lt=0;lt<$;lt++){let yt=g(U[lt],"uint8");J.set(yt,lt*4)}return J},range:(U,W,$)=>{let J=W.bounds;return U||(U=J),W.scale=[1/(U[2]-U[0]),1/(U[3]-U[1])],W.translate=[-U[0],-U[1]],W.scaleFract=a(W.scale),W.translateFract=a(W.translate),U},viewport:U=>{let W;return Array.isArray(U)?W={x:U[0],y:U[1],width:U[2]-U[0],height:U[3]-U[1]}:U?(W={x:U.x||U.left||0,y:U.y||U.top||0},U.right?W.width=U.right-W.x:W.width=U.w||U.width||0,U.bottom?W.height=U.bottom-W.y:W.height=U.h||U.height||0):W={x:0,y:0,width:f.drawingBufferWidth,height:f.drawingBufferHeight},W}}]),F}),w||R){let V=P.reduce((W,$,J)=>W+($?$.count:0),0),H=new Float64Array(V*2),F=new Uint8Array(V*4),U=new Float32Array(V*4);P.forEach((W,$)=>{if(!W)return;let{positions:J,count:lt,offset:yt,color:mt,errors:st}=W;lt&&(F.set(mt,yt*4),U.set(st,yt*4),H.set(J,yt*2))});var O=r(H);y(O);var j=a(H,O);v(j),T(F),u(U)}}function p(){y.destroy(),v.destroy(),T.destroy(),u.destroy(),b.destroy()}}}),VH=Rt((Q,Z)=>{var c=/[\'\"]/;Z.exports=function(g){return g?(c.test(g.charAt(0))&&(g=g.substr(1)),c.test(g.charAt(g.length-1))&&(g=g.substr(0,g.length-1)),g):""}}),iC=Rt((Q,Z)=>{Z.exports=["inherit","initial","unset"]}),aC=Rt((Q,Z)=>{Z.exports=["caption","icon","menu","message-box","small-caption","status-bar"]}),oC=Rt((Q,Z)=>{Z.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]}),sC=Rt((Q,Z)=>{Z.exports=["normal","italic","oblique"]}),lC=Rt((Q,Z)=>{Z.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]}),HH=Rt((Q,Z)=>{function c(S,t){if(typeof S!="string")return[S];var e=[S];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var r=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],a=t.escape||"___",n=!!t.flat;r.forEach(function(l){var f=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),x=[];function y(v,T,u){var b=e.push(v.slice(l[0].length,-l[1].length))-1;return x.push(b),a+b+a}e.forEach(function(v,T){for(var u,b=0;v!=u;)if(u=v,v=v.replace(f,y),b++>1e4)throw Error("References have circular dependency. Please, check them.");e[T]=v}),x=x.reverse(),e=e.map(function(v){return x.forEach(function(T){v=v.replace(new RegExp("(\\"+a+T+"\\"+a+")","g"),l[0]+"$1"+l[1])}),v})});var s=new RegExp("\\"+a+"([0-9]+)\\"+a);function i(l,f,x){for(var y=[],v,T=0;v=s.exec(l);){if(T++>
Line truncated
|
||||
`).replace(/}/g,`}
|
||||
`).replace(/{/g,`{
|
||||
`),Zn;if(Ar&&(Zn=xc(pn),Ar[Zn]))return Ar[Zn].apply(null,xi);var Hi=Function.apply(null,Vn.concat(pn));return Ar&&(Ar[Zn]=Hi),Hi.apply(null,xi)}return{global:ba,link:_n,block:gi,proc:Va,scope:ea,cond:Yi,compile:aa}}var Ja="xyzw".split(""),da=5121,Da=1,Ma=2,ia=0,co=1,os=2,Jo=3,us=4,ms=5,fo=6,Ka="dither",gs="blend.enable",el="blend.color",Dl="blend.equation",uu="blend.func",Gl="depth.enable",cu="depth.func",vl="depth.range",Gu="depth.mask",Du="colorMask",pu="cull.enable",Ro="cull.face",Ss="frontFace",Jl="lineWidth",jl="polygonOffset.enable",_c="polygonOffset.offset",qc="sample.alpha",Oc="sample.enable",Dh="sample.coverage",Zc="stencil.enable",Fh="stencil.mask",Nu="stencil.func",Rh="stencil.opFront",as="stencil.opBack",zs="scissor.enable",Gc="scissor.box",Yu="viewport",Gf="profile",Zt="framebuffer",I="vert",ht="frag",Et="elements",Dt="primitive",Wt="count",Ae="offset",Fe="instances",Ke="vao",yr="Width",Fr="Height",Rr=Zt+yr,fn=Zt+Fr,zn=Yu+yr,Jt=Yu+Fr,se="drawingBuffer",_e=se+yr,Se=se+Fr,je=[uu,Dl,Nu,Rh,as,Dh,Yu,Gc,_c],De=34962,qe=34963,kr=2884,Dr=3042,jr=3024,rn=2960,xn=2929,Bn=3089,qn=32823,mi=32926,$i=32928,va=5126,ga=35664,Sa=35665,po=35666,Vo=5124,Lo=35667,ds=35668,dl=35669,yl=35670,Os=35671,Tl=35672,Pu=35673,yu=35674,qs=35675,Zs=35676,Ju=35678,gc=35680,Yc=4,At=1028,Vt=1029,he=2304,Ce=2305,ze=32775,Ne=32776,sr=519,ar=7680,Er=0,an=1,Qr=32774,bn=513,Nn=36160,Un=36064,Zi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Xn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ci={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Di={cw:he,ccw:Ce};function Vi(be){return Array.isArray(be)||Jr(be)||sn(be)}function Xi(be){return be.sort(function(Ar,Ir){return Ar===Yu?-1:Ir===Yu?1:Ar<Ir?-1:1})}function si(be,Ar,Ir,Vn){this.thisDep=be,this.contextDep=Ar,this.propDep=Ir,this.append=Vn}function Wa(be){return be&&!(be.thisDep||be.contextDep||be.propDep)}function Ga(be){return new si(!1,!1,!1,be)}function ho(be,Ar){var Ir=be.type;if(Ir===ia){var Vn=be.data.length;return new si(!0,Vn>=1,Vn>=2,Ar)}else if(Ir===us){var xi=be.data;return new si(xi.thisDep,xi.contextDep,xi.propDep,Ar)}else{if(Ir===ms)return new si(!1,!1,!1,Ar);if(Ir===fo){for(var fi=!1,_n=!1,gi=!1,ea=0;ea<be.data.length;++ea){var Yi=be.data[ea];if(Yi.type===co)gi=!0;else if(Yi.type===os)_n=!0;else if(Yi.type===Jo)fi=!0;else if(Yi.type===ia){fi=!0;var ba=Yi.data;ba>=1&&(_n=!0),ba>=2&&(gi=!0)}else Yi.type===us&&(fi=fi||Yi.data.thisDep,_n=_n||Yi.data.contextDep,gi=gi||Yi.data.propDep)}return new si(fi,_n,gi,Ar)}else return new si(Ir===Jo,Ir===os,Ir===co,Ar)}}var Do=new si(!1,!1,!1,function(){});function Uo(be,Ar,Ir,Vn,xi,fi,_n,gi,ea,Yi,ba,Xa,Va,aa,Ii,pn){var Zn=Yi.Record,Hi={add:32774,subtract:32778,"reverse subtract":32779};Ir.ext_blend_minmax&&(Hi.min=ze,Hi.max=Ne);var zi=Ir.angle_instanced_arrays,di=Ir.webgl_draw_buffers,La=Ir.oes_vertex_array_object,ma={dirty:!0,profile:pn.profile},$a={},Ei=[],pi={},Pa={};function ya(Kt){return Kt.replace(".","_")}function Ji(Kt,fe,Ee){var ir=ya(Kt);Ei.push(Kt),$a[ir]=ma[ir]=!!Ee,pi[ir]=fe}function ta(Kt,fe,Ee){var ir=ya(Kt);Ei.push(Kt),Array.isArray(Ee)?(ma[ir]=Ee.slice(),$a[ir]=Ee.slice()):ma[ir]=$a[ir]=Ee,Pa[ir]=fe}function Ta(Kt){return!!isNaN(Kt)}Ji(Ka,jr),Ji(gs,Dr),ta(el,"blendColor",[0,0,0,0]),ta(Dl,"blendEquationSeparate",[Qr,Qr]),ta(uu,"blendFuncSeparate",[an,Er,an,Er]),Ji(Gl,xn,!0),ta(cu,"depthFunc",bn),ta(vl,"depthRange",[0,1]),ta(Gu,"depthMask",!0),ta(Du,Du,[!0,!0,!0,!0]),Ji(pu,kr),ta(Ro,"cullFace",Vt),ta(Ss,Ss,Ce),ta(Jl,Jl,1),Ji(jl,qn),ta(_c,"polygonOffset",[0,0]),Ji(qc,mi),Ji(Oc,$i),ta(Dh,"sampleCoverage",[1,!1]),Ji(Zc,rn),ta(Fh,"stencilMask",-1),ta(Nu,"stencilFunc",[sr,0,-1]),ta(Rh,"stencilOpSeparate",[At,ar,ar,ar]),ta(as,"stencilOpSeparate",[Vt,ar,ar,ar]),Ji(zs,Bn),ta(Gc,"scissor",[0,0,be.drawingBufferWidth,be.drawingBufferHeight]),ta(Yu,Yu,[0,0,be.drawingBufferWidth,be.drawingBufferHeight]);var Fo={gl:be,context:Va,strings:Ar,next:$a,current:ma,draw:Xa,elements:fi,buffer:xi,shader:ba,attributes:Yi.state,vao:Yi,uniforms:ea,framebuffer:gi,extensions:Ir,timer:aa,isBufferArgs:Vi},So={primTypes:bi,compareFuncs:Xn,blendFuncs:Zi,blendEquations:Hi,stencilOps:Ci,glTypes:Jn,orientationType:Di};di&&(So.backBuffer=[Vt],So.drawBuffer=h(Vn.maxDrawbuffers,function(Kt){return Kt===0?[0]:h(Kt,function(fe){return Un+fe})}));var ka=0;function Ba(){var Kt=ja({cache:Ii}),fe=Kt.link,Ee=Kt.global;Kt.id=ka++,Kt.batchId="0";var ir=fe(Fo),Ye=Kt.shared={props:"a0"};Object.keys(Fo).forEach(function(Je){Ye[Je]=Ee.def(ir,".",Je)});var er=Kt.next={},lr=Kt.current={};Object.keys(P
Line truncated
|
||||
`),Gn;if(Ar&&(Gn=xc(mn),Ar[Gn]))return Ar[Gn].apply(null,bi);var Hi=Function.apply(null,Vn.concat(mn));return Ar&&(Ar[Gn]=Hi),Hi.apply(null,bi)}return{global:wa,link:bn,block:yi,proc:Ha,scope:na,cond:Yi,compile:sa}}var Ja="xyzw".split(""),ma=5121,Ra=1,Sa=2,oa=0,uo=1,os=2,Jo=3,us=4,ms=5,fo=6,Ya="dither",gs="blend.enable",rl="blend.color",Dl="blend.equation",uu="blend.func",Gl="depth.enable",cu="depth.func",yl="depth.range",Gu="depth.mask",Fu="colorMask",pu="cull.enable",Ro="cull.face",Cs="frontFace",Jl="lineWidth",jl="polygonOffset.enable",_c="polygonOffset.offset",qc="sample.alpha",Oc="sample.enable",Dh="sample.coverage",Zc="stencil.enable",Fh="stencil.mask",Nu="stencil.func",Rh="stencil.opFront",as="stencil.opBack",Is="scissor.enable",Gc="scissor.box",Yu="viewport",Gf="profile",Zt="framebuffer",I="vert",ht="frag",Et="elements",Ot="primitive",Wt="count",Ae="offset",Fe="instances",Ke="vao",yr="Width",Fr="Height",Rr=Zt+yr,hn=Zt+Fr,In=Yu+yr,Jt=Yu+Fr,se="drawingBuffer",_e=se+yr,Se=se+Fr,je=[uu,Dl,Nu,Rh,as,Dh,Yu,Gc,_c],De=34962,qe=34963,kr=2884,Dr=3042,jr=3024,nn=2960,_n=2929,Nn=3089,Zn=32823,vi=32926,$i=32928,ya=5126,va=35664,Ca=35665,po=35666,Vo=5124,Lo=35667,ds=35668,dl=35669,xl=35670,Fs=35671,Tl=35672,Pu=35673,yu=35674,Zs=35675,Gs=35676,Ju=35678,gc=35680,Yc=4,At=1028,Vt=1029,he=2304,Ce=2305,ze=32775,Ne=32776,sr=519,ar=7680,Er=0,an=1,tn=32774,wn=513,jn=36160,Un=36064,Zi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Xn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ei={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Fi={cw:he,ccw:Ce};function Vi(be){return Array.isArray(be)||Qr(be)||on(be)}function Xi(be){return be.sort(function(Ar,Ir){return Ar===Yu?-1:Ir===Yu?1:Ar<Ir?-1:1})}function ui(be,Ar,Ir,Vn){this.thisDep=be,this.contextDep=Ar,this.propDep=Ir,this.append=Vn}function $a(be){return be&&!(be.thisDep||be.contextDep||be.propDep)}function Za(be){return new ui(!1,!1,!1,be)}function co(be,Ar){var Ir=be.type;if(Ir===oa){var Vn=be.data.length;return new ui(!0,Vn>=1,Vn>=2,Ar)}else if(Ir===us){var bi=be.data;return new ui(bi.thisDep,bi.contextDep,bi.propDep,Ar)}else{if(Ir===ms)return new ui(!1,!1,!1,Ar);if(Ir===fo){for(var di=!1,bn=!1,yi=!1,na=0;na<be.data.length;++na){var Yi=be.data[na];if(Yi.type===uo)yi=!0;else if(Yi.type===os)bn=!0;else if(Yi.type===Jo)di=!0;else if(Yi.type===oa){di=!0;var wa=Yi.data;wa>=1&&(bn=!0),wa>=2&&(yi=!0)}else Yi.type===us&&(di=di||Yi.data.thisDep,bn=bn||Yi.data.contextDep,yi=yi||Yi.data.propDep)}return new ui(di,bn,yi,Ar)}else return new ui(Ir===Jo,Ir===os,Ir===uo,Ar)}}var Oo=new ui(!1,!1,!1,function(){});function Uo(be,Ar,Ir,Vn,bi,di,bn,yi,na,Yi,wa,Ka,Ha,sa,Oi,mn){var Gn=Yi.Record,Hi={add:32774,subtract:32778,"reverse subtract":32779};Ir.ext_blend_minmax&&(Hi.min=ze,Hi.max=Ne);var Ii=Ir.angle_instanced_arrays,mi=Ir.webgl_draw_buffers,Pa=Ir.oes_vertex_array_object,ga={dirty:!0,profile:mn.profile},qa={},Li=[],gi={},Ia={};function xa(Kt){return Kt.replace(".","_")}function Ji(Kt,fe,Ee){var ir=xa(Kt);Li.push(Kt),qa[ir]=ga[ir]=!!Ee,gi[ir]=fe}function ta(Kt,fe,Ee){var ir=xa(Kt);Li.push(Kt),Array.isArray(Ee)?(ga[ir]=Ee.slice(),qa[ir]=Ee.slice()):ga[ir]=qa[ir]=Ee,Ia[ir]=fe}function Aa(Kt){return!!isNaN(Kt)}Ji(Ya,jr),Ji(gs,Dr),ta(rl,"blendColor",[0,0,0,0]),ta(Dl,"blendEquationSeparate",[tn,tn]),ta(uu,"blendFuncSeparate",[an,Er,an,Er]),Ji(Gl,_n,!0),ta(cu,"depthFunc",wn),ta(yl,"depthRange",[0,1]),ta(Gu,"depthMask",!0),ta(Fu,Fu,[!0,!0,!0,!0]),Ji(pu,kr),ta(Ro,"cullFace",Vt),ta(Cs,Cs,Ce),ta(Jl,Jl,1),Ji(jl,Zn),ta(_c,"polygonOffset",[0,0]),Ji(qc,vi),Ji(Oc,$i),ta(Dh,"sampleCoverage",[1,!1]),Ji(Zc,nn),ta(Fh,"stencilMask",-1),ta(Nu,"stencilFunc",[sr,0,-1]),ta(Rh,"stencilOpSeparate",[At,ar,ar,ar]),ta(as,"stencilOpSeparate",[Vt,ar,ar,ar]),Ji(Is,Nn),ta(Gc,"scissor",[0,0,be.drawingBufferWidth,be.drawingBufferHeight]),ta(Yu,Yu,[0,0,be.drawingBufferWidth,be.drawingBufferHeight]);var Fo={gl:be,context:Ha,strings:Ar,next:qa,current:ga,draw:Ka,elements:di,buffer:bi,shader:wa,attributes:Yi.state,vao:Yi,uniforms:na,framebuffer:yi,extensions:Ir,timer:sa,isBufferArgs:Vi},So={primTypes:ki,compareFuncs:Xn,blendFuncs:Zi,blendEquations:Hi,stencilOps:Ei,glTypes:Jn,orientationType:Fi};mi&&(So.backBuffer=[Vt],So.drawBuffer=h(Vn.maxDrawbuffers,function(Kt){return Kt===0?[0]:h(Kt,function(fe){return Un+fe})}));var Ta=0;function ja(){var Kt=Va({cache:Oi}),fe=Kt.link,Ee=Kt.global;Kt.id=Ta++,Kt.batchId="0";var ir=fe(Fo),Ye=Kt.shared={props:"a0"};Object.keys(Fo).forEach(function(Je){Ye[Je]=Ee.def(ir,".",Je)});var er=Kt.next={},lr=Kt.current={};Object.keys(I
Line truncated
|
||||
precision highp float;
|
||||
attribute float width, charOffset, char;
|
||||
attribute vec2 position;
|
||||
@@ -2824,17 +2824,17 @@ void main() {
|
||||
// color.rgb += (1. - color.rgb) * (1. - mask.rgb);
|
||||
|
||||
gl_FragColor = color;
|
||||
}`}),p={};return{regl:A,draw:h,atlas:p}},M.prototype.update=function(A){var h=this;if(typeof A=="string")A={text:A};else if(!A)return;A=g(A,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),A.opacity!=null&&(Array.isArray(A.opacity)?this.opacity=A.opacity.map(function(Pt){return parseFloat(Pt)}):this.opacity=parseFloat(A.opacity)),A.viewport!=null&&(this.viewport=n(A.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),A.kerning!=null&&(this.kerning=A.kerning),A.offset!=null&&(typeof A.offset=="number"&&(A.offset=[A.offset,0]),this.positionOffset=v(A.offset)),A.direction&&(this.direction=A.direction),A.range&&(this.range=A.range,this.scale=[1/(A.range[2]-A.range[0]),1/(A.range[3]-A.range[1])],this.translate=[-A.range[0],-A.range[1]]),A.scale&&(this.scale=A.scale),A.translate&&(this.translate=A.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!A.font&&(A.font=M.baseFontSize+"px sans-serif");var p=!1,k=!1;if(A.font&&(Array.isArray(A.font)?A.font:[A.font]).forEach(function(Pt,Mt){if(typeof Pt=="string")try{Pt=c.parse(Pt)}catch{Pt=c.parse(M.baseFontSize+"px "+Pt)}else{var ee=Pt.style,ye=Pt.weight,le=Pt.stretch,Me=Pt.variant;Pt=c.parse(c.stringify(Pt)),ee&&(Pt.style=ee),ye&&(Pt.weight=ye),le&&(Pt.stretch=le),Me&&(Pt.variant=Me)}var He=c.stringify({size:M.baseFontSize,family:Pt.family,stretch:_?Pt.stretch:void 0,variant:Pt.variant,weight:Pt.weight,style:Pt.style}),Ge=i(Pt.size),cr=Math.round(Ge[0]*l(Ge[1]));if(cr!==h.fontSize[Mt]&&(k=!0,h.fontSize[Mt]=cr),(!h.font[Mt]||He!=h.font[Mt].baseString)&&(p=!0,h.font[Mt]=M.fonts[He],!h.font[Mt])){var ur=Pt.family.join(", "),Ur=[Pt.style];Pt.style!=Pt.variant&&Ur.push(Pt.variant),Pt.variant!=Pt.weight&&Ur.push(Pt.weight),_&&Pt.weight!=Pt.stretch&&Ur.push(Pt.stretch),h.font[Mt]={baseString:He,family:ur,weight:Pt.weight,stretch:Pt.stretch,style:Pt.style,variant:Pt.variant,width:{},kerning:{},metrics:y(ur,{origin:"top",fontSize:M.baseFontSize,fontStyle:Ur.join(" ")})},M.fonts[He]=h.font[Mt]}}),(p||k)&&this.font.forEach(function(Pt,Mt){var ee=c.stringify({size:h.fontSize[Mt],family:Pt.family,stretch:_?Pt.stretch:void 0,variant:Pt.variant,weight:Pt.weight,style:Pt.style});if(h.fontAtlas[Mt]=h.shader.atlas[ee],!h.fontAtlas[Mt]){var ye=Pt.metrics;h.shader.atlas[ee]=h.fontAtlas[Mt]={fontString:ee,step:Math.ceil(h.fontSize[Mt]*ye.bottom*.5)*2,em:h.fontSize[Mt],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:h.regl.texture()}}A.text==null&&(A.text=h.text)}),typeof A.text=="string"&&A.position&&A.position.length>2){for(var w=Array(A.position.length*.5),R=0;R<w.length;R++)w[R]=A.text;A.text=w}var O;if(A.text!=null||p){if(this.textOffsets=[0],Array.isArray(A.text)){this.count=A.text[0].length,this.counts=[this.count];for(var j=1;j<A.text.length;j++)this.textOffsets[j]=this.textOffsets[j-1]+A.text[j-1].length,this.count+=A.text[j].length,this.counts.push(A.text[j].length);this.text=A.text.join("")}else this.text=A.text,this.count=this.text.length,this.counts=[this.count];O=[],this.font.forEach(function(Pt,Mt){M.atlasContext.font=Pt.baseString;for(var ee=h.fontAtlas[Mt],ye=0;ye<h.text.length;ye++){var le=h.text.charAt(ye);if(ee.ids[le]==null&&(ee.ids[le]=ee.chars.length,ee.chars.push(le),O.push(le)),Pt.width[le]==null&&(Pt.width[le]=M.atlasContext.measureText(le).width/M.baseFontSize,h.kerning)){var Me=[];for(var He in Pt.width)Me.push(He+le,le+He);x(Pt.kerning,f(Pt.family,{pairs:Me}))}}})}if(A.position)if(A.position.length>2){for(var V=!A.position[0].length,H=a.mallocFloat(this.count*2),F=0,U=0;F<this.counts.length;F++){var W=this.counts[F];if(V)for(var $=0;$<W;$++)H[U++]=A.position[F*2],H[U++]=A.position[F*2+1];else for(var J=0;J<W;J++)H[U++]=A.position[F][0],H[U++]=A.position[F][1]}this.position.call?this.position({type:"float",data:H}):this.position=this.regl.buffer({type:"float",data:H}),a.freeFloat(H)}else this.position.destroy&&this.position.destroy(),this.position={constant:A.position};if(A.text||p){var lt=a.mallocUint8(this.count),yt=a.mallocFloat(this.count*2);this.textWidth=[];for(var mt=0,st=0;mt<this.counts.length;mt++){for
Line truncated
|
||||
}`}),p={};return{regl:A,draw:h,atlas:p}},M.prototype.update=function(A){var h=this;if(typeof A=="string")A={text:A};else if(!A)return;A=g(A,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),A.opacity!=null&&(Array.isArray(A.opacity)?this.opacity=A.opacity.map(function(Pt){return parseFloat(Pt)}):this.opacity=parseFloat(A.opacity)),A.viewport!=null&&(this.viewport=n(A.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),A.kerning!=null&&(this.kerning=A.kerning),A.offset!=null&&(typeof A.offset=="number"&&(A.offset=[A.offset,0]),this.positionOffset=v(A.offset)),A.direction&&(this.direction=A.direction),A.range&&(this.range=A.range,this.scale=[1/(A.range[2]-A.range[0]),1/(A.range[3]-A.range[1])],this.translate=[-A.range[0],-A.range[1]]),A.scale&&(this.scale=A.scale),A.translate&&(this.translate=A.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!A.font&&(A.font=M.baseFontSize+"px sans-serif");var p=!1,k=!1;if(A.font&&(Array.isArray(A.font)?A.font:[A.font]).forEach(function(Pt,Mt){if(typeof Pt=="string")try{Pt=c.parse(Pt)}catch{Pt=c.parse(M.baseFontSize+"px "+Pt)}else{var ee=Pt.style,ye=Pt.weight,le=Pt.stretch,Me=Pt.variant;Pt=c.parse(c.stringify(Pt)),ee&&(Pt.style=ee),ye&&(Pt.weight=ye),le&&(Pt.stretch=le),Me&&(Pt.variant=Me)}var He=c.stringify({size:M.baseFontSize,family:Pt.family,stretch:_?Pt.stretch:void 0,variant:Pt.variant,weight:Pt.weight,style:Pt.style}),Ge=i(Pt.size),cr=Math.round(Ge[0]*l(Ge[1]));if(cr!==h.fontSize[Mt]&&(k=!0,h.fontSize[Mt]=cr),(!h.font[Mt]||He!=h.font[Mt].baseString)&&(p=!0,h.font[Mt]=M.fonts[He],!h.font[Mt])){var ur=Pt.family.join(", "),Ur=[Pt.style];Pt.style!=Pt.variant&&Ur.push(Pt.variant),Pt.variant!=Pt.weight&&Ur.push(Pt.weight),_&&Pt.weight!=Pt.stretch&&Ur.push(Pt.stretch),h.font[Mt]={baseString:He,family:ur,weight:Pt.weight,stretch:Pt.stretch,style:Pt.style,variant:Pt.variant,width:{},kerning:{},metrics:y(ur,{origin:"top",fontSize:M.baseFontSize,fontStyle:Ur.join(" ")})},M.fonts[He]=h.font[Mt]}}),(p||k)&&this.font.forEach(function(Pt,Mt){var ee=c.stringify({size:h.fontSize[Mt],family:Pt.family,stretch:_?Pt.stretch:void 0,variant:Pt.variant,weight:Pt.weight,style:Pt.style});if(h.fontAtlas[Mt]=h.shader.atlas[ee],!h.fontAtlas[Mt]){var ye=Pt.metrics;h.shader.atlas[ee]=h.fontAtlas[Mt]={fontString:ee,step:Math.ceil(h.fontSize[Mt]*ye.bottom*.5)*2,em:h.fontSize[Mt],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:h.regl.texture()}}A.text==null&&(A.text=h.text)}),typeof A.text=="string"&&A.position&&A.position.length>2){for(var w=Array(A.position.length*.5),R=0;R<w.length;R++)w[R]=A.text;A.text=w}var O;if(A.text!=null||p){if(this.textOffsets=[0],Array.isArray(A.text)){this.count=A.text[0].length,this.counts=[this.count];for(var j=1;j<A.text.length;j++)this.textOffsets[j]=this.textOffsets[j-1]+A.text[j-1].length,this.count+=A.text[j].length,this.counts.push(A.text[j].length);this.text=A.text.join("")}else this.text=A.text,this.count=this.text.length,this.counts=[this.count];O=[],this.font.forEach(function(Pt,Mt){M.atlasContext.font=Pt.baseString;for(var ee=h.fontAtlas[Mt],ye=0;ye<h.text.length;ye++){var le=h.text.charAt(ye);if(ee.ids[le]==null&&(ee.ids[le]=ee.chars.length,ee.chars.push(le),O.push(le)),Pt.width[le]==null&&(Pt.width[le]=M.atlasContext.measureText(le).width/M.baseFontSize,h.kerning)){var Me=[];for(var He in Pt.width)Me.push(He+le,le+He);x(Pt.kerning,f(Pt.family,{pairs:Me}))}}})}if(A.position)if(A.position.length>2){for(var V=!A.position[0].length,H=a.mallocFloat(this.count*2),F=0,U=0;F<this.counts.length;F++){var W=this.counts[F];if(V)for(var $=0;$<W;$++)H[U++]=A.position[F*2],H[U++]=A.position[F*2+1];else for(var J=0;J<W;J++)H[U++]=A.position[F][0],H[U++]=A.position[F][1]}this.position.call?this.position({type:"float",data:H}):this.position=this.regl.buffer({type:"float",data:H}),a.freeFloat(H)}else this.position.destroy&&this.position.destroy(),this.position={constant:A.position};if(A.text||p){var lt=a.mallocUint8(this.count),yt=a.mallocFloat(this.count*2);this.textWidth=[];for(var mt=0,st=0;mt<this.counts.length;mt++){for
Line truncated
|
||||
`).replace(/}/g,`}
|
||||
`).replace(/{/g,`{
|
||||
`),Zn;if(Ar&&(Zn=xc(pn),Ar[Zn]))return Ar[Zn].apply(null,xi);var Hi=Function.apply(null,Vn.concat(pn));return Ar&&(Ar[Zn]=Hi),Hi.apply(null,xi)}return{global:ba,link:_n,block:gi,proc:Va,scope:ea,cond:Yi,compile:aa}}var Ja="xyzw".split(""),da=5121,Da=1,Ma=2,ia=0,co=1,os=2,Jo=3,us=4,ms=5,fo=6,Ka="dither",gs="blend.enable",el="blend.color",Dl="blend.equation",uu="blend.func",Gl="depth.enable",cu="depth.func",vl="depth.range",Gu="depth.mask",Du="colorMask",pu="cull.enable",Ro="cull.face",Ss="frontFace",Jl="lineWidth",jl="polygonOffset.enable",_c="polygonOffset.offset",qc="sample.alpha",Oc="sample.enable",Dh="sample.coverage",Zc="stencil.enable",Fh="stencil.mask",Nu="stencil.func",Rh="stencil.opFront",as="stencil.opBack",zs="scissor.enable",Gc="scissor.box",Yu="viewport",Gf="profile",Zt="framebuffer",I="vert",ht="frag",Et="elements",Dt="primitive",Wt="count",Ae="offset",Fe="instances",Ke="vao",yr="Width",Fr="Height",Rr=Zt+yr,fn=Zt+Fr,zn=Yu+yr,Jt=Yu+Fr,se="drawingBuffer",_e=se+yr,Se=se+Fr,je=[uu,Dl,Nu,Rh,as,Dh,Yu,Gc,_c],De=34962,qe=34963,kr=2884,Dr=3042,jr=3024,rn=2960,xn=2929,Bn=3089,qn=32823,mi=32926,$i=32928,va=5126,ga=35664,Sa=35665,po=35666,Vo=5124,Lo=35667,ds=35668,dl=35669,yl=35670,Os=35671,Tl=35672,Pu=35673,yu=35674,qs=35675,Zs=35676,Ju=35678,gc=35680,Yc=4,At=1028,Vt=1029,he=2304,Ce=2305,ze=32775,Ne=32776,sr=519,ar=7680,Er=0,an=1,Qr=32774,bn=513,Nn=36160,Un=36064,Zi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Xn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ci={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Di={cw:he,ccw:Ce};function Vi(be){return Array.isArray(be)||Jr(be)||sn(be)}function Xi(be){return be.sort(function(Ar,Ir){return Ar===Yu?-1:Ir===Yu?1:Ar<Ir?-1:1})}function si(be,Ar,Ir,Vn){this.thisDep=be,this.contextDep=Ar,this.propDep=Ir,this.append=Vn}function Wa(be){return be&&!(be.thisDep||be.contextDep||be.propDep)}function Ga(be){return new si(!1,!1,!1,be)}function ho(be,Ar){var Ir=be.type;if(Ir===ia){var Vn=be.data.length;return new si(!0,Vn>=1,Vn>=2,Ar)}else if(Ir===us){var xi=be.data;return new si(xi.thisDep,xi.contextDep,xi.propDep,Ar)}else{if(Ir===ms)return new si(!1,!1,!1,Ar);if(Ir===fo){for(var fi=!1,_n=!1,gi=!1,ea=0;ea<be.data.length;++ea){var Yi=be.data[ea];if(Yi.type===co)gi=!0;else if(Yi.type===os)_n=!0;else if(Yi.type===Jo)fi=!0;else if(Yi.type===ia){fi=!0;var ba=Yi.data;ba>=1&&(_n=!0),ba>=2&&(gi=!0)}else Yi.type===us&&(fi=fi||Yi.data.thisDep,_n=_n||Yi.data.contextDep,gi=gi||Yi.data.propDep)}return new si(fi,_n,gi,Ar)}else return new si(Ir===Jo,Ir===os,Ir===co,Ar)}}var Do=new si(!1,!1,!1,function(){});function Uo(be,Ar,Ir,Vn,xi,fi,_n,gi,ea,Yi,ba,Xa,Va,aa,Ii,pn){var Zn=Yi.Record,Hi={add:32774,subtract:32778,"reverse subtract":32779};Ir.ext_blend_minmax&&(Hi.min=ze,Hi.max=Ne);var zi=Ir.angle_instanced_arrays,di=Ir.webgl_draw_buffers,La=Ir.oes_vertex_array_object,ma={dirty:!0,profile:pn.profile},$a={},Ei=[],pi={},Pa={};function ya(Kt){return Kt.replace(".","_")}function Ji(Kt,fe,Ee){var ir=ya(Kt);Ei.push(Kt),$a[ir]=ma[ir]=!!Ee,pi[ir]=fe}function ta(Kt,fe,Ee){var ir=ya(Kt);Ei.push(Kt),Array.isArray(Ee)?(ma[ir]=Ee.slice(),$a[ir]=Ee.slice()):ma[ir]=$a[ir]=Ee,Pa[ir]=fe}function Ta(Kt){return!!isNaN(Kt)}Ji(Ka,jr),Ji(gs,Dr),ta(el,"blendColor",[0,0,0,0]),ta(Dl,"blendEquationSeparate",[Qr,Qr]),ta(uu,"blendFuncSeparate",[an,Er,an,Er]),Ji(Gl,xn,!0),ta(cu,"depthFunc",bn),ta(vl,"depthRange",[0,1]),ta(Gu,"depthMask",!0),ta(Du,Du,[!0,!0,!0,!0]),Ji(pu,kr),ta(Ro,"cullFace",Vt),ta(Ss,Ss,Ce),ta(Jl,Jl,1),Ji(jl,qn),ta(_c,"polygonOffset",[0,0]),Ji(qc,mi),Ji(Oc,$i),ta(Dh,"sampleCoverage",[1,!1]),Ji(Zc,rn),ta(Fh,"stencilMask",-1),ta(Nu,"stencilFunc",[sr,0,-1]),ta(Rh,"stencilOpSeparate",[At,ar,ar,ar]),ta(as,"stencilOpSeparate",[Vt,ar,ar,ar]),Ji(zs,Bn),ta(Gc,"scissor",[0,0,be.drawingBufferWidth,be.drawingBufferHeight]),ta(Yu,Yu,[0,0,be.drawingBufferWidth,be.drawingBufferHeight]);var Fo={gl:be,context:Va,strings:Ar,next:$a,current:ma,draw:Xa,elements:fi,buffer:xi,shader:ba,attributes:Yi.state,vao:Yi,uniforms:ea,framebuffer:gi,extensions:Ir,timer:aa,isBufferArgs:Vi},So={primTypes:bi,compareFuncs:Xn,blendFuncs:Zi,blendEquations:Hi,stencilOps:Ci,glTypes:Jn,orientationType:Di};di&&(So.backBuffer=[Vt],So.drawBuffer=h(Vn.maxDrawbuffers,function(Kt){return Kt===0?[0]:h(Kt,function(fe){return Un+fe})}));var ka=0;function Ba(){var Kt=ja({cache:Ii}),fe=Kt.link,Ee=Kt.global;Kt.id=ka++,Kt.batchId="0";var ir=fe(Fo),Ye=Kt.shared={props:"a0"};Object.keys(Fo).forEach(function(Je){Ye[Je]=Ee.def(ir,".",Je)});var er=Kt.next={},lr=Kt.current={};Object.keys(P
Line truncated
|
||||
`),Gn;if(Ar&&(Gn=xc(mn),Ar[Gn]))return Ar[Gn].apply(null,bi);var Hi=Function.apply(null,Vn.concat(mn));return Ar&&(Ar[Gn]=Hi),Hi.apply(null,bi)}return{global:wa,link:bn,block:yi,proc:Ha,scope:na,cond:Yi,compile:sa}}var Ja="xyzw".split(""),ma=5121,Ra=1,Sa=2,oa=0,uo=1,os=2,Jo=3,us=4,ms=5,fo=6,Ya="dither",gs="blend.enable",rl="blend.color",Dl="blend.equation",uu="blend.func",Gl="depth.enable",cu="depth.func",yl="depth.range",Gu="depth.mask",Fu="colorMask",pu="cull.enable",Ro="cull.face",Cs="frontFace",Jl="lineWidth",jl="polygonOffset.enable",_c="polygonOffset.offset",qc="sample.alpha",Oc="sample.enable",Dh="sample.coverage",Zc="stencil.enable",Fh="stencil.mask",Nu="stencil.func",Rh="stencil.opFront",as="stencil.opBack",Is="scissor.enable",Gc="scissor.box",Yu="viewport",Gf="profile",Zt="framebuffer",I="vert",ht="frag",Et="elements",Ot="primitive",Wt="count",Ae="offset",Fe="instances",Ke="vao",yr="Width",Fr="Height",Rr=Zt+yr,hn=Zt+Fr,In=Yu+yr,Jt=Yu+Fr,se="drawingBuffer",_e=se+yr,Se=se+Fr,je=[uu,Dl,Nu,Rh,as,Dh,Yu,Gc,_c],De=34962,qe=34963,kr=2884,Dr=3042,jr=3024,nn=2960,_n=2929,Nn=3089,Zn=32823,vi=32926,$i=32928,ya=5126,va=35664,Ca=35665,po=35666,Vo=5124,Lo=35667,ds=35668,dl=35669,xl=35670,Fs=35671,Tl=35672,Pu=35673,yu=35674,Zs=35675,Gs=35676,Ju=35678,gc=35680,Yc=4,At=1028,Vt=1029,he=2304,Ce=2305,ze=32775,Ne=32776,sr=519,ar=7680,Er=0,an=1,tn=32774,wn=513,jn=36160,Un=36064,Zi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Xn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ei={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Fi={cw:he,ccw:Ce};function Vi(be){return Array.isArray(be)||Qr(be)||on(be)}function Xi(be){return be.sort(function(Ar,Ir){return Ar===Yu?-1:Ir===Yu?1:Ar<Ir?-1:1})}function ui(be,Ar,Ir,Vn){this.thisDep=be,this.contextDep=Ar,this.propDep=Ir,this.append=Vn}function $a(be){return be&&!(be.thisDep||be.contextDep||be.propDep)}function Za(be){return new ui(!1,!1,!1,be)}function co(be,Ar){var Ir=be.type;if(Ir===oa){var Vn=be.data.length;return new ui(!0,Vn>=1,Vn>=2,Ar)}else if(Ir===us){var bi=be.data;return new ui(bi.thisDep,bi.contextDep,bi.propDep,Ar)}else{if(Ir===ms)return new ui(!1,!1,!1,Ar);if(Ir===fo){for(var di=!1,bn=!1,yi=!1,na=0;na<be.data.length;++na){var Yi=be.data[na];if(Yi.type===uo)yi=!0;else if(Yi.type===os)bn=!0;else if(Yi.type===Jo)di=!0;else if(Yi.type===oa){di=!0;var wa=Yi.data;wa>=1&&(bn=!0),wa>=2&&(yi=!0)}else Yi.type===us&&(di=di||Yi.data.thisDep,bn=bn||Yi.data.contextDep,yi=yi||Yi.data.propDep)}return new ui(di,bn,yi,Ar)}else return new ui(Ir===Jo,Ir===os,Ir===uo,Ar)}}var Oo=new ui(!1,!1,!1,function(){});function Uo(be,Ar,Ir,Vn,bi,di,bn,yi,na,Yi,wa,Ka,Ha,sa,Oi,mn){var Gn=Yi.Record,Hi={add:32774,subtract:32778,"reverse subtract":32779};Ir.ext_blend_minmax&&(Hi.min=ze,Hi.max=Ne);var Ii=Ir.angle_instanced_arrays,mi=Ir.webgl_draw_buffers,Pa=Ir.oes_vertex_array_object,ga={dirty:!0,profile:mn.profile},qa={},Li=[],gi={},Ia={};function xa(Kt){return Kt.replace(".","_")}function Ji(Kt,fe,Ee){var ir=xa(Kt);Li.push(Kt),qa[ir]=ga[ir]=!!Ee,gi[ir]=fe}function ta(Kt,fe,Ee){var ir=xa(Kt);Li.push(Kt),Array.isArray(Ee)?(ga[ir]=Ee.slice(),qa[ir]=Ee.slice()):ga[ir]=qa[ir]=Ee,Ia[ir]=fe}function Aa(Kt){return!!isNaN(Kt)}Ji(Ya,jr),Ji(gs,Dr),ta(rl,"blendColor",[0,0,0,0]),ta(Dl,"blendEquationSeparate",[tn,tn]),ta(uu,"blendFuncSeparate",[an,Er,an,Er]),Ji(Gl,_n,!0),ta(cu,"depthFunc",wn),ta(yl,"depthRange",[0,1]),ta(Gu,"depthMask",!0),ta(Fu,Fu,[!0,!0,!0,!0]),Ji(pu,kr),ta(Ro,"cullFace",Vt),ta(Cs,Cs,Ce),ta(Jl,Jl,1),Ji(jl,Zn),ta(_c,"polygonOffset",[0,0]),Ji(qc,vi),Ji(Oc,$i),ta(Dh,"sampleCoverage",[1,!1]),Ji(Zc,nn),ta(Fh,"stencilMask",-1),ta(Nu,"stencilFunc",[sr,0,-1]),ta(Rh,"stencilOpSeparate",[At,ar,ar,ar]),ta(as,"stencilOpSeparate",[Vt,ar,ar,ar]),Ji(Is,Nn),ta(Gc,"scissor",[0,0,be.drawingBufferWidth,be.drawingBufferHeight]),ta(Yu,Yu,[0,0,be.drawingBufferWidth,be.drawingBufferHeight]);var Fo={gl:be,context:Ha,strings:Ar,next:qa,current:ga,draw:Ka,elements:di,buffer:bi,shader:wa,attributes:Yi.state,vao:Yi,uniforms:na,framebuffer:yi,extensions:Ir,timer:sa,isBufferArgs:Vi},So={primTypes:ki,compareFuncs:Xn,blendFuncs:Zi,blendEquations:Hi,stencilOps:Ei,glTypes:Jn,orientationType:Fi};mi&&(So.backBuffer=[Vt],So.drawBuffer=h(Vn.maxDrawbuffers,function(Kt){return Kt===0?[0]:h(Kt,function(fe){return Un+fe})}));var Ta=0;function ja(){var Kt=Va({cache:Oi}),fe=Kt.link,Ee=Kt.global;Kt.id=Ta++,Kt.batchId="0";var ir=fe(Fo),Ye=Kt.shared={props:"a0"};Object.keys(Fo).forEach(function(Je){Ye[Je]=Ee.def(ir,".",Je)});var er=Kt.next={},lr=Kt.current={};Object.keys(I
Line truncated
|
||||
`),g=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(`
|
||||
`),z=z3().maxDimensionCount,S=Mn(),t=1e-6,e=2048,r=new Uint8Array(4),a=new Uint8Array(4),n={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function s(A){A.read({x:0,y:0,width:1,height:1,data:r})}function i(A,h,p,k,w){var R=A._gl;R.enable(R.SCISSOR_TEST),R.scissor(h,p,k,w),A.clear({color:[0,0,0,0],depth:1})}function l(A,h,p,k,w,R){var O=R.key;function j(V){var H=Math.min(k,w-V*k);V===0&&(window.cancelAnimationFrame(p.currentRafs[O]),delete p.currentRafs[O],i(A,R.scissorX,R.scissorY,R.scissorWidth,R.viewBoxSize[1])),!p.clearOnly&&(R.count=2*H,R.offset=2*V*k,h(R),V*k+H<w&&(p.currentRafs[O]=window.requestAnimationFrame(function(){j(V+1)})),p.drawCompleted=!1)}p.drawCompleted||(s(A),p.drawCompleted=!0),j(0)}function f(A){return Math.max(t,Math.min(1-t,A))}function x(A,h){for(var p=new Array(256),k=0;k<256;k++)p[k]=A(k/255).concat(h);return p}function y(A,h){return(A>>>8*h)%256/255}function v(A,h,p){for(var k=new Array(A*(z+4)),w=0,R=0;R<A;R++){for(var O=0;O<z;O++)k[w++]=O<h.length?h[O].paddedUnitValues[R]:.5;k[w++]=y(R,2),k[w++]=y(R,1),k[w++]=y(R,0),k[w++]=f(p[R])}return k}function T(A,h,p){for(var k=new Array(h*8),w=0,R=0;R<h;R++)for(var O=0;O<2;O++)for(var j=0;j<4;j++){var V=A*4+j,H=p[R*64+V];V===63&&O===0&&(H*=-1),k[w++]=H}return k}function u(A){var h="0"+A;return h.substr(h.length-2)}function b(A){return A<z?"p"+u(A+1)+"_"+u(A+4):"colors"}function _(A,h,p){for(var k=0;k<=z;k+=4)A[b(k)](T(k/4,h,p))}function P(A){for(var h={},p=0;p<=z;p+=4)h[b(p)]=A.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)});return h}function M(A,h,p,k,w,R,O,j,V,H,F,U,W,$){for(var J=[[],[]],lt=0;lt<64;lt++)J[0][lt]=lt===w?1:0,J[1][lt]=lt===R?1:0;O*=$,j*=$,V*=$,H*=$;var yt=A.lines.canvasOverdrag*$,mt=A.domain,st=A.canvasWidth*$,tt=A.canvasHeight*$,pt=A.pad.l*$,rt=A.pad.b*$,at=A.layoutHeight*$,vt=A.layoutWidth*$,it=A.deselectedLines.color,K=A.deselectedLines.opacity,ft=S.extendFlat({key:F,resolution:[st,tt],viewBoxPos:[O+yt,j],viewBoxSize:[V,H],i0:w,i1:R,dim0A:J[0].slice(0,16),dim0B:J[0].slice(16,32),dim0C:J[0].slice(32,48),dim0D:J[0].slice(48,64),dim1A:J[1].slice(0,16),dim1B:J[1].slice(16,32),dim1C:J[1].slice(32,48),dim1D:J[1].slice(48,64),drwLayer:U,contextColor:[it[0]/255,it[1]/255,it[2]/255,K!=="auto"?it[3]*K:Math.max(1/255,Math.pow(1/A.lines.color.length,1/3))],scissorX:(k===h?0:O+yt)+(pt-yt)+vt*mt.x[0],scissorWidth:(k===p?st-O+yt:V+.5)+(k===h?O+yt:0),scissorY:j+rt+at*mt.y[0],scissorHeight:H,viewportX:pt-yt+vt*mt.x[0],viewportY:rt+at*mt.y[0],viewportWidth:st,viewportHeight:tt},W);return ft}function E(A){var h=e-1,p=Math.max(0,Math.floor(A[0]*h),0),k=Math.min(h,Math.ceil(A[1]*h),h);return[Math.min(p,k),Math.max(p,k)]}Z.exports=function(A,h){var p=h.context,k=h.pick,w=h.regl,R=w._gl,O=R.getParameter(R.ALIASED_LINE_WIDTH_RANGE),j=Math.max(O[0],Math.min(O[1],h.viewModel.plotGlPixelRatio)),V={currentRafs:{},drawCompleted:!0,clearOnly:!1},H,F,U,W,$=P(w),J,lt=w.texture(n),yt=[];st(h);var mt=w({profile:!1,blend:{enable:p,func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:1,dstAlpha:1},equation:{rgb:"add",alpha:"add"},color:[0,0,0,0]},depth:{enable:!p,mask:!0,func:"less",range:[0,1]},cull:{enable:!0,face:"back"},scissor:{enable:!0,box:{x:w.prop("scissorX"),y:w.prop("scissorY"),width:w.prop("scissorWidth"),height:w.prop("scissorHeight")}},viewport:{x:w.prop("viewportX"),y:w.prop("viewportY"),width:w.prop("viewportWidth"),height:w.prop("viewportHeight")},dither:!1,vert:c,frag:g,primitive:"lines",lineWidth:j,attributes:$,uniforms:{resolution:w.prop("resolution"),viewBoxPos:w.prop("viewBoxPos"),viewBoxSize:w.prop("viewBoxSize"),dim0A:w.prop("dim0A"),dim1A:w.prop("dim1A"),dim0B:w.prop("dim0B"),dim1B:w.prop("dim1B"),dim0C:w.prop("dim0C"),dim1C:w.prop("dim1C"),dim0D:w.prop("dim0D"),dim1D:w.prop("dim1D"),loA:w.prop("loA"),hiA:w.prop("hiA"),loB:w.prop("loB"),hiB:w.prop("hiB"),loC:w.prop("loC"),hiC:w.prop("hiC"),loD:w.prop("loD"),hiD:w.prop("hiD"),palette:lt,contextColor:w.prop("contextColor"),maskTexture:w.prop("maskTexture"),drwLayer:w.prop("drwLayer"),maskHeight:w.prop("maskHeight")},offset:w.prop("offset"),count:w.prop("count")});function st(it){H=it.model,F=it.viewModel,U=F.dimensions.slice(),W=U[0]?U[0].values.length:0;var K=H.lines,ft=k?K.color.map(function(kt,Ot){return Ot/K.color.length}):K.color,ut=v(W,U,ft);_($,W,ut),!p&&!k&&(lt=w.texture(S.extendFlat({data:x(H.unitToColor,255)},n)))}function tt(it){var K,ft,ut,kt=[[],[]];for(ut=0;ut<64;ut++){var Ot=!it&&ut<U.length?U[ut].brush.filter.getBounds():[-1/0,1/0];kt[0][ut]=Ot[0],kt[1][ut]=Ot[1]}var It=e*8,qt=new Array(It);for(K=0;K<It;K++)qt[K]=255;if(!it)for(K=0;K<U.length;K++){var $t=K%8,Qt=(K-$t)/8,ve=Math.pow(2,$t),de=U[K],me=de.brush.filter.get();if(!(me.length<2)){var ue=E(me[0])[1];for(ft=1;ft<me.length;ft++){var Tt=E(me[ft]);for(ut=ue+1;ut<Tt[0];ut++)qt[ut*8+Qt]&=~ve;ue=Math.max(ue,Tt[1])}}}var Pt={shape:[8,e],format:"alpha",type:"uint8",mag:"nearest",min:"nearest",data:qt};return J?J(Pt):J=w.texture(Pt),{maskTexture:J,maskHeight:e,loA:kt[0].
Line truncated
|
||||
`),z=z3().maxDimensionCount,S=Cn(),t=1e-6,e=2048,r=new Uint8Array(4),a=new Uint8Array(4),n={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function s(A){A.read({x:0,y:0,width:1,height:1,data:r})}function i(A,h,p,k,w){var R=A._gl;R.enable(R.SCISSOR_TEST),R.scissor(h,p,k,w),A.clear({color:[0,0,0,0],depth:1})}function l(A,h,p,k,w,R){var O=R.key;function j(V){var H=Math.min(k,w-V*k);V===0&&(window.cancelAnimationFrame(p.currentRafs[O]),delete p.currentRafs[O],i(A,R.scissorX,R.scissorY,R.scissorWidth,R.viewBoxSize[1])),!p.clearOnly&&(R.count=2*H,R.offset=2*V*k,h(R),V*k+H<w&&(p.currentRafs[O]=window.requestAnimationFrame(function(){j(V+1)})),p.drawCompleted=!1)}p.drawCompleted||(s(A),p.drawCompleted=!0),j(0)}function f(A){return Math.max(t,Math.min(1-t,A))}function x(A,h){for(var p=new Array(256),k=0;k<256;k++)p[k]=A(k/255).concat(h);return p}function y(A,h){return(A>>>8*h)%256/255}function v(A,h,p){for(var k=new Array(A*(z+4)),w=0,R=0;R<A;R++){for(var O=0;O<z;O++)k[w++]=O<h.length?h[O].paddedUnitValues[R]:.5;k[w++]=y(R,2),k[w++]=y(R,1),k[w++]=y(R,0),k[w++]=f(p[R])}return k}function T(A,h,p){for(var k=new Array(h*8),w=0,R=0;R<h;R++)for(var O=0;O<2;O++)for(var j=0;j<4;j++){var V=A*4+j,H=p[R*64+V];V===63&&O===0&&(H*=-1),k[w++]=H}return k}function u(A){var h="0"+A;return h.substr(h.length-2)}function b(A){return A<z?"p"+u(A+1)+"_"+u(A+4):"colors"}function _(A,h,p){for(var k=0;k<=z;k+=4)A[b(k)](T(k/4,h,p))}function P(A){for(var h={},p=0;p<=z;p+=4)h[b(p)]=A.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)});return h}function M(A,h,p,k,w,R,O,j,V,H,F,U,W,$){for(var J=[[],[]],lt=0;lt<64;lt++)J[0][lt]=lt===w?1:0,J[1][lt]=lt===R?1:0;O*=$,j*=$,V*=$,H*=$;var yt=A.lines.canvasOverdrag*$,mt=A.domain,st=A.canvasWidth*$,tt=A.canvasHeight*$,pt=A.pad.l*$,rt=A.pad.b*$,at=A.layoutHeight*$,vt=A.layoutWidth*$,it=A.deselectedLines.color,K=A.deselectedLines.opacity,ft=S.extendFlat({key:F,resolution:[st,tt],viewBoxPos:[O+yt,j],viewBoxSize:[V,H],i0:w,i1:R,dim0A:J[0].slice(0,16),dim0B:J[0].slice(16,32),dim0C:J[0].slice(32,48),dim0D:J[0].slice(48,64),dim1A:J[1].slice(0,16),dim1B:J[1].slice(16,32),dim1C:J[1].slice(32,48),dim1D:J[1].slice(48,64),drwLayer:U,contextColor:[it[0]/255,it[1]/255,it[2]/255,K!=="auto"?it[3]*K:Math.max(1/255,Math.pow(1/A.lines.color.length,1/3))],scissorX:(k===h?0:O+yt)+(pt-yt)+vt*mt.x[0],scissorWidth:(k===p?st-O+yt:V+.5)+(k===h?O+yt:0),scissorY:j+rt+at*mt.y[0],scissorHeight:H,viewportX:pt-yt+vt*mt.x[0],viewportY:rt+at*mt.y[0],viewportWidth:st,viewportHeight:tt},W);return ft}function E(A){var h=e-1,p=Math.max(0,Math.floor(A[0]*h),0),k=Math.min(h,Math.ceil(A[1]*h),h);return[Math.min(p,k),Math.max(p,k)]}Z.exports=function(A,h){var p=h.context,k=h.pick,w=h.regl,R=w._gl,O=R.getParameter(R.ALIASED_LINE_WIDTH_RANGE),j=Math.max(O[0],Math.min(O[1],h.viewModel.plotGlPixelRatio)),V={currentRafs:{},drawCompleted:!0,clearOnly:!1},H,F,U,W,$=P(w),J,lt=w.texture(n),yt=[];st(h);var mt=w({profile:!1,blend:{enable:p,func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:1,dstAlpha:1},equation:{rgb:"add",alpha:"add"},color:[0,0,0,0]},depth:{enable:!p,mask:!0,func:"less",range:[0,1]},cull:{enable:!0,face:"back"},scissor:{enable:!0,box:{x:w.prop("scissorX"),y:w.prop("scissorY"),width:w.prop("scissorWidth"),height:w.prop("scissorHeight")}},viewport:{x:w.prop("viewportX"),y:w.prop("viewportY"),width:w.prop("viewportWidth"),height:w.prop("viewportHeight")},dither:!1,vert:c,frag:g,primitive:"lines",lineWidth:j,attributes:$,uniforms:{resolution:w.prop("resolution"),viewBoxPos:w.prop("viewBoxPos"),viewBoxSize:w.prop("viewBoxSize"),dim0A:w.prop("dim0A"),dim1A:w.prop("dim1A"),dim0B:w.prop("dim0B"),dim1B:w.prop("dim1B"),dim0C:w.prop("dim0C"),dim1C:w.prop("dim1C"),dim0D:w.prop("dim0D"),dim1D:w.prop("dim1D"),loA:w.prop("loA"),hiA:w.prop("hiA"),loB:w.prop("loB"),hiB:w.prop("hiB"),loC:w.prop("loC"),hiC:w.prop("hiC"),loD:w.prop("loD"),hiD:w.prop("hiD"),palette:lt,contextColor:w.prop("contextColor"),maskTexture:w.prop("maskTexture"),drwLayer:w.prop("drwLayer"),maskHeight:w.prop("maskHeight")},offset:w.prop("offset"),count:w.prop("count")});function st(it){H=it.model,F=it.viewModel,U=F.dimensions.slice(),W=U[0]?U[0].values.length:0;var K=H.lines,ft=k?K.color.map(function(kt,It){return It/K.color.length}):K.color,ut=v(W,U,ft);_($,W,ut),!p&&!k&&(lt=w.texture(S.extendFlat({data:x(H.unitToColor,255)},n)))}function tt(it){var K,ft,ut,kt=[[],[]];for(ut=0;ut<64;ut++){var It=!it&&ut<U.length?U[ut].brush.filter.getBounds():[-1/0,1/0];kt[0][ut]=It[0],kt[1][ut]=It[1]}var zt=e*8,qt=new Array(zt);for(K=0;K<zt;K++)qt[K]=255;if(!it)for(K=0;K<U.length;K++){var $t=K%8,Qt=(K-$t)/8,ve=Math.pow(2,$t),de=U[K],me=de.brush.filter.get();if(!(me.length<2)){var ue=E(me[0])[1];for(ft=1;ft<me.length;ft++){var Tt=E(me[ft]);for(ut=ue+1;ut<Tt[0];ut++)qt[ut*8+Qt]&=~ve;ue=Math.max(ue,Tt[1])}}}var Pt={shape:[8,e],format:"alpha",type:"uint8",mag:"nearest",min:"nearest",data:qt};return J?J(Pt):J=w.texture(Pt),{maskTexture:J,maskHeight:e,loA:kt[0].
Line truncated
|
||||
`),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(`
|
||||
`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",a.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(`
|
||||
`),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(`
|
||||
`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}}),D3=zt((Q,Z)=>{var c=Mn(),g=hi().defaultLine,z=Hh().attributes,S=ha(),t=nf().textposition,e=Jc().overrideAll,r=vu().templatedArray,a=Pv(),n=S({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});n.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var s=Z.exports=e({_arrayAttrRegexps:[c.counterRegex("mapbox",".layers",!0)],domain:z({name:"mapbox"}),acce
Line truncated
|
||||
`)),V.push({type:"Feature",geometry:{type:"Point",coordinates:F.lonlat},properties:{symbol:R(H),angle:O(H),text:W}})}}return{type:"FeatureCollection",features:V}}function T(M,E){return g.isArrayOrTypedArray(M)?E?function(A){return c(M[A])?+M[A]:0}:function(A){return M[A]}:M?function(){return M}:u}function u(){return""}function b(M){return M[0]===z}function _(M,E){var A;if(g.isArrayOrTypedArray(M)&&g.isArrayOrTypedArray(E)){A=["step",["get","point_count"],M[0]];for(var h=1;h<M.length;h++)A.push(E[h-1],M[h])}else A=M;return A}function P(M){var E=M.textfont,A=E.family,h=E.style,p=E.weight,k=A.split(" "),w=k[k.length-1]==="Italic";w&&k.pop(),w=w||h==="italic";var R=k.join(" ");p==="bold"&&k.indexOf("Bold")===-1?R+=" Bold":p<=1e3&&(k[0]==="Metropolis"?(R="Metropolis",p>850?R+=" Black":p>750?R+=" Extra Bold":p>650?R+=" Bold":p>550?R+=" Semi Bold":p>450?R+=" Medium":p>350?R+=" Regular":p>250?R+=" Light":p>150?R+=" Extra Light":R+=" Thin"):k.slice(0,2).join(" ")==="Open Sans"?(R="Open Sans",p>750?R+=" Extrabold":p>650?R+=" Bold":p>550?R+=" Semibold":p>350?R+=" Regular":R+=" Light"):k.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(R="Klokantech Noto Sans",k[3]==="CJK"&&(R+=" CJK"),R+=p>500?" Bold":" Regular")),w&&(R+=" Italic"),R==="Open Sans Regular Italic"?R="Open Sans Italic":R==="Open Sans Regular Bold"?R="Open Sans Bold":R==="Open Sans Regular Bold Italic"?R="Open Sans Bold Italic":R==="Klokantech Noto Sans Regular Italic"&&(R="Klokantech Noto Sans Italic"),n(R)||(R=A);var O=R.split(", ");return O}}),HW=zt((Q,Z)=>{var c=Mn(),g=VW(),z=Pv().traceLayerPrefix,S={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function t(r,a,n,s){this.type="scattermapbox",this.subplot=r,this.uid=a,this.clusterEnabled=n,this.isHidden=s,this.sourceIds={fill:"source-"+a+"-fill",line:"source-"+a+"-line",circle:"source-"+a+"-circle",symbol:"source-"+a+"-symbol",cluster:"source-"+a+"-circle",clusterCount:"source-"+a+"-circle"},this.layerIds={fill:z+a+"-fill",line:z+a+"-line",circle:z+a+"-circle",symbol:z+a+"-symbol",cluster:z+a+"-cluster",clusterCount:z+a+"-cluster-count"},this.below=null}var e=t.prototype;e.addSource=function(r,a,n){var s={type:"geojson",data:a.geojson};n&&n.enabled&&c.extendFlat(s,{cluster:!0,clusterMaxZoom:n.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[r]);i?i.setData(a.geojson):this.subplot.map.addSource(this.sourceIds[r],s)},e.setSourceData=function(r,a){this.subplot.map.getSource(this.sourceIds[r]).setData(a.geojson)},e.addLayer=function(r,a,n){var s={type:a.type,id:this.layerIds[r],source:this.sourceIds[r],layout:a.layout,paint:a.paint};a.filter&&(s.filter=a.filter);for(var i=this.layerIds[r],l,f=this.subplot.getMapLayers(),x=0;x<f.length;x++)if(f[x].id===i){l=!0;break}l?(this.subplot.setOptions(i,"setLayoutProperty",s.layout),s.layout.visibility==="visible"&&this.subplot.setOptions(i,"setPaintProperty",s.paint)):this.subplot.addLayer(s,n)},e.update=function(r){var a=r[0].trace,n=this.subplot,s=n.map,i=g(n.gd,r),l=n.belowLookup["trace-"+this.uid],f=!!(a.cluster&&a.cluster.enabled),x=!!this.clusterEnabled,y=this;function v(h){h||y.addSource("circle",i.circle,a.cluster);for(var p=S.cluster,k=0;k<p.length;k++){var w=p[k],R=i[w];y.addLayer(w,R,l)}}function T(h){for(var p=S.cluster,k=p.length-1;k>=0;k--){var w=p[k];s.removeLayer(y.layerIds[w])}h||s.removeSource(y.sourceIds.circle)}function u(h){for(var p=S.nonCluster,k=0;k<p.length;k++){var w=p[k],R=i[w];h||y.addSource(w,R),y.addLayer(w,R,l)}}function b(h){for(var p=S.nonCluster,k=p.length-1;k>=0;k--){var w=p[k];s.removeLayer(y.layerIds[w]),h||s.removeSource(y.sourceIds[w])}}function _(h){x?T(h):b(h)}function P(h){f?v(h):u(h)}function M(){for(var h=f?S.cluster:S.nonCluster,p=0;p<h.length;p++){var k=h[p],w=i[k];w&&(n.setOptions(y.layerIds[k],"setLayoutProperty",w.layout),w.layout.visibility==="visible"&&(k!=="cluster"&&y.setSourceData(k,w),n.setOptions(y.layerIds[k],"setPaintProperty",w.paint)))}}var E=this.isHidden,A=a.visible!==!0;A?E||_():E?A||P():x!==f?(_(),P()):(this.below!==l&&(_(!0),P(!0)),M()),this.clusterEnabled=f,this.isHidden=A,this.below=l,r[0].trace._glTrace=this},e.dispose=function(){for(var r=this.subplot.map,a=this.clusterEnabled?S.cluster:S.nonCluster,n=a.length-1;n>=0;n--){var s=a[n];r.removeLayer(this.layerIds[s]),r.removeSource(this.sourceIds[s])}},Z.exports=function(r,a){var n=a[0].trace,s=n.cluster&&n.cluster.enabled,i=n.visible!==!0,l=new t(r,n.uid,s,i),f=g(r.gd,a),x=l.below=r.belowLookup["trace-"+n.uid],y,v,T;if(s)for(l.addSource("circle",f.circle,n.cluster),y=0;y<S.cluster.length;y++)v=S.cluster[y],T=f[v],l.addLayer(v,T,x);else for(y=0;y<S.nonCluster.length;y++)v=S.nonCluster[y],T=f[v],l.addSource(v,T,n.cluster),l.addLayer(v,T,x);return a[0].trace._glTrace=l,l}}),MT=zt((Q,Z)=>{var c=rf(),g=Mn(),z=ju(),S=g.fillText,t=Li().BADNUM,e=Pv().traceLayerPrefix;function r(n,s,i){var l=n.cd,f=l[0].trace,x=n.xa,y=n.ya,v=n.subplot,T=[],u=e+f.uid+"-circle",b=f.cluster&&f.cluster.enabled;if(b){var _=v.map
Line truncated
|
||||
`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}}),D3=Rt((Q,Z)=>{var c=Cn(),g=pi().defaultLine,z=Hh().attributes,S=ca(),t=nf().textposition,e=Jc().overrideAll,r=vu().templatedArray,a=Pv(),n=S({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});n.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var s=Z.exports=e({_arrayAttrRegexps:[c.counterRegex("mapbox",".layers",!0)],domain:z({name:"mapbox"}),acce
Line truncated
|
||||
`)),V.push({type:"Feature",geometry:{type:"Point",coordinates:F.lonlat},properties:{symbol:R(H),angle:O(H),text:W}})}}return{type:"FeatureCollection",features:V}}function T(M,E){return g.isArrayOrTypedArray(M)?E?function(A){return c(M[A])?+M[A]:0}:function(A){return M[A]}:M?function(){return M}:u}function u(){return""}function b(M){return M[0]===z}function _(M,E){var A;if(g.isArrayOrTypedArray(M)&&g.isArrayOrTypedArray(E)){A=["step",["get","point_count"],M[0]];for(var h=1;h<M.length;h++)A.push(E[h-1],M[h])}else A=M;return A}function P(M){var E=M.textfont,A=E.family,h=E.style,p=E.weight,k=A.split(" "),w=k[k.length-1]==="Italic";w&&k.pop(),w=w||h==="italic";var R=k.join(" ");p==="bold"&&k.indexOf("Bold")===-1?R+=" Bold":p<=1e3&&(k[0]==="Metropolis"?(R="Metropolis",p>850?R+=" Black":p>750?R+=" Extra Bold":p>650?R+=" Bold":p>550?R+=" Semi Bold":p>450?R+=" Medium":p>350?R+=" Regular":p>250?R+=" Light":p>150?R+=" Extra Light":R+=" Thin"):k.slice(0,2).join(" ")==="Open Sans"?(R="Open Sans",p>750?R+=" Extrabold":p>650?R+=" Bold":p>550?R+=" Semibold":p>350?R+=" Regular":R+=" Light"):k.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(R="Klokantech Noto Sans",k[3]==="CJK"&&(R+=" CJK"),R+=p>500?" Bold":" Regular")),w&&(R+=" Italic"),R==="Open Sans Regular Italic"?R="Open Sans Italic":R==="Open Sans Regular Bold"?R="Open Sans Bold":R==="Open Sans Regular Bold Italic"?R="Open Sans Bold Italic":R==="Klokantech Noto Sans Regular Italic"&&(R="Klokantech Noto Sans Italic"),n(R)||(R=A);var O=R.split(", ");return O}}),HW=Rt((Q,Z)=>{var c=Cn(),g=VW(),z=Pv().traceLayerPrefix,S={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function t(r,a,n,s){this.type="scattermapbox",this.subplot=r,this.uid=a,this.clusterEnabled=n,this.isHidden=s,this.sourceIds={fill:"source-"+a+"-fill",line:"source-"+a+"-line",circle:"source-"+a+"-circle",symbol:"source-"+a+"-symbol",cluster:"source-"+a+"-circle",clusterCount:"source-"+a+"-circle"},this.layerIds={fill:z+a+"-fill",line:z+a+"-line",circle:z+a+"-circle",symbol:z+a+"-symbol",cluster:z+a+"-cluster",clusterCount:z+a+"-cluster-count"},this.below=null}var e=t.prototype;e.addSource=function(r,a,n){var s={type:"geojson",data:a.geojson};n&&n.enabled&&c.extendFlat(s,{cluster:!0,clusterMaxZoom:n.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[r]);i?i.setData(a.geojson):this.subplot.map.addSource(this.sourceIds[r],s)},e.setSourceData=function(r,a){this.subplot.map.getSource(this.sourceIds[r]).setData(a.geojson)},e.addLayer=function(r,a,n){var s={type:a.type,id:this.layerIds[r],source:this.sourceIds[r],layout:a.layout,paint:a.paint};a.filter&&(s.filter=a.filter);for(var i=this.layerIds[r],l,f=this.subplot.getMapLayers(),x=0;x<f.length;x++)if(f[x].id===i){l=!0;break}l?(this.subplot.setOptions(i,"setLayoutProperty",s.layout),s.layout.visibility==="visible"&&this.subplot.setOptions(i,"setPaintProperty",s.paint)):this.subplot.addLayer(s,n)},e.update=function(r){var a=r[0].trace,n=this.subplot,s=n.map,i=g(n.gd,r),l=n.belowLookup["trace-"+this.uid],f=!!(a.cluster&&a.cluster.enabled),x=!!this.clusterEnabled,y=this;function v(h){h||y.addSource("circle",i.circle,a.cluster);for(var p=S.cluster,k=0;k<p.length;k++){var w=p[k],R=i[w];y.addLayer(w,R,l)}}function T(h){for(var p=S.cluster,k=p.length-1;k>=0;k--){var w=p[k];s.removeLayer(y.layerIds[w])}h||s.removeSource(y.sourceIds.circle)}function u(h){for(var p=S.nonCluster,k=0;k<p.length;k++){var w=p[k],R=i[w];h||y.addSource(w,R),y.addLayer(w,R,l)}}function b(h){for(var p=S.nonCluster,k=p.length-1;k>=0;k--){var w=p[k];s.removeLayer(y.layerIds[w]),h||s.removeSource(y.sourceIds[w])}}function _(h){x?T(h):b(h)}function P(h){f?v(h):u(h)}function M(){for(var h=f?S.cluster:S.nonCluster,p=0;p<h.length;p++){var k=h[p],w=i[k];w&&(n.setOptions(y.layerIds[k],"setLayoutProperty",w.layout),w.layout.visibility==="visible"&&(k!=="cluster"&&y.setSourceData(k,w),n.setOptions(y.layerIds[k],"setPaintProperty",w.paint)))}}var E=this.isHidden,A=a.visible!==!0;A?E||_():E?A||P():x!==f?(_(),P()):(this.below!==l&&(_(!0),P(!0)),M()),this.clusterEnabled=f,this.isHidden=A,this.below=l,r[0].trace._glTrace=this},e.dispose=function(){for(var r=this.subplot.map,a=this.clusterEnabled?S.cluster:S.nonCluster,n=a.length-1;n>=0;n--){var s=a[n];r.removeLayer(this.layerIds[s]),r.removeSource(this.sourceIds[s])}},Z.exports=function(r,a){var n=a[0].trace,s=n.cluster&&n.cluster.enabled,i=n.visible!==!0,l=new t(r,n.uid,s,i),f=g(r.gd,a),x=l.below=r.belowLookup["trace-"+n.uid],y,v,T;if(s)for(l.addSource("circle",f.circle,n.cluster),y=0;y<S.cluster.length;y++)v=S.cluster[y],T=f[v],l.addLayer(v,T,x);else for(y=0;y<S.nonCluster.length;y++)v=S.nonCluster[y],T=f[v],l.addSource(v,T,n.cluster),l.addLayer(v,T,x);return a[0].trace._glTrace=l,l}}),MT=Rt((Q,Z)=>{var c=rf(),g=Cn(),z=ju(),S=g.fillText,t=Pi().BADNUM,e=Pv().traceLayerPrefix;function r(n,s,i){var l=n.cd,f=l[0].trace,x=n.xa,y=n.ya,v=n.subplot,T=[],u=e+f.uid+"-circle",b=f.cluster&&f.cluster.enabled;if(b){var _=v.map
Line truncated
|
||||
precision mediump float;
|
||||
#else
|
||||
#if !defined(lowp)
|
||||
@@ -2925,7 +2925,7 @@ vec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/we
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(0.0);
|
||||
#endif
|
||||
}`,nl="uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}",Xl="varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}",Lh="attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}",Ic="varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}",Wh="attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}",wu="uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}",Ed="attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}",tl=`#pragma mapbox: define highp vec4 color
|
||||
}`,nl="uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}",Xl="varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}",Lh="attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}",Ic="varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}",Wh="attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}",wu="uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}",Ed="attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}",el=`#pragma mapbox: define highp vec4 color
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 color
|
||||
@@ -3279,7 +3279,7 @@ void main() {
|
||||
#pragma mapbox: initialize lowp float halo_blur
|
||||
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
|
||||
camera_to_anchor_distance/u_camera_to_center_distance :
|
||||
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Bu=_u(eh,lh),Hc=_u(Uf,Ef),Zh=_u(Nl,Uc),du=_u(Vf,pc),zh=_u(lc,mc),Ec=_u(uh,fu),Wc=_u(uc,nl),ku=_u(Xl,Lh),hf=_u(Ic,Wh),_h=_u(wu,Ed),Gh=_u(tl,Wd),Pf=_u(Ol,es),Pd=_u(cf,ch),tp=_u(ic,Hf),ff=_u($h,_f),zf=_u(cc,fd),Ac=_u(Yf,bf),df=_u(qh,Wf),rh=_u($f,hh),pf=_u(Kf,Ph),If=_u(xh,hc),bh=_u(af,qf),Tu=_u(nu,Lf),Ih=_u(Ld,Xf),$c=_u(wf,Jf),dd=_u(Vc,Qf);function _u(q,ot){var et=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,_t=ot.match(/attribute ([\w]+) ([\w]+)/g),Ht=q.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),pe=ot.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),xe=pe?pe.concat(Ht):Ht,Kt={};return q=q.replace(et,function(fe,Ee,ir,Ye,er){return Kt[er]=!0,Ee==="define"?`
|
||||
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Bu=_u(eh,lh),Hc=_u(Uf,Ef),Zh=_u(Nl,Uc),du=_u(Vf,pc),zh=_u(lc,mc),Ec=_u(uh,fu),Wc=_u(uc,nl),ku=_u(Xl,Lh),hf=_u(Ic,Wh),_h=_u(wu,Ed),Gh=_u(el,Wd),Pf=_u(Ol,es),Pd=_u(cf,ch),tp=_u(ic,Hf),ff=_u($h,_f),zf=_u(cc,fd),Ac=_u(Yf,bf),df=_u(qh,Wf),rh=_u($f,hh),pf=_u(Kf,Ph),If=_u(xh,hc),bh=_u(af,qf),Tu=_u(nu,Lf),Ih=_u(Ld,Xf),$c=_u(wf,Jf),dd=_u(Vc,Qf);function _u(q,ot){var et=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,_t=ot.match(/attribute ([\w]+) ([\w]+)/g),Ht=q.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),pe=ot.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),xe=pe?pe.concat(Ht):Ht,Kt={};return q=q.replace(et,function(fe,Ee,ir,Ye,er){return Kt[er]=!0,Ee==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_`+er+`
|
||||
varying `+ir+" "+Ye+" "+er+`;
|
||||
#else
|
||||
@@ -3329,8 +3329,8 @@ uniform `+ir+" "+Ye+" u_"+er+`;
|
||||
`+ir+" "+Ye+" "+er+" = u_"+er+`;
|
||||
#endif
|
||||
`}),{fragmentSource:q,vertexSource:ot,staticAttributes:_t,staticUniforms:xe}}var kf=Object.freeze({__proto__:null,prelude:Bu,background:Hc,backgroundPattern:Zh,circle:du,clippingMask:zh,heatmap:Ec,heatmapTexture:Wc,collisionBox:ku,collisionCircle:hf,debug:_h,fill:Gh,fillOutline:Pf,fillOutlinePattern:Pd,fillPattern:tp,fillExtrusion:ff,fillExtrusionPattern:zf,hillshadePrepare:Ac,hillshade:df,line:rh,lineGradient:pf,linePattern:If,lineSDF:bh,raster:Tu,symbolIcon:Ih,symbolSDF:$c,symbolTextAndIcon:dd}),Yh=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};Yh.prototype.bind=function(q,ot,et,_t,Ht,pe,xe,Kt){this.context=q;for(var fe=this.boundPaintVertexBuffers.length!==_t.length,Ee=0;!fe&&Ee<_t.length;Ee++)this.boundPaintVertexBuffers[Ee]!==_t[Ee]&&(fe=!0);var ir=!this.vao||this.boundProgram!==ot||this.boundLayoutVertexBuffer!==et||fe||this.boundIndexBuffer!==Ht||this.boundVertexOffset!==pe||this.boundDynamicVertexBuffer!==xe||this.boundDynamicVertexBuffer2!==Kt;!q.extVertexArrayObject||ir?this.freshBind(ot,et,_t,Ht,pe,xe,Kt):(q.bindVertexArrayOES.set(this.vao),xe&&xe.bind(),Ht&&Ht.dynamicDraw&&Ht.bind(),Kt&&Kt.bind())},Yh.prototype.freshBind=function(q,ot,et,_t,Ht,pe,xe){var Kt,fe=q.numAttributes,Ee=this.context,ir=Ee.gl;if(Ee.extVertexArrayObject)this.vao&&this.destroy(),this.vao=Ee.extVertexArrayObject.createVertexArrayOES(),Ee.bindVertexArrayOES.set(this.vao),Kt=0,this.boundProgram=q,this.boundLayoutVertexBuffer=ot,this.boundPaintVertexBuffers=et,this.boundIndexBuffer=_t,this.boundVertexOffset=Ht,this.boundDynamicVertexBuffer=pe,this.boundDynamicVertexBuffer2=xe;else{Kt=Ee.currentNumAttributes||0;for(var Ye=fe;Ye<Kt;Ye++)ir.disableVertexAttribArray(Ye)}ot.enableAttributes(ir,q);for(var er=0,lr=et;er<lr.length;er+=1){var hr=lr[er];hr.enableAttributes(ir,q)}pe&&pe.enableAttributes(ir,q),xe&&xe.enableAttributes(ir,q),ot.bind(),ot.setVertexAttribPointers(ir,q,Ht);for(var Ve=0,Je=et;Ve<Je.length;Ve+=1){var Ze=Je[Ve];Ze.bind(),Ze.setVertexAttribPointers(ir,q,Ht)}pe&&(pe.bind(),pe.setVertexAttribPointers(ir,q,Ht)),_t&&_t.bind(),xe&&(xe.bind(),xe.setVertexAttribPointers(ir,q,Ht)),Ee.currentNumAttributes=fe},Yh.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};function nh(q){for(var ot=[],et=0;et<q.length;et++)if(q[et]!==null){var _t=q[et].split(" ");ot.push(_t.pop())}return ot}var of=function(q,ot,et,_t,Ht,pe){var xe=q.gl;this.program=xe.createProgram();for(var Kt=nh(et.staticAttributes),fe=_t?_t.getBinderAttributes():[],Ee=Kt.concat(fe),ir=et.staticUniforms?nh(et.staticUniforms):[],Ye=_t?_t.getBinderUniforms():[],er=ir.concat(Ye),lr=[],hr=0,Ve=er;hr<Ve.length;hr+=1){var Je=Ve[hr];lr.indexOf(Je)<0&&lr.push(Je)}var Ze=_t?_t.defines():[];pe&&Ze.push("#define OVERDRAW_INSPECTOR;");var zr=Ze.concat(Bu.fragmentSource,et.fragmentSource).join(`
|
||||
`),cn=Ze.concat(Bu.vertexSource,et.vertexSource).join(`
|
||||
`),mn=xe.createShader(xe.FRAGMENT_SHADER);if(xe.isContextLost()){this.failedToCreate=!0;return}xe.shaderSource(mn,zr),xe.compileShader(mn),xe.attachShader(this.program,mn);var Ti=xe.createShader(xe.VERTEX_SHADER);if(xe.isContextLost()){this.failedToCreate=!0;return}xe.shaderSource(Ti,cn),xe.compileShader(Ti),xe.attachShader(this.program,Ti),this.attributes={};var _i={};this.numAttributes=Ee.length;for(var oi=0;oi<this.numAttributes;oi++)Ee[oi]&&(xe.bindAttribLocation(this.program,oi,Ee[oi]),this.attributes[Ee[oi]]=oi);xe.linkProgram(this.program),xe.deleteShader(Ti),xe.deleteShader(mn);for(var Ri=0;Ri<lr.length;Ri++){var Ai=lr[Ri];if(Ai&&!_i[Ai]){var ra=xe.getUniformLocation(this.program,Ai);ra&&(_i[Ai]=ra)}}this.fixedUniforms=Ht(q,_i),this.binderUniforms=_t?_t.getUniforms(q,_i):[]};of.prototype.draw=function(q,ot,et,_t,Ht,pe,xe,Kt,fe,Ee,ir,Ye,er,lr,hr,Ve){var Je,Ze=q.gl;if(!this.failedToCreate){q.program.set(this.program),q.setDepthMode(et),q.setStencilMode(_t),q.setColorMode(Ht),q.setCullFace(pe);for(var zr in this.fixedUniforms)this.fixedUniforms[zr].set(xe[zr]);lr&&lr.setUniforms(q,this.binderUniforms,Ye,{zoom:er});for(var cn=(Je={},Je[Ze.LINES]=2,Je[Ze.TRIANGLES]=3,Je[Ze.LINE_STRIP]=1,Je)[ot],mn=0,Ti=ir.get();mn<Ti.length;mn+=1){var _i=Ti[mn],oi=_i.vaos||(_i.vaos={}),Ri=oi[Kt]||(oi[Kt]=new Yh);Ri.bind(q,this,fe,lr?lr.getPaintVertexBuffers():[],Ee,_i.vertexOffset,hr,Ve),Ze.drawElements(ot,_i.primitiveLength*cn,Ze.UNSIGNED_SHORT,_i.primitiveOffset*cn*2)}}};function Kh(q,ot,et){var _t=1/Qs(et,1,ot.transform.tileZoom),Ht=Math.pow(2,et.tileID.overscaledZ),pe=et.tileSize*Math.pow(2,ot.transform.tileZoom)/Ht,xe=pe*(et.tileID.canonical.x+et.tileID.wrap*Ht),Kt=pe*et.tileID.canonical.y;return{u_image:0,u_texsize:et.imageAtlasTexture.size,u_scale:[_t,q.fromScale,q.toScale],u_fade:q.t,u_pixel_coord_upper:[xe>>16,Kt>>16],u_pixel_coord_lower:[xe&65535,Kt&65535]}}function Tf(q,ot,et,_t){var Ht=et.imageManager.getPattern(q.from.toString()),pe=et.imageManager.getPattern(q.to.toString()),xe=et.imageManager.getPixelSize(),Kt=xe.width,fe=xe.height,Ee=Math.pow(2,_t.tileID.overscaledZ),ir=_t.tileSize*Math.pow(2,et.transform.tileZoom)/Ee,Ye=ir*(_t.tileID.canonical.x+_t.tileID.wrap*Ee),er=ir*_t.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Ht.tl,u_pattern_br_a:Ht.br,u_pattern_tl_b:pe.tl,u_pattern_br_b:pe.br,u_texsize:[Kt,fe],u_mix:ot.t,u_pattern_size_a:Ht.displaySize,u_pattern_size_b:pe.displaySize,u_scale_a:ot.fromScale,u_scale_b:ot.toScale,u_tile_units_to_pixels:1/Qs(_t,1,et.transform.tileZoom),u_pixel_coord_upper:[Ye>>16,er>>16],u_pixel_coord_lower:[Ye&65535,er&65535]}}var zd=function(q,ot){return{u_matrix:new t.UniformMatrix4f(q,ot.u_matrix),u_lightpos:new t.Uniform3f(q,ot.u_lightpos),u_lightintensity:new t.Uniform1f(q,ot.u_lightintensity),u_lightcolor:new t.Uniform3f(q,ot.u_lightcolor),u_vertical_gradient:new t.Uniform1f(q,ot.u_vertical_gradient),u_opacity:new t.Uniform1f(q,ot.u_opacity)}},xc=function(q,ot){return{u_matrix:new t.UniformMatrix4f(q,ot.u_matrix),u_lightpos:new t.Uniform3f(q,ot.u_lightpos),u_lightintensity:new t.Uniform1f(q,ot.u_lightintensity),u_lightcolor:new t.Uniform3f(q,ot.u_lightcolor),u_vertical_gradient:new t.Uniform1f(q,ot.u_vertical_gradient),u_height_factor:new t.Uniform1f(q,ot.u_height_factor),u_image:new t.Uniform1i(q,ot.u_image),u_texsize:new t.Uniform2f(q,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f(q,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(q,ot.u_pixel_coord_lower),u_scale:new t.Uniform3f(q,ot.u_scale),u_fade:new t.Uniform1f(q,ot.u_fade),u_opacity:new t.Uniform1f(q,ot.u_opacity)}},td=function(q,ot,et,_t){var Ht=ot.style.light,pe=Ht.properties.get("position"),xe=[pe.x,pe.y,pe.z],Kt=t.create$1();Ht.properties.get("anchor")==="viewport"&&t.fromRotation(Kt,-ot.transform.angle),t.transformMat3(xe,xe,Kt);var fe=Ht.properties.get("color");return{u_matrix:q,u_lightpos:xe,u_lightintensity:Ht.properties.get("intensity"),u_lightcolor:[fe.r,fe.g,fe.b],u_vertical_gradient:+et,u_opacity:_t}},ih=function(q,ot,et,_t,Ht,pe,xe){return t.extend(td(q,ot,et,_t),Kh(pe,ot,xe),{u_height_factor:-Math.pow(2,Ht.overscaledZ)/xe.tileSize/8})},Oh=function(q,ot){return{u_matrix:new t.UniformMatrix4f(q,ot.u_matrix)}},wh=function(q,ot){return{u_matrix:new t.UniformMatrix4f(q,ot.u_matrix),u_image:new t.Uniform1i(q,ot.u_image),u_texsize:new t.Uniform2f(q,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f(q,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(q,ot.u_pixel_coord_lower),u_scale:new t.Uniform3f(q,ot.u_scale),u_fade:new t.Uniform1f(q,ot.u_fade)}},Vu=function(q,ot){return{u_matrix:new t.UniformMatrix4f(q,ot.u_matrix),u_world:new t.Uniform2f(q,ot.u_world)}},ou=function(q,ot){return{u_matrix:new t.UniformMatrix4f(q,ot.u_matrix),u_world:new t.Uniform2f(q,ot.u_world),u_image:new t.Uniform1i(q,ot.u_image),u_texsize:new t.Uniform2f(q,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f(q,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(q,ot.u_pixel_coord_lower),u_scale:new t.Un
Line truncated
|
||||
`),un=Ze.concat(Bu.vertexSource,et.vertexSource).join(`
|
||||
`),gn=xe.createShader(xe.FRAGMENT_SHADER);if(xe.isContextLost()){this.failedToCreate=!0;return}xe.shaderSource(gn,zr),xe.compileShader(gn),xe.attachShader(this.program,gn);var Mi=xe.createShader(xe.VERTEX_SHADER);if(xe.isContextLost()){this.failedToCreate=!0;return}xe.shaderSource(Mi,un),xe.compileShader(Mi),xe.attachShader(this.program,Mi),this.attributes={};var wi={};this.numAttributes=Ee.length;for(var li=0;li<this.numAttributes;li++)Ee[li]&&(xe.bindAttribLocation(this.program,li,Ee[li]),this.attributes[Ee[li]]=li);xe.linkProgram(this.program),xe.deleteShader(Mi),xe.deleteShader(gn);for(var Bi=0;Bi<lr.length;Bi++){var Si=lr[Bi];if(Si&&!wi[Si]){var ia=xe.getUniformLocation(this.program,Si);ia&&(wi[Si]=ia)}}this.fixedUniforms=Ht(q,wi),this.binderUniforms=_t?_t.getUniforms(q,wi):[]};of.prototype.draw=function(q,ot,et,_t,Ht,pe,xe,Kt,fe,Ee,ir,Ye,er,lr,hr,Ve){var Je,Ze=q.gl;if(!this.failedToCreate){q.program.set(this.program),q.setDepthMode(et),q.setStencilMode(_t),q.setColorMode(Ht),q.setCullFace(pe);for(var zr in this.fixedUniforms)this.fixedUniforms[zr].set(xe[zr]);lr&&lr.setUniforms(q,this.binderUniforms,Ye,{zoom:er});for(var un=(Je={},Je[Ze.LINES]=2,Je[Ze.TRIANGLES]=3,Je[Ze.LINE_STRIP]=1,Je)[ot],gn=0,Mi=ir.get();gn<Mi.length;gn+=1){var wi=Mi[gn],li=wi.vaos||(wi.vaos={}),Bi=li[Kt]||(li[Kt]=new Yh);Bi.bind(q,this,fe,lr?lr.getPaintVertexBuffers():[],Ee,wi.vertexOffset,hr,Ve),Ze.drawElements(ot,wi.primitiveLength*un,Ze.UNSIGNED_SHORT,wi.primitiveOffset*un*2)}}};function Kh(q,ot,et){var _t=1/tl(et,1,ot.transform.tileZoom),Ht=Math.pow(2,et.tileID.overscaledZ),pe=et.tileSize*Math.pow(2,ot.transform.tileZoom)/Ht,xe=pe*(et.tileID.canonical.x+et.tileID.wrap*Ht),Kt=pe*et.tileID.canonical.y;return{u_image:0,u_texsize:et.imageAtlasTexture.size,u_scale:[_t,q.fromScale,q.toScale],u_fade:q.t,u_pixel_coord_upper:[xe>>16,Kt>>16],u_pixel_coord_lower:[xe&65535,Kt&65535]}}function Tf(q,ot,et,_t){var Ht=et.imageManager.getPattern(q.from.toString()),pe=et.imageManager.getPattern(q.to.toString()),xe=et.imageManager.getPixelSize(),Kt=xe.width,fe=xe.height,Ee=Math.pow(2,_t.tileID.overscaledZ),ir=_t.tileSize*Math.pow(2,et.transform.tileZoom)/Ee,Ye=ir*(_t.tileID.canonical.x+_t.tileID.wrap*Ee),er=ir*_t.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Ht.tl,u_pattern_br_a:Ht.br,u_pattern_tl_b:pe.tl,u_pattern_br_b:pe.br,u_texsize:[Kt,fe],u_mix:ot.t,u_pattern_size_a:Ht.displaySize,u_pattern_size_b:pe.displaySize,u_scale_a:ot.fromScale,u_scale_b:ot.toScale,u_tile_units_to_pixels:1/tl(_t,1,et.transform.tileZoom),u_pixel_coord_upper:[Ye>>16,er>>16],u_pixel_coord_lower:[Ye&65535,er&65535]}}var zd=function(q,ot){return{u_matrix:new t.UniformMatrix4f(q,ot.u_matrix),u_lightpos:new t.Uniform3f(q,ot.u_lightpos),u_lightintensity:new t.Uniform1f(q,ot.u_lightintensity),u_lightcolor:new t.Uniform3f(q,ot.u_lightcolor),u_vertical_gradient:new t.Uniform1f(q,ot.u_vertical_gradient),u_opacity:new t.Uniform1f(q,ot.u_opacity)}},xc=function(q,ot){return{u_matrix:new t.UniformMatrix4f(q,ot.u_matrix),u_lightpos:new t.Uniform3f(q,ot.u_lightpos),u_lightintensity:new t.Uniform1f(q,ot.u_lightintensity),u_lightcolor:new t.Uniform3f(q,ot.u_lightcolor),u_vertical_gradient:new t.Uniform1f(q,ot.u_vertical_gradient),u_height_factor:new t.Uniform1f(q,ot.u_height_factor),u_image:new t.Uniform1i(q,ot.u_image),u_texsize:new t.Uniform2f(q,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f(q,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(q,ot.u_pixel_coord_lower),u_scale:new t.Uniform3f(q,ot.u_scale),u_fade:new t.Uniform1f(q,ot.u_fade),u_opacity:new t.Uniform1f(q,ot.u_opacity)}},td=function(q,ot,et,_t){var Ht=ot.style.light,pe=Ht.properties.get("position"),xe=[pe.x,pe.y,pe.z],Kt=t.create$1();Ht.properties.get("anchor")==="viewport"&&t.fromRotation(Kt,-ot.transform.angle),t.transformMat3(xe,xe,Kt);var fe=Ht.properties.get("color");return{u_matrix:q,u_lightpos:xe,u_lightintensity:Ht.properties.get("intensity"),u_lightcolor:[fe.r,fe.g,fe.b],u_vertical_gradient:+et,u_opacity:_t}},ih=function(q,ot,et,_t,Ht,pe,xe){return t.extend(td(q,ot,et,_t),Kh(pe,ot,xe),{u_height_factor:-Math.pow(2,Ht.overscaledZ)/xe.tileSize/8})},Oh=function(q,ot){return{u_matrix:new t.UniformMatrix4f(q,ot.u_matrix)}},wh=function(q,ot){return{u_matrix:new t.UniformMatrix4f(q,ot.u_matrix),u_image:new t.Uniform1i(q,ot.u_image),u_texsize:new t.Uniform2f(q,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f(q,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(q,ot.u_pixel_coord_lower),u_scale:new t.Uniform3f(q,ot.u_scale),u_fade:new t.Uniform1f(q,ot.u_fade)}},Vu=function(q,ot){return{u_matrix:new t.UniformMatrix4f(q,ot.u_matrix),u_world:new t.Uniform2f(q,ot.u_world)}},ou=function(q,ot){return{u_matrix:new t.UniformMatrix4f(q,ot.u_matrix),u_world:new t.Uniform2f(q,ot.u_world),u_image:new t.Uniform1i(q,ot.u_image),u_texsize:new t.Uniform2f(q,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f(q,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(q,ot.u_pixel_coord_lower),u_scale:new t.Un
Line truncated
|
||||
{name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-ocean",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["==","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-other",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["!in","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":{stops:[[0,10],[6,14]]},"text-field":`{name:latin}
|
||||
{name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2,visibility:"visible"},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"poi-level-3",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:16,filter:["all",["==","$type","Point"],[">=","rank",25]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin}
|
||||
{name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-2",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:15,filter:["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin}
|
||||
@@ -3341,10 +3341,10 @@ uniform `+ir+" "+Ye+" u_"+er+`;
|
||||
{name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{id:"place-town",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["==","class","town"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,14],[15,24]]},"text-field":`{name:latin}
|
||||
{name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{id:"place-city",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["!=","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin}
|
||||
{name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-city-capital",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin}
|
||||
{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}}),c$=zt((Q,Z)=>{Z.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © <a href='http://www.esri.com'>ESRI</a>"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}}),Q1=zt((Q,Z)=>{var c=J0(),g=u$(),z=c$(),S='© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',t="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",e="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",r="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",a="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",n="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",s="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",i={basic:r,streets:r,outdoors:r,light:t,dark:e,satellite:z,"satellite-streets":g,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:S,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:
Line truncated
|
||||
`),mapOnErrorMsg:"Map error."}}),F3=zt((Q,Z)=>{var c=Mn(),g=hi().defaultLine,z=Hh().attributes,S=ha(),t=nf().textposition,e=Jc().overrideAll,r=vu().templatedArray,a=Q1(),n=S({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});n.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var s=Z.exports=e({_arrayAttrRegexps:[c.counterRegex("map",".layers",!0)],domain:z({name:"map"}),style:{valType:"any",values:a.styleValuesMap,dflt:a.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:r("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:g},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:g}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:n,textposition:c.extendFlat({},t,{arrayOk:!1})}})},"plot","from-root");s.uirevision={valType:"any",editType:"none"}}),CT=zt((Q,Z)=>{var{hovertemplateAttrs:c,texttemplateAttrs:g,templatefallbackAttrs:z}=Ku(),S=F0(),t=bx(),e=nf(),r=F3(),a=Fa(),n=Mc(),s=Ca().extendFlat,i=Jc().overrideAll,l=F3(),f=t.line,x=t.marker;Z.exports=i({lon:t.lon,lat:t.lat,cluster:{enabled:{valType:"boolean"},maxzoom:s({},l.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:s({},x.opacity,{dflt:1})},mode:s({},e.mode,{dflt:"markers"}),text:s({},e.text,{}),texttemplate:g({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:z({editType:"plot"}),hovertext:s({},e.hovertext,{}),line:{color:f.color,width:f.width},connectgaps:e.connectgaps,marker:s({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:x.opacity,size:x.size,sizeref:x.sizeref,sizemin:x.sizemin,sizemode:x.sizemode},n("marker")),fill:t.fill,fillcolor:S(),textfont:r.layers.symbol.textfont,textposition:r.layers.symbol.textposition,below:{valType:"string"},selected:{marker:e.selected.marker},unselected:{marker:e.unselected.marker},hoverinfo:s({},a.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:c(),hovertemplatefallback:z()},"calc","nested")}),zC=zt((Q,Z)=>{var c=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];Z.exports={isSupportedFont:function(g){return c.indexOf(g)!==-1}}}),h$=zt((Q,Z)=>{var c=Mn(),g=Sc(),z=u0(),S=R0(),t=w0(),e=B0(),r=CT(),a=zC().isSupportedFont;Z.exports=function(s,i,l,f){function x(p,k){return c.coerce(s,i,r,p,k)}function y(p,k){return c.coerce2(s,i,r,p,k)}var v=n(s,i,x);if(!v){i.visible=!1;return}if(x("text"),x("texttemplate"),x("texttemplatefallback"),x("hovertext"),x("hovertemplate"),x("hovertemplatefallback"),x("mode"),x("below"),g.hasMarkers(i)){z(s,i,l,f,x,{noLine:!0,noAngle:!0}),x("marker.allowoverlap"),x("marker.angle");var T=i.marker;T.symbol!=="circle"&&(c.isArrayOrTypedArray(T.size)&&(T.size=T.size[0]),c.isArrayOrTypedArray(T.color)&&(T.color=T.color[0]))}g.hasLines(i)&&(S(s,i,l,f,x,{noDash:!0}),x("connectgaps"));var u=y("cluster.maxzoom"),b=y("cluster.step"),_=y("cluster.color",i.marker&&i.marker.color||l),P=y("cluster.size"),M=y("cluster.opacity"),E=u!==!1||b!==!1||_!==!1||P!==!1||M!==!1,A=x("cluster.enabled",E);if(A||g.hasText(i)){var h=f.font.family;t(s,i,f,x,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition
Line truncated
|
||||
`)),V.push({type:"Feature",geometry:{type:"Point",coordinates:F.lonlat},properties:{symbol:R(H),angle:O(H),text:W}})}}return{type:"FeatureCollection",features:V}}function T(M,E){return g.isArrayOrTypedArray(M)?E?function(A){return c(M[A])?+M[A]:0}:function(A){return M[A]}:M?function(){return M}:u}function u(){return""}function b(M){return M[0]===z}function _(M,E){var A;if(g.isArrayOrTypedArray(M)&&g.isArrayOrTypedArray(E)){A=["step",["get","point_count"],M[0]];for(var h=1;h<M.length;h++)A.push(E[h-1],M[h])}else A=M;return A}function P(M){var E=M.textfont,A=E.family,h=E.style,p=E.weight,k=A.split(" "),w=k[k.length-1]==="Italic";w&&k.pop(),w=w||h==="italic";var R=k.join(" ");p==="bold"&&k.indexOf("Bold")===-1?R+=" Bold":p<=1e3&&(k[0]==="Metropolis"?(R="Metropolis",p>850?R+=" Black":p>750?R+=" Extra Bold":p>650?R+=" Bold":p>550?R+=" Semi Bold":p>450?R+=" Medium":p>350?R+=" Regular":p>250?R+=" Light":p>150?R+=" Extra Light":R+=" Thin"):k.slice(0,2).join(" ")==="Open Sans"?(R="Open Sans",p>750?R+=" Extrabold":p>650?R+=" Bold":p>550?R+=" Semibold":p>350?R+=" Regular":R+=" Light"):k.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(R="Klokantech Noto Sans",k[3]==="CJK"&&(R+=" CJK"),R+=p>500?" Bold":" Regular")),w&&(R+=" Italic"),R==="Open Sans Regular Italic"?R="Open Sans Italic":R==="Open Sans Regular Bold"?R="Open Sans Bold":R==="Open Sans Regular Bold Italic"?R="Open Sans Bold Italic":R==="Klokantech Noto Sans Regular Italic"&&(R="Klokantech Noto Sans Italic"),n(R)||(R=A);var O=R.split(", ");return O}}),d$=zt((Q,Z)=>{var c=Mn(),g=f$(),z=Q1().traceLayerPrefix,S={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function t(r,a,n,s){this.type="scattermap",this.subplot=r,this.uid=a,this.clusterEnabled=n,this.isHidden=s,this.sourceIds={fill:"source-"+a+"-fill",line:"source-"+a+"-line",circle:"source-"+a+"-circle",symbol:"source-"+a+"-symbol",cluster:"source-"+a+"-circle",clusterCount:"source-"+a+"-circle"},this.layerIds={fill:z+a+"-fill",line:z+a+"-line",circle:z+a+"-circle",symbol:z+a+"-symbol",cluster:z+a+"-cluster",clusterCount:z+a+"-cluster-count"},this.below=null}var e=t.prototype;e.addSource=function(r,a,n){var s={type:"geojson",data:a.geojson};n&&n.enabled&&c.extendFlat(s,{cluster:!0,clusterMaxZoom:n.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[r]);i?i.setData(a.geojson):this.subplot.map.addSource(this.sourceIds[r],s)},e.setSourceData=function(r,a){this.subplot.map.getSource(this.sourceIds[r]).setData(a.geojson)},e.addLayer=function(r,a,n){var s={type:a.type,id:this.layerIds[r],source:this.sourceIds[r],layout:a.layout,paint:a.paint};a.filter&&(s.filter=a.filter);for(var i=this.layerIds[r],l,f=this.subplot.getMapLayers(),x=0;x<f.length;x++)if(f[x].id===i){l=!0;break}l?(this.subplot.setOptions(i,"setLayoutProperty",s.layout),s.layout.visibility==="visible"&&this.subplot.setOptions(i,"setPaintProperty",s.paint)):this.subplot.addLayer(s,n)},e.update=function(r){var a=r[0].trace,n=this.subplot,s=n.map,i=g(n.gd,r),l=n.belowLookup["trace-"+this.uid],f=!!(a.cluster&&a.cluster.enabled),x=!!this.clusterEnabled,y=this;function v(h){h||y.addSource("circle",i.circle,a.cluster);for(var p=S.cluster,k=0;k<p.length;k++){var w=p[k],R=i[w];y.addLayer(w,R,l)}}function T(h){for(var p=S.cluster,k=p.length-1;k>=0;k--){var w=p[k];s.removeLayer(y.layerIds[w])}h||s.removeSource(y.sourceIds.circle)}function u(h){for(var p=S.nonCluster,k=0;k<p.length;k++){var w=p[k],R=i[w];h||y.addSource(w,R),y.addLayer(w,R,l)}}function b(h){for(var p=S.nonCluster,k=p.length-1;k>=0;k--){var w=p[k];s.removeLayer(y.layerIds[w]),h||s.removeSource(y.sourceIds[w])}}function _(h){x?T(h):b(h)}function P(h){f?v(h):u(h)}function M(){for(var h=f?S.cluster:S.nonCluster,p=0;p<h.length;p++){var k=h[p],w=i[k];w&&(n.setOptions(y.layerIds[k],"setLayoutProperty",w.layout),w.layout.visibility==="visible"&&(k!=="cluster"&&y.setSourceData(k,w),n.setOptions(y.layerIds[k],"setPaintProperty",w.paint)))}}var E=this.isHidden,A=a.visible!==!0;A?E||_():E?A||P():x!==f?(_(),P()):(this.below!==l&&(_(!0),P(!0)),M()),this.clusterEnabled=f,this.isHidden=A,this.below=l,r[0].trace._glTrace=this},e.dispose=function(){for(var r=this.subplot.map,a=this.clusterEnabled?S.cluster:S.nonCluster,n=a.length-1;n>=0;n--){var s=a[n];r.removeLayer(this.layerIds[s]),r.removeSource(this.sourceIds[s])}},Z.exports=function(r,a){var n=a[0].trace,s=n.cluster&&n.cluster.enabled,i=n.visible!==!0,l=new t(r,n.uid,s,i),f=g(r.gd,a),x=l.below=r.belowLookup["trace-"+n.uid],y,v,T;if(s)for(l.addSource("circle",f.circle,n.cluster),y=0;y<S.cluster.length;y++)v=S.cluster[y],T=f[v],l.addLayer(v,T,x);else for(y=0;y<S.nonCluster.length;y++)v=S.nonCluster[y],T=f[v],l.addSource(v,T,n.cluster),l.addLayer(v,T,x);return a[0].trace._glTrace=l,l}}),ET=zt((Q,Z)=>{var c=rf(),g=Mn(),z=ju(),S=g.fillText,t=Li().BADNUM,e=Q1().traceLayerPrefix;function r(n,s,i){var l=n.cd,f=l[0].trace,x=n.xa,y=n.ya,v=n.subplot,T=[],u=e+f.uid+"-circle",b=f.cluster&&f.cluster.enabled;if(b){var _=v.map.qu
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(Pr[1])} }\`.`)];let Zr=[];return G.layerType==="symbol"&&(ke==="text-field"&&Rt&&!Rt.glyphs&&Zr.push(new Pt(nt,te,'use of "text-field" requires a style "glyphs" property')),ke==="text-font"&&Lf(Ih(te))&&Tu(te.type)==="identity"&&Zr.push(new Pt(nt,te,'"text-font" does not support identity functions'))),Zr.concat(bt({key:G.key,value:te,valueSpec:_r,style:Rt,styleSpec:Xt,expressionContext:"property",propertyType:D,propertyKey:ke}))}function zd(G){return Tf(G,"paint")}function xc(G){return Tf(G,"layout")}function td(G){let D=[],nt=G.value,bt=G.key,Rt=G.style,Xt=G.styleSpec;nt.type||nt.ref||D.push(new Pt(bt,nt,'either "type" or "ref" is required'));let te=Tu(nt.type),ke=Tu(nt.ref);if(nt.id){let Be=Tu(nt.id);for(let rr=0;rr<G.arrayIndex;rr++){let _r=Rt.layers[rr];Tu(_r.id)===Be&&D.push(new Pt(bt,nt.id,`duplicate layer id "${nt.id}", previously used at line ${_r.id.__line__}`))}}if("ref"in nt){let Be;["type","source","source-layer","filter","layout"].forEach(rr=>{rr in nt&&D.push(new Pt(bt,nt[rr],`"${rr}" is prohibited for ref layers`))}),Rt.layers.forEach(rr=>{Tu(rr.id)===ke&&(Be=rr)}),Be?Be.ref?D.push(new Pt(bt,nt.ref,"ref cannot reference another ref layer")):te=Tu(Be.type):D.push(new Pt(bt,nt.ref,`ref layer "${ke}" not found`))}else if(te!=="background")if(nt.source){let Be=Rt.sources&&Rt.sources[nt.source],rr=Be&&Tu(Be.type);Be?rr==="vector"&&te==="raster"?D.push(new Pt(bt,nt.source,`layer "${nt.id}" requires a raster source`)):rr!=="raster-dem"&&te==="hillshade"?D.push(new Pt(bt,nt.source,`layer "${nt.id}" requires a raster-dem source`)):rr==="raster"&&te!=="raster"?D.push(new Pt(bt,nt.source,`layer "${nt.id}" requires a vector source`)):rr!=="vector"||nt["source-layer"]?rr==="raster-dem"&&te!=="hillshade"?D.push(new Pt(bt,nt.source,"raster-dem source can only be used with layer type 'hillshade'.")):te!=="line"||!nt.paint||!nt.paint["line-gradient"]||rr==="geojson"&&Be.lineMetrics||D.push(new Pt(bt,nt,`layer "${nt.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):D.push(new Pt(bt,nt,`layer "${nt.id}" must specify a "source-layer"`)):D.push(new Pt(bt,nt.source,`source "${nt.source}" not found`))}else D.push(new Pt(bt,nt,'missing required property "source"'));return D=D.concat($c({key:bt,value:nt,valueSpec:Xt.layer,style:G.style,styleSpec:G.styleSpec,validateSpec:G.validateSpec,objectElementValidators:{"*":()=>[],type:()=>G.validateSpec({key:`${bt}.type`,value:nt.type,valueSpec:Xt.layer.type,style:G.style,styleSpec:G.styleSpec,validateSpec:G.validateSpec,object:nt,objectKey:"type"}),filter:of,layout:Be=>$c({layer:nt,key:Be.key,value:Be.value,style:Be.style,styleSpec:Be.styleSpec,validateSpec:Be.validateSpec,objectElementValidators:{"*":rr=>xc(Mt({layerType:te},rr))}}),paint:Be=>$c({layer:nt,key:Be.key,value:Be.value,style:Be.style,styleSpec:Be.styleSpec,validateSpec:Be.validateSpec,objectElementValidators:{"*":rr=>zd(Mt({layerType:te},rr))}})}})),D}function ih(G){let D=G.value,nt=G.key,bt=nu(D);return bt!=="string"?[new Pt(nt,D,`string expected, ${bt} found`)]:[]}let Oh={promoteId:function({key:G,value:D}){if(nu(D)==="string")return ih({key:G,value:D});{let nt=[];for(let bt in D)nt.push(...ih({key:`${G}.${bt}`,value:D[bt]}));return nt}}};function wh(G){let D=G.value,nt=G.key,bt=G.styleSpec,Rt=G.style,Xt=G.validateSpec;if(!D.type)return[new Pt(nt,D,'"type" is required')];let te=Tu(D.type),ke;switch(te){case"vector":case"raster":return ke=$c({key:nt,value:D,valueSpec:bt[`source_${te.replace("-","_")}`],style:G.style,styleSpec:bt,objectElementValidators:Oh,validateSpec:Xt}),ke;case"raster-dem":return ke=function(Be){var rr;let _r=(rr=Be.sourceName)!==null&&rr!==void 0?rr:"",Pr=Be.value,Zr=Be.styleSpec,hn=Zr.source_raster_dem,kn=Be.style,Fn=[],ai=nu(Pr);if(Pr===void 0)return Fn;if(ai!=="object")return Fn.push(new Pt("source_raster_dem",Pr,`object expected, ${ai} found`)),Fn;let Oi=Tu(Pr.encoding)==="custom",Ea=["redFactor","greenFactor","blueFactor","baseShift"],na=Be.value.encoding?`"${Be.value.encoding}"`:"Default";for(let xa in Pr)!Oi&&Ea.includes(xa)?Fn.push(new Pt(xa,Pr[xa],`In "${_r}": "${xa}" is only valid when "encoding" is set to "custom". ${na} encoding found`)):hn[xa]?Fn=Fn.concat(Be.validateSpec({key:xa,value:Pr[xa],valueSpec:hn[xa],validateSpec:Be.validateSpec,style:kn,styleSpec:Zr})):Fn.push(new Pt(xa,Pr[xa],`unknown property "${xa}"`));return Fn}({sourceName:nt,value:D,style:G.style,styleSpec:bt,validateSpec:Xt}),ke;case"geojson":if(ke=$c({key:nt,value:D,valueSpec:bt.source_geojson,style:Rt,styleSpec:bt,validateSpec:Xt,objectElementValidators:Oh}),D.cluster)for(let Be in D.clusterProperties){let[rr,_r]=D.clusterProperties[Be],Pr=typeof rr=="string"?[rr,["accumulated"],["get",Be]]:rr;ke.push(...Yh({key:`${nt}.${Be}.map`,value:_r,expressionContext:"cluster-map"})),ke.push(...Yh({key:`${nt}.${Be}.reduce`,value:Pr,expressionContext:"cluster-reduce"}))}return ke;Line truncated
|
||||
{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}}),c$=Rt((Q,Z)=>{Z.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © <a href='http://www.esri.com'>ESRI</a>"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}}),Q1=Rt((Q,Z)=>{var c=J0(),g=u$(),z=c$(),S='© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',t="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",e="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",r="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",a="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",n="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",s="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",i={basic:r,streets:r,outdoors:r,light:t,dark:e,satellite:z,"satellite-streets":g,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:S,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:
Line truncated
|
||||
`),mapOnErrorMsg:"Map error."}}),F3=Rt((Q,Z)=>{var c=Cn(),g=pi().defaultLine,z=Hh().attributes,S=ca(),t=nf().textposition,e=Jc().overrideAll,r=vu().templatedArray,a=Q1(),n=S({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});n.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var s=Z.exports=e({_arrayAttrRegexps:[c.counterRegex("map",".layers",!0)],domain:z({name:"map"}),style:{valType:"any",values:a.styleValuesMap,dflt:a.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:r("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:g},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:g}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:n,textposition:c.extendFlat({},t,{arrayOk:!1})}})},"plot","from-root");s.uirevision={valType:"any",editType:"none"}}),CT=Rt((Q,Z)=>{var{hovertemplateAttrs:c,texttemplateAttrs:g,templatefallbackAttrs:z}=Ku(),S=R0(),t=bx(),e=nf(),r=F3(),a=Ba(),n=Mc(),s=Ea().extendFlat,i=Jc().overrideAll,l=F3(),f=t.line,x=t.marker;Z.exports=i({lon:t.lon,lat:t.lat,cluster:{enabled:{valType:"boolean"},maxzoom:s({},l.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:s({},x.opacity,{dflt:1})},mode:s({},e.mode,{dflt:"markers"}),text:s({},e.text,{}),texttemplate:g({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:z({editType:"plot"}),hovertext:s({},e.hovertext,{}),line:{color:f.color,width:f.width},connectgaps:e.connectgaps,marker:s({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:x.opacity,size:x.size,sizeref:x.sizeref,sizemin:x.sizemin,sizemode:x.sizemode},n("marker")),fill:t.fill,fillcolor:S(),textfont:r.layers.symbol.textfont,textposition:r.layers.symbol.textposition,below:{valType:"string"},selected:{marker:e.selected.marker},unselected:{marker:e.unselected.marker},hoverinfo:s({},a.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:c(),hovertemplatefallback:z()},"calc","nested")}),zC=Rt((Q,Z)=>{var c=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];Z.exports={isSupportedFont:function(g){return c.indexOf(g)!==-1}}}),h$=Rt((Q,Z)=>{var c=Cn(),g=Sc(),z=u0(),S=B0(),t=w0(),e=N0(),r=CT(),a=zC().isSupportedFont;Z.exports=function(s,i,l,f){function x(p,k){return c.coerce(s,i,r,p,k)}function y(p,k){return c.coerce2(s,i,r,p,k)}var v=n(s,i,x);if(!v){i.visible=!1;return}if(x("text"),x("texttemplate"),x("texttemplatefallback"),x("hovertext"),x("hovertemplate"),x("hovertemplatefallback"),x("mode"),x("below"),g.hasMarkers(i)){z(s,i,l,f,x,{noLine:!0,noAngle:!0}),x("marker.allowoverlap"),x("marker.angle");var T=i.marker;T.symbol!=="circle"&&(c.isArrayOrTypedArray(T.size)&&(T.size=T.size[0]),c.isArrayOrTypedArray(T.color)&&(T.color=T.color[0]))}g.hasLines(i)&&(S(s,i,l,f,x,{noDash:!0}),x("connectgaps"));var u=y("cluster.maxzoom"),b=y("cluster.step"),_=y("cluster.color",i.marker&&i.marker.color||l),P=y("cluster.size"),M=y("cluster.opacity"),E=u!==!1||b!==!1||_!==!1||P!==!1||M!==!1,A=x("cluster.enabled",E);if(A||g.hasText(i)){var h=f.font.family;t(s,i,f,x,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition
Line truncated
|
||||
`)),V.push({type:"Feature",geometry:{type:"Point",coordinates:F.lonlat},properties:{symbol:R(H),angle:O(H),text:W}})}}return{type:"FeatureCollection",features:V}}function T(M,E){return g.isArrayOrTypedArray(M)?E?function(A){return c(M[A])?+M[A]:0}:function(A){return M[A]}:M?function(){return M}:u}function u(){return""}function b(M){return M[0]===z}function _(M,E){var A;if(g.isArrayOrTypedArray(M)&&g.isArrayOrTypedArray(E)){A=["step",["get","point_count"],M[0]];for(var h=1;h<M.length;h++)A.push(E[h-1],M[h])}else A=M;return A}function P(M){var E=M.textfont,A=E.family,h=E.style,p=E.weight,k=A.split(" "),w=k[k.length-1]==="Italic";w&&k.pop(),w=w||h==="italic";var R=k.join(" ");p==="bold"&&k.indexOf("Bold")===-1?R+=" Bold":p<=1e3&&(k[0]==="Metropolis"?(R="Metropolis",p>850?R+=" Black":p>750?R+=" Extra Bold":p>650?R+=" Bold":p>550?R+=" Semi Bold":p>450?R+=" Medium":p>350?R+=" Regular":p>250?R+=" Light":p>150?R+=" Extra Light":R+=" Thin"):k.slice(0,2).join(" ")==="Open Sans"?(R="Open Sans",p>750?R+=" Extrabold":p>650?R+=" Bold":p>550?R+=" Semibold":p>350?R+=" Regular":R+=" Light"):k.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(R="Klokantech Noto Sans",k[3]==="CJK"&&(R+=" CJK"),R+=p>500?" Bold":" Regular")),w&&(R+=" Italic"),R==="Open Sans Regular Italic"?R="Open Sans Italic":R==="Open Sans Regular Bold"?R="Open Sans Bold":R==="Open Sans Regular Bold Italic"?R="Open Sans Bold Italic":R==="Klokantech Noto Sans Regular Italic"&&(R="Klokantech Noto Sans Italic"),n(R)||(R=A);var O=R.split(", ");return O}}),d$=Rt((Q,Z)=>{var c=Cn(),g=f$(),z=Q1().traceLayerPrefix,S={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function t(r,a,n,s){this.type="scattermap",this.subplot=r,this.uid=a,this.clusterEnabled=n,this.isHidden=s,this.sourceIds={fill:"source-"+a+"-fill",line:"source-"+a+"-line",circle:"source-"+a+"-circle",symbol:"source-"+a+"-symbol",cluster:"source-"+a+"-circle",clusterCount:"source-"+a+"-circle"},this.layerIds={fill:z+a+"-fill",line:z+a+"-line",circle:z+a+"-circle",symbol:z+a+"-symbol",cluster:z+a+"-cluster",clusterCount:z+a+"-cluster-count"},this.below=null}var e=t.prototype;e.addSource=function(r,a,n){var s={type:"geojson",data:a.geojson};n&&n.enabled&&c.extendFlat(s,{cluster:!0,clusterMaxZoom:n.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[r]);i?i.setData(a.geojson):this.subplot.map.addSource(this.sourceIds[r],s)},e.setSourceData=function(r,a){this.subplot.map.getSource(this.sourceIds[r]).setData(a.geojson)},e.addLayer=function(r,a,n){var s={type:a.type,id:this.layerIds[r],source:this.sourceIds[r],layout:a.layout,paint:a.paint};a.filter&&(s.filter=a.filter);for(var i=this.layerIds[r],l,f=this.subplot.getMapLayers(),x=0;x<f.length;x++)if(f[x].id===i){l=!0;break}l?(this.subplot.setOptions(i,"setLayoutProperty",s.layout),s.layout.visibility==="visible"&&this.subplot.setOptions(i,"setPaintProperty",s.paint)):this.subplot.addLayer(s,n)},e.update=function(r){var a=r[0].trace,n=this.subplot,s=n.map,i=g(n.gd,r),l=n.belowLookup["trace-"+this.uid],f=!!(a.cluster&&a.cluster.enabled),x=!!this.clusterEnabled,y=this;function v(h){h||y.addSource("circle",i.circle,a.cluster);for(var p=S.cluster,k=0;k<p.length;k++){var w=p[k],R=i[w];y.addLayer(w,R,l)}}function T(h){for(var p=S.cluster,k=p.length-1;k>=0;k--){var w=p[k];s.removeLayer(y.layerIds[w])}h||s.removeSource(y.sourceIds.circle)}function u(h){for(var p=S.nonCluster,k=0;k<p.length;k++){var w=p[k],R=i[w];h||y.addSource(w,R),y.addLayer(w,R,l)}}function b(h){for(var p=S.nonCluster,k=p.length-1;k>=0;k--){var w=p[k];s.removeLayer(y.layerIds[w]),h||s.removeSource(y.sourceIds[w])}}function _(h){x?T(h):b(h)}function P(h){f?v(h):u(h)}function M(){for(var h=f?S.cluster:S.nonCluster,p=0;p<h.length;p++){var k=h[p],w=i[k];w&&(n.setOptions(y.layerIds[k],"setLayoutProperty",w.layout),w.layout.visibility==="visible"&&(k!=="cluster"&&y.setSourceData(k,w),n.setOptions(y.layerIds[k],"setPaintProperty",w.paint)))}}var E=this.isHidden,A=a.visible!==!0;A?E||_():E?A||P():x!==f?(_(),P()):(this.below!==l&&(_(!0),P(!0)),M()),this.clusterEnabled=f,this.isHidden=A,this.below=l,r[0].trace._glTrace=this},e.dispose=function(){for(var r=this.subplot.map,a=this.clusterEnabled?S.cluster:S.nonCluster,n=a.length-1;n>=0;n--){var s=a[n];r.removeLayer(this.layerIds[s]),r.removeSource(this.sourceIds[s])}},Z.exports=function(r,a){var n=a[0].trace,s=n.cluster&&n.cluster.enabled,i=n.visible!==!0,l=new t(r,n.uid,s,i),f=g(r.gd,a),x=l.below=r.belowLookup["trace-"+n.uid],y,v,T;if(s)for(l.addSource("circle",f.circle,n.cluster),y=0;y<S.cluster.length;y++)v=S.cluster[y],T=f[v],l.addLayer(v,T,x);else for(y=0;y<S.nonCluster.length;y++)v=S.nonCluster[y],T=f[v],l.addSource(v,T,n.cluster),l.addLayer(v,T,x);return a[0].trace._glTrace=l,l}}),ET=Rt((Q,Z)=>{var c=rf(),g=Cn(),z=ju(),S=g.fillText,t=Pi().BADNUM,e=Q1().traceLayerPrefix;function r(n,s,i){var l=n.cd,f=l[0].trace,x=n.xa,y=n.ya,v=n.subplot,T=[],u=e+f.uid+"-circle",b=f.cluster&&f.cluster.enabled;if(b){var _=v.map.qu
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(Pr[1])} }\`.`)];let Gr=[];return G.layerType==="symbol"&&(ke==="text-field"&&Ft&&!Ft.glyphs&&Gr.push(new Pt(nt,te,'use of "text-field" requires a style "glyphs" property')),ke==="text-font"&&Lf(Ih(te))&&Tu(te.type)==="identity"&&Gr.push(new Pt(nt,te,'"text-font" does not support identity functions'))),Gr.concat(bt({key:G.key,value:te,valueSpec:_r,style:Ft,styleSpec:Xt,expressionContext:"property",propertyType:D,propertyKey:ke}))}function zd(G){return Tf(G,"paint")}function xc(G){return Tf(G,"layout")}function td(G){let D=[],nt=G.value,bt=G.key,Ft=G.style,Xt=G.styleSpec;nt.type||nt.ref||D.push(new Pt(bt,nt,'either "type" or "ref" is required'));let te=Tu(nt.type),ke=Tu(nt.ref);if(nt.id){let Be=Tu(nt.id);for(let rr=0;rr<G.arrayIndex;rr++){let _r=Ft.layers[rr];Tu(_r.id)===Be&&D.push(new Pt(bt,nt.id,`duplicate layer id "${nt.id}", previously used at line ${_r.id.__line__}`))}}if("ref"in nt){let Be;["type","source","source-layer","filter","layout"].forEach(rr=>{rr in nt&&D.push(new Pt(bt,nt[rr],`"${rr}" is prohibited for ref layers`))}),Ft.layers.forEach(rr=>{Tu(rr.id)===ke&&(Be=rr)}),Be?Be.ref?D.push(new Pt(bt,nt.ref,"ref cannot reference another ref layer")):te=Tu(Be.type):D.push(new Pt(bt,nt.ref,`ref layer "${ke}" not found`))}else if(te!=="background")if(nt.source){let Be=Ft.sources&&Ft.sources[nt.source],rr=Be&&Tu(Be.type);Be?rr==="vector"&&te==="raster"?D.push(new Pt(bt,nt.source,`layer "${nt.id}" requires a raster source`)):rr!=="raster-dem"&&te==="hillshade"?D.push(new Pt(bt,nt.source,`layer "${nt.id}" requires a raster-dem source`)):rr==="raster"&&te!=="raster"?D.push(new Pt(bt,nt.source,`layer "${nt.id}" requires a vector source`)):rr!=="vector"||nt["source-layer"]?rr==="raster-dem"&&te!=="hillshade"?D.push(new Pt(bt,nt.source,"raster-dem source can only be used with layer type 'hillshade'.")):te!=="line"||!nt.paint||!nt.paint["line-gradient"]||rr==="geojson"&&Be.lineMetrics||D.push(new Pt(bt,nt,`layer "${nt.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):D.push(new Pt(bt,nt,`layer "${nt.id}" must specify a "source-layer"`)):D.push(new Pt(bt,nt.source,`source "${nt.source}" not found`))}else D.push(new Pt(bt,nt,'missing required property "source"'));return D=D.concat($c({key:bt,value:nt,valueSpec:Xt.layer,style:G.style,styleSpec:G.styleSpec,validateSpec:G.validateSpec,objectElementValidators:{"*":()=>[],type:()=>G.validateSpec({key:`${bt}.type`,value:nt.type,valueSpec:Xt.layer.type,style:G.style,styleSpec:G.styleSpec,validateSpec:G.validateSpec,object:nt,objectKey:"type"}),filter:of,layout:Be=>$c({layer:nt,key:Be.key,value:Be.value,style:Be.style,styleSpec:Be.styleSpec,validateSpec:Be.validateSpec,objectElementValidators:{"*":rr=>xc(Mt({layerType:te},rr))}}),paint:Be=>$c({layer:nt,key:Be.key,value:Be.value,style:Be.style,styleSpec:Be.styleSpec,validateSpec:Be.validateSpec,objectElementValidators:{"*":rr=>zd(Mt({layerType:te},rr))}})}})),D}function ih(G){let D=G.value,nt=G.key,bt=nu(D);return bt!=="string"?[new Pt(nt,D,`string expected, ${bt} found`)]:[]}let Oh={promoteId:function({key:G,value:D}){if(nu(D)==="string")return ih({key:G,value:D});{let nt=[];for(let bt in D)nt.push(...ih({key:`${G}.${bt}`,value:D[bt]}));return nt}}};function wh(G){let D=G.value,nt=G.key,bt=G.styleSpec,Ft=G.style,Xt=G.validateSpec;if(!D.type)return[new Pt(nt,D,'"type" is required')];let te=Tu(D.type),ke;switch(te){case"vector":case"raster":return ke=$c({key:nt,value:D,valueSpec:bt[`source_${te.replace("-","_")}`],style:G.style,styleSpec:bt,objectElementValidators:Oh,validateSpec:Xt}),ke;case"raster-dem":return ke=function(Be){var rr;let _r=(rr=Be.sourceName)!==null&&rr!==void 0?rr:"",Pr=Be.value,Gr=Be.styleSpec,cn=Gr.source_raster_dem,Tn=Be.style,Rn=[],ii=nu(Pr);if(Pr===void 0)return Rn;if(ii!=="object")return Rn.push(new Pt("source_raster_dem",Pr,`object expected, ${ii} found`)),Rn;let Di=Tu(Pr.encoding)==="custom",La=["redFactor","greenFactor","blueFactor","baseShift"],aa=Be.value.encoding?`"${Be.value.encoding}"`:"Default";for(let _a in Pr)!Di&&La.includes(_a)?Rn.push(new Pt(_a,Pr[_a],`In "${_r}": "${_a}" is only valid when "encoding" is set to "custom". ${aa} encoding found`)):cn[_a]?Rn=Rn.concat(Be.validateSpec({key:_a,value:Pr[_a],valueSpec:cn[_a],validateSpec:Be.validateSpec,style:Tn,styleSpec:Gr})):Rn.push(new Pt(_a,Pr[_a],`unknown property "${_a}"`));return Rn}({sourceName:nt,value:D,style:G.style,styleSpec:bt,validateSpec:Xt}),ke;case"geojson":if(ke=$c({key:nt,value:D,valueSpec:bt.source_geojson,style:Ft,styleSpec:bt,validateSpec:Xt,objectElementValidators:Oh}),D.cluster)for(let Be in D.clusterProperties){let[rr,_r]=D.clusterProperties[Be],Pr=typeof rr=="string"?[rr,["accumulated"],["get",Be]]:rr;ke.push(...Yh({key:`${nt}.${Be}.map`,value:_r,expressionContext:"cluster-map"})),ke.push(...Yh({key:`${nt}.${Be}.reduce`,value:Pr,expressionContext:"cluster-reduce"}))}return ke;Line truncated
|
||||
precision mediump float;
|
||||
#else
|
||||
#if !defined(lowp)
|
||||
@@ -3868,58 +3868,58 @@ void main() {
|
||||
#pragma mapbox: initialize lowp float halo_blur
|
||||
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
|
||||
camera_to_anchor_distance/u_camera_to_center_distance :
|
||||
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:Le("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:Le("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:Le("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:Le("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function Le(Zt,I){let ht=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Et=I.match(/attribute ([\w]+) ([\w]+)/g),Dt=Zt.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Wt=I.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Ae=Wt?Wt.concat(Dt):Dt,Fe={};return{fragmen
Line truncated
|
||||
#ifndef HAS_UNIFORM_u_${fn}
|
||||
varying ${Fr} ${Rr} ${fn};
|
||||
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:Le("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:Le("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:Le("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:Le("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function Le(Zt,I){let ht=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Et=I.match(/attribute ([\w]+) ([\w]+)/g),Ot=Zt.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Wt=I.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Ae=Wt?Wt.concat(Ot):Ot,Fe={};return{fragmen
Line truncated
|
||||
#ifndef HAS_UNIFORM_u_${hn}
|
||||
varying ${Fr} ${Rr} ${hn};
|
||||
#else
|
||||
uniform ${Fr} ${Rr} u_${fn};
|
||||
uniform ${Fr} ${Rr} u_${hn};
|
||||
#endif
|
||||
`:`
|
||||
#ifdef HAS_UNIFORM_u_${fn}
|
||||
${Fr} ${Rr} ${fn} = u_${fn};
|
||||
#ifdef HAS_UNIFORM_u_${hn}
|
||||
${Fr} ${Rr} ${hn} = u_${hn};
|
||||
#endif
|
||||
`)),vertexSource:I=I.replace(ht,(Ke,yr,Fr,Rr,fn)=>{let zn=Rr==="float"?"vec2":"vec4",Jt=fn.match(/color/)?"color":zn;return Fe[fn]?yr==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${fn}
|
||||
uniform lowp float u_${fn}_t;
|
||||
attribute ${Fr} ${zn} a_${fn};
|
||||
varying ${Fr} ${Rr} ${fn};
|
||||
`)),vertexSource:I=I.replace(ht,(Ke,yr,Fr,Rr,hn)=>{let In=Rr==="float"?"vec2":"vec4",Jt=hn.match(/color/)?"color":In;return Fe[hn]?yr==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${hn}
|
||||
uniform lowp float u_${hn}_t;
|
||||
attribute ${Fr} ${In} a_${hn};
|
||||
varying ${Fr} ${Rr} ${hn};
|
||||
#else
|
||||
uniform ${Fr} ${Rr} u_${fn};
|
||||
uniform ${Fr} ${Rr} u_${hn};
|
||||
#endif
|
||||
`:Jt==="vec4"?`
|
||||
#ifndef HAS_UNIFORM_u_${fn}
|
||||
${fn} = a_${fn};
|
||||
#ifndef HAS_UNIFORM_u_${hn}
|
||||
${hn} = a_${hn};
|
||||
#else
|
||||
${Fr} ${Rr} ${fn} = u_${fn};
|
||||
${Fr} ${Rr} ${hn} = u_${hn};
|
||||
#endif
|
||||
`:`
|
||||
#ifndef HAS_UNIFORM_u_${fn}
|
||||
${fn} = unpack_mix_${Jt}(a_${fn}, u_${fn}_t);
|
||||
#ifndef HAS_UNIFORM_u_${hn}
|
||||
${hn} = unpack_mix_${Jt}(a_${hn}, u_${hn}_t);
|
||||
#else
|
||||
${Fr} ${Rr} ${fn} = u_${fn};
|
||||
${Fr} ${Rr} ${hn} = u_${hn};
|
||||
#endif
|
||||
`:yr==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${fn}
|
||||
uniform lowp float u_${fn}_t;
|
||||
attribute ${Fr} ${zn} a_${fn};
|
||||
#ifndef HAS_UNIFORM_u_${hn}
|
||||
uniform lowp float u_${hn}_t;
|
||||
attribute ${Fr} ${In} a_${hn};
|
||||
#else
|
||||
uniform ${Fr} ${Rr} u_${fn};
|
||||
uniform ${Fr} ${Rr} u_${hn};
|
||||
#endif
|
||||
`:Jt==="vec4"?`
|
||||
#ifndef HAS_UNIFORM_u_${fn}
|
||||
${Fr} ${Rr} ${fn} = a_${fn};
|
||||
#ifndef HAS_UNIFORM_u_${hn}
|
||||
${Fr} ${Rr} ${hn} = a_${hn};
|
||||
#else
|
||||
${Fr} ${Rr} ${fn} = u_${fn};
|
||||
${Fr} ${Rr} ${hn} = u_${hn};
|
||||
#endif
|
||||
`:`
|
||||
#ifndef HAS_UNIFORM_u_${fn}
|
||||
${Fr} ${Rr} ${fn} = unpack_mix_${Jt}(a_${fn}, u_${fn}_t);
|
||||
#ifndef HAS_UNIFORM_u_${hn}
|
||||
${Fr} ${Rr} ${hn} = unpack_mix_${Jt}(a_${hn}, u_${hn}_t);
|
||||
#else
|
||||
${Fr} ${Rr} ${fn} = u_${fn};
|
||||
${Fr} ${Rr} ${hn} = u_${hn};
|
||||
#endif
|
||||
`}),staticAttributes:Et,staticUniforms:Ae}}class pr{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(I,ht,Et,Dt,Wt,Ae,Fe,Ke,yr){this.context=I;let Fr=this.boundPaintVertexBuffers.length!==Dt.length;for(let Rr=0;!Fr&&Rr<Dt.length;Rr++)this.boundPaintVertexBuffers[Rr]!==Dt[Rr]&&(Fr=!0);!this.vao||this.boundProgram!==ht||this.boundLayoutVertexBuffer!==Et||Fr||this.boundIndexBuffer!==Wt||this.boundVertexOffset!==Ae||this.boundDynamicVertexBuffer!==Fe||this.boundDynamicVertexBuffer2!==Ke||this.boundDynamicVertexBuffer3!==yr?this.freshBind(ht,Et,Dt,Wt,Ae,Fe,Ke,yr):(I.bindVertexArray.set(this.vao),Fe&&Fe.bind(),Wt&&Wt.dynamicDraw&&Wt.bind(),Ke&&Ke.bind(),yr&&yr.bind())}freshBind(I,ht,Et,Dt,Wt,Ae,Fe,Ke){let yr=I.numAttributes,Fr=this.context,Rr=Fr.gl;this.vao&&this.destroy(),this.vao=Fr.createVertexArray(),Fr.bindVertexArray.set(this.vao),this.boundProgram=I,this.boundLayoutVertexBuffer=ht,this.boundPaintVertexBuffers=Et,this.boundIndexBuffer=Dt,this.boundVertexOffset=Wt,this.boundDynamicVertexBuffer=Ae,this.boundDynamicVertexBuffer2=Fe,this.boundDynamicVertexBuffer3=Ke,ht.enableAttributes(Rr,I);for(let fn of Et)fn.enableAttributes(Rr,I);Ae&&Ae.enableAttributes(Rr,I),Fe&&Fe.enableAttributes(Rr,I),Ke&&Ke.enableAttributes(Rr,I),ht.bind(),ht.setVertexAttribPointers(Rr,I,Wt);for(let fn of Et)fn.bind(),fn.setVertexAttribPointers(Rr,I,Wt);Ae&&(Ae.bind(),Ae.setVertexAttribPointers(Rr,I,Wt)),Dt&&Dt.bind(),Fe&&(Fe.bind(),Fe.setVertexAttribPointers(Rr,I,Wt)),Ke&&(Ke.bind(),Ke.setVertexAttribPointers(Rr,I,Wt)),Fr.currentNumAttributes=yr}destroy(){this.vao&&(this.context.deleteVertexArray(this.vao),this.vao=null)}}let Wr=(Zt,I,ht,Et,Dt)=>({u_matrix:Zt,u_texture:0,u_ele_delta:I,u_fog_matrix:ht,u_fog_color:Et?Et.properties.get("fog-color"):e.aM.white,u_fog_ground_blend:Et?Et.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Et?Et.calculateFogBlendOpacity(Dt):0,u_horizon_color:Et?Et.properties.get("horizon-color"):e.aM.white,u_horizon_fog_blend:Et?Et.properties.get("horizon-fog-blend"):1});function wn(Zt){let I=[];for(let ht=0;ht<Zt.length;ht++){if(Zt[ht]===null)continue;let Et=Zt[ht].split(" ");I.push(Et.pop())}return I}class Hn{constructor(I,ht,Et,Dt,Wt,Ae){let Fe=I.gl;this.program=Fe.createProgram();let Ke=wn(ht.staticAttributes),yr=Et?Et.getBinderAttributes():[],Fr=Ke.concat(yr),Rr=un.prelude.staticUniforms?wn(un.prelude.staticUniforms):[],fn=ht.staticUniforms?wn(ht.staticUniforms):[],zn=Et?Et.getBinderUniforms():[],Jt=Rr.concat(fn).concat(zn),se=[];for(let Dr of Jt)se.indexOf(Dr)<0&&se.push(Dr);let _e=Et?Et.defines():[];Wt&&_e.push("#define OVERDRAW_INSPECTOR;"),Ae&&_e.push("#define TERRAIN3D;");let Se=_e.concat(un.prelude.fragmentSource,ht.fragmentSource).join(`
|
||||
`),je=_e.concat(un.prelude.vertexSource,ht.vertexSource).join(`
|
||||
`),De=Fe.createShader(Fe.FRAGMENT_SHADER);if(Fe.isContextLost())return void(this.failedToCreate=!0);if(Fe.shaderSource(De,Se),Fe.compileShader(De),!Fe.getShaderParameter(De,Fe.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${Fe.getShaderInfoLog(De)}`);Fe.attachShader(this.program,De);let qe=Fe.createShader(Fe.VERTEX_SHADER);if(Fe.isContextLost())return void(this.failedToCreate=!0);if(Fe.shaderSource(qe,je),Fe.compileShader(qe),!Fe.getShaderParameter(qe,Fe.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${Fe.getShaderInfoLog(qe)}`);Fe.attachShader(this.program,qe),this.attributes={};let kr={};this.numAttributes=Fr.length;for(let Dr=0;Dr<this.numAttributes;Dr++)Fr[Dr]&&(Fe.bindAttribLocation(this.program,Dr,Fr[Dr]),this.attributes[Fr[Dr]]=Dr);if(Fe.linkProgram(this.program),!Fe.getProgramParameter(this.program,Fe.LINK_STATUS))throw new Error(`Program failed to link: ${Fe.getProgramInfoLog(this.program)}`);Fe.deleteShader(qe),Fe.deleteShader(De);for(let Dr=0;Dr<se.length;Dr++){let jr=se[Dr];if(jr&&!kr[jr]){let rn=Fe.getUniformLocation(this.program,jr);rn&&(kr[jr]=rn)}}this.fixedUniforms=Dt(I,kr),this.terrainUniforms=((Dr,jr)=>({u_depth:new e.aH(Dr,jr.u_depth),u_terrain:new e.aH(Dr,jr.u_terrain),u_terrain_dim:new e.aI(Dr,jr.u_terrain_dim),u_terrain_matrix:new e.aJ(Dr,jr.u_terrain_matrix),u_terrain_unpack:new e.aK(Dr,jr.u_terrain_unpack),u_terrain_exaggeration:new e.aI(Dr,jr.u_terrain_exaggeration)}))(I,kr),this.binderUniforms=Et?Et.getUniforms(I,kr):[]}draw(I,ht,Et,Dt,Wt,Ae,Fe,Ke,yr,Fr,Rr,fn,zn,Jt,se,_e,Se,je){let De=I.gl;if(this.failedToCreate)return;if(I.program.set(this.program),I.setDepthMode(Et),I.setStencilMode(Dt),I.setColorMode(Wt),I.setCullFace(Ae),Ke){I.activeTexture.set(De.TEXTURE2),De.bindTexture(De.TEXTURE_2D,Ke.depthTexture),I.activeTexture.set(De.TEXTURE3),De.bindTexture(De.TEXTURE_2D,Ke.texture);for(let kr in this.terrainUniforms)this.terrainUniforms[kr].set(Ke[kr])}for(let kr in this.fixedUniforms)this.fixedUniforms[kr].set(Fe[kr]);se&&se.setUniforms(I,this.binderUniforms,zn,{zoom:Jt});let qe=0;switch(ht){case De.LINES:qe=2;break;case De.TRIANGLES:qe=3;break;case De.LINE_STRIP:qe=1}for(let kr of fn.get()){let Dr=kr.vaos||(kr.vaos={});(Dr[yr]||(Dr[yr]=new pr)).bind(I,this,Fr,se?se.getPaintVertexBuffers():[],Rr,kr.vertexOffset,_e,Se,je),De.drawElements(ht,kr.primitiveLength*qe,De.UNSIGNED_SHORT,kr.primitiveOffset*qe*2)}}}function ci(Zt,I,ht){let Et=1/Qn(ht,1,I.transform.tileZoom),Dt=Math.pow(2,ht.tileID.overscaledZ),Wt=ht.tileSize*Math.pow(2,I.transform.tileZoom)/Dt,Ae=Wt*(ht.tileID.canonical.x+ht.tileID.wrap*Dt),Fe=Wt*ht.tileID.canonical.y;return{u_image:0,u_texsize:ht.imageAtlasTexture.size,u_scale:[Et,Zt.fromScale,Zt.toScale],u_fade:Zt.t,u_pixel_coord_upper:[Ae>>16,Fe>>16],u_pixel_coord_lower:[65535&Ae,65535&Fe]}}let Rn=(Zt,I,ht,Et)=>{let Dt=I.style.light,Wt=Dt.properties.get("position"),Ae=[Wt.x,Wt.y,Wt.z],Fe=function(){var yr=new e.A(9);return e.A!=Float32Array&&(yr[1]=0,yr[2]=0,yr[3]=0,yr[5]=0,yr[6]=0,yr[7]=0),yr[0]=1,yr[4]=1,yr[8]=1,yr}();Dt.properties.get("anchor")==="viewport"&&function(yr,Fr){var Rr=Math.sin(Fr),fn=Math.cos(Fr);yr[0]=fn,yr[1]=Rr,yr[2]=0,yr[3]=-Rr,yr[4]=fn,yr[5]=0,yr[6]=0,yr[7]=0,yr[8]=1}(Fe,-I.transform.angle),function(yr,Fr,Rr){var fn=Fr[0],zn=Fr[1],Jt=Fr[2];yr[0]=fn*Rr[0]+zn*Rr[3]+Jt*Rr[6],yr[1]=fn*Rr[1]+zn*Rr[4]+Jt*Rr[7],yr[2]=fn*Rr[2]+zn*Rr[5]+Jt*Rr[8]}(Ae,Ae,Fe);let Ke=Dt.properties.get("color");return{u_matrix:Zt,u_lightpos:Ae,u_lightintensity:Dt.properties.get("intensity"),u_lightcolor:[Ke.r,Ke.g,Ke.b],u_vertical_gradient:+ht,u_opacity:Et}},In=(Zt,I,ht,Et,Dt,Wt,Ae)=>e.e(Rn(Zt,I,ht,Et),ci(Wt,I,Ae),{u_height_factor:-Math.pow(2,Dt.overscaledZ)/Ae.tileSize/8}),ii=Zt=>({u_matrix:Zt}),za=(Zt,I,ht,Et)=>e.e(ii(Zt),ci(ht,I,Et)),qi=(Zt,I)=>({u_matrix:Zt,u_world:I}),io=(Zt,I,ht,Et,Dt)=>e.e(za(Zt,I,ht,Et),{u_world:Dt}),no=(Zt,I,ht,Et)=>{let Dt=Zt.transform,Wt,Ae;if(Et.paint.get("circle-pitch-alignment")==="map"){let Fe=Qn(ht,1,Dt.zoom);Wt=!0,Ae=[Fe,Fe]}else Wt=!1,Ae=Dt.pixelsToGLUnits;return{u_camera_to_center_distance:Dt.cameraToCenterDistance,u_scale_with_map:+(Et.paint.get("circle-pitch-scale")==="map"),u_matrix:Zt.translatePosMatrix(I.posMatrix,ht,Et.paint.get("circle-translate"),Et.paint.get("circle-translate-anchor")),u_pitch_with_map:+Wt,u_device_pixel_ratio:Zt.pixelRatio,u_extrude_scale:Ae}},No=(Zt,I,ht)=>({u_matrix:Zt,u_inv_matrix:I,u_camera_to_center_distance:ht.cameraToCenterDistance,u_viewport_size:[ht.width,ht.height]}),wo=(Zt,I,ht=1)=>({u_matrix:Zt,u_color:I,u_overlay:0,u_overlay_scale:ht}),jo=Zt=>({u_matrix:Zt}),Ra=(Zt,I,ht,Et)=>({u_matrix:Zt,u_extrude_scale:Qn(I,1,ht),u_intensity:Et}),xs=(Zt,I,ht,Et)=>{let Dt=e.H();e.aP(Dt,0,Zt.width,Zt.height,0,0,1);let Wt=Zt.context.gl;return{u_matrix:Dt,u_world:[Wt.drawingBufferWidth,Wt.drawingBufferHeight],u_image:ht,u_color_ramp:Et,u_opacity:I.paint.get("heatmap-opacity")}};function ss(Zt,I){let ht=Math.pow(2,I.canonical.z),Et=I.canonical.y;return[new e.Z(0,Et/ht).toLngLat().lat,ne
Line truncated
|
||||
`}),staticAttributes:Et,staticUniforms:Ae}}class pr{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(I,ht,Et,Ot,Wt,Ae,Fe,Ke,yr){this.context=I;let Fr=this.boundPaintVertexBuffers.length!==Ot.length;for(let Rr=0;!Fr&&Rr<Ot.length;Rr++)this.boundPaintVertexBuffers[Rr]!==Ot[Rr]&&(Fr=!0);!this.vao||this.boundProgram!==ht||this.boundLayoutVertexBuffer!==Et||Fr||this.boundIndexBuffer!==Wt||this.boundVertexOffset!==Ae||this.boundDynamicVertexBuffer!==Fe||this.boundDynamicVertexBuffer2!==Ke||this.boundDynamicVertexBuffer3!==yr?this.freshBind(ht,Et,Ot,Wt,Ae,Fe,Ke,yr):(I.bindVertexArray.set(this.vao),Fe&&Fe.bind(),Wt&&Wt.dynamicDraw&&Wt.bind(),Ke&&Ke.bind(),yr&&yr.bind())}freshBind(I,ht,Et,Ot,Wt,Ae,Fe,Ke){let yr=I.numAttributes,Fr=this.context,Rr=Fr.gl;this.vao&&this.destroy(),this.vao=Fr.createVertexArray(),Fr.bindVertexArray.set(this.vao),this.boundProgram=I,this.boundLayoutVertexBuffer=ht,this.boundPaintVertexBuffers=Et,this.boundIndexBuffer=Ot,this.boundVertexOffset=Wt,this.boundDynamicVertexBuffer=Ae,this.boundDynamicVertexBuffer2=Fe,this.boundDynamicVertexBuffer3=Ke,ht.enableAttributes(Rr,I);for(let hn of Et)hn.enableAttributes(Rr,I);Ae&&Ae.enableAttributes(Rr,I),Fe&&Fe.enableAttributes(Rr,I),Ke&&Ke.enableAttributes(Rr,I),ht.bind(),ht.setVertexAttribPointers(Rr,I,Wt);for(let hn of Et)hn.bind(),hn.setVertexAttribPointers(Rr,I,Wt);Ae&&(Ae.bind(),Ae.setVertexAttribPointers(Rr,I,Wt)),Ot&&Ot.bind(),Fe&&(Fe.bind(),Fe.setVertexAttribPointers(Rr,I,Wt)),Ke&&(Ke.bind(),Ke.setVertexAttribPointers(Rr,I,Wt)),Fr.currentNumAttributes=yr}destroy(){this.vao&&(this.context.deleteVertexArray(this.vao),this.vao=null)}}let Wr=(Zt,I,ht,Et,Ot)=>({u_matrix:Zt,u_texture:0,u_ele_delta:I,u_fog_matrix:ht,u_fog_color:Et?Et.properties.get("fog-color"):e.aM.white,u_fog_ground_blend:Et?Et.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Et?Et.calculateFogBlendOpacity(Ot):0,u_horizon_color:Et?Et.properties.get("horizon-color"):e.aM.white,u_horizon_fog_blend:Et?Et.properties.get("horizon-fog-blend"):1});function kn(Zt){let I=[];for(let ht=0;ht<Zt.length;ht++){if(Zt[ht]===null)continue;let Et=Zt[ht].split(" ");I.push(Et.pop())}return I}class $n{constructor(I,ht,Et,Ot,Wt,Ae){let Fe=I.gl;this.program=Fe.createProgram();let Ke=kn(ht.staticAttributes),yr=Et?Et.getBinderAttributes():[],Fr=Ke.concat(yr),Rr=ln.prelude.staticUniforms?kn(ln.prelude.staticUniforms):[],hn=ht.staticUniforms?kn(ht.staticUniforms):[],In=Et?Et.getBinderUniforms():[],Jt=Rr.concat(hn).concat(In),se=[];for(let Dr of Jt)se.indexOf(Dr)<0&&se.push(Dr);let _e=Et?Et.defines():[];Wt&&_e.push("#define OVERDRAW_INSPECTOR;"),Ae&&_e.push("#define TERRAIN3D;");let Se=_e.concat(ln.prelude.fragmentSource,ht.fragmentSource).join(`
|
||||
`),je=_e.concat(ln.prelude.vertexSource,ht.vertexSource).join(`
|
||||
`),De=Fe.createShader(Fe.FRAGMENT_SHADER);if(Fe.isContextLost())return void(this.failedToCreate=!0);if(Fe.shaderSource(De,Se),Fe.compileShader(De),!Fe.getShaderParameter(De,Fe.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${Fe.getShaderInfoLog(De)}`);Fe.attachShader(this.program,De);let qe=Fe.createShader(Fe.VERTEX_SHADER);if(Fe.isContextLost())return void(this.failedToCreate=!0);if(Fe.shaderSource(qe,je),Fe.compileShader(qe),!Fe.getShaderParameter(qe,Fe.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${Fe.getShaderInfoLog(qe)}`);Fe.attachShader(this.program,qe),this.attributes={};let kr={};this.numAttributes=Fr.length;for(let Dr=0;Dr<this.numAttributes;Dr++)Fr[Dr]&&(Fe.bindAttribLocation(this.program,Dr,Fr[Dr]),this.attributes[Fr[Dr]]=Dr);if(Fe.linkProgram(this.program),!Fe.getProgramParameter(this.program,Fe.LINK_STATUS))throw new Error(`Program failed to link: ${Fe.getProgramInfoLog(this.program)}`);Fe.deleteShader(qe),Fe.deleteShader(De);for(let Dr=0;Dr<se.length;Dr++){let jr=se[Dr];if(jr&&!kr[jr]){let nn=Fe.getUniformLocation(this.program,jr);nn&&(kr[jr]=nn)}}this.fixedUniforms=Ot(I,kr),this.terrainUniforms=((Dr,jr)=>({u_depth:new e.aH(Dr,jr.u_depth),u_terrain:new e.aH(Dr,jr.u_terrain),u_terrain_dim:new e.aI(Dr,jr.u_terrain_dim),u_terrain_matrix:new e.aJ(Dr,jr.u_terrain_matrix),u_terrain_unpack:new e.aK(Dr,jr.u_terrain_unpack),u_terrain_exaggeration:new e.aI(Dr,jr.u_terrain_exaggeration)}))(I,kr),this.binderUniforms=Et?Et.getUniforms(I,kr):[]}draw(I,ht,Et,Ot,Wt,Ae,Fe,Ke,yr,Fr,Rr,hn,In,Jt,se,_e,Se,je){let De=I.gl;if(this.failedToCreate)return;if(I.program.set(this.program),I.setDepthMode(Et),I.setStencilMode(Ot),I.setColorMode(Wt),I.setCullFace(Ae),Ke){I.activeTexture.set(De.TEXTURE2),De.bindTexture(De.TEXTURE_2D,Ke.depthTexture),I.activeTexture.set(De.TEXTURE3),De.bindTexture(De.TEXTURE_2D,Ke.texture);for(let kr in this.terrainUniforms)this.terrainUniforms[kr].set(Ke[kr])}for(let kr in this.fixedUniforms)this.fixedUniforms[kr].set(Fe[kr]);se&&se.setUniforms(I,this.binderUniforms,In,{zoom:Jt});let qe=0;switch(ht){case De.LINES:qe=2;break;case De.TRIANGLES:qe=3;break;case De.LINE_STRIP:qe=1}for(let kr of hn.get()){let Dr=kr.vaos||(kr.vaos={});(Dr[yr]||(Dr[yr]=new pr)).bind(I,this,Fr,se?se.getPaintVertexBuffers():[],Rr,kr.vertexOffset,_e,Se,je),De.drawElements(ht,kr.primitiveLength*qe,De.UNSIGNED_SHORT,kr.primitiveOffset*qe*2)}}}function fi(Zt,I,ht){let Et=1/Qn(ht,1,I.transform.tileZoom),Ot=Math.pow(2,ht.tileID.overscaledZ),Wt=ht.tileSize*Math.pow(2,I.transform.tileZoom)/Ot,Ae=Wt*(ht.tileID.canonical.x+ht.tileID.wrap*Ot),Fe=Wt*ht.tileID.canonical.y;return{u_image:0,u_texsize:ht.imageAtlasTexture.size,u_scale:[Et,Zt.fromScale,Zt.toScale],u_fade:Zt.t,u_pixel_coord_upper:[Ae>>16,Fe>>16],u_pixel_coord_lower:[65535&Ae,65535&Fe]}}let Bn=(Zt,I,ht,Et)=>{let Ot=I.style.light,Wt=Ot.properties.get("position"),Ae=[Wt.x,Wt.y,Wt.z],Fe=function(){var yr=new e.A(9);return e.A!=Float32Array&&(yr[1]=0,yr[2]=0,yr[3]=0,yr[5]=0,yr[6]=0,yr[7]=0),yr[0]=1,yr[4]=1,yr[8]=1,yr}();Ot.properties.get("anchor")==="viewport"&&function(yr,Fr){var Rr=Math.sin(Fr),hn=Math.cos(Fr);yr[0]=hn,yr[1]=Rr,yr[2]=0,yr[3]=-Rr,yr[4]=hn,yr[5]=0,yr[6]=0,yr[7]=0,yr[8]=1}(Fe,-I.transform.angle),function(yr,Fr,Rr){var hn=Fr[0],In=Fr[1],Jt=Fr[2];yr[0]=hn*Rr[0]+In*Rr[3]+Jt*Rr[6],yr[1]=hn*Rr[1]+In*Rr[4]+Jt*Rr[7],yr[2]=hn*Rr[2]+In*Rr[5]+Jt*Rr[8]}(Ae,Ae,Fe);let Ke=Ot.properties.get("color");return{u_matrix:Zt,u_lightpos:Ae,u_lightintensity:Ot.properties.get("intensity"),u_lightcolor:[Ke.r,Ke.g,Ke.b],u_vertical_gradient:+ht,u_opacity:Et}},On=(Zt,I,ht,Et,Ot,Wt,Ae)=>e.e(Bn(Zt,I,ht,Et),fi(Wt,I,Ae),{u_height_factor:-Math.pow(2,Ot.overscaledZ)/Ae.tileSize/8}),ni=Zt=>({u_matrix:Zt}),Oa=(Zt,I,ht,Et)=>e.e(ni(Zt),fi(ht,I,Et)),qi=(Zt,I)=>({u_matrix:Zt,u_world:I}),io=(Zt,I,ht,Et,Ot)=>e.e(Oa(Zt,I,ht,Et),{u_world:Ot}),no=(Zt,I,ht,Et)=>{let Ot=Zt.transform,Wt,Ae;if(Et.paint.get("circle-pitch-alignment")==="map"){let Fe=Qn(ht,1,Ot.zoom);Wt=!0,Ae=[Fe,Fe]}else Wt=!1,Ae=Ot.pixelsToGLUnits;return{u_camera_to_center_distance:Ot.cameraToCenterDistance,u_scale_with_map:+(Et.paint.get("circle-pitch-scale")==="map"),u_matrix:Zt.translatePosMatrix(I.posMatrix,ht,Et.paint.get("circle-translate"),Et.paint.get("circle-translate-anchor")),u_pitch_with_map:+Wt,u_device_pixel_ratio:Zt.pixelRatio,u_extrude_scale:Ae}},No=(Zt,I,ht)=>({u_matrix:Zt,u_inv_matrix:I,u_camera_to_center_distance:ht.cameraToCenterDistance,u_viewport_size:[ht.width,ht.height]}),bo=(Zt,I,ht=1)=>({u_matrix:Zt,u_color:I,u_overlay:0,u_overlay_scale:ht}),jo=Zt=>({u_matrix:Zt}),Na=(Zt,I,ht,Et)=>({u_matrix:Zt,u_extrude_scale:Qn(I,1,ht),u_intensity:Et}),_s=(Zt,I,ht,Et)=>{let Ot=e.H();e.aP(Ot,0,Zt.width,Zt.height,0,0,1);let Wt=Zt.context.gl;return{u_matrix:Ot,u_world:[Wt.drawingBufferWidth,Wt.drawingBufferHeight],u_image:ht,u_color_ramp:Et,u_opacity:I.paint.get("heatmap-opacity")}};function ss(Zt,I){let ht=Math.pow(2,I.canonical.z),Et=I.canonical.y;return[new e.Z(0,Et/ht).toLngLat().lat,ne
Line truncated
|
||||
* pad-left <https://github.com/jonschlinkert/pad-left>
|
||||
*
|
||||
* Copyright (c) 2014-2015, Jon Schlinkert.
|
||||
@@ -3988,4 +3988,4 @@ maplibre-gl/dist/maplibre-gl.js:
|
||||
* MapLibre GL JS
|
||||
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.7.1/LICENSE.txt
|
||||
*)
|
||||
*/return window.Plotly=C,C})}(u4)),u4.exports}var PF=zmt();const iv=rD(PF),sA=CG({__proto__:null,default:iv},[PF]),Imt={class:"p-6 space-y-6"},Omt={class:"flex justify-between items-center"},Dmt={class:"flex items-center gap-3"},Fmt=["value"],Rmt={class:"grid grid-cols-1 sm:grid-cols-2 gap-4"},Bmt={class:"glass-card rounded-[15px] p-6"},Nmt={class:"mb-6"},jmt={class:"relative h-48 bg-white/5 rounded-lg p-4"},Umt={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm z-20"},Vmt={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 z-20"},Hmt={class:"mb-6"},Wmt={class:"relative h-48 bg-white/5 rounded-lg p-4"},$mt={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm z-20"},qmt={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 z-20"},Zmt={class:"glass-card rounded-[15px] p-6"},Gmt={class:"grid grid-cols-1 lg:grid-cols-3 gap-6"},Ymt={class:"lg:col-span-2"},Kmt={class:"relative h-64 bg-white/5 rounded-lg p-4"},Xmt={class:"flex flex-col items-center justify-center"},Jmt={class:"relative w-48 h-48"},Qmt={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm rounded-full z-20"},tgt={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 rounded-full z-20"},egt={key:0,class:"glass-card rounded-[15px] p-8 text-center"},rgt={key:1,class:"glass-card rounded-[15px] p-8 text-center"},ngt={class:"text-white/60 text-sm"},igt=dc({name:"StatisticsView",__name:"Statistics",setup(d){g1.register(lF,uF,KD,fw,FD,OD,DD,aF,sF,nF,ZD,JD,eF,L4);const o=cw(),C=ca(null),B=ca(!1),Y=ca(24),dt=[{value:1,label:"1 Hour"},{value:6,label:"6 Hours"},{value:12,label:"12 Hours"},{value:24,label:"24 Hours"},{value:48,label:"2 Days"},{value:168,label:"1 Week"}],xt=ca(null),Ct=ca(null),Ut=ca([]),re=ca(null),ae=ca([]),we=ca(!0),Xe=ca(null),fr=ca({packetRate:!0,packetType:!0,noiseFloor:!1,routePie:!0}),Tr=ca(!1),mr=ca(!1),Sr=ca(!1),Yr=ca(null),zt=ca(null),on=ca(null),ti=ca(null),Gn=ca(null),ei=ca(null),Si=ca(null),ji=Bo(()=>{const Po=o.packetStats;return Po?{totalRx:Po.total_packets||0,totalTx:Po.transmitted_packets||0}:{totalRx:0,totalTx:0}}),nn=Bo(()=>{let Po=[],Za=[];if(xt.value?.series){const Ca=xt.value.series.find(uo=>uo.type==="rx_count"),ha=xt.value.series.find(uo=>uo.type==="tx_count");Ca?.data&&(Po=Ca.data.map(([,uo])=>uo)),ha?.data&&(Za=ha.data.map(([,uo])=>uo))}return{totalPackets:Po,transmittedPackets:Za,droppedPackets:[]}}),yi=async()=>{try{we.value=!0,Xe.value=null,await Promise.all([o.fetchPacketStats({hours:Y.value}),o.fetchSystemStats()]),we.value=!1,Yn()}catch(Po){Xe.value=Po instanceof Error?Po.message:"Failed to fetch data",we.value=!1}},Yn=async()=>{fr.value={packetRate:!0,packetType:!0,noiseFloor:!1,routePie:!0};const Po=[li(),jn(),$n(),Li()];try{await Promise.allSettled(Po),await L0(),!ti.value||!Gn.value?setTimeout(()=>{pa()},100):pa()}catch(Za){console.error("Error loading chart data:",Za)}},li=async()=>{fr.value.packetRate=!0;try{const Po=await Ou.get("/metrics_graph_data",{hours:Y.value,resolution:"average",metrics:"rx_count,tx_count"});Po?.success&&(xt.value=Po.data)}catch{xt.value=null}},jn=async()=>{fr.value.packetType=!0;try{const Po=await Ou.get("/packet_type_graph_data",{hours:Y.value,resolution:"average",types:"all"});if(Po?.success&&Po.data){const Za=Po.data;Ut.value=Za.series||[]}}catch{Ut.value=[]}},$n=async()=>{fr.value.routePie=!0;try{const Po=await Ou.get("/route_stats",{hours:Y.value});Po?.success&&Po.data&&(re.value=Po.data)}catch{re.value=null}},Li=async()=>{try{const Po=await Ou.get("/noise_floor_history",{hours:Y.value});if(Po.success&&Po.data){const Ca=Po.data.history||[];Array.isArray(Ca)&&Ca.length>0&&(Ct.value={chart_data:Ca.map(ha=>({timestamp:ha.timestamp||Date.now()/1e3,noise_floor_dbm:ha.noise_floor_dbm||ha.noise_floor||-120}))},Kn())}}catch{Ct.value={chart_data:[]}}},Ln=()=>{rl(),Tr.value=!1,mr.value=!1,Sr.value=!1,yi()},Kn=()=>{if(ae.value=[],Ct.value?.chart_data&&Ct.value.chart_data.length>0){const Po=Ct.value.chart_data,Za=Math.max(1,Math.floor(Po.length/100));ae.value=Po.filter((Ca,ha)=>ha%Za===0).map(Ca=>({timestamp:Ca.timestamp*1e3,snr:null,rssi:null,noiseFloor:Ca.noise_floor_dbm}))}},pa=()=>{if(!B.value){B.value=!0;try{qa(),oo(),Ua(),Us(),setTimeout(()=>{fr.value.packetRate&&Yr.value&&(fr.value.packetRate=!1),fr.value.packetType&&zt.value&&(fr.value.packetType=!1),fr.value.routePie&&Si.value&&(fr.value.routePie=!1),fr.value.routePie&&Si.value&&(fr.value.routePie=!1),setTimeout(()=>{const Po=Eu(Yr.value),Za=Eu(zt.value),Ca=Eu(on.value);Po&&Po.update("none"),Za&&Za.update("none"),Ca&&Ca.update("none")},50)},100)}catch(Po){console.error("Error creating/updating charts:",Po),rl()}finally{B.value=!1}}},rl=()=>{try{Yr.value&&(Yr.value.destroy(),Yr.value=null),zt.value&&(zt.value.destroy(),zt.value=null),on.value&&(on.value.destroy(),on.value=null),Si.value&&iv.purge(Si.value)}catch(Po){console.error("Error destroying chaLine truncated
|
||||
*/return window.Plotly=C,C})}(u4)),u4.exports}var PF=Qmt();const iv=rD(PF),sA=CG({__proto__:null,default:iv},[PF]),tgt={class:"p-6 space-y-6"},egt={class:"flex justify-between items-center"},rgt={class:"flex items-center gap-3"},ngt=["value"],igt={class:"grid grid-cols-1 sm:grid-cols-2 gap-4"},agt={class:"glass-card rounded-[15px] p-6"},ogt={class:"mb-6"},sgt={class:"relative h-48 bg-white/5 rounded-lg p-4"},lgt={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm z-20"},ugt={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 z-20"},cgt={class:"mb-6"},hgt={class:"relative h-48 bg-white/5 rounded-lg p-4"},fgt={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm z-20"},dgt={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 z-20"},pgt={class:"glass-card rounded-[15px] p-6"},mgt={class:"grid grid-cols-1 lg:grid-cols-3 gap-6"},ggt={class:"lg:col-span-2"},vgt={class:"relative h-64 bg-white/5 rounded-lg p-4"},ygt={class:"flex flex-col items-center justify-center"},xgt={class:"relative w-48 h-48"},_gt={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm rounded-full z-20"},bgt={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 rounded-full z-20"},wgt={key:0,class:"glass-card rounded-[15px] p-8 text-center"},kgt={key:1,class:"glass-card rounded-[15px] p-8 text-center"},Tgt={class:"text-white/60 text-sm"},Agt=dc({name:"StatisticsView",__name:"Statistics",setup(d){g1.register(lF,uF,KD,fw,FD,OD,DD,aF,sF,nF,ZD,JD,eF,L4);const o=cw(),C=da(null),B=da(!1),Y=da(24),dt=[{value:1,label:"1 Hour"},{value:6,label:"6 Hours"},{value:12,label:"12 Hours"},{value:24,label:"24 Hours"},{value:48,label:"2 Days"},{value:168,label:"1 Week"}],xt=da(null),Ct=da(null),Ut=da([]),re=da(null),ae=da([]),we=da(!0),Xe=da(null),fr=da({packetRate:!0,packetType:!0,noiseFloor:!1,routePie:!0}),Tr=da(!1),mr=da(!1),Sr=da(!1),Yr=da(null),Rt=da(null),ai=da(null),fn=da(null),dn=da(null),_i=da(null),oi=da(null),Kn=Bo(()=>{const ra=o.packetStats;return ra?{totalRx:ra.total_packets||0,totalTx:ra.transmitted_packets||0}:{totalRx:0,totalTx:0}}),qr=Bo(()=>{let ra=[],za=[];if(xt.value?.series){const Ea=xt.value.series.find(so=>so.type==="rx_count"),ca=xt.value.series.find(so=>so.type==="tx_count");Ea?.data&&(ra=Ea.data.map(([,so])=>so)),ca?.data&&(za=ca.data.map(([,so])=>so))}return{totalPackets:ra,transmittedPackets:za,droppedPackets:[]}}),hi=async()=>{try{we.value=!0,Xe.value=null,await Promise.all([o.fetchPacketStats({hours:Y.value}),o.fetchSystemStats()]),we.value=!1,Hn()}catch(ra){Xe.value=ra instanceof Error?ra.message:"Failed to fetch data",we.value=!1}},Hn=async()=>{fr.value={packetRate:!0,packetType:!0,noiseFloor:!1,routePie:!0};const ra=[si(),Yn(),ti(),Pi()];try{await Promise.allSettled(ra),await L0(),!fn.value||!dn.value?setTimeout(()=>{ea()},100):ea()}catch(za){console.error("Error loading chart data:",za)}},si=async()=>{fr.value.packetRate=!0;try{const ra=await Ou.get("/metrics_graph_data",{hours:Y.value,resolution:"average",metrics:"rx_count,tx_count"});ra?.success&&(xt.value=ra.data)}catch{xt.value=null}},Yn=async()=>{fr.value.packetType=!0;try{const ra=await Ou.get("/packet_type_graph_data",{hours:Y.value,resolution:"average",types:"all"});if(ra?.success&&ra.data){const za=ra.data;Ut.value=za.series||[]}}catch{Ut.value=[]}},ti=async()=>{fr.value.routePie=!0;try{const ra=await Ou.get("/route_stats",{hours:Y.value});ra?.success&&ra.data&&(re.value=ra.data)}catch{re.value=null}},Pi=async()=>{try{const ra=await Ou.get("/noise_floor_history",{hours:Y.value});if(ra.success&&ra.data){const Ea=ra.data.history||[];Array.isArray(Ea)&&Ea.length>0&&(Ct.value={chart_data:Ea.map(ca=>({timestamp:ca.timestamp||Date.now()/1e3,noise_floor_dbm:ca.noise_floor_dbm||ca.noise_floor||-120}))},Wn())}}catch{Ct.value={chart_data:[]}}},Dn=()=>{Ds(),Tr.value=!1,mr.value=!1,Sr.value=!1,hi()},Wn=()=>{if(ae.value=[],Ct.value?.chart_data&&Ct.value.chart_data.length>0){const ra=Ct.value.chart_data,za=Math.max(1,Math.floor(ra.length/100));ae.value=ra.filter((Ea,ca)=>ca%za===0).map(Ea=>({timestamp:Ea.timestamp*1e3,snr:null,rssi:null,noiseFloor:Ea.noise_floor_dbm}))}},ea=()=>{if(!B.value){B.value=!0;try{Eo(),ys(),vo(),Do(),setTimeout(()=>{fr.value.packetRate&&Yr.value&&(fr.value.packetRate=!1),fr.value.packetType&&Rt.value&&(fr.value.packetType=!1),fr.value.routePie&&oi.value&&(fr.value.routePie=!1),fr.value.routePie&&oi.value&&(fr.value.routePie=!1),setTimeout(()=>{const ra=Eu(Yr.value),za=Eu(Rt.value),Ea=Eu(ai.value);ra&&ra.update("none"),za&&za.update("none"),Ea&&Ea.update("none")},50)},100)}catch(ra){console.error("Error creating/updating charts:",ra),Ds()}finally{B.value=!1}}},Ds=()=>{try{Yr.value&&(Yr.value.destroy(),Yr.value=null),Rt.value&&(Rt.value.destroy(),Rt.value=null),ai.value&&(ai.value.destroy(),ai.value=null),oi.value&&iv.purge(oi.value)}catch(ra){console.error("Error destroying chaLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
@tailwind base;@tailwind components;@tailwind utilities;:root{--vt-c-white: #ffffff;--vt-c-white-soft: #f8f8f8;--vt-c-white-mute: #f2f2f2;--vt-c-black: #181818;--vt-c-black-soft: #222222;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}@media (prefers-color-scheme: dark){:root{--color-background: var(--vt-c-black);--color-background-soft: var(--vt-c-black-soft);--color-background-mute: var(--vt-c-black-mute);--color-border: var(--vt-c-divider-dark-2);--color-border-hover: var(--vt-c-divider-dark-1);--color-heading: var(--vt-c-text-dark-1);--color-text: var(--vt-c-text-dark-2)}}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}body{min-height:100vh;color:var(--color-text);background:var(--color-background);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Noto Sans,-apple-system,Roboto,Helvetica,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
@tailwind base;@tailwind components;@tailwind utilities;:root{--vt-c-white: #ffffff;--vt-c-white-soft: #f8f8f8;--vt-c-white-mute: #f2f2f2;--vt-c-black: #181818;--vt-c-black-soft: #222222;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}@media (prefers-color-scheme: dark){:root{--color-background: var(--vt-c-black);--color-background-soft: var(--vt-c-black-soft);--color-background-mute: var(--vt-c-black-mute);--color-border: var(--vt-c-divider-dark-2);--color-border-hover: var(--vt-c-divider-dark-1);--color-heading: var(--vt-c-text-dark-1);--color-text: var(--vt-c-text-dark-2)}}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}body{min-height:100vh;color:var(--color-text);background:var(--color-background);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Noto Sans,-apple-system,Roboto,Helvetica,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.Line truncated
|
||||
@@ -8,8 +8,8 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<script type="module" crossorigin src="/assets/index-GsHv-mhm.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-DG39Cjdn.css">
|
||||
<script type="module" crossorigin src="/assets/index-Bn7AOH36.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-jXjQ2-1g.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in new issue
Block a user