@perspective-dev/viewer 5.8.0 → 5.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/cdn/perspective-viewer.js +12 -12
  2. package/dist/cdn/perspective-viewer.js.map +4 -4
  3. package/dist/css/blueprint.css +1 -1
  4. package/dist/css/botanical.css +1 -1
  5. package/dist/css/dracula.css +1 -1
  6. package/dist/css/eggplant.css +1 -1
  7. package/dist/css/gruvbox-dark.css +1 -1
  8. package/dist/css/gruvbox.css +1 -1
  9. package/dist/css/ledger.css +1 -1
  10. package/dist/css/monokai.css +1 -1
  11. package/dist/css/nord.css +1 -1
  12. package/dist/css/phosphor.css +1 -1
  13. package/dist/css/pro-dark.css +1 -1
  14. package/dist/css/pro-light.css +1 -0
  15. package/dist/css/pro.css +1 -1
  16. package/dist/css/solarized-dark.css +1 -1
  17. package/dist/css/solarized.css +1 -1
  18. package/dist/css/themes.css +1 -1
  19. package/dist/css/vaporwave.css +1 -1
  20. package/dist/css/velvet.css +1 -1
  21. package/dist/custom-elements.json +206 -75
  22. package/dist/docs/perspective-docs.json +1 -1
  23. package/dist/esm/bootstrap.d.ts +32 -3
  24. package/dist/esm/perspective-viewer.d.ts +5 -3
  25. package/dist/esm/perspective-viewer.js +150 -143
  26. package/dist/esm/perspective-viewer.js.map +4 -4
  27. package/dist/ts-rs/Layout.d.ts +1 -1
  28. package/dist/ts-rs/OptionalUpdate.d.ts +4 -0
  29. package/dist/ts-rs/PanelViewerConfig.d.ts +3 -3
  30. package/dist/ts-rs/SplitLayout.d.ts +2 -1
  31. package/dist/ts-rs/ViewerConfig.d.ts +14 -10
  32. package/dist/ts-rs/ViewerConfigUpdate.d.ts +4 -0
  33. package/dist/ts-rs/WorkspaceConfig.d.ts +16 -2
  34. package/dist/ts-rs/WorkspaceConfigUpdate.d.ts +7 -6
  35. package/dist/wasm/perspective-viewer.d.ts +74 -61
  36. package/dist/wasm/perspective-viewer.js +221 -169
  37. package/dist/wasm/perspective-viewer.wasm +0 -0
  38. package/dist/wasm/perspective-viewer.wasm.d.ts +16 -16
  39. package/package.json +6 -6
  40. /package/dist/wasm/snippets/{perspective-viewer-941ba6dae7521dbe → perspective-viewer-659c02666b5f5853}/inline0.js +0 -0
  41. /package/dist/wasm/snippets/{perspective-viewer-941ba6dae7521dbe → perspective-viewer-659c02666b5f5853}/inline1.js +0 -0
  42. /package/dist/wasm/snippets/{perspective-viewer-941ba6dae7521dbe → perspective-viewer-659c02666b5f5853}/inline2.js +0 -0
  43. /package/dist/wasm/snippets/{perspective-viewer-941ba6dae7521dbe → perspective-viewer-659c02666b5f5853}/inline3.js +0 -0
  44. /package/dist/wasm/snippets/{perspective-viewer-941ba6dae7521dbe → perspective-viewer-659c02666b5f5853}/inline4.js +0 -0
  45. /package/dist/wasm/snippets/{perspective-viewer-941ba6dae7521dbe → perspective-viewer-659c02666b5f5853}/inline5.js +0 -0
@@ -1,22 +1,22 @@
1
- var Q={type:"split-layout",orientation:"horizontal",sizes:[],children:[]},k=Object.freeze({CUSTOM_EVENT_NAME_PREFIX:"regular-layout",CHILD_ATTRIBUTE_NAME:"name",MIN_DRAG_DISTANCE:10,SHOULD_ROUND:!1,OVERLAY_CLASSNAME:"overlay",MINIMUM_REDISTRIBUTION_SIZE_THRESHOLD:.15,SPLIT_EDGE_TOLERANCE:.33,SPLIT_ROOT_EDGE_TOLERANCE:.03,GRID_TRACK_COLLAPSE_TOLERANCE:.001,OVERLAY_DEFAULT:"absolute",GRID_DIVIDER_SIZE:6,GRID_DIVIDER_CHECK_TARGET:!0});function kt(t,e,n){return(e.length===0||Math.abs(n-e[e.length-1])>t.GRID_TRACK_COLLAPSE_TOLERANCE)&&e.push(n),e}function At(t,e){return e.sort((n,r)=>n-r).reduce(kt.bind(void 0,t),[])}function V(t,e,n,r,_){if(t.type==="tab-layout")return[n,r];let i=[n,r];if(t.orientation===e){let o=n,a=r-n;for(let s=0;s<t.children.length;s++){let b=t.sizes[s],u=o+b*a;i.push(...V(t.children[s],e,o,u,_)),o=u}}else for(let o of t.children)i.push(...V(o,e,n,r,_));return At(_,i)}function M(t,e,n){let r=e.findIndex(_=>Math.abs(_-n)<t.GRID_TRACK_COLLAPSE_TOLERANCE);return r===-1?0:r}function tt(t,e,n,r,_,i,o,a){if(t.type==="tab-layout"){let h=t.selected??0,m=M(a,e,r),P=M(a,e,_),G=M(a,n,i),St=M(a,n,o);return t.tabs.map((Ct,Tt)=>({child:Ct,colStart:m,colEnd:P,rowStart:G,rowEnd:St,zIndex:t.tabs.length>1&&Tt===h?1:void 0}))}let{children:s,sizes:b,orientation:u}=t,c=u==="horizontal",l=c?r:i,d=c?_-r:o-i,w=[];for(let h=0;h<s.length;h++){let m=l+b[h]*d;c?w.push(...tt(s[h],e,n,l,m,i,o,a)):w.push(...tt(s[h],e,n,r,_,l,m,a)),l=m}return w}var et=(t,e)=>`:host ::slotted(*){display:none}:host{display:grid;grid-template-rows:${t};grid-template-columns:${e}}`,U=(t,e,n,r,_)=>`:host ::slotted([${t.CHILD_ATTRIBUTE_NAME}="${e}"]){display:flex;grid-column:${r};grid-row:${n}${_===void 0?"":`;z-index:${_}`}}`;function S(t,e,n=k){if(t.type==="tab-layout"){let c=t.selected??0,l=t.tabs.length>1;return[et("100%","100%"),...t.tabs.map((d,w)=>U(n,d,"1","1",l&&w===c?1:void 0))].join(`
2
- `)}let r=c=>c.slice(0,-1).map((l,d)=>c[d+1]-l).map(l=>`${n.SHOULD_ROUND?Math.round(l*100):l*100}fr`).join(" "),_=V(t,"horizontal",0,1,n),i=r(_),o=V(t,"vertical",0,1,n),a=r(o),s=(c,l)=>l-c===1?`${c+1}`:`${c+1} / ${l+1}`,b=tt(t,_,o,0,1,0,1,n),u=[et(a,i)];for(let c of b){let l=s(c.colStart,c.colEnd),d=s(c.rowStart,c.rowEnd);u.push(U(n,c.child,d,l,c.zIndex)),c.child===e?.[1]&&(u.push(U(n,e[0],d,l)),u.push(`:host ::slotted([${n.CHILD_ATTRIBUTE_NAME}=${e[0]}]){z-index:2}`))}return u.join(`
3
- `)}function Pt(t,e=k){return[et("100%","100%"),U(e,t,"1","1")].join(`
4
- `)}var Rt={row_start:0,row_end:1,col_start:0,col_end:1};function C(t,e,n,r=null){return lt(t,e,n,r)}function lt(t,e,n,r,_=null,i=structuredClone(Rt),o=[]){if(t<0||e<0||t>1||e>1)return null;if(n.type==="tab-layout"){let w=n.selected??0,h=i.col_end-i.col_start,m=i.row_end-i.row_start;return{type:"layout-path",layout:n,slot:n.tabs[w],path:o,view_window:i,is_edge:!1,column:t,row:e,column_offset:(t-i.col_start)/h,row_offset:(e-i.row_start)/m,orientation:_||"horizontal"}}let a=n.orientation==="vertical",s=a?e:t,b=a?"row_start":"col_start",u=a?"row_end":"col_end",c=a?r?.rect?.height:r?.rect?.width,l=i[b],d=i[u]-i[b];for(let w=0;w<n.children.length;w++){let h=l+d*n.sizes[w];if(r&&c){let m=r.size/c;if(Math.abs(s-h)<m)return{path:[...o,w],type:n.orientation,view_window:{...i,[b]:l,[u]:h}}}if(s>=l&&(s<h||w===n.children.length-1))return lt(t,e,n.children[w],r,n.orientation,{...i,[b]:l,[u]:h},[...o,w]);l=h}return null}function W(t,e){if(t.type==="tab-layout"){if(t.tabs.includes(e)){let o=t.tabs.filter(a=>a!==e);return o.length===0?structuredClone(Q):{type:"tab-layout",tabs:o}}return structuredClone(t)}let n=structuredClone(t),r=n.children.findIndex(o=>o.type==="tab-layout"?o.tabs.includes(e):!1);if(r!==-1){let o=n.children[r];if(o.tabs.length===1){let a=n.children.filter((b,u)=>u!==r),s=Lt(n.sizes,r);if(a.length===1)return a[0];n.children=a,n.sizes=s}else o.tabs.splice(o.tabs.indexOf(e),1),o.selected&&o.selected>=o.tabs.length&&o.selected--;return n}let _=!1,i=n.children.map(o=>{if(o.type==="split-layout"){let a=W(o,e);return a!==o&&(_=!0),a}return o});return _&&(n.children=i),n}function Lt(t,e){let n=[],r=t[e],_=0;for(let i=0;i<t.length;i++)i!==e&&(_+=t[i]);for(let i=0;i<t.length;i++)if(i!==e){let o=t[i]/_;n.push(t[i]+r*o)}return n}function z(t,e,n,r){let _=c=>({type:"tab-layout",tabs:[c]});if(n.length===0){if(t.type==="tab-layout")return{type:"tab-layout",tabs:[e,...t.tabs]};if(r)return{type:"split-layout",orientation:r,children:[_(e),t],sizes:[.5,.5]};{let c=[...t.children,_(e)],l=[...t.sizes,K(c.length)];return{...t,children:c,sizes:N(l)}}}let[i,...o]=n;if(r&&o.length===0){if(t.type==="split-layout"&&t.orientation===r){let l=[...t.children];l.splice(i,0,_(e));let d=[...t.sizes];return d.splice(i,0,K(l.length)),{...t,children:l,sizes:N(d)}}let c=i===0?[_(e),t]:[t,_(e)];return{type:"split-layout",orientation:r,children:c,sizes:[.5,.5]}}if(t.type==="tab-layout"){if(o.length===0&&r===void 0&&i>=0&&i<=t.tabs.length){let c=[...t.tabs];return c.splice(i,0,e),{...t,tabs:c}}return z({type:"split-layout",orientation:r||"horizontal",children:[t],sizes:[1]},e,n,r)}if(o.length===0||i===t.children.length){if(r&&t.children[i]){let d={type:"split-layout",orientation:r,children:[_(e),t.children[i]],sizes:[.5,.5]},w=[...t.children];return w[i]=d,{...t,children:w,sizes:N(t.sizes)}}let c=[...t.children];c.splice(i,0,_(e));let l=[...t.sizes];return l.splice(i,0,K(c.length)),{...t,children:c,sizes:N(l)}}let a=t.children[i],s=a.type==="tab-layout"&&o.length>0&&r!==void 0?t.orientation==="horizontal"?"vertical":"horizontal":r,b=z(a,e,o,s),u=[...t.children];return u[i]=b,{...t,children:u}}function K(t){return 1/Math.max(1,t-1)}function N(t){let e=t.reduce((n,r)=>n+r,0);return!Number.isFinite(e)||e<=0?t.map(()=>1/t.length):t.map(n=>n/e)}function Y(t,e,n,r=k){let _=structuredClone(t),i=_,o={horizontal:n||0,vertical:n||0};for(let a=0;a<e.length-1;a++)i.type==="split-layout"&&(o[i.orientation]/=i.sizes[e[a]],i=i.children[e[a]]);if(i.type==="split-layout")if(n===void 0)i.sizes=i.sizes.map(a=>1/i.sizes.length);else{let a=o[i.orientation],s=e[e.length-1];s<i.sizes.length-1&&(i.sizes=Dt(r,i.sizes,s,a))}return _}function Dt(t,e,n,r){let _=[...e],i=0;for(let a=0;a<=n;a++)i+=e[a];let o=0;for(let a=n+1;a<e.length;a++)o+=e[a];r=Math.sign(r)*Math.min(Math.abs(r),(1-t.MINIMUM_REDISTRIBUTION_SIZE_THRESHOLD)*(r>0?i:o));for(let a=0;a<=n;a++){let s=e[a]/i;_[a]=e[a]-r*s}for(let a=n+1;a<e.length;a++){let s=e[a]/o;_[a]=e[a]+r*s}return _}function ut(t,e,n,r){let _=parseFloat(n.paddingLeft),i=parseFloat(n.paddingTop),o=e.width-_-parseFloat(n.paddingRight),a=e.height-i-parseFloat(n.paddingBottom),s=_+t.col_start*o,b=i+t.row_start*a,u=(t.col_end-t.col_start)*o,c=(t.row_end-t.row_start)*a;if(r){let l=parseFloat(r.marginTop),d=parseFloat(r.marginRight),w=parseFloat(r.marginBottom),h=parseFloat(r.marginLeft);u-=h+d,c-=l+w}return{x:s,y:b,width:u,height:c}}function Ot(t,e,n,r,_=k,i){if(!r)return`:host ::slotted([${_.CHILD_ATTRIBUTE_NAME}="${t}"]){display:none;}`;let o=ut(r.view_window,e,n,i),a=`display:flex;position:absolute!important;z-index:2;top:${o.y}px;left:${o.x}px;height:${o.height}px;width:${o.width}px;`;return`::slotted([${_.CHILD_ATTRIBUTE_NAME}="${t}"]){${a}}`}function nt(t){if(t.type==="tab-layout")return t.selected=t.selected||0,t;let e=[],n=[];for(let r=0;r<t.children.length;r++){let _=t.children[r],i=t.sizes[r],o=nt(_);if(o.type==="split-layout"&&o.orientation===t.orientation)for(let a=0;a<o.children.length;a++)e.push(o.children[a]),n.push(o.sizes[a]*i);else e.push(o),n.push(i)}return e.length===1?e[0]:{type:"split-layout",orientation:t.orientation,children:e,sizes:n}}function zt(t,e){return gt(t,e,[])}function gt(t,e,n){if(e.type==="tab-layout")return e.tabs.includes(t)?n:null;for(let r=0;r<e.children.length;r++){let _=gt(t,e.children[r],[...n,r]);if(_)return _}return null}function Mt(t){let e={};return bt(t,e,[],null,{row_start:0,row_end:1,col_start:0,col_end:1}),e}function bt(t,e,n,r,_){if(t.type==="tab-layout"){let u=t.selected??0,c=t.tabs[u],l=(_.col_start+_.col_end)/2,d=(_.row_start+_.row_end)/2;e[c]={type:"layout-path",layout:t,slot:c,path:n,view_window:_,is_edge:!1,column:l,row:d,column_offset:.5,row_offset:.5,orientation:r||"horizontal"};return}let i=t.orientation==="vertical",o=i?"row_start":"col_start",a=i?"row_end":"col_end",s=_[o],b=_[a]-_[o];for(let u=0;u<t.children.length;u++){let c=s+b*t.sizes[u],l={..._,[o]:s,[a]:c};bt(t.children[u],e,[...n,u],t.orientation,l),s=c}}var Nt=class{constructor(t,e,n){this.P=t,this.S=e,this.T=n}#n=!1;#t=[];#e=null;#r=0;run(t,e,n){return new Promise((r,_)=>{this.#t.push({layout:t,fn:e,overlay:n,resolve:r,reject:_}),this.#n||this.#_()})}resume(){if(this.#e){let t=this.#e;this.#e=null,t()}}cancelPending(){this.#r++;let t=this.#t;this.#t=[];for(let e of t)e.resolve()}async#_(){this.#n=!0;try{for(;this.#t.length>0;){let t=this.#t;this.#t=[];let e=this.#r,n=t[t.length-1];this.#i(n.layout,n.overlay)||await new Promise(_=>{this.#e=_});let r=e!==this.#r;for(let _ of t)try{r||_.fn(),_.resolve()}catch(i){_.reject(i)}}}finally{this.#n=!1}}#i(t,e){this.T?.();let n={calculatePresizePaths:()=>Mt(t),overlay:e},r=new CustomEvent(this.S,{cancelable:!0,detail:n});return this.P.dispatchEvent(r)}};function it(t,e,n,r,_,i,o=k){if(t<o.SPLIT_ROOT_EDGE_TOLERANCE)return j(n,r,_,[0],!0,"horizontal");if(t>1-o.SPLIT_ROOT_EDGE_TOLERANCE)return j(n,r,_,_.path.length>0?_.path:[1],!1,"horizontal");if(e<o.SPLIT_ROOT_EDGE_TOLERANCE)return j(n,r,_,[0],!0,"vertical");if(e>1-o.SPLIT_ROOT_EDGE_TOLERANCE)return j(n,r,_,_.path.length>0?_.path:[1],!1,"vertical");let a=_.column_offset<o.SPLIT_EDGE_TOLERANCE||_.column_offset>1-o.SPLIT_EDGE_TOLERANCE,s=_.row_offset<o.SPLIT_EDGE_TOLERANCE||_.row_offset>1-o.SPLIT_EDGE_TOLERANCE;if(a&&s){let b=Math.abs(_.column_offset-.5),u=Math.abs(_.row_offset-.5),c=(i?.width||1)*(_.view_window.col_end-_.view_window.col_start),l=(i?.height||1)*(_.view_window.row_end-_.view_window.row_start),d=c/2-b*c<l/2-u*l;return q(n,r,_,d?_.column_offset<o.SPLIT_EDGE_TOLERANCE:_.row_offset<o.SPLIT_EDGE_TOLERANCE,d?"horizontal":"vertical")}return a?q(n,r,_,_.column_offset<o.SPLIT_EDGE_TOLERANCE,"horizontal"):s?q(n,r,_,_.row_offset<o.SPLIT_EDGE_TOLERANCE,"vertical"):{..._,path:[..._.path,0]}}function j(t,e,n,r,_,i){return q(t,e,{...n,path:r,orientation:i},_,i)}function q(t,e,n,r,_){let i;if(n.orientation===_)if(n.path.length===0)i=[r?0:1];else{let s=n.path[n.path.length-1];i=[...n.path.slice(0,-1),r?s:s+1]}else i=[...n.path,r?0:1];let o=z(t,e,i,_),a=jt(o,i);return{...n,path:i,slot:n.slot,is_edge:!0,orientation:_,view_window:a}}function jt(t,e){let n={row_start:0,row_end:1,col_start:0,col_end:1},r=t;for(let _ of e){if(r.type==="tab-layout")break;let i=Math.min(_,r.children.length-1),o=r.orientation==="vertical",a=o?"row_start":"col_start",s=o?"row_end":"col_end",b=n[s]-n[a],u=r.sizes.slice(0,i).reduce((c,l)=>c+l*b,n[a]);n={...n,[a]:u,[s]:u+b*r.sizes[i]},r=r.children[i]}return n}var Ft=class{constructor(t){this.p=t}async set(t,{slot:e},n=this.p.physics.OVERLAY_CLASSNAME,r=this.p.physics.OVERLAY_DEFAULT){let _=this.p,i=W(_.panel,e),o=`:scope > [${_.physics.CHILD_ATTRIBUTE_NAME}="${e}"]`,a=_.querySelector(o);a&&a.classList.add(n);let[s,b,u,c]=_.relativeCoordinates(t,!0),l=C(s,b,i);l&&(l=it(s,b,i,e,l,u,_.physics));let d=l?{slot:e,path:l}:null;await _.presizeQueue.run(i,()=>{if(r==="grid"&&l){let m=[e,l?.slot],P=S(i,m,_.physics);_.stylesheet.replaceSync(P)}else if(r==="absolute"){let m=S(i,void 0,_.physics);for(;a?.tagName==="SLOT"&&a;)a=a.assignedElements()[0];let P=a?getComputedStyle(a):void 0,G=Ot(e,u,c,l,_.physics,P);_.stylesheet.replaceSync([m,G].join(`
5
- `))}},d);let w=`${_.physics.CUSTOM_EVENT_NAME_PREFIX}-before-update`,h=new CustomEvent(w,{detail:i});_.dispatchEvent(h)}async clear(t,{slot:e,layout:n},r=this.p.physics.OVERLAY_CLASSNAME){let _=this.p,i=W(_.panel,e),o=`:scope > [${_.physics.CHILD_ATTRIBUTE_NAME}="${e}"]`,a=_.querySelector(o);if(t===null){await _.restore(n);return}let[s,b,u]=_.relativeCoordinates(t,!1),c=C(s,b,i);if(c&&(c=it(s,b,i,e,c,u,_.physics)),c){let l=c?.is_edge?c.orientation:void 0,d=z(i,e,c.path,l);await _.restore(d)}else await _.restore(n);a&&a.classList.remove(r)}},$t=class extends HTMLElement{s;n;r;a;h;d;u;i;t;l;E;f;L;constructor(){super(),this.t=k,this.n=structuredClone(Q),this.r=this.n,this.s=this.attachShadow({mode:"open"}),this.s.innerHTML="<slot></slot>",this.a=new CSSStyleSheet,this.h=new CSSStyleSheet,this.u=!1;let t=`${this.t.CUSTOM_EVENT_NAME_PREFIX}-before-resize`;this.l=new Nt(this,t,()=>{this.i=void 0}),this.E=new Ft(this.create_overlay_host()),this.s.adoptedStyleSheets=[this.a,this.h]}connectedCallback(){this.L??=new ResizeObserver(()=>{this.i=void 0}),this.L.observe(this),this.addEventListener("dblclick",this.onDblClick),this.addEventListener("pointerdown",this.onPointerDown),this.addEventListener("pointerup",this.onPointerUp),this.addEventListener("pointermove",this.onPointerMove)}disconnectedCallback(){this.L?.disconnect(),this.removeEventListener("dblclick",this.onDblClick),this.removeEventListener("pointerdown",this.onPointerDown),this.removeEventListener("pointerup",this.onPointerUp),this.removeEventListener("pointermove",this.onPointerMove)}calculateIntersect=t=>{let[e,n,r]=this.relativeCoordinates(t,!1);return C(e,n,this.n)};calculatePath=t=>zt(t,this.n);setOverlayState=async(t,e,n,r)=>{await this.E.set(t,e,n,r)};clearOverlayState=async(t,e,n)=>{await this.E.clear(t,e,n)};insertPanel=async(t,e=[],n)=>{let r;typeof n=="boolean"&&n?r="horizontal":typeof n=="string"&&(r=n),await this.restore(z(this.r,t,e,r))};removePanel=async t=>{await this.restore(W(this.r,t))};select=async t=>{let e=structuredClone(this.r),n=this.getPanel(t,e);if(!n)return;let r=n.tabs.indexOf(t);r!==-1&&n.selected!==r&&(n.selected=r,await this.restore(e));let _=`${this.t.CUSTOM_EVENT_NAME_PREFIX}-select`;this.dispatchEvent(new CustomEvent(_,{detail:{name:t}}))};getPanel=(t,e=this.n)=>{if(e.type==="tab-layout")return e.tabs.includes(t)?e:null;for(let n of e.children){let r=this.getPanel(t,n);if(r)return r}return null};clear=async()=>{await this.restore(Q)};maximize=async t=>{if(!this.getPanel(t,this.r))return;let e={type:"tab-layout",tabs:[t],selected:0};await this.l.run(e,()=>{this.f=t,this.a.replaceSync(Pt(t,this.t))})};minimize=async()=>{this.f!==void 0&&await this.l.run(this.r,()=>{this.f=void 0,this.a.replaceSync(S(this.n,void 0,this.t))})};restoreSync=(t,e=!1)=>{this.l.cancelPending(),this.i=void 0,this.f=void 0,this.n=e?t:nt(t),this.r=this.n;let n=S(this.n,void 0,this.t);this.a.replaceSync(n);let r=`${this.t.CUSTOM_EVENT_NAME_PREFIX}-update`,_=new CustomEvent(r,{detail:this.n});this.dispatchEvent(_)};restore=async(t,e=!1)=>{let n=e?t:nt(t);this.r=n,await this.l.run(n,()=>{this.f=void 0,this.n=n;let r=S(this.n,void 0,this.t);this.a.replaceSync(r);let _=`${this.t.CUSTOM_EVENT_NAME_PREFIX}-update`,i=new CustomEvent(_,{detail:this.n});this.dispatchEvent(i)})};resumeResize=()=>{this.l.resume()};save=()=>structuredClone(this.n);restorePhysics(t){this.t=Object.freeze({...this.t,...t})}savePhysics(){return this.t}relativeCoordinates=(t,e=!0)=>{(e||!this.i)&&(this.i={box:this.getBoundingClientRect(),style:getComputedStyle(this)});let n=this.i.box,r=this.i.style,_=parseFloat(r.paddingLeft),i=parseFloat(r.paddingTop),o=n.width-_-parseFloat(r.paddingRight),a=n.height-i-parseFloat(r.paddingBottom),s=t.clientX-n.left-_,b=t.clientY-n.top-i,u=Math.max(0,Math.min(1,s/o)),c=Math.max(0,Math.min(1,b/a));return[u,c,n,r]};realCoordinates=(t,e)=>{this.i||(this.i={box:this.getBoundingClientRect(),style:getComputedStyle(this)});let n=this.i.box,r=this.i.style,_;e&&(_=getComputedStyle(e));let i=ut(t,n,r,_);return new DOMRect(n.left+i.x,n.top+i.y,i.width,i.height)};diffCoordinates=(t,e)=>{let[n,r,_]=this.relativeCoordinates(t,!1),i=(n-e.column)*_.width,o=(r-e.row)*_.height;return Math.sqrt(i**2+o**2)};create_overlay_host(){let t=this;return{get panel(){return t.r},get physics(){return t.t},get stylesheet(){return t.a},get presizeQueue(){return t.l},relativeCoordinates:(e,n)=>t.relativeCoordinates(e,n),restore:(e,n)=>t.restore(e,n),querySelector:e=>t.querySelector(e),dispatchEvent:e=>t.dispatchEvent(e)}}onDblClick=async t=>{let[e,n,r]=this.relativeCoordinates(t,!1),_=C(e,n,this.n,{rect:r,size:this.t.GRID_DIVIDER_SIZE});if(_?.type==="horizontal"||_?.type==="vertical"){let i=Y(this.r,_.path,void 0);await this.restore(i,!0)}};onPointerDown=t=>{if(t.button===0&&(!this.t.GRID_DIVIDER_CHECK_TARGET||t.target===this)){let[e,n,r]=this.relativeCoordinates(t),_=this.t.GRID_DIVIDER_SIZE,i=C(e,n,this.n,{rect:r,size:_});i&&i.type!=="layout-path"&&(this.d=[i,e,n],this.setPointerCapture(t.pointerId),t.preventDefault())}};onPointerMove=async t=>{if(this.d){let[i,o]=this.relativeCoordinates(t,!1),[{path:a,type:s},b,u]=this.d,c=s==="horizontal"?b-i:u-o,l=Y(this.n,a,c);await this.l.run(l,()=>{this.a.replaceSync(S(l,void 0,this.t))})}if(this.t.GRID_DIVIDER_CHECK_TARGET&&t.target!==this){this.u&&(this.u=!1,this.h.replaceSync(""));return}let[e,n,r]=this.relativeCoordinates(t,!1),_=C(e,n,this.n,{rect:r,size:this.t.GRID_DIVIDER_SIZE});_?.type==="vertical"?(this.h.replaceSync(":host{cursor:row-resize"),this.u=!0):_?.type==="horizontal"?(this.h.replaceSync(":host{cursor:col-resize"),this.u=!0):this.u&&(this.u=!1,this.h.replaceSync(""))};onPointerUp=async t=>{if(this.d){this.releasePointerCapture(t.pointerId);let[e,n]=this.relativeCoordinates(t,!1),[{path:r,type:_},i,o]=this.d,a=_==="horizontal"?i-e:o-n,s=Y(this.r,r,a);await this.restore(s,!0),this.d=void 0}}},Ut=`
1
+ var Q={type:"split-layout",orientation:"horizontal",sizes:[],children:[]},A=Object.freeze({CUSTOM_EVENT_NAME_PREFIX:"regular-layout",CHILD_ATTRIBUTE_NAME:"name",MIN_DRAG_DISTANCE:10,SHOULD_ROUND:!1,OVERLAY_CLASSNAME:"overlay",MINIMUM_REDISTRIBUTION_SIZE_THRESHOLD:.15,SPLIT_EDGE_TOLERANCE:.33,SPLIT_ROOT_EDGE_TOLERANCE:.03,GRID_TRACK_COLLAPSE_TOLERANCE:.001,OVERLAY_DEFAULT:"absolute",GRID_DIVIDER_SIZE:6,GRID_DIVIDER_CHECK_TARGET:!0});function Et(t,e,n){return(e.length===0||Math.abs(n-e[e.length-1])>t.GRID_TRACK_COLLAPSE_TOLERANCE)&&e.push(n),e}function St(t,e){return e.sort((n,_)=>n-_).reduce(Et.bind(void 0,t),[])}function V(t,e,n,_,r){if(t.type==="tab-layout")return[n,_];let i=[n,_];if(t.orientation===e){let o=n,a=_-n;for(let s=0;s<t.children.length;s++){let u=t.sizes[s],g=o+u*a;i.push(...V(t.children[s],e,o,g,r)),o=g}}else for(let o of t.children)i.push(...V(o,e,n,_,r));return St(r,i)}function M(t,e,n){let _=e.findIndex(r=>Math.abs(r-n)<t.GRID_TRACK_COLLAPSE_TOLERANCE);return _===-1?0:_}function tt(t,e,n,_,r,i,o,a){if(t.type==="tab-layout"){let h=t.selected??0,m=M(a,e,_),P=M(a,e,r),G=M(a,n,i),yt=M(a,n,o);return t.tabs.map((It,xt)=>({child:It,colStart:m,colEnd:P,rowStart:G,rowEnd:yt,zIndex:t.tabs.length>1&&xt===h?1:void 0}))}let{children:s,sizes:u,orientation:g}=t,c=g==="horizontal",l=c?_:i,d=c?r-_:o-i,w=[];for(let h=0;h<s.length;h++){let m=l+u[h]*d;c?w.push(...tt(s[h],e,n,l,m,i,o,a)):w.push(...tt(s[h],e,n,_,r,l,m,a)),l=m}return w}var et=(t,e)=>`:host ::slotted(*){display:none}:host{display:grid;grid-template-rows:${t};grid-template-columns:${e}}`,U=(t,e,n,_,r)=>`:host ::slotted([${t.CHILD_ATTRIBUTE_NAME}="${e}"]){display:flex;grid-column:${_};grid-row:${n}${r===void 0?"":`;z-index:${r}`}}`;function C(t,e,n=A){if(t.type==="tab-layout"){let c=t.selected??0,l=t.tabs.length>1;return[et("100%","100%"),...t.tabs.map((d,w)=>U(n,d,"1","1",l&&w===c?1:void 0))].join(`
2
+ `)}let _=c=>c.slice(0,-1).map((l,d)=>c[d+1]-l).map(l=>`${n.SHOULD_ROUND?Math.round(l*100):l*100}fr`).join(" "),r=V(t,"horizontal",0,1,n),i=_(r),o=V(t,"vertical",0,1,n),a=_(o),s=(c,l)=>l-c===1?`${c+1}`:`${c+1} / ${l+1}`,u=tt(t,r,o,0,1,0,1,n),g=[et(a,i)];for(let c of u){let l=s(c.colStart,c.colEnd),d=s(c.rowStart,c.rowEnd);g.push(U(n,c.child,d,l,c.zIndex)),c.child===e?.[1]&&(g.push(U(n,e[0],d,l)),g.push(`:host ::slotted([${n.CHILD_ATTRIBUTE_NAME}=${e[0]}]){z-index:2}`))}return g.join(`
3
+ `)}function Ct(t,e=A){return[et("100%","100%"),U(e,t,"1","1")].join(`
4
+ `)}var Tt={row_start:0,row_end:1,col_start:0,col_end:1};function T(t,e,n,_=null){return ut(t,e,n,_)}function ut(t,e,n,_,r=null,i=structuredClone(Tt),o=[]){if(t<0||e<0||t>1||e>1)return null;if(n.type==="tab-layout"){let w=n.selected??0,h=i.col_end-i.col_start,m=i.row_end-i.row_start;return{type:"layout-path",layout:n,slot:n.tabs[w],path:o,view_window:i,is_edge:!1,column:t,row:e,column_offset:(t-i.col_start)/h,row_offset:(e-i.row_start)/m,orientation:r||"horizontal"}}let a=n.orientation==="vertical",s=a?e:t,u=a?"row_start":"col_start",g=a?"row_end":"col_end",c=a?_?.rect?.height:_?.rect?.width,l=i[u],d=i[g]-i[u];for(let w=0;w<n.children.length;w++){let h=l+d*n.sizes[w];if(_&&c){let m=_.size/c;if(Math.abs(s-h)<m)return{path:[...o,w],type:n.orientation,view_window:{...i,[u]:l,[g]:h}}}if(s>=l&&(s<h||w===n.children.length-1))return ut(t,e,n.children[w],_,n.orientation,{...i,[u]:l,[g]:h},[...o,w]);l=h}return null}function W(t,e){if(t.type==="tab-layout"){if(t.tabs.includes(e)){let o=t.tabs.filter(a=>a!==e);return o.length===0?structuredClone(Q):{type:"tab-layout",tabs:o}}return structuredClone(t)}let n=structuredClone(t),_=n.children.findIndex(o=>o.type==="tab-layout"?o.tabs.includes(e):!1);if(_!==-1){let o=n.children[_];if(o.tabs.length===1){let a=n.children.filter((u,g)=>g!==_),s=kt(n.sizes,_);if(a.length===1)return a[0];n.children=a,n.sizes=s}else o.tabs.splice(o.tabs.indexOf(e),1),o.selected&&o.selected>=o.tabs.length&&o.selected--;return n}let r=!1,i=n.children.map(o=>{if(o.type==="split-layout"){let a=W(o,e);return a!==o&&(r=!0),a}return o});return r&&(n.children=i),n}function kt(t,e){let n=[],_=t[e],r=0;for(let i=0;i<t.length;i++)i!==e&&(r+=t[i]);for(let i=0;i<t.length;i++)if(i!==e){let o=t[i]/r;n.push(t[i]+_*o)}return n}function z(t,e,n,_){let r=c=>({type:"tab-layout",tabs:[c]});if(n.length===0){if(t.type==="tab-layout")return{type:"tab-layout",tabs:[e,...t.tabs]};if(_)return{type:"split-layout",orientation:_,children:[r(e),t],sizes:[.5,.5]};{let c=[...t.children,r(e)],l=[...t.sizes,K(c.length)];return{...t,children:c,sizes:N(l)}}}let[i,...o]=n;if(_&&o.length===0){if(t.type==="split-layout"&&t.orientation===_){let l=[...t.children];l.splice(i,0,r(e));let d=[...t.sizes];return d.splice(i,0,K(l.length)),{...t,children:l,sizes:N(d)}}let c=i===0?[r(e),t]:[t,r(e)];return{type:"split-layout",orientation:_,children:c,sizes:[.5,.5]}}if(t.type==="tab-layout"){if(o.length===0&&_===void 0&&i>=0&&i<=t.tabs.length){let c=[...t.tabs];return c.splice(i,0,e),{...t,tabs:c}}return z({type:"split-layout",orientation:_||"horizontal",children:[t],sizes:[1]},e,n,_)}if(o.length===0||i===t.children.length){if(_&&t.children[i]){let d={type:"split-layout",orientation:_,children:[r(e),t.children[i]],sizes:[.5,.5]},w=[...t.children];return w[i]=d,{...t,children:w,sizes:N(t.sizes)}}let c=[...t.children];c.splice(i,0,r(e));let l=[...t.sizes];return l.splice(i,0,K(c.length)),{...t,children:c,sizes:N(l)}}let a=t.children[i],s=a.type==="tab-layout"&&o.length>0&&_!==void 0?t.orientation==="horizontal"?"vertical":"horizontal":_,u=z(a,e,o,s),g=[...t.children];return g[i]=u,{...t,children:g}}function K(t){return 1/Math.max(1,t-1)}function N(t){let e=t.reduce((n,_)=>n+_,0);return!Number.isFinite(e)||e<=0?t.map(()=>1/t.length):t.map(n=>n/e)}function Y(t,e,n,_=A){let r=structuredClone(t),i=r,o={horizontal:n||0,vertical:n||0};for(let a=0;a<e.length-1;a++)i.type==="split-layout"&&(o[i.orientation]/=i.sizes[e[a]],i=i.children[e[a]]);if(i.type==="split-layout")if(n===void 0)i.sizes=i.sizes.map(a=>1/i.sizes.length);else{let a=o[i.orientation],s=e[e.length-1];s<i.sizes.length-1&&(i.sizes=At(_,i.sizes,s,a))}return r}function At(t,e,n,_){let r=[...e],i=0;for(let a=0;a<=n;a++)i+=e[a];let o=0;for(let a=n+1;a<e.length;a++)o+=e[a];_=Math.sign(_)*Math.min(Math.abs(_),(1-t.MINIMUM_REDISTRIBUTION_SIZE_THRESHOLD)*(_>0?i:o));for(let a=0;a<=n;a++){let s=e[a]/i;r[a]=e[a]-_*s}for(let a=n+1;a<e.length;a++){let s=e[a]/o;r[a]=e[a]+_*s}return r}function gt(t,e,n,_){let r=parseFloat(n.paddingLeft),i=parseFloat(n.paddingTop),o=e.width-r-parseFloat(n.paddingRight),a=e.height-i-parseFloat(n.paddingBottom),s=r+t.col_start*o,u=i+t.row_start*a,g=(t.col_end-t.col_start)*o,c=(t.row_end-t.row_start)*a;if(_){let l=parseFloat(_.marginTop),d=parseFloat(_.marginRight),w=parseFloat(_.marginBottom),h=parseFloat(_.marginLeft);g-=h+d,c-=l+w}return{x:s,y:u,width:g,height:c}}function Rt(t,e,n,_,r=A,i){if(!_)return`:host ::slotted([${r.CHILD_ATTRIBUTE_NAME}="${t}"]){display:none;}`;let o=gt(_.view_window,e,n,i),a=`display:flex;position:absolute!important;z-index:2;top:${o.y}px;left:${o.x}px;height:${o.height}px;width:${o.width}px;`;return`::slotted([${r.CHILD_ATTRIBUTE_NAME}="${t}"]){${a}}`}function nt(t){if(t.type==="tab-layout")return t.selected=t.selected||0,t;let e=[],n=[];for(let _=0;_<t.children.length;_++){let r=t.children[_],i=t.sizes[_],o=nt(r);if(o.type==="split-layout"&&o.orientation===t.orientation)for(let a=0;a<o.children.length;a++)e.push(o.children[a]),n.push(o.sizes[a]*i);else e.push(o),n.push(i)}return e.length===1?e[0]:{type:"split-layout",orientation:t.orientation,children:e,sizes:n}}function Pt(t,e){return bt(t,e,[])}function bt(t,e,n){if(e.type==="tab-layout")return e.tabs.includes(t)?n:null;for(let _=0;_<e.children.length;_++){let r=bt(t,e.children[_],[...n,_]);if(r)return r}return null}function Lt(t){let e={};return dt(t,e,[],null,{row_start:0,row_end:1,col_start:0,col_end:1}),e}function dt(t,e,n,_,r){if(t.type==="tab-layout"){let g=t.selected??0,c=t.tabs[g],l=(r.col_start+r.col_end)/2,d=(r.row_start+r.row_end)/2;e[c]={type:"layout-path",layout:t,slot:c,path:n,view_window:r,is_edge:!1,column:l,row:d,column_offset:.5,row_offset:.5,orientation:_||"horizontal"};return}let i=t.orientation==="vertical",o=i?"row_start":"col_start",a=i?"row_end":"col_end",s=r[o],u=r[a]-r[o];for(let g=0;g<t.children.length;g++){let c=s+u*t.sizes[g],l={...r,[o]:s,[a]:c};dt(t.children[g],e,[...n,g],t.orientation,l),s=c}}var Dt=class{constructor(t,e,n){this.S=t,this.P=e,this.g=n}#n=!1;#t=[];#e=null;#_=0;run(t,e,n){return new Promise((_,r)=>{this.#t.push({layout:t,fn:e,overlay:n,resolve:_,reject:r}),this.#n||this.#r()})}resume(){if(this.#e){let t=this.#e;this.#e=null,t()}}cancelPending(){this.#_++;let t=this.#t;this.#t=[];for(let e of t)e.resolve()}async#r(){this.#n=!0;try{for(;this.#t.length>0;){let t=this.#t;this.#t=[];let e=this.#_,n=t[t.length-1];this.#i(n.layout,n.overlay)||await new Promise(r=>{this.#e=r});let _=e!==this.#_;for(let r of t)try{_||r.fn(),r.resolve()}catch(i){r.reject(i)}}}finally{this.#n=!1}}#i(t,e){this.g?.();let n={calculatePresizePaths:()=>Lt(t),overlay:e},_=new CustomEvent(this.P,{cancelable:!0,detail:n});return this.S.dispatchEvent(_)}};function ot(t,e,n,_,r,i,o=A){if(t<o.SPLIT_ROOT_EDGE_TOLERANCE)return j(n,_,r,[0],!0,"horizontal");if(t>1-o.SPLIT_ROOT_EDGE_TOLERANCE)return j(n,_,r,r.path.length>0?r.path:[1],!1,"horizontal");if(e<o.SPLIT_ROOT_EDGE_TOLERANCE)return j(n,_,r,[0],!0,"vertical");if(e>1-o.SPLIT_ROOT_EDGE_TOLERANCE)return j(n,_,r,r.path.length>0?r.path:[1],!1,"vertical");let a=r.column_offset<o.SPLIT_EDGE_TOLERANCE||r.column_offset>1-o.SPLIT_EDGE_TOLERANCE,s=r.row_offset<o.SPLIT_EDGE_TOLERANCE||r.row_offset>1-o.SPLIT_EDGE_TOLERANCE;if(a&&s){let u=Math.abs(r.column_offset-.5),g=Math.abs(r.row_offset-.5),c=(i?.width||1)*(r.view_window.col_end-r.view_window.col_start),l=(i?.height||1)*(r.view_window.row_end-r.view_window.row_start),d=c/2-u*c<l/2-g*l;return q(n,_,r,d?r.column_offset<o.SPLIT_EDGE_TOLERANCE:r.row_offset<o.SPLIT_EDGE_TOLERANCE,d?"horizontal":"vertical")}return a?q(n,_,r,r.column_offset<o.SPLIT_EDGE_TOLERANCE,"horizontal"):s?q(n,_,r,r.row_offset<o.SPLIT_EDGE_TOLERANCE,"vertical"):{...r,path:[...r.path,0]}}function j(t,e,n,_,r,i){return q(t,e,{...n,path:_,orientation:i},r,i)}function q(t,e,n,_,r){let i;if(n.orientation===r)if(n.path.length===0)i=[_?0:1];else{let s=n.path[n.path.length-1];i=[...n.path.slice(0,-1),_?s:s+1]}else i=[...n.path,_?0:1];let o=z(t,e,i,r),a=Ot(o,i);return{...n,path:i,slot:n.slot,is_edge:!0,orientation:r,view_window:a}}function Ot(t,e){let n={row_start:0,row_end:1,col_start:0,col_end:1},_=t;for(let r of e){if(_.type==="tab-layout")break;let i=Math.min(r,_.children.length-1),o=_.orientation==="vertical",a=o?"row_start":"col_start",s=o?"row_end":"col_end",u=n[s]-n[a],g=_.sizes.slice(0,i).reduce((c,l)=>c+l*u,n[a]);n={...n,[a]:g,[s]:g+u*_.sizes[i]},_=_.children[i]}return n}var zt=class{constructor(t){this.p=t}async set(t,{slot:e},n=this.p.physics.OVERLAY_CLASSNAME,_=this.p.physics.OVERLAY_DEFAULT){let r=this.p,i=W(r.panel,e),o=`:scope > [${r.physics.CHILD_ATTRIBUTE_NAME}="${e}"]`,a=r.querySelector(o);a&&a.classList.add(n);let[s,u,g,c]=r.relativeCoordinates(t,!0),l=T(s,u,i);l&&(l=ot(s,u,i,e,l,g,r.physics));let d=l?{slot:e,path:l}:null;await r.presizeQueue.run(i,()=>{if(_==="grid"&&l){let m=[e,l?.slot],P=C(i,m,r.physics);r.stylesheet.replaceSync(P)}else if(_==="absolute"){let m=C(i,void 0,r.physics);for(;a?.tagName==="SLOT"&&a;)a=a.assignedElements()[0];let P=a?getComputedStyle(a):void 0,G=Rt(e,g,c,l,r.physics,P);r.stylesheet.replaceSync([m,G].join(`
5
+ `))}},d);let w=`${r.physics.CUSTOM_EVENT_NAME_PREFIX}-before-update`,h=new CustomEvent(w,{detail:i});r.dispatchEvent(h)}async clear(t,{slot:e,layout:n},_=this.p.physics.OVERLAY_CLASSNAME){let r=this.p,i=W(r.panel,e),o=`:scope > [${r.physics.CHILD_ATTRIBUTE_NAME}="${e}"]`,a=r.querySelector(o);if(t===null){await r.restore(n);return}let[s,u,g]=r.relativeCoordinates(t,!1),c=T(s,u,i);if(c&&(c=ot(s,u,i,e,c,g,r.physics)),c){let l=c?.is_edge?c.orientation:void 0,d=z(i,e,c.path,l);await r.restore(d)}else await r.restore(n);a&&a.classList.remove(_)}},Mt=class extends HTMLElement{s;n;o;a;h;d;u;r;t;l;E;f;L;constructor(){super(),this.t=A,this.n=structuredClone(Q),this.o=this.n,this.s=this.attachShadow({mode:"open"}),this.s.innerHTML="<slot></slot>",this.a=new CSSStyleSheet,this.h=new CSSStyleSheet,this.u=!1;let t=`${this.t.CUSTOM_EVENT_NAME_PREFIX}-before-resize`;this.l=new Dt(this,t,()=>{this.r=void 0}),this.E=new zt(this.create_overlay_host()),this.s.adoptedStyleSheets=[this.a,this.h]}connectedCallback(){this.L??=new ResizeObserver(()=>{this.r=void 0}),this.L.observe(this),this.addEventListener("dblclick",this.onDblClick),this.addEventListener("pointerdown",this.onPointerDown),this.addEventListener("pointerup",this.onPointerUp),this.addEventListener("pointermove",this.onPointerMove)}disconnectedCallback(){this.L?.disconnect(),this.removeEventListener("dblclick",this.onDblClick),this.removeEventListener("pointerdown",this.onPointerDown),this.removeEventListener("pointerup",this.onPointerUp),this.removeEventListener("pointermove",this.onPointerMove)}calculateIntersect=t=>{let[e,n,_]=this.relativeCoordinates(t,!1);return T(e,n,this.n)};calculatePath=t=>Pt(t,this.n);setOverlayState=async(t,e,n,_)=>{await this.E.set(t,e,n,_)};clearOverlayState=async(t,e,n)=>{await this.E.clear(t,e,n)};insertPanel=async(t,e=[],n)=>{let _;typeof n=="boolean"&&n?_="horizontal":typeof n=="string"&&(_=n),await this.restore(z(this.o,t,e,_))};removePanel=async t=>{await this.restore(W(this.o,t))};select=async t=>{let e=structuredClone(this.o),n=this.getPanel(t,e);if(!n)return;let _=n.tabs.indexOf(t);_!==-1&&n.selected!==_&&(n.selected=_,await this.restore(e));let r=`${this.t.CUSTOM_EVENT_NAME_PREFIX}-select`;this.dispatchEvent(new CustomEvent(r,{detail:{name:t}}))};getPanel=(t,e=this.n)=>{if(e.type==="tab-layout")return e.tabs.includes(t)?e:null;for(let n of e.children){let _=this.getPanel(t,n);if(_)return _}return null};clear=async()=>{await this.restore(Q)};maximize=async t=>{if(!this.getPanel(t,this.o))return;let e={type:"tab-layout",tabs:[t],selected:0};await this.l.run(e,()=>{this.f=t,this.a.replaceSync(Ct(t,this.t))})};minimize=async()=>{this.f!==void 0&&await this.l.run(this.o,()=>{this.f=void 0,this.a.replaceSync(C(this.n,void 0,this.t))})};restoreSync=(t,e=!1)=>{this.l.cancelPending(),this.r=void 0,this.f=void 0,this.n=e?t:nt(t),this.o=this.n;let n=C(this.n,void 0,this.t);this.a.replaceSync(n);let _=`${this.t.CUSTOM_EVENT_NAME_PREFIX}-update`,r=new CustomEvent(_,{detail:this.n});this.dispatchEvent(r)};restore=async(t,e=!1)=>{let n=e?t:nt(t);this.o=n,await this.l.run(n,()=>{this.f=void 0,this.n=n;let _=C(this.n,void 0,this.t);this.a.replaceSync(_);let r=`${this.t.CUSTOM_EVENT_NAME_PREFIX}-update`,i=new CustomEvent(r,{detail:this.n});this.dispatchEvent(i)})};resumeResize=()=>{this.l.resume()};save=()=>structuredClone(this.n);restorePhysics(t){this.t=Object.freeze({...this.t,...t})}savePhysics(){return this.t}relativeCoordinates=(t,e=!0)=>{(e||!this.r)&&(this.r={box:this.getBoundingClientRect(),style:getComputedStyle(this)});let n=this.r.box,_=this.r.style,r=parseFloat(_.paddingLeft),i=parseFloat(_.paddingTop),o=n.width-r-parseFloat(_.paddingRight),a=n.height-i-parseFloat(_.paddingBottom),s=t.clientX-n.left-r,u=t.clientY-n.top-i,g=Math.max(0,Math.min(1,s/o)),c=Math.max(0,Math.min(1,u/a));return[g,c,n,_]};realCoordinates=(t,e)=>{this.r||(this.r={box:this.getBoundingClientRect(),style:getComputedStyle(this)});let n=this.r.box,_=this.r.style,r;e&&(r=getComputedStyle(e));let i=gt(t,n,_,r);return new DOMRect(n.left+i.x,n.top+i.y,i.width,i.height)};diffCoordinates=(t,e)=>{let[n,_,r]=this.relativeCoordinates(t,!1),i=(n-e.column)*r.width,o=(_-e.row)*r.height;return Math.sqrt(i**2+o**2)};create_overlay_host(){let t=this;return{get panel(){return t.o},get physics(){return t.t},get stylesheet(){return t.a},get presizeQueue(){return t.l},relativeCoordinates:(e,n)=>t.relativeCoordinates(e,n),restore:(e,n)=>t.restore(e,n),querySelector:e=>t.querySelector(e),dispatchEvent:e=>t.dispatchEvent(e)}}onDblClick=async t=>{let[e,n,_]=this.relativeCoordinates(t,!1),r=T(e,n,this.n,{rect:_,size:this.t.GRID_DIVIDER_SIZE});if(r?.type==="horizontal"||r?.type==="vertical"){let i=Y(this.o,r.path,void 0);await this.restore(i,!0)}};onPointerDown=t=>{if(t.button===0&&(!this.t.GRID_DIVIDER_CHECK_TARGET||t.target===this)){let[e,n,_]=this.relativeCoordinates(t),r=this.t.GRID_DIVIDER_SIZE,i=T(e,n,this.n,{rect:_,size:r});i&&i.type!=="layout-path"&&(this.d=[i,e,n],this.setPointerCapture(t.pointerId),t.preventDefault())}};onPointerMove=async t=>{if(this.d){let[i,o]=this.relativeCoordinates(t,!1),[{path:a,type:s},u,g]=this.d,c=s==="horizontal"?u-i:g-o,l=Y(this.n,a,c);await this.l.run(l,()=>{this.a.replaceSync(C(l,void 0,this.t))})}if(this.t.GRID_DIVIDER_CHECK_TARGET&&t.target!==this){this.u&&(this.u=!1,this.h.replaceSync(""));return}let[e,n,_]=this.relativeCoordinates(t,!1),r=T(e,n,this.n,{rect:_,size:this.t.GRID_DIVIDER_SIZE});r?.type==="vertical"?(this.h.replaceSync(":host{cursor:row-resize"),this.u=!0):r?.type==="horizontal"?(this.h.replaceSync(":host{cursor:col-resize"),this.u=!0):this.u&&(this.u=!1,this.h.replaceSync(""))};onPointerUp=async t=>{if(this.d){this.releasePointerCapture(t.pointerId);let[e,n]=this.relativeCoordinates(t,!1),[{path:_,type:r},i,o]=this.d,a=r==="horizontal"?i-e:o-n,s=Y(this.o,_,a);await this.restore(s,!0),this.d=void 0}}},Nt=`
6
6
  :host{box-sizing:border-box;flex-direction:column;pointer-events:none}
7
- [part~="titlebar"]{height:24px;user-select:none;overflow:hidden}
8
- [part~="container"]{flex:1 1 auto;pointer-events:auto}
7
+ [part~="titlebar"]{height:24px;flex-shrink:0;user-select:none;overflow:hidden}
8
+ [part~="container"]{flex:1 1 auto;min-height:0;pointer-events:auto}
9
9
  [part~="title"]{flex:1 1 auto;pointer-events:none}
10
10
  [part~="close"]{align-self:stretch}
11
11
  :host([inactive]) [part~="container"]{display:none}
12
12
  .tabs{display:grid;width:100%;height:100%}
13
13
  .tabs slot[name="tab"]{display:grid;grid-row:1;pointer-events:auto}
14
14
  .tabs regular-layout-tab{display:flex;overflow:hidden}
15
- `,qt=`
15
+ `,jt=`
16
16
  <div part="titlebar"><div class="tabs" part="titlebar-track"><slot name="tab"><regular-layout-tab></regular-layout-tab></slot></div></div>
17
17
  <div part="container"><slot></slot></div>
18
- `,Ht=t=>`"${t.replace(/[\\"\n]/g,e=>e===`
19
- `?"\\A ":`\\${e}`)}"`,Bt=t=>`--regular-layout-${globalThis.CSS.escape(t)}--title`,Vt=class extends HTMLElement{s;v;b;e;_;g;o=null;connectedCallback(){this.v??=new CSSStyleSheet,this.v.replaceSync(Ut),this.b??=new CSSStyleSheet,this.s??=this.attachShadow({mode:"open"}),this.s.adoptedStyleSheets=[this.v,this.b],this.s.innerHTML=qt,this.e=this.parentElement,this._=this.s.children[0],this.g=this._.querySelector("regular-layout-tab"),this._.addEventListener("pointerdown",this.onPointerDown),this.addEventListener("pointermove",this.onPointerMove),this.addEventListener("pointerup",this.onPointerUp),this.addEventListener("pointercancel",this.onPointerCancel),this.addEventListener("lostpointercapture",this.onPointerLost),this.e.addEventListener("regular-layout-update",this.drawTabs),this.e.addEventListener("regular-layout-before-update",this.drawTabs)}disconnectedCallback(){this._.removeEventListener("pointerdown",this.onPointerDown),this.removeEventListener("pointermove",this.onPointerMove),this.removeEventListener("pointerup",this.onPointerUp),this.removeEventListener("pointercancel",this.onPointerUp),this.removeEventListener("lostpointercapture",this.onPointerLost),this.e.removeEventListener("regular-layout-update",this.drawTabs),this.e.removeEventListener("regular-layout-before-update",this.drawTabs)}onPointerDown=t=>{if(t.button===0&&t.target.part.contains("tab")){let e=this.getAttribute(this.e.savePhysics().CHILD_ATTRIBUTE_NAME),n=this.e.calculateIntersect(t);n&&e?(this.o={path:{...n,slot:e}},this.setPointerCapture(t.pointerId),t.preventDefault()):this.o=null}};onPointerMove=t=>{if(this.o){let e=this.e.savePhysics();if(!this.o.moved&&this.e.diffCoordinates(t,this.o.path)<=e.MIN_DRAG_DISTANCE)return;this.o.moved=!0,this.e.setOverlayState(t,this.o.path)}};onPointerUp=t=>{this.o?.moved&&this.e.clearOverlayState(t,this.o.path)};onPointerCancel=t=>{this.o?.moved&&this.e.clearOverlayState(null,this.o.path)};onPointerLost=t=>{this.releasePointerCapture(t.pointerId),this.o=null};drawTabs=t=>{let e=this.e.savePhysics().CHILD_ATTRIBUTE_NAME,n=this.getAttribute(e);if(!n)return;let r=this.e.getPanel(n,t.detail);r||(r={type:"tab-layout",tabs:[n],selected:0});let _=r.tabs.indexOf(n),i=(r.selected??0)===_;this.toggleAttribute("inactive",!i),this.g.populate(this.e,r,_),this.drawTab(n,_,r.tabs.length)};drawTab=(t,e,n)=>{this.b.replaceSync([`.tabs{grid-template-columns:repeat(${n},var(--rl-tab-width,1fr))}`,`.tabs slot[name="tab"]{grid-column:${e+1}}`,`[part~="title"]::before{content:var(${Bt(t)}, ${Ht(t)})}`].join(`
20
- `))}},Wt=class extends HTMLElement{e;c;m;populate=(t,e,n)=>{if(this.setAttribute(t.savePhysics().CHILD_ATTRIBUTE_NAME,e.tabs[n]),this.c)(n===e.selected!=(n===this.c?.selected)||this.c?.tabs[n]!==e.tabs[n])&&(e.selected===n?(this.children[1].part.add("active-close"),this.part.add("active-tab")):(this.children[1].part.remove("active-close"),this.part.remove("active-tab")));else{let r=e.selected===n,_=r?"active-close close":"close";this.innerHTML=`<div part="title"></div><button part="${_}"></button>`,r?this.part.add("tab","active-tab"):this.part.add("tab"),this.addEventListener("pointerdown",this.onTabClick),this.children[1].addEventListener("pointerdown",this.onTabClose)}this.c=e,this.e=t,this.m=n};onTabClose=t=>{t instanceof PointerEvent&&t?.button!==0||this.c!==void 0&&this.m!==void 0&&this.e?.removePanel(this.c.tabs[this.m])};onTabClick=t=>{t.button===0&&this.c!==void 0&&this.m!==void 0&&this.e?.select(this.c.tabs[this.m])}};customElements.define("regular-layout",$t);customElements.define("regular-layout-frame",Vt);customElements.define("regular-layout-tab",Wt);var Te=class extends HTMLElement{constructor(){super()}get_static_config(){return{name:"Debug",select_mode:"select",config_column_names:[]}}column_style_config(){return{}}async update(t){return this.draw(t)}async draw(t){this.style.backgroundColor="#fff";let e=await t.to_csv(),n="margin:0;overflow:scroll;position:absolute;width:100%;height:100%";this.innerHTML=`<pre style='${n}'>${e}</pre>`}async clear(){this.innerHTML=""}async resize(t){}restyle(){}restore(){}async delete(){}get supports_streaming(){return!1}},ke={anthropic:{name:"anthropic",url:"https://api.anthropic.com/v1/chat/completions",headers:{"anthropic-dangerous-direct-browser-access":"true"},model:"claude-opus-5"},gemini:{name:"gemini",url:"https://generativelanguage.googleapis.com/v1beta/openai/chat/completions",model:"gemini-2.5-flash"},lmstudio:{name:"lmstudio",url:"http://localhost:1234/v1/chat/completions"},ollama:{name:"ollama",url:"http://localhost:11434/v1/chat/completions"},openrouter:{name:"openrouter",url:"https://openrouter.ai/api/v1/chat/completions"},openai:{name:"openai",url:"https://api.openai.com/v1/chat/completions",model:"gpt-5.2"}},dt=["dateStyle","timeStyle","weekday","year","month","day","hour","minute","second","fractionalSecondDigits"],Gt=["timeZone","hour12"];function Kt(t){return dt.some(e=>t?.[e]!==void 0)}var Yt={float:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}},Xt={dateStyle:"short",timeStyle:"medium"},ot={dateStyle:"short"},Zt=[["style","currency","currencyDisplay","currencySign","unit","unitDisplay"],["notation","compactDisplay"],["minimumFractionDigits","maximumFractionDigits"],["minimumSignificantDigits","maximumSignificantDigits"]];function Jt(t,e){let n={};for(let[_,i]of Object.entries(e??{}))i!=null&&(n[_]=i);let r={...t};for(let _ of Zt)if(_.some(i=>i in n))for(let i of _)delete r[i];return Object.assign(r,n)}function Ae(t,e,n){let r=n??Yt[t]??{},_=e?Jt(r,e):r;return new Intl.NumberFormat(navigator.languages,_)}function ft(t,e,n){let r=[t,e,n],_=r.find(Kt)??{},i={},o=(a,s)=>{s!==void 0&&s[a]!==void 0&&(i[a]=s[a])};for(let a of dt)o(a,_);for(let a of Gt)o(a,r.find(s=>s?.[a]!==void 0));return i}function Pe(t,e){return new Intl.DateTimeFormat(navigator.languages,ft(t,e,Xt))}function Re(t,e){let{dateStyle:n}=ft(t,e,ot);return new Intl.DateTimeFormat(navigator.languages,{timeZone:"utc",dateStyle:n??ot.dateStyle})}function Le(t){return t.split("|").at(-1)??t}var De=class{selected;row;column_names;removeConfigs;insertConfigs;panel;constructor(t,e,n,r,_,i){this.selected=t,this.row=e,this.column_names=n,this.removeConfigs=r,this.insertConfigs=_,this.panel=i}get removeFilters(){return this.removeConfigs.flatMap(t=>t.filter??[])}get insertFilters(){return this.insertConfigs.flatMap(t=>t.filter??[])}},Qt=Object.defineProperty,te=(t,e)=>{for(var n in e)Qt(t,n,{get:e[n],enumerable:!0})};async function ee(t){let e;t instanceof Response?e=await WebAssembly.instantiateStreaming(t):typeof t=="string"?e=await WebAssembly.instantiateStreaming(fetch(t)):t instanceof ArrayBuffer?e=await WebAssembly.instantiate(t):e=t;let n=e.instance.exports,[r]=WebAssembly.Module.customSections(e.module,"psp-runtime"),[_]=WebAssembly.Module.customSections(e.module,"psp-len"),i=new DataView(_).getUint32(0,!0),o=n.resize(r.byteLength);new Uint8Array(n.memory.buffer).set(new Uint8Array(r),o);let a=n.compile(r.byteLength,i);return new Uint8Array(n.memory.buffer).slice(a,i+a)}if(typeof WebAssembly>"u")throw new Error("WebAssembly not supported.");async function ne(t){t instanceof Function&&(t=await t()),t instanceof Promise&&(t=await t);try{return await ee(t)}catch{return console.warn("Stage 0 wasm loading failed, skipping"),new Uint8Array(t)}}var Oe=new Uint8Array([0,97,115,109,1,0,0,0,5,3,1,4,1]),wt={};te(wt,{default:()=>mt,initSync:()=>le,migrate:()=>re});function re(t,e,n){try{let s=f.__wbindgen_add_to_stack_pointer(-16),b=O(t,f.__wbindgen_export,f.__wbindgen_export2),u=E;var r=x(e)?0:O(e,f.__wbindgen_export,f.__wbindgen_export2),_=E;f.migrate(s,b,u,r,_,p(n));var i=v().getInt32(s+0,!0),o=v().getInt32(s+4,!0),a=v().getInt32(s+8,!0);if(a)throw T(o);return T(i)}finally{f.__wbindgen_add_to_stack_pointer(16)}}function pt(){return{__proto__:null,"./perspective-migrate.wasm_bg.js":{__proto__:null,__wbg_Error_8c4e43fe74559d73:function(t,e){let n=Error(X(t,e));return p(n)},__wbg_String_8f0eb39a4a4c2f66:function(t,e){let n=String(g(e)),r=O(n,f.__wbindgen_export,f.__wbindgen_export2),_=E;v().setInt32(t+4,_,!0),v().setInt32(t+0,r,!0)},__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2:function(t,e){let n=g(e),r=typeof n=="bigint"?n:void 0;v().setBigInt64(t+8,x(r)?BigInt(0):r,!0),v().setInt32(t+0,!x(r),!0)},__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25:function(t){let e=g(t),n=typeof e=="boolean"?e:void 0;return x(n)?16777215:n?1:0},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(t,e){let n=rt(g(e)),r=O(n,f.__wbindgen_export,f.__wbindgen_export2),_=E;v().setInt32(t+4,_,!0),v().setInt32(t+0,r,!0)},__wbg___wbindgen_in_47fa6863be6f2f25:function(t,e){return g(t)in g(e)},__wbg___wbindgen_is_bigint_31b12575b56f32fc:function(t){return typeof g(t)=="bigint"},__wbg___wbindgen_is_function_0095a73b8b156f76:function(t){return typeof g(t)=="function"},__wbg___wbindgen_is_object_5ae8e5880f2c1fbd:function(t){let e=g(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_cd444516edc5b180:function(t){return typeof g(t)=="string"},__wbg___wbindgen_jsval_eq_11888390b0186270:function(t,e){return g(t)===g(e)},__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811:function(t,e){return g(t)==g(e)},__wbg___wbindgen_number_get_8ff4255516ccad3e:function(t,e){let n=g(e),r=typeof n=="number"?n:void 0;v().setFloat64(t+8,x(r)?0:r,!0),v().setInt32(t+0,!x(r),!0)},__wbg___wbindgen_string_get_72fb696202c56729:function(t,e){let n=g(e),r=typeof n=="string"?n:void 0;var _=x(r)?0:O(r,f.__wbindgen_export,f.__wbindgen_export2),i=E;v().setInt32(t+4,i,!0),v().setInt32(t+0,_,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(t,e){throw new Error(X(t,e))},__wbg_call_389efe28435a9388:function(){return Z(function(t,e){let n=g(t).call(g(e));return p(n)},arguments)},__wbg_done_57b39ecd9addfe81:function(t){return g(t).done},__wbg_entries_58c7934c745daac7:function(t){let e=Object.entries(g(t));return p(e)},__wbg_get_9b94d73e6221f75c:function(t,e){let n=g(t)[e>>>0];return p(n)},__wbg_get_b3ed3ad4be2bc8ac:function(){return Z(function(t,e){let n=Reflect.get(g(t),g(e));return p(n)},arguments)},__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04:function(t){let e;try{e=g(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Map_53af74335dec57f4:function(t){let e;try{e=g(t)instanceof Map}catch{e=!1}return e},__wbg_instanceof_Uint8Array_9b9075935c74707c:function(t){let e;try{e=g(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_isArray_d314bb98fcf08331:function(t){return Array.isArray(g(t))},__wbg_isSafeInteger_bfbc7332a9768d2a:function(t){return Number.isSafeInteger(g(t))},__wbg_iterator_6ff6560ca1568e55:function(){return p(Symbol.iterator)},__wbg_length_32ed9a279acd054c:function(t){return g(t).length},__wbg_length_35a7bace40f36eac:function(t){return g(t).length},__wbg_new_361308b2356cecd0:function(){let t=new Object;return p(t)},__wbg_new_3eb36ae241fe6f44:function(){let t=new Array;return p(t)},__wbg_new_dca287b076112a51:function(){return p(new Map)},__wbg_new_dd2b680c8bf6ae29:function(t){let e=new Uint8Array(g(t));return p(e)},__wbg_next_3482f54c49e8af19:function(){return Z(function(t){let e=g(t).next();return p(e)},arguments)},__wbg_next_418f80d8f5303233:function(t){let e=g(t).next;return p(e)},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(t,e,n){Uint8Array.prototype.set.call(ie(t,e),g(n))},__wbg_set_1eb0999cf5d27fc8:function(t,e,n){let r=g(t).set(g(e),g(n));return p(r)},__wbg_set_3f1d0b984ed272ed:function(t,e,n){g(t)[T(e)]=T(n)},__wbg_set_f43e577aea94465b:function(t,e,n){g(t)[e>>>0]=T(n)},__wbg_value_0546255b415e96c1:function(t){let e=g(t).value;return p(e)},__wbindgen_cast_0000000000000001:function(t){return p(t)},__wbindgen_cast_0000000000000002:function(t){return p(t)},__wbindgen_cast_0000000000000003:function(t,e){let n=X(t,e);return p(n)},__wbindgen_cast_0000000000000004:function(t){let e=BigInt.asUintN(64,t);return p(e)},__wbindgen_object_drop_ref:function(t){T(t)}}}}function p(t){D===y.length&&y.push(y.length+1);let e=D;return D=y[e],y[e]=t,e}function rt(t){let e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){let _=t.description;return _==null?"Symbol":`Symbol(${_})`}if(e=="function"){let _=t.name;return typeof _=="string"&&_.length>0?`Function(${_})`:"Function"}if(Array.isArray(t)){let _=t.length,i="[";_>0&&(i+=rt(t[0]));for(let o=1;o<_;o++)i+=", "+rt(t[o]);return i+="]",i}let n=/\[object ([^\]]+)\]/.exec(toString.call(t)),r;if(n&&n.length>1)r=n[1];else return toString.call(t);if(r=="Object")try{return"Object("+JSON.stringify(t)+")"}catch{return"Object"}return t instanceof Error?`${t.name}: ${t.message}
21
- ${t.stack}`:r}function _e(t){t<132||(y[t]=D,D=t)}function ie(t,e){return t=t>>>0,L().subarray(t/1,t/1+e)}var I=null;function v(){return(I===null||I.buffer.detached===!0||I.buffer.detached===void 0&&I.buffer!==f.memory.buffer)&&(I=new DataView(f.memory.buffer)),I}function X(t,e){return t=t>>>0,ae(t,e)}var R=null;function L(){return(R===null||R.byteLength===0)&&(R=new Uint8Array(f.memory.buffer)),R}function g(t){return y[t]}function Z(t,e){try{return t.apply(this,e)}catch(n){f.__wbindgen_export3(p(n))}}var y=new Array(128).fill(void 0);y.push(void 0,null,!0,!1);var D=y.length;function x(t){return t==null}function O(t,e,n){if(n===void 0){let a=at.encode(t),s=e(a.length,1)>>>0;return L().subarray(s,s+a.length).set(a),E=a.length,s}let r=t.length,_=e(r,1)>>>0,i=L(),o=0;for(;o<r;o++){let a=t.charCodeAt(o);if(a>127)break;i[_+o]=a}if(o!==r){o!==0&&(t=t.slice(o)),_=n(_,r,r=o+t.length*3,1)>>>0;let a=L().subarray(_+o,_+r),s=at.encodeInto(t,a);o+=s.written,_=n(_,r,o,1)>>>0}return E=o,_}function T(t){let e=g(t);return _e(t),e}var H=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});H.decode();var oe=2146435072,J=0;function ae(t,e){return J+=e,J>=oe&&(H=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),H.decode(),J=e),H.decode(L().subarray(t,t+e))}var at=new TextEncoder,E=0,se,f;function ht(t,e){return f=t.exports,se=e,I=null,R=null,f}async function ce(t,e){if(typeof Response=="function"&&t instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(t,e)}catch(_){if(t.ok&&n(t.type)&&t.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_);else throw _}let r=await t.arrayBuffer();return await WebAssembly.instantiate(r,e)}else{let r=await WebAssembly.instantiate(t,e);return r instanceof WebAssembly.Instance?{instance:r,module:t}:r}function n(r){switch(r){case"basic":case"cors":case"default":return!0}return!1}}function le(t){if(f!==void 0)return f;t!==void 0&&(Object.getPrototypeOf(t)===Object.prototype?{module:t}=t:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=pt();t instanceof WebAssembly.Module||(t=new WebAssembly.Module(t));let n=new WebAssembly.Instance(t,e);return ht(n,t)}async function mt(t){if(f!==void 0)return f;t!==void 0&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead"));let e=pt();(typeof t=="string"||typeof Request=="function"&&t instanceof Request||typeof URL=="function"&&t instanceof URL)&&(t=fetch(t));let{instance:n,module:r}=await ce(await t,e);return ht(n,r)}var ue=class{source;module;register(t){this.source=t,this.module=void 0}async migrate(t,e,n){if(this.module===void 0){if(this.source===void 0)throw new Error("Missing perspective-migrate.wasm");let r=this.source,_=r().then(async i=>(await mt({module_or_path:i}),wt));this.module=_,_.catch(()=>{this.module===_&&(this.module=void 0)})}return(await this.module).migrate(t,n,e)}};function ge(t,e,n,r){let _=new RegExp(`/${e}(@[^/]+)?/dist/cdn/[^/?#]*([?#].*)?$`),i=t.replace(_,(o,a)=>`/${n}${a??""}/dist/wasm/${r}`);return i!==t?i:new URL(`../../../${n}/dist/wasm/${r}`,t).href}var st=Symbol.for("@perspective-dev/wasm"),F=["client","viewer","server","server32","server64","migrate"],B=["server","server32","server64"];function ct(t){return B.includes(t)}function vt(){let t=globalThis;return t[st]??=new Map,t[st]}function A(){let t=vt(),e=t.get("5.8.0");return e===void 0&&(e={sources:{},consumed:new Set},t.set("5.8.0",e)),e}function be(){let t=[...vt().keys()].filter(e=>e!=="5.8.0");if(t.length>0)throw new Error(`Perspective 5.8.0 cannot share a page with Perspective ${t.join(", ")}`)}async function yt({source:t,disable_stage_0:e}){let n=typeof t=="function"?await t():await t;if(n instanceof WebAssembly.Module)return n;if(n instanceof Uint8Array&&(n=n.slice().buffer),typeof Response<"u"&&n instanceof Response){if(!n.ok)throw new Error(`Failed to fetch perspective wasm (HTTP ${n.status} "${n.url}")`);if(e)return await n.arrayBuffer()}return e?n:(await ne(n)).buffer}function de(t){t.consumed.add("viewer"),t.viewer=yt(t.sources.viewer).then(t.viewer_provider),t.client===void 0&&(t.client=t.viewer,t.client_origin="viewer",t.viewer.then(e=>{t.client_runtime=e},()=>{}))}function It(t,e={},n="user"){n!=="default"&&be();let r=A(),_=Object.keys(t).filter(s=>!F.includes(s));if(_.length>0)throw new Error(`Unknown perspective wasm key(s) ${_.join(", ")}; expected ${F.join(", ")}`);let i=F.filter(s=>t[s]!==void 0);if(n==="default"){let s=B.some(b=>r.sources[b]!==void 0);i=i.filter(b=>r.sources[b]===void 0&&!r.consumed.has(b)&&!(s&&ct(b)))}else{if(i.length===0)throw new Error(`init() requires at least one of ${F.join(", ")}`);for(let s of i)if(r.consumed.has(s))throw new Error(`${s} wasm is already initialized`);if(i.some(ct))for(let s of B)(n==="replace_server"||r.sources[s]?.is_default)&&delete r.sources[s]}if(i.includes("viewer")){if(r.client!==void 0)throw new Error("viewer wasm must be registered before any Client is created from client wasm");if(r.viewer_provider===void 0)throw new Error("viewer wasm was registered, but @perspective-dev/viewer is not loaded")}let o=B.filter(s=>i.includes(s)||r.sources[s]!==void 0);if(o.includes("server")&&o.length>1)throw new Error("`server` cannot be combined with `server32` or `server64`");let a=!!e.disable_stage_0;for(let s of i)r.sources[s]={source:t[s],disable_stage_0:a,is_default:n==="default"};i.includes("viewer")&&de(r)}async function fe(t,e={}){It(t,e),t.viewer!==void 0&&await A().viewer}function we(t){It(t,{},"default")}function pe(t){let e=A();e.viewer_provider??=t}async function he(){let t=A().viewer;if(t===void 0)throw new Error("Missing perspective-viewer.wasm: register `viewer` with init()");await t}function me(){let t=A();if(t.migrate_binary===void 0){let e=t.sources.migrate;if(e===void 0)return Promise.reject(new Error("Missing perspective-migrate.wasm: register `migrate` with init()"));t.consumed.add("migrate"),t.migrate_binary=yt(e)}return t.migrate_binary}function ve(t){let e=A();return e.migrate??=t,e.migrate}var ye='var St=Object.defineProperty;var Ct=(s,t)=>{for(var e in t)St(s,e,{get:t[e],enumerable:!0})};var X={};Ct(X,{Client:()=>F,GenericSQLVirtualServerModel:()=>V,PerspectiveDebugPluginElement:()=>$,PerspectiveViewerElement:()=>G,ProxySession:()=>j,Table:()=>z,View:()=>I,VirtualDataSlice:()=>q,VirtualServer:()=>J,default:()=>xt,getColumnConfigDefaults:()=>At,getPluginConfigDefaults:()=>Ft,get_wasm_module:()=>Et,get_worker_url:()=>Rt,init:()=>Tt,initSync:()=>ce,registerPlugin:()=>Pt,setColumnConfigDefaults:()=>Ot,setPluginConfigDefaults:()=>jt});function ct(s){customElements.get(s)||customElements.define(s,class extends HTMLElement{})}var it=window.ClipboardItem;var st=window.ResizeObserver;var at=window.IntersectionObserver;function ut(s,t,e,n){if(customElements.get(t)){console.warn(`Custom element "${t}" is already registered; skipping duplicate registration (Perspective was loaded more than once on this page).`);return}let r=s[e],i=r.prototype;class b extends HTMLElement{constructor(){super(),this._instance=new r(this)}}let g=Object.getOwnPropertyNames(i);for(let w of g)"get"in Object.getOwnPropertyDescriptor(i,w)?Object.defineProperty(b.prototype,w,{get:function(){return this._instance[w]}}):Object.defineProperty(b.prototype,w,{value:function(...v){return this._instance[w].call(this._instance,...v)}});for(let w of n)Object.defineProperty(b,w,{value:function(...v){return s[w].call(s,...v)}});customElements.define(t,b)}var F=class s{static __wrap(t){t=t>>>0;let e=Object.create(s.prototype);return e.__wbg_ptr=t,Q.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_client_free(t,0)}__getClassname(){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.client___getClassname(r,this.__wbg_ptr);var t=a().getInt32(r+0,!0),e=a().getInt32(r+4,!0),n=f(t,e);return t!==0&&_.__wbindgen_export4(t,e,1),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}__unsafe_open_view(t){let e=m(t,_.__wbindgen_export,_.__wbindgen_export2),n=p,r=_.client___unsafe_open_view(this.__wbg_ptr,e,n);return I.__wrap(r)}get_hosted_table_names(){let t=_.client_get_hosted_table_names(this.__wbg_ptr);return u(t)}handle_error(t,e){let n=m(t,_.__wbindgen_export,_.__wbindgen_export2),r=p,i=_.client_handle_error(this.__wbg_ptr,n,r,d(e)?0:c(e));return u(i)}handle_response(t){let e=_.client_handle_response(this.__wbg_ptr,c(t));return u(e)}join(t,e,n,r){let i=m(n,_.__wbindgen_export,_.__wbindgen_export2),b=p,g=_.client_join(this.__wbg_ptr,c(t),c(e),i,b,d(r)?0:c(r));return u(g)}constructor(t,e){try{let b=_.__wbindgen_add_to_stack_pointer(-16);_.client_new(b,c(t),d(e)?0:c(e));var n=a().getInt32(b+0,!0),r=a().getInt32(b+4,!0),i=a().getInt32(b+8,!0);if(i)throw u(r);return this.__wbg_ptr=n>>>0,Q.register(this,this.__wbg_ptr,this),this}finally{_.__wbindgen_add_to_stack_pointer(16)}}new_proxy_session(t){try{let e=_.client_new_proxy_session(this.__wbg_ptr,ot(t));return j.__wrap(e)}finally{k[O++]=void 0}}on_error(t){let e=_.client_on_error(this.__wbg_ptr,c(t));return u(e)}on_hosted_tables_update(t){let e=_.client_on_hosted_tables_update(this.__wbg_ptr,c(t));return u(e)}open_table(t){let e=m(t,_.__wbindgen_export,_.__wbindgen_export2),n=p,r=_.client_open_table(this.__wbg_ptr,e,n);return u(r)}remove_hosted_tables_update(t){let e=_.client_remove_hosted_tables_update(this.__wbg_ptr,t);return u(e)}system_info(){let t=_.client_system_info(this.__wbg_ptr);return u(t)}table(t,e){let n=_.client_table(this.__wbg_ptr,c(t),d(e)?0:c(e));return u(n)}terminate(){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.client_terminate(r,this.__wbg_ptr);var t=a().getInt32(r+0,!0),e=a().getInt32(r+4,!0),n=a().getInt32(r+8,!0);if(n)throw u(e);return u(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);var V=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,gt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_genericsqlvirtualservermodel_free(t,0)}expressionDescribe(t,e){try{let w=_.__wbindgen_add_to_stack_pointer(-16),v=m(t,_.__wbindgen_export,_.__wbindgen_export2),h=p,y=m(e,_.__wbindgen_export,_.__wbindgen_export2),x=p;_.genericsqlvirtualservermodel_expressionDescribe(w,this.__wbg_ptr,v,h,y,x);var n=a().getInt32(w+0,!0),r=a().getInt32(w+4,!0),i=a().getInt32(w+8,!0),b=a().getInt32(w+12,!0);if(b)throw u(i);var g=f(n,r);return n!==0&&_.__wbindgen_export4(n,r,1),g}finally{_.__wbindgen_add_to_stack_pointer(16)}}expressionsDescribe(t,e){try{let w=_.__wbindgen_add_to_stack_pointer(-16),v=m(t,_.__wbindgen_export,_.__wbindgen_export2),h=p;_.genericsqlvirtualservermodel_expressionsDescribe(w,this.__wbg_ptr,v,h,c(e));var n=a().getInt32(w+0,!0),r=a().getInt32(w+4,!0),i=a().getInt32(w+8,!0),b=a().getInt32(w+12,!0);if(b)throw u(i);var g=f(n,r);return n!==0&&_.__wbindgen_export4(n,r,1),g}finally{_.__wbindgen_add_to_stack_pointer(16)}}getHostedTables(){try{let b=_.__wbindgen_add_to_stack_pointer(-16);_.genericsqlvirtualservermodel_getHostedTables(b,this.__wbg_ptr);var t=a().getInt32(b+0,!0),e=a().getInt32(b+4,!0),n=a().getInt32(b+8,!0),r=a().getInt32(b+12,!0);if(r)throw u(n);var i=f(t,e);return t!==0&&_.__wbindgen_export4(t,e,1),i}finally{_.__wbindgen_add_to_stack_pointer(16)}}constructor(t){try{let i=_.__wbindgen_add_to_stack_pointer(-16);_.genericsqlvirtualservermodel_new(i,d(t)?0:c(t));var e=a().getInt32(i+0,!0),n=a().getInt32(i+4,!0),r=a().getInt32(i+8,!0);if(r)throw u(n);return this.__wbg_ptr=e>>>0,gt.register(this,this.__wbg_ptr,this),this}finally{_.__wbindgen_add_to_stack_pointer(16)}}quoteEntity(t){try{let g=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),v=p;_.genericsqlvirtualservermodel_quoteEntity(g,this.__wbg_ptr,w,v);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),r=a().getInt32(g+8,!0),i=a().getInt32(g+12,!0);if(i)throw u(r);var b=f(e,n);return e!==0&&_.__wbindgen_export4(e,n,1),b}finally{_.__wbindgen_add_to_stack_pointer(16)}}tableDescribe(t,e,n,r){try{let h=_.__wbindgen_add_to_stack_pointer(-16),y=m(t,_.__wbindgen_export,_.__wbindgen_export2),x=p;_.genericsqlvirtualservermodel_tableDescribe(h,this.__wbg_ptr,y,x,c(e),c(n),d(r)?16777215:r?1:0);var i=a().getInt32(h+0,!0),b=a().getInt32(h+4,!0),g=a().getInt32(h+8,!0),w=a().getInt32(h+12,!0);if(w)throw u(g);var v=f(i,b);return i!==0&&_.__wbindgen_export4(i,b,1),v}finally{_.__wbindgen_add_to_stack_pointer(16)}}tableMakeView(t,e,n,r,i){try{let y=_.__wbindgen_add_to_stack_pointer(-16),x=m(t,_.__wbindgen_export,_.__wbindgen_export2),C=p,M=m(e,_.__wbindgen_export,_.__wbindgen_export2),D=p;_.genericsqlvirtualservermodel_tableMakeView(y,this.__wbg_ptr,x,C,M,D,c(n),c(r),d(i)?16777215:i?1:0);var b=a().getInt32(y+0,!0),g=a().getInt32(y+4,!0),w=a().getInt32(y+8,!0),v=a().getInt32(y+12,!0);if(v)throw u(w);var h=f(b,g);return b!==0&&_.__wbindgen_export4(b,g,1),h}finally{_.__wbindgen_add_to_stack_pointer(16)}}tablePath(t){try{let g=_.__wbindgen_add_to_stack_pointer(-16),w=ht(t,_.__wbindgen_export),v=p;_.genericsqlvirtualservermodel_tablePath(g,this.__wbg_ptr,w,v);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),r=a().getInt32(g+8,!0),i=a().getInt32(g+12,!0);if(i)throw u(r);var b=f(e,n);return e!==0&&_.__wbindgen_export4(e,n,1),b}finally{_.__wbindgen_add_to_stack_pointer(16)}}tableSchema(t){try{let g=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),v=p;_.genericsqlvirtualservermodel_tableSchema(g,this.__wbg_ptr,w,v);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),r=a().getInt32(g+8,!0),i=a().getInt32(g+12,!0);if(i)throw u(r);var b=f(e,n);return e!==0&&_.__wbindgen_export4(e,n,1),b}finally{_.__wbindgen_add_to_stack_pointer(16)}}tableSize(t){try{let g=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),v=p;_.genericsqlvirtualservermodel_tableSize(g,this.__wbg_ptr,w,v);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),r=a().getInt32(g+8,!0),i=a().getInt32(g+12,!0);if(i)throw u(r);var b=f(e,n);return e!==0&&_.__wbindgen_export4(e,n,1),b}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewCollapse(t,e,n){try{let v=_.__wbindgen_add_to_stack_pointer(-16),h=m(t,_.__wbindgen_export,_.__wbindgen_export2),y=p;_.genericsqlvirtualservermodel_viewCollapse(v,this.__wbg_ptr,h,y,c(e),n);var r=a().getInt32(v+0,!0),i=a().getInt32(v+4,!0),b=a().getInt32(v+8,!0),g=a().getInt32(v+12,!0);if(g)throw u(b);var w=f(r,i);return r!==0&&_.__wbindgen_export4(r,i,1),w}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewColumnSize(t){try{let g=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),v=p;_.genericsqlvirtualservermodel_viewColumnSize(g,this.__wbg_ptr,w,v);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),r=a().getInt32(g+8,!0),i=a().getInt32(g+12,!0);if(i)throw u(r);var b=f(e,n);return e!==0&&_.__wbindgen_export4(e,n,1),b}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewDelete(t){try{let g=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),v=p;_.genericsqlvirtualservermodel_viewDelete(g,this.__wbg_ptr,w,v);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),r=a().getInt32(g+8,!0),i=a().getInt32(g+12,!0);if(i)throw u(r);var b=f(e,n);return e!==0&&_.__wbindgen_export4(e,n,1),b}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewExpand(t,e,n){try{let v=_.__wbindgen_add_to_stack_pointer(-16),h=m(t,_.__wbindgen_export,_.__wbindgen_export2),y=p;_.genericsqlvirtualservermodel_viewExpand(v,this.__wbg_ptr,h,y,c(e),n);var r=a().getInt32(v+0,!0),i=a().getInt32(v+4,!0),b=a().getInt32(v+8,!0),g=a().getInt32(v+12,!0);if(g)throw u(b);var w=f(r,i);return r!==0&&_.__wbindgen_export4(r,i,1),w}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewGetData(t,e,n,r){try{let h=_.__wbindgen_add_to_stack_pointer(-16),y=m(t,_.__wbindgen_export,_.__wbindgen_export2),x=p;_.genericsqlvirtualservermodel_viewGetData(h,this.__wbg_ptr,y,x,c(e),c(n),c(r));var i=a().getInt32(h+0,!0),b=a().getInt32(h+4,!0),g=a().getInt32(h+8,!0),w=a().getInt32(h+12,!0);if(w)throw u(g);var v=f(i,b);return i!==0&&_.__wbindgen_export4(i,b,1),v}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewGetMinMax(t,e,n){try{let v=_.__wbindgen_add_to_stack_pointer(-16),h=m(t,_.__wbindgen_export,_.__wbindgen_export2),y=p,x=m(e,_.__wbindgen_export,_.__wbindgen_export2),C=p;_.genericsqlvirtualservermodel_viewGetMinMax(v,this.__wbg_ptr,h,y,x,C,c(n));var r=a().getInt32(v+0,!0),i=a().getInt32(v+4,!0),b=a().getInt32(v+8,!0),g=a().getInt32(v+12,!0);if(g)throw u(b);var w=f(r,i);return r!==0&&_.__wbindgen_export4(r,i,1),w}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewMakeTable(t,e,n,r,i){try{let y=_.__wbindgen_add_to_stack_pointer(-16),x=m(t,_.__wbindgen_export,_.__wbindgen_export2),C=p,M=m(e,_.__wbindgen_export,_.__wbindgen_export2),D=p;_.genericsqlvirtualservermodel_viewMakeTable(y,this.__wbg_ptr,x,C,M,D,c(n),c(r),c(i));var b=a().getInt32(y+0,!0),g=a().getInt32(y+4,!0),w=a().getInt32(y+8,!0),v=a().getInt32(y+12,!0);if(v)throw u(w);var h=f(b,g);return b!==0&&_.__wbindgen_export4(b,g,1),h}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewSchema(t){try{let g=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),v=p;_.genericsqlvirtualservermodel_viewSchema(g,this.__wbg_ptr,w,v);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),r=a().getInt32(g+8,!0),i=a().getInt32(g+12,!0);if(i)throw u(r);var b=f(e,n);return e!==0&&_.__wbindgen_export4(e,n,1),b}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewSetDepth(t,e,n){try{let v=_.__wbindgen_add_to_stack_pointer(-16),h=m(t,_.__wbindgen_export,_.__wbindgen_export2),y=p;_.genericsqlvirtualservermodel_viewSetDepth(v,this.__wbg_ptr,h,y,c(e),n);var r=a().getInt32(v+0,!0),i=a().getInt32(v+4,!0),b=a().getInt32(v+8,!0),g=a().getInt32(v+12,!0);if(g)throw u(b);var w=f(r,i);return r!==0&&_.__wbindgen_export4(r,i,1),w}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewSize(t){try{let g=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),v=p;_.genericsqlvirtualservermodel_viewSize(g,this.__wbg_ptr,w,v);var e=a().getInt32(g+0,!0),n=a().getInt32(g+4,!0),r=a().getInt32(g+8,!0),i=a().getInt32(g+12,!0);if(i)throw u(r);var b=f(e,n);return e!==0&&_.__wbindgen_export4(e,n,1),b}finally{_.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(V.prototype[Symbol.dispose]=V.prototype.free);var $=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_perspectivedebugpluginelement_free(t,0)}clear(){let t=_.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}get config_column_names(){let t=_.perspectivedebugpluginelement_config_column_names(this.__wbg_ptr);return u(t)}connectedCallback(){_.perspectivedebugpluginelement_connectedCallback(this.__wbg_ptr)}delete(){let t=_.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}draw(t){_t(t,I);let e=_.perspectivedebugpluginelement_draw(this.__wbg_ptr,t.__wbg_ptr);return u(e)}get min_config_columns(){let t=_.perspectivedebugpluginelement_config_column_names(this.__wbg_ptr);return u(t)}get name(){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.perspectivedebugpluginelement_name(r,this.__wbg_ptr);var t=a().getInt32(r+0,!0),e=a().getInt32(r+4,!0),n=f(t,e);return t!==0&&_.__wbindgen_export4(t,e,1),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=_.perspectivedebugpluginelement_new(c(t));return this.__wbg_ptr=e>>>0,ft.register(this,this.__wbg_ptr,this),this}resize(){let t=_.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}restore(t){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.perspectivedebugpluginelement_restore(r,this.__wbg_ptr,d(t)?0:c(t));var e=a().getInt32(r+0,!0),n=a().getInt32(r+4,!0);if(n)throw u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}restyle(){_.perspectivedebugpluginelement_connectedCallback(this.__wbg_ptr)}save(){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.perspectivedebugpluginelement_save(r,this.__wbg_ptr);var t=a().getInt32(r+0,!0),e=a().getInt32(r+4,!0),n=a().getInt32(r+8,!0);if(n)throw u(e);return u(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get select_mode(){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.perspectivedebugpluginelement_select_mode(r,this.__wbg_ptr);var t=a().getInt32(r+0,!0),e=a().getInt32(r+4,!0),n=f(t,e);return t!==0&&_.__wbindgen_export4(t,e,1),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}update(t){_t(t,I);let e=_.perspectivedebugpluginelement_update(this.__wbg_ptr,t.__wbg_ptr);return u(e)}};Symbol.dispose&&($.prototype[Symbol.dispose]=$.prototype.free);var G=class s{static __wrap(t){t=t>>>0;let e=Object.create(s.prototype);return e.__wbg_ptr=t,Z.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_perspectiveviewerelement_free(t,0)}__get_model(){let t=_.perspectiveviewerelement___get_model(this.__wbg_ptr);return s.__wrap(t)}addPanel(t,e){let n=_.perspectiveviewerelement_addPanel(this.__wbg_ptr,c(t),d(e)?0:c(e));return u(n)}agentConfig(t){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.perspectiveviewerelement_agentConfig(r,this.__wbg_ptr,c(t));var e=a().getInt32(r+0,!0),n=a().getInt32(r+4,!0);if(n)throw u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}agentPrompt(t){let e=m(t,_.__wbindgen_export,_.__wbindgen_export2),n=p,r=_.perspectiveviewerelement_agentPrompt(this.__wbg_ptr,e,n);return u(r)}agentReset(){let t=_.perspectiveviewerelement_agentReset(this.__wbg_ptr);return u(t)}connectedCallback(){try{let n=_.__wbindgen_add_to_stack_pointer(-16);_.perspectiveviewerelement_connectedCallback(n,this.__wbg_ptr);var t=a().getInt32(n+0,!0),e=a().getInt32(n+4,!0);if(e)throw u(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}copy(t){let e=_.perspectiveviewerelement_copy(this.__wbg_ptr,d(t)?0:c(t));return u(e)}delete(){let t=this.__destroy_into_raw(),e=_.perspectiveviewerelement_delete(t);return u(e)}download(t){let e=_.perspectiveviewerelement_download(this.__wbg_ptr,d(t)?0:c(t));return u(e)}eject(t){let e=_.perspectiveviewerelement_eject(this.__wbg_ptr,d(t)?0:c(t));return u(e)}export(t){let e=_.perspectiveviewerelement_export(this.__wbg_ptr,d(t)?0:c(t));return u(e)}flush(){let t=_.perspectiveviewerelement_flush(this.__wbg_ptr);return u(t)}getActivePanel(){let t=_.perspectiveviewerelement_getActivePanel(this.__wbg_ptr);return u(t)}getAllPlugins(){let t=_.perspectiveviewerelement_getAllPlugins(this.__wbg_ptr);return u(t)}getClient(t){let e=_.perspectiveviewerelement_getClient(this.__wbg_ptr,d(t)?0:c(t));return u(e)}getEditPort(t){try{let i=_.__wbindgen_add_to_stack_pointer(-16);_.perspectiveviewerelement_getEditPort(i,this.__wbg_ptr,d(t)?0:c(t));var e=a().getFloat64(i+0,!0),n=a().getInt32(i+8,!0),r=a().getInt32(i+12,!0);if(r)throw u(n);return e}finally{_.__wbindgen_add_to_stack_pointer(16)}}getPanelNames(){let t=_.perspectiveviewerelement_getPanelNames(this.__wbg_ptr);return u(t)}getPlugin(t){try{let g=_.__wbindgen_add_to_stack_pointer(-16);var e=d(t)?0:m(t,_.__wbindgen_export,_.__wbindgen_export2),n=p;_.perspectiveviewerelement_getPlugin(g,this.__wbg_ptr,e,n);var r=a().getInt32(g+0,!0),i=a().getInt32(g+4,!0),b=a().getInt32(g+8,!0);if(b)throw u(i);return u(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}getRenderStats(t){try{let i=_.__wbindgen_add_to_stack_pointer(-16);_.perspectiveviewerelement_getRenderStats(i,this.__wbg_ptr,d(t)?0:c(t));var e=a().getInt32(i+0,!0),n=a().getInt32(i+4,!0),r=a().getInt32(i+8,!0);if(r)throw u(n);return u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}getSelection(t){try{let i=_.__wbindgen_add_to_stack_pointer(-16);_.perspectiveviewerelement_getSelection(i,this.__wbg_ptr,d(t)?0:c(t));var e=a().getInt32(i+0,!0),n=a().getInt32(i+4,!0),r=a().getInt32(i+8,!0);if(r)throw u(n);return u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}getTable(t){let e=_.perspectiveviewerelement_getTable(this.__wbg_ptr,d(t)?0:c(t));return u(e)}getThemes(){let t=_.perspectiveviewerelement_getThemes(this.__wbg_ptr);return u(t)}getView(t){let e=_.perspectiveviewerelement_getView(this.__wbg_ptr,d(t)?0:c(t));return u(e)}getViewConfig(t){let e=_.perspectiveviewerelement_getViewConfig(this.__wbg_ptr,d(t)?0:c(t));return u(e)}load(t){try{let i=_.__wbindgen_add_to_stack_pointer(-16);_.perspectiveviewerelement_load(i,this.__wbg_ptr,c(t));var e=a().getInt32(i+0,!0),n=a().getInt32(i+4,!0),r=a().getInt32(i+8,!0);if(r)throw u(n);return u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=_.perspectiveviewerelement_new(c(t));return this.__wbg_ptr=e>>>0,Z.register(this,this.__wbg_ptr,this),this}removePanel(t){let e=m(t,_.__wbindgen_export,_.__wbindgen_export2),n=p,r=_.perspectiveviewerelement_removePanel(this.__wbg_ptr,e,n);return u(r)}reset(t,e){let n=_.perspectiveviewerelement_reset(this.__wbg_ptr,d(t)?16777215:t?1:0,d(e)?0:c(e));return u(n)}resetError(){let t=_.perspectiveviewerelement_resetError(this.__wbg_ptr);return u(t)}resetThemes(t){var e=d(t)?0:ht(t,_.__wbindgen_export),n=p;let r=_.perspectiveviewerelement_resetThemes(this.__wbg_ptr,e,n);return u(r)}resize(t){let e=_.perspectiveviewerelement_resize(this.__wbg_ptr,d(t)?0:c(t));return u(e)}restore(t,e){let n=_.perspectiveviewerelement_restore(this.__wbg_ptr,c(t),d(e)?0:c(e));return u(n)}restoreWorkspace(t,e){let n=_.perspectiveviewerelement_restoreWorkspace(this.__wbg_ptr,c(t),d(e)?0:c(e));return u(n)}restyleElement(){let t=_.perspectiveviewerelement_restyleElement(this.__wbg_ptr);return u(t)}save(t){let e=_.perspectiveviewerelement_save(this.__wbg_ptr,d(t)?0:c(t));return u(e)}saveWorkspace(t){let e=_.perspectiveviewerelement_saveWorkspace(this.__wbg_ptr,d(t)?0:c(t));return u(e)}setActivePanel(t){let e=m(t,_.__wbindgen_export,_.__wbindgen_export2),n=p,r=_.perspectiveviewerelement_setActivePanel(this.__wbg_ptr,e,n);return u(r)}setAutoPause(t){let e=_.perspectiveviewerelement_setAutoPause(this.__wbg_ptr,t);return u(e)}setAutoSize(t){_.perspectiveviewerelement_setAutoSize(this.__wbg_ptr,t)}setSelection(t,e){try{let i=_.__wbindgen_add_to_stack_pointer(-16);_.perspectiveviewerelement_setSelection(i,this.__wbg_ptr,d(t)?0:c(t),d(e)?0:c(e));var n=a().getInt32(i+0,!0),r=a().getInt32(i+4,!0);if(r)throw u(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}setThrottle(t){_.perspectiveviewerelement_setThrottle(this.__wbg_ptr,!d(t),d(t)?0:t)}toggleColumnSettings(t,e){let n=m(t,_.__wbindgen_export,_.__wbindgen_export2),r=p,i=_.perspectiveviewerelement_toggleColumnSettings(this.__wbg_ptr,n,r,d(e)?0:c(e));return u(i)}toggleConfig(t){let e=_.perspectiveviewerelement_toggleConfig(this.__wbg_ptr,d(t)?16777215:t?1:0);return u(e)}};Symbol.dispose&&(G.prototype[Symbol.dispose]=G.prototype.free);var j=class s{static __wrap(t){t=t>>>0;let e=Object.create(s.prototype);return e.__wbg_ptr=t,tt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,tt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_proxysession_free(t,0)}close(){let t=this.__destroy_into_raw(),e=_.proxysession_close(t);return u(e)}handle_request(t){let e=_.proxysession_handle_request(this.__wbg_ptr,c(t));return u(e)}constructor(t,e){try{_t(t,F);let n=_.proxysession_new(t.__wbg_ptr,ot(e));return this.__wbg_ptr=n>>>0,tt.register(this,this.__wbg_ptr,this),this}finally{k[O++]=void 0}}};Symbol.dispose&&(j.prototype[Symbol.dispose]=j.prototype.free);var z=class s{static __wrap(t){t=t>>>0;let e=Object.create(s.prototype);return e.__wbg_ptr=t,dt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,dt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_table_free(t,0)}__getClassname(){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.table___getClassname(r,this.__wbg_ptr);var t=a().getInt32(r+0,!0),e=a().getInt32(r+4,!0),n=f(t,e);return t!==0&&_.__wbindgen_export4(t,e,1),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}clear(){let t=_.table_clear(this.__wbg_ptr);return u(t)}columns(){let t=_.table_columns(this.__wbg_ptr);return u(t)}delete(t){let e=this.__destroy_into_raw(),n=_.table_delete(e,d(t)?0:c(t));return u(n)}describe(t){let e=_.table_describe(this.__wbg_ptr,d(t)?0:c(t));return u(e)}get_client(){let t=_.table_get_client(this.__wbg_ptr);return u(t)}get_features(){let t=_.table_get_features(this.__wbg_ptr);return u(t)}get_index(){let t=_.table_get_index(this.__wbg_ptr);return u(t)}get_limit(){let t=_.table_get_limit(this.__wbg_ptr);return u(t)}get_name(){let t=_.table_get_name(this.__wbg_ptr);return u(t)}make_port(){let t=_.table_make_port(this.__wbg_ptr);return u(t)}on_delete(t){let e=_.table_on_delete(this.__wbg_ptr,c(t));return u(e)}remove(t,e){let n=_.table_remove(this.__wbg_ptr,c(t),d(e)?0:c(e));return u(n)}remove_delete(t){let e=_.table_remove_delete(this.__wbg_ptr,t);return u(e)}replace(t,e){let n=_.table_replace(this.__wbg_ptr,c(t),d(e)?0:c(e));return u(n)}schema(){let t=_.table_schema(this.__wbg_ptr);return u(t)}size(){let t=_.table_size(this.__wbg_ptr);return u(t)}update(t,e){let n=_.table_update(this.__wbg_ptr,c(t),d(e)?0:c(e));return u(n)}validate_expressions(t){let e=_.table_validate_expressions(this.__wbg_ptr,c(t));return u(e)}view(t){let e=_.table_view(this.__wbg_ptr,d(t)?0:c(t));return u(e)}};Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);var I=class s{static __wrap(t){t=t>>>0;let e=Object.create(s.prototype);return e.__wbg_ptr=t,wt.register(e,e.__wbg_ptr,e),e}static __unwrap(t){return t instanceof s?t.__destroy_into_raw():0}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_view_free(t,0)}__get_model(){let t=_.view___get_model(this.__wbg_ptr);return s.__wrap(t)}__unsafe_get_name(){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.view___unsafe_get_name(r,this.__wbg_ptr);var t=a().getInt32(r+0,!0),e=a().getInt32(r+4,!0),n=f(t,e);return t!==0&&_.__wbindgen_export4(t,e,1),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}collapse(t){let e=_.view_collapse(this.__wbg_ptr,t);return u(e)}column_paths(t){let e=_.view_column_paths(this.__wbg_ptr,d(t)?0:c(t));return u(e)}delete(){let t=this.__destroy_into_raw(),e=_.view_delete(t);return u(e)}dimensions(){let t=_.view_dimensions(this.__wbg_ptr);return u(t)}expand(t){let e=_.view_expand(this.__wbg_ptr,t);return u(e)}expression_schema(){let t=_.view_expression_schema(this.__wbg_ptr);return u(t)}get_config(){let t=_.view_get_config(this.__wbg_ptr);return u(t)}get_min_max(t){let e=m(t,_.__wbindgen_export,_.__wbindgen_export2),n=p,r=_.view_get_min_max(this.__wbg_ptr,e,n);return u(r)}num_columns(){let t=_.view_num_columns(this.__wbg_ptr);return u(t)}num_rows(){let t=_.view_num_rows(this.__wbg_ptr);return u(t)}on_delete(t){let e=_.view_on_delete(this.__wbg_ptr,c(t));return u(e)}on_remove(t){let e=_.view_on_remove(this.__wbg_ptr,c(t));return u(e)}on_update(t,e){let n=_.view_on_update(this.__wbg_ptr,c(t),d(e)?0:c(e));return u(n)}remove_delete(t){let e=_.view_remove_delete(this.__wbg_ptr,t);return u(e)}remove_remove(t){let e=_.view_remove_remove(this.__wbg_ptr,t);return u(e)}remove_update(t){let e=_.view_remove_update(this.__wbg_ptr,t);return u(e)}schema(){let t=_.view_schema(this.__wbg_ptr);return u(t)}set_depth(t){let e=_.view_set_depth(this.__wbg_ptr,t);return u(e)}to_arrow(t){let e=_.view_to_arrow(this.__wbg_ptr,d(t)?0:c(t));return u(e)}to_columns(t){let e=_.view_to_columns(this.__wbg_ptr,d(t)?0:c(t));return u(e)}to_columns_string(t){let e=_.view_to_columns_string(this.__wbg_ptr,d(t)?0:c(t));return u(e)}to_csv(t){let e=_.view_to_csv(this.__wbg_ptr,d(t)?0:c(t));return u(e)}to_json(t){let e=_.view_to_json(this.__wbg_ptr,d(t)?0:c(t));return u(e)}to_json_string(t){let e=_.view_to_json_string(this.__wbg_ptr,d(t)?0:c(t));return u(e)}to_ndjson(t){let e=_.view_to_ndjson(this.__wbg_ptr,d(t)?0:c(t));return u(e)}with_typed_arrays(t,e){let n=_.view_with_typed_arrays(this.__wbg_ptr,d(t)?0:c(t),c(e));return u(n)}};Symbol.dispose&&(I.prototype[Symbol.dispose]=I.prototype.free);var q=class s{static __wrap(t){t=t>>>0;let e=Object.create(s.prototype);return e.__wbg_ptr=t,et.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_virtualdataslice_free(t,0)}fromArrowIpc(t){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.virtualdataslice_fromArrowIpc(r,this.__wbg_ptr,c(t));var e=a().getInt32(r+0,!0),n=a().getInt32(r+4,!0);if(n)throw u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=_.virtualdataslice_new(c(t));return this.__wbg_ptr=e>>>0,et.register(this,this.__wbg_ptr,this),this}setBooleanCol(t,e,n,r){try{let g=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),v=p;_.virtualdataslice_setBooleanCol(g,this.__wbg_ptr,w,v,e,c(n),d(r)?4294967297:r>>>0);var i=a().getInt32(g+0,!0),b=a().getInt32(g+4,!0);if(b)throw u(i)}finally{_.__wbindgen_add_to_stack_pointer(16)}}setCol(t,e,n,r,i){try{let w=_.__wbindgen_add_to_stack_pointer(-16),v=m(t,_.__wbindgen_export,_.__wbindgen_export2),h=p,y=m(e,_.__wbindgen_export,_.__wbindgen_export2),x=p;_.virtualdataslice_setCol(w,this.__wbg_ptr,v,h,y,x,n,c(r),d(i)?4294967297:i>>>0);var b=a().getInt32(w+0,!0),g=a().getInt32(w+4,!0);if(g)throw u(b)}finally{_.__wbindgen_add_to_stack_pointer(16)}}setDatetimeCol(t,e,n,r){try{let g=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),v=p;_.virtualdataslice_setDatetimeCol(g,this.__wbg_ptr,w,v,e,c(n),d(r)?4294967297:r>>>0);var i=a().getInt32(g+0,!0),b=a().getInt32(g+4,!0);if(b)throw u(i)}finally{_.__wbindgen_add_to_stack_pointer(16)}}setFloatCol(t,e,n,r){try{let g=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),v=p;_.virtualdataslice_setFloatCol(g,this.__wbg_ptr,w,v,e,c(n),d(r)?4294967297:r>>>0);var i=a().getInt32(g+0,!0),b=a().getInt32(g+4,!0);if(b)throw u(i)}finally{_.__wbindgen_add_to_stack_pointer(16)}}setIntegerCol(t,e,n,r){try{let g=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),v=p;_.virtualdataslice_setIntegerCol(g,this.__wbg_ptr,w,v,e,c(n),d(r)?4294967297:r>>>0);var i=a().getInt32(g+0,!0),b=a().getInt32(g+4,!0);if(b)throw u(i)}finally{_.__wbindgen_add_to_stack_pointer(16)}}setStringCol(t,e,n,r){try{let g=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),v=p;_.virtualdataslice_setStringCol(g,this.__wbg_ptr,w,v,e,c(n),d(r)?4294967297:r>>>0);var i=a().getInt32(g+0,!0),b=a().getInt32(g+4,!0);if(b)throw u(i)}finally{_.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);var J=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_virtualserver_free(t,0)}handleRequest(t){let e=ee(t,_.__wbindgen_export),n=p,r=_.virtualserver_handleRequest(this.__wbg_ptr,e,n);return u(r)}constructor(t){try{let i=_.__wbindgen_add_to_stack_pointer(-16);_.virtualserver_new(i,c(t));var e=a().getInt32(i+0,!0),n=a().getInt32(i+4,!0),r=a().getInt32(i+8,!0);if(r)throw u(n);return this.__wbg_ptr=e>>>0,lt.register(this,this.__wbg_ptr,this),this}finally{_.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);function At(){try{let n=_.__wbindgen_add_to_stack_pointer(-16);_.getColumnConfigDefaults(n);var s=a().getInt32(n+0,!0),t=a().getInt32(n+4,!0),e=a().getInt32(n+8,!0);if(e)throw u(t);return u(s)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function Ft(){try{let n=_.__wbindgen_add_to_stack_pointer(-16);_.getPluginConfigDefaults(n);var s=a().getInt32(n+0,!0),t=a().getInt32(n+4,!0),e=a().getInt32(n+8,!0);if(e)throw u(t);return u(s)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function Et(){try{let n=_.__wbindgen_add_to_stack_pointer(-16);_.get_wasm_module(n);var s=a().getInt32(n+0,!0),t=a().getInt32(n+4,!0),e=a().getInt32(n+8,!0);if(e)throw u(t);return u(s)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function Rt(){try{let n=_.__wbindgen_add_to_stack_pointer(-16);_.get_worker_url(n);var s=a().getInt32(n+0,!0),t=a().getInt32(n+4,!0),e=a().getInt32(n+8,!0);if(e)throw u(t);return u(s)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function Tt(s,t){_.init(c(s),c(t))}function Pt(s){let t=m(s,_.__wbindgen_export,_.__wbindgen_export2),e=p;_.registerPlugin(t,e)}function Ot(s,t){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.setColumnConfigDefaults(r,c(s),d(t)?0:c(t));var e=a().getInt32(r+0,!0),n=a().getInt32(r+4,!0);if(n)throw u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function jt(s,t){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.setPluginConfigDefaults(r,c(s),d(t)?0:c(t));var e=a().getInt32(r+0,!0),n=a().getInt32(r+4,!0);if(n)throw u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function mt(){return{__proto__:null,"./perspective-viewer.wasm_bg.js":{__proto__:null,__wbg_Error_8c4e43fe74559d73:function(t,e){var n=f(t,e);let r=Error(n);return c(r)},__wbg_Number_04624de7d0e8332d:function(t){return Number(o(t))},__wbg_String_8f0eb39a4a4c2f66:function(t,e){let n=String(o(e)),r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2:function(t,e){let n=o(e),r=typeof n=="bigint"?n:void 0;a().setBigInt64(t+8,d(r)?BigInt(0):r,!0),a().setInt32(t+0,!d(r),!0)},__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25:function(t){let e=o(t),n=typeof e=="boolean"?e:void 0;return d(n)?16777215:n?1:0},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(t,e){let n=rt(o(e)),r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg___wbindgen_in_47fa6863be6f2f25:function(t,e){return o(t)in o(e)},__wbg___wbindgen_is_bigint_31b12575b56f32fc:function(t){return typeof o(t)=="bigint"},__wbg___wbindgen_is_function_0095a73b8b156f76:function(t){return typeof o(t)=="function"},__wbg___wbindgen_is_null_ac34f5003991759a:function(t){return o(t)===null},__wbg___wbindgen_is_object_5ae8e5880f2c1fbd:function(t){let e=o(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_cd444516edc5b180:function(t){return typeof o(t)=="string"},__wbg___wbindgen_is_undefined_9e4d92534c42d778:function(t){return o(t)===void 0},__wbg___wbindgen_jsval_eq_11888390b0186270:function(t,e){return o(t)===o(e)},__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811:function(t,e){return o(t)==o(e)},__wbg___wbindgen_number_get_8ff4255516ccad3e:function(t,e){let n=o(e),r=typeof n=="number"?n:void 0;a().setFloat64(t+8,d(r)?0:r,!0),a().setInt32(t+0,!d(r),!0)},__wbg___wbindgen_string_get_72fb696202c56729:function(t,e){let n=o(e),r=typeof n=="string"?n:void 0;var i=d(r)?0:m(r,_.__wbindgen_export,_.__wbindgen_export2),b=p;a().setInt32(t+4,b,!0),a().setInt32(t+0,i,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(t,e){var n=f(t,e);throw new Error(n)},__wbg__wbg_cb_unref_d9b87ff7982e3b21:function(t){o(t)._wbg_cb_unref()},__wbg_abort_2f0584e03e8e3950:function(t){o(t).abort()},__wbg_addEventListener_3acb0aad4483804c:function(){return l(function(t,e,n,r){var i=f(e,n);o(t).addEventListener(i,o(r))},arguments)},__wbg_addEventListener_5ef04ffb1d3af066:function(){return l(function(t,e,n,r,i){var b=f(e,n);o(t).addEventListener(b,o(r),i!==0)},arguments)},__wbg_addEventListener_c917b5aafbcf493f:function(){return l(function(t,e,n,r,i){var b=f(e,n);o(t).addEventListener(b,o(r),o(i))},arguments)},__wbg_add_5be83378df680c25:function(){return l(function(t,e,n){var r=f(e,n);o(t).add(r)},arguments)},__wbg_appendChild_dea38765a26d346d:function(){return l(function(t,e){let n=o(t).appendChild(o(e));return c(n)},arguments)},__wbg_append_a992ccc37aa62dc4:function(){return l(function(t,e,n,r,i){var b=f(e,n),g=f(r,i);o(t).append(b,g)},arguments)},__wbg_apply_2e22c45cb4f12415:function(){return l(function(t,e,n){let r=Reflect.apply(o(t),o(e),o(n));return c(r)},arguments)},__wbg_apply_ada2ee1a60ac7b3c:function(){return l(function(t,e,n){let r=o(t).apply(o(e),o(n));return c(r)},arguments)},__wbg_asyncIterator_58dd45e58aa3721e:function(){return c(Symbol.asyncIterator)},__wbg_at_dfc235641cc0e40c:function(t,e){let n=o(t).at(e);return c(n)},__wbg_attachShadow_d31cd520620b24d6:function(){return l(function(t,e){let n=o(t).attachShadow(o(e));return c(n)},arguments)},__wbg_blur_07f34335e06e5234:function(){return l(function(t){o(t).blur()},arguments)},__wbg_body_3a0b4437dadea6bf:function(t){let e=o(t).body;return d(e)?0:c(e)},__wbg_body_f67922363a220026:function(t){let e=o(t).body;return d(e)?0:c(e)},__wbg_bootstrap_bf12a7afb957af7c:function(t,e,n,r,i,b){var g=f(e,n),w=f(r,i);let v=ut(o(t),g,w,u(b));return c(v)},__wbg_bottom_c7ec510a18034add:function(t){return o(t).bottom},__wbg_bubbles_ad88192d3c29e6f9:function(t){return o(t).bubbles},__wbg_buffer_26d0910f3a5bc899:function(t){let e=o(t).buffer;return c(e)},__wbg_button_d86841d0a03adc44:function(t){return o(t).button},__wbg_cache_key_b02185c5bc89ef2a:function(t){let e=o(t).__yew_subtree_cache_key;return d(e)?4294967297:e>>>0},__wbg_calculatePath_3991bf999cfd9650:function(t,e,n){var r=f(e,n);let i=o(t).calculatePath(r);return c(i)},__wbg_calculatePresizePaths_815e8de6ced0b12f:function(t){let e=o(t).calculatePresizePaths();return c(e)},__wbg_call_389efe28435a9388:function(){return l(function(t,e){let n=o(t).call(o(e));return c(n)},arguments)},__wbg_call_41bedb84c3e5c0c9:function(){return l(function(t,e,n,r,i,b){let g=o(t).call(o(e),o(n),o(r),o(i),o(b));return c(g)},arguments)},__wbg_call_4708e0c13bdc8e95:function(){return l(function(t,e,n){let r=o(t).call(o(e),o(n));return c(r)},arguments)},__wbg_call_812d25f1510c13c8:function(){return l(function(t,e,n,r){let i=o(t).call(o(e),o(n),o(r));return c(i)},arguments)},__wbg_cancelBubble_d93ec09e9c46cd6f:function(t){return o(t).cancelBubble},__wbg_checked_04db83ac6810bc82:function(t){return o(t).checked},__wbg_childNodes_75d35de33c9f6fbb:function(t){let e=o(t).childNodes;return c(e)},__wbg_children_54099e7692eefa29:function(t){let e=o(t).children;return c(e)},__wbg_classList_1a87c34c6d81421e:function(t){let e=o(t).classList;return c(e)},__wbg_className_2a1be685f5d518d5:function(t,e){let n=o(e).className,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_clear_45ae3c94165fea2e:function(){return l(function(t){let e=o(t).clear();return c(e)},arguments)},__wbg_click_0e9c20848b655ed3:function(t){o(t).click()},__wbg_clientHeight_6432ff0d61ccfe7d:function(t){return o(t).clientHeight},__wbg_clientX_a3c5f4ff30e91264:function(t){return o(t).clientX},__wbg_clientY_e28509acb9b4a42a:function(t){return o(t).clientY},__wbg_client_new:function(t){let e=F.__wrap(t);return c(e)},__wbg_clipboard_98c5a32249fa8416:function(t){let e=o(t).clipboard;return c(e)},__wbg_cloneNode_b85e9102a9a31b29:function(){return l(function(t,e){let n=o(t).cloneNode(e!==0);return c(n)},arguments)},__wbg_cloneNode_eaf4ea08ebf633a5:function(){return l(function(t){let e=o(t).cloneNode();return c(e)},arguments)},__wbg_closest_11206fe6e0fb4e4e:function(){return l(function(t,e,n){var r=f(e,n);let i=o(t).closest(r);return d(i)?0:c(i)},arguments)},__wbg_code_dee0dae4730408e1:function(t,e){let n=o(e).code,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_column_config_schema_f24c13c71d3529d6:function(){return l(function(t,e,n,r,i,b,g,w,v,h,y,x){var C=f(e,n),M=f(r,i),D=f(b,g),It=f(y,x);let kt=o(t).column_config_schema(C,M,D,o(w),o(v),o(h),It);return c(kt)},arguments)},__wbg_composedPath_9154ab2547c668d5:function(t){let e=o(t).composedPath();return c(e)},__wbg_contains_1056459c33f961e8:function(t,e){return o(t).contains(o(e))},__wbg_contains_6f4d5df35ef8a13a:function(t,e,n){var r=f(e,n);return o(t).contains(r)},__wbg_contentRect_01006635bc2ba916:function(t){let e=o(t).contentRect;return c(e)},__wbg_createElementNS_ee00621496b30ec2:function(){return l(function(t,e,n,r,i){var b=f(e,n),g=f(r,i);let w=o(t).createElementNS(b,g);return c(w)},arguments)},__wbg_createElement_49f60fdcaae809c8:function(){return l(function(t,e,n){var r=f(e,n);let i=o(t).createElement(r);return c(i)},arguments)},__wbg_createObjectURL_918185db6a10a0c8:function(){return l(function(t,e){let n=URL.createObjectURL(o(e)),r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},arguments)},__wbg_createTextNode_55029686c9591bf3:function(t,e,n){var r=f(e,n);let i=o(t).createTextNode(r);return c(i)},__wbg_cssRules_554f47f3049cf066:function(){return l(function(t){let e=o(t).cssRules;return c(e)},arguments)},__wbg_cssText_8f3f27e60c824421:function(t,e){let n=o(e).cssText,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_dataTransfer_d924a622fbe51b06:function(t){let e=o(t).dataTransfer;return d(e)?0:c(e)},__wbg_dataset_20cb5c72458ae3fc:function(t){let e=o(t).dataset;return c(e)},__wbg_debug_46a93995fc6f8820:function(t,e,n,r){console.debug(o(t),o(e),o(n),o(r))},__wbg_debug_a4099fa12db6cd61:function(t){console.debug(o(t))},__wbg_decode_a28a47c6d83f2594:function(){return l(function(t,e,n,r,i){let b=o(e).decode(R(n,r),o(i)),g=m(b,_.__wbindgen_export,_.__wbindgen_export2),w=p;a().setInt32(t+4,w,!0),a().setInt32(t+0,g,!0)},arguments)},__wbg_define_panel_tab_361848e9d18dd208:function(t,e){var n=f(t,e);ct(n)},__wbg_delete_20829705887ed449:function(t){o(t).delete()},__wbg_delete_8318b529ff42aa20:function(t,e,n){var r=f(e,n);delete o(t)[r]},__wbg_deselect_bcd9372944ebdf7a:function(){return l(function(t){let e=o(t).deselect();return c(e)},arguments)},__wbg_detail_934cf9545e3214d3:function(t){let e=o(t).detail;return c(e)},__wbg_dispatchEvent_dc8dcc7ddca11378:function(){return l(function(t,e){return o(t).dispatchEvent(o(e))},arguments)},__wbg_document_ee35a3d3ae34ef6c:function(t){let e=o(t).document;return d(e)?0:c(e)},__wbg_done_57b39ecd9addfe81:function(t){return o(t).done},__wbg_draw_d48600417c9b38c7:function(){return l(function(t,e,n,r,i){let b=o(t).draw(I.__wrap(e),n===4294967297?void 0:n,r===4294967297?void 0:r,i!==0);return c(b)},arguments)},__wbg_entries_58c7934c745daac7:function(t){let e=Object.entries(o(t));return c(e)},__wbg_error_3c7d958458bf649b:function(t,e){var n=pt(t,e).slice();_.__wbindgen_export4(t,e*4,4),console.error(...n)},__wbg_error_7534b8e9a36f1ab4:function(t,e){var n=f(t,e);t!==0&&_.__wbindgen_export4(t,e,1),console.error(n)},__wbg_error_794d0ffc9d00d5c3:function(t,e,n,r){console.error(o(t),o(e),o(n),o(r))},__wbg_error_9a7fe3f932034cde:function(t){console.error(o(t))},__wbg_error_f852e41c69b0bd84:function(t,e){console.error(o(t),o(e))},__wbg_fetch_e6e8e0a221783759:function(t,e){let n=o(t).fetch(o(e));return c(n)},__wbg_focus_128ff465f65677cc:function(){return l(function(t){o(t).focus()},arguments)},__wbg_fonts_ba4bc521c555025e:function(t){let e=o(t).fonts;return c(e)},__wbg_format_7c97ddc401dae52f:function(t){let e=o(t).format;return c(e)},__wbg_from_bddd64e7d5ff6941:function(t){let e=Array.from(o(t));return c(e)},__wbg_getAttribute_b9f6fc4b689c71b0:function(t,e,n,r){var i=f(n,r);let b=o(e).getAttribute(i);var g=d(b)?0:m(b,_.__wbindgen_export,_.__wbindgen_export2),w=p;a().setInt32(t+4,w,!0),a().setInt32(t+0,g,!0)},__wbg_getBoundingClientRect_b5c8c34d07878818:function(t){let e=o(t).getBoundingClientRect();return c(e)},__wbg_getComputedStyle_2d1f9dfe4ee7e0b9:function(){return l(function(t,e){let n=o(t).getComputedStyle(o(e));return d(n)?0:c(n)},arguments)},__wbg_getContext_2a5764d48600bc43:function(){return l(function(t,e,n){var r=f(e,n);let i=o(t).getContext(r);return d(i)?0:c(i)},arguments)},__wbg_getEntriesByName_02488cff0bc7581c:function(t,e,n,r,i){var b=f(e,n),g=f(r,i);let w=o(t).getEntriesByName(b,g);return c(w)},__wbg_getPropertyValue_d6911b2a1f9acba9:function(){return l(function(t,e,n,r){var i=f(n,r);let b=o(e).getPropertyValue(i),g=m(b,_.__wbindgen_export,_.__wbindgen_export2),w=p;a().setInt32(t+4,w,!0),a().setInt32(t+0,g,!0)},arguments)},__wbg_getRandomValues_1c61fac11405ffdc:function(){return l(function(t,e){globalThis.crypto.getRandomValues(R(t,e))},arguments)},__wbg_getReader_804829cfb24eb4dd:function(t){let e=o(t).getReader();return c(e)},__wbg_getRootNode_193e544ed534e810:function(t){let e=o(t).getRootNode();return c(e)},__wbg_getSelection_d345357cda220f17:function(){return l(function(t){let e=o(t).getSelection();return d(e)?0:c(e)},arguments)},__wbg_getTime_1e3cd1391c5c3995:function(t){return o(t).getTime()},__wbg_getTimezoneOffset_81776d10a4ec18a8:function(t){return o(t).getTimezoneOffset()},__wbg_get_5dd1ee4c9f462865:function(t,e,n,r){var i=f(n,r);let b=o(e)[i];var g=d(b)?0:m(b,_.__wbindgen_export,_.__wbindgen_export2),w=p;a().setInt32(t+4,w,!0),a().setInt32(t+0,g,!0)},__wbg_get_76e04509d1922a04:function(t,e,n){var r=f(e,n);let i=o(t)[r];return d(i)?0:c(i)},__wbg_get_941633a1d2f510cb:function(){return l(function(t,e,n,r){var i=f(n,r);let b=o(e).get(i);var g=d(b)?0:m(b,_.__wbindgen_export,_.__wbindgen_export2),w=p;a().setInt32(t+4,w,!0),a().setInt32(t+0,g,!0)},arguments)},__wbg_get_9b94d73e6221f75c:function(t,e){let n=o(t)[e>>>0];return c(n)},__wbg_get_b3ed3ad4be2bc8ac:function(){return l(function(t,e){let n=Reflect.get(o(t),o(e));return c(n)},arguments)},__wbg_get_d8db2ad31d529ff8:function(t,e){let n=o(t)[e>>>0];return d(n)?0:c(n)},__wbg_get_static_config_8f2c7de76c413459:function(t){let e=o(t).get_static_config();return c(e)},__wbg_get_with_index_d26da38d2c038e1a:function(t,e){let n=o(t)[e>>>0];return d(n)?0:c(n)},__wbg_get_with_ref_key_1dc361bd10053bfe:function(t,e){let n=o(t)[o(e)];return c(n)},__wbg_hasAttribute_5d8f52cb4c739280:function(t,e,n){var r=f(e,n);return o(t).hasAttribute(r)},__wbg_has_d4e53238966c12b6:function(){return l(function(t,e){return Reflect.has(o(t),o(e))},arguments)},__wbg_headers_59a2938db9f80985:function(t){let e=o(t).headers;return c(e)},__wbg_height_45209601b4c4ede6:function(t){return o(t).height},__wbg_height_c2027cf67d1c9b11:function(t){return o(t).height},__wbg_hidden_8ce6a98b8c12451c:function(t){return o(t).hidden},__wbg_hidePopover_f52b72171825485d:function(){return l(function(t){o(t).hidePopover()},arguments)},__wbg_host_fb29f8be35c2517d:function(t){let e=o(t).host;return c(e)},__wbg_includes_32215c836f1cd3fb:function(t,e,n){return o(t).includes(o(e),n)},__wbg_indexOf_e5f91887d9e5023e:function(t,e,n){return o(t).indexOf(o(e),n)},__wbg_info_148d043840582012:function(t){console.info(o(t))},__wbg_info_9e602cf10c5c690b:function(t,e,n,r){console.info(o(t),o(e),o(n),o(r))},__wbg_innerHeight_54aa104da08becd2:function(){return l(function(t){let e=o(t).innerHeight;return c(e)},arguments)},__wbg_innerWidth_fa95c57321f4f033:function(){return l(function(t){let e=o(t).innerWidth;return c(e)},arguments)},__wbg_insertBefore_1468142836e61a51:function(){return l(function(t,e,n){let r=o(t).insertBefore(o(e),o(n));return c(r)},arguments)},__wbg_insertPanel_04820f392f487276:function(t,e,n,r,i){var b=f(e,n);let g=o(t).insertPanel(b,u(r),u(i));return c(g)},__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04:function(t){let e;try{e=o(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Array_d9eac779cd191cbc:function(t){let e;try{e=o(t)instanceof Array}catch{e=!1}return e},__wbg_instanceof_CanvasRenderingContext2d_4bb052fd1c3d134d:function(t){let e;try{e=o(t)instanceof CanvasRenderingContext2D}catch{e=!1}return e},__wbg_instanceof_CssStyleRule_23e59108346af0df:function(t){let e;try{e=o(t)instanceof CSSStyleRule}catch{e=!1}return e},__wbg_instanceof_CustomEvent_7dc010f377596c94:function(t){let e;try{e=o(t)instanceof CustomEvent}catch{e=!1}return e},__wbg_instanceof_Date_1b9f15b87f10aa4c:function(t){let e;try{e=o(t)instanceof Date}catch{e=!1}return e},__wbg_instanceof_Element_9e662f49ab6c6beb:function(t){let e;try{e=o(t)instanceof Element}catch{e=!1}return e},__wbg_instanceof_Error_8573fe0b0b480f46:function(t){let e;try{e=o(t)instanceof Error}catch{e=!1}return e},__wbg_instanceof_HtmlCanvasElement_3f2f6e1edb1c9792:function(t){let e;try{e=o(t)instanceof HTMLCanvasElement}catch{e=!1}return e},__wbg_instanceof_HtmlElement_5abfac207260fd6f:function(t){let e;try{e=o(t)instanceof HTMLElement}catch{e=!1}return e},__wbg_instanceof_HtmlInputElement_c10b7260b4e0710a:function(t){let e;try{e=o(t)instanceof HTMLInputElement}catch{e=!1}return e},__wbg_instanceof_HtmlLinkElement_5eb5b0855a17d0fc:function(t){let e;try{e=o(t)instanceof HTMLLinkElement}catch{e=!1}return e},__wbg_instanceof_HtmlSelectElement_a1820832b22b0d1e:function(t){let e;try{e=o(t)instanceof HTMLSelectElement}catch{e=!1}return e},__wbg_instanceof_Map_53af74335dec57f4:function(t){let e;try{e=o(t)instanceof Map}catch{e=!1}return e},__wbg_instanceof_Node_da04bd8df43deba3:function(t){let e;try{e=o(t)instanceof Node}catch{e=!1}return e},__wbg_instanceof_Object_1c6af87502b733ed:function(t){let e;try{e=o(t)instanceof Object}catch{e=!1}return e},__wbg_instanceof_Promise_0094681e3519d6ec:function(t){let e;try{e=o(t)instanceof Promise}catch{e=!1}return e},__wbg_instanceof_Response_ee1d54d79ae41977:function(t){let e;try{e=o(t)instanceof Response}catch{e=!1}return e},__wbg_instanceof_ShadowRoot_5285adde3587c73e:function(t){let e;try{e=o(t)instanceof ShadowRoot}catch{e=!1}return e},__wbg_instanceof_Uint8Array_9b9075935c74707c:function(t){let e;try{e=o(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_instanceof_Window_ed49b2db8df90359:function(t){let e;try{e=o(t)instanceof Window}catch{e=!1}return e},__wbg_isArray_d314bb98fcf08331:function(t){return Array.isArray(o(t))},__wbg_isCollapsed_617e9be3f62f5a25:function(t){return o(t).isCollapsed},__wbg_isConnected_6110bc2c5462f90e:function(t){return o(t).isConnected},__wbg_isContentEditable_f5b0ce009dbd035b:function(t){return o(t).isContentEditable},__wbg_isIntersecting_a2afead08169be31:function(t){return o(t).isIntersecting},__wbg_isSafeInteger_bfbc7332a9768d2a:function(t){return Number.isSafeInteger(o(t))},__wbg_isSameNode_3caa48d6eb3c880e:function(t,e){return o(t).isSameNode(o(e))},__wbg_is_f29129f676e5410c:function(t,e){return Object.is(o(t),o(e))},__wbg_item_00ae26320b80a11f:function(t,e,n){let r=o(e).item(n>>>0),i=m(r,_.__wbindgen_export,_.__wbindgen_export2),b=p;a().setInt32(t+4,b,!0),a().setInt32(t+0,i,!0)},__wbg_item_48715d3212ed96cb:function(t,e){let n=o(t).item(e>>>0);return d(n)?0:c(n)},__wbg_item_5c82f52b014b3056:function(t,e){let n=o(t).item(e>>>0);return d(n)?0:c(n)},__wbg_item_64b77e6a26f7de76:function(t,e){let n=o(t).item(e>>>0);return d(n)?0:c(n)},__wbg_item_ca823df8214b9e2b:function(t,e){let n=o(t).item(e>>>0);return d(n)?0:c(n)},__wbg_iterator_6ff6560ca1568e55:function(){return c(Symbol.iterator)},__wbg_keyCode_155291a11654466e:function(t){return o(t).keyCode},__wbg_key_d41e8e825e6bb0e9:function(t,e){let n=o(e).key,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_keys_b50a709a76add04e:function(t){let e=Object.keys(o(t));return c(e)},__wbg_languages_5a69df7551d1a803:function(t){let e=o(t).languages;return c(e)},__wbg_lastChild_132d67597d5e4aef:function(t){let e=o(t).lastChild;return d(e)?0:c(e)},__wbg_left_3b7c3c1030d5ca7a:function(t){return o(t).left},__wbg_length_25851a48867b2afc:function(t){return o(t).length},__wbg_length_32ed9a279acd054c:function(t){return o(t).length},__wbg_length_35a7bace40f36eac:function(t){return o(t).length},__wbg_length_3f12bc1cab862cc3:function(t){return o(t).length},__wbg_length_b5aa6c69c842d6a6:function(t){return o(t).length},__wbg_length_e455564ce5cbf46e:function(t){return o(t).length},__wbg_length_edae0cd13a8d3b71:function(t){return o(t).length},__wbg_listener_id_3f13203bf7de1e4d:function(t){let e=o(t).__yew_listener_id;return d(e)?4294967297:e>>>0},__wbg_load_f8d29f3c1bda8dd1:function(t,e,n,r,i){var b=f(e,n),g=f(r,i);let w=o(t).load(b,g);return c(w)},__wbg_mark_3b530a64b09ba08a:function(){return l(function(t,e,n){var r=f(e,n);o(t).mark(r)},arguments)},__wbg_matches_852ba8b2b4592069:function(){return l(function(t,e,n){var r=f(e,n);return o(t).matches(r)},arguments)},__wbg_maximize_d8be159d8bccf0a6:function(t,e,n){var r=f(e,n);o(t).maximize(r)},__wbg_measureText_9d64a92333bd05ee:function(){return l(function(t,e,n){var r=f(e,n);let i=o(t).measureText(r);return c(i)},arguments)},__wbg_measure_288b48c082eae0fe:function(){return l(function(t,e,n,r,i){var b=f(e,n),g=f(r,i);o(t).measure(b,g)},arguments)},__wbg_message_9ddc4b9a62a7c379:function(t){let e=o(t).message;return c(e)},__wbg_minimize_d99f282d1e74eefa:function(t){o(t).minimize()},__wbg_namespaceURI_86e2062c65f0f341:function(t,e){let n=o(e).namespaceURI;var r=d(n)?0:m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_navigator_43be698ba96fc088:function(t){let e=o(t).navigator;return c(e)},__wbg_new_16c83877745f8d12:function(){return l(function(t,e){var n=f(t,e);let r=new InputEvent(n);return c(r)},arguments)},__wbg_new_1d5bd472c706b768:function(){return l(function(){let t=new CSSStyleSheet;return c(t)},arguments)},__wbg_new_245cd5c49157e602:function(t){let e=new Date(o(t));return c(e)},__wbg_new_2ec3ec8c398b20d2:function(){return l(function(){let t=new TextDecoder;return c(t)},arguments)},__wbg_new_361308b2356cecd0:function(){let t=new Object;return c(t)},__wbg_new_3826be2f233731df:function(t){let e=new at(o(t));return c(e)},__wbg_new_384a230f8673183c:function(){return l(function(t,e){var n=f(t,e);let r=new CustomEvent(n);return c(r)},arguments)},__wbg_new_3eb36ae241fe6f44:function(){let t=new Array;return c(t)},__wbg_new_64284bd487f9d239:function(){return l(function(){let t=new Headers;return c(t)},arguments)},__wbg_new_72b49615380db768:function(t,e){var n=f(t,e);let r=new Error(n);return c(r)},__wbg_new_7c589bfb2b195adb:function(t){let e=new it(o(t));return c(e)},__wbg_new_86c8f0b79e48927d:function(t,e){let n=new Intl.NumberFormat(o(t),o(e));return c(n)},__wbg_new_8a6f238a6ece86ea:function(){let t=new Error;return c(t)},__wbg_new_b5d9e2fb389fef91:function(t,e){try{var n={a:t,b:e},r=(b,g)=>{let w=n.a;n.a=0;try{return Bt(w,n.b,b,g)}finally{n.a=w}};let i=new Promise(r);return c(i)}finally{n.a=n.b=0}},__wbg_new_b949e7f56150a5d1:function(){return l(function(){let t=new AbortController;return c(t)},arguments)},__wbg_new_c155239f1b113b68:function(t,e){let n=new Intl.DateTimeFormat(o(t),o(e));return c(n)},__wbg_new_dca287b076112a51:function(){return c(new Map)},__wbg_new_dd2b680c8bf6ae29:function(t){let e=new Uint8Array(o(t));return c(e)},__wbg_new_f42c90a99eb0454c:function(t){let e=new st(o(t));return c(e)},__wbg_new_from_slice_a3d2629dc1826784:function(t,e){let n=new Uint8Array(R(t,e));return c(n)},__wbg_new_no_args_1c7c842f08d00ebb:function(t,e){var n=f(t,e);let r=new Function(n);return c(r)},__wbg_new_with_event_init_dict_48877e7ca125f3c1:function(){return l(function(t,e,n){var r=f(t,e);let i=new CustomEvent(r,o(n));return c(i)},arguments)},__wbg_new_with_length_1763c527b2923202:function(t){let e=new Array(t>>>0);return c(e)},__wbg_new_with_str_and_init_a61cbc6bdef21614:function(){return l(function(t,e,n){var r=f(t,e);let i=new Request(r,o(n));return c(i)},arguments)},__wbg_new_with_str_sequence_and_options_9b8b0bee99ec6b0f:function(){return l(function(t,e){let n=new Blob(o(t),o(e));return c(n)},arguments)},__wbg_new_with_u8_array_sequence_08b2096a9f3117c0:function(){return l(function(t){let e=new Blob(o(t));return c(e)},arguments)},__wbg_nextSibling_2e988d9bbe3e06f0:function(t){let e=o(t).nextSibling;return d(e)?0:c(e)},__wbg_next_3482f54c49e8af19:function(){return l(function(t){let e=o(t).next();return c(e)},arguments)},__wbg_next_418f80d8f5303233:function(t){let e=o(t).next;return c(e)},__wbg_now_a3af9a2f4bbaa4d1:function(){return Date.now()},__wbg_now_ebffdf7e580f210d:function(t){return o(t).now()},__wbg_observe_8df9db580b7f6949:function(t,e){o(t).observe(o(e))},__wbg_observe_c0a8fc2a672c93d2:function(t,e){o(t).observe(o(e))},__wbg_of_f915f7cd925b21a5:function(t){let e=Array.of(o(t));return c(e)},__wbg_offsetHeight_34f7abc1686733cc:function(t){return o(t).offsetHeight},__wbg_offsetParent_9627ebca6b03e8b2:function(t){let e=o(t).offsetParent;return d(e)?0:c(e)},__wbg_offsetWidth_f37b33a53e513101:function(t){return o(t).offsetWidth},__wbg_offsetX_b76b9bb1f9235de9:function(t){return o(t).offsetX},__wbg_offsetY_db5c1ddb866e1b82:function(t){return o(t).offsetY},__wbg_ok_87f537440a0acf85:function(t){return o(t).ok},__wbg_parentElement_75863410a8617953:function(t){let e=o(t).parentElement;return d(e)?0:c(e)},__wbg_parentNode_d44bd5ec58601e45:function(t){let e=o(t).parentNode;return d(e)?0:c(e)},__wbg_parse_708461a1feddfb38:function(){return l(function(t,e){var n=f(t,e);let r=JSON.parse(n);return c(r)},arguments)},__wbg_performance_06f12ba62483475d:function(t){let e=o(t).performance;return d(e)?0:c(e)},__wbg_plugin_config_schema_adf5cdc29d23471b:function(){return l(function(t,e,n){let r=o(t).plugin_config_schema(o(e),o(n));return c(r)},arguments)},__wbg_pointerId_466b1bdcaf2fe835:function(t){return o(t).pointerId},__wbg_pop_80fa29128215a463:function(t){let e=o(t).pop();return c(e)},__wbg_prepend_12ed960547d9dfe1:function(){return l(function(t,e){o(t).prepend(o(e))},arguments)},__wbg_presize_afa8c138376dbb20:function(){return l(function(t,e,n){let r=o(t).presize(e,n);return c(r)},arguments)},__wbg_preventDefault_cdcfcd7e301b9702:function(t){o(t).preventDefault()},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(t,e,n){Uint8Array.prototype.set.call(R(t,e),o(n))},__wbg_push_8ffdcb2063340ba5:function(t,e){return o(t).push(o(e))},__wbg_querySelectorAll_1283aae52043a951:function(){return l(function(t,e,n){var r=f(e,n);let i=o(t).querySelectorAll(r);return c(i)},arguments)},__wbg_querySelectorAll_5875742f4e11f759:function(){return l(function(t,e,n){var r=f(e,n);let i=o(t).querySelectorAll(r);return c(i)},arguments)},__wbg_querySelector_1be4292f202b1597:function(){return l(function(t,e,n){var r=f(e,n);let i=o(t).querySelector(r);return d(i)?0:c(i)},arguments)},__wbg_querySelector_4dc619d02f6cb079:function(){return l(function(t,e,n){var r=f(e,n);let i=o(t).querySelector(r);return d(i)?0:c(i)},arguments)},__wbg_queueMicrotask_0aa0a927f78f5d98:function(t){let e=o(t).queueMicrotask;return c(e)},__wbg_queueMicrotask_5bb536982f78a56f:function(t){queueMicrotask(o(t))},__wbg_readText_b9ac81623f153a62:function(t){let e=o(t).readText();return c(e)},__wbg_read_68fd377df67e19b0:function(t){let e=o(t).read();return c(e)},__wbg_readyState_cf11f0728fc7b46c:function(t,e){let n=o(e).readyState,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_realCoordinates_198109355e69459b:function(t,e){let n=o(t).realCoordinates(o(e));return c(n)},__wbg_reject_a2176de7f1212be5:function(t){let e=Promise.reject(o(t));return c(e)},__wbg_relatedTarget_1557cded94b97af2:function(t){let e=o(t).relatedTarget;return d(e)?0:c(e)},__wbg_releasePointerCapture_420ef33c7c5fb6f4:function(){return l(function(t,e){o(t).releasePointerCapture(e)},arguments)},__wbg_removeAllRanges_39254b77dc6257ab:function(){return l(function(t){o(t).removeAllRanges()},arguments)},__wbg_removeAttribute_87259aab06d9f286:function(){return l(function(t,e,n){var r=f(e,n);o(t).removeAttribute(r)},arguments)},__wbg_removeChild_2f0b06213dbc49ca:function(){return l(function(t,e){let n=o(t).removeChild(o(e));return c(n)},arguments)},__wbg_removeEventListener_0c0902ed5009dd9f:function(){return l(function(t,e,n,r,i){var b=f(e,n);o(t).removeEventListener(b,o(r),i!==0)},arguments)},__wbg_removeEventListener_e63328781a5b9af9:function(){return l(function(t,e,n,r){var i=f(e,n);o(t).removeEventListener(i,o(r))},arguments)},__wbg_removePanel_2d2bdc24aa2ae1e2:function(t,e,n){var r=f(e,n);let i=o(t).removePanel(r);return c(i)},__wbg_removeProperty_a0d2ff8a76ffd2b1:function(){return l(function(t,e,n,r){var i=f(n,r);let b=o(e).removeProperty(i),g=m(b,_.__wbindgen_export,_.__wbindgen_export2),w=p;a().setInt32(t+4,w,!0),a().setInt32(t+0,g,!0)},arguments)},__wbg_remove_31c39325eee968fc:function(t){o(t).remove()},__wbg_remove_f9451697e0bc6ca0:function(){return l(function(t,e,n){var r=f(e,n);o(t).remove(r)},arguments)},__wbg_render_03572902f5456431:function(){return l(function(t,e,n){let r=o(t).render(I.__wrap(e),u(n));return c(r)},arguments)},__wbg_replaceSync_54e9ce897fe6ab6a:function(){return l(function(t,e,n){var r=f(e,n);o(t).replaceSync(r)},arguments)},__wbg_requestAnimationFrame_43682f8e1c5e5348:function(){return l(function(t,e){return o(t).requestAnimationFrame(o(e))},arguments)},__wbg_resize_d10aa85b3878f4a7:function(){return l(function(t){let e=o(t).resize();return c(e)},arguments)},__wbg_resolve_002c4b7d9d8f6b64:function(t){let e=Promise.resolve(o(t));return c(e)},__wbg_resolvedOptions_4c36dbfa1c4ba2bf:function(t){let e=o(t).resolvedOptions();return c(e)},__wbg_restorePhysics_0f68959416823142:function(t,e){o(t).restorePhysics(o(e))},__wbg_restoreSync_27d00a30226048cf:function(t,e){o(t).restoreSync(o(e))},__wbg_restore_37d5e3ed18d7734b:function(){return l(function(t,e,n){o(t).restore(o(e),o(n))},arguments)},__wbg_restyle_c60fb8d138c11d34:function(t){o(t).restyle()},__wbg_resumeResize_4c01bb77c794b6d7:function(t){o(t).resumeResize()},__wbg_right_154af6c2b1bf0c89:function(t){return o(t).right},__wbg_run_9572f64bdbcca74b:function(){return l(function(t,e){let n=o(t).run(o(e));return c(n)},arguments)},__wbg_save_e09ac30806bd67c0:function(t){let e=o(t).save();return c(e)},__wbg_scrollHeight_25e40881bfad55b6:function(t){return o(t).scrollHeight},__wbg_scrollLeft_2b817c7719d17438:function(t){return o(t).scrollLeft},__wbg_scrollTop_0a3a77f9fcbe038e:function(t){return o(t).scrollTop},__wbg_scrollTop_4161d2a08060cb06:function(t){return o(t).scrollTop},__wbg_select_4684b2d51f609536:function(t,e,n){var r=f(e,n);let i=o(t).select(r);return c(i)},__wbg_select_f96715f412d93f23:function(t){o(t).select()},__wbg_selectedIndex_b1465d243fcb7142:function(t){return o(t).selectedIndex},__wbg_selectionEnd_f3cba543517b4aa8:function(){return l(function(t){let e=o(t).selectionEnd;return d(e)?4294967297:e>>>0},arguments)},__wbg_selectionStart_9cd0aeff14a21252:function(){return l(function(t){let e=o(t).selectionStart;return d(e)?4294967297:e>>>0},arguments)},__wbg_selectorText_4ebdf4f8074dafea:function(t,e){let n=o(e).selectorText,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_setAttribute_cc8e4c8a2a008508:function(){return l(function(t,e,n,r,i){var b=f(e,n),g=f(r,i);o(t).setAttribute(b,g)},arguments)},__wbg_setDragImage_76defbcc7ff30178:function(t,e,n,r){o(t).setDragImage(o(e),n,r)},__wbg_setPointerCapture_420db6f6826eb74b:function(){return l(function(t,e){o(t).setPointerCapture(e)},arguments)},__wbg_setProperty_cbb25c4e74285b39:function(){return l(function(t,e,n,r,i){var b=f(e,n),g=f(r,i);o(t).setProperty(b,g)},arguments)},__wbg_setSelectionRange_301eef1c51e01d2a:function(){return l(function(t,e,n){o(t).setSelectionRange(e>>>0,n>>>0)},arguments)},__wbg_setTimeout_21d8cc2869b34c58:function(t,e){return setTimeout(o(t),e)},__wbg_setTimeout_eff32631ea138533:function(){return l(function(t,e,n){return o(t).setTimeout(o(e),n)},arguments)},__wbg_set_1eb0999cf5d27fc8:function(t,e,n){let r=o(t).set(o(e),o(n));return c(r)},__wbg_set_3f1d0b984ed272ed:function(t,e,n){o(t)[u(e)]=u(n)},__wbg_set_6cb8631f80447a67:function(){return l(function(t,e,n){return Reflect.set(o(t),o(e),o(n))},arguments)},__wbg_set_body_9a7e00afe3cfe244:function(t,e){o(t).body=o(e)},__wbg_set_bubbles_739f291693b2bbec:function(t,e){o(t).bubbles=e!==0},__wbg_set_cache_key_ace1fa875f02b7cd:function(t,e){o(t).__yew_subtree_cache_key=e>>>0},__wbg_set_capture_d52e7a585f2933c8:function(t,e){o(t).capture=e!==0},__wbg_set_checked_4b2468680005fbf7:function(t,e){o(t).checked=e!==0},__wbg_set_className_c1d9e7362164af61:function(t,e,n){var r=f(e,n);o(t).className=r},__wbg_set_composed_e4a9826a628ca7f8:function(t,e){o(t).composed=e!==0},__wbg_set_cssText_18380c97092caefa:function(t,e,n){var r=f(e,n);o(t).cssText=r},__wbg_set_defaultValue_ad528b0a65ceef4a:function(){return l(function(t,e,n){var r=f(e,n);o(t).defaultValue=r},arguments)},__wbg_set_detail_fa3b358526be3a85:function(t,e){o(t).detail=o(e)},__wbg_set_dropEffect_042402609f0b7c6b:function(t,e,n){var r=f(e,n);o(t).dropEffect=r},__wbg_set_f43e577aea94465b:function(t,e,n){o(t)[e>>>0]=u(n)},__wbg_set_fb27b296001e2de9:function(){return l(function(t,e,n,r,i){var b=f(e,n),g=f(r,i);o(t)[b]=g},arguments)},__wbg_set_font_575685c8f7e56957:function(t,e,n){var r=f(e,n);o(t).font=r},__wbg_set_headers_cfc5f4b2c1f20549:function(t,e){o(t).headers=o(e)},__wbg_set_innerHTML_edd39677e3460291:function(t,e,n){var r=f(e,n);o(t).innerHTML=r},__wbg_set_innerText_2f1502f2d0780499:function(t,e,n){var r=f(e,n);o(t).innerText=r},__wbg_set_listener_id_8b77f7eb9adb712b:function(t,e){o(t).__yew_listener_id=e>>>0},__wbg_set_method_c3e20375f5ae7fac:function(t,e,n){var r=f(e,n);o(t).method=r},__wbg_set_mode_6a55f972d62a3c88:function(t,e){o(t).mode=Ut[e]},__wbg_set_nodeValue_d947eb0a476b80d7:function(t,e,n){var r=f(e,n);o(t).nodeValue=r},__wbg_set_passive_f411e67e6f28687b:function(t,e){o(t).passive=e!==0},__wbg_set_scrollLeft_8de8fc187e3a6808:function(t,e){o(t).scrollLeft=e},__wbg_set_scrollTop_bebe746cd217a3d1:function(t,e){o(t).scrollTop=e},__wbg_set_scrollTop_fb454582dda63417:function(t,e){o(t).scrollTop=e},__wbg_set_selectionEnd_01e3269db03d5d2e:function(){return l(function(t,e){o(t).selectionEnd=e===4294967297?void 0:e},arguments)},__wbg_set_selectionStart_d68d6955c07c2be1:function(){return l(function(t,e){o(t).selectionStart=e===4294967297?void 0:e},arguments)},__wbg_set_signal_f2d3f8599248896d:function(t,e){o(t).signal=o(e)},__wbg_set_stream_8a7c5f563fa185b4:function(t,e){o(t).stream=e!==0},__wbg_set_subtree_id_8be88ea477740786:function(t,e){o(t).__yew_subtree_id=e>>>0},__wbg_set_type_148de20768639245:function(t,e,n){var r=f(e,n);o(t).type=r},__wbg_set_value_62a965e38b22b38c:function(t,e,n){var r=f(e,n);o(t).value=r},__wbg_set_value_c3556fce049236f0:function(t,e,n){var r=f(e,n);o(t).value=r},__wbg_set_value_ddc3bd01a8467bf1:function(t,e,n){var r=f(e,n);o(t).value=r},__wbg_shadowRoot_14828067c5922da7:function(t){let e=o(t).shadowRoot;return d(e)?0:c(e)},__wbg_sheet_38c9043b5f37d85d:function(t){let e=o(t).sheet;return d(e)?0:c(e)},__wbg_shiftKey_5558a3288542c985:function(t){return o(t).shiftKey},__wbg_shiftKey_564be91ec842bcc4:function(t){return o(t).shiftKey},__wbg_showPicker_ba1d36381dae3011:function(){return l(function(t){o(t).showPicker()},arguments)},__wbg_showPopover_7166cd0808998024:function(){return l(function(t){o(t).showPopover()},arguments)},__wbg_signal_d1285ecab4ebc5ad:function(t){let e=o(t).signal;return c(e)},__wbg_slot_7d421d6c9d6c8352:function(t,e){let n=o(e).slot,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_stack_0ed75d68575b0f3c:function(t,e){let n=o(e).stack,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_startTime_248495bfbcb427d3:function(t){return o(t).startTime},__wbg_static_accessor_GLOBAL_12837167ad935116:function(){let t=typeof self>"u"?null:self;return d(t)?0:c(t)},__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f:function(){let t=typeof globalThis>"u"?null:globalThis;return d(t)?0:c(t)},__wbg_static_accessor_PSP_4d4e475beff2bbd2:function(){return c(X)},__wbg_static_accessor_SELF_a621d3dfbb60d0ce:function(){let t=typeof self>"u"?null:self;return d(t)?0:c(t)},__wbg_static_accessor_WINDOW_f8727f0cf888e0bd:function(){let t=typeof window>"u"?null:window;return d(t)?0:c(t)},__wbg_statusText_556131a02d60f5cd:function(t,e){let n=o(e).statusText,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_status_89d7e803db911ee7:function(t){return o(t).status},__wbg_stopPropagation_6e5e2a085214ac63:function(t){o(t).stopPropagation()},__wbg_stringify_2fdc12d5545a89d9:function(){return l(function(t,e,n){let r=JSON.stringify(o(t),o(e),o(n));return c(r)},arguments)},__wbg_stringify_8d1cc6ff383e8bae:function(){return l(function(t){let e=JSON.stringify(o(t));return c(e)},arguments)},__wbg_styleSheets_54de627270238f6f:function(t){let e=o(t).styleSheets;return c(e)},__wbg_style_0b7c9bd318f8b807:function(t){let e=o(t).style;return c(e)},__wbg_style_fa56cf251a93275a:function(t){let e=o(t).style;return c(e)},__wbg_subtree_id_1739fcadc43deeca:function(t){let e=o(t).__yew_subtree_id;return d(e)?4294967297:e>>>0},__wbg_supportedValuesOf_b47b0be3bd0b19d6:function(t){let e=Intl.supportedValuesOf(o(t));return c(e)},__wbg_table_new:function(t){let e=z.__wrap(t);return c(e)},__wbg_tagName_0cf6d7b647352f04:function(t,e){let n=o(e).tagName,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_target_521be630ab05b11e:function(t){let e=o(t).target;return d(e)?0:c(e)},__wbg_text_083b8727c990c8c0:function(){return l(function(t){let e=o(t).text();return c(e)},arguments)},__wbg_then_0d9fe2c7b1857d32:function(t,e,n){let r=o(t).then(o(e),o(n));return c(r)},__wbg_then_b9e7b3b5f1a9e1b5:function(t,e){let n=o(t).then(o(e));return c(n)},__wbg_timeStamp_ddfe1bf5c2346d68:function(t){return o(t).timeStamp},__wbg_toString_964ff7fe6eca8362:function(t){let e=o(t).toString();return c(e)},__wbg_toggleAttribute_d89e5c9e9053c9c4:function(){return l(function(t,e,n,r){var i=f(e,n);return o(t).toggleAttribute(i,r!==0)},arguments)},__wbg_toggle_52417ca95b874e83:function(){return l(function(t,e,n){var r=f(e,n);return o(t).toggle(r)},arguments)},__wbg_toggle_b8e3ebf1a7aaeb11:function(){return l(function(t,e,n,r){var i=f(e,n);return o(t).toggle(i,r!==0)},arguments)},__wbg_top_3d27ff6f468cf3fc:function(t){return o(t).top},__wbg_trace_9007714a6fbee374:function(t){console.trace(o(t))},__wbg_trace_bd16b570941b54fb:function(t,e,n,r){console.trace(o(t),o(e),o(n),o(r))},__wbg_type_4edffca24c42b74d:function(t,e){let n=o(e).type,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_unobserve_cc09a8dc24fc662a:function(t,e){o(t).unobserve(o(e))},__wbg_unobserve_e7fff403d97d432f:function(t,e){o(t).unobserve(o(e))},__wbg_update_d076470d109f7159:function(){return l(function(t,e,n,r,i){let b=o(t).update(I.__wrap(e),n===4294967297?void 0:n,r===4294967297?void 0:r,i!==0);return c(b)},arguments)},__wbg_valueAsNumber_5292e7ed56db5658:function(t){return o(t).valueAsNumber},__wbg_value_0546255b415e96c1:function(t){let e=o(t).value;return c(e)},__wbg_value_15684899da869c95:function(t,e){let n=o(e).value,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_value_d402dce7dcb16251:function(t,e){let n=o(e).value,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_value_e506a07878790ca0:function(t,e){let n=o(e).value,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=p;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_values_5da93bc719d272cf:function(t){let e=Object.values(o(t));return c(e)},__wbg_view_new:function(t){let e=I.__wrap(t);return c(e)},__wbg_view_unwrap:function(t){return I.__unwrap(o(t))},__wbg_virtualdataslice_new:function(t){let e=q.__wrap(t);return c(e)},__wbg_warn_a40b971467b219c7:function(t,e,n,r){console.warn(o(t),o(e),o(n),o(r))},__wbg_warn_f7ae1b2e66ccb930:function(t){console.warn(o(t))},__wbg_which_78ecd90ab7c6bdd6:function(t){return o(t).which},__wbg_width_7444cca5dfea0645:function(t){return o(t).width},__wbg_width_9bbf873307a2ac4e:function(t){return o(t).width},__wbg_width_ae46cb8e98ee102f:function(t){return o(t).width},__wbg_write_d429ce72e918e180:function(t,e){let n=o(t).write(o(e));return c(n)},__wbindgen_cast_0000000000000001:function(t,e){let n=T(t,e,_.__wasm_bindgen_func_elem_7632,bt);return c(n)},__wbindgen_cast_0000000000000002:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_7632,E);return c(n)},__wbindgen_cast_0000000000000003:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_7632,E);return c(n)},__wbindgen_cast_0000000000000004:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_7632,E);return c(n)},__wbindgen_cast_0000000000000005:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_7632,E);return c(n)},__wbindgen_cast_0000000000000006:function(t,e){let n=T(t,e,_.__wasm_bindgen_func_elem_7632,bt);return c(n)},__wbindgen_cast_0000000000000007:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_7632,E);return c(n)},__wbindgen_cast_0000000000000008:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_7632,E);return c(n)},__wbindgen_cast_0000000000000009:function(t,e){let n=T(t,e,_.__wasm_bindgen_func_elem_7632,Dt);return c(n)},__wbindgen_cast_000000000000000a:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_7632,Lt);return c(n)},__wbindgen_cast_000000000000000b:function(t,e){let n=T(t,e,_.__wasm_bindgen_func_elem_20819,Nt);return c(n)},__wbindgen_cast_000000000000000c:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_21433,Wt);return c(n)},__wbindgen_cast_000000000000000d:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_21433,zt);return c(n)},__wbindgen_cast_000000000000000e:function(t,e){let n=T(t,e,_.__wasm_bindgen_func_elem_22881,Mt);return c(n)},__wbindgen_cast_000000000000000f:function(t,e){let n=T(t,e,_.__wasm_bindgen_func_elem_22881,qt);return c(n)},__wbindgen_cast_0000000000000010:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_27560,Ht);return c(n)},__wbindgen_cast_0000000000000011:function(t){return c(t)},__wbindgen_cast_0000000000000012:function(t){return c(t)},__wbindgen_cast_0000000000000013:function(t,e){var n=f(t,e);return c(n)},__wbindgen_cast_0000000000000014:function(t,e){let n=$t(t,e);return c(n)},__wbindgen_cast_0000000000000015:function(t,e){let n=Gt(t,e);return c(n)},__wbindgen_cast_0000000000000016:function(t,e){let n=Jt(t,e);return c(n)},__wbindgen_cast_0000000000000017:function(t,e){let n=Xt(t,e);return c(n)},__wbindgen_cast_0000000000000018:function(t,e){let n=R(t,e);return c(n)},__wbindgen_cast_0000000000000019:function(t){let e=BigInt.asUintN(64,t);return c(e)},__wbindgen_cast_000000000000001a:function(t,e){var n=pt(t,e).slice();return _.__wbindgen_export4(t,e*4,4),c(n)},__wbindgen_cast_000000000000001b:function(t,e){var n=R(t,e).slice();return _.__wbindgen_export4(t,e*1,1),c(n)},__wbindgen_object_clone_ref:function(t){let e=o(t);return c(e)},__wbindgen_object_drop_ref:function(t){u(t)},__wbindgen_object_is_undefined:function(t){return o(t)===void 0}}}}function zt(s,t){_.__wasm_bindgen_func_elem_21436(s,t)}function qt(s,t){_.__wasm_bindgen_func_elem_23512(s,t)}function Mt(s,t){let e=_.__wasm_bindgen_func_elem_23511(s,t);return u(e)}function bt(s,t,e){_.__wasm_bindgen_func_elem_8749(s,t,c(e))}function E(s,t,e){_.__wasm_bindgen_func_elem_8750(s,t,c(e))}function Dt(s,t){try{let i=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_8751(i,s,t);var e=a().getInt32(i+0,!0),n=a().getInt32(i+4,!0),r=a().getInt32(i+8,!0);if(r)throw u(n);return u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function Lt(s,t){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_8747(r,s,t);var e=a().getInt32(r+0,!0),n=a().getInt32(r+4,!0);if(n)throw u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function Nt(s,t,e){try{_.__wasm_bindgen_func_elem_20842(s,t,ot(e))}finally{k[O++]=void 0}}function Wt(s,t,e){_.__wasm_bindgen_func_elem_21437(s,t,c(e))}function Ht(s,t,e){_.__wasm_bindgen_func_elem_27562(s,t,c(e))}function Bt(s,t,e,n){_.__wasm_bindgen_func_elem_36047(s,t,c(e),c(n))}var Ut=["open","closed"],Q=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_client_free(s>>>0,1)),gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_genericsqlvirtualservermodel_free(s>>>0,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_perspectivedebugpluginelement_free(s>>>0,1)),Z=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_perspectiveviewerelement_free(s>>>0,1)),tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_proxysession_free(s>>>0,1)),dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_table_free(s>>>0,1)),wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_view_free(s>>>0,1)),et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_virtualdataslice_free(s>>>0,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_virtualserver_free(s>>>0,1));function c(s){U===k.length&&k.push(k.length+1);let t=U;return U=k[t],k[t]=s,t}function _t(s,t){if(!(s instanceof t))throw new Error(`expected instance of ${t.name}`)}function ot(s){if(O==1)throw new Error("out of js stack");return k[--O]=s,O}var K=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>s.dtor(s.a,s.b));function rt(s){let t=typeof s;if(t=="number"||t=="boolean"||s==null)return`${s}`;if(t=="string")return`"${s}"`;if(t=="symbol"){let r=s.description;return r==null?"Symbol":`Symbol(${r})`}if(t=="function"){let r=s.name;return typeof r=="string"&&r.length>0?`Function(${r})`:"Function"}if(Array.isArray(s)){let r=s.length,i="[";r>0&&(i+=rt(s[0]));for(let b=1;b<r;b++)i+=", "+rt(s[b]);return i+="]",i}let e=/\\[object ([^\\]]+)\\]/.exec(toString.call(s)),n;if(e&&e.length>1)n=e[1];else return toString.call(s);if(n=="Object")try{return"Object("+JSON.stringify(s)+")"}catch{return"Object"}return s instanceof Error?`${s.name}: ${s.message}\n${s.stack}`:n}function Vt(s){s<132||(k[s]=U,U=s)}function $t(s,t){return s=s>>>0,Yt().subarray(s/4,s/4+t)}function Gt(s,t){return s=s>>>0,Kt().subarray(s/8,s/8+t)}function Jt(s,t){return s=s>>>0,Qt().subarray(s/4,s/4+t)}function pt(s,t){s=s>>>0;let e=a(),n=[];for(let r=s;r<s+4*t;r+=4)n.push(u(e.getUint32(r,!0)));return n}function Xt(s,t){return s=s>>>0,te().subarray(s/4,s/4+t)}function R(s,t){return s=s>>>0,P().subarray(s/1,s/1+t)}function f(s,t){return s===0?o(t):Zt(s,t)}var A=null;function a(){return(A===null||A.buffer.detached===!0||A.buffer.detached===void 0&&A.buffer!==_.memory.buffer)&&(A=new DataView(_.memory.buffer)),A}var L=null;function Yt(){return(L===null||L.byteLength===0)&&(L=new Float32Array(_.memory.buffer)),L}var N=null;function Kt(){return(N===null||N.byteLength===0)&&(N=new Float64Array(_.memory.buffer)),N}var W=null;function Qt(){return(W===null||W.byteLength===0)&&(W=new Int32Array(_.memory.buffer)),W}function Zt(s,t){return s=s>>>0,_e(s,t)}var H=null;function te(){return(H===null||H.byteLength===0)&&(H=new Uint32Array(_.memory.buffer)),H}var B=null;function P(){return(B===null||B.byteLength===0)&&(B=new Uint8Array(_.memory.buffer)),B}function o(s){return k[s]}function l(s,t){try{return s.apply(this,t)}catch(e){_.__wbindgen_export3(c(e))}}var k=new Array(128).fill(void 0);k.push(void 0,null,!0,!1);var U=k.length;function d(s){return s==null}function T(s,t,e,n){let r={a:s,b:t,cnt:1,dtor:e},i=(...b)=>{r.cnt++;try{return n(r.a,r.b,...b)}finally{i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--r.cnt===0&&(r.dtor(r.a,r.b),r.a=0,K.unregister(r))},K.register(i,r,r),i}function S(s,t,e,n){let r={a:s,b:t,cnt:1,dtor:e},i=(...b)=>{r.cnt++;let g=r.a;r.a=0;try{return n(g,r.b,...b)}finally{r.a=g,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--r.cnt===0&&(r.dtor(r.a,r.b),r.a=0,K.unregister(r))},K.register(i,r,r),i}function ee(s,t){let e=t(s.length*1,1)>>>0;return P().set(s,e/1),p=s.length,e}function ht(s,t){let e=t(s.length*4,4)>>>0,n=a();for(let r=0;r<s.length;r++)n.setUint32(e+4*r,c(s[r]),!0);return p=s.length,e}function m(s,t,e){if(e===void 0){let g=vt.encode(s),w=t(g.length,1)>>>0;return P().subarray(w,w+g.length).set(g),p=g.length,w}let n=s.length,r=t(n,1)>>>0,i=P(),b=0;for(;b<n;b++){let g=s.charCodeAt(b);if(g>127)break;i[r+b]=g}if(b!==n){b!==0&&(s=s.slice(b)),r=e(r,n,n=b+s.length*3,1)>>>0;let g=P().subarray(r+b,r+n),w=vt.encodeInto(s,g);b+=w.written,r=e(r,n,b,1)>>>0}return p=b,r}var O=128;function u(s){let t=o(s);return Vt(s),t}var Y=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Y.decode();var ne=2146435072,nt=0;function _e(s,t){return nt+=t,nt>=ne&&(Y=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Y.decode(),nt=t),Y.decode(P().subarray(s,s+t))}var vt=new TextEncoder,p=0,re,_;function yt(s,t){return _=s.exports,re=t,A=null,L=null,N=null,W=null,H=null,B=null,_}async function oe(s,t){if(typeof Response=="function"&&s instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(s,t)}catch(r){if(s.ok&&e(s.type)&&s.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n",r);else throw r}let n=await s.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(s,t);return n instanceof WebAssembly.Instance?{instance:n,module:s}:n}function e(n){switch(n){case"basic":case"cors":case"default":return!0}return!1}}function ce(s){if(_!==void 0)return _;s!==void 0&&(Object.getPrototypeOf(s)===Object.prototype?{module:s}=s:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=mt();s instanceof WebAssembly.Module||(s=new WebAssembly.Module(s));let e=new WebAssembly.Instance(s,t);return yt(e,s)}async function xt(s){if(_!==void 0)return _;s!==void 0&&(Object.getPrototypeOf(s)===Object.prototype?{module_or_path:s}=s:console.warn("using deprecated parameters for the initialization function; pass a single object instead"));let t=mt();(typeof s=="string"||typeof Request=="function"&&s instanceof Request||typeof URL=="function"&&s instanceof URL)&&(s=fetch(s));let{instance:e,module:n}=await oe(await s,t);return yt(e,n)}export{F as Client,V as GenericSQLVirtualServerModel,$ as PerspectiveDebugPluginElement,G as PerspectiveViewerElement,j as ProxySession,z as Table,I as View,q as VirtualDataSlice,J as VirtualServer,xt as default,At as getColumnConfigDefaults,Ft as getPluginConfigDefaults,Et as get_wasm_module,Rt as get_worker_url,Tt as init,ce as initSync,Pt as registerPlugin,Ot as setColumnConfigDefaults,jt as setPluginConfigDefaults};\n',$=null;async function Ie(){if($)return $;let t=new Blob([ye],{type:"application/javascript"});return $=URL.createObjectURL(t),$}async function xt(t,e){await fe(t,e)}var _t;pe(async t=>{let e=await Ie(),[n,r]=await Promise.all([_t===void 0?import(e):_t,t instanceof WebAssembly.Module?t:WebAssembly.compile(t)]);return await n.default({module_or_path:r}),await n.init(r,e),{glue:n,module:r}});var Et=new ue;Et.register(me);function xe(t){return typeof t=="object"&&!(t instanceof Promise)&&!(t instanceof Response)&&!(t instanceof ArrayBuffer)&&!ArrayBuffer.isView(t)}async function Ee(t,e){let n=xe(t)?t:{viewer:t},{viewer:r,migrate:_}=n;if(r===void 0&&_===void 0)throw new Error("init_client requires a wasm source or a {viewer, migrate} registration");e!==void 0&&(_t=e),await xt({viewer:r,migrate:_})}async function Se(t,e,n){return await ve(Et).migrate(t,e,n)}var Ce={init:xt,init_client:Ee,migrate:Se};we({viewer:()=>fetch(new URL("../wasm/perspective-viewer.wasm",import.meta.url)),migrate:()=>fetch(ge(import.meta.url,"viewer","client","perspective-migrate.wasm"))});await he();var ze=Ce;export{Te as HTMLPerspectiveViewerPluginElement,De as PerspectiveSelectDetail,Re as createDateFormatter,Pe as createDatetimeFormatter,Ae as createNumberFormatter,ze as default,xt as init,Ee as init_client,Se as migrate,ke as providers,Le as sourceColumn};
18
+ `,Ft=t=>`"${t.replace(/[\\"\n]/g,e=>e===`
19
+ `?"\\A ":`\\${e}`)}"`,$t=t=>`--regular-layout-${globalThis.CSS.escape(t)}--title`,Ut=class extends HTMLElement{s;b;v;e;_;T;i=null;connectedCallback(){this.b??=new CSSStyleSheet,this.b.replaceSync(Nt),this.v??=new CSSStyleSheet,this.s??=this.attachShadow({mode:"open"}),this.s.adoptedStyleSheets=[this.b,this.v],this.s.innerHTML=jt,this.e=this.parentElement,this._=this.s.children[0],this.T=this._.querySelector("regular-layout-tab"),this._.addEventListener("pointerdown",this.onPointerDown),this.addEventListener("pointermove",this.onPointerMove),this.addEventListener("pointerup",this.onPointerUp),this.addEventListener("pointercancel",this.onPointerCancel),this.addEventListener("lostpointercapture",this.onPointerLost),this.e.addEventListener("regular-layout-update",this.drawTabs),this.e.addEventListener("regular-layout-before-update",this.drawTabs)}disconnectedCallback(){this._.removeEventListener("pointerdown",this.onPointerDown),this.removeEventListener("pointermove",this.onPointerMove),this.removeEventListener("pointerup",this.onPointerUp),this.removeEventListener("pointercancel",this.onPointerUp),this.removeEventListener("lostpointercapture",this.onPointerLost),this.e.removeEventListener("regular-layout-update",this.drawTabs),this.e.removeEventListener("regular-layout-before-update",this.drawTabs)}onPointerDown=t=>{if(t.button===0&&t.target.part.contains("tab")){let e=this.getAttribute(this.e.savePhysics().CHILD_ATTRIBUTE_NAME),n=this.e.calculateIntersect(t);n&&e?(this.i={path:{...n,slot:e}},this.setPointerCapture(t.pointerId),t.preventDefault()):this.i=null}};onPointerMove=t=>{if(this.i){let e=this.e.savePhysics();if(!this.i.moved&&this.e.diffCoordinates(t,this.i.path)<=e.MIN_DRAG_DISTANCE)return;this.i.moved=!0,this.e.setOverlayState(t,this.i.path)}};onPointerUp=t=>{this.i?.moved&&this.e.clearOverlayState(t,this.i.path)};onPointerCancel=t=>{this.i?.moved&&this.e.clearOverlayState(null,this.i.path)};onPointerLost=t=>{this.releasePointerCapture(t.pointerId),this.i=null};drawTabs=t=>{let e=this.e.savePhysics().CHILD_ATTRIBUTE_NAME,n=this.getAttribute(e);if(!n)return;let _=this.e.getPanel(n,t.detail);_||(_={type:"tab-layout",tabs:[n],selected:0});let r=_.tabs.indexOf(n),i=(_.selected??0)===r;this.toggleAttribute("inactive",!i),this.T.populate(this.e,_,r),this.drawTab(n,r,_.tabs.length)};drawTab=(t,e,n)=>{this.v.replaceSync([`.tabs{grid-template-columns:repeat(${n},var(--rl-tab-width,1fr))}`,`.tabs slot[name="tab"]{grid-column:${e+1}}`,`[part~="title"]::before{content:var(${$t(t)}, ${Ft(t)})}`].join(`
20
+ `))}},qt=class extends HTMLElement{e;c;m;populate=(t,e,n)=>{if(this.setAttribute(t.savePhysics().CHILD_ATTRIBUTE_NAME,e.tabs[n]),this.c)(n===e.selected!=(n===this.c?.selected)||this.c?.tabs[n]!==e.tabs[n])&&(e.selected===n?(this.children[1].part.add("active-close"),this.part.add("active-tab")):(this.children[1].part.remove("active-close"),this.part.remove("active-tab")));else{let _=e.selected===n,r=_?"active-close close":"close";this.innerHTML=`<div part="title"></div><button part="${r}"></button>`,_?this.part.add("tab","active-tab"):this.part.add("tab"),this.addEventListener("pointerdown",this.onTabClick),this.children[1].addEventListener("pointerdown",this.onTabClose)}this.c=e,this.e=t,this.m=n};onTabClose=t=>{t instanceof PointerEvent&&t?.button!==0||this.c!==void 0&&this.m!==void 0&&this.e?.removePanel(this.c.tabs[this.m])};onTabClick=t=>{t.button===0&&this.c!==void 0&&this.m!==void 0&&this.e?.select(this.c.tabs[this.m])}},Ht=[["regular-layout",Mt],["regular-layout-frame",Ut],["regular-layout-tab",qt]];function Bt(t=customElements){for(let[e,n]of Ht)t.get(e)||t.define(e,n)}Bt();var Te=class extends HTMLElement{constructor(){super()}get_static_config(){return{name:"Debug",select_mode:"select",config_column_names:[]}}column_style_config(){return{}}async update(t){return this.draw(t)}async draw(t){this.style.backgroundColor="#fff";let e=await t.to_csv(),n="margin:0;overflow:scroll;position:absolute;width:100%;height:100%";this.innerHTML=`<pre style='${n}'>${e}</pre>`}async clear(){this.innerHTML=""}async resize(t){}restyle(){}restore(){}async delete(){}get supports_streaming(){return!1}},ke={anthropic:{name:"anthropic",url:"https://api.anthropic.com/v1/chat/completions",headers:{"anthropic-dangerous-direct-browser-access":"true"},model:"claude-opus-5"},gemini:{name:"gemini",url:"https://generativelanguage.googleapis.com/v1beta/openai/chat/completions",model:"gemini-2.5-flash"},lmstudio:{name:"lmstudio",url:"http://localhost:1234/v1/chat/completions"},ollama:{name:"ollama",url:"http://localhost:11434/v1/chat/completions"},openrouter:{name:"openrouter",url:"https://openrouter.ai/api/v1/chat/completions"},openai:{name:"openai",url:"https://api.openai.com/v1/chat/completions",model:"gpt-5.2"}},ft=["dateStyle","timeStyle","weekday","year","month","day","hour","minute","second","fractionalSecondDigits"],Vt=["timeZone","hour12"];function Wt(t){return ft.some(e=>t?.[e]!==void 0)}var Gt={float:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}},Kt={dateStyle:"short",timeStyle:"medium"},at={dateStyle:"short"},Yt=[["style","currency","currencyDisplay","currencySign","unit","unitDisplay"],["notation","compactDisplay"],["minimumFractionDigits","maximumFractionDigits"],["minimumSignificantDigits","maximumSignificantDigits"]];function Xt(t,e){let n={};for(let[r,i]of Object.entries(e??{}))i!=null&&(n[r]=i);let _={...t};for(let r of Yt)if(r.some(i=>i in n))for(let i of r)delete _[i];return Object.assign(_,n)}function Ae(t,e,n){let _=n??Gt[t]??{},r=e?Xt(_,e):_;return new Intl.NumberFormat(navigator.languages,r)}function wt(t,e,n){let _=[t,e,n],r=_.find(Wt)??{},i={},o=(a,s)=>{s!==void 0&&s[a]!==void 0&&(i[a]=s[a])};for(let a of ft)o(a,r);for(let a of Vt)o(a,_.find(s=>s?.[a]!==void 0));return i}function Re(t,e){return new Intl.DateTimeFormat(navigator.languages,wt(t,e,Kt))}function Pe(t,e){let{dateStyle:n}=wt(t,e,at);return new Intl.DateTimeFormat(navigator.languages,{timeZone:"utc",dateStyle:n??at.dateStyle})}function Le(t){return t.split("|").at(-1)??t}var De=class{selected;row;column_names;removeConfigs;insertConfigs;panel;constructor(t,e,n,_,r,i){this.selected=t,this.row=e,this.column_names=n,this.removeConfigs=_,this.insertConfigs=r,this.panel=i}get removeFilters(){return this.removeConfigs.flatMap(t=>t.filter??[])}get insertFilters(){return this.insertConfigs.flatMap(t=>t.filter??[])}};async function Zt(t){let e;t instanceof Response?e=await WebAssembly.instantiateStreaming(t):typeof t=="string"?e=await WebAssembly.instantiateStreaming(fetch(t)):t instanceof ArrayBuffer?e=await WebAssembly.instantiate(t):e=t;let n=e.instance.exports,[_]=WebAssembly.Module.customSections(e.module,"psp-runtime"),[r]=WebAssembly.Module.customSections(e.module,"psp-len"),i=new DataView(r).getUint32(0,!0),o=n.resize(_.byteLength);new Uint8Array(n.memory.buffer).set(new Uint8Array(_),o);let a=n.compile(_.byteLength,i);return new Uint8Array(n.memory.buffer).slice(a,i+a)}if(typeof WebAssembly>"u")throw new Error("WebAssembly not supported.");async function Jt(t){t instanceof Function&&(t=await t()),t instanceof Promise&&(t=await t);try{return await Zt(t)}catch{return console.warn("Stage 0 wasm loading failed, skipping"),new Uint8Array(t)}}var Oe=new Uint8Array([0,97,115,109,1,0,0,0,5,3,1,4,1]);function Qt(t,e,n){try{let s=f.__wbindgen_add_to_stack_pointer(-16),u=k(t,f.__wbindgen_export,f.__wbindgen_export2),g=x;var _=I(e)?0:k(e,f.__wbindgen_export,f.__wbindgen_export2),r=x;f.migrate(s,u,g,_,r,p(n));var i=v().getInt32(s+0,!0),o=v().getInt32(s+4,!0),a=v().getInt32(s+8,!0);if(a)throw S(o);return S(i)}finally{f.__wbindgen_add_to_stack_pointer(16)}}function te(t,e,n){try{let i=f.__wbindgen_add_to_stack_pointer(-16),o=k(t,f.__wbindgen_export,f.__wbindgen_export2),a=x;f.validate_config(i,o,a,p(e),I(n)?16777215:n?1:0);var _=v().getInt32(i+0,!0),r=v().getInt32(i+4,!0);if(r)throw S(_)}finally{f.__wbindgen_add_to_stack_pointer(16)}}function ee(){return{__proto__:null,"./perspective-migrate.wasm_bg.js":{__proto__:null,__wbg_Error_8c4e43fe74559d73:function(t,e){let n=Error(X(t,e));return p(n)},__wbg_String_8f0eb39a4a4c2f66:function(t,e){let n=String(b(e)),_=k(n,f.__wbindgen_export,f.__wbindgen_export2),r=x;v().setInt32(t+4,r,!0),v().setInt32(t+0,_,!0)},__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2:function(t,e){let n=b(e),_=typeof n=="bigint"?n:void 0;v().setBigInt64(t+8,I(_)?BigInt(0):_,!0),v().setInt32(t+0,!I(_),!0)},__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25:function(t){let e=b(t),n=typeof e=="boolean"?e:void 0;return I(n)?16777215:n?1:0},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(t,e){let n=_t(b(e)),_=k(n,f.__wbindgen_export,f.__wbindgen_export2),r=x;v().setInt32(t+4,r,!0),v().setInt32(t+0,_,!0)},__wbg___wbindgen_in_47fa6863be6f2f25:function(t,e){return b(t)in b(e)},__wbg___wbindgen_is_bigint_31b12575b56f32fc:function(t){return typeof b(t)=="bigint"},__wbg___wbindgen_is_function_0095a73b8b156f76:function(t){return typeof b(t)=="function"},__wbg___wbindgen_is_object_5ae8e5880f2c1fbd:function(t){let e=b(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_cd444516edc5b180:function(t){return typeof b(t)=="string"},__wbg___wbindgen_jsval_eq_11888390b0186270:function(t,e){return b(t)===b(e)},__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811:function(t,e){return b(t)==b(e)},__wbg___wbindgen_number_get_8ff4255516ccad3e:function(t,e){let n=b(e),_=typeof n=="number"?n:void 0;v().setFloat64(t+8,I(_)?0:_,!0),v().setInt32(t+0,!I(_),!0)},__wbg___wbindgen_string_get_72fb696202c56729:function(t,e){let n=b(e),_=typeof n=="string"?n:void 0;var r=I(_)?0:k(_,f.__wbindgen_export,f.__wbindgen_export2),i=x;v().setInt32(t+4,i,!0),v().setInt32(t+0,r,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(t,e){throw new Error(X(t,e))},__wbg_call_389efe28435a9388:function(){return Z(function(t,e){let n=b(t).call(b(e));return p(n)},arguments)},__wbg_done_57b39ecd9addfe81:function(t){return b(t).done},__wbg_entries_58c7934c745daac7:function(t){let e=Object.entries(b(t));return p(e)},__wbg_get_9b94d73e6221f75c:function(t,e){let n=b(t)[e>>>0];return p(n)},__wbg_get_b3ed3ad4be2bc8ac:function(){return Z(function(t,e){let n=Reflect.get(b(t),b(e));return p(n)},arguments)},__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04:function(t){let e;try{e=b(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Map_53af74335dec57f4:function(t){let e;try{e=b(t)instanceof Map}catch{e=!1}return e},__wbg_instanceof_Uint8Array_9b9075935c74707c:function(t){let e;try{e=b(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_isArray_d314bb98fcf08331:function(t){return Array.isArray(b(t))},__wbg_isSafeInteger_bfbc7332a9768d2a:function(t){return Number.isSafeInteger(b(t))},__wbg_iterator_6ff6560ca1568e55:function(){return p(Symbol.iterator)},__wbg_length_32ed9a279acd054c:function(t){return b(t).length},__wbg_length_35a7bace40f36eac:function(t){return b(t).length},__wbg_new_361308b2356cecd0:function(){let t=new Object;return p(t)},__wbg_new_3eb36ae241fe6f44:function(){let t=new Array;return p(t)},__wbg_new_dca287b076112a51:function(){return p(new Map)},__wbg_new_dd2b680c8bf6ae29:function(t){let e=new Uint8Array(b(t));return p(e)},__wbg_next_3482f54c49e8af19:function(){return Z(function(t){let e=b(t).next();return p(e)},arguments)},__wbg_next_418f80d8f5303233:function(t){let e=b(t).next;return p(e)},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(t,e,n){Uint8Array.prototype.set.call(_e(t,e),b(n))},__wbg_set_1eb0999cf5d27fc8:function(t,e,n){let _=b(t).set(b(e),b(n));return p(_)},__wbg_set_3f1d0b984ed272ed:function(t,e,n){b(t)[S(e)]=S(n)},__wbg_set_f43e577aea94465b:function(t,e,n){b(t)[e>>>0]=S(n)},__wbg_value_0546255b415e96c1:function(t){let e=b(t).value;return p(e)},__wbindgen_cast_0000000000000001:function(t){return p(t)},__wbindgen_cast_0000000000000002:function(t){return p(t)},__wbindgen_cast_0000000000000003:function(t,e){let n=X(t,e);return p(n)},__wbindgen_cast_0000000000000004:function(t){let e=BigInt.asUintN(64,t);return p(e)},__wbindgen_object_drop_ref:function(t){S(t)}}}}function p(t){O===y.length&&y.push(y.length+1);let e=O;return O=y[e],y[e]=t,e}function _t(t){let e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){let r=t.description;return r==null?"Symbol":`Symbol(${r})`}if(e=="function"){let r=t.name;return typeof r=="string"&&r.length>0?`Function(${r})`:"Function"}if(Array.isArray(t)){let r=t.length,i="[";r>0&&(i+=_t(t[0]));for(let o=1;o<r;o++)i+=", "+_t(t[o]);return i+="]",i}let n=/\[object ([^\]]+)\]/.exec(toString.call(t)),_;if(n&&n.length>1)_=n[1];else return toString.call(t);if(_=="Object")try{return"Object("+JSON.stringify(t)+")"}catch{return"Object"}return t instanceof Error?`${t.name}: ${t.message}
21
+ ${t.stack}`:_}function ne(t){t<132||(y[t]=O,O=t)}function _e(t,e){return t=t>>>0,D().subarray(t/1,t/1+e)}var E=null;function v(){return(E===null||E.buffer.detached===!0||E.buffer.detached===void 0&&E.buffer!==f.memory.buffer)&&(E=new DataView(f.memory.buffer)),E}function X(t,e){return t=t>>>0,ie(t,e)}var L=null;function D(){return(L===null||L.byteLength===0)&&(L=new Uint8Array(f.memory.buffer)),L}function b(t){return y[t]}function Z(t,e){try{return t.apply(this,e)}catch(n){f.__wbindgen_export3(p(n))}}var y=new Array(128).fill(void 0);y.push(void 0,null,!0,!1);var O=y.length;function I(t){return t==null}function k(t,e,n){if(n===void 0){let a=st.encode(t),s=e(a.length,1)>>>0;return D().subarray(s,s+a.length).set(a),x=a.length,s}let _=t.length,r=e(_,1)>>>0,i=D(),o=0;for(;o<_;o++){let a=t.charCodeAt(o);if(a>127)break;i[r+o]=a}if(o!==_){o!==0&&(t=t.slice(o)),r=n(r,_,_=o+t.length*3,1)>>>0;let a=D().subarray(r+o,r+_),s=st.encodeInto(t,a);o+=s.written,r=n(r,_,o,1)>>>0}return x=o,r}function S(t){let e=b(t);return ne(t),e}var H=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});H.decode();var re=2146435072,J=0;function ie(t,e){return J+=e,J>=re&&(H=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),H.decode(),J=e),H.decode(D().subarray(t,t+e))}var st=new TextEncoder,x=0,oe,f;function ae(t,e){return f=t.exports,oe=e,E=null,L=null,f}async function se(t,e){if(typeof Response=="function"&&t instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(t,e)}catch(r){if(t.ok&&n(t.type)&&t.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}let _=await t.arrayBuffer();return await WebAssembly.instantiate(_,e)}else{let _=await WebAssembly.instantiate(t,e);return _ instanceof WebAssembly.Instance?{instance:_,module:t}:_}function n(_){switch(_){case"basic":case"cors":case"default":return!0}return!1}}async function ce(t){if(f!==void 0)return f;t!==void 0&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead"));let e=ee();(typeof t=="string"||typeof Request=="function"&&t instanceof Request||typeof URL=="function"&&t instanceof URL)&&(t=fetch(t));let{instance:n,module:_}=await se(await t,e);return ae(n,_)}async function le(t){return await ce({module_or_path:t}),{migrate(e,n,_){return Qt(e,_,n)},validate(e,n,_){te(e,n,_?.strict)}}}function ue(t,e,n,_){let r=new RegExp(`/${e}(@[^/]+)?/dist/cdn/[^/?#]*([?#].*)?$`),i=t.replace(r,(o,a)=>`/${n}${a??""}/dist/wasm/${_}`);return i!==t?i:new URL(`../../../${n}/dist/wasm/${_}`,t).href}var ct=Symbol.for("@perspective-dev/wasm"),F=["client","viewer","server","server32","server64","migrate"],B=["server","server32","server64"];function lt(t){return B.includes(t)}function pt(){let t=globalThis;return t[ct]??=new Map,t[ct]}function R(){let t=pt(),e=t.get("5.9.1");return e===void 0&&(e={sources:{},consumed:new Set},t.set("5.9.1",e)),e}function ge(){let t=[...pt().keys()].filter(e=>e!=="5.9.1");if(t.length>0)throw new Error(`Perspective 5.9.1 cannot share a page with Perspective ${t.join(", ")}`)}async function ht({source:t,disable_stage_0:e}){let n=typeof t=="function"?await t():await t;if(n instanceof WebAssembly.Module)return n;if(n instanceof Uint8Array&&(n=n.slice().buffer),typeof Response<"u"&&n instanceof Response){if(!n.ok)throw new Error(`Failed to fetch perspective wasm (HTTP ${n.status} "${n.url}")`);if(e)return await n.arrayBuffer()}return e?n:(await Jt(n)).buffer}function be(t){t.consumed.add("viewer"),t.viewer=ht(t.sources.viewer).then(t.viewer_provider),t.client===void 0&&(t.client=t.viewer,t.client_origin="viewer",t.viewer.then(e=>{t.client_runtime=e},()=>{}))}function vt(t,e={},n="user"){n!=="default"&&ge();let _=R(),r=Object.keys(t).filter(s=>!F.includes(s));if(r.length>0)throw new Error(`Unknown perspective wasm key(s) ${r.join(", ")}; expected ${F.join(", ")}`);let i=F.filter(s=>t[s]!==void 0);if(n==="default"){let s=B.some(u=>_.sources[u]!==void 0);i=i.filter(u=>_.sources[u]===void 0&&!_.consumed.has(u)&&!(s&&lt(u)))}else{if(i.length===0)throw new Error(`init() requires at least one of ${F.join(", ")}`);let s=[];for(let u of i)if(_.consumed.has(u)){if(n==="user"&&_.sources[u]!==void 0){s.push(u);continue}throw new Error(`${u} wasm is already initialized`)}if(s.length>0){i=i.filter(g=>!s.includes(g)),_.warned_duplicates??=new Set;let u=s.filter(g=>!_.warned_duplicates.has(g));if(u.length>0){for(let g of u)_.warned_duplicates.add(g);console.warn(`${u.join(", ")} wasm is already initialized; keeping the existing runtime (Perspective was loaded more than once on this page).`)}}if(i.some(lt))for(let u of B)(n==="replace_server"||_.sources[u]?.is_default)&&delete _.sources[u]}if(i.includes("viewer")){if(_.client!==void 0)throw new Error("viewer wasm must be registered before any Client is created from client wasm");if(_.viewer_provider===void 0)throw new Error("viewer wasm was registered, but @perspective-dev/viewer is not loaded")}let o=B.filter(s=>i.includes(s)||_.sources[s]!==void 0);if(o.includes("server")&&o.length>1)throw new Error("`server` cannot be combined with `server32` or `server64`");let a=!!e.disable_stage_0;for(let s of i)_.sources[s]={source:t[s],disable_stage_0:a,is_default:n==="default"};i.includes("viewer")&&be(_)}async function de(t,e={}){vt(t,e),t.viewer!==void 0&&await R().viewer}function fe(t){vt(t,{},"default")}function we(t){let e=R();e.viewer_provider??=t}async function pe(){let t=R().viewer;if(t===void 0)throw new Error("Missing perspective-viewer.wasm: register `viewer` with init()");await t}function he(){let t=R();if(t.migrate_binary===void 0){let e=t.sources.migrate;if(e===void 0)return Promise.reject(new Error("Missing perspective-migrate.wasm: register `migrate` with init()"));t.consumed.add("migrate"),t.migrate_binary=ht(e)}return t.migrate_binary}function it(){let t=R();if(t.validator===void 0){let e=he().then(le);e.catch(()=>{t.validator===e&&(t.validator=void 0)}),t.validator=e}return t.validator}var ve='var St=Object.defineProperty;var Ct=(s,t)=>{for(var e in t)St(s,e,{get:t[e],enumerable:!0})};var X={};Ct(X,{Client:()=>F,GenericSQLVirtualServerModel:()=>V,PerspectiveDebugPluginElement:()=>$,PerspectiveViewerElement:()=>G,ProxySession:()=>j,Table:()=>z,View:()=>I,VirtualDataSlice:()=>q,VirtualServer:()=>J,default:()=>xt,getColumnConfigDefaults:()=>At,getPluginConfigDefaults:()=>Ft,get_wasm_module:()=>Rt,get_worker_url:()=>Et,init:()=>Tt,initSync:()=>ce,registerPlugin:()=>Pt,setColumnConfigDefaults:()=>Ot,setPluginConfigDefaults:()=>jt});function ct(s){customElements.get(s)||customElements.define(s,class extends HTMLElement{})}var it=window.ClipboardItem;var st=window.ResizeObserver;var at=window.IntersectionObserver;function ut(s,t,e,n){if(customElements.get(t)){console.warn(`Custom element "${t}" is already registered; skipping duplicate registration (Perspective was loaded more than once on this page).`);return}let r=s[e],i=r.prototype;class g extends HTMLElement{constructor(){super(),this._instance=new r(this)}}let b=Object.getOwnPropertyNames(i);for(let w of b)"get"in Object.getOwnPropertyDescriptor(i,w)?Object.defineProperty(g.prototype,w,{get:function(){return this._instance[w]}}):Object.defineProperty(g.prototype,w,{value:function(...p){return this._instance[w].call(this._instance,...p)}});for(let w of n)Object.defineProperty(g,w,{value:function(...p){return s[w].call(s,...p)}});customElements.define(t,g)}var F=class s{static __wrap(t){t=t>>>0;let e=Object.create(s.prototype);return e.__wbg_ptr=t,Q.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_client_free(t,0)}__getClassname(){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.client___getClassname(r,this.__wbg_ptr);var t=a().getInt32(r+0,!0),e=a().getInt32(r+4,!0),n=f(t,e);return t!==0&&_.__wbindgen_export4(t,e,1),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}__unsafe_open_view(t){let e=m(t,_.__wbindgen_export,_.__wbindgen_export2),n=v,r=_.client___unsafe_open_view(this.__wbg_ptr,e,n);return I.__wrap(r)}get_hosted_table_names(){let t=_.client_get_hosted_table_names(this.__wbg_ptr);return u(t)}handle_error(t,e){let n=m(t,_.__wbindgen_export,_.__wbindgen_export2),r=v,i=_.client_handle_error(this.__wbg_ptr,n,r,d(e)?0:c(e));return u(i)}handle_response(t){let e=_.client_handle_response(this.__wbg_ptr,c(t));return u(e)}join(t,e,n,r){let i=m(n,_.__wbindgen_export,_.__wbindgen_export2),g=v,b=_.client_join(this.__wbg_ptr,c(t),c(e),i,g,d(r)?0:c(r));return u(b)}constructor(t,e){try{let g=_.__wbindgen_add_to_stack_pointer(-16);_.client_new(g,c(t),d(e)?0:c(e));var n=a().getInt32(g+0,!0),r=a().getInt32(g+4,!0),i=a().getInt32(g+8,!0);if(i)throw u(r);return this.__wbg_ptr=n>>>0,Q.register(this,this.__wbg_ptr,this),this}finally{_.__wbindgen_add_to_stack_pointer(16)}}new_proxy_session(t){try{let e=_.client_new_proxy_session(this.__wbg_ptr,ot(t));return j.__wrap(e)}finally{k[O++]=void 0}}on_error(t){let e=_.client_on_error(this.__wbg_ptr,c(t));return u(e)}on_hosted_tables_update(t){let e=_.client_on_hosted_tables_update(this.__wbg_ptr,c(t));return u(e)}open_table(t){let e=m(t,_.__wbindgen_export,_.__wbindgen_export2),n=v,r=_.client_open_table(this.__wbg_ptr,e,n);return u(r)}remove_hosted_tables_update(t){let e=_.client_remove_hosted_tables_update(this.__wbg_ptr,t);return u(e)}system_info(){let t=_.client_system_info(this.__wbg_ptr);return u(t)}table(t,e){let n=_.client_table(this.__wbg_ptr,c(t),d(e)?0:c(e));return u(n)}terminate(){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.client_terminate(r,this.__wbg_ptr);var t=a().getInt32(r+0,!0),e=a().getInt32(r+4,!0),n=a().getInt32(r+8,!0);if(n)throw u(e);return u(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);var V=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,gt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_genericsqlvirtualservermodel_free(t,0)}expressionDescribe(t,e){try{let w=_.__wbindgen_add_to_stack_pointer(-16),p=m(t,_.__wbindgen_export,_.__wbindgen_export2),h=v,y=m(e,_.__wbindgen_export,_.__wbindgen_export2),x=v;_.genericsqlvirtualservermodel_expressionDescribe(w,this.__wbg_ptr,p,h,y,x);var n=a().getInt32(w+0,!0),r=a().getInt32(w+4,!0),i=a().getInt32(w+8,!0),g=a().getInt32(w+12,!0);if(g)throw u(i);var b=f(n,r);return n!==0&&_.__wbindgen_export4(n,r,1),b}finally{_.__wbindgen_add_to_stack_pointer(16)}}expressionsDescribe(t,e){try{let w=_.__wbindgen_add_to_stack_pointer(-16),p=m(t,_.__wbindgen_export,_.__wbindgen_export2),h=v;_.genericsqlvirtualservermodel_expressionsDescribe(w,this.__wbg_ptr,p,h,c(e));var n=a().getInt32(w+0,!0),r=a().getInt32(w+4,!0),i=a().getInt32(w+8,!0),g=a().getInt32(w+12,!0);if(g)throw u(i);var b=f(n,r);return n!==0&&_.__wbindgen_export4(n,r,1),b}finally{_.__wbindgen_add_to_stack_pointer(16)}}getHostedTables(){try{let g=_.__wbindgen_add_to_stack_pointer(-16);_.genericsqlvirtualservermodel_getHostedTables(g,this.__wbg_ptr);var t=a().getInt32(g+0,!0),e=a().getInt32(g+4,!0),n=a().getInt32(g+8,!0),r=a().getInt32(g+12,!0);if(r)throw u(n);var i=f(t,e);return t!==0&&_.__wbindgen_export4(t,e,1),i}finally{_.__wbindgen_add_to_stack_pointer(16)}}constructor(t){try{let i=_.__wbindgen_add_to_stack_pointer(-16);_.genericsqlvirtualservermodel_new(i,d(t)?0:c(t));var e=a().getInt32(i+0,!0),n=a().getInt32(i+4,!0),r=a().getInt32(i+8,!0);if(r)throw u(n);return this.__wbg_ptr=e>>>0,gt.register(this,this.__wbg_ptr,this),this}finally{_.__wbindgen_add_to_stack_pointer(16)}}quoteEntity(t){try{let b=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),p=v;_.genericsqlvirtualservermodel_quoteEntity(b,this.__wbg_ptr,w,p);var e=a().getInt32(b+0,!0),n=a().getInt32(b+4,!0),r=a().getInt32(b+8,!0),i=a().getInt32(b+12,!0);if(i)throw u(r);var g=f(e,n);return e!==0&&_.__wbindgen_export4(e,n,1),g}finally{_.__wbindgen_add_to_stack_pointer(16)}}tableDescribe(t,e,n,r){try{let h=_.__wbindgen_add_to_stack_pointer(-16),y=m(t,_.__wbindgen_export,_.__wbindgen_export2),x=v;_.genericsqlvirtualservermodel_tableDescribe(h,this.__wbg_ptr,y,x,c(e),c(n),d(r)?16777215:r?1:0);var i=a().getInt32(h+0,!0),g=a().getInt32(h+4,!0),b=a().getInt32(h+8,!0),w=a().getInt32(h+12,!0);if(w)throw u(b);var p=f(i,g);return i!==0&&_.__wbindgen_export4(i,g,1),p}finally{_.__wbindgen_add_to_stack_pointer(16)}}tableMakeView(t,e,n,r,i){try{let y=_.__wbindgen_add_to_stack_pointer(-16),x=m(t,_.__wbindgen_export,_.__wbindgen_export2),C=v,M=m(e,_.__wbindgen_export,_.__wbindgen_export2),D=v;_.genericsqlvirtualservermodel_tableMakeView(y,this.__wbg_ptr,x,C,M,D,c(n),c(r),d(i)?16777215:i?1:0);var g=a().getInt32(y+0,!0),b=a().getInt32(y+4,!0),w=a().getInt32(y+8,!0),p=a().getInt32(y+12,!0);if(p)throw u(w);var h=f(g,b);return g!==0&&_.__wbindgen_export4(g,b,1),h}finally{_.__wbindgen_add_to_stack_pointer(16)}}tablePath(t){try{let b=_.__wbindgen_add_to_stack_pointer(-16),w=ht(t,_.__wbindgen_export),p=v;_.genericsqlvirtualservermodel_tablePath(b,this.__wbg_ptr,w,p);var e=a().getInt32(b+0,!0),n=a().getInt32(b+4,!0),r=a().getInt32(b+8,!0),i=a().getInt32(b+12,!0);if(i)throw u(r);var g=f(e,n);return e!==0&&_.__wbindgen_export4(e,n,1),g}finally{_.__wbindgen_add_to_stack_pointer(16)}}tableSchema(t){try{let b=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),p=v;_.genericsqlvirtualservermodel_tableSchema(b,this.__wbg_ptr,w,p);var e=a().getInt32(b+0,!0),n=a().getInt32(b+4,!0),r=a().getInt32(b+8,!0),i=a().getInt32(b+12,!0);if(i)throw u(r);var g=f(e,n);return e!==0&&_.__wbindgen_export4(e,n,1),g}finally{_.__wbindgen_add_to_stack_pointer(16)}}tableSize(t){try{let b=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),p=v;_.genericsqlvirtualservermodel_tableSize(b,this.__wbg_ptr,w,p);var e=a().getInt32(b+0,!0),n=a().getInt32(b+4,!0),r=a().getInt32(b+8,!0),i=a().getInt32(b+12,!0);if(i)throw u(r);var g=f(e,n);return e!==0&&_.__wbindgen_export4(e,n,1),g}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewCollapse(t,e,n){try{let p=_.__wbindgen_add_to_stack_pointer(-16),h=m(t,_.__wbindgen_export,_.__wbindgen_export2),y=v;_.genericsqlvirtualservermodel_viewCollapse(p,this.__wbg_ptr,h,y,c(e),n);var r=a().getInt32(p+0,!0),i=a().getInt32(p+4,!0),g=a().getInt32(p+8,!0),b=a().getInt32(p+12,!0);if(b)throw u(g);var w=f(r,i);return r!==0&&_.__wbindgen_export4(r,i,1),w}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewColumnSize(t){try{let b=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),p=v;_.genericsqlvirtualservermodel_viewColumnSize(b,this.__wbg_ptr,w,p);var e=a().getInt32(b+0,!0),n=a().getInt32(b+4,!0),r=a().getInt32(b+8,!0),i=a().getInt32(b+12,!0);if(i)throw u(r);var g=f(e,n);return e!==0&&_.__wbindgen_export4(e,n,1),g}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewDelete(t){try{let b=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),p=v;_.genericsqlvirtualservermodel_viewDelete(b,this.__wbg_ptr,w,p);var e=a().getInt32(b+0,!0),n=a().getInt32(b+4,!0),r=a().getInt32(b+8,!0),i=a().getInt32(b+12,!0);if(i)throw u(r);var g=f(e,n);return e!==0&&_.__wbindgen_export4(e,n,1),g}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewExpand(t,e,n){try{let p=_.__wbindgen_add_to_stack_pointer(-16),h=m(t,_.__wbindgen_export,_.__wbindgen_export2),y=v;_.genericsqlvirtualservermodel_viewExpand(p,this.__wbg_ptr,h,y,c(e),n);var r=a().getInt32(p+0,!0),i=a().getInt32(p+4,!0),g=a().getInt32(p+8,!0),b=a().getInt32(p+12,!0);if(b)throw u(g);var w=f(r,i);return r!==0&&_.__wbindgen_export4(r,i,1),w}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewGetData(t,e,n,r){try{let h=_.__wbindgen_add_to_stack_pointer(-16),y=m(t,_.__wbindgen_export,_.__wbindgen_export2),x=v;_.genericsqlvirtualservermodel_viewGetData(h,this.__wbg_ptr,y,x,c(e),c(n),c(r));var i=a().getInt32(h+0,!0),g=a().getInt32(h+4,!0),b=a().getInt32(h+8,!0),w=a().getInt32(h+12,!0);if(w)throw u(b);var p=f(i,g);return i!==0&&_.__wbindgen_export4(i,g,1),p}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewGetMinMax(t,e,n){try{let p=_.__wbindgen_add_to_stack_pointer(-16),h=m(t,_.__wbindgen_export,_.__wbindgen_export2),y=v,x=m(e,_.__wbindgen_export,_.__wbindgen_export2),C=v;_.genericsqlvirtualservermodel_viewGetMinMax(p,this.__wbg_ptr,h,y,x,C,c(n));var r=a().getInt32(p+0,!0),i=a().getInt32(p+4,!0),g=a().getInt32(p+8,!0),b=a().getInt32(p+12,!0);if(b)throw u(g);var w=f(r,i);return r!==0&&_.__wbindgen_export4(r,i,1),w}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewMakeTable(t,e,n,r,i){try{let y=_.__wbindgen_add_to_stack_pointer(-16),x=m(t,_.__wbindgen_export,_.__wbindgen_export2),C=v,M=m(e,_.__wbindgen_export,_.__wbindgen_export2),D=v;_.genericsqlvirtualservermodel_viewMakeTable(y,this.__wbg_ptr,x,C,M,D,c(n),c(r),c(i));var g=a().getInt32(y+0,!0),b=a().getInt32(y+4,!0),w=a().getInt32(y+8,!0),p=a().getInt32(y+12,!0);if(p)throw u(w);var h=f(g,b);return g!==0&&_.__wbindgen_export4(g,b,1),h}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewSchema(t){try{let b=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),p=v;_.genericsqlvirtualservermodel_viewSchema(b,this.__wbg_ptr,w,p);var e=a().getInt32(b+0,!0),n=a().getInt32(b+4,!0),r=a().getInt32(b+8,!0),i=a().getInt32(b+12,!0);if(i)throw u(r);var g=f(e,n);return e!==0&&_.__wbindgen_export4(e,n,1),g}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewSetDepth(t,e,n){try{let p=_.__wbindgen_add_to_stack_pointer(-16),h=m(t,_.__wbindgen_export,_.__wbindgen_export2),y=v;_.genericsqlvirtualservermodel_viewSetDepth(p,this.__wbg_ptr,h,y,c(e),n);var r=a().getInt32(p+0,!0),i=a().getInt32(p+4,!0),g=a().getInt32(p+8,!0),b=a().getInt32(p+12,!0);if(b)throw u(g);var w=f(r,i);return r!==0&&_.__wbindgen_export4(r,i,1),w}finally{_.__wbindgen_add_to_stack_pointer(16)}}viewSize(t){try{let b=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),p=v;_.genericsqlvirtualservermodel_viewSize(b,this.__wbg_ptr,w,p);var e=a().getInt32(b+0,!0),n=a().getInt32(b+4,!0),r=a().getInt32(b+8,!0),i=a().getInt32(b+12,!0);if(i)throw u(r);var g=f(e,n);return e!==0&&_.__wbindgen_export4(e,n,1),g}finally{_.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(V.prototype[Symbol.dispose]=V.prototype.free);var $=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_perspectivedebugpluginelement_free(t,0)}clear(){let t=_.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}get config_column_names(){let t=_.perspectivedebugpluginelement_config_column_names(this.__wbg_ptr);return u(t)}connectedCallback(){_.perspectivedebugpluginelement_connectedCallback(this.__wbg_ptr)}delete(){let t=_.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}draw(t){_t(t,I);let e=_.perspectivedebugpluginelement_draw(this.__wbg_ptr,t.__wbg_ptr);return u(e)}get min_config_columns(){let t=_.perspectivedebugpluginelement_config_column_names(this.__wbg_ptr);return u(t)}get name(){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.perspectivedebugpluginelement_name(r,this.__wbg_ptr);var t=a().getInt32(r+0,!0),e=a().getInt32(r+4,!0),n=f(t,e);return t!==0&&_.__wbindgen_export4(t,e,1),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=_.perspectivedebugpluginelement_new(c(t));return this.__wbg_ptr=e>>>0,ft.register(this,this.__wbg_ptr,this),this}resize(){let t=_.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}restore(t){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.perspectivedebugpluginelement_restore(r,this.__wbg_ptr,d(t)?0:c(t));var e=a().getInt32(r+0,!0),n=a().getInt32(r+4,!0);if(n)throw u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}restyle(){_.perspectivedebugpluginelement_connectedCallback(this.__wbg_ptr)}save(){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.perspectivedebugpluginelement_save(r,this.__wbg_ptr);var t=a().getInt32(r+0,!0),e=a().getInt32(r+4,!0),n=a().getInt32(r+8,!0);if(n)throw u(e);return u(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}get select_mode(){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.perspectivedebugpluginelement_select_mode(r,this.__wbg_ptr);var t=a().getInt32(r+0,!0),e=a().getInt32(r+4,!0),n=f(t,e);return t!==0&&_.__wbindgen_export4(t,e,1),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}update(t){_t(t,I);let e=_.perspectivedebugpluginelement_update(this.__wbg_ptr,t.__wbg_ptr);return u(e)}};Symbol.dispose&&($.prototype[Symbol.dispose]=$.prototype.free);var G=class s{static __wrap(t){t=t>>>0;let e=Object.create(s.prototype);return e.__wbg_ptr=t,Z.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_perspectiveviewerelement_free(t,0)}__get_model(){let t=_.perspectiveviewerelement___get_model(this.__wbg_ptr);return s.__wrap(t)}addPanel(t,e){let n=_.perspectiveviewerelement_addPanel(this.__wbg_ptr,c(t),d(e)?0:c(e));return u(n)}agentConfig(t){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.perspectiveviewerelement_agentConfig(r,this.__wbg_ptr,c(t));var e=a().getInt32(r+0,!0),n=a().getInt32(r+4,!0);if(n)throw u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}agentPrompt(t){let e=m(t,_.__wbindgen_export,_.__wbindgen_export2),n=v,r=_.perspectiveviewerelement_agentPrompt(this.__wbg_ptr,e,n);return u(r)}agentReset(){let t=_.perspectiveviewerelement_agentReset(this.__wbg_ptr);return u(t)}connectedCallback(){try{let n=_.__wbindgen_add_to_stack_pointer(-16);_.perspectiveviewerelement_connectedCallback(n,this.__wbg_ptr);var t=a().getInt32(n+0,!0),e=a().getInt32(n+4,!0);if(e)throw u(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}copy(t){let e=_.perspectiveviewerelement_copy(this.__wbg_ptr,d(t)?0:c(t));return u(e)}delete(){let t=this.__destroy_into_raw(),e=_.perspectiveviewerelement_delete(t);return u(e)}download(t){let e=_.perspectiveviewerelement_download(this.__wbg_ptr,d(t)?0:c(t));return u(e)}eject(t){let e=_.perspectiveviewerelement_eject(this.__wbg_ptr,d(t)?0:c(t));return u(e)}export(t){let e=_.perspectiveviewerelement_export(this.__wbg_ptr,d(t)?0:c(t));return u(e)}flush(){let t=_.perspectiveviewerelement_flush(this.__wbg_ptr);return u(t)}getActivePanel(){let t=_.perspectiveviewerelement_getActivePanel(this.__wbg_ptr);return u(t)}getAllPlugins(){let t=_.perspectiveviewerelement_getAllPlugins(this.__wbg_ptr);return u(t)}getClient(t){let e=_.perspectiveviewerelement_getClient(this.__wbg_ptr,d(t)?0:c(t));return u(e)}getEditPort(t){try{let i=_.__wbindgen_add_to_stack_pointer(-16);_.perspectiveviewerelement_getEditPort(i,this.__wbg_ptr,d(t)?0:c(t));var e=a().getFloat64(i+0,!0),n=a().getInt32(i+8,!0),r=a().getInt32(i+12,!0);if(r)throw u(n);return e}finally{_.__wbindgen_add_to_stack_pointer(16)}}getPanelNames(){let t=_.perspectiveviewerelement_getPanelNames(this.__wbg_ptr);return u(t)}getPlugin(t){try{let b=_.__wbindgen_add_to_stack_pointer(-16);var e=d(t)?0:m(t,_.__wbindgen_export,_.__wbindgen_export2),n=v;_.perspectiveviewerelement_getPlugin(b,this.__wbg_ptr,e,n);var r=a().getInt32(b+0,!0),i=a().getInt32(b+4,!0),g=a().getInt32(b+8,!0);if(g)throw u(i);return u(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}getRenderStats(t){try{let i=_.__wbindgen_add_to_stack_pointer(-16);_.perspectiveviewerelement_getRenderStats(i,this.__wbg_ptr,d(t)?0:c(t));var e=a().getInt32(i+0,!0),n=a().getInt32(i+4,!0),r=a().getInt32(i+8,!0);if(r)throw u(n);return u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}getSelection(t){try{let i=_.__wbindgen_add_to_stack_pointer(-16);_.perspectiveviewerelement_getSelection(i,this.__wbg_ptr,d(t)?0:c(t));var e=a().getInt32(i+0,!0),n=a().getInt32(i+4,!0),r=a().getInt32(i+8,!0);if(r)throw u(n);return u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}getTable(t){let e=_.perspectiveviewerelement_getTable(this.__wbg_ptr,d(t)?0:c(t));return u(e)}getThemes(){let t=_.perspectiveviewerelement_getThemes(this.__wbg_ptr);return u(t)}getView(t){let e=_.perspectiveviewerelement_getView(this.__wbg_ptr,d(t)?0:c(t));return u(e)}getViewConfig(t){let e=_.perspectiveviewerelement_getViewConfig(this.__wbg_ptr,d(t)?0:c(t));return u(e)}load(t){try{let i=_.__wbindgen_add_to_stack_pointer(-16);_.perspectiveviewerelement_load(i,this.__wbg_ptr,c(t));var e=a().getInt32(i+0,!0),n=a().getInt32(i+4,!0),r=a().getInt32(i+8,!0);if(r)throw u(n);return u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=_.perspectiveviewerelement_new(c(t));return this.__wbg_ptr=e>>>0,Z.register(this,this.__wbg_ptr,this),this}removePanel(t){let e=m(t,_.__wbindgen_export,_.__wbindgen_export2),n=v,r=_.perspectiveviewerelement_removePanel(this.__wbg_ptr,e,n);return u(r)}reset(t,e){let n=_.perspectiveviewerelement_reset(this.__wbg_ptr,d(t)?16777215:t?1:0,d(e)?0:c(e));return u(n)}resetError(){let t=_.perspectiveviewerelement_resetError(this.__wbg_ptr);return u(t)}resetThemes(t){var e=d(t)?0:ht(t,_.__wbindgen_export),n=v;let r=_.perspectiveviewerelement_resetThemes(this.__wbg_ptr,e,n);return u(r)}resize(t){let e=_.perspectiveviewerelement_resize(this.__wbg_ptr,d(t)?0:c(t));return u(e)}restore(t,e){let n=_.perspectiveviewerelement_restore(this.__wbg_ptr,c(t),d(e)?0:c(e));return u(n)}restoreWorkspace(t,e){let n=_.perspectiveviewerelement_restoreWorkspace(this.__wbg_ptr,c(t),d(e)?0:c(e));return u(n)}restyleElement(){let t=_.perspectiveviewerelement_restyleElement(this.__wbg_ptr);return u(t)}save(t){let e=_.perspectiveviewerelement_save(this.__wbg_ptr,d(t)?0:c(t));return u(e)}saveWorkspace(t){let e=_.perspectiveviewerelement_saveWorkspace(this.__wbg_ptr,d(t)?0:c(t));return u(e)}setActivePanel(t){let e=m(t,_.__wbindgen_export,_.__wbindgen_export2),n=v,r=_.perspectiveviewerelement_setActivePanel(this.__wbg_ptr,e,n);return u(r)}setAutoPause(t){let e=_.perspectiveviewerelement_setAutoPause(this.__wbg_ptr,t);return u(e)}setAutoSize(t){_.perspectiveviewerelement_setAutoSize(this.__wbg_ptr,t)}setSelection(t,e){try{let i=_.__wbindgen_add_to_stack_pointer(-16);_.perspectiveviewerelement_setSelection(i,this.__wbg_ptr,d(t)?0:c(t),d(e)?0:c(e));var n=a().getInt32(i+0,!0),r=a().getInt32(i+4,!0);if(r)throw u(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}setThrottle(t){_.perspectiveviewerelement_setThrottle(this.__wbg_ptr,!d(t),d(t)?0:t)}toggleColumnSettings(t,e){let n=m(t,_.__wbindgen_export,_.__wbindgen_export2),r=v,i=_.perspectiveviewerelement_toggleColumnSettings(this.__wbg_ptr,n,r,d(e)?0:c(e));return u(i)}toggleConfig(t){let e=_.perspectiveviewerelement_toggleConfig(this.__wbg_ptr,d(t)?16777215:t?1:0);return u(e)}};Symbol.dispose&&(G.prototype[Symbol.dispose]=G.prototype.free);var j=class s{static __wrap(t){t=t>>>0;let e=Object.create(s.prototype);return e.__wbg_ptr=t,tt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,tt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_proxysession_free(t,0)}close(){let t=this.__destroy_into_raw(),e=_.proxysession_close(t);return u(e)}handle_request(t){let e=_.proxysession_handle_request(this.__wbg_ptr,c(t));return u(e)}constructor(t,e){try{_t(t,F);let n=_.proxysession_new(t.__wbg_ptr,ot(e));return this.__wbg_ptr=n>>>0,tt.register(this,this.__wbg_ptr,this),this}finally{k[O++]=void 0}}};Symbol.dispose&&(j.prototype[Symbol.dispose]=j.prototype.free);var z=class s{static __wrap(t){t=t>>>0;let e=Object.create(s.prototype);return e.__wbg_ptr=t,dt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,dt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_table_free(t,0)}__getClassname(){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.table___getClassname(r,this.__wbg_ptr);var t=a().getInt32(r+0,!0),e=a().getInt32(r+4,!0),n=f(t,e);return t!==0&&_.__wbindgen_export4(t,e,1),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}clear(){let t=_.table_clear(this.__wbg_ptr);return u(t)}columns(){let t=_.table_columns(this.__wbg_ptr);return u(t)}delete(t){let e=this.__destroy_into_raw(),n=_.table_delete(e,d(t)?0:c(t));return u(n)}describe(t){let e=_.table_describe(this.__wbg_ptr,d(t)?0:c(t));return u(e)}get_client(){let t=_.table_get_client(this.__wbg_ptr);return u(t)}get_features(){let t=_.table_get_features(this.__wbg_ptr);return u(t)}get_index(){let t=_.table_get_index(this.__wbg_ptr);return u(t)}get_limit(){let t=_.table_get_limit(this.__wbg_ptr);return u(t)}get_name(){let t=_.table_get_name(this.__wbg_ptr);return u(t)}make_port(){let t=_.table_make_port(this.__wbg_ptr);return u(t)}on_delete(t){let e=_.table_on_delete(this.__wbg_ptr,c(t));return u(e)}remove(t,e){let n=_.table_remove(this.__wbg_ptr,c(t),d(e)?0:c(e));return u(n)}remove_delete(t){let e=_.table_remove_delete(this.__wbg_ptr,t);return u(e)}replace(t,e){let n=_.table_replace(this.__wbg_ptr,c(t),d(e)?0:c(e));return u(n)}schema(){let t=_.table_schema(this.__wbg_ptr);return u(t)}size(){let t=_.table_size(this.__wbg_ptr);return u(t)}update(t,e){let n=_.table_update(this.__wbg_ptr,c(t),d(e)?0:c(e));return u(n)}validate_expressions(t){let e=_.table_validate_expressions(this.__wbg_ptr,c(t));return u(e)}view(t){let e=_.table_view(this.__wbg_ptr,d(t)?0:c(t));return u(e)}};Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);var I=class s{static __wrap(t){t=t>>>0;let e=Object.create(s.prototype);return e.__wbg_ptr=t,wt.register(e,e.__wbg_ptr,e),e}static __unwrap(t){return t instanceof s?t.__destroy_into_raw():0}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_view_free(t,0)}__get_model(){let t=_.view___get_model(this.__wbg_ptr);return s.__wrap(t)}__unsafe_get_name(){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.view___unsafe_get_name(r,this.__wbg_ptr);var t=a().getInt32(r+0,!0),e=a().getInt32(r+4,!0),n=f(t,e);return t!==0&&_.__wbindgen_export4(t,e,1),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}collapse(t){let e=_.view_collapse(this.__wbg_ptr,t);return u(e)}column_paths(t){let e=_.view_column_paths(this.__wbg_ptr,d(t)?0:c(t));return u(e)}delete(){let t=this.__destroy_into_raw(),e=_.view_delete(t);return u(e)}dimensions(){let t=_.view_dimensions(this.__wbg_ptr);return u(t)}expand(t){let e=_.view_expand(this.__wbg_ptr,t);return u(e)}expression_schema(){let t=_.view_expression_schema(this.__wbg_ptr);return u(t)}get_config(){let t=_.view_get_config(this.__wbg_ptr);return u(t)}get_min_max(t){let e=m(t,_.__wbindgen_export,_.__wbindgen_export2),n=v,r=_.view_get_min_max(this.__wbg_ptr,e,n);return u(r)}num_columns(){let t=_.view_num_columns(this.__wbg_ptr);return u(t)}num_rows(){let t=_.view_num_rows(this.__wbg_ptr);return u(t)}on_delete(t){let e=_.view_on_delete(this.__wbg_ptr,c(t));return u(e)}on_remove(t){let e=_.view_on_remove(this.__wbg_ptr,c(t));return u(e)}on_update(t,e){let n=_.view_on_update(this.__wbg_ptr,c(t),d(e)?0:c(e));return u(n)}remove_delete(t){let e=_.view_remove_delete(this.__wbg_ptr,t);return u(e)}remove_remove(t){let e=_.view_remove_remove(this.__wbg_ptr,t);return u(e)}remove_update(t){let e=_.view_remove_update(this.__wbg_ptr,t);return u(e)}schema(){let t=_.view_schema(this.__wbg_ptr);return u(t)}set_depth(t){let e=_.view_set_depth(this.__wbg_ptr,t);return u(e)}to_arrow(t){let e=_.view_to_arrow(this.__wbg_ptr,d(t)?0:c(t));return u(e)}to_columns(t){let e=_.view_to_columns(this.__wbg_ptr,d(t)?0:c(t));return u(e)}to_columns_string(t){let e=_.view_to_columns_string(this.__wbg_ptr,d(t)?0:c(t));return u(e)}to_csv(t){let e=_.view_to_csv(this.__wbg_ptr,d(t)?0:c(t));return u(e)}to_json(t){let e=_.view_to_json(this.__wbg_ptr,d(t)?0:c(t));return u(e)}to_json_string(t){let e=_.view_to_json_string(this.__wbg_ptr,d(t)?0:c(t));return u(e)}to_ndjson(t){let e=_.view_to_ndjson(this.__wbg_ptr,d(t)?0:c(t));return u(e)}with_typed_arrays(t,e){let n=_.view_with_typed_arrays(this.__wbg_ptr,d(t)?0:c(t),c(e));return u(n)}};Symbol.dispose&&(I.prototype[Symbol.dispose]=I.prototype.free);var q=class s{static __wrap(t){t=t>>>0;let e=Object.create(s.prototype);return e.__wbg_ptr=t,et.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_virtualdataslice_free(t,0)}fromArrowIpc(t){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.virtualdataslice_fromArrowIpc(r,this.__wbg_ptr,c(t));var e=a().getInt32(r+0,!0),n=a().getInt32(r+4,!0);if(n)throw u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=_.virtualdataslice_new(c(t));return this.__wbg_ptr=e>>>0,et.register(this,this.__wbg_ptr,this),this}setBooleanCol(t,e,n,r){try{let b=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),p=v;_.virtualdataslice_setBooleanCol(b,this.__wbg_ptr,w,p,e,c(n),d(r)?4294967297:r>>>0);var i=a().getInt32(b+0,!0),g=a().getInt32(b+4,!0);if(g)throw u(i)}finally{_.__wbindgen_add_to_stack_pointer(16)}}setCol(t,e,n,r,i){try{let w=_.__wbindgen_add_to_stack_pointer(-16),p=m(t,_.__wbindgen_export,_.__wbindgen_export2),h=v,y=m(e,_.__wbindgen_export,_.__wbindgen_export2),x=v;_.virtualdataslice_setCol(w,this.__wbg_ptr,p,h,y,x,n,c(r),d(i)?4294967297:i>>>0);var g=a().getInt32(w+0,!0),b=a().getInt32(w+4,!0);if(b)throw u(g)}finally{_.__wbindgen_add_to_stack_pointer(16)}}setDatetimeCol(t,e,n,r){try{let b=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),p=v;_.virtualdataslice_setDatetimeCol(b,this.__wbg_ptr,w,p,e,c(n),d(r)?4294967297:r>>>0);var i=a().getInt32(b+0,!0),g=a().getInt32(b+4,!0);if(g)throw u(i)}finally{_.__wbindgen_add_to_stack_pointer(16)}}setFloatCol(t,e,n,r){try{let b=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),p=v;_.virtualdataslice_setFloatCol(b,this.__wbg_ptr,w,p,e,c(n),d(r)?4294967297:r>>>0);var i=a().getInt32(b+0,!0),g=a().getInt32(b+4,!0);if(g)throw u(i)}finally{_.__wbindgen_add_to_stack_pointer(16)}}setIntegerCol(t,e,n,r){try{let b=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),p=v;_.virtualdataslice_setIntegerCol(b,this.__wbg_ptr,w,p,e,c(n),d(r)?4294967297:r>>>0);var i=a().getInt32(b+0,!0),g=a().getInt32(b+4,!0);if(g)throw u(i)}finally{_.__wbindgen_add_to_stack_pointer(16)}}setStringCol(t,e,n,r){try{let b=_.__wbindgen_add_to_stack_pointer(-16),w=m(t,_.__wbindgen_export,_.__wbindgen_export2),p=v;_.virtualdataslice_setStringCol(b,this.__wbg_ptr,w,p,e,c(n),d(r)?4294967297:r>>>0);var i=a().getInt32(b+0,!0),g=a().getInt32(b+4,!0);if(g)throw u(i)}finally{_.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);var J=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_virtualserver_free(t,0)}handleRequest(t){let e=ee(t,_.__wbindgen_export),n=v,r=_.virtualserver_handleRequest(this.__wbg_ptr,e,n);return u(r)}constructor(t){try{let i=_.__wbindgen_add_to_stack_pointer(-16);_.virtualserver_new(i,c(t));var e=a().getInt32(i+0,!0),n=a().getInt32(i+4,!0),r=a().getInt32(i+8,!0);if(r)throw u(n);return this.__wbg_ptr=e>>>0,lt.register(this,this.__wbg_ptr,this),this}finally{_.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);function At(){try{let n=_.__wbindgen_add_to_stack_pointer(-16);_.getColumnConfigDefaults(n);var s=a().getInt32(n+0,!0),t=a().getInt32(n+4,!0),e=a().getInt32(n+8,!0);if(e)throw u(t);return u(s)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function Ft(){try{let n=_.__wbindgen_add_to_stack_pointer(-16);_.getPluginConfigDefaults(n);var s=a().getInt32(n+0,!0),t=a().getInt32(n+4,!0),e=a().getInt32(n+8,!0);if(e)throw u(t);return u(s)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function Rt(){try{let n=_.__wbindgen_add_to_stack_pointer(-16);_.get_wasm_module(n);var s=a().getInt32(n+0,!0),t=a().getInt32(n+4,!0),e=a().getInt32(n+8,!0);if(e)throw u(t);return u(s)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function Et(){try{let n=_.__wbindgen_add_to_stack_pointer(-16);_.get_worker_url(n);var s=a().getInt32(n+0,!0),t=a().getInt32(n+4,!0),e=a().getInt32(n+8,!0);if(e)throw u(t);return u(s)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function Tt(s,t){_.init(c(s),c(t))}function Pt(s){let t=m(s,_.__wbindgen_export,_.__wbindgen_export2),e=v;_.registerPlugin(t,e)}function Ot(s,t){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.setColumnConfigDefaults(r,c(s),d(t)?0:c(t));var e=a().getInt32(r+0,!0),n=a().getInt32(r+4,!0);if(n)throw u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function jt(s,t){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.setPluginConfigDefaults(r,c(s),d(t)?0:c(t));var e=a().getInt32(r+0,!0),n=a().getInt32(r+4,!0);if(n)throw u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function mt(){return{__proto__:null,"./perspective-viewer.wasm_bg.js":{__proto__:null,__wbg_Error_8c4e43fe74559d73:function(t,e){var n=f(t,e);let r=Error(n);return c(r)},__wbg_Number_04624de7d0e8332d:function(t){return Number(o(t))},__wbg_String_8f0eb39a4a4c2f66:function(t,e){let n=String(o(e)),r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2:function(t,e){let n=o(e),r=typeof n=="bigint"?n:void 0;a().setBigInt64(t+8,d(r)?BigInt(0):r,!0),a().setInt32(t+0,!d(r),!0)},__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25:function(t){let e=o(t),n=typeof e=="boolean"?e:void 0;return d(n)?16777215:n?1:0},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(t,e){let n=rt(o(e)),r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg___wbindgen_in_47fa6863be6f2f25:function(t,e){return o(t)in o(e)},__wbg___wbindgen_is_bigint_31b12575b56f32fc:function(t){return typeof o(t)=="bigint"},__wbg___wbindgen_is_function_0095a73b8b156f76:function(t){return typeof o(t)=="function"},__wbg___wbindgen_is_null_ac34f5003991759a:function(t){return o(t)===null},__wbg___wbindgen_is_object_5ae8e5880f2c1fbd:function(t){let e=o(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_cd444516edc5b180:function(t){return typeof o(t)=="string"},__wbg___wbindgen_is_undefined_9e4d92534c42d778:function(t){return o(t)===void 0},__wbg___wbindgen_jsval_eq_11888390b0186270:function(t,e){return o(t)===o(e)},__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811:function(t,e){return o(t)==o(e)},__wbg___wbindgen_number_get_8ff4255516ccad3e:function(t,e){let n=o(e),r=typeof n=="number"?n:void 0;a().setFloat64(t+8,d(r)?0:r,!0),a().setInt32(t+0,!d(r),!0)},__wbg___wbindgen_string_get_72fb696202c56729:function(t,e){let n=o(e),r=typeof n=="string"?n:void 0;var i=d(r)?0:m(r,_.__wbindgen_export,_.__wbindgen_export2),g=v;a().setInt32(t+4,g,!0),a().setInt32(t+0,i,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(t,e){var n=f(t,e);throw new Error(n)},__wbg__wbg_cb_unref_d9b87ff7982e3b21:function(t){o(t)._wbg_cb_unref()},__wbg_abort_2f0584e03e8e3950:function(t){o(t).abort()},__wbg_addEventListener_3acb0aad4483804c:function(){return l(function(t,e,n,r){var i=f(e,n);o(t).addEventListener(i,o(r))},arguments)},__wbg_addEventListener_5ef04ffb1d3af066:function(){return l(function(t,e,n,r,i){var g=f(e,n);o(t).addEventListener(g,o(r),i!==0)},arguments)},__wbg_addEventListener_c917b5aafbcf493f:function(){return l(function(t,e,n,r,i){var g=f(e,n);o(t).addEventListener(g,o(r),o(i))},arguments)},__wbg_add_2b0552fe2d2151c8:function(t,e){let n=o(t).add(o(e));return c(n)},__wbg_add_5be83378df680c25:function(){return l(function(t,e,n){var r=f(e,n);o(t).add(r)},arguments)},__wbg_adoptedStyleSheets_542d651fbb47685f:function(t){let e=o(t).adoptedStyleSheets;return c(e)},__wbg_adoptedStyleSheets_d149afb005470855:function(t){let e=o(t).adoptedStyleSheets;return c(e)},__wbg_appendChild_dea38765a26d346d:function(){return l(function(t,e){let n=o(t).appendChild(o(e));return c(n)},arguments)},__wbg_append_a992ccc37aa62dc4:function(){return l(function(t,e,n,r,i){var g=f(e,n),b=f(r,i);o(t).append(g,b)},arguments)},__wbg_apply_2e22c45cb4f12415:function(){return l(function(t,e,n){let r=Reflect.apply(o(t),o(e),o(n));return c(r)},arguments)},__wbg_apply_ada2ee1a60ac7b3c:function(){return l(function(t,e,n){let r=o(t).apply(o(e),o(n));return c(r)},arguments)},__wbg_asyncIterator_58dd45e58aa3721e:function(){return c(Symbol.asyncIterator)},__wbg_at_dfc235641cc0e40c:function(t,e){let n=o(t).at(e);return c(n)},__wbg_attachShadow_d31cd520620b24d6:function(){return l(function(t,e){let n=o(t).attachShadow(o(e));return c(n)},arguments)},__wbg_blur_07f34335e06e5234:function(){return l(function(t){o(t).blur()},arguments)},__wbg_body_3a0b4437dadea6bf:function(t){let e=o(t).body;return d(e)?0:c(e)},__wbg_body_f67922363a220026:function(t){let e=o(t).body;return d(e)?0:c(e)},__wbg_bootstrap_382b986e1e31efbf:function(t,e,n,r,i,g){var b=f(e,n),w=f(r,i);let p=ut(o(t),b,w,u(g));return c(p)},__wbg_bottom_c7ec510a18034add:function(t){return o(t).bottom},__wbg_bubbles_ad88192d3c29e6f9:function(t){return o(t).bubbles},__wbg_buffer_26d0910f3a5bc899:function(t){let e=o(t).buffer;return c(e)},__wbg_button_d86841d0a03adc44:function(t){return o(t).button},__wbg_cache_key_b02185c5bc89ef2a:function(t){let e=o(t).__yew_subtree_cache_key;return d(e)?4294967297:e>>>0},__wbg_calculatePath_0a072c9a23a43daa:function(t,e,n){var r=f(e,n);let i=o(t).calculatePath(r);return c(i)},__wbg_calculatePresizePaths_fa3995a71a662898:function(t){let e=o(t).calculatePresizePaths();return c(e)},__wbg_call_389efe28435a9388:function(){return l(function(t,e){let n=o(t).call(o(e));return c(n)},arguments)},__wbg_call_41bedb84c3e5c0c9:function(){return l(function(t,e,n,r,i,g){let b=o(t).call(o(e),o(n),o(r),o(i),o(g));return c(b)},arguments)},__wbg_call_4708e0c13bdc8e95:function(){return l(function(t,e,n){let r=o(t).call(o(e),o(n));return c(r)},arguments)},__wbg_call_812d25f1510c13c8:function(){return l(function(t,e,n,r){let i=o(t).call(o(e),o(n),o(r));return c(i)},arguments)},__wbg_cancelBubble_d93ec09e9c46cd6f:function(t){return o(t).cancelBubble},__wbg_checked_04db83ac6810bc82:function(t){return o(t).checked},__wbg_childNodes_75d35de33c9f6fbb:function(t){let e=o(t).childNodes;return c(e)},__wbg_children_54099e7692eefa29:function(t){let e=o(t).children;return c(e)},__wbg_classList_1a87c34c6d81421e:function(t){let e=o(t).classList;return c(e)},__wbg_className_2a1be685f5d518d5:function(t,e){let n=o(e).className,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_clear_415b70bc7390fe71:function(){return l(function(t){let e=o(t).clear();return c(e)},arguments)},__wbg_click_0e9c20848b655ed3:function(t){o(t).click()},__wbg_clientHeight_6432ff0d61ccfe7d:function(t){return o(t).clientHeight},__wbg_clientX_a3c5f4ff30e91264:function(t){return o(t).clientX},__wbg_clientY_e28509acb9b4a42a:function(t){return o(t).clientY},__wbg_client_new:function(t){let e=F.__wrap(t);return c(e)},__wbg_clipboard_98c5a32249fa8416:function(t){let e=o(t).clipboard;return c(e)},__wbg_cloneNode_b85e9102a9a31b29:function(){return l(function(t,e){let n=o(t).cloneNode(e!==0);return c(n)},arguments)},__wbg_cloneNode_eaf4ea08ebf633a5:function(){return l(function(t){let e=o(t).cloneNode();return c(e)},arguments)},__wbg_closest_11206fe6e0fb4e4e:function(){return l(function(t,e,n){var r=f(e,n);let i=o(t).closest(r);return d(i)?0:c(i)},arguments)},__wbg_code_dee0dae4730408e1:function(t,e){let n=o(e).code,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_column_config_schema_123797d92fc5d02e:function(){return l(function(t,e,n,r,i,g,b,w,p,h,y,x){var C=f(e,n),M=f(r,i),D=f(g,b),It=f(y,x);let kt=o(t).column_config_schema(C,M,D,o(w),o(p),o(h),It);return c(kt)},arguments)},__wbg_composedPath_9154ab2547c668d5:function(t){let e=o(t).composedPath();return c(e)},__wbg_contains_1056459c33f961e8:function(t,e){return o(t).contains(o(e))},__wbg_contains_6f4d5df35ef8a13a:function(t,e,n){var r=f(e,n);return o(t).contains(r)},__wbg_contentRect_30aba4f21fe5367d:function(t){let e=o(t).contentRect;return c(e)},__wbg_createElementNS_ee00621496b30ec2:function(){return l(function(t,e,n,r,i){var g=f(e,n),b=f(r,i);let w=o(t).createElementNS(g,b);return c(w)},arguments)},__wbg_createElement_49f60fdcaae809c8:function(){return l(function(t,e,n){var r=f(e,n);let i=o(t).createElement(r);return c(i)},arguments)},__wbg_createObjectURL_918185db6a10a0c8:function(){return l(function(t,e){let n=URL.createObjectURL(o(e)),r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},arguments)},__wbg_createTextNode_55029686c9591bf3:function(t,e,n){var r=f(e,n);let i=o(t).createTextNode(r);return c(i)},__wbg_cssRules_554f47f3049cf066:function(){return l(function(t){let e=o(t).cssRules;return c(e)},arguments)},__wbg_cssRules_85954e7c284ec53b:function(t){let e=o(t).cssRules;return c(e)},__wbg_cssText_8f3f27e60c824421:function(t,e){let n=o(e).cssText,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_dataTransfer_d924a622fbe51b06:function(t){let e=o(t).dataTransfer;return d(e)?0:c(e)},__wbg_dataset_20cb5c72458ae3fc:function(t){let e=o(t).dataset;return c(e)},__wbg_debug_46a93995fc6f8820:function(t,e,n,r){console.debug(o(t),o(e),o(n),o(r))},__wbg_debug_a4099fa12db6cd61:function(t){console.debug(o(t))},__wbg_decode_a28a47c6d83f2594:function(){return l(function(t,e,n,r,i){let g=o(e).decode(E(n,r),o(i)),b=m(g,_.__wbindgen_export,_.__wbindgen_export2),w=v;a().setInt32(t+4,w,!0),a().setInt32(t+0,b,!0)},arguments)},__wbg_define_panel_tab_2bc1f3573e6b42f3:function(t,e){var n=f(t,e);ct(n)},__wbg_delete_8318b529ff42aa20:function(t,e,n){var r=f(e,n);delete o(t)[r]},__wbg_delete_87659bc186749cfd:function(t){o(t).delete()},__wbg_deselect_1481e7f99212145c:function(){return l(function(t){let e=o(t).deselect();return c(e)},arguments)},__wbg_detail_934cf9545e3214d3:function(t){let e=o(t).detail;return c(e)},__wbg_dispatchEvent_dc8dcc7ddca11378:function(){return l(function(t,e){return o(t).dispatchEvent(o(e))},arguments)},__wbg_document_ee35a3d3ae34ef6c:function(t){let e=o(t).document;return d(e)?0:c(e)},__wbg_done_57b39ecd9addfe81:function(t){return o(t).done},__wbg_draw_c5e550a8b957a600:function(){return l(function(t,e,n,r,i){let g=o(t).draw(I.__wrap(e),n===4294967297?void 0:n,r===4294967297?void 0:r,i!==0);return c(g)},arguments)},__wbg_entries_58c7934c745daac7:function(t){let e=Object.entries(o(t));return c(e)},__wbg_error_3c7d958458bf649b:function(t,e){var n=pt(t,e).slice();_.__wbindgen_export4(t,e*4,4),console.error(...n)},__wbg_error_7534b8e9a36f1ab4:function(t,e){var n=f(t,e);t!==0&&_.__wbindgen_export4(t,e,1),console.error(n)},__wbg_error_794d0ffc9d00d5c3:function(t,e,n,r){console.error(o(t),o(e),o(n),o(r))},__wbg_error_9a7fe3f932034cde:function(t){console.error(o(t))},__wbg_error_f852e41c69b0bd84:function(t,e){console.error(o(t),o(e))},__wbg_fetch_e6e8e0a221783759:function(t,e){let n=o(t).fetch(o(e));return c(n)},__wbg_focus_128ff465f65677cc:function(){return l(function(t){o(t).focus()},arguments)},__wbg_fonts_ba4bc521c555025e:function(t){let e=o(t).fonts;return c(e)},__wbg_format_7c97ddc401dae52f:function(t){let e=o(t).format;return c(e)},__wbg_from_bddd64e7d5ff6941:function(t){let e=Array.from(o(t));return c(e)},__wbg_getAttribute_b9f6fc4b689c71b0:function(t,e,n,r){var i=f(n,r);let g=o(e).getAttribute(i);var b=d(g)?0:m(g,_.__wbindgen_export,_.__wbindgen_export2),w=v;a().setInt32(t+4,w,!0),a().setInt32(t+0,b,!0)},__wbg_getBoundingClientRect_b5c8c34d07878818:function(t){let e=o(t).getBoundingClientRect();return c(e)},__wbg_getComputedStyle_2d1f9dfe4ee7e0b9:function(){return l(function(t,e){let n=o(t).getComputedStyle(o(e));return d(n)?0:c(n)},arguments)},__wbg_getContext_2a5764d48600bc43:function(){return l(function(t,e,n){var r=f(e,n);let i=o(t).getContext(r);return d(i)?0:c(i)},arguments)},__wbg_getEntriesByName_02488cff0bc7581c:function(t,e,n,r,i){var g=f(e,n),b=f(r,i);let w=o(t).getEntriesByName(g,b);return c(w)},__wbg_getPropertyValue_d6911b2a1f9acba9:function(){return l(function(t,e,n,r){var i=f(n,r);let g=o(e).getPropertyValue(i),b=m(g,_.__wbindgen_export,_.__wbindgen_export2),w=v;a().setInt32(t+4,w,!0),a().setInt32(t+0,b,!0)},arguments)},__wbg_getRandomValues_1c61fac11405ffdc:function(){return l(function(t,e){globalThis.crypto.getRandomValues(E(t,e))},arguments)},__wbg_getReader_804829cfb24eb4dd:function(t){let e=o(t).getReader();return c(e)},__wbg_getRootNode_193e544ed534e810:function(t){let e=o(t).getRootNode();return c(e)},__wbg_getSelection_d345357cda220f17:function(){return l(function(t){let e=o(t).getSelection();return d(e)?0:c(e)},arguments)},__wbg_getTime_1e3cd1391c5c3995:function(t){return o(t).getTime()},__wbg_getTimezoneOffset_81776d10a4ec18a8:function(t){return o(t).getTimezoneOffset()},__wbg_get_5dd1ee4c9f462865:function(t,e,n,r){var i=f(n,r);let g=o(e)[i];var b=d(g)?0:m(g,_.__wbindgen_export,_.__wbindgen_export2),w=v;a().setInt32(t+4,w,!0),a().setInt32(t+0,b,!0)},__wbg_get_76e04509d1922a04:function(t,e,n){var r=f(e,n);let i=o(t)[r];return d(i)?0:c(i)},__wbg_get_941633a1d2f510cb:function(){return l(function(t,e,n,r){var i=f(n,r);let g=o(e).get(i);var b=d(g)?0:m(g,_.__wbindgen_export,_.__wbindgen_export2),w=v;a().setInt32(t+4,w,!0),a().setInt32(t+0,b,!0)},arguments)},__wbg_get_9b94d73e6221f75c:function(t,e){let n=o(t)[e>>>0];return c(n)},__wbg_get_b3ed3ad4be2bc8ac:function(){return l(function(t,e){let n=Reflect.get(o(t),o(e));return c(n)},arguments)},__wbg_get_d8db2ad31d529ff8:function(t,e){let n=o(t)[e>>>0];return d(n)?0:c(n)},__wbg_get_static_config_4452769300e9cd96:function(t){let e=o(t).get_static_config();return c(e)},__wbg_get_with_index_d26da38d2c038e1a:function(t,e){let n=o(t)[e>>>0];return d(n)?0:c(n)},__wbg_get_with_ref_key_1dc361bd10053bfe:function(t,e){let n=o(t)[o(e)];return c(n)},__wbg_hasAttribute_5d8f52cb4c739280:function(t,e,n){var r=f(e,n);return o(t).hasAttribute(r)},__wbg_has_991efccb5a701a27:function(t,e){return o(t).has(o(e))},__wbg_has_d4e53238966c12b6:function(){return l(function(t,e){return Reflect.has(o(t),o(e))},arguments)},__wbg_headers_59a2938db9f80985:function(t){let e=o(t).headers;return c(e)},__wbg_height_45209601b4c4ede6:function(t){return o(t).height},__wbg_height_c2027cf67d1c9b11:function(t){return o(t).height},__wbg_hidden_8ce6a98b8c12451c:function(t){return o(t).hidden},__wbg_hidePopover_f52b72171825485d:function(){return l(function(t){o(t).hidePopover()},arguments)},__wbg_host_fb29f8be35c2517d:function(t){let e=o(t).host;return c(e)},__wbg_includes_32215c836f1cd3fb:function(t,e,n){return o(t).includes(o(e),n)},__wbg_indexOf_e5f91887d9e5023e:function(t,e,n){return o(t).indexOf(o(e),n)},__wbg_info_148d043840582012:function(t){console.info(o(t))},__wbg_info_9e602cf10c5c690b:function(t,e,n,r){console.info(o(t),o(e),o(n),o(r))},__wbg_innerHeight_54aa104da08becd2:function(){return l(function(t){let e=o(t).innerHeight;return c(e)},arguments)},__wbg_innerWidth_fa95c57321f4f033:function(){return l(function(t){let e=o(t).innerWidth;return c(e)},arguments)},__wbg_insertBefore_1468142836e61a51:function(){return l(function(t,e,n){let r=o(t).insertBefore(o(e),o(n));return c(r)},arguments)},__wbg_insertPanel_b7d65453e106a1b6:function(t,e,n,r,i){var g=f(e,n);let b=o(t).insertPanel(g,u(r),u(i));return c(b)},__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04:function(t){let e;try{e=o(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Array_d9eac779cd191cbc:function(t){let e;try{e=o(t)instanceof Array}catch{e=!1}return e},__wbg_instanceof_CanvasRenderingContext2d_4bb052fd1c3d134d:function(t){let e;try{e=o(t)instanceof CanvasRenderingContext2D}catch{e=!1}return e},__wbg_instanceof_CssGroupingRule_875241920a85dfd7:function(t){let e;try{e=o(t)instanceof CSSGroupingRule}catch{e=!1}return e},__wbg_instanceof_CssImportRule_21bd264cef048043:function(t){let e;try{e=o(t)instanceof CSSImportRule}catch{e=!1}return e},__wbg_instanceof_CssStyleRule_23e59108346af0df:function(t){let e;try{e=o(t)instanceof CSSStyleRule}catch{e=!1}return e},__wbg_instanceof_CssStyleSheet_622aeba16e7e2d66:function(t){let e;try{e=o(t)instanceof CSSStyleSheet}catch{e=!1}return e},__wbg_instanceof_CustomEvent_7dc010f377596c94:function(t){let e;try{e=o(t)instanceof CustomEvent}catch{e=!1}return e},__wbg_instanceof_Date_1b9f15b87f10aa4c:function(t){let e;try{e=o(t)instanceof Date}catch{e=!1}return e},__wbg_instanceof_Element_9e662f49ab6c6beb:function(t){let e;try{e=o(t)instanceof Element}catch{e=!1}return e},__wbg_instanceof_Error_8573fe0b0b480f46:function(t){let e;try{e=o(t)instanceof Error}catch{e=!1}return e},__wbg_instanceof_HtmlCanvasElement_3f2f6e1edb1c9792:function(t){let e;try{e=o(t)instanceof HTMLCanvasElement}catch{e=!1}return e},__wbg_instanceof_HtmlElement_5abfac207260fd6f:function(t){let e;try{e=o(t)instanceof HTMLElement}catch{e=!1}return e},__wbg_instanceof_HtmlInputElement_c10b7260b4e0710a:function(t){let e;try{e=o(t)instanceof HTMLInputElement}catch{e=!1}return e},__wbg_instanceof_HtmlLinkElement_5eb5b0855a17d0fc:function(t){let e;try{e=o(t)instanceof HTMLLinkElement}catch{e=!1}return e},__wbg_instanceof_HtmlSelectElement_a1820832b22b0d1e:function(t){let e;try{e=o(t)instanceof HTMLSelectElement}catch{e=!1}return e},__wbg_instanceof_Map_53af74335dec57f4:function(t){let e;try{e=o(t)instanceof Map}catch{e=!1}return e},__wbg_instanceof_Node_da04bd8df43deba3:function(t){let e;try{e=o(t)instanceof Node}catch{e=!1}return e},__wbg_instanceof_Object_1c6af87502b733ed:function(t){let e;try{e=o(t)instanceof Object}catch{e=!1}return e},__wbg_instanceof_Promise_0094681e3519d6ec:function(t){let e;try{e=o(t)instanceof Promise}catch{e=!1}return e},__wbg_instanceof_Response_ee1d54d79ae41977:function(t){let e;try{e=o(t)instanceof Response}catch{e=!1}return e},__wbg_instanceof_ShadowRoot_5285adde3587c73e:function(t){let e;try{e=o(t)instanceof ShadowRoot}catch{e=!1}return e},__wbg_instanceof_Uint8Array_9b9075935c74707c:function(t){let e;try{e=o(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_instanceof_Window_ed49b2db8df90359:function(t){let e;try{e=o(t)instanceof Window}catch{e=!1}return e},__wbg_isArray_d314bb98fcf08331:function(t){return Array.isArray(o(t))},__wbg_isCollapsed_617e9be3f62f5a25:function(t){return o(t).isCollapsed},__wbg_isConnected_6110bc2c5462f90e:function(t){return o(t).isConnected},__wbg_isContentEditable_f5b0ce009dbd035b:function(t){return o(t).isContentEditable},__wbg_isIntersecting_dae52c84ba717c82:function(t){return o(t).isIntersecting},__wbg_isSafeInteger_bfbc7332a9768d2a:function(t){return Number.isSafeInteger(o(t))},__wbg_isSameNode_3caa48d6eb3c880e:function(t,e){return o(t).isSameNode(o(e))},__wbg_is_f29129f676e5410c:function(t,e){return Object.is(o(t),o(e))},__wbg_item_48715d3212ed96cb:function(t,e){let n=o(t).item(e>>>0);return d(n)?0:c(n)},__wbg_item_5c82f52b014b3056:function(t,e){let n=o(t).item(e>>>0);return d(n)?0:c(n)},__wbg_item_64b77e6a26f7de76:function(t,e){let n=o(t).item(e>>>0);return d(n)?0:c(n)},__wbg_item_ca823df8214b9e2b:function(t,e){let n=o(t).item(e>>>0);return d(n)?0:c(n)},__wbg_iterator_6ff6560ca1568e55:function(){return c(Symbol.iterator)},__wbg_keyCode_155291a11654466e:function(t){return o(t).keyCode},__wbg_key_d41e8e825e6bb0e9:function(t,e){let n=o(e).key,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_keys_b50a709a76add04e:function(t){let e=Object.keys(o(t));return c(e)},__wbg_languages_5a69df7551d1a803:function(t){let e=o(t).languages;return c(e)},__wbg_lastChild_132d67597d5e4aef:function(t){let e=o(t).lastChild;return d(e)?0:c(e)},__wbg_left_3b7c3c1030d5ca7a:function(t){return o(t).left},__wbg_length_25851a48867b2afc:function(t){return o(t).length},__wbg_length_32ed9a279acd054c:function(t){return o(t).length},__wbg_length_35a7bace40f36eac:function(t){return o(t).length},__wbg_length_3f12bc1cab862cc3:function(t){return o(t).length},__wbg_length_e455564ce5cbf46e:function(t){return o(t).length},__wbg_length_edae0cd13a8d3b71:function(t){return o(t).length},__wbg_listener_id_3f13203bf7de1e4d:function(t){let e=o(t).__yew_listener_id;return d(e)?4294967297:e>>>0},__wbg_load_f8d29f3c1bda8dd1:function(t,e,n,r,i){var g=f(e,n),b=f(r,i);let w=o(t).load(g,b);return c(w)},__wbg_mark_3b530a64b09ba08a:function(){return l(function(t,e,n){var r=f(e,n);o(t).mark(r)},arguments)},__wbg_maximize_4d6d921c9301bee6:function(t,e,n){var r=f(e,n);o(t).maximize(r)},__wbg_measureText_9d64a92333bd05ee:function(){return l(function(t,e,n){var r=f(e,n);let i=o(t).measureText(r);return c(i)},arguments)},__wbg_measure_288b48c082eae0fe:function(){return l(function(t,e,n,r,i){var g=f(e,n),b=f(r,i);o(t).measure(g,b)},arguments)},__wbg_message_9ddc4b9a62a7c379:function(t){let e=o(t).message;return c(e)},__wbg_minimize_14ccc2ac809a7d39:function(t){o(t).minimize()},__wbg_namespaceURI_86e2062c65f0f341:function(t,e){let n=o(e).namespaceURI;var r=d(n)?0:m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_navigator_43be698ba96fc088:function(t){let e=o(t).navigator;return c(e)},__wbg_new_16c83877745f8d12:function(){return l(function(t,e){var n=f(t,e);let r=new InputEvent(n);return c(r)},arguments)},__wbg_new_1d5bd472c706b768:function(){return l(function(){let t=new CSSStyleSheet;return c(t)},arguments)},__wbg_new_245cd5c49157e602:function(t){let e=new Date(o(t));return c(e)},__wbg_new_2ec3ec8c398b20d2:function(){return l(function(){let t=new TextDecoder;return c(t)},arguments)},__wbg_new_361308b2356cecd0:function(){let t=new Object;return c(t)},__wbg_new_384a230f8673183c:function(){return l(function(t,e){var n=f(t,e);let r=new CustomEvent(n);return c(r)},arguments)},__wbg_new_3eb36ae241fe6f44:function(){let t=new Array;return c(t)},__wbg_new_406106b44b3d11fa:function(t){let e=new Set(o(t));return c(e)},__wbg_new_64284bd487f9d239:function(){return l(function(){let t=new Headers;return c(t)},arguments)},__wbg_new_72b49615380db768:function(t,e){var n=f(t,e);let r=new Error(n);return c(r)},__wbg_new_86c8f0b79e48927d:function(t,e){let n=new Intl.NumberFormat(o(t),o(e));return c(n)},__wbg_new_8a6f238a6ece86ea:function(){let t=new Error;return c(t)},__wbg_new_b5d9e2fb389fef91:function(t,e){try{var n={a:t,b:e},r=(g,b)=>{let w=n.a;n.a=0;try{return Bt(w,n.b,g,b)}finally{n.a=w}};let i=new Promise(r);return c(i)}finally{n.a=n.b=0}},__wbg_new_b949e7f56150a5d1:function(){return l(function(){let t=new AbortController;return c(t)},arguments)},__wbg_new_baaf0b3192575816:function(t){let e=new it(o(t));return c(e)},__wbg_new_c155239f1b113b68:function(t,e){let n=new Intl.DateTimeFormat(o(t),o(e));return c(n)},__wbg_new_cda4bf7a742e4f16:function(t){let e=new at(o(t));return c(e)},__wbg_new_dca287b076112a51:function(){return c(new Map)},__wbg_new_dd2b680c8bf6ae29:function(t){let e=new Uint8Array(o(t));return c(e)},__wbg_new_ead99299dcf0bd32:function(t){let e=new st(o(t));return c(e)},__wbg_new_from_slice_a3d2629dc1826784:function(t,e){let n=new Uint8Array(E(t,e));return c(n)},__wbg_new_no_args_1c7c842f08d00ebb:function(t,e){var n=f(t,e);let r=new Function(n);return c(r)},__wbg_new_with_event_init_dict_48877e7ca125f3c1:function(){return l(function(t,e,n){var r=f(t,e);let i=new CustomEvent(r,o(n));return c(i)},arguments)},__wbg_new_with_length_1763c527b2923202:function(t){let e=new Array(t>>>0);return c(e)},__wbg_new_with_str_and_init_a61cbc6bdef21614:function(){return l(function(t,e,n){var r=f(t,e);let i=new Request(r,o(n));return c(i)},arguments)},__wbg_new_with_str_sequence_and_options_9b8b0bee99ec6b0f:function(){return l(function(t,e){let n=new Blob(o(t),o(e));return c(n)},arguments)},__wbg_new_with_u8_array_sequence_08b2096a9f3117c0:function(){return l(function(t){let e=new Blob(o(t));return c(e)},arguments)},__wbg_nextSibling_2e988d9bbe3e06f0:function(t){let e=o(t).nextSibling;return d(e)?0:c(e)},__wbg_next_3482f54c49e8af19:function(){return l(function(t){let e=o(t).next();return c(e)},arguments)},__wbg_next_418f80d8f5303233:function(t){let e=o(t).next;return c(e)},__wbg_now_a3af9a2f4bbaa4d1:function(){return Date.now()},__wbg_now_ebffdf7e580f210d:function(t){return o(t).now()},__wbg_observe_4888bc3caa75ffc3:function(t,e){o(t).observe(o(e))},__wbg_observe_8b166881309eef22:function(t,e){o(t).observe(o(e))},__wbg_of_f915f7cd925b21a5:function(t){let e=Array.of(o(t));return c(e)},__wbg_offsetHeight_34f7abc1686733cc:function(t){return o(t).offsetHeight},__wbg_offsetParent_9627ebca6b03e8b2:function(t){let e=o(t).offsetParent;return d(e)?0:c(e)},__wbg_offsetWidth_f37b33a53e513101:function(t){return o(t).offsetWidth},__wbg_offsetX_b76b9bb1f9235de9:function(t){return o(t).offsetX},__wbg_offsetY_db5c1ddb866e1b82:function(t){return o(t).offsetY},__wbg_ok_87f537440a0acf85:function(t){return o(t).ok},__wbg_parentElement_75863410a8617953:function(t){let e=o(t).parentElement;return d(e)?0:c(e)},__wbg_parentNode_d44bd5ec58601e45:function(t){let e=o(t).parentNode;return d(e)?0:c(e)},__wbg_parse_708461a1feddfb38:function(){return l(function(t,e){var n=f(t,e);let r=JSON.parse(n);return c(r)},arguments)},__wbg_performance_06f12ba62483475d:function(t){let e=o(t).performance;return d(e)?0:c(e)},__wbg_plugin_config_schema_6131121a2c9b6b65:function(){return l(function(t,e,n){let r=o(t).plugin_config_schema(o(e),o(n));return c(r)},arguments)},__wbg_pointerId_466b1bdcaf2fe835:function(t){return o(t).pointerId},__wbg_pop_80fa29128215a463:function(t){let e=o(t).pop();return c(e)},__wbg_prepend_12ed960547d9dfe1:function(){return l(function(t,e){o(t).prepend(o(e))},arguments)},__wbg_presize_97ab9b7d339cb61d:function(){return l(function(t,e,n){let r=o(t).presize(e,n);return c(r)},arguments)},__wbg_preventDefault_cdcfcd7e301b9702:function(t){o(t).preventDefault()},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(t,e,n){Uint8Array.prototype.set.call(E(t,e),o(n))},__wbg_push_8ffdcb2063340ba5:function(t,e){return o(t).push(o(e))},__wbg_querySelectorAll_1283aae52043a951:function(){return l(function(t,e,n){var r=f(e,n);let i=o(t).querySelectorAll(r);return c(i)},arguments)},__wbg_querySelectorAll_5875742f4e11f759:function(){return l(function(t,e,n){var r=f(e,n);let i=o(t).querySelectorAll(r);return c(i)},arguments)},__wbg_querySelector_1be4292f202b1597:function(){return l(function(t,e,n){var r=f(e,n);let i=o(t).querySelector(r);return d(i)?0:c(i)},arguments)},__wbg_querySelector_4dc619d02f6cb079:function(){return l(function(t,e,n){var r=f(e,n);let i=o(t).querySelector(r);return d(i)?0:c(i)},arguments)},__wbg_queueMicrotask_0aa0a927f78f5d98:function(t){let e=o(t).queueMicrotask;return c(e)},__wbg_queueMicrotask_5bb536982f78a56f:function(t){queueMicrotask(o(t))},__wbg_readText_b9ac81623f153a62:function(t){let e=o(t).readText();return c(e)},__wbg_read_68fd377df67e19b0:function(t){let e=o(t).read();return c(e)},__wbg_readyState_cf11f0728fc7b46c:function(t,e){let n=o(e).readyState,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_realCoordinates_d1650be98f8b05d5:function(t,e){let n=o(t).realCoordinates(o(e));return c(n)},__wbg_reject_a2176de7f1212be5:function(t){let e=Promise.reject(o(t));return c(e)},__wbg_relatedTarget_1557cded94b97af2:function(t){let e=o(t).relatedTarget;return d(e)?0:c(e)},__wbg_releasePointerCapture_420ef33c7c5fb6f4:function(){return l(function(t,e){o(t).releasePointerCapture(e)},arguments)},__wbg_removeAllRanges_39254b77dc6257ab:function(){return l(function(t){o(t).removeAllRanges()},arguments)},__wbg_removeAttribute_87259aab06d9f286:function(){return l(function(t,e,n){var r=f(e,n);o(t).removeAttribute(r)},arguments)},__wbg_removeChild_2f0b06213dbc49ca:function(){return l(function(t,e){let n=o(t).removeChild(o(e));return c(n)},arguments)},__wbg_removeEventListener_0c0902ed5009dd9f:function(){return l(function(t,e,n,r,i){var g=f(e,n);o(t).removeEventListener(g,o(r),i!==0)},arguments)},__wbg_removeEventListener_e63328781a5b9af9:function(){return l(function(t,e,n,r){var i=f(e,n);o(t).removeEventListener(i,o(r))},arguments)},__wbg_removePanel_d5a9f8e0fb202d12:function(t,e,n){var r=f(e,n);let i=o(t).removePanel(r);return c(i)},__wbg_removeProperty_a0d2ff8a76ffd2b1:function(){return l(function(t,e,n,r){var i=f(n,r);let g=o(e).removeProperty(i),b=m(g,_.__wbindgen_export,_.__wbindgen_export2),w=v;a().setInt32(t+4,w,!0),a().setInt32(t+0,b,!0)},arguments)},__wbg_remove_31c39325eee968fc:function(t){o(t).remove()},__wbg_remove_f9451697e0bc6ca0:function(){return l(function(t,e,n){var r=f(e,n);o(t).remove(r)},arguments)},__wbg_render_9e6659e05fa89e30:function(){return l(function(t,e,n){let r=o(t).render(I.__wrap(e),u(n));return c(r)},arguments)},__wbg_replaceSync_54e9ce897fe6ab6a:function(){return l(function(t,e,n){var r=f(e,n);o(t).replaceSync(r)},arguments)},__wbg_requestAnimationFrame_43682f8e1c5e5348:function(){return l(function(t,e){return o(t).requestAnimationFrame(o(e))},arguments)},__wbg_resize_9c80ee9a0b8cafff:function(){return l(function(t){let e=o(t).resize();return c(e)},arguments)},__wbg_resolve_002c4b7d9d8f6b64:function(t){let e=Promise.resolve(o(t));return c(e)},__wbg_resolvedOptions_4c36dbfa1c4ba2bf:function(t){let e=o(t).resolvedOptions();return c(e)},__wbg_restorePhysics_50ba487c3890480a:function(t,e){o(t).restorePhysics(o(e))},__wbg_restoreSync_ff5b54866437011a:function(t,e){o(t).restoreSync(o(e))},__wbg_restore_a63b4e115bb34e8a:function(){return l(function(t,e,n){o(t).restore(o(e),o(n))},arguments)},__wbg_restyle_be2e9d88ea0d1bf8:function(t){o(t).restyle()},__wbg_resumeResize_7e3495c87e63afec:function(t){o(t).resumeResize()},__wbg_right_154af6c2b1bf0c89:function(t){return o(t).right},__wbg_run_748b6920eb34b566:function(){return l(function(t,e){let n=o(t).run(o(e));return c(n)},arguments)},__wbg_save_0ea3f47892e87cec:function(t){let e=o(t).save();return c(e)},__wbg_scrollHeight_25e40881bfad55b6:function(t){return o(t).scrollHeight},__wbg_scrollLeft_2b817c7719d17438:function(t){return o(t).scrollLeft},__wbg_scrollTop_0a3a77f9fcbe038e:function(t){return o(t).scrollTop},__wbg_scrollTop_4161d2a08060cb06:function(t){return o(t).scrollTop},__wbg_select_893978abf0e7c5f5:function(t,e,n){var r=f(e,n);let i=o(t).select(r);return c(i)},__wbg_select_f96715f412d93f23:function(t){o(t).select()},__wbg_selectedIndex_b1465d243fcb7142:function(t){return o(t).selectedIndex},__wbg_selectionEnd_f3cba543517b4aa8:function(){return l(function(t){let e=o(t).selectionEnd;return d(e)?4294967297:e>>>0},arguments)},__wbg_selectionStart_9cd0aeff14a21252:function(){return l(function(t){let e=o(t).selectionStart;return d(e)?4294967297:e>>>0},arguments)},__wbg_selectorText_4ebdf4f8074dafea:function(t,e){let n=o(e).selectorText,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_setAttribute_cc8e4c8a2a008508:function(){return l(function(t,e,n,r,i){var g=f(e,n),b=f(r,i);o(t).setAttribute(g,b)},arguments)},__wbg_setDragImage_76defbcc7ff30178:function(t,e,n,r){o(t).setDragImage(o(e),n,r)},__wbg_setPointerCapture_420db6f6826eb74b:function(){return l(function(t,e){o(t).setPointerCapture(e)},arguments)},__wbg_setProperty_cbb25c4e74285b39:function(){return l(function(t,e,n,r,i){var g=f(e,n),b=f(r,i);o(t).setProperty(g,b)},arguments)},__wbg_setSelectionRange_301eef1c51e01d2a:function(){return l(function(t,e,n){o(t).setSelectionRange(e>>>0,n>>>0)},arguments)},__wbg_setTimeout_21d8cc2869b34c58:function(t,e){return setTimeout(o(t),e)},__wbg_setTimeout_eff32631ea138533:function(){return l(function(t,e,n){return o(t).setTimeout(o(e),n)},arguments)},__wbg_set_1eb0999cf5d27fc8:function(t,e,n){let r=o(t).set(o(e),o(n));return c(r)},__wbg_set_3f1d0b984ed272ed:function(t,e,n){o(t)[u(e)]=u(n)},__wbg_set_6cb8631f80447a67:function(){return l(function(t,e,n){return Reflect.set(o(t),o(e),o(n))},arguments)},__wbg_set_body_9a7e00afe3cfe244:function(t,e){o(t).body=o(e)},__wbg_set_bubbles_739f291693b2bbec:function(t,e){o(t).bubbles=e!==0},__wbg_set_cache_key_ace1fa875f02b7cd:function(t,e){o(t).__yew_subtree_cache_key=e>>>0},__wbg_set_capture_d52e7a585f2933c8:function(t,e){o(t).capture=e!==0},__wbg_set_checked_4b2468680005fbf7:function(t,e){o(t).checked=e!==0},__wbg_set_className_c1d9e7362164af61:function(t,e,n){var r=f(e,n);o(t).className=r},__wbg_set_composed_e4a9826a628ca7f8:function(t,e){o(t).composed=e!==0},__wbg_set_cssText_18380c97092caefa:function(t,e,n){var r=f(e,n);o(t).cssText=r},__wbg_set_defaultValue_ad528b0a65ceef4a:function(){return l(function(t,e,n){var r=f(e,n);o(t).defaultValue=r},arguments)},__wbg_set_detail_fa3b358526be3a85:function(t,e){o(t).detail=o(e)},__wbg_set_dropEffect_042402609f0b7c6b:function(t,e,n){var r=f(e,n);o(t).dropEffect=r},__wbg_set_f43e577aea94465b:function(t,e,n){o(t)[e>>>0]=u(n)},__wbg_set_fb27b296001e2de9:function(){return l(function(t,e,n,r,i){var g=f(e,n),b=f(r,i);o(t)[g]=b},arguments)},__wbg_set_font_575685c8f7e56957:function(t,e,n){var r=f(e,n);o(t).font=r},__wbg_set_headers_cfc5f4b2c1f20549:function(t,e){o(t).headers=o(e)},__wbg_set_innerHTML_edd39677e3460291:function(t,e,n){var r=f(e,n);o(t).innerHTML=r},__wbg_set_innerText_2f1502f2d0780499:function(t,e,n){var r=f(e,n);o(t).innerText=r},__wbg_set_listener_id_8b77f7eb9adb712b:function(t,e){o(t).__yew_listener_id=e>>>0},__wbg_set_method_c3e20375f5ae7fac:function(t,e,n){var r=f(e,n);o(t).method=r},__wbg_set_mode_6a55f972d62a3c88:function(t,e){o(t).mode=Ut[e]},__wbg_set_nodeValue_d947eb0a476b80d7:function(t,e,n){var r=f(e,n);o(t).nodeValue=r},__wbg_set_passive_f411e67e6f28687b:function(t,e){o(t).passive=e!==0},__wbg_set_scrollLeft_8de8fc187e3a6808:function(t,e){o(t).scrollLeft=e},__wbg_set_scrollTop_bebe746cd217a3d1:function(t,e){o(t).scrollTop=e},__wbg_set_scrollTop_fb454582dda63417:function(t,e){o(t).scrollTop=e},__wbg_set_selectionEnd_01e3269db03d5d2e:function(){return l(function(t,e){o(t).selectionEnd=e===4294967297?void 0:e},arguments)},__wbg_set_selectionStart_d68d6955c07c2be1:function(){return l(function(t,e){o(t).selectionStart=e===4294967297?void 0:e},arguments)},__wbg_set_signal_f2d3f8599248896d:function(t,e){o(t).signal=o(e)},__wbg_set_stream_8a7c5f563fa185b4:function(t,e){o(t).stream=e!==0},__wbg_set_subtree_id_8be88ea477740786:function(t,e){o(t).__yew_subtree_id=e>>>0},__wbg_set_type_148de20768639245:function(t,e,n){var r=f(e,n);o(t).type=r},__wbg_set_value_62a965e38b22b38c:function(t,e,n){var r=f(e,n);o(t).value=r},__wbg_set_value_c3556fce049236f0:function(t,e,n){var r=f(e,n);o(t).value=r},__wbg_set_value_ddc3bd01a8467bf1:function(t,e,n){var r=f(e,n);o(t).value=r},__wbg_shadowRoot_14828067c5922da7:function(t){let e=o(t).shadowRoot;return d(e)?0:c(e)},__wbg_sheet_38c9043b5f37d85d:function(t){let e=o(t).sheet;return d(e)?0:c(e)},__wbg_shiftKey_5558a3288542c985:function(t){return o(t).shiftKey},__wbg_shiftKey_564be91ec842bcc4:function(t){return o(t).shiftKey},__wbg_showPicker_ba1d36381dae3011:function(){return l(function(t){o(t).showPicker()},arguments)},__wbg_showPopover_7166cd0808998024:function(){return l(function(t){o(t).showPopover()},arguments)},__wbg_signal_d1285ecab4ebc5ad:function(t){let e=o(t).signal;return c(e)},__wbg_slot_7d421d6c9d6c8352:function(t,e){let n=o(e).slot,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_stack_0ed75d68575b0f3c:function(t,e){let n=o(e).stack,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_startTime_248495bfbcb427d3:function(t){return o(t).startTime},__wbg_static_accessor_GLOBAL_12837167ad935116:function(){let t=typeof self>"u"?null:self;return d(t)?0:c(t)},__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f:function(){let t=typeof globalThis>"u"?null:globalThis;return d(t)?0:c(t)},__wbg_static_accessor_PSP_687cd2148e9483ba:function(){return c(X)},__wbg_static_accessor_SELF_a621d3dfbb60d0ce:function(){let t=typeof self>"u"?null:self;return d(t)?0:c(t)},__wbg_static_accessor_WINDOW_f8727f0cf888e0bd:function(){let t=typeof window>"u"?null:window;return d(t)?0:c(t)},__wbg_statusText_556131a02d60f5cd:function(t,e){let n=o(e).statusText,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_status_89d7e803db911ee7:function(t){return o(t).status},__wbg_stopPropagation_6e5e2a085214ac63:function(t){o(t).stopPropagation()},__wbg_stringify_2fdc12d5545a89d9:function(){return l(function(t,e,n){let r=JSON.stringify(o(t),o(e),o(n));return c(r)},arguments)},__wbg_stringify_8d1cc6ff383e8bae:function(){return l(function(t){let e=JSON.stringify(o(t));return c(e)},arguments)},__wbg_styleSheet_66d04471448b344e:function(t){let e=o(t).styleSheet;return d(e)?0:c(e)},__wbg_styleSheets_54de627270238f6f:function(t){let e=o(t).styleSheets;return c(e)},__wbg_styleSheets_f6881090d63936f3:function(t){let e=o(t).styleSheets;return c(e)},__wbg_style_0b7c9bd318f8b807:function(t){let e=o(t).style;return c(e)},__wbg_style_fa56cf251a93275a:function(t){let e=o(t).style;return c(e)},__wbg_subtree_id_1739fcadc43deeca:function(t){let e=o(t).__yew_subtree_id;return d(e)?4294967297:e>>>0},__wbg_supportedValuesOf_e97790d81e5cc294:function(t){let e=Intl.supportedValuesOf(o(t));return c(e)},__wbg_table_new:function(t){let e=z.__wrap(t);return c(e)},__wbg_tagName_0cf6d7b647352f04:function(t,e){let n=o(e).tagName,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_target_521be630ab05b11e:function(t){let e=o(t).target;return d(e)?0:c(e)},__wbg_text_083b8727c990c8c0:function(){return l(function(t){let e=o(t).text();return c(e)},arguments)},__wbg_then_0d9fe2c7b1857d32:function(t,e,n){let r=o(t).then(o(e),o(n));return c(r)},__wbg_then_b9e7b3b5f1a9e1b5:function(t,e){let n=o(t).then(o(e));return c(n)},__wbg_timeStamp_ddfe1bf5c2346d68:function(t){return o(t).timeStamp},__wbg_toString_964ff7fe6eca8362:function(t){let e=o(t).toString();return c(e)},__wbg_toggleAttribute_d89e5c9e9053c9c4:function(){return l(function(t,e,n,r){var i=f(e,n);return o(t).toggleAttribute(i,r!==0)},arguments)},__wbg_toggle_52417ca95b874e83:function(){return l(function(t,e,n){var r=f(e,n);return o(t).toggle(r)},arguments)},__wbg_toggle_b8e3ebf1a7aaeb11:function(){return l(function(t,e,n,r){var i=f(e,n);return o(t).toggle(i,r!==0)},arguments)},__wbg_top_3d27ff6f468cf3fc:function(t){return o(t).top},__wbg_trace_9007714a6fbee374:function(t){console.trace(o(t))},__wbg_trace_bd16b570941b54fb:function(t,e,n,r){console.trace(o(t),o(e),o(n),o(r))},__wbg_type_4edffca24c42b74d:function(t,e){let n=o(e).type,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_unobserve_38985a43e0654e89:function(t,e){o(t).unobserve(o(e))},__wbg_unobserve_4c496b8f980e02ff:function(t,e){o(t).unobserve(o(e))},__wbg_update_af83de031ac332a4:function(){return l(function(t,e,n,r,i){let g=o(t).update(I.__wrap(e),n===4294967297?void 0:n,r===4294967297?void 0:r,i!==0);return c(g)},arguments)},__wbg_valueAsNumber_5292e7ed56db5658:function(t){return o(t).valueAsNumber},__wbg_value_0546255b415e96c1:function(t){let e=o(t).value;return c(e)},__wbg_value_15684899da869c95:function(t,e){let n=o(e).value,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_value_d402dce7dcb16251:function(t,e){let n=o(e).value,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_value_e506a07878790ca0:function(t,e){let n=o(e).value,r=m(n,_.__wbindgen_export,_.__wbindgen_export2),i=v;a().setInt32(t+4,i,!0),a().setInt32(t+0,r,!0)},__wbg_values_5da93bc719d272cf:function(t){let e=Object.values(o(t));return c(e)},__wbg_view_new:function(t){let e=I.__wrap(t);return c(e)},__wbg_view_unwrap:function(t){return I.__unwrap(o(t))},__wbg_virtualdataslice_new:function(t){let e=q.__wrap(t);return c(e)},__wbg_warn_a40b971467b219c7:function(t,e,n,r){console.warn(o(t),o(e),o(n),o(r))},__wbg_warn_f7ae1b2e66ccb930:function(t){console.warn(o(t))},__wbg_which_78ecd90ab7c6bdd6:function(t){return o(t).which},__wbg_width_7444cca5dfea0645:function(t){return o(t).width},__wbg_width_9bbf873307a2ac4e:function(t){return o(t).width},__wbg_width_ae46cb8e98ee102f:function(t){return o(t).width},__wbg_write_d429ce72e918e180:function(t,e){let n=o(t).write(o(e));return c(n)},__wbindgen_cast_0000000000000001:function(t,e){let n=T(t,e,_.__wasm_bindgen_func_elem_7566,bt);return c(n)},__wbindgen_cast_0000000000000002:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_7566,R);return c(n)},__wbindgen_cast_0000000000000003:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_7566,R);return c(n)},__wbindgen_cast_0000000000000004:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_7566,R);return c(n)},__wbindgen_cast_0000000000000005:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_7566,R);return c(n)},__wbindgen_cast_0000000000000006:function(t,e){let n=T(t,e,_.__wasm_bindgen_func_elem_7566,bt);return c(n)},__wbindgen_cast_0000000000000007:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_7566,R);return c(n)},__wbindgen_cast_0000000000000008:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_7566,R);return c(n)},__wbindgen_cast_0000000000000009:function(t,e){let n=T(t,e,_.__wasm_bindgen_func_elem_7566,Dt);return c(n)},__wbindgen_cast_000000000000000a:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_7566,Lt);return c(n)},__wbindgen_cast_000000000000000b:function(t,e){let n=T(t,e,_.__wasm_bindgen_func_elem_20655,Nt);return c(n)},__wbindgen_cast_000000000000000c:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_21269,Wt);return c(n)},__wbindgen_cast_000000000000000d:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_21269,zt);return c(n)},__wbindgen_cast_000000000000000e:function(t,e){let n=T(t,e,_.__wasm_bindgen_func_elem_22680,Mt);return c(n)},__wbindgen_cast_000000000000000f:function(t,e){let n=T(t,e,_.__wasm_bindgen_func_elem_22680,qt);return c(n)},__wbindgen_cast_0000000000000010:function(t,e){let n=S(t,e,_.__wasm_bindgen_func_elem_27384,Ht);return c(n)},__wbindgen_cast_0000000000000011:function(t){return c(t)},__wbindgen_cast_0000000000000012:function(t){return c(t)},__wbindgen_cast_0000000000000013:function(t,e){var n=f(t,e);return c(n)},__wbindgen_cast_0000000000000014:function(t,e){let n=$t(t,e);return c(n)},__wbindgen_cast_0000000000000015:function(t,e){let n=Gt(t,e);return c(n)},__wbindgen_cast_0000000000000016:function(t,e){let n=Jt(t,e);return c(n)},__wbindgen_cast_0000000000000017:function(t,e){let n=Xt(t,e);return c(n)},__wbindgen_cast_0000000000000018:function(t,e){let n=E(t,e);return c(n)},__wbindgen_cast_0000000000000019:function(t){let e=BigInt.asUintN(64,t);return c(e)},__wbindgen_cast_000000000000001a:function(t,e){var n=pt(t,e).slice();return _.__wbindgen_export4(t,e*4,4),c(n)},__wbindgen_cast_000000000000001b:function(t,e){var n=E(t,e).slice();return _.__wbindgen_export4(t,e*1,1),c(n)},__wbindgen_object_clone_ref:function(t){let e=o(t);return c(e)},__wbindgen_object_drop_ref:function(t){u(t)},__wbindgen_object_is_undefined:function(t){return o(t)===void 0}}}}function zt(s,t){_.__wasm_bindgen_func_elem_21272(s,t)}function qt(s,t){_.__wasm_bindgen_func_elem_23328(s,t)}function Mt(s,t){let e=_.__wasm_bindgen_func_elem_23327(s,t);return u(e)}function bt(s,t,e){_.__wasm_bindgen_func_elem_8643(s,t,c(e))}function R(s,t,e){_.__wasm_bindgen_func_elem_8644(s,t,c(e))}function Dt(s,t){try{let i=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_8645(i,s,t);var e=a().getInt32(i+0,!0),n=a().getInt32(i+4,!0),r=a().getInt32(i+8,!0);if(r)throw u(n);return u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function Lt(s,t){try{let r=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_8641(r,s,t);var e=a().getInt32(r+0,!0),n=a().getInt32(r+4,!0);if(n)throw u(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function Nt(s,t,e){try{_.__wasm_bindgen_func_elem_20678(s,t,ot(e))}finally{k[O++]=void 0}}function Wt(s,t,e){_.__wasm_bindgen_func_elem_21273(s,t,c(e))}function Ht(s,t,e){_.__wasm_bindgen_func_elem_27386(s,t,c(e))}function Bt(s,t,e,n){_.__wasm_bindgen_func_elem_36185(s,t,c(e),c(n))}var Ut=["open","closed"],Q=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_client_free(s>>>0,1)),gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_genericsqlvirtualservermodel_free(s>>>0,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_perspectivedebugpluginelement_free(s>>>0,1)),Z=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_perspectiveviewerelement_free(s>>>0,1)),tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_proxysession_free(s>>>0,1)),dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_table_free(s>>>0,1)),wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_view_free(s>>>0,1)),et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_virtualdataslice_free(s>>>0,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>_.__wbg_virtualserver_free(s>>>0,1));function c(s){U===k.length&&k.push(k.length+1);let t=U;return U=k[t],k[t]=s,t}function _t(s,t){if(!(s instanceof t))throw new Error(`expected instance of ${t.name}`)}function ot(s){if(O==1)throw new Error("out of js stack");return k[--O]=s,O}var K=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>s.dtor(s.a,s.b));function rt(s){let t=typeof s;if(t=="number"||t=="boolean"||s==null)return`${s}`;if(t=="string")return`"${s}"`;if(t=="symbol"){let r=s.description;return r==null?"Symbol":`Symbol(${r})`}if(t=="function"){let r=s.name;return typeof r=="string"&&r.length>0?`Function(${r})`:"Function"}if(Array.isArray(s)){let r=s.length,i="[";r>0&&(i+=rt(s[0]));for(let g=1;g<r;g++)i+=", "+rt(s[g]);return i+="]",i}let e=/\\[object ([^\\]]+)\\]/.exec(toString.call(s)),n;if(e&&e.length>1)n=e[1];else return toString.call(s);if(n=="Object")try{return"Object("+JSON.stringify(s)+")"}catch{return"Object"}return s instanceof Error?`${s.name}: ${s.message}\n${s.stack}`:n}function Vt(s){s<132||(k[s]=U,U=s)}function $t(s,t){return s=s>>>0,Yt().subarray(s/4,s/4+t)}function Gt(s,t){return s=s>>>0,Kt().subarray(s/8,s/8+t)}function Jt(s,t){return s=s>>>0,Qt().subarray(s/4,s/4+t)}function pt(s,t){s=s>>>0;let e=a(),n=[];for(let r=s;r<s+4*t;r+=4)n.push(u(e.getUint32(r,!0)));return n}function Xt(s,t){return s=s>>>0,te().subarray(s/4,s/4+t)}function E(s,t){return s=s>>>0,P().subarray(s/1,s/1+t)}function f(s,t){return s===0?o(t):Zt(s,t)}var A=null;function a(){return(A===null||A.buffer.detached===!0||A.buffer.detached===void 0&&A.buffer!==_.memory.buffer)&&(A=new DataView(_.memory.buffer)),A}var L=null;function Yt(){return(L===null||L.byteLength===0)&&(L=new Float32Array(_.memory.buffer)),L}var N=null;function Kt(){return(N===null||N.byteLength===0)&&(N=new Float64Array(_.memory.buffer)),N}var W=null;function Qt(){return(W===null||W.byteLength===0)&&(W=new Int32Array(_.memory.buffer)),W}function Zt(s,t){return s=s>>>0,_e(s,t)}var H=null;function te(){return(H===null||H.byteLength===0)&&(H=new Uint32Array(_.memory.buffer)),H}var B=null;function P(){return(B===null||B.byteLength===0)&&(B=new Uint8Array(_.memory.buffer)),B}function o(s){return k[s]}function l(s,t){try{return s.apply(this,t)}catch(e){_.__wbindgen_export3(c(e))}}var k=new Array(128).fill(void 0);k.push(void 0,null,!0,!1);var U=k.length;function d(s){return s==null}function T(s,t,e,n){let r={a:s,b:t,cnt:1,dtor:e},i=(...g)=>{r.cnt++;try{return n(r.a,r.b,...g)}finally{i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--r.cnt===0&&(r.dtor(r.a,r.b),r.a=0,K.unregister(r))},K.register(i,r,r),i}function S(s,t,e,n){let r={a:s,b:t,cnt:1,dtor:e},i=(...g)=>{r.cnt++;let b=r.a;r.a=0;try{return n(b,r.b,...g)}finally{r.a=b,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--r.cnt===0&&(r.dtor(r.a,r.b),r.a=0,K.unregister(r))},K.register(i,r,r),i}function ee(s,t){let e=t(s.length*1,1)>>>0;return P().set(s,e/1),v=s.length,e}function ht(s,t){let e=t(s.length*4,4)>>>0,n=a();for(let r=0;r<s.length;r++)n.setUint32(e+4*r,c(s[r]),!0);return v=s.length,e}function m(s,t,e){if(e===void 0){let b=vt.encode(s),w=t(b.length,1)>>>0;return P().subarray(w,w+b.length).set(b),v=b.length,w}let n=s.length,r=t(n,1)>>>0,i=P(),g=0;for(;g<n;g++){let b=s.charCodeAt(g);if(b>127)break;i[r+g]=b}if(g!==n){g!==0&&(s=s.slice(g)),r=e(r,n,n=g+s.length*3,1)>>>0;let b=P().subarray(r+g,r+n),w=vt.encodeInto(s,b);g+=w.written,r=e(r,n,g,1)>>>0}return v=g,r}var O=128;function u(s){let t=o(s);return Vt(s),t}var Y=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Y.decode();var ne=2146435072,nt=0;function _e(s,t){return nt+=t,nt>=ne&&(Y=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Y.decode(),nt=t),Y.decode(P().subarray(s,s+t))}var vt=new TextEncoder,v=0,re,_;function yt(s,t){return _=s.exports,re=t,A=null,L=null,N=null,W=null,H=null,B=null,_}async function oe(s,t){if(typeof Response=="function"&&s instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(s,t)}catch(r){if(s.ok&&e(s.type)&&s.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n",r);else throw r}let n=await s.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(s,t);return n instanceof WebAssembly.Instance?{instance:n,module:s}:n}function e(n){switch(n){case"basic":case"cors":case"default":return!0}return!1}}function ce(s){if(_!==void 0)return _;s!==void 0&&(Object.getPrototypeOf(s)===Object.prototype?{module:s}=s:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=mt();s instanceof WebAssembly.Module||(s=new WebAssembly.Module(s));let e=new WebAssembly.Instance(s,t);return yt(e,s)}async function xt(s){if(_!==void 0)return _;s!==void 0&&(Object.getPrototypeOf(s)===Object.prototype?{module_or_path:s}=s:console.warn("using deprecated parameters for the initialization function; pass a single object instead"));let t=mt();(typeof s=="string"||typeof Request=="function"&&s instanceof Request||typeof URL=="function"&&s instanceof URL)&&(s=fetch(s));let{instance:e,module:n}=await oe(await s,t);return yt(e,n)}export{F as Client,V as GenericSQLVirtualServerModel,$ as PerspectiveDebugPluginElement,G as PerspectiveViewerElement,j as ProxySession,z as Table,I as View,q as VirtualDataSlice,J as VirtualServer,xt as default,At as getColumnConfigDefaults,Ft as getPluginConfigDefaults,Rt as get_wasm_module,Et as get_worker_url,Tt as init,ce as initSync,Pt as registerPlugin,Ot as setColumnConfigDefaults,jt as setPluginConfigDefaults};\n',$=null;async function me(){if($)return $;let t=new Blob([ve],{type:"application/javascript"});return $=URL.createObjectURL(t),$}async function mt(t,e){await de(t,e)}var rt;we(async t=>{let e=await me(),[n,_]=await Promise.all([rt===void 0?import(e):rt,t instanceof WebAssembly.Module?t:WebAssembly.compile(t)]);return await n.default({module_or_path:_}),await n.init(_,e),{glue:n,module:_}});function ye(t){return typeof t=="object"&&!(t instanceof Promise)&&!(t instanceof Response)&&!(t instanceof ArrayBuffer)&&!ArrayBuffer.isView(t)}async function Ie(t,e){let n=ye(t)?t:{viewer:t},{viewer:_,migrate:r}=n;if(_===void 0&&r===void 0)throw new Error("init_client requires a wasm source or a {viewer, migrate} registration");e!==void 0&&(rt=e),await mt({viewer:_,migrate:r})}async function xe(){return await it()}async function Ee(t,e,n){return(await it()).migrate(t,e,n)}async function Se(t,e,n){(await it()).validate(t,e,n)}var Ce={create_validator:xe,init:mt,init_client:Ie,migrate:Ee,validate:Se};fe({viewer:()=>fetch(new URL("../wasm/perspective-viewer.wasm",import.meta.url)),migrate:()=>fetch(ue(import.meta.url,"viewer","client","perspective-migrate.wasm"))});await pe();var ze=Ce;export{Te as HTMLPerspectiveViewerPluginElement,De as PerspectiveSelectDetail,Pe as createDateFormatter,Re as createDatetimeFormatter,Ae as createNumberFormatter,xe as create_validator,ze as default,mt as init,Ie as init_client,Ee as migrate,ke as providers,Le as sourceColumn,Se as validate};
22
22
  //# sourceMappingURL=perspective-viewer.js.map